Version Description
- 2022-06-14 =
- Fixed hiding fields in form
- Added shipping_phone as reserved name for new field
- Added support for WooCommerce 6.6
Download this release
Release Info
Developer | wpdesk |
Plugin | Flexible Checkout Fields for WooCommerce – WooCommerce Checkout Manager |
Version | 3.2.4 |
Comparing to | |
See all releases |
Code changes from version 3.2.3 to 3.2.4
- assets/css/new-admin.css +1 -1
- assets/css/new-front.css +1 -1
- assets/js/new-admin.js +1 -1
- classes/plugin.php +0 -7
- flexible-checkout-fields.php +3 -3
- lang/flexible-checkout-fields.pot +7 -7
- readme.txt +6 -1
- src/Service/ShortLinksGenerator.php +1 -1
- vendor/autoload.php +1 -1
- vendor/composer/autoload_real.php +4 -4
- vendor/composer/autoload_static.php +4 -4
- vendor_prefixed/wpdesk/wp-codeception/src/WPDesk/Composer/Commands/Configuration.php +17 -2
- vendor_prefixed/wpdesk/wp-codeception/src/WPDesk/Composer/Commands/LocalCodeceptionTrait.php +22 -5
- vendor_prefixed/wpdesk/wp-codeception/src/WPDesk/Composer/Commands/PrepareCodeceptionDb.php +0 -1
- vendor_prefixed/wpdesk/wp-logs/src/SimpleLoggerFactory.php +4 -11
- vendor_prefixed/wpdesk/wp-logs/src/WC/WooCommerceHandler.php +5 -2
- vendor_prefixed/wpdesk/wp-notice/assets/js/gutenberg.js +29 -0
- vendor_prefixed/wpdesk/wp-notice/composer.json +5 -0
- vendor_prefixed/wpdesk/wp-notice/src/WPDesk/Notice/AjaxHandler.php +1 -1
- vendor_prefixed/wpdesk/wp-notice/src/WPDesk/Notice/Notice.php +38 -6
- vendor_prefixed/wpdesk/wp-notice/src/WPDesk/Notice/PermanentDismissibleNotice.php +4 -3
- vendor_prefixed/wpdesk/wp-notice/src/WPDesk/Notice/views/admin-head-js-gutenberg.php +15 -0
- vendor_prefixed/wpdesk/wp-notice/src/WPDesk/Notice/views/admin-head-js.php +0 -1
assets/css/new-admin.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
@keyframes rotate{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@font-face{font-family:fcf-icomoon;font-style:normal;font-weight:400;src:url(../fonts/icons/icomoon.eot?ver=14359972);src:url(../fonts/icons/icomoon.woff?ver=14359972) format("woff"),url(../fonts/icons/icomoon.eot?ver=14359972#iefix) format("embedded-opentype"),url(../fonts/icons/icomoon.ttf?ver=14359972) format("truetype"),url(../fonts/icons/icomoon.svg?ver=14359972#icomoon) format("svg")}.icon-align-left:before{content:"\e900"!important}.icon-align-left:before,.icon-at-email:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:fcf-icomoon!important;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.icon-at-email:before{content:"\e92b"!important}.icon-bookmark:before{content:"\e920"!important}.icon-bookmark:before,.icon-brush:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:fcf-icomoon!important;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.icon-brush:before{content:"\e901"!important}.icon-calendar-alt:before{content:"\e902"!important}.icon-calendar-alt:before,.icon-caret-down:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:fcf-icomoon!important;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.icon-caret-down:before{content:"\e903"!important}.icon-caret-left:before{content:"\e904"!important}.icon-caret-left:before,.icon-caret-right:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:fcf-icomoon!important;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.icon-caret-right:before{content:"\e905"!important}.icon-caret-up:before{content:"\e906"!important}.icon-caret-up:before,.icon-check:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:fcf-icomoon!important;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.icon-check:before{content:"\e907"!important}.icon-check-double:before{content:"\e92a"!important}.icon-check-double:before,.icon-check-square:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:fcf-icomoon!important;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.icon-check-square:before{content:"\e908"!important}.icon-check-square-multi:before{content:"\e92f"!important}.icon-check-square-multi:before,.icon-clock:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:fcf-icomoon!important;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.icon-clock:before{content:"\e909"!important}.icon-code:before{content:"\e90a"!important}.icon-code:before,.icon-cog:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:fcf-icomoon!important;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.icon-cog:before{content:"\e90b"!important}.icon-cogs:before{content:"\e90c"!important}.icon-cogs:before,.icon-digits:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:fcf-icomoon!important;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.icon-digits:before{content:"\e929"!important}.icon-dollar-sign:before{content:"\e90d"!important}.icon-dollar-sign:before,.icon-ellipsis-v:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:fcf-icomoon!important;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.icon-ellipsis-v:before{content:"\e90e"!important}.icon-exchange-alt:before{content:"\e90f"!important}.icon-exchange-alt:before,.icon-exclamation-triangle:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:fcf-icomoon!important;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.icon-exclamation-triangle:before{content:"\e926"!important}.icon-eye:before{content:"\e910"!important}.icon-eye:before,.icon-font:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:fcf-icomoon!important;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.icon-font:before{content:"\e911"!important}.icon-heading:before{content:"\e912"!important}.icon-heading:before,.icon-heart:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:fcf-icomoon!important;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.icon-heart:before{content:"\e921"!important}.icon-image:before{content:"\e927"!important}.icon-image:before,.icon-images:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:fcf-icomoon!important;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.icon-images:before{content:"\e928"!important}.icon-link:before{content:"\e92d"!important}.icon-link:before,.icon-list-ul:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:fcf-icomoon!important;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.icon-list-ul:before{content:"\e913"!important}.icon-long-arrow-alt-down:before{content:"\e914"!important}.icon-long-arrow-alt-down:before,.icon-long-arrow-alt-left:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:fcf-icomoon!important;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.icon-long-arrow-alt-left:before{content:"\e915"!important}.icon-long-arrow-alt-right:before{content:"\e916"!important}.icon-long-arrow-alt-right:before,.icon-long-arrow-alt-up:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:fcf-icomoon!important;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.icon-long-arrow-alt-up:before{content:"\e917"!important}.icon-magic:before{content:"\e918"!important}.icon-magic:before,.icon-paint-brush:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:fcf-icomoon!important;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.icon-paint-brush:before{content:"\e92e"!important}.icon-palette:before{content:"\e919"!important}.icon-palette:before,.icon-paragraph:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:fcf-icomoon!important;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.icon-paragraph:before{content:"\e92c"!important}.icon-phone:before{content:"\e930"!important}.icon-phone:before,.icon-plugin-symbol:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:fcf-icomoon!important;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.icon-plugin-symbol:before{content:"\e923"!important}.icon-plus:before{content:"\e91a"!important}.icon-plus:before,.icon-question-circle:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:fcf-icomoon!important;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.icon-question-circle:before{content:"\e91b"!important}.icon-spinner:before{content:"\e925"!important}.icon-spinner:before,.icon-star:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:fcf-icomoon!important;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.icon-star:before{content:"\e922"!important}.icon-tasks:before{content:"\e91d"!important}.icon-tasks-alt:before,.icon-tasks:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:fcf-icomoon!important;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.icon-tasks-alt:before{content:"\e91c"!important}.icon-times:before{content:"\e91e"!important}.icon-times:before,.icon-trash-alt:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:fcf-icomoon!important;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.icon-trash-alt:before{content:"\e924"!important}.icon-upload:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;content:"\e91f"!important;font-family:fcf-icomoon!important;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.fcfSettings{overflow-x:hidden;width:100%}.fcfSettings,.fcfSettings *,.fcfSettings :after,.fcfSettings :before{box-shadow:none;box-sizing:border-box;text-decoration:none}.fcfSettings *,.fcfSettings :after,.fcfSettings :before{margin:0;padding:0}.fcfSettings a,.fcfSettings a:focus{box-shadow:none;outline:0}.fcfSettings__headline{color:#1e1e1e;font-size:24px;font-weight:400;line-height:1.375;padding:2px 0 2px 50px;position:relative}.fcfSettings__headline:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#2271b1;content:"\e923"!important;font-family:fcf-icomoon!important;font-size:30px;font-style:normal;font-variant:normal;font-weight:400;left:0;line-height:1;position:absolute;text-transform:none;top:50%;transform:translateY(-50%)}.fcfSettings__footer{font-size:14px;line-height:1.8571428571;padding:2px 0;text-align:center}.fcfSettings__footer a{color:inherit;font-weight:500}.fcfSettings__footerIcon{display:inline-block;padding:0 3px}.fcfSettings__footerIcon+.fcfSettings__footerIcon{margin-left:-6px}.fcfSettings__footerIcon--heart:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#dc3232;content:"\e921"!important;font-family:fcf-icomoon!important;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.fcfSettings__footerIcon--star:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#ffb900;content:"\e922"!important;font-family:fcf-icomoon!important;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.fcfSettings__columns{display:flex;flex-wrap:wrap;margin:0 -10px;width:calc(100% + 20px)}.fcfSettings__columns--reverse{flex-direction:row-reverse}.fcfSettings__columns--margin{margin-top:20px}.fcfSettings__column{padding:10px;width:40%}.fcfSettings__column--wide,.fcfSettings__column:first-child:last-child{flex:1}.fcf-admin-fields .form-row label,.fcf-admin-fields .form-row legend{display:block;margin-bottom:.5em}#your-profile .fcf-admin-fields label,#your-profile .fcf-admin-fields legend{font-size:13px}.fcf-admin-fields .form-row{float:none;width:100%}.fcfButton{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:1px solid transparent;color:#1e1e1e;cursor:pointer;display:inline-block;font-size:14px;font-weight:500;line-height:1.8571428571;outline:none;overflow:hidden;padding:7px 20px;position:relative;text-align:center;transition:color .3s;z-index:1}.fcfButton[disabled]{pointer-events:none}.fcfButton:after{content:"";height:100%;left:0;opacity:0;position:absolute;top:0;transition:opacity .3s;width:100%;z-index:-1}.fcfButton--bg:after{opacity:1}.fcfButton--bg:hover:after{opacity:0}.fcfButton--border:hover:after{opacity:1}.fcfButton--wide{width:100%}.fcfButton--small{padding:2px 20px}.fcfButton--bg{color:#fff}.fcfButton--border:hover{color:#fff!important}.fcfButton--green{border-color:#46b450}.fcfButton--green:after{background-color:#46b450}.fcfButton--green.fcfButton--bg:hover,.fcfButton--green.fcfButton--border{color:#46b450}.fcfButton--blue{border-color:#2271b1}.fcfButton--blue:after{background-color:#2271b1}.fcfButton--blue.fcfButton--bg:hover,.fcfButton--blue.fcfButton--border{color:#2271b1}.fcfButton--red{border-color:#dc3232}.fcfButton--red:after{background-color:#dc3232}.fcfButton--red.fcfButton--bg:hover,.fcfButton--red.fcfButton--border{color:#dc3232}.fcfFields__items{padding:10px}.fcfFields__item{margin:0;outline:none;padding:10px;pointer-events:none}.fcfFields__itemInner{background-color:#fff;border:1px solid #e2e4e7;pointer-events:auto}.fcfFields__itemHeader{position:relative}.fcfFields__itemHeader:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:rgba(30,30,30,.25);content:"\e90f"!important;font-family:fcf-icomoon!important;font-size:16px;font-style:normal;font-variant:normal;font-weight:400;left:20px;line-height:1;position:absolute;text-transform:none;top:50%;transform:translateY(-50%)}.fcfFields__itemHeaderOuter{align-items:center;display:flex;justify-content:space-between;padding:0 20px 0 56px}.fcfFields__itemHeaderInner{align-items:center;display:flex;flex:1;min-width:0}.fcfFields__itemHeaderTitle{color:#1e1e1e;flex:1;font-size:14px;font-weight:500;line-height:1.8571428571;overflow:hidden;padding:12px 20px 12px 0;text-overflow:ellipsis;white-space:nowrap}.fcfFields__item--disabled .fcfFields__itemHeaderTitle{color:rgba(30,30,30,.25);font-style:italic}.fcfFields__itemHeaderDesc{color:rgba(30,30,30,.5);font-size:12px;line-height:1.8571428571;padding:12px 0}.fcfFields__itemHeaderDesc--flag{padding-left:30px;position:relative}.fcfFields__itemHeaderDesc--flag:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#2271b1;content:"\e923"!important;font-family:fcf-icomoon!important;font-size:16px;font-style:normal;font-variant:normal;font-weight:400;left:0;line-height:1;margin-top:1px;position:absolute;text-transform:none;top:50%;transform:translateY(-50%)}.fcfFields__itemHeaderButtons{display:flex;padding-left:20px}.fcfFields__itemHeaderButton{position:relative}.fcfFields__itemHeaderButtonInner{background:none;border:0;cursor:pointer;height:36px;line-height:0;outline:0;padding:10px;position:relative;text-align:center;width:36px;z-index:1}.fcfFields__itemHeaderButtonInner:before{color:#1e1e1e;content:"";font-size:16px;line-height:1}.fcfFields__itemHeaderButtonInner:after{background-color:#f0f0f0;border-radius:50%;content:"";height:100%;left:0;opacity:0;position:absolute;top:0;transition:opacity .3s;width:100%;z-index:-1}.fcfFields__item--disabled .fcfFields__itemHeaderButtonInner:after{background-color:#fff}.fcfFields__itemHeaderButtonInner--open:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;content:"\e903"!important;font-family:fcf-icomoon!important;font-size:6px;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.fcfFields__itemHeaderButtonInner--close:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;content:"\e906"!important;font-family:fcf-icomoon!important;font-size:6px;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.fcfFields__itemHeaderButtonInner--remove:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#dc3232;content:"\e924"!important;font-family:fcf-icomoon!important;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.fcfFields__itemHeaderButtonInner:hover:after{opacity:1}.fcfFields__itemContent{border-top:1px solid #f0f0f0}.fcfFields__itemTabs{background-color:rgba(0,0,0,.025);border-bottom:1px solid #f0f0f0}.fcfOptions__rows{padding:5px 20px}.fcfOptions__column .fcfOptions__rows{padding:0}.fcfOptions__row{padding:5px 0}.fcfOptions__column .fcfOptions__row{padding:0}.fcfOptions__row--padding{padding:15px 0}.fcfOptions__row--sub{padding-left:30px}.fcfOptions__columns{display:flex;flex-wrap:wrap;position:relative}.fcfOptions__columns--button{padding-right:30px}.fcfOptions__columns--button+.fcfOptions__columns--button:before{background-color:#e2e4e7;content:"";height:1px;left:50%;position:absolute;top:0;transform:translateX(-50%);width:calc(100% - 20px)}.fcfOptions__column{flex:1;max-width:100%;padding:0 10px;position:relative}.fcfOptions__column--small{min-width:auto!important;padding:0!important;position:absolute;right:0;top:50%;transform:translateY(-50%)}.fcfOptions__column--center{padding:5px 0 10px;text-align:center}.fcfOptions__columnButton{background:none;border:0;cursor:pointer;font-size:0;margin-top:20px;outline:0;padding:10px;position:relative;z-index:1}.fcfOptions__columnButton:after{background-color:#f0f0f0;border-radius:50%;content:"";height:100%;left:0;opacity:0;position:absolute;top:0;transition:opacity .3s;width:100%;z-index:-1}.fcfOptions__columnButton:hover:after{opacity:1}.fcfOptions__columnButton--remove:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#dc3232;content:"\e91e"!important;font-family:fcf-icomoon!important;font-size:10px;font-style:normal;font-variant:normal;font-weight:400;line-height:1;text-transform:none}.fcfOptions__error,.fcfOptions__label,.fcfOptions__labelInner,.fcfOptions__rowLabel{color:#1e1e1e;display:block;font-size:14px;line-height:1.8571428571;padding:2px 0}.fcfOptions__label{display:inline-block;font-weight:500;position:relative;z-index:1}.fcfOptions__label--line{display:block;font-size:0;overflow:hidden}.fcfOptions__labelInner{background-color:#fff;color:#1e1e1e;display:inline-block;margin-left:20px;max-width:calc(100% - 30px);overflow:hidden;padding:0 10px;text-overflow:ellipsis;white-space:nowrap}.fcfOptions__labelInner:before{background-color:hsla(216,9%,90%,.75);content:"";height:1px;left:0;position:absolute;top:50%;width:100%;z-index:-1}.fcfOptions__error{background-color:#dc3232;color:#fff;font-weight:500;margin-bottom:10px;padding-left:36px;padding-right:10px;position:relative}.fcfOptions__checkbox~.fcfOptions__error{margin-top:5px}.fcfOptions__error:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;content:"\e926"!important;font-family:fcf-icomoon!important;font-size:16px;font-style:normal;font-variant:normal;font-weight:400;left:10px;line-height:1;position:absolute;text-transform:none;top:50%;transform:translateY(-50%)}.fcfOptions__labelHelp,.fcfOptions__labelHelpIcon{display:inline-block;position:relative}.fcfOptions__labelHelpIcon{padding:0 10px;z-index:1}.fcfOptions__labelHelpIcon:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#2271b1;content:"\e91b"!important;display:block;font-family:fcf-icomoon!important;font-size:14px;font-style:normal;font-variant:normal;font-weight:400;line-height:1.8571428571;text-transform:none;transition:transform .3s}.fcfOptions__labelHelpIcon:hover:before{transform:scale(1.5)}.fcfOptions__input,.fcfOptions__select,.fcfOptions__textarea{margin-bottom:10px}.fcfSettings .fcfOptions__input,.fcfSettings .fcfOptions__textarea{border:1px solid #e2e4e7;border-radius:0;color:#1e1e1e;display:block;font-size:14px;line-height:1.8571428571;max-width:none;padding:7px 10px;width:100%}.fcfSettings .fcfOptions__input:focus,.fcfSettings .fcfOptions__textarea:focus{border-color:#e2e4e7;box-shadow:none;color:#1e1e1e;outline:0}.fcfSettings .fcfOptions__input[disabled],.fcfSettings .fcfOptions__textarea[disabled]{background-color:hsla(216,9%,90%,.5);border-color:#e2e4e7;color:#1e1e1e;text-shadow:none}.fcfSettings .fcfOptions__checkbox,.fcfSettings .fcfOptions__radio{display:none}.fcfOptions__checkbox+.fcfOptions__label,.fcfOptions__radio+.fcfOptions__label{padding-left:30px;transition:color .3s}.fcfOptions__checkbox+.fcfOptions__label:after,.fcfOptions__checkbox+.fcfOptions__label:before,.fcfOptions__radio+.fcfOptions__label:after,.fcfOptions__radio+.fcfOptions__label:before{content:"";height:20px;left:0;position:absolute;top:calc(50% - 10px);width:20px}.fcfOptions__checkbox+.fcfOptions__label:before,.fcfOptions__radio+.fcfOptions__label:before{border:1px solid #e2e4e7}.fcfOptions__checkbox+.fcfOptions__label:after,.fcfOptions__radio+.fcfOptions__label:after{color:#46b450;font-size:10px;line-height:2;text-align:center;transform:scale(0);transition:transform .3s}.fcfOptions__checkbox:hover+.fcfOptions__label,.fcfOptions__radio:hover+.fcfOptions__label{color:rgba(30,30,30,.5)}.fcfOptions__checkbox[disabled]+.fcfOptions__label:before,.fcfOptions__radio[disabled]+.fcfOptions__label:before{background-color:hsla(216,9%,90%,.5);border-color:#e2e4e7}.fcfOptions__checkbox+.fcfOptions__label:after{content:"\e907"!important}.fcfOptions__checkbox+.fcfOptions__label:after,.fcfOptions__radio+.fcfOptions__label:after{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:fcf-icomoon!important;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.fcfOptions__radio+.fcfOptions__label:after{content:"\e91e"!important}.fcfOptions__checkbox[checked]+.fcfOptions__label:after,.fcfOptions__radio[checked]+.fcfOptions__label:after{transform:scale(1)}.fcfOptions__color,.fcfOptions__media{align-items:center;display:flex;margin-bottom:10px;min-height:42px}.fcfOptions__colorInner,.fcfOptions__mediaInner{width:100%}.fcfOptions__mediaImage{border:1px solid #e2e4e7;display:block;margin:0 auto 10px;max-height:100px;max-width:100px}.fcfOptions__colorPreview{display:block;height:100px;margin:0 auto 10px;width:100px}.fcfOptions__colorButton,.fcfOptions__mediaButton{width:100%}.fcfOptions__boxes{padding-bottom:10px}.fcfOptions__boxesTitle{background-color:#e2e4e7;font-size:14px;line-height:1.4285714286;margin:10px 0;padding:5px 10px;text-align:center}.fcfOptions__boxesTitle:first-child{margin-top:0}.fcfOptions__boxesItems{display:flex;flex-wrap:wrap;margin:-5px}.fcfOptions__boxesItem{padding:5px;width:50%}.fcfSettings .fcfOptions__boxesItemInput{display:none}.fcfOptions__boxesItemLabel{align-items:center;border:1px solid #e2e4e7;color:#1e1e1e;display:flex;font-size:14px;justify-content:center;line-height:1.4285714286;min-height:100%;padding:10px 10px 10px 42px;position:relative;text-align:center;transition:color .3s}.fcfOptions__boxesItemLabel:hover{color:rgba(30,30,30,.5)}.fcfOptions__boxesItemLabel:before{color:rgba(30,30,30,.75)!important;font-size:22px;left:10px;line-height:1;position:absolute;top:calc(50% - 11px)}.fcfOptions__boxesItemLabel:after{border:2px solid #2271b1;content:"";height:calc(100% + 2px);left:-1px;opacity:0;position:absolute;top:-1px;transition:opacity .3s;width:calc(100% + 2px)}.fcfOptions__boxesItemInput:checked+.fcfOptions__boxesItemLabel{color:#1e1e1e}.fcfOptions__boxesItemInput:checked+.fcfOptions__boxesItemLabel:after{opacity:1}.fcfOptions__info{margin:0 -20px;padding:10px 0}.fcfOptions__row:first-child .fcfOptions__info{margin-top:-20px}.fcfOptions__row:last-child .fcfOptions__info{margin-bottom:-20px}.fcfOptions__infoInner{background-color:#2271b1;color:#fff;font-size:14px;line-height:1.8571428571;padding:12px 20px}.fcfOptions__info--green .fcfOptions__infoInner{background-color:#46b450}.fcfOptions__info--yellow .fcfOptions__infoInner{background-color:#dba617}.fcfOptions__infoInner a{color:inherit;display:inline-block;font-weight:500;position:relative;transition:opacity .3s;white-space:nowrap}.fcfOptions__infoInner a:hover{opacity:.5}.fcfOptions__infoInner a:after{background-color:#fff;bottom:0;content:"";height:1px;left:0;position:absolute;width:100%}.fcfOptions__infoInner a.fcfArrowLink{letter-spacing:1px;opacity:1;padding-right:18px;text-transform:uppercase}.fcfOptions__infoInner a.fcfArrowLink:after{transition:width .3s;width:0}.fcfOptions__infoInner a.fcfArrowLink:hover:after{width:100%}.fcfOptions__infoInner a.fcfArrowLink:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;content:"\e916"!important;font-family:fcf-icomoon!important;font-size:6px;font-style:normal;font-variant:normal;font-weight:400;line-height:1;position:absolute;right:0;text-transform:none;top:50%;transform:translateY(-50%)}.fcfOptions__infoInner p{font-size:14px;line-height:1.8571428571}.fcfOptions__infoInner p strong{font-size:20px;font-weight:400;line-height:1.75}.fcfOptions__infoInner ul{padding-left:10px}.fcfOptions__infoInner ul li{padding-left:20px;position:relative}.fcfOptions__infoInner ul li:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;content:"\e907"!important;font-family:fcf-icomoon!important;font-size:10px;font-style:normal;font-variant:normal;font-weight:400;left:0;line-height:1;position:absolute;text-transform:none;top:50%;transform:translateY(-50%)}.fcfOptions__infoInner p,.fcfOptions__infoInner ul{margin-top:10px}.fcfOptions__infoInner p:first-child,.fcfOptions__infoInner ul:first-child{margin-top:0}.fcfSelect__control{background:none!important;border:1px solid #e2e4e7!important;border-radius:0!important;box-shadow:none!important;min-height:42px!important}.fcfSelect__indicators{border-left:1px solid #e2e4e7!important;position:relative;width:42px}.fcfSelect__indicators:after{color:#1e1e1e;content:"\e903"!important;font-size:6px;left:50%;line-height:1;position:absolute;top:50%;transform:translate(-50%,-50%)}.fcfSelect__control--menu-is-open .fcfSelect__indicators:after,.fcfSelect__indicators:after{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:fcf-icomoon!important;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.fcfSelect__control--menu-is-open .fcfSelect__indicators:after{content:"\e906"!important}.fcfSelect__indicators *{display:none!important}.fcfSelect__value-container{padding:4px 10px!important}.fcfSelect__input input{box-shadow:none!important;color:#1e1e1e!important;font-size:14px!important;line-height:1.5714285714!important;margin:0 2px!important;min-height:auto!important}.fcfSelect__single-value{max-width:calc(100% - 20px)!important}.fcfSelect__multi-value{background-color:#e2e4e7!important;border-radius:0!important}.fcfSelect__multi-value__label{color:#1e1e1e!important;font-size:12px!important;line-height:2!important;padding:2px 0 2px 10px!important}.fcfSelect__multi-value__remove{background:none!important;cursor:pointer;position:relative;width:30px}.fcfSelect__multi-value__remove:after{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#1e1e1e;content:"\e91e"!important;font-family:fcf-icomoon!important;font-size:10px;font-style:normal;font-variant:normal;font-weight:400;left:50%;line-height:1;position:absolute;text-transform:none;top:50%;transform:translate(-50%,-50%);transition:color .3s}.fcfSelect__multi-value__remove:hover:after{color:#dc3232}.fcfSelect__multi-value__remove *{display:none!important}.fcfSelect__menu{border-radius:0!important;box-shadow:none!important;margin:0!important;z-index:10!important}.fcfSelect__menu-notice{background-color:#1e1e1e!important;color:#fff!important;font-size:14px!important;line-height:1.8571428571!important;padding:7px 10px!important}.fcfSelect__menu-list{padding:0!important}.fcfSelect__option{background-color:#1e1e1e!important;border:1px solid #1e1e1e;color:#fff!important;cursor:pointer!important;font-size:14px!important;line-height:1.8571428571!important;padding:7px 10px!important;position:relative;transition:background-color .3s}.fcfSelect__option+.fcfSelect__option{border-top:1px solid hsla(0,0%,100%,.25);margin-top:-1px}.fcfSelect__option--is-focused{background-color:#2271b1!important}.fcfSelect__option--is-selected{background-color:#1e1e1e!important;cursor:auto!important;padding-right:42px!important}.fcfSelect__option--is-selected:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#46b450;content:"\e907"!important;font-family:fcf-icomoon!important;font-size:16px;font-style:normal;font-variant:normal;font-weight:400;line-height:1;position:absolute;right:0;text-align:center;text-transform:none;top:50%;transform:translateY(-50%);width:42px}.fcfTabs__items{display:flex;flex-wrap:wrap;margin:0;padding:0}.fcfTabs--lines .fcfTabs__items{margin-bottom:-10px;margin-top:10px}.fcfTabs__item{border-bottom:1px solid #f0f0f0;margin:0 0 -1px;padding:0;position:relative}.fcfTabs--lines .fcfTabs__item{padding-right:3px}.fcfTabs--lines .fcfTabs__item:after{background-color:#2271b1;border-radius:50%;content:"";height:6px;position:absolute;right:0;top:calc(50% - 3px);width:6px}.fcfTabs__item:last-child:after{display:none}.fcfTabs__itemLink{color:#1e1e1e;display:block;font-size:16px;font-weight:500;line-height:1.75;padding:12px 20px;position:relative;text-align:center;transition:color .3s}.fcfTabs--small .fcfTabs__itemLink{font-size:14px}.fcfTabs--lines .fcfTabs__itemLink{font-weight:400;padding:2px 20px}.fcfTabs__itemLink:after{background-color:#2271b1;bottom:0;content:"";height:3px;left:50%;position:absolute;transform:translateX(-50%);transition:width .3s;width:0}.fcfTabs--lines .fcfTabs__itemLink:after{display:none}.fcfTabs__itemLink[class*=icon-]{padding:12px 15px 12px 41px}.fcfTabs__itemLink[class*=icon-]:before{color:rgba(30,30,30,.5);font-size:16px;left:15px;line-height:1;position:absolute;top:calc(50% - 8px);transition:color .3s}.fcfTabs__itemLink:hover,.fcfTabs__itemLink:hover:before{color:#2271b1}.fcfTabs__itemLink--active{pointer-events:none}.fcfTabs__itemLink--active:after{width:100%}.fcfTabs--lines .fcfTabs__itemLink--active{color:#2271b1;font-weight:500}.fcfTooltip{cursor:default;opacity:0;transition:opacity .3s}.fcfTooltip--open{opacity:1}.fcfTooltip__outer{bottom:calc(100% + 10px);z-index:10000}.fcfTooltip__outer,.fcfTooltip__outer:before{left:50%;position:absolute;transform:translateX(-50%)}.fcfTooltip__outer:before{border-color:#1e1e1e transparent transparent;border-style:solid;border-width:5px 5px 0;content:"";height:0;top:100%;width:0}.fcfTooltip__inner{background-color:#1e1e1e;max-width:calc(100vw - 40px);width:400px}.fcfTooltip__text{color:#fff;font-size:14px;font-weight:400;line-height:1.4285714286;padding:5px 10px;text-align:center}.fcfTooltip__buttons{display:flex;justify-content:center;padding:5px}.fcfTooltip__button{padding:5px}.fcfWidget+.fcfWidget{margin-top:30px}.fcfWidget__inner{background-color:#fff;border:1px solid #e2e4e7;border-radius:3px}.fcfWidget__header{align-items:center;border-bottom:1px solid #e2e4e7;display:flex;flex-wrap:wrap;justify-content:space-between}.fcfWidget__headerTitle{color:#1e1e1e;font-size:20px;font-weight:400;line-height:1.75;padding:12px 20px}.fcfWidget__headerButtons{padding:0 10px}.fcfWidget__contentPlaceholder{color:#1e1e1e;font-size:14px;font-weight:500;line-height:1.8571428571;padding:12px 20px;text-align:center}.fcfWidget__footer{border-top:1px solid #f0f0f0;padding:10px}.fcfWidget__buttons{display:flex;flex-wrap:wrap;justify-content:space-between}.fcfWidget__button{min-width:250px;padding:10px;position:relative}.fcfWidget__buttonIcon{position:absolute;top:50%;transform:translateY(-50%);z-index:1}.fcfWidget__buttonIcon:first-child{right:calc(100% + 10px)}.fcfWidget__buttonIcon:last-child{left:calc(100% + 10px)}.fcfWidget__buttonIconInner:before{display:block;font-size:20px;line-height:1}.fcfWidget__buttonIcon--loading .fcfWidget__buttonIconInner:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;animation:rotate 1s ease-out infinite;color:#1e1e1e;content:"\e925"!important;font-family:fcf-icomoon!important;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.fcfWidget__buttonIcon--success .fcfWidget__buttonIconInner:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#46b450;content:"\e907"!important;font-family:fcf-icomoon!important;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.fcfWidget__buttonIcon--error .fcfWidget__buttonIconInner:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#dc3232;content:"\e926"!important;font-family:fcf-icomoon!important;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.picker_wrapper.popup{background-color:#fff!important;border:1px solid #e2e4e7!important;bottom:auto!important;box-shadow:none!important;left:0!important;margin:0!important;right:auto!important;top:0!important}.picker_wrapper.popup .picker_arrow,.picker_wrapper.popup .picker_done{display:none!important}.fpf-image img{height:auto;max-width:100%}@media (max-width:1366px){.fcfSettings__column{width:100%}.fcfSettings__column+.fcfSettings__column{margin-top:10px}.fcfFields__items{padding:0}}@media (max-width:768px){.fcfOptions__columns{display:block}}@media (max-width:600px){.fcfFields__itemHeaderInner{display:block}.fcfFields__itemHeaderDesc{margin-top:-20px}.fcfOptions__boxesItem{width:100%}.fcfWidget__header{display:block}.fcfWidget__button{padding:10px 40px;width:100%}.fcfWidget__buttonIcon:first-child{right:0}.fcfWidget__buttonIcon:last-child{left:0}}@media (max-width:1024px),(min-width:1367px) and (max-width:1600px){.fcfOptions__row--sub{padding-left:0}.fcfOptions__columns--button{padding-right:35px}.fcfOptions__column{min-width:50%}}
|
1 |
+
@keyframes rotate{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@font-face{font-family:fcf-icomoon;font-style:normal;font-weight:400;src:url(../fonts/icons/icomoon.eot?ver=13405883);src:url(../fonts/icons/icomoon.woff?ver=13405883) format("woff"),url(../fonts/icons/icomoon.eot?ver=13405883#iefix) format("embedded-opentype"),url(../fonts/icons/icomoon.ttf?ver=13405883) format("truetype"),url(../fonts/icons/icomoon.svg?ver=13405883#icomoon) format("svg")}.icon-align-left:before{content:"\e900"!important}.icon-align-left:before,.icon-at-email:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:fcf-icomoon!important;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.icon-at-email:before{content:"\e92b"!important}.icon-bookmark:before{content:"\e920"!important}.icon-bookmark:before,.icon-brush:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:fcf-icomoon!important;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.icon-brush:before{content:"\e901"!important}.icon-calendar-alt:before{content:"\e902"!important}.icon-calendar-alt:before,.icon-caret-down:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:fcf-icomoon!important;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.icon-caret-down:before{content:"\e903"!important}.icon-caret-left:before{content:"\e904"!important}.icon-caret-left:before,.icon-caret-right:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:fcf-icomoon!important;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.icon-caret-right:before{content:"\e905"!important}.icon-caret-up:before{content:"\e906"!important}.icon-caret-up:before,.icon-check:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:fcf-icomoon!important;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.icon-check:before{content:"\e907"!important}.icon-check-double:before{content:"\e92a"!important}.icon-check-double:before,.icon-check-square:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:fcf-icomoon!important;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.icon-check-square:before{content:"\e908"!important}.icon-check-square-multi:before{content:"\e92f"!important}.icon-check-square-multi:before,.icon-clock:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:fcf-icomoon!important;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.icon-clock:before{content:"\e909"!important}.icon-code:before{content:"\e90a"!important}.icon-code:before,.icon-cog:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:fcf-icomoon!important;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.icon-cog:before{content:"\e90b"!important}.icon-cogs:before{content:"\e90c"!important}.icon-cogs:before,.icon-digits:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:fcf-icomoon!important;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.icon-digits:before{content:"\e929"!important}.icon-dollar-sign:before{content:"\e90d"!important}.icon-dollar-sign:before,.icon-ellipsis-v:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:fcf-icomoon!important;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.icon-ellipsis-v:before{content:"\e90e"!important}.icon-exchange-alt:before{content:"\e90f"!important}.icon-exchange-alt:before,.icon-exclamation-triangle:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:fcf-icomoon!important;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.icon-exclamation-triangle:before{content:"\e926"!important}.icon-eye:before{content:"\e910"!important}.icon-eye:before,.icon-font:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:fcf-icomoon!important;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.icon-font:before{content:"\e911"!important}.icon-heading:before{content:"\e912"!important}.icon-heading:before,.icon-heart:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:fcf-icomoon!important;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.icon-heart:before{content:"\e921"!important}.icon-image:before{content:"\e927"!important}.icon-image:before,.icon-images:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:fcf-icomoon!important;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.icon-images:before{content:"\e928"!important}.icon-link:before{content:"\e92d"!important}.icon-link:before,.icon-list-ul:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:fcf-icomoon!important;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.icon-list-ul:before{content:"\e913"!important}.icon-long-arrow-alt-down:before{content:"\e914"!important}.icon-long-arrow-alt-down:before,.icon-long-arrow-alt-left:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:fcf-icomoon!important;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.icon-long-arrow-alt-left:before{content:"\e915"!important}.icon-long-arrow-alt-right:before{content:"\e916"!important}.icon-long-arrow-alt-right:before,.icon-long-arrow-alt-up:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:fcf-icomoon!important;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.icon-long-arrow-alt-up:before{content:"\e917"!important}.icon-magic:before{content:"\e918"!important}.icon-magic:before,.icon-paint-brush:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:fcf-icomoon!important;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.icon-paint-brush:before{content:"\e92e"!important}.icon-palette:before{content:"\e919"!important}.icon-palette:before,.icon-paragraph:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:fcf-icomoon!important;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.icon-paragraph:before{content:"\e92c"!important}.icon-phone:before{content:"\e930"!important}.icon-phone:before,.icon-plugin-symbol:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:fcf-icomoon!important;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.icon-plugin-symbol:before{content:"\e923"!important}.icon-plus:before{content:"\e91a"!important}.icon-plus:before,.icon-question-circle:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:fcf-icomoon!important;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.icon-question-circle:before{content:"\e91b"!important}.icon-spinner:before{content:"\e925"!important}.icon-spinner:before,.icon-star:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:fcf-icomoon!important;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.icon-star:before{content:"\e922"!important}.icon-tasks:before{content:"\e91d"!important}.icon-tasks-alt:before,.icon-tasks:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:fcf-icomoon!important;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.icon-tasks-alt:before{content:"\e91c"!important}.icon-times:before{content:"\e91e"!important}.icon-times:before,.icon-trash-alt:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:fcf-icomoon!important;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.icon-trash-alt:before{content:"\e924"!important}.icon-upload:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;content:"\e91f"!important;font-family:fcf-icomoon!important;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.fcfSettings{overflow-x:hidden;width:100%}.fcfSettings,.fcfSettings *,.fcfSettings :after,.fcfSettings :before{box-shadow:none;box-sizing:border-box;text-decoration:none}.fcfSettings *,.fcfSettings :after,.fcfSettings :before{margin:0;padding:0}.fcfSettings a,.fcfSettings a:focus{box-shadow:none;outline:0}.fcfSettings__headline{color:#1e1e1e;font-size:24px;font-weight:400;line-height:1.375;padding:2px 0 2px 50px;position:relative}.fcfSettings__headline:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#2271b1;content:"\e923"!important;font-family:fcf-icomoon!important;font-size:30px;font-style:normal;font-variant:normal;font-weight:400;left:0;line-height:1;position:absolute;text-transform:none;top:50%;transform:translateY(-50%)}.fcfSettings__footer{font-size:14px;line-height:1.8571428571;padding:2px 0;text-align:center}.fcfSettings__footer a{color:inherit;font-weight:500}.fcfSettings__footerIcon{display:inline-block;padding:0 3px}.fcfSettings__footerIcon+.fcfSettings__footerIcon{margin-left:-6px}.fcfSettings__footerIcon--heart:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#dc3232;content:"\e921"!important;font-family:fcf-icomoon!important;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.fcfSettings__footerIcon--star:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#ffb900;content:"\e922"!important;font-family:fcf-icomoon!important;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.fcfSettings__columns{display:flex;flex-wrap:wrap;margin:0 -10px;width:calc(100% + 20px)}.fcfSettings__columns--reverse{flex-direction:row-reverse}.fcfSettings__columns--margin{margin-top:20px}.fcfSettings__column{padding:10px;width:40%}.fcfSettings__column--wide,.fcfSettings__column:first-child:last-child{flex:1}.fcf-admin-fields .form-row label,.fcf-admin-fields .form-row legend{display:block;margin-bottom:.5em}#your-profile .fcf-admin-fields label,#your-profile .fcf-admin-fields legend{font-size:13px}.fcf-admin-fields .form-row{float:none;width:100%}.fcfButton{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:1px solid transparent;color:#1e1e1e;cursor:pointer;display:inline-block;font-size:14px;font-weight:500;line-height:1.8571428571;outline:none;overflow:hidden;padding:7px 20px;position:relative;text-align:center;transition:color .3s;z-index:1}.fcfButton[disabled]{pointer-events:none}.fcfButton:after{content:"";height:100%;left:0;opacity:0;position:absolute;top:0;transition:opacity .3s;width:100%;z-index:-1}.fcfButton--bg:after{opacity:1}.fcfButton--bg:hover:after{opacity:0}.fcfButton--border:hover:after{opacity:1}.fcfButton--wide{width:100%}.fcfButton--small{padding:2px 20px}.fcfButton--bg{color:#fff}.fcfButton--border:hover{color:#fff!important}.fcfButton--green{border-color:#46b450}.fcfButton--green:after{background-color:#46b450}.fcfButton--green.fcfButton--bg:hover,.fcfButton--green.fcfButton--border{color:#46b450}.fcfButton--blue{border-color:#2271b1}.fcfButton--blue:after{background-color:#2271b1}.fcfButton--blue.fcfButton--bg:hover,.fcfButton--blue.fcfButton--border{color:#2271b1}.fcfButton--red{border-color:#dc3232}.fcfButton--red:after{background-color:#dc3232}.fcfButton--red.fcfButton--bg:hover,.fcfButton--red.fcfButton--border{color:#dc3232}.fcfFields__items{padding:10px}.fcfFields__item{margin:0;outline:none;padding:10px;pointer-events:none}.fcfFields__itemInner{background-color:#fff;border:1px solid #e2e4e7;pointer-events:auto}.fcfFields__itemHeader{position:relative}.fcfFields__itemHeader:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:rgba(30,30,30,.25);content:"\e90f"!important;font-family:fcf-icomoon!important;font-size:16px;font-style:normal;font-variant:normal;font-weight:400;left:20px;line-height:1;position:absolute;text-transform:none;top:50%;transform:translateY(-50%)}.fcfFields__itemHeaderOuter{align-items:center;display:flex;justify-content:space-between;padding:0 20px 0 56px}.fcfFields__itemHeaderInner{align-items:center;display:flex;flex:1;min-width:0}.fcfFields__itemHeaderTitle{color:#1e1e1e;flex:1;font-size:14px;font-weight:500;line-height:1.8571428571;overflow:hidden;padding:12px 20px 12px 0;text-overflow:ellipsis;white-space:nowrap}.fcfFields__item--disabled .fcfFields__itemHeaderTitle{color:rgba(30,30,30,.25);font-style:italic}.fcfFields__itemHeaderDesc{color:rgba(30,30,30,.5);font-size:12px;line-height:1.8571428571;padding:12px 0}.fcfFields__itemHeaderDesc--flag{padding-left:30px;position:relative}.fcfFields__itemHeaderDesc--flag:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#2271b1;content:"\e923"!important;font-family:fcf-icomoon!important;font-size:16px;font-style:normal;font-variant:normal;font-weight:400;left:0;line-height:1;margin-top:1px;position:absolute;text-transform:none;top:50%;transform:translateY(-50%)}.fcfFields__itemHeaderButtons{display:flex;padding-left:20px}.fcfFields__itemHeaderButton{position:relative}.fcfFields__itemHeaderButtonInner{background:none;border:0;cursor:pointer;height:36px;line-height:0;outline:0;padding:10px;position:relative;text-align:center;width:36px;z-index:1}.fcfFields__itemHeaderButtonInner:before{color:#1e1e1e;content:"";font-size:16px;line-height:1}.fcfFields__itemHeaderButtonInner:after{background-color:#f0f0f0;border-radius:50%;content:"";height:100%;left:0;opacity:0;position:absolute;top:0;transition:opacity .3s;width:100%;z-index:-1}.fcfFields__item--disabled .fcfFields__itemHeaderButtonInner:after{background-color:#fff}.fcfFields__itemHeaderButtonInner--open:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;content:"\e903"!important;font-family:fcf-icomoon!important;font-size:6px;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.fcfFields__itemHeaderButtonInner--close:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;content:"\e906"!important;font-family:fcf-icomoon!important;font-size:6px;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.fcfFields__itemHeaderButtonInner--remove:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#dc3232;content:"\e924"!important;font-family:fcf-icomoon!important;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.fcfFields__itemHeaderButtonInner:hover:after{opacity:1}.fcfFields__itemContent{border-top:1px solid #f0f0f0}.fcfFields__itemTabs{background-color:rgba(0,0,0,.025);border-bottom:1px solid #f0f0f0}.fcfOptions__rows{padding:5px 20px}.fcfOptions__column .fcfOptions__rows{padding:0}.fcfOptions__row{padding:5px 0}.fcfOptions__column .fcfOptions__row{padding:0}.fcfOptions__row--padding{padding:15px 0}.fcfOptions__row--sub{padding-left:30px}.fcfOptions__columns{display:flex;flex-wrap:wrap;position:relative}.fcfOptions__columns--button{padding-right:30px}.fcfOptions__columns--button+.fcfOptions__columns--button:before{background-color:#e2e4e7;content:"";height:1px;left:50%;position:absolute;top:0;transform:translateX(-50%);width:calc(100% - 20px)}.fcfOptions__column{flex:1;max-width:100%;padding:0 10px;position:relative}.fcfOptions__column--small{min-width:auto!important;padding:0!important;position:absolute;right:0;top:50%;transform:translateY(-50%)}.fcfOptions__column--center{padding:5px 0 10px;text-align:center}.fcfOptions__columnButton{background:none;border:0;cursor:pointer;font-size:0;margin-top:20px;outline:0;padding:10px;position:relative;z-index:1}.fcfOptions__columnButton:after{background-color:#f0f0f0;border-radius:50%;content:"";height:100%;left:0;opacity:0;position:absolute;top:0;transition:opacity .3s;width:100%;z-index:-1}.fcfOptions__columnButton:hover:after{opacity:1}.fcfOptions__columnButton--remove:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#dc3232;content:"\e91e"!important;font-family:fcf-icomoon!important;font-size:10px;font-style:normal;font-variant:normal;font-weight:400;line-height:1;text-transform:none}.fcfOptions__error,.fcfOptions__label,.fcfOptions__labelInner,.fcfOptions__rowLabel{color:#1e1e1e;display:block;font-size:14px;line-height:1.8571428571;padding:2px 0}.fcfOptions__label{display:inline-block;font-weight:500;position:relative;z-index:1}.fcfOptions__label--line{display:block;font-size:0;overflow:hidden}.fcfOptions__labelInner{background-color:#fff;color:#1e1e1e;display:inline-block;margin-left:20px;max-width:calc(100% - 30px);overflow:hidden;padding:0 10px;text-overflow:ellipsis;white-space:nowrap}.fcfOptions__labelInner:before{background-color:hsla(216,9%,90%,.75);content:"";height:1px;left:0;position:absolute;top:50%;width:100%;z-index:-1}.fcfOptions__error{background-color:#dc3232;color:#fff;font-weight:500;margin-bottom:10px;padding-left:36px;padding-right:10px;position:relative}.fcfOptions__checkbox~.fcfOptions__error{margin-top:5px}.fcfOptions__error:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;content:"\e926"!important;font-family:fcf-icomoon!important;font-size:16px;font-style:normal;font-variant:normal;font-weight:400;left:10px;line-height:1;position:absolute;text-transform:none;top:50%;transform:translateY(-50%)}.fcfOptions__labelHelp,.fcfOptions__labelHelpIcon{display:inline-block;position:relative}.fcfOptions__labelHelpIcon{padding:0 10px;z-index:1}.fcfOptions__labelHelpIcon:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#2271b1;content:"\e91b"!important;display:block;font-family:fcf-icomoon!important;font-size:14px;font-style:normal;font-variant:normal;font-weight:400;line-height:1.8571428571;text-transform:none;transition:transform .3s}.fcfOptions__labelHelpIcon:hover:before{transform:scale(1.5)}.fcfOptions__input,.fcfOptions__select,.fcfOptions__textarea{margin-bottom:10px}.fcfSettings .fcfOptions__input,.fcfSettings .fcfOptions__textarea{border:1px solid #e2e4e7;border-radius:0;color:#1e1e1e;display:block;font-size:14px;line-height:1.8571428571;max-width:none;padding:7px 10px;width:100%}.fcfSettings .fcfOptions__input:focus,.fcfSettings .fcfOptions__textarea:focus{border-color:#e2e4e7;box-shadow:none;color:#1e1e1e;outline:0}.fcfSettings .fcfOptions__input[disabled],.fcfSettings .fcfOptions__textarea[disabled]{background-color:hsla(216,9%,90%,.5);border-color:#e2e4e7;color:#1e1e1e;text-shadow:none}.fcfSettings .fcfOptions__checkbox,.fcfSettings .fcfOptions__radio{display:none}.fcfOptions__checkbox+.fcfOptions__label,.fcfOptions__radio+.fcfOptions__label{padding-left:30px;transition:color .3s}.fcfOptions__checkbox+.fcfOptions__label:after,.fcfOptions__checkbox+.fcfOptions__label:before,.fcfOptions__radio+.fcfOptions__label:after,.fcfOptions__radio+.fcfOptions__label:before{content:"";height:20px;left:0;position:absolute;top:calc(50% - 10px);width:20px}.fcfOptions__checkbox+.fcfOptions__label:before,.fcfOptions__radio+.fcfOptions__label:before{border:1px solid #e2e4e7}.fcfOptions__checkbox+.fcfOptions__label:after,.fcfOptions__radio+.fcfOptions__label:after{color:#46b450;font-size:10px;line-height:2;text-align:center;transform:scale(0);transition:transform .3s}.fcfOptions__checkbox:hover+.fcfOptions__label,.fcfOptions__radio:hover+.fcfOptions__label{color:rgba(30,30,30,.5)}.fcfOptions__checkbox[disabled]+.fcfOptions__label:before,.fcfOptions__radio[disabled]+.fcfOptions__label:before{background-color:hsla(216,9%,90%,.5);border-color:#e2e4e7}.fcfOptions__checkbox+.fcfOptions__label:after{content:"\e907"!important}.fcfOptions__checkbox+.fcfOptions__label:after,.fcfOptions__radio+.fcfOptions__label:after{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:fcf-icomoon!important;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.fcfOptions__radio+.fcfOptions__label:after{content:"\e91e"!important}.fcfOptions__checkbox[checked]+.fcfOptions__label:after,.fcfOptions__radio[checked]+.fcfOptions__label:after{transform:scale(1)}.fcfOptions__color,.fcfOptions__media{align-items:center;display:flex;margin-bottom:10px;min-height:42px}.fcfOptions__colorInner,.fcfOptions__mediaInner{width:100%}.fcfOptions__mediaImage{border:1px solid #e2e4e7;display:block;margin:0 auto 10px;max-height:100px;max-width:100px}.fcfOptions__colorPreview{display:block;height:100px;margin:0 auto 10px;width:100px}.fcfOptions__colorButton,.fcfOptions__mediaButton{width:100%}.fcfOptions__boxes{padding-bottom:10px}.fcfOptions__boxesTitle{background-color:#e2e4e7;font-size:14px;line-height:1.4285714286;margin:10px 0;padding:5px 10px;text-align:center}.fcfOptions__boxesTitle:first-child{margin-top:0}.fcfOptions__boxesItems{display:flex;flex-wrap:wrap;margin:-5px}.fcfOptions__boxesItem{padding:5px;width:50%}.fcfSettings .fcfOptions__boxesItemInput{display:none}.fcfOptions__boxesItemLabel{align-items:center;border:1px solid #e2e4e7;color:#1e1e1e;display:flex;font-size:14px;justify-content:center;line-height:1.4285714286;min-height:100%;padding:10px 10px 10px 42px;position:relative;text-align:center;transition:color .3s}.fcfOptions__boxesItemLabel:hover{color:rgba(30,30,30,.5)}.fcfOptions__boxesItemLabel:before{color:rgba(30,30,30,.75)!important;font-size:22px;left:10px;line-height:1;position:absolute;top:calc(50% - 11px)}.fcfOptions__boxesItemLabel:after{border:2px solid #2271b1;content:"";height:calc(100% + 2px);left:-1px;opacity:0;position:absolute;top:-1px;transition:opacity .3s;width:calc(100% + 2px)}.fcfOptions__boxesItemInput:checked+.fcfOptions__boxesItemLabel{color:#1e1e1e}.fcfOptions__boxesItemInput:checked+.fcfOptions__boxesItemLabel:after{opacity:1}.fcfOptions__info{margin:0 -20px;padding:10px 0}.fcfOptions__row:first-child .fcfOptions__info{margin-top:-20px}.fcfOptions__row:last-child .fcfOptions__info{margin-bottom:-20px}.fcfOptions__infoInner{background-color:#2271b1;color:#fff;font-size:14px;line-height:1.8571428571;padding:12px 20px}.fcfOptions__info--green .fcfOptions__infoInner{background-color:#46b450}.fcfOptions__info--yellow .fcfOptions__infoInner{background-color:#dba617}.fcfOptions__infoInner a{color:inherit;display:inline-block;font-weight:500;position:relative;transition:opacity .3s;white-space:nowrap}.fcfOptions__infoInner a:hover{opacity:.5}.fcfOptions__infoInner a:after{background-color:#fff;bottom:0;content:"";height:1px;left:0;position:absolute;width:100%}.fcfOptions__infoInner a.fcfArrowLink{letter-spacing:1px;opacity:1;padding-right:18px;text-transform:uppercase}.fcfOptions__infoInner a.fcfArrowLink:after{transition:width .3s;width:0}.fcfOptions__infoInner a.fcfArrowLink:hover:after{width:100%}.fcfOptions__infoInner a.fcfArrowLink:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;content:"\e916"!important;font-family:fcf-icomoon!important;font-size:6px;font-style:normal;font-variant:normal;font-weight:400;line-height:1;position:absolute;right:0;text-transform:none;top:50%;transform:translateY(-50%)}.fcfOptions__infoInner p{font-size:14px;line-height:1.8571428571}.fcfOptions__infoInner p strong{font-size:20px;font-weight:400;line-height:1.75}.fcfOptions__infoInner ul{padding-left:10px}.fcfOptions__infoInner ul li{padding-left:20px;position:relative}.fcfOptions__infoInner ul li:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;content:"\e907"!important;font-family:fcf-icomoon!important;font-size:10px;font-style:normal;font-variant:normal;font-weight:400;left:0;line-height:1;position:absolute;text-transform:none;top:50%;transform:translateY(-50%)}.fcfOptions__infoInner p,.fcfOptions__infoInner ul{margin-top:10px}.fcfOptions__infoInner p:first-child,.fcfOptions__infoInner ul:first-child{margin-top:0}.fcfSelect__control{background:none!important;border:1px solid #e2e4e7!important;border-radius:0!important;box-shadow:none!important;min-height:42px!important}.fcfSelect__indicators{border-left:1px solid #e2e4e7!important;position:relative;width:42px}.fcfSelect__indicators:after{color:#1e1e1e;content:"\e903"!important;font-size:6px;left:50%;line-height:1;position:absolute;top:50%;transform:translate(-50%,-50%)}.fcfSelect__control--menu-is-open .fcfSelect__indicators:after,.fcfSelect__indicators:after{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:fcf-icomoon!important;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.fcfSelect__control--menu-is-open .fcfSelect__indicators:after{content:"\e906"!important}.fcfSelect__indicators *{display:none!important}.fcfSelect__value-container{padding:4px 10px!important}.fcfSelect__input input{box-shadow:none!important;color:#1e1e1e!important;font-size:14px!important;line-height:1.5714285714!important;margin:0 2px!important;min-height:auto!important}.fcfSelect__single-value{max-width:calc(100% - 20px)!important}.fcfSelect__multi-value{background-color:#e2e4e7!important;border-radius:0!important}.fcfSelect__multi-value__label{color:#1e1e1e!important;font-size:12px!important;line-height:2!important;padding:2px 0 2px 10px!important}.fcfSelect__multi-value__remove{background:none!important;cursor:pointer;position:relative;width:30px}.fcfSelect__multi-value__remove:after{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#1e1e1e;content:"\e91e"!important;font-family:fcf-icomoon!important;font-size:10px;font-style:normal;font-variant:normal;font-weight:400;left:50%;line-height:1;position:absolute;text-transform:none;top:50%;transform:translate(-50%,-50%);transition:color .3s}.fcfSelect__multi-value__remove:hover:after{color:#dc3232}.fcfSelect__multi-value__remove *{display:none!important}.fcfSelect__menu{border-radius:0!important;box-shadow:none!important;margin:0!important;z-index:10!important}.fcfSelect__menu-notice{background-color:#1e1e1e!important;color:#fff!important;font-size:14px!important;line-height:1.8571428571!important;padding:7px 10px!important}.fcfSelect__menu-list{padding:0!important}.fcfSelect__option{background-color:#1e1e1e!important;border:1px solid #1e1e1e;color:#fff!important;cursor:pointer!important;font-size:14px!important;line-height:1.8571428571!important;padding:7px 10px!important;position:relative;transition:background-color .3s}.fcfSelect__option+.fcfSelect__option{border-top:1px solid hsla(0,0%,100%,.25);margin-top:-1px}.fcfSelect__option--is-focused{background-color:#2271b1!important}.fcfSelect__option--is-selected{background-color:#1e1e1e!important;cursor:auto!important;padding-right:42px!important}.fcfSelect__option--is-selected:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#46b450;content:"\e907"!important;font-family:fcf-icomoon!important;font-size:16px;font-style:normal;font-variant:normal;font-weight:400;line-height:1;position:absolute;right:0;text-align:center;text-transform:none;top:50%;transform:translateY(-50%);width:42px}.fcfTabs__items{display:flex;flex-wrap:wrap;margin:0;padding:0}.fcfTabs--lines .fcfTabs__items{margin-bottom:-10px;margin-top:10px}.fcfTabs__item{border-bottom:1px solid #f0f0f0;margin:0 0 -1px;padding:0;position:relative}.fcfTabs--lines .fcfTabs__item{padding-right:3px}.fcfTabs--lines .fcfTabs__item:after{background-color:#2271b1;border-radius:50%;content:"";height:6px;position:absolute;right:0;top:calc(50% - 3px);width:6px}.fcfTabs__item:last-child:after{display:none}.fcfTabs__itemLink{color:#1e1e1e;display:block;font-size:16px;font-weight:500;line-height:1.75;padding:12px 20px;position:relative;text-align:center;transition:color .3s}.fcfTabs--small .fcfTabs__itemLink{font-size:14px}.fcfTabs--lines .fcfTabs__itemLink{font-weight:400;padding:2px 20px}.fcfTabs__itemLink:after{background-color:#2271b1;bottom:0;content:"";height:3px;left:50%;position:absolute;transform:translateX(-50%);transition:width .3s;width:0}.fcfTabs--lines .fcfTabs__itemLink:after{display:none}.fcfTabs__itemLink[class*=icon-]{padding:12px 15px 12px 41px}.fcfTabs__itemLink[class*=icon-]:before{color:rgba(30,30,30,.5);font-size:16px;left:15px;line-height:1;position:absolute;top:calc(50% - 8px);transition:color .3s}.fcfTabs__itemLink:hover,.fcfTabs__itemLink:hover:before{color:#2271b1}.fcfTabs__itemLink--active{pointer-events:none}.fcfTabs__itemLink--active:after{width:100%}.fcfTabs--lines .fcfTabs__itemLink--active{color:#2271b1;font-weight:500}.fcfTooltip{cursor:default;opacity:0;transition:opacity .3s}.fcfTooltip--open{opacity:1}.fcfTooltip__outer{bottom:calc(100% + 10px);z-index:10000}.fcfTooltip__outer,.fcfTooltip__outer:before{left:50%;position:absolute;transform:translateX(-50%)}.fcfTooltip__outer:before{border-color:#1e1e1e transparent transparent;border-style:solid;border-width:5px 5px 0;content:"";height:0;top:100%;width:0}.fcfTooltip__inner{background-color:#1e1e1e;max-width:calc(100vw - 40px);width:400px}.fcfTooltip__text{color:#fff;font-size:14px;font-weight:400;line-height:1.4285714286;padding:5px 10px;text-align:center}.fcfTooltip__buttons{display:flex;justify-content:center;padding:5px}.fcfTooltip__button{padding:5px}.fcfWidget+.fcfWidget{margin-top:30px}.fcfWidget__inner{background-color:#fff;border:1px solid #e2e4e7;border-radius:3px}.fcfWidget__header{align-items:center;border-bottom:1px solid #e2e4e7;display:flex;flex-wrap:wrap;justify-content:space-between}.fcfWidget__headerTitle{color:#1e1e1e;font-size:20px;font-weight:400;line-height:1.75;padding:12px 20px}.fcfWidget__headerButtons{padding:0 10px}.fcfWidget__contentPlaceholder{color:#1e1e1e;font-size:14px;font-weight:500;line-height:1.8571428571;padding:12px 20px;text-align:center}.fcfWidget__footer{border-top:1px solid #f0f0f0;padding:10px}.fcfWidget__buttons{display:flex;flex-wrap:wrap;justify-content:space-between}.fcfWidget__button{min-width:250px;padding:10px;position:relative}.fcfWidget__buttonIcon{position:absolute;top:50%;transform:translateY(-50%);z-index:1}.fcfWidget__buttonIcon:first-child{right:calc(100% + 10px)}.fcfWidget__buttonIcon:last-child{left:calc(100% + 10px)}.fcfWidget__buttonIconInner:before{display:block;font-size:20px;line-height:1}.fcfWidget__buttonIcon--loading .fcfWidget__buttonIconInner:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;animation:rotate 1s ease-out infinite;color:#1e1e1e;content:"\e925"!important;font-family:fcf-icomoon!important;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.fcfWidget__buttonIcon--success .fcfWidget__buttonIconInner:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#46b450;content:"\e907"!important;font-family:fcf-icomoon!important;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.fcfWidget__buttonIcon--error .fcfWidget__buttonIconInner:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#dc3232;content:"\e926"!important;font-family:fcf-icomoon!important;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.picker_wrapper.popup{background-color:#fff!important;border:1px solid #e2e4e7!important;bottom:auto!important;box-shadow:none!important;left:0!important;margin:0!important;right:auto!important;top:0!important}.picker_wrapper.popup .picker_arrow,.picker_wrapper.popup .picker_done{display:none!important}.fpf-image img{height:auto;max-width:100%}@media (max-width:1366px){.fcfSettings__column{width:100%}.fcfSettings__column+.fcfSettings__column{margin-top:10px}.fcfFields__items{padding:0}}@media (max-width:768px){.fcfOptions__columns{display:block}}@media (max-width:600px){.fcfFields__itemHeaderInner{display:block}.fcfFields__itemHeaderDesc{margin-top:-20px}.fcfOptions__boxesItem{width:100%}.fcfWidget__header{display:block}.fcfWidget__button{padding:10px 40px;width:100%}.fcfWidget__buttonIcon:first-child{right:0}.fcfWidget__buttonIcon:last-child{left:0}}@media (max-width:1024px),(min-width:1367px) and (max-width:1600px){.fcfOptions__row--sub{padding-left:0}.fcfOptions__columns--button{padding-right:35px}.fcfOptions__column{min-width:50%}}
|
assets/css/new-front.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
@keyframes rotate{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@font-face{font-family:fcf-icomoon;font-style:normal;font-weight:400;src:url(../fonts/icons/icomoon.eot?ver=
|
1 |
+
@keyframes rotate{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@font-face{font-family:fcf-icomoon;font-style:normal;font-weight:400;src:url(../fonts/icons/icomoon.eot?ver=12385557);src:url(../fonts/icons/icomoon.woff?ver=12385557) format("woff"),url(../fonts/icons/icomoon.eot?ver=12385557#iefix) format("embedded-opentype"),url(../fonts/icons/icomoon.ttf?ver=12385557) format("truetype"),url(../fonts/icons/icomoon.svg?ver=12385557#icomoon) format("svg")}.icon-align-left:before{content:"\e900"!important}.icon-align-left:before,.icon-at-email:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:fcf-icomoon!important;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.icon-at-email:before{content:"\e92b"!important}.icon-bookmark:before{content:"\e920"!important}.icon-bookmark:before,.icon-brush:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:fcf-icomoon!important;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.icon-brush:before{content:"\e901"!important}.icon-calendar-alt:before{content:"\e902"!important}.icon-calendar-alt:before,.icon-caret-down:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:fcf-icomoon!important;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.icon-caret-down:before{content:"\e903"!important}.icon-caret-left:before{content:"\e904"!important}.icon-caret-left:before,.icon-caret-right:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:fcf-icomoon!important;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.icon-caret-right:before{content:"\e905"!important}.icon-caret-up:before{content:"\e906"!important}.icon-caret-up:before,.icon-check:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:fcf-icomoon!important;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.icon-check:before{content:"\e907"!important}.icon-check-double:before{content:"\e92a"!important}.icon-check-double:before,.icon-check-square:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:fcf-icomoon!important;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.icon-check-square:before{content:"\e908"!important}.icon-check-square-multi:before{content:"\e92f"!important}.icon-check-square-multi:before,.icon-clock:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:fcf-icomoon!important;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.icon-clock:before{content:"\e909"!important}.icon-code:before{content:"\e90a"!important}.icon-code:before,.icon-cog:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:fcf-icomoon!important;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.icon-cog:before{content:"\e90b"!important}.icon-cogs:before{content:"\e90c"!important}.icon-cogs:before,.icon-digits:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:fcf-icomoon!important;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.icon-digits:before{content:"\e929"!important}.icon-dollar-sign:before{content:"\e90d"!important}.icon-dollar-sign:before,.icon-ellipsis-v:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:fcf-icomoon!important;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.icon-ellipsis-v:before{content:"\e90e"!important}.icon-exchange-alt:before{content:"\e90f"!important}.icon-exchange-alt:before,.icon-exclamation-triangle:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:fcf-icomoon!important;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.icon-exclamation-triangle:before{content:"\e926"!important}.icon-eye:before{content:"\e910"!important}.icon-eye:before,.icon-font:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:fcf-icomoon!important;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.icon-font:before{content:"\e911"!important}.icon-heading:before{content:"\e912"!important}.icon-heading:before,.icon-heart:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:fcf-icomoon!important;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.icon-heart:before{content:"\e921"!important}.icon-image:before{content:"\e927"!important}.icon-image:before,.icon-images:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:fcf-icomoon!important;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.icon-images:before{content:"\e928"!important}.icon-link:before{content:"\e92d"!important}.icon-link:before,.icon-list-ul:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:fcf-icomoon!important;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.icon-list-ul:before{content:"\e913"!important}.icon-long-arrow-alt-down:before{content:"\e914"!important}.icon-long-arrow-alt-down:before,.icon-long-arrow-alt-left:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:fcf-icomoon!important;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.icon-long-arrow-alt-left:before{content:"\e915"!important}.icon-long-arrow-alt-right:before{content:"\e916"!important}.icon-long-arrow-alt-right:before,.icon-long-arrow-alt-up:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:fcf-icomoon!important;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.icon-long-arrow-alt-up:before{content:"\e917"!important}.icon-magic:before{content:"\e918"!important}.icon-magic:before,.icon-paint-brush:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:fcf-icomoon!important;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.icon-paint-brush:before{content:"\e92e"!important}.icon-palette:before{content:"\e919"!important}.icon-palette:before,.icon-paragraph:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:fcf-icomoon!important;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.icon-paragraph:before{content:"\e92c"!important}.icon-phone:before{content:"\e930"!important}.icon-phone:before,.icon-plugin-symbol:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:fcf-icomoon!important;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.icon-plugin-symbol:before{content:"\e923"!important}.icon-plus:before{content:"\e91a"!important}.icon-plus:before,.icon-question-circle:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:fcf-icomoon!important;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.icon-question-circle:before{content:"\e91b"!important}.icon-spinner:before{content:"\e925"!important}.icon-spinner:before,.icon-star:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:fcf-icomoon!important;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.icon-star:before{content:"\e922"!important}.icon-tasks:before{content:"\e91d"!important}.icon-tasks-alt:before,.icon-tasks:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:fcf-icomoon!important;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.icon-tasks-alt:before{content:"\e91c"!important}.icon-times:before{content:"\e91e"!important}.icon-times:before,.icon-trash-alt:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:fcf-icomoon!important;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.icon-trash-alt:before{content:"\e924"!important}.icon-upload:before{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;content:"\e91f"!important;font-family:fcf-icomoon!important;font-style:normal;font-variant:normal;font-weight:400;text-transform:none}.picker_wrapper.popup{background-color:#fff!important;border:1px solid #e2e4e7!important;bottom:auto!important;box-shadow:none!important;left:0!important;margin:0!important;right:auto!important;top:0!important}.picker_wrapper.popup .picker_arrow,.picker_wrapper.popup .picker_done{display:none!important}.fpf-image img{height:auto;max-width:100%}.fcf-admin-fields .form-row label,.fcf-admin-fields .form-row legend{display:block;margin-bottom:.5em}#your-profile .fcf-admin-fields label,#your-profile .fcf-admin-fields legend{font-size:13px}.fcf-admin-fields .form-row{float:none;width:100%}
|
assets/js/new-admin.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1 |
/*! For license information please see new-admin.js.LICENSE.txt */
|
2 |
-
!function(){var e,t={669:function(e,t,n){e.exports=n(609)},592:function(e,t,n){"use strict";var r=n(867),o=n(26),i=n(372),a=n(327),l=n(97),u=n(109),s=n(985),c=n(61);e.exports=function(e){return new Promise((function(t,n){var f=e.data,d=e.headers;r.isFormData(f)&&delete d["Content-Type"];var p=new XMLHttpRequest;if(e.auth){var m=e.auth.username||"",h=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";d.Authorization="Basic "+btoa(m+":"+h)}var v=l(e.baseURL,e.url);if(p.open(e.method.toUpperCase(),a(v,e.params,e.paramsSerializer),!0),p.timeout=e.timeout,p.onreadystatechange=function(){if(p&&4===p.readyState&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in p?u(p.getAllResponseHeaders()):null,i={data:e.responseType&&"text"!==e.responseType?p.response:p.responseText,status:p.status,statusText:p.statusText,headers:r,config:e,request:p};o(t,n,i),p=null}},p.onabort=function(){p&&(n(c("Request aborted",e,"ECONNABORTED",p)),p=null)},p.onerror=function(){n(c("Network Error",e,null,p)),p=null},p.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(c(t,e,"ECONNABORTED",p)),p=null},r.isStandardBrowserEnv()){var g=(e.withCredentials||s(v))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;g&&(d[e.xsrfHeaderName]=g)}if("setRequestHeader"in p&&r.forEach(d,(function(e,t){void 0===f&&"content-type"===t.toLowerCase()?delete d[t]:p.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(p.withCredentials=!!e.withCredentials),e.responseType)try{p.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&p.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){p&&(p.abort(),n(e),p=null)})),f||(f=null),p.send(f)}))}},609:function(e,t,n){"use strict";var r=n(867),o=n(849),i=n(321),a=n(185);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 u=l(n(655));u.Axios=i,u.create=function(e){return l(a(u.defaults,e))},u.Cancel=n(263),u.CancelToken=n(972),u.isCancel=n(502),u.all=function(e){return Promise.all(e)},u.spread=n(713),u.isAxiosError=n(268),e.exports=u,e.exports.default=u},263: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},972:function(e,t,n){"use strict";var r=n(263);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},502:function(e){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},321:function(e,t,n){"use strict";var r=n(867),o=n(327),i=n(782),a=n(572),l=n(185);function u(e){this.defaults=e,this.interceptors={request:new i,response:new i}}u.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=[a,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));t.length;)n=n.then(t.shift(),t.shift());return n},u.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){u.prototype[e]=function(t,n){return this.request(l(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){u.prototype[e]=function(t,n,r){return this.request(l(r||{},{method:e,url:t,data:n}))}})),e.exports=u},782:function(e,t,n){"use strict";var r=n(867);function o(){this.handlers=[]}o.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),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},97:function(e,t,n){"use strict";var r=n(793),o=n(303);e.exports=function(e,t){return e&&!r(t)?o(e,t):t}},61:function(e,t,n){"use strict";var r=n(481);e.exports=function(e,t,n,o,i){var a=new Error(e);return r(a,t,n,o,i)}},572:function(e,t,n){"use strict";var r=n(867),o=n(527),i=n(502),a=n(655);function l(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return l(e),e.headers=e.headers||{},e.data=o(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(t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(l(e),t&&t.response&&(t.response.data=o(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},481: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}},185:function(e,t,n){"use strict";var r=n(867);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 u(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 s(o){r.isUndefined(t[o])?r.isUndefined(e[o])||(n[o]=u(void 0,e[o])):n[o]=u(e[o],t[o])}r.forEach(o,(function(e){r.isUndefined(t[e])||(n[e]=u(void 0,t[e]))})),r.forEach(i,s),r.forEach(a,(function(o){r.isUndefined(t[o])?r.isUndefined(e[o])||(n[o]=u(void 0,e[o])):n[o]=u(void 0,t[o])})),r.forEach(l,(function(r){r in t?n[r]=u(e[r],t[r]):r in e&&(n[r]=u(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,s),n}},26:function(e,t,n){"use strict";var r=n(61);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)}},527:function(e,t,n){"use strict";var r=n(867);e.exports=function(e,t,n){return r.forEach(n,(function(n){e=n(e,t)})),e}},655:function(e,t,n){"use strict";var r=n(155),o=n(867),i=n(16),a={"Content-Type":"application/x-www-form-urlencoded"};function l(e,t){!o.isUndefined(e)&&o.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var u,s={adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==r&&"[object process]"===Object.prototype.toString.call(r))&&(u=n(592)),u),transformRequest:[function(e,t){return i(t,"Accept"),i(t,"Content-Type"),o.isFormData(e)||o.isArrayBuffer(e)||o.isBuffer(e)||o.isStream(e)||o.isFile(e)||o.isBlob(e)?e:o.isArrayBufferView(e)?e.buffer:o.isURLSearchParams(e)?(l(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):o.isObject(e)?(l(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300}};s.headers={common:{Accept:"application/json, text/plain, */*"}},o.forEach(["delete","get","head"],(function(e){s.headers[e]={}})),o.forEach(["post","put","patch"],(function(e){s.headers[e]=o.merge(a)})),e.exports=s},849: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)}}},327:function(e,t,n){"use strict";var r=n(867);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}},303:function(e){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},372:function(e,t,n){"use strict";var r=n(867);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(){}}},793:function(e){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},268:function(e){"use strict";e.exports=function(e){return"object"==typeof e&&!0===e.isAxiosError}},985:function(e,t,n){"use strict";var r=n(867);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}},16:function(e,t,n){"use strict";var r=n(867);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},109:function(e,t,n){"use strict";var r=n(867),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}},713:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},867:function(e,t,n){"use strict";var r=n(849),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 u(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function s(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:u,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:s,isStream:function(e){return l(e)&&s(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){u(t[r])&&u(n)?t[r]=e(t[r],n):u(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.replace(/^\s*/,"").replace(/\s*$/,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},402:function(e,t,n){"use strict";var r={};n.r(r),n.d(r,{CheckboxField:function(){return q},CheckboxListField:function(){return ee},ColorField:function(){return Se},GroupField:function(){return De},HiddenField:function(){return je},ImageField:function(){return qe},InfoAdvField:function(){return et},InfoField:function(){return ut},InfoNoticeField:function(){return vt},NumberField:function(){return Ot},RadioField:function(){return Nt},RadioListField:function(){return Vt},RepeaterField:function(){return Yt},SelectField:function(){return zi},SelectMultiField:function(){return Ki},TextField:function(){return da},TextareaField:function(){return oa}});var o=n(294),i=n(935);function a(e){var t=e.button_classes,n=e.button_alignment,r=e.button_label,i=e.loading_type,a=e.loading_message,l=e.tooltip_text,u=e.settings,s=e.onSubmit,c=(e.loading_status||"").replace("".concat(i,"_"),""),f="loading"===(e.loading_status||"").substr(-7);return o.createElement(o.Fragment,null,"left"===n?l?o.createElement(h,{text:l,onAccept:s,settings:u},o.createElement("button",{type:"button",className:t,disabled:f},r)):o.createElement("button",{type:"button",className:t,onClick:s,disabled:f},r):null,"loading"===c?o.createElement("div",{className:"fcfWidget__buttonIcon fcfWidget__buttonIcon--loading"},o.createElement("div",{className:"fcfWidget__buttonIconInner"})):null,"success"===c?o.createElement("div",{className:"fcfWidget__buttonIcon fcfWidget__buttonIcon--success"},o.createElement("div",{className:"fcfWidget__buttonIconInner"})):null,"error"===c?o.createElement("div",{className:"fcfWidget__buttonIcon fcfWidget__buttonIcon--error"},o.createElement(h,{text:a||u.i18n.alert_failed_save,is_open:!0,settings:u},o.createElement("div",{className:"fcfWidget__buttonIconInner"}))):null,"right"===n?l?o.createElement(h,{text:l,onAccept:s,settings:u},o.createElement("button",{type:"button",className:t,disabled:f},r)):o.createElement("button",{type:"button",className:t,onClick:s,disabled:f},r):null)}function l(e){var t=e.field_data,n=e.unique_id,r=e.is_group_label,i=e.settings,a=r?"".concat(t.label,":"):t.label;return r?o.createElement("div",{className:"fcfOptions__rowLabel"},a,t.label_tooltip?o.createElement("span",{className:"fcfOptions__labelHelp"},o.createElement(h,{text:t.label_tooltip,button_url:t.label_tooltip_url,settings:i},o.createElement("span",{className:"fcfOptions__labelHelpIcon"}))):null):o.createElement("label",{className:"fcfOptions__label",htmlFor:n},a,t.label_tooltip?o.createElement("span",{className:"fcfOptions__labelHelp"},o.createElement(h,{text:t.label_tooltip,button_url:t.label_tooltip_url,settings:i},o.createElement("span",{className:"fcfOptions__labelHelpIcon"}))):null)}function u(e){return(u="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)}function s(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 c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(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=m(e);if(t){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function d(e,t){if(t&&("object"===u(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return p(e)}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h=function(e){!function(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}}),t&&c(e,t)}(a,e);var t,n,r,i=f(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).state={text:e.text,button_url:e.button_url,status:{is_open:!1,is_visible:!1},settings:e.settings,events:{onClose:t.closePopup.bind(p(t)),onAccept:e.onAccept},refs:{wrapper:o.createRef()}},t._isMounted=!1,t}return t=a,(n=[{key:"render",value:function(){var e=this.state,t=e.text,n=e.button_url,r=e.status,i=e.settings,a=e.events,l=e.refs,u=o.Children.toArray(this.props.children);return o.createElement(o.Fragment,null,o.cloneElement(u[0],{onClick:this.openPopup.bind(this)}),r.is_open?o.createElement("div",{className:"fcfTooltip ".concat(r.is_visible?"fcfTooltip--open":"")},o.createElement("div",{className:"fcfTooltip__outer"},o.createElement("div",{className:"fcfTooltip__inner",ref:l.wrapper,onClick:this.preventClosePopup.bind(this)},o.createElement("div",{className:"fcfTooltip__text"},t),n?o.createElement("ul",{className:"fcfTooltip__buttons"},o.createElement("li",{className:"fcfTooltip__button"},o.createElement("a",{href:n,target:"_blank",className:"fcfButton fcfButton--small fcfButton--border fcfButton--blue"},i.i18n.button_read_more))):null,a.onAccept?o.createElement("ul",{className:"fcfTooltip__buttons"},o.createElement("li",{className:"fcfTooltip__button"},o.createElement("button",{type:"button",className:"fcfButton fcfButton--small fcfButton--border fcfButton--green",onClick:this.acceptPopup.bind(this)},i.i18n.button_yes)),o.createElement("li",{className:"fcfTooltip__button"},o.createElement("button",{type:"button",className:"fcfButton fcfButton--small fcfButton--border fcfButton--red",onClick:this.closePopup.bind(this)},i.i18n.button_no))):null))):null)}},{key:"componentDidMount",value:function(){this._isMounted=!0,this.props.is_open&&setTimeout(this.openPopup.bind(this),0)}},{key:"componentWillUnmount",value:function(){this._isMounted=!1}},{key:"openPopup",value:function(e){e&&(e.preventDefault(),e.stopPropagation());var t=this.state.status;t.is_open||(t.is_open=!0,t.is_visible=!1,this._isMounted&&this.setState({status:t}),this.loadPopup())}},{key:"loadPopup",value:function(){var e=this,t=this.state.events;window.addEventListener("click",t.onClose),window.dispatchEvent(new CustomEvent("fcf-popup-open")),setTimeout((function(){window.addEventListener("fcf-popup-open",t.onClose),e.setStyles()}),0)}},{key:"acceptPopup",value:function(e){e.preventDefault(),e.stopPropagation(),this.state.events.onAccept(),this.closePopup()}},{key:"closePopup",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;null!==e&&e.stopPropagation();var t=this.state,n=t.status,r=t.events;n.is_open=!1,this._isMounted&&this.setState({status:n}),window.removeEventListener("click",r.onClose),window.removeEventListener("fcf-popup-open",r.onClose)}},{key:"preventClosePopup",value:function(e){e.stopPropagation()}},{key:"setStyles",value:function(){var e=this.state,t=e.refs,n=e.status;if(t.wrapper.current){var r=document.querySelector(".fcfSettings").getBoundingClientRect(),o=t.wrapper.current.getBoundingClientRect();t.wrapper.current.style.marginLeft="";var i=r.left,a=r.left+r.width,l=o.left,u=o.left+o.width;l<i?t.wrapper.current.style.marginLeft="".concat(2*(i-l),"px"):u>a&&(t.wrapper.current.style.marginLeft="".concat(-2*(u-a),"px")),n.is_visible=!0,this._isMounted&&this.setState({status:n})}}}])&&s(t.prototype,n),r&&s(t,r),a}(o.Component);function v(e){var t=e.validation_error;return t?o.createElement("div",{className:"fcfOptions__error ".concat(t.is_fatal?"":"fcfOptions__error fcfOptions__error--warning"," "),dangerouslySetInnerHTML:{__html:t.message}}):null}var g=n(669),b=n.n(g);function y(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)}}var _=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.api_url=t,this.header_nonce=n,this.requests={}}var t,n,r;return t=e,(n=[{key:"connect",value:function(e,t,n){var r=this;this.requests[n]&&this.requests[n].cancel();var o=b().CancelToken;this.requests[n]=o.source();var i={method:"POST",url:"".concat(this.api_url,"/").concat(e),headers:{"X-WP-Nonce":this.header_nonce},data:t,cancelToken:this.requests[n].token};return b()(i).then((function(e){var t={status:!0,response:e.data};return"get"===e.config.method&&(r.cache[cache_key]=t),t})).catch((function(e){return{status:!1,response:e.response?e.response.data.message:null}}))}}])&&y(t.prototype,n),r&&y(t,r),e}();function w(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)}}var E=function(){function e(t,n,r,o,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.api_loader=t,this.field_data=n,this.section_fields=r,this.onUpdateStatus=o,this.onUpdateItems=i,this.cache={}}var t,n,r;return t=e,(n=[{key:"refreshItems",value:function(e,t,n,r,o,i,a,l){var u=this.field_data,s=u.endpoint_route,c=u.endpoint_params,f=this.getParamsForApi(c,o);if(r||JSON.stringify(f)!==this.cache){this.cache=JSON.stringify(f);var d=Array.isArray(i)?i:""!==i?[i]:[];this.loadItemsFromApi(s,f,t,n,e,d,a,l)}}},{key:"getParamsForApi",value:function(e,t){for(var n={},r=e.length,o=0;o<r;o++)n[e[o]]=t[e[o]];return n}},{key:"loadItemsFromApi",value:function(e,t,n,r,o,i,a,l){var u=this.api_loader,s=this.section_fields,c=this.onUpdateStatus,f=this.onUpdateItems;c(!0),u.connect(e,{form_values:t,form_field_name:n,form_section:r,form_fields:s,field_values:i,field_search:a},o).then((function(e){c(!1),e.status&&null!==e.response&&(f(e.response),null!==l&&l())}))}}])&&w(t.prototype,n),r&&w(t,r),e}();function S(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)}}var O=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,(n=[{key:"generateSlug",value:function(e){var t=e,n=this.getLettersToReplace();for(var r in n)t=t.replace(new RegExp(r,"g"),n[r]);return t=(t=(t=(t=t.replace(/\s/g,"_")).toLowerCase()).replace(/[^a-z0-9_]/gi,"")).replace(/[/_]{2,}/g,"_")}},{key:"getLettersToReplace",value:function(){return{"-":"_","/":"_",",":"_",":":"_",";":"_","ª":"a","º":"o","À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"TH","ß":"s","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ø":"O","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Ĉ":"C","ĉ":"c","Ċ":"C","ċ":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"D","đ":"d","Ē":"E","ē":"e","Ĕ":"E","ĕ":"e","Ė":"E","ė":"e","Ę":"E","ę":"e","Ě":"E","ě":"e","Ĝ":"G","ĝ":"g","Ğ":"G","ğ":"g","Ġ":"G","ġ":"g","Ģ":"G","ģ":"g","Ĥ":"H","ĥ":"h","Ħ":"H","ħ":"h","Ĩ":"I","ĩ":"i","Ī":"I","ī":"i","Ĭ":"I","ĭ":"i","Į":"I","į":"i","İ":"I","ı":"i","IJ":"IJ","ij":"ij","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","ĺ":"l","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ŀ":"L","ŀ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","ʼn":"n","Ŋ":"N","ŋ":"n","Ō":"O","ō":"o","Ŏ":"O","ŏ":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ŗ":"R","ŗ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ŝ":"S","ŝ":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ŧ":"T","ŧ":"t","Ũ":"U","ũ":"u","Ū":"U","ū":"u","Ŭ":"U","ŭ":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","ſ":"s","Ș":"S","ș":"s","Ț":"T","ț":"t","€":"E","£":"","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Ầ":"A","ầ":"a","Ằ":"A","ằ":"a","Ề":"E","ề":"e","Ồ":"O","ồ":"o","Ờ":"O","ờ":"o","Ừ":"U","ừ":"u","Ỳ":"Y","ỳ":"y","Ả":"A","ả":"a","Ẩ":"A","ẩ":"a","Ẳ":"A","ẳ":"a","Ẻ":"E","ẻ":"e","Ể":"E","ể":"e","Ỉ":"I","ỉ":"i","Ỏ":"O","ỏ":"o","Ổ":"O","ổ":"o","Ở":"O","ở":"o","Ủ":"U","ủ":"u","Ử":"U","ử":"u","Ỷ":"Y","ỷ":"y","Ẫ":"A","ẫ":"a","Ẵ":"A","ẵ":"a","Ẽ":"E","ẽ":"e","Ễ":"E","ễ":"e","Ỗ":"O","ỗ":"o","Ỡ":"O","ỡ":"o","Ữ":"U","ữ":"u","Ỹ":"Y","ỹ":"y","Ấ":"A","ấ":"a","Ắ":"A","ắ":"a","Ế":"E","ế":"e","Ố":"O","ố":"o","Ớ":"O","ớ":"o","Ứ":"U","ứ":"u","Ạ":"A","ạ":"a","Ậ":"A","ậ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ệ":"E","ệ":"e","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ộ":"O","ộ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ự":"U","ự":"u","Ỵ":"Y","ỵ":"y","ɑ":"a","Ǖ":"U","ǖ":"u","Ǘ":"U","ǘ":"u","Ǎ":"A","ǎ":"a","Ǐ":"I","ǐ":"i","Ǒ":"O","ǒ":"o","Ǔ":"U","ǔ":"u","Ǚ":"U","ǚ":"u","Ǜ":"U","ǜ":"u"}}}])&&S(t.prototype,n),r&&S(t,r),e}();function x(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)}}var k=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,(n=[{key:"validateValue",value:function(e,t){for(var n=e.name,r=e.validation_rules,o=0;o<r.length;o++)if(!new RegExp(r[o].regex,"s").test(t[n]||""))return{message:r[o].message,is_fatal:r[o].is_fatal};return null}}])&&x(t.prototype,n),r&&x(t,r),e}();function C(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)}}var P=function(){function e(t,n,r,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.api_handler=t,this.api_route=n,this._form_validation=r,this.onUpdateStatus=o}var t,n,r;return t=e,(n=[{key:"onSubmit",value:function(e,t){var n=this;this.onUpdateStatus("".concat(e,"_loading")),this._form_validation.onSubmit().then((function(){n.saveSettings(e,t).then((function(){n.onUpdateStatus("".concat(e,"_success")),setTimeout(n.onUpdateStatus,1e3)}),(function(t){n.onUpdateStatus("".concat(e,"_error"),t)}))}),(function(){n.onUpdateStatus()}))}},{key:"saveSettings",value:function(e,t){var n=this.api_handler,r=this.api_route;return new Promise((function(e,o){n.connect(r,t,"POST").then((function(t){t.status?e():o(t.response)}))}))}},{key:"onReset",value:function(e,t){var n=this;this.onUpdateStatus("".concat(e,"_loading")),this.saveSettings(e,t).then((function(){n.onUpdateStatus("".concat(e,"_success")),window.location.reload(!0)}),(function(t){n.onUpdateStatus("".concat(e,"_error"),t)}))}}])&&C(t.prototype,n),r&&C(t,r),e}();function I(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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)}}var D=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10;I(this,e),this.validation_event=t,this.validation_type=n,this.max_iteration=r,this.validation_errors={}}var t,n,r;return t=e,(n=[{key:"onValidationInit",value:function(e,t,n){this.validation_errors[e]=n,t&&delete this.validation_errors[e]}},{key:"clearValidationHandlers",value:function(){this.validation_errors={}}},{key:"onSubmit",value:function(){var e=this,t=this.validation_event,n=this.validation_type,r=this.max_iteration;return this.clearValidationHandlers(),window.dispatchEvent(new CustomEvent(t,{detail:n})),new Promise((function(t,n){var o=0,i=setInterval((function(){var a=e.getFirstEvent();a&&(clearInterval(i),a(),n()),++o===r&&(clearInterval(i),t())}),100)}))}},{key:"getFirstEvent",value:function(){var e=Object.keys(this.validation_errors);return e.length>0?this.validation_errors[e[0]]:null}}])&&R(t.prototype,n),r&&R(t,r),e}();function N(e){return(N="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)}function T(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 L(e,t){return(L=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function A(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=B(e);if(t){var o=B(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return M(this,n)}}function M(e,t){if(t&&("object"===N(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function B(e){return(B=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var F=function(e){!function(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}}),t&&L(e,t)}(a,e);var t,n,r,i=A(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).state={settings:e.settings,form_settings:e.form_settings,events:{onChangeValue:e.onChangeValue,onChangeState:e.onChangeState,onRefreshForm:e.onRefreshForm,onValidationInit:e.onValidationInit},handlers:{api_loader:e.settings.handlers.api_loader},validation_types:e.validation_types},t._field_validation=new k,t.setDefaultValue(),t.onChangeState("unique_id",t.generateUniqueId(32)),t.onChangeState("ref_wrapper",o.createRef()),t.onChangeState("ref_input",o.createRef()),t}return t=a,(n=[{key:"componentDidMount",value:function(){var e=this;this._isMounted=!0;var t=this.state,n=t.settings,r=t.validation_types;window.addEventListener(n.events.validate_field,(function(t){null!==t.detail&&r.indexOf(t.detail)>-1&&e._isMounted&&e.validateValue()}))}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.onValidationError(null)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.field_data,r=t.form_values;JSON.stringify(r[n.name])!==JSON.stringify(e.form_values[n.name])&&(""===r[n.name]&&void 0===e.form_values[n.name]||(void 0===r[n.name]&&void 0!==e.form_values[n.name]?this.onValidationError(null):r[n.name]!==e.form_values[n.name]&&this.validateValue()))}},{key:"onChangeValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.props.field_data,n=this.state.events,r=this.getValue(e);n.onChangeValue(t.name,r,t.refresh_trigger)}},{key:"onChangeState",value:function(e,t){var n=this.props.state_name;this.state.events.onChangeState(n,e,t)}},{key:"onValidationError",value:function(e){var t=this.props,n=t.form_states,r=t.state_name,o=t.form_values,i=t.show_if_regexes,a=this.state.events;n[r]&&this.isFieldVisible(i,o)&&(this.onChangeState("validation_error",e),a.onValidationInit(n[r].unique_id,null===e,(function(){var e=n[r].ref_wrapper.current;setTimeout((function(){e.scrollIntoView(!1)}),0)})))}},{key:"setDefaultValue",value:function(){var e=this.state.events,t=this.props,n=t.field_data,r=t.form_values,o=void 0!==r[n.name]?r[n.name]:JSON.parse(JSON.stringify(n.default_value||""));e.onChangeValue(n.name,o)}},{key:"isFieldVisible",value:function(e,t){for(var n in e)if(!new RegExp(e[n]).test(t[n]))return!1;return!0}},{key:"getFieldValue",value:function(){var e=this.props,t=e.field_data,n=e.form_values;return t.display_pattern?t.display_pattern.replace("%s",n[t.name]||""):n[t.name]||""}},{key:"validateValue",value:function(){var e=this.props,t=e.field_data,n=e.form_values,r=this._field_validation.validateValue(t,n);null!==r?this.onValidationError(r):this.onChangeState("validation_error",null)}},{key:"generateUniqueId",value:function(e){for(var t="abcdefghijklmnopqrstuvwxyz0123456789",n="",r=t.length,o=0;o<e;o++)n+=t.charAt(Math.floor(Math.random()*r));return n}}])&&T(t.prototype,n),r&&T(t,r),a}(o.Component);function j(e){return(j="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)}function V(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function U(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 z(e,t){return(z=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function H(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=G(e);if(t){var o=G(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return W(this,n)}}function W(e,t){if(t&&("object"===j(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function G(e){return(G=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var q=function(e){!function(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}}),t&&z(e,t)}(a,e);var t,n,r,i=H(a);function a(){return V(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.field_data,n=e.form_values,r=e.form_states,i=e.state_name,a=e.show_if_regexes,u=this.state.settings;return r[i]&&this.isFieldVisible(a,n)?o.createElement(o.Fragment,null,o.createElement("li",{className:"fcfOptions__row",ref:r[i].ref_wrapper},o.createElement("input",{type:"checkbox",className:"fcfOptions__checkbox",id:r[i].unique_id,ref:r[i].ref_input,name:"_fcf_".concat(t.name),defaultChecked:n[t.name]&&"1"===n[t.name].toString(),onChange:t.readonly?null:this.onChangeValue.bind(this),disabled:t.readonly}),o.createElement(l,{unique_id:r[i].unique_id,field_data:t,settings:u}),o.createElement(v,{validation_error:r[i].validation_error}))):null}},{key:"getValue",value:function(){var e=this.props;return e.form_states[e.state_name].ref_input.current.checked?"1":"0"}}])&&U(t.prototype,n),r&&U(t,r),a}(F);function $(e){return($="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)}function Y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Q(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 K(e,t){return(K=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function X(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=Z(e);if(t){var o=Z(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return J(this,n)}}function J(e,t){if(t&&("object"===$(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Z(e){return(Z=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ee=function(e){!function(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}}),t&&K(e,t)}(a,e);var t,n,r,i=X(a);function a(){return Y(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.field_data,n=e.form_values,r=e.form_states,i=e.state_name,a=e.state_field_name,u=e.section_fields,s=e.show_if_regexes,c=this.state,f=c.events,d=c.settings,p=c.form_settings,m=c.validation_types;return r[i]&&this.isFieldVisible(s,n)?o.createElement(o.Fragment,null,o.createElement("li",{className:"fcfOptions__row"},o.createElement(l,{unique_id:r[i].unique_id,field_data:t,is_group_label:!0,settings:d})),t.items.map((function(e,t){return o.createElement(q,{key:t,field_data:e,form_values:n,form_states:r,state_name:e.name,state_field_name:a,section_fields:u,onChangeValue:f.onChangeValue,onChangeState:f.onChangeState,onRefreshForm:f.onRefreshForm,onValidationInit:f.onValidationInit,validation_types:m,settings:d,form_settings:p})}))):null}}])&&Q(t.prototype,n),r&&Q(t,r),a}(F),te=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},ne=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),re=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};String.prototype.startsWith=String.prototype.startsWith||function(e){return 0===this.indexOf(e)},String.prototype.padStart=String.prototype.padStart||function(e,t){for(var n=this;n.length<e;)n=t+n;return n};var oe={cb:"0f8ff",tqw:"aebd7",q:"-ffff",qmrn:"7fffd4",zr:"0ffff",bg:"5f5dc",bsq:"e4c4",bck:"---",nch:"ebcd",b:"--ff",bvt:"8a2be2",brwn:"a52a2a",brw:"deb887",ctb:"5f9ea0",hrt:"7fff-",chcT:"d2691e",cr:"7f50",rnw:"6495ed",crns:"8dc",crms:"dc143c",cn:"-ffff",Db:"--8b",Dcn:"-8b8b",Dgnr:"b8860b",Dgr:"a9a9a9",Dgrn:"-64-",Dkhk:"bdb76b",Dmgn:"8b-8b",Dvgr:"556b2f",Drng:"8c-",Drch:"9932cc",Dr:"8b--",Dsmn:"e9967a",Dsgr:"8fbc8f",DsTb:"483d8b",DsTg:"2f4f4f",Dtrq:"-ced1",Dvt:"94-d3",ppnk:"1493",pskb:"-bfff",mgr:"696969",grb:"1e90ff",rbrc:"b22222",rwht:"af0",stg:"228b22",chs:"-ff",gnsb:"dcdcdc",st:"8f8ff",g:"d7-",gnr:"daa520",gr:"808080",grn:"-8-0",grnw:"adff2f",hnw:"0fff0",htpn:"69b4",nnr:"cd5c5c",ng:"4b-82",vr:"0",khk:"0e68c",vnr:"e6e6fa",nrb:"0f5",wngr:"7cfc-",mnch:"acd",Lb:"add8e6",Lcr:"08080",Lcn:"e0ffff",Lgnr:"afad2",Lgr:"d3d3d3",Lgrn:"90ee90",Lpnk:"b6c1",Lsmn:"a07a",Lsgr:"20b2aa",Lskb:"87cefa",LsTg:"778899",Lstb:"b0c4de",Lw:"e0",m:"-ff-",mgrn:"32cd32",nn:"af0e6",mgnt:"-ff",mrn:"8--0",mqm:"66cdaa",mmb:"--cd",mmrc:"ba55d3",mmpr:"9370db",msg:"3cb371",mmsT:"7b68ee","":"-fa9a",mtr:"48d1cc",mmvt:"c71585",mnLb:"191970",ntc:"5fffa",mstr:"e4e1",mccs:"e4b5",vjw:"dead",nv:"--80",c:"df5e6",v:"808-0",vrb:"6b8e23",rng:"a5-",rngr:"45-",rch:"da70d6",pgnr:"eee8aa",pgrn:"98fb98",ptrq:"afeeee",pvtr:"db7093",ppwh:"efd5",pchp:"dab9",pr:"cd853f",pnk:"c0cb",pm:"dda0dd",pwrb:"b0e0e6",prp:"8-080",cc:"663399",r:"--",sbr:"bc8f8f",rb:"4169e1",sbrw:"8b4513",smn:"a8072",nbr:"4a460",sgrn:"2e8b57",ssh:"5ee",snn:"a0522d",svr:"c0c0c0",skb:"87ceeb",sTb:"6a5acd",sTgr:"708090",snw:"afa",n:"-ff7f",stb:"4682b4",tn:"d2b48c",t:"-8080",thst:"d8bfd8",tmT:"6347",trqs:"40e0d0",vt:"ee82ee",whT:"5deb3",wht:"",hts:"5f5f5",w:"-",wgrn:"9acd32"};function ie(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=t>0?e.toFixed(t).replace(/0+$/,"").replace(/\.$/,""):e.toString();return n||"0"}var ae=function(){function e(t,n,r,o){te(this,e);var i=this;if(void 0===t);else if(Array.isArray(t))this.rgba=t;else if(void 0===r){var a=t&&""+t;a&&function(t){if(t.startsWith("hsl")){var n=t.match(/([\-\d\.e]+)/g).map(Number),r=re(n,4),o=r[0],a=r[1],l=r[2],u=r[3];void 0===u&&(u=1),o/=360,a/=100,l/=100,i.hsla=[o,a,l,u]}else if(t.startsWith("rgb")){var s=t.match(/([\-\d\.e]+)/g).map(Number),c=re(s,4),f=c[0],d=c[1],p=c[2],m=c[3];void 0===m&&(m=1),i.rgba=[f,d,p,m]}else t.startsWith("#")?i.rgba=e.hexToRgb(t):i.rgba=e.nameToRgb(t)||e.hexToRgb(t)}(a.toLowerCase())}else this.rgba=[t,n,r,void 0===o?1:o]}return ne(e,[{key:"printRGB",value:function(e){var t=(e?this.rgba:this.rgba.slice(0,3)).map((function(e,t){return ie(e,3===t?3:0)}));return e?"rgba("+t+")":"rgb("+t+")"}},{key:"printHSL",value:function(e){var t=[360,100,100,1],n=["","%","%",""],r=(e?this.hsla:this.hsla.slice(0,3)).map((function(e,r){return ie(e*t[r],3===r?3:1)+n[r]}));return e?"hsla("+r+")":"hsl("+r+")"}},{key:"printHex",value:function(e){var t=this.hex;return e?t:t.substring(0,7)}},{key:"rgba",get:function(){if(this._rgba)return this._rgba;if(!this._hsla)throw new Error("No color is set");return this._rgba=e.hslToRgb(this._hsla)},set:function(e){3===e.length&&(e[3]=1),this._rgba=e,this._hsla=null}},{key:"rgbString",get:function(){return this.printRGB()}},{key:"rgbaString",get:function(){return this.printRGB(!0)}},{key:"hsla",get:function(){if(this._hsla)return this._hsla;if(!this._rgba)throw new Error("No color is set");return this._hsla=e.rgbToHsl(this._rgba)},set:function(e){3===e.length&&(e[3]=1),this._hsla=e,this._rgba=null}},{key:"hslString",get:function(){return this.printHSL()}},{key:"hslaString",get:function(){return this.printHSL(!0)}},{key:"hex",get:function(){return"#"+this.rgba.map((function(e,t){return t<3?e.toString(16):Math.round(255*e).toString(16)})).map((function(e){return e.padStart(2,"0")})).join("")},set:function(t){this.rgba=e.hexToRgb(t)}}],[{key:"hexToRgb",value:function(e){var t=(e.startsWith("#")?e.slice(1):e).replace(/^(\w{3})$/,"$1F").replace(/^(\w)(\w)(\w)(\w)$/,"$1$1$2$2$3$3$4$4").replace(/^(\w{6})$/,"$1FF");if(!t.match(/^([0-9a-fA-F]{8})$/))throw new Error("Unknown hex color; "+e);var n=t.match(/^(\w\w)(\w\w)(\w\w)(\w\w)$/).slice(1).map((function(e){return parseInt(e,16)}));return n[3]=n[3]/255,n}},{key:"nameToRgb",value:function(t){var n=t.toLowerCase().replace("at","T").replace(/[aeiouyldf]/g,"").replace("ght","L").replace("rk","D").slice(-5,4),r=oe[n];return void 0===r?r:e.hexToRgb(r.replace(/\-/g,"00").padStart(6,"f"))}},{key:"rgbToHsl",value:function(e){var t=re(e,4),n=t[0],r=t[1],o=t[2],i=t[3];n/=255,r/=255,o/=255;var a=Math.max(n,r,o),l=Math.min(n,r,o),u=void 0,s=void 0,c=(a+l)/2;if(a===l)u=s=0;else{var f=a-l;switch(s=c>.5?f/(2-a-l):f/(a+l),a){case n:u=(r-o)/f+(r<o?6:0);break;case r:u=(o-n)/f+2;break;case o:u=(n-r)/f+4}u/=6}return[u,s,c,i]}},{key:"hslToRgb",value:function(e){var t=re(e,4),n=t[0],r=t[1],o=t[2],i=t[3],a=void 0,l=void 0,u=void 0;if(0===r)a=l=u=o;else{var s=function(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e},c=o<.5?o*(1+r):o+r-o*r,f=2*o-c;a=s(f,c,n+1/3),l=s(f,c,n),u=s(f,c,n-1/3)}var d=[255*a,255*l,255*u].map(Math.round);return d[3]=i,d}}]),e}(),le=function(){function e(){te(this,e),this._events=[]}return ne(e,[{key:"add",value:function(e,t,n){e.addEventListener(t,n,!1),this._events.push({target:e,type:t,handler:n})}},{key:"remove",value:function(t,n,r){this._events=this._events.filter((function(o){var i=!0;return t&&t!==o.target&&(i=!1),n&&n!==o.type&&(i=!1),r&&r!==o.handler&&(i=!1),i&&e._doRemove(o.target,o.type,o.handler),!i}))}},{key:"destroy",value:function(){this._events.forEach((function(t){return e._doRemove(t.target,t.type,t.handler)})),this._events=[]}}],[{key:"_doRemove",value:function(e,t,n){e.removeEventListener(t,n,!1)}}]),e}();function ue(e,t,n){var r=!1;function o(e,t,n){return Math.max(t,Math.min(e,n))}function i(e,i,a){if(a&&(r=!0),r){e.preventDefault();var l=t.getBoundingClientRect(),u=l.width,s=l.height,c=i.clientX,f=i.clientY,d=o(c-l.left,0,u),p=o(f-l.top,0,s);n(d/u,p/s)}}function a(e,t){1===(void 0===e.buttons?e.which:e.buttons)?i(e,e,t):r=!1}function l(e,t){1===e.touches.length?i(e,e.touches[0],t):r=!1}e.add(t,"mousedown",(function(e){a(e,!0)})),e.add(t,"touchstart",(function(e){l(e,!0)})),e.add(window,"mousemove",a),e.add(t,"touchmove",l),e.add(window,"mouseup",(function(e){r=!1})),e.add(t,"touchend",(function(e){r=!1})),e.add(t,"touchcancel",(function(e){r=!1}))}var se="keydown",ce="mousedown",fe="focusin";function de(e,t){return(t||document).querySelector(e)}function pe(e){e.preventDefault(),e.stopPropagation()}function me(e,t,n,r,o){e.add(t,se,(function(e){n.indexOf(e.key)>=0&&(o&&pe(e),r(e))}))}var he=function(){function e(t){te(this,e),this.settings={popup:"right",layout:"default",alpha:!0,editor:!0,editorFormat:"hex",cancelButton:!1,defaultColor:"#0cf"},this._events=new le,this.onChange=null,this.onDone=null,this.onOpen=null,this.onClose=null,this.setOptions(t)}return ne(e,[{key:"setOptions",value:function(e){var t=this;if(e){var n=this.settings;if(e instanceof HTMLElement)n.parent=e;else{n.parent&&e.parent&&n.parent!==e.parent&&(this._events.remove(n.parent),this._popupInited=!1),function(e,t,n){for(var r in e)n&&n.indexOf(r)>=0||(t[r]=e[r])}(e,n),e.onChange&&(this.onChange=e.onChange),e.onDone&&(this.onDone=e.onDone),e.onOpen&&(this.onOpen=e.onOpen),e.onClose&&(this.onClose=e.onClose);var r=e.color||e.colour;r&&this._setColor(r)}var o=n.parent;if(o&&n.popup&&!this._popupInited){var i=function(e){return t.openHandler(e)};this._events.add(o,"click",i),me(this._events,o,[" ","Spacebar","Enter"],i),this._popupInited=!0}else e.parent&&!n.popup&&this.show()}}},{key:"openHandler",value:function(e){if(this.show()){e&&e.preventDefault(),this.settings.parent.style.pointerEvents="none";var t=e&&e.type===se?this._domEdit:this.domElement;setTimeout((function(){return t.focus()}),100),this.onOpen&&this.onOpen(this.colour)}}},{key:"closeHandler",value:function(e){var t=e&&e.type,n=!1;if(e)if(t===ce||t===fe){var r=(this.__containedEvent||0)+100;e.timeStamp>r&&(n=!0)}else pe(e),n=!0;else n=!0;n&&this.hide()&&(this.settings.parent.style.pointerEvents="",t!==ce&&this.settings.parent.focus(),this.onClose&&this.onClose(this.colour))}},{key:"movePopup",value:function(e,t){this.closeHandler(),this.setOptions(e),t&&this.openHandler()}},{key:"setColor",value:function(e,t){this._setColor(e,{silent:t})}},{key:"_setColor",value:function(e,t){if("string"==typeof e&&(e=e.trim()),e){t=t||{};var n=void 0;try{n=new ae(e)}catch(e){if(t.failSilently)return;throw e}if(!this.settings.alpha){var r=n.hsla;r[3]=1,n.hsla=r}this.colour=this.color=n,this._setHSLA(null,null,null,null,t)}}},{key:"setColour",value:function(e,t){this.setColor(e,t)}},{key:"show",value:function(){if(!this.settings.parent)return!1;if(this.domElement){var e=this._toggleDOM(!0);return this._setPosition(),e}var t,n,r=this.settings.template||'<div class="picker_wrapper" tabindex="-1"><div class="picker_arrow"></div><div class="picker_hue picker_slider"><div class="picker_selector"></div></div><div class="picker_sl"><div class="picker_selector"></div></div><div class="picker_alpha picker_slider"><div class="picker_selector"></div></div><div class="picker_editor"><input aria-label="Type a color name or hex value"/></div><div class="picker_sample"></div><div class="picker_done"><button>Ok</button></div><div class="picker_cancel"><button>Cancel</button></div></div>',o=(t=r,(n=document.createElement("div")).innerHTML=t,n.firstElementChild);return this.domElement=o,this._domH=de(".picker_hue",o),this._domSL=de(".picker_sl",o),this._domA=de(".picker_alpha",o),this._domEdit=de(".picker_editor input",o),this._domSample=de(".picker_sample",o),this._domOkay=de(".picker_done button",o),this._domCancel=de(".picker_cancel button",o),o.classList.add("layout_"+this.settings.layout),this.settings.alpha||o.classList.add("no_alpha"),this.settings.editor||o.classList.add("no_editor"),this.settings.cancelButton||o.classList.add("no_cancel"),this._ifPopup((function(){return o.classList.add("popup")})),this._setPosition(),this.colour?this._updateUI():this._setColor(this.settings.defaultColor),this._bindEvents(),!0}},{key:"hide",value:function(){return this._toggleDOM(!1)}},{key:"destroy",value:function(){this._events.destroy(),this.domElement&&this.settings.parent.removeChild(this.domElement)}},{key:"_bindEvents",value:function(){var e=this,t=this,n=this.domElement,r=this._events;function o(e,t,n){r.add(e,t,n)}o(n,"click",(function(e){return e.preventDefault()})),ue(r,this._domH,(function(e,n){return t._setHSLA(e)})),ue(r,this._domSL,(function(e,n){return t._setHSLA(null,e,1-n)})),this.settings.alpha&&ue(r,this._domA,(function(e,n){return t._setHSLA(null,null,null,1-n)}));var i=this._domEdit;o(i,"input",(function(e){t._setColor(this.value,{fromEditor:!0,failSilently:!0})})),o(i,"focus",(function(e){var t=this;t.selectionStart===t.selectionEnd&&t.select()})),this._ifPopup((function(){var t=function(t){return e.closeHandler(t)};o(window,ce,t),o(window,fe,t),me(r,n,["Esc","Escape"],t);var i=function(t){e.__containedEvent=t.timeStamp};o(n,ce,i),o(n,fe,i),o(e._domCancel,"click",t)}));var a=function(t){e._ifPopup((function(){return e.closeHandler(t)})),e.onDone&&e.onDone(e.colour)};o(this._domOkay,"click",a),me(r,n,["Enter"],a)}},{key:"_setPosition",value:function(){var e=this.settings.parent,t=this.domElement;e!==t.parentNode&&e.appendChild(t),this._ifPopup((function(n){"static"===getComputedStyle(e).position&&(e.style.position="relative");var r=!0===n?"popup_right":"popup_"+n;["popup_top","popup_bottom","popup_left","popup_right"].forEach((function(e){e===r?t.classList.add(e):t.classList.remove(e)})),t.classList.add(r)}))}},{key:"_setHSLA",value:function(e,t,n,r,o){o=o||{};var i=this.colour,a=i.hsla;[e,t,n,r].forEach((function(e,t){(e||0===e)&&(a[t]=e)})),i.hsla=a,this._updateUI(o),this.onChange&&!o.silent&&this.onChange(i)}},{key:"_updateUI",value:function(e){if(this.domElement){e=e||{};var t=this.colour,n=t.hsla,r="hsl("+360*n[0]+", 100%, 50%)",o=t.hslString,i=t.hslaString,a=this._domH,l=this._domSL,u=this._domA,s=de(".picker_selector",a),c=de(".picker_selector",l),f=de(".picker_selector",u);b(0,s,n[0]),this._domSL.style.backgroundColor=this._domH.style.color=r,b(0,c,n[1]),y(0,c,1-n[2]),l.style.color=o,y(0,f,1-n[3]);var d=o,p=d.replace("hsl","hsla").replace(")",", 0)"),m="linear-gradient("+[d,p]+")";if(this._domA.style.background=m+", linear-gradient(45deg, lightgrey 25%, transparent 25%, transparent 75%, lightgrey 75%) 0 0 / 2em 2em,\n linear-gradient(45deg, lightgrey 25%, white 25%, white 75%, lightgrey 75%) 1em 1em / 2em 2em",!e.fromEditor){var h=this.settings.editorFormat,v=this.settings.alpha,g=void 0;switch(h){case"rgb":g=t.printRGB(v);break;case"hsl":g=t.printHSL(v);break;default:g=t.printHex(v)}this._domEdit.value=g}this._domSample.style.color=i}function b(e,t,n){t.style.left=100*n+"%"}function y(e,t,n){t.style.top=100*n+"%"}}},{key:"_ifPopup",value:function(e,t){this.settings.parent&&this.settings.popup?e&&e(this.settings.popup):t&&t()}},{key:"_toggleDOM",value:function(e){var t=this.domElement;if(!t)return!1;var n=e?"":"none",r=t.style.display!==n;return r&&(t.style.display=n),r}}]),e}(),ve=document.createElement("style");function ge(e){return(ge="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)}function be(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 ye(e,t){return(ye=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _e(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=Ee(e);if(t){var o=Ee(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return we(this,n)}}function we(e,t){if(t&&("object"===ge(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Ee(e){return(Ee=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}ve.textContent='.picker_wrapper.no_alpha .picker_alpha{display:none}.picker_wrapper.no_editor .picker_editor{position:absolute;z-index:-1;opacity:0}.picker_wrapper.no_cancel .picker_cancel{display:none}.layout_default.picker_wrapper{display:flex;flex-flow:row wrap;justify-content:space-between;align-items:stretch;font-size:10px;width:25em;padding:.5em}.layout_default.picker_wrapper input,.layout_default.picker_wrapper button{font-size:1rem}.layout_default.picker_wrapper>*{margin:.5em}.layout_default.picker_wrapper::before{content:"";display:block;width:100%;height:0;order:1}.layout_default .picker_slider,.layout_default .picker_selector{padding:1em}.layout_default .picker_hue{width:100%}.layout_default .picker_sl{flex:1 1 auto}.layout_default .picker_sl::before{content:"";display:block;padding-bottom:100%}.layout_default .picker_editor{order:1;width:6.5rem}.layout_default .picker_editor input{width:100%;height:100%}.layout_default .picker_sample{order:1;flex:1 1 auto}.layout_default .picker_done,.layout_default .picker_cancel{order:1}.picker_wrapper{box-sizing:border-box;background:#f2f2f2;box-shadow:0 0 0 1px silver;cursor:default;font-family:sans-serif;color:#444;pointer-events:auto}.picker_wrapper:focus{outline:none}.picker_wrapper button,.picker_wrapper input{box-sizing:border-box;border:none;box-shadow:0 0 0 1px silver;outline:none}.picker_wrapper button:focus,.picker_wrapper button:active,.picker_wrapper input:focus,.picker_wrapper input:active{box-shadow:0 0 2px 1px #1e90ff}.picker_wrapper button{padding:.4em .6em;cursor:pointer;background-color:#f5f5f5;background-image:linear-gradient(0deg, gainsboro, transparent)}.picker_wrapper button:active{background-image:linear-gradient(0deg, transparent, gainsboro)}.picker_wrapper button:hover{background-color:#fff}.picker_selector{position:absolute;z-index:1;display:block;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);border:2px solid #fff;border-radius:100%;box-shadow:0 0 3px 1px #67b9ff;background:currentColor;cursor:pointer}.picker_slider .picker_selector{border-radius:2px}.picker_hue{position:relative;background-image:linear-gradient(90deg, red, yellow, lime, cyan, blue, magenta, red);box-shadow:0 0 0 1px silver}.picker_sl{position:relative;box-shadow:0 0 0 1px silver;background-image:linear-gradient(180deg, white, rgba(255, 255, 255, 0) 50%),linear-gradient(0deg, black, rgba(0, 0, 0, 0) 50%),linear-gradient(90deg, #808080, rgba(128, 128, 128, 0))}.picker_alpha,.picker_sample{position:relative;background:linear-gradient(45deg, lightgrey 25%, transparent 25%, transparent 75%, lightgrey 75%) 0 0/2em 2em,linear-gradient(45deg, lightgrey 25%, white 25%, white 75%, lightgrey 75%) 1em 1em/2em 2em;box-shadow:0 0 0 1px silver}.picker_alpha .picker_selector,.picker_sample .picker_selector{background:none}.picker_editor input{font-family:monospace;padding:.2em .4em}.picker_sample::before{content:"";position:absolute;display:block;width:100%;height:100%;background:currentColor}.picker_arrow{position:absolute;z-index:-1}.picker_wrapper.popup{position:absolute;z-index:2;margin:1.5em}.picker_wrapper.popup,.picker_wrapper.popup .picker_arrow::before,.picker_wrapper.popup .picker_arrow::after{background:#f2f2f2;box-shadow:0 0 10px 1px rgba(0,0,0,.4)}.picker_wrapper.popup .picker_arrow{width:3em;height:3em;margin:0}.picker_wrapper.popup .picker_arrow::before,.picker_wrapper.popup .picker_arrow::after{content:"";display:block;position:absolute;top:0;left:0;z-index:-99}.picker_wrapper.popup .picker_arrow::before{width:100%;height:100%;-webkit-transform:skew(45deg);transform:skew(45deg);-webkit-transform-origin:0 100%;transform-origin:0 100%}.picker_wrapper.popup .picker_arrow::after{width:150%;height:150%;box-shadow:none}.popup.popup_top{bottom:100%;left:0}.popup.popup_top .picker_arrow{bottom:0;left:0;-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.popup.popup_bottom{top:100%;left:0}.popup.popup_bottom .picker_arrow{top:0;left:0;-webkit-transform:rotate(90deg) scale(1, -1);transform:rotate(90deg) scale(1, -1)}.popup.popup_left{top:0;right:100%}.popup.popup_left .picker_arrow{top:0;right:0;-webkit-transform:scale(-1, 1);transform:scale(-1, 1)}.popup.popup_right{top:0;left:100%}.popup.popup_right .picker_arrow{top:0;left:0}',document.documentElement.firstElementChild.appendChild(ve),he.StyleElement=ve;var Se=function(e){!function(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}}),t&&ye(e,t)}(a,e);var t,n,r,i=_e(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).state.color_value=null,t}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.field_data,n=e.form_values,r=e.form_states,i=e.state_name,a=e.show_if_regexes,u=this.state,s=u.settings,c=u.color_value;if(!r[i]||!this.isFieldVisible(a,n))return null;var f=c||this.getFieldValue();return o.createElement(o.Fragment,null,o.createElement("li",{className:"fcfOptions__row",ref:r[i].ref_wrapper},o.createElement(l,{unique_id:r[i].unique_id,field_data:t,settings:s}),o.createElement(v,{validation_error:r[i].validation_error}),o.createElement("div",{className:"fcfOptions__color"},o.createElement("div",{className:"fcfOptions__colorInner"},f?o.createElement("div",{className:"fcfOptions__colorPreview",style:{backgroundColor:f}}):null,o.createElement("button",{type:"button",className:"fcfOptions__colorButton fcfButton fcfButton--small fcfButton--border fcfButton--blue",onClick:this.openPicker.bind(this)},s.i18n.button_select_color)))))}},{key:"openPicker",value:function(){var e=this,t=this.props,n=t.field_data,r=t.form_states,o=t.state_name,i=this.state.events;this.picker||(this.picker=new he({parent:r[o].ref_wrapper.current,popup:"top",alpha:!1,color:this.getFieldValue(),onChange:function(t){e.setState({color_value:t.hex})},onClose:function(e){i.onChangeValue(n.name,e.hex,n.refresh_trigger)}})),this.picker.show()}},{key:"getValue",value:function(){var e=this.props;return e.form_states[e.state_name].ref_input.current.value}}])&&be(t.prototype,n),r&&be(t,r),a}(F);function Oe(e){return(Oe="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)}function xe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ke(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 Ce(e,t){return(Ce=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}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=Re(e);if(t){var o=Re(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ie(this,n)}}function Ie(e,t){if(t&&("object"===Oe(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Re(e){return(Re=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var De=function(e){!function(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}}),t&&Ce(e,t)}(l,e);var t,n,i,a=Pe(l);function l(){return xe(this,l),a.apply(this,arguments)}return t=l,(n=[{key:"render",value:function(){var e=this,t=this.props,n=t.field_data,i=t.form_values,a=t.form_states,l=t.state_name,u=t.state_field_name,s=t.section_fields,c=t.show_if_regexes,f=this.state,d=f.api_loader,p=f.events,m=f.settings,h=f.form_settings,v=f.validation_types;return a[l]&&this.isFieldVisible(c,i)?o.createElement(o.Fragment,null,o.createElement("li",{className:"fcfOptions__row fcfOptions__row--sub"},o.createElement("ul",{className:"fcfOptions__columns"},n.items.map((function(t,n){var l=r[t.type],c=t.show_if_regexes;return e.isFieldVisible(c,i)?o.createElement("li",{className:"fcfOptions__column",key:n},o.createElement("ul",{className:"fcfOptions__rows"},o.createElement(l,{field_data:t,form_values:i,form_states:a,state_name:t.name,state_field_name:u,section_fields:s,api_loader:d,onChangeValue:p.onChangeValue,onChangeState:p.onChangeState,onRefreshForm:p.onRefreshForm,onValidationInit:p.onValidationInit,validation_types:v,settings:m,form_settings:h}))):null}))))):null}}])&&ke(t.prototype,n),i&&ke(t,i),l}(F);function Ne(e){return(Ne="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)}function Te(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Le(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 Ae(e,t){return(Ae=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Me(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=Fe(e);if(t){var o=Fe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Be(this,n)}}function Be(e,t){if(t&&("object"===Ne(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Fe(e){return(Fe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var je=function(e){!function(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}}),t&&Ae(e,t)}(a,e);var t,n,r,i=Me(a);function a(){return Te(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.field_data,n=e.form_values,r=e.show_if_regexes;return this.isFieldVisible(r,n)?o.createElement(o.Fragment,null,o.createElement("input",{type:"hidden",name:"_fcf_".concat(t.name),value:n[t.name]||""})):null}}])&&Le(t.prototype,n),r&&Le(t,r),a}(F);function Ve(e){return(Ve="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)}function Ue(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 ze(e,t){return(ze=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function He(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=Ge(e);if(t){var o=Ge(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return We(this,n)}}function We(e,t){if(t&&("object"===Ve(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Ge(e){return(Ge=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var qe=function(e){!function(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}}),t&&ze(e,t)}(a,e);var t,n,r,i=He(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).state.media_url=null,t.getImageUrl(t.getFieldValue()),t}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.field_data,n=e.form_values,r=e.form_states,i=e.state_name,a=e.show_if_regexes,u=this.state,s=u.settings,c=u.media_url;return r[i]&&this.isFieldVisible(a,n)?o.createElement(o.Fragment,null,o.createElement("li",{className:"fcfOptions__row",ref:r[i].ref_wrapper},o.createElement(l,{unique_id:r[i].unique_id,field_data:t,settings:s}),o.createElement(v,{validation_error:r[i].validation_error}),o.createElement("div",{className:"fcfOptions__media"},o.createElement("div",{className:"fcfOptions__mediaInner"},c?o.createElement("img",{src:c,className:"fcfOptions__mediaImage",alt:""}):null,o.createElement("button",{type:"button",className:"fcfOptions__mediaButton fcfButton fcfButton--small fcfButton--border fcfButton--blue",onClick:this.onSelectImage.bind(this)},s.i18n.button_upload_image))))):null}},{key:"getImageUrl",value:function(e){var t=this;e&&wp.media.attachment(e).fetch().then((function(){var n=wp.media.attachment(e).get("sizes"),r=wp.media.attachment(e).get("url");t.setImageUrl(e,r,n)}))}},{key:"setImageUrl",value:function(e,t,n){var r=this.props.field_data,o=this.state.events;this.setState({media_url:n&&n.thumbnail?n.thumbnail.url:t}),o.onChangeValue(r.name,e,r.refresh_trigger)}},{key:"onSelectImage",value:function(){var e=this,t=wp.media({multiple:!1,library:{type:["image"]}}).open().on("select",(function(){var n=t.state().get("selection").first().toJSON();e.setImageUrl(n.id,n.url,n.sizes)}))}}])&&Ue(t.prototype,n),r&&Ue(t,r),a}(F);function $e(e){return($e="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)}function Ye(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qe(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 Ke(e,t){return(Ke=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Xe(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=Ze(e);if(t){var o=Ze(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Je(this,n)}}function Je(e,t){if(t&&("object"===$e(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Ze(e){return(Ze=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var et=function(e){!function(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}}),t&&Ke(e,t)}(a,e);var t,n,r,i=Xe(a);function a(){return Ye(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.field_data,n=e.form_values,r=e.show_if_regexes;return this.isFieldVisible(r,n)?o.createElement(o.Fragment,null,o.createElement("li",{className:"fcfOptions__row"},o.createElement("div",{className:"fcfOptions__info fcfOptions__info--green"},o.createElement("div",{className:"fcfOptions__infoInner",dangerouslySetInnerHTML:{__html:t.label}})))):null}}])&&Qe(t.prototype,n),r&&Qe(t,r),a}(F);function tt(e){return(tt="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)}function nt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rt(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 ot(e,t){return(ot=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function it(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=lt(e);if(t){var o=lt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return at(this,n)}}function at(e,t){if(t&&("object"===tt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function lt(e){return(lt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ut=function(e){!function(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}}),t&&ot(e,t)}(a,e);var t,n,r,i=it(a);function a(){return nt(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.field_data,n=e.form_values,r=e.show_if_regexes;return this.isFieldVisible(r,n)?o.createElement(o.Fragment,null,o.createElement("li",{className:"fcfOptions__row"},o.createElement("div",{className:"fcfOptions__info"},o.createElement("div",{className:"fcfOptions__infoInner",dangerouslySetInnerHTML:{__html:t.label}})))):null}}])&&rt(t.prototype,n),r&&rt(t,r),a}(F);function st(e){return(st="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)}function ct(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ft(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 dt(e,t){return(dt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function pt(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=ht(e);if(t){var o=ht(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return mt(this,n)}}function mt(e,t){if(t&&("object"===st(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function ht(e){return(ht=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var vt=function(e){!function(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}}),t&&dt(e,t)}(a,e);var t,n,r,i=pt(a);function a(){return ct(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.field_data,n=e.form_values,r=e.show_if_regexes;return this.isFieldVisible(r,n)?o.createElement(o.Fragment,null,o.createElement("li",{className:"fcfOptions__row"},o.createElement("div",{className:"fcfOptions__info fcfOptions__info--yellow"},o.createElement("div",{className:"fcfOptions__infoInner",dangerouslySetInnerHTML:{__html:t.label}})))):null}}])&&ft(t.prototype,n),r&&ft(t,r),a}(F);function gt(e){return(gt="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)}function bt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yt(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 _t(e,t){return(_t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function wt(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=St(e);if(t){var o=St(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Et(this,n)}}function Et(e,t){if(t&&("object"===gt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function St(e){return(St=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ot=function(e){!function(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}}),t&&_t(e,t)}(a,e);var t,n,r,i=wt(a);function a(){return bt(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.field_data,n=e.form_values,r=e.form_states,i=e.state_name,a=e.show_if_regexes,u=this.state.settings;return r[i]&&this.isFieldVisible(a,n)?o.createElement(o.Fragment,null,o.createElement("li",{className:"fcfOptions__row",ref:r[i].ref_wrapper},o.createElement(l,{unique_id:r[i].unique_id,field_data:t,settings:u}),o.createElement(v,{validation_error:r[i].validation_error}),o.createElement("input",{type:"number",id:r[i].unique_id,ref:r[i].ref_input,name:"_fcf_".concat(t.name),min:t.html_atts.min||"",max:t.html_atts.max||"",step:t.html_atts.step||"1",className:"fcfOptions__input",value:n[t.name]||"",onChange:t.readonly?null:this.onChangeValue.bind(this),disabled:t.readonly}))):null}},{key:"getValue",value:function(e){var t=this.props,n=t.form_states,r=t.state_name;return""===e.currentTarget.value?(e.currentTarget.value="",null):n[r].ref_input.current.value}}])&&yt(t.prototype,n),r&&yt(t,r),a}(F);function xt(e){return(xt="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)}function kt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ct(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 Pt(e,t){return(Pt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function It(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=Dt(e);if(t){var o=Dt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Rt(this,n)}}function Rt(e,t){if(t&&("object"===xt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Dt(e){return(Dt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Nt=function(e){!function(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}}),t&&Pt(e,t)}(a,e);var t,n,r,i=It(a);function a(){return kt(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this,t=this.props,n=t.field_data,r=t.form_values,i=t.form_states,a=t.state_name,u=t.show_if_regexes,s=this.state.settings;return i[a]&&this.isFieldVisible(u,r)?o.createElement(o.Fragment,null,o.createElement("li",{className:"fcfOptions__row",ref:i[a].ref_wrapper},o.createElement(l,{unique_id:i[a].unique_id,field_data:n,is_group_label:!0,settings:s}),o.createElement(v,{validation_error:i[a].validation_error})),Object.keys(n.items).map((function(t,l){return o.createElement("li",{className:"fcfOptions__row",key:l},o.createElement("input",{type:"radio",className:"fcfOptions__radio",id:"".concat(i[a].unique_id,"-").concat(l),ref:i[a].ref_input,name:"_fcf_".concat(n.name),value:t,defaultChecked:r[n.name]===t,onChange:e.onChangeValue.bind(e),disabled:n.readonly?null:n.readonly}),o.createElement("label",{htmlFor:"".concat(i[a].unique_id,"-").concat(l),className:"fcfOptions__label"},n.items[t]))}))):null}},{key:"getValue",value:function(e){return e.currentTarget.value}}])&&Ct(t.prototype,n),r&&Ct(t,r),a}(F);function Tt(e){return(Tt="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)}function Lt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function At(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 Mt(e,t){return(Mt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Bt(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=jt(e);if(t){var o=jt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ft(this,n)}}function Ft(e,t){if(t&&("object"===Tt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function jt(e){return(jt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Vt=function(e){!function(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}}),t&&Mt(e,t)}(a,e);var t,n,r,i=Bt(a);function a(){return Lt(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this,t=this.props,n=t.field_data,r=t.form_values,i=t.form_states,a=t.state_name,u=t.show_if_regexes,s=this.state.settings;return i[a]&&this.isFieldVisible(u,r)?o.createElement(o.Fragment,null,o.createElement("li",{className:"fcfOptions__row",ref:i[a].ref_wrapper},o.createElement(l,{unique_id:i[a].unique_id,field_data:n,settings:s}),o.createElement(v,{validation_error:i[a].validation_error}),o.createElement("div",{className:"fcfOptions__boxes"},n.field_groups.map((function(t,l){return o.createElement(o.Fragment,{key:l},o.createElement("div",{className:"fcfOptions__boxesTitle"},t.label),o.createElement("ul",{className:"fcfOptions__boxesItems"},n.items.map((function(l,u){return l.field_group===t.name?o.createElement("li",{className:"fcfOptions__boxesItem",key:u},o.createElement("input",{type:"radio",className:"fcfOptions__boxesItemInput",id:"".concat(i[a].unique_id,"-").concat(u),ref:i[a].ref_input,name:"_fcf_".concat(n.name),value:l.type,checked:r[n.name]===l.type,onChange:n.readonly?null:e.onChangeValue.bind(e),disabled:n.readonly}),o.createElement("label",{className:"fcfOptions__boxesItemLabel ".concat(l.icon),htmlFor:"".concat(i[a].unique_id,"-").concat(u)},l.label)):null}))))}))))):null}},{key:"getValue",value:function(e){return e.currentTarget.value}}])&&At(t.prototype,n),r&&At(t,r),a}(F);function Ut(e){return(Ut="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)}function zt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ht(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 Wt(e,t){return(Wt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Gt(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=$t(e);if(t){var o=$t(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return qt(this,n)}}function qt(e,t){if(t&&("object"===Ut(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function $t(e){return($t=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Yt=function(e){!function(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}}),t&&Wt(e,t)}(u,e);var t,n,i,a=Gt(u);function u(){return zt(this,u),a.apply(this,arguments)}return t=u,(n=[{key:"render",value:function(){var e=this,t=this.props,n=t.field_data,i=t.form_values,a=t.form_states,u=t.state_name,s=t.state_field_name,c=t.section_fields,f=t.show_if_regexes,d=this.state,p=d.events,m=d.settings,h=d.form_settings,v=d.validation_types,g=this.getRows();return a[u]&&this.isFieldVisible(f,i)?o.createElement(o.Fragment,null,n.label?o.createElement("li",{className:"fcfOptions__row"},o.createElement(l,{field_data:n,settings:m})):null,o.createElement("li",{className:"fcfOptions__row fcfOptions__row--lines fcfOptions__row--sub"},g.map((function(t){var l=!n.option_name_rows&&g.length>1;return o.createElement(o.Fragment,{key:t.key},o.createElement("ul",{className:"fcfOptions__columns"},o.createElement("li",{className:"fcfOptions__column"},o.createElement("div",{className:"fcfOptions__label fcfOptions__label--line"},o.createElement("div",{className:"fcfOptions__labelInner"},t.label)))),o.createElement("ul",{className:"fcfOptions__columns ".concat(l?"fcfOptions__columns--button":"")},n.items.map((function(l,u){var f=r[l.type],d=l.show_if_regexes,g=i[n.name][t.key]?i[n.name][t.key]:JSON.parse(JSON.stringify(l.default_value));return e.isFieldVisible(d,g)?o.createElement("li",{className:"fcfOptions__column",key:u},o.createElement("ul",{className:"fcfOptions__rows"},o.createElement(f,{field_data:l,form_values:g,form_states:a,state_name:"".concat(n.name,"_").concat(t.key,"_").concat(l.name),state_field_name:s,section_fields:c,onChangeValue:e.onChangeValue.bind(e,t.key),onChangeState:p.onChangeState,onRefreshForm:p.onRefreshForm,onValidationInit:p.onValidationInit,validation_types:v,settings:m,form_settings:h}))):null})),l?o.createElement("li",{className:"fcfOptions__column fcfOptions__column--small"},o.createElement("button",{type:"button",className:"fcfOptions__columnButton fcfOptions__columnButton--remove",onClick:e.removeRow.bind(e,t.key)})):null))})),n.option_name_rows?null:o.createElement("ul",{className:"fcfOptions__columns"},o.createElement("li",{className:"fcfOptions__column fcfOptions__column--center"},o.createElement("button",{type:"button",className:"fcfButton fcfButton--small fcfButton--border fcfButton--blue",onClick:this.addNewRow.bind(this)},m.i18n.button_add_row))))):null}},{key:"onChangeValue",value:function(e,t,n){var r=this.props,o=r.field_data,i=r.form_values,a=this.state.events,l=JSON.parse(JSON.stringify(i[o.name]));void 0===l[e]&&(l[e]={}),l[e][t]=n,a.onChangeValue(o.name,l,o.refresh_trigger)}},{key:"onChangeOptionState",value:function(e,t,n,r){var o=this.props.state_name;this.state.events.onChangeState(o,n,r)}},{key:"getRows",value:function(){var e=this.props,t=e.field_data,n=e.form_values,r=t.option_name_rows;return r&&void 0!==n[r]?this.getRowsByFieldValue():this.getRowsByAddedValues()}},{key:"getRowsByAddedValues",value:function(){for(var e=this.props,t=e.field_data,n=e.form_values,r=t.label_row,o=Object.keys(n[t.name]||{}),i=[],a=o.length,l=0;l<a;l++)i.push({key:o[l],label:r.replace("%s",l+1)});return i}},{key:"getRowsByFieldValue",value:function(){var e=this.props,t=e.field_data,n=e.form_values,r=t.option_name_rows,o=t.label_row,i=[];if(Array.isArray(n[r]))for(var a=n[r].length,l=0;l<a;l++)n[r][l]&&i.push({key:n[r][l].key,label:o.replace("%s",n[r][l].value)});else i.push({key:Object.keys(t.default_value)[0],label:o.replace("%s",n[r])});return i}},{key:"addNewRow",value:function(){var e=this.props.field_data,t=this.state.events,n=Object.values(this.props.form_values[e.name]),r=Object.keys(e.default_value);n.push(JSON.parse(JSON.stringify(e.default_value[r[0]]))),t.onChangeValue(e.name,n)}},{key:"removeRow",value:function(e){var t=this.props.field_data,n=this.state.events,r=JSON.parse(JSON.stringify(this.props.form_values[t.name]));delete r[e],r=r.filter((function(e){return null!==e})),n.onChangeValue(t.name,r,t.refresh_trigger)}}])&&Ht(t.prototype,n),i&&Ht(t,i),u}(F);function Qt(){return(Qt=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 Kt=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){0}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),Xt=Math.abs,Jt=String.fromCharCode;function Zt(e){return e.trim()}function en(e,t,n){return e.replace(t,n)}function tn(e,t){return e.indexOf(t)}function nn(e,t){return 0|e.charCodeAt(t)}function rn(e,t,n){return e.slice(t,n)}function on(e){return e.length}function an(e){return e.length}function ln(e,t){return t.push(e),e}var un=1,sn=1,cn=0,fn=0,dn=0,pn="";function mn(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:un,column:sn,length:a,return:""}}function hn(e,t,n){return mn(e,t.root,t.parent,n,t.props,t.children,0)}function vn(){return dn=fn>0?nn(pn,--fn):0,sn--,10===dn&&(sn=1,un--),dn}function gn(){return dn=fn<cn?nn(pn,fn++):0,sn++,10===dn&&(sn=1,un++),dn}function bn(){return nn(pn,fn)}function yn(){return fn}function _n(e,t){return rn(pn,e,t)}function wn(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function En(e){return un=sn=1,cn=on(pn=e),fn=0,[]}function Sn(e){return pn="",e}function On(e){return Zt(_n(fn-1,Cn(91===e?e+2:40===e?e+1:e)))}function xn(e){for(;(dn=bn())&&dn<33;)gn();return wn(e)>2||wn(dn)>3?"":" "}function kn(e,t){for(;--t&&gn()&&!(dn<48||dn>102||dn>57&&dn<65||dn>70&&dn<97););return _n(e,yn()+(t<6&&32==bn()&&32==gn()))}function Cn(e){for(;gn();)switch(dn){case e:return fn;case 34:case 39:return Cn(34===e||39===e?e:dn);case 40:41===e&&Cn(e);break;case 92:gn()}return fn}function Pn(e,t){for(;gn()&&e+dn!==57&&(e+dn!==84||47!==bn()););return"/*"+_n(t,fn-1)+"*"+Jt(47===e?e:gn())}function In(e){for(;!wn(bn());)gn();return _n(e,fn)}var Rn="-ms-",Dn="-moz-",Nn="-webkit-",Tn="comm",Ln="rule",An="decl";function Mn(e,t){for(var n="",r=an(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Bn(e,t,n,r){switch(e.type){case"@import":case An:return e.return=e.return||e.value;case Tn:return"";case Ln:e.value=e.props.join(",")}return on(n=Mn(e.children,r))?e.return=e.value+"{"+n+"}":""}function Fn(e,t){switch(function(e,t){return(((t<<2^nn(e,0))<<2^nn(e,1))<<2^nn(e,2))<<2^nn(e,3)}(e,t)){case 5103:return Nn+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Nn+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Nn+e+Dn+e+Rn+e+e;case 6828:case 4268:return Nn+e+Rn+e+e;case 6165:return Nn+e+Rn+"flex-"+e+e;case 5187:return Nn+e+en(e,/(\w+).+(:[^]+)/,"-webkit-box-$1$2-ms-flex-$1$2")+e;case 5443:return Nn+e+Rn+"flex-item-"+en(e,/flex-|-self/,"")+e;case 4675:return Nn+e+Rn+"flex-line-pack"+en(e,/align-content|flex-|-self/,"")+e;case 5548:return Nn+e+Rn+en(e,"shrink","negative")+e;case 5292:return Nn+e+Rn+en(e,"basis","preferred-size")+e;case 6060:return Nn+"box-"+en(e,"-grow","")+Nn+e+Rn+en(e,"grow","positive")+e;case 4554:return Nn+en(e,/([^-])(transform)/g,"$1-webkit-$2")+e;case 6187:return en(en(en(e,/(zoom-|grab)/,Nn+"$1"),/(image-set)/,Nn+"$1"),e,"")+e;case 5495:case 3959:return en(e,/(image-set\([^]*)/,Nn+"$1$`$1");case 4968:return en(en(e,/(.+:)(flex-)?(.*)/,"-webkit-box-pack:$3-ms-flex-pack:$3"),/s.+-b[^;]+/,"justify")+Nn+e+e;case 4095:case 3583:case 4068:case 2532:return en(e,/(.+)-inline(.+)/,Nn+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(on(e)-1-t>6)switch(nn(e,t+1)){case 109:if(45!==nn(e,t+4))break;case 102:return en(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1"+Dn+(108==nn(e,t+3)?"$3":"$2-$3"))+e;case 115:return~tn(e,"stretch")?Fn(en(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==nn(e,t+1))break;case 6444:switch(nn(e,on(e)-3-(~tn(e,"!important")&&10))){case 107:return en(e,":",":"+Nn)+e;case 101:return en(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Nn+(45===nn(e,14)?"inline-":"")+"box$3$1"+Nn+"$2$3$1"+Rn+"$2box$3")+e}break;case 5936:switch(nn(e,t+11)){case 114:return Nn+e+Rn+en(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Nn+e+Rn+en(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Nn+e+Rn+en(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Nn+e+Rn+e+e}return e}function jn(e){return Sn(Vn("",null,null,null,[""],e=En(e),0,[0],e))}function Vn(e,t,n,r,o,i,a,l,u){for(var s=0,c=0,f=a,d=0,p=0,m=0,h=1,v=1,g=1,b=0,y="",_=o,w=i,E=r,S=y;v;)switch(m=b,b=gn()){case 34:case 39:case 91:case 40:S+=On(b);break;case 9:case 10:case 13:case 32:S+=xn(m);break;case 92:S+=kn(yn()-1,7);continue;case 47:switch(bn()){case 42:case 47:ln(zn(Pn(gn(),yn()),t,n),u);break;default:S+="/"}break;case 123*h:l[s++]=on(S)*g;case 125*h:case 59:case 0:switch(b){case 0:case 125:v=0;case 59+c:p>0&&on(S)-f&&ln(p>32?Hn(S+";",r,n,f-1):Hn(en(S," ","")+";",r,n,f-2),u);break;case 59:S+=";";default:if(ln(E=Un(S,t,n,s,c,o,l,y,_=[],w=[],f),i),123===b)if(0===c)Vn(S,t,E,E,_,i,f,l,w);else switch(d){case 100:case 109:case 115:Vn(e,E,E,r&&ln(Un(e,E,E,0,0,o,l,y,o,_=[],f),w),o,w,f,l,r?_:w);break;default:Vn(S,E,E,E,[""],w,f,l,w)}}s=c=p=0,h=g=1,y=S="",f=a;break;case 58:f=1+on(S),p=m;default:if(h<1)if(123==b)--h;else if(125==b&&0==h++&&125==vn())continue;switch(S+=Jt(b),b*h){case 38:g=c>0?1:(S+="\f",-1);break;case 44:l[s++]=(on(S)-1)*g,g=1;break;case 64:45===bn()&&(S+=On(gn())),d=bn(),c=on(y=S+=In(yn())),b++;break;case 45:45===m&&2==on(S)&&(h=0)}}return i}function Un(e,t,n,r,o,i,a,l,u,s,c){for(var f=o-1,d=0===o?i:[""],p=an(d),m=0,h=0,v=0;m<r;++m)for(var g=0,b=rn(e,f+1,f=Xt(h=a[m])),y=e;g<p;++g)(y=Zt(h>0?d[g]+" "+b:en(b,/&\f/g,d[g])))&&(u[v++]=y);return mn(e,t,n,0===o?Ln:l,u,s,c)}function zn(e,t,n){return mn(e,t,n,Tn,Jt(dn),rn(e,2,-2),0)}function Hn(e,t,n,r){return mn(e,t,n,An,rn(e,0,r),rn(e,r+1,-1),r)}var Wn=function(e,t){return Sn(function(e,t){var n=-1,r=44;do{switch(wn(r)){case 0:38===r&&12===bn()&&(t[n]=1),e[n]+=In(fn-1);break;case 2:e[n]+=On(r);break;case 4:if(44===r){e[++n]=58===bn()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Jt(r)}}while(r=gn());return e}(En(e),t))},Gn=new WeakMap,qn=function(e){if("rule"===e.type&&e.parent&&e.length){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Gn.get(n))&&!r){Gn.set(e,!0);for(var o=[],i=Wn(t,o),a=n.props,l=0,u=0;l<i.length;l++)for(var s=0;s<a.length;s++,u++)e.props[u]=o[l]?i[l].replace(/&\f/g,a[s]):a[s]+" "+i[l]}}},$n=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},Yn=[function(e,t,n,r){if(!e.return)switch(e.type){case An:e.return=Fn(e.value,e.length);break;case"@keyframes":return Mn([hn(en(e.value,"@","@"+Nn),e,"")],r);case Ln:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Mn([hn(en(t,/:(read-\w+)/,":-moz-$1"),e,"")],r);case"::placeholder":return Mn([hn(en(t,/:(plac\w+)/,":-webkit-input-$1"),e,""),hn(en(t,/:(plac\w+)/,":-moz-$1"),e,""),hn(en(t,/:(plac\w+)/,Rn+"input-$1"),e,"")],r)}return""}))}}],Qn=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r=e.stylisPlugins||Yn;var o,i,a={},l=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;l.push(e)}));var u,s,c,f,d=[Bn,(f=function(e){u.insert(e)},function(e){e.root||(e=e.return)&&f(e)})],p=(s=[qn,$n].concat(r,d),c=an(s),function(e,t,n,r){for(var o="",i=0;i<c;i++)o+=s[i](e,t,n,r)||"";return o});i=function(e,t,n,r){u=n,Mn(jn(e?e+"{"+t.styles+"}":t.styles),p),r&&(m.inserted[t.name]=!0)};var m={key:t,sheet:new Kt({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend}),nonce:e.nonce,inserted:a,registered:{},insert:i};return m.sheet.hydrate(l),m};function Kn(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var Xn=function(e,t,n){var r=e.key+"-"+t.name;if(!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles),void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0);o=o.next}while(void 0!==o)}};var Jn=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},Zn={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var er=/[A-Z]|^ms/g,tr=/_EMO_([^_]+?)_([^]*?)_EMO_/g,nr=function(e){return 45===e.charCodeAt(1)},rr=function(e){return null!=e&&"boolean"!=typeof e},or=function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){return nr(e)?e:e.replace(er,"-$&").toLowerCase()})),ir=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(tr,(function(e,t,n){return lr={name:t,styles:n,next:lr},t}))}return 1===Zn[e]||nr(e)||"number"!=typeof t||0===t?t:t+"px"};function ar(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return lr={name:n.name,styles:n.styles,next:lr},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)lr={name:r.name,styles:r.styles,next:lr},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=ar(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":rr(a)&&(r+=or(i)+":"+ir(i,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=ar(e,t,a);switch(i){case"animation":case"animationName":r+=or(i)+":"+l+";";break;default:r+=i+"{"+l+"}"}}else for(var u=0;u<a.length;u++)rr(a[u])&&(r+=or(i)+":"+ir(i,a[u])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=lr,i=n(e);return lr=o,ar(e,t,i)}break;case"string":}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var lr,ur=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var sr=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";lr=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=ar(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++)o+=ar(n,t,e[a]),r&&(o+=i[a]);ur.lastIndex=0;for(var l,u="";null!==(l=ur.exec(o));)u+="-"+l[1];return{name:Jn(o)+u,styles:o,next:lr}},cr=Object.prototype.hasOwnProperty,fr=(0,o.createContext)("undefined"!=typeof HTMLElement?Qn({key:"css"}):null);var dr=fr.Provider,pr=function(e){return(0,o.forwardRef)((function(t,n){var r=(0,o.useContext)(fr);return e(t,r,n)}))},mr=(0,o.createContext)({});var hr="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",vr=function(e,t){var n={};for(var r in t)cr.call(t,r)&&(n[r]=t[r]);return n[hr]=e,n},gr=pr((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var i=e[hr],a=[r],l="";"string"==typeof e.className?l=Kn(t.registered,a,e.className):null!=e.className&&(l=e.className+" ");var u=sr(a,void 0,(0,o.useContext)(mr));Xn(t,u,"string"==typeof i);l+=t.key+"-"+u.name;var s={};for(var c in e)cr.call(e,c)&&"css"!==c&&c!==hr&&(s[c]=e[c]);return s.ref=n,s.className=l,(0,o.createElement)(i,s)}));var br=n(679),yr=n.n(br),_r=function(e,t){var n=arguments;if(null==t||!cr.call(t,"css"))return o.createElement.apply(void 0,n);var r=n.length,i=new Array(r);i[0]=gr,i[1]=vr(e,t);for(var a=2;a<r;a++)i[a]=n[a];return o.createElement.apply(null,i)};function wr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return sr(t)}var Er=function e(t){for(var n=t.length,r=0,o="";r<n;r++){var i=t[r];if(null!=i){var a=void 0;switch(typeof i){case"boolean":break;case"object":if(Array.isArray(i))a=e(i);else for(var l in a="",i)i[l]&&l&&(a&&(a+=" "),a+=l);break;default:a=i}a&&(o&&(o+=" "),o+=a)}}return o};function Sr(e,t,n){var r=[],o=Kn(e,r,n);return r.length<2?n:o+t(r)}var Or=pr((function(e,t){var n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=sr(n,t.registered);return Xn(t,o,!1),t.key+"-"+o.name},r={css:n,cx:function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return Sr(t.registered,n,Er(r))},theme:(0,o.useContext)(mr)},i=e.children(r);return!0,i}));function xr(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}function kr(e,t){if(null==e)return{};var n,r,o=xr(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 Cr(e){return(Cr="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 Pr=n(639);function Ir(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Rr(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 Dr(e,t,n){return t&&Rr(e.prototype,t),n&&Rr(e,n),e}function Nr(e,t){return(Nr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Tr(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}}),t&&Nr(e,t)}function Lr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ar(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mr(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 Br(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mr(Object(n),!0).forEach((function(t){Ar(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Fr(e){return(Fr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function jr(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Vr(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Fr(e);if(t){var o=Fr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return jr(this,n)}}var Ur=function(){};function zr(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function Hr(e,t,n){var r=[n];if(t&&e)for(var o in t)t.hasOwnProperty(o)&&t[o]&&r.push("".concat(zr(e,o)));return r.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var Wr=function(e){return Array.isArray(e)?e.filter(Boolean):"object"===Cr(e)&&null!==e?[e]:[]},Gr=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,Br({},kr(e,["className","clearValue","cx","getStyles","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"]))};function qr(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function $r(e){return qr(e)?window.pageYOffset:e.scrollTop}function Yr(e,t){qr(e)?window.scrollTo(0,t):e.scrollTop=t}function Qr(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function Kr(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Ur,o=$r(e),i=t-o,a=10,l=0;function u(){var t=Qr(l+=a,o,i,n);Yr(e,t),l<n?window.requestAnimationFrame(u):r(e)}u()}function Xr(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var Jr=!1,Zr={get passive(){return Jr=!0}},eo="undefined"!=typeof window?window:{};eo.addEventListener&&eo.removeEventListener&&(eo.addEventListener("p",Ur,Zr),eo.removeEventListener("p",Ur,!1));var to=Jr;function no(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,i=e.shouldScroll,a=e.isFixedPosition,l=e.theme.spacing,u=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/,o=document.documentElement;if("fixed"===t.position)return o;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return i;return o}(n),s={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return s;var c=u.getBoundingClientRect().height,f=n.getBoundingClientRect(),d=f.bottom,p=f.height,m=f.top,h=n.offsetParent.getBoundingClientRect().top,v=window.innerHeight,g=$r(u),b=parseInt(getComputedStyle(n).marginBottom,10),y=parseInt(getComputedStyle(n).marginTop,10),_=h-y,w=v-m,E=_+g,S=c-g-m,O=d-v+g+b,x=g+m-y,k=160;switch(o){case"auto":case"bottom":if(w>=p)return{placement:"bottom",maxHeight:t};if(S>=p&&!a)return i&&Kr(u,O,k),{placement:"bottom",maxHeight:t};if(!a&&S>=r||a&&w>=r)return i&&Kr(u,O,k),{placement:"bottom",maxHeight:a?w-b:S-b};if("auto"===o||a){var C=t,P=a?_:E;return P>=r&&(C=Math.min(P-b-l.controlHeight,t)),{placement:"top",maxHeight:C}}if("bottom"===o)return i&&Yr(u,O),{placement:"bottom",maxHeight:t};break;case"top":if(_>=p)return{placement:"top",maxHeight:t};if(E>=p&&!a)return i&&Kr(u,x,k),{placement:"top",maxHeight:t};if(!a&&E>=r||a&&_>=r){var I=t;return(!a&&E>=r||a&&_>=r)&&(I=a?_-y:E-y),i&&Kr(u,x,k),{placement:"top",maxHeight:I}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return s}var ro=function(e){return"auto"===e?"bottom":e},oo=(0,o.createContext)({getPortalPlacement:null}),io=function(e){Tr(n,e);var t=Vr(n);function n(){var e;Ir(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={maxHeight:e.props.maxMenuHeight,placement:null},e.getPlacement=function(t){var n=e.props,r=n.minMenuHeight,o=n.maxMenuHeight,i=n.menuPlacement,a=n.menuPosition,l=n.menuShouldScrollIntoView,u=n.theme;if(t){var s="fixed"===a,c=no({maxHeight:o,menuEl:t,minHeight:r,placement:i,shouldScroll:l&&!s,isFixedPosition:s,theme:u}),f=e.context.getPortalPlacement;f&&f(c),e.setState(c)}},e.getUpdatedProps=function(){var t=e.props.menuPlacement,n=e.state.placement||ro(t);return Br(Br({},e.props),{},{placement:n,maxHeight:e.state.maxHeight})},e}return Dr(n,[{key:"render",value:function(){return(0,this.props.children)({ref:this.getPlacement,placerProps:this.getUpdatedProps()})}}]),n}(o.Component);io.contextType=oo;var ao=function(e){var t=e.theme,n=t.spacing.baseUnit;return{color:t.colors.neutral40,padding:"".concat(2*n,"px ").concat(3*n,"px"),textAlign:"center"}},lo=ao,uo=ao,so=function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return _r("div",Qt({css:o("noOptionsMessage",e),className:r({"menu-notice":!0,"menu-notice--no-options":!0},n)},i),t)};so.defaultProps={children:"No options"};var co=function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return _r("div",Qt({css:o("loadingMessage",e),className:r({"menu-notice":!0,"menu-notice--loading":!0},n)},i),t)};co.defaultProps={children:"Loading..."};var fo,po=function(e){Tr(n,e);var t=Vr(n);function n(){var e;Ir(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={placement:null},e.getPortalPlacement=function(t){var n=t.placement;n!==ro(e.props.menuPlacement)&&e.setState({placement:n})},e}return Dr(n,[{key:"render",value:function(){var e=this.props,t=e.appendTo,n=e.children,r=e.className,o=e.controlElement,a=e.cx,l=e.innerProps,u=e.menuPlacement,s=e.menuPosition,c=e.getStyles,f="fixed"===s;if(!t&&!f||!o)return null;var d=this.state.placement||ro(u),p=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(o),m=f?0:window.pageYOffset,h=p[d]+m,v=_r("div",Qt({css:c("menuPortal",{offset:h,position:s,rect:p}),className:a({"menu-portal":!0},r)},l),n);return _r(oo.Provider,{value:{getPortalPlacement:this.getPortalPlacement}},t?(0,i.createPortal)(v,t):v)}}]),n}(o.Component);var mo,ho,vo={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},go=function(e){var t=e.size,n=kr(e,["size"]);return _r("svg",Qt({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:vo},n))},bo=function(e){return _r(go,Qt({size:20},e),_r("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},yo=function(e){return _r(go,Qt({size:20},e),_r("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},_o=function(e){var t=e.isFocused,n=e.theme,r=n.spacing.baseUnit,o=n.colors;return{label:"indicatorContainer",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*r,transition:"color 150ms",":hover":{color:t?o.neutral80:o.neutral40}}},wo=_o,Eo=_o,So=function(){var e=wr.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(fo||(mo=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],ho||(ho=mo.slice(0)),fo=Object.freeze(Object.defineProperties(mo,{raw:{value:Object.freeze(ho)}})))),Oo=function(e){var t=e.delay,n=e.offset;return _r("span",{css:wr({animation:"".concat(So," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":null,height:"1em",verticalAlign:"top",width:"1em"},"","")})},xo=function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerProps,i=e.isRtl;return _r("div",Qt({css:r("loadingIndicator",e),className:n({indicator:!0,"loading-indicator":!0},t)},o),_r(Oo,{delay:0,offset:i}),_r(Oo,{delay:160,offset:!0}),_r(Oo,{delay:320,offset:!i}))};xo.defaultProps={size:4};var ko=function(e){return{label:"input",background:0,border:0,fontSize:"inherit",opacity:e?0:1,outline:0,padding:0,color:"inherit"}},Co=function(e){var t=e.children,n=e.innerProps;return _r("div",n,t)},Po=Co,Io=Co;var Ro=function(e){var t=e.children,n=e.className,r=e.components,o=e.cx,i=e.data,a=e.getStyles,l=e.innerProps,u=e.isDisabled,s=e.removeProps,c=e.selectProps,f=r.Container,d=r.Label,p=r.Remove;return _r(Or,null,(function(r){var m=r.css,h=r.cx;return _r(f,{data:i,innerProps:Br({className:h(m(a("multiValue",e)),o({"multi-value":!0,"multi-value--is-disabled":u},n))},l),selectProps:c},_r(d,{data:i,innerProps:{className:h(m(a("multiValueLabel",e)),o({"multi-value__label":!0},n))},selectProps:c},t),_r(p,{data:i,innerProps:Br({className:h(m(a("multiValueRemove",e)),o({"multi-value__remove":!0},n))},s),selectProps:c}))}))};Ro.defaultProps={cropWithEllipsis:!0};var Do={ClearIndicator:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return _r("div",Qt({css:o("clearIndicator",e),className:r({indicator:!0,"clear-indicator":!0},n)},i),t||_r(bo,null))},Control:function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.className,i=e.isDisabled,a=e.isFocused,l=e.innerRef,u=e.innerProps,s=e.menuIsOpen;return _r("div",Qt({ref:l,css:r("control",e),className:n({control:!0,"control--is-disabled":i,"control--is-focused":a,"control--menu-is-open":s},o)},u),t)},DropdownIndicator:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return _r("div",Qt({css:o("dropdownIndicator",e),className:r({indicator:!0,"dropdown-indicator":!0},n)},i),t||_r(yo,null))},DownChevron:yo,CrossIcon:bo,Group:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.Heading,a=e.headingProps,l=e.innerProps,u=e.label,s=e.theme,c=e.selectProps;return _r("div",Qt({css:o("group",e),className:r({group:!0},n)},l),_r(i,Qt({},a,{selectProps:c,theme:s,getStyles:o,cx:r}),u),_r("div",null,t))},GroupHeading:function(e){var t=e.getStyles,n=e.cx,r=e.className,o=Gr(e);o.data;var i=kr(o,["data"]);return _r("div",Qt({css:t("groupHeading",e),className:n({"group-heading":!0},r)},i))},IndicatorsContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.innerProps,i=e.getStyles;return _r("div",Qt({css:i("indicatorsContainer",e),className:r({indicators:!0},n)},o),t)},IndicatorSeparator:function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerProps;return _r("span",Qt({},o,{css:r("indicatorSeparator",e),className:n({"indicator-separator":!0},t)}))},Input:function(e){var t=e.className,n=e.cx,r=e.getStyles,o=Gr(e),i=o.innerRef,a=o.isDisabled,l=o.isHidden,u=kr(o,["innerRef","isDisabled","isHidden"]);return _r("div",{css:r("input",e)},_r(Pr.Z,Qt({className:n({input:!0},t),inputRef:i,inputStyle:ko(l),disabled:a},u)))},LoadingIndicator:xo,Menu:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerRef,a=e.innerProps;return _r("div",Qt({css:o("menu",e),className:r({menu:!0},n),ref:i},a),t)},MenuList:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps,a=e.innerRef,l=e.isMulti;return _r("div",Qt({css:o("menuList",e),className:r({"menu-list":!0,"menu-list--is-multi":l},n),ref:a},i),t)},MenuPortal:po,LoadingMessage:co,NoOptionsMessage:so,MultiValue:Ro,MultiValueContainer:Po,MultiValueLabel:Io,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return _r("div",n,t||_r(bo,{size:14}))},Option:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.isDisabled,a=e.isFocused,l=e.isSelected,u=e.innerRef,s=e.innerProps;return _r("div",Qt({css:o("option",e),className:r({option:!0,"option--is-disabled":i,"option--is-focused":a,"option--is-selected":l},n),ref:u},s),t)},Placeholder:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return _r("div",Qt({css:o("placeholder",e),className:r({placeholder:!0},n)},i),t)},SelectContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps,a=e.isDisabled,l=e.isRtl;return _r("div",Qt({css:o("container",e),className:r({"--is-disabled":a,"--is-rtl":l},n)},i),t)},SingleValue:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.isDisabled,a=e.innerProps;return _r("div",Qt({css:o("singleValue",e),className:r({"single-value":!0,"single-value--is-disabled":i},n)},a),t)},ValueContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.innerProps,i=e.isMulti,a=e.getStyles,l=e.hasValue;return _r("div",Qt({css:a("valueContainer",e),className:r({"value-container":!0,"value-container--is-multi":i,"value-container--has-value":l},n)},o),t)}};function No(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 To(e){return function(e){if(Array.isArray(e))return No(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){if("string"==typeof e)return No(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)?No(e,t):void 0}}(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.")}()}var Lo=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Ao(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||Lo(r)&&Lo(o)))return!1;var r,o;return!0}var Mo=function(e,t){var n;void 0===t&&(t=Ao);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}};for(var Bo={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},Fo=function(e){return _r("span",Qt({css:Bo},e))},jo={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.isDisabled,o=e.tabSelectsValue;switch(e.context){case"menu":return"Use Up and Down to choose options".concat(r?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(o?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,o=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"select-option":return"option ".concat(r,o?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=void 0===n?{}:n,o=e.options,i=e.label,a=void 0===i?"":i,l=e.selectValue,u=e.isDisabled,s=e.isSelected,c=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&l)return"value ".concat(a," focused, ").concat(c(l,r),".");if("menu"===t){var f=u?" disabled":"",d="".concat(s?"selected":"focused").concat(f);return"option ".concat(a," ").concat(d,", ").concat(c(o,r),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},Vo=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,i=e.focusableOptions,a=e.isFocused,l=e.selectValue,u=e.selectProps,s=u.ariaLiveMessages,c=u.getOptionLabel,f=u.inputValue,d=u.isMulti,p=u.isOptionDisabled,m=u.isSearchable,h=u.menuIsOpen,v=u.options,g=u.screenReaderStatus,b=u.tabSelectsValue,y=u["aria-label"],_=u["aria-live"],w=(0,o.useMemo)((function(){return Br(Br({},jo),s||{})}),[s]),E=(0,o.useMemo)((function(){var e,n="";if(t&&w.onChange){var r=t.option,o=t.removedValue,i=t.value,a=o||r||(e=i,Array.isArray(e)?null:e),l=Br({isDisabled:a&&p(a),label:a?c(a):""},t);n=w.onChange(l)}return n}),[t,p,c,w]),S=(0,o.useMemo)((function(){var e="",t=n||r,o=!!(n&&l&&l.includes(n));if(t&&w.onFocus){var i={focused:t,label:c(t),isDisabled:p(t),isSelected:o,options:v,context:t===n?"menu":"value",selectValue:l};e=w.onFocus(i)}return e}),[n,r,c,p,w,v,l]),O=(0,o.useMemo)((function(){var e="";if(h&&v.length&&w.onFilter){var t=g({count:i.length});e=w.onFilter({inputValue:f,resultsMessage:t})}return e}),[i,f,h,w,v,g]),x=(0,o.useMemo)((function(){var e="";if(w.guidance){var t=r?"value":h?"menu":"input";e=w.guidance({"aria-label":y,context:t,isDisabled:n&&p(n),isMulti:d,isSearchable:m,tabSelectsValue:b})}return e}),[y,n,r,d,p,m,h,w,b]),k="".concat(S," ").concat(O," ").concat(x);return _r(Fo,{"aria-live":_,"aria-atomic":"false","aria-relevant":"additions text"},a&&_r(o.Fragment,null,_r("span",{id:"aria-selection"},E),_r("span",{id:"aria-context"},k)))},Uo=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],zo=new RegExp("["+Uo.map((function(e){return e.letters})).join("")+"]","g"),Ho={},Wo=0;Wo<Uo.length;Wo++)for(var Go=Uo[Wo],qo=0;qo<Go.letters.length;qo++)Ho[Go.letters[qo]]=Go.base;var $o=function(e){return e.replace(zo,(function(e){return Ho[e]}))},Yo=Mo($o),Qo=function(e){return e.replace(/^\s+|\s+$/g,"")},Ko=function(e){return"".concat(e.label," ").concat(e.value)};function Xo(e){e.in,e.out,e.onExited,e.appear,e.enter,e.exit;var t=e.innerRef;e.emotion;var n=kr(e,["in","out","onExited","appear","enter","exit","innerRef","emotion"]);return _r("input",Qt({ref:t},n,{css:wr({label:"dummyInput",background:0,border:0,fontSize:"inherit",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(0)"},"","")}))}var Jo=["boxSizing","height","overflow","paddingRight","position"],Zo={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function ei(e){e.preventDefault()}function ti(e){e.stopPropagation()}function ni(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function ri(){return"ontouchstart"in window||navigator.maxTouchPoints}var oi=!("undefined"==typeof window||!window.document||!window.document.createElement),ii=0,ai={capture:!1,passive:!1};var li=function(){return document.activeElement&&document.activeElement.blur()},ui={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function si(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,i=function(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,i=e.onTopArrive,a=e.onTopLeave,l=(0,o.useRef)(!1),u=(0,o.useRef)(!1),s=(0,o.useRef)(0),c=(0,o.useRef)(null),f=(0,o.useCallback)((function(e,t){if(null!==c.current){var o=c.current,s=o.scrollTop,f=o.scrollHeight,d=o.clientHeight,p=c.current,m=t>0,h=f-d-s,v=!1;h>t&&l.current&&(r&&r(e),l.current=!1),m&&u.current&&(a&&a(e),u.current=!1),m&&t>h?(n&&!l.current&&n(e),p.scrollTop=f,v=!0,l.current=!0):!m&&-t>s&&(i&&!u.current&&i(e),p.scrollTop=0,v=!0,u.current=!0),v&&function(e){e.preventDefault(),e.stopPropagation()}(e)}}),[]),d=(0,o.useCallback)((function(e){f(e,e.deltaY)}),[f]),p=(0,o.useCallback)((function(e){s.current=e.changedTouches[0].clientY}),[]),m=(0,o.useCallback)((function(e){var t=s.current-e.changedTouches[0].clientY;f(e,t)}),[f]),h=(0,o.useCallback)((function(e){if(e){var t=!!to&&{passive:!1};"function"==typeof e.addEventListener&&e.addEventListener("wheel",d,t),"function"==typeof e.addEventListener&&e.addEventListener("touchstart",p,t),"function"==typeof e.addEventListener&&e.addEventListener("touchmove",m,t)}}),[m,p,d]),v=(0,o.useCallback)((function(e){e&&("function"==typeof e.removeEventListener&&e.removeEventListener("wheel",d,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchstart",p,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchmove",m,!1))}),[m,p,d]);return(0,o.useEffect)((function(){if(t){var e=c.current;return h(e),function(){v(e)}}}),[t,h,v]),function(e){c.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),a=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,i=(0,o.useRef)({}),a=(0,o.useRef)(null),l=(0,o.useCallback)((function(e){if(oi){var t=document.body,n=t&&t.style;if(r&&Jo.forEach((function(e){var t=n&&n[e];i.current[e]=t})),r&&ii<1){var o=parseInt(i.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,l=window.innerWidth-a+o||0;Object.keys(Zo).forEach((function(e){var t=Zo[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(l,"px"))}t&&ri()&&(t.addEventListener("touchmove",ei,ai),e&&(e.addEventListener("touchstart",ni,ai),e.addEventListener("touchmove",ti,ai))),ii+=1}}),[]),u=(0,o.useCallback)((function(e){if(oi){var t=document.body,n=t&&t.style;ii=Math.max(ii-1,0),r&&ii<1&&Jo.forEach((function(e){var t=i.current[e];n&&(n[e]=t)})),t&&ri()&&(t.removeEventListener("touchmove",ei,ai),e&&(e.removeEventListener("touchstart",ni,ai),e.removeEventListener("touchmove",ti,ai)))}}),[]);return(0,o.useEffect)((function(){if(t){var e=a.current;return l(e),function(){u(e)}}}),[t,l,u]),function(e){a.current=e}}({isEnabled:n});return _r(o.Fragment,null,n&&_r("div",{onClick:li,css:ui}),t((function(e){i(e),a(e)})))}var ci={clearIndicator:Eo,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":null,pointerEvents:t?"none":null,position:"relative"}},control:function(e){var t=e.isDisabled,n=e.isFocused,r=e.theme,o=r.colors,i=r.borderRadius,a=r.spacing;return{label:"control",alignItems:"center",backgroundColor:t?o.neutral5:o.neutral0,borderColor:t?o.neutral10:n?o.primary:o.neutral20,borderRadius:i,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px ".concat(o.primary):null,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:a.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:n?o.primary:o.neutral30}}},dropdownIndicator:wo,group:function(e){var t=e.theme.spacing;return{paddingBottom:2*t.baseUnit,paddingTop:2*t.baseUnit}},groupHeading:function(e){var t=e.theme.spacing;return{label:"group",color:"#999",cursor:"default",display:"block",fontSize:"75%",fontWeight:"500",marginBottom:"0.25em",paddingLeft:3*t.baseUnit,paddingRight:3*t.baseUnit,textTransform:"uppercase"}},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing.baseUnit,o=n.colors;return{label:"indicatorSeparator",alignSelf:"stretch",backgroundColor:t?o.neutral10:o.neutral20,marginBottom:2*r,marginTop:2*r,width:1}},input:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,o=n.colors;return{margin:r.baseUnit/2,paddingBottom:r.baseUnit/2,paddingTop:r.baseUnit/2,visibility:t?"hidden":"visible",color:o.neutral80}},loadingIndicator:function(e){var t=e.isFocused,n=e.size,r=e.theme,o=r.colors,i=r.spacing.baseUnit;return{label:"loadingIndicator",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*i,transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"}},loadingMessage:uo,menu:function(e){var t,n=e.placement,r=e.theme,o=r.borderRadius,i=r.spacing,a=r.colors;return Lr(t={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(n),"100%"),Lr(t,"backgroundColor",a.neutral0),Lr(t,"borderRadius",o),Lr(t,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),Lr(t,"marginBottom",i.menuGutter),Lr(t,"marginTop",i.menuGutter),Lr(t,"position","absolute"),Lr(t,"width","100%"),Lr(t,"zIndex",1),t},menuList:function(e){var t=e.maxHeight,n=e.theme.spacing.baseUnit;return{maxHeight:t,overflowY:"auto",paddingBottom:n,paddingTop:n,position:"relative",WebkitOverflowScrolling:"touch"}},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius;return{label:"multiValue",backgroundColor:t.colors.neutral10,borderRadius:r/2,display:"flex",margin:n.baseUnit/2,minWidth:0}},multiValueLabel:function(e){var t=e.theme,n=t.borderRadius,r=t.colors,o=e.cropWithEllipsis;return{borderRadius:n/2,color:r.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:o?"ellipsis":null,whiteSpace:"nowrap"}},multiValueRemove:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius,o=t.colors;return{alignItems:"center",borderRadius:r/2,backgroundColor:e.isFocused&&o.dangerLight,display:"flex",paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}}},noOptionsMessage:lo,option:function(e){var t=e.isDisabled,n=e.isFocused,r=e.isSelected,o=e.theme,i=o.spacing,a=o.colors;return{label:"option",backgroundColor:r?a.primary:n?a.primary25:"transparent",color:t?a.neutral20:r?a.neutral0:"inherit",cursor:"default",display:"block",fontSize:"inherit",padding:"".concat(2*i.baseUnit,"px ").concat(3*i.baseUnit,"px"),width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",":active":{backgroundColor:!t&&(r?a.primary:a.primary50)}}},placeholder:function(e){var t=e.theme,n=t.spacing;return{label:"placeholder",color:t.colors.neutral50,marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2,position:"absolute",top:"50%",transform:"translateY(-50%)"}},singleValue:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,o=n.colors;return{label:"singleValue",color:t?o.neutral40:o.neutral80,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2,maxWidth:"calc(100% - ".concat(2*r.baseUnit,"px)"),overflow:"hidden",position:"absolute",textOverflow:"ellipsis",whiteSpace:"nowrap",top:"50%",transform:"translateY(-50%)"}},valueContainer:function(e){var t=e.theme.spacing;return{alignItems:"center",display:"flex",flex:1,flexWrap:"wrap",padding:"".concat(t.baseUnit/2,"px ").concat(2*t.baseUnit,"px"),WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"}}};var fi={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},di={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Xr(),captureMenuScroll:!Xr(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e){return function(t,n){var r=Br({ignoreCase:!0,ignoreAccents:!0,stringify:Ko,trim:!0,matchFrom:"any"},e),o=r.ignoreCase,i=r.ignoreAccents,a=r.stringify,l=r.trim,u=r.matchFrom,s=l?Qo(n):n,c=l?Qo(a(t)):a(t);return o&&(s=s.toLowerCase(),c=c.toLowerCase()),i&&(s=Yo(s),c=$o(c)),"start"===u?c.substr(0,s.length)===s:c.indexOf(s)>-1}}(),formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:"0",tabSelectsValue:!0};function pi(e,t,n,r){return{type:"option",data:t,isDisabled:yi(e,t,n),isSelected:_i(e,t,n),label:gi(e,t),value:bi(e,t),index:r}}function mi(e,t){return e.options.map((function(n,r){if(n.options){var o=n.options.map((function(n,r){return pi(e,n,t,r)})).filter((function(t){return vi(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=pi(e,n,t,r);return vi(e,i)?i:void 0})).filter((function(e){return!!e}))}function hi(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,To(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function vi(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,i=t.isSelected,a=t.label,l=t.value;return(!Ei(e)||!i)&&wi(e,{label:a,value:l,data:o},r)}var gi=function(e,t){return e.getOptionLabel(t)},bi=function(e,t){return e.getOptionValue(t)};function yi(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function _i(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=bi(e,t);return n.some((function(t){return bi(e,t)===r}))}function wi(e,t,n){return!e.filterOption||e.filterOption(t,n)}var Ei=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},Si=1,Oi=function(e){Tr(n,e);var t=Vr(n);function n(e){var r;return Ir(this,n),(r=t.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},r.blockOptionHover=!1,r.isComposing=!1,r.commonProps=void 0,r.initialTouchX=0,r.initialTouchY=0,r.instancePrefix="",r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.controlRef=null,r.getControlRef=function(e){r.controlRef=e},r.focusedOptionRef=null,r.getFocusedOptionRef=function(e){r.focusedOptionRef=e},r.menuListRef=null,r.getMenuListRef=function(e){r.menuListRef=e},r.inputRef=null,r.getInputRef=function(e){r.inputRef=e},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(e,t){var n=r.props,o=n.onChange,i=n.name;t.name=i,r.ariaOnChange(e,t),o(e,t)},r.setValue=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"set-value",n=arguments.length>2?arguments[2]:void 0,o=r.props,i=o.closeMenuOnSelect,a=o.isMulti;r.onInputChange("",{action:"set-value"}),i&&(r.setState({inputIsHiddenAfterUpdate:!a}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(e,{action:t,option:n})},r.selectOption=function(e){var t=r.props,n=t.blurInputOnSelect,o=t.isMulti,i=t.name,a=r.state.selectValue,l=o&&r.isOptionSelected(e,a),u=r.isOptionDisabled(e,a);if(l){var s=r.getOptionValue(e);r.setValue(a.filter((function(e){return r.getOptionValue(e)!==s})),"deselect-option",e)}else{if(u)return void r.ariaOnChange(e,{action:"select-option",name:i});o?r.setValue([].concat(To(a),[e]),"select-option",e):r.setValue(e,"select-option")}n&&r.blurInput()},r.removeValue=function(e){var t=r.props.isMulti,n=r.state.selectValue,o=r.getOptionValue(e),i=n.filter((function(e){return r.getOptionValue(e)!==o})),a=t?i:i[0]||null;r.onChange(a,{action:"remove-value",removedValue:e}),r.focusInput()},r.clearValue=function(){var e=r.state.selectValue;r.onChange(r.props.isMulti?[]:null,{action:"clear",removedValues:e})},r.popValue=function(){var e=r.props.isMulti,t=r.state.selectValue,n=t[t.length-1],o=t.slice(0,t.length-1),i=e?o:o[0]||null;r.onChange(i,{action:"pop-value",removedValue:n})},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Hr.apply(void 0,[r.props.classNamePrefix].concat(t))},r.getOptionLabel=function(e){return gi(r.props,e)},r.getOptionValue=function(e){return bi(r.props,e)},r.getStyles=function(e,t){var n=ci[e](t);n.boxSizing="border-box";var o=r.props.styles[e];return o?o(n,t):n},r.getElementId=function(e){return"".concat(r.instancePrefix,"-").concat(e)},r.getComponents=function(){return e=r.props,Br(Br({},Do),e.components);var e},r.buildCategorizedOptions=function(){return mi(r.props,r.state.selectValue)},r.getCategorizedOptions=function(){return r.props.menuIsOpen?r.buildCategorizedOptions():[]},r.buildFocusableOptions=function(){return hi(r.buildCategorizedOptions())},r.getFocusableOptions=function(){return r.props.menuIsOpen?r.buildFocusableOptions():[]},r.ariaOnChange=function(e,t){r.setState({ariaSelection:Br({value:e},t)})},r.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),r.focusInput())},r.onMenuMouseMove=function(e){r.blockOptionHover=!1},r.onControlMouseDown=function(e){var t=r.props.openMenuOnClick;r.state.isFocused?r.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&r.onMenuClose():t&&r.openMenu("first"):(t&&(r.openAfterFocus=!0),r.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()},r.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||r.props.isDisabled)){var t=r.props,n=t.isMulti,o=t.menuIsOpen;r.focusInput(),o?(r.setState({inputIsHiddenAfterUpdate:!n}),r.onMenuClose()):r.openMenu("first"),e.preventDefault(),e.stopPropagation()}},r.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(r.clearValue(),e.stopPropagation(),r.openAfterFocus=!1,"touchend"===e.type?r.focusInput():setTimeout((function(){return r.focusInput()})))},r.onScroll=function(e){"boolean"==typeof r.props.closeMenuOnScroll?e.target instanceof HTMLElement&&qr(e.target)&&r.props.onMenuClose():"function"==typeof r.props.closeMenuOnScroll&&r.props.closeMenuOnScroll(e)&&r.props.onMenuClose()},r.onCompositionStart=function(){r.isComposing=!0},r.onCompositionEnd=function(){r.isComposing=!1},r.onTouchStart=function(e){var t=e.touches,n=t&&t.item(0);n&&(r.initialTouchX=n.clientX,r.initialTouchY=n.clientY,r.userIsDragging=!1)},r.onTouchMove=function(e){var t=e.touches,n=t&&t.item(0);if(n){var o=Math.abs(n.clientX-r.initialTouchX),i=Math.abs(n.clientY-r.initialTouchY);r.userIsDragging=o>5||i>5}},r.onTouchEnd=function(e){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(e.target)&&r.menuListRef&&!r.menuListRef.contains(e.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(e){r.userIsDragging||r.onControlMouseDown(e)},r.onClearIndicatorTouchEnd=function(e){r.userIsDragging||r.onClearIndicatorMouseDown(e)},r.onDropdownIndicatorTouchEnd=function(e){r.userIsDragging||r.onDropdownIndicatorMouseDown(e)},r.handleInputChange=function(e){var t=e.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(t,{action:"input-change"}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(e){r.props.onFocus&&r.props.onFocus(e),r.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(e){r.menuListRef&&r.menuListRef.contains(document.activeElement)?r.inputRef.focus():(r.props.onBlur&&r.props.onBlur(e),r.onInputChange("",{action:"input-blur"}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1}))},r.onOptionHover=function(e){r.blockOptionHover||r.state.focusedOption===e||r.setState({focusedOption:e})},r.shouldHideSelectedOptions=function(){return Ei(r.props)},r.onKeyDown=function(e){var t=r.props,n=t.isMulti,o=t.backspaceRemovesValue,i=t.escapeClearsValue,a=t.inputValue,l=t.isClearable,u=t.isDisabled,s=t.menuIsOpen,c=t.onKeyDown,f=t.tabSelectsValue,d=t.openMenuOnFocus,p=r.state,m=p.focusedOption,h=p.focusedValue,v=p.selectValue;if(!(u||"function"==typeof c&&(c(e),e.defaultPrevented))){switch(r.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||a)return;r.focusValue("previous");break;case"ArrowRight":if(!n||a)return;r.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(h)r.removeValue(h);else{if(!o)return;n?r.popValue():l&&r.clearValue()}break;case"Tab":if(r.isComposing)return;if(e.shiftKey||!s||!f||!m||d&&r.isOptionSelected(m,v))return;r.selectOption(m);break;case"Enter":if(229===e.keyCode)break;if(s){if(!m)return;if(r.isComposing)return;r.selectOption(m);break}return;case"Escape":s?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close"}),r.onMenuClose()):l&&i&&r.clearValue();break;case" ":if(a)return;if(!s){r.openMenu("first");break}if(!m)return;r.selectOption(m);break;case"ArrowUp":s?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":s?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!s)return;r.focusOption("pageup");break;case"PageDown":if(!s)return;r.focusOption("pagedown");break;case"Home":if(!s)return;r.focusOption("first");break;case"End":if(!s)return;r.focusOption("last");break;default:return}e.preventDefault()}},r.instancePrefix="react-select-"+(r.props.instanceId||++Si),r.state.selectValue=Wr(e.value),r}return Dr(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput()}},{key:"componentDidUpdate",value:function(e){var t,n,r,o,i,a=this.props,l=a.isDisabled,u=a.menuIsOpen,s=this.state.isFocused;(s&&!l&&e.isDisabled||s&&u&&!e.menuIsOpen)&&this.focusInput(),s&&l&&!e.isDisabled&&this.setState({isFocused:!1},this.onMenuClose),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(t=this.menuListRef,n=this.focusedOptionRef,r=t.getBoundingClientRect(),o=n.getBoundingClientRect(),i=n.offsetHeight/3,o.bottom+i>r.bottom?Yr(t,Math.min(n.offsetTop+n.clientHeight-t.offsetHeight+i,t.scrollHeight)):o.top-i<r.top&&Yr(t,Math.max(n.offsetTop-i,0)),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close"}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,i=this.buildFocusableOptions(),a="first"===e?0:i.length-1;if(!this.props.isMulti){var l=i.indexOf(r[0]);l>-1&&(a=l)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[a]},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=n.indexOf(r);r||(o=-1);var i=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===o?0:-1===o?i:o-1;break;case"next":o>-1&&o<i&&(a=o+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,i=r.indexOf(n);n||(i=-1),"up"===e?o=i>0?i-1:r.length-1:"down"===e?o=(i+1)%r.length:"pageup"===e?(o=i-t)<0&&(o=0):"pagedown"===e?(o=i+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(fi):Br(Br({},fi),this.props.theme):fi}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getValue,o=this.selectOption,i=this.setValue,a=this.props,l=a.isMulti,u=a.isRtl,s=a.options;return{clearValue:e,cx:t,getStyles:n,getValue:r,hasValue:this.hasValue(),isMulti:l,isRtl:u,options:s,selectOption:o,selectProps:a,setValue:i,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return yi(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return _i(this.props,e,t)}},{key:"filterOption",value:function(e,t){return wi(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,i=e.inputValue,a=e.tabIndex,l=e.form,u=this.getComponents().Input,s=this.state.inputIsHidden,c=this.commonProps,f=r||this.getElementId("input"),d={"aria-autocomplete":"list","aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"]};return n?o.createElement(u,Qt({},c,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:f,innerRef:this.getInputRef,isDisabled:t,isHidden:s,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:a,form:l,type:"text",value:i},d)):o.createElement(Xo,Qt({id:f,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Ur,onFocus:this.onInputFocus,readOnly:!0,disabled:t,tabIndex:a,form:l,value:""},d))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,i=t.MultiValueLabel,a=t.MultiValueRemove,l=t.SingleValue,u=t.Placeholder,s=this.commonProps,c=this.props,f=c.controlShouldRenderValue,d=c.isDisabled,p=c.isMulti,m=c.inputValue,h=c.placeholder,v=this.state,g=v.selectValue,b=v.focusedValue,y=v.isFocused;if(!this.hasValue()||!f)return m?null:o.createElement(u,Qt({},s,{key:"placeholder",isDisabled:d,isFocused:y}),h);if(p)return g.map((function(t,l){var u=t===b;return o.createElement(n,Qt({},s,{components:{Container:r,Label:i,Remove:a},isFocused:u,isDisabled:d,key:"".concat(e.getOptionValue(t)).concat(l),index:l,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault(),e.stopPropagation()}},data:t}),e.formatOptionLabel(t,"value"))}));if(m)return null;var _=g[0];return o.createElement(l,Qt({},s,{data:_,isDisabled:d}),this.formatOptionLabel(_,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,i=n.isLoading,a=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||i)return null;var l={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return o.createElement(e,Qt({},t,{innerProps:l,isFocused:a}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,i=n.isLoading,a=this.state.isFocused;if(!e||!i)return null;return o.createElement(e,Qt({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:a}))}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,i=this.props.isDisabled,a=this.state.isFocused;return o.createElement(n,Qt({},r,{isDisabled:i,isFocused:a}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,i={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return o.createElement(e,Qt({},t,{innerProps:i,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,r=t.GroupHeading,i=t.Menu,a=t.MenuList,l=t.MenuPortal,u=t.LoadingMessage,s=t.NoOptionsMessage,c=t.Option,f=this.commonProps,d=this.state.focusedOption,p=this.props,m=p.captureMenuScroll,h=p.inputValue,v=p.isLoading,g=p.loadingMessage,b=p.minMenuHeight,y=p.maxMenuHeight,_=p.menuIsOpen,w=p.menuPlacement,E=p.menuPosition,S=p.menuPortalTarget,O=p.menuShouldBlockScroll,x=p.menuShouldScrollIntoView,k=p.noOptionsMessage,C=p.onMenuScrollToTop,P=p.onMenuScrollToBottom;if(!_)return null;var I,R=function(t,n){var r=t.type,i=t.data,a=t.isDisabled,l=t.isSelected,u=t.label,s=t.value,p=d===i,m=a?void 0:function(){return e.onOptionHover(i)},h=a?void 0:function(){return e.selectOption(i)},v="".concat(e.getElementId("option"),"-").concat(n),g={id:v,onClick:h,onMouseMove:m,onMouseOver:m,tabIndex:-1};return o.createElement(c,Qt({},f,{innerProps:g,data:i,isDisabled:a,isSelected:l,key:v,label:u,type:r,value:s,isFocused:p,innerRef:p?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())I=this.getCategorizedOptions().map((function(t){if("group"===t.type){var i=t.data,a=t.options,l=t.index,u="".concat(e.getElementId("group"),"-").concat(l),s="".concat(u,"-heading");return o.createElement(n,Qt({},f,{key:u,data:i,options:a,Heading:r,headingProps:{id:s,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return R(e,"".concat(l,"-").concat(e.index))})))}if("option"===t.type)return R(t,"".concat(t.index))}));else if(v){var D=g({inputValue:h});if(null===D)return null;I=o.createElement(u,f,D)}else{var N=k({inputValue:h});if(null===N)return null;I=o.createElement(s,f,N)}var T={minMenuHeight:b,maxMenuHeight:y,menuPlacement:w,menuPosition:E,menuShouldScrollIntoView:x},L=o.createElement(io,Qt({},f,T),(function(t){var n=t.ref,r=t.placerProps,l=r.placement,u=r.maxHeight;return o.createElement(i,Qt({},f,T,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:v,placement:l}),o.createElement(si,{captureEnabled:m,onTopArrive:C,onBottomArrive:P,lockEnabled:O},(function(t){return o.createElement(a,Qt({},f,{innerRef:function(n){e.getMenuListRef(n),t(n)},isLoading:v,maxHeight:u,focusedOption:d}),I)})))}));return S||"fixed"===E?o.createElement(l,Qt({},f,{appendTo:S,controlElement:this.controlRef,menuPlacement:w,menuPosition:E}),L):L}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,i=t.isMulti,a=t.name,l=this.state.selectValue;if(a&&!r){if(i){if(n){var u=l.map((function(t){return e.getOptionValue(t)})).join(n);return o.createElement("input",{name:a,type:"hidden",value:u})}var s=l.length>0?l.map((function(t,n){return o.createElement("input",{key:"i-".concat(n),name:a,type:"hidden",value:e.getOptionValue(t)})})):o.createElement("input",{name:a,type:"hidden"});return o.createElement("div",null,s)}var c=l[0]?this.getOptionValue(l[0]):"";return o.createElement("input",{name:a,type:"hidden",value:c})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,i=t.focusedValue,a=t.isFocused,l=t.selectValue,u=this.getFocusableOptions();return o.createElement(Vo,Qt({},e,{ariaSelection:n,focusedOption:r,focusedValue:i,isFocused:a,selectValue:l,focusableOptions:u}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,i=e.ValueContainer,a=this.props,l=a.className,u=a.id,s=a.isDisabled,c=a.menuIsOpen,f=this.state.isFocused,d=this.commonProps=this.getCommonProps();return o.createElement(r,Qt({},d,{className:l,innerProps:{id:u,onKeyDown:this.onKeyDown},isDisabled:s,isFocused:f}),this.renderLiveRegion(),o.createElement(t,Qt({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:s,isFocused:f,menuIsOpen:c}),o.createElement(i,Qt({},d,{isDisabled:s}),this.renderPlaceholderOrValue(),this.renderInput()),o.createElement(n,Qt({},d,{isDisabled:s}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,i=e.options,a=e.value,l=e.menuIsOpen,u=e.inputValue,s={};if(n&&(a!==n.value||i!==n.options||l!==n.menuIsOpen||u!==n.inputValue)){var c=Wr(a),f=l?function(e,t){return hi(mi(e,t))}(e,c):[],d=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,c):null;s={selectValue:c,focusedOption:function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,f),focusedValue:d,clearFocusValueOnUpdate:!1}}var p=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{};return Br(Br(Br({},s),p),{},{prevProps:e})}}]),n}(o.Component);Oi.defaultProps=di;var xi,ki,Ci,Pi={defaultInputValue:"",defaultMenuIsOpen:!1,defaultValue:null},Ii=function(e){var t,n;return n=t=function(t){Tr(r,t);var n=Vr(r);function r(){var e;Ir(this,r);for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return(e=n.call.apply(n,[this].concat(o))).select=void 0,e.state={inputValue:void 0!==e.props.inputValue?e.props.inputValue:e.props.defaultInputValue,menuIsOpen:void 0!==e.props.menuIsOpen?e.props.menuIsOpen:e.props.defaultMenuIsOpen,value:void 0!==e.props.value?e.props.value:e.props.defaultValue},e.onChange=function(t,n){e.callProp("onChange",t,n),e.setState({value:t})},e.onInputChange=function(t,n){var r=e.callProp("onInputChange",t,n);e.setState({inputValue:void 0!==r?r:t})},e.onMenuOpen=function(){e.callProp("onMenuOpen"),e.setState({menuIsOpen:!0})},e.onMenuClose=function(){e.callProp("onMenuClose"),e.setState({menuIsOpen:!1})},e}return Dr(r,[{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"getProp",value:function(e){return void 0!==this.props[e]?this.props[e]:this.state[e]}},{key:"callProp",value:function(e){if("function"==typeof this.props[e]){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return(t=this.props)[e].apply(t,r)}}},{key:"render",value:function(){var t=this,n=this.props;n.defaultInputValue,n.defaultMenuIsOpen,n.defaultValue;var r=kr(n,["defaultInputValue","defaultMenuIsOpen","defaultValue"]);return o.createElement(e,Qt({},r,{ref:function(e){t.select=e},inputValue:this.getProp("inputValue"),menuIsOpen:this.getProp("menuIsOpen"),onChange:this.onChange,onInputChange:this.onInputChange,onMenuClose:this.onMenuClose,onMenuOpen:this.onMenuOpen,value:this.getProp("value")}))}}]),r}(o.Component),t.defaultProps=Pi,n},Ri=(o.Component,Ii(Oi)),Di={cacheOptions:!1,defaultOptions:!1,filterOption:null,isLoading:!1},Ni=Ii(Oi),Ti=(xi=Ni,Ci=ki=function(e){Tr(n,e);var t=Vr(n);function n(e){var r;return Ir(this,n),(r=t.call(this)).select=void 0,r.lastRequest=void 0,r.mounted=!1,r.handleInputChange=function(e,t){var n=r.props,o=n.cacheOptions,i=function(e,t,n){if(n){var r=n(e,t);if("string"==typeof r)return r}return e}(e,t,n.onInputChange);if(!i)return delete r.lastRequest,void r.setState({inputValue:"",loadedInputValue:"",loadedOptions:[],isLoading:!1,passEmptyOptions:!1});if(o&&r.state.optionsCache[i])r.setState({inputValue:i,loadedInputValue:i,loadedOptions:r.state.optionsCache[i],isLoading:!1,passEmptyOptions:!1});else{var a=r.lastRequest={};r.setState({inputValue:i,isLoading:!0,passEmptyOptions:!r.state.loadedInputValue},(function(){r.loadOptions(i,(function(e){r.mounted&&a===r.lastRequest&&(delete r.lastRequest,r.setState((function(t){return{isLoading:!1,loadedInputValue:i,loadedOptions:e||[],passEmptyOptions:!1,optionsCache:e?Br(Br({},t.optionsCache),{},Lr({},i,e)):t.optionsCache}})))}))}))}return i},r.state={defaultOptions:Array.isArray(e.defaultOptions)?e.defaultOptions:void 0,inputValue:void 0!==e.inputValue?e.inputValue:"",isLoading:!0===e.defaultOptions,loadedOptions:[],passEmptyOptions:!1,optionsCache:{},prevDefaultOptions:void 0,prevCacheOptions:void 0},r}return Dr(n,[{key:"componentDidMount",value:function(){var e=this;this.mounted=!0;var t=this.props.defaultOptions,n=this.state.inputValue;!0===t&&this.loadOptions(n,(function(t){if(e.mounted){var n=!!e.lastRequest;e.setState({defaultOptions:t||[],isLoading:n})}}))}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"loadOptions",value:function(e,t){var n=this.props.loadOptions;if(!n)return t();var r=n(e,t);r&&"function"==typeof r.then&&r.then(t,(function(){return t()}))}},{key:"render",value:function(){var e=this,t=this.props;t.loadOptions;var n=t.isLoading,r=kr(t,["loadOptions","isLoading"]),i=this.state,a=i.defaultOptions,l=i.inputValue,u=i.isLoading,s=i.loadedInputValue,c=i.loadedOptions,f=i.passEmptyOptions?[]:l&&s?c:a||[];return o.createElement(xi,Qt({},r,{ref:function(t){e.select=t},options:f,isLoading:u||n,onInputChange:this.handleInputChange}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.cacheOptions!==t.prevCacheOptions?{prevCacheOptions:e.cacheOptions,optionsCache:{}}:{},r=e.defaultOptions!==t.prevDefaultOptions?{prevDefaultOptions:e.defaultOptions,defaultOptions:Array.isArray(e.defaultOptions)?e.defaultOptions:void 0}:{};return Br(Br({},n),r)}}]),n}(o.Component),ki.defaultProps=Di,Ci);function Li(e){return(Li="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)}function Ai(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 Mi(e,t,n){return(Mi="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Ui(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function Bi(e,t){return(Bi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Fi(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=Ui(e);if(t){var o=Ui(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ji(this,n)}}function ji(e,t){if(t&&("object"===Li(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Vi(e)}function Vi(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ui(e){return(Ui=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var zi=function(e){!function(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}}),t&&Bi(e,t)}(a,e);var t,n,r,i=Fi(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e))._field_items=new E(t.state.handlers.api_loader,e.field_data,e.section_fields,t.onUpdateLoadingStatus.bind(Vi(t)),t.onUpdateItems.bind(Vi(t))),t.searched_input_value=null,e.onRefreshForm&&e.onRefreshForm((function(){setTimeout(t.refreshItems.bind(Vi(t),!1),0)})),t.onChangeState("items",e.field_data.items||[]),t}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.field_data,n=e.form_values,r=e.form_states,i=e.state_name,a=e.show_if_regexes,u=this.state.settings;if(!r[i]||!this.isFieldVisible(a,n))return null;var s=this.parseItems(r[i].items),c=t.endpoint_route?Ti:Ri;return o.createElement(o.Fragment,null,o.createElement("li",{className:"fcfOptions__row",ref:r[i].ref_wrapper},o.createElement(l,{unique_id:r[i].unique_id,field_data:t,settings:u}),o.createElement(v,{validation_error:r[i].validation_error}),o.createElement(c,{id:r[i].unique_id,name:"_fcf_".concat(t.name),className:"fcfOptions__select",classNamePrefix:"fcfSelect",value:s.filter((function(e){return e.value===n[t.name]})),options:s,defaultOptions:s,loadOptions:this.loadOptions.bind(this),isSearchable:!t.html_atts.not_searchable,placeholder:u.i18n[t.endpoint_route?"select_async_placeholder":"select_placeholder"],noOptionsMessage:function(){return r[i].is_loading?u.i18n.select_loading:u.i18n.select_empty},openMenuOnClick:!0,isDisabled:t.readonly,onChange:t.readonly?null:this.onChangeValue.bind(this),onInputChange:this.onRefreshItemsAfterInputChange.bind(this)})))}},{key:"componentDidMount",value:function(){Mi(Ui(a.prototype),"componentDidMount",this).call(this);var e=this.props.field_data;if(this.refreshItems(!1),e.endpoint_autorefresh){var t=this.state.settings;window.addEventListener(t.events.refresh_field,this.refreshItems.bind(this,!0))}}},{key:"componentWillUnmount",value:function(){Mi(Ui(a.prototype),"componentWillUnmount",this).call(this),this.onValidationError(null)}},{key:"onUpdateLoadingStatus",value:function(e){this.onChangeState("is_loading",e)}},{key:"onUpdateItems",value:function(e){if(this._isMounted){for(var t=this.props,n=t.field_data,r=t.form_values,o=t.form_states,i=t.state_name,a=Array.from(r[n.name]),l=o[i].items,u=0;u<a.length;u++)void 0!==l[a[u]]&&(e[a[u]]=l[a[u]]);this.onChangeState("items",e),this.resetDefaultValue(),this.forceUpdate()}}},{key:"onRefreshItemsAfterInputChange",value:function(e){var t=this;setTimeout((function(){e!==t.searched_input_value&&t.refreshItems(!0,e)}),0)}},{key:"getValue",value:function(e){return e?e.value:""}},{key:"loadOptions",value:function(e){var t=this,n=this.props,r=n.form_states,o=n.state_name;return new Promise((function(n){new Promise((function(n){t.refreshItems(!0,e,n)})).then((function(){var e=t.parseItems(r[o].items);n(e)}))}))}},{key:"refreshItems",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=this.props,o=r.field_data,i=r.form_states,a=r.state_name,l=r.state_field_name,u=r.form_values,s=this.state.form_settings;o.endpoint_route&&(this.searched_input_value=t,this._field_items.refreshItems(i[a].unique_id,l,s.form_index,e,u,u[o.name]||"",t,n))}},{key:"resetDefaultValue",value:function(){this.isAvailableValue()||this.onChangeValue(null)}},{key:"isAvailableValue",value:function(){var e=this.props,t=e.field_data,n=e.form_values,r=e.form_states,o=e.state_name;if(""===n[t.name])return!0;for(var i=this.parseItems(r[o].items),a=i.length,l=0;l<a;l++)if(i[l].value===n[t.name])return!0;return!1}},{key:"parseItems",value:function(e){var t=[];for(var n in e)t.push({value:n,label:e[n]});return t}}])&&Ai(t.prototype,n),r&&Ai(t,r),a}(F);function Hi(e){return(Hi="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)}function Wi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Gi(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 qi(e,t){return(qi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function $i(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=Qi(e);if(t){var o=Qi(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Yi(this,n)}}function Yi(e,t){if(t&&("object"===Hi(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Qi(e){return(Qi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ki=function(e){!function(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}}),t&&qi(e,t)}(a,e);var t,n,r,i=$i(a);function a(){return Wi(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.field_data,n=e.form_values,r=e.form_states,i=e.state_name,a=e.show_if_regexes,u=this.state.settings;if(!r[i]||!this.isFieldVisible(a,n))return null;var s=this.parseItems(r[i].items),c=t.endpoint_route?Ti:Ri;return o.createElement(o.Fragment,null,o.createElement("li",{className:"fcfOptions__row",ref:r[i].ref_wrapper},o.createElement(l,{unique_id:r[i].unique_id,field_data:t,settings:u}),o.createElement(v,{validation_error:r[i].validation_error}),o.createElement(c,{id:r[i].unique_id,name:"_fcf_".concat(t.name),className:"fcfOptions__select",classNamePrefix:"fcfSelect",value:s.filter((function(e){var r=e.value;return n[t.name].indexOf(r)>-1})),options:s,defaultOptions:s,loadOptions:this.loadOptions.bind(this),isSearchable:!t.html_atts.not_searchable,placeholder:u.i18n[t.endpoint_route?"select_async_placeholder":"select_placeholder"],noOptionsMessage:function(){return r[i].is_loading?u.i18n.select_loading:u.i18n.select_empty},openMenuOnClick:!t.endpoint_route||s.length>n[t.name].length,isMulti:!0,isDisabled:t.readonly,onChange:t.readonly?null:this.onChangeValue.bind(this),onInputChange:this.onRefreshItemsAfterInputChange.bind(this)})))}},{key:"getValue",value:function(e){return null===e?[]:Array.from(e,(function(e){return e.value}))}},{key:"resetDefaultValue",value:function(){var e=this.props,t=e.field_data,n=e.form_values,r=e.form_states,o=e.state_name,i=this.state.events,a=this.parseItems(r[o].items).map((function(e){return e.value})),l=[];for(var u in n[t.name])a.indexOf(n[t.name][u])>-1&&l.push(n[t.name][u]);i.onChangeValue(t.name,l,t.refresh_trigger)}}])&&Gi(t.prototype,n),r&&Gi(t,r),a}(zi);function Xi(e){return(Xi="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)}function Ji(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zi(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 ea(e,t){return(ea=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ta(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=ra(e);if(t){var o=ra(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return na(this,n)}}function na(e,t){if(t&&("object"===Xi(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function ra(e){return(ra=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var oa=function(e){!function(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}}),t&&ea(e,t)}(a,e);var t,n,r,i=ta(a);function a(){return Ji(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.field_data,n=e.form_values,r=e.form_states,i=e.state_name,a=e.show_if_regexes,u=this.state.settings;return r[i]&&this.isFieldVisible(a,n)?o.createElement(o.Fragment,null,o.createElement("li",{className:"fcfOptions__row",ref:r[i].ref_wrapper},o.createElement(l,{unique_id:r[i].unique_id,field_data:t,settings:u}),o.createElement(v,{validation_error:r[i].validation_error}),o.createElement("textarea",{id:r[i].unique_id,ref:r[i].ref_input,name:"_fcf_".concat(t.name),className:"fcfOptions__textarea",rows:"2",value:this.getFieldValue(),onChange:t.readonly?null:this.onChangeValue.bind(this),disabled:t.readonly}))):null}},{key:"getValue",value:function(){var e=this.props;return e.form_states[e.state_name].ref_input.current.value}}])&&Zi(t.prototype,n),r&&Zi(t,r),a}(F);function ia(e){return(ia="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)}function aa(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function la(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 ua(e,t){return(ua=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function sa(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=fa(e);if(t){var o=fa(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ca(this,n)}}function ca(e,t){if(t&&("object"===ia(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function fa(e){return(fa=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var da=function(e){!function(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}}),t&&ua(e,t)}(a,e);var t,n,r,i=sa(a);function a(){return aa(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.field_data,n=e.form_values,r=e.form_states,i=e.state_name,a=e.show_if_regexes,u=this.state.settings;return r[i]&&this.isFieldVisible(a,n)?o.createElement(o.Fragment,null,o.createElement("li",{className:"fcfOptions__row",ref:r[i].ref_wrapper},o.createElement(l,{unique_id:r[i].unique_id,field_data:t,settings:u}),o.createElement(v,{validation_error:r[i].validation_error}),o.createElement("input",{type:"text",id:r[i].unique_id,ref:r[i].ref_input,name:"_fcf_".concat(t.name),className:"fcfOptions__input",value:this.getFieldValue(),onChange:t.readonly?null:this.onChangeValue.bind(this),disabled:t.readonly}))):null}},{key:"getValue",value:function(){var e=this.props;return e.form_states[e.state_name].ref_input.current.value}}])&&la(t.prototype,n),r&&la(t,r),a}(F);function pa(e){return(pa="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)}function ma(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 ha(e,t){return(ha=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function va(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=ba(e);if(t){var o=ba(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ga(this,n)}}function ga(e,t){if(t&&("object"===pa(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function ba(e){return(ba=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ya=function(e){!function(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}}),t&&ha(e,t)}(a,e);var t,n,r,i=va(a);function a(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),t=i.call(this,e);var n=e.settings,r=e.form_title,o=e.form_settings,l=e.validation_type;return t.state={field_types:t.updateFieldTypes(n.form_fields.option_fields),field_groups:n.form_fields.field_group,form_values:{},form_states:{},settings:n,form_title:r,form_settings:o,status:{loading_type:null,field_name_updated:!1},validation_type:l},t._form_validation=new D(n.events.validate_field,l,1),t}return t=a,(n=[{key:"render",value:function(){var e=this.state,t=e.form_values,n=e.form_states,r=e.settings,i=e.form_settings,a=e.form_title,l=e.status,u=e.validation_type;return o.createElement("div",{className:"fcfWidget"},o.createElement("div",{className:"fcfWidget__inner"},o.createElement("div",{className:"fcfWidget__header"},o.createElement("div",{className:"fcfWidget__headerTitle"},a)),o.createElement("div",{className:"fcfWidget__content"},o.createElement("div",{className:"fcfOptions"},o.createElement("ul",{className:"fcfOptions__rows"},o.createElement(Vt,{field_data:{name:"field_type",label:r.i18n.field_type,items:this.state.field_types,field_groups:this.state.field_groups,validation_rules:[{regex:"^.{1,}$",message:r.i18n.validation_required,is_fatal:!0}]},form_values:t,form_states:n,state_name:"field_type",state_field_name:null,settings:r,form_settings:i,validation_types:[u],onChangeValue:this.onChangeValue.bind(this),onChangeState:this.onChangeState.bind(this),onValidationInit:this.onValidationInit.bind(this)}),this.isFieldTypeAvailable()?o.createElement(o.Fragment,null,o.createElement(oa,{field_data:{name:"field_label",label:r.i18n.field_label,validation_rules:[{regex:"^.{1,}$",message:r.i18n.validation_required,is_fatal:!0}]},form_values:t,form_states:n,state_name:"field_label",state_field_name:null,settings:r,form_settings:i,validation_types:[u],onChangeValue:this.onChangeValue.bind(this),onChangeState:this.onChangeState.bind(this),onValidationInit:this.onValidationInit.bind(this)}),o.createElement(da,{field_data:{name:"field_name",label:r.i18n.field_name,validation_rules:[{regex:"^.{1,}$",message:r.i18n.validation_required,is_fatal:!0},{regex:"^[a-z0-9_]{1,}$",message:r.i18n.validation_slug,is_fatal:!0},{regex:"^.{1,128}$",message:r.i18n.validation_max_length,is_fatal:!0}]},form_values:t,form_states:n,state_name:"field_name",state_field_name:null,settings:r,form_settings:i,validation_types:[u,"field_name"],onChangeValue:this.onChangeValue.bind(this),onChangeState:this.onChangeState.bind(this),onValidationInit:this.onValidationInit.bind(this)})):o.createElement(et,{field_data:{name:"field_type_adv",label:r.i18n.alert_field_unavailable},form_values:t,form_states:n,state_name:"field_type_adv",state_field_name:null,settings:r,form_settings:i,validation_types:[u],onChangeValue:function(){},onChangeState:function(){},onValidationInit:function(){}}),o.createElement("li",{className:"fcfOptions__row fcfOptions__row--padding"},o.createElement("button",{type:"button",className:"fcfButton fcfButton--wide fcfButton--bg fcfButton--blue",onClick:this.onSubmit.bind(this),disabled:!this.isFieldTypeAvailable()||"add_field"===l.loading_type},r.i18n.button_add_field)))))))}},{key:"isFieldTypeAvailable",value:function(){var e=this.state,t=e.settings,n=e.form_values,r=t.form_fields.option_fields;return!n.field_type||r[n.field_type].is_available}},{key:"onValidationInit",value:function(e,t,n){return this._form_validation.onValidationInit(e,t,n)}},{key:"onChangeValue",value:function(e,t){var n=this.state,r=n.form_values,o=n.status,i=Object.assign({},r);i[e]=t,"field_label"!==e||o.field_name_updated||(i.field_name=(new O).generateSlug(t)),"field_name"===e&&(o.field_name_updated=""!==t),"field_label"!==e&&"field_name"!==e||(i.field_name=this.generateUniqueFieldName(i.field_name)),this.setState({form_values:i,status:o})}},{key:"onChangeState",value:function(e,t,n){var r=this.state.form_states;void 0===r[e]&&(r[e]={}),r[e][t]=n,this.setState({form_states:r})}},{key:"onSubmit",value:function(e){this.updateLoadingStatus("add_field"),this._form_validation.onSubmit(e).then(this.addNewField.bind(this),this.updateLoadingStatus.bind(this))}},{key:"updateLoadingStatus",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.state.status;t&&(t.loading_type=e,this.setState({status:t}))}},{key:"updateFieldTypes",value:function(e){var t=[];for(var n in e)e[n].is_hidden||t.push(e[n]);return t}},{key:"generateUniqueFieldName",value:function(e){for(var t=this.state.form_settings,n="".concat(t.form_index,"_").concat(e),r=t.option_values.length,o=0;o<r;o++)if(t.option_values[o].name===n)return this.generateUniqueFieldName("".concat(e,"_2"));return e}},{key:"addNewField",value:function(){var e=this.props.onFieldAdd,t=this.state,n=t.form_values,r=t.form_settings;e({type:n.field_type,name:"".concat(r.form_index,"_").concat(n.field_name),label:n.field_label,custom_field:"1"}),this.setState({form_values:{},status:{}})}}])&&ma(t.prototype,n),r&&ma(t,r),a}(o.Component);function _a(e){return(_a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function wa(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 Ea(e,t){return(Ea=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Sa(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=ka(e);if(t){var o=ka(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Oa(this,n)}}function Oa(e,t){if(t&&("object"===_a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return xa(e)}function xa(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ka(e){return(ka=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ca=function(e){!function(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}}),t&&Ea(e,t)}(u,e);var t,n,i,l=Sa(u);function u(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),t=l.call(this,e);var n=e.settings,r=e.form_title,o=e.form_settings,i=e.validation_type;return t.state={settings:n,form_settings:o,form_title:r,option_fields:o.option_fields,option_values:o.option_values,option_states:[],status:{loading_type:null,loading_message:null},validation_type:i},t._form_validation=new D(n.events.validate_field,i,1),t._form_submit=new P(n.handlers.api_loader,o.api_route,t._form_validation,t.updateLoadingStats.bind(xa(t))),t}return t=u,(n=[{key:"render",value:function(){var e=this,t=this.state,n=t.settings,i=t.form_settings,l=t.option_fields,u=t.option_values,s=t.option_states,c=t.form_title,f=t.status,d=t.validation_type;return o.createElement("div",{className:"fcfWidget"},o.createElement("div",{className:"fcfWidget__inner"},o.createElement("div",{className:"fcfWidget__header"},o.createElement("div",{className:"fcfWidget__headerTitle"},c)),o.createElement("div",{className:"fcfWidget__content"},o.createElement("div",{className:"fcfOptions"},o.createElement("ul",{className:"fcfOptions__rows"},l.map((function(t,a){var l=r[t.type];return o.createElement(l,{key:a,field_data:t,form_values:u,form_states:s,state_name:t.name,state_field_name:null,show_if_regexes:t.show_if_regexes,settings:n,form_settings:i,validation_types:[d],onChangeValue:e.onChangeValue.bind(e),onChangeState:e.onChangeState.bind(e),onValidationInit:e.onValidationInit.bind(e)})}))))),o.createElement("div",{className:"fcfWidget__footer"},o.createElement("ul",{className:"fcfWidget__buttons"},o.createElement("li",{className:"fcfWidget__button"},o.createElement(a,{button_classes:"fcfButton fcfButton--wide fcfButton--bg fcfButton--blue",button_alignment:"left",button_label:n.i18n.button_save,loading_type:"save_bottom",loading_status:f.loading_type,loading_message:f.loading_message,settings:n,onSubmit:this.onSubmit.bind(this,"save_bottom",{form_fields:u})}))))))}},{key:"onValidationInit",value:function(e,t,n){return this._form_validation.onValidationInit(e,t,n)}},{key:"onChangeValue",value:function(e,t){var n=this.state.option_values;n[e]=t,this.setState({option_values:n})}},{key:"onChangeState",value:function(e,t,n){var r=this.state.option_states;void 0===r[e]&&(r[e]={}),r[e][t]=n,this.setState({option_states:r})}},{key:"onSubmit",value:function(e,t,n){return n.preventDefault(),this._form_submit.onSubmit(e,t)}},{key:"updateLoadingStats",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.state.status;n.loading_type=e,n.loading_message=t,this.setState({status:n})}}])&&wa(t.prototype,n),i&&wa(t,i),u}(o.Component);function Pa(e){return(Pa="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)}function Ia(){return(Ia=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 Ra(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 Da(e,t){return(Da=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Na(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=La(e);if(t){var o=La(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ta(this,n)}}function Ta(e,t){if(t&&("object"===Pa(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function La(e){return(La=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Aa=function(e){!function(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}}),t&&Da(e,t)}(l,e);var t,n,i,a=Na(l);function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=a.call(this,e)).state={settings:e.settings,form_settings:e.form_settings,events:{onChangeValue:e.onChangeValue,onChangeState:e.onChangeState,onFieldRemove:e.onFieldRemove,onValidationInit:e.onValidationInit},refs:{wrapper:o.createRef()},refresh_functions:[],validation_types:t.props.validation_types},t.props.onChangeValue("_current_tab",0),t.props.onChangeValue("_is_open",!1),t}return t=l,(n=[{key:"shouldComponentUpdate",value:function(e){return e.last_row_index===e.row_index||null===e.last_row_index}},{key:"render",value:function(){var e=this,t=this.props,n=t.provided,i=t.field_data,a=t.form_states,l=t.field_type,u=t.section_fields,s=this.state,c=s.settings,f=s.form_settings,d=s.events,p=s.refs,m=s.validation_types,v=this.getAvailableSettingsTabs(l.options),g=(i.label||"").replace(/(<([^>]+)>)/gi,"");return o.createElement("li",Ia({className:"fcfFields__item ".concat("0"===i.visible?"fcfFields__item--disabled":""),ref:n.innerRef},n.draggableProps),o.createElement("div",{className:"fcfFields__itemInner",ref:p.wrapper},o.createElement("div",Ia({className:"fcfFields__itemHeader"},n.dragHandleProps,{onClick:this.toggleSettings.bind(this)}),o.createElement("div",{className:"fcfFields__itemHeaderOuter"},o.createElement("div",{className:"fcfFields__itemHeaderInner"},o.createElement("div",{className:"fcfFields__itemHeaderTitle"},g||i.name,"1"===i.required?" * ":""),l.is_available?o.createElement("div",{className:"fcfFields__itemHeaderDesc ".concat("1"!==i.custom_field||i.external_field?"":"fcfFields__itemHeaderDesc--flag"," ")},l.label):o.createElement("div",{className:"fcfFields__itemHeaderDesc"},i.type)),o.createElement("ul",{className:"fcfFields__itemHeaderButtons"},"1"===i.custom_field?o.createElement("li",{className:"fcfFields__itemHeaderButton"},o.createElement(h,{text:c.i18n.alert_remove_field,onAccept:d.onFieldRemove,settings:c},o.createElement("button",{type:"button",className:"fcfFields__itemHeaderButtonInner fcfFields__itemHeaderButtonInner--remove"}))):null,o.createElement("li",{className:"fcfFields__itemHeaderButton"},o.createElement("button",{type:"button",className:"fcfFields__itemHeaderButtonInner fcfFields__itemHeaderButtonInner--".concat(i._is_open?"close":"open")}))))),o.createElement("div",{className:"fcfFields__itemContent",style:{display:i._is_open?"block":"none"}},o.createElement("div",{className:"fcfFields__itemTabs fcfTabs fcfTabs--small"},o.createElement("ul",{className:"fcfTabs__items"},v.map((function(t,n){var r=f.settings_tabs[t];return o.createElement("li",{className:"fcfTabs__item",key:n},o.createElement("a",{href:"#".concat(r.tab_name),className:"fcfTabs__itemLink ".concat(n===i._current_tab?"fcfTabs__itemLink--active":""," ").concat(r.icon),onClick:e.changeTab.bind(e,n)},r.label))})))),o.createElement("div",{className:"fcfOptions"},v.map((function(t,n){return o.createElement("ul",{className:"fcfOptions__rows",key:n,style:{display:n===i._current_tab?"block":"none"}},l.options.map((function(l,s){var p=r[l.type];return l.tab_name===t?o.createElement(p,{key:s,field_data:l,form_values:i,form_states:a,state_name:l.name,state_field_name:i.name,section_fields:u,show_if_regexes:l.show_if_regexes,validation_types:m,settings:c,form_settings:f,onChangeValue:e.onChangeValue.bind(e),onChangeState:d.onChangeState,onRefreshForm:e.onRefreshForm.bind(e),onValidationInit:e.onValidationInit.bind(e,n)}):null})))}))))))}},{key:"onChangeValue",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.state,o=r.refresh_functions,i=r.events;i.onChangeValue(e,t,n);for(var a=o.length,l=0;l<a;l++)o[l]()}},{key:"onRefreshForm",value:function(e){this.state.refresh_functions.push(e)}},{key:"onValidationInit",value:function(e,t,n){var r=this,o=this.state,i=o.refs;o.events.onValidationInit(t,n,(function(){r.toggleSettings(!0),r.changeTab(e),i.wrapper.current.scrollIntoView(!1)}))}},{key:"getAvailableSettingsTabs",value:function(e){for(var t=[],n=e.length,r=0;r<n;r++)-1===t.indexOf(e[r].tab_name)&&t.push(e[r].tab_name);return t}},{key:"toggleSettings",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.props.field_data,n=this.state.events;n.onChangeValue("_is_open",!0===e||!t._is_open)}},{key:"changeTab",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;t&&t.preventDefault();var n=this.state.events;n.onChangeValue("_current_tab",e)}}])&&Ra(t.prototype,n),i&&Ra(t,i),l}(o.Component);function Ma(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Nr(e,t)}function Ba(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 Fa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ba(Object(n),!0).forEach((function(t){Lr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ba(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ja(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Va="function"==typeof Symbol&&Symbol.observable||"@@observable",Ua=function(){return Math.random().toString(36).substring(7).split("").join(".")},za={INIT:"@@redux/INIT"+Ua(),REPLACE:"@@redux/REPLACE"+Ua(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Ua()}};function Ha(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 Wa(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(ja(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(ja(1));return n(Wa)(e,t)}if("function"!=typeof e)throw new Error(ja(2));var o=e,i=t,a=[],l=a,u=!1;function s(){l===a&&(l=a.slice())}function c(){if(u)throw new Error(ja(3));return i}function f(e){if("function"!=typeof e)throw new Error(ja(4));if(u)throw new Error(ja(5));var t=!0;return s(),l.push(e),function(){if(t){if(u)throw new Error(ja(6));t=!1,s();var n=l.indexOf(e);l.splice(n,1),a=null}}}function d(e){if(!Ha(e))throw new Error(ja(7));if(void 0===e.type)throw new Error(ja(8));if(u)throw new Error(ja(9));try{u=!0,i=o(i,e)}finally{u=!1}for(var t=a=l,n=0;n<t.length;n++){(0,t[n])()}return e}function p(e){if("function"!=typeof e)throw new Error(ja(10));o=e,d({type:za.REPLACE})}function m(){var e,t=f;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(ja(11));function n(){e.next&&e.next(c())}return n(),{unsubscribe:t(n)}}})[Va]=function(){return this},e}return d({type:za.INIT}),(r={dispatch:d,subscribe:f,getState:c,replaceReducer:p})[Va]=m,r}function Ga(e,t){return function(){return t(e.apply(this,arguments))}}function qa(e,t){if("function"==typeof e)return Ga(e,t);if("object"!=typeof e||null===e)throw new Error(ja(16));var n={};for(var r in e){var o=e[r];"function"==typeof o&&(n[r]=Ga(o,t))}return n}function $a(){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))}}))}n(697);var Ya=o.createContext(null);var Qa=function(e){e()},Ka=function(){return Qa},Xa={notify:function(){}};var Ja=function(){function e(e,t){this.store=e,this.parentSub=t,this.unsubscribe=null,this.listeners=Xa,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=Xa)},e}(),Za="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?o.useLayoutEffect:o.useEffect;var el=function(e){var t=e.store,n=e.context,r=e.children,i=(0,o.useMemo)((function(){var e=new Ja(t);return e.onStateChange=e.notifyNestedSubs,{store:t,subscription:e}}),[t]),a=(0,o.useMemo)((function(){return t.getState()}),[t]);Za((function(){var e=i.subscription;return e.trySubscribe(),a!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[i,a]);var l=n||Ya;return o.createElement(l.Provider,{value:i},r)},tl=n(864),nl=[],rl=[null,null];function ol(e,t){var n=e[1];return[t.payload,n+1]}function il(e,t,n){Za((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,u,s){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||u():(i.current=e,l.current=e,a.current=!0,s({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 ul=function(){return[null,0]};function sl(e,t){void 0===t&&(t={});var n=t,r=n.getDisplayName,i=void 0===r?function(e){return"ConnectAdvanced("+e+")"}:r,a=n.methodName,l=void 0===a?"connectAdvanced":a,u=n.renderCountProp,s=void 0===u?void 0:u,c=n.shouldHandleStateChanges,f=void 0===c||c,d=n.storeKey,p=void 0===d?"store":d,m=(n.withRef,n.forwardRef),h=void 0!==m&&m,v=n.context,g=void 0===v?Ya:v,b=xr(n,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"]),y=g;return function(t){var n=t.displayName||t.name||"Component",r=i(n),a=Qt({},b,{getDisplayName:i,methodName:l,renderCountProp:s,shouldHandleStateChanges:f,storeKey:p,displayName:r,wrappedComponentName:n,WrappedComponent:t}),u=b.pure;var c=u?o.useMemo:function(e){return e()};function d(n){var r=(0,o.useMemo)((function(){var e=n.reactReduxForwardedRef,t=xr(n,["reactReduxForwardedRef"]);return[n.context,e,t]}),[n]),i=r[0],l=r[1],u=r[2],s=(0,o.useMemo)((function(){return i&&i.Consumer&&(0,tl.isContextConsumer)(o.createElement(i.Consumer,null))?i:y}),[i,y]),d=(0,o.useContext)(s),p=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch);Boolean(d)&&Boolean(d.store);var m=p?n.store:d.store,h=(0,o.useMemo)((function(){return function(t){return e(t.dispatch,a)}(m)}),[m]),v=(0,o.useMemo)((function(){if(!f)return rl;var e=new Ja(m,p?null:d.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[m,p,d]),g=v[0],b=v[1],_=(0,o.useMemo)((function(){return p?d:Qt({},d,{subscription:g})}),[p,d,g]),w=(0,o.useReducer)(ol,nl,ul),E=w[0][0],S=w[1];if(E&&E.error)throw E.error;var O=(0,o.useRef)(),x=(0,o.useRef)(u),k=(0,o.useRef)(),C=(0,o.useRef)(!1),P=c((function(){return k.current&&u===x.current?k.current:h(m.getState(),u)}),[m,E,u]);il(al,[x,O,C,u,P,k,b]),il(ll,[f,m,g,h,x,O,C,k,b,S],[m,g,h]);var I=(0,o.useMemo)((function(){return o.createElement(t,Qt({},P,{ref:l}))}),[l,t,P]);return(0,o.useMemo)((function(){return f?o.createElement(s.Provider,{value:_},I):I}),[s,I,_])}var m=u?o.memo(d):d;if(m.WrappedComponent=t,m.displayName=d.displayName=r,h){var v=o.forwardRef((function(e,t){return o.createElement(m,Qt({},e,{reactReduxForwardedRef:t}))}));return v.displayName=r,v.WrappedComponent=t,yr()(v,t)}return yr()(m,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 ml(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 hl=[function(e){return"function"==typeof e?ml(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 function(e,t){var n={},r=function(r){var o=e[r];"function"==typeof o&&(n[r]=function(){return t(o.apply(void 0,arguments))})};for(var o in e)r(o);return n}(e,t)})):void 0}];var vl=[function(e){return"function"==typeof e?ml(e):void 0},function(e){return e?void 0:dl((function(){return{}}))}];function gl(e,t,n){return Qt({},n,e,t)}var bl=[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 u=e(t,n,l);return a?o&&i(u,r)||(r=u):(a=!0,r=u),r}}}(e):void 0},function(e){return e?void 0:function(){return gl}}];function yl(e,t,n,r){return function(o,i){return n(e(o,i),t(r,i),i)}}function _l(e,t,n,r,o){var i,a,l,u,s,c=o.areStatesEqual,f=o.areOwnPropsEqual,d=o.areStatePropsEqual,p=!1;function m(o,p){var m,h,v=!f(p,a),g=!c(o,i);return i=o,a=p,v&&g?(l=e(i,a),t.dependsOnOwnProps&&(u=t(r,a)),s=n(l,u,a)):v?(e.dependsOnOwnProps&&(l=e(i,a)),t.dependsOnOwnProps&&(u=t(r,a)),s=n(l,u,a)):g?(m=e(i,a),h=!d(m,l),l=m,h&&(s=n(l,u,a)),s):s}return function(o,c){return p?m(o,c):(l=e(i=o,a=c),u=t(r,a),s=n(l,u,a),p=!0,s)}}function wl(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,o=t.initMergeProps,i=xr(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),a=n(e,i),l=r(e,i),u=o(e,i);return(i.pure?_l:yl)(a,l,u,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 Sl(e,t){return e===t}function Ol(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?sl:n,o=t.mapStateToPropsFactories,i=void 0===o?vl:o,a=t.mapDispatchToPropsFactories,l=void 0===a?hl:a,u=t.mergePropsFactories,s=void 0===u?bl:u,c=t.selectorFactory,f=void 0===c?wl:c;return function(e,t,n,o){void 0===o&&(o={});var a=o,u=a.pure,c=void 0===u||u,d=a.areStatesEqual,p=void 0===d?Sl:d,m=a.areOwnPropsEqual,h=void 0===m?fl:m,v=a.areStatePropsEqual,g=void 0===v?fl:v,b=a.areMergedPropsEqual,y=void 0===b?fl:b,_=xr(a,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),w=El(e,i,"mapStateToProps"),E=El(t,l,"mapDispatchToProps"),S=El(n,s,"mergeProps");return r(f,Qt({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:w,initMapDispatchToProps:E,initMergeProps:S,pure:c,areStatesEqual:p,areOwnPropsEqual:h,areStatePropsEqual:g,areMergedPropsEqual:y},_))}}var xl=Ol();var kl;function Cl(e,t){var n=(0,o.useState)((function(){return{inputs:t,result:e()}}))[0],r=(0,o.useRef)(!0),i=(0,o.useRef)(n),a=r.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,o.useEffect)((function(){r.current=!1,i.current=a}),[a]),a.result}kl=i.unstable_batchedUpdates,Qa=kl;var Pl=Cl,Il=function(e,t){return Cl((function(){return e}),t)},Rl="Invariant failed";var Dl=function(e,t){if(!e)throw new Error(Rl)},Nl=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}}},Tl=function(e,t){return{top:e.top-t.top,left:e.left-t.left,bottom:e.bottom+t.bottom,right:e.right+t.right}},Ll=function(e,t){return{top:e.top+t.top,left:e.left+t.left,bottom:e.bottom-t.bottom,right:e.right-t.right}},Al={top:0,right:0,bottom:0,left:0},Ml=function(e){var t=e.borderBox,n=e.margin,r=void 0===n?Al:n,o=e.border,i=void 0===o?Al:o,a=e.padding,l=void 0===a?Al:a,u=Nl(Tl(t,r)),s=Nl(Ll(t,i)),c=Nl(Ll(s,l));return{marginBox:u,borderBox:Nl(t),paddingBox:s,contentBox:c,margin:r,border:i,padding:l}},Bl=function(e){var t=e.slice(0,-2);if("px"!==e.slice(-2))return 0;var n=Number(t);return isNaN(n)&&Dl(!1),n},Fl=function(e,t){var n,r,o=e.borderBox,i=e.border,a=e.margin,l=e.padding,u=(r=t,{top:(n=o).top+r.y,left:n.left+r.x,bottom:n.bottom+r.y,right:n.right+r.x});return Ml({borderBox:u,border:i,margin:a,padding:l})},jl=function(e,t){return void 0===t&&(t={x:window.pageXOffset,y:window.pageYOffset}),Fl(e,t)},Vl=function(e,t){var n={top:Bl(t.marginTop),right:Bl(t.marginRight),bottom:Bl(t.marginBottom),left:Bl(t.marginLeft)},r={top:Bl(t.paddingTop),right:Bl(t.paddingRight),bottom:Bl(t.paddingBottom),left:Bl(t.paddingLeft)},o={top:Bl(t.borderTopWidth),right:Bl(t.borderRightWidth),bottom:Bl(t.borderBottomWidth),left:Bl(t.borderLeftWidth)};return Ml({borderBox:e,margin:n,padding:r,border:o})},Ul=function(e){var t=e.getBoundingClientRect(),n=window.getComputedStyle(e);return Vl(t,n)},zl=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 Hl(e,t){}Hl.bind(null,"warn"),Hl.bind(null,"error");function Wl(){}function Gl(e,t,n){var r=t.map((function(t){var r=function(e,t){return Qt({},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()}))}}var ql="Invariant failed";function $l(e){this.message=e}function Yl(e,t){if(!e)throw new $l(ql)}$l.prototype.toString=function(){return this.message};var Ql=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=Wl,t.onWindowError=function(e){var n=t.getCallbacks();n.isDragging()&&n.tryAbort(),e.error instanceof $l&&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}Ma(t,e);var n=t.prototype;return n.componentDidMount=function(){this.unbind=Gl(window,[{eventName:"error",fn:this.onWindowError}])},n.componentDidCatch=function(e){if(!(e instanceof $l))throw e;this.setState({})},n.componentWillUnmount=function(){this.unbind()},n.render=function(){return this.props.children(this.setCallbacks)},t}(o.Component),Kl=function(e){return e+1},Xl=function(e,t){var n=e.droppableId===t.droppableId,r=Kl(e.index),o=Kl(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 "},Jl=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 "},Zl=function(e){return"\n The item has returned to its starting position\n of "+Kl(e.index)+"\n"},eu="\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",tu=function(e){return"\n You have lifted an item in position "+Kl(e.source.index)+"\n"},nu=function(e){var t=e.destination;if(t)return Xl(e.source,t);var n=e.combine;return n?Jl(e.draggableId,e.source,n):"You are over an area that cannot be dropped on"},ru=function(e){if("CANCEL"===e.reason)return"\n Movement cancelled.\n "+Zl(e.source)+"\n ";var t=e.destination,n=e.combine;return t?"\n You have dropped the item.\n "+Xl(e.source,t)+"\n ":n?"\n You have dropped the item.\n "+Jl(e.draggableId,e.source,n)+"\n ":"\n The item has been dropped while not over a drop area.\n "+Zl(e.source)+"\n "},ou={x:0,y:0},iu=function(e,t){return{x:e.x+t.x,y:e.y+t.y}},au=function(e,t){return{x:e.x-t.x,y:e.y-t.y}},lu=function(e,t){return e.x===t.x&&e.y===t.y},uu=function(e){return{x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}},su=function(e,t,n){var r;return void 0===n&&(n=0),(r={})[e]=t,r["x"===e?"y":"x"]=n,r},cu=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},fu=function(e,t){return Math.min.apply(Math,t.map((function(t){return cu(e,t)})))},du=function(e){return function(t){return{x:e(t.x),y:e(t.y)}}},pu=function(e,t){return{top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}},mu=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}]},hu=function(e,t){return t&&t.shouldClipSubject?function(e,t){var n=Nl({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):Nl(e)},vu=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?Qt({},e,((r={})[t.end]=e[t.end]+n.increasedBy[t.line],r)):e}(function(e,t){return t?pu(e,t.scroll.diff.displacement):e}(t.marginBox,o),r,n);return{page:t,withPlaceholder:n,active:hu(i,o)}},gu=function(e,t){e.frame||Yl(!1);var n=e.frame,r=au(t,n.scroll.initial),o=uu(r),i=Qt({},n,{scroll:{initial:n.scroll.initial,current:t,diff:{value:r,displacement:o},max:n.scroll.max}});return Qt({},e,{frame:i,subject:vu({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:i})})};function bu(e){return Object.values?Object.values(e):Object.keys(e).map((function(t){return e[t]}))}function yu(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 _u(e,t){if(e.find)return e.find(t);var n=yu(e,t);return-1!==n?e[n]:void 0}function wu(e){return Array.prototype.slice.call(e)}var Eu=Mo((function(e){return e.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{})})),Su=Mo((function(e){return e.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{})})),Ou=Mo((function(e){return bu(e)})),xu=Mo((function(e){return bu(e)})),ku=Mo((function(e,t){return xu(t).filter((function(t){return e===t.descriptor.droppableId})).sort((function(e,t){return e.descriptor.index-t.descriptor.index}))}));function Cu(e){return e.at&&"REORDER"===e.at.type?e.at.destination:null}function Pu(e){return e.at&&"COMBINE"===e.at.type?e.at.combine:null}var Iu=Mo((function(e,t){return t.filter((function(t){return t.descriptor.id!==e.descriptor.id}))})),Ru=function(e,t){return e.descriptor.droppableId===t.descriptor.id},Du={point:ou,value:0},Nu={invisible:{},visible:{},all:[]},Tu={displaced:Nu,displacedBy:Du,at:null},Lu=function(e,t){return function(n){return e<=n&&n<=t}},Au=function(e){var t=Lu(e.top,e.bottom),n=Lu(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)}},Mu=function(e){var t=Lu(e.top,e.bottom),n=Lu(e.left,e.right);return function(e){return t(e.top)&&t(e.bottom)&&n(e.left)&&n(e.right)}},Bu={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},Fu={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},ju=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:ou;return pu(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)},Vu=function(e){return ju(Qt({},e,{isVisibleThroughFrameFn:Au}))},Uu=function(e){return ju(Qt({},e,{isVisibleThroughFrameFn:Mu}))};function zu(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 Nl(Tl(n,r))}(t,r),u=t.descriptor.id;if(e.all.push(u),!Vu({target:l,destination:n,viewport:o,withDroppableDisplacement:!0}))return e.invisible[t.descriptor.id]=!0,e;var s={draggableId:u,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}(u,a,i)};return e.visible[u]=s,e}),{all:[],visible:{},invisible:{}})}function Hu(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:Nu,displacedBy:r,at:{type:"REORDER",destination:{droppableId:o.descriptor.id,index:i}}}}function Wu(e){var t=e.draggable,n=e.insideDestination,r=e.destination,o=e.viewport,i=e.displacedBy,a=e.last,l=e.index,u=e.forceShouldAnimate,s=Ru(t,r);if(null==l)return Hu({insideDestination:n,inHomeList:s,displacedBy:i,destination:r});var c=_u(n,(function(e){return e.descriptor.index===l}));if(!c)return Hu({insideDestination:n,inHomeList:s,displacedBy:i,destination:r});var f=Iu(t,n),d=n.indexOf(c);return{displaced:zu({afterDragging:f.slice(d),destination:r,displacedBy:i,last:a,viewport:o.frame,forceShouldAnimate:u}),displacedBy:i,at:{type:"REORDER",destination:{droppableId:r.descriptor.id,index:l}}}}function Gu(e,t){return Boolean(t.effected[e])}var qu=function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.draggable,o=e.draggables,i=e.destination,a=e.insideDestination,l=e.previousImpact,u=e.viewport,s=e.afterCritical,c=l.at;if(c||Yl(!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,u=r[r.length-1].descriptor.index;return a<l||a>(n?u:u+1)?null:a}({isMovingForward:t,isInHomeList:n,location:c.destination,insideDestination:a});return null==f?null:Wu({draggable:r,insideDestination:a,destination:i,viewport:u,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 Gu(a,i)?t?l:l-1:t?l+1:l}({isMovingForward:t,destination:i,displaced:l.displaced,draggables:o,combine:c.combine,afterCritical:s});return null==d?null:Wu({draggable:r,insideDestination:a,destination:i,viewport:u,last:l.displaced,displacedBy:l.displacedBy,index:d})},$u=function(e){var t=e.afterCritical,n=e.impact,r=e.draggables,o=Pu(n);o||Yl(!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 Gu(r,n)?i?ou:uu(o.point):i?o.point:ou}({displaced:n.displaced,afterCritical:t,combineWith:i,displacedBy:n.displacedBy});return iu(a,l)},Yu=function(e,t){return t.margin[e.start]+t.borderBox[e.size]/2},Qu=function(e,t,n){return t[e.crossAxisStart]+n.margin[e.crossAxisStart]+n.borderBox[e.crossAxisSize]/2},Ku=function(e){var t=e.axis,n=e.moveRelativeTo,r=e.isMoving;return su(t.line,n.marginBox[t.end]+Yu(t,r),Qu(t,n.marginBox,r))},Xu=function(e){var t=e.axis,n=e.moveRelativeTo,r=e.isMoving;return su(t.line,n.marginBox[t.start]-function(e,t){return t.margin[e.end]+t.borderBox[e.size]/2}(t,r),Qu(t,n.marginBox,r))},Ju=function(e){var t=e.impact,n=e.draggable,r=e.draggables,o=e.droppable,i=e.afterCritical,a=ku(o.descriptor.id,r),l=n.page,u=o.axis;if(!a.length)return function(e){var t=e.axis,n=e.moveInto,r=e.isMoving;return su(t.line,n.contentBox[t.start]+Yu(t,r),Qu(t,n.contentBox,r))}({axis:u,moveInto:o.page,isMoving:l});var s=t.displaced,c=t.displacedBy,f=s.all[0];if(f){var d=r[f];if(Gu(f,i))return Xu({axis:u,moveRelativeTo:d.page,isMoving:l});var p=Fl(d.page,c.point);return Xu({axis:u,moveRelativeTo:p,isMoving:l})}var m=a[a.length-1];if(m.descriptor.id===n.descriptor.id)return l.borderBox.center;if(Gu(m.descriptor.id,i)){var h=Fl(m.page,uu(i.displacedBy.point));return Ku({axis:u,moveRelativeTo:h,isMoving:l})}return Ku({axis:u,moveRelativeTo:m.page,isMoving:l})},Zu=function(e,t){var n=e.frame;return n?iu(t,n.scroll.diff.displacement):t},es=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?Ju({impact:t,draggable:n,draggables:o,droppable:r,afterCritical:i}):$u({impact:t,draggables:o,afterCritical:i}):a}(e),n=e.droppable;return n?Zu(n,t):t},ts=function(e,t){var n=au(t,e.scroll.initial),r=uu(n);return{frame:Nl({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 ns(e,t){return e.map((function(e){return t[e]}))}var rs=function(e){var t=e.pageBorderBoxCenter,n=e.draggable,r=function(e,t){return iu(e.scroll.diff.displacement,t)}(e.viewport,t),o=au(r,n.page.borderBox.center);return iu(n.client.borderBox.center,o)},os=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,u=au(r,t.page.borderBox.center),s={target:pu(t.page.borderBox,u),destination:n,withDroppableDisplacement:i,viewport:o};return l?function(e){return ju(Qt({},e,{isVisibleThroughFrameFn:(t=e.destination.axis,function(e){var n=Lu(e.top,e.bottom),r=Lu(e.left,e.right);return function(e){return t===Bu?n(e.top)&&n(e.bottom):r(e.left)&&r(e.right)}})}));var t}(s):Uu(s)},is=function(e){var t=e.isMovingForward,n=e.draggable,r=e.destination,o=e.draggables,i=e.previousImpact,a=e.viewport,l=e.previousPageBorderBoxCenter,u=e.previousClientSelection,s=e.afterCritical;if(!r.isEnabled)return null;var c=ku(r.descriptor.id,o),f=Ru(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(!Cu(i))return null;function a(e){var t={type:"COMBINE",combine:{draggableId:e,droppableId:r.descriptor.id}};return Qt({},i,{at:t})}var l=i.displaced.all,u=l.length?l[0]:null;if(t)return u?a(u):null;var s=Iu(n,o);if(!u)return s.length?a(s[s.length-1].descriptor.id):null;var c=yu(s,(function(e){return e.descriptor.id===u}));-1===c&&Yl(!1);var f=c-1;return f<0?null:a(s[f].descriptor.id)}({isMovingForward:t,draggable:n,destination:r,insideDestination:c,previousImpact:i})||qu({isMovingForward:t,isInHomeList:f,draggable:n,draggables:o,destination:r,insideDestination:c,previousImpact:i,viewport:a,afterCritical:s});if(!d)return null;var p=es({impact:d,draggable:n,droppable:r,draggables:o,afterCritical:s});if(os({draggable:n,destination:r,newPageBorderBoxCenter:p,viewport:a.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:rs({pageBorderBoxCenter:p,draggable:n,viewport:a}),impact:d,scrollJumpRequest:null};var m=au(p,l);return{clientSelection:u,impact:function(e){var t=e.impact,n=e.viewport,r=e.destination,o=e.draggables,i=e.maxScrollChange,a=ts(n,iu(n.scroll.current,i)),l=r.frame?gu(r,iu(r.frame.scroll.current,i)):r,u=t.displaced,s=zu({afterDragging:ns(u.all,o),destination:r,displacedBy:t.displacedBy,viewport:a.frame,last:u,forceShouldAnimate:!1}),c=zu({afterDragging:ns(u.all,o),destination:l,displacedBy:t.displacedBy,viewport:n.frame,last:u,forceShouldAnimate:!1}),f={},d={},p=[u,s,c];return u.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})),Qt({},t,{displaced:{all:u.all,invisible:f,visible:d}})}({impact:d,viewport:a,destination:r,draggables:o,maxScrollChange:m}),scrollJumpRequest:m}},as=function(e){var t=e.subject.active;return t||Yl(!1),t},ls=function(e,t){var n=e.page.borderBox.center;return Gu(e.descriptor.id,t)?au(n,t.displacedBy.point):n},us=function(e,t){var n=e.page.borderBox;return Gu(e.descriptor.id,t)?pu(n,uu(t.displacedBy.point)):n},ss=Mo((function(e,t){var n=t[e.line];return{value:n,point:su(e.line,n)}})),cs=function(e,t){return Qt({},e,{scroll:Qt({},e.scroll,{max:t})})},fs=function(e,t,n){var r=e.frame;Ru(t,e)&&Yl(!1),e.subject.withPlaceholder&&Yl(!1);var o=ss(e.axis,t.displaceBy).point,i=function(e,t,n){var r=e.axis;if("virtual"===e.descriptor.mode)return su(r.line,t[r.line]);var o=e.subject.page.contentBox[r.size],i=ku(e.descriptor.id,n).reduce((function(e,t){return e+t.client.marginBox[r.size]}),0)+t[r.line]-o;return i<=0?null:su(r.line,i)}(e,o,n),a={placeholderSize:o,increasedBy:i,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!r)return Qt({},e,{subject:vu({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:e.frame})});var l=i?iu(r.scroll.max,i):r.scroll.max,u=cs(r,l);return Qt({},e,{subject:vu({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:u}),frame:u})},ds=function(e){var t=e.isMovingForward,n=e.previousPageBorderBoxCenter,r=e.draggable,o=e.isOver,i=e.draggables,a=e.droppables,l=e.viewport,u=e.afterCritical,s=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,u=Lu(a[l.start],a[l.end]),s=Ou(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 Au(i.frame)(as(e))})).filter((function(e){var n=as(e);return t?a[l.crossAxisEnd]<n[l.crossAxisEnd]:n[l.crossAxisStart]<a[l.crossAxisStart]})).filter((function(e){var t=as(e),n=Lu(t[l.start],t[l.end]);return u(t[l.start])||u(t[l.end])||n(a[l.start])||n(a[l.end])})).sort((function(e,n){var r=as(e)[l.crossAxisStart],o=as(n)[l.crossAxisStart];return t?r-o:o-r})).filter((function(e,t,n){return as(e)[l.crossAxisStart]===as(n[0])[l.crossAxisStart]}));if(!s.length)return null;if(1===s.length)return s[0];var c=s.filter((function(e){return Lu(as(e)[l.start],as(e)[l.end])(n[l.line])}));return 1===c.length?c[0]:c.length>1?c.sort((function(e,t){return as(e)[l.start]-as(t)[l.start]}))[0]:s.sort((function(e,t){var r=fu(n,mu(as(e))),o=fu(n,mu(as(t)));return r!==o?r-o:as(e)[l.start]-as(t)[l.start]}))[0]}({isMovingForward:t,pageBorderBoxCenter:n,source:o,droppables:a,viewport:l});if(!s)return null;var c=ku(s.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,u=e.afterCritical;if(!n){if(r.length)return null;var s={displaced:Nu,displacedBy:Du,at:{type:"REORDER",destination:{droppableId:a.descriptor.id,index:0}}},c=es({impact:s,draggable:o,droppable:a,draggables:i,afterCritical:u}),f=Ru(o,a)?a:fs(a,o,i);return os({draggable:o,destination:f,newPageBorderBoxCenter:c,viewport:l.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?s:null}var d,p=Boolean(t[a.axis.line]<=n.page.borderBox.center[a.axis.line]),m=(d=n.descriptor.index,n.descriptor.id===o.descriptor.id||p?d:d+1),h=ss(a.axis,o.displaceBy);return Wu({draggable:o,insideDestination:r,destination:a,viewport:l,displacedBy:h,last:Nu,index:m})}({previousPageBorderBoxCenter:n,destination:s,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 Uu({target:us(e,i),destination:r,viewport:n.frame,withDroppableDisplacement:!0})})).sort((function(e,n){var o=cu(t,Zu(r,ls(e,i))),a=cu(t,Zu(r,ls(n,i)));return o<a?-1:a<o?1:e.descriptor.index-n.descriptor.index}))[0]||null}({pageBorderBoxCenter:n,viewport:l,destination:s,insideDestination:c,afterCritical:u}),insideDestination:c,viewport:l,afterCritical:u});if(!f)return null;var d=es({impact:f,draggable:r,droppable:s,draggables:i,afterCritical:u});return{clientSelection:rs({pageBorderBoxCenter:d,draggable:r,viewport:l}),impact:f,scrollJumpRequest:null}},ps=function(e){var t=e.at;return t?"REORDER"===t.type?t.destination.droppableId:t.combine.droppableId:null},ms=function(e){var t=e.state,n=e.type,r=function(e,t){var n=ps(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,u="vertical"===l&&("MOVE_UP"===n||"MOVE_DOWN"===n)||"horizontal"===l&&("MOVE_LEFT"===n||"MOVE_RIGHT"===n);if(u&&!o)return null;var s="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,m=d.droppables;return u?is({isMovingForward:s,previousPageBorderBoxCenter:f,draggable:c,destination:a,draggables:p,viewport:t.viewport,previousClientSelection:t.current.client.selection,previousImpact:t.impact,afterCritical:t.afterCritical}):ds({isMovingForward:s,previousPageBorderBoxCenter:f,draggable:c,isOver:a,draggables:p,droppables:m,viewport:t.viewport,afterCritical:t.afterCritical})};function hs(e){return"DRAGGING"===e.phase||"COLLECTING"===e.phase}function vs(e){var t=Lu(e.top,e.bottom),n=Lu(e.left,e.right);return function(e){return t(e.y)&&n(e.x)}}function gs(e){var t=e.pageBorderBox,n=e.draggable,r=e.droppables,o=Ou(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(vs(o)(t.center))return!0;var i=e.axis,a=o.center[i.crossAxisLine],l=t[i.crossAxisStart],u=t[i.crossAxisEnd],s=Lu(o[i.crossAxisStart],o[i.crossAxisEnd]),c=s(l),f=s(u);return!c&&!f||(c?l<a:u>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=su(e.axis.line,t.center[n.line],e.page.borderBox.center[n.crossAxisLine]);return{id:e.descriptor.id,distance:cu(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 bs=function(e,t){return Nl(pu(e,t))};function ys(e){var t=e.displaced,n=e.id;return Boolean(t.visible[n]||t.invisible[n])}var _s=function(e){var t=e.pageOffset,n=e.draggable,r=e.draggables,o=e.droppables,i=e.previousImpact,a=e.viewport,l=e.afterCritical,u=bs(n.page.borderBox,t),s=gs({pageBorderBox:u,draggable:n,droppables:o});if(!s)return Tu;var c=o[s],f=ku(c.descriptor.id,r),d=function(e,t){var n=e.frame;return n?bs(t,n.scroll.diff.value):t}(c,u);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,u=ss(o.axis,t.displaceBy),s=u.value,c=n[l.start],f=n[l.end],d=_u(Iu(t,i),(function(e){var t=e.descriptor.id,n=e.page.borderBox,o=n[l.size]/4,i=Gu(t,a),u=ys({displaced:r.displaced,id:t});return i?u?f>n[l.start]+o&&f<n[l.end]-o:c>n[l.start]-s+o&&c<n[l.end]-s-o:u?f>n[l.start]+s+o&&f<n[l.end]+s-o:c>n[l.start]+o&&c<n[l.end]-o}));return d?{displacedBy:u,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,u=r.axis,s=ss(r.axis,n.displaceBy),c=s.value,f=t[u.start],d=t[u.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:_u(Iu(n,o),(function(e){var t=e.descriptor.id,n=e.page.borderBox.center[u.line],r=Gu(t,l),o=ys({displaced:i,id:t});return r?o?d<=n:f<n-c:o?d<=n+c:f<n})),inHomeList:Ru(n,r)});return Wu({draggable:n,insideDestination:o,destination:r,viewport:a,last:i,displacedBy:s,index:p})}({pageBorderBoxWithDroppableScroll:d,draggable:n,destination:c,insideDestination:f,last:i.displaced,viewport:a,afterCritical:l})},ws=function(e,t){var n;return Qt({},e,((n={})[t.descriptor.id]=t,n))},Es=function(e){var t=e.previousImpact,n=e.impact,r=e.droppables,o=ps(t),i=ps(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||Yl(!1);var n=e.frame;if(!n)return Qt({},e,{subject:vu({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null})});var r=t.oldFrameMaxScroll;r||Yl(!1);var o=cs(n,r);return Qt({},e,{subject:vu({page:e.subject.page,axis:e.axis,frame:o,withPlaceholder:null}),frame:o})}(a);return ws(r,l)},Ss=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,u=r||t.dimensions,s=n||t.current.client.selection,c=au(s,t.initial.client.selection),f={offset:c,selection:s,borderBoxCenter:iu(t.initial.client.borderBoxCenter,c)},d={selection:iu(f.selection,l.scroll.current),borderBoxCenter:iu(f.borderBoxCenter,l.scroll.current),offset:iu(f.offset,l.scroll.diff.value)},p={client:f,page:d};if("COLLECTING"===t.phase)return Qt({phase:"COLLECTING"},t,{dimensions:u,viewport:l,current:p});var m=u.draggables[t.critical.draggable.id],h=i||_s({pageOffset:d.offset,draggable:m,draggables:u.draggables,droppables:u.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=Es({previousImpact:o,impact:i,droppables:r}),l=ps(i);if(!l)return a;var u=r[l];if(Ru(t,u))return a;if(u.subject.withPlaceholder)return a;var s=fs(u,t,n);return ws(a,s)}({draggable:m,impact:h,previousImpact:t.impact,draggables:u.draggables,droppables:u.droppables});return Qt({},t,{current:p,dimensions:{draggables:u.draggables,droppables:v},impact:h,viewport:l,scrollJumpRequest:a||null,forceShouldAnimate:!a&&null})};var Os=function(e){var t=e.impact,n=e.viewport,r=e.draggables,o=e.destination,i=e.forceShouldAnimate,a=t.displaced;return Qt({},t,{displaced:zu({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})})},xs=function(e){var t=e.impact,n=e.draggable,r=e.droppable,o=e.draggables,i=e.viewport,a=e.afterCritical,l=es({impact:t,draggable:n,draggables:o,droppable:r,afterCritical:a});return rs({pageBorderBoxCenter:l,draggable:n,viewport:i})},ks=function(e){var t=e.state,n=e.dimensions,r=e.viewport;"SNAP"!==t.movementMode&&Yl(!1);var o=t.impact,i=r||t.viewport,a=n||t.dimensions,l=a.draggables,u=a.droppables,s=l[t.critical.draggable.id],c=ps(o);c||Yl(!1);var f=u[c],d=Os({impact:o,viewport:i,destination:f,draggables:l}),p=xs({impact:d,draggable:s,droppable:f,draggables:l,viewport:i,afterCritical:t.afterCritical});return Ss({impact:d,clientSelection:p,state:t,dimensions:a,viewport:i})},Cs=function(e){var t=e.draggable,n=e.home,r=e.draggables,o=e.viewport,i=ss(n.axis,t.displaceBy),a=ku(n.descriptor.id,r),l=a.indexOf(t);-1===l&&Yl(!1);var u,s=a.slice(l+1),c=s.reduce((function(e,t){return e[t.descriptor.id]=!0,e}),{}),f={inVirtualList:"virtual"===n.descriptor.mode,displacedBy:i,effected:c};return{impact:{displaced:zu({afterDragging:s,destination:n,displacedBy:i,last:null,viewport:o.frame,forceShouldAnimate:!1}),displacedBy:i,at:{type:"REORDER",destination:(u=t.descriptor,{index:u.index,droppableId:u.droppableId})}},afterCritical:f}},Ps=function(e){0},Is=function(e){0},Rs=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||Yl(!1),t}(n[t]).scroll.diff.value;return function(e){var t=e.draggable,n=e.offset,r=e.initialWindowScroll,o=Fl(t.client,n),i=jl(o,r);return Qt({},t,{placeholder:Qt({},t.placeholder,{client:o}),client:o,page:i})}({draggable:e,offset:iu(o,i),initialWindowScroll:r.scroll.initial})}))},Ds=function(e){return"SNAP"===e.movementMode},Ns=function(e,t,n){var r=function(e,t){return{draggables:e.draggables,droppables:ws(e.droppables,t)}}(e.dimensions,t);return!Ds(e)||n?Ss({state:e,dimensions:r}):ks({state:e,dimensions:r})};function Ts(e){return e.isDragging&&"SNAP"===e.movementMode?Qt({phase:"DRAGGING"},e,{scrollJumpRequest:null}):e}var Ls={phase:"IDLE",completed:null,shouldFlush:!1},As=function(e,t){if(void 0===e&&(e=Ls),"FLUSH"===t.type)return Qt({},Ls,{shouldFlush:!0});if("INITIAL_PUBLISH"===t.type){"IDLE"!==e.phase&&Yl(!1);var n=t.payload,r=n.critical,o=n.clientSelection,i=n.viewport,a=n.dimensions,l=n.movementMode,u=a.draggables[r.draggable.id],s=a.droppables[r.droppable.id],c={selection:o,borderBoxCenter:u.client.borderBox.center,offset:ou},f={client:c,page:{selection:iu(c.selection,i.scroll.initial),borderBoxCenter:iu(c.selection,i.scroll.initial),offset:iu(c.selection,i.scroll.diff.value)}},d=Ou(a.droppables).every((function(e){return!e.isFixedOnPage})),p=Cs({draggable:u,home:s,draggables:a.draggables,viewport:i}),m=p.impact;return{phase:"DRAGGING",isDragging:!0,critical:r,movementMode:l,dimensions:a,initial:f,current:f,isWindowScrollAllowed:d,impact:m,afterCritical:p.afterCritical,onLiftImpact:m,viewport:i,scrollJumpRequest:null,forceShouldAnimate:null}}if("COLLECTION_STARTING"===t.type)return"COLLECTING"===e.phase||"DROP_PENDING"===e.phase?e:("DRAGGING"!==e.phase&&Yl(!1),Qt({phase:"COLLECTING"},e,{phase:"COLLECTING"}));if("PUBLISH_WHILE_DRAGGING"===t.type)return"COLLECTING"!==e.phase&&"DROP_PENDING"!==e.phase&&Yl(!1),function(e){var t=e.state,n=e.published;Ps();var r=n.modified.map((function(e){var n=t.dimensions.droppables[e.droppableId];return gu(n,e.scroll)})),o=Qt({},t.dimensions.droppables,{},Eu(r)),i=Su(Rs({additions:n.additions,updatedDroppables:o,viewport:t.viewport})),a=Qt({},t.dimensions.draggables,{},i);n.removals.forEach((function(e){delete a[e]}));var l={droppables:o,draggables:a},u=ps(t.impact),s=u?l.droppables[u]:null,c=l.draggables[t.critical.draggable.id],f=l.droppables[t.critical.droppable.id],d=Cs({draggable:c,home:f,draggables:a,viewport:t.viewport}),p=d.impact,m=d.afterCritical,h=s&&s.isCombineEnabled?t.impact:p,v=_s({pageOffset:t.current.page.offset,draggable:l.draggables[t.critical.draggable.id],draggables:l.draggables,droppables:l.droppables,previousImpact:h,viewport:t.viewport,afterCritical:m});Is();var g=Qt({phase:"DRAGGING"},t,{phase:"DRAGGING",impact:v,onLiftImpact:p,dimensions:l,afterCritical:m,forceShouldAnimate:!1});return"COLLECTING"===t.phase?g:Qt({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;hs(e)||Yl(!1);var h=t.payload.client;return lu(h,e.current.client.selection)?e:Ss({state:e,clientSelection:h,impact:Ds(e)?e.impact:null})}if("UPDATE_DROPPABLE_SCROLL"===t.type){if("DROP_PENDING"===e.phase)return Ts(e);if("COLLECTING"===e.phase)return Ts(e);hs(e)||Yl(!1);var v=t.payload,g=v.id,b=v.newScroll,y=e.dimensions.droppables[g];if(!y)return e;var _=gu(y,b);return Ns(e,_,!1)}if("UPDATE_DROPPABLE_IS_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;hs(e)||Yl(!1);var w=t.payload,E=w.id,S=w.isEnabled,O=e.dimensions.droppables[E];O||Yl(!1),O.isEnabled===S&&Yl(!1);var x=Qt({},O,{isEnabled:S});return Ns(e,x,!0)}if("UPDATE_DROPPABLE_IS_COMBINE_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;hs(e)||Yl(!1);var k=t.payload,C=k.id,P=k.isCombineEnabled,I=e.dimensions.droppables[C];I||Yl(!1),I.isCombineEnabled===P&&Yl(!1);var R=Qt({},I,{isCombineEnabled:P});return Ns(e,R,!0)}if("MOVE_BY_WINDOW_SCROLL"===t.type){if("DROP_PENDING"===e.phase||"DROP_ANIMATING"===e.phase)return e;hs(e)||Yl(!1),e.isWindowScrollAllowed||Yl(!1);var D=t.payload.newScroll;if(lu(e.viewport.scroll.current,D))return Ts(e);var N=ts(e.viewport,D);return Ds(e)?ks({state:e,viewport:N}):Ss({state:e,viewport:N})}if("UPDATE_VIEWPORT_MAX_SCROLL"===t.type){if(!hs(e))return e;var T=t.payload.maxScroll;if(lu(T,e.viewport.scroll.max))return e;var L=Qt({},e.viewport,{scroll:Qt({},e.viewport.scroll,{max:T})});return Qt({phase:"DRAGGING"},e,{viewport:L})}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&&Yl(!1);var A=ms({state:e,type:t.type});return A?Ss({state:e,impact:A.impact,clientSelection:A.clientSelection,scrollJumpRequest:A.scrollJumpRequest}):e}if("DROP_PENDING"===t.type){var M=t.payload.reason;return"COLLECTING"!==e.phase&&Yl(!1),Qt({phase:"DROP_PENDING"},e,{phase:"DROP_PENDING",isWaiting:!0,reason:M})}if("DROP_ANIMATE"===t.type){var B=t.payload,F=B.completed,j=B.dropDuration,V=B.newHomeClientOffset;return"DRAGGING"!==e.phase&&"DROP_PENDING"!==e.phase&&Yl(!1),{phase:"DROP_ANIMATING",completed:F,dropDuration:j,newHomeClientOffset:V,dimensions:e.dimensions}}return"DROP_COMPLETE"===t.type?{phase:"IDLE",completed:t.payload.completed,shouldFlush:!1}:e},Ms=function(e){return{type:"PUBLISH_WHILE_DRAGGING",payload:e}},Bs=function(){return{type:"COLLECTION_STARTING",payload:null}},Fs=function(e){return{type:"UPDATE_DROPPABLE_SCROLL",payload:e}},js=function(e){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}},Vs=function(e){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}},Us=function(e){return{type:"MOVE",payload:e}},zs=function(){return{type:"MOVE_UP",payload:null}},Hs=function(){return{type:"MOVE_DOWN",payload:null}},Ws=function(){return{type:"MOVE_RIGHT",payload:null}},Gs=function(){return{type:"MOVE_LEFT",payload:null}},qs=function(e){return{type:"DROP_COMPLETE",payload:e}},$s=function(e){return{type:"DROP",payload:e}},Ys=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}};var Qs="cubic-bezier(.2,1,.1,1)",Ks={drop:0,combining:.7},Xs={drop:.75},Js=.2+"s "+"cubic-bezier(0.2, 0, 0, 1)",Zs={fluid:"opacity "+Js,snap:"transform "+Js+", opacity "+Js,drop:function(e){var t=e+"s "+Qs;return"transform "+t+", opacity "+t},outOfTheWay:"transform "+Js,placeholder:"height "+Js+", width "+Js+", margin "+Js},ec=function(e){return lu(e,ou)?null:"translate("+e.x+"px, "+e.y+"px)"},tc=ec,nc=function(e,t){var n=ec(e);return n?t?n+" scale("+Xs.drop+")":n:null},rc=.33,oc=.55,ic=oc-rc,ac=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&&Yl(!1),"DRAGGING"!==o.phase&&"DROP_PENDING"!==o.phase&&Yl(!1);var a=o.critical,l=o.dimensions,u=l.draggables[o.critical.draggable.id],s=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:Qt({},r,{displaced:Nu}),didDropInsideDroppable:!0}:{impact:Os({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=s.impact,f=s.didDropInsideDroppable,d=f?Cu(c):null,p=f?Pu(c):null,m={index:a.draggable.index,droppableId:a.droppable.id},h={draggableId:u.descriptor.id,type:u.descriptor.type,source:m,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,u=ps(t),s=u?l[u]:null,c=l[n.descriptor.droppableId],f=xs({impact:t,draggable:n,draggables:a,afterCritical:i,droppable:s||c,viewport:o});return au(f,n.client.borderBox.center)}({impact:c,draggable:u,dimensions:l,viewport:o.viewport,afterCritical:o.afterCritical}),g={critical:o.critical,afterCritical:o.afterCritical,result:h,impact:c};if(!lu(o.current.client.offset,v)||Boolean(h.combine)){var b=function(e){var t=e.current,n=e.destination,r=e.reason,o=cu(t,n);if(o<=0)return rc;if(o>=1500)return oc;var i=rc+ic*(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:b,completed:g}))}else n(qs({completed:g}))}}else n(function(e){return{type:"DROP_PENDING",payload:e}}({reason:i}))}else e(r)}}},lc=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function uc(e){var t=e.onWindowScroll;var n=zl((function(){t(lc())})),r=function(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(t){t.target!==window&&t.target!==window.document||e()}}}(n),o=Wl;function i(){return o!==Wl}return{start:function(){i()&&Yl(!1),o=Gl(window,[r])},stop:function(){i()||Yl(!1),n.cancel(),o(),o=Wl},isActive:i}}var sc=function(e){var t=uc({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)}}},cc=function(){var e=[];return{add:function(t){var n=setTimeout((function(){return function(t){var n=yu(e,(function(e){return e.timerId===t}));-1===n&&Yl(!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()}))}}}},fc=function(e,t){Ps(),t(),Is()},dc=function(e,t){return{draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t}},pc=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))},mc=function(e,t){var n=function(e,t){var n=cc(),r=null,o=function(n){r||Yl(!1),r=null,fc(0,(function(){return pc(e().onDragEnd,n,t,ru)}))};return{beforeCapture:function(t,n){r&&Yl(!1),fc(0,(function(){var r=e().onBeforeCapture;r&&r({draggableId:t,mode:n})}))},beforeStart:function(t,n){r&&Yl(!1),fc(0,(function(){var r=e().onBeforeDragStart;r&&r(dc(t,n))}))},start:function(o,i){r&&Yl(!1);var a=dc(o,i);r={mode:i,lastCritical:o,lastLocation:a.source,lastCombine:null},n.add((function(){fc(0,(function(){return pc(e().onDragStart,a,t,tu)}))}))},update:function(o,i){var a=Cu(i),l=Pu(i);r||Yl(!1);var u=!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);u&&(r.lastCritical=o);var s,c,f=(c=a,!(null==(s=r.lastLocation)&&null==c||null!=s&&null!=c&&s.droppableId===c.droppableId&&s.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),u||f||d){var p=Qt({},dc(o,r.mode),{combine:l,destination:a});n.add((function(){fc(0,(function(){return pc(e().onDragUpdate,p,t,nu)}))}))}},flush:function(){r||Yl(!1),n.flush()},drop:o,abort:function(){if(r){var e=Qt({},dc(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)}}}},hc=function(e){return function(t){return function(n){if("DROP_ANIMATION_FINISHED"===n.type){var r=e.getState();"DROP_ANIMATING"!==r.phase&&Yl(!1),e.dispatch(qs({completed:r.completed}))}else t(n)}}},vc=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=Gl(window,[i])}))}}}},gc=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($s({reason:r.reason})))}}}},bc=$a,yc=function(e){var t,n=e.dimensionMarshal,r=e.focusMarshal,o=e.styleMarshal,i=e.getResponders,a=e.announce,l=e.autoScroller;return Wa(As,bc(function(){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(ja(15))},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},i=t.map((function(e){return e(o)}));return r=$a.apply(void 0,i)(n.dispatch),Fa(Fa({},n),{},{dispatch:r})}}}((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,u=i.movementMode,s=n();"DROP_ANIMATING"===s.phase&&r(qs({completed:s.completed})),"IDLE"!==n().phase&&Yl(!1),r({type:"FLUSH",payload:null}),r({type:"BEFORE_INITIAL_CAPTURE",payload:{draggableId:a,movementMode:u}});var c={draggableId:a,scrollOptions:{shouldPublishImmediately:"SNAP"===u}},f=e.startPublishing(c),d=f.critical,p=f.dimensions,m=f.viewport;r({type:"INITIAL_PUBLISH",payload:{critical:d,dimensions:p,clientSelection:l,movementMode:u,viewport:m}})}else t(o)}}}}(n),ac,hc,vc,gc,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&&Yl(!1),void e.start(o)}n(r),e.scroll(t.getState())}}}}(l),sc,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),mc(i,a))))};var _c=function(e){var t=e.scrollHeight,n=e.scrollWidth,r=e.height,o=e.width,i=au({x:n,y:t},{x:o,y:r});return{x:Math.max(0,i.x),y:Math.max(0,i.y)}},wc=function(){var e=document.documentElement;return e||Yl(!1),e},Ec=function(){var e=wc();return _c({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})},Sc=function(e){var t=e.critical,n=e.scrollOptions,r=e.registry;Ps();var o,i,a,l,u,s,c,f=(o=lc(),i=Ec(),a=o.y,l=o.x,u=wc(),s=u.clientWidth,c=u.clientHeight,{frame:Nl({top:a,left:l,right:l+s,bottom:a+c}),scroll:{initial:o,current:o,max:i,diff:{value:ou,displacement:ou}}}),d=f.scroll.current,p=t.droppable,m=r.droppable.getAllByType(p.type).map((function(e){return e.callbacks.getDimensionAndWatchScroll(d,n)})),h=r.draggable.getAllByType(t.draggable.type).map((function(e){return e.getDimension(d)})),v={draggables:Su(h),droppables:Eu(m)};return Is(),{dimensions:v,critical:t,viewport:f}};function Oc(e,t,n){return n.descriptor.id!==t.id&&(n.descriptor.type===t.type&&"virtual"===e.droppable.getById(n.descriptor.droppableId).descriptor.mode)}var xc,kc,Cc=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,Ps();var e=r,i=e.additions,a=e.removals,l=e.modified,u=Object.keys(i).map((function(e){return t.draggable.getById(e).getDimension(ou)})).sort((function(e,t){return e.descriptor.index-t.descriptor.index})),s=Object.keys(l).map((function(e){return{droppableId:e,scroll:t.droppable.getById(e).callbacks.getScrollWhileDragging()}})),c={additions:u,removals:Object.keys(a),modified:s};r={additions:{},removals:{},modified:{}},Is(),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||Yl(!1);var o=n.critical.draggable;"ADDITION"===t.type&&Oc(e,o,t.value)&&r.add(t.value),"REMOVAL"===t.type&&Oc(e,o,t.value)&&r.remove(t.value)};return{updateDroppableIsEnabled:function(r,o){e.droppable.exists(r)||Yl(!1),n&&t.updateDroppableIsEnabled({id:r,isEnabled:o})},updateDroppableIsCombineEnabled:function(r,o){n&&(e.droppable.exists(r)||Yl(!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)||Yl(!1),t.updateDroppableScroll({id:r,newScroll:o}))},startPublishing:function(t){n&&Yl(!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},Sc({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}}}},Pc=function(e,t){return"IDLE"===e.phase||"DROP_ANIMATING"===e.phase&&(e.completed.result.draggableId!==t&&"DROP"===e.completed.result.reason)},Ic=function(e){window.scrollBy(e.x,e.y)},Rc=Mo((function(e){return Ou(e).filter((function(e){return!!e.isEnabled&&!!e.frame}))})),Dc=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 _u(Rc(t),(function(t){return t.frame||Yl(!1),vs(t.frame.pageMarginBox)(e)}))}(t,r)},Nc=.25,Tc=.05,Lc=28,Ac=function(e){return Math.pow(e,2)},Mc={stopDampeningAt:1200,accelerateAt:360},Bc=function(e){var t=e.startOfRange,n=e.endOfRange,r=e.current,o=n-t;return 0===o?0:(r-t)/o},Fc=Mc.accelerateAt,jc=Mc.stopDampeningAt,Vc=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 Lc;if(e===t.startScrollingFrom)return 1;var n=Bc({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),r=Lc*Ac(1-n);return Math.ceil(r)}(t,n);return 0===i?0:o?Math.max(function(e,t){var n=t,r=jc,o=Date.now()-n;if(o>=jc)return e;if(o<Fc)return 1;var i=Bc({startOfRange:Fc,endOfRange:r,current:o}),a=e*Ac(i);return Math.ceil(a)}(i,r),1):i},Uc=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]*Nc,maxScrollValueAt:e[t.size]*Tc}}(t,o);return n[o.end]<n[o.start]?Vc({distanceToEdge:n[o.end],thresholds:a,dragStartTime:r,shouldUseTimeDampening:i}):-1*Vc({distanceToEdge:n[o.start],thresholds:a,dragStartTime:r,shouldUseTimeDampening:i})},zc=du((function(e){return 0===e?0:e})),Hc=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=Uc({container:n,distanceToEdges:a,dragStartTime:t,axis:Bu,shouldUseTimeDampening:i}),u=Uc({container:n,distanceToEdges:a,dragStartTime:t,axis:Fu,shouldUseTimeDampening:i}),s=zc({x:u,y:l});if(lu(s,ou))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:s});return c?lu(c,ou)?null:c:null},Wc=du((function(e){return 0===e?0:e>0?1:-1})),Gc=(xc=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=iu(t,r),i={x:xc(o.x,n.x),y:xc(o.y,n.y)};return lu(i,ou)?null:i}),qc=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=Wc(r),a=Gc({max:o,current:n,change:i});return!a||(0!==i.x&&0===a.x||0!==i.y&&0===a.y)},$c=function(e,t){return qc({current:e.scroll.current,max:e.scroll.max,change:t})},Yc=function(e,t){var n=e.frame;return!!n&&qc({current:n.scroll.current,max:n.scroll.max,change:t})},Qc=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 u=function(e){var t=e.viewport,n=e.subject,r=e.center,o=e.dragStartTime,i=e.shouldUseTimeDampening,a=Hc({dragStartTime:o,container:t.frame,subject:n,center:r,shouldUseTimeDampening:i});return a&&$c(t,a)?a:null}({dragStartTime:n,viewport:t.viewport,subject:l,center:a,shouldUseTimeDampening:r});if(u)return void o(u)}var s=Dc({center:a,destination:ps(t.impact),droppables:t.dimensions.droppables});if(s){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=Hc({dragStartTime:o,container:a.pageMarginBox,subject:n,center:r,shouldUseTimeDampening:i});return l&&Yc(t,l)?l:null}({dragStartTime:n,droppable:s,subject:l,center:a,shouldUseTimeDampening:r});c&&i(s.descriptor.id,c)}},Kc=function(e){var t=e.move,n=e.scrollDroppable,r=e.scrollWindow,o=function(e,t){if(!Yc(e,t))return t;var r=function(e,t){var n=e.frame;return n&&Yc(e,t)?Gc({current:n.scroll.current,max:n.scroll.max,change:t}):null}(e,t);if(!r)return n(e.descriptor.id,t),null;var o=au(t,r);return n(e.descriptor.id,o),au(t,o)},i=function(e,t,n){if(!e)return n;if(!$c(t,n))return n;var o=function(e,t){if(!$c(e,t))return null;var n=e.scroll.max,r=e.scroll.current;return Gc({current:r,max:n,change:t})}(t,n);if(!o)return r(n),null;var i=au(n,o);return r(i),au(n,i)};return function(e){var n=e.scrollJumpRequest;if(n){var r=ps(e.impact);r||Yl(!1);var a=o(e.dimensions.droppables[r],n);if(a){var l=e.viewport,u=i(e.isWindowScrollAllowed,l,a);u&&function(e,n){var r=iu(e.current.client.selection,n);t({client:r})}(e,u)}}}},Xc=function(e){var t=e.scrollDroppable,n=e.scrollWindow,r=e.move,o=function(e){var t=e.scrollWindow,n=e.scrollDroppable,r=zl(t),o=zl(n),i=null,a=function(e){i||Yl(!1);var t=i,n=t.shouldUseTimeDampening,a=t.dragStartTime;Qc({state:e,scrollWindow:r,scrollDroppable:o,dragStartTime:a,shouldUseTimeDampening:n})};return{start:function(e){Ps(),i&&Yl(!1);var t=Date.now(),n=!1,r=function(){n=!0};Qc({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:r,scrollDroppable:r}),i={dragStartTime:t,shouldUseTimeDampening:n},Is(),n&&a(e)},stop:function(){i&&(r.cancel(),o.cancel(),i=null)},scroll:a}}({scrollWindow:n,scrollDroppable:t}),i=Kc({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}},Jc={base:kc="data-rbd-drag-handle",draggableId:kc+"-draggable-id",contextId:kc+"-context-id"},Zc=function(){var e="data-rbd-draggable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),ef=function(){var e="data-rbd-droppable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),tf={contextId:"data-rbd-scroll-container-context-id"},nf=function(e,t){return e.map((function(e){var n=e.styles[t];return n?e.selector+" { "+n+" }":""})).join(" ")},rf="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?o.useLayoutEffect:o.useEffect,of=function(){var e=document.querySelector("head");return e||Yl(!1),e},af=function(e){var t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t};function lf(e,t){var n=Pl((function(){return function(e){var t,n,r,o=(t=e,function(e){return"["+e+'="'+t+'"]'}),i=(n="\n cursor: -webkit-grab;\n cursor: grab;\n ",{selector:o(Jc.contextId),styles:{always:"\n -webkit-touch-callout: none;\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n touch-action: manipulation;\n ",resting:n,dragging:"pointer-events: none;",dropAnimating:n}}),a=[(r="\n transition: "+Zs.outOfTheWay+";\n ",{selector:o(Zc.contextId),styles:{dragging:r,dropAnimating:r,userCancel:r}}),i,{selector:o(ef.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:nf(a,"always"),resting:nf(a,"resting"),dragging:nf(a,"dragging"),dropAnimating:nf(a,"dropAnimating"),userCancel:nf(a,"userCancel")}}(e)}),[e]),r=(0,o.useRef)(null),i=(0,o.useRef)(null),a=Il(Mo((function(e){var t=i.current;t||Yl(!1),t.textContent=e})),[]),l=Il((function(e){var t=r.current;t||Yl(!1),t.textContent=e}),[]);rf((function(){(r.current||i.current)&&Yl(!1);var o=af(t),u=af(t);return r.current=o,i.current=u,o.setAttribute("data-rbd-always",e),u.setAttribute("data-rbd-dynamic",e),of().appendChild(o),of().appendChild(u),l(n.always),a(n.resting),function(){var e=function(e){var t=e.current;t||Yl(!1),of().removeChild(t),e.current=null};e(r),e(i)}}),[t,l,a,n.always,n.resting,e]);var u=Il((function(){return a(n.dragging)}),[a,n.dragging]),s=Il((function(e){a("DROP"!==e?n.userCancel:n.dropAnimating)}),[a,n.dropAnimating,n.userCancel]),c=Il((function(){i.current&&a(n.resting)}),[a,n.resting]);return Pl((function(){return{dragging:u,dropping:s,resting:c}}),[u,s,c])}var uf=function(e){return e&&e.ownerDocument?e.ownerDocument.defaultView:window};function sf(e){return e instanceof uf(e).HTMLElement}function cf(e,t){var n="["+Jc.contextId+'="'+e+'"]',r=wu(document.querySelectorAll(n));if(!r.length)return null;var o=_u(r,(function(e){return e.getAttribute(Jc.draggableId)===t}));return o&&sf(o)?o:null}function ff(){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||Yl(!1),t},findById:r,exists:function(e){return Boolean(r(e))},getAllByType:function(t){return bu(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||Yl(!1),t},findById:o,exists:function(e){return Boolean(o(e))},getAllByType:function(t){return bu(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 df=o.createContext(null),pf=function(){var e=document.body;return e||Yl(!1),e},mf={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 hf=0,vf={separator:"::"};function gf(e,t){return void 0===t&&(t=vf),Pl((function(){return""+e+t.separator+hf++}),[t.separator,e])}var bf=o.createContext(null);function yf(e){0}function _f(e,t){yf()}function wf(){_f()}function Ef(e){var t=(0,o.useRef)(e);return(0,o.useEffect)((function(){t.current=e})),t}var Sf,Of=((Sf={})[13]=!0,Sf[9]=!0,Sf),xf=function(e){Of[e.keyCode]&&e.preventDefault()},kf=function(){var e="visibilitychange";return"undefined"==typeof document?e:_u([e,"ms"+e,"webkit"+e,"moz"+e,"o"+e],(function(e){return"on"+e in document}))||e}();var Cf,Pf={type:"IDLE"};function If(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&&Yl(!1);var u=l.point;if(s=u,c=a,Math.abs(c.x-s.x)>=5||Math.abs(c.y-s.y)>=5){var s,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 xf(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&&Yl(!1),n.actions.shouldRespectForcePress()?t():e.preventDefault()}},{eventName:kf,fn:t}]}function Rf(){}var Df=((Cf={})[34]=!0,Cf[33]=!0,Cf[36]=!0,Cf[35]=!0,Cf);function Nf(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(Df[r.keyCode]?r.preventDefault():xf(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:kf,fn:n}]}var Tf={type:"IDLE"};var Lf={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function Af(e,t){if(null==t)return!1;if(Boolean(Lf[t.tagName.toLowerCase()]))return!0;var n=t.getAttribute("contenteditable");return"true"===n||""===n||t!==e&&Af(e,t.parentElement)}function Mf(e,t){var n=t.target;return!!sf(n)&&Af(e,n)}var Bf=function(e){return Nl(e.getBoundingClientRect()).center};var Ff=function(){var e="matches";return"undefined"==typeof document?e:_u([e,"msMatchesSelector","webkitMatchesSelector"],(function(e){return e in Element.prototype}))||e}();function jf(e,t){return null==e?null:e[Ff](t)?e:jf(e.parentElement,t)}function Vf(e,t){return e.closest?e.closest(t):jf(e,t)}function Uf(e,t){var n,r=t.target;if(!((n=r)instanceof uf(n).Element))return null;var o=Vf(r,function(e){return"["+Jc.contextId+'="'+e+'"]'}(e));return o&&sf(o)?o:null}function zf(e){e.preventDefault()}function Hf(e){var t=e.expected,n=e.phase,r=e.isLockActive;e.shouldWarn;return!!r()&&t===n}function Wf(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&&!!Pc(n.getState(),o))}function Gf(e){var t=e.lockAPI,n=e.contextId,r=e.store,o=e.registry,i=e.draggableId,a=e.forceSensorStop,l=e.sourceEvent;if(!Wf({lockAPI:t,store:r,registry:o,draggableId:i}))return null;var u=o.draggable.getById(i),s=function(e,t){var n="["+Zc.contextId+'="'+e+'"]',r=_u(wu(document.querySelectorAll(n)),(function(e){return e.getAttribute(Zc.id)===t}));return r&&sf(r)?r:null}(n,u.descriptor.id);if(!s)return null;if(l&&!u.options.canDragInteractiveElements&&Mf(s,l))return null;var c=t.claim(a||Wl),f="PRE_DRAG";function d(){return u.options.shouldRespectForcePress}function p(){return t.isActive(c)}var m=function(e,t){Hf({expected:e,phase:f,isLockActive:p,shouldWarn:!0})&&r.dispatch(t())}.bind(null,"DRAGGING");function h(e){function n(){t.release(),f="COMPLETED"}function o(t,o){if(void 0===o&&(o={shouldBlockNextClick:!1}),e.cleanup(),o.shouldBlockNextClick){var i=Gl(window,[{eventName:"click",fn:zf,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(i)}n(),r.dispatch($s({reason:t}))}return"PRE_DRAG"!==f&&(n(),"PRE_DRAG"!==f&&Yl(!1)),r.dispatch(function(e){return{type:"LIFT",payload:e}}(e.liftActionArgs)),f="DRAGGING",Qt({isActive:function(){return Hf({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 Hf({expected:"PRE_DRAG",phase:f,isLockActive:p,shouldWarn:!1})},shouldRespectForcePress:d,fluidLift:function(e){var t=zl((function(e){m((function(){return Us({client:e})}))}));return Qt({},h({liftActionArgs:{id:i,clientSelection:e,movementMode:"FLUID"},cleanup:function(){return t.cancel()},actions:{move:t}}),{move:t})},snapLift:function(){var e={moveUp:function(){return m(zs)},moveRight:function(){return m(Ws)},moveDown:function(){return m(Hs)},moveLeft:function(){return m(Gs)}};return h({liftActionArgs:{id:i,clientSelection:Bf(s),movementMode:"SNAP"},cleanup:Wl,actions:e})},abort:function(){Hf({expected:"PRE_DRAG",phase:f,isLockActive:p,shouldWarn:!0})&&t.release()}}}var qf=[function(e){var t=(0,o.useRef)(Pf),n=(0,o.useRef)(Wl),r=Pl((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=Pl((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=Il((function(){n.current=Gl(window,[i,r],{passive:!1,capture:!0})}),[i,r]),l=Il((function(){"IDLE"!==t.current.type&&(t.current=Pf,n.current(),a())}),[a]),u=Il((function(){var e=t.current;l(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[l]),s=Il((function(){var e=If({cancel:u,completed:l,getPhase:function(){return t.current},setPhase:function(e){t.current=e}});n.current=Gl(window,e,{capture:!0,passive:!1})}),[u,l]),c=Il((function(e,n){"IDLE"!==t.current.type&&Yl(!1),t.current={type:"PENDING",point:n,actions:e},s()}),[s]);rf((function(){return a(),function(){n.current()}}),[a])},function(e){var t=(0,o.useRef)(Rf),n=Pl((function(){return{eventName:"keydown",fn:function(n){if(!n.defaultPrevented&&32===n.keyCode){var o=e.findClosestDraggableId(n);if(o){var i=e.tryGetLock(o,u,{sourceEvent:n});if(i){n.preventDefault();var a=!0,l=i.snapLift();t.current(),t.current=Gl(window,Nf(l,u),{capture:!0,passive:!1})}}}function u(){a||Yl(!1),a=!1,t.current(),r()}}}}),[e]),r=Il((function(){t.current=Gl(window,[n],{passive:!1,capture:!0})}),[n]);rf((function(){return r(),function(){t.current()}}),[r])},function(e){var t=(0,o.useRef)(Tf),n=(0,o.useRef)(Wl),r=Il((function(){return t.current}),[]),i=Il((function(e){t.current=e}),[]),a=Pl((function(){return{eventName:"touchstart",fn:function(t){if(!t.defaultPrevented){var r=e.findClosestDraggableId(t);if(r){var o=e.tryGetLock(r,u,{sourceEvent:t});if(o){var i=t.touches[0],a={x:i.clientX,y:i.clientY};n.current(),d(o,a)}}}}}}),[e]),l=Il((function(){n.current=Gl(window,[a],{capture:!0,passive:!1})}),[a]),u=Il((function(){var e=t.current;"IDLE"!==e.type&&("PENDING"===e.type&&clearTimeout(e.longPressTimerId),i(Tf),n.current(),l())}),[l,i]),s=Il((function(){var e=t.current;u(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[u]),c=Il((function(){var e={capture:!0,passive:!1},t={cancel:s,completed:u,getPhase:r},o=Gl(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&&Yl(!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:kf,fn:t}]}(t),e),i=Gl(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:kf,fn:t}]}(t),e);n.current=function(){o(),i()}}),[s,r,u]),f=Il((function(){var e=r();"PENDING"!==e.type&&Yl(!1);var t=e.actions.fluidLift(e.point);i({type:"DRAGGING",actions:t,hasMoved:!1})}),[r,i]),d=Il((function(e,t){"IDLE"!==r().type&&Yl(!1);var n=setTimeout(f,120);i({type:"PENDING",point:t,actions:e,longPressTimerId:n}),c()}),[c,r,i,f]);rf((function(){return l(),function(){n.current();var e=r();"PENDING"===e.type&&(clearTimeout(e.longPressTimerId),i(Tf))}}),[r,l,i]),rf((function(){return Gl(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}])}),[])}];function $f(e){var t=e.contextId,n=e.store,r=e.registry,i=e.customSensors,a=e.enableDefaultSensors,l=[].concat(a?qf:[],i||[]),u=(0,o.useState)((function(){return function(){var e=null;function t(){e||Yl(!1),e=null}return{isClaimed:function(){return Boolean(e)},isActive:function(t){return t===e},claim:function(t){e&&Yl(!1);var n={abandon:t};return e=n,n},release:t,tryAbandon:function(){e&&(e.abandon(),t())}}}()}))[0],s=Il((function(e,t){e.isDragging&&!t.isDragging&&u.tryAbandon()}),[u]);rf((function(){var e=n.getState();return n.subscribe((function(){var t=n.getState();s(e,t),e=t}))}),[u,n,s]),rf((function(){return u.tryAbandon}),[u.tryAbandon]);var c=Il((function(e){return Wf({lockAPI:u,registry:r,store:n,draggableId:e})}),[u,r,n]),f=Il((function(e,o,i){return Gf({lockAPI:u,registry:r,contextId:t,store:n,draggableId:e,forceSensorStop:o,sourceEvent:i&&i.sourceEvent?i.sourceEvent:null})}),[t,u,r,n]),d=Il((function(e){return function(e,t){var n=Uf(e,t);return n?n.getAttribute(Jc.draggableId):null}(t,e)}),[t]),p=Il((function(e){var t=r.draggable.findById(e);return t?t.options:null}),[r.draggable]),m=Il((function(){u.isClaimed()&&(u.tryAbandon(),"IDLE"!==n.getState().phase&&n.dispatch({type:"FLUSH",payload:null}))}),[u,n]),h=Il(u.isClaimed,[u]),v=Pl((function(){return{canGetLock:c,tryGetLock:f,findClosestDraggableId:d,findOptionsForDraggable:p,tryReleaseLock:m,isLockClaimed:h}}),[c,f,d,p,m,h]);yf();for(var g=0;g<l.length;g++)l[g](v)}function Yf(e){return e.current||Yl(!1),e.current}function Qf(e){var t=e.contextId,n=e.setCallbacks,r=e.sensors,i=e.nonce,a=e.dragHandleUsageInstructions,l=(0,o.useRef)(null);wf();var u=Ef(e),s=Il((function(){return function(e){return{onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}}(u.current)}),[u]),c=function(e){var t=Pl((function(){return function(e){return"rbd-announcement-"+e}(e)}),[e]),n=(0,o.useRef)(null);return(0,o.useEffect)((function(){var e=document.createElement("div");return n.current=e,e.id=t,e.setAttribute("aria-live","assertive"),e.setAttribute("aria-atomic","true"),Qt(e.style,mf),pf().appendChild(e),function(){setTimeout((function(){var t=pf();t.contains(e)&&t.removeChild(e),e===n.current&&(n.current=null)}))}}),[t]),Il((function(e){var t=n.current;t&&(t.textContent=e)}),[])}(t),f=function(e){var t=e.contextId,n=e.text,r=gf("hidden-text",{separator:"-"}),i=Pl((function(){return function(e){return"rbd-hidden-text-"+e.contextId+"-"+e.uniqueId}({contextId:t,uniqueId:r})}),[r,t]);return(0,o.useEffect)((function(){var e=document.createElement("div");return e.id=i,e.textContent=n,e.style.display="none",pf().appendChild(e),function(){var t=pf();t.contains(e)&&t.removeChild(e)}}),[i,n]),i}({contextId:t,text:a}),d=lf(t,i),p=Il((function(e){Yf(l).dispatch(e)}),[]),m=Pl((function(){return qa({publishWhileDragging:Ms,updateDroppableScroll:Fs,updateDroppableIsEnabled:js,updateDroppableIsCombineEnabled:Vs,collectionStarting:Bs},p)}),[p]),h=function(){var e=Pl(ff,[]);return(0,o.useEffect)((function(){return function(){requestAnimationFrame(e.clean)}}),[e]),e}(),v=Pl((function(){return Cc(h,m)}),[h,m]),g=Pl((function(){return Xc(Qt({scrollWindow:Ic,scrollDroppable:v.scrollDroppable},qa({move:Us},p)))}),[v.scrollDroppable,p]),b=function(e){var t=(0,o.useRef)({}),n=(0,o.useRef)(null),r=(0,o.useRef)(null),i=(0,o.useRef)(!1),a=Il((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=Il((function(t){var n=cf(e,t);n&&n!==document.activeElement&&n.focus()}),[e]),u=Il((function(e,t){n.current===e&&(n.current=t)}),[]),s=Il((function(){r.current||i.current&&(r.current=requestAnimationFrame((function(){r.current=null;var e=n.current;e&&l(e)})))}),[l]),c=Il((function(e){n.current=null;var t=document.activeElement;t&&t.getAttribute(Jc.draggableId)===e&&(n.current=e)}),[]);return rf((function(){return i.current=!0,function(){i.current=!1;var e=r.current;e&&cancelAnimationFrame(e)}}),[]),Pl((function(){return{register:a,tryRecordFocus:c,tryRestoreFocusRecorded:s,tryShiftRecord:u}}),[a,c,s,u])}(t),y=Pl((function(){return yc({announce:c,autoScroller:g,dimensionMarshal:v,focusMarshal:b,getResponders:s,styleMarshal:d})}),[c,g,v,b,s,d]);l.current=y;var _=Il((function(){var e=Yf(l);"IDLE"!==e.getState().phase&&e.dispatch({type:"FLUSH",payload:null})}),[]),w=Il((function(){var e=Yf(l).getState();return e.isDragging||"DROP_ANIMATING"===e.phase}),[]);n(Pl((function(){return{isDragging:w,tryAbort:_}}),[w,_]));var E=Il((function(e){return Pc(Yf(l).getState(),e)}),[]),S=Il((function(){return hs(Yf(l).getState())}),[]),O=Pl((function(){return{marshal:v,focus:b,contextId:t,canLift:E,isMovementAllowed:S,dragHandleUsageInstructionsId:f,registry:h}}),[t,v,f,b,E,S,h]);return $f({contextId:t,store:y,registry:h,customSensors:r,enableDefaultSensors:!1!==e.enableDefaultSensors}),(0,o.useEffect)((function(){return _}),[_]),o.createElement(bf.Provider,{value:O},o.createElement(el,{context:df,store:y},e.children))}var Kf=0;function Xf(e){var t=Pl((function(){return""+Kf++}),[]),n=e.dragHandleUsageInstructions||eu;return o.createElement(Ql,null,(function(r){return o.createElement(Qf,{nonce:e.nonce,contextId:t,setCallbacks:r,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 Jf=function(e){return function(t){return e===t}},Zf=Jf("scroll"),ed=Jf("auto"),td=(Jf("visible"),function(e,t){return t(e.overflowX)||t(e.overflowY)}),nd=function(e){var t=window.getComputedStyle(e),n={overflowX:t.overflowX,overflowY:t.overflowY};return td(n,Zf)||td(n,ed)},rd=function e(t){return null==t||t===document.body||t===document.documentElement?null:nd(t)?t:e(t.parentElement)},od=function(e){return{x:e.scrollLeft,y:e.scrollTop}},id=function e(t){return!!t&&("fixed"===window.getComputedStyle(t).position||e(t.parentElement))},ad=function(e){return{closestScrollable:rd(e),isFixedOnPage:id(e)}},ld=function(e){var t=e.ref,n=e.descriptor,r=e.env,o=e.windowScroll,i=e.direction,a=e.isDropDisabled,l=e.isCombineEnabled,u=e.shouldClipSubject,s=r.closestScrollable,c=function(e,t){var n=Ul(e);if(!t)return n;if(e!==t)return n;var r=n.paddingBox.top-t.scrollTop,o=n.paddingBox.left-t.scrollLeft,i=r+t.scrollHeight,a=o+t.scrollWidth,l=Tl({top:r,right:a,bottom:i,left:o},n.border);return Ml({borderBox:l,margin:n.margin,border:n.border,padding:n.padding})}(t,s),f=jl(c,o),d=function(){if(!s)return null;var e=Ul(s),t={scrollHeight:s.scrollHeight,scrollWidth:s.scrollWidth};return{client:e,page:jl(e,o),scroll:od(s),scrollSize:t,shouldClipSubject:u}}();return function(e){var t=e.descriptor,n=e.isEnabled,r=e.isCombineEnabled,o=e.isFixedOnPage,i=e.direction,a=e.client,l=e.page,u=e.closest,s=function(){if(!u)return null;var e=u.scrollSize,t=u.client,n=_c({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,height:t.paddingBox.height,width:t.paddingBox.width});return{pageMarginBox:u.page.marginBox,frameClient:t,scrollSize:e,shouldClipSubject:u.shouldClipSubject,scroll:{initial:u.scroll,current:u.scroll,max:n,diff:{value:ou,displacement:ou}}}}(),c="vertical"===i?Bu:Fu;return{descriptor:t,isCombineEnabled:r,isFixedOnPage:o,axis:c,isEnabled:n,client:a,page:l,frame:s,subject:vu({page:l,withPlaceholder:null,axis:c,frame:s})}}({descriptor:n,isEnabled:!a,isCombineEnabled:l,isFixedOnPage:r.isFixedOnPage,direction:i,client:c,page:f,closest:d})},ud={passive:!1},sd={passive:!0},cd=function(e){return e.shouldPublishImmediately?ud:sd};function fd(e){var t=(0,o.useContext)(e);return t||Yl(!1),t}var dd=function(e){return e&&e.env.closestScrollable||null};function pd(){}var md={width:0,height:0,margin:{top:0,right:0,bottom:0,left:0}},hd=function(e){var t=e.isAnimatingOpenOnMount,n=e.placeholder,r=e.animate,o=function(e){var t=e.isAnimatingOpenOnMount,n=e.placeholder,r=e.animate;return t||"close"===r?md:{height:n.client.borderBox.height,width:n.client.borderBox.width,margin:n.client.margin}}({isAnimatingOpenOnMount:t,placeholder:n,animate:r});return{display:n.display,boxSizing:"border-box",width:o.width,height:o.height,marginTop:o.margin.top,marginRight:o.margin.right,marginBottom:o.margin.bottom,marginLeft:o.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:"none"!==r?Zs.placeholder:null}};var vd=o.memo((function(e){var t=(0,o.useRef)(null),n=Il((function(){t.current&&(clearTimeout(t.current),t.current=null)}),[]),r=e.animate,i=e.onTransitionEnd,a=e.onClose,l=e.contextId,u=(0,o.useState)("open"===e.animate),s=u[0],c=u[1];(0,o.useEffect)((function(){return s?"open"!==r?(n(),c(!1),pd):t.current?pd:(t.current=setTimeout((function(){t.current=null,c(!1)})),n):pd}),[r,s,n]);var f=Il((function(e){"height"===e.propertyName&&(i(),"close"===r&&a())}),[r,a,i]),d=hd({isAnimatingOpenOnMount:s,animate:e.animate,placeholder:e.placeholder});return o.createElement(e.placeholder.tagName,{style:d,"data-rbd-placeholder-context-id":l,onTransitionEnd:f,ref:e.innerRef})})),gd=o.createContext(null);var bd=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).state={isVisible:Boolean(t.props.on),data:t.props.on,animate:t.props.shouldAnimate&&t.props.on?"open":"none"},t.onClose=function(){"close"===t.state.animate&&t.setState({isVisible:!1})},t}return Ma(t,e),t.getDerivedStateFromProps=function(e,t){return e.shouldAnimate?e.on?{isVisible:!0,data:e.on,animate:"open"}:t.isVisible?{isVisible:!0,data:t.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(e.on),data:e.on,animate:"none"}},t.prototype.render=function(){if(!this.state.isVisible)return null;var e={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(e)},t}(o.PureComponent),yd=5e3,_d=4500,wd=function(e,t){return t?Zs.drop(t.duration):e?Zs.snap:Zs.fluid},Ed=function(e,t){return e?t?Ks.drop:Ks.combining:null};function Sd(e){return"DRAGGING"===e.type?function(e){var t=e.dimension.client,n=e.offset,r=e.combineWith,o=e.dropping,i=Boolean(r),a=function(e){return null!=e.forceShouldAnimate?e.forceShouldAnimate:"SNAP"===e.mode}(e),l=Boolean(o),u=l?nc(n,i):tc(n);return{position:"fixed",top:t.marginBox.top,left:t.marginBox.left,boxSizing:"border-box",width:t.borderBox.width,height:t.borderBox.height,transition:wd(a,o),transform:u,opacity:Ed(i,l),zIndex:l?_d:yd,pointerEvents:"none"}}(e):{transform:tc((t=e).offset),transition:t.shouldAnimateDisplacement?null:"none"};var t}function Od(e){var t=gf("draggable"),n=e.descriptor,r=e.registry,i=e.getDraggableRef,a=e.canDragInteractiveElements,l=e.shouldRespectForcePress,u=e.isEnabled,s=Pl((function(){return{canDragInteractiveElements:a,shouldRespectForcePress:l,isEnabled:u}}),[a,u,l]),c=Il((function(e){var t=i();return t||Yl(!1),function(e,t,n){void 0===n&&(n=ou);var r=window.getComputedStyle(t),o=t.getBoundingClientRect(),i=Vl(o,r),a=jl(i,n);return{descriptor:e,placeholder:{client:i,tagName:t.tagName.toLowerCase(),display:r.display},displaceBy:{x:i.marginBox.width,y:i.marginBox.height},client:i,page:a}}(n,t,e)}),[n,i]),f=Pl((function(){return{uniqueId:t,descriptor:n,options:s,getDimension:c}}),[n,c,s,t]),d=(0,o.useRef)(f),p=(0,o.useRef)(!0);rf((function(){return r.draggable.register(d.current),function(){return r.draggable.unregister(d.current)}}),[r.draggable]),rf((function(){if(p.current)p.current=!1;else{var e=d.current;d.current=f,r.draggable.update(f,e)}}),[f,r.draggable])}function xd(e,t,n){_f()}function kd(e){e.preventDefault()}var Cd=function(e,t){return e===t},Pd=function(e){var t=e.combine,n=e.destination;return n?n.droppableId:t?t.droppableId:null};function Id(e){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}var Rd={mapped:{type:"SECONDARY",offset:ou,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:Id(null)}};var Dd=xl((function(){var e,t,n,r=(e=Mo((function(e,t){return{x:e,y:t}})),t=Mo((function(e,t,n,r,o){return{isDragging:!0,isClone:t,isDropAnimating:Boolean(o),dropAnimation:o,mode:e,draggingOver:n,combineWith:r,combineTargetFor:null}})),n=Mo((function(e,n,r,o,i,a,l){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:i,combineWith:a,mode:n,offset:e,dimension:r,forceShouldAnimate:l,snapshot:t(n,o,i,a,null)}}})),function(r,o){if(r.isDragging){if(r.critical.draggable.id!==o.draggableId)return null;var i=r.current.client.offset,a=r.dimensions.draggables[o.draggableId],l=ps(r.impact),u=(c=r.impact).at&&"COMBINE"===c.at.type?c.at.combine.draggableId:null,s=r.forceShouldAnimate;return n(e(i.x,i.y),r.movementMode,a,o.isClone,l,u,s)}var c;if("DROP_ANIMATING"===r.phase){var f=r.completed;if(f.result.draggableId!==o.draggableId)return null;var d=o.isClone,p=r.dimensions.draggables[o.draggableId],m=f.result,h=m.mode,v=Pd(m),g=function(e){return e.combine?e.combine.draggableId:null}(m),b={duration:r.dropDuration,curve:Qs,moveTo:r.newHomeClientOffset,opacity:g?Ks.drop:null,scale:g?Xs.drop:null};return{mapped:{type:"DRAGGING",offset:r.newHomeClientOffset,dimension:p,dropping:b,draggingOver:v,combineWith:g,mode:h,forceShouldAnimate:null,snapshot:t(h,d,v,g,b)}}}return null}),o=function(){var e=Mo((function(e,t){return{x:e,y:t}})),t=Mo(Id),n=Mo((function(e,n,r){return void 0===n&&(n=null),{mapped:{type:"SECONDARY",offset:e,combineTargetFor:n,shouldAnimateDisplacement:r,snapshot:t(n)}}})),r=function(e){return e?n(ou,e,!0):null},o=function(t,o,i,a){var l=i.displaced.visible[t],u=Boolean(a.inVirtualList&&a.effected[t]),s=Pu(i),c=s&&s.draggableId===t?o:null;if(!l){if(!u)return r(c);if(i.displaced.invisible[t])return null;var f=uu(a.displacedBy.point),d=e(f.x,f.y);return n(d,c,!0)}if(u)return r(c);var p=i.displacedBy.point,m=e(p.x,p.y);return n(m,c,l.shouldAnimate)};return function(e,t){if(e.isDragging)return e.critical.draggable.id===t.draggableId?null:o(t.draggableId,e.critical.draggable.id,e.impact,e.afterCritical);if("DROP_ANIMATING"===e.phase){var n=e.completed;return n.result.draggableId===t.draggableId?null:o(t.draggableId,n.result.draggableId,n.impact,n.afterCritical)}return null}}();return function(e,t){return r(e,t)||o(e,t)||Rd}}),{dropAnimationFinished:Ys},null,{context:df,pure:!0,areStatePropsEqual:Cd})((function(e){var t=(0,o.useRef)(null),n=Il((function(e){t.current=e}),[]),r=Il((function(){return t.current}),[]),i=fd(bf),a=i.contextId,l=i.dragHandleUsageInstructionsId,u=i.registry,s=fd(gd),c=s.type,f=s.droppableId,d=Pl((function(){return{id:e.draggableId,index:e.index,type:c,droppableId:f}}),[e.draggableId,e.index,c,f]),p=e.children,m=e.draggableId,h=e.isEnabled,v=e.shouldRespectForcePress,g=e.canDragInteractiveElements,b=e.isClone,y=e.mapped,_=e.dropAnimationFinished;xd(),yf(),b||Od(Pl((function(){return{descriptor:d,registry:u,getDraggableRef:r,canDragInteractiveElements:g,shouldRespectForcePress:v,isEnabled:h}}),[d,u,r,g,v,h]));var w=Pl((function(){return h?{tabIndex:0,role:"button","aria-describedby":l,"data-rbd-drag-handle-draggable-id":m,"data-rbd-drag-handle-context-id":a,draggable:!1,onDragStart:kd}:null}),[a,l,m,h]),E=Il((function(e){"DRAGGING"===y.type&&y.dropping&&"transform"===e.propertyName&&_()}),[_,y]),S=Pl((function(){var e=Sd(y),t="DRAGGING"===y.type&&y.dropping?E:null;return{innerRef:n,draggableProps:{"data-rbd-draggable-context-id":a,"data-rbd-draggable-id":m,style:e,onTransitionEnd:t},dragHandleProps:w}}),[a,w,m,y,E,n]),O=Pl((function(){return{draggableId:d.id,type:d.type,source:{index:d.index,droppableId:d.droppableId}}}),[d.droppableId,d.id,d.index,d.type]);return p(S,y.snapshot,O)}));function Nd(e){return fd(gd).isUsingCloneFor!==e.draggableId||e.isClone?o.createElement(Dd,e):null}function Td(e){var t="boolean"!=typeof e.isDragDisabled||!e.isDragDisabled,n=Boolean(e.disableInteractiveElementBlocking),r=Boolean(e.shouldRespectForcePress);return o.createElement(Nd,Qt({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:n,shouldRespectForcePress:r}))}var Ld=function(e,t){return e===t.droppable.type},Ad=function(e,t){return t.draggables[e.draggable.id]};var Md={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:function(){return document.body||Yl(!1),document.body}},Bd=xl((function(){var e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},t=Qt({},e,{shouldAnimatePlaceholder:!1}),n=Mo((function(e){return{draggableId:e.id,type:e.type,source:{index:e.index,droppableId:e.droppableId}}})),r=Mo((function(r,o,i,a,l,u){var s=l.descriptor.id;if(l.descriptor.droppableId===r){var c=u?{render:u,dragging:n(l.descriptor)}:null,f={isDraggingOver:i,draggingOverWith:i?s:null,draggingFromThisWith:s,isUsingPlaceholder:!0};return{placeholder:l.placeholder,shouldAnimatePlaceholder:!1,snapshot:f,useClone:c}}if(!o)return t;if(!a)return e;var d={isDraggingOver:i,draggingOverWith:s,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:l.placeholder,shouldAnimatePlaceholder:!0,snapshot:d,useClone:null}}));return function(n,o){var i=o.droppableId,a=o.type,l=!o.isDropDisabled,u=o.renderClone;if(n.isDragging){var s=n.critical;if(!Ld(a,s))return t;var c=Ad(s,n.dimensions),f=ps(n.impact)===i;return r(i,l,f,f,c,u)}if("DROP_ANIMATING"===n.phase){var d=n.completed;if(!Ld(a,d.critical))return t;var p=Ad(d.critical,n.dimensions);return r(i,l,Pd(d.result)===i,ps(d.impact)===i,p,u)}if("IDLE"===n.phase&&n.completed&&!n.shouldFlush){var m=n.completed;if(!Ld(a,m.critical))return t;var h=ps(m.impact)===i,v=Boolean(m.impact.at&&"COMBINE"===m.impact.at.type),g=m.critical.droppable.id===i;return h?v?e:t:g?e:t}return t}}),{updateViewportMaxScroll:function(e){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e}}},null,{context:df,pure:!0,areStatePropsEqual:Cd})((function(e){var t=(0,o.useContext)(bf);t||Yl(!1);var n=t.contextId,r=t.isMovementAllowed,a=(0,o.useRef)(null),l=(0,o.useRef)(null),u=e.children,s=e.droppableId,c=e.type,f=e.mode,d=e.direction,p=e.ignoreContainerClipping,m=e.isDropDisabled,h=e.isCombineEnabled,v=e.snapshot,g=e.useClone,b=e.updateViewportMaxScroll,y=e.getContainerForClone,_=Il((function(){return a.current}),[]),w=Il((function(e){a.current=e}),[]),E=(Il((function(){return l.current}),[]),Il((function(e){l.current=e}),[]));_f();var S=Il((function(){r()&&b({maxScroll:Ec()})}),[r,b]);!function(e){var t=(0,o.useRef)(null),n=fd(bf),r=gf("droppable"),i=n.registry,a=n.marshal,l=Ef(e),u=Pl((function(){return{id:e.droppableId,type:e.type,mode:e.mode}}),[e.droppableId,e.mode,e.type]),s=(0,o.useRef)(u),c=Pl((function(){return Mo((function(e,n){t.current||Yl(!1);var r={x:e,y:n};a.updateDroppableScroll(u.id,r)}))}),[u.id,a]),f=Il((function(){var e=t.current;return e&&e.env.closestScrollable?od(e.env.closestScrollable):ou}),[]),d=Il((function(){var e=f();c(e.x,e.y)}),[f,c]),p=Pl((function(){return zl(d)}),[d]),m=Il((function(){var e=t.current,n=dd(e);e&&n||Yl(!1),e.scrollOptions.shouldPublishImmediately?d():p()}),[p,d]),h=Il((function(e,r){t.current&&Yl(!1);var o=l.current,i=o.getDroppableRef();i||Yl(!1);var a=ad(i),s={ref:i,descriptor:u,env:a,scrollOptions:r};t.current=s;var c=ld({ref:i,descriptor:u,env:a,windowScroll:e,direction:o.direction,isDropDisabled:o.isDropDisabled,isCombineEnabled:o.isCombineEnabled,shouldClipSubject:!o.ignoreContainerClipping}),f=a.closestScrollable;return f&&(f.setAttribute(tf.contextId,n.contextId),f.addEventListener("scroll",m,cd(s.scrollOptions))),c}),[n.contextId,u,m,l]),v=Il((function(){var e=t.current,n=dd(e);return e&&n||Yl(!1),od(n)}),[]),g=Il((function(){var e=t.current;e||Yl(!1);var n=dd(e);t.current=null,n&&(p.cancel(),n.removeAttribute(tf.contextId),n.removeEventListener("scroll",m,cd(e.scrollOptions)))}),[m,p]),b=Il((function(e){var n=t.current;n||Yl(!1);var r=dd(n);r||Yl(!1),r.scrollTop+=e.y,r.scrollLeft+=e.x}),[]),y=Pl((function(){return{getDimensionAndWatchScroll:h,getScrollWhileDragging:v,dragStopped:g,scroll:b}}),[g,h,v,b]),_=Pl((function(){return{uniqueId:r,descriptor:u,callbacks:y}}),[y,u,r]);rf((function(){return s.current=_.descriptor,i.droppable.register(_),function(){t.current&&g(),i.droppable.unregister(_)}}),[y,u,g,_,a,i.droppable]),rf((function(){t.current&&a.updateDroppableIsEnabled(s.current.id,!e.isDropDisabled)}),[e.isDropDisabled,a]),rf((function(){t.current&&a.updateDroppableIsCombineEnabled(s.current.id,e.isCombineEnabled)}),[e.isCombineEnabled,a])}({droppableId:s,type:c,mode:f,direction:d,isDropDisabled:m,isCombineEnabled:h,ignoreContainerClipping:p,getDroppableRef:_});var O=o.createElement(bd,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},(function(e){var t=e.onClose,r=e.data,i=e.animate;return o.createElement(vd,{placeholder:r,onClose:t,innerRef:E,animate:i,contextId:n,onTransitionEnd:S})})),x=Pl((function(){return{innerRef:w,placeholder:O,droppableProps:{"data-rbd-droppable-id":s,"data-rbd-droppable-context-id":n}}}),[n,s,O,w]),k=g?g.dragging.draggableId:null,C=Pl((function(){return{droppableId:s,type:c,isUsingCloneFor:k}}),[s,k,c]);return o.createElement(gd.Provider,{value:C},u(x,v),function(){if(!g)return null;var e=g.dragging,t=g.render,n=o.createElement(Nd,{draggableId:e.draggableId,index:e.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(function(n,r){return t(n,r,e)}));return i.createPortal(n,y())}())}));function Fd(e){return(Fd="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)}function jd(){return(jd=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 Vd(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 Ud(e,t){return(Ud=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function zd(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=Gd(e);if(t){var o=Gd(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Hd(this,n)}}function Hd(e,t){if(t&&("object"===Fd(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Wd(e)}function Wd(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Gd(e){return(Gd=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Bd.defaultProps=Md;var qd=function(e){!function(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}}),t&&Ud(e,t)}(l,e);var t,n,r,i=zd(l);function l(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),t=i.call(this,e);var n=e.settings,r=e.form_title,a=e.validation_type,u=n.form_fields;return t.state={field_values:u.option_values||[],field_states:[],form_settings:u,settings:n,form_title:r,status:{loading_type:null,loading_message:null},refs:{wrapper:o.createRef()},validation_type:a,last_row_index:null},t._form_validation=new D(n.events.validate_field,a),t._form_submit=new P(n.handlers.api_loader,u.api_route,t._form_validation,t.updateLoadingStatus.bind(Wd(t))),t}return t=l,(n=[{key:"render",value:function(){var e=this,t=this.state,n=t.field_values,r=t.field_states,i=t.settings,l=t.form_title,u=t.form_settings,s=t.status,c=t.refs,f=t.validation_type;return o.createElement(o.Fragment,null,o.createElement("div",{className:"fcfWidget"},o.createElement("form",{className:"fcfWidget__inner"},o.createElement("div",{className:"fcfWidget__header"},o.createElement("div",{className:"fcfWidget__headerTitle"},l),o.createElement("div",{className:"fcfWidget__headerButtons"},o.createElement("ul",{className:"fcfWidget__buttons"},o.createElement("li",{className:"fcfWidget__button"},o.createElement(a,{button_classes:"fcfButton fcfButton--wide fcfButton--small fcfButton--bg fcfButton--blue",button_alignment:"right",button_label:i.i18n.button_save,loading_type:"save_top",loading_status:s.loading_type,loading_message:s.loading_message,settings:i,onSubmit:this.onSubmit.bind(this,"save_top",{form_fields:n})}))))),o.createElement("div",{className:"fcfWidget__content"},n.length>0?o.createElement("div",{className:"fcfFields",ref:c.wrapper},o.createElement(Xf,{onBeforeDragStart:this.onDragStart.bind(this),onDragEnd:this.onDragEnd.bind(this)},o.createElement(Bd,{droppableId:"dnd-fields"},(function(t,a){return o.createElement("ul",jd({className:"fcfFields__items dnd-fields"},t.droppableProps,{ref:t.innerRef}),n.map((function(t,l){return null!==t&&e.getFieldType(t)?o.createElement(Td,{key:l,draggableId:"field-".concat(l),index:l},(function(c){return o.createElement(Aa,{provided:c,field_data:t,form_states:r[l]||{},field_type:e.getFieldType(t),section_fields:n,validation_types:[f],settings:i,form_settings:u,onChangeValue:e.onChangeValue.bind(e,l),onChangeState:e.onChangeState.bind(e,l),onFieldRemove:e.onFieldRemove.bind(e,l),onValidationInit:e.onValidationInit.bind(e),row_index:l,last_row_index:a.isDraggingOver||null!==s.loading_type?null:e.state.last_row_index})})):null})),t.placeholder)})))):o.createElement("div",{className:"fcfWidget__contentPlaceholder"},i.i18n.alert_no_fields)),o.createElement("div",{className:"fcfWidget__footer"},o.createElement("ul",{className:"fcfWidget__buttons"},o.createElement("li",{className:"fcfWidget__button"},o.createElement(a,{button_classes:"fcfButton fcfButton--wide fcfButton--bg fcfButton--blue",button_alignment:"left",button_label:i.i18n.button_save,loading_type:"save_bottom",loading_status:s.loading_type,loading_message:s.loading_message,settings:i,onSubmit:this.onSubmit.bind(this,"save_bottom",{form_fields:n})})),o.createElement("li",{className:"fcfWidget__button"},o.createElement(a,{button_classes:"fcfButton fcfButton--wide fcfButton--border fcfButton--red",button_alignment:"right",button_label:i.i18n.button_reset,loading_type:"reset_bottom",loading_status:s.loading_type,loading_message:s.loading_message,tooltip_text:i.i18n.alert_reset,settings:i,onSubmit:this.onReset.bind(this,"reset_bottom",{form_fields:{}})})))))))}},{key:"componentDidMount",value:function(){var e=this.state.field_values;this.updateFieldsPriority(e)}},{key:"onValidationInit",value:function(e,t,n){return this._form_validation.onValidationInit(e,t,n)}},{key:"onChangeValue",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=this.state.field_values,i=JSON.parse(JSON.stringify(o[e]));i[t]=n,o[e]=i,this.setState({field_values:o,last_row_index:r?null:e}),r&&this.sendRefreshEvent()}},{key:"onChangeState",value:function(e,t,n,r){var o=this.state.field_states;void 0===o[e]&&(o[e]={}),void 0===o[e][t]&&(o[e][t]={}),o[e][t][n]=r,this.setState({field_states:o})}},{key:"sendRefreshEvent",value:function(){var e=this.state.settings;clearTimeout(this.refresh_timeout),this.refresh_timeout=setTimeout((function(){window.dispatchEvent(new CustomEvent(e.events.refresh_field))}),1e3)}},{key:"onFieldRemove",value:function(e){var t=this.state.field_values;t.splice(e,1),this.setState({field_values:t,last_row_index:null}),this.sendRefreshEvent()}},{key:"onSubmit",value:function(e,t,n){return n.preventDefault(),this._form_submit.onSubmit(e,t)}},{key:"onReset",value:function(e,t){return this._form_submit.onReset(e,t)}},{key:"onDragStart",value:function(){var e=this.state.refs;e.wrapper.current.style.height="".concat(e.wrapper.current.offsetHeight,"px")}},{key:"onDragEnd",value:function(e){if(this.state.refs.wrapper.current.style.height="",e.destination){var t=this.state,n=t.field_values,r=t.field_states,o=n[e.source.index],i=r[e.source.index];n.splice(e.source.index,1),r.splice(e.source.index,1),n.splice(e.destination.index,0,o),r.splice(e.destination.index,0,i),this._form_validation.clearValidationHandlers(),this.setState({field_values:this.updateFieldsPriority(n),field_states:r,last_row_index:null})}}},{key:"updateLoadingStatus",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.state.status;n.loading_type=e,n.loading_message=t,this.setState({status:n})}},{key:"getFieldType",value:function(e){var t=this.state.form_settings;for(var n in t.option_fields)if(t.option_fields.hasOwnProperty(n)&&t.option_fields[n].reserved_field_names.indexOf(e.name)>-1)return t.option_fields[n];return t.option_fields[e.type]||t.option_fields.fcf_default}},{key:"updateFieldsPriority",value:function(e){for(var t=10,n=e.length,r=0;r<n;r++)e[r].priority=t,t+=10;return e}}])&&Vd(t.prototype,n),r&&Vd(t,r),l}(o.Component);function $d(e){return($d="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)}function Yd(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 Qd(e,t){return(Qd=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Kd(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=Jd(e);if(t){var o=Jd(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Xd(this,n)}}function Xd(e,t){if(t&&("object"===$d(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Jd(e){return(Jd=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Zd=function(e){!function(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}}),t&&Qd(e,t)}(a,e);var t,n,r,i=Kd(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).state={settings:{i18n:reactInit.i18n,handlers:{api_loader:new _(reactInit.rest_api_url,reactInit.header_nonce)},events:{validate_field:"fcf-field-validate",refresh_field:"fcf-field-refresh"},form_fields:reactInit.form_fields,form_section:reactInit.form_section,form_settings:reactInit.form_settings}},t}return t=a,(n=[{key:"render",value:function(){var e=this.state.settings;return o.createElement("ul",{className:"fcfSettings__columns fcfSettings__columns--margin"},o.createElement(o.Fragment,null,e.form_fields?o.createElement("li",{className:"fcfSettings__column"},o.createElement(ya,{settings:e,form_settings:e.form_fields,form_title:e.i18n.form_add_field,validation_type:"form_add_field",onFieldAdd:this.addNewField.bind(this)})):null,e.form_fields||e.form_section?o.createElement("li",{className:"fcfSettings__column fcfSettings__column--wide"},e.form_fields?o.createElement(qd,{settings:e,form_settings:e.form_fields,form_title:e.i18n.form_fields,validation_type:"form_fields"}):null,e.form_section?o.createElement(Ca,{settings:e,form_settings:e.form_section,form_title:e.i18n.form_section,validation_type:"form_section"}):null):null),e.form_settings?o.createElement(o.Fragment,null,o.createElement("li",{className:"fcfSettings__column fcfSettings__column--wide"},o.createElement(Ca,{settings:e,form_settings:e.form_settings,form_title:e.i18n.form_settings,validation_type:"form_settings"}))):null)}},{key:"addNewField",value:function(e){var t=this.state.settings;t.form_fields.option_values.push(e),t.form_fields.option_values=this.updateFieldsPriority(t.form_fields.option_values),this.setState({settings:t}),window.dispatchEvent(new CustomEvent(t.events.refresh_field))}},{key:"updateFieldsPriority",value:function(e){for(var t=10,n=e.length,r=0;r<n;r++)e[r].priority=t,t+=10;return e}}])&&Yd(t.prototype,n),r&&Yd(t,r),a}(o.Component);function ep(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)}}var tp=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.setVars()&&this.setEvents()}var t,n,r;return t=e,(n=[{key:"setVars",value:function(){if(this.section=document.querySelector("#fcf-settings"),this.section)return!0}},{key:"setEvents",value:function(){document.addEventListener("DOMContentLoaded",this.renderDom.bind(this))}},{key:"renderDom",value:function(){i.render(o.createElement(Zd,null),this.section)}}])&&ep(t.prototype,n),r&&ep(t,r),e}();new function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),new tp}},679:function(e,t,n){"use strict";var r=n(864),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function u(e){return r.isMemo(e)?a:l[e.$$typeof]||o}l[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[r.Memo]=a;var s=Object.defineProperty,c=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(m){var o=p(n);o&&o!==m&&e(t,o,r)}var a=c(n);f&&(a=a.concat(f(n)));for(var l=u(t),h=u(n),v=0;v<a.length;++v){var g=a[v];if(!(i[g]||r&&r[g]||h&&h[g]||l&&l[g])){var b=d(n,g);try{s(t,g,b)}catch(e){}}}}return t}},651:function(){},108:function(){},418:function(e){"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var a,l,u=o(e),s=1;s<arguments.length;s++){for(var c in a=Object(arguments[s]))n.call(a,c)&&(u[c]=a[c]);if(t){l=t(a);for(var f=0;f<l.length;f++)r.call(a,l[f])&&(u[l[f]]=a[l[f]])}}return u}},155:function(e){var t,n,r=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"==typeof clearTimeout?clearTimeout:i}catch(e){n=i}}();var l,u=[],s=!1,c=-1;function f(){s&&l&&(s=!1,l.length?u=l.concat(u):c=-1,u.length&&d())}function d(){if(!s){var e=a(f);s=!0;for(var t=u.length;t;){for(l=u,u=[];++c<t;)l&&l[c].run();c=-1,t=u.length}l=null,s=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===i||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function m(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new p(e,t)),1!==u.length||s||a(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=m,r.addListener=m,r.once=m,r.off=m,r.removeListener=m,r.removeAllListeners=m,r.emit=m,r.prependListener=m,r.prependOnceListener=m,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},703:function(e,t,n){"use strict";var r=n(414);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},697:function(e,t,n){e.exports=n(703)()},414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},448:function(e,t,n){"use strict";var r=n(294),o=n(418),i=n(840);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(a(227));var l=new Set,u={};function s(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(u[e]=t,e=0;e<t.length;e++)l.add(t[e])}var f=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p=Object.prototype.hasOwnProperty,m={},h={};function v(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new v(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new v(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new v(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new v(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){g[e]=new v(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new v(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new v(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new v(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new v(e,5,!1,e.toLowerCase(),null,!1,!1)}));var b=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function _(e,t,n,r){var o=g.hasOwnProperty(t)?g[t]:null;(null!==o?0===o.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!p.call(h,e)||!p.call(m,e)&&(d.test(e)?h[e]=!0:(m[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(b,y);g[t]=new v(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(b,y);g[t]=new v(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(b,y);g[t]=new v(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new v(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new v(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,E=60103,S=60106,O=60107,x=60108,k=60114,C=60109,P=60110,I=60112,R=60113,D=60120,N=60115,T=60116,L=60121,A=60128,M=60129,B=60130,F=60131;if("function"==typeof Symbol&&Symbol.for){var j=Symbol.for;E=j("react.element"),S=j("react.portal"),O=j("react.fragment"),x=j("react.strict_mode"),k=j("react.profiler"),C=j("react.provider"),P=j("react.context"),I=j("react.forward_ref"),R=j("react.suspense"),D=j("react.suspense_list"),N=j("react.memo"),T=j("react.lazy"),L=j("react.block"),j("react.scope"),A=j("react.opaque.id"),M=j("react.debug_trace_mode"),B=j("react.offscreen"),F=j("react.legacy_hidden")}var V,U="function"==typeof Symbol&&Symbol.iterator;function z(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=U&&e[U]||e["@@iterator"])?e:null}function H(e){if(void 0===V)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);V=t&&t[1]||""}return"\n"+V+e}var W=!1;function G(e,t){if(!e||W)return"";W=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(e){if(e&&r&&"string"==typeof e.stack){for(var o=e.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,l=i.length-1;1<=a&&0<=l&&o[a]!==i[l];)l--;for(;1<=a&&0<=l;a--,l--)if(o[a]!==i[l]){if(1!==a||1!==l)do{if(a--,0>--l||o[a]!==i[l])return"\n"+o[a].replace(" at new "," at ")}while(1<=a&&0<=l);break}}}finally{W=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?H(e):""}function q(e){switch(e.tag){case 5:return H(e.type);case 16:return H("Lazy");case 13:return H("Suspense");case 19:return H("SuspenseList");case 0:case 2:case 15:return e=G(e.type,!1);case 11:return e=G(e.type.render,!1);case 22:return e=G(e.type._render,!1);case 1:return e=G(e.type,!0);default:return""}}function $(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case O:return"Fragment";case S:return"Portal";case k:return"Profiler";case x:return"StrictMode";case R:return"Suspense";case D:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case P:return(e.displayName||"Context")+".Consumer";case C:return(e._context.displayName||"Context")+".Provider";case I:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case N:return $(e.type);case L:return $(e._render);case T:t=e._payload,e=e._init;try{return $(e(t))}catch(e){}}return null}function Y(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function Q(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function K(e){e._valueTracker||(e._valueTracker=function(e){var t=Q(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function X(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Q(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function J(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Z(e,t){var n=t.checked;return o({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ee(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=Y(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function te(e,t){null!=(t=t.checked)&&_(e,"checked",t,!1)}function ne(e,t){te(e,t);var n=Y(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?oe(e,t.type,n):t.hasOwnProperty("defaultValue")&&oe(e,t.type,Y(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function re(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function oe(e,t,n){"number"===t&&J(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function ie(e,t){return e=o({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function ae(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Y(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function le(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return o({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ue(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:Y(n)}}function se(e,t){var n=Y(t.value),r=Y(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ce(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var fe="http://www.w3.org/1999/xhtml",de="http://www.w3.org/2000/svg";function pe(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function me(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?pe(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var he,ve,ge=(ve=function(e,t){if(e.namespaceURI!==de||"innerHTML"in e)e.innerHTML=t;else{for((he=he||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=he.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ve(e,t)}))}:ve);function be(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var ye={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},_e=["Webkit","ms","Moz","O"];function we(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ye.hasOwnProperty(e)&&ye[e]?(""+t).trim():t+"px"}function Ee(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=we(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(ye).forEach((function(e){_e.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ye[t]=ye[e]}))}));var Se=o({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Oe(e,t){if(t){if(Se[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(a(62))}}function xe(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function ke(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Ce=null,Pe=null,Ie=null;function Re(e){if(e=eo(e)){if("function"!=typeof Ce)throw Error(a(280));var t=e.stateNode;t&&(t=no(t),Ce(e.stateNode,e.type,t))}}function De(e){Pe?Ie?Ie.push(e):Ie=[e]:Pe=e}function Ne(){if(Pe){var e=Pe,t=Ie;if(Ie=Pe=null,Re(e),t)for(e=0;e<t.length;e++)Re(t[e])}}function Te(e,t){return e(t)}function Le(e,t,n,r,o){return e(t,n,r,o)}function Ae(){}var Me=Te,Be=!1,Fe=!1;function je(){null===Pe&&null===Ie||(Ae(),Ne())}function Ve(e,t){var n=e.stateNode;if(null===n)return null;var r=no(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(a(231,t,typeof n));return n}var Ue=!1;if(f)try{var ze={};Object.defineProperty(ze,"passive",{get:function(){Ue=!0}}),window.addEventListener("test",ze,ze),window.removeEventListener("test",ze,ze)}catch(ve){Ue=!1}function He(e,t,n,r,o,i,a,l,u){var s=Array.prototype.slice.call(arguments,3);try{t.apply(n,s)}catch(e){this.onError(e)}}var We=!1,Ge=null,qe=!1,$e=null,Ye={onError:function(e){We=!0,Ge=e}};function Qe(e,t,n,r,o,i,a,l,u){We=!1,Ge=null,He.apply(Ye,arguments)}function Ke(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Xe(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Je(e){if(Ke(e)!==e)throw Error(a(188))}function Ze(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ke(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return Je(o),e;if(i===r)return Je(o),t;i=i.sibling}throw Error(a(188))}if(n.return!==r.return)n=o,r=i;else{for(var l=!1,u=o.child;u;){if(u===n){l=!0,n=o,r=i;break}if(u===r){l=!0,r=o,n=i;break}u=u.sibling}if(!l){for(u=i.child;u;){if(u===n){l=!0,n=i,r=o;break}if(u===r){l=!0,r=i,n=o;break}u=u.sibling}if(!l)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function et(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var tt,nt,rt,ot,it=!1,at=[],lt=null,ut=null,st=null,ct=new Map,ft=new Map,dt=[],pt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function mt(e,t,n,r,o){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:o,targetContainers:[r]}}function ht(e,t){switch(e){case"focusin":case"focusout":lt=null;break;case"dragenter":case"dragleave":ut=null;break;case"mouseover":case"mouseout":st=null;break;case"pointerover":case"pointerout":ct.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ft.delete(t.pointerId)}}function vt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e=mt(t,n,r,o,i),null!==t&&(null!==(t=eo(t))&&nt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function gt(e){var t=Zr(e.target);if(null!==t){var n=Ke(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Xe(n)))return e.blockedOn=t,void ot(e.lanePriority,(function(){i.unstable_runWithPriority(e.priority,(function(){rt(n)}))}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function bt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Zt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=eo(n))&&nt(t),e.blockedOn=n,!1;t.shift()}return!0}function yt(e,t,n){bt(e)&&n.delete(t)}function _t(){for(it=!1;0<at.length;){var e=at[0];if(null!==e.blockedOn){null!==(e=eo(e.blockedOn))&&tt(e);break}for(var t=e.targetContainers;0<t.length;){var n=Zt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&at.shift()}null!==lt&&bt(lt)&&(lt=null),null!==ut&&bt(ut)&&(ut=null),null!==st&&bt(st)&&(st=null),ct.forEach(yt),ft.forEach(yt)}function wt(e,t){e.blockedOn===t&&(e.blockedOn=null,it||(it=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,_t)))}function Et(e){function t(t){return wt(t,e)}if(0<at.length){wt(at[0],e);for(var n=1;n<at.length;n++){var r=at[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==lt&&wt(lt,e),null!==ut&&wt(ut,e),null!==st&&wt(st,e),ct.forEach(t),ft.forEach(t),n=0;n<dt.length;n++)(r=dt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<dt.length&&null===(n=dt[0]).blockedOn;)gt(n),null===n.blockedOn&&dt.shift()}function St(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ot={animationend:St("Animation","AnimationEnd"),animationiteration:St("Animation","AnimationIteration"),animationstart:St("Animation","AnimationStart"),transitionend:St("Transition","TransitionEnd")},xt={},kt={};function Ct(e){if(xt[e])return xt[e];if(!Ot[e])return e;var t,n=Ot[e];for(t in n)if(n.hasOwnProperty(t)&&t in kt)return xt[e]=n[t];return e}f&&(kt=document.createElement("div").style,"AnimationEvent"in window||(delete Ot.animationend.animation,delete Ot.animationiteration.animation,delete Ot.animationstart.animation),"TransitionEvent"in window||delete Ot.transitionend.transition);var Pt=Ct("animationend"),It=Ct("animationiteration"),Rt=Ct("animationstart"),Dt=Ct("transitionend"),Nt=new Map,Tt=new Map,Lt=["abort","abort",Pt,"animationEnd",It,"animationIteration",Rt,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Dt,"transitionEnd","waiting","waiting"];function At(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],o=e[n+1];o="on"+(o[0].toUpperCase()+o.slice(1)),Tt.set(r,t),Nt.set(r,o),s(o,[r])}}(0,i.unstable_now)();var Mt=8;function Bt(e){if(0!=(1&e))return Mt=15,1;if(0!=(2&e))return Mt=14,2;if(0!=(4&e))return Mt=13,4;var t=24&e;return 0!==t?(Mt=12,t):0!=(32&e)?(Mt=11,32):0!==(t=192&e)?(Mt=10,t):0!=(256&e)?(Mt=9,256):0!==(t=3584&e)?(Mt=8,t):0!=(4096&e)?(Mt=7,4096):0!==(t=4186112&e)?(Mt=6,t):0!==(t=62914560&e)?(Mt=5,t):67108864&e?(Mt=4,67108864):0!=(134217728&e)?(Mt=3,134217728):0!==(t=805306368&e)?(Mt=2,t):0!=(1073741824&e)?(Mt=1,1073741824):(Mt=8,e)}function Ft(e,t){var n=e.pendingLanes;if(0===n)return Mt=0;var r=0,o=0,i=e.expiredLanes,a=e.suspendedLanes,l=e.pingedLanes;if(0!==i)r=i,o=Mt=15;else if(0!==(i=134217727&n)){var u=i&~a;0!==u?(r=Bt(u),o=Mt):0!==(l&=i)&&(r=Bt(l),o=Mt)}else 0!==(i=n&~a)?(r=Bt(i),o=Mt):0!==l&&(r=Bt(l),o=Mt);if(0===r)return 0;if(r=n&((0>(r=31-Wt(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&0==(t&a)){if(Bt(t),o<=Mt)return t;Mt=o}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-Wt(t)),r|=e[n],t&=~o;return r}function jt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Vt(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=Ut(24&~t))?Vt(10,t):e;case 10:return 0===(e=Ut(192&~t))?Vt(8,t):e;case 8:return 0===(e=Ut(3584&~t))&&(0===(e=Ut(4186112&~t))&&(e=512)),e;case 2:return 0===(t=Ut(805306368&~t))&&(t=268435456),t}throw Error(a(358,e))}function Ut(e){return e&-e}function zt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ht(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-Wt(t)]=n}var Wt=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Gt(e)/qt|0)|0},Gt=Math.log,qt=Math.LN2;var $t=i.unstable_UserBlockingPriority,Yt=i.unstable_runWithPriority,Qt=!0;function Kt(e,t,n,r){Be||Ae();var o=Jt,i=Be;Be=!0;try{Le(o,e,t,n,r)}finally{(Be=i)||je()}}function Xt(e,t,n,r){Yt($t,Jt.bind(null,e,t,n,r))}function Jt(e,t,n,r){var o;if(Qt)if((o=0==(4&t))&&0<at.length&&-1<pt.indexOf(e))e=mt(null,e,t,n,r),at.push(e);else{var i=Zt(e,t,n,r);if(null===i)o&&ht(e,r);else{if(o){if(-1<pt.indexOf(e))return e=mt(i,e,t,n,r),void at.push(e);if(function(e,t,n,r,o){switch(t){case"focusin":return lt=vt(lt,e,t,n,r,o),!0;case"dragenter":return ut=vt(ut,e,t,n,r,o),!0;case"mouseover":return st=vt(st,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return ct.set(i,vt(ct.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,ft.set(i,vt(ft.get(i)||null,e,t,n,r,o)),!0}return!1}(i,e,t,n,r))return;ht(e,r)}Nr(e,t,r,null,n)}}}function Zt(e,t,n,r){var o=ke(r);if(null!==(o=Zr(o))){var i=Ke(o);if(null===i)o=null;else{var a=i.tag;if(13===a){if(null!==(o=Xe(i)))return o;o=null}else if(3===a){if(i.stateNode.hydrate)return 3===i.tag?i.stateNode.containerInfo:null;o=null}else i!==o&&(o=null)}}return Nr(e,t,r,o,n),null}var en=null,tn=null,nn=null;function rn(){if(nn)return nn;var e,t,n=tn,r=n.length,o="value"in en?en.value:en.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return nn=o.slice(e,1<t?1-t:void 0)}function on(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function an(){return!0}function ln(){return!1}function un(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?an:ln,this.isPropagationStopped=ln,this}return o(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=an)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=an)},persist:function(){},isPersistent:an}),t}var sn,cn,fn,dn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},pn=un(dn),mn=o({},dn,{view:0,detail:0}),hn=un(mn),vn=o({},mn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==fn&&(fn&&"mousemove"===e.type?(sn=e.screenX-fn.screenX,cn=e.screenY-fn.screenY):cn=sn=0,fn=e),sn)},movementY:function(e){return"movementY"in e?e.movementY:cn}}),gn=un(vn),bn=un(o({},vn,{dataTransfer:0})),yn=un(o({},mn,{relatedTarget:0})),_n=un(o({},dn,{animationName:0,elapsedTime:0,pseudoElement:0})),wn=un(o({},dn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),En=un(o({},dn,{data:0})),Sn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},On={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},xn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function kn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=xn[e])&&!!t[e]}function Cn(){return kn}var Pn=un(o({},mn,{key:function(e){if(e.key){var t=Sn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=on(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?On[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cn,charCode:function(e){return"keypress"===e.type?on(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?on(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),In=un(o({},vn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Rn=un(o({},mn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cn})),Dn=un(o({},dn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Nn=un(o({},vn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),Tn=[9,13,27,32],Ln=f&&"CompositionEvent"in window,An=null;f&&"documentMode"in document&&(An=document.documentMode);var Mn=f&&"TextEvent"in window&&!An,Bn=f&&(!Ln||An&&8<An&&11>=An),Fn=String.fromCharCode(32),jn=!1;function Vn(e,t){switch(e){case"keyup":return-1!==Tn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Un(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var zn=!1;var Hn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Wn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Hn[e.type]:"textarea"===t}function Gn(e,t,n,r){De(r),0<(t=Lr(t,"onChange")).length&&(n=new pn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var qn=null,$n=null;function Yn(e){kr(e,0)}function Qn(e){if(X(to(e)))return e}function Kn(e,t){if("change"===e)return t}var Xn=!1;if(f){var Jn;if(f){var Zn="oninput"in document;if(!Zn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Zn="function"==typeof er.oninput}Jn=Zn}else Jn=!1;Xn=Jn&&(!document.documentMode||9<document.documentMode)}function tr(){qn&&(qn.detachEvent("onpropertychange",nr),$n=qn=null)}function nr(e){if("value"===e.propertyName&&Qn($n)){var t=[];if(Gn(t,$n,e,ke(e)),e=Yn,Be)e(t);else{Be=!0;try{Te(e,t)}finally{Be=!1,je()}}}}function rr(e,t,n){"focusin"===e?(tr(),$n=n,(qn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Qn($n)}function ir(e,t){if("click"===e)return Qn(t)}function ar(e,t){if("input"===e||"change"===e)return Qn(t)}var lr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},ur=Object.prototype.hasOwnProperty;function sr(e,t){if(lr(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(r=0;r<n.length;r++)if(!ur.call(t,n[r])||!lr(e[n[r]],t[n[r]]))return!1;return!0}function cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function fr(e,t){var n,r=cr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=cr(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function pr(){for(var e=window,t=J();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=J((e=t.contentWindow).document)}return t}function mr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var hr=f&&"documentMode"in document&&11>=document.documentMode,vr=null,gr=null,br=null,yr=!1;function _r(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;yr||null==vr||vr!==J(r)||("selectionStart"in(r=vr)&&mr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},br&&sr(br,r)||(br=r,0<(r=Lr(gr,"onSelect")).length&&(t=new pn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=vr)))}At("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),At("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),At(Lt,2);for(var wr="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Er=0;Er<wr.length;Er++)Tt.set(wr[Er],0);c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),s("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),s("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),s("onBeforeInput",["compositionend","keypress","textInput","paste"]),s("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Sr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Or=new Set("cancel close invalid load scroll toggle".split(" ").concat(Sr));function xr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,i,l,u,s){if(Qe.apply(this,arguments),We){if(!We)throw Error(a(198));var c=Ge;We=!1,Ge=null,qe||(qe=!0,$e=c)}}(r,t,void 0,e),e.currentTarget=null}function kr(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var l=r[a],u=l.instance,s=l.currentTarget;if(l=l.listener,u!==i&&o.isPropagationStopped())break e;xr(o,l,s),i=u}else for(a=0;a<r.length;a++){if(u=(l=r[a]).instance,s=l.currentTarget,l=l.listener,u!==i&&o.isPropagationStopped())break e;xr(o,l,s),i=u}}}if(qe)throw e=$e,qe=!1,$e=null,e}function Cr(e,t){var n=ro(t),r=e+"__bubble";n.has(r)||(Dr(t,e,2,!1),n.add(r))}var Pr="_reactListening"+Math.random().toString(36).slice(2);function Ir(e){e[Pr]||(e[Pr]=!0,l.forEach((function(t){Or.has(t)||Rr(t,!1,e,null),Rr(t,!0,e,null)})))}function Rr(e,t,n,r){var o=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,i=n;if("selectionchange"===e&&9!==n.nodeType&&(i=n.ownerDocument),null!==r&&!t&&Or.has(e)){if("scroll"!==e)return;o|=2,i=r}var a=ro(i),l=e+"__"+(t?"capture":"bubble");a.has(l)||(t&&(o|=4),Dr(i,e,o,t),a.add(l))}function Dr(e,t,n,r){var o=Tt.get(t);switch(void 0===o?2:o){case 0:o=Kt;break;case 1:o=Xt;break;default:o=Jt}n=o.bind(null,t,n,e),o=void 0,!Ue||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Nr(e,t,n,r,o){var i=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var l=r.stateNode.containerInfo;if(l===o||8===l.nodeType&&l.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var u=a.tag;if((3===u||4===u)&&((u=a.stateNode.containerInfo)===o||8===u.nodeType&&u.parentNode===o))return;a=a.return}for(;null!==l;){if(null===(a=Zr(l)))return;if(5===(u=a.tag)||6===u){r=i=a;continue e}l=l.parentNode}}r=r.return}!function(e,t,n){if(Fe)return e(t,n);Fe=!0;try{Me(e,t,n)}finally{Fe=!1,je()}}((function(){var r=i,o=ke(n),a=[];e:{var l=Nt.get(e);if(void 0!==l){var u=pn,s=e;switch(e){case"keypress":if(0===on(n))break e;case"keydown":case"keyup":u=Pn;break;case"focusin":s="focus",u=yn;break;case"focusout":s="blur",u=yn;break;case"beforeblur":case"afterblur":u=yn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=gn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=bn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=Rn;break;case Pt:case It:case Rt:u=_n;break;case Dt:u=Dn;break;case"scroll":u=hn;break;case"wheel":u=Nn;break;case"copy":case"cut":case"paste":u=wn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=In}var c=0!=(4&t),f=!c&&"scroll"===e,d=c?null!==l?l+"Capture":null:l;c=[];for(var p,m=r;null!==m;){var h=(p=m).stateNode;if(5===p.tag&&null!==h&&(p=h,null!==d&&(null!=(h=Ve(m,d))&&c.push(Tr(m,h,p)))),f)break;m=m.return}0<c.length&&(l=new u(l,s,null,n,o),a.push({event:l,listeners:c}))}}if(0==(7&t)){if(u="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||0!=(16&t)||!(s=n.relatedTarget||n.fromElement)||!Zr(s)&&!s[Xr])&&(u||l)&&(l=o.window===o?o:(l=o.ownerDocument)?l.defaultView||l.parentWindow:window,u?(u=r,null!==(s=(s=n.relatedTarget||n.toElement)?Zr(s):null)&&(s!==(f=Ke(s))||5!==s.tag&&6!==s.tag)&&(s=null)):(u=null,s=r),u!==s)){if(c=gn,h="onMouseLeave",d="onMouseEnter",m="mouse","pointerout"!==e&&"pointerover"!==e||(c=In,h="onPointerLeave",d="onPointerEnter",m="pointer"),f=null==u?l:to(u),p=null==s?l:to(s),(l=new c(h,m+"leave",u,n,o)).target=f,l.relatedTarget=p,h=null,Zr(o)===r&&((c=new c(d,m+"enter",s,n,o)).target=p,c.relatedTarget=f,h=c),f=h,u&&s)e:{for(d=s,m=0,p=c=u;p;p=Ar(p))m++;for(p=0,h=d;h;h=Ar(h))p++;for(;0<m-p;)c=Ar(c),m--;for(;0<p-m;)d=Ar(d),p--;for(;m--;){if(c===d||null!==d&&c===d.alternate)break e;c=Ar(c),d=Ar(d)}c=null}else c=null;null!==u&&Mr(a,l,u,c,!1),null!==s&&null!==f&&Mr(a,f,s,c,!0)}if("select"===(u=(l=r?to(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===u&&"file"===l.type)var v=Kn;else if(Wn(l))if(Xn)v=ar;else{v=or;var g=rr}else(u=l.nodeName)&&"input"===u.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(v=ir);switch(v&&(v=v(e,r))?Gn(a,v,n,o):(g&&g(e,l,r),"focusout"===e&&(g=l._wrapperState)&&g.controlled&&"number"===l.type&&oe(l,"number",l.value)),g=r?to(r):window,e){case"focusin":(Wn(g)||"true"===g.contentEditable)&&(vr=g,gr=r,br=null);break;case"focusout":br=gr=vr=null;break;case"mousedown":yr=!0;break;case"contextmenu":case"mouseup":case"dragend":yr=!1,_r(a,n,o);break;case"selectionchange":if(hr)break;case"keydown":case"keyup":_r(a,n,o)}var b;if(Ln)e:{switch(e){case"compositionstart":var y="onCompositionStart";break e;case"compositionend":y="onCompositionEnd";break e;case"compositionupdate":y="onCompositionUpdate";break e}y=void 0}else zn?Vn(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(Bn&&"ko"!==n.locale&&(zn||"onCompositionStart"!==y?"onCompositionEnd"===y&&zn&&(b=rn()):(tn="value"in(en=o)?en.value:en.textContent,zn=!0)),0<(g=Lr(r,y)).length&&(y=new En(y,e,null,n,o),a.push({event:y,listeners:g}),b?y.data=b:null!==(b=Un(n))&&(y.data=b))),(b=Mn?function(e,t){switch(e){case"compositionend":return Un(t);case"keypress":return 32!==t.which?null:(jn=!0,Fn);case"textInput":return(e=t.data)===Fn&&jn?null:e;default:return null}}(e,n):function(e,t){if(zn)return"compositionend"===e||!Ln&&Vn(e,t)?(e=rn(),nn=tn=en=null,zn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Bn&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))&&(0<(r=Lr(r,"onBeforeInput")).length&&(o=new En("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=b))}kr(a,t)}))}function Tr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Lr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Ve(e,n))&&r.unshift(Tr(e,i,o)),null!=(i=Ve(e,t))&&r.push(Tr(e,i,o))),e=e.return}return r}function Ar(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Mr(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var l=n,u=l.alternate,s=l.stateNode;if(null!==u&&u===r)break;5===l.tag&&null!==s&&(l=s,o?null!=(u=Ve(n,i))&&a.unshift(Tr(n,u,l)):o||null!=(u=Ve(n,i))&&a.push(Tr(n,u,l))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}function Br(){}var Fr=null,jr=null;function Vr(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Ur(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var zr="function"==typeof setTimeout?setTimeout:void 0,Hr="function"==typeof clearTimeout?clearTimeout:void 0;function Wr(e){1===e.nodeType?e.textContent="":9===e.nodeType&&(null!=(e=e.body)&&(e.textContent=""))}function Gr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function qr(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var $r=0;var Yr=Math.random().toString(36).slice(2),Qr="__reactFiber$"+Yr,Kr="__reactProps$"+Yr,Xr="__reactContainer$"+Yr,Jr="__reactEvents$"+Yr;function Zr(e){var t=e[Qr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Xr]||n[Qr]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=qr(e);null!==e;){if(n=e[Qr])return n;e=qr(e)}return t}n=(e=n).parentNode}return null}function eo(e){return!(e=e[Qr]||e[Xr])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function to(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function no(e){return e[Kr]||null}function ro(e){var t=e[Jr];return void 0===t&&(t=e[Jr]=new Set),t}var oo=[],io=-1;function ao(e){return{current:e}}function lo(e){0>io||(e.current=oo[io],oo[io]=null,io--)}function uo(e,t){io++,oo[io]=e.current,e.current=t}var so={},co=ao(so),fo=ao(!1),po=so;function mo(e,t){var n=e.type.contextTypes;if(!n)return so;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function ho(e){return null!=(e=e.childContextTypes)}function vo(){lo(fo),lo(co)}function go(e,t,n){if(co.current!==so)throw Error(a(168));uo(co,t),uo(fo,n)}function bo(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in e))throw Error(a(108,$(t)||"Unknown",i));return o({},n,r)}function yo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||so,po=co.current,uo(co,e),uo(fo,fo.current),!0}function _o(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=bo(e,t,po),r.__reactInternalMemoizedMergedChildContext=e,lo(fo),lo(co),uo(co,e)):lo(fo),uo(fo,n)}var wo=null,Eo=null,So=i.unstable_runWithPriority,Oo=i.unstable_scheduleCallback,xo=i.unstable_cancelCallback,ko=i.unstable_shouldYield,Co=i.unstable_requestPaint,Po=i.unstable_now,Io=i.unstable_getCurrentPriorityLevel,Ro=i.unstable_ImmediatePriority,Do=i.unstable_UserBlockingPriority,No=i.unstable_NormalPriority,To=i.unstable_LowPriority,Lo=i.unstable_IdlePriority,Ao={},Mo=void 0!==Co?Co:function(){},Bo=null,Fo=null,jo=!1,Vo=Po(),Uo=1e4>Vo?Po:function(){return Po()-Vo};function zo(){switch(Io()){case Ro:return 99;case Do:return 98;case No:return 97;case To:return 96;case Lo:return 95;default:throw Error(a(332))}}function Ho(e){switch(e){case 99:return Ro;case 98:return Do;case 97:return No;case 96:return To;case 95:return Lo;default:throw Error(a(332))}}function Wo(e,t){return e=Ho(e),So(e,t)}function Go(e,t,n){return e=Ho(e),Oo(e,t,n)}function qo(){if(null!==Fo){var e=Fo;Fo=null,xo(e)}$o()}function $o(){if(!jo&&null!==Bo){jo=!0;var e=0;try{var t=Bo;Wo(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Bo=null}catch(t){throw null!==Bo&&(Bo=Bo.slice(e+1)),Oo(Ro,qo),t}finally{jo=!1}}}var Yo=w.ReactCurrentBatchConfig;function Qo(e,t){if(e&&e.defaultProps){for(var n in t=o({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var Ko=ao(null),Xo=null,Jo=null,Zo=null;function ei(){Zo=Jo=Xo=null}function ti(e){var t=Ko.current;lo(Ko),e.type._context._currentValue=t}function ni(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}function ri(e,t){Xo=e,Zo=Jo=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(La=!0),e.firstContext=null)}function oi(e,t){if(Zo!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(Zo=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Jo){if(null===Xo)throw Error(a(308));Jo=t,Xo.dependencies={lanes:0,firstContext:t,responders:null}}else Jo=Jo.next=t;return e._currentValue}var ii=!1;function ai(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function li(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ui(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function si(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function ci(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function fi(e,t,n,r){var i=e.updateQueue;ii=!1;var a=i.firstBaseUpdate,l=i.lastBaseUpdate,u=i.shared.pending;if(null!==u){i.shared.pending=null;var s=u,c=s.next;s.next=null,null===l?a=c:l.next=c,l=s;var f=e.alternate;if(null!==f){var d=(f=f.updateQueue).lastBaseUpdate;d!==l&&(null===d?f.firstBaseUpdate=c:d.next=c,f.lastBaseUpdate=s)}}if(null!==a){for(d=i.baseState,l=0,f=c=s=null;;){u=a.lane;var p=a.eventTime;if((r&u)===u){null!==f&&(f=f.next={eventTime:p,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var m=e,h=a;switch(u=t,p=n,h.tag){case 1:if("function"==typeof(m=h.payload)){d=m.call(p,d,u);break e}d=m;break e;case 3:m.flags=-4097&m.flags|64;case 0:if(null==(u="function"==typeof(m=h.payload)?m.call(p,d,u):m))break e;d=o({},d,u);break e;case 2:ii=!0}}null!==a.callback&&(e.flags|=32,null===(u=i.effects)?i.effects=[a]:u.push(a))}else p={eventTime:p,lane:u,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===f?(c=f=p,s=d):f=f.next=p,l|=u;if(null===(a=a.next)){if(null===(u=i.shared.pending))break;a=u.next,u.next=null,i.lastBaseUpdate=u,i.shared.pending=null}}null===f&&(s=d),i.baseState=s,i.firstBaseUpdate=c,i.lastBaseUpdate=f,Bl|=l,e.lanes=l,e.memoizedState=d}}function di(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(a(191,o));o.call(r)}}}var pi=(new r.Component).refs;function mi(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:o({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var hi={isMounted:function(e){return!!(e=e._reactInternals)&&Ke(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=uu(),o=su(e),i=ui(r,o);i.payload=t,null!=n&&(i.callback=n),si(e,i),cu(e,o,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=uu(),o=su(e),i=ui(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),si(e,i),cu(e,o,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=uu(),r=su(e),o=ui(n,r);o.tag=2,null!=t&&(o.callback=t),si(e,o),cu(e,r,n)}};function vi(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!sr(n,r)||!sr(o,i))}function gi(e,t,n){var r=!1,o=so,i=t.contextType;return"object"==typeof i&&null!==i?i=oi(i):(o=ho(t)?po:co.current,i=(r=null!=(r=t.contextTypes))?mo(e,o):so),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=hi,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function bi(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&hi.enqueueReplaceState(t,t.state,null)}function yi(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=pi,ai(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=oi(i):(i=ho(t)?po:co.current,o.context=mo(e,i)),fi(e,n,o,r),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(mi(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&hi.enqueueReplaceState(o,o.state,null),fi(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4)}var _i=Array.isArray;function wi(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var o=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===o?t.ref:((t=function(e){var t=r.refs;t===pi&&(t=r.refs={}),null===e?delete t[o]:t[o]=e})._stringRef=o,t)}if("string"!=typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function Ei(e,t){if("textarea"!==e.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function Si(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.flags=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=zu(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags=2,n):r:(t.flags=2,n):n}function l(t){return e&&null===t.alternate&&(t.flags=2),t}function u(e,t,n,r){return null===t||6!==t.tag?((t=qu(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function s(e,t,n,r){return null!==t&&t.elementType===n.type?((r=o(t,n.props)).ref=wi(e,t,n),r.return=e,r):((r=Hu(n.type,n.key,n.props,null,e.mode,r)).ref=wi(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=$u(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function f(e,t,n,r,i){return null===t||7!==t.tag?((t=Wu(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=qu(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case E:return(n=Hu(t.type,t.key,t.props,null,e.mode,n)).ref=wi(e,null,t),n.return=e,n;case S:return(t=$u(t,e.mode,n)).return=e,t}if(_i(t)||z(t))return(t=Wu(t,e.mode,n,null)).return=e,t;Ei(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==o?null:u(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case E:return n.key===o?n.type===O?f(e,t,n.props.children,r,o):s(e,t,n,r):null;case S:return n.key===o?c(e,t,n,r):null}if(_i(n)||z(n))return null!==o?null:f(e,t,n,r,null);Ei(e,n)}return null}function m(e,t,n,r,o){if("string"==typeof r||"number"==typeof r)return u(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case E:return e=e.get(null===r.key?n:r.key)||null,r.type===O?f(t,e,r.props.children,o,r.key):s(t,e,r,o);case S:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o)}if(_i(r)||z(r))return f(t,e=e.get(n)||null,r,o,null);Ei(t,r)}return null}function h(o,a,l,u){for(var s=null,c=null,f=a,h=a=0,v=null;null!==f&&h<l.length;h++){f.index>h?(v=f,f=null):v=f.sibling;var g=p(o,f,l[h],u);if(null===g){null===f&&(f=v);break}e&&f&&null===g.alternate&&t(o,f),a=i(g,a,h),null===c?s=g:c.sibling=g,c=g,f=v}if(h===l.length)return n(o,f),s;if(null===f){for(;h<l.length;h++)null!==(f=d(o,l[h],u))&&(a=i(f,a,h),null===c?s=f:c.sibling=f,c=f);return s}for(f=r(o,f);h<l.length;h++)null!==(v=m(f,o,h,l[h],u))&&(e&&null!==v.alternate&&f.delete(null===v.key?h:v.key),a=i(v,a,h),null===c?s=v:c.sibling=v,c=v);return e&&f.forEach((function(e){return t(o,e)})),s}function v(o,l,u,s){var c=z(u);if("function"!=typeof c)throw Error(a(150));if(null==(u=c.call(u)))throw Error(a(151));for(var f=c=null,h=l,v=l=0,g=null,b=u.next();null!==h&&!b.done;v++,b=u.next()){h.index>v?(g=h,h=null):g=h.sibling;var y=p(o,h,b.value,s);if(null===y){null===h&&(h=g);break}e&&h&&null===y.alternate&&t(o,h),l=i(y,l,v),null===f?c=y:f.sibling=y,f=y,h=g}if(b.done)return n(o,h),c;if(null===h){for(;!b.done;v++,b=u.next())null!==(b=d(o,b.value,s))&&(l=i(b,l,v),null===f?c=b:f.sibling=b,f=b);return c}for(h=r(o,h);!b.done;v++,b=u.next())null!==(b=m(h,o,v,b.value,s))&&(e&&null!==b.alternate&&h.delete(null===b.key?v:b.key),l=i(b,l,v),null===f?c=b:f.sibling=b,f=b);return e&&h.forEach((function(e){return t(o,e)})),c}return function(e,r,i,u){var s="object"==typeof i&&null!==i&&i.type===O&&null===i.key;s&&(i=i.props.children);var c="object"==typeof i&&null!==i;if(c)switch(i.$$typeof){case E:e:{for(c=i.key,s=r;null!==s;){if(s.key===c){switch(s.tag){case 7:if(i.type===O){n(e,s.sibling),(r=o(s,i.props.children)).return=e,e=r;break e}break;default:if(s.elementType===i.type){n(e,s.sibling),(r=o(s,i.props)).ref=wi(e,s,i),r.return=e,e=r;break e}}n(e,s);break}t(e,s),s=s.sibling}i.type===O?((r=Wu(i.props.children,e.mode,u,i.key)).return=e,e=r):((u=Hu(i.type,i.key,i.props,null,e.mode,u)).ref=wi(e,r,i),u.return=e,e=u)}return l(e);case S:e:{for(s=i.key;null!==r;){if(r.key===s){if(4===r.tag&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){n(e,r.sibling),(r=o(r,i.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=$u(i,e.mode,u)).return=e,e=r}return l(e)}if("string"==typeof i||"number"==typeof i)return i=""+i,null!==r&&6===r.tag?(n(e,r.sibling),(r=o(r,i)).return=e,e=r):(n(e,r),(r=qu(i,e.mode,u)).return=e,e=r),l(e);if(_i(i))return h(e,r,i,u);if(z(i))return v(e,r,i,u);if(c&&Ei(e,i),void 0===i&&!s)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(a(152,$(e.type)||"Component"))}return n(e,r)}}var Oi=Si(!0),xi=Si(!1),ki={},Ci=ao(ki),Pi=ao(ki),Ii=ao(ki);function Ri(e){if(e===ki)throw Error(a(174));return e}function Di(e,t){switch(uo(Ii,t),uo(Pi,e),uo(Ci,ki),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:me(null,"");break;default:t=me(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}lo(Ci),uo(Ci,t)}function Ni(){lo(Ci),lo(Pi),lo(Ii)}function Ti(e){Ri(Ii.current);var t=Ri(Ci.current),n=me(t,e.type);t!==n&&(uo(Pi,e),uo(Ci,n))}function Li(e){Pi.current===e&&(lo(Ci),lo(Pi))}var Ai=ao(0);function Mi(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Bi=null,Fi=null,ji=!1;function Vi(e,t){var n=Vu(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Ui(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function zi(e){if(ji){var t=Fi;if(t){var n=t;if(!Ui(e,t)){if(!(t=Gr(n.nextSibling))||!Ui(e,t))return e.flags=-1025&e.flags|2,ji=!1,void(Bi=e);Vi(Bi,n)}Bi=e,Fi=Gr(t.firstChild)}else e.flags=-1025&e.flags|2,ji=!1,Bi=e}}function Hi(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Bi=e}function Wi(e){if(e!==Bi)return!1;if(!ji)return Hi(e),ji=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Ur(t,e.memoizedProps))for(t=Fi;t;)Vi(e,t),t=Gr(t.nextSibling);if(Hi(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Fi=Gr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Fi=null}}else Fi=Bi?Gr(e.stateNode.nextSibling):null;return!0}function Gi(){Fi=Bi=null,ji=!1}var qi=[];function $i(){for(var e=0;e<qi.length;e++)qi[e]._workInProgressVersionPrimary=null;qi.length=0}var Yi=w.ReactCurrentDispatcher,Qi=w.ReactCurrentBatchConfig,Ki=0,Xi=null,Ji=null,Zi=null,ea=!1,ta=!1;function na(){throw Error(a(321))}function ra(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!lr(e[n],t[n]))return!1;return!0}function oa(e,t,n,r,o,i){if(Ki=i,Xi=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Yi.current=null===e||null===e.memoizedState?Ra:Da,e=n(r,o),ta){i=0;do{if(ta=!1,!(25>i))throw Error(a(301));i+=1,Zi=Ji=null,t.updateQueue=null,Yi.current=Na,e=n(r,o)}while(ta)}if(Yi.current=Ia,t=null!==Ji&&null!==Ji.next,Ki=0,Zi=Ji=Xi=null,ea=!1,t)throw Error(a(300));return e}function ia(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Zi?Xi.memoizedState=Zi=e:Zi=Zi.next=e,Zi}function aa(){if(null===Ji){var e=Xi.alternate;e=null!==e?e.memoizedState:null}else e=Ji.next;var t=null===Zi?Xi.memoizedState:Zi.next;if(null!==t)Zi=t,Ji=e;else{if(null===e)throw Error(a(310));e={memoizedState:(Ji=e).memoizedState,baseState:Ji.baseState,baseQueue:Ji.baseQueue,queue:Ji.queue,next:null},null===Zi?Xi.memoizedState=Zi=e:Zi=Zi.next=e}return Zi}function la(e,t){return"function"==typeof t?t(e):t}function ua(e){var t=aa(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=Ji,o=r.baseQueue,i=n.pending;if(null!==i){if(null!==o){var l=o.next;o.next=i.next,i.next=l}r.baseQueue=o=i,n.pending=null}if(null!==o){o=o.next,r=r.baseState;var u=l=i=null,s=o;do{var c=s.lane;if((Ki&c)===c)null!==u&&(u=u.next={lane:0,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null}),r=s.eagerReducer===e?s.eagerState:e(r,s.action);else{var f={lane:c,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null};null===u?(l=u=f,i=r):u=u.next=f,Xi.lanes|=c,Bl|=c}s=s.next}while(null!==s&&s!==o);null===u?i=r:u.next=l,lr(r,t.memoizedState)||(La=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=u,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function sa(e){var t=aa(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var l=o=o.next;do{i=e(i,l.action),l=l.next}while(l!==o);lr(i,t.memoizedState)||(La=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function ca(e,t,n){var r=t._getVersion;r=r(t._source);var o=t._workInProgressVersionPrimary;if(null!==o?e=o===r:(e=e.mutableReadLanes,(e=(Ki&e)===e)&&(t._workInProgressVersionPrimary=r,qi.push(t))),e)return n(t._source);throw qi.push(t),Error(a(350))}function fa(e,t,n,r){var o=Il;if(null===o)throw Error(a(349));var i=t._getVersion,l=i(t._source),u=Yi.current,s=u.useState((function(){return ca(o,t,n)})),c=s[1],f=s[0];s=Zi;var d=e.memoizedState,p=d.refs,m=p.getSnapshot,h=d.source;d=d.subscribe;var v=Xi;return e.memoizedState={refs:p,source:t,subscribe:r},u.useEffect((function(){p.getSnapshot=n,p.setSnapshot=c;var e=i(t._source);if(!lr(l,e)){e=n(t._source),lr(f,e)||(c(e),e=su(v),o.mutableReadLanes|=e&o.pendingLanes),e=o.mutableReadLanes,o.entangledLanes|=e;for(var r=o.entanglements,a=e;0<a;){var u=31-Wt(a),s=1<<u;r[u]|=e,a&=~s}}}),[n,t,r]),u.useEffect((function(){return r(t._source,(function(){var e=p.getSnapshot,n=p.setSnapshot;try{n(e(t._source));var r=su(v);o.mutableReadLanes|=r&o.pendingLanes}catch(e){n((function(){throw e}))}}))}),[t,r]),lr(m,n)&&lr(h,t)&&lr(d,r)||((e={pending:null,dispatch:null,lastRenderedReducer:la,lastRenderedState:f}).dispatch=c=Pa.bind(null,Xi,e),s.queue=e,s.baseQueue=null,f=ca(o,t,n),s.memoizedState=s.baseState=f),f}function da(e,t,n){return fa(aa(),e,t,n)}function pa(e){var t=ia();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:la,lastRenderedState:e}).dispatch=Pa.bind(null,Xi,e),[t.memoizedState,e]}function ma(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Xi.updateQueue)?(t={lastEffect:null},Xi.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function ha(e){return e={current:e},ia().memoizedState=e}function va(){return aa().memoizedState}function ga(e,t,n,r){var o=ia();Xi.flags|=e,o.memoizedState=ma(1|t,n,void 0,void 0===r?null:r)}function ba(e,t,n,r){var o=aa();r=void 0===r?null:r;var i=void 0;if(null!==Ji){var a=Ji.memoizedState;if(i=a.destroy,null!==r&&ra(r,a.deps))return void ma(t,n,i,r)}Xi.flags|=e,o.memoizedState=ma(1|t,n,i,r)}function ya(e,t){return ga(516,4,e,t)}function _a(e,t){return ba(516,4,e,t)}function wa(e,t){return ba(4,2,e,t)}function Ea(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Sa(e,t,n){return n=null!=n?n.concat([e]):null,ba(4,2,Ea.bind(null,t,e),n)}function Oa(){}function xa(e,t){var n=aa();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ra(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ka(e,t){var n=aa();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ra(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ca(e,t){var n=zo();Wo(98>n?98:n,(function(){e(!0)})),Wo(97<n?97:n,(function(){var n=Qi.transition;Qi.transition=1;try{e(!1),t()}finally{Qi.transition=n}}))}function Pa(e,t,n){var r=uu(),o=su(e),i={lane:o,action:n,eagerReducer:null,eagerState:null,next:null},a=t.pending;if(null===a?i.next=i:(i.next=a.next,a.next=i),t.pending=i,a=e.alternate,e===Xi||null!==a&&a===Xi)ta=ea=!0;else{if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var l=t.lastRenderedState,u=a(l,n);if(i.eagerReducer=a,i.eagerState=u,lr(u,l))return}catch(e){}cu(e,o,r)}}var Ia={readContext:oi,useCallback:na,useContext:na,useEffect:na,useImperativeHandle:na,useLayoutEffect:na,useMemo:na,useReducer:na,useRef:na,useState:na,useDebugValue:na,useDeferredValue:na,useTransition:na,useMutableSource:na,useOpaqueIdentifier:na,unstable_isNewReconciler:!1},Ra={readContext:oi,useCallback:function(e,t){return ia().memoizedState=[e,void 0===t?null:t],e},useContext:oi,useEffect:ya,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,ga(4,2,Ea.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ga(4,2,e,t)},useMemo:function(e,t){var n=ia();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ia();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Pa.bind(null,Xi,e),[r.memoizedState,e]},useRef:ha,useState:pa,useDebugValue:Oa,useDeferredValue:function(e){var t=pa(e),n=t[0],r=t[1];return ya((function(){var t=Qi.transition;Qi.transition=1;try{r(e)}finally{Qi.transition=t}}),[e]),n},useTransition:function(){var e=pa(!1),t=e[0];return ha(e=Ca.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=ia();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},fa(r,e,t,n)},useOpaqueIdentifier:function(){if(ji){var e=!1,t=function(e){return{$$typeof:A,toString:e,valueOf:e}}((function(){throw e||(e=!0,n("r:"+($r++).toString(36))),Error(a(355))})),n=pa(t)[1];return 0==(2&Xi.mode)&&(Xi.flags|=516,ma(5,(function(){n("r:"+($r++).toString(36))}),void 0,null)),t}return pa(t="r:"+($r++).toString(36)),t},unstable_isNewReconciler:!1},Da={readContext:oi,useCallback:xa,useContext:oi,useEffect:_a,useImperativeHandle:Sa,useLayoutEffect:wa,useMemo:ka,useReducer:ua,useRef:va,useState:function(){return ua(la)},useDebugValue:Oa,useDeferredValue:function(e){var t=ua(la),n=t[0],r=t[1];return _a((function(){var t=Qi.transition;Qi.transition=1;try{r(e)}finally{Qi.transition=t}}),[e]),n},useTransition:function(){var e=ua(la)[0];return[va().current,e]},useMutableSource:da,useOpaqueIdentifier:function(){return ua(la)[0]},unstable_isNewReconciler:!1},Na={readContext:oi,useCallback:xa,useContext:oi,useEffect:_a,useImperativeHandle:Sa,useLayoutEffect:wa,useMemo:ka,useReducer:sa,useRef:va,useState:function(){return sa(la)},useDebugValue:Oa,useDeferredValue:function(e){var t=sa(la),n=t[0],r=t[1];return _a((function(){var t=Qi.transition;Qi.transition=1;try{r(e)}finally{Qi.transition=t}}),[e]),n},useTransition:function(){var e=sa(la)[0];return[va().current,e]},useMutableSource:da,useOpaqueIdentifier:function(){return sa(la)[0]},unstable_isNewReconciler:!1},Ta=w.ReactCurrentOwner,La=!1;function Aa(e,t,n,r){t.child=null===e?xi(t,null,n,r):Oi(t,e.child,n,r)}function Ma(e,t,n,r,o){n=n.render;var i=t.ref;return ri(t,o),r=oa(e,t,n,r,i,o),null===e||La?(t.flags|=1,Aa(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~o,nl(e,t,o))}function Ba(e,t,n,r,o,i){if(null===e){var a=n.type;return"function"!=typeof a||Uu(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Hu(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Fa(e,t,a,r,o,i))}return a=e.child,0==(o&i)&&(o=a.memoizedProps,(n=null!==(n=n.compare)?n:sr)(o,r)&&e.ref===t.ref)?nl(e,t,i):(t.flags|=1,(e=zu(a,r)).ref=t.ref,e.return=t,t.child=e)}function Fa(e,t,n,r,o,i){if(null!==e&&sr(e.memoizedProps,r)&&e.ref===t.ref){if(La=!1,0==(i&o))return t.lanes=e.lanes,nl(e,t,i);0!=(16384&e.flags)&&(La=!0)}return Ua(e,t,n,r,i)}function ja(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0==(4&t.mode))t.memoizedState={baseLanes:0},bu(t,n);else{if(0==(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},bu(t,e),null;t.memoizedState={baseLanes:0},bu(t,null!==i?i.baseLanes:n)}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,bu(t,r);return Aa(e,t,o,n),t.child}function Va(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function Ua(e,t,n,r,o){var i=ho(n)?po:co.current;return i=mo(t,i),ri(t,o),n=oa(e,t,n,r,i,o),null===e||La?(t.flags|=1,Aa(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~o,nl(e,t,o))}function za(e,t,n,r,o){if(ho(n)){var i=!0;yo(t)}else i=!1;if(ri(t,o),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),gi(t,n,r),yi(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,l=t.memoizedProps;a.props=l;var u=a.context,s=n.contextType;"object"==typeof s&&null!==s?s=oi(s):s=mo(t,s=ho(n)?po:co.current);var c=n.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;f||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==r||u!==s)&&bi(t,a,r,s),ii=!1;var d=t.memoizedState;a.state=d,fi(t,r,a,o),u=t.memoizedState,l!==r||d!==u||fo.current||ii?("function"==typeof c&&(mi(t,n,c,r),u=t.memoizedState),(l=ii||vi(t,n,l,r,d,u,s))?(f||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4)):("function"==typeof a.componentDidMount&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=u),a.props=r,a.state=u,a.context=s,r=l):("function"==typeof a.componentDidMount&&(t.flags|=4),r=!1)}else{a=t.stateNode,li(e,t),l=t.memoizedProps,s=t.type===t.elementType?l:Qo(t.type,l),a.props=s,f=t.pendingProps,d=a.context,"object"==typeof(u=n.contextType)&&null!==u?u=oi(u):u=mo(t,u=ho(n)?po:co.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==f||d!==u)&&bi(t,a,r,u),ii=!1,d=t.memoizedState,a.state=d,fi(t,r,a,o);var m=t.memoizedState;l!==f||d!==m||fo.current||ii?("function"==typeof p&&(mi(t,n,p,r),m=t.memoizedState),(s=ii||vi(t,n,s,r,d,m,u))?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,m,u),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,m,u)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=m),a.props=r,a.state=m,a.context=u,r=s):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),r=!1)}return Ha(e,t,n,r,i,o)}function Ha(e,t,n,r,o,i){Va(e,t);var a=0!=(64&t.flags);if(!r&&!a)return o&&_o(t,n,!1),nl(e,t,i);r=t.stateNode,Ta.current=t;var l=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=Oi(t,e.child,null,i),t.child=Oi(t,null,l,i)):Aa(e,t,l,i),t.memoizedState=r.state,o&&_o(t,n,!0),t.child}function Wa(e){var t=e.stateNode;t.pendingContext?go(0,t.pendingContext,t.pendingContext!==t.context):t.context&&go(0,t.context,!1),Di(e,t.containerInfo)}var Ga,qa,$a,Ya={dehydrated:null,retryLane:0};function Qa(e,t,n){var r,o=t.pendingProps,i=Ai.current,a=!1;return(r=0!=(64&t.flags))||(r=(null===e||null!==e.memoizedState)&&0!=(2&i)),r?(a=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===o.fallback||!0===o.unstable_avoidThisFallback||(i|=1),uo(Ai,1&i),null===e?(void 0!==o.fallback&&zi(t),e=o.children,i=o.fallback,a?(e=Ka(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Ya,e):"number"==typeof o.unstable_expectedLoadTime?(e=Ka(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Ya,t.lanes=33554432,e):((n=Gu({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,a?(o=Ja(e,t,o.children,o.fallback,n),a=t.child,i=e.child.memoizedState,a.memoizedState=null===i?{baseLanes:n}:{baseLanes:i.baseLanes|n},a.childLanes=e.childLanes&~n,t.memoizedState=Ya,o):(n=Xa(e,t,o.children,n),t.memoizedState=null,n))}function Ka(e,t,n,r){var o=e.mode,i=e.child;return t={mode:"hidden",children:t},0==(2&o)&&null!==i?(i.childLanes=0,i.pendingProps=t):i=Gu(t,o,0,null),n=Wu(n,o,r,null),i.return=e,n.return=e,i.sibling=n,e.child=i,n}function Xa(e,t,n,r){var o=e.child;return e=o.sibling,n=zu(o,{mode:"visible",children:n}),0==(2&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function Ja(e,t,n,r,o){var i=t.mode,a=e.child;e=a.sibling;var l={mode:"hidden",children:n};return 0==(2&i)&&t.child!==a?((n=t.child).childLanes=0,n.pendingProps=l,null!==(a=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=a,a.nextEffect=null):t.firstEffect=t.lastEffect=null):n=zu(a,l),null!==e?r=zu(e,r):(r=Wu(r,i,o,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}function Za(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),ni(e.return,t)}function el(e,t,n,r,o,i){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o,lastEffect:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o,a.lastEffect=i)}function tl(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Aa(e,t,r.children,n),0!=(2&(r=Ai.current)))r=1&r|2,t.flags|=64;else{if(null!==e&&0!=(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Za(e,n);else if(19===e.tag)Za(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(uo(Ai,r),0==(2&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===Mi(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),el(t,!1,o,n,i,t.lastEffect);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===Mi(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}el(t,!0,n,null,i,t.lastEffect);break;case"together":el(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function nl(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Bl|=t.lanes,0!=(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=zu(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=zu(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function rl(e,t){if(!ji)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ol(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return ho(t.type)&&vo(),null;case 3:return Ni(),lo(fo),lo(co),$i(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Wi(t)?t.flags|=4:r.hydrate||(t.flags|=256)),null;case 5:Li(t);var i=Ri(Ii.current);if(n=t.type,null!==e&&null!=t.stateNode)qa(e,t,n,r),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(a(166));return null}if(e=Ri(Ci.current),Wi(t)){r=t.stateNode,n=t.type;var l=t.memoizedProps;switch(r[Qr]=t,r[Kr]=l,n){case"dialog":Cr("cancel",r),Cr("close",r);break;case"iframe":case"object":case"embed":Cr("load",r);break;case"video":case"audio":for(e=0;e<Sr.length;e++)Cr(Sr[e],r);break;case"source":Cr("error",r);break;case"img":case"image":case"link":Cr("error",r),Cr("load",r);break;case"details":Cr("toggle",r);break;case"input":ee(r,l),Cr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!l.multiple},Cr("invalid",r);break;case"textarea":ue(r,l),Cr("invalid",r)}for(var s in Oe(n,l),e=null,l)l.hasOwnProperty(s)&&(i=l[s],"children"===s?"string"==typeof i?r.textContent!==i&&(e=["children",i]):"number"==typeof i&&r.textContent!==""+i&&(e=["children",""+i]):u.hasOwnProperty(s)&&null!=i&&"onScroll"===s&&Cr("scroll",r));switch(n){case"input":K(r),re(r,l,!0);break;case"textarea":K(r),ce(r);break;case"select":case"option":break;default:"function"==typeof l.onClick&&(r.onclick=Br)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(s=9===i.nodeType?i:i.ownerDocument,e===fe&&(e=pe(n)),e===fe?"script"===n?((e=s.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),"select"===n&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Qr]=t,e[Kr]=r,Ga(e,t),t.stateNode=e,s=xe(n,r),n){case"dialog":Cr("cancel",e),Cr("close",e),i=r;break;case"iframe":case"object":case"embed":Cr("load",e),i=r;break;case"video":case"audio":for(i=0;i<Sr.length;i++)Cr(Sr[i],e);i=r;break;case"source":Cr("error",e),i=r;break;case"img":case"image":case"link":Cr("error",e),Cr("load",e),i=r;break;case"details":Cr("toggle",e),i=r;break;case"input":ee(e,r),i=Z(e,r),Cr("invalid",e);break;case"option":i=ie(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=o({},r,{value:void 0}),Cr("invalid",e);break;case"textarea":ue(e,r),i=le(e,r),Cr("invalid",e);break;default:i=r}Oe(n,i);var c=i;for(l in c)if(c.hasOwnProperty(l)){var f=c[l];"style"===l?Ee(e,f):"dangerouslySetInnerHTML"===l?null!=(f=f?f.__html:void 0)&&ge(e,f):"children"===l?"string"==typeof f?("textarea"!==n||""!==f)&&be(e,f):"number"==typeof f&&be(e,""+f):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(u.hasOwnProperty(l)?null!=f&&"onScroll"===l&&Cr("scroll",e):null!=f&&_(e,l,f,s))}switch(n){case"input":K(e),re(e,r,!1);break;case"textarea":K(e),ce(e);break;case"option":null!=r.value&&e.setAttribute("value",""+Y(r.value));break;case"select":e.multiple=!!r.multiple,null!=(l=r.value)?ae(e,!!r.multiple,l,!1):null!=r.defaultValue&&ae(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=Br)}Vr(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)$a(0,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(a(166));n=Ri(Ii.current),Ri(Ci.current),Wi(t)?(r=t.stateNode,n=t.memoizedProps,r[Qr]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Qr]=t,t.stateNode=r)}return null;case 13:return lo(Ai),r=t.memoizedState,0!=(64&t.flags)?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&Wi(t):n=null!==e.memoizedState,r&&!n&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&Ai.current)?0===Ll&&(Ll=3):(0!==Ll&&3!==Ll||(Ll=4),null===Il||0==(134217727&Bl)&&0==(134217727&Fl)||mu(Il,Dl))),(r||n)&&(t.flags|=4),null);case 4:return Ni(),null===e&&Ir(t.stateNode.containerInfo),null;case 10:return ti(t),null;case 17:return ho(t.type)&&vo(),null;case 19:if(lo(Ai),null===(r=t.memoizedState))return null;if(l=0!=(64&t.flags),null===(s=r.rendering))if(l)rl(r,!1);else{if(0!==Ll||null!==e&&0!=(64&e.flags))for(e=t.child;null!==e;){if(null!==(s=Mi(e))){for(t.flags|=64,rl(r,!1),null!==(l=s.updateQueue)&&(t.updateQueue=l,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;null!==n;)e=r,(l=n).flags&=2,l.nextEffect=null,l.firstEffect=null,l.lastEffect=null,null===(s=l.alternate)?(l.childLanes=0,l.lanes=e,l.child=null,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=s.childLanes,l.lanes=s.lanes,l.child=s.child,l.memoizedProps=s.memoizedProps,l.memoizedState=s.memoizedState,l.updateQueue=s.updateQueue,l.type=s.type,e=s.dependencies,l.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return uo(Ai,1&Ai.current|2),t.child}e=e.sibling}null!==r.tail&&Uo()>zl&&(t.flags|=64,l=!0,rl(r,!1),t.lanes=33554432)}else{if(!l)if(null!==(e=Mi(s))){if(t.flags|=64,l=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),rl(r,!0),null===r.tail&&"hidden"===r.tailMode&&!s.alternate&&!ji)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Uo()-r.renderingStartTime>zl&&1073741824!==n&&(t.flags|=64,l=!0,rl(r,!1),t.lanes=33554432);r.isBackwards?(s.sibling=t.child,t.child=s):(null!==(n=r.last)?n.sibling=s:t.child=s,r.last=s)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Uo(),n.sibling=null,t=Ai.current,uo(Ai,l?1&t|2:1&t),n):null;case 23:case 24:return yu(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(a(156,t.tag))}function il(e){switch(e.tag){case 1:ho(e.type)&&vo();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Ni(),lo(fo),lo(co),$i(),0!=(64&(t=e.flags)))throw Error(a(285));return e.flags=-4097&t|64,e;case 5:return Li(e),null;case 13:return lo(Ai),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return lo(Ai),null;case 4:return Ni(),null;case 10:return ti(e),null;case 23:case 24:return yu(),null;default:return null}}function al(e,t){try{var n="",r=t;do{n+=q(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o}}Ga=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},qa=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Ri(Ci.current);var a,l=null;switch(n){case"input":i=Z(e,i),r=Z(e,r),l=[];break;case"option":i=ie(e,i),r=ie(e,r),l=[];break;case"select":i=o({},i,{value:void 0}),r=o({},r,{value:void 0}),l=[];break;case"textarea":i=le(e,i),r=le(e,r),l=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=Br)}for(f in Oe(n,r),n=null,i)if(!r.hasOwnProperty(f)&&i.hasOwnProperty(f)&&null!=i[f])if("style"===f){var s=i[f];for(a in s)s.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==f&&"children"!==f&&"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&"autoFocus"!==f&&(u.hasOwnProperty(f)?l||(l=[]):(l=l||[]).push(f,null));for(f in r){var c=r[f];if(s=null!=i?i[f]:void 0,r.hasOwnProperty(f)&&c!==s&&(null!=c||null!=s))if("style"===f)if(s){for(a in s)!s.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in c)c.hasOwnProperty(a)&&s[a]!==c[a]&&(n||(n={}),n[a]=c[a])}else n||(l||(l=[]),l.push(f,n)),n=c;else"dangerouslySetInnerHTML"===f?(c=c?c.__html:void 0,s=s?s.__html:void 0,null!=c&&s!==c&&(l=l||[]).push(f,c)):"children"===f?"string"!=typeof c&&"number"!=typeof c||(l=l||[]).push(f,""+c):"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&(u.hasOwnProperty(f)?(null!=c&&"onScroll"===f&&Cr("scroll",e),l||s===c||(l=[])):"object"==typeof c&&null!==c&&c.$$typeof===A?c.toString():(l=l||[]).push(f,c))}n&&(l=l||[]).push("style",n);var f=l;(t.updateQueue=f)&&(t.flags|=4)}},$a=function(e,t,n,r){n!==r&&(t.flags|=4)};var ll="function"==typeof WeakMap?WeakMap:Map;function ul(e,t,n){(n=ui(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ql||(ql=!0,$l=r)},n}function sl(e,t,n){(n=ui(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Yl?Yl=new Set([this]):Yl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var cl="function"==typeof WeakSet?WeakSet:Set;function fl(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Mu(e,t)}else t.current=null}function dl(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Qo(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&Wr(t.stateNode.containerInfo));case 5:case 6:case 4:case 17:return}throw Error(a(163))}function pl(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3==(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var o=e;r=o.next,0!=(4&(o=o.tag))&&0!=(1&o)&&(Tu(n,e),Nu(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:Qo(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&di(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}di(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&Vr(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Et(n)))));case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(a(163))}function ml(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)"function"==typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var o=n.memoizedProps.style;o=null!=o&&o.hasOwnProperty("display")?o.display:null,r.style.display=we("display",o)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function hl(e,t){if(Eo&&"function"==typeof Eo.onCommitFiberUnmount)try{Eo.onCommitFiberUnmount(wo,t)}catch(e){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,o=r.destroy;if(r=r.tag,void 0!==o)if(0!=(4&r))Tu(t,n);else{r=t;try{o()}catch(e){Mu(r,e)}}n=n.next}while(n!==e)}break;case 1:if(fl(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){Mu(t,e)}break;case 5:fl(t);break;case 4:wl(e,t)}}function vl(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function gl(e){return 5===e.tag||3===e.tag||4===e.tag}function bl(e){e:{for(var t=e.return;null!==t;){if(gl(t))break e;t=t.return}throw Error(a(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(a(161))}16&n.flags&&(be(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||gl(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?yl(e,n,t):_l(e,n,t)}function yl(e,t,n){var r=e.tag,o=5===r||6===r;if(o)e=o?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Br));else if(4!==r&&null!==(e=e.child))for(yl(e,t,n),e=e.sibling;null!==e;)yl(e,t,n),e=e.sibling}function _l(e,t,n){var r=e.tag,o=5===r||6===r;if(o)e=o?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(_l(e,t,n),e=e.sibling;null!==e;)_l(e,t,n),e=e.sibling}function wl(e,t){for(var n,r,o=t,i=!1;;){if(!i){i=o.return;e:for(;;){if(null===i)throw Error(a(160));switch(n=i.stateNode,i.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}i=i.return}i=!0}if(5===o.tag||6===o.tag){e:for(var l=e,u=o,s=u;;)if(hl(l,s),null!==s.child&&4!==s.tag)s.child.return=s,s=s.child;else{if(s===u)break e;for(;null===s.sibling;){if(null===s.return||s.return===u)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}r?(l=n,u=o.stateNode,8===l.nodeType?l.parentNode.removeChild(u):l.removeChild(u)):n.removeChild(o.stateNode)}else if(4===o.tag){if(null!==o.child){n=o.stateNode.containerInfo,r=!0,o.child.return=o,o=o.child;continue}}else if(hl(e,o),null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break;for(;null===o.sibling;){if(null===o.return||o.return===t)return;4===(o=o.return).tag&&(i=!1)}o.sibling.return=o.return,o=o.sibling}}function El(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{3==(3&r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==n)}return;case 1:return;case 5:if(null!=(n=t.stateNode)){r=t.memoizedProps;var o=null!==e?e.memoizedProps:r;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,null!==i){for(n[Kr]=r,"input"===e&&"radio"===r.type&&null!=r.name&&te(n,r),xe(e,o),t=xe(e,r),o=0;o<i.length;o+=2){var l=i[o],u=i[o+1];"style"===l?Ee(n,u):"dangerouslySetInnerHTML"===l?ge(n,u):"children"===l?be(n,u):_(n,l,u,t)}switch(e){case"input":ne(n,r);break;case"textarea":se(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(i=r.value)?ae(n,!!r.multiple,i,!1):e!==!!r.multiple&&(null!=r.defaultValue?ae(n,!!r.multiple,r.defaultValue,!0):ae(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(a(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((n=t.stateNode).hydrate&&(n.hydrate=!1,Et(n.containerInfo)));case 12:return;case 13:return null!==t.memoizedState&&(Ul=Uo(),ml(t.child,!0)),void Sl(t);case 19:return void Sl(t);case 17:return;case 23:case 24:return void ml(t,null!==t.memoizedState)}throw Error(a(163))}function Sl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new cl),t.forEach((function(t){var r=Fu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function Ol(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&(null!==(t=t.memoizedState)&&null===t.dehydrated)}var xl=Math.ceil,kl=w.ReactCurrentDispatcher,Cl=w.ReactCurrentOwner,Pl=0,Il=null,Rl=null,Dl=0,Nl=0,Tl=ao(0),Ll=0,Al=null,Ml=0,Bl=0,Fl=0,jl=0,Vl=null,Ul=0,zl=1/0;function Hl(){zl=Uo()+500}var Wl,Gl=null,ql=!1,$l=null,Yl=null,Ql=!1,Kl=null,Xl=90,Jl=[],Zl=[],eu=null,tu=0,nu=null,ru=-1,ou=0,iu=0,au=null,lu=!1;function uu(){return 0!=(48&Pl)?Uo():-1!==ru?ru:ru=Uo()}function su(e){if(0==(2&(e=e.mode)))return 1;if(0==(4&e))return 99===zo()?1:2;if(0===ou&&(ou=Ml),0!==Yo.transition){0!==iu&&(iu=null!==Vl?Vl.pendingLanes:0),e=ou;var t=4186112&~iu;return 0===(t&=-t)&&(0===(t=(e=4186112&~e)&-e)&&(t=8192)),t}return e=zo(),0!=(4&Pl)&&98===e?e=Vt(12,ou):e=Vt(e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),ou),e}function cu(e,t,n){if(50<tu)throw tu=0,nu=null,Error(a(185));if(null===(e=fu(e,t)))return null;Ht(e,t,n),e===Il&&(Fl|=t,4===Ll&&mu(e,Dl));var r=zo();1===t?0!=(8&Pl)&&0==(48&Pl)?hu(e):(du(e,n),0===Pl&&(Hl(),qo())):(0==(4&Pl)||98!==r&&99!==r||(null===eu?eu=new Set([e]):eu.add(e)),du(e,n)),Vl=e}function fu(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function du(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,o=e.pingedLanes,i=e.expirationTimes,l=e.pendingLanes;0<l;){var u=31-Wt(l),s=1<<u,c=i[u];if(-1===c){if(0==(s&r)||0!=(s&o)){c=t,Bt(s);var f=Mt;i[u]=10<=f?c+250:6<=f?c+5e3:-1}}else c<=t&&(e.expiredLanes|=s);l&=~s}if(r=Ft(e,e===Il?Dl:0),t=Mt,0===r)null!==n&&(n!==Ao&&xo(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==Ao&&xo(n)}15===t?(n=hu.bind(null,e),null===Bo?(Bo=[n],Fo=Oo(Ro,$o)):Bo.push(n),n=Ao):14===t?n=Go(99,hu.bind(null,e)):n=Go(n=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(a(358,e))}}(t),pu.bind(null,e)),e.callbackPriority=t,e.callbackNode=n}}function pu(e){if(ru=-1,iu=ou=0,0!=(48&Pl))throw Error(a(327));var t=e.callbackNode;if(Du()&&e.callbackNode!==t)return null;var n=Ft(e,e===Il?Dl:0);if(0===n)return null;var r=n,o=Pl;Pl|=16;var i=Eu();for(Il===e&&Dl===r||(Hl(),_u(e,r));;)try{xu();break}catch(t){wu(e,t)}if(ei(),kl.current=i,Pl=o,null!==Rl?r=0:(Il=null,Dl=0,r=Ll),0!=(Ml&Fl))_u(e,0);else if(0!==r){if(2===r&&(Pl|=64,e.hydrate&&(e.hydrate=!1,Wr(e.containerInfo)),0!==(n=jt(e))&&(r=Su(e,n))),1===r)throw t=Al,_u(e,0),mu(e,n),du(e,Uo()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(a(345));case 2:Pu(e);break;case 3:if(mu(e,n),(62914560&n)===n&&10<(r=Ul+500-Uo())){if(0!==Ft(e,0))break;if(((o=e.suspendedLanes)&n)!==n){uu(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=zr(Pu.bind(null,e),r);break}Pu(e);break;case 4:if(mu(e,n),(4186112&n)===n)break;for(r=e.eventTimes,o=-1;0<n;){var l=31-Wt(n);i=1<<l,(l=r[l])>o&&(o=l),n&=~i}if(n=o,10<(n=(120>(n=Uo()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*xl(n/1960))-n)){e.timeoutHandle=zr(Pu.bind(null,e),n);break}Pu(e);break;case 5:Pu(e);break;default:throw Error(a(329))}}return du(e,Uo()),e.callbackNode===t?pu.bind(null,e):null}function mu(e,t){for(t&=~jl,t&=~Fl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Wt(t),r=1<<n;e[n]=-1,t&=~r}}function hu(e){if(0!=(48&Pl))throw Error(a(327));if(Du(),e===Il&&0!=(e.expiredLanes&Dl)){var t=Dl,n=Su(e,t);0!=(Ml&Fl)&&(n=Su(e,t=Ft(e,t)))}else n=Su(e,t=Ft(e,0));if(0!==e.tag&&2===n&&(Pl|=64,e.hydrate&&(e.hydrate=!1,Wr(e.containerInfo)),0!==(t=jt(e))&&(n=Su(e,t))),1===n)throw n=Al,_u(e,0),mu(e,t),du(e,Uo()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Pu(e),du(e,Uo()),null}function vu(e,t){var n=Pl;Pl|=1;try{return e(t)}finally{0===(Pl=n)&&(Hl(),qo())}}function gu(e,t){var n=Pl;Pl&=-2,Pl|=8;try{return e(t)}finally{0===(Pl=n)&&(Hl(),qo())}}function bu(e,t){uo(Tl,Nl),Nl|=t,Ml|=t}function yu(){Nl=Tl.current,lo(Tl)}function _u(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Hr(n)),null!==Rl)for(n=Rl.return;null!==n;){var r=n;switch(r.tag){case 1:null!=(r=r.type.childContextTypes)&&vo();break;case 3:Ni(),lo(fo),lo(co),$i();break;case 5:Li(r);break;case 4:Ni();break;case 13:case 19:lo(Ai);break;case 10:ti(r);break;case 23:case 24:yu()}n=n.return}Il=e,Rl=zu(e.current,null),Dl=Nl=Ml=t,Ll=0,Al=null,jl=Fl=Bl=0}function wu(e,t){for(;;){var n=Rl;try{if(ei(),Yi.current=Ia,ea){for(var r=Xi.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}ea=!1}if(Ki=0,Zi=Ji=Xi=null,ta=!1,Cl.current=null,null===n||null===n.return){Ll=1,Al=t,Rl=null;break}e:{var i=e,a=n.return,l=n,u=t;if(t=Dl,l.flags|=2048,l.firstEffect=l.lastEffect=null,null!==u&&"object"==typeof u&&"function"==typeof u.then){var s=u;if(0==(2&l.mode)){var c=l.alternate;c?(l.updateQueue=c.updateQueue,l.memoizedState=c.memoizedState,l.lanes=c.lanes):(l.updateQueue=null,l.memoizedState=null)}var f=0!=(1&Ai.current),d=a;do{var p;if(p=13===d.tag){var m=d.memoizedState;if(null!==m)p=null!==m.dehydrated;else{var h=d.memoizedProps;p=void 0!==h.fallback&&(!0!==h.unstable_avoidThisFallback||!f)}}if(p){var v=d.updateQueue;if(null===v){var g=new Set;g.add(s),d.updateQueue=g}else v.add(s);if(0==(2&d.mode)){if(d.flags|=64,l.flags|=16384,l.flags&=-2981,1===l.tag)if(null===l.alternate)l.tag=17;else{var b=ui(-1,1);b.tag=2,si(l,b)}l.lanes|=1;break e}u=void 0,l=t;var y=i.pingCache;if(null===y?(y=i.pingCache=new ll,u=new Set,y.set(s,u)):void 0===(u=y.get(s))&&(u=new Set,y.set(s,u)),!u.has(l)){u.add(l);var _=Bu.bind(null,i,s,l);s.then(_,_)}d.flags|=4096,d.lanes=t;break e}d=d.return}while(null!==d);u=Error(($(l.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==Ll&&(Ll=2),u=al(u,l),d=a;do{switch(d.tag){case 3:i=u,d.flags|=4096,t&=-t,d.lanes|=t,ci(d,ul(0,i,t));break e;case 1:i=u;var w=d.type,E=d.stateNode;if(0==(64&d.flags)&&("function"==typeof w.getDerivedStateFromError||null!==E&&"function"==typeof E.componentDidCatch&&(null===Yl||!Yl.has(E)))){d.flags|=4096,t&=-t,d.lanes|=t,ci(d,sl(d,i,t));break e}}d=d.return}while(null!==d)}Cu(n)}catch(e){t=e,Rl===n&&null!==n&&(Rl=n=n.return);continue}break}}function Eu(){var e=kl.current;return kl.current=Ia,null===e?Ia:e}function Su(e,t){var n=Pl;Pl|=16;var r=Eu();for(Il===e&&Dl===t||_u(e,t);;)try{Ou();break}catch(t){wu(e,t)}if(ei(),Pl=n,kl.current=r,null!==Rl)throw Error(a(261));return Il=null,Dl=0,Ll}function Ou(){for(;null!==Rl;)ku(Rl)}function xu(){for(;null!==Rl&&!ko();)ku(Rl)}function ku(e){var t=Wl(e.alternate,e,Nl);e.memoizedProps=e.pendingProps,null===t?Cu(e):Rl=t,Cl.current=null}function Cu(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(2048&t.flags)){if(null!==(n=ol(n,t,Nl)))return void(Rl=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!=(1073741824&Nl)||0==(4&n.mode)){for(var r=0,o=n.child;null!==o;)r|=o.lanes|o.childLanes,o=o.sibling;n.childLanes=r}null!==e&&0==(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(n=il(t)))return n.flags&=2047,void(Rl=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(Rl=t);Rl=t=e}while(null!==t);0===Ll&&(Ll=5)}function Pu(e){var t=zo();return Wo(99,Iu.bind(null,e,t)),null}function Iu(e,t){do{Du()}while(null!==Kl);if(0!=(48&Pl))throw Error(a(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null;var r=n.lanes|n.childLanes,o=r,i=e.pendingLanes&~o;e.pendingLanes=o,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=o,e.mutableReadLanes&=o,e.entangledLanes&=o,o=e.entanglements;for(var l=e.eventTimes,u=e.expirationTimes;0<i;){var s=31-Wt(i),c=1<<s;o[s]=0,l[s]=-1,u[s]=-1,i&=~c}if(null!==eu&&0==(24&r)&&eu.has(e)&&eu.delete(e),e===Il&&(Rl=Il=null,Dl=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(o=Pl,Pl|=32,Cl.current=null,Fr=Qt,mr(l=pr())){if("selectionStart"in l)u={start:l.selectionStart,end:l.selectionEnd};else e:if(u=(u=l.ownerDocument)&&u.defaultView||window,(c=u.getSelection&&u.getSelection())&&0!==c.rangeCount){u=c.anchorNode,i=c.anchorOffset,s=c.focusNode,c=c.focusOffset;try{u.nodeType,s.nodeType}catch(e){u=null;break e}var f=0,d=-1,p=-1,m=0,h=0,v=l,g=null;t:for(;;){for(var b;v!==u||0!==i&&3!==v.nodeType||(d=f+i),v!==s||0!==c&&3!==v.nodeType||(p=f+c),3===v.nodeType&&(f+=v.nodeValue.length),null!==(b=v.firstChild);)g=v,v=b;for(;;){if(v===l)break t;if(g===u&&++m===i&&(d=f),g===s&&++h===c&&(p=f),null!==(b=v.nextSibling))break;g=(v=g).parentNode}v=b}u=-1===d||-1===p?null:{start:d,end:p}}else u=null;u=u||{start:0,end:0}}else u=null;jr={focusedElem:l,selectionRange:u},Qt=!1,au=null,lu=!1,Gl=r;do{try{Ru()}catch(e){if(null===Gl)throw Error(a(330));Mu(Gl,e),Gl=Gl.nextEffect}}while(null!==Gl);au=null,Gl=r;do{try{for(l=e;null!==Gl;){var y=Gl.flags;if(16&y&&be(Gl.stateNode,""),128&y){var _=Gl.alternate;if(null!==_){var w=_.ref;null!==w&&("function"==typeof w?w(null):w.current=null)}}switch(1038&y){case 2:bl(Gl),Gl.flags&=-3;break;case 6:bl(Gl),Gl.flags&=-3,El(Gl.alternate,Gl);break;case 1024:Gl.flags&=-1025;break;case 1028:Gl.flags&=-1025,El(Gl.alternate,Gl);break;case 4:El(Gl.alternate,Gl);break;case 8:wl(l,u=Gl);var E=u.alternate;vl(u),null!==E&&vl(E)}Gl=Gl.nextEffect}}catch(e){if(null===Gl)throw Error(a(330));Mu(Gl,e),Gl=Gl.nextEffect}}while(null!==Gl);if(w=jr,_=pr(),y=w.focusedElem,l=w.selectionRange,_!==y&&y&&y.ownerDocument&&dr(y.ownerDocument.documentElement,y)){null!==l&&mr(y)&&(_=l.start,void 0===(w=l.end)&&(w=_),"selectionStart"in y?(y.selectionStart=_,y.selectionEnd=Math.min(w,y.value.length)):(w=(_=y.ownerDocument||document)&&_.defaultView||window).getSelection&&(w=w.getSelection(),u=y.textContent.length,E=Math.min(l.start,u),l=void 0===l.end?E:Math.min(l.end,u),!w.extend&&E>l&&(u=l,l=E,E=u),u=fr(y,E),i=fr(y,l),u&&i&&(1!==w.rangeCount||w.anchorNode!==u.node||w.anchorOffset!==u.offset||w.focusNode!==i.node||w.focusOffset!==i.offset)&&((_=_.createRange()).setStart(u.node,u.offset),w.removeAllRanges(),E>l?(w.addRange(_),w.extend(i.node,i.offset)):(_.setEnd(i.node,i.offset),w.addRange(_))))),_=[];for(w=y;w=w.parentNode;)1===w.nodeType&&_.push({element:w,left:w.scrollLeft,top:w.scrollTop});for("function"==typeof y.focus&&y.focus(),y=0;y<_.length;y++)(w=_[y]).element.scrollLeft=w.left,w.element.scrollTop=w.top}Qt=!!Fr,jr=Fr=null,e.current=n,Gl=r;do{try{for(y=e;null!==Gl;){var S=Gl.flags;if(36&S&&pl(y,Gl.alternate,Gl),128&S){_=void 0;var O=Gl.ref;if(null!==O){var x=Gl.stateNode;switch(Gl.tag){case 5:_=x;break;default:_=x}"function"==typeof O?O(_):O.current=_}}Gl=Gl.nextEffect}}catch(e){if(null===Gl)throw Error(a(330));Mu(Gl,e),Gl=Gl.nextEffect}}while(null!==Gl);Gl=null,Mo(),Pl=o}else e.current=n;if(Ql)Ql=!1,Kl=e,Xl=t;else for(Gl=r;null!==Gl;)t=Gl.nextEffect,Gl.nextEffect=null,8&Gl.flags&&((S=Gl).sibling=null,S.stateNode=null),Gl=t;if(0===(r=e.pendingLanes)&&(Yl=null),1===r?e===nu?tu++:(tu=0,nu=e):tu=0,n=n.stateNode,Eo&&"function"==typeof Eo.onCommitFiberRoot)try{Eo.onCommitFiberRoot(wo,n,void 0,64==(64&n.current.flags))}catch(e){}if(du(e,Uo()),ql)throw ql=!1,e=$l,$l=null,e;return 0!=(8&Pl)||qo(),null}function Ru(){for(;null!==Gl;){var e=Gl.alternate;lu||null===au||(0!=(8&Gl.flags)?et(Gl,au)&&(lu=!0):13===Gl.tag&&Ol(e,Gl)&&et(Gl,au)&&(lu=!0));var t=Gl.flags;0!=(256&t)&&dl(e,Gl),0==(512&t)||Ql||(Ql=!0,Go(97,(function(){return Du(),null}))),Gl=Gl.nextEffect}}function Du(){if(90!==Xl){var e=97<Xl?97:Xl;return Xl=90,Wo(e,Lu)}return!1}function Nu(e,t){Jl.push(t,e),Ql||(Ql=!0,Go(97,(function(){return Du(),null})))}function Tu(e,t){Zl.push(t,e),Ql||(Ql=!0,Go(97,(function(){return Du(),null})))}function Lu(){if(null===Kl)return!1;var e=Kl;if(Kl=null,0!=(48&Pl))throw Error(a(331));var t=Pl;Pl|=32;var n=Zl;Zl=[];for(var r=0;r<n.length;r+=2){var o=n[r],i=n[r+1],l=o.destroy;if(o.destroy=void 0,"function"==typeof l)try{l()}catch(e){if(null===i)throw Error(a(330));Mu(i,e)}}for(n=Jl,Jl=[],r=0;r<n.length;r+=2){o=n[r],i=n[r+1];try{var u=o.create;o.destroy=u()}catch(e){if(null===i)throw Error(a(330));Mu(i,e)}}for(u=e.current.firstEffect;null!==u;)e=u.nextEffect,u.nextEffect=null,8&u.flags&&(u.sibling=null,u.stateNode=null),u=e;return Pl=t,qo(),!0}function Au(e,t,n){si(e,t=ul(0,t=al(n,t),1)),t=uu(),null!==(e=fu(e,1))&&(Ht(e,1,t),du(e,t))}function Mu(e,t){if(3===e.tag)Au(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Au(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Yl||!Yl.has(r))){var o=sl(n,e=al(t,e),1);if(si(n,o),o=uu(),null!==(n=fu(n,1)))Ht(n,1,o),du(n,o);else if("function"==typeof r.componentDidCatch&&(null===Yl||!Yl.has(r)))try{r.componentDidCatch(t,e)}catch(e){}break}}n=n.return}}function Bu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=uu(),e.pingedLanes|=e.suspendedLanes&n,Il===e&&(Dl&n)===n&&(4===Ll||3===Ll&&(62914560&Dl)===Dl&&500>Uo()-Ul?_u(e,0):jl|=n),du(e,t)}function Fu(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(0==(2&(t=e.mode))?t=1:0==(4&t)?t=99===zo()?1:2:(0===ou&&(ou=Ml),0===(t=Ut(62914560&~ou))&&(t=4194304))),n=uu(),null!==(e=fu(e,t))&&(Ht(e,t,n),du(e,n))}function ju(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Vu(e,t,n,r){return new ju(e,t,n,r)}function Uu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function zu(e,t){var n=e.alternate;return null===n?((n=Vu(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Hu(e,t,n,r,o,i){var l=2;if(r=e,"function"==typeof e)Uu(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case O:return Wu(n.children,o,i,t);case M:l=8,o|=16;break;case x:l=8,o|=1;break;case k:return(e=Vu(12,n,t,8|o)).elementType=k,e.type=k,e.lanes=i,e;case R:return(e=Vu(13,n,t,o)).type=R,e.elementType=R,e.lanes=i,e;case D:return(e=Vu(19,n,t,o)).elementType=D,e.lanes=i,e;case B:return Gu(n,o,i,t);case F:return(e=Vu(24,n,t,o)).elementType=F,e.lanes=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case C:l=10;break e;case P:l=9;break e;case I:l=11;break e;case N:l=14;break e;case T:l=16,r=null;break e;case L:l=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Vu(l,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function Wu(e,t,n,r){return(e=Vu(7,e,r,t)).lanes=n,e}function Gu(e,t,n,r){return(e=Vu(23,e,r,t)).elementType=B,e.lanes=n,e}function qu(e,t,n){return(e=Vu(6,e,null,t)).lanes=n,e}function $u(e,t,n){return(t=Vu(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Yu(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=zt(0),this.expirationTimes=zt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zt(0),this.mutableSourceEagerHydrationData=null}function Qu(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:S,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function Ku(e,t,n,r){var o=t.current,i=uu(),l=su(o);e:if(n){t:{if(Ke(n=n._reactInternals)!==n||1!==n.tag)throw Error(a(170));var u=n;do{switch(u.tag){case 3:u=u.stateNode.context;break t;case 1:if(ho(u.type)){u=u.stateNode.__reactInternalMemoizedMergedChildContext;break t}}u=u.return}while(null!==u);throw Error(a(171))}if(1===n.tag){var s=n.type;if(ho(s)){n=bo(n,s,u);break e}}n=u}else n=so;return null===t.context?t.context=n:t.pendingContext=n,(t=ui(i,l)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),si(o,t),cu(o,l,i),l}function Xu(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Ju(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Zu(e,t){Ju(e,t),(e=e.alternate)&&Ju(e,t)}function es(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new Yu(e,t,null!=n&&!0===n.hydrate),t=Vu(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,ai(t),e[Xr]=n.current,Ir(8===e.nodeType?e.parentNode:e),r)for(e=0;e<r.length;e++){var o=(t=r[e])._getVersion;o=o(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,o]:n.mutableSourceEagerHydrationData.push(t,o)}this._internalRoot=n}function ts(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function ns(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i._internalRoot;if("function"==typeof o){var l=o;o=function(){var e=Xu(a);l.call(e)}}Ku(t,a,e,o)}else{if(i=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new es(e,0,t?{hydrate:!0}:void 0)}(n,r),a=i._internalRoot,"function"==typeof o){var u=o;o=function(){var e=Xu(a);u.call(e)}}gu((function(){Ku(t,a,e,o)}))}return Xu(a)}function rs(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!ts(t))throw Error(a(200));return Qu(e,t,null,n)}Wl=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||fo.current)La=!0;else{if(0==(n&r)){switch(La=!1,t.tag){case 3:Wa(t),Gi();break;case 5:Ti(t);break;case 1:ho(t.type)&&yo(t);break;case 4:Di(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var o=t.type._context;uo(Ko,o._currentValue),o._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!=(n&t.child.childLanes)?Qa(e,t,n):(uo(Ai,1&Ai.current),null!==(t=nl(e,t,n))?t.sibling:null);uo(Ai,1&Ai.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(64&e.flags)){if(r)return tl(e,t,n);t.flags|=64}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),uo(Ai,Ai.current),r)break;return null;case 23:case 24:return t.lanes=0,ja(e,t,n)}return nl(e,t,n)}La=0!=(16384&e.flags)}else La=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=mo(t,co.current),ri(t,n),o=oa(null,t,r,e,o,n),t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,ho(r)){var i=!0;yo(t)}else i=!1;t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,ai(t);var l=r.getDerivedStateFromProps;"function"==typeof l&&mi(t,r,l,e),o.updater=hi,t.stateNode=o,o._reactInternals=t,yi(t,r,e,n),t=Ha(null,t,r,!0,i,n)}else t.tag=0,Aa(null,t,o,n),t=t.child;return t;case 16:o=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=(i=o._init)(o._payload),t.type=o,i=t.tag=function(e){if("function"==typeof e)return Uu(e)?1:0;if(null!=e){if((e=e.$$typeof)===I)return 11;if(e===N)return 14}return 2}(o),e=Qo(o,e),i){case 0:t=Ua(null,t,o,e,n);break e;case 1:t=za(null,t,o,e,n);break e;case 11:t=Ma(null,t,o,e,n);break e;case 14:t=Ba(null,t,o,Qo(o.type,e),r,n);break e}throw Error(a(306,o,""))}return t;case 0:return r=t.type,o=t.pendingProps,Ua(e,t,r,o=t.elementType===r?o:Qo(r,o),n);case 1:return r=t.type,o=t.pendingProps,za(e,t,r,o=t.elementType===r?o:Qo(r,o),n);case 3:if(Wa(t),r=t.updateQueue,null===e||null===r)throw Error(a(282));if(r=t.pendingProps,o=null!==(o=t.memoizedState)?o.element:null,li(e,t),fi(t,r,null,n),(r=t.memoizedState.element)===o)Gi(),t=nl(e,t,n);else{if((i=(o=t.stateNode).hydrate)&&(Fi=Gr(t.stateNode.containerInfo.firstChild),Bi=t,i=ji=!0),i){if(null!=(e=o.mutableSourceEagerHydrationData))for(o=0;o<e.length;o+=2)(i=e[o])._workInProgressVersionPrimary=e[o+1],qi.push(i);for(n=xi(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else Aa(e,t,r,n),Gi();t=t.child}return t;case 5:return Ti(t),null===e&&zi(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,l=o.children,Ur(r,o)?l=null:null!==i&&Ur(r,i)&&(t.flags|=16),Va(e,t),Aa(e,t,l,n),t.child;case 6:return null===e&&zi(t),null;case 13:return Qa(e,t,n);case 4:return Di(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Oi(t,null,r,n):Aa(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,Ma(e,t,r,o=t.elementType===r?o:Qo(r,o),n);case 7:return Aa(e,t,t.pendingProps,n),t.child;case 8:case 12:return Aa(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,o=t.pendingProps,l=t.memoizedProps,i=o.value;var u=t.type._context;if(uo(Ko,u._currentValue),u._currentValue=i,null!==l)if(u=l.value,0===(i=lr(u,i)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(u,i):1073741823))){if(l.children===o.children&&!fo.current){t=nl(e,t,n);break e}}else for(null!==(u=t.child)&&(u.return=t);null!==u;){var s=u.dependencies;if(null!==s){l=u.child;for(var c=s.firstContext;null!==c;){if(c.context===r&&0!=(c.observedBits&i)){1===u.tag&&((c=ui(-1,n&-n)).tag=2,si(u,c)),u.lanes|=n,null!==(c=u.alternate)&&(c.lanes|=n),ni(u.return,n),s.lanes|=n;break}c=c.next}}else l=10===u.tag&&u.type===t.type?null:u.child;if(null!==l)l.return=u;else for(l=u;null!==l;){if(l===t){l=null;break}if(null!==(u=l.sibling)){u.return=l.return,l=u;break}l=l.return}u=l}Aa(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=(i=t.pendingProps).children,ri(t,n),r=r(o=oi(o,i.unstable_observedBits)),t.flags|=1,Aa(e,t,r,n),t.child;case 14:return i=Qo(o=t.type,t.pendingProps),Ba(e,t,o,i=Qo(o.type,i),r,n);case 15:return Fa(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Qo(r,o),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,ho(r)?(e=!0,yo(t)):e=!1,ri(t,n),gi(t,r,o),yi(t,r,o,n),Ha(null,t,r,!0,e,n);case 19:return tl(e,t,n);case 23:case 24:return ja(e,t,n)}throw Error(a(156,t.tag))},es.prototype.render=function(e){Ku(e,this._internalRoot,null,null)},es.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Ku(null,e,null,(function(){t[Xr]=null}))},tt=function(e){13===e.tag&&(cu(e,4,uu()),Zu(e,4))},nt=function(e){13===e.tag&&(cu(e,67108864,uu()),Zu(e,67108864))},rt=function(e){if(13===e.tag){var t=uu(),n=su(e);cu(e,n,t),Zu(e,n)}},ot=function(e,t){return t()},Ce=function(e,t,n){switch(t){case"input":if(ne(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=no(r);if(!o)throw Error(a(90));X(r),ne(r,o)}}}break;case"textarea":se(e,n);break;case"select":null!=(t=n.value)&&ae(e,!!n.multiple,t,!1)}},Te=vu,Le=function(e,t,n,r,o){var i=Pl;Pl|=4;try{return Wo(98,e.bind(null,t,n,r,o))}finally{0===(Pl=i)&&(Hl(),qo())}},Ae=function(){0==(49&Pl)&&(function(){if(null!==eu){var e=eu;eu=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,du(e,Uo())}))}qo()}(),Du())},Me=function(e,t){var n=Pl;Pl|=2;try{return e(t)}finally{0===(Pl=n)&&(Hl(),qo())}};var os={Events:[eo,to,no,De,Ne,Du,{current:!1}]},is={findFiberByHostInstance:Zr,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},as={bundleType:is.bundleType,version:is.version,rendererPackageName:is.rendererPackageName,rendererConfig:is.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ze(e))?null:e.stateNode},findFiberByHostInstance:is.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ls=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ls.isDisabled&&ls.supportsFiber)try{wo=ls.inject(as),Eo=ls}catch(ve){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=os,t.createPortal=rs,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(a(188));throw Error(a(268,Object.keys(e)))}return e=null===(e=Ze(t))?null:e.stateNode},t.flushSync=function(e,t){var n=Pl;if(0!=(48&n))return e(t);Pl|=1;try{if(e)return Wo(99,e.bind(null,t))}finally{Pl=n,qo()}},t.hydrate=function(e,t,n){if(!ts(t))throw Error(a(200));return ns(null,e,t,!0,n)},t.render=function(e,t,n){if(!ts(t))throw Error(a(200));return ns(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!ts(e))throw Error(a(40));return!!e._reactRootContainer&&(gu((function(){ns(null,null,e,!1,(function(){e._reactRootContainer=null,e[Xr]=null}))})),!0)},t.unstable_batchedUpdates=vu,t.unstable_createPortal=function(e,t){return rs(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ts(n))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return ns(e,t,n,!1,r)},t.version="17.0.2"},935:function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){}}(),e.exports=n(448)},639:function(e,t,n){"use strict";var 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},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(294),a=u(i),l=u(n(697));function u(e){return e&&e.__esModule?e:{default:e}}var s={position:"absolute",top:0,left:0,visibility:"hidden",height:0,overflow:"scroll",whiteSpace:"pre"},c=["extraWidth","injectStyles","inputClassName","inputRef","inputStyle","minWidth","onAutosize","placeholderIsMinWidth"],f=function(e,t){t.style.fontSize=e.fontSize,t.style.fontFamily=e.fontFamily,t.style.fontWeight=e.fontWeight,t.style.fontStyle=e.fontStyle,t.style.letterSpacing=e.letterSpacing,t.style.textTransform=e.textTransform},d=!("undefined"==typeof window||!window.navigator)&&/MSIE |Trident\/|Edge\//.test(window.navigator.userAgent),p=function(){return d?"_"+Math.random().toString(36).substr(2,12):void 0},m=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.inputRef=function(e){n.input=e,"function"==typeof n.props.inputRef&&n.props.inputRef(e)},n.placeHolderSizerRef=function(e){n.placeHolderSizer=e},n.sizerRef=function(e){n.sizer=e},n.state={inputWidth:e.minWidth,inputId:e.id||p(),prevId:e.id},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,null,[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.id;return n!==t.prevId?{inputId:n||p(),prevId:n}:null}}]),o(t,[{key:"componentDidMount",value:function(){this.mounted=!0,this.copyInputStyles(),this.updateInputWidth()}},{key:"componentDidUpdate",value:function(e,t){t.inputWidth!==this.state.inputWidth&&"function"==typeof this.props.onAutosize&&this.props.onAutosize(this.state.inputWidth),this.updateInputWidth()}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"copyInputStyles",value:function(){if(this.mounted&&window.getComputedStyle){var e=this.input&&window.getComputedStyle(this.input);e&&(f(e,this.sizer),this.placeHolderSizer&&f(e,this.placeHolderSizer))}}},{key:"updateInputWidth",value:function(){if(this.mounted&&this.sizer&&void 0!==this.sizer.scrollWidth){var e=void 0;e=this.props.placeholder&&(!this.props.value||this.props.value&&this.props.placeholderIsMinWidth)?Math.max(this.sizer.scrollWidth,this.placeHolderSizer.scrollWidth)+2:this.sizer.scrollWidth+2,(e+="number"===this.props.type&&void 0===this.props.extraWidth?16:parseInt(this.props.extraWidth)||0)<this.props.minWidth&&(e=this.props.minWidth),e!==this.state.inputWidth&&this.setState({inputWidth:e})}}},{key:"getInput",value:function(){return this.input}},{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"renderStyles",value:function(){var e=this.props.injectStyles;return d&&e?a.default.createElement("style",{dangerouslySetInnerHTML:{__html:"input#"+this.state.inputId+"::-ms-clear {display: none;}"}}):null}},{key:"render",value:function(){var e=[this.props.defaultValue,this.props.value,""].reduce((function(e,t){return null!=e?e:t})),t=r({},this.props.style);t.display||(t.display="inline-block");var n=r({boxSizing:"content-box",width:this.state.inputWidth+"px"},this.props.inputStyle),o=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}(this.props,[]);return function(e){c.forEach((function(t){return delete e[t]}))}(o),o.className=this.props.inputClassName,o.id=this.state.inputId,o.style=n,a.default.createElement("div",{className:this.props.className,style:t},this.renderStyles(),a.default.createElement("input",r({},o,{ref:this.inputRef})),a.default.createElement("div",{ref:this.sizerRef,style:s},e),this.props.placeholder?a.default.createElement("div",{ref:this.placeHolderSizerRef,style:s},this.props.placeholder):null)}}]),t}(i.Component);m.propTypes={className:l.default.string,defaultValue:l.default.any,extraWidth:l.default.oneOfType([l.default.number,l.default.string]),id:l.default.string,injectStyles:l.default.bool,inputClassName:l.default.string,inputRef:l.default.func,inputStyle:l.default.object,minWidth:l.default.oneOfType([l.default.number,l.default.string]),onAutosize:l.default.func,onChange:l.default.func,placeholder:l.default.string,placeholderIsMinWidth:l.default.bool,style:l.default.object,value:l.default.any},m.defaultProps={minWidth:1,injectStyles:!0},t.Z=m},921:function(e,t){"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,l=n?Symbol.for("react.profiler"):60114,u=n?Symbol.for("react.provider"):60109,s=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,f=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,m=n?Symbol.for("react.suspense_list"):60120,h=n?Symbol.for("react.memo"):60115,v=n?Symbol.for("react.lazy"):60116,g=n?Symbol.for("react.block"):60121,b=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,_=n?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case f:case i:case l:case a:case p:return e;default:switch(e=e&&e.$$typeof){case s:case d:case v:case h:case u:return e;default:return t}}case o:return t}}}function E(e){return w(e)===f}t.AsyncMode=c,t.ConcurrentMode=f,t.ContextConsumer=s,t.ContextProvider=u,t.Element=r,t.ForwardRef=d,t.Fragment=i,t.Lazy=v,t.Memo=h,t.Portal=o,t.Profiler=l,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return E(e)||w(e)===c},t.isConcurrentMode=E,t.isContextConsumer=function(e){return w(e)===s},t.isContextProvider=function(e){return w(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===d},t.isFragment=function(e){return w(e)===i},t.isLazy=function(e){return w(e)===v},t.isMemo=function(e){return w(e)===h},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===l},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===f||e===l||e===a||e===p||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===h||e.$$typeof===u||e.$$typeof===s||e.$$typeof===d||e.$$typeof===b||e.$$typeof===y||e.$$typeof===_||e.$$typeof===g)},t.typeOf=w},864:function(e,t,n){"use strict";e.exports=n(921)},408:function(e,t,n){"use strict";var r=n(418),o=60103,i=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var a=60109,l=60110,u=60112;t.Suspense=60113;var s=60115,c=60116;if("function"==typeof Symbol&&Symbol.for){var f=Symbol.for;o=f("react.element"),i=f("react.portal"),t.Fragment=f("react.fragment"),t.StrictMode=f("react.strict_mode"),t.Profiler=f("react.profiler"),a=f("react.provider"),l=f("react.context"),u=f("react.forward_ref"),t.Suspense=f("react.suspense"),s=f("react.memo"),c=f("react.lazy")}var d="function"==typeof Symbol&&Symbol.iterator;function p(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h={};function v(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||m}function g(){}function b(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||m}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(p(85));this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},g.prototype=v.prototype;var y=b.prototype=new g;y.constructor=b,r(y,v.prototype),y.isPureReactComponent=!0;var _={current:null},w=Object.prototype.hasOwnProperty,E={key:!0,ref:!0,__self:!0,__source:!0};function S(e,t,n){var r,i={},a=null,l=null;if(null!=t)for(r in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(a=""+t.key),t)w.call(t,r)&&!E.hasOwnProperty(r)&&(i[r]=t[r]);var u=arguments.length-2;if(1===u)i.children=n;else if(1<u){for(var s=Array(u),c=0;c<u;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in u=e.defaultProps)void 0===i[r]&&(i[r]=u[r]);return{$$typeof:o,type:e,key:a,ref:l,props:i,_owner:_.current}}function O(e){return"object"==typeof e&&null!==e&&e.$$typeof===o}var x=/\/+/g;function k(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function C(e,t,n,r,a){var l=typeof e;"undefined"!==l&&"boolean"!==l||(e=null);var u=!1;if(null===e)u=!0;else switch(l){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case o:case i:u=!0}}if(u)return a=a(u=e),e=""===r?"."+k(u,0):r,Array.isArray(a)?(n="",null!=e&&(n=e.replace(x,"$&/")+"/"),C(a,t,n,"",(function(e){return e}))):null!=a&&(O(a)&&(a=function(e,t){return{$$typeof:o,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,n+(!a.key||u&&u.key===a.key?"":(""+a.key).replace(x,"$&/")+"/")+e)),t.push(a)),1;if(u=0,r=""===r?".":r+":",Array.isArray(e))for(var s=0;s<e.length;s++){var c=r+k(l=e[s],s);u+=C(l,t,n,c,a)}else if("function"==typeof(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=d&&e[d]||e["@@iterator"])?e:null}(e)))for(e=c.call(e),s=0;!(l=e.next()).done;)u+=C(l=l.value,t,n,c=r+k(l,s++),a);else if("object"===l)throw t=""+e,Error(p(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return u}function P(e,t,n){if(null==e)return e;var r=[],o=0;return C(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function I(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var R={current:null};function D(){var e=R.current;if(null===e)throw Error(p(321));return e}var N={ReactCurrentDispatcher:R,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:_,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:P,forEach:function(e,t,n){P(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return P(e,(function(){t++})),t},toArray:function(e){return P(e,(function(e){return e}))||[]},only:function(e){if(!O(e))throw Error(p(143));return e}},t.Component=v,t.PureComponent=b,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=N,t.cloneElement=function(e,t,n){if(null==e)throw Error(p(267,e));var i=r({},e.props),a=e.key,l=e.ref,u=e._owner;if(null!=t){if(void 0!==t.ref&&(l=t.ref,u=_.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(c in t)w.call(t,c)&&!E.hasOwnProperty(c)&&(i[c]=void 0===t[c]&&void 0!==s?s[c]:t[c])}var c=arguments.length-2;if(1===c)i.children=n;else if(1<c){s=Array(c);for(var f=0;f<c;f++)s[f]=arguments[f+2];i.children=s}return{$$typeof:o,type:e.type,key:a,ref:l,props:i,_owner:u}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:l,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},t.createElement=S,t.createFactory=function(e){var t=S.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=O,t.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:I}},t.memo=function(e,t){return{$$typeof:s,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return D().useCallback(e,t)},t.useContext=function(e,t){return D().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return D().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return D().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return D().useLayoutEffect(e,t)},t.useMemo=function(e,t){return D().useMemo(e,t)},t.useReducer=function(e,t,n){return D().useReducer(e,t,n)},t.useRef=function(e){return D().useRef(e)},t.useState=function(e){return D().useState(e)},t.version="17.0.2"},294:function(e,t,n){"use strict";e.exports=n(408)},53:function(e,t){"use strict";var n,r,o,i;if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var l=Date,u=l.now();t.unstable_now=function(){return l.now()-u}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var s=null,c=null,f=function(){if(null!==s)try{var e=t.unstable_now();s(!0,e),s=null}catch(e){throw setTimeout(f,0),e}};n=function(e){null!==s?setTimeout(n,0,e):(s=e,setTimeout(f,0))},r=function(e,t){c=setTimeout(e,t)},o=function(){clearTimeout(c)},t.unstable_shouldYield=function(){return!1},i=t.unstable_forceFrameRate=function(){}}else{var d=window.setTimeout,p=window.clearTimeout;if("undefined"!=typeof console){window.cancelAnimationFrame;window.requestAnimationFrame}var m=!1,h=null,v=-1,g=5,b=0;t.unstable_shouldYield=function(){return t.unstable_now()>=b},i=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e||(g=0<e?Math.floor(1e3/e):5)};var y=new MessageChannel,_=y.port2;y.port1.onmessage=function(){if(null!==h){var e=t.unstable_now();b=e+g;try{h(!0,e)?_.postMessage(null):(m=!1,h=null)}catch(e){throw _.postMessage(null),e}}else m=!1},n=function(e){h=e,m||(m=!0,_.postMessage(null))},r=function(e,n){v=d((function(){e(t.unstable_now())}),n)},o=function(){p(v),v=-1}}function w(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,o=e[r];if(!(void 0!==o&&0<O(o,t)))break e;e[r]=t,e[n]=o,n=r}}function E(e){return void 0===(e=e[0])?null:e}function S(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length;r<o;){var i=2*(r+1)-1,a=e[i],l=i+1,u=e[l];if(void 0!==a&&0>O(a,n))void 0!==u&&0>O(u,a)?(e[r]=u,e[l]=n,r=l):(e[r]=a,e[i]=n,r=i);else{if(!(void 0!==u&&0>O(u,n)))break e;e[r]=u,e[l]=n,r=l}}}return t}return null}function O(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var x=[],k=[],C=1,P=null,I=3,R=!1,D=!1,N=!1;function T(e){for(var t=E(k);null!==t;){if(null===t.callback)S(k);else{if(!(t.startTime<=e))break;S(k),t.sortIndex=t.expirationTime,w(x,t)}t=E(k)}}function L(e){if(N=!1,T(e),!D)if(null!==E(x))D=!0,n(A);else{var t=E(k);null!==t&&r(L,t.startTime-e)}}function A(e,n){D=!1,N&&(N=!1,o()),R=!0;var i=I;try{for(T(n),P=E(x);null!==P&&(!(P.expirationTime>n)||e&&!t.unstable_shouldYield());){var a=P.callback;if("function"==typeof a){P.callback=null,I=P.priorityLevel;var l=a(P.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?P.callback=l:P===E(x)&&S(x),T(n)}else S(x);P=E(x)}if(null!==P)var u=!0;else{var s=E(k);null!==s&&r(L,s.startTime-n),u=!1}return u}finally{P=null,I=i,R=!1}}var M=i;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){D||R||(D=!0,n(A))},t.unstable_getCurrentPriorityLevel=function(){return I},t.unstable_getFirstCallbackNode=function(){return E(x)},t.unstable_next=function(e){switch(I){case 1:case 2:case 3:var t=3;break;default:t=I}var n=I;I=t;try{return e()}finally{I=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=M,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=I;I=e;try{return t()}finally{I=n}},t.unstable_scheduleCallback=function(e,i,a){var l=t.unstable_now();switch("object"==typeof a&&null!==a?a="number"==typeof(a=a.delay)&&0<a?l+a:l:a=l,e){case 1:var u=-1;break;case 2:u=250;break;case 5:u=1073741823;break;case 4:u=1e4;break;default:u=5e3}return e={id:C++,callback:i,priorityLevel:e,startTime:a,expirationTime:u=a+u,sortIndex:-1},a>l?(e.sortIndex=a,w(k,e),null===E(x)&&e===E(k)&&(N?o():N=!0,r(L,a-l))):(e.sortIndex=u,w(x,e),D||R||(D=!0,n(A))),e},t.unstable_wrapCallback=function(e){var t=I;return function(){var n=I;I=t;try{return e.apply(this,arguments)}finally{I=n}}}},840:function(e,t,n){"use strict";e.exports=n(53)}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={exports:{}};return t[e](i,i.exports,r),i.exports}r.m=t,e=[],r.O=function(t,n,o,i){if(!n){var a=1/0;for(c=0;c<e.length;c++){n=e[c][0],o=e[c][1],i=e[c][2];for(var l=!0,u=0;u<n.length;u++)(!1&i||a>=i)&&Object.keys(r.O).every((function(e){return r.O[e](n[u])}))?n.splice(u--,1):(l=!1,i<a&&(a=i));if(l){e.splice(c--,1);var s=o();void 0!==s&&(t=s)}}return t}i=i||0;for(var c=e.length;c>0&&e[c-1][2]>i;c--)e[c]=e[c-1];e[c]=[n,o,i]},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){var e={7:0,886:0,154:0};r.O.j=function(t){return 0===e[t]};var t=function(t,n){var o,i,a=n[0],l=n[1],u=n[2],s=0;if(a.some((function(t){return 0!==e[t]}))){for(o in l)r.o(l,o)&&(r.m[o]=l[o]);if(u)var c=u(r)}for(t&&t(n);s<a.length;s++)i=a[s],r.o(e,i)&&e[i]&&e[i][0](),e[a[s]]=0;return r.O(c)},n=self.webpackChunkflexible_checkout_fields=self.webpackChunkflexible_checkout_fields||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))}(),r.O(void 0,[886,154],(function(){return r(402)})),r.O(void 0,[886,154],(function(){return r(651)}));var o=r.O(void 0,[886,154],(function(){return r(108)}));o=r.O(o)}();
|
1 |
/*! For license information please see new-admin.js.LICENSE.txt */
|
2 |
+
!function(){var e,t={669:function(e,t,n){e.exports=n(609)},592:function(e,t,n){"use strict";var r=n(867),o=n(26),i=n(372),a=n(327),l=n(97),u=n(109),s=n(985),c=n(61);e.exports=function(e){return new Promise((function(t,n){var f=e.data,d=e.headers;r.isFormData(f)&&delete d["Content-Type"];var p=new XMLHttpRequest;if(e.auth){var m=e.auth.username||"",h=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";d.Authorization="Basic "+btoa(m+":"+h)}var v=l(e.baseURL,e.url);if(p.open(e.method.toUpperCase(),a(v,e.params,e.paramsSerializer),!0),p.timeout=e.timeout,p.onreadystatechange=function(){if(p&&4===p.readyState&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in p?u(p.getAllResponseHeaders()):null,i={data:e.responseType&&"text"!==e.responseType?p.response:p.responseText,status:p.status,statusText:p.statusText,headers:r,config:e,request:p};o(t,n,i),p=null}},p.onabort=function(){p&&(n(c("Request aborted",e,"ECONNABORTED",p)),p=null)},p.onerror=function(){n(c("Network Error",e,null,p)),p=null},p.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(c(t,e,"ECONNABORTED",p)),p=null},r.isStandardBrowserEnv()){var g=(e.withCredentials||s(v))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;g&&(d[e.xsrfHeaderName]=g)}if("setRequestHeader"in p&&r.forEach(d,(function(e,t){void 0===f&&"content-type"===t.toLowerCase()?delete d[t]:p.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(p.withCredentials=!!e.withCredentials),e.responseType)try{p.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&p.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){p&&(p.abort(),n(e),p=null)})),f||(f=null),p.send(f)}))}},609:function(e,t,n){"use strict";var r=n(867),o=n(849),i=n(321),a=n(185);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 u=l(n(655));u.Axios=i,u.create=function(e){return l(a(u.defaults,e))},u.Cancel=n(263),u.CancelToken=n(972),u.isCancel=n(502),u.all=function(e){return Promise.all(e)},u.spread=n(713),u.isAxiosError=n(268),e.exports=u,e.exports.default=u},263: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},972:function(e,t,n){"use strict";var r=n(263);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},502:function(e){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},321:function(e,t,n){"use strict";var r=n(867),o=n(327),i=n(782),a=n(572),l=n(185);function u(e){this.defaults=e,this.interceptors={request:new i,response:new i}}u.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=[a,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));t.length;)n=n.then(t.shift(),t.shift());return n},u.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){u.prototype[e]=function(t,n){return this.request(l(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){u.prototype[e]=function(t,n,r){return this.request(l(r||{},{method:e,url:t,data:n}))}})),e.exports=u},782:function(e,t,n){"use strict";var r=n(867);function o(){this.handlers=[]}o.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),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},97:function(e,t,n){"use strict";var r=n(793),o=n(303);e.exports=function(e,t){return e&&!r(t)?o(e,t):t}},61:function(e,t,n){"use strict";var r=n(481);e.exports=function(e,t,n,o,i){var a=new Error(e);return r(a,t,n,o,i)}},572:function(e,t,n){"use strict";var r=n(867),o=n(527),i=n(502),a=n(655);function l(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return l(e),e.headers=e.headers||{},e.data=o(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(t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(l(e),t&&t.response&&(t.response.data=o(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},481: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}},185:function(e,t,n){"use strict";var r=n(867);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 u(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 s(o){r.isUndefined(t[o])?r.isUndefined(e[o])||(n[o]=u(void 0,e[o])):n[o]=u(e[o],t[o])}r.forEach(o,(function(e){r.isUndefined(t[e])||(n[e]=u(void 0,t[e]))})),r.forEach(i,s),r.forEach(a,(function(o){r.isUndefined(t[o])?r.isUndefined(e[o])||(n[o]=u(void 0,e[o])):n[o]=u(void 0,t[o])})),r.forEach(l,(function(r){r in t?n[r]=u(e[r],t[r]):r in e&&(n[r]=u(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,s),n}},26:function(e,t,n){"use strict";var r=n(61);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)}},527:function(e,t,n){"use strict";var r=n(867);e.exports=function(e,t,n){return r.forEach(n,(function(n){e=n(e,t)})),e}},655:function(e,t,n){"use strict";var r=n(155),o=n(867),i=n(16),a={"Content-Type":"application/x-www-form-urlencoded"};function l(e,t){!o.isUndefined(e)&&o.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var u,s={adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==r&&"[object process]"===Object.prototype.toString.call(r))&&(u=n(592)),u),transformRequest:[function(e,t){return i(t,"Accept"),i(t,"Content-Type"),o.isFormData(e)||o.isArrayBuffer(e)||o.isBuffer(e)||o.isStream(e)||o.isFile(e)||o.isBlob(e)?e:o.isArrayBufferView(e)?e.buffer:o.isURLSearchParams(e)?(l(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):o.isObject(e)?(l(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300}};s.headers={common:{Accept:"application/json, text/plain, */*"}},o.forEach(["delete","get","head"],(function(e){s.headers[e]={}})),o.forEach(["post","put","patch"],(function(e){s.headers[e]=o.merge(a)})),e.exports=s},849: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)}}},327:function(e,t,n){"use strict";var r=n(867);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}},303:function(e){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},372:function(e,t,n){"use strict";var r=n(867);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(){}}},793:function(e){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},268:function(e){"use strict";e.exports=function(e){return"object"==typeof e&&!0===e.isAxiosError}},985:function(e,t,n){"use strict";var r=n(867);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}},16:function(e,t,n){"use strict";var r=n(867);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},109:function(e,t,n){"use strict";var r=n(867),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}},713:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},867:function(e,t,n){"use strict";var r=n(849),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 u(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function s(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:u,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:s,isStream:function(e){return l(e)&&s(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){u(t[r])&&u(n)?t[r]=e(t[r],n):u(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.replace(/^\s*/,"").replace(/\s*$/,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},402:function(e,t,n){"use strict";var r={};n.r(r),n.d(r,{CheckboxField:function(){return q},CheckboxListField:function(){return ee},ColorField:function(){return Se},GroupField:function(){return De},HiddenField:function(){return je},ImageField:function(){return qe},InfoAdvField:function(){return et},InfoField:function(){return ut},InfoNoticeField:function(){return vt},NumberField:function(){return Ot},RadioField:function(){return Nt},RadioListField:function(){return Vt},RepeaterField:function(){return Yt},SelectField:function(){return zi},SelectMultiField:function(){return Ki},TextField:function(){return da},TextareaField:function(){return oa}});var o=n(294),i=n(935);function a(e){var t=e.button_classes,n=e.button_alignment,r=e.button_label,i=e.loading_type,a=e.loading_message,l=e.tooltip_text,u=e.settings,s=e.onSubmit,c=(e.loading_status||"").replace("".concat(i,"_"),""),f="loading"===(e.loading_status||"").substr(-7);return o.createElement(o.Fragment,null,"left"===n?l?o.createElement(h,{text:l,onAccept:s,settings:u},o.createElement("button",{type:"button",className:t,disabled:f},r)):o.createElement("button",{type:"button",className:t,onClick:s,disabled:f},r):null,"loading"===c?o.createElement("div",{className:"fcfWidget__buttonIcon fcfWidget__buttonIcon--loading"},o.createElement("div",{className:"fcfWidget__buttonIconInner"})):null,"success"===c?o.createElement("div",{className:"fcfWidget__buttonIcon fcfWidget__buttonIcon--success"},o.createElement("div",{className:"fcfWidget__buttonIconInner"})):null,"error"===c?o.createElement("div",{className:"fcfWidget__buttonIcon fcfWidget__buttonIcon--error"},o.createElement(h,{text:a||u.i18n.alert_failed_save,is_open:!0,settings:u},o.createElement("div",{className:"fcfWidget__buttonIconInner"}))):null,"right"===n?l?o.createElement(h,{text:l,onAccept:s,settings:u},o.createElement("button",{type:"button",className:t,disabled:f},r)):o.createElement("button",{type:"button",className:t,onClick:s,disabled:f},r):null)}function l(e){var t=e.field_data,n=e.unique_id,r=e.is_group_label,i=e.settings,a=r?"".concat(t.label,":"):t.label;return r?o.createElement("div",{className:"fcfOptions__rowLabel"},a,t.label_tooltip?o.createElement("span",{className:"fcfOptions__labelHelp"},o.createElement(h,{text:t.label_tooltip,button_url:t.label_tooltip_url,settings:i},o.createElement("span",{className:"fcfOptions__labelHelpIcon"}))):null):o.createElement("label",{className:"fcfOptions__label",htmlFor:n},a,t.label_tooltip?o.createElement("span",{className:"fcfOptions__labelHelp"},o.createElement(h,{text:t.label_tooltip,button_url:t.label_tooltip_url,settings:i},o.createElement("span",{className:"fcfOptions__labelHelpIcon"}))):null)}function u(e){return(u="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)}function s(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 c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(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=m(e);if(t){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function d(e,t){if(t&&("object"===u(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return p(e)}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h=function(e){!function(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}}),t&&c(e,t)}(a,e);var t,n,r,i=f(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).state={text:e.text,button_url:e.button_url,status:{is_open:!1,is_visible:!1},settings:e.settings,events:{onClose:t.closePopup.bind(p(t)),onAccept:e.onAccept},refs:{wrapper:o.createRef()}},t._isMounted=!1,t}return t=a,(n=[{key:"render",value:function(){var e=this.state,t=e.text,n=e.button_url,r=e.status,i=e.settings,a=e.events,l=e.refs,u=o.Children.toArray(this.props.children);return o.createElement(o.Fragment,null,o.cloneElement(u[0],{onClick:this.openPopup.bind(this)}),r.is_open?o.createElement("div",{className:"fcfTooltip ".concat(r.is_visible?"fcfTooltip--open":"")},o.createElement("div",{className:"fcfTooltip__outer"},o.createElement("div",{className:"fcfTooltip__inner",ref:l.wrapper,onClick:this.preventClosePopup.bind(this)},o.createElement("div",{className:"fcfTooltip__text"},t),n?o.createElement("ul",{className:"fcfTooltip__buttons"},o.createElement("li",{className:"fcfTooltip__button"},o.createElement("a",{href:n,target:"_blank",className:"fcfButton fcfButton--small fcfButton--border fcfButton--blue"},i.i18n.button_read_more))):null,a.onAccept?o.createElement("ul",{className:"fcfTooltip__buttons"},o.createElement("li",{className:"fcfTooltip__button"},o.createElement("button",{type:"button",className:"fcfButton fcfButton--small fcfButton--border fcfButton--green",onClick:this.acceptPopup.bind(this)},i.i18n.button_yes)),o.createElement("li",{className:"fcfTooltip__button"},o.createElement("button",{type:"button",className:"fcfButton fcfButton--small fcfButton--border fcfButton--red",onClick:this.closePopup.bind(this)},i.i18n.button_no))):null))):null)}},{key:"componentDidMount",value:function(){this._isMounted=!0,this.props.is_open&&setTimeout(this.openPopup.bind(this),0)}},{key:"componentWillUnmount",value:function(){this._isMounted=!1}},{key:"openPopup",value:function(e){e&&(e.preventDefault(),e.stopPropagation());var t=this.state.status;t.is_open||(t.is_open=!0,t.is_visible=!1,this._isMounted&&this.setState({status:t}),this.loadPopup())}},{key:"loadPopup",value:function(){var e=this,t=this.state.events;window.addEventListener("click",t.onClose),window.dispatchEvent(new CustomEvent("fcf-popup-open")),setTimeout((function(){window.addEventListener("fcf-popup-open",t.onClose),e.setStyles()}),0)}},{key:"acceptPopup",value:function(e){e.preventDefault(),e.stopPropagation(),this.state.events.onAccept(),this.closePopup()}},{key:"closePopup",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;null!==e&&e.stopPropagation();var t=this.state,n=t.status,r=t.events;n.is_open=!1,this._isMounted&&this.setState({status:n}),window.removeEventListener("click",r.onClose),window.removeEventListener("fcf-popup-open",r.onClose)}},{key:"preventClosePopup",value:function(e){e.stopPropagation()}},{key:"setStyles",value:function(){var e=this.state,t=e.refs,n=e.status;if(t.wrapper.current){var r=document.querySelector(".fcfSettings").getBoundingClientRect(),o=t.wrapper.current.getBoundingClientRect();t.wrapper.current.style.marginLeft="";var i=r.left,a=r.left+r.width,l=o.left,u=o.left+o.width;l<i?t.wrapper.current.style.marginLeft="".concat(2*(i-l),"px"):u>a&&(t.wrapper.current.style.marginLeft="".concat(-2*(u-a),"px")),n.is_visible=!0,this._isMounted&&this.setState({status:n})}}}])&&s(t.prototype,n),r&&s(t,r),a}(o.Component);function v(e){var t=e.validation_error;return t?o.createElement("div",{className:"fcfOptions__error ".concat(t.is_fatal?"":"fcfOptions__error fcfOptions__error--warning"," "),dangerouslySetInnerHTML:{__html:t.message}}):null}var g=n(669),b=n.n(g);function y(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)}}var _=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.api_url=t,this.header_nonce=n,this.requests={}}var t,n,r;return t=e,(n=[{key:"connect",value:function(e,t,n){var r=this;this.requests[n]&&this.requests[n].cancel();var o=b().CancelToken;this.requests[n]=o.source();var i={method:"POST",url:"".concat(this.api_url,"/").concat(e),headers:{"X-WP-Nonce":this.header_nonce},data:t,cancelToken:this.requests[n].token};return b()(i).then((function(e){var t={status:!0,response:e.data};return"get"===e.config.method&&(r.cache[cache_key]=t),t})).catch((function(e){return{status:!1,response:e.response?e.response.data.message:null}}))}}])&&y(t.prototype,n),r&&y(t,r),e}();function w(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)}}var E=function(){function e(t,n,r,o,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.api_loader=t,this.field_data=n,this.section_fields=r,this.onUpdateStatus=o,this.onUpdateItems=i,this.cache={}}var t,n,r;return t=e,(n=[{key:"refreshItems",value:function(e,t,n,r,o,i,a,l){var u=this.field_data,s=u.endpoint_route,c=u.endpoint_params,f=this.getParamsForApi(c,o);if(r||JSON.stringify(f)!==this.cache){this.cache=JSON.stringify(f);var d=Array.isArray(i)?i:""!==i?[i]:[];this.loadItemsFromApi(s,f,t,n,e,d,a,l)}}},{key:"getParamsForApi",value:function(e,t){for(var n={},r=e.length,o=0;o<r;o++)n[e[o]]=t[e[o]];return n}},{key:"loadItemsFromApi",value:function(e,t,n,r,o,i,a,l){var u=this.api_loader,s=this.section_fields,c=this.onUpdateStatus,f=this.onUpdateItems;c(!0),u.connect(e,{form_values:t,form_field_name:n,form_section:r,form_fields:s,field_values:i,field_search:a},o).then((function(e){c(!1),e.status&&null!==e.response&&(f(e.response),null!==l&&l())}))}}])&&w(t.prototype,n),r&&w(t,r),e}();function S(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)}}var O=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,(n=[{key:"generateSlug",value:function(e){var t=e,n=this.getLettersToReplace();for(var r in n)t=t.replace(new RegExp(r,"g"),n[r]);return t=(t=(t=(t=t.replace(/\s/g,"_")).toLowerCase()).replace(/[^a-z0-9_]/gi,"")).replace(/[/_]{2,}/g,"_")}},{key:"getLettersToReplace",value:function(){return{"-":"_","/":"_",",":"_",":":"_",";":"_","ª":"a","º":"o","À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"TH","ß":"s","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ø":"O","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Ĉ":"C","ĉ":"c","Ċ":"C","ċ":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"D","đ":"d","Ē":"E","ē":"e","Ĕ":"E","ĕ":"e","Ė":"E","ė":"e","Ę":"E","ę":"e","Ě":"E","ě":"e","Ĝ":"G","ĝ":"g","Ğ":"G","ğ":"g","Ġ":"G","ġ":"g","Ģ":"G","ģ":"g","Ĥ":"H","ĥ":"h","Ħ":"H","ħ":"h","Ĩ":"I","ĩ":"i","Ī":"I","ī":"i","Ĭ":"I","ĭ":"i","Į":"I","į":"i","İ":"I","ı":"i","IJ":"IJ","ij":"ij","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","ĺ":"l","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ŀ":"L","ŀ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","ʼn":"n","Ŋ":"N","ŋ":"n","Ō":"O","ō":"o","Ŏ":"O","ŏ":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ŗ":"R","ŗ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ŝ":"S","ŝ":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ŧ":"T","ŧ":"t","Ũ":"U","ũ":"u","Ū":"U","ū":"u","Ŭ":"U","ŭ":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","ſ":"s","Ș":"S","ș":"s","Ț":"T","ț":"t","€":"E","£":"","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Ầ":"A","ầ":"a","Ằ":"A","ằ":"a","Ề":"E","ề":"e","Ồ":"O","ồ":"o","Ờ":"O","ờ":"o","Ừ":"U","ừ":"u","Ỳ":"Y","ỳ":"y","Ả":"A","ả":"a","Ẩ":"A","ẩ":"a","Ẳ":"A","ẳ":"a","Ẻ":"E","ẻ":"e","Ể":"E","ể":"e","Ỉ":"I","ỉ":"i","Ỏ":"O","ỏ":"o","Ổ":"O","ổ":"o","Ở":"O","ở":"o","Ủ":"U","ủ":"u","Ử":"U","ử":"u","Ỷ":"Y","ỷ":"y","Ẫ":"A","ẫ":"a","Ẵ":"A","ẵ":"a","Ẽ":"E","ẽ":"e","Ễ":"E","ễ":"e","Ỗ":"O","ỗ":"o","Ỡ":"O","ỡ":"o","Ữ":"U","ữ":"u","Ỹ":"Y","ỹ":"y","Ấ":"A","ấ":"a","Ắ":"A","ắ":"a","Ế":"E","ế":"e","Ố":"O","ố":"o","Ớ":"O","ớ":"o","Ứ":"U","ứ":"u","Ạ":"A","ạ":"a","Ậ":"A","ậ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ệ":"E","ệ":"e","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ộ":"O","ộ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ự":"U","ự":"u","Ỵ":"Y","ỵ":"y","ɑ":"a","Ǖ":"U","ǖ":"u","Ǘ":"U","ǘ":"u","Ǎ":"A","ǎ":"a","Ǐ":"I","ǐ":"i","Ǒ":"O","ǒ":"o","Ǔ":"U","ǔ":"u","Ǚ":"U","ǚ":"u","Ǜ":"U","ǜ":"u"}}}])&&S(t.prototype,n),r&&S(t,r),e}();function x(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)}}var k=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,(n=[{key:"validateValue",value:function(e,t){for(var n=e.name,r=e.validation_rules,o=0;o<r.length;o++)if(!new RegExp(r[o].regex,"s").test(t[n]||""))return{message:r[o].message,is_fatal:r[o].is_fatal};return null}}])&&x(t.prototype,n),r&&x(t,r),e}();function C(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)}}var P=function(){function e(t,n,r,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.api_handler=t,this.api_route=n,this._form_validation=r,this.onUpdateStatus=o}var t,n,r;return t=e,(n=[{key:"onSubmit",value:function(e,t){var n=this;this.onUpdateStatus("".concat(e,"_loading")),this._form_validation.onSubmit().then((function(){n.saveSettings(e,t).then((function(){n.onUpdateStatus("".concat(e,"_success")),setTimeout(n.onUpdateStatus,1e3)}),(function(t){n.onUpdateStatus("".concat(e,"_error"),t)}))}),(function(){n.onUpdateStatus()}))}},{key:"saveSettings",value:function(e,t){var n=this.api_handler,r=this.api_route;return new Promise((function(e,o){n.connect(r,t,"POST").then((function(t){t.status?e():o(t.response)}))}))}},{key:"onReset",value:function(e,t){var n=this;this.onUpdateStatus("".concat(e,"_loading")),this.saveSettings(e,t).then((function(){n.onUpdateStatus("".concat(e,"_success")),window.location.reload(!0)}),(function(t){n.onUpdateStatus("".concat(e,"_error"),t)}))}}])&&C(t.prototype,n),r&&C(t,r),e}();function I(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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)}}var D=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10;I(this,e),this.validation_event=t,this.validation_type=n,this.max_iteration=r,this.validation_errors={}}var t,n,r;return t=e,(n=[{key:"onValidationInit",value:function(e,t,n){this.validation_errors[e]=n,t&&delete this.validation_errors[e]}},{key:"clearValidationHandlers",value:function(){this.validation_errors={}}},{key:"onSubmit",value:function(){var e=this,t=this.validation_event,n=this.validation_type,r=this.max_iteration;return this.clearValidationHandlers(),window.dispatchEvent(new CustomEvent(t,{detail:n})),new Promise((function(t,n){var o=0,i=setInterval((function(){var a=e.getFirstEvent();a&&(clearInterval(i),a(),n()),++o===r&&(clearInterval(i),t())}),100)}))}},{key:"getFirstEvent",value:function(){var e=Object.keys(this.validation_errors);return e.length>0?this.validation_errors[e[0]]:null}}])&&R(t.prototype,n),r&&R(t,r),e}();function N(e){return(N="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)}function T(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 L(e,t){return(L=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function A(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=B(e);if(t){var o=B(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return M(this,n)}}function M(e,t){if(t&&("object"===N(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function B(e){return(B=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var F=function(e){!function(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}}),t&&L(e,t)}(a,e);var t,n,r,i=A(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).state={settings:e.settings,form_settings:e.form_settings,events:{onChangeValue:e.onChangeValue,onChangeState:e.onChangeState,onRefreshForm:e.onRefreshForm,onValidationInit:e.onValidationInit},handlers:{api_loader:e.settings.handlers.api_loader},validation_types:e.validation_types},t._field_validation=new k,t.setDefaultValue(),t.onChangeState("unique_id",t.generateUniqueId(32)),t.onChangeState("ref_wrapper",o.createRef()),t.onChangeState("ref_input",o.createRef()),t}return t=a,(n=[{key:"componentDidMount",value:function(){var e=this;this._isMounted=!0;var t=this.state,n=t.settings,r=t.validation_types;window.addEventListener(n.events.validate_field,(function(t){null!==t.detail&&r.indexOf(t.detail)>-1&&e._isMounted&&e.validateValue()}))}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.onValidationError(null)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.field_data,r=t.form_values;JSON.stringify(r[n.name])!==JSON.stringify(e.form_values[n.name])&&(""===r[n.name]&&void 0===e.form_values[n.name]||(void 0===r[n.name]&&void 0!==e.form_values[n.name]?this.onValidationError(null):r[n.name]!==e.form_values[n.name]&&this.validateValue()))}},{key:"onChangeValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.props.field_data,n=this.state.events,r=this.getValue(e);n.onChangeValue(t.name,r,t.refresh_trigger)}},{key:"onChangeState",value:function(e,t){var n=this.props.state_name;this.state.events.onChangeState(n,e,t)}},{key:"onValidationError",value:function(e){var t=this.props,n=t.form_states,r=t.state_name,o=t.form_values,i=t.show_if_regexes,a=this.state.events;n[r]&&this.isFieldVisible(i,o)&&(this.onChangeState("validation_error",e),a.onValidationInit(n[r].unique_id,null===e,(function(){var e=n[r].ref_wrapper.current;setTimeout((function(){e.scrollIntoView(!1)}),0)})))}},{key:"setDefaultValue",value:function(){var e=this.state.events,t=this.props,n=t.field_data,r=t.form_values,o=void 0!==r[n.name]?r[n.name]:JSON.parse(JSON.stringify(n.default_value||""));e.onChangeValue(n.name,o)}},{key:"isFieldVisible",value:function(e,t){for(var n in e)if(!new RegExp(e[n]).test(t[n]))return!1;return!0}},{key:"getFieldValue",value:function(){var e=this.props,t=e.field_data,n=e.form_values;return t.display_pattern?t.display_pattern.replace("%s",n[t.name]||""):n[t.name]||""}},{key:"validateValue",value:function(){var e=this.props,t=e.field_data,n=e.form_values,r=this._field_validation.validateValue(t,n);null!==r?this.onValidationError(r):this.onChangeState("validation_error",null)}},{key:"generateUniqueId",value:function(e){for(var t="abcdefghijklmnopqrstuvwxyz0123456789",n="",r=t.length,o=0;o<e;o++)n+=t.charAt(Math.floor(Math.random()*r));return n}}])&&T(t.prototype,n),r&&T(t,r),a}(o.Component);function j(e){return(j="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)}function V(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function U(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 z(e,t){return(z=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function H(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=G(e);if(t){var o=G(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return W(this,n)}}function W(e,t){if(t&&("object"===j(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function G(e){return(G=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var q=function(e){!function(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}}),t&&z(e,t)}(a,e);var t,n,r,i=H(a);function a(){return V(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.field_data,n=e.form_values,r=e.form_states,i=e.state_name,a=e.show_if_regexes,u=this.state.settings;return r[i]&&this.isFieldVisible(a,n)?o.createElement(o.Fragment,null,o.createElement("li",{className:"fcfOptions__row",ref:r[i].ref_wrapper},o.createElement("input",{type:"checkbox",className:"fcfOptions__checkbox",id:r[i].unique_id,ref:r[i].ref_input,name:"_fcf_".concat(t.name),defaultChecked:n[t.name]&&"1"===n[t.name].toString(),onChange:t.readonly?null:this.onChangeValue.bind(this),disabled:t.readonly}),o.createElement(l,{unique_id:r[i].unique_id,field_data:t,settings:u}),o.createElement(v,{validation_error:r[i].validation_error}))):null}},{key:"getValue",value:function(){var e=this.props;return e.form_states[e.state_name].ref_input.current.checked?"1":"0"}}])&&U(t.prototype,n),r&&U(t,r),a}(F);function $(e){return($="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)}function Y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Q(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 K(e,t){return(K=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function X(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=Z(e);if(t){var o=Z(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return J(this,n)}}function J(e,t){if(t&&("object"===$(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Z(e){return(Z=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ee=function(e){!function(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}}),t&&K(e,t)}(a,e);var t,n,r,i=X(a);function a(){return Y(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.field_data,n=e.form_values,r=e.form_states,i=e.state_name,a=e.state_field_name,u=e.section_fields,s=e.show_if_regexes,c=this.state,f=c.events,d=c.settings,p=c.form_settings,m=c.validation_types;return r[i]&&this.isFieldVisible(s,n)?o.createElement(o.Fragment,null,o.createElement("li",{className:"fcfOptions__row"},o.createElement(l,{unique_id:r[i].unique_id,field_data:t,is_group_label:!0,settings:d})),t.items.map((function(e,t){return o.createElement(q,{key:t,field_data:e,form_values:n,form_states:r,state_name:e.name,state_field_name:a,section_fields:u,onChangeValue:f.onChangeValue,onChangeState:f.onChangeState,onRefreshForm:f.onRefreshForm,onValidationInit:f.onValidationInit,validation_types:m,settings:d,form_settings:p})}))):null}}])&&Q(t.prototype,n),r&&Q(t,r),a}(F),te=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},ne=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),re=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};String.prototype.startsWith=String.prototype.startsWith||function(e){return 0===this.indexOf(e)},String.prototype.padStart=String.prototype.padStart||function(e,t){for(var n=this;n.length<e;)n=t+n;return n};var oe={cb:"0f8ff",tqw:"aebd7",q:"-ffff",qmrn:"7fffd4",zr:"0ffff",bg:"5f5dc",bsq:"e4c4",bck:"---",nch:"ebcd",b:"--ff",bvt:"8a2be2",brwn:"a52a2a",brw:"deb887",ctb:"5f9ea0",hrt:"7fff-",chcT:"d2691e",cr:"7f50",rnw:"6495ed",crns:"8dc",crms:"dc143c",cn:"-ffff",Db:"--8b",Dcn:"-8b8b",Dgnr:"b8860b",Dgr:"a9a9a9",Dgrn:"-64-",Dkhk:"bdb76b",Dmgn:"8b-8b",Dvgr:"556b2f",Drng:"8c-",Drch:"9932cc",Dr:"8b--",Dsmn:"e9967a",Dsgr:"8fbc8f",DsTb:"483d8b",DsTg:"2f4f4f",Dtrq:"-ced1",Dvt:"94-d3",ppnk:"1493",pskb:"-bfff",mgr:"696969",grb:"1e90ff",rbrc:"b22222",rwht:"af0",stg:"228b22",chs:"-ff",gnsb:"dcdcdc",st:"8f8ff",g:"d7-",gnr:"daa520",gr:"808080",grn:"-8-0",grnw:"adff2f",hnw:"0fff0",htpn:"69b4",nnr:"cd5c5c",ng:"4b-82",vr:"0",khk:"0e68c",vnr:"e6e6fa",nrb:"0f5",wngr:"7cfc-",mnch:"acd",Lb:"add8e6",Lcr:"08080",Lcn:"e0ffff",Lgnr:"afad2",Lgr:"d3d3d3",Lgrn:"90ee90",Lpnk:"b6c1",Lsmn:"a07a",Lsgr:"20b2aa",Lskb:"87cefa",LsTg:"778899",Lstb:"b0c4de",Lw:"e0",m:"-ff-",mgrn:"32cd32",nn:"af0e6",mgnt:"-ff",mrn:"8--0",mqm:"66cdaa",mmb:"--cd",mmrc:"ba55d3",mmpr:"9370db",msg:"3cb371",mmsT:"7b68ee","":"-fa9a",mtr:"48d1cc",mmvt:"c71585",mnLb:"191970",ntc:"5fffa",mstr:"e4e1",mccs:"e4b5",vjw:"dead",nv:"--80",c:"df5e6",v:"808-0",vrb:"6b8e23",rng:"a5-",rngr:"45-",rch:"da70d6",pgnr:"eee8aa",pgrn:"98fb98",ptrq:"afeeee",pvtr:"db7093",ppwh:"efd5",pchp:"dab9",pr:"cd853f",pnk:"c0cb",pm:"dda0dd",pwrb:"b0e0e6",prp:"8-080",cc:"663399",r:"--",sbr:"bc8f8f",rb:"4169e1",sbrw:"8b4513",smn:"a8072",nbr:"4a460",sgrn:"2e8b57",ssh:"5ee",snn:"a0522d",svr:"c0c0c0",skb:"87ceeb",sTb:"6a5acd",sTgr:"708090",snw:"afa",n:"-ff7f",stb:"4682b4",tn:"d2b48c",t:"-8080",thst:"d8bfd8",tmT:"6347",trqs:"40e0d0",vt:"ee82ee",whT:"5deb3",wht:"",hts:"5f5f5",w:"-",wgrn:"9acd32"};function ie(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=t>0?e.toFixed(t).replace(/0+$/,"").replace(/\.$/,""):e.toString();return n||"0"}var ae=function(){function e(t,n,r,o){te(this,e);var i=this;if(void 0===t);else if(Array.isArray(t))this.rgba=t;else if(void 0===r){var a=t&&""+t;a&&function(t){if(t.startsWith("hsl")){var n=t.match(/([\-\d\.e]+)/g).map(Number),r=re(n,4),o=r[0],a=r[1],l=r[2],u=r[3];void 0===u&&(u=1),o/=360,a/=100,l/=100,i.hsla=[o,a,l,u]}else if(t.startsWith("rgb")){var s=t.match(/([\-\d\.e]+)/g).map(Number),c=re(s,4),f=c[0],d=c[1],p=c[2],m=c[3];void 0===m&&(m=1),i.rgba=[f,d,p,m]}else t.startsWith("#")?i.rgba=e.hexToRgb(t):i.rgba=e.nameToRgb(t)||e.hexToRgb(t)}(a.toLowerCase())}else this.rgba=[t,n,r,void 0===o?1:o]}return ne(e,[{key:"printRGB",value:function(e){var t=(e?this.rgba:this.rgba.slice(0,3)).map((function(e,t){return ie(e,3===t?3:0)}));return e?"rgba("+t+")":"rgb("+t+")"}},{key:"printHSL",value:function(e){var t=[360,100,100,1],n=["","%","%",""],r=(e?this.hsla:this.hsla.slice(0,3)).map((function(e,r){return ie(e*t[r],3===r?3:1)+n[r]}));return e?"hsla("+r+")":"hsl("+r+")"}},{key:"printHex",value:function(e){var t=this.hex;return e?t:t.substring(0,7)}},{key:"rgba",get:function(){if(this._rgba)return this._rgba;if(!this._hsla)throw new Error("No color is set");return this._rgba=e.hslToRgb(this._hsla)},set:function(e){3===e.length&&(e[3]=1),this._rgba=e,this._hsla=null}},{key:"rgbString",get:function(){return this.printRGB()}},{key:"rgbaString",get:function(){return this.printRGB(!0)}},{key:"hsla",get:function(){if(this._hsla)return this._hsla;if(!this._rgba)throw new Error("No color is set");return this._hsla=e.rgbToHsl(this._rgba)},set:function(e){3===e.length&&(e[3]=1),this._hsla=e,this._rgba=null}},{key:"hslString",get:function(){return this.printHSL()}},{key:"hslaString",get:function(){return this.printHSL(!0)}},{key:"hex",get:function(){return"#"+this.rgba.map((function(e,t){return t<3?e.toString(16):Math.round(255*e).toString(16)})).map((function(e){return e.padStart(2,"0")})).join("")},set:function(t){this.rgba=e.hexToRgb(t)}}],[{key:"hexToRgb",value:function(e){var t=(e.startsWith("#")?e.slice(1):e).replace(/^(\w{3})$/,"$1F").replace(/^(\w)(\w)(\w)(\w)$/,"$1$1$2$2$3$3$4$4").replace(/^(\w{6})$/,"$1FF");if(!t.match(/^([0-9a-fA-F]{8})$/))throw new Error("Unknown hex color; "+e);var n=t.match(/^(\w\w)(\w\w)(\w\w)(\w\w)$/).slice(1).map((function(e){return parseInt(e,16)}));return n[3]=n[3]/255,n}},{key:"nameToRgb",value:function(t){var n=t.toLowerCase().replace("at","T").replace(/[aeiouyldf]/g,"").replace("ght","L").replace("rk","D").slice(-5,4),r=oe[n];return void 0===r?r:e.hexToRgb(r.replace(/\-/g,"00").padStart(6,"f"))}},{key:"rgbToHsl",value:function(e){var t=re(e,4),n=t[0],r=t[1],o=t[2],i=t[3];n/=255,r/=255,o/=255;var a=Math.max(n,r,o),l=Math.min(n,r,o),u=void 0,s=void 0,c=(a+l)/2;if(a===l)u=s=0;else{var f=a-l;switch(s=c>.5?f/(2-a-l):f/(a+l),a){case n:u=(r-o)/f+(r<o?6:0);break;case r:u=(o-n)/f+2;break;case o:u=(n-r)/f+4}u/=6}return[u,s,c,i]}},{key:"hslToRgb",value:function(e){var t=re(e,4),n=t[0],r=t[1],o=t[2],i=t[3],a=void 0,l=void 0,u=void 0;if(0===r)a=l=u=o;else{var s=function(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e},c=o<.5?o*(1+r):o+r-o*r,f=2*o-c;a=s(f,c,n+1/3),l=s(f,c,n),u=s(f,c,n-1/3)}var d=[255*a,255*l,255*u].map(Math.round);return d[3]=i,d}}]),e}(),le=function(){function e(){te(this,e),this._events=[]}return ne(e,[{key:"add",value:function(e,t,n){e.addEventListener(t,n,!1),this._events.push({target:e,type:t,handler:n})}},{key:"remove",value:function(t,n,r){this._events=this._events.filter((function(o){var i=!0;return t&&t!==o.target&&(i=!1),n&&n!==o.type&&(i=!1),r&&r!==o.handler&&(i=!1),i&&e._doRemove(o.target,o.type,o.handler),!i}))}},{key:"destroy",value:function(){this._events.forEach((function(t){return e._doRemove(t.target,t.type,t.handler)})),this._events=[]}}],[{key:"_doRemove",value:function(e,t,n){e.removeEventListener(t,n,!1)}}]),e}();function ue(e,t,n){var r=!1;function o(e,t,n){return Math.max(t,Math.min(e,n))}function i(e,i,a){if(a&&(r=!0),r){e.preventDefault();var l=t.getBoundingClientRect(),u=l.width,s=l.height,c=i.clientX,f=i.clientY,d=o(c-l.left,0,u),p=o(f-l.top,0,s);n(d/u,p/s)}}function a(e,t){1===(void 0===e.buttons?e.which:e.buttons)?i(e,e,t):r=!1}function l(e,t){1===e.touches.length?i(e,e.touches[0],t):r=!1}e.add(t,"mousedown",(function(e){a(e,!0)})),e.add(t,"touchstart",(function(e){l(e,!0)})),e.add(window,"mousemove",a),e.add(t,"touchmove",l),e.add(window,"mouseup",(function(e){r=!1})),e.add(t,"touchend",(function(e){r=!1})),e.add(t,"touchcancel",(function(e){r=!1}))}var se="keydown",ce="mousedown",fe="focusin";function de(e,t){return(t||document).querySelector(e)}function pe(e){e.preventDefault(),e.stopPropagation()}function me(e,t,n,r,o){e.add(t,se,(function(e){n.indexOf(e.key)>=0&&(o&&pe(e),r(e))}))}var he=function(){function e(t){te(this,e),this.settings={popup:"right",layout:"default",alpha:!0,editor:!0,editorFormat:"hex",cancelButton:!1,defaultColor:"#0cf"},this._events=new le,this.onChange=null,this.onDone=null,this.onOpen=null,this.onClose=null,this.setOptions(t)}return ne(e,[{key:"setOptions",value:function(e){var t=this;if(e){var n=this.settings;if(e instanceof HTMLElement)n.parent=e;else{n.parent&&e.parent&&n.parent!==e.parent&&(this._events.remove(n.parent),this._popupInited=!1),function(e,t,n){for(var r in e)n&&n.indexOf(r)>=0||(t[r]=e[r])}(e,n),e.onChange&&(this.onChange=e.onChange),e.onDone&&(this.onDone=e.onDone),e.onOpen&&(this.onOpen=e.onOpen),e.onClose&&(this.onClose=e.onClose);var r=e.color||e.colour;r&&this._setColor(r)}var o=n.parent;if(o&&n.popup&&!this._popupInited){var i=function(e){return t.openHandler(e)};this._events.add(o,"click",i),me(this._events,o,[" ","Spacebar","Enter"],i),this._popupInited=!0}else e.parent&&!n.popup&&this.show()}}},{key:"openHandler",value:function(e){if(this.show()){e&&e.preventDefault(),this.settings.parent.style.pointerEvents="none";var t=e&&e.type===se?this._domEdit:this.domElement;setTimeout((function(){return t.focus()}),100),this.onOpen&&this.onOpen(this.colour)}}},{key:"closeHandler",value:function(e){var t=e&&e.type,n=!1;if(e)if(t===ce||t===fe){var r=(this.__containedEvent||0)+100;e.timeStamp>r&&(n=!0)}else pe(e),n=!0;else n=!0;n&&this.hide()&&(this.settings.parent.style.pointerEvents="",t!==ce&&this.settings.parent.focus(),this.onClose&&this.onClose(this.colour))}},{key:"movePopup",value:function(e,t){this.closeHandler(),this.setOptions(e),t&&this.openHandler()}},{key:"setColor",value:function(e,t){this._setColor(e,{silent:t})}},{key:"_setColor",value:function(e,t){if("string"==typeof e&&(e=e.trim()),e){t=t||{};var n=void 0;try{n=new ae(e)}catch(e){if(t.failSilently)return;throw e}if(!this.settings.alpha){var r=n.hsla;r[3]=1,n.hsla=r}this.colour=this.color=n,this._setHSLA(null,null,null,null,t)}}},{key:"setColour",value:function(e,t){this.setColor(e,t)}},{key:"show",value:function(){if(!this.settings.parent)return!1;if(this.domElement){var e=this._toggleDOM(!0);return this._setPosition(),e}var t,n,r=this.settings.template||'<div class="picker_wrapper" tabindex="-1"><div class="picker_arrow"></div><div class="picker_hue picker_slider"><div class="picker_selector"></div></div><div class="picker_sl"><div class="picker_selector"></div></div><div class="picker_alpha picker_slider"><div class="picker_selector"></div></div><div class="picker_editor"><input aria-label="Type a color name or hex value"/></div><div class="picker_sample"></div><div class="picker_done"><button>Ok</button></div><div class="picker_cancel"><button>Cancel</button></div></div>',o=(t=r,(n=document.createElement("div")).innerHTML=t,n.firstElementChild);return this.domElement=o,this._domH=de(".picker_hue",o),this._domSL=de(".picker_sl",o),this._domA=de(".picker_alpha",o),this._domEdit=de(".picker_editor input",o),this._domSample=de(".picker_sample",o),this._domOkay=de(".picker_done button",o),this._domCancel=de(".picker_cancel button",o),o.classList.add("layout_"+this.settings.layout),this.settings.alpha||o.classList.add("no_alpha"),this.settings.editor||o.classList.add("no_editor"),this.settings.cancelButton||o.classList.add("no_cancel"),this._ifPopup((function(){return o.classList.add("popup")})),this._setPosition(),this.colour?this._updateUI():this._setColor(this.settings.defaultColor),this._bindEvents(),!0}},{key:"hide",value:function(){return this._toggleDOM(!1)}},{key:"destroy",value:function(){this._events.destroy(),this.domElement&&this.settings.parent.removeChild(this.domElement)}},{key:"_bindEvents",value:function(){var e=this,t=this,n=this.domElement,r=this._events;function o(e,t,n){r.add(e,t,n)}o(n,"click",(function(e){return e.preventDefault()})),ue(r,this._domH,(function(e,n){return t._setHSLA(e)})),ue(r,this._domSL,(function(e,n){return t._setHSLA(null,e,1-n)})),this.settings.alpha&&ue(r,this._domA,(function(e,n){return t._setHSLA(null,null,null,1-n)}));var i=this._domEdit;o(i,"input",(function(e){t._setColor(this.value,{fromEditor:!0,failSilently:!0})})),o(i,"focus",(function(e){var t=this;t.selectionStart===t.selectionEnd&&t.select()})),this._ifPopup((function(){var t=function(t){return e.closeHandler(t)};o(window,ce,t),o(window,fe,t),me(r,n,["Esc","Escape"],t);var i=function(t){e.__containedEvent=t.timeStamp};o(n,ce,i),o(n,fe,i),o(e._domCancel,"click",t)}));var a=function(t){e._ifPopup((function(){return e.closeHandler(t)})),e.onDone&&e.onDone(e.colour)};o(this._domOkay,"click",a),me(r,n,["Enter"],a)}},{key:"_setPosition",value:function(){var e=this.settings.parent,t=this.domElement;e!==t.parentNode&&e.appendChild(t),this._ifPopup((function(n){"static"===getComputedStyle(e).position&&(e.style.position="relative");var r=!0===n?"popup_right":"popup_"+n;["popup_top","popup_bottom","popup_left","popup_right"].forEach((function(e){e===r?t.classList.add(e):t.classList.remove(e)})),t.classList.add(r)}))}},{key:"_setHSLA",value:function(e,t,n,r,o){o=o||{};var i=this.colour,a=i.hsla;[e,t,n,r].forEach((function(e,t){(e||0===e)&&(a[t]=e)})),i.hsla=a,this._updateUI(o),this.onChange&&!o.silent&&this.onChange(i)}},{key:"_updateUI",value:function(e){if(this.domElement){e=e||{};var t=this.colour,n=t.hsla,r="hsl("+360*n[0]+", 100%, 50%)",o=t.hslString,i=t.hslaString,a=this._domH,l=this._domSL,u=this._domA,s=de(".picker_selector",a),c=de(".picker_selector",l),f=de(".picker_selector",u);b(0,s,n[0]),this._domSL.style.backgroundColor=this._domH.style.color=r,b(0,c,n[1]),y(0,c,1-n[2]),l.style.color=o,y(0,f,1-n[3]);var d=o,p=d.replace("hsl","hsla").replace(")",", 0)"),m="linear-gradient("+[d,p]+")";if(this._domA.style.background=m+", linear-gradient(45deg, lightgrey 25%, transparent 25%, transparent 75%, lightgrey 75%) 0 0 / 2em 2em,\n linear-gradient(45deg, lightgrey 25%, white 25%, white 75%, lightgrey 75%) 1em 1em / 2em 2em",!e.fromEditor){var h=this.settings.editorFormat,v=this.settings.alpha,g=void 0;switch(h){case"rgb":g=t.printRGB(v);break;case"hsl":g=t.printHSL(v);break;default:g=t.printHex(v)}this._domEdit.value=g}this._domSample.style.color=i}function b(e,t,n){t.style.left=100*n+"%"}function y(e,t,n){t.style.top=100*n+"%"}}},{key:"_ifPopup",value:function(e,t){this.settings.parent&&this.settings.popup?e&&e(this.settings.popup):t&&t()}},{key:"_toggleDOM",value:function(e){var t=this.domElement;if(!t)return!1;var n=e?"":"none",r=t.style.display!==n;return r&&(t.style.display=n),r}}]),e}(),ve=document.createElement("style");function ge(e){return(ge="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)}function be(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 ye(e,t){return(ye=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _e(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=Ee(e);if(t){var o=Ee(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return we(this,n)}}function we(e,t){if(t&&("object"===ge(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Ee(e){return(Ee=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}ve.textContent='.picker_wrapper.no_alpha .picker_alpha{display:none}.picker_wrapper.no_editor .picker_editor{position:absolute;z-index:-1;opacity:0}.picker_wrapper.no_cancel .picker_cancel{display:none}.layout_default.picker_wrapper{display:flex;flex-flow:row wrap;justify-content:space-between;align-items:stretch;font-size:10px;width:25em;padding:.5em}.layout_default.picker_wrapper input,.layout_default.picker_wrapper button{font-size:1rem}.layout_default.picker_wrapper>*{margin:.5em}.layout_default.picker_wrapper::before{content:"";display:block;width:100%;height:0;order:1}.layout_default .picker_slider,.layout_default .picker_selector{padding:1em}.layout_default .picker_hue{width:100%}.layout_default .picker_sl{flex:1 1 auto}.layout_default .picker_sl::before{content:"";display:block;padding-bottom:100%}.layout_default .picker_editor{order:1;width:6.5rem}.layout_default .picker_editor input{width:100%;height:100%}.layout_default .picker_sample{order:1;flex:1 1 auto}.layout_default .picker_done,.layout_default .picker_cancel{order:1}.picker_wrapper{box-sizing:border-box;background:#f2f2f2;box-shadow:0 0 0 1px silver;cursor:default;font-family:sans-serif;color:#444;pointer-events:auto}.picker_wrapper:focus{outline:none}.picker_wrapper button,.picker_wrapper input{box-sizing:border-box;border:none;box-shadow:0 0 0 1px silver;outline:none}.picker_wrapper button:focus,.picker_wrapper button:active,.picker_wrapper input:focus,.picker_wrapper input:active{box-shadow:0 0 2px 1px #1e90ff}.picker_wrapper button{padding:.4em .6em;cursor:pointer;background-color:#f5f5f5;background-image:linear-gradient(0deg, gainsboro, transparent)}.picker_wrapper button:active{background-image:linear-gradient(0deg, transparent, gainsboro)}.picker_wrapper button:hover{background-color:#fff}.picker_selector{position:absolute;z-index:1;display:block;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);border:2px solid #fff;border-radius:100%;box-shadow:0 0 3px 1px #67b9ff;background:currentColor;cursor:pointer}.picker_slider .picker_selector{border-radius:2px}.picker_hue{position:relative;background-image:linear-gradient(90deg, red, yellow, lime, cyan, blue, magenta, red);box-shadow:0 0 0 1px silver}.picker_sl{position:relative;box-shadow:0 0 0 1px silver;background-image:linear-gradient(180deg, white, rgba(255, 255, 255, 0) 50%),linear-gradient(0deg, black, rgba(0, 0, 0, 0) 50%),linear-gradient(90deg, #808080, rgba(128, 128, 128, 0))}.picker_alpha,.picker_sample{position:relative;background:linear-gradient(45deg, lightgrey 25%, transparent 25%, transparent 75%, lightgrey 75%) 0 0/2em 2em,linear-gradient(45deg, lightgrey 25%, white 25%, white 75%, lightgrey 75%) 1em 1em/2em 2em;box-shadow:0 0 0 1px silver}.picker_alpha .picker_selector,.picker_sample .picker_selector{background:none}.picker_editor input{font-family:monospace;padding:.2em .4em}.picker_sample::before{content:"";position:absolute;display:block;width:100%;height:100%;background:currentColor}.picker_arrow{position:absolute;z-index:-1}.picker_wrapper.popup{position:absolute;z-index:2;margin:1.5em}.picker_wrapper.popup,.picker_wrapper.popup .picker_arrow::before,.picker_wrapper.popup .picker_arrow::after{background:#f2f2f2;box-shadow:0 0 10px 1px rgba(0,0,0,.4)}.picker_wrapper.popup .picker_arrow{width:3em;height:3em;margin:0}.picker_wrapper.popup .picker_arrow::before,.picker_wrapper.popup .picker_arrow::after{content:"";display:block;position:absolute;top:0;left:0;z-index:-99}.picker_wrapper.popup .picker_arrow::before{width:100%;height:100%;-webkit-transform:skew(45deg);transform:skew(45deg);-webkit-transform-origin:0 100%;transform-origin:0 100%}.picker_wrapper.popup .picker_arrow::after{width:150%;height:150%;box-shadow:none}.popup.popup_top{bottom:100%;left:0}.popup.popup_top .picker_arrow{bottom:0;left:0;-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.popup.popup_bottom{top:100%;left:0}.popup.popup_bottom .picker_arrow{top:0;left:0;-webkit-transform:rotate(90deg) scale(1, -1);transform:rotate(90deg) scale(1, -1)}.popup.popup_left{top:0;right:100%}.popup.popup_left .picker_arrow{top:0;right:0;-webkit-transform:scale(-1, 1);transform:scale(-1, 1)}.popup.popup_right{top:0;left:100%}.popup.popup_right .picker_arrow{top:0;left:0}',document.documentElement.firstElementChild.appendChild(ve),he.StyleElement=ve;var Se=function(e){!function(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}}),t&&ye(e,t)}(a,e);var t,n,r,i=_e(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).state.color_value=null,t}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.field_data,n=e.form_values,r=e.form_states,i=e.state_name,a=e.show_if_regexes,u=this.state,s=u.settings,c=u.color_value;if(!r[i]||!this.isFieldVisible(a,n))return null;var f=c||this.getFieldValue();return o.createElement(o.Fragment,null,o.createElement("li",{className:"fcfOptions__row",ref:r[i].ref_wrapper},o.createElement(l,{unique_id:r[i].unique_id,field_data:t,settings:s}),o.createElement(v,{validation_error:r[i].validation_error}),o.createElement("div",{className:"fcfOptions__color"},o.createElement("div",{className:"fcfOptions__colorInner"},f?o.createElement("div",{className:"fcfOptions__colorPreview",style:{backgroundColor:f}}):null,o.createElement("button",{type:"button",className:"fcfOptions__colorButton fcfButton fcfButton--small fcfButton--border fcfButton--blue",onClick:this.openPicker.bind(this)},s.i18n.button_select_color)))))}},{key:"openPicker",value:function(){var e=this,t=this.props,n=t.field_data,r=t.form_states,o=t.state_name,i=this.state.events;this.picker||(this.picker=new he({parent:r[o].ref_wrapper.current,popup:"top",alpha:!1,color:this.getFieldValue(),onChange:function(t){e.setState({color_value:t.hex})},onClose:function(e){i.onChangeValue(n.name,e.hex,n.refresh_trigger)}})),this.picker.show()}},{key:"getValue",value:function(){var e=this.props;return e.form_states[e.state_name].ref_input.current.value}}])&&be(t.prototype,n),r&&be(t,r),a}(F);function Oe(e){return(Oe="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)}function xe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ke(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 Ce(e,t){return(Ce=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}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=Re(e);if(t){var o=Re(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ie(this,n)}}function Ie(e,t){if(t&&("object"===Oe(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Re(e){return(Re=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var De=function(e){!function(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}}),t&&Ce(e,t)}(l,e);var t,n,i,a=Pe(l);function l(){return xe(this,l),a.apply(this,arguments)}return t=l,(n=[{key:"render",value:function(){var e=this,t=this.props,n=t.field_data,i=t.form_values,a=t.form_states,l=t.state_name,u=t.state_field_name,s=t.section_fields,c=t.show_if_regexes,f=this.state,d=f.api_loader,p=f.events,m=f.settings,h=f.form_settings,v=f.validation_types;return a[l]&&this.isFieldVisible(c,i)?o.createElement(o.Fragment,null,o.createElement("li",{className:"fcfOptions__row fcfOptions__row--sub"},o.createElement("ul",{className:"fcfOptions__columns"},n.items.map((function(t,n){var l=r[t.type],c=t.show_if_regexes;return e.isFieldVisible(c,i)?o.createElement("li",{className:"fcfOptions__column",key:n},o.createElement("ul",{className:"fcfOptions__rows"},o.createElement(l,{field_data:t,form_values:i,form_states:a,state_name:t.name,state_field_name:u,section_fields:s,api_loader:d,onChangeValue:p.onChangeValue,onChangeState:p.onChangeState,onRefreshForm:p.onRefreshForm,onValidationInit:p.onValidationInit,validation_types:v,settings:m,form_settings:h}))):null}))))):null}}])&&ke(t.prototype,n),i&&ke(t,i),l}(F);function Ne(e){return(Ne="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)}function Te(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Le(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 Ae(e,t){return(Ae=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Me(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=Fe(e);if(t){var o=Fe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Be(this,n)}}function Be(e,t){if(t&&("object"===Ne(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Fe(e){return(Fe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var je=function(e){!function(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}}),t&&Ae(e,t)}(a,e);var t,n,r,i=Me(a);function a(){return Te(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.field_data,n=e.form_values,r=e.show_if_regexes;return this.isFieldVisible(r,n)?o.createElement(o.Fragment,null,o.createElement("input",{type:"hidden",name:"_fcf_".concat(t.name),value:n[t.name]||""})):null}}])&&Le(t.prototype,n),r&&Le(t,r),a}(F);function Ve(e){return(Ve="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)}function Ue(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 ze(e,t){return(ze=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function He(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=Ge(e);if(t){var o=Ge(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return We(this,n)}}function We(e,t){if(t&&("object"===Ve(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Ge(e){return(Ge=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var qe=function(e){!function(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}}),t&&ze(e,t)}(a,e);var t,n,r,i=He(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).state.media_url=null,t.getImageUrl(t.getFieldValue()),t}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.field_data,n=e.form_values,r=e.form_states,i=e.state_name,a=e.show_if_regexes,u=this.state,s=u.settings,c=u.media_url;return r[i]&&this.isFieldVisible(a,n)?o.createElement(o.Fragment,null,o.createElement("li",{className:"fcfOptions__row",ref:r[i].ref_wrapper},o.createElement(l,{unique_id:r[i].unique_id,field_data:t,settings:s}),o.createElement(v,{validation_error:r[i].validation_error}),o.createElement("div",{className:"fcfOptions__media"},o.createElement("div",{className:"fcfOptions__mediaInner"},c?o.createElement("img",{src:c,className:"fcfOptions__mediaImage",alt:""}):null,o.createElement("button",{type:"button",className:"fcfOptions__mediaButton fcfButton fcfButton--small fcfButton--border fcfButton--blue",onClick:this.onSelectImage.bind(this)},s.i18n.button_upload_image))))):null}},{key:"getImageUrl",value:function(e){var t=this;e&&wp.media.attachment(e).fetch().then((function(){var n=wp.media.attachment(e).get("sizes"),r=wp.media.attachment(e).get("url");t.setImageUrl(e,r,n)}))}},{key:"setImageUrl",value:function(e,t,n){var r=this.props.field_data,o=this.state.events;this.setState({media_url:n&&n.thumbnail?n.thumbnail.url:t}),o.onChangeValue(r.name,e,r.refresh_trigger)}},{key:"onSelectImage",value:function(){var e=this,t=wp.media({multiple:!1,library:{type:["image"]}}).open().on("select",(function(){var n=t.state().get("selection").first().toJSON();e.setImageUrl(n.id,n.url,n.sizes)}))}}])&&Ue(t.prototype,n),r&&Ue(t,r),a}(F);function $e(e){return($e="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)}function Ye(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qe(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 Ke(e,t){return(Ke=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Xe(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=Ze(e);if(t){var o=Ze(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Je(this,n)}}function Je(e,t){if(t&&("object"===$e(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Ze(e){return(Ze=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var et=function(e){!function(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}}),t&&Ke(e,t)}(a,e);var t,n,r,i=Xe(a);function a(){return Ye(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.field_data,n=e.form_values,r=e.show_if_regexes;return this.isFieldVisible(r,n)?o.createElement(o.Fragment,null,o.createElement("li",{className:"fcfOptions__row"},o.createElement("div",{className:"fcfOptions__info fcfOptions__info--green"},o.createElement("div",{className:"fcfOptions__infoInner",dangerouslySetInnerHTML:{__html:t.label}})))):null}}])&&Qe(t.prototype,n),r&&Qe(t,r),a}(F);function tt(e){return(tt="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)}function nt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rt(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 ot(e,t){return(ot=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function it(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=lt(e);if(t){var o=lt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return at(this,n)}}function at(e,t){if(t&&("object"===tt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function lt(e){return(lt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ut=function(e){!function(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}}),t&&ot(e,t)}(a,e);var t,n,r,i=it(a);function a(){return nt(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.field_data,n=e.form_values,r=e.show_if_regexes;return this.isFieldVisible(r,n)?o.createElement(o.Fragment,null,o.createElement("li",{className:"fcfOptions__row"},o.createElement("div",{className:"fcfOptions__info"},o.createElement("div",{className:"fcfOptions__infoInner",dangerouslySetInnerHTML:{__html:t.label}})))):null}}])&&rt(t.prototype,n),r&&rt(t,r),a}(F);function st(e){return(st="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)}function ct(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ft(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 dt(e,t){return(dt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function pt(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=ht(e);if(t){var o=ht(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return mt(this,n)}}function mt(e,t){if(t&&("object"===st(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function ht(e){return(ht=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var vt=function(e){!function(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}}),t&&dt(e,t)}(a,e);var t,n,r,i=pt(a);function a(){return ct(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.field_data,n=e.form_values,r=e.show_if_regexes;return this.isFieldVisible(r,n)?o.createElement(o.Fragment,null,o.createElement("li",{className:"fcfOptions__row"},o.createElement("div",{className:"fcfOptions__info fcfOptions__info--yellow"},o.createElement("div",{className:"fcfOptions__infoInner",dangerouslySetInnerHTML:{__html:t.label}})))):null}}])&&ft(t.prototype,n),r&&ft(t,r),a}(F);function gt(e){return(gt="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)}function bt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yt(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 _t(e,t){return(_t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function wt(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=St(e);if(t){var o=St(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Et(this,n)}}function Et(e,t){if(t&&("object"===gt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function St(e){return(St=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ot=function(e){!function(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}}),t&&_t(e,t)}(a,e);var t,n,r,i=wt(a);function a(){return bt(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.field_data,n=e.form_values,r=e.form_states,i=e.state_name,a=e.show_if_regexes,u=this.state.settings;return r[i]&&this.isFieldVisible(a,n)?o.createElement(o.Fragment,null,o.createElement("li",{className:"fcfOptions__row",ref:r[i].ref_wrapper},o.createElement(l,{unique_id:r[i].unique_id,field_data:t,settings:u}),o.createElement(v,{validation_error:r[i].validation_error}),o.createElement("input",{type:"number",id:r[i].unique_id,ref:r[i].ref_input,name:"_fcf_".concat(t.name),min:t.html_atts.min||"",max:t.html_atts.max||"",step:t.html_atts.step||"1",className:"fcfOptions__input",value:n[t.name]||"",onChange:t.readonly?null:this.onChangeValue.bind(this),disabled:t.readonly}))):null}},{key:"getValue",value:function(e){var t=this.props,n=t.form_states,r=t.state_name;return""===e.currentTarget.value?(e.currentTarget.value="",null):n[r].ref_input.current.value}}])&&yt(t.prototype,n),r&&yt(t,r),a}(F);function xt(e){return(xt="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)}function kt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ct(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 Pt(e,t){return(Pt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function It(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=Dt(e);if(t){var o=Dt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Rt(this,n)}}function Rt(e,t){if(t&&("object"===xt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Dt(e){return(Dt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Nt=function(e){!function(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}}),t&&Pt(e,t)}(a,e);var t,n,r,i=It(a);function a(){return kt(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this,t=this.props,n=t.field_data,r=t.form_values,i=t.form_states,a=t.state_name,u=t.show_if_regexes,s=this.state.settings;return i[a]&&this.isFieldVisible(u,r)?o.createElement(o.Fragment,null,o.createElement("li",{className:"fcfOptions__row",ref:i[a].ref_wrapper},o.createElement(l,{unique_id:i[a].unique_id,field_data:n,is_group_label:!0,settings:s}),o.createElement(v,{validation_error:i[a].validation_error})),Object.keys(n.items).map((function(t,l){return o.createElement("li",{className:"fcfOptions__row",key:l},o.createElement("input",{type:"radio",className:"fcfOptions__radio",id:"".concat(i[a].unique_id,"-").concat(l),ref:i[a].ref_input,name:"_fcf_".concat(n.name),value:t,defaultChecked:r[n.name]===t,onChange:e.onChangeValue.bind(e),disabled:n.readonly?null:n.readonly}),o.createElement("label",{htmlFor:"".concat(i[a].unique_id,"-").concat(l),className:"fcfOptions__label"},n.items[t]))}))):null}},{key:"getValue",value:function(e){return e.currentTarget.value}}])&&Ct(t.prototype,n),r&&Ct(t,r),a}(F);function Tt(e){return(Tt="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)}function Lt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function At(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 Mt(e,t){return(Mt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Bt(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=jt(e);if(t){var o=jt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ft(this,n)}}function Ft(e,t){if(t&&("object"===Tt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function jt(e){return(jt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Vt=function(e){!function(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}}),t&&Mt(e,t)}(a,e);var t,n,r,i=Bt(a);function a(){return Lt(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this,t=this.props,n=t.field_data,r=t.form_values,i=t.form_states,a=t.state_name,u=t.show_if_regexes,s=this.state.settings;return i[a]&&this.isFieldVisible(u,r)?o.createElement(o.Fragment,null,o.createElement("li",{className:"fcfOptions__row",ref:i[a].ref_wrapper},o.createElement(l,{unique_id:i[a].unique_id,field_data:n,settings:s}),o.createElement(v,{validation_error:i[a].validation_error}),o.createElement("div",{className:"fcfOptions__boxes"},n.field_groups.map((function(t,l){return o.createElement(o.Fragment,{key:l},o.createElement("div",{className:"fcfOptions__boxesTitle"},t.label),o.createElement("ul",{className:"fcfOptions__boxesItems"},n.items.map((function(l,u){return l.field_group===t.name?o.createElement("li",{className:"fcfOptions__boxesItem",key:u},o.createElement("input",{type:"radio",className:"fcfOptions__boxesItemInput",id:"".concat(i[a].unique_id,"-").concat(u),ref:i[a].ref_input,name:"_fcf_".concat(n.name),value:l.type,checked:r[n.name]===l.type,onChange:n.readonly?null:e.onChangeValue.bind(e),disabled:n.readonly}),o.createElement("label",{className:"fcfOptions__boxesItemLabel ".concat(l.icon),htmlFor:"".concat(i[a].unique_id,"-").concat(u)},l.label)):null}))))}))))):null}},{key:"getValue",value:function(e){return e.currentTarget.value}}])&&At(t.prototype,n),r&&At(t,r),a}(F);function Ut(e){return(Ut="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)}function zt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ht(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 Wt(e,t){return(Wt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Gt(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=$t(e);if(t){var o=$t(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return qt(this,n)}}function qt(e,t){if(t&&("object"===Ut(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function $t(e){return($t=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Yt=function(e){!function(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}}),t&&Wt(e,t)}(u,e);var t,n,i,a=Gt(u);function u(){return zt(this,u),a.apply(this,arguments)}return t=u,(n=[{key:"render",value:function(){var e=this,t=this.props,n=t.field_data,i=t.form_values,a=t.form_states,u=t.state_name,s=t.state_field_name,c=t.section_fields,f=t.show_if_regexes,d=this.state,p=d.events,m=d.settings,h=d.form_settings,v=d.validation_types,g=this.getRows();return a[u]&&this.isFieldVisible(f,i)?o.createElement(o.Fragment,null,n.label?o.createElement("li",{className:"fcfOptions__row"},o.createElement(l,{field_data:n,settings:m})):null,o.createElement("li",{className:"fcfOptions__row fcfOptions__row--lines fcfOptions__row--sub"},g.map((function(t){var l=!n.option_name_rows&&g.length>1;return o.createElement(o.Fragment,{key:t.key},o.createElement("ul",{className:"fcfOptions__columns"},o.createElement("li",{className:"fcfOptions__column"},o.createElement("div",{className:"fcfOptions__label fcfOptions__label--line"},o.createElement("div",{className:"fcfOptions__labelInner"},t.label)))),o.createElement("ul",{className:"fcfOptions__columns ".concat(l?"fcfOptions__columns--button":"")},n.items.map((function(l,u){var f=r[l.type],d=l.show_if_regexes,g=i[n.name][t.key]?i[n.name][t.key]:JSON.parse(JSON.stringify(l.default_value));return e.isFieldVisible(d,g)?o.createElement("li",{className:"fcfOptions__column",key:u},o.createElement("ul",{className:"fcfOptions__rows"},o.createElement(f,{field_data:l,form_values:g,form_states:a,state_name:"".concat(n.name,"_").concat(t.key,"_").concat(l.name),state_field_name:s,section_fields:c,onChangeValue:e.onChangeValue.bind(e,t.key),onChangeState:p.onChangeState,onRefreshForm:p.onRefreshForm,onValidationInit:p.onValidationInit,validation_types:v,settings:m,form_settings:h}))):null})),l?o.createElement("li",{className:"fcfOptions__column fcfOptions__column--small"},o.createElement("button",{type:"button",className:"fcfOptions__columnButton fcfOptions__columnButton--remove",onClick:e.removeRow.bind(e,t.key)})):null))})),n.option_name_rows?null:o.createElement("ul",{className:"fcfOptions__columns"},o.createElement("li",{className:"fcfOptions__column fcfOptions__column--center"},o.createElement("button",{type:"button",className:"fcfButton fcfButton--small fcfButton--border fcfButton--blue",onClick:this.addNewRow.bind(this)},m.i18n.button_add_row))))):null}},{key:"onChangeValue",value:function(e,t,n){var r=this.props,o=r.field_data,i=r.form_values,a=this.state.events,l=JSON.parse(JSON.stringify(i[o.name]));void 0===l[e]&&(l[e]={}),l[e][t]=n,a.onChangeValue(o.name,l,o.refresh_trigger)}},{key:"onChangeOptionState",value:function(e,t,n,r){var o=this.props.state_name;this.state.events.onChangeState(o,n,r)}},{key:"getRows",value:function(){var e=this.props,t=e.field_data,n=e.form_values,r=t.option_name_rows;return r&&void 0!==n[r]?this.getRowsByFieldValue():this.getRowsByAddedValues()}},{key:"getRowsByAddedValues",value:function(){for(var e=this.props,t=e.field_data,n=e.form_values,r=t.label_row,o=Object.keys(n[t.name]||{}),i=[],a=o.length,l=0;l<a;l++)i.push({key:o[l],label:r.replace("%s",l+1)});return i}},{key:"getRowsByFieldValue",value:function(){var e=this.props,t=e.field_data,n=e.form_values,r=t.option_name_rows,o=t.label_row,i=[];if(Array.isArray(n[r]))for(var a=n[r].length,l=0;l<a;l++)n[r][l]&&i.push({key:n[r][l].key,label:o.replace("%s",n[r][l].value)});else i.push({key:Object.keys(t.default_value)[0],label:o.replace("%s",n[r])});return i}},{key:"addNewRow",value:function(){var e=this.props.field_data,t=this.state.events,n=Object.values(this.props.form_values[e.name]),r=Object.keys(e.default_value);n.push(JSON.parse(JSON.stringify(e.default_value[r[0]]))),t.onChangeValue(e.name,n)}},{key:"removeRow",value:function(e){var t=this.props.field_data,n=this.state.events,r=JSON.parse(JSON.stringify(this.props.form_values[t.name]));delete r[e],r=r.filter((function(e){return null!==e})),n.onChangeValue(t.name,r,t.refresh_trigger)}}])&&Ht(t.prototype,n),i&&Ht(t,i),u}(F);function Qt(){return(Qt=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 Kt=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){0}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),Xt=Math.abs,Jt=String.fromCharCode;function Zt(e){return e.trim()}function en(e,t,n){return e.replace(t,n)}function tn(e,t){return e.indexOf(t)}function nn(e,t){return 0|e.charCodeAt(t)}function rn(e,t,n){return e.slice(t,n)}function on(e){return e.length}function an(e){return e.length}function ln(e,t){return t.push(e),e}var un=1,sn=1,cn=0,fn=0,dn=0,pn="";function mn(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:un,column:sn,length:a,return:""}}function hn(e,t,n){return mn(e,t.root,t.parent,n,t.props,t.children,0)}function vn(){return dn=fn>0?nn(pn,--fn):0,sn--,10===dn&&(sn=1,un--),dn}function gn(){return dn=fn<cn?nn(pn,fn++):0,sn++,10===dn&&(sn=1,un++),dn}function bn(){return nn(pn,fn)}function yn(){return fn}function _n(e,t){return rn(pn,e,t)}function wn(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function En(e){return un=sn=1,cn=on(pn=e),fn=0,[]}function Sn(e){return pn="",e}function On(e){return Zt(_n(fn-1,Cn(91===e?e+2:40===e?e+1:e)))}function xn(e){for(;(dn=bn())&&dn<33;)gn();return wn(e)>2||wn(dn)>3?"":" "}function kn(e,t){for(;--t&&gn()&&!(dn<48||dn>102||dn>57&&dn<65||dn>70&&dn<97););return _n(e,yn()+(t<6&&32==bn()&&32==gn()))}function Cn(e){for(;gn();)switch(dn){case e:return fn;case 34:case 39:return Cn(34===e||39===e?e:dn);case 40:41===e&&Cn(e);break;case 92:gn()}return fn}function Pn(e,t){for(;gn()&&e+dn!==57&&(e+dn!==84||47!==bn()););return"/*"+_n(t,fn-1)+"*"+Jt(47===e?e:gn())}function In(e){for(;!wn(bn());)gn();return _n(e,fn)}var Rn="-ms-",Dn="-moz-",Nn="-webkit-",Tn="comm",Ln="rule",An="decl";function Mn(e,t){for(var n="",r=an(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Bn(e,t,n,r){switch(e.type){case"@import":case An:return e.return=e.return||e.value;case Tn:return"";case Ln:e.value=e.props.join(",")}return on(n=Mn(e.children,r))?e.return=e.value+"{"+n+"}":""}function Fn(e,t){switch(function(e,t){return(((t<<2^nn(e,0))<<2^nn(e,1))<<2^nn(e,2))<<2^nn(e,3)}(e,t)){case 5103:return Nn+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Nn+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Nn+e+Dn+e+Rn+e+e;case 6828:case 4268:return Nn+e+Rn+e+e;case 6165:return Nn+e+Rn+"flex-"+e+e;case 5187:return Nn+e+en(e,/(\w+).+(:[^]+)/,"-webkit-box-$1$2-ms-flex-$1$2")+e;case 5443:return Nn+e+Rn+"flex-item-"+en(e,/flex-|-self/,"")+e;case 4675:return Nn+e+Rn+"flex-line-pack"+en(e,/align-content|flex-|-self/,"")+e;case 5548:return Nn+e+Rn+en(e,"shrink","negative")+e;case 5292:return Nn+e+Rn+en(e,"basis","preferred-size")+e;case 6060:return Nn+"box-"+en(e,"-grow","")+Nn+e+Rn+en(e,"grow","positive")+e;case 4554:return Nn+en(e,/([^-])(transform)/g,"$1-webkit-$2")+e;case 6187:return en(en(en(e,/(zoom-|grab)/,Nn+"$1"),/(image-set)/,Nn+"$1"),e,"")+e;case 5495:case 3959:return en(e,/(image-set\([^]*)/,Nn+"$1$`$1");case 4968:return en(en(e,/(.+:)(flex-)?(.*)/,"-webkit-box-pack:$3-ms-flex-pack:$3"),/s.+-b[^;]+/,"justify")+Nn+e+e;case 4095:case 3583:case 4068:case 2532:return en(e,/(.+)-inline(.+)/,Nn+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(on(e)-1-t>6)switch(nn(e,t+1)){case 109:if(45!==nn(e,t+4))break;case 102:return en(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1"+Dn+(108==nn(e,t+3)?"$3":"$2-$3"))+e;case 115:return~tn(e,"stretch")?Fn(en(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==nn(e,t+1))break;case 6444:switch(nn(e,on(e)-3-(~tn(e,"!important")&&10))){case 107:return en(e,":",":"+Nn)+e;case 101:return en(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Nn+(45===nn(e,14)?"inline-":"")+"box$3$1"+Nn+"$2$3$1"+Rn+"$2box$3")+e}break;case 5936:switch(nn(e,t+11)){case 114:return Nn+e+Rn+en(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Nn+e+Rn+en(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Nn+e+Rn+en(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Nn+e+Rn+e+e}return e}function jn(e){return Sn(Vn("",null,null,null,[""],e=En(e),0,[0],e))}function Vn(e,t,n,r,o,i,a,l,u){for(var s=0,c=0,f=a,d=0,p=0,m=0,h=1,v=1,g=1,b=0,y="",_=o,w=i,E=r,S=y;v;)switch(m=b,b=gn()){case 34:case 39:case 91:case 40:S+=On(b);break;case 9:case 10:case 13:case 32:S+=xn(m);break;case 92:S+=kn(yn()-1,7);continue;case 47:switch(bn()){case 42:case 47:ln(zn(Pn(gn(),yn()),t,n),u);break;default:S+="/"}break;case 123*h:l[s++]=on(S)*g;case 125*h:case 59:case 0:switch(b){case 0:case 125:v=0;case 59+c:p>0&&on(S)-f&&ln(p>32?Hn(S+";",r,n,f-1):Hn(en(S," ","")+";",r,n,f-2),u);break;case 59:S+=";";default:if(ln(E=Un(S,t,n,s,c,o,l,y,_=[],w=[],f),i),123===b)if(0===c)Vn(S,t,E,E,_,i,f,l,w);else switch(d){case 100:case 109:case 115:Vn(e,E,E,r&&ln(Un(e,E,E,0,0,o,l,y,o,_=[],f),w),o,w,f,l,r?_:w);break;default:Vn(S,E,E,E,[""],w,f,l,w)}}s=c=p=0,h=g=1,y=S="",f=a;break;case 58:f=1+on(S),p=m;default:if(h<1)if(123==b)--h;else if(125==b&&0==h++&&125==vn())continue;switch(S+=Jt(b),b*h){case 38:g=c>0?1:(S+="\f",-1);break;case 44:l[s++]=(on(S)-1)*g,g=1;break;case 64:45===bn()&&(S+=On(gn())),d=bn(),c=on(y=S+=In(yn())),b++;break;case 45:45===m&&2==on(S)&&(h=0)}}return i}function Un(e,t,n,r,o,i,a,l,u,s,c){for(var f=o-1,d=0===o?i:[""],p=an(d),m=0,h=0,v=0;m<r;++m)for(var g=0,b=rn(e,f+1,f=Xt(h=a[m])),y=e;g<p;++g)(y=Zt(h>0?d[g]+" "+b:en(b,/&\f/g,d[g])))&&(u[v++]=y);return mn(e,t,n,0===o?Ln:l,u,s,c)}function zn(e,t,n){return mn(e,t,n,Tn,Jt(dn),rn(e,2,-2),0)}function Hn(e,t,n,r){return mn(e,t,n,An,rn(e,0,r),rn(e,r+1,-1),r)}var Wn=function(e,t){return Sn(function(e,t){var n=-1,r=44;do{switch(wn(r)){case 0:38===r&&12===bn()&&(t[n]=1),e[n]+=In(fn-1);break;case 2:e[n]+=On(r);break;case 4:if(44===r){e[++n]=58===bn()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Jt(r)}}while(r=gn());return e}(En(e),t))},Gn=new WeakMap,qn=function(e){if("rule"===e.type&&e.parent&&e.length){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Gn.get(n))&&!r){Gn.set(e,!0);for(var o=[],i=Wn(t,o),a=n.props,l=0,u=0;l<i.length;l++)for(var s=0;s<a.length;s++,u++)e.props[u]=o[l]?i[l].replace(/&\f/g,a[s]):a[s]+" "+i[l]}}},$n=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},Yn=[function(e,t,n,r){if(!e.return)switch(e.type){case An:e.return=Fn(e.value,e.length);break;case"@keyframes":return Mn([hn(en(e.value,"@","@"+Nn),e,"")],r);case Ln:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Mn([hn(en(t,/:(read-\w+)/,":-moz-$1"),e,"")],r);case"::placeholder":return Mn([hn(en(t,/:(plac\w+)/,":-webkit-input-$1"),e,""),hn(en(t,/:(plac\w+)/,":-moz-$1"),e,""),hn(en(t,/:(plac\w+)/,Rn+"input-$1"),e,"")],r)}return""}))}}],Qn=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r=e.stylisPlugins||Yn;var o,i,a={},l=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;l.push(e)}));var u,s,c,f,d=[Bn,(f=function(e){u.insert(e)},function(e){e.root||(e=e.return)&&f(e)})],p=(s=[qn,$n].concat(r,d),c=an(s),function(e,t,n,r){for(var o="",i=0;i<c;i++)o+=s[i](e,t,n,r)||"";return o});i=function(e,t,n,r){u=n,Mn(jn(e?e+"{"+t.styles+"}":t.styles),p),r&&(m.inserted[t.name]=!0)};var m={key:t,sheet:new Kt({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend}),nonce:e.nonce,inserted:a,registered:{},insert:i};return m.sheet.hydrate(l),m};function Kn(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var Xn=function(e,t,n){var r=e.key+"-"+t.name;if(!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles),void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0);o=o.next}while(void 0!==o)}};var Jn=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},Zn={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var er=/[A-Z]|^ms/g,tr=/_EMO_([^_]+?)_([^]*?)_EMO_/g,nr=function(e){return 45===e.charCodeAt(1)},rr=function(e){return null!=e&&"boolean"!=typeof e},or=function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){return nr(e)?e:e.replace(er,"-$&").toLowerCase()})),ir=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(tr,(function(e,t,n){return lr={name:t,styles:n,next:lr},t}))}return 1===Zn[e]||nr(e)||"number"!=typeof t||0===t?t:t+"px"};function ar(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return lr={name:n.name,styles:n.styles,next:lr},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)lr={name:r.name,styles:r.styles,next:lr},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=ar(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":rr(a)&&(r+=or(i)+":"+ir(i,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=ar(e,t,a);switch(i){case"animation":case"animationName":r+=or(i)+":"+l+";";break;default:r+=i+"{"+l+"}"}}else for(var u=0;u<a.length;u++)rr(a[u])&&(r+=or(i)+":"+ir(i,a[u])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=lr,i=n(e);return lr=o,ar(e,t,i)}break;case"string":}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var lr,ur=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var sr=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";lr=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=ar(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++)o+=ar(n,t,e[a]),r&&(o+=i[a]);ur.lastIndex=0;for(var l,u="";null!==(l=ur.exec(o));)u+="-"+l[1];return{name:Jn(o)+u,styles:o,next:lr}},cr=Object.prototype.hasOwnProperty,fr=(0,o.createContext)("undefined"!=typeof HTMLElement?Qn({key:"css"}):null);var dr=fr.Provider,pr=function(e){return(0,o.forwardRef)((function(t,n){var r=(0,o.useContext)(fr);return e(t,r,n)}))},mr=(0,o.createContext)({});var hr="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",vr=function(e,t){var n={};for(var r in t)cr.call(t,r)&&(n[r]=t[r]);return n[hr]=e,n},gr=pr((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var i=e[hr],a=[r],l="";"string"==typeof e.className?l=Kn(t.registered,a,e.className):null!=e.className&&(l=e.className+" ");var u=sr(a,void 0,(0,o.useContext)(mr));Xn(t,u,"string"==typeof i);l+=t.key+"-"+u.name;var s={};for(var c in e)cr.call(e,c)&&"css"!==c&&c!==hr&&(s[c]=e[c]);return s.ref=n,s.className=l,(0,o.createElement)(i,s)}));var br=n(679),yr=n.n(br),_r=function(e,t){var n=arguments;if(null==t||!cr.call(t,"css"))return o.createElement.apply(void 0,n);var r=n.length,i=new Array(r);i[0]=gr,i[1]=vr(e,t);for(var a=2;a<r;a++)i[a]=n[a];return o.createElement.apply(null,i)};function wr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return sr(t)}var Er=function e(t){for(var n=t.length,r=0,o="";r<n;r++){var i=t[r];if(null!=i){var a=void 0;switch(typeof i){case"boolean":break;case"object":if(Array.isArray(i))a=e(i);else for(var l in a="",i)i[l]&&l&&(a&&(a+=" "),a+=l);break;default:a=i}a&&(o&&(o+=" "),o+=a)}}return o};function Sr(e,t,n){var r=[],o=Kn(e,r,n);return r.length<2?n:o+t(r)}var Or=pr((function(e,t){var n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=sr(n,t.registered);return Xn(t,o,!1),t.key+"-"+o.name},r={css:n,cx:function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return Sr(t.registered,n,Er(r))},theme:(0,o.useContext)(mr)},i=e.children(r);return!0,i}));function xr(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}function kr(e,t){if(null==e)return{};var n,r,o=xr(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 Cr(e){return(Cr="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 Pr=n(639);function Ir(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Rr(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 Dr(e,t,n){return t&&Rr(e.prototype,t),n&&Rr(e,n),e}function Nr(e,t){return(Nr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Tr(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}}),t&&Nr(e,t)}function Lr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ar(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mr(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 Br(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mr(Object(n),!0).forEach((function(t){Ar(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Fr(e){return(Fr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function jr(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Vr(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Fr(e);if(t){var o=Fr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return jr(this,n)}}var Ur=function(){};function zr(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function Hr(e,t,n){var r=[n];if(t&&e)for(var o in t)t.hasOwnProperty(o)&&t[o]&&r.push("".concat(zr(e,o)));return r.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var Wr=function(e){return Array.isArray(e)?e.filter(Boolean):"object"===Cr(e)&&null!==e?[e]:[]},Gr=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,Br({},kr(e,["className","clearValue","cx","getStyles","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"]))};function qr(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function $r(e){return qr(e)?window.pageYOffset:e.scrollTop}function Yr(e,t){qr(e)?window.scrollTo(0,t):e.scrollTop=t}function Qr(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function Kr(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Ur,o=$r(e),i=t-o,a=10,l=0;function u(){var t=Qr(l+=a,o,i,n);Yr(e,t),l<n?window.requestAnimationFrame(u):r(e)}u()}function Xr(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var Jr=!1,Zr={get passive(){return Jr=!0}},eo="undefined"!=typeof window?window:{};eo.addEventListener&&eo.removeEventListener&&(eo.addEventListener("p",Ur,Zr),eo.removeEventListener("p",Ur,!1));var to=Jr;function no(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,i=e.shouldScroll,a=e.isFixedPosition,l=e.theme.spacing,u=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/,o=document.documentElement;if("fixed"===t.position)return o;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return i;return o}(n),s={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return s;var c=u.getBoundingClientRect().height,f=n.getBoundingClientRect(),d=f.bottom,p=f.height,m=f.top,h=n.offsetParent.getBoundingClientRect().top,v=window.innerHeight,g=$r(u),b=parseInt(getComputedStyle(n).marginBottom,10),y=parseInt(getComputedStyle(n).marginTop,10),_=h-y,w=v-m,E=_+g,S=c-g-m,O=d-v+g+b,x=g+m-y,k=160;switch(o){case"auto":case"bottom":if(w>=p)return{placement:"bottom",maxHeight:t};if(S>=p&&!a)return i&&Kr(u,O,k),{placement:"bottom",maxHeight:t};if(!a&&S>=r||a&&w>=r)return i&&Kr(u,O,k),{placement:"bottom",maxHeight:a?w-b:S-b};if("auto"===o||a){var C=t,P=a?_:E;return P>=r&&(C=Math.min(P-b-l.controlHeight,t)),{placement:"top",maxHeight:C}}if("bottom"===o)return i&&Yr(u,O),{placement:"bottom",maxHeight:t};break;case"top":if(_>=p)return{placement:"top",maxHeight:t};if(E>=p&&!a)return i&&Kr(u,x,k),{placement:"top",maxHeight:t};if(!a&&E>=r||a&&_>=r){var I=t;return(!a&&E>=r||a&&_>=r)&&(I=a?_-y:E-y),i&&Kr(u,x,k),{placement:"top",maxHeight:I}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return s}var ro=function(e){return"auto"===e?"bottom":e},oo=(0,o.createContext)({getPortalPlacement:null}),io=function(e){Tr(n,e);var t=Vr(n);function n(){var e;Ir(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={maxHeight:e.props.maxMenuHeight,placement:null},e.getPlacement=function(t){var n=e.props,r=n.minMenuHeight,o=n.maxMenuHeight,i=n.menuPlacement,a=n.menuPosition,l=n.menuShouldScrollIntoView,u=n.theme;if(t){var s="fixed"===a,c=no({maxHeight:o,menuEl:t,minHeight:r,placement:i,shouldScroll:l&&!s,isFixedPosition:s,theme:u}),f=e.context.getPortalPlacement;f&&f(c),e.setState(c)}},e.getUpdatedProps=function(){var t=e.props.menuPlacement,n=e.state.placement||ro(t);return Br(Br({},e.props),{},{placement:n,maxHeight:e.state.maxHeight})},e}return Dr(n,[{key:"render",value:function(){return(0,this.props.children)({ref:this.getPlacement,placerProps:this.getUpdatedProps()})}}]),n}(o.Component);io.contextType=oo;var ao=function(e){var t=e.theme,n=t.spacing.baseUnit;return{color:t.colors.neutral40,padding:"".concat(2*n,"px ").concat(3*n,"px"),textAlign:"center"}},lo=ao,uo=ao,so=function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return _r("div",Qt({css:o("noOptionsMessage",e),className:r({"menu-notice":!0,"menu-notice--no-options":!0},n)},i),t)};so.defaultProps={children:"No options"};var co=function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return _r("div",Qt({css:o("loadingMessage",e),className:r({"menu-notice":!0,"menu-notice--loading":!0},n)},i),t)};co.defaultProps={children:"Loading..."};var fo,po=function(e){Tr(n,e);var t=Vr(n);function n(){var e;Ir(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={placement:null},e.getPortalPlacement=function(t){var n=t.placement;n!==ro(e.props.menuPlacement)&&e.setState({placement:n})},e}return Dr(n,[{key:"render",value:function(){var e=this.props,t=e.appendTo,n=e.children,r=e.className,o=e.controlElement,a=e.cx,l=e.innerProps,u=e.menuPlacement,s=e.menuPosition,c=e.getStyles,f="fixed"===s;if(!t&&!f||!o)return null;var d=this.state.placement||ro(u),p=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(o),m=f?0:window.pageYOffset,h=p[d]+m,v=_r("div",Qt({css:c("menuPortal",{offset:h,position:s,rect:p}),className:a({"menu-portal":!0},r)},l),n);return _r(oo.Provider,{value:{getPortalPlacement:this.getPortalPlacement}},t?(0,i.createPortal)(v,t):v)}}]),n}(o.Component);var mo,ho,vo={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},go=function(e){var t=e.size,n=kr(e,["size"]);return _r("svg",Qt({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:vo},n))},bo=function(e){return _r(go,Qt({size:20},e),_r("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},yo=function(e){return _r(go,Qt({size:20},e),_r("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},_o=function(e){var t=e.isFocused,n=e.theme,r=n.spacing.baseUnit,o=n.colors;return{label:"indicatorContainer",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*r,transition:"color 150ms",":hover":{color:t?o.neutral80:o.neutral40}}},wo=_o,Eo=_o,So=function(){var e=wr.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(fo||(mo=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],ho||(ho=mo.slice(0)),fo=Object.freeze(Object.defineProperties(mo,{raw:{value:Object.freeze(ho)}})))),Oo=function(e){var t=e.delay,n=e.offset;return _r("span",{css:wr({animation:"".concat(So," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":null,height:"1em",verticalAlign:"top",width:"1em"},"","")})},xo=function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerProps,i=e.isRtl;return _r("div",Qt({css:r("loadingIndicator",e),className:n({indicator:!0,"loading-indicator":!0},t)},o),_r(Oo,{delay:0,offset:i}),_r(Oo,{delay:160,offset:!0}),_r(Oo,{delay:320,offset:!i}))};xo.defaultProps={size:4};var ko=function(e){return{label:"input",background:0,border:0,fontSize:"inherit",opacity:e?0:1,outline:0,padding:0,color:"inherit"}},Co=function(e){var t=e.children,n=e.innerProps;return _r("div",n,t)},Po=Co,Io=Co;var Ro=function(e){var t=e.children,n=e.className,r=e.components,o=e.cx,i=e.data,a=e.getStyles,l=e.innerProps,u=e.isDisabled,s=e.removeProps,c=e.selectProps,f=r.Container,d=r.Label,p=r.Remove;return _r(Or,null,(function(r){var m=r.css,h=r.cx;return _r(f,{data:i,innerProps:Br({className:h(m(a("multiValue",e)),o({"multi-value":!0,"multi-value--is-disabled":u},n))},l),selectProps:c},_r(d,{data:i,innerProps:{className:h(m(a("multiValueLabel",e)),o({"multi-value__label":!0},n))},selectProps:c},t),_r(p,{data:i,innerProps:Br({className:h(m(a("multiValueRemove",e)),o({"multi-value__remove":!0},n))},s),selectProps:c}))}))};Ro.defaultProps={cropWithEllipsis:!0};var Do={ClearIndicator:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return _r("div",Qt({css:o("clearIndicator",e),className:r({indicator:!0,"clear-indicator":!0},n)},i),t||_r(bo,null))},Control:function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.className,i=e.isDisabled,a=e.isFocused,l=e.innerRef,u=e.innerProps,s=e.menuIsOpen;return _r("div",Qt({ref:l,css:r("control",e),className:n({control:!0,"control--is-disabled":i,"control--is-focused":a,"control--menu-is-open":s},o)},u),t)},DropdownIndicator:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return _r("div",Qt({css:o("dropdownIndicator",e),className:r({indicator:!0,"dropdown-indicator":!0},n)},i),t||_r(yo,null))},DownChevron:yo,CrossIcon:bo,Group:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.Heading,a=e.headingProps,l=e.innerProps,u=e.label,s=e.theme,c=e.selectProps;return _r("div",Qt({css:o("group",e),className:r({group:!0},n)},l),_r(i,Qt({},a,{selectProps:c,theme:s,getStyles:o,cx:r}),u),_r("div",null,t))},GroupHeading:function(e){var t=e.getStyles,n=e.cx,r=e.className,o=Gr(e);o.data;var i=kr(o,["data"]);return _r("div",Qt({css:t("groupHeading",e),className:n({"group-heading":!0},r)},i))},IndicatorsContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.innerProps,i=e.getStyles;return _r("div",Qt({css:i("indicatorsContainer",e),className:r({indicators:!0},n)},o),t)},IndicatorSeparator:function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerProps;return _r("span",Qt({},o,{css:r("indicatorSeparator",e),className:n({"indicator-separator":!0},t)}))},Input:function(e){var t=e.className,n=e.cx,r=e.getStyles,o=Gr(e),i=o.innerRef,a=o.isDisabled,l=o.isHidden,u=kr(o,["innerRef","isDisabled","isHidden"]);return _r("div",{css:r("input",e)},_r(Pr.Z,Qt({className:n({input:!0},t),inputRef:i,inputStyle:ko(l),disabled:a},u)))},LoadingIndicator:xo,Menu:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerRef,a=e.innerProps;return _r("div",Qt({css:o("menu",e),className:r({menu:!0},n),ref:i},a),t)},MenuList:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps,a=e.innerRef,l=e.isMulti;return _r("div",Qt({css:o("menuList",e),className:r({"menu-list":!0,"menu-list--is-multi":l},n),ref:a},i),t)},MenuPortal:po,LoadingMessage:co,NoOptionsMessage:so,MultiValue:Ro,MultiValueContainer:Po,MultiValueLabel:Io,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return _r("div",n,t||_r(bo,{size:14}))},Option:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.isDisabled,a=e.isFocused,l=e.isSelected,u=e.innerRef,s=e.innerProps;return _r("div",Qt({css:o("option",e),className:r({option:!0,"option--is-disabled":i,"option--is-focused":a,"option--is-selected":l},n),ref:u},s),t)},Placeholder:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return _r("div",Qt({css:o("placeholder",e),className:r({placeholder:!0},n)},i),t)},SelectContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps,a=e.isDisabled,l=e.isRtl;return _r("div",Qt({css:o("container",e),className:r({"--is-disabled":a,"--is-rtl":l},n)},i),t)},SingleValue:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.isDisabled,a=e.innerProps;return _r("div",Qt({css:o("singleValue",e),className:r({"single-value":!0,"single-value--is-disabled":i},n)},a),t)},ValueContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.innerProps,i=e.isMulti,a=e.getStyles,l=e.hasValue;return _r("div",Qt({css:a("valueContainer",e),className:r({"value-container":!0,"value-container--is-multi":i,"value-container--has-value":l},n)},o),t)}};function No(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 To(e){return function(e){if(Array.isArray(e))return No(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){if("string"==typeof e)return No(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)?No(e,t):void 0}}(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.")}()}var Lo=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Ao(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||Lo(r)&&Lo(o)))return!1;var r,o;return!0}var Mo=function(e,t){var n;void 0===t&&(t=Ao);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}};for(var Bo={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},Fo=function(e){return _r("span",Qt({css:Bo},e))},jo={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.isDisabled,o=e.tabSelectsValue;switch(e.context){case"menu":return"Use Up and Down to choose options".concat(r?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(o?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,o=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"select-option":return"option ".concat(r,o?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=void 0===n?{}:n,o=e.options,i=e.label,a=void 0===i?"":i,l=e.selectValue,u=e.isDisabled,s=e.isSelected,c=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&l)return"value ".concat(a," focused, ").concat(c(l,r),".");if("menu"===t){var f=u?" disabled":"",d="".concat(s?"selected":"focused").concat(f);return"option ".concat(a," ").concat(d,", ").concat(c(o,r),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},Vo=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,i=e.focusableOptions,a=e.isFocused,l=e.selectValue,u=e.selectProps,s=u.ariaLiveMessages,c=u.getOptionLabel,f=u.inputValue,d=u.isMulti,p=u.isOptionDisabled,m=u.isSearchable,h=u.menuIsOpen,v=u.options,g=u.screenReaderStatus,b=u.tabSelectsValue,y=u["aria-label"],_=u["aria-live"],w=(0,o.useMemo)((function(){return Br(Br({},jo),s||{})}),[s]),E=(0,o.useMemo)((function(){var e,n="";if(t&&w.onChange){var r=t.option,o=t.removedValue,i=t.value,a=o||r||(e=i,Array.isArray(e)?null:e),l=Br({isDisabled:a&&p(a),label:a?c(a):""},t);n=w.onChange(l)}return n}),[t,p,c,w]),S=(0,o.useMemo)((function(){var e="",t=n||r,o=!!(n&&l&&l.includes(n));if(t&&w.onFocus){var i={focused:t,label:c(t),isDisabled:p(t),isSelected:o,options:v,context:t===n?"menu":"value",selectValue:l};e=w.onFocus(i)}return e}),[n,r,c,p,w,v,l]),O=(0,o.useMemo)((function(){var e="";if(h&&v.length&&w.onFilter){var t=g({count:i.length});e=w.onFilter({inputValue:f,resultsMessage:t})}return e}),[i,f,h,w,v,g]),x=(0,o.useMemo)((function(){var e="";if(w.guidance){var t=r?"value":h?"menu":"input";e=w.guidance({"aria-label":y,context:t,isDisabled:n&&p(n),isMulti:d,isSearchable:m,tabSelectsValue:b})}return e}),[y,n,r,d,p,m,h,w,b]),k="".concat(S," ").concat(O," ").concat(x);return _r(Fo,{"aria-live":_,"aria-atomic":"false","aria-relevant":"additions text"},a&&_r(o.Fragment,null,_r("span",{id:"aria-selection"},E),_r("span",{id:"aria-context"},k)))},Uo=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],zo=new RegExp("["+Uo.map((function(e){return e.letters})).join("")+"]","g"),Ho={},Wo=0;Wo<Uo.length;Wo++)for(var Go=Uo[Wo],qo=0;qo<Go.letters.length;qo++)Ho[Go.letters[qo]]=Go.base;var $o=function(e){return e.replace(zo,(function(e){return Ho[e]}))},Yo=Mo($o),Qo=function(e){return e.replace(/^\s+|\s+$/g,"")},Ko=function(e){return"".concat(e.label," ").concat(e.value)};function Xo(e){e.in,e.out,e.onExited,e.appear,e.enter,e.exit;var t=e.innerRef;e.emotion;var n=kr(e,["in","out","onExited","appear","enter","exit","innerRef","emotion"]);return _r("input",Qt({ref:t},n,{css:wr({label:"dummyInput",background:0,border:0,fontSize:"inherit",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(0)"},"","")}))}var Jo=["boxSizing","height","overflow","paddingRight","position"],Zo={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function ei(e){e.preventDefault()}function ti(e){e.stopPropagation()}function ni(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function ri(){return"ontouchstart"in window||navigator.maxTouchPoints}var oi=!("undefined"==typeof window||!window.document||!window.document.createElement),ii=0,ai={capture:!1,passive:!1};var li=function(){return document.activeElement&&document.activeElement.blur()},ui={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function si(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,i=function(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,i=e.onTopArrive,a=e.onTopLeave,l=(0,o.useRef)(!1),u=(0,o.useRef)(!1),s=(0,o.useRef)(0),c=(0,o.useRef)(null),f=(0,o.useCallback)((function(e,t){if(null!==c.current){var o=c.current,s=o.scrollTop,f=o.scrollHeight,d=o.clientHeight,p=c.current,m=t>0,h=f-d-s,v=!1;h>t&&l.current&&(r&&r(e),l.current=!1),m&&u.current&&(a&&a(e),u.current=!1),m&&t>h?(n&&!l.current&&n(e),p.scrollTop=f,v=!0,l.current=!0):!m&&-t>s&&(i&&!u.current&&i(e),p.scrollTop=0,v=!0,u.current=!0),v&&function(e){e.preventDefault(),e.stopPropagation()}(e)}}),[]),d=(0,o.useCallback)((function(e){f(e,e.deltaY)}),[f]),p=(0,o.useCallback)((function(e){s.current=e.changedTouches[0].clientY}),[]),m=(0,o.useCallback)((function(e){var t=s.current-e.changedTouches[0].clientY;f(e,t)}),[f]),h=(0,o.useCallback)((function(e){if(e){var t=!!to&&{passive:!1};"function"==typeof e.addEventListener&&e.addEventListener("wheel",d,t),"function"==typeof e.addEventListener&&e.addEventListener("touchstart",p,t),"function"==typeof e.addEventListener&&e.addEventListener("touchmove",m,t)}}),[m,p,d]),v=(0,o.useCallback)((function(e){e&&("function"==typeof e.removeEventListener&&e.removeEventListener("wheel",d,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchstart",p,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchmove",m,!1))}),[m,p,d]);return(0,o.useEffect)((function(){if(t){var e=c.current;return h(e),function(){v(e)}}}),[t,h,v]),function(e){c.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),a=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,i=(0,o.useRef)({}),a=(0,o.useRef)(null),l=(0,o.useCallback)((function(e){if(oi){var t=document.body,n=t&&t.style;if(r&&Jo.forEach((function(e){var t=n&&n[e];i.current[e]=t})),r&&ii<1){var o=parseInt(i.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,l=window.innerWidth-a+o||0;Object.keys(Zo).forEach((function(e){var t=Zo[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(l,"px"))}t&&ri()&&(t.addEventListener("touchmove",ei,ai),e&&(e.addEventListener("touchstart",ni,ai),e.addEventListener("touchmove",ti,ai))),ii+=1}}),[]),u=(0,o.useCallback)((function(e){if(oi){var t=document.body,n=t&&t.style;ii=Math.max(ii-1,0),r&&ii<1&&Jo.forEach((function(e){var t=i.current[e];n&&(n[e]=t)})),t&&ri()&&(t.removeEventListener("touchmove",ei,ai),e&&(e.removeEventListener("touchstart",ni,ai),e.removeEventListener("touchmove",ti,ai)))}}),[]);return(0,o.useEffect)((function(){if(t){var e=a.current;return l(e),function(){u(e)}}}),[t,l,u]),function(e){a.current=e}}({isEnabled:n});return _r(o.Fragment,null,n&&_r("div",{onClick:li,css:ui}),t((function(e){i(e),a(e)})))}var ci={clearIndicator:Eo,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":null,pointerEvents:t?"none":null,position:"relative"}},control:function(e){var t=e.isDisabled,n=e.isFocused,r=e.theme,o=r.colors,i=r.borderRadius,a=r.spacing;return{label:"control",alignItems:"center",backgroundColor:t?o.neutral5:o.neutral0,borderColor:t?o.neutral10:n?o.primary:o.neutral20,borderRadius:i,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px ".concat(o.primary):null,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:a.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:n?o.primary:o.neutral30}}},dropdownIndicator:wo,group:function(e){var t=e.theme.spacing;return{paddingBottom:2*t.baseUnit,paddingTop:2*t.baseUnit}},groupHeading:function(e){var t=e.theme.spacing;return{label:"group",color:"#999",cursor:"default",display:"block",fontSize:"75%",fontWeight:"500",marginBottom:"0.25em",paddingLeft:3*t.baseUnit,paddingRight:3*t.baseUnit,textTransform:"uppercase"}},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing.baseUnit,o=n.colors;return{label:"indicatorSeparator",alignSelf:"stretch",backgroundColor:t?o.neutral10:o.neutral20,marginBottom:2*r,marginTop:2*r,width:1}},input:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,o=n.colors;return{margin:r.baseUnit/2,paddingBottom:r.baseUnit/2,paddingTop:r.baseUnit/2,visibility:t?"hidden":"visible",color:o.neutral80}},loadingIndicator:function(e){var t=e.isFocused,n=e.size,r=e.theme,o=r.colors,i=r.spacing.baseUnit;return{label:"loadingIndicator",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*i,transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"}},loadingMessage:uo,menu:function(e){var t,n=e.placement,r=e.theme,o=r.borderRadius,i=r.spacing,a=r.colors;return Lr(t={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(n),"100%"),Lr(t,"backgroundColor",a.neutral0),Lr(t,"borderRadius",o),Lr(t,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),Lr(t,"marginBottom",i.menuGutter),Lr(t,"marginTop",i.menuGutter),Lr(t,"position","absolute"),Lr(t,"width","100%"),Lr(t,"zIndex",1),t},menuList:function(e){var t=e.maxHeight,n=e.theme.spacing.baseUnit;return{maxHeight:t,overflowY:"auto",paddingBottom:n,paddingTop:n,position:"relative",WebkitOverflowScrolling:"touch"}},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius;return{label:"multiValue",backgroundColor:t.colors.neutral10,borderRadius:r/2,display:"flex",margin:n.baseUnit/2,minWidth:0}},multiValueLabel:function(e){var t=e.theme,n=t.borderRadius,r=t.colors,o=e.cropWithEllipsis;return{borderRadius:n/2,color:r.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:o?"ellipsis":null,whiteSpace:"nowrap"}},multiValueRemove:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius,o=t.colors;return{alignItems:"center",borderRadius:r/2,backgroundColor:e.isFocused&&o.dangerLight,display:"flex",paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}}},noOptionsMessage:lo,option:function(e){var t=e.isDisabled,n=e.isFocused,r=e.isSelected,o=e.theme,i=o.spacing,a=o.colors;return{label:"option",backgroundColor:r?a.primary:n?a.primary25:"transparent",color:t?a.neutral20:r?a.neutral0:"inherit",cursor:"default",display:"block",fontSize:"inherit",padding:"".concat(2*i.baseUnit,"px ").concat(3*i.baseUnit,"px"),width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",":active":{backgroundColor:!t&&(r?a.primary:a.primary50)}}},placeholder:function(e){var t=e.theme,n=t.spacing;return{label:"placeholder",color:t.colors.neutral50,marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2,position:"absolute",top:"50%",transform:"translateY(-50%)"}},singleValue:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,o=n.colors;return{label:"singleValue",color:t?o.neutral40:o.neutral80,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2,maxWidth:"calc(100% - ".concat(2*r.baseUnit,"px)"),overflow:"hidden",position:"absolute",textOverflow:"ellipsis",whiteSpace:"nowrap",top:"50%",transform:"translateY(-50%)"}},valueContainer:function(e){var t=e.theme.spacing;return{alignItems:"center",display:"flex",flex:1,flexWrap:"wrap",padding:"".concat(t.baseUnit/2,"px ").concat(2*t.baseUnit,"px"),WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"}}};var fi={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},di={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Xr(),captureMenuScroll:!Xr(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e){return function(t,n){var r=Br({ignoreCase:!0,ignoreAccents:!0,stringify:Ko,trim:!0,matchFrom:"any"},e),o=r.ignoreCase,i=r.ignoreAccents,a=r.stringify,l=r.trim,u=r.matchFrom,s=l?Qo(n):n,c=l?Qo(a(t)):a(t);return o&&(s=s.toLowerCase(),c=c.toLowerCase()),i&&(s=Yo(s),c=$o(c)),"start"===u?c.substr(0,s.length)===s:c.indexOf(s)>-1}}(),formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:"0",tabSelectsValue:!0};function pi(e,t,n,r){return{type:"option",data:t,isDisabled:yi(e,t,n),isSelected:_i(e,t,n),label:gi(e,t),value:bi(e,t),index:r}}function mi(e,t){return e.options.map((function(n,r){if(n.options){var o=n.options.map((function(n,r){return pi(e,n,t,r)})).filter((function(t){return vi(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=pi(e,n,t,r);return vi(e,i)?i:void 0})).filter((function(e){return!!e}))}function hi(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,To(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function vi(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,i=t.isSelected,a=t.label,l=t.value;return(!Ei(e)||!i)&&wi(e,{label:a,value:l,data:o},r)}var gi=function(e,t){return e.getOptionLabel(t)},bi=function(e,t){return e.getOptionValue(t)};function yi(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function _i(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=bi(e,t);return n.some((function(t){return bi(e,t)===r}))}function wi(e,t,n){return!e.filterOption||e.filterOption(t,n)}var Ei=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},Si=1,Oi=function(e){Tr(n,e);var t=Vr(n);function n(e){var r;return Ir(this,n),(r=t.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},r.blockOptionHover=!1,r.isComposing=!1,r.commonProps=void 0,r.initialTouchX=0,r.initialTouchY=0,r.instancePrefix="",r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.controlRef=null,r.getControlRef=function(e){r.controlRef=e},r.focusedOptionRef=null,r.getFocusedOptionRef=function(e){r.focusedOptionRef=e},r.menuListRef=null,r.getMenuListRef=function(e){r.menuListRef=e},r.inputRef=null,r.getInputRef=function(e){r.inputRef=e},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(e,t){var n=r.props,o=n.onChange,i=n.name;t.name=i,r.ariaOnChange(e,t),o(e,t)},r.setValue=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"set-value",n=arguments.length>2?arguments[2]:void 0,o=r.props,i=o.closeMenuOnSelect,a=o.isMulti;r.onInputChange("",{action:"set-value"}),i&&(r.setState({inputIsHiddenAfterUpdate:!a}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(e,{action:t,option:n})},r.selectOption=function(e){var t=r.props,n=t.blurInputOnSelect,o=t.isMulti,i=t.name,a=r.state.selectValue,l=o&&r.isOptionSelected(e,a),u=r.isOptionDisabled(e,a);if(l){var s=r.getOptionValue(e);r.setValue(a.filter((function(e){return r.getOptionValue(e)!==s})),"deselect-option",e)}else{if(u)return void r.ariaOnChange(e,{action:"select-option",name:i});o?r.setValue([].concat(To(a),[e]),"select-option",e):r.setValue(e,"select-option")}n&&r.blurInput()},r.removeValue=function(e){var t=r.props.isMulti,n=r.state.selectValue,o=r.getOptionValue(e),i=n.filter((function(e){return r.getOptionValue(e)!==o})),a=t?i:i[0]||null;r.onChange(a,{action:"remove-value",removedValue:e}),r.focusInput()},r.clearValue=function(){var e=r.state.selectValue;r.onChange(r.props.isMulti?[]:null,{action:"clear",removedValues:e})},r.popValue=function(){var e=r.props.isMulti,t=r.state.selectValue,n=t[t.length-1],o=t.slice(0,t.length-1),i=e?o:o[0]||null;r.onChange(i,{action:"pop-value",removedValue:n})},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Hr.apply(void 0,[r.props.classNamePrefix].concat(t))},r.getOptionLabel=function(e){return gi(r.props,e)},r.getOptionValue=function(e){return bi(r.props,e)},r.getStyles=function(e,t){var n=ci[e](t);n.boxSizing="border-box";var o=r.props.styles[e];return o?o(n,t):n},r.getElementId=function(e){return"".concat(r.instancePrefix,"-").concat(e)},r.getComponents=function(){return e=r.props,Br(Br({},Do),e.components);var e},r.buildCategorizedOptions=function(){return mi(r.props,r.state.selectValue)},r.getCategorizedOptions=function(){return r.props.menuIsOpen?r.buildCategorizedOptions():[]},r.buildFocusableOptions=function(){return hi(r.buildCategorizedOptions())},r.getFocusableOptions=function(){return r.props.menuIsOpen?r.buildFocusableOptions():[]},r.ariaOnChange=function(e,t){r.setState({ariaSelection:Br({value:e},t)})},r.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),r.focusInput())},r.onMenuMouseMove=function(e){r.blockOptionHover=!1},r.onControlMouseDown=function(e){var t=r.props.openMenuOnClick;r.state.isFocused?r.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&r.onMenuClose():t&&r.openMenu("first"):(t&&(r.openAfterFocus=!0),r.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()},r.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||r.props.isDisabled)){var t=r.props,n=t.isMulti,o=t.menuIsOpen;r.focusInput(),o?(r.setState({inputIsHiddenAfterUpdate:!n}),r.onMenuClose()):r.openMenu("first"),e.preventDefault(),e.stopPropagation()}},r.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(r.clearValue(),e.stopPropagation(),r.openAfterFocus=!1,"touchend"===e.type?r.focusInput():setTimeout((function(){return r.focusInput()})))},r.onScroll=function(e){"boolean"==typeof r.props.closeMenuOnScroll?e.target instanceof HTMLElement&&qr(e.target)&&r.props.onMenuClose():"function"==typeof r.props.closeMenuOnScroll&&r.props.closeMenuOnScroll(e)&&r.props.onMenuClose()},r.onCompositionStart=function(){r.isComposing=!0},r.onCompositionEnd=function(){r.isComposing=!1},r.onTouchStart=function(e){var t=e.touches,n=t&&t.item(0);n&&(r.initialTouchX=n.clientX,r.initialTouchY=n.clientY,r.userIsDragging=!1)},r.onTouchMove=function(e){var t=e.touches,n=t&&t.item(0);if(n){var o=Math.abs(n.clientX-r.initialTouchX),i=Math.abs(n.clientY-r.initialTouchY);r.userIsDragging=o>5||i>5}},r.onTouchEnd=function(e){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(e.target)&&r.menuListRef&&!r.menuListRef.contains(e.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(e){r.userIsDragging||r.onControlMouseDown(e)},r.onClearIndicatorTouchEnd=function(e){r.userIsDragging||r.onClearIndicatorMouseDown(e)},r.onDropdownIndicatorTouchEnd=function(e){r.userIsDragging||r.onDropdownIndicatorMouseDown(e)},r.handleInputChange=function(e){var t=e.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(t,{action:"input-change"}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(e){r.props.onFocus&&r.props.onFocus(e),r.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(e){r.menuListRef&&r.menuListRef.contains(document.activeElement)?r.inputRef.focus():(r.props.onBlur&&r.props.onBlur(e),r.onInputChange("",{action:"input-blur"}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1}))},r.onOptionHover=function(e){r.blockOptionHover||r.state.focusedOption===e||r.setState({focusedOption:e})},r.shouldHideSelectedOptions=function(){return Ei(r.props)},r.onKeyDown=function(e){var t=r.props,n=t.isMulti,o=t.backspaceRemovesValue,i=t.escapeClearsValue,a=t.inputValue,l=t.isClearable,u=t.isDisabled,s=t.menuIsOpen,c=t.onKeyDown,f=t.tabSelectsValue,d=t.openMenuOnFocus,p=r.state,m=p.focusedOption,h=p.focusedValue,v=p.selectValue;if(!(u||"function"==typeof c&&(c(e),e.defaultPrevented))){switch(r.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||a)return;r.focusValue("previous");break;case"ArrowRight":if(!n||a)return;r.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(h)r.removeValue(h);else{if(!o)return;n?r.popValue():l&&r.clearValue()}break;case"Tab":if(r.isComposing)return;if(e.shiftKey||!s||!f||!m||d&&r.isOptionSelected(m,v))return;r.selectOption(m);break;case"Enter":if(229===e.keyCode)break;if(s){if(!m)return;if(r.isComposing)return;r.selectOption(m);break}return;case"Escape":s?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close"}),r.onMenuClose()):l&&i&&r.clearValue();break;case" ":if(a)return;if(!s){r.openMenu("first");break}if(!m)return;r.selectOption(m);break;case"ArrowUp":s?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":s?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!s)return;r.focusOption("pageup");break;case"PageDown":if(!s)return;r.focusOption("pagedown");break;case"Home":if(!s)return;r.focusOption("first");break;case"End":if(!s)return;r.focusOption("last");break;default:return}e.preventDefault()}},r.instancePrefix="react-select-"+(r.props.instanceId||++Si),r.state.selectValue=Wr(e.value),r}return Dr(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput()}},{key:"componentDidUpdate",value:function(e){var t,n,r,o,i,a=this.props,l=a.isDisabled,u=a.menuIsOpen,s=this.state.isFocused;(s&&!l&&e.isDisabled||s&&u&&!e.menuIsOpen)&&this.focusInput(),s&&l&&!e.isDisabled&&this.setState({isFocused:!1},this.onMenuClose),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(t=this.menuListRef,n=this.focusedOptionRef,r=t.getBoundingClientRect(),o=n.getBoundingClientRect(),i=n.offsetHeight/3,o.bottom+i>r.bottom?Yr(t,Math.min(n.offsetTop+n.clientHeight-t.offsetHeight+i,t.scrollHeight)):o.top-i<r.top&&Yr(t,Math.max(n.offsetTop-i,0)),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close"}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,i=this.buildFocusableOptions(),a="first"===e?0:i.length-1;if(!this.props.isMulti){var l=i.indexOf(r[0]);l>-1&&(a=l)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[a]},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=n.indexOf(r);r||(o=-1);var i=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===o?0:-1===o?i:o-1;break;case"next":o>-1&&o<i&&(a=o+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,i=r.indexOf(n);n||(i=-1),"up"===e?o=i>0?i-1:r.length-1:"down"===e?o=(i+1)%r.length:"pageup"===e?(o=i-t)<0&&(o=0):"pagedown"===e?(o=i+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(fi):Br(Br({},fi),this.props.theme):fi}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getValue,o=this.selectOption,i=this.setValue,a=this.props,l=a.isMulti,u=a.isRtl,s=a.options;return{clearValue:e,cx:t,getStyles:n,getValue:r,hasValue:this.hasValue(),isMulti:l,isRtl:u,options:s,selectOption:o,selectProps:a,setValue:i,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return yi(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return _i(this.props,e,t)}},{key:"filterOption",value:function(e,t){return wi(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,i=e.inputValue,a=e.tabIndex,l=e.form,u=this.getComponents().Input,s=this.state.inputIsHidden,c=this.commonProps,f=r||this.getElementId("input"),d={"aria-autocomplete":"list","aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"]};return n?o.createElement(u,Qt({},c,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:f,innerRef:this.getInputRef,isDisabled:t,isHidden:s,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:a,form:l,type:"text",value:i},d)):o.createElement(Xo,Qt({id:f,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Ur,onFocus:this.onInputFocus,readOnly:!0,disabled:t,tabIndex:a,form:l,value:""},d))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,i=t.MultiValueLabel,a=t.MultiValueRemove,l=t.SingleValue,u=t.Placeholder,s=this.commonProps,c=this.props,f=c.controlShouldRenderValue,d=c.isDisabled,p=c.isMulti,m=c.inputValue,h=c.placeholder,v=this.state,g=v.selectValue,b=v.focusedValue,y=v.isFocused;if(!this.hasValue()||!f)return m?null:o.createElement(u,Qt({},s,{key:"placeholder",isDisabled:d,isFocused:y}),h);if(p)return g.map((function(t,l){var u=t===b;return o.createElement(n,Qt({},s,{components:{Container:r,Label:i,Remove:a},isFocused:u,isDisabled:d,key:"".concat(e.getOptionValue(t)).concat(l),index:l,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault(),e.stopPropagation()}},data:t}),e.formatOptionLabel(t,"value"))}));if(m)return null;var _=g[0];return o.createElement(l,Qt({},s,{data:_,isDisabled:d}),this.formatOptionLabel(_,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,i=n.isLoading,a=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||i)return null;var l={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return o.createElement(e,Qt({},t,{innerProps:l,isFocused:a}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,i=n.isLoading,a=this.state.isFocused;if(!e||!i)return null;return o.createElement(e,Qt({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:a}))}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,i=this.props.isDisabled,a=this.state.isFocused;return o.createElement(n,Qt({},r,{isDisabled:i,isFocused:a}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,i={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return o.createElement(e,Qt({},t,{innerProps:i,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,r=t.GroupHeading,i=t.Menu,a=t.MenuList,l=t.MenuPortal,u=t.LoadingMessage,s=t.NoOptionsMessage,c=t.Option,f=this.commonProps,d=this.state.focusedOption,p=this.props,m=p.captureMenuScroll,h=p.inputValue,v=p.isLoading,g=p.loadingMessage,b=p.minMenuHeight,y=p.maxMenuHeight,_=p.menuIsOpen,w=p.menuPlacement,E=p.menuPosition,S=p.menuPortalTarget,O=p.menuShouldBlockScroll,x=p.menuShouldScrollIntoView,k=p.noOptionsMessage,C=p.onMenuScrollToTop,P=p.onMenuScrollToBottom;if(!_)return null;var I,R=function(t,n){var r=t.type,i=t.data,a=t.isDisabled,l=t.isSelected,u=t.label,s=t.value,p=d===i,m=a?void 0:function(){return e.onOptionHover(i)},h=a?void 0:function(){return e.selectOption(i)},v="".concat(e.getElementId("option"),"-").concat(n),g={id:v,onClick:h,onMouseMove:m,onMouseOver:m,tabIndex:-1};return o.createElement(c,Qt({},f,{innerProps:g,data:i,isDisabled:a,isSelected:l,key:v,label:u,type:r,value:s,isFocused:p,innerRef:p?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())I=this.getCategorizedOptions().map((function(t){if("group"===t.type){var i=t.data,a=t.options,l=t.index,u="".concat(e.getElementId("group"),"-").concat(l),s="".concat(u,"-heading");return o.createElement(n,Qt({},f,{key:u,data:i,options:a,Heading:r,headingProps:{id:s,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return R(e,"".concat(l,"-").concat(e.index))})))}if("option"===t.type)return R(t,"".concat(t.index))}));else if(v){var D=g({inputValue:h});if(null===D)return null;I=o.createElement(u,f,D)}else{var N=k({inputValue:h});if(null===N)return null;I=o.createElement(s,f,N)}var T={minMenuHeight:b,maxMenuHeight:y,menuPlacement:w,menuPosition:E,menuShouldScrollIntoView:x},L=o.createElement(io,Qt({},f,T),(function(t){var n=t.ref,r=t.placerProps,l=r.placement,u=r.maxHeight;return o.createElement(i,Qt({},f,T,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:v,placement:l}),o.createElement(si,{captureEnabled:m,onTopArrive:C,onBottomArrive:P,lockEnabled:O},(function(t){return o.createElement(a,Qt({},f,{innerRef:function(n){e.getMenuListRef(n),t(n)},isLoading:v,maxHeight:u,focusedOption:d}),I)})))}));return S||"fixed"===E?o.createElement(l,Qt({},f,{appendTo:S,controlElement:this.controlRef,menuPlacement:w,menuPosition:E}),L):L}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,i=t.isMulti,a=t.name,l=this.state.selectValue;if(a&&!r){if(i){if(n){var u=l.map((function(t){return e.getOptionValue(t)})).join(n);return o.createElement("input",{name:a,type:"hidden",value:u})}var s=l.length>0?l.map((function(t,n){return o.createElement("input",{key:"i-".concat(n),name:a,type:"hidden",value:e.getOptionValue(t)})})):o.createElement("input",{name:a,type:"hidden"});return o.createElement("div",null,s)}var c=l[0]?this.getOptionValue(l[0]):"";return o.createElement("input",{name:a,type:"hidden",value:c})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,i=t.focusedValue,a=t.isFocused,l=t.selectValue,u=this.getFocusableOptions();return o.createElement(Vo,Qt({},e,{ariaSelection:n,focusedOption:r,focusedValue:i,isFocused:a,selectValue:l,focusableOptions:u}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,i=e.ValueContainer,a=this.props,l=a.className,u=a.id,s=a.isDisabled,c=a.menuIsOpen,f=this.state.isFocused,d=this.commonProps=this.getCommonProps();return o.createElement(r,Qt({},d,{className:l,innerProps:{id:u,onKeyDown:this.onKeyDown},isDisabled:s,isFocused:f}),this.renderLiveRegion(),o.createElement(t,Qt({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:s,isFocused:f,menuIsOpen:c}),o.createElement(i,Qt({},d,{isDisabled:s}),this.renderPlaceholderOrValue(),this.renderInput()),o.createElement(n,Qt({},d,{isDisabled:s}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,i=e.options,a=e.value,l=e.menuIsOpen,u=e.inputValue,s={};if(n&&(a!==n.value||i!==n.options||l!==n.menuIsOpen||u!==n.inputValue)){var c=Wr(a),f=l?function(e,t){return hi(mi(e,t))}(e,c):[],d=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,c):null;s={selectValue:c,focusedOption:function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,f),focusedValue:d,clearFocusValueOnUpdate:!1}}var p=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{};return Br(Br(Br({},s),p),{},{prevProps:e})}}]),n}(o.Component);Oi.defaultProps=di;var xi,ki,Ci,Pi={defaultInputValue:"",defaultMenuIsOpen:!1,defaultValue:null},Ii=function(e){var t,n;return n=t=function(t){Tr(r,t);var n=Vr(r);function r(){var e;Ir(this,r);for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return(e=n.call.apply(n,[this].concat(o))).select=void 0,e.state={inputValue:void 0!==e.props.inputValue?e.props.inputValue:e.props.defaultInputValue,menuIsOpen:void 0!==e.props.menuIsOpen?e.props.menuIsOpen:e.props.defaultMenuIsOpen,value:void 0!==e.props.value?e.props.value:e.props.defaultValue},e.onChange=function(t,n){e.callProp("onChange",t,n),e.setState({value:t})},e.onInputChange=function(t,n){var r=e.callProp("onInputChange",t,n);e.setState({inputValue:void 0!==r?r:t})},e.onMenuOpen=function(){e.callProp("onMenuOpen"),e.setState({menuIsOpen:!0})},e.onMenuClose=function(){e.callProp("onMenuClose"),e.setState({menuIsOpen:!1})},e}return Dr(r,[{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"getProp",value:function(e){return void 0!==this.props[e]?this.props[e]:this.state[e]}},{key:"callProp",value:function(e){if("function"==typeof this.props[e]){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return(t=this.props)[e].apply(t,r)}}},{key:"render",value:function(){var t=this,n=this.props;n.defaultInputValue,n.defaultMenuIsOpen,n.defaultValue;var r=kr(n,["defaultInputValue","defaultMenuIsOpen","defaultValue"]);return o.createElement(e,Qt({},r,{ref:function(e){t.select=e},inputValue:this.getProp("inputValue"),menuIsOpen:this.getProp("menuIsOpen"),onChange:this.onChange,onInputChange:this.onInputChange,onMenuClose:this.onMenuClose,onMenuOpen:this.onMenuOpen,value:this.getProp("value")}))}}]),r}(o.Component),t.defaultProps=Pi,n},Ri=(o.Component,Ii(Oi)),Di={cacheOptions:!1,defaultOptions:!1,filterOption:null,isLoading:!1},Ni=Ii(Oi),Ti=(xi=Ni,Ci=ki=function(e){Tr(n,e);var t=Vr(n);function n(e){var r;return Ir(this,n),(r=t.call(this)).select=void 0,r.lastRequest=void 0,r.mounted=!1,r.handleInputChange=function(e,t){var n=r.props,o=n.cacheOptions,i=function(e,t,n){if(n){var r=n(e,t);if("string"==typeof r)return r}return e}(e,t,n.onInputChange);if(!i)return delete r.lastRequest,void r.setState({inputValue:"",loadedInputValue:"",loadedOptions:[],isLoading:!1,passEmptyOptions:!1});if(o&&r.state.optionsCache[i])r.setState({inputValue:i,loadedInputValue:i,loadedOptions:r.state.optionsCache[i],isLoading:!1,passEmptyOptions:!1});else{var a=r.lastRequest={};r.setState({inputValue:i,isLoading:!0,passEmptyOptions:!r.state.loadedInputValue},(function(){r.loadOptions(i,(function(e){r.mounted&&a===r.lastRequest&&(delete r.lastRequest,r.setState((function(t){return{isLoading:!1,loadedInputValue:i,loadedOptions:e||[],passEmptyOptions:!1,optionsCache:e?Br(Br({},t.optionsCache),{},Lr({},i,e)):t.optionsCache}})))}))}))}return i},r.state={defaultOptions:Array.isArray(e.defaultOptions)?e.defaultOptions:void 0,inputValue:void 0!==e.inputValue?e.inputValue:"",isLoading:!0===e.defaultOptions,loadedOptions:[],passEmptyOptions:!1,optionsCache:{},prevDefaultOptions:void 0,prevCacheOptions:void 0},r}return Dr(n,[{key:"componentDidMount",value:function(){var e=this;this.mounted=!0;var t=this.props.defaultOptions,n=this.state.inputValue;!0===t&&this.loadOptions(n,(function(t){if(e.mounted){var n=!!e.lastRequest;e.setState({defaultOptions:t||[],isLoading:n})}}))}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"loadOptions",value:function(e,t){var n=this.props.loadOptions;if(!n)return t();var r=n(e,t);r&&"function"==typeof r.then&&r.then(t,(function(){return t()}))}},{key:"render",value:function(){var e=this,t=this.props;t.loadOptions;var n=t.isLoading,r=kr(t,["loadOptions","isLoading"]),i=this.state,a=i.defaultOptions,l=i.inputValue,u=i.isLoading,s=i.loadedInputValue,c=i.loadedOptions,f=i.passEmptyOptions?[]:l&&s?c:a||[];return o.createElement(xi,Qt({},r,{ref:function(t){e.select=t},options:f,isLoading:u||n,onInputChange:this.handleInputChange}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.cacheOptions!==t.prevCacheOptions?{prevCacheOptions:e.cacheOptions,optionsCache:{}}:{},r=e.defaultOptions!==t.prevDefaultOptions?{prevDefaultOptions:e.defaultOptions,defaultOptions:Array.isArray(e.defaultOptions)?e.defaultOptions:void 0}:{};return Br(Br({},n),r)}}]),n}(o.Component),ki.defaultProps=Di,Ci);function Li(e){return(Li="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)}function Ai(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 Mi(e,t,n){return(Mi="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Ui(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function Bi(e,t){return(Bi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Fi(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=Ui(e);if(t){var o=Ui(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ji(this,n)}}function ji(e,t){if(t&&("object"===Li(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Vi(e)}function Vi(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ui(e){return(Ui=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var zi=function(e){!function(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}}),t&&Bi(e,t)}(a,e);var t,n,r,i=Fi(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e))._field_items=new E(t.state.handlers.api_loader,e.field_data,e.section_fields,t.onUpdateLoadingStatus.bind(Vi(t)),t.onUpdateItems.bind(Vi(t))),t.searched_input_value=null,e.onRefreshForm&&e.onRefreshForm((function(){setTimeout(t.refreshItems.bind(Vi(t),!1),0)})),t.onChangeState("items",e.field_data.items||[]),t}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.field_data,n=e.form_values,r=e.form_states,i=e.state_name,a=e.show_if_regexes,u=this.state.settings;if(!r[i]||!this.isFieldVisible(a,n))return null;var s=this.parseItems(r[i].items),c=t.endpoint_route?Ti:Ri;return o.createElement(o.Fragment,null,o.createElement("li",{className:"fcfOptions__row",ref:r[i].ref_wrapper},o.createElement(l,{unique_id:r[i].unique_id,field_data:t,settings:u}),o.createElement(v,{validation_error:r[i].validation_error}),o.createElement(c,{id:r[i].unique_id,name:"_fcf_".concat(t.name),className:"fcfOptions__select",classNamePrefix:"fcfSelect",value:s.filter((function(e){return e.value===n[t.name]})),options:s,defaultOptions:s,loadOptions:this.loadOptions.bind(this),isSearchable:!t.html_atts.not_searchable,placeholder:u.i18n[t.endpoint_route?"select_async_placeholder":"select_placeholder"],noOptionsMessage:function(){return r[i].is_loading?u.i18n.select_loading:u.i18n.select_empty},openMenuOnClick:!0,isDisabled:t.readonly,onChange:t.readonly?null:this.onChangeValue.bind(this),onInputChange:this.onRefreshItemsAfterInputChange.bind(this)})))}},{key:"componentDidMount",value:function(){Mi(Ui(a.prototype),"componentDidMount",this).call(this);var e=this.props.field_data;if(this.refreshItems(!1),e.endpoint_autorefresh){var t=this.state.settings;window.addEventListener(t.events.refresh_field,this.refreshItems.bind(this,!0))}}},{key:"componentWillUnmount",value:function(){Mi(Ui(a.prototype),"componentWillUnmount",this).call(this),this.onValidationError(null)}},{key:"onUpdateLoadingStatus",value:function(e){this.onChangeState("is_loading",e)}},{key:"onUpdateItems",value:function(e){if(this._isMounted){for(var t=this.props,n=t.field_data,r=t.form_values,o=t.form_states,i=t.state_name,a=Array.from(r[n.name]),l=o[i].items,u=0;u<a.length;u++)void 0!==l[a[u]]&&(e[a[u]]=l[a[u]]);this.onChangeState("items",e),this.resetDefaultValue(),this.forceUpdate()}}},{key:"onRefreshItemsAfterInputChange",value:function(e){var t=this;setTimeout((function(){e!==t.searched_input_value&&t.refreshItems(!0,e)}),0)}},{key:"getValue",value:function(e){return e?e.value:""}},{key:"loadOptions",value:function(e){var t=this,n=this.props,r=n.form_states,o=n.state_name;return new Promise((function(n){new Promise((function(n){t.refreshItems(!0,e,n)})).then((function(){var e=t.parseItems(r[o].items);n(e)}))}))}},{key:"refreshItems",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=this.props,o=r.field_data,i=r.form_states,a=r.state_name,l=r.state_field_name,u=r.form_values,s=this.state.form_settings;o.endpoint_route&&(this.searched_input_value=t,this._field_items.refreshItems(i[a].unique_id,l,s.form_index,e,u,u[o.name]||"",t,n))}},{key:"resetDefaultValue",value:function(){this.isAvailableValue()||this.onChangeValue(null)}},{key:"isAvailableValue",value:function(){var e=this.props,t=e.field_data,n=e.form_values,r=e.form_states,o=e.state_name;if(""===n[t.name])return!0;for(var i=this.parseItems(r[o].items),a=i.length,l=0;l<a;l++)if(i[l].value===n[t.name])return!0;return!1}},{key:"parseItems",value:function(e){var t=[];for(var n in e)t.push({value:n,label:e[n]});return t}}])&&Ai(t.prototype,n),r&&Ai(t,r),a}(F);function Hi(e){return(Hi="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)}function Wi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Gi(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 qi(e,t){return(qi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function $i(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=Qi(e);if(t){var o=Qi(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Yi(this,n)}}function Yi(e,t){if(t&&("object"===Hi(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Qi(e){return(Qi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ki=function(e){!function(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}}),t&&qi(e,t)}(a,e);var t,n,r,i=$i(a);function a(){return Wi(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.field_data,n=e.form_values,r=e.form_states,i=e.state_name,a=e.show_if_regexes,u=this.state.settings;if(!r[i]||!this.isFieldVisible(a,n))return null;var s=this.parseItems(r[i].items),c=t.endpoint_route?Ti:Ri;return o.createElement(o.Fragment,null,o.createElement("li",{className:"fcfOptions__row",ref:r[i].ref_wrapper},o.createElement(l,{unique_id:r[i].unique_id,field_data:t,settings:u}),o.createElement(v,{validation_error:r[i].validation_error}),o.createElement(c,{id:r[i].unique_id,name:"_fcf_".concat(t.name),className:"fcfOptions__select",classNamePrefix:"fcfSelect",value:s.filter((function(e){var r=e.value;return n[t.name].indexOf(r)>-1})),options:s,defaultOptions:s,loadOptions:this.loadOptions.bind(this),isSearchable:!t.html_atts.not_searchable,placeholder:u.i18n[t.endpoint_route?"select_async_placeholder":"select_placeholder"],noOptionsMessage:function(){return r[i].is_loading?u.i18n.select_loading:u.i18n.select_empty},openMenuOnClick:!t.endpoint_route||s.length>n[t.name].length,isMulti:!0,isDisabled:t.readonly,onChange:t.readonly?null:this.onChangeValue.bind(this),onInputChange:this.onRefreshItemsAfterInputChange.bind(this)})))}},{key:"getValue",value:function(e){return null===e?[]:Array.from(e,(function(e){return e.value}))}},{key:"resetDefaultValue",value:function(){var e=this.props,t=e.field_data,n=e.form_values,r=e.form_states,o=e.state_name,i=this.state.events,a=this.parseItems(r[o].items).map((function(e){return e.value})),l=[];for(var u in n[t.name])a.indexOf(n[t.name][u])>-1&&l.push(n[t.name][u]);i.onChangeValue(t.name,l,t.refresh_trigger)}}])&&Gi(t.prototype,n),r&&Gi(t,r),a}(zi);function Xi(e){return(Xi="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)}function Ji(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zi(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 ea(e,t){return(ea=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ta(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=ra(e);if(t){var o=ra(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return na(this,n)}}function na(e,t){if(t&&("object"===Xi(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function ra(e){return(ra=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var oa=function(e){!function(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}}),t&&ea(e,t)}(a,e);var t,n,r,i=ta(a);function a(){return Ji(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.field_data,n=e.form_values,r=e.form_states,i=e.state_name,a=e.show_if_regexes,u=this.state.settings;return r[i]&&this.isFieldVisible(a,n)?o.createElement(o.Fragment,null,o.createElement("li",{className:"fcfOptions__row",ref:r[i].ref_wrapper},o.createElement(l,{unique_id:r[i].unique_id,field_data:t,settings:u}),o.createElement(v,{validation_error:r[i].validation_error}),o.createElement("textarea",{id:r[i].unique_id,ref:r[i].ref_input,name:"_fcf_".concat(t.name),className:"fcfOptions__textarea",rows:"2",value:this.getFieldValue(),onChange:t.readonly?null:this.onChangeValue.bind(this),disabled:t.readonly}))):null}},{key:"getValue",value:function(){var e=this.props;return e.form_states[e.state_name].ref_input.current.value}}])&&Zi(t.prototype,n),r&&Zi(t,r),a}(F);function ia(e){return(ia="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)}function aa(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function la(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 ua(e,t){return(ua=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function sa(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=fa(e);if(t){var o=fa(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ca(this,n)}}function ca(e,t){if(t&&("object"===ia(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function fa(e){return(fa=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var da=function(e){!function(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}}),t&&ua(e,t)}(a,e);var t,n,r,i=sa(a);function a(){return aa(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.field_data,n=e.form_values,r=e.form_states,i=e.state_name,a=e.show_if_regexes,u=this.state.settings;return r[i]&&this.isFieldVisible(a,n)?o.createElement(o.Fragment,null,o.createElement("li",{className:"fcfOptions__row",ref:r[i].ref_wrapper},o.createElement(l,{unique_id:r[i].unique_id,field_data:t,settings:u}),o.createElement(v,{validation_error:r[i].validation_error}),o.createElement("input",{type:"text",id:r[i].unique_id,ref:r[i].ref_input,name:"_fcf_".concat(t.name),className:"fcfOptions__input",value:this.getFieldValue(),onChange:t.readonly?null:this.onChangeValue.bind(this),disabled:t.readonly}))):null}},{key:"getValue",value:function(){var e=this.props;return e.form_states[e.state_name].ref_input.current.value}}])&&la(t.prototype,n),r&&la(t,r),a}(F);function pa(e){return(pa="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)}function ma(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 ha(e,t){return(ha=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function va(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=ba(e);if(t){var o=ba(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ga(this,n)}}function ga(e,t){if(t&&("object"===pa(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function ba(e){return(ba=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ya=function(e){!function(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}}),t&&ha(e,t)}(a,e);var t,n,r,i=va(a);function a(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),t=i.call(this,e);var n=e.settings,r=e.form_title,o=e.form_settings,l=e.validation_type;return t.state={field_types:t.updateFieldTypes(n.form_fields.option_fields),field_groups:n.form_fields.field_group,form_values:{},form_states:{},settings:n,form_title:r,form_settings:o,status:{loading_type:null,field_name_updated:!1},validation_type:l},t._form_validation=new D(n.events.validate_field,l,1),t}return t=a,(n=[{key:"render",value:function(){var e=this.state,t=e.form_values,n=e.form_states,r=e.settings,i=e.form_settings,a=e.form_title,l=e.status,u=e.validation_type;return o.createElement("div",{className:"fcfWidget"},o.createElement("div",{className:"fcfWidget__inner"},o.createElement("div",{className:"fcfWidget__header"},o.createElement("div",{className:"fcfWidget__headerTitle"},a)),o.createElement("div",{className:"fcfWidget__content"},o.createElement("div",{className:"fcfOptions"},o.createElement("ul",{className:"fcfOptions__rows"},o.createElement(Vt,{field_data:{name:"field_type",label:r.i18n.field_type,items:this.state.field_types,field_groups:this.state.field_groups,validation_rules:[{regex:"^.{1,}$",message:r.i18n.validation_required,is_fatal:!0}]},form_values:t,form_states:n,state_name:"field_type",state_field_name:null,settings:r,form_settings:i,validation_types:[u],onChangeValue:this.onChangeValue.bind(this),onChangeState:this.onChangeState.bind(this),onValidationInit:this.onValidationInit.bind(this)}),this.isFieldTypeAvailable()?o.createElement(o.Fragment,null,o.createElement(oa,{field_data:{name:"field_label",label:r.i18n.field_label,validation_rules:[{regex:"^.{1,}$",message:r.i18n.validation_required,is_fatal:!0}]},form_values:t,form_states:n,state_name:"field_label",state_field_name:null,settings:r,form_settings:i,validation_types:[u],onChangeValue:this.onChangeValue.bind(this),onChangeState:this.onChangeState.bind(this),onValidationInit:this.onValidationInit.bind(this)}),o.createElement(da,{field_data:{name:"field_name",label:r.i18n.field_name,validation_rules:[{regex:"^.{1,}$",message:r.i18n.validation_required,is_fatal:!0},{regex:"^[a-z0-9_]{1,}$",message:r.i18n.validation_slug,is_fatal:!0},{regex:"^.{1,128}$",message:r.i18n.validation_max_length,is_fatal:!0}]},form_values:t,form_states:n,state_name:"field_name",state_field_name:null,settings:r,form_settings:i,validation_types:[u,"field_name"],onChangeValue:this.onChangeValue.bind(this),onChangeState:this.onChangeState.bind(this),onValidationInit:this.onValidationInit.bind(this)})):o.createElement(et,{field_data:{name:"field_type_adv",label:r.i18n.alert_field_unavailable},form_values:t,form_states:n,state_name:"field_type_adv",state_field_name:null,settings:r,form_settings:i,validation_types:[u],onChangeValue:function(){},onChangeState:function(){},onValidationInit:function(){}}),o.createElement("li",{className:"fcfOptions__row fcfOptions__row--padding"},o.createElement("button",{type:"button",className:"fcfButton fcfButton--wide fcfButton--bg fcfButton--blue",onClick:this.onSubmit.bind(this),disabled:!this.isFieldTypeAvailable()||"add_field"===l.loading_type},r.i18n.button_add_field)))))))}},{key:"isFieldTypeAvailable",value:function(){var e=this.state,t=e.settings,n=e.form_values,r=t.form_fields.option_fields;return!n.field_type||r[n.field_type].is_available}},{key:"onValidationInit",value:function(e,t,n){return this._form_validation.onValidationInit(e,t,n)}},{key:"onChangeValue",value:function(e,t){var n=this.state,r=n.form_values,o=n.status,i=Object.assign({},r);i[e]=t,"field_label"!==e||o.field_name_updated||(i.field_name=(new O).generateSlug(t)),"field_name"===e&&(o.field_name_updated=""!==t),"field_label"!==e&&"field_name"!==e||(i.field_name=this.generateUniqueFieldName(i.field_name)),this.setState({form_values:i,status:o})}},{key:"onChangeState",value:function(e,t,n){var r=this.state.form_states;void 0===r[e]&&(r[e]={}),r[e][t]=n,this.setState({form_states:r})}},{key:"onSubmit",value:function(e){this.updateLoadingStatus("add_field"),this._form_validation.onSubmit(e).then(this.addNewField.bind(this),this.updateLoadingStatus.bind(this))}},{key:"updateLoadingStatus",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.state.status;t&&(t.loading_type=e,this.setState({status:t}))}},{key:"updateFieldTypes",value:function(e){var t=[];for(var n in e)e[n].is_hidden||t.push(e[n]);return t}},{key:"generateUniqueFieldName",value:function(e){var t="".concat(this.state.form_settings.form_index,"_").concat(e);return this.getReservedFieldNames().indexOf(t)>-1?this.generateUniqueFieldName("".concat(e,"_2")):e}},{key:"getReservedFieldNames",value:function(){for(var e=this.state.form_settings.option_values.length,t=[],n=0;n<e;n++)t.push(this.state.form_settings.option_values[n].name);return t.push("shipping_phone"),t}},{key:"addNewField",value:function(){var e=this.props.onFieldAdd,t=this.state,n=t.form_values,r=t.form_settings;e({type:n.field_type,name:"".concat(r.form_index,"_").concat(n.field_name),label:n.field_label,custom_field:"1"}),this.setState({form_values:{},status:{}})}}])&&ma(t.prototype,n),r&&ma(t,r),a}(o.Component);function _a(e){return(_a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function wa(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 Ea(e,t){return(Ea=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Sa(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=ka(e);if(t){var o=ka(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Oa(this,n)}}function Oa(e,t){if(t&&("object"===_a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return xa(e)}function xa(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ka(e){return(ka=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ca=function(e){!function(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}}),t&&Ea(e,t)}(u,e);var t,n,i,l=Sa(u);function u(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),t=l.call(this,e);var n=e.settings,r=e.form_title,o=e.form_settings,i=e.validation_type;return t.state={settings:n,form_settings:o,form_title:r,option_fields:o.option_fields,option_values:o.option_values,option_states:[],status:{loading_type:null,loading_message:null},validation_type:i},t._form_validation=new D(n.events.validate_field,i,1),t._form_submit=new P(n.handlers.api_loader,o.api_route,t._form_validation,t.updateLoadingStats.bind(xa(t))),t}return t=u,(n=[{key:"render",value:function(){var e=this,t=this.state,n=t.settings,i=t.form_settings,l=t.option_fields,u=t.option_values,s=t.option_states,c=t.form_title,f=t.status,d=t.validation_type;return o.createElement("div",{className:"fcfWidget"},o.createElement("div",{className:"fcfWidget__inner"},o.createElement("div",{className:"fcfWidget__header"},o.createElement("div",{className:"fcfWidget__headerTitle"},c)),o.createElement("div",{className:"fcfWidget__content"},o.createElement("div",{className:"fcfOptions"},o.createElement("ul",{className:"fcfOptions__rows"},l.map((function(t,a){var l=r[t.type];return o.createElement(l,{key:a,field_data:t,form_values:u,form_states:s,state_name:t.name,state_field_name:null,show_if_regexes:t.show_if_regexes,settings:n,form_settings:i,validation_types:[d],onChangeValue:e.onChangeValue.bind(e),onChangeState:e.onChangeState.bind(e),onValidationInit:e.onValidationInit.bind(e)})}))))),o.createElement("div",{className:"fcfWidget__footer"},o.createElement("ul",{className:"fcfWidget__buttons"},o.createElement("li",{className:"fcfWidget__button"},o.createElement(a,{button_classes:"fcfButton fcfButton--wide fcfButton--bg fcfButton--blue",button_alignment:"left",button_label:n.i18n.button_save,loading_type:"save_bottom",loading_status:f.loading_type,loading_message:f.loading_message,settings:n,onSubmit:this.onSubmit.bind(this,"save_bottom",{form_fields:u})}))))))}},{key:"onValidationInit",value:function(e,t,n){return this._form_validation.onValidationInit(e,t,n)}},{key:"onChangeValue",value:function(e,t){var n=this.state.option_values;n[e]=t,this.setState({option_values:n})}},{key:"onChangeState",value:function(e,t,n){var r=this.state.option_states;void 0===r[e]&&(r[e]={}),r[e][t]=n,this.setState({option_states:r})}},{key:"onSubmit",value:function(e,t,n){return n.preventDefault(),this._form_submit.onSubmit(e,t)}},{key:"updateLoadingStats",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.state.status;n.loading_type=e,n.loading_message=t,this.setState({status:n})}}])&&wa(t.prototype,n),i&&wa(t,i),u}(o.Component);function Pa(e){return(Pa="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)}function Ia(){return(Ia=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 Ra(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 Da(e,t){return(Da=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Na(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=La(e);if(t){var o=La(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ta(this,n)}}function Ta(e,t){if(t&&("object"===Pa(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function La(e){return(La=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Aa=function(e){!function(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}}),t&&Da(e,t)}(l,e);var t,n,i,a=Na(l);function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=a.call(this,e)).state={settings:e.settings,form_settings:e.form_settings,events:{onChangeValue:e.onChangeValue,onChangeState:e.onChangeState,onFieldRemove:e.onFieldRemove,onValidationInit:e.onValidationInit},refs:{wrapper:o.createRef()},refresh_functions:[],validation_types:t.props.validation_types},t.props.onChangeValue("_current_tab",0),t.props.onChangeValue("_is_open",!1),t}return t=l,(n=[{key:"shouldComponentUpdate",value:function(e){return e.last_row_index===e.row_index||null===e.last_row_index}},{key:"render",value:function(){var e=this,t=this.props,n=t.provided,i=t.field_data,a=t.form_states,l=t.field_type,u=t.section_fields,s=this.state,c=s.settings,f=s.form_settings,d=s.events,p=s.refs,m=s.validation_types,v=this.getAvailableSettingsTabs(l.options),g=(i.label||"").replace(/(<([^>]+)>)/gi,"");return o.createElement("li",Ia({className:"fcfFields__item ".concat("0"===i.visible?"fcfFields__item--disabled":""),ref:n.innerRef},n.draggableProps),o.createElement("div",{className:"fcfFields__itemInner",ref:p.wrapper},o.createElement("div",Ia({className:"fcfFields__itemHeader"},n.dragHandleProps,{onClick:this.toggleSettings.bind(this)}),o.createElement("div",{className:"fcfFields__itemHeaderOuter"},o.createElement("div",{className:"fcfFields__itemHeaderInner"},o.createElement("div",{className:"fcfFields__itemHeaderTitle"},g||i.name,"1"===i.required?" * ":""),l.is_available?o.createElement("div",{className:"fcfFields__itemHeaderDesc ".concat("1"!==i.custom_field||i.external_field?"":"fcfFields__itemHeaderDesc--flag"," ")},l.label):o.createElement("div",{className:"fcfFields__itemHeaderDesc"},i.type)),o.createElement("ul",{className:"fcfFields__itemHeaderButtons"},"1"===i.custom_field?o.createElement("li",{className:"fcfFields__itemHeaderButton"},o.createElement(h,{text:c.i18n.alert_remove_field,onAccept:d.onFieldRemove,settings:c},o.createElement("button",{type:"button",className:"fcfFields__itemHeaderButtonInner fcfFields__itemHeaderButtonInner--remove"}))):null,o.createElement("li",{className:"fcfFields__itemHeaderButton"},o.createElement("button",{type:"button",className:"fcfFields__itemHeaderButtonInner fcfFields__itemHeaderButtonInner--".concat(i._is_open?"close":"open")}))))),o.createElement("div",{className:"fcfFields__itemContent",style:{display:i._is_open?"block":"none"}},o.createElement("div",{className:"fcfFields__itemTabs fcfTabs fcfTabs--small"},o.createElement("ul",{className:"fcfTabs__items"},v.map((function(t,n){var r=f.settings_tabs[t];return o.createElement("li",{className:"fcfTabs__item",key:n},o.createElement("a",{href:"#".concat(r.tab_name),className:"fcfTabs__itemLink ".concat(n===i._current_tab?"fcfTabs__itemLink--active":""," ").concat(r.icon),onClick:e.changeTab.bind(e,n)},r.label))})))),o.createElement("div",{className:"fcfOptions"},v.map((function(t,n){return o.createElement("ul",{className:"fcfOptions__rows",key:n,style:{display:n===i._current_tab?"block":"none"}},l.options.map((function(l,s){var p=r[l.type];return l.tab_name===t?o.createElement(p,{key:s,field_data:l,form_values:i,form_states:a,state_name:l.name,state_field_name:i.name,section_fields:u,show_if_regexes:l.show_if_regexes,validation_types:m,settings:c,form_settings:f,onChangeValue:e.onChangeValue.bind(e),onChangeState:d.onChangeState,onRefreshForm:e.onRefreshForm.bind(e),onValidationInit:e.onValidationInit.bind(e,n)}):null})))}))))))}},{key:"onChangeValue",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.state,o=r.refresh_functions,i=r.events;i.onChangeValue(e,t,n);for(var a=o.length,l=0;l<a;l++)o[l]()}},{key:"onRefreshForm",value:function(e){this.state.refresh_functions.push(e)}},{key:"onValidationInit",value:function(e,t,n){var r=this,o=this.state,i=o.refs;o.events.onValidationInit(t,n,(function(){r.toggleSettings(!0),r.changeTab(e),i.wrapper.current.scrollIntoView(!1)}))}},{key:"getAvailableSettingsTabs",value:function(e){for(var t=[],n=e.length,r=0;r<n;r++)-1===t.indexOf(e[r].tab_name)&&t.push(e[r].tab_name);return t}},{key:"toggleSettings",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.props.field_data,n=this.state.events;n.onChangeValue("_is_open",!0===e||!t._is_open)}},{key:"changeTab",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;t&&t.preventDefault();var n=this.state.events;n.onChangeValue("_current_tab",e)}}])&&Ra(t.prototype,n),i&&Ra(t,i),l}(o.Component);function Ma(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Nr(e,t)}function Ba(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 Fa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ba(Object(n),!0).forEach((function(t){Lr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ba(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ja(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Va="function"==typeof Symbol&&Symbol.observable||"@@observable",Ua=function(){return Math.random().toString(36).substring(7).split("").join(".")},za={INIT:"@@redux/INIT"+Ua(),REPLACE:"@@redux/REPLACE"+Ua(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Ua()}};function Ha(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 Wa(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(ja(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(ja(1));return n(Wa)(e,t)}if("function"!=typeof e)throw new Error(ja(2));var o=e,i=t,a=[],l=a,u=!1;function s(){l===a&&(l=a.slice())}function c(){if(u)throw new Error(ja(3));return i}function f(e){if("function"!=typeof e)throw new Error(ja(4));if(u)throw new Error(ja(5));var t=!0;return s(),l.push(e),function(){if(t){if(u)throw new Error(ja(6));t=!1,s();var n=l.indexOf(e);l.splice(n,1),a=null}}}function d(e){if(!Ha(e))throw new Error(ja(7));if(void 0===e.type)throw new Error(ja(8));if(u)throw new Error(ja(9));try{u=!0,i=o(i,e)}finally{u=!1}for(var t=a=l,n=0;n<t.length;n++){(0,t[n])()}return e}function p(e){if("function"!=typeof e)throw new Error(ja(10));o=e,d({type:za.REPLACE})}function m(){var e,t=f;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(ja(11));function n(){e.next&&e.next(c())}return n(),{unsubscribe:t(n)}}})[Va]=function(){return this},e}return d({type:za.INIT}),(r={dispatch:d,subscribe:f,getState:c,replaceReducer:p})[Va]=m,r}function Ga(e,t){return function(){return t(e.apply(this,arguments))}}function qa(e,t){if("function"==typeof e)return Ga(e,t);if("object"!=typeof e||null===e)throw new Error(ja(16));var n={};for(var r in e){var o=e[r];"function"==typeof o&&(n[r]=Ga(o,t))}return n}function $a(){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))}}))}n(697);var Ya=o.createContext(null);var Qa=function(e){e()},Ka=function(){return Qa},Xa={notify:function(){}};var Ja=function(){function e(e,t){this.store=e,this.parentSub=t,this.unsubscribe=null,this.listeners=Xa,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=Xa)},e}(),Za="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?o.useLayoutEffect:o.useEffect;var el=function(e){var t=e.store,n=e.context,r=e.children,i=(0,o.useMemo)((function(){var e=new Ja(t);return e.onStateChange=e.notifyNestedSubs,{store:t,subscription:e}}),[t]),a=(0,o.useMemo)((function(){return t.getState()}),[t]);Za((function(){var e=i.subscription;return e.trySubscribe(),a!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[i,a]);var l=n||Ya;return o.createElement(l.Provider,{value:i},r)},tl=n(864),nl=[],rl=[null,null];function ol(e,t){var n=e[1];return[t.payload,n+1]}function il(e,t,n){Za((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,u,s){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||u():(i.current=e,l.current=e,a.current=!0,s({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 ul=function(){return[null,0]};function sl(e,t){void 0===t&&(t={});var n=t,r=n.getDisplayName,i=void 0===r?function(e){return"ConnectAdvanced("+e+")"}:r,a=n.methodName,l=void 0===a?"connectAdvanced":a,u=n.renderCountProp,s=void 0===u?void 0:u,c=n.shouldHandleStateChanges,f=void 0===c||c,d=n.storeKey,p=void 0===d?"store":d,m=(n.withRef,n.forwardRef),h=void 0!==m&&m,v=n.context,g=void 0===v?Ya:v,b=xr(n,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"]),y=g;return function(t){var n=t.displayName||t.name||"Component",r=i(n),a=Qt({},b,{getDisplayName:i,methodName:l,renderCountProp:s,shouldHandleStateChanges:f,storeKey:p,displayName:r,wrappedComponentName:n,WrappedComponent:t}),u=b.pure;var c=u?o.useMemo:function(e){return e()};function d(n){var r=(0,o.useMemo)((function(){var e=n.reactReduxForwardedRef,t=xr(n,["reactReduxForwardedRef"]);return[n.context,e,t]}),[n]),i=r[0],l=r[1],u=r[2],s=(0,o.useMemo)((function(){return i&&i.Consumer&&(0,tl.isContextConsumer)(o.createElement(i.Consumer,null))?i:y}),[i,y]),d=(0,o.useContext)(s),p=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch);Boolean(d)&&Boolean(d.store);var m=p?n.store:d.store,h=(0,o.useMemo)((function(){return function(t){return e(t.dispatch,a)}(m)}),[m]),v=(0,o.useMemo)((function(){if(!f)return rl;var e=new Ja(m,p?null:d.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[m,p,d]),g=v[0],b=v[1],_=(0,o.useMemo)((function(){return p?d:Qt({},d,{subscription:g})}),[p,d,g]),w=(0,o.useReducer)(ol,nl,ul),E=w[0][0],S=w[1];if(E&&E.error)throw E.error;var O=(0,o.useRef)(),x=(0,o.useRef)(u),k=(0,o.useRef)(),C=(0,o.useRef)(!1),P=c((function(){return k.current&&u===x.current?k.current:h(m.getState(),u)}),[m,E,u]);il(al,[x,O,C,u,P,k,b]),il(ll,[f,m,g,h,x,O,C,k,b,S],[m,g,h]);var I=(0,o.useMemo)((function(){return o.createElement(t,Qt({},P,{ref:l}))}),[l,t,P]);return(0,o.useMemo)((function(){return f?o.createElement(s.Provider,{value:_},I):I}),[s,I,_])}var m=u?o.memo(d):d;if(m.WrappedComponent=t,m.displayName=d.displayName=r,h){var v=o.forwardRef((function(e,t){return o.createElement(m,Qt({},e,{reactReduxForwardedRef:t}))}));return v.displayName=r,v.WrappedComponent=t,yr()(v,t)}return yr()(m,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 ml(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 hl=[function(e){return"function"==typeof e?ml(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 function(e,t){var n={},r=function(r){var o=e[r];"function"==typeof o&&(n[r]=function(){return t(o.apply(void 0,arguments))})};for(var o in e)r(o);return n}(e,t)})):void 0}];var vl=[function(e){return"function"==typeof e?ml(e):void 0},function(e){return e?void 0:dl((function(){return{}}))}];function gl(e,t,n){return Qt({},n,e,t)}var bl=[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 u=e(t,n,l);return a?o&&i(u,r)||(r=u):(a=!0,r=u),r}}}(e):void 0},function(e){return e?void 0:function(){return gl}}];function yl(e,t,n,r){return function(o,i){return n(e(o,i),t(r,i),i)}}function _l(e,t,n,r,o){var i,a,l,u,s,c=o.areStatesEqual,f=o.areOwnPropsEqual,d=o.areStatePropsEqual,p=!1;function m(o,p){var m,h,v=!f(p,a),g=!c(o,i);return i=o,a=p,v&&g?(l=e(i,a),t.dependsOnOwnProps&&(u=t(r,a)),s=n(l,u,a)):v?(e.dependsOnOwnProps&&(l=e(i,a)),t.dependsOnOwnProps&&(u=t(r,a)),s=n(l,u,a)):g?(m=e(i,a),h=!d(m,l),l=m,h&&(s=n(l,u,a)),s):s}return function(o,c){return p?m(o,c):(l=e(i=o,a=c),u=t(r,a),s=n(l,u,a),p=!0,s)}}function wl(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,o=t.initMergeProps,i=xr(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),a=n(e,i),l=r(e,i),u=o(e,i);return(i.pure?_l:yl)(a,l,u,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 Sl(e,t){return e===t}function Ol(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?sl:n,o=t.mapStateToPropsFactories,i=void 0===o?vl:o,a=t.mapDispatchToPropsFactories,l=void 0===a?hl:a,u=t.mergePropsFactories,s=void 0===u?bl:u,c=t.selectorFactory,f=void 0===c?wl:c;return function(e,t,n,o){void 0===o&&(o={});var a=o,u=a.pure,c=void 0===u||u,d=a.areStatesEqual,p=void 0===d?Sl:d,m=a.areOwnPropsEqual,h=void 0===m?fl:m,v=a.areStatePropsEqual,g=void 0===v?fl:v,b=a.areMergedPropsEqual,y=void 0===b?fl:b,_=xr(a,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),w=El(e,i,"mapStateToProps"),E=El(t,l,"mapDispatchToProps"),S=El(n,s,"mergeProps");return r(f,Qt({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:w,initMapDispatchToProps:E,initMergeProps:S,pure:c,areStatesEqual:p,areOwnPropsEqual:h,areStatePropsEqual:g,areMergedPropsEqual:y},_))}}var xl=Ol();var kl;function Cl(e,t){var n=(0,o.useState)((function(){return{inputs:t,result:e()}}))[0],r=(0,o.useRef)(!0),i=(0,o.useRef)(n),a=r.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,o.useEffect)((function(){r.current=!1,i.current=a}),[a]),a.result}kl=i.unstable_batchedUpdates,Qa=kl;var Pl=Cl,Il=function(e,t){return Cl((function(){return e}),t)},Rl="Invariant failed";var Dl=function(e,t){if(!e)throw new Error(Rl)},Nl=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}}},Tl=function(e,t){return{top:e.top-t.top,left:e.left-t.left,bottom:e.bottom+t.bottom,right:e.right+t.right}},Ll=function(e,t){return{top:e.top+t.top,left:e.left+t.left,bottom:e.bottom-t.bottom,right:e.right-t.right}},Al={top:0,right:0,bottom:0,left:0},Ml=function(e){var t=e.borderBox,n=e.margin,r=void 0===n?Al:n,o=e.border,i=void 0===o?Al:o,a=e.padding,l=void 0===a?Al:a,u=Nl(Tl(t,r)),s=Nl(Ll(t,i)),c=Nl(Ll(s,l));return{marginBox:u,borderBox:Nl(t),paddingBox:s,contentBox:c,margin:r,border:i,padding:l}},Bl=function(e){var t=e.slice(0,-2);if("px"!==e.slice(-2))return 0;var n=Number(t);return isNaN(n)&&Dl(!1),n},Fl=function(e,t){var n,r,o=e.borderBox,i=e.border,a=e.margin,l=e.padding,u=(r=t,{top:(n=o).top+r.y,left:n.left+r.x,bottom:n.bottom+r.y,right:n.right+r.x});return Ml({borderBox:u,border:i,margin:a,padding:l})},jl=function(e,t){return void 0===t&&(t={x:window.pageXOffset,y:window.pageYOffset}),Fl(e,t)},Vl=function(e,t){var n={top:Bl(t.marginTop),right:Bl(t.marginRight),bottom:Bl(t.marginBottom),left:Bl(t.marginLeft)},r={top:Bl(t.paddingTop),right:Bl(t.paddingRight),bottom:Bl(t.paddingBottom),left:Bl(t.paddingLeft)},o={top:Bl(t.borderTopWidth),right:Bl(t.borderRightWidth),bottom:Bl(t.borderBottomWidth),left:Bl(t.borderLeftWidth)};return Ml({borderBox:e,margin:n,padding:r,border:o})},Ul=function(e){var t=e.getBoundingClientRect(),n=window.getComputedStyle(e);return Vl(t,n)},zl=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 Hl(e,t){}Hl.bind(null,"warn"),Hl.bind(null,"error");function Wl(){}function Gl(e,t,n){var r=t.map((function(t){var r=function(e,t){return Qt({},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()}))}}var ql="Invariant failed";function $l(e){this.message=e}function Yl(e,t){if(!e)throw new $l(ql)}$l.prototype.toString=function(){return this.message};var Ql=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=Wl,t.onWindowError=function(e){var n=t.getCallbacks();n.isDragging()&&n.tryAbort(),e.error instanceof $l&&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}Ma(t,e);var n=t.prototype;return n.componentDidMount=function(){this.unbind=Gl(window,[{eventName:"error",fn:this.onWindowError}])},n.componentDidCatch=function(e){if(!(e instanceof $l))throw e;this.setState({})},n.componentWillUnmount=function(){this.unbind()},n.render=function(){return this.props.children(this.setCallbacks)},t}(o.Component),Kl=function(e){return e+1},Xl=function(e,t){var n=e.droppableId===t.droppableId,r=Kl(e.index),o=Kl(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 "},Jl=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 "},Zl=function(e){return"\n The item has returned to its starting position\n of "+Kl(e.index)+"\n"},eu="\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",tu=function(e){return"\n You have lifted an item in position "+Kl(e.source.index)+"\n"},nu=function(e){var t=e.destination;if(t)return Xl(e.source,t);var n=e.combine;return n?Jl(e.draggableId,e.source,n):"You are over an area that cannot be dropped on"},ru=function(e){if("CANCEL"===e.reason)return"\n Movement cancelled.\n "+Zl(e.source)+"\n ";var t=e.destination,n=e.combine;return t?"\n You have dropped the item.\n "+Xl(e.source,t)+"\n ":n?"\n You have dropped the item.\n "+Jl(e.draggableId,e.source,n)+"\n ":"\n The item has been dropped while not over a drop area.\n "+Zl(e.source)+"\n "},ou={x:0,y:0},iu=function(e,t){return{x:e.x+t.x,y:e.y+t.y}},au=function(e,t){return{x:e.x-t.x,y:e.y-t.y}},lu=function(e,t){return e.x===t.x&&e.y===t.y},uu=function(e){return{x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}},su=function(e,t,n){var r;return void 0===n&&(n=0),(r={})[e]=t,r["x"===e?"y":"x"]=n,r},cu=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},fu=function(e,t){return Math.min.apply(Math,t.map((function(t){return cu(e,t)})))},du=function(e){return function(t){return{x:e(t.x),y:e(t.y)}}},pu=function(e,t){return{top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}},mu=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}]},hu=function(e,t){return t&&t.shouldClipSubject?function(e,t){var n=Nl({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):Nl(e)},vu=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?Qt({},e,((r={})[t.end]=e[t.end]+n.increasedBy[t.line],r)):e}(function(e,t){return t?pu(e,t.scroll.diff.displacement):e}(t.marginBox,o),r,n);return{page:t,withPlaceholder:n,active:hu(i,o)}},gu=function(e,t){e.frame||Yl(!1);var n=e.frame,r=au(t,n.scroll.initial),o=uu(r),i=Qt({},n,{scroll:{initial:n.scroll.initial,current:t,diff:{value:r,displacement:o},max:n.scroll.max}});return Qt({},e,{frame:i,subject:vu({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:i})})};function bu(e){return Object.values?Object.values(e):Object.keys(e).map((function(t){return e[t]}))}function yu(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 _u(e,t){if(e.find)return e.find(t);var n=yu(e,t);return-1!==n?e[n]:void 0}function wu(e){return Array.prototype.slice.call(e)}var Eu=Mo((function(e){return e.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{})})),Su=Mo((function(e){return e.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{})})),Ou=Mo((function(e){return bu(e)})),xu=Mo((function(e){return bu(e)})),ku=Mo((function(e,t){return xu(t).filter((function(t){return e===t.descriptor.droppableId})).sort((function(e,t){return e.descriptor.index-t.descriptor.index}))}));function Cu(e){return e.at&&"REORDER"===e.at.type?e.at.destination:null}function Pu(e){return e.at&&"COMBINE"===e.at.type?e.at.combine:null}var Iu=Mo((function(e,t){return t.filter((function(t){return t.descriptor.id!==e.descriptor.id}))})),Ru=function(e,t){return e.descriptor.droppableId===t.descriptor.id},Du={point:ou,value:0},Nu={invisible:{},visible:{},all:[]},Tu={displaced:Nu,displacedBy:Du,at:null},Lu=function(e,t){return function(n){return e<=n&&n<=t}},Au=function(e){var t=Lu(e.top,e.bottom),n=Lu(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)}},Mu=function(e){var t=Lu(e.top,e.bottom),n=Lu(e.left,e.right);return function(e){return t(e.top)&&t(e.bottom)&&n(e.left)&&n(e.right)}},Bu={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},Fu={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},ju=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:ou;return pu(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)},Vu=function(e){return ju(Qt({},e,{isVisibleThroughFrameFn:Au}))},Uu=function(e){return ju(Qt({},e,{isVisibleThroughFrameFn:Mu}))};function zu(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 Nl(Tl(n,r))}(t,r),u=t.descriptor.id;if(e.all.push(u),!Vu({target:l,destination:n,viewport:o,withDroppableDisplacement:!0}))return e.invisible[t.descriptor.id]=!0,e;var s={draggableId:u,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}(u,a,i)};return e.visible[u]=s,e}),{all:[],visible:{},invisible:{}})}function Hu(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:Nu,displacedBy:r,at:{type:"REORDER",destination:{droppableId:o.descriptor.id,index:i}}}}function Wu(e){var t=e.draggable,n=e.insideDestination,r=e.destination,o=e.viewport,i=e.displacedBy,a=e.last,l=e.index,u=e.forceShouldAnimate,s=Ru(t,r);if(null==l)return Hu({insideDestination:n,inHomeList:s,displacedBy:i,destination:r});var c=_u(n,(function(e){return e.descriptor.index===l}));if(!c)return Hu({insideDestination:n,inHomeList:s,displacedBy:i,destination:r});var f=Iu(t,n),d=n.indexOf(c);return{displaced:zu({afterDragging:f.slice(d),destination:r,displacedBy:i,last:a,viewport:o.frame,forceShouldAnimate:u}),displacedBy:i,at:{type:"REORDER",destination:{droppableId:r.descriptor.id,index:l}}}}function Gu(e,t){return Boolean(t.effected[e])}var qu=function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.draggable,o=e.draggables,i=e.destination,a=e.insideDestination,l=e.previousImpact,u=e.viewport,s=e.afterCritical,c=l.at;if(c||Yl(!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,u=r[r.length-1].descriptor.index;return a<l||a>(n?u:u+1)?null:a}({isMovingForward:t,isInHomeList:n,location:c.destination,insideDestination:a});return null==f?null:Wu({draggable:r,insideDestination:a,destination:i,viewport:u,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 Gu(a,i)?t?l:l-1:t?l+1:l}({isMovingForward:t,destination:i,displaced:l.displaced,draggables:o,combine:c.combine,afterCritical:s});return null==d?null:Wu({draggable:r,insideDestination:a,destination:i,viewport:u,last:l.displaced,displacedBy:l.displacedBy,index:d})},$u=function(e){var t=e.afterCritical,n=e.impact,r=e.draggables,o=Pu(n);o||Yl(!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 Gu(r,n)?i?ou:uu(o.point):i?o.point:ou}({displaced:n.displaced,afterCritical:t,combineWith:i,displacedBy:n.displacedBy});return iu(a,l)},Yu=function(e,t){return t.margin[e.start]+t.borderBox[e.size]/2},Qu=function(e,t,n){return t[e.crossAxisStart]+n.margin[e.crossAxisStart]+n.borderBox[e.crossAxisSize]/2},Ku=function(e){var t=e.axis,n=e.moveRelativeTo,r=e.isMoving;return su(t.line,n.marginBox[t.end]+Yu(t,r),Qu(t,n.marginBox,r))},Xu=function(e){var t=e.axis,n=e.moveRelativeTo,r=e.isMoving;return su(t.line,n.marginBox[t.start]-function(e,t){return t.margin[e.end]+t.borderBox[e.size]/2}(t,r),Qu(t,n.marginBox,r))},Ju=function(e){var t=e.impact,n=e.draggable,r=e.draggables,o=e.droppable,i=e.afterCritical,a=ku(o.descriptor.id,r),l=n.page,u=o.axis;if(!a.length)return function(e){var t=e.axis,n=e.moveInto,r=e.isMoving;return su(t.line,n.contentBox[t.start]+Yu(t,r),Qu(t,n.contentBox,r))}({axis:u,moveInto:o.page,isMoving:l});var s=t.displaced,c=t.displacedBy,f=s.all[0];if(f){var d=r[f];if(Gu(f,i))return Xu({axis:u,moveRelativeTo:d.page,isMoving:l});var p=Fl(d.page,c.point);return Xu({axis:u,moveRelativeTo:p,isMoving:l})}var m=a[a.length-1];if(m.descriptor.id===n.descriptor.id)return l.borderBox.center;if(Gu(m.descriptor.id,i)){var h=Fl(m.page,uu(i.displacedBy.point));return Ku({axis:u,moveRelativeTo:h,isMoving:l})}return Ku({axis:u,moveRelativeTo:m.page,isMoving:l})},Zu=function(e,t){var n=e.frame;return n?iu(t,n.scroll.diff.displacement):t},es=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?Ju({impact:t,draggable:n,draggables:o,droppable:r,afterCritical:i}):$u({impact:t,draggables:o,afterCritical:i}):a}(e),n=e.droppable;return n?Zu(n,t):t},ts=function(e,t){var n=au(t,e.scroll.initial),r=uu(n);return{frame:Nl({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 ns(e,t){return e.map((function(e){return t[e]}))}var rs=function(e){var t=e.pageBorderBoxCenter,n=e.draggable,r=function(e,t){return iu(e.scroll.diff.displacement,t)}(e.viewport,t),o=au(r,n.page.borderBox.center);return iu(n.client.borderBox.center,o)},os=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,u=au(r,t.page.borderBox.center),s={target:pu(t.page.borderBox,u),destination:n,withDroppableDisplacement:i,viewport:o};return l?function(e){return ju(Qt({},e,{isVisibleThroughFrameFn:(t=e.destination.axis,function(e){var n=Lu(e.top,e.bottom),r=Lu(e.left,e.right);return function(e){return t===Bu?n(e.top)&&n(e.bottom):r(e.left)&&r(e.right)}})}));var t}(s):Uu(s)},is=function(e){var t=e.isMovingForward,n=e.draggable,r=e.destination,o=e.draggables,i=e.previousImpact,a=e.viewport,l=e.previousPageBorderBoxCenter,u=e.previousClientSelection,s=e.afterCritical;if(!r.isEnabled)return null;var c=ku(r.descriptor.id,o),f=Ru(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(!Cu(i))return null;function a(e){var t={type:"COMBINE",combine:{draggableId:e,droppableId:r.descriptor.id}};return Qt({},i,{at:t})}var l=i.displaced.all,u=l.length?l[0]:null;if(t)return u?a(u):null;var s=Iu(n,o);if(!u)return s.length?a(s[s.length-1].descriptor.id):null;var c=yu(s,(function(e){return e.descriptor.id===u}));-1===c&&Yl(!1);var f=c-1;return f<0?null:a(s[f].descriptor.id)}({isMovingForward:t,draggable:n,destination:r,insideDestination:c,previousImpact:i})||qu({isMovingForward:t,isInHomeList:f,draggable:n,draggables:o,destination:r,insideDestination:c,previousImpact:i,viewport:a,afterCritical:s});if(!d)return null;var p=es({impact:d,draggable:n,droppable:r,draggables:o,afterCritical:s});if(os({draggable:n,destination:r,newPageBorderBoxCenter:p,viewport:a.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:rs({pageBorderBoxCenter:p,draggable:n,viewport:a}),impact:d,scrollJumpRequest:null};var m=au(p,l);return{clientSelection:u,impact:function(e){var t=e.impact,n=e.viewport,r=e.destination,o=e.draggables,i=e.maxScrollChange,a=ts(n,iu(n.scroll.current,i)),l=r.frame?gu(r,iu(r.frame.scroll.current,i)):r,u=t.displaced,s=zu({afterDragging:ns(u.all,o),destination:r,displacedBy:t.displacedBy,viewport:a.frame,last:u,forceShouldAnimate:!1}),c=zu({afterDragging:ns(u.all,o),destination:l,displacedBy:t.displacedBy,viewport:n.frame,last:u,forceShouldAnimate:!1}),f={},d={},p=[u,s,c];return u.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})),Qt({},t,{displaced:{all:u.all,invisible:f,visible:d}})}({impact:d,viewport:a,destination:r,draggables:o,maxScrollChange:m}),scrollJumpRequest:m}},as=function(e){var t=e.subject.active;return t||Yl(!1),t},ls=function(e,t){var n=e.page.borderBox.center;return Gu(e.descriptor.id,t)?au(n,t.displacedBy.point):n},us=function(e,t){var n=e.page.borderBox;return Gu(e.descriptor.id,t)?pu(n,uu(t.displacedBy.point)):n},ss=Mo((function(e,t){var n=t[e.line];return{value:n,point:su(e.line,n)}})),cs=function(e,t){return Qt({},e,{scroll:Qt({},e.scroll,{max:t})})},fs=function(e,t,n){var r=e.frame;Ru(t,e)&&Yl(!1),e.subject.withPlaceholder&&Yl(!1);var o=ss(e.axis,t.displaceBy).point,i=function(e,t,n){var r=e.axis;if("virtual"===e.descriptor.mode)return su(r.line,t[r.line]);var o=e.subject.page.contentBox[r.size],i=ku(e.descriptor.id,n).reduce((function(e,t){return e+t.client.marginBox[r.size]}),0)+t[r.line]-o;return i<=0?null:su(r.line,i)}(e,o,n),a={placeholderSize:o,increasedBy:i,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!r)return Qt({},e,{subject:vu({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:e.frame})});var l=i?iu(r.scroll.max,i):r.scroll.max,u=cs(r,l);return Qt({},e,{subject:vu({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:u}),frame:u})},ds=function(e){var t=e.isMovingForward,n=e.previousPageBorderBoxCenter,r=e.draggable,o=e.isOver,i=e.draggables,a=e.droppables,l=e.viewport,u=e.afterCritical,s=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,u=Lu(a[l.start],a[l.end]),s=Ou(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 Au(i.frame)(as(e))})).filter((function(e){var n=as(e);return t?a[l.crossAxisEnd]<n[l.crossAxisEnd]:n[l.crossAxisStart]<a[l.crossAxisStart]})).filter((function(e){var t=as(e),n=Lu(t[l.start],t[l.end]);return u(t[l.start])||u(t[l.end])||n(a[l.start])||n(a[l.end])})).sort((function(e,n){var r=as(e)[l.crossAxisStart],o=as(n)[l.crossAxisStart];return t?r-o:o-r})).filter((function(e,t,n){return as(e)[l.crossAxisStart]===as(n[0])[l.crossAxisStart]}));if(!s.length)return null;if(1===s.length)return s[0];var c=s.filter((function(e){return Lu(as(e)[l.start],as(e)[l.end])(n[l.line])}));return 1===c.length?c[0]:c.length>1?c.sort((function(e,t){return as(e)[l.start]-as(t)[l.start]}))[0]:s.sort((function(e,t){var r=fu(n,mu(as(e))),o=fu(n,mu(as(t)));return r!==o?r-o:as(e)[l.start]-as(t)[l.start]}))[0]}({isMovingForward:t,pageBorderBoxCenter:n,source:o,droppables:a,viewport:l});if(!s)return null;var c=ku(s.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,u=e.afterCritical;if(!n){if(r.length)return null;var s={displaced:Nu,displacedBy:Du,at:{type:"REORDER",destination:{droppableId:a.descriptor.id,index:0}}},c=es({impact:s,draggable:o,droppable:a,draggables:i,afterCritical:u}),f=Ru(o,a)?a:fs(a,o,i);return os({draggable:o,destination:f,newPageBorderBoxCenter:c,viewport:l.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?s:null}var d,p=Boolean(t[a.axis.line]<=n.page.borderBox.center[a.axis.line]),m=(d=n.descriptor.index,n.descriptor.id===o.descriptor.id||p?d:d+1),h=ss(a.axis,o.displaceBy);return Wu({draggable:o,insideDestination:r,destination:a,viewport:l,displacedBy:h,last:Nu,index:m})}({previousPageBorderBoxCenter:n,destination:s,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 Uu({target:us(e,i),destination:r,viewport:n.frame,withDroppableDisplacement:!0})})).sort((function(e,n){var o=cu(t,Zu(r,ls(e,i))),a=cu(t,Zu(r,ls(n,i)));return o<a?-1:a<o?1:e.descriptor.index-n.descriptor.index}))[0]||null}({pageBorderBoxCenter:n,viewport:l,destination:s,insideDestination:c,afterCritical:u}),insideDestination:c,viewport:l,afterCritical:u});if(!f)return null;var d=es({impact:f,draggable:r,droppable:s,draggables:i,afterCritical:u});return{clientSelection:rs({pageBorderBoxCenter:d,draggable:r,viewport:l}),impact:f,scrollJumpRequest:null}},ps=function(e){var t=e.at;return t?"REORDER"===t.type?t.destination.droppableId:t.combine.droppableId:null},ms=function(e){var t=e.state,n=e.type,r=function(e,t){var n=ps(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,u="vertical"===l&&("MOVE_UP"===n||"MOVE_DOWN"===n)||"horizontal"===l&&("MOVE_LEFT"===n||"MOVE_RIGHT"===n);if(u&&!o)return null;var s="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,m=d.droppables;return u?is({isMovingForward:s,previousPageBorderBoxCenter:f,draggable:c,destination:a,draggables:p,viewport:t.viewport,previousClientSelection:t.current.client.selection,previousImpact:t.impact,afterCritical:t.afterCritical}):ds({isMovingForward:s,previousPageBorderBoxCenter:f,draggable:c,isOver:a,draggables:p,droppables:m,viewport:t.viewport,afterCritical:t.afterCritical})};function hs(e){return"DRAGGING"===e.phase||"COLLECTING"===e.phase}function vs(e){var t=Lu(e.top,e.bottom),n=Lu(e.left,e.right);return function(e){return t(e.y)&&n(e.x)}}function gs(e){var t=e.pageBorderBox,n=e.draggable,r=e.droppables,o=Ou(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(vs(o)(t.center))return!0;var i=e.axis,a=o.center[i.crossAxisLine],l=t[i.crossAxisStart],u=t[i.crossAxisEnd],s=Lu(o[i.crossAxisStart],o[i.crossAxisEnd]),c=s(l),f=s(u);return!c&&!f||(c?l<a:u>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=su(e.axis.line,t.center[n.line],e.page.borderBox.center[n.crossAxisLine]);return{id:e.descriptor.id,distance:cu(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 bs=function(e,t){return Nl(pu(e,t))};function ys(e){var t=e.displaced,n=e.id;return Boolean(t.visible[n]||t.invisible[n])}var _s=function(e){var t=e.pageOffset,n=e.draggable,r=e.draggables,o=e.droppables,i=e.previousImpact,a=e.viewport,l=e.afterCritical,u=bs(n.page.borderBox,t),s=gs({pageBorderBox:u,draggable:n,droppables:o});if(!s)return Tu;var c=o[s],f=ku(c.descriptor.id,r),d=function(e,t){var n=e.frame;return n?bs(t,n.scroll.diff.value):t}(c,u);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,u=ss(o.axis,t.displaceBy),s=u.value,c=n[l.start],f=n[l.end],d=_u(Iu(t,i),(function(e){var t=e.descriptor.id,n=e.page.borderBox,o=n[l.size]/4,i=Gu(t,a),u=ys({displaced:r.displaced,id:t});return i?u?f>n[l.start]+o&&f<n[l.end]-o:c>n[l.start]-s+o&&c<n[l.end]-s-o:u?f>n[l.start]+s+o&&f<n[l.end]+s-o:c>n[l.start]+o&&c<n[l.end]-o}));return d?{displacedBy:u,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,u=r.axis,s=ss(r.axis,n.displaceBy),c=s.value,f=t[u.start],d=t[u.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:_u(Iu(n,o),(function(e){var t=e.descriptor.id,n=e.page.borderBox.center[u.line],r=Gu(t,l),o=ys({displaced:i,id:t});return r?o?d<=n:f<n-c:o?d<=n+c:f<n})),inHomeList:Ru(n,r)});return Wu({draggable:n,insideDestination:o,destination:r,viewport:a,last:i,displacedBy:s,index:p})}({pageBorderBoxWithDroppableScroll:d,draggable:n,destination:c,insideDestination:f,last:i.displaced,viewport:a,afterCritical:l})},ws=function(e,t){var n;return Qt({},e,((n={})[t.descriptor.id]=t,n))},Es=function(e){var t=e.previousImpact,n=e.impact,r=e.droppables,o=ps(t),i=ps(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||Yl(!1);var n=e.frame;if(!n)return Qt({},e,{subject:vu({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null})});var r=t.oldFrameMaxScroll;r||Yl(!1);var o=cs(n,r);return Qt({},e,{subject:vu({page:e.subject.page,axis:e.axis,frame:o,withPlaceholder:null}),frame:o})}(a);return ws(r,l)},Ss=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,u=r||t.dimensions,s=n||t.current.client.selection,c=au(s,t.initial.client.selection),f={offset:c,selection:s,borderBoxCenter:iu(t.initial.client.borderBoxCenter,c)},d={selection:iu(f.selection,l.scroll.current),borderBoxCenter:iu(f.borderBoxCenter,l.scroll.current),offset:iu(f.offset,l.scroll.diff.value)},p={client:f,page:d};if("COLLECTING"===t.phase)return Qt({phase:"COLLECTING"},t,{dimensions:u,viewport:l,current:p});var m=u.draggables[t.critical.draggable.id],h=i||_s({pageOffset:d.offset,draggable:m,draggables:u.draggables,droppables:u.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=Es({previousImpact:o,impact:i,droppables:r}),l=ps(i);if(!l)return a;var u=r[l];if(Ru(t,u))return a;if(u.subject.withPlaceholder)return a;var s=fs(u,t,n);return ws(a,s)}({draggable:m,impact:h,previousImpact:t.impact,draggables:u.draggables,droppables:u.droppables});return Qt({},t,{current:p,dimensions:{draggables:u.draggables,droppables:v},impact:h,viewport:l,scrollJumpRequest:a||null,forceShouldAnimate:!a&&null})};var Os=function(e){var t=e.impact,n=e.viewport,r=e.draggables,o=e.destination,i=e.forceShouldAnimate,a=t.displaced;return Qt({},t,{displaced:zu({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})})},xs=function(e){var t=e.impact,n=e.draggable,r=e.droppable,o=e.draggables,i=e.viewport,a=e.afterCritical,l=es({impact:t,draggable:n,draggables:o,droppable:r,afterCritical:a});return rs({pageBorderBoxCenter:l,draggable:n,viewport:i})},ks=function(e){var t=e.state,n=e.dimensions,r=e.viewport;"SNAP"!==t.movementMode&&Yl(!1);var o=t.impact,i=r||t.viewport,a=n||t.dimensions,l=a.draggables,u=a.droppables,s=l[t.critical.draggable.id],c=ps(o);c||Yl(!1);var f=u[c],d=Os({impact:o,viewport:i,destination:f,draggables:l}),p=xs({impact:d,draggable:s,droppable:f,draggables:l,viewport:i,afterCritical:t.afterCritical});return Ss({impact:d,clientSelection:p,state:t,dimensions:a,viewport:i})},Cs=function(e){var t=e.draggable,n=e.home,r=e.draggables,o=e.viewport,i=ss(n.axis,t.displaceBy),a=ku(n.descriptor.id,r),l=a.indexOf(t);-1===l&&Yl(!1);var u,s=a.slice(l+1),c=s.reduce((function(e,t){return e[t.descriptor.id]=!0,e}),{}),f={inVirtualList:"virtual"===n.descriptor.mode,displacedBy:i,effected:c};return{impact:{displaced:zu({afterDragging:s,destination:n,displacedBy:i,last:null,viewport:o.frame,forceShouldAnimate:!1}),displacedBy:i,at:{type:"REORDER",destination:(u=t.descriptor,{index:u.index,droppableId:u.droppableId})}},afterCritical:f}},Ps=function(e){0},Is=function(e){0},Rs=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||Yl(!1),t}(n[t]).scroll.diff.value;return function(e){var t=e.draggable,n=e.offset,r=e.initialWindowScroll,o=Fl(t.client,n),i=jl(o,r);return Qt({},t,{placeholder:Qt({},t.placeholder,{client:o}),client:o,page:i})}({draggable:e,offset:iu(o,i),initialWindowScroll:r.scroll.initial})}))},Ds=function(e){return"SNAP"===e.movementMode},Ns=function(e,t,n){var r=function(e,t){return{draggables:e.draggables,droppables:ws(e.droppables,t)}}(e.dimensions,t);return!Ds(e)||n?Ss({state:e,dimensions:r}):ks({state:e,dimensions:r})};function Ts(e){return e.isDragging&&"SNAP"===e.movementMode?Qt({phase:"DRAGGING"},e,{scrollJumpRequest:null}):e}var Ls={phase:"IDLE",completed:null,shouldFlush:!1},As=function(e,t){if(void 0===e&&(e=Ls),"FLUSH"===t.type)return Qt({},Ls,{shouldFlush:!0});if("INITIAL_PUBLISH"===t.type){"IDLE"!==e.phase&&Yl(!1);var n=t.payload,r=n.critical,o=n.clientSelection,i=n.viewport,a=n.dimensions,l=n.movementMode,u=a.draggables[r.draggable.id],s=a.droppables[r.droppable.id],c={selection:o,borderBoxCenter:u.client.borderBox.center,offset:ou},f={client:c,page:{selection:iu(c.selection,i.scroll.initial),borderBoxCenter:iu(c.selection,i.scroll.initial),offset:iu(c.selection,i.scroll.diff.value)}},d=Ou(a.droppables).every((function(e){return!e.isFixedOnPage})),p=Cs({draggable:u,home:s,draggables:a.draggables,viewport:i}),m=p.impact;return{phase:"DRAGGING",isDragging:!0,critical:r,movementMode:l,dimensions:a,initial:f,current:f,isWindowScrollAllowed:d,impact:m,afterCritical:p.afterCritical,onLiftImpact:m,viewport:i,scrollJumpRequest:null,forceShouldAnimate:null}}if("COLLECTION_STARTING"===t.type)return"COLLECTING"===e.phase||"DROP_PENDING"===e.phase?e:("DRAGGING"!==e.phase&&Yl(!1),Qt({phase:"COLLECTING"},e,{phase:"COLLECTING"}));if("PUBLISH_WHILE_DRAGGING"===t.type)return"COLLECTING"!==e.phase&&"DROP_PENDING"!==e.phase&&Yl(!1),function(e){var t=e.state,n=e.published;Ps();var r=n.modified.map((function(e){var n=t.dimensions.droppables[e.droppableId];return gu(n,e.scroll)})),o=Qt({},t.dimensions.droppables,{},Eu(r)),i=Su(Rs({additions:n.additions,updatedDroppables:o,viewport:t.viewport})),a=Qt({},t.dimensions.draggables,{},i);n.removals.forEach((function(e){delete a[e]}));var l={droppables:o,draggables:a},u=ps(t.impact),s=u?l.droppables[u]:null,c=l.draggables[t.critical.draggable.id],f=l.droppables[t.critical.droppable.id],d=Cs({draggable:c,home:f,draggables:a,viewport:t.viewport}),p=d.impact,m=d.afterCritical,h=s&&s.isCombineEnabled?t.impact:p,v=_s({pageOffset:t.current.page.offset,draggable:l.draggables[t.critical.draggable.id],draggables:l.draggables,droppables:l.droppables,previousImpact:h,viewport:t.viewport,afterCritical:m});Is();var g=Qt({phase:"DRAGGING"},t,{phase:"DRAGGING",impact:v,onLiftImpact:p,dimensions:l,afterCritical:m,forceShouldAnimate:!1});return"COLLECTING"===t.phase?g:Qt({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;hs(e)||Yl(!1);var h=t.payload.client;return lu(h,e.current.client.selection)?e:Ss({state:e,clientSelection:h,impact:Ds(e)?e.impact:null})}if("UPDATE_DROPPABLE_SCROLL"===t.type){if("DROP_PENDING"===e.phase)return Ts(e);if("COLLECTING"===e.phase)return Ts(e);hs(e)||Yl(!1);var v=t.payload,g=v.id,b=v.newScroll,y=e.dimensions.droppables[g];if(!y)return e;var _=gu(y,b);return Ns(e,_,!1)}if("UPDATE_DROPPABLE_IS_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;hs(e)||Yl(!1);var w=t.payload,E=w.id,S=w.isEnabled,O=e.dimensions.droppables[E];O||Yl(!1),O.isEnabled===S&&Yl(!1);var x=Qt({},O,{isEnabled:S});return Ns(e,x,!0)}if("UPDATE_DROPPABLE_IS_COMBINE_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;hs(e)||Yl(!1);var k=t.payload,C=k.id,P=k.isCombineEnabled,I=e.dimensions.droppables[C];I||Yl(!1),I.isCombineEnabled===P&&Yl(!1);var R=Qt({},I,{isCombineEnabled:P});return Ns(e,R,!0)}if("MOVE_BY_WINDOW_SCROLL"===t.type){if("DROP_PENDING"===e.phase||"DROP_ANIMATING"===e.phase)return e;hs(e)||Yl(!1),e.isWindowScrollAllowed||Yl(!1);var D=t.payload.newScroll;if(lu(e.viewport.scroll.current,D))return Ts(e);var N=ts(e.viewport,D);return Ds(e)?ks({state:e,viewport:N}):Ss({state:e,viewport:N})}if("UPDATE_VIEWPORT_MAX_SCROLL"===t.type){if(!hs(e))return e;var T=t.payload.maxScroll;if(lu(T,e.viewport.scroll.max))return e;var L=Qt({},e.viewport,{scroll:Qt({},e.viewport.scroll,{max:T})});return Qt({phase:"DRAGGING"},e,{viewport:L})}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&&Yl(!1);var A=ms({state:e,type:t.type});return A?Ss({state:e,impact:A.impact,clientSelection:A.clientSelection,scrollJumpRequest:A.scrollJumpRequest}):e}if("DROP_PENDING"===t.type){var M=t.payload.reason;return"COLLECTING"!==e.phase&&Yl(!1),Qt({phase:"DROP_PENDING"},e,{phase:"DROP_PENDING",isWaiting:!0,reason:M})}if("DROP_ANIMATE"===t.type){var B=t.payload,F=B.completed,j=B.dropDuration,V=B.newHomeClientOffset;return"DRAGGING"!==e.phase&&"DROP_PENDING"!==e.phase&&Yl(!1),{phase:"DROP_ANIMATING",completed:F,dropDuration:j,newHomeClientOffset:V,dimensions:e.dimensions}}return"DROP_COMPLETE"===t.type?{phase:"IDLE",completed:t.payload.completed,shouldFlush:!1}:e},Ms=function(e){return{type:"PUBLISH_WHILE_DRAGGING",payload:e}},Bs=function(){return{type:"COLLECTION_STARTING",payload:null}},Fs=function(e){return{type:"UPDATE_DROPPABLE_SCROLL",payload:e}},js=function(e){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}},Vs=function(e){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}},Us=function(e){return{type:"MOVE",payload:e}},zs=function(){return{type:"MOVE_UP",payload:null}},Hs=function(){return{type:"MOVE_DOWN",payload:null}},Ws=function(){return{type:"MOVE_RIGHT",payload:null}},Gs=function(){return{type:"MOVE_LEFT",payload:null}},qs=function(e){return{type:"DROP_COMPLETE",payload:e}},$s=function(e){return{type:"DROP",payload:e}},Ys=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}};var Qs="cubic-bezier(.2,1,.1,1)",Ks={drop:0,combining:.7},Xs={drop:.75},Js=.2+"s "+"cubic-bezier(0.2, 0, 0, 1)",Zs={fluid:"opacity "+Js,snap:"transform "+Js+", opacity "+Js,drop:function(e){var t=e+"s "+Qs;return"transform "+t+", opacity "+t},outOfTheWay:"transform "+Js,placeholder:"height "+Js+", width "+Js+", margin "+Js},ec=function(e){return lu(e,ou)?null:"translate("+e.x+"px, "+e.y+"px)"},tc=ec,nc=function(e,t){var n=ec(e);return n?t?n+" scale("+Xs.drop+")":n:null},rc=.33,oc=.55,ic=oc-rc,ac=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&&Yl(!1),"DRAGGING"!==o.phase&&"DROP_PENDING"!==o.phase&&Yl(!1);var a=o.critical,l=o.dimensions,u=l.draggables[o.critical.draggable.id],s=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:Qt({},r,{displaced:Nu}),didDropInsideDroppable:!0}:{impact:Os({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=s.impact,f=s.didDropInsideDroppable,d=f?Cu(c):null,p=f?Pu(c):null,m={index:a.draggable.index,droppableId:a.droppable.id},h={draggableId:u.descriptor.id,type:u.descriptor.type,source:m,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,u=ps(t),s=u?l[u]:null,c=l[n.descriptor.droppableId],f=xs({impact:t,draggable:n,draggables:a,afterCritical:i,droppable:s||c,viewport:o});return au(f,n.client.borderBox.center)}({impact:c,draggable:u,dimensions:l,viewport:o.viewport,afterCritical:o.afterCritical}),g={critical:o.critical,afterCritical:o.afterCritical,result:h,impact:c};if(!lu(o.current.client.offset,v)||Boolean(h.combine)){var b=function(e){var t=e.current,n=e.destination,r=e.reason,o=cu(t,n);if(o<=0)return rc;if(o>=1500)return oc;var i=rc+ic*(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:b,completed:g}))}else n(qs({completed:g}))}}else n(function(e){return{type:"DROP_PENDING",payload:e}}({reason:i}))}else e(r)}}},lc=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function uc(e){var t=e.onWindowScroll;var n=zl((function(){t(lc())})),r=function(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(t){t.target!==window&&t.target!==window.document||e()}}}(n),o=Wl;function i(){return o!==Wl}return{start:function(){i()&&Yl(!1),o=Gl(window,[r])},stop:function(){i()||Yl(!1),n.cancel(),o(),o=Wl},isActive:i}}var sc=function(e){var t=uc({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)}}},cc=function(){var e=[];return{add:function(t){var n=setTimeout((function(){return function(t){var n=yu(e,(function(e){return e.timerId===t}));-1===n&&Yl(!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()}))}}}},fc=function(e,t){Ps(),t(),Is()},dc=function(e,t){return{draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t}},pc=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))},mc=function(e,t){var n=function(e,t){var n=cc(),r=null,o=function(n){r||Yl(!1),r=null,fc(0,(function(){return pc(e().onDragEnd,n,t,ru)}))};return{beforeCapture:function(t,n){r&&Yl(!1),fc(0,(function(){var r=e().onBeforeCapture;r&&r({draggableId:t,mode:n})}))},beforeStart:function(t,n){r&&Yl(!1),fc(0,(function(){var r=e().onBeforeDragStart;r&&r(dc(t,n))}))},start:function(o,i){r&&Yl(!1);var a=dc(o,i);r={mode:i,lastCritical:o,lastLocation:a.source,lastCombine:null},n.add((function(){fc(0,(function(){return pc(e().onDragStart,a,t,tu)}))}))},update:function(o,i){var a=Cu(i),l=Pu(i);r||Yl(!1);var u=!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);u&&(r.lastCritical=o);var s,c,f=(c=a,!(null==(s=r.lastLocation)&&null==c||null!=s&&null!=c&&s.droppableId===c.droppableId&&s.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),u||f||d){var p=Qt({},dc(o,r.mode),{combine:l,destination:a});n.add((function(){fc(0,(function(){return pc(e().onDragUpdate,p,t,nu)}))}))}},flush:function(){r||Yl(!1),n.flush()},drop:o,abort:function(){if(r){var e=Qt({},dc(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)}}}},hc=function(e){return function(t){return function(n){if("DROP_ANIMATION_FINISHED"===n.type){var r=e.getState();"DROP_ANIMATING"!==r.phase&&Yl(!1),e.dispatch(qs({completed:r.completed}))}else t(n)}}},vc=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=Gl(window,[i])}))}}}},gc=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($s({reason:r.reason})))}}}},bc=$a,yc=function(e){var t,n=e.dimensionMarshal,r=e.focusMarshal,o=e.styleMarshal,i=e.getResponders,a=e.announce,l=e.autoScroller;return Wa(As,bc(function(){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(ja(15))},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},i=t.map((function(e){return e(o)}));return r=$a.apply(void 0,i)(n.dispatch),Fa(Fa({},n),{},{dispatch:r})}}}((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,u=i.movementMode,s=n();"DROP_ANIMATING"===s.phase&&r(qs({completed:s.completed})),"IDLE"!==n().phase&&Yl(!1),r({type:"FLUSH",payload:null}),r({type:"BEFORE_INITIAL_CAPTURE",payload:{draggableId:a,movementMode:u}});var c={draggableId:a,scrollOptions:{shouldPublishImmediately:"SNAP"===u}},f=e.startPublishing(c),d=f.critical,p=f.dimensions,m=f.viewport;r({type:"INITIAL_PUBLISH",payload:{critical:d,dimensions:p,clientSelection:l,movementMode:u,viewport:m}})}else t(o)}}}}(n),ac,hc,vc,gc,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&&Yl(!1),void e.start(o)}n(r),e.scroll(t.getState())}}}}(l),sc,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),mc(i,a))))};var _c=function(e){var t=e.scrollHeight,n=e.scrollWidth,r=e.height,o=e.width,i=au({x:n,y:t},{x:o,y:r});return{x:Math.max(0,i.x),y:Math.max(0,i.y)}},wc=function(){var e=document.documentElement;return e||Yl(!1),e},Ec=function(){var e=wc();return _c({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})},Sc=function(e){var t=e.critical,n=e.scrollOptions,r=e.registry;Ps();var o,i,a,l,u,s,c,f=(o=lc(),i=Ec(),a=o.y,l=o.x,u=wc(),s=u.clientWidth,c=u.clientHeight,{frame:Nl({top:a,left:l,right:l+s,bottom:a+c}),scroll:{initial:o,current:o,max:i,diff:{value:ou,displacement:ou}}}),d=f.scroll.current,p=t.droppable,m=r.droppable.getAllByType(p.type).map((function(e){return e.callbacks.getDimensionAndWatchScroll(d,n)})),h=r.draggable.getAllByType(t.draggable.type).map((function(e){return e.getDimension(d)})),v={draggables:Su(h),droppables:Eu(m)};return Is(),{dimensions:v,critical:t,viewport:f}};function Oc(e,t,n){return n.descriptor.id!==t.id&&(n.descriptor.type===t.type&&"virtual"===e.droppable.getById(n.descriptor.droppableId).descriptor.mode)}var xc,kc,Cc=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,Ps();var e=r,i=e.additions,a=e.removals,l=e.modified,u=Object.keys(i).map((function(e){return t.draggable.getById(e).getDimension(ou)})).sort((function(e,t){return e.descriptor.index-t.descriptor.index})),s=Object.keys(l).map((function(e){return{droppableId:e,scroll:t.droppable.getById(e).callbacks.getScrollWhileDragging()}})),c={additions:u,removals:Object.keys(a),modified:s};r={additions:{},removals:{},modified:{}},Is(),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||Yl(!1);var o=n.critical.draggable;"ADDITION"===t.type&&Oc(e,o,t.value)&&r.add(t.value),"REMOVAL"===t.type&&Oc(e,o,t.value)&&r.remove(t.value)};return{updateDroppableIsEnabled:function(r,o){e.droppable.exists(r)||Yl(!1),n&&t.updateDroppableIsEnabled({id:r,isEnabled:o})},updateDroppableIsCombineEnabled:function(r,o){n&&(e.droppable.exists(r)||Yl(!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)||Yl(!1),t.updateDroppableScroll({id:r,newScroll:o}))},startPublishing:function(t){n&&Yl(!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},Sc({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}}}},Pc=function(e,t){return"IDLE"===e.phase||"DROP_ANIMATING"===e.phase&&(e.completed.result.draggableId!==t&&"DROP"===e.completed.result.reason)},Ic=function(e){window.scrollBy(e.x,e.y)},Rc=Mo((function(e){return Ou(e).filter((function(e){return!!e.isEnabled&&!!e.frame}))})),Dc=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 _u(Rc(t),(function(t){return t.frame||Yl(!1),vs(t.frame.pageMarginBox)(e)}))}(t,r)},Nc=.25,Tc=.05,Lc=28,Ac=function(e){return Math.pow(e,2)},Mc={stopDampeningAt:1200,accelerateAt:360},Bc=function(e){var t=e.startOfRange,n=e.endOfRange,r=e.current,o=n-t;return 0===o?0:(r-t)/o},Fc=Mc.accelerateAt,jc=Mc.stopDampeningAt,Vc=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 Lc;if(e===t.startScrollingFrom)return 1;var n=Bc({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),r=Lc*Ac(1-n);return Math.ceil(r)}(t,n);return 0===i?0:o?Math.max(function(e,t){var n=t,r=jc,o=Date.now()-n;if(o>=jc)return e;if(o<Fc)return 1;var i=Bc({startOfRange:Fc,endOfRange:r,current:o}),a=e*Ac(i);return Math.ceil(a)}(i,r),1):i},Uc=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]*Nc,maxScrollValueAt:e[t.size]*Tc}}(t,o);return n[o.end]<n[o.start]?Vc({distanceToEdge:n[o.end],thresholds:a,dragStartTime:r,shouldUseTimeDampening:i}):-1*Vc({distanceToEdge:n[o.start],thresholds:a,dragStartTime:r,shouldUseTimeDampening:i})},zc=du((function(e){return 0===e?0:e})),Hc=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=Uc({container:n,distanceToEdges:a,dragStartTime:t,axis:Bu,shouldUseTimeDampening:i}),u=Uc({container:n,distanceToEdges:a,dragStartTime:t,axis:Fu,shouldUseTimeDampening:i}),s=zc({x:u,y:l});if(lu(s,ou))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:s});return c?lu(c,ou)?null:c:null},Wc=du((function(e){return 0===e?0:e>0?1:-1})),Gc=(xc=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=iu(t,r),i={x:xc(o.x,n.x),y:xc(o.y,n.y)};return lu(i,ou)?null:i}),qc=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=Wc(r),a=Gc({max:o,current:n,change:i});return!a||(0!==i.x&&0===a.x||0!==i.y&&0===a.y)},$c=function(e,t){return qc({current:e.scroll.current,max:e.scroll.max,change:t})},Yc=function(e,t){var n=e.frame;return!!n&&qc({current:n.scroll.current,max:n.scroll.max,change:t})},Qc=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 u=function(e){var t=e.viewport,n=e.subject,r=e.center,o=e.dragStartTime,i=e.shouldUseTimeDampening,a=Hc({dragStartTime:o,container:t.frame,subject:n,center:r,shouldUseTimeDampening:i});return a&&$c(t,a)?a:null}({dragStartTime:n,viewport:t.viewport,subject:l,center:a,shouldUseTimeDampening:r});if(u)return void o(u)}var s=Dc({center:a,destination:ps(t.impact),droppables:t.dimensions.droppables});if(s){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=Hc({dragStartTime:o,container:a.pageMarginBox,subject:n,center:r,shouldUseTimeDampening:i});return l&&Yc(t,l)?l:null}({dragStartTime:n,droppable:s,subject:l,center:a,shouldUseTimeDampening:r});c&&i(s.descriptor.id,c)}},Kc=function(e){var t=e.move,n=e.scrollDroppable,r=e.scrollWindow,o=function(e,t){if(!Yc(e,t))return t;var r=function(e,t){var n=e.frame;return n&&Yc(e,t)?Gc({current:n.scroll.current,max:n.scroll.max,change:t}):null}(e,t);if(!r)return n(e.descriptor.id,t),null;var o=au(t,r);return n(e.descriptor.id,o),au(t,o)},i=function(e,t,n){if(!e)return n;if(!$c(t,n))return n;var o=function(e,t){if(!$c(e,t))return null;var n=e.scroll.max,r=e.scroll.current;return Gc({current:r,max:n,change:t})}(t,n);if(!o)return r(n),null;var i=au(n,o);return r(i),au(n,i)};return function(e){var n=e.scrollJumpRequest;if(n){var r=ps(e.impact);r||Yl(!1);var a=o(e.dimensions.droppables[r],n);if(a){var l=e.viewport,u=i(e.isWindowScrollAllowed,l,a);u&&function(e,n){var r=iu(e.current.client.selection,n);t({client:r})}(e,u)}}}},Xc=function(e){var t=e.scrollDroppable,n=e.scrollWindow,r=e.move,o=function(e){var t=e.scrollWindow,n=e.scrollDroppable,r=zl(t),o=zl(n),i=null,a=function(e){i||Yl(!1);var t=i,n=t.shouldUseTimeDampening,a=t.dragStartTime;Qc({state:e,scrollWindow:r,scrollDroppable:o,dragStartTime:a,shouldUseTimeDampening:n})};return{start:function(e){Ps(),i&&Yl(!1);var t=Date.now(),n=!1,r=function(){n=!0};Qc({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:r,scrollDroppable:r}),i={dragStartTime:t,shouldUseTimeDampening:n},Is(),n&&a(e)},stop:function(){i&&(r.cancel(),o.cancel(),i=null)},scroll:a}}({scrollWindow:n,scrollDroppable:t}),i=Kc({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}},Jc={base:kc="data-rbd-drag-handle",draggableId:kc+"-draggable-id",contextId:kc+"-context-id"},Zc=function(){var e="data-rbd-draggable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),ef=function(){var e="data-rbd-droppable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),tf={contextId:"data-rbd-scroll-container-context-id"},nf=function(e,t){return e.map((function(e){var n=e.styles[t];return n?e.selector+" { "+n+" }":""})).join(" ")},rf="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?o.useLayoutEffect:o.useEffect,of=function(){var e=document.querySelector("head");return e||Yl(!1),e},af=function(e){var t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t};function lf(e,t){var n=Pl((function(){return function(e){var t,n,r,o=(t=e,function(e){return"["+e+'="'+t+'"]'}),i=(n="\n cursor: -webkit-grab;\n cursor: grab;\n ",{selector:o(Jc.contextId),styles:{always:"\n -webkit-touch-callout: none;\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n touch-action: manipulation;\n ",resting:n,dragging:"pointer-events: none;",dropAnimating:n}}),a=[(r="\n transition: "+Zs.outOfTheWay+";\n ",{selector:o(Zc.contextId),styles:{dragging:r,dropAnimating:r,userCancel:r}}),i,{selector:o(ef.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:nf(a,"always"),resting:nf(a,"resting"),dragging:nf(a,"dragging"),dropAnimating:nf(a,"dropAnimating"),userCancel:nf(a,"userCancel")}}(e)}),[e]),r=(0,o.useRef)(null),i=(0,o.useRef)(null),a=Il(Mo((function(e){var t=i.current;t||Yl(!1),t.textContent=e})),[]),l=Il((function(e){var t=r.current;t||Yl(!1),t.textContent=e}),[]);rf((function(){(r.current||i.current)&&Yl(!1);var o=af(t),u=af(t);return r.current=o,i.current=u,o.setAttribute("data-rbd-always",e),u.setAttribute("data-rbd-dynamic",e),of().appendChild(o),of().appendChild(u),l(n.always),a(n.resting),function(){var e=function(e){var t=e.current;t||Yl(!1),of().removeChild(t),e.current=null};e(r),e(i)}}),[t,l,a,n.always,n.resting,e]);var u=Il((function(){return a(n.dragging)}),[a,n.dragging]),s=Il((function(e){a("DROP"!==e?n.userCancel:n.dropAnimating)}),[a,n.dropAnimating,n.userCancel]),c=Il((function(){i.current&&a(n.resting)}),[a,n.resting]);return Pl((function(){return{dragging:u,dropping:s,resting:c}}),[u,s,c])}var uf=function(e){return e&&e.ownerDocument?e.ownerDocument.defaultView:window};function sf(e){return e instanceof uf(e).HTMLElement}function cf(e,t){var n="["+Jc.contextId+'="'+e+'"]',r=wu(document.querySelectorAll(n));if(!r.length)return null;var o=_u(r,(function(e){return e.getAttribute(Jc.draggableId)===t}));return o&&sf(o)?o:null}function ff(){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||Yl(!1),t},findById:r,exists:function(e){return Boolean(r(e))},getAllByType:function(t){return bu(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||Yl(!1),t},findById:o,exists:function(e){return Boolean(o(e))},getAllByType:function(t){return bu(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 df=o.createContext(null),pf=function(){var e=document.body;return e||Yl(!1),e},mf={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 hf=0,vf={separator:"::"};function gf(e,t){return void 0===t&&(t=vf),Pl((function(){return""+e+t.separator+hf++}),[t.separator,e])}var bf=o.createContext(null);function yf(e){0}function _f(e,t){yf()}function wf(){_f()}function Ef(e){var t=(0,o.useRef)(e);return(0,o.useEffect)((function(){t.current=e})),t}var Sf,Of=((Sf={})[13]=!0,Sf[9]=!0,Sf),xf=function(e){Of[e.keyCode]&&e.preventDefault()},kf=function(){var e="visibilitychange";return"undefined"==typeof document?e:_u([e,"ms"+e,"webkit"+e,"moz"+e,"o"+e],(function(e){return"on"+e in document}))||e}();var Cf,Pf={type:"IDLE"};function If(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&&Yl(!1);var u=l.point;if(s=u,c=a,Math.abs(c.x-s.x)>=5||Math.abs(c.y-s.y)>=5){var s,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 xf(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&&Yl(!1),n.actions.shouldRespectForcePress()?t():e.preventDefault()}},{eventName:kf,fn:t}]}function Rf(){}var Df=((Cf={})[34]=!0,Cf[33]=!0,Cf[36]=!0,Cf[35]=!0,Cf);function Nf(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(Df[r.keyCode]?r.preventDefault():xf(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:kf,fn:n}]}var Tf={type:"IDLE"};var Lf={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function Af(e,t){if(null==t)return!1;if(Boolean(Lf[t.tagName.toLowerCase()]))return!0;var n=t.getAttribute("contenteditable");return"true"===n||""===n||t!==e&&Af(e,t.parentElement)}function Mf(e,t){var n=t.target;return!!sf(n)&&Af(e,n)}var Bf=function(e){return Nl(e.getBoundingClientRect()).center};var Ff=function(){var e="matches";return"undefined"==typeof document?e:_u([e,"msMatchesSelector","webkitMatchesSelector"],(function(e){return e in Element.prototype}))||e}();function jf(e,t){return null==e?null:e[Ff](t)?e:jf(e.parentElement,t)}function Vf(e,t){return e.closest?e.closest(t):jf(e,t)}function Uf(e,t){var n,r=t.target;if(!((n=r)instanceof uf(n).Element))return null;var o=Vf(r,function(e){return"["+Jc.contextId+'="'+e+'"]'}(e));return o&&sf(o)?o:null}function zf(e){e.preventDefault()}function Hf(e){var t=e.expected,n=e.phase,r=e.isLockActive;e.shouldWarn;return!!r()&&t===n}function Wf(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&&!!Pc(n.getState(),o))}function Gf(e){var t=e.lockAPI,n=e.contextId,r=e.store,o=e.registry,i=e.draggableId,a=e.forceSensorStop,l=e.sourceEvent;if(!Wf({lockAPI:t,store:r,registry:o,draggableId:i}))return null;var u=o.draggable.getById(i),s=function(e,t){var n="["+Zc.contextId+'="'+e+'"]',r=_u(wu(document.querySelectorAll(n)),(function(e){return e.getAttribute(Zc.id)===t}));return r&&sf(r)?r:null}(n,u.descriptor.id);if(!s)return null;if(l&&!u.options.canDragInteractiveElements&&Mf(s,l))return null;var c=t.claim(a||Wl),f="PRE_DRAG";function d(){return u.options.shouldRespectForcePress}function p(){return t.isActive(c)}var m=function(e,t){Hf({expected:e,phase:f,isLockActive:p,shouldWarn:!0})&&r.dispatch(t())}.bind(null,"DRAGGING");function h(e){function n(){t.release(),f="COMPLETED"}function o(t,o){if(void 0===o&&(o={shouldBlockNextClick:!1}),e.cleanup(),o.shouldBlockNextClick){var i=Gl(window,[{eventName:"click",fn:zf,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(i)}n(),r.dispatch($s({reason:t}))}return"PRE_DRAG"!==f&&(n(),"PRE_DRAG"!==f&&Yl(!1)),r.dispatch(function(e){return{type:"LIFT",payload:e}}(e.liftActionArgs)),f="DRAGGING",Qt({isActive:function(){return Hf({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 Hf({expected:"PRE_DRAG",phase:f,isLockActive:p,shouldWarn:!1})},shouldRespectForcePress:d,fluidLift:function(e){var t=zl((function(e){m((function(){return Us({client:e})}))}));return Qt({},h({liftActionArgs:{id:i,clientSelection:e,movementMode:"FLUID"},cleanup:function(){return t.cancel()},actions:{move:t}}),{move:t})},snapLift:function(){var e={moveUp:function(){return m(zs)},moveRight:function(){return m(Ws)},moveDown:function(){return m(Hs)},moveLeft:function(){return m(Gs)}};return h({liftActionArgs:{id:i,clientSelection:Bf(s),movementMode:"SNAP"},cleanup:Wl,actions:e})},abort:function(){Hf({expected:"PRE_DRAG",phase:f,isLockActive:p,shouldWarn:!0})&&t.release()}}}var qf=[function(e){var t=(0,o.useRef)(Pf),n=(0,o.useRef)(Wl),r=Pl((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=Pl((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=Il((function(){n.current=Gl(window,[i,r],{passive:!1,capture:!0})}),[i,r]),l=Il((function(){"IDLE"!==t.current.type&&(t.current=Pf,n.current(),a())}),[a]),u=Il((function(){var e=t.current;l(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[l]),s=Il((function(){var e=If({cancel:u,completed:l,getPhase:function(){return t.current},setPhase:function(e){t.current=e}});n.current=Gl(window,e,{capture:!0,passive:!1})}),[u,l]),c=Il((function(e,n){"IDLE"!==t.current.type&&Yl(!1),t.current={type:"PENDING",point:n,actions:e},s()}),[s]);rf((function(){return a(),function(){n.current()}}),[a])},function(e){var t=(0,o.useRef)(Rf),n=Pl((function(){return{eventName:"keydown",fn:function(n){if(!n.defaultPrevented&&32===n.keyCode){var o=e.findClosestDraggableId(n);if(o){var i=e.tryGetLock(o,u,{sourceEvent:n});if(i){n.preventDefault();var a=!0,l=i.snapLift();t.current(),t.current=Gl(window,Nf(l,u),{capture:!0,passive:!1})}}}function u(){a||Yl(!1),a=!1,t.current(),r()}}}}),[e]),r=Il((function(){t.current=Gl(window,[n],{passive:!1,capture:!0})}),[n]);rf((function(){return r(),function(){t.current()}}),[r])},function(e){var t=(0,o.useRef)(Tf),n=(0,o.useRef)(Wl),r=Il((function(){return t.current}),[]),i=Il((function(e){t.current=e}),[]),a=Pl((function(){return{eventName:"touchstart",fn:function(t){if(!t.defaultPrevented){var r=e.findClosestDraggableId(t);if(r){var o=e.tryGetLock(r,u,{sourceEvent:t});if(o){var i=t.touches[0],a={x:i.clientX,y:i.clientY};n.current(),d(o,a)}}}}}}),[e]),l=Il((function(){n.current=Gl(window,[a],{capture:!0,passive:!1})}),[a]),u=Il((function(){var e=t.current;"IDLE"!==e.type&&("PENDING"===e.type&&clearTimeout(e.longPressTimerId),i(Tf),n.current(),l())}),[l,i]),s=Il((function(){var e=t.current;u(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[u]),c=Il((function(){var e={capture:!0,passive:!1},t={cancel:s,completed:u,getPhase:r},o=Gl(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&&Yl(!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:kf,fn:t}]}(t),e),i=Gl(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:kf,fn:t}]}(t),e);n.current=function(){o(),i()}}),[s,r,u]),f=Il((function(){var e=r();"PENDING"!==e.type&&Yl(!1);var t=e.actions.fluidLift(e.point);i({type:"DRAGGING",actions:t,hasMoved:!1})}),[r,i]),d=Il((function(e,t){"IDLE"!==r().type&&Yl(!1);var n=setTimeout(f,120);i({type:"PENDING",point:t,actions:e,longPressTimerId:n}),c()}),[c,r,i,f]);rf((function(){return l(),function(){n.current();var e=r();"PENDING"===e.type&&(clearTimeout(e.longPressTimerId),i(Tf))}}),[r,l,i]),rf((function(){return Gl(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}])}),[])}];function $f(e){var t=e.contextId,n=e.store,r=e.registry,i=e.customSensors,a=e.enableDefaultSensors,l=[].concat(a?qf:[],i||[]),u=(0,o.useState)((function(){return function(){var e=null;function t(){e||Yl(!1),e=null}return{isClaimed:function(){return Boolean(e)},isActive:function(t){return t===e},claim:function(t){e&&Yl(!1);var n={abandon:t};return e=n,n},release:t,tryAbandon:function(){e&&(e.abandon(),t())}}}()}))[0],s=Il((function(e,t){e.isDragging&&!t.isDragging&&u.tryAbandon()}),[u]);rf((function(){var e=n.getState();return n.subscribe((function(){var t=n.getState();s(e,t),e=t}))}),[u,n,s]),rf((function(){return u.tryAbandon}),[u.tryAbandon]);var c=Il((function(e){return Wf({lockAPI:u,registry:r,store:n,draggableId:e})}),[u,r,n]),f=Il((function(e,o,i){return Gf({lockAPI:u,registry:r,contextId:t,store:n,draggableId:e,forceSensorStop:o,sourceEvent:i&&i.sourceEvent?i.sourceEvent:null})}),[t,u,r,n]),d=Il((function(e){return function(e,t){var n=Uf(e,t);return n?n.getAttribute(Jc.draggableId):null}(t,e)}),[t]),p=Il((function(e){var t=r.draggable.findById(e);return t?t.options:null}),[r.draggable]),m=Il((function(){u.isClaimed()&&(u.tryAbandon(),"IDLE"!==n.getState().phase&&n.dispatch({type:"FLUSH",payload:null}))}),[u,n]),h=Il(u.isClaimed,[u]),v=Pl((function(){return{canGetLock:c,tryGetLock:f,findClosestDraggableId:d,findOptionsForDraggable:p,tryReleaseLock:m,isLockClaimed:h}}),[c,f,d,p,m,h]);yf();for(var g=0;g<l.length;g++)l[g](v)}function Yf(e){return e.current||Yl(!1),e.current}function Qf(e){var t=e.contextId,n=e.setCallbacks,r=e.sensors,i=e.nonce,a=e.dragHandleUsageInstructions,l=(0,o.useRef)(null);wf();var u=Ef(e),s=Il((function(){return function(e){return{onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}}(u.current)}),[u]),c=function(e){var t=Pl((function(){return function(e){return"rbd-announcement-"+e}(e)}),[e]),n=(0,o.useRef)(null);return(0,o.useEffect)((function(){var e=document.createElement("div");return n.current=e,e.id=t,e.setAttribute("aria-live","assertive"),e.setAttribute("aria-atomic","true"),Qt(e.style,mf),pf().appendChild(e),function(){setTimeout((function(){var t=pf();t.contains(e)&&t.removeChild(e),e===n.current&&(n.current=null)}))}}),[t]),Il((function(e){var t=n.current;t&&(t.textContent=e)}),[])}(t),f=function(e){var t=e.contextId,n=e.text,r=gf("hidden-text",{separator:"-"}),i=Pl((function(){return function(e){return"rbd-hidden-text-"+e.contextId+"-"+e.uniqueId}({contextId:t,uniqueId:r})}),[r,t]);return(0,o.useEffect)((function(){var e=document.createElement("div");return e.id=i,e.textContent=n,e.style.display="none",pf().appendChild(e),function(){var t=pf();t.contains(e)&&t.removeChild(e)}}),[i,n]),i}({contextId:t,text:a}),d=lf(t,i),p=Il((function(e){Yf(l).dispatch(e)}),[]),m=Pl((function(){return qa({publishWhileDragging:Ms,updateDroppableScroll:Fs,updateDroppableIsEnabled:js,updateDroppableIsCombineEnabled:Vs,collectionStarting:Bs},p)}),[p]),h=function(){var e=Pl(ff,[]);return(0,o.useEffect)((function(){return function(){requestAnimationFrame(e.clean)}}),[e]),e}(),v=Pl((function(){return Cc(h,m)}),[h,m]),g=Pl((function(){return Xc(Qt({scrollWindow:Ic,scrollDroppable:v.scrollDroppable},qa({move:Us},p)))}),[v.scrollDroppable,p]),b=function(e){var t=(0,o.useRef)({}),n=(0,o.useRef)(null),r=(0,o.useRef)(null),i=(0,o.useRef)(!1),a=Il((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=Il((function(t){var n=cf(e,t);n&&n!==document.activeElement&&n.focus()}),[e]),u=Il((function(e,t){n.current===e&&(n.current=t)}),[]),s=Il((function(){r.current||i.current&&(r.current=requestAnimationFrame((function(){r.current=null;var e=n.current;e&&l(e)})))}),[l]),c=Il((function(e){n.current=null;var t=document.activeElement;t&&t.getAttribute(Jc.draggableId)===e&&(n.current=e)}),[]);return rf((function(){return i.current=!0,function(){i.current=!1;var e=r.current;e&&cancelAnimationFrame(e)}}),[]),Pl((function(){return{register:a,tryRecordFocus:c,tryRestoreFocusRecorded:s,tryShiftRecord:u}}),[a,c,s,u])}(t),y=Pl((function(){return yc({announce:c,autoScroller:g,dimensionMarshal:v,focusMarshal:b,getResponders:s,styleMarshal:d})}),[c,g,v,b,s,d]);l.current=y;var _=Il((function(){var e=Yf(l);"IDLE"!==e.getState().phase&&e.dispatch({type:"FLUSH",payload:null})}),[]),w=Il((function(){var e=Yf(l).getState();return e.isDragging||"DROP_ANIMATING"===e.phase}),[]);n(Pl((function(){return{isDragging:w,tryAbort:_}}),[w,_]));var E=Il((function(e){return Pc(Yf(l).getState(),e)}),[]),S=Il((function(){return hs(Yf(l).getState())}),[]),O=Pl((function(){return{marshal:v,focus:b,contextId:t,canLift:E,isMovementAllowed:S,dragHandleUsageInstructionsId:f,registry:h}}),[t,v,f,b,E,S,h]);return $f({contextId:t,store:y,registry:h,customSensors:r,enableDefaultSensors:!1!==e.enableDefaultSensors}),(0,o.useEffect)((function(){return _}),[_]),o.createElement(bf.Provider,{value:O},o.createElement(el,{context:df,store:y},e.children))}var Kf=0;function Xf(e){var t=Pl((function(){return""+Kf++}),[]),n=e.dragHandleUsageInstructions||eu;return o.createElement(Ql,null,(function(r){return o.createElement(Qf,{nonce:e.nonce,contextId:t,setCallbacks:r,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 Jf=function(e){return function(t){return e===t}},Zf=Jf("scroll"),ed=Jf("auto"),td=(Jf("visible"),function(e,t){return t(e.overflowX)||t(e.overflowY)}),nd=function(e){var t=window.getComputedStyle(e),n={overflowX:t.overflowX,overflowY:t.overflowY};return td(n,Zf)||td(n,ed)},rd=function e(t){return null==t||t===document.body||t===document.documentElement?null:nd(t)?t:e(t.parentElement)},od=function(e){return{x:e.scrollLeft,y:e.scrollTop}},id=function e(t){return!!t&&("fixed"===window.getComputedStyle(t).position||e(t.parentElement))},ad=function(e){return{closestScrollable:rd(e),isFixedOnPage:id(e)}},ld=function(e){var t=e.ref,n=e.descriptor,r=e.env,o=e.windowScroll,i=e.direction,a=e.isDropDisabled,l=e.isCombineEnabled,u=e.shouldClipSubject,s=r.closestScrollable,c=function(e,t){var n=Ul(e);if(!t)return n;if(e!==t)return n;var r=n.paddingBox.top-t.scrollTop,o=n.paddingBox.left-t.scrollLeft,i=r+t.scrollHeight,a=o+t.scrollWidth,l=Tl({top:r,right:a,bottom:i,left:o},n.border);return Ml({borderBox:l,margin:n.margin,border:n.border,padding:n.padding})}(t,s),f=jl(c,o),d=function(){if(!s)return null;var e=Ul(s),t={scrollHeight:s.scrollHeight,scrollWidth:s.scrollWidth};return{client:e,page:jl(e,o),scroll:od(s),scrollSize:t,shouldClipSubject:u}}();return function(e){var t=e.descriptor,n=e.isEnabled,r=e.isCombineEnabled,o=e.isFixedOnPage,i=e.direction,a=e.client,l=e.page,u=e.closest,s=function(){if(!u)return null;var e=u.scrollSize,t=u.client,n=_c({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,height:t.paddingBox.height,width:t.paddingBox.width});return{pageMarginBox:u.page.marginBox,frameClient:t,scrollSize:e,shouldClipSubject:u.shouldClipSubject,scroll:{initial:u.scroll,current:u.scroll,max:n,diff:{value:ou,displacement:ou}}}}(),c="vertical"===i?Bu:Fu;return{descriptor:t,isCombineEnabled:r,isFixedOnPage:o,axis:c,isEnabled:n,client:a,page:l,frame:s,subject:vu({page:l,withPlaceholder:null,axis:c,frame:s})}}({descriptor:n,isEnabled:!a,isCombineEnabled:l,isFixedOnPage:r.isFixedOnPage,direction:i,client:c,page:f,closest:d})},ud={passive:!1},sd={passive:!0},cd=function(e){return e.shouldPublishImmediately?ud:sd};function fd(e){var t=(0,o.useContext)(e);return t||Yl(!1),t}var dd=function(e){return e&&e.env.closestScrollable||null};function pd(){}var md={width:0,height:0,margin:{top:0,right:0,bottom:0,left:0}},hd=function(e){var t=e.isAnimatingOpenOnMount,n=e.placeholder,r=e.animate,o=function(e){var t=e.isAnimatingOpenOnMount,n=e.placeholder,r=e.animate;return t||"close"===r?md:{height:n.client.borderBox.height,width:n.client.borderBox.width,margin:n.client.margin}}({isAnimatingOpenOnMount:t,placeholder:n,animate:r});return{display:n.display,boxSizing:"border-box",width:o.width,height:o.height,marginTop:o.margin.top,marginRight:o.margin.right,marginBottom:o.margin.bottom,marginLeft:o.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:"none"!==r?Zs.placeholder:null}};var vd=o.memo((function(e){var t=(0,o.useRef)(null),n=Il((function(){t.current&&(clearTimeout(t.current),t.current=null)}),[]),r=e.animate,i=e.onTransitionEnd,a=e.onClose,l=e.contextId,u=(0,o.useState)("open"===e.animate),s=u[0],c=u[1];(0,o.useEffect)((function(){return s?"open"!==r?(n(),c(!1),pd):t.current?pd:(t.current=setTimeout((function(){t.current=null,c(!1)})),n):pd}),[r,s,n]);var f=Il((function(e){"height"===e.propertyName&&(i(),"close"===r&&a())}),[r,a,i]),d=hd({isAnimatingOpenOnMount:s,animate:e.animate,placeholder:e.placeholder});return o.createElement(e.placeholder.tagName,{style:d,"data-rbd-placeholder-context-id":l,onTransitionEnd:f,ref:e.innerRef})})),gd=o.createContext(null);var bd=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).state={isVisible:Boolean(t.props.on),data:t.props.on,animate:t.props.shouldAnimate&&t.props.on?"open":"none"},t.onClose=function(){"close"===t.state.animate&&t.setState({isVisible:!1})},t}return Ma(t,e),t.getDerivedStateFromProps=function(e,t){return e.shouldAnimate?e.on?{isVisible:!0,data:e.on,animate:"open"}:t.isVisible?{isVisible:!0,data:t.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(e.on),data:e.on,animate:"none"}},t.prototype.render=function(){if(!this.state.isVisible)return null;var e={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(e)},t}(o.PureComponent),yd=5e3,_d=4500,wd=function(e,t){return t?Zs.drop(t.duration):e?Zs.snap:Zs.fluid},Ed=function(e,t){return e?t?Ks.drop:Ks.combining:null};function Sd(e){return"DRAGGING"===e.type?function(e){var t=e.dimension.client,n=e.offset,r=e.combineWith,o=e.dropping,i=Boolean(r),a=function(e){return null!=e.forceShouldAnimate?e.forceShouldAnimate:"SNAP"===e.mode}(e),l=Boolean(o),u=l?nc(n,i):tc(n);return{position:"fixed",top:t.marginBox.top,left:t.marginBox.left,boxSizing:"border-box",width:t.borderBox.width,height:t.borderBox.height,transition:wd(a,o),transform:u,opacity:Ed(i,l),zIndex:l?_d:yd,pointerEvents:"none"}}(e):{transform:tc((t=e).offset),transition:t.shouldAnimateDisplacement?null:"none"};var t}function Od(e){var t=gf("draggable"),n=e.descriptor,r=e.registry,i=e.getDraggableRef,a=e.canDragInteractiveElements,l=e.shouldRespectForcePress,u=e.isEnabled,s=Pl((function(){return{canDragInteractiveElements:a,shouldRespectForcePress:l,isEnabled:u}}),[a,u,l]),c=Il((function(e){var t=i();return t||Yl(!1),function(e,t,n){void 0===n&&(n=ou);var r=window.getComputedStyle(t),o=t.getBoundingClientRect(),i=Vl(o,r),a=jl(i,n);return{descriptor:e,placeholder:{client:i,tagName:t.tagName.toLowerCase(),display:r.display},displaceBy:{x:i.marginBox.width,y:i.marginBox.height},client:i,page:a}}(n,t,e)}),[n,i]),f=Pl((function(){return{uniqueId:t,descriptor:n,options:s,getDimension:c}}),[n,c,s,t]),d=(0,o.useRef)(f),p=(0,o.useRef)(!0);rf((function(){return r.draggable.register(d.current),function(){return r.draggable.unregister(d.current)}}),[r.draggable]),rf((function(){if(p.current)p.current=!1;else{var e=d.current;d.current=f,r.draggable.update(f,e)}}),[f,r.draggable])}function xd(e,t,n){_f()}function kd(e){e.preventDefault()}var Cd=function(e,t){return e===t},Pd=function(e){var t=e.combine,n=e.destination;return n?n.droppableId:t?t.droppableId:null};function Id(e){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}var Rd={mapped:{type:"SECONDARY",offset:ou,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:Id(null)}};var Dd=xl((function(){var e,t,n,r=(e=Mo((function(e,t){return{x:e,y:t}})),t=Mo((function(e,t,n,r,o){return{isDragging:!0,isClone:t,isDropAnimating:Boolean(o),dropAnimation:o,mode:e,draggingOver:n,combineWith:r,combineTargetFor:null}})),n=Mo((function(e,n,r,o,i,a,l){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:i,combineWith:a,mode:n,offset:e,dimension:r,forceShouldAnimate:l,snapshot:t(n,o,i,a,null)}}})),function(r,o){if(r.isDragging){if(r.critical.draggable.id!==o.draggableId)return null;var i=r.current.client.offset,a=r.dimensions.draggables[o.draggableId],l=ps(r.impact),u=(c=r.impact).at&&"COMBINE"===c.at.type?c.at.combine.draggableId:null,s=r.forceShouldAnimate;return n(e(i.x,i.y),r.movementMode,a,o.isClone,l,u,s)}var c;if("DROP_ANIMATING"===r.phase){var f=r.completed;if(f.result.draggableId!==o.draggableId)return null;var d=o.isClone,p=r.dimensions.draggables[o.draggableId],m=f.result,h=m.mode,v=Pd(m),g=function(e){return e.combine?e.combine.draggableId:null}(m),b={duration:r.dropDuration,curve:Qs,moveTo:r.newHomeClientOffset,opacity:g?Ks.drop:null,scale:g?Xs.drop:null};return{mapped:{type:"DRAGGING",offset:r.newHomeClientOffset,dimension:p,dropping:b,draggingOver:v,combineWith:g,mode:h,forceShouldAnimate:null,snapshot:t(h,d,v,g,b)}}}return null}),o=function(){var e=Mo((function(e,t){return{x:e,y:t}})),t=Mo(Id),n=Mo((function(e,n,r){return void 0===n&&(n=null),{mapped:{type:"SECONDARY",offset:e,combineTargetFor:n,shouldAnimateDisplacement:r,snapshot:t(n)}}})),r=function(e){return e?n(ou,e,!0):null},o=function(t,o,i,a){var l=i.displaced.visible[t],u=Boolean(a.inVirtualList&&a.effected[t]),s=Pu(i),c=s&&s.draggableId===t?o:null;if(!l){if(!u)return r(c);if(i.displaced.invisible[t])return null;var f=uu(a.displacedBy.point),d=e(f.x,f.y);return n(d,c,!0)}if(u)return r(c);var p=i.displacedBy.point,m=e(p.x,p.y);return n(m,c,l.shouldAnimate)};return function(e,t){if(e.isDragging)return e.critical.draggable.id===t.draggableId?null:o(t.draggableId,e.critical.draggable.id,e.impact,e.afterCritical);if("DROP_ANIMATING"===e.phase){var n=e.completed;return n.result.draggableId===t.draggableId?null:o(t.draggableId,n.result.draggableId,n.impact,n.afterCritical)}return null}}();return function(e,t){return r(e,t)||o(e,t)||Rd}}),{dropAnimationFinished:Ys},null,{context:df,pure:!0,areStatePropsEqual:Cd})((function(e){var t=(0,o.useRef)(null),n=Il((function(e){t.current=e}),[]),r=Il((function(){return t.current}),[]),i=fd(bf),a=i.contextId,l=i.dragHandleUsageInstructionsId,u=i.registry,s=fd(gd),c=s.type,f=s.droppableId,d=Pl((function(){return{id:e.draggableId,index:e.index,type:c,droppableId:f}}),[e.draggableId,e.index,c,f]),p=e.children,m=e.draggableId,h=e.isEnabled,v=e.shouldRespectForcePress,g=e.canDragInteractiveElements,b=e.isClone,y=e.mapped,_=e.dropAnimationFinished;xd(),yf(),b||Od(Pl((function(){return{descriptor:d,registry:u,getDraggableRef:r,canDragInteractiveElements:g,shouldRespectForcePress:v,isEnabled:h}}),[d,u,r,g,v,h]));var w=Pl((function(){return h?{tabIndex:0,role:"button","aria-describedby":l,"data-rbd-drag-handle-draggable-id":m,"data-rbd-drag-handle-context-id":a,draggable:!1,onDragStart:kd}:null}),[a,l,m,h]),E=Il((function(e){"DRAGGING"===y.type&&y.dropping&&"transform"===e.propertyName&&_()}),[_,y]),S=Pl((function(){var e=Sd(y),t="DRAGGING"===y.type&&y.dropping?E:null;return{innerRef:n,draggableProps:{"data-rbd-draggable-context-id":a,"data-rbd-draggable-id":m,style:e,onTransitionEnd:t},dragHandleProps:w}}),[a,w,m,y,E,n]),O=Pl((function(){return{draggableId:d.id,type:d.type,source:{index:d.index,droppableId:d.droppableId}}}),[d.droppableId,d.id,d.index,d.type]);return p(S,y.snapshot,O)}));function Nd(e){return fd(gd).isUsingCloneFor!==e.draggableId||e.isClone?o.createElement(Dd,e):null}function Td(e){var t="boolean"!=typeof e.isDragDisabled||!e.isDragDisabled,n=Boolean(e.disableInteractiveElementBlocking),r=Boolean(e.shouldRespectForcePress);return o.createElement(Nd,Qt({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:n,shouldRespectForcePress:r}))}var Ld=function(e,t){return e===t.droppable.type},Ad=function(e,t){return t.draggables[e.draggable.id]};var Md={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:function(){return document.body||Yl(!1),document.body}},Bd=xl((function(){var e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},t=Qt({},e,{shouldAnimatePlaceholder:!1}),n=Mo((function(e){return{draggableId:e.id,type:e.type,source:{index:e.index,droppableId:e.droppableId}}})),r=Mo((function(r,o,i,a,l,u){var s=l.descriptor.id;if(l.descriptor.droppableId===r){var c=u?{render:u,dragging:n(l.descriptor)}:null,f={isDraggingOver:i,draggingOverWith:i?s:null,draggingFromThisWith:s,isUsingPlaceholder:!0};return{placeholder:l.placeholder,shouldAnimatePlaceholder:!1,snapshot:f,useClone:c}}if(!o)return t;if(!a)return e;var d={isDraggingOver:i,draggingOverWith:s,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:l.placeholder,shouldAnimatePlaceholder:!0,snapshot:d,useClone:null}}));return function(n,o){var i=o.droppableId,a=o.type,l=!o.isDropDisabled,u=o.renderClone;if(n.isDragging){var s=n.critical;if(!Ld(a,s))return t;var c=Ad(s,n.dimensions),f=ps(n.impact)===i;return r(i,l,f,f,c,u)}if("DROP_ANIMATING"===n.phase){var d=n.completed;if(!Ld(a,d.critical))return t;var p=Ad(d.critical,n.dimensions);return r(i,l,Pd(d.result)===i,ps(d.impact)===i,p,u)}if("IDLE"===n.phase&&n.completed&&!n.shouldFlush){var m=n.completed;if(!Ld(a,m.critical))return t;var h=ps(m.impact)===i,v=Boolean(m.impact.at&&"COMBINE"===m.impact.at.type),g=m.critical.droppable.id===i;return h?v?e:t:g?e:t}return t}}),{updateViewportMaxScroll:function(e){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e}}},null,{context:df,pure:!0,areStatePropsEqual:Cd})((function(e){var t=(0,o.useContext)(bf);t||Yl(!1);var n=t.contextId,r=t.isMovementAllowed,a=(0,o.useRef)(null),l=(0,o.useRef)(null),u=e.children,s=e.droppableId,c=e.type,f=e.mode,d=e.direction,p=e.ignoreContainerClipping,m=e.isDropDisabled,h=e.isCombineEnabled,v=e.snapshot,g=e.useClone,b=e.updateViewportMaxScroll,y=e.getContainerForClone,_=Il((function(){return a.current}),[]),w=Il((function(e){a.current=e}),[]),E=(Il((function(){return l.current}),[]),Il((function(e){l.current=e}),[]));_f();var S=Il((function(){r()&&b({maxScroll:Ec()})}),[r,b]);!function(e){var t=(0,o.useRef)(null),n=fd(bf),r=gf("droppable"),i=n.registry,a=n.marshal,l=Ef(e),u=Pl((function(){return{id:e.droppableId,type:e.type,mode:e.mode}}),[e.droppableId,e.mode,e.type]),s=(0,o.useRef)(u),c=Pl((function(){return Mo((function(e,n){t.current||Yl(!1);var r={x:e,y:n};a.updateDroppableScroll(u.id,r)}))}),[u.id,a]),f=Il((function(){var e=t.current;return e&&e.env.closestScrollable?od(e.env.closestScrollable):ou}),[]),d=Il((function(){var e=f();c(e.x,e.y)}),[f,c]),p=Pl((function(){return zl(d)}),[d]),m=Il((function(){var e=t.current,n=dd(e);e&&n||Yl(!1),e.scrollOptions.shouldPublishImmediately?d():p()}),[p,d]),h=Il((function(e,r){t.current&&Yl(!1);var o=l.current,i=o.getDroppableRef();i||Yl(!1);var a=ad(i),s={ref:i,descriptor:u,env:a,scrollOptions:r};t.current=s;var c=ld({ref:i,descriptor:u,env:a,windowScroll:e,direction:o.direction,isDropDisabled:o.isDropDisabled,isCombineEnabled:o.isCombineEnabled,shouldClipSubject:!o.ignoreContainerClipping}),f=a.closestScrollable;return f&&(f.setAttribute(tf.contextId,n.contextId),f.addEventListener("scroll",m,cd(s.scrollOptions))),c}),[n.contextId,u,m,l]),v=Il((function(){var e=t.current,n=dd(e);return e&&n||Yl(!1),od(n)}),[]),g=Il((function(){var e=t.current;e||Yl(!1);var n=dd(e);t.current=null,n&&(p.cancel(),n.removeAttribute(tf.contextId),n.removeEventListener("scroll",m,cd(e.scrollOptions)))}),[m,p]),b=Il((function(e){var n=t.current;n||Yl(!1);var r=dd(n);r||Yl(!1),r.scrollTop+=e.y,r.scrollLeft+=e.x}),[]),y=Pl((function(){return{getDimensionAndWatchScroll:h,getScrollWhileDragging:v,dragStopped:g,scroll:b}}),[g,h,v,b]),_=Pl((function(){return{uniqueId:r,descriptor:u,callbacks:y}}),[y,u,r]);rf((function(){return s.current=_.descriptor,i.droppable.register(_),function(){t.current&&g(),i.droppable.unregister(_)}}),[y,u,g,_,a,i.droppable]),rf((function(){t.current&&a.updateDroppableIsEnabled(s.current.id,!e.isDropDisabled)}),[e.isDropDisabled,a]),rf((function(){t.current&&a.updateDroppableIsCombineEnabled(s.current.id,e.isCombineEnabled)}),[e.isCombineEnabled,a])}({droppableId:s,type:c,mode:f,direction:d,isDropDisabled:m,isCombineEnabled:h,ignoreContainerClipping:p,getDroppableRef:_});var O=o.createElement(bd,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},(function(e){var t=e.onClose,r=e.data,i=e.animate;return o.createElement(vd,{placeholder:r,onClose:t,innerRef:E,animate:i,contextId:n,onTransitionEnd:S})})),x=Pl((function(){return{innerRef:w,placeholder:O,droppableProps:{"data-rbd-droppable-id":s,"data-rbd-droppable-context-id":n}}}),[n,s,O,w]),k=g?g.dragging.draggableId:null,C=Pl((function(){return{droppableId:s,type:c,isUsingCloneFor:k}}),[s,k,c]);return o.createElement(gd.Provider,{value:C},u(x,v),function(){if(!g)return null;var e=g.dragging,t=g.render,n=o.createElement(Nd,{draggableId:e.draggableId,index:e.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(function(n,r){return t(n,r,e)}));return i.createPortal(n,y())}())}));function Fd(e){return(Fd="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)}function jd(){return(jd=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 Vd(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 Ud(e,t){return(Ud=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function zd(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=Gd(e);if(t){var o=Gd(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Hd(this,n)}}function Hd(e,t){if(t&&("object"===Fd(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Wd(e)}function Wd(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Gd(e){return(Gd=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Bd.defaultProps=Md;var qd=function(e){!function(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}}),t&&Ud(e,t)}(l,e);var t,n,r,i=zd(l);function l(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),t=i.call(this,e);var n=e.settings,r=e.form_title,a=e.validation_type,u=n.form_fields;return t.state={field_values:u.option_values||[],field_states:[],form_settings:u,settings:n,form_title:r,status:{loading_type:null,loading_message:null},refs:{wrapper:o.createRef()},validation_type:a,last_row_index:null},t._form_validation=new D(n.events.validate_field,a),t._form_submit=new P(n.handlers.api_loader,u.api_route,t._form_validation,t.updateLoadingStatus.bind(Wd(t))),t}return t=l,(n=[{key:"render",value:function(){var e=this,t=this.state,n=t.field_values,r=t.field_states,i=t.settings,l=t.form_title,u=t.form_settings,s=t.status,c=t.refs,f=t.validation_type;return o.createElement(o.Fragment,null,o.createElement("div",{className:"fcfWidget"},o.createElement("form",{className:"fcfWidget__inner"},o.createElement("div",{className:"fcfWidget__header"},o.createElement("div",{className:"fcfWidget__headerTitle"},l),o.createElement("div",{className:"fcfWidget__headerButtons"},o.createElement("ul",{className:"fcfWidget__buttons"},o.createElement("li",{className:"fcfWidget__button"},o.createElement(a,{button_classes:"fcfButton fcfButton--wide fcfButton--small fcfButton--bg fcfButton--blue",button_alignment:"right",button_label:i.i18n.button_save,loading_type:"save_top",loading_status:s.loading_type,loading_message:s.loading_message,settings:i,onSubmit:this.onSubmit.bind(this,"save_top",{form_fields:n})}))))),o.createElement("div",{className:"fcfWidget__content"},n.length>0?o.createElement("div",{className:"fcfFields",ref:c.wrapper},o.createElement(Xf,{onBeforeDragStart:this.onDragStart.bind(this),onDragEnd:this.onDragEnd.bind(this)},o.createElement(Bd,{droppableId:"dnd-fields"},(function(t,a){return o.createElement("ul",jd({className:"fcfFields__items dnd-fields"},t.droppableProps,{ref:t.innerRef}),n.map((function(t,l){return null!==t&&e.getFieldType(t)?o.createElement(Td,{key:l,draggableId:"field-".concat(l),index:l},(function(c){return o.createElement(Aa,{provided:c,field_data:t,form_states:r[l]||{},field_type:e.getFieldType(t),section_fields:n,validation_types:[f],settings:i,form_settings:u,onChangeValue:e.onChangeValue.bind(e,l),onChangeState:e.onChangeState.bind(e,l),onFieldRemove:e.onFieldRemove.bind(e,l),onValidationInit:e.onValidationInit.bind(e),row_index:l,last_row_index:a.isDraggingOver||null!==s.loading_type?null:e.state.last_row_index})})):null})),t.placeholder)})))):o.createElement("div",{className:"fcfWidget__contentPlaceholder"},i.i18n.alert_no_fields)),o.createElement("div",{className:"fcfWidget__footer"},o.createElement("ul",{className:"fcfWidget__buttons"},o.createElement("li",{className:"fcfWidget__button"},o.createElement(a,{button_classes:"fcfButton fcfButton--wide fcfButton--bg fcfButton--blue",button_alignment:"left",button_label:i.i18n.button_save,loading_type:"save_bottom",loading_status:s.loading_type,loading_message:s.loading_message,settings:i,onSubmit:this.onSubmit.bind(this,"save_bottom",{form_fields:n})})),o.createElement("li",{className:"fcfWidget__button"},o.createElement(a,{button_classes:"fcfButton fcfButton--wide fcfButton--border fcfButton--red",button_alignment:"right",button_label:i.i18n.button_reset,loading_type:"reset_bottom",loading_status:s.loading_type,loading_message:s.loading_message,tooltip_text:i.i18n.alert_reset,settings:i,onSubmit:this.onReset.bind(this,"reset_bottom",{form_fields:{}})})))))))}},{key:"componentDidMount",value:function(){var e=this.state.field_values;this.updateFieldsPriority(e)}},{key:"onValidationInit",value:function(e,t,n){return this._form_validation.onValidationInit(e,t,n)}},{key:"onChangeValue",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=this.state.field_values,i=JSON.parse(JSON.stringify(o[e]));i[t]=n,o[e]=i,this.setState({field_values:o,last_row_index:r?null:e}),r&&this.sendRefreshEvent()}},{key:"onChangeState",value:function(e,t,n,r){var o=this.state.field_states;void 0===o[e]&&(o[e]={}),void 0===o[e][t]&&(o[e][t]={}),o[e][t][n]=r,this.setState({field_states:o})}},{key:"sendRefreshEvent",value:function(){var e=this.state.settings;clearTimeout(this.refresh_timeout),this.refresh_timeout=setTimeout((function(){window.dispatchEvent(new CustomEvent(e.events.refresh_field))}),1e3)}},{key:"onFieldRemove",value:function(e){var t=this.state.field_values;t.splice(e,1),this.setState({field_values:t,last_row_index:null}),this.sendRefreshEvent()}},{key:"onSubmit",value:function(e,t,n){return n.preventDefault(),this._form_submit.onSubmit(e,t)}},{key:"onReset",value:function(e,t){return this._form_submit.onReset(e,t)}},{key:"onDragStart",value:function(){var e=this.state.refs;e.wrapper.current.style.height="".concat(e.wrapper.current.offsetHeight,"px")}},{key:"onDragEnd",value:function(e){if(this.state.refs.wrapper.current.style.height="",e.destination){var t=this.state,n=t.field_values,r=t.field_states,o=n[e.source.index],i=r[e.source.index];n.splice(e.source.index,1),r.splice(e.source.index,1),n.splice(e.destination.index,0,o),r.splice(e.destination.index,0,i),this._form_validation.clearValidationHandlers(),this.setState({field_values:this.updateFieldsPriority(n),field_states:r,last_row_index:null})}}},{key:"updateLoadingStatus",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.state.status;n.loading_type=e,n.loading_message=t,this.setState({status:n})}},{key:"getFieldType",value:function(e){var t=this.state.form_settings;for(var n in t.option_fields)if(t.option_fields.hasOwnProperty(n)&&t.option_fields[n].reserved_field_names.indexOf(e.name)>-1)return t.option_fields[n];return t.option_fields[e.type]||t.option_fields.fcf_default}},{key:"updateFieldsPriority",value:function(e){for(var t=10,n=e.length,r=0;r<n;r++)e[r].priority=t,t+=10;return e}}])&&Vd(t.prototype,n),r&&Vd(t,r),l}(o.Component);function $d(e){return($d="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)}function Yd(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 Qd(e,t){return(Qd=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Kd(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=Jd(e);if(t){var o=Jd(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Xd(this,n)}}function Xd(e,t){if(t&&("object"===$d(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Jd(e){return(Jd=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Zd=function(e){!function(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}}),t&&Qd(e,t)}(a,e);var t,n,r,i=Kd(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).state={settings:{i18n:reactInit.i18n,handlers:{api_loader:new _(reactInit.rest_api_url,reactInit.header_nonce)},events:{validate_field:"fcf-field-validate",refresh_field:"fcf-field-refresh"},form_fields:reactInit.form_fields,form_section:reactInit.form_section,form_settings:reactInit.form_settings}},t}return t=a,(n=[{key:"render",value:function(){var e=this.state.settings;return o.createElement("ul",{className:"fcfSettings__columns fcfSettings__columns--margin"},o.createElement(o.Fragment,null,e.form_fields?o.createElement("li",{className:"fcfSettings__column"},o.createElement(ya,{settings:e,form_settings:e.form_fields,form_title:e.i18n.form_add_field,validation_type:"form_add_field",onFieldAdd:this.addNewField.bind(this)})):null,e.form_fields||e.form_section?o.createElement("li",{className:"fcfSettings__column fcfSettings__column--wide"},e.form_fields?o.createElement(qd,{settings:e,form_settings:e.form_fields,form_title:e.i18n.form_fields,validation_type:"form_fields"}):null,e.form_section?o.createElement(Ca,{settings:e,form_settings:e.form_section,form_title:e.i18n.form_section,validation_type:"form_section"}):null):null),e.form_settings?o.createElement(o.Fragment,null,o.createElement("li",{className:"fcfSettings__column fcfSettings__column--wide"},o.createElement(Ca,{settings:e,form_settings:e.form_settings,form_title:e.i18n.form_settings,validation_type:"form_settings"}))):null)}},{key:"addNewField",value:function(e){var t=this.state.settings;t.form_fields.option_values.push(e),t.form_fields.option_values=this.updateFieldsPriority(t.form_fields.option_values),this.setState({settings:t}),window.dispatchEvent(new CustomEvent(t.events.refresh_field))}},{key:"updateFieldsPriority",value:function(e){for(var t=10,n=e.length,r=0;r<n;r++)e[r].priority=t,t+=10;return e}}])&&Yd(t.prototype,n),r&&Yd(t,r),a}(o.Component);function ep(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)}}var tp=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.setVars()&&this.setEvents()}var t,n,r;return t=e,(n=[{key:"setVars",value:function(){if(this.section=document.querySelector("#fcf-settings"),this.section)return!0}},{key:"setEvents",value:function(){document.addEventListener("DOMContentLoaded",this.renderDom.bind(this))}},{key:"renderDom",value:function(){i.render(o.createElement(Zd,null),this.section)}}])&&ep(t.prototype,n),r&&ep(t,r),e}();new function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),new tp}},679:function(e,t,n){"use strict";var r=n(864),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function u(e){return r.isMemo(e)?a:l[e.$$typeof]||o}l[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[r.Memo]=a;var s=Object.defineProperty,c=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(m){var o=p(n);o&&o!==m&&e(t,o,r)}var a=c(n);f&&(a=a.concat(f(n)));for(var l=u(t),h=u(n),v=0;v<a.length;++v){var g=a[v];if(!(i[g]||r&&r[g]||h&&h[g]||l&&l[g])){var b=d(n,g);try{s(t,g,b)}catch(e){}}}}return t}},651:function(){},108:function(){},418:function(e){"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var a,l,u=o(e),s=1;s<arguments.length;s++){for(var c in a=Object(arguments[s]))n.call(a,c)&&(u[c]=a[c]);if(t){l=t(a);for(var f=0;f<l.length;f++)r.call(a,l[f])&&(u[l[f]]=a[l[f]])}}return u}},155:function(e){var t,n,r=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"==typeof clearTimeout?clearTimeout:i}catch(e){n=i}}();var l,u=[],s=!1,c=-1;function f(){s&&l&&(s=!1,l.length?u=l.concat(u):c=-1,u.length&&d())}function d(){if(!s){var e=a(f);s=!0;for(var t=u.length;t;){for(l=u,u=[];++c<t;)l&&l[c].run();c=-1,t=u.length}l=null,s=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===i||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function m(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new p(e,t)),1!==u.length||s||a(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=m,r.addListener=m,r.once=m,r.off=m,r.removeListener=m,r.removeAllListeners=m,r.emit=m,r.prependListener=m,r.prependOnceListener=m,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},703:function(e,t,n){"use strict";var r=n(414);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},697:function(e,t,n){e.exports=n(703)()},414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},448:function(e,t,n){"use strict";var r=n(294),o=n(418),i=n(840);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(a(227));var l=new Set,u={};function s(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(u[e]=t,e=0;e<t.length;e++)l.add(t[e])}var f=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p=Object.prototype.hasOwnProperty,m={},h={};function v(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new v(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new v(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new v(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new v(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){g[e]=new v(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new v(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new v(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new v(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new v(e,5,!1,e.toLowerCase(),null,!1,!1)}));var b=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function _(e,t,n,r){var o=g.hasOwnProperty(t)?g[t]:null;(null!==o?0===o.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!p.call(h,e)||!p.call(m,e)&&(d.test(e)?h[e]=!0:(m[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(b,y);g[t]=new v(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(b,y);g[t]=new v(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(b,y);g[t]=new v(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new v(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new v(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,E=60103,S=60106,O=60107,x=60108,k=60114,C=60109,P=60110,I=60112,R=60113,D=60120,N=60115,T=60116,L=60121,A=60128,M=60129,B=60130,F=60131;if("function"==typeof Symbol&&Symbol.for){var j=Symbol.for;E=j("react.element"),S=j("react.portal"),O=j("react.fragment"),x=j("react.strict_mode"),k=j("react.profiler"),C=j("react.provider"),P=j("react.context"),I=j("react.forward_ref"),R=j("react.suspense"),D=j("react.suspense_list"),N=j("react.memo"),T=j("react.lazy"),L=j("react.block"),j("react.scope"),A=j("react.opaque.id"),M=j("react.debug_trace_mode"),B=j("react.offscreen"),F=j("react.legacy_hidden")}var V,U="function"==typeof Symbol&&Symbol.iterator;function z(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=U&&e[U]||e["@@iterator"])?e:null}function H(e){if(void 0===V)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);V=t&&t[1]||""}return"\n"+V+e}var W=!1;function G(e,t){if(!e||W)return"";W=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(e){if(e&&r&&"string"==typeof e.stack){for(var o=e.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,l=i.length-1;1<=a&&0<=l&&o[a]!==i[l];)l--;for(;1<=a&&0<=l;a--,l--)if(o[a]!==i[l]){if(1!==a||1!==l)do{if(a--,0>--l||o[a]!==i[l])return"\n"+o[a].replace(" at new "," at ")}while(1<=a&&0<=l);break}}}finally{W=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?H(e):""}function q(e){switch(e.tag){case 5:return H(e.type);case 16:return H("Lazy");case 13:return H("Suspense");case 19:return H("SuspenseList");case 0:case 2:case 15:return e=G(e.type,!1);case 11:return e=G(e.type.render,!1);case 22:return e=G(e.type._render,!1);case 1:return e=G(e.type,!0);default:return""}}function $(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case O:return"Fragment";case S:return"Portal";case k:return"Profiler";case x:return"StrictMode";case R:return"Suspense";case D:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case P:return(e.displayName||"Context")+".Consumer";case C:return(e._context.displayName||"Context")+".Provider";case I:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case N:return $(e.type);case L:return $(e._render);case T:t=e._payload,e=e._init;try{return $(e(t))}catch(e){}}return null}function Y(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function Q(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function K(e){e._valueTracker||(e._valueTracker=function(e){var t=Q(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function X(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Q(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function J(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Z(e,t){var n=t.checked;return o({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ee(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=Y(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function te(e,t){null!=(t=t.checked)&&_(e,"checked",t,!1)}function ne(e,t){te(e,t);var n=Y(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?oe(e,t.type,n):t.hasOwnProperty("defaultValue")&&oe(e,t.type,Y(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function re(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function oe(e,t,n){"number"===t&&J(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function ie(e,t){return e=o({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function ae(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Y(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function le(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return o({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ue(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:Y(n)}}function se(e,t){var n=Y(t.value),r=Y(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ce(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var fe="http://www.w3.org/1999/xhtml",de="http://www.w3.org/2000/svg";function pe(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function me(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?pe(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var he,ve,ge=(ve=function(e,t){if(e.namespaceURI!==de||"innerHTML"in e)e.innerHTML=t;else{for((he=he||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=he.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ve(e,t)}))}:ve);function be(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var ye={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},_e=["Webkit","ms","Moz","O"];function we(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ye.hasOwnProperty(e)&&ye[e]?(""+t).trim():t+"px"}function Ee(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=we(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(ye).forEach((function(e){_e.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ye[t]=ye[e]}))}));var Se=o({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Oe(e,t){if(t){if(Se[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(a(62))}}function xe(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function ke(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Ce=null,Pe=null,Ie=null;function Re(e){if(e=eo(e)){if("function"!=typeof Ce)throw Error(a(280));var t=e.stateNode;t&&(t=no(t),Ce(e.stateNode,e.type,t))}}function De(e){Pe?Ie?Ie.push(e):Ie=[e]:Pe=e}function Ne(){if(Pe){var e=Pe,t=Ie;if(Ie=Pe=null,Re(e),t)for(e=0;e<t.length;e++)Re(t[e])}}function Te(e,t){return e(t)}function Le(e,t,n,r,o){return e(t,n,r,o)}function Ae(){}var Me=Te,Be=!1,Fe=!1;function je(){null===Pe&&null===Ie||(Ae(),Ne())}function Ve(e,t){var n=e.stateNode;if(null===n)return null;var r=no(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(a(231,t,typeof n));return n}var Ue=!1;if(f)try{var ze={};Object.defineProperty(ze,"passive",{get:function(){Ue=!0}}),window.addEventListener("test",ze,ze),window.removeEventListener("test",ze,ze)}catch(ve){Ue=!1}function He(e,t,n,r,o,i,a,l,u){var s=Array.prototype.slice.call(arguments,3);try{t.apply(n,s)}catch(e){this.onError(e)}}var We=!1,Ge=null,qe=!1,$e=null,Ye={onError:function(e){We=!0,Ge=e}};function Qe(e,t,n,r,o,i,a,l,u){We=!1,Ge=null,He.apply(Ye,arguments)}function Ke(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Xe(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Je(e){if(Ke(e)!==e)throw Error(a(188))}function Ze(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ke(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return Je(o),e;if(i===r)return Je(o),t;i=i.sibling}throw Error(a(188))}if(n.return!==r.return)n=o,r=i;else{for(var l=!1,u=o.child;u;){if(u===n){l=!0,n=o,r=i;break}if(u===r){l=!0,r=o,n=i;break}u=u.sibling}if(!l){for(u=i.child;u;){if(u===n){l=!0,n=i,r=o;break}if(u===r){l=!0,r=i,n=o;break}u=u.sibling}if(!l)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function et(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var tt,nt,rt,ot,it=!1,at=[],lt=null,ut=null,st=null,ct=new Map,ft=new Map,dt=[],pt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function mt(e,t,n,r,o){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:o,targetContainers:[r]}}function ht(e,t){switch(e){case"focusin":case"focusout":lt=null;break;case"dragenter":case"dragleave":ut=null;break;case"mouseover":case"mouseout":st=null;break;case"pointerover":case"pointerout":ct.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ft.delete(t.pointerId)}}function vt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e=mt(t,n,r,o,i),null!==t&&(null!==(t=eo(t))&&nt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function gt(e){var t=Zr(e.target);if(null!==t){var n=Ke(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Xe(n)))return e.blockedOn=t,void ot(e.lanePriority,(function(){i.unstable_runWithPriority(e.priority,(function(){rt(n)}))}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function bt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Zt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=eo(n))&&nt(t),e.blockedOn=n,!1;t.shift()}return!0}function yt(e,t,n){bt(e)&&n.delete(t)}function _t(){for(it=!1;0<at.length;){var e=at[0];if(null!==e.blockedOn){null!==(e=eo(e.blockedOn))&&tt(e);break}for(var t=e.targetContainers;0<t.length;){var n=Zt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&at.shift()}null!==lt&&bt(lt)&&(lt=null),null!==ut&&bt(ut)&&(ut=null),null!==st&&bt(st)&&(st=null),ct.forEach(yt),ft.forEach(yt)}function wt(e,t){e.blockedOn===t&&(e.blockedOn=null,it||(it=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,_t)))}function Et(e){function t(t){return wt(t,e)}if(0<at.length){wt(at[0],e);for(var n=1;n<at.length;n++){var r=at[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==lt&&wt(lt,e),null!==ut&&wt(ut,e),null!==st&&wt(st,e),ct.forEach(t),ft.forEach(t),n=0;n<dt.length;n++)(r=dt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<dt.length&&null===(n=dt[0]).blockedOn;)gt(n),null===n.blockedOn&&dt.shift()}function St(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ot={animationend:St("Animation","AnimationEnd"),animationiteration:St("Animation","AnimationIteration"),animationstart:St("Animation","AnimationStart"),transitionend:St("Transition","TransitionEnd")},xt={},kt={};function Ct(e){if(xt[e])return xt[e];if(!Ot[e])return e;var t,n=Ot[e];for(t in n)if(n.hasOwnProperty(t)&&t in kt)return xt[e]=n[t];return e}f&&(kt=document.createElement("div").style,"AnimationEvent"in window||(delete Ot.animationend.animation,delete Ot.animationiteration.animation,delete Ot.animationstart.animation),"TransitionEvent"in window||delete Ot.transitionend.transition);var Pt=Ct("animationend"),It=Ct("animationiteration"),Rt=Ct("animationstart"),Dt=Ct("transitionend"),Nt=new Map,Tt=new Map,Lt=["abort","abort",Pt,"animationEnd",It,"animationIteration",Rt,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Dt,"transitionEnd","waiting","waiting"];function At(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],o=e[n+1];o="on"+(o[0].toUpperCase()+o.slice(1)),Tt.set(r,t),Nt.set(r,o),s(o,[r])}}(0,i.unstable_now)();var Mt=8;function Bt(e){if(0!=(1&e))return Mt=15,1;if(0!=(2&e))return Mt=14,2;if(0!=(4&e))return Mt=13,4;var t=24&e;return 0!==t?(Mt=12,t):0!=(32&e)?(Mt=11,32):0!==(t=192&e)?(Mt=10,t):0!=(256&e)?(Mt=9,256):0!==(t=3584&e)?(Mt=8,t):0!=(4096&e)?(Mt=7,4096):0!==(t=4186112&e)?(Mt=6,t):0!==(t=62914560&e)?(Mt=5,t):67108864&e?(Mt=4,67108864):0!=(134217728&e)?(Mt=3,134217728):0!==(t=805306368&e)?(Mt=2,t):0!=(1073741824&e)?(Mt=1,1073741824):(Mt=8,e)}function Ft(e,t){var n=e.pendingLanes;if(0===n)return Mt=0;var r=0,o=0,i=e.expiredLanes,a=e.suspendedLanes,l=e.pingedLanes;if(0!==i)r=i,o=Mt=15;else if(0!==(i=134217727&n)){var u=i&~a;0!==u?(r=Bt(u),o=Mt):0!==(l&=i)&&(r=Bt(l),o=Mt)}else 0!==(i=n&~a)?(r=Bt(i),o=Mt):0!==l&&(r=Bt(l),o=Mt);if(0===r)return 0;if(r=n&((0>(r=31-Wt(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&0==(t&a)){if(Bt(t),o<=Mt)return t;Mt=o}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-Wt(t)),r|=e[n],t&=~o;return r}function jt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Vt(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=Ut(24&~t))?Vt(10,t):e;case 10:return 0===(e=Ut(192&~t))?Vt(8,t):e;case 8:return 0===(e=Ut(3584&~t))&&(0===(e=Ut(4186112&~t))&&(e=512)),e;case 2:return 0===(t=Ut(805306368&~t))&&(t=268435456),t}throw Error(a(358,e))}function Ut(e){return e&-e}function zt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ht(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-Wt(t)]=n}var Wt=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Gt(e)/qt|0)|0},Gt=Math.log,qt=Math.LN2;var $t=i.unstable_UserBlockingPriority,Yt=i.unstable_runWithPriority,Qt=!0;function Kt(e,t,n,r){Be||Ae();var o=Jt,i=Be;Be=!0;try{Le(o,e,t,n,r)}finally{(Be=i)||je()}}function Xt(e,t,n,r){Yt($t,Jt.bind(null,e,t,n,r))}function Jt(e,t,n,r){var o;if(Qt)if((o=0==(4&t))&&0<at.length&&-1<pt.indexOf(e))e=mt(null,e,t,n,r),at.push(e);else{var i=Zt(e,t,n,r);if(null===i)o&&ht(e,r);else{if(o){if(-1<pt.indexOf(e))return e=mt(i,e,t,n,r),void at.push(e);if(function(e,t,n,r,o){switch(t){case"focusin":return lt=vt(lt,e,t,n,r,o),!0;case"dragenter":return ut=vt(ut,e,t,n,r,o),!0;case"mouseover":return st=vt(st,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return ct.set(i,vt(ct.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,ft.set(i,vt(ft.get(i)||null,e,t,n,r,o)),!0}return!1}(i,e,t,n,r))return;ht(e,r)}Nr(e,t,r,null,n)}}}function Zt(e,t,n,r){var o=ke(r);if(null!==(o=Zr(o))){var i=Ke(o);if(null===i)o=null;else{var a=i.tag;if(13===a){if(null!==(o=Xe(i)))return o;o=null}else if(3===a){if(i.stateNode.hydrate)return 3===i.tag?i.stateNode.containerInfo:null;o=null}else i!==o&&(o=null)}}return Nr(e,t,r,o,n),null}var en=null,tn=null,nn=null;function rn(){if(nn)return nn;var e,t,n=tn,r=n.length,o="value"in en?en.value:en.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return nn=o.slice(e,1<t?1-t:void 0)}function on(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function an(){return!0}function ln(){return!1}function un(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?an:ln,this.isPropagationStopped=ln,this}return o(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=an)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=an)},persist:function(){},isPersistent:an}),t}var sn,cn,fn,dn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},pn=un(dn),mn=o({},dn,{view:0,detail:0}),hn=un(mn),vn=o({},mn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==fn&&(fn&&"mousemove"===e.type?(sn=e.screenX-fn.screenX,cn=e.screenY-fn.screenY):cn=sn=0,fn=e),sn)},movementY:function(e){return"movementY"in e?e.movementY:cn}}),gn=un(vn),bn=un(o({},vn,{dataTransfer:0})),yn=un(o({},mn,{relatedTarget:0})),_n=un(o({},dn,{animationName:0,elapsedTime:0,pseudoElement:0})),wn=un(o({},dn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),En=un(o({},dn,{data:0})),Sn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},On={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},xn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function kn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=xn[e])&&!!t[e]}function Cn(){return kn}var Pn=un(o({},mn,{key:function(e){if(e.key){var t=Sn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=on(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?On[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cn,charCode:function(e){return"keypress"===e.type?on(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?on(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),In=un(o({},vn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Rn=un(o({},mn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cn})),Dn=un(o({},dn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Nn=un(o({},vn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),Tn=[9,13,27,32],Ln=f&&"CompositionEvent"in window,An=null;f&&"documentMode"in document&&(An=document.documentMode);var Mn=f&&"TextEvent"in window&&!An,Bn=f&&(!Ln||An&&8<An&&11>=An),Fn=String.fromCharCode(32),jn=!1;function Vn(e,t){switch(e){case"keyup":return-1!==Tn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Un(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var zn=!1;var Hn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Wn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Hn[e.type]:"textarea"===t}function Gn(e,t,n,r){De(r),0<(t=Lr(t,"onChange")).length&&(n=new pn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var qn=null,$n=null;function Yn(e){kr(e,0)}function Qn(e){if(X(to(e)))return e}function Kn(e,t){if("change"===e)return t}var Xn=!1;if(f){var Jn;if(f){var Zn="oninput"in document;if(!Zn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Zn="function"==typeof er.oninput}Jn=Zn}else Jn=!1;Xn=Jn&&(!document.documentMode||9<document.documentMode)}function tr(){qn&&(qn.detachEvent("onpropertychange",nr),$n=qn=null)}function nr(e){if("value"===e.propertyName&&Qn($n)){var t=[];if(Gn(t,$n,e,ke(e)),e=Yn,Be)e(t);else{Be=!0;try{Te(e,t)}finally{Be=!1,je()}}}}function rr(e,t,n){"focusin"===e?(tr(),$n=n,(qn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Qn($n)}function ir(e,t){if("click"===e)return Qn(t)}function ar(e,t){if("input"===e||"change"===e)return Qn(t)}var lr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},ur=Object.prototype.hasOwnProperty;function sr(e,t){if(lr(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(r=0;r<n.length;r++)if(!ur.call(t,n[r])||!lr(e[n[r]],t[n[r]]))return!1;return!0}function cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function fr(e,t){var n,r=cr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=cr(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function pr(){for(var e=window,t=J();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=J((e=t.contentWindow).document)}return t}function mr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var hr=f&&"documentMode"in document&&11>=document.documentMode,vr=null,gr=null,br=null,yr=!1;function _r(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;yr||null==vr||vr!==J(r)||("selectionStart"in(r=vr)&&mr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},br&&sr(br,r)||(br=r,0<(r=Lr(gr,"onSelect")).length&&(t=new pn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=vr)))}At("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),At("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),At(Lt,2);for(var wr="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Er=0;Er<wr.length;Er++)Tt.set(wr[Er],0);c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),s("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),s("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),s("onBeforeInput",["compositionend","keypress","textInput","paste"]),s("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Sr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Or=new Set("cancel close invalid load scroll toggle".split(" ").concat(Sr));function xr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,i,l,u,s){if(Qe.apply(this,arguments),We){if(!We)throw Error(a(198));var c=Ge;We=!1,Ge=null,qe||(qe=!0,$e=c)}}(r,t,void 0,e),e.currentTarget=null}function kr(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var l=r[a],u=l.instance,s=l.currentTarget;if(l=l.listener,u!==i&&o.isPropagationStopped())break e;xr(o,l,s),i=u}else for(a=0;a<r.length;a++){if(u=(l=r[a]).instance,s=l.currentTarget,l=l.listener,u!==i&&o.isPropagationStopped())break e;xr(o,l,s),i=u}}}if(qe)throw e=$e,qe=!1,$e=null,e}function Cr(e,t){var n=ro(t),r=e+"__bubble";n.has(r)||(Dr(t,e,2,!1),n.add(r))}var Pr="_reactListening"+Math.random().toString(36).slice(2);function Ir(e){e[Pr]||(e[Pr]=!0,l.forEach((function(t){Or.has(t)||Rr(t,!1,e,null),Rr(t,!0,e,null)})))}function Rr(e,t,n,r){var o=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,i=n;if("selectionchange"===e&&9!==n.nodeType&&(i=n.ownerDocument),null!==r&&!t&&Or.has(e)){if("scroll"!==e)return;o|=2,i=r}var a=ro(i),l=e+"__"+(t?"capture":"bubble");a.has(l)||(t&&(o|=4),Dr(i,e,o,t),a.add(l))}function Dr(e,t,n,r){var o=Tt.get(t);switch(void 0===o?2:o){case 0:o=Kt;break;case 1:o=Xt;break;default:o=Jt}n=o.bind(null,t,n,e),o=void 0,!Ue||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Nr(e,t,n,r,o){var i=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var l=r.stateNode.containerInfo;if(l===o||8===l.nodeType&&l.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var u=a.tag;if((3===u||4===u)&&((u=a.stateNode.containerInfo)===o||8===u.nodeType&&u.parentNode===o))return;a=a.return}for(;null!==l;){if(null===(a=Zr(l)))return;if(5===(u=a.tag)||6===u){r=i=a;continue e}l=l.parentNode}}r=r.return}!function(e,t,n){if(Fe)return e(t,n);Fe=!0;try{Me(e,t,n)}finally{Fe=!1,je()}}((function(){var r=i,o=ke(n),a=[];e:{var l=Nt.get(e);if(void 0!==l){var u=pn,s=e;switch(e){case"keypress":if(0===on(n))break e;case"keydown":case"keyup":u=Pn;break;case"focusin":s="focus",u=yn;break;case"focusout":s="blur",u=yn;break;case"beforeblur":case"afterblur":u=yn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=gn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=bn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=Rn;break;case Pt:case It:case Rt:u=_n;break;case Dt:u=Dn;break;case"scroll":u=hn;break;case"wheel":u=Nn;break;case"copy":case"cut":case"paste":u=wn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=In}var c=0!=(4&t),f=!c&&"scroll"===e,d=c?null!==l?l+"Capture":null:l;c=[];for(var p,m=r;null!==m;){var h=(p=m).stateNode;if(5===p.tag&&null!==h&&(p=h,null!==d&&(null!=(h=Ve(m,d))&&c.push(Tr(m,h,p)))),f)break;m=m.return}0<c.length&&(l=new u(l,s,null,n,o),a.push({event:l,listeners:c}))}}if(0==(7&t)){if(u="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||0!=(16&t)||!(s=n.relatedTarget||n.fromElement)||!Zr(s)&&!s[Xr])&&(u||l)&&(l=o.window===o?o:(l=o.ownerDocument)?l.defaultView||l.parentWindow:window,u?(u=r,null!==(s=(s=n.relatedTarget||n.toElement)?Zr(s):null)&&(s!==(f=Ke(s))||5!==s.tag&&6!==s.tag)&&(s=null)):(u=null,s=r),u!==s)){if(c=gn,h="onMouseLeave",d="onMouseEnter",m="mouse","pointerout"!==e&&"pointerover"!==e||(c=In,h="onPointerLeave",d="onPointerEnter",m="pointer"),f=null==u?l:to(u),p=null==s?l:to(s),(l=new c(h,m+"leave",u,n,o)).target=f,l.relatedTarget=p,h=null,Zr(o)===r&&((c=new c(d,m+"enter",s,n,o)).target=p,c.relatedTarget=f,h=c),f=h,u&&s)e:{for(d=s,m=0,p=c=u;p;p=Ar(p))m++;for(p=0,h=d;h;h=Ar(h))p++;for(;0<m-p;)c=Ar(c),m--;for(;0<p-m;)d=Ar(d),p--;for(;m--;){if(c===d||null!==d&&c===d.alternate)break e;c=Ar(c),d=Ar(d)}c=null}else c=null;null!==u&&Mr(a,l,u,c,!1),null!==s&&null!==f&&Mr(a,f,s,c,!0)}if("select"===(u=(l=r?to(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===u&&"file"===l.type)var v=Kn;else if(Wn(l))if(Xn)v=ar;else{v=or;var g=rr}else(u=l.nodeName)&&"input"===u.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(v=ir);switch(v&&(v=v(e,r))?Gn(a,v,n,o):(g&&g(e,l,r),"focusout"===e&&(g=l._wrapperState)&&g.controlled&&"number"===l.type&&oe(l,"number",l.value)),g=r?to(r):window,e){case"focusin":(Wn(g)||"true"===g.contentEditable)&&(vr=g,gr=r,br=null);break;case"focusout":br=gr=vr=null;break;case"mousedown":yr=!0;break;case"contextmenu":case"mouseup":case"dragend":yr=!1,_r(a,n,o);break;case"selectionchange":if(hr)break;case"keydown":case"keyup":_r(a,n,o)}var b;if(Ln)e:{switch(e){case"compositionstart":var y="onCompositionStart";break e;case"compositionend":y="onCompositionEnd";break e;case"compositionupdate":y="onCompositionUpdate";break e}y=void 0}else zn?Vn(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(Bn&&"ko"!==n.locale&&(zn||"onCompositionStart"!==y?"onCompositionEnd"===y&&zn&&(b=rn()):(tn="value"in(en=o)?en.value:en.textContent,zn=!0)),0<(g=Lr(r,y)).length&&(y=new En(y,e,null,n,o),a.push({event:y,listeners:g}),b?y.data=b:null!==(b=Un(n))&&(y.data=b))),(b=Mn?function(e,t){switch(e){case"compositionend":return Un(t);case"keypress":return 32!==t.which?null:(jn=!0,Fn);case"textInput":return(e=t.data)===Fn&&jn?null:e;default:return null}}(e,n):function(e,t){if(zn)return"compositionend"===e||!Ln&&Vn(e,t)?(e=rn(),nn=tn=en=null,zn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Bn&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))&&(0<(r=Lr(r,"onBeforeInput")).length&&(o=new En("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=b))}kr(a,t)}))}function Tr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Lr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Ve(e,n))&&r.unshift(Tr(e,i,o)),null!=(i=Ve(e,t))&&r.push(Tr(e,i,o))),e=e.return}return r}function Ar(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Mr(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var l=n,u=l.alternate,s=l.stateNode;if(null!==u&&u===r)break;5===l.tag&&null!==s&&(l=s,o?null!=(u=Ve(n,i))&&a.unshift(Tr(n,u,l)):o||null!=(u=Ve(n,i))&&a.push(Tr(n,u,l))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}function Br(){}var Fr=null,jr=null;function Vr(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Ur(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var zr="function"==typeof setTimeout?setTimeout:void 0,Hr="function"==typeof clearTimeout?clearTimeout:void 0;function Wr(e){1===e.nodeType?e.textContent="":9===e.nodeType&&(null!=(e=e.body)&&(e.textContent=""))}function Gr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function qr(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var $r=0;var Yr=Math.random().toString(36).slice(2),Qr="__reactFiber$"+Yr,Kr="__reactProps$"+Yr,Xr="__reactContainer$"+Yr,Jr="__reactEvents$"+Yr;function Zr(e){var t=e[Qr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Xr]||n[Qr]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=qr(e);null!==e;){if(n=e[Qr])return n;e=qr(e)}return t}n=(e=n).parentNode}return null}function eo(e){return!(e=e[Qr]||e[Xr])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function to(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function no(e){return e[Kr]||null}function ro(e){var t=e[Jr];return void 0===t&&(t=e[Jr]=new Set),t}var oo=[],io=-1;function ao(e){return{current:e}}function lo(e){0>io||(e.current=oo[io],oo[io]=null,io--)}function uo(e,t){io++,oo[io]=e.current,e.current=t}var so={},co=ao(so),fo=ao(!1),po=so;function mo(e,t){var n=e.type.contextTypes;if(!n)return so;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function ho(e){return null!=(e=e.childContextTypes)}function vo(){lo(fo),lo(co)}function go(e,t,n){if(co.current!==so)throw Error(a(168));uo(co,t),uo(fo,n)}function bo(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in e))throw Error(a(108,$(t)||"Unknown",i));return o({},n,r)}function yo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||so,po=co.current,uo(co,e),uo(fo,fo.current),!0}function _o(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=bo(e,t,po),r.__reactInternalMemoizedMergedChildContext=e,lo(fo),lo(co),uo(co,e)):lo(fo),uo(fo,n)}var wo=null,Eo=null,So=i.unstable_runWithPriority,Oo=i.unstable_scheduleCallback,xo=i.unstable_cancelCallback,ko=i.unstable_shouldYield,Co=i.unstable_requestPaint,Po=i.unstable_now,Io=i.unstable_getCurrentPriorityLevel,Ro=i.unstable_ImmediatePriority,Do=i.unstable_UserBlockingPriority,No=i.unstable_NormalPriority,To=i.unstable_LowPriority,Lo=i.unstable_IdlePriority,Ao={},Mo=void 0!==Co?Co:function(){},Bo=null,Fo=null,jo=!1,Vo=Po(),Uo=1e4>Vo?Po:function(){return Po()-Vo};function zo(){switch(Io()){case Ro:return 99;case Do:return 98;case No:return 97;case To:return 96;case Lo:return 95;default:throw Error(a(332))}}function Ho(e){switch(e){case 99:return Ro;case 98:return Do;case 97:return No;case 96:return To;case 95:return Lo;default:throw Error(a(332))}}function Wo(e,t){return e=Ho(e),So(e,t)}function Go(e,t,n){return e=Ho(e),Oo(e,t,n)}function qo(){if(null!==Fo){var e=Fo;Fo=null,xo(e)}$o()}function $o(){if(!jo&&null!==Bo){jo=!0;var e=0;try{var t=Bo;Wo(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Bo=null}catch(t){throw null!==Bo&&(Bo=Bo.slice(e+1)),Oo(Ro,qo),t}finally{jo=!1}}}var Yo=w.ReactCurrentBatchConfig;function Qo(e,t){if(e&&e.defaultProps){for(var n in t=o({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var Ko=ao(null),Xo=null,Jo=null,Zo=null;function ei(){Zo=Jo=Xo=null}function ti(e){var t=Ko.current;lo(Ko),e.type._context._currentValue=t}function ni(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}function ri(e,t){Xo=e,Zo=Jo=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(La=!0),e.firstContext=null)}function oi(e,t){if(Zo!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(Zo=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Jo){if(null===Xo)throw Error(a(308));Jo=t,Xo.dependencies={lanes:0,firstContext:t,responders:null}}else Jo=Jo.next=t;return e._currentValue}var ii=!1;function ai(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function li(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ui(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function si(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function ci(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function fi(e,t,n,r){var i=e.updateQueue;ii=!1;var a=i.firstBaseUpdate,l=i.lastBaseUpdate,u=i.shared.pending;if(null!==u){i.shared.pending=null;var s=u,c=s.next;s.next=null,null===l?a=c:l.next=c,l=s;var f=e.alternate;if(null!==f){var d=(f=f.updateQueue).lastBaseUpdate;d!==l&&(null===d?f.firstBaseUpdate=c:d.next=c,f.lastBaseUpdate=s)}}if(null!==a){for(d=i.baseState,l=0,f=c=s=null;;){u=a.lane;var p=a.eventTime;if((r&u)===u){null!==f&&(f=f.next={eventTime:p,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var m=e,h=a;switch(u=t,p=n,h.tag){case 1:if("function"==typeof(m=h.payload)){d=m.call(p,d,u);break e}d=m;break e;case 3:m.flags=-4097&m.flags|64;case 0:if(null==(u="function"==typeof(m=h.payload)?m.call(p,d,u):m))break e;d=o({},d,u);break e;case 2:ii=!0}}null!==a.callback&&(e.flags|=32,null===(u=i.effects)?i.effects=[a]:u.push(a))}else p={eventTime:p,lane:u,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===f?(c=f=p,s=d):f=f.next=p,l|=u;if(null===(a=a.next)){if(null===(u=i.shared.pending))break;a=u.next,u.next=null,i.lastBaseUpdate=u,i.shared.pending=null}}null===f&&(s=d),i.baseState=s,i.firstBaseUpdate=c,i.lastBaseUpdate=f,Bl|=l,e.lanes=l,e.memoizedState=d}}function di(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(a(191,o));o.call(r)}}}var pi=(new r.Component).refs;function mi(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:o({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var hi={isMounted:function(e){return!!(e=e._reactInternals)&&Ke(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=uu(),o=su(e),i=ui(r,o);i.payload=t,null!=n&&(i.callback=n),si(e,i),cu(e,o,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=uu(),o=su(e),i=ui(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),si(e,i),cu(e,o,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=uu(),r=su(e),o=ui(n,r);o.tag=2,null!=t&&(o.callback=t),si(e,o),cu(e,r,n)}};function vi(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!sr(n,r)||!sr(o,i))}function gi(e,t,n){var r=!1,o=so,i=t.contextType;return"object"==typeof i&&null!==i?i=oi(i):(o=ho(t)?po:co.current,i=(r=null!=(r=t.contextTypes))?mo(e,o):so),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=hi,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function bi(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&hi.enqueueReplaceState(t,t.state,null)}function yi(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=pi,ai(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=oi(i):(i=ho(t)?po:co.current,o.context=mo(e,i)),fi(e,n,o,r),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(mi(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&hi.enqueueReplaceState(o,o.state,null),fi(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4)}var _i=Array.isArray;function wi(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var o=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===o?t.ref:((t=function(e){var t=r.refs;t===pi&&(t=r.refs={}),null===e?delete t[o]:t[o]=e})._stringRef=o,t)}if("string"!=typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function Ei(e,t){if("textarea"!==e.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function Si(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.flags=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=zu(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags=2,n):r:(t.flags=2,n):n}function l(t){return e&&null===t.alternate&&(t.flags=2),t}function u(e,t,n,r){return null===t||6!==t.tag?((t=qu(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function s(e,t,n,r){return null!==t&&t.elementType===n.type?((r=o(t,n.props)).ref=wi(e,t,n),r.return=e,r):((r=Hu(n.type,n.key,n.props,null,e.mode,r)).ref=wi(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=$u(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function f(e,t,n,r,i){return null===t||7!==t.tag?((t=Wu(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=qu(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case E:return(n=Hu(t.type,t.key,t.props,null,e.mode,n)).ref=wi(e,null,t),n.return=e,n;case S:return(t=$u(t,e.mode,n)).return=e,t}if(_i(t)||z(t))return(t=Wu(t,e.mode,n,null)).return=e,t;Ei(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==o?null:u(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case E:return n.key===o?n.type===O?f(e,t,n.props.children,r,o):s(e,t,n,r):null;case S:return n.key===o?c(e,t,n,r):null}if(_i(n)||z(n))return null!==o?null:f(e,t,n,r,null);Ei(e,n)}return null}function m(e,t,n,r,o){if("string"==typeof r||"number"==typeof r)return u(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case E:return e=e.get(null===r.key?n:r.key)||null,r.type===O?f(t,e,r.props.children,o,r.key):s(t,e,r,o);case S:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o)}if(_i(r)||z(r))return f(t,e=e.get(n)||null,r,o,null);Ei(t,r)}return null}function h(o,a,l,u){for(var s=null,c=null,f=a,h=a=0,v=null;null!==f&&h<l.length;h++){f.index>h?(v=f,f=null):v=f.sibling;var g=p(o,f,l[h],u);if(null===g){null===f&&(f=v);break}e&&f&&null===g.alternate&&t(o,f),a=i(g,a,h),null===c?s=g:c.sibling=g,c=g,f=v}if(h===l.length)return n(o,f),s;if(null===f){for(;h<l.length;h++)null!==(f=d(o,l[h],u))&&(a=i(f,a,h),null===c?s=f:c.sibling=f,c=f);return s}for(f=r(o,f);h<l.length;h++)null!==(v=m(f,o,h,l[h],u))&&(e&&null!==v.alternate&&f.delete(null===v.key?h:v.key),a=i(v,a,h),null===c?s=v:c.sibling=v,c=v);return e&&f.forEach((function(e){return t(o,e)})),s}function v(o,l,u,s){var c=z(u);if("function"!=typeof c)throw Error(a(150));if(null==(u=c.call(u)))throw Error(a(151));for(var f=c=null,h=l,v=l=0,g=null,b=u.next();null!==h&&!b.done;v++,b=u.next()){h.index>v?(g=h,h=null):g=h.sibling;var y=p(o,h,b.value,s);if(null===y){null===h&&(h=g);break}e&&h&&null===y.alternate&&t(o,h),l=i(y,l,v),null===f?c=y:f.sibling=y,f=y,h=g}if(b.done)return n(o,h),c;if(null===h){for(;!b.done;v++,b=u.next())null!==(b=d(o,b.value,s))&&(l=i(b,l,v),null===f?c=b:f.sibling=b,f=b);return c}for(h=r(o,h);!b.done;v++,b=u.next())null!==(b=m(h,o,v,b.value,s))&&(e&&null!==b.alternate&&h.delete(null===b.key?v:b.key),l=i(b,l,v),null===f?c=b:f.sibling=b,f=b);return e&&h.forEach((function(e){return t(o,e)})),c}return function(e,r,i,u){var s="object"==typeof i&&null!==i&&i.type===O&&null===i.key;s&&(i=i.props.children);var c="object"==typeof i&&null!==i;if(c)switch(i.$$typeof){case E:e:{for(c=i.key,s=r;null!==s;){if(s.key===c){switch(s.tag){case 7:if(i.type===O){n(e,s.sibling),(r=o(s,i.props.children)).return=e,e=r;break e}break;default:if(s.elementType===i.type){n(e,s.sibling),(r=o(s,i.props)).ref=wi(e,s,i),r.return=e,e=r;break e}}n(e,s);break}t(e,s),s=s.sibling}i.type===O?((r=Wu(i.props.children,e.mode,u,i.key)).return=e,e=r):((u=Hu(i.type,i.key,i.props,null,e.mode,u)).ref=wi(e,r,i),u.return=e,e=u)}return l(e);case S:e:{for(s=i.key;null!==r;){if(r.key===s){if(4===r.tag&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){n(e,r.sibling),(r=o(r,i.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=$u(i,e.mode,u)).return=e,e=r}return l(e)}if("string"==typeof i||"number"==typeof i)return i=""+i,null!==r&&6===r.tag?(n(e,r.sibling),(r=o(r,i)).return=e,e=r):(n(e,r),(r=qu(i,e.mode,u)).return=e,e=r),l(e);if(_i(i))return h(e,r,i,u);if(z(i))return v(e,r,i,u);if(c&&Ei(e,i),void 0===i&&!s)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(a(152,$(e.type)||"Component"))}return n(e,r)}}var Oi=Si(!0),xi=Si(!1),ki={},Ci=ao(ki),Pi=ao(ki),Ii=ao(ki);function Ri(e){if(e===ki)throw Error(a(174));return e}function Di(e,t){switch(uo(Ii,t),uo(Pi,e),uo(Ci,ki),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:me(null,"");break;default:t=me(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}lo(Ci),uo(Ci,t)}function Ni(){lo(Ci),lo(Pi),lo(Ii)}function Ti(e){Ri(Ii.current);var t=Ri(Ci.current),n=me(t,e.type);t!==n&&(uo(Pi,e),uo(Ci,n))}function Li(e){Pi.current===e&&(lo(Ci),lo(Pi))}var Ai=ao(0);function Mi(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Bi=null,Fi=null,ji=!1;function Vi(e,t){var n=Vu(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Ui(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function zi(e){if(ji){var t=Fi;if(t){var n=t;if(!Ui(e,t)){if(!(t=Gr(n.nextSibling))||!Ui(e,t))return e.flags=-1025&e.flags|2,ji=!1,void(Bi=e);Vi(Bi,n)}Bi=e,Fi=Gr(t.firstChild)}else e.flags=-1025&e.flags|2,ji=!1,Bi=e}}function Hi(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Bi=e}function Wi(e){if(e!==Bi)return!1;if(!ji)return Hi(e),ji=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Ur(t,e.memoizedProps))for(t=Fi;t;)Vi(e,t),t=Gr(t.nextSibling);if(Hi(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Fi=Gr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Fi=null}}else Fi=Bi?Gr(e.stateNode.nextSibling):null;return!0}function Gi(){Fi=Bi=null,ji=!1}var qi=[];function $i(){for(var e=0;e<qi.length;e++)qi[e]._workInProgressVersionPrimary=null;qi.length=0}var Yi=w.ReactCurrentDispatcher,Qi=w.ReactCurrentBatchConfig,Ki=0,Xi=null,Ji=null,Zi=null,ea=!1,ta=!1;function na(){throw Error(a(321))}function ra(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!lr(e[n],t[n]))return!1;return!0}function oa(e,t,n,r,o,i){if(Ki=i,Xi=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Yi.current=null===e||null===e.memoizedState?Ra:Da,e=n(r,o),ta){i=0;do{if(ta=!1,!(25>i))throw Error(a(301));i+=1,Zi=Ji=null,t.updateQueue=null,Yi.current=Na,e=n(r,o)}while(ta)}if(Yi.current=Ia,t=null!==Ji&&null!==Ji.next,Ki=0,Zi=Ji=Xi=null,ea=!1,t)throw Error(a(300));return e}function ia(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Zi?Xi.memoizedState=Zi=e:Zi=Zi.next=e,Zi}function aa(){if(null===Ji){var e=Xi.alternate;e=null!==e?e.memoizedState:null}else e=Ji.next;var t=null===Zi?Xi.memoizedState:Zi.next;if(null!==t)Zi=t,Ji=e;else{if(null===e)throw Error(a(310));e={memoizedState:(Ji=e).memoizedState,baseState:Ji.baseState,baseQueue:Ji.baseQueue,queue:Ji.queue,next:null},null===Zi?Xi.memoizedState=Zi=e:Zi=Zi.next=e}return Zi}function la(e,t){return"function"==typeof t?t(e):t}function ua(e){var t=aa(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=Ji,o=r.baseQueue,i=n.pending;if(null!==i){if(null!==o){var l=o.next;o.next=i.next,i.next=l}r.baseQueue=o=i,n.pending=null}if(null!==o){o=o.next,r=r.baseState;var u=l=i=null,s=o;do{var c=s.lane;if((Ki&c)===c)null!==u&&(u=u.next={lane:0,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null}),r=s.eagerReducer===e?s.eagerState:e(r,s.action);else{var f={lane:c,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null};null===u?(l=u=f,i=r):u=u.next=f,Xi.lanes|=c,Bl|=c}s=s.next}while(null!==s&&s!==o);null===u?i=r:u.next=l,lr(r,t.memoizedState)||(La=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=u,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function sa(e){var t=aa(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var l=o=o.next;do{i=e(i,l.action),l=l.next}while(l!==o);lr(i,t.memoizedState)||(La=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function ca(e,t,n){var r=t._getVersion;r=r(t._source);var o=t._workInProgressVersionPrimary;if(null!==o?e=o===r:(e=e.mutableReadLanes,(e=(Ki&e)===e)&&(t._workInProgressVersionPrimary=r,qi.push(t))),e)return n(t._source);throw qi.push(t),Error(a(350))}function fa(e,t,n,r){var o=Il;if(null===o)throw Error(a(349));var i=t._getVersion,l=i(t._source),u=Yi.current,s=u.useState((function(){return ca(o,t,n)})),c=s[1],f=s[0];s=Zi;var d=e.memoizedState,p=d.refs,m=p.getSnapshot,h=d.source;d=d.subscribe;var v=Xi;return e.memoizedState={refs:p,source:t,subscribe:r},u.useEffect((function(){p.getSnapshot=n,p.setSnapshot=c;var e=i(t._source);if(!lr(l,e)){e=n(t._source),lr(f,e)||(c(e),e=su(v),o.mutableReadLanes|=e&o.pendingLanes),e=o.mutableReadLanes,o.entangledLanes|=e;for(var r=o.entanglements,a=e;0<a;){var u=31-Wt(a),s=1<<u;r[u]|=e,a&=~s}}}),[n,t,r]),u.useEffect((function(){return r(t._source,(function(){var e=p.getSnapshot,n=p.setSnapshot;try{n(e(t._source));var r=su(v);o.mutableReadLanes|=r&o.pendingLanes}catch(e){n((function(){throw e}))}}))}),[t,r]),lr(m,n)&&lr(h,t)&&lr(d,r)||((e={pending:null,dispatch:null,lastRenderedReducer:la,lastRenderedState:f}).dispatch=c=Pa.bind(null,Xi,e),s.queue=e,s.baseQueue=null,f=ca(o,t,n),s.memoizedState=s.baseState=f),f}function da(e,t,n){return fa(aa(),e,t,n)}function pa(e){var t=ia();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:la,lastRenderedState:e}).dispatch=Pa.bind(null,Xi,e),[t.memoizedState,e]}function ma(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Xi.updateQueue)?(t={lastEffect:null},Xi.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function ha(e){return e={current:e},ia().memoizedState=e}function va(){return aa().memoizedState}function ga(e,t,n,r){var o=ia();Xi.flags|=e,o.memoizedState=ma(1|t,n,void 0,void 0===r?null:r)}function ba(e,t,n,r){var o=aa();r=void 0===r?null:r;var i=void 0;if(null!==Ji){var a=Ji.memoizedState;if(i=a.destroy,null!==r&&ra(r,a.deps))return void ma(t,n,i,r)}Xi.flags|=e,o.memoizedState=ma(1|t,n,i,r)}function ya(e,t){return ga(516,4,e,t)}function _a(e,t){return ba(516,4,e,t)}function wa(e,t){return ba(4,2,e,t)}function Ea(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Sa(e,t,n){return n=null!=n?n.concat([e]):null,ba(4,2,Ea.bind(null,t,e),n)}function Oa(){}function xa(e,t){var n=aa();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ra(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ka(e,t){var n=aa();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ra(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ca(e,t){var n=zo();Wo(98>n?98:n,(function(){e(!0)})),Wo(97<n?97:n,(function(){var n=Qi.transition;Qi.transition=1;try{e(!1),t()}finally{Qi.transition=n}}))}function Pa(e,t,n){var r=uu(),o=su(e),i={lane:o,action:n,eagerReducer:null,eagerState:null,next:null},a=t.pending;if(null===a?i.next=i:(i.next=a.next,a.next=i),t.pending=i,a=e.alternate,e===Xi||null!==a&&a===Xi)ta=ea=!0;else{if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var l=t.lastRenderedState,u=a(l,n);if(i.eagerReducer=a,i.eagerState=u,lr(u,l))return}catch(e){}cu(e,o,r)}}var Ia={readContext:oi,useCallback:na,useContext:na,useEffect:na,useImperativeHandle:na,useLayoutEffect:na,useMemo:na,useReducer:na,useRef:na,useState:na,useDebugValue:na,useDeferredValue:na,useTransition:na,useMutableSource:na,useOpaqueIdentifier:na,unstable_isNewReconciler:!1},Ra={readContext:oi,useCallback:function(e,t){return ia().memoizedState=[e,void 0===t?null:t],e},useContext:oi,useEffect:ya,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,ga(4,2,Ea.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ga(4,2,e,t)},useMemo:function(e,t){var n=ia();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ia();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Pa.bind(null,Xi,e),[r.memoizedState,e]},useRef:ha,useState:pa,useDebugValue:Oa,useDeferredValue:function(e){var t=pa(e),n=t[0],r=t[1];return ya((function(){var t=Qi.transition;Qi.transition=1;try{r(e)}finally{Qi.transition=t}}),[e]),n},useTransition:function(){var e=pa(!1),t=e[0];return ha(e=Ca.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=ia();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},fa(r,e,t,n)},useOpaqueIdentifier:function(){if(ji){var e=!1,t=function(e){return{$$typeof:A,toString:e,valueOf:e}}((function(){throw e||(e=!0,n("r:"+($r++).toString(36))),Error(a(355))})),n=pa(t)[1];return 0==(2&Xi.mode)&&(Xi.flags|=516,ma(5,(function(){n("r:"+($r++).toString(36))}),void 0,null)),t}return pa(t="r:"+($r++).toString(36)),t},unstable_isNewReconciler:!1},Da={readContext:oi,useCallback:xa,useContext:oi,useEffect:_a,useImperativeHandle:Sa,useLayoutEffect:wa,useMemo:ka,useReducer:ua,useRef:va,useState:function(){return ua(la)},useDebugValue:Oa,useDeferredValue:function(e){var t=ua(la),n=t[0],r=t[1];return _a((function(){var t=Qi.transition;Qi.transition=1;try{r(e)}finally{Qi.transition=t}}),[e]),n},useTransition:function(){var e=ua(la)[0];return[va().current,e]},useMutableSource:da,useOpaqueIdentifier:function(){return ua(la)[0]},unstable_isNewReconciler:!1},Na={readContext:oi,useCallback:xa,useContext:oi,useEffect:_a,useImperativeHandle:Sa,useLayoutEffect:wa,useMemo:ka,useReducer:sa,useRef:va,useState:function(){return sa(la)},useDebugValue:Oa,useDeferredValue:function(e){var t=sa(la),n=t[0],r=t[1];return _a((function(){var t=Qi.transition;Qi.transition=1;try{r(e)}finally{Qi.transition=t}}),[e]),n},useTransition:function(){var e=sa(la)[0];return[va().current,e]},useMutableSource:da,useOpaqueIdentifier:function(){return sa(la)[0]},unstable_isNewReconciler:!1},Ta=w.ReactCurrentOwner,La=!1;function Aa(e,t,n,r){t.child=null===e?xi(t,null,n,r):Oi(t,e.child,n,r)}function Ma(e,t,n,r,o){n=n.render;var i=t.ref;return ri(t,o),r=oa(e,t,n,r,i,o),null===e||La?(t.flags|=1,Aa(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~o,nl(e,t,o))}function Ba(e,t,n,r,o,i){if(null===e){var a=n.type;return"function"!=typeof a||Uu(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Hu(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Fa(e,t,a,r,o,i))}return a=e.child,0==(o&i)&&(o=a.memoizedProps,(n=null!==(n=n.compare)?n:sr)(o,r)&&e.ref===t.ref)?nl(e,t,i):(t.flags|=1,(e=zu(a,r)).ref=t.ref,e.return=t,t.child=e)}function Fa(e,t,n,r,o,i){if(null!==e&&sr(e.memoizedProps,r)&&e.ref===t.ref){if(La=!1,0==(i&o))return t.lanes=e.lanes,nl(e,t,i);0!=(16384&e.flags)&&(La=!0)}return Ua(e,t,n,r,i)}function ja(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0==(4&t.mode))t.memoizedState={baseLanes:0},bu(t,n);else{if(0==(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},bu(t,e),null;t.memoizedState={baseLanes:0},bu(t,null!==i?i.baseLanes:n)}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,bu(t,r);return Aa(e,t,o,n),t.child}function Va(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function Ua(e,t,n,r,o){var i=ho(n)?po:co.current;return i=mo(t,i),ri(t,o),n=oa(e,t,n,r,i,o),null===e||La?(t.flags|=1,Aa(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~o,nl(e,t,o))}function za(e,t,n,r,o){if(ho(n)){var i=!0;yo(t)}else i=!1;if(ri(t,o),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),gi(t,n,r),yi(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,l=t.memoizedProps;a.props=l;var u=a.context,s=n.contextType;"object"==typeof s&&null!==s?s=oi(s):s=mo(t,s=ho(n)?po:co.current);var c=n.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;f||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==r||u!==s)&&bi(t,a,r,s),ii=!1;var d=t.memoizedState;a.state=d,fi(t,r,a,o),u=t.memoizedState,l!==r||d!==u||fo.current||ii?("function"==typeof c&&(mi(t,n,c,r),u=t.memoizedState),(l=ii||vi(t,n,l,r,d,u,s))?(f||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4)):("function"==typeof a.componentDidMount&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=u),a.props=r,a.state=u,a.context=s,r=l):("function"==typeof a.componentDidMount&&(t.flags|=4),r=!1)}else{a=t.stateNode,li(e,t),l=t.memoizedProps,s=t.type===t.elementType?l:Qo(t.type,l),a.props=s,f=t.pendingProps,d=a.context,"object"==typeof(u=n.contextType)&&null!==u?u=oi(u):u=mo(t,u=ho(n)?po:co.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==f||d!==u)&&bi(t,a,r,u),ii=!1,d=t.memoizedState,a.state=d,fi(t,r,a,o);var m=t.memoizedState;l!==f||d!==m||fo.current||ii?("function"==typeof p&&(mi(t,n,p,r),m=t.memoizedState),(s=ii||vi(t,n,s,r,d,m,u))?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,m,u),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,m,u)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=m),a.props=r,a.state=m,a.context=u,r=s):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),r=!1)}return Ha(e,t,n,r,i,o)}function Ha(e,t,n,r,o,i){Va(e,t);var a=0!=(64&t.flags);if(!r&&!a)return o&&_o(t,n,!1),nl(e,t,i);r=t.stateNode,Ta.current=t;var l=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=Oi(t,e.child,null,i),t.child=Oi(t,null,l,i)):Aa(e,t,l,i),t.memoizedState=r.state,o&&_o(t,n,!0),t.child}function Wa(e){var t=e.stateNode;t.pendingContext?go(0,t.pendingContext,t.pendingContext!==t.context):t.context&&go(0,t.context,!1),Di(e,t.containerInfo)}var Ga,qa,$a,Ya={dehydrated:null,retryLane:0};function Qa(e,t,n){var r,o=t.pendingProps,i=Ai.current,a=!1;return(r=0!=(64&t.flags))||(r=(null===e||null!==e.memoizedState)&&0!=(2&i)),r?(a=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===o.fallback||!0===o.unstable_avoidThisFallback||(i|=1),uo(Ai,1&i),null===e?(void 0!==o.fallback&&zi(t),e=o.children,i=o.fallback,a?(e=Ka(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Ya,e):"number"==typeof o.unstable_expectedLoadTime?(e=Ka(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Ya,t.lanes=33554432,e):((n=Gu({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,a?(o=Ja(e,t,o.children,o.fallback,n),a=t.child,i=e.child.memoizedState,a.memoizedState=null===i?{baseLanes:n}:{baseLanes:i.baseLanes|n},a.childLanes=e.childLanes&~n,t.memoizedState=Ya,o):(n=Xa(e,t,o.children,n),t.memoizedState=null,n))}function Ka(e,t,n,r){var o=e.mode,i=e.child;return t={mode:"hidden",children:t},0==(2&o)&&null!==i?(i.childLanes=0,i.pendingProps=t):i=Gu(t,o,0,null),n=Wu(n,o,r,null),i.return=e,n.return=e,i.sibling=n,e.child=i,n}function Xa(e,t,n,r){var o=e.child;return e=o.sibling,n=zu(o,{mode:"visible",children:n}),0==(2&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function Ja(e,t,n,r,o){var i=t.mode,a=e.child;e=a.sibling;var l={mode:"hidden",children:n};return 0==(2&i)&&t.child!==a?((n=t.child).childLanes=0,n.pendingProps=l,null!==(a=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=a,a.nextEffect=null):t.firstEffect=t.lastEffect=null):n=zu(a,l),null!==e?r=zu(e,r):(r=Wu(r,i,o,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}function Za(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),ni(e.return,t)}function el(e,t,n,r,o,i){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o,lastEffect:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o,a.lastEffect=i)}function tl(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Aa(e,t,r.children,n),0!=(2&(r=Ai.current)))r=1&r|2,t.flags|=64;else{if(null!==e&&0!=(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Za(e,n);else if(19===e.tag)Za(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(uo(Ai,r),0==(2&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===Mi(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),el(t,!1,o,n,i,t.lastEffect);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===Mi(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}el(t,!0,n,null,i,t.lastEffect);break;case"together":el(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function nl(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Bl|=t.lanes,0!=(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=zu(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=zu(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function rl(e,t){if(!ji)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ol(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return ho(t.type)&&vo(),null;case 3:return Ni(),lo(fo),lo(co),$i(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Wi(t)?t.flags|=4:r.hydrate||(t.flags|=256)),null;case 5:Li(t);var i=Ri(Ii.current);if(n=t.type,null!==e&&null!=t.stateNode)qa(e,t,n,r),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(a(166));return null}if(e=Ri(Ci.current),Wi(t)){r=t.stateNode,n=t.type;var l=t.memoizedProps;switch(r[Qr]=t,r[Kr]=l,n){case"dialog":Cr("cancel",r),Cr("close",r);break;case"iframe":case"object":case"embed":Cr("load",r);break;case"video":case"audio":for(e=0;e<Sr.length;e++)Cr(Sr[e],r);break;case"source":Cr("error",r);break;case"img":case"image":case"link":Cr("error",r),Cr("load",r);break;case"details":Cr("toggle",r);break;case"input":ee(r,l),Cr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!l.multiple},Cr("invalid",r);break;case"textarea":ue(r,l),Cr("invalid",r)}for(var s in Oe(n,l),e=null,l)l.hasOwnProperty(s)&&(i=l[s],"children"===s?"string"==typeof i?r.textContent!==i&&(e=["children",i]):"number"==typeof i&&r.textContent!==""+i&&(e=["children",""+i]):u.hasOwnProperty(s)&&null!=i&&"onScroll"===s&&Cr("scroll",r));switch(n){case"input":K(r),re(r,l,!0);break;case"textarea":K(r),ce(r);break;case"select":case"option":break;default:"function"==typeof l.onClick&&(r.onclick=Br)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(s=9===i.nodeType?i:i.ownerDocument,e===fe&&(e=pe(n)),e===fe?"script"===n?((e=s.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),"select"===n&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Qr]=t,e[Kr]=r,Ga(e,t),t.stateNode=e,s=xe(n,r),n){case"dialog":Cr("cancel",e),Cr("close",e),i=r;break;case"iframe":case"object":case"embed":Cr("load",e),i=r;break;case"video":case"audio":for(i=0;i<Sr.length;i++)Cr(Sr[i],e);i=r;break;case"source":Cr("error",e),i=r;break;case"img":case"image":case"link":Cr("error",e),Cr("load",e),i=r;break;case"details":Cr("toggle",e),i=r;break;case"input":ee(e,r),i=Z(e,r),Cr("invalid",e);break;case"option":i=ie(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=o({},r,{value:void 0}),Cr("invalid",e);break;case"textarea":ue(e,r),i=le(e,r),Cr("invalid",e);break;default:i=r}Oe(n,i);var c=i;for(l in c)if(c.hasOwnProperty(l)){var f=c[l];"style"===l?Ee(e,f):"dangerouslySetInnerHTML"===l?null!=(f=f?f.__html:void 0)&&ge(e,f):"children"===l?"string"==typeof f?("textarea"!==n||""!==f)&&be(e,f):"number"==typeof f&&be(e,""+f):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(u.hasOwnProperty(l)?null!=f&&"onScroll"===l&&Cr("scroll",e):null!=f&&_(e,l,f,s))}switch(n){case"input":K(e),re(e,r,!1);break;case"textarea":K(e),ce(e);break;case"option":null!=r.value&&e.setAttribute("value",""+Y(r.value));break;case"select":e.multiple=!!r.multiple,null!=(l=r.value)?ae(e,!!r.multiple,l,!1):null!=r.defaultValue&&ae(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=Br)}Vr(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)$a(0,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(a(166));n=Ri(Ii.current),Ri(Ci.current),Wi(t)?(r=t.stateNode,n=t.memoizedProps,r[Qr]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Qr]=t,t.stateNode=r)}return null;case 13:return lo(Ai),r=t.memoizedState,0!=(64&t.flags)?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&Wi(t):n=null!==e.memoizedState,r&&!n&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&Ai.current)?0===Ll&&(Ll=3):(0!==Ll&&3!==Ll||(Ll=4),null===Il||0==(134217727&Bl)&&0==(134217727&Fl)||mu(Il,Dl))),(r||n)&&(t.flags|=4),null);case 4:return Ni(),null===e&&Ir(t.stateNode.containerInfo),null;case 10:return ti(t),null;case 17:return ho(t.type)&&vo(),null;case 19:if(lo(Ai),null===(r=t.memoizedState))return null;if(l=0!=(64&t.flags),null===(s=r.rendering))if(l)rl(r,!1);else{if(0!==Ll||null!==e&&0!=(64&e.flags))for(e=t.child;null!==e;){if(null!==(s=Mi(e))){for(t.flags|=64,rl(r,!1),null!==(l=s.updateQueue)&&(t.updateQueue=l,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;null!==n;)e=r,(l=n).flags&=2,l.nextEffect=null,l.firstEffect=null,l.lastEffect=null,null===(s=l.alternate)?(l.childLanes=0,l.lanes=e,l.child=null,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=s.childLanes,l.lanes=s.lanes,l.child=s.child,l.memoizedProps=s.memoizedProps,l.memoizedState=s.memoizedState,l.updateQueue=s.updateQueue,l.type=s.type,e=s.dependencies,l.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return uo(Ai,1&Ai.current|2),t.child}e=e.sibling}null!==r.tail&&Uo()>zl&&(t.flags|=64,l=!0,rl(r,!1),t.lanes=33554432)}else{if(!l)if(null!==(e=Mi(s))){if(t.flags|=64,l=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),rl(r,!0),null===r.tail&&"hidden"===r.tailMode&&!s.alternate&&!ji)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Uo()-r.renderingStartTime>zl&&1073741824!==n&&(t.flags|=64,l=!0,rl(r,!1),t.lanes=33554432);r.isBackwards?(s.sibling=t.child,t.child=s):(null!==(n=r.last)?n.sibling=s:t.child=s,r.last=s)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Uo(),n.sibling=null,t=Ai.current,uo(Ai,l?1&t|2:1&t),n):null;case 23:case 24:return yu(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(a(156,t.tag))}function il(e){switch(e.tag){case 1:ho(e.type)&&vo();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Ni(),lo(fo),lo(co),$i(),0!=(64&(t=e.flags)))throw Error(a(285));return e.flags=-4097&t|64,e;case 5:return Li(e),null;case 13:return lo(Ai),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return lo(Ai),null;case 4:return Ni(),null;case 10:return ti(e),null;case 23:case 24:return yu(),null;default:return null}}function al(e,t){try{var n="",r=t;do{n+=q(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o}}Ga=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},qa=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Ri(Ci.current);var a,l=null;switch(n){case"input":i=Z(e,i),r=Z(e,r),l=[];break;case"option":i=ie(e,i),r=ie(e,r),l=[];break;case"select":i=o({},i,{value:void 0}),r=o({},r,{value:void 0}),l=[];break;case"textarea":i=le(e,i),r=le(e,r),l=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=Br)}for(f in Oe(n,r),n=null,i)if(!r.hasOwnProperty(f)&&i.hasOwnProperty(f)&&null!=i[f])if("style"===f){var s=i[f];for(a in s)s.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==f&&"children"!==f&&"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&"autoFocus"!==f&&(u.hasOwnProperty(f)?l||(l=[]):(l=l||[]).push(f,null));for(f in r){var c=r[f];if(s=null!=i?i[f]:void 0,r.hasOwnProperty(f)&&c!==s&&(null!=c||null!=s))if("style"===f)if(s){for(a in s)!s.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in c)c.hasOwnProperty(a)&&s[a]!==c[a]&&(n||(n={}),n[a]=c[a])}else n||(l||(l=[]),l.push(f,n)),n=c;else"dangerouslySetInnerHTML"===f?(c=c?c.__html:void 0,s=s?s.__html:void 0,null!=c&&s!==c&&(l=l||[]).push(f,c)):"children"===f?"string"!=typeof c&&"number"!=typeof c||(l=l||[]).push(f,""+c):"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&(u.hasOwnProperty(f)?(null!=c&&"onScroll"===f&&Cr("scroll",e),l||s===c||(l=[])):"object"==typeof c&&null!==c&&c.$$typeof===A?c.toString():(l=l||[]).push(f,c))}n&&(l=l||[]).push("style",n);var f=l;(t.updateQueue=f)&&(t.flags|=4)}},$a=function(e,t,n,r){n!==r&&(t.flags|=4)};var ll="function"==typeof WeakMap?WeakMap:Map;function ul(e,t,n){(n=ui(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ql||(ql=!0,$l=r)},n}function sl(e,t,n){(n=ui(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Yl?Yl=new Set([this]):Yl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var cl="function"==typeof WeakSet?WeakSet:Set;function fl(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Mu(e,t)}else t.current=null}function dl(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Qo(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&Wr(t.stateNode.containerInfo));case 5:case 6:case 4:case 17:return}throw Error(a(163))}function pl(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3==(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var o=e;r=o.next,0!=(4&(o=o.tag))&&0!=(1&o)&&(Tu(n,e),Nu(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:Qo(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&di(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}di(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&Vr(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Et(n)))));case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(a(163))}function ml(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)"function"==typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var o=n.memoizedProps.style;o=null!=o&&o.hasOwnProperty("display")?o.display:null,r.style.display=we("display",o)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function hl(e,t){if(Eo&&"function"==typeof Eo.onCommitFiberUnmount)try{Eo.onCommitFiberUnmount(wo,t)}catch(e){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,o=r.destroy;if(r=r.tag,void 0!==o)if(0!=(4&r))Tu(t,n);else{r=t;try{o()}catch(e){Mu(r,e)}}n=n.next}while(n!==e)}break;case 1:if(fl(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){Mu(t,e)}break;case 5:fl(t);break;case 4:wl(e,t)}}function vl(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function gl(e){return 5===e.tag||3===e.tag||4===e.tag}function bl(e){e:{for(var t=e.return;null!==t;){if(gl(t))break e;t=t.return}throw Error(a(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(a(161))}16&n.flags&&(be(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||gl(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?yl(e,n,t):_l(e,n,t)}function yl(e,t,n){var r=e.tag,o=5===r||6===r;if(o)e=o?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Br));else if(4!==r&&null!==(e=e.child))for(yl(e,t,n),e=e.sibling;null!==e;)yl(e,t,n),e=e.sibling}function _l(e,t,n){var r=e.tag,o=5===r||6===r;if(o)e=o?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(_l(e,t,n),e=e.sibling;null!==e;)_l(e,t,n),e=e.sibling}function wl(e,t){for(var n,r,o=t,i=!1;;){if(!i){i=o.return;e:for(;;){if(null===i)throw Error(a(160));switch(n=i.stateNode,i.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}i=i.return}i=!0}if(5===o.tag||6===o.tag){e:for(var l=e,u=o,s=u;;)if(hl(l,s),null!==s.child&&4!==s.tag)s.child.return=s,s=s.child;else{if(s===u)break e;for(;null===s.sibling;){if(null===s.return||s.return===u)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}r?(l=n,u=o.stateNode,8===l.nodeType?l.parentNode.removeChild(u):l.removeChild(u)):n.removeChild(o.stateNode)}else if(4===o.tag){if(null!==o.child){n=o.stateNode.containerInfo,r=!0,o.child.return=o,o=o.child;continue}}else if(hl(e,o),null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break;for(;null===o.sibling;){if(null===o.return||o.return===t)return;4===(o=o.return).tag&&(i=!1)}o.sibling.return=o.return,o=o.sibling}}function El(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{3==(3&r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==n)}return;case 1:return;case 5:if(null!=(n=t.stateNode)){r=t.memoizedProps;var o=null!==e?e.memoizedProps:r;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,null!==i){for(n[Kr]=r,"input"===e&&"radio"===r.type&&null!=r.name&&te(n,r),xe(e,o),t=xe(e,r),o=0;o<i.length;o+=2){var l=i[o],u=i[o+1];"style"===l?Ee(n,u):"dangerouslySetInnerHTML"===l?ge(n,u):"children"===l?be(n,u):_(n,l,u,t)}switch(e){case"input":ne(n,r);break;case"textarea":se(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(i=r.value)?ae(n,!!r.multiple,i,!1):e!==!!r.multiple&&(null!=r.defaultValue?ae(n,!!r.multiple,r.defaultValue,!0):ae(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(a(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((n=t.stateNode).hydrate&&(n.hydrate=!1,Et(n.containerInfo)));case 12:return;case 13:return null!==t.memoizedState&&(Ul=Uo(),ml(t.child,!0)),void Sl(t);case 19:return void Sl(t);case 17:return;case 23:case 24:return void ml(t,null!==t.memoizedState)}throw Error(a(163))}function Sl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new cl),t.forEach((function(t){var r=Fu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function Ol(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&(null!==(t=t.memoizedState)&&null===t.dehydrated)}var xl=Math.ceil,kl=w.ReactCurrentDispatcher,Cl=w.ReactCurrentOwner,Pl=0,Il=null,Rl=null,Dl=0,Nl=0,Tl=ao(0),Ll=0,Al=null,Ml=0,Bl=0,Fl=0,jl=0,Vl=null,Ul=0,zl=1/0;function Hl(){zl=Uo()+500}var Wl,Gl=null,ql=!1,$l=null,Yl=null,Ql=!1,Kl=null,Xl=90,Jl=[],Zl=[],eu=null,tu=0,nu=null,ru=-1,ou=0,iu=0,au=null,lu=!1;function uu(){return 0!=(48&Pl)?Uo():-1!==ru?ru:ru=Uo()}function su(e){if(0==(2&(e=e.mode)))return 1;if(0==(4&e))return 99===zo()?1:2;if(0===ou&&(ou=Ml),0!==Yo.transition){0!==iu&&(iu=null!==Vl?Vl.pendingLanes:0),e=ou;var t=4186112&~iu;return 0===(t&=-t)&&(0===(t=(e=4186112&~e)&-e)&&(t=8192)),t}return e=zo(),0!=(4&Pl)&&98===e?e=Vt(12,ou):e=Vt(e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),ou),e}function cu(e,t,n){if(50<tu)throw tu=0,nu=null,Error(a(185));if(null===(e=fu(e,t)))return null;Ht(e,t,n),e===Il&&(Fl|=t,4===Ll&&mu(e,Dl));var r=zo();1===t?0!=(8&Pl)&&0==(48&Pl)?hu(e):(du(e,n),0===Pl&&(Hl(),qo())):(0==(4&Pl)||98!==r&&99!==r||(null===eu?eu=new Set([e]):eu.add(e)),du(e,n)),Vl=e}function fu(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function du(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,o=e.pingedLanes,i=e.expirationTimes,l=e.pendingLanes;0<l;){var u=31-Wt(l),s=1<<u,c=i[u];if(-1===c){if(0==(s&r)||0!=(s&o)){c=t,Bt(s);var f=Mt;i[u]=10<=f?c+250:6<=f?c+5e3:-1}}else c<=t&&(e.expiredLanes|=s);l&=~s}if(r=Ft(e,e===Il?Dl:0),t=Mt,0===r)null!==n&&(n!==Ao&&xo(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==Ao&&xo(n)}15===t?(n=hu.bind(null,e),null===Bo?(Bo=[n],Fo=Oo(Ro,$o)):Bo.push(n),n=Ao):14===t?n=Go(99,hu.bind(null,e)):n=Go(n=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(a(358,e))}}(t),pu.bind(null,e)),e.callbackPriority=t,e.callbackNode=n}}function pu(e){if(ru=-1,iu=ou=0,0!=(48&Pl))throw Error(a(327));var t=e.callbackNode;if(Du()&&e.callbackNode!==t)return null;var n=Ft(e,e===Il?Dl:0);if(0===n)return null;var r=n,o=Pl;Pl|=16;var i=Eu();for(Il===e&&Dl===r||(Hl(),_u(e,r));;)try{xu();break}catch(t){wu(e,t)}if(ei(),kl.current=i,Pl=o,null!==Rl?r=0:(Il=null,Dl=0,r=Ll),0!=(Ml&Fl))_u(e,0);else if(0!==r){if(2===r&&(Pl|=64,e.hydrate&&(e.hydrate=!1,Wr(e.containerInfo)),0!==(n=jt(e))&&(r=Su(e,n))),1===r)throw t=Al,_u(e,0),mu(e,n),du(e,Uo()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(a(345));case 2:Pu(e);break;case 3:if(mu(e,n),(62914560&n)===n&&10<(r=Ul+500-Uo())){if(0!==Ft(e,0))break;if(((o=e.suspendedLanes)&n)!==n){uu(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=zr(Pu.bind(null,e),r);break}Pu(e);break;case 4:if(mu(e,n),(4186112&n)===n)break;for(r=e.eventTimes,o=-1;0<n;){var l=31-Wt(n);i=1<<l,(l=r[l])>o&&(o=l),n&=~i}if(n=o,10<(n=(120>(n=Uo()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*xl(n/1960))-n)){e.timeoutHandle=zr(Pu.bind(null,e),n);break}Pu(e);break;case 5:Pu(e);break;default:throw Error(a(329))}}return du(e,Uo()),e.callbackNode===t?pu.bind(null,e):null}function mu(e,t){for(t&=~jl,t&=~Fl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Wt(t),r=1<<n;e[n]=-1,t&=~r}}function hu(e){if(0!=(48&Pl))throw Error(a(327));if(Du(),e===Il&&0!=(e.expiredLanes&Dl)){var t=Dl,n=Su(e,t);0!=(Ml&Fl)&&(n=Su(e,t=Ft(e,t)))}else n=Su(e,t=Ft(e,0));if(0!==e.tag&&2===n&&(Pl|=64,e.hydrate&&(e.hydrate=!1,Wr(e.containerInfo)),0!==(t=jt(e))&&(n=Su(e,t))),1===n)throw n=Al,_u(e,0),mu(e,t),du(e,Uo()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Pu(e),du(e,Uo()),null}function vu(e,t){var n=Pl;Pl|=1;try{return e(t)}finally{0===(Pl=n)&&(Hl(),qo())}}function gu(e,t){var n=Pl;Pl&=-2,Pl|=8;try{return e(t)}finally{0===(Pl=n)&&(Hl(),qo())}}function bu(e,t){uo(Tl,Nl),Nl|=t,Ml|=t}function yu(){Nl=Tl.current,lo(Tl)}function _u(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Hr(n)),null!==Rl)for(n=Rl.return;null!==n;){var r=n;switch(r.tag){case 1:null!=(r=r.type.childContextTypes)&&vo();break;case 3:Ni(),lo(fo),lo(co),$i();break;case 5:Li(r);break;case 4:Ni();break;case 13:case 19:lo(Ai);break;case 10:ti(r);break;case 23:case 24:yu()}n=n.return}Il=e,Rl=zu(e.current,null),Dl=Nl=Ml=t,Ll=0,Al=null,jl=Fl=Bl=0}function wu(e,t){for(;;){var n=Rl;try{if(ei(),Yi.current=Ia,ea){for(var r=Xi.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}ea=!1}if(Ki=0,Zi=Ji=Xi=null,ta=!1,Cl.current=null,null===n||null===n.return){Ll=1,Al=t,Rl=null;break}e:{var i=e,a=n.return,l=n,u=t;if(t=Dl,l.flags|=2048,l.firstEffect=l.lastEffect=null,null!==u&&"object"==typeof u&&"function"==typeof u.then){var s=u;if(0==(2&l.mode)){var c=l.alternate;c?(l.updateQueue=c.updateQueue,l.memoizedState=c.memoizedState,l.lanes=c.lanes):(l.updateQueue=null,l.memoizedState=null)}var f=0!=(1&Ai.current),d=a;do{var p;if(p=13===d.tag){var m=d.memoizedState;if(null!==m)p=null!==m.dehydrated;else{var h=d.memoizedProps;p=void 0!==h.fallback&&(!0!==h.unstable_avoidThisFallback||!f)}}if(p){var v=d.updateQueue;if(null===v){var g=new Set;g.add(s),d.updateQueue=g}else v.add(s);if(0==(2&d.mode)){if(d.flags|=64,l.flags|=16384,l.flags&=-2981,1===l.tag)if(null===l.alternate)l.tag=17;else{var b=ui(-1,1);b.tag=2,si(l,b)}l.lanes|=1;break e}u=void 0,l=t;var y=i.pingCache;if(null===y?(y=i.pingCache=new ll,u=new Set,y.set(s,u)):void 0===(u=y.get(s))&&(u=new Set,y.set(s,u)),!u.has(l)){u.add(l);var _=Bu.bind(null,i,s,l);s.then(_,_)}d.flags|=4096,d.lanes=t;break e}d=d.return}while(null!==d);u=Error(($(l.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==Ll&&(Ll=2),u=al(u,l),d=a;do{switch(d.tag){case 3:i=u,d.flags|=4096,t&=-t,d.lanes|=t,ci(d,ul(0,i,t));break e;case 1:i=u;var w=d.type,E=d.stateNode;if(0==(64&d.flags)&&("function"==typeof w.getDerivedStateFromError||null!==E&&"function"==typeof E.componentDidCatch&&(null===Yl||!Yl.has(E)))){d.flags|=4096,t&=-t,d.lanes|=t,ci(d,sl(d,i,t));break e}}d=d.return}while(null!==d)}Cu(n)}catch(e){t=e,Rl===n&&null!==n&&(Rl=n=n.return);continue}break}}function Eu(){var e=kl.current;return kl.current=Ia,null===e?Ia:e}function Su(e,t){var n=Pl;Pl|=16;var r=Eu();for(Il===e&&Dl===t||_u(e,t);;)try{Ou();break}catch(t){wu(e,t)}if(ei(),Pl=n,kl.current=r,null!==Rl)throw Error(a(261));return Il=null,Dl=0,Ll}function Ou(){for(;null!==Rl;)ku(Rl)}function xu(){for(;null!==Rl&&!ko();)ku(Rl)}function ku(e){var t=Wl(e.alternate,e,Nl);e.memoizedProps=e.pendingProps,null===t?Cu(e):Rl=t,Cl.current=null}function Cu(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(2048&t.flags)){if(null!==(n=ol(n,t,Nl)))return void(Rl=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!=(1073741824&Nl)||0==(4&n.mode)){for(var r=0,o=n.child;null!==o;)r|=o.lanes|o.childLanes,o=o.sibling;n.childLanes=r}null!==e&&0==(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(n=il(t)))return n.flags&=2047,void(Rl=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(Rl=t);Rl=t=e}while(null!==t);0===Ll&&(Ll=5)}function Pu(e){var t=zo();return Wo(99,Iu.bind(null,e,t)),null}function Iu(e,t){do{Du()}while(null!==Kl);if(0!=(48&Pl))throw Error(a(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null;var r=n.lanes|n.childLanes,o=r,i=e.pendingLanes&~o;e.pendingLanes=o,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=o,e.mutableReadLanes&=o,e.entangledLanes&=o,o=e.entanglements;for(var l=e.eventTimes,u=e.expirationTimes;0<i;){var s=31-Wt(i),c=1<<s;o[s]=0,l[s]=-1,u[s]=-1,i&=~c}if(null!==eu&&0==(24&r)&&eu.has(e)&&eu.delete(e),e===Il&&(Rl=Il=null,Dl=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(o=Pl,Pl|=32,Cl.current=null,Fr=Qt,mr(l=pr())){if("selectionStart"in l)u={start:l.selectionStart,end:l.selectionEnd};else e:if(u=(u=l.ownerDocument)&&u.defaultView||window,(c=u.getSelection&&u.getSelection())&&0!==c.rangeCount){u=c.anchorNode,i=c.anchorOffset,s=c.focusNode,c=c.focusOffset;try{u.nodeType,s.nodeType}catch(e){u=null;break e}var f=0,d=-1,p=-1,m=0,h=0,v=l,g=null;t:for(;;){for(var b;v!==u||0!==i&&3!==v.nodeType||(d=f+i),v!==s||0!==c&&3!==v.nodeType||(p=f+c),3===v.nodeType&&(f+=v.nodeValue.length),null!==(b=v.firstChild);)g=v,v=b;for(;;){if(v===l)break t;if(g===u&&++m===i&&(d=f),g===s&&++h===c&&(p=f),null!==(b=v.nextSibling))break;g=(v=g).parentNode}v=b}u=-1===d||-1===p?null:{start:d,end:p}}else u=null;u=u||{start:0,end:0}}else u=null;jr={focusedElem:l,selectionRange:u},Qt=!1,au=null,lu=!1,Gl=r;do{try{Ru()}catch(e){if(null===Gl)throw Error(a(330));Mu(Gl,e),Gl=Gl.nextEffect}}while(null!==Gl);au=null,Gl=r;do{try{for(l=e;null!==Gl;){var y=Gl.flags;if(16&y&&be(Gl.stateNode,""),128&y){var _=Gl.alternate;if(null!==_){var w=_.ref;null!==w&&("function"==typeof w?w(null):w.current=null)}}switch(1038&y){case 2:bl(Gl),Gl.flags&=-3;break;case 6:bl(Gl),Gl.flags&=-3,El(Gl.alternate,Gl);break;case 1024:Gl.flags&=-1025;break;case 1028:Gl.flags&=-1025,El(Gl.alternate,Gl);break;case 4:El(Gl.alternate,Gl);break;case 8:wl(l,u=Gl);var E=u.alternate;vl(u),null!==E&&vl(E)}Gl=Gl.nextEffect}}catch(e){if(null===Gl)throw Error(a(330));Mu(Gl,e),Gl=Gl.nextEffect}}while(null!==Gl);if(w=jr,_=pr(),y=w.focusedElem,l=w.selectionRange,_!==y&&y&&y.ownerDocument&&dr(y.ownerDocument.documentElement,y)){null!==l&&mr(y)&&(_=l.start,void 0===(w=l.end)&&(w=_),"selectionStart"in y?(y.selectionStart=_,y.selectionEnd=Math.min(w,y.value.length)):(w=(_=y.ownerDocument||document)&&_.defaultView||window).getSelection&&(w=w.getSelection(),u=y.textContent.length,E=Math.min(l.start,u),l=void 0===l.end?E:Math.min(l.end,u),!w.extend&&E>l&&(u=l,l=E,E=u),u=fr(y,E),i=fr(y,l),u&&i&&(1!==w.rangeCount||w.anchorNode!==u.node||w.anchorOffset!==u.offset||w.focusNode!==i.node||w.focusOffset!==i.offset)&&((_=_.createRange()).setStart(u.node,u.offset),w.removeAllRanges(),E>l?(w.addRange(_),w.extend(i.node,i.offset)):(_.setEnd(i.node,i.offset),w.addRange(_))))),_=[];for(w=y;w=w.parentNode;)1===w.nodeType&&_.push({element:w,left:w.scrollLeft,top:w.scrollTop});for("function"==typeof y.focus&&y.focus(),y=0;y<_.length;y++)(w=_[y]).element.scrollLeft=w.left,w.element.scrollTop=w.top}Qt=!!Fr,jr=Fr=null,e.current=n,Gl=r;do{try{for(y=e;null!==Gl;){var S=Gl.flags;if(36&S&&pl(y,Gl.alternate,Gl),128&S){_=void 0;var O=Gl.ref;if(null!==O){var x=Gl.stateNode;switch(Gl.tag){case 5:_=x;break;default:_=x}"function"==typeof O?O(_):O.current=_}}Gl=Gl.nextEffect}}catch(e){if(null===Gl)throw Error(a(330));Mu(Gl,e),Gl=Gl.nextEffect}}while(null!==Gl);Gl=null,Mo(),Pl=o}else e.current=n;if(Ql)Ql=!1,Kl=e,Xl=t;else for(Gl=r;null!==Gl;)t=Gl.nextEffect,Gl.nextEffect=null,8&Gl.flags&&((S=Gl).sibling=null,S.stateNode=null),Gl=t;if(0===(r=e.pendingLanes)&&(Yl=null),1===r?e===nu?tu++:(tu=0,nu=e):tu=0,n=n.stateNode,Eo&&"function"==typeof Eo.onCommitFiberRoot)try{Eo.onCommitFiberRoot(wo,n,void 0,64==(64&n.current.flags))}catch(e){}if(du(e,Uo()),ql)throw ql=!1,e=$l,$l=null,e;return 0!=(8&Pl)||qo(),null}function Ru(){for(;null!==Gl;){var e=Gl.alternate;lu||null===au||(0!=(8&Gl.flags)?et(Gl,au)&&(lu=!0):13===Gl.tag&&Ol(e,Gl)&&et(Gl,au)&&(lu=!0));var t=Gl.flags;0!=(256&t)&&dl(e,Gl),0==(512&t)||Ql||(Ql=!0,Go(97,(function(){return Du(),null}))),Gl=Gl.nextEffect}}function Du(){if(90!==Xl){var e=97<Xl?97:Xl;return Xl=90,Wo(e,Lu)}return!1}function Nu(e,t){Jl.push(t,e),Ql||(Ql=!0,Go(97,(function(){return Du(),null})))}function Tu(e,t){Zl.push(t,e),Ql||(Ql=!0,Go(97,(function(){return Du(),null})))}function Lu(){if(null===Kl)return!1;var e=Kl;if(Kl=null,0!=(48&Pl))throw Error(a(331));var t=Pl;Pl|=32;var n=Zl;Zl=[];for(var r=0;r<n.length;r+=2){var o=n[r],i=n[r+1],l=o.destroy;if(o.destroy=void 0,"function"==typeof l)try{l()}catch(e){if(null===i)throw Error(a(330));Mu(i,e)}}for(n=Jl,Jl=[],r=0;r<n.length;r+=2){o=n[r],i=n[r+1];try{var u=o.create;o.destroy=u()}catch(e){if(null===i)throw Error(a(330));Mu(i,e)}}for(u=e.current.firstEffect;null!==u;)e=u.nextEffect,u.nextEffect=null,8&u.flags&&(u.sibling=null,u.stateNode=null),u=e;return Pl=t,qo(),!0}function Au(e,t,n){si(e,t=ul(0,t=al(n,t),1)),t=uu(),null!==(e=fu(e,1))&&(Ht(e,1,t),du(e,t))}function Mu(e,t){if(3===e.tag)Au(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Au(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Yl||!Yl.has(r))){var o=sl(n,e=al(t,e),1);if(si(n,o),o=uu(),null!==(n=fu(n,1)))Ht(n,1,o),du(n,o);else if("function"==typeof r.componentDidCatch&&(null===Yl||!Yl.has(r)))try{r.componentDidCatch(t,e)}catch(e){}break}}n=n.return}}function Bu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=uu(),e.pingedLanes|=e.suspendedLanes&n,Il===e&&(Dl&n)===n&&(4===Ll||3===Ll&&(62914560&Dl)===Dl&&500>Uo()-Ul?_u(e,0):jl|=n),du(e,t)}function Fu(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(0==(2&(t=e.mode))?t=1:0==(4&t)?t=99===zo()?1:2:(0===ou&&(ou=Ml),0===(t=Ut(62914560&~ou))&&(t=4194304))),n=uu(),null!==(e=fu(e,t))&&(Ht(e,t,n),du(e,n))}function ju(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Vu(e,t,n,r){return new ju(e,t,n,r)}function Uu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function zu(e,t){var n=e.alternate;return null===n?((n=Vu(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Hu(e,t,n,r,o,i){var l=2;if(r=e,"function"==typeof e)Uu(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case O:return Wu(n.children,o,i,t);case M:l=8,o|=16;break;case x:l=8,o|=1;break;case k:return(e=Vu(12,n,t,8|o)).elementType=k,e.type=k,e.lanes=i,e;case R:return(e=Vu(13,n,t,o)).type=R,e.elementType=R,e.lanes=i,e;case D:return(e=Vu(19,n,t,o)).elementType=D,e.lanes=i,e;case B:return Gu(n,o,i,t);case F:return(e=Vu(24,n,t,o)).elementType=F,e.lanes=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case C:l=10;break e;case P:l=9;break e;case I:l=11;break e;case N:l=14;break e;case T:l=16,r=null;break e;case L:l=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Vu(l,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function Wu(e,t,n,r){return(e=Vu(7,e,r,t)).lanes=n,e}function Gu(e,t,n,r){return(e=Vu(23,e,r,t)).elementType=B,e.lanes=n,e}function qu(e,t,n){return(e=Vu(6,e,null,t)).lanes=n,e}function $u(e,t,n){return(t=Vu(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Yu(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=zt(0),this.expirationTimes=zt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zt(0),this.mutableSourceEagerHydrationData=null}function Qu(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:S,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function Ku(e,t,n,r){var o=t.current,i=uu(),l=su(o);e:if(n){t:{if(Ke(n=n._reactInternals)!==n||1!==n.tag)throw Error(a(170));var u=n;do{switch(u.tag){case 3:u=u.stateNode.context;break t;case 1:if(ho(u.type)){u=u.stateNode.__reactInternalMemoizedMergedChildContext;break t}}u=u.return}while(null!==u);throw Error(a(171))}if(1===n.tag){var s=n.type;if(ho(s)){n=bo(n,s,u);break e}}n=u}else n=so;return null===t.context?t.context=n:t.pendingContext=n,(t=ui(i,l)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),si(o,t),cu(o,l,i),l}function Xu(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Ju(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Zu(e,t){Ju(e,t),(e=e.alternate)&&Ju(e,t)}function es(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new Yu(e,t,null!=n&&!0===n.hydrate),t=Vu(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,ai(t),e[Xr]=n.current,Ir(8===e.nodeType?e.parentNode:e),r)for(e=0;e<r.length;e++){var o=(t=r[e])._getVersion;o=o(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,o]:n.mutableSourceEagerHydrationData.push(t,o)}this._internalRoot=n}function ts(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function ns(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i._internalRoot;if("function"==typeof o){var l=o;o=function(){var e=Xu(a);l.call(e)}}Ku(t,a,e,o)}else{if(i=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new es(e,0,t?{hydrate:!0}:void 0)}(n,r),a=i._internalRoot,"function"==typeof o){var u=o;o=function(){var e=Xu(a);u.call(e)}}gu((function(){Ku(t,a,e,o)}))}return Xu(a)}function rs(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!ts(t))throw Error(a(200));return Qu(e,t,null,n)}Wl=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||fo.current)La=!0;else{if(0==(n&r)){switch(La=!1,t.tag){case 3:Wa(t),Gi();break;case 5:Ti(t);break;case 1:ho(t.type)&&yo(t);break;case 4:Di(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var o=t.type._context;uo(Ko,o._currentValue),o._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!=(n&t.child.childLanes)?Qa(e,t,n):(uo(Ai,1&Ai.current),null!==(t=nl(e,t,n))?t.sibling:null);uo(Ai,1&Ai.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(64&e.flags)){if(r)return tl(e,t,n);t.flags|=64}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),uo(Ai,Ai.current),r)break;return null;case 23:case 24:return t.lanes=0,ja(e,t,n)}return nl(e,t,n)}La=0!=(16384&e.flags)}else La=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=mo(t,co.current),ri(t,n),o=oa(null,t,r,e,o,n),t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,ho(r)){var i=!0;yo(t)}else i=!1;t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,ai(t);var l=r.getDerivedStateFromProps;"function"==typeof l&&mi(t,r,l,e),o.updater=hi,t.stateNode=o,o._reactInternals=t,yi(t,r,e,n),t=Ha(null,t,r,!0,i,n)}else t.tag=0,Aa(null,t,o,n),t=t.child;return t;case 16:o=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=(i=o._init)(o._payload),t.type=o,i=t.tag=function(e){if("function"==typeof e)return Uu(e)?1:0;if(null!=e){if((e=e.$$typeof)===I)return 11;if(e===N)return 14}return 2}(o),e=Qo(o,e),i){case 0:t=Ua(null,t,o,e,n);break e;case 1:t=za(null,t,o,e,n);break e;case 11:t=Ma(null,t,o,e,n);break e;case 14:t=Ba(null,t,o,Qo(o.type,e),r,n);break e}throw Error(a(306,o,""))}return t;case 0:return r=t.type,o=t.pendingProps,Ua(e,t,r,o=t.elementType===r?o:Qo(r,o),n);case 1:return r=t.type,o=t.pendingProps,za(e,t,r,o=t.elementType===r?o:Qo(r,o),n);case 3:if(Wa(t),r=t.updateQueue,null===e||null===r)throw Error(a(282));if(r=t.pendingProps,o=null!==(o=t.memoizedState)?o.element:null,li(e,t),fi(t,r,null,n),(r=t.memoizedState.element)===o)Gi(),t=nl(e,t,n);else{if((i=(o=t.stateNode).hydrate)&&(Fi=Gr(t.stateNode.containerInfo.firstChild),Bi=t,i=ji=!0),i){if(null!=(e=o.mutableSourceEagerHydrationData))for(o=0;o<e.length;o+=2)(i=e[o])._workInProgressVersionPrimary=e[o+1],qi.push(i);for(n=xi(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else Aa(e,t,r,n),Gi();t=t.child}return t;case 5:return Ti(t),null===e&&zi(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,l=o.children,Ur(r,o)?l=null:null!==i&&Ur(r,i)&&(t.flags|=16),Va(e,t),Aa(e,t,l,n),t.child;case 6:return null===e&&zi(t),null;case 13:return Qa(e,t,n);case 4:return Di(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Oi(t,null,r,n):Aa(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,Ma(e,t,r,o=t.elementType===r?o:Qo(r,o),n);case 7:return Aa(e,t,t.pendingProps,n),t.child;case 8:case 12:return Aa(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,o=t.pendingProps,l=t.memoizedProps,i=o.value;var u=t.type._context;if(uo(Ko,u._currentValue),u._currentValue=i,null!==l)if(u=l.value,0===(i=lr(u,i)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(u,i):1073741823))){if(l.children===o.children&&!fo.current){t=nl(e,t,n);break e}}else for(null!==(u=t.child)&&(u.return=t);null!==u;){var s=u.dependencies;if(null!==s){l=u.child;for(var c=s.firstContext;null!==c;){if(c.context===r&&0!=(c.observedBits&i)){1===u.tag&&((c=ui(-1,n&-n)).tag=2,si(u,c)),u.lanes|=n,null!==(c=u.alternate)&&(c.lanes|=n),ni(u.return,n),s.lanes|=n;break}c=c.next}}else l=10===u.tag&&u.type===t.type?null:u.child;if(null!==l)l.return=u;else for(l=u;null!==l;){if(l===t){l=null;break}if(null!==(u=l.sibling)){u.return=l.return,l=u;break}l=l.return}u=l}Aa(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=(i=t.pendingProps).children,ri(t,n),r=r(o=oi(o,i.unstable_observedBits)),t.flags|=1,Aa(e,t,r,n),t.child;case 14:return i=Qo(o=t.type,t.pendingProps),Ba(e,t,o,i=Qo(o.type,i),r,n);case 15:return Fa(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Qo(r,o),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,ho(r)?(e=!0,yo(t)):e=!1,ri(t,n),gi(t,r,o),yi(t,r,o,n),Ha(null,t,r,!0,e,n);case 19:return tl(e,t,n);case 23:case 24:return ja(e,t,n)}throw Error(a(156,t.tag))},es.prototype.render=function(e){Ku(e,this._internalRoot,null,null)},es.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Ku(null,e,null,(function(){t[Xr]=null}))},tt=function(e){13===e.tag&&(cu(e,4,uu()),Zu(e,4))},nt=function(e){13===e.tag&&(cu(e,67108864,uu()),Zu(e,67108864))},rt=function(e){if(13===e.tag){var t=uu(),n=su(e);cu(e,n,t),Zu(e,n)}},ot=function(e,t){return t()},Ce=function(e,t,n){switch(t){case"input":if(ne(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=no(r);if(!o)throw Error(a(90));X(r),ne(r,o)}}}break;case"textarea":se(e,n);break;case"select":null!=(t=n.value)&&ae(e,!!n.multiple,t,!1)}},Te=vu,Le=function(e,t,n,r,o){var i=Pl;Pl|=4;try{return Wo(98,e.bind(null,t,n,r,o))}finally{0===(Pl=i)&&(Hl(),qo())}},Ae=function(){0==(49&Pl)&&(function(){if(null!==eu){var e=eu;eu=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,du(e,Uo())}))}qo()}(),Du())},Me=function(e,t){var n=Pl;Pl|=2;try{return e(t)}finally{0===(Pl=n)&&(Hl(),qo())}};var os={Events:[eo,to,no,De,Ne,Du,{current:!1}]},is={findFiberByHostInstance:Zr,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},as={bundleType:is.bundleType,version:is.version,rendererPackageName:is.rendererPackageName,rendererConfig:is.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ze(e))?null:e.stateNode},findFiberByHostInstance:is.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ls=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ls.isDisabled&&ls.supportsFiber)try{wo=ls.inject(as),Eo=ls}catch(ve){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=os,t.createPortal=rs,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(a(188));throw Error(a(268,Object.keys(e)))}return e=null===(e=Ze(t))?null:e.stateNode},t.flushSync=function(e,t){var n=Pl;if(0!=(48&n))return e(t);Pl|=1;try{if(e)return Wo(99,e.bind(null,t))}finally{Pl=n,qo()}},t.hydrate=function(e,t,n){if(!ts(t))throw Error(a(200));return ns(null,e,t,!0,n)},t.render=function(e,t,n){if(!ts(t))throw Error(a(200));return ns(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!ts(e))throw Error(a(40));return!!e._reactRootContainer&&(gu((function(){ns(null,null,e,!1,(function(){e._reactRootContainer=null,e[Xr]=null}))})),!0)},t.unstable_batchedUpdates=vu,t.unstable_createPortal=function(e,t){return rs(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ts(n))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return ns(e,t,n,!1,r)},t.version="17.0.2"},935:function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){}}(),e.exports=n(448)},639:function(e,t,n){"use strict";var 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},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(294),a=u(i),l=u(n(697));function u(e){return e&&e.__esModule?e:{default:e}}var s={position:"absolute",top:0,left:0,visibility:"hidden",height:0,overflow:"scroll",whiteSpace:"pre"},c=["extraWidth","injectStyles","inputClassName","inputRef","inputStyle","minWidth","onAutosize","placeholderIsMinWidth"],f=function(e,t){t.style.fontSize=e.fontSize,t.style.fontFamily=e.fontFamily,t.style.fontWeight=e.fontWeight,t.style.fontStyle=e.fontStyle,t.style.letterSpacing=e.letterSpacing,t.style.textTransform=e.textTransform},d=!("undefined"==typeof window||!window.navigator)&&/MSIE |Trident\/|Edge\//.test(window.navigator.userAgent),p=function(){return d?"_"+Math.random().toString(36).substr(2,12):void 0},m=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.inputRef=function(e){n.input=e,"function"==typeof n.props.inputRef&&n.props.inputRef(e)},n.placeHolderSizerRef=function(e){n.placeHolderSizer=e},n.sizerRef=function(e){n.sizer=e},n.state={inputWidth:e.minWidth,inputId:e.id||p(),prevId:e.id},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,null,[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.id;return n!==t.prevId?{inputId:n||p(),prevId:n}:null}}]),o(t,[{key:"componentDidMount",value:function(){this.mounted=!0,this.copyInputStyles(),this.updateInputWidth()}},{key:"componentDidUpdate",value:function(e,t){t.inputWidth!==this.state.inputWidth&&"function"==typeof this.props.onAutosize&&this.props.onAutosize(this.state.inputWidth),this.updateInputWidth()}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"copyInputStyles",value:function(){if(this.mounted&&window.getComputedStyle){var e=this.input&&window.getComputedStyle(this.input);e&&(f(e,this.sizer),this.placeHolderSizer&&f(e,this.placeHolderSizer))}}},{key:"updateInputWidth",value:function(){if(this.mounted&&this.sizer&&void 0!==this.sizer.scrollWidth){var e=void 0;e=this.props.placeholder&&(!this.props.value||this.props.value&&this.props.placeholderIsMinWidth)?Math.max(this.sizer.scrollWidth,this.placeHolderSizer.scrollWidth)+2:this.sizer.scrollWidth+2,(e+="number"===this.props.type&&void 0===this.props.extraWidth?16:parseInt(this.props.extraWidth)||0)<this.props.minWidth&&(e=this.props.minWidth),e!==this.state.inputWidth&&this.setState({inputWidth:e})}}},{key:"getInput",value:function(){return this.input}},{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"renderStyles",value:function(){var e=this.props.injectStyles;return d&&e?a.default.createElement("style",{dangerouslySetInnerHTML:{__html:"input#"+this.state.inputId+"::-ms-clear {display: none;}"}}):null}},{key:"render",value:function(){var e=[this.props.defaultValue,this.props.value,""].reduce((function(e,t){return null!=e?e:t})),t=r({},this.props.style);t.display||(t.display="inline-block");var n=r({boxSizing:"content-box",width:this.state.inputWidth+"px"},this.props.inputStyle),o=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}(this.props,[]);return function(e){c.forEach((function(t){return delete e[t]}))}(o),o.className=this.props.inputClassName,o.id=this.state.inputId,o.style=n,a.default.createElement("div",{className:this.props.className,style:t},this.renderStyles(),a.default.createElement("input",r({},o,{ref:this.inputRef})),a.default.createElement("div",{ref:this.sizerRef,style:s},e),this.props.placeholder?a.default.createElement("div",{ref:this.placeHolderSizerRef,style:s},this.props.placeholder):null)}}]),t}(i.Component);m.propTypes={className:l.default.string,defaultValue:l.default.any,extraWidth:l.default.oneOfType([l.default.number,l.default.string]),id:l.default.string,injectStyles:l.default.bool,inputClassName:l.default.string,inputRef:l.default.func,inputStyle:l.default.object,minWidth:l.default.oneOfType([l.default.number,l.default.string]),onAutosize:l.default.func,onChange:l.default.func,placeholder:l.default.string,placeholderIsMinWidth:l.default.bool,style:l.default.object,value:l.default.any},m.defaultProps={minWidth:1,injectStyles:!0},t.Z=m},921:function(e,t){"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,l=n?Symbol.for("react.profiler"):60114,u=n?Symbol.for("react.provider"):60109,s=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,f=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,m=n?Symbol.for("react.suspense_list"):60120,h=n?Symbol.for("react.memo"):60115,v=n?Symbol.for("react.lazy"):60116,g=n?Symbol.for("react.block"):60121,b=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,_=n?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case f:case i:case l:case a:case p:return e;default:switch(e=e&&e.$$typeof){case s:case d:case v:case h:case u:return e;default:return t}}case o:return t}}}function E(e){return w(e)===f}t.AsyncMode=c,t.ConcurrentMode=f,t.ContextConsumer=s,t.ContextProvider=u,t.Element=r,t.ForwardRef=d,t.Fragment=i,t.Lazy=v,t.Memo=h,t.Portal=o,t.Profiler=l,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return E(e)||w(e)===c},t.isConcurrentMode=E,t.isContextConsumer=function(e){return w(e)===s},t.isContextProvider=function(e){return w(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===d},t.isFragment=function(e){return w(e)===i},t.isLazy=function(e){return w(e)===v},t.isMemo=function(e){return w(e)===h},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===l},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===f||e===l||e===a||e===p||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===h||e.$$typeof===u||e.$$typeof===s||e.$$typeof===d||e.$$typeof===b||e.$$typeof===y||e.$$typeof===_||e.$$typeof===g)},t.typeOf=w},864:function(e,t,n){"use strict";e.exports=n(921)},408:function(e,t,n){"use strict";var r=n(418),o=60103,i=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var a=60109,l=60110,u=60112;t.Suspense=60113;var s=60115,c=60116;if("function"==typeof Symbol&&Symbol.for){var f=Symbol.for;o=f("react.element"),i=f("react.portal"),t.Fragment=f("react.fragment"),t.StrictMode=f("react.strict_mode"),t.Profiler=f("react.profiler"),a=f("react.provider"),l=f("react.context"),u=f("react.forward_ref"),t.Suspense=f("react.suspense"),s=f("react.memo"),c=f("react.lazy")}var d="function"==typeof Symbol&&Symbol.iterator;function p(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h={};function v(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||m}function g(){}function b(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||m}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(p(85));this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},g.prototype=v.prototype;var y=b.prototype=new g;y.constructor=b,r(y,v.prototype),y.isPureReactComponent=!0;var _={current:null},w=Object.prototype.hasOwnProperty,E={key:!0,ref:!0,__self:!0,__source:!0};function S(e,t,n){var r,i={},a=null,l=null;if(null!=t)for(r in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(a=""+t.key),t)w.call(t,r)&&!E.hasOwnProperty(r)&&(i[r]=t[r]);var u=arguments.length-2;if(1===u)i.children=n;else if(1<u){for(var s=Array(u),c=0;c<u;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in u=e.defaultProps)void 0===i[r]&&(i[r]=u[r]);return{$$typeof:o,type:e,key:a,ref:l,props:i,_owner:_.current}}function O(e){return"object"==typeof e&&null!==e&&e.$$typeof===o}var x=/\/+/g;function k(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function C(e,t,n,r,a){var l=typeof e;"undefined"!==l&&"boolean"!==l||(e=null);var u=!1;if(null===e)u=!0;else switch(l){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case o:case i:u=!0}}if(u)return a=a(u=e),e=""===r?"."+k(u,0):r,Array.isArray(a)?(n="",null!=e&&(n=e.replace(x,"$&/")+"/"),C(a,t,n,"",(function(e){return e}))):null!=a&&(O(a)&&(a=function(e,t){return{$$typeof:o,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,n+(!a.key||u&&u.key===a.key?"":(""+a.key).replace(x,"$&/")+"/")+e)),t.push(a)),1;if(u=0,r=""===r?".":r+":",Array.isArray(e))for(var s=0;s<e.length;s++){var c=r+k(l=e[s],s);u+=C(l,t,n,c,a)}else if("function"==typeof(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=d&&e[d]||e["@@iterator"])?e:null}(e)))for(e=c.call(e),s=0;!(l=e.next()).done;)u+=C(l=l.value,t,n,c=r+k(l,s++),a);else if("object"===l)throw t=""+e,Error(p(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return u}function P(e,t,n){if(null==e)return e;var r=[],o=0;return C(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function I(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var R={current:null};function D(){var e=R.current;if(null===e)throw Error(p(321));return e}var N={ReactCurrentDispatcher:R,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:_,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:P,forEach:function(e,t,n){P(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return P(e,(function(){t++})),t},toArray:function(e){return P(e,(function(e){return e}))||[]},only:function(e){if(!O(e))throw Error(p(143));return e}},t.Component=v,t.PureComponent=b,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=N,t.cloneElement=function(e,t,n){if(null==e)throw Error(p(267,e));var i=r({},e.props),a=e.key,l=e.ref,u=e._owner;if(null!=t){if(void 0!==t.ref&&(l=t.ref,u=_.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(c in t)w.call(t,c)&&!E.hasOwnProperty(c)&&(i[c]=void 0===t[c]&&void 0!==s?s[c]:t[c])}var c=arguments.length-2;if(1===c)i.children=n;else if(1<c){s=Array(c);for(var f=0;f<c;f++)s[f]=arguments[f+2];i.children=s}return{$$typeof:o,type:e.type,key:a,ref:l,props:i,_owner:u}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:l,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},t.createElement=S,t.createFactory=function(e){var t=S.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=O,t.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:I}},t.memo=function(e,t){return{$$typeof:s,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return D().useCallback(e,t)},t.useContext=function(e,t){return D().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return D().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return D().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return D().useLayoutEffect(e,t)},t.useMemo=function(e,t){return D().useMemo(e,t)},t.useReducer=function(e,t,n){return D().useReducer(e,t,n)},t.useRef=function(e){return D().useRef(e)},t.useState=function(e){return D().useState(e)},t.version="17.0.2"},294:function(e,t,n){"use strict";e.exports=n(408)},53:function(e,t){"use strict";var n,r,o,i;if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var l=Date,u=l.now();t.unstable_now=function(){return l.now()-u}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var s=null,c=null,f=function(){if(null!==s)try{var e=t.unstable_now();s(!0,e),s=null}catch(e){throw setTimeout(f,0),e}};n=function(e){null!==s?setTimeout(n,0,e):(s=e,setTimeout(f,0))},r=function(e,t){c=setTimeout(e,t)},o=function(){clearTimeout(c)},t.unstable_shouldYield=function(){return!1},i=t.unstable_forceFrameRate=function(){}}else{var d=window.setTimeout,p=window.clearTimeout;if("undefined"!=typeof console){window.cancelAnimationFrame;window.requestAnimationFrame}var m=!1,h=null,v=-1,g=5,b=0;t.unstable_shouldYield=function(){return t.unstable_now()>=b},i=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e||(g=0<e?Math.floor(1e3/e):5)};var y=new MessageChannel,_=y.port2;y.port1.onmessage=function(){if(null!==h){var e=t.unstable_now();b=e+g;try{h(!0,e)?_.postMessage(null):(m=!1,h=null)}catch(e){throw _.postMessage(null),e}}else m=!1},n=function(e){h=e,m||(m=!0,_.postMessage(null))},r=function(e,n){v=d((function(){e(t.unstable_now())}),n)},o=function(){p(v),v=-1}}function w(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,o=e[r];if(!(void 0!==o&&0<O(o,t)))break e;e[r]=t,e[n]=o,n=r}}function E(e){return void 0===(e=e[0])?null:e}function S(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length;r<o;){var i=2*(r+1)-1,a=e[i],l=i+1,u=e[l];if(void 0!==a&&0>O(a,n))void 0!==u&&0>O(u,a)?(e[r]=u,e[l]=n,r=l):(e[r]=a,e[i]=n,r=i);else{if(!(void 0!==u&&0>O(u,n)))break e;e[r]=u,e[l]=n,r=l}}}return t}return null}function O(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var x=[],k=[],C=1,P=null,I=3,R=!1,D=!1,N=!1;function T(e){for(var t=E(k);null!==t;){if(null===t.callback)S(k);else{if(!(t.startTime<=e))break;S(k),t.sortIndex=t.expirationTime,w(x,t)}t=E(k)}}function L(e){if(N=!1,T(e),!D)if(null!==E(x))D=!0,n(A);else{var t=E(k);null!==t&&r(L,t.startTime-e)}}function A(e,n){D=!1,N&&(N=!1,o()),R=!0;var i=I;try{for(T(n),P=E(x);null!==P&&(!(P.expirationTime>n)||e&&!t.unstable_shouldYield());){var a=P.callback;if("function"==typeof a){P.callback=null,I=P.priorityLevel;var l=a(P.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?P.callback=l:P===E(x)&&S(x),T(n)}else S(x);P=E(x)}if(null!==P)var u=!0;else{var s=E(k);null!==s&&r(L,s.startTime-n),u=!1}return u}finally{P=null,I=i,R=!1}}var M=i;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){D||R||(D=!0,n(A))},t.unstable_getCurrentPriorityLevel=function(){return I},t.unstable_getFirstCallbackNode=function(){return E(x)},t.unstable_next=function(e){switch(I){case 1:case 2:case 3:var t=3;break;default:t=I}var n=I;I=t;try{return e()}finally{I=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=M,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=I;I=e;try{return t()}finally{I=n}},t.unstable_scheduleCallback=function(e,i,a){var l=t.unstable_now();switch("object"==typeof a&&null!==a?a="number"==typeof(a=a.delay)&&0<a?l+a:l:a=l,e){case 1:var u=-1;break;case 2:u=250;break;case 5:u=1073741823;break;case 4:u=1e4;break;default:u=5e3}return e={id:C++,callback:i,priorityLevel:e,startTime:a,expirationTime:u=a+u,sortIndex:-1},a>l?(e.sortIndex=a,w(k,e),null===E(x)&&e===E(k)&&(N?o():N=!0,r(L,a-l))):(e.sortIndex=u,w(x,e),D||R||(D=!0,n(A))),e},t.unstable_wrapCallback=function(e){var t=I;return function(){var n=I;I=t;try{return e.apply(this,arguments)}finally{I=n}}}},840:function(e,t,n){"use strict";e.exports=n(53)}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={exports:{}};return t[e](i,i.exports,r),i.exports}r.m=t,e=[],r.O=function(t,n,o,i){if(!n){var a=1/0;for(c=0;c<e.length;c++){n=e[c][0],o=e[c][1],i=e[c][2];for(var l=!0,u=0;u<n.length;u++)(!1&i||a>=i)&&Object.keys(r.O).every((function(e){return r.O[e](n[u])}))?n.splice(u--,1):(l=!1,i<a&&(a=i));if(l){e.splice(c--,1);var s=o();void 0!==s&&(t=s)}}return t}i=i||0;for(var c=e.length;c>0&&e[c-1][2]>i;c--)e[c]=e[c-1];e[c]=[n,o,i]},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){var e={7:0,886:0,154:0};r.O.j=function(t){return 0===e[t]};var t=function(t,n){var o,i,a=n[0],l=n[1],u=n[2],s=0;if(a.some((function(t){return 0!==e[t]}))){for(o in l)r.o(l,o)&&(r.m[o]=l[o]);if(u)var c=u(r)}for(t&&t(n);s<a.length;s++)i=a[s],r.o(e,i)&&e[i]&&e[i][0](),e[a[s]]=0;return r.O(c)},n=self.webpackChunkflexible_checkout_fields=self.webpackChunkflexible_checkout_fields||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))}(),r.O(void 0,[886,154],(function(){return r(402)})),r.O(void 0,[886,154],(function(){return r(651)}));var o=r.O(void 0,[886,154],(function(){return r(108)}));o=r.O(o)}();
|
classes/plugin.php
CHANGED
@@ -673,13 +673,6 @@ class Flexible_Checkout_Fields_Plugin extends \FcfVendor\WPDesk\PluginBuilder\Pl
|
|
673 |
}
|
674 |
}
|
675 |
|
676 |
-
/* added 02-02-2018 */
|
677 |
-
foreach ( $fields as $field_key => $field ) {
|
678 |
-
if ( empty( $new[ $field_key ] ) ) {
|
679 |
-
$new[ $field_key ] = $field;
|
680 |
-
}
|
681 |
-
}
|
682 |
-
|
683 |
if ( count( $fields ) ) {
|
684 |
foreach ( $new as $key => $field ) {
|
685 |
if ( empty( $fields[ $key ] ) ) {
|
673 |
}
|
674 |
}
|
675 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
676 |
if ( count( $fields ) ) {
|
677 |
foreach ( $new as $key => $field ) {
|
678 |
if ( empty( $fields[ $key ] ) ) {
|
flexible-checkout-fields.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Flexible Checkout Fields
|
4 |
* Plugin URI: https://www.wpdesk.net/products/flexible-checkout-fields-pro-woocommerce/
|
5 |
* Description: Manage your WooCommerce checkout fields. Change order, labels, placeholders and add new fields.
|
6 |
-
* Version: 3.2.
|
7 |
* Author: WP Desk
|
8 |
* Author URI: https://www.wpdesk.net/
|
9 |
* Text Domain: flexible-checkout-fields
|
@@ -11,7 +11,7 @@
|
|
11 |
* Requires at least: 5.2
|
12 |
* Tested up to: 6.0
|
13 |
* WC requires at least: 6.2
|
14 |
-
* WC tested up to: 6.
|
15 |
* Requires PHP: 7.0
|
16 |
*
|
17 |
* Copyright 2017 WP Desk Ltd.
|
@@ -38,7 +38,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
38 |
} // Exit if accessed directly
|
39 |
|
40 |
/* THIS VARIABLE CAN BE CHANGED AUTOMATICALLY */
|
41 |
-
$plugin_version = '3.2.
|
42 |
|
43 |
/*
|
44 |
* Update when conditions are met:
|
3 |
* Plugin Name: Flexible Checkout Fields
|
4 |
* Plugin URI: https://www.wpdesk.net/products/flexible-checkout-fields-pro-woocommerce/
|
5 |
* Description: Manage your WooCommerce checkout fields. Change order, labels, placeholders and add new fields.
|
6 |
+
* Version: 3.2.4
|
7 |
* Author: WP Desk
|
8 |
* Author URI: https://www.wpdesk.net/
|
9 |
* Text Domain: flexible-checkout-fields
|
11 |
* Requires at least: 5.2
|
12 |
* Tested up to: 6.0
|
13 |
* WC requires at least: 6.2
|
14 |
+
* WC tested up to: 6.6
|
15 |
* Requires PHP: 7.0
|
16 |
*
|
17 |
* Copyright 2017 WP Desk Ltd.
|
38 |
} // Exit if accessed directly
|
39 |
|
40 |
/* THIS VARIABLE CAN BE CHANGED AUTOMATICALLY */
|
41 |
+
$plugin_version = '3.2.4';
|
42 |
|
43 |
/*
|
44 |
* Update when conditions are met:
|
lang/flexible-checkout-fields.pot
CHANGED
@@ -2,14 +2,14 @@
|
|
2 |
# This file is distributed under the same license as the Flexible Checkout Fields plugin.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Flexible Checkout Fields 3.2.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/flexible-checkout-fields\n"
|
7 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
8 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"POT-Creation-Date: 2022-
|
13 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
14 |
"X-Generator: WP-CLI 2.4.0\n"
|
15 |
"X-Domain: flexible-checkout-fields\n"
|
@@ -88,24 +88,24 @@ msgstr ""
|
|
88 |
msgid "Order"
|
89 |
msgstr ""
|
90 |
|
91 |
-
#: classes/plugin.php:
|
92 |
msgid "Uploading file..."
|
93 |
msgstr ""
|
94 |
|
95 |
-
#: classes/plugin.php:
|
96 |
#: src/Settings/Menu.php:33
|
97 |
msgid "Settings"
|
98 |
msgstr ""
|
99 |
|
100 |
-
#: classes/plugin.php:
|
101 |
msgid "Docs"
|
102 |
msgstr ""
|
103 |
|
104 |
-
#: classes/plugin.php:
|
105 |
msgid "Support"
|
106 |
msgstr ""
|
107 |
|
108 |
-
#: classes/plugin.php:
|
109 |
msgid "Upgrade"
|
110 |
msgstr ""
|
111 |
|
2 |
# This file is distributed under the same license as the Flexible Checkout Fields plugin.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Flexible Checkout Fields 3.2.4\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/flexible-checkout-fields\n"
|
7 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
8 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"POT-Creation-Date: 2022-06-14T08:44:14+00:00\n"
|
13 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
14 |
"X-Generator: WP-CLI 2.4.0\n"
|
15 |
"X-Domain: flexible-checkout-fields\n"
|
88 |
msgid "Order"
|
89 |
msgstr ""
|
90 |
|
91 |
+
#: classes/plugin.php:864
|
92 |
msgid "Uploading file..."
|
93 |
msgstr ""
|
94 |
|
95 |
+
#: classes/plugin.php:937
|
96 |
#: src/Settings/Menu.php:33
|
97 |
msgid "Settings"
|
98 |
msgstr ""
|
99 |
|
100 |
+
#: classes/plugin.php:938
|
101 |
msgid "Docs"
|
102 |
msgstr ""
|
103 |
|
104 |
+
#: classes/plugin.php:939
|
105 |
msgid "Support"
|
106 |
msgstr ""
|
107 |
|
108 |
+
#: classes/plugin.php:943
|
109 |
msgid "Upgrade"
|
110 |
msgstr ""
|
111 |
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.wpdesk.net/flexible-checkout-fields-woocommerce/
|
|
4 |
Tags: woocommerce checkout fields, woocommerce custom fields, woocommerce checkout manager, woocommerce checkout editor, woocommerce fields manager
|
5 |
Requires at least: 4.9
|
6 |
Tested up to: 6.0
|
7 |
-
Stable tag: 3.2.
|
8 |
Requires PHP: 7.0
|
9 |
License: GPLv3 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
@@ -218,6 +218,11 @@ If you are upgrading from the old WooCommerce Checkout Fields version (1.1, wooc
|
|
218 |
|
219 |
== Changelog ==
|
220 |
|
|
|
|
|
|
|
|
|
|
|
221 |
= 3.2.3 - 2022-05-12 =
|
222 |
* Fixed default value for Multi-checkbox field type
|
223 |
* Added support for WordPress 6.0
|
4 |
Tags: woocommerce checkout fields, woocommerce custom fields, woocommerce checkout manager, woocommerce checkout editor, woocommerce fields manager
|
5 |
Requires at least: 4.9
|
6 |
Tested up to: 6.0
|
7 |
+
Stable tag: 3.2.4
|
8 |
Requires PHP: 7.0
|
9 |
License: GPLv3 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
218 |
|
219 |
== Changelog ==
|
220 |
|
221 |
+
= 3.2.4 - 2022-06-14 =
|
222 |
+
* Fixed hiding fields in form
|
223 |
+
* Added shipping_phone as reserved name for new field
|
224 |
+
* Added support for WooCommerce 6.6
|
225 |
+
|
226 |
= 3.2.3 - 2022-05-12 =
|
227 |
* Fixed default value for Multi-checkbox field type
|
228 |
* Added support for WordPress 6.0
|
src/Service/ShortLinksGenerator.php
CHANGED
@@ -36,7 +36,7 @@ class ShortLinksGenerator implements Hookable, HookablePluginDependant {
|
|
36 |
return '#';
|
37 |
}
|
38 |
|
39 |
-
$locale =
|
40 |
$short_url = self::SHORTENER_DOMAIN . $short_path;
|
41 |
switch ( $locale ) {
|
42 |
case 'pl_PL':
|
36 |
return '#';
|
37 |
}
|
38 |
|
39 |
+
$locale = get_user_locale();
|
40 |
$short_url = self::SHORTENER_DOMAIN . $short_path;
|
41 |
switch ( $locale ) {
|
42 |
case 'pl_PL':
|
vendor/autoload.php
CHANGED
@@ -4,4 +4,4 @@
|
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
-
return
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
+
return ComposerAutoloaderInit3dca8d0f51a40fbaa629150bb2f9eac4::getLoader();
|
vendor/composer/autoload_real.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
-
class
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
@@ -22,15 +22,15 @@ class ComposerAutoloaderInit47b2fec7fefc82fd9d86966cba893a9f
|
|
22 |
return self::$loader;
|
23 |
}
|
24 |
|
25 |
-
spl_autoload_register(array('
|
26 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
27 |
-
spl_autoload_unregister(array('
|
28 |
|
29 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
30 |
if ($useStaticLoader) {
|
31 |
require_once __DIR__ . '/autoload_static.php';
|
32 |
|
33 |
-
call_user_func(\Composer\Autoload\
|
34 |
} else {
|
35 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
36 |
foreach ($map as $namespace => $path) {
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
+
class ComposerAutoloaderInit3dca8d0f51a40fbaa629150bb2f9eac4
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
22 |
return self::$loader;
|
23 |
}
|
24 |
|
25 |
+
spl_autoload_register(array('ComposerAutoloaderInit3dca8d0f51a40fbaa629150bb2f9eac4', 'loadClassLoader'), true, true);
|
26 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
27 |
+
spl_autoload_unregister(array('ComposerAutoloaderInit3dca8d0f51a40fbaa629150bb2f9eac4', 'loadClassLoader'));
|
28 |
|
29 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
30 |
if ($useStaticLoader) {
|
31 |
require_once __DIR__ . '/autoload_static.php';
|
32 |
|
33 |
+
call_user_func(\Composer\Autoload\ComposerStaticInit3dca8d0f51a40fbaa629150bb2f9eac4::getInitializer($loader));
|
34 |
} else {
|
35 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
36 |
foreach ($map as $namespace => $path) {
|
vendor/composer/autoload_static.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
-
class
|
8 |
{
|
9 |
public static $prefixLengthsPsr4 = array (
|
10 |
'W' =>
|
@@ -490,9 +490,9 @@ class ComposerStaticInit47b2fec7fefc82fd9d86966cba893a9f
|
|
490 |
public static function getInitializer(ClassLoader $loader)
|
491 |
{
|
492 |
return \Closure::bind(function () use ($loader) {
|
493 |
-
$loader->prefixLengthsPsr4 =
|
494 |
-
$loader->prefixDirsPsr4 =
|
495 |
-
$loader->classMap =
|
496 |
|
497 |
}, null, ClassLoader::class);
|
498 |
}
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
+
class ComposerStaticInit3dca8d0f51a40fbaa629150bb2f9eac4
|
8 |
{
|
9 |
public static $prefixLengthsPsr4 = array (
|
10 |
'W' =>
|
490 |
public static function getInitializer(ClassLoader $loader)
|
491 |
{
|
492 |
return \Closure::bind(function () use ($loader) {
|
493 |
+
$loader->prefixLengthsPsr4 = ComposerStaticInit3dca8d0f51a40fbaa629150bb2f9eac4::$prefixLengthsPsr4;
|
494 |
+
$loader->prefixDirsPsr4 = ComposerStaticInit3dca8d0f51a40fbaa629150bb2f9eac4::$prefixDirsPsr4;
|
495 |
+
$loader->classMap = ComposerStaticInit3dca8d0f51a40fbaa629150bb2f9eac4::$classMap;
|
496 |
|
497 |
}, null, ClassLoader::class);
|
498 |
}
|
vendor_prefixed/wpdesk/wp-codeception/src/WPDesk/Composer/Commands/Configuration.php
CHANGED
@@ -19,6 +19,7 @@ class Configuration
|
|
19 |
const APACHE_DOCUMENT_ROOT = 'APACHE_DOCUMENT_ROOT';
|
20 |
const WOOTESTS_IP = 'WOOTESTS_IP';
|
21 |
const DEPENDENT_PLUGINS_DIR = 'DEPENDENT_PLUGINS_DIR';
|
|
|
22 |
/**
|
23 |
* @var string
|
24 |
*/
|
@@ -27,6 +28,10 @@ class Configuration
|
|
27 |
* @var string
|
28 |
*/
|
29 |
private $wptests_ip;
|
|
|
|
|
|
|
|
|
30 |
/**
|
31 |
* @var string
|
32 |
*/
|
@@ -92,6 +97,7 @@ class Configuration
|
|
92 |
*
|
93 |
* @param $apache_document_root
|
94 |
* @param $wptests_ip
|
|
|
95 |
* @param $dbhost
|
96 |
* @param $dbname
|
97 |
* @param $dbuser
|
@@ -108,10 +114,11 @@ class Configuration
|
|
108 |
* @param $prepare_database
|
109 |
* @param $theme_files
|
110 |
*/
|
111 |
-
public function __construct($apache_document_root, $wptests_ip, $dbhost, $dbname, $dbuser, $dbpassword, $dependent_plugins_dir, $plugin_slug, $plugin_dir, $plugin_file, $plugin_title, $plugin_product_id, $repository_plugins, $local_plugins, $activate_plugins, $prepare_database, $theme_files)
|
112 |
{
|
113 |
$this->apache_document_root = $apache_document_root;
|
114 |
$this->wptests_ip = $wptests_ip;
|
|
|
115 |
$this->dbhost = $dbhost;
|
116 |
$this->dbname = $dbname;
|
117 |
$this->dbuser = $dbuser;
|
@@ -142,6 +149,13 @@ class Configuration
|
|
142 |
{
|
143 |
return $this->wptests_ip;
|
144 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
145 |
/**
|
146 |
* @return string
|
147 |
*/
|
@@ -282,6 +296,7 @@ class Configuration
|
|
282 |
$dbname = self::prepareFromEnv(self::MYSQL_DBNAME, 'wptest');
|
283 |
$dbuser = self::prepareFromEnv(self::MYSQL_DBUSER, 'mysql');
|
284 |
$dbpassword = self::prepareFromEnv(self::MYSQL_DBPASSWORD, 'mysql');
|
|
|
285 |
$dependent_plugins_dir = self::prepareFromEnv(self::DEPENDENT_PLUGINS_DIR, '../');
|
286 |
if (isset($configuration['plugin-slug'])) {
|
287 |
$plugin_slug = $configuration['plugin-slug'];
|
@@ -316,7 +331,7 @@ class Configuration
|
|
316 |
$repository_plugins = self::getPluginsSettings($configuration, 'repository');
|
317 |
$local_plugins = self::getPluginsSettings($configuration, 'local');
|
318 |
$activate_plugins = self::getPluginsSettings($configuration, 'activate');
|
319 |
-
return new self($apache_document_root, $wptests_ip, $dbhost, $dbname, $dbuser, $dbpassword, $dependent_plugins_dir, $plugin_slug, $plugin_dir, $plugin_file, $plugin_title, $plugin_product_id, $repository_plugins, $local_plugins, $activate_plugins, $prepare_database, $theme_files);
|
320 |
}
|
321 |
/**
|
322 |
* @param string $env_variable .
|
19 |
const APACHE_DOCUMENT_ROOT = 'APACHE_DOCUMENT_ROOT';
|
20 |
const WOOTESTS_IP = 'WOOTESTS_IP';
|
21 |
const DEPENDENT_PLUGINS_DIR = 'DEPENDENT_PLUGINS_DIR';
|
22 |
+
const TEST_SITE_WP_URL = 'TEST_SITE_WP_URL';
|
23 |
/**
|
24 |
* @var string
|
25 |
*/
|
28 |
* @var string
|
29 |
*/
|
30 |
private $wptests_ip;
|
31 |
+
/**
|
32 |
+
* @var string
|
33 |
+
*/
|
34 |
+
private $wptests_url;
|
35 |
/**
|
36 |
* @var string
|
37 |
*/
|
97 |
*
|
98 |
* @param $apache_document_root
|
99 |
* @param $wptests_ip
|
100 |
+
* @param $wptests_url
|
101 |
* @param $dbhost
|
102 |
* @param $dbname
|
103 |
* @param $dbuser
|
114 |
* @param $prepare_database
|
115 |
* @param $theme_files
|
116 |
*/
|
117 |
+
public function __construct($apache_document_root, $wptests_ip, $wptests_url, $dbhost, $dbname, $dbuser, $dbpassword, $dependent_plugins_dir, $plugin_slug, $plugin_dir, $plugin_file, $plugin_title, $plugin_product_id, $repository_plugins, $local_plugins, $activate_plugins, $prepare_database, $theme_files)
|
118 |
{
|
119 |
$this->apache_document_root = $apache_document_root;
|
120 |
$this->wptests_ip = $wptests_ip;
|
121 |
+
$this->wptests_url = $wptests_url;
|
122 |
$this->dbhost = $dbhost;
|
123 |
$this->dbname = $dbname;
|
124 |
$this->dbuser = $dbuser;
|
149 |
{
|
150 |
return $this->wptests_ip;
|
151 |
}
|
152 |
+
/**
|
153 |
+
* @return string
|
154 |
+
*/
|
155 |
+
public function getWptestsUrl()
|
156 |
+
{
|
157 |
+
return $this->wptests_url;
|
158 |
+
}
|
159 |
/**
|
160 |
* @return string
|
161 |
*/
|
296 |
$dbname = self::prepareFromEnv(self::MYSQL_DBNAME, 'wptest');
|
297 |
$dbuser = self::prepareFromEnv(self::MYSQL_DBUSER, 'mysql');
|
298 |
$dbpassword = self::prepareFromEnv(self::MYSQL_DBPASSWORD, 'mysql');
|
299 |
+
$wptest_url = self::prepareFromEnv(self::TEST_SITE_WP_URL, 'http://wptests.lh');
|
300 |
$dependent_plugins_dir = self::prepareFromEnv(self::DEPENDENT_PLUGINS_DIR, '../');
|
301 |
if (isset($configuration['plugin-slug'])) {
|
302 |
$plugin_slug = $configuration['plugin-slug'];
|
331 |
$repository_plugins = self::getPluginsSettings($configuration, 'repository');
|
332 |
$local_plugins = self::getPluginsSettings($configuration, 'local');
|
333 |
$activate_plugins = self::getPluginsSettings($configuration, 'activate');
|
334 |
+
return new self($apache_document_root, $wptests_ip, $wptest_url, $dbhost, $dbname, $dbuser, $dbpassword, $dependent_plugins_dir, $plugin_slug, $plugin_dir, $plugin_file, $plugin_title, $plugin_product_id, $repository_plugins, $local_plugins, $activate_plugins, $prepare_database, $theme_files);
|
335 |
}
|
336 |
/**
|
337 |
* @param string $env_variable .
|
vendor_prefixed/wpdesk/wp-codeception/src/WPDesk/Composer/Commands/LocalCodeceptionTrait.php
CHANGED
@@ -31,11 +31,27 @@ trait LocalCodeceptionTrait
|
|
31 |
$this->executeWpCliAndOutput('config set WP_DEBUG true --raw', $output, $apache_document_root);
|
32 |
$this->executeWpCliAndOutput('config set WP_DEBUG_LOG true --raw', $output, $apache_document_root);
|
33 |
$this->executeWpCliAndOutput('config set WP_DEBUG_DISPLAY false --raw', $output, $apache_document_root);
|
34 |
-
$this->executeWpCliAndOutput('config set WP_HOME
|
35 |
-
$this->executeWpCliAndOutput('config set WP_SITEURL
|
36 |
$this->executeWpCliAndOutput('config set WP_AUTO_UPDATE_CORE false --raw', $output, $apache_document_root);
|
37 |
$this->executeWpCliAndOutput('config set AUTOMATIC_UPDATER_DISABLED false --raw', $output, $apache_document_root);
|
38 |
$this->executeWpCliAndOutput('rewrite structure \'/%postname%/\'', $output, $apache_document_root);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
}
|
40 |
/**
|
41 |
* @param OutputInterface $output
|
@@ -58,6 +74,8 @@ trait LocalCodeceptionTrait
|
|
58 |
$output->writeln($rsync);
|
59 |
$this->execAndOutput($rsync, $output);
|
60 |
}
|
|
|
|
|
61 |
foreach ($configuration->getActivatePlugins() as $plugin) {
|
62 |
$this->executeWpCliAndOutput('plugin activate ' . $plugin, $output, $configuration->getApacheDocumentRoot());
|
63 |
}
|
@@ -90,8 +108,7 @@ trait LocalCodeceptionTrait
|
|
90 |
private function executeWpCliAndOutput($command, \FcfVendor\Symfony\Component\Console\Output\OutputInterface $output, $apache_document_root)
|
91 |
{
|
92 |
$output->write("WPCLI: {$command}\n");
|
93 |
-
$
|
94 |
-
$wp = "php vendor{$sep}wp-cli{$sep}wp-cli{$sep}php{$sep}boot-fs.php";
|
95 |
$command = $wp . ' ' . $command . ' --allow-root --path=' . $apache_document_root;
|
96 |
$this->execAndOutput($command, $output);
|
97 |
}
|
@@ -159,7 +176,7 @@ trait LocalCodeceptionTrait
|
|
159 |
*/
|
160 |
private function prepareWcOptionsCommands()
|
161 |
{
|
162 |
-
return array('option update woocommerce_admin_notices \'{}\'', 'option update storefront_nux_dismissed 1', 'option set woocommerce_store_address "al. Jana Pawła 12"', 'option set woocommerce_store_address_2 ""', 'option set woocommerce_store_city "Warszawa"', 'option set woocommerce_default_country "PL"', 'option set woocommerce_store_postalcode "22-100"', 'option set woocommerce_currency "PLN"', 'option set woocommerce_currency_pos "right_space"', 'option set woocommerce_product_type "physical"', 'option set woocommerce_allow_tracking "no"', 'option set --format=json woocommerce_stripe_settings \'{"enabled":"no","create_account":false,"email":false}\'', 'option set --format=json woocommerce_ppec_paypal_settings \'{"reroute_requests":false,"email":false}\'', 'option set --format=json woocommerce_cheque_settings \'{"enabled":"no"}\'', 'option set --format=json woocommerce_bacs_settings \'{"enabled":"no"}\'', 'option set --format=json woocommerce_cod_settings \'{"enabled":"yes"}\'', 'option set --format=json woocommerce_onboarding_profile \'{"skipped":true}\'', 'option set --format=json wc-admin-onboarding-profiler-reminder \'{"skipped":true}\'', 'option get woocommerce_onboarding_profile', 'option set woocommerce_task_list_hidden "yes"');
|
163 |
}
|
164 |
/**
|
165 |
* @return string[]
|
31 |
$this->executeWpCliAndOutput('config set WP_DEBUG true --raw', $output, $apache_document_root);
|
32 |
$this->executeWpCliAndOutput('config set WP_DEBUG_LOG true --raw', $output, $apache_document_root);
|
33 |
$this->executeWpCliAndOutput('config set WP_DEBUG_DISPLAY false --raw', $output, $apache_document_root);
|
34 |
+
$this->executeWpCliAndOutput('config set WP_HOME ' . $configuration->getWptestsUrl(), $output, $apache_document_root);
|
35 |
+
$this->executeWpCliAndOutput('config set WP_SITEURL ' . $configuration->getWptestsUrl(), $output, $apache_document_root);
|
36 |
$this->executeWpCliAndOutput('config set WP_AUTO_UPDATE_CORE false --raw', $output, $apache_document_root);
|
37 |
$this->executeWpCliAndOutput('config set AUTOMATIC_UPDATER_DISABLED false --raw', $output, $apache_document_root);
|
38 |
$this->executeWpCliAndOutput('rewrite structure \'/%postname%/\'', $output, $apache_document_root);
|
39 |
+
$this->replace_in_file($apache_document_root . '/wp-config.php', 'if ( isset( $_SERVER[\'HTTP_X_FORWARDED_PROTO\'] ) && \'https\' === $_SERVER[\'HTTP_X_FORWARDED_PROTO\'] ) { $_SERVER[\'HTTPS\'] = \'on\'; }', '');
|
40 |
+
$this->replace_in_file($apache_document_root . '/wp-config.php', '<?php', '<?php if ( isset( $_SERVER[\'HTTP_X_FORWARDED_PROTO\'] ) && \'https\' === $_SERVER[\'HTTP_X_FORWARDED_PROTO\'] ) { $_SERVER[\'HTTPS\'] = \'on\'; }');
|
41 |
+
}
|
42 |
+
/**
|
43 |
+
* @param string $filename
|
44 |
+
* @param string $string_to_replace
|
45 |
+
* @param string $replace_with
|
46 |
+
*
|
47 |
+
* @return void
|
48 |
+
*/
|
49 |
+
private function replace_in_file($filename, $string_to_replace, $replace_with)
|
50 |
+
{
|
51 |
+
$content = \file_get_contents($filename);
|
52 |
+
$content_chunks = \explode($string_to_replace, $content);
|
53 |
+
$content = \implode($replace_with, $content_chunks);
|
54 |
+
\file_put_contents($filename, $content);
|
55 |
}
|
56 |
/**
|
57 |
* @param OutputInterface $output
|
74 |
$output->writeln($rsync);
|
75 |
$this->execAndOutput($rsync, $output);
|
76 |
}
|
77 |
+
$this->executeWpCliAndOutput('plugin status', $output, $configuration->getApacheDocumentRoot());
|
78 |
+
$this->executeWpCliAndOutput('plugin list', $output, $configuration->getApacheDocumentRoot());
|
79 |
foreach ($configuration->getActivatePlugins() as $plugin) {
|
80 |
$this->executeWpCliAndOutput('plugin activate ' . $plugin, $output, $configuration->getApacheDocumentRoot());
|
81 |
}
|
108 |
private function executeWpCliAndOutput($command, \FcfVendor\Symfony\Component\Console\Output\OutputInterface $output, $apache_document_root)
|
109 |
{
|
110 |
$output->write("WPCLI: {$command}\n");
|
111 |
+
$wp = "wp";
|
|
|
112 |
$command = $wp . ' ' . $command . ' --allow-root --path=' . $apache_document_root;
|
113 |
$this->execAndOutput($command, $output);
|
114 |
}
|
176 |
*/
|
177 |
private function prepareWcOptionsCommands()
|
178 |
{
|
179 |
+
return array('option update woocommerce_admin_notices \'{}\'', 'option update storefront_nux_dismissed 1', 'option set woocommerce_store_address "al. Jana Pawła 12"', 'option set woocommerce_store_address_2 ""', 'option set woocommerce_store_city "Warszawa"', 'option set woocommerce_default_country "PL"', 'option set woocommerce_store_postalcode "22-100"', 'option set woocommerce_currency "PLN"', 'option set woocommerce_currency_pos "right_space"', 'option set woocommerce_product_type "physical"', 'option set woocommerce_allow_tracking "no"', 'option set --format=json woocommerce_stripe_settings \'{"enabled":"no","create_account":false,"email":false}\'', 'option set --format=json woocommerce_ppec_paypal_settings \'{"reroute_requests":false,"email":false}\'', 'option set --format=json woocommerce_cheque_settings \'{"enabled":"no"}\'', 'option set --format=json woocommerce_bacs_settings \'{"enabled":"no"}\'', 'option set --format=json woocommerce_cod_settings \'{"enabled":"yes"}\'', 'option set --format=json woocommerce_onboarding_profile \'{"skipped":true}\'', 'option set --format=json wc-admin-onboarding-profiler-reminder \'{"skipped":true}\'', 'option get woocommerce_onboarding_profile', 'option set woocommerce_task_list_hidden "yes"', 'option set woocommerce_task_list_hidden "yes"', 'option set woocommerce_show_marketplace_suggestions "no"');
|
180 |
}
|
181 |
/**
|
182 |
* @return string[]
|
vendor_prefixed/wpdesk/wp-codeception/src/WPDesk/Composer/Commands/PrepareCodeceptionDb.php
CHANGED
@@ -37,7 +37,6 @@ class PrepareCodeceptionDb extends \FcfVendor\WPDesk\Composer\Codeception\Comman
|
|
37 |
$this->installPlugin($configuration->getPluginDir(), $output, $configuration);
|
38 |
$this->prepareCommonWpWcConfiguration($configuration, $output);
|
39 |
$this->prepareWpConfig($output, $configuration);
|
40 |
-
$this->executeWpCliAndOutput('plugin activate ' . $configuration->getPluginSlug(), $output, $configuration->getApacheDocumentRoot());
|
41 |
$this->activatePlugins($output, $configuration);
|
42 |
$this->executeWpCliAndOutput('db export ' . \getcwd() . '/tests/codeception/tests/_data/db.sql', $output, $configuration->getApacheDocumentRoot());
|
43 |
return 0;
|
37 |
$this->installPlugin($configuration->getPluginDir(), $output, $configuration);
|
38 |
$this->prepareCommonWpWcConfiguration($configuration, $output);
|
39 |
$this->prepareWpConfig($output, $configuration);
|
|
|
40 |
$this->activatePlugins($output, $configuration);
|
41 |
$this->executeWpCliAndOutput('db export ' . \getcwd() . '/tests/codeception/tests/_data/db.sql', $output, $configuration->getApacheDocumentRoot());
|
42 |
return 0;
|
vendor_prefixed/wpdesk/wp-logs/src/SimpleLoggerFactory.php
CHANGED
@@ -27,22 +27,15 @@ final class SimpleLoggerFactory implements \FcfVendor\WPDesk\Logger\LoggerFactor
|
|
27 |
return $this->logger;
|
28 |
}
|
29 |
$logger = new \FcfVendor\Monolog\Logger($this->channel);
|
30 |
-
|
31 |
-
|
32 |
-
$logger->pushHandler($wc_handler);
|
33 |
}
|
34 |
-
if
|
|
|
35 |
$logger->pushHandler($this->get_wp_handler());
|
36 |
}
|
37 |
return $this->logger = $logger;
|
38 |
}
|
39 |
-
private function get_wc_handler() : \FcfVendor\Monolog\Handler\HandlerInterface
|
40 |
-
{
|
41 |
-
if (\function_exists('wc_get_logger')) {
|
42 |
-
return new \FcfVendor\WPDesk\Logger\WC\WooCommerceHandler(\wc_get_logger(), $this->options->level);
|
43 |
-
}
|
44 |
-
return new \FcfVendor\Monolog\Handler\NullHandler();
|
45 |
-
}
|
46 |
private function get_wp_handler() : \FcfVendor\Monolog\Handler\HandlerInterface
|
47 |
{
|
48 |
if (\defined('FcfVendor\\WP_DEBUG_LOG') && WP_DEBUG_LOG) {
|
27 |
return $this->logger;
|
28 |
}
|
29 |
$logger = new \FcfVendor\Monolog\Logger($this->channel);
|
30 |
+
if ($this->options->use_wc_log && \function_exists('wc_get_logger')) {
|
31 |
+
$logger->pushHandler(new \FcfVendor\WPDesk\Logger\WC\WooCommerceHandler(\wc_get_logger(), $this->channel));
|
|
|
32 |
}
|
33 |
+
// Adding WooCommerce logger may have failed, if so add WP by default.
|
34 |
+
if ($this->options->use_wp_log || empty($logger->getHandlers())) {
|
35 |
$logger->pushHandler($this->get_wp_handler());
|
36 |
}
|
37 |
return $this->logger = $logger;
|
38 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
private function get_wp_handler() : \FcfVendor\Monolog\Handler\HandlerInterface
|
40 |
{
|
41 |
if (\defined('FcfVendor\\WP_DEBUG_LOG') && WP_DEBUG_LOG) {
|
vendor_prefixed/wpdesk/wp-logs/src/WC/WooCommerceHandler.php
CHANGED
@@ -12,6 +12,8 @@ class WooCommerceHandler extends \FcfVendor\Monolog\Handler\AbstractProcessingHa
|
|
12 |
const DEFAULT_WC_SOURCE = 'wpdesk-logger';
|
13 |
/** @var \WC_Logger_Interface */
|
14 |
private $wc_logger;
|
|
|
|
|
15 |
/**
|
16 |
* Writes the record down to the log of the implementing handler
|
17 |
*
|
@@ -20,7 +22,7 @@ class WooCommerceHandler extends \FcfVendor\Monolog\Handler\AbstractProcessingHa
|
|
20 |
*/
|
21 |
protected function write(array $record)
|
22 |
{
|
23 |
-
$context = \array_merge(['source' =>
|
24 |
$this->wc_logger->log($this->convertMonologLevelToWC($record['level']), $record['message'], $context);
|
25 |
}
|
26 |
/**
|
@@ -31,9 +33,10 @@ class WooCommerceHandler extends \FcfVendor\Monolog\Handler\AbstractProcessingHa
|
|
31 |
{
|
32 |
return \FcfVendor\Monolog\Logger::getLevelName($level);
|
33 |
}
|
34 |
-
public function __construct(\WC_Logger_Interface $originalWcLogger)
|
35 |
{
|
36 |
parent::__construct();
|
37 |
$this->wc_logger = $originalWcLogger;
|
|
|
38 |
}
|
39 |
}
|
12 |
const DEFAULT_WC_SOURCE = 'wpdesk-logger';
|
13 |
/** @var \WC_Logger_Interface */
|
14 |
private $wc_logger;
|
15 |
+
/** @var string */
|
16 |
+
private $channel;
|
17 |
/**
|
18 |
* Writes the record down to the log of the implementing handler
|
19 |
*
|
22 |
*/
|
23 |
protected function write(array $record)
|
24 |
{
|
25 |
+
$context = \array_merge(['source' => $this->channel], $record['extra'], $record['context']);
|
26 |
$this->wc_logger->log($this->convertMonologLevelToWC($record['level']), $record['message'], $context);
|
27 |
}
|
28 |
/**
|
33 |
{
|
34 |
return \FcfVendor\Monolog\Logger::getLevelName($level);
|
35 |
}
|
36 |
+
public function __construct(\WC_Logger_Interface $originalWcLogger, string $channel = self::DEFAULT_WC_SOURCE)
|
37 |
{
|
38 |
parent::__construct();
|
39 |
$this->wc_logger = $originalWcLogger;
|
40 |
+
$this->channel = $channel;
|
41 |
}
|
42 |
}
|
vendor_prefixed/wpdesk/wp-notice/assets/js/gutenberg.js
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
jQuery( document ).ready(function() {
|
2 |
+
jQuery('.wpdesk-notice-gutenberg').each(function( index ) {
|
3 |
+
var classList = jQuery(this).attr('class').split(/\s+/);
|
4 |
+
var type = '';
|
5 |
+
jQuery.each(classList, function(index, item) {
|
6 |
+
if (item.startsWith('notice-')) {
|
7 |
+
type = item.replace('notice-','');
|
8 |
+
}
|
9 |
+
});
|
10 |
+
content = this.innerText;
|
11 |
+
actions = [];
|
12 |
+
jQuery.each(jQuery(this).find('a'), function(index, item) {
|
13 |
+
text = item.innerText;
|
14 |
+
actions.push({
|
15 |
+
url: item.href,
|
16 |
+
label: text.charAt(0).toUpperCase() + text.slice(1),
|
17 |
+
});
|
18 |
+
});
|
19 |
+
isDismiss = jQuery(this).hasClass('is-dismissible');
|
20 |
+
window.wp.data.dispatch( 'core/notices' ).createNotice(
|
21 |
+
type,
|
22 |
+
content,
|
23 |
+
{
|
24 |
+
isDismissible: isDismiss,
|
25 |
+
actions: actions
|
26 |
+
}
|
27 |
+
);
|
28 |
+
});
|
29 |
+
} );
|
vendor_prefixed/wpdesk/wp-notice/composer.json
CHANGED
@@ -15,6 +15,11 @@
|
|
15 |
"email": "grola@wpdesk.net"
|
16 |
}
|
17 |
],
|
|
|
|
|
|
|
|
|
|
|
18 |
"require": {
|
19 |
"php": ">=5.5",
|
20 |
"wpdesk\/wp-builder": "^1.0|^2.0"
|
15 |
"email": "grola@wpdesk.net"
|
16 |
}
|
17 |
],
|
18 |
+
"config": {
|
19 |
+
"platform": {
|
20 |
+
"php": "7.0"
|
21 |
+
}
|
22 |
+
},
|
23 |
"require": {
|
24 |
"php": ">=5.5",
|
25 |
"wpdesk\/wp-builder": "^1.0|^2.0"
|
vendor_prefixed/wpdesk/wp-notice/src/WPDesk/Notice/AjaxHandler.php
CHANGED
@@ -57,7 +57,7 @@ class AjaxHandler implements \FcfVendor\WPDesk\PluginBuilder\Plugin\HookablePlug
|
|
57 |
*/
|
58 |
public function addScriptToAdminHead()
|
59 |
{
|
60 |
-
include 'views/admin-head-js.php';
|
61 |
}
|
62 |
/**
|
63 |
* Process AJAX notice dismiss.
|
57 |
*/
|
58 |
public function addScriptToAdminHead()
|
59 |
{
|
60 |
+
include __DIR__ . '/views/admin-head-js.php';
|
61 |
}
|
62 |
/**
|
63 |
* Process AJAX notice dismiss.
|
vendor_prefixed/wpdesk/wp-notice/src/WPDesk/Notice/Notice.php
CHANGED
@@ -49,6 +49,12 @@ class Notice
|
|
49 |
* @var string[]
|
50 |
*/
|
51 |
protected $attributes = array();
|
|
|
|
|
|
|
|
|
|
|
|
|
52 |
/**
|
53 |
* WPDesk_Flexible_Shipping_Notice constructor.
|
54 |
*
|
@@ -57,16 +63,28 @@ class Notice
|
|
57 |
* @param bool $dismissible Is dismissible.
|
58 |
* @param int $priority Notice priority.
|
59 |
* @param array $attributes Attributes.
|
|
|
60 |
*/
|
61 |
-
public function __construct($noticeContent, $noticeType = 'info', $dismissible = \false, $priority = 10, $attributes = array())
|
62 |
{
|
63 |
$this->noticeContent = $noticeContent;
|
64 |
$this->noticeType = $noticeType;
|
65 |
$this->dismissible = $dismissible;
|
66 |
$this->priority = $priority;
|
67 |
$this->attributes = $attributes;
|
|
|
68 |
$this->addAction();
|
69 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
70 |
/**
|
71 |
* @return string
|
72 |
*/
|
@@ -135,6 +153,7 @@ class Notice
|
|
135 |
if (!$this->actionAdded) {
|
136 |
\add_action('admin_notices', [$this, 'showNotice'], $this->priority);
|
137 |
\add_action('admin_footer', [$this, 'showNotice'], self::ADMIN_FOOTER_BASE_PRIORITY + \intval($this->priority));
|
|
|
138 |
$this->actionAdded = \true;
|
139 |
}
|
140 |
}
|
@@ -149,6 +168,15 @@ class Notice
|
|
149 |
$this->actionAdded = \false;
|
150 |
}
|
151 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
152 |
/**
|
153 |
* Add attribute.
|
154 |
*
|
@@ -166,18 +194,22 @@ class Notice
|
|
166 |
*/
|
167 |
protected function getNoticeClass()
|
168 |
{
|
|
|
169 |
if ('updated' === $this->noticeType) {
|
170 |
-
$
|
171 |
} else {
|
172 |
-
$
|
173 |
}
|
174 |
if ($this->dismissible) {
|
175 |
-
$
|
176 |
}
|
177 |
if (isset($this->attributes['class'])) {
|
178 |
-
$
|
|
|
|
|
|
|
179 |
}
|
180 |
-
return $
|
181 |
}
|
182 |
/**
|
183 |
* Get attributes as string.
|
49 |
* @var string[]
|
50 |
*/
|
51 |
protected $attributes = array();
|
52 |
+
/**
|
53 |
+
* Show notice in gutenberg editor.
|
54 |
+
*
|
55 |
+
* @var bool
|
56 |
+
*/
|
57 |
+
protected $showInGutenberg = \false;
|
58 |
/**
|
59 |
* WPDesk_Flexible_Shipping_Notice constructor.
|
60 |
*
|
63 |
* @param bool $dismissible Is dismissible.
|
64 |
* @param int $priority Notice priority.
|
65 |
* @param array $attributes Attributes.
|
66 |
+
* @param bool $showInGutenberg Show notice in gutenberg editor.
|
67 |
*/
|
68 |
+
public function __construct($noticeContent, $noticeType = 'info', $dismissible = \false, $priority = 10, $attributes = array(), $showInGutenberg = \false)
|
69 |
{
|
70 |
$this->noticeContent = $noticeContent;
|
71 |
$this->noticeType = $noticeType;
|
72 |
$this->dismissible = $dismissible;
|
73 |
$this->priority = $priority;
|
74 |
$this->attributes = $attributes;
|
75 |
+
$this->showInGutenberg = $showInGutenberg;
|
76 |
$this->addAction();
|
77 |
}
|
78 |
+
/**
|
79 |
+
* @return bool
|
80 |
+
*/
|
81 |
+
public function isBlockEditor()
|
82 |
+
{
|
83 |
+
if (!\function_exists('get_current_screen')) {
|
84 |
+
require_once \ABSPATH . '/wp-admin/includes/screen.php';
|
85 |
+
}
|
86 |
+
return \get_current_screen()->is_block_editor();
|
87 |
+
}
|
88 |
/**
|
89 |
* @return string
|
90 |
*/
|
153 |
if (!$this->actionAdded) {
|
154 |
\add_action('admin_notices', [$this, 'showNotice'], $this->priority);
|
155 |
\add_action('admin_footer', [$this, 'showNotice'], self::ADMIN_FOOTER_BASE_PRIORITY + \intval($this->priority));
|
156 |
+
\add_action('admin_head', [$this, 'addGutenbergScript']);
|
157 |
$this->actionAdded = \true;
|
158 |
}
|
159 |
}
|
168 |
$this->actionAdded = \false;
|
169 |
}
|
170 |
}
|
171 |
+
/**
|
172 |
+
* Enqueue admin scripts.
|
173 |
+
*/
|
174 |
+
public function addGutenbergScript()
|
175 |
+
{
|
176 |
+
if ($this->isBlockEditor()) {
|
177 |
+
include_once __DIR__ . '/views/admin-head-js-gutenberg.php';
|
178 |
+
}
|
179 |
+
}
|
180 |
/**
|
181 |
* Add attribute.
|
182 |
*
|
194 |
*/
|
195 |
protected function getNoticeClass()
|
196 |
{
|
197 |
+
$notice_classes = ['notice'];
|
198 |
if ('updated' === $this->noticeType) {
|
199 |
+
$notice_classes[] = $this->noticeType;
|
200 |
} else {
|
201 |
+
$notice_classes[] = 'notice-' . $this->noticeType;
|
202 |
}
|
203 |
if ($this->dismissible) {
|
204 |
+
$notice_classes[] = 'is-dismissible';
|
205 |
}
|
206 |
if (isset($this->attributes['class'])) {
|
207 |
+
$notice_classes[] = $this->attributes['class'];
|
208 |
+
}
|
209 |
+
if ($this->showInGutenberg) {
|
210 |
+
$notice_classes[] = 'wpdesk-notice-gutenberg';
|
211 |
}
|
212 |
+
return \implode(' ', $notice_classes);
|
213 |
}
|
214 |
/**
|
215 |
* Get attributes as string.
|
vendor_prefixed/wpdesk/wp-notice/src/WPDesk/Notice/PermanentDismissibleNotice.php
CHANGED
@@ -26,12 +26,13 @@ class PermanentDismissibleNotice extends \FcfVendor\WPDesk\Notice\Notice
|
|
26 |
* @param string $noticeContent Notice content.
|
27 |
* @param string $noticeName Notice dismiss option name.
|
28 |
* @param string $noticeType Notice type.
|
29 |
-
* @param int
|
30 |
* @param array $attributes Attributes.
|
|
|
31 |
*/
|
32 |
-
public function __construct($noticeContent, $noticeName, $noticeType = 'info', $priority = 10, $attributes = array())
|
33 |
{
|
34 |
-
parent::__construct($noticeContent, $noticeType, \true, $priority, $attributes);
|
35 |
$this->noticeName = $noticeName;
|
36 |
$this->noticeDismissOptionName = static::OPTION_NAME_PREFIX . $noticeName;
|
37 |
if (self::OPTION_VALUE_DISMISSED === \get_option($this->noticeDismissOptionName, '')) {
|
26 |
* @param string $noticeContent Notice content.
|
27 |
* @param string $noticeName Notice dismiss option name.
|
28 |
* @param string $noticeType Notice type.
|
29 |
+
* @param int $priority Priority
|
30 |
* @param array $attributes Attributes.
|
31 |
+
* @param bool $showInGutenberg Show notice in gutenberg editor.
|
32 |
*/
|
33 |
+
public function __construct($noticeContent, $noticeName, $noticeType = 'info', $priority = 10, $attributes = array(), $showInGutenberg = \false)
|
34 |
{
|
35 |
+
parent::__construct($noticeContent, $noticeType, \true, $priority, $attributes, $showInGutenberg);
|
36 |
$this->noticeName = $noticeName;
|
37 |
$this->noticeDismissOptionName = static::OPTION_NAME_PREFIX . $noticeName;
|
38 |
if (self::OPTION_VALUE_DISMISSED === \get_option($this->noticeDismissOptionName, '')) {
|
vendor_prefixed/wpdesk/wp-notice/src/WPDesk/Notice/views/admin-head-js-gutenberg.php
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
namespace FcfVendor;
|
4 |
+
|
5 |
+
if (!\defined('ABSPATH')) {
|
6 |
+
exit;
|
7 |
+
}
|
8 |
+
// Exit if accessed directly
|
9 |
+
?>
|
10 |
+
<script type="text/javascript">
|
11 |
+
<?php
|
12 |
+
include \dirname(__FILE__) . '/../../../../assets/js/gutenberg.js';
|
13 |
+
?>
|
14 |
+
</script>
|
15 |
+
<?php
|
vendor_prefixed/wpdesk/wp-notice/src/WPDesk/Notice/views/admin-head-js.php
CHANGED
@@ -11,6 +11,5 @@ if (!\defined('ABSPATH')) {
|
|
11 |
<?php
|
12 |
include \dirname(__FILE__) . '/../../../../assets/js/notice.min.js';
|
13 |
?>
|
14 |
-
|
15 |
</script>
|
16 |
<?php
|
11 |
<?php
|
12 |
include \dirname(__FILE__) . '/../../../../assets/js/notice.min.js';
|
13 |
?>
|
|
|
14 |
</script>
|
15 |
<?php
|