Smart Floating / Sticky Buttons – Call, Sharing, Chat Widgets & More – Buttonizer - Version 2.6.4

Version Description

Release date: March 16, 2022

Changelog: - We've updated the default styling of the buttons. It now has the Buttonizer colors and changed the icons. Let us know what you think! :) - Press the right mouse button to test out the button action in the preview. We promise that this will be the final update to this feature. - Fixed an issue where the changelog dialog was empty. - More UI improvements!

If you experience bugs, problems or you just have some feedback, let us know on our Buttonizer community!

Download this release

Release Info

Developer buttonizer
Plugin Icon wp plugin Smart Floating / Sticky Buttons – Call, Sharing, Chat Widgets & More – Buttonizer
Version 2.6.4
Comparing to
See all releases

Code changes from version 2.6.3 to 2.6.4

Files changed (3) hide show
  1. assets/dashboard.css +6 -6
  2. assets/dashboard.js +5395 -5299
  3. assets/dashboard.min.js +3 -4
assets/dashboard.css CHANGED
@@ -9,7 +9,7 @@
9
  *
10
  * Buttonizer is Freemium software. The free version (build) does not contain premium functionality.
11
  *
12
- * (C) 2017-2022 Buttonizer v2.6.3
13
  *
14
  */
15
  /*!
@@ -23,21 +23,21 @@
23
  *
24
  * Buttonizer is Freemium software. The free version (build) does not contain premium functionality.
25
  *
26
- * (C) 2017-2022 Buttonizer v2.6.3
27
  *
28
  */
29
  @import url(https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap);
 
 
30
  .tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}
31
  .tippy-box[data-theme~=material]{background-color:#505355;font-weight:600}.tippy-box[data-theme~=material][data-placement^=top]>.tippy-arrow:before{border-top-color:#505355}.tippy-box[data-theme~=material][data-placement^=bottom]>.tippy-arrow:before{border-bottom-color:#505355}.tippy-box[data-theme~=material][data-placement^=left]>.tippy-arrow:before{border-left-color:#505355}.tippy-box[data-theme~=material][data-placement^=right]>.tippy-arrow:before{border-right-color:#505355}.tippy-box[data-theme~=material]>.tippy-backdrop{background-color:#505355}.tippy-box[data-theme~=material]>.tippy-svg-arrow{fill:#505355}
32
- .device-preview{flex-grow:1}.device-preview button{width:40px;margin:0 2px}
33
- .revert-button{margin:0 5px !important}.revert-button .MuiButton-label{font-size:15px}.revert-button .spin{animation:spin-animation 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite}@keyframes spin-animation{0%{transform:rotate(0deg)}100%{transform:rotate(-360deg)}}
34
  .MuiDialog-root #alert-dialog-title i{margin-right:15px;vertical-align:middle}.MuiDialog-root.warning .MuiBackdrop-root{background-color:rgba(93,0,0,.6)}.MuiDialog-root.warning #alert-dialog-title{color:#710909}
35
  .random-tip{background:#fff;border-radius:50px;margin:15px 0;display:flex;flex-flow:row wrap;height:72px;box-shadow:0 1px 1px 0 rgba(60,64,67,.08),0 1px 3px 1px rgba(60,64,67,.16);color:#2e788a}.random-tip .buzz{background:#fdf2e8;position:relative;margin:8px;order:1;height:56px;width:56px;border-radius:60px;box-sizing:border-box}.random-tip .tip{margin:8px 20px 8px 8px;flex:1;order:2;display:flex;align-items:center;font-size:14px}
36
  .knowledgebase-link{color:#2f7789;text-decoration:none}.knowledgebase-link.medium{font-size:14px !important}.knowledgebase-link.small{font-size:12px !important}.knowledgebase-link:hover{text-decoration:underline}.knowledgebase-icon{color:#2f7789}
37
  .button-container{-webkit-border-radius:7px;-moz-border-radius:7px;border-radius:7px;padding:10px;border:1px solid #e2e2e2;background-color:#fff}.button-container .button-name{max-width:100%}.button-container .button-name .button-name-span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:inline-block;max-width:100%}.button-container .button-name.drag-icon{min-width:10px}.button-container .button-header{display:flex}.button-container .button-header .button-actions{margin-left:auto;flex-shrink:0}.button-container .button-settings{display:flex}.button-container .button-settings .button-title{display:inline-flex;height:30px;align-items:center;margin-right:10px;font-size:14px}.button-container .button-settings button{height:30px}.button-container .button-settings .button-visibility{flex-grow:1}.button-container .button-settings .button-visibility button{width:40px;min-width:40px;margin:0 2px}.button-container .button-settings .button-actions button{min-width:35px}.button-container .button-settings .clear{clear:both}.button-container-new-button{margin:7px 0px !important}.button-container-new-button-line{height:15px;display:flex;transition:height 150ms ease-in-out}.button-container-new-button-line>button{opacity:0;height:100%}.button-container-new-button-line>button>span:not(:last-child) hr{width:100%;border-top:1px solid #f08419;border-left:0px;margin-bottom:.5em;opacity:0;transition:all 250ms ease-in-out}.button-container-new-button-line>button>span:not(:last-child)>span{opacity:0;visibility:hidden;margin:0px;padding:0;display:flex;justify-content:center;width:0px;transition:all 150ms ease-in-out}.button-container-new-button-line>button>span:not(:last-child)>span span.fas{font-size:1.4em}.button-container-new-button-line:hover{transition:height 150ms ease-in-out 500ms;height:30px}.button-container-new-button-line:hover>button{opacity:1}.button-container-new-button-line:hover>button>span:not(:last-child) hr{opacity:1}.button-container-new-button-line:hover>button>span:not(:last-child)>span{padding:0px 10px;visibility:visible;opacity:1;margin:0 10px;transition:all 150ms ease-in-out 500ms,opacity 150ms ease-in-out 750ms}
38
  #group-button-extra-buttons div[class^=MuiListItemIcon-root]{min-width:45px}#group-button-extra-buttons div[class^=MuiListItemIcon-root] .fas,#group-button-extra-buttons div[class^=MuiListItemIcon-root] .far{overflow:unset;font-size:1rem;margin-left:5px;text-align:center}
39
  .button-group-container{padding:10px;margin-bottom:15px;border:2px #fff solid;position:relative}.button-group-container.currentDrop{border:2px #f9bf87 solid}.button-group-container .group-info{display:flex}.button-group-container .group-info .group-arrow{display:inline-block;min-width:17px;text-align:left;font-size:12px}.button-group-container .group-info .group-arrow i{-webkit-transition:all 150ms ease;-moz-transition:all 150ms ease;-ms-transition:all 150ms ease;-o-transition:all 150ms ease;transition:all 150ms ease}.button-group-container .group-info .group-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:inline-block}.button-group-container .group-info .group-action-spacer{flex-grow:1}.button-group-container .group-info .group-actions{flex-grow:0;flex-shrink:0;margin-left:20px}.button-group-container .buttons{display:none}.button-group-container.opened .group-info .group-arrow i{transform:rotate(90deg)}.button-group-container.opened .buttons{display:block;border-radius:10px;padding:10px;border:2px #fff solid;transition:border .5s}.button-group-container.opened .buttons.currentDrop{border:2px #f9bf87 solid}.button-group-container.opened .buttons.currentDrop .button-container{opacity:.5}.button-group-container.opened .buttons.currentDrop .button-container.currentDrag{opacity:1}.button-group-container.new-group::before,.button-group-container.new-group::after{content:"";position:absolute;inset:0px;z-index:-1;display:block;background:#f08419;border-radius:10px}.button-group-container.new-group::before{animation:buttonizer-pulse-new-group 1s 0s ease-out}.button-group-container.new-group::after{animation:buttonizer-pulse-new-group 1s .185s ease-out}@keyframes buttonizer-pulse-new-group{0%{opacity:0;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";margin:0px}5%{opacity:1;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"}100%{margin:-20px;opacity:0;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"}}
40
- .templates-dialog ::-webkit-scrollbar{width:10px}.templates-dialog ::-webkit-scrollbar-track{background:#f1f1f1}.templates-dialog ::-webkit-scrollbar-thumb{background:#888}.templates-dialog ::-webkit-scrollbar-thumb:hover{background:#555}.templates-dialog .MuiDialog-paperFullWidth{padding:30px}.templates-dialog .MuiButton-outlined{background-color:#fff;color:#2a7688;border:1px solid #73a8b4}.templates-dialog .header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;position:relative}.templates-dialog .header .titles h2{color:#2a7688;text-transform:uppercase;font-size:32px}.templates-dialog .header .titles .title{padding:0}.templates-dialog .header .titles .subtitle{margin:0;color:#2a7688;font-weight:normal;font-size:18px}.templates-dialog .header .close-button{cursor:pointer;font-size:24px;color:#2a7688;position:absolute;right:0;top:0}.templates-dialog .container-filter-buttons{padding:8px 55px 0px 24px}.templates-dialog .container-filter-buttons .midsection{display:flex;align-items:center;margin:20px 0 40px;padding:0;border:none;overflow:visible}.templates-dialog .container-filter-buttons .midsection .button-group{min-width:fit-content}.templates-dialog .container-filter-buttons .midsection .button-group .buttons-numbers{margin:10px 20px 20px 0;display:flex}.templates-dialog .container-filter-buttons .midsection .button-group .buttons-numbers .current{background-color:#fce8d4;color:#f08419;border:1px solid #f08419}.templates-dialog .select-all{opacity:0;visibility:hidden}.templates-dialog .select-all.visible{opacity:1;visibility:visible}.search-results{position:absolute;margin-top:-30px}.loading{text-align:center;height:500px;justify-content:center;display:flex}.loading p{font-family:Arial,"Helvetica Neue"}.template{display:grid;grid-template-columns:repeat(auto-fit, 202px);grid-gap:1.5rem;grid-template-rows:repeat(6, 177px);height:500px}.template .type{border:1px solid #2a7688;height:175px;width:200px;color:#2a7688;position:relative;border-radius:5px;display:flex;cursor:pointer;grid-column:1;grid-row:1}.template .type img{max-width:100%;margin:auto;max-height:85%;user-select:none}.template .type .category{position:absolute;top:15px;right:10px;font-size:12px}.template .type .default-option{width:100%;display:flex;align-items:center;flex-direction:column;font-size:14px;align-self:center}.template .type .default-option .fa-plus-circle{font-size:40px;margin-bottom:12px}.template .container{display:grid}.template .container .checkbox{margin:10px 0;transition:all .2s ease-in-out;opacity:1;grid-column:1;grid-row:1;height:24px;width:24px;margin:5px;z-index:1}.template .container .checkbox.hidden{opacity:0;visibility:hidden}.template .container .select{visibility:hidden;opacity:0;display:flex;align-items:center;position:absolute;bottom:0;grid-column-gap:5px;padding:5px 15px;border-top:1px solid #2a7688;border-right:1px solid #2a7688;border-top-right-radius:3px;border-bottom-right-radius:3px;border-top-left-radius:3px;font-size:13px;transition:all .2s ease-in-out}.template .container:hover .select{visibility:visible;opacity:1}.template .container:hover .checkbox.hidden{opacity:1;visibility:visible}
41
  .buttonizer-premium{background:#2d7688;background:-moz-linear-gradient(-45deg, #2d7688 0%, #187287 50%, #187287 50%, #f0841a 51%, #e8832c 98%);background:-webkit-linear-gradient(-45deg, #2d7688 0%, #187287 50%, #187287 50%, #f0841a 51%, #e8832c 98%);background:linear-gradient(135deg, #2d7688 0%, #187287 50%, #187287 50%, #f0841a 51%, #e8832c 98%);filter:progid:DXImageTransform.Microsoft.gradient( startColorstr="#2d7688", endColorstr="#e8832c",GradientType=1 );color:#fff;font-weight:500;font-size:13px;line-height:17px;padding:4px 20px;display:inline-block;vertical-align:middle;border-radius:4px;-moz-border-radius:4px;-webkit-border-radius:4px;margin-left:10px;cursor:pointer}.buttonizer-premium.premium-right{position:absolute;right:30px;top:19px;z-index:9}.buttonizer-premium::after{content:"PRO"}.MuiFormControl-root:not(.MuiTextField-root) .buttonizer-premium{margin-right:15px}
42
  .item-not-found{text-align:center;padding:40px 0}.item-not-found i{font-size:50px;display:block;margin:30px auto}.item-not-found h4{font-size:15px;margin:28px 0}
43
  .tab-bordered{position:relative;z-index:2}.use-main-button-style{padding:5px 15px;display:flex;position:relative}.use-main-button-style:before{height:2px;background:#dfdfdf;content:" ";position:absolute;top:-2px;left:0;right:0;z-index:1}.use-main-button-style .button-label{flex-grow:1;margin-left:-10px}.use-main-button-style>div{width:50px;flex-grow:0}.back-to-group{position:fixed;left:0;width:20px;z-index:1}.back-to-group::before{content:"";position:fixed;left:0;top:0;width:10px;height:100vh;background:#2f7789}.back-to-group a{position:absolute;transform-origin:top left;left:-1px;color:#f08419;text-transform:uppercase;text-decoration:none;padding:1px 8px 1px 8px;display:inline-block;transform:rotate(90deg) translateY(-100%);background-color:#fff;box-shadow:0 1px 1px 0 rgba(60,64,67,.08),0 1px 3px 1px rgba(60,64,67,.16) !important;border-radius:4px 4px 0 0;height:20px;white-space:nowrap;font-weight:500;transition:padding .125s ease,box-shadow .25s ease}.back-to-group a i{margin-right:8px}.back-to-group a:hover{padding:1px 8px 5px 8px;box-shadow:0 1px 1px 0 rgba(60,64,67,.16),0 1px 3px 1px rgba(60,64,67,.32) !important}
@@ -280,7 +280,7 @@
280
  .settings-drawer-pages .settings-page-title .title{font-size:40px;font-weight:700}.settings-drawer-pages .settings-page-title .description{font-size:16px;padding:15px 0}.settings-drawer-pages .with-secondary-action{padding-right:80px}.settings-drawer-pages .with-optin-action{padding-right:150px}.settings-drawer-pages .with-permissions{display:block}.settings-drawer-pages .with-permissions>div{flex:none}.settings-drawer-pages .settings-container.select .settings-title{flex-shrink:1;width:calc(122%/ 3)}.settings-drawer-pages .settings-container.select .settings-content{width:52.666%;padding:0 20px;margin:auto}.settings-drawer-pages h2.title{text-transform:uppercase}.settings-drawer-pages .explaination ul{list-style:disc;padding:0 40px}.settings-drawer-pages .explaination button:not(:disabled){background-color:red}.settings-drawer-pages .explaination button .fas.fa-undo{font-size:14px}.settings-drawer-pages .explaination button .fas.fa-undo.spin{animation:spin-animation 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite}@keyframes spin-animation{0%{transform:rotate(0deg)}100%{transform:rotate(-360deg)}}
281
  .buttonizer-drawer{padding:2em}.close-button{float:right;margin:-20px !important}
282
  .buttonizer-tour-options .MuiDialog-paperWidthSm{padding-bottom:20px}.buttonizer-tour-options .header{display:flex}.buttonizer-tour-options .header .MuiDialogTitle-root{padding:16px 24px 0}.buttonizer-tour-options .header h2{font-size:28px;color:#2f7789;padding:20px 0 0 10px}.buttonizer-tour-options .header h2 .fa-globe-europe{margin-right:10px}.buttonizer-tour-options .header .skip-button{position:absolute;color:#2f7789;cursor:pointer;margin:5px;right:0;width:38px;height:38px}.buttonizer-tour-options .header .skip-button .fa-times{font-size:18px}.buttonizer-tour-options .list-item{display:flex;color:#000;margin-right:25px}
283
- .premium-dialog{width:450px;position:relative}.premium-dialog .MuiPopover-paper{padding:15px 20px}.premium-dialog .cancel-button{position:absolute;right:5px;top:5px;color:#2a7688;font-size:16px}.premium-dialog .title{color:#2a7688;margin:5px 0 10px 0;font-size:22px}.premium-dialog .description{color:#2a7688}.premium-dialog img{position:absolute;right:10px;bottom:10px}.premium-dialog .actions{display:flex;flex-direction:column}.premium-dialog .actions button{background-color:#f08419;height:40px;width:fit-content;border-radius:8px;border:none;color:#fff;text-transform:uppercase;font-weight:700;text-align:center;padding:5px 15px;margin-top:15px;font-size:12px;cursor:pointer}.premium-dialog .actions span{font-size:12px;margin:15px 0}
284
  .broke-out-of-iframe{padding:10px 20px;color:#b32828;background:#ffdada;text-align:center;display:flex;align-items:center}.broke-out-of-iframe div{width:100%;line-height:24px;font-size:16px}.broke-out-of-iframe button{margin-left:20px;flex-shrink:0;color:#b32828;border-color:#da9595;background:#fff}
285
  .introjs-overlay {
286
  position: absolute;
9
  *
10
  * Buttonizer is Freemium software. The free version (build) does not contain premium functionality.
11
  *
12
+ * (C) 2017-2022 Buttonizer v2.6.4
13
  *
14
  */
15
  /*!
23
  *
24
  * Buttonizer is Freemium software. The free version (build) does not contain premium functionality.
25
  *
26
+ * (C) 2017-2022 Buttonizer v2.6.4
27
  *
28
  */
29
  @import url(https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap);
30
+ .device-preview{flex-grow:1;position:relative}.device-preview .button-group{box-shadow:0 3px 10px rgba(0,0,0,.2);background-color:#fff;position:absolute;left:10px;bottom:-35px;width:40px;border-radius:8px;cursor:pointer}.device-preview .icon{margin-top:5px}.device-preview .button{border:none;opacity:.5}.device-preview .button .MuiSvgIcon-root{font-size:20px}.device-preview .button:hover{border:none;border-radius:5px}.device-preview .button:focus{border-radius:5px}.device-preview .current-device .MuiSvgIcon-root{font-size:20px;position:absolute;left:20px;color:#2f7789;bottom:-30px;cursor:pointer}
31
+ .revert-button{margin:0 5px !important}.revert-button .MuiButton-label{font-size:15px}.revert-button .spin{animation:spin-animation 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite}@keyframes spin-animation{0%{transform:rotate(0deg)}100%{transform:rotate(-360deg)}}
32
  .tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}
33
  .tippy-box[data-theme~=material]{background-color:#505355;font-weight:600}.tippy-box[data-theme~=material][data-placement^=top]>.tippy-arrow:before{border-top-color:#505355}.tippy-box[data-theme~=material][data-placement^=bottom]>.tippy-arrow:before{border-bottom-color:#505355}.tippy-box[data-theme~=material][data-placement^=left]>.tippy-arrow:before{border-left-color:#505355}.tippy-box[data-theme~=material][data-placement^=right]>.tippy-arrow:before{border-right-color:#505355}.tippy-box[data-theme~=material]>.tippy-backdrop{background-color:#505355}.tippy-box[data-theme~=material]>.tippy-svg-arrow{fill:#505355}
 
 
34
  .MuiDialog-root #alert-dialog-title i{margin-right:15px;vertical-align:middle}.MuiDialog-root.warning .MuiBackdrop-root{background-color:rgba(93,0,0,.6)}.MuiDialog-root.warning #alert-dialog-title{color:#710909}
35
  .random-tip{background:#fff;border-radius:50px;margin:15px 0;display:flex;flex-flow:row wrap;height:72px;box-shadow:0 1px 1px 0 rgba(60,64,67,.08),0 1px 3px 1px rgba(60,64,67,.16);color:#2e788a}.random-tip .buzz{background:#fdf2e8;position:relative;margin:8px;order:1;height:56px;width:56px;border-radius:60px;box-sizing:border-box}.random-tip .tip{margin:8px 20px 8px 8px;flex:1;order:2;display:flex;align-items:center;font-size:14px}
36
  .knowledgebase-link{color:#2f7789;text-decoration:none}.knowledgebase-link.medium{font-size:14px !important}.knowledgebase-link.small{font-size:12px !important}.knowledgebase-link:hover{text-decoration:underline}.knowledgebase-icon{color:#2f7789}
37
  .button-container{-webkit-border-radius:7px;-moz-border-radius:7px;border-radius:7px;padding:10px;border:1px solid #e2e2e2;background-color:#fff}.button-container .button-name{max-width:100%}.button-container .button-name .button-name-span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:inline-block;max-width:100%}.button-container .button-name.drag-icon{min-width:10px}.button-container .button-header{display:flex}.button-container .button-header .button-actions{margin-left:auto;flex-shrink:0}.button-container .button-settings{display:flex}.button-container .button-settings .button-title{display:inline-flex;height:30px;align-items:center;margin-right:10px;font-size:14px}.button-container .button-settings button{height:30px}.button-container .button-settings .button-visibility{flex-grow:1}.button-container .button-settings .button-visibility button{width:40px;min-width:40px;margin:0 2px}.button-container .button-settings .button-actions button{min-width:35px}.button-container .button-settings .clear{clear:both}.button-container-new-button{margin:7px 0px !important}.button-container-new-button-line{height:15px;display:flex;transition:height 150ms ease-in-out}.button-container-new-button-line>button{opacity:0;height:100%}.button-container-new-button-line>button>span:not(:last-child) hr{width:100%;border-top:1px solid #f08419;border-left:0px;margin-bottom:.5em;opacity:0;transition:all 250ms ease-in-out}.button-container-new-button-line>button>span:not(:last-child)>span{opacity:0;visibility:hidden;margin:0px;padding:0;display:flex;justify-content:center;width:0px;transition:all 150ms ease-in-out}.button-container-new-button-line>button>span:not(:last-child)>span span.fas{font-size:1.4em}.button-container-new-button-line:hover{transition:height 150ms ease-in-out 500ms;height:30px}.button-container-new-button-line:hover>button{opacity:1}.button-container-new-button-line:hover>button>span:not(:last-child) hr{opacity:1}.button-container-new-button-line:hover>button>span:not(:last-child)>span{padding:0px 10px;visibility:visible;opacity:1;margin:0 10px;transition:all 150ms ease-in-out 500ms,opacity 150ms ease-in-out 750ms}
38
  #group-button-extra-buttons div[class^=MuiListItemIcon-root]{min-width:45px}#group-button-extra-buttons div[class^=MuiListItemIcon-root] .fas,#group-button-extra-buttons div[class^=MuiListItemIcon-root] .far{overflow:unset;font-size:1rem;margin-left:5px;text-align:center}
39
  .button-group-container{padding:10px;margin-bottom:15px;border:2px #fff solid;position:relative}.button-group-container.currentDrop{border:2px #f9bf87 solid}.button-group-container .group-info{display:flex}.button-group-container .group-info .group-arrow{display:inline-block;min-width:17px;text-align:left;font-size:12px}.button-group-container .group-info .group-arrow i{-webkit-transition:all 150ms ease;-moz-transition:all 150ms ease;-ms-transition:all 150ms ease;-o-transition:all 150ms ease;transition:all 150ms ease}.button-group-container .group-info .group-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:inline-block}.button-group-container .group-info .group-action-spacer{flex-grow:1}.button-group-container .group-info .group-actions{flex-grow:0;flex-shrink:0;margin-left:20px}.button-group-container .buttons{display:none}.button-group-container.opened .group-info .group-arrow i{transform:rotate(90deg)}.button-group-container.opened .buttons{display:block;border-radius:10px;padding:10px;border:2px #fff solid;transition:border .5s}.button-group-container.opened .buttons.currentDrop{border:2px #f9bf87 solid}.button-group-container.opened .buttons.currentDrop .button-container{opacity:.5}.button-group-container.opened .buttons.currentDrop .button-container.currentDrag{opacity:1}.button-group-container.new-group::before,.button-group-container.new-group::after{content:"";position:absolute;inset:0px;z-index:-1;display:block;background:#f08419;border-radius:10px}.button-group-container.new-group::before{animation:buttonizer-pulse-new-group 1s 0s ease-out}.button-group-container.new-group::after{animation:buttonizer-pulse-new-group 1s .185s ease-out}@keyframes buttonizer-pulse-new-group{0%{opacity:0;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";margin:0px}5%{opacity:1;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"}100%{margin:-20px;opacity:0;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"}}
40
+ .templates-dialog ::-webkit-scrollbar{width:10px}.templates-dialog ::-webkit-scrollbar-track{background:#f1f1f1}.templates-dialog ::-webkit-scrollbar-thumb{background:#888}.templates-dialog ::-webkit-scrollbar-thumb:hover{background:#555}.templates-dialog .MuiDialog-paperFullWidth{padding:30px}.templates-dialog .MuiButton-outlined{background-color:#fff;color:#2a7688;border:1px solid #73a8b4}.templates-dialog .header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;position:relative}.templates-dialog .header .titles h2{color:#2a7688;text-transform:uppercase;font-size:32px}.templates-dialog .header .titles .title{padding:0}.templates-dialog .header .titles .subtitle{margin:0;color:#2a7688;font-weight:normal;font-size:18px}.templates-dialog .header .close-button{cursor:pointer;font-size:24px;color:#2a7688;position:absolute;right:0;top:0}.templates-dialog .container-filter-buttons{padding:8px 55px 0px 24px}.templates-dialog .container-filter-buttons .midsection{display:flex;align-items:center;margin:20px 0 40px;padding:0;border:none;overflow:visible}.templates-dialog .container-filter-buttons .midsection .button-group{min-width:fit-content}.templates-dialog .container-filter-buttons .midsection .button-group .buttons-numbers{margin:10px 20px 20px 0;display:flex}.templates-dialog .container-filter-buttons .midsection .button-group .buttons-numbers .current{background-color:#fce8d4;color:#f08419;border:1px solid #f08419}.templates-dialog .select-all{opacity:0;visibility:hidden}.templates-dialog .select-all.visible{opacity:1;visibility:visible}.search-results{position:absolute;margin-top:-30px}.loading{text-align:center;height:500px;justify-content:center;display:flex}.loading p{font-family:Arial,"Helvetica Neue"}.template{display:grid;grid-template-columns:repeat(auto-fit, 202px);grid-gap:1.5rem;grid-template-rows:repeat(6, 177px);height:500px}.template .type{border:1px solid #2a7688;height:175px;width:200px;color:#2a7688;position:relative;border-radius:5px;display:flex;cursor:pointer;grid-column:1;grid-row:1}.template .type img{max-width:100%;margin:auto;max-height:85%;user-select:none}.template .type .category{position:absolute;top:15px;right:10px;font-size:12px}.template .type .default-option{width:100%;display:flex;align-items:center;flex-direction:column;justify-content:center;position:relative}.template .type .default-option span{position:absolute;bottom:35px;font-size:12px}.template .container{display:grid}.template .container .checkbox{margin:10px 0;transition:all .2s ease-in-out;opacity:1;grid-column:1;grid-row:1;height:24px;width:24px;margin:5px;z-index:1}.template .container .checkbox.hidden{opacity:0;visibility:hidden}.template .container .select{visibility:hidden;opacity:0;display:flex;align-items:center;position:absolute;bottom:0;grid-column-gap:5px;padding:5px 15px;border-top:1px solid #2a7688;border-right:1px solid #2a7688;border-top-right-radius:3px;border-bottom-right-radius:3px;border-top-left-radius:3px;font-size:13px;transition:all .2s ease-in-out}.template .container:hover .select{visibility:visible;opacity:1}.template .container:hover .checkbox.hidden{opacity:1;visibility:visible}
41
  .buttonizer-premium{background:#2d7688;background:-moz-linear-gradient(-45deg, #2d7688 0%, #187287 50%, #187287 50%, #f0841a 51%, #e8832c 98%);background:-webkit-linear-gradient(-45deg, #2d7688 0%, #187287 50%, #187287 50%, #f0841a 51%, #e8832c 98%);background:linear-gradient(135deg, #2d7688 0%, #187287 50%, #187287 50%, #f0841a 51%, #e8832c 98%);filter:progid:DXImageTransform.Microsoft.gradient( startColorstr="#2d7688", endColorstr="#e8832c",GradientType=1 );color:#fff;font-weight:500;font-size:13px;line-height:17px;padding:4px 20px;display:inline-block;vertical-align:middle;border-radius:4px;-moz-border-radius:4px;-webkit-border-radius:4px;margin-left:10px;cursor:pointer}.buttonizer-premium.premium-right{position:absolute;right:30px;top:19px;z-index:9}.buttonizer-premium::after{content:"PRO"}.MuiFormControl-root:not(.MuiTextField-root) .buttonizer-premium{margin-right:15px}
42
  .item-not-found{text-align:center;padding:40px 0}.item-not-found i{font-size:50px;display:block;margin:30px auto}.item-not-found h4{font-size:15px;margin:28px 0}
43
  .tab-bordered{position:relative;z-index:2}.use-main-button-style{padding:5px 15px;display:flex;position:relative}.use-main-button-style:before{height:2px;background:#dfdfdf;content:" ";position:absolute;top:-2px;left:0;right:0;z-index:1}.use-main-button-style .button-label{flex-grow:1;margin-left:-10px}.use-main-button-style>div{width:50px;flex-grow:0}.back-to-group{position:fixed;left:0;width:20px;z-index:1}.back-to-group::before{content:"";position:fixed;left:0;top:0;width:10px;height:100vh;background:#2f7789}.back-to-group a{position:absolute;transform-origin:top left;left:-1px;color:#f08419;text-transform:uppercase;text-decoration:none;padding:1px 8px 1px 8px;display:inline-block;transform:rotate(90deg) translateY(-100%);background-color:#fff;box-shadow:0 1px 1px 0 rgba(60,64,67,.08),0 1px 3px 1px rgba(60,64,67,.16) !important;border-radius:4px 4px 0 0;height:20px;white-space:nowrap;font-weight:500;transition:padding .125s ease,box-shadow .25s ease}.back-to-group a i{margin-right:8px}.back-to-group a:hover{padding:1px 8px 5px 8px;box-shadow:0 1px 1px 0 rgba(60,64,67,.16),0 1px 3px 1px rgba(60,64,67,.32) !important}
280
  .settings-drawer-pages .settings-page-title .title{font-size:40px;font-weight:700}.settings-drawer-pages .settings-page-title .description{font-size:16px;padding:15px 0}.settings-drawer-pages .with-secondary-action{padding-right:80px}.settings-drawer-pages .with-optin-action{padding-right:150px}.settings-drawer-pages .with-permissions{display:block}.settings-drawer-pages .with-permissions>div{flex:none}.settings-drawer-pages .settings-container.select .settings-title{flex-shrink:1;width:calc(122%/ 3)}.settings-drawer-pages .settings-container.select .settings-content{width:52.666%;padding:0 20px;margin:auto}.settings-drawer-pages h2.title{text-transform:uppercase}.settings-drawer-pages .explaination ul{list-style:disc;padding:0 40px}.settings-drawer-pages .explaination button:not(:disabled){background-color:red}.settings-drawer-pages .explaination button .fas.fa-undo{font-size:14px}.settings-drawer-pages .explaination button .fas.fa-undo.spin{animation:spin-animation 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite}@keyframes spin-animation{0%{transform:rotate(0deg)}100%{transform:rotate(-360deg)}}
281
  .buttonizer-drawer{padding:2em}.close-button{float:right;margin:-20px !important}
282
  .buttonizer-tour-options .MuiDialog-paperWidthSm{padding-bottom:20px}.buttonizer-tour-options .header{display:flex}.buttonizer-tour-options .header .MuiDialogTitle-root{padding:16px 24px 0}.buttonizer-tour-options .header h2{font-size:28px;color:#2f7789;padding:20px 0 0 10px}.buttonizer-tour-options .header h2 .fa-globe-europe{margin-right:10px}.buttonizer-tour-options .header .skip-button{position:absolute;color:#2f7789;cursor:pointer;margin:5px;right:0;width:38px;height:38px}.buttonizer-tour-options .header .skip-button .fa-times{font-size:18px}.buttonizer-tour-options .list-item{display:flex;color:#000;margin-right:25px}
283
+ .premium-dialog{width:450px;position:relative}.premium-dialog .MuiPopover-paper{padding:15px 20px;min-width:320px}.premium-dialog .cancel-button{position:absolute;right:5px;top:5px;color:#2a7688;font-size:16px}.premium-dialog .title{color:#2a7688;margin:5px 0 10px 0;font-size:22px}.premium-dialog .description{color:#2a7688}.premium-dialog img{position:absolute;right:10px;bottom:10px}.premium-dialog .actions{display:flex;flex-direction:column}.premium-dialog .actions button{background-color:#f08419;height:40px;width:fit-content;border-radius:8px;border:none;color:#fff;text-transform:uppercase;font-weight:700;text-align:center;padding:5px 15px;margin-top:15px;font-size:12px;cursor:pointer}.premium-dialog .actions span{font-size:12px;margin:15px 0}
284
  .broke-out-of-iframe{padding:10px 20px;color:#b32828;background:#ffdada;text-align:center;display:flex;align-items:center}.broke-out-of-iframe div{width:100%;line-height:24px;font-size:16px}.broke-out-of-iframe button{margin-left:20px;flex-shrink:0;color:#b32828;border-color:#da9595;background:#fff}
285
  .introjs-overlay {
286
  position: absolute;
assets/dashboard.js CHANGED
@@ -9,7 +9,7 @@
9
  *
10
  * Buttonizer is Freemium software. The free version (build) does not contain premium functionality.
11
  *
12
- * (C) 2017-2022 Buttonizer v2.6.3
13
  *
14
  */
15
  /*!
@@ -23,7 +23,7 @@
23
  *
24
  * Buttonizer is Freemium software. The free version (build) does not contain premium functionality.
25
  *
26
- * (C) 2017-2022 Buttonizer v2.6.3
27
  *
28
  */
29
  /******/ (function() { // webpackBootstrap
@@ -2808,6 +2808,34 @@ function useIsFocusVisible() {
2808
 
2809
  /***/ }),
2810
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2811
  /***/ 78513:
2812
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
2813
 
@@ -2836,7 +2864,35 @@ exports.Z = _default;
2836
 
2837
  /***/ }),
2838
 
2839
- /***/ 49507:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2840
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
2841
 
2842
  "use strict";
@@ -2857,8 +2913,8 @@ var React = _interopRequireWildcard(__webpack_require__(67294));
2857
  var _createSvgIcon = _interopRequireDefault(__webpack_require__(2108));
2858
 
2859
  var _default = (0, _createSvgIcon.default)( /*#__PURE__*/React.createElement("path", {
2860
- d: "M13 1.07V9h7c0-4.08-3.05-7.44-7-7.93zM4 15c0 4.42 3.58 8 8 8s8-3.58 8-8v-4H4v4zm7-13.93C7.05 1.56 4 4.92 4 9h7V1.07z"
2861
- }), 'Mouse');
2862
 
2863
  exports.Z = _default;
2864
 
@@ -16606,3794 +16662,4496 @@ var Button_Button = /*#__PURE__*/react.forwardRef(function Button(props, ref) {
16606
  /* harmony default export */ var esm_Button_Button = ((0,withStyles/* default */.Z)(Button_styles, {
16607
  name: 'MuiButton'
16608
  })(Button_Button));
16609
- ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js
16610
- function getBoundingClientRect(element) {
16611
- var rect = element.getBoundingClientRect();
16612
- return {
16613
- width: rect.width,
16614
- height: rect.height,
16615
- top: rect.top,
16616
- right: rect.right,
16617
- bottom: rect.bottom,
16618
- left: rect.left,
16619
- x: rect.left,
16620
- y: rect.top
16621
- };
16622
- }
16623
- ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getWindow.js
16624
- function getWindow(node) {
16625
- if (node == null) {
16626
- return window;
16627
- }
16628
 
16629
- if (node.toString() !== '[object Window]') {
16630
- var ownerDocument = node.ownerDocument;
16631
- return ownerDocument ? ownerDocument.defaultView || window : window;
16632
- }
16633
 
16634
- return node;
16635
- }
16636
- ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js
16637
 
16638
- function getWindowScroll(node) {
16639
- var win = getWindow(node);
16640
- var scrollLeft = win.pageXOffset;
16641
- var scrollTop = win.pageYOffset;
16642
- return {
16643
- scrollLeft: scrollLeft,
16644
- scrollTop: scrollTop
16645
- };
16646
- }
16647
- ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js
16648
 
16649
 
16650
- function instanceOf_isElement(node) {
16651
- var OwnElement = getWindow(node).Element;
16652
- return node instanceof OwnElement || node instanceof Element;
16653
- }
16654
 
16655
- function isHTMLElement(node) {
16656
- var OwnElement = getWindow(node).HTMLElement;
16657
- return node instanceof OwnElement || node instanceof HTMLElement;
16658
- }
16659
 
16660
- function isShadowRoot(node) {
16661
- // IE 11 has no ShadowRoot
16662
- if (typeof ShadowRoot === 'undefined') {
16663
- return false;
16664
- }
16665
 
16666
- var OwnElement = getWindow(node).ShadowRoot;
16667
- return node instanceof OwnElement || node instanceof ShadowRoot;
16668
- }
16669
 
 
 
16670
 
16671
- ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js
16672
- function getHTMLElementScroll(element) {
16673
  return {
16674
- scrollLeft: element.scrollLeft,
16675
- scrollTop: element.scrollTop
16676
- };
16677
- }
16678
- ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js
16679
-
16680
 
 
 
 
 
16681
 
 
 
 
 
16682
 
16683
- function getNodeScroll(node) {
16684
- if (node === getWindow(node) || !isHTMLElement(node)) {
16685
- return getWindowScroll(node);
16686
- } else {
16687
- return getHTMLElementScroll(node);
16688
- }
16689
- }
16690
- ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js
16691
- function getNodeName(element) {
16692
- return element ? (element.nodeName || '').toLowerCase() : null;
16693
- }
16694
- ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js
16695
 
16696
- function getDocumentElement(element) {
16697
- // $FlowFixMe[incompatible-return]: assume body is always available
16698
- return ((instanceOf_isElement(element) ? element.ownerDocument : // $FlowFixMe[prop-missing]
16699
- element.document) || window.document).documentElement;
16700
- }
16701
- ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js
16702
 
 
 
 
 
16703
 
 
 
 
 
16704
 
16705
- function getWindowScrollBarX(element) {
16706
- // If <html> has a CSS width greater than the viewport, then this will be
16707
- // incorrect for RTL.
16708
- // Popper 1 is broken in this case and never had a bug report so let's assume
16709
- // it's not an issue. I don't think anyone ever specifies width on <html>
16710
- // anyway.
16711
- // Browsers where the left scrollbar doesn't cause an issue report `0` for
16712
- // this (e.g. Edge 2019, IE11, Safari)
16713
- return getBoundingClientRect(getDocumentElement(element)).left + getWindowScroll(element).scrollLeft;
16714
- }
16715
- ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js
16716
 
16717
- function getComputedStyle_getComputedStyle(element) {
16718
- return getWindow(element).getComputedStyle(element);
16719
- }
16720
- ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js
 
 
 
 
 
 
 
16721
 
16722
- function isScrollParent(element) {
16723
- // Firefox wants us to check `-x` and `-y` variations as well
16724
- var _getComputedStyle = getComputedStyle_getComputedStyle(element),
16725
- overflow = _getComputedStyle.overflow,
16726
- overflowX = _getComputedStyle.overflowX,
16727
- overflowY = _getComputedStyle.overflowY;
16728
 
16729
- return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);
16730
- }
16731
- ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js
 
 
 
16732
 
 
 
 
 
 
 
16733
 
 
 
 
 
 
 
16734
 
 
 
 
 
 
 
16735
 
 
 
16736
 
 
 
 
 
 
 
 
 
 
16737
 
16738
- // Returns the composite rect of an element relative to its offsetParent.
16739
- // Composite means it takes into account transforms as well as layout.
 
 
 
 
 
 
 
16740
 
16741
- function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {
16742
- if (isFixed === void 0) {
16743
- isFixed = false;
16744
- }
 
 
16745
 
16746
- var documentElement = getDocumentElement(offsetParent);
16747
- var rect = getBoundingClientRect(elementOrVirtualElement);
16748
- var isOffsetParentAnElement = isHTMLElement(offsetParent);
16749
- var scroll = {
16750
- scrollLeft: 0,
16751
- scrollTop: 0
16752
- };
16753
- var offsets = {
16754
- x: 0,
16755
- y: 0
16756
- };
16757
 
16758
- if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
16759
- if (getNodeName(offsetParent) !== 'body' || // https://github.com/popperjs/popper-core/issues/1078
16760
- isScrollParent(documentElement)) {
16761
- scroll = getNodeScroll(offsetParent);
16762
- }
16763
 
16764
- if (isHTMLElement(offsetParent)) {
16765
- offsets = getBoundingClientRect(offsetParent);
16766
- offsets.x += offsetParent.clientLeft;
16767
- offsets.y += offsetParent.clientTop;
16768
- } else if (documentElement) {
16769
- offsets.x = getWindowScrollBarX(documentElement);
16770
- }
16771
- }
 
16772
 
16773
- return {
16774
- x: rect.left + scroll.scrollLeft - offsets.x,
16775
- y: rect.top + scroll.scrollTop - offsets.y,
16776
- width: rect.width,
16777
- height: rect.height
16778
- };
16779
- }
16780
- ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js
16781
- // Returns the layout rect of an element relative to its offsetParent. Layout
16782
- // means it doesn't take into account transforms.
16783
 
16784
- function getLayoutRect(element) {
16785
- var clientRect = getBoundingClientRect(element); // Use the clientRect sizes if it's not been transformed.
16786
- // Fixes https://github.com/popperjs/popper-core/issues/1223
 
 
 
16787
 
16788
- var width = element.offsetWidth;
16789
- var height = element.offsetHeight;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16790
 
16791
- if (Math.abs(clientRect.width - width) <= 1) {
16792
- width = clientRect.width;
16793
- }
 
 
 
 
 
 
16794
 
16795
- if (Math.abs(clientRect.height - height) <= 1) {
16796
- height = clientRect.height;
16797
- }
16798
 
16799
- return {
16800
- x: element.offsetLeft,
16801
- y: element.offsetTop,
16802
- width: width,
16803
- height: height
16804
- };
16805
- }
16806
- ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getParentNode.js
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16807
 
 
16808
 
 
16809
 
16810
- function getParentNode(element) {
16811
- if (getNodeName(element) === 'html') {
16812
- return element;
16813
- }
16814
 
16815
- return (// this is a quicker (but less type safe) way to save quite some bytes from the bundle
16816
- // $FlowFixMe[incompatible-return]
16817
- // $FlowFixMe[prop-missing]
16818
- element.assignedSlot || // step into the shadow DOM of the parent of a slotted node
16819
- element.parentNode || ( // DOM Element detected
16820
- isShadowRoot(element) ? element.host : null) || // ShadowRoot detected
16821
- // $FlowFixMe[incompatible-call]: HTMLElement is a Node
16822
- getDocumentElement(element) // fallback
16823
 
16824
- );
16825
- }
16826
- ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js
16827
 
16828
 
16829
 
16830
 
16831
- function getScrollParent(node) {
16832
- if (['html', 'body', '#document'].indexOf(getNodeName(node)) >= 0) {
16833
- // $FlowFixMe[incompatible-return]: assume body is always available
16834
- return node.ownerDocument.body;
16835
- }
16836
 
16837
- if (isHTMLElement(node) && isScrollParent(node)) {
16838
- return node;
16839
- }
16840
 
16841
- return getScrollParent(getParentNode(node));
16842
- }
16843
- ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js
16844
 
16845
 
 
 
 
 
 
16846
 
 
 
 
 
16847
 
16848
- /*
16849
- given a DOM element, return the list of all scroll parents, up the list of ancesors
16850
- until we get to the top window object. This list is what we attach scroll listeners
16851
- to, because if any of these parent elements scroll, we'll need to re-calculate the
16852
- reference element's position.
16853
- */
16854
 
16855
- function listScrollParents(element, list) {
16856
- var _element$ownerDocumen;
 
 
 
16857
 
16858
- if (list === void 0) {
16859
- list = [];
16860
  }
16861
 
16862
- var scrollParent = getScrollParent(element);
16863
- var isBody = scrollParent === ((_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body);
16864
- var win = getWindow(scrollParent);
16865
- var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;
16866
- var updatedList = list.concat(target);
16867
- return isBody ? updatedList : // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
16868
- updatedList.concat(listScrollParents(getParentNode(target)));
16869
- }
16870
- ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/isTableElement.js
16871
 
16872
- function isTableElement(element) {
16873
- return ['table', 'td', 'th'].indexOf(getNodeName(element)) >= 0;
16874
- }
16875
- ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js
16876
 
 
 
16877
 
 
 
 
16878
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16879
 
 
16880
 
 
16881
 
 
 
 
 
 
 
16882
 
16883
- function getTrueOffsetParent(element) {
16884
- if (!isHTMLElement(element) || // https://github.com/popperjs/popper-core/issues/837
16885
- getComputedStyle_getComputedStyle(element).position === 'fixed') {
16886
- return null;
16887
- }
16888
 
16889
- return element.offsetParent;
16890
- } // `.offsetParent` reports `null` for fixed elements, while absolute elements
16891
- // return the containing block
16892
-
16893
-
16894
- function getContainingBlock(element) {
16895
- var isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') !== -1;
16896
- var isIE = navigator.userAgent.indexOf('Trident') !== -1;
16897
-
16898
- if (isIE && isHTMLElement(element)) {
16899
- // In IE 9, 10 and 11 fixed elements containing block is always established by the viewport
16900
- var elementCss = getComputedStyle_getComputedStyle(element);
16901
 
16902
- if (elementCss.position === 'fixed') {
16903
- return null;
16904
- }
16905
- }
 
 
 
16906
 
16907
- var currentNode = getParentNode(element);
 
 
16908
 
16909
- while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {
16910
- var css = getComputedStyle_getComputedStyle(currentNode); // This is non-exhaustive but covers the most common CSS properties that
16911
- // create a containing block.
16912
- // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
 
 
 
 
 
 
 
 
16913
 
16914
- if (css.transform !== 'none' || css.perspective !== 'none' || css.contain === 'paint' || ['transform', 'perspective'].indexOf(css.willChange) !== -1 || isFirefox && css.willChange === 'filter' || isFirefox && css.filter && css.filter !== 'none') {
16915
- return currentNode;
16916
- } else {
16917
- currentNode = currentNode.parentNode;
16918
- }
16919
- }
 
 
 
16920
 
16921
- return null;
16922
- } // Gets the closest ancestor positioned element. Handles some edge cases,
16923
- // such as table ancestors and cross browser bugs.
 
16924
 
 
 
 
 
 
 
 
 
 
16925
 
16926
- function getOffsetParent(element) {
16927
- var window = getWindow(element);
16928
- var offsetParent = getTrueOffsetParent(element);
 
 
16929
 
16930
- while (offsetParent && isTableElement(offsetParent) && getComputedStyle_getComputedStyle(offsetParent).position === 'static') {
16931
- offsetParent = getTrueOffsetParent(offsetParent);
16932
- }
16933
 
16934
- if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle_getComputedStyle(offsetParent).position === 'static')) {
16935
- return window;
16936
- }
 
 
16937
 
16938
- return offsetParent || getContainingBlock(element) || window;
 
 
 
 
 
 
 
16939
  }
16940
- ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/enums.js
16941
- var enums_top = 'top';
16942
- var bottom = 'bottom';
16943
- var right = 'right';
16944
- var left = 'left';
16945
- var auto = 'auto';
16946
- var basePlacements = [enums_top, bottom, right, left];
16947
- var start = 'start';
16948
- var end = 'end';
16949
- var clippingParents = 'clippingParents';
16950
- var viewport = 'viewport';
16951
- var popper = 'popper';
16952
- var reference = 'reference';
16953
- var variationPlacements = /*#__PURE__*/basePlacements.reduce(function (acc, placement) {
16954
- return acc.concat([placement + "-" + start, placement + "-" + end]);
16955
- }, []);
16956
- var enums_placements = /*#__PURE__*/[].concat(basePlacements, [auto]).reduce(function (acc, placement) {
16957
- return acc.concat([placement, placement + "-" + start, placement + "-" + end]);
16958
- }, []); // modifiers that need to read the DOM
16959
-
16960
- var beforeRead = 'beforeRead';
16961
- var read = 'read';
16962
- var afterRead = 'afterRead'; // pure-logic modifiers
16963
-
16964
- var beforeMain = 'beforeMain';
16965
- var main = 'main';
16966
- var afterMain = 'afterMain'; // modifier with the purpose to write to the DOM (or write into a framework state)
16967
 
16968
- var beforeWrite = 'beforeWrite';
16969
- var write = 'write';
16970
- var afterWrite = 'afterWrite';
16971
- var modifierPhases = [beforeRead, read, afterRead, beforeMain, main, afterMain, beforeWrite, write, afterWrite];
16972
- ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/utils/orderModifiers.js
16973
- // source: https://stackoverflow.com/questions/49875255
 
 
16974
 
16975
- function order(modifiers) {
16976
- var map = new Map();
16977
- var visited = new Set();
16978
- var result = [];
16979
- modifiers.forEach(function (modifier) {
16980
- map.set(modifier.name, modifier);
16981
- }); // On visiting object, check for its dependencies and visit them recursively
16982
 
16983
- function sort(modifier) {
16984
- visited.add(modifier.name);
16985
- var requires = [].concat(modifier.requires || [], modifier.requiresIfExists || []);
16986
- requires.forEach(function (dep) {
16987
- if (!visited.has(dep)) {
16988
- var depModifier = map.get(dep);
16989
 
16990
- if (depModifier) {
16991
- sort(depModifier);
16992
- }
16993
- }
16994
- });
16995
- result.push(modifier);
16996
- }
16997
 
16998
- modifiers.forEach(function (modifier) {
16999
- if (!visited.has(modifier.name)) {
17000
- // check for visited object
17001
- sort(modifier);
17002
  }
17003
- });
17004
- return result;
17005
- }
17006
 
17007
- function orderModifiers(modifiers) {
17008
- // order based on dependencies
17009
- var orderedModifiers = order(modifiers); // order based on phase
17010
 
17011
- return modifierPhases.reduce(function (acc, phase) {
17012
- return acc.concat(orderedModifiers.filter(function (modifier) {
17013
- return modifier.phase === phase;
17014
- }));
17015
- }, []);
17016
- }
17017
- ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/utils/debounce.js
17018
- function debounce(fn) {
17019
- var pending;
17020
- return function () {
17021
- if (!pending) {
17022
- pending = new Promise(function (resolve) {
17023
- Promise.resolve().then(function () {
17024
- pending = undefined;
17025
- resolve(fn());
17026
- });
17027
- });
17028
  }
 
17029
 
17030
- return pending;
 
 
 
 
 
 
17031
  };
17032
- }
17033
- ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/utils/mergeByName.js
17034
- function mergeByName(modifiers) {
17035
- var merged = modifiers.reduce(function (merged, current) {
17036
- var existing = merged[current.name];
17037
- merged[current.name] = existing ? Object.assign({}, existing, current, {
17038
- options: Object.assign({}, existing.options, current.options),
17039
- data: Object.assign({}, existing.data, current.data)
17040
- }) : current;
17041
- return merged;
17042
- }, {}); // IE11 does not support Object.values
17043
 
17044
- return Object.keys(merged).map(function (key) {
17045
- return merged[key];
17046
- });
17047
- }
17048
- ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/createPopper.js
17049
 
17050
 
 
 
 
 
 
 
 
 
 
17051
 
 
 
17052
 
17053
 
17054
 
17055
 
17056
 
17057
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17058
 
 
 
 
17059
 
 
 
 
 
 
 
 
 
 
 
17060
 
 
17061
 
 
 
 
 
 
 
 
17062
 
17063
- var INVALID_ELEMENT_ERROR = 'Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.';
17064
- var INFINITE_LOOP_ERROR = 'Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.';
17065
- var DEFAULT_OPTIONS = {
17066
- placement: 'bottom',
17067
- modifiers: [],
17068
- strategy: 'absolute'
17069
- };
17070
 
17071
- function areValidElements() {
17072
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
17073
- args[_key] = arguments[_key];
17074
- }
17075
 
17076
- return !args.some(function (element) {
17077
- return !(element && typeof element.getBoundingClientRect === 'function');
17078
- });
17079
- }
17080
 
17081
- function popperGenerator(generatorOptions) {
17082
- if (generatorOptions === void 0) {
17083
- generatorOptions = {};
17084
- }
17085
 
17086
- var _generatorOptions = generatorOptions,
17087
- _generatorOptions$def = _generatorOptions.defaultModifiers,
17088
- defaultModifiers = _generatorOptions$def === void 0 ? [] : _generatorOptions$def,
17089
- _generatorOptions$def2 = _generatorOptions.defaultOptions,
17090
- defaultOptions = _generatorOptions$def2 === void 0 ? DEFAULT_OPTIONS : _generatorOptions$def2;
17091
- return function createPopper(reference, popper, options) {
17092
- if (options === void 0) {
17093
- options = defaultOptions;
17094
- }
17095
 
17096
- var state = {
17097
- placement: 'bottom',
17098
- orderedModifiers: [],
17099
- options: Object.assign({}, DEFAULT_OPTIONS, defaultOptions),
17100
- modifiersData: {},
17101
- elements: {
17102
- reference: reference,
17103
- popper: popper
17104
- },
17105
- attributes: {},
17106
- styles: {}
17107
- };
17108
- var effectCleanupFns = [];
17109
- var isDestroyed = false;
17110
- var instance = {
17111
- state: state,
17112
- setOptions: function setOptions(options) {
17113
- cleanupModifierEffects();
17114
- state.options = Object.assign({}, defaultOptions, state.options, options);
17115
- state.scrollParents = {
17116
- reference: instanceOf_isElement(reference) ? listScrollParents(reference) : reference.contextElement ? listScrollParents(reference.contextElement) : [],
17117
- popper: listScrollParents(popper)
17118
- }; // Orders the modifiers based on their dependencies and `phase`
17119
- // properties
17120
 
17121
- var orderedModifiers = orderModifiers(mergeByName([].concat(defaultModifiers, state.options.modifiers))); // Strip out disabled modifiers
17122
 
17123
- state.orderedModifiers = orderedModifiers.filter(function (m) {
17124
- return m.enabled;
17125
- }); // Validate the provided modifiers so that the consumer will get warned
17126
- // if one of the modifiers is invalid for any reason
17127
 
17128
- if (false) { var _getComputedStyle, marginTop, marginRight, marginBottom, marginLeft, flipModifier, modifiers; }
 
 
 
 
 
 
17129
 
17130
- runModifierEffects();
17131
- return instance.update();
17132
- },
17133
- // Sync update – it will always be executed, even if not necessary. This
17134
- // is useful for low frequency updates where sync behavior simplifies the
17135
- // logic.
17136
- // For high frequency updates (e.g. `resize` and `scroll` events), always
17137
- // prefer the async Popper#update method
17138
- forceUpdate: function forceUpdate() {
17139
- if (isDestroyed) {
17140
- return;
17141
- }
17142
 
17143
- var _state$elements = state.elements,
17144
- reference = _state$elements.reference,
17145
- popper = _state$elements.popper; // Don't proceed if `reference` or `popper` are not valid elements
17146
- // anymore
 
17147
 
17148
- if (!areValidElements(reference, popper)) {
17149
- if (false) {}
 
 
 
17150
 
17151
- return;
17152
- } // Store the reference and popper rects to be read by modifiers
 
 
 
17153
 
 
 
 
17154
 
17155
- state.rects = {
17156
- reference: getCompositeRect(reference, getOffsetParent(popper), state.options.strategy === 'fixed'),
17157
- popper: getLayoutRect(popper)
17158
- }; // Modifiers have the ability to reset the current update cycle. The
17159
- // most common use case for this is the `flip` modifier changing the
17160
- // placement, which then needs to re-run all the modifiers, because the
17161
- // logic was previously ran for the previous placement and is therefore
17162
- // stale/incorrect
17163
 
17164
- state.reset = false;
17165
- state.placement = state.options.placement; // On each update cycle, the `modifiersData` property for each modifier
17166
- // is filled with the initial data specified by the modifier. This means
17167
- // it doesn't persist and is fresh on each update.
17168
- // To ensure persistent data, use `${name}#persistent`
 
17169
 
17170
- state.orderedModifiers.forEach(function (modifier) {
17171
- return state.modifiersData[modifier.name] = Object.assign({}, modifier.data);
17172
- });
17173
- var __debug_loops__ = 0;
17174
 
17175
- for (var index = 0; index < state.orderedModifiers.length; index++) {
17176
- if (false) {}
 
 
 
 
 
 
17177
 
17178
- if (state.reset === true) {
17179
- state.reset = false;
17180
- index = -1;
17181
- continue;
17182
- }
17183
 
17184
- var _state$orderedModifie = state.orderedModifiers[index],
17185
- fn = _state$orderedModifie.fn,
17186
- _state$orderedModifie2 = _state$orderedModifie.options,
17187
- _options = _state$orderedModifie2 === void 0 ? {} : _state$orderedModifie2,
17188
- name = _state$orderedModifie.name;
17189
 
17190
- if (typeof fn === 'function') {
17191
- state = fn({
17192
- state: state,
17193
- options: _options,
17194
- name: name,
17195
- instance: instance
17196
- }) || state;
17197
- }
17198
- }
17199
- },
17200
- // Async and optimistically optimized update – it will not be executed if
17201
- // not necessary (debounced to run at most once-per-tick)
17202
- update: debounce(function () {
17203
- return new Promise(function (resolve) {
17204
- instance.forceUpdate();
17205
- resolve(state);
17206
- });
17207
- }),
17208
- destroy: function destroy() {
17209
- cleanupModifierEffects();
17210
- isDestroyed = true;
17211
  }
17212
- };
17213
-
17214
- if (!areValidElements(reference, popper)) {
17215
- if (false) {}
 
 
 
 
17216
 
17217
- return instance;
 
 
 
 
 
17218
  }
 
17219
 
17220
- instance.setOptions(options).then(function (state) {
17221
- if (!isDestroyed && options.onFirstUpdate) {
17222
- options.onFirstUpdate(state);
17223
- }
17224
- }); // Modifiers have the ability to execute arbitrary code before the first
17225
- // update cycle runs. They will be executed in the same order as the update
17226
- // cycle. This is useful when a modifier adds some persistent data that
17227
- // other modifiers need to use, but the modifier is run after the dependent
17228
- // one.
17229
 
17230
- function runModifierEffects() {
17231
- state.orderedModifiers.forEach(function (_ref3) {
17232
- var name = _ref3.name,
17233
- _ref3$options = _ref3.options,
17234
- options = _ref3$options === void 0 ? {} : _ref3$options,
17235
- effect = _ref3.effect;
17236
 
17237
- if (typeof effect === 'function') {
17238
- var cleanupFn = effect({
17239
- state: state,
17240
- name: name,
17241
- instance: instance,
17242
- options: options
17243
- });
17244
-
17245
- var noopFn = function noopFn() {};
17246
 
17247
- effectCleanupFns.push(cleanupFn || noopFn);
17248
- }
17249
- });
17250
- }
17251
 
17252
- function cleanupModifierEffects() {
17253
- effectCleanupFns.forEach(function (fn) {
17254
- return fn();
17255
- });
17256
- effectCleanupFns = [];
 
 
17257
  }
17258
-
17259
- return instance;
17260
  };
 
 
17261
  }
17262
- var createPopper = /*#__PURE__*/(/* unused pure expression or super */ null && (popperGenerator())); // eslint-disable-next-line import/no-unused-modules
17263
 
 
 
 
17264
 
17265
- ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/modifiers/eventListeners.js
17266
- // eslint-disable-next-line import/no-unused-modules
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17267
 
17268
- var passive = {
17269
- passive: true
17270
- };
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17271
 
17272
- function effect(_ref) {
17273
- var state = _ref.state,
17274
- instance = _ref.instance,
17275
- options = _ref.options;
17276
- var _options$scroll = options.scroll,
17277
- scroll = _options$scroll === void 0 ? true : _options$scroll,
17278
- _options$resize = options.resize,
17279
- resize = _options$resize === void 0 ? true : _options$resize;
17280
- var window = getWindow(state.elements.popper);
17281
- var scrollParents = [].concat(state.scrollParents.reference, state.scrollParents.popper);
17282
 
17283
- if (scroll) {
17284
- scrollParents.forEach(function (scrollParent) {
17285
- scrollParent.addEventListener('scroll', instance.update, passive);
 
 
 
 
 
 
 
 
 
 
 
 
 
17286
  });
17287
- }
17288
 
17289
- if (resize) {
17290
- window.addEventListener('resize', instance.update, passive);
17291
- }
17292
 
17293
- return function () {
17294
- if (scroll) {
17295
- scrollParents.forEach(function (scrollParent) {
17296
- scrollParent.removeEventListener('scroll', instance.update, passive);
17297
- });
17298
- }
17299
 
17300
- if (resize) {
17301
- window.removeEventListener('resize', instance.update, passive);
17302
- }
17303
- };
17304
- } // eslint-disable-next-line import/no-unused-modules
17305
 
 
 
 
17306
 
17307
- /* harmony default export */ var eventListeners = ({
17308
- name: 'eventListeners',
17309
- enabled: true,
17310
- phase: 'write',
17311
- fn: function fn() {},
17312
- effect: effect,
17313
- data: {}
17314
- });
17315
- ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/utils/getBasePlacement.js
17316
 
17317
- function getBasePlacement(placement) {
17318
- return placement.split('-')[0];
17319
- }
17320
- ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/utils/getVariation.js
17321
- function getVariation(placement) {
17322
- return placement.split('-')[1];
17323
- }
17324
- ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js
17325
- function getMainAxisFromPlacement(placement) {
17326
- return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y';
17327
- }
17328
- ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/utils/computeOffsets.js
17329
 
 
 
 
 
 
17330
 
 
 
 
17331
 
 
 
17332
 
17333
- function computeOffsets(_ref) {
17334
- var reference = _ref.reference,
17335
- element = _ref.element,
17336
- placement = _ref.placement;
17337
- var basePlacement = placement ? getBasePlacement(placement) : null;
17338
- var variation = placement ? getVariation(placement) : null;
17339
- var commonX = reference.x + reference.width / 2 - element.width / 2;
17340
- var commonY = reference.y + reference.height / 2 - element.height / 2;
17341
- var offsets;
17342
 
17343
- switch (basePlacement) {
17344
- case enums_top:
17345
- offsets = {
17346
- x: commonX,
17347
- y: reference.y - element.height
17348
- };
17349
- break;
17350
 
17351
- case bottom:
17352
- offsets = {
17353
- x: commonX,
17354
- y: reference.y + reference.height
17355
- };
17356
- break;
17357
 
17358
- case right:
17359
- offsets = {
17360
- x: reference.x + reference.width,
17361
- y: commonY
17362
- };
17363
- break;
17364
 
17365
- case left:
17366
- offsets = {
17367
- x: reference.x - element.width,
17368
- y: commonY
17369
- };
17370
- break;
17371
 
17372
- default:
17373
- offsets = {
17374
- x: reference.x,
17375
- y: reference.y
17376
- };
17377
- }
17378
 
17379
- var mainAxis = basePlacement ? getMainAxisFromPlacement(basePlacement) : null;
17380
 
17381
- if (mainAxis != null) {
17382
- var len = mainAxis === 'y' ? 'height' : 'width';
 
 
 
 
 
 
17383
 
17384
- switch (variation) {
17385
- case start:
17386
- offsets[mainAxis] = offsets[mainAxis] - (reference[len] / 2 - element[len] / 2);
17387
- break;
17388
 
17389
- case end:
17390
- offsets[mainAxis] = offsets[mainAxis] + (reference[len] / 2 - element[len] / 2);
17391
- break;
 
 
17392
 
17393
- default:
17394
- }
17395
- }
 
17396
 
17397
- return offsets;
17398
- }
17399
- ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/modifiers/popperOffsets.js
 
17400
 
17401
 
17402
- function popperOffsets(_ref) {
17403
- var state = _ref.state,
17404
- name = _ref.name;
17405
- // Offsets are the actual position the popper needs to have to be
17406
- // properly positioned near its reference element
17407
- // This is the most basic placement, and will be adjusted by
17408
- // the modifiers in the next step
17409
- state.modifiersData[name] = computeOffsets({
17410
- reference: state.rects.reference,
17411
- element: state.rects.popper,
17412
- strategy: 'absolute',
17413
- placement: state.placement
17414
- });
17415
- } // eslint-disable-next-line import/no-unused-modules
 
 
 
17416
 
17417
 
17418
- /* harmony default export */ var modifiers_popperOffsets = ({
17419
- name: 'popperOffsets',
17420
- enabled: true,
17421
- phase: 'read',
17422
- fn: popperOffsets,
17423
- data: {}
17424
- });
17425
- ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/utils/math.js
17426
- var math_max = Math.max;
17427
- var math_min = Math.min;
17428
- var round = Math.round;
17429
- ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/modifiers/computeStyles.js
17430
 
 
17431
 
 
 
17432
 
 
 
 
 
 
 
17433
 
 
 
 
 
 
 
 
 
 
17434
 
 
 
 
 
17435
 
17436
- // eslint-disable-next-line import/no-unused-modules
17437
 
17438
- var unsetSides = {
17439
- top: 'auto',
17440
- right: 'auto',
17441
- bottom: 'auto',
17442
- left: 'auto'
17443
- }; // Round the offsets to the nearest suitable subpixel based on the DPR.
17444
- // Zooming can change the DPR, but it seems to report a value that will
17445
- // cleanly divide the values into the appropriate subpixels.
17446
 
17447
- function roundOffsetsByDPR(_ref) {
17448
- var x = _ref.x,
17449
- y = _ref.y;
17450
- var win = window;
17451
- var dpr = win.devicePixelRatio || 1;
17452
- return {
17453
- x: round(round(x * dpr) / dpr) || 0,
17454
- y: round(round(y * dpr) / dpr) || 0
 
 
 
 
17455
  };
17456
  }
 
 
 
 
 
 
 
 
17457
 
17458
- function mapToStyles(_ref2) {
17459
- var _Object$assign2;
17460
 
17461
- var popper = _ref2.popper,
17462
- popperRect = _ref2.popperRect,
17463
- placement = _ref2.placement,
17464
- offsets = _ref2.offsets,
17465
- position = _ref2.position,
17466
- gpuAcceleration = _ref2.gpuAcceleration,
17467
- adaptive = _ref2.adaptive,
17468
- roundOffsets = _ref2.roundOffsets;
17469
 
17470
- var _ref3 = roundOffsets === true ? roundOffsetsByDPR(offsets) : typeof roundOffsets === 'function' ? roundOffsets(offsets) : offsets,
17471
- _ref3$x = _ref3.x,
17472
- x = _ref3$x === void 0 ? 0 : _ref3$x,
17473
- _ref3$y = _ref3.y,
17474
- y = _ref3$y === void 0 ? 0 : _ref3$y;
17475
 
17476
- var hasX = offsets.hasOwnProperty('x');
17477
- var hasY = offsets.hasOwnProperty('y');
17478
- var sideX = left;
17479
- var sideY = enums_top;
17480
- var win = window;
17481
 
17482
- if (adaptive) {
17483
- var offsetParent = getOffsetParent(popper);
17484
- var heightProp = 'clientHeight';
17485
- var widthProp = 'clientWidth';
17486
 
17487
- if (offsetParent === getWindow(popper)) {
17488
- offsetParent = getDocumentElement(popper);
 
17489
 
17490
- if (getComputedStyle_getComputedStyle(offsetParent).position !== 'static') {
17491
- heightProp = 'scrollHeight';
17492
- widthProp = 'scrollWidth';
17493
- }
17494
- } // $FlowFixMe[incompatible-cast]: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
17495
 
 
 
 
 
 
 
 
 
 
 
17496
 
17497
- offsetParent = offsetParent;
 
 
 
 
 
 
 
 
 
 
 
 
 
17498
 
17499
- if (placement === enums_top) {
17500
- sideY = bottom; // $FlowFixMe[prop-missing]
 
17501
 
17502
- y -= offsetParent[heightProp] - popperRect.height;
17503
- y *= gpuAcceleration ? 1 : -1;
17504
- }
17505
 
17506
- if (placement === left) {
17507
- sideX = right; // $FlowFixMe[prop-missing]
17508
 
17509
- x -= offsetParent[widthProp] - popperRect.width;
17510
- x *= gpuAcceleration ? 1 : -1;
17511
- }
17512
- }
17513
 
17514
- var commonStyles = Object.assign({
17515
- position: position
17516
- }, adaptive && unsetSides);
 
17517
 
17518
- if (gpuAcceleration) {
17519
- var _Object$assign;
 
 
 
17520
 
17521
- return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? '0' : '', _Object$assign[sideX] = hasX ? '0' : '', _Object$assign.transform = (win.devicePixelRatio || 1) < 2 ? "translate(" + x + "px, " + y + "px)" : "translate3d(" + x + "px, " + y + "px, 0)", _Object$assign));
17522
- }
 
17523
 
17524
- return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : '', _Object$assign2[sideX] = hasX ? x + "px" : '', _Object$assign2.transform = '', _Object$assign2));
 
17525
  }
 
17526
 
17527
- function computeStyles(_ref4) {
17528
- var state = _ref4.state,
17529
- options = _ref4.options;
17530
- var _options$gpuAccelerat = options.gpuAcceleration,
17531
- gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat,
17532
- _options$adaptive = options.adaptive,
17533
- adaptive = _options$adaptive === void 0 ? true : _options$adaptive,
17534
- _options$roundOffsets = options.roundOffsets,
17535
- roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;
17536
-
17537
- if (false) { var transitionProperty; }
17538
 
17539
- var commonStyles = {
17540
- placement: getBasePlacement(state.placement),
17541
- popper: state.elements.popper,
17542
- popperRect: state.rects.popper,
17543
- gpuAcceleration: gpuAcceleration
17544
- };
17545
-
17546
- if (state.modifiersData.popperOffsets != null) {
17547
- state.styles.popper = Object.assign({}, state.styles.popper, mapToStyles(Object.assign({}, commonStyles, {
17548
- offsets: state.modifiersData.popperOffsets,
17549
- position: state.options.strategy,
17550
- adaptive: adaptive,
17551
- roundOffsets: roundOffsets
17552
- })));
17553
- }
17554
-
17555
- if (state.modifiersData.arrow != null) {
17556
- state.styles.arrow = Object.assign({}, state.styles.arrow, mapToStyles(Object.assign({}, commonStyles, {
17557
- offsets: state.modifiersData.arrow,
17558
- position: 'absolute',
17559
- adaptive: false,
17560
- roundOffsets: roundOffsets
17561
- })));
17562
- }
17563
-
17564
- state.attributes.popper = Object.assign({}, state.attributes.popper, {
17565
- 'data-popper-placement': state.placement
17566
- });
17567
- } // eslint-disable-next-line import/no-unused-modules
17568
-
17569
-
17570
- /* harmony default export */ var modifiers_computeStyles = ({
17571
- name: 'computeStyles',
17572
- enabled: true,
17573
- phase: 'beforeWrite',
17574
- fn: computeStyles,
17575
- data: {}
17576
- });
17577
- ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/modifiers/applyStyles.js
17578
-
17579
- // This modifier takes the styles prepared by the `computeStyles` modifier
17580
- // and applies them to the HTMLElements such as popper and arrow
17581
-
17582
- function applyStyles(_ref) {
17583
- var state = _ref.state;
17584
- Object.keys(state.elements).forEach(function (name) {
17585
- var style = state.styles[name] || {};
17586
- var attributes = state.attributes[name] || {};
17587
- var element = state.elements[name]; // arrow is optional + virtual elements
17588
 
17589
- if (!isHTMLElement(element) || !getNodeName(element)) {
17590
- return;
17591
- } // Flow doesn't support to extend this property, but it's the most
17592
- // effective way to apply styles to an HTMLElement
17593
- // $FlowFixMe[cannot-write]
 
 
 
 
 
17594
 
17595
 
17596
- Object.assign(element.style, style);
17597
- Object.keys(attributes).forEach(function (name) {
17598
- var value = attributes[name];
 
 
 
 
 
 
 
 
 
17599
 
17600
- if (value === false) {
17601
- element.removeAttribute(name);
17602
  } else {
17603
- element.setAttribute(name, value === true ? '' : value);
 
 
17604
  }
17605
- });
17606
- });
17607
- }
17608
 
17609
- function applyStyles_effect(_ref2) {
17610
- var state = _ref2.state;
17611
- var initialStyles = {
17612
- popper: {
17613
- position: state.options.strategy,
17614
- left: '0',
17615
- top: '0',
17616
- margin: '0'
17617
- },
17618
- arrow: {
17619
- position: 'absolute'
17620
- },
17621
- reference: {}
17622
  };
17623
- Object.assign(state.elements.popper.style, initialStyles.popper);
17624
- state.styles = initialStyles;
17625
-
17626
- if (state.elements.arrow) {
17627
- Object.assign(state.elements.arrow.style, initialStyles.arrow);
17628
- }
17629
-
17630
- return function () {
17631
- Object.keys(state.elements).forEach(function (name) {
17632
- var element = state.elements[name];
17633
- var attributes = state.attributes[name] || {};
17634
- var styleProperties = Object.keys(state.styles.hasOwnProperty(name) ? state.styles[name] : initialStyles[name]); // Set all values to an empty string to unset them
17635
-
17636
- var style = styleProperties.reduce(function (style, property) {
17637
- style[property] = '';
17638
- return style;
17639
- }, {}); // arrow is optional + virtual elements
17640
 
17641
- if (!isHTMLElement(element) || !getNodeName(element)) {
17642
- return;
17643
- }
17644
 
17645
- Object.assign(element.style, style);
17646
- Object.keys(attributes).forEach(function (attribute) {
17647
- element.removeAttribute(attribute);
17648
- });
17649
- });
17650
  };
17651
- } // eslint-disable-next-line import/no-unused-modules
 
 
 
 
 
 
 
 
 
 
17652
 
 
 
 
 
 
 
 
 
 
17653
 
17654
- /* harmony default export */ var modifiers_applyStyles = ({
17655
- name: 'applyStyles',
17656
- enabled: true,
17657
- phase: 'write',
17658
- fn: applyStyles,
17659
- effect: applyStyles_effect,
17660
- requires: ['computeStyles']
17661
- });
17662
- ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/modifiers/offset.js
17663
 
 
 
 
 
 
 
17664
 
17665
- function distanceAndSkiddingToXY(placement, rects, offset) {
17666
- var basePlacement = getBasePlacement(placement);
17667
- var invertDistance = [left, enums_top].indexOf(basePlacement) >= 0 ? -1 : 1;
 
 
 
 
17668
 
17669
- var _ref = typeof offset === 'function' ? offset(Object.assign({}, rects, {
17670
- placement: placement
17671
- })) : offset,
17672
- skidding = _ref[0],
17673
- distance = _ref[1];
 
 
 
 
 
17674
 
17675
- skidding = skidding || 0;
17676
- distance = (distance || 0) * invertDistance;
17677
- return [left, right].indexOf(basePlacement) >= 0 ? {
17678
- x: distance,
17679
- y: skidding
17680
- } : {
17681
- x: skidding,
17682
- y: distance
17683
  };
17684
- }
17685
-
17686
- function offset(_ref2) {
17687
- var state = _ref2.state,
17688
- options = _ref2.options,
17689
- name = _ref2.name;
17690
- var _options$offset = options.offset,
17691
- offset = _options$offset === void 0 ? [0, 0] : _options$offset;
17692
- var data = enums_placements.reduce(function (acc, placement) {
17693
- acc[placement] = distanceAndSkiddingToXY(placement, state.rects, offset);
17694
- return acc;
17695
- }, {});
17696
- var _data$state$placement = data[state.placement],
17697
- x = _data$state$placement.x,
17698
- y = _data$state$placement.y;
17699
 
17700
- if (state.modifiersData.popperOffsets != null) {
17701
- state.modifiersData.popperOffsets.x += x;
17702
- state.modifiersData.popperOffsets.y += y;
17703
- }
 
17704
 
17705
- state.modifiersData[name] = data;
17706
- } // eslint-disable-next-line import/no-unused-modules
 
17707
 
 
17708
 
17709
- /* harmony default export */ var modifiers_offset = ({
17710
- name: 'offset',
17711
- enabled: true,
17712
- phase: 'main',
17713
- requires: ['popperOffsets'],
17714
- fn: offset
17715
- });
17716
- ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/utils/getOppositePlacement.js
17717
- var hash = {
17718
- left: 'right',
17719
- right: 'left',
17720
- bottom: 'top',
17721
- top: 'bottom'
17722
- };
17723
- function getOppositePlacement(placement) {
17724
- return placement.replace(/left|right|bottom|top/g, function (matched) {
17725
- return hash[matched];
17726
- });
17727
- }
17728
- ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js
17729
- var getOppositeVariationPlacement_hash = {
17730
- start: 'end',
17731
- end: 'start'
17732
- };
17733
- function getOppositeVariationPlacement(placement) {
17734
- return placement.replace(/start|end/g, function (matched) {
17735
- return getOppositeVariationPlacement_hash[matched];
17736
- });
17737
  }
17738
- ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js
17739
-
17740
-
17741
-
17742
- function getViewportRect(element) {
17743
- var win = getWindow(element);
17744
- var html = getDocumentElement(element);
17745
- var visualViewport = win.visualViewport;
17746
- var width = html.clientWidth;
17747
- var height = html.clientHeight;
17748
- var x = 0;
17749
- var y = 0; // NB: This isn't supported on iOS <= 12. If the keyboard is open, the popper
17750
- // can be obscured underneath it.
17751
- // Also, `html.clientHeight` adds the bottom bar height in Safari iOS, even
17752
- // if it isn't open, so if this isn't available, the popper will be detected
17753
- // to overflow the bottom of the screen too early.
17754
-
17755
- if (visualViewport) {
17756
- width = visualViewport.width;
17757
- height = visualViewport.height; // Uses Layout Viewport (like Chrome; Safari does not currently)
17758
- // In Chrome, it returns a value very close to 0 (+/-) but contains rounding
17759
- // errors due to floating point numbers, so we need to check precision.
17760
- // Safari returns a number <= 0, usually < -1 when pinch-zoomed
17761
- // Feature detection fails in mobile emulation mode in Chrome.
17762
- // Math.abs(win.innerWidth / visualViewport.scale - visualViewport.width) <
17763
- // 0.001
17764
- // Fallback here: "Not Safari" userAgent
17765
 
17766
- if (!/^((?!chrome|android).)*safari/i.test(navigator.userAgent)) {
17767
- x = visualViewport.offsetLeft;
17768
- y = visualViewport.offsetTop;
17769
- }
17770
- }
17771
 
17772
- return {
17773
- width: width,
17774
- height: height,
17775
- x: x + getWindowScrollBarX(element),
17776
- y: y
17777
- };
17778
- }
17779
- ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js
17780
 
17781
 
17782
 
17783
 
17784
- // Gets the entire size of the scrollable document area, even extending outside
17785
- // of the `<html>` and `<body>` rect bounds if horizontally scrollable
17786
 
17787
- function getDocumentRect(element) {
17788
- var _element$ownerDocumen;
17789
 
17790
- var html = getDocumentElement(element);
17791
- var winScroll = getWindowScroll(element);
17792
- var body = (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body;
17793
- var width = math_max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
17794
- var height = math_max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
17795
- var x = -winScroll.scrollLeft + getWindowScrollBarX(element);
17796
- var y = -winScroll.scrollTop;
 
 
 
 
 
 
 
 
 
17797
 
17798
- if (getComputedStyle_getComputedStyle(body || html).direction === 'rtl') {
17799
- x += math_max(html.clientWidth, body ? body.clientWidth : 0) - width;
 
 
17800
  }
17801
 
17802
- return {
17803
- width: width,
17804
- height: height,
17805
- x: x,
17806
- y: y
17807
  };
17808
  }
17809
- ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/contains.js
17810
-
17811
- function contains(parent, child) {
17812
- var rootNode = child.getRootNode && child.getRootNode(); // First, attempt with faster native method
17813
 
17814
- if (parent.contains(child)) {
17815
- return true;
17816
- } // then fallback to custom implementation with Shadow DOM support
17817
- else if (rootNode && isShadowRoot(rootNode)) {
17818
- var next = child;
17819
 
17820
- do {
17821
- if (next && parent.isSameNode(next)) {
17822
- return true;
17823
- } // $FlowFixMe[prop-missing]: need a better way to handle this...
17824
 
 
 
 
 
 
 
 
 
 
 
 
 
17825
 
17826
- next = next.parentNode || next.host;
17827
- } while (next);
17828
- } // Give up, the result is false
 
17829
 
 
 
 
 
 
 
 
 
 
 
 
 
17830
 
17831
- return false;
17832
- }
17833
- ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/utils/rectToClientRect.js
17834
- function rectToClientRect(rect) {
17835
- return Object.assign({}, rect, {
17836
- left: rect.x,
17837
- top: rect.y,
17838
- right: rect.x + rect.width,
17839
- bottom: rect.y + rect.height
17840
- });
 
 
 
 
 
 
 
 
 
 
 
 
 
17841
  }
17842
- ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js
17843
-
17844
-
17845
-
17846
-
17847
 
17848
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17849
 
 
 
17850
 
 
17851
 
 
 
 
17852
 
17853
 
17854
 
 
 
 
 
 
 
17855
 
 
 
 
 
17856
 
 
 
 
 
 
 
17857
 
17858
- function getInnerBoundingClientRect(element) {
17859
- var rect = getBoundingClientRect(element);
17860
- rect.top = rect.top + element.clientTop;
17861
- rect.left = rect.left + element.clientLeft;
17862
- rect.bottom = rect.top + element.clientHeight;
17863
- rect.right = rect.left + element.clientWidth;
17864
- rect.width = element.clientWidth;
17865
- rect.height = element.clientHeight;
17866
- rect.x = rect.left;
17867
- rect.y = rect.top;
17868
- return rect;
17869
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17870
 
17871
- function getClientRectFromMixedType(element, clippingParent) {
17872
- return clippingParent === viewport ? rectToClientRect(getViewportRect(element)) : isHTMLElement(clippingParent) ? getInnerBoundingClientRect(clippingParent) : rectToClientRect(getDocumentRect(getDocumentElement(element)));
17873
- } // A "clipping parent" is an overflowable container with the characteristic of
17874
- // clipping (or hiding) overflowing elements with a position different from
17875
- // `initial`
17876
-
17877
-
17878
- function getClippingParents(element) {
17879
- var clippingParents = listScrollParents(getParentNode(element));
17880
- var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle_getComputedStyle(element).position) >= 0;
17881
- var clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;
17882
-
17883
- if (!instanceOf_isElement(clipperElement)) {
17884
- return [];
17885
- } // $FlowFixMe[incompatible-return]: https://github.com/facebook/flow/issues/1414
17886
 
17887
 
17888
- return clippingParents.filter(function (clippingParent) {
17889
- return instanceOf_isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';
17890
- });
17891
- } // Gets the maximum area that the element is visible in due to any number of
17892
- // clipping parents
 
17893
 
 
 
 
 
17894
 
17895
- function getClippingRect(element, boundary, rootBoundary) {
17896
- var mainClippingParents = boundary === 'clippingParents' ? getClippingParents(element) : [].concat(boundary);
17897
- var clippingParents = [].concat(mainClippingParents, [rootBoundary]);
17898
- var firstClippingParent = clippingParents[0];
17899
- var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {
17900
- var rect = getClientRectFromMixedType(element, clippingParent);
17901
- accRect.top = math_max(rect.top, accRect.top);
17902
- accRect.right = math_min(rect.right, accRect.right);
17903
- accRect.bottom = math_min(rect.bottom, accRect.bottom);
17904
- accRect.left = math_max(rect.left, accRect.left);
17905
- return accRect;
17906
- }, getClientRectFromMixedType(element, firstClippingParent));
17907
- clippingRect.width = clippingRect.right - clippingRect.left;
17908
- clippingRect.height = clippingRect.bottom - clippingRect.top;
17909
- clippingRect.x = clippingRect.left;
17910
- clippingRect.y = clippingRect.top;
17911
- return clippingRect;
17912
- }
17913
- ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/utils/getFreshSideObject.js
17914
- function getFreshSideObject() {
17915
- return {
17916
- top: 0,
17917
- right: 0,
17918
- bottom: 0,
17919
- left: 0
17920
  };
17921
  }
17922
- ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/utils/mergePaddingObject.js
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17923
 
17924
- function mergePaddingObject(paddingObject) {
17925
- return Object.assign({}, getFreshSideObject(), paddingObject);
17926
- }
17927
- ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/utils/expandToHashMap.js
17928
- function expandToHashMap(value, keys) {
17929
- return keys.reduce(function (hashMap, key) {
17930
- hashMap[key] = value;
17931
- return hashMap;
17932
- }, {});
17933
- }
17934
- ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/utils/detectOverflow.js
17935
 
17936
 
17937
 
17938
 
 
 
 
17939
 
 
 
 
 
 
17940
 
 
 
 
 
 
 
 
 
 
17941
 
 
 
 
17942
 
17943
- // eslint-disable-next-line import/no-unused-modules
 
 
 
 
 
 
 
 
 
 
 
17944
 
17945
- function detectOverflow(state, options) {
17946
- if (options === void 0) {
17947
- options = {};
17948
  }
17949
 
17950
- var _options = options,
17951
- _options$placement = _options.placement,
17952
- placement = _options$placement === void 0 ? state.placement : _options$placement,
17953
- _options$boundary = _options.boundary,
17954
- boundary = _options$boundary === void 0 ? clippingParents : _options$boundary,
17955
- _options$rootBoundary = _options.rootBoundary,
17956
- rootBoundary = _options$rootBoundary === void 0 ? viewport : _options$rootBoundary,
17957
- _options$elementConte = _options.elementContext,
17958
- elementContext = _options$elementConte === void 0 ? popper : _options$elementConte,
17959
- _options$altBoundary = _options.altBoundary,
17960
- altBoundary = _options$altBoundary === void 0 ? false : _options$altBoundary,
17961
- _options$padding = _options.padding,
17962
- padding = _options$padding === void 0 ? 0 : _options$padding;
17963
- var paddingObject = mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));
17964
- var altContext = elementContext === popper ? reference : popper;
17965
- var referenceElement = state.elements.reference;
17966
- var popperRect = state.rects.popper;
17967
- var element = state.elements[altBoundary ? altContext : elementContext];
17968
- var clippingClientRect = getClippingRect(instanceOf_isElement(element) ? element : element.contextElement || getDocumentElement(state.elements.popper), boundary, rootBoundary);
17969
- var referenceClientRect = getBoundingClientRect(referenceElement);
17970
- var popperOffsets = computeOffsets({
17971
- reference: referenceClientRect,
17972
- element: popperRect,
17973
- strategy: 'absolute',
17974
- placement: placement
17975
  });
17976
- var popperClientRect = rectToClientRect(Object.assign({}, popperRect, popperOffsets));
17977
- var elementClientRect = elementContext === popper ? popperClientRect : referenceClientRect; // positive = overflowing the clipping rect
17978
- // 0 or negative = within the clipping rect
17979
-
17980
- var overflowOffsets = {
17981
- top: clippingClientRect.top - elementClientRect.top + paddingObject.top,
17982
- bottom: elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom,
17983
- left: clippingClientRect.left - elementClientRect.left + paddingObject.left,
17984
- right: elementClientRect.right - clippingClientRect.right + paddingObject.right
17985
- };
17986
- var offsetData = state.modifiersData.offset; // Offsets can be applied only to the popper element
17987
 
17988
- if (elementContext === popper && offsetData) {
17989
- var offset = offsetData[placement];
17990
- Object.keys(overflowOffsets).forEach(function (key) {
17991
- var multiply = [right, bottom].indexOf(key) >= 0 ? 1 : -1;
17992
- var axis = [enums_top, bottom].indexOf(key) >= 0 ? 'y' : 'x';
17993
- overflowOffsets[key] += offset[axis] * multiply;
17994
- });
17995
- }
17996
 
17997
- return overflowOffsets;
17998
- }
17999
- ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js
 
 
 
 
 
18000
 
 
 
18001
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18002
 
18003
 
18004
- function computeAutoPlacement(state, options) {
18005
- if (options === void 0) {
18006
- options = {};
18007
  }
18008
 
18009
- var _options = options,
18010
- placement = _options.placement,
18011
- boundary = _options.boundary,
18012
- rootBoundary = _options.rootBoundary,
18013
- padding = _options.padding,
18014
- flipVariations = _options.flipVariations,
18015
- _options$allowedAutoP = _options.allowedAutoPlacements,
18016
- allowedAutoPlacements = _options$allowedAutoP === void 0 ? enums_placements : _options$allowedAutoP;
18017
- var variation = getVariation(placement);
18018
- var placements = variation ? flipVariations ? variationPlacements : variationPlacements.filter(function (placement) {
18019
- return getVariation(placement) === variation;
18020
- }) : basePlacements;
18021
- var allowedPlacements = placements.filter(function (placement) {
18022
- return allowedAutoPlacements.indexOf(placement) >= 0;
18023
- });
18024
-
18025
- if (allowedPlacements.length === 0) {
18026
- allowedPlacements = placements;
18027
 
18028
  if (false) {}
18029
- } // $FlowFixMe[incompatible-type]: Flow seems to have problems with two array unions...
18030
 
 
 
 
18031
 
18032
- var overflows = allowedPlacements.reduce(function (acc, placement) {
18033
- acc[placement] = detectOverflow(state, {
18034
- placement: placement,
18035
- boundary: boundary,
18036
- rootBoundary: rootBoundary,
18037
- padding: padding
18038
- })[getBasePlacement(placement)];
18039
- return acc;
18040
- }, {});
18041
- return Object.keys(overflows).sort(function (a, b) {
18042
- return overflows[a] - overflows[b];
18043
- });
18044
  }
18045
- ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/modifiers/flip.js
18046
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18047
 
 
 
 
18048
 
 
18049
 
18050
 
18051
 
18052
- // eslint-disable-next-line import/no-unused-modules
18053
 
18054
- function getExpandedFallbackPlacements(placement) {
18055
- if (getBasePlacement(placement) === auto) {
18056
- return [];
18057
- }
18058
 
18059
- var oppositePlacement = getOppositePlacement(placement);
18060
- return [getOppositeVariationPlacement(placement), oppositePlacement, getOppositeVariationPlacement(oppositePlacement)];
18061
- }
18062
 
18063
- function flip(_ref) {
18064
- var state = _ref.state,
18065
- options = _ref.options,
18066
- name = _ref.name;
18067
 
18068
- if (state.modifiersData[name]._skip) {
18069
- return;
18070
- }
18071
 
18072
- var _options$mainAxis = options.mainAxis,
18073
- checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis,
18074
- _options$altAxis = options.altAxis,
18075
- checkAltAxis = _options$altAxis === void 0 ? true : _options$altAxis,
18076
- specifiedFallbackPlacements = options.fallbackPlacements,
18077
- padding = options.padding,
18078
- boundary = options.boundary,
18079
- rootBoundary = options.rootBoundary,
18080
- altBoundary = options.altBoundary,
18081
- _options$flipVariatio = options.flipVariations,
18082
- flipVariations = _options$flipVariatio === void 0 ? true : _options$flipVariatio,
18083
- allowedAutoPlacements = options.allowedAutoPlacements;
18084
- var preferredPlacement = state.options.placement;
18085
- var basePlacement = getBasePlacement(preferredPlacement);
18086
- var isBasePlacement = basePlacement === preferredPlacement;
18087
- var fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipVariations ? [getOppositePlacement(preferredPlacement)] : getExpandedFallbackPlacements(preferredPlacement));
18088
- var placements = [preferredPlacement].concat(fallbackPlacements).reduce(function (acc, placement) {
18089
- return acc.concat(getBasePlacement(placement) === auto ? computeAutoPlacement(state, {
18090
- placement: placement,
18091
- boundary: boundary,
18092
- rootBoundary: rootBoundary,
18093
- padding: padding,
18094
- flipVariations: flipVariations,
18095
- allowedAutoPlacements: allowedAutoPlacements
18096
- }) : placement);
18097
- }, []);
18098
- var referenceRect = state.rects.reference;
18099
- var popperRect = state.rects.popper;
18100
- var checksMap = new Map();
18101
- var makeFallbackChecks = true;
18102
- var firstFittingPlacement = placements[0];
18103
 
18104
- for (var i = 0; i < placements.length; i++) {
18105
- var placement = placements[i];
18106
 
18107
- var _basePlacement = getBasePlacement(placement);
18108
 
18109
- var isStartVariation = getVariation(placement) === start;
18110
- var isVertical = [enums_top, bottom].indexOf(_basePlacement) >= 0;
18111
- var len = isVertical ? 'width' : 'height';
18112
- var overflow = detectOverflow(state, {
18113
- placement: placement,
18114
- boundary: boundary,
18115
- rootBoundary: rootBoundary,
18116
- altBoundary: altBoundary,
18117
- padding: padding
18118
- });
18119
- var mainVariationSide = isVertical ? isStartVariation ? right : left : isStartVariation ? bottom : enums_top;
18120
 
18121
- if (referenceRect[len] > popperRect[len]) {
18122
- mainVariationSide = getOppositePlacement(mainVariationSide);
18123
- }
18124
 
18125
- var altVariationSide = getOppositePlacement(mainVariationSide);
18126
- var checks = [];
18127
 
18128
- if (checkMainAxis) {
18129
- checks.push(overflow[_basePlacement] <= 0);
18130
- }
18131
 
18132
- if (checkAltAxis) {
18133
- checks.push(overflow[mainVariationSide] <= 0, overflow[altVariationSide] <= 0);
18134
- }
18135
 
18136
- if (checks.every(function (check) {
18137
- return check;
18138
- })) {
18139
- firstFittingPlacement = placement;
18140
- makeFallbackChecks = false;
18141
- break;
18142
- }
18143
 
18144
- checksMap.set(placement, checks);
18145
- }
18146
 
18147
- if (makeFallbackChecks) {
18148
- // `2` may be desired in some cases – research later
18149
- var numberOfChecks = flipVariations ? 3 : 1;
18150
 
18151
- var _loop = function _loop(_i) {
18152
- var fittingPlacement = placements.find(function (placement) {
18153
- var checks = checksMap.get(placement);
18154
 
18155
- if (checks) {
18156
- return checks.slice(0, _i).every(function (check) {
18157
- return check;
18158
- });
18159
- }
18160
- });
18161
 
18162
- if (fittingPlacement) {
18163
- firstFittingPlacement = fittingPlacement;
18164
- return "break";
18165
- }
18166
- };
18167
 
18168
- for (var _i = numberOfChecks; _i > 0; _i--) {
18169
- var _ret = _loop(_i);
18170
 
18171
- if (_ret === "break") break;
18172
- }
18173
- }
18174
 
18175
- if (state.placement !== firstFittingPlacement) {
18176
- state.modifiersData[name]._skip = true;
18177
- state.placement = firstFittingPlacement;
18178
- state.reset = true;
18179
- }
18180
- } // eslint-disable-next-line import/no-unused-modules
18181
 
 
 
 
 
18182
 
18183
- /* harmony default export */ var modifiers_flip = ({
18184
- name: 'flip',
18185
- enabled: true,
18186
- phase: 'main',
18187
- fn: flip,
18188
- requiresIfExists: ['offset'],
18189
- data: {
18190
- _skip: false
18191
  }
18192
- });
18193
- ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/utils/getAltAxis.js
18194
- function getAltAxis(axis) {
18195
- return axis === 'x' ? 'y' : 'x';
18196
- }
18197
- ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/utils/within.js
18198
-
18199
- function within(min, value, max) {
18200
- return math_max(min, math_min(value, max));
18201
- }
18202
- ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/modifiers/preventOverflow.js
18203
-
18204
-
18205
-
18206
-
18207
-
18208
 
18209
 
 
 
 
 
 
 
 
 
 
 
 
 
18210
 
 
 
 
 
 
 
 
18211
 
 
18212
 
 
18213
 
 
 
 
 
 
 
18214
 
18215
- function preventOverflow(_ref) {
18216
- var state = _ref.state,
18217
- options = _ref.options,
18218
- name = _ref.name;
18219
- var _options$mainAxis = options.mainAxis,
18220
- checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis,
18221
- _options$altAxis = options.altAxis,
18222
- checkAltAxis = _options$altAxis === void 0 ? false : _options$altAxis,
18223
- boundary = options.boundary,
18224
- rootBoundary = options.rootBoundary,
18225
- altBoundary = options.altBoundary,
18226
- padding = options.padding,
18227
- _options$tether = options.tether,
18228
- tether = _options$tether === void 0 ? true : _options$tether,
18229
- _options$tetherOffset = options.tetherOffset,
18230
- tetherOffset = _options$tetherOffset === void 0 ? 0 : _options$tetherOffset;
18231
- var overflow = detectOverflow(state, {
18232
- boundary: boundary,
18233
- rootBoundary: rootBoundary,
18234
- padding: padding,
18235
- altBoundary: altBoundary
18236
- });
18237
- var basePlacement = getBasePlacement(state.placement);
18238
- var variation = getVariation(state.placement);
18239
- var isBasePlacement = !variation;
18240
- var mainAxis = getMainAxisFromPlacement(basePlacement);
18241
- var altAxis = getAltAxis(mainAxis);
18242
- var popperOffsets = state.modifiersData.popperOffsets;
18243
- var referenceRect = state.rects.reference;
18244
- var popperRect = state.rects.popper;
18245
- var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign({}, state.rects, {
18246
- placement: state.placement
18247
- })) : tetherOffset;
18248
- var data = {
18249
- x: 0,
18250
- y: 0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18251
  };
 
 
 
 
 
 
18252
 
18253
- if (!popperOffsets) {
18254
- return;
 
18255
  }
18256
 
18257
- if (checkMainAxis || checkAltAxis) {
18258
- var mainSide = mainAxis === 'y' ? enums_top : left;
18259
- var altSide = mainAxis === 'y' ? bottom : right;
18260
- var len = mainAxis === 'y' ? 'height' : 'width';
18261
- var offset = popperOffsets[mainAxis];
18262
- var min = popperOffsets[mainAxis] + overflow[mainSide];
18263
- var max = popperOffsets[mainAxis] - overflow[altSide];
18264
- var additive = tether ? -popperRect[len] / 2 : 0;
18265
- var minLen = variation === start ? referenceRect[len] : popperRect[len];
18266
- var maxLen = variation === start ? -popperRect[len] : -referenceRect[len]; // We need to include the arrow in the calculation so the arrow doesn't go
18267
- // outside the reference bounds
18268
 
18269
- var arrowElement = state.elements.arrow;
18270
- var arrowRect = tether && arrowElement ? getLayoutRect(arrowElement) : {
18271
- width: 0,
18272
- height: 0
18273
- };
18274
- var arrowPaddingObject = state.modifiersData['arrow#persistent'] ? state.modifiersData['arrow#persistent'].padding : getFreshSideObject();
18275
- var arrowPaddingMin = arrowPaddingObject[mainSide];
18276
- var arrowPaddingMax = arrowPaddingObject[altSide]; // If the reference length is smaller than the arrow length, we don't want
18277
- // to include its full size in the calculation. If the reference is small
18278
- // and near the edge of a boundary, the popper can overflow even if the
18279
- // reference is not overflowing as well (e.g. virtual elements with no
18280
- // width or height)
18281
 
18282
- var arrowLen = within(0, referenceRect[len], arrowRect[len]);
18283
- var minOffset = isBasePlacement ? referenceRect[len] / 2 - additive - arrowLen - arrowPaddingMin - tetherOffsetValue : minLen - arrowLen - arrowPaddingMin - tetherOffsetValue;
18284
- var maxOffset = isBasePlacement ? -referenceRect[len] / 2 + additive + arrowLen + arrowPaddingMax + tetherOffsetValue : maxLen + arrowLen + arrowPaddingMax + tetherOffsetValue;
18285
- var arrowOffsetParent = state.elements.arrow && getOffsetParent(state.elements.arrow);
18286
- var clientOffset = arrowOffsetParent ? mainAxis === 'y' ? arrowOffsetParent.clientTop || 0 : arrowOffsetParent.clientLeft || 0 : 0;
18287
- var offsetModifierValue = state.modifiersData.offset ? state.modifiersData.offset[state.placement][mainAxis] : 0;
18288
- var tetherMin = popperOffsets[mainAxis] + minOffset - offsetModifierValue - clientOffset;
18289
- var tetherMax = popperOffsets[mainAxis] + maxOffset - offsetModifierValue;
18290
 
18291
- if (checkMainAxis) {
18292
- var preventedOffset = within(tether ? math_min(min, tetherMin) : min, offset, tether ? math_max(max, tetherMax) : max);
18293
- popperOffsets[mainAxis] = preventedOffset;
18294
- data[mainAxis] = preventedOffset - offset;
18295
- }
18296
 
18297
- if (checkAltAxis) {
18298
- var _mainSide = mainAxis === 'x' ? enums_top : left;
 
 
18299
 
18300
- var _altSide = mainAxis === 'x' ? bottom : right;
 
 
 
 
18301
 
18302
- var _offset = popperOffsets[altAxis];
 
 
18303
 
18304
- var _min = _offset + overflow[_mainSide];
18305
 
18306
- var _max = _offset - overflow[_altSide];
 
 
 
 
 
 
 
18307
 
18308
- var _preventedOffset = within(tether ? math_min(_min, tetherMin) : _min, _offset, tether ? math_max(_max, tetherMax) : _max);
18309
 
18310
- popperOffsets[altAxis] = _preventedOffset;
18311
- data[altAxis] = _preventedOffset - _offset;
18312
- }
18313
- }
18314
 
18315
- state.modifiersData[name] = data;
18316
- } // eslint-disable-next-line import/no-unused-modules
18317
 
 
 
 
 
 
 
 
 
 
 
 
 
18318
 
18319
- /* harmony default export */ var modifiers_preventOverflow = ({
18320
- name: 'preventOverflow',
18321
- enabled: true,
18322
- phase: 'main',
18323
- fn: preventOverflow,
18324
- requiresIfExists: ['offset']
18325
- });
18326
- ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/modifiers/arrow.js
18327
 
18328
 
18329
 
 
 
 
 
 
 
 
 
 
 
 
18330
 
 
 
 
 
18331
 
 
 
 
 
 
 
18332
 
 
 
 
18333
 
18334
 
18335
 
18336
- // eslint-disable-next-line import/no-unused-modules
18337
 
18338
- var toPaddingObject = function toPaddingObject(padding, state) {
18339
- padding = typeof padding === 'function' ? padding(Object.assign({}, state.rects, {
18340
- placement: state.placement
18341
- })) : padding;
18342
- return mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));
18343
- };
18344
 
18345
- function arrow(_ref) {
18346
- var _state$modifiersData$;
18347
 
18348
- var state = _ref.state,
18349
- name = _ref.name,
18350
- options = _ref.options;
18351
- var arrowElement = state.elements.arrow;
18352
- var popperOffsets = state.modifiersData.popperOffsets;
18353
- var basePlacement = getBasePlacement(state.placement);
18354
- var axis = getMainAxisFromPlacement(basePlacement);
18355
- var isVertical = [left, right].indexOf(basePlacement) >= 0;
18356
- var len = isVertical ? 'height' : 'width';
18357
 
18358
- if (!arrowElement || !popperOffsets) {
18359
- return;
 
18360
  }
18361
 
18362
- var paddingObject = toPaddingObject(options.padding, state);
18363
- var arrowRect = getLayoutRect(arrowElement);
18364
- var minProp = axis === 'y' ? enums_top : left;
18365
- var maxProp = axis === 'y' ? bottom : right;
18366
- var endDiff = state.rects.reference[len] + state.rects.reference[axis] - popperOffsets[axis] - state.rects.popper[len];
18367
- var startDiff = popperOffsets[axis] - state.rects.reference[axis];
18368
- var arrowOffsetParent = getOffsetParent(arrowElement);
18369
- var clientSize = arrowOffsetParent ? axis === 'y' ? arrowOffsetParent.clientHeight || 0 : arrowOffsetParent.clientWidth || 0 : 0;
18370
- var centerToReference = endDiff / 2 - startDiff / 2; // Make sure the arrow doesn't overflow the popper if the center point is
18371
- // outside of the popper bounds
 
18372
 
18373
- var min = paddingObject[minProp];
18374
- var max = clientSize - arrowRect[len] - paddingObject[maxProp];
18375
- var center = clientSize / 2 - arrowRect[len] / 2 + centerToReference;
18376
- var offset = within(min, center, max); // Prevents breaking syntax highlighting...
 
18377
 
18378
- var axisProp = axis;
18379
- state.modifiersData[name] = (_state$modifiersData$ = {}, _state$modifiersData$[axisProp] = offset, _state$modifiersData$.centerOffset = offset - center, _state$modifiersData$);
18380
- }
 
 
 
 
 
18381
 
18382
- function arrow_effect(_ref2) {
18383
- var state = _ref2.state,
18384
- options = _ref2.options;
18385
- var _options$element = options.element,
18386
- arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element;
 
 
 
 
 
18387
 
18388
- if (arrowElement == null) {
18389
- return;
18390
- } // CSS selector
18391
 
 
 
18392
 
18393
- if (typeof arrowElement === 'string') {
18394
- arrowElement = state.elements.popper.querySelector(arrowElement);
 
18395
 
18396
- if (!arrowElement) {
18397
- return;
18398
- }
18399
  }
18400
 
18401
- if (false) {}
 
 
 
 
 
 
 
18402
 
18403
- if (!contains(state.elements.popper, arrowElement)) {
18404
- if (false) {}
18405
 
18406
- return;
 
 
 
18407
  }
18408
 
18409
- state.elements.arrow = arrowElement;
18410
- } // eslint-disable-next-line import/no-unused-modules
 
 
 
 
 
 
18411
 
 
 
 
18412
 
18413
- /* harmony default export */ var modifiers_arrow = ({
18414
- name: 'arrow',
18415
- enabled: true,
18416
- phase: 'main',
18417
- fn: arrow,
18418
- effect: arrow_effect,
18419
- requires: ['popperOffsets'],
18420
- requiresIfExists: ['preventOverflow']
18421
- });
18422
- ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/modifiers/hide.js
18423
 
18424
 
18425
 
18426
- function getSideOffsets(overflow, rect, preventedOffsets) {
18427
- if (preventedOffsets === void 0) {
18428
- preventedOffsets = {
18429
- x: 0,
18430
- y: 0
18431
- };
18432
  }
18433
 
18434
- return {
18435
- top: overflow.top - rect.height - preventedOffsets.y,
18436
- right: overflow.right - rect.width + preventedOffsets.x,
18437
- bottom: overflow.bottom - rect.height + preventedOffsets.y,
18438
- left: overflow.left - rect.width - preventedOffsets.x
18439
- };
18440
- }
18441
 
18442
- function isAnySideFullyClipped(overflow) {
18443
- return [enums_top, right, bottom, left].some(function (side) {
18444
- return overflow[side] >= 0;
18445
- });
18446
  }
 
18447
 
18448
- function hide(_ref) {
18449
- var state = _ref.state,
18450
- name = _ref.name;
18451
- var referenceRect = state.rects.reference;
18452
- var popperRect = state.rects.popper;
18453
- var preventedOffsets = state.modifiersData.preventOverflow;
18454
- var referenceOverflow = detectOverflow(state, {
18455
- elementContext: 'reference'
18456
- });
18457
- var popperAltOverflow = detectOverflow(state, {
18458
- altBoundary: true
18459
- });
18460
- var referenceClippingOffsets = getSideOffsets(referenceOverflow, referenceRect);
18461
- var popperEscapeOffsets = getSideOffsets(popperAltOverflow, popperRect, preventedOffsets);
18462
- var isReferenceHidden = isAnySideFullyClipped(referenceClippingOffsets);
18463
- var hasPopperEscaped = isAnySideFullyClipped(popperEscapeOffsets);
18464
- state.modifiersData[name] = {
18465
- referenceClippingOffsets: referenceClippingOffsets,
18466
- popperEscapeOffsets: popperEscapeOffsets,
18467
- isReferenceHidden: isReferenceHidden,
18468
- hasPopperEscaped: hasPopperEscaped
18469
- };
18470
- state.attributes.popper = Object.assign({}, state.attributes.popper, {
18471
- 'data-popper-reference-hidden': isReferenceHidden,
18472
- 'data-popper-escaped': hasPopperEscaped
18473
- });
18474
- } // eslint-disable-next-line import/no-unused-modules
18475
 
18476
 
18477
- /* harmony default export */ var modifiers_hide = ({
18478
- name: 'hide',
18479
- enabled: true,
18480
- phase: 'main',
18481
- requiresIfExists: ['preventOverflow'],
18482
- fn: hide
18483
- });
18484
- ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/popper.js
18485
 
 
 
 
 
 
 
18486
 
 
 
18487
 
 
 
 
18488
 
 
 
 
 
 
 
 
 
 
18489
 
 
 
 
 
18490
 
18491
 
18492
 
18493
 
18494
 
18495
- var defaultModifiers = [eventListeners, modifiers_popperOffsets, modifiers_computeStyles, modifiers_applyStyles, modifiers_offset, modifiers_flip, modifiers_preventOverflow, modifiers_arrow, modifiers_hide];
18496
- var popper_createPopper = /*#__PURE__*/popperGenerator({
18497
- defaultModifiers: defaultModifiers
18498
- }); // eslint-disable-next-line import/no-unused-modules
18499
 
18500
- // eslint-disable-next-line import/no-unused-modules
18501
 
18502
- // eslint-disable-next-line import/no-unused-modules
 
 
 
 
18503
 
 
 
 
18504
 
18505
- ;// CONCATENATED MODULE: ./node_modules/@tippyjs/react/node_modules/tippy.js/dist/tippy.esm.js
18506
- /**!
18507
- * tippy.js v6.3.1
18508
- * (c) 2017-2021 atomiks
18509
- * MIT License
18510
- */
18511
 
 
 
 
18512
 
18513
- var ROUND_ARROW = '<svg width="16" height="6" xmlns="http://www.w3.org/2000/svg"><path d="M0 6s1.796-.013 4.67-3.615C5.851.9 6.93.006 8 0c1.07-.006 2.148.887 3.343 2.385C14.233 6.005 16 6 16 6H0z"></svg>';
18514
- var BOX_CLASS = "tippy-box";
18515
- var CONTENT_CLASS = "tippy-content";
18516
- var BACKDROP_CLASS = "tippy-backdrop";
18517
- var ARROW_CLASS = "tippy-arrow";
18518
- var SVG_ARROW_CLASS = "tippy-svg-arrow";
18519
- var TOUCH_OPTIONS = {
18520
- passive: true,
18521
- capture: true
18522
- };
18523
 
18524
- function tippy_esm_hasOwnProperty(obj, key) {
18525
- return {}.hasOwnProperty.call(obj, key);
18526
- }
18527
- function getValueAtIndexOrReturn(value, index, defaultValue) {
18528
- if (Array.isArray(value)) {
18529
- var v = value[index];
18530
- return v == null ? Array.isArray(defaultValue) ? defaultValue[index] : defaultValue : v;
18531
  }
18532
 
18533
- return value;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18534
  }
18535
- function isType(value, type) {
18536
- var str = {}.toString.call(value);
18537
- return str.indexOf('[object') === 0 && str.indexOf(type + "]") > -1;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18538
  }
18539
- function invokeWithArgsOrReturn(value, args) {
18540
- return typeof value === 'function' ? value.apply(void 0, args) : value;
 
 
 
 
 
 
 
 
18541
  }
18542
- function tippy_esm_debounce(fn, ms) {
18543
- // Avoid wrapping in `setTimeout` if ms is 0 anyway
18544
- if (ms === 0) {
18545
- return fn;
18546
- }
 
 
 
 
 
 
 
18547
 
18548
- var timeout;
18549
- return function (arg) {
18550
- clearTimeout(timeout);
18551
- timeout = setTimeout(function () {
18552
- fn(arg);
18553
- }, ms);
18554
  };
18555
  }
18556
- function removeProperties(obj, keys) {
18557
- var clone = Object.assign({}, obj);
18558
- keys.forEach(function (key) {
18559
- delete clone[key];
 
 
 
 
 
 
 
 
 
18560
  });
18561
- return clone;
18562
- }
18563
- function splitBySpaces(value) {
18564
- return value.split(/\s+/).filter(Boolean);
18565
- }
18566
- function normalizeToArray(value) {
18567
- return [].concat(value);
18568
  }
18569
- function pushIfUnique(arr, value) {
18570
- if (arr.indexOf(value) === -1) {
18571
- arr.push(value);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18572
  }
18573
- }
18574
- function unique(arr) {
18575
- return arr.filter(function (item, index) {
18576
- return arr.indexOf(item) === index;
18577
  });
18578
  }
18579
- function tippy_esm_getBasePlacement(placement) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18580
  return placement.split('-')[0];
18581
  }
18582
- function arrayFrom(value) {
18583
- return [].slice.call(value);
 
18584
  }
18585
- function removeUndefinedProps(obj) {
18586
- return Object.keys(obj).reduce(function (acc, key) {
18587
- if (obj[key] !== undefined) {
18588
- acc[key] = obj[key];
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18589
  }
 
18590
 
18591
- return acc;
18592
- }, {});
18593
  }
 
18594
 
18595
- function div() {
18596
- return document.createElement('div');
18597
- }
18598
- function tippy_esm_isElement(value) {
18599
- return ['Element', 'Fragment'].some(function (type) {
18600
- return isType(value, type);
 
 
 
 
 
 
 
18601
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18602
  }
18603
- function isNodeList(value) {
18604
- return isType(value, 'NodeList');
18605
- }
18606
- function isMouseEvent(value) {
18607
- return isType(value, 'MouseEvent');
18608
- }
18609
- function isReferenceElement(value) {
18610
- return !!(value && value._tippy && value._tippy.reference === value);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18611
  }
18612
- function getArrayOfElements(value) {
18613
- if (tippy_esm_isElement(value)) {
18614
- return [value];
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18615
  }
18616
 
18617
- if (isNodeList(value)) {
18618
- return arrayFrom(value);
 
 
 
 
 
18619
  }
18620
 
18621
- if (Array.isArray(value)) {
18622
- return value;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18623
  }
18624
 
18625
- return arrayFrom(document.querySelectorAll(value));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18626
  }
18627
- function setTransitionDuration(els, value) {
18628
- els.forEach(function (el) {
18629
- if (el) {
18630
- el.style.transitionDuration = value + "ms";
18631
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18632
  });
18633
  }
18634
- function setVisibilityState(els, state) {
18635
- els.forEach(function (el) {
18636
- if (el) {
18637
- el.setAttribute('data-state', state);
18638
- }
 
 
 
18639
  });
18640
  }
18641
- function getOwnerDocument(elementOrElements) {
18642
- var _element$ownerDocumen;
18643
 
18644
- var _normalizeToArray = normalizeToArray(elementOrElements),
18645
- element = _normalizeToArray[0]; // Elements created via a <template> have an ownerDocument with no reference to the body
18646
 
18647
 
18648
- return (element == null ? void 0 : (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body) ? element.ownerDocument : document;
18649
- }
18650
- function isCursorOutsideInteractiveBorder(popperTreeData, event) {
18651
- var clientX = event.clientX,
18652
- clientY = event.clientY;
18653
- return popperTreeData.every(function (_ref) {
18654
- var popperRect = _ref.popperRect,
18655
- popperState = _ref.popperState,
18656
- props = _ref.props;
18657
- var interactiveBorder = props.interactiveBorder;
18658
- var basePlacement = tippy_esm_getBasePlacement(popperState.placement);
18659
- var offsetData = popperState.modifiersData.offset;
18660
 
18661
- if (!offsetData) {
18662
- return true;
 
 
 
 
 
 
 
 
 
 
 
 
18663
  }
 
18664
 
18665
- var topDistance = basePlacement === 'bottom' ? offsetData.top.y : 0;
18666
- var bottomDistance = basePlacement === 'top' ? offsetData.bottom.y : 0;
18667
- var leftDistance = basePlacement === 'right' ? offsetData.left.x : 0;
18668
- var rightDistance = basePlacement === 'left' ? offsetData.right.x : 0;
18669
- var exceedsTop = popperRect.top - clientY + topDistance > interactiveBorder;
18670
- var exceedsBottom = clientY - popperRect.bottom - bottomDistance > interactiveBorder;
18671
- var exceedsLeft = popperRect.left - clientX + leftDistance > interactiveBorder;
18672
- var exceedsRight = clientX - popperRect.right - rightDistance > interactiveBorder;
18673
- return exceedsTop || exceedsBottom || exceedsLeft || exceedsRight;
18674
- });
18675
  }
18676
- function updateTransitionEndListener(box, action, listener) {
18677
- var method = action + "EventListener"; // some browsers apparently support `transition` (unprefixed) but only fire
18678
- // `webkitTransitionEnd`...
18679
 
18680
- ['transitionend', 'webkitTransitionEnd'].forEach(function (event) {
18681
- box[method](event, listener);
18682
- });
18683
- }
18684
 
18685
- var currentInput = {
18686
- isTouch: false
18687
- };
18688
- var lastMouseMoveTime = 0;
18689
- /**
18690
- * When a `touchstart` event is fired, it's assumed the user is using touch
18691
- * input. We'll bind a `mousemove` event listener to listen for mouse input in
18692
- * the future. This way, the `isTouch` property is fully dynamic and will handle
18693
- * hybrid devices that use a mix of touch + mouse input.
18694
- */
18695
 
18696
- function onDocumentTouchStart() {
18697
- if (currentInput.isTouch) {
18698
- return;
18699
- }
18700
 
18701
- currentInput.isTouch = true;
 
18702
 
18703
- if (window.performance) {
18704
- document.addEventListener('mousemove', onDocumentMouseMove);
18705
- }
18706
- }
18707
- /**
18708
- * When two `mousemove` event are fired consecutively within 20ms, it's assumed
18709
- * the user is using mouse input again. `mousemove` can fire on touch devices as
18710
- * well, but very rarely that quickly.
18711
- */
18712
 
18713
- function onDocumentMouseMove() {
18714
- var now = performance.now();
 
 
 
 
 
18715
 
18716
- if (now - lastMouseMoveTime < 20) {
18717
- currentInput.isTouch = false;
18718
- document.removeEventListener('mousemove', onDocumentMouseMove);
18719
  }
18720
 
18721
- lastMouseMoveTime = now;
 
 
 
 
 
18722
  }
18723
- /**
18724
- * When an element is in focus and has a tippy, leaving the tab/window and
18725
- * returning causes it to show again. For mouse users this is unexpected, but
18726
- * for keyboard use it makes sense.
18727
- * TODO: find a better technique to solve this problem
18728
- */
18729
 
18730
- function onWindowBlur() {
18731
- var activeElement = document.activeElement;
18732
 
18733
- if (isReferenceElement(activeElement)) {
18734
- var instance = activeElement._tippy;
 
 
 
18735
 
18736
- if (activeElement.blur && !instance.state.isVisible) {
18737
- activeElement.blur();
18738
- }
18739
- }
18740
- }
18741
- function bindGlobalEventListeners() {
18742
- document.addEventListener('touchstart', onDocumentTouchStart, TOUCH_OPTIONS);
18743
- window.addEventListener('blur', onWindowBlur);
18744
- }
18745
 
18746
- var isBrowser = typeof window !== 'undefined' && typeof document !== 'undefined';
18747
- var ua = isBrowser ? navigator.userAgent : '';
18748
- var isIE = /MSIE |Trident\//.test(ua);
18749
 
18750
- function createMemoryLeakWarning(method) {
18751
- var txt = method === 'destroy' ? 'n already-' : ' ';
18752
- return [method + "() was called on a" + txt + "destroyed instance. This is a no-op but", 'indicates a potential memory leak.'].join(' ');
 
 
 
18753
  }
18754
- function clean(value) {
18755
- var spacesAndTabs = /[ \t]{2,}/g;
18756
- var lineStartWithSpaces = /^[ \t]*/gm;
18757
- return value.replace(spacesAndTabs, ' ').replace(lineStartWithSpaces, '').trim();
 
 
 
 
18758
  }
 
18759
 
18760
- function getDevMessage(message) {
18761
- return clean("\n %ctippy.js\n\n %c" + clean(message) + "\n\n %c\uD83D\uDC77\u200D This is a development-only message. It will be removed in production.\n ");
18762
- }
18763
 
18764
- function getFormattedMessage(message) {
18765
- return [getDevMessage(message), // title
18766
- 'color: #00C584; font-size: 1.3em; font-weight: bold;', // message
18767
- 'line-height: 1.5', // footer
18768
- 'color: #a6a095;'];
18769
- } // Assume warnings and errors never have the same message
18770
 
18771
- var visitedMessages;
18772
 
18773
- if (false) {}
18774
 
18775
- function resetVisitedMessages() {
18776
- visitedMessages = new Set();
18777
- }
18778
- function warnWhen(condition, message) {
18779
- if (condition && !visitedMessages.has(message)) {
18780
- var _console;
18781
 
18782
- visitedMessages.add(message);
18783
 
18784
- (_console = console).warn.apply(_console, getFormattedMessage(message));
18785
- }
18786
- }
18787
- function errorWhen(condition, message) {
18788
- if (condition && !visitedMessages.has(message)) {
18789
- var _console2;
18790
 
18791
- visitedMessages.add(message);
18792
 
18793
- (_console2 = console).error.apply(_console2, getFormattedMessage(message));
18794
- }
18795
- }
18796
- function validateTargets(targets) {
18797
- var didPassFalsyValue = !targets;
18798
- var didPassPlainObject = Object.prototype.toString.call(targets) === '[object Object]' && !targets.addEventListener;
18799
- errorWhen(didPassFalsyValue, ['tippy() was passed', '`' + String(targets) + '`', 'as its targets (first) argument. Valid types are: String, Element,', 'Element[], or NodeList.'].join(' '));
18800
- errorWhen(didPassPlainObject, ['tippy() was passed a plain object which is not supported as an argument', 'for virtual positioning. Use props.getReferenceClientRect instead.'].join(' '));
18801
- }
18802
 
18803
- var pluginProps = {
18804
- animateFill: false,
18805
- followCursor: false,
18806
- inlinePositioning: false,
18807
- sticky: false
18808
- };
18809
- var renderProps = {
18810
- allowHTML: false,
18811
- animation: 'fade',
18812
- arrow: true,
18813
- content: '',
18814
- inertia: false,
18815
- maxWidth: 350,
18816
- role: 'tooltip',
18817
- theme: '',
18818
- zIndex: 9999
18819
- };
18820
- var tippy_esm_defaultProps = Object.assign({
18821
- appendTo: function appendTo() {
18822
- return document.body;
18823
- },
18824
- aria: {
18825
- content: 'auto',
18826
- expanded: 'auto'
18827
- },
18828
- delay: 0,
18829
- duration: [300, 250],
18830
- getReferenceClientRect: null,
18831
- hideOnClick: true,
18832
- ignoreAttributes: false,
18833
- interactive: false,
18834
- interactiveBorder: 2,
18835
- interactiveDebounce: 0,
18836
- moveTransition: '',
18837
- offset: [0, 10],
18838
- onAfterUpdate: function onAfterUpdate() {},
18839
- onBeforeUpdate: function onBeforeUpdate() {},
18840
- onCreate: function onCreate() {},
18841
- onDestroy: function onDestroy() {},
18842
- onHidden: function onHidden() {},
18843
- onHide: function onHide() {},
18844
- onMount: function onMount() {},
18845
- onShow: function onShow() {},
18846
- onShown: function onShown() {},
18847
- onTrigger: function onTrigger() {},
18848
- onUntrigger: function onUntrigger() {},
18849
- onClickOutside: function onClickOutside() {},
18850
- placement: 'top',
18851
- plugins: [],
18852
- popperOptions: {},
18853
- render: null,
18854
- showOnCreate: false,
18855
- touch: true,
18856
- trigger: 'mouseenter focus',
18857
- triggerTarget: null
18858
- }, pluginProps, {}, renderProps);
18859
- var defaultKeys = Object.keys(tippy_esm_defaultProps);
18860
- var setDefaultProps = function setDefaultProps(partialProps) {
18861
- /* istanbul ignore else */
18862
- if (false) {}
18863
 
18864
- var keys = Object.keys(partialProps);
18865
- keys.forEach(function (key) {
18866
- tippy_esm_defaultProps[key] = partialProps[key];
18867
- });
18868
- };
18869
- function getExtendedPassedProps(passedProps) {
18870
- var plugins = passedProps.plugins || [];
18871
- var pluginProps = plugins.reduce(function (acc, plugin) {
18872
- var name = plugin.name,
18873
- defaultValue = plugin.defaultValue;
18874
 
18875
- if (name) {
18876
- acc[name] = passedProps[name] !== undefined ? passedProps[name] : defaultValue;
18877
- }
18878
 
18879
- return acc;
18880
- }, {});
18881
- return Object.assign({}, passedProps, {}, pluginProps);
 
 
 
 
 
 
 
 
 
 
18882
  }
18883
- function getDataAttributeProps(reference, plugins) {
18884
- var propKeys = plugins ? Object.keys(getExtendedPassedProps(Object.assign({}, tippy_esm_defaultProps, {
18885
- plugins: plugins
18886
- }))) : defaultKeys;
18887
- var props = propKeys.reduce(function (acc, key) {
18888
- var valueAsString = (reference.getAttribute("data-tippy-" + key) || '').trim();
18889
 
18890
- if (!valueAsString) {
18891
- return acc;
18892
- }
 
 
18893
 
18894
- if (key === 'content') {
18895
- acc[key] = valueAsString;
18896
- } else {
18897
- try {
18898
- acc[key] = JSON.parse(valueAsString);
18899
- } catch (e) {
18900
- acc[key] = valueAsString;
18901
- }
18902
- }
18903
 
18904
- return acc;
18905
- }, {});
18906
- return props;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18907
  }
18908
- function evaluateProps(reference, props) {
18909
- var out = Object.assign({}, props, {
18910
- content: invokeWithArgsOrReturn(props.content, [reference])
18911
- }, props.ignoreAttributes ? {} : getDataAttributeProps(reference, props.plugins));
18912
- out.aria = Object.assign({}, tippy_esm_defaultProps.aria, {}, out.aria);
18913
- out.aria = {
18914
- expanded: out.aria.expanded === 'auto' ? props.interactive : out.aria.expanded,
18915
- content: out.aria.content === 'auto' ? props.interactive ? null : 'describedby' : out.aria.content
18916
  };
18917
- return out;
18918
  }
18919
- function validateProps(partialProps, plugins) {
18920
- if (partialProps === void 0) {
18921
- partialProps = {};
18922
- }
18923
 
18924
- if (plugins === void 0) {
18925
- plugins = [];
18926
- }
 
 
 
 
 
 
 
 
18927
 
18928
- var keys = Object.keys(partialProps);
18929
- keys.forEach(function (prop) {
18930
- var nonPluginProps = removeProperties(tippy_esm_defaultProps, Object.keys(pluginProps));
18931
- var didPassUnknownProp = !tippy_esm_hasOwnProperty(nonPluginProps, prop); // Check if the prop exists in `plugins`
18932
 
18933
- if (didPassUnknownProp) {
18934
- didPassUnknownProp = plugins.filter(function (plugin) {
18935
- return plugin.name === prop;
18936
- }).length === 0;
18937
- }
18938
 
18939
- warnWhen(didPassUnknownProp, ["`" + prop + "`", "is not a valid prop. You may have spelled it incorrectly, or if it's", 'a plugin, forgot to pass it in an array as props.plugins.', '\n\n', 'All props: https://atomiks.github.io/tippyjs/v6/all-props/\n', 'Plugins: https://atomiks.github.io/tippyjs/v6/plugins/'].join(' '));
18940
- });
18941
- }
18942
 
18943
- var innerHTML = function innerHTML() {
18944
- return 'innerHTML';
18945
- };
18946
 
18947
- function dangerouslySetInnerHTML(element, html) {
18948
- element[innerHTML()] = html;
18949
- }
18950
 
18951
- function createArrowElement(value) {
18952
- var arrow = div();
18953
 
18954
- if (value === true) {
18955
- arrow.className = ARROW_CLASS;
18956
- } else {
18957
- arrow.className = SVG_ARROW_CLASS;
18958
 
18959
- if (tippy_esm_isElement(value)) {
18960
- arrow.appendChild(value);
18961
- } else {
18962
- dangerouslySetInnerHTML(arrow, value);
18963
- }
18964
  }
18965
 
18966
- return arrow;
18967
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18968
 
18969
- function setContent(content, props) {
18970
- if (tippy_esm_isElement(props.content)) {
18971
- dangerouslySetInnerHTML(content, '');
18972
- content.appendChild(props.content);
18973
- } else if (typeof props.content !== 'function') {
18974
- if (props.allowHTML) {
18975
- dangerouslySetInnerHTML(content, props.content);
18976
- } else {
18977
- content.textContent = props.content;
18978
- }
18979
- }
18980
- }
18981
- function getChildren(popper) {
18982
- var box = popper.firstElementChild;
18983
- var boxChildren = arrayFrom(box.children);
18984
- return {
18985
- box: box,
18986
- content: boxChildren.find(function (node) {
18987
- return node.classList.contains(CONTENT_CLASS);
18988
- }),
18989
- arrow: boxChildren.find(function (node) {
18990
- return node.classList.contains(ARROW_CLASS) || node.classList.contains(SVG_ARROW_CLASS);
18991
- }),
18992
- backdrop: boxChildren.find(function (node) {
18993
- return node.classList.contains(BACKDROP_CLASS);
18994
- })
18995
  };
 
 
 
 
 
 
 
 
 
 
 
 
18996
  }
18997
- function render(instance) {
18998
- var popper = div();
18999
- var box = div();
19000
- box.className = BOX_CLASS;
19001
- box.setAttribute('data-state', 'hidden');
19002
- box.setAttribute('tabindex', '-1');
19003
- var content = div();
19004
- content.className = CONTENT_CLASS;
19005
- content.setAttribute('data-state', 'hidden');
19006
- setContent(content, instance.props);
19007
- popper.appendChild(box);
19008
- box.appendChild(content);
19009
- onUpdate(instance.props, instance.props);
19010
 
19011
- function onUpdate(prevProps, nextProps) {
19012
- var _getChildren = getChildren(popper),
19013
- box = _getChildren.box,
19014
- content = _getChildren.content,
19015
- arrow = _getChildren.arrow;
19016
 
19017
- if (nextProps.theme) {
19018
- box.setAttribute('data-theme', nextProps.theme);
19019
- } else {
19020
- box.removeAttribute('data-theme');
19021
- }
19022
 
19023
- if (typeof nextProps.animation === 'string') {
19024
- box.setAttribute('data-animation', nextProps.animation);
19025
- } else {
19026
- box.removeAttribute('data-animation');
19027
- }
19028
 
19029
- if (nextProps.inertia) {
19030
- box.setAttribute('data-inertia', '');
19031
- } else {
19032
- box.removeAttribute('data-inertia');
19033
- }
19034
 
19035
- box.style.maxWidth = typeof nextProps.maxWidth === 'number' ? nextProps.maxWidth + "px" : nextProps.maxWidth;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19036
 
19037
- if (nextProps.role) {
19038
- box.setAttribute('role', nextProps.role);
19039
- } else {
19040
- box.removeAttribute('role');
19041
- }
19042
 
19043
- if (prevProps.content !== nextProps.content || prevProps.allowHTML !== nextProps.allowHTML) {
19044
- setContent(content, instance.props);
19045
- }
19046
 
19047
- if (nextProps.arrow) {
19048
- if (!arrow) {
19049
- box.appendChild(createArrowElement(nextProps.arrow));
19050
- } else if (prevProps.arrow !== nextProps.arrow) {
19051
- box.removeChild(arrow);
19052
- box.appendChild(createArrowElement(nextProps.arrow));
19053
- }
19054
- } else if (arrow) {
19055
- box.removeChild(arrow);
19056
- }
19057
- }
19058
 
19059
- return {
19060
- popper: popper,
19061
- onUpdate: onUpdate
19062
- };
19063
- } // Runtime check to identify if the render function is the default one; this
19064
- // way we can apply default CSS transitions logic and it can be tree-shaken away
 
 
 
 
 
 
 
 
19065
 
19066
- render.$$tippy = true;
19067
 
19068
- var idCounter = 1;
19069
- var mouseMoveListeners = []; // Used by `hideAll()`
19070
 
19071
- var mountedInstances = [];
19072
- function createTippy(reference, passedProps) {
19073
- var props = evaluateProps(reference, Object.assign({}, tippy_esm_defaultProps, {}, getExtendedPassedProps(removeUndefinedProps(passedProps)))); // ===========================================================================
19074
- // 🔒 Private members
19075
- // ===========================================================================
19076
 
19077
- var showTimeout;
19078
- var hideTimeout;
19079
- var scheduleHideAnimationFrame;
19080
- var isVisibleFromClick = false;
19081
- var didHideDueToDocumentMouseDown = false;
19082
- var didTouchMove = false;
19083
- var ignoreOnFirstUpdate = false;
19084
- var lastTriggerEvent;
19085
- var currentTransitionEndListener;
19086
- var onFirstUpdate;
19087
- var listeners = [];
19088
- var debouncedOnMouseMove = tippy_esm_debounce(onMouseMove, props.interactiveDebounce);
19089
- var currentTarget; // ===========================================================================
19090
- // 🔑 Public members
19091
- // ===========================================================================
19092
 
19093
- var id = idCounter++;
19094
- var popperInstance = null;
19095
- var plugins = unique(props.plugins);
19096
- var state = {
19097
- // Is the instance currently enabled?
19098
- isEnabled: true,
19099
- // Is the tippy currently showing and not transitioning out?
19100
- isVisible: false,
19101
- // Has the instance been destroyed?
19102
- isDestroyed: false,
19103
- // Is the tippy currently mounted to the DOM?
19104
- isMounted: false,
19105
- // Has the tippy finished transitioning in?
19106
- isShown: false
19107
- };
19108
- var instance = {
19109
- // properties
19110
- id: id,
19111
- reference: reference,
19112
- popper: div(),
19113
- popperInstance: popperInstance,
19114
- props: props,
19115
- state: state,
19116
- plugins: plugins,
19117
- // methods
19118
- clearDelayTimeouts: clearDelayTimeouts,
19119
- setProps: setProps,
19120
- setContent: setContent,
19121
- show: show,
19122
- hide: hide,
19123
- hideWithInteractivity: hideWithInteractivity,
19124
- enable: enable,
19125
- disable: disable,
19126
- unmount: unmount,
19127
- destroy: destroy
19128
- }; // TODO: Investigate why this early return causes a TDZ error in the tests —
19129
- // it doesn't seem to happen in the browser
19130
 
19131
- /* istanbul ignore if */
19132
 
19133
- if (!props.render) {
19134
- if (false) {}
 
 
19135
 
19136
- return instance;
19137
- } // ===========================================================================
19138
- // Initial mutations
19139
- // ===========================================================================
19140
 
 
 
 
 
19141
 
19142
- var _props$render = props.render(instance),
19143
- popper = _props$render.popper,
19144
- onUpdate = _props$render.onUpdate;
19145
 
19146
- popper.setAttribute('data-tippy-root', '');
19147
- popper.id = "tippy-" + instance.id;
19148
- instance.popper = popper;
19149
- reference._tippy = instance;
19150
- popper._tippy = instance;
19151
- var pluginsHooks = plugins.map(function (plugin) {
19152
- return plugin.fn(instance);
19153
- });
19154
- var hasAriaExpanded = reference.hasAttribute('aria-expanded');
19155
- addListeners();
19156
- handleAriaExpandedAttribute();
19157
- handleStyles();
19158
- invokeHook('onCreate', [instance]);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19159
 
19160
- if (props.showOnCreate) {
19161
- scheduleShow();
19162
- } // Prevent a tippy with a delay from hiding if the cursor left then returned
19163
- // before it started hiding
19164
 
 
19165
 
19166
- popper.addEventListener('mouseenter', function () {
19167
- if (instance.props.interactive && instance.state.isVisible) {
19168
- instance.clearDelayTimeouts();
 
 
 
 
 
 
 
 
 
 
 
19169
  }
19170
- });
19171
- popper.addEventListener('mouseleave', function (event) {
19172
- if (instance.props.interactive && instance.props.trigger.indexOf('mouseenter') >= 0) {
19173
- getDocument().addEventListener('mousemove', debouncedOnMouseMove);
19174
- debouncedOnMouseMove(event);
 
19175
  }
19176
- });
19177
- return instance; // ===========================================================================
19178
- // 🔒 Private methods
19179
- // ===========================================================================
19180
 
19181
- function getNormalizedTouchSettings() {
19182
- var touch = instance.props.touch;
19183
- return Array.isArray(touch) ? touch : [touch, 0];
19184
- }
19185
 
19186
- function getIsCustomTouchBehavior() {
19187
- return getNormalizedTouchSettings()[0] === 'hold';
 
 
 
 
 
 
 
19188
  }
19189
 
19190
- function getIsDefaultRenderFn() {
19191
- var _instance$props$rende;
 
19192
 
19193
- // @ts-ignore
19194
- return !!((_instance$props$rende = instance.props.render) == null ? void 0 : _instance$props$rende.$$tippy);
19195
- }
19196
 
19197
- function getCurrentTarget() {
19198
- return currentTarget || reference;
19199
- }
 
 
 
19200
 
19201
- function getDocument() {
19202
- var parent = getCurrentTarget().parentNode;
19203
- return parent ? getOwnerDocument(parent) : document;
19204
- }
 
19205
 
19206
- function getDefaultTemplateChildren() {
19207
- return getChildren(popper);
19208
- }
19209
 
19210
- function getDelay(isShow) {
19211
- // For touch or keyboard input, force `0` delay for UX reasons
19212
- // Also if the instance is mounted but not visible (transitioning out),
19213
- // ignore delay
19214
- if (instance.state.isMounted && !instance.state.isVisible || currentInput.isTouch || lastTriggerEvent && lastTriggerEvent.type === 'focus') {
19215
- return 0;
19216
  }
 
19217
 
19218
- return getValueAtIndexOrReturn(instance.props.delay, isShow ? 0 : 1, tippy_esm_defaultProps.delay);
 
 
 
19219
  }
 
19220
 
19221
- function handleStyles() {
19222
- popper.style.pointerEvents = instance.props.interactive && instance.state.isVisible ? '' : 'none';
19223
- popper.style.zIndex = "" + instance.props.zIndex;
 
 
 
 
 
 
19224
  }
 
 
 
 
 
 
19225
 
19226
- function invokeHook(hook, args, shouldInvokePropsHook) {
19227
- if (shouldInvokePropsHook === void 0) {
19228
- shouldInvokePropsHook = true;
19229
- }
19230
 
19231
- pluginsHooks.forEach(function (pluginHooks) {
19232
- if (pluginHooks[hook]) {
19233
- pluginHooks[hook].apply(void 0, args);
19234
- }
19235
- });
19236
 
19237
- if (shouldInvokePropsHook) {
19238
- var _instance$props;
19239
 
19240
- (_instance$props = instance.props)[hook].apply(_instance$props, args);
19241
- }
19242
- }
19243
 
19244
- function handleAriaContentAttribute() {
19245
- var aria = instance.props.aria;
19246
 
19247
- if (!aria.content) {
19248
- return;
19249
- }
19250
 
19251
- var attr = "aria-" + aria.content;
19252
- var id = popper.id;
19253
- var nodes = normalizeToArray(instance.props.triggerTarget || reference);
19254
- nodes.forEach(function (node) {
19255
- var currentValue = node.getAttribute(attr);
19256
 
19257
- if (instance.state.isVisible) {
19258
- node.setAttribute(attr, currentValue ? currentValue + " " + id : id);
19259
- } else {
19260
- var nextValue = currentValue && currentValue.replace(id, '').trim();
19261
 
19262
- if (nextValue) {
19263
- node.setAttribute(attr, nextValue);
19264
- } else {
19265
- node.removeAttribute(attr);
19266
- }
19267
- }
19268
- });
19269
- }
19270
 
19271
- function handleAriaExpandedAttribute() {
19272
- if (hasAriaExpanded || !instance.props.aria.expanded) {
19273
- return;
19274
- }
19275
 
19276
- var nodes = normalizeToArray(instance.props.triggerTarget || reference);
19277
- nodes.forEach(function (node) {
19278
- if (instance.props.interactive) {
19279
- node.setAttribute('aria-expanded', instance.state.isVisible && node === getCurrentTarget() ? 'true' : 'false');
19280
- } else {
19281
- node.removeAttribute('aria-expanded');
19282
- }
19283
- });
19284
- }
19285
 
19286
- function cleanupInteractiveMouseListeners() {
19287
- getDocument().removeEventListener('mousemove', debouncedOnMouseMove);
19288
- mouseMoveListeners = mouseMoveListeners.filter(function (listener) {
19289
- return listener !== debouncedOnMouseMove;
19290
- });
19291
- }
19292
 
19293
- function onDocumentPress(event) {
19294
- // Moved finger to scroll instead of an intentional tap outside
19295
- if (currentInput.isTouch) {
19296
- if (didTouchMove || event.type === 'mousedown') {
19297
- return;
19298
- }
19299
- } // Clicked on interactive popper
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19300
 
 
 
 
19301
 
19302
- if (instance.props.interactive && popper.contains(event.target)) {
19303
- return;
19304
- } // Clicked on the event listeners target
 
 
 
 
 
 
 
 
19305
 
 
 
 
 
 
 
 
 
 
 
 
 
19306
 
19307
- if (getCurrentTarget().contains(event.target)) {
19308
- if (currentInput.isTouch) {
19309
- return;
19310
- }
 
 
 
 
19311
 
19312
- if (instance.state.isVisible && instance.props.trigger.indexOf('click') >= 0) {
19313
- return;
19314
- }
19315
- } else {
19316
- invokeHook('onClickOutside', [instance, event]);
19317
  }
19318
 
19319
- if (instance.props.hideOnClick === true) {
19320
- instance.clearDelayTimeouts();
19321
- instance.hide(); // `mousedown` event is fired right before `focus` if pressing the
19322
- // currentTarget. This lets a tippy with `focus` trigger know that it
19323
- // should not show
 
19324
 
19325
- didHideDueToDocumentMouseDown = true;
19326
- setTimeout(function () {
19327
- didHideDueToDocumentMouseDown = false;
19328
- }); // The listener gets added in `scheduleShow()`, but this may be hiding it
19329
- // before it shows, and hide()'s early bail-out behavior can prevent it
19330
- // from being cleaned up
19331
 
19332
- if (!instance.state.isMounted) {
19333
- removeDocumentPress();
19334
- }
 
 
 
19335
  }
19336
  }
19337
 
19338
- function onTouchMove() {
19339
- didTouchMove = true;
19340
- }
19341
 
19342
- function onTouchStart() {
19343
- didTouchMove = false;
19344
- }
19345
 
19346
- function addDocumentPress() {
19347
- var doc = getDocument();
19348
- doc.addEventListener('mousedown', onDocumentPress, true);
19349
- doc.addEventListener('touchend', onDocumentPress, TOUCH_OPTIONS);
19350
- doc.addEventListener('touchstart', onTouchStart, TOUCH_OPTIONS);
19351
- doc.addEventListener('touchmove', onTouchMove, TOUCH_OPTIONS);
19352
- }
 
19353
 
19354
- function removeDocumentPress() {
19355
- var doc = getDocument();
19356
- doc.removeEventListener('mousedown', onDocumentPress, true);
19357
- doc.removeEventListener('touchend', onDocumentPress, TOUCH_OPTIONS);
19358
- doc.removeEventListener('touchstart', onTouchStart, TOUCH_OPTIONS);
19359
- doc.removeEventListener('touchmove', onTouchMove, TOUCH_OPTIONS);
19360
- }
19361
 
19362
- function onTransitionedOut(duration, callback) {
19363
- onTransitionEnd(duration, function () {
19364
- if (!instance.state.isVisible && popper.parentNode && popper.parentNode.contains(popper)) {
19365
- callback();
19366
- }
19367
- });
19368
- }
19369
 
19370
- function onTransitionedIn(duration, callback) {
19371
- onTransitionEnd(duration, callback);
19372
- }
19373
 
19374
- function onTransitionEnd(duration, callback) {
19375
- var box = getDefaultTemplateChildren().box;
19376
 
19377
- function listener(event) {
19378
- if (event.target === box) {
19379
- updateTransitionEndListener(box, 'remove', listener);
19380
- callback();
19381
- }
19382
- } // Make callback synchronous if duration is 0
19383
- // `transitionend` won't fire otherwise
19384
 
19385
 
19386
- if (duration === 0) {
19387
- return callback();
19388
- }
19389
 
19390
- updateTransitionEndListener(box, 'remove', currentTransitionEndListener);
19391
- updateTransitionEndListener(box, 'add', listener);
19392
- currentTransitionEndListener = listener;
19393
- }
19394
 
19395
- function on(eventType, handler, options) {
19396
- if (options === void 0) {
19397
- options = false;
19398
- }
19399
 
19400
- var nodes = normalizeToArray(instance.props.triggerTarget || reference);
19401
- nodes.forEach(function (node) {
19402
- node.addEventListener(eventType, handler, options);
19403
- listeners.push({
19404
- node: node,
19405
- eventType: eventType,
19406
- handler: handler,
19407
- options: options
19408
- });
19409
- });
19410
- }
19411
 
19412
- function addListeners() {
19413
- if (getIsCustomTouchBehavior()) {
19414
- on('touchstart', onTrigger, {
19415
- passive: true
19416
- });
19417
- on('touchend', onMouseLeave, {
19418
- passive: true
19419
- });
19420
- }
19421
 
19422
- splitBySpaces(instance.props.trigger).forEach(function (eventType) {
19423
- if (eventType === 'manual') {
19424
- return;
19425
- }
 
 
 
 
 
19426
 
19427
- on(eventType, onTrigger);
 
 
19428
 
19429
- switch (eventType) {
19430
- case 'mouseenter':
19431
- on('mouseleave', onMouseLeave);
19432
- break;
 
 
 
 
 
 
19433
 
19434
- case 'focus':
19435
- on(isIE ? 'focusout' : 'blur', onBlurOrFocusOut);
19436
- break;
 
19437
 
19438
- case 'focusin':
19439
- on('focusout', onBlurOrFocusOut);
19440
- break;
19441
- }
19442
- });
19443
- }
19444
 
19445
- function removeListeners() {
19446
- listeners.forEach(function (_ref) {
19447
- var node = _ref.node,
19448
- eventType = _ref.eventType,
19449
- handler = _ref.handler,
19450
- options = _ref.options;
19451
- node.removeEventListener(eventType, handler, options);
19452
- });
19453
- listeners = [];
19454
- }
19455
 
19456
- function onTrigger(event) {
19457
- var _lastTriggerEvent;
 
19458
 
19459
- var shouldScheduleClickHide = false;
19460
 
19461
- if (!instance.state.isEnabled || isEventListenerStopped(event) || didHideDueToDocumentMouseDown) {
 
 
 
19462
  return;
19463
  }
 
19464
 
19465
- var wasFocused = ((_lastTriggerEvent = lastTriggerEvent) == null ? void 0 : _lastTriggerEvent.type) === 'focus';
19466
- lastTriggerEvent = event;
19467
- currentTarget = event.currentTarget;
19468
- handleAriaExpandedAttribute();
19469
 
19470
- if (!instance.state.isVisible && isMouseEvent(event)) {
19471
- // If scrolling, `mouseenter` events can be fired if the cursor lands
19472
- // over a new target, but `mousemove` events don't get fired. This
19473
- // causes interactive tooltips to get stuck open until the cursor is
19474
- // moved
19475
- mouseMoveListeners.forEach(function (listener) {
19476
- return listener(event);
19477
- });
19478
- } // Toggle show/hide when clicking click-triggered tooltips
19479
 
 
 
19480
 
19481
- if (event.type === 'click' && (instance.props.trigger.indexOf('mouseenter') < 0 || isVisibleFromClick) && instance.props.hideOnClick !== false && instance.state.isVisible) {
19482
- shouldScheduleClickHide = true;
19483
- } else {
19484
- scheduleShow(event);
19485
- }
19486
 
19487
- if (event.type === 'click') {
19488
- isVisibleFromClick = !shouldScheduleClickHide;
19489
- }
19490
 
19491
- if (shouldScheduleClickHide && !wasFocused) {
19492
- scheduleHide(event);
19493
- }
19494
- }
 
 
 
 
 
 
19495
 
19496
- function onMouseMove(event) {
19497
- var target = event.target;
19498
- var isCursorOverReferenceOrPopper = getCurrentTarget().contains(target) || popper.contains(target);
19499
 
19500
- if (event.type === 'mousemove' && isCursorOverReferenceOrPopper) {
19501
- return;
19502
- }
19503
 
19504
- var popperTreeData = getNestedPopperTree().concat(popper).map(function (popper) {
19505
- var _instance$popperInsta;
 
 
 
 
 
19506
 
19507
- var instance = popper._tippy;
19508
- var state = (_instance$popperInsta = instance.popperInstance) == null ? void 0 : _instance$popperInsta.state;
 
 
 
 
 
19509
 
19510
- if (state) {
19511
- return {
19512
- popperRect: popper.getBoundingClientRect(),
19513
- popperState: state,
19514
- props: props
19515
- };
19516
- }
19517
 
19518
- return null;
19519
- }).filter(Boolean);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19520
 
19521
- if (isCursorOutsideInteractiveBorder(popperTreeData, event)) {
19522
- cleanupInteractiveMouseListeners();
19523
- scheduleHide(event);
19524
- }
19525
- }
19526
 
19527
- function onMouseLeave(event) {
19528
- var shouldBail = isEventListenerStopped(event) || instance.props.trigger.indexOf('click') >= 0 && isVisibleFromClick;
 
 
 
 
 
 
19529
 
19530
- if (shouldBail) {
19531
- return;
19532
- }
19533
 
19534
- if (instance.props.interactive) {
19535
- instance.hideWithInteractivity(event);
19536
- return;
19537
- }
19538
 
19539
- scheduleHide(event);
19540
- }
19541
 
19542
- function onBlurOrFocusOut(event) {
19543
- if (instance.props.trigger.indexOf('focusin') < 0 && event.target !== getCurrentTarget()) {
19544
- return;
19545
- } // If focus was moved to within the popper
19546
 
19547
 
19548
- if (instance.props.interactive && event.relatedTarget && popper.contains(event.relatedTarget)) {
19549
- return;
19550
- }
19551
 
19552
- scheduleHide(event);
19553
- }
19554
 
19555
- function isEventListenerStopped(event) {
19556
- return currentInput.isTouch ? getIsCustomTouchBehavior() !== event.type.indexOf('touch') >= 0 : false;
19557
- }
19558
 
19559
- function createPopperInstance() {
19560
- destroyPopperInstance();
19561
- var _instance$props2 = instance.props,
19562
- popperOptions = _instance$props2.popperOptions,
19563
- placement = _instance$props2.placement,
19564
- offset = _instance$props2.offset,
19565
- getReferenceClientRect = _instance$props2.getReferenceClientRect,
19566
- moveTransition = _instance$props2.moveTransition;
19567
- var arrow = getIsDefaultRenderFn() ? getChildren(popper).arrow : null;
19568
- var computedReference = getReferenceClientRect ? {
19569
- getBoundingClientRect: getReferenceClientRect,
19570
- contextElement: getReferenceClientRect.contextElement || getCurrentTarget()
19571
- } : reference;
19572
- var tippyModifier = {
19573
- name: '$$tippy',
19574
- enabled: true,
19575
- phase: 'beforeWrite',
19576
- requires: ['computeStyles'],
19577
- fn: function fn(_ref2) {
19578
- var state = _ref2.state;
19579
 
19580
- if (getIsDefaultRenderFn()) {
19581
- var _getDefaultTemplateCh = getDefaultTemplateChildren(),
19582
- box = _getDefaultTemplateCh.box;
 
19583
 
19584
- ['placement', 'reference-hidden', 'escaped'].forEach(function (attr) {
19585
- if (attr === 'placement') {
19586
- box.setAttribute('data-placement', state.placement);
19587
- } else {
19588
- if (state.attributes.popper["data-popper-" + attr]) {
19589
- box.setAttribute("data-" + attr, '');
19590
- } else {
19591
- box.removeAttribute("data-" + attr);
19592
- }
19593
- }
19594
- });
19595
- state.attributes.popper = {};
19596
- }
19597
- }
19598
- };
19599
- var modifiers = [{
19600
- name: 'offset',
19601
- options: {
19602
- offset: offset
19603
- }
19604
- }, {
19605
- name: 'preventOverflow',
19606
- options: {
19607
- padding: {
19608
- top: 2,
19609
- bottom: 2,
19610
- left: 5,
19611
- right: 5
19612
- }
19613
- }
19614
- }, {
19615
- name: 'flip',
19616
- options: {
19617
- padding: 5
19618
- }
19619
- }, {
19620
- name: 'computeStyles',
19621
- options: {
19622
- adaptive: !moveTransition
19623
- }
19624
- }, tippyModifier];
19625
 
19626
- if (getIsDefaultRenderFn() && arrow) {
19627
- modifiers.push({
19628
- name: 'arrow',
19629
- options: {
19630
- element: arrow,
19631
- padding: 3
19632
- }
19633
- });
19634
- }
19635
 
19636
- modifiers.push.apply(modifiers, (popperOptions == null ? void 0 : popperOptions.modifiers) || []);
19637
- instance.popperInstance = popper_createPopper(computedReference, popper, Object.assign({}, popperOptions, {
19638
- placement: placement,
19639
- onFirstUpdate: onFirstUpdate,
19640
- modifiers: modifiers
19641
- }));
19642
- }
19643
 
19644
- function destroyPopperInstance() {
19645
- if (instance.popperInstance) {
19646
- instance.popperInstance.destroy();
19647
- instance.popperInstance = null;
19648
- }
19649
- }
19650
 
19651
- function mount() {
19652
- var appendTo = instance.props.appendTo;
19653
- var parentNode; // By default, we'll append the popper to the triggerTargets's parentNode so
19654
- // it's directly after the reference element so the elements inside the
19655
- // tippy can be tabbed to
19656
- // If there are clipping issues, the user can specify a different appendTo
19657
- // and ensure focus management is handled correctly manually
19658
 
19659
- var node = getCurrentTarget();
 
 
 
 
 
 
 
 
 
19660
 
19661
- if (instance.props.interactive && appendTo === tippy_esm_defaultProps.appendTo || appendTo === 'parent') {
19662
- parentNode = node.parentNode;
19663
- } else {
19664
- parentNode = invokeWithArgsOrReturn(appendTo, [node]);
19665
- } // The popper element needs to exist on the DOM before its position can be
19666
- // updated as Popper needs to read its dimensions
 
 
19667
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19668
 
19669
- if (!parentNode.contains(popper)) {
19670
- parentNode.appendChild(popper);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19671
  }
19672
 
19673
- createPopperInstance();
19674
- /* istanbul ignore else */
 
19675
 
19676
- if (false) {}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19677
  }
19678
 
19679
- function getNestedPopperTree() {
19680
- return arrayFrom(popper.querySelectorAll('[data-tippy-root]'));
19681
  }
19682
 
19683
- function scheduleShow(event) {
19684
- instance.clearDelayTimeouts();
19685
-
19686
- if (event) {
19687
- invokeHook('onTrigger', [instance, event]);
19688
- }
19689
-
19690
- addDocumentPress();
19691
- var delay = getDelay(true);
19692
-
19693
- var _getNormalizedTouchSe = getNormalizedTouchSettings(),
19694
- touchValue = _getNormalizedTouchSe[0],
19695
- touchDelay = _getNormalizedTouchSe[1];
19696
 
19697
- if (currentInput.isTouch && touchValue === 'hold' && touchDelay) {
19698
- delay = touchDelay;
 
 
 
 
19699
  }
19700
-
19701
- if (delay) {
19702
- showTimeout = setTimeout(function () {
19703
- instance.show();
19704
- }, delay);
19705
- } else {
19706
- instance.show();
19707
  }
19708
- }
 
 
 
19709
 
19710
- function scheduleHide(event) {
19711
- instance.clearDelayTimeouts();
19712
- invokeHook('onUntrigger', [instance, event]);
19713
 
19714
- if (!instance.state.isVisible) {
19715
- removeDocumentPress();
19716
- return;
19717
- } // For interactive tippies, scheduleHide is added to a document.body handler
19718
- // from onMouseLeave so must intercept scheduled hides from mousemove/leave
19719
- // events when trigger contains mouseenter and click, and the tip is
19720
- // currently shown as a result of a click.
19721
 
 
 
 
 
 
 
 
 
 
 
 
 
19722
 
19723
- if (instance.props.trigger.indexOf('mouseenter') >= 0 && instance.props.trigger.indexOf('click') >= 0 && ['mouseleave', 'mousemove'].indexOf(event.type) >= 0 && isVisibleFromClick) {
19724
- return;
19725
  }
19726
 
19727
- var delay = getDelay(false);
 
 
 
 
 
 
 
 
 
 
 
 
 
19728
 
19729
- if (delay) {
19730
- hideTimeout = setTimeout(function () {
19731
- if (instance.state.isVisible) {
19732
- instance.hide();
19733
- }
19734
- }, delay);
19735
- } else {
19736
- // Fixes a `transitionend` problem when it fires 1 frame too
19737
- // late sometimes, we don't want hide() to be called.
19738
- scheduleHideAnimationFrame = requestAnimationFrame(function () {
19739
- instance.hide();
19740
- });
19741
- }
19742
- } // ===========================================================================
19743
- // 🔑 Public methods
19744
- // ===========================================================================
19745
 
 
 
 
 
 
 
 
 
 
 
19746
 
19747
- function enable() {
19748
- instance.state.isEnabled = true;
 
19749
  }
19750
 
19751
- function disable() {
19752
- // Disabling the instance should also hide it
19753
- // https://github.com/atomiks/tippy.js-react/issues/106
19754
- instance.hide();
19755
- instance.state.isEnabled = false;
19756
- }
19757
 
19758
- function clearDelayTimeouts() {
19759
- clearTimeout(showTimeout);
19760
- clearTimeout(hideTimeout);
19761
- cancelAnimationFrame(scheduleHideAnimationFrame);
19762
  }
 
 
 
 
 
 
19763
 
19764
- function setProps(partialProps) {
19765
- /* istanbul ignore else */
19766
- if (false) {}
19767
-
19768
- if (instance.state.isDestroyed) {
19769
- return;
19770
- }
19771
-
19772
- invokeHook('onBeforeUpdate', [instance, partialProps]);
19773
- removeListeners();
19774
- var prevProps = instance.props;
19775
- var nextProps = evaluateProps(reference, Object.assign({}, instance.props, {}, partialProps, {
19776
- ignoreAttributes: true
19777
- }));
19778
- instance.props = nextProps;
19779
- addListeners();
19780
-
19781
- if (prevProps.interactiveDebounce !== nextProps.interactiveDebounce) {
19782
- cleanupInteractiveMouseListeners();
19783
- debouncedOnMouseMove = tippy_esm_debounce(onMouseMove, nextProps.interactiveDebounce);
19784
- } // Ensure stale aria-expanded attributes are removed
19785
-
19786
 
19787
- if (prevProps.triggerTarget && !nextProps.triggerTarget) {
19788
- normalizeToArray(prevProps.triggerTarget).forEach(function (node) {
19789
- node.removeAttribute('aria-expanded');
19790
- });
19791
- } else if (nextProps.triggerTarget) {
19792
- reference.removeAttribute('aria-expanded');
19793
- }
19794
 
19795
- handleAriaExpandedAttribute();
19796
- handleStyles();
 
 
 
 
 
 
19797
 
19798
- if (onUpdate) {
19799
- onUpdate(prevProps, nextProps);
19800
- }
19801
 
19802
- if (instance.popperInstance) {
19803
- createPopperInstance(); // Fixes an issue with nested tippies if they are all getting re-rendered,
19804
- // and the nested ones get re-rendered first.
19805
- // https://github.com/atomiks/tippyjs-react/issues/177
19806
- // TODO: find a cleaner / more efficient solution(!)
19807
 
19808
- getNestedPopperTree().forEach(function (nestedPopper) {
19809
- // React (and other UI libs likely) requires a rAF wrapper as it flushes
19810
- // its work in one
19811
- requestAnimationFrame(nestedPopper._tippy.popperInstance.forceUpdate);
19812
- });
19813
  }
19814
-
19815
- invokeHook('onAfterUpdate', [instance, partialProps]);
19816
- }
19817
-
19818
- function setContent(content) {
19819
- instance.setProps({
19820
- content: content
19821
- });
19822
  }
 
 
 
 
 
19823
 
19824
- function show() {
19825
- /* istanbul ignore else */
19826
- if (false) {} // Early bail-out
19827
-
19828
 
19829
- var isAlreadyVisible = instance.state.isVisible;
19830
- var isDestroyed = instance.state.isDestroyed;
19831
- var isDisabled = !instance.state.isEnabled;
19832
- var isTouchAndTouchDisabled = currentInput.isTouch && !instance.props.touch;
19833
- var duration = getValueAtIndexOrReturn(instance.props.duration, 0, tippy_esm_defaultProps.duration);
 
 
 
 
19834
 
19835
- if (isAlreadyVisible || isDestroyed || isDisabled || isTouchAndTouchDisabled) {
19836
- return;
19837
- } // Normalize `disabled` behavior across browsers.
19838
- // Firefox allows events on disabled elements, but Chrome doesn't.
19839
- // Using a wrapper element (i.e. <span>) is recommended.
19840
 
 
 
 
 
 
 
19841
 
19842
- if (getCurrentTarget().hasAttribute('disabled')) {
19843
- return;
19844
- }
19845
 
19846
- invokeHook('onShow', [instance], false);
19847
 
19848
- if (instance.props.onShow(instance) === false) {
19849
- return;
19850
- }
 
 
 
19851
 
19852
- instance.state.isVisible = true;
19853
 
19854
- if (getIsDefaultRenderFn()) {
19855
- popper.style.visibility = 'visible';
19856
- }
 
 
 
19857
 
19858
- handleStyles();
19859
- addDocumentPress();
19860
 
19861
- if (!instance.state.isMounted) {
19862
- popper.style.transition = 'none';
19863
- } // If flipping to the opposite side after hiding at least once, the
19864
- // animation will use the wrong placement without resetting the duration
 
 
 
 
 
19865
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19866
 
19867
- if (getIsDefaultRenderFn()) {
19868
- var _getDefaultTemplateCh2 = getDefaultTemplateChildren(),
19869
- box = _getDefaultTemplateCh2.box,
19870
- content = _getDefaultTemplateCh2.content;
 
 
 
 
 
 
19871
 
19872
- setTransitionDuration([box, content], 0);
 
19873
  }
19874
 
19875
- onFirstUpdate = function onFirstUpdate() {
19876
- var _instance$popperInsta2;
19877
-
19878
- if (!instance.state.isVisible || ignoreOnFirstUpdate) {
19879
- return;
19880
- }
19881
-
19882
- ignoreOnFirstUpdate = true; // reflow
19883
-
19884
- void popper.offsetHeight;
19885
- popper.style.transition = instance.props.moveTransition;
19886
-
19887
- if (getIsDefaultRenderFn() && instance.props.animation) {
19888
- var _getDefaultTemplateCh3 = getDefaultTemplateChildren(),
19889
- _box = _getDefaultTemplateCh3.box,
19890
- _content = _getDefaultTemplateCh3.content;
19891
-
19892
- setTransitionDuration([_box, _content], duration);
19893
- setVisibilityState([_box, _content], 'visible');
19894
- }
19895
-
19896
- handleAriaContentAttribute();
19897
- handleAriaExpandedAttribute();
19898
- pushIfUnique(mountedInstances, instance); // certain modifiers (e.g. `maxSize`) require a second update after the
19899
- // popper has been positioned for the first time
19900
 
19901
- (_instance$popperInsta2 = instance.popperInstance) == null ? void 0 : _instance$popperInsta2.forceUpdate();
19902
- instance.state.isMounted = true;
19903
- invokeHook('onMount', [instance]);
19904
 
19905
- if (instance.props.animation && getIsDefaultRenderFn()) {
19906
- onTransitionedIn(duration, function () {
19907
- instance.state.isShown = true;
19908
- invokeHook('onShown', [instance]);
19909
- });
 
 
19910
  }
19911
- };
19912
-
19913
- mount();
19914
- }
19915
-
19916
- function hide() {
19917
- /* istanbul ignore else */
19918
- if (false) {} // Early bail-out
19919
-
19920
-
19921
- var isAlreadyHidden = !instance.state.isVisible;
19922
- var isDestroyed = instance.state.isDestroyed;
19923
- var isDisabled = !instance.state.isEnabled;
19924
- var duration = getValueAtIndexOrReturn(instance.props.duration, 1, tippy_esm_defaultProps.duration);
19925
-
19926
- if (isAlreadyHidden || isDestroyed || isDisabled) {
19927
- return;
19928
  }
19929
 
19930
- invokeHook('onHide', [instance], false);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19931
 
19932
- if (instance.props.onHide(instance) === false) {
19933
- return;
19934
- }
19935
 
19936
- instance.state.isVisible = false;
19937
- instance.state.isShown = false;
19938
- ignoreOnFirstUpdate = false;
19939
- isVisibleFromClick = false;
19940
 
19941
- if (getIsDefaultRenderFn()) {
19942
- popper.style.visibility = 'hidden';
 
 
19943
  }
19944
 
19945
- cleanupInteractiveMouseListeners();
19946
- removeDocumentPress();
19947
- handleStyles();
19948
 
19949
- if (getIsDefaultRenderFn()) {
19950
- var _getDefaultTemplateCh4 = getDefaultTemplateChildren(),
19951
- box = _getDefaultTemplateCh4.box,
19952
- content = _getDefaultTemplateCh4.content;
19953
 
19954
- if (instance.props.animation) {
19955
- setTransitionDuration([box, content], duration);
19956
- setVisibilityState([box, content], 'hidden');
19957
- }
19958
- }
19959
 
19960
- handleAriaContentAttribute();
19961
- handleAriaExpandedAttribute();
19962
 
19963
- if (instance.props.animation) {
19964
- if (getIsDefaultRenderFn()) {
19965
- onTransitionedOut(duration, instance.unmount);
19966
- }
 
 
 
19967
  } else {
19968
- instance.unmount();
19969
  }
19970
  }
19971
 
19972
- function hideWithInteractivity(event) {
19973
- /* istanbul ignore else */
19974
- if (false) {}
19975
 
19976
- getDocument().addEventListener('mousemove', debouncedOnMouseMove);
19977
- pushIfUnique(mouseMoveListeners, debouncedOnMouseMove);
19978
- debouncedOnMouseMove(event);
 
 
 
 
 
 
 
19979
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19980
 
19981
- function unmount() {
19982
- /* istanbul ignore else */
19983
- if (false) {}
 
 
19984
 
19985
- if (instance.state.isVisible) {
19986
- instance.hide();
 
 
19987
  }
19988
 
19989
- if (!instance.state.isMounted) {
19990
- return;
 
 
19991
  }
19992
 
19993
- destroyPopperInstance(); // If a popper is not interactive, it will be appended outside the popper
19994
- // tree by default. This seems mainly for interactive tippies, but we should
19995
- // find a workaround if possible
19996
-
19997
- getNestedPopperTree().forEach(function (nestedPopper) {
19998
- nestedPopper._tippy.unmount();
19999
- });
20000
-
20001
- if (popper.parentNode) {
20002
- popper.parentNode.removeChild(popper);
20003
  }
20004
 
20005
- mountedInstances = mountedInstances.filter(function (i) {
20006
- return i !== instance;
20007
- });
20008
- instance.state.isMounted = false;
20009
- invokeHook('onHidden', [instance]);
20010
- }
20011
 
20012
- function destroy() {
20013
- /* istanbul ignore else */
20014
- if (false) {}
 
 
20015
 
20016
- if (instance.state.isDestroyed) {
20017
- return;
20018
  }
20019
 
20020
- instance.clearDelayTimeouts();
20021
- instance.unmount();
20022
- removeListeners();
20023
- delete reference._tippy;
20024
- instance.state.isDestroyed = true;
20025
- invokeHook('onDestroy', [instance]);
 
 
 
 
20026
  }
20027
- }
20028
 
20029
- function tippy(targets, optionalProps) {
20030
- if (optionalProps === void 0) {
20031
- optionalProps = {};
20032
- }
 
 
20033
 
20034
- var plugins = tippy_esm_defaultProps.plugins.concat(optionalProps.plugins || []);
20035
- /* istanbul ignore else */
20036
 
20037
- if (false) {}
 
20038
 
20039
- bindGlobalEventListeners();
20040
- var passedProps = Object.assign({}, optionalProps, {
20041
- plugins: plugins
20042
- });
20043
- var elements = getArrayOfElements(targets);
20044
- /* istanbul ignore else */
20045
 
20046
- if (false) { var isMoreThanOneReferenceElement, isSingleContentElement; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20047
 
20048
- var instances = elements.reduce(function (acc, reference) {
20049
- var instance = reference && createTippy(reference, passedProps);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20050
 
20051
- if (instance) {
20052
- acc.push(instance);
20053
- }
20054
 
20055
- return acc;
20056
- }, []);
20057
- return tippy_esm_isElement(targets) ? instances[0] : instances;
20058
- }
20059
 
20060
- tippy.defaultProps = tippy_esm_defaultProps;
20061
- tippy.setDefaultProps = setDefaultProps;
20062
- tippy.currentInput = currentInput;
20063
- var hideAll = function hideAll(_temp) {
20064
- var _ref = _temp === void 0 ? {} : _temp,
20065
- excludedReferenceOrInstance = _ref.exclude,
20066
- duration = _ref.duration;
20067
 
20068
- mountedInstances.forEach(function (instance) {
20069
- var isExcluded = false;
20070
 
20071
- if (excludedReferenceOrInstance) {
20072
- isExcluded = isReferenceElement(excludedReferenceOrInstance) ? instance.reference === excludedReferenceOrInstance : instance.popper === excludedReferenceOrInstance.popper;
20073
- }
20074
 
20075
- if (!isExcluded) {
20076
- var originalDuration = instance.props.duration;
20077
- instance.setProps({
20078
- duration: duration
20079
- });
20080
- instance.hide();
 
 
 
 
 
 
 
20081
 
20082
- if (!instance.state.isDestroyed) {
20083
- instance.setProps({
20084
- duration: originalDuration
20085
- });
20086
- }
 
 
 
 
20087
  }
20088
  });
20089
- };
 
 
 
 
 
 
 
 
20090
 
20091
- // every time the popper is destroyed (i.e. a new target), removing the styles
20092
- // and causing transitions to break for singletons when the console is open, but
20093
- // most notably for non-transform styles being used, `gpuAcceleration: false`.
 
20094
 
20095
- var applyStylesModifier = Object.assign({}, modifiers_applyStyles, {
20096
- effect: function effect(_ref) {
20097
- var state = _ref.state;
20098
- var initialStyles = {
20099
- popper: {
20100
- position: state.options.strategy,
20101
- left: '0',
20102
- top: '0',
20103
- margin: '0'
20104
- },
20105
- arrow: {
20106
- position: 'absolute'
20107
- },
20108
- reference: {}
20109
- };
20110
- Object.assign(state.elements.popper.style, initialStyles.popper);
20111
- state.styles = initialStyles;
20112
 
20113
- if (state.elements.arrow) {
20114
- Object.assign(state.elements.arrow.style, initialStyles.arrow);
20115
- } // intentionally return no cleanup function
20116
- // return () => { ... }
20117
 
 
 
20118
  }
20119
- });
20120
 
20121
- var createSingleton = function createSingleton(tippyInstances, optionalProps) {
20122
- var _optionalProps$popper;
 
20123
 
20124
- if (optionalProps === void 0) {
20125
- optionalProps = {};
 
20126
  }
20127
 
20128
- /* istanbul ignore else */
20129
- if (false) {}
 
20130
 
20131
- var individualInstances = tippyInstances;
20132
- var references = [];
20133
- var currentTarget;
20134
- var overrides = optionalProps.overrides;
20135
- var interceptSetPropsCleanups = [];
20136
- var shownOnCreate = false;
 
20137
 
20138
- function setReferences() {
20139
- references = individualInstances.map(function (instance) {
20140
- return instance.reference;
20141
- });
20142
  }
20143
 
20144
- function enableInstances(isEnabled) {
20145
- individualInstances.forEach(function (instance) {
20146
- if (isEnabled) {
20147
- instance.enable();
20148
- } else {
20149
- instance.disable();
20150
- }
20151
- });
20152
  }
20153
 
20154
- function interceptSetProps(singleton) {
20155
- return individualInstances.map(function (instance) {
20156
- var originalSetProps = instance.setProps;
20157
-
20158
- instance.setProps = function (props) {
20159
- originalSetProps(props);
20160
-
20161
- if (instance.reference === currentTarget) {
20162
- singleton.setProps(props);
20163
- }
20164
- };
20165
 
20166
- return function () {
20167
- instance.setProps = originalSetProps;
20168
- };
 
20169
  });
20170
- } // have to pass singleton, as it maybe undefined on first call
20171
 
 
 
20172
 
20173
- function prepareInstance(singleton, target) {
20174
- var index = references.indexOf(target); // bail-out
20175
-
20176
- if (target === currentTarget) {
20177
- return;
20178
  }
20179
-
20180
- currentTarget = target;
20181
- var overrideProps = (overrides || []).concat('content').reduce(function (acc, prop) {
20182
- acc[prop] = individualInstances[index].props[prop];
20183
- return acc;
20184
- }, {});
20185
- singleton.setProps(Object.assign({}, overrideProps, {
20186
- getReferenceClientRect: typeof overrideProps.getReferenceClientRect === 'function' ? overrideProps.getReferenceClientRect : function () {
20187
- return target.getBoundingClientRect();
20188
- }
20189
- }));
20190
  }
20191
 
20192
- enableInstances(false);
20193
- setReferences();
20194
- var plugin = {
20195
- fn: function fn() {
20196
- return {
20197
- onDestroy: function onDestroy() {
20198
- enableInstances(true);
20199
- },
20200
- onHidden: function onHidden() {
20201
- currentTarget = null;
20202
- },
20203
- onClickOutside: function onClickOutside(instance) {
20204
- if (instance.props.showOnCreate && !shownOnCreate) {
20205
- shownOnCreate = true;
20206
- currentTarget = null;
20207
- }
20208
- },
20209
- onShow: function onShow(instance) {
20210
- if (instance.props.showOnCreate && !shownOnCreate) {
20211
- shownOnCreate = true;
20212
- prepareInstance(instance, references[0]);
20213
- }
20214
- },
20215
- onTrigger: function onTrigger(instance, event) {
20216
- prepareInstance(instance, event.currentTarget);
20217
- }
20218
- };
20219
  }
20220
- };
20221
- var singleton = tippy(div(), Object.assign({}, removeProperties(optionalProps, ['overrides']), {
20222
- plugins: [plugin].concat(optionalProps.plugins || []),
20223
- triggerTarget: references,
20224
- popperOptions: Object.assign({}, optionalProps.popperOptions, {
20225
- modifiers: [].concat(((_optionalProps$popper = optionalProps.popperOptions) == null ? void 0 : _optionalProps$popper.modifiers) || [], [applyStylesModifier])
20226
- })
20227
- }));
20228
- var originalShow = singleton.show;
20229
 
20230
- singleton.show = function (target) {
20231
- originalShow(); // first time, showOnCreate or programmatic call with no params
20232
- // default to showing first instance
 
 
20233
 
20234
- if (!currentTarget && target == null) {
20235
- return prepareInstance(singleton, references[0]);
20236
- } // triggered from event (do nothing as prepareInstance already called by onTrigger)
20237
- // programmatic call with no params when already visible (do nothing again)
20238
 
 
 
 
 
 
 
 
 
20239
 
20240
- if (currentTarget && target == null) {
 
20241
  return;
20242
- } // target is index of instance
20243
 
 
 
 
 
 
 
 
 
 
20244
 
20245
- if (typeof target === 'number') {
20246
- return references[target] && prepareInstance(singleton, references[target]);
20247
- } // target is a child tippy instance
 
 
 
20248
 
 
 
 
 
 
 
 
20249
 
20250
- if (individualInstances.includes(target)) {
20251
- var ref = target.reference;
20252
- return prepareInstance(singleton, ref);
20253
- } // target is a ReferenceElement
20254
 
 
 
 
20255
 
20256
- if (references.includes(target)) {
20257
- return prepareInstance(singleton, target);
20258
- }
20259
- };
20260
 
20261
- singleton.showNext = function () {
20262
- var first = references[0];
 
 
20263
 
20264
- if (!currentTarget) {
20265
- return singleton.show(0);
 
 
 
20266
  }
20267
 
20268
- var index = references.indexOf(currentTarget);
20269
- singleton.show(references[index + 1] || first);
20270
- };
 
 
20271
 
20272
- singleton.showPrevious = function () {
20273
- var last = references[references.length - 1];
 
 
 
 
20274
 
20275
- if (!currentTarget) {
20276
- return singleton.show(last);
 
20277
  }
 
20278
 
20279
- var index = references.indexOf(currentTarget);
20280
- var target = references[index - 1] || last;
20281
- singleton.show(target);
20282
- };
20283
 
20284
- var originalSetProps = singleton.setProps;
 
 
20285
 
20286
- singleton.setProps = function (props) {
20287
- overrides = props.overrides || overrides;
20288
- originalSetProps(props);
20289
- };
 
 
 
20290
 
20291
- singleton.setInstances = function (nextInstances) {
20292
- enableInstances(true);
20293
- interceptSetPropsCleanups.forEach(function (fn) {
20294
- return fn();
20295
- });
20296
- individualInstances = nextInstances;
20297
- enableInstances(false);
20298
- setReferences();
20299
- interceptSetProps(singleton);
20300
- singleton.setProps({
20301
- triggerTarget: references
 
 
20302
  });
20303
- };
20304
 
20305
- interceptSetPropsCleanups = interceptSetProps(singleton);
20306
- return singleton;
20307
- };
20308
 
20309
- var BUBBLING_EVENTS_MAP = {
20310
- mouseover: 'mouseenter',
20311
- focusin: 'focus',
20312
- click: 'click'
20313
- };
20314
- /**
20315
- * Creates a delegate instance that controls the creation of tippy instances
20316
- * for child elements (`target` CSS selector).
20317
- */
20318
 
20319
- function delegate(targets, props) {
20320
- /* istanbul ignore else */
20321
- if (false) {}
 
 
 
 
20322
 
20323
- var listeners = [];
20324
- var childTippyInstances = [];
20325
- var disabled = false;
20326
- var target = props.target;
20327
- var nativeProps = removeProperties(props, ['target']);
20328
- var parentProps = Object.assign({}, nativeProps, {
20329
- trigger: 'manual',
20330
- touch: false
20331
- });
20332
- var childProps = Object.assign({}, nativeProps, {
20333
- showOnCreate: true
20334
- });
20335
- var returnValue = tippy(targets, parentProps);
20336
- var normalizedReturnValue = normalizeToArray(returnValue);
20337
 
20338
- function onTrigger(event) {
20339
- if (!event.target || disabled) {
20340
- return;
20341
  }
20342
 
20343
- var targetNode = event.target.closest(target);
20344
-
20345
- if (!targetNode) {
20346
- return;
20347
- } // Get relevant trigger with fallbacks:
20348
- // 1. Check `data-tippy-trigger` attribute on target node
20349
- // 2. Fallback to `trigger` passed to `delegate()`
20350
- // 3. Fallback to `defaultProps.trigger`
20351
-
20352
-
20353
- var trigger = targetNode.getAttribute('data-tippy-trigger') || props.trigger || tippy_esm_defaultProps.trigger; // @ts-ignore
20354
 
20355
- if (targetNode._tippy) {
20356
- return;
 
20357
  }
20358
 
20359
- if (event.type === 'touchstart' && typeof childProps.touch === 'boolean') {
20360
- return;
20361
- }
 
 
 
 
 
 
 
 
20362
 
20363
- if (event.type !== 'touchstart' && trigger.indexOf(BUBBLING_EVENTS_MAP[event.type]) < 0) {
20364
- return;
 
 
 
 
 
 
20365
  }
20366
 
20367
- var instance = tippy(targetNode, childProps);
 
 
 
20368
 
20369
- if (instance) {
20370
- childTippyInstances = childTippyInstances.concat(instance);
20371
- }
20372
- }
20373
 
20374
- function on(node, eventType, handler, options) {
20375
- if (options === void 0) {
20376
- options = false;
20377
- }
20378
 
20379
- node.addEventListener(eventType, handler, options);
20380
- listeners.push({
20381
- node: node,
20382
- eventType: eventType,
20383
- handler: handler,
20384
- options: options
20385
- });
20386
- }
20387
 
20388
- function addEventListeners(instance) {
20389
- var reference = instance.reference;
20390
- on(reference, 'touchstart', onTrigger, TOUCH_OPTIONS);
20391
- on(reference, 'mouseover', onTrigger);
20392
- on(reference, 'focusin', onTrigger);
20393
- on(reference, 'click', onTrigger);
20394
  }
20395
 
20396
- function removeEventListeners() {
20397
  listeners.forEach(function (_ref) {
20398
  var node = _ref.node,
20399
  eventType = _ref.eventType,
@@ -20404,2196 +21162,1975 @@ function delegate(targets, props) {
20404
  listeners = [];
20405
  }
20406
 
20407
- function applyMutations(instance) {
20408
- var originalDestroy = instance.destroy;
20409
- var originalEnable = instance.enable;
20410
- var originalDisable = instance.disable;
20411
 
20412
- instance.destroy = function (shouldDestroyChildInstances) {
20413
- if (shouldDestroyChildInstances === void 0) {
20414
- shouldDestroyChildInstances = true;
20415
- }
20416
 
20417
- if (shouldDestroyChildInstances) {
20418
- childTippyInstances.forEach(function (instance) {
20419
- instance.destroy();
20420
- });
20421
- }
20422
 
20423
- childTippyInstances = [];
20424
- removeEventListeners();
20425
- originalDestroy();
20426
- };
20427
 
20428
- instance.enable = function () {
20429
- originalEnable();
20430
- childTippyInstances.forEach(function (instance) {
20431
- return instance.enable();
 
 
 
20432
  });
20433
- disabled = false;
20434
- };
20435
 
20436
- instance.disable = function () {
20437
- originalDisable();
20438
- childTippyInstances.forEach(function (instance) {
20439
- return instance.disable();
20440
- });
20441
- disabled = true;
20442
- };
20443
 
20444
- addEventListeners(instance);
20445
- }
 
 
 
20446
 
20447
- normalizedReturnValue.forEach(applyMutations);
20448
- return returnValue;
20449
- }
20450
 
20451
- var animateFill = {
20452
- name: 'animateFill',
20453
- defaultValue: false,
20454
- fn: function fn(instance) {
20455
- var _instance$props$rende;
20456
 
20457
- // @ts-ignore
20458
- if (!((_instance$props$rende = instance.props.render) == null ? void 0 : _instance$props$rende.$$tippy)) {
20459
- if (false) {}
20460
 
20461
- return {};
 
20462
  }
20463
 
20464
- var _getChildren = getChildren(instance.popper),
20465
- box = _getChildren.box,
20466
- content = _getChildren.content;
20467
 
20468
- var backdrop = instance.props.animateFill ? createBackdropElement() : null;
20469
- return {
20470
- onCreate: function onCreate() {
20471
- if (backdrop) {
20472
- box.insertBefore(backdrop, box.firstElementChild);
20473
- box.setAttribute('data-animatefill', '');
20474
- box.style.overflow = 'hidden';
20475
- instance.setProps({
20476
- arrow: false,
20477
- animation: 'shift-away'
20478
- });
20479
- }
20480
- },
20481
- onMount: function onMount() {
20482
- if (backdrop) {
20483
- var transitionDuration = box.style.transitionDuration;
20484
- var duration = Number(transitionDuration.replace('ms', '')); // The content should fade in after the backdrop has mostly filled the
20485
- // tooltip element. `clip-path` is the other alternative but is not
20486
- // well-supported and is buggy on some devices.
20487
 
20488
- content.style.transitionDelay = Math.round(duration / 10) + "ms";
20489
- backdrop.style.transitionDuration = transitionDuration;
20490
- setVisibilityState([backdrop], 'visible');
20491
- }
20492
- },
20493
- onShow: function onShow() {
20494
- if (backdrop) {
20495
- backdrop.style.transitionDuration = '0ms';
20496
- }
20497
- },
20498
- onHide: function onHide() {
20499
- if (backdrop) {
20500
- setVisibilityState([backdrop], 'hidden');
20501
- }
20502
  }
20503
- };
 
 
 
 
 
 
 
20504
  }
20505
- };
20506
 
20507
- function createBackdropElement() {
20508
- var backdrop = div();
20509
- backdrop.className = BACKDROP_CLASS;
20510
- setVisibilityState([backdrop], 'hidden');
20511
- return backdrop;
20512
- }
20513
 
20514
- var mouseCoords = {
20515
- clientX: 0,
20516
- clientY: 0
20517
- };
20518
- var activeInstances = [];
20519
 
20520
- function storeMouseCoords(_ref) {
20521
- var clientX = _ref.clientX,
20522
- clientY = _ref.clientY;
20523
- mouseCoords = {
20524
- clientX: clientX,
20525
- clientY: clientY
20526
- };
20527
- }
20528
 
20529
- function addMouseCoordsListener(doc) {
20530
- doc.addEventListener('mousemove', storeMouseCoords);
20531
- }
20532
 
20533
- function removeMouseCoordsListener(doc) {
20534
- doc.removeEventListener('mousemove', storeMouseCoords);
20535
- }
 
20536
 
20537
- var followCursor = {
20538
- name: 'followCursor',
20539
- defaultValue: false,
20540
- fn: function fn(instance) {
20541
- var reference = instance.reference;
20542
- var doc = getOwnerDocument(instance.props.triggerTarget || reference);
20543
- var isInternalUpdate = false;
20544
- var wasFocusEvent = false;
20545
- var isUnmounted = true;
20546
- var prevProps = instance.props;
20547
 
20548
- function getIsInitialBehavior() {
20549
- return instance.props.followCursor === 'initial' && instance.state.isVisible;
20550
  }
20551
 
20552
- function addListener() {
20553
- doc.addEventListener('mousemove', onMouseMove);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20554
  }
20555
 
20556
- function removeListener() {
20557
- doc.removeEventListener('mousemove', onMouseMove);
20558
- }
 
 
 
 
20559
 
20560
- function unsetGetReferenceClientRect() {
20561
- isInternalUpdate = true;
20562
- instance.setProps({
20563
- getReferenceClientRect: null
20564
- });
20565
- isInternalUpdate = false;
20566
  }
 
20567
 
20568
- function onMouseMove(event) {
20569
- // If the instance is interactive, avoid updating the position unless it's
20570
- // over the reference element
20571
- var isCursorOverReference = event.target ? reference.contains(event.target) : true;
20572
- var followCursor = instance.props.followCursor;
20573
- var clientX = event.clientX,
20574
- clientY = event.clientY;
20575
- var rect = reference.getBoundingClientRect();
20576
- var relativeX = clientX - rect.left;
20577
- var relativeY = clientY - rect.top;
20578
 
20579
- if (isCursorOverReference || !instance.props.interactive) {
20580
- instance.setProps({
20581
- getReferenceClientRect: function getReferenceClientRect() {
20582
- var rect = reference.getBoundingClientRect();
20583
- var x = clientX;
20584
- var y = clientY;
20585
 
20586
- if (followCursor === 'initial') {
20587
- x = rect.left + relativeX;
20588
- y = rect.top + relativeY;
20589
- }
 
 
20590
 
20591
- var top = followCursor === 'horizontal' ? rect.top : y;
20592
- var right = followCursor === 'vertical' ? rect.right : x;
20593
- var bottom = followCursor === 'horizontal' ? rect.bottom : y;
20594
- var left = followCursor === 'vertical' ? rect.left : x;
20595
- return {
20596
- width: right - left,
20597
- height: bottom - top,
20598
- top: top,
20599
- right: right,
20600
- bottom: bottom,
20601
- left: left
20602
- };
20603
- }
20604
- });
20605
- }
20606
- }
20607
 
20608
- function create() {
20609
- if (instance.props.followCursor) {
20610
- activeInstances.push({
20611
- instance: instance,
20612
- doc: doc
20613
- });
20614
- addMouseCoordsListener(doc);
20615
- }
20616
  }
20617
 
20618
- function destroy() {
20619
- activeInstances = activeInstances.filter(function (data) {
20620
- return data.instance !== instance;
20621
- });
20622
 
20623
- if (activeInstances.filter(function (data) {
20624
- return data.doc === doc;
20625
- }).length === 0) {
20626
- removeMouseCoordsListener(doc);
20627
- }
20628
- }
20629
 
20630
- return {
20631
- onCreate: create,
20632
- onDestroy: destroy,
20633
- onBeforeUpdate: function onBeforeUpdate() {
20634
- prevProps = instance.props;
20635
- },
20636
- onAfterUpdate: function onAfterUpdate(_, _ref2) {
20637
- var followCursor = _ref2.followCursor;
20638
 
20639
- if (isInternalUpdate) {
20640
- return;
20641
- }
20642
 
20643
- if (followCursor !== undefined && prevProps.followCursor !== followCursor) {
20644
- destroy();
 
20645
 
20646
- if (followCursor) {
20647
- create();
20648
 
20649
- if (instance.state.isMounted && !wasFocusEvent && !getIsInitialBehavior()) {
20650
- addListener();
20651
- }
20652
- } else {
20653
- removeListener();
20654
- unsetGetReferenceClientRect();
20655
- }
20656
- }
20657
- },
20658
- onMount: function onMount() {
20659
- if (instance.props.followCursor && !wasFocusEvent) {
20660
- if (isUnmounted) {
20661
- onMouseMove(mouseCoords);
20662
- isUnmounted = false;
20663
- }
20664
 
20665
- if (!getIsInitialBehavior()) {
20666
- addListener();
20667
- }
20668
- }
20669
- },
20670
- onTrigger: function onTrigger(_, event) {
20671
- if (isMouseEvent(event)) {
20672
- mouseCoords = {
20673
- clientX: event.clientX,
20674
- clientY: event.clientY
20675
- };
20676
- }
20677
 
20678
- wasFocusEvent = event.type === 'focus';
20679
- },
20680
- onHidden: function onHidden() {
20681
- if (instance.props.followCursor) {
20682
- unsetGetReferenceClientRect();
20683
- removeListener();
20684
- isUnmounted = true;
20685
- }
20686
- }
20687
- };
20688
  }
20689
- };
20690
 
20691
- function getProps(props, modifier) {
20692
- var _props$popperOptions;
 
20693
 
20694
- return {
20695
- popperOptions: Object.assign({}, props.popperOptions, {
20696
- modifiers: [].concat((((_props$popperOptions = props.popperOptions) == null ? void 0 : _props$popperOptions.modifiers) || []).filter(function (_ref) {
20697
- var name = _ref.name;
20698
- return name !== modifier.name;
20699
- }), [modifier])
20700
- })
20701
- };
20702
- }
20703
 
20704
- var inlinePositioning = {
20705
- name: 'inlinePositioning',
20706
- defaultValue: false,
20707
- fn: function fn(instance) {
20708
- var reference = instance.reference;
20709
 
20710
- function isEnabled() {
20711
- return !!instance.props.inlinePositioning;
20712
  }
20713
 
20714
- var placement;
20715
- var cursorRectIndex = -1;
20716
- var isInternalUpdate = false;
20717
- var modifier = {
20718
- name: 'tippyInlinePositioning',
20719
- enabled: true,
20720
- phase: 'afterWrite',
20721
- fn: function fn(_ref2) {
20722
- var state = _ref2.state;
20723
-
20724
- if (isEnabled()) {
20725
- if (placement !== state.placement) {
20726
- instance.setProps({
20727
- getReferenceClientRect: function getReferenceClientRect() {
20728
- return _getReferenceClientRect(state.placement);
20729
- }
20730
- });
20731
- }
20732
 
20733
- placement = state.placement;
 
 
 
20734
  }
20735
- }
20736
- };
20737
-
20738
- function _getReferenceClientRect(placement) {
20739
- return getInlineBoundingClientRect(tippy_esm_getBasePlacement(placement), reference.getBoundingClientRect(), arrayFrom(reference.getClientRects()), cursorRectIndex);
20740
- }
20741
-
20742
- function setInternalProps(partialProps) {
20743
- isInternalUpdate = true;
20744
- instance.setProps(partialProps);
20745
- isInternalUpdate = false;
20746
  }
 
 
 
20747
 
20748
- function addModifier() {
20749
- if (!isInternalUpdate) {
20750
- setInternalProps(getProps(instance.props, modifier));
20751
- }
20752
- }
20753
 
20754
- return {
20755
- onCreate: addModifier,
20756
- onAfterUpdate: addModifier,
20757
- onTrigger: function onTrigger(_, event) {
20758
- if (isMouseEvent(event)) {
20759
- var rects = arrayFrom(instance.reference.getClientRects());
20760
- var cursorRect = rects.find(function (rect) {
20761
- return rect.left - 2 <= event.clientX && rect.right + 2 >= event.clientX && rect.top - 2 <= event.clientY && rect.bottom + 2 >= event.clientY;
20762
- });
20763
- cursorRectIndex = rects.indexOf(cursorRect);
20764
- }
20765
- },
20766
- onUntrigger: function onUntrigger() {
20767
- cursorRectIndex = -1;
20768
- }
20769
- };
20770
  }
20771
- };
20772
- function getInlineBoundingClientRect(currentBasePlacement, boundingRect, clientRects, cursorRectIndex) {
20773
- // Not an inline element, or placement is not yet known
20774
- if (clientRects.length < 2 || currentBasePlacement === null) {
20775
- return boundingRect;
20776
- } // There are two rects and they are disjoined
20777
 
 
 
 
 
 
 
20778
 
20779
- if (clientRects.length === 2 && cursorRectIndex >= 0 && clientRects[0].left > clientRects[1].right) {
20780
- return clientRects[cursorRectIndex] || boundingRect;
 
 
20781
  }
20782
 
20783
- switch (currentBasePlacement) {
20784
- case 'top':
20785
- case 'bottom':
20786
- {
20787
- var firstRect = clientRects[0];
20788
- var lastRect = clientRects[clientRects.length - 1];
20789
- var isTop = currentBasePlacement === 'top';
20790
- var top = firstRect.top;
20791
- var bottom = lastRect.bottom;
20792
- var left = isTop ? firstRect.left : lastRect.left;
20793
- var right = isTop ? firstRect.right : lastRect.right;
20794
- var width = right - left;
20795
- var height = bottom - top;
20796
- return {
20797
- top: top,
20798
- bottom: bottom,
20799
- left: left,
20800
- right: right,
20801
- width: width,
20802
- height: height
20803
- };
20804
- }
20805
 
20806
- case 'left':
20807
- case 'right':
20808
- {
20809
- var minLeft = Math.min.apply(Math, clientRects.map(function (rects) {
20810
- return rects.left;
20811
- }));
20812
- var maxRight = Math.max.apply(Math, clientRects.map(function (rects) {
20813
- return rects.right;
20814
- }));
20815
- var measureRects = clientRects.filter(function (rect) {
20816
- return currentBasePlacement === 'left' ? rect.left === minLeft : rect.right === maxRight;
20817
- });
20818
- var _top = measureRects[0].top;
20819
- var _bottom = measureRects[measureRects.length - 1].bottom;
20820
- var _left = minLeft;
20821
- var _right = maxRight;
20822
 
20823
- var _width = _right - _left;
 
 
 
 
 
 
 
20824
 
20825
- var _height = _bottom - _top;
 
 
 
20826
 
20827
- return {
20828
- top: _top,
20829
- bottom: _bottom,
20830
- left: _left,
20831
- right: _right,
20832
- width: _width,
20833
- height: _height
20834
- };
20835
- }
20836
 
20837
- default:
20838
- {
20839
- return boundingRect;
20840
- }
20841
- }
20842
- }
 
20843
 
20844
- var sticky = {
20845
- name: 'sticky',
20846
- defaultValue: false,
20847
- fn: function fn(instance) {
20848
- var reference = instance.reference,
20849
- popper = instance.popper;
20850
 
20851
- function getReference() {
20852
- return instance.popperInstance ? instance.popperInstance.state.elements.reference : reference;
20853
  }
20854
 
20855
- function shouldCheck(value) {
20856
- return instance.props.sticky === true || instance.props.sticky === value;
 
 
 
 
 
 
 
 
 
20857
  }
20858
 
20859
- var prevRefRect = null;
20860
- var prevPopRect = null;
20861
 
20862
- function updatePosition() {
20863
- var currentRefRect = shouldCheck('reference') ? getReference().getBoundingClientRect() : null;
20864
- var currentPopRect = shouldCheck('popper') ? popper.getBoundingClientRect() : null;
 
 
20865
 
20866
- if (currentRefRect && areRectsDifferent(prevRefRect, currentRefRect) || currentPopRect && areRectsDifferent(prevPopRect, currentPopRect)) {
20867
- if (instance.popperInstance) {
20868
- instance.popperInstance.update();
20869
- }
20870
- }
20871
 
20872
- prevRefRect = currentRefRect;
20873
- prevPopRect = currentPopRect;
20874
 
20875
- if (instance.state.isMounted) {
20876
- requestAnimationFrame(updatePosition);
20877
- }
20878
- }
 
20879
 
20880
- return {
20881
- onMount: function onMount() {
20882
- if (instance.props.sticky) {
20883
- updatePosition();
20884
- }
20885
- }
20886
- };
20887
- }
20888
- };
20889
 
20890
- function areRectsDifferent(rectA, rectB) {
20891
- if (rectA && rectB) {
20892
- return rectA.top !== rectB.top || rectA.right !== rectB.right || rectA.bottom !== rectB.bottom || rectA.left !== rectB.left;
20893
- }
20894
 
20895
- return true;
20896
- }
 
20897
 
20898
- tippy.setDefaultProps({
20899
- render: render
20900
- });
20901
 
20902
- /* harmony default export */ var tippy_esm = (tippy);
 
 
20903
 
20904
- //# sourceMappingURL=tippy.esm.js.map
20905
 
20906
- ;// CONCATENATED MODULE: ./node_modules/@tippyjs/react/dist/tippy-react.esm.js
 
 
20907
 
 
 
20908
 
 
 
 
 
20909
 
20910
 
 
 
 
 
20911
 
20912
- function tippy_react_esm_objectWithoutPropertiesLoose(source, excluded) {
20913
- if (source == null) return {};
20914
- var target = {};
20915
- var sourceKeys = Object.keys(source);
20916
- var key, i;
20917
 
20918
- for (i = 0; i < sourceKeys.length; i++) {
20919
- key = sourceKeys[i];
20920
- if (excluded.indexOf(key) >= 0) continue;
20921
- target[key] = source[key];
20922
- }
20923
 
20924
- return target;
20925
- }
 
20926
 
20927
- var tippy_react_esm_isBrowser = typeof window !== 'undefined' && typeof document !== 'undefined';
20928
- function preserveRef(ref, node) {
20929
- if (ref) {
20930
- if (typeof ref === 'function') {
20931
- ref(node);
20932
- }
20933
 
20934
- if ({}.hasOwnProperty.call(ref, 'current')) {
20935
- ref.current = node;
20936
- }
20937
- }
20938
- }
20939
- function ssrSafeCreateDiv() {
20940
- return tippy_react_esm_isBrowser && document.createElement('div');
20941
- }
20942
- function toDataAttributes(attrs) {
20943
- var dataAttrs = {
20944
- 'data-placement': attrs.placement
20945
- };
20946
 
20947
- if (attrs.referenceHidden) {
20948
- dataAttrs['data-reference-hidden'] = '';
20949
- }
 
20950
 
20951
- if (attrs.escaped) {
20952
- dataAttrs['data-escaped'] = '';
20953
- }
20954
 
20955
- return dataAttrs;
20956
- }
 
 
20957
 
20958
- function deepEqual(x, y) {
20959
- if (x === y) {
20960
- return true;
20961
- } else if (typeof x === 'object' && x != null && typeof y === 'object' && y != null) {
20962
- if (Object.keys(x).length !== Object.keys(y).length) {
20963
- return false;
20964
- }
20965
 
20966
- for (var prop in x) {
20967
- if (y.hasOwnProperty(prop)) {
20968
- if (!deepEqual(x[prop], y[prop])) {
20969
- return false;
20970
- }
20971
- } else {
20972
- return false;
20973
  }
20974
- }
20975
 
20976
- return true;
20977
- } else {
20978
- return false;
20979
  }
20980
- }
20981
 
20982
- function uniqueByShape(arr) {
20983
- var output = [];
20984
- arr.forEach(function (item) {
20985
- if (!output.find(function (outputItem) {
20986
- return deepEqual(item, outputItem);
20987
- })) {
20988
- output.push(item);
20989
- }
20990
- });
20991
- return output;
20992
- }
20993
- function deepPreserveProps(instanceProps, componentProps) {
20994
- var _instanceProps$popper, _componentProps$poppe;
20995
 
20996
- return Object.assign({}, componentProps, {
20997
- popperOptions: Object.assign({}, instanceProps.popperOptions, componentProps.popperOptions, {
20998
- modifiers: uniqueByShape([].concat(((_instanceProps$popper = instanceProps.popperOptions) == null ? void 0 : _instanceProps$popper.modifiers) || [], ((_componentProps$poppe = componentProps.popperOptions) == null ? void 0 : _componentProps$poppe.modifiers) || []))
20999
- })
21000
- });
21001
- }
21002
 
21003
- var useIsomorphicLayoutEffect = tippy_react_esm_isBrowser ? react.useLayoutEffect : react.useEffect;
21004
- function useMutableBox(initialValue) {
21005
- // Using refs instead of state as it's recommended to not store imperative
21006
- // values in state due to memory problems in React(?)
21007
- var ref = (0,react.useRef)();
21008
 
21009
- if (!ref.current) {
21010
- ref.current = typeof initialValue === 'function' ? initialValue() : initialValue;
21011
- }
21012
 
21013
- return ref.current;
21014
- }
21015
 
21016
- function updateClassName(box, action, classNames) {
21017
- classNames.split(/\s+/).forEach(function (name) {
21018
- if (name) {
21019
- box.classList[action](name);
21020
  }
21021
- });
21022
- }
21023
 
21024
- var classNamePlugin = {
21025
- name: 'className',
21026
- defaultValue: '',
21027
- fn: function fn(instance) {
21028
- var box = instance.popper.firstElementChild;
21029
 
21030
- var isDefaultRenderFn = function isDefaultRenderFn() {
21031
- var _instance$props$rende;
 
21032
 
21033
- return !!((_instance$props$rende = instance.props.render) == null ? void 0 : _instance$props$rende.$$tippy);
21034
- };
 
21035
 
21036
- function add() {
21037
- if (instance.props.className && !isDefaultRenderFn()) {
21038
- if (false) {}
 
21039
 
21040
- return;
 
 
21041
  }
21042
-
21043
- updateClassName(box, 'add', instance.props.className);
21044
  }
21045
 
21046
- function remove() {
21047
- if (isDefaultRenderFn()) {
21048
- updateClassName(box, 'remove', instance.props.className);
 
 
 
21049
  }
 
 
21050
  }
21051
-
21052
- return {
21053
- onCreate: add,
21054
- onBeforeUpdate: remove,
21055
- onAfterUpdate: add
21056
- };
21057
  }
21058
- };
21059
-
21060
- function TippyGenerator(tippy) {
21061
- function Tippy(_ref) {
21062
- var children = _ref.children,
21063
- content = _ref.content,
21064
- visible = _ref.visible,
21065
- singleton = _ref.singleton,
21066
- render = _ref.render,
21067
- reference = _ref.reference,
21068
- _ref$disabled = _ref.disabled,
21069
- disabled = _ref$disabled === void 0 ? false : _ref$disabled,
21070
- _ref$ignoreAttributes = _ref.ignoreAttributes,
21071
- ignoreAttributes = _ref$ignoreAttributes === void 0 ? true : _ref$ignoreAttributes,
21072
- __source = _ref.__source,
21073
- __self = _ref.__self,
21074
- restOfNativeProps = tippy_react_esm_objectWithoutPropertiesLoose(_ref, ["children", "content", "visible", "singleton", "render", "reference", "disabled", "ignoreAttributes", "__source", "__self"]);
21075
 
21076
- var isControlledMode = visible !== undefined;
21077
- var isSingletonMode = singleton !== undefined;
 
21078
 
21079
- var _useState = (0,react.useState)(false),
21080
- mounted = _useState[0],
21081
- setMounted = _useState[1];
 
21082
 
21083
- var _useState2 = (0,react.useState)({}),
21084
- attrs = _useState2[0],
21085
- setAttrs = _useState2[1];
21086
 
21087
- var _useState3 = (0,react.useState)(),
21088
- singletonContent = _useState3[0],
21089
- setSingletonContent = _useState3[1];
21090
 
21091
- var mutableBox = useMutableBox(function () {
21092
- return {
21093
- container: ssrSafeCreateDiv(),
21094
- renders: 1
21095
- };
21096
- });
21097
- var props = Object.assign({
21098
- ignoreAttributes: ignoreAttributes
21099
- }, restOfNativeProps, {
21100
- content: mutableBox.container
21101
- });
21102
 
21103
- if (isControlledMode) {
21104
- if (false) {}
 
21105
 
21106
- props.trigger = 'manual';
21107
- props.hideOnClick = false;
21108
- }
21109
 
21110
- if (isSingletonMode) {
21111
- disabled = true;
21112
  }
21113
 
21114
- var computedProps = props;
21115
- var plugins = props.plugins || [];
 
 
 
 
21116
 
21117
- if (render) {
21118
- computedProps = Object.assign({}, props, {
21119
- plugins: isSingletonMode ? [].concat(plugins, [{
21120
- fn: function fn() {
21121
- return {
21122
- onTrigger: function onTrigger(_, event) {
21123
- var _singleton$data$child = singleton.data.children.find(function (_ref2) {
21124
- var instance = _ref2.instance;
21125
- return instance.reference === event.currentTarget;
21126
- }),
21127
- content = _singleton$data$child.content;
21128
 
21129
- setSingletonContent(content);
21130
- }
21131
- };
21132
- }
21133
- }]) : plugins,
21134
- render: function render() {
21135
- return {
21136
- popper: mutableBox.container
21137
- };
21138
- }
21139
- });
21140
  }
21141
 
21142
- var deps = [reference].concat(children ? [children.type] : []); // CREATE
21143
-
21144
- useIsomorphicLayoutEffect(function () {
21145
- var element = reference;
 
 
 
 
21146
 
21147
- if (reference && reference.hasOwnProperty('current')) {
21148
- element = reference.current;
21149
- }
 
21150
 
21151
- var instance = tippy(element || mutableBox.ref || ssrSafeCreateDiv(), Object.assign({}, computedProps, {
21152
- plugins: [classNamePlugin].concat(props.plugins || [])
21153
- }));
21154
- mutableBox.instance = instance;
21155
 
21156
- if (disabled) {
21157
- instance.disable();
21158
- }
21159
 
21160
- if (visible) {
21161
- instance.show();
21162
- }
 
 
 
21163
 
21164
- if (isSingletonMode) {
21165
- singleton.hook({
21166
- instance: instance,
21167
- content: content,
21168
- props: computedProps
21169
- });
21170
- }
21171
 
21172
- setMounted(true);
21173
- return function () {
21174
- instance.destroy();
21175
- singleton == null ? void 0 : singleton.cleanup(instance);
21176
- };
21177
- }, deps); // UPDATE
21178
 
21179
- useIsomorphicLayoutEffect(function () {
21180
- var _instance$popperInsta;
 
21181
 
21182
- // Prevent this effect from running on 1st render
21183
- if (mutableBox.renders === 1) {
21184
- mutableBox.renders++;
21185
- return;
21186
- }
21187
 
21188
- var instance = mutableBox.instance;
21189
- instance.setProps(deepPreserveProps(instance.props, computedProps)); // Fixes #264
 
 
 
 
 
21190
 
21191
- (_instance$popperInsta = instance.popperInstance) == null ? void 0 : _instance$popperInsta.forceUpdate();
 
21192
 
21193
- if (disabled) {
21194
- instance.disable();
21195
- } else {
21196
- instance.enable();
21197
- }
21198
 
21199
- if (isControlledMode) {
21200
- if (visible) {
21201
- instance.show();
21202
- } else {
21203
- instance.hide();
21204
- }
21205
- }
21206
 
21207
- if (isSingletonMode) {
21208
- singleton.hook({
21209
- instance: instance,
21210
- content: content,
21211
- props: computedProps
21212
  });
21213
  }
21214
- });
21215
- useIsomorphicLayoutEffect(function () {
21216
- var _instance$props$poppe;
21217
-
21218
- if (!render) {
21219
- return;
21220
- }
21221
 
21222
- var instance = mutableBox.instance;
21223
- instance.setProps({
21224
- popperOptions: Object.assign({}, instance.props.popperOptions, {
21225
- modifiers: [].concat((((_instance$props$poppe = instance.props.popperOptions) == null ? void 0 : _instance$props$poppe.modifiers) || []).filter(function (_ref3) {
21226
- var name = _ref3.name;
21227
- return name !== '$$tippyReact';
21228
- }), [{
21229
- name: '$$tippyReact',
21230
- enabled: true,
21231
- phase: 'beforeWrite',
21232
- requires: ['computeStyles'],
21233
- fn: function fn(_ref4) {
21234
- var _state$modifiersData;
21235
 
21236
- var state = _ref4.state;
21237
- var hideData = (_state$modifiersData = state.modifiersData) == null ? void 0 : _state$modifiersData.hide; // WARNING: this is a high-risk path that can cause an infinite
21238
- // loop. This expression _must_ evaluate to false when required
 
 
 
 
 
 
 
 
 
 
 
 
 
 
21239
 
21240
- if (attrs.placement !== state.placement || attrs.referenceHidden !== (hideData == null ? void 0 : hideData.isReferenceHidden) || attrs.escaped !== (hideData == null ? void 0 : hideData.hasPopperEscaped)) {
21241
- setAttrs({
21242
- placement: state.placement,
21243
- referenceHidden: hideData == null ? void 0 : hideData.isReferenceHidden,
21244
- escaped: hideData == null ? void 0 : hideData.hasPopperEscaped
21245
- });
21246
- }
21247
 
21248
- state.attributes.popper = {};
21249
- }
21250
- }])
21251
- })
21252
- });
21253
- }, [attrs.placement, attrs.referenceHidden, attrs.escaped].concat(deps));
21254
- return /*#__PURE__*/react.createElement(react.Fragment, null, children ? /*#__PURE__*/(0,react.cloneElement)(children, {
21255
- ref: function ref(node) {
21256
- mutableBox.ref = node;
21257
- preserveRef(children.ref, node);
21258
- }
21259
- }) : null, mounted && /*#__PURE__*/(0,react_dom.createPortal)(render ? render(toDataAttributes(attrs), singletonContent, mutableBox.instance) : content, mutableBox.container));
21260
  }
 
21261
 
21262
- return Tippy;
21263
- }
21264
-
21265
- function useSingletonGenerator(createSingleton) {
21266
- return function useSingleton(_temp) {
21267
- var _ref = _temp === void 0 ? {} : _temp,
21268
- _ref$disabled = _ref.disabled,
21269
- disabled = _ref$disabled === void 0 ? false : _ref$disabled,
21270
- _ref$overrides = _ref.overrides,
21271
- overrides = _ref$overrides === void 0 ? [] : _ref$overrides;
21272
 
21273
- var _useState = (0,react.useState)(false),
21274
- mounted = _useState[0],
21275
- setMounted = _useState[1];
21276
 
21277
- var mutableBox = useMutableBox({
21278
- children: [],
21279
- renders: 1
21280
- });
21281
- useIsomorphicLayoutEffect(function () {
21282
- if (!mounted) {
21283
- setMounted(true);
21284
- return;
21285
- }
21286
 
21287
- var children = mutableBox.children,
21288
- sourceData = mutableBox.sourceData;
 
 
 
 
21289
 
21290
- if (!sourceData) {
21291
- if (false) {}
 
 
 
21292
 
21293
- return;
 
 
 
 
 
21294
  }
 
 
21295
 
21296
- var instance = createSingleton(children.map(function (child) {
21297
- return child.instance;
21298
- }), Object.assign({}, sourceData.props, {
21299
- popperOptions: sourceData.instance.props.popperOptions,
21300
- overrides: overrides,
21301
- plugins: [classNamePlugin].concat(sourceData.props.plugins || [])
21302
- }));
21303
- mutableBox.instance = instance;
21304
 
21305
- if (disabled) {
21306
- instance.disable();
21307
- }
21308
 
21309
- return function () {
21310
- instance.destroy();
21311
- mutableBox.children = children.filter(function (_ref2) {
21312
- var instance = _ref2.instance;
21313
- return !instance.state.isDestroyed;
21314
- });
21315
  };
21316
- }, [mounted]);
21317
- useIsomorphicLayoutEffect(function () {
21318
- if (!mounted) {
21319
- return;
21320
- }
21321
-
21322
- if (mutableBox.renders === 1) {
21323
- mutableBox.renders++;
21324
- return;
21325
- }
21326
 
21327
- var children = mutableBox.children,
21328
- instance = mutableBox.instance,
21329
- sourceData = mutableBox.sourceData;
 
 
21330
 
21331
- if (!(instance && sourceData)) {
21332
- return;
21333
- }
21334
 
21335
- var _sourceData$props = sourceData.props,
21336
- content = _sourceData$props.content,
21337
- props = tippy_react_esm_objectWithoutPropertiesLoose(_sourceData$props, ["content"]);
21338
 
21339
- instance.setProps(deepPreserveProps(instance.props, Object.assign({}, props, {
21340
- overrides: overrides
21341
- })));
21342
- instance.setInstances(children.map(function (child) {
21343
- return child.instance;
21344
- }));
21345
 
21346
- if (disabled) {
21347
- instance.disable();
21348
- } else {
21349
- instance.enable();
 
 
 
 
21350
  }
21351
- });
21352
- return (0,react.useMemo)(function () {
21353
- var source = {
21354
- data: mutableBox,
21355
- hook: function hook(data) {
21356
- mutableBox.sourceData = data;
21357
- },
21358
- cleanup: function cleanup() {
21359
- mutableBox.sourceData = null;
21360
- }
21361
- };
21362
- var target = {
21363
- hook: function hook(data) {
21364
- if (!mutableBox.children.find(function (_ref3) {
21365
- var instance = _ref3.instance;
21366
- return data.instance === instance;
21367
- })) {
21368
- mutableBox.children.push(data);
21369
 
21370
- if (mutableBox.instance && !mutableBox.instance.state.isDestroyed) {
21371
- mutableBox.instance.setInstances(mutableBox.children.map(function (child) {
21372
- return child.instance;
21373
- }));
21374
- }
 
 
 
 
 
 
 
 
 
 
21375
  }
21376
  },
21377
- cleanup: function cleanup(instance) {
21378
- mutableBox.children = mutableBox.children.filter(function (data) {
21379
- return data.instance !== instance;
21380
- });
21381
-
21382
- if (mutableBox.instance && !mutableBox.instance.state.isDestroyed) {
21383
- mutableBox.instance.setInstances(mutableBox.children.map(function (child) {
21384
- return child.instance;
21385
- }));
21386
  }
 
 
 
21387
  }
21388
  };
21389
- return [source, target];
21390
- }, []);
21391
  };
21392
- }
 
 
 
 
 
 
 
21393
 
21394
- var forwardRef = (function (Tippy, defaultProps) {
21395
- return /*#__PURE__*/(0,react.forwardRef)(function TippyWrapper(_ref, _ref2) {
21396
- var children = _ref.children,
21397
- props = tippy_react_esm_objectWithoutPropertiesLoose(_ref, ["children"]);
21398
 
21399
- return (
21400
- /*#__PURE__*/
21401
- // If I spread them separately here, Babel adds the _extends ponyfill for
21402
- // some reason
21403
- react.createElement(Tippy, Object.assign({}, defaultProps, props), children ? /*#__PURE__*/(0,react.cloneElement)(children, {
21404
- ref: function ref(node) {
21405
- preserveRef(_ref2, node);
21406
- preserveRef(children.ref, node);
21407
- }
21408
- }) : null)
21409
- );
21410
- });
21411
- });
21412
 
21413
- var useSingleton = /*#__PURE__*/useSingletonGenerator(createSingleton);
21414
- var index = /*#__PURE__*/forwardRef( /*#__PURE__*/TippyGenerator(tippy_esm));
21415
 
21416
- /* harmony default export */ var tippy_react_esm = (index);
 
 
21417
 
21418
- //# sourceMappingURL=tippy-react.esm.js.map
21419
 
21420
- ;// CONCATENATED MODULE: ./node_modules/tippy.js/dist/tippy.css
21421
- // extracted by mini-css-extract-plugin
 
21422
 
21423
- ;// CONCATENATED MODULE: ./node_modules/tippy.js/themes/material.css
21424
- // extracted by mini-css-extract-plugin
21425
 
21426
- ;// CONCATENATED MODULE: ./node_modules/react-redux/es/components/Context.js
 
 
 
21427
 
21428
- var Context_ReactReduxContext = /*#__PURE__*/react.createContext(null);
21429
 
21430
- if (false) {}
 
 
 
21431
 
21432
- /* harmony default export */ var Context = ((/* unused pure expression or super */ null && (Context_ReactReduxContext)));
21433
- ;// CONCATENATED MODULE: ./node_modules/react-redux/es/utils/batch.js
21434
- // Default to a dummy "batch" implementation that just runs the callback
21435
- function defaultNoopBatch(callback) {
21436
- callback();
21437
- }
21438
 
21439
- var batch = defaultNoopBatch; // Allow injecting another batching function later
 
 
21440
 
21441
- var setBatch = function setBatch(newBatch) {
21442
- return batch = newBatch;
21443
- }; // Supply a getter just to skip dealing with ESM bindings
21444
 
21445
- var getBatch = function getBatch() {
21446
- return batch;
21447
- };
21448
- ;// CONCATENATED MODULE: ./node_modules/react-redux/es/utils/Subscription.js
21449
- // encapsulates the subscription logic for connecting a component to the redux store, as
21450
- // well as nesting subscriptions of descendant components, so that we can ensure the
21451
- // ancestor components re-render before descendants
21452
 
21453
- var nullListeners = {
21454
- notify: function notify() {}
21455
- };
21456
 
21457
- function createListenerCollection() {
21458
- var batch = getBatch();
21459
- var first = null;
21460
- var last = null;
21461
- return {
21462
- clear: function clear() {
21463
- first = null;
21464
- last = null;
21465
- },
21466
- notify: function notify() {
21467
- batch(function () {
21468
- var listener = first;
21469
 
21470
- while (listener) {
21471
- listener.callback();
21472
- listener = listener.next;
21473
- }
21474
- });
21475
- },
21476
- get: function get() {
21477
- var listeners = [];
21478
- var listener = first;
21479
 
21480
- while (listener) {
21481
- listeners.push(listener);
21482
- listener = listener.next;
21483
- }
21484
 
21485
- return listeners;
21486
- },
21487
- subscribe: function subscribe(callback) {
21488
- var isSubscribed = true;
21489
- var listener = last = {
21490
- callback: callback,
21491
- next: null,
21492
- prev: last
21493
- };
 
 
 
 
21494
 
21495
- if (listener.prev) {
21496
- listener.prev.next = listener;
21497
- } else {
21498
- first = listener;
21499
- }
21500
 
21501
- return function unsubscribe() {
21502
- if (!isSubscribed || first === null) return;
21503
- isSubscribed = false;
 
 
 
 
 
 
21504
 
21505
- if (listener.next) {
21506
- listener.next.prev = listener.prev;
21507
- } else {
21508
- last = listener.prev;
21509
- }
21510
 
21511
- if (listener.prev) {
21512
- listener.prev.next = listener.next;
21513
- } else {
21514
- first = listener.next;
21515
- }
21516
- };
 
 
 
 
 
 
 
 
 
 
 
 
21517
  }
21518
- };
21519
- }
21520
 
21521
- var Subscription = /*#__PURE__*/function () {
21522
- function Subscription(store, parentSub) {
21523
- this.store = store;
21524
- this.parentSub = parentSub;
21525
- this.unsubscribe = null;
21526
- this.listeners = nullListeners;
21527
- this.handleChangeWrapper = this.handleChangeWrapper.bind(this);
21528
- }
21529
 
21530
- var _proto = Subscription.prototype;
 
 
 
 
 
21531
 
21532
- _proto.addNestedSub = function addNestedSub(listener) {
21533
- this.trySubscribe();
21534
- return this.listeners.subscribe(listener);
21535
- };
21536
 
21537
- _proto.notifyNestedSubs = function notifyNestedSubs() {
21538
- this.listeners.notify();
21539
- };
21540
 
21541
- _proto.handleChangeWrapper = function handleChangeWrapper() {
21542
- if (this.onStateChange) {
21543
- this.onStateChange();
21544
  }
21545
- };
21546
-
21547
- _proto.isSubscribed = function isSubscribed() {
21548
- return Boolean(this.unsubscribe);
21549
- };
21550
 
21551
- _proto.trySubscribe = function trySubscribe() {
21552
- if (!this.unsubscribe) {
21553
- this.unsubscribe = this.parentSub ? this.parentSub.addNestedSub(this.handleChangeWrapper) : this.store.subscribe(this.handleChangeWrapper);
21554
- this.listeners = createListenerCollection();
21555
  }
21556
- };
21557
 
21558
- _proto.tryUnsubscribe = function tryUnsubscribe() {
21559
- if (this.unsubscribe) {
21560
- this.unsubscribe();
21561
- this.unsubscribe = null;
21562
- this.listeners.clear();
21563
- this.listeners = nullListeners;
21564
  }
21565
- };
21566
 
21567
- return Subscription;
21568
- }();
21569
 
 
 
 
 
21570
 
21571
- ;// CONCATENATED MODULE: ./node_modules/react-redux/es/utils/useIsomorphicLayoutEffect.js
21572
- // React currently throws a warning when using useLayoutEffect on the server.
21573
- // To get around it, we can conditionally useEffect on the server (no-op) and
21574
- // useLayoutEffect in the browser. We need useLayoutEffect to ensure the store
21575
- // subscription callback always has the selector from the latest render commit
21576
- // available, otherwise a store update may happen between render and the effect,
21577
- // which may cause missed updates; we also must ensure the store subscription
21578
- // is created synchronously, otherwise a store update may occur before the
21579
- // subscription is created and an inconsistent state may be observed
21580
 
21581
- var useIsomorphicLayoutEffect_useIsomorphicLayoutEffect = typeof window !== 'undefined' && typeof window.document !== 'undefined' && typeof window.document.createElement !== 'undefined' ? react.useLayoutEffect : react.useEffect;
21582
- ;// CONCATENATED MODULE: ./node_modules/react-redux/es/components/Provider.js
 
 
 
 
 
 
21583
 
 
 
 
 
 
 
 
21584
 
 
 
 
 
 
 
 
 
 
 
21585
 
 
 
 
 
21586
 
 
 
 
 
21587
 
 
 
 
 
 
21588
 
21589
- function Provider(_ref) {
21590
- var store = _ref.store,
21591
- context = _ref.context,
21592
- children = _ref.children;
21593
- var contextValue = (0,react.useMemo)(function () {
21594
- var subscription = new Subscription(store);
21595
- subscription.onStateChange = subscription.notifyNestedSubs;
21596
- return {
21597
- store: store,
21598
- subscription: subscription
21599
  };
21600
- }, [store]);
21601
- var previousState = (0,react.useMemo)(function () {
21602
- return store.getState();
21603
- }, [store]);
21604
- useIsomorphicLayoutEffect_useIsomorphicLayoutEffect(function () {
21605
- var subscription = contextValue.subscription;
21606
- subscription.trySubscribe();
21607
-
21608
- if (previousState !== store.getState()) {
21609
- subscription.notifyNestedSubs();
21610
- }
21611
 
21612
- return function () {
21613
- subscription.tryUnsubscribe();
21614
- subscription.onStateChange = null;
 
 
 
21615
  };
21616
- }, [contextValue, previousState]);
21617
- var Context = context || Context_ReactReduxContext;
21618
- return /*#__PURE__*/react.createElement(Context.Provider, {
21619
- value: contextValue
21620
- }, children);
21621
- }
21622
-
21623
- if (false) {}
21624
-
21625
- /* harmony default export */ var components_Provider = (Provider);
21626
- // EXTERNAL MODULE: ./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js
21627
- var hoist_non_react_statics_cjs = __webpack_require__(8679);
21628
- var hoist_non_react_statics_cjs_default = /*#__PURE__*/__webpack_require__.n(hoist_non_react_statics_cjs);
21629
- // EXTERNAL MODULE: ./node_modules/react-redux/node_modules/react-is/index.js
21630
- var react_is = __webpack_require__(72973);
21631
- ;// CONCATENATED MODULE: ./node_modules/react-redux/es/components/connectAdvanced.js
21632
 
 
 
 
 
 
 
 
21633
 
 
 
21634
 
 
 
 
21635
 
 
 
 
 
 
21636
 
 
 
 
21637
 
 
 
21638
 
21639
- // Define some constant arrays just to avoid re-creating these
 
 
21640
 
21641
- var EMPTY_ARRAY = [];
21642
- var NO_SUBSCRIPTION_ARRAY = [null, null];
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
21643
 
21644
- var stringifyComponent = function stringifyComponent(Comp) {
21645
- try {
21646
- return JSON.stringify(Comp);
21647
- } catch (err) {
21648
- return String(Comp);
 
 
 
 
 
 
 
 
 
 
 
21649
  }
21650
  };
21651
 
21652
- function storeStateUpdatesReducer(state, action) {
21653
- var updateCount = state[1];
21654
- return [action.payload, updateCount + 1];
 
 
21655
  }
21656
 
21657
- function useIsomorphicLayoutEffectWithArgs(effectFunc, effectArgs, dependencies) {
21658
- useIsomorphicLayoutEffect_useIsomorphicLayoutEffect(function () {
21659
- return effectFunc.apply(void 0, effectArgs);
21660
- }, dependencies);
21661
- }
21662
 
21663
- function captureWrapperProps(lastWrapperProps, lastChildProps, renderIsScheduled, wrapperProps, actualChildProps, childPropsFromStoreUpdate, notifyNestedSubs) {
21664
- // We want to capture the wrapper props and child props we used for later comparisons
21665
- lastWrapperProps.current = wrapperProps;
21666
- lastChildProps.current = actualChildProps;
21667
- renderIsScheduled.current = false; // If the render was from a store update, clear out that reference and cascade the subscriber update
 
 
 
21668
 
21669
- if (childPropsFromStoreUpdate.current) {
21670
- childPropsFromStoreUpdate.current = null;
21671
- notifyNestedSubs();
21672
- }
21673
  }
21674
 
21675
- function subscribeUpdates(shouldHandleStateChanges, store, subscription, childPropsSelector, lastWrapperProps, lastChildProps, renderIsScheduled, childPropsFromStoreUpdate, notifyNestedSubs, forceComponentUpdateDispatch) {
21676
- // If we're not subscribed to the store, nothing to do here
21677
- if (!shouldHandleStateChanges) return; // Capture values for checking if and when this component unmounts
21678
 
21679
- var didUnsubscribe = false;
21680
- var lastThrownError = null; // We'll run this callback every time a store subscription update propagates to this component
 
 
 
 
 
 
 
 
21681
 
21682
- var checkForUpdates = function checkForUpdates() {
21683
- if (didUnsubscribe) {
21684
- // Don't run stale listeners.
21685
- // Redux doesn't guarantee unsubscriptions happen until next dispatch.
21686
- return;
21687
  }
21688
 
21689
- var latestStoreState = store.getState();
21690
- var newChildProps, error;
21691
-
21692
- try {
21693
- // Actually run the selector with the most recent store state and wrapper props
21694
- // to determine what the child props should be
21695
- newChildProps = childPropsSelector(latestStoreState, lastWrapperProps.current);
21696
- } catch (e) {
21697
- error = e;
21698
- lastThrownError = e;
21699
  }
21700
 
21701
- if (!error) {
21702
- lastThrownError = null;
21703
- } // If the child props haven't changed, nothing to do here - cascade the subscription update
21704
-
21705
-
21706
- if (newChildProps === lastChildProps.current) {
21707
- if (!renderIsScheduled.current) {
21708
- notifyNestedSubs();
21709
- }
21710
- } else {
21711
- // Save references to the new child props. Note that we track the "child props from store update"
21712
- // as a ref instead of a useState/useReducer because we need a way to determine if that value has
21713
- // been processed. If this went into useState/useReducer, we couldn't clear out the value without
21714
- // forcing another re-render, which we don't want.
21715
- lastChildProps.current = newChildProps;
21716
- childPropsFromStoreUpdate.current = newChildProps;
21717
- renderIsScheduled.current = true; // If the child props _did_ change (or we caught an error), this wrapper component needs to re-render
21718
 
21719
- forceComponentUpdateDispatch({
21720
- type: 'STORE_UPDATED',
21721
- payload: {
21722
- error: error
21723
- }
21724
  });
 
21725
  }
21726
- }; // Actually subscribe to the nearest connected ancestor (or store)
21727
-
21728
 
21729
- subscription.onStateChange = checkForUpdates;
21730
- subscription.trySubscribe(); // Pull data from the store after first render in case the store has
21731
- // changed since we began.
 
 
 
 
 
 
 
21732
 
21733
- checkForUpdates();
 
 
 
 
 
21734
 
21735
- var unsubscribeWrapper = function unsubscribeWrapper() {
21736
- didUnsubscribe = true;
21737
- subscription.tryUnsubscribe();
21738
- subscription.onStateChange = null;
21739
 
21740
- if (lastThrownError) {
21741
- // It's possible that we caught an error due to a bad mapState function, but the
21742
- // parent re-rendered without this component and we're about to unmount.
21743
- // This shouldn't happen as long as we do top-down subscriptions correctly, but
21744
- // if we ever do those wrong, this throw will surface the error in our tests.
21745
- // In that case, throw the error from here so it doesn't get lost.
21746
- throw lastThrownError;
 
 
 
 
 
 
 
 
21747
  }
21748
- };
21749
-
21750
- return unsubscribeWrapper;
21751
- }
21752
 
21753
- var initStateUpdates = function initStateUpdates() {
21754
- return [null, 0];
21755
- };
21756
-
21757
- function connectAdvanced(
21758
- /*
21759
- selectorFactory is a func that is responsible for returning the selector function used to
21760
- compute new props from state, props, and dispatch. For example:
21761
- export default connectAdvanced((dispatch, options) => (state, props) => ({
21762
- thing: state.things[props.thingId],
21763
- saveThing: fields => dispatch(actionCreators.saveThing(props.thingId, fields)),
21764
- }))(YourComponent)
21765
- Access to dispatch is provided to the factory so selectorFactories can bind actionCreators
21766
- outside of their selector as an optimization. Options passed to connectAdvanced are passed to
21767
- the selectorFactory, along with displayName and WrappedComponent, as the second argument.
21768
- Note that selectorFactory is responsible for all caching/memoization of inbound and outbound
21769
- props. Do not use connectAdvanced directly without memoizing results between calls to your
21770
- selector, otherwise the Connect component will re-render on every state or props change.
21771
- */
21772
- selectorFactory, // options object:
21773
- _ref) {
21774
- if (_ref === void 0) {
21775
- _ref = {};
21776
- }
21777
 
21778
- var _ref2 = _ref,
21779
- _ref2$getDisplayName = _ref2.getDisplayName,
21780
- getDisplayName = _ref2$getDisplayName === void 0 ? function (name) {
21781
- return "ConnectAdvanced(" + name + ")";
21782
- } : _ref2$getDisplayName,
21783
- _ref2$methodName = _ref2.methodName,
21784
- methodName = _ref2$methodName === void 0 ? 'connectAdvanced' : _ref2$methodName,
21785
- _ref2$renderCountProp = _ref2.renderCountProp,
21786
- renderCountProp = _ref2$renderCountProp === void 0 ? undefined : _ref2$renderCountProp,
21787
- _ref2$shouldHandleSta = _ref2.shouldHandleStateChanges,
21788
- shouldHandleStateChanges = _ref2$shouldHandleSta === void 0 ? true : _ref2$shouldHandleSta,
21789
- _ref2$storeKey = _ref2.storeKey,
21790
- storeKey = _ref2$storeKey === void 0 ? 'store' : _ref2$storeKey,
21791
- _ref2$withRef = _ref2.withRef,
21792
- withRef = _ref2$withRef === void 0 ? false : _ref2$withRef,
21793
- _ref2$forwardRef = _ref2.forwardRef,
21794
- forwardRef = _ref2$forwardRef === void 0 ? false : _ref2$forwardRef,
21795
- _ref2$context = _ref2.context,
21796
- context = _ref2$context === void 0 ? Context_ReactReduxContext : _ref2$context,
21797
- connectOptions = (0,objectWithoutPropertiesLoose/* default */.Z)(_ref2, ["getDisplayName", "methodName", "renderCountProp", "shouldHandleStateChanges", "storeKey", "withRef", "forwardRef", "context"]);
21798
 
21799
- if (false) { var customStoreWarningMessage; }
 
 
 
 
 
21800
 
21801
- var Context = context;
21802
- return function wrapWithConnect(WrappedComponent) {
21803
- if (false) {}
 
 
 
 
 
21804
 
21805
- var wrappedComponentName = WrappedComponent.displayName || WrappedComponent.name || 'Component';
21806
- var displayName = getDisplayName(wrappedComponentName);
 
21807
 
21808
- var selectorFactoryOptions = (0,esm_extends/* default */.Z)({}, connectOptions, {
21809
- getDisplayName: getDisplayName,
21810
- methodName: methodName,
21811
- renderCountProp: renderCountProp,
21812
- shouldHandleStateChanges: shouldHandleStateChanges,
21813
- storeKey: storeKey,
21814
- displayName: displayName,
21815
- wrappedComponentName: wrappedComponentName,
21816
- WrappedComponent: WrappedComponent
21817
- });
21818
 
21819
- var pure = connectOptions.pure;
 
21820
 
21821
- function createChildSelector(store) {
21822
- return selectorFactory(store.dispatch, selectorFactoryOptions);
21823
- } // If we aren't running in "pure" mode, we don't want to memoize values.
21824
- // To avoid conditionally calling hooks, we fall back to a tiny wrapper
21825
- // that just executes the given callback immediately.
 
 
 
 
 
 
 
 
 
 
21826
 
 
 
 
 
 
 
 
 
 
 
 
 
21827
 
21828
- var usePureOnlyMemo = pure ? react.useMemo : function (callback) {
21829
- return callback();
 
 
 
 
 
 
 
21830
  };
 
 
21831
 
21832
- function ConnectFunction(props) {
21833
- var _useMemo = (0,react.useMemo)(function () {
21834
- // Distinguish between actual "data" props that were passed to the wrapper component,
21835
- // and values needed to control behavior (forwarded refs, alternate context instances).
21836
- // To maintain the wrapperProps object reference, memoize this destructuring.
21837
- var reactReduxForwardedRef = props.reactReduxForwardedRef,
21838
- wrapperProps = (0,objectWithoutPropertiesLoose/* default */.Z)(props, ["reactReduxForwardedRef"]);
21839
 
21840
- return [props.context, reactReduxForwardedRef, wrapperProps];
21841
- }, [props]),
21842
- propsContext = _useMemo[0],
21843
- reactReduxForwardedRef = _useMemo[1],
21844
- wrapperProps = _useMemo[2];
 
 
 
 
21845
 
21846
- var ContextToUse = (0,react.useMemo)(function () {
21847
- // Users may optionally pass in a custom context instance to use instead of our ReactReduxContext.
21848
- // Memoize the check that determines which context instance we should use.
21849
- return propsContext && propsContext.Consumer && (0,react_is.isContextConsumer)( /*#__PURE__*/react.createElement(propsContext.Consumer, null)) ? propsContext : Context;
21850
- }, [propsContext, Context]); // Retrieve the store and ancestor subscription via context, if available
21851
 
21852
- var contextValue = (0,react.useContext)(ContextToUse); // The store _must_ exist as either a prop or in context.
21853
- // We'll check to see if it _looks_ like a Redux store first.
21854
- // This allows us to pass through a `store` prop that is just a plain value.
21855
 
21856
- var didStoreComeFromProps = Boolean(props.store) && Boolean(props.store.getState) && Boolean(props.store.dispatch);
21857
- var didStoreComeFromContext = Boolean(contextValue) && Boolean(contextValue.store);
 
 
 
 
 
 
 
21858
 
21859
- if (false) {} // Based on the previous check, one of these must be true
 
 
 
 
 
 
 
21860
 
 
 
 
 
21861
 
21862
- var store = didStoreComeFromProps ? props.store : contextValue.store;
21863
- var childPropsSelector = (0,react.useMemo)(function () {
21864
- // The child props selector needs the store reference as an input.
21865
- // Re-create this selector whenever the store changes.
21866
- return createChildSelector(store);
21867
- }, [store]);
21868
 
21869
- var _useMemo2 = (0,react.useMemo)(function () {
21870
- if (!shouldHandleStateChanges) return NO_SUBSCRIPTION_ARRAY; // This Subscription's source should match where store came from: props vs. context. A component
21871
- // connected to the store via props shouldn't use subscription from context, or vice versa.
 
 
21872
 
21873
- var subscription = new Subscription(store, didStoreComeFromProps ? null : contextValue.subscription); // `notifyNestedSubs` is duplicated to handle the case where the component is unmounted in
21874
- // the middle of the notification loop, where `subscription` will then be null. This can
21875
- // probably be avoided if Subscription's listeners logic is changed to not call listeners
21876
- // that have been unsubscribed in the middle of the notification loop.
 
21877
 
21878
- var notifyNestedSubs = subscription.notifyNestedSubs.bind(subscription);
21879
- return [subscription, notifyNestedSubs];
21880
- }, [store, didStoreComeFromProps, contextValue]),
21881
- subscription = _useMemo2[0],
21882
- notifyNestedSubs = _useMemo2[1]; // Determine what {store, subscription} value should be put into nested context, if necessary,
21883
- // and memoize that value to avoid unnecessary context updates.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
21884
 
21885
 
21886
- var overriddenContextValue = (0,react.useMemo)(function () {
21887
- if (didStoreComeFromProps) {
21888
- // This component is directly subscribed to a store from props.
21889
- // We don't want descendants reading from this store - pass down whatever
21890
- // the existing context value is from the nearest connected ancestor.
21891
- return contextValue;
21892
- } // Otherwise, put this component's subscription instance into context, so that
21893
- // connected descendants won't update until after this component is done
21894
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
21895
 
21896
- return (0,esm_extends/* default */.Z)({}, contextValue, {
21897
- subscription: subscription
 
 
 
 
 
 
 
 
 
21898
  });
21899
- }, [didStoreComeFromProps, contextValue, subscription]); // We need to force this wrapper component to re-render whenever a Redux store update
21900
- // causes a change to the calculated child component props (or we caught an error in mapState)
21901
-
21902
- var _useReducer = (0,react.useReducer)(storeStateUpdatesReducer, EMPTY_ARRAY, initStateUpdates),
21903
- _useReducer$ = _useReducer[0],
21904
- previousStateUpdateResult = _useReducer$[0],
21905
- forceComponentUpdateDispatch = _useReducer[1]; // Propagate any mapState/mapDispatch errors upwards
21906
-
21907
-
21908
- if (previousStateUpdateResult && previousStateUpdateResult.error) {
21909
- throw previousStateUpdateResult.error;
21910
- } // Set up refs to coordinate values between the subscription effect and the render logic
21911
-
21912
-
21913
- var lastChildProps = (0,react.useRef)();
21914
- var lastWrapperProps = (0,react.useRef)(wrapperProps);
21915
- var childPropsFromStoreUpdate = (0,react.useRef)();
21916
- var renderIsScheduled = (0,react.useRef)(false);
21917
- var actualChildProps = usePureOnlyMemo(function () {
21918
- // Tricky logic here:
21919
- // - This render may have been triggered by a Redux store update that produced new child props
21920
- // - However, we may have gotten new wrapper props after that
21921
- // If we have new child props, and the same wrapper props, we know we should use the new child props as-is.
21922
- // But, if we have new wrapper props, those might change the child props, so we have to recalculate things.
21923
- // So, we'll use the child props from store update only if the wrapper props are the same as last time.
21924
- if (childPropsFromStoreUpdate.current && wrapperProps === lastWrapperProps.current) {
21925
- return childPropsFromStoreUpdate.current;
21926
- } // TODO We're reading the store directly in render() here. Bad idea?
21927
- // This will likely cause Bad Things (TM) to happen in Concurrent Mode.
21928
- // Note that we do this because on renders _not_ caused by store updates, we need the latest store state
21929
- // to determine what the child props should be.
21930
-
21931
-
21932
- return childPropsSelector(store.getState(), wrapperProps);
21933
- }, [store, previousStateUpdateResult, wrapperProps]); // We need this to execute synchronously every time we re-render. However, React warns
21934
- // about useLayoutEffect in SSR, so we try to detect environment and fall back to
21935
- // just useEffect instead to avoid the warning, since neither will run anyway.
21936
-
21937
- useIsomorphicLayoutEffectWithArgs(captureWrapperProps, [lastWrapperProps, lastChildProps, renderIsScheduled, wrapperProps, actualChildProps, childPropsFromStoreUpdate, notifyNestedSubs]); // Our re-subscribe logic only runs when the store/subscription setup changes
21938
 
21939
- useIsomorphicLayoutEffectWithArgs(subscribeUpdates, [shouldHandleStateChanges, store, subscription, childPropsSelector, lastWrapperProps, lastChildProps, renderIsScheduled, childPropsFromStoreUpdate, notifyNestedSubs, forceComponentUpdateDispatch], [store, subscription, childPropsSelector]); // Now that all that's done, we can finally try to actually render the child component.
21940
- // We memoize the elements for the rendered child component as an optimization.
21941
 
21942
- var renderedWrappedComponent = (0,react.useMemo)(function () {
21943
- return /*#__PURE__*/react.createElement(WrappedComponent, (0,esm_extends/* default */.Z)({}, actualChildProps, {
21944
- ref: reactReduxForwardedRef
21945
- }));
21946
- }, [reactReduxForwardedRef, WrappedComponent, actualChildProps]); // If React sees the exact same element reference as last time, it bails out of re-rendering
21947
- // that child, same as if it was wrapped in React.memo() or returned false from shouldComponentUpdate.
21948
 
21949
- var renderedChild = (0,react.useMemo)(function () {
21950
- if (shouldHandleStateChanges) {
21951
- // If this component is subscribed to store updates, we need to pass its own
21952
- // subscription instance down to our descendants. That means rendering the same
21953
- // Context instance, and putting a different value into the context.
21954
- return /*#__PURE__*/react.createElement(ContextToUse.Provider, {
21955
- value: overriddenContextValue
21956
- }, renderedWrappedComponent);
21957
- }
21958
 
21959
- return renderedWrappedComponent;
21960
- }, [ContextToUse, renderedWrappedComponent, overriddenContextValue]);
21961
- return renderedChild;
21962
- } // If we're in "pure" mode, ensure our wrapper component only re-renders when incoming props have changed.
 
 
21963
 
 
 
 
 
 
 
21964
 
21965
- var Connect = pure ? react.memo(ConnectFunction) : ConnectFunction;
21966
- Connect.WrappedComponent = WrappedComponent;
21967
- Connect.displayName = displayName;
21968
 
21969
- if (forwardRef) {
21970
- var forwarded = react.forwardRef(function forwardConnectRef(props, ref) {
21971
- return /*#__PURE__*/react.createElement(Connect, (0,esm_extends/* default */.Z)({}, props, {
21972
- reactReduxForwardedRef: ref
21973
- }));
21974
- });
21975
- forwarded.displayName = displayName;
21976
- forwarded.WrappedComponent = WrappedComponent;
21977
- return hoist_non_react_statics_cjs_default()(forwarded, WrappedComponent);
21978
  }
21979
 
21980
- return hoist_non_react_statics_cjs_default()(Connect, WrappedComponent);
21981
- };
21982
- }
21983
- ;// CONCATENATED MODULE: ./node_modules/react-redux/es/utils/shallowEqual.js
21984
- function is(x, y) {
21985
- if (x === y) {
21986
- return x !== 0 || y !== 0 || 1 / x === 1 / y;
21987
- } else {
21988
- return x !== x && y !== y;
21989
- }
21990
- }
21991
 
21992
- function shallowEqual(objA, objB) {
21993
- if (is(objA, objB)) return true;
 
21994
 
21995
- if (typeof objA !== 'object' || objA === null || typeof objB !== 'object' || objB === null) {
21996
- return false;
21997
- }
 
 
21998
 
21999
- var keysA = Object.keys(objA);
22000
- var keysB = Object.keys(objB);
22001
- if (keysA.length !== keysB.length) return false;
22002
 
22003
- for (var i = 0; i < keysA.length; i++) {
22004
- if (!Object.prototype.hasOwnProperty.call(objB, keysA[i]) || !is(objA[keysA[i]], objB[keysA[i]])) {
22005
- return false;
22006
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
22007
  }
22008
 
22009
  return true;
22010
  }
22011
- ;// CONCATENATED MODULE: ./node_modules/react-redux/es/connect/wrapMapToProps.js
22012
-
22013
- function wrapMapToPropsConstant(getConstant) {
22014
- return function initConstantSelector(dispatch, options) {
22015
- var constant = getConstant(dispatch, options);
22016
 
22017
- function constantSelector() {
22018
- return constant;
22019
- }
22020
 
22021
- constantSelector.dependsOnOwnProps = false;
22022
- return constantSelector;
22023
- };
22024
- } // dependsOnOwnProps is used by createMapToPropsProxy to determine whether to pass props as args
22025
- // to the mapToProps function being wrapped. It is also used by makePurePropsSelector to determine
22026
- // whether mapToProps needs to be invoked when props have changed.
22027
- //
22028
- // A length of one signals that mapToProps does not depend on props from the parent component.
22029
- // A length of zero is assumed to mean mapToProps is getting args via arguments or ...args and
22030
- // therefore not reporting its length accurately..
22031
 
22032
- function getDependsOnOwnProps(mapToProps) {
22033
- return mapToProps.dependsOnOwnProps !== null && mapToProps.dependsOnOwnProps !== undefined ? Boolean(mapToProps.dependsOnOwnProps) : mapToProps.length !== 1;
22034
- } // Used by whenMapStateToPropsIsFunction and whenMapDispatchToPropsIsFunction,
22035
- // this function wraps mapToProps in a proxy function which does several things:
22036
- //
22037
- // * Detects whether the mapToProps function being called depends on props, which
22038
- // is used by selectorFactory to decide if it should reinvoke on props changes.
22039
- //
22040
- // * On first call, handles mapToProps if returns another function, and treats that
22041
- // new function as the true mapToProps for subsequent calls.
22042
- //
22043
- // * On first call, verifies the first result is a plain object, in order to warn
22044
- // the developer that their mapToProps function is not returning a valid result.
22045
- //
22046
 
22047
- function wrapMapToPropsFunc(mapToProps, methodName) {
22048
- return function initProxySelector(dispatch, _ref) {
22049
- var displayName = _ref.displayName;
22050
 
22051
- var proxy = function mapToPropsProxy(stateOrDispatch, ownProps) {
22052
- return proxy.dependsOnOwnProps ? proxy.mapToProps(stateOrDispatch, ownProps) : proxy.mapToProps(stateOrDispatch);
22053
- }; // allow detectFactoryAndVerify to get ownProps
22054
 
22055
 
22056
- proxy.dependsOnOwnProps = true;
22057
 
22058
- proxy.mapToProps = function detectFactoryAndVerify(stateOrDispatch, ownProps) {
22059
- proxy.mapToProps = mapToProps;
22060
- proxy.dependsOnOwnProps = getDependsOnOwnProps(mapToProps);
22061
- var props = proxy(stateOrDispatch, ownProps);
22062
 
22063
- if (typeof props === 'function') {
22064
- proxy.mapToProps = props;
22065
- proxy.dependsOnOwnProps = getDependsOnOwnProps(props);
22066
- props = proxy(stateOrDispatch, ownProps);
22067
- }
22068
 
22069
- if (false) {}
22070
- return props;
22071
- };
 
 
22072
 
22073
- return proxy;
22074
- };
22075
  }
22076
- ;// CONCATENATED MODULE: ./node_modules/react-redux/es/connect/mapDispatchToProps.js
22077
 
 
 
 
 
 
 
22078
 
22079
- function whenMapDispatchToPropsIsFunction(mapDispatchToProps) {
22080
- return typeof mapDispatchToProps === 'function' ? wrapMapToPropsFunc(mapDispatchToProps, 'mapDispatchToProps') : undefined;
22081
- }
22082
- function whenMapDispatchToPropsIsMissing(mapDispatchToProps) {
22083
- return !mapDispatchToProps ? wrapMapToPropsConstant(function (dispatch) {
22084
- return {
22085
- dispatch: dispatch
22086
- };
22087
- }) : undefined;
22088
  }
22089
- function whenMapDispatchToPropsIsObject(mapDispatchToProps) {
22090
- return mapDispatchToProps && typeof mapDispatchToProps === 'object' ? wrapMapToPropsConstant(function (dispatch) {
22091
- return bindActionCreators(mapDispatchToProps, dispatch);
22092
- }) : undefined;
22093
  }
22094
- /* harmony default export */ var mapDispatchToProps = ([whenMapDispatchToPropsIsFunction, whenMapDispatchToPropsIsMissing, whenMapDispatchToPropsIsObject]);
22095
- ;// CONCATENATED MODULE: ./node_modules/react-redux/es/connect/mapStateToProps.js
 
 
22096
 
22097
- function whenMapStateToPropsIsFunction(mapStateToProps) {
22098
- return typeof mapStateToProps === 'function' ? wrapMapToPropsFunc(mapStateToProps, 'mapStateToProps') : undefined;
22099
- }
22100
- function whenMapStateToPropsIsMissing(mapStateToProps) {
22101
- return !mapStateToProps ? wrapMapToPropsConstant(function () {
22102
- return {};
22103
- }) : undefined;
22104
- }
22105
- /* harmony default export */ var mapStateToProps = ([whenMapStateToPropsIsFunction, whenMapStateToPropsIsMissing]);
22106
- ;// CONCATENATED MODULE: ./node_modules/react-redux/es/connect/mergeProps.js
22107
 
 
 
 
22108
 
22109
- function defaultMergeProps(stateProps, dispatchProps, ownProps) {
22110
- return (0,esm_extends/* default */.Z)({}, ownProps, stateProps, dispatchProps);
22111
  }
22112
- function wrapMergePropsFunc(mergeProps) {
22113
- return function initMergePropsProxy(dispatch, _ref) {
22114
- var displayName = _ref.displayName,
22115
- pure = _ref.pure,
22116
- areMergedPropsEqual = _ref.areMergedPropsEqual;
22117
- var hasRunOnce = false;
22118
- var mergedProps;
22119
- return function mergePropsProxy(stateProps, dispatchProps, ownProps) {
22120
- var nextMergedProps = mergeProps(stateProps, dispatchProps, ownProps);
22121
 
22122
- if (hasRunOnce) {
22123
- if (!pure || !areMergedPropsEqual(nextMergedProps, mergedProps)) mergedProps = nextMergedProps;
 
 
 
 
 
 
 
 
 
 
 
22124
  } else {
22125
- hasRunOnce = true;
22126
- mergedProps = nextMergedProps;
22127
- if (false) {}
22128
  }
 
22129
 
22130
- return mergedProps;
22131
- };
22132
- };
22133
- }
22134
- function whenMergePropsIsFunction(mergeProps) {
22135
- return typeof mergeProps === 'function' ? wrapMergePropsFunc(mergeProps) : undefined;
22136
- }
22137
- function whenMergePropsIsOmitted(mergeProps) {
22138
- return !mergeProps ? function () {
22139
- return defaultMergeProps;
22140
- } : undefined;
22141
  }
22142
- /* harmony default export */ var mergeProps = ([whenMergePropsIsFunction, whenMergePropsIsOmitted]);
22143
- ;// CONCATENATED MODULE: ./node_modules/react-redux/es/connect/selectorFactory.js
22144
-
22145
 
22146
- function impureFinalPropsSelectorFactory(mapStateToProps, mapDispatchToProps, mergeProps, dispatch) {
22147
- return function impureFinalPropsSelector(state, ownProps) {
22148
- return mergeProps(mapStateToProps(state, ownProps), mapDispatchToProps(dispatch, ownProps), ownProps);
22149
- };
 
 
 
 
 
 
22150
  }
22151
- function pureFinalPropsSelectorFactory(mapStateToProps, mapDispatchToProps, mergeProps, dispatch, _ref) {
22152
- var areStatesEqual = _ref.areStatesEqual,
22153
- areOwnPropsEqual = _ref.areOwnPropsEqual,
22154
- areStatePropsEqual = _ref.areStatePropsEqual;
22155
- var hasRunAtLeastOnce = false;
22156
- var state;
22157
- var ownProps;
22158
- var stateProps;
22159
- var dispatchProps;
22160
- var mergedProps;
22161
-
22162
- function handleFirstCall(firstState, firstOwnProps) {
22163
- state = firstState;
22164
- ownProps = firstOwnProps;
22165
- stateProps = mapStateToProps(state, ownProps);
22166
- dispatchProps = mapDispatchToProps(dispatch, ownProps);
22167
- mergedProps = mergeProps(stateProps, dispatchProps, ownProps);
22168
- hasRunAtLeastOnce = true;
22169
- return mergedProps;
22170
- }
22171
-
22172
- function handleNewPropsAndNewState() {
22173
- stateProps = mapStateToProps(state, ownProps);
22174
- if (mapDispatchToProps.dependsOnOwnProps) dispatchProps = mapDispatchToProps(dispatch, ownProps);
22175
- mergedProps = mergeProps(stateProps, dispatchProps, ownProps);
22176
- return mergedProps;
22177
- }
22178
 
22179
- function handleNewProps() {
22180
- if (mapStateToProps.dependsOnOwnProps) stateProps = mapStateToProps(state, ownProps);
22181
- if (mapDispatchToProps.dependsOnOwnProps) dispatchProps = mapDispatchToProps(dispatch, ownProps);
22182
- mergedProps = mergeProps(stateProps, dispatchProps, ownProps);
22183
- return mergedProps;
22184
- }
22185
 
22186
- function handleNewState() {
22187
- var nextStateProps = mapStateToProps(state, ownProps);
22188
- var statePropsChanged = !areStatePropsEqual(nextStateProps, stateProps);
22189
- stateProps = nextStateProps;
22190
- if (statePropsChanged) mergedProps = mergeProps(stateProps, dispatchProps, ownProps);
22191
- return mergedProps;
22192
- }
22193
 
22194
- function handleSubsequentCalls(nextState, nextOwnProps) {
22195
- var propsChanged = !areOwnPropsEqual(nextOwnProps, ownProps);
22196
- var stateChanged = !areStatesEqual(nextState, state);
22197
- state = nextState;
22198
- ownProps = nextOwnProps;
22199
- if (propsChanged && stateChanged) return handleNewPropsAndNewState();
22200
- if (propsChanged) return handleNewProps();
22201
- if (stateChanged) return handleNewState();
22202
- return mergedProps;
22203
  }
22204
 
22205
- return function pureFinalPropsSelector(nextState, nextOwnProps) {
22206
- return hasRunAtLeastOnce ? handleSubsequentCalls(nextState, nextOwnProps) : handleFirstCall(nextState, nextOwnProps);
22207
- };
22208
- } // TODO: Add more comments
22209
- // If pure is true, the selector returned by selectorFactory will memoize its results,
22210
- // allowing connectAdvanced's shouldComponentUpdate to return false if final
22211
- // props have not changed. If false, the selector will always return a new
22212
- // object and shouldComponentUpdate will always return true.
22213
-
22214
- function finalPropsSelectorFactory(dispatch, _ref2) {
22215
- var initMapStateToProps = _ref2.initMapStateToProps,
22216
- initMapDispatchToProps = _ref2.initMapDispatchToProps,
22217
- initMergeProps = _ref2.initMergeProps,
22218
- options = (0,objectWithoutPropertiesLoose/* default */.Z)(_ref2, ["initMapStateToProps", "initMapDispatchToProps", "initMergeProps"]);
22219
-
22220
- var mapStateToProps = initMapStateToProps(dispatch, options);
22221
- var mapDispatchToProps = initMapDispatchToProps(dispatch, options);
22222
- var mergeProps = initMergeProps(dispatch, options);
22223
-
22224
- if (false) {}
22225
-
22226
- var selectorFactory = options.pure ? pureFinalPropsSelectorFactory : impureFinalPropsSelectorFactory;
22227
- return selectorFactory(mapStateToProps, mapDispatchToProps, mergeProps, dispatch, options);
22228
  }
22229
- ;// CONCATENATED MODULE: ./node_modules/react-redux/es/connect/connect.js
22230
-
22231
-
22232
-
22233
-
22234
-
22235
-
22236
 
 
 
 
 
 
 
 
22237
 
22238
- /*
22239
- connect is a facade over connectAdvanced. It turns its args into a compatible
22240
- selectorFactory, which has the signature:
22241
-
22242
- (dispatch, options) => (nextState, nextOwnProps) => nextFinalProps
22243
-
22244
- connect passes its args to connectAdvanced as options, which will in turn pass them to
22245
- selectorFactory each time a Connect component instance is instantiated or hot reloaded.
22246
-
22247
- selectorFactory returns a final props selector from its mapStateToProps,
22248
- mapStateToPropsFactories, mapDispatchToProps, mapDispatchToPropsFactories, mergeProps,
22249
- mergePropsFactories, and pure args.
22250
-
22251
- The resulting final props selector is called by the Connect component instance whenever
22252
- it receives new props or store state.
22253
- */
22254
 
22255
- function match(arg, factories, name) {
22256
- for (var i = factories.length - 1; i >= 0; i--) {
22257
- var result = factories[i](arg);
22258
- if (result) return result;
22259
- }
22260
 
22261
- return function (dispatch, options) {
22262
- throw new Error("Invalid value of type " + typeof arg + " for " + name + " argument when connecting component " + options.wrappedComponentName + ".");
22263
- };
22264
- }
22265
 
22266
- function strictEqual(a, b) {
22267
- return a === b;
22268
- } // createConnect with default args builds the 'official' connect behavior. Calling it with
22269
- // different options opens up some testing and extensibility scenarios
22270
 
 
 
22271
 
22272
- function createConnect(_temp) {
22273
- var _ref = _temp === void 0 ? {} : _temp,
22274
- _ref$connectHOC = _ref.connectHOC,
22275
- connectHOC = _ref$connectHOC === void 0 ? connectAdvanced : _ref$connectHOC,
22276
- _ref$mapStateToPropsF = _ref.mapStateToPropsFactories,
22277
- mapStateToPropsFactories = _ref$mapStateToPropsF === void 0 ? mapStateToProps : _ref$mapStateToPropsF,
22278
- _ref$mapDispatchToPro = _ref.mapDispatchToPropsFactories,
22279
- mapDispatchToPropsFactories = _ref$mapDispatchToPro === void 0 ? mapDispatchToProps : _ref$mapDispatchToPro,
22280
- _ref$mergePropsFactor = _ref.mergePropsFactories,
22281
- mergePropsFactories = _ref$mergePropsFactor === void 0 ? mergeProps : _ref$mergePropsFactor,
22282
- _ref$selectorFactory = _ref.selectorFactory,
22283
- selectorFactory = _ref$selectorFactory === void 0 ? finalPropsSelectorFactory : _ref$selectorFactory;
22284
 
22285
- return function connect(mapStateToProps, mapDispatchToProps, mergeProps, _ref2) {
22286
- if (_ref2 === void 0) {
22287
- _ref2 = {};
 
22288
  }
22289
 
22290
- var _ref3 = _ref2,
22291
- _ref3$pure = _ref3.pure,
22292
- pure = _ref3$pure === void 0 ? true : _ref3$pure,
22293
- _ref3$areStatesEqual = _ref3.areStatesEqual,
22294
- areStatesEqual = _ref3$areStatesEqual === void 0 ? strictEqual : _ref3$areStatesEqual,
22295
- _ref3$areOwnPropsEqua = _ref3.areOwnPropsEqual,
22296
- areOwnPropsEqual = _ref3$areOwnPropsEqua === void 0 ? shallowEqual : _ref3$areOwnPropsEqua,
22297
- _ref3$areStatePropsEq = _ref3.areStatePropsEqual,
22298
- areStatePropsEqual = _ref3$areStatePropsEq === void 0 ? shallowEqual : _ref3$areStatePropsEq,
22299
- _ref3$areMergedPropsE = _ref3.areMergedPropsEqual,
22300
- areMergedPropsEqual = _ref3$areMergedPropsE === void 0 ? shallowEqual : _ref3$areMergedPropsE,
22301
- extraOptions = (0,objectWithoutPropertiesLoose/* default */.Z)(_ref3, ["pure", "areStatesEqual", "areOwnPropsEqual", "areStatePropsEqual", "areMergedPropsEqual"]);
22302
 
22303
- var initMapStateToProps = match(mapStateToProps, mapStateToPropsFactories, 'mapStateToProps');
22304
- var initMapDispatchToProps = match(mapDispatchToProps, mapDispatchToPropsFactories, 'mapDispatchToProps');
22305
- var initMergeProps = match(mergeProps, mergePropsFactories, 'mergeProps');
22306
- return connectHOC(selectorFactory, (0,esm_extends/* default */.Z)({
22307
- // used in error messages
22308
- methodName: 'connect',
22309
- // used to compute Connect's displayName from the wrapped component's displayName.
22310
- getDisplayName: function getDisplayName(name) {
22311
- return "Connect(" + name + ")";
22312
- },
22313
- // if mapStateToProps is falsy, the Connect component doesn't subscribe to store state changes
22314
- shouldHandleStateChanges: Boolean(mapStateToProps),
22315
- // passed through to selectorFactory
22316
- initMapStateToProps: initMapStateToProps,
22317
- initMapDispatchToProps: initMapDispatchToProps,
22318
- initMergeProps: initMergeProps,
22319
- pure: pure,
22320
- areStatesEqual: areStatesEqual,
22321
- areOwnPropsEqual: areOwnPropsEqual,
22322
- areStatePropsEqual: areStatePropsEqual,
22323
- areMergedPropsEqual: areMergedPropsEqual
22324
- }, extraOptions));
22325
- };
22326
- }
22327
- /* harmony default export */ var connect = (/*#__PURE__*/createConnect());
22328
- ;// CONCATENATED MODULE: ./node_modules/react-redux/es/hooks/useReduxContext.js
22329
 
 
 
22330
 
22331
- /**
22332
- * A hook to access the value of the `ReactReduxContext`. This is a low-level
22333
- * hook that you should usually not need to call directly.
22334
- *
22335
- * @returns {any} the value of the `ReactReduxContext`
22336
- *
22337
- * @example
22338
- *
22339
- * import React from 'react'
22340
- * import { useReduxContext } from 'react-redux'
22341
- *
22342
- * export const CounterComponent = ({ value }) => {
22343
- * const { store } = useReduxContext()
22344
- * return <div>{store.getState()}</div>
22345
- * }
22346
- */
22347
 
22348
- function useReduxContext_useReduxContext() {
22349
- var contextValue = (0,react.useContext)(Context_ReactReduxContext);
 
22350
 
22351
- if (false) {}
 
 
22352
 
22353
- return contextValue;
22354
- }
22355
- ;// CONCATENATED MODULE: ./node_modules/react-redux/es/hooks/useStore.js
 
 
 
 
 
 
 
 
22356
 
 
 
22357
 
 
 
 
22358
 
22359
- /**
22360
- * Hook factory, which creates a `useStore` hook bound to a given context.
22361
- *
22362
- * @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
22363
- * @returns {Function} A `useStore` hook bound to the specified context.
22364
- */
22365
 
22366
- function useStore_createStoreHook(context) {
22367
- if (context === void 0) {
22368
- context = ReactReduxContext;
22369
- }
22370
 
22371
- var useReduxContext = context === ReactReduxContext ? useDefaultReduxContext : function () {
22372
- return useContext(context);
22373
- };
22374
- return function useStore() {
22375
- var _useReduxContext = useReduxContext(),
22376
- store = _useReduxContext.store;
 
 
 
 
 
22377
 
22378
- return store;
22379
- };
22380
- }
22381
- /**
22382
- * A hook to access the redux store.
22383
- *
22384
- * @returns {any} the redux store
22385
- *
22386
- * @example
22387
- *
22388
- * import React from 'react'
22389
- * import { useStore } from 'react-redux'
22390
- *
22391
- * export const ExampleComponent = () => {
22392
- * const store = useStore()
22393
- * return <div>{store.getState()}</div>
22394
- * }
22395
- */
22396
 
22397
- var useStore = /*#__PURE__*/(/* unused pure expression or super */ null && (useStore_createStoreHook()));
22398
- ;// CONCATENATED MODULE: ./node_modules/react-redux/es/hooks/useDispatch.js
22399
 
 
 
22400
 
22401
- /**
22402
- * Hook factory, which creates a `useDispatch` hook bound to a given context.
22403
- *
22404
- * @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
22405
- * @returns {Function} A `useDispatch` hook bound to the specified context.
22406
- */
22407
 
22408
- function createDispatchHook(context) {
22409
- if (context === void 0) {
22410
- context = ReactReduxContext;
22411
- }
22412
 
22413
- var useStore = context === ReactReduxContext ? useDefaultStore : createStoreHook(context);
22414
- return function useDispatch() {
22415
- var store = useStore();
22416
- return store.dispatch;
22417
- };
22418
- }
22419
- /**
22420
- * A hook to access the redux `dispatch` function.
22421
- *
22422
- * @returns {any|function} redux store's `dispatch` function
22423
- *
22424
- * @example
22425
- *
22426
- * import React, { useCallback } from 'react'
22427
- * import { useDispatch } from 'react-redux'
22428
- *
22429
- * export const CounterComponent = ({ value }) => {
22430
- * const dispatch = useDispatch()
22431
- * const increaseCounter = useCallback(() => dispatch({ type: 'increase-counter' }), [])
22432
- * return (
22433
- * <div>
22434
- * <span>{value}</span>
22435
- * <button onClick={increaseCounter}>Increase counter</button>
22436
- * </div>
22437
- * )
22438
- * }
22439
- */
22440
 
22441
- var useDispatch = /*#__PURE__*/(/* unused pure expression or super */ null && (createDispatchHook()));
22442
- ;// CONCATENATED MODULE: ./node_modules/react-redux/es/hooks/useSelector.js
 
22443
 
 
 
 
 
 
 
 
22444
 
 
 
 
 
 
 
22445
 
 
 
22446
 
 
 
 
 
 
22447
 
 
 
22448
 
22449
- var refEquality = function refEquality(a, b) {
22450
- return a === b;
22451
- };
22452
 
22453
- function useSelectorWithStoreAndSubscription(selector, equalityFn, store, contextSub) {
22454
- var _useReducer = (0,react.useReducer)(function (s) {
22455
- return s + 1;
22456
- }, 0),
22457
- forceRender = _useReducer[1];
22458
 
22459
- var subscription = (0,react.useMemo)(function () {
22460
- return new Subscription(store, contextSub);
22461
- }, [store, contextSub]);
22462
- var latestSubscriptionCallbackError = (0,react.useRef)();
22463
- var latestSelector = (0,react.useRef)();
22464
- var latestStoreState = (0,react.useRef)();
22465
- var latestSelectedState = (0,react.useRef)();
22466
- var storeState = store.getState();
22467
- var selectedState;
22468
 
22469
- try {
22470
- if (selector !== latestSelector.current || storeState !== latestStoreState.current || latestSubscriptionCallbackError.current) {
22471
- var newSelectedState = selector(storeState); // ensure latest selected state is reused so that a custom equality function can result in identical references
 
 
 
 
 
 
 
22472
 
22473
- if (latestSelectedState.current === undefined || !equalityFn(newSelectedState, latestSelectedState.current)) {
22474
- selectedState = newSelectedState;
22475
- } else {
22476
- selectedState = latestSelectedState.current;
22477
  }
22478
- } else {
22479
- selectedState = latestSelectedState.current;
22480
- }
22481
- } catch (err) {
22482
- if (latestSubscriptionCallbackError.current) {
22483
- err.message += "\nThe error may be correlated with this previous error:\n" + latestSubscriptionCallbackError.current.stack + "\n\n";
22484
- }
22485
 
22486
- throw err;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
22487
  }
22488
 
22489
- useIsomorphicLayoutEffect_useIsomorphicLayoutEffect(function () {
22490
- latestSelector.current = selector;
22491
- latestStoreState.current = storeState;
22492
- latestSelectedState.current = selectedState;
22493
- latestSubscriptionCallbackError.current = undefined;
22494
- });
22495
- useIsomorphicLayoutEffect_useIsomorphicLayoutEffect(function () {
22496
- function checkForUpdates() {
22497
- try {
22498
- var _newSelectedState = latestSelector.current(store.getState());
22499
 
22500
- if (equalityFn(_newSelectedState, latestSelectedState.current)) {
22501
- return;
22502
- }
 
 
 
 
22503
 
22504
- latestSelectedState.current = _newSelectedState;
22505
- } catch (err) {
22506
- // we ignore all errors here, since when the component
22507
- // is re-rendered, the selectors are called again, and
22508
- // will throw again, if neither props nor store state
22509
- // changed
22510
- latestSubscriptionCallbackError.current = err;
 
 
 
 
 
22511
  }
22512
 
22513
- forceRender();
22514
- }
22515
 
22516
- subscription.onStateChange = checkForUpdates;
22517
- subscription.trySubscribe();
22518
- checkForUpdates();
22519
- return function () {
22520
- return subscription.tryUnsubscribe();
22521
- };
22522
- }, [store, subscription]);
22523
- return selectedState;
22524
- }
22525
- /**
22526
- * Hook factory, which creates a `useSelector` hook bound to a given context.
22527
- *
22528
- * @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
22529
- * @returns {Function} A `useSelector` hook bound to the specified context.
22530
- */
22531
 
 
 
22532
 
22533
- function createSelectorHook(context) {
22534
- if (context === void 0) {
22535
- context = Context_ReactReduxContext;
22536
- }
 
 
 
 
22537
 
22538
- var useReduxContext = context === Context_ReactReduxContext ? useReduxContext_useReduxContext : function () {
22539
- return (0,react.useContext)(context);
22540
- };
22541
- return function useSelector(selector, equalityFn) {
22542
- if (equalityFn === void 0) {
22543
- equalityFn = refEquality;
22544
- }
22545
 
22546
- if (false) {}
 
 
 
 
 
 
 
 
 
 
 
22547
 
22548
- var _useReduxContext = useReduxContext(),
22549
- store = _useReduxContext.store,
22550
- contextSub = _useReduxContext.subscription;
 
22551
 
22552
- var selectedState = useSelectorWithStoreAndSubscription(selector, equalityFn, store, contextSub);
22553
- (0,react.useDebugValue)(selectedState);
22554
- return selectedState;
22555
- };
22556
- }
22557
- /**
22558
- * A hook to access the redux store's state. This hook takes a selector function
22559
- * as an argument. The selector is called with the store state.
22560
- *
22561
- * This hook takes an optional equality comparison function as the second parameter
22562
- * that allows you to customize the way the selected state is compared to determine
22563
- * whether the component needs to be re-rendered.
22564
- *
22565
- * @param {Function} selector the selector function
22566
- * @param {Function=} equalityFn the function that will be used to determine equality
22567
- *
22568
- * @returns {any} the selected state
22569
- *
22570
- * @example
22571
- *
22572
- * import React from 'react'
22573
- * import { useSelector } from 'react-redux'
22574
- *
22575
- * export const CounterComponent = () => {
22576
- * const counter = useSelector(state => state.counter)
22577
- * return <div>{counter}</div>
22578
- * }
22579
- */
22580
 
22581
- var useSelector = /*#__PURE__*/createSelectorHook();
22582
- ;// CONCATENATED MODULE: ./node_modules/react-redux/es/utils/reactBatchedUpdates.js
22583
- /* eslint-disable import/no-unresolved */
22584
 
22585
- ;// CONCATENATED MODULE: ./node_modules/react-redux/es/index.js
 
 
 
 
 
 
 
 
 
22586
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
22587
 
 
 
 
 
 
 
 
 
 
 
 
22588
 
 
 
 
 
 
 
 
 
 
 
 
22589
 
 
 
 
 
22590
 
 
 
 
 
 
 
 
 
 
 
 
 
 
22591
 
 
 
22592
 
 
22593
 
 
22594
 
 
 
22595
 
22596
- setBatch(react_dom.unstable_batchedUpdates);
 
22597
 
22598
  ;// CONCATENATED MODULE: ./src/js/dashboard/Components/Tippy/Tippy.js
22599
 
@@ -22652,456 +23189,6 @@ function Tippy(_ref) {
22652
  props: props
22653
  };
22654
  })(Tippy));
22655
- // EXTERNAL MODULE: ./node_modules/react-is/index.js
22656
- var node_modules_react_is = __webpack_require__(59864);
22657
- ;// CONCATENATED MODULE: ./node_modules/@material-ui/core/esm/ButtonGroup/ButtonGroup.js
22658
-
22659
-
22660
-
22661
-
22662
-
22663
-
22664
-
22665
-
22666
-
22667
- // Force a side effect so we don't have any override priority issue.
22668
- // eslint-disable-next-line no-unused-expressions
22669
-
22670
- esm_Button_Button.styles;
22671
- var ButtonGroup_styles = function styles(theme) {
22672
- return {
22673
- /* Styles applied to the root element. */
22674
- root: {
22675
- display: 'inline-flex',
22676
- borderRadius: theme.shape.borderRadius
22677
- },
22678
-
22679
- /* Styles applied to the root element if `variant="contained"`. */
22680
- contained: {
22681
- boxShadow: theme.shadows[2]
22682
- },
22683
-
22684
- /* Styles applied to the root element if `disableElevation={true}`. */
22685
- disableElevation: {
22686
- boxShadow: 'none'
22687
- },
22688
-
22689
- /* Pseudo-class applied to child elements if `disabled={true}`. */
22690
- disabled: {},
22691
-
22692
- /* Styles applied to the root element if `fullWidth={true}`. */
22693
- fullWidth: {
22694
- width: '100%'
22695
- },
22696
-
22697
- /* Styles applied to the root element if `orientation="vertical"`. */
22698
- vertical: {
22699
- flexDirection: 'column'
22700
- },
22701
-
22702
- /* Styles applied to the children. */
22703
- grouped: {
22704
- minWidth: 40
22705
- },
22706
-
22707
- /* Styles applied to the children if `orientation="horizontal"`. */
22708
- groupedHorizontal: {
22709
- '&:not(:first-child)': {
22710
- borderTopLeftRadius: 0,
22711
- borderBottomLeftRadius: 0
22712
- },
22713
- '&:not(:last-child)': {
22714
- borderTopRightRadius: 0,
22715
- borderBottomRightRadius: 0
22716
- }
22717
- },
22718
-
22719
- /* Styles applied to the children if `orientation="vertical"`. */
22720
- groupedVertical: {
22721
- '&:not(:first-child)': {
22722
- borderTopRightRadius: 0,
22723
- borderTopLeftRadius: 0
22724
- },
22725
- '&:not(:last-child)': {
22726
- borderBottomRightRadius: 0,
22727
- borderBottomLeftRadius: 0
22728
- }
22729
- },
22730
-
22731
- /* Styles applied to the children if `variant="text"`. */
22732
- groupedText: {},
22733
-
22734
- /* Styles applied to the children if `variant="text"` and `orientation="horizontal"`. */
22735
- groupedTextHorizontal: {
22736
- '&:not(:last-child)': {
22737
- borderRight: "1px solid ".concat(theme.palette.type === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)')
22738
- }
22739
- },
22740
-
22741
- /* Styles applied to the children if `variant="text"` and `orientation="vertical"`. */
22742
- groupedTextVertical: {
22743
- '&:not(:last-child)': {
22744
- borderBottom: "1px solid ".concat(theme.palette.type === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)')
22745
- }
22746
- },
22747
-
22748
- /* Styles applied to the children if `variant="text"` and `color="primary"`. */
22749
- groupedTextPrimary: {
22750
- '&:not(:last-child)': {
22751
- borderColor: (0,colorManipulator/* fade */.U1)(theme.palette.primary.main, 0.5)
22752
- }
22753
- },
22754
-
22755
- /* Styles applied to the children if `variant="text"` and `color="secondary"`. */
22756
- groupedTextSecondary: {
22757
- '&:not(:last-child)': {
22758
- borderColor: (0,colorManipulator/* fade */.U1)(theme.palette.secondary.main, 0.5)
22759
- }
22760
- },
22761
-
22762
- /* Styles applied to the children if `variant="outlined"`. */
22763
- groupedOutlined: {},
22764
-
22765
- /* Styles applied to the children if `variant="outlined"` and `orientation="horizontal"`. */
22766
- groupedOutlinedHorizontal: {
22767
- '&:not(:first-child)': {
22768
- marginLeft: -1
22769
- },
22770
- '&:not(:last-child)': {
22771
- borderRightColor: 'transparent'
22772
- }
22773
- },
22774
-
22775
- /* Styles applied to the children if `variant="outlined"` and `orientation="vertical"`. */
22776
- groupedOutlinedVertical: {
22777
- '&:not(:first-child)': {
22778
- marginTop: -1
22779
- },
22780
- '&:not(:last-child)': {
22781
- borderBottomColor: 'transparent'
22782
- }
22783
- },
22784
-
22785
- /* Styles applied to the children if `variant="outlined"` and `color="primary"`. */
22786
- groupedOutlinedPrimary: {
22787
- '&:hover': {
22788
- borderColor: theme.palette.primary.main
22789
- }
22790
- },
22791
-
22792
- /* Styles applied to the children if `variant="outlined"` and `color="secondary"`. */
22793
- groupedOutlinedSecondary: {
22794
- '&:hover': {
22795
- borderColor: theme.palette.secondary.main
22796
- }
22797
- },
22798
-
22799
- /* Styles applied to the children if `variant="contained"`. */
22800
- groupedContained: {
22801
- boxShadow: 'none'
22802
- },
22803
-
22804
- /* Styles applied to the children if `variant="contained"` and `orientation="horizontal"`. */
22805
- groupedContainedHorizontal: {
22806
- '&:not(:last-child)': {
22807
- borderRight: "1px solid ".concat(theme.palette.grey[400]),
22808
- '&$disabled': {
22809
- borderRight: "1px solid ".concat(theme.palette.action.disabled)
22810
- }
22811
- }
22812
- },
22813
-
22814
- /* Styles applied to the children if `variant="contained"` and `orientation="vertical"`. */
22815
- groupedContainedVertical: {
22816
- '&:not(:last-child)': {
22817
- borderBottom: "1px solid ".concat(theme.palette.grey[400]),
22818
- '&$disabled': {
22819
- borderBottom: "1px solid ".concat(theme.palette.action.disabled)
22820
- }
22821
- }
22822
- },
22823
-
22824
- /* Styles applied to the children if `variant="contained"` and `color="primary"`. */
22825
- groupedContainedPrimary: {
22826
- '&:not(:last-child)': {
22827
- borderColor: theme.palette.primary.dark
22828
- }
22829
- },
22830
-
22831
- /* Styles applied to the children if `variant="contained"` and `color="secondary"`. */
22832
- groupedContainedSecondary: {
22833
- '&:not(:last-child)': {
22834
- borderColor: theme.palette.secondary.dark
22835
- }
22836
- }
22837
- };
22838
- };
22839
- var ButtonGroup = /*#__PURE__*/react.forwardRef(function ButtonGroup(props, ref) {
22840
- var children = props.children,
22841
- classes = props.classes,
22842
- className = props.className,
22843
- _props$color = props.color,
22844
- color = _props$color === void 0 ? 'default' : _props$color,
22845
- _props$component = props.component,
22846
- Component = _props$component === void 0 ? 'div' : _props$component,
22847
- _props$disabled = props.disabled,
22848
- disabled = _props$disabled === void 0 ? false : _props$disabled,
22849
- _props$disableElevati = props.disableElevation,
22850
- disableElevation = _props$disableElevati === void 0 ? false : _props$disableElevati,
22851
- _props$disableFocusRi = props.disableFocusRipple,
22852
- disableFocusRipple = _props$disableFocusRi === void 0 ? false : _props$disableFocusRi,
22853
- _props$disableRipple = props.disableRipple,
22854
- disableRipple = _props$disableRipple === void 0 ? false : _props$disableRipple,
22855
- _props$fullWidth = props.fullWidth,
22856
- fullWidth = _props$fullWidth === void 0 ? false : _props$fullWidth,
22857
- _props$orientation = props.orientation,
22858
- orientation = _props$orientation === void 0 ? 'horizontal' : _props$orientation,
22859
- _props$size = props.size,
22860
- size = _props$size === void 0 ? 'medium' : _props$size,
22861
- _props$variant = props.variant,
22862
- variant = _props$variant === void 0 ? 'outlined' : _props$variant,
22863
- other = (0,objectWithoutProperties/* default */.Z)(props, ["children", "classes", "className", "color", "component", "disabled", "disableElevation", "disableFocusRipple", "disableRipple", "fullWidth", "orientation", "size", "variant"]);
22864
-
22865
- var buttonClassName = (0,clsx_m/* default */.Z)(classes.grouped, classes["grouped".concat((0,utils_capitalize/* default */.Z)(orientation))], classes["grouped".concat((0,utils_capitalize/* default */.Z)(variant))], classes["grouped".concat((0,utils_capitalize/* default */.Z)(variant)).concat((0,utils_capitalize/* default */.Z)(orientation))], classes["grouped".concat((0,utils_capitalize/* default */.Z)(variant)).concat(color !== 'default' ? (0,utils_capitalize/* default */.Z)(color) : '')], disabled && classes.disabled);
22866
- return /*#__PURE__*/react.createElement(Component, (0,esm_extends/* default */.Z)({
22867
- role: "group",
22868
- className: (0,clsx_m/* default */.Z)(classes.root, className, fullWidth && classes.fullWidth, disableElevation && classes.disableElevation, variant === 'contained' && classes.contained, orientation === 'vertical' && classes.vertical),
22869
- ref: ref
22870
- }, other), react.Children.map(children, function (child) {
22871
- if (! /*#__PURE__*/react.isValidElement(child)) {
22872
- return null;
22873
- }
22874
-
22875
- if (false) {}
22876
-
22877
- return /*#__PURE__*/react.cloneElement(child, {
22878
- className: (0,clsx_m/* default */.Z)(buttonClassName, child.props.className),
22879
- color: child.props.color || color,
22880
- disabled: child.props.disabled || disabled,
22881
- disableElevation: child.props.disableElevation || disableElevation,
22882
- disableFocusRipple: disableFocusRipple,
22883
- disableRipple: disableRipple,
22884
- fullWidth: fullWidth,
22885
- size: child.props.size || size,
22886
- variant: child.props.variant || variant
22887
- });
22888
- }));
22889
- });
22890
- false ? 0 : void 0;
22891
- /* harmony default export */ var ButtonGroup_ButtonGroup = ((0,withStyles/* default */.Z)(ButtonGroup_styles, {
22892
- name: 'MuiButtonGroup'
22893
- })(ButtonGroup));
22894
- ;// CONCATENATED MODULE: ./src/js/dashboard/Components/Bar/DevicePreview/DevicePreview.js
22895
- function DevicePreview_slicedToArray(arr, i) { return DevicePreview_arrayWithHoles(arr) || DevicePreview_iterableToArrayLimit(arr, i) || DevicePreview_unsupportedIterableToArray(arr, i) || DevicePreview_nonIterableRest(); }
22896
-
22897
- function DevicePreview_nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
22898
-
22899
- function DevicePreview_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return DevicePreview_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return DevicePreview_arrayLikeToArray(o, minLen); }
22900
-
22901
- function DevicePreview_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
22902
-
22903
- function DevicePreview_iterableToArrayLimit(arr, i) { var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]); if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
22904
-
22905
- function DevicePreview_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
22906
-
22907
-
22908
-
22909
-
22910
-
22911
-
22912
-
22913
- function DevicePreview() {
22914
- var _useState = (0,react.useState)("desktop"),
22915
- _useState2 = DevicePreview_slicedToArray(_useState, 2),
22916
- currentDevicePreview = _useState2[0],
22917
- setCurrentDevicePreview = _useState2[1]; // Set device
22918
-
22919
-
22920
- function setDevice(device) {
22921
- // Don't change anything when chosen device is already selected
22922
- if (device !== currentDevicePreview) {
22923
- // Device
22924
- setCurrentDevicePreview(device); // Update class
22925
-
22926
- app.setDevicePreview(device);
22927
- }
22928
- }
22929
-
22930
- return /*#__PURE__*/react.createElement("div", {
22931
- className: "device-preview"
22932
- }, /*#__PURE__*/react.createElement(ButtonGroup_ButtonGroup, {
22933
- color: "primary"
22934
- }, /*#__PURE__*/react.createElement(Tippy_Tippy, {
22935
- content: translate_translate("bar.preview.desktop")
22936
- }, /*#__PURE__*/react.createElement(esm_Button_Button, {
22937
- onClick: function onClick() {
22938
- return setDevice("desktop");
22939
- },
22940
- variant: currentDevicePreview === "desktop" ? "contained" : null,
22941
- color: "primary",
22942
- "data-testid": "desktop"
22943
- }, /*#__PURE__*/react.createElement("i", {
22944
- className: "fas fa-desktop"
22945
- }))), /*#__PURE__*/react.createElement(Tippy_Tippy, {
22946
- content: translate_translate("bar.preview.tablet")
22947
- }, /*#__PURE__*/react.createElement(esm_Button_Button, {
22948
- onClick: function onClick() {
22949
- return setDevice("tablet");
22950
- },
22951
- variant: currentDevicePreview === "tablet" ? "contained" : null,
22952
- color: "primary",
22953
- "data-testid": "tablet"
22954
- }, /*#__PURE__*/react.createElement("i", {
22955
- className: "fas fa-tablet-alt"
22956
- }))), /*#__PURE__*/react.createElement(Tippy_Tippy, {
22957
- content: translate_translate("bar.preview.mobile")
22958
- }, /*#__PURE__*/react.createElement(esm_Button_Button, {
22959
- onClick: function onClick() {
22960
- return setDevice("mobile");
22961
- },
22962
- variant: currentDevicePreview === "mobile" ? "contained" : null,
22963
- color: "primary",
22964
- "data-testid": "mobile"
22965
- }, /*#__PURE__*/react.createElement("i", {
22966
- className: "fas fa-mobile-alt"
22967
- })))));
22968
- }
22969
- ;// CONCATENATED MODULE: ./src/js/dashboard/Components/Bar/PublishButton/PublishButton.js
22970
- function PublishButton_slicedToArray(arr, i) { return PublishButton_arrayWithHoles(arr) || PublishButton_iterableToArrayLimit(arr, i) || PublishButton_unsupportedIterableToArray(arr, i) || PublishButton_nonIterableRest(); }
22971
-
22972
- function PublishButton_nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
22973
-
22974
- function PublishButton_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return PublishButton_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return PublishButton_arrayLikeToArray(o, minLen); }
22975
-
22976
- function PublishButton_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
22977
-
22978
- function PublishButton_iterableToArrayLimit(arr, i) { var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]); if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
22979
-
22980
- function PublishButton_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
22981
-
22982
-
22983
-
22984
-
22985
-
22986
-
22987
-
22988
- function PublishButton(_ref) {
22989
- var hasChanges = _ref.hasChanges;
22990
-
22991
- var _useState = (0,react.useState)(false),
22992
- _useState2 = PublishButton_slicedToArray(_useState, 2),
22993
- isPublishing = _useState2[0],
22994
- setIsPublishing = _useState2[1];
22995
-
22996
- var _useState3 = (0,react.useState)(false),
22997
- _useState4 = PublishButton_slicedToArray(_useState3, 2),
22998
- isPublished = _useState4[0],
22999
- setIsPublished = _useState4[1];
23000
-
23001
- function text() {
23002
- if (isPublishing) {
23003
- return translate_translate("common.publishing");
23004
- } else if (isPublished) {
23005
- return translate_translate("common.published");
23006
- } else {
23007
- return translate_translate("common.publish");
23008
- }
23009
- }
23010
- /**
23011
- * Publish buttons
23012
- */
23013
-
23014
-
23015
- function publish() {
23016
- setIsPublishing(true);
23017
- apiRequest("/publish", {
23018
- method: "POST",
23019
- data: {
23020
- nonce: buttonizer_admin.nonce
23021
- }
23022
- }).then(function (_ref2) {
23023
- var status = _ref2.status,
23024
- message = _ref2.message;
23025
- // Done publishing
23026
- setIsPublishing(false); // Error?
23027
-
23028
- if (status === "error") {
23029
- app.loader.hide();
23030
- app.error({
23031
- message: message
23032
- });
23033
- return;
23034
- }
23035
-
23036
- app.setHasChanges(false); // Published!
23037
-
23038
- setIsPublished(true); // Hide published message
23039
-
23040
- setTimeout(function () {
23041
- setIsPublished(false);
23042
- }, 3000);
23043
- })["catch"](function (_ref3) {
23044
- var code = _ref3.code;
23045
- setIsPublishing(false); // Lost internet connection
23046
-
23047
- if (code === 0) {
23048
- // app.showDialog(
23049
- // ConfirmDialog.create({
23050
- // title: "Lost internet",
23051
- // buttons: [
23052
- // {
23053
- // label: window.Buttonizer.translate("modal.close"),
23054
- // value: "close",
23055
- // },
23056
- // ],
23057
- // children: (
23058
- // <>
23059
- // <p>
23060
- // You've lost your internet connection. Please try again when
23061
- // you have your internet back!
23062
- // </p>
23063
- // </>
23064
- // ),
23065
- // })
23066
- // );
23067
- return;
23068
- } // app.showDialog(
23069
- // ConfirmDialog.create({
23070
- // title: "Something went wrong",
23071
- // buttons: [
23072
- // {
23073
- // label: window.Buttonizer.translate("modal.close"),
23074
- // value: "close",
23075
- // },
23076
- // ],
23077
- // children: (
23078
- // <>
23079
- // <p>Seems like something went wrong.</p>
23080
- // </>
23081
- // ),
23082
- // })
23083
- // );
23084
-
23085
- });
23086
- }
23087
-
23088
- return /*#__PURE__*/react.createElement(esm_Button_Button, {
23089
- onClick: function onClick() {
23090
- return publish();
23091
- },
23092
- disabled: isPublishing || hasChanges === false,
23093
- variant: "contained",
23094
- color: "primary",
23095
- "data-testid": "publish-button",
23096
- className: "MuiButton-Publish"
23097
- }, text());
23098
- }
23099
-
23100
- /* harmony default export */ var PublishButton_PublishButton = (connect(function (state) {
23101
- return {
23102
- hasChanges: state.misc.hasChanges
23103
- };
23104
- })(PublishButton));
23105
  // EXTERNAL MODULE: ./node_modules/@material-ui/styles/esm/useTheme/useTheme.js
23106
  var useTheme = __webpack_require__(159);
23107
  // EXTERNAL MODULE: ./node_modules/@material-ui/styles/esm/getThemeProps/getThemeProps.js
@@ -29660,7 +29747,8 @@ function GroupActions_addGroup(payload) {
29660
  var button = dispatch(dataActions_addRecord({
29661
  name: translate_translate("utils.new_button"),
29662
  show_mobile: true,
29663
- show_desktop: true
 
29664
  }, "buttons")).payload.record; // Add group relation
29665
 
29666
  dispatch(dataActions_addRelation(button.id, group.id));
@@ -29671,7 +29759,8 @@ function addButton(payload, group_id, index) {
29671
  var button = dispatch(dataActions_addRecord(GroupActions_objectSpread({
29672
  name: translate_translate("utils.new_button"),
29673
  show_mobile: true,
29674
- show_desktop: true
 
29675
  }, payload), "buttons")).payload.record;
29676
  dispatch(dataActions_addRelation(button.id, group_id, index));
29677
  if (redirect) document.location.hash = "/group/".concat(group_id, "/button/").concat(button.id);
@@ -45780,7 +45869,8 @@ var filteredList = function filteredList(importFilteredList, filterButtons, filt
45780
  var defaultButton = {
45781
  name: translate_translate("utils.new_button"),
45782
  show_mobile: true,
45783
- show_desktop: true
 
45784
  };
45785
 
45786
  if (filterButtons === "group") {
@@ -45941,9 +46031,10 @@ function TemplateOptions(_ref) {
45941
  }
45942
  }, key === 0 ? /*#__PURE__*/react.createElement("div", {
45943
  className: "default-option"
45944
- }, /*#__PURE__*/react.createElement("i", {
45945
- className: "fa fa-plus-circle",
45946
- "aria-hidden": "true"
 
45947
  }), /*#__PURE__*/react.createElement("span", null, translate_translate("templates.start_scratch"))) : /*#__PURE__*/react.createElement("img", {
45948
  src: template.template_image ? buttonizer_admin.assets + "/images/templates/".concat(template.template_image) : buttonizer_admin.assets + "/images/buttonizer-logo.png",
45949
  alt: "Template",
@@ -80935,34 +81026,33 @@ function SessionExpiredDialog(_ref) {
80935
  "aria-describedby": "temp-reauthenticate-dialog-description"
80936
  }, /*#__PURE__*/react.createElement(esm_DialogTitle_DialogTitle, {
80937
  id: "temp-reauthenticate-dialog-title"
80938
- }, "Reauthenticate"), /*#__PURE__*/react.createElement(esm_DialogContent_DialogContent, null, /*#__PURE__*/react.createElement(DialogContentText_DialogContentText, null, isUsingRefreshtoken ? /*#__PURE__*/react.createElement(react.Fragment, null, "Gathering information..") : /*#__PURE__*/react.createElement(react.Fragment, null, "Your editor authentication session has expired, this mostly happens after 30 minutes."))), /*#__PURE__*/react.createElement(esm_DialogActions_DialogActions, null, /*#__PURE__*/react.createElement(esm_Button_Button, {
80939
  onClick: openPopup,
80940
  disabled: isWaiting || isUsingRefreshtoken,
80941
  color: "primary"
80942
- }, "Reauthenticate", " ", (isWaiting || isUsingRefreshtoken) && /*#__PURE__*/react.createElement(CircularProgress_CircularProgress, {
80943
  size: 25,
80944
  style: {
80945
  marginLeft: 20
80946
  }
80947
- }))));
80948
  }
80949
  ;// CONCATENATED MODULE: ./src/js/dashboard/Components/Dialogs/ChangelogDialog/Slides.js
80950
-
80951
  var updates = [[// New features (first slide)
80952
  {
80953
- title: translate_translate("settings_window.changelog_dialog.new_features"),
80954
  info: [{
80955
- title: translate_translate("settings_window.changelog_dialog.first_feature.title"),
80956
- info: translate_translate("settings_window.changelog_dialog.first_feature.info")
80957
  }, {
80958
- title: translate_translate("settings_window.changelog_dialog.second_feature.title"),
80959
- info: translate_translate("settings_window.changelog_dialog.second_feature.info")
80960
  }, {
80961
- title: translate_translate("settings_window.changelog_dialog.third_feature.title"),
80962
- info: translate_translate("settings_window.changelog_dialog.third_feature.info")
80963
  }, {
80964
- title: translate_translate("settings_window.changelog_dialog.fourth_feature.title"),
80965
- info: translate_translate("settings_window.changelog_dialog.fourth_feature.info")
80966
  }]
80967
  } // {
80968
  // New updates & bug fixes (first slide)
@@ -81087,15 +81177,15 @@ function ChangelogDialog(_ref) {
81087
  }, updates[currentSlide].map(function (type, key) {
81088
  return /*#__PURE__*/react.createElement("div", {
81089
  key: key
81090
- }, /*#__PURE__*/react.createElement("h3", null, type.title), type.info.map(function (listItem, index) {
81091
  return /*#__PURE__*/react.createElement("div", {
81092
  className: "list",
81093
  key: index
81094
  }, /*#__PURE__*/react.createElement("ul", null, /*#__PURE__*/react.createElement("li", {
81095
  className: "name"
81096
- }, listItem.title), /*#__PURE__*/react.createElement("p", {
81097
  className: "info"
81098
- }, listItem.info)));
81099
  }));
81100
  })), /*#__PURE__*/react.createElement(esm_DialogActions_DialogActions, {
81101
  className: "footer"
@@ -81283,8 +81373,6 @@ function UrlBar(_ref) {
81283
  ;// CONCATENATED MODULE: ./src/js/dashboard/Components/AdminNotifications/style.module.scss
81284
  // extracted by mini-css-extract-plugin
81285
  /* harmony default export */ var style_module = ({"key":"GoB-rFmXaQiCtLHiw5bE0","mouse":"QZVwpvNWXvaP4Bg5_NwrC"});
81286
- // EXTERNAL MODULE: ./node_modules/@material-ui/icons/Mouse.js
81287
- var Mouse = __webpack_require__(49507);
81288
  ;// CONCATENATED MODULE: ./src/js/dashboard/Components/AdminNotifications/AdminNotifications.js
81289
 
81290
 
@@ -81323,12 +81411,20 @@ function AdminNotifications() {
81323
  enqueueSnackbar( /*#__PURE__*/react.createElement(Trans, {
81324
  i18nKey: "warnings.actions.".concat(e.data.message.type === "to-group" ? "toggle_menu_text" : "test_action_text"),
81325
  components: {
81326
- icon: /*#__PURE__*/react.createElement("span", {
81327
- className: style_module.key
81328
- }, "SHIFT"),
81329
- mouseIcon: /*#__PURE__*/react.createElement(Mouse/* default */.Z, {
81330
  className: style_module.mouse
81331
- })
 
 
 
 
 
 
 
 
 
 
 
81332
  }
81333
  }), {
81334
  anchorOrigin: {
@@ -124750,7 +124846,7 @@ module.exports = {
124750
  /***/ (function(module) {
124751
 
124752
  "use strict";
124753
- module.exports = JSON.parse('{"group":{"general":{"horizontal":"right: 5%","vertical":"bottom: 5%","menu_style":"default","menu_opening_animation":"default","start_opened":false,"close_on_click_outside":true,"close_on_click_inside":true,"open_on_mouseover":false,"close_on_mouseleave":true,"is_menu":true},"advanced":{"menu_opening_animation":"default","menu_animation":"none","menu_animation_delay":10,"menu_animation_repeat_count":0,"show_on_schedule_trigger":true,"show_on_rule_trigger":true,"advanced_timeout_once":true,"advanced_scroll_hide":false},"styling":{"icon":["fas fa-plus"],"icon_size":[25],"icon_image_size":[25],"group_size":56,"button_size":42,"show_label_mobile":"always","show_label_desktop":"always","label_same_width":false,"label_same_height":false,"width":56,"height":56,"label_inside":false,"space":10}},"button":{"general":{"show_mobile":true,"show_desktop":true,"label":"","action":"#","type":"url","messenger_lang":"en_US","action_new_tab":false},"styling":{"icon":["fas fa-user"],"width":42,"height":42,"icon_type":"icon","icon_image":[""],"icon_size":[16],"icon_image_size":[16],"background_is_image":[false],"background_image":[],"border_radius":["50%"],"background_color":["#48A4DC","#F08419"],"icon_color":["#fff"],"icon_image_border_radius":[50],"label_background_color":["#4e4c4c"],"label_color":["#fff"],"label_border_radius":["3px"],"label_font_size":[12],"label_margin":["0px 0px 0px 0px"],"label_padding":["5px 15px 5px 15px"],"label_font_family":"","label_spacing":9,"horizontal_position_label":"auto","box_shadow":["0px 2px 6px 1px rgba(0, 0, 0, 0.20)","0px 5px 11px 1px rgba(0, 0, 0, 0.25)"],"box_shadow_enabled":[true],"label_box_shadow_enabled":[false],"label_box_shadow":["0px 0px 0px 0px rgba(0, 0, 0, 1)"]}}}');
124754
 
124755
  /***/ })
124756
 
9
  *
10
  * Buttonizer is Freemium software. The free version (build) does not contain premium functionality.
11
  *
12
+ * (C) 2017-2022 Buttonizer v2.6.4
13
  *
14
  */
15
  /*!
23
  *
24
  * Buttonizer is Freemium software. The free version (build) does not contain premium functionality.
25
  *
26
+ * (C) 2017-2022 Buttonizer v2.6.4
27
  *
28
  */
29
  /******/ (function() { // webpackBootstrap
2808
 
2809
  /***/ }),
2810
 
2811
+ /***/ 89974:
2812
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
2813
+
2814
+ "use strict";
2815
+ var __webpack_unused_export__;
2816
+
2817
+
2818
+ var _interopRequireDefault = __webpack_require__(95318);
2819
+
2820
+ var _interopRequireWildcard = __webpack_require__(20862);
2821
+
2822
+ __webpack_unused_export__ = ({
2823
+ value: true
2824
+ });
2825
+ exports.Z = void 0;
2826
+
2827
+ var React = _interopRequireWildcard(__webpack_require__(67294));
2828
+
2829
+ var _createSvgIcon = _interopRequireDefault(__webpack_require__(2108));
2830
+
2831
+ var _default = (0, _createSvgIcon.default)( /*#__PURE__*/React.createElement("path", {
2832
+ d: "M20 18c1.1 0 1.99-.9 1.99-2L22 5c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v11c0 1.1.9 2 2 2H0c0 1.1.9 2 2 2h20c1.1 0 2-.9 2-2h-4zM4 5h16v11H4V5zm8 14c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1z"
2833
+ }), 'LaptopMac');
2834
+
2835
+ exports.Z = _default;
2836
+
2837
+ /***/ }),
2838
+
2839
  /***/ 78513:
2840
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
2841
 
2864
 
2865
  /***/ }),
2866
 
2867
+ /***/ 6404:
2868
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
2869
+
2870
+ "use strict";
2871
+ var __webpack_unused_export__;
2872
+
2873
+
2874
+ var _interopRequireDefault = __webpack_require__(95318);
2875
+
2876
+ var _interopRequireWildcard = __webpack_require__(20862);
2877
+
2878
+ __webpack_unused_export__ = ({
2879
+ value: true
2880
+ });
2881
+ exports.Z = void 0;
2882
+
2883
+ var React = _interopRequireWildcard(__webpack_require__(67294));
2884
+
2885
+ var _createSvgIcon = _interopRequireDefault(__webpack_require__(2108));
2886
+
2887
+ var _default = (0, _createSvgIcon.default)( /*#__PURE__*/React.createElement("path", {
2888
+ d: "M15.5 1h-8C6.12 1 5 2.12 5 3.5v17C5 21.88 6.12 23 7.5 23h8c1.38 0 2.5-1.12 2.5-2.5v-17C18 2.12 16.88 1 15.5 1zm-4 21c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zm4.5-4H7V4h9v14z"
2889
+ }), 'PhoneIphone');
2890
+
2891
+ exports.Z = _default;
2892
+
2893
+ /***/ }),
2894
+
2895
+ /***/ 79015:
2896
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
2897
 
2898
  "use strict";
2913
  var _createSvgIcon = _interopRequireDefault(__webpack_require__(2108));
2914
 
2915
  var _default = (0, _createSvgIcon.default)( /*#__PURE__*/React.createElement("path", {
2916
+ d: "M18.5 0h-14C3.12 0 2 1.12 2 2.5v19C2 22.88 3.12 24 4.5 24h14c1.38 0 2.5-1.12 2.5-2.5v-19C21 1.12 19.88 0 18.5 0zm-7 23c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zm7.5-4H4V3h15v16z"
2917
+ }), 'TabletMac');
2918
 
2919
  exports.Z = _default;
2920
 
16662
  /* harmony default export */ var esm_Button_Button = ((0,withStyles/* default */.Z)(Button_styles, {
16663
  name: 'MuiButton'
16664
  })(Button_Button));
16665
+ // EXTERNAL MODULE: ./node_modules/react-is/index.js
16666
+ var react_is = __webpack_require__(59864);
16667
+ ;// CONCATENATED MODULE: ./node_modules/@material-ui/core/esm/ButtonGroup/ButtonGroup.js
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16668
 
 
 
 
 
16669
 
 
 
 
16670
 
 
 
 
 
 
 
 
 
 
 
16671
 
16672
 
 
 
 
 
16673
 
 
 
 
 
16674
 
 
 
 
 
 
16675
 
 
 
 
16676
 
16677
+ // Force a side effect so we don't have any override priority issue.
16678
+ // eslint-disable-next-line no-unused-expressions
16679
 
16680
+ esm_Button_Button.styles;
16681
+ var ButtonGroup_styles = function styles(theme) {
16682
  return {
16683
+ /* Styles applied to the root element. */
16684
+ root: {
16685
+ display: 'inline-flex',
16686
+ borderRadius: theme.shape.borderRadius
16687
+ },
 
16688
 
16689
+ /* Styles applied to the root element if `variant="contained"`. */
16690
+ contained: {
16691
+ boxShadow: theme.shadows[2]
16692
+ },
16693
 
16694
+ /* Styles applied to the root element if `disableElevation={true}`. */
16695
+ disableElevation: {
16696
+ boxShadow: 'none'
16697
+ },
16698
 
16699
+ /* Pseudo-class applied to child elements if `disabled={true}`. */
16700
+ disabled: {},
 
 
 
 
 
 
 
 
 
 
16701
 
16702
+ /* Styles applied to the root element if `fullWidth={true}`. */
16703
+ fullWidth: {
16704
+ width: '100%'
16705
+ },
 
 
16706
 
16707
+ /* Styles applied to the root element if `orientation="vertical"`. */
16708
+ vertical: {
16709
+ flexDirection: 'column'
16710
+ },
16711
 
16712
+ /* Styles applied to the children. */
16713
+ grouped: {
16714
+ minWidth: 40
16715
+ },
16716
 
16717
+ /* Styles applied to the children if `orientation="horizontal"`. */
16718
+ groupedHorizontal: {
16719
+ '&:not(:first-child)': {
16720
+ borderTopLeftRadius: 0,
16721
+ borderBottomLeftRadius: 0
16722
+ },
16723
+ '&:not(:last-child)': {
16724
+ borderTopRightRadius: 0,
16725
+ borderBottomRightRadius: 0
16726
+ }
16727
+ },
16728
 
16729
+ /* Styles applied to the children if `orientation="vertical"`. */
16730
+ groupedVertical: {
16731
+ '&:not(:first-child)': {
16732
+ borderTopRightRadius: 0,
16733
+ borderTopLeftRadius: 0
16734
+ },
16735
+ '&:not(:last-child)': {
16736
+ borderBottomRightRadius: 0,
16737
+ borderBottomLeftRadius: 0
16738
+ }
16739
+ },
16740
 
16741
+ /* Styles applied to the children if `variant="text"`. */
16742
+ groupedText: {},
 
 
 
 
16743
 
16744
+ /* Styles applied to the children if `variant="text"` and `orientation="horizontal"`. */
16745
+ groupedTextHorizontal: {
16746
+ '&:not(:last-child)': {
16747
+ borderRight: "1px solid ".concat(theme.palette.type === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)')
16748
+ }
16749
+ },
16750
 
16751
+ /* Styles applied to the children if `variant="text"` and `orientation="vertical"`. */
16752
+ groupedTextVertical: {
16753
+ '&:not(:last-child)': {
16754
+ borderBottom: "1px solid ".concat(theme.palette.type === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)')
16755
+ }
16756
+ },
16757
 
16758
+ /* Styles applied to the children if `variant="text"` and `color="primary"`. */
16759
+ groupedTextPrimary: {
16760
+ '&:not(:last-child)': {
16761
+ borderColor: (0,colorManipulator/* fade */.U1)(theme.palette.primary.main, 0.5)
16762
+ }
16763
+ },
16764
 
16765
+ /* Styles applied to the children if `variant="text"` and `color="secondary"`. */
16766
+ groupedTextSecondary: {
16767
+ '&:not(:last-child)': {
16768
+ borderColor: (0,colorManipulator/* fade */.U1)(theme.palette.secondary.main, 0.5)
16769
+ }
16770
+ },
16771
 
16772
+ /* Styles applied to the children if `variant="outlined"`. */
16773
+ groupedOutlined: {},
16774
 
16775
+ /* Styles applied to the children if `variant="outlined"` and `orientation="horizontal"`. */
16776
+ groupedOutlinedHorizontal: {
16777
+ '&:not(:first-child)': {
16778
+ marginLeft: -1
16779
+ },
16780
+ '&:not(:last-child)': {
16781
+ borderRightColor: 'transparent'
16782
+ }
16783
+ },
16784
 
16785
+ /* Styles applied to the children if `variant="outlined"` and `orientation="vertical"`. */
16786
+ groupedOutlinedVertical: {
16787
+ '&:not(:first-child)': {
16788
+ marginTop: -1
16789
+ },
16790
+ '&:not(:last-child)': {
16791
+ borderBottomColor: 'transparent'
16792
+ }
16793
+ },
16794
 
16795
+ /* Styles applied to the children if `variant="outlined"` and `color="primary"`. */
16796
+ groupedOutlinedPrimary: {
16797
+ '&:hover': {
16798
+ borderColor: theme.palette.primary.main
16799
+ }
16800
+ },
16801
 
16802
+ /* Styles applied to the children if `variant="outlined"` and `color="secondary"`. */
16803
+ groupedOutlinedSecondary: {
16804
+ '&:hover': {
16805
+ borderColor: theme.palette.secondary.main
16806
+ }
16807
+ },
 
 
 
 
 
16808
 
16809
+ /* Styles applied to the children if `variant="contained"`. */
16810
+ groupedContained: {
16811
+ boxShadow: 'none'
16812
+ },
 
16813
 
16814
+ /* Styles applied to the children if `variant="contained"` and `orientation="horizontal"`. */
16815
+ groupedContainedHorizontal: {
16816
+ '&:not(:last-child)': {
16817
+ borderRight: "1px solid ".concat(theme.palette.grey[400]),
16818
+ '&$disabled': {
16819
+ borderRight: "1px solid ".concat(theme.palette.action.disabled)
16820
+ }
16821
+ }
16822
+ },
16823
 
16824
+ /* Styles applied to the children if `variant="contained"` and `orientation="vertical"`. */
16825
+ groupedContainedVertical: {
16826
+ '&:not(:last-child)': {
16827
+ borderBottom: "1px solid ".concat(theme.palette.grey[400]),
16828
+ '&$disabled': {
16829
+ borderBottom: "1px solid ".concat(theme.palette.action.disabled)
16830
+ }
16831
+ }
16832
+ },
 
16833
 
16834
+ /* Styles applied to the children if `variant="contained"` and `color="primary"`. */
16835
+ groupedContainedPrimary: {
16836
+ '&:not(:last-child)': {
16837
+ borderColor: theme.palette.primary.dark
16838
+ }
16839
+ },
16840
 
16841
+ /* Styles applied to the children if `variant="contained"` and `color="secondary"`. */
16842
+ groupedContainedSecondary: {
16843
+ '&:not(:last-child)': {
16844
+ borderColor: theme.palette.secondary.dark
16845
+ }
16846
+ }
16847
+ };
16848
+ };
16849
+ var ButtonGroup = /*#__PURE__*/react.forwardRef(function ButtonGroup(props, ref) {
16850
+ var children = props.children,
16851
+ classes = props.classes,
16852
+ className = props.className,
16853
+ _props$color = props.color,
16854
+ color = _props$color === void 0 ? 'default' : _props$color,
16855
+ _props$component = props.component,
16856
+ Component = _props$component === void 0 ? 'div' : _props$component,
16857
+ _props$disabled = props.disabled,
16858
+ disabled = _props$disabled === void 0 ? false : _props$disabled,
16859
+ _props$disableElevati = props.disableElevation,
16860
+ disableElevation = _props$disableElevati === void 0 ? false : _props$disableElevati,
16861
+ _props$disableFocusRi = props.disableFocusRipple,
16862
+ disableFocusRipple = _props$disableFocusRi === void 0 ? false : _props$disableFocusRi,
16863
+ _props$disableRipple = props.disableRipple,
16864
+ disableRipple = _props$disableRipple === void 0 ? false : _props$disableRipple,
16865
+ _props$fullWidth = props.fullWidth,
16866
+ fullWidth = _props$fullWidth === void 0 ? false : _props$fullWidth,
16867
+ _props$orientation = props.orientation,
16868
+ orientation = _props$orientation === void 0 ? 'horizontal' : _props$orientation,
16869
+ _props$size = props.size,
16870
+ size = _props$size === void 0 ? 'medium' : _props$size,
16871
+ _props$variant = props.variant,
16872
+ variant = _props$variant === void 0 ? 'outlined' : _props$variant,
16873
+ other = (0,objectWithoutProperties/* default */.Z)(props, ["children", "classes", "className", "color", "component", "disabled", "disableElevation", "disableFocusRipple", "disableRipple", "fullWidth", "orientation", "size", "variant"]);
16874
 
16875
+ var buttonClassName = (0,clsx_m/* default */.Z)(classes.grouped, classes["grouped".concat((0,utils_capitalize/* default */.Z)(orientation))], classes["grouped".concat((0,utils_capitalize/* default */.Z)(variant))], classes["grouped".concat((0,utils_capitalize/* default */.Z)(variant)).concat((0,utils_capitalize/* default */.Z)(orientation))], classes["grouped".concat((0,utils_capitalize/* default */.Z)(variant)).concat(color !== 'default' ? (0,utils_capitalize/* default */.Z)(color) : '')], disabled && classes.disabled);
16876
+ return /*#__PURE__*/react.createElement(Component, (0,esm_extends/* default */.Z)({
16877
+ role: "group",
16878
+ className: (0,clsx_m/* default */.Z)(classes.root, className, fullWidth && classes.fullWidth, disableElevation && classes.disableElevation, variant === 'contained' && classes.contained, orientation === 'vertical' && classes.vertical),
16879
+ ref: ref
16880
+ }, other), react.Children.map(children, function (child) {
16881
+ if (! /*#__PURE__*/react.isValidElement(child)) {
16882
+ return null;
16883
+ }
16884
 
16885
+ if (false) {}
 
 
16886
 
16887
+ return /*#__PURE__*/react.cloneElement(child, {
16888
+ className: (0,clsx_m/* default */.Z)(buttonClassName, child.props.className),
16889
+ color: child.props.color || color,
16890
+ disabled: child.props.disabled || disabled,
16891
+ disableElevation: child.props.disableElevation || disableElevation,
16892
+ disableFocusRipple: disableFocusRipple,
16893
+ disableRipple: disableRipple,
16894
+ fullWidth: fullWidth,
16895
+ size: child.props.size || size,
16896
+ variant: child.props.variant || variant
16897
+ });
16898
+ }));
16899
+ });
16900
+ false ? 0 : void 0;
16901
+ /* harmony default export */ var ButtonGroup_ButtonGroup = ((0,withStyles/* default */.Z)(ButtonGroup_styles, {
16902
+ name: 'MuiButtonGroup'
16903
+ })(ButtonGroup));
16904
+ // EXTERNAL MODULE: ./node_modules/@material-ui/icons/LaptopMac.js
16905
+ var LaptopMac = __webpack_require__(89974);
16906
+ // EXTERNAL MODULE: ./node_modules/@material-ui/icons/TabletMac.js
16907
+ var TabletMac = __webpack_require__(79015);
16908
+ // EXTERNAL MODULE: ./node_modules/@material-ui/icons/PhoneIphone.js
16909
+ var PhoneIphone = __webpack_require__(6404);
16910
+ ;// CONCATENATED MODULE: ./src/js/dashboard/Components/Bar/DevicePreview/DevicePreview.js
16911
+ function DevicePreview_slicedToArray(arr, i) { return DevicePreview_arrayWithHoles(arr) || DevicePreview_iterableToArrayLimit(arr, i) || DevicePreview_unsupportedIterableToArray(arr, i) || DevicePreview_nonIterableRest(); }
16912
 
16913
+ function DevicePreview_nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
16914
 
16915
+ function DevicePreview_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return DevicePreview_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return DevicePreview_arrayLikeToArray(o, minLen); }
16916
 
16917
+ function DevicePreview_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
 
 
 
16918
 
16919
+ function DevicePreview_iterableToArrayLimit(arr, i) { var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]); if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
 
 
 
 
 
 
 
16920
 
16921
+ function DevicePreview_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
 
 
16922
 
16923
 
16924
 
16925
 
 
 
 
 
 
16926
 
 
 
 
16927
 
 
 
 
16928
 
16929
 
16930
+ function DevicePreview() {
16931
+ var _useState = (0,react.useState)("desktop"),
16932
+ _useState2 = DevicePreview_slicedToArray(_useState, 2),
16933
+ currentDevicePreview = _useState2[0],
16934
+ setCurrentDevicePreview = _useState2[1];
16935
 
16936
+ var _useState3 = (0,react.useState)(false),
16937
+ _useState4 = DevicePreview_slicedToArray(_useState3, 2),
16938
+ showDeviceViews = _useState4[0],
16939
+ setShowDeviceViews = _useState4[1]; // Set device
16940
 
 
 
 
 
 
 
16941
 
16942
+ function setDevice(device) {
16943
+ // Don't change anything when chosen device is already selected
16944
+ if (device !== currentDevicePreview) {
16945
+ // Device
16946
+ setCurrentDevicePreview(device); // Update class
16947
 
16948
+ app.setDevicePreview(device);
16949
+ }
16950
  }
16951
 
16952
+ var chosenDeviceView = function chosenDeviceView() {
16953
+ switch (currentDevicePreview) {
16954
+ case "desktop":
16955
+ return /*#__PURE__*/react.createElement(LaptopMac/* default */.Z, null);
 
 
 
 
 
16956
 
16957
+ case "tablet":
16958
+ return /*#__PURE__*/react.createElement(TabletMac/* default */.Z, null);
 
 
16959
 
16960
+ case "mobile":
16961
+ return /*#__PURE__*/react.createElement(PhoneIphone/* default */.Z, null);
16962
 
16963
+ default:
16964
+ }
16965
+ };
16966
 
16967
+ var devices = [{
16968
+ type: "mobile",
16969
+ icon: /*#__PURE__*/react.createElement(PhoneIphone/* default */.Z, null)
16970
+ }, {
16971
+ type: "tablet",
16972
+ icon: /*#__PURE__*/react.createElement(TabletMac/* default */.Z, null)
16973
+ }, {
16974
+ type: "desktop",
16975
+ icon: /*#__PURE__*/react.createElement(LaptopMac/* default */.Z, null)
16976
+ }];
16977
+ return /*#__PURE__*/react.createElement("div", {
16978
+ className: "device-preview"
16979
+ }, showDeviceViews && /*#__PURE__*/react.createElement(ButtonGroup_ButtonGroup, {
16980
+ color: "primary",
16981
+ orientation: "vertical",
16982
+ onMouseLeave: function onMouseLeave() {
16983
+ return setShowDeviceViews(false);
16984
+ },
16985
+ className: "button-group",
16986
+ "data-testid": "device:button-group"
16987
+ }, devices.map(function (device, key) {
16988
+ return /*#__PURE__*/react.createElement(esm_Button_Button, {
16989
+ onClick: function onClick() {
16990
+ return setDevice(device.type);
16991
+ },
16992
+ key: key,
16993
+ style: currentDevicePreview === device.type ? {
16994
+ background: "#f8f8f8",
16995
+ opacity: "1"
16996
+ } : null,
16997
+ "data-testid": device.type,
16998
+ className: "button"
16999
+ }, /*#__PURE__*/react.createElement("span", {
17000
+ className: "icon"
17001
+ }, device.icon));
17002
+ })), /*#__PURE__*/react.createElement("span", {
17003
+ onMouseOver: function onMouseOver() {
17004
+ return setShowDeviceViews(true);
17005
+ },
17006
+ className: "current-device",
17007
+ "data-testId": "device:current-device"
17008
+ }, showDeviceViews === false && chosenDeviceView()));
17009
+ }
17010
+ ;// CONCATENATED MODULE: ./node_modules/react-redux/es/components/Context.js
17011
 
17012
+ var Context_ReactReduxContext = /*#__PURE__*/react.createContext(null);
17013
 
17014
+ if (false) {}
17015
 
17016
+ /* harmony default export */ var Context = ((/* unused pure expression or super */ null && (Context_ReactReduxContext)));
17017
+ ;// CONCATENATED MODULE: ./node_modules/react-redux/es/utils/batch.js
17018
+ // Default to a dummy "batch" implementation that just runs the callback
17019
+ function defaultNoopBatch(callback) {
17020
+ callback();
17021
+ }
17022
 
17023
+ var batch = defaultNoopBatch; // Allow injecting another batching function later
 
 
 
 
17024
 
17025
+ var setBatch = function setBatch(newBatch) {
17026
+ return batch = newBatch;
17027
+ }; // Supply a getter just to skip dealing with ESM bindings
 
 
 
 
 
 
 
 
 
17028
 
17029
+ var getBatch = function getBatch() {
17030
+ return batch;
17031
+ };
17032
+ ;// CONCATENATED MODULE: ./node_modules/react-redux/es/utils/Subscription.js
17033
+ // encapsulates the subscription logic for connecting a component to the redux store, as
17034
+ // well as nesting subscriptions of descendant components, so that we can ensure the
17035
+ // ancestor components re-render before descendants
17036
 
17037
+ var nullListeners = {
17038
+ notify: function notify() {}
17039
+ };
17040
 
17041
+ function createListenerCollection() {
17042
+ var batch = getBatch();
17043
+ var first = null;
17044
+ var last = null;
17045
+ return {
17046
+ clear: function clear() {
17047
+ first = null;
17048
+ last = null;
17049
+ },
17050
+ notify: function notify() {
17051
+ batch(function () {
17052
+ var listener = first;
17053
 
17054
+ while (listener) {
17055
+ listener.callback();
17056
+ listener = listener.next;
17057
+ }
17058
+ });
17059
+ },
17060
+ get: function get() {
17061
+ var listeners = [];
17062
+ var listener = first;
17063
 
17064
+ while (listener) {
17065
+ listeners.push(listener);
17066
+ listener = listener.next;
17067
+ }
17068
 
17069
+ return listeners;
17070
+ },
17071
+ subscribe: function subscribe(callback) {
17072
+ var isSubscribed = true;
17073
+ var listener = last = {
17074
+ callback: callback,
17075
+ next: null,
17076
+ prev: last
17077
+ };
17078
 
17079
+ if (listener.prev) {
17080
+ listener.prev.next = listener;
17081
+ } else {
17082
+ first = listener;
17083
+ }
17084
 
17085
+ return function unsubscribe() {
17086
+ if (!isSubscribed || first === null) return;
17087
+ isSubscribed = false;
17088
 
17089
+ if (listener.next) {
17090
+ listener.next.prev = listener.prev;
17091
+ } else {
17092
+ last = listener.prev;
17093
+ }
17094
 
17095
+ if (listener.prev) {
17096
+ listener.prev.next = listener.next;
17097
+ } else {
17098
+ first = listener.next;
17099
+ }
17100
+ };
17101
+ }
17102
+ };
17103
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17104
 
17105
+ var Subscription = /*#__PURE__*/function () {
17106
+ function Subscription(store, parentSub) {
17107
+ this.store = store;
17108
+ this.parentSub = parentSub;
17109
+ this.unsubscribe = null;
17110
+ this.listeners = nullListeners;
17111
+ this.handleChangeWrapper = this.handleChangeWrapper.bind(this);
17112
+ }
17113
 
17114
+ var _proto = Subscription.prototype;
 
 
 
 
 
 
17115
 
17116
+ _proto.addNestedSub = function addNestedSub(listener) {
17117
+ this.trySubscribe();
17118
+ return this.listeners.subscribe(listener);
17119
+ };
 
 
17120
 
17121
+ _proto.notifyNestedSubs = function notifyNestedSubs() {
17122
+ this.listeners.notify();
17123
+ };
 
 
 
 
17124
 
17125
+ _proto.handleChangeWrapper = function handleChangeWrapper() {
17126
+ if (this.onStateChange) {
17127
+ this.onStateChange();
 
17128
  }
17129
+ };
 
 
17130
 
17131
+ _proto.isSubscribed = function isSubscribed() {
17132
+ return Boolean(this.unsubscribe);
17133
+ };
17134
 
17135
+ _proto.trySubscribe = function trySubscribe() {
17136
+ if (!this.unsubscribe) {
17137
+ this.unsubscribe = this.parentSub ? this.parentSub.addNestedSub(this.handleChangeWrapper) : this.store.subscribe(this.handleChangeWrapper);
17138
+ this.listeners = createListenerCollection();
 
 
 
 
 
 
 
 
 
 
 
 
 
17139
  }
17140
+ };
17141
 
17142
+ _proto.tryUnsubscribe = function tryUnsubscribe() {
17143
+ if (this.unsubscribe) {
17144
+ this.unsubscribe();
17145
+ this.unsubscribe = null;
17146
+ this.listeners.clear();
17147
+ this.listeners = nullListeners;
17148
+ }
17149
  };
 
 
 
 
 
 
 
 
 
 
 
17150
 
17151
+ return Subscription;
17152
+ }();
 
 
 
17153
 
17154
 
17155
+ ;// CONCATENATED MODULE: ./node_modules/react-redux/es/utils/useIsomorphicLayoutEffect.js
17156
+ // React currently throws a warning when using useLayoutEffect on the server.
17157
+ // To get around it, we can conditionally useEffect on the server (no-op) and
17158
+ // useLayoutEffect in the browser. We need useLayoutEffect to ensure the store
17159
+ // subscription callback always has the selector from the latest render commit
17160
+ // available, otherwise a store update may happen between render and the effect,
17161
+ // which may cause missed updates; we also must ensure the store subscription
17162
+ // is created synchronously, otherwise a store update may occur before the
17163
+ // subscription is created and an inconsistent state may be observed
17164
 
17165
+ var useIsomorphicLayoutEffect = typeof window !== 'undefined' && typeof window.document !== 'undefined' && typeof window.document.createElement !== 'undefined' ? react.useLayoutEffect : react.useEffect;
17166
+ ;// CONCATENATED MODULE: ./node_modules/react-redux/es/components/Provider.js
17167
 
17168
 
17169
 
17170
 
17171
 
17172
 
17173
+ function Provider(_ref) {
17174
+ var store = _ref.store,
17175
+ context = _ref.context,
17176
+ children = _ref.children;
17177
+ var contextValue = (0,react.useMemo)(function () {
17178
+ var subscription = new Subscription(store);
17179
+ subscription.onStateChange = subscription.notifyNestedSubs;
17180
+ return {
17181
+ store: store,
17182
+ subscription: subscription
17183
+ };
17184
+ }, [store]);
17185
+ var previousState = (0,react.useMemo)(function () {
17186
+ return store.getState();
17187
+ }, [store]);
17188
+ useIsomorphicLayoutEffect(function () {
17189
+ var subscription = contextValue.subscription;
17190
+ subscription.trySubscribe();
17191
 
17192
+ if (previousState !== store.getState()) {
17193
+ subscription.notifyNestedSubs();
17194
+ }
17195
 
17196
+ return function () {
17197
+ subscription.tryUnsubscribe();
17198
+ subscription.onStateChange = null;
17199
+ };
17200
+ }, [contextValue, previousState]);
17201
+ var Context = context || Context_ReactReduxContext;
17202
+ return /*#__PURE__*/react.createElement(Context.Provider, {
17203
+ value: contextValue
17204
+ }, children);
17205
+ }
17206
 
17207
+ if (false) {}
17208
 
17209
+ /* harmony default export */ var components_Provider = (Provider);
17210
+ // EXTERNAL MODULE: ./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js
17211
+ var hoist_non_react_statics_cjs = __webpack_require__(8679);
17212
+ var hoist_non_react_statics_cjs_default = /*#__PURE__*/__webpack_require__.n(hoist_non_react_statics_cjs);
17213
+ // EXTERNAL MODULE: ./node_modules/react-redux/node_modules/react-is/index.js
17214
+ var node_modules_react_is = __webpack_require__(72973);
17215
+ ;// CONCATENATED MODULE: ./node_modules/react-redux/es/components/connectAdvanced.js
17216
 
 
 
 
 
 
 
 
17217
 
 
 
 
 
17218
 
 
 
 
 
17219
 
 
 
 
 
17220
 
 
 
 
 
 
 
 
 
 
17221
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17222
 
17223
+ // Define some constant arrays just to avoid re-creating these
17224
 
17225
+ var EMPTY_ARRAY = [];
17226
+ var NO_SUBSCRIPTION_ARRAY = [null, null];
 
 
17227
 
17228
+ var stringifyComponent = function stringifyComponent(Comp) {
17229
+ try {
17230
+ return JSON.stringify(Comp);
17231
+ } catch (err) {
17232
+ return String(Comp);
17233
+ }
17234
+ };
17235
 
17236
+ function storeStateUpdatesReducer(state, action) {
17237
+ var updateCount = state[1];
17238
+ return [action.payload, updateCount + 1];
17239
+ }
 
 
 
 
 
 
 
 
17240
 
17241
+ function useIsomorphicLayoutEffectWithArgs(effectFunc, effectArgs, dependencies) {
17242
+ useIsomorphicLayoutEffect(function () {
17243
+ return effectFunc.apply(void 0, effectArgs);
17244
+ }, dependencies);
17245
+ }
17246
 
17247
+ function captureWrapperProps(lastWrapperProps, lastChildProps, renderIsScheduled, wrapperProps, actualChildProps, childPropsFromStoreUpdate, notifyNestedSubs) {
17248
+ // We want to capture the wrapper props and child props we used for later comparisons
17249
+ lastWrapperProps.current = wrapperProps;
17250
+ lastChildProps.current = actualChildProps;
17251
+ renderIsScheduled.current = false; // If the render was from a store update, clear out that reference and cascade the subscriber update
17252
 
17253
+ if (childPropsFromStoreUpdate.current) {
17254
+ childPropsFromStoreUpdate.current = null;
17255
+ notifyNestedSubs();
17256
+ }
17257
+ }
17258
 
17259
+ function subscribeUpdates(shouldHandleStateChanges, store, subscription, childPropsSelector, lastWrapperProps, lastChildProps, renderIsScheduled, childPropsFromStoreUpdate, notifyNestedSubs, forceComponentUpdateDispatch) {
17260
+ // If we're not subscribed to the store, nothing to do here
17261
+ if (!shouldHandleStateChanges) return; // Capture values for checking if and when this component unmounts
17262
 
17263
+ var didUnsubscribe = false;
17264
+ var lastThrownError = null; // We'll run this callback every time a store subscription update propagates to this component
 
 
 
 
 
 
17265
 
17266
+ var checkForUpdates = function checkForUpdates() {
17267
+ if (didUnsubscribe) {
17268
+ // Don't run stale listeners.
17269
+ // Redux doesn't guarantee unsubscriptions happen until next dispatch.
17270
+ return;
17271
+ }
17272
 
17273
+ var latestStoreState = store.getState();
17274
+ var newChildProps, error;
 
 
17275
 
17276
+ try {
17277
+ // Actually run the selector with the most recent store state and wrapper props
17278
+ // to determine what the child props should be
17279
+ newChildProps = childPropsSelector(latestStoreState, lastWrapperProps.current);
17280
+ } catch (e) {
17281
+ error = e;
17282
+ lastThrownError = e;
17283
+ }
17284
 
17285
+ if (!error) {
17286
+ lastThrownError = null;
17287
+ } // If the child props haven't changed, nothing to do here - cascade the subscription update
 
 
17288
 
 
 
 
 
 
17289
 
17290
+ if (newChildProps === lastChildProps.current) {
17291
+ if (!renderIsScheduled.current) {
17292
+ notifyNestedSubs();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17293
  }
17294
+ } else {
17295
+ // Save references to the new child props. Note that we track the "child props from store update"
17296
+ // as a ref instead of a useState/useReducer because we need a way to determine if that value has
17297
+ // been processed. If this went into useState/useReducer, we couldn't clear out the value without
17298
+ // forcing another re-render, which we don't want.
17299
+ lastChildProps.current = newChildProps;
17300
+ childPropsFromStoreUpdate.current = newChildProps;
17301
+ renderIsScheduled.current = true; // If the child props _did_ change (or we caught an error), this wrapper component needs to re-render
17302
 
17303
+ forceComponentUpdateDispatch({
17304
+ type: 'STORE_UPDATED',
17305
+ payload: {
17306
+ error: error
17307
+ }
17308
+ });
17309
  }
17310
+ }; // Actually subscribe to the nearest connected ancestor (or store)
17311
 
 
 
 
 
 
 
 
 
 
17312
 
17313
+ subscription.onStateChange = checkForUpdates;
17314
+ subscription.trySubscribe(); // Pull data from the store after first render in case the store has
17315
+ // changed since we began.
 
 
 
17316
 
17317
+ checkForUpdates();
 
 
 
 
 
 
 
 
17318
 
17319
+ var unsubscribeWrapper = function unsubscribeWrapper() {
17320
+ didUnsubscribe = true;
17321
+ subscription.tryUnsubscribe();
17322
+ subscription.onStateChange = null;
17323
 
17324
+ if (lastThrownError) {
17325
+ // It's possible that we caught an error due to a bad mapState function, but the
17326
+ // parent re-rendered without this component and we're about to unmount.
17327
+ // This shouldn't happen as long as we do top-down subscriptions correctly, but
17328
+ // if we ever do those wrong, this throw will surface the error in our tests.
17329
+ // In that case, throw the error from here so it doesn't get lost.
17330
+ throw lastThrownError;
17331
  }
 
 
17332
  };
17333
+
17334
+ return unsubscribeWrapper;
17335
  }
 
17336
 
17337
+ var initStateUpdates = function initStateUpdates() {
17338
+ return [null, 0];
17339
+ };
17340
 
17341
+ function connectAdvanced(
17342
+ /*
17343
+ selectorFactory is a func that is responsible for returning the selector function used to
17344
+ compute new props from state, props, and dispatch. For example:
17345
+ export default connectAdvanced((dispatch, options) => (state, props) => ({
17346
+ thing: state.things[props.thingId],
17347
+ saveThing: fields => dispatch(actionCreators.saveThing(props.thingId, fields)),
17348
+ }))(YourComponent)
17349
+ Access to dispatch is provided to the factory so selectorFactories can bind actionCreators
17350
+ outside of their selector as an optimization. Options passed to connectAdvanced are passed to
17351
+ the selectorFactory, along with displayName and WrappedComponent, as the second argument.
17352
+ Note that selectorFactory is responsible for all caching/memoization of inbound and outbound
17353
+ props. Do not use connectAdvanced directly without memoizing results between calls to your
17354
+ selector, otherwise the Connect component will re-render on every state or props change.
17355
+ */
17356
+ selectorFactory, // options object:
17357
+ _ref) {
17358
+ if (_ref === void 0) {
17359
+ _ref = {};
17360
+ }
17361
 
17362
+ var _ref2 = _ref,
17363
+ _ref2$getDisplayName = _ref2.getDisplayName,
17364
+ getDisplayName = _ref2$getDisplayName === void 0 ? function (name) {
17365
+ return "ConnectAdvanced(" + name + ")";
17366
+ } : _ref2$getDisplayName,
17367
+ _ref2$methodName = _ref2.methodName,
17368
+ methodName = _ref2$methodName === void 0 ? 'connectAdvanced' : _ref2$methodName,
17369
+ _ref2$renderCountProp = _ref2.renderCountProp,
17370
+ renderCountProp = _ref2$renderCountProp === void 0 ? undefined : _ref2$renderCountProp,
17371
+ _ref2$shouldHandleSta = _ref2.shouldHandleStateChanges,
17372
+ shouldHandleStateChanges = _ref2$shouldHandleSta === void 0 ? true : _ref2$shouldHandleSta,
17373
+ _ref2$storeKey = _ref2.storeKey,
17374
+ storeKey = _ref2$storeKey === void 0 ? 'store' : _ref2$storeKey,
17375
+ _ref2$withRef = _ref2.withRef,
17376
+ withRef = _ref2$withRef === void 0 ? false : _ref2$withRef,
17377
+ _ref2$forwardRef = _ref2.forwardRef,
17378
+ forwardRef = _ref2$forwardRef === void 0 ? false : _ref2$forwardRef,
17379
+ _ref2$context = _ref2.context,
17380
+ context = _ref2$context === void 0 ? Context_ReactReduxContext : _ref2$context,
17381
+ connectOptions = (0,objectWithoutPropertiesLoose/* default */.Z)(_ref2, ["getDisplayName", "methodName", "renderCountProp", "shouldHandleStateChanges", "storeKey", "withRef", "forwardRef", "context"]);
17382
 
17383
+ if (false) { var customStoreWarningMessage; }
 
 
 
 
 
 
 
 
 
17384
 
17385
+ var Context = context;
17386
+ return function wrapWithConnect(WrappedComponent) {
17387
+ if (false) {}
17388
+
17389
+ var wrappedComponentName = WrappedComponent.displayName || WrappedComponent.name || 'Component';
17390
+ var displayName = getDisplayName(wrappedComponentName);
17391
+
17392
+ var selectorFactoryOptions = (0,esm_extends/* default */.Z)({}, connectOptions, {
17393
+ getDisplayName: getDisplayName,
17394
+ methodName: methodName,
17395
+ renderCountProp: renderCountProp,
17396
+ shouldHandleStateChanges: shouldHandleStateChanges,
17397
+ storeKey: storeKey,
17398
+ displayName: displayName,
17399
+ wrappedComponentName: wrappedComponentName,
17400
+ WrappedComponent: WrappedComponent
17401
  });
 
17402
 
17403
+ var pure = connectOptions.pure;
 
 
17404
 
17405
+ function createChildSelector(store) {
17406
+ return selectorFactory(store.dispatch, selectorFactoryOptions);
17407
+ } // If we aren't running in "pure" mode, we don't want to memoize values.
17408
+ // To avoid conditionally calling hooks, we fall back to a tiny wrapper
17409
+ // that just executes the given callback immediately.
 
17410
 
 
 
 
 
 
17411
 
17412
+ var usePureOnlyMemo = pure ? react.useMemo : function (callback) {
17413
+ return callback();
17414
+ };
17415
 
17416
+ function ConnectFunction(props) {
17417
+ var _useMemo = (0,react.useMemo)(function () {
17418
+ // Distinguish between actual "data" props that were passed to the wrapper component,
17419
+ // and values needed to control behavior (forwarded refs, alternate context instances).
17420
+ // To maintain the wrapperProps object reference, memoize this destructuring.
17421
+ var reactReduxForwardedRef = props.reactReduxForwardedRef,
17422
+ wrapperProps = (0,objectWithoutPropertiesLoose/* default */.Z)(props, ["reactReduxForwardedRef"]);
 
 
17423
 
17424
+ return [props.context, reactReduxForwardedRef, wrapperProps];
17425
+ }, [props]),
17426
+ propsContext = _useMemo[0],
17427
+ reactReduxForwardedRef = _useMemo[1],
17428
+ wrapperProps = _useMemo[2];
 
 
 
 
 
 
 
17429
 
17430
+ var ContextToUse = (0,react.useMemo)(function () {
17431
+ // Users may optionally pass in a custom context instance to use instead of our ReactReduxContext.
17432
+ // Memoize the check that determines which context instance we should use.
17433
+ return propsContext && propsContext.Consumer && (0,node_modules_react_is.isContextConsumer)( /*#__PURE__*/react.createElement(propsContext.Consumer, null)) ? propsContext : Context;
17434
+ }, [propsContext, Context]); // Retrieve the store and ancestor subscription via context, if available
17435
 
17436
+ var contextValue = (0,react.useContext)(ContextToUse); // The store _must_ exist as either a prop or in context.
17437
+ // We'll check to see if it _looks_ like a Redux store first.
17438
+ // This allows us to pass through a `store` prop that is just a plain value.
17439
 
17440
+ var didStoreComeFromProps = Boolean(props.store) && Boolean(props.store.getState) && Boolean(props.store.dispatch);
17441
+ var didStoreComeFromContext = Boolean(contextValue) && Boolean(contextValue.store);
17442
 
17443
+ if (false) {} // Based on the previous check, one of these must be true
 
 
 
 
 
 
 
 
17444
 
 
 
 
 
 
 
 
17445
 
17446
+ var store = didStoreComeFromProps ? props.store : contextValue.store;
17447
+ var childPropsSelector = (0,react.useMemo)(function () {
17448
+ // The child props selector needs the store reference as an input.
17449
+ // Re-create this selector whenever the store changes.
17450
+ return createChildSelector(store);
17451
+ }, [store]);
17452
 
17453
+ var _useMemo2 = (0,react.useMemo)(function () {
17454
+ if (!shouldHandleStateChanges) return NO_SUBSCRIPTION_ARRAY; // This Subscription's source should match where store came from: props vs. context. A component
17455
+ // connected to the store via props shouldn't use subscription from context, or vice versa.
 
 
 
17456
 
17457
+ var subscription = new Subscription(store, didStoreComeFromProps ? null : contextValue.subscription); // `notifyNestedSubs` is duplicated to handle the case where the component is unmounted in
17458
+ // the middle of the notification loop, where `subscription` will then be null. This can
17459
+ // probably be avoided if Subscription's listeners logic is changed to not call listeners
17460
+ // that have been unsubscribed in the middle of the notification loop.
 
 
17461
 
17462
+ var notifyNestedSubs = subscription.notifyNestedSubs.bind(subscription);
17463
+ return [subscription, notifyNestedSubs];
17464
+ }, [store, didStoreComeFromProps, contextValue]),
17465
+ subscription = _useMemo2[0],
17466
+ notifyNestedSubs = _useMemo2[1]; // Determine what {store, subscription} value should be put into nested context, if necessary,
17467
+ // and memoize that value to avoid unnecessary context updates.
17468
 
 
17469
 
17470
+ var overriddenContextValue = (0,react.useMemo)(function () {
17471
+ if (didStoreComeFromProps) {
17472
+ // This component is directly subscribed to a store from props.
17473
+ // We don't want descendants reading from this store - pass down whatever
17474
+ // the existing context value is from the nearest connected ancestor.
17475
+ return contextValue;
17476
+ } // Otherwise, put this component's subscription instance into context, so that
17477
+ // connected descendants won't update until after this component is done
17478
 
 
 
 
 
17479
 
17480
+ return (0,esm_extends/* default */.Z)({}, contextValue, {
17481
+ subscription: subscription
17482
+ });
17483
+ }, [didStoreComeFromProps, contextValue, subscription]); // We need to force this wrapper component to re-render whenever a Redux store update
17484
+ // causes a change to the calculated child component props (or we caught an error in mapState)
17485
 
17486
+ var _useReducer = (0,react.useReducer)(storeStateUpdatesReducer, EMPTY_ARRAY, initStateUpdates),
17487
+ _useReducer$ = _useReducer[0],
17488
+ previousStateUpdateResult = _useReducer$[0],
17489
+ forceComponentUpdateDispatch = _useReducer[1]; // Propagate any mapState/mapDispatch errors upwards
17490
 
17491
+
17492
+ if (previousStateUpdateResult && previousStateUpdateResult.error) {
17493
+ throw previousStateUpdateResult.error;
17494
+ } // Set up refs to coordinate values between the subscription effect and the render logic
17495
 
17496
 
17497
+ var lastChildProps = (0,react.useRef)();
17498
+ var lastWrapperProps = (0,react.useRef)(wrapperProps);
17499
+ var childPropsFromStoreUpdate = (0,react.useRef)();
17500
+ var renderIsScheduled = (0,react.useRef)(false);
17501
+ var actualChildProps = usePureOnlyMemo(function () {
17502
+ // Tricky logic here:
17503
+ // - This render may have been triggered by a Redux store update that produced new child props
17504
+ // - However, we may have gotten new wrapper props after that
17505
+ // If we have new child props, and the same wrapper props, we know we should use the new child props as-is.
17506
+ // But, if we have new wrapper props, those might change the child props, so we have to recalculate things.
17507
+ // So, we'll use the child props from store update only if the wrapper props are the same as last time.
17508
+ if (childPropsFromStoreUpdate.current && wrapperProps === lastWrapperProps.current) {
17509
+ return childPropsFromStoreUpdate.current;
17510
+ } // TODO We're reading the store directly in render() here. Bad idea?
17511
+ // This will likely cause Bad Things (TM) to happen in Concurrent Mode.
17512
+ // Note that we do this because on renders _not_ caused by store updates, we need the latest store state
17513
+ // to determine what the child props should be.
17514
 
17515
 
17516
+ return childPropsSelector(store.getState(), wrapperProps);
17517
+ }, [store, previousStateUpdateResult, wrapperProps]); // We need this to execute synchronously every time we re-render. However, React warns
17518
+ // about useLayoutEffect in SSR, so we try to detect environment and fall back to
17519
+ // just useEffect instead to avoid the warning, since neither will run anyway.
 
 
 
 
 
 
 
 
17520
 
17521
+ useIsomorphicLayoutEffectWithArgs(captureWrapperProps, [lastWrapperProps, lastChildProps, renderIsScheduled, wrapperProps, actualChildProps, childPropsFromStoreUpdate, notifyNestedSubs]); // Our re-subscribe logic only runs when the store/subscription setup changes
17522
 
17523
+ useIsomorphicLayoutEffectWithArgs(subscribeUpdates, [shouldHandleStateChanges, store, subscription, childPropsSelector, lastWrapperProps, lastChildProps, renderIsScheduled, childPropsFromStoreUpdate, notifyNestedSubs, forceComponentUpdateDispatch], [store, subscription, childPropsSelector]); // Now that all that's done, we can finally try to actually render the child component.
17524
+ // We memoize the elements for the rendered child component as an optimization.
17525
 
17526
+ var renderedWrappedComponent = (0,react.useMemo)(function () {
17527
+ return /*#__PURE__*/react.createElement(WrappedComponent, (0,esm_extends/* default */.Z)({}, actualChildProps, {
17528
+ ref: reactReduxForwardedRef
17529
+ }));
17530
+ }, [reactReduxForwardedRef, WrappedComponent, actualChildProps]); // If React sees the exact same element reference as last time, it bails out of re-rendering
17531
+ // that child, same as if it was wrapped in React.memo() or returned false from shouldComponentUpdate.
17532
 
17533
+ var renderedChild = (0,react.useMemo)(function () {
17534
+ if (shouldHandleStateChanges) {
17535
+ // If this component is subscribed to store updates, we need to pass its own
17536
+ // subscription instance down to our descendants. That means rendering the same
17537
+ // Context instance, and putting a different value into the context.
17538
+ return /*#__PURE__*/react.createElement(ContextToUse.Provider, {
17539
+ value: overriddenContextValue
17540
+ }, renderedWrappedComponent);
17541
+ }
17542
 
17543
+ return renderedWrappedComponent;
17544
+ }, [ContextToUse, renderedWrappedComponent, overriddenContextValue]);
17545
+ return renderedChild;
17546
+ } // If we're in "pure" mode, ensure our wrapper component only re-renders when incoming props have changed.
17547
 
 
17548
 
17549
+ var Connect = pure ? react.memo(ConnectFunction) : ConnectFunction;
17550
+ Connect.WrappedComponent = WrappedComponent;
17551
+ Connect.displayName = displayName;
 
 
 
 
 
17552
 
17553
+ if (forwardRef) {
17554
+ var forwarded = react.forwardRef(function forwardConnectRef(props, ref) {
17555
+ return /*#__PURE__*/react.createElement(Connect, (0,esm_extends/* default */.Z)({}, props, {
17556
+ reactReduxForwardedRef: ref
17557
+ }));
17558
+ });
17559
+ forwarded.displayName = displayName;
17560
+ forwarded.WrappedComponent = WrappedComponent;
17561
+ return hoist_non_react_statics_cjs_default()(forwarded, WrappedComponent);
17562
+ }
17563
+
17564
+ return hoist_non_react_statics_cjs_default()(Connect, WrappedComponent);
17565
  };
17566
  }
17567
+ ;// CONCATENATED MODULE: ./node_modules/react-redux/es/utils/shallowEqual.js
17568
+ function is(x, y) {
17569
+ if (x === y) {
17570
+ return x !== 0 || y !== 0 || 1 / x === 1 / y;
17571
+ } else {
17572
+ return x !== x && y !== y;
17573
+ }
17574
+ }
17575
 
17576
+ function shallowEqual(objA, objB) {
17577
+ if (is(objA, objB)) return true;
17578
 
17579
+ if (typeof objA !== 'object' || objA === null || typeof objB !== 'object' || objB === null) {
17580
+ return false;
17581
+ }
 
 
 
 
 
17582
 
17583
+ var keysA = Object.keys(objA);
17584
+ var keysB = Object.keys(objB);
17585
+ if (keysA.length !== keysB.length) return false;
 
 
17586
 
17587
+ for (var i = 0; i < keysA.length; i++) {
17588
+ if (!Object.prototype.hasOwnProperty.call(objB, keysA[i]) || !is(objA[keysA[i]], objB[keysA[i]])) {
17589
+ return false;
17590
+ }
17591
+ }
17592
 
17593
+ return true;
17594
+ }
17595
+ ;// CONCATENATED MODULE: ./node_modules/react-redux/es/connect/wrapMapToProps.js
 
17596
 
17597
+ function wrapMapToPropsConstant(getConstant) {
17598
+ return function initConstantSelector(dispatch, options) {
17599
+ var constant = getConstant(dispatch, options);
17600
 
17601
+ function constantSelector() {
17602
+ return constant;
17603
+ }
 
 
17604
 
17605
+ constantSelector.dependsOnOwnProps = false;
17606
+ return constantSelector;
17607
+ };
17608
+ } // dependsOnOwnProps is used by createMapToPropsProxy to determine whether to pass props as args
17609
+ // to the mapToProps function being wrapped. It is also used by makePurePropsSelector to determine
17610
+ // whether mapToProps needs to be invoked when props have changed.
17611
+ //
17612
+ // A length of one signals that mapToProps does not depend on props from the parent component.
17613
+ // A length of zero is assumed to mean mapToProps is getting args via arguments or ...args and
17614
+ // therefore not reporting its length accurately..
17615
 
17616
+ function getDependsOnOwnProps(mapToProps) {
17617
+ return mapToProps.dependsOnOwnProps !== null && mapToProps.dependsOnOwnProps !== undefined ? Boolean(mapToProps.dependsOnOwnProps) : mapToProps.length !== 1;
17618
+ } // Used by whenMapStateToPropsIsFunction and whenMapDispatchToPropsIsFunction,
17619
+ // this function wraps mapToProps in a proxy function which does several things:
17620
+ //
17621
+ // * Detects whether the mapToProps function being called depends on props, which
17622
+ // is used by selectorFactory to decide if it should reinvoke on props changes.
17623
+ //
17624
+ // * On first call, handles mapToProps if returns another function, and treats that
17625
+ // new function as the true mapToProps for subsequent calls.
17626
+ //
17627
+ // * On first call, verifies the first result is a plain object, in order to warn
17628
+ // the developer that their mapToProps function is not returning a valid result.
17629
+ //
17630
 
17631
+ function wrapMapToPropsFunc(mapToProps, methodName) {
17632
+ return function initProxySelector(dispatch, _ref) {
17633
+ var displayName = _ref.displayName;
17634
 
17635
+ var proxy = function mapToPropsProxy(stateOrDispatch, ownProps) {
17636
+ return proxy.dependsOnOwnProps ? proxy.mapToProps(stateOrDispatch, ownProps) : proxy.mapToProps(stateOrDispatch);
17637
+ }; // allow detectFactoryAndVerify to get ownProps
17638
 
 
 
17639
 
17640
+ proxy.dependsOnOwnProps = true;
 
 
 
17641
 
17642
+ proxy.mapToProps = function detectFactoryAndVerify(stateOrDispatch, ownProps) {
17643
+ proxy.mapToProps = mapToProps;
17644
+ proxy.dependsOnOwnProps = getDependsOnOwnProps(mapToProps);
17645
+ var props = proxy(stateOrDispatch, ownProps);
17646
 
17647
+ if (typeof props === 'function') {
17648
+ proxy.mapToProps = props;
17649
+ proxy.dependsOnOwnProps = getDependsOnOwnProps(props);
17650
+ props = proxy(stateOrDispatch, ownProps);
17651
+ }
17652
 
17653
+ if (false) {}
17654
+ return props;
17655
+ };
17656
 
17657
+ return proxy;
17658
+ };
17659
  }
17660
+ ;// CONCATENATED MODULE: ./node_modules/react-redux/es/connect/mapDispatchToProps.js
17661
 
 
 
 
 
 
 
 
 
 
 
 
17662
 
17663
+ function whenMapDispatchToPropsIsFunction(mapDispatchToProps) {
17664
+ return typeof mapDispatchToProps === 'function' ? wrapMapToPropsFunc(mapDispatchToProps, 'mapDispatchToProps') : undefined;
17665
+ }
17666
+ function whenMapDispatchToPropsIsMissing(mapDispatchToProps) {
17667
+ return !mapDispatchToProps ? wrapMapToPropsConstant(function (dispatch) {
17668
+ return {
17669
+ dispatch: dispatch
17670
+ };
17671
+ }) : undefined;
17672
+ }
17673
+ function whenMapDispatchToPropsIsObject(mapDispatchToProps) {
17674
+ return mapDispatchToProps && typeof mapDispatchToProps === 'object' ? wrapMapToPropsConstant(function (dispatch) {
17675
+ return bindActionCreators(mapDispatchToProps, dispatch);
17676
+ }) : undefined;
17677
+ }
17678
+ /* harmony default export */ var mapDispatchToProps = ([whenMapDispatchToPropsIsFunction, whenMapDispatchToPropsIsMissing, whenMapDispatchToPropsIsObject]);
17679
+ ;// CONCATENATED MODULE: ./node_modules/react-redux/es/connect/mapStateToProps.js
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17680
 
17681
+ function whenMapStateToPropsIsFunction(mapStateToProps) {
17682
+ return typeof mapStateToProps === 'function' ? wrapMapToPropsFunc(mapStateToProps, 'mapStateToProps') : undefined;
17683
+ }
17684
+ function whenMapStateToPropsIsMissing(mapStateToProps) {
17685
+ return !mapStateToProps ? wrapMapToPropsConstant(function () {
17686
+ return {};
17687
+ }) : undefined;
17688
+ }
17689
+ /* harmony default export */ var mapStateToProps = ([whenMapStateToPropsIsFunction, whenMapStateToPropsIsMissing]);
17690
+ ;// CONCATENATED MODULE: ./node_modules/react-redux/es/connect/mergeProps.js
17691
 
17692
 
17693
+ function defaultMergeProps(stateProps, dispatchProps, ownProps) {
17694
+ return (0,esm_extends/* default */.Z)({}, ownProps, stateProps, dispatchProps);
17695
+ }
17696
+ function wrapMergePropsFunc(mergeProps) {
17697
+ return function initMergePropsProxy(dispatch, _ref) {
17698
+ var displayName = _ref.displayName,
17699
+ pure = _ref.pure,
17700
+ areMergedPropsEqual = _ref.areMergedPropsEqual;
17701
+ var hasRunOnce = false;
17702
+ var mergedProps;
17703
+ return function mergePropsProxy(stateProps, dispatchProps, ownProps) {
17704
+ var nextMergedProps = mergeProps(stateProps, dispatchProps, ownProps);
17705
 
17706
+ if (hasRunOnce) {
17707
+ if (!pure || !areMergedPropsEqual(nextMergedProps, mergedProps)) mergedProps = nextMergedProps;
17708
  } else {
17709
+ hasRunOnce = true;
17710
+ mergedProps = nextMergedProps;
17711
+ if (false) {}
17712
  }
 
 
 
17713
 
17714
+ return mergedProps;
17715
+ };
 
 
 
 
 
 
 
 
 
 
 
17716
  };
17717
+ }
17718
+ function whenMergePropsIsFunction(mergeProps) {
17719
+ return typeof mergeProps === 'function' ? wrapMergePropsFunc(mergeProps) : undefined;
17720
+ }
17721
+ function whenMergePropsIsOmitted(mergeProps) {
17722
+ return !mergeProps ? function () {
17723
+ return defaultMergeProps;
17724
+ } : undefined;
17725
+ }
17726
+ /* harmony default export */ var mergeProps = ([whenMergePropsIsFunction, whenMergePropsIsOmitted]);
17727
+ ;// CONCATENATED MODULE: ./node_modules/react-redux/es/connect/selectorFactory.js
 
 
 
 
 
 
17728
 
 
 
 
17729
 
17730
+ function impureFinalPropsSelectorFactory(mapStateToProps, mapDispatchToProps, mergeProps, dispatch) {
17731
+ return function impureFinalPropsSelector(state, ownProps) {
17732
+ return mergeProps(mapStateToProps(state, ownProps), mapDispatchToProps(dispatch, ownProps), ownProps);
 
 
17733
  };
17734
+ }
17735
+ function pureFinalPropsSelectorFactory(mapStateToProps, mapDispatchToProps, mergeProps, dispatch, _ref) {
17736
+ var areStatesEqual = _ref.areStatesEqual,
17737
+ areOwnPropsEqual = _ref.areOwnPropsEqual,
17738
+ areStatePropsEqual = _ref.areStatePropsEqual;
17739
+ var hasRunAtLeastOnce = false;
17740
+ var state;
17741
+ var ownProps;
17742
+ var stateProps;
17743
+ var dispatchProps;
17744
+ var mergedProps;
17745
 
17746
+ function handleFirstCall(firstState, firstOwnProps) {
17747
+ state = firstState;
17748
+ ownProps = firstOwnProps;
17749
+ stateProps = mapStateToProps(state, ownProps);
17750
+ dispatchProps = mapDispatchToProps(dispatch, ownProps);
17751
+ mergedProps = mergeProps(stateProps, dispatchProps, ownProps);
17752
+ hasRunAtLeastOnce = true;
17753
+ return mergedProps;
17754
+ }
17755
 
17756
+ function handleNewPropsAndNewState() {
17757
+ stateProps = mapStateToProps(state, ownProps);
17758
+ if (mapDispatchToProps.dependsOnOwnProps) dispatchProps = mapDispatchToProps(dispatch, ownProps);
17759
+ mergedProps = mergeProps(stateProps, dispatchProps, ownProps);
17760
+ return mergedProps;
17761
+ }
 
 
 
17762
 
17763
+ function handleNewProps() {
17764
+ if (mapStateToProps.dependsOnOwnProps) stateProps = mapStateToProps(state, ownProps);
17765
+ if (mapDispatchToProps.dependsOnOwnProps) dispatchProps = mapDispatchToProps(dispatch, ownProps);
17766
+ mergedProps = mergeProps(stateProps, dispatchProps, ownProps);
17767
+ return mergedProps;
17768
+ }
17769
 
17770
+ function handleNewState() {
17771
+ var nextStateProps = mapStateToProps(state, ownProps);
17772
+ var statePropsChanged = !areStatePropsEqual(nextStateProps, stateProps);
17773
+ stateProps = nextStateProps;
17774
+ if (statePropsChanged) mergedProps = mergeProps(stateProps, dispatchProps, ownProps);
17775
+ return mergedProps;
17776
+ }
17777
 
17778
+ function handleSubsequentCalls(nextState, nextOwnProps) {
17779
+ var propsChanged = !areOwnPropsEqual(nextOwnProps, ownProps);
17780
+ var stateChanged = !areStatesEqual(nextState, state);
17781
+ state = nextState;
17782
+ ownProps = nextOwnProps;
17783
+ if (propsChanged && stateChanged) return handleNewPropsAndNewState();
17784
+ if (propsChanged) return handleNewProps();
17785
+ if (stateChanged) return handleNewState();
17786
+ return mergedProps;
17787
+ }
17788
 
17789
+ return function pureFinalPropsSelector(nextState, nextOwnProps) {
17790
+ return hasRunAtLeastOnce ? handleSubsequentCalls(nextState, nextOwnProps) : handleFirstCall(nextState, nextOwnProps);
 
 
 
 
 
 
17791
  };
17792
+ } // TODO: Add more comments
17793
+ // If pure is true, the selector returned by selectorFactory will memoize its results,
17794
+ // allowing connectAdvanced's shouldComponentUpdate to return false if final
17795
+ // props have not changed. If false, the selector will always return a new
17796
+ // object and shouldComponentUpdate will always return true.
 
 
 
 
 
 
 
 
 
 
17797
 
17798
+ function finalPropsSelectorFactory(dispatch, _ref2) {
17799
+ var initMapStateToProps = _ref2.initMapStateToProps,
17800
+ initMapDispatchToProps = _ref2.initMapDispatchToProps,
17801
+ initMergeProps = _ref2.initMergeProps,
17802
+ options = (0,objectWithoutPropertiesLoose/* default */.Z)(_ref2, ["initMapStateToProps", "initMapDispatchToProps", "initMergeProps"]);
17803
 
17804
+ var mapStateToProps = initMapStateToProps(dispatch, options);
17805
+ var mapDispatchToProps = initMapDispatchToProps(dispatch, options);
17806
+ var mergeProps = initMergeProps(dispatch, options);
17807
 
17808
+ if (false) {}
17809
 
17810
+ var selectorFactory = options.pure ? pureFinalPropsSelectorFactory : impureFinalPropsSelectorFactory;
17811
+ return selectorFactory(mapStateToProps, mapDispatchToProps, mergeProps, dispatch, options);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17812
  }
17813
+ ;// CONCATENATED MODULE: ./node_modules/react-redux/es/connect/connect.js
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17814
 
 
 
 
 
 
17815
 
 
 
 
 
 
 
 
 
17816
 
17817
 
17818
 
17819
 
 
 
17820
 
 
 
17821
 
17822
+ /*
17823
+ connect is a facade over connectAdvanced. It turns its args into a compatible
17824
+ selectorFactory, which has the signature:
17825
+
17826
+ (dispatch, options) => (nextState, nextOwnProps) => nextFinalProps
17827
+
17828
+ connect passes its args to connectAdvanced as options, which will in turn pass them to
17829
+ selectorFactory each time a Connect component instance is instantiated or hot reloaded.
17830
+
17831
+ selectorFactory returns a final props selector from its mapStateToProps,
17832
+ mapStateToPropsFactories, mapDispatchToProps, mapDispatchToPropsFactories, mergeProps,
17833
+ mergePropsFactories, and pure args.
17834
+
17835
+ The resulting final props selector is called by the Connect component instance whenever
17836
+ it receives new props or store state.
17837
+ */
17838
 
17839
+ function match(arg, factories, name) {
17840
+ for (var i = factories.length - 1; i >= 0; i--) {
17841
+ var result = factories[i](arg);
17842
+ if (result) return result;
17843
  }
17844
 
17845
+ return function (dispatch, options) {
17846
+ throw new Error("Invalid value of type " + typeof arg + " for " + name + " argument when connecting component " + options.wrappedComponentName + ".");
 
 
 
17847
  };
17848
  }
 
 
 
 
17849
 
17850
+ function strictEqual(a, b) {
17851
+ return a === b;
17852
+ } // createConnect with default args builds the 'official' connect behavior. Calling it with
17853
+ // different options opens up some testing and extensibility scenarios
 
17854
 
 
 
 
 
17855
 
17856
+ function createConnect(_temp) {
17857
+ var _ref = _temp === void 0 ? {} : _temp,
17858
+ _ref$connectHOC = _ref.connectHOC,
17859
+ connectHOC = _ref$connectHOC === void 0 ? connectAdvanced : _ref$connectHOC,
17860
+ _ref$mapStateToPropsF = _ref.mapStateToPropsFactories,
17861
+ mapStateToPropsFactories = _ref$mapStateToPropsF === void 0 ? mapStateToProps : _ref$mapStateToPropsF,
17862
+ _ref$mapDispatchToPro = _ref.mapDispatchToPropsFactories,
17863
+ mapDispatchToPropsFactories = _ref$mapDispatchToPro === void 0 ? mapDispatchToProps : _ref$mapDispatchToPro,
17864
+ _ref$mergePropsFactor = _ref.mergePropsFactories,
17865
+ mergePropsFactories = _ref$mergePropsFactor === void 0 ? mergeProps : _ref$mergePropsFactor,
17866
+ _ref$selectorFactory = _ref.selectorFactory,
17867
+ selectorFactory = _ref$selectorFactory === void 0 ? finalPropsSelectorFactory : _ref$selectorFactory;
17868
 
17869
+ return function connect(mapStateToProps, mapDispatchToProps, mergeProps, _ref2) {
17870
+ if (_ref2 === void 0) {
17871
+ _ref2 = {};
17872
+ }
17873
 
17874
+ var _ref3 = _ref2,
17875
+ _ref3$pure = _ref3.pure,
17876
+ pure = _ref3$pure === void 0 ? true : _ref3$pure,
17877
+ _ref3$areStatesEqual = _ref3.areStatesEqual,
17878
+ areStatesEqual = _ref3$areStatesEqual === void 0 ? strictEqual : _ref3$areStatesEqual,
17879
+ _ref3$areOwnPropsEqua = _ref3.areOwnPropsEqual,
17880
+ areOwnPropsEqual = _ref3$areOwnPropsEqua === void 0 ? shallowEqual : _ref3$areOwnPropsEqua,
17881
+ _ref3$areStatePropsEq = _ref3.areStatePropsEqual,
17882
+ areStatePropsEqual = _ref3$areStatePropsEq === void 0 ? shallowEqual : _ref3$areStatePropsEq,
17883
+ _ref3$areMergedPropsE = _ref3.areMergedPropsEqual,
17884
+ areMergedPropsEqual = _ref3$areMergedPropsE === void 0 ? shallowEqual : _ref3$areMergedPropsE,
17885
+ extraOptions = (0,objectWithoutPropertiesLoose/* default */.Z)(_ref3, ["pure", "areStatesEqual", "areOwnPropsEqual", "areStatePropsEqual", "areMergedPropsEqual"]);
17886
 
17887
+ var initMapStateToProps = match(mapStateToProps, mapStateToPropsFactories, 'mapStateToProps');
17888
+ var initMapDispatchToProps = match(mapDispatchToProps, mapDispatchToPropsFactories, 'mapDispatchToProps');
17889
+ var initMergeProps = match(mergeProps, mergePropsFactories, 'mergeProps');
17890
+ return connectHOC(selectorFactory, (0,esm_extends/* default */.Z)({
17891
+ // used in error messages
17892
+ methodName: 'connect',
17893
+ // used to compute Connect's displayName from the wrapped component's displayName.
17894
+ getDisplayName: function getDisplayName(name) {
17895
+ return "Connect(" + name + ")";
17896
+ },
17897
+ // if mapStateToProps is falsy, the Connect component doesn't subscribe to store state changes
17898
+ shouldHandleStateChanges: Boolean(mapStateToProps),
17899
+ // passed through to selectorFactory
17900
+ initMapStateToProps: initMapStateToProps,
17901
+ initMapDispatchToProps: initMapDispatchToProps,
17902
+ initMergeProps: initMergeProps,
17903
+ pure: pure,
17904
+ areStatesEqual: areStatesEqual,
17905
+ areOwnPropsEqual: areOwnPropsEqual,
17906
+ areStatePropsEqual: areStatePropsEqual,
17907
+ areMergedPropsEqual: areMergedPropsEqual
17908
+ }, extraOptions));
17909
+ };
17910
  }
17911
+ /* harmony default export */ var connect = (/*#__PURE__*/createConnect());
17912
+ ;// CONCATENATED MODULE: ./node_modules/react-redux/es/hooks/useReduxContext.js
 
 
 
17913
 
17914
 
17915
+ /**
17916
+ * A hook to access the value of the `ReactReduxContext`. This is a low-level
17917
+ * hook that you should usually not need to call directly.
17918
+ *
17919
+ * @returns {any} the value of the `ReactReduxContext`
17920
+ *
17921
+ * @example
17922
+ *
17923
+ * import React from 'react'
17924
+ * import { useReduxContext } from 'react-redux'
17925
+ *
17926
+ * export const CounterComponent = ({ value }) => {
17927
+ * const { store } = useReduxContext()
17928
+ * return <div>{store.getState()}</div>
17929
+ * }
17930
+ */
17931
 
17932
+ function useReduxContext_useReduxContext() {
17933
+ var contextValue = (0,react.useContext)(Context_ReactReduxContext);
17934
 
17935
+ if (false) {}
17936
 
17937
+ return contextValue;
17938
+ }
17939
+ ;// CONCATENATED MODULE: ./node_modules/react-redux/es/hooks/useStore.js
17940
 
17941
 
17942
 
17943
+ /**
17944
+ * Hook factory, which creates a `useStore` hook bound to a given context.
17945
+ *
17946
+ * @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
17947
+ * @returns {Function} A `useStore` hook bound to the specified context.
17948
+ */
17949
 
17950
+ function useStore_createStoreHook(context) {
17951
+ if (context === void 0) {
17952
+ context = ReactReduxContext;
17953
+ }
17954
 
17955
+ var useReduxContext = context === ReactReduxContext ? useDefaultReduxContext : function () {
17956
+ return useContext(context);
17957
+ };
17958
+ return function useStore() {
17959
+ var _useReduxContext = useReduxContext(),
17960
+ store = _useReduxContext.store;
17961
 
17962
+ return store;
17963
+ };
 
 
 
 
 
 
 
 
 
17964
  }
17965
+ /**
17966
+ * A hook to access the redux store.
17967
+ *
17968
+ * @returns {any} the redux store
17969
+ *
17970
+ * @example
17971
+ *
17972
+ * import React from 'react'
17973
+ * import { useStore } from 'react-redux'
17974
+ *
17975
+ * export const ExampleComponent = () => {
17976
+ * const store = useStore()
17977
+ * return <div>{store.getState()}</div>
17978
+ * }
17979
+ */
17980
 
17981
+ var useStore = /*#__PURE__*/(/* unused pure expression or super */ null && (useStore_createStoreHook()));
17982
+ ;// CONCATENATED MODULE: ./node_modules/react-redux/es/hooks/useDispatch.js
 
 
 
 
 
 
 
 
 
 
 
 
 
17983
 
17984
 
17985
+ /**
17986
+ * Hook factory, which creates a `useDispatch` hook bound to a given context.
17987
+ *
17988
+ * @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
17989
+ * @returns {Function} A `useDispatch` hook bound to the specified context.
17990
+ */
17991
 
17992
+ function createDispatchHook(context) {
17993
+ if (context === void 0) {
17994
+ context = ReactReduxContext;
17995
+ }
17996
 
17997
+ var useStore = context === ReactReduxContext ? useDefaultStore : createStoreHook(context);
17998
+ return function useDispatch() {
17999
+ var store = useStore();
18000
+ return store.dispatch;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18001
  };
18002
  }
18003
+ /**
18004
+ * A hook to access the redux `dispatch` function.
18005
+ *
18006
+ * @returns {any|function} redux store's `dispatch` function
18007
+ *
18008
+ * @example
18009
+ *
18010
+ * import React, { useCallback } from 'react'
18011
+ * import { useDispatch } from 'react-redux'
18012
+ *
18013
+ * export const CounterComponent = ({ value }) => {
18014
+ * const dispatch = useDispatch()
18015
+ * const increaseCounter = useCallback(() => dispatch({ type: 'increase-counter' }), [])
18016
+ * return (
18017
+ * <div>
18018
+ * <span>{value}</span>
18019
+ * <button onClick={increaseCounter}>Increase counter</button>
18020
+ * </div>
18021
+ * )
18022
+ * }
18023
+ */
18024
+
18025
+ var useDispatch = /*#__PURE__*/(/* unused pure expression or super */ null && (createDispatchHook()));
18026
+ ;// CONCATENATED MODULE: ./node_modules/react-redux/es/hooks/useSelector.js
18027
+
18028
 
 
 
 
 
 
 
 
 
 
 
 
18029
 
18030
 
18031
 
18032
 
18033
+ var refEquality = function refEquality(a, b) {
18034
+ return a === b;
18035
+ };
18036
 
18037
+ function useSelectorWithStoreAndSubscription(selector, equalityFn, store, contextSub) {
18038
+ var _useReducer = (0,react.useReducer)(function (s) {
18039
+ return s + 1;
18040
+ }, 0),
18041
+ forceRender = _useReducer[1];
18042
 
18043
+ var subscription = (0,react.useMemo)(function () {
18044
+ return new Subscription(store, contextSub);
18045
+ }, [store, contextSub]);
18046
+ var latestSubscriptionCallbackError = (0,react.useRef)();
18047
+ var latestSelector = (0,react.useRef)();
18048
+ var latestStoreState = (0,react.useRef)();
18049
+ var latestSelectedState = (0,react.useRef)();
18050
+ var storeState = store.getState();
18051
+ var selectedState;
18052
 
18053
+ try {
18054
+ if (selector !== latestSelector.current || storeState !== latestStoreState.current || latestSubscriptionCallbackError.current) {
18055
+ var newSelectedState = selector(storeState); // ensure latest selected state is reused so that a custom equality function can result in identical references
18056
 
18057
+ if (latestSelectedState.current === undefined || !equalityFn(newSelectedState, latestSelectedState.current)) {
18058
+ selectedState = newSelectedState;
18059
+ } else {
18060
+ selectedState = latestSelectedState.current;
18061
+ }
18062
+ } else {
18063
+ selectedState = latestSelectedState.current;
18064
+ }
18065
+ } catch (err) {
18066
+ if (latestSubscriptionCallbackError.current) {
18067
+ err.message += "\nThe error may be correlated with this previous error:\n" + latestSubscriptionCallbackError.current.stack + "\n\n";
18068
+ }
18069
 
18070
+ throw err;
 
 
18071
  }
18072
 
18073
+ useIsomorphicLayoutEffect(function () {
18074
+ latestSelector.current = selector;
18075
+ latestStoreState.current = storeState;
18076
+ latestSelectedState.current = selectedState;
18077
+ latestSubscriptionCallbackError.current = undefined;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18078
  });
18079
+ useIsomorphicLayoutEffect(function () {
18080
+ function checkForUpdates() {
18081
+ try {
18082
+ var _newSelectedState = latestSelector.current(store.getState());
 
 
 
 
 
 
 
18083
 
18084
+ if (equalityFn(_newSelectedState, latestSelectedState.current)) {
18085
+ return;
18086
+ }
 
 
 
 
 
18087
 
18088
+ latestSelectedState.current = _newSelectedState;
18089
+ } catch (err) {
18090
+ // we ignore all errors here, since when the component
18091
+ // is re-rendered, the selectors are called again, and
18092
+ // will throw again, if neither props nor store state
18093
+ // changed
18094
+ latestSubscriptionCallbackError.current = err;
18095
+ }
18096
 
18097
+ forceRender();
18098
+ }
18099
 
18100
+ subscription.onStateChange = checkForUpdates;
18101
+ subscription.trySubscribe();
18102
+ checkForUpdates();
18103
+ return function () {
18104
+ return subscription.tryUnsubscribe();
18105
+ };
18106
+ }, [store, subscription]);
18107
+ return selectedState;
18108
+ }
18109
+ /**
18110
+ * Hook factory, which creates a `useSelector` hook bound to a given context.
18111
+ *
18112
+ * @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
18113
+ * @returns {Function} A `useSelector` hook bound to the specified context.
18114
+ */
18115
 
18116
 
18117
+ function createSelectorHook(context) {
18118
+ if (context === void 0) {
18119
+ context = Context_ReactReduxContext;
18120
  }
18121
 
18122
+ var useReduxContext = context === Context_ReactReduxContext ? useReduxContext_useReduxContext : function () {
18123
+ return (0,react.useContext)(context);
18124
+ };
18125
+ return function useSelector(selector, equalityFn) {
18126
+ if (equalityFn === void 0) {
18127
+ equalityFn = refEquality;
18128
+ }
 
 
 
 
 
 
 
 
 
 
 
18129
 
18130
  if (false) {}
 
18131
 
18132
+ var _useReduxContext = useReduxContext(),
18133
+ store = _useReduxContext.store,
18134
+ contextSub = _useReduxContext.subscription;
18135
 
18136
+ var selectedState = useSelectorWithStoreAndSubscription(selector, equalityFn, store, contextSub);
18137
+ (0,react.useDebugValue)(selectedState);
18138
+ return selectedState;
18139
+ };
 
 
 
 
 
 
 
 
18140
  }
18141
+ /**
18142
+ * A hook to access the redux store's state. This hook takes a selector function
18143
+ * as an argument. The selector is called with the store state.
18144
+ *
18145
+ * This hook takes an optional equality comparison function as the second parameter
18146
+ * that allows you to customize the way the selected state is compared to determine
18147
+ * whether the component needs to be re-rendered.
18148
+ *
18149
+ * @param {Function} selector the selector function
18150
+ * @param {Function=} equalityFn the function that will be used to determine equality
18151
+ *
18152
+ * @returns {any} the selected state
18153
+ *
18154
+ * @example
18155
+ *
18156
+ * import React from 'react'
18157
+ * import { useSelector } from 'react-redux'
18158
+ *
18159
+ * export const CounterComponent = () => {
18160
+ * const counter = useSelector(state => state.counter)
18161
+ * return <div>{counter}</div>
18162
+ * }
18163
+ */
18164
 
18165
+ var useSelector = /*#__PURE__*/createSelectorHook();
18166
+ ;// CONCATENATED MODULE: ./node_modules/react-redux/es/utils/reactBatchedUpdates.js
18167
+ /* eslint-disable import/no-unresolved */
18168
 
18169
+ ;// CONCATENATED MODULE: ./node_modules/react-redux/es/index.js
18170
 
18171
 
18172
 
 
18173
 
 
 
 
 
18174
 
 
 
 
18175
 
 
 
 
 
18176
 
 
 
 
18177
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18178
 
 
 
18179
 
18180
+ setBatch(react_dom.unstable_batchedUpdates);
18181
 
18182
+ ;// CONCATENATED MODULE: ./src/js/dashboard/Components/Bar/PublishButton/PublishButton.js
18183
+ function PublishButton_slicedToArray(arr, i) { return PublishButton_arrayWithHoles(arr) || PublishButton_iterableToArrayLimit(arr, i) || PublishButton_unsupportedIterableToArray(arr, i) || PublishButton_nonIterableRest(); }
 
 
 
 
 
 
 
 
 
18184
 
18185
+ function PublishButton_nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
 
 
18186
 
18187
+ function PublishButton_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return PublishButton_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return PublishButton_arrayLikeToArray(o, minLen); }
 
18188
 
18189
+ function PublishButton_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
 
 
18190
 
18191
+ function PublishButton_iterableToArrayLimit(arr, i) { var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]); if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
 
 
18192
 
18193
+ function PublishButton_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
 
 
 
 
 
 
18194
 
 
 
18195
 
 
 
 
18196
 
 
 
 
18197
 
 
 
 
 
 
 
18198
 
 
 
 
 
 
18199
 
 
 
18200
 
18201
+ function PublishButton(_ref) {
18202
+ var hasChanges = _ref.hasChanges;
 
18203
 
18204
+ var _useState = (0,react.useState)(false),
18205
+ _useState2 = PublishButton_slicedToArray(_useState, 2),
18206
+ isPublishing = _useState2[0],
18207
+ setIsPublishing = _useState2[1];
 
 
18208
 
18209
+ var _useState3 = (0,react.useState)(false),
18210
+ _useState4 = PublishButton_slicedToArray(_useState3, 2),
18211
+ isPublished = _useState4[0],
18212
+ setIsPublished = _useState4[1];
18213
 
18214
+ function text() {
18215
+ if (isPublishing) {
18216
+ return translate_translate("common.publishing");
18217
+ } else if (isPublished) {
18218
+ return translate_translate("common.published");
18219
+ } else {
18220
+ return translate_translate("common.publish");
18221
+ }
18222
  }
18223
+ /**
18224
+ * Publish buttons
18225
+ */
 
 
 
 
 
 
 
 
 
 
 
 
 
18226
 
18227
 
18228
+ function publish() {
18229
+ setIsPublishing(true);
18230
+ apiRequest("/publish", {
18231
+ method: "POST",
18232
+ data: {
18233
+ nonce: buttonizer_admin.nonce
18234
+ }
18235
+ }).then(function (_ref2) {
18236
+ var status = _ref2.status,
18237
+ message = _ref2.message;
18238
+ // Done publishing
18239
+ setIsPublishing(false); // Error?
18240
 
18241
+ if (status === "error") {
18242
+ app.loader.hide();
18243
+ app.error({
18244
+ message: message
18245
+ });
18246
+ return;
18247
+ }
18248
 
18249
+ app.setHasChanges(false); // Published!
18250
 
18251
+ setIsPublished(true); // Hide published message
18252
 
18253
+ setTimeout(function () {
18254
+ setIsPublished(false);
18255
+ }, 3000);
18256
+ })["catch"](function (_ref3) {
18257
+ var code = _ref3.code;
18258
+ setIsPublishing(false); // Lost internet connection
18259
 
18260
+ if (code === 0) {
18261
+ // app.showDialog(
18262
+ // ConfirmDialog.create({
18263
+ // title: "Lost internet",
18264
+ // buttons: [
18265
+ // {
18266
+ // label: window.Buttonizer.translate("modal.close"),
18267
+ // value: "close",
18268
+ // },
18269
+ // ],
18270
+ // children: (
18271
+ // <>
18272
+ // <p>
18273
+ // You've lost your internet connection. Please try again when
18274
+ // you have your internet back!
18275
+ // </p>
18276
+ // </>
18277
+ // ),
18278
+ // })
18279
+ // );
18280
+ return;
18281
+ } // app.showDialog(
18282
+ // ConfirmDialog.create({
18283
+ // title: "Something went wrong",
18284
+ // buttons: [
18285
+ // {
18286
+ // label: window.Buttonizer.translate("modal.close"),
18287
+ // value: "close",
18288
+ // },
18289
+ // ],
18290
+ // children: (
18291
+ // <>
18292
+ // <p>Seems like something went wrong.</p>
18293
+ // </>
18294
+ // ),
18295
+ // })
18296
+ // );
18297
+
18298
+ });
18299
+ }
18300
+
18301
+ return /*#__PURE__*/react.createElement(esm_Button_Button, {
18302
+ onClick: function onClick() {
18303
+ return publish();
18304
+ },
18305
+ disabled: isPublishing || hasChanges === false,
18306
+ variant: "contained",
18307
+ color: "primary",
18308
+ "data-testid": "publish-button",
18309
+ className: "MuiButton-Publish"
18310
+ }, text());
18311
+ }
18312
+
18313
+ /* harmony default export */ var PublishButton_PublishButton = (connect(function (state) {
18314
+ return {
18315
+ hasChanges: state.misc.hasChanges
18316
+ };
18317
+ })(PublishButton));
18318
+ ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js
18319
+ function getBoundingClientRect(element) {
18320
+ var rect = element.getBoundingClientRect();
18321
+ return {
18322
+ width: rect.width,
18323
+ height: rect.height,
18324
+ top: rect.top,
18325
+ right: rect.right,
18326
+ bottom: rect.bottom,
18327
+ left: rect.left,
18328
+ x: rect.left,
18329
+ y: rect.top
18330
  };
18331
+ }
18332
+ ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getWindow.js
18333
+ function getWindow(node) {
18334
+ if (node == null) {
18335
+ return window;
18336
+ }
18337
 
18338
+ if (node.toString() !== '[object Window]') {
18339
+ var ownerDocument = node.ownerDocument;
18340
+ return ownerDocument ? ownerDocument.defaultView || window : window;
18341
  }
18342
 
18343
+ return node;
18344
+ }
18345
+ ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js
 
 
 
 
 
 
 
 
18346
 
18347
+ function getWindowScroll(node) {
18348
+ var win = getWindow(node);
18349
+ var scrollLeft = win.pageXOffset;
18350
+ var scrollTop = win.pageYOffset;
18351
+ return {
18352
+ scrollLeft: scrollLeft,
18353
+ scrollTop: scrollTop
18354
+ };
18355
+ }
18356
+ ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js
 
 
18357
 
 
 
 
 
 
 
 
 
18358
 
18359
+ function instanceOf_isElement(node) {
18360
+ var OwnElement = getWindow(node).Element;
18361
+ return node instanceof OwnElement || node instanceof Element;
18362
+ }
 
18363
 
18364
+ function isHTMLElement(node) {
18365
+ var OwnElement = getWindow(node).HTMLElement;
18366
+ return node instanceof OwnElement || node instanceof HTMLElement;
18367
+ }
18368
 
18369
+ function isShadowRoot(node) {
18370
+ // IE 11 has no ShadowRoot
18371
+ if (typeof ShadowRoot === 'undefined') {
18372
+ return false;
18373
+ }
18374
 
18375
+ var OwnElement = getWindow(node).ShadowRoot;
18376
+ return node instanceof OwnElement || node instanceof ShadowRoot;
18377
+ }
18378
 
 
18379
 
18380
+ ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js
18381
+ function getHTMLElementScroll(element) {
18382
+ return {
18383
+ scrollLeft: element.scrollLeft,
18384
+ scrollTop: element.scrollTop
18385
+ };
18386
+ }
18387
+ ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js
18388
 
 
18389
 
 
 
 
 
18390
 
 
 
18391
 
18392
+ function getNodeScroll(node) {
18393
+ if (node === getWindow(node) || !isHTMLElement(node)) {
18394
+ return getWindowScroll(node);
18395
+ } else {
18396
+ return getHTMLElementScroll(node);
18397
+ }
18398
+ }
18399
+ ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js
18400
+ function getNodeName(element) {
18401
+ return element ? (element.nodeName || '').toLowerCase() : null;
18402
+ }
18403
+ ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js
18404
 
18405
+ function getDocumentElement(element) {
18406
+ // $FlowFixMe[incompatible-return]: assume body is always available
18407
+ return ((instanceOf_isElement(element) ? element.ownerDocument : // $FlowFixMe[prop-missing]
18408
+ element.document) || window.document).documentElement;
18409
+ }
18410
+ ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js
 
 
18411
 
18412
 
18413
 
18414
+ function getWindowScrollBarX(element) {
18415
+ // If <html> has a CSS width greater than the viewport, then this will be
18416
+ // incorrect for RTL.
18417
+ // Popper 1 is broken in this case and never had a bug report so let's assume
18418
+ // it's not an issue. I don't think anyone ever specifies width on <html>
18419
+ // anyway.
18420
+ // Browsers where the left scrollbar doesn't cause an issue report `0` for
18421
+ // this (e.g. Edge 2019, IE11, Safari)
18422
+ return getBoundingClientRect(getDocumentElement(element)).left + getWindowScroll(element).scrollLeft;
18423
+ }
18424
+ ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js
18425
 
18426
+ function getComputedStyle_getComputedStyle(element) {
18427
+ return getWindow(element).getComputedStyle(element);
18428
+ }
18429
+ ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js
18430
 
18431
+ function isScrollParent(element) {
18432
+ // Firefox wants us to check `-x` and `-y` variations as well
18433
+ var _getComputedStyle = getComputedStyle_getComputedStyle(element),
18434
+ overflow = _getComputedStyle.overflow,
18435
+ overflowX = _getComputedStyle.overflowX,
18436
+ overflowY = _getComputedStyle.overflowY;
18437
 
18438
+ return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);
18439
+ }
18440
+ ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js
18441
 
18442
 
18443
 
 
18444
 
 
 
 
 
 
 
18445
 
 
 
18446
 
18447
+ // Returns the composite rect of an element relative to its offsetParent.
18448
+ // Composite means it takes into account transforms as well as layout.
 
 
 
 
 
 
 
18449
 
18450
+ function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {
18451
+ if (isFixed === void 0) {
18452
+ isFixed = false;
18453
  }
18454
 
18455
+ var documentElement = getDocumentElement(offsetParent);
18456
+ var rect = getBoundingClientRect(elementOrVirtualElement);
18457
+ var isOffsetParentAnElement = isHTMLElement(offsetParent);
18458
+ var scroll = {
18459
+ scrollLeft: 0,
18460
+ scrollTop: 0
18461
+ };
18462
+ var offsets = {
18463
+ x: 0,
18464
+ y: 0
18465
+ };
18466
 
18467
+ if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
18468
+ if (getNodeName(offsetParent) !== 'body' || // https://github.com/popperjs/popper-core/issues/1078
18469
+ isScrollParent(documentElement)) {
18470
+ scroll = getNodeScroll(offsetParent);
18471
+ }
18472
 
18473
+ if (isHTMLElement(offsetParent)) {
18474
+ offsets = getBoundingClientRect(offsetParent);
18475
+ offsets.x += offsetParent.clientLeft;
18476
+ offsets.y += offsetParent.clientTop;
18477
+ } else if (documentElement) {
18478
+ offsets.x = getWindowScrollBarX(documentElement);
18479
+ }
18480
+ }
18481
 
18482
+ return {
18483
+ x: rect.left + scroll.scrollLeft - offsets.x,
18484
+ y: rect.top + scroll.scrollTop - offsets.y,
18485
+ width: rect.width,
18486
+ height: rect.height
18487
+ };
18488
+ }
18489
+ ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js
18490
+ // Returns the layout rect of an element relative to its offsetParent. Layout
18491
+ // means it doesn't take into account transforms.
18492
 
18493
+ function getLayoutRect(element) {
18494
+ var clientRect = getBoundingClientRect(element); // Use the clientRect sizes if it's not been transformed.
18495
+ // Fixes https://github.com/popperjs/popper-core/issues/1223
18496
 
18497
+ var width = element.offsetWidth;
18498
+ var height = element.offsetHeight;
18499
 
18500
+ if (Math.abs(clientRect.width - width) <= 1) {
18501
+ width = clientRect.width;
18502
+ }
18503
 
18504
+ if (Math.abs(clientRect.height - height) <= 1) {
18505
+ height = clientRect.height;
 
18506
  }
18507
 
18508
+ return {
18509
+ x: element.offsetLeft,
18510
+ y: element.offsetTop,
18511
+ width: width,
18512
+ height: height
18513
+ };
18514
+ }
18515
+ ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getParentNode.js
18516
 
 
 
18517
 
18518
+
18519
+ function getParentNode(element) {
18520
+ if (getNodeName(element) === 'html') {
18521
+ return element;
18522
  }
18523
 
18524
+ return (// this is a quicker (but less type safe) way to save quite some bytes from the bundle
18525
+ // $FlowFixMe[incompatible-return]
18526
+ // $FlowFixMe[prop-missing]
18527
+ element.assignedSlot || // step into the shadow DOM of the parent of a slotted node
18528
+ element.parentNode || ( // DOM Element detected
18529
+ isShadowRoot(element) ? element.host : null) || // ShadowRoot detected
18530
+ // $FlowFixMe[incompatible-call]: HTMLElement is a Node
18531
+ getDocumentElement(element) // fallback
18532
 
18533
+ );
18534
+ }
18535
+ ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js
18536
 
 
 
 
 
 
 
 
 
 
 
18537
 
18538
 
18539
 
18540
+ function getScrollParent(node) {
18541
+ if (['html', 'body', '#document'].indexOf(getNodeName(node)) >= 0) {
18542
+ // $FlowFixMe[incompatible-return]: assume body is always available
18543
+ return node.ownerDocument.body;
 
 
18544
  }
18545
 
18546
+ if (isHTMLElement(node) && isScrollParent(node)) {
18547
+ return node;
18548
+ }
 
 
 
 
18549
 
18550
+ return getScrollParent(getParentNode(node));
 
 
 
18551
  }
18552
+ ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js
18553
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18554
 
18555
 
 
 
 
 
 
 
 
 
18556
 
18557
+ /*
18558
+ given a DOM element, return the list of all scroll parents, up the list of ancesors
18559
+ until we get to the top window object. This list is what we attach scroll listeners
18560
+ to, because if any of these parent elements scroll, we'll need to re-calculate the
18561
+ reference element's position.
18562
+ */
18563
 
18564
+ function listScrollParents(element, list) {
18565
+ var _element$ownerDocumen;
18566
 
18567
+ if (list === void 0) {
18568
+ list = [];
18569
+ }
18570
 
18571
+ var scrollParent = getScrollParent(element);
18572
+ var isBody = scrollParent === ((_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body);
18573
+ var win = getWindow(scrollParent);
18574
+ var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;
18575
+ var updatedList = list.concat(target);
18576
+ return isBody ? updatedList : // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
18577
+ updatedList.concat(listScrollParents(getParentNode(target)));
18578
+ }
18579
+ ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/isTableElement.js
18580
 
18581
+ function isTableElement(element) {
18582
+ return ['table', 'td', 'th'].indexOf(getNodeName(element)) >= 0;
18583
+ }
18584
+ ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js
18585
 
18586
 
18587
 
18588
 
18589
 
 
 
 
 
18590
 
 
18591
 
18592
+ function getTrueOffsetParent(element) {
18593
+ if (!isHTMLElement(element) || // https://github.com/popperjs/popper-core/issues/837
18594
+ getComputedStyle_getComputedStyle(element).position === 'fixed') {
18595
+ return null;
18596
+ }
18597
 
18598
+ return element.offsetParent;
18599
+ } // `.offsetParent` reports `null` for fixed elements, while absolute elements
18600
+ // return the containing block
18601
 
 
 
 
 
 
 
18602
 
18603
+ function getContainingBlock(element) {
18604
+ var isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') !== -1;
18605
+ var isIE = navigator.userAgent.indexOf('Trident') !== -1;
18606
 
18607
+ if (isIE && isHTMLElement(element)) {
18608
+ // In IE 9, 10 and 11 fixed elements containing block is always established by the viewport
18609
+ var elementCss = getComputedStyle_getComputedStyle(element);
 
 
 
 
 
 
 
18610
 
18611
+ if (elementCss.position === 'fixed') {
18612
+ return null;
18613
+ }
 
 
 
 
18614
  }
18615
 
18616
+ var currentNode = getParentNode(element);
18617
+
18618
+ while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {
18619
+ var css = getComputedStyle_getComputedStyle(currentNode); // This is non-exhaustive but covers the most common CSS properties that
18620
+ // create a containing block.
18621
+ // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
18622
+
18623
+ if (css.transform !== 'none' || css.perspective !== 'none' || css.contain === 'paint' || ['transform', 'perspective'].indexOf(css.willChange) !== -1 || isFirefox && css.willChange === 'filter' || isFirefox && css.filter && css.filter !== 'none') {
18624
+ return currentNode;
18625
+ } else {
18626
+ currentNode = currentNode.parentNode;
18627
+ }
18628
+ }
18629
+
18630
+ return null;
18631
+ } // Gets the closest ancestor positioned element. Handles some edge cases,
18632
+ // such as table ancestors and cross browser bugs.
18633
+
18634
+
18635
+ function getOffsetParent(element) {
18636
+ var window = getWindow(element);
18637
+ var offsetParent = getTrueOffsetParent(element);
18638
+
18639
+ while (offsetParent && isTableElement(offsetParent) && getComputedStyle_getComputedStyle(offsetParent).position === 'static') {
18640
+ offsetParent = getTrueOffsetParent(offsetParent);
18641
+ }
18642
+
18643
+ if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle_getComputedStyle(offsetParent).position === 'static')) {
18644
+ return window;
18645
+ }
18646
+
18647
+ return offsetParent || getContainingBlock(element) || window;
18648
  }
18649
+ ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/enums.js
18650
+ var enums_top = 'top';
18651
+ var bottom = 'bottom';
18652
+ var right = 'right';
18653
+ var left = 'left';
18654
+ var auto = 'auto';
18655
+ var basePlacements = [enums_top, bottom, right, left];
18656
+ var start = 'start';
18657
+ var end = 'end';
18658
+ var clippingParents = 'clippingParents';
18659
+ var viewport = 'viewport';
18660
+ var popper = 'popper';
18661
+ var reference = 'reference';
18662
+ var variationPlacements = /*#__PURE__*/basePlacements.reduce(function (acc, placement) {
18663
+ return acc.concat([placement + "-" + start, placement + "-" + end]);
18664
+ }, []);
18665
+ var enums_placements = /*#__PURE__*/[].concat(basePlacements, [auto]).reduce(function (acc, placement) {
18666
+ return acc.concat([placement, placement + "-" + start, placement + "-" + end]);
18667
+ }, []); // modifiers that need to read the DOM
18668
+
18669
+ var beforeRead = 'beforeRead';
18670
+ var read = 'read';
18671
+ var afterRead = 'afterRead'; // pure-logic modifiers
18672
+
18673
+ var beforeMain = 'beforeMain';
18674
+ var main = 'main';
18675
+ var afterMain = 'afterMain'; // modifier with the purpose to write to the DOM (or write into a framework state)
18676
+
18677
+ var beforeWrite = 'beforeWrite';
18678
+ var write = 'write';
18679
+ var afterWrite = 'afterWrite';
18680
+ var modifierPhases = [beforeRead, read, afterRead, beforeMain, main, afterMain, beforeWrite, write, afterWrite];
18681
+ ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/utils/orderModifiers.js
18682
+ // source: https://stackoverflow.com/questions/49875255
18683
+
18684
+ function order(modifiers) {
18685
+ var map = new Map();
18686
+ var visited = new Set();
18687
+ var result = [];
18688
+ modifiers.forEach(function (modifier) {
18689
+ map.set(modifier.name, modifier);
18690
+ }); // On visiting object, check for its dependencies and visit them recursively
18691
+
18692
+ function sort(modifier) {
18693
+ visited.add(modifier.name);
18694
+ var requires = [].concat(modifier.requires || [], modifier.requiresIfExists || []);
18695
+ requires.forEach(function (dep) {
18696
+ if (!visited.has(dep)) {
18697
+ var depModifier = map.get(dep);
18698
+
18699
+ if (depModifier) {
18700
+ sort(depModifier);
18701
+ }
18702
+ }
18703
+ });
18704
+ result.push(modifier);
18705
+ }
18706
+
18707
+ modifiers.forEach(function (modifier) {
18708
+ if (!visited.has(modifier.name)) {
18709
+ // check for visited object
18710
+ sort(modifier);
18711
+ }
18712
+ });
18713
+ return result;
18714
  }
18715
+
18716
+ function orderModifiers(modifiers) {
18717
+ // order based on dependencies
18718
+ var orderedModifiers = order(modifiers); // order based on phase
18719
+
18720
+ return modifierPhases.reduce(function (acc, phase) {
18721
+ return acc.concat(orderedModifiers.filter(function (modifier) {
18722
+ return modifier.phase === phase;
18723
+ }));
18724
+ }, []);
18725
  }
18726
+ ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/utils/debounce.js
18727
+ function debounce(fn) {
18728
+ var pending;
18729
+ return function () {
18730
+ if (!pending) {
18731
+ pending = new Promise(function (resolve) {
18732
+ Promise.resolve().then(function () {
18733
+ pending = undefined;
18734
+ resolve(fn());
18735
+ });
18736
+ });
18737
+ }
18738
 
18739
+ return pending;
 
 
 
 
 
18740
  };
18741
  }
18742
+ ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/utils/mergeByName.js
18743
+ function mergeByName(modifiers) {
18744
+ var merged = modifiers.reduce(function (merged, current) {
18745
+ var existing = merged[current.name];
18746
+ merged[current.name] = existing ? Object.assign({}, existing, current, {
18747
+ options: Object.assign({}, existing.options, current.options),
18748
+ data: Object.assign({}, existing.data, current.data)
18749
+ }) : current;
18750
+ return merged;
18751
+ }, {}); // IE11 does not support Object.values
18752
+
18753
+ return Object.keys(merged).map(function (key) {
18754
+ return merged[key];
18755
  });
 
 
 
 
 
 
 
18756
  }
18757
+ ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/createPopper.js
18758
+
18759
+
18760
+
18761
+
18762
+
18763
+
18764
+
18765
+
18766
+
18767
+
18768
+
18769
+
18770
+
18771
+
18772
+ var INVALID_ELEMENT_ERROR = 'Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.';
18773
+ var INFINITE_LOOP_ERROR = 'Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.';
18774
+ var DEFAULT_OPTIONS = {
18775
+ placement: 'bottom',
18776
+ modifiers: [],
18777
+ strategy: 'absolute'
18778
+ };
18779
+
18780
+ function areValidElements() {
18781
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
18782
+ args[_key] = arguments[_key];
18783
  }
18784
+
18785
+ return !args.some(function (element) {
18786
+ return !(element && typeof element.getBoundingClientRect === 'function');
 
18787
  });
18788
  }
18789
+
18790
+ function popperGenerator(generatorOptions) {
18791
+ if (generatorOptions === void 0) {
18792
+ generatorOptions = {};
18793
+ }
18794
+
18795
+ var _generatorOptions = generatorOptions,
18796
+ _generatorOptions$def = _generatorOptions.defaultModifiers,
18797
+ defaultModifiers = _generatorOptions$def === void 0 ? [] : _generatorOptions$def,
18798
+ _generatorOptions$def2 = _generatorOptions.defaultOptions,
18799
+ defaultOptions = _generatorOptions$def2 === void 0 ? DEFAULT_OPTIONS : _generatorOptions$def2;
18800
+ return function createPopper(reference, popper, options) {
18801
+ if (options === void 0) {
18802
+ options = defaultOptions;
18803
+ }
18804
+
18805
+ var state = {
18806
+ placement: 'bottom',
18807
+ orderedModifiers: [],
18808
+ options: Object.assign({}, DEFAULT_OPTIONS, defaultOptions),
18809
+ modifiersData: {},
18810
+ elements: {
18811
+ reference: reference,
18812
+ popper: popper
18813
+ },
18814
+ attributes: {},
18815
+ styles: {}
18816
+ };
18817
+ var effectCleanupFns = [];
18818
+ var isDestroyed = false;
18819
+ var instance = {
18820
+ state: state,
18821
+ setOptions: function setOptions(options) {
18822
+ cleanupModifierEffects();
18823
+ state.options = Object.assign({}, defaultOptions, state.options, options);
18824
+ state.scrollParents = {
18825
+ reference: instanceOf_isElement(reference) ? listScrollParents(reference) : reference.contextElement ? listScrollParents(reference.contextElement) : [],
18826
+ popper: listScrollParents(popper)
18827
+ }; // Orders the modifiers based on their dependencies and `phase`
18828
+ // properties
18829
+
18830
+ var orderedModifiers = orderModifiers(mergeByName([].concat(defaultModifiers, state.options.modifiers))); // Strip out disabled modifiers
18831
+
18832
+ state.orderedModifiers = orderedModifiers.filter(function (m) {
18833
+ return m.enabled;
18834
+ }); // Validate the provided modifiers so that the consumer will get warned
18835
+ // if one of the modifiers is invalid for any reason
18836
+
18837
+ if (false) { var _getComputedStyle, marginTop, marginRight, marginBottom, marginLeft, flipModifier, modifiers; }
18838
+
18839
+ runModifierEffects();
18840
+ return instance.update();
18841
+ },
18842
+ // Sync update – it will always be executed, even if not necessary. This
18843
+ // is useful for low frequency updates where sync behavior simplifies the
18844
+ // logic.
18845
+ // For high frequency updates (e.g. `resize` and `scroll` events), always
18846
+ // prefer the async Popper#update method
18847
+ forceUpdate: function forceUpdate() {
18848
+ if (isDestroyed) {
18849
+ return;
18850
+ }
18851
+
18852
+ var _state$elements = state.elements,
18853
+ reference = _state$elements.reference,
18854
+ popper = _state$elements.popper; // Don't proceed if `reference` or `popper` are not valid elements
18855
+ // anymore
18856
+
18857
+ if (!areValidElements(reference, popper)) {
18858
+ if (false) {}
18859
+
18860
+ return;
18861
+ } // Store the reference and popper rects to be read by modifiers
18862
+
18863
+
18864
+ state.rects = {
18865
+ reference: getCompositeRect(reference, getOffsetParent(popper), state.options.strategy === 'fixed'),
18866
+ popper: getLayoutRect(popper)
18867
+ }; // Modifiers have the ability to reset the current update cycle. The
18868
+ // most common use case for this is the `flip` modifier changing the
18869
+ // placement, which then needs to re-run all the modifiers, because the
18870
+ // logic was previously ran for the previous placement and is therefore
18871
+ // stale/incorrect
18872
+
18873
+ state.reset = false;
18874
+ state.placement = state.options.placement; // On each update cycle, the `modifiersData` property for each modifier
18875
+ // is filled with the initial data specified by the modifier. This means
18876
+ // it doesn't persist and is fresh on each update.
18877
+ // To ensure persistent data, use `${name}#persistent`
18878
+
18879
+ state.orderedModifiers.forEach(function (modifier) {
18880
+ return state.modifiersData[modifier.name] = Object.assign({}, modifier.data);
18881
+ });
18882
+ var __debug_loops__ = 0;
18883
+
18884
+ for (var index = 0; index < state.orderedModifiers.length; index++) {
18885
+ if (false) {}
18886
+
18887
+ if (state.reset === true) {
18888
+ state.reset = false;
18889
+ index = -1;
18890
+ continue;
18891
+ }
18892
+
18893
+ var _state$orderedModifie = state.orderedModifiers[index],
18894
+ fn = _state$orderedModifie.fn,
18895
+ _state$orderedModifie2 = _state$orderedModifie.options,
18896
+ _options = _state$orderedModifie2 === void 0 ? {} : _state$orderedModifie2,
18897
+ name = _state$orderedModifie.name;
18898
+
18899
+ if (typeof fn === 'function') {
18900
+ state = fn({
18901
+ state: state,
18902
+ options: _options,
18903
+ name: name,
18904
+ instance: instance
18905
+ }) || state;
18906
+ }
18907
+ }
18908
+ },
18909
+ // Async and optimistically optimized update – it will not be executed if
18910
+ // not necessary (debounced to run at most once-per-tick)
18911
+ update: debounce(function () {
18912
+ return new Promise(function (resolve) {
18913
+ instance.forceUpdate();
18914
+ resolve(state);
18915
+ });
18916
+ }),
18917
+ destroy: function destroy() {
18918
+ cleanupModifierEffects();
18919
+ isDestroyed = true;
18920
+ }
18921
+ };
18922
+
18923
+ if (!areValidElements(reference, popper)) {
18924
+ if (false) {}
18925
+
18926
+ return instance;
18927
+ }
18928
+
18929
+ instance.setOptions(options).then(function (state) {
18930
+ if (!isDestroyed && options.onFirstUpdate) {
18931
+ options.onFirstUpdate(state);
18932
+ }
18933
+ }); // Modifiers have the ability to execute arbitrary code before the first
18934
+ // update cycle runs. They will be executed in the same order as the update
18935
+ // cycle. This is useful when a modifier adds some persistent data that
18936
+ // other modifiers need to use, but the modifier is run after the dependent
18937
+ // one.
18938
+
18939
+ function runModifierEffects() {
18940
+ state.orderedModifiers.forEach(function (_ref3) {
18941
+ var name = _ref3.name,
18942
+ _ref3$options = _ref3.options,
18943
+ options = _ref3$options === void 0 ? {} : _ref3$options,
18944
+ effect = _ref3.effect;
18945
+
18946
+ if (typeof effect === 'function') {
18947
+ var cleanupFn = effect({
18948
+ state: state,
18949
+ name: name,
18950
+ instance: instance,
18951
+ options: options
18952
+ });
18953
+
18954
+ var noopFn = function noopFn() {};
18955
+
18956
+ effectCleanupFns.push(cleanupFn || noopFn);
18957
+ }
18958
+ });
18959
+ }
18960
+
18961
+ function cleanupModifierEffects() {
18962
+ effectCleanupFns.forEach(function (fn) {
18963
+ return fn();
18964
+ });
18965
+ effectCleanupFns = [];
18966
+ }
18967
+
18968
+ return instance;
18969
+ };
18970
+ }
18971
+ var createPopper = /*#__PURE__*/(/* unused pure expression or super */ null && (popperGenerator())); // eslint-disable-next-line import/no-unused-modules
18972
+
18973
+
18974
+ ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/modifiers/eventListeners.js
18975
+ // eslint-disable-next-line import/no-unused-modules
18976
+
18977
+ var passive = {
18978
+ passive: true
18979
+ };
18980
+
18981
+ function effect(_ref) {
18982
+ var state = _ref.state,
18983
+ instance = _ref.instance,
18984
+ options = _ref.options;
18985
+ var _options$scroll = options.scroll,
18986
+ scroll = _options$scroll === void 0 ? true : _options$scroll,
18987
+ _options$resize = options.resize,
18988
+ resize = _options$resize === void 0 ? true : _options$resize;
18989
+ var window = getWindow(state.elements.popper);
18990
+ var scrollParents = [].concat(state.scrollParents.reference, state.scrollParents.popper);
18991
+
18992
+ if (scroll) {
18993
+ scrollParents.forEach(function (scrollParent) {
18994
+ scrollParent.addEventListener('scroll', instance.update, passive);
18995
+ });
18996
+ }
18997
+
18998
+ if (resize) {
18999
+ window.addEventListener('resize', instance.update, passive);
19000
+ }
19001
+
19002
+ return function () {
19003
+ if (scroll) {
19004
+ scrollParents.forEach(function (scrollParent) {
19005
+ scrollParent.removeEventListener('scroll', instance.update, passive);
19006
+ });
19007
+ }
19008
+
19009
+ if (resize) {
19010
+ window.removeEventListener('resize', instance.update, passive);
19011
+ }
19012
+ };
19013
+ } // eslint-disable-next-line import/no-unused-modules
19014
+
19015
+
19016
+ /* harmony default export */ var eventListeners = ({
19017
+ name: 'eventListeners',
19018
+ enabled: true,
19019
+ phase: 'write',
19020
+ fn: function fn() {},
19021
+ effect: effect,
19022
+ data: {}
19023
+ });
19024
+ ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/utils/getBasePlacement.js
19025
+
19026
+ function getBasePlacement(placement) {
19027
  return placement.split('-')[0];
19028
  }
19029
+ ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/utils/getVariation.js
19030
+ function getVariation(placement) {
19031
+ return placement.split('-')[1];
19032
  }
19033
+ ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js
19034
+ function getMainAxisFromPlacement(placement) {
19035
+ return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y';
19036
+ }
19037
+ ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/utils/computeOffsets.js
19038
+
19039
+
19040
+
19041
+
19042
+ function computeOffsets(_ref) {
19043
+ var reference = _ref.reference,
19044
+ element = _ref.element,
19045
+ placement = _ref.placement;
19046
+ var basePlacement = placement ? getBasePlacement(placement) : null;
19047
+ var variation = placement ? getVariation(placement) : null;
19048
+ var commonX = reference.x + reference.width / 2 - element.width / 2;
19049
+ var commonY = reference.y + reference.height / 2 - element.height / 2;
19050
+ var offsets;
19051
+
19052
+ switch (basePlacement) {
19053
+ case enums_top:
19054
+ offsets = {
19055
+ x: commonX,
19056
+ y: reference.y - element.height
19057
+ };
19058
+ break;
19059
+
19060
+ case bottom:
19061
+ offsets = {
19062
+ x: commonX,
19063
+ y: reference.y + reference.height
19064
+ };
19065
+ break;
19066
+
19067
+ case right:
19068
+ offsets = {
19069
+ x: reference.x + reference.width,
19070
+ y: commonY
19071
+ };
19072
+ break;
19073
+
19074
+ case left:
19075
+ offsets = {
19076
+ x: reference.x - element.width,
19077
+ y: commonY
19078
+ };
19079
+ break;
19080
+
19081
+ default:
19082
+ offsets = {
19083
+ x: reference.x,
19084
+ y: reference.y
19085
+ };
19086
+ }
19087
+
19088
+ var mainAxis = basePlacement ? getMainAxisFromPlacement(basePlacement) : null;
19089
+
19090
+ if (mainAxis != null) {
19091
+ var len = mainAxis === 'y' ? 'height' : 'width';
19092
+
19093
+ switch (variation) {
19094
+ case start:
19095
+ offsets[mainAxis] = offsets[mainAxis] - (reference[len] / 2 - element[len] / 2);
19096
+ break;
19097
+
19098
+ case end:
19099
+ offsets[mainAxis] = offsets[mainAxis] + (reference[len] / 2 - element[len] / 2);
19100
+ break;
19101
+
19102
+ default:
19103
  }
19104
+ }
19105
 
19106
+ return offsets;
 
19107
  }
19108
+ ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/modifiers/popperOffsets.js
19109
 
19110
+
19111
+ function popperOffsets(_ref) {
19112
+ var state = _ref.state,
19113
+ name = _ref.name;
19114
+ // Offsets are the actual position the popper needs to have to be
19115
+ // properly positioned near its reference element
19116
+ // This is the most basic placement, and will be adjusted by
19117
+ // the modifiers in the next step
19118
+ state.modifiersData[name] = computeOffsets({
19119
+ reference: state.rects.reference,
19120
+ element: state.rects.popper,
19121
+ strategy: 'absolute',
19122
+ placement: state.placement
19123
  });
19124
+ } // eslint-disable-next-line import/no-unused-modules
19125
+
19126
+
19127
+ /* harmony default export */ var modifiers_popperOffsets = ({
19128
+ name: 'popperOffsets',
19129
+ enabled: true,
19130
+ phase: 'read',
19131
+ fn: popperOffsets,
19132
+ data: {}
19133
+ });
19134
+ ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/utils/math.js
19135
+ var math_max = Math.max;
19136
+ var math_min = Math.min;
19137
+ var round = Math.round;
19138
+ ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/modifiers/computeStyles.js
19139
+
19140
+
19141
+
19142
+
19143
+
19144
+
19145
+ // eslint-disable-next-line import/no-unused-modules
19146
+
19147
+ var unsetSides = {
19148
+ top: 'auto',
19149
+ right: 'auto',
19150
+ bottom: 'auto',
19151
+ left: 'auto'
19152
+ }; // Round the offsets to the nearest suitable subpixel based on the DPR.
19153
+ // Zooming can change the DPR, but it seems to report a value that will
19154
+ // cleanly divide the values into the appropriate subpixels.
19155
+
19156
+ function roundOffsetsByDPR(_ref) {
19157
+ var x = _ref.x,
19158
+ y = _ref.y;
19159
+ var win = window;
19160
+ var dpr = win.devicePixelRatio || 1;
19161
+ return {
19162
+ x: round(round(x * dpr) / dpr) || 0,
19163
+ y: round(round(y * dpr) / dpr) || 0
19164
+ };
19165
  }
19166
+
19167
+ function mapToStyles(_ref2) {
19168
+ var _Object$assign2;
19169
+
19170
+ var popper = _ref2.popper,
19171
+ popperRect = _ref2.popperRect,
19172
+ placement = _ref2.placement,
19173
+ offsets = _ref2.offsets,
19174
+ position = _ref2.position,
19175
+ gpuAcceleration = _ref2.gpuAcceleration,
19176
+ adaptive = _ref2.adaptive,
19177
+ roundOffsets = _ref2.roundOffsets;
19178
+
19179
+ var _ref3 = roundOffsets === true ? roundOffsetsByDPR(offsets) : typeof roundOffsets === 'function' ? roundOffsets(offsets) : offsets,
19180
+ _ref3$x = _ref3.x,
19181
+ x = _ref3$x === void 0 ? 0 : _ref3$x,
19182
+ _ref3$y = _ref3.y,
19183
+ y = _ref3$y === void 0 ? 0 : _ref3$y;
19184
+
19185
+ var hasX = offsets.hasOwnProperty('x');
19186
+ var hasY = offsets.hasOwnProperty('y');
19187
+ var sideX = left;
19188
+ var sideY = enums_top;
19189
+ var win = window;
19190
+
19191
+ if (adaptive) {
19192
+ var offsetParent = getOffsetParent(popper);
19193
+ var heightProp = 'clientHeight';
19194
+ var widthProp = 'clientWidth';
19195
+
19196
+ if (offsetParent === getWindow(popper)) {
19197
+ offsetParent = getDocumentElement(popper);
19198
+
19199
+ if (getComputedStyle_getComputedStyle(offsetParent).position !== 'static') {
19200
+ heightProp = 'scrollHeight';
19201
+ widthProp = 'scrollWidth';
19202
+ }
19203
+ } // $FlowFixMe[incompatible-cast]: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
19204
+
19205
+
19206
+ offsetParent = offsetParent;
19207
+
19208
+ if (placement === enums_top) {
19209
+ sideY = bottom; // $FlowFixMe[prop-missing]
19210
+
19211
+ y -= offsetParent[heightProp] - popperRect.height;
19212
+ y *= gpuAcceleration ? 1 : -1;
19213
+ }
19214
+
19215
+ if (placement === left) {
19216
+ sideX = right; // $FlowFixMe[prop-missing]
19217
+
19218
+ x -= offsetParent[widthProp] - popperRect.width;
19219
+ x *= gpuAcceleration ? 1 : -1;
19220
+ }
19221
+ }
19222
+
19223
+ var commonStyles = Object.assign({
19224
+ position: position
19225
+ }, adaptive && unsetSides);
19226
+
19227
+ if (gpuAcceleration) {
19228
+ var _Object$assign;
19229
+
19230
+ return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? '0' : '', _Object$assign[sideX] = hasX ? '0' : '', _Object$assign.transform = (win.devicePixelRatio || 1) < 2 ? "translate(" + x + "px, " + y + "px)" : "translate3d(" + x + "px, " + y + "px, 0)", _Object$assign));
19231
+ }
19232
+
19233
+ return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : '', _Object$assign2[sideX] = hasX ? x + "px" : '', _Object$assign2.transform = '', _Object$assign2));
19234
  }
19235
+
19236
+ function computeStyles(_ref4) {
19237
+ var state = _ref4.state,
19238
+ options = _ref4.options;
19239
+ var _options$gpuAccelerat = options.gpuAcceleration,
19240
+ gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat,
19241
+ _options$adaptive = options.adaptive,
19242
+ adaptive = _options$adaptive === void 0 ? true : _options$adaptive,
19243
+ _options$roundOffsets = options.roundOffsets,
19244
+ roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;
19245
+
19246
+ if (false) { var transitionProperty; }
19247
+
19248
+ var commonStyles = {
19249
+ placement: getBasePlacement(state.placement),
19250
+ popper: state.elements.popper,
19251
+ popperRect: state.rects.popper,
19252
+ gpuAcceleration: gpuAcceleration
19253
+ };
19254
+
19255
+ if (state.modifiersData.popperOffsets != null) {
19256
+ state.styles.popper = Object.assign({}, state.styles.popper, mapToStyles(Object.assign({}, commonStyles, {
19257
+ offsets: state.modifiersData.popperOffsets,
19258
+ position: state.options.strategy,
19259
+ adaptive: adaptive,
19260
+ roundOffsets: roundOffsets
19261
+ })));
19262
  }
19263
 
19264
+ if (state.modifiersData.arrow != null) {
19265
+ state.styles.arrow = Object.assign({}, state.styles.arrow, mapToStyles(Object.assign({}, commonStyles, {
19266
+ offsets: state.modifiersData.arrow,
19267
+ position: 'absolute',
19268
+ adaptive: false,
19269
+ roundOffsets: roundOffsets
19270
+ })));
19271
  }
19272
 
19273
+ state.attributes.popper = Object.assign({}, state.attributes.popper, {
19274
+ 'data-popper-placement': state.placement
19275
+ });
19276
+ } // eslint-disable-next-line import/no-unused-modules
19277
+
19278
+
19279
+ /* harmony default export */ var modifiers_computeStyles = ({
19280
+ name: 'computeStyles',
19281
+ enabled: true,
19282
+ phase: 'beforeWrite',
19283
+ fn: computeStyles,
19284
+ data: {}
19285
+ });
19286
+ ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/modifiers/applyStyles.js
19287
+
19288
+ // This modifier takes the styles prepared by the `computeStyles` modifier
19289
+ // and applies them to the HTMLElements such as popper and arrow
19290
+
19291
+ function applyStyles(_ref) {
19292
+ var state = _ref.state;
19293
+ Object.keys(state.elements).forEach(function (name) {
19294
+ var style = state.styles[name] || {};
19295
+ var attributes = state.attributes[name] || {};
19296
+ var element = state.elements[name]; // arrow is optional + virtual elements
19297
+
19298
+ if (!isHTMLElement(element) || !getNodeName(element)) {
19299
+ return;
19300
+ } // Flow doesn't support to extend this property, but it's the most
19301
+ // effective way to apply styles to an HTMLElement
19302
+ // $FlowFixMe[cannot-write]
19303
+
19304
+
19305
+ Object.assign(element.style, style);
19306
+ Object.keys(attributes).forEach(function (name) {
19307
+ var value = attributes[name];
19308
+
19309
+ if (value === false) {
19310
+ element.removeAttribute(name);
19311
+ } else {
19312
+ element.setAttribute(name, value === true ? '' : value);
19313
+ }
19314
+ });
19315
+ });
19316
+ }
19317
+
19318
+ function applyStyles_effect(_ref2) {
19319
+ var state = _ref2.state;
19320
+ var initialStyles = {
19321
+ popper: {
19322
+ position: state.options.strategy,
19323
+ left: '0',
19324
+ top: '0',
19325
+ margin: '0'
19326
+ },
19327
+ arrow: {
19328
+ position: 'absolute'
19329
+ },
19330
+ reference: {}
19331
+ };
19332
+ Object.assign(state.elements.popper.style, initialStyles.popper);
19333
+ state.styles = initialStyles;
19334
+
19335
+ if (state.elements.arrow) {
19336
+ Object.assign(state.elements.arrow.style, initialStyles.arrow);
19337
  }
19338
 
19339
+ return function () {
19340
+ Object.keys(state.elements).forEach(function (name) {
19341
+ var element = state.elements[name];
19342
+ var attributes = state.attributes[name] || {};
19343
+ var styleProperties = Object.keys(state.styles.hasOwnProperty(name) ? state.styles[name] : initialStyles[name]); // Set all values to an empty string to unset them
19344
+
19345
+ var style = styleProperties.reduce(function (style, property) {
19346
+ style[property] = '';
19347
+ return style;
19348
+ }, {}); // arrow is optional + virtual elements
19349
+
19350
+ if (!isHTMLElement(element) || !getNodeName(element)) {
19351
+ return;
19352
+ }
19353
+
19354
+ Object.assign(element.style, style);
19355
+ Object.keys(attributes).forEach(function (attribute) {
19356
+ element.removeAttribute(attribute);
19357
+ });
19358
+ });
19359
+ };
19360
+ } // eslint-disable-next-line import/no-unused-modules
19361
+
19362
+
19363
+ /* harmony default export */ var modifiers_applyStyles = ({
19364
+ name: 'applyStyles',
19365
+ enabled: true,
19366
+ phase: 'write',
19367
+ fn: applyStyles,
19368
+ effect: applyStyles_effect,
19369
+ requires: ['computeStyles']
19370
+ });
19371
+ ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/modifiers/offset.js
19372
+
19373
+
19374
+ function distanceAndSkiddingToXY(placement, rects, offset) {
19375
+ var basePlacement = getBasePlacement(placement);
19376
+ var invertDistance = [left, enums_top].indexOf(basePlacement) >= 0 ? -1 : 1;
19377
+
19378
+ var _ref = typeof offset === 'function' ? offset(Object.assign({}, rects, {
19379
+ placement: placement
19380
+ })) : offset,
19381
+ skidding = _ref[0],
19382
+ distance = _ref[1];
19383
+
19384
+ skidding = skidding || 0;
19385
+ distance = (distance || 0) * invertDistance;
19386
+ return [left, right].indexOf(basePlacement) >= 0 ? {
19387
+ x: distance,
19388
+ y: skidding
19389
+ } : {
19390
+ x: skidding,
19391
+ y: distance
19392
+ };
19393
  }
19394
+
19395
+ function offset(_ref2) {
19396
+ var state = _ref2.state,
19397
+ options = _ref2.options,
19398
+ name = _ref2.name;
19399
+ var _options$offset = options.offset,
19400
+ offset = _options$offset === void 0 ? [0, 0] : _options$offset;
19401
+ var data = enums_placements.reduce(function (acc, placement) {
19402
+ acc[placement] = distanceAndSkiddingToXY(placement, state.rects, offset);
19403
+ return acc;
19404
+ }, {});
19405
+ var _data$state$placement = data[state.placement],
19406
+ x = _data$state$placement.x,
19407
+ y = _data$state$placement.y;
19408
+
19409
+ if (state.modifiersData.popperOffsets != null) {
19410
+ state.modifiersData.popperOffsets.x += x;
19411
+ state.modifiersData.popperOffsets.y += y;
19412
+ }
19413
+
19414
+ state.modifiersData[name] = data;
19415
+ } // eslint-disable-next-line import/no-unused-modules
19416
+
19417
+
19418
+ /* harmony default export */ var modifiers_offset = ({
19419
+ name: 'offset',
19420
+ enabled: true,
19421
+ phase: 'main',
19422
+ requires: ['popperOffsets'],
19423
+ fn: offset
19424
+ });
19425
+ ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/utils/getOppositePlacement.js
19426
+ var hash = {
19427
+ left: 'right',
19428
+ right: 'left',
19429
+ bottom: 'top',
19430
+ top: 'bottom'
19431
+ };
19432
+ function getOppositePlacement(placement) {
19433
+ return placement.replace(/left|right|bottom|top/g, function (matched) {
19434
+ return hash[matched];
19435
  });
19436
  }
19437
+ ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js
19438
+ var getOppositeVariationPlacement_hash = {
19439
+ start: 'end',
19440
+ end: 'start'
19441
+ };
19442
+ function getOppositeVariationPlacement(placement) {
19443
+ return placement.replace(/start|end/g, function (matched) {
19444
+ return getOppositeVariationPlacement_hash[matched];
19445
  });
19446
  }
19447
+ ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js
 
19448
 
 
 
19449
 
19450
 
19451
+ function getViewportRect(element) {
19452
+ var win = getWindow(element);
19453
+ var html = getDocumentElement(element);
19454
+ var visualViewport = win.visualViewport;
19455
+ var width = html.clientWidth;
19456
+ var height = html.clientHeight;
19457
+ var x = 0;
19458
+ var y = 0; // NB: This isn't supported on iOS <= 12. If the keyboard is open, the popper
19459
+ // can be obscured underneath it.
19460
+ // Also, `html.clientHeight` adds the bottom bar height in Safari iOS, even
19461
+ // if it isn't open, so if this isn't available, the popper will be detected
19462
+ // to overflow the bottom of the screen too early.
19463
 
19464
+ if (visualViewport) {
19465
+ width = visualViewport.width;
19466
+ height = visualViewport.height; // Uses Layout Viewport (like Chrome; Safari does not currently)
19467
+ // In Chrome, it returns a value very close to 0 (+/-) but contains rounding
19468
+ // errors due to floating point numbers, so we need to check precision.
19469
+ // Safari returns a number <= 0, usually < -1 when pinch-zoomed
19470
+ // Feature detection fails in mobile emulation mode in Chrome.
19471
+ // Math.abs(win.innerWidth / visualViewport.scale - visualViewport.width) <
19472
+ // 0.001
19473
+ // Fallback here: "Not Safari" userAgent
19474
+
19475
+ if (!/^((?!chrome|android).)*safari/i.test(navigator.userAgent)) {
19476
+ x = visualViewport.offsetLeft;
19477
+ y = visualViewport.offsetTop;
19478
  }
19479
+ }
19480
 
19481
+ return {
19482
+ width: width,
19483
+ height: height,
19484
+ x: x + getWindowScrollBarX(element),
19485
+ y: y
19486
+ };
 
 
 
 
19487
  }
19488
+ ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js
 
 
19489
 
 
 
 
 
19490
 
 
 
 
 
 
 
 
 
 
 
19491
 
 
 
 
 
19492
 
19493
+ // Gets the entire size of the scrollable document area, even extending outside
19494
+ // of the `<html>` and `<body>` rect bounds if horizontally scrollable
19495
 
19496
+ function getDocumentRect(element) {
19497
+ var _element$ownerDocumen;
 
 
 
 
 
 
 
19498
 
19499
+ var html = getDocumentElement(element);
19500
+ var winScroll = getWindowScroll(element);
19501
+ var body = (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body;
19502
+ var width = math_max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
19503
+ var height = math_max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
19504
+ var x = -winScroll.scrollLeft + getWindowScrollBarX(element);
19505
+ var y = -winScroll.scrollTop;
19506
 
19507
+ if (getComputedStyle_getComputedStyle(body || html).direction === 'rtl') {
19508
+ x += math_max(html.clientWidth, body ? body.clientWidth : 0) - width;
 
19509
  }
19510
 
19511
+ return {
19512
+ width: width,
19513
+ height: height,
19514
+ x: x,
19515
+ y: y
19516
+ };
19517
  }
19518
+ ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/contains.js
 
 
 
 
 
19519
 
19520
+ function contains(parent, child) {
19521
+ var rootNode = child.getRootNode && child.getRootNode(); // First, attempt with faster native method
19522
 
19523
+ if (parent.contains(child)) {
19524
+ return true;
19525
+ } // then fallback to custom implementation with Shadow DOM support
19526
+ else if (rootNode && isShadowRoot(rootNode)) {
19527
+ var next = child;
19528
 
19529
+ do {
19530
+ if (next && parent.isSameNode(next)) {
19531
+ return true;
19532
+ } // $FlowFixMe[prop-missing]: need a better way to handle this...
 
 
 
 
 
19533
 
 
 
 
19534
 
19535
+ next = next.parentNode || next.host;
19536
+ } while (next);
19537
+ } // Give up, the result is false
19538
+
19539
+
19540
+ return false;
19541
  }
19542
+ ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/utils/rectToClientRect.js
19543
+ function rectToClientRect(rect) {
19544
+ return Object.assign({}, rect, {
19545
+ left: rect.x,
19546
+ top: rect.y,
19547
+ right: rect.x + rect.width,
19548
+ bottom: rect.y + rect.height
19549
+ });
19550
  }
19551
+ ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js
19552
 
 
 
 
19553
 
 
 
 
 
 
 
19554
 
 
19555
 
 
19556
 
 
 
 
 
 
 
19557
 
 
19558
 
 
 
 
 
 
 
19559
 
 
19560
 
 
 
 
 
 
 
 
 
 
19561
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19562
 
 
 
 
 
 
 
 
 
 
 
19563
 
 
 
 
19564
 
19565
+
19566
+
19567
+ function getInnerBoundingClientRect(element) {
19568
+ var rect = getBoundingClientRect(element);
19569
+ rect.top = rect.top + element.clientTop;
19570
+ rect.left = rect.left + element.clientLeft;
19571
+ rect.bottom = rect.top + element.clientHeight;
19572
+ rect.right = rect.left + element.clientWidth;
19573
+ rect.width = element.clientWidth;
19574
+ rect.height = element.clientHeight;
19575
+ rect.x = rect.left;
19576
+ rect.y = rect.top;
19577
+ return rect;
19578
  }
 
 
 
 
 
 
19579
 
19580
+ function getClientRectFromMixedType(element, clippingParent) {
19581
+ return clippingParent === viewport ? rectToClientRect(getViewportRect(element)) : isHTMLElement(clippingParent) ? getInnerBoundingClientRect(clippingParent) : rectToClientRect(getDocumentRect(getDocumentElement(element)));
19582
+ } // A "clipping parent" is an overflowable container with the characteristic of
19583
+ // clipping (or hiding) overflowing elements with a position different from
19584
+ // `initial`
19585
 
 
 
 
 
 
 
 
 
 
19586
 
19587
+ function getClippingParents(element) {
19588
+ var clippingParents = listScrollParents(getParentNode(element));
19589
+ var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle_getComputedStyle(element).position) >= 0;
19590
+ var clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;
19591
+
19592
+ if (!instanceOf_isElement(clipperElement)) {
19593
+ return [];
19594
+ } // $FlowFixMe[incompatible-return]: https://github.com/facebook/flow/issues/1414
19595
+
19596
+
19597
+ return clippingParents.filter(function (clippingParent) {
19598
+ return instanceOf_isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';
19599
+ });
19600
+ } // Gets the maximum area that the element is visible in due to any number of
19601
+ // clipping parents
19602
+
19603
+
19604
+ function getClippingRect(element, boundary, rootBoundary) {
19605
+ var mainClippingParents = boundary === 'clippingParents' ? getClippingParents(element) : [].concat(boundary);
19606
+ var clippingParents = [].concat(mainClippingParents, [rootBoundary]);
19607
+ var firstClippingParent = clippingParents[0];
19608
+ var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {
19609
+ var rect = getClientRectFromMixedType(element, clippingParent);
19610
+ accRect.top = math_max(rect.top, accRect.top);
19611
+ accRect.right = math_min(rect.right, accRect.right);
19612
+ accRect.bottom = math_min(rect.bottom, accRect.bottom);
19613
+ accRect.left = math_max(rect.left, accRect.left);
19614
+ return accRect;
19615
+ }, getClientRectFromMixedType(element, firstClippingParent));
19616
+ clippingRect.width = clippingRect.right - clippingRect.left;
19617
+ clippingRect.height = clippingRect.bottom - clippingRect.top;
19618
+ clippingRect.x = clippingRect.left;
19619
+ clippingRect.y = clippingRect.top;
19620
+ return clippingRect;
19621
  }
19622
+ ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/utils/getFreshSideObject.js
19623
+ function getFreshSideObject() {
19624
+ return {
19625
+ top: 0,
19626
+ right: 0,
19627
+ bottom: 0,
19628
+ left: 0
 
19629
  };
 
19630
  }
19631
+ ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/utils/mergePaddingObject.js
 
 
 
19632
 
19633
+ function mergePaddingObject(paddingObject) {
19634
+ return Object.assign({}, getFreshSideObject(), paddingObject);
19635
+ }
19636
+ ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/utils/expandToHashMap.js
19637
+ function expandToHashMap(value, keys) {
19638
+ return keys.reduce(function (hashMap, key) {
19639
+ hashMap[key] = value;
19640
+ return hashMap;
19641
+ }, {});
19642
+ }
19643
+ ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/utils/detectOverflow.js
19644
 
 
 
 
 
19645
 
 
 
 
 
 
19646
 
 
 
 
19647
 
 
 
 
19648
 
 
 
 
19649
 
 
 
19650
 
 
 
 
 
19651
 
19652
+ // eslint-disable-next-line import/no-unused-modules
19653
+
19654
+ function detectOverflow(state, options) {
19655
+ if (options === void 0) {
19656
+ options = {};
19657
  }
19658
 
19659
+ var _options = options,
19660
+ _options$placement = _options.placement,
19661
+ placement = _options$placement === void 0 ? state.placement : _options$placement,
19662
+ _options$boundary = _options.boundary,
19663
+ boundary = _options$boundary === void 0 ? clippingParents : _options$boundary,
19664
+ _options$rootBoundary = _options.rootBoundary,
19665
+ rootBoundary = _options$rootBoundary === void 0 ? viewport : _options$rootBoundary,
19666
+ _options$elementConte = _options.elementContext,
19667
+ elementContext = _options$elementConte === void 0 ? popper : _options$elementConte,
19668
+ _options$altBoundary = _options.altBoundary,
19669
+ altBoundary = _options$altBoundary === void 0 ? false : _options$altBoundary,
19670
+ _options$padding = _options.padding,
19671
+ padding = _options$padding === void 0 ? 0 : _options$padding;
19672
+ var paddingObject = mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));
19673
+ var altContext = elementContext === popper ? reference : popper;
19674
+ var referenceElement = state.elements.reference;
19675
+ var popperRect = state.rects.popper;
19676
+ var element = state.elements[altBoundary ? altContext : elementContext];
19677
+ var clippingClientRect = getClippingRect(instanceOf_isElement(element) ? element : element.contextElement || getDocumentElement(state.elements.popper), boundary, rootBoundary);
19678
+ var referenceClientRect = getBoundingClientRect(referenceElement);
19679
+ var popperOffsets = computeOffsets({
19680
+ reference: referenceClientRect,
19681
+ element: popperRect,
19682
+ strategy: 'absolute',
19683
+ placement: placement
19684
+ });
19685
+ var popperClientRect = rectToClientRect(Object.assign({}, popperRect, popperOffsets));
19686
+ var elementClientRect = elementContext === popper ? popperClientRect : referenceClientRect; // positive = overflowing the clipping rect
19687
+ // 0 or negative = within the clipping rect
19688
 
19689
+ var overflowOffsets = {
19690
+ top: clippingClientRect.top - elementClientRect.top + paddingObject.top,
19691
+ bottom: elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom,
19692
+ left: clippingClientRect.left - elementClientRect.left + paddingObject.left,
19693
+ right: elementClientRect.right - clippingClientRect.right + paddingObject.right
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19694
  };
19695
+ var offsetData = state.modifiersData.offset; // Offsets can be applied only to the popper element
19696
+
19697
+ if (elementContext === popper && offsetData) {
19698
+ var offset = offsetData[placement];
19699
+ Object.keys(overflowOffsets).forEach(function (key) {
19700
+ var multiply = [right, bottom].indexOf(key) >= 0 ? 1 : -1;
19701
+ var axis = [enums_top, bottom].indexOf(key) >= 0 ? 'y' : 'x';
19702
+ overflowOffsets[key] += offset[axis] * multiply;
19703
+ });
19704
+ }
19705
+
19706
+ return overflowOffsets;
19707
  }
19708
+ ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js
 
 
 
 
 
 
 
 
 
 
 
 
19709
 
 
 
 
 
 
19710
 
 
 
 
 
 
19711
 
 
 
 
 
 
19712
 
19713
+ function computeAutoPlacement(state, options) {
19714
+ if (options === void 0) {
19715
+ options = {};
19716
+ }
 
19717
 
19718
+ var _options = options,
19719
+ placement = _options.placement,
19720
+ boundary = _options.boundary,
19721
+ rootBoundary = _options.rootBoundary,
19722
+ padding = _options.padding,
19723
+ flipVariations = _options.flipVariations,
19724
+ _options$allowedAutoP = _options.allowedAutoPlacements,
19725
+ allowedAutoPlacements = _options$allowedAutoP === void 0 ? enums_placements : _options$allowedAutoP;
19726
+ var variation = getVariation(placement);
19727
+ var placements = variation ? flipVariations ? variationPlacements : variationPlacements.filter(function (placement) {
19728
+ return getVariation(placement) === variation;
19729
+ }) : basePlacements;
19730
+ var allowedPlacements = placements.filter(function (placement) {
19731
+ return allowedAutoPlacements.indexOf(placement) >= 0;
19732
+ });
19733
 
19734
+ if (allowedPlacements.length === 0) {
19735
+ allowedPlacements = placements;
 
 
 
19736
 
19737
+ if (false) {}
19738
+ } // $FlowFixMe[incompatible-type]: Flow seems to have problems with two array unions...
 
19739
 
 
 
 
 
 
 
 
 
 
 
 
19740
 
19741
+ var overflows = allowedPlacements.reduce(function (acc, placement) {
19742
+ acc[placement] = detectOverflow(state, {
19743
+ placement: placement,
19744
+ boundary: boundary,
19745
+ rootBoundary: rootBoundary,
19746
+ padding: padding
19747
+ })[getBasePlacement(placement)];
19748
+ return acc;
19749
+ }, {});
19750
+ return Object.keys(overflows).sort(function (a, b) {
19751
+ return overflows[a] - overflows[b];
19752
+ });
19753
+ }
19754
+ ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/modifiers/flip.js
19755
 
 
19756
 
 
 
19757
 
 
 
 
 
 
19758
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19759
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19760
 
19761
+ // eslint-disable-next-line import/no-unused-modules
19762
 
19763
+ function getExpandedFallbackPlacements(placement) {
19764
+ if (getBasePlacement(placement) === auto) {
19765
+ return [];
19766
+ }
19767
 
19768
+ var oppositePlacement = getOppositePlacement(placement);
19769
+ return [getOppositeVariationPlacement(placement), oppositePlacement, getOppositeVariationPlacement(oppositePlacement)];
19770
+ }
 
19771
 
19772
+ function flip(_ref) {
19773
+ var state = _ref.state,
19774
+ options = _ref.options,
19775
+ name = _ref.name;
19776
 
19777
+ if (state.modifiersData[name]._skip) {
19778
+ return;
19779
+ }
19780
 
19781
+ var _options$mainAxis = options.mainAxis,
19782
+ checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis,
19783
+ _options$altAxis = options.altAxis,
19784
+ checkAltAxis = _options$altAxis === void 0 ? true : _options$altAxis,
19785
+ specifiedFallbackPlacements = options.fallbackPlacements,
19786
+ padding = options.padding,
19787
+ boundary = options.boundary,
19788
+ rootBoundary = options.rootBoundary,
19789
+ altBoundary = options.altBoundary,
19790
+ _options$flipVariatio = options.flipVariations,
19791
+ flipVariations = _options$flipVariatio === void 0 ? true : _options$flipVariatio,
19792
+ allowedAutoPlacements = options.allowedAutoPlacements;
19793
+ var preferredPlacement = state.options.placement;
19794
+ var basePlacement = getBasePlacement(preferredPlacement);
19795
+ var isBasePlacement = basePlacement === preferredPlacement;
19796
+ var fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipVariations ? [getOppositePlacement(preferredPlacement)] : getExpandedFallbackPlacements(preferredPlacement));
19797
+ var placements = [preferredPlacement].concat(fallbackPlacements).reduce(function (acc, placement) {
19798
+ return acc.concat(getBasePlacement(placement) === auto ? computeAutoPlacement(state, {
19799
+ placement: placement,
19800
+ boundary: boundary,
19801
+ rootBoundary: rootBoundary,
19802
+ padding: padding,
19803
+ flipVariations: flipVariations,
19804
+ allowedAutoPlacements: allowedAutoPlacements
19805
+ }) : placement);
19806
+ }, []);
19807
+ var referenceRect = state.rects.reference;
19808
+ var popperRect = state.rects.popper;
19809
+ var checksMap = new Map();
19810
+ var makeFallbackChecks = true;
19811
+ var firstFittingPlacement = placements[0];
19812
 
19813
+ for (var i = 0; i < placements.length; i++) {
19814
+ var placement = placements[i];
 
 
19815
 
19816
+ var _basePlacement = getBasePlacement(placement);
19817
 
19818
+ var isStartVariation = getVariation(placement) === start;
19819
+ var isVertical = [enums_top, bottom].indexOf(_basePlacement) >= 0;
19820
+ var len = isVertical ? 'width' : 'height';
19821
+ var overflow = detectOverflow(state, {
19822
+ placement: placement,
19823
+ boundary: boundary,
19824
+ rootBoundary: rootBoundary,
19825
+ altBoundary: altBoundary,
19826
+ padding: padding
19827
+ });
19828
+ var mainVariationSide = isVertical ? isStartVariation ? right : left : isStartVariation ? bottom : enums_top;
19829
+
19830
+ if (referenceRect[len] > popperRect[len]) {
19831
+ mainVariationSide = getOppositePlacement(mainVariationSide);
19832
  }
19833
+
19834
+ var altVariationSide = getOppositePlacement(mainVariationSide);
19835
+ var checks = [];
19836
+
19837
+ if (checkMainAxis) {
19838
+ checks.push(overflow[_basePlacement] <= 0);
19839
  }
 
 
 
 
19840
 
19841
+ if (checkAltAxis) {
19842
+ checks.push(overflow[mainVariationSide] <= 0, overflow[altVariationSide] <= 0);
19843
+ }
 
19844
 
19845
+ if (checks.every(function (check) {
19846
+ return check;
19847
+ })) {
19848
+ firstFittingPlacement = placement;
19849
+ makeFallbackChecks = false;
19850
+ break;
19851
+ }
19852
+
19853
+ checksMap.set(placement, checks);
19854
  }
19855
 
19856
+ if (makeFallbackChecks) {
19857
+ // `2` may be desired in some cases – research later
19858
+ var numberOfChecks = flipVariations ? 3 : 1;
19859
 
19860
+ var _loop = function _loop(_i) {
19861
+ var fittingPlacement = placements.find(function (placement) {
19862
+ var checks = checksMap.get(placement);
19863
 
19864
+ if (checks) {
19865
+ return checks.slice(0, _i).every(function (check) {
19866
+ return check;
19867
+ });
19868
+ }
19869
+ });
19870
 
19871
+ if (fittingPlacement) {
19872
+ firstFittingPlacement = fittingPlacement;
19873
+ return "break";
19874
+ }
19875
+ };
19876
 
19877
+ for (var _i = numberOfChecks; _i > 0; _i--) {
19878
+ var _ret = _loop(_i);
 
19879
 
19880
+ if (_ret === "break") break;
 
 
 
 
 
19881
  }
19882
+ }
19883
 
19884
+ if (state.placement !== firstFittingPlacement) {
19885
+ state.modifiersData[name]._skip = true;
19886
+ state.placement = firstFittingPlacement;
19887
+ state.reset = true;
19888
  }
19889
+ } // eslint-disable-next-line import/no-unused-modules
19890
 
19891
+
19892
+ /* harmony default export */ var modifiers_flip = ({
19893
+ name: 'flip',
19894
+ enabled: true,
19895
+ phase: 'main',
19896
+ fn: flip,
19897
+ requiresIfExists: ['offset'],
19898
+ data: {
19899
+ _skip: false
19900
  }
19901
+ });
19902
+ ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/utils/getAltAxis.js
19903
+ function getAltAxis(axis) {
19904
+ return axis === 'x' ? 'y' : 'x';
19905
+ }
19906
+ ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/utils/within.js
19907
 
19908
+ function within(min, value, max) {
19909
+ return math_max(min, math_min(value, max));
19910
+ }
19911
+ ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/modifiers/preventOverflow.js
19912
 
 
 
 
 
 
19913
 
 
 
19914
 
 
 
 
19915
 
 
 
19916
 
 
 
 
19917
 
 
 
 
 
 
19918
 
 
 
 
 
19919
 
 
 
 
 
 
 
 
 
19920
 
 
 
 
 
19921
 
 
 
 
 
 
 
 
 
 
19922
 
 
 
 
 
 
 
19923
 
19924
+ function preventOverflow(_ref) {
19925
+ var state = _ref.state,
19926
+ options = _ref.options,
19927
+ name = _ref.name;
19928
+ var _options$mainAxis = options.mainAxis,
19929
+ checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis,
19930
+ _options$altAxis = options.altAxis,
19931
+ checkAltAxis = _options$altAxis === void 0 ? false : _options$altAxis,
19932
+ boundary = options.boundary,
19933
+ rootBoundary = options.rootBoundary,
19934
+ altBoundary = options.altBoundary,
19935
+ padding = options.padding,
19936
+ _options$tether = options.tether,
19937
+ tether = _options$tether === void 0 ? true : _options$tether,
19938
+ _options$tetherOffset = options.tetherOffset,
19939
+ tetherOffset = _options$tetherOffset === void 0 ? 0 : _options$tetherOffset;
19940
+ var overflow = detectOverflow(state, {
19941
+ boundary: boundary,
19942
+ rootBoundary: rootBoundary,
19943
+ padding: padding,
19944
+ altBoundary: altBoundary
19945
+ });
19946
+ var basePlacement = getBasePlacement(state.placement);
19947
+ var variation = getVariation(state.placement);
19948
+ var isBasePlacement = !variation;
19949
+ var mainAxis = getMainAxisFromPlacement(basePlacement);
19950
+ var altAxis = getAltAxis(mainAxis);
19951
+ var popperOffsets = state.modifiersData.popperOffsets;
19952
+ var referenceRect = state.rects.reference;
19953
+ var popperRect = state.rects.popper;
19954
+ var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign({}, state.rects, {
19955
+ placement: state.placement
19956
+ })) : tetherOffset;
19957
+ var data = {
19958
+ x: 0,
19959
+ y: 0
19960
+ };
19961
 
19962
+ if (!popperOffsets) {
19963
+ return;
19964
+ }
19965
 
19966
+ if (checkMainAxis || checkAltAxis) {
19967
+ var mainSide = mainAxis === 'y' ? enums_top : left;
19968
+ var altSide = mainAxis === 'y' ? bottom : right;
19969
+ var len = mainAxis === 'y' ? 'height' : 'width';
19970
+ var offset = popperOffsets[mainAxis];
19971
+ var min = popperOffsets[mainAxis] + overflow[mainSide];
19972
+ var max = popperOffsets[mainAxis] - overflow[altSide];
19973
+ var additive = tether ? -popperRect[len] / 2 : 0;
19974
+ var minLen = variation === start ? referenceRect[len] : popperRect[len];
19975
+ var maxLen = variation === start ? -popperRect[len] : -referenceRect[len]; // We need to include the arrow in the calculation so the arrow doesn't go
19976
+ // outside the reference bounds
19977
 
19978
+ var arrowElement = state.elements.arrow;
19979
+ var arrowRect = tether && arrowElement ? getLayoutRect(arrowElement) : {
19980
+ width: 0,
19981
+ height: 0
19982
+ };
19983
+ var arrowPaddingObject = state.modifiersData['arrow#persistent'] ? state.modifiersData['arrow#persistent'].padding : getFreshSideObject();
19984
+ var arrowPaddingMin = arrowPaddingObject[mainSide];
19985
+ var arrowPaddingMax = arrowPaddingObject[altSide]; // If the reference length is smaller than the arrow length, we don't want
19986
+ // to include its full size in the calculation. If the reference is small
19987
+ // and near the edge of a boundary, the popper can overflow even if the
19988
+ // reference is not overflowing as well (e.g. virtual elements with no
19989
+ // width or height)
19990
 
19991
+ var arrowLen = within(0, referenceRect[len], arrowRect[len]);
19992
+ var minOffset = isBasePlacement ? referenceRect[len] / 2 - additive - arrowLen - arrowPaddingMin - tetherOffsetValue : minLen - arrowLen - arrowPaddingMin - tetherOffsetValue;
19993
+ var maxOffset = isBasePlacement ? -referenceRect[len] / 2 + additive + arrowLen + arrowPaddingMax + tetherOffsetValue : maxLen + arrowLen + arrowPaddingMax + tetherOffsetValue;
19994
+ var arrowOffsetParent = state.elements.arrow && getOffsetParent(state.elements.arrow);
19995
+ var clientOffset = arrowOffsetParent ? mainAxis === 'y' ? arrowOffsetParent.clientTop || 0 : arrowOffsetParent.clientLeft || 0 : 0;
19996
+ var offsetModifierValue = state.modifiersData.offset ? state.modifiersData.offset[state.placement][mainAxis] : 0;
19997
+ var tetherMin = popperOffsets[mainAxis] + minOffset - offsetModifierValue - clientOffset;
19998
+ var tetherMax = popperOffsets[mainAxis] + maxOffset - offsetModifierValue;
19999
 
20000
+ if (checkMainAxis) {
20001
+ var preventedOffset = within(tether ? math_min(min, tetherMin) : min, offset, tether ? math_max(max, tetherMax) : max);
20002
+ popperOffsets[mainAxis] = preventedOffset;
20003
+ data[mainAxis] = preventedOffset - offset;
 
20004
  }
20005
 
20006
+ if (checkAltAxis) {
20007
+ var _mainSide = mainAxis === 'x' ? enums_top : left;
20008
+
20009
+ var _altSide = mainAxis === 'x' ? bottom : right;
20010
+
20011
+ var _offset = popperOffsets[altAxis];
20012
 
20013
+ var _min = _offset + overflow[_mainSide];
 
 
 
 
 
20014
 
20015
+ var _max = _offset - overflow[_altSide];
20016
+
20017
+ var _preventedOffset = within(tether ? math_min(_min, tetherMin) : _min, _offset, tether ? math_max(_max, tetherMax) : _max);
20018
+
20019
+ popperOffsets[altAxis] = _preventedOffset;
20020
+ data[altAxis] = _preventedOffset - _offset;
20021
  }
20022
  }
20023
 
20024
+ state.modifiersData[name] = data;
20025
+ } // eslint-disable-next-line import/no-unused-modules
 
20026
 
 
 
 
20027
 
20028
+ /* harmony default export */ var modifiers_preventOverflow = ({
20029
+ name: 'preventOverflow',
20030
+ enabled: true,
20031
+ phase: 'main',
20032
+ fn: preventOverflow,
20033
+ requiresIfExists: ['offset']
20034
+ });
20035
+ ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/modifiers/arrow.js
20036
 
 
 
 
 
 
 
 
20037
 
 
 
 
 
 
 
 
20038
 
 
 
 
20039
 
 
 
20040
 
 
 
 
 
 
 
 
20041
 
20042
 
 
 
 
20043
 
 
 
 
 
20044
 
20045
+ // eslint-disable-next-line import/no-unused-modules
 
 
 
20046
 
20047
+ var toPaddingObject = function toPaddingObject(padding, state) {
20048
+ padding = typeof padding === 'function' ? padding(Object.assign({}, state.rects, {
20049
+ placement: state.placement
20050
+ })) : padding;
20051
+ return mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));
20052
+ };
 
 
 
 
 
20053
 
20054
+ function arrow(_ref) {
20055
+ var _state$modifiersData$;
 
 
 
 
 
 
 
20056
 
20057
+ var state = _ref.state,
20058
+ name = _ref.name,
20059
+ options = _ref.options;
20060
+ var arrowElement = state.elements.arrow;
20061
+ var popperOffsets = state.modifiersData.popperOffsets;
20062
+ var basePlacement = getBasePlacement(state.placement);
20063
+ var axis = getMainAxisFromPlacement(basePlacement);
20064
+ var isVertical = [left, right].indexOf(basePlacement) >= 0;
20065
+ var len = isVertical ? 'height' : 'width';
20066
 
20067
+ if (!arrowElement || !popperOffsets) {
20068
+ return;
20069
+ }
20070
 
20071
+ var paddingObject = toPaddingObject(options.padding, state);
20072
+ var arrowRect = getLayoutRect(arrowElement);
20073
+ var minProp = axis === 'y' ? enums_top : left;
20074
+ var maxProp = axis === 'y' ? bottom : right;
20075
+ var endDiff = state.rects.reference[len] + state.rects.reference[axis] - popperOffsets[axis] - state.rects.popper[len];
20076
+ var startDiff = popperOffsets[axis] - state.rects.reference[axis];
20077
+ var arrowOffsetParent = getOffsetParent(arrowElement);
20078
+ var clientSize = arrowOffsetParent ? axis === 'y' ? arrowOffsetParent.clientHeight || 0 : arrowOffsetParent.clientWidth || 0 : 0;
20079
+ var centerToReference = endDiff / 2 - startDiff / 2; // Make sure the arrow doesn't overflow the popper if the center point is
20080
+ // outside of the popper bounds
20081
 
20082
+ var min = paddingObject[minProp];
20083
+ var max = clientSize - arrowRect[len] - paddingObject[maxProp];
20084
+ var center = clientSize / 2 - arrowRect[len] / 2 + centerToReference;
20085
+ var offset = within(min, center, max); // Prevents breaking syntax highlighting...
20086
 
20087
+ var axisProp = axis;
20088
+ state.modifiersData[name] = (_state$modifiersData$ = {}, _state$modifiersData$[axisProp] = offset, _state$modifiersData$.centerOffset = offset - center, _state$modifiersData$);
20089
+ }
 
 
 
20090
 
20091
+ function arrow_effect(_ref2) {
20092
+ var state = _ref2.state,
20093
+ options = _ref2.options;
20094
+ var _options$element = options.element,
20095
+ arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element;
 
 
 
 
 
20096
 
20097
+ if (arrowElement == null) {
20098
+ return;
20099
+ } // CSS selector
20100
 
 
20101
 
20102
+ if (typeof arrowElement === 'string') {
20103
+ arrowElement = state.elements.popper.querySelector(arrowElement);
20104
+
20105
+ if (!arrowElement) {
20106
  return;
20107
  }
20108
+ }
20109
 
20110
+ if (false) {}
 
 
 
20111
 
20112
+ if (!contains(state.elements.popper, arrowElement)) {
20113
+ if (false) {}
 
 
 
 
 
 
 
20114
 
20115
+ return;
20116
+ }
20117
 
20118
+ state.elements.arrow = arrowElement;
20119
+ } // eslint-disable-next-line import/no-unused-modules
 
 
 
20120
 
 
 
 
20121
 
20122
+ /* harmony default export */ var modifiers_arrow = ({
20123
+ name: 'arrow',
20124
+ enabled: true,
20125
+ phase: 'main',
20126
+ fn: arrow,
20127
+ effect: arrow_effect,
20128
+ requires: ['popperOffsets'],
20129
+ requiresIfExists: ['preventOverflow']
20130
+ });
20131
+ ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/modifiers/hide.js
20132
 
 
 
 
20133
 
 
 
 
20134
 
20135
+ function getSideOffsets(overflow, rect, preventedOffsets) {
20136
+ if (preventedOffsets === void 0) {
20137
+ preventedOffsets = {
20138
+ x: 0,
20139
+ y: 0
20140
+ };
20141
+ }
20142
 
20143
+ return {
20144
+ top: overflow.top - rect.height - preventedOffsets.y,
20145
+ right: overflow.right - rect.width + preventedOffsets.x,
20146
+ bottom: overflow.bottom - rect.height + preventedOffsets.y,
20147
+ left: overflow.left - rect.width - preventedOffsets.x
20148
+ };
20149
+ }
20150
 
20151
+ function isAnySideFullyClipped(overflow) {
20152
+ return [enums_top, right, bottom, left].some(function (side) {
20153
+ return overflow[side] >= 0;
20154
+ });
20155
+ }
 
 
20156
 
20157
+ function hide(_ref) {
20158
+ var state = _ref.state,
20159
+ name = _ref.name;
20160
+ var referenceRect = state.rects.reference;
20161
+ var popperRect = state.rects.popper;
20162
+ var preventedOffsets = state.modifiersData.preventOverflow;
20163
+ var referenceOverflow = detectOverflow(state, {
20164
+ elementContext: 'reference'
20165
+ });
20166
+ var popperAltOverflow = detectOverflow(state, {
20167
+ altBoundary: true
20168
+ });
20169
+ var referenceClippingOffsets = getSideOffsets(referenceOverflow, referenceRect);
20170
+ var popperEscapeOffsets = getSideOffsets(popperAltOverflow, popperRect, preventedOffsets);
20171
+ var isReferenceHidden = isAnySideFullyClipped(referenceClippingOffsets);
20172
+ var hasPopperEscaped = isAnySideFullyClipped(popperEscapeOffsets);
20173
+ state.modifiersData[name] = {
20174
+ referenceClippingOffsets: referenceClippingOffsets,
20175
+ popperEscapeOffsets: popperEscapeOffsets,
20176
+ isReferenceHidden: isReferenceHidden,
20177
+ hasPopperEscaped: hasPopperEscaped
20178
+ };
20179
+ state.attributes.popper = Object.assign({}, state.attributes.popper, {
20180
+ 'data-popper-reference-hidden': isReferenceHidden,
20181
+ 'data-popper-escaped': hasPopperEscaped
20182
+ });
20183
+ } // eslint-disable-next-line import/no-unused-modules
20184
 
 
 
 
 
 
20185
 
20186
+ /* harmony default export */ var modifiers_hide = ({
20187
+ name: 'hide',
20188
+ enabled: true,
20189
+ phase: 'main',
20190
+ requiresIfExists: ['preventOverflow'],
20191
+ fn: hide
20192
+ });
20193
+ ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/popper.js
20194
 
 
 
 
20195
 
 
 
 
 
20196
 
 
 
20197
 
 
 
 
 
20198
 
20199
 
 
 
 
20200
 
 
 
20201
 
 
 
 
20202
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20203
 
20204
+ var defaultModifiers = [eventListeners, modifiers_popperOffsets, modifiers_computeStyles, modifiers_applyStyles, modifiers_offset, modifiers_flip, modifiers_preventOverflow, modifiers_arrow, modifiers_hide];
20205
+ var popper_createPopper = /*#__PURE__*/popperGenerator({
20206
+ defaultModifiers: defaultModifiers
20207
+ }); // eslint-disable-next-line import/no-unused-modules
20208
 
20209
+ // eslint-disable-next-line import/no-unused-modules
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20210
 
20211
+ // eslint-disable-next-line import/no-unused-modules
 
 
 
 
 
 
 
 
20212
 
 
 
 
 
 
 
 
20213
 
20214
+ ;// CONCATENATED MODULE: ./node_modules/@tippyjs/react/node_modules/tippy.js/dist/tippy.esm.js
20215
+ /**!
20216
+ * tippy.js v6.3.1
20217
+ * (c) 2017-2021 atomiks
20218
+ * MIT License
20219
+ */
20220
 
 
 
 
 
 
 
 
20221
 
20222
+ var ROUND_ARROW = '<svg width="16" height="6" xmlns="http://www.w3.org/2000/svg"><path d="M0 6s1.796-.013 4.67-3.615C5.851.9 6.93.006 8 0c1.07-.006 2.148.887 3.343 2.385C14.233 6.005 16 6 16 6H0z"></svg>';
20223
+ var BOX_CLASS = "tippy-box";
20224
+ var CONTENT_CLASS = "tippy-content";
20225
+ var BACKDROP_CLASS = "tippy-backdrop";
20226
+ var ARROW_CLASS = "tippy-arrow";
20227
+ var SVG_ARROW_CLASS = "tippy-svg-arrow";
20228
+ var TOUCH_OPTIONS = {
20229
+ passive: true,
20230
+ capture: true
20231
+ };
20232
 
20233
+ function tippy_esm_hasOwnProperty(obj, key) {
20234
+ return {}.hasOwnProperty.call(obj, key);
20235
+ }
20236
+ function getValueAtIndexOrReturn(value, index, defaultValue) {
20237
+ if (Array.isArray(value)) {
20238
+ var v = value[index];
20239
+ return v == null ? Array.isArray(defaultValue) ? defaultValue[index] : defaultValue : v;
20240
+ }
20241
 
20242
+ return value;
20243
+ }
20244
+ function isType(value, type) {
20245
+ var str = {}.toString.call(value);
20246
+ return str.indexOf('[object') === 0 && str.indexOf(type + "]") > -1;
20247
+ }
20248
+ function invokeWithArgsOrReturn(value, args) {
20249
+ return typeof value === 'function' ? value.apply(void 0, args) : value;
20250
+ }
20251
+ function tippy_esm_debounce(fn, ms) {
20252
+ // Avoid wrapping in `setTimeout` if ms is 0 anyway
20253
+ if (ms === 0) {
20254
+ return fn;
20255
+ }
20256
 
20257
+ var timeout;
20258
+ return function (arg) {
20259
+ clearTimeout(timeout);
20260
+ timeout = setTimeout(function () {
20261
+ fn(arg);
20262
+ }, ms);
20263
+ };
20264
+ }
20265
+ function removeProperties(obj, keys) {
20266
+ var clone = Object.assign({}, obj);
20267
+ keys.forEach(function (key) {
20268
+ delete clone[key];
20269
+ });
20270
+ return clone;
20271
+ }
20272
+ function splitBySpaces(value) {
20273
+ return value.split(/\s+/).filter(Boolean);
20274
+ }
20275
+ function normalizeToArray(value) {
20276
+ return [].concat(value);
20277
+ }
20278
+ function pushIfUnique(arr, value) {
20279
+ if (arr.indexOf(value) === -1) {
20280
+ arr.push(value);
20281
+ }
20282
+ }
20283
+ function unique(arr) {
20284
+ return arr.filter(function (item, index) {
20285
+ return arr.indexOf(item) === index;
20286
+ });
20287
+ }
20288
+ function tippy_esm_getBasePlacement(placement) {
20289
+ return placement.split('-')[0];
20290
+ }
20291
+ function arrayFrom(value) {
20292
+ return [].slice.call(value);
20293
+ }
20294
+ function removeUndefinedProps(obj) {
20295
+ return Object.keys(obj).reduce(function (acc, key) {
20296
+ if (obj[key] !== undefined) {
20297
+ acc[key] = obj[key];
20298
  }
20299
 
20300
+ return acc;
20301
+ }, {});
20302
+ }
20303
 
20304
+ function div() {
20305
+ return document.createElement('div');
20306
+ }
20307
+ function tippy_esm_isElement(value) {
20308
+ return ['Element', 'Fragment'].some(function (type) {
20309
+ return isType(value, type);
20310
+ });
20311
+ }
20312
+ function isNodeList(value) {
20313
+ return isType(value, 'NodeList');
20314
+ }
20315
+ function isMouseEvent(value) {
20316
+ return isType(value, 'MouseEvent');
20317
+ }
20318
+ function isReferenceElement(value) {
20319
+ return !!(value && value._tippy && value._tippy.reference === value);
20320
+ }
20321
+ function getArrayOfElements(value) {
20322
+ if (tippy_esm_isElement(value)) {
20323
+ return [value];
20324
  }
20325
 
20326
+ if (isNodeList(value)) {
20327
+ return arrayFrom(value);
20328
  }
20329
 
20330
+ if (Array.isArray(value)) {
20331
+ return value;
20332
+ }
 
 
 
 
 
 
 
 
 
 
20333
 
20334
+ return arrayFrom(document.querySelectorAll(value));
20335
+ }
20336
+ function setTransitionDuration(els, value) {
20337
+ els.forEach(function (el) {
20338
+ if (el) {
20339
+ el.style.transitionDuration = value + "ms";
20340
  }
20341
+ });
20342
+ }
20343
+ function setVisibilityState(els, state) {
20344
+ els.forEach(function (el) {
20345
+ if (el) {
20346
+ el.setAttribute('data-state', state);
 
20347
  }
20348
+ });
20349
+ }
20350
+ function getOwnerDocument(elementOrElements) {
20351
+ var _element$ownerDocumen;
20352
 
20353
+ var _normalizeToArray = normalizeToArray(elementOrElements),
20354
+ element = _normalizeToArray[0]; // Elements created via a <template> have an ownerDocument with no reference to the body
 
20355
 
 
 
 
 
 
 
 
20356
 
20357
+ return (element == null ? void 0 : (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body) ? element.ownerDocument : document;
20358
+ }
20359
+ function isCursorOutsideInteractiveBorder(popperTreeData, event) {
20360
+ var clientX = event.clientX,
20361
+ clientY = event.clientY;
20362
+ return popperTreeData.every(function (_ref) {
20363
+ var popperRect = _ref.popperRect,
20364
+ popperState = _ref.popperState,
20365
+ props = _ref.props;
20366
+ var interactiveBorder = props.interactiveBorder;
20367
+ var basePlacement = tippy_esm_getBasePlacement(popperState.placement);
20368
+ var offsetData = popperState.modifiersData.offset;
20369
 
20370
+ if (!offsetData) {
20371
+ return true;
20372
  }
20373
 
20374
+ var topDistance = basePlacement === 'bottom' ? offsetData.top.y : 0;
20375
+ var bottomDistance = basePlacement === 'top' ? offsetData.bottom.y : 0;
20376
+ var leftDistance = basePlacement === 'right' ? offsetData.left.x : 0;
20377
+ var rightDistance = basePlacement === 'left' ? offsetData.right.x : 0;
20378
+ var exceedsTop = popperRect.top - clientY + topDistance > interactiveBorder;
20379
+ var exceedsBottom = clientY - popperRect.bottom - bottomDistance > interactiveBorder;
20380
+ var exceedsLeft = popperRect.left - clientX + leftDistance > interactiveBorder;
20381
+ var exceedsRight = clientX - popperRect.right - rightDistance > interactiveBorder;
20382
+ return exceedsTop || exceedsBottom || exceedsLeft || exceedsRight;
20383
+ });
20384
+ }
20385
+ function updateTransitionEndListener(box, action, listener) {
20386
+ var method = action + "EventListener"; // some browsers apparently support `transition` (unprefixed) but only fire
20387
+ // `webkitTransitionEnd`...
20388
 
20389
+ ['transitionend', 'webkitTransitionEnd'].forEach(function (event) {
20390
+ box[method](event, listener);
20391
+ });
20392
+ }
 
 
 
 
 
 
 
 
 
 
 
 
20393
 
20394
+ var currentInput = {
20395
+ isTouch: false
20396
+ };
20397
+ var lastMouseMoveTime = 0;
20398
+ /**
20399
+ * When a `touchstart` event is fired, it's assumed the user is using touch
20400
+ * input. We'll bind a `mousemove` event listener to listen for mouse input in
20401
+ * the future. This way, the `isTouch` property is fully dynamic and will handle
20402
+ * hybrid devices that use a mix of touch + mouse input.
20403
+ */
20404
 
20405
+ function onDocumentTouchStart() {
20406
+ if (currentInput.isTouch) {
20407
+ return;
20408
  }
20409
 
20410
+ currentInput.isTouch = true;
 
 
 
 
 
20411
 
20412
+ if (window.performance) {
20413
+ document.addEventListener('mousemove', onDocumentMouseMove);
 
 
20414
  }
20415
+ }
20416
+ /**
20417
+ * When two `mousemove` event are fired consecutively within 20ms, it's assumed
20418
+ * the user is using mouse input again. `mousemove` can fire on touch devices as
20419
+ * well, but very rarely that quickly.
20420
+ */
20421
 
20422
+ function onDocumentMouseMove() {
20423
+ var now = performance.now();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20424
 
20425
+ if (now - lastMouseMoveTime < 20) {
20426
+ currentInput.isTouch = false;
20427
+ document.removeEventListener('mousemove', onDocumentMouseMove);
20428
+ }
 
 
 
20429
 
20430
+ lastMouseMoveTime = now;
20431
+ }
20432
+ /**
20433
+ * When an element is in focus and has a tippy, leaving the tab/window and
20434
+ * returning causes it to show again. For mouse users this is unexpected, but
20435
+ * for keyboard use it makes sense.
20436
+ * TODO: find a better technique to solve this problem
20437
+ */
20438
 
20439
+ function onWindowBlur() {
20440
+ var activeElement = document.activeElement;
 
20441
 
20442
+ if (isReferenceElement(activeElement)) {
20443
+ var instance = activeElement._tippy;
 
 
 
20444
 
20445
+ if (activeElement.blur && !instance.state.isVisible) {
20446
+ activeElement.blur();
 
 
 
20447
  }
 
 
 
 
 
 
 
 
20448
  }
20449
+ }
20450
+ function bindGlobalEventListeners() {
20451
+ document.addEventListener('touchstart', onDocumentTouchStart, TOUCH_OPTIONS);
20452
+ window.addEventListener('blur', onWindowBlur);
20453
+ }
20454
 
20455
+ var isBrowser = typeof window !== 'undefined' && typeof document !== 'undefined';
20456
+ var ua = isBrowser ? navigator.userAgent : '';
20457
+ var isIE = /MSIE |Trident\//.test(ua);
 
20458
 
20459
+ function createMemoryLeakWarning(method) {
20460
+ var txt = method === 'destroy' ? 'n already-' : ' ';
20461
+ return [method + "() was called on a" + txt + "destroyed instance. This is a no-op but", 'indicates a potential memory leak.'].join(' ');
20462
+ }
20463
+ function clean(value) {
20464
+ var spacesAndTabs = /[ \t]{2,}/g;
20465
+ var lineStartWithSpaces = /^[ \t]*/gm;
20466
+ return value.replace(spacesAndTabs, ' ').replace(lineStartWithSpaces, '').trim();
20467
+ }
20468
 
20469
+ function getDevMessage(message) {
20470
+ return clean("\n %ctippy.js\n\n %c" + clean(message) + "\n\n %c\uD83D\uDC77\u200D This is a development-only message. It will be removed in production.\n ");
20471
+ }
 
 
20472
 
20473
+ function getFormattedMessage(message) {
20474
+ return [getDevMessage(message), // title
20475
+ 'color: #00C584; font-size: 1.3em; font-weight: bold;', // message
20476
+ 'line-height: 1.5', // footer
20477
+ 'color: #a6a095;'];
20478
+ } // Assume warnings and errors never have the same message
20479
 
20480
+ var visitedMessages;
 
 
20481
 
20482
+ if (false) {}
20483
 
20484
+ function resetVisitedMessages() {
20485
+ visitedMessages = new Set();
20486
+ }
20487
+ function warnWhen(condition, message) {
20488
+ if (condition && !visitedMessages.has(message)) {
20489
+ var _console;
20490
 
20491
+ visitedMessages.add(message);
20492
 
20493
+ (_console = console).warn.apply(_console, getFormattedMessage(message));
20494
+ }
20495
+ }
20496
+ function errorWhen(condition, message) {
20497
+ if (condition && !visitedMessages.has(message)) {
20498
+ var _console2;
20499
 
20500
+ visitedMessages.add(message);
 
20501
 
20502
+ (_console2 = console).error.apply(_console2, getFormattedMessage(message));
20503
+ }
20504
+ }
20505
+ function validateTargets(targets) {
20506
+ var didPassFalsyValue = !targets;
20507
+ var didPassPlainObject = Object.prototype.toString.call(targets) === '[object Object]' && !targets.addEventListener;
20508
+ errorWhen(didPassFalsyValue, ['tippy() was passed', '`' + String(targets) + '`', 'as its targets (first) argument. Valid types are: String, Element,', 'Element[], or NodeList.'].join(' '));
20509
+ errorWhen(didPassPlainObject, ['tippy() was passed a plain object which is not supported as an argument', 'for virtual positioning. Use props.getReferenceClientRect instead.'].join(' '));
20510
+ }
20511
 
20512
+ var pluginProps = {
20513
+ animateFill: false,
20514
+ followCursor: false,
20515
+ inlinePositioning: false,
20516
+ sticky: false
20517
+ };
20518
+ var renderProps = {
20519
+ allowHTML: false,
20520
+ animation: 'fade',
20521
+ arrow: true,
20522
+ content: '',
20523
+ inertia: false,
20524
+ maxWidth: 350,
20525
+ role: 'tooltip',
20526
+ theme: '',
20527
+ zIndex: 9999
20528
+ };
20529
+ var tippy_esm_defaultProps = Object.assign({
20530
+ appendTo: function appendTo() {
20531
+ return document.body;
20532
+ },
20533
+ aria: {
20534
+ content: 'auto',
20535
+ expanded: 'auto'
20536
+ },
20537
+ delay: 0,
20538
+ duration: [300, 250],
20539
+ getReferenceClientRect: null,
20540
+ hideOnClick: true,
20541
+ ignoreAttributes: false,
20542
+ interactive: false,
20543
+ interactiveBorder: 2,
20544
+ interactiveDebounce: 0,
20545
+ moveTransition: '',
20546
+ offset: [0, 10],
20547
+ onAfterUpdate: function onAfterUpdate() {},
20548
+ onBeforeUpdate: function onBeforeUpdate() {},
20549
+ onCreate: function onCreate() {},
20550
+ onDestroy: function onDestroy() {},
20551
+ onHidden: function onHidden() {},
20552
+ onHide: function onHide() {},
20553
+ onMount: function onMount() {},
20554
+ onShow: function onShow() {},
20555
+ onShown: function onShown() {},
20556
+ onTrigger: function onTrigger() {},
20557
+ onUntrigger: function onUntrigger() {},
20558
+ onClickOutside: function onClickOutside() {},
20559
+ placement: 'top',
20560
+ plugins: [],
20561
+ popperOptions: {},
20562
+ render: null,
20563
+ showOnCreate: false,
20564
+ touch: true,
20565
+ trigger: 'mouseenter focus',
20566
+ triggerTarget: null
20567
+ }, pluginProps, {}, renderProps);
20568
+ var defaultKeys = Object.keys(tippy_esm_defaultProps);
20569
+ var setDefaultProps = function setDefaultProps(partialProps) {
20570
+ /* istanbul ignore else */
20571
+ if (false) {}
20572
 
20573
+ var keys = Object.keys(partialProps);
20574
+ keys.forEach(function (key) {
20575
+ tippy_esm_defaultProps[key] = partialProps[key];
20576
+ });
20577
+ };
20578
+ function getExtendedPassedProps(passedProps) {
20579
+ var plugins = passedProps.plugins || [];
20580
+ var pluginProps = plugins.reduce(function (acc, plugin) {
20581
+ var name = plugin.name,
20582
+ defaultValue = plugin.defaultValue;
20583
 
20584
+ if (name) {
20585
+ acc[name] = passedProps[name] !== undefined ? passedProps[name] : defaultValue;
20586
  }
20587
 
20588
+ return acc;
20589
+ }, {});
20590
+ return Object.assign({}, passedProps, {}, pluginProps);
20591
+ }
20592
+ function getDataAttributeProps(reference, plugins) {
20593
+ var propKeys = plugins ? Object.keys(getExtendedPassedProps(Object.assign({}, tippy_esm_defaultProps, {
20594
+ plugins: plugins
20595
+ }))) : defaultKeys;
20596
+ var props = propKeys.reduce(function (acc, key) {
20597
+ var valueAsString = (reference.getAttribute("data-tippy-" + key) || '').trim();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20598
 
20599
+ if (!valueAsString) {
20600
+ return acc;
20601
+ }
20602
 
20603
+ if (key === 'content') {
20604
+ acc[key] = valueAsString;
20605
+ } else {
20606
+ try {
20607
+ acc[key] = JSON.parse(valueAsString);
20608
+ } catch (e) {
20609
+ acc[key] = valueAsString;
20610
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20611
  }
20612
 
20613
+ return acc;
20614
+ }, {});
20615
+ return props;
20616
+ }
20617
+ function evaluateProps(reference, props) {
20618
+ var out = Object.assign({}, props, {
20619
+ content: invokeWithArgsOrReturn(props.content, [reference])
20620
+ }, props.ignoreAttributes ? {} : getDataAttributeProps(reference, props.plugins));
20621
+ out.aria = Object.assign({}, tippy_esm_defaultProps.aria, {}, out.aria);
20622
+ out.aria = {
20623
+ expanded: out.aria.expanded === 'auto' ? props.interactive : out.aria.expanded,
20624
+ content: out.aria.content === 'auto' ? props.interactive ? null : 'describedby' : out.aria.content
20625
+ };
20626
+ return out;
20627
+ }
20628
+ function validateProps(partialProps, plugins) {
20629
+ if (partialProps === void 0) {
20630
+ partialProps = {};
20631
+ }
20632
 
20633
+ if (plugins === void 0) {
20634
+ plugins = [];
20635
+ }
20636
 
20637
+ var keys = Object.keys(partialProps);
20638
+ keys.forEach(function (prop) {
20639
+ var nonPluginProps = removeProperties(tippy_esm_defaultProps, Object.keys(pluginProps));
20640
+ var didPassUnknownProp = !tippy_esm_hasOwnProperty(nonPluginProps, prop); // Check if the prop exists in `plugins`
20641
 
20642
+ if (didPassUnknownProp) {
20643
+ didPassUnknownProp = plugins.filter(function (plugin) {
20644
+ return plugin.name === prop;
20645
+ }).length === 0;
20646
  }
20647
 
20648
+ warnWhen(didPassUnknownProp, ["`" + prop + "`", "is not a valid prop. You may have spelled it incorrectly, or if it's", 'a plugin, forgot to pass it in an array as props.plugins.', '\n\n', 'All props: https://atomiks.github.io/tippyjs/v6/all-props/\n', 'Plugins: https://atomiks.github.io/tippyjs/v6/plugins/'].join(' '));
20649
+ });
20650
+ }
20651
 
20652
+ var innerHTML = function innerHTML() {
20653
+ return 'innerHTML';
20654
+ };
 
20655
 
20656
+ function dangerouslySetInnerHTML(element, html) {
20657
+ element[innerHTML()] = html;
20658
+ }
 
 
20659
 
20660
+ function createArrowElement(value) {
20661
+ var arrow = div();
20662
 
20663
+ if (value === true) {
20664
+ arrow.className = ARROW_CLASS;
20665
+ } else {
20666
+ arrow.className = SVG_ARROW_CLASS;
20667
+
20668
+ if (tippy_esm_isElement(value)) {
20669
+ arrow.appendChild(value);
20670
  } else {
20671
+ dangerouslySetInnerHTML(arrow, value);
20672
  }
20673
  }
20674
 
20675
+ return arrow;
20676
+ }
 
20677
 
20678
+ function setContent(content, props) {
20679
+ if (tippy_esm_isElement(props.content)) {
20680
+ dangerouslySetInnerHTML(content, '');
20681
+ content.appendChild(props.content);
20682
+ } else if (typeof props.content !== 'function') {
20683
+ if (props.allowHTML) {
20684
+ dangerouslySetInnerHTML(content, props.content);
20685
+ } else {
20686
+ content.textContent = props.content;
20687
+ }
20688
  }
20689
+ }
20690
+ function getChildren(popper) {
20691
+ var box = popper.firstElementChild;
20692
+ var boxChildren = arrayFrom(box.children);
20693
+ return {
20694
+ box: box,
20695
+ content: boxChildren.find(function (node) {
20696
+ return node.classList.contains(CONTENT_CLASS);
20697
+ }),
20698
+ arrow: boxChildren.find(function (node) {
20699
+ return node.classList.contains(ARROW_CLASS) || node.classList.contains(SVG_ARROW_CLASS);
20700
+ }),
20701
+ backdrop: boxChildren.find(function (node) {
20702
+ return node.classList.contains(BACKDROP_CLASS);
20703
+ })
20704
+ };
20705
+ }
20706
+ function render(instance) {
20707
+ var popper = div();
20708
+ var box = div();
20709
+ box.className = BOX_CLASS;
20710
+ box.setAttribute('data-state', 'hidden');
20711
+ box.setAttribute('tabindex', '-1');
20712
+ var content = div();
20713
+ content.className = CONTENT_CLASS;
20714
+ content.setAttribute('data-state', 'hidden');
20715
+ setContent(content, instance.props);
20716
+ popper.appendChild(box);
20717
+ box.appendChild(content);
20718
+ onUpdate(instance.props, instance.props);
20719
 
20720
+ function onUpdate(prevProps, nextProps) {
20721
+ var _getChildren = getChildren(popper),
20722
+ box = _getChildren.box,
20723
+ content = _getChildren.content,
20724
+ arrow = _getChildren.arrow;
20725
 
20726
+ if (nextProps.theme) {
20727
+ box.setAttribute('data-theme', nextProps.theme);
20728
+ } else {
20729
+ box.removeAttribute('data-theme');
20730
  }
20731
 
20732
+ if (typeof nextProps.animation === 'string') {
20733
+ box.setAttribute('data-animation', nextProps.animation);
20734
+ } else {
20735
+ box.removeAttribute('data-animation');
20736
  }
20737
 
20738
+ if (nextProps.inertia) {
20739
+ box.setAttribute('data-inertia', '');
20740
+ } else {
20741
+ box.removeAttribute('data-inertia');
 
 
 
 
 
 
20742
  }
20743
 
20744
+ box.style.maxWidth = typeof nextProps.maxWidth === 'number' ? nextProps.maxWidth + "px" : nextProps.maxWidth;
 
 
 
 
 
20745
 
20746
+ if (nextProps.role) {
20747
+ box.setAttribute('role', nextProps.role);
20748
+ } else {
20749
+ box.removeAttribute('role');
20750
+ }
20751
 
20752
+ if (prevProps.content !== nextProps.content || prevProps.allowHTML !== nextProps.allowHTML) {
20753
+ setContent(content, instance.props);
20754
  }
20755
 
20756
+ if (nextProps.arrow) {
20757
+ if (!arrow) {
20758
+ box.appendChild(createArrowElement(nextProps.arrow));
20759
+ } else if (prevProps.arrow !== nextProps.arrow) {
20760
+ box.removeChild(arrow);
20761
+ box.appendChild(createArrowElement(nextProps.arrow));
20762
+ }
20763
+ } else if (arrow) {
20764
+ box.removeChild(arrow);
20765
+ }
20766
  }
 
20767
 
20768
+ return {
20769
+ popper: popper,
20770
+ onUpdate: onUpdate
20771
+ };
20772
+ } // Runtime check to identify if the render function is the default one; this
20773
+ // way we can apply default CSS transitions logic and it can be tree-shaken away
20774
 
20775
+ render.$$tippy = true;
 
20776
 
20777
+ var idCounter = 1;
20778
+ var mouseMoveListeners = []; // Used by `hideAll()`
20779
 
20780
+ var mountedInstances = [];
20781
+ function createTippy(reference, passedProps) {
20782
+ var props = evaluateProps(reference, Object.assign({}, tippy_esm_defaultProps, {}, getExtendedPassedProps(removeUndefinedProps(passedProps)))); // ===========================================================================
20783
+ // 🔒 Private members
20784
+ // ===========================================================================
 
20785
 
20786
+ var showTimeout;
20787
+ var hideTimeout;
20788
+ var scheduleHideAnimationFrame;
20789
+ var isVisibleFromClick = false;
20790
+ var didHideDueToDocumentMouseDown = false;
20791
+ var didTouchMove = false;
20792
+ var ignoreOnFirstUpdate = false;
20793
+ var lastTriggerEvent;
20794
+ var currentTransitionEndListener;
20795
+ var onFirstUpdate;
20796
+ var listeners = [];
20797
+ var debouncedOnMouseMove = tippy_esm_debounce(onMouseMove, props.interactiveDebounce);
20798
+ var currentTarget; // ===========================================================================
20799
+ // 🔑 Public members
20800
+ // ===========================================================================
20801
 
20802
+ var id = idCounter++;
20803
+ var popperInstance = null;
20804
+ var plugins = unique(props.plugins);
20805
+ var state = {
20806
+ // Is the instance currently enabled?
20807
+ isEnabled: true,
20808
+ // Is the tippy currently showing and not transitioning out?
20809
+ isVisible: false,
20810
+ // Has the instance been destroyed?
20811
+ isDestroyed: false,
20812
+ // Is the tippy currently mounted to the DOM?
20813
+ isMounted: false,
20814
+ // Has the tippy finished transitioning in?
20815
+ isShown: false
20816
+ };
20817
+ var instance = {
20818
+ // properties
20819
+ id: id,
20820
+ reference: reference,
20821
+ popper: div(),
20822
+ popperInstance: popperInstance,
20823
+ props: props,
20824
+ state: state,
20825
+ plugins: plugins,
20826
+ // methods
20827
+ clearDelayTimeouts: clearDelayTimeouts,
20828
+ setProps: setProps,
20829
+ setContent: setContent,
20830
+ show: show,
20831
+ hide: hide,
20832
+ hideWithInteractivity: hideWithInteractivity,
20833
+ enable: enable,
20834
+ disable: disable,
20835
+ unmount: unmount,
20836
+ destroy: destroy
20837
+ }; // TODO: Investigate why this early return causes a TDZ error in the tests —
20838
+ // it doesn't seem to happen in the browser
20839
 
20840
+ /* istanbul ignore if */
 
 
20841
 
20842
+ if (!props.render) {
20843
+ if (false) {}
 
 
20844
 
20845
+ return instance;
20846
+ } // ===========================================================================
20847
+ // Initial mutations
20848
+ // ===========================================================================
 
 
 
20849
 
 
 
20850
 
20851
+ var _props$render = props.render(instance),
20852
+ popper = _props$render.popper,
20853
+ onUpdate = _props$render.onUpdate;
20854
 
20855
+ popper.setAttribute('data-tippy-root', '');
20856
+ popper.id = "tippy-" + instance.id;
20857
+ instance.popper = popper;
20858
+ reference._tippy = instance;
20859
+ popper._tippy = instance;
20860
+ var pluginsHooks = plugins.map(function (plugin) {
20861
+ return plugin.fn(instance);
20862
+ });
20863
+ var hasAriaExpanded = reference.hasAttribute('aria-expanded');
20864
+ addListeners();
20865
+ handleAriaExpandedAttribute();
20866
+ handleStyles();
20867
+ invokeHook('onCreate', [instance]);
20868
 
20869
+ if (props.showOnCreate) {
20870
+ scheduleShow();
20871
+ } // Prevent a tippy with a delay from hiding if the cursor left then returned
20872
+ // before it started hiding
20873
+
20874
+
20875
+ popper.addEventListener('mouseenter', function () {
20876
+ if (instance.props.interactive && instance.state.isVisible) {
20877
+ instance.clearDelayTimeouts();
20878
  }
20879
  });
20880
+ popper.addEventListener('mouseleave', function (event) {
20881
+ if (instance.props.interactive && instance.props.trigger.indexOf('mouseenter') >= 0) {
20882
+ getDocument().addEventListener('mousemove', debouncedOnMouseMove);
20883
+ debouncedOnMouseMove(event);
20884
+ }
20885
+ });
20886
+ return instance; // ===========================================================================
20887
+ // 🔒 Private methods
20888
+ // ===========================================================================
20889
 
20890
+ function getNormalizedTouchSettings() {
20891
+ var touch = instance.props.touch;
20892
+ return Array.isArray(touch) ? touch : [touch, 0];
20893
+ }
20894
 
20895
+ function getIsCustomTouchBehavior() {
20896
+ return getNormalizedTouchSettings()[0] === 'hold';
20897
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20898
 
20899
+ function getIsDefaultRenderFn() {
20900
+ var _instance$props$rende;
 
 
20901
 
20902
+ // @ts-ignore
20903
+ return !!((_instance$props$rende = instance.props.render) == null ? void 0 : _instance$props$rende.$$tippy);
20904
  }
 
20905
 
20906
+ function getCurrentTarget() {
20907
+ return currentTarget || reference;
20908
+ }
20909
 
20910
+ function getDocument() {
20911
+ var parent = getCurrentTarget().parentNode;
20912
+ return parent ? getOwnerDocument(parent) : document;
20913
  }
20914
 
20915
+ function getDefaultTemplateChildren() {
20916
+ return getChildren(popper);
20917
+ }
20918
 
20919
+ function getDelay(isShow) {
20920
+ // For touch or keyboard input, force `0` delay for UX reasons
20921
+ // Also if the instance is mounted but not visible (transitioning out),
20922
+ // ignore delay
20923
+ if (instance.state.isMounted && !instance.state.isVisible || currentInput.isTouch || lastTriggerEvent && lastTriggerEvent.type === 'focus') {
20924
+ return 0;
20925
+ }
20926
 
20927
+ return getValueAtIndexOrReturn(instance.props.delay, isShow ? 0 : 1, tippy_esm_defaultProps.delay);
 
 
 
20928
  }
20929
 
20930
+ function handleStyles() {
20931
+ popper.style.pointerEvents = instance.props.interactive && instance.state.isVisible ? '' : 'none';
20932
+ popper.style.zIndex = "" + instance.props.zIndex;
 
 
 
 
 
20933
  }
20934
 
20935
+ function invokeHook(hook, args, shouldInvokePropsHook) {
20936
+ if (shouldInvokePropsHook === void 0) {
20937
+ shouldInvokePropsHook = true;
20938
+ }
 
 
 
 
 
 
 
20939
 
20940
+ pluginsHooks.forEach(function (pluginHooks) {
20941
+ if (pluginHooks[hook]) {
20942
+ pluginHooks[hook].apply(void 0, args);
20943
+ }
20944
  });
 
20945
 
20946
+ if (shouldInvokePropsHook) {
20947
+ var _instance$props;
20948
 
20949
+ (_instance$props = instance.props)[hook].apply(_instance$props, args);
 
 
 
 
20950
  }
 
 
 
 
 
 
 
 
 
 
 
20951
  }
20952
 
20953
+ function handleAriaContentAttribute() {
20954
+ var aria = instance.props.aria;
20955
+
20956
+ if (!aria.content) {
20957
+ return;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20958
  }
 
 
 
 
 
 
 
 
 
20959
 
20960
+ var attr = "aria-" + aria.content;
20961
+ var id = popper.id;
20962
+ var nodes = normalizeToArray(instance.props.triggerTarget || reference);
20963
+ nodes.forEach(function (node) {
20964
+ var currentValue = node.getAttribute(attr);
20965
 
20966
+ if (instance.state.isVisible) {
20967
+ node.setAttribute(attr, currentValue ? currentValue + " " + id : id);
20968
+ } else {
20969
+ var nextValue = currentValue && currentValue.replace(id, '').trim();
20970
 
20971
+ if (nextValue) {
20972
+ node.setAttribute(attr, nextValue);
20973
+ } else {
20974
+ node.removeAttribute(attr);
20975
+ }
20976
+ }
20977
+ });
20978
+ }
20979
 
20980
+ function handleAriaExpandedAttribute() {
20981
+ if (hasAriaExpanded || !instance.props.aria.expanded) {
20982
  return;
20983
+ }
20984
 
20985
+ var nodes = normalizeToArray(instance.props.triggerTarget || reference);
20986
+ nodes.forEach(function (node) {
20987
+ if (instance.props.interactive) {
20988
+ node.setAttribute('aria-expanded', instance.state.isVisible && node === getCurrentTarget() ? 'true' : 'false');
20989
+ } else {
20990
+ node.removeAttribute('aria-expanded');
20991
+ }
20992
+ });
20993
+ }
20994
 
20995
+ function cleanupInteractiveMouseListeners() {
20996
+ getDocument().removeEventListener('mousemove', debouncedOnMouseMove);
20997
+ mouseMoveListeners = mouseMoveListeners.filter(function (listener) {
20998
+ return listener !== debouncedOnMouseMove;
20999
+ });
21000
+ }
21001
 
21002
+ function onDocumentPress(event) {
21003
+ // Moved finger to scroll instead of an intentional tap outside
21004
+ if (currentInput.isTouch) {
21005
+ if (didTouchMove || event.type === 'mousedown') {
21006
+ return;
21007
+ }
21008
+ } // Clicked on interactive popper
21009
 
 
 
 
 
21010
 
21011
+ if (instance.props.interactive && popper.contains(event.target)) {
21012
+ return;
21013
+ } // Clicked on the event listeners target
21014
 
 
 
 
 
21015
 
21016
+ if (getCurrentTarget().contains(event.target)) {
21017
+ if (currentInput.isTouch) {
21018
+ return;
21019
+ }
21020
 
21021
+ if (instance.state.isVisible && instance.props.trigger.indexOf('click') >= 0) {
21022
+ return;
21023
+ }
21024
+ } else {
21025
+ invokeHook('onClickOutside', [instance, event]);
21026
  }
21027
 
21028
+ if (instance.props.hideOnClick === true) {
21029
+ instance.clearDelayTimeouts();
21030
+ instance.hide(); // `mousedown` event is fired right before `focus` if pressing the
21031
+ // currentTarget. This lets a tippy with `focus` trigger know that it
21032
+ // should not show
21033
 
21034
+ didHideDueToDocumentMouseDown = true;
21035
+ setTimeout(function () {
21036
+ didHideDueToDocumentMouseDown = false;
21037
+ }); // The listener gets added in `scheduleShow()`, but this may be hiding it
21038
+ // before it shows, and hide()'s early bail-out behavior can prevent it
21039
+ // from being cleaned up
21040
 
21041
+ if (!instance.state.isMounted) {
21042
+ removeDocumentPress();
21043
+ }
21044
  }
21045
+ }
21046
 
21047
+ function onTouchMove() {
21048
+ didTouchMove = true;
21049
+ }
 
21050
 
21051
+ function onTouchStart() {
21052
+ didTouchMove = false;
21053
+ }
21054
 
21055
+ function addDocumentPress() {
21056
+ var doc = getDocument();
21057
+ doc.addEventListener('mousedown', onDocumentPress, true);
21058
+ doc.addEventListener('touchend', onDocumentPress, TOUCH_OPTIONS);
21059
+ doc.addEventListener('touchstart', onTouchStart, TOUCH_OPTIONS);
21060
+ doc.addEventListener('touchmove', onTouchMove, TOUCH_OPTIONS);
21061
+ }
21062
 
21063
+ function removeDocumentPress() {
21064
+ var doc = getDocument();
21065
+ doc.removeEventListener('mousedown', onDocumentPress, true);
21066
+ doc.removeEventListener('touchend', onDocumentPress, TOUCH_OPTIONS);
21067
+ doc.removeEventListener('touchstart', onTouchStart, TOUCH_OPTIONS);
21068
+ doc.removeEventListener('touchmove', onTouchMove, TOUCH_OPTIONS);
21069
+ }
21070
+
21071
+ function onTransitionedOut(duration, callback) {
21072
+ onTransitionEnd(duration, function () {
21073
+ if (!instance.state.isVisible && popper.parentNode && popper.parentNode.contains(popper)) {
21074
+ callback();
21075
+ }
21076
  });
21077
+ }
21078
 
21079
+ function onTransitionedIn(duration, callback) {
21080
+ onTransitionEnd(duration, callback);
21081
+ }
21082
 
21083
+ function onTransitionEnd(duration, callback) {
21084
+ var box = getDefaultTemplateChildren().box;
 
 
 
 
 
 
 
21085
 
21086
+ function listener(event) {
21087
+ if (event.target === box) {
21088
+ updateTransitionEndListener(box, 'remove', listener);
21089
+ callback();
21090
+ }
21091
+ } // Make callback synchronous if duration is 0
21092
+ // `transitionend` won't fire otherwise
21093
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
21094
 
21095
+ if (duration === 0) {
21096
+ return callback();
 
21097
  }
21098
 
21099
+ updateTransitionEndListener(box, 'remove', currentTransitionEndListener);
21100
+ updateTransitionEndListener(box, 'add', listener);
21101
+ currentTransitionEndListener = listener;
21102
+ }
 
 
 
 
 
 
 
21103
 
21104
+ function on(eventType, handler, options) {
21105
+ if (options === void 0) {
21106
+ options = false;
21107
  }
21108
 
21109
+ var nodes = normalizeToArray(instance.props.triggerTarget || reference);
21110
+ nodes.forEach(function (node) {
21111
+ node.addEventListener(eventType, handler, options);
21112
+ listeners.push({
21113
+ node: node,
21114
+ eventType: eventType,
21115
+ handler: handler,
21116
+ options: options
21117
+ });
21118
+ });
21119
+ }
21120
 
21121
+ function addListeners() {
21122
+ if (getIsCustomTouchBehavior()) {
21123
+ on('touchstart', onTrigger, {
21124
+ passive: true
21125
+ });
21126
+ on('touchend', onMouseLeave, {
21127
+ passive: true
21128
+ });
21129
  }
21130
 
21131
+ splitBySpaces(instance.props.trigger).forEach(function (eventType) {
21132
+ if (eventType === 'manual') {
21133
+ return;
21134
+ }
21135
 
21136
+ on(eventType, onTrigger);
 
 
 
21137
 
21138
+ switch (eventType) {
21139
+ case 'mouseenter':
21140
+ on('mouseleave', onMouseLeave);
21141
+ break;
21142
 
21143
+ case 'focus':
21144
+ on(isIE ? 'focusout' : 'blur', onBlurOrFocusOut);
21145
+ break;
 
 
 
 
 
21146
 
21147
+ case 'focusin':
21148
+ on('focusout', onBlurOrFocusOut);
21149
+ break;
21150
+ }
21151
+ });
 
21152
  }
21153
 
21154
+ function removeListeners() {
21155
  listeners.forEach(function (_ref) {
21156
  var node = _ref.node,
21157
  eventType = _ref.eventType,
21162
  listeners = [];
21163
  }
21164
 
21165
+ function onTrigger(event) {
21166
+ var _lastTriggerEvent;
 
 
21167
 
21168
+ var shouldScheduleClickHide = false;
 
 
 
21169
 
21170
+ if (!instance.state.isEnabled || isEventListenerStopped(event) || didHideDueToDocumentMouseDown) {
21171
+ return;
21172
+ }
 
 
21173
 
21174
+ var wasFocused = ((_lastTriggerEvent = lastTriggerEvent) == null ? void 0 : _lastTriggerEvent.type) === 'focus';
21175
+ lastTriggerEvent = event;
21176
+ currentTarget = event.currentTarget;
21177
+ handleAriaExpandedAttribute();
21178
 
21179
+ if (!instance.state.isVisible && isMouseEvent(event)) {
21180
+ // If scrolling, `mouseenter` events can be fired if the cursor lands
21181
+ // over a new target, but `mousemove` events don't get fired. This
21182
+ // causes interactive tooltips to get stuck open until the cursor is
21183
+ // moved
21184
+ mouseMoveListeners.forEach(function (listener) {
21185
+ return listener(event);
21186
  });
21187
+ } // Toggle show/hide when clicking click-triggered tooltips
 
21188
 
 
 
 
 
 
 
 
21189
 
21190
+ if (event.type === 'click' && (instance.props.trigger.indexOf('mouseenter') < 0 || isVisibleFromClick) && instance.props.hideOnClick !== false && instance.state.isVisible) {
21191
+ shouldScheduleClickHide = true;
21192
+ } else {
21193
+ scheduleShow(event);
21194
+ }
21195
 
21196
+ if (event.type === 'click') {
21197
+ isVisibleFromClick = !shouldScheduleClickHide;
21198
+ }
21199
 
21200
+ if (shouldScheduleClickHide && !wasFocused) {
21201
+ scheduleHide(event);
21202
+ }
21203
+ }
 
21204
 
21205
+ function onMouseMove(event) {
21206
+ var target = event.target;
21207
+ var isCursorOverReferenceOrPopper = getCurrentTarget().contains(target) || popper.contains(target);
21208
 
21209
+ if (event.type === 'mousemove' && isCursorOverReferenceOrPopper) {
21210
+ return;
21211
  }
21212
 
21213
+ var popperTreeData = getNestedPopperTree().concat(popper).map(function (popper) {
21214
+ var _instance$popperInsta;
 
21215
 
21216
+ var instance = popper._tippy;
21217
+ var state = (_instance$popperInsta = instance.popperInstance) == null ? void 0 : _instance$popperInsta.state;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
21218
 
21219
+ if (state) {
21220
+ return {
21221
+ popperRect: popper.getBoundingClientRect(),
21222
+ popperState: state,
21223
+ props: props
21224
+ };
 
 
 
 
 
 
 
 
21225
  }
21226
+
21227
+ return null;
21228
+ }).filter(Boolean);
21229
+
21230
+ if (isCursorOutsideInteractiveBorder(popperTreeData, event)) {
21231
+ cleanupInteractiveMouseListeners();
21232
+ scheduleHide(event);
21233
+ }
21234
  }
 
21235
 
21236
+ function onMouseLeave(event) {
21237
+ var shouldBail = isEventListenerStopped(event) || instance.props.trigger.indexOf('click') >= 0 && isVisibleFromClick;
 
 
 
 
21238
 
21239
+ if (shouldBail) {
21240
+ return;
21241
+ }
 
 
21242
 
21243
+ if (instance.props.interactive) {
21244
+ instance.hideWithInteractivity(event);
21245
+ return;
21246
+ }
 
 
 
 
21247
 
21248
+ scheduleHide(event);
21249
+ }
 
21250
 
21251
+ function onBlurOrFocusOut(event) {
21252
+ if (instance.props.trigger.indexOf('focusin') < 0 && event.target !== getCurrentTarget()) {
21253
+ return;
21254
+ } // If focus was moved to within the popper
21255
 
 
 
 
 
 
 
 
 
 
 
21256
 
21257
+ if (instance.props.interactive && event.relatedTarget && popper.contains(event.relatedTarget)) {
21258
+ return;
21259
  }
21260
 
21261
+ scheduleHide(event);
21262
+ }
21263
+
21264
+ function isEventListenerStopped(event) {
21265
+ return currentInput.isTouch ? getIsCustomTouchBehavior() !== event.type.indexOf('touch') >= 0 : false;
21266
+ }
21267
+
21268
+ function createPopperInstance() {
21269
+ destroyPopperInstance();
21270
+ var _instance$props2 = instance.props,
21271
+ popperOptions = _instance$props2.popperOptions,
21272
+ placement = _instance$props2.placement,
21273
+ offset = _instance$props2.offset,
21274
+ getReferenceClientRect = _instance$props2.getReferenceClientRect,
21275
+ moveTransition = _instance$props2.moveTransition;
21276
+ var arrow = getIsDefaultRenderFn() ? getChildren(popper).arrow : null;
21277
+ var computedReference = getReferenceClientRect ? {
21278
+ getBoundingClientRect: getReferenceClientRect,
21279
+ contextElement: getReferenceClientRect.contextElement || getCurrentTarget()
21280
+ } : reference;
21281
+ var tippyModifier = {
21282
+ name: '$$tippy',
21283
+ enabled: true,
21284
+ phase: 'beforeWrite',
21285
+ requires: ['computeStyles'],
21286
+ fn: function fn(_ref2) {
21287
+ var state = _ref2.state;
21288
+
21289
+ if (getIsDefaultRenderFn()) {
21290
+ var _getDefaultTemplateCh = getDefaultTemplateChildren(),
21291
+ box = _getDefaultTemplateCh.box;
21292
+
21293
+ ['placement', 'reference-hidden', 'escaped'].forEach(function (attr) {
21294
+ if (attr === 'placement') {
21295
+ box.setAttribute('data-placement', state.placement);
21296
+ } else {
21297
+ if (state.attributes.popper["data-popper-" + attr]) {
21298
+ box.setAttribute("data-" + attr, '');
21299
+ } else {
21300
+ box.removeAttribute("data-" + attr);
21301
+ }
21302
+ }
21303
+ });
21304
+ state.attributes.popper = {};
21305
+ }
21306
+ }
21307
+ };
21308
+ var modifiers = [{
21309
+ name: 'offset',
21310
+ options: {
21311
+ offset: offset
21312
+ }
21313
+ }, {
21314
+ name: 'preventOverflow',
21315
+ options: {
21316
+ padding: {
21317
+ top: 2,
21318
+ bottom: 2,
21319
+ left: 5,
21320
+ right: 5
21321
+ }
21322
+ }
21323
+ }, {
21324
+ name: 'flip',
21325
+ options: {
21326
+ padding: 5
21327
+ }
21328
+ }, {
21329
+ name: 'computeStyles',
21330
+ options: {
21331
+ adaptive: !moveTransition
21332
+ }
21333
+ }, tippyModifier];
21334
+
21335
+ if (getIsDefaultRenderFn() && arrow) {
21336
+ modifiers.push({
21337
+ name: 'arrow',
21338
+ options: {
21339
+ element: arrow,
21340
+ padding: 3
21341
+ }
21342
+ });
21343
  }
21344
 
21345
+ modifiers.push.apply(modifiers, (popperOptions == null ? void 0 : popperOptions.modifiers) || []);
21346
+ instance.popperInstance = popper_createPopper(computedReference, popper, Object.assign({}, popperOptions, {
21347
+ placement: placement,
21348
+ onFirstUpdate: onFirstUpdate,
21349
+ modifiers: modifiers
21350
+ }));
21351
+ }
21352
 
21353
+ function destroyPopperInstance() {
21354
+ if (instance.popperInstance) {
21355
+ instance.popperInstance.destroy();
21356
+ instance.popperInstance = null;
 
 
21357
  }
21358
+ }
21359
 
21360
+ function mount() {
21361
+ var appendTo = instance.props.appendTo;
21362
+ var parentNode; // By default, we'll append the popper to the triggerTargets's parentNode so
21363
+ // it's directly after the reference element so the elements inside the
21364
+ // tippy can be tabbed to
21365
+ // If there are clipping issues, the user can specify a different appendTo
21366
+ // and ensure focus management is handled correctly manually
 
 
 
21367
 
21368
+ var node = getCurrentTarget();
 
 
 
 
 
21369
 
21370
+ if (instance.props.interactive && appendTo === tippy_esm_defaultProps.appendTo || appendTo === 'parent') {
21371
+ parentNode = node.parentNode;
21372
+ } else {
21373
+ parentNode = invokeWithArgsOrReturn(appendTo, [node]);
21374
+ } // The popper element needs to exist on the DOM before its position can be
21375
+ // updated as Popper needs to read its dimensions
21376
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
21377
 
21378
+ if (!parentNode.contains(popper)) {
21379
+ parentNode.appendChild(popper);
 
 
 
 
 
 
21380
  }
21381
 
21382
+ createPopperInstance();
21383
+ /* istanbul ignore else */
 
 
21384
 
21385
+ if (false) {}
21386
+ }
 
 
 
 
21387
 
21388
+ function getNestedPopperTree() {
21389
+ return arrayFrom(popper.querySelectorAll('[data-tippy-root]'));
21390
+ }
 
 
 
 
 
21391
 
21392
+ function scheduleShow(event) {
21393
+ instance.clearDelayTimeouts();
 
21394
 
21395
+ if (event) {
21396
+ invokeHook('onTrigger', [instance, event]);
21397
+ }
21398
 
21399
+ addDocumentPress();
21400
+ var delay = getDelay(true);
21401
 
21402
+ var _getNormalizedTouchSe = getNormalizedTouchSettings(),
21403
+ touchValue = _getNormalizedTouchSe[0],
21404
+ touchDelay = _getNormalizedTouchSe[1];
 
 
 
 
 
 
 
 
 
 
 
 
21405
 
21406
+ if (currentInput.isTouch && touchValue === 'hold' && touchDelay) {
21407
+ delay = touchDelay;
21408
+ }
 
 
 
 
 
 
 
 
 
21409
 
21410
+ if (delay) {
21411
+ showTimeout = setTimeout(function () {
21412
+ instance.show();
21413
+ }, delay);
21414
+ } else {
21415
+ instance.show();
21416
+ }
 
 
 
21417
  }
 
21418
 
21419
+ function scheduleHide(event) {
21420
+ instance.clearDelayTimeouts();
21421
+ invokeHook('onUntrigger', [instance, event]);
21422
 
21423
+ if (!instance.state.isVisible) {
21424
+ removeDocumentPress();
21425
+ return;
21426
+ } // For interactive tippies, scheduleHide is added to a document.body handler
21427
+ // from onMouseLeave so must intercept scheduled hides from mousemove/leave
21428
+ // events when trigger contains mouseenter and click, and the tip is
21429
+ // currently shown as a result of a click.
 
 
21430
 
 
 
 
 
 
21431
 
21432
+ if (instance.props.trigger.indexOf('mouseenter') >= 0 && instance.props.trigger.indexOf('click') >= 0 && ['mouseleave', 'mousemove'].indexOf(event.type) >= 0 && isVisibleFromClick) {
21433
+ return;
21434
  }
21435
 
21436
+ var delay = getDelay(false);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
21437
 
21438
+ if (delay) {
21439
+ hideTimeout = setTimeout(function () {
21440
+ if (instance.state.isVisible) {
21441
+ instance.hide();
21442
  }
21443
+ }, delay);
21444
+ } else {
21445
+ // Fixes a `transitionend` problem when it fires 1 frame too
21446
+ // late sometimes, we don't want hide() to be called.
21447
+ scheduleHideAnimationFrame = requestAnimationFrame(function () {
21448
+ instance.hide();
21449
+ });
 
 
 
 
21450
  }
21451
+ } // ===========================================================================
21452
+ // 🔑 Public methods
21453
+ // ===========================================================================
21454
 
 
 
 
 
 
21455
 
21456
+ function enable() {
21457
+ instance.state.isEnabled = true;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
21458
  }
 
 
 
 
 
 
21459
 
21460
+ function disable() {
21461
+ // Disabling the instance should also hide it
21462
+ // https://github.com/atomiks/tippy.js-react/issues/106
21463
+ instance.hide();
21464
+ instance.state.isEnabled = false;
21465
+ }
21466
 
21467
+ function clearDelayTimeouts() {
21468
+ clearTimeout(showTimeout);
21469
+ clearTimeout(hideTimeout);
21470
+ cancelAnimationFrame(scheduleHideAnimationFrame);
21471
  }
21472
 
21473
+ function setProps(partialProps) {
21474
+ /* istanbul ignore else */
21475
+ if (false) {}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
21476
 
21477
+ if (instance.state.isDestroyed) {
21478
+ return;
21479
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
21480
 
21481
+ invokeHook('onBeforeUpdate', [instance, partialProps]);
21482
+ removeListeners();
21483
+ var prevProps = instance.props;
21484
+ var nextProps = evaluateProps(reference, Object.assign({}, instance.props, {}, partialProps, {
21485
+ ignoreAttributes: true
21486
+ }));
21487
+ instance.props = nextProps;
21488
+ addListeners();
21489
 
21490
+ if (prevProps.interactiveDebounce !== nextProps.interactiveDebounce) {
21491
+ cleanupInteractiveMouseListeners();
21492
+ debouncedOnMouseMove = tippy_esm_debounce(onMouseMove, nextProps.interactiveDebounce);
21493
+ } // Ensure stale aria-expanded attributes are removed
21494
 
 
 
 
 
 
 
 
 
 
21495
 
21496
+ if (prevProps.triggerTarget && !nextProps.triggerTarget) {
21497
+ normalizeToArray(prevProps.triggerTarget).forEach(function (node) {
21498
+ node.removeAttribute('aria-expanded');
21499
+ });
21500
+ } else if (nextProps.triggerTarget) {
21501
+ reference.removeAttribute('aria-expanded');
21502
+ }
21503
 
21504
+ handleAriaExpandedAttribute();
21505
+ handleStyles();
 
 
 
 
21506
 
21507
+ if (onUpdate) {
21508
+ onUpdate(prevProps, nextProps);
21509
  }
21510
 
21511
+ if (instance.popperInstance) {
21512
+ createPopperInstance(); // Fixes an issue with nested tippies if they are all getting re-rendered,
21513
+ // and the nested ones get re-rendered first.
21514
+ // https://github.com/atomiks/tippyjs-react/issues/177
21515
+ // TODO: find a cleaner / more efficient solution(!)
21516
+
21517
+ getNestedPopperTree().forEach(function (nestedPopper) {
21518
+ // React (and other UI libs likely) requires a rAF wrapper as it flushes
21519
+ // its work in one
21520
+ requestAnimationFrame(nestedPopper._tippy.popperInstance.forceUpdate);
21521
+ });
21522
  }
21523
 
21524
+ invokeHook('onAfterUpdate', [instance, partialProps]);
21525
+ }
21526
 
21527
+ function setContent(content) {
21528
+ instance.setProps({
21529
+ content: content
21530
+ });
21531
+ }
21532
 
21533
+ function show() {
21534
+ /* istanbul ignore else */
21535
+ if (false) {} // Early bail-out
 
 
21536
 
 
 
21537
 
21538
+ var isAlreadyVisible = instance.state.isVisible;
21539
+ var isDestroyed = instance.state.isDestroyed;
21540
+ var isDisabled = !instance.state.isEnabled;
21541
+ var isTouchAndTouchDisabled = currentInput.isTouch && !instance.props.touch;
21542
+ var duration = getValueAtIndexOrReturn(instance.props.duration, 0, tippy_esm_defaultProps.duration);
21543
 
21544
+ if (isAlreadyVisible || isDestroyed || isDisabled || isTouchAndTouchDisabled) {
21545
+ return;
21546
+ } // Normalize `disabled` behavior across browsers.
21547
+ // Firefox allows events on disabled elements, but Chrome doesn't.
21548
+ // Using a wrapper element (i.e. <span>) is recommended.
 
 
 
 
21549
 
 
 
 
 
21550
 
21551
+ if (getCurrentTarget().hasAttribute('disabled')) {
21552
+ return;
21553
+ }
21554
 
21555
+ invokeHook('onShow', [instance], false);
 
 
21556
 
21557
+ if (instance.props.onShow(instance) === false) {
21558
+ return;
21559
+ }
21560
 
21561
+ instance.state.isVisible = true;
21562
 
21563
+ if (getIsDefaultRenderFn()) {
21564
+ popper.style.visibility = 'visible';
21565
+ }
21566
 
21567
+ handleStyles();
21568
+ addDocumentPress();
21569
 
21570
+ if (!instance.state.isMounted) {
21571
+ popper.style.transition = 'none';
21572
+ } // If flipping to the opposite side after hiding at least once, the
21573
+ // animation will use the wrong placement without resetting the duration
21574
 
21575
 
21576
+ if (getIsDefaultRenderFn()) {
21577
+ var _getDefaultTemplateCh2 = getDefaultTemplateChildren(),
21578
+ box = _getDefaultTemplateCh2.box,
21579
+ content = _getDefaultTemplateCh2.content;
21580
 
21581
+ setTransitionDuration([box, content], 0);
21582
+ }
 
 
 
21583
 
21584
+ onFirstUpdate = function onFirstUpdate() {
21585
+ var _instance$popperInsta2;
 
 
 
21586
 
21587
+ if (!instance.state.isVisible || ignoreOnFirstUpdate) {
21588
+ return;
21589
+ }
21590
 
21591
+ ignoreOnFirstUpdate = true; // reflow
 
 
 
 
 
21592
 
21593
+ void popper.offsetHeight;
21594
+ popper.style.transition = instance.props.moveTransition;
 
 
 
 
 
 
 
 
 
 
21595
 
21596
+ if (getIsDefaultRenderFn() && instance.props.animation) {
21597
+ var _getDefaultTemplateCh3 = getDefaultTemplateChildren(),
21598
+ _box = _getDefaultTemplateCh3.box,
21599
+ _content = _getDefaultTemplateCh3.content;
21600
 
21601
+ setTransitionDuration([_box, _content], duration);
21602
+ setVisibilityState([_box, _content], 'visible');
21603
+ }
21604
 
21605
+ handleAriaContentAttribute();
21606
+ handleAriaExpandedAttribute();
21607
+ pushIfUnique(mountedInstances, instance); // certain modifiers (e.g. `maxSize`) require a second update after the
21608
+ // popper has been positioned for the first time
21609
 
21610
+ (_instance$popperInsta2 = instance.popperInstance) == null ? void 0 : _instance$popperInsta2.forceUpdate();
21611
+ instance.state.isMounted = true;
21612
+ invokeHook('onMount', [instance]);
 
 
 
 
21613
 
21614
+ if (instance.props.animation && getIsDefaultRenderFn()) {
21615
+ onTransitionedIn(duration, function () {
21616
+ instance.state.isShown = true;
21617
+ invokeHook('onShown', [instance]);
21618
+ });
 
 
21619
  }
21620
+ };
21621
 
21622
+ mount();
 
 
21623
  }
 
21624
 
21625
+ function hide() {
21626
+ /* istanbul ignore else */
21627
+ if (false) {} // Early bail-out
 
 
 
 
 
 
 
 
 
 
21628
 
 
 
 
 
 
 
21629
 
21630
+ var isAlreadyHidden = !instance.state.isVisible;
21631
+ var isDestroyed = instance.state.isDestroyed;
21632
+ var isDisabled = !instance.state.isEnabled;
21633
+ var duration = getValueAtIndexOrReturn(instance.props.duration, 1, tippy_esm_defaultProps.duration);
 
21634
 
21635
+ if (isAlreadyHidden || isDestroyed || isDisabled) {
21636
+ return;
21637
+ }
21638
 
21639
+ invokeHook('onHide', [instance], false);
 
21640
 
21641
+ if (instance.props.onHide(instance) === false) {
21642
+ return;
 
 
21643
  }
 
 
21644
 
21645
+ instance.state.isVisible = false;
21646
+ instance.state.isShown = false;
21647
+ ignoreOnFirstUpdate = false;
21648
+ isVisibleFromClick = false;
 
21649
 
21650
+ if (getIsDefaultRenderFn()) {
21651
+ popper.style.visibility = 'hidden';
21652
+ }
21653
 
21654
+ cleanupInteractiveMouseListeners();
21655
+ removeDocumentPress();
21656
+ handleStyles();
21657
 
21658
+ if (getIsDefaultRenderFn()) {
21659
+ var _getDefaultTemplateCh4 = getDefaultTemplateChildren(),
21660
+ box = _getDefaultTemplateCh4.box,
21661
+ content = _getDefaultTemplateCh4.content;
21662
 
21663
+ if (instance.props.animation) {
21664
+ setTransitionDuration([box, content], duration);
21665
+ setVisibilityState([box, content], 'hidden');
21666
  }
 
 
21667
  }
21668
 
21669
+ handleAriaContentAttribute();
21670
+ handleAriaExpandedAttribute();
21671
+
21672
+ if (instance.props.animation) {
21673
+ if (getIsDefaultRenderFn()) {
21674
+ onTransitionedOut(duration, instance.unmount);
21675
  }
21676
+ } else {
21677
+ instance.unmount();
21678
  }
 
 
 
 
 
 
21679
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
21680
 
21681
+ function hideWithInteractivity(event) {
21682
+ /* istanbul ignore else */
21683
+ if (false) {}
21684
 
21685
+ getDocument().addEventListener('mousemove', debouncedOnMouseMove);
21686
+ pushIfUnique(mouseMoveListeners, debouncedOnMouseMove);
21687
+ debouncedOnMouseMove(event);
21688
+ }
21689
 
21690
+ function unmount() {
21691
+ /* istanbul ignore else */
21692
+ if (false) {}
21693
 
21694
+ if (instance.state.isVisible) {
21695
+ instance.hide();
21696
+ }
21697
 
21698
+ if (!instance.state.isMounted) {
21699
+ return;
21700
+ }
 
 
 
 
 
 
 
 
21701
 
21702
+ destroyPopperInstance(); // If a popper is not interactive, it will be appended outside the popper
21703
+ // tree by default. This seems mainly for interactive tippies, but we should
21704
+ // find a workaround if possible
21705
 
21706
+ getNestedPopperTree().forEach(function (nestedPopper) {
21707
+ nestedPopper._tippy.unmount();
21708
+ });
21709
 
21710
+ if (popper.parentNode) {
21711
+ popper.parentNode.removeChild(popper);
21712
  }
21713
 
21714
+ mountedInstances = mountedInstances.filter(function (i) {
21715
+ return i !== instance;
21716
+ });
21717
+ instance.state.isMounted = false;
21718
+ invokeHook('onHidden', [instance]);
21719
+ }
21720
 
21721
+ function destroy() {
21722
+ /* istanbul ignore else */
21723
+ if (false) {}
 
 
 
 
 
 
 
 
21724
 
21725
+ if (instance.state.isDestroyed) {
21726
+ return;
 
 
 
 
 
 
 
 
 
21727
  }
21728
 
21729
+ instance.clearDelayTimeouts();
21730
+ instance.unmount();
21731
+ removeListeners();
21732
+ delete reference._tippy;
21733
+ instance.state.isDestroyed = true;
21734
+ invokeHook('onDestroy', [instance]);
21735
+ }
21736
+ }
21737
 
21738
+ function tippy(targets, optionalProps) {
21739
+ if (optionalProps === void 0) {
21740
+ optionalProps = {};
21741
+ }
21742
 
21743
+ var plugins = tippy_esm_defaultProps.plugins.concat(optionalProps.plugins || []);
21744
+ /* istanbul ignore else */
 
 
21745
 
21746
+ if (false) {}
 
 
21747
 
21748
+ bindGlobalEventListeners();
21749
+ var passedProps = Object.assign({}, optionalProps, {
21750
+ plugins: plugins
21751
+ });
21752
+ var elements = getArrayOfElements(targets);
21753
+ /* istanbul ignore else */
21754
 
21755
+ if (false) { var isMoreThanOneReferenceElement, isSingleContentElement; }
 
 
 
 
 
 
21756
 
21757
+ var instances = elements.reduce(function (acc, reference) {
21758
+ var instance = reference && createTippy(reference, passedProps);
 
 
 
 
21759
 
21760
+ if (instance) {
21761
+ acc.push(instance);
21762
+ }
21763
 
21764
+ return acc;
21765
+ }, []);
21766
+ return tippy_esm_isElement(targets) ? instances[0] : instances;
21767
+ }
 
21768
 
21769
+ tippy.defaultProps = tippy_esm_defaultProps;
21770
+ tippy.setDefaultProps = setDefaultProps;
21771
+ tippy.currentInput = currentInput;
21772
+ var hideAll = function hideAll(_temp) {
21773
+ var _ref = _temp === void 0 ? {} : _temp,
21774
+ excludedReferenceOrInstance = _ref.exclude,
21775
+ duration = _ref.duration;
21776
 
21777
+ mountedInstances.forEach(function (instance) {
21778
+ var isExcluded = false;
21779
 
21780
+ if (excludedReferenceOrInstance) {
21781
+ isExcluded = isReferenceElement(excludedReferenceOrInstance) ? instance.reference === excludedReferenceOrInstance : instance.popper === excludedReferenceOrInstance.popper;
21782
+ }
 
 
21783
 
21784
+ if (!isExcluded) {
21785
+ var originalDuration = instance.props.duration;
21786
+ instance.setProps({
21787
+ duration: duration
21788
+ });
21789
+ instance.hide();
 
21790
 
21791
+ if (!instance.state.isDestroyed) {
21792
+ instance.setProps({
21793
+ duration: originalDuration
 
 
21794
  });
21795
  }
21796
+ }
21797
+ });
21798
+ };
 
 
 
 
21799
 
21800
+ // every time the popper is destroyed (i.e. a new target), removing the styles
21801
+ // and causing transitions to break for singletons when the console is open, but
21802
+ // most notably for non-transform styles being used, `gpuAcceleration: false`.
 
 
 
 
 
 
 
 
 
 
21803
 
21804
+ var applyStylesModifier = Object.assign({}, modifiers_applyStyles, {
21805
+ effect: function effect(_ref) {
21806
+ var state = _ref.state;
21807
+ var initialStyles = {
21808
+ popper: {
21809
+ position: state.options.strategy,
21810
+ left: '0',
21811
+ top: '0',
21812
+ margin: '0'
21813
+ },
21814
+ arrow: {
21815
+ position: 'absolute'
21816
+ },
21817
+ reference: {}
21818
+ };
21819
+ Object.assign(state.elements.popper.style, initialStyles.popper);
21820
+ state.styles = initialStyles;
21821
 
21822
+ if (state.elements.arrow) {
21823
+ Object.assign(state.elements.arrow.style, initialStyles.arrow);
21824
+ } // intentionally return no cleanup function
21825
+ // return () => { ... }
 
 
 
21826
 
 
 
 
 
 
 
 
 
 
 
 
 
21827
  }
21828
+ });
21829
 
21830
+ var createSingleton = function createSingleton(tippyInstances, optionalProps) {
21831
+ var _optionalProps$popper;
 
 
 
 
 
 
 
 
21832
 
21833
+ if (optionalProps === void 0) {
21834
+ optionalProps = {};
21835
+ }
21836
 
21837
+ /* istanbul ignore else */
21838
+ if (false) {}
 
 
 
 
 
 
 
21839
 
21840
+ var individualInstances = tippyInstances;
21841
+ var references = [];
21842
+ var currentTarget;
21843
+ var overrides = optionalProps.overrides;
21844
+ var interceptSetPropsCleanups = [];
21845
+ var shownOnCreate = false;
21846
 
21847
+ function setReferences() {
21848
+ references = individualInstances.map(function (instance) {
21849
+ return instance.reference;
21850
+ });
21851
+ }
21852
 
21853
+ function enableInstances(isEnabled) {
21854
+ individualInstances.forEach(function (instance) {
21855
+ if (isEnabled) {
21856
+ instance.enable();
21857
+ } else {
21858
+ instance.disable();
21859
  }
21860
+ });
21861
+ }
21862
 
21863
+ function interceptSetProps(singleton) {
21864
+ return individualInstances.map(function (instance) {
21865
+ var originalSetProps = instance.setProps;
 
 
 
 
 
21866
 
21867
+ instance.setProps = function (props) {
21868
+ originalSetProps(props);
 
21869
 
21870
+ if (instance.reference === currentTarget) {
21871
+ singleton.setProps(props);
21872
+ }
 
 
 
21873
  };
 
 
 
 
 
 
 
 
 
 
21874
 
21875
+ return function () {
21876
+ instance.setProps = originalSetProps;
21877
+ };
21878
+ });
21879
+ } // have to pass singleton, as it maybe undefined on first call
21880
 
 
 
 
21881
 
21882
+ function prepareInstance(singleton, target) {
21883
+ var index = references.indexOf(target); // bail-out
 
21884
 
21885
+ if (target === currentTarget) {
21886
+ return;
21887
+ }
 
 
 
21888
 
21889
+ currentTarget = target;
21890
+ var overrideProps = (overrides || []).concat('content').reduce(function (acc, prop) {
21891
+ acc[prop] = individualInstances[index].props[prop];
21892
+ return acc;
21893
+ }, {});
21894
+ singleton.setProps(Object.assign({}, overrideProps, {
21895
+ getReferenceClientRect: typeof overrideProps.getReferenceClientRect === 'function' ? overrideProps.getReferenceClientRect : function () {
21896
+ return target.getBoundingClientRect();
21897
  }
21898
+ }));
21899
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
21900
 
21901
+ enableInstances(false);
21902
+ setReferences();
21903
+ var plugin = {
21904
+ fn: function fn() {
21905
+ return {
21906
+ onDestroy: function onDestroy() {
21907
+ enableInstances(true);
21908
+ },
21909
+ onHidden: function onHidden() {
21910
+ currentTarget = null;
21911
+ },
21912
+ onClickOutside: function onClickOutside(instance) {
21913
+ if (instance.props.showOnCreate && !shownOnCreate) {
21914
+ shownOnCreate = true;
21915
+ currentTarget = null;
21916
  }
21917
  },
21918
+ onShow: function onShow(instance) {
21919
+ if (instance.props.showOnCreate && !shownOnCreate) {
21920
+ shownOnCreate = true;
21921
+ prepareInstance(instance, references[0]);
 
 
 
 
 
21922
  }
21923
+ },
21924
+ onTrigger: function onTrigger(instance, event) {
21925
+ prepareInstance(instance, event.currentTarget);
21926
  }
21927
  };
21928
+ }
 
21929
  };
21930
+ var singleton = tippy(div(), Object.assign({}, removeProperties(optionalProps, ['overrides']), {
21931
+ plugins: [plugin].concat(optionalProps.plugins || []),
21932
+ triggerTarget: references,
21933
+ popperOptions: Object.assign({}, optionalProps.popperOptions, {
21934
+ modifiers: [].concat(((_optionalProps$popper = optionalProps.popperOptions) == null ? void 0 : _optionalProps$popper.modifiers) || [], [applyStylesModifier])
21935
+ })
21936
+ }));
21937
+ var originalShow = singleton.show;
21938
 
21939
+ singleton.show = function (target) {
21940
+ originalShow(); // first time, showOnCreate or programmatic call with no params
21941
+ // default to showing first instance
 
21942
 
21943
+ if (!currentTarget && target == null) {
21944
+ return prepareInstance(singleton, references[0]);
21945
+ } // triggered from event (do nothing as prepareInstance already called by onTrigger)
21946
+ // programmatic call with no params when already visible (do nothing again)
 
 
 
 
 
 
 
 
 
21947
 
 
 
21948
 
21949
+ if (currentTarget && target == null) {
21950
+ return;
21951
+ } // target is index of instance
21952
 
 
21953
 
21954
+ if (typeof target === 'number') {
21955
+ return references[target] && prepareInstance(singleton, references[target]);
21956
+ } // target is a child tippy instance
21957
 
 
 
21958
 
21959
+ if (individualInstances.includes(target)) {
21960
+ var ref = target.reference;
21961
+ return prepareInstance(singleton, ref);
21962
+ } // target is a ReferenceElement
21963
 
 
21964
 
21965
+ if (references.includes(target)) {
21966
+ return prepareInstance(singleton, target);
21967
+ }
21968
+ };
21969
 
21970
+ singleton.showNext = function () {
21971
+ var first = references[0];
 
 
 
 
21972
 
21973
+ if (!currentTarget) {
21974
+ return singleton.show(0);
21975
+ }
21976
 
21977
+ var index = references.indexOf(currentTarget);
21978
+ singleton.show(references[index + 1] || first);
21979
+ };
21980
 
21981
+ singleton.showPrevious = function () {
21982
+ var last = references[references.length - 1];
 
 
 
 
 
21983
 
21984
+ if (!currentTarget) {
21985
+ return singleton.show(last);
21986
+ }
21987
 
21988
+ var index = references.indexOf(currentTarget);
21989
+ var target = references[index - 1] || last;
21990
+ singleton.show(target);
21991
+ };
 
 
 
 
 
 
 
 
21992
 
21993
+ var originalSetProps = singleton.setProps;
 
 
 
 
 
 
 
 
21994
 
21995
+ singleton.setProps = function (props) {
21996
+ overrides = props.overrides || overrides;
21997
+ originalSetProps(props);
21998
+ };
21999
 
22000
+ singleton.setInstances = function (nextInstances) {
22001
+ enableInstances(true);
22002
+ interceptSetPropsCleanups.forEach(function (fn) {
22003
+ return fn();
22004
+ });
22005
+ individualInstances = nextInstances;
22006
+ enableInstances(false);
22007
+ setReferences();
22008
+ interceptSetProps(singleton);
22009
+ singleton.setProps({
22010
+ triggerTarget: references
22011
+ });
22012
+ };
22013
 
22014
+ interceptSetPropsCleanups = interceptSetProps(singleton);
22015
+ return singleton;
22016
+ };
 
 
22017
 
22018
+ var BUBBLING_EVENTS_MAP = {
22019
+ mouseover: 'mouseenter',
22020
+ focusin: 'focus',
22021
+ click: 'click'
22022
+ };
22023
+ /**
22024
+ * Creates a delegate instance that controls the creation of tippy instances
22025
+ * for child elements (`target` CSS selector).
22026
+ */
22027
 
22028
+ function delegate(targets, props) {
22029
+ /* istanbul ignore else */
22030
+ if (false) {}
 
 
22031
 
22032
+ var listeners = [];
22033
+ var childTippyInstances = [];
22034
+ var disabled = false;
22035
+ var target = props.target;
22036
+ var nativeProps = removeProperties(props, ['target']);
22037
+ var parentProps = Object.assign({}, nativeProps, {
22038
+ trigger: 'manual',
22039
+ touch: false
22040
+ });
22041
+ var childProps = Object.assign({}, nativeProps, {
22042
+ showOnCreate: true
22043
+ });
22044
+ var returnValue = tippy(targets, parentProps);
22045
+ var normalizedReturnValue = normalizeToArray(returnValue);
22046
+
22047
+ function onTrigger(event) {
22048
+ if (!event.target || disabled) {
22049
+ return;
22050
  }
 
 
22051
 
22052
+ var targetNode = event.target.closest(target);
 
 
 
 
 
 
 
22053
 
22054
+ if (!targetNode) {
22055
+ return;
22056
+ } // Get relevant trigger with fallbacks:
22057
+ // 1. Check `data-tippy-trigger` attribute on target node
22058
+ // 2. Fallback to `trigger` passed to `delegate()`
22059
+ // 3. Fallback to `defaultProps.trigger`
22060
 
 
 
 
 
22061
 
22062
+ var trigger = targetNode.getAttribute('data-tippy-trigger') || props.trigger || tippy_esm_defaultProps.trigger; // @ts-ignore
 
 
22063
 
22064
+ if (targetNode._tippy) {
22065
+ return;
 
22066
  }
 
 
 
 
 
22067
 
22068
+ if (event.type === 'touchstart' && typeof childProps.touch === 'boolean') {
22069
+ return;
 
 
22070
  }
 
22071
 
22072
+ if (event.type !== 'touchstart' && trigger.indexOf(BUBBLING_EVENTS_MAP[event.type]) < 0) {
22073
+ return;
 
 
 
 
22074
  }
 
22075
 
22076
+ var instance = tippy(targetNode, childProps);
 
22077
 
22078
+ if (instance) {
22079
+ childTippyInstances = childTippyInstances.concat(instance);
22080
+ }
22081
+ }
22082
 
22083
+ function on(node, eventType, handler, options) {
22084
+ if (options === void 0) {
22085
+ options = false;
22086
+ }
 
 
 
 
 
22087
 
22088
+ node.addEventListener(eventType, handler, options);
22089
+ listeners.push({
22090
+ node: node,
22091
+ eventType: eventType,
22092
+ handler: handler,
22093
+ options: options
22094
+ });
22095
+ }
22096
 
22097
+ function addEventListeners(instance) {
22098
+ var reference = instance.reference;
22099
+ on(reference, 'touchstart', onTrigger, TOUCH_OPTIONS);
22100
+ on(reference, 'mouseover', onTrigger);
22101
+ on(reference, 'focusin', onTrigger);
22102
+ on(reference, 'click', onTrigger);
22103
+ }
22104
 
22105
+ function removeEventListeners() {
22106
+ listeners.forEach(function (_ref) {
22107
+ var node = _ref.node,
22108
+ eventType = _ref.eventType,
22109
+ handler = _ref.handler,
22110
+ options = _ref.options;
22111
+ node.removeEventListener(eventType, handler, options);
22112
+ });
22113
+ listeners = [];
22114
+ }
22115
 
22116
+ function applyMutations(instance) {
22117
+ var originalDestroy = instance.destroy;
22118
+ var originalEnable = instance.enable;
22119
+ var originalDisable = instance.disable;
22120
 
22121
+ instance.destroy = function (shouldDestroyChildInstances) {
22122
+ if (shouldDestroyChildInstances === void 0) {
22123
+ shouldDestroyChildInstances = true;
22124
+ }
22125
 
22126
+ if (shouldDestroyChildInstances) {
22127
+ childTippyInstances.forEach(function (instance) {
22128
+ instance.destroy();
22129
+ });
22130
+ }
22131
 
22132
+ childTippyInstances = [];
22133
+ removeEventListeners();
22134
+ originalDestroy();
 
 
 
 
 
 
 
22135
  };
 
 
 
 
 
 
 
 
 
 
 
22136
 
22137
+ instance.enable = function () {
22138
+ originalEnable();
22139
+ childTippyInstances.forEach(function (instance) {
22140
+ return instance.enable();
22141
+ });
22142
+ disabled = false;
22143
  };
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
22144
 
22145
+ instance.disable = function () {
22146
+ originalDisable();
22147
+ childTippyInstances.forEach(function (instance) {
22148
+ return instance.disable();
22149
+ });
22150
+ disabled = true;
22151
+ };
22152
 
22153
+ addEventListeners(instance);
22154
+ }
22155
 
22156
+ normalizedReturnValue.forEach(applyMutations);
22157
+ return returnValue;
22158
+ }
22159
 
22160
+ var animateFill = {
22161
+ name: 'animateFill',
22162
+ defaultValue: false,
22163
+ fn: function fn(instance) {
22164
+ var _instance$props$rende;
22165
 
22166
+ // @ts-ignore
22167
+ if (!((_instance$props$rende = instance.props.render) == null ? void 0 : _instance$props$rende.$$tippy)) {
22168
+ if (false) {}
22169
 
22170
+ return {};
22171
+ }
22172
 
22173
+ var _getChildren = getChildren(instance.popper),
22174
+ box = _getChildren.box,
22175
+ content = _getChildren.content;
22176
 
22177
+ var backdrop = instance.props.animateFill ? createBackdropElement() : null;
22178
+ return {
22179
+ onCreate: function onCreate() {
22180
+ if (backdrop) {
22181
+ box.insertBefore(backdrop, box.firstElementChild);
22182
+ box.setAttribute('data-animatefill', '');
22183
+ box.style.overflow = 'hidden';
22184
+ instance.setProps({
22185
+ arrow: false,
22186
+ animation: 'shift-away'
22187
+ });
22188
+ }
22189
+ },
22190
+ onMount: function onMount() {
22191
+ if (backdrop) {
22192
+ var transitionDuration = box.style.transitionDuration;
22193
+ var duration = Number(transitionDuration.replace('ms', '')); // The content should fade in after the backdrop has mostly filled the
22194
+ // tooltip element. `clip-path` is the other alternative but is not
22195
+ // well-supported and is buggy on some devices.
22196
 
22197
+ content.style.transitionDelay = Math.round(duration / 10) + "ms";
22198
+ backdrop.style.transitionDuration = transitionDuration;
22199
+ setVisibilityState([backdrop], 'visible');
22200
+ }
22201
+ },
22202
+ onShow: function onShow() {
22203
+ if (backdrop) {
22204
+ backdrop.style.transitionDuration = '0ms';
22205
+ }
22206
+ },
22207
+ onHide: function onHide() {
22208
+ if (backdrop) {
22209
+ setVisibilityState([backdrop], 'hidden');
22210
+ }
22211
+ }
22212
+ };
22213
  }
22214
  };
22215
 
22216
+ function createBackdropElement() {
22217
+ var backdrop = div();
22218
+ backdrop.className = BACKDROP_CLASS;
22219
+ setVisibilityState([backdrop], 'hidden');
22220
+ return backdrop;
22221
  }
22222
 
22223
+ var mouseCoords = {
22224
+ clientX: 0,
22225
+ clientY: 0
22226
+ };
22227
+ var activeInstances = [];
22228
 
22229
+ function storeMouseCoords(_ref) {
22230
+ var clientX = _ref.clientX,
22231
+ clientY = _ref.clientY;
22232
+ mouseCoords = {
22233
+ clientX: clientX,
22234
+ clientY: clientY
22235
+ };
22236
+ }
22237
 
22238
+ function addMouseCoordsListener(doc) {
22239
+ doc.addEventListener('mousemove', storeMouseCoords);
 
 
22240
  }
22241
 
22242
+ function removeMouseCoordsListener(doc) {
22243
+ doc.removeEventListener('mousemove', storeMouseCoords);
22244
+ }
22245
 
22246
+ var followCursor = {
22247
+ name: 'followCursor',
22248
+ defaultValue: false,
22249
+ fn: function fn(instance) {
22250
+ var reference = instance.reference;
22251
+ var doc = getOwnerDocument(instance.props.triggerTarget || reference);
22252
+ var isInternalUpdate = false;
22253
+ var wasFocusEvent = false;
22254
+ var isUnmounted = true;
22255
+ var prevProps = instance.props;
22256
 
22257
+ function getIsInitialBehavior() {
22258
+ return instance.props.followCursor === 'initial' && instance.state.isVisible;
 
 
 
22259
  }
22260
 
22261
+ function addListener() {
22262
+ doc.addEventListener('mousemove', onMouseMove);
 
 
 
 
 
 
 
 
22263
  }
22264
 
22265
+ function removeListener() {
22266
+ doc.removeEventListener('mousemove', onMouseMove);
22267
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
22268
 
22269
+ function unsetGetReferenceClientRect() {
22270
+ isInternalUpdate = true;
22271
+ instance.setProps({
22272
+ getReferenceClientRect: null
 
22273
  });
22274
+ isInternalUpdate = false;
22275
  }
 
 
22276
 
22277
+ function onMouseMove(event) {
22278
+ // If the instance is interactive, avoid updating the position unless it's
22279
+ // over the reference element
22280
+ var isCursorOverReference = event.target ? reference.contains(event.target) : true;
22281
+ var followCursor = instance.props.followCursor;
22282
+ var clientX = event.clientX,
22283
+ clientY = event.clientY;
22284
+ var rect = reference.getBoundingClientRect();
22285
+ var relativeX = clientX - rect.left;
22286
+ var relativeY = clientY - rect.top;
22287
 
22288
+ if (isCursorOverReference || !instance.props.interactive) {
22289
+ instance.setProps({
22290
+ getReferenceClientRect: function getReferenceClientRect() {
22291
+ var rect = reference.getBoundingClientRect();
22292
+ var x = clientX;
22293
+ var y = clientY;
22294
 
22295
+ if (followCursor === 'initial') {
22296
+ x = rect.left + relativeX;
22297
+ y = rect.top + relativeY;
22298
+ }
22299
 
22300
+ var top = followCursor === 'horizontal' ? rect.top : y;
22301
+ var right = followCursor === 'vertical' ? rect.right : x;
22302
+ var bottom = followCursor === 'horizontal' ? rect.bottom : y;
22303
+ var left = followCursor === 'vertical' ? rect.left : x;
22304
+ return {
22305
+ width: right - left,
22306
+ height: bottom - top,
22307
+ top: top,
22308
+ right: right,
22309
+ bottom: bottom,
22310
+ left: left
22311
+ };
22312
+ }
22313
+ });
22314
+ }
22315
  }
 
 
 
 
22316
 
22317
+ function create() {
22318
+ if (instance.props.followCursor) {
22319
+ activeInstances.push({
22320
+ instance: instance,
22321
+ doc: doc
22322
+ });
22323
+ addMouseCoordsListener(doc);
22324
+ }
22325
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
22326
 
22327
+ function destroy() {
22328
+ activeInstances = activeInstances.filter(function (data) {
22329
+ return data.instance !== instance;
22330
+ });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
22331
 
22332
+ if (activeInstances.filter(function (data) {
22333
+ return data.doc === doc;
22334
+ }).length === 0) {
22335
+ removeMouseCoordsListener(doc);
22336
+ }
22337
+ }
22338
 
22339
+ return {
22340
+ onCreate: create,
22341
+ onDestroy: destroy,
22342
+ onBeforeUpdate: function onBeforeUpdate() {
22343
+ prevProps = instance.props;
22344
+ },
22345
+ onAfterUpdate: function onAfterUpdate(_, _ref2) {
22346
+ var followCursor = _ref2.followCursor;
22347
 
22348
+ if (isInternalUpdate) {
22349
+ return;
22350
+ }
22351
 
22352
+ if (followCursor !== undefined && prevProps.followCursor !== followCursor) {
22353
+ destroy();
 
 
 
 
 
 
 
 
22354
 
22355
+ if (followCursor) {
22356
+ create();
22357
 
22358
+ if (instance.state.isMounted && !wasFocusEvent && !getIsInitialBehavior()) {
22359
+ addListener();
22360
+ }
22361
+ } else {
22362
+ removeListener();
22363
+ unsetGetReferenceClientRect();
22364
+ }
22365
+ }
22366
+ },
22367
+ onMount: function onMount() {
22368
+ if (instance.props.followCursor && !wasFocusEvent) {
22369
+ if (isUnmounted) {
22370
+ onMouseMove(mouseCoords);
22371
+ isUnmounted = false;
22372
+ }
22373
 
22374
+ if (!getIsInitialBehavior()) {
22375
+ addListener();
22376
+ }
22377
+ }
22378
+ },
22379
+ onTrigger: function onTrigger(_, event) {
22380
+ if (isMouseEvent(event)) {
22381
+ mouseCoords = {
22382
+ clientX: event.clientX,
22383
+ clientY: event.clientY
22384
+ };
22385
+ }
22386
 
22387
+ wasFocusEvent = event.type === 'focus';
22388
+ },
22389
+ onHidden: function onHidden() {
22390
+ if (instance.props.followCursor) {
22391
+ unsetGetReferenceClientRect();
22392
+ removeListener();
22393
+ isUnmounted = true;
22394
+ }
22395
+ }
22396
  };
22397
+ }
22398
+ };
22399
 
22400
+ function getProps(props, modifier) {
22401
+ var _props$popperOptions;
 
 
 
 
 
22402
 
22403
+ return {
22404
+ popperOptions: Object.assign({}, props.popperOptions, {
22405
+ modifiers: [].concat((((_props$popperOptions = props.popperOptions) == null ? void 0 : _props$popperOptions.modifiers) || []).filter(function (_ref) {
22406
+ var name = _ref.name;
22407
+ return name !== modifier.name;
22408
+ }), [modifier])
22409
+ })
22410
+ };
22411
+ }
22412
 
22413
+ var inlinePositioning = {
22414
+ name: 'inlinePositioning',
22415
+ defaultValue: false,
22416
+ fn: function fn(instance) {
22417
+ var reference = instance.reference;
22418
 
22419
+ function isEnabled() {
22420
+ return !!instance.props.inlinePositioning;
22421
+ }
22422
 
22423
+ var placement;
22424
+ var cursorRectIndex = -1;
22425
+ var isInternalUpdate = false;
22426
+ var modifier = {
22427
+ name: 'tippyInlinePositioning',
22428
+ enabled: true,
22429
+ phase: 'afterWrite',
22430
+ fn: function fn(_ref2) {
22431
+ var state = _ref2.state;
22432
 
22433
+ if (isEnabled()) {
22434
+ if (placement !== state.placement) {
22435
+ instance.setProps({
22436
+ getReferenceClientRect: function getReferenceClientRect() {
22437
+ return _getReferenceClientRect(state.placement);
22438
+ }
22439
+ });
22440
+ }
22441
 
22442
+ placement = state.placement;
22443
+ }
22444
+ }
22445
+ };
22446
 
22447
+ function _getReferenceClientRect(placement) {
22448
+ return getInlineBoundingClientRect(tippy_esm_getBasePlacement(placement), reference.getBoundingClientRect(), arrayFrom(reference.getClientRects()), cursorRectIndex);
22449
+ }
 
 
 
22450
 
22451
+ function setInternalProps(partialProps) {
22452
+ isInternalUpdate = true;
22453
+ instance.setProps(partialProps);
22454
+ isInternalUpdate = false;
22455
+ }
22456
 
22457
+ function addModifier() {
22458
+ if (!isInternalUpdate) {
22459
+ setInternalProps(getProps(instance.props, modifier));
22460
+ }
22461
+ }
22462
 
22463
+ return {
22464
+ onCreate: addModifier,
22465
+ onAfterUpdate: addModifier,
22466
+ onTrigger: function onTrigger(_, event) {
22467
+ if (isMouseEvent(event)) {
22468
+ var rects = arrayFrom(instance.reference.getClientRects());
22469
+ var cursorRect = rects.find(function (rect) {
22470
+ return rect.left - 2 <= event.clientX && rect.right + 2 >= event.clientX && rect.top - 2 <= event.clientY && rect.bottom + 2 >= event.clientY;
22471
+ });
22472
+ cursorRectIndex = rects.indexOf(cursorRect);
22473
+ }
22474
+ },
22475
+ onUntrigger: function onUntrigger() {
22476
+ cursorRectIndex = -1;
22477
+ }
22478
+ };
22479
+ }
22480
+ };
22481
+ function getInlineBoundingClientRect(currentBasePlacement, boundingRect, clientRects, cursorRectIndex) {
22482
+ // Not an inline element, or placement is not yet known
22483
+ if (clientRects.length < 2 || currentBasePlacement === null) {
22484
+ return boundingRect;
22485
+ } // There are two rects and they are disjoined
22486
 
22487
 
22488
+ if (clientRects.length === 2 && cursorRectIndex >= 0 && clientRects[0].left > clientRects[1].right) {
22489
+ return clientRects[cursorRectIndex] || boundingRect;
22490
+ }
 
 
 
 
 
22491
 
22492
+ switch (currentBasePlacement) {
22493
+ case 'top':
22494
+ case 'bottom':
22495
+ {
22496
+ var firstRect = clientRects[0];
22497
+ var lastRect = clientRects[clientRects.length - 1];
22498
+ var isTop = currentBasePlacement === 'top';
22499
+ var top = firstRect.top;
22500
+ var bottom = lastRect.bottom;
22501
+ var left = isTop ? firstRect.left : lastRect.left;
22502
+ var right = isTop ? firstRect.right : lastRect.right;
22503
+ var width = right - left;
22504
+ var height = bottom - top;
22505
+ return {
22506
+ top: top,
22507
+ bottom: bottom,
22508
+ left: left,
22509
+ right: right,
22510
+ width: width,
22511
+ height: height
22512
+ };
22513
+ }
22514
 
22515
+ case 'left':
22516
+ case 'right':
22517
+ {
22518
+ var minLeft = Math.min.apply(Math, clientRects.map(function (rects) {
22519
+ return rects.left;
22520
+ }));
22521
+ var maxRight = Math.max.apply(Math, clientRects.map(function (rects) {
22522
+ return rects.right;
22523
+ }));
22524
+ var measureRects = clientRects.filter(function (rect) {
22525
+ return currentBasePlacement === 'left' ? rect.left === minLeft : rect.right === maxRight;
22526
  });
22527
+ var _top = measureRects[0].top;
22528
+ var _bottom = measureRects[measureRects.length - 1].bottom;
22529
+ var _left = minLeft;
22530
+ var _right = maxRight;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
22531
 
22532
+ var _width = _right - _left;
 
22533
 
22534
+ var _height = _bottom - _top;
 
 
 
 
 
22535
 
22536
+ return {
22537
+ top: _top,
22538
+ bottom: _bottom,
22539
+ left: _left,
22540
+ right: _right,
22541
+ width: _width,
22542
+ height: _height
22543
+ };
22544
+ }
22545
 
22546
+ default:
22547
+ {
22548
+ return boundingRect;
22549
+ }
22550
+ }
22551
+ }
22552
 
22553
+ var sticky = {
22554
+ name: 'sticky',
22555
+ defaultValue: false,
22556
+ fn: function fn(instance) {
22557
+ var reference = instance.reference,
22558
+ popper = instance.popper;
22559
 
22560
+ function getReference() {
22561
+ return instance.popperInstance ? instance.popperInstance.state.elements.reference : reference;
22562
+ }
22563
 
22564
+ function shouldCheck(value) {
22565
+ return instance.props.sticky === true || instance.props.sticky === value;
 
 
 
 
 
 
 
22566
  }
22567
 
22568
+ var prevRefRect = null;
22569
+ var prevPopRect = null;
 
 
 
 
 
 
 
 
 
22570
 
22571
+ function updatePosition() {
22572
+ var currentRefRect = shouldCheck('reference') ? getReference().getBoundingClientRect() : null;
22573
+ var currentPopRect = shouldCheck('popper') ? popper.getBoundingClientRect() : null;
22574
 
22575
+ if (currentRefRect && areRectsDifferent(prevRefRect, currentRefRect) || currentPopRect && areRectsDifferent(prevPopRect, currentPopRect)) {
22576
+ if (instance.popperInstance) {
22577
+ instance.popperInstance.update();
22578
+ }
22579
+ }
22580
 
22581
+ prevRefRect = currentRefRect;
22582
+ prevPopRect = currentPopRect;
 
22583
 
22584
+ if (instance.state.isMounted) {
22585
+ requestAnimationFrame(updatePosition);
22586
+ }
22587
  }
22588
+
22589
+ return {
22590
+ onMount: function onMount() {
22591
+ if (instance.props.sticky) {
22592
+ updatePosition();
22593
+ }
22594
+ }
22595
+ };
22596
+ }
22597
+ };
22598
+
22599
+ function areRectsDifferent(rectA, rectB) {
22600
+ if (rectA && rectB) {
22601
+ return rectA.top !== rectB.top || rectA.right !== rectB.right || rectA.bottom !== rectB.bottom || rectA.left !== rectB.left;
22602
  }
22603
 
22604
  return true;
22605
  }
 
 
 
 
 
22606
 
22607
+ tippy.setDefaultProps({
22608
+ render: render
22609
+ });
22610
 
22611
+ /* harmony default export */ var tippy_esm = (tippy);
 
 
 
 
 
 
 
 
 
22612
 
22613
+ //# sourceMappingURL=tippy.esm.js.map
 
 
 
 
 
 
 
 
 
 
 
 
 
22614
 
22615
+ ;// CONCATENATED MODULE: ./node_modules/@tippyjs/react/dist/tippy-react.esm.js
 
 
22616
 
 
 
 
22617
 
22618
 
 
22619
 
 
 
 
 
22620
 
22621
+ function tippy_react_esm_objectWithoutPropertiesLoose(source, excluded) {
22622
+ if (source == null) return {};
22623
+ var target = {};
22624
+ var sourceKeys = Object.keys(source);
22625
+ var key, i;
22626
 
22627
+ for (i = 0; i < sourceKeys.length; i++) {
22628
+ key = sourceKeys[i];
22629
+ if (excluded.indexOf(key) >= 0) continue;
22630
+ target[key] = source[key];
22631
+ }
22632
 
22633
+ return target;
 
22634
  }
 
22635
 
22636
+ var tippy_react_esm_isBrowser = typeof window !== 'undefined' && typeof document !== 'undefined';
22637
+ function preserveRef(ref, node) {
22638
+ if (ref) {
22639
+ if (typeof ref === 'function') {
22640
+ ref(node);
22641
+ }
22642
 
22643
+ if ({}.hasOwnProperty.call(ref, 'current')) {
22644
+ ref.current = node;
22645
+ }
22646
+ }
 
 
 
 
 
22647
  }
22648
+ function ssrSafeCreateDiv() {
22649
+ return tippy_react_esm_isBrowser && document.createElement('div');
 
 
22650
  }
22651
+ function toDataAttributes(attrs) {
22652
+ var dataAttrs = {
22653
+ 'data-placement': attrs.placement
22654
+ };
22655
 
22656
+ if (attrs.referenceHidden) {
22657
+ dataAttrs['data-reference-hidden'] = '';
22658
+ }
 
 
 
 
 
 
 
22659
 
22660
+ if (attrs.escaped) {
22661
+ dataAttrs['data-escaped'] = '';
22662
+ }
22663
 
22664
+ return dataAttrs;
 
22665
  }
 
 
 
 
 
 
 
 
 
22666
 
22667
+ function deepEqual(x, y) {
22668
+ if (x === y) {
22669
+ return true;
22670
+ } else if (typeof x === 'object' && x != null && typeof y === 'object' && y != null) {
22671
+ if (Object.keys(x).length !== Object.keys(y).length) {
22672
+ return false;
22673
+ }
22674
+
22675
+ for (var prop in x) {
22676
+ if (y.hasOwnProperty(prop)) {
22677
+ if (!deepEqual(x[prop], y[prop])) {
22678
+ return false;
22679
+ }
22680
  } else {
22681
+ return false;
 
 
22682
  }
22683
+ }
22684
 
22685
+ return true;
22686
+ } else {
22687
+ return false;
22688
+ }
 
 
 
 
 
 
 
22689
  }
 
 
 
22690
 
22691
+ function uniqueByShape(arr) {
22692
+ var output = [];
22693
+ arr.forEach(function (item) {
22694
+ if (!output.find(function (outputItem) {
22695
+ return deepEqual(item, outputItem);
22696
+ })) {
22697
+ output.push(item);
22698
+ }
22699
+ });
22700
+ return output;
22701
  }
22702
+ function deepPreserveProps(instanceProps, componentProps) {
22703
+ var _instanceProps$popper, _componentProps$poppe;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
22704
 
22705
+ return Object.assign({}, componentProps, {
22706
+ popperOptions: Object.assign({}, instanceProps.popperOptions, componentProps.popperOptions, {
22707
+ modifiers: uniqueByShape([].concat(((_instanceProps$popper = instanceProps.popperOptions) == null ? void 0 : _instanceProps$popper.modifiers) || [], ((_componentProps$poppe = componentProps.popperOptions) == null ? void 0 : _componentProps$poppe.modifiers) || []))
22708
+ })
22709
+ });
22710
+ }
22711
 
22712
+ var tippy_react_esm_useIsomorphicLayoutEffect = tippy_react_esm_isBrowser ? react.useLayoutEffect : react.useEffect;
22713
+ function useMutableBox(initialValue) {
22714
+ // Using refs instead of state as it's recommended to not store imperative
22715
+ // values in state due to memory problems in React(?)
22716
+ var ref = (0,react.useRef)();
 
 
22717
 
22718
+ if (!ref.current) {
22719
+ ref.current = typeof initialValue === 'function' ? initialValue() : initialValue;
 
 
 
 
 
 
 
22720
  }
22721
 
22722
+ return ref.current;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
22723
  }
 
 
 
 
 
 
 
22724
 
22725
+ function updateClassName(box, action, classNames) {
22726
+ classNames.split(/\s+/).forEach(function (name) {
22727
+ if (name) {
22728
+ box.classList[action](name);
22729
+ }
22730
+ });
22731
+ }
22732
 
22733
+ var classNamePlugin = {
22734
+ name: 'className',
22735
+ defaultValue: '',
22736
+ fn: function fn(instance) {
22737
+ var box = instance.popper.firstElementChild;
 
 
 
 
 
 
 
 
 
 
 
22738
 
22739
+ var isDefaultRenderFn = function isDefaultRenderFn() {
22740
+ var _instance$props$rende;
 
 
 
22741
 
22742
+ return !!((_instance$props$rende = instance.props.render) == null ? void 0 : _instance$props$rende.$$tippy);
22743
+ };
 
 
22744
 
22745
+ function add() {
22746
+ if (instance.props.className && !isDefaultRenderFn()) {
22747
+ if (false) {}
 
22748
 
22749
+ return;
22750
+ }
22751
 
22752
+ updateClassName(box, 'add', instance.props.className);
22753
+ }
 
 
 
 
 
 
 
 
 
 
22754
 
22755
+ function remove() {
22756
+ if (isDefaultRenderFn()) {
22757
+ updateClassName(box, 'remove', instance.props.className);
22758
+ }
22759
  }
22760
 
22761
+ return {
22762
+ onCreate: add,
22763
+ onBeforeUpdate: remove,
22764
+ onAfterUpdate: add
22765
+ };
22766
+ }
22767
+ };
 
 
 
 
 
22768
 
22769
+ function TippyGenerator(tippy) {
22770
+ function Tippy(_ref) {
22771
+ var children = _ref.children,
22772
+ content = _ref.content,
22773
+ visible = _ref.visible,
22774
+ singleton = _ref.singleton,
22775
+ render = _ref.render,
22776
+ reference = _ref.reference,
22777
+ _ref$disabled = _ref.disabled,
22778
+ disabled = _ref$disabled === void 0 ? false : _ref$disabled,
22779
+ _ref$ignoreAttributes = _ref.ignoreAttributes,
22780
+ ignoreAttributes = _ref$ignoreAttributes === void 0 ? true : _ref$ignoreAttributes,
22781
+ __source = _ref.__source,
22782
+ __self = _ref.__self,
22783
+ restOfNativeProps = tippy_react_esm_objectWithoutPropertiesLoose(_ref, ["children", "content", "visible", "singleton", "render", "reference", "disabled", "ignoreAttributes", "__source", "__self"]);
 
 
 
 
 
 
 
 
 
 
 
22784
 
22785
+ var isControlledMode = visible !== undefined;
22786
+ var isSingletonMode = singleton !== undefined;
22787
 
22788
+ var _useState = (0,react.useState)(false),
22789
+ mounted = _useState[0],
22790
+ setMounted = _useState[1];
 
 
 
 
 
 
 
 
 
 
 
 
 
22791
 
22792
+ var _useState2 = (0,react.useState)({}),
22793
+ attrs = _useState2[0],
22794
+ setAttrs = _useState2[1];
22795
 
22796
+ var _useState3 = (0,react.useState)(),
22797
+ singletonContent = _useState3[0],
22798
+ setSingletonContent = _useState3[1];
22799
 
22800
+ var mutableBox = useMutableBox(function () {
22801
+ return {
22802
+ container: ssrSafeCreateDiv(),
22803
+ renders: 1
22804
+ };
22805
+ });
22806
+ var props = Object.assign({
22807
+ ignoreAttributes: ignoreAttributes
22808
+ }, restOfNativeProps, {
22809
+ content: mutableBox.container
22810
+ });
22811
 
22812
+ if (isControlledMode) {
22813
+ if (false) {}
22814
 
22815
+ props.trigger = 'manual';
22816
+ props.hideOnClick = false;
22817
+ }
22818
 
22819
+ if (isSingletonMode) {
22820
+ disabled = true;
22821
+ }
 
 
 
22822
 
22823
+ var computedProps = props;
22824
+ var plugins = props.plugins || [];
 
 
22825
 
22826
+ if (render) {
22827
+ computedProps = Object.assign({}, props, {
22828
+ plugins: isSingletonMode ? [].concat(plugins, [{
22829
+ fn: function fn() {
22830
+ return {
22831
+ onTrigger: function onTrigger(_, event) {
22832
+ var _singleton$data$child = singleton.data.children.find(function (_ref2) {
22833
+ var instance = _ref2.instance;
22834
+ return instance.reference === event.currentTarget;
22835
+ }),
22836
+ content = _singleton$data$child.content;
22837
 
22838
+ setSingletonContent(content);
22839
+ }
22840
+ };
22841
+ }
22842
+ }]) : plugins,
22843
+ render: function render() {
22844
+ return {
22845
+ popper: mutableBox.container
22846
+ };
22847
+ }
22848
+ });
22849
+ }
 
 
 
 
 
 
22850
 
22851
+ var deps = [reference].concat(children ? [children.type] : []); // CREATE
 
22852
 
22853
+ tippy_react_esm_useIsomorphicLayoutEffect(function () {
22854
+ var element = reference;
22855
 
22856
+ if (reference && reference.hasOwnProperty('current')) {
22857
+ element = reference.current;
22858
+ }
 
 
 
22859
 
22860
+ var instance = tippy(element || mutableBox.ref || ssrSafeCreateDiv(), Object.assign({}, computedProps, {
22861
+ plugins: [classNamePlugin].concat(props.plugins || [])
22862
+ }));
22863
+ mutableBox.instance = instance;
22864
 
22865
+ if (disabled) {
22866
+ instance.disable();
22867
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
22868
 
22869
+ if (visible) {
22870
+ instance.show();
22871
+ }
22872
 
22873
+ if (isSingletonMode) {
22874
+ singleton.hook({
22875
+ instance: instance,
22876
+ content: content,
22877
+ props: computedProps
22878
+ });
22879
+ }
22880
 
22881
+ setMounted(true);
22882
+ return function () {
22883
+ instance.destroy();
22884
+ singleton == null ? void 0 : singleton.cleanup(instance);
22885
+ };
22886
+ }, deps); // UPDATE
22887
 
22888
+ tippy_react_esm_useIsomorphicLayoutEffect(function () {
22889
+ var _instance$popperInsta;
22890
 
22891
+ // Prevent this effect from running on 1st render
22892
+ if (mutableBox.renders === 1) {
22893
+ mutableBox.renders++;
22894
+ return;
22895
+ }
22896
 
22897
+ var instance = mutableBox.instance;
22898
+ instance.setProps(deepPreserveProps(instance.props, computedProps)); // Fixes #264
22899
 
22900
+ (_instance$popperInsta = instance.popperInstance) == null ? void 0 : _instance$popperInsta.forceUpdate();
 
 
22901
 
22902
+ if (disabled) {
22903
+ instance.disable();
22904
+ } else {
22905
+ instance.enable();
22906
+ }
22907
 
22908
+ if (isControlledMode) {
22909
+ if (visible) {
22910
+ instance.show();
22911
+ } else {
22912
+ instance.hide();
22913
+ }
22914
+ }
 
 
22915
 
22916
+ if (isSingletonMode) {
22917
+ singleton.hook({
22918
+ instance: instance,
22919
+ content: content,
22920
+ props: computedProps
22921
+ });
22922
+ }
22923
+ });
22924
+ tippy_react_esm_useIsomorphicLayoutEffect(function () {
22925
+ var _instance$props$poppe;
22926
 
22927
+ if (!render) {
22928
+ return;
 
 
22929
  }
 
 
 
 
 
 
 
22930
 
22931
+ var instance = mutableBox.instance;
22932
+ instance.setProps({
22933
+ popperOptions: Object.assign({}, instance.props.popperOptions, {
22934
+ modifiers: [].concat((((_instance$props$poppe = instance.props.popperOptions) == null ? void 0 : _instance$props$poppe.modifiers) || []).filter(function (_ref3) {
22935
+ var name = _ref3.name;
22936
+ return name !== '$$tippyReact';
22937
+ }), [{
22938
+ name: '$$tippyReact',
22939
+ enabled: true,
22940
+ phase: 'beforeWrite',
22941
+ requires: ['computeStyles'],
22942
+ fn: function fn(_ref4) {
22943
+ var _state$modifiersData;
22944
+
22945
+ var state = _ref4.state;
22946
+ var hideData = (_state$modifiersData = state.modifiersData) == null ? void 0 : _state$modifiersData.hide; // WARNING: this is a high-risk path that can cause an infinite
22947
+ // loop. This expression _must_ evaluate to false when required
22948
+
22949
+ if (attrs.placement !== state.placement || attrs.referenceHidden !== (hideData == null ? void 0 : hideData.isReferenceHidden) || attrs.escaped !== (hideData == null ? void 0 : hideData.hasPopperEscaped)) {
22950
+ setAttrs({
22951
+ placement: state.placement,
22952
+ referenceHidden: hideData == null ? void 0 : hideData.isReferenceHidden,
22953
+ escaped: hideData == null ? void 0 : hideData.hasPopperEscaped
22954
+ });
22955
+ }
22956
+
22957
+ state.attributes.popper = {};
22958
+ }
22959
+ }])
22960
+ })
22961
+ });
22962
+ }, [attrs.placement, attrs.referenceHidden, attrs.escaped].concat(deps));
22963
+ return /*#__PURE__*/react.createElement(react.Fragment, null, children ? /*#__PURE__*/(0,react.cloneElement)(children, {
22964
+ ref: function ref(node) {
22965
+ mutableBox.ref = node;
22966
+ preserveRef(children.ref, node);
22967
+ }
22968
+ }) : null, mounted && /*#__PURE__*/(0,react_dom.createPortal)(render ? render(toDataAttributes(attrs), singletonContent, mutableBox.instance) : content, mutableBox.container));
22969
  }
22970
 
22971
+ return Tippy;
22972
+ }
 
 
 
 
 
 
 
 
22973
 
22974
+ function useSingletonGenerator(createSingleton) {
22975
+ return function useSingleton(_temp) {
22976
+ var _ref = _temp === void 0 ? {} : _temp,
22977
+ _ref$disabled = _ref.disabled,
22978
+ disabled = _ref$disabled === void 0 ? false : _ref$disabled,
22979
+ _ref$overrides = _ref.overrides,
22980
+ overrides = _ref$overrides === void 0 ? [] : _ref$overrides;
22981
 
22982
+ var _useState = (0,react.useState)(false),
22983
+ mounted = _useState[0],
22984
+ setMounted = _useState[1];
22985
+
22986
+ var mutableBox = useMutableBox({
22987
+ children: [],
22988
+ renders: 1
22989
+ });
22990
+ tippy_react_esm_useIsomorphicLayoutEffect(function () {
22991
+ if (!mounted) {
22992
+ setMounted(true);
22993
+ return;
22994
  }
22995
 
22996
+ var children = mutableBox.children,
22997
+ sourceData = mutableBox.sourceData;
22998
 
22999
+ if (!sourceData) {
23000
+ if (false) {}
 
 
 
 
 
 
 
 
 
 
 
 
 
23001
 
23002
+ return;
23003
+ }
23004
 
23005
+ var instance = createSingleton(children.map(function (child) {
23006
+ return child.instance;
23007
+ }), Object.assign({}, sourceData.props, {
23008
+ popperOptions: sourceData.instance.props.popperOptions,
23009
+ overrides: overrides,
23010
+ plugins: [classNamePlugin].concat(sourceData.props.plugins || [])
23011
+ }));
23012
+ mutableBox.instance = instance;
23013
 
23014
+ if (disabled) {
23015
+ instance.disable();
23016
+ }
 
 
 
 
23017
 
23018
+ return function () {
23019
+ instance.destroy();
23020
+ mutableBox.children = children.filter(function (_ref2) {
23021
+ var instance = _ref2.instance;
23022
+ return !instance.state.isDestroyed;
23023
+ });
23024
+ };
23025
+ }, [mounted]);
23026
+ tippy_react_esm_useIsomorphicLayoutEffect(function () {
23027
+ if (!mounted) {
23028
+ return;
23029
+ }
23030
 
23031
+ if (mutableBox.renders === 1) {
23032
+ mutableBox.renders++;
23033
+ return;
23034
+ }
23035
 
23036
+ var children = mutableBox.children,
23037
+ instance = mutableBox.instance,
23038
+ sourceData = mutableBox.sourceData;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23039
 
23040
+ if (!(instance && sourceData)) {
23041
+ return;
23042
+ }
23043
 
23044
+ var _sourceData$props = sourceData.props,
23045
+ content = _sourceData$props.content,
23046
+ props = tippy_react_esm_objectWithoutPropertiesLoose(_sourceData$props, ["content"]);
23047
+
23048
+ instance.setProps(deepPreserveProps(instance.props, Object.assign({}, props, {
23049
+ overrides: overrides
23050
+ })));
23051
+ instance.setInstances(children.map(function (child) {
23052
+ return child.instance;
23053
+ }));
23054
 
23055
+ if (disabled) {
23056
+ instance.disable();
23057
+ } else {
23058
+ instance.enable();
23059
+ }
23060
+ });
23061
+ return (0,react.useMemo)(function () {
23062
+ var source = {
23063
+ data: mutableBox,
23064
+ hook: function hook(data) {
23065
+ mutableBox.sourceData = data;
23066
+ },
23067
+ cleanup: function cleanup() {
23068
+ mutableBox.sourceData = null;
23069
+ }
23070
+ };
23071
+ var target = {
23072
+ hook: function hook(data) {
23073
+ if (!mutableBox.children.find(function (_ref3) {
23074
+ var instance = _ref3.instance;
23075
+ return data.instance === instance;
23076
+ })) {
23077
+ mutableBox.children.push(data);
23078
 
23079
+ if (mutableBox.instance && !mutableBox.instance.state.isDestroyed) {
23080
+ mutableBox.instance.setInstances(mutableBox.children.map(function (child) {
23081
+ return child.instance;
23082
+ }));
23083
+ }
23084
+ }
23085
+ },
23086
+ cleanup: function cleanup(instance) {
23087
+ mutableBox.children = mutableBox.children.filter(function (data) {
23088
+ return data.instance !== instance;
23089
+ });
23090
 
23091
+ if (mutableBox.instance && !mutableBox.instance.state.isDestroyed) {
23092
+ mutableBox.instance.setInstances(mutableBox.children.map(function (child) {
23093
+ return child.instance;
23094
+ }));
23095
+ }
23096
+ }
23097
+ };
23098
+ return [source, target];
23099
+ }, []);
23100
+ };
23101
+ }
23102
 
23103
+ var forwardRef = (function (Tippy, defaultProps) {
23104
+ return /*#__PURE__*/(0,react.forwardRef)(function TippyWrapper(_ref, _ref2) {
23105
+ var children = _ref.children,
23106
+ props = tippy_react_esm_objectWithoutPropertiesLoose(_ref, ["children"]);
23107
 
23108
+ return (
23109
+ /*#__PURE__*/
23110
+ // If I spread them separately here, Babel adds the _extends ponyfill for
23111
+ // some reason
23112
+ react.createElement(Tippy, Object.assign({}, defaultProps, props), children ? /*#__PURE__*/(0,react.cloneElement)(children, {
23113
+ ref: function ref(node) {
23114
+ preserveRef(_ref2, node);
23115
+ preserveRef(children.ref, node);
23116
+ }
23117
+ }) : null)
23118
+ );
23119
+ });
23120
+ });
23121
 
23122
+ var useSingleton = /*#__PURE__*/useSingletonGenerator(createSingleton);
23123
+ var index = /*#__PURE__*/forwardRef( /*#__PURE__*/TippyGenerator(tippy_esm));
23124
 
23125
+ /* harmony default export */ var tippy_react_esm = (index);
23126
 
23127
+ //# sourceMappingURL=tippy-react.esm.js.map
23128
 
23129
+ ;// CONCATENATED MODULE: ./node_modules/tippy.js/dist/tippy.css
23130
+ // extracted by mini-css-extract-plugin
23131
 
23132
+ ;// CONCATENATED MODULE: ./node_modules/tippy.js/themes/material.css
23133
+ // extracted by mini-css-extract-plugin
23134
 
23135
  ;// CONCATENATED MODULE: ./src/js/dashboard/Components/Tippy/Tippy.js
23136
 
23189
  props: props
23190
  };
23191
  })(Tippy));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23192
  // EXTERNAL MODULE: ./node_modules/@material-ui/styles/esm/useTheme/useTheme.js
23193
  var useTheme = __webpack_require__(159);
23194
  // EXTERNAL MODULE: ./node_modules/@material-ui/styles/esm/getThemeProps/getThemeProps.js
29747
  var button = dispatch(dataActions_addRecord({
29748
  name: translate_translate("utils.new_button"),
29749
  show_mobile: true,
29750
+ show_desktop: true,
29751
+ label: translate_translate("templates.first_button")
29752
  }, "buttons")).payload.record; // Add group relation
29753
 
29754
  dispatch(dataActions_addRelation(button.id, group.id));
29759
  var button = dispatch(dataActions_addRecord(GroupActions_objectSpread({
29760
  name: translate_translate("utils.new_button"),
29761
  show_mobile: true,
29762
+ show_desktop: true,
29763
+ label: translate_translate("templates.first_button")
29764
  }, payload), "buttons")).payload.record;
29765
  dispatch(dataActions_addRelation(button.id, group_id, index));
29766
  if (redirect) document.location.hash = "/group/".concat(group_id, "/button/").concat(button.id);
45869
  var defaultButton = {
45870
  name: translate_translate("utils.new_button"),
45871
  show_mobile: true,
45872
+ show_desktop: true,
45873
+ label: translate_translate("templates.first_button")
45874
  };
45875
 
45876
  if (filterButtons === "group") {
46031
  }
46032
  }, key === 0 ? /*#__PURE__*/react.createElement("div", {
46033
  className: "default-option"
46034
+ }, /*#__PURE__*/react.createElement("img", {
46035
+ src: buttonizer_admin.assets + "/images/templates/default.png",
46036
+ alt: "Template",
46037
+ draggable: false
46038
  }), /*#__PURE__*/react.createElement("span", null, translate_translate("templates.start_scratch"))) : /*#__PURE__*/react.createElement("img", {
46039
  src: template.template_image ? buttonizer_admin.assets + "/images/templates/".concat(template.template_image) : buttonizer_admin.assets + "/images/buttonizer-logo.png",
46040
  alt: "Template",
81026
  "aria-describedby": "temp-reauthenticate-dialog-description"
81027
  }, /*#__PURE__*/react.createElement(esm_DialogTitle_DialogTitle, {
81028
  id: "temp-reauthenticate-dialog-title"
81029
+ }, "Reauthenticate"), /*#__PURE__*/react.createElement(esm_DialogContent_DialogContent, null, /*#__PURE__*/react.createElement(DialogContentText_DialogContentText, null, isUsingRefreshtoken ? /*#__PURE__*/react.createElement(react.Fragment, null, /*#__PURE__*/react.createElement("p", null, "Gathering information ... "), /*#__PURE__*/react.createElement("p", null, "If it takes more than 10 seconds please refresh")) : /*#__PURE__*/react.createElement(react.Fragment, null, "Your editor authentication session has expired, this mostly happens after 30 minutes."))), /*#__PURE__*/react.createElement(esm_DialogActions_DialogActions, null, /*#__PURE__*/react.createElement(esm_Button_Button, {
81030
  onClick: openPopup,
81031
  disabled: isWaiting || isUsingRefreshtoken,
81032
  color: "primary"
81033
+ }, "Reauthenticate", (isWaiting || isUsingRefreshtoken) && /*#__PURE__*/react.createElement(react.Fragment, null, /*#__PURE__*/react.createElement(CircularProgress_CircularProgress, {
81034
  size: 25,
81035
  style: {
81036
  marginLeft: 20
81037
  }
81038
+ }), /*#__PURE__*/react.createElement("p", null, "If it takes more than 10 seconds please refresh")))));
81039
  }
81040
  ;// CONCATENATED MODULE: ./src/js/dashboard/Components/Dialogs/ChangelogDialog/Slides.js
 
81041
  var updates = [[// New features (first slide)
81042
  {
81043
+ title: "settings_window.changelog_dialog.new_features",
81044
  info: [{
81045
+ title: "settings_window.changelog_dialog.first_feature.title",
81046
+ info: "settings_window.changelog_dialog.first_feature.info"
81047
  }, {
81048
+ title: "settings_window.changelog_dialog.second_feature.title",
81049
+ info: "settings_window.changelog_dialog.second_feature.info"
81050
  }, {
81051
+ title: "settings_window.changelog_dialog.third_feature.title",
81052
+ info: "settings_window.changelog_dialog.third_feature.info"
81053
  }, {
81054
+ title: "settings_window.changelog_dialog.fourth_feature.title",
81055
+ info: "settings_window.changelog_dialog.fourth_feature.info"
81056
  }]
81057
  } // {
81058
  // New updates & bug fixes (first slide)
81177
  }, updates[currentSlide].map(function (type, key) {
81178
  return /*#__PURE__*/react.createElement("div", {
81179
  key: key
81180
+ }, /*#__PURE__*/react.createElement("h3", null, translate_translate(type.title)), type.info.map(function (listItem, index) {
81181
  return /*#__PURE__*/react.createElement("div", {
81182
  className: "list",
81183
  key: index
81184
  }, /*#__PURE__*/react.createElement("ul", null, /*#__PURE__*/react.createElement("li", {
81185
  className: "name"
81186
+ }, translate_translate(listItem.title)), /*#__PURE__*/react.createElement("p", {
81187
  className: "info"
81188
+ }, translate_translate(listItem.info))));
81189
  }));
81190
  })), /*#__PURE__*/react.createElement(esm_DialogActions_DialogActions, {
81191
  className: "footer"
81373
  ;// CONCATENATED MODULE: ./src/js/dashboard/Components/AdminNotifications/style.module.scss
81374
  // extracted by mini-css-extract-plugin
81375
  /* harmony default export */ var style_module = ({"key":"GoB-rFmXaQiCtLHiw5bE0","mouse":"QZVwpvNWXvaP4Bg5_NwrC"});
 
 
81376
  ;// CONCATENATED MODULE: ./src/js/dashboard/Components/AdminNotifications/AdminNotifications.js
81377
 
81378
 
81411
  enqueueSnackbar( /*#__PURE__*/react.createElement(Trans, {
81412
  i18nKey: "warnings.actions.".concat(e.data.message.type === "to-group" ? "toggle_menu_text" : "test_action_text"),
81413
  components: {
81414
+ mouseIcon: /*#__PURE__*/react.createElement(SvgIcon/* default */.Z, {
 
 
 
81415
  className: style_module.mouse
81416
+ }, /*#__PURE__*/react.createElement("path", {
81417
+ d: "M13 1.07V9h7c0-4.08-3.05-7.44-7-7.93zM4 15c0 4.42 3.58 8 8 8s8-3.58 8-8v-4H4v4zm7-13.93C7.05 1.56 4 4.92 4 9h7V1.07z",
81418
+ style: {
81419
+ fill: "#2f7789"
81420
+ }
81421
+ }), /*#__PURE__*/react.createElement("path", {
81422
+ d: "M 13 1.07 z z m -2 -0.07 C 7.05 1.56 4 4.92 4 9 H 11 V 1.07 z",
81423
+ style: {
81424
+ fill: "#f57c19",
81425
+ transform: "scaleX(-1) translate(-24px, 0px)"
81426
+ }
81427
+ }))
81428
  }
81429
  }), {
81430
  anchorOrigin: {
124846
  /***/ (function(module) {
124847
 
124848
  "use strict";
124849
+ module.exports = JSON.parse('{"group":{"general":{"horizontal":"right: 5%","vertical":"bottom: 5%","menu_style":"default","menu_opening_animation":"default","start_opened":false,"close_on_click_outside":true,"close_on_click_inside":true,"open_on_mouseover":false,"close_on_mouseleave":true,"is_menu":true},"advanced":{"menu_opening_animation":"default","menu_animation":"none","menu_animation_delay":10,"menu_animation_repeat_count":0,"show_on_schedule_trigger":true,"show_on_rule_trigger":true,"advanced_timeout_once":true,"advanced_scroll_hide":false},"styling":{"icon":["fas fa-plus"],"icon_size":[25],"icon_image_size":[25],"group_size":56,"button_size":42,"show_label_mobile":"always","show_label_desktop":"always","label_same_width":false,"label_same_height":false,"width":56,"height":56,"label_inside":false,"space":10}},"button":{"general":{"show_mobile":true,"show_desktop":true,"label":"","action":"#","type":"url","messenger_lang":"en_US","action_new_tab":false},"styling":{"icon":["fas fa-home"],"width":42,"height":42,"icon_type":"icon","icon_image":[""],"icon_size":[20],"icon_image_size":[16],"background_is_image":[false],"background_image":[],"border_radius":["50%"],"background_color":["#2f7789","#f08419"],"icon_color":["#fff"],"icon_image_border_radius":[50],"label_background_color":["#2f7789","#f08419"],"label_color":["#fff"],"label_border_radius":["3px"],"label_font_size":[12],"label_margin":["0px 0px 0px 0px"],"label_padding":["5px 15px 5px 15px"],"label_font_family":"","label_spacing":9,"horizontal_position_label":"auto","box_shadow":["0px 2px 6px 1px rgba(0, 0, 0, 0.20)","0px 5px 11px 1px rgba(0, 0, 0, 0.25)"],"box_shadow_enabled":[true],"label_box_shadow_enabled":[false],"label_box_shadow":["0px 0px 0px 0px rgba(0, 0, 0, 1)"]}}}');
124850
 
124851
  /***/ })
124852
 
assets/dashboard.min.js CHANGED
@@ -9,7 +9,7 @@
9
  *
10
  * Buttonizer is Freemium software. The free version (build) does not contain premium functionality.
11
  *
12
- * (C) 2017-2022 Buttonizer v2.6.3
13
  *
14
  */
15
  /*!
@@ -23,9 +23,9 @@
23
  *
24
  * Buttonizer is Freemium software. The free version (build) does not contain premium functionality.
25
  *
26
- * (C) 2017-2022 Buttonizer v2.6.3
27
  *
28
- */!function(){var e,t,n={50676:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{Z:function(){return r}})},59968:function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,{Z:function(){return r}})},83614:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(50676);function o(e){if(Array.isArray(e))return(0,r.Z)(e)}},63349:function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:function(){return r}})},5991:function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}n.d(t,{Z:function(){return o}})},96156:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:function(){return r}})},22122:function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,{Z:function(){return r}})},41788:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(14665);function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,r.Z)(e,t)}},96410:function(e,t,n){"use strict";function r(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,{Z:function(){return r}})},28970:function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{Z:function(){return r}})},62303:function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{Z:function(){return r}})},81253:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(19756);function o(e,t){if(null==e)return{};var n,o,i=(0,r.Z)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},19756:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,{Z:function(){return r}})},14665:function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}n.d(t,{Z:function(){return r}})},28481:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(59968);var o=n(82961),i=n(28970);function a(e,t){return(0,r.Z)(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(e,t)||(0,o.Z)(e,t)||(0,i.Z)()}},78927:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(83614),o=n(96410),i=n(82961),a=n(62303);function l(e){return(0,r.Z)(e)||(0,o.Z)(e)||(0,i.Z)(e)||(0,a.Z)()}},90484:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,{Z:function(){return r}})},82961:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(50676);function o(e,t){if(e){if("string"==typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(e,t):void 0}}},95318:function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},20862:function(e,t,n){var r=n(50008).default;function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}e.exports=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var i={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var s=a?Object.getOwnPropertyDescriptor(e,l):null;s&&(s.get||s.set)?Object.defineProperty(i,l,s):i[l]=e[l]}return i.default=e,n&&n.set(e,i),i},e.exports.__esModule=!0,e.exports.default=e.exports},50008:function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},70597:function(e,t,n){"use strict";var r,o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(67294),a=(r=i)&&r.__esModule?r:{default:r};t.Z=function(e){var t=e.fill,n=void 0===t?"currentColor":t,r=e.width,i=void 0===r?24:r,l=e.height,s=void 0===l?24:l,u=e.style,c=void 0===u?{}:u,f=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["fill","width","height","style"]);return a.default.createElement("svg",o({viewBox:"0 0 24 24",style:o({fill:n,width:i,height:s},c)},f),a.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))}},43891:function(e,t,n){"use strict";var r,o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(67294),a=(r=i)&&r.__esModule?r:{default:r};t.Z=function(e){var t=e.fill,n=void 0===t?"currentColor":t,r=e.width,i=void 0===r?24:r,l=e.height,s=void 0===l?24:l,u=e.style,c=void 0===u?{}:u,f=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["fill","width","height","style"]);return a.default.createElement("svg",o({viewBox:"0 0 24 24",style:o({fill:n,width:i,height:s},c)},f),a.default.createElement("path",{d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}))}},62087:function(e,t,n){"use strict";var r=n(22122),o=n(81253),i=n(67294),a=(n(45697),n(86010)),l=n(14670),s=n(93871),u=i.forwardRef((function(e,t){var n=e.children,l=e.classes,u=e.className,c=e.color,f=void 0===c?"inherit":c,d=e.component,p=void 0===d?"svg":d,h=e.fontSize,m=void 0===h?"default":h,v=e.htmlColor,g=e.titleAccess,y=e.viewBox,b=void 0===y?"0 0 24 24":y,w=(0,o.Z)(e,["children","classes","className","color","component","fontSize","htmlColor","titleAccess","viewBox"]);return i.createElement(p,(0,r.Z)({className:(0,a.Z)(l.root,u,"inherit"!==f&&l["color".concat((0,s.Z)(f))],"default"!==m&&l["fontSize".concat((0,s.Z)(m))]),focusable:"false",viewBox:b,color:v,"aria-hidden":!g||void 0,role:g?"img":void 0,ref:t},w),n,g?i.createElement("title",null,g):null)}));u.muiName="SvgIcon",t.Z=(0,l.Z)((function(e){return{root:{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,fontSize:e.typography.pxToRem(24),transition:e.transitions.create("fill",{duration:e.transitions.duration.shorter})},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorAction:{color:e.palette.action.active},colorError:{color:e.palette.error.main},colorDisabled:{color:e.palette.action.disabled},fontSizeInherit:{fontSize:"inherit"},fontSizeSmall:{fontSize:e.typography.pxToRem(20)},fontSizeLarge:{fontSize:e.typography.pxToRem(35)}}}),{name:"MuiSvgIcon"})(u)},59693:function(e,t,n){"use strict";n.d(t,{mi:function(){return l},_4:function(){return u},U1:function(){return c},_j:function(){return f},$n:function(){return d}});var r=n(60288);function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function i(e){if(e.type)return e;if("#"===e.charAt(0))return i(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error((0,r.Z)(3,e));var o=e.substring(t+1,e.length-1).split(",");return{type:n,values:o=o.map((function(e){return parseFloat(e)}))}}function a(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function l(e,t){var n=s(e),r=s(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function s(e){var t="hsl"===(e=i(e)).type?i(function(e){var t=(e=i(e)).values,n=t[0],r=t[1]/100,o=t[2]/100,l=r*Math.min(o,1-o),s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return o-l*Math.max(Math.min(t-3,9-t,1),-1)},u="rgb",c=[Math.round(255*s(0)),Math.round(255*s(8)),Math.round(255*s(4))];return"hsla"===e.type&&(u+="a",c.push(t[3])),a({type:u,values:c})}(e)).values:e.values;return t=t.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return s(e)>.5?f(e,t):d(e,t)}function c(e,t){return e=i(e),t=o(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,a(e)}function f(e,t){if(e=i(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return a(e)}function d(e,t){if(e=i(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return a(e)}},49277:function(e,t,n){"use strict";n.d(t,{Z:function(){return K}});var r=n(81253),o=n(35953),i=n(22122),a=["xs","sm","md","lg","xl"];function l(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,o=e.unit,l=void 0===o?"px":o,s=e.step,u=void 0===s?5:s,c=(0,r.Z)(e,["values","unit","step"]);function f(e){var t="number"==typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(l,")")}function d(e,t){var r=a.indexOf(t);return r===a.length-1?f(e):"@media (min-width:".concat("number"==typeof n[e]?n[e]:e).concat(l,") and ")+"(max-width:".concat((-1!==r&&"number"==typeof n[a[r+1]]?n[a[r+1]]:t)-u/100).concat(l,")")}return(0,i.Z)({keys:a,values:n,up:f,down:function(e){var t=a.indexOf(e)+1,r=n[a[t]];return t===a.length?f("xs"):"@media (max-width:".concat(("number"==typeof r&&t>0?r:e)-u/100).concat(l,")")},between:d,only:function(e){return d(e,e)},width:function(e){return n[e]}},c)}var s=n(96156);function u(e,t,n){var r;return(0,i.Z)({gutters:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,i.Z)({paddingLeft:t(2),paddingRight:t(2)},n,(0,s.Z)({},e.up("sm"),(0,i.Z)({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(r={minHeight:56},(0,s.Z)(r,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),(0,s.Z)(r,e.up("sm"),{minHeight:64}),r)},n)}var c=n(60288),f={black:"#000",white:"#fff"},d={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"},p={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"},h={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"},m={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},v={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},g={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},y={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},b=n(59693),w={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:f.white,default:d[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},x={text:{primary:f.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:d[800],default:"#303030"},action:{active:f.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function E(e,t,n,r){var o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,b.$n)(e.main,o):"dark"===t&&(e.dark=(0,b._j)(e.main,i)))}function _(e){var t=e.primary,n=void 0===t?{light:p[300],main:p[500],dark:p[700]}:t,a=e.secondary,l=void 0===a?{light:h.A200,main:h.A400,dark:h.A700}:a,s=e.error,u=void 0===s?{light:m[300],main:m[500],dark:m[700]}:s,_=e.warning,S=void 0===_?{light:v[300],main:v[500],dark:v[700]}:_,O=e.info,k=void 0===O?{light:g[300],main:g[500],dark:g[700]}:O,C=e.success,P=void 0===C?{light:y[300],main:y[500],dark:y[700]}:C,j=e.type,T=void 0===j?"light":j,A=e.contrastThreshold,I=void 0===A?3:A,R=e.tonalOffset,N=void 0===R?.2:R,D=(0,r.Z)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function M(e){return(0,b.mi)(e,x.text.primary)>=I?x.text.primary:w.text.primary}var L=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=(0,i.Z)({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error((0,c.Z)(4,t));if("string"!=typeof e.main)throw new Error((0,c.Z)(5,JSON.stringify(e.main)));return E(e,"light",n,N),E(e,"dark",r,N),e.contrastText||(e.contrastText=M(e.main)),e},F={dark:x,light:w};return(0,o.Z)((0,i.Z)({common:f,type:T,primary:L(n),secondary:L(l,"A400","A200","A700"),error:L(u),warning:L(S),info:L(k),success:L(P),grey:d,contrastThreshold:I,getContrastText:M,augmentColor:L,tonalOffset:N},F[T]),D)}function S(e){return Math.round(1e5*e)/1e5}var O={textTransform:"uppercase"};function k(e,t){var n="function"==typeof t?t(e):t,a=n.fontFamily,l=void 0===a?'"Roboto", "Helvetica", "Arial", sans-serif':a,s=n.fontSize,u=void 0===s?14:s,c=n.fontWeightLight,f=void 0===c?300:c,d=n.fontWeightRegular,p=void 0===d?400:d,h=n.fontWeightMedium,m=void 0===h?500:h,v=n.fontWeightBold,g=void 0===v?700:v,y=n.htmlFontSize,b=void 0===y?16:y,w=n.allVariants,x=n.pxToRem,E=(0,r.Z)(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]);var _=u/14,k=x||function(e){return"".concat(e/b*_,"rem")},C=function(e,t,n,r,o){return(0,i.Z)({fontFamily:l,fontWeight:e,fontSize:k(t),lineHeight:n},'"Roboto", "Helvetica", "Arial", sans-serif'===l?{letterSpacing:"".concat(S(r/t),"em")}:{},o,w)},P={h1:C(f,96,1.167,-1.5),h2:C(f,60,1.2,-.5),h3:C(p,48,1.167,0),h4:C(p,34,1.235,.25),h5:C(p,24,1.334,0),h6:C(m,20,1.6,.15),subtitle1:C(p,16,1.75,.15),subtitle2:C(m,14,1.57,.1),body1:C(p,16,1.5,.15),body2:C(p,14,1.43,.15),button:C(m,14,1.75,.4,O),caption:C(p,12,1.66,.4),overline:C(p,12,2.66,1,O)};return(0,o.Z)((0,i.Z)({htmlFontSize:b,pxToRem:k,round:S,fontFamily:l,fontSize:u,fontWeightLight:f,fontWeightRegular:p,fontWeightMedium:m,fontWeightBold:g},P),E,{clone:!1})}function C(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var P=["none",C(0,2,1,-1,0,1,1,0,0,1,3,0),C(0,3,1,-2,0,2,2,0,0,1,5,0),C(0,3,3,-2,0,3,4,0,0,1,8,0),C(0,2,4,-1,0,4,5,0,0,1,10,0),C(0,3,5,-1,0,5,8,0,0,1,14,0),C(0,3,5,-1,0,6,10,0,0,1,18,0),C(0,4,5,-2,0,7,10,1,0,2,16,1),C(0,5,5,-3,0,8,10,1,0,3,14,2),C(0,5,6,-3,0,9,12,1,0,3,16,2),C(0,6,6,-3,0,10,14,1,0,4,18,3),C(0,6,7,-4,0,11,15,1,0,4,20,3),C(0,7,8,-4,0,12,17,2,0,5,22,4),C(0,7,8,-4,0,13,19,2,0,5,24,4),C(0,7,9,-4,0,14,21,2,0,5,26,4),C(0,8,9,-5,0,15,22,2,0,6,28,5),C(0,8,10,-5,0,16,24,2,0,6,30,5),C(0,8,11,-5,0,17,26,2,0,6,32,5),C(0,9,11,-5,0,18,28,2,0,7,34,6),C(0,9,12,-6,0,19,29,2,0,7,36,6),C(0,10,13,-6,0,20,31,3,0,8,38,7),C(0,10,13,-6,0,21,33,3,0,8,40,7),C(0,10,14,-6,0,22,35,3,0,8,42,7),C(0,11,14,-7,0,23,36,3,0,9,44,8),C(0,11,15,-7,0,24,38,3,0,9,46,8)],j={borderRadius:4},T=n(28481),A=n(90484),I=(n(45697),{xs:0,sm:600,md:960,lg:1280,xl:1920}),R={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(I[e],"px)")}};var N=function(e,t){return t?(0,o.Z)(e,t,{clone:!1}):e};var D,M,L={m:"margin",p:"padding"},F={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},z={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},B=(D=function(e){if(e.length>2){if(!z[e])return[e];e=z[e]}var t=e.split(""),n=(0,T.Z)(t,2),r=n[0],o=n[1],i=L[r],a=F[o]||"";return Array.isArray(a)?a.map((function(e){return i+e})):[i+a]},M={},function(e){return void 0===M[e]&&(M[e]=D(e)),M[e]}),U=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function Z(e){var t=e.spacing||8;return"number"==typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"==typeof t?t:function(){}}function H(e,t){return function(n){return e.reduce((function(e,r){return e[r]=function(e,t){if("string"==typeof t||null==t)return t;var n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:"-".concat(n)}(t,n),e}),{})}}function W(e){var t=Z(e.theme);return Object.keys(e).map((function(n){if(-1===U.indexOf(n))return null;var r=H(B(n),t),o=e[n];return function(e,t,n){if(Array.isArray(t)){var r=e.theme.breakpoints||R;return t.reduce((function(e,o,i){return e[r.up(r.keys[i])]=n(t[i]),e}),{})}if("object"===(0,A.Z)(t)){var o=e.theme.breakpoints||R;return Object.keys(t).reduce((function(e,r){return e[o.up(r)]=n(t[r]),e}),{})}return n(t)}(e,o,r)})).reduce(N,{})}W.propTypes={},W.filterProps=U;function V(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=Z({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return 0===n.length?t(1):1===n.length?t(n[0]):n.map((function(e){if("string"==typeof e)return e;var n=t(e);return"number"==typeof n?"".concat(n,"px"):n})).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return e}}),n.mui=!0,n}var G=n(43366),$=n(92781);var K=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,i=e.mixins,a=void 0===i?{}:i,s=e.palette,c=void 0===s?{}:s,f=e.spacing,d=e.typography,p=void 0===d?{}:d,h=(0,r.Z)(e,["breakpoints","mixins","palette","spacing","typography"]),m=_(c),v=l(n),g=V(f),y=(0,o.Z)({breakpoints:v,direction:"ltr",mixins:u(v,g,a),overrides:{},palette:m,props:{},shadows:P,typography:k(m,p),spacing:g,shape:j,transitions:G.ZP,zIndex:$.Z},h),b=arguments.length,w=new Array(b>1?b-1:0),x=1;x<b;x++)w[x-1]=arguments[x];return y=w.reduce((function(e,t){return(0,o.Z)(e,t)}),y)}},99700:function(e,t,n){"use strict";var r=(0,n(49277).Z)();t.Z=r},43366:function(e,t,n){"use strict";n.d(t,{x9:function(){return i}});var r=n(81253),o={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},i={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function a(e){return"".concat(Math.round(e),"ms")}t.ZP={easing:o,duration:i,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.duration,l=void 0===n?i.standard:n,s=t.easing,u=void 0===s?o.easeInOut:s,c=t.delay,f=void 0===c?0:c;(0,r.Z)(t,["duration","easing","delay"]);return(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof l?l:a(l)," ").concat(u," ").concat("string"==typeof f?f:a(f))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}}},14670:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(22122),o=n(81253),i=n(67294),a=(n(45697),n(8679)),l=n.n(a),s=n(73914),u=n(93869),c=n(159),f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var a=t.defaultTheme,f=t.withTheme,d=void 0!==f&&f,p=t.name,h=(0,o.Z)(t,["defaultTheme","withTheme","name"]);var m=p,v=(0,s.Z)(e,(0,r.Z)({defaultTheme:a,Component:n,name:p||n.displayName,classNamePrefix:m},h)),g=i.forwardRef((function(e,t){e.classes;var l,s=e.innerRef,f=(0,o.Z)(e,["classes","innerRef"]),h=v((0,r.Z)({},n.defaultProps,e)),m=f;return("string"==typeof p||d)&&(l=(0,c.Z)()||a,p&&(m=(0,u.Z)({theme:l,name:p,props:f})),d&&!m.theme&&(m.theme=l)),i.createElement(n,(0,r.Z)({ref:s||t,classes:h},m))}));return l()(g,n),g}},d=n(99700);var p=function(e,t){return f(e,(0,r.Z)({defaultTheme:d.Z},t))}},92781:function(e,t){"use strict";t.Z={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500}},93871:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(60288);function o(e){if("string"!=typeof e)throw new Error((0,r.Z)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},82568:function(e,t,n){"use strict";function r(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return null==t?e:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];e.apply(this,r),t.apply(this,r)}}),(function(){}))}n.d(t,{Z:function(){return r}})},63786:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(22122),o=n(67294),i=n(62087);function a(e,t){var n=function(t,n){return o.createElement(i.Z,(0,r.Z)({ref:n},t),e)};return n.muiName=i.Z.muiName,o.memo(o.forwardRef(n))}},79437:function(e,t,n){"use strict";function r(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=this,l=function(){e.apply(a,o)};clearTimeout(t),t=setTimeout(l,n)}return r.clear=function(){clearTimeout(t)},r}n.d(t,{Z:function(){return r}})},28546:function(e,t,n){"use strict";n.r(t),n.d(t,{capitalize:function(){return r.Z},createChainedFunction:function(){return o.Z},createSvgIcon:function(){return i.Z},debounce:function(){return a.Z},deprecatedPropType:function(){return l},isMuiElement:function(){return s.Z},ownerDocument:function(){return u.Z},ownerWindow:function(){return c.Z},requirePropFactory:function(){return f},setRef:function(){return d.Z},unstable_useId:function(){return g.Z},unsupportedProp:function(){return p},useControlled:function(){return h.Z},useEventCallback:function(){return m.Z},useForkRef:function(){return v.Z},useIsFocusVisible:function(){return y.Z}});var r=n(93871),o=n(82568),i=n(63786),a=n(79437);function l(e,t){return function(){return null}}var s=n(83711),u=n(30626),c=n(80713);function f(e){return function(){return null}}var d=n(34236);function p(e,t,n,r,o){return null}var h=n(22775),m=n(55192),v=n(17294),g=n(95001),y=n(24896)},83711:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(67294);function o(e,t){return r.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)}},30626:function(e,t,n){"use strict";function r(e){return e&&e.ownerDocument||document}n.d(t,{Z:function(){return r}})},80713:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(30626);function o(e){return(0,r.Z)(e).defaultView||window}},34236:function(e,t,n){"use strict";function r(e,t){"function"==typeof e?e(t):e&&(e.current=t)}n.d(t,{Z:function(){return r}})},95001:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(67294);function o(e){var t=r.useState(e),n=t[0],o=t[1],i=e||n;return r.useEffect((function(){null==n&&o("mui-".concat(Math.round(1e5*Math.random())))}),[n]),i}},22775:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(67294);function o(e){var t=e.controlled,n=e.default,o=(e.name,e.state,r.useRef(void 0!==t).current),i=r.useState(n),a=i[0],l=i[1];return[o?t:a,r.useCallback((function(e){o||l(e)}),[])]}},55192:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(67294),o="undefined"!=typeof window?r.useLayoutEffect:r.useEffect;function i(e){var t=r.useRef(e);return o((function(){t.current=e})),r.useCallback((function(){return t.current.apply(void 0,arguments)}),[])}},17294:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(67294),o=n(34236);function i(e,t){return r.useMemo((function(){return null==e&&null==t?null:function(n){(0,o.Z)(e,n),(0,o.Z)(t,n)}}),[e,t])}},24896:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(67294),o=n(73935),i=!0,a=!1,l=null,s={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function u(e){e.metaKey||e.altKey||e.ctrlKey||(i=!0)}function c(){i=!1}function f(){"hidden"===this.visibilityState&&a&&(i=!0)}function d(e){var t,n,r,o=e.target;try{return o.matches(":focus-visible")}catch(e){}return i||(n=(t=o).type,!("INPUT"!==(r=t.tagName)||!s[n]||t.readOnly)||"TEXTAREA"===r&&!t.readOnly||!!t.isContentEditable)}function p(){a=!0,window.clearTimeout(l),l=window.setTimeout((function(){a=!1}),100)}function h(){return{isFocusVisible:d,onBlurVisible:p,ref:r.useCallback((function(e){var t,n=o.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",u,!0),t.addEventListener("mousedown",c,!0),t.addEventListener("pointerdown",c,!0),t.addEventListener("touchstart",c,!0),t.addEventListener("visibilitychange",f,!0))}),[])}}},78513:function(e,t,n){"use strict";var r=n(95318),o=n(20862);t.Z=void 0;var i=o(n(67294)),a=(0,r(n(2108)).default)(i.createElement("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVert");t.Z=a},49507:function(e,t,n){"use strict";var r=n(95318),o=n(20862);t.Z=void 0;var i=o(n(67294)),a=(0,r(n(2108)).default)(i.createElement("path",{d:"M13 1.07V9h7c0-4.08-3.05-7.44-7-7.93zM4 15c0 4.42 3.58 8 8 8s8-3.58 8-8v-4H4v4zm7-13.93C7.05 1.56 4 4.92 4 9h7V1.07z"}),"Mouse");t.Z=a},2108:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r.createSvgIcon}});var r=n(28546)},4137:function(e,t,n){"use strict";n.d(t,{NU:function(){return p},ZP:function(){return h}});var r=n(22122),o=n(81253),i=n(67294),a=(n(45697),n(17076)),l=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];var s,u=n(54013),c=n(60246),f=(0,u.Ue)((0,c.Z)()),d={disableGeneration:!1,generateClassName:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,n=void 0!==t&&t,r=e.productionPrefix,o=void 0===r?"jss":r,i=e.seed,s=void 0===i?"":i,u=""===s?"":"".concat(s,"-"),c=0,f=function(){return c+=1};return function(e,t){var r=t.options.name;if(r&&0===r.indexOf("Mui")&&!t.options.link&&!n){if(-1!==l.indexOf(e.key))return"Mui-".concat(e.key);var i="".concat(u).concat(r,"-").concat(e.key);return t.options.theme[a.Z]&&""===s?"".concat(i,"-").concat(f()):i}return"".concat(u).concat(o).concat(f())}}(),jss:f,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},p=i.createContext(d);function h(e){var t=e.children,n=e.injectFirst,a=void 0!==n&&n,l=e.disableGeneration,f=void 0!==l&&l,d=(0,o.Z)(e,["children","injectFirst","disableGeneration"]),h=i.useContext(p),m=(0,r.Z)({},h,{disableGeneration:f},d);if(!m.jss.options.insertionPoint&&a&&"undefined"!=typeof window){if(!s){var v=document.head;s=document.createComment("mui-inject-first"),v.insertBefore(s,v.firstChild)}m.jss=(0,u.Ue)({plugins:(0,c.Z)().plugins,insertionPoint:s})}return i.createElement(p.Provider,{value:m},t)}},17076:function(e,t){"use strict";var n="function"==typeof Symbol&&Symbol.for;t.Z=n?Symbol.for("mui.nested"):"__THEME_NESTED__"},93869:function(e,t,n){"use strict";function r(e){var t=e.theme,n=e.name,r=e.props;if(!t||!t.props||!t.props[n])return r;var o,i=t.props[n];for(o in i)void 0===r[o]&&(r[o]=i[o]);return r}n.d(t,{Z:function(){return r}})},60246:function(e,t,n){"use strict";n.d(t,{Z:function(){return Re}});var r=n(54013),o=Date.now(),i="fnValues"+o,a="fnStyle"+ ++o,l=function(){return{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var o=(0,r.JH)(e,{},n);return o[a]=t,o},onProcessStyle:function(e,t){if(i in t||a in t)return e;var n={};for(var r in e){var o=e[r];"function"==typeof o&&(delete e[r],n[r]=o)}return t[i]=n,e},onUpdate:function(e,t,n,r){var o=t,l=o[a];l&&(o.style=l(e)||{});var s=o[i];if(s)for(var u in s)o.prop(u,s[u](e),r)}}},s=n(22122),u="@global",c=function(){function e(e,t,n){for(var o in this.type="global",this.at=u,this.rules=void 0,this.options=void 0,this.key=void 0,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new r.RB((0,s.Z)({},n,{parent:this})),t)this.rules.add(o,t[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(){return this.rules.toString()},e}(),f=function(){function e(e,t,n){this.type="global",this.at=u,this.options=void 0,this.rule=void 0,this.isProcessed=!1,this.key=void 0,this.key=e,this.options=n;var r=e.substr("@global ".length);this.rule=n.jss.createRule(r,t,(0,s.Z)({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),d=/\s*,\s*/g;function p(e,t){for(var n=e.split(d),r="",o=0;o<n.length;o++)r+=t+" "+n[o].trim(),n[o+1]&&(r+=", ");return r}var h=function(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===u)return new c(e,t,n);if("@"===e[0]&&"@global "===e.substr(0,"@global ".length))return new f(e,t,n);var r=n.parent;return r&&("global"===r.type||r.options.parent&&"global"===r.options.parent.type)&&(n.scoped=!1),!1===n.scoped&&(n.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var n=e.options,r=e.style,o=r?r[u]:null;if(o){for(var i in o)t.addRule(i,o[i],(0,s.Z)({},n,{selector:p(i,e.selector)}));delete r[u]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var o in r)if("@"===o[0]&&o.substr(0,u.length)===u){var i=p(o.substr(u.length),e.selector);t.addRule(i,r[o],(0,s.Z)({},n,{selector:i})),delete r[o]}}(e,t))}}},m=/\s*,\s*/g,v=/&/g,g=/\$([\w-]+)/g;var y=function(){function e(e,t){return function(n,r){var o=e.getRule(r)||t&&t.getRule(r);return o?(o=o).selector:r}}function t(e,t){for(var n=t.split(m),r=e.split(m),o="",i=0;i<n.length;i++)for(var a=n[i],l=0;l<r.length;l++){var s=r[l];o&&(o+=", "),o+=-1!==s.indexOf("&")?s.replace(v,a):a+" "+s}return o}function n(e,t,n){if(n)return(0,s.Z)({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var o=(0,s.Z)({},e.options,{nestingLevel:r,index:t.indexOf(e)+1});return delete o.name,o}return{onProcessStyle:function(r,o,i){if("style"!==o.type)return r;var a,l,u=o,c=u.options.parent;for(var f in r){var d=-1!==f.indexOf("&"),p="@"===f[0];if(d||p){if(a=n(u,c,a),d){var h=t(f,u.selector);l||(l=e(c,i)),h=h.replace(g,l),c.addRule(h,r[f],(0,s.Z)({},a,{selector:h}))}else p&&c.addRule(f,{},a).addRule(u.key,r[f],{selector:u.selector});delete r[f]}}return r}}},b=/[A-Z]/g,w=/^ms-/,x={};function E(e){return"-"+e.toLowerCase()}var _=function(e){if(x.hasOwnProperty(e))return x[e];var t=e.replace(b,E);return x[e]=w.test(t)?"-"+t:t};function S(e){var t={};for(var n in e){t[0===n.indexOf("--")?n:_(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(S):t.fallbacks=S(e.fallbacks)),t}var O=function(){return{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=S(e[t]);return e}return S(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=_(t);return t===r?e:(n.prop(r,e),null)}}},k=r.HZ&&CSS?CSS.px:"px",C=r.HZ&&CSS?CSS.ms:"ms",P=r.HZ&&CSS?CSS.percent:"%";function j(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},r={};for(var o in e)r[o]=e[o],r[o.replace(t,n)]=e[o];return r}var T=j({"animation-delay":C,"animation-duration":C,"background-position":k,"background-position-x":k,"background-position-y":k,"background-size":k,border:k,"border-bottom":k,"border-bottom-left-radius":k,"border-bottom-right-radius":k,"border-bottom-width":k,"border-left":k,"border-left-width":k,"border-radius":k,"border-right":k,"border-right-width":k,"border-top":k,"border-top-left-radius":k,"border-top-right-radius":k,"border-top-width":k,"border-width":k,"border-block":k,"border-block-end":k,"border-block-end-width":k,"border-block-start":k,"border-block-start-width":k,"border-block-width":k,"border-inline":k,"border-inline-end":k,"border-inline-end-width":k,"border-inline-start":k,"border-inline-start-width":k,"border-inline-width":k,"border-start-start-radius":k,"border-start-end-radius":k,"border-end-start-radius":k,"border-end-end-radius":k,margin:k,"margin-bottom":k,"margin-left":k,"margin-right":k,"margin-top":k,"margin-block":k,"margin-block-end":k,"margin-block-start":k,"margin-inline":k,"margin-inline-end":k,"margin-inline-start":k,padding:k,"padding-bottom":k,"padding-left":k,"padding-right":k,"padding-top":k,"padding-block":k,"padding-block-end":k,"padding-block-start":k,"padding-inline":k,"padding-inline-end":k,"padding-inline-start":k,"mask-position-x":k,"mask-position-y":k,"mask-size":k,height:k,width:k,"min-height":k,"max-height":k,"min-width":k,"max-width":k,bottom:k,left:k,top:k,right:k,inset:k,"inset-block":k,"inset-block-end":k,"inset-block-start":k,"inset-inline":k,"inset-inline-end":k,"inset-inline-start":k,"box-shadow":k,"text-shadow":k,"column-gap":k,"column-rule":k,"column-rule-width":k,"column-width":k,"font-size":k,"font-size-delta":k,"letter-spacing":k,"text-decoration-thickness":k,"text-indent":k,"text-stroke":k,"text-stroke-width":k,"word-spacing":k,motion:k,"motion-offset":k,outline:k,"outline-offset":k,"outline-width":k,perspective:k,"perspective-origin-x":P,"perspective-origin-y":P,"transform-origin":P,"transform-origin-x":P,"transform-origin-y":P,"transform-origin-z":P,"transition-delay":C,"transition-duration":C,"vertical-align":k,"flex-basis":k,"shape-margin":k,size:k,gap:k,grid:k,"grid-gap":k,"row-gap":k,"grid-row-gap":k,"grid-column-gap":k,"grid-template-rows":k,"grid-template-columns":k,"grid-auto-rows":k,"grid-auto-columns":k,"box-shadow-x":k,"box-shadow-y":k,"box-shadow-blur":k,"box-shadow-spread":k,"font-line-height":k,"text-shadow-x":k,"text-shadow-y":k,"text-shadow-blur":k});function A(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=A(e,t[r],n);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=A(o,t[o],n);else for(var i in t)t[i]=A(e+"-"+i,t[i],n);else if("number"==typeof t&&!1===isNaN(t)){var a=n[e]||T[e];return!a||0===t&&a===k?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}var I=function(e){void 0===e&&(e={});var t=j(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=A(r,e[r],t);return e},onChangeValue:function(e,n){return A(n,e,t)}}},R=n(33827),N=n(78927),D="",M="",L="",F="",z=R.Z&&"ontouchstart"in document.documentElement;if(R.Z){var B={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},U=document.createElement("p").style;for(var Z in B)if(Z+"Transform"in U){D=Z,M=B[Z];break}"Webkit"===D&&"msHyphens"in U&&(D="ms",M=B.ms,F="edge"),"Webkit"===D&&"-apple-trailing-word"in U&&(L="apple")}var H=D,W=M,V=L,G=F,$=z;var K={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===H?"-webkit-"+e:W+e)}},q={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===H?W+"print-"+e:e)}},Y=/[-\s]+(.)?/g;function J(e,t){return t?t.toUpperCase():""}function X(e){return e.replace(Y,J)}function Q(e){return X("-"+e)}var ee,te={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===H){if(X("mask-image")in t)return e;if(H+Q("mask-image")in t)return W+e}return e}},ne={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==V||$?e:W+e)}},re={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:W+e)}},oe={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:W+e)}},ie={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===H||"ms"===H&&"edge"!==G?W+e:e)}},ae={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===H||"ms"===H||"apple"===V?W+e:e)}},le={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===H?"WebkitColumn"+Q(e)in t&&W+"column-"+e:"Moz"===H&&("page"+Q(e)in t&&"page-"+e))}},se={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===H)return e;var n=e.replace("-inline","");return H+Q(n)in t&&W+n}},ue={supportedProperty:function(e,t){return X(e)in t&&e}},ce={supportedProperty:function(e,t){var n=Q(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:H+n in t?W+e:"Webkit"!==H&&"Webkit"+n in t&&"-webkit-"+e}},fe={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===H?""+W+e:e)}},de={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===H?W+"scroll-chaining":e)}},pe={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},he={supportedProperty:function(e,t){var n=pe[e];return!!n&&(H+Q(n)in t&&W+n)}},me={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},ve=Object.keys(me),ge=function(e){return W+e},ye=[K,q,te,ne,re,oe,ie,ae,le,se,ue,ce,fe,de,he,{supportedProperty:function(e,t,n){var r=n.multiple;if(ve.indexOf(e)>-1){var o=me[e];if(!Array.isArray(o))return H+Q(o)in t&&W+o;if(!r)return!1;for(var i=0;i<o.length;i++)if(!(H+Q(o[0])in t))return!1;return o.map(ge)}return!1}}],be=ye.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),we=ye.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,(0,N.Z)(t.noPrefill)),e}),[]),xe={};if(R.Z){ee=document.createElement("p");var Ee=window.getComputedStyle(document.documentElement,"");for(var _e in Ee)isNaN(_e)||(xe[Ee[_e]]=Ee[_e]);we.forEach((function(e){return delete xe[e]}))}function Se(e,t){if(void 0===t&&(t={}),!ee)return e;if(null!=xe[e])return xe[e];"transition"!==e&&"transform"!==e||(t[e]=e in ee.style);for(var n=0;n<be.length&&(xe[e]=be[n](e,ee.style,t),!xe[e]);n++);try{ee.style[e]=""}catch(e){return!1}return xe[e]}var Oe,ke={},Ce={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},Pe=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function je(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var r=t?Se(t):", "+Se(n);return r||(t||n)}function Te(e,t){var n=t;if(!Oe||"content"===e)return t;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=ke[r])return ke[r];try{Oe.style[e]=n}catch(e){return ke[r]=!1,!1}if(Ce[e])n=n.replace(Pe,je);else if(""===Oe.style[e]&&("-ms-flex"===(n=W+n)&&(Oe.style[e]="-ms-flexbox"),Oe.style[e]=n,""===Oe.style[e]))return ke[r]=!1,!1;return Oe.style[e]="",ke[r]=n,ke[r]}R.Z&&(Oe=document.createElement("p"));var Ae=function(){function e(t){for(var n in t){var o=t[n];if("fallbacks"===n&&Array.isArray(o))t[n]=o.map(e);else{var i=!1,a=Se(n);a&&a!==n&&(i=!0);var l=!1,s=Te(a,(0,r.EK)(o));s&&s!==o&&(l=!0),(i||l)&&(i&&delete t[n],t[a||n]=s||o)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===H?e:"@"+W+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return Te(t,(0,r.EK)(e))||e}}};var Ie=function(){var e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length};return{onProcessStyle:function(t,n){if("style"!==n.type)return t;for(var r={},o=Object.keys(t).sort(e),i=0;i<o.length;i++)r[o[i]]=t[o[i]];return r}}};function Re(){return{plugins:[l(),h(),y(),O(),I(),"undefined"==typeof window?null:Ae(),Ie()]}}},73914:function(e,t,n){"use strict";n.d(t,{Z:function(){return x}});var r=n(81253),o=n(22122),i=n(67294),a=n(54013),l=n(65835),s={set:function(e,t,n,r){var o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(n,r)},get:function(e,t,n){var r=e.get(t);return r?r.get(n):void 0},delete:function(e,t,n){e.get(t).delete(n)}},u=n(159),c=n(4137),f=-1e9;function d(){return f+=1}var p=n(35953);function h(e){var t="function"==typeof e;return{create:function(n,r){var i;try{i=t?e(n):e}catch(e){throw e}if(!r||!n.overrides||!n.overrides[r])return i;var a=n.overrides[r],l=(0,o.Z)({},i);return Object.keys(a).forEach((function(e){l[e]=(0,p.Z)(l[e],a[e])})),l},options:{}}}var m={};function v(e,t,n){var r=e.state;if(e.stylesOptions.disableGeneration)return t||{};r.cacheClasses||(r.cacheClasses={value:null,lastProp:null,lastJSS:{}});var o=!1;return r.classes!==r.cacheClasses.lastJSS&&(r.cacheClasses.lastJSS=r.classes,o=!0),t!==r.cacheClasses.lastProp&&(r.cacheClasses.lastProp=t,o=!0),o&&(r.cacheClasses.value=(0,l.Z)({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}function g(e,t){var n=e.state,r=e.theme,i=e.stylesOptions,u=e.stylesCreator,c=e.name;if(!i.disableGeneration){var f=s.get(i.sheetsManager,u,r);f||(f={refs:0,staticSheet:null,dynamicStyles:null},s.set(i.sheetsManager,u,r,f));var d=(0,o.Z)({},u.options,i,{theme:r,flip:"boolean"==typeof i.flip?i.flip:"rtl"===r.direction});d.generateId=d.serverGenerateClassName||d.generateClassName;var p=i.sheetsRegistry;if(0===f.refs){var h;i.sheetsCache&&(h=s.get(i.sheetsCache,u,r));var m=u.create(r,c);h||((h=i.jss.createStyleSheet(m,(0,o.Z)({link:!1},d))).attach(),i.sheetsCache&&s.set(i.sheetsCache,u,r,h)),p&&p.add(h),f.staticSheet=h,f.dynamicStyles=(0,a._$)(m)}if(f.dynamicStyles){var v=i.jss.createStyleSheet(f.dynamicStyles,(0,o.Z)({link:!0},d));v.update(t),v.attach(),n.dynamicSheet=v,n.classes=(0,l.Z)({baseClasses:f.staticSheet.classes,newClasses:v.classes}),p&&p.add(v)}else n.classes=f.staticSheet.classes;f.refs+=1}}function y(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}function b(e){var t=e.state,n=e.theme,r=e.stylesOptions,o=e.stylesCreator;if(!r.disableGeneration){var i=s.get(r.sheetsManager,o,n);i.refs-=1;var a=r.sheetsRegistry;0===i.refs&&(s.delete(r.sheetsManager,o,n),r.jss.removeStyleSheet(i.staticSheet),a&&a.remove(i.staticSheet)),t.dynamicSheet&&(r.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}function w(e,t){var n,r=i.useRef([]),o=i.useMemo((function(){return{}}),t);r.current!==o&&(r.current=o,n=e()),i.useEffect((function(){return function(){n&&n()}}),[o])}function x(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.name,a=t.classNamePrefix,l=t.Component,s=t.defaultTheme,f=void 0===s?m:s,p=(0,r.Z)(t,["name","classNamePrefix","Component","defaultTheme"]),x=h(e),E=n||a||"makeStyles";x.options={index:d(),name:n,meta:E,classNamePrefix:E};var _=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,u.Z)()||f,r=(0,o.Z)({},i.useContext(c.NU),p),a=i.useRef(),s=i.useRef();w((function(){var o={name:n,state:{},stylesCreator:x,stylesOptions:r,theme:t};return g(o,e),s.current=!1,a.current=o,function(){b(o)}}),[t,x]),i.useEffect((function(){s.current&&y(a.current,e),s.current=!0}));var d=v(a.current,e.classes,l);return d};return _}},65835:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(22122);function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,n=e.newClasses;e.Component;if(!n)return t;var o=(0,r.Z)({},t);return Object.keys(n).forEach((function(e){n[e]&&(o[e]="".concat(t[e]," ").concat(n[e]))})),o}},83800:function(e,t,n){"use strict";var r=n(67294).createContext(null);t.Z=r},159:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(67294),o=n(83800);function i(){return r.useContext(o.Z)}},35953:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(22122),o=n(90484);function i(e){return e&&"object"===(0,o.Z)(e)&&e.constructor===Object}function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},o=n.clone?(0,r.Z)({},e):e;return i(e)&&i(t)&&Object.keys(t).forEach((function(r){"__proto__"!==r&&(i(t[r])&&r in e?o[r]=a(e[r],t[r],n):o[r]=t[r])})),o}},60288:function(e,t,n){"use strict";function r(e){for(var t="https://material-ui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}n.d(t,{Z:function(){return r}})},62844:function(e,t,n){"use strict";n.d(t,{Rf:function(){return i},DM:function(){return a},en:function(){return l},jH:function(){return s},Cf:function(){return u},Db:function(){return c},EG:function(){return f},l4:function(){return d},JY:function(){return p}});var r=n(61422),o={};function i(){return(0,r.KV)()?n.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:o}function a(){var e=i(),t=e.crypto||e.msCrypto;if(void 0!==t&&t.getRandomValues){var n=new Uint16Array(8);t.getRandomValues(n),n[3]=4095&n[3]|16384,n[4]=16383&n[4]|32768;var r=function(e){for(var t=e.toString(16);t.length<4;)t="0"+t;return t};return r(n[0])+r(n[1])+r(n[2])+r(n[3])+r(n[4])+r(n[5])+r(n[6])+r(n[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}function l(e){if(!e)return{};var t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};var n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],relative:t[5]+n+r}}function s(e){if(e.message)return e.message;if(e.exception&&e.exception.values&&e.exception.values[0]){var t=e.exception.values[0];return t.type&&t.value?t.type+": "+t.value:t.type||t.value||e.event_id||"<unknown>"}return e.event_id||"<unknown>"}function u(e){var t=i();if(!("console"in t))return e();var n=t.console,r={};["debug","info","warn","error","log","assert"].forEach((function(e){e in t.console&&n[e].__sentry_original__&&(r[e]=n[e],n[e]=n[e].__sentry_original__)}));var o=e();return Object.keys(r).forEach((function(e){n[e]=r[e]})),o}function c(e,t,n){e.exception=e.exception||{},e.exception.values=e.exception.values||[],e.exception.values[0]=e.exception.values[0]||{},e.exception.values[0].value=e.exception.values[0].value||t||"",e.exception.values[0].type=e.exception.values[0].type||n||"Error"}function f(e,t){void 0===t&&(t={});try{e.exception.values[0].mechanism=e.exception.values[0].mechanism||{},Object.keys(t).forEach((function(n){e.exception.values[0].mechanism[n]=t[n]}))}catch(e){}}function d(){try{return document.location.href}catch(e){return""}}function p(e,t){if(!t)return 6e4;var n=parseInt(""+t,10);if(!isNaN(n))return 1e3*n;var r=Date.parse(""+t);return isNaN(r)?6e4:r-e}},61422:function(e,t,n){"use strict";function r(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function o(e,t){return e.require(t)}n.d(t,{KV:function(){return r},l$:function(){return o}}),e=n.hmd(e)},21170:function(e,t,n){"use strict";n.d(t,{yW:function(){return s}});var r=n(62844),o=n(61422);e=n.hmd(e);var i={nowSeconds:function(){return Date.now()/1e3}};var a=(0,o.KV)()?function(){try{return(0,o.l$)(e,"perf_hooks").performance}catch(e){return}}():function(){var e=(0,r.Rf)().performance;if(e&&e.now)return{now:function(){return e.now()},timeOrigin:Date.now()-e.now()}}(),l=void 0===a?i:{nowSeconds:function(){return(a.timeOrigin+a.now())/1e3}},s=i.nowSeconds.bind(i);l.nowSeconds.bind(l),function(){var e=(0,r.Rf)().performance;if(e)e.timeOrigin?e.timeOrigin:e.timing&&e.timing.navigationStart||Date.now()}()},99601:function(e,t){"use strict";t.Z=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(2===e.length)return r(e[0],e[1])||null;var n=e.slice(1).reduce((function(e,t){return r(e,t)}),e[0]);return n||null};var n=new WeakMap;function r(e,t){if(e&&t){var r=n.get(e)||new WeakMap;n.set(e,r);var i=r.get(t)||function(n){o(e,n),o(t,n)};return r.set(t,i),i}return e||t}function o(e,t){"function"==typeof e?e(t):e.current=t}},9669:function(e,t,n){e.exports=n(51609)},55448:function(e,t,n){"use strict";var r=n(64867),o=n(36026),i=n(4372),a=n(15327),l=n(94097),s=n(84109),u=n(67985),c=n(85061);e.exports=function(e){return new Promise((function(t,n){var f=e.data,d=e.headers,p=e.responseType;r.isFormData(f)&&delete d["Content-Type"];var h=new XMLHttpRequest;if(e.auth){var m=e.auth.username||"",v=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";d.Authorization="Basic "+btoa(m+":"+v)}var g=l(e.baseURL,e.url);function y(){if(h){var r="getAllResponseHeaders"in h?s(h.getAllResponseHeaders()):null,i={data:p&&"text"!==p&&"json"!==p?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:r,config:e,request:h};o(t,n,i),h=null}}if(h.open(e.method.toUpperCase(),a(g,e.params,e.paramsSerializer),!0),h.timeout=e.timeout,"onloadend"in h?h.onloadend=y:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))&&setTimeout(y)},h.onabort=function(){h&&(n(c("Request aborted",e,"ECONNABORTED",h)),h=null)},h.onerror=function(){n(c("Network Error",e,null,h)),h=null},h.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(c(t,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",h)),h=null},r.isStandardBrowserEnv()){var b=(e.withCredentials||u(g))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;b&&(d[e.xsrfHeaderName]=b)}"setRequestHeader"in h&&r.forEach(d,(function(e,t){void 0===f&&"content-type"===t.toLowerCase()?delete d[t]:h.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(h.withCredentials=!!e.withCredentials),p&&"json"!==p&&(h.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&h.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){h&&(h.abort(),n(e),h=null)})),f||(f=null),h.send(f)}))}},51609:function(e,t,n){"use strict";var r=n(64867),o=n(91849),i=n(30321),a=n(47185);function l(e){var t=new i(e),n=o(i.prototype.request,t);return r.extend(n,i.prototype,t),r.extend(n,t),n}var s=l(n(45655));s.Axios=i,s.create=function(e){return l(a(s.defaults,e))},s.Cancel=n(65263),s.CancelToken=n(14972),s.isCancel=n(26502),s.all=function(e){return Promise.all(e)},s.spread=n(8713),s.isAxiosError=n(16268),e.exports=s,e.exports.default=s},65263:function(e){"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},14972:function(e,t,n){"use strict";var r=n(65263);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var e;return{token:new o((function(t){e=t})),cancel:e}},e.exports=o},26502:function(e){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},30321:function(e,t,n){"use strict";var r=n(64867),o=n(15327),i=n(80782),a=n(13572),l=n(47185),s=n(54875),u=s.validators;function c(e){this.defaults=e,this.interceptors={request:new i,response:new i}}c.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=l(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&s.assertOptions(t,{silentJSONParsing:u.transitional(u.boolean,"1.0.0"),forcedJSONParsing:u.transitional(u.boolean,"1.0.0"),clarifyTimeoutError:u.transitional(u.boolean,"1.0.0")},!1);var n=[],r=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(r=r&&t.synchronous,n.unshift(t.fulfilled,t.rejected))}));var o,i=[];if(this.interceptors.response.forEach((function(e){i.push(e.fulfilled,e.rejected)})),!r){var c=[a,void 0];for(Array.prototype.unshift.apply(c,n),c=c.concat(i),o=Promise.resolve(e);c.length;)o=o.then(c.shift(),c.shift());return o}for(var f=e;n.length;){var d=n.shift(),p=n.shift();try{f=d(f)}catch(e){p(e);break}}try{o=a(f)}catch(e){return Promise.reject(e)}for(;i.length;)o=o.then(i.shift(),i.shift());return o},c.prototype.getUri=function(e){return e=l(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){c.prototype[e]=function(t,n){return this.request(l(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){c.prototype[e]=function(t,n,r){return this.request(l(r||{},{method:e,url:t,data:n}))}})),e.exports=c},80782:function(e,t,n){"use strict";var r=n(64867);function o(){this.handlers=[]}o.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},94097:function(e,t,n){"use strict";var r=n(91793),o=n(7303);e.exports=function(e,t){return e&&!r(t)?o(e,t):t}},85061:function(e,t,n){"use strict";var r=n(80481);e.exports=function(e,t,n,o,i){var a=new Error(e);return r(a,t,n,o,i)}},13572:function(e,t,n){"use strict";var r=n(64867),o=n(18527),i=n(26502),a=n(45655);function l(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return l(e),e.headers=e.headers||{},e.data=o.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return l(e),t.data=o.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(l(e),t&&t.response&&(t.response.data=o.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},80481:function(e){"use strict";e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},47185:function(e,t,n){"use strict";var r=n(64867);e.exports=function(e,t){t=t||{};var n={},o=["url","method","data"],i=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],l=["validateStatus"];function s(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function u(o){r.isUndefined(t[o])?r.isUndefined(e[o])||(n[o]=s(void 0,e[o])):n[o]=s(e[o],t[o])}r.forEach(o,(function(e){r.isUndefined(t[e])||(n[e]=s(void 0,t[e]))})),r.forEach(i,u),r.forEach(a,(function(o){r.isUndefined(t[o])?r.isUndefined(e[o])||(n[o]=s(void 0,e[o])):n[o]=s(void 0,t[o])})),r.forEach(l,(function(r){r in t?n[r]=s(e[r],t[r]):r in e&&(n[r]=s(void 0,e[r]))}));var c=o.concat(i).concat(a).concat(l),f=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===c.indexOf(e)}));return r.forEach(f,u),n}},36026:function(e,t,n){"use strict";var r=n(85061);e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},18527:function(e,t,n){"use strict";var r=n(64867),o=n(45655);e.exports=function(e,t,n){var i=this||o;return r.forEach(n,(function(n){e=n.call(i,e,t)})),e}},45655:function(e,t,n){"use strict";var r=n(64867),o=n(16016),i=n(80481),a={"Content-Type":"application/x-www-form-urlencoded"};function l(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var s,u={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(s=n(55448)),s),transformRequest:[function(e,t){return o(t,"Accept"),o(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(l(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)||t&&"application/json"===t["Content-Type"]?(l(t,"application/json"),function(e,t,n){if(r.isString(e))try{return(t||JSON.parse)(e),r.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional,n=t&&t.silentJSONParsing,o=t&&t.forcedJSONParsing,a=!n&&"json"===this.responseType;if(a||o&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(a){if("SyntaxError"===e.name)throw i(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300}};u.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],(function(e){u.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){u.headers[e]=r.merge(a)})),e.exports=u},91849:function(e){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},15327:function(e,t,n){"use strict";var r=n(64867);function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(r.isURLSearchParams(t))i=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(o(t)+"="+o(e))})))})),i=a.join("&")}if(i){var l=e.indexOf("#");-1!==l&&(e=e.slice(0,l)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},7303:function(e){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},4372:function(e,t,n){"use strict";var r=n(64867);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,o,i,a){var l=[];l.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&l.push("expires="+new Date(n).toGMTString()),r.isString(o)&&l.push("path="+o),r.isString(i)&&l.push("domain="+i),!0===a&&l.push("secure"),document.cookie=l.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},91793:function(e){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},16268:function(e){"use strict";e.exports=function(e){return"object"==typeof e&&!0===e.isAxiosError}},67985:function(e,t,n){"use strict";var r=n(64867);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},16016:function(e,t,n){"use strict";var r=n(64867);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},84109:function(e,t,n){"use strict";var r=n(64867),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,i,a={};return e?(r.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=r.trim(e.substr(0,i)).toLowerCase(),n=r.trim(e.substr(i+1)),t){if(a[t]&&o.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},8713:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},54875:function(e,t,n){"use strict";var r=n(20696),o={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){o[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var i={},a=r.version.split(".");function l(e,t){for(var n=t?t.split("."):a,r=e.split("."),o=0;o<3;o++){if(n[o]>r[o])return!0;if(n[o]<r[o])return!1}return!1}o.transitional=function(e,t,n){var o=t&&l(t);function a(e,t){return"[Axios v"+r.version+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,l){if(!1===e)throw new Error(a(r," has been removed in "+t));return o&&!i[r]&&(i[r]=!0,console.warn(a(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,l)}},e.exports={isOlderVersion:l,assertOptions:function(e,t,n){if("object"!=typeof e)throw new TypeError("options must be an object");for(var r=Object.keys(e),o=r.length;o-- >0;){var i=r[o],a=t[i];if(a){var l=e[i],s=void 0===l||a(l,i,e);if(!0!==s)throw new TypeError("option "+i+" must be "+s)}else if(!0!==n)throw Error("Unknown option "+i)}},validators:o}},64867:function(e,t,n){"use strict";var r=n(91849),o=Object.prototype.toString;function i(e){return"[object Array]"===o.call(e)}function a(e){return void 0===e}function l(e){return null!==e&&"object"==typeof e}function s(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function u(e){return"[object Function]"===o.call(e)}function c(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),i(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}e.exports={isArray:i,isArrayBuffer:function(e){return"[object ArrayBuffer]"===o.call(e)},isBuffer:function(e){return null!==e&&!a(e)&&null!==e.constructor&&!a(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:l,isPlainObject:s,isUndefined:a,isDate:function(e){return"[object Date]"===o.call(e)},isFile:function(e){return"[object File]"===o.call(e)},isBlob:function(e){return"[object Blob]"===o.call(e)},isFunction:u,isStream:function(e){return l(e)&&u(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:c,merge:function e(){var t={};function n(n,r){s(t[r])&&s(n)?t[r]=e(t[r],n):s(n)?t[r]=e({},n):i(n)?t[r]=n.slice():t[r]=n}for(var r=0,o=arguments.length;r<o;r++)c(arguments[r],n);return t},extend:function(e,t,n){return c(t,(function(t,o){e[o]=n&&"function"==typeof t?r(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},20696:function(e){"use strict";e.exports=JSON.parse('{"name":"axios","version":"0.21.4","description":"Promise based HTTP client for the browser and node.js","main":"index.js","scripts":{"test":"grunt test","start":"node ./sandbox/server.js","build":"NODE_ENV=production grunt build","preversion":"npm test","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json","postversion":"git push && git push --tags","examples":"node ./examples/server.js","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","fix":"eslint --fix lib/**/*.js"},"repository":{"type":"git","url":"https://github.com/axios/axios.git"},"keywords":["xhr","http","ajax","promise","node"],"author":"Matt Zabriskie","license":"MIT","bugs":{"url":"https://github.com/axios/axios/issues"},"homepage":"https://axios-http.com","devDependencies":{"coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^8.2.1","sinon":"^4.5.0","terser-webpack-plugin":"^4.2.3","typescript":"^4.0.5","url-search-params":"^0.10.0","webpack":"^4.44.2","webpack-dev-server":"^3.11.0"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"jsdelivr":"dist/axios.min.js","unpkg":"dist/axios.min.js","typings":"./index.d.ts","dependencies":{"follow-redirects":"^1.14.0"},"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}]}')},18671:function(e,t,n){"use strict";var r=n(67294),o=n(73935),i=n(67121),a=function(){return Math.random().toString(36).substring(7).split("").join(".")},l={INIT:"@@redux/INIT"+a(),REPLACE:"@@redux/REPLACE"+a(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+a()}};function s(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function u(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(u)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var o=e,a=t,c=[],f=c,d=!1;function p(){f===c&&(f=c.slice())}function h(){if(d)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return a}function m(e){if("function"!=typeof e)throw new Error("Expected the listener to be a function.");if(d)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribelistener for more details.");var t=!0;return p(),f.push(e),function(){if(t){if(d)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribelistener for more details.");t=!1,p();var n=f.indexOf(e);f.splice(n,1),c=null}}}function v(e){if(!s(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(d)throw new Error("Reducers may not dispatch actions.");try{d=!0,a=o(a,e)}finally{d=!1}for(var t=c=f,n=0;n<t.length;n++){(0,t[n])()}return e}function g(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");o=e,v({type:l.REPLACE})}function y(){var e,t=m;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new TypeError("Expected the observer to be an object.");function n(){e.next&&e.next(h())}return n(),{unsubscribe:t(n)}}})[i.Z]=function(){return this},e}return v({type:l.INIT}),(r={dispatch:v,subscribe:m,getState:h,replaceReducer:g})[i.Z]=y,r}function c(e,t){var n=t&&t.type;return"Given "+(n&&'action "'+String(n)+'"'||"an action")+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function f(e,t){return function(){return t(e.apply(this,arguments))}}function d(e,t){if("function"==typeof e)return f(e,t);if("object"!=typeof e||null===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":typeof e)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');var n={};for(var r in e){var o=e[r];"function"==typeof o&&(n[r]=f(o,t))}return n}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t){var n=Object.keys(e);return Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(e)),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(n,!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function v(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function g(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},i=t.map((function(e){return e(o)}));return m({},n,{dispatch:r=v.apply(void 0,i)(n.dispatch)})}}}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return w(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return w(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function x(e){return(x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var E=n(46314),_=n(82492),S=n(14176),O={INIT:"INIT",ADD_MODEL:"ADD_MODEL",ADD_RELATION:"ADD_RELATION",CHANGE_RELATION:"CHANGE_RELATION",REMOVE_RELATION:"REMOVE_RELATION",GET_DATA_BEGIN:"GET_DATA_BEGIN",GET_DATA_SUCCESS:"GET_DATA_SUCCESS",GET_DATA_FAILURE:"GET_DATA_FAILURE",GET_DATA_END:"GET_DATA_END",HAS_CHANGES:"HAS_CHANGES",IS_UPDATING:"IS_UPDATING",STOP_LOADING:"STOP_LOADING",SET_SETTING_VALUE:"SET_SETTING_VALUE",SET_MISC_VALUE:"SET_MISC_VALUE",OPEN_DRAWER:"OPENING DRAWER",CLOSE_DRAWER:"CLOSING DRAWER",groups:{ADD_RECORD:"ADDING GROUP RECORD",REMOVE_RECORD:"REMOVING GROUP RECORD",SET_KEY_VALUE:"SET KEY VALUE GROUPS",SET_KEY_FORMAT:"SET FORMATTED KEY VALUE PAIRS GROUPS"},buttons:{ADD_RECORD:"ADDING BUTTON RECORD",REMOVE_RECORD:"REMOVING BUTTON RECORD",SET_KEY_VALUE:"SET KEY VALUE BUTTONS",SET_KEY_FORMAT:"SET FORMATTED KEY VALUE PAIRS BUTTONS"},timeSchedules:{ADD_RECORD:"ADDING TIME SCHEDULE",REMOVE_RECORD:"REMOVING TIME SCHEDULE",SET_KEY_VALUE:"SET KEY VALUE TIMESCHEDULES",SET_KEY_FORMAT:"SET FORMATTED KEY VALUE PAIRS TIMESCHEDULES",ADD_TIMESCHEDULE:"ADD_TIMESCHEDULE",SET_WEEKDAY:"SET_WEEKDAY",ADD_EXCLUDED_DATE:"ADD_EXCLUDED_DATE",SET_EXCLUDED_DATE:"SET_EXCLUDED_DATE",REMOVE_EXCLUDED_DATE:"REMOVE_EXCLUDED_DATE"},pageRules:{ADD_RECORD:"ADDING PAGE RULE",REMOVE_RECORD:"REMOVING PAGE RULE",SET_KEY_VALUE:"SET KEY VALUE PAGERULES",SET_KEY_FORMAT:"SET FORMATTED KEY VALUE PAIRS PAGERULES",ADD_PAGE_RULE_ROW:"ADD_PAGE_RULE_ROW",SET_PAGE_RULE_ROW:"SET_PAGE_RULE_ROW",REMOVE_PAGE_RULE_ROW:"REMOVE_PAGE_RULE_ROW"},wp:{GET_DATA_BEGIN:"GET_DATA_BEGIN_WP",GET_DATA_SUCCESS:"GET_DATA_SUCCESS_WP",GET_DATA_FAILURE:"GET_DATA_FAILURE_WP",GET_DATA_END:"GET_DATA_END_WP"},templates:{INIT:"INIT TEMPLATES",GET_DATA_BEGIN:"GET TEMPLATES DATA BEGIN",GET_DATA_FAILURE:"GET TEMPLATES DATA FAILURE",GET_DATA_END:"GET TEMPLATES DATA END",ADD_RECORD:"ADDING TEMPLATE"}},k=["monday","tuesday","wednesday","thursday","friday","saturday","sunday"],C="buttons",P="groups",j={MENU:"menu",SETTINGS:"settings",SETTINGS_PAGES:{analytics:"analytics",iconLibrary:"iconlibrary",preferences:"preferences",reset:"reset"},BUTTONIZER_TOUR:"buttonizertour",WELCOME_DIALOG:"welcome-splash",TIME_SCHEDULES:"timeschedules",PAGE_RULES:"pagerules"},T={normal_hover:{format:function(e,t){return[e,t].map((function(e){return"unset"===e||null==e?"":e})).filter((function(e,t,n){return 0===t||""!==e&&e!==n[0]})).join(";")||"unset"},parse:function(e){var t=e;if("boolean"==typeof e&&(t=String(e)),"number"==typeof e&&(t=String(e)),void 0===e)return[];if("string"!=typeof t)throw console.trace(),console.log(x(t),t),TypeError("'record[key]' val is not of type String, boolean or number");return t.split(";").map((function(e){if(e)return"true"===e||"false"!==e&&(isNaN(Number(e))?e:Number(e))})).map((function(e,t,n){return 0===t?e:e===n[0]?void 0:e}))}},fourSidesPx:{format:function(e,t,n,r){return"".concat(e,"px ").concat(t,"px ").concat(n,"px ").concat(r,"px")},parse:function(e){return e.match(/\d+/g)}},position:{format:function(e,t,n){return"".concat(e,": ").concat(n).concat(t)}}},A=["export_type","selected_page_rule","selected_schedule","id","parent","show_on_rule_trigger","show_on_schedule_trigger"],I={get buttonSettings(){var e={general:[],styling:[],advanced:[]};return Object.entries(E.button).map((function(t){_(e,y({},t[0],Object.entries(t[1]).map((function(e){return b(e,1)[0]}))))})),e},get groupSettings(){var e={general:[],styling:[],advanced:[]};return Object.entries(E.group).map((function(t){_(e,y({},t[0],Object.entries(t[1]).map((function(e){return b(e,1)[0]}))))})),e},get allSettings(){var e={general:[],styling:[],advanced:[]};return Object.entries(_({},E.button,E.group)).map((function(t){_(e,y({},t[0],Object.entries(t[1]).map((function(e){return b(e,1)[0]}))))})),e},get stylingNoGroup(){var e=this;return Object.entries(S(_({},E.button.styling,E.group.styling),(function(t,n){return e.groupSettings.styling.includes(n)&&e.buttonSettings.styling.includes(n)||n.includes("icon")}))).map((function(e){return b(e,1)[0]}))},get stylingHover(){return Object.entries(_({},E.button.styling,E.group.styling)).filter((function(e){return Array.isArray(e[1])})).map((function(e){return b(e,1)[0]}))}},R=n(9669),N=n.n(R);function D(e,t){M(),document.location.hash+="".concat(document.location.hash.match(/\/$/)?"":"/").concat(e).concat(t?"/"+t:"")}function M(){document.location.hash=document.location.hash.replace(/\/?(settings|menu|timeschedules|pagerules|buttonizertour).*$/i,"")}var L=new Map;function F(e){if(!e)return null;return"".concat(e.getDate(),"-").concat(function(e,t){for(var n=String(e);n.length<(t||2);)n="0"+n;return n}(e.getMonth()+1,2),"-").concat(e.getFullYear())}var z=function(){var e=buttonizer_admin.assets+"/templates/templates.json?buttonizer-icon-cache="+buttonizer_admin.version;return new Promise((function(t,n){L.has(e)&&t(L.get(e)),N()({url:e}).then((function(n){L.set(e,n.data),t(n.data)})).catch((function(e){return n({message:"Something went wrong",error:e})}))}))},B=n(71171),U=n.n(B);function Z(){return Array.apply(0,Array(15)).map((function(){return(e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789").charAt(Math.floor(Math.random()*e.length));var e})).join("")}var H=n(90484);function W(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var V=n(5991),G=n(63349),$=n(14665);function K(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,$.Z)(e,t)}function q(e,t){if(t&&("object"===(0,H.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,G.Z)(e)}function Y(e){return(Y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var J=n(96156),X=n(59968),Q=n(96410),ee=n(82961),te=n(28970);function ne(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function re(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ne(Object(n),!0).forEach((function(t){(0,J.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ne(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var oe={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},ie=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};W(this,e),this.init(t,n)}return(0,V.Z)(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||oe,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,n,r){return r&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,re(re({},{prefix:"".concat(this.prefix,":").concat(t,":")}),this.options))}}]),e}()),ae=function(){function e(){W(this,e),this.observers={}}return(0,V.Z)(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach((function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)})),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((function(e){return e!==t})):delete this.observers[e])}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(this.observers[e]){var o=[].concat(this.observers[e]);o.forEach((function(e){e.apply(void 0,n)}))}if(this.observers["*"]){var i=[].concat(this.observers["*"]);i.forEach((function(t){t.apply(t,[e].concat(n))}))}}}]),e}();function le(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}function se(e){return null==e?"":""+e}function ue(e,t,n){e.forEach((function(e){t[e]&&(n[e]=t[e])}))}function ce(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}for(var i="string"!=typeof t?[].concat(t):t.split(".");i.length>1;){if(o())return{};var a=r(i.shift());!e[a]&&n&&(e[a]=new n),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return o()?{}:{obj:e,k:r(i.shift())}}function fe(e,t,n){var r=ce(e,t,Object);r.obj[r.k]=n}function de(e,t){var n=ce(e,t),r=n.obj,o=n.k;if(r)return r[o]}function pe(e,t,n){var r=de(e,n);return void 0!==r?r:de(t,n)}function he(e,t,n){for(var r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):he(e[r],t[r],n):e[r]=t[r]);return e}function me(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var ve={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function ge(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return ve[e]})):e}var ye="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,be=[" ",",","?","!",";"];function we(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?we(Object(n),!0).forEach((function(t){(0,J.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):we(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ee(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Y(e);if(t){var o=Y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return q(this,n)}}function _e(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),o=e,i=0;i<r.length;++i){if(!o)return;if("string"==typeof o[r[i]]&&i+1<r.length)return;if(void 0===o[r[i]]){for(var a=2,l=r.slice(i,i+a).join(n),s=o[l];void 0===s&&r.length>i+a;)a++,s=o[l=r.slice(i,i+a).join(n)];if(void 0===s)return;if(t.endsWith(l)){if("string"==typeof s)return s;if(l&&"string"==typeof s[l])return s[l]}var u=r.slice(i+a).join(n);return u?_e(s,u,n):void 0}o=o[r[i]]}return o}}var Se=function(e){K(n,e);var t=Ee(n);function n(e){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return W(this,n),r=t.call(this),ye&&ae.call((0,G.Z)(r)),r.data=e||{},r.options=o,void 0===r.options.keySeparator&&(r.options.keySeparator="."),void 0===r.options.ignoreJSONStructure&&(r.options.ignoreJSONStructure=!0),r}return(0,V.Z)(n,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure,a=[e,t];n&&"string"!=typeof n&&(a=a.concat(n)),n&&"string"==typeof n&&(a=a.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(a=e.split("."));var l=de(this.data,a);return l||!i||"string"!=typeof n?l:_e(this.data&&this.data[e]&&this.data[e][t],n,o)}},{key:"addResource",value:function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=this.options.keySeparator;void 0===i&&(i=".");var a=[e,t];n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(r=t,t=(a=e.split("."))[1]),this.addNamespaces(t),fe(this.data,a,r),o.silent||this.emit("added",e,t,n,r)}},{key:"addResources",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var o in n)"string"!=typeof n[o]&&"[object Array]"!==Object.prototype.toString.apply(n[o])||this.addResource(e,t,o,n[o],{silent:!0});r.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(r=n,n=t,t=(a=e.split("."))[1]),this.addNamespaces(t);var l=de(this.data,a)||{};r?he(l,n,o):l=xe(xe({},l),n),fe(this.data,a,l),i.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?xe(xe({},{}),this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"hasLanguageSomeTranslations",value:function(e){var t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find((function(e){return t[e]&&Object.keys(t[e]).length>0}))}},{key:"toJSON",value:function(){return this.data}}]),n}(ae),Oe={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,o){var i=this;return e.forEach((function(e){i.processors[e]&&(t=i.processors[e].process(t,n,r,o))})),t}};function ke(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ce(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ke(Object(n),!0).forEach((function(t){(0,J.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ke(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Pe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Y(e);if(t){var o=Y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return q(this,n)}}var je={},Te=function(e){K(n,e);var t=Pe(n);function n(e){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return W(this,n),r=t.call(this),ye&&ae.call((0,G.Z)(r)),ue(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,(0,G.Z)(r)),r.options=o,void 0===r.options.keySeparator&&(r.options.keySeparator="."),r.logger=ie.create("translator"),r}return(0,V.Z)(n,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;var n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS||[],i=n&&e.indexOf(n)>-1,a=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||function(e,t,n){t=t||"",n=n||"";var r=be.filter((function(e){return t.indexOf(e)<0&&n.indexOf(e)<0}));if(0===r.length)return!0;var o=new RegExp("(".concat(r.map((function(e){return"?"===e?"\\?":e})).join("|"),")")),i=!o.test(e);if(!i){var a=e.indexOf(n);a>0&&!o.test(e.substring(0,a))&&(i=!0)}return i}(e,n,r));if(i&&!a){var l=e.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:e,namespaces:o};var s=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(s[0])>-1)&&(o=s.shift()),e=s.join(r)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}},{key:"translate",value:function(e,t,r){var o=this;if("object"!==(0,H.Z)(t)&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,a=this.extractFromKey(e[e.length-1],t),l=a.key,s=a.namespaces,u=s[s.length-1],c=t.lng||this.language,f=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&"cimode"===c.toLowerCase()){if(f){var d=t.nsSeparator||this.options.nsSeparator;return u+d+l}return l}var p=this.resolve(e,t),h=p&&p.res,m=p&&p.usedKey||l,v=p&&p.exactUsedKey||l,g=Object.prototype.toString.apply(h),y=["[object Number]","[object Function]","[object RegExp]"],b=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,w=!this.i18nFormat||this.i18nFormat.handleAsObject,x="string"!=typeof h&&"boolean"!=typeof h&&"number"!=typeof h;if(w&&h&&x&&y.indexOf(g)<0&&("string"!=typeof b||"[object Array]"!==g)){if(!t.returnObjects&&!this.options.returnObjects)return this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(m,h,Ce(Ce({},t),{},{ns:s})):"key '".concat(l," (").concat(this.language,")' returned an object instead of string.");if(i){var E="[object Array]"===g,_=E?[]:{},S=E?v:m;for(var O in h)if(Object.prototype.hasOwnProperty.call(h,O)){var k="".concat(S).concat(i).concat(O);_[O]=this.translate(k,Ce(Ce({},t),{joinArrays:!1,ns:s})),_[O]===k&&(_[O]=h[O])}h=_}}else if(w&&"string"==typeof b&&"[object Array]"===g)(h=h.join(b))&&(h=this.extendTranslation(h,e,t,r));else{var C=!1,P=!1,j=void 0!==t.count&&"string"!=typeof t.count,T=n.hasDefaultValue(t),A=j?this.pluralResolver.getSuffix(c,t.count,t):"",I=t["defaultValue".concat(A)]||t.defaultValue;!this.isValidLookup(h)&&T&&(C=!0,h=I),this.isValidLookup(h)||(P=!0,h=l);var R=t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,N=R&&P?void 0:h,D=T&&I!==h&&this.options.updateMissing;if(P||C||D){if(this.logger.log(D?"updateKey":"missingKey",c,u,l,D?I:h),i){var M=this.resolve(l,Ce(Ce({},t),{},{keySeparator:!1}));M&&M.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var L=[],F=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&F&&F[0])for(var z=0;z<F.length;z++)L.push(F[z]);else"all"===this.options.saveMissingTo?L=this.languageUtils.toResolveHierarchy(t.lng||this.language):L.push(t.lng||this.language);var B=function(e,n,r){var i=T&&r!==h?r:N;o.options.missingKeyHandler?o.options.missingKeyHandler(e,u,n,i,D,t):o.backendConnector&&o.backendConnector.saveMissing&&o.backendConnector.saveMissing(e,u,n,i,D,t),o.emit("missingKey",e,u,n,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&j?L.forEach((function(e){o.pluralResolver.getSuffixes(e).forEach((function(n){B([e],l+n,t["defaultValue".concat(n)]||I)}))})):B(L,l,I))}h=this.extendTranslation(h,e,t,p,r),P&&h===l&&this.options.appendNamespaceToMissingKey&&(h="".concat(u,":").concat(l)),(P||C)&&this.options.parseMissingKeyHandler&&(h=this.options.parseMissingKeyHandler(h))}return h}},{key:"extendTranslation",value:function(e,t,n,r,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,n,r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(Ce(Ce({},n),{interpolation:Ce(Ce({},this.options.interpolation),n.interpolation)}));var a,l="string"==typeof e&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(l){var s=e.match(this.interpolator.nestingRegexp);a=s&&s.length}var u=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(u=Ce(Ce({},this.options.interpolation.defaultVariables),u)),e=this.interpolator.interpolate(e,u,n.lng||this.language,n),l){var c=e.match(this.interpolator.nestingRegexp);a<(c&&c.length)&&(n.nest=!1)}!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];return o&&o[0]===r[0]&&!n.context?(i.logger.warn("It seems you are nesting recursively key: ".concat(r[0]," in key: ").concat(t[0])),null):i.translate.apply(i,r.concat([t]))}),n)),n.interpolation&&this.interpolator.reset()}var f=n.postProcess||this.options.postProcess,d="string"==typeof f?[f]:f;return null!=e&&d&&d.length&&!1!==n.applyPostProcessor&&(e=Oe.handle(d,e,t,this.options&&this.options.postProcessPassResolved?Ce({i18nResolved:r},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,r,o,i,a=this,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!a.isValidLookup(t)){var s=a.extractFromKey(e,l),u=s.key;n=u;var c=s.namespaces;a.options.fallbackNS&&(c=c.concat(a.options.fallbackNS));var f=void 0!==l.count&&"string"!=typeof l.count,d=f&&!l.ordinal&&0===l.count&&a.pluralResolver.shouldUseIntlApi(),p=void 0!==l.context&&("string"==typeof l.context||"number"==typeof l.context)&&""!==l.context,h=l.lngs?l.lngs:a.languageUtils.toResolveHierarchy(l.lng||a.language,l.fallbackLng);c.forEach((function(e){a.isValidLookup(t)||(i=e,!je["".concat(h[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(i)&&(je["".concat(h[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(n,'" for languages "').concat(h.join(", "),'" won\'t get resolved as namespace "').concat(i,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),h.forEach((function(n){if(!a.isValidLookup(t)){o=n;var i,s=[u];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKeys(s,u,n,e,l);else{var c;f&&(c=a.pluralResolver.getSuffix(n,l.count,l));if(f&&(s.push(u+c),d&&s.push(u+"_zero")),p){var h="".concat(u).concat(a.options.contextSeparator).concat(l.context);s.push(h),f&&(s.push(h+c),d&&s.push(h+"_zero"))}}for(;i=s.pop();)a.isValidLookup(t)||(r=i,t=a.getResource(n,e,i,l))}})))}))}})),{res:t,usedKey:n,exactUsedKey:r,usedLng:o,usedNS:i}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}}],[{key:"hasDefaultValue",value:function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&"defaultValue"===t.substring(0,"defaultValue".length)&&void 0!==e[t])return!0;return!1}}]),n}(ae);function Ae(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Ie=function(){function e(t){W(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ie.create("languageUtils")}return(0,V.Z)(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map((function(e){return e.toLowerCase()})):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=Ae(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=Ae(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=Ae(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach((function(e){if(!t){var r=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(r)||(t=r)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var r=n.getLanguagePartFromCode(e);if(n.isSupportedCode(r))return t=r;t=n.options.supportedLngs.find((function(e){if(0===e.indexOf(r))return e}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[],i=function(e){e&&(n.isSupportedCode(e)?o.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"==typeof e&&i(this.formatLanguageCode(e)),r.forEach((function(e){o.indexOf(e)<0&&i(n.formatLanguageCode(e))})),o}}]),e}(),Re=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],Ne={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}},De=["v1","v2","v3"],Me={zero:0,one:1,two:2,few:3,many:4,other:5};function Le(){var e={};return Re.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:Ne[t.fc]}}))})),e}var Fe=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};W(this,e),this.languageUtils=t,this.options=n,this.logger=ie.create("pluralResolver"),this.options.compatibilityJSON&&"v4"!==this.options.compatibilityJSON||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=Le()}return(0,V.Z)(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(e,{type:t.ordinal?"ordinal":"cardinal"})}catch(e){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map((function(e){return"".concat(t).concat(e)}))}},{key:"getSuffixes",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.getRule(e,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((function(e,t){return Me[e]-Me[t]})).map((function(e){return"".concat(t.options.prepend).concat(e)})):r.numbers.map((function(r){return t.getSuffix(e,r,n)})):[]}},{key:"getSuffix",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.getRule(e,n);return r?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(r.select(t)):this.getSuffixRetroCompatible(r,t):(this.logger.warn("no plural rule found for: ".concat(e)),"")}},{key:"getSuffixRetroCompatible",value:function(e,t){var n=this,r=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),o=e.numbers[r];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===o?o="plural":1===o&&(o=""));var i=function(){return n.options.prepend&&o.toString()?n.options.prepend+o.toString():o.toString()};return"v1"===this.options.compatibilityJSON?1===o?"":"number"==typeof o?"_plural_".concat(o.toString()):i():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?i():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}},{key:"shouldUseIntlApi",value:function(){return!De.includes(this.options.compatibilityJSON)}}]),e}();function ze(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Be(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ze(Object(n),!0).forEach((function(t){(0,J.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ze(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ue=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};W(this,e),this.logger=ie.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return(0,V.Z)(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:ge,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?me(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?me(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?me(t.nestingPrefix):t.nestingPrefixEscaped||me("$t("),this.nestingSuffix=t.nestingSuffix?me(t.nestingSuffix):t.nestingSuffixEscaped||me(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,r){var o,i,a,l=this,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(e){return e.replace(/\$/g,"$$$$")}var c=function(e){if(e.indexOf(l.formatSeparator)<0){var o=pe(t,s,e);return l.alwaysFormat?l.format(o,void 0,n,Be(Be(Be({},r),t),{},{interpolationkey:e})):o}var i=e.split(l.formatSeparator),a=i.shift().trim(),u=i.join(l.formatSeparator).trim();return l.format(pe(t,s,a),u,n,Be(Be(Be({},r),t),{},{interpolationkey:a}))};this.resetRegExp();var f=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,d=r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return u(e)}},{regex:this.regexp,safeValue:function(e){return l.escapeValue?u(l.escape(e)):u(e)}}].forEach((function(t){for(a=0;o=t.regex.exec(e);){var n=o[1].trim();if(void 0===(i=c(n)))if("function"==typeof f){var s=f(e,o,r);i="string"==typeof s?s:""}else if(r&&r.hasOwnProperty(n))i="";else{if(d){i=o[0];continue}l.logger.warn("missed to pass in variable ".concat(n," for interpolating ").concat(e)),i=""}else"string"==typeof i||l.useRawValueToEscape||(i=se(i));var u=t.safeValue(i);if(e=e.replace(o[0],u),d?(t.regex.lastIndex+=u.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,++a>=l.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var n,r,o=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=Be({},i);function l(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),o="{".concat(r[1]);e=r[0],o=(o=this.interpolate(o,a)).replace(/'/g,'"');try{a=JSON.parse(o),t&&(a=Be(Be({},t),a))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(o)}return delete a.defaultValue,e}for(a.applyPostProcessor=!1,delete a.defaultValue;n=this.nestingRegexp.exec(e);){var s=[],u=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){var c=n[1].split(this.formatSeparator).map((function(e){return e.trim()}));n[1]=c.shift(),s=c,u=!0}if((r=t(l.call(this,n[1].trim(),a),a))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=se(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),u&&(r=s.reduce((function(e,t){return o.format(e,t,i.lng,Be(Be({},i),{},{interpolationkey:n[1].trim()}))}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}();function Ze(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function He(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ze(Object(n),!0).forEach((function(t){(0,J.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ze(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function We(e){var t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){var r=e.split("(");t=r[0].toLowerCase().trim();var o=r[1].substring(0,r[1].length-1);if("currency"===t&&o.indexOf(":")<0)n.currency||(n.currency=o.trim());else if("relativetime"===t&&o.indexOf(":")<0)n.range||(n.range=o.trim());else{o.split(";").forEach((function(e){if(e){var t=function(e){return(0,X.Z)(e)||(0,Q.Z)(e)||(0,ee.Z)(e)||(0,te.Z)()}(e.split(":")),r=t[0],o=t.slice(1).join(":");"false"===o.trim()&&(n[r.trim()]=!1),"true"===o.trim()&&(n[r.trim()]=!0),isNaN(o.trim())||(n[r.trim()]=parseInt(o.trim(),10)),n[r.trim()]||(n[r.trim()]=o.trim())}}))}}return{formatName:t,formatOptions:n}}var Ve=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};W(this,e),this.logger=ie.create("formatter"),this.options=t,this.formats={number:function(e,t,n){return new Intl.NumberFormat(t,n).format(e)},currency:function(e,t,n){return new Intl.NumberFormat(t,He(He({},n),{},{style:"currency"})).format(e)},datetime:function(e,t,n){return new Intl.DateTimeFormat(t,He({},n)).format(e)},relativetime:function(e,t,n){return new Intl.RelativeTimeFormat(t,He({},n)).format(e,n.range||"day")},list:function(e,t,n){return new Intl.ListFormat(t,He({},n)).format(e)}},this.init(t)}return(0,V.Z)(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=t.interpolation;this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||","}},{key:"add",value:function(e,t){this.formats[e.toLowerCase().trim()]=t}},{key:"format",value:function(e,t,n,r){var o=this;return t.split(this.formatSeparator).reduce((function(e,t){var i=We(t),a=i.formatName,l=i.formatOptions;if(o.formats[a]){var s=e;try{var u=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},c=u.locale||u.lng||r.locale||r.lng||n;s=o.formats[a](e,c,He(He(He({},l),r),u))}catch(e){o.logger.warn(e)}return s}return o.logger.warn("there was no format function for ".concat(a)),e}),e)}}]),e}();function Ge(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $e(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ge(Object(n),!0).forEach((function(t){(0,J.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ge(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ke(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Y(e);if(t){var o=Y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return q(this,n)}}var qe=function(e){K(n,e);var t=Ke(n);function n(e,r,o){var i,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return W(this,n),i=t.call(this),ye&&ae.call((0,G.Z)(i)),i.backend=e,i.store=r,i.services=o,i.languageUtils=o.languageUtils,i.options=a,i.logger=ie.create("backendConnector"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(o,a.backend,a),i}return(0,V.Z)(n,[{key:"queueLoad",value:function(e,t,n,r){var o=this,i=[],a=[],l=[],s=[];return e.forEach((function(e){var r=!0;t.forEach((function(t){var l="".concat(e,"|").concat(t);!n.reload&&o.store.hasResourceBundle(e,t)?o.state[l]=2:o.state[l]<0||(1===o.state[l]?a.indexOf(l)<0&&a.push(l):(o.state[l]=1,r=!1,a.indexOf(l)<0&&a.push(l),i.indexOf(l)<0&&i.push(l),s.indexOf(t)<0&&s.push(t)))})),r||l.push(e)})),(i.length||a.length)&&this.queue.push({pending:a,loaded:{},errors:[],callback:r}),{toLoad:i,pending:a,toLoadLanguages:l,toLoadNamespaces:s}}},{key:"loaded",value:function(e,t,n){var r=e.split("|"),o=r[0],i=r[1];t&&this.emit("failedLoading",o,i,t),n&&this.store.addResourceBundle(o,i,n),this.state[e]=t?-1:2;var a={};this.queue.forEach((function(n){!function(e,t,n,r){var o=ce(e,t,Object),i=o.obj,a=o.k;i[a]=i[a]||[],r&&(i[a]=i[a].concat(n)),r||i[a].push(n)}(n.loaded,[o],i),function(e,t){for(var n=e.indexOf(t);-1!==n;)e.splice(n,1),n=e.indexOf(t)}(n.pending,e),t&&n.errors.push(t),0!==n.pending.length||n.done||(Object.keys(n.loaded).forEach((function(e){a[e]||(a[e]=[]),n.loaded[e].length&&n.loaded[e].forEach((function(t){a[e].indexOf(t)<0&&a[e].push(t)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,a=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[n](e,t,(function(l,s){l&&s&&o<5?setTimeout((function(){r.read.call(r,e,t,n,o+1,2*i,a)}),i):a(l,s)})):a(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var i=this.queueLoad(e,t,r,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach((function(e){n.loadOne(e)}))}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),o=r[0],i=r[1];this.read(o,i,"read",void 0,void 0,(function(r,a){r&&t.logger.warn("".concat(n,"loading namespace ").concat(i," for language ").concat(o," failed"),r),!r&&a&&t.logger.log("".concat(n,"loaded namespace ").concat(i," for language ").concat(o),a),t.loaded(e,r,a)}))}},{key:"saveMissing",value:function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null!=n&&""!==n&&(this.backend&&this.backend.create&&this.backend.create(e,t,n,r,null,$e($e({},i),{},{isUpdate:o})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),n}(ae);function Ye(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===(0,H.Z)(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===(0,H.Z)(e[2])||"object"===(0,H.Z)(e[3])){var n=e[3]||e[2];Object.keys(n).forEach((function(e){t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function Je(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function Xe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xe(Object(n),!0).forEach((function(t){(0,J.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function et(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Y(e);if(t){var o=Y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return q(this,n)}}function tt(){}function nt(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach((function(t){"function"==typeof e[t]&&(e[t]=e[t].bind(e))}))}var rt=function(e){K(n,e);var t=et(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(W(this,n),e=t.call(this),ye&&ae.call((0,G.Z)(e)),e.options=Je(r),e.services={},e.logger=ie,e.modules={external:[]},nt((0,G.Z)(e)),o&&!e.isInitialized&&!r.isClone){if(!e.options.initImmediate)return e.init(r,o),q(e,(0,G.Z)(e));setTimeout((function(){e.init(r,o)}),0)}return e}return(0,V.Z)(n,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;"function"==typeof t&&(n=t,t={}),!t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));var r=Ye();function o(e){return e?"function"==typeof e?new e:e:null}if(this.options=Qe(Qe(Qe({},r),this.options),Je(t)),"v1"!==this.options.compatibilityAPI&&(this.options.interpolation=Qe(Qe({},r.interpolation),this.options.interpolation)),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!this.options.isClone){var i;this.modules.logger?ie.init(o(this.modules.logger),this.options):ie.init(null,this.options),this.modules.formatter?i=this.modules.formatter:"undefined"!=typeof Intl&&(i=Ve);var a=new Ie(this.options);this.store=new Se(this.options.resources,this.options);var l=this.services;l.logger=ie,l.resourceStore=this.store,l.languageUtils=a,l.pluralResolver=new Fe(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!i||this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format||(l.formatter=o(i),l.formatter.init(l,this.options),this.options.interpolation.format=l.formatter.format.bind(l.formatter)),l.interpolator=new Ue(this.options),l.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},l.backendConnector=new qe(o(this.modules.backend),l.resourceStore,l,this.options),l.backendConnector.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.languageDetector&&(l.languageDetector=o(this.modules.languageDetector),l.languageDetector.init(l,this.options.detection,this.options)),this.modules.i18nFormat&&(l.i18nFormat=o(this.modules.i18nFormat),l.i18nFormat.init&&l.i18nFormat.init(this)),this.translator=new Te(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.external.forEach((function(t){t.init&&t.init(e)}))}if(this.format=this.options.interpolation.format,n||(n=tt),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);s.length>0&&"dev"!==s[0]&&(this.options.lng=s[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var u=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];u.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}}));var c=["addResource","addResources","addResourceBundle","removeResourceBundle"];c.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}}));var f=le(),d=function(){var t=function(t,r){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),f.resolve(r),n(t,r)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?d():setTimeout(d,0),f}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:tt,r=n,o="string"==typeof e?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(o&&"cimode"===o.toLowerCase())return r();var i=[],a=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){i.indexOf(e)<0&&i.push(e)}))};if(o)a(o);else{var l=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);l.forEach((function(e){return a(e)}))}this.options.preload&&this.options.preload.forEach((function(e){return a(e)})),this.services.backendConnector.load(i,this.options.ns,r)}else r(null)}},{key:"reloadResources",value:function(e,t,n){var r=le();return e||(e=this.languages),t||(t=this.options.ns),n||(n=tt),this.services.backendConnector.reload(e,t,(function(e){r.resolve(),n(e)})),r}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&Oe.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var r=le();this.emit("languageChanging",e);var o=function(e){if(n.language=e,n.languages=n.services.languageUtils.toResolveHierarchy(e),n.resolvedLanguage=void 0,!(["cimode","dev"].indexOf(e)>-1))for(var t=0;t<n.languages.length;t++){var r=n.languages[t];if(!(["cimode","dev"].indexOf(r)>-1)&&n.store.hasLanguageSomeTranslations(r)){n.resolvedLanguage=r;break}}},i=function(i){e||i||!n.services.languageDetector||(i=[]);var a="string"==typeof i?i:n.services.languageUtils.getBestMatchFromCodes(i);a&&(n.language||o(a),n.translator.language||n.translator.changeLanguage(a),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(a)),n.loadResources(a,(function(e){!function(e,i){i?(o(i),n.translator.changeLanguage(i),n.isLanguageChangingTo=void 0,n.emit("languageChanged",i),n.logger.log("languageChanged",i)):n.isLanguageChangingTo=void 0,r.resolve((function(){return n.t.apply(n,arguments)})),t&&t(e,(function(){return n.t.apply(n,arguments)}))}(e,a)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(i):i(e):i(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(e,t,n){var r=this,o=function e(t,o){var i;if("object"!==(0,H.Z)(o)){for(var a=arguments.length,l=new Array(a>2?a-2:0),s=2;s<a;s++)l[s-2]=arguments[s];i=r.options.overloadTranslationOptionHandler([t,o].concat(l))}else i=Qe({},o);i.lng=i.lng||e.lng,i.lngs=i.lngs||e.lngs,i.ns=i.ns||e.ns;var u=r.options.keySeparator||".",c=n?"".concat(n).concat(u).concat(t):t;return r.t(c,i)};return"string"==typeof e?o.lng=e:o.lngs=e,o.ns=t,o.keyPrefix=n,o}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var r=this.resolvedLanguage||this.languages[0],o=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};if(n.precheck){var l=n.precheck(this,a);if(void 0!==l)return l}return!!this.hasResourceBundle(r,e)||(!this.services.backendConnector.backend||!(!a(r,e)||o&&!a(i,e)))}},{key:"loadNamespaces",value:function(e,t){var n=this,r=le();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)})),this.loadResources((function(e){r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=le();"string"==typeof e&&(e=[e]);var r=this.options.preload||[],o=e.filter((function(e){return r.indexOf(e)<0}));return o.length?(this.options.preload=r.concat(o),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:tt,o=Qe(Qe(Qe({},this.options),t),{isClone:!0}),i=new n(o),a=["store","services","language"];return a.forEach((function(t){i[t]=e[t]})),i.services=Qe({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i.translator=new Te(i.services,i.options),i.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];i.emit.apply(i,[e].concat(n))})),i.init(o,r),i.translator.options=i.options,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),n}(ae);(0,J.Z)(rt,"createInstance",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new rt(e,t)}));var ot=rt.createInstance();ot.createInstance=rt.createInstance;ot.createInstance,ot.init,ot.loadResources,ot.reloadResources,ot.use,ot.changeLanguage,ot.getFixedT,ot.t,ot.exists,ot.setDefaultNamespace,ot.hasLoadedNamespace,ot.loadNamespaces,ot.loadLanguages;var it=ot;function at(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return it.t(e,t)}function lt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function st(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lt(Object(n),!0).forEach((function(t){ut(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ut(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ct={resolve:null,endpoint:null,data:null};function ft(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t.url=buttonizer_admin.api+e,buttonizer_admin.is_stand_alone?t.headers={Authorization:"Bearer ".concat(buttonizer_admin.auth)}:t.headers={"X-WP-Nonce":buttonizer_admin.nonce},t.withCredentials=!0,new Promise((function(o,i){N()(t).then((function(e){return o(e)})).catch((function(a){if(!n&&a.response&&401===a.response.status)return app.standAloneEvent&&app.standAloneEvent("unauthenticated"),r?void i("wait-for-auth"):void(ct={resolve:o,endpoint:e,data:t});app.standAloneEvent&&app.standAloneEvent("unauthenticated"),i(a)}))}))}function dt(){if(!ct.resolve)throw new Error(ct);return new Promise((function(e,t){ft(ct.endpoint,ct.data,!1,!0).then((function(t){ct.resolve(t),e()})).catch((function(e){return t(e)}))}))}function pt(e){var t=e,n={},r={};t.groups.map((function(e){var t=ht(e.data);t.children=[],Object.keys(e.buttons).map((function(r){var o=ht(e.buttons[r]);o.parent=t.id,n[o.id]=o,t.children.push(o.id)})),r[t.id]=t}));var o={},i={};return t.time_schedules&&t.time_schedules.map((function(e){o[e.id]={id:e.id,name:e.name||at("time_schedules.single_name"),weekdays:e.weekdays||k.map((function(e){return{opened:!0,open:"8:00",close:"17:00",weekday:e}})),start_date:e.start_date||F(new Date),end_date:e.end_date||null,dates:e.dates||[]}})),t.page_rules&&t.page_rules.map((function(e){i[e.id]={id:e.id,name:e.name||"Unnamed pagerule",type:e.type||"and",rules:e.rules||[{type:"page_title",value:""}]}})),{hasChanges:t.changes,buttons:n,groups:r,timeSchedules:o,pageRules:i,settings:t.settings,premium:t.premium,premium_code:t.premium_code,version:t.version,wordpress:t.wordpress,info:t.info,is_opt_in:t.is_opt_in,latest_tour_update:t.latest_tour_update,identifier:t.identifier?t.identifier:null,additional_permissions:t.additional_permissions,domain:t.domain}}function ht(e){return e&&void 0!==e.id?e:st(st({},e),{},{id:U()()})}function mt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return{type:O.ADD_RELATION,payload:{button_id:e,group_id:t,index:n}}}function vt(e,t,n,r){return{type:O.CHANGE_RELATION,payload:{button_id:e,old_group_id:t,new_group_id:n,button_index:r}}}function gt(e,t){return{type:O.REMOVE_RELATION,payload:{button_id:e,group_id:t}}}var yt=function(e,t,n,r){return Array.isArray(r)?{type:O[e].SET_KEY_FORMAT,payload:{id:t,format:"normal_hover",key:n,values:r}}:{type:O[e].SET_KEY_VALUE,payload:{id:t,key:n,value:r}}},bt=function(e,t){return{type:O.SET_SETTING_VALUE,payload:{setting:e,value:t}}},wt=function(e,t){return{type:O.SET_MISC_VALUE,payload:{setting:e,value:t}}};function xt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return{type:O[t].ADD_RECORD,payload:{record:ht(e),index:n}}}function Et(e,t){return{type:O[t].REMOVE_RECORD,payload:{model_id:e}}}function _t(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.store.getState();if(!t.groups[e].children)return null;var n=t.groups[e].children,r=t.buttons,o={};return Object.keys(r).map((function(e){n.includes(e)&&(o[e]=r[e])})),o}function St(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:co.getState();if(!e)return null;var n=t.buttons,r={};return Object.keys(n).map((function(t){e.includes(t)&&e.map((function(e,o){e===t&&(r[o]=n[t])}))})),r}function Ot(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.store.getState();return t.groups&&t.groups[e]?t.groups[e].children.length:0}function kt(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map((function(e){return"'"+e+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Ct(e){return!!e&&!!e[mn]}function Pt(e){return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===vn}(e)||Array.isArray(e)||!!e[hn]||!!e.constructor[hn]||Dt(e)||Mt(e))}function jt(e,t,n){void 0===n&&(n=!1),0===Tt(e)?(n?Object.keys:gn)(e).forEach((function(r){n&&"symbol"==typeof r||t(r,e[r],e)})):e.forEach((function(n,r){return t(r,n,e)}))}function Tt(e){var t=e[mn];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Dt(e)?2:Mt(e)?3:0}function At(e,t){return 2===Tt(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function It(e,t){return 2===Tt(e)?e.get(t):e[t]}function Rt(e,t,n){var r=Tt(e);2===r?e.set(t,n):3===r?(e.delete(t),e.add(n)):e[t]=n}function Nt(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function Dt(e){return cn&&e instanceof Map}function Mt(e){return fn&&e instanceof Set}function Lt(e){return e.o||e.t}function Ft(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=yn(e);delete t[mn];for(var n=gn(t),r=0;r<n.length;r++){var o=n[r],i=t[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function zt(e,t){return void 0===t&&(t=!1),Ut(e)||Ct(e)||!Pt(e)||(Tt(e)>1&&(e.set=e.add=e.clear=e.delete=Bt),Object.freeze(e),t&&jt(e,(function(e,t){return zt(t,!0)}),!0)),e}function Bt(){kt(2)}function Ut(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function Zt(e){var t=bn[e];return t||kt(18,e),t}function Ht(){return sn}function Wt(e,t){t&&(Zt("Patches"),e.u=[],e.s=[],e.v=t)}function Vt(e){Gt(e),e.p.forEach(Kt),e.p=null}function Gt(e){e===sn&&(sn=e.l)}function $t(e){return sn={p:[],l:sn,h:e,m:!0,_:0}}function Kt(e){var t=e[mn];0===t.i||1===t.i?t.j():t.O=!0}function qt(e,t){t._=t.p.length;var n=t.p[0],r=void 0!==e&&e!==n;return t.h.g||Zt("ES5").S(t,e,r),r?(n[mn].P&&(Vt(t),kt(4)),Pt(e)&&(e=Yt(t,e),t.l||Xt(t,e)),t.u&&Zt("Patches").M(n[mn],e,t.u,t.s)):e=Yt(t,n,[]),Vt(t),t.u&&t.v(t.u,t.s),e!==pn?e:void 0}function Yt(e,t,n){if(Ut(t))return t;var r=t[mn];if(!r)return jt(t,(function(o,i){return Jt(e,r,t,o,i,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return Xt(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=4===r.i||5===r.i?r.o=Ft(r.k):r.o;jt(3===r.i?new Set(o):o,(function(t,i){return Jt(e,r,o,t,i,n)})),Xt(e,o,!1),n&&e.u&&Zt("Patches").R(r,n,e.u,e.s)}return r.o}function Jt(e,t,n,r,o,i){if(Ct(o)){var a=Yt(e,o,i&&t&&3!==t.i&&!At(t.D,r)?i.concat(r):void 0);if(Rt(n,r,a),!Ct(a))return;e.m=!1}if(Pt(o)&&!Ut(o)){if(!e.h.F&&e._<1)return;Yt(e,o),t&&t.A.l||Xt(e,o)}}function Xt(e,t,n){void 0===n&&(n=!1),e.h.F&&e.m&&zt(t,n)}function Qt(e,t){var n=e[mn];return(n?Lt(n):e)[t]}function en(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function tn(e){e.P||(e.P=!0,e.l&&tn(e.l))}function nn(e){e.o||(e.o=Ft(e.t))}function rn(e,t,n){var r=Dt(t)?Zt("MapSet").N(t,n):Mt(t)?Zt("MapSet").T(t,n):e.g?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:Ht(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},o=r,i=wn;n&&(o=[r],i=xn);var a=Proxy.revocable(o,i),l=a.revoke,s=a.proxy;return r.k=s,r.j=l,s}(t,n):Zt("ES5").J(t,n);return(n?n.A:Ht()).p.push(r),r}function on(e){return Ct(e)||kt(22,e),function e(t){if(!Pt(t))return t;var n,r=t[mn],o=Tt(t);if(r){if(!r.P&&(r.i<4||!Zt("ES5").K(r)))return r.t;r.I=!0,n=an(t,o),r.I=!1}else n=an(t,o);return jt(n,(function(t,o){r&&It(r.t,t)===o||Rt(n,t,e(o))})),3===o?new Set(n):n}(e)}function an(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Ft(e)}var ln,sn,un="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),cn="undefined"!=typeof Map,fn="undefined"!=typeof Set,dn="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,pn=un?Symbol.for("immer-nothing"):((ln={})["immer-nothing"]=!0,ln),hn=un?Symbol.for("immer-draftable"):"__$immer_draftable",mn=un?Symbol.for("immer-state"):"__$immer_state",vn=("undefined"!=typeof Symbol&&Symbol.iterator,""+Object.prototype.constructor),gn="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,yn=Object.getOwnPropertyDescriptors||function(e){var t={};return gn(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},bn={},wn={get:function(e,t){if(t===mn)return e;var n=Lt(e);if(!At(n,t))return function(e,t,n){var r,o=en(t,n);return o?"value"in o?o.value:null===(r=o.get)||void 0===r?void 0:r.call(e.k):void 0}(e,n,t);var r=n[t];return e.I||!Pt(r)?r:r===Qt(e.t,t)?(nn(e),e.o[t]=rn(e.A.h,r,e)):r},has:function(e,t){return t in Lt(e)},ownKeys:function(e){return Reflect.ownKeys(Lt(e))},set:function(e,t,n){var r=en(Lt(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var o=Qt(Lt(e),t),i=null==o?void 0:o[mn];if(i&&i.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(Nt(n,o)&&(void 0!==n||At(e.t,t)))return!0;nn(e),tn(e)}return e.o[t]===n&&"number"!=typeof n&&(void 0!==n||t in e.o)||(e.o[t]=n,e.D[t]=!0,!0)},deleteProperty:function(e,t){return void 0!==Qt(e.t,t)||t in e.t?(e.D[t]=!1,nn(e),tn(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=Lt(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){kt(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){kt(12)}},xn={};jt(wn,(function(e,t){xn[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),xn.deleteProperty=function(e,t){return wn.deleteProperty.call(this,e[0],t)},xn.set=function(e,t,n){return wn.set.call(this,e[0],t,n,e[0])};var En=new(function(){function e(e){var t=this;this.g=dn,this.F=!0,this.produce=function(e,n,r){if("function"==typeof e&&"function"!=typeof n){var o=n;n=e;var i=t;return function(e){var t=this;void 0===e&&(e=o);for(var r=arguments.length,a=Array(r>1?r-1:0),l=1;l<r;l++)a[l-1]=arguments[l];return i.produce(e,(function(e){var r;return(r=n).call.apply(r,[t,e].concat(a))}))}}var a;if("function"!=typeof n&&kt(6),void 0!==r&&"function"!=typeof r&&kt(7),Pt(e)){var l=$t(t),s=rn(t,e,void 0),u=!0;try{a=n(s),u=!1}finally{u?Vt(l):Gt(l)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(e){return Wt(l,r),qt(e,l)}),(function(e){throw Vt(l),e})):(Wt(l,r),qt(a,l))}if(!e||"object"!=typeof e){if((a=n(e))===pn)return;return void 0===a&&(a=e),t.F&&zt(a,!0),a}kt(21,e)},this.produceWithPatches=function(e,n){return"function"==typeof e?function(n){for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return t.produceWithPatches(n,(function(t){return e.apply(void 0,[t].concat(o))}))}:[t.produce(e,n,(function(e,t){r=e,o=t})),r,o];var r,o},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return t.createDraft=function(e){Pt(e)||kt(8),Ct(e)&&(e=on(e));var t=$t(this),n=rn(this,e,void 0);return n[mn].C=!0,Gt(t),n},t.finishDraft=function(e,t){var n=(e&&e[mn]).A;return Wt(n,t),qt(void 0,n)},t.setAutoFreeze=function(e){this.F=e},t.setUseProxies=function(e){e&&!dn&&kt(20),this.g=e},t.applyPatches=function(e,t){var n;for(n=t.length-1;n>=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}var o=Zt("Patches").$;return Ct(e)?o(e,t):this.produce(e,(function(e){return o(e,t.slice(n+1))}))},e}()),_n=En.produce,Sn=(En.produceWithPatches.bind(En),En.setAutoFreeze.bind(En),En.setUseProxies.bind(En),En.applyPatches.bind(En),En.createDraft.bind(En),En.finishDraft.bind(En),_n);function On(e){return{type:O.HAS_CHANGES,payload:{hasChanges:e}}}function kn(e){return{type:O.IS_UPDATING,payload:{isUpdating:e}}}function Cn(){return{type:O.STOP_LOADING}}
29
  /*! *****************************************************************************
30
  Copyright (c) Microsoft Corporation.
31
 
@@ -40,7 +40,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
40
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
41
  PERFORMANCE OF THIS SOFTWARE.
42
  ***************************************************************************** */
43
- var Pn=function(e,t){return(Pn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function jn(e,t){function n(){this.constructor=e}Pn(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Tn=function(){return(Tn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function An(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function In(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function Rn(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(In(arguments[t]));return e}var Nn=n(62844),Dn=n(21170),Mn=(0,Nn.Rf)(),Ln="Sentry Logger ",Fn=function(){function e(){this._enabled=!1}return e.prototype.disable=function(){this._enabled=!1},e.prototype.enable=function(){this._enabled=!0},e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&(0,Nn.Cf)((function(){Mn.console.log(Ln+"[Log]: "+e.join(" "))}))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&(0,Nn.Cf)((function(){Mn.console.warn(Ln+"[Warn]: "+e.join(" "))}))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&(0,Nn.Cf)((function(){Mn.console.error(Ln+"[Error]: "+e.join(" "))}))},e}();Mn.__SENTRY__=Mn.__SENTRY__||{};var zn,Bn=Mn.__SENTRY__.logger||(Mn.__SENTRY__.logger=new Fn),Un=n(61422);function Zn(e){switch(Object.prototype.toString.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return Jn(e,Error)}}function Hn(e){return"[object ErrorEvent]"===Object.prototype.toString.call(e)}function Wn(e){return"[object DOMError]"===Object.prototype.toString.call(e)}function Vn(e){return"[object String]"===Object.prototype.toString.call(e)}function Gn(e){return null===e||"object"!=typeof e&&"function"!=typeof e}function $n(e){return"[object Object]"===Object.prototype.toString.call(e)}function Kn(e){return"undefined"!=typeof Event&&Jn(e,Event)}function qn(e){return"undefined"!=typeof Element&&Jn(e,Element)}function Yn(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function Jn(e,t){try{return e instanceof t}catch(e){return!1}}!function(e){e.PENDING="PENDING",e.RESOLVED="RESOLVED",e.REJECTED="REJECTED"}(zn||(zn={}));var Xn,Qn=function(){function e(e){var t=this;this._state=zn.PENDING,this._handlers=[],this._resolve=function(e){t._setResult(zn.RESOLVED,e)},this._reject=function(e){t._setResult(zn.REJECTED,e)},this._setResult=function(e,n){t._state===zn.PENDING&&(Yn(n)?n.then(t._resolve,t._reject):(t._state=e,t._value=n,t._executeHandlers()))},this._attachHandler=function(e){t._handlers=t._handlers.concat(e),t._executeHandlers()},this._executeHandlers=function(){if(t._state!==zn.PENDING){var e=t._handlers.slice();t._handlers=[],e.forEach((function(e){e.done||(t._state===zn.RESOLVED&&e.onfulfilled&&e.onfulfilled(t._value),t._state===zn.REJECTED&&e.onrejected&&e.onrejected(t._value),e.done=!0)}))}};try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}return e.resolve=function(t){return new e((function(e){e(t)}))},e.reject=function(t){return new e((function(e,n){n(t)}))},e.all=function(t){return new e((function(n,r){if(Array.isArray(t))if(0!==t.length){var o=t.length,i=[];t.forEach((function(t,a){e.resolve(t).then((function(e){i[a]=e,0===(o-=1)&&n(i)})).then(null,r)}))}else n([]);else r(new TypeError("Promise.all requires an array as input."))}))},e.prototype.then=function(t,n){var r=this;return new e((function(e,o){r._attachHandler({done:!1,onfulfilled:function(n){if(t)try{return void e(t(n))}catch(e){return void o(e)}else e(n)},onrejected:function(t){if(n)try{return void e(n(t))}catch(e){return void o(e)}else o(t)}})}))},e.prototype.catch=function(e){return this.then((function(e){return e}),e)},e.prototype.finally=function(t){var n=this;return new e((function(e,r){var o,i;return n.then((function(e){i=!1,o=e,t&&t()}),(function(e){i=!0,o=e,t&&t()})).then((function(){i?r(o):e(o)}))}))},e.prototype.toString=function(){return"[object SyncPromise]"},e}(),er=function(){function e(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._contexts={}}return e.clone=function(t){var n=new e;return t&&(n._breadcrumbs=Rn(t._breadcrumbs),n._tags=Tn({},t._tags),n._extra=Tn({},t._extra),n._contexts=Tn({},t._contexts),n._user=t._user,n._level=t._level,n._span=t._span,n._session=t._session,n._transactionName=t._transactionName,n._fingerprint=t._fingerprint,n._eventProcessors=Rn(t._eventProcessors)),n},e.prototype.addScopeListener=function(e){this._scopeListeners.push(e)},e.prototype.addEventProcessor=function(e){return this._eventProcessors.push(e),this},e.prototype.setUser=function(e){return this._user=e||{},this._session&&this._session.update({user:e}),this._notifyScopeListeners(),this},e.prototype.getUser=function(){return this._user},e.prototype.setTags=function(e){return this._tags=Tn(Tn({},this._tags),e),this._notifyScopeListeners(),this},e.prototype.setTag=function(e,t){var n;return this._tags=Tn(Tn({},this._tags),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setExtras=function(e){return this._extra=Tn(Tn({},this._extra),e),this._notifyScopeListeners(),this},e.prototype.setExtra=function(e,t){var n;return this._extra=Tn(Tn({},this._extra),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setFingerprint=function(e){return this._fingerprint=e,this._notifyScopeListeners(),this},e.prototype.setLevel=function(e){return this._level=e,this._notifyScopeListeners(),this},e.prototype.setTransactionName=function(e){return this._transactionName=e,this._notifyScopeListeners(),this},e.prototype.setTransaction=function(e){return this.setTransactionName(e)},e.prototype.setContext=function(e,t){var n;return null===t?delete this._contexts[e]:this._contexts=Tn(Tn({},this._contexts),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setSpan=function(e){return this._span=e,this._notifyScopeListeners(),this},e.prototype.getSpan=function(){return this._span},e.prototype.getTransaction=function(){var e,t,n,r,o=this.getSpan();return(null===(e=o)||void 0===e?void 0:e.transaction)?null===(t=o)||void 0===t?void 0:t.transaction:(null===(r=null===(n=o)||void 0===n?void 0:n.spanRecorder)||void 0===r?void 0:r.spans[0])?o.spanRecorder.spans[0]:void 0},e.prototype.setSession=function(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this},e.prototype.getSession=function(){return this._session},e.prototype.update=function(t){if(!t)return this;if("function"==typeof t){var n=t(this);return n instanceof e?n:this}return t instanceof e?(this._tags=Tn(Tn({},this._tags),t._tags),this._extra=Tn(Tn({},this._extra),t._extra),this._contexts=Tn(Tn({},this._contexts),t._contexts),t._user&&Object.keys(t._user).length&&(this._user=t._user),t._level&&(this._level=t._level),t._fingerprint&&(this._fingerprint=t._fingerprint)):$n(t)&&(t=t,this._tags=Tn(Tn({},this._tags),t.tags),this._extra=Tn(Tn({},this._extra),t.extra),this._contexts=Tn(Tn({},this._contexts),t.contexts),t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint)),this},e.prototype.clear=function(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this},e.prototype.addBreadcrumb=function(e,t){var n=Tn({timestamp:(0,Dn.yW)()},e);return this._breadcrumbs=void 0!==t&&t>=0?Rn(this._breadcrumbs,[n]).slice(-t):Rn(this._breadcrumbs,[n]),this._notifyScopeListeners(),this},e.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},e.prototype.applyToEvent=function(e,t){var n;if(this._extra&&Object.keys(this._extra).length&&(e.extra=Tn(Tn({},this._extra),e.extra)),this._tags&&Object.keys(this._tags).length&&(e.tags=Tn(Tn({},this._tags),e.tags)),this._user&&Object.keys(this._user).length&&(e.user=Tn(Tn({},this._user),e.user)),this._contexts&&Object.keys(this._contexts).length&&(e.contexts=Tn(Tn({},this._contexts),e.contexts)),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts=Tn({trace:this._span.getTraceContext()},e.contexts);var r=null===(n=this._span.transaction)||void 0===n?void 0:n.name;r&&(e.tags=Tn({transaction:r},e.tags))}return this._applyFingerprint(e),e.breadcrumbs=Rn(e.breadcrumbs||[],this._breadcrumbs),e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,this._notifyEventProcessors(Rn(tr(),this._eventProcessors),e,t)},e.prototype._notifyEventProcessors=function(e,t,n,r){var o=this;return void 0===r&&(r=0),new Qn((function(i,a){var l=e[r];if(null===t||"function"!=typeof l)i(t);else{var s=l(Tn({},t),n);Yn(s)?s.then((function(t){return o._notifyEventProcessors(e,t,n,r+1).then(i)})).then(null,a):o._notifyEventProcessors(e,s,n,r+1).then(i).then(null,a)}}))},e.prototype._notifyScopeListeners=function(){var e=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((function(t){t(e)})),this._notifyingListeners=!1)},e.prototype._applyFingerprint=function(e){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint},e}();function tr(){var e=(0,Nn.Rf)();return e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.globalEventProcessors=e.__SENTRY__.globalEventProcessors||[],e.__SENTRY__.globalEventProcessors}function nr(e){tr().push(e)}function rr(e){try{for(var t=e,n=[],r=0,o=0,i=" > ".length,a=void 0;t&&r++<5&&!("html"===(a=or(t))||r>1&&o+n.length*i+a.length>=80);)n.push(a),o+=a.length,t=t.parentNode;return n.reverse().join(" > ")}catch(e){return"<unknown>"}}function or(e){var t,n,r,o,i,a=e,l=[];if(!a||!a.tagName)return"";if(l.push(a.tagName.toLowerCase()),a.id&&l.push("#"+a.id),(t=a.className)&&Vn(t))for(n=t.split(/\s+/),i=0;i<n.length;i++)l.push("."+n[i]);var s=["type","name","title","alt"];for(i=0;i<s.length;i++)r=s[i],(o=a.getAttribute(r))&&l.push("["+r+'="'+o+'"]');return l.join("")}!function(e){e.Ok="ok",e.Exited="exited",e.Crashed="crashed",e.Abnormal="abnormal"}(Xn||(Xn={}));var ir=function(){function e(){this._hasWeakSet="function"==typeof WeakSet,this._inner=this._hasWeakSet?new WeakSet:[]}return e.prototype.memoize=function(e){if(this._hasWeakSet)return!!this._inner.has(e)||(this._inner.add(e),!1);for(var t=0;t<this._inner.length;t++){if(this._inner[t]===e)return!0}return this._inner.push(e),!1},e.prototype.unmemoize=function(e){if(this._hasWeakSet)this._inner.delete(e);else for(var t=0;t<this._inner.length;t++)if(this._inner[t]===e){this._inner.splice(t,1);break}},e}();function ar(e){try{return e&&"function"==typeof e&&e.name||"<anonymous>"}catch(e){return"<anonymous>"}}function lr(e,t){return void 0===t&&(t=0),"string"!=typeof e||0===t||e.length<=t?e:e.substr(0,t)+"..."}function sr(e,t){if(!Array.isArray(e))return"";for(var n=[],r=0;r<e.length;r++){var o=e[r];try{n.push(String(o))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function ur(e,t){return!!Vn(e)&&(n=t,"[object RegExp]"===Object.prototype.toString.call(n)?t.test(e):"string"==typeof t&&-1!==e.indexOf(t));var n}function cr(e,t,n){if(t in e){var r=e[t],o=n(r);if("function"==typeof o)try{o.prototype=o.prototype||{},Object.defineProperties(o,{__sentry_original__:{enumerable:!1,value:r}})}catch(e){}e[t]=o}}function fr(e){if(Zn(e)){var t=e,n={message:t.message,name:t.name,stack:t.stack};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}if(Kn(e)){var o=e,i={};i.type=o.type;try{i.target=qn(o.target)?rr(o.target):Object.prototype.toString.call(o.target)}catch(e){i.target="<unknown>"}try{i.currentTarget=qn(o.currentTarget)?rr(o.currentTarget):Object.prototype.toString.call(o.currentTarget)}catch(e){i.currentTarget="<unknown>"}for(var r in"undefined"!=typeof CustomEvent&&Jn(e,CustomEvent)&&(i.detail=o.detail),o)Object.prototype.hasOwnProperty.call(o,r)&&(i[r]=o);return i}return e}function dr(e){return function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(e))}function pr(e,t,n){void 0===t&&(t=3),void 0===n&&(n=102400);var r=vr(e,t);return dr(r)>n?pr(e,t-1,n):r}function hr(e,t){return"domain"===t&&e&&"object"==typeof e&&e._events?"[Domain]":"domainEmitter"===t?"[DomainEmitter]":void 0!==n.g&&e===n.g?"[Global]":"undefined"!=typeof window&&e===window?"[Window]":"undefined"!=typeof document&&e===document?"[Document]":$n(r=e)&&"nativeEvent"in r&&"preventDefault"in r&&"stopPropagation"in r?"[SyntheticEvent]":"number"==typeof e&&e!=e?"[NaN]":void 0===e?"[undefined]":"function"==typeof e?"[Function: "+ar(e)+"]":"symbol"==typeof e?"["+String(e)+"]":"bigint"==typeof e?"[BigInt: "+String(e)+"]":e;var r}function mr(e,t,n,r){if(void 0===n&&(n=1/0),void 0===r&&(r=new ir),0===n)return function(e){var t=Object.prototype.toString.call(e);if("string"==typeof e)return e;if("[object Object]"===t)return"[Object]";if("[object Array]"===t)return"[Array]";var n=hr(e);return Gn(n)?n:t}(t);if(null!=t&&"function"==typeof t.toJSON)return t.toJSON();var o=hr(t,e);if(Gn(o))return o;var i=fr(t),a=Array.isArray(t)?[]:{};if(r.memoize(t))return"[Circular ~]";for(var l in i)Object.prototype.hasOwnProperty.call(i,l)&&(a[l]=mr(l,i[l],n-1,r));return r.unmemoize(t),a}function vr(e,t){try{return JSON.parse(JSON.stringify(e,(function(e,n){return mr(e,n,t)})))}catch(e){return"**non-serializable**"}}function gr(e,t){void 0===t&&(t=40);var n=Object.keys(fr(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return lr(n[0],t);for(var r=n.length;r>0;r--){var o=n.slice(0,r).join(", ");if(!(o.length>t))return r===n.length?o:lr(o,t)}return""}function yr(e){var t,n;if($n(e)){var r=e,o={};try{for(var i=An(Object.keys(r)),a=i.next();!a.done;a=i.next()){var l=a.value;void 0!==r[l]&&(o[l]=yr(r[l]))}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return o}return Array.isArray(e)?e.map(yr):e}var br=function(){function e(e){this.errors=0,this.sid=(0,Nn.DM)(),this.timestamp=Date.now(),this.started=Date.now(),this.duration=0,this.status=Xn.Ok,e&&this.update(e)}return e.prototype.update=function(e){void 0===e&&(e={}),e.user&&(e.user.ip_address&&(this.ipAddress=e.user.ip_address),e.did||(this.did=e.user.id||e.user.email||e.user.username)),this.timestamp=e.timestamp||Date.now(),e.sid&&(this.sid=32===e.sid.length?e.sid:(0,Nn.DM)()),e.did&&(this.did=""+e.did),"number"==typeof e.started&&(this.started=e.started),"number"==typeof e.duration?this.duration=e.duration:this.duration=this.timestamp-this.started,e.release&&(this.release=e.release),e.environment&&(this.environment=e.environment),e.ipAddress&&(this.ipAddress=e.ipAddress),e.userAgent&&(this.userAgent=e.userAgent),"number"==typeof e.errors&&(this.errors=e.errors),e.status&&(this.status=e.status)},e.prototype.close=function(e){e?this.update({status:e}):this.status===Xn.Ok?this.update({status:Xn.Exited}):this.update()},e.prototype.toJSON=function(){return yr({sid:""+this.sid,init:!0,started:new Date(this.started).toISOString(),timestamp:new Date(this.timestamp).toISOString(),status:this.status,errors:this.errors,did:"number"==typeof this.did||"string"==typeof this.did?""+this.did:void 0,duration:this.duration,attrs:yr({release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent})})},e}(),wr=function(){function e(e,t,n){void 0===t&&(t=new er),void 0===n&&(n=3),this._version=n,this._stack=[{}],this.getStackTop().scope=t,this.bindClient(e)}return e.prototype.isOlderThan=function(e){return this._version<e},e.prototype.bindClient=function(e){this.getStackTop().client=e,e&&e.setupIntegrations&&e.setupIntegrations()},e.prototype.pushScope=function(){var e=er.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:e}),e},e.prototype.popScope=function(){return!(this.getStack().length<=1)&&!!this.getStack().pop()},e.prototype.withScope=function(e){var t=this.pushScope();try{e(t)}finally{this.popScope()}},e.prototype.getClient=function(){return this.getStackTop().client},e.prototype.getScope=function(){return this.getStackTop().scope},e.prototype.getStack=function(){return this._stack},e.prototype.getStackTop=function(){return this._stack[this._stack.length-1]},e.prototype.captureException=function(e,t){var n=this._lastEventId=(0,Nn.DM)(),r=t;if(!t){var o=void 0;try{throw new Error("Sentry syntheticException")}catch(e){o=e}r={originalException:e,syntheticException:o}}return this._invokeClient("captureException",e,Tn(Tn({},r),{event_id:n})),n},e.prototype.captureMessage=function(e,t,n){var r=this._lastEventId=(0,Nn.DM)(),o=n;if(!n){var i=void 0;try{throw new Error(e)}catch(e){i=e}o={originalException:e,syntheticException:i}}return this._invokeClient("captureMessage",e,t,Tn(Tn({},o),{event_id:r})),r},e.prototype.captureEvent=function(e,t){var n=this._lastEventId=(0,Nn.DM)();return this._invokeClient("captureEvent",e,Tn(Tn({},t),{event_id:n})),n},e.prototype.lastEventId=function(){return this._lastEventId},e.prototype.addBreadcrumb=function(e,t){var n=this.getStackTop(),r=n.scope,o=n.client;if(r&&o){var i=o.getOptions&&o.getOptions()||{},a=i.beforeBreadcrumb,l=void 0===a?null:a,s=i.maxBreadcrumbs,u=void 0===s?100:s;if(!(u<=0)){var c=(0,Dn.yW)(),f=Tn({timestamp:c},e),d=l?(0,Nn.Cf)((function(){return l(f,t)})):f;null!==d&&r.addBreadcrumb(d,Math.min(u,100))}}},e.prototype.setUser=function(e){var t=this.getScope();t&&t.setUser(e)},e.prototype.setTags=function(e){var t=this.getScope();t&&t.setTags(e)},e.prototype.setExtras=function(e){var t=this.getScope();t&&t.setExtras(e)},e.prototype.setTag=function(e,t){var n=this.getScope();n&&n.setTag(e,t)},e.prototype.setExtra=function(e,t){var n=this.getScope();n&&n.setExtra(e,t)},e.prototype.setContext=function(e,t){var n=this.getScope();n&&n.setContext(e,t)},e.prototype.configureScope=function(e){var t=this.getStackTop(),n=t.scope,r=t.client;n&&r&&e(n)},e.prototype.run=function(e){var t=Er(this);try{e(this)}finally{Er(t)}},e.prototype.getIntegration=function(e){var t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return Bn.warn("Cannot retrieve integration "+e.id+" from the current Hub"),null}},e.prototype.startSpan=function(e){return this._callExtensionMethod("startSpan",e)},e.prototype.startTransaction=function(e,t){return this._callExtensionMethod("startTransaction",e,t)},e.prototype.traceHeaders=function(){return this._callExtensionMethod("traceHeaders")},e.prototype.startSession=function(e){this.endSession();var t=this.getStackTop(),n=t.scope,r=t.client,o=r&&r.getOptions()||{},i=o.release,a=o.environment,l=new br(Tn(Tn({release:i,environment:a},n&&{user:n.getUser()}),e));return n&&n.setSession(l),l},e.prototype.endSession=function(){var e=this.getStackTop(),t=e.scope,n=e.client;if(t){var r=t.getSession&&t.getSession();r&&(r.close(),n&&n.captureSession&&n.captureSession(r),t.setSession())}},e.prototype._invokeClient=function(e){for(var t,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=this.getStackTop(),i=o.scope,a=o.client;a&&a[e]&&(t=a)[e].apply(t,Rn(n,[i]))},e.prototype._callExtensionMethod=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=xr(),o=r.__SENTRY__;if(o&&o.extensions&&"function"==typeof o.extensions[e])return o.extensions[e].apply(this,t);Bn.warn("Extension method "+e+" couldn't be found, doing nothing.")},e}();function xr(){var e=(0,Nn.Rf)();return e.__SENTRY__=e.__SENTRY__||{extensions:{},hub:void 0},e}function Er(e){var t=xr(),n=Or(t);return kr(t,e),n}function _r(){var e=xr();return Sr(e)&&!Or(e).isOlderThan(3)||kr(e,new wr),(0,Un.KV)()?function(e){try{var t=(r=xr().__SENTRY__)&&r.extensions&&r.extensions.domain&&r.extensions.domain.active;if(!t)return Or(e);if(!Sr(t)||Or(t).isOlderThan(3)){var n=Or(e).getStackTop();kr(t,new wr(n.client,er.clone(n.scope)))}return Or(t)}catch(t){return Or(e)}var r}(e):Or(e)}function Sr(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function Or(e){return e&&e.__SENTRY__&&e.__SENTRY__.hub||(e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.hub=new wr),e.__SENTRY__.hub}function kr(e,t){return!!e&&(e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.hub=t,!0)}function Cr(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=_r();if(r&&r[e])return r[e].apply(r,Rn(t));throw new Error("No hub defined or "+e+" was not found on the hub, please open a bug report.")}function Pr(e,t){var n;try{throw new Error("Sentry syntheticException")}catch(e){n=e}return Cr("captureException",e,{captureContext:t,originalException:e,syntheticException:n})}function jr(e){Cr("withScope",e)}function Tr(e,t){try{document.querySelector(".buttonizer-preview iframe").contentWindow.postMessage({eventType:"buttonizer",messageType:"preview-reload",message:{force:e,newGroupId:t}},document.location.origin)}catch(e){console.log("Buttonizer tried to auto update the Buttonizer Buttons. But the message didn't came through. Well. Doesn't matter, it's just an extra function. It's nice to have."),console.error(e),Pr(e),document.querySelector(".buttonizer-preview iframe").contentWindow.location.reload()}}var Ar=n(82492),Ir=n.n(Ar),Rr=n(18446),Nr=n.n(Rr);function Dr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Mr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Lr=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,r;return t=e,r=[{key:"enqueue",value:function(e){var t=this;return new Promise((function(n,r){t.queue.push({promise:e,resolve:n,reject:r}),t.dequeue()}))}},{key:"dequeue",value:function(){var e=this;if(this.workingOnPromise)return!1;var t=this.queue.shift();if(!t)return!1;try{this.workingOnPromise=!0,co.dispatch(kn(!0)),t.promise().then((function(n){e.workingOnPromise=!1,t.resolve(n),e.dequeue()})).catch((function(n){e.workingOnPromise=!1,t.reject(n),e.dequeue()}))}catch(e){this.workingOnPromise=!1,t.reject(e),this.dequeue()}return!0}}],(n=null)&&Dr(t.prototype,n),r&&Dr(t,r),e}();Mr(Lr,"queue",[]),Mr(Lr,"workingOnPromise",!1);var Fr=n(91966),zr=n.n(Fr),Br=setTimeout((function(){})),Ur={};function Zr(){clearTimeout(Br),Br=setTimeout((function(){var e,t,n,r=Ir()({},Ur);(Ur=co.getState(),Nr()(r,{})||Nr()(Ur,{})||Nr()(r,Ur)||!r.misc.loading.loaded||!Ur.misc.loading.loaded)||(Nr()(r.buttons,Ur.buttons)&&Nr()(r.groups,Ur.groups)||Lr.enqueue(Hr((e=co.getState().groups,t=Object.values(e),n=[],t.forEach((function(e){var t=Sn(e,(function(e){delete e.children})),r=Object.values(St(e.children)),o=[];r.forEach((function(e){var t=Sn(e,(function(e){delete e.parent}));o.push(t)})),0===o.length&&(o=[{name:"Button",show_mobile:"true",show_desktop:"true"}]),n.push({data:t,buttons:o})})),n),"/buttons",!1,zr()(Object.keys(Ur.groups),Object.keys(r.groups))[0])),Nr()(r.settings,Ur.settings)||(Lr.enqueue(Hr(co.getState().settings,"/settings",!0)),r.settings.icon_library===Ur.settings.icon_library&&r.settings.icon_library_version===Ur.settings.icon_library_version&&r.settings.icon_library_code===Ur.settings.icon_library_code&&r.settings.import_icon_library===Ur.settings.import_icon_library||Lr.enqueue((function(){return new Promise((function(e){var t;null!=(t=document.querySelector(".buttonizer-preview iframe"))&&(t.contentWindow&&t.contentWindow.location?t.contentWindow.location.reload():t.src=t.src),e()}))}))))}),1500)}var Hr=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=function(e){e&&e.request?co.dispatch(kn({status:e.request.status,statusText:e.request.statusText?e.request.statusText:"Unknown",message:e.request.response?JSON.parse(e.request.response).message?JSON.parse(e.request.response).message:e.request.response:e.message})):co.dispatch(kn("failed")),console.error("Something went wrong trying to update this model: \n",e),Pr(e)};return function(){return ft(t,{method:"POST",data:{nonce:buttonizer_admin.is_stand_alone?void 0:buttonizer_admin.nonce,data:e}}).then((function(e){var t=e.data;app.setHasChanges(!0),null!==t&&"success"===t.status?(co.dispatch(kn(!1)),Tr(n,r)):o()})).catch(o)}},Wr={loading:{posts:!1,pages:!1,categories:!1,roles:!1},loaded:{posts:!1,pages:!1,categories:!1,roles:!1},data:{posts:[],pages:[],categories:[],roles:[]}};var Vr={loading:{},drawer:""};var Gr={isUpdating:!1};function $r(e){return function(e){if(Array.isArray(e))return Kr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Kr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Kr(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Kr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function qr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qr(Object(n),!0).forEach((function(t){Jr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Jr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xr(e){return function(e){if(Array.isArray(e))return Qr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Qr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Qr(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Qr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var eo={buttons:{},groups:{},timeSchedules:{},settings:{},pageRules:{},_premium:!1};var to={templates:[],settings:{loading:!1,error:null,loaded:!1}};function no(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function ro(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){no(i,r,o,a,l,"next",e)}function l(e){no(i,r,o,a,l,"throw",e)}a(void 0)}))}}var oo=[O.groups.SET_KEY_VALUE,O.groups.SET_KEY_FORMAT,O.buttons.SET_KEY_VALUE,O.buttons.SET_KEY_FORMAT],io=[O.groups.ADD_RECORD,O.groups.REMOVE_RECORD,O.buttons.ADD_RECORD,O.buttons.REMOVE_RECORD,O.CHANGE_RELATION],ao={};function lo(){return(lo=ro(regeneratorRuntime.mark((function e(t){var n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.type,r=t.payload,-1!==oo.indexOf(n)||-1!==io.indexOf(n)){e.next=3;break}return e.abrupt("return");case 3:if(!(io.indexOf(n)>=0)){e.next=6;break}return so("full-reload-required"),e.abrupt("return");case 6:clearTimeout(ao[r.key]),ao[r.key]=setTimeout((function(){var e=r.format&&"normal_hover"===r.format?T.normal_hover.format(r.values[0],r.values[1]):r.value;so("preview-data-update",{model:n===O.groups.SET_KEY_VALUE||n===O.groups.SET_KEY_FORMAT?"group":"button",id:r.id,key:r.key,value:e})}),500);case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function so(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=document.querySelector(".buttonizer-preview iframe");n&&n.contentWindow.postMessage({eventType:"buttonizer",messageType:e,message:t},document.location.origin)}var uo=u(function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var o=t[r];0,"function"==typeof e[o]&&(n[o]=e[o])}var i,a=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if(void 0===n(void 0,{type:l.INIT}))throw new Error('Reducer "'+t+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(void 0===n(void 0,{type:l.PROBE_UNKNOWN_ACTION()}))throw new Error('Reducer "'+t+"\" returned undefined when probed with a random type. Don't try to handle "+l.INIT+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.')}))}(n)}catch(e){i=e}return function(e,t){if(void 0===e&&(e={}),i)throw i;for(var r=!1,o={},l=0;l<a.length;l++){var s=a[l],u=n[s],f=e[s],d=u(f,t);if(void 0===d){var p=c(s,t);throw new Error(p)}o[s]=d,r=r||d!==f}return(r=r||a.length!==Object.keys(e).length)?o:e}}({saving:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Gr,t=arguments.length>1?arguments[1]:void 0;return _n(e,(function(e){Object.values(O.buttons).includes(t.type)||Object.values(O.groups).includes(t.type)||Object.values(O.pageRules).includes(t.type)||Object.values(O.timeSchedules).includes(t.type)||O.SET_SETTING_VALUE===t.type||t.type===O.IS_UPDATING&&(e.isUpdating=t.payload.isUpdating)}))},wp:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Wr,t=arguments.length>1?arguments[1]:void 0;return t.type===O.INIT?Wr:_n(e,(function(e){switch(t.type){case O.wp.GET_DATA_BEGIN:e.loading[t.payload.type]=!0;break;case O.wp.GET_DATA_END:e.loading[t.payload.type]=!1;break;case O.wp.GET_DATA_FAILURE:console.error(t.payload.error);break;case O.wp.GET_DATA_SUCCESS:e.data[t.payload.type]=t.payload.data,e.loaded[t.payload.type]=!0}}))},timeSchedules:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return t.type===O.INIT?t.payload.timeSchedules:Sn(e,(function(e){switch(t.type){case O.timeSchedules.ADD_RECORD:e[t.payload.record.id]=t.payload.record;break;case O.timeSchedules.REMOVE_RECORD:delete e[t.payload.id];break;case O.timeSchedules.SET_KEY_VALUE:e[t.payload.id][t.payload.key]=t.payload.value;break;case O.timeSchedules.SET_WEEKDAY:e[t.payload.id].weekdays[t.payload.weekdayKey][t.payload.key]=t.payload.value;break;case O.timeSchedules.ADD_EXCLUDED_DATE:e[t.payload.id].dates.push({opened:!0,open:"8:00",close:"17:00",date:F(new Date)});break;case O.timeSchedules.SET_EXCLUDED_DATE:e[t.payload.id].dates[t.payload.dateKey][t.payload.key]=t.payload.value;break;case O.timeSchedules.REMOVE_EXCLUDED_DATE:e[t.payload.id].dates.splice(t.payload.dateKey,1)}}))},pageRules:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return t.type===O.INIT?t.payload.pageRules:Sn(e,(function(e){switch(t.type){case O.pageRules.ADD_RECORD:e[t.payload.record.id]=t.payload.record;break;case O.pageRules.REMOVE_RECORD:delete e[t.payload.id];break;case O.pageRules.SET_KEY_VALUE:e[t.payload.id][t.payload.key]=t.payload.value;break;case O.pageRules.ADD_PAGE_RULE_ROW:e[t.payload.id].rules.push({type:"page_title",value:""});break;case O.pageRules.SET_PAGE_RULE_ROW:e[t.payload.id].rules[t.payload.ruleRowKey][t.payload.key]=t.payload.value;break;case O.pageRules.REMOVE_PAGE_RULE_ROW:e[t.payload.id].rules.splice(t.payload.ruleRowKey,1)}}))},groups:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(t.type===O.INIT)return t.payload.groups;if(t.type===O.groups.ADD_RECORD&&"string"!=typeof t.payload.index){var n=Yr(Yr({},e),{},Jr({},t.payload.record.id,t.payload.record)),r=Object.keys(e);return r.splice(t.payload.index,0,t.payload.record.id),r.reduce((function(e,t){return e[t]=n[t],e}),{})}return _n(e,(function(e){switch(t.type){case O.groups.ADD_RECORD:e[t.payload.record.id]=t.payload.record;break;case O.groups.REMOVE_RECORD:delete e[t.payload.model_id];break;case O.groups.SET_KEY_VALUE:if("unset"===t.payload.value){void 0!==e[t.payload.id][t.payload.key]&&delete e[t.payload.id][t.payload.key];break}e[t.payload.id][t.payload.key]=t.payload.value;break;case O.groups.SET_KEY_FORMAT:var n=T[t.payload.format];if(!n)break;var r=n.format.apply(n,$r(t.payload.values));if("unset"===r){void 0!==e[t.payload.id][t.payload.key]&&delete e[t.payload.id][t.payload.key];break}e[t.payload.id][t.payload.key]=r;break;case O.ADD_RELATION:if(e[t.payload.group_id].children=e[t.payload.group_id].children||[],"string"!=typeof t.payload.index){e[t.payload.group_id].children.splice(t.payload.index,0,t.payload.button_id);break}e[t.payload.group_id].children.push(t.payload.button_id);break;case O.CHANGE_RELATION:var o=e[t.payload.old_group_id].children.indexOf(t.payload.button_id);e[t.payload.old_group_id].children.splice(o,1),0===e[t.payload.old_group_id].children.length&&delete e[t.payload.old_group_id],e[t.payload.new_group_id].children.splice(t.payload.button_index,0,t.payload.button_id);break;case O.REMOVE_RELATION:var i=e[t.payload.group_id].children.indexOf(t.payload.button_id);e[t.payload.group_id].children.splice(i,1)}}))},buttons:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:eo,t=arguments.length>1?arguments[1]:void 0;return t.type===O.INIT?t.payload.buttons:_n(e,(function(e){switch(t.type){case O.buttons.ADD_RECORD:e[t.payload.record.id]=t.payload.record;break;case O.buttons.REMOVE_RECORD:delete e[t.payload.model_id];break;case O.buttons.SET_KEY_VALUE:if("unset"===t.payload.value){void 0!==e[t.payload.id][t.payload.key]&&delete e[t.payload.id][t.payload.key];break}e[t.payload.id][t.payload.key]=t.payload.value;break;case O.buttons.SET_KEY_FORMAT:var n=T[t.payload.format];if(!n)break;var r=n.format.apply(n,Xr(t.payload.values));if("unset"===r){void 0!==e[t.payload.id][t.payload.key]&&delete e[t.payload.id][t.payload.key];break}e[t.payload.id][t.payload.key]=r;break;case O.ADD_RELATION:e[t.payload.button_id].parent=t.payload.group_id;break;case O.CHANGE_RELATION:e[t.payload.button_id].parent=t.payload.new_group_id;break;case O.REMOVE_RELATION:e[t.payload.button_id].parent=null;break;default:return e}}))},misc:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Vr,t=arguments.length>1?arguments[1]:void 0;return Sn(e,(function(e){switch(t.type){case O.INIT:var n=t.payload.wordpress?t.payload.wordpress:t.payload.info;e.frameUrl=n.base+"?buttonizer-preview=1".concat(t.payload.identifier?"&identifier=".concat(t.payload.identifier):""),e.loading.loadingIframe=!0,e.loading.showLoading=!0,e.loading.loadingString="loading.website",e.hasChanges="1"===t.payload.hasChanges,e.loading.loaded=!0,e.wordpress=t.payload.wordpress,e._premium=t.payload.premium,e.is_opt_in=t.payload.is_opt_in,e.latest_tour_update=t.payload.latest_tour_update,e.additional_permissions=t.payload.additional_permissions,e._premiumCode=t.payload.premium_code,e.domain=t.payload.info?t.payload.info.domain:null;break;case O.GET_DATA_BEGIN:e.loading.showLoading=!0,e.loading.loadingString="loading.loading";break;case O.GET_DATA_SUCCESS:e.loading.showLoading=!1,e.loading.fetchError=null,e.loading.loaded=!0;break;case O.GET_DATA_FAILURE:e.loading.showLoading=!1,e.loading.fetchError=t.payload.error,console.error(t.payload.error);break;case O.HAS_CHANGES:e.hasChanges=t.payload.hasChanges;break;case O.STOP_LOADING:e.loading.showLoading=!1,e.loading.loadingSlowWebsite=!1,e.loading.loadingIframe=!1;break;case O.SET_MISC_VALUE:e[t.payload.setting]=t.payload.value}}))},settings:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return t.type===O.INIT?t.payload.settings:Sn(e,(function(e){switch(t.type){case O.SET_SETTING_VALUE:"can_send_errors"===t.payload.setting&&"undefined"!=typeof buttonizer_admin&&(buttonizer_admin.can_send_errors=t.payload.value),e[t.payload.setting]=t.payload.value}}))},templates:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:to,t=arguments.length>1?arguments[1]:void 0;return Sn(e,(function(e){switch(t.type){case O.templates.INIT:e.templates=t.payload.data,e.settings.loaded=!0;break;case O.templates.GET_DATA_BEGIN:e.settings.loading=!0;break;case O.templates.GET_DATA_FAILURE:e.settings.error=t.payload.error;break;case O.templates.GET_DATA_END:e.settings.loading=!1;break;case O.templates.ADD_RECORD:e.templates.push(t.payload.template)}}))}}),g((function(){return function(e){return function(t){return function(e){lo.apply(this,arguments)}(t),e(t)}}})));uo.add=function(e,t){return uo.dispatch(xt(e,t))},uo.subscribe(Zr);var co=uo,fo=n(81253),po=n(22122),ho=n(45697),mo=n.n(ho),vo=n(86010),go=n(14670),yo=n(59693),bo=n(17294),wo=n(55192),xo=n(24896),Eo=n(78927),_o=n(19756),So=n(41788),Oo=r.createContext(null);function ko(e,t){var n=Object.create(null);return e&&r.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,r.isValidElement)(e)?t(e):e}(e)})),n}function Co(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Po(e,t,n){var o=ko(e.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var l={};for(var s in t){if(o[s])for(r=0;r<o[s].length;r++){var u=o[s][r];l[o[s][r]]=n(u)}l[s]=n(s)}for(r=0;r<i.length;r++)l[i[r]]=n(i[r]);return l}(t,o);return Object.keys(i).forEach((function(a){var l=i[a];if((0,r.isValidElement)(l)){var s=a in t,u=a in o,c=t[a],f=(0,r.isValidElement)(c)&&!c.props.in;!u||s&&!f?u||!s||f?u&&s&&(0,r.isValidElement)(c)&&(i[a]=(0,r.cloneElement)(l,{onExited:n.bind(null,l),in:c.props.in,exit:Co(l,"exit",e),enter:Co(l,"enter",e)})):i[a]=(0,r.cloneElement)(l,{in:!1}):i[a]=(0,r.cloneElement)(l,{onExited:n.bind(null,l),in:!0,exit:Co(l,"exit",e),enter:Co(l,"enter",e)})}})),i}var jo=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},To=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind((0,G.Z)(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}(0,So.Z)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,o,i=t.children,a=t.handleExited;return{children:t.firstRender?(n=e,o=a,ko(n.children,(function(e){return(0,r.cloneElement)(e,{onExited:o.bind(null,e),in:!0,appear:Co(e,"appear",n),enter:Co(e,"enter",n),exit:Co(e,"exit",n)})}))):Po(e,i,a),firstRender:!1}},n.handleExited=function(e,t){var n=ko(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=(0,po.Z)({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,o=(0,_o.Z)(e,["component","childFactory"]),i=this.state.contextValue,a=jo(this.state.children).map(n);return delete o.appear,delete o.enter,delete o.exit,null===t?r.createElement(Oo.Provider,{value:i},a):r.createElement(Oo.Provider,{value:i},r.createElement(t,o,a))},t}(r.Component);To.propTypes={},To.defaultProps={component:"div",childFactory:function(e){return e}};var Ao=To,Io="undefined"==typeof window?r.useEffect:r.useLayoutEffect;var Ro=function(e){var t=e.classes,n=e.pulsate,o=void 0!==n&&n,i=e.rippleX,a=e.rippleY,l=e.rippleSize,s=e.in,u=e.onExited,c=void 0===u?function(){}:u,f=e.timeout,d=r.useState(!1),p=d[0],h=d[1],m=(0,vo.Z)(t.ripple,t.rippleVisible,o&&t.ripplePulsate),v={width:l,height:l,top:-l/2+a,left:-l/2+i},g=(0,vo.Z)(t.child,p&&t.childLeaving,o&&t.childPulsate),y=(0,wo.Z)(c);return Io((function(){if(!s){h(!0);var e=setTimeout(y,f);return function(){clearTimeout(e)}}}),[y,s,f]),r.createElement("span",{className:m,style:v},r.createElement("span",{className:g}))},No=r.forwardRef((function(e,t){var n=e.center,o=void 0!==n&&n,i=e.classes,a=e.className,l=(0,fo.Z)(e,["center","classes","className"]),s=r.useState([]),u=s[0],c=s[1],f=r.useRef(0),d=r.useRef(null);r.useEffect((function(){d.current&&(d.current(),d.current=null)}),[u]);var p=r.useRef(!1),h=r.useRef(null),m=r.useRef(null),v=r.useRef(null);r.useEffect((function(){return function(){clearTimeout(h.current)}}),[]);var g=r.useCallback((function(e){var t=e.pulsate,n=e.rippleX,o=e.rippleY,a=e.rippleSize,l=e.cb;c((function(e){return[].concat((0,Eo.Z)(e),[r.createElement(Ro,{key:f.current,classes:i,timeout:550,pulsate:t,rippleX:n,rippleY:o,rippleSize:a})])})),f.current+=1,d.current=l}),[i]),y=r.useCallback((function(){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?arguments[2]:void 0,r=t.pulsate,i=void 0!==r&&r,a=t.center,l=void 0===a?o||t.pulsate:a,s=t.fakeElement,u=void 0!==s&&s;if("mousedown"===e.type&&p.current)p.current=!1;else{"touchstart"===e.type&&(p.current=!0);var c,f,d,y=u?null:v.current,b=y?y.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(l||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(b.width/2),f=Math.round(b.height/2);else{var w=e.touches?e.touches[0]:e,x=w.clientX,E=w.clientY;c=Math.round(x-b.left),f=Math.round(E-b.top)}if(l)(d=Math.sqrt((2*Math.pow(b.width,2)+Math.pow(b.height,2))/3))%2==0&&(d+=1);else{var _=2*Math.max(Math.abs((y?y.clientWidth:0)-c),c)+2,S=2*Math.max(Math.abs((y?y.clientHeight:0)-f),f)+2;d=Math.sqrt(Math.pow(_,2)+Math.pow(S,2))}e.touches?null===m.current&&(m.current=function(){g({pulsate:i,rippleX:c,rippleY:f,rippleSize:d,cb:n})},h.current=setTimeout((function(){m.current&&(m.current(),m.current=null)}),80)):g({pulsate:i,rippleX:c,rippleY:f,rippleSize:d,cb:n})}}),[o,g]),b=r.useCallback((function(){y({},{pulsate:!0})}),[y]),w=r.useCallback((function(e,t){if(clearTimeout(h.current),"touchend"===e.type&&m.current)return e.persist(),m.current(),m.current=null,void(h.current=setTimeout((function(){w(e,t)})));m.current=null,c((function(e){return e.length>0?e.slice(1):e})),d.current=t}),[]);return r.useImperativeHandle(t,(function(){return{pulsate:b,start:y,stop:w}}),[b,y,w]),r.createElement("span",(0,po.Z)({className:(0,vo.Z)(i.root,a),ref:v},l),r.createElement(Ao,{component:null,exit:!0},u))})),Do=(0,go.Z)((function(e){return{root:{overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"},ripple:{opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"$enter ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(e.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"$exit ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500ms ".concat(e.transitions.easing.easeInOut," 200ms infinite")},"@keyframes enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}}),{flip:!1,name:"MuiTouchRipple"})(r.memo(No)),Mo=r.forwardRef((function(e,t){var n=e.action,i=e.buttonRef,a=e.centerRipple,l=void 0!==a&&a,s=e.children,u=e.classes,c=e.className,f=e.component,d=void 0===f?"button":f,p=e.disabled,h=void 0!==p&&p,m=e.disableRipple,v=void 0!==m&&m,g=e.disableTouchRipple,y=void 0!==g&&g,b=e.focusRipple,w=void 0!==b&&b,x=e.focusVisibleClassName,E=e.onBlur,_=e.onClick,S=e.onFocus,O=e.onFocusVisible,k=e.onKeyDown,C=e.onKeyUp,P=e.onMouseDown,j=e.onMouseLeave,T=e.onMouseUp,A=e.onTouchEnd,I=e.onTouchMove,R=e.onTouchStart,N=e.onDragLeave,D=e.tabIndex,M=void 0===D?0:D,L=e.TouchRippleProps,F=e.type,z=void 0===F?"button":F,B=(0,fo.Z)(e,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),U=r.useRef(null);var Z=r.useRef(null),H=r.useState(!1),W=H[0],V=H[1];h&&W&&V(!1);var G=(0,xo.Z)(),$=G.isFocusVisible,K=G.onBlurVisible,q=G.ref;function Y(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:y;return(0,wo.Z)((function(r){return t&&t(r),!n&&Z.current&&Z.current[e](r),!0}))}r.useImperativeHandle(n,(function(){return{focusVisible:function(){V(!0),U.current.focus()}}}),[]),r.useEffect((function(){W&&w&&!v&&Z.current.pulsate()}),[v,w,W]);var J=Y("start",P),X=Y("stop",N),Q=Y("stop",T),ee=Y("stop",(function(e){W&&e.preventDefault(),j&&j(e)})),te=Y("start",R),ne=Y("stop",A),re=Y("stop",I),oe=Y("stop",(function(e){W&&(K(e),V(!1)),E&&E(e)}),!1),ie=(0,wo.Z)((function(e){U.current||(U.current=e.currentTarget),$(e)&&(V(!0),O&&O(e)),S&&S(e)})),ae=function(){var e=o.findDOMNode(U.current);return d&&"button"!==d&&!("A"===e.tagName&&e.href)},le=r.useRef(!1),se=(0,wo.Z)((function(e){w&&!le.current&&W&&Z.current&&" "===e.key&&(le.current=!0,e.persist(),Z.current.stop(e,(function(){Z.current.start(e)}))),e.target===e.currentTarget&&ae()&&" "===e.key&&e.preventDefault(),k&&k(e),e.target===e.currentTarget&&ae()&&"Enter"===e.key&&!h&&(e.preventDefault(),_&&_(e))})),ue=(0,wo.Z)((function(e){w&&" "===e.key&&Z.current&&W&&!e.defaultPrevented&&(le.current=!1,e.persist(),Z.current.stop(e,(function(){Z.current.pulsate(e)}))),C&&C(e),_&&e.target===e.currentTarget&&ae()&&" "===e.key&&!e.defaultPrevented&&_(e)})),ce=d;"button"===ce&&B.href&&(ce="a");var fe={};"button"===ce?(fe.type=z,fe.disabled=h):("a"===ce&&B.href||(fe.role="button"),fe["aria-disabled"]=h);var de=(0,bo.Z)(i,t),pe=(0,bo.Z)(q,U),he=(0,bo.Z)(de,pe),me=r.useState(!1),ve=me[0],ge=me[1];r.useEffect((function(){ge(!0)}),[]);var ye=ve&&!v&&!h;return r.createElement(ce,(0,po.Z)({className:(0,vo.Z)(u.root,c,W&&[u.focusVisible,x],h&&u.disabled),onBlur:oe,onClick:_,onFocus:ie,onKeyDown:se,onKeyUp:ue,onMouseDown:J,onMouseLeave:ee,onMouseUp:Q,onDragLeave:X,onTouchEnd:ne,onTouchMove:re,onTouchStart:te,ref:he,tabIndex:h?-1:M},fe,B),s,ye?r.createElement(Do,(0,po.Z)({ref:Z,center:l},L)):null)})),Lo=(0,go.Z)({root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(Mo),Fo=n(93871),zo=r.forwardRef((function(e,t){var n=e.children,o=e.classes,i=e.className,a=e.color,l=void 0===a?"default":a,s=e.component,u=void 0===s?"button":s,c=e.disabled,f=void 0!==c&&c,d=e.disableElevation,p=void 0!==d&&d,h=e.disableFocusRipple,m=void 0!==h&&h,v=e.endIcon,g=e.focusVisibleClassName,y=e.fullWidth,b=void 0!==y&&y,w=e.size,x=void 0===w?"medium":w,E=e.startIcon,_=e.type,S=void 0===_?"button":_,O=e.variant,k=void 0===O?"text":O,C=(0,fo.Z)(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),P=E&&r.createElement("span",{className:(0,vo.Z)(o.startIcon,o["iconSize".concat((0,Fo.Z)(x))])},E),j=v&&r.createElement("span",{className:(0,vo.Z)(o.endIcon,o["iconSize".concat((0,Fo.Z)(x))])},v);return r.createElement(Lo,(0,po.Z)({className:(0,vo.Z)(o.root,o[k],i,"inherit"===l?o.colorInherit:"default"!==l&&o["".concat(k).concat((0,Fo.Z)(l))],"medium"!==x&&[o["".concat(k,"Size").concat((0,Fo.Z)(x))],o["size".concat((0,Fo.Z)(x))]],p&&o.disableElevation,f&&o.disabled,b&&o.fullWidth),component:u,disabled:f,focusRipple:!m,focusVisibleClassName:(0,vo.Z)(o.focusVisible,g),ref:t,type:S},C),r.createElement("span",{className:o.label},P,n,j))})),Bo=(0,go.Z)((function(e){return{root:(0,po.Z)({},e.typography.button,{boxSizing:"border-box",minWidth:64,padding:"6px 16px",borderRadius:e.shape.borderRadius,color:e.palette.text.primary,transition:e.transitions.create(["background-color","box-shadow","border"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none",backgroundColor:(0,yo.U1)(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"},"&$disabled":{backgroundColor:"transparent"}},"&$disabled":{color:e.palette.action.disabled}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},text:{padding:"6px 8px"},textPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:(0,yo.U1)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:(0,yo.U1)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlined:{padding:"5px 15px",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"&$disabled":{border:"1px solid ".concat(e.palette.action.disabledBackground)}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat((0,yo.U1)(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:(0,yo.U1)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat((0,yo.U1)(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:(0,yo.U1)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{border:"1px solid ".concat(e.palette.action.disabled)}},contained:{color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],boxShadow:e.shadows[2],"&:hover":{backgroundColor:e.palette.grey.A100,boxShadow:e.shadows[4],"@media (hover: none)":{boxShadow:e.shadows[2],backgroundColor:e.palette.grey[300]},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}},"&$focusVisible":{boxShadow:e.shadows[6]},"&:active":{boxShadow:e.shadows[8]},"&$disabled":{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground}},containedPrimary:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}}},containedSecondary:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}}},disableElevation:{boxShadow:"none","&:hover":{boxShadow:"none"},"&$focusVisible":{boxShadow:"none"},"&:active":{boxShadow:"none"},"&$disabled":{boxShadow:"none"}},focusVisible:{},disabled:{},colorInherit:{color:"inherit",borderColor:"currentColor"},textSizeSmall:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},textSizeLarge:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},outlinedSizeSmall:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},outlinedSizeLarge:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},containedSizeSmall:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},containedSizeLarge:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},sizeSmall:{},sizeLarge:{},fullWidth:{width:"100%"},startIcon:{display:"inherit",marginRight:8,marginLeft:-4,"&$iconSizeSmall":{marginLeft:-2}},endIcon:{display:"inherit",marginRight:-4,marginLeft:8,"&$iconSizeSmall":{marginRight:-2}},iconSizeSmall:{"& > *:first-child":{fontSize:18}},iconSizeMedium:{"& > *:first-child":{fontSize:20}},iconSizeLarge:{"& > *:first-child":{fontSize:22}}}}),{name:"MuiButton"})(zo);function Uo(e){var t=e.getBoundingClientRect();return{width:t.width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left,x:t.left,y:t.top}}function Zo(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ho(e){var t=Zo(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Wo(e){return e instanceof Zo(e).Element||e instanceof Element}function Vo(e){return e instanceof Zo(e).HTMLElement||e instanceof HTMLElement}function Go(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Zo(e).ShadowRoot||e instanceof ShadowRoot)}function $o(e){return e?(e.nodeName||"").toLowerCase():null}function Ko(e){return((Wo(e)?e.ownerDocument:e.document)||window.document).documentElement}function qo(e){return Uo(Ko(e)).left+Ho(e).scrollLeft}function Yo(e){return Zo(e).getComputedStyle(e)}function Jo(e){var t=Yo(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Xo(e,t,n){void 0===n&&(n=!1);var r=Ko(t),o=Uo(e),i=Vo(t),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!n)&&(("body"!==$o(t)||Jo(r))&&(a=function(e){return e!==Zo(e)&&Vo(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:Ho(e);var t}(t)),Vo(t)?((l=Uo(t)).x+=t.clientLeft,l.y+=t.clientTop):r&&(l.x=qo(r))),{x:o.left+a.scrollLeft-l.x,y:o.top+a.scrollTop-l.y,width:o.width,height:o.height}}function Qo(e){var t=Uo(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function ei(e){return"html"===$o(e)?e:e.assignedSlot||e.parentNode||(Go(e)?e.host:null)||Ko(e)}function ti(e,t){var n;void 0===t&&(t=[]);var r=function e(t){return["html","body","#document"].indexOf($o(t))>=0?t.ownerDocument.body:Vo(t)&&Jo(t)?t:e(ei(t))}(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=Zo(r),a=o?[i].concat(i.visualViewport||[],Jo(r)?r:[]):r,l=t.concat(a);return o?l:l.concat(ti(ei(a)))}function ni(e){return["table","td","th"].indexOf($o(e))>=0}function ri(e){return Vo(e)&&"fixed"!==Yo(e).position?e.offsetParent:null}function oi(e){for(var t=Zo(e),n=ri(e);n&&ni(n)&&"static"===Yo(n).position;)n=ri(n);return n&&("html"===$o(n)||"body"===$o(n)&&"static"===Yo(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&Vo(e)&&"fixed"===Yo(e).position)return null;for(var n=ei(e);Vo(n)&&["html","body"].indexOf($o(n))<0;){var r=Yo(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var ii="top",ai="bottom",li="right",si="left",ui=[ii,ai,li,si],ci=ui.reduce((function(e,t){return e.concat([t+"-start",t+"-end"])}),[]),fi=[].concat(ui,["auto"]).reduce((function(e,t){return e.concat([t,t+"-start",t+"-end"])}),[]),di=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function pi(e){var t=new Map,n=new Set,r=[];return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||function e(o){n.add(o.name),[].concat(o.requires||[],o.requiresIfExists||[]).forEach((function(r){if(!n.has(r)){var o=t.get(r);o&&e(o)}})),r.push(o)}(e)})),r}function hi(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var mi={placement:"bottom",modifiers:[],strategy:"absolute"};function vi(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function gi(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?mi:o;return function(e,t,n){void 0===n&&(n=i);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},mi,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},a=[],l=!1,s={state:o,setOptions:function(n){u(),o.options=Object.assign({},i,o.options,n),o.scrollParents={reference:Wo(e)?ti(e):e.contextElement?ti(e.contextElement):[],popper:ti(t)};var l=function(e){var t=pi(e);return di.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(r,o.options.modifiers)));return o.orderedModifiers=l.filter((function(e){return e.enabled})),o.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,i=e.effect;if("function"==typeof i){var l=i({state:o,name:t,instance:s,options:r});a.push(l||function(){})}})),s.update()},forceUpdate:function(){if(!l){var e=o.elements,t=e.reference,n=e.popper;if(vi(t,n)){o.rects={reference:Xo(t,oi(n),"fixed"===o.options.strategy),popper:Qo(n)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach((function(e){return o.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<o.orderedModifiers.length;r++)if(!0!==o.reset){var i=o.orderedModifiers[r],a=i.fn,u=i.options,c=void 0===u?{}:u,f=i.name;"function"==typeof a&&(o=a({state:o,options:c,name:f,instance:s})||o)}else o.reset=!1,r=-1}}},update:hi((function(){return new Promise((function(e){s.forceUpdate(),e(o)}))})),destroy:function(){u(),l=!0}};if(!vi(e,t))return s;function u(){a.forEach((function(e){return e()})),a=[]}return s.setOptions(n).then((function(e){!l&&n.onFirstUpdate&&n.onFirstUpdate(e)})),s}}var yi={passive:!0};var bi={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,a=r.resize,l=void 0===a||a,s=Zo(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach((function(e){e.addEventListener("scroll",n.update,yi)})),l&&s.addEventListener("resize",n.update,yi),function(){i&&u.forEach((function(e){e.removeEventListener("scroll",n.update,yi)})),l&&s.removeEventListener("resize",n.update,yi)}},data:{}};function wi(e){return e.split("-")[0]}function xi(e){return e.split("-")[1]}function Ei(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function _i(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?wi(o):null,a=o?xi(o):null,l=n.x+n.width/2-r.width/2,s=n.y+n.height/2-r.height/2;switch(i){case ii:t={x:l,y:n.y-r.height};break;case ai:t={x:l,y:n.y+n.height};break;case li:t={x:n.x+n.width,y:s};break;case si:t={x:n.x-r.width,y:s};break;default:t={x:n.x,y:n.y}}var u=i?Ei(i):null;if(null!=u){var c="y"===u?"height":"width";switch(a){case"start":t[u]=t[u]-(n[c]/2-r[c]/2);break;case"end":t[u]=t[u]+(n[c]/2-r[c]/2)}}return t}var Si={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=_i({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},Oi=Math.max,ki=Math.min,Ci=Math.round,Pi={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ji(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.offsets,a=e.position,l=e.gpuAcceleration,s=e.adaptive,u=e.roundOffsets,c=!0===u?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:Ci(Ci(t*r)/r)||0,y:Ci(Ci(n*r)/r)||0}}(i):"function"==typeof u?u(i):i,f=c.x,d=void 0===f?0:f,p=c.y,h=void 0===p?0:p,m=i.hasOwnProperty("x"),v=i.hasOwnProperty("y"),g=si,y=ii,b=window;if(s){var w=oi(n),x="clientHeight",E="clientWidth";w===Zo(n)&&"static"!==Yo(w=Ko(n)).position&&(x="scrollHeight",E="scrollWidth"),w=w,o===ii&&(y=ai,h-=w[x]-r.height,h*=l?1:-1),o===si&&(g=li,d-=w[E]-r.width,d*=l?1:-1)}var _,S=Object.assign({position:a},s&&Pi);return l?Object.assign({},S,((_={})[y]=v?"0":"",_[g]=m?"0":"",_.transform=(b.devicePixelRatio||1)<2?"translate("+d+"px, "+h+"px)":"translate3d("+d+"px, "+h+"px, 0)",_)):Object.assign({},S,((t={})[y]=v?h+"px":"",t[g]=m?d+"px":"",t.transform="",t))}var Ti={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];Vo(o)&&$o(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});Vo(r)&&$o(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};var Ai={left:"right",right:"left",bottom:"top",top:"bottom"};function Ii(e){return e.replace(/left|right|bottom|top/g,(function(e){return Ai[e]}))}var Ri={start:"end",end:"start"};function Ni(e){return e.replace(/start|end/g,(function(e){return Ri[e]}))}function Di(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Go(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Mi(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Li(e,t){return"viewport"===t?Mi(function(e){var t=Zo(e),n=Ko(e),r=t.visualViewport,o=n.clientWidth,i=n.clientHeight,a=0,l=0;return r&&(o=r.width,i=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,l=r.offsetTop)),{width:o,height:i,x:a+qo(e),y:l}}(e)):Vo(t)?function(e){var t=Uo(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):Mi(function(e){var t,n=Ko(e),r=Ho(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=Oi(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Oi(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+qo(e),s=-r.scrollTop;return"rtl"===Yo(o||n).direction&&(l+=Oi(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:l,y:s}}(Ko(e)))}function Fi(e,t,n){var r="clippingParents"===t?function(e){var t=ti(ei(e)),n=["absolute","fixed"].indexOf(Yo(e).position)>=0&&Vo(e)?oi(e):e;return Wo(n)?t.filter((function(e){return Wo(e)&&Di(e,n)&&"body"!==$o(e)})):[]}(e):[].concat(t),o=[].concat(r,[n]),i=o[0],a=o.reduce((function(t,n){var r=Li(e,n);return t.top=Oi(r.top,t.top),t.right=ki(r.right,t.right),t.bottom=ki(r.bottom,t.bottom),t.left=Oi(r.left,t.left),t}),Li(e,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function zi(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Bi(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function Ui(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.boundary,a=void 0===i?"clippingParents":i,l=n.rootBoundary,s=void 0===l?"viewport":l,u=n.elementContext,c=void 0===u?"popper":u,f=n.altBoundary,d=void 0!==f&&f,p=n.padding,h=void 0===p?0:p,m=zi("number"!=typeof h?h:Bi(h,ui)),v="popper"===c?"reference":"popper",g=e.elements.reference,y=e.rects.popper,b=e.elements[d?v:c],w=Fi(Wo(b)?b:b.contextElement||Ko(e.elements.popper),a,s),x=Uo(g),E=_i({reference:x,element:y,strategy:"absolute",placement:o}),_=Mi(Object.assign({},y,E)),S="popper"===c?_:x,O={top:w.top-S.top+m.top,bottom:S.bottom-w.bottom+m.bottom,left:w.left-S.left+m.left,right:S.right-w.right+m.right},k=e.modifiersData.offset;if("popper"===c&&k){var C=k[o];Object.keys(O).forEach((function(e){var t=[li,ai].indexOf(e)>=0?1:-1,n=[ii,ai].indexOf(e)>=0?"y":"x";O[e]+=C[n]*t}))}return O}function Zi(e,t,n){return Oi(e,ki(t,n))}function Hi(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Wi(e){return[ii,li,ai,si].some((function(t){return e[t]>=0}))}var Vi=gi({defaultModifiers:[bi,Si,{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,l=n.roundOffsets,s=void 0===l||l,u={placement:wi(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,ji(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,ji(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},Ti,{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=fi.reduce((function(e,n){return e[n]=function(e,t,n){var r=wi(e),o=[si,ii].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],l=i[1];return a=a||0,l=(l||0)*o,[si,li].indexOf(r)>=0?{x:l,y:a}:{x:a,y:l}}(n,t.rects,i),e}),{}),l=a[t.placement],s=l.x,u=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,l=void 0===a||a,s=n.fallbackPlacements,u=n.padding,c=n.boundary,f=n.rootBoundary,d=n.altBoundary,p=n.flipVariations,h=void 0===p||p,m=n.allowedAutoPlacements,v=t.options.placement,g=wi(v),y=s||(g===v||!h?[Ii(v)]:function(e){if("auto"===wi(e))return[];var t=Ii(e);return[Ni(e),t,Ni(t)]}(v)),b=[v].concat(y).reduce((function(e,n){return e.concat("auto"===wi(n)?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,l=n.flipVariations,s=n.allowedAutoPlacements,u=void 0===s?fi:s,c=xi(r),f=c?l?ci:ci.filter((function(e){return xi(e)===c})):ui,d=f.filter((function(e){return u.indexOf(e)>=0}));0===d.length&&(d=f);var p=d.reduce((function(t,n){return t[n]=Ui(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[wi(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:c,rootBoundary:f,padding:u,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),w=t.rects.reference,x=t.rects.popper,E=new Map,_=!0,S=b[0],O=0;O<b.length;O++){var k=b[O],C=wi(k),P="start"===xi(k),j=[ii,ai].indexOf(C)>=0,T=j?"width":"height",A=Ui(t,{placement:k,boundary:c,rootBoundary:f,altBoundary:d,padding:u}),I=j?P?li:si:P?ai:ii;w[T]>x[T]&&(I=Ii(I));var R=Ii(I),N=[];if(i&&N.push(A[C]<=0),l&&N.push(A[I]<=0,A[R]<=0),N.every((function(e){return e}))){S=k,_=!1;break}E.set(k,N)}if(_)for(var D=function(e){var t=b.find((function(t){var n=E.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return S=t,"break"},M=h?3:1;M>0;M--){if("break"===D(M))break}t.placement!==S&&(t.modifiersData[r]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,l=void 0!==a&&a,s=n.boundary,u=n.rootBoundary,c=n.altBoundary,f=n.padding,d=n.tether,p=void 0===d||d,h=n.tetherOffset,m=void 0===h?0:h,v=Ui(t,{boundary:s,rootBoundary:u,padding:f,altBoundary:c}),g=wi(t.placement),y=xi(t.placement),b=!y,w=Ei(g),x="x"===w?"y":"x",E=t.modifiersData.popperOffsets,_=t.rects.reference,S=t.rects.popper,O="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,k={x:0,y:0};if(E){if(i||l){var C="y"===w?ii:si,P="y"===w?ai:li,j="y"===w?"height":"width",T=E[w],A=E[w]+v[C],I=E[w]-v[P],R=p?-S[j]/2:0,N="start"===y?_[j]:S[j],D="start"===y?-S[j]:-_[j],M=t.elements.arrow,L=p&&M?Qo(M):{width:0,height:0},F=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},z=F[C],B=F[P],U=Zi(0,_[j],L[j]),Z=b?_[j]/2-R-U-z-O:N-U-z-O,H=b?-_[j]/2+R+U+B+O:D+U+B+O,W=t.elements.arrow&&oi(t.elements.arrow),V=W?"y"===w?W.clientTop||0:W.clientLeft||0:0,G=t.modifiersData.offset?t.modifiersData.offset[t.placement][w]:0,$=E[w]+Z-G-V,K=E[w]+H-G;if(i){var q=Zi(p?ki(A,$):A,T,p?Oi(I,K):I);E[w]=q,k[w]=q-T}if(l){var Y="x"===w?ii:si,J="x"===w?ai:li,X=E[x],Q=X+v[Y],ee=X-v[J],te=Zi(p?ki(Q,$):Q,X,p?Oi(ee,K):ee);E[x]=te,k[x]=te-X}}t.modifiersData[r]=k}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,l=wi(n.placement),s=Ei(l),u=[si,li].indexOf(l)>=0?"height":"width";if(i&&a){var c=function(e,t){return zi("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Bi(e,ui))}(o.padding,n),f=Qo(i),d="y"===s?ii:si,p="y"===s?ai:li,h=n.rects.reference[u]+n.rects.reference[s]-a[s]-n.rects.popper[u],m=a[s]-n.rects.reference[s],v=oi(i),g=v?"y"===s?v.clientHeight||0:v.clientWidth||0:0,y=h/2-m/2,b=c[d],w=g-f[u]-c[p],x=g/2-f[u]/2+y,E=Zi(b,x,w),_=s;n.modifiersData[r]=((t={})[_]=E,t.centerOffset=E-x,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&Di(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=Ui(t,{elementContext:"reference"}),l=Ui(t,{altBoundary:!0}),s=Hi(a,r),u=Hi(l,o,i),c=Wi(s),f=Wi(u);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}}]}),Gi={passive:!0,capture:!0};function $i(e,t,n){if(Array.isArray(e)){var r=e[t];return null==r?Array.isArray(n)?n[t]:n:r}return e}function Ki(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function qi(e,t){return"function"==typeof e?e.apply(void 0,t):e}function Yi(e,t){return 0===t?e:function(r){clearTimeout(n),n=setTimeout((function(){e(r)}),t)};var n}function Ji(e){return[].concat(e)}function Xi(e,t){-1===e.indexOf(t)&&e.push(t)}function Qi(e){return e.split("-")[0]}function ea(e){return[].slice.call(e)}function ta(){return document.createElement("div")}function na(e){return["Element","Fragment"].some((function(t){return Ki(e,t)}))}function ra(e){return Ki(e,"MouseEvent")}function oa(e){return!(!e||!e._tippy||e._tippy.reference!==e)}function ia(e){return na(e)?[e]:function(e){return Ki(e,"NodeList")}(e)?ea(e):Array.isArray(e)?e:ea(document.querySelectorAll(e))}function aa(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function la(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function sa(e){var t,n=Ji(e)[0];return(null==n||null==(t=n.ownerDocument)?void 0:t.body)?n.ownerDocument:document}function ua(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[r](t,n)}))}var ca={isTouch:!1},fa=0;function da(){ca.isTouch||(ca.isTouch=!0,window.performance&&document.addEventListener("mousemove",pa))}function pa(){var e=performance.now();e-fa<20&&(ca.isTouch=!1,document.removeEventListener("mousemove",pa)),fa=e}function ha(){var e=document.activeElement;if(oa(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}var ma="undefined"!=typeof window&&"undefined"!=typeof document?navigator.userAgent:"",va=/MSIE |Trident\//.test(ma);var ga={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},ya=Object.assign({appendTo:function(){return document.body},aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},ga,{},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),ba=Object.keys(ya);function wa(e){var t=(e.plugins||[]).reduce((function(t,n){var r=n.name,o=n.defaultValue;return r&&(t[r]=void 0!==e[r]?e[r]:o),t}),{});return Object.assign({},e,{},t)}function xa(e,t){var n=Object.assign({},t,{content:qi(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(wa(Object.assign({},ya,{plugins:t}))):ba).reduce((function(t,n){var r=(e.getAttribute("data-tippy-"+n)||"").trim();if(!r)return t;if("content"===n)t[n]=r;else try{t[n]=JSON.parse(r)}catch(e){t[n]=r}return t}),{})}(e,t.plugins));return n.aria=Object.assign({},ya.aria,{},n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}function Ea(e,t){e.innerHTML=t}function _a(e){var t=ta();return!0===e?t.className="tippy-arrow":(t.className="tippy-svg-arrow",na(e)?t.appendChild(e):Ea(t,e)),t}function Sa(e,t){na(t.content)?(Ea(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?Ea(e,t.content):e.textContent=t.content)}function Oa(e){var t=e.firstElementChild,n=ea(t.children);return{box:t,content:n.find((function(e){return e.classList.contains("tippy-content")})),arrow:n.find((function(e){return e.classList.contains("tippy-arrow")||e.classList.contains("tippy-svg-arrow")})),backdrop:n.find((function(e){return e.classList.contains("tippy-backdrop")}))}}function ka(e){var t=ta(),n=ta();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=ta();function o(n,r){var o=Oa(t),i=o.box,a=o.content,l=o.arrow;r.theme?i.setAttribute("data-theme",r.theme):i.removeAttribute("data-theme"),"string"==typeof r.animation?i.setAttribute("data-animation",r.animation):i.removeAttribute("data-animation"),r.inertia?i.setAttribute("data-inertia",""):i.removeAttribute("data-inertia"),i.style.maxWidth="number"==typeof r.maxWidth?r.maxWidth+"px":r.maxWidth,r.role?i.setAttribute("role",r.role):i.removeAttribute("role"),n.content===r.content&&n.allowHTML===r.allowHTML||Sa(a,e.props),r.arrow?l?n.arrow!==r.arrow&&(i.removeChild(l),i.appendChild(_a(r.arrow))):i.appendChild(_a(r.arrow)):l&&i.removeChild(l)}return r.className="tippy-content",r.setAttribute("data-state","hidden"),Sa(r,e.props),t.appendChild(n),n.appendChild(r),o(e.props,e.props),{popper:t,onUpdate:o}}ka.$$tippy=!0;var Ca=1,Pa=[],ja=[];function Ta(e,t){var n,r,o,i,a,l,s,u,c=xa(e,Object.assign({},ya,{},wa((n=t,Object.keys(n).reduce((function(e,t){return void 0!==n[t]&&(e[t]=n[t]),e}),{}))))),f=!1,d=!1,p=!1,h=!1,m=[],v=Yi($,c.interactiveDebounce),g=Ca++,y=function(e){return e.filter((function(t,n){return e.indexOf(t)===n}))}(c.plugins),b={id:g,reference:e,popper:ta(),popperInstance:null,props:c,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:y,clearDelayTimeouts:function(){clearTimeout(r),clearTimeout(o),cancelAnimationFrame(i)},setProps:function(t){0;if(b.state.isDestroyed)return;R("onBeforeUpdate",[b,t]),V();var n=b.props,r=xa(e,Object.assign({},b.props,{},t,{ignoreAttributes:!0}));b.props=r,W(),n.interactiveDebounce!==r.interactiveDebounce&&(M(),v=Yi($,r.interactiveDebounce));n.triggerTarget&&!r.triggerTarget?Ji(n.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):r.triggerTarget&&e.removeAttribute("aria-expanded");D(),I(),E&&E(n,r);b.popperInstance&&(J(),Q().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})));R("onAfterUpdate",[b,t])},setContent:function(e){b.setProps({content:e})},show:function(){0;var e=b.state.isVisible,t=b.state.isDestroyed,n=!b.state.isEnabled,r=ca.isTouch&&!b.props.touch,o=$i(b.props.duration,0,ya.duration);if(e||t||n||r)return;if(P().hasAttribute("disabled"))return;if(R("onShow",[b],!1),!1===b.props.onShow(b))return;b.state.isVisible=!0,C()&&(x.style.visibility="visible");I(),B(),b.state.isMounted||(x.style.transition="none");if(C()){var i=T(),a=i.box,l=i.content;aa([a,l],0)}s=function(){var e;if(b.state.isVisible&&!h){if(h=!0,x.offsetHeight,x.style.transition=b.props.moveTransition,C()&&b.props.animation){var t=T(),n=t.box,r=t.content;aa([n,r],o),la([n,r],"visible")}N(),D(),Xi(ja,b),null==(e=b.popperInstance)||e.forceUpdate(),b.state.isMounted=!0,R("onMount",[b]),b.props.animation&&C()&&function(e,t){Z(e,t)}(o,(function(){b.state.isShown=!0,R("onShown",[b])}))}},function(){var e,t=b.props.appendTo,n=P();e=b.props.interactive&&t===ya.appendTo||"parent"===t?n.parentNode:qi(t,[n]);e.contains(x)||e.appendChild(x);J(),!1}()},hide:function(){0;var e=!b.state.isVisible,t=b.state.isDestroyed,n=!b.state.isEnabled,r=$i(b.props.duration,1,ya.duration);if(e||t||n)return;if(R("onHide",[b],!1),!1===b.props.onHide(b))return;b.state.isVisible=!1,b.state.isShown=!1,h=!1,f=!1,C()&&(x.style.visibility="hidden");if(M(),U(),I(),C()){var o=T(),i=o.box,a=o.content;b.props.animation&&(aa([i,a],r),la([i,a],"hidden"))}N(),D(),b.props.animation?C()&&function(e,t){Z(e,(function(){!b.state.isVisible&&x.parentNode&&x.parentNode.contains(x)&&t()}))}(r,b.unmount):b.unmount()},hideWithInteractivity:function(e){0;j().addEventListener("mousemove",v),Xi(Pa,v),v(e)},enable:function(){b.state.isEnabled=!0},disable:function(){b.hide(),b.state.isEnabled=!1},unmount:function(){0;b.state.isVisible&&b.hide();if(!b.state.isMounted)return;X(),Q().forEach((function(e){e._tippy.unmount()})),x.parentNode&&x.parentNode.removeChild(x);ja=ja.filter((function(e){return e!==b})),b.state.isMounted=!1,R("onHidden",[b])},destroy:function(){0;if(b.state.isDestroyed)return;b.clearDelayTimeouts(),b.unmount(),V(),delete e._tippy,b.state.isDestroyed=!0,R("onDestroy",[b])}};if(!c.render)return b;var w=c.render(b),x=w.popper,E=w.onUpdate;x.setAttribute("data-tippy-root",""),x.id="tippy-"+b.id,b.popper=x,e._tippy=b,x._tippy=b;var _=y.map((function(e){return e.fn(b)})),S=e.hasAttribute("aria-expanded");return W(),D(),I(),R("onCreate",[b]),c.showOnCreate&&ee(),x.addEventListener("mouseenter",(function(){b.props.interactive&&b.state.isVisible&&b.clearDelayTimeouts()})),x.addEventListener("mouseleave",(function(e){b.props.interactive&&b.props.trigger.indexOf("mouseenter")>=0&&(j().addEventListener("mousemove",v),v(e))})),b;function O(){var e=b.props.touch;return Array.isArray(e)?e:[e,0]}function k(){return"hold"===O()[0]}function C(){var e;return!!(null==(e=b.props.render)?void 0:e.$$tippy)}function P(){return u||e}function j(){var e=P().parentNode;return e?sa(e):document}function T(){return Oa(x)}function A(e){return b.state.isMounted&&!b.state.isVisible||ca.isTouch||a&&"focus"===a.type?0:$i(b.props.delay,e?0:1,ya.delay)}function I(){x.style.pointerEvents=b.props.interactive&&b.state.isVisible?"":"none",x.style.zIndex=""+b.props.zIndex}function R(e,t,n){var r;(void 0===n&&(n=!0),_.forEach((function(n){n[e]&&n[e].apply(void 0,t)})),n)&&(r=b.props)[e].apply(r,t)}function N(){var t=b.props.aria;if(t.content){var n="aria-"+t.content,r=x.id;Ji(b.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(n);if(b.state.isVisible)e.setAttribute(n,t?t+" "+r:r);else{var o=t&&t.replace(r,"").trim();o?e.setAttribute(n,o):e.removeAttribute(n)}}))}}function D(){!S&&b.props.aria.expanded&&Ji(b.props.triggerTarget||e).forEach((function(e){b.props.interactive?e.setAttribute("aria-expanded",b.state.isVisible&&e===P()?"true":"false"):e.removeAttribute("aria-expanded")}))}function M(){j().removeEventListener("mousemove",v),Pa=Pa.filter((function(e){return e!==v}))}function L(e){if(!(ca.isTouch&&(p||"mousedown"===e.type)||b.props.interactive&&x.contains(e.target))){if(P().contains(e.target)){if(ca.isTouch)return;if(b.state.isVisible&&b.props.trigger.indexOf("click")>=0)return}else R("onClickOutside",[b,e]);!0===b.props.hideOnClick&&(b.clearDelayTimeouts(),b.hide(),d=!0,setTimeout((function(){d=!1})),b.state.isMounted||U())}}function F(){p=!0}function z(){p=!1}function B(){var e=j();e.addEventListener("mousedown",L,!0),e.addEventListener("touchend",L,Gi),e.addEventListener("touchstart",z,Gi),e.addEventListener("touchmove",F,Gi)}function U(){var e=j();e.removeEventListener("mousedown",L,!0),e.removeEventListener("touchend",L,Gi),e.removeEventListener("touchstart",z,Gi),e.removeEventListener("touchmove",F,Gi)}function Z(e,t){var n=T().box;function r(e){e.target===n&&(ua(n,"remove",r),t())}if(0===e)return t();ua(n,"remove",l),ua(n,"add",r),l=r}function H(t,n,r){void 0===r&&(r=!1),Ji(b.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,r),m.push({node:e,eventType:t,handler:n,options:r})}))}function W(){var e;k()&&(H("touchstart",G,{passive:!0}),H("touchend",K,{passive:!0})),(e=b.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(H(e,G),e){case"mouseenter":H("mouseleave",K);break;case"focus":H(va?"focusout":"blur",q);break;case"focusin":H("focusout",q)}}))}function V(){m.forEach((function(e){var t=e.node,n=e.eventType,r=e.handler,o=e.options;t.removeEventListener(n,r,o)})),m=[]}function G(e){var t,n=!1;if(b.state.isEnabled&&!Y(e)&&!d){var r="focus"===(null==(t=a)?void 0:t.type);a=e,u=e.currentTarget,D(),!b.state.isVisible&&ra(e)&&Pa.forEach((function(t){return t(e)})),"click"===e.type&&(b.props.trigger.indexOf("mouseenter")<0||f)&&!1!==b.props.hideOnClick&&b.state.isVisible?n=!0:ee(e),"click"===e.type&&(f=!n),n&&!r&&te(e)}}function $(e){var t=e.target,n=P().contains(t)||x.contains(t);"mousemove"===e.type&&n||function(e,t){var n=t.clientX,r=t.clientY;return e.every((function(e){var t=e.popperRect,o=e.popperState,i=e.props.interactiveBorder,a=Qi(o.placement),l=o.modifiersData.offset;if(!l)return!0;var s="bottom"===a?l.top.y:0,u="top"===a?l.bottom.y:0,c="right"===a?l.left.x:0,f="left"===a?l.right.x:0,d=t.top-r+s>i,p=r-t.bottom-u>i,h=t.left-n+c>i,m=n-t.right-f>i;return d||p||h||m}))}(Q().concat(x).map((function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:c}:null})).filter(Boolean),e)&&(M(),te(e))}function K(e){Y(e)||b.props.trigger.indexOf("click")>=0&&f||(b.props.interactive?b.hideWithInteractivity(e):te(e))}function q(e){b.props.trigger.indexOf("focusin")<0&&e.target!==P()||b.props.interactive&&e.relatedTarget&&x.contains(e.relatedTarget)||te(e)}function Y(e){return!!ca.isTouch&&k()!==e.type.indexOf("touch")>=0}function J(){X();var t=b.props,n=t.popperOptions,r=t.placement,o=t.offset,i=t.getReferenceClientRect,a=t.moveTransition,l=C()?Oa(x).arrow:null,u=i?{getBoundingClientRect:i,contextElement:i.contextElement||P()}:e,c=[{name:"offset",options:{offset:o}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!a}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(C()){var n=T().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)})),t.attributes.popper={}}}}];C()&&l&&c.push({name:"arrow",options:{element:l,padding:3}}),c.push.apply(c,(null==n?void 0:n.modifiers)||[]),b.popperInstance=Vi(u,x,Object.assign({},n,{placement:r,onFirstUpdate:s,modifiers:c}))}function X(){b.popperInstance&&(b.popperInstance.destroy(),b.popperInstance=null)}function Q(){return ea(x.querySelectorAll("[data-tippy-root]"))}function ee(e){b.clearDelayTimeouts(),e&&R("onTrigger",[b,e]),B();var t=A(!0),n=O(),o=n[0],i=n[1];ca.isTouch&&"hold"===o&&i&&(t=i),t?r=setTimeout((function(){b.show()}),t):b.show()}function te(e){if(b.clearDelayTimeouts(),R("onUntrigger",[b,e]),b.state.isVisible){if(!(b.props.trigger.indexOf("mouseenter")>=0&&b.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&f)){var t=A(!1);t?o=setTimeout((function(){b.state.isVisible&&b.hide()}),t):i=requestAnimationFrame((function(){b.hide()}))}}else U()}}function Aa(e,t){void 0===t&&(t={});var n=ya.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",da,Gi),window.addEventListener("blur",ha);var r=Object.assign({},t,{plugins:n}),o=ia(e).reduce((function(e,t){var n=t&&Ta(t,r);return n&&e.push(n),e}),[]);return na(e)?o[0]:o}Aa.defaultProps=ya,Aa.setDefaultProps=function(e){Object.keys(e).forEach((function(t){ya[t]=e[t]}))},Aa.currentInput=ca;Object.assign({},Ti,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}});Aa.setDefaultProps({render:ka});var Ia=Aa;function Ra(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var Na="undefined"!=typeof window&&"undefined"!=typeof document;function Da(e,t){e&&("function"==typeof e&&e(t),{}.hasOwnProperty.call(e,"current")&&(e.current=t))}function Ma(){return Na&&document.createElement("div")}function La(e){var t=[];return e.forEach((function(e){t.find((function(t){return function e(t,n){if(t===n)return!0;if("object"==typeof t&&null!=t&&"object"==typeof n&&null!=n){if(Object.keys(t).length!==Object.keys(n).length)return!1;for(var r in t){if(!n.hasOwnProperty(r))return!1;if(!e(t[r],n[r]))return!1}return!0}return!1}(e,t)}))||t.push(e)})),t}function Fa(e,t){var n,r;return Object.assign({},t,{popperOptions:Object.assign({},e.popperOptions,t.popperOptions,{modifiers:La([].concat((null==(n=e.popperOptions)?void 0:n.modifiers)||[],(null==(r=t.popperOptions)?void 0:r.modifiers)||[]))})})}var za=Na?r.useLayoutEffect:r.useEffect;function Ba(e){var t=(0,r.useRef)();return t.current||(t.current="function"==typeof e?e():e),t.current}function Ua(e,t,n){n.split(/\s+/).forEach((function(n){n&&e.classList[t](n)}))}var Za={name:"className",defaultValue:"",fn:function(e){var t=e.popper.firstElementChild,n=function(){var t;return!!(null==(t=e.props.render)?void 0:t.$$tippy)};function r(){e.props.className&&!n()||Ua(t,"add",e.props.className)}return{onCreate:r,onBeforeUpdate:function(){n()&&Ua(t,"remove",e.props.className)},onAfterUpdate:r}}};function Ha(e){return function(t){var n=t.children,i=t.content,a=t.visible,l=t.singleton,s=t.render,u=t.reference,c=t.disabled,f=void 0!==c&&c,d=t.ignoreAttributes,p=void 0===d||d,h=(t.__source,t.__self,Ra(t,["children","content","visible","singleton","render","reference","disabled","ignoreAttributes","__source","__self"])),m=void 0!==a,v=void 0!==l,g=(0,r.useState)(!1),y=g[0],b=g[1],w=(0,r.useState)({}),x=w[0],E=w[1],_=(0,r.useState)(),S=_[0],O=_[1],k=Ba((function(){return{container:Ma(),renders:1}})),C=Object.assign({ignoreAttributes:p},h,{content:k.container});m&&(C.trigger="manual",C.hideOnClick=!1),v&&(f=!0);var P=C,j=C.plugins||[];s&&(P=Object.assign({},C,{plugins:v?[].concat(j,[{fn:function(){return{onTrigger:function(e,t){var n=l.data.children.find((function(e){return e.instance.reference===t.currentTarget})).content;O(n)}}}}]):j,render:function(){return{popper:k.container}}}));var T=[u].concat(n?[n.type]:[]);return za((function(){var t=u;u&&u.hasOwnProperty("current")&&(t=u.current);var n=e(t||k.ref||Ma(),Object.assign({},P,{plugins:[Za].concat(C.plugins||[])}));return k.instance=n,f&&n.disable(),a&&n.show(),v&&l.hook({instance:n,content:i,props:P}),b(!0),function(){n.destroy(),null==l||l.cleanup(n)}}),T),za((function(){var e;if(1!==k.renders){var t=k.instance;t.setProps(Fa(t.props,P)),null==(e=t.popperInstance)||e.forceUpdate(),f?t.disable():t.enable(),m&&(a?t.show():t.hide()),v&&l.hook({instance:t,content:i,props:P})}else k.renders++})),za((function(){var e;if(s){var t=k.instance;t.setProps({popperOptions:Object.assign({},t.props.popperOptions,{modifiers:[].concat(((null==(e=t.props.popperOptions)?void 0:e.modifiers)||[]).filter((function(e){return"$$tippyReact"!==e.name})),[{name:"$$tippyReact",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t,n=e.state,r=null==(t=n.modifiersData)?void 0:t.hide;x.placement===n.placement&&x.referenceHidden===(null==r?void 0:r.isReferenceHidden)&&x.escaped===(null==r?void 0:r.hasPopperEscaped)||E({placement:n.placement,referenceHidden:null==r?void 0:r.isReferenceHidden,escaped:null==r?void 0:r.hasPopperEscaped}),n.attributes.popper={}}}])})})}}),[x.placement,x.referenceHidden,x.escaped].concat(T)),r.createElement(r.Fragment,null,n?(0,r.cloneElement)(n,{ref:function(e){k.ref=e,Da(n.ref,e)}}):null,y&&(0,o.createPortal)(s?s(function(e){var t={"data-placement":e.placement};return e.referenceHidden&&(t["data-reference-hidden"]=""),e.escaped&&(t["data-escaped"]=""),t}(x),S,k.instance):i,k.container))}}var Wa=function(e,t){return(0,r.forwardRef)((function(n,o){var i=n.children,a=Ra(n,["children"]);return r.createElement(e,Object.assign({},t,a),i?(0,r.cloneElement)(i,{ref:function(e){Da(o,e),Da(i.ref,e)}}):null)}))},Va=Wa(Ha(Ia)),Ga=r.createContext(null);var $a=function(e){e()},Ka=function(){return $a},qa={notify:function(){}};var Ya=function(){function e(e,t){this.store=e,this.parentSub=t,this.unsubscribe=null,this.listeners=qa,this.handleChangeWrapper=this.handleChangeWrapper.bind(this)}var t=e.prototype;return t.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},t.notifyNestedSubs=function(){this.listeners.notify()},t.handleChangeWrapper=function(){this.onStateChange&&this.onStateChange()},t.isSubscribed=function(){return Boolean(this.unsubscribe)},t.trySubscribe=function(){this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.handleChangeWrapper):this.store.subscribe(this.handleChangeWrapper),this.listeners=function(){var e=Ka(),t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,o=n={callback:e,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){r&&null!==t&&(r=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}())},t.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=qa)},e}(),Ja="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect;var Xa=function(e){var t=e.store,n=e.context,o=e.children,i=(0,r.useMemo)((function(){var e=new Ya(t);return e.onStateChange=e.notifyNestedSubs,{store:t,subscription:e}}),[t]),a=(0,r.useMemo)((function(){return t.getState()}),[t]);Ja((function(){var e=i.subscription;return e.trySubscribe(),a!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[i,a]);var l=n||Ga;return r.createElement(l.Provider,{value:i},o)},Qa=n(8679),el=n.n(Qa),tl=n(72973),nl=[],rl=[null,null];function ol(e,t){var n=e[1];return[t.payload,n+1]}function il(e,t,n){Ja((function(){return e.apply(void 0,t)}),n)}function al(e,t,n,r,o,i,a){e.current=r,t.current=o,n.current=!1,i.current&&(i.current=null,a())}function ll(e,t,n,r,o,i,a,l,s,u){if(e){var c=!1,f=null,d=function(){if(!c){var e,n,d=t.getState();try{e=r(d,o.current)}catch(e){n=e,f=e}n||(f=null),e===i.current?a.current||s():(i.current=e,l.current=e,a.current=!0,u({type:"STORE_UPDATED",payload:{error:n}}))}};n.onStateChange=d,n.trySubscribe(),d();return function(){if(c=!0,n.tryUnsubscribe(),n.onStateChange=null,f)throw f}}}var sl=function(){return[null,0]};function ul(e,t){void 0===t&&(t={});var n=t,o=n.getDisplayName,i=void 0===o?function(e){return"ConnectAdvanced("+e+")"}:o,a=n.methodName,l=void 0===a?"connectAdvanced":a,s=n.renderCountProp,u=void 0===s?void 0:s,c=n.shouldHandleStateChanges,f=void 0===c||c,d=n.storeKey,p=void 0===d?"store":d,h=(n.withRef,n.forwardRef),m=void 0!==h&&h,v=n.context,g=void 0===v?Ga:v,y=(0,_o.Z)(n,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"]),b=g;return function(t){var n=t.displayName||t.name||"Component",o=i(n),a=(0,po.Z)({},y,{getDisplayName:i,methodName:l,renderCountProp:u,shouldHandleStateChanges:f,storeKey:p,displayName:o,wrappedComponentName:n,WrappedComponent:t}),s=y.pure;var c=s?r.useMemo:function(e){return e()};function d(n){var o=(0,r.useMemo)((function(){var e=n.reactReduxForwardedRef,t=(0,_o.Z)(n,["reactReduxForwardedRef"]);return[n.context,e,t]}),[n]),i=o[0],l=o[1],s=o[2],u=(0,r.useMemo)((function(){return i&&i.Consumer&&(0,tl.isContextConsumer)(r.createElement(i.Consumer,null))?i:b}),[i,b]),d=(0,r.useContext)(u),p=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch);Boolean(d)&&Boolean(d.store);var h=p?n.store:d.store,m=(0,r.useMemo)((function(){return function(t){return e(t.dispatch,a)}(h)}),[h]),v=(0,r.useMemo)((function(){if(!f)return rl;var e=new Ya(h,p?null:d.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[h,p,d]),g=v[0],y=v[1],w=(0,r.useMemo)((function(){return p?d:(0,po.Z)({},d,{subscription:g})}),[p,d,g]),x=(0,r.useReducer)(ol,nl,sl),E=x[0][0],_=x[1];if(E&&E.error)throw E.error;var S=(0,r.useRef)(),O=(0,r.useRef)(s),k=(0,r.useRef)(),C=(0,r.useRef)(!1),P=c((function(){return k.current&&s===O.current?k.current:m(h.getState(),s)}),[h,E,s]);il(al,[O,S,C,s,P,k,y]),il(ll,[f,h,g,m,O,S,C,k,y,_],[h,g,m]);var j=(0,r.useMemo)((function(){return r.createElement(t,(0,po.Z)({},P,{ref:l}))}),[l,t,P]);return(0,r.useMemo)((function(){return f?r.createElement(u.Provider,{value:w},j):j}),[u,j,w])}var h=s?r.memo(d):d;if(h.WrappedComponent=t,h.displayName=o,m){var v=r.forwardRef((function(e,t){return r.createElement(h,(0,po.Z)({},e,{reactReduxForwardedRef:t}))}));return v.displayName=o,v.WrappedComponent=t,el()(v,t)}return el()(h,t)}}function cl(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function fl(e,t){if(cl(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 o=0;o<n.length;o++)if(!Object.prototype.hasOwnProperty.call(t,n[o])||!cl(e[n[o]],t[n[o]]))return!1;return!0}function dl(e){return function(t,n){var r=e(t,n);function o(){return r}return o.dependsOnOwnProps=!1,o}}function pl(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function hl(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=pl(e);var o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=pl(o),o=r(t,n)),o},r}}var ml=[function(e){return"function"==typeof e?hl(e):void 0},function(e){return e?void 0:dl((function(e){return{dispatch:e}}))},function(e){return e&&"object"==typeof e?dl((function(t){return d(e,t)})):void 0}];var vl=[function(e){return"function"==typeof e?hl(e):void 0},function(e){return e?void 0:dl((function(){return{}}))}];function gl(e,t,n){return(0,po.Z)({},n,e,t)}var yl=[function(e){return"function"==typeof e?function(e){return function(t,n){n.displayName;var r,o=n.pure,i=n.areMergedPropsEqual,a=!1;return function(t,n,l){var s=e(t,n,l);return a?o&&i(s,r)||(r=s):(a=!0,r=s),r}}}(e):void 0},function(e){return e?void 0:function(){return gl}}];function bl(e,t,n,r){return function(o,i){return n(e(o,i),t(r,i),i)}}function wl(e,t,n,r,o){var i,a,l,s,u,c=o.areStatesEqual,f=o.areOwnPropsEqual,d=o.areStatePropsEqual,p=!1;function h(o,p){var h,m,v=!f(p,a),g=!c(o,i);return i=o,a=p,v&&g?(l=e(i,a),t.dependsOnOwnProps&&(s=t(r,a)),u=n(l,s,a)):v?(e.dependsOnOwnProps&&(l=e(i,a)),t.dependsOnOwnProps&&(s=t(r,a)),u=n(l,s,a)):g?(h=e(i,a),m=!d(h,l),l=h,m&&(u=n(l,s,a)),u):u}return function(o,c){return p?h(o,c):(l=e(i=o,a=c),s=t(r,a),u=n(l,s,a),p=!0,u)}}function xl(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,o=t.initMergeProps,i=(0,_o.Z)(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),a=n(e,i),l=r(e,i),s=o(e,i);return(i.pure?wl:bl)(a,l,s,e,i)}function El(e,t,n){for(var r=t.length-1;r>=0;r--){var o=t[r](e);if(o)return o}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function _l(e,t){return e===t}function Sl(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?ul:n,o=t.mapStateToPropsFactories,i=void 0===o?vl:o,a=t.mapDispatchToPropsFactories,l=void 0===a?ml:a,s=t.mergePropsFactories,u=void 0===s?yl:s,c=t.selectorFactory,f=void 0===c?xl:c;return function(e,t,n,o){void 0===o&&(o={});var a=o,s=a.pure,c=void 0===s||s,d=a.areStatesEqual,p=void 0===d?_l:d,h=a.areOwnPropsEqual,m=void 0===h?fl:h,v=a.areStatePropsEqual,g=void 0===v?fl:v,y=a.areMergedPropsEqual,b=void 0===y?fl:y,w=(0,_o.Z)(a,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),x=El(e,i,"mapStateToProps"),E=El(t,l,"mapDispatchToProps"),_=El(n,u,"mergeProps");return r(f,(0,po.Z)({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:x,initMapDispatchToProps:E,initMergeProps:_,pure:c,areStatesEqual:p,areOwnPropsEqual:m,areStatePropsEqual:g,areMergedPropsEqual:b},w))}}var Ol=Sl();function kl(){return(0,r.useContext)(Ga)}var Cl=function(e,t){return e===t};function Pl(e){void 0===e&&(e=Ga);var t=e===Ga?kl:function(){return(0,r.useContext)(e)};return function(e,n){void 0===n&&(n=Cl);var o=t(),i=function(e,t,n,o){var i,a=(0,r.useReducer)((function(e){return e+1}),0)[1],l=(0,r.useMemo)((function(){return new Ya(n,o)}),[n,o]),s=(0,r.useRef)(),u=(0,r.useRef)(),c=(0,r.useRef)(),f=(0,r.useRef)(),d=n.getState();try{if(e!==u.current||d!==c.current||s.current){var p=e(d);i=void 0!==f.current&&t(p,f.current)?f.current:p}else i=f.current}catch(e){throw s.current&&(e.message+="\nThe error may be correlated with this previous error:\n"+s.current.stack+"\n\n"),e}return Ja((function(){u.current=e,c.current=d,f.current=i,s.current=void 0})),Ja((function(){function e(){try{var e=u.current(n.getState());if(t(e,f.current))return;f.current=e}catch(e){s.current=e}a()}return l.onStateChange=e,l.trySubscribe(),e(),function(){return l.tryUnsubscribe()}}),[n,l]),i}(e,n,o.store,o.subscription);return(0,r.useDebugValue)(i),i}}var jl,Tl=Pl();jl=o.unstable_batchedUpdates,$a=jl;var Al=Ol((function(e,t){return{preference:e.settings.show_tooltips,props:t}}))((function(e){var t=e.props,n=e.arrow,o=void 0===n||n,i=e.trigger,a=void 0===i?"manual":i,l=e.timer,s=void 0===l?500:l,u=e.preference;if(!u&&!0!==t.ignorePreference)return t.children;var c=setTimeout((function(){})),f=!1,d=!1;return r.createElement(Va,{content:t.shiftClick?(0,vo.Z)(t.content,t.shiftClick&&" (".concat(at("utils.shift_click"),")")):t.content,hideOnClick:t.hideOnClick,theme:"material",disabled:!u&&!0!==t.ignorePreference||t.disabled,trigger:a,arrow:o,onCreate:function(e){"manual"===a&&(e.reference.addEventListener("mousemove",(function(t){f&&d&&(Math.abs(t.clientX-f)>25||Math.abs(t.clientY-d)>25)&&e.state.isShown&&e.hide(),clearTimeout(c),c=setTimeout((function(){e.show(),f=t.clientX,d=t.clientY}),s)})),e.reference.addEventListener("mouseleave",(function(){clearTimeout(c),e.hide(),f=d=!1})))}},t.children)}));n(59864);Bo.styles;var Il=r.forwardRef((function(e,t){var n=e.children,o=e.classes,i=e.className,a=e.color,l=void 0===a?"default":a,s=e.component,u=void 0===s?"div":s,c=e.disabled,f=void 0!==c&&c,d=e.disableElevation,p=void 0!==d&&d,h=e.disableFocusRipple,m=void 0!==h&&h,v=e.disableRipple,g=void 0!==v&&v,y=e.fullWidth,b=void 0!==y&&y,w=e.orientation,x=void 0===w?"horizontal":w,E=e.size,_=void 0===E?"medium":E,S=e.variant,O=void 0===S?"outlined":S,k=(0,fo.Z)(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","disableRipple","fullWidth","orientation","size","variant"]),C=(0,vo.Z)(o.grouped,o["grouped".concat((0,Fo.Z)(x))],o["grouped".concat((0,Fo.Z)(O))],o["grouped".concat((0,Fo.Z)(O)).concat((0,Fo.Z)(x))],o["grouped".concat((0,Fo.Z)(O)).concat("default"!==l?(0,Fo.Z)(l):"")],f&&o.disabled);return r.createElement(u,(0,po.Z)({role:"group",className:(0,vo.Z)(o.root,i,b&&o.fullWidth,p&&o.disableElevation,"contained"===O&&o.contained,"vertical"===x&&o.vertical),ref:t},k),r.Children.map(n,(function(e){return r.isValidElement(e)?r.cloneElement(e,{className:(0,vo.Z)(C,e.props.className),color:e.props.color||l,disabled:e.props.disabled||f,disableElevation:e.props.disableElevation||p,disableFocusRipple:m,disableRipple:g,fullWidth:b,size:e.props.size||_,variant:e.props.variant||O}):null})))})),Rl=(0,go.Z)((function(e){return{root:{display:"inline-flex",borderRadius:e.shape.borderRadius},contained:{boxShadow:e.shadows[2]},disableElevation:{boxShadow:"none"},disabled:{},fullWidth:{width:"100%"},vertical:{flexDirection:"column"},grouped:{minWidth:40},groupedHorizontal:{"&:not(:first-child)":{borderTopLeftRadius:0,borderBottomLeftRadius:0},"&:not(:last-child)":{borderTopRightRadius:0,borderBottomRightRadius:0}},groupedVertical:{"&:not(:first-child)":{borderTopRightRadius:0,borderTopLeftRadius:0},"&:not(:last-child)":{borderBottomRightRadius:0,borderBottomLeftRadius:0}},groupedText:{},groupedTextHorizontal:{"&:not(:last-child)":{borderRight:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)")}},groupedTextVertical:{"&:not(:last-child)":{borderBottom:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)")}},groupedTextPrimary:{"&:not(:last-child)":{borderColor:(0,yo.U1)(e.palette.primary.main,.5)}},groupedTextSecondary:{"&:not(:last-child)":{borderColor:(0,yo.U1)(e.palette.secondary.main,.5)}},groupedOutlined:{},groupedOutlinedHorizontal:{"&:not(:first-child)":{marginLeft:-1},"&:not(:last-child)":{borderRightColor:"transparent"}},groupedOutlinedVertical:{"&:not(:first-child)":{marginTop:-1},"&:not(:last-child)":{borderBottomColor:"transparent"}},groupedOutlinedPrimary:{"&:hover":{borderColor:e.palette.primary.main}},groupedOutlinedSecondary:{"&:hover":{borderColor:e.palette.secondary.main}},groupedContained:{boxShadow:"none"},groupedContainedHorizontal:{"&:not(:last-child)":{borderRight:"1px solid ".concat(e.palette.grey[400]),"&$disabled":{borderRight:"1px solid ".concat(e.palette.action.disabled)}}},groupedContainedVertical:{"&:not(:last-child)":{borderBottom:"1px solid ".concat(e.palette.grey[400]),"&$disabled":{borderBottom:"1px solid ".concat(e.palette.action.disabled)}}},groupedContainedPrimary:{"&:not(:last-child)":{borderColor:e.palette.primary.dark}},groupedContainedSecondary:{"&:not(:last-child)":{borderColor:e.palette.secondary.dark}}}}),{name:"MuiButtonGroup"})(Il);function Nl(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Dl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Dl(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Dl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ml(){var e=Nl((0,r.useState)("desktop"),2),t=e[0],n=e[1];function o(e){e!==t&&(n(e),app.setDevicePreview(e))}return r.createElement("div",{className:"device-preview"},r.createElement(Rl,{color:"primary"},r.createElement(Al,{content:at("bar.preview.desktop")},r.createElement(Bo,{onClick:function(){return o("desktop")},variant:"desktop"===t?"contained":null,color:"primary","data-testid":"desktop"},r.createElement("i",{className:"fas fa-desktop"}))),r.createElement(Al,{content:at("bar.preview.tablet")},r.createElement(Bo,{onClick:function(){return o("tablet")},variant:"tablet"===t?"contained":null,color:"primary","data-testid":"tablet"},r.createElement("i",{className:"fas fa-tablet-alt"}))),r.createElement(Al,{content:at("bar.preview.mobile")},r.createElement(Bo,{onClick:function(){return o("mobile")},variant:"mobile"===t?"contained":null,color:"primary","data-testid":"mobile"},r.createElement("i",{className:"fas fa-mobile-alt"})))))}function Ll(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Fl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Fl(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Fl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var zl=Ol((function(e){return{hasChanges:e.misc.hasChanges}}))((function(e){var t=e.hasChanges,n=Ll((0,r.useState)(!1),2),o=n[0],i=n[1],a=Ll((0,r.useState)(!1),2),l=a[0],s=a[1];return r.createElement(Bo,{onClick:function(){return i(!0),void ft("/publish",{method:"POST",data:{nonce:buttonizer_admin.nonce}}).then((function(e){var t=e.status,n=e.message;if(i(!1),"error"===t)return app.loader.hide(),void app.error({message:n});app.setHasChanges(!1),s(!0),setTimeout((function(){s(!1)}),3e3)})).catch((function(e){e.code,i(!1)}))},disabled:o||!1===t,variant:"contained",color:"primary","data-testid":"publish-button",className:"MuiButton-Publish"},at(o?"common.publishing":l?"common.published":"common.publish"))})),Bl=n(159),Ul=n(93869),Zl=n(30626),Hl=n(34236);var Wl="undefined"!=typeof window?r.useLayoutEffect:r.useEffect;var Vl=r.forwardRef((function(e,t){var n=e.children,i=e.container,a=e.disablePortal,l=void 0!==a&&a,s=e.onRendered,u=r.useState(null),c=u[0],f=u[1],d=(0,bo.Z)(r.isValidElement(n)?n.ref:null,t);return Wl((function(){l||f(function(e){return e="function"==typeof e?e():e,o.findDOMNode(e)}(i)||document.body)}),[i,l]),Wl((function(){if(c&&!l)return(0,Hl.Z)(t,c),function(){(0,Hl.Z)(t,null)}}),[t,c,l]),Wl((function(){s&&(c||l)&&s()}),[s,c,l]),l?r.isValidElement(n)?r.cloneElement(n,{ref:d}):n:c?o.createPortal(n,c):c})),Gl=n(82568),$l=n(92781);function Kl(){var e=document.createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.top="-9999px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}var ql=n(80713);function Yl(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Jl(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function Xl(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=arguments.length>4?arguments[4]:void 0,i=[t,n].concat((0,Eo.Z)(r)),a=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(function(e){1===e.nodeType&&-1===i.indexOf(e)&&-1===a.indexOf(e.tagName)&&Yl(e,o)}))}function Ql(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function es(e,t){var n,r=[],o=[],i=e.container;if(!t.disableScrollLock){if(function(e){var t=(0,Zl.Z)(e);return t.body===e?(0,ql.Z)(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(i)){var a=Kl();r.push({value:i.style.paddingRight,key:"padding-right",el:i}),i.style["padding-right"]="".concat(Jl(i)+a,"px"),n=(0,Zl.Z)(i).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){o.push(e.style.paddingRight),e.style.paddingRight="".concat(Jl(e)+a,"px")}))}var l=i.parentElement,s="HTML"===l.nodeName&&"scroll"===window.getComputedStyle(l)["overflow-y"]?l:i;r.push({value:s.style.overflow,key:"overflow",el:s}),s.style.overflow="hidden"}return function(){n&&[].forEach.call(n,(function(e,t){o[t]?e.style.paddingRight=o[t]:e.style.removeProperty("padding-right")})),r.forEach((function(e){var t=e.value,n=e.el,r=e.key;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}var ts=function(){function e(){W(this,e),this.modals=[],this.containers=[]}return(0,V.Z)(e,[{key:"add",value:function(e,t){var n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&Yl(e.modalRef,!1);var r=function(e){var t=[];return[].forEach.call(e.children,(function(e){e.getAttribute&&"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);Xl(t,e.mountNode,e.modalRef,r,!0);var o=Ql(this.containers,(function(e){return e.container===t}));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblingNodes:r}),n)}},{key:"mount",value:function(e,t){var n=Ql(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=es(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=Ql(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(t,1),0===r.modals.length)r.restore&&r.restore(),e.modalRef&&Yl(e.modalRef,!0),Xl(r.container,e.mountNode,e.modalRef,r.hiddenSiblingNodes,!1),this.containers.splice(n,1);else{var o=r.modals[r.modals.length-1];o.modalRef&&Yl(o.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();var ns=function(e){var t=e.children,n=e.disableAutoFocus,i=void 0!==n&&n,a=e.disableEnforceFocus,l=void 0!==a&&a,s=e.disableRestoreFocus,u=void 0!==s&&s,c=e.getDoc,f=e.isEnabled,d=e.open,p=r.useRef(),h=r.useRef(null),m=r.useRef(null),v=r.useRef(),g=r.useRef(null),y=r.useCallback((function(e){g.current=o.findDOMNode(e)}),[]),b=(0,bo.Z)(t.ref,y),w=r.useRef();return r.useEffect((function(){w.current=d}),[d]),!w.current&&d&&"undefined"!=typeof window&&(v.current=c().activeElement),r.useEffect((function(){if(d){var e=(0,Zl.Z)(g.current);i||!g.current||g.current.contains(e.activeElement)||(g.current.hasAttribute("tabIndex")||g.current.setAttribute("tabIndex",-1),g.current.focus());var t=function(){null!==g.current&&(e.hasFocus()&&!l&&f()&&!p.current?g.current&&!g.current.contains(e.activeElement)&&g.current.focus():p.current=!1)},n=function(t){!l&&f()&&9===t.keyCode&&e.activeElement===g.current&&(p.current=!0,t.shiftKey?m.current.focus():h.current.focus())};e.addEventListener("focus",t,!0),e.addEventListener("keydown",n,!0);var r=setInterval((function(){t()}),50);return function(){clearInterval(r),e.removeEventListener("focus",t,!0),e.removeEventListener("keydown",n,!0),u||(v.current&&v.current.focus&&v.current.focus(),v.current=null)}}}),[i,l,u,f,d]),r.createElement(r.Fragment,null,r.createElement("div",{tabIndex:0,ref:h,"data-test":"sentinelStart"}),r.cloneElement(t,{ref:b}),r.createElement("div",{tabIndex:0,ref:m,"data-test":"sentinelEnd"}))},rs={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},os=r.forwardRef((function(e,t){var n=e.invisible,o=void 0!==n&&n,i=e.open,a=(0,fo.Z)(e,["invisible","open"]);return i?r.createElement("div",(0,po.Z)({"aria-hidden":!0,ref:t},a,{style:(0,po.Z)({},rs.root,o?rs.invisible:{},a.style)})):null}));var is=new ts,as=r.forwardRef((function(e,t){var n=(0,Bl.Z)(),i=(0,Ul.Z)({name:"MuiModal",props:(0,po.Z)({},e),theme:n}),a=i.BackdropComponent,l=void 0===a?os:a,s=i.BackdropProps,u=i.children,c=i.closeAfterTransition,f=void 0!==c&&c,d=i.container,p=i.disableAutoFocus,h=void 0!==p&&p,m=i.disableBackdropClick,v=void 0!==m&&m,g=i.disableEnforceFocus,y=void 0!==g&&g,b=i.disableEscapeKeyDown,w=void 0!==b&&b,x=i.disablePortal,E=void 0!==x&&x,_=i.disableRestoreFocus,S=void 0!==_&&_,O=i.disableScrollLock,k=void 0!==O&&O,C=i.hideBackdrop,P=void 0!==C&&C,j=i.keepMounted,T=void 0!==j&&j,A=i.manager,I=void 0===A?is:A,R=i.onBackdropClick,N=i.onClose,D=i.onEscapeKeyDown,M=i.onRendered,L=i.open,F=(0,fo.Z)(i,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),z=r.useState(!0),B=z[0],U=z[1],Z=r.useRef({}),H=r.useRef(null),W=r.useRef(null),V=(0,bo.Z)(W,t),G=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(i),$=function(){return(0,Zl.Z)(H.current)},K=function(){return Z.current.modalRef=W.current,Z.current.mountNode=H.current,Z.current},q=function(){I.mount(K(),{disableScrollLock:k}),W.current.scrollTop=0},Y=(0,wo.Z)((function(){var e=function(e){return e="function"==typeof e?e():e,o.findDOMNode(e)}(d)||$().body;I.add(K(),e),W.current&&q()})),J=r.useCallback((function(){return I.isTopModal(K())}),[I]),X=(0,wo.Z)((function(e){H.current=e,e&&(M&&M(),L&&J()?q():Yl(W.current,!0))})),Q=r.useCallback((function(){I.remove(K())}),[I]);if(r.useEffect((function(){return function(){Q()}}),[Q]),r.useEffect((function(){L?Y():G&&f||Q()}),[L,Q,G,f,Y]),!T&&!L&&(!G||B))return null;var ee=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(n||{zIndex:$l.Z}),te={};return void 0===u.props.tabIndex&&(te.tabIndex=u.props.tabIndex||"-1"),G&&(te.onEnter=(0,Gl.Z)((function(){U(!1)}),u.props.onEnter),te.onExited=(0,Gl.Z)((function(){U(!0),f&&Q()}),u.props.onExited)),r.createElement(Vl,{ref:X,container:d,disablePortal:E},r.createElement("div",(0,po.Z)({ref:V,onKeyDown:function(e){"Escape"===e.key&&J()&&(D&&D(e),w||(e.stopPropagation(),N&&N(e,"escapeKeyDown")))},role:"presentation"},F,{style:(0,po.Z)({},ee.root,!L&&B?ee.hidden:{},F.style)}),P?null:r.createElement(l,(0,po.Z)({open:L,onClick:function(e){e.target===e.currentTarget&&(R&&R(e),!v&&N&&N(e,"backdropClick"))}},s)),r.createElement(ns,{disableEnforceFocus:y,disableAutoFocus:h,disableRestoreFocus:S,getDoc:$,isEnabled:J,open:L},r.cloneElement(u,te))))})),ls=n(28481),ss=!1,us=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o="exited",r.appearStatus="entering"):o="entered":o=t.unmountOnExit||t.mountOnEnter?"unmounted":"exited",r.state={status:o},r.nextCallback=null,r}(0,So.Z)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&"unmounted"===t.status?{status:"exited"}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?"entering"!==n&&"entered"!==n&&(t="entering"):"entering"!==n&&"entered"!==n||(t="exiting")}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),"entering"===t?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&"exited"===this.state.status&&this.setState({status:"unmounted"})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[o.findDOMNode(this),r],a=i[0],l=i[1],s=this.getTimeouts(),u=r?s.appear:s.enter;!e&&!n||ss?this.safeSetState({status:"entered"},(function(){t.props.onEntered(a)})):(this.props.onEnter(a,l),this.safeSetState({status:"entering"},(function(){t.props.onEntering(a,l),t.onTransitionEnd(u,(function(){t.safeSetState({status:"entered"},(function(){t.props.onEntered(a,l)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:o.findDOMNode(this);t&&!ss?(this.props.onExit(r),this.safeSetState({status:"exiting"},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:"exited"},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:"exited"},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:o.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=i[0],l=i[1];this.props.addEndListener(a,l)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if("unmounted"===e)return null;var t=this.props,n=t.children,o=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,_o.Z)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return r.createElement(Oo.Provider,{value:null},"function"==typeof n?n(e,o):r.cloneElement(r.Children.only(n),o))},t}(r.Component);function cs(){}us.contextType=Oo,us.propTypes={},us.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:cs,onEntering:cs,onEntered:cs,onExit:cs,onExiting:cs,onExited:cs},us.UNMOUNTED="unmounted",us.EXITED="exited",us.ENTERING="entering",us.ENTERED="entered",us.EXITING="exiting";var fs=us,ds=n(43366),ps=n(99700);function hs(){return(0,Bl.Z)()||ps.Z}var ms=function(e){return e.scrollTop};function vs(e,t){var n=e.timeout,r=e.style,o=void 0===r?{}:r;return{duration:o.transitionDuration||"number"==typeof n?n:n[t.mode]||0,delay:o.transitionDelay}}var gs={entering:{opacity:1},entered:{opacity:1}},ys={enter:ds.x9.enteringScreen,exit:ds.x9.leavingScreen},bs=r.forwardRef((function(e,t){var n=e.children,o=e.disableStrictModeCompat,i=void 0!==o&&o,a=e.in,l=e.onEnter,s=e.onEntered,u=e.onEntering,c=e.onExit,f=e.onExited,d=e.onExiting,p=e.style,h=e.TransitionComponent,m=void 0===h?fs:h,v=e.timeout,g=void 0===v?ys:v,y=(0,fo.Z)(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","TransitionComponent","timeout"]),b=hs(),w=b.unstable_strictMode&&!i,x=r.useRef(null),E=(0,bo.Z)(n.ref,t),_=(0,bo.Z)(w?x:void 0,E),S=function(e){return function(t,n){if(e){var r=w?[x.current,t]:[t,n],o=(0,ls.Z)(r,2),i=o[0],a=o[1];void 0===a?e(i):e(i,a)}}},O=S(u),k=S((function(e,t){ms(e);var n=vs({style:p,timeout:g},{mode:"enter"});e.style.webkitTransition=b.transitions.create("opacity",n),e.style.transition=b.transitions.create("opacity",n),l&&l(e,t)})),C=S(s),P=S(d),j=S((function(e){var t=vs({style:p,timeout:g},{mode:"exit"});e.style.webkitTransition=b.transitions.create("opacity",t),e.style.transition=b.transitions.create("opacity",t),c&&c(e)})),T=S(f);return r.createElement(m,(0,po.Z)({appear:!0,in:a,nodeRef:w?x:void 0,onEnter:k,onEntered:C,onEntering:O,onExit:j,onExited:T,onExiting:P,timeout:g},y),(function(e,t){return r.cloneElement(n,(0,po.Z)({style:(0,po.Z)({opacity:0,visibility:"exited"!==e||a?void 0:"hidden"},gs[e],p,n.props.style),ref:_},t))}))})),ws=r.forwardRef((function(e,t){var n=e.children,o=e.classes,i=e.className,a=e.invisible,l=void 0!==a&&a,s=e.open,u=e.transitionDuration,c=e.TransitionComponent,f=void 0===c?bs:c,d=(0,fo.Z)(e,["children","classes","className","invisible","open","transitionDuration","TransitionComponent"]);return r.createElement(f,(0,po.Z)({in:s,timeout:u},d),r.createElement("div",{className:(0,vo.Z)(o.root,i,l&&o.invisible),"aria-hidden":!0,ref:t},n))})),xs=(0,go.Z)({root:{zIndex:-1,position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},{name:"MuiBackdrop"})(ws),Es=r.forwardRef((function(e,t){var n=e.classes,o=e.className,i=e.component,a=void 0===i?"div":i,l=e.square,s=void 0!==l&&l,u=e.elevation,c=void 0===u?1:u,f=e.variant,d=void 0===f?"elevation":f,p=(0,fo.Z)(e,["classes","className","component","square","elevation","variant"]);return r.createElement(a,(0,po.Z)({className:(0,vo.Z)(n.root,o,"outlined"===d?n.outlined:n["elevation".concat(c)],!s&&n.rounded),ref:t},p))})),_s=(0,go.Z)((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),(0,po.Z)({root:{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,transition:e.transitions.create("box-shadow")},rounded:{borderRadius:e.shape.borderRadius},outlined:{border:"1px solid ".concat(e.palette.divider)}},t)}),{name:"MuiPaper"})(Es),Ss={enter:ds.x9.enteringScreen,exit:ds.x9.leavingScreen},Os=r.forwardRef((function(e,t){var n=e.BackdropProps,o=e.children,i=e.classes,a=e.className,l=e.disableBackdropClick,s=void 0!==l&&l,u=e.disableEscapeKeyDown,c=void 0!==u&&u,f=e.fullScreen,d=void 0!==f&&f,p=e.fullWidth,h=void 0!==p&&p,m=e.maxWidth,v=void 0===m?"sm":m,g=e.onBackdropClick,y=e.onClose,b=e.onEnter,w=e.onEntered,x=e.onEntering,E=e.onEscapeKeyDown,_=e.onExit,S=e.onExited,O=e.onExiting,k=e.open,C=e.PaperComponent,P=void 0===C?_s:C,j=e.PaperProps,T=void 0===j?{}:j,A=e.scroll,I=void 0===A?"paper":A,R=e.TransitionComponent,N=void 0===R?bs:R,D=e.transitionDuration,M=void 0===D?Ss:D,L=e.TransitionProps,F=e["aria-describedby"],z=e["aria-labelledby"],B=(0,fo.Z)(e,["BackdropProps","children","classes","className","disableBackdropClick","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","onEnter","onEntered","onEntering","onEscapeKeyDown","onExit","onExited","onExiting","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps","aria-describedby","aria-labelledby"]),U=r.useRef();return r.createElement(as,(0,po.Z)({className:(0,vo.Z)(i.root,a),BackdropComponent:xs,BackdropProps:(0,po.Z)({transitionDuration:M},n),closeAfterTransition:!0,disableBackdropClick:s,disableEscapeKeyDown:c,onEscapeKeyDown:E,onClose:y,open:k,ref:t},B),r.createElement(N,(0,po.Z)({appear:!0,in:k,timeout:M,onEnter:b,onEntering:x,onEntered:w,onExit:_,onExiting:O,onExited:S,role:"none presentation"},L),r.createElement("div",{className:(0,vo.Z)(i.container,i["scroll".concat((0,Fo.Z)(I))]),onMouseUp:function(e){e.target===e.currentTarget&&e.target===U.current&&(U.current=null,g&&g(e),!s&&y&&y(e,"backdropClick"))},onMouseDown:function(e){U.current=e.target}},r.createElement(P,(0,po.Z)({elevation:24,role:"dialog","aria-describedby":F,"aria-labelledby":z},T,{className:(0,vo.Z)(i.paper,i["paperScroll".concat((0,Fo.Z)(I))],i["paperWidth".concat((0,Fo.Z)(String(v)))],T.className,d&&i.paperFullScreen,h&&i.paperFullWidth)}),o))))})),ks=(0,go.Z)((function(e){return{root:{"@media print":{position:"absolute !important"}},scrollPaper:{display:"flex",justifyContent:"center",alignItems:"center"},scrollBody:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}},container:{height:"100%","@media print":{height:"auto"},outline:0},paper:{margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},paperScrollPaper:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},paperScrollBody:{display:"inline-block",verticalAlign:"middle",textAlign:"left"},paperWidthFalse:{maxWidth:"calc(100% - 64px)"},paperWidthXs:{maxWidth:Math.max(e.breakpoints.values.xs,444),"&$paperScrollBody":(0,J.Z)({},e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64),{maxWidth:"calc(100% - 64px)"})},paperWidthSm:{maxWidth:e.breakpoints.values.sm,"&$paperScrollBody":(0,J.Z)({},e.breakpoints.down(e.breakpoints.values.sm+64),{maxWidth:"calc(100% - 64px)"})},paperWidthMd:{maxWidth:e.breakpoints.values.md,"&$paperScrollBody":(0,J.Z)({},e.breakpoints.down(e.breakpoints.values.md+64),{maxWidth:"calc(100% - 64px)"})},paperWidthLg:{maxWidth:e.breakpoints.values.lg,"&$paperScrollBody":(0,J.Z)({},e.breakpoints.down(e.breakpoints.values.lg+64),{maxWidth:"calc(100% - 64px)"})},paperWidthXl:{maxWidth:e.breakpoints.values.xl,"&$paperScrollBody":(0,J.Z)({},e.breakpoints.down(e.breakpoints.values.xl+64),{maxWidth:"calc(100% - 64px)"})},paperFullWidth:{width:"calc(100% - 64px)"},paperFullScreen:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,"&$paperScrollBody":{margin:0,maxWidth:"100%"}}}}),{name:"MuiDialog"})(Os),Cs={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},Ps=r.forwardRef((function(e,t){var n=e.align,o=void 0===n?"inherit":n,i=e.classes,a=e.className,l=e.color,s=void 0===l?"initial":l,u=e.component,c=e.display,f=void 0===c?"initial":c,d=e.gutterBottom,p=void 0!==d&&d,h=e.noWrap,m=void 0!==h&&h,v=e.paragraph,g=void 0!==v&&v,y=e.variant,b=void 0===y?"body1":y,w=e.variantMapping,x=void 0===w?Cs:w,E=(0,fo.Z)(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),_=u||(g?"p":x[b]||Cs[b])||"span";return r.createElement(_,(0,po.Z)({className:(0,vo.Z)(i.root,a,"inherit"!==b&&i[b],"initial"!==s&&i["color".concat((0,Fo.Z)(s))],m&&i.noWrap,p&&i.gutterBottom,g&&i.paragraph,"inherit"!==o&&i["align".concat((0,Fo.Z)(o))],"initial"!==f&&i["display".concat((0,Fo.Z)(f))]),ref:t},E))})),js=(0,go.Z)((function(e){return{root:{margin:0},body2:e.typography.body2,body1:e.typography.body1,caption:e.typography.caption,button:e.typography.button,h1:e.typography.h1,h2:e.typography.h2,h3:e.typography.h3,h4:e.typography.h4,h5:e.typography.h5,h6:e.typography.h6,subtitle1:e.typography.subtitle1,subtitle2:e.typography.subtitle2,overline:e.typography.overline,srOnly:{position:"absolute",height:1,width:1,overflow:"hidden"},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right"},alignJustify:{textAlign:"justify"},noWrap:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},gutterBottom:{marginBottom:"0.35em"},paragraph:{marginBottom:16},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorTextPrimary:{color:e.palette.text.primary},colorTextSecondary:{color:e.palette.text.secondary},colorError:{color:e.palette.error.main},displayInline:{display:"inline"},displayBlock:{display:"block"}}}),{name:"MuiTypography"})(Ps),Ts=r.forwardRef((function(e,t){var n=e.children,o=e.classes,i=e.className,a=e.disableTypography,l=void 0!==a&&a,s=(0,fo.Z)(e,["children","classes","className","disableTypography"]);return r.createElement("div",(0,po.Z)({className:(0,vo.Z)(o.root,i),ref:t},s),l?n:r.createElement(js,{component:"h2",variant:"h6"},n))})),As=(0,go.Z)({root:{margin:0,padding:"16px 24px",flex:"0 0 auto"}},{name:"MuiDialogTitle"})(Ts),Is=r.forwardRef((function(e,t){var n=e.classes,o=e.className,i=e.dividers,a=void 0!==i&&i,l=(0,fo.Z)(e,["classes","className","dividers"]);return r.createElement("div",(0,po.Z)({className:(0,vo.Z)(n.root,o,a&&n.dividers),ref:t},l))})),Rs=(0,go.Z)((function(e){return{root:{flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"8px 24px","&:first-child":{paddingTop:20}},dividers:{padding:"16px 24px",borderTop:"1px solid ".concat(e.palette.divider),borderBottom:"1px solid ".concat(e.palette.divider)}}}),{name:"MuiDialogContent"})(Is),Ns=r.forwardRef((function(e,t){return r.createElement(js,(0,po.Z)({component:"p",variant:"body1",color:"textSecondary",ref:t},e))})),Ds=(0,go.Z)({root:{marginBottom:12}},{name:"MuiDialogContentText"})(Ns),Ms=r.forwardRef((function(e,t){var n=e.disableSpacing,o=void 0!==n&&n,i=e.classes,a=e.className,l=(0,fo.Z)(e,["disableSpacing","classes","className"]);return r.createElement("div",(0,po.Z)({className:(0,vo.Z)(i.root,a,!o&&i.spacing),ref:t},l))})),Ls=(0,go.Z)({root:{display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},spacing:{"& > :not(:first-child)":{marginLeft:8}}},{name:"MuiDialogActions"})(Ms);function Fs(){return(Fs=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function zs(e){var t=e.onClose,n=e.icon,o=void 0===n?null:n,i=e.open,a=void 0!==i&&i,l=e.title,s=void 0===l?"Confirm":l,u=e.children,c=void 0===u?null:u,f=e.buttons,d=void 0===f?null:f,p=e.maxWidth,h=void 0===p?"xs":p,m=e.fullWidth,v=void 0===m||m,g=e.className,y=e.testId,b=void 0===y?null:y,w=[{value:"cancel",text:at("modal.cancel")},{value:"confirm",text:at("common.confirm")}],x=function(e){t(e)};return d||(d=w),r.createElement(ks,{open:a,onClose:x,maxWidth:h,fullWidth:v,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",className:g,"data-testid":b?"dialog:".concat(b):null},r.createElement(As,{id:"alert-dialog-title"},o,s),r.createElement(Rs,null,r.createElement(Ds,{id:"alert-dialog-description",component:"div"},c)),r.createElement(Ls,null,d.map((function(e,t){return r.createElement(Bo,Fs({onClick:function(){return x(e.value)},color:"primary",key:t,variant:e.variant,"data-testid":b?"dialog:".concat(b,":button:").concat(e.value):null},e.props),e.text)}))))}var Bs=r.forwardRef((function(e,t){var n=e.edge,o=void 0!==n&&n,i=e.children,a=e.classes,l=e.className,s=e.color,u=void 0===s?"default":s,c=e.disabled,f=void 0!==c&&c,d=e.disableFocusRipple,p=void 0!==d&&d,h=e.size,m=void 0===h?"medium":h,v=(0,fo.Z)(e,["edge","children","classes","className","color","disabled","disableFocusRipple","size"]);return r.createElement(Lo,(0,po.Z)({className:(0,vo.Z)(a.root,l,"default"!==u&&a["color".concat((0,Fo.Z)(u))],f&&a.disabled,"small"===m&&a["size".concat((0,Fo.Z)(m))],{start:a.edgeStart,end:a.edgeEnd}[o]),centerRipple:!0,focusRipple:!p,disabled:f,ref:t},v),r.createElement("span",{className:a.label},i))})),Us=(0,go.Z)((function(e){return{root:{textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:12,borderRadius:"50%",overflow:"visible",color:e.palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{backgroundColor:(0,yo.U1)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{backgroundColor:"transparent",color:e.palette.action.disabled}},edgeStart:{marginLeft:-12,"$sizeSmall&":{marginLeft:-3}},edgeEnd:{marginRight:-12,"$sizeSmall&":{marginRight:-3}},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:(0,yo.U1)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},colorSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:(0,yo.U1)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},disabled:{},sizeSmall:{padding:3,fontSize:e.typography.pxToRem(18)},label:{width:"100%",display:"flex",alignItems:"inherit",justifyContent:"inherit"}}}),{name:"MuiIconButton"})(Bs);function Zs(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Hs(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Hs(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Hs(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Ws=Ol((function(e){return{hasChanges:e.misc.hasChanges}}))((function(e){var t=e.hasChanges,n=Zs((0,r.useState)(!1),2),o=n[0],i=n[1],a=Zs((0,r.useState)(!1),2),l=a[0],s=a[1];return r.createElement(r.Fragment,null,r.createElement(Al,{content:at("revert.revert_changes")},r.createElement(Us,{onClick:function(){return i(!0)},className:"revert-button",color:"secondary",disabled:!t||l,"data-testid":"revert-button"},r.createElement("i",{className:(0,vo.Z)("fas fa-history",l&&"spin")}))),r.createElement(zs,{open:o,title:at("revert.revert_changes"),buttons:[{text:at("modal.cancel"),value:"close"},{text:at("revert.revert_changes"),value:"revert"}],onClose:function(e){i(!1),"revert"===e&&(s(!0),ft("/revert",{method:"POST",data:{nonce:buttonizer_admin.nonce}}).then((function(e){var t=e.status,n=e.message;if("error"===t)return app.loader.hide(),void app.error({message:n});window.location.reload()})))},testId:"revert-dialog"},r.createElement("p",null,at("revert.modal.intro")),r.createElement("p",null,at("revert.modal.action"))))})),Vs=(n(57327),n(89554),n(66992),n(19601),n(41539),n(91058),n(78783),n(4129),n(33948),n(93096)),Gs=n.n(Vs),$s=n(91296),Ks=n.n($s),qs=n(20773),Ys=n.n(qs),Js=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}()}(),Xs="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,Qs=void 0!==n.g&&n.g.Math===Math?n.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),eu="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(Qs):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var tu=["top","right","bottom","left","width","height","size","weight"],nu="undefined"!=typeof MutationObserver,ru=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,o=0;function i(){n&&(n=!1,e()),r&&l()}function a(){eu(i)}function l(){var e=Date.now();if(n){if(e-o<2)return;r=!0}else n=!0,r=!1,setTimeout(a,t);o=e}return l}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){Xs&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),nu?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){Xs&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;tu.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),ou=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},iu=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||Qs},au=du(0,0,0,0);function lu(e){return parseFloat(e)||0}function su(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+lu(e["border-"+n+"-width"])}),0)}function uu(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return au;var r=iu(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=e["padding-"+o];t[o]=lu(i)}return t}(r),i=o.left+o.right,a=o.top+o.bottom,l=lu(r.width),s=lu(r.height);if("border-box"===r.boxSizing&&(Math.round(l+i)!==t&&(l-=su(r,"left","right")+i),Math.round(s+a)!==n&&(s-=su(r,"top","bottom")+a)),!function(e){return e===iu(e).document.documentElement}(e)){var u=Math.round(l+i)-t,c=Math.round(s+a)-n;1!==Math.abs(u)&&(l-=u),1!==Math.abs(c)&&(s-=c)}return du(o.left,o.top,l,s)}var cu="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof iu(e).SVGGraphicsElement}:function(e){return e instanceof iu(e).SVGElement&&"function"==typeof e.getBBox};function fu(e){return Xs?cu(e)?function(e){var t=e.getBBox();return du(0,0,t.width,t.height)}(e):uu(e):au}function du(e,t,n,r){return{x:e,y:t,width:n,height:r}}var pu=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=du(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=fu(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),hu=function(e,t){var n=function(e){var t=e.x,n=e.y,r=e.width,o=e.height,i="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,a=Object.create(i.prototype);return ou(a,{x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:o+n,left:t}),a}(t);ou(this,{target:e,contentRect:n})},mu=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new Js,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof iu(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new pu(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof iu(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new hu(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),vu="undefined"!=typeof WeakMap?new WeakMap:new Js,gu=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=ru.getInstance(),r=new mu(t,n,this);vu.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){gu.prototype[e]=function(){var t;return(t=vu.get(this))[e].apply(t,arguments)}}));var yu=void 0!==Qs.ResizeObserver?Qs.ResizeObserver:gu,bu=n(31807),wu=n.n(bu),xu=(n(85827),n(68309),n(74916),n(4723),n(15306),null),Eu=null;function _u(){if(null===xu){if("undefined"==typeof document)return xu=0;var e=document.body,t=document.createElement("div");t.classList.add("simplebar-hide-scrollbar"),e.appendChild(t);var n=t.getBoundingClientRect().right;e.removeChild(t),xu=n}return xu}function Su(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window}function Ou(e){return e&&e.ownerDocument?e.ownerDocument:document}wu()&&window.addEventListener("resize",(function(){Eu!==window.devicePixelRatio&&(Eu=window.devicePixelRatio,xu=null)}));var ku=function(){function e(t,n){var r=this;this.onScroll=function(){var e=Su(r.el);r.scrollXTicking||(e.requestAnimationFrame(r.scrollX),r.scrollXTicking=!0),r.scrollYTicking||(e.requestAnimationFrame(r.scrollY),r.scrollYTicking=!0)},this.scrollX=function(){r.axis.x.isOverflowing&&(r.showScrollbar("x"),r.positionScrollbar("x")),r.scrollXTicking=!1},this.scrollY=function(){r.axis.y.isOverflowing&&(r.showScrollbar("y"),r.positionScrollbar("y")),r.scrollYTicking=!1},this.onMouseEnter=function(){r.showScrollbar("x"),r.showScrollbar("y")},this.onMouseMove=function(e){r.mouseX=e.clientX,r.mouseY=e.clientY,(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseMoveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseMoveForAxis("y")},this.onMouseLeave=function(){r.onMouseMove.cancel(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseLeaveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseLeaveForAxis("y"),r.mouseX=-1,r.mouseY=-1},this.onWindowResize=function(){r.scrollbarWidth=r.getScrollbarWidth(),r.hideNativeScrollbar()},this.hideScrollbars=function(){r.axis.x.track.rect=r.axis.x.track.el.getBoundingClientRect(),r.axis.y.track.rect=r.axis.y.track.el.getBoundingClientRect(),r.isWithinBounds(r.axis.y.track.rect)||(r.axis.y.scrollbar.el.classList.remove(r.classNames.visible),r.axis.y.isVisible=!1),r.isWithinBounds(r.axis.x.track.rect)||(r.axis.x.scrollbar.el.classList.remove(r.classNames.visible),r.axis.x.isVisible=!1)},this.onPointerEvent=function(e){var t,n;r.axis.x.track.rect=r.axis.x.track.el.getBoundingClientRect(),r.axis.y.track.rect=r.axis.y.track.el.getBoundingClientRect(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&(t=r.isWithinBounds(r.axis.x.track.rect)),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&(n=r.isWithinBounds(r.axis.y.track.rect)),(t||n)&&(e.preventDefault(),e.stopPropagation(),"mousedown"===e.type&&(t&&(r.axis.x.scrollbar.rect=r.axis.x.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.x.scrollbar.rect)?r.onDragStart(e,"x"):r.onTrackClick(e,"x")),n&&(r.axis.y.scrollbar.rect=r.axis.y.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.y.scrollbar.rect)?r.onDragStart(e,"y"):r.onTrackClick(e,"y"))))},this.drag=function(t){var n=r.axis[r.draggedAxis].track,o=n.rect[r.axis[r.draggedAxis].sizeAttr],i=r.axis[r.draggedAxis].scrollbar,a=r.contentWrapperEl[r.axis[r.draggedAxis].scrollSizeAttr],l=parseInt(r.elStyles[r.axis[r.draggedAxis].sizeAttr],10);t.preventDefault(),t.stopPropagation();var s=(("y"===r.draggedAxis?t.pageY:t.pageX)-n.rect[r.axis[r.draggedAxis].offsetAttr]-r.axis[r.draggedAxis].dragOffset)/(o-i.size)*(a-l);"x"===r.draggedAxis&&(s=r.isRtl&&e.getRtlHelpers().isRtlScrollbarInverted?s-(o+i.size):s,s=r.isRtl&&e.getRtlHelpers().isRtlScrollingInverted?-s:s),r.contentWrapperEl[r.axis[r.draggedAxis].scrollOffsetAttr]=s},this.onEndDrag=function(e){var t=Ou(r.el),n=Su(r.el);e.preventDefault(),e.stopPropagation(),r.el.classList.remove(r.classNames.dragging),t.removeEventListener("mousemove",r.drag,!0),t.removeEventListener("mouseup",r.onEndDrag,!0),r.removePreventClickId=n.setTimeout((function(){t.removeEventListener("click",r.preventClick,!0),t.removeEventListener("dblclick",r.preventClick,!0),r.removePreventClickId=null}))},this.preventClick=function(e){e.preventDefault(),e.stopPropagation()},this.el=t,this.minScrollbarWidth=20,this.options=Object.assign({},e.defaultOptions,{},n),this.classNames=Object.assign({},e.defaultOptions.classNames,{},this.options.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,isVisible:!1,forceVisible:!1,track:{},scrollbar:{}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,isVisible:!1,forceVisible:!1,track:{},scrollbar:{}}},this.removePreventClickId=null,e.instances.has(this.el)||(this.recalculate=Gs()(this.recalculate.bind(this),64),this.onMouseMove=Gs()(this.onMouseMove.bind(this),64),this.hideScrollbars=Ks()(this.hideScrollbars.bind(this),this.options.timeout),this.onWindowResize=Ks()(this.onWindowResize.bind(this),64,{leading:!0}),e.getRtlHelpers=Ys()(e.getRtlHelpers),this.init())}e.getRtlHelpers=function(){var t=document.createElement("div");t.innerHTML='<div class="hs-dummy-scrollbar-size"><div style="height: 200%; width: 200%; margin: 10px 0;"></div></div>';var n=t.firstElementChild;document.body.appendChild(n);var r=n.firstElementChild;n.scrollLeft=0;var o=e.getOffset(n),i=e.getOffset(r);n.scrollLeft=999;var a=e.getOffset(r);return{isRtlScrollingInverted:o.left!==i.left&&i.left-a.left!=0,isRtlScrollbarInverted:o.left!==i.left}},e.getOffset=function(e){var t=e.getBoundingClientRect(),n=Ou(e),r=Su(e);return{top:t.top+(r.pageYOffset||n.documentElement.scrollTop),left:t.left+(r.pageXOffset||n.documentElement.scrollLeft)}};var t=e.prototype;return t.init=function(){e.instances.set(this.el,this),wu()&&(this.initDOM(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},t.initDOM=function(){var e=this;if(Array.prototype.filter.call(this.el.children,(function(t){return t.classList.contains(e.classNames.wrapper)})).length)this.wrapperEl=this.el.querySelector("."+this.classNames.wrapper),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector("."+this.classNames.contentWrapper),this.contentEl=this.options.contentNode||this.el.querySelector("."+this.classNames.contentEl),this.offsetEl=this.el.querySelector("."+this.classNames.offset),this.maskEl=this.el.querySelector("."+this.classNames.mask),this.placeholderEl=this.findChild(this.wrapperEl,"."+this.classNames.placeholder),this.heightAutoObserverWrapperEl=this.el.querySelector("."+this.classNames.heightAutoObserverWrapperEl),this.heightAutoObserverEl=this.el.querySelector("."+this.classNames.heightAutoObserverEl),this.axis.x.track.el=this.findChild(this.el,"."+this.classNames.track+"."+this.classNames.horizontal),this.axis.y.track.el=this.findChild(this.el,"."+this.classNames.track+"."+this.classNames.vertical);else{for(this.wrapperEl=document.createElement("div"),this.contentWrapperEl=document.createElement("div"),this.offsetEl=document.createElement("div"),this.maskEl=document.createElement("div"),this.contentEl=document.createElement("div"),this.placeholderEl=document.createElement("div"),this.heightAutoObserverWrapperEl=document.createElement("div"),this.heightAutoObserverEl=document.createElement("div"),this.wrapperEl.classList.add(this.classNames.wrapper),this.contentWrapperEl.classList.add(this.classNames.contentWrapper),this.offsetEl.classList.add(this.classNames.offset),this.maskEl.classList.add(this.classNames.mask),this.contentEl.classList.add(this.classNames.contentEl),this.placeholderEl.classList.add(this.classNames.placeholder),this.heightAutoObserverWrapperEl.classList.add(this.classNames.heightAutoObserverWrapperEl),this.heightAutoObserverEl.classList.add(this.classNames.heightAutoObserverEl);this.el.firstChild;)this.contentEl.appendChild(this.el.firstChild);this.contentWrapperEl.appendChild(this.contentEl),this.offsetEl.appendChild(this.contentWrapperEl),this.maskEl.appendChild(this.offsetEl),this.heightAutoObserverWrapperEl.appendChild(this.heightAutoObserverEl),this.wrapperEl.appendChild(this.heightAutoObserverWrapperEl),this.wrapperEl.appendChild(this.maskEl),this.wrapperEl.appendChild(this.placeholderEl),this.el.appendChild(this.wrapperEl)}if(!this.axis.x.track.el||!this.axis.y.track.el){var t=document.createElement("div"),n=document.createElement("div");t.classList.add(this.classNames.track),n.classList.add(this.classNames.scrollbar),t.appendChild(n),this.axis.x.track.el=t.cloneNode(!0),this.axis.x.track.el.classList.add(this.classNames.horizontal),this.axis.y.track.el=t.cloneNode(!0),this.axis.y.track.el.classList.add(this.classNames.vertical),this.el.appendChild(this.axis.x.track.el),this.el.appendChild(this.axis.y.track.el)}this.axis.x.scrollbar.el=this.axis.x.track.el.querySelector("."+this.classNames.scrollbar),this.axis.y.scrollbar.el=this.axis.y.track.el.querySelector("."+this.classNames.scrollbar),this.options.autoHide||(this.axis.x.scrollbar.el.classList.add(this.classNames.visible),this.axis.y.scrollbar.el.classList.add(this.classNames.visible)),this.el.setAttribute("data-simplebar","init")},t.initListeners=function(){var e=this,t=Su(this.el);this.options.autoHide&&this.el.addEventListener("mouseenter",this.onMouseEnter),["mousedown","click","dblclick"].forEach((function(t){e.el.addEventListener(t,e.onPointerEvent,!0)})),["touchstart","touchend","touchmove"].forEach((function(t){e.el.addEventListener(t,e.onPointerEvent,{capture:!0,passive:!0})})),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl.addEventListener("scroll",this.onScroll),t.addEventListener("resize",this.onWindowResize);var n=!1,r=t.ResizeObserver||yu;this.resizeObserver=new r((function(){n&&e.recalculate()})),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),t.requestAnimationFrame((function(){n=!0})),this.mutationObserver=new t.MutationObserver(this.recalculate),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})},t.recalculate=function(){var e=Su(this.el);this.elStyles=e.getComputedStyle(this.el),this.isRtl="rtl"===this.elStyles.direction;var t=this.heightAutoObserverEl.offsetHeight<=1,n=this.heightAutoObserverEl.offsetWidth<=1,r=this.contentEl.offsetWidth,o=this.contentWrapperEl.offsetWidth,i=this.elStyles.overflowX,a=this.elStyles.overflowY;this.contentEl.style.padding=this.elStyles.paddingTop+" "+this.elStyles.paddingRight+" "+this.elStyles.paddingBottom+" "+this.elStyles.paddingLeft,this.wrapperEl.style.margin="-"+this.elStyles.paddingTop+" -"+this.elStyles.paddingRight+" -"+this.elStyles.paddingBottom+" -"+this.elStyles.paddingLeft;var l=this.contentEl.scrollHeight,s=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=t?"auto":"100%",this.placeholderEl.style.width=n?r+"px":"auto",this.placeholderEl.style.height=l+"px";var u=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=s>r,this.axis.y.isOverflowing=l>u,this.axis.x.isOverflowing="hidden"!==i&&this.axis.x.isOverflowing,this.axis.y.isOverflowing="hidden"!==a&&this.axis.y.isOverflowing,this.axis.x.forceVisible="x"===this.options.forceVisible||!0===this.options.forceVisible,this.axis.y.forceVisible="y"===this.options.forceVisible||!0===this.options.forceVisible,this.hideNativeScrollbar();var c=this.axis.x.isOverflowing?this.scrollbarWidth:0,f=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&s>o-f,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&l>u-c,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el.style.width=this.axis.x.scrollbar.size+"px",this.axis.y.scrollbar.el.style.height=this.axis.y.scrollbar.size+"px",this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")},t.getScrollbarSize=function(e){if(void 0===e&&(e="y"),!this.axis[e].isOverflowing)return 0;var t,n=this.contentEl[this.axis[e].scrollSizeAttr],r=this.axis[e].track.el[this.axis[e].offsetSizeAttr],o=r/n;return t=Math.max(~~(o*r),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(t=Math.min(t,this.options.scrollbarMaxSize)),t},t.positionScrollbar=function(t){if(void 0===t&&(t="y"),this.axis[t].isOverflowing){var n=this.contentWrapperEl[this.axis[t].scrollSizeAttr],r=this.axis[t].track.el[this.axis[t].offsetSizeAttr],o=parseInt(this.elStyles[this.axis[t].sizeAttr],10),i=this.axis[t].scrollbar,a=this.contentWrapperEl[this.axis[t].scrollOffsetAttr],l=(a="x"===t&&this.isRtl&&e.getRtlHelpers().isRtlScrollingInverted?-a:a)/(n-o),s=~~((r-i.size)*l);s="x"===t&&this.isRtl&&e.getRtlHelpers().isRtlScrollbarInverted?s+(r-i.size):s,i.el.style.transform="x"===t?"translate3d("+s+"px, 0, 0)":"translate3d(0, "+s+"px, 0)"}},t.toggleTrackVisibility=function(e){void 0===e&&(e="y");var t=this.axis[e].track.el,n=this.axis[e].scrollbar.el;this.axis[e].isOverflowing||this.axis[e].forceVisible?(t.style.visibility="visible",this.contentWrapperEl.style[this.axis[e].overflowAttr]="scroll"):(t.style.visibility="hidden",this.contentWrapperEl.style[this.axis[e].overflowAttr]="hidden"),this.axis[e].isOverflowing?n.style.display="block":n.style.display="none"},t.hideNativeScrollbar=function(){this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-"+this.scrollbarWidth+"px":0,this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-"+this.scrollbarWidth+"px":0},t.onMouseMoveForAxis=function(e){void 0===e&&(e="y"),this.axis[e].track.rect=this.axis[e].track.el.getBoundingClientRect(),this.axis[e].scrollbar.rect=this.axis[e].scrollbar.el.getBoundingClientRect(),this.isWithinBounds(this.axis[e].scrollbar.rect)?this.axis[e].scrollbar.el.classList.add(this.classNames.hover):this.axis[e].scrollbar.el.classList.remove(this.classNames.hover),this.isWithinBounds(this.axis[e].track.rect)?(this.showScrollbar(e),this.axis[e].track.el.classList.add(this.classNames.hover)):this.axis[e].track.el.classList.remove(this.classNames.hover)},t.onMouseLeaveForAxis=function(e){void 0===e&&(e="y"),this.axis[e].track.el.classList.remove(this.classNames.hover),this.axis[e].scrollbar.el.classList.remove(this.classNames.hover)},t.showScrollbar=function(e){void 0===e&&(e="y");var t=this.axis[e].scrollbar.el;this.axis[e].isVisible||(t.classList.add(this.classNames.visible),this.axis[e].isVisible=!0),this.options.autoHide&&this.hideScrollbars()},t.onDragStart=function(e,t){void 0===t&&(t="y");var n=Ou(this.el),r=Su(this.el),o=this.axis[t].scrollbar,i="y"===t?e.pageY:e.pageX;this.axis[t].dragOffset=i-o.rect[this.axis[t].offsetAttr],this.draggedAxis=t,this.el.classList.add(this.classNames.dragging),n.addEventListener("mousemove",this.drag,!0),n.addEventListener("mouseup",this.onEndDrag,!0),null===this.removePreventClickId?(n.addEventListener("click",this.preventClick,!0),n.addEventListener("dblclick",this.preventClick,!0)):(r.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},t.onTrackClick=function(e,t){var n=this;if(void 0===t&&(t="y"),this.options.clickOnTrack){var r=Su(this.el);this.axis[t].scrollbar.rect=this.axis[t].scrollbar.el.getBoundingClientRect();var o=this.axis[t].scrollbar.rect[this.axis[t].offsetAttr],i=parseInt(this.elStyles[this.axis[t].sizeAttr],10),a=this.contentWrapperEl[this.axis[t].scrollOffsetAttr],l=("y"===t?this.mouseY-o:this.mouseX-o)<0?-1:1,s=-1===l?a-i:a+i;!function e(){var o,i;-1===l?a>s&&(a-=n.options.clickOnTrackSpeed,n.contentWrapperEl.scrollTo(((o={})[n.axis[t].offsetAttr]=a,o)),r.requestAnimationFrame(e)):a<s&&(a+=n.options.clickOnTrackSpeed,n.contentWrapperEl.scrollTo(((i={})[n.axis[t].offsetAttr]=a,i)),r.requestAnimationFrame(e))}()}},t.getContentElement=function(){return this.contentEl},t.getScrollElement=function(){return this.contentWrapperEl},t.getScrollbarWidth=function(){try{return"none"===getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:_u()}catch(e){return _u()}},t.removeListeners=function(){var e=this,t=Su(this.el);this.options.autoHide&&this.el.removeEventListener("mouseenter",this.onMouseEnter),["mousedown","click","dblclick"].forEach((function(t){e.el.removeEventListener(t,e.onPointerEvent,!0)})),["touchstart","touchend","touchmove"].forEach((function(t){e.el.removeEventListener(t,e.onPointerEvent,{capture:!0,passive:!0})})),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),t.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.recalculate.cancel(),this.onMouseMove.cancel(),this.hideScrollbars.cancel(),this.onWindowResize.cancel()},t.unMount=function(){this.removeListeners(),e.instances.delete(this.el)},t.isWithinBounds=function(e){return this.mouseX>=e.left&&this.mouseX<=e.left+e.width&&this.mouseY>=e.top&&this.mouseY<=e.top+e.height},t.findChild=function(e,t){var n=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector;return Array.prototype.filter.call(e.children,(function(e){return n.call(e,t)}))[0]},e}();ku.defaultOptions={autoHide:!0,forceVisible:!1,clickOnTrack:!0,clickOnTrackSpeed:40,classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging"},scrollbarMinSize:25,scrollbarMaxSize:0,timeout:1e3},ku.instances=new WeakMap;var Cu=ku;function Pu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ju(){return(ju=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Tu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Au(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Iu=r.forwardRef((function(e,t){var n,o=e.children,i=e.scrollableNodeProps,a=void 0===i?{}:i,l=Au(e,["children","scrollableNodeProps"]),s=(0,r.useRef)(),u=(0,r.useRef)(),c=(0,r.useRef)(),f={},d={},p=[];return Object.keys(l).forEach((function(e){Object.prototype.hasOwnProperty.call(Cu.defaultOptions,e)?f[e]=l[e]:e.match(/data-simplebar-(.+)/)&&"data-simplebar-direction"!==e?p.push({name:e,value:l[e]}):d[e]=l[e]})),p.length&&console.warn("simplebar-react: this way of passing options is deprecated. Pass it like normal props instead:\n 'data-simplebar-auto-hide=\"false\"' —> 'autoHide=\"false\"'\n "),(0,r.useEffect)((function(){var e;return s=a.ref||s,u.current&&(n=new Cu(u.current,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tu(n,!0).forEach((function(t){Pu(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tu(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},(e=p,Array.prototype.reduce.call(e,(function(e,t){var n=t.name.match(/data-simplebar-(.+)/);if(n){var r=n[1].replace(/\W+(.)/g,(function(e,t){return t.toUpperCase()}));switch(t.value){case"true":e[r]=!0;break;case"false":e[r]=!1;break;case void 0:e[r]=!0;break;default:e[r]=t.value}}return e}),{})),{},f,{},s&&{scrollableNode:s.current},{},c.current&&{contentNode:c.current})),t&&(t.current=n)),function(){n.unMount(),n=null}}),[]),r.createElement("div",ju({ref:u,"data-simplebar":!0},d),r.createElement("div",{className:"simplebar-wrapper"},r.createElement("div",{className:"simplebar-height-auto-observer-wrapper"},r.createElement("div",{className:"simplebar-height-auto-observer"})),r.createElement("div",{className:"simplebar-mask"},r.createElement("div",{className:"simplebar-offset"},"function"==typeof o?o({scrollableNodeRef:s,contentNodeRef:c}):r.createElement("div",ju({},a,{className:"simplebar-content-wrapper".concat(a.className?" ".concat(a.className):"")}),r.createElement("div",{className:"simplebar-content"},o)))),r.createElement("div",{className:"simplebar-placeholder"})),r.createElement("div",{className:"simplebar-track simplebar-horizontal"},r.createElement("div",{className:"simplebar-scrollbar"})),r.createElement("div",{className:"simplebar-track simplebar-vertical"},r.createElement("div",{className:"simplebar-scrollbar"})))}));Iu.displayName="SimpleBar",Iu.propTypes={children:mo().oneOfType([mo().node,mo().func]),scrollableNodeProps:mo().object};var Ru=Iu;function Nu(e){return"/"===e.charAt(0)}function Du(e,t){for(var n=t,r=n+1,o=e.length;r<o;n+=1,r+=1)e[n]=e[r];e.pop()}var Mu=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],o=t&&t.split("/")||[],i=e&&Nu(e),a=t&&Nu(t),l=i||a;if(e&&Nu(e)?o=r:r.length&&(o.pop(),o=o.concat(r)),!o.length)return"/";if(o.length){var s=o[o.length-1];n="."===s||".."===s||""===s}else n=!1;for(var u=0,c=o.length;c>=0;c--){var f=o[c];"."===f?Du(o,c):".."===f?(Du(o,c),u++):u&&(Du(o,c),u--)}if(!l)for(;u--;u)o.unshift("..");!l||""===o[0]||o[0]&&Nu(o[0])||o.unshift("");var d=o.join("/");return n&&"/"!==d.substr(-1)&&(d+="/"),d};var Lu=function(e,t){if(!e)throw new Error("Invariant failed")};function Fu(e){return"/"===e.charAt(0)?e:"/"+e}function zu(e){return"/"===e.charAt(0)?e.substr(1):e}function Bu(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function Uu(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function Zu(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function Hu(e,t,n,r){var o;"string"==typeof e?(o=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var i=t.indexOf("?");return-1!==i&&(n=t.substr(i),t=t.substr(0,i)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e)).state=t:(void 0===(o=(0,po.Z)({},e)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(o.key=n),r?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=Mu(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o}function Wu(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,o){if(null!=e){var i="function"==typeof e?e(t,n):e;"string"==typeof i?"function"==typeof r?r(i,o):o(!0):o(!1!==i)}else o(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}var Vu=!("undefined"==typeof window||!window.document||!window.document.createElement);function Gu(e,t){t(window.confirm(e))}function $u(){try{return window.history.state||{}}catch(e){return{}}}function Ku(e){void 0===e&&(e={}),Vu||Lu(!1);var t=window.history,n=function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)}(),r=!(-1===window.navigator.userAgent.indexOf("Trident")),o=e,i=o.forceRefresh,a=void 0!==i&&i,l=o.getUserConfirmation,s=void 0===l?Gu:l,u=o.keyLength,c=void 0===u?6:u,f=e.basename?Uu(Fu(e.basename)):"";function d(e){var t=e||{},n=t.key,r=t.state,o=window.location,i=o.pathname+o.search+o.hash;return f&&(i=Bu(i,f)),Hu(i,r,n)}function p(){return Math.random().toString(36).substr(2,c)}var h=Wu();function m(e){(0,po.Z)(C,e),C.length=t.length,h.notifyListeners(C.location,C.action)}function v(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||b(d(e.state))}function g(){b(d($u()))}var y=!1;function b(e){if(y)y=!1,m();else{h.confirmTransitionTo(e,"POP",s,(function(t){t?m({action:"POP",location:e}):function(e){var t=C.location,n=x.indexOf(t.key);-1===n&&(n=0);var r=x.indexOf(e.key);-1===r&&(r=0);var o=n-r;o&&(y=!0,_(o))}(e)}))}}var w=d($u()),x=[w.key];function E(e){return f+Zu(e)}function _(e){t.go(e)}var S=0;function O(e){1===(S+=e)&&1===e?(window.addEventListener("popstate",v),r&&window.addEventListener("hashchange",g)):0===S&&(window.removeEventListener("popstate",v),r&&window.removeEventListener("hashchange",g))}var k=!1;var C={length:t.length,action:"POP",location:w,createHref:E,push:function(e,r){var o=Hu(e,r,p(),C.location);h.confirmTransitionTo(o,"PUSH",s,(function(e){if(e){var r=E(o),i=o.key,l=o.state;if(n)if(t.pushState({key:i,state:l},null,r),a)window.location.href=r;else{var s=x.indexOf(C.location.key),u=x.slice(0,s+1);u.push(o.key),x=u,m({action:"PUSH",location:o})}else window.location.href=r}}))},replace:function(e,r){var o=Hu(e,r,p(),C.location);h.confirmTransitionTo(o,"REPLACE",s,(function(e){if(e){var r=E(o),i=o.key,l=o.state;if(n)if(t.replaceState({key:i,state:l},null,r),a)window.location.replace(r);else{var s=x.indexOf(C.location.key);-1!==s&&(x[s]=o.key),m({action:"REPLACE",location:o})}else window.location.replace(r)}}))},go:_,goBack:function(){_(-1)},goForward:function(){_(1)},block:function(e){void 0===e&&(e=!1);var t=h.setPrompt(e);return k||(O(1),k=!0),function(){return k&&(k=!1,O(-1)),t()}},listen:function(e){var t=h.appendListener(e);return O(1),function(){O(-1),t()}}};return C}var qu={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+zu(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:zu,decodePath:Fu},slash:{encodePath:Fu,decodePath:Fu}};function Yu(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function Ju(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function Xu(e){window.location.replace(Yu(window.location.href)+"#"+e)}function Qu(e){void 0===e&&(e={}),Vu||Lu(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),r=n.getUserConfirmation,o=void 0===r?Gu:r,i=n.hashType,a=void 0===i?"slash":i,l=e.basename?Uu(Fu(e.basename)):"",s=qu[a],u=s.encodePath,c=s.decodePath;function f(){var e=c(Ju());return l&&(e=Bu(e,l)),Hu(e)}var d=Wu();function p(e){(0,po.Z)(O,e),O.length=t.length,d.notifyListeners(O.location,O.action)}var h=!1,m=null;function v(){var e=Ju(),t=u(e);if(e!==t)Xu(t);else{var n=f(),r=O.location;if(!h&&function(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash}(r,n))return;if(m===Zu(n))return;m=null,function(e){if(h)h=!1,p();else{d.confirmTransitionTo(e,"POP",o,(function(t){t?p({action:"POP",location:e}):function(e){var t=O.location,n=w.lastIndexOf(Zu(t));-1===n&&(n=0);var r=w.lastIndexOf(Zu(e));-1===r&&(r=0);var o=n-r;o&&(h=!0,x(o))}(e)}))}}(n)}}var g=Ju(),y=u(g);g!==y&&Xu(y);var b=f(),w=[Zu(b)];function x(e){t.go(e)}var E=0;function _(e){1===(E+=e)&&1===e?window.addEventListener("hashchange",v):0===E&&window.removeEventListener("hashchange",v)}var S=!1;var O={length:t.length,action:"POP",location:b,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&(n=Yu(window.location.href)),n+"#"+u(l+Zu(e))},push:function(e,t){var n=Hu(e,void 0,void 0,O.location);d.confirmTransitionTo(n,"PUSH",o,(function(e){if(e){var t=Zu(n),r=u(l+t);if(Ju()!==r){m=t,function(e){window.location.hash=e}(r);var o=w.lastIndexOf(Zu(O.location)),i=w.slice(0,o+1);i.push(t),w=i,p({action:"PUSH",location:n})}else p()}}))},replace:function(e,t){var n=Hu(e,void 0,void 0,O.location);d.confirmTransitionTo(n,"REPLACE",o,(function(e){if(e){var t=Zu(n),r=u(l+t);Ju()!==r&&(m=t,Xu(r));var o=w.indexOf(Zu(O.location));-1!==o&&(w[o]=t),p({action:"REPLACE",location:n})}}))},go:x,goBack:function(){x(-1)},goForward:function(){x(1)},block:function(e){void 0===e&&(e=!1);var t=d.setPrompt(e);return S||(_(1),S=!0),function(){return S&&(S=!1,_(-1)),t()}},listen:function(e){var t=d.appendListener(e);return _(1),function(){_(-1),t()}}};return O}function ec(e,t,n){return Math.min(Math.max(e,t),n)}function tc(e){void 0===e&&(e={});var t=e,n=t.getUserConfirmation,r=t.initialEntries,o=void 0===r?["/"]:r,i=t.initialIndex,a=void 0===i?0:i,l=t.keyLength,s=void 0===l?6:l,u=Wu();function c(e){(0,po.Z)(v,e),v.length=v.entries.length,u.notifyListeners(v.location,v.action)}function f(){return Math.random().toString(36).substr(2,s)}var d=ec(a,0,o.length-1),p=o.map((function(e){return Hu(e,void 0,"string"==typeof e?f():e.key||f())})),h=Zu;function m(e){var t=ec(v.index+e,0,v.entries.length-1),r=v.entries[t];u.confirmTransitionTo(r,"POP",n,(function(e){e?c({action:"POP",location:r,index:t}):c()}))}var v={length:p.length,action:"POP",location:p[d],index:d,entries:p,createHref:h,push:function(e,t){var r=Hu(e,t,f(),v.location);u.confirmTransitionTo(r,"PUSH",n,(function(e){if(e){var t=v.index+1,n=v.entries.slice(0);n.length>t?n.splice(t,n.length-t,r):n.push(r),c({action:"PUSH",location:r,index:t,entries:n})}}))},replace:function(e,t){var r=Hu(e,t,f(),v.location);u.confirmTransitionTo(r,"REPLACE",n,(function(e){e&&(v.entries[v.index]=r,c({action:"REPLACE",location:r}))}))},go:m,goBack:function(){m(-1)},goForward:function(){m(1)},canGo:function(e){var t=v.index+e;return t>=0&&t<v.entries.length},block:function(e){return void 0===e&&(e=!1),u.setPrompt(e)},listen:function(e){return u.appendListener(e)}};return v}var nc="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:{};function rc(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,r){e=n,t.forEach((function(t){return t(e,r)}))}}}var oc=r.createContext||function(e,t){var n,o,i="__create-react-context-"+function(){var e="__global_unique_id__";return nc[e]=(nc[e]||0)+1}()+"__",a=function(e){function n(){var t;return(t=e.apply(this,arguments)||this).emitter=rc(t.props.value),t}(0,So.Z)(n,e);var r=n.prototype;return r.getChildContext=function(){var e;return(e={})[i]=this.emitter,e},r.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,o=e.value;!function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}(r,o)?(n="function"==typeof t?t(r,o):1073741823,0!==(n|=0)&&this.emitter.set(e.value,n)):n=0}},r.render=function(){return this.props.children},n}(r.Component);a.childContextTypes=((n={})[i]=mo().object.isRequired,n);var l=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).state={value:e.getValue()},e.onUpdate=function(t,n){0!=((0|e.observedBits)&n)&&e.setState({value:e.getValue()})},e}(0,So.Z)(n,t);var r=n.prototype;return r.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=null==t?1073741823:t},r.componentDidMount=function(){this.context[i]&&this.context[i].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=null==e?1073741823:e},r.componentWillUnmount=function(){this.context[i]&&this.context[i].off(this.onUpdate)},r.getValue=function(){return this.context[i]?this.context[i].get():e},r.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(r.Component);return l.contextTypes=((o={})[i]=mo().object,o),{Provider:a,Consumer:l}},ic=n(39658),ac=n.n(ic),lc=(n(50663),function(e){var t=oc();return t.displayName=e,t}("Router-History")),sc=function(e){var t=oc();return t.displayName=e,t}("Router"),uc=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._isMounted?n.setState({location:e}):n._pendingLocation=e}))),n}(0,So.Z)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&this.unlisten()},n.render=function(){return r.createElement(sc.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},r.createElement(lc.Provider,{children:this.props.children||null,value:this.props.history}))},t}(r.Component);r.Component;r.Component;var cc={},fc=0;function dc(e,t){void 0===t&&(t={}),("string"==typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,o=n.exact,i=void 0!==o&&o,a=n.strict,l=void 0!==a&&a,s=n.sensitive,u=void 0!==s&&s;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=cc[n]||(cc[n]={});if(r[e])return r[e];var o=[],i={regexp:ac()(e,o,t),keys:o};return fc<1e4&&(r[e]=i,fc++),i}(n,{end:i,strict:l,sensitive:u}),o=r.regexp,a=r.keys,s=o.exec(e);if(!s)return null;var c=s[0],f=s.slice(1),d=e===c;return i&&!d?null:{path:n,url:"/"===n&&""===c?"/":c,isExact:d,params:a.reduce((function(e,t,n){return e[t.name]=f[n],e}),{})}}),null)}var pc=function(e){function t(){return e.apply(this,arguments)||this}return(0,So.Z)(t,e),t.prototype.render=function(){var e=this;return r.createElement(sc.Consumer,null,(function(t){t||Lu(!1);var n=e.props.location||t.location,o=e.props.computedMatch?e.props.computedMatch:e.props.path?dc(n.pathname,e.props):t.match,i=(0,po.Z)({},t,{location:n,match:o}),a=e.props,l=a.children,s=a.component,u=a.render;return Array.isArray(l)&&0===l.length&&(l=null),r.createElement(sc.Provider,{value:i},i.match?l?"function"==typeof l?l(i):l:s?r.createElement(s,i):u?u(i):null:"function"==typeof l?l(i):null)}))},t}(r.Component);function hc(e){return"/"===e.charAt(0)?e:"/"+e}function mc(e,t){if(!e)return t;var n=hc(e);return 0!==t.pathname.indexOf(n)?t:(0,po.Z)({},t,{pathname:t.pathname.substr(n.length)})}function vc(e){return"string"==typeof e?e:Zu(e)}function gc(e){return function(){Lu(!1)}}function yc(){}r.Component;var bc=function(e){function t(){return e.apply(this,arguments)||this}return(0,So.Z)(t,e),t.prototype.render=function(){var e=this;return r.createElement(sc.Consumer,null,(function(t){t||Lu(!1);var n,o,i=e.props.location||t.location;return r.Children.forEach(e.props.children,(function(e){if(null==o&&r.isValidElement(e)){n=e;var a=e.props.path||e.props.from;o=a?dc(i.pathname,(0,po.Z)({},e.props,{path:a})):t.match}})),o?r.cloneElement(n,{location:i,computedMatch:o}):null}))},t}(r.Component);function wc(e){var t="withRouter("+(e.displayName||e.name)+")",n=function(t){var n=t.wrappedComponentRef,o=(0,_o.Z)(t,["wrappedComponentRef"]);return r.createElement(sc.Consumer,null,(function(t){return t||Lu(!1),r.createElement(e,(0,po.Z)({},o,t,{ref:n}))}))};return n.displayName=t,n.WrappedComponent=e,el()(n,e)}var xc=r.useContext;function Ec(){return xc(lc)}function _c(){return xc(sc).location}function Sc(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Oc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Oc(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Oc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var kc=Ol((function(e){return{settings:e.settings}}))((function(e){var t=e.settings,n=[at("random_tips.tip_1"),at("random_tips.tip_2"),at("random_tips.tip_3"),at("random_tips.tip_4"),at("random_tips.tip_5"),at("random_tips.tip_6"),at("random_tips.tip_7"),at("random_tips.tip_8"),at("random_tips.tip_9"),at("random_tips.tip_10"),at("random_tips.tip_11"),at("random_tips.tip_12"),at("random_tips.tip_13"),at("random_tips.tip_14"),at("random_tips.tip_15"),at("random_tips.tip_16"),at("random_tips.tip_17"),at("random_tips.tip_18"),at("random_tips.tip_19"),at("random_tips.tip_20"),at("random_tips.tip_21"),at("random_tips.tip_22"),at("random_tips.tip_23")],o=Sc((0,r.useState)(0),2),i=o[0],a=o[1],l=Sc((0,r.useState)(function(e){for(var t,n,r=e.length;0!==r;)n=Math.floor(Math.random()*r),t=e[r-=1],e[r]=e[n],e[n]=t;return e}(n)),1)[0];return!0!==t.tips_enabled?r.createElement(r.Fragment,null):r.createElement("div",{className:"random-tip","data-testid":"random-tip"},r.createElement("span",{className:"buzz"},r.createElement("img",{onDoubleClick:function(){window.open("https://www.youtube.com/watch?v=dQw4w9WgXcQ")},src:buttonizer_admin.assets+"/images/ButtonizerBuzzer.svg","data-testid":"random-tip:buzzer"})),r.createElement("span",{className:"tip",style:{userSelect:"none"},onClick:function(){var e=i+1;e>=l.length&&(e=0),a(e)},"data-testid":"random-tip:new-tip"},l[i]))})),Cc=r.forwardRef((function(e,t){var n=e.classes,o=e.className,i=e.color,a=void 0===i?"inherit":i,l=e.component,s=void 0===l?"span":l,u=e.fontSize,c=void 0===u?"default":u,f=(0,fo.Z)(e,["classes","className","color","component","fontSize"]);return r.createElement(s,(0,po.Z)({className:(0,vo.Z)("material-icons",n.root,o,"inherit"!==a&&n["color".concat((0,Fo.Z)(a))],"default"!==c&&n["fontSize".concat((0,Fo.Z)(c))]),"aria-hidden":!0,ref:t},f))}));Cc.muiName="Icon";var Pc=(0,go.Z)((function(e){return{root:{userSelect:"none",fontSize:e.typography.pxToRem(24),width:"1em",height:"1em",overflow:"hidden",flexShrink:0},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorAction:{color:e.palette.action.active},colorError:{color:e.palette.error.main},colorDisabled:{color:e.palette.action.disabled},fontSizeInherit:{fontSize:"inherit"},fontSizeSmall:{fontSize:e.typography.pxToRem(20)},fontSizeLarge:{fontSize:e.typography.pxToRem(36)}}}),{name:"MuiIcon"})(Cc);function jc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Tc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jc(Object(n),!0).forEach((function(t){Ac(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ac(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ic(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:co.dispatch,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i=r(xt(Tc({name:at("utils.new_button"),show_mobile:!0,show_desktop:!0},e),"buttons")).payload.record;r(mt(i.id,t,n)),o&&(document.location.hash="/group/".concat(t,"/button/").concat(i.id))}function Rc(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.store.getState(),n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window.store.dispatch;t.groups[e]||console.error("ID "+e+" not in store!");var r=_t(e,t);n(Et(e,"groups")),Object.keys(r).map((function(e){return n(Et(e,"buttons"))}))}function Nc(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:co.dispatch,o={name:at("utils.new_group"),show_mobile:!0,show_desktop:!0,children:[]},i=r(xt(e||o,"groups",n)).payload.record.id;t.map((function(e,t){if(0===Object.keys(e).length)return!1;Ic(e,i,t,r)}))}function Dc(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:co.dispatch,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:co.getState();if(o.groups[e]){Rc(e,o,r);var i=Object.values(o.groups).reduce((function(t,n,r){return n.id===e?r:t}),""),a=r(xt(t,"groups",i)).payload.record.id;n.map((function(e,t){if(0===Object.keys(e).length)return!1;Ic(e,a,t,r)}))}else console.error(o.groups,o.groups[e]);Zr()}function Mc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Lc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mc(Object(n),!0).forEach((function(t){Fc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Fc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zc(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:window.store.getState(),o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:window.store.dispatch;if(!r.buttons[e])throw ReferenceError("ID "+e+" not in button store!");var i=Lc(Lc({},r.buttons[e]),{},{name:r.buttons[e].name+" Copy",id:void 0},n);switch(r.buttons[e].type){case"popup_maker":i.action="popupMaker"+Z()+"Pv2";break;case"elementor_popup":i.action="elementor"+Z()+"Ev2"}delete i.id,Ic(i,t,Object.values(r.buttons).reduce((function(t,n,r){return n.id===e?r+1:t}),""),o)}var Bc=n(83711);var Uc=r.createContext({}),Zc="undefined"==typeof window?r.useEffect:r.useLayoutEffect,Hc=r.forwardRef((function(e,t){var n=e.alignItems,i=void 0===n?"center":n,a=e.autoFocus,l=void 0!==a&&a,s=e.button,u=void 0!==s&&s,c=e.children,f=e.classes,d=e.className,p=e.component,h=e.ContainerComponent,m=void 0===h?"li":h,v=e.ContainerProps,g=(v=void 0===v?{}:v).className,y=(0,fo.Z)(v,["className"]),b=e.dense,w=void 0!==b&&b,x=e.disabled,E=void 0!==x&&x,_=e.disableGutters,S=void 0!==_&&_,O=e.divider,k=void 0!==O&&O,C=e.focusVisibleClassName,P=e.selected,j=void 0!==P&&P,T=(0,fo.Z)(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),A=r.useContext(Uc),I={dense:w||A.dense||!1,alignItems:i},R=r.useRef(null);Zc((function(){l&&R.current&&R.current.focus()}),[l]);var N=r.Children.toArray(c),D=N.length&&(0,Bc.Z)(N[N.length-1],["ListItemSecondaryAction"]),M=r.useCallback((function(e){R.current=o.findDOMNode(e)}),[]),L=(0,bo.Z)(M,t),F=(0,po.Z)({className:(0,vo.Z)(f.root,d,I.dense&&f.dense,!S&&f.gutters,k&&f.divider,E&&f.disabled,u&&f.button,"center"!==i&&f.alignItemsFlexStart,D&&f.secondaryAction,j&&f.selected),disabled:E},T),z=p||"li";return u&&(F.component=p||"div",F.focusVisibleClassName=(0,vo.Z)(f.focusVisible,C),z=Lo),D?(z=F.component||p?z:"div","li"===m&&("li"===z?z="div":"li"===F.component&&(F.component="div")),r.createElement(Uc.Provider,{value:I},r.createElement(m,(0,po.Z)({className:(0,vo.Z)(f.container,g),ref:L},y),r.createElement(z,F,N),N.pop()))):r.createElement(Uc.Provider,{value:I},r.createElement(z,(0,po.Z)({ref:L},F),N))})),Wc=(0,go.Z)((function(e){return{root:{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,"&$focusVisible":{backgroundColor:e.palette.action.selected},"&$selected, &$selected:hover":{backgroundColor:e.palette.action.selected},"&$disabled":{opacity:.5}},container:{position:"relative"},focusVisible:{},dense:{paddingTop:4,paddingBottom:4},alignItemsFlexStart:{alignItems:"flex-start"},disabled:{},divider:{borderBottom:"1px solid ".concat(e.palette.divider),backgroundClip:"padding-box"},gutters:{paddingLeft:16,paddingRight:16},button:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},secondaryAction:{paddingRight:48},selected:{}}}),{name:"MuiListItem"})(Hc),Vc=r.forwardRef((function(e,t){var n,o=e.classes,i=e.className,a=e.component,l=void 0===a?"li":a,s=e.disableGutters,u=void 0!==s&&s,c=e.ListItemClasses,f=e.role,d=void 0===f?"menuitem":f,p=e.selected,h=e.tabIndex,m=(0,fo.Z)(e,["classes","className","component","disableGutters","ListItemClasses","role","selected","tabIndex"]);return e.disabled||(n=void 0!==h?h:-1),r.createElement(Wc,(0,po.Z)({button:!0,role:d,tabIndex:n,component:l,selected:p,disableGutters:u,classes:(0,po.Z)({dense:o.dense},c),className:(0,vo.Z)(o.root,i,p&&o.selected,!u&&o.gutters),ref:t},m))})),Gc=(0,go.Z)((function(e){return{root:(0,po.Z)({},e.typography.body1,(0,J.Z)({minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",width:"auto",overflow:"hidden",whiteSpace:"nowrap"},e.breakpoints.up("sm"),{minHeight:"auto"})),gutters:{},selected:{},dense:(0,po.Z)({},e.typography.body2,{minHeight:"auto"})}}),{name:"MuiMenuItem"})(Vc),$c=r.forwardRef((function(e,t){var n=e.classes,o=e.className,i=(0,fo.Z)(e,["classes","className"]),a=r.useContext(Uc);return r.createElement("div",(0,po.Z)({className:(0,vo.Z)(n.root,o,"flex-start"===a.alignItems&&n.alignItemsFlexStart),ref:t},i))})),Kc=(0,go.Z)((function(e){return{root:{minWidth:56,color:e.palette.action.active,flexShrink:0,display:"inline-flex"},alignItemsFlexStart:{marginTop:8}}}),{name:"MuiListItemIcon"})($c);function qc(){return(qc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Yc(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Jc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Jc(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Jc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Xc(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Qc=r.forwardRef((function(e,t){var n=e.model,o=void 0===n?"group":n,i=e.deleteDisabled,a=void 0!==i&&i,l=e.size,s=void 0===l?"small":l,u=e.onClose,c=e.buttonCount,f=void 0===c?1:c,d=e.inDropdown,p=void 0!==d&&d,h=Xc(e,["model","deleteDisabled","size","onClose","buttonCount","inDropdown"]),m=Yc((0,r.useState)(!1),2),v=m[0],g=m[1],y=function(e){g(!1),"confirm"!==e||a||u()};return r.createElement(r.Fragment,null,r.createElement(Al,{content:at("modal.remove.".concat(o,".cannot_delete")),disabled:!a,trigger:"click"},p?r.createElement("div",{ref:t},r.createElement(Al,{content:"",disabled:a,style:{float:"right"},shiftClick:!0},r.createElement(Gc,{onClick:function(e){if(!a){if(e.shiftKey)return y("confirm");g(!0)}},disabled:a,"data-testid":"page_rule"===o?h["data-testid"]:"delete-button-".concat(o)},r.createElement(Kc,null,r.createElement(Pc,{className:"fas fa-trash-alt"})),r.createElement(js,{variant:"inherit"},at("utils.delete"))))):r.createElement("span",{tabIndex:0},r.createElement(Al,{content:at("utils.delete"),disabled:a,style:{float:"right"},shiftClick:!0},r.createElement(Us,qc({onClick:function(e){if(!a){if(e.shiftKey)return y("confirm");g(!0)}},color:"primary",disabled:a,size:s,style:{width:"35px",height:"35px"}},h),r.createElement(Pc,{fontSize:"inherit",style:{overflow:"unset"},className:"fas fa-times"}))))),r.createElement(zs,{open:v,title:at("modal.remove.".concat(o,a?".cannot_delete_window_title":".window_title")),buttons:a?[{value:"close",text:at("modal.close")}]:null,onClose:y,testId:"delete-button:dialog"},a?r.createElement(js,null,at("modal.remove.".concat(o,".cannot_delete"))):r.createElement(r.Fragment,null,r.createElement(js,null,at("modal.remove.".concat(o,".question"))),"group"===o&&r.createElement(js,null,at("modal.remove.group.question_multiple_buttons",{count:f})),r.createElement(js,{style:{marginTop:15}},at("modal.remove.permanent")))))})),ef=n(60288);function tf(e){var t=e.props,n=e.states,r=e.muiFormControl;return n.reduce((function(e,n){return e[n]=t[n],r&&void 0===t[n]&&(e[n]=r[n]),e}),{})}var nf=r.createContext();function rf(){return r.useContext(nf)}var of=nf,af=n(79437);function lf(e,t){return parseInt(e[t],10)||0}var sf="undefined"!=typeof window?r.useLayoutEffect:r.useEffect,uf={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"},cf=r.forwardRef((function(e,t){var n=e.onChange,o=e.rows,i=e.rowsMax,a=e.rowsMin,l=void 0===a?1:a,s=e.style,u=e.value,c=(0,fo.Z)(e,["onChange","rows","rowsMax","rowsMin","style","value"]),f=o||l,d=r.useRef(null!=u).current,p=r.useRef(null),h=(0,bo.Z)(t,p),m=r.useRef(null),v=r.useRef(0),g=r.useState({}),y=g[0],b=g[1],w=r.useCallback((function(){var t=p.current,n=window.getComputedStyle(t),r=m.current;r.style.width=n.width,r.value=t.value||e.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");var o=n["box-sizing"],a=lf(n,"padding-bottom")+lf(n,"padding-top"),l=lf(n,"border-bottom-width")+lf(n,"border-top-width"),s=r.scrollHeight-a;r.value="x";var u=r.scrollHeight-a,c=s;f&&(c=Math.max(Number(f)*u,c)),i&&(c=Math.min(Number(i)*u,c));var d=(c=Math.max(c,u))+("border-box"===o?a+l:0),h=Math.abs(c-s)<=1;b((function(e){return v.current<20&&(d>0&&Math.abs((e.outerHeightStyle||0)-d)>1||e.overflow!==h)?(v.current+=1,{overflow:h,outerHeightStyle:d}):e}))}),[i,f,e.placeholder]);r.useEffect((function(){var e=(0,af.Z)((function(){v.current=0,w()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}),[w]),sf((function(){w()})),r.useEffect((function(){v.current=0}),[u]);return r.createElement(r.Fragment,null,r.createElement("textarea",(0,po.Z)({value:u,onChange:function(e){v.current=0,d||w(),n&&n(e)},ref:h,rows:f,style:(0,po.Z)({height:y.outerHeightStyle,overflow:y.overflow?"hidden":null},s)},c)),r.createElement("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:m,tabIndex:-1,style:(0,po.Z)({},uf,s)}))}));function ff(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function df(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(ff(e.value)&&""!==e.value||t&&ff(e.defaultValue)&&""!==e.defaultValue)}var pf="undefined"==typeof window?r.useEffect:r.useLayoutEffect,hf=r.forwardRef((function(e,t){var n=e["aria-describedby"],o=e.autoComplete,i=e.autoFocus,a=e.classes,l=e.className,s=(e.color,e.defaultValue),u=e.disabled,c=e.endAdornment,f=(e.error,e.fullWidth),d=void 0!==f&&f,p=e.id,h=e.inputComponent,m=void 0===h?"input":h,v=e.inputProps,g=void 0===v?{}:v,y=e.inputRef,b=(e.margin,e.multiline),w=void 0!==b&&b,x=e.name,E=e.onBlur,_=e.onChange,S=e.onClick,O=e.onFocus,k=e.onKeyDown,C=e.onKeyUp,P=e.placeholder,j=e.readOnly,T=e.renderSuffix,A=e.rows,I=e.rowsMax,R=e.rowsMin,N=e.startAdornment,D=e.type,M=void 0===D?"text":D,L=e.value,F=(0,fo.Z)(e,["aria-describedby","autoComplete","autoFocus","classes","className","color","defaultValue","disabled","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","rowsMax","rowsMin","startAdornment","type","value"]),z=null!=g.value?g.value:L,B=r.useRef(null!=z).current,U=r.useRef(),Z=r.useCallback((function(e){0}),[]),H=(0,bo.Z)(g.ref,Z),W=(0,bo.Z)(y,H),V=(0,bo.Z)(U,W),G=r.useState(!1),$=G[0],K=G[1],q=rf();var Y=tf({props:e,muiFormControl:q,states:["color","disabled","error","hiddenLabel","margin","required","filled"]});Y.focused=q?q.focused:$,r.useEffect((function(){!q&&u&&$&&(K(!1),E&&E())}),[q,u,$,E]);var J=q&&q.onFilled,X=q&&q.onEmpty,Q=r.useCallback((function(e){df(e)?J&&J():X&&X()}),[J,X]);pf((function(){B&&Q({value:z})}),[z,Q,B]);r.useEffect((function(){Q(U.current)}),[]);var ee=m,te=(0,po.Z)({},g,{ref:V});"string"!=typeof ee?te=(0,po.Z)({inputRef:V,type:M},te,{ref:null}):w?!A||I||R?(te=(0,po.Z)({rows:A,rowsMax:I},te),ee=cf):ee="textarea":te=(0,po.Z)({type:M},te);return r.useEffect((function(){q&&q.setAdornedStart(Boolean(N))}),[q,N]),r.createElement("div",(0,po.Z)({className:(0,vo.Z)(a.root,a["color".concat((0,Fo.Z)(Y.color||"primary"))],l,Y.disabled&&a.disabled,Y.error&&a.error,d&&a.fullWidth,Y.focused&&a.focused,q&&a.formControl,w&&a.multiline,N&&a.adornedStart,c&&a.adornedEnd,"dense"===Y.margin&&a.marginDense),onClick:function(e){U.current&&e.currentTarget===e.target&&U.current.focus(),S&&S(e)},ref:t},F),N,r.createElement(of.Provider,{value:null},r.createElement(ee,(0,po.Z)({"aria-invalid":Y.error,"aria-describedby":n,autoComplete:o,autoFocus:i,defaultValue:s,disabled:Y.disabled,id:p,onAnimationStart:function(e){Q("mui-auto-fill-cancel"===e.animationName?U.current:{value:"x"})},name:x,placeholder:P,readOnly:j,required:Y.required,rows:A,value:z,onKeyDown:k,onKeyUp:C},te,{className:(0,vo.Z)(a.input,g.className,Y.disabled&&a.disabled,w&&a.inputMultiline,Y.hiddenLabel&&a.inputHiddenLabel,N&&a.inputAdornedStart,c&&a.inputAdornedEnd,"search"===M&&a.inputTypeSearch,"dense"===Y.margin&&a.inputMarginDense),onBlur:function(e){E&&E(e),g.onBlur&&g.onBlur(e),q&&q.onBlur?q.onBlur(e):K(!1)},onChange:function(e){if(!B){var t=e.target||U.current;if(null==t)throw new Error((0,ef.Z)(1));Q({value:t.value})}for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];g.onChange&&g.onChange.apply(g,[e].concat(r)),_&&_.apply(void 0,[e].concat(r))},onFocus:function(e){Y.disabled?e.stopPropagation():(O&&O(e),g.onFocus&&g.onFocus(e),q&&q.onFocus?q.onFocus(e):K(!0))}}))),c,T?T((0,po.Z)({},Y,{startAdornment:N})):null)})),mf=(0,go.Z)((function(e){var t="light"===e.palette.type,n={color:"currentColor",opacity:t?.42:.5,transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},o={opacity:t?.42:.5};return{"@global":{"@keyframes mui-auto-fill":{},"@keyframes mui-auto-fill-cancel":{}},root:(0,po.Z)({},e.typography.body1,{color:e.palette.text.primary,lineHeight:"1.1876em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center","&$disabled":{color:e.palette.text.disabled,cursor:"default"}}),formControl:{},focused:{},disabled:{},adornedStart:{},adornedEnd:{},error:{},marginDense:{},multiline:{padding:"".concat(6,"px 0 ").concat(7,"px"),"&$marginDense":{paddingTop:3}},colorSecondary:{},fullWidth:{width:"100%"},input:{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"".concat(6,"px 0 ").concat(7,"px"),border:0,boxSizing:"content-box",background:"none",height:"1.1876em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{"-webkit-appearance":"none"},"label[data-shrink=false] + $formControl &":{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus:-ms-input-placeholder":o,"&:focus::-ms-input-placeholder":o},"&$disabled":{opacity:1},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},inputMarginDense:{paddingTop:3},inputMultiline:{height:"auto",resize:"none",padding:0},inputTypeSearch:{"-moz-appearance":"textfield","-webkit-appearance":"textfield"},inputAdornedStart:{},inputAdornedEnd:{},inputHiddenLabel:{}}}),{name:"MuiInputBase"})(hf),vf=r.forwardRef((function(e,t){var n=e.disableUnderline,o=e.classes,i=e.fullWidth,a=void 0!==i&&i,l=e.inputComponent,s=void 0===l?"input":l,u=e.multiline,c=void 0!==u&&u,f=e.type,d=void 0===f?"text":f,p=(0,fo.Z)(e,["disableUnderline","classes","fullWidth","inputComponent","multiline","type"]);return r.createElement(mf,(0,po.Z)({classes:(0,po.Z)({},o,{root:(0,vo.Z)(o.root,!n&&o.underline),underline:null}),fullWidth:a,inputComponent:s,multiline:c,ref:t,type:d},p))}));vf.muiName="Input";var gf=(0,go.Z)((function(e){var t="light"===e.palette.type?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return{root:{position:"relative"},formControl:{"label + &":{marginTop:16}},focused:{},disabled:{},colorSecondary:{"&$underline:after":{borderBottomColor:e.palette.secondary.main}},underline:{"&:after":{borderBottom:"2px solid ".concat(e.palette.primary.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},"&$focused:after":{transform:"scaleX(1)"},"&$error:after":{borderBottomColor:e.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(t),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},"&:hover:not($disabled):before":{borderBottom:"2px solid ".concat(e.palette.text.primary),"@media (hover: none)":{borderBottom:"1px solid ".concat(t)}},"&$disabled:before":{borderBottomStyle:"dotted"}},error:{},marginDense:{},multiline:{},fullWidth:{},input:{},inputMarginDense:{},inputMultiline:{},inputTypeSearch:{}}}),{name:"MuiInput"})(vf),yf=r.forwardRef((function(e,t){var n=e.disableUnderline,o=e.classes,i=e.fullWidth,a=void 0!==i&&i,l=e.inputComponent,s=void 0===l?"input":l,u=e.multiline,c=void 0!==u&&u,f=e.type,d=void 0===f?"text":f,p=(0,fo.Z)(e,["disableUnderline","classes","fullWidth","inputComponent","multiline","type"]);return r.createElement(mf,(0,po.Z)({classes:(0,po.Z)({},o,{root:(0,vo.Z)(o.root,!n&&o.underline),underline:null}),fullWidth:a,inputComponent:s,multiline:c,ref:t,type:d},p))}));yf.muiName="Input";var bf=(0,go.Z)((function(e){var t="light"===e.palette.type,n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.09)";return{root:{position:"relative",backgroundColor:r,borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:t?"rgba(0, 0, 0, 0.13)":"rgba(255, 255, 255, 0.13)","@media (hover: none)":{backgroundColor:r}},"&$focused":{backgroundColor:t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.09)"},"&$disabled":{backgroundColor:t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)"}},colorSecondary:{"&$underline:after":{borderBottomColor:e.palette.secondary.main}},underline:{"&:after":{borderBottom:"2px solid ".concat(e.palette.primary.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},"&$focused:after":{transform:"scaleX(1)"},"&$error:after":{borderBottomColor:e.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(n),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},"&:hover:before":{borderBottom:"1px solid ".concat(e.palette.text.primary)},"&$disabled:before":{borderBottomStyle:"dotted"}},focused:{},disabled:{},adornedStart:{paddingLeft:12},adornedEnd:{paddingRight:12},error:{},marginDense:{},multiline:{padding:"27px 12px 10px","&$marginDense":{paddingTop:23,paddingBottom:6}},input:{padding:"27px 12px 10px","&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.type?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.type?null:"#fff",caretColor:"light"===e.palette.type?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},inputMarginDense:{paddingTop:23,paddingBottom:6},inputHiddenLabel:{paddingTop:18,paddingBottom:19,"&$inputMarginDense":{paddingTop:10,paddingBottom:11}},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}}),{name:"MuiFilledInput"})(yf),wf=r.forwardRef((function(e,t){e.children;var n=e.classes,o=e.className,i=e.label,a=e.labelWidth,l=e.notched,s=e.style,u=(0,fo.Z)(e,["children","classes","className","label","labelWidth","notched","style"]),c="rtl"===hs().direction?"right":"left";if(void 0!==i)return r.createElement("fieldset",(0,po.Z)({"aria-hidden":!0,className:(0,vo.Z)(n.root,o),ref:t,style:s},u),r.createElement("legend",{className:(0,vo.Z)(n.legendLabelled,l&&n.legendNotched)},i?r.createElement("span",null,i):r.createElement("span",{dangerouslySetInnerHTML:{__html:"&#8203;"}})));var f=a>0?.75*a+8:.01;return r.createElement("fieldset",(0,po.Z)({"aria-hidden":!0,style:(0,po.Z)((0,J.Z)({},"padding".concat((0,Fo.Z)(c)),8),s),className:(0,vo.Z)(n.root,o),ref:t},u),r.createElement("legend",{className:n.legend,style:{width:l?f:.01}},r.createElement("span",{dangerouslySetInnerHTML:{__html:"&#8203;"}})))})),xf=(0,go.Z)((function(e){return{root:{position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden"},legend:{textAlign:"left",padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})},legendLabelled:{display:"block",width:"auto",textAlign:"left",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),"& > span":{paddingLeft:5,paddingRight:5,display:"inline-block"}},legendNotched:{maxWidth:1e3,transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}}),{name:"PrivateNotchedOutline"})(wf),Ef=r.forwardRef((function(e,t){var n=e.classes,o=e.fullWidth,i=void 0!==o&&o,a=e.inputComponent,l=void 0===a?"input":a,s=e.label,u=e.labelWidth,c=void 0===u?0:u,f=e.multiline,d=void 0!==f&&f,p=e.notched,h=e.type,m=void 0===h?"text":h,v=(0,fo.Z)(e,["classes","fullWidth","inputComponent","label","labelWidth","multiline","notched","type"]);return r.createElement(mf,(0,po.Z)({renderSuffix:function(e){return r.createElement(xf,{className:n.notchedOutline,label:s,labelWidth:c,notched:void 0!==p?p:Boolean(e.startAdornment||e.filled||e.focused)})},classes:(0,po.Z)({},n,{root:(0,vo.Z)(n.root,n.underline),notchedOutline:null}),fullWidth:i,inputComponent:l,multiline:d,ref:t,type:m},v))}));Ef.muiName="Input";var _f=(0,go.Z)((function(e){var t="light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{root:{position:"relative",borderRadius:e.shape.borderRadius,"&:hover $notchedOutline":{borderColor:e.palette.text.primary},"@media (hover: none)":{"&:hover $notchedOutline":{borderColor:t}},"&$focused $notchedOutline":{borderColor:e.palette.primary.main,borderWidth:2},"&$error $notchedOutline":{borderColor:e.palette.error.main},"&$disabled $notchedOutline":{borderColor:e.palette.action.disabled}},colorSecondary:{"&$focused $notchedOutline":{borderColor:e.palette.secondary.main}},focused:{},disabled:{},adornedStart:{paddingLeft:14},adornedEnd:{paddingRight:14},error:{},marginDense:{},multiline:{padding:"18.5px 14px","&$marginDense":{paddingTop:10.5,paddingBottom:10.5}},notchedOutline:{borderColor:t},input:{padding:"18.5px 14px","&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.type?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.type?null:"#fff",caretColor:"light"===e.palette.type?null:"#fff",borderRadius:"inherit"}},inputMarginDense:{paddingTop:10.5,paddingBottom:10.5},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}}),{name:"MuiOutlinedInput"})(Ef);function Sf(){return r.useContext(of)}var Of=r.forwardRef((function(e,t){var n=e.children,o=e.classes,i=e.className,a=(e.color,e.component),l=void 0===a?"label":a,s=(e.disabled,e.error,e.filled,e.focused,e.required,(0,fo.Z)(e,["children","classes","className","color","component","disabled","error","filled","focused","required"])),u=tf({props:e,muiFormControl:Sf(),states:["color","required","focused","disabled","error","filled"]});return r.createElement(l,(0,po.Z)({className:(0,vo.Z)(o.root,o["color".concat((0,Fo.Z)(u.color||"primary"))],i,u.disabled&&o.disabled,u.error&&o.error,u.filled&&o.filled,u.focused&&o.focused,u.required&&o.required),ref:t},s),n,u.required&&r.createElement("span",{"aria-hidden":!0,className:(0,vo.Z)(o.asterisk,u.error&&o.error)}," ","*"))})),kf=(0,go.Z)((function(e){return{root:(0,po.Z)({color:e.palette.text.secondary},e.typography.body1,{lineHeight:1,padding:0,"&$focused":{color:e.palette.primary.main},"&$disabled":{color:e.palette.text.disabled},"&$error":{color:e.palette.error.main}}),colorSecondary:{"&$focused":{color:e.palette.secondary.main}},focused:{},disabled:{},error:{},filled:{},required:{},asterisk:{"&$error":{color:e.palette.error.main}}}}),{name:"MuiFormLabel"})(Of),Cf=r.forwardRef((function(e,t){var n=e.classes,o=e.className,i=e.disableAnimation,a=void 0!==i&&i,l=(e.margin,e.shrink),s=(e.variant,(0,fo.Z)(e,["classes","className","disableAnimation","margin","shrink","variant"])),u=Sf(),c=l;void 0===c&&u&&(c=u.filled||u.focused||u.adornedStart);var f=tf({props:e,muiFormControl:u,states:["margin","variant"]});return r.createElement(kf,(0,po.Z)({"data-shrink":c,className:(0,vo.Z)(n.root,o,u&&n.formControl,!a&&n.animated,c&&n.shrink,"dense"===f.margin&&n.marginDense,{filled:n.filled,outlined:n.outlined}[f.variant]),classes:{focused:n.focused,disabled:n.disabled,error:n.error,required:n.required,asterisk:n.asterisk},ref:t},s))})),Pf=(0,go.Z)((function(e){return{root:{display:"block",transformOrigin:"top left"},focused:{},disabled:{},error:{},required:{},asterisk:{},formControl:{position:"absolute",left:0,top:0,transform:"translate(0, 24px) scale(1)"},marginDense:{transform:"translate(0, 21px) scale(1)"},shrink:{transform:"translate(0, 1.5px) scale(0.75)",transformOrigin:"top left"},animated:{transition:e.transitions.create(["color","transform"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},filled:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 20px) scale(1)","&$marginDense":{transform:"translate(12px, 17px) scale(1)"},"&$shrink":{transform:"translate(12px, 10px) scale(0.75)","&$marginDense":{transform:"translate(12px, 7px) scale(0.75)"}}},outlined:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 20px) scale(1)","&$marginDense":{transform:"translate(14px, 12px) scale(1)"},"&$shrink":{transform:"translate(14px, -6px) scale(0.75)"}}}}),{name:"MuiInputLabel"})(Cf),jf=r.forwardRef((function(e,t){var n=e.children,o=e.classes,i=e.className,a=e.color,l=void 0===a?"primary":a,s=e.component,u=void 0===s?"div":s,c=e.disabled,f=void 0!==c&&c,d=e.error,p=void 0!==d&&d,h=e.fullWidth,m=void 0!==h&&h,v=e.focused,g=e.hiddenLabel,y=void 0!==g&&g,b=e.margin,w=void 0===b?"none":b,x=e.required,E=void 0!==x&&x,_=e.size,S=e.variant,O=void 0===S?"standard":S,k=(0,fo.Z)(e,["children","classes","className","color","component","disabled","error","fullWidth","focused","hiddenLabel","margin","required","size","variant"]),C=r.useState((function(){var e=!1;return n&&r.Children.forEach(n,(function(t){if((0,Bc.Z)(t,["Input","Select"])){var n=(0,Bc.Z)(t,["Select"])?t.props.input:t;n&&n.props.startAdornment&&(e=!0)}})),e})),P=C[0],j=C[1],T=r.useState((function(){var e=!1;return n&&r.Children.forEach(n,(function(t){(0,Bc.Z)(t,["Input","Select"])&&df(t.props,!0)&&(e=!0)})),e})),A=T[0],I=T[1],R=r.useState(!1),N=R[0],D=R[1],M=void 0!==v?v:N;f&&M&&D(!1);var L=r.useCallback((function(){I(!0)}),[]),F={adornedStart:P,setAdornedStart:j,color:l,disabled:f,error:p,filled:A,focused:M,fullWidth:m,hiddenLabel:y,margin:("small"===_?"dense":void 0)||w,onBlur:function(){D(!1)},onEmpty:r.useCallback((function(){I(!1)}),[]),onFilled:L,onFocus:function(){D(!0)},registerEffect:void 0,required:E,variant:O};return r.createElement(of.Provider,{value:F},r.createElement(u,(0,po.Z)({className:(0,vo.Z)(o.root,i,"none"!==w&&o["margin".concat((0,Fo.Z)(w))],m&&o.fullWidth),ref:t},k),n))})),Tf=(0,go.Z)({root:{display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},marginNormal:{marginTop:16,marginBottom:8},marginDense:{marginTop:8,marginBottom:4},fullWidth:{width:"100%"}},{name:"MuiFormControl"})(jf),Af=r.forwardRef((function(e,t){var n=e.children,o=e.classes,i=e.className,a=e.component,l=void 0===a?"p":a,s=(e.disabled,e.error,e.filled,e.focused,e.margin,e.required,e.variant,(0,fo.Z)(e,["children","classes","className","component","disabled","error","filled","focused","margin","required","variant"])),u=tf({props:e,muiFormControl:Sf(),states:["variant","margin","disabled","error","filled","focused","required"]});return r.createElement(l,(0,po.Z)({className:(0,vo.Z)(o.root,("filled"===u.variant||"outlined"===u.variant)&&o.contained,i,u.disabled&&o.disabled,u.error&&o.error,u.filled&&o.filled,u.focused&&o.focused,u.required&&o.required,"dense"===u.margin&&o.marginDense),ref:t},s)," "===n?r.createElement("span",{dangerouslySetInnerHTML:{__html:"&#8203;"}}):n)})),If=(0,go.Z)((function(e){return{root:(0,po.Z)({color:e.palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,margin:0,"&$disabled":{color:e.palette.text.disabled},"&$error":{color:e.palette.error.main}}),error:{},disabled:{},marginDense:{marginTop:4},contained:{marginLeft:14,marginRight:14},focused:{},filled:{},required:{}}}),{name:"MuiFormHelperText"})(Af),Rf=n(65835);function Nf(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var Df={entering:{opacity:1,transform:Nf(1)},entered:{opacity:1,transform:"none"}},Mf=r.forwardRef((function(e,t){var n=e.children,o=e.disableStrictModeCompat,i=void 0!==o&&o,a=e.in,l=e.onEnter,s=e.onEntered,u=e.onEntering,c=e.onExit,f=e.onExited,d=e.onExiting,p=e.style,h=e.timeout,m=void 0===h?"auto":h,v=e.TransitionComponent,g=void 0===v?fs:v,y=(0,fo.Z)(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),b=r.useRef(),w=r.useRef(),x=hs(),E=x.unstable_strictMode&&!i,_=r.useRef(null),S=(0,bo.Z)(n.ref,t),O=(0,bo.Z)(E?_:void 0,S),k=function(e){return function(t,n){if(e){var r=E?[_.current,t]:[t,n],o=(0,ls.Z)(r,2),i=o[0],a=o[1];void 0===a?e(i):e(i,a)}}},C=k(u),P=k((function(e,t){ms(e);var n,r=vs({style:p,timeout:m},{mode:"enter"}),o=r.duration,i=r.delay;"auto"===m?(n=x.transitions.getAutoHeightDuration(e.clientHeight),w.current=n):n=o,e.style.transition=[x.transitions.create("opacity",{duration:n,delay:i}),x.transitions.create("transform",{duration:.666*n,delay:i})].join(","),l&&l(e,t)})),j=k(s),T=k(d),A=k((function(e){var t,n=vs({style:p,timeout:m},{mode:"exit"}),r=n.duration,o=n.delay;"auto"===m?(t=x.transitions.getAutoHeightDuration(e.clientHeight),w.current=t):t=r,e.style.transition=[x.transitions.create("opacity",{duration:t,delay:o}),x.transitions.create("transform",{duration:.666*t,delay:o||.333*t})].join(","),e.style.opacity="0",e.style.transform=Nf(.75),c&&c(e)})),I=k(f);return r.useEffect((function(){return function(){clearTimeout(b.current)}}),[]),r.createElement(g,(0,po.Z)({appear:!0,in:a,nodeRef:E?_:void 0,onEnter:P,onEntered:j,onEntering:C,onExit:A,onExited:I,onExiting:T,addEndListener:function(e,t){var n=E?e:t;"auto"===m&&(b.current=setTimeout(n,w.current||0))},timeout:"auto"===m?null:m},y),(function(e,t){return r.cloneElement(n,(0,po.Z)({style:(0,po.Z)({opacity:0,transform:Nf(.75),visibility:"exited"!==e||a?void 0:"hidden"},Df[e],p,n.props.style),ref:O},t))}))}));Mf.muiSupportAuto=!0;var Lf=Mf;function Ff(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function zf(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Bf(e){return[e.horizontal,e.vertical].map((function(e){return"number"==typeof e?"".concat(e,"px"):e})).join(" ")}function Uf(e){return"function"==typeof e?e():e}var Zf=r.forwardRef((function(e,t){var n=e.action,i=e.anchorEl,a=e.anchorOrigin,l=void 0===a?{vertical:"top",horizontal:"left"}:a,s=e.anchorPosition,u=e.anchorReference,c=void 0===u?"anchorEl":u,f=e.children,d=e.classes,p=e.className,h=e.container,m=e.elevation,v=void 0===m?8:m,g=e.getContentAnchorEl,y=e.marginThreshold,b=void 0===y?16:y,w=e.onEnter,x=e.onEntered,E=e.onEntering,_=e.onExit,S=e.onExited,O=e.onExiting,k=e.open,C=e.PaperProps,P=void 0===C?{}:C,j=e.transformOrigin,T=void 0===j?{vertical:"top",horizontal:"left"}:j,A=e.TransitionComponent,I=void 0===A?Lf:A,R=e.transitionDuration,N=void 0===R?"auto":R,D=e.TransitionProps,M=void 0===D?{}:D,L=(0,fo.Z)(e,["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","classes","className","container","elevation","getContentAnchorEl","marginThreshold","onEnter","onEntered","onEntering","onExit","onExited","onExiting","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"]),F=r.useRef(),z=r.useCallback((function(e){if("anchorPosition"===c)return s;var t=Uf(i),n=(t&&1===t.nodeType?t:(0,Zl.Z)(F.current).body).getBoundingClientRect(),r=0===e?l.vertical:"center";return{top:n.top+Ff(n,r),left:n.left+zf(n,l.horizontal)}}),[i,l.horizontal,l.vertical,s,c]),B=r.useCallback((function(e){var t=0;if(g&&"anchorEl"===c){var n=g(e);if(n&&e.contains(n)){var r=function(e,t){for(var n=t,r=0;n&&n!==e;)r+=(n=n.parentElement).scrollTop;return r}(e,n);t=n.offsetTop+n.clientHeight/2-r||0}0}return t}),[l.vertical,c,g]),U=r.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:Ff(e,T.vertical)+t,horizontal:zf(e,T.horizontal)}}),[T.horizontal,T.vertical]),Z=r.useCallback((function(e){var t=B(e),n={width:e.offsetWidth,height:e.offsetHeight},r=U(n,t);if("none"===c)return{top:null,left:null,transformOrigin:Bf(r)};var o=z(t),a=o.top-r.vertical,l=o.left-r.horizontal,s=a+n.height,u=l+n.width,f=(0,ql.Z)(Uf(i)),d=f.innerHeight-b,p=f.innerWidth-b;if(a<b){var h=a-b;a-=h,r.vertical+=h}else if(s>d){var m=s-d;a-=m,r.vertical+=m}if(l<b){var v=l-b;l-=v,r.horizontal+=v}else if(u>p){var g=u-p;l-=g,r.horizontal+=g}return{top:"".concat(Math.round(a),"px"),left:"".concat(Math.round(l),"px"),transformOrigin:Bf(r)}}),[i,c,z,B,U,b]),H=r.useCallback((function(){var e=F.current;if(e){var t=Z(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}}),[Z]),W=r.useCallback((function(e){F.current=o.findDOMNode(e)}),[]);r.useEffect((function(){k&&H()})),r.useImperativeHandle(n,(function(){return k?{updatePosition:function(){H()}}:null}),[k,H]),r.useEffect((function(){if(k){var e=(0,af.Z)((function(){H()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[k,H]);var V=N;"auto"!==N||I.muiSupportAuto||(V=void 0);var G=h||(i?(0,Zl.Z)(Uf(i)).body:void 0);return r.createElement(as,(0,po.Z)({container:G,open:k,ref:t,BackdropProps:{invisible:!0},className:(0,vo.Z)(d.root,p)},L),r.createElement(I,(0,po.Z)({appear:!0,in:k,onEnter:w,onEntered:x,onExit:_,onExited:S,onExiting:O,timeout:V},M,{onEntering:(0,Gl.Z)((function(e,t){E&&E(e,t),H()}),M.onEntering)}),r.createElement(_s,(0,po.Z)({elevation:v,ref:W},P,{className:(0,vo.Z)(d.paper,P.className)}),f)))})),Hf=(0,go.Z)({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(Zf),Wf=r.forwardRef((function(e,t){var n=e.children,o=e.classes,i=e.className,a=e.component,l=void 0===a?"ul":a,s=e.dense,u=void 0!==s&&s,c=e.disablePadding,f=void 0!==c&&c,d=e.subheader,p=(0,fo.Z)(e,["children","classes","className","component","dense","disablePadding","subheader"]),h=r.useMemo((function(){return{dense:u}}),[u]);return r.createElement(Uc.Provider,{value:h},r.createElement(l,(0,po.Z)({className:(0,vo.Z)(o.root,i,u&&o.dense,!f&&o.padding,d&&o.subheader),ref:t},p),d,n))})),Vf=(0,go.Z)({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(Wf);function Gf(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function $f(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Kf(e,t){if(void 0===t)return!0;var n=e.innerText;return void 0===n&&(n=e.textContent),0!==(n=n.trim().toLowerCase()).length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function qf(e,t,n,r,o,i){for(var a=!1,l=o(e,t,!!t&&n);l;){if(l===e.firstChild){if(a)return;a=!0}var s=!r&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&Kf(l,i)&&!s)return void l.focus();l=o(e,l,n)}}var Yf="undefined"==typeof window?r.useEffect:r.useLayoutEffect,Jf=r.forwardRef((function(e,t){var n=e.actions,i=e.autoFocus,a=void 0!==i&&i,l=e.autoFocusItem,s=void 0!==l&&l,u=e.children,c=e.className,f=e.disabledItemsFocusable,d=void 0!==f&&f,p=e.disableListWrap,h=void 0!==p&&p,m=e.onKeyDown,v=e.variant,g=void 0===v?"selectedMenu":v,y=(0,fo.Z)(e,["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"]),b=r.useRef(null),w=r.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Yf((function(){a&&b.current.focus()}),[a]),r.useImperativeHandle(n,(function(){return{adjustStyleForScrollbar:function(e,t){var n=!b.current.style.width;if(e.clientHeight<b.current.clientHeight&&n){var r="".concat(Kl(),"px");b.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=r,b.current.style.width="calc(100% + ".concat(r,")")}return b.current}}}),[]);var x=r.useCallback((function(e){b.current=o.findDOMNode(e)}),[]),E=(0,bo.Z)(x,t),_=-1;r.Children.forEach(u,(function(e,t){r.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===_)&&(_=t))}));var S=r.Children.map(u,(function(e,t){if(t===_){var n={};return s&&(n.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===g&&(n.tabIndex=0),r.cloneElement(e,n)}return e}));return r.createElement(Vf,(0,po.Z)({role:"menu",ref:E,className:c,onKeyDown:function(e){var t=b.current,n=e.key,r=(0,Zl.Z)(t).activeElement;if("ArrowDown"===n)e.preventDefault(),qf(t,r,h,d,Gf);else if("ArrowUp"===n)e.preventDefault(),qf(t,r,h,d,$f);else if("Home"===n)e.preventDefault(),qf(t,null,h,d,Gf);else if("End"===n)e.preventDefault(),qf(t,null,h,d,$f);else if(1===n.length){var o=w.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);var l=r&&!o.repeating&&Kf(r,o);o.previousKeyMatched&&(l||qf(t,r,!1,d,Gf,o))?e.preventDefault():o.previousKeyMatched=!1}m&&m(e)},tabIndex:a?0:-1},y),S)})),Xf={vertical:"top",horizontal:"right"},Qf={vertical:"top",horizontal:"left"},ed=r.forwardRef((function(e,t){var n=e.autoFocus,i=void 0===n||n,a=e.children,l=e.classes,s=e.disableAutoFocusItem,u=void 0!==s&&s,c=e.MenuListProps,f=void 0===c?{}:c,d=e.onClose,p=e.onEntering,h=e.open,m=e.PaperProps,v=void 0===m?{}:m,g=e.PopoverClasses,y=e.transitionDuration,b=void 0===y?"auto":y,w=e.variant,x=void 0===w?"selectedMenu":w,E=(0,fo.Z)(e,["autoFocus","children","classes","disableAutoFocusItem","MenuListProps","onClose","onEntering","open","PaperProps","PopoverClasses","transitionDuration","variant"]),_=hs(),S=i&&!u&&h,O=r.useRef(null),k=r.useRef(null),C=-1;r.Children.map(a,(function(e,t){r.isValidElement(e)&&(e.props.disabled||("menu"!==x&&e.props.selected||-1===C)&&(C=t))}));var P=r.Children.map(a,(function(e,t){return t===C?r.cloneElement(e,{ref:function(t){k.current=o.findDOMNode(t),(0,Hl.Z)(e.ref,t)}}):e}));return r.createElement(Hf,(0,po.Z)({getContentAnchorEl:function(){return k.current},classes:g,onClose:d,onEntering:function(e,t){O.current&&O.current.adjustStyleForScrollbar(e,_),p&&p(e,t)},anchorOrigin:"rtl"===_.direction?Xf:Qf,transformOrigin:"rtl"===_.direction?Xf:Qf,PaperProps:(0,po.Z)({},v,{classes:(0,po.Z)({},v.classes,{root:l.paper})}),open:h,ref:t,transitionDuration:b},E),r.createElement(Jf,(0,po.Z)({onKeyDown:function(e){"Tab"===e.key&&(e.preventDefault(),d&&d(e,"tabKeyDown"))},actions:O,autoFocus:i&&(-1===C||u),autoFocusItem:S,variant:x},f,{className:(0,vo.Z)(l.list,f.className)}),P))})),td=(0,go.Z)({paper:{maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"},list:{outline:0}},{name:"MuiMenu"})(ed),nd=n(22775);function rd(e,t){return"object"===(0,H.Z)(t)&&null!==t?e===t:String(e)===String(t)}var od=r.forwardRef((function(e,t){var n=e["aria-label"],o=e.autoFocus,i=e.autoWidth,a=e.children,l=e.classes,s=e.className,u=e.defaultValue,c=e.disabled,f=e.displayEmpty,d=e.IconComponent,p=e.inputRef,h=e.labelId,m=e.MenuProps,v=void 0===m?{}:m,g=e.multiple,y=e.name,b=e.onBlur,w=e.onChange,x=e.onClose,E=e.onFocus,_=e.onOpen,S=e.open,O=e.readOnly,k=e.renderValue,C=e.SelectDisplayProps,P=void 0===C?{}:C,j=e.tabIndex,T=(e.type,e.value),A=e.variant,I=void 0===A?"standard":A,R=(0,fo.Z)(e,["aria-label","autoFocus","autoWidth","children","classes","className","defaultValue","disabled","displayEmpty","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"]),N=(0,nd.Z)({controlled:T,default:u,name:"Select"}),D=(0,ls.Z)(N,2),M=D[0],L=D[1],F=r.useRef(null),z=r.useState(null),B=z[0],U=z[1],Z=r.useRef(null!=S).current,H=r.useState(),W=H[0],V=H[1],G=r.useState(!1),$=G[0],K=G[1],q=(0,bo.Z)(t,p);r.useImperativeHandle(q,(function(){return{focus:function(){B.focus()},node:F.current,value:M}}),[B,M]),r.useEffect((function(){o&&B&&B.focus()}),[o,B]),r.useEffect((function(){if(B){var e=(0,Zl.Z)(B).getElementById(h);if(e){var t=function(){getSelection().isCollapsed&&B.focus()};return e.addEventListener("click",t),function(){e.removeEventListener("click",t)}}}}),[h,B]);var Y,J,X=function(e,t){e?_&&_(t):x&&x(t),Z||(V(i?null:B.clientWidth),K(e))},Q=r.Children.toArray(a),ee=function(e){return function(t){var n;if(g||X(!1,t),g){n=Array.isArray(M)?M.slice():[];var r=M.indexOf(e.props.value);-1===r?n.push(e.props.value):n.splice(r,1)}else n=e.props.value;e.props.onClick&&e.props.onClick(t),M!==n&&(L(n),w&&(t.persist(),Object.defineProperty(t,"target",{writable:!0,value:{value:n,name:y}}),w(t,e)))}},te=null!==B&&(Z?S:$);delete R["aria-invalid"];var ne=[],re=!1;(df({value:M})||f)&&(k?Y=k(M):re=!0);var oe=Q.map((function(e){if(!r.isValidElement(e))return null;var t;if(g){if(!Array.isArray(M))throw new Error((0,ef.Z)(2));(t=M.some((function(t){return rd(t,e.props.value)})))&&re&&ne.push(e.props.children)}else(t=rd(M,e.props.value))&&re&&(J=e.props.children);return t&&!0,r.cloneElement(e,{"aria-selected":t?"true":void 0,onClick:ee(e),onKeyUp:function(t){" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));re&&(Y=g?ne.join(", "):J);var ie,ae=W;!i&&Z&&B&&(ae=B.clientWidth),ie=void 0!==j?j:c?null:0;var le=P.id||(y?"mui-component-select-".concat(y):void 0);return r.createElement(r.Fragment,null,r.createElement("div",(0,po.Z)({className:(0,vo.Z)(l.root,l.select,l.selectMenu,l[I],s,c&&l.disabled),ref:U,tabIndex:ie,role:"button","aria-disabled":c?"true":void 0,"aria-expanded":te?"true":void 0,"aria-haspopup":"listbox","aria-label":n,"aria-labelledby":[h,le].filter(Boolean).join(" ")||void 0,onKeyDown:function(e){if(!O){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),X(!0,e))}},onMouseDown:c||O?null:function(e){0===e.button&&(e.preventDefault(),B.focus(),X(!0,e))},onBlur:function(e){!te&&b&&(e.persist(),Object.defineProperty(e,"target",{writable:!0,value:{value:M,name:y}}),b(e))},onFocus:E},P,{id:le}),function(e){return null==e||"string"==typeof e&&!e.trim()}(Y)?r.createElement("span",{dangerouslySetInnerHTML:{__html:"&#8203;"}}):Y),r.createElement("input",(0,po.Z)({value:Array.isArray(M)?M.join(","):M,name:y,ref:F,"aria-hidden":!0,onChange:function(e){var t=Q.map((function(e){return e.props.value})).indexOf(e.target.value);if(-1!==t){var n=Q[t];L(n.props.value),w&&w(e,n)}},tabIndex:-1,className:l.nativeInput,autoFocus:o},R)),r.createElement(d,{className:(0,vo.Z)(l.icon,l["icon".concat((0,Fo.Z)(I))],te&&l.iconOpen,c&&l.disabled)}),r.createElement(td,(0,po.Z)({id:"menu-".concat(y||""),anchorEl:B,open:te,onClose:function(e){X(!1,e)}},v,{MenuListProps:(0,po.Z)({"aria-labelledby":h,role:"listbox",disableListWrap:!0},v.MenuListProps),PaperProps:(0,po.Z)({},v.PaperProps,{style:(0,po.Z)({minWidth:ae},null!=v.PaperProps?v.PaperProps.style:null)})}),oe))})),id=n(63786),ad=(0,id.Z)(r.createElement("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),ld=r.forwardRef((function(e,t){var n=e.classes,o=e.className,i=e.disabled,a=e.IconComponent,l=e.inputRef,s=e.variant,u=void 0===s?"standard":s,c=(0,fo.Z)(e,["classes","className","disabled","IconComponent","inputRef","variant"]);return r.createElement(r.Fragment,null,r.createElement("select",(0,po.Z)({className:(0,vo.Z)(n.root,n.select,n[u],o,i&&n.disabled),disabled:i,ref:l||t},c)),e.multiple?null:r.createElement(a,{className:(0,vo.Z)(n.icon,n["icon".concat((0,Fo.Z)(u))],i&&n.disabled)}))})),sd=function(e){return{root:{},select:{"-moz-appearance":"none","-webkit-appearance":"none",userSelect:"none",borderRadius:0,minWidth:16,cursor:"pointer","&:focus":{backgroundColor:"light"===e.palette.type?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)",borderRadius:0},"&::-ms-expand":{display:"none"},"&$disabled":{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:e.palette.background.paper},"&&":{paddingRight:24}},filled:{"&&":{paddingRight:32}},outlined:{borderRadius:e.shape.borderRadius,"&&":{paddingRight:32}},selectMenu:{height:"auto",minHeight:"1.1876em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},disabled:{},icon:{position:"absolute",right:0,top:"calc(50% - 12px)",pointerEvents:"none",color:e.palette.action.active,"&$disabled":{color:e.palette.action.disabled}},iconOpen:{transform:"rotate(180deg)"},iconFilled:{right:7},iconOutlined:{right:7},nativeInput:{bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%"}}},ud=r.createElement(gf,null),cd=r.forwardRef((function(e,t){var n=e.children,o=e.classes,i=e.IconComponent,a=void 0===i?ad:i,l=e.input,s=void 0===l?ud:l,u=e.inputProps,c=(e.variant,(0,fo.Z)(e,["children","classes","IconComponent","input","inputProps","variant"])),f=tf({props:e,muiFormControl:Sf(),states:["variant"]});return r.cloneElement(s,(0,po.Z)({inputComponent:ld,inputProps:(0,po.Z)({children:n,classes:o,IconComponent:a,variant:f.variant,type:void 0},u,s?s.props.inputProps:{}),ref:t},c))}));cd.muiName="Select";(0,go.Z)(sd,{name:"MuiNativeSelect"})(cd);var fd=sd,dd=r.createElement(gf,null),pd=r.createElement(bf,null),hd=r.forwardRef((function e(t,n){var o=t.autoWidth,i=void 0!==o&&o,a=t.children,l=t.classes,s=t.displayEmpty,u=void 0!==s&&s,c=t.IconComponent,f=void 0===c?ad:c,d=t.id,p=t.input,h=t.inputProps,m=t.label,v=t.labelId,g=t.labelWidth,y=void 0===g?0:g,b=t.MenuProps,w=t.multiple,x=void 0!==w&&w,E=t.native,_=void 0!==E&&E,S=t.onClose,O=t.onOpen,k=t.open,C=t.renderValue,P=t.SelectDisplayProps,j=t.variant,T=void 0===j?"standard":j,A=(0,fo.Z)(t,["autoWidth","children","classes","displayEmpty","IconComponent","id","input","inputProps","label","labelId","labelWidth","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"]),I=_?ld:od,R=tf({props:t,muiFormControl:Sf(),states:["variant"]}).variant||T,N=p||{standard:dd,outlined:r.createElement(_f,{label:m,labelWidth:y}),filled:pd}[R];return r.cloneElement(N,(0,po.Z)({inputComponent:I,inputProps:(0,po.Z)({children:a,IconComponent:f,variant:R,type:void 0,multiple:x},_?{id:d}:{autoWidth:i,displayEmpty:u,labelId:v,MenuProps:b,onClose:S,onOpen:O,open:k,renderValue:C,SelectDisplayProps:(0,po.Z)({id:d},P)},h,{classes:h?(0,Rf.Z)({baseClasses:l,newClasses:h.classes,Component:e}):l},p?p.props.inputProps:{}),ref:n},A))}));hd.muiName="Select";var md=(0,go.Z)(fd,{name:"MuiSelect"})(hd),vd={standard:gf,filled:bf,outlined:_f},gd=r.forwardRef((function(e,t){var n=e.autoComplete,o=e.autoFocus,i=void 0!==o&&o,a=e.children,l=e.classes,s=e.className,u=e.color,c=void 0===u?"primary":u,f=e.defaultValue,d=e.disabled,p=void 0!==d&&d,h=e.error,m=void 0!==h&&h,v=e.FormHelperTextProps,g=e.fullWidth,y=void 0!==g&&g,b=e.helperText,w=e.hiddenLabel,x=e.id,E=e.InputLabelProps,_=e.inputProps,S=e.InputProps,O=e.inputRef,k=e.label,C=e.multiline,P=void 0!==C&&C,j=e.name,T=e.onBlur,A=e.onChange,I=e.onFocus,R=e.placeholder,N=e.required,D=void 0!==N&&N,M=e.rows,L=e.rowsMax,F=e.select,z=void 0!==F&&F,B=e.SelectProps,U=e.type,Z=e.value,H=e.variant,W=void 0===H?"standard":H,V=(0,fo.Z)(e,["autoComplete","autoFocus","children","classes","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","hiddenLabel","id","InputLabelProps","inputProps","InputProps","inputRef","label","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","rowsMax","select","SelectProps","type","value","variant"]);var G={};if("outlined"===W&&(E&&void 0!==E.shrink&&(G.notched=E.shrink),k)){var $,K=null!==($=null==E?void 0:E.required)&&void 0!==$?$:D;G.label=r.createElement(r.Fragment,null,k,K&&" *")}z&&(B&&B.native||(G.id=void 0),G["aria-describedby"]=void 0);var q=b&&x?"".concat(x,"-helper-text"):void 0,Y=k&&x?"".concat(x,"-label"):void 0,J=vd[W],X=r.createElement(J,(0,po.Z)({"aria-describedby":q,autoComplete:n,autoFocus:i,defaultValue:f,fullWidth:y,multiline:P,name:j,rows:M,rowsMax:L,type:U,value:Z,id:x,inputRef:O,onBlur:T,onChange:A,onFocus:I,placeholder:R,inputProps:_},G,S));return r.createElement(Tf,(0,po.Z)({className:(0,vo.Z)(l.root,s),disabled:p,error:m,fullWidth:y,hiddenLabel:w,ref:t,required:D,color:c,variant:W},V),k&&r.createElement(Pf,(0,po.Z)({htmlFor:x,id:Y},E),k),z?r.createElement(md,(0,po.Z)({"aria-describedby":q,id:x,labelId:Y,value:Z,input:X},B),a):X,b&&r.createElement(If,(0,po.Z)({id:q},v),b))})),yd=(0,go.Z)({root:{}},{name:"MuiTextField"})(gd),bd=n(71739),wd=n.n(bd),xd=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function Ed(e){var t={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},n=e.match(/<\/?([^\s]+?)[/\s>]/);if(n&&(t.name=n[1],(wd()[n[1]]||"/"===e.charAt(e.length-2))&&(t.voidElement=!0),t.name.startsWith("!--"))){var r=e.indexOf("--\x3e");return{type:"comment",comment:-1!==r?e.slice(4,r):""}}for(var o=new RegExp(xd),i=null;null!==(i=o.exec(e));)if(i[0].trim())if(i[1]){var a=i[1].trim(),l=[a,""];a.indexOf("=")>-1&&(l=a.split("=")),t.attrs[l[0]]=l[1],o.lastIndex--}else i[2]&&(t.attrs[i[2]]=i[3].trim().substring(1,i[3].length-1));return t}var _d=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,Sd=/^\s*$/,Od=Object.create(null);function kd(e,t){switch(t.type){case"text":return e+t.content;case"tag":return e+="<"+t.name+(t.attrs?function(e){var t=[];for(var n in e)t.push(n+'="'+e[n]+'"');return t.length?" "+t.join(" "):""}(t.attrs):"")+(t.voidElement?"/>":">"),t.voidElement?e:e+t.children.reduce(kd,"")+"</"+t.name+">";case"comment":return e+"\x3c!--"+t.comment+"--\x3e"}}var Cd={parse:function(e,t){t||(t={}),t.components||(t.components=Od);var n,r=[],o=[],i=-1,a=!1;if(0!==e.indexOf("<")){var l=e.indexOf("<");r.push({type:"text",content:-1===l?e:e.substring(0,l)})}return e.replace(_d,(function(l,s){if(a){if(l!=="</"+n.name+">")return;a=!1}var u,c="/"!==l.charAt(1),f=l.startsWith("\x3c!--"),d=s+l.length,p=e.charAt(d);if(f){var h=Ed(l);return i<0?(r.push(h),r):((u=o[i]).children.push(h),r)}if(c&&(i++,"tag"===(n=Ed(l)).type&&t.components[n.name]&&(n.type="component",a=!0),n.voidElement||a||!p||"<"===p||n.children.push({type:"text",content:e.slice(d,e.indexOf("<",d))}),0===i&&r.push(n),(u=o[i-1])&&u.children.push(n),o[i]=n),(!c||n.voidElement)&&(i>-1&&(n.voidElement||n.name===l.slice(2,-1))&&(i--,n=-1===i?r:o[i]),!a&&"<"!==p&&p)){u=-1===i?r:o[i].children;var m=e.indexOf("<",d),v=e.slice(d,-1===m?void 0:m);Sd.test(v)&&(v=" "),(m>-1&&i+u.length>=0||" "!==v)&&u.push({type:"text",content:v})}})),r},stringify:function(e){return e.reduce((function(e,t){return e+kd("",t)}),"")}},Pd="".replace,jd=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34);/g,Td={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"'};function Ad(e){return Td[e]}function Id(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Rd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Id(Object(n),!0).forEach((function(t){(0,J.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Id(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Nd,Dd={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0},Md=r.createContext();!function(){function e(){W(this,e),this.usedNamespaces={}}(0,V.Z)(e,[{key:"addUsedNamespaces",value:function(e){var t=this;e.forEach((function(e){t.usedNamespaces[e]||(t.usedNamespaces[e]=!0)}))}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}])}();function Ld(){return Nd}var Fd={type:"3rdParty",init:function(e){!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Dd=Rd(Rd({},Dd),e)}(e.options.react),function(e){Nd=e}(e)}};function zd(){if(console&&console.warn){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];"string"==typeof n[0]&&(n[0]="react-i18next:: ".concat(n[0])),(e=console).warn.apply(e,n)}}var Bd={};function Ud(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];"string"==typeof t[0]&&Bd[t[0]]||("string"==typeof t[0]&&(Bd[t[0]]=new Date),zd.apply(void 0,t))}var Zd=["format"],Hd=["children","count","parent","i18nKey","tOptions","values","defaults","components","ns","i18n","t","shouldUnescape"];function Wd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wd(Object(n),!0).forEach((function(t){(0,J.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Gd(e,t){if(!e)return!1;var n=e.props?e.props.children:e.children;return t?n.length>0:!!n}function $d(e){return e?e&&e.children?e.children:e.props&&e.props.children:[]}function Kd(e){return Array.isArray(e)?e:[e]}function qd(e,t,n,o,i,a){if(""===t)return[];var l=o.transKeepBasicHtmlNodesFor||[],s=t&&new RegExp(l.join("|")).test(t);if(!e&&!s)return[t];var u={};!function e(t){Kd(t).forEach((function(t){"string"!=typeof t&&(Gd(t)?e($d(t)):"object"!==(0,H.Z)(t)||r.isValidElement(t)||Object.assign(u,t))}))}(e);var c=Cd.parse("<0>".concat(t,"</0>")),f=Vd(Vd({},u),i);function d(e,t,n){var o=$d(e),i=h(o,t.children,n);return function(e){return"[object Array]"===Object.prototype.toString.call(e)&&e.every((function(e){return r.isValidElement(e)}))}(o)&&0===i.length?o:i}function p(e,t,n,o,i){e.dummy&&(e.children=t),n.push(r.cloneElement(e,Vd(Vd({},e.props),{},{key:o}),i?void 0:t))}function h(t,i,u){var c=Kd(t);return Kd(i).reduce((function(t,i,m){var v,g,y,b=i.children&&i.children[0]&&i.children[0].content&&n.services.interpolator.interpolate(i.children[0].content,f,n.language);if("tag"===i.type){var w=c[parseInt(i.name,10)];!w&&1===u.length&&u[0][i.name]&&(w=u[0][i.name]),w||(w={});var x=0!==Object.keys(i.attrs).length?(v={props:i.attrs},(y=Vd({},g=w)).props=Object.assign(v.props,g.props),y):w,E=r.isValidElement(x),_=E&&Gd(i,!0)&&!i.voidElement,S=s&&"object"===(0,H.Z)(x)&&x.dummy&&!E,O="object"===(0,H.Z)(e)&&null!==e&&Object.hasOwnProperty.call(e,i.name);if("string"==typeof x){var k=n.services.interpolator.interpolate(x,f,n.language);t.push(k)}else if(Gd(x)||_){p(x,d(x,i,u),t,m)}else if(S){var C=h(c,i.children,u);t.push(r.cloneElement(x,Vd(Vd({},x.props),{},{key:m}),C))}else if(Number.isNaN(parseFloat(i.name))){if(O)p(x,d(x,i,u),t,m,i.voidElement);else if(o.transSupportBasicHtmlNodes&&l.indexOf(i.name)>-1)if(i.voidElement)t.push(r.createElement(i.name,{key:"".concat(i.name,"-").concat(m)}));else{var P=h(c,i.children,u);t.push(r.createElement(i.name,{key:"".concat(i.name,"-").concat(m)},P))}else if(i.voidElement)t.push("<".concat(i.name," />"));else{var j=h(c,i.children,u);t.push("<".concat(i.name,">").concat(j,"</").concat(i.name,">"))}}else if("object"!==(0,H.Z)(x)||E)1===i.children.length&&b?t.push(r.cloneElement(x,Vd(Vd({},x.props),{},{key:m}),b)):t.push(r.cloneElement(x,Vd(Vd({},x.props),{},{key:m})));else{var T=i.children[0]?b:null;T&&t.push(T)}}else if("text"===i.type){var A=o.transWrapTextNodes,I=a?function(e){return Pd.call(e,jd,Ad)}(n.services.interpolator.interpolate(i.content,f,n.language)):n.services.interpolator.interpolate(i.content,f,n.language);A?t.push(r.createElement(A,{key:"".concat(i.name,"-").concat(m)},I)):t.push(I)}return t}),[])}return $d(h([{dummy:!0,children:e||[]}],c,Kd(e||[]))[0])}function Yd(e){var t=e.children,n=e.count,o=e.parent,i=e.i18nKey,a=e.tOptions,l=void 0===a?{}:a,s=e.values,u=e.defaults,c=e.components,f=e.ns,d=e.i18n,p=e.t,h=e.shouldUnescape,m=(0,fo.Z)(e,Hd),v=(0,r.useContext)(Md)||{},g=v.i18n,y=v.defaultNS,b=d||g||Ld();if(!b)return Ud("You will need to pass in an i18next instance by using i18nextReactModule"),t;var w=p||b.t.bind(b)||function(e){return e},x=Vd(Vd({},Dd),b.options&&b.options.react),E=f||w.ns||y||b.options&&b.options.defaultNS;E="string"==typeof E?[E]:E||["translation"];var _=u||function e(t,n){if(!t)return"";var o="",i=Kd(t),a=n.transKeepBasicHtmlNodesFor||[];return i.forEach((function(t,i){if("string"==typeof t)o+="".concat(t);else if(r.isValidElement(t)){var l=Object.keys(t.props).length,s=a.indexOf(t.type)>-1,u=t.props.children;if(!u&&s&&0===l)o+="<".concat(t.type,"/>");else if(u||s&&0===l)if(t.props.i18nIsDynamicList)o+="<".concat(i,"></").concat(i,">");else if(s&&1===l&&"string"==typeof u)o+="<".concat(t.type,">").concat(u,"</").concat(t.type,">");else{var c=e(u,n);o+="<".concat(i,">").concat(c,"</").concat(i,">")}else o+="<".concat(i,"></").concat(i,">")}else if(null===t)zd("Trans: the passed in value is invalid - seems you passed in a null child.");else if("object"===(0,H.Z)(t)){var f=t.format,d=(0,fo.Z)(t,Zd),p=Object.keys(d);if(1===p.length){var h=f?"".concat(p[0],", ").concat(f):p[0];o+="{{".concat(h,"}}")}else zd("react-i18next: the passed in object contained more than one variable - the object should look like {{ value, format }} where format is optional.",t)}else zd("Trans: the passed in value is invalid - seems you passed in a variable like {number} - please pass in variables for interpolation as full objects like {{number}}.",t)})),o}(t,x)||x.transEmptyNodeValue||i,S=x.hashTransKey,O=i||(S?S(_):_),k=s?l.interpolation:{interpolation:Vd(Vd({},l.interpolation),{},{prefix:"#$?",suffix:"?$#"})},C=Vd(Vd(Vd(Vd({},l),{},{count:n},s),k),{},{defaultValue:_,ns:E}),P=qd(c||t,O?w(O,C):_,b,x,C,h),j=void 0!==o?o:x.defaultTransParent;return j?r.createElement(j,m,P):P}function Jd(e){var t=e.articleId,n=e.setting,o=e.size,i=void 0===o?"medium":o,a=e.tiny,l=void 0!==a&&a,s=e.style;return l?r.createElement("a",{href:"https://community.buttonizer.pro/knowledgebase/".concat(t),target:"_blank",style:s},r.createElement("i",{className:(0,vo.Z)("knowledgebase-icon",i,"fas fa-question-circle")})):r.createElement("a",{href:"https://community.buttonizer.pro/knowledgebase/".concat(t),target:"_blank",className:(0,vo.Z)("knowledgebase-link",i)},r.createElement(Yd,{i18nKey:"utils.knowledge_link",values:{setting:n},components:{bold:r.createElement("strong",null)}}))}function Xd(){return(Xd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Qd(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ep(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ep(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ep(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function tp(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function np(e){var t=e.open,n=e.buttons,o=e.onClose,i=e.text,a=e.title,l=e.defaultValue,s=e.canBeEmpty,u=void 0!==s&&s,c=e.maxWidth,f=void 0===c?"xs":c,d=e.fullWidth,p=void 0===d||d,h=e.cancelIfSameAsFirstValue,m=void 0!==h&&h,v=e.clearOnConfirm,g=void 0!==v&&v,y=e.kbLink,b=void 0===y?null:y,w=tp(e,["open","buttons","onClose","text","title","defaultValue","canBeEmpty","maxWidth","fullWidth","cancelIfSameAsFirstValue","clearOnConfirm","kbLink"]),x=[{value:"cancel",text:at("modal.cancel")},{value:"confirm",text:at("common.confirm"),focus:!0}],E=Qd(r.useState(""===l?"":l||" "),2),_=E[0],S=E[1];n||(n=x);var O=function(e){("cancel"===e||u||""!=_)&&(g&&"confirm"===e&&S(""),o(e,_))};return r.createElement(ks,Xd({open:t,maxWidth:f,fullWidth:p,onClose:function(){return O("cancel")},"aria-labelledby":"form-dialog-title"},w),r.createElement(As,{id:"form-dialog-title"},a),r.createElement(Rs,null,r.createElement(Ds,null,i),r.createElement(yd,{autoFocus:!0,value:_,onChange:function(e){return S(e.target.value)},margin:"dense",id:"name",fullWidth:!0,helperText:u||""!=_?null:at("modal.incorrect"),error:!u&&""==_,onKeyPress:function(e){13===e.charCode&&O(m&&l===_?"cancel":"confirm")}})),r.createElement("div",{style:b&&{display:"flex",justifyContent:"space-between",alignItems:"center ",paddingLeft:"24px"}},b&&r.createElement(Jd,{articleId:b,tiny:!0}),r.createElement(Ls,null,n.map((function(e,t){return r.createElement(Bo,{onClick:function(){return O(e.value)},color:"primary",key:t},e.text)})))))}function rp(){return(rp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function op(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ip(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ip(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ip(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ap(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function lp(e){var t=e.name,n=e.onChange,o=e.size,i=void 0===o?"small":o,a=e.disabled,l=void 0!==a&&a,s=ap(e,["name","onChange","size","disabled"]),u=op((0,r.useState)(!1),2),c=u[0],f=u[1];return r.createElement(r.Fragment,null,r.createElement(Al,{content:at("utils.duplicate"),shiftClick:!0},r.createElement(Us,rp({onClick:function(e){if(e.shiftKey)return n("".concat(t," Copy"));f(!0)},color:"primary",size:i,disabled:l,style:{width:"35px",height:"35px"}},s),r.createElement(Pc,{style:{overflow:"unset"},fontSize:"inherit",className:"far fa-copy"}))),r.createElement(np,{open:c,title:at("utils.duplicate"),text:"Name ".concat(t," duplicate:"),"data-testid":"duplicate-button:dialog",defaultValue:"".concat(t," Copy"),onClose:function(e,t){f(!1),"confirm"===e&&n(t)}}))}function sp(){return(sp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function up(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function cp(e){var t=e.size,n=void 0===t?"small":t,o=e.onClick,i=up(e,["size","onClick"]);return r.createElement(r.Fragment,null,r.createElement(Al,{content:at("settings.settings")},r.createElement(Us,sp({onClick:function(){o()},color:"primary",size:n,style:{width:"35px",height:"35px"}},i),r.createElement(Pc,{fontSize:"inherit",style:{overflow:"unset"},className:"far fa-edit"}))))}function fp(){return(fp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function dp(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return pp(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return pp(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pp(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function hp(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var mp=r.forwardRef((function(e,t){var n=e.name,o=e.onChange,i=e.size,a=void 0===i?"small":i,l=e.inDropdown,s=void 0!==l&&l,u=hp(e,["name","onChange","size","inDropdown"]),c=dp((0,r.useState)(!1),2),f=c[0],d=c[1];return r.createElement(r.Fragment,null,s?r.createElement(Gc,{onClick:function(){return d(!0)},ref:t,"data-testid":"page_rule"===u.model?u["data-testid"]:"rename-button"},r.createElement(Kc,null,r.createElement(Pc,{className:"fas fa-i-cursor"})),r.createElement(js,{variant:"inherit"},at("utils.rename"))):r.createElement(Al,{content:at("utils.rename")},r.createElement(Us,fp({size:a,onClick:function(){return d(!0)},color:"primary",style:{width:"35px",height:"35px"}},u),r.createElement(Pc,{style:{overflow:"unset",fontSize:"medium"},fontSize:"inherit",className:"fas fa-i-cursor"}))),r.createElement(np,{open:f,title:at("utils.rename"),text:at("utils.rename_to"),defaultValue:n,"data-testid":"rename-button:dialog",cancelIfSameAsFirstValue:!0,onClose:function(e,t){"confirm"===e&&o(t),d(!1)}}))})),vp=n(78513);function gp(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return yp(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return yp(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function yp(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function bp(e){var t=e.testId,n=void 0===t?"button-group-more-actions":t,o=e.children,i=gp((0,r.useState)(null),2),a=i[0],l=i[1];return r.createElement(r.Fragment,null,r.createElement(Al,{content:at("settings.more_actions")},r.createElement(Us,{onClick:function(e){return l(e.currentTarget)},color:"primary",size:"small",style:{width:"35px",height:"35px"},"data-testid":n},r.createElement(vp.Z,null))),r.createElement(td,{id:"group-button-extra-buttons",anchorEl:a,keepMounted:!0,open:Boolean(a),onClose:function(){return l(null)},onClick:function(){return l(null)},anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}},o))}var wp=n(26905),xp=n.n(wp);var Ep=r.forwardRef((function(e,t){var n=e.children,o=e.classes,i=e.className,a=e.disableTypography,l=void 0!==a&&a,s=e.inset,u=void 0!==s&&s,c=e.primary,f=e.primaryTypographyProps,d=e.secondary,p=e.secondaryTypographyProps,h=(0,fo.Z)(e,["children","classes","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"]),m=r.useContext(Uc).dense,v=null!=c?c:n;null==v||v.type===js||l||(v=r.createElement(js,(0,po.Z)({variant:m?"body2":"body1",className:o.primary,component:"span",display:"block"},f),v));var g=d;return null==g||g.type===js||l||(g=r.createElement(js,(0,po.Z)({variant:"body2",className:o.secondary,color:"textSecondary",display:"block"},p),g)),r.createElement("div",(0,po.Z)({className:(0,vo.Z)(o.root,i,m&&o.dense,u&&o.inset,v&&g&&o.multiline),ref:t},h),v,g)})),_p=(0,go.Z)({root:{flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},multiline:{marginTop:6,marginBottom:6},dense:{},inset:{paddingLeft:56},primary:{},secondary:{}},{name:"MuiListItemText"})(Ep);function Sp(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Op(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Op(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Op(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function kp(e){var t=e.properties,n=e.type,o=void 0===n?"Button":n,i=Sp(r.useState(null),2),a=i[0],l=i[1],s=Boolean(a),u=function(e){l(e.currentTarget)},c=function(){l(null)};return r.createElement(r.Fragment,null,Object.keys(t).length>0?r.createElement(r.Fragment,null,r.createElement(Bo,{onClick:u,"aria-label":"more","aria-controls":"long-menu","aria-haspopup":"true",color:"primary",variant:"text",endIcon:r.createElement(Pc,{className:"fas fa-caret-down"})},Object.keys(t).length," ",at("import_export.properties")," "),r.createElement(td,{id:"long-menu",anchorEl:a,keepMounted:!0,open:s,onClose:c,PaperProps:{style:{maxHeight:430,width:"410px"}},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},getContentAnchorEl:null},r.createElement(Vf,{subheader:r.createElement("li",null),onClick:c},Object.entries(t).map((function(e,t){var n=Sp(e,2),o=n[0],i=n[1],a=Ir()([null,null],"string"==typeof i?i.split(";"):JSON.stringify(i).split(";"));return r.createElement(Wc,{key:t,style:{display:"flex",flexWrap:"wrap"}},r.createElement(_p,{primary:o.replaceAll("_"," ")+" :",style:{minWidth:"fit-content",marginRight:"5px",textTransform:"capitalize",flex:"unset",margin:"unset"}}),r.createElement(_p,{primary:a[0],style:{margin:"0 5px",whiteSpace:"nowrap",flex:1,overflow:"hidden",borderRight:null!==a[1]&&"2px solid rgb(0 0 0 / 30%)"},primaryTypographyProps:{style:{overflow:"hidden",textOverflow:"ellipsis"}},secondary:null!==a[1]&&"Normal"}),null!==a[1]&&r.createElement(_p,{primary:a[1],style:{margin:"0 5px",whiteSpace:"nowrap",flex:1,overflow:"hidden"},primaryTypographyProps:{style:{overflow:"hidden",textOverflow:"ellipsis"}},secondary:"Hover"}))}))))):r.createElement("span",{style:{color:"red"}},"- ",o," is empty. It will not be imported"))}var Cp=n(78718),Pp=n.n(Cp),jp=n(57557),Tp=n.n(jp);function Ap(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ip(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rp(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Np(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Np(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Np(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Dp(e){var t=e.type,n=void 0===t?"group":t,o=e.object,i=e.group_data,a=void 0!==i&&i,l=Rp((0,r.useState)(!1),2),s=l[0],u=l[1],c=Rp((0,r.useState)(!1),2),f=c[0],d=c[1],p=Rp((0,r.useState)(!1),2),h=p[0],m=p[1],v=Rp((0,r.useState)(!1),2),g=v[0],y=v[1],b=Pp()(a,I.stylingNoGroup)||!1,w=Tl((function(e){return e})),x=function(){var e,t,r,i,a="".concat("group"===n?"Group":"Button"," - ").concat(o.name),l="button"===n?f[0]:{data:h,buttons:f};l.export_type=n,l.export_migration_version=buttonizer_admin.migration_version,e=l,t=a,r="data:text/json;charset=utf-8,"+encodeURIComponent(JSON.stringify(e)),(i=document.createElement("a")).setAttribute("href",r),i.setAttribute("download",t+".buttonizer.json"),document.body.appendChild(i),i.click(),i.remove(),u(!1),m(!1),d(!1)};return r.createElement(r.Fragment,null,r.createElement(Gc,{onClick:function(){var e="group"===n?function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.store.getState();if(0===Object.keys(t.groups).length)return null;var n=xp()(t.groups,e,null);if(!n)return null;var r=Sn(n,(function(e){delete e.children,delete e.id})),o=Object.values(St(n.children)),i=[];return o.forEach((function(e){var t=Sn(e,(function(e){delete e.parent}));i.push(t)})),0===i.length&&(i=[{name:"Button",show_mobile:"true",show_desktop:"true"}]),{data:r,buttons:i}}(o.id,w):function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ap(Object(n),!0).forEach((function(t){Ip(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ap(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},o);if(Tp()(e,A),"group"===n){if(0===e.buttons.length)return alert(at("import_export.export.warning.no_buttons"));m(Tp()(e.data,A)),d(e.buttons.map((function(e){return Tp()(e,A)})))}else if("button"===n){if(0===e.length)return alert(at("import_export.export.warning.no_data"));m(!1),d([Tp()(e,A)])}u(!0)},"data-testid":"export-button"},r.createElement(Kc,null,r.createElement(Pc,{className:"fas fa-file-export"})),r.createElement(js,{variant:"inherit"},at("import_export.export.export_".concat(n)))),r.createElement(ks,{open:s,onClose:function(){y(!1),u(!1)},maxWidth:"xs",fullWidth:!0,"aria-labelledby":"import-button-dialog-title","aria-describedby":"import-button-dialog-description","data-testid":"dialog:export-dialog"},r.createElement(As,{id:"import-button-dialog-title"},at("import_export.export.export_".concat(n))),r.createElement(Rs,null,(h||f)&&r.createElement(r.Fragment,null,r.createElement(Ds,{component:"div"},at("import_export.export.warning.preview")),h&&r.createElement(Ds,{component:"div",key:h.id},r.createElement("i",null,at("common.group")," "),":"," ",xp()(h,"name","Unnamed"),"."," ",r.createElement(kp,{properties:h,type:"Group"})),f&&f.map((function(e,t){return r.createElement(Ds,{component:"div",key:t},r.createElement("i",null,at("common.button")," ",t+1," "),": ",xp()(e,"name","Unnamed"),".",r.createElement(kp,{properties:e}))})))),r.createElement(Ls,null,a&&"button"===n&&r.createElement(Bo,{onClick:function(){return function(){var e=Ir()({},b,f[0]);d([e]),y(!0)}()},"data-testid":"export-merge",style:{marginRight:"auto"},disabled:g},at("import_export.export.merge")),r.createElement(Bo,{onClick:function(){return u(!1)},color:"primary"},at("modal.cancel")),r.createElement(Bo,{onClick:function(){return x()},color:"primary",disabled:"button"===n?!f:!h,"data-testid":"export-commence"},at("import_export.export.title")))))}function Mp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Lp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mp(Object(n),!0).forEach((function(t){Fp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Fp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zp(){return(zp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Bp=Ol((function(e){return{buttons:e.buttons,groups:e.groups,getButtonsCount:function(t){return Ot(t,e)},state:e}}),(function(e){return{set:function(){return e(yt.apply(void 0,arguments))},dispatch:e}}),(function(e,t,n){return Lp(Lp(Lp(Lp({},e),t),n),{},{removeButton:function(n){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.store.getState(),n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window.store.dispatch;if(!t.buttons[e])throw ReferenceError("ID "+e+" not in store!");n(gt(e,t.buttons[e].parent)),n(Et(e,"buttons"))}(n,e.state,t.dispatch)},duplicateButton:function(n,r,o){return zc(n,r,o,e.state,t.dispatch)}})}))((function(e){var t=e.groupId,n=e.buttonId,o=e.buttons,i=e.groups,a=e.set,l=e.provided,s=e.currentDrag,u=e.styleDrop,c=e.getButtonsCount,f=e.removeButton,d=e.duplicateButton,p=e.openNewButtonDialog,h=o[n];if(!h||!t)return null;var m="/group/"+t+"/button/"+n,v=["default","square","rectangle","text","text-icon"],g=i[t].children.indexOf(n)===c(t)-1;function y(e){a("buttons",n,e,!h[e])}return r.createElement("div",zp({ref:l.innerRef},l.draggableProps,{style:u}),r.createElement("div",zp({className:"button-container"+s},l.dragHandleProps),r.createElement("div",{className:"button-header"},r.createElement(Bo,{color:"primary",style:{marginBottom:"10px"},className:"button-name",onClick:function(){return document.location.hash="#"+m}},r.createElement("span",{className:"button-name-span"},h.name)),r.createElement("div",{className:"button-actions"},r.createElement(cp,{onClick:function(){document.location.hash="#"+m},"data-testid":"edit-button",className:"button-actions edit-button"}),r.createElement(lp,{name:h.name,onChange:function(e){return d(n,t,{name:e})},"data-testid":"duplicate"}),r.createElement(bp,null,r.createElement(mp,{name:h.name,onChange:function(e){return a("buttons",n,"name",e)},"data-testid":"rename",inDropdown:!0}),r.createElement(Dp,{group_data:i[t],object:h,type:"button"}),r.createElement(Qc,{model:"button",inDropdown:!0,deleteDisabled:c(t)<=1,onClose:function(){f(n),i[t].children.length<=2&&-1===v.indexOf(i[t].menu_style)&&a(P,t,"menu_style","default")},"data-testid":"delete"})))),r.createElement("div",{className:"button-settings"},r.createElement("div",{className:"button-visibility"},r.createElement("div",{className:"button-title"},at("settings.show_mobile_desktop.title")+":"," "),r.createElement(Al,{content:at("settings.show_mobile_desktop.toggle_mobile")},r.createElement(Bo,{color:"primary",variant:h.show_mobile?"contained":"outlined",onClick:function(){return y("show_mobile")},"data-testid":"show_mobile"},r.createElement("i",{className:"fas fa-mobile-alt"}))),r.createElement(Al,{content:at("settings.show_mobile_desktop.toggle_desktop")},r.createElement(Bo,{color:"primary",variant:h.show_desktop?"contained":"outlined",onClick:function(){return y("show_desktop")},"data-testid":"show_desktop"},r.createElement("i",{className:"fas fa-desktop"})))),r.createElement("div",{className:"clear"}))),g?r.createElement(Al,{content:at("utils.add_button"),shiftClick:!0,arrow:!1},r.createElement(Bo,{onClick:function(e){return p(e.shiftKey)},color:"primary",variant:"text",size:"small",startIcon:r.createElement(Pc,{className:"fas fa-plus-circle"}),"data-testid":"new-button",className:"button-container-new-button"},at("utils.add_button"))):r.createElement(Al,{content:at("utils.add_button"),timer:1e3,shiftClick:!0,arrow:!1},r.createElement("div",{className:"button-container-new-button-line"},r.createElement(Bo,{onClick:function(e){return p(e.shiftKey)},color:"secondary",variant:"text",fullWidth:!0,size:"small","data-testid":"new-button"},r.createElement("hr",null),r.createElement("span",null,r.createElement(Pc,{className:"fas fa-plus-circle"})),r.createElement("hr",null)))))}));function Up(e,t){var n=(0,r.useState)((function(){return{inputs:t,result:e()}}))[0],o=(0,r.useRef)(!0),i=(0,r.useRef)(n),a=o.current||Boolean(t&&i.current.inputs&&function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,i.current.inputs))?i.current:{inputs:t,result:e()};return(0,r.useEffect)((function(){o.current=!1,i.current=a}),[a]),a.result}var Zp=Up,Hp=function(e,t){return Up((function(){return e}),t)},Wp=function(e){var t=e.top,n=e.right,r=e.bottom,o=e.left;return{top:t,right:n,bottom:r,left:o,width:n-o,height:r-t,x:o,y:t,center:{x:(n+o)/2,y:(r+t)/2}}},Vp=function(e,t){return{top:e.top-t.top,left:e.left-t.left,bottom:e.bottom+t.bottom,right:e.right+t.right}},Gp=function(e,t){return{top:e.top+t.top,left:e.left+t.left,bottom:e.bottom-t.bottom,right:e.right-t.right}},$p={top:0,right:0,bottom:0,left:0},Kp=function(e){var t=e.borderBox,n=e.margin,r=void 0===n?$p:n,o=e.border,i=void 0===o?$p:o,a=e.padding,l=void 0===a?$p:a,s=Wp(Vp(t,r)),u=Wp(Gp(t,i)),c=Wp(Gp(u,l));return{marginBox:s,borderBox:Wp(t),paddingBox:u,contentBox:c,margin:r,border:i,padding:l}},qp=function(e){var t=e.slice(0,-2);if("px"!==e.slice(-2))return 0;var n=Number(t);return isNaN(n)&&Lu(!1),n},Yp=function(e,t){var n,r,o=e.borderBox,i=e.border,a=e.margin,l=e.padding,s=(r=t,{top:(n=o).top+r.y,left:n.left+r.x,bottom:n.bottom+r.y,right:n.right+r.x});return Kp({borderBox:s,border:i,margin:a,padding:l})},Jp=function(e,t){return void 0===t&&(t={x:window.pageXOffset,y:window.pageYOffset}),Yp(e,t)},Xp=function(e,t){var n={top:qp(t.marginTop),right:qp(t.marginRight),bottom:qp(t.marginBottom),left:qp(t.marginLeft)},r={top:qp(t.paddingTop),right:qp(t.paddingRight),bottom:qp(t.paddingBottom),left:qp(t.paddingLeft)},o={top:qp(t.borderTopWidth),right:qp(t.borderRightWidth),bottom:qp(t.borderBottomWidth),left:qp(t.borderLeftWidth)};return Kp({borderBox:e,margin:n,padding:r,border:o})},Qp=function(e){var t=e.getBoundingClientRect(),n=window.getComputedStyle(e);return Xp(t,n)},eh=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function th(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],o=t[n],!(r===o||eh(r)&&eh(o)))return!1;var r,o;return!0}var nh=function(e,t){var n;void 0===t&&(t=th);var r,o=[],i=!1;return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}},rh=function(e){var t=[],n=null,r=function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];t=o,n||(n=requestAnimationFrame((function(){n=null,e.apply(void 0,t)})))};return r.cancel=function(){n&&(cancelAnimationFrame(n),n=null)},r};function oh(e,t){}oh.bind(null,"warn"),oh.bind(null,"error");function ih(){}function ah(e,t,n){var r=t.map((function(t){var r=function(e,t){return(0,po.Z)({},e,{},t)}(n,t.options);return e.addEventListener(t.eventName,t.fn,r),function(){e.removeEventListener(t.eventName,t.fn,r)}}));return function(){r.forEach((function(e){e()}))}}function lh(e){this.message=e}function sh(e,t){if(!e)throw new lh("Invariant failed")}lh.prototype.toString=function(){return this.message};var uh=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).callbacks=null,t.unbind=ih,t.onWindowError=function(e){var n=t.getCallbacks();n.isDragging()&&n.tryAbort(),e.error instanceof lh&&e.preventDefault()},t.getCallbacks=function(){if(!t.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return t.callbacks},t.setCallbacks=function(e){t.callbacks=e},t}(0,So.Z)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.unbind=ah(window,[{eventName:"error",fn:this.onWindowError}])},n.componentDidCatch=function(e){if(!(e instanceof lh))throw e;this.setState({})},n.componentWillUnmount=function(){this.unbind()},n.render=function(){return this.props.children(this.setCallbacks)},t}(r.Component),ch=function(e){return e+1},fh=function(e,t){var n=e.droppableId===t.droppableId,r=ch(e.index),o=ch(t.index);return n?"\n You have moved the item from position "+r+"\n to position "+o+"\n ":"\n You have moved the item from position "+r+"\n in list "+e.droppableId+"\n to list "+t.droppableId+"\n in position "+o+"\n "},dh=function(e,t,n){return t.droppableId===n.droppableId?"\n The item "+e+"\n has been combined with "+n.draggableId:"\n The item "+e+"\n in list "+t.droppableId+"\n has been combined with "+n.draggableId+"\n in list "+n.droppableId+"\n "},ph=function(e){return"\n The item has returned to its starting position\n of "+ch(e.index)+"\n"},hh="\n Press space bar to start a drag.\n When dragging you can use the arrow keys to move the item around and escape to cancel.\n Some screen readers may require you to be in focus mode or to use your pass through key\n",mh=function(e){return"\n You have lifted an item in position "+ch(e.source.index)+"\n"},vh=function(e){var t=e.destination;if(t)return fh(e.source,t);var n=e.combine;return n?dh(e.draggableId,e.source,n):"You are over an area that cannot be dropped on"},gh=function(e){if("CANCEL"===e.reason)return"\n Movement cancelled.\n "+ph(e.source)+"\n ";var t=e.destination,n=e.combine;return t?"\n You have dropped the item.\n "+fh(e.source,t)+"\n ":n?"\n You have dropped the item.\n "+dh(e.draggableId,e.source,n)+"\n ":"\n The item has been dropped while not over a drop area.\n "+ph(e.source)+"\n "},yh={x:0,y:0},bh=function(e,t){return{x:e.x+t.x,y:e.y+t.y}},wh=function(e,t){return{x:e.x-t.x,y:e.y-t.y}},xh=function(e,t){return e.x===t.x&&e.y===t.y},Eh=function(e){return{x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}},_h=function(e,t,n){var r;return void 0===n&&(n=0),(r={})[e]=t,r["x"===e?"y":"x"]=n,r},Sh=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},Oh=function(e,t){return Math.min.apply(Math,t.map((function(t){return Sh(e,t)})))},kh=function(e){return function(t){return{x:e(t.x),y:e(t.y)}}},Ch=function(e,t){return{top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}},Ph=function(e){return[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}]},jh=function(e,t){return t&&t.shouldClipSubject?function(e,t){var n=Wp({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return n.width<=0||n.height<=0?null:n}(t.pageMarginBox,e):Wp(e)},Th=function(e){var t=e.page,n=e.withPlaceholder,r=e.axis,o=e.frame,i=function(e,t,n){var r;return n&&n.increasedBy?(0,po.Z)({},e,((r={})[t.end]=e[t.end]+n.increasedBy[t.line],r)):e}(function(e,t){return t?Ch(e,t.scroll.diff.displacement):e}(t.marginBox,o),r,n);return{page:t,withPlaceholder:n,active:jh(i,o)}},Ah=function(e,t){e.frame||sh(!1);var n=e.frame,r=wh(t,n.scroll.initial),o=Eh(r),i=(0,po.Z)({},n,{scroll:{initial:n.scroll.initial,current:t,diff:{value:r,displacement:o},max:n.scroll.max}}),a=Th({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:i});return(0,po.Z)({},e,{frame:i,subject:a})};function Ih(e){return Object.values?Object.values(e):Object.keys(e).map((function(t){return e[t]}))}function Rh(e,t){if(e.findIndex)return e.findIndex(t);for(var n=0;n<e.length;n++)if(t(e[n]))return n;return-1}function Nh(e,t){if(e.find)return e.find(t);var n=Rh(e,t);return-1!==n?e[n]:void 0}function Dh(e){return Array.prototype.slice.call(e)}var Mh=nh((function(e){return e.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{})})),Lh=nh((function(e){return e.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{})})),Fh=nh((function(e){return Ih(e)})),zh=nh((function(e){return Ih(e)})),Bh=nh((function(e,t){return zh(t).filter((function(t){return e===t.descriptor.droppableId})).sort((function(e,t){return e.descriptor.index-t.descriptor.index}))}));function Uh(e){return e.at&&"REORDER"===e.at.type?e.at.destination:null}function Zh(e){return e.at&&"COMBINE"===e.at.type?e.at.combine:null}var Hh=nh((function(e,t){return t.filter((function(t){return t.descriptor.id!==e.descriptor.id}))})),Wh=function(e,t){return e.descriptor.droppableId===t.descriptor.id},Vh={point:yh,value:0},Gh={invisible:{},visible:{},all:[]},$h={displaced:Gh,displacedBy:Vh,at:null},Kh=function(e,t){return function(n){return e<=n&&n<=t}},qh=function(e){var t=Kh(e.top,e.bottom),n=Kh(e.left,e.right);return function(r){if(t(r.top)&&t(r.bottom)&&n(r.left)&&n(r.right))return!0;var o=t(r.top)||t(r.bottom),i=n(r.left)||n(r.right);if(o&&i)return!0;var a=r.top<e.top&&r.bottom>e.bottom,l=r.left<e.left&&r.right>e.right;return!(!a||!l)||(a&&i||l&&o)}},Yh=function(e){var t=Kh(e.top,e.bottom),n=Kh(e.left,e.right);return function(e){return t(e.top)&&t(e.bottom)&&n(e.left)&&n(e.right)}},Jh={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},Xh={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},Qh=function(e){var t=e.target,n=e.destination,r=e.viewport,o=e.withDroppableDisplacement,i=e.isVisibleThroughFrameFn,a=o?function(e,t){var n=t.frame?t.frame.scroll.diff.displacement:yh;return Ch(e,n)}(t,n):t;return function(e,t,n){return!!t.subject.active&&n(t.subject.active)(e)}(a,n,i)&&function(e,t,n){return n(t)(e)}(a,r,i)},em=function(e){return Qh((0,po.Z)({},e,{isVisibleThroughFrameFn:qh}))},tm=function(e){return Qh((0,po.Z)({},e,{isVisibleThroughFrameFn:Yh}))};function nm(e){var t=e.afterDragging,n=e.destination,r=e.displacedBy,o=e.viewport,i=e.forceShouldAnimate,a=e.last;return t.reduce((function(e,t){var l=function(e,t){var n=e.page.marginBox,r={top:t.point.y,right:0,bottom:0,left:t.point.x};return Wp(Vp(n,r))}(t,r),s=t.descriptor.id;if(e.all.push(s),!em({target:l,destination:n,viewport:o,withDroppableDisplacement:!0}))return e.invisible[t.descriptor.id]=!0,e;var u={draggableId:s,shouldAnimate:function(e,t,n){if("boolean"==typeof n)return n;if(!t)return!0;var r=t.invisible,o=t.visible;if(r[e])return!1;var i=o[e];return!i||i.shouldAnimate}(s,a,i)};return e.visible[s]=u,e}),{all:[],visible:{},invisible:{}})}function rm(e){var t=e.insideDestination,n=e.inHomeList,r=e.displacedBy,o=e.destination,i=function(e,t){if(!e.length)return 0;var n=e[e.length-1].descriptor.index;return t.inHomeList?n:n+1}(t,{inHomeList:n});return{displaced:Gh,displacedBy:r,at:{type:"REORDER",destination:{droppableId:o.descriptor.id,index:i}}}}function om(e){var t=e.draggable,n=e.insideDestination,r=e.destination,o=e.viewport,i=e.displacedBy,a=e.last,l=e.index,s=e.forceShouldAnimate,u=Wh(t,r);if(null==l)return rm({insideDestination:n,inHomeList:u,displacedBy:i,destination:r});var c=Nh(n,(function(e){return e.descriptor.index===l}));if(!c)return rm({insideDestination:n,inHomeList:u,displacedBy:i,destination:r});var f=Hh(t,n),d=n.indexOf(c);return{displaced:nm({afterDragging:f.slice(d),destination:r,displacedBy:i,last:a,viewport:o.frame,forceShouldAnimate:s}),displacedBy:i,at:{type:"REORDER",destination:{droppableId:r.descriptor.id,index:l}}}}function im(e,t){return Boolean(t.effected[e])}var am=function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.draggable,o=e.draggables,i=e.destination,a=e.insideDestination,l=e.previousImpact,s=e.viewport,u=e.afterCritical,c=l.at;if(c||sh(!1),"REORDER"===c.type){var f=function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.insideDestination,o=e.location;if(!r.length)return null;var i=o.index,a=t?i+1:i-1,l=r[0].descriptor.index,s=r[r.length-1].descriptor.index;return a<l||a>(n?s:s+1)?null:a}({isMovingForward:t,isInHomeList:n,location:c.destination,insideDestination:a});return null==f?null:om({draggable:r,insideDestination:a,destination:i,viewport:s,last:l.displaced,displacedBy:l.displacedBy,index:f})}var d=function(e){var t=e.isMovingForward,n=e.destination,r=e.draggables,o=e.combine,i=e.afterCritical;if(!n.isCombineEnabled)return null;var a=o.draggableId,l=r[a].descriptor.index;return im(a,i)?t?l:l-1:t?l+1:l}({isMovingForward:t,destination:i,displaced:l.displaced,draggables:o,combine:c.combine,afterCritical:u});return null==d?null:om({draggable:r,insideDestination:a,destination:i,viewport:s,last:l.displaced,displacedBy:l.displacedBy,index:d})},lm=function(e){var t=e.afterCritical,n=e.impact,r=e.draggables,o=Zh(n);o||sh(!1);var i=o.draggableId,a=r[i].page.borderBox.center,l=function(e){var t=e.displaced,n=e.afterCritical,r=e.combineWith,o=e.displacedBy,i=Boolean(t.visible[r]||t.invisible[r]);return im(r,n)?i?yh:Eh(o.point):i?o.point:yh}({displaced:n.displaced,afterCritical:t,combineWith:i,displacedBy:n.displacedBy});return bh(a,l)},sm=function(e,t){return t.margin[e.start]+t.borderBox[e.size]/2},um=function(e,t,n){return t[e.crossAxisStart]+n.margin[e.crossAxisStart]+n.borderBox[e.crossAxisSize]/2},cm=function(e){var t=e.axis,n=e.moveRelativeTo,r=e.isMoving;return _h(t.line,n.marginBox[t.end]+sm(t,r),um(t,n.marginBox,r))},fm=function(e){var t=e.axis,n=e.moveRelativeTo,r=e.isMoving;return _h(t.line,n.marginBox[t.start]-function(e,t){return t.margin[e.end]+t.borderBox[e.size]/2}(t,r),um(t,n.marginBox,r))},dm=function(e){var t=e.impact,n=e.draggable,r=e.draggables,o=e.droppable,i=e.afterCritical,a=Bh(o.descriptor.id,r),l=n.page,s=o.axis;if(!a.length)return function(e){var t=e.axis,n=e.moveInto,r=e.isMoving;return _h(t.line,n.contentBox[t.start]+sm(t,r),um(t,n.contentBox,r))}({axis:s,moveInto:o.page,isMoving:l});var u=t.displaced,c=t.displacedBy,f=u.all[0];if(f){var d=r[f];if(im(f,i))return fm({axis:s,moveRelativeTo:d.page,isMoving:l});var p=Yp(d.page,c.point);return fm({axis:s,moveRelativeTo:p,isMoving:l})}var h=a[a.length-1];if(h.descriptor.id===n.descriptor.id)return l.borderBox.center;if(im(h.descriptor.id,i)){var m=Yp(h.page,Eh(i.displacedBy.point));return cm({axis:s,moveRelativeTo:m,isMoving:l})}return cm({axis:s,moveRelativeTo:h.page,isMoving:l})},pm=function(e,t){var n=e.frame;return n?bh(t,n.scroll.diff.displacement):t},hm=function(e){var t=function(e){var t=e.impact,n=e.draggable,r=e.droppable,o=e.draggables,i=e.afterCritical,a=n.page.borderBox.center,l=t.at;return r&&l?"REORDER"===l.type?dm({impact:t,draggable:n,draggables:o,droppable:r,afterCritical:i}):lm({impact:t,draggables:o,afterCritical:i}):a}(e),n=e.droppable;return n?pm(n,t):t},mm=function(e,t){var n=wh(t,e.scroll.initial),r=Eh(n);return{frame:Wp({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:n,displacement:r}}}};function vm(e,t){return e.map((function(e){return t[e]}))}var gm=function(e){var t=e.pageBorderBoxCenter,n=e.draggable,r=function(e,t){return bh(e.scroll.diff.displacement,t)}(e.viewport,t),o=wh(r,n.page.borderBox.center);return bh(n.client.borderBox.center,o)},ym=function(e){var t=e.draggable,n=e.destination,r=e.newPageBorderBoxCenter,o=e.viewport,i=e.withDroppableDisplacement,a=e.onlyOnMainAxis,l=void 0!==a&&a,s=wh(r,t.page.borderBox.center),u={target:Ch(t.page.borderBox,s),destination:n,withDroppableDisplacement:i,viewport:o};return l?function(e){return Qh((0,po.Z)({},e,{isVisibleThroughFrameFn:(t=e.destination.axis,function(e){var n=Kh(e.top,e.bottom),r=Kh(e.left,e.right);return function(e){return t===Jh?n(e.top)&&n(e.bottom):r(e.left)&&r(e.right)}})}));var t}(u):tm(u)},bm=function(e){var t=e.isMovingForward,n=e.draggable,r=e.destination,o=e.draggables,i=e.previousImpact,a=e.viewport,l=e.previousPageBorderBoxCenter,s=e.previousClientSelection,u=e.afterCritical;if(!r.isEnabled)return null;var c=Bh(r.descriptor.id,o),f=Wh(n,r),d=function(e){var t=e.isMovingForward,n=e.draggable,r=e.destination,o=e.insideDestination,i=e.previousImpact;if(!r.isCombineEnabled)return null;if(!Uh(i))return null;function a(e){var t={type:"COMBINE",combine:{draggableId:e,droppableId:r.descriptor.id}};return(0,po.Z)({},i,{at:t})}var l=i.displaced.all,s=l.length?l[0]:null;if(t)return s?a(s):null;var u=Hh(n,o);if(!s)return u.length?a(u[u.length-1].descriptor.id):null;var c=Rh(u,(function(e){return e.descriptor.id===s}));-1===c&&sh(!1);var f=c-1;return f<0?null:a(u[f].descriptor.id)}({isMovingForward:t,draggable:n,destination:r,insideDestination:c,previousImpact:i})||am({isMovingForward:t,isInHomeList:f,draggable:n,draggables:o,destination:r,insideDestination:c,previousImpact:i,viewport:a,afterCritical:u});if(!d)return null;var p=hm({impact:d,draggable:n,droppable:r,draggables:o,afterCritical:u});if(ym({draggable:n,destination:r,newPageBorderBoxCenter:p,viewport:a.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:gm({pageBorderBoxCenter:p,draggable:n,viewport:a}),impact:d,scrollJumpRequest:null};var h=wh(p,l);return{clientSelection:s,impact:function(e){var t=e.impact,n=e.viewport,r=e.destination,o=e.draggables,i=e.maxScrollChange,a=mm(n,bh(n.scroll.current,i)),l=r.frame?Ah(r,bh(r.frame.scroll.current,i)):r,s=t.displaced,u=nm({afterDragging:vm(s.all,o),destination:r,displacedBy:t.displacedBy,viewport:a.frame,last:s,forceShouldAnimate:!1}),c=nm({afterDragging:vm(s.all,o),destination:l,displacedBy:t.displacedBy,viewport:n.frame,last:s,forceShouldAnimate:!1}),f={},d={},p=[s,u,c];return s.all.forEach((function(e){var t=function(e,t){for(var n=0;n<t.length;n++){var r=t[n].visible[e];if(r)return r}return null}(e,p);t?d[e]=t:f[e]=!0})),(0,po.Z)({},t,{displaced:{all:s.all,invisible:f,visible:d}})}({impact:d,viewport:a,destination:r,draggables:o,maxScrollChange:h}),scrollJumpRequest:h}},wm=function(e){var t=e.subject.active;return t||sh(!1),t},xm=function(e,t){var n=e.page.borderBox.center;return im(e.descriptor.id,t)?wh(n,t.displacedBy.point):n},Em=function(e,t){var n=e.page.borderBox;return im(e.descriptor.id,t)?Ch(n,Eh(t.displacedBy.point)):n},_m=nh((function(e,t){var n=t[e.line];return{value:n,point:_h(e.line,n)}})),Sm=function(e,t){return(0,po.Z)({},e,{scroll:(0,po.Z)({},e.scroll,{max:t})})},Om=function(e,t,n){var r=e.frame;Wh(t,e)&&sh(!1),e.subject.withPlaceholder&&sh(!1);var o=_m(e.axis,t.displaceBy).point,i=function(e,t,n){var r=e.axis;if("virtual"===e.descriptor.mode)return _h(r.line,t[r.line]);var o=e.subject.page.contentBox[r.size],i=Bh(e.descriptor.id,n).reduce((function(e,t){return e+t.client.marginBox[r.size]}),0)+t[r.line]-o;return i<=0?null:_h(r.line,i)}(e,o,n),a={placeholderSize:o,increasedBy:i,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!r){var l=Th({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:e.frame});return(0,po.Z)({},e,{subject:l})}var s=i?bh(r.scroll.max,i):r.scroll.max,u=Sm(r,s),c=Th({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:u});return(0,po.Z)({},e,{subject:c,frame:u})},km=function(e){var t=e.isMovingForward,n=e.previousPageBorderBoxCenter,r=e.draggable,o=e.isOver,i=e.draggables,a=e.droppables,l=e.viewport,s=e.afterCritical,u=function(e){var t=e.isMovingForward,n=e.pageBorderBoxCenter,r=e.source,o=e.droppables,i=e.viewport,a=r.subject.active;if(!a)return null;var l=r.axis,s=Kh(a[l.start],a[l.end]),u=Fh(o).filter((function(e){return e!==r})).filter((function(e){return e.isEnabled})).filter((function(e){return Boolean(e.subject.active)})).filter((function(e){return qh(i.frame)(wm(e))})).filter((function(e){var n=wm(e);return t?a[l.crossAxisEnd]<n[l.crossAxisEnd]:n[l.crossAxisStart]<a[l.crossAxisStart]})).filter((function(e){var t=wm(e),n=Kh(t[l.start],t[l.end]);return s(t[l.start])||s(t[l.end])||n(a[l.start])||n(a[l.end])})).sort((function(e,n){var r=wm(e)[l.crossAxisStart],o=wm(n)[l.crossAxisStart];return t?r-o:o-r})).filter((function(e,t,n){return wm(e)[l.crossAxisStart]===wm(n[0])[l.crossAxisStart]}));if(!u.length)return null;if(1===u.length)return u[0];var c=u.filter((function(e){return Kh(wm(e)[l.start],wm(e)[l.end])(n[l.line])}));return 1===c.length?c[0]:c.length>1?c.sort((function(e,t){return wm(e)[l.start]-wm(t)[l.start]}))[0]:u.sort((function(e,t){var r=Oh(n,Ph(wm(e))),o=Oh(n,Ph(wm(t)));return r!==o?r-o:wm(e)[l.start]-wm(t)[l.start]}))[0]}({isMovingForward:t,pageBorderBoxCenter:n,source:o,droppables:a,viewport:l});if(!u)return null;var c=Bh(u.descriptor.id,i),f=function(e){var t=e.previousPageBorderBoxCenter,n=e.moveRelativeTo,r=e.insideDestination,o=e.draggable,i=e.draggables,a=e.destination,l=e.viewport,s=e.afterCritical;if(!n){if(r.length)return null;var u={displaced:Gh,displacedBy:Vh,at:{type:"REORDER",destination:{droppableId:a.descriptor.id,index:0}}},c=hm({impact:u,draggable:o,droppable:a,draggables:i,afterCritical:s}),f=Wh(o,a)?a:Om(a,o,i);return ym({draggable:o,destination:f,newPageBorderBoxCenter:c,viewport:l.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?u:null}var d,p=Boolean(t[a.axis.line]<=n.page.borderBox.center[a.axis.line]),h=(d=n.descriptor.index,n.descriptor.id===o.descriptor.id||p?d:d+1),m=_m(a.axis,o.displaceBy);return om({draggable:o,insideDestination:r,destination:a,viewport:l,displacedBy:m,last:Gh,index:h})}({previousPageBorderBoxCenter:n,destination:u,draggable:r,draggables:i,moveRelativeTo:function(e){var t=e.pageBorderBoxCenter,n=e.viewport,r=e.destination,o=e.insideDestination,i=e.afterCritical;return o.filter((function(e){return tm({target:Em(e,i),destination:r,viewport:n.frame,withDroppableDisplacement:!0})})).sort((function(e,n){var o=Sh(t,pm(r,xm(e,i))),a=Sh(t,pm(r,xm(n,i)));return o<a?-1:a<o?1:e.descriptor.index-n.descriptor.index}))[0]||null}({pageBorderBoxCenter:n,viewport:l,destination:u,insideDestination:c,afterCritical:s}),insideDestination:c,viewport:l,afterCritical:s});if(!f)return null;var d=hm({impact:f,draggable:r,droppable:u,draggables:i,afterCritical:s});return{clientSelection:gm({pageBorderBoxCenter:d,draggable:r,viewport:l}),impact:f,scrollJumpRequest:null}},Cm=function(e){var t=e.at;return t?"REORDER"===t.type?t.destination.droppableId:t.combine.droppableId:null},Pm=function(e){var t=e.state,n=e.type,r=function(e,t){var n=Cm(e);return n?t[n]:null}(t.impact,t.dimensions.droppables),o=Boolean(r),i=t.dimensions.droppables[t.critical.droppable.id],a=r||i,l=a.axis.direction,s="vertical"===l&&("MOVE_UP"===n||"MOVE_DOWN"===n)||"horizontal"===l&&("MOVE_LEFT"===n||"MOVE_RIGHT"===n);if(s&&!o)return null;var u="MOVE_DOWN"===n||"MOVE_RIGHT"===n,c=t.dimensions.draggables[t.critical.draggable.id],f=t.current.page.borderBoxCenter,d=t.dimensions,p=d.draggables,h=d.droppables;return s?bm({isMovingForward:u,previousPageBorderBoxCenter:f,draggable:c,destination:a,draggables:p,viewport:t.viewport,previousClientSelection:t.current.client.selection,previousImpact:t.impact,afterCritical:t.afterCritical}):km({isMovingForward:u,previousPageBorderBoxCenter:f,draggable:c,isOver:a,draggables:p,droppables:h,viewport:t.viewport,afterCritical:t.afterCritical})};function jm(e){return"DRAGGING"===e.phase||"COLLECTING"===e.phase}function Tm(e){var t=Kh(e.top,e.bottom),n=Kh(e.left,e.right);return function(e){return t(e.y)&&n(e.x)}}function Am(e){var t=e.pageBorderBox,n=e.draggable,r=e.droppables,o=Fh(r).filter((function(e){if(!e.isEnabled)return!1;var n,r,o=e.subject.active;if(!o)return!1;if(r=o,!((n=t).left<r.right&&n.right>r.left&&n.top<r.bottom&&n.bottom>r.top))return!1;if(Tm(o)(t.center))return!0;var i=e.axis,a=o.center[i.crossAxisLine],l=t[i.crossAxisStart],s=t[i.crossAxisEnd],u=Kh(o[i.crossAxisStart],o[i.crossAxisEnd]),c=u(l),f=u(s);return!c&&!f||(c?l<a:s>a)}));return o.length?1===o.length?o[0].descriptor.id:function(e){var t=e.pageBorderBox,n=e.draggable,r=e.candidates,o=n.page.borderBox.center,i=r.map((function(e){var n=e.axis,r=_h(e.axis.line,t.center[n.line],e.page.borderBox.center[n.crossAxisLine]);return{id:e.descriptor.id,distance:Sh(o,r)}})).sort((function(e,t){return t.distance-e.distance}));return i[0]?i[0].id:null}({pageBorderBox:t,draggable:n,candidates:o}):null}var Im=function(e,t){return Wp(Ch(e,t))};function Rm(e){var t=e.displaced,n=e.id;return Boolean(t.visible[n]||t.invisible[n])}var Nm=function(e){var t=e.pageOffset,n=e.draggable,r=e.draggables,o=e.droppables,i=e.previousImpact,a=e.viewport,l=e.afterCritical,s=Im(n.page.borderBox,t),u=Am({pageBorderBox:s,draggable:n,droppables:o});if(!u)return $h;var c=o[u],f=Bh(c.descriptor.id,r),d=function(e,t){var n=e.frame;return n?Im(t,n.scroll.diff.value):t}(c,s);return function(e){var t=e.draggable,n=e.pageBorderBoxWithDroppableScroll,r=e.previousImpact,o=e.destination,i=e.insideDestination,a=e.afterCritical;if(!o.isCombineEnabled)return null;var l=o.axis,s=_m(o.axis,t.displaceBy),u=s.value,c=n[l.start],f=n[l.end],d=Nh(Hh(t,i),(function(e){var t=e.descriptor.id,n=e.page.borderBox,o=n[l.size]/4,i=im(t,a),s=Rm({displaced:r.displaced,id:t});return i?s?f>n[l.start]+o&&f<n[l.end]-o:c>n[l.start]-u+o&&c<n[l.end]-u-o:s?f>n[l.start]+u+o&&f<n[l.end]+u-o:c>n[l.start]+o&&c<n[l.end]-o}));return d?{displacedBy:s,displaced:r.displaced,at:{type:"COMBINE",combine:{draggableId:d.descriptor.id,droppableId:o.descriptor.id}}}:null}({pageBorderBoxWithDroppableScroll:d,draggable:n,previousImpact:i,destination:c,insideDestination:f,afterCritical:l})||function(e){var t=e.pageBorderBoxWithDroppableScroll,n=e.draggable,r=e.destination,o=e.insideDestination,i=e.last,a=e.viewport,l=e.afterCritical,s=r.axis,u=_m(r.axis,n.displaceBy),c=u.value,f=t[s.start],d=t[s.end],p=function(e){var t=e.draggable,n=e.closest,r=e.inHomeList;return n?r&&n.descriptor.index>t.descriptor.index?n.descriptor.index-1:n.descriptor.index:null}({draggable:n,closest:Nh(Hh(n,o),(function(e){var t=e.descriptor.id,n=e.page.borderBox.center[s.line],r=im(t,l),o=Rm({displaced:i,id:t});return r?o?d<=n:f<n-c:o?d<=n+c:f<n})),inHomeList:Wh(n,r)});return om({draggable:n,insideDestination:o,destination:r,viewport:a,last:i,displacedBy:u,index:p})}({pageBorderBoxWithDroppableScroll:d,draggable:n,destination:c,insideDestination:f,last:i.displaced,viewport:a,afterCritical:l})},Dm=function(e,t){var n;return(0,po.Z)({},e,((n={})[t.descriptor.id]=t,n))},Mm=function(e){var t=e.previousImpact,n=e.impact,r=e.droppables,o=Cm(t),i=Cm(n);if(!o)return r;if(o===i)return r;var a=r[o];if(!a.subject.withPlaceholder)return r;var l=function(e){var t=e.subject.withPlaceholder;t||sh(!1);var n=e.frame;if(!n){var r=Th({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null});return(0,po.Z)({},e,{subject:r})}var o=t.oldFrameMaxScroll;o||sh(!1);var i=Sm(n,o),a=Th({page:e.subject.page,axis:e.axis,frame:i,withPlaceholder:null});return(0,po.Z)({},e,{subject:a,frame:i})}(a);return Dm(r,l)},Lm=function(e){var t=e.state,n=e.clientSelection,r=e.dimensions,o=e.viewport,i=e.impact,a=e.scrollJumpRequest,l=o||t.viewport,s=r||t.dimensions,u=n||t.current.client.selection,c=wh(u,t.initial.client.selection),f={offset:c,selection:u,borderBoxCenter:bh(t.initial.client.borderBoxCenter,c)},d={selection:bh(f.selection,l.scroll.current),borderBoxCenter:bh(f.borderBoxCenter,l.scroll.current),offset:bh(f.offset,l.scroll.diff.value)},p={client:f,page:d};if("COLLECTING"===t.phase)return(0,po.Z)({phase:"COLLECTING"},t,{dimensions:s,viewport:l,current:p});var h=s.draggables[t.critical.draggable.id],m=i||Nm({pageOffset:d.offset,draggable:h,draggables:s.draggables,droppables:s.droppables,previousImpact:t.impact,viewport:l,afterCritical:t.afterCritical}),v=function(e){var t=e.draggable,n=e.draggables,r=e.droppables,o=e.previousImpact,i=e.impact,a=Mm({previousImpact:o,impact:i,droppables:r}),l=Cm(i);if(!l)return a;var s=r[l];if(Wh(t,s))return a;if(s.subject.withPlaceholder)return a;var u=Om(s,t,n);return Dm(a,u)}({draggable:h,impact:m,previousImpact:t.impact,draggables:s.draggables,droppables:s.droppables});return(0,po.Z)({},t,{current:p,dimensions:{draggables:s.draggables,droppables:v},impact:m,viewport:l,scrollJumpRequest:a||null,forceShouldAnimate:!a&&null})};var Fm=function(e){var t=e.impact,n=e.viewport,r=e.draggables,o=e.destination,i=e.forceShouldAnimate,a=t.displaced,l=nm({afterDragging:function(e,t){return e.map((function(e){return t[e]}))}(a.all,r),destination:o,displacedBy:t.displacedBy,viewport:n.frame,forceShouldAnimate:i,last:a});return(0,po.Z)({},t,{displaced:l})},zm=function(e){var t=e.impact,n=e.draggable,r=e.droppable,o=e.draggables,i=e.viewport,a=e.afterCritical,l=hm({impact:t,draggable:n,draggables:o,droppable:r,afterCritical:a});return gm({pageBorderBoxCenter:l,draggable:n,viewport:i})},Bm=function(e){var t=e.state,n=e.dimensions,r=e.viewport;"SNAP"!==t.movementMode&&sh(!1);var o=t.impact,i=r||t.viewport,a=n||t.dimensions,l=a.draggables,s=a.droppables,u=l[t.critical.draggable.id],c=Cm(o);c||sh(!1);var f=s[c],d=Fm({impact:o,viewport:i,destination:f,draggables:l}),p=zm({impact:d,draggable:u,droppable:f,draggables:l,viewport:i,afterCritical:t.afterCritical});return Lm({impact:d,clientSelection:p,state:t,dimensions:a,viewport:i})},Um=function(e){var t=e.draggable,n=e.home,r=e.draggables,o=e.viewport,i=_m(n.axis,t.displaceBy),a=Bh(n.descriptor.id,r),l=a.indexOf(t);-1===l&&sh(!1);var s,u=a.slice(l+1),c=u.reduce((function(e,t){return e[t.descriptor.id]=!0,e}),{}),f={inVirtualList:"virtual"===n.descriptor.mode,displacedBy:i,effected:c};return{impact:{displaced:nm({afterDragging:u,destination:n,displacedBy:i,last:null,viewport:o.frame,forceShouldAnimate:!1}),displacedBy:i,at:{type:"REORDER",destination:(s=t.descriptor,{index:s.index,droppableId:s.droppableId})}},afterCritical:f}},Zm=function(e){0},Hm=function(e){0},Wm=function(e){var t=e.additions,n=e.updatedDroppables,r=e.viewport,o=r.scroll.diff.value;return t.map((function(e){var t=e.descriptor.droppableId,i=function(e){var t=e.frame;return t||sh(!1),t}(n[t]).scroll.diff.value;return function(e){var t=e.draggable,n=e.offset,r=e.initialWindowScroll,o=Yp(t.client,n),i=Jp(o,r);return(0,po.Z)({},t,{placeholder:(0,po.Z)({},t.placeholder,{client:o}),client:o,page:i})}({draggable:e,offset:bh(o,i),initialWindowScroll:r.scroll.initial})}))},Vm=function(e){return"SNAP"===e.movementMode},Gm=function(e,t,n){var r=function(e,t){return{draggables:e.draggables,droppables:Dm(e.droppables,t)}}(e.dimensions,t);return!Vm(e)||n?Lm({state:e,dimensions:r}):Bm({state:e,dimensions:r})};function $m(e){return e.isDragging&&"SNAP"===e.movementMode?(0,po.Z)({phase:"DRAGGING"},e,{scrollJumpRequest:null}):e}var Km={phase:"IDLE",completed:null,shouldFlush:!1},qm=function(e,t){if(void 0===e&&(e=Km),"FLUSH"===t.type)return(0,po.Z)({},Km,{shouldFlush:!0});if("INITIAL_PUBLISH"===t.type){"IDLE"!==e.phase&&sh(!1);var n=t.payload,r=n.critical,o=n.clientSelection,i=n.viewport,a=n.dimensions,l=n.movementMode,s=a.draggables[r.draggable.id],u=a.droppables[r.droppable.id],c={selection:o,borderBoxCenter:s.client.borderBox.center,offset:yh},f={client:c,page:{selection:bh(c.selection,i.scroll.initial),borderBoxCenter:bh(c.selection,i.scroll.initial),offset:bh(c.selection,i.scroll.diff.value)}},d=Fh(a.droppables).every((function(e){return!e.isFixedOnPage})),p=Um({draggable:s,home:u,draggables:a.draggables,viewport:i}),h=p.impact;return{phase:"DRAGGING",isDragging:!0,critical:r,movementMode:l,dimensions:a,initial:f,current:f,isWindowScrollAllowed:d,impact:h,afterCritical:p.afterCritical,onLiftImpact:h,viewport:i,scrollJumpRequest:null,forceShouldAnimate:null}}if("COLLECTION_STARTING"===t.type)return"COLLECTING"===e.phase||"DROP_PENDING"===e.phase?e:("DRAGGING"!==e.phase&&sh(!1),(0,po.Z)({phase:"COLLECTING"},e,{phase:"COLLECTING"}));if("PUBLISH_WHILE_DRAGGING"===t.type)return"COLLECTING"!==e.phase&&"DROP_PENDING"!==e.phase&&sh(!1),function(e){var t=e.state,n=e.published;Zm();var r=n.modified.map((function(e){var n=t.dimensions.droppables[e.droppableId];return Ah(n,e.scroll)})),o=(0,po.Z)({},t.dimensions.droppables,{},Mh(r)),i=Lh(Wm({additions:n.additions,updatedDroppables:o,viewport:t.viewport})),a=(0,po.Z)({},t.dimensions.draggables,{},i);n.removals.forEach((function(e){delete a[e]}));var l={droppables:o,draggables:a},s=Cm(t.impact),u=s?l.droppables[s]:null,c=l.draggables[t.critical.draggable.id],f=l.droppables[t.critical.droppable.id],d=Um({draggable:c,home:f,draggables:a,viewport:t.viewport}),p=d.impact,h=d.afterCritical,m=u&&u.isCombineEnabled?t.impact:p,v=Nm({pageOffset:t.current.page.offset,draggable:l.draggables[t.critical.draggable.id],draggables:l.draggables,droppables:l.droppables,previousImpact:m,viewport:t.viewport,afterCritical:h});Hm();var g=(0,po.Z)({phase:"DRAGGING"},t,{phase:"DRAGGING",impact:v,onLiftImpact:p,dimensions:l,afterCritical:h,forceShouldAnimate:!1});return"COLLECTING"===t.phase?g:(0,po.Z)({phase:"DROP_PENDING"},g,{phase:"DROP_PENDING",reason:t.reason,isWaiting:!1})}({state:e,published:t.payload});if("MOVE"===t.type){if("DROP_PENDING"===e.phase)return e;jm(e)||sh(!1);var m=t.payload.client;return xh(m,e.current.client.selection)?e:Lm({state:e,clientSelection:m,impact:Vm(e)?e.impact:null})}if("UPDATE_DROPPABLE_SCROLL"===t.type){if("DROP_PENDING"===e.phase)return $m(e);if("COLLECTING"===e.phase)return $m(e);jm(e)||sh(!1);var v=t.payload,g=v.id,y=v.newScroll,b=e.dimensions.droppables[g];if(!b)return e;var w=Ah(b,y);return Gm(e,w,!1)}if("UPDATE_DROPPABLE_IS_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;jm(e)||sh(!1);var x=t.payload,E=x.id,_=x.isEnabled,S=e.dimensions.droppables[E];S||sh(!1),S.isEnabled===_&&sh(!1);var O=(0,po.Z)({},S,{isEnabled:_});return Gm(e,O,!0)}if("UPDATE_DROPPABLE_IS_COMBINE_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;jm(e)||sh(!1);var k=t.payload,C=k.id,P=k.isCombineEnabled,j=e.dimensions.droppables[C];j||sh(!1),j.isCombineEnabled===P&&sh(!1);var T=(0,po.Z)({},j,{isCombineEnabled:P});return Gm(e,T,!0)}if("MOVE_BY_WINDOW_SCROLL"===t.type){if("DROP_PENDING"===e.phase||"DROP_ANIMATING"===e.phase)return e;jm(e)||sh(!1),e.isWindowScrollAllowed||sh(!1);var A=t.payload.newScroll;if(xh(e.viewport.scroll.current,A))return $m(e);var I=mm(e.viewport,A);return Vm(e)?Bm({state:e,viewport:I}):Lm({state:e,viewport:I})}if("UPDATE_VIEWPORT_MAX_SCROLL"===t.type){if(!jm(e))return e;var R=t.payload.maxScroll;if(xh(R,e.viewport.scroll.max))return e;var N=(0,po.Z)({},e.viewport,{scroll:(0,po.Z)({},e.viewport.scroll,{max:R})});return(0,po.Z)({phase:"DRAGGING"},e,{viewport:N})}if("MOVE_UP"===t.type||"MOVE_DOWN"===t.type||"MOVE_LEFT"===t.type||"MOVE_RIGHT"===t.type){if("COLLECTING"===e.phase||"DROP_PENDING"===e.phase)return e;"DRAGGING"!==e.phase&&sh(!1);var D=Pm({state:e,type:t.type});return D?Lm({state:e,impact:D.impact,clientSelection:D.clientSelection,scrollJumpRequest:D.scrollJumpRequest}):e}if("DROP_PENDING"===t.type){var M=t.payload.reason;return"COLLECTING"!==e.phase&&sh(!1),(0,po.Z)({phase:"DROP_PENDING"},e,{phase:"DROP_PENDING",isWaiting:!0,reason:M})}if("DROP_ANIMATE"===t.type){var L=t.payload,F=L.completed,z=L.dropDuration,B=L.newHomeClientOffset;return"DRAGGING"!==e.phase&&"DROP_PENDING"!==e.phase&&sh(!1),{phase:"DROP_ANIMATING",completed:F,dropDuration:z,newHomeClientOffset:B,dimensions:e.dimensions}}return"DROP_COMPLETE"===t.type?{phase:"IDLE",completed:t.payload.completed,shouldFlush:!1}:e},Ym=function(e){return{type:"PUBLISH_WHILE_DRAGGING",payload:e}},Jm=function(){return{type:"COLLECTION_STARTING",payload:null}},Xm=function(e){return{type:"UPDATE_DROPPABLE_SCROLL",payload:e}},Qm=function(e){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}},ev=function(e){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}},tv=function(e){return{type:"MOVE",payload:e}},nv=function(){return{type:"MOVE_UP",payload:null}},rv=function(){return{type:"MOVE_DOWN",payload:null}},ov=function(){return{type:"MOVE_RIGHT",payload:null}},iv=function(){return{type:"MOVE_LEFT",payload:null}},av=function(e){return{type:"DROP_COMPLETE",payload:e}},lv=function(e){return{type:"DROP",payload:e}},sv=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}};var uv="cubic-bezier(.2,1,.1,1)",cv={drop:0,combining:.7},fv={drop:.75},dv=.2+"s "+"cubic-bezier(0.2, 0, 0, 1)",pv={fluid:"opacity "+dv,snap:"transform "+dv+", opacity "+dv,drop:function(e){var t=e+"s "+uv;return"transform "+t+", opacity "+t},outOfTheWay:"transform "+dv,placeholder:"height "+dv+", width "+dv+", margin "+dv},hv=function(e){return xh(e,yh)?null:"translate("+e.x+"px, "+e.y+"px)"},mv=hv,vv=function(e,t){var n=hv(e);return n?t?n+" scale("+fv.drop+")":n:null},gv=.33,yv=.55,bv=yv-gv,wv=function(e){var t=e.getState,n=e.dispatch;return function(e){return function(r){if("DROP"===r.type){var o=t(),i=r.payload.reason;if("COLLECTING"!==o.phase){if("IDLE"!==o.phase){"DROP_PENDING"===o.phase&&o.isWaiting&&sh(!1),"DRAGGING"!==o.phase&&"DROP_PENDING"!==o.phase&&sh(!1);var a=o.critical,l=o.dimensions,s=l.draggables[o.critical.draggable.id],u=function(e){var t=e.draggables,n=e.reason,r=e.lastImpact,o=e.home,i=e.viewport,a=e.onLiftImpact;return r.at&&"DROP"===n?"REORDER"===r.at.type?{impact:r,didDropInsideDroppable:!0}:{impact:(0,po.Z)({},r,{displaced:Gh}),didDropInsideDroppable:!0}:{impact:Fm({draggables:t,impact:a,destination:o,viewport:i,forceShouldAnimate:!0}),didDropInsideDroppable:!1}}({reason:i,lastImpact:o.impact,afterCritical:o.afterCritical,onLiftImpact:o.onLiftImpact,home:o.dimensions.droppables[o.critical.droppable.id],viewport:o.viewport,draggables:o.dimensions.draggables}),c=u.impact,f=u.didDropInsideDroppable,d=f?Uh(c):null,p=f?Zh(c):null,h={index:a.draggable.index,droppableId:a.droppable.id},m={draggableId:s.descriptor.id,type:s.descriptor.type,source:h,reason:i,mode:o.movementMode,destination:d,combine:p},v=function(e){var t=e.impact,n=e.draggable,r=e.dimensions,o=e.viewport,i=e.afterCritical,a=r.draggables,l=r.droppables,s=Cm(t),u=s?l[s]:null,c=l[n.descriptor.droppableId],f=zm({impact:t,draggable:n,draggables:a,afterCritical:i,droppable:u||c,viewport:o});return wh(f,n.client.borderBox.center)}({impact:c,draggable:s,dimensions:l,viewport:o.viewport,afterCritical:o.afterCritical}),g={critical:o.critical,afterCritical:o.afterCritical,result:m,impact:c};if(!xh(o.current.client.offset,v)||Boolean(m.combine)){var y=function(e){var t=e.current,n=e.destination,r=e.reason,o=Sh(t,n);if(o<=0)return gv;if(o>=1500)return yv;var i=gv+bv*(o/1500);return Number(("CANCEL"===r?.6*i:i).toFixed(2))}({current:o.current.client.offset,destination:v,reason:i});n(function(e){return{type:"DROP_ANIMATE",payload:e}}({newHomeClientOffset:v,dropDuration:y,completed:g}))}else n(av({completed:g}))}}else n(function(e){return{type:"DROP_PENDING",payload:e}}({reason:i}))}else e(r)}}},xv=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function Ev(e){var t=e.onWindowScroll;var n=rh((function(){t(xv())})),r=function(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(t){t.target!==window&&t.target!==window.document||e()}}}(n),o=ih;function i(){return o!==ih}return{start:function(){i()&&sh(!1),o=ah(window,[r])},stop:function(){i()||sh(!1),n.cancel(),o(),o=ih},isActive:i}}var _v=function(e){var t=Ev({onWindowScroll:function(t){e.dispatch({type:"MOVE_BY_WINDOW_SCROLL",payload:{newScroll:t}})}});return function(e){return function(n){t.isActive()||"INITIAL_PUBLISH"!==n.type||t.start(),t.isActive()&&function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(n)&&t.stop(),e(n)}}},Sv=function(){var e=[];return{add:function(t){var n=setTimeout((function(){return function(t){var n=Rh(e,(function(e){return e.timerId===t}));-1===n&&sh(!1),e.splice(n,1)[0].callback()}(n)})),r={timerId:n,callback:t};e.push(r)},flush:function(){if(e.length){var t=[].concat(e);e.length=0,t.forEach((function(e){clearTimeout(e.timerId),e.callback()}))}}}},Ov=function(e,t){Zm(),t(),Hm()},kv=function(e,t){return{draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t}},Cv=function(e,t,n,r){if(e){var o=function(e){var t=!1,n=!1,r=setTimeout((function(){n=!0})),o=function(o){t||n||(t=!0,e(o),clearTimeout(r))};return o.wasCalled=function(){return t},o}(n);e(t,{announce:o}),o.wasCalled()||n(r(t))}else n(r(t))},Pv=function(e,t){var n=function(e,t){var n=Sv(),r=null,o=function(n){r||sh(!1),r=null,Ov(0,(function(){return Cv(e().onDragEnd,n,t,gh)}))};return{beforeCapture:function(t,n){r&&sh(!1),Ov(0,(function(){var r=e().onBeforeCapture;r&&r({draggableId:t,mode:n})}))},beforeStart:function(t,n){r&&sh(!1),Ov(0,(function(){var r=e().onBeforeDragStart;r&&r(kv(t,n))}))},start:function(o,i){r&&sh(!1);var a=kv(o,i);r={mode:i,lastCritical:o,lastLocation:a.source,lastCombine:null},n.add((function(){Ov(0,(function(){return Cv(e().onDragStart,a,t,mh)}))}))},update:function(o,i){var a=Uh(i),l=Zh(i);r||sh(!1);var s=!function(e,t){if(e===t)return!0;var n=e.draggable.id===t.draggable.id&&e.draggable.droppableId===t.draggable.droppableId&&e.draggable.type===t.draggable.type&&e.draggable.index===t.draggable.index,r=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type;return n&&r}(o,r.lastCritical);s&&(r.lastCritical=o);var u,c,f=(u=r.lastLocation,c=a,!(null==u&&null==c||null!=u&&null!=c&&u.droppableId===c.droppableId&&u.index===c.index));f&&(r.lastLocation=a);var d=!function(e,t){return null==e&&null==t||null!=e&&null!=t&&(e.draggableId===t.draggableId&&e.droppableId===t.droppableId)}(r.lastCombine,l);if(d&&(r.lastCombine=l),s||f||d){var p=(0,po.Z)({},kv(o,r.mode),{combine:l,destination:a});n.add((function(){Ov(0,(function(){return Cv(e().onDragUpdate,p,t,vh)}))}))}},flush:function(){r||sh(!1),n.flush()},drop:o,abort:function(){if(r){var e=(0,po.Z)({},kv(r.lastCritical,r.mode),{combine:null,destination:null,reason:"CANCEL"});o(e)}}}}(e,t);return function(e){return function(t){return function(r){if("BEFORE_INITIAL_CAPTURE"!==r.type){if("INITIAL_PUBLISH"===r.type){var o=r.payload.critical;return n.beforeStart(o,r.payload.movementMode),t(r),void n.start(o,r.payload.movementMode)}if("DROP_COMPLETE"===r.type){var i=r.payload.completed.result;return n.flush(),t(r),void n.drop(i)}if(t(r),"FLUSH"!==r.type){var a=e.getState();"DRAGGING"===a.phase&&n.update(a.critical,a.impact)}else n.abort()}else n.beforeCapture(r.payload.draggableId,r.payload.movementMode)}}}},jv=function(e){return function(t){return function(n){if("DROP_ANIMATION_FINISHED"===n.type){var r=e.getState();"DROP_ANIMATING"!==r.phase&&sh(!1),e.dispatch(av({completed:r.completed}))}else t(n)}}},Tv=function(e){var t=null,n=null;return function(r){return function(o){if("FLUSH"!==o.type&&"DROP_COMPLETE"!==o.type&&"DROP_ANIMATION_FINISHED"!==o.type||(n&&(cancelAnimationFrame(n),n=null),t&&(t(),t=null)),r(o),"DROP_ANIMATE"===o.type){var i={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){"DROP_ANIMATING"===e.getState().phase&&e.dispatch({type:"DROP_ANIMATION_FINISHED",payload:null})}};n=requestAnimationFrame((function(){n=null,t=ah(window,[i])}))}}}},Av=function(e){return function(t){return function(n){if(t(n),"PUBLISH_WHILE_DRAGGING"===n.type){var r=e.getState();"DROP_PENDING"===r.phase&&(r.isWaiting||e.dispatch(lv({reason:r.reason})))}}}},Iv=v,Rv=function(e){var t,n=e.dimensionMarshal,r=e.focusMarshal,o=e.styleMarshal,i=e.getResponders,a=e.announce,l=e.autoScroller;return u(qm,Iv(g((t=o,function(){return function(e){return function(n){"INITIAL_PUBLISH"===n.type&&t.dragging(),"DROP_ANIMATE"===n.type&&t.dropping(n.payload.completed.result.reason),"FLUSH"!==n.type&&"DROP_COMPLETE"!==n.type||t.resting(),e(n)}}}),function(e){return function(){return function(t){return function(n){"DROP_COMPLETE"!==n.type&&"FLUSH"!==n.type&&"DROP_ANIMATE"!==n.type||e.stopPublishing(),t(n)}}}}(n),function(e){return function(t){var n=t.getState,r=t.dispatch;return function(t){return function(o){if("LIFT"===o.type){var i=o.payload,a=i.id,l=i.clientSelection,s=i.movementMode,u=n();"DROP_ANIMATING"===u.phase&&r(av({completed:u.completed})),"IDLE"!==n().phase&&sh(!1),r({type:"FLUSH",payload:null}),r({type:"BEFORE_INITIAL_CAPTURE",payload:{draggableId:a,movementMode:s}});var c={draggableId:a,scrollOptions:{shouldPublishImmediately:"SNAP"===s}},f=e.startPublishing(c),d=f.critical,p=f.dimensions,h=f.viewport;r(function(e){return{type:"INITIAL_PUBLISH",payload:e}}({critical:d,dimensions:p,clientSelection:l,movementMode:s,viewport:h}))}else t(o)}}}}(n),wv,jv,Tv,Av,function(e){return function(t){return function(n){return function(r){if(function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(r))return e.stop(),void n(r);if("INITIAL_PUBLISH"===r.type){n(r);var o=t.getState();return"DRAGGING"!==o.phase&&sh(!1),void e.start(o)}n(r),e.scroll(t.getState())}}}}(l),_v,function(e){var t=!1;return function(){return function(n){return function(r){if("INITIAL_PUBLISH"===r.type)return t=!0,e.tryRecordFocus(r.payload.critical.draggable.id),n(r),void e.tryRestoreFocusRecorded();if(n(r),t){if("FLUSH"===r.type)return t=!1,void e.tryRestoreFocusRecorded();if("DROP_COMPLETE"===r.type){t=!1;var o=r.payload.completed.result;o.combine&&e.tryShiftRecord(o.draggableId,o.combine.draggableId),e.tryRestoreFocusRecorded()}}}}}}(r),Pv(i,a))))};var Nv=function(e){var t=e.scrollHeight,n=e.scrollWidth,r=e.height,o=e.width,i=wh({x:n,y:t},{x:o,y:r});return{x:Math.max(0,i.x),y:Math.max(0,i.y)}},Dv=function(){var e=document.documentElement;return e||sh(!1),e},Mv=function(){var e=Dv();return Nv({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})},Lv=function(e){var t=e.critical,n=e.scrollOptions,r=e.registry;Zm();var o=function(){var e=xv(),t=Mv(),n=e.y,r=e.x,o=Dv(),i=o.clientWidth,a=o.clientHeight;return{frame:Wp({top:n,left:r,right:r+i,bottom:n+a}),scroll:{initial:e,current:e,max:t,diff:{value:yh,displacement:yh}}}}(),i=o.scroll.current,a=t.droppable,l=r.droppable.getAllByType(a.type).map((function(e){return e.callbacks.getDimensionAndWatchScroll(i,n)})),s=r.draggable.getAllByType(t.draggable.type).map((function(e){return e.getDimension(i)})),u={draggables:Lh(s),droppables:Mh(l)};return Hm(),{dimensions:u,critical:t,viewport:o}};function Fv(e,t,n){return n.descriptor.id!==t.id&&(n.descriptor.type===t.type&&"virtual"===e.droppable.getById(n.descriptor.droppableId).descriptor.mode)}var zv,Bv,Uv=function(e,t){var n=null,r=function(e){var t=e.registry,n=e.callbacks,r={additions:{},removals:{},modified:{}},o=null,i=function(){o||(n.collectionStarting(),o=requestAnimationFrame((function(){o=null,Zm();var e=r,i=e.additions,a=e.removals,l=e.modified,s=Object.keys(i).map((function(e){return t.draggable.getById(e).getDimension(yh)})).sort((function(e,t){return e.descriptor.index-t.descriptor.index})),u=Object.keys(l).map((function(e){return{droppableId:e,scroll:t.droppable.getById(e).callbacks.getScrollWhileDragging()}})),c={additions:s,removals:Object.keys(a),modified:u};r={additions:{},removals:{},modified:{}},Hm(),n.publish(c)})))};return{add:function(e){var t=e.descriptor.id;r.additions[t]=e,r.modified[e.descriptor.droppableId]=!0,r.removals[t]&&delete r.removals[t],i()},remove:function(e){var t=e.descriptor;r.removals[t.id]=!0,r.modified[t.droppableId]=!0,r.additions[t.id]&&delete r.additions[t.id],i()},stop:function(){o&&(cancelAnimationFrame(o),o=null,r={additions:{},removals:{},modified:{}})}}}({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),o=function(t){n||sh(!1);var o=n.critical.draggable;"ADDITION"===t.type&&Fv(e,o,t.value)&&r.add(t.value),"REMOVAL"===t.type&&Fv(e,o,t.value)&&r.remove(t.value)};return{updateDroppableIsEnabled:function(r,o){e.droppable.exists(r)||sh(!1),n&&t.updateDroppableIsEnabled({id:r,isEnabled:o})},updateDroppableIsCombineEnabled:function(r,o){n&&(e.droppable.exists(r)||sh(!1),t.updateDroppableIsCombineEnabled({id:r,isCombineEnabled:o}))},scrollDroppable:function(t,r){n&&e.droppable.getById(t).callbacks.scroll(r)},updateDroppableScroll:function(r,o){n&&(e.droppable.exists(r)||sh(!1),t.updateDroppableScroll({id:r,newScroll:o}))},startPublishing:function(t){n&&sh(!1);var r=e.draggable.getById(t.draggableId),i=e.droppable.getById(r.descriptor.droppableId),a={draggable:r.descriptor,droppable:i.descriptor},l=e.subscribe(o);return n={critical:a,unsubscribe:l},Lv({critical:a,registry:e,scrollOptions:t.scrollOptions})},stopPublishing:function(){if(n){r.stop();var t=n.critical.droppable;e.droppable.getAllByType(t.type).forEach((function(e){return e.callbacks.dragStopped()})),n.unsubscribe(),n=null}}}},Zv=function(e,t){return"IDLE"===e.phase||"DROP_ANIMATING"===e.phase&&(e.completed.result.draggableId!==t&&"DROP"===e.completed.result.reason)},Hv=function(e){window.scrollBy(e.x,e.y)},Wv=nh((function(e){return Fh(e).filter((function(e){return!!e.isEnabled&&!!e.frame}))})),Vv=function(e){var t=e.center,n=e.destination,r=e.droppables;if(n){var o=r[n];return o.frame?o:null}return function(e,t){return Nh(Wv(t),(function(t){return t.frame||sh(!1),Tm(t.frame.pageMarginBox)(e)}))}(t,r)},Gv=.25,$v=.05,Kv=28,qv=function(e){return Math.pow(e,2)},Yv={stopDampeningAt:1200,accelerateAt:360},Jv=function(e){var t=e.startOfRange,n=e.endOfRange,r=e.current,o=n-t;return 0===o?0:(r-t)/o},Xv=Yv.accelerateAt,Qv=Yv.stopDampeningAt,eg=function(e){var t=e.distanceToEdge,n=e.thresholds,r=e.dragStartTime,o=e.shouldUseTimeDampening,i=function(e,t){if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return Kv;if(e===t.startScrollingFrom)return 1;var n=Jv({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),r=Kv*qv(1-n);return Math.ceil(r)}(t,n);return 0===i?0:o?Math.max(function(e,t){var n=t,r=Qv,o=Date.now()-n;if(o>=Qv)return e;if(o<Xv)return 1;var i=Jv({startOfRange:Xv,endOfRange:r,current:o}),a=e*qv(i);return Math.ceil(a)}(i,r),1):i},tg=function(e){var t=e.container,n=e.distanceToEdges,r=e.dragStartTime,o=e.axis,i=e.shouldUseTimeDampening,a=function(e,t){return{startScrollingFrom:e[t.size]*Gv,maxScrollValueAt:e[t.size]*$v}}(t,o);return n[o.end]<n[o.start]?eg({distanceToEdge:n[o.end],thresholds:a,dragStartTime:r,shouldUseTimeDampening:i}):-1*eg({distanceToEdge:n[o.start],thresholds:a,dragStartTime:r,shouldUseTimeDampening:i})},ng=kh((function(e){return 0===e?0:e})),rg=function(e){var t=e.dragStartTime,n=e.container,r=e.subject,o=e.center,i=e.shouldUseTimeDampening,a={top:o.y-n.top,right:n.right-o.x,bottom:n.bottom-o.y,left:o.x-n.left},l=tg({container:n,distanceToEdges:a,dragStartTime:t,axis:Jh,shouldUseTimeDampening:i}),s=tg({container:n,distanceToEdges:a,dragStartTime:t,axis:Xh,shouldUseTimeDampening:i}),u=ng({x:s,y:l});if(xh(u,yh))return null;var c=function(e){var t=e.container,n=e.subject,r=e.proposedScroll,o=n.height>t.height,i=n.width>t.width;return i||o?i&&o?null:{x:i?0:r.x,y:o?0:r.y}:r}({container:n,subject:r,proposedScroll:u});return c?xh(c,yh)?null:c:null},og=kh((function(e){return 0===e?0:e>0?1:-1})),ig=(zv=function(e,t){return e<0?e:e>t?e-t:0},function(e){var t=e.current,n=e.max,r=e.change,o=bh(t,r),i={x:zv(o.x,n.x),y:zv(o.y,n.y)};return xh(i,yh)?null:i}),ag=function(e){var t=e.max,n=e.current,r=e.change,o={x:Math.max(n.x,t.x),y:Math.max(n.y,t.y)},i=og(r),a=ig({max:o,current:n,change:i});return!a||(0!==i.x&&0===a.x||0!==i.y&&0===a.y)},lg=function(e,t){return ag({current:e.scroll.current,max:e.scroll.max,change:t})},sg=function(e,t){var n=e.frame;return!!n&&ag({current:n.scroll.current,max:n.scroll.max,change:t})},ug=function(e){var t=e.state,n=e.dragStartTime,r=e.shouldUseTimeDampening,o=e.scrollWindow,i=e.scrollDroppable,a=t.current.page.borderBoxCenter,l=t.dimensions.draggables[t.critical.draggable.id].page.marginBox;if(t.isWindowScrollAllowed){var s=function(e){var t=e.viewport,n=e.subject,r=e.center,o=e.dragStartTime,i=e.shouldUseTimeDampening,a=rg({dragStartTime:o,container:t.frame,subject:n,center:r,shouldUseTimeDampening:i});return a&&lg(t,a)?a:null}({dragStartTime:n,viewport:t.viewport,subject:l,center:a,shouldUseTimeDampening:r});if(s)return void o(s)}var u=Vv({center:a,destination:Cm(t.impact),droppables:t.dimensions.droppables});if(u){var c=function(e){var t=e.droppable,n=e.subject,r=e.center,o=e.dragStartTime,i=e.shouldUseTimeDampening,a=t.frame;if(!a)return null;var l=rg({dragStartTime:o,container:a.pageMarginBox,subject:n,center:r,shouldUseTimeDampening:i});return l&&sg(t,l)?l:null}({dragStartTime:n,droppable:u,subject:l,center:a,shouldUseTimeDampening:r});c&&i(u.descriptor.id,c)}},cg=function(e){var t=e.move,n=e.scrollDroppable,r=e.scrollWindow,o=function(e,t){if(!sg(e,t))return t;var r=function(e,t){var n=e.frame;return n&&sg(e,t)?ig({current:n.scroll.current,max:n.scroll.max,change:t}):null}(e,t);if(!r)return n(e.descriptor.id,t),null;var o=wh(t,r);return n(e.descriptor.id,o),wh(t,o)},i=function(e,t,n){if(!e)return n;if(!lg(t,n))return n;var o=function(e,t){if(!lg(e,t))return null;var n=e.scroll.max,r=e.scroll.current;return ig({current:r,max:n,change:t})}(t,n);if(!o)return r(n),null;var i=wh(n,o);return r(i),wh(n,i)};return function(e){var n=e.scrollJumpRequest;if(n){var r=Cm(e.impact);r||sh(!1);var a=o(e.dimensions.droppables[r],n);if(a){var l=e.viewport,s=i(e.isWindowScrollAllowed,l,a);s&&function(e,n){var r=bh(e.current.client.selection,n);t({client:r})}(e,s)}}}},fg=function(e){var t=e.scrollDroppable,n=e.scrollWindow,r=e.move,o=function(e){var t=e.scrollWindow,n=e.scrollDroppable,r=rh(t),o=rh(n),i=null,a=function(e){i||sh(!1);var t=i,n=t.shouldUseTimeDampening,a=t.dragStartTime;ug({state:e,scrollWindow:r,scrollDroppable:o,dragStartTime:a,shouldUseTimeDampening:n})};return{start:function(e){Zm(),i&&sh(!1);var t=Date.now(),n=!1,r=function(){n=!0};ug({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:r,scrollDroppable:r}),i={dragStartTime:t,shouldUseTimeDampening:n},Hm(),n&&a(e)},stop:function(){i&&(r.cancel(),o.cancel(),i=null)},scroll:a}}({scrollWindow:n,scrollDroppable:t}),i=cg({move:r,scrollWindow:n,scrollDroppable:t});return{scroll:function(e){"DRAGGING"===e.phase&&("FLUID"!==e.movementMode?e.scrollJumpRequest&&i(e):o.scroll(e))},start:o.start,stop:o.stop}},dg={base:Bv="data-rbd-drag-handle",draggableId:Bv+"-draggable-id",contextId:Bv+"-context-id"},pg=function(){var e="data-rbd-draggable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),hg=function(){var e="data-rbd-droppable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),mg={contextId:"data-rbd-scroll-container-context-id"},vg=function(e,t){return e.map((function(e){var n=e.styles[t];return n?e.selector+" { "+n+" }":""})).join(" ")},gg="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect,yg=function(){var e=document.querySelector("head");return e||sh(!1),e},bg=function(e){var t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t};function wg(e,t){var n=Zp((function(){return function(e){var t,n,r=function(e){return function(t){return"["+t+'="'+e+'"]'}}(e),o=(t="\n cursor: -webkit-grab;\n cursor: grab;\n ",{selector:r(dg.contextId),styles:{always:"\n -webkit-touch-callout: none;\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n touch-action: manipulation;\n ",resting:t,dragging:"pointer-events: none;",dropAnimating:t}}),i=[(n="\n transition: "+pv.outOfTheWay+";\n ",{selector:r(pg.contextId),styles:{dragging:n,dropAnimating:n,userCancel:n}}),o,{selector:r(hg.contextId),styles:{always:"overflow-anchor: none;"}},{selector:"body",styles:{dragging:"\n cursor: grabbing;\n cursor: -webkit-grabbing;\n user-select: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n overflow-anchor: none;\n "}}];return{always:vg(i,"always"),resting:vg(i,"resting"),dragging:vg(i,"dragging"),dropAnimating:vg(i,"dropAnimating"),userCancel:vg(i,"userCancel")}}(e)}),[e]),o=(0,r.useRef)(null),i=(0,r.useRef)(null),a=Hp(nh((function(e){var t=i.current;t||sh(!1),t.textContent=e})),[]),l=Hp((function(e){var t=o.current;t||sh(!1),t.textContent=e}),[]);gg((function(){(o.current||i.current)&&sh(!1);var r=bg(t),s=bg(t);return o.current=r,i.current=s,r.setAttribute("data-rbd-always",e),s.setAttribute("data-rbd-dynamic",e),yg().appendChild(r),yg().appendChild(s),l(n.always),a(n.resting),function(){var e=function(e){var t=e.current;t||sh(!1),yg().removeChild(t),e.current=null};e(o),e(i)}}),[t,l,a,n.always,n.resting,e]);var s=Hp((function(){return a(n.dragging)}),[a,n.dragging]),u=Hp((function(e){a("DROP"!==e?n.userCancel:n.dropAnimating)}),[a,n.dropAnimating,n.userCancel]),c=Hp((function(){i.current&&a(n.resting)}),[a,n.resting]);return Zp((function(){return{dragging:s,dropping:u,resting:c}}),[s,u,c])}var xg=function(e){return e&&e.ownerDocument?e.ownerDocument.defaultView:window};function Eg(e){return e instanceof xg(e).HTMLElement}function _g(e,t){var n="["+dg.contextId+'="'+e+'"]',r=Dh(document.querySelectorAll(n));if(!r.length)return null;var o=Nh(r,(function(e){return e.getAttribute(dg.draggableId)===t}));return o&&Eg(o)?o:null}function Sg(){var e={draggables:{},droppables:{}},t=[];function n(e){t.length&&t.forEach((function(t){return t(e)}))}function r(t){return e.draggables[t]||null}function o(t){return e.droppables[t]||null}return{draggable:{register:function(t){e.draggables[t.descriptor.id]=t,n({type:"ADDITION",value:t})},update:function(t,n){var r=e.draggables[n.descriptor.id];r&&r.uniqueId===t.uniqueId&&(delete e.draggables[n.descriptor.id],e.draggables[t.descriptor.id]=t)},unregister:function(t){var o=t.descriptor.id,i=r(o);i&&t.uniqueId===i.uniqueId&&(delete e.draggables[o],n({type:"REMOVAL",value:t}))},getById:function(e){var t=r(e);return t||sh(!1),t},findById:r,exists:function(e){return Boolean(r(e))},getAllByType:function(t){return Ih(e.draggables).filter((function(e){return e.descriptor.type===t}))}},droppable:{register:function(t){e.droppables[t.descriptor.id]=t},unregister:function(t){var n=o(t.descriptor.id);n&&t.uniqueId===n.uniqueId&&delete e.droppables[t.descriptor.id]},getById:function(e){var t=o(e);return t||sh(!1),t},findById:o,exists:function(e){return Boolean(o(e))},getAllByType:function(t){return Ih(e.droppables).filter((function(e){return e.descriptor.type===t}))}},subscribe:function(e){return t.push(e),function(){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}},clean:function(){e.draggables={},e.droppables={},t.length=0}}}var Og=r.createContext(null),kg=function(){var e=document.body;return e||sh(!1),e},Cg={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"};var Pg=0,jg={separator:"::"};function Tg(e,t){return void 0===t&&(t=jg),Zp((function(){return""+e+t.separator+Pg++}),[t.separator,e])}var Ag=r.createContext(null);function Ig(e){0}function Rg(e,t){Ig()}function Ng(){Rg()}function Dg(e){var t=(0,r.useRef)(e);return(0,r.useEffect)((function(){t.current=e})),t}var Mg,Lg=((Mg={})[13]=!0,Mg[9]=!0,Mg),Fg=function(e){Lg[e.keyCode]&&e.preventDefault()},zg=function(){var e="visibilitychange";return"undefined"==typeof document?e:Nh([e,"ms"+e,"webkit"+e,"moz"+e,"o"+e],(function(e){return"on"+e in document}))||e}();var Bg,Ug={type:"IDLE"};function Zg(e){var t=e.cancel,n=e.completed,r=e.getPhase,o=e.setPhase;return[{eventName:"mousemove",fn:function(e){var t=e.button,n=e.clientX,i=e.clientY;if(0===t){var a={x:n,y:i},l=r();if("DRAGGING"===l.type)return e.preventDefault(),void l.actions.move(a);"PENDING"!==l.type&&sh(!1);var s=l.point;if(u=s,c=a,Math.abs(c.x-u.x)>=5||Math.abs(c.y-u.y)>=5){var u,c;e.preventDefault();var f=l.actions.fluidLift(a);o({type:"DRAGGING",actions:f})}}}},{eventName:"mouseup",fn:function(e){var o=r();"DRAGGING"===o.type?(e.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),n()):t()}},{eventName:"mousedown",fn:function(e){"DRAGGING"===r().type&&e.preventDefault(),t()}},{eventName:"keydown",fn:function(e){if("PENDING"!==r().type)return 27===e.keyCode?(e.preventDefault(),void t()):void Fg(e);t()}},{eventName:"resize",fn:t},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){"PENDING"===r().type&&t()}},{eventName:"webkitmouseforcedown",fn:function(e){var n=r();"IDLE"===n.type&&sh(!1),n.actions.shouldRespectForcePress()?t():e.preventDefault()}},{eventName:zg,fn:t}]}function Hg(){}var Wg=((Bg={})[34]=!0,Bg[33]=!0,Bg[36]=!0,Bg[35]=!0,Bg);function Vg(e,t){function n(){t(),e.cancel()}return[{eventName:"keydown",fn:function(r){return 27===r.keyCode?(r.preventDefault(),void n()):32===r.keyCode?(r.preventDefault(),t(),void e.drop()):40===r.keyCode?(r.preventDefault(),void e.moveDown()):38===r.keyCode?(r.preventDefault(),void e.moveUp()):39===r.keyCode?(r.preventDefault(),void e.moveRight()):37===r.keyCode?(r.preventDefault(),void e.moveLeft()):void(Wg[r.keyCode]?r.preventDefault():Fg(r))}},{eventName:"mousedown",fn:n},{eventName:"mouseup",fn:n},{eventName:"click",fn:n},{eventName:"touchstart",fn:n},{eventName:"resize",fn:n},{eventName:"wheel",fn:n,options:{passive:!0}},{eventName:zg,fn:n}]}var Gg={type:"IDLE"};var $g={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function Kg(e,t){var n=t.target;return!!Eg(n)&&function e(t,n){if(null==n)return!1;if(Boolean($g[n.tagName.toLowerCase()]))return!0;var r=n.getAttribute("contenteditable");return"true"===r||""===r||n!==t&&e(t,n.parentElement)}(e,n)}var qg=function(e){return Wp(e.getBoundingClientRect()).center};var Yg="undefined"==typeof document?"matches":Nh(["matches","msMatchesSelector","webkitMatchesSelector"],(function(e){return e in Element.prototype}))||"matches";function Jg(e,t){return e.closest?e.closest(t):function e(t,n){return null==t?null:t[Yg](n)?t:e(t.parentElement,n)}(e,t)}function Xg(e,t){var n,r=t.target;if(!((n=r)instanceof xg(n).Element))return null;var o=Jg(r,function(e){return"["+dg.contextId+'="'+e+'"]'}(e));return o&&Eg(o)?o:null}function Qg(e){e.preventDefault()}function ey(e){var t=e.expected,n=e.phase,r=e.isLockActive;e.shouldWarn;return!!r()&&t===n}function ty(e){var t=e.lockAPI,n=e.store,r=e.registry,o=e.draggableId;if(t.isClaimed())return!1;var i=r.draggable.findById(o);return!!i&&(!!i.options.isEnabled&&!!Zv(n.getState(),o))}function ny(e){var t=e.lockAPI,n=e.contextId,r=e.store,o=e.registry,i=e.draggableId,a=e.forceSensorStop,l=e.sourceEvent;if(!ty({lockAPI:t,store:r,registry:o,draggableId:i}))return null;var s=o.draggable.getById(i),u=function(e,t){var n="["+pg.contextId+'="'+e+'"]',r=Nh(Dh(document.querySelectorAll(n)),(function(e){return e.getAttribute(pg.id)===t}));return r&&Eg(r)?r:null}(n,s.descriptor.id);if(!u)return null;if(l&&!s.options.canDragInteractiveElements&&Kg(u,l))return null;var c=t.claim(a||ih),f="PRE_DRAG";function d(){return s.options.shouldRespectForcePress}function p(){return t.isActive(c)}var h=function(e,t){ey({expected:e,phase:f,isLockActive:p,shouldWarn:!0})&&r.dispatch(t())}.bind(null,"DRAGGING");function m(e){function n(){t.release(),f="COMPLETED"}function o(t,o){if(void 0===o&&(o={shouldBlockNextClick:!1}),e.cleanup(),o.shouldBlockNextClick){var i=ah(window,[{eventName:"click",fn:Qg,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(i)}n(),r.dispatch(lv({reason:t}))}return"PRE_DRAG"!==f&&(n(),"PRE_DRAG"!==f&&sh(!1)),r.dispatch(function(e){return{type:"LIFT",payload:e}}(e.liftActionArgs)),f="DRAGGING",(0,po.Z)({isActive:function(){return ey({expected:"DRAGGING",phase:f,isLockActive:p,shouldWarn:!1})},shouldRespectForcePress:d,drop:function(e){return o("DROP",e)},cancel:function(e){return o("CANCEL",e)}},e.actions)}return{isActive:function(){return ey({expected:"PRE_DRAG",phase:f,isLockActive:p,shouldWarn:!1})},shouldRespectForcePress:d,fluidLift:function(e){var t=rh((function(e){h((function(){return tv({client:e})}))})),n=m({liftActionArgs:{id:i,clientSelection:e,movementMode:"FLUID"},cleanup:function(){return t.cancel()},actions:{move:t}});return(0,po.Z)({},n,{move:t})},snapLift:function(){var e={moveUp:function(){return h(nv)},moveRight:function(){return h(ov)},moveDown:function(){return h(rv)},moveLeft:function(){return h(iv)}};return m({liftActionArgs:{id:i,clientSelection:qg(u),movementMode:"SNAP"},cleanup:ih,actions:e})},abort:function(){ey({expected:"PRE_DRAG",phase:f,isLockActive:p,shouldWarn:!0})&&t.release()}}}var ry=[function(e){var t=(0,r.useRef)(Ug),n=(0,r.useRef)(ih),o=Zp((function(){return{eventName:"mousedown",fn:function(t){if(!t.defaultPrevented&&0===t.button&&!(t.ctrlKey||t.metaKey||t.shiftKey||t.altKey)){var r=e.findClosestDraggableId(t);if(r){var o=e.tryGetLock(r,l,{sourceEvent:t});if(o){t.preventDefault();var i={x:t.clientX,y:t.clientY};n.current(),c(o,i)}}}}}}),[e]),i=Zp((function(){return{eventName:"webkitmouseforcewillbegin",fn:function(t){if(!t.defaultPrevented){var n=e.findClosestDraggableId(t);if(n){var r=e.findOptionsForDraggable(n);r&&(r.shouldRespectForcePress||e.canGetLock(n)&&t.preventDefault())}}}}}),[e]),a=Hp((function(){n.current=ah(window,[i,o],{passive:!1,capture:!0})}),[i,o]),l=Hp((function(){"IDLE"!==t.current.type&&(t.current=Ug,n.current(),a())}),[a]),s=Hp((function(){var e=t.current;l(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[l]),u=Hp((function(){var e=Zg({cancel:s,completed:l,getPhase:function(){return t.current},setPhase:function(e){t.current=e}});n.current=ah(window,e,{capture:!0,passive:!1})}),[s,l]),c=Hp((function(e,n){"IDLE"!==t.current.type&&sh(!1),t.current={type:"PENDING",point:n,actions:e},u()}),[u]);gg((function(){return a(),function(){n.current()}}),[a])},function(e){var t=(0,r.useRef)(Hg),n=Zp((function(){return{eventName:"keydown",fn:function(n){if(!n.defaultPrevented&&32===n.keyCode){var r=e.findClosestDraggableId(n);if(r){var i=e.tryGetLock(r,s,{sourceEvent:n});if(i){n.preventDefault();var a=!0,l=i.snapLift();t.current(),t.current=ah(window,Vg(l,s),{capture:!0,passive:!1})}}}function s(){a||sh(!1),a=!1,t.current(),o()}}}}),[e]),o=Hp((function(){t.current=ah(window,[n],{passive:!1,capture:!0})}),[n]);gg((function(){return o(),function(){t.current()}}),[o])},function(e){var t=(0,r.useRef)(Gg),n=(0,r.useRef)(ih),o=Hp((function(){return t.current}),[]),i=Hp((function(e){t.current=e}),[]),a=Zp((function(){return{eventName:"touchstart",fn:function(t){if(!t.defaultPrevented){var r=e.findClosestDraggableId(t);if(r){var o=e.tryGetLock(r,s,{sourceEvent:t});if(o){var i=t.touches[0],a={x:i.clientX,y:i.clientY};n.current(),d(o,a)}}}}}}),[e]),l=Hp((function(){n.current=ah(window,[a],{capture:!0,passive:!1})}),[a]),s=Hp((function(){var e=t.current;"IDLE"!==e.type&&("PENDING"===e.type&&clearTimeout(e.longPressTimerId),i(Gg),n.current(),l())}),[l,i]),u=Hp((function(){var e=t.current;s(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[s]),c=Hp((function(){var e={capture:!0,passive:!1},t={cancel:u,completed:s,getPhase:o},r=ah(window,function(e){var t=e.cancel,n=e.completed,r=e.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(e){var n=r();if("DRAGGING"===n.type){n.hasMoved=!0;var o=e.touches[0],i={x:o.clientX,y:o.clientY};e.preventDefault(),n.actions.move(i)}else t()}},{eventName:"touchend",fn:function(e){var o=r();"DRAGGING"===o.type?(e.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),n()):t()}},{eventName:"touchcancel",fn:function(e){"DRAGGING"===r().type?(e.preventDefault(),t()):t()}},{eventName:"touchforcechange",fn:function(e){var n=r();"IDLE"===n.type&&sh(!1);var o=e.touches[0];if(o&&o.force>=.15){var i=n.actions.shouldRespectForcePress();if("PENDING"!==n.type)return i?n.hasMoved?void e.preventDefault():void t():void e.preventDefault();i&&t()}}},{eventName:zg,fn:t}]}(t),e),i=ah(window,function(e){var t=e.cancel,n=e.getPhase;return[{eventName:"orientationchange",fn:t},{eventName:"resize",fn:t},{eventName:"contextmenu",fn:function(e){e.preventDefault()}},{eventName:"keydown",fn:function(e){"DRAGGING"===n().type?(27===e.keyCode&&e.preventDefault(),t()):t()}},{eventName:zg,fn:t}]}(t),e);n.current=function(){r(),i()}}),[u,o,s]),f=Hp((function(){var e=o();"PENDING"!==e.type&&sh(!1);var t=e.actions.fluidLift(e.point);i({type:"DRAGGING",actions:t,hasMoved:!1})}),[o,i]),d=Hp((function(e,t){"IDLE"!==o().type&&sh(!1);var n=setTimeout(f,120);i({type:"PENDING",point:t,actions:e,longPressTimerId:n}),c()}),[c,o,i,f]);gg((function(){return l(),function(){n.current();var e=o();"PENDING"===e.type&&(clearTimeout(e.longPressTimerId),i(Gg))}}),[o,l,i]),gg((function(){return ah(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}])}),[])}];function oy(e){var t=e.contextId,n=e.store,o=e.registry,i=e.customSensors,a=e.enableDefaultSensors,l=[].concat(a?ry:[],i||[]),s=(0,r.useState)((function(){return function(){var e=null;function t(){e||sh(!1),e=null}return{isClaimed:function(){return Boolean(e)},isActive:function(t){return t===e},claim:function(t){e&&sh(!1);var n={abandon:t};return e=n,n},release:t,tryAbandon:function(){e&&(e.abandon(),t())}}}()}))[0],u=Hp((function(e,t){e.isDragging&&!t.isDragging&&s.tryAbandon()}),[s]);gg((function(){var e=n.getState();return n.subscribe((function(){var t=n.getState();u(e,t),e=t}))}),[s,n,u]),gg((function(){return s.tryAbandon}),[s.tryAbandon]);var c=Hp((function(e){return ty({lockAPI:s,registry:o,store:n,draggableId:e})}),[s,o,n]),f=Hp((function(e,r,i){return ny({lockAPI:s,registry:o,contextId:t,store:n,draggableId:e,forceSensorStop:r,sourceEvent:i&&i.sourceEvent?i.sourceEvent:null})}),[t,s,o,n]),d=Hp((function(e){return function(e,t){var n=Xg(e,t);return n?n.getAttribute(dg.draggableId):null}(t,e)}),[t]),p=Hp((function(e){var t=o.draggable.findById(e);return t?t.options:null}),[o.draggable]),h=Hp((function(){s.isClaimed()&&(s.tryAbandon(),"IDLE"!==n.getState().phase&&n.dispatch({type:"FLUSH",payload:null}))}),[s,n]),m=Hp(s.isClaimed,[s]),v=Zp((function(){return{canGetLock:c,tryGetLock:f,findClosestDraggableId:d,findOptionsForDraggable:p,tryReleaseLock:h,isLockClaimed:m}}),[c,f,d,p,h,m]);Ig();for(var g=0;g<l.length;g++)l[g](v)}function iy(e){return e.current||sh(!1),e.current}function ay(e){var t=e.contextId,n=e.setCallbacks,o=e.sensors,i=e.nonce,a=e.dragHandleUsageInstructions,l=(0,r.useRef)(null);Ng();var s=Dg(e),u=Hp((function(){return function(e){return{onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}}(s.current)}),[s]),c=function(e){var t=Zp((function(){return function(e){return"rbd-announcement-"+e}(e)}),[e]),n=(0,r.useRef)(null);return(0,r.useEffect)((function(){var e=document.createElement("div");return n.current=e,e.id=t,e.setAttribute("aria-live","assertive"),e.setAttribute("aria-atomic","true"),(0,po.Z)(e.style,Cg),kg().appendChild(e),function(){setTimeout((function(){var t=kg();t.contains(e)&&t.removeChild(e),e===n.current&&(n.current=null)}))}}),[t]),Hp((function(e){var t=n.current;t&&(t.textContent=e)}),[])}(t),f=function(e){var t=e.contextId,n=e.text,o=Tg("hidden-text",{separator:"-"}),i=Zp((function(){return function(e){return"rbd-hidden-text-"+e.contextId+"-"+e.uniqueId}({contextId:t,uniqueId:o})}),[o,t]);return(0,r.useEffect)((function(){var e=document.createElement("div");return e.id=i,e.textContent=n,e.style.display="none",kg().appendChild(e),function(){var t=kg();t.contains(e)&&t.removeChild(e)}}),[i,n]),i}({contextId:t,text:a}),p=wg(t,i),h=Hp((function(e){iy(l).dispatch(e)}),[]),m=Zp((function(){return d({publishWhileDragging:Ym,updateDroppableScroll:Xm,updateDroppableIsEnabled:Qm,updateDroppableIsCombineEnabled:ev,collectionStarting:Jm},h)}),[h]),v=function(){var e=Zp(Sg,[]);return(0,r.useEffect)((function(){return function(){requestAnimationFrame(e.clean)}}),[e]),e}(),g=Zp((function(){return Uv(v,m)}),[v,m]),y=Zp((function(){return fg((0,po.Z)({scrollWindow:Hv,scrollDroppable:g.scrollDroppable},d({move:tv},h)))}),[g.scrollDroppable,h]),b=function(e){var t=(0,r.useRef)({}),n=(0,r.useRef)(null),o=(0,r.useRef)(null),i=(0,r.useRef)(!1),a=Hp((function(e,n){var r={id:e,focus:n};return t.current[e]=r,function(){var n=t.current;n[e]!==r&&delete n[e]}}),[]),l=Hp((function(t){var n=_g(e,t);n&&n!==document.activeElement&&n.focus()}),[e]),s=Hp((function(e,t){n.current===e&&(n.current=t)}),[]),u=Hp((function(){o.current||i.current&&(o.current=requestAnimationFrame((function(){o.current=null;var e=n.current;e&&l(e)})))}),[l]),c=Hp((function(e){n.current=null;var t=document.activeElement;t&&t.getAttribute(dg.draggableId)===e&&(n.current=e)}),[]);return gg((function(){return i.current=!0,function(){i.current=!1;var e=o.current;e&&cancelAnimationFrame(e)}}),[]),Zp((function(){return{register:a,tryRecordFocus:c,tryRestoreFocusRecorded:u,tryShiftRecord:s}}),[a,c,u,s])}(t),w=Zp((function(){return Rv({announce:c,autoScroller:y,dimensionMarshal:g,focusMarshal:b,getResponders:u,styleMarshal:p})}),[c,y,g,b,u,p]);l.current=w;var x=Hp((function(){var e=iy(l);"IDLE"!==e.getState().phase&&e.dispatch({type:"FLUSH",payload:null})}),[]),E=Hp((function(){var e=iy(l).getState();return e.isDragging||"DROP_ANIMATING"===e.phase}),[]);n(Zp((function(){return{isDragging:E,tryAbort:x}}),[E,x]));var _=Hp((function(e){return Zv(iy(l).getState(),e)}),[]),S=Hp((function(){return jm(iy(l).getState())}),[]),O=Zp((function(){return{marshal:g,focus:b,contextId:t,canLift:_,isMovementAllowed:S,dragHandleUsageInstructionsId:f,registry:v}}),[t,g,f,b,_,S,v]);return oy({contextId:t,store:w,registry:v,customSensors:o,enableDefaultSensors:!1!==e.enableDefaultSensors}),(0,r.useEffect)((function(){return x}),[x]),r.createElement(Ag.Provider,{value:O},r.createElement(Xa,{context:Og,store:w},e.children))}var ly=0;function sy(e){var t=Zp((function(){return""+ly++}),[]),n=e.dragHandleUsageInstructions||hh;return r.createElement(uh,null,(function(o){return r.createElement(ay,{nonce:e.nonce,contextId:t,setCallbacks:o,dragHandleUsageInstructions:n,enableDefaultSensors:e.enableDefaultSensors,sensors:e.sensors,onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragUpdate:e.onDragUpdate,onDragEnd:e.onDragEnd},e.children)}))}var uy=function(e){return function(t){return e===t}},cy=uy("scroll"),fy=uy("auto"),dy=(uy("visible"),function(e,t){return t(e.overflowX)||t(e.overflowY)}),py=function(e){var t=window.getComputedStyle(e),n={overflowX:t.overflowX,overflowY:t.overflowY};return dy(n,cy)||dy(n,fy)},hy=function e(t){return null==t||t===document.body||t===document.documentElement?null:py(t)?t:e(t.parentElement)},my=function(e){return{x:e.scrollLeft,y:e.scrollTop}},vy=function(e){return{closestScrollable:hy(e),isFixedOnPage:function e(t){return!!t&&("fixed
9
  *
10
  * Buttonizer is Freemium software. The free version (build) does not contain premium functionality.
11
  *
12
+ * (C) 2017-2022 Buttonizer v2.6.4
13
  *
14
  */
15
  /*!
23
  *
24
  * Buttonizer is Freemium software. The free version (build) does not contain premium functionality.
25
  *
26
+ * (C) 2017-2022 Buttonizer v2.6.4
27
  *
28
+ */!function(){var e,t,n={50676:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{Z:function(){return r}})},59968:function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,{Z:function(){return r}})},83614:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(50676);function o(e){if(Array.isArray(e))return(0,r.Z)(e)}},63349:function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:function(){return r}})},5991:function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}n.d(t,{Z:function(){return o}})},96156:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:function(){return r}})},22122:function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,{Z:function(){return r}})},41788:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(14665);function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,r.Z)(e,t)}},96410:function(e,t,n){"use strict";function r(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,{Z:function(){return r}})},28970:function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{Z:function(){return r}})},62303:function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{Z:function(){return r}})},81253:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(19756);function o(e,t){if(null==e)return{};var n,o,i=(0,r.Z)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},19756:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,{Z:function(){return r}})},14665:function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}n.d(t,{Z:function(){return r}})},28481:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(59968);var o=n(82961),i=n(28970);function a(e,t){return(0,r.Z)(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(e,t)||(0,o.Z)(e,t)||(0,i.Z)()}},78927:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(83614),o=n(96410),i=n(82961),a=n(62303);function l(e){return(0,r.Z)(e)||(0,o.Z)(e)||(0,i.Z)(e)||(0,a.Z)()}},90484:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,{Z:function(){return r}})},82961:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(50676);function o(e,t){if(e){if("string"==typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(e,t):void 0}}},95318:function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},20862:function(e,t,n){var r=n(50008).default;function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}e.exports=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var i={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var s=a?Object.getOwnPropertyDescriptor(e,l):null;s&&(s.get||s.set)?Object.defineProperty(i,l,s):i[l]=e[l]}return i.default=e,n&&n.set(e,i),i},e.exports.__esModule=!0,e.exports.default=e.exports},50008:function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},70597:function(e,t,n){"use strict";var r,o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(67294),a=(r=i)&&r.__esModule?r:{default:r};t.Z=function(e){var t=e.fill,n=void 0===t?"currentColor":t,r=e.width,i=void 0===r?24:r,l=e.height,s=void 0===l?24:l,u=e.style,c=void 0===u?{}:u,f=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["fill","width","height","style"]);return a.default.createElement("svg",o({viewBox:"0 0 24 24",style:o({fill:n,width:i,height:s},c)},f),a.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))}},43891:function(e,t,n){"use strict";var r,o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(67294),a=(r=i)&&r.__esModule?r:{default:r};t.Z=function(e){var t=e.fill,n=void 0===t?"currentColor":t,r=e.width,i=void 0===r?24:r,l=e.height,s=void 0===l?24:l,u=e.style,c=void 0===u?{}:u,f=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["fill","width","height","style"]);return a.default.createElement("svg",o({viewBox:"0 0 24 24",style:o({fill:n,width:i,height:s},c)},f),a.default.createElement("path",{d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}))}},62087:function(e,t,n){"use strict";var r=n(22122),o=n(81253),i=n(67294),a=(n(45697),n(86010)),l=n(14670),s=n(93871),u=i.forwardRef((function(e,t){var n=e.children,l=e.classes,u=e.className,c=e.color,f=void 0===c?"inherit":c,d=e.component,p=void 0===d?"svg":d,h=e.fontSize,m=void 0===h?"default":h,v=e.htmlColor,g=e.titleAccess,y=e.viewBox,b=void 0===y?"0 0 24 24":y,w=(0,o.Z)(e,["children","classes","className","color","component","fontSize","htmlColor","titleAccess","viewBox"]);return i.createElement(p,(0,r.Z)({className:(0,a.Z)(l.root,u,"inherit"!==f&&l["color".concat((0,s.Z)(f))],"default"!==m&&l["fontSize".concat((0,s.Z)(m))]),focusable:"false",viewBox:b,color:v,"aria-hidden":!g||void 0,role:g?"img":void 0,ref:t},w),n,g?i.createElement("title",null,g):null)}));u.muiName="SvgIcon",t.Z=(0,l.Z)((function(e){return{root:{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,fontSize:e.typography.pxToRem(24),transition:e.transitions.create("fill",{duration:e.transitions.duration.shorter})},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorAction:{color:e.palette.action.active},colorError:{color:e.palette.error.main},colorDisabled:{color:e.palette.action.disabled},fontSizeInherit:{fontSize:"inherit"},fontSizeSmall:{fontSize:e.typography.pxToRem(20)},fontSizeLarge:{fontSize:e.typography.pxToRem(35)}}}),{name:"MuiSvgIcon"})(u)},59693:function(e,t,n){"use strict";n.d(t,{mi:function(){return l},_4:function(){return u},U1:function(){return c},_j:function(){return f},$n:function(){return d}});var r=n(60288);function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function i(e){if(e.type)return e;if("#"===e.charAt(0))return i(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error((0,r.Z)(3,e));var o=e.substring(t+1,e.length-1).split(",");return{type:n,values:o=o.map((function(e){return parseFloat(e)}))}}function a(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function l(e,t){var n=s(e),r=s(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function s(e){var t="hsl"===(e=i(e)).type?i(function(e){var t=(e=i(e)).values,n=t[0],r=t[1]/100,o=t[2]/100,l=r*Math.min(o,1-o),s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return o-l*Math.max(Math.min(t-3,9-t,1),-1)},u="rgb",c=[Math.round(255*s(0)),Math.round(255*s(8)),Math.round(255*s(4))];return"hsla"===e.type&&(u+="a",c.push(t[3])),a({type:u,values:c})}(e)).values:e.values;return t=t.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return s(e)>.5?f(e,t):d(e,t)}function c(e,t){return e=i(e),t=o(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,a(e)}function f(e,t){if(e=i(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return a(e)}function d(e,t){if(e=i(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return a(e)}},49277:function(e,t,n){"use strict";n.d(t,{Z:function(){return K}});var r=n(81253),o=n(35953),i=n(22122),a=["xs","sm","md","lg","xl"];function l(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,o=e.unit,l=void 0===o?"px":o,s=e.step,u=void 0===s?5:s,c=(0,r.Z)(e,["values","unit","step"]);function f(e){var t="number"==typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(l,")")}function d(e,t){var r=a.indexOf(t);return r===a.length-1?f(e):"@media (min-width:".concat("number"==typeof n[e]?n[e]:e).concat(l,") and ")+"(max-width:".concat((-1!==r&&"number"==typeof n[a[r+1]]?n[a[r+1]]:t)-u/100).concat(l,")")}return(0,i.Z)({keys:a,values:n,up:f,down:function(e){var t=a.indexOf(e)+1,r=n[a[t]];return t===a.length?f("xs"):"@media (max-width:".concat(("number"==typeof r&&t>0?r:e)-u/100).concat(l,")")},between:d,only:function(e){return d(e,e)},width:function(e){return n[e]}},c)}var s=n(96156);function u(e,t,n){var r;return(0,i.Z)({gutters:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,i.Z)({paddingLeft:t(2),paddingRight:t(2)},n,(0,s.Z)({},e.up("sm"),(0,i.Z)({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(r={minHeight:56},(0,s.Z)(r,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),(0,s.Z)(r,e.up("sm"),{minHeight:64}),r)},n)}var c=n(60288),f={black:"#000",white:"#fff"},d={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"},p={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"},h={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"},m={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},v={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},g={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},y={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},b=n(59693),w={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:f.white,default:d[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},x={text:{primary:f.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:d[800],default:"#303030"},action:{active:f.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function E(e,t,n,r){var o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,b.$n)(e.main,o):"dark"===t&&(e.dark=(0,b._j)(e.main,i)))}function _(e){var t=e.primary,n=void 0===t?{light:p[300],main:p[500],dark:p[700]}:t,a=e.secondary,l=void 0===a?{light:h.A200,main:h.A400,dark:h.A700}:a,s=e.error,u=void 0===s?{light:m[300],main:m[500],dark:m[700]}:s,_=e.warning,S=void 0===_?{light:v[300],main:v[500],dark:v[700]}:_,O=e.info,k=void 0===O?{light:g[300],main:g[500],dark:g[700]}:O,C=e.success,P=void 0===C?{light:y[300],main:y[500],dark:y[700]}:C,j=e.type,T=void 0===j?"light":j,A=e.contrastThreshold,I=void 0===A?3:A,R=e.tonalOffset,N=void 0===R?.2:R,D=(0,r.Z)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function M(e){return(0,b.mi)(e,x.text.primary)>=I?x.text.primary:w.text.primary}var L=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=(0,i.Z)({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error((0,c.Z)(4,t));if("string"!=typeof e.main)throw new Error((0,c.Z)(5,JSON.stringify(e.main)));return E(e,"light",n,N),E(e,"dark",r,N),e.contrastText||(e.contrastText=M(e.main)),e},F={dark:x,light:w};return(0,o.Z)((0,i.Z)({common:f,type:T,primary:L(n),secondary:L(l,"A400","A200","A700"),error:L(u),warning:L(S),info:L(k),success:L(P),grey:d,contrastThreshold:I,getContrastText:M,augmentColor:L,tonalOffset:N},F[T]),D)}function S(e){return Math.round(1e5*e)/1e5}var O={textTransform:"uppercase"};function k(e,t){var n="function"==typeof t?t(e):t,a=n.fontFamily,l=void 0===a?'"Roboto", "Helvetica", "Arial", sans-serif':a,s=n.fontSize,u=void 0===s?14:s,c=n.fontWeightLight,f=void 0===c?300:c,d=n.fontWeightRegular,p=void 0===d?400:d,h=n.fontWeightMedium,m=void 0===h?500:h,v=n.fontWeightBold,g=void 0===v?700:v,y=n.htmlFontSize,b=void 0===y?16:y,w=n.allVariants,x=n.pxToRem,E=(0,r.Z)(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]);var _=u/14,k=x||function(e){return"".concat(e/b*_,"rem")},C=function(e,t,n,r,o){return(0,i.Z)({fontFamily:l,fontWeight:e,fontSize:k(t),lineHeight:n},'"Roboto", "Helvetica", "Arial", sans-serif'===l?{letterSpacing:"".concat(S(r/t),"em")}:{},o,w)},P={h1:C(f,96,1.167,-1.5),h2:C(f,60,1.2,-.5),h3:C(p,48,1.167,0),h4:C(p,34,1.235,.25),h5:C(p,24,1.334,0),h6:C(m,20,1.6,.15),subtitle1:C(p,16,1.75,.15),subtitle2:C(m,14,1.57,.1),body1:C(p,16,1.5,.15),body2:C(p,14,1.43,.15),button:C(m,14,1.75,.4,O),caption:C(p,12,1.66,.4),overline:C(p,12,2.66,1,O)};return(0,o.Z)((0,i.Z)({htmlFontSize:b,pxToRem:k,round:S,fontFamily:l,fontSize:u,fontWeightLight:f,fontWeightRegular:p,fontWeightMedium:m,fontWeightBold:g},P),E,{clone:!1})}function C(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var P=["none",C(0,2,1,-1,0,1,1,0,0,1,3,0),C(0,3,1,-2,0,2,2,0,0,1,5,0),C(0,3,3,-2,0,3,4,0,0,1,8,0),C(0,2,4,-1,0,4,5,0,0,1,10,0),C(0,3,5,-1,0,5,8,0,0,1,14,0),C(0,3,5,-1,0,6,10,0,0,1,18,0),C(0,4,5,-2,0,7,10,1,0,2,16,1),C(0,5,5,-3,0,8,10,1,0,3,14,2),C(0,5,6,-3,0,9,12,1,0,3,16,2),C(0,6,6,-3,0,10,14,1,0,4,18,3),C(0,6,7,-4,0,11,15,1,0,4,20,3),C(0,7,8,-4,0,12,17,2,0,5,22,4),C(0,7,8,-4,0,13,19,2,0,5,24,4),C(0,7,9,-4,0,14,21,2,0,5,26,4),C(0,8,9,-5,0,15,22,2,0,6,28,5),C(0,8,10,-5,0,16,24,2,0,6,30,5),C(0,8,11,-5,0,17,26,2,0,6,32,5),C(0,9,11,-5,0,18,28,2,0,7,34,6),C(0,9,12,-6,0,19,29,2,0,7,36,6),C(0,10,13,-6,0,20,31,3,0,8,38,7),C(0,10,13,-6,0,21,33,3,0,8,40,7),C(0,10,14,-6,0,22,35,3,0,8,42,7),C(0,11,14,-7,0,23,36,3,0,9,44,8),C(0,11,15,-7,0,24,38,3,0,9,46,8)],j={borderRadius:4},T=n(28481),A=n(90484),I=(n(45697),{xs:0,sm:600,md:960,lg:1280,xl:1920}),R={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(I[e],"px)")}};var N=function(e,t){return t?(0,o.Z)(e,t,{clone:!1}):e};var D,M,L={m:"margin",p:"padding"},F={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},z={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},B=(D=function(e){if(e.length>2){if(!z[e])return[e];e=z[e]}var t=e.split(""),n=(0,T.Z)(t,2),r=n[0],o=n[1],i=L[r],a=F[o]||"";return Array.isArray(a)?a.map((function(e){return i+e})):[i+a]},M={},function(e){return void 0===M[e]&&(M[e]=D(e)),M[e]}),U=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function Z(e){var t=e.spacing||8;return"number"==typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"==typeof t?t:function(){}}function H(e,t){return function(n){return e.reduce((function(e,r){return e[r]=function(e,t){if("string"==typeof t||null==t)return t;var n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:"-".concat(n)}(t,n),e}),{})}}function W(e){var t=Z(e.theme);return Object.keys(e).map((function(n){if(-1===U.indexOf(n))return null;var r=H(B(n),t),o=e[n];return function(e,t,n){if(Array.isArray(t)){var r=e.theme.breakpoints||R;return t.reduce((function(e,o,i){return e[r.up(r.keys[i])]=n(t[i]),e}),{})}if("object"===(0,A.Z)(t)){var o=e.theme.breakpoints||R;return Object.keys(t).reduce((function(e,r){return e[o.up(r)]=n(t[r]),e}),{})}return n(t)}(e,o,r)})).reduce(N,{})}W.propTypes={},W.filterProps=U;function V(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=Z({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return 0===n.length?t(1):1===n.length?t(n[0]):n.map((function(e){if("string"==typeof e)return e;var n=t(e);return"number"==typeof n?"".concat(n,"px"):n})).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return e}}),n.mui=!0,n}var G=n(43366),$=n(92781);var K=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,i=e.mixins,a=void 0===i?{}:i,s=e.palette,c=void 0===s?{}:s,f=e.spacing,d=e.typography,p=void 0===d?{}:d,h=(0,r.Z)(e,["breakpoints","mixins","palette","spacing","typography"]),m=_(c),v=l(n),g=V(f),y=(0,o.Z)({breakpoints:v,direction:"ltr",mixins:u(v,g,a),overrides:{},palette:m,props:{},shadows:P,typography:k(m,p),spacing:g,shape:j,transitions:G.ZP,zIndex:$.Z},h),b=arguments.length,w=new Array(b>1?b-1:0),x=1;x<b;x++)w[x-1]=arguments[x];return y=w.reduce((function(e,t){return(0,o.Z)(e,t)}),y)}},99700:function(e,t,n){"use strict";var r=(0,n(49277).Z)();t.Z=r},43366:function(e,t,n){"use strict";n.d(t,{x9:function(){return i}});var r=n(81253),o={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},i={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function a(e){return"".concat(Math.round(e),"ms")}t.ZP={easing:o,duration:i,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.duration,l=void 0===n?i.standard:n,s=t.easing,u=void 0===s?o.easeInOut:s,c=t.delay,f=void 0===c?0:c;(0,r.Z)(t,["duration","easing","delay"]);return(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof l?l:a(l)," ").concat(u," ").concat("string"==typeof f?f:a(f))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}}},14670:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(22122),o=n(81253),i=n(67294),a=(n(45697),n(8679)),l=n.n(a),s=n(73914),u=n(93869),c=n(159),f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var a=t.defaultTheme,f=t.withTheme,d=void 0!==f&&f,p=t.name,h=(0,o.Z)(t,["defaultTheme","withTheme","name"]);var m=p,v=(0,s.Z)(e,(0,r.Z)({defaultTheme:a,Component:n,name:p||n.displayName,classNamePrefix:m},h)),g=i.forwardRef((function(e,t){e.classes;var l,s=e.innerRef,f=(0,o.Z)(e,["classes","innerRef"]),h=v((0,r.Z)({},n.defaultProps,e)),m=f;return("string"==typeof p||d)&&(l=(0,c.Z)()||a,p&&(m=(0,u.Z)({theme:l,name:p,props:f})),d&&!m.theme&&(m.theme=l)),i.createElement(n,(0,r.Z)({ref:s||t,classes:h},m))}));return l()(g,n),g}},d=n(99700);var p=function(e,t){return f(e,(0,r.Z)({defaultTheme:d.Z},t))}},92781:function(e,t){"use strict";t.Z={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500}},93871:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(60288);function o(e){if("string"!=typeof e)throw new Error((0,r.Z)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},82568:function(e,t,n){"use strict";function r(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return null==t?e:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];e.apply(this,r),t.apply(this,r)}}),(function(){}))}n.d(t,{Z:function(){return r}})},63786:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(22122),o=n(67294),i=n(62087);function a(e,t){var n=function(t,n){return o.createElement(i.Z,(0,r.Z)({ref:n},t),e)};return n.muiName=i.Z.muiName,o.memo(o.forwardRef(n))}},79437:function(e,t,n){"use strict";function r(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=this,l=function(){e.apply(a,o)};clearTimeout(t),t=setTimeout(l,n)}return r.clear=function(){clearTimeout(t)},r}n.d(t,{Z:function(){return r}})},28546:function(e,t,n){"use strict";n.r(t),n.d(t,{capitalize:function(){return r.Z},createChainedFunction:function(){return o.Z},createSvgIcon:function(){return i.Z},debounce:function(){return a.Z},deprecatedPropType:function(){return l},isMuiElement:function(){return s.Z},ownerDocument:function(){return u.Z},ownerWindow:function(){return c.Z},requirePropFactory:function(){return f},setRef:function(){return d.Z},unstable_useId:function(){return g.Z},unsupportedProp:function(){return p},useControlled:function(){return h.Z},useEventCallback:function(){return m.Z},useForkRef:function(){return v.Z},useIsFocusVisible:function(){return y.Z}});var r=n(93871),o=n(82568),i=n(63786),a=n(79437);function l(e,t){return function(){return null}}var s=n(83711),u=n(30626),c=n(80713);function f(e){return function(){return null}}var d=n(34236);function p(e,t,n,r,o){return null}var h=n(22775),m=n(55192),v=n(17294),g=n(95001),y=n(24896)},83711:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(67294);function o(e,t){return r.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)}},30626:function(e,t,n){"use strict";function r(e){return e&&e.ownerDocument||document}n.d(t,{Z:function(){return r}})},80713:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(30626);function o(e){return(0,r.Z)(e).defaultView||window}},34236:function(e,t,n){"use strict";function r(e,t){"function"==typeof e?e(t):e&&(e.current=t)}n.d(t,{Z:function(){return r}})},95001:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(67294);function o(e){var t=r.useState(e),n=t[0],o=t[1],i=e||n;return r.useEffect((function(){null==n&&o("mui-".concat(Math.round(1e5*Math.random())))}),[n]),i}},22775:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(67294);function o(e){var t=e.controlled,n=e.default,o=(e.name,e.state,r.useRef(void 0!==t).current),i=r.useState(n),a=i[0],l=i[1];return[o?t:a,r.useCallback((function(e){o||l(e)}),[])]}},55192:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(67294),o="undefined"!=typeof window?r.useLayoutEffect:r.useEffect;function i(e){var t=r.useRef(e);return o((function(){t.current=e})),r.useCallback((function(){return t.current.apply(void 0,arguments)}),[])}},17294:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(67294),o=n(34236);function i(e,t){return r.useMemo((function(){return null==e&&null==t?null:function(n){(0,o.Z)(e,n),(0,o.Z)(t,n)}}),[e,t])}},24896:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(67294),o=n(73935),i=!0,a=!1,l=null,s={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function u(e){e.metaKey||e.altKey||e.ctrlKey||(i=!0)}function c(){i=!1}function f(){"hidden"===this.visibilityState&&a&&(i=!0)}function d(e){var t,n,r,o=e.target;try{return o.matches(":focus-visible")}catch(e){}return i||(n=(t=o).type,!("INPUT"!==(r=t.tagName)||!s[n]||t.readOnly)||"TEXTAREA"===r&&!t.readOnly||!!t.isContentEditable)}function p(){a=!0,window.clearTimeout(l),l=window.setTimeout((function(){a=!1}),100)}function h(){return{isFocusVisible:d,onBlurVisible:p,ref:r.useCallback((function(e){var t,n=o.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",u,!0),t.addEventListener("mousedown",c,!0),t.addEventListener("pointerdown",c,!0),t.addEventListener("touchstart",c,!0),t.addEventListener("visibilitychange",f,!0))}),[])}}},89974:function(e,t,n){"use strict";var r=n(95318),o=n(20862);t.Z=void 0;var i=o(n(67294)),a=(0,r(n(2108)).default)(i.createElement("path",{d:"M20 18c1.1 0 1.99-.9 1.99-2L22 5c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v11c0 1.1.9 2 2 2H0c0 1.1.9 2 2 2h20c1.1 0 2-.9 2-2h-4zM4 5h16v11H4V5zm8 14c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1z"}),"LaptopMac");t.Z=a},78513:function(e,t,n){"use strict";var r=n(95318),o=n(20862);t.Z=void 0;var i=o(n(67294)),a=(0,r(n(2108)).default)(i.createElement("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVert");t.Z=a},6404:function(e,t,n){"use strict";var r=n(95318),o=n(20862);t.Z=void 0;var i=o(n(67294)),a=(0,r(n(2108)).default)(i.createElement("path",{d:"M15.5 1h-8C6.12 1 5 2.12 5 3.5v17C5 21.88 6.12 23 7.5 23h8c1.38 0 2.5-1.12 2.5-2.5v-17C18 2.12 16.88 1 15.5 1zm-4 21c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zm4.5-4H7V4h9v14z"}),"PhoneIphone");t.Z=a},79015:function(e,t,n){"use strict";var r=n(95318),o=n(20862);t.Z=void 0;var i=o(n(67294)),a=(0,r(n(2108)).default)(i.createElement("path",{d:"M18.5 0h-14C3.12 0 2 1.12 2 2.5v19C2 22.88 3.12 24 4.5 24h14c1.38 0 2.5-1.12 2.5-2.5v-19C21 1.12 19.88 0 18.5 0zm-7 23c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zm7.5-4H4V3h15v16z"}),"TabletMac");t.Z=a},2108:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r.createSvgIcon}});var r=n(28546)},4137:function(e,t,n){"use strict";n.d(t,{NU:function(){return p},ZP:function(){return h}});var r=n(22122),o=n(81253),i=n(67294),a=(n(45697),n(17076)),l=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];var s,u=n(54013),c=n(60246),f=(0,u.Ue)((0,c.Z)()),d={disableGeneration:!1,generateClassName:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,n=void 0!==t&&t,r=e.productionPrefix,o=void 0===r?"jss":r,i=e.seed,s=void 0===i?"":i,u=""===s?"":"".concat(s,"-"),c=0,f=function(){return c+=1};return function(e,t){var r=t.options.name;if(r&&0===r.indexOf("Mui")&&!t.options.link&&!n){if(-1!==l.indexOf(e.key))return"Mui-".concat(e.key);var i="".concat(u).concat(r,"-").concat(e.key);return t.options.theme[a.Z]&&""===s?"".concat(i,"-").concat(f()):i}return"".concat(u).concat(o).concat(f())}}(),jss:f,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},p=i.createContext(d);function h(e){var t=e.children,n=e.injectFirst,a=void 0!==n&&n,l=e.disableGeneration,f=void 0!==l&&l,d=(0,o.Z)(e,["children","injectFirst","disableGeneration"]),h=i.useContext(p),m=(0,r.Z)({},h,{disableGeneration:f},d);if(!m.jss.options.insertionPoint&&a&&"undefined"!=typeof window){if(!s){var v=document.head;s=document.createComment("mui-inject-first"),v.insertBefore(s,v.firstChild)}m.jss=(0,u.Ue)({plugins:(0,c.Z)().plugins,insertionPoint:s})}return i.createElement(p.Provider,{value:m},t)}},17076:function(e,t){"use strict";var n="function"==typeof Symbol&&Symbol.for;t.Z=n?Symbol.for("mui.nested"):"__THEME_NESTED__"},93869:function(e,t,n){"use strict";function r(e){var t=e.theme,n=e.name,r=e.props;if(!t||!t.props||!t.props[n])return r;var o,i=t.props[n];for(o in i)void 0===r[o]&&(r[o]=i[o]);return r}n.d(t,{Z:function(){return r}})},60246:function(e,t,n){"use strict";n.d(t,{Z:function(){return Re}});var r=n(54013),o=Date.now(),i="fnValues"+o,a="fnStyle"+ ++o,l=function(){return{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var o=(0,r.JH)(e,{},n);return o[a]=t,o},onProcessStyle:function(e,t){if(i in t||a in t)return e;var n={};for(var r in e){var o=e[r];"function"==typeof o&&(delete e[r],n[r]=o)}return t[i]=n,e},onUpdate:function(e,t,n,r){var o=t,l=o[a];l&&(o.style=l(e)||{});var s=o[i];if(s)for(var u in s)o.prop(u,s[u](e),r)}}},s=n(22122),u="@global",c=function(){function e(e,t,n){for(var o in this.type="global",this.at=u,this.rules=void 0,this.options=void 0,this.key=void 0,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new r.RB((0,s.Z)({},n,{parent:this})),t)this.rules.add(o,t[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(){return this.rules.toString()},e}(),f=function(){function e(e,t,n){this.type="global",this.at=u,this.options=void 0,this.rule=void 0,this.isProcessed=!1,this.key=void 0,this.key=e,this.options=n;var r=e.substr("@global ".length);this.rule=n.jss.createRule(r,t,(0,s.Z)({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),d=/\s*,\s*/g;function p(e,t){for(var n=e.split(d),r="",o=0;o<n.length;o++)r+=t+" "+n[o].trim(),n[o+1]&&(r+=", ");return r}var h=function(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===u)return new c(e,t,n);if("@"===e[0]&&"@global "===e.substr(0,"@global ".length))return new f(e,t,n);var r=n.parent;return r&&("global"===r.type||r.options.parent&&"global"===r.options.parent.type)&&(n.scoped=!1),!1===n.scoped&&(n.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var n=e.options,r=e.style,o=r?r[u]:null;if(o){for(var i in o)t.addRule(i,o[i],(0,s.Z)({},n,{selector:p(i,e.selector)}));delete r[u]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var o in r)if("@"===o[0]&&o.substr(0,u.length)===u){var i=p(o.substr(u.length),e.selector);t.addRule(i,r[o],(0,s.Z)({},n,{selector:i})),delete r[o]}}(e,t))}}},m=/\s*,\s*/g,v=/&/g,g=/\$([\w-]+)/g;var y=function(){function e(e,t){return function(n,r){var o=e.getRule(r)||t&&t.getRule(r);return o?(o=o).selector:r}}function t(e,t){for(var n=t.split(m),r=e.split(m),o="",i=0;i<n.length;i++)for(var a=n[i],l=0;l<r.length;l++){var s=r[l];o&&(o+=", "),o+=-1!==s.indexOf("&")?s.replace(v,a):a+" "+s}return o}function n(e,t,n){if(n)return(0,s.Z)({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var o=(0,s.Z)({},e.options,{nestingLevel:r,index:t.indexOf(e)+1});return delete o.name,o}return{onProcessStyle:function(r,o,i){if("style"!==o.type)return r;var a,l,u=o,c=u.options.parent;for(var f in r){var d=-1!==f.indexOf("&"),p="@"===f[0];if(d||p){if(a=n(u,c,a),d){var h=t(f,u.selector);l||(l=e(c,i)),h=h.replace(g,l),c.addRule(h,r[f],(0,s.Z)({},a,{selector:h}))}else p&&c.addRule(f,{},a).addRule(u.key,r[f],{selector:u.selector});delete r[f]}}return r}}},b=/[A-Z]/g,w=/^ms-/,x={};function E(e){return"-"+e.toLowerCase()}var _=function(e){if(x.hasOwnProperty(e))return x[e];var t=e.replace(b,E);return x[e]=w.test(t)?"-"+t:t};function S(e){var t={};for(var n in e){t[0===n.indexOf("--")?n:_(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(S):t.fallbacks=S(e.fallbacks)),t}var O=function(){return{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=S(e[t]);return e}return S(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=_(t);return t===r?e:(n.prop(r,e),null)}}},k=r.HZ&&CSS?CSS.px:"px",C=r.HZ&&CSS?CSS.ms:"ms",P=r.HZ&&CSS?CSS.percent:"%";function j(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},r={};for(var o in e)r[o]=e[o],r[o.replace(t,n)]=e[o];return r}var T=j({"animation-delay":C,"animation-duration":C,"background-position":k,"background-position-x":k,"background-position-y":k,"background-size":k,border:k,"border-bottom":k,"border-bottom-left-radius":k,"border-bottom-right-radius":k,"border-bottom-width":k,"border-left":k,"border-left-width":k,"border-radius":k,"border-right":k,"border-right-width":k,"border-top":k,"border-top-left-radius":k,"border-top-right-radius":k,"border-top-width":k,"border-width":k,"border-block":k,"border-block-end":k,"border-block-end-width":k,"border-block-start":k,"border-block-start-width":k,"border-block-width":k,"border-inline":k,"border-inline-end":k,"border-inline-end-width":k,"border-inline-start":k,"border-inline-start-width":k,"border-inline-width":k,"border-start-start-radius":k,"border-start-end-radius":k,"border-end-start-radius":k,"border-end-end-radius":k,margin:k,"margin-bottom":k,"margin-left":k,"margin-right":k,"margin-top":k,"margin-block":k,"margin-block-end":k,"margin-block-start":k,"margin-inline":k,"margin-inline-end":k,"margin-inline-start":k,padding:k,"padding-bottom":k,"padding-left":k,"padding-right":k,"padding-top":k,"padding-block":k,"padding-block-end":k,"padding-block-start":k,"padding-inline":k,"padding-inline-end":k,"padding-inline-start":k,"mask-position-x":k,"mask-position-y":k,"mask-size":k,height:k,width:k,"min-height":k,"max-height":k,"min-width":k,"max-width":k,bottom:k,left:k,top:k,right:k,inset:k,"inset-block":k,"inset-block-end":k,"inset-block-start":k,"inset-inline":k,"inset-inline-end":k,"inset-inline-start":k,"box-shadow":k,"text-shadow":k,"column-gap":k,"column-rule":k,"column-rule-width":k,"column-width":k,"font-size":k,"font-size-delta":k,"letter-spacing":k,"text-decoration-thickness":k,"text-indent":k,"text-stroke":k,"text-stroke-width":k,"word-spacing":k,motion:k,"motion-offset":k,outline:k,"outline-offset":k,"outline-width":k,perspective:k,"perspective-origin-x":P,"perspective-origin-y":P,"transform-origin":P,"transform-origin-x":P,"transform-origin-y":P,"transform-origin-z":P,"transition-delay":C,"transition-duration":C,"vertical-align":k,"flex-basis":k,"shape-margin":k,size:k,gap:k,grid:k,"grid-gap":k,"row-gap":k,"grid-row-gap":k,"grid-column-gap":k,"grid-template-rows":k,"grid-template-columns":k,"grid-auto-rows":k,"grid-auto-columns":k,"box-shadow-x":k,"box-shadow-y":k,"box-shadow-blur":k,"box-shadow-spread":k,"font-line-height":k,"text-shadow-x":k,"text-shadow-y":k,"text-shadow-blur":k});function A(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=A(e,t[r],n);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=A(o,t[o],n);else for(var i in t)t[i]=A(e+"-"+i,t[i],n);else if("number"==typeof t&&!1===isNaN(t)){var a=n[e]||T[e];return!a||0===t&&a===k?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}var I=function(e){void 0===e&&(e={});var t=j(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=A(r,e[r],t);return e},onChangeValue:function(e,n){return A(n,e,t)}}},R=n(33827),N=n(78927),D="",M="",L="",F="",z=R.Z&&"ontouchstart"in document.documentElement;if(R.Z){var B={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},U=document.createElement("p").style;for(var Z in B)if(Z+"Transform"in U){D=Z,M=B[Z];break}"Webkit"===D&&"msHyphens"in U&&(D="ms",M=B.ms,F="edge"),"Webkit"===D&&"-apple-trailing-word"in U&&(L="apple")}var H=D,W=M,V=L,G=F,$=z;var K={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===H?"-webkit-"+e:W+e)}},q={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===H?W+"print-"+e:e)}},Y=/[-\s]+(.)?/g;function J(e,t){return t?t.toUpperCase():""}function X(e){return e.replace(Y,J)}function Q(e){return X("-"+e)}var ee,te={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===H){if(X("mask-image")in t)return e;if(H+Q("mask-image")in t)return W+e}return e}},ne={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==V||$?e:W+e)}},re={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:W+e)}},oe={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:W+e)}},ie={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===H||"ms"===H&&"edge"!==G?W+e:e)}},ae={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===H||"ms"===H||"apple"===V?W+e:e)}},le={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===H?"WebkitColumn"+Q(e)in t&&W+"column-"+e:"Moz"===H&&("page"+Q(e)in t&&"page-"+e))}},se={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===H)return e;var n=e.replace("-inline","");return H+Q(n)in t&&W+n}},ue={supportedProperty:function(e,t){return X(e)in t&&e}},ce={supportedProperty:function(e,t){var n=Q(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:H+n in t?W+e:"Webkit"!==H&&"Webkit"+n in t&&"-webkit-"+e}},fe={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===H?""+W+e:e)}},de={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===H?W+"scroll-chaining":e)}},pe={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},he={supportedProperty:function(e,t){var n=pe[e];return!!n&&(H+Q(n)in t&&W+n)}},me={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},ve=Object.keys(me),ge=function(e){return W+e},ye=[K,q,te,ne,re,oe,ie,ae,le,se,ue,ce,fe,de,he,{supportedProperty:function(e,t,n){var r=n.multiple;if(ve.indexOf(e)>-1){var o=me[e];if(!Array.isArray(o))return H+Q(o)in t&&W+o;if(!r)return!1;for(var i=0;i<o.length;i++)if(!(H+Q(o[0])in t))return!1;return o.map(ge)}return!1}}],be=ye.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),we=ye.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,(0,N.Z)(t.noPrefill)),e}),[]),xe={};if(R.Z){ee=document.createElement("p");var Ee=window.getComputedStyle(document.documentElement,"");for(var _e in Ee)isNaN(_e)||(xe[Ee[_e]]=Ee[_e]);we.forEach((function(e){return delete xe[e]}))}function Se(e,t){if(void 0===t&&(t={}),!ee)return e;if(null!=xe[e])return xe[e];"transition"!==e&&"transform"!==e||(t[e]=e in ee.style);for(var n=0;n<be.length&&(xe[e]=be[n](e,ee.style,t),!xe[e]);n++);try{ee.style[e]=""}catch(e){return!1}return xe[e]}var Oe,ke={},Ce={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},Pe=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function je(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var r=t?Se(t):", "+Se(n);return r||(t||n)}function Te(e,t){var n=t;if(!Oe||"content"===e)return t;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=ke[r])return ke[r];try{Oe.style[e]=n}catch(e){return ke[r]=!1,!1}if(Ce[e])n=n.replace(Pe,je);else if(""===Oe.style[e]&&("-ms-flex"===(n=W+n)&&(Oe.style[e]="-ms-flexbox"),Oe.style[e]=n,""===Oe.style[e]))return ke[r]=!1,!1;return Oe.style[e]="",ke[r]=n,ke[r]}R.Z&&(Oe=document.createElement("p"));var Ae=function(){function e(t){for(var n in t){var o=t[n];if("fallbacks"===n&&Array.isArray(o))t[n]=o.map(e);else{var i=!1,a=Se(n);a&&a!==n&&(i=!0);var l=!1,s=Te(a,(0,r.EK)(o));s&&s!==o&&(l=!0),(i||l)&&(i&&delete t[n],t[a||n]=s||o)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===H?e:"@"+W+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return Te(t,(0,r.EK)(e))||e}}};var Ie=function(){var e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length};return{onProcessStyle:function(t,n){if("style"!==n.type)return t;for(var r={},o=Object.keys(t).sort(e),i=0;i<o.length;i++)r[o[i]]=t[o[i]];return r}}};function Re(){return{plugins:[l(),h(),y(),O(),I(),"undefined"==typeof window?null:Ae(),Ie()]}}},73914:function(e,t,n){"use strict";n.d(t,{Z:function(){return x}});var r=n(81253),o=n(22122),i=n(67294),a=n(54013),l=n(65835),s={set:function(e,t,n,r){var o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(n,r)},get:function(e,t,n){var r=e.get(t);return r?r.get(n):void 0},delete:function(e,t,n){e.get(t).delete(n)}},u=n(159),c=n(4137),f=-1e9;function d(){return f+=1}var p=n(35953);function h(e){var t="function"==typeof e;return{create:function(n,r){var i;try{i=t?e(n):e}catch(e){throw e}if(!r||!n.overrides||!n.overrides[r])return i;var a=n.overrides[r],l=(0,o.Z)({},i);return Object.keys(a).forEach((function(e){l[e]=(0,p.Z)(l[e],a[e])})),l},options:{}}}var m={};function v(e,t,n){var r=e.state;if(e.stylesOptions.disableGeneration)return t||{};r.cacheClasses||(r.cacheClasses={value:null,lastProp:null,lastJSS:{}});var o=!1;return r.classes!==r.cacheClasses.lastJSS&&(r.cacheClasses.lastJSS=r.classes,o=!0),t!==r.cacheClasses.lastProp&&(r.cacheClasses.lastProp=t,o=!0),o&&(r.cacheClasses.value=(0,l.Z)({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}function g(e,t){var n=e.state,r=e.theme,i=e.stylesOptions,u=e.stylesCreator,c=e.name;if(!i.disableGeneration){var f=s.get(i.sheetsManager,u,r);f||(f={refs:0,staticSheet:null,dynamicStyles:null},s.set(i.sheetsManager,u,r,f));var d=(0,o.Z)({},u.options,i,{theme:r,flip:"boolean"==typeof i.flip?i.flip:"rtl"===r.direction});d.generateId=d.serverGenerateClassName||d.generateClassName;var p=i.sheetsRegistry;if(0===f.refs){var h;i.sheetsCache&&(h=s.get(i.sheetsCache,u,r));var m=u.create(r,c);h||((h=i.jss.createStyleSheet(m,(0,o.Z)({link:!1},d))).attach(),i.sheetsCache&&s.set(i.sheetsCache,u,r,h)),p&&p.add(h),f.staticSheet=h,f.dynamicStyles=(0,a._$)(m)}if(f.dynamicStyles){var v=i.jss.createStyleSheet(f.dynamicStyles,(0,o.Z)({link:!0},d));v.update(t),v.attach(),n.dynamicSheet=v,n.classes=(0,l.Z)({baseClasses:f.staticSheet.classes,newClasses:v.classes}),p&&p.add(v)}else n.classes=f.staticSheet.classes;f.refs+=1}}function y(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}function b(e){var t=e.state,n=e.theme,r=e.stylesOptions,o=e.stylesCreator;if(!r.disableGeneration){var i=s.get(r.sheetsManager,o,n);i.refs-=1;var a=r.sheetsRegistry;0===i.refs&&(s.delete(r.sheetsManager,o,n),r.jss.removeStyleSheet(i.staticSheet),a&&a.remove(i.staticSheet)),t.dynamicSheet&&(r.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}function w(e,t){var n,r=i.useRef([]),o=i.useMemo((function(){return{}}),t);r.current!==o&&(r.current=o,n=e()),i.useEffect((function(){return function(){n&&n()}}),[o])}function x(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.name,a=t.classNamePrefix,l=t.Component,s=t.defaultTheme,f=void 0===s?m:s,p=(0,r.Z)(t,["name","classNamePrefix","Component","defaultTheme"]),x=h(e),E=n||a||"makeStyles";x.options={index:d(),name:n,meta:E,classNamePrefix:E};var _=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,u.Z)()||f,r=(0,o.Z)({},i.useContext(c.NU),p),a=i.useRef(),s=i.useRef();w((function(){var o={name:n,state:{},stylesCreator:x,stylesOptions:r,theme:t};return g(o,e),s.current=!1,a.current=o,function(){b(o)}}),[t,x]),i.useEffect((function(){s.current&&y(a.current,e),s.current=!0}));var d=v(a.current,e.classes,l);return d};return _}},65835:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(22122);function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,n=e.newClasses;e.Component;if(!n)return t;var o=(0,r.Z)({},t);return Object.keys(n).forEach((function(e){n[e]&&(o[e]="".concat(t[e]," ").concat(n[e]))})),o}},83800:function(e,t,n){"use strict";var r=n(67294).createContext(null);t.Z=r},159:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(67294),o=n(83800);function i(){return r.useContext(o.Z)}},35953:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(22122),o=n(90484);function i(e){return e&&"object"===(0,o.Z)(e)&&e.constructor===Object}function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},o=n.clone?(0,r.Z)({},e):e;return i(e)&&i(t)&&Object.keys(t).forEach((function(r){"__proto__"!==r&&(i(t[r])&&r in e?o[r]=a(e[r],t[r],n):o[r]=t[r])})),o}},60288:function(e,t,n){"use strict";function r(e){for(var t="https://material-ui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}n.d(t,{Z:function(){return r}})},62844:function(e,t,n){"use strict";n.d(t,{Rf:function(){return i},DM:function(){return a},en:function(){return l},jH:function(){return s},Cf:function(){return u},Db:function(){return c},EG:function(){return f},l4:function(){return d},JY:function(){return p}});var r=n(61422),o={};function i(){return(0,r.KV)()?n.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:o}function a(){var e=i(),t=e.crypto||e.msCrypto;if(void 0!==t&&t.getRandomValues){var n=new Uint16Array(8);t.getRandomValues(n),n[3]=4095&n[3]|16384,n[4]=16383&n[4]|32768;var r=function(e){for(var t=e.toString(16);t.length<4;)t="0"+t;return t};return r(n[0])+r(n[1])+r(n[2])+r(n[3])+r(n[4])+r(n[5])+r(n[6])+r(n[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}function l(e){if(!e)return{};var t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};var n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],relative:t[5]+n+r}}function s(e){if(e.message)return e.message;if(e.exception&&e.exception.values&&e.exception.values[0]){var t=e.exception.values[0];return t.type&&t.value?t.type+": "+t.value:t.type||t.value||e.event_id||"<unknown>"}return e.event_id||"<unknown>"}function u(e){var t=i();if(!("console"in t))return e();var n=t.console,r={};["debug","info","warn","error","log","assert"].forEach((function(e){e in t.console&&n[e].__sentry_original__&&(r[e]=n[e],n[e]=n[e].__sentry_original__)}));var o=e();return Object.keys(r).forEach((function(e){n[e]=r[e]})),o}function c(e,t,n){e.exception=e.exception||{},e.exception.values=e.exception.values||[],e.exception.values[0]=e.exception.values[0]||{},e.exception.values[0].value=e.exception.values[0].value||t||"",e.exception.values[0].type=e.exception.values[0].type||n||"Error"}function f(e,t){void 0===t&&(t={});try{e.exception.values[0].mechanism=e.exception.values[0].mechanism||{},Object.keys(t).forEach((function(n){e.exception.values[0].mechanism[n]=t[n]}))}catch(e){}}function d(){try{return document.location.href}catch(e){return""}}function p(e,t){if(!t)return 6e4;var n=parseInt(""+t,10);if(!isNaN(n))return 1e3*n;var r=Date.parse(""+t);return isNaN(r)?6e4:r-e}},61422:function(e,t,n){"use strict";function r(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function o(e,t){return e.require(t)}n.d(t,{KV:function(){return r},l$:function(){return o}}),e=n.hmd(e)},21170:function(e,t,n){"use strict";n.d(t,{yW:function(){return s}});var r=n(62844),o=n(61422);e=n.hmd(e);var i={nowSeconds:function(){return Date.now()/1e3}};var a=(0,o.KV)()?function(){try{return(0,o.l$)(e,"perf_hooks").performance}catch(e){return}}():function(){var e=(0,r.Rf)().performance;if(e&&e.now)return{now:function(){return e.now()},timeOrigin:Date.now()-e.now()}}(),l=void 0===a?i:{nowSeconds:function(){return(a.timeOrigin+a.now())/1e3}},s=i.nowSeconds.bind(i);l.nowSeconds.bind(l),function(){var e=(0,r.Rf)().performance;if(e)e.timeOrigin?e.timeOrigin:e.timing&&e.timing.navigationStart||Date.now()}()},99601:function(e,t){"use strict";t.Z=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(2===e.length)return r(e[0],e[1])||null;var n=e.slice(1).reduce((function(e,t){return r(e,t)}),e[0]);return n||null};var n=new WeakMap;function r(e,t){if(e&&t){var r=n.get(e)||new WeakMap;n.set(e,r);var i=r.get(t)||function(n){o(e,n),o(t,n)};return r.set(t,i),i}return e||t}function o(e,t){"function"==typeof e?e(t):e.current=t}},9669:function(e,t,n){e.exports=n(51609)},55448:function(e,t,n){"use strict";var r=n(64867),o=n(36026),i=n(4372),a=n(15327),l=n(94097),s=n(84109),u=n(67985),c=n(85061);e.exports=function(e){return new Promise((function(t,n){var f=e.data,d=e.headers,p=e.responseType;r.isFormData(f)&&delete d["Content-Type"];var h=new XMLHttpRequest;if(e.auth){var m=e.auth.username||"",v=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";d.Authorization="Basic "+btoa(m+":"+v)}var g=l(e.baseURL,e.url);function y(){if(h){var r="getAllResponseHeaders"in h?s(h.getAllResponseHeaders()):null,i={data:p&&"text"!==p&&"json"!==p?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:r,config:e,request:h};o(t,n,i),h=null}}if(h.open(e.method.toUpperCase(),a(g,e.params,e.paramsSerializer),!0),h.timeout=e.timeout,"onloadend"in h?h.onloadend=y:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))&&setTimeout(y)},h.onabort=function(){h&&(n(c("Request aborted",e,"ECONNABORTED",h)),h=null)},h.onerror=function(){n(c("Network Error",e,null,h)),h=null},h.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(c(t,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",h)),h=null},r.isStandardBrowserEnv()){var b=(e.withCredentials||u(g))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;b&&(d[e.xsrfHeaderName]=b)}"setRequestHeader"in h&&r.forEach(d,(function(e,t){void 0===f&&"content-type"===t.toLowerCase()?delete d[t]:h.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(h.withCredentials=!!e.withCredentials),p&&"json"!==p&&(h.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&h.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){h&&(h.abort(),n(e),h=null)})),f||(f=null),h.send(f)}))}},51609:function(e,t,n){"use strict";var r=n(64867),o=n(91849),i=n(30321),a=n(47185);function l(e){var t=new i(e),n=o(i.prototype.request,t);return r.extend(n,i.prototype,t),r.extend(n,t),n}var s=l(n(45655));s.Axios=i,s.create=function(e){return l(a(s.defaults,e))},s.Cancel=n(65263),s.CancelToken=n(14972),s.isCancel=n(26502),s.all=function(e){return Promise.all(e)},s.spread=n(8713),s.isAxiosError=n(16268),e.exports=s,e.exports.default=s},65263:function(e){"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},14972:function(e,t,n){"use strict";var r=n(65263);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var e;return{token:new o((function(t){e=t})),cancel:e}},e.exports=o},26502:function(e){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},30321:function(e,t,n){"use strict";var r=n(64867),o=n(15327),i=n(80782),a=n(13572),l=n(47185),s=n(54875),u=s.validators;function c(e){this.defaults=e,this.interceptors={request:new i,response:new i}}c.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=l(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&s.assertOptions(t,{silentJSONParsing:u.transitional(u.boolean,"1.0.0"),forcedJSONParsing:u.transitional(u.boolean,"1.0.0"),clarifyTimeoutError:u.transitional(u.boolean,"1.0.0")},!1);var n=[],r=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(r=r&&t.synchronous,n.unshift(t.fulfilled,t.rejected))}));var o,i=[];if(this.interceptors.response.forEach((function(e){i.push(e.fulfilled,e.rejected)})),!r){var c=[a,void 0];for(Array.prototype.unshift.apply(c,n),c=c.concat(i),o=Promise.resolve(e);c.length;)o=o.then(c.shift(),c.shift());return o}for(var f=e;n.length;){var d=n.shift(),p=n.shift();try{f=d(f)}catch(e){p(e);break}}try{o=a(f)}catch(e){return Promise.reject(e)}for(;i.length;)o=o.then(i.shift(),i.shift());return o},c.prototype.getUri=function(e){return e=l(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){c.prototype[e]=function(t,n){return this.request(l(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){c.prototype[e]=function(t,n,r){return this.request(l(r||{},{method:e,url:t,data:n}))}})),e.exports=c},80782:function(e,t,n){"use strict";var r=n(64867);function o(){this.handlers=[]}o.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},94097:function(e,t,n){"use strict";var r=n(91793),o=n(7303);e.exports=function(e,t){return e&&!r(t)?o(e,t):t}},85061:function(e,t,n){"use strict";var r=n(80481);e.exports=function(e,t,n,o,i){var a=new Error(e);return r(a,t,n,o,i)}},13572:function(e,t,n){"use strict";var r=n(64867),o=n(18527),i=n(26502),a=n(45655);function l(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return l(e),e.headers=e.headers||{},e.data=o.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return l(e),t.data=o.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(l(e),t&&t.response&&(t.response.data=o.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},80481:function(e){"use strict";e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},47185:function(e,t,n){"use strict";var r=n(64867);e.exports=function(e,t){t=t||{};var n={},o=["url","method","data"],i=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],l=["validateStatus"];function s(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function u(o){r.isUndefined(t[o])?r.isUndefined(e[o])||(n[o]=s(void 0,e[o])):n[o]=s(e[o],t[o])}r.forEach(o,(function(e){r.isUndefined(t[e])||(n[e]=s(void 0,t[e]))})),r.forEach(i,u),r.forEach(a,(function(o){r.isUndefined(t[o])?r.isUndefined(e[o])||(n[o]=s(void 0,e[o])):n[o]=s(void 0,t[o])})),r.forEach(l,(function(r){r in t?n[r]=s(e[r],t[r]):r in e&&(n[r]=s(void 0,e[r]))}));var c=o.concat(i).concat(a).concat(l),f=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===c.indexOf(e)}));return r.forEach(f,u),n}},36026:function(e,t,n){"use strict";var r=n(85061);e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},18527:function(e,t,n){"use strict";var r=n(64867),o=n(45655);e.exports=function(e,t,n){var i=this||o;return r.forEach(n,(function(n){e=n.call(i,e,t)})),e}},45655:function(e,t,n){"use strict";var r=n(64867),o=n(16016),i=n(80481),a={"Content-Type":"application/x-www-form-urlencoded"};function l(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var s,u={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(s=n(55448)),s),transformRequest:[function(e,t){return o(t,"Accept"),o(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(l(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)||t&&"application/json"===t["Content-Type"]?(l(t,"application/json"),function(e,t,n){if(r.isString(e))try{return(t||JSON.parse)(e),r.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional,n=t&&t.silentJSONParsing,o=t&&t.forcedJSONParsing,a=!n&&"json"===this.responseType;if(a||o&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(a){if("SyntaxError"===e.name)throw i(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300}};u.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],(function(e){u.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){u.headers[e]=r.merge(a)})),e.exports=u},91849:function(e){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},15327:function(e,t,n){"use strict";var r=n(64867);function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(r.isURLSearchParams(t))i=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(o(t)+"="+o(e))})))})),i=a.join("&")}if(i){var l=e.indexOf("#");-1!==l&&(e=e.slice(0,l)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},7303:function(e){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},4372:function(e,t,n){"use strict";var r=n(64867);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,o,i,a){var l=[];l.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&l.push("expires="+new Date(n).toGMTString()),r.isString(o)&&l.push("path="+o),r.isString(i)&&l.push("domain="+i),!0===a&&l.push("secure"),document.cookie=l.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},91793:function(e){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},16268:function(e){"use strict";e.exports=function(e){return"object"==typeof e&&!0===e.isAxiosError}},67985:function(e,t,n){"use strict";var r=n(64867);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},16016:function(e,t,n){"use strict";var r=n(64867);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},84109:function(e,t,n){"use strict";var r=n(64867),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,i,a={};return e?(r.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=r.trim(e.substr(0,i)).toLowerCase(),n=r.trim(e.substr(i+1)),t){if(a[t]&&o.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},8713:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},54875:function(e,t,n){"use strict";var r=n(20696),o={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){o[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var i={},a=r.version.split(".");function l(e,t){for(var n=t?t.split("."):a,r=e.split("."),o=0;o<3;o++){if(n[o]>r[o])return!0;if(n[o]<r[o])return!1}return!1}o.transitional=function(e,t,n){var o=t&&l(t);function a(e,t){return"[Axios v"+r.version+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,l){if(!1===e)throw new Error(a(r," has been removed in "+t));return o&&!i[r]&&(i[r]=!0,console.warn(a(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,l)}},e.exports={isOlderVersion:l,assertOptions:function(e,t,n){if("object"!=typeof e)throw new TypeError("options must be an object");for(var r=Object.keys(e),o=r.length;o-- >0;){var i=r[o],a=t[i];if(a){var l=e[i],s=void 0===l||a(l,i,e);if(!0!==s)throw new TypeError("option "+i+" must be "+s)}else if(!0!==n)throw Error("Unknown option "+i)}},validators:o}},64867:function(e,t,n){"use strict";var r=n(91849),o=Object.prototype.toString;function i(e){return"[object Array]"===o.call(e)}function a(e){return void 0===e}function l(e){return null!==e&&"object"==typeof e}function s(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function u(e){return"[object Function]"===o.call(e)}function c(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),i(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}e.exports={isArray:i,isArrayBuffer:function(e){return"[object ArrayBuffer]"===o.call(e)},isBuffer:function(e){return null!==e&&!a(e)&&null!==e.constructor&&!a(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:l,isPlainObject:s,isUndefined:a,isDate:function(e){return"[object Date]"===o.call(e)},isFile:function(e){return"[object File]"===o.call(e)},isBlob:function(e){return"[object Blob]"===o.call(e)},isFunction:u,isStream:function(e){return l(e)&&u(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:c,merge:function e(){var t={};function n(n,r){s(t[r])&&s(n)?t[r]=e(t[r],n):s(n)?t[r]=e({},n):i(n)?t[r]=n.slice():t[r]=n}for(var r=0,o=arguments.length;r<o;r++)c(arguments[r],n);return t},extend:function(e,t,n){return c(t,(function(t,o){e[o]=n&&"function"==typeof t?r(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},20696:function(e){"use strict";e.exports=JSON.parse('{"name":"axios","version":"0.21.4","description":"Promise based HTTP client for the browser and node.js","main":"index.js","scripts":{"test":"grunt test","start":"node ./sandbox/server.js","build":"NODE_ENV=production grunt build","preversion":"npm test","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json","postversion":"git push && git push --tags","examples":"node ./examples/server.js","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","fix":"eslint --fix lib/**/*.js"},"repository":{"type":"git","url":"https://github.com/axios/axios.git"},"keywords":["xhr","http","ajax","promise","node"],"author":"Matt Zabriskie","license":"MIT","bugs":{"url":"https://github.com/axios/axios/issues"},"homepage":"https://axios-http.com","devDependencies":{"coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^8.2.1","sinon":"^4.5.0","terser-webpack-plugin":"^4.2.3","typescript":"^4.0.5","url-search-params":"^0.10.0","webpack":"^4.44.2","webpack-dev-server":"^3.11.0"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"jsdelivr":"dist/axios.min.js","unpkg":"dist/axios.min.js","typings":"./index.d.ts","dependencies":{"follow-redirects":"^1.14.0"},"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}]}')},18671:function(e,t,n){"use strict";var r=n(67294),o=n(73935),i=n(67121),a=function(){return Math.random().toString(36).substring(7).split("").join(".")},l={INIT:"@@redux/INIT"+a(),REPLACE:"@@redux/REPLACE"+a(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+a()}};function s(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function u(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(u)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var o=e,a=t,c=[],f=c,d=!1;function p(){f===c&&(f=c.slice())}function h(){if(d)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return a}function m(e){if("function"!=typeof e)throw new Error("Expected the listener to be a function.");if(d)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribelistener for more details.");var t=!0;return p(),f.push(e),function(){if(t){if(d)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribelistener for more details.");t=!1,p();var n=f.indexOf(e);f.splice(n,1),c=null}}}function v(e){if(!s(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(d)throw new Error("Reducers may not dispatch actions.");try{d=!0,a=o(a,e)}finally{d=!1}for(var t=c=f,n=0;n<t.length;n++){(0,t[n])()}return e}function g(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");o=e,v({type:l.REPLACE})}function y(){var e,t=m;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new TypeError("Expected the observer to be an object.");function n(){e.next&&e.next(h())}return n(),{unsubscribe:t(n)}}})[i.Z]=function(){return this},e}return v({type:l.INIT}),(r={dispatch:v,subscribe:m,getState:h,replaceReducer:g})[i.Z]=y,r}function c(e,t){var n=t&&t.type;return"Given "+(n&&'action "'+String(n)+'"'||"an action")+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function f(e,t){return function(){return t(e.apply(this,arguments))}}function d(e,t){if("function"==typeof e)return f(e,t);if("object"!=typeof e||null===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":typeof e)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');var n={};for(var r in e){var o=e[r];"function"==typeof o&&(n[r]=f(o,t))}return n}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t){var n=Object.keys(e);return Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(e)),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(n,!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function v(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function g(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},i=t.map((function(e){return e(o)}));return m({},n,{dispatch:r=v.apply(void 0,i)(n.dispatch)})}}}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return w(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return w(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function x(e){return(x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var E=n(46314),_=n(82492),S=n(14176),O={INIT:"INIT",ADD_MODEL:"ADD_MODEL",ADD_RELATION:"ADD_RELATION",CHANGE_RELATION:"CHANGE_RELATION",REMOVE_RELATION:"REMOVE_RELATION",GET_DATA_BEGIN:"GET_DATA_BEGIN",GET_DATA_SUCCESS:"GET_DATA_SUCCESS",GET_DATA_FAILURE:"GET_DATA_FAILURE",GET_DATA_END:"GET_DATA_END",HAS_CHANGES:"HAS_CHANGES",IS_UPDATING:"IS_UPDATING",STOP_LOADING:"STOP_LOADING",SET_SETTING_VALUE:"SET_SETTING_VALUE",SET_MISC_VALUE:"SET_MISC_VALUE",OPEN_DRAWER:"OPENING DRAWER",CLOSE_DRAWER:"CLOSING DRAWER",groups:{ADD_RECORD:"ADDING GROUP RECORD",REMOVE_RECORD:"REMOVING GROUP RECORD",SET_KEY_VALUE:"SET KEY VALUE GROUPS",SET_KEY_FORMAT:"SET FORMATTED KEY VALUE PAIRS GROUPS"},buttons:{ADD_RECORD:"ADDING BUTTON RECORD",REMOVE_RECORD:"REMOVING BUTTON RECORD",SET_KEY_VALUE:"SET KEY VALUE BUTTONS",SET_KEY_FORMAT:"SET FORMATTED KEY VALUE PAIRS BUTTONS"},timeSchedules:{ADD_RECORD:"ADDING TIME SCHEDULE",REMOVE_RECORD:"REMOVING TIME SCHEDULE",SET_KEY_VALUE:"SET KEY VALUE TIMESCHEDULES",SET_KEY_FORMAT:"SET FORMATTED KEY VALUE PAIRS TIMESCHEDULES",ADD_TIMESCHEDULE:"ADD_TIMESCHEDULE",SET_WEEKDAY:"SET_WEEKDAY",ADD_EXCLUDED_DATE:"ADD_EXCLUDED_DATE",SET_EXCLUDED_DATE:"SET_EXCLUDED_DATE",REMOVE_EXCLUDED_DATE:"REMOVE_EXCLUDED_DATE"},pageRules:{ADD_RECORD:"ADDING PAGE RULE",REMOVE_RECORD:"REMOVING PAGE RULE",SET_KEY_VALUE:"SET KEY VALUE PAGERULES",SET_KEY_FORMAT:"SET FORMATTED KEY VALUE PAIRS PAGERULES",ADD_PAGE_RULE_ROW:"ADD_PAGE_RULE_ROW",SET_PAGE_RULE_ROW:"SET_PAGE_RULE_ROW",REMOVE_PAGE_RULE_ROW:"REMOVE_PAGE_RULE_ROW"},wp:{GET_DATA_BEGIN:"GET_DATA_BEGIN_WP",GET_DATA_SUCCESS:"GET_DATA_SUCCESS_WP",GET_DATA_FAILURE:"GET_DATA_FAILURE_WP",GET_DATA_END:"GET_DATA_END_WP"},templates:{INIT:"INIT TEMPLATES",GET_DATA_BEGIN:"GET TEMPLATES DATA BEGIN",GET_DATA_FAILURE:"GET TEMPLATES DATA FAILURE",GET_DATA_END:"GET TEMPLATES DATA END",ADD_RECORD:"ADDING TEMPLATE"}},k=["monday","tuesday","wednesday","thursday","friday","saturday","sunday"],C="buttons",P="groups",j={MENU:"menu",SETTINGS:"settings",SETTINGS_PAGES:{analytics:"analytics",iconLibrary:"iconlibrary",preferences:"preferences",reset:"reset"},BUTTONIZER_TOUR:"buttonizertour",WELCOME_DIALOG:"welcome-splash",TIME_SCHEDULES:"timeschedules",PAGE_RULES:"pagerules"},T={normal_hover:{format:function(e,t){return[e,t].map((function(e){return"unset"===e||null==e?"":e})).filter((function(e,t,n){return 0===t||""!==e&&e!==n[0]})).join(";")||"unset"},parse:function(e){var t=e;if("boolean"==typeof e&&(t=String(e)),"number"==typeof e&&(t=String(e)),void 0===e)return[];if("string"!=typeof t)throw console.trace(),console.log(x(t),t),TypeError("'record[key]' val is not of type String, boolean or number");return t.split(";").map((function(e){if(e)return"true"===e||"false"!==e&&(isNaN(Number(e))?e:Number(e))})).map((function(e,t,n){return 0===t?e:e===n[0]?void 0:e}))}},fourSidesPx:{format:function(e,t,n,r){return"".concat(e,"px ").concat(t,"px ").concat(n,"px ").concat(r,"px")},parse:function(e){return e.match(/\d+/g)}},position:{format:function(e,t,n){return"".concat(e,": ").concat(n).concat(t)}}},A=["export_type","selected_page_rule","selected_schedule","id","parent","show_on_rule_trigger","show_on_schedule_trigger"],I={get buttonSettings(){var e={general:[],styling:[],advanced:[]};return Object.entries(E.button).map((function(t){_(e,y({},t[0],Object.entries(t[1]).map((function(e){return b(e,1)[0]}))))})),e},get groupSettings(){var e={general:[],styling:[],advanced:[]};return Object.entries(E.group).map((function(t){_(e,y({},t[0],Object.entries(t[1]).map((function(e){return b(e,1)[0]}))))})),e},get allSettings(){var e={general:[],styling:[],advanced:[]};return Object.entries(_({},E.button,E.group)).map((function(t){_(e,y({},t[0],Object.entries(t[1]).map((function(e){return b(e,1)[0]}))))})),e},get stylingNoGroup(){var e=this;return Object.entries(S(_({},E.button.styling,E.group.styling),(function(t,n){return e.groupSettings.styling.includes(n)&&e.buttonSettings.styling.includes(n)||n.includes("icon")}))).map((function(e){return b(e,1)[0]}))},get stylingHover(){return Object.entries(_({},E.button.styling,E.group.styling)).filter((function(e){return Array.isArray(e[1])})).map((function(e){return b(e,1)[0]}))}},R=n(9669),N=n.n(R);function D(e,t){M(),document.location.hash+="".concat(document.location.hash.match(/\/$/)?"":"/").concat(e).concat(t?"/"+t:"")}function M(){document.location.hash=document.location.hash.replace(/\/?(settings|menu|timeschedules|pagerules|buttonizertour).*$/i,"")}var L=new Map;function F(e){if(!e)return null;return"".concat(e.getDate(),"-").concat(function(e,t){for(var n=String(e);n.length<(t||2);)n="0"+n;return n}(e.getMonth()+1,2),"-").concat(e.getFullYear())}var z=function(){var e=buttonizer_admin.assets+"/templates/templates.json?buttonizer-icon-cache="+buttonizer_admin.version;return new Promise((function(t,n){L.has(e)&&t(L.get(e)),N()({url:e}).then((function(n){L.set(e,n.data),t(n.data)})).catch((function(e){return n({message:"Something went wrong",error:e})}))}))},B=n(71171),U=n.n(B);function Z(){return Array.apply(0,Array(15)).map((function(){return(e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789").charAt(Math.floor(Math.random()*e.length));var e})).join("")}var H=n(90484);function W(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var V=n(5991),G=n(63349),$=n(14665);function K(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,$.Z)(e,t)}function q(e,t){if(t&&("object"===(0,H.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,G.Z)(e)}function Y(e){return(Y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var J=n(96156),X=n(59968),Q=n(96410),ee=n(82961),te=n(28970);function ne(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function re(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ne(Object(n),!0).forEach((function(t){(0,J.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ne(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var oe={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},ie=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};W(this,e),this.init(t,n)}return(0,V.Z)(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||oe,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,n,r){return r&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,re(re({},{prefix:"".concat(this.prefix,":").concat(t,":")}),this.options))}}]),e}()),ae=function(){function e(){W(this,e),this.observers={}}return(0,V.Z)(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach((function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)})),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((function(e){return e!==t})):delete this.observers[e])}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(this.observers[e]){var o=[].concat(this.observers[e]);o.forEach((function(e){e.apply(void 0,n)}))}if(this.observers["*"]){var i=[].concat(this.observers["*"]);i.forEach((function(t){t.apply(t,[e].concat(n))}))}}}]),e}();function le(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}function se(e){return null==e?"":""+e}function ue(e,t,n){e.forEach((function(e){t[e]&&(n[e]=t[e])}))}function ce(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}for(var i="string"!=typeof t?[].concat(t):t.split(".");i.length>1;){if(o())return{};var a=r(i.shift());!e[a]&&n&&(e[a]=new n),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return o()?{}:{obj:e,k:r(i.shift())}}function fe(e,t,n){var r=ce(e,t,Object);r.obj[r.k]=n}function de(e,t){var n=ce(e,t),r=n.obj,o=n.k;if(r)return r[o]}function pe(e,t,n){var r=de(e,n);return void 0!==r?r:de(t,n)}function he(e,t,n){for(var r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):he(e[r],t[r],n):e[r]=t[r]);return e}function me(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var ve={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function ge(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return ve[e]})):e}var ye="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,be=[" ",",","?","!",";"];function we(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?we(Object(n),!0).forEach((function(t){(0,J.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):we(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ee(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Y(e);if(t){var o=Y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return q(this,n)}}function _e(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),o=e,i=0;i<r.length;++i){if(!o)return;if("string"==typeof o[r[i]]&&i+1<r.length)return;if(void 0===o[r[i]]){for(var a=2,l=r.slice(i,i+a).join(n),s=o[l];void 0===s&&r.length>i+a;)a++,s=o[l=r.slice(i,i+a).join(n)];if(void 0===s)return;if(t.endsWith(l)){if("string"==typeof s)return s;if(l&&"string"==typeof s[l])return s[l]}var u=r.slice(i+a).join(n);return u?_e(s,u,n):void 0}o=o[r[i]]}return o}}var Se=function(e){K(n,e);var t=Ee(n);function n(e){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return W(this,n),r=t.call(this),ye&&ae.call((0,G.Z)(r)),r.data=e||{},r.options=o,void 0===r.options.keySeparator&&(r.options.keySeparator="."),void 0===r.options.ignoreJSONStructure&&(r.options.ignoreJSONStructure=!0),r}return(0,V.Z)(n,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure,a=[e,t];n&&"string"!=typeof n&&(a=a.concat(n)),n&&"string"==typeof n&&(a=a.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(a=e.split("."));var l=de(this.data,a);return l||!i||"string"!=typeof n?l:_e(this.data&&this.data[e]&&this.data[e][t],n,o)}},{key:"addResource",value:function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=this.options.keySeparator;void 0===i&&(i=".");var a=[e,t];n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(r=t,t=(a=e.split("."))[1]),this.addNamespaces(t),fe(this.data,a,r),o.silent||this.emit("added",e,t,n,r)}},{key:"addResources",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var o in n)"string"!=typeof n[o]&&"[object Array]"!==Object.prototype.toString.apply(n[o])||this.addResource(e,t,o,n[o],{silent:!0});r.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(r=n,n=t,t=(a=e.split("."))[1]),this.addNamespaces(t);var l=de(this.data,a)||{};r?he(l,n,o):l=xe(xe({},l),n),fe(this.data,a,l),i.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?xe(xe({},{}),this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"hasLanguageSomeTranslations",value:function(e){var t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find((function(e){return t[e]&&Object.keys(t[e]).length>0}))}},{key:"toJSON",value:function(){return this.data}}]),n}(ae),Oe={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,o){var i=this;return e.forEach((function(e){i.processors[e]&&(t=i.processors[e].process(t,n,r,o))})),t}};function ke(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ce(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ke(Object(n),!0).forEach((function(t){(0,J.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ke(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Pe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Y(e);if(t){var o=Y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return q(this,n)}}var je={},Te=function(e){K(n,e);var t=Pe(n);function n(e){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return W(this,n),r=t.call(this),ye&&ae.call((0,G.Z)(r)),ue(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,(0,G.Z)(r)),r.options=o,void 0===r.options.keySeparator&&(r.options.keySeparator="."),r.logger=ie.create("translator"),r}return(0,V.Z)(n,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;var n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS||[],i=n&&e.indexOf(n)>-1,a=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||function(e,t,n){t=t||"",n=n||"";var r=be.filter((function(e){return t.indexOf(e)<0&&n.indexOf(e)<0}));if(0===r.length)return!0;var o=new RegExp("(".concat(r.map((function(e){return"?"===e?"\\?":e})).join("|"),")")),i=!o.test(e);if(!i){var a=e.indexOf(n);a>0&&!o.test(e.substring(0,a))&&(i=!0)}return i}(e,n,r));if(i&&!a){var l=e.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:e,namespaces:o};var s=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(s[0])>-1)&&(o=s.shift()),e=s.join(r)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}},{key:"translate",value:function(e,t,r){var o=this;if("object"!==(0,H.Z)(t)&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,a=this.extractFromKey(e[e.length-1],t),l=a.key,s=a.namespaces,u=s[s.length-1],c=t.lng||this.language,f=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&"cimode"===c.toLowerCase()){if(f){var d=t.nsSeparator||this.options.nsSeparator;return u+d+l}return l}var p=this.resolve(e,t),h=p&&p.res,m=p&&p.usedKey||l,v=p&&p.exactUsedKey||l,g=Object.prototype.toString.apply(h),y=["[object Number]","[object Function]","[object RegExp]"],b=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,w=!this.i18nFormat||this.i18nFormat.handleAsObject,x="string"!=typeof h&&"boolean"!=typeof h&&"number"!=typeof h;if(w&&h&&x&&y.indexOf(g)<0&&("string"!=typeof b||"[object Array]"!==g)){if(!t.returnObjects&&!this.options.returnObjects)return this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(m,h,Ce(Ce({},t),{},{ns:s})):"key '".concat(l," (").concat(this.language,")' returned an object instead of string.");if(i){var E="[object Array]"===g,_=E?[]:{},S=E?v:m;for(var O in h)if(Object.prototype.hasOwnProperty.call(h,O)){var k="".concat(S).concat(i).concat(O);_[O]=this.translate(k,Ce(Ce({},t),{joinArrays:!1,ns:s})),_[O]===k&&(_[O]=h[O])}h=_}}else if(w&&"string"==typeof b&&"[object Array]"===g)(h=h.join(b))&&(h=this.extendTranslation(h,e,t,r));else{var C=!1,P=!1,j=void 0!==t.count&&"string"!=typeof t.count,T=n.hasDefaultValue(t),A=j?this.pluralResolver.getSuffix(c,t.count,t):"",I=t["defaultValue".concat(A)]||t.defaultValue;!this.isValidLookup(h)&&T&&(C=!0,h=I),this.isValidLookup(h)||(P=!0,h=l);var R=t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,N=R&&P?void 0:h,D=T&&I!==h&&this.options.updateMissing;if(P||C||D){if(this.logger.log(D?"updateKey":"missingKey",c,u,l,D?I:h),i){var M=this.resolve(l,Ce(Ce({},t),{},{keySeparator:!1}));M&&M.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var L=[],F=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&F&&F[0])for(var z=0;z<F.length;z++)L.push(F[z]);else"all"===this.options.saveMissingTo?L=this.languageUtils.toResolveHierarchy(t.lng||this.language):L.push(t.lng||this.language);var B=function(e,n,r){var i=T&&r!==h?r:N;o.options.missingKeyHandler?o.options.missingKeyHandler(e,u,n,i,D,t):o.backendConnector&&o.backendConnector.saveMissing&&o.backendConnector.saveMissing(e,u,n,i,D,t),o.emit("missingKey",e,u,n,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&j?L.forEach((function(e){o.pluralResolver.getSuffixes(e).forEach((function(n){B([e],l+n,t["defaultValue".concat(n)]||I)}))})):B(L,l,I))}h=this.extendTranslation(h,e,t,p,r),P&&h===l&&this.options.appendNamespaceToMissingKey&&(h="".concat(u,":").concat(l)),(P||C)&&this.options.parseMissingKeyHandler&&(h=this.options.parseMissingKeyHandler(h))}return h}},{key:"extendTranslation",value:function(e,t,n,r,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,n,r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(Ce(Ce({},n),{interpolation:Ce(Ce({},this.options.interpolation),n.interpolation)}));var a,l="string"==typeof e&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(l){var s=e.match(this.interpolator.nestingRegexp);a=s&&s.length}var u=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(u=Ce(Ce({},this.options.interpolation.defaultVariables),u)),e=this.interpolator.interpolate(e,u,n.lng||this.language,n),l){var c=e.match(this.interpolator.nestingRegexp);a<(c&&c.length)&&(n.nest=!1)}!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];return o&&o[0]===r[0]&&!n.context?(i.logger.warn("It seems you are nesting recursively key: ".concat(r[0]," in key: ").concat(t[0])),null):i.translate.apply(i,r.concat([t]))}),n)),n.interpolation&&this.interpolator.reset()}var f=n.postProcess||this.options.postProcess,d="string"==typeof f?[f]:f;return null!=e&&d&&d.length&&!1!==n.applyPostProcessor&&(e=Oe.handle(d,e,t,this.options&&this.options.postProcessPassResolved?Ce({i18nResolved:r},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,r,o,i,a=this,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!a.isValidLookup(t)){var s=a.extractFromKey(e,l),u=s.key;n=u;var c=s.namespaces;a.options.fallbackNS&&(c=c.concat(a.options.fallbackNS));var f=void 0!==l.count&&"string"!=typeof l.count,d=f&&!l.ordinal&&0===l.count&&a.pluralResolver.shouldUseIntlApi(),p=void 0!==l.context&&("string"==typeof l.context||"number"==typeof l.context)&&""!==l.context,h=l.lngs?l.lngs:a.languageUtils.toResolveHierarchy(l.lng||a.language,l.fallbackLng);c.forEach((function(e){a.isValidLookup(t)||(i=e,!je["".concat(h[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(i)&&(je["".concat(h[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(n,'" for languages "').concat(h.join(", "),'" won\'t get resolved as namespace "').concat(i,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),h.forEach((function(n){if(!a.isValidLookup(t)){o=n;var i,s=[u];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKeys(s,u,n,e,l);else{var c;f&&(c=a.pluralResolver.getSuffix(n,l.count,l));if(f&&(s.push(u+c),d&&s.push(u+"_zero")),p){var h="".concat(u).concat(a.options.contextSeparator).concat(l.context);s.push(h),f&&(s.push(h+c),d&&s.push(h+"_zero"))}}for(;i=s.pop();)a.isValidLookup(t)||(r=i,t=a.getResource(n,e,i,l))}})))}))}})),{res:t,usedKey:n,exactUsedKey:r,usedLng:o,usedNS:i}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}}],[{key:"hasDefaultValue",value:function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&"defaultValue"===t.substring(0,"defaultValue".length)&&void 0!==e[t])return!0;return!1}}]),n}(ae);function Ae(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Ie=function(){function e(t){W(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ie.create("languageUtils")}return(0,V.Z)(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map((function(e){return e.toLowerCase()})):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=Ae(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=Ae(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=Ae(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach((function(e){if(!t){var r=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(r)||(t=r)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var r=n.getLanguagePartFromCode(e);if(n.isSupportedCode(r))return t=r;t=n.options.supportedLngs.find((function(e){if(0===e.indexOf(r))return e}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[],i=function(e){e&&(n.isSupportedCode(e)?o.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"==typeof e&&i(this.formatLanguageCode(e)),r.forEach((function(e){o.indexOf(e)<0&&i(n.formatLanguageCode(e))})),o}}]),e}(),Re=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],Ne={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}},De=["v1","v2","v3"],Me={zero:0,one:1,two:2,few:3,many:4,other:5};function Le(){var e={};return Re.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:Ne[t.fc]}}))})),e}var Fe=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};W(this,e),this.languageUtils=t,this.options=n,this.logger=ie.create("pluralResolver"),this.options.compatibilityJSON&&"v4"!==this.options.compatibilityJSON||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=Le()}return(0,V.Z)(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(e,{type:t.ordinal?"ordinal":"cardinal"})}catch(e){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map((function(e){return"".concat(t).concat(e)}))}},{key:"getSuffixes",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.getRule(e,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((function(e,t){return Me[e]-Me[t]})).map((function(e){return"".concat(t.options.prepend).concat(e)})):r.numbers.map((function(r){return t.getSuffix(e,r,n)})):[]}},{key:"getSuffix",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.getRule(e,n);return r?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(r.select(t)):this.getSuffixRetroCompatible(r,t):(this.logger.warn("no plural rule found for: ".concat(e)),"")}},{key:"getSuffixRetroCompatible",value:function(e,t){var n=this,r=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),o=e.numbers[r];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===o?o="plural":1===o&&(o=""));var i=function(){return n.options.prepend&&o.toString()?n.options.prepend+o.toString():o.toString()};return"v1"===this.options.compatibilityJSON?1===o?"":"number"==typeof o?"_plural_".concat(o.toString()):i():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?i():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}},{key:"shouldUseIntlApi",value:function(){return!De.includes(this.options.compatibilityJSON)}}]),e}();function ze(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Be(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ze(Object(n),!0).forEach((function(t){(0,J.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ze(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ue=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};W(this,e),this.logger=ie.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return(0,V.Z)(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:ge,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?me(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?me(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?me(t.nestingPrefix):t.nestingPrefixEscaped||me("$t("),this.nestingSuffix=t.nestingSuffix?me(t.nestingSuffix):t.nestingSuffixEscaped||me(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,r){var o,i,a,l=this,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(e){return e.replace(/\$/g,"$$$$")}var c=function(e){if(e.indexOf(l.formatSeparator)<0){var o=pe(t,s,e);return l.alwaysFormat?l.format(o,void 0,n,Be(Be(Be({},r),t),{},{interpolationkey:e})):o}var i=e.split(l.formatSeparator),a=i.shift().trim(),u=i.join(l.formatSeparator).trim();return l.format(pe(t,s,a),u,n,Be(Be(Be({},r),t),{},{interpolationkey:a}))};this.resetRegExp();var f=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,d=r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return u(e)}},{regex:this.regexp,safeValue:function(e){return l.escapeValue?u(l.escape(e)):u(e)}}].forEach((function(t){for(a=0;o=t.regex.exec(e);){var n=o[1].trim();if(void 0===(i=c(n)))if("function"==typeof f){var s=f(e,o,r);i="string"==typeof s?s:""}else if(r&&r.hasOwnProperty(n))i="";else{if(d){i=o[0];continue}l.logger.warn("missed to pass in variable ".concat(n," for interpolating ").concat(e)),i=""}else"string"==typeof i||l.useRawValueToEscape||(i=se(i));var u=t.safeValue(i);if(e=e.replace(o[0],u),d?(t.regex.lastIndex+=u.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,++a>=l.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var n,r,o=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=Be({},i);function l(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),o="{".concat(r[1]);e=r[0],o=(o=this.interpolate(o,a)).replace(/'/g,'"');try{a=JSON.parse(o),t&&(a=Be(Be({},t),a))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(o)}return delete a.defaultValue,e}for(a.applyPostProcessor=!1,delete a.defaultValue;n=this.nestingRegexp.exec(e);){var s=[],u=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){var c=n[1].split(this.formatSeparator).map((function(e){return e.trim()}));n[1]=c.shift(),s=c,u=!0}if((r=t(l.call(this,n[1].trim(),a),a))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=se(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),u&&(r=s.reduce((function(e,t){return o.format(e,t,i.lng,Be(Be({},i),{},{interpolationkey:n[1].trim()}))}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}();function Ze(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function He(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ze(Object(n),!0).forEach((function(t){(0,J.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ze(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function We(e){var t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){var r=e.split("(");t=r[0].toLowerCase().trim();var o=r[1].substring(0,r[1].length-1);if("currency"===t&&o.indexOf(":")<0)n.currency||(n.currency=o.trim());else if("relativetime"===t&&o.indexOf(":")<0)n.range||(n.range=o.trim());else{o.split(";").forEach((function(e){if(e){var t=function(e){return(0,X.Z)(e)||(0,Q.Z)(e)||(0,ee.Z)(e)||(0,te.Z)()}(e.split(":")),r=t[0],o=t.slice(1).join(":");"false"===o.trim()&&(n[r.trim()]=!1),"true"===o.trim()&&(n[r.trim()]=!0),isNaN(o.trim())||(n[r.trim()]=parseInt(o.trim(),10)),n[r.trim()]||(n[r.trim()]=o.trim())}}))}}return{formatName:t,formatOptions:n}}var Ve=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};W(this,e),this.logger=ie.create("formatter"),this.options=t,this.formats={number:function(e,t,n){return new Intl.NumberFormat(t,n).format(e)},currency:function(e,t,n){return new Intl.NumberFormat(t,He(He({},n),{},{style:"currency"})).format(e)},datetime:function(e,t,n){return new Intl.DateTimeFormat(t,He({},n)).format(e)},relativetime:function(e,t,n){return new Intl.RelativeTimeFormat(t,He({},n)).format(e,n.range||"day")},list:function(e,t,n){return new Intl.ListFormat(t,He({},n)).format(e)}},this.init(t)}return(0,V.Z)(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=t.interpolation;this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||","}},{key:"add",value:function(e,t){this.formats[e.toLowerCase().trim()]=t}},{key:"format",value:function(e,t,n,r){var o=this;return t.split(this.formatSeparator).reduce((function(e,t){var i=We(t),a=i.formatName,l=i.formatOptions;if(o.formats[a]){var s=e;try{var u=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},c=u.locale||u.lng||r.locale||r.lng||n;s=o.formats[a](e,c,He(He(He({},l),r),u))}catch(e){o.logger.warn(e)}return s}return o.logger.warn("there was no format function for ".concat(a)),e}),e)}}]),e}();function Ge(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $e(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ge(Object(n),!0).forEach((function(t){(0,J.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ge(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ke(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Y(e);if(t){var o=Y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return q(this,n)}}var qe=function(e){K(n,e);var t=Ke(n);function n(e,r,o){var i,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return W(this,n),i=t.call(this),ye&&ae.call((0,G.Z)(i)),i.backend=e,i.store=r,i.services=o,i.languageUtils=o.languageUtils,i.options=a,i.logger=ie.create("backendConnector"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(o,a.backend,a),i}return(0,V.Z)(n,[{key:"queueLoad",value:function(e,t,n,r){var o=this,i=[],a=[],l=[],s=[];return e.forEach((function(e){var r=!0;t.forEach((function(t){var l="".concat(e,"|").concat(t);!n.reload&&o.store.hasResourceBundle(e,t)?o.state[l]=2:o.state[l]<0||(1===o.state[l]?a.indexOf(l)<0&&a.push(l):(o.state[l]=1,r=!1,a.indexOf(l)<0&&a.push(l),i.indexOf(l)<0&&i.push(l),s.indexOf(t)<0&&s.push(t)))})),r||l.push(e)})),(i.length||a.length)&&this.queue.push({pending:a,loaded:{},errors:[],callback:r}),{toLoad:i,pending:a,toLoadLanguages:l,toLoadNamespaces:s}}},{key:"loaded",value:function(e,t,n){var r=e.split("|"),o=r[0],i=r[1];t&&this.emit("failedLoading",o,i,t),n&&this.store.addResourceBundle(o,i,n),this.state[e]=t?-1:2;var a={};this.queue.forEach((function(n){!function(e,t,n,r){var o=ce(e,t,Object),i=o.obj,a=o.k;i[a]=i[a]||[],r&&(i[a]=i[a].concat(n)),r||i[a].push(n)}(n.loaded,[o],i),function(e,t){for(var n=e.indexOf(t);-1!==n;)e.splice(n,1),n=e.indexOf(t)}(n.pending,e),t&&n.errors.push(t),0!==n.pending.length||n.done||(Object.keys(n.loaded).forEach((function(e){a[e]||(a[e]=[]),n.loaded[e].length&&n.loaded[e].forEach((function(t){a[e].indexOf(t)<0&&a[e].push(t)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,a=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[n](e,t,(function(l,s){l&&s&&o<5?setTimeout((function(){r.read.call(r,e,t,n,o+1,2*i,a)}),i):a(l,s)})):a(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var i=this.queueLoad(e,t,r,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach((function(e){n.loadOne(e)}))}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),o=r[0],i=r[1];this.read(o,i,"read",void 0,void 0,(function(r,a){r&&t.logger.warn("".concat(n,"loading namespace ").concat(i," for language ").concat(o," failed"),r),!r&&a&&t.logger.log("".concat(n,"loaded namespace ").concat(i," for language ").concat(o),a),t.loaded(e,r,a)}))}},{key:"saveMissing",value:function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null!=n&&""!==n&&(this.backend&&this.backend.create&&this.backend.create(e,t,n,r,null,$e($e({},i),{},{isUpdate:o})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),n}(ae);function Ye(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===(0,H.Z)(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===(0,H.Z)(e[2])||"object"===(0,H.Z)(e[3])){var n=e[3]||e[2];Object.keys(n).forEach((function(e){t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function Je(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function Xe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xe(Object(n),!0).forEach((function(t){(0,J.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function et(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Y(e);if(t){var o=Y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return q(this,n)}}function tt(){}function nt(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach((function(t){"function"==typeof e[t]&&(e[t]=e[t].bind(e))}))}var rt=function(e){K(n,e);var t=et(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(W(this,n),e=t.call(this),ye&&ae.call((0,G.Z)(e)),e.options=Je(r),e.services={},e.logger=ie,e.modules={external:[]},nt((0,G.Z)(e)),o&&!e.isInitialized&&!r.isClone){if(!e.options.initImmediate)return e.init(r,o),q(e,(0,G.Z)(e));setTimeout((function(){e.init(r,o)}),0)}return e}return(0,V.Z)(n,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;"function"==typeof t&&(n=t,t={}),!t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));var r=Ye();function o(e){return e?"function"==typeof e?new e:e:null}if(this.options=Qe(Qe(Qe({},r),this.options),Je(t)),"v1"!==this.options.compatibilityAPI&&(this.options.interpolation=Qe(Qe({},r.interpolation),this.options.interpolation)),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!this.options.isClone){var i;this.modules.logger?ie.init(o(this.modules.logger),this.options):ie.init(null,this.options),this.modules.formatter?i=this.modules.formatter:"undefined"!=typeof Intl&&(i=Ve);var a=new Ie(this.options);this.store=new Se(this.options.resources,this.options);var l=this.services;l.logger=ie,l.resourceStore=this.store,l.languageUtils=a,l.pluralResolver=new Fe(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!i||this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format||(l.formatter=o(i),l.formatter.init(l,this.options),this.options.interpolation.format=l.formatter.format.bind(l.formatter)),l.interpolator=new Ue(this.options),l.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},l.backendConnector=new qe(o(this.modules.backend),l.resourceStore,l,this.options),l.backendConnector.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.languageDetector&&(l.languageDetector=o(this.modules.languageDetector),l.languageDetector.init(l,this.options.detection,this.options)),this.modules.i18nFormat&&(l.i18nFormat=o(this.modules.i18nFormat),l.i18nFormat.init&&l.i18nFormat.init(this)),this.translator=new Te(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.external.forEach((function(t){t.init&&t.init(e)}))}if(this.format=this.options.interpolation.format,n||(n=tt),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);s.length>0&&"dev"!==s[0]&&(this.options.lng=s[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var u=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];u.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}}));var c=["addResource","addResources","addResourceBundle","removeResourceBundle"];c.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}}));var f=le(),d=function(){var t=function(t,r){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),f.resolve(r),n(t,r)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?d():setTimeout(d,0),f}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:tt,r=n,o="string"==typeof e?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(o&&"cimode"===o.toLowerCase())return r();var i=[],a=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){i.indexOf(e)<0&&i.push(e)}))};if(o)a(o);else{var l=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);l.forEach((function(e){return a(e)}))}this.options.preload&&this.options.preload.forEach((function(e){return a(e)})),this.services.backendConnector.load(i,this.options.ns,r)}else r(null)}},{key:"reloadResources",value:function(e,t,n){var r=le();return e||(e=this.languages),t||(t=this.options.ns),n||(n=tt),this.services.backendConnector.reload(e,t,(function(e){r.resolve(),n(e)})),r}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&Oe.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var r=le();this.emit("languageChanging",e);var o=function(e){if(n.language=e,n.languages=n.services.languageUtils.toResolveHierarchy(e),n.resolvedLanguage=void 0,!(["cimode","dev"].indexOf(e)>-1))for(var t=0;t<n.languages.length;t++){var r=n.languages[t];if(!(["cimode","dev"].indexOf(r)>-1)&&n.store.hasLanguageSomeTranslations(r)){n.resolvedLanguage=r;break}}},i=function(i){e||i||!n.services.languageDetector||(i=[]);var a="string"==typeof i?i:n.services.languageUtils.getBestMatchFromCodes(i);a&&(n.language||o(a),n.translator.language||n.translator.changeLanguage(a),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(a)),n.loadResources(a,(function(e){!function(e,i){i?(o(i),n.translator.changeLanguage(i),n.isLanguageChangingTo=void 0,n.emit("languageChanged",i),n.logger.log("languageChanged",i)):n.isLanguageChangingTo=void 0,r.resolve((function(){return n.t.apply(n,arguments)})),t&&t(e,(function(){return n.t.apply(n,arguments)}))}(e,a)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(i):i(e):i(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(e,t,n){var r=this,o=function e(t,o){var i;if("object"!==(0,H.Z)(o)){for(var a=arguments.length,l=new Array(a>2?a-2:0),s=2;s<a;s++)l[s-2]=arguments[s];i=r.options.overloadTranslationOptionHandler([t,o].concat(l))}else i=Qe({},o);i.lng=i.lng||e.lng,i.lngs=i.lngs||e.lngs,i.ns=i.ns||e.ns;var u=r.options.keySeparator||".",c=n?"".concat(n).concat(u).concat(t):t;return r.t(c,i)};return"string"==typeof e?o.lng=e:o.lngs=e,o.ns=t,o.keyPrefix=n,o}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var r=this.resolvedLanguage||this.languages[0],o=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};if(n.precheck){var l=n.precheck(this,a);if(void 0!==l)return l}return!!this.hasResourceBundle(r,e)||(!this.services.backendConnector.backend||!(!a(r,e)||o&&!a(i,e)))}},{key:"loadNamespaces",value:function(e,t){var n=this,r=le();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)})),this.loadResources((function(e){r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=le();"string"==typeof e&&(e=[e]);var r=this.options.preload||[],o=e.filter((function(e){return r.indexOf(e)<0}));return o.length?(this.options.preload=r.concat(o),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:tt,o=Qe(Qe(Qe({},this.options),t),{isClone:!0}),i=new n(o),a=["store","services","language"];return a.forEach((function(t){i[t]=e[t]})),i.services=Qe({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i.translator=new Te(i.services,i.options),i.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];i.emit.apply(i,[e].concat(n))})),i.init(o,r),i.translator.options=i.options,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),n}(ae);(0,J.Z)(rt,"createInstance",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new rt(e,t)}));var ot=rt.createInstance();ot.createInstance=rt.createInstance;ot.createInstance,ot.init,ot.loadResources,ot.reloadResources,ot.use,ot.changeLanguage,ot.getFixedT,ot.t,ot.exists,ot.setDefaultNamespace,ot.hasLoadedNamespace,ot.loadNamespaces,ot.loadLanguages;var it=ot;function at(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return it.t(e,t)}function lt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function st(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lt(Object(n),!0).forEach((function(t){ut(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ut(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ct={resolve:null,endpoint:null,data:null};function ft(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t.url=buttonizer_admin.api+e,buttonizer_admin.is_stand_alone?t.headers={Authorization:"Bearer ".concat(buttonizer_admin.auth)}:t.headers={"X-WP-Nonce":buttonizer_admin.nonce},t.withCredentials=!0,new Promise((function(o,i){N()(t).then((function(e){return o(e)})).catch((function(a){if(!n&&a.response&&401===a.response.status)return app.standAloneEvent&&app.standAloneEvent("unauthenticated"),r?void i("wait-for-auth"):void(ct={resolve:o,endpoint:e,data:t});app.standAloneEvent&&app.standAloneEvent("unauthenticated"),i(a)}))}))}function dt(){if(!ct.resolve)throw new Error(ct);return new Promise((function(e,t){ft(ct.endpoint,ct.data,!1,!0).then((function(t){ct.resolve(t),e()})).catch((function(e){return t(e)}))}))}function pt(e){var t=e,n={},r={};t.groups.map((function(e){var t=ht(e.data);t.children=[],Object.keys(e.buttons).map((function(r){var o=ht(e.buttons[r]);o.parent=t.id,n[o.id]=o,t.children.push(o.id)})),r[t.id]=t}));var o={},i={};return t.time_schedules&&t.time_schedules.map((function(e){o[e.id]={id:e.id,name:e.name||at("time_schedules.single_name"),weekdays:e.weekdays||k.map((function(e){return{opened:!0,open:"8:00",close:"17:00",weekday:e}})),start_date:e.start_date||F(new Date),end_date:e.end_date||null,dates:e.dates||[]}})),t.page_rules&&t.page_rules.map((function(e){i[e.id]={id:e.id,name:e.name||"Unnamed pagerule",type:e.type||"and",rules:e.rules||[{type:"page_title",value:""}]}})),{hasChanges:t.changes,buttons:n,groups:r,timeSchedules:o,pageRules:i,settings:t.settings,premium:t.premium,premium_code:t.premium_code,version:t.version,wordpress:t.wordpress,info:t.info,is_opt_in:t.is_opt_in,latest_tour_update:t.latest_tour_update,identifier:t.identifier?t.identifier:null,additional_permissions:t.additional_permissions,domain:t.domain}}function ht(e){return e&&void 0!==e.id?e:st(st({},e),{},{id:U()()})}function mt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return{type:O.ADD_RELATION,payload:{button_id:e,group_id:t,index:n}}}function vt(e,t,n,r){return{type:O.CHANGE_RELATION,payload:{button_id:e,old_group_id:t,new_group_id:n,button_index:r}}}function gt(e,t){return{type:O.REMOVE_RELATION,payload:{button_id:e,group_id:t}}}var yt=function(e,t,n,r){return Array.isArray(r)?{type:O[e].SET_KEY_FORMAT,payload:{id:t,format:"normal_hover",key:n,values:r}}:{type:O[e].SET_KEY_VALUE,payload:{id:t,key:n,value:r}}},bt=function(e,t){return{type:O.SET_SETTING_VALUE,payload:{setting:e,value:t}}},wt=function(e,t){return{type:O.SET_MISC_VALUE,payload:{setting:e,value:t}}};function xt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return{type:O[t].ADD_RECORD,payload:{record:ht(e),index:n}}}function Et(e,t){return{type:O[t].REMOVE_RECORD,payload:{model_id:e}}}function _t(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.store.getState();if(!t.groups[e].children)return null;var n=t.groups[e].children,r=t.buttons,o={};return Object.keys(r).map((function(e){n.includes(e)&&(o[e]=r[e])})),o}function St(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:co.getState();if(!e)return null;var n=t.buttons,r={};return Object.keys(n).map((function(t){e.includes(t)&&e.map((function(e,o){e===t&&(r[o]=n[t])}))})),r}function Ot(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.store.getState();return t.groups&&t.groups[e]?t.groups[e].children.length:0}function kt(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map((function(e){return"'"+e+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Ct(e){return!!e&&!!e[mn]}function Pt(e){return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===vn}(e)||Array.isArray(e)||!!e[hn]||!!e.constructor[hn]||Dt(e)||Mt(e))}function jt(e,t,n){void 0===n&&(n=!1),0===Tt(e)?(n?Object.keys:gn)(e).forEach((function(r){n&&"symbol"==typeof r||t(r,e[r],e)})):e.forEach((function(n,r){return t(r,n,e)}))}function Tt(e){var t=e[mn];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Dt(e)?2:Mt(e)?3:0}function At(e,t){return 2===Tt(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function It(e,t){return 2===Tt(e)?e.get(t):e[t]}function Rt(e,t,n){var r=Tt(e);2===r?e.set(t,n):3===r?(e.delete(t),e.add(n)):e[t]=n}function Nt(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function Dt(e){return cn&&e instanceof Map}function Mt(e){return fn&&e instanceof Set}function Lt(e){return e.o||e.t}function Ft(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=yn(e);delete t[mn];for(var n=gn(t),r=0;r<n.length;r++){var o=n[r],i=t[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function zt(e,t){return void 0===t&&(t=!1),Ut(e)||Ct(e)||!Pt(e)||(Tt(e)>1&&(e.set=e.add=e.clear=e.delete=Bt),Object.freeze(e),t&&jt(e,(function(e,t){return zt(t,!0)}),!0)),e}function Bt(){kt(2)}function Ut(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function Zt(e){var t=bn[e];return t||kt(18,e),t}function Ht(){return sn}function Wt(e,t){t&&(Zt("Patches"),e.u=[],e.s=[],e.v=t)}function Vt(e){Gt(e),e.p.forEach(Kt),e.p=null}function Gt(e){e===sn&&(sn=e.l)}function $t(e){return sn={p:[],l:sn,h:e,m:!0,_:0}}function Kt(e){var t=e[mn];0===t.i||1===t.i?t.j():t.O=!0}function qt(e,t){t._=t.p.length;var n=t.p[0],r=void 0!==e&&e!==n;return t.h.g||Zt("ES5").S(t,e,r),r?(n[mn].P&&(Vt(t),kt(4)),Pt(e)&&(e=Yt(t,e),t.l||Xt(t,e)),t.u&&Zt("Patches").M(n[mn],e,t.u,t.s)):e=Yt(t,n,[]),Vt(t),t.u&&t.v(t.u,t.s),e!==pn?e:void 0}function Yt(e,t,n){if(Ut(t))return t;var r=t[mn];if(!r)return jt(t,(function(o,i){return Jt(e,r,t,o,i,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return Xt(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=4===r.i||5===r.i?r.o=Ft(r.k):r.o;jt(3===r.i?new Set(o):o,(function(t,i){return Jt(e,r,o,t,i,n)})),Xt(e,o,!1),n&&e.u&&Zt("Patches").R(r,n,e.u,e.s)}return r.o}function Jt(e,t,n,r,o,i){if(Ct(o)){var a=Yt(e,o,i&&t&&3!==t.i&&!At(t.D,r)?i.concat(r):void 0);if(Rt(n,r,a),!Ct(a))return;e.m=!1}if(Pt(o)&&!Ut(o)){if(!e.h.F&&e._<1)return;Yt(e,o),t&&t.A.l||Xt(e,o)}}function Xt(e,t,n){void 0===n&&(n=!1),e.h.F&&e.m&&zt(t,n)}function Qt(e,t){var n=e[mn];return(n?Lt(n):e)[t]}function en(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function tn(e){e.P||(e.P=!0,e.l&&tn(e.l))}function nn(e){e.o||(e.o=Ft(e.t))}function rn(e,t,n){var r=Dt(t)?Zt("MapSet").N(t,n):Mt(t)?Zt("MapSet").T(t,n):e.g?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:Ht(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},o=r,i=wn;n&&(o=[r],i=xn);var a=Proxy.revocable(o,i),l=a.revoke,s=a.proxy;return r.k=s,r.j=l,s}(t,n):Zt("ES5").J(t,n);return(n?n.A:Ht()).p.push(r),r}function on(e){return Ct(e)||kt(22,e),function e(t){if(!Pt(t))return t;var n,r=t[mn],o=Tt(t);if(r){if(!r.P&&(r.i<4||!Zt("ES5").K(r)))return r.t;r.I=!0,n=an(t,o),r.I=!1}else n=an(t,o);return jt(n,(function(t,o){r&&It(r.t,t)===o||Rt(n,t,e(o))})),3===o?new Set(n):n}(e)}function an(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Ft(e)}var ln,sn,un="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),cn="undefined"!=typeof Map,fn="undefined"!=typeof Set,dn="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,pn=un?Symbol.for("immer-nothing"):((ln={})["immer-nothing"]=!0,ln),hn=un?Symbol.for("immer-draftable"):"__$immer_draftable",mn=un?Symbol.for("immer-state"):"__$immer_state",vn=("undefined"!=typeof Symbol&&Symbol.iterator,""+Object.prototype.constructor),gn="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,yn=Object.getOwnPropertyDescriptors||function(e){var t={};return gn(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},bn={},wn={get:function(e,t){if(t===mn)return e;var n=Lt(e);if(!At(n,t))return function(e,t,n){var r,o=en(t,n);return o?"value"in o?o.value:null===(r=o.get)||void 0===r?void 0:r.call(e.k):void 0}(e,n,t);var r=n[t];return e.I||!Pt(r)?r:r===Qt(e.t,t)?(nn(e),e.o[t]=rn(e.A.h,r,e)):r},has:function(e,t){return t in Lt(e)},ownKeys:function(e){return Reflect.ownKeys(Lt(e))},set:function(e,t,n){var r=en(Lt(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var o=Qt(Lt(e),t),i=null==o?void 0:o[mn];if(i&&i.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(Nt(n,o)&&(void 0!==n||At(e.t,t)))return!0;nn(e),tn(e)}return e.o[t]===n&&"number"!=typeof n&&(void 0!==n||t in e.o)||(e.o[t]=n,e.D[t]=!0,!0)},deleteProperty:function(e,t){return void 0!==Qt(e.t,t)||t in e.t?(e.D[t]=!1,nn(e),tn(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=Lt(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){kt(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){kt(12)}},xn={};jt(wn,(function(e,t){xn[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),xn.deleteProperty=function(e,t){return wn.deleteProperty.call(this,e[0],t)},xn.set=function(e,t,n){return wn.set.call(this,e[0],t,n,e[0])};var En=new(function(){function e(e){var t=this;this.g=dn,this.F=!0,this.produce=function(e,n,r){if("function"==typeof e&&"function"!=typeof n){var o=n;n=e;var i=t;return function(e){var t=this;void 0===e&&(e=o);for(var r=arguments.length,a=Array(r>1?r-1:0),l=1;l<r;l++)a[l-1]=arguments[l];return i.produce(e,(function(e){var r;return(r=n).call.apply(r,[t,e].concat(a))}))}}var a;if("function"!=typeof n&&kt(6),void 0!==r&&"function"!=typeof r&&kt(7),Pt(e)){var l=$t(t),s=rn(t,e,void 0),u=!0;try{a=n(s),u=!1}finally{u?Vt(l):Gt(l)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(e){return Wt(l,r),qt(e,l)}),(function(e){throw Vt(l),e})):(Wt(l,r),qt(a,l))}if(!e||"object"!=typeof e){if((a=n(e))===pn)return;return void 0===a&&(a=e),t.F&&zt(a,!0),a}kt(21,e)},this.produceWithPatches=function(e,n){return"function"==typeof e?function(n){for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return t.produceWithPatches(n,(function(t){return e.apply(void 0,[t].concat(o))}))}:[t.produce(e,n,(function(e,t){r=e,o=t})),r,o];var r,o},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return t.createDraft=function(e){Pt(e)||kt(8),Ct(e)&&(e=on(e));var t=$t(this),n=rn(this,e,void 0);return n[mn].C=!0,Gt(t),n},t.finishDraft=function(e,t){var n=(e&&e[mn]).A;return Wt(n,t),qt(void 0,n)},t.setAutoFreeze=function(e){this.F=e},t.setUseProxies=function(e){e&&!dn&&kt(20),this.g=e},t.applyPatches=function(e,t){var n;for(n=t.length-1;n>=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}var o=Zt("Patches").$;return Ct(e)?o(e,t):this.produce(e,(function(e){return o(e,t.slice(n+1))}))},e}()),_n=En.produce,Sn=(En.produceWithPatches.bind(En),En.setAutoFreeze.bind(En),En.setUseProxies.bind(En),En.applyPatches.bind(En),En.createDraft.bind(En),En.finishDraft.bind(En),_n);function On(e){return{type:O.HAS_CHANGES,payload:{hasChanges:e}}}function kn(e){return{type:O.IS_UPDATING,payload:{isUpdating:e}}}function Cn(){return{type:O.STOP_LOADING}}
29
  /*! *****************************************************************************
30
  Copyright (c) Microsoft Corporation.
31
 
40
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
41
  PERFORMANCE OF THIS SOFTWARE.
42
  ***************************************************************************** */