123aa8f9 by Jeff Balicki

pop up

Signed-off-by: Jeff <jeff@gotenzing.com>
1 parent 6cdf0a67
Showing 37 changed files with 164 additions and 3142 deletions
.swal2-popup .swal2-title
{
font-weight: normal !important;
font-size: 21px !important
}
.swal2-popup .swal2-styled:focus {
box-shadow: none !important;
}
.swal2-show {
border: none !important;
}
button.swal2-confirm.swal2-styled
{
font-size: 14px !important;
padding: 5px 25px !important;
}
h1:not(.site-title):before, h2#swal2-title:before {
content: "" !important;
height: 0;
}
@-webkit-keyframes swal2-show{0%{-webkit-transform:scale(.7);transform:scale(.7)}45%{-webkit-transform:scale(1.05);transform:scale(1.05)}80%{-webkit-transform:scale(.95);transform:scale(.95)}100%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes swal2-show{0%{-webkit-transform:scale(.7);transform:scale(.7)}45%{-webkit-transform:scale(1.05);transform:scale(1.05)}80%{-webkit-transform:scale(.95);transform:scale(.95)}100%{-webkit-transform:scale(1);transform:scale(1)}}@-webkit-keyframes swal2-hide{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}100%{-webkit-transform:scale(.5);transform:scale(.5);opacity:0}}@keyframes swal2-hide{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}100%{-webkit-transform:scale(.5);transform:scale(.5);opacity:0}}@-webkit-keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.875em;width:1.5625em}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.875em;width:1.5625em}}@-webkit-keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@-webkit-keyframes swal2-rotate-success-circular-line{0%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}5%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}12%{-webkit-transform:rotate(-405deg);transform:rotate(-405deg)}100%{-webkit-transform:rotate(-405deg);transform:rotate(-405deg)}}@keyframes swal2-rotate-success-circular-line{0%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}5%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}12%{-webkit-transform:rotate(-405deg);transform:rotate(-405deg)}100%{-webkit-transform:rotate(-405deg);transform:rotate(-405deg)}}@-webkit-keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;-webkit-transform:scale(.4);transform:scale(.4);opacity:0}50%{margin-top:1.625em;-webkit-transform:scale(.4);transform:scale(.4);opacity:0}80%{margin-top:-.375em;-webkit-transform:scale(1.15);transform:scale(1.15)}100%{margin-top:0;-webkit-transform:scale(1);transform:scale(1);opacity:1}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;-webkit-transform:scale(.4);transform:scale(.4);opacity:0}50%{margin-top:1.625em;-webkit-transform:scale(.4);transform:scale(.4);opacity:0}80%{margin-top:-.375em;-webkit-transform:scale(1.15);transform:scale(1.15)}100%{margin-top:0;-webkit-transform:scale(1);transform:scale(1);opacity:1}}@-webkit-keyframes swal2-animate-error-icon{0%{-webkit-transform:rotateX(100deg);transform:rotateX(100deg);opacity:0}100%{-webkit-transform:rotateX(0);transform:rotateX(0);opacity:1}}@keyframes swal2-animate-error-icon{0%{-webkit-transform:rotateX(100deg);transform:rotateX(100deg);opacity:0}100%{-webkit-transform:rotateX(0);transform:rotateX(0);opacity:1}}body.swal2-toast-shown .swal2-container{position:fixed;background-color:transparent}body.swal2-toast-shown .swal2-container.swal2-shown{background-color:transparent}body.swal2-toast-shown .swal2-container.swal2-top{top:0;right:auto;bottom:auto;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{top:0;right:0;bottom:auto;left:auto}body.swal2-toast-shown .swal2-container.swal2-top-left,body.swal2-toast-shown .swal2-container.swal2-top-start{top:0;right:auto;bottom:auto;left:0}body.swal2-toast-shown .swal2-container.swal2-center-left,body.swal2-toast-shown .swal2-container.swal2-center-start{top:50%;right:auto;bottom:auto;left:0;-webkit-transform:translateY(-50%);transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{top:50%;right:auto;bottom:auto;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{top:50%;right:0;bottom:auto;left:auto;-webkit-transform:translateY(-50%);transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-left,body.swal2-toast-shown .swal2-container.swal2-bottom-start{top:auto;right:auto;bottom:0;left:0}body.swal2-toast-shown .swal2-container.swal2-bottom{top:auto;right:auto;bottom:0;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{top:auto;right:0;bottom:0;left:auto}body.swal2-toast-column .swal2-toast{flex-direction:column;align-items:stretch}body.swal2-toast-column .swal2-toast .swal2-actions{flex:1;align-self:stretch;height:2.2em;margin-top:.3125em}body.swal2-toast-column .swal2-toast .swal2-loading{justify-content:center}body.swal2-toast-column .swal2-toast .swal2-input{height:2em;margin:.3125em auto;font-size:1em}body.swal2-toast-column .swal2-toast .swal2-validationerror{font-size:1em}.swal2-popup.swal2-toast{flex-direction:row;align-items:center;width:auto;padding:.625em;box-shadow:0 0 .625em #d9d9d9;overflow-y:hidden}.swal2-popup.swal2-toast .swal2-header{flex-direction:row}.swal2-popup.swal2-toast .swal2-title{flex-grow:1;justify-content:flex-start;margin:0 .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{position:initial;width:.8em;height:.8em;line-height:.8}.swal2-popup.swal2-toast .swal2-content{justify-content:flex-start;font-size:1em}.swal2-popup.swal2-toast .swal2-icon{width:2em;min-width:2em;height:2em;margin:0}.swal2-popup.swal2-toast .swal2-icon-text{font-size:2em;font-weight:700;line-height:1em}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{height:auto;margin:0 .3125em}.swal2-popup.swal2-toast .swal2-styled{margin:0 .3125em;padding:.3125em .625em;font-size:1em}.swal2-popup.swal2-toast .swal2-styled:focus{box-shadow:0 0 0 .0625em #fff,0 0 0 .125em rgba(50,100,150,.4)}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:2em;height:2.8125em;-webkit-transform:rotate(45deg);transform:rotate(45deg);border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.25em;left:-.9375em;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-transform-origin:2em 2em;transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-.25em;left:.9375em;-webkit-transform-origin:0 2em;transform-origin:0 2em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast.swal2-show{-webkit-animation:showSweetToast .5s;animation:showSweetToast .5s}.swal2-popup.swal2-toast.swal2-hide{-webkit-animation:hideSweetToast .2s forwards;animation:hideSweetToast .2s forwards}.swal2-popup.swal2-toast .swal2-animate-success-icon .swal2-success-line-tip{-webkit-animation:animate-toast-success-tip .75s;animation:animate-toast-success-tip .75s}.swal2-popup.swal2-toast .swal2-animate-success-icon .swal2-success-line-long{-webkit-animation:animate-toast-success-long .75s;animation:animate-toast-success-long .75s}@-webkit-keyframes showSweetToast{0%{-webkit-transform:translateY(-.625em) rotateZ(2deg);transform:translateY(-.625em) rotateZ(2deg);opacity:0}33%{-webkit-transform:translateY(0) rotateZ(-2deg);transform:translateY(0) rotateZ(-2deg);opacity:.5}66%{-webkit-transform:translateY(.3125em) rotateZ(2deg);transform:translateY(.3125em) rotateZ(2deg);opacity:.7}100%{-webkit-transform:translateY(0) rotateZ(0);transform:translateY(0) rotateZ(0);opacity:1}}@keyframes showSweetToast{0%{-webkit-transform:translateY(-.625em) rotateZ(2deg);transform:translateY(-.625em) rotateZ(2deg);opacity:0}33%{-webkit-transform:translateY(0) rotateZ(-2deg);transform:translateY(0) rotateZ(-2deg);opacity:.5}66%{-webkit-transform:translateY(.3125em) rotateZ(2deg);transform:translateY(.3125em) rotateZ(2deg);opacity:.7}100%{-webkit-transform:translateY(0) rotateZ(0);transform:translateY(0) rotateZ(0);opacity:1}}@-webkit-keyframes hideSweetToast{0%{opacity:1}33%{opacity:.5}100%{-webkit-transform:rotateZ(1deg);transform:rotateZ(1deg);opacity:0}}@keyframes hideSweetToast{0%{opacity:1}33%{opacity:.5}100%{-webkit-transform:rotateZ(1deg);transform:rotateZ(1deg);opacity:0}}@-webkit-keyframes animate-toast-success-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes animate-toast-success-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@-webkit-keyframes animate-toast-success-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@keyframes animate-toast-success-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow-y:hidden}body.swal2-height-auto{height:auto!important}body.swal2-no-backdrop .swal2-shown{top:auto;right:auto;bottom:auto;left:auto;background-color:transparent}body.swal2-no-backdrop .swal2-shown>.swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}body.swal2-no-backdrop .swal2-shown.swal2-top{top:0;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}body.swal2-no-backdrop .swal2-shown.swal2-top-left,body.swal2-no-backdrop .swal2-shown.swal2-top-start{top:0;left:0}body.swal2-no-backdrop .swal2-shown.swal2-top-end,body.swal2-no-backdrop .swal2-shown.swal2-top-right{top:0;right:0}body.swal2-no-backdrop .swal2-shown.swal2-center{top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}body.swal2-no-backdrop .swal2-shown.swal2-center-left,body.swal2-no-backdrop .swal2-shown.swal2-center-start{top:50%;left:0;-webkit-transform:translateY(-50%);transform:translateY(-50%)}body.swal2-no-backdrop .swal2-shown.swal2-center-end,body.swal2-no-backdrop .swal2-shown.swal2-center-right{top:50%;right:0;-webkit-transform:translateY(-50%);transform:translateY(-50%)}body.swal2-no-backdrop .swal2-shown.swal2-bottom{bottom:0;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}body.swal2-no-backdrop .swal2-shown.swal2-bottom-left,body.swal2-no-backdrop .swal2-shown.swal2-bottom-start{bottom:0;left:0}body.swal2-no-backdrop .swal2-shown.swal2-bottom-end,body.swal2-no-backdrop .swal2-shown.swal2-bottom-right{right:0;bottom:0}.swal2-container{display:flex;position:fixed;top:0;right:0;bottom:0;left:0;flex-direction:row;align-items:center;justify-content:center;padding:10px;background-color:transparent;z-index:1060;overflow-x:hidden;-webkit-overflow-scrolling:touch}.swal2-container.swal2-top{align-items:flex-start}.swal2-container.swal2-top-left,.swal2-container.swal2-top-start{align-items:flex-start;justify-content:flex-start}.swal2-container.swal2-top-end,.swal2-container.swal2-top-right{align-items:flex-start;justify-content:flex-end}.swal2-container.swal2-center{align-items:center}.swal2-container.swal2-center-left,.swal2-container.swal2-center-start{align-items:center;justify-content:flex-start}.swal2-container.swal2-center-end,.swal2-container.swal2-center-right{align-items:center;justify-content:flex-end}.swal2-container.swal2-bottom{align-items:flex-end}.swal2-container.swal2-bottom-left,.swal2-container.swal2-bottom-start{align-items:flex-end;justify-content:flex-start}.swal2-container.swal2-bottom-end,.swal2-container.swal2-bottom-right{align-items:flex-end;justify-content:flex-end}.swal2-container.swal2-grow-fullscreen>.swal2-modal{display:flex!important;flex:1;align-self:stretch;justify-content:center}.swal2-container.swal2-grow-row>.swal2-modal{display:flex!important;flex:1;align-content:center;justify-content:center}.swal2-container.swal2-grow-column{flex:1;flex-direction:column}.swal2-container.swal2-grow-column.swal2-bottom,.swal2-container.swal2-grow-column.swal2-center,.swal2-container.swal2-grow-column.swal2-top{align-items:center}.swal2-container.swal2-grow-column.swal2-bottom-left,.swal2-container.swal2-grow-column.swal2-bottom-start,.swal2-container.swal2-grow-column.swal2-center-left,.swal2-container.swal2-grow-column.swal2-center-start,.swal2-container.swal2-grow-column.swal2-top-left,.swal2-container.swal2-grow-column.swal2-top-start{align-items:flex-start}.swal2-container.swal2-grow-column.swal2-bottom-end,.swal2-container.swal2-grow-column.swal2-bottom-right,.swal2-container.swal2-grow-column.swal2-center-end,.swal2-container.swal2-grow-column.swal2-center-right,.swal2-container.swal2-grow-column.swal2-top-end,.swal2-container.swal2-grow-column.swal2-top-right{align-items:flex-end}.swal2-container.swal2-grow-column>.swal2-modal{display:flex!important;flex:1;align-content:center;justify-content:center}.swal2-container:not(.swal2-top):not(.swal2-top-start):not(.swal2-top-end):not(.swal2-top-left):not(.swal2-top-right):not(.swal2-center-start):not(.swal2-center-end):not(.swal2-center-left):not(.swal2-center-right):not(.swal2-bottom):not(.swal2-bottom-start):not(.swal2-bottom-end):not(.swal2-bottom-left):not(.swal2-bottom-right):not(.swal2-grow-fullscreen)>.swal2-modal{margin:auto}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.swal2-container .swal2-modal{margin:0!important}}.swal2-container.swal2-fade{transition:background-color .1s}.swal2-container.swal2-shown{background-color:rgba(0,0,0,.4)}.swal2-popup{display:none;position:relative;flex-direction:column;justify-content:center;width:32em;max-width:100%;padding:1.25em;border-radius:.3125em;background:#fff;font-family:inherit;font-size:1rem;box-sizing:border-box}.swal2-popup:focus{outline:0}.swal2-popup.swal2-loading{overflow-y:hidden}.swal2-popup .swal2-header{display:flex;flex-direction:column;align-items:center}.swal2-popup .swal2-title{display:block;position:relative;max-width:100%;margin:0 0 .4em;padding:0;color:#595959;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word}.swal2-popup .swal2-actions{align-items:center;justify-content:center;margin:1.25em auto 0;z-index:1}.swal2-popup .swal2-actions:not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}.swal2-popup .swal2-actions:not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0,0,0,.1),rgba(0,0,0,.1))}.swal2-popup .swal2-actions:not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0,0,0,.2),rgba(0,0,0,.2))}.swal2-popup .swal2-actions.swal2-loading .swal2-styled.swal2-confirm{width:2.5em;height:2.5em;margin:.46875em;padding:0;border:.25em solid transparent;border-radius:100%;border-color:transparent;background-color:transparent!important;color:transparent;cursor:default;box-sizing:border-box;-webkit-animation:swal2-rotate-loading 1.5s linear 0s infinite normal;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.swal2-popup .swal2-actions.swal2-loading .swal2-styled.swal2-cancel{margin-right:30px;margin-left:30px}.swal2-popup .swal2-actions.swal2-loading :not(.swal2-styled).swal2-confirm::after{display:inline-block;width:15px;height:15px;margin-left:5px;border:3px solid #999;border-radius:50%;border-right-color:transparent;box-shadow:1px 1px 1px #fff;content:'';-webkit-animation:swal2-rotate-loading 1.5s linear 0s infinite normal;animation:swal2-rotate-loading 1.5s linear 0s infinite normal}.swal2-popup .swal2-styled{margin:0 .3125em;padding:.625em 2em;font-weight:500;box-shadow:none}.swal2-popup .swal2-styled:not([disabled]){cursor:pointer}.swal2-popup .swal2-styled.swal2-confirm{border:0;border-radius:.25em;background:initial;background-color:#3085d6;color:#fff;font-size:1.0625em}.swal2-popup .swal2-styled.swal2-cancel{border:0;border-radius:.25em;background:initial;background-color:#aaa;color:#fff;font-size:1.0625em}.swal2-popup .swal2-styled:focus{outline:0;box-shadow:0 0 0 2px #fff,0 0 0 4px rgba(50,100,150,.4)}.swal2-popup .swal2-styled::-moz-focus-inner{border:0}.swal2-popup .swal2-footer{justify-content:center;margin:1.25em 0 0;padding:1em 0 0;border-top:1px solid #eee;color:#545454;font-size:1em}.swal2-popup .swal2-image{max-width:100%;margin:1.25em auto}.swal2-popup .swal2-close{position:absolute;top:0;right:0;justify-content:center;width:1.2em;height:1.2em;padding:0;transition:color .1s ease-out;border:none;border-radius:0;background:0 0;color:#ccc;font-family:serif;font-size:2.5em;line-height:1.2;cursor:pointer;overflow:hidden}.swal2-popup .swal2-close:hover{-webkit-transform:none;transform:none;color:#f27474}.swal2-popup>.swal2-checkbox,.swal2-popup>.swal2-file,.swal2-popup>.swal2-input,.swal2-popup>.swal2-radio,.swal2-popup>.swal2-select,.swal2-popup>.swal2-textarea{display:none}.swal2-popup .swal2-content{justify-content:center;margin:0;padding:0;color:#545454;font-size:1.125em;font-weight:300;line-height:normal;z-index:1;word-wrap:break-word}.swal2-popup #swal2-content{text-align:center}.swal2-popup .swal2-checkbox,.swal2-popup .swal2-file,.swal2-popup .swal2-input,.swal2-popup .swal2-radio,.swal2-popup .swal2-select,.swal2-popup .swal2-textarea{margin:1em auto}.swal2-popup .swal2-file,.swal2-popup .swal2-input,.swal2-popup .swal2-textarea{width:100%;transition:border-color .3s,box-shadow .3s;border:1px solid #d9d9d9;border-radius:.1875em;font-size:1.125em;box-shadow:inset 0 1px 1px rgba(0,0,0,.06);box-sizing:border-box}.swal2-popup .swal2-file.swal2-inputerror,.swal2-popup .swal2-input.swal2-inputerror,.swal2-popup .swal2-textarea.swal2-inputerror{border-color:#f27474!important;box-shadow:0 0 2px #f27474!important}.swal2-popup .swal2-file:focus,.swal2-popup .swal2-input:focus,.swal2-popup .swal2-textarea:focus{border:1px solid #b4dbed;outline:0;box-shadow:0 0 3px #c4e6f5}.swal2-popup .swal2-file::-webkit-input-placeholder,.swal2-popup .swal2-input::-webkit-input-placeholder,.swal2-popup .swal2-textarea::-webkit-input-placeholder{color:#ccc}.swal2-popup .swal2-file:-ms-input-placeholder,.swal2-popup .swal2-input:-ms-input-placeholder,.swal2-popup .swal2-textarea:-ms-input-placeholder{color:#ccc}.swal2-popup .swal2-file::-ms-input-placeholder,.swal2-popup .swal2-input::-ms-input-placeholder,.swal2-popup .swal2-textarea::-ms-input-placeholder{color:#ccc}.swal2-popup .swal2-file::placeholder,.swal2-popup .swal2-input::placeholder,.swal2-popup .swal2-textarea::placeholder{color:#ccc}.swal2-popup .swal2-range input{width:80%}.swal2-popup .swal2-range output{width:20%;font-weight:600;text-align:center}.swal2-popup .swal2-range input,.swal2-popup .swal2-range output{height:2.625em;margin:1em auto;padding:0;font-size:1.125em;line-height:2.625em}.swal2-popup .swal2-input{height:2.625em;padding:0 .75em}.swal2-popup .swal2-input[type=number]{max-width:10em}.swal2-popup .swal2-file{font-size:1.125em}.swal2-popup .swal2-textarea{height:6.75em;padding:.75em}.swal2-popup .swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;color:#545454;font-size:1.125em}.swal2-popup .swal2-checkbox,.swal2-popup .swal2-radio{align-items:center;justify-content:center}.swal2-popup .swal2-checkbox label,.swal2-popup .swal2-radio label{margin:0 .6em;font-size:1.125em}.swal2-popup .swal2-checkbox input,.swal2-popup .swal2-radio input{margin:0 .4em}.swal2-popup .swal2-validationerror{display:none;align-items:center;justify-content:center;padding:.625em;background:#f0f0f0;color:#666;font-size:1em;font-weight:300;overflow:hidden}.swal2-popup .swal2-validationerror::before{display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center;content:'!';zoom:normal}@supports (-ms-accelerator:true){.swal2-range input{width:100%!important}.swal2-range output{display:none}}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.swal2-range input{width:100%!important}.swal2-range output{display:none}}@-moz-document url-prefix(){.swal2-close:focus{outline:2px solid rgba(50,100,150,.4)}}.swal2-icon{position:relative;justify-content:center;width:5em;height:5em;margin:1.25em auto 1.875em;border:.25em solid transparent;border-radius:50%;line-height:5em;cursor:default;box-sizing:content-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;zoom:normal}.swal2-icon-text{font-size:3.75em}.swal2-icon.swal2-error{border-color:#f27474}.swal2-icon.swal2-error .swal2-x-mark{position:relative;flex-grow:1}.swal2-icon.swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.swal2-icon.swal2-warning{border-color:#facea8;color:#f8bb86}.swal2-icon.swal2-info{border-color:#9de0f6;color:#3fc3ee}.swal2-icon.swal2-question{border-color:#c9dae1;color:#87adbd}.swal2-icon.swal2-success{border-color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;-webkit-transform:rotate(45deg);transform:rotate(45deg);border-radius:50%}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.4375em;left:-2.0635em;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-transform-origin:3.75em 3.75em;transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=right]{top:-.6875em;left:1.875em;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-transform-origin:0 3.75em;transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}.swal2-icon.swal2-success .swal2-success-ring{position:absolute;top:-.25em;left:-.25em;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%;z-index:2;box-sizing:content-box}.swal2-icon.swal2-success .swal2-success-fix{position:absolute;top:.5em;left:1.625em;width:.4375em;height:5.625em;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);z-index:1}.swal2-icon.swal2-success [class^=swal2-success-line]{display:block;position:absolute;height:.3125em;border-radius:.125em;background-color:#a5dc86;z-index:2}.swal2-icon.swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.875em;width:1.5625em;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.swal2-icon.swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.swal2-progresssteps{align-items:center;margin:0 0 1.25em;padding:0;font-weight:600}.swal2-progresssteps li{display:inline-block;position:relative}.swal2-progresssteps .swal2-progresscircle{width:2em;height:2em;border-radius:2em;background:#3085d6;color:#fff;line-height:2em;text-align:center;z-index:20}.swal2-progresssteps .swal2-progresscircle:first-child{margin-left:0}.swal2-progresssteps .swal2-progresscircle:last-child{margin-right:0}.swal2-progresssteps .swal2-progresscircle.swal2-activeprogressstep{background:#3085d6}.swal2-progresssteps .swal2-progresscircle.swal2-activeprogressstep~.swal2-progresscircle{background:#add8e6}.swal2-progresssteps .swal2-progresscircle.swal2-activeprogressstep~.swal2-progressline{background:#add8e6}.swal2-progresssteps .swal2-progressline{width:2.5em;height:.4em;margin:0 -1px;background:#3085d6;z-index:10}[class^=swal2]{-webkit-tap-highlight-color:transparent}.swal2-show{-webkit-animation:swal2-show .3s;animation:swal2-show .3s}.swal2-show.swal2-noanimation{-webkit-animation:none;animation:none}.swal2-hide{-webkit-animation:swal2-hide .15s forwards;animation:swal2-hide .15s forwards}.swal2-hide.swal2-noanimation{-webkit-animation:none;animation:none}[dir=rtl] .swal2-close{right:auto;left:0}.swal2-animate-success-icon .swal2-success-line-tip{-webkit-animation:swal2-animate-success-line-tip .75s;animation:swal2-animate-success-line-tip .75s}.swal2-animate-success-icon .swal2-success-line-long{-webkit-animation:swal2-animate-success-line-long .75s;animation:swal2-animate-success-line-long .75s}.swal2-animate-success-icon .swal2-success-circular-line-right{-webkit-animation:swal2-rotate-success-circular-line 4.25s ease-in;animation:swal2-rotate-success-circular-line 4.25s ease-in}.swal2-animate-error-icon{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-animate-error-icon .swal2-x-mark{-webkit-animation:swal2-animate-error-x-mark .5s;animation:swal2-animate-error-x-mark .5s}@-webkit-keyframes swal2-rotate-loading{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes swal2-rotate-loading{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}
\ No newline at end of file
/**
* jscolor - JavaScript Color Picker
*
* @link http://jscolor.com
* @license For open source use: GPLv3
* For commercial use: JSColor Commercial License
* @author Jan Odvarko
* @version 2.0.5
*
* See usage examples at http://jscolor.com/examples/
*/
"use strict";
if (!window.jscolor) { window.jscolor = (function () {
var jsc = {
register : function () {
jsc.attachDOMReadyEvent(jsc.init);
jsc.attachEvent(document, 'mousedown', jsc.onDocumentMouseDown);
jsc.attachEvent(document, 'touchstart', jsc.onDocumentTouchStart);
jsc.attachEvent(window, 'resize', jsc.onWindowResize);
},
init : function () {
if (jsc.jscolor.lookupClass) {
jsc.jscolor.installByClassName(jsc.jscolor.lookupClass);
}
},
tryInstallOnElements : function (elms, className) {
var matchClass = new RegExp('(^|\\s)(' + className + ')(\\s*(\\{[^}]*\\})|\\s|$)', 'i');
for (var i = 0; i < elms.length; i += 1) {
if (elms[i].type !== undefined && elms[i].type.toLowerCase() == 'color') {
if (jsc.isColorAttrSupported) {
// skip inputs of type 'color' if supported by the browser
continue;
}
}
var m;
if (!elms[i].jscolor && elms[i].className && (m = elms[i].className.match(matchClass))) {
var targetElm = elms[i];
var optsStr = null;
var dataOptions = jsc.getDataAttr(targetElm, 'jscolor');
if (dataOptions !== null) {
optsStr = dataOptions;
} else if (m[4]) {
optsStr = m[4];
}
var opts = {};
if (optsStr) {
try {
opts = (new Function ('return (' + optsStr + ')'))();
} catch(eParseError) {
jsc.warn('Error parsing jscolor options: ' + eParseError + ':\n' + optsStr);
}
}
targetElm.jscolor = new jsc.jscolor(targetElm, opts);
}
}
},
isColorAttrSupported : (function () {
var elm = document.createElement('input');
if (elm.setAttribute) {
elm.setAttribute('type', 'color');
if (elm.type.toLowerCase() == 'color') {
return true;
}
}
return false;
})(),
isCanvasSupported : (function () {
var elm = document.createElement('canvas');
return !!(elm.getContext && elm.getContext('2d'));
})(),
fetchElement : function (mixed) {
return typeof mixed === 'string' ? document.getElementById(mixed) : mixed;
},
isElementType : function (elm, type) {
return elm.nodeName.toLowerCase() === type.toLowerCase();
},
getDataAttr : function (el, name) {
var attrName = 'data-' + name;
var attrValue = el.getAttribute(attrName);
if (attrValue !== null) {
return attrValue;
}
return null;
},
attachEvent : function (el, evnt, func) {
if (el.addEventListener) {
el.addEventListener(evnt, func, false);
} else if (el.attachEvent) {
el.attachEvent('on' + evnt, func);
}
},
detachEvent : function (el, evnt, func) {
if (el.removeEventListener) {
el.removeEventListener(evnt, func, false);
} else if (el.detachEvent) {
el.detachEvent('on' + evnt, func);
}
},
_attachedGroupEvents : {},
attachGroupEvent : function (groupName, el, evnt, func) {
if (!jsc._attachedGroupEvents.hasOwnProperty(groupName)) {
jsc._attachedGroupEvents[groupName] = [];
}
jsc._attachedGroupEvents[groupName].push([el, evnt, func]);
jsc.attachEvent(el, evnt, func);
},
detachGroupEvents : function (groupName) {
if (jsc._attachedGroupEvents.hasOwnProperty(groupName)) {
for (var i = 0; i < jsc._attachedGroupEvents[groupName].length; i += 1) {
var evt = jsc._attachedGroupEvents[groupName][i];
jsc.detachEvent(evt[0], evt[1], evt[2]);
}
delete jsc._attachedGroupEvents[groupName];
}
},
attachDOMReadyEvent : function (func) {
var fired = false;
var fireOnce = function () {
if (!fired) {
fired = true;
func();
}
};
if (document.readyState === 'complete') {
setTimeout(fireOnce, 1); // async
return;
}
if (document.addEventListener) {
document.addEventListener('DOMContentLoaded', fireOnce, false);
// Fallback
window.addEventListener('load', fireOnce, false);
} else if (document.attachEvent) {
// IE
document.attachEvent('onreadystatechange', function () {
if (document.readyState === 'complete') {
document.detachEvent('onreadystatechange', arguments.callee);
fireOnce();
}
})
// Fallback
window.attachEvent('onload', fireOnce);
// IE7/8
if (document.documentElement.doScroll && window == window.top) {
var tryScroll = function () {
if (!document.body) { return; }
try {
document.documentElement.doScroll('left');
fireOnce();
} catch (e) {
setTimeout(tryScroll, 1);
}
};
tryScroll();
}
}
},
warn : function (msg) {
if (window.console && window.console.warn) {
window.console.warn(msg);
}
},
preventDefault : function (e) {
if (e.preventDefault) { e.preventDefault(); }
e.returnValue = false;
},
captureTarget : function (target) {
// IE
if (target.setCapture) {
jsc._capturedTarget = target;
jsc._capturedTarget.setCapture();
}
},
releaseTarget : function () {
// IE
if (jsc._capturedTarget) {
jsc._capturedTarget.releaseCapture();
jsc._capturedTarget = null;
}
},
fireEvent : function (el, evnt) {
if (!el) {
return;
}
if (document.createEvent) {
var ev = document.createEvent('HTMLEvents');
ev.initEvent(evnt, true, true);
el.dispatchEvent(ev);
} else if (document.createEventObject) {
var ev = document.createEventObject();
el.fireEvent('on' + evnt, ev);
} else if (el['on' + evnt]) { // alternatively use the traditional event model
el['on' + evnt]();
}
},
classNameToList : function (className) {
return className.replace(/^\s+|\s+$/g, '').split(/\s+/);
},
// The className parameter (str) can only contain a single class name
hasClass : function (elm, className) {
if (!className) {
return false;
}
return -1 != (' ' + elm.className.replace(/\s+/g, ' ') + ' ').indexOf(' ' + className + ' ');
},
// The className parameter (str) can contain multiple class names separated by whitespace
setClass : function (elm, className) {
var classList = jsc.classNameToList(className);
for (var i = 0; i < classList.length; i += 1) {
if (!jsc.hasClass(elm, classList[i])) {
elm.className += (elm.className ? ' ' : '') + classList[i];
}
}
},
// The className parameter (str) can contain multiple class names separated by whitespace
unsetClass : function (elm, className) {
var classList = jsc.classNameToList(className);
for (var i = 0; i < classList.length; i += 1) {
var repl = new RegExp(
'^\\s*' + classList[i] + '\\s*|' +
'\\s*' + classList[i] + '\\s*$|' +
'\\s+' + classList[i] + '(\\s+)',
'g'
);
elm.className = elm.className.replace(repl, '$1');
}
},
getStyle : function (elm) {
return window.getComputedStyle ? window.getComputedStyle(elm) : elm.currentStyle;
},
setStyle : (function () {
var helper = document.createElement('div');
var getSupportedProp = function (names) {
for (var i = 0; i < names.length; i += 1) {
if (names[i] in helper.style) {
return names[i];
}
}
};
var props = {
borderRadius: getSupportedProp(['borderRadius', 'MozBorderRadius', 'webkitBorderRadius']),
boxShadow: getSupportedProp(['boxShadow', 'MozBoxShadow', 'webkitBoxShadow'])
};
return function (elm, prop, value) {
switch (prop.toLowerCase()) {
case 'opacity':
var alphaOpacity = Math.round(parseFloat(value) * 100);
elm.style.opacity = value;
elm.style.filter = 'alpha(opacity=' + alphaOpacity + ')';
break;
default:
elm.style[props[prop]] = value;
break;
}
};
})(),
setBorderRadius : function (elm, value) {
jsc.setStyle(elm, 'borderRadius', value || '0');
},
setBoxShadow : function (elm, value) {
jsc.setStyle(elm, 'boxShadow', value || 'none');
},
getElementPos : function (e, relativeToViewport) {
var x=0, y=0;
var rect = e.getBoundingClientRect();
x = rect.left;
y = rect.top;
if (!relativeToViewport) {
var viewPos = jsc.getViewPos();
x += viewPos[0];
y += viewPos[1];
}
return [x, y];
},
getElementSize : function (e) {
return [e.offsetWidth, e.offsetHeight];
},
// get pointer's X/Y coordinates relative to viewport
getAbsPointerPos : function (e) {
if (!e) { e = window.event; }
var x = 0, y = 0;
if (typeof e.changedTouches !== 'undefined' && e.changedTouches.length) {
// touch devices
x = e.changedTouches[0].clientX;
y = e.changedTouches[0].clientY;
} else if (typeof e.clientX === 'number') {
x = e.clientX;
y = e.clientY;
}
return { x: x, y: y };
},
// get pointer's X/Y coordinates relative to target element
getRelPointerPos : function (e) {
if (!e) { e = window.event; }
var target = e.target || e.srcElement;
var targetRect = target.getBoundingClientRect();
var x = 0, y = 0;
var clientX = 0, clientY = 0;
if (typeof e.changedTouches !== 'undefined' && e.changedTouches.length) {
// touch devices
clientX = e.changedTouches[0].clientX;
clientY = e.changedTouches[0].clientY;
} else if (typeof e.clientX === 'number') {
clientX = e.clientX;
clientY = e.clientY;
}
x = clientX - targetRect.left;
y = clientY - targetRect.top;
return { x: x, y: y };
},
getViewPos : function () {
var doc = document.documentElement;
return [
(window.pageXOffset || doc.scrollLeft) - (doc.clientLeft || 0),
(window.pageYOffset || doc.scrollTop) - (doc.clientTop || 0)
];
},
getViewSize : function () {
var doc = document.documentElement;
return [
(window.innerWidth || doc.clientWidth),
(window.innerHeight || doc.clientHeight),
];
},
redrawPosition : function () {
if (jsc.picker && jsc.picker.owner) {
var thisObj = jsc.picker.owner;
var tp, vp;
if (thisObj.fixed) {
// Fixed elements are positioned relative to viewport,
// therefore we can ignore the scroll offset
tp = jsc.getElementPos(thisObj.targetElement, true); // target pos
vp = [0, 0]; // view pos
} else {
tp = jsc.getElementPos(thisObj.targetElement); // target pos
vp = jsc.getViewPos(); // view pos
}
var ts = jsc.getElementSize(thisObj.targetElement); // target size
var vs = jsc.getViewSize(); // view size
var ps = jsc.getPickerOuterDims(thisObj); // picker size
var a, b, c;
switch (thisObj.position.toLowerCase()) {
case 'left': a=1; b=0; c=-1; break;
case 'right':a=1; b=0; c=1; break;
case 'top': a=0; b=1; c=-1; break;
default: a=0; b=1; c=1; break;
}
var l = (ts[b]+ps[b])/2;
// compute picker position
if (!thisObj.smartPosition) {
var pp = [
tp[a],
tp[b]+ts[b]-l+l*c
];
} else {
var pp = [
-vp[a]+tp[a]+ps[a] > vs[a] ?
(-vp[a]+tp[a]+ts[a]/2 > vs[a]/2 && tp[a]+ts[a]-ps[a] >= 0 ? tp[a]+ts[a]-ps[a] : tp[a]) :
tp[a],
-vp[b]+tp[b]+ts[b]+ps[b]-l+l*c > vs[b] ?
(-vp[b]+tp[b]+ts[b]/2 > vs[b]/2 && tp[b]+ts[b]-l-l*c >= 0 ? tp[b]+ts[b]-l-l*c : tp[b]+ts[b]-l+l*c) :
(tp[b]+ts[b]-l+l*c >= 0 ? tp[b]+ts[b]-l+l*c : tp[b]+ts[b]-l-l*c)
];
}
var x = pp[a];
var y = pp[b];
var positionValue = thisObj.fixed ? 'fixed' : 'absolute';
var contractShadow =
(pp[0] + ps[0] > tp[0] || pp[0] < tp[0] + ts[0]) &&
(pp[1] + ps[1] < tp[1] + ts[1]);
jsc._drawPosition(thisObj, x, y, positionValue, contractShadow);
}
},
_drawPosition : function (thisObj, x, y, positionValue, contractShadow) {
var vShadow = contractShadow ? 0 : thisObj.shadowBlur; // px
jsc.picker.wrap.style.position = positionValue;
jsc.picker.wrap.style.left = x + 'px';
jsc.picker.wrap.style.top = y + 'px';
jsc.setBoxShadow(
jsc.picker.boxS,
thisObj.shadow ?
new jsc.BoxShadow(0, vShadow, thisObj.shadowBlur, 0, thisObj.shadowColor) :
null);
},
getPickerDims : function (thisObj) {
var displaySlider = !!jsc.getSliderComponent(thisObj);
var dims = [
2 * thisObj.insetWidth + 2 * thisObj.padding + thisObj.width +
(displaySlider ? 2 * thisObj.insetWidth + jsc.getPadToSliderPadding(thisObj) + thisObj.sliderSize : 0),
2 * thisObj.insetWidth + 2 * thisObj.padding + thisObj.height +
(thisObj.closable ? 2 * thisObj.insetWidth + thisObj.padding + thisObj.buttonHeight : 0)
];
return dims;
},
getPickerOuterDims : function (thisObj) {
var dims = jsc.getPickerDims(thisObj);
return [
dims[0] + 2 * thisObj.borderWidth,
dims[1] + 2 * thisObj.borderWidth
];
},
getPadToSliderPadding : function (thisObj) {
return Math.max(thisObj.padding, 1.5 * (2 * thisObj.pointerBorderWidth + thisObj.pointerThickness));
},
getPadYComponent : function (thisObj) {
switch (thisObj.mode.charAt(1).toLowerCase()) {
case 'v': return 'v'; break;
}
return 's';
},
getSliderComponent : function (thisObj) {
if (thisObj.mode.length > 2) {
switch (thisObj.mode.charAt(2).toLowerCase()) {
case 's': return 's'; break;
case 'v': return 'v'; break;
}
}
return null;
},
onDocumentMouseDown : function (e) {
if (!e) { e = window.event; }
var target = e.target || e.srcElement;
if (target._jscLinkedInstance) {
if (target._jscLinkedInstance.showOnClick) {
target._jscLinkedInstance.show();
}
} else if (target._jscControlName) {
jsc.onControlPointerStart(e, target, target._jscControlName, 'mouse');
} else {
// Mouse is outside the picker controls -> hide the color picker!
if (jsc.picker && jsc.picker.owner) {
jsc.picker.owner.hide();
}
}
},
onDocumentTouchStart : function (e) {
if (!e) { e = window.event; }
var target = e.target || e.srcElement;
if (target._jscLinkedInstance) {
if (target._jscLinkedInstance.showOnClick) {
target._jscLinkedInstance.show();
}
} else if (target._jscControlName) {
jsc.onControlPointerStart(e, target, target._jscControlName, 'touch');
} else {
if (jsc.picker && jsc.picker.owner) {
jsc.picker.owner.hide();
}
}
},
onWindowResize : function (e) {
jsc.redrawPosition();
},
onParentScroll : function (e) {
// hide the picker when one of the parent elements is scrolled
if (jsc.picker && jsc.picker.owner) {
jsc.picker.owner.hide();
}
},
_pointerMoveEvent : {
mouse: 'mousemove',
touch: 'touchmove'
},
_pointerEndEvent : {
mouse: 'mouseup',
touch: 'touchend'
},
_pointerOrigin : null,
_capturedTarget : null,
onControlPointerStart : function (e, target, controlName, pointerType) {
var thisObj = target._jscInstance;
jsc.preventDefault(e);
jsc.captureTarget(target);
var registerDragEvents = function (doc, offset) {
jsc.attachGroupEvent('drag', doc, jsc._pointerMoveEvent[pointerType],
jsc.onDocumentPointerMove(e, target, controlName, pointerType, offset));
jsc.attachGroupEvent('drag', doc, jsc._pointerEndEvent[pointerType],
jsc.onDocumentPointerEnd(e, target, controlName, pointerType));
};
registerDragEvents(document, [0, 0]);
if (window.parent && window.frameElement) {
var rect = window.frameElement.getBoundingClientRect();
var ofs = [-rect.left, -rect.top];
registerDragEvents(window.parent.window.document, ofs);
}
var abs = jsc.getAbsPointerPos(e);
var rel = jsc.getRelPointerPos(e);
jsc._pointerOrigin = {
x: abs.x - rel.x,
y: abs.y - rel.y
};
switch (controlName) {
case 'pad':
// if the slider is at the bottom, move it up
switch (jsc.getSliderComponent(thisObj)) {
case 's': if (thisObj.hsv[1] === 0) { thisObj.fromHSV(null, 100, null); }; break;
case 'v': if (thisObj.hsv[2] === 0) { thisObj.fromHSV(null, null, 100); }; break;
}
jsc.setPad(thisObj, e, 0, 0);
break;
case 'sld':
jsc.setSld(thisObj, e, 0);
break;
}
jsc.dispatchFineChange(thisObj);
},
onDocumentPointerMove : function (e, target, controlName, pointerType, offset) {
return function (e) {
var thisObj = target._jscInstance;
switch (controlName) {
case 'pad':
if (!e) { e = window.event; }
jsc.setPad(thisObj, e, offset[0], offset[1]);
jsc.dispatchFineChange(thisObj);
break;
case 'sld':
if (!e) { e = window.event; }
jsc.setSld(thisObj, e, offset[1]);
jsc.dispatchFineChange(thisObj);
break;
}
}
},
onDocumentPointerEnd : function (e, target, controlName, pointerType) {
return function (e) {
var thisObj = target._jscInstance;
jsc.detachGroupEvents('drag');
jsc.releaseTarget();
// Always dispatch changes after detaching outstanding mouse handlers,
// in case some user interaction will occur in user's onchange callback
// that would intrude with current mouse events
jsc.dispatchChange(thisObj);
};
},
dispatchChange : function (thisObj) {
if (thisObj.valueElement) {
if (jsc.isElementType(thisObj.valueElement, 'input')) {
jsc.fireEvent(thisObj.valueElement, 'change');
}
}
},
dispatchFineChange : function (thisObj) {
if (thisObj.onFineChange) {
var callback;
if (typeof thisObj.onFineChange === 'string') {
callback = new Function (thisObj.onFineChange);
} else {
callback = thisObj.onFineChange;
}
callback.call(thisObj);
}
},
setPad : function (thisObj, e, ofsX, ofsY) {
var pointerAbs = jsc.getAbsPointerPos(e);
var x = ofsX + pointerAbs.x - jsc._pointerOrigin.x - thisObj.padding - thisObj.insetWidth;
var y = ofsY + pointerAbs.y - jsc._pointerOrigin.y - thisObj.padding - thisObj.insetWidth;
var xVal = x * (360 / (thisObj.width - 1));
var yVal = 100 - (y * (100 / (thisObj.height - 1)));
switch (jsc.getPadYComponent(thisObj)) {
case 's': thisObj.fromHSV(xVal, yVal, null, jsc.leaveSld); break;
case 'v': thisObj.fromHSV(xVal, null, yVal, jsc.leaveSld); break;
}
},
setSld : function (thisObj, e, ofsY) {
var pointerAbs = jsc.getAbsPointerPos(e);
var y = ofsY + pointerAbs.y - jsc._pointerOrigin.y - thisObj.padding - thisObj.insetWidth;
var yVal = 100 - (y * (100 / (thisObj.height - 1)));
switch (jsc.getSliderComponent(thisObj)) {
case 's': thisObj.fromHSV(null, yVal, null, jsc.leavePad); break;
case 'v': thisObj.fromHSV(null, null, yVal, jsc.leavePad); break;
}
},
_vmlNS : 'jsc_vml_',
_vmlCSS : 'jsc_vml_css_',
_vmlReady : false,
initVML : function () {
if (!jsc._vmlReady) {
// init VML namespace
var doc = document;
if (!doc.namespaces[jsc._vmlNS]) {
doc.namespaces.add(jsc._vmlNS, 'urn:schemas-microsoft-com:vml');
}
if (!doc.styleSheets[jsc._vmlCSS]) {
var tags = ['shape', 'shapetype', 'group', 'background', 'path', 'formulas', 'handles', 'fill', 'stroke', 'shadow', 'textbox', 'textpath', 'imagedata', 'line', 'polyline', 'curve', 'rect', 'roundrect', 'oval', 'arc', 'image'];
var ss = doc.createStyleSheet();
ss.owningElement.id = jsc._vmlCSS;
for (var i = 0; i < tags.length; i += 1) {
ss.addRule(jsc._vmlNS + '\\:' + tags[i], 'behavior:url(#default#VML);');
}
}
jsc._vmlReady = true;
}
},
createPalette : function () {
var paletteObj = {
elm: null,
draw: null
};
if (jsc.isCanvasSupported) {
// Canvas implementation for modern browsers
var canvas = document.createElement('canvas');
var ctx = canvas.getContext('2d');
var drawFunc = function (width, height, type) {
canvas.width = width;
canvas.height = height;
ctx.clearRect(0, 0, canvas.width, canvas.height);
var hGrad = ctx.createLinearGradient(0, 0, canvas.width, 0);
hGrad.addColorStop(0 / 6, '#F00');
hGrad.addColorStop(1 / 6, '#FF0');
hGrad.addColorStop(2 / 6, '#0F0');
hGrad.addColorStop(3 / 6, '#0FF');
hGrad.addColorStop(4 / 6, '#00F');
hGrad.addColorStop(5 / 6, '#F0F');
hGrad.addColorStop(6 / 6, '#F00');
ctx.fillStyle = hGrad;
ctx.fillRect(0, 0, canvas.width, canvas.height);
var vGrad = ctx.createLinearGradient(0, 0, 0, canvas.height);
switch (type.toLowerCase()) {
case 's':
vGrad.addColorStop(0, 'rgba(255,255,255,0)');
vGrad.addColorStop(1, 'rgba(255,255,255,1)');
break;
case 'v':
vGrad.addColorStop(0, 'rgba(0,0,0,0)');
vGrad.addColorStop(1, 'rgba(0,0,0,1)');
break;
}
ctx.fillStyle = vGrad;
ctx.fillRect(0, 0, canvas.width, canvas.height);
};
paletteObj.elm = canvas;
paletteObj.draw = drawFunc;
} else {
// VML fallback for IE 7 and 8
jsc.initVML();
var vmlContainer = document.createElement('div');
vmlContainer.style.position = 'relative';
vmlContainer.style.overflow = 'hidden';
var hGrad = document.createElement(jsc._vmlNS + ':fill');
hGrad.type = 'gradient';
hGrad.method = 'linear';
hGrad.angle = '90';
hGrad.colors = '16.67% #F0F, 33.33% #00F, 50% #0FF, 66.67% #0F0, 83.33% #FF0'
var hRect = document.createElement(jsc._vmlNS + ':rect');
hRect.style.position = 'absolute';
hRect.style.left = -1 + 'px';
hRect.style.top = -1 + 'px';
hRect.stroked = false;
hRect.appendChild(hGrad);
vmlContainer.appendChild(hRect);
var vGrad = document.createElement(jsc._vmlNS + ':fill');
vGrad.type = 'gradient';
vGrad.method = 'linear';
vGrad.angle = '180';
vGrad.opacity = '0';
var vRect = document.createElement(jsc._vmlNS + ':rect');
vRect.style.position = 'absolute';
vRect.style.left = -1 + 'px';
vRect.style.top = -1 + 'px';
vRect.stroked = false;
vRect.appendChild(vGrad);
vmlContainer.appendChild(vRect);
var drawFunc = function (width, height, type) {
vmlContainer.style.width = width + 'px';
vmlContainer.style.height = height + 'px';
hRect.style.width =
vRect.style.width =
(width + 1) + 'px';
hRect.style.height =
vRect.style.height =
(height + 1) + 'px';
// Colors must be specified during every redraw, otherwise IE won't display
// a full gradient during a subsequential redraw
hGrad.color = '#F00';
hGrad.color2 = '#F00';
switch (type.toLowerCase()) {
case 's':
vGrad.color = vGrad.color2 = '#FFF';
break;
case 'v':
vGrad.color = vGrad.color2 = '#000';
break;
}
};
paletteObj.elm = vmlContainer;
paletteObj.draw = drawFunc;
}
return paletteObj;
},
createSliderGradient : function () {
var sliderObj = {
elm: null,
draw: null
};
if (jsc.isCanvasSupported) {
// Canvas implementation for modern browsers
var canvas = document.createElement('canvas');
var ctx = canvas.getContext('2d');
var drawFunc = function (width, height, color1, color2) {
canvas.width = width;
canvas.height = height;
ctx.clearRect(0, 0, canvas.width, canvas.height);
var grad = ctx.createLinearGradient(0, 0, 0, canvas.height);
grad.addColorStop(0, color1);
grad.addColorStop(1, color2);
ctx.fillStyle = grad;
ctx.fillRect(0, 0, canvas.width, canvas.height);
};
sliderObj.elm = canvas;
sliderObj.draw = drawFunc;
} else {
// VML fallback for IE 7 and 8
jsc.initVML();
var vmlContainer = document.createElement('div');
vmlContainer.style.position = 'relative';
vmlContainer.style.overflow = 'hidden';
var grad = document.createElement(jsc._vmlNS + ':fill');
grad.type = 'gradient';
grad.method = 'linear';
grad.angle = '180';
var rect = document.createElement(jsc._vmlNS + ':rect');
rect.style.position = 'absolute';
rect.style.left = -1 + 'px';
rect.style.top = -1 + 'px';
rect.stroked = false;
rect.appendChild(grad);
vmlContainer.appendChild(rect);
var drawFunc = function (width, height, color1, color2) {
vmlContainer.style.width = width + 'px';
vmlContainer.style.height = height + 'px';
rect.style.width = (width + 1) + 'px';
rect.style.height = (height + 1) + 'px';
grad.color = color1;
grad.color2 = color2;
};
sliderObj.elm = vmlContainer;
sliderObj.draw = drawFunc;
}
return sliderObj;
},
leaveValue : 1<<0,
leaveStyle : 1<<1,
leavePad : 1<<2,
leaveSld : 1<<3,
BoxShadow : (function () {
var BoxShadow = function (hShadow, vShadow, blur, spread, color, inset) {
this.hShadow = hShadow;
this.vShadow = vShadow;
this.blur = blur;
this.spread = spread;
this.color = color;
this.inset = !!inset;
};
BoxShadow.prototype.toString = function () {
var vals = [
Math.round(this.hShadow) + 'px',
Math.round(this.vShadow) + 'px',
Math.round(this.blur) + 'px',
Math.round(this.spread) + 'px',
this.color
];
if (this.inset) {
vals.push('inset');
}
return vals.join(' ');
};
return BoxShadow;
})(),
//
// Usage:
// var myColor = new jscolor(<targetElement> [, <options>])
//
jscolor : function (targetElement, options) {
// General options
//
this.value = null; // initial HEX color. To change it later, use methods fromString(), fromHSV() and fromRGB()
this.valueElement = targetElement; // element that will be used to display and input the color code
this.styleElement = targetElement; // element that will preview the picked color using CSS backgroundColor
this.required = true; // whether the associated text <input> can be left empty
this.refine = true; // whether to refine the entered color code (e.g. uppercase it and remove whitespace)
this.hash = false; // whether to prefix the HEX color code with # symbol
this.uppercase = true; // whether to show the color code in upper case
this.onFineChange = null; // called instantly every time the color changes (value can be either a function or a string with javascript code)
this.activeClass = 'jscolor-active'; // class to be set to the target element when a picker window is open on it
this.overwriteImportant = false; // whether to overwrite colors of styleElement using !important
this.minS = 0; // min allowed saturation (0 - 100)
this.maxS = 100; // max allowed saturation (0 - 100)
this.minV = 0; // min allowed value (brightness) (0 - 100)
this.maxV = 100; // max allowed value (brightness) (0 - 100)
// Accessing the picked color
//
this.hsv = [0, 0, 100]; // read-only [0-360, 0-100, 0-100]
this.rgb = [255, 255, 255]; // read-only [0-255, 0-255, 0-255]
// Color Picker options
//
this.width = 181; // width of color palette (in px)
this.height = 101; // height of color palette (in px)
this.showOnClick = true; // whether to display the color picker when user clicks on its target element
this.mode = 'HSV'; // HSV | HVS | HS | HV - layout of the color picker controls
this.position = 'bottom'; // left | right | top | bottom - position relative to the target element
this.smartPosition = true; // automatically change picker position when there is not enough space for it
this.sliderSize = 16; // px
this.crossSize = 8; // px
this.closable = false; // whether to display the Close button
this.closeText = 'Close';
this.buttonColor = '#000000'; // CSS color
this.buttonHeight = 18; // px
this.padding = 12; // px
this.backgroundColor = '#FFFFFF'; // CSS color
this.borderWidth = 1; // px
this.borderColor = '#BBBBBB'; // CSS color
this.borderRadius = 8; // px
this.insetWidth = 1; // px
this.insetColor = '#BBBBBB'; // CSS color
this.shadow = true; // whether to display shadow
this.shadowBlur = 15; // px
this.shadowColor = 'rgba(0,0,0,0.2)'; // CSS color
this.pointerColor = '#4C4C4C'; // px
this.pointerBorderColor = '#FFFFFF'; // px
this.pointerBorderWidth = 1; // px
this.pointerThickness = 2; // px
this.zIndex = 1000;
this.container = null; // where to append the color picker (BODY element by default)
for (var opt in options) {
if (options.hasOwnProperty(opt)) {
this[opt] = options[opt];
}
}
this.hide = function () {
if (isPickerOwner()) {
detachPicker();
}
};
this.show = function () {
drawPicker();
};
this.redraw = function () {
if (isPickerOwner()) {
drawPicker();
}
};
this.importColor = function () {
if (!this.valueElement) {
this.exportColor();
} else {
if (jsc.isElementType(this.valueElement, 'input')) {
if (!this.refine) {
if (!this.fromString(this.valueElement.value, jsc.leaveValue)) {
if (this.styleElement) {
this.styleElement.style.backgroundImage = this.styleElement._jscOrigStyle.backgroundImage;
this.styleElement.style.backgroundColor = this.styleElement._jscOrigStyle.backgroundColor;
this.styleElement.style.color = this.styleElement._jscOrigStyle.color;
}
this.exportColor(jsc.leaveValue | jsc.leaveStyle);
}
} else if (!this.required && /^\s*$/.test(this.valueElement.value)) {
this.valueElement.value = '';
if (this.styleElement) {
this.styleElement.style.backgroundImage = this.styleElement._jscOrigStyle.backgroundImage;
this.styleElement.style.backgroundColor = this.styleElement._jscOrigStyle.backgroundColor;
this.styleElement.style.color = this.styleElement._jscOrigStyle.color;
}
this.exportColor(jsc.leaveValue | jsc.leaveStyle);
} else if (this.fromString(this.valueElement.value)) {
// managed to import color successfully from the value -> OK, don't do anything
} else {
this.exportColor();
}
} else {
// not an input element -> doesn't have any value
this.exportColor();
}
}
};
this.exportColor = function (flags) {
if (!(flags & jsc.leaveValue) && this.valueElement) {
var value = this.toString();
if (this.uppercase) { value = value.toUpperCase(); }
if (this.hash) { value = '#' + value; }
if (jsc.isElementType(this.valueElement, 'input')) {
this.valueElement.value = value;
} else {
this.valueElement.innerHTML = value;
}
}
if (!(flags & jsc.leaveStyle)) {
if (this.styleElement) {
var bgColor = '#' + this.toString();
var fgColor = this.isLight() ? '#000' : '#FFF';
this.styleElement.style.backgroundImage = 'none';
this.styleElement.style.backgroundColor = bgColor;
this.styleElement.style.color = fgColor;
if (this.overwriteImportant) {
this.styleElement.setAttribute('style',
'background: ' + bgColor + ' !important; ' +
'color: ' + fgColor + ' !important;'
);
}
}
}
if (!(flags & jsc.leavePad) && isPickerOwner()) {
redrawPad();
}
if (!(flags & jsc.leaveSld) && isPickerOwner()) {
redrawSld();
}
};
// h: 0-360
// s: 0-100
// v: 0-100
//
this.fromHSV = function (h, s, v, flags) { // null = don't change
if (h !== null) {
if (isNaN(h)) { return false; }
h = Math.max(0, Math.min(360, h));
}
if (s !== null) {
if (isNaN(s)) { return false; }
s = Math.max(0, Math.min(100, this.maxS, s), this.minS);
}
if (v !== null) {
if (isNaN(v)) { return false; }
v = Math.max(0, Math.min(100, this.maxV, v), this.minV);
}
this.rgb = HSV_RGB(
h===null ? this.hsv[0] : (this.hsv[0]=h),
s===null ? this.hsv[1] : (this.hsv[1]=s),
v===null ? this.hsv[2] : (this.hsv[2]=v)
);
this.exportColor(flags);
};
// r: 0-255
// g: 0-255
// b: 0-255
//
this.fromRGB = function (r, g, b, flags) { // null = don't change
if (r !== null) {
if (isNaN(r)) { return false; }
r = Math.max(0, Math.min(255, r));
}
if (g !== null) {
if (isNaN(g)) { return false; }
g = Math.max(0, Math.min(255, g));
}
if (b !== null) {
if (isNaN(b)) { return false; }
b = Math.max(0, Math.min(255, b));
}
var hsv = RGB_HSV(
r===null ? this.rgb[0] : r,
g===null ? this.rgb[1] : g,
b===null ? this.rgb[2] : b
);
if (hsv[0] !== null) {
this.hsv[0] = Math.max(0, Math.min(360, hsv[0]));
}
if (hsv[2] !== 0) {
this.hsv[1] = hsv[1]===null ? null : Math.max(0, this.minS, Math.min(100, this.maxS, hsv[1]));
}
this.hsv[2] = hsv[2]===null ? null : Math.max(0, this.minV, Math.min(100, this.maxV, hsv[2]));
// update RGB according to final HSV, as some values might be trimmed
var rgb = HSV_RGB(this.hsv[0], this.hsv[1], this.hsv[2]);
this.rgb[0] = rgb[0];
this.rgb[1] = rgb[1];
this.rgb[2] = rgb[2];
this.exportColor(flags);
};
this.fromString = function (str, flags) {
var m;
if (m = str.match(/^\W*([0-9A-F]{3}([0-9A-F]{3})?)\W*$/i)) {
// HEX notation
//
if (m[1].length === 6) {
// 6-char notation
this.fromRGB(
parseInt(m[1].substr(0,2),16),
parseInt(m[1].substr(2,2),16),
parseInt(m[1].substr(4,2),16),
flags
);
} else {
// 3-char notation
this.fromRGB(
parseInt(m[1].charAt(0) + m[1].charAt(0),16),
parseInt(m[1].charAt(1) + m[1].charAt(1),16),
parseInt(m[1].charAt(2) + m[1].charAt(2),16),
flags
);
}
return true;
} else if (m = str.match(/^\W*rgba?\(([^)]*)\)\W*$/i)) {
var params = m[1].split(',');
var re = /^\s*(\d*)(\.\d+)?\s*$/;
var mR, mG, mB;
if (
params.length >= 3 &&
(mR = params[0].match(re)) &&
(mG = params[1].match(re)) &&
(mB = params[2].match(re))
) {
var r = parseFloat((mR[1] || '0') + (mR[2] || ''));
var g = parseFloat((mG[1] || '0') + (mG[2] || ''));
var b = parseFloat((mB[1] || '0') + (mB[2] || ''));
this.fromRGB(r, g, b, flags);
return true;
}
}
return false;
};
this.toString = function () {
return (
(0x100 | Math.round(this.rgb[0])).toString(16).substr(1) +
(0x100 | Math.round(this.rgb[1])).toString(16).substr(1) +
(0x100 | Math.round(this.rgb[2])).toString(16).substr(1)
);
};
this.toHEXString = function () {
return '#' + this.toString().toUpperCase();
};
this.toRGBString = function () {
return ('rgb(' +
Math.round(this.rgb[0]) + ',' +
Math.round(this.rgb[1]) + ',' +
Math.round(this.rgb[2]) + ')'
);
};
this.isLight = function () {
return (
0.213 * this.rgb[0] +
0.715 * this.rgb[1] +
0.072 * this.rgb[2] >
255 / 2
);
};
this._processParentElementsInDOM = function () {
if (this._linkedElementsProcessed) { return; }
this._linkedElementsProcessed = true;
var elm = this.targetElement;
do {
// If the target element or one of its parent nodes has fixed position,
// then use fixed positioning instead
//
// Note: In Firefox, getComputedStyle returns null in a hidden iframe,
// that's why we need to check if the returned style object is non-empty
var currStyle = jsc.getStyle(elm);
if (currStyle && currStyle.position.toLowerCase() === 'fixed') {
this.fixed = true;
}
if (elm !== this.targetElement) {
// Ensure to attach onParentScroll only once to each parent element
// (multiple targetElements can share the same parent nodes)
//
// Note: It's not just offsetParents that can be scrollable,
// that's why we loop through all parent nodes
if (!elm._jscEventsAttached) {
jsc.attachEvent(elm, 'scroll', jsc.onParentScroll);
elm._jscEventsAttached = true;
}
}
} while ((elm = elm.parentNode) && !jsc.isElementType(elm, 'body'));
};
// r: 0-255
// g: 0-255
// b: 0-255
//
// returns: [ 0-360, 0-100, 0-100 ]
//
function RGB_HSV (r, g, b) {
r /= 255;
g /= 255;
b /= 255;
var n = Math.min(Math.min(r,g),b);
var v = Math.max(Math.max(r,g),b);
var m = v - n;
if (m === 0) { return [ null, 0, 100 * v ]; }
var h = r===n ? 3+(b-g)/m : (g===n ? 5+(r-b)/m : 1+(g-r)/m);
return [
60 * (h===6?0:h),
100 * (m/v),
100 * v
];
}
// h: 0-360
// s: 0-100
// v: 0-100
//
// returns: [ 0-255, 0-255, 0-255 ]
//
function HSV_RGB (h, s, v) {
var u = 255 * (v / 100);
if (h === null) {
return [ u, u, u ];
}
h /= 60;
s /= 100;
var i = Math.floor(h);
var f = i%2 ? h-i : 1-(h-i);
var m = u * (1 - s);
var n = u * (1 - s * f);
switch (i) {
case 6:
case 0: return [u,n,m];
case 1: return [n,u,m];
case 2: return [m,u,n];
case 3: return [m,n,u];
case 4: return [n,m,u];
case 5: return [u,m,n];
}
}
function detachPicker () {
jsc.unsetClass(THIS.targetElement, THIS.activeClass);
jsc.picker.wrap.parentNode.removeChild(jsc.picker.wrap);
delete jsc.picker.owner;
}
function drawPicker () {
// At this point, when drawing the picker, we know what the parent elements are
// and we can do all related DOM operations, such as registering events on them
// or checking their positioning
THIS._processParentElementsInDOM();
if (!jsc.picker) {
jsc.picker = {
owner: null,
wrap : document.createElement('div'),
box : document.createElement('div'),
boxS : document.createElement('div'), // shadow area
boxB : document.createElement('div'), // border
pad : document.createElement('div'),
padB : document.createElement('div'), // border
padM : document.createElement('div'), // mouse/touch area
padPal : jsc.createPalette(),
cross : document.createElement('div'),
crossBY : document.createElement('div'), // border Y
crossBX : document.createElement('div'), // border X
crossLY : document.createElement('div'), // line Y
crossLX : document.createElement('div'), // line X
sld : document.createElement('div'),
sldB : document.createElement('div'), // border
sldM : document.createElement('div'), // mouse/touch area
sldGrad : jsc.createSliderGradient(),
sldPtrS : document.createElement('div'), // slider pointer spacer
sldPtrIB : document.createElement('div'), // slider pointer inner border
sldPtrMB : document.createElement('div'), // slider pointer middle border
sldPtrOB : document.createElement('div'), // slider pointer outer border
btn : document.createElement('div'),
btnT : document.createElement('span') // text
};
jsc.picker.pad.appendChild(jsc.picker.padPal.elm);
jsc.picker.padB.appendChild(jsc.picker.pad);
jsc.picker.cross.appendChild(jsc.picker.crossBY);
jsc.picker.cross.appendChild(jsc.picker.crossBX);
jsc.picker.cross.appendChild(jsc.picker.crossLY);
jsc.picker.cross.appendChild(jsc.picker.crossLX);
jsc.picker.padB.appendChild(jsc.picker.cross);
jsc.picker.box.appendChild(jsc.picker.padB);
jsc.picker.box.appendChild(jsc.picker.padM);
jsc.picker.sld.appendChild(jsc.picker.sldGrad.elm);
jsc.picker.sldB.appendChild(jsc.picker.sld);
jsc.picker.sldB.appendChild(jsc.picker.sldPtrOB);
jsc.picker.sldPtrOB.appendChild(jsc.picker.sldPtrMB);
jsc.picker.sldPtrMB.appendChild(jsc.picker.sldPtrIB);
jsc.picker.sldPtrIB.appendChild(jsc.picker.sldPtrS);
jsc.picker.box.appendChild(jsc.picker.sldB);
jsc.picker.box.appendChild(jsc.picker.sldM);
jsc.picker.btn.appendChild(jsc.picker.btnT);
jsc.picker.box.appendChild(jsc.picker.btn);
jsc.picker.boxB.appendChild(jsc.picker.box);
jsc.picker.wrap.appendChild(jsc.picker.boxS);
jsc.picker.wrap.appendChild(jsc.picker.boxB);
}
var p = jsc.picker;
var displaySlider = !!jsc.getSliderComponent(THIS);
var dims = jsc.getPickerDims(THIS);
var crossOuterSize = (2 * THIS.pointerBorderWidth + THIS.pointerThickness + 2 * THIS.crossSize);
var padToSliderPadding = jsc.getPadToSliderPadding(THIS);
var borderRadius = Math.min(
THIS.borderRadius,
Math.round(THIS.padding * Math.PI)); // px
var padCursor = 'crosshair';
// wrap
p.wrap.style.clear = 'both';
p.wrap.style.width = (dims[0] + 2 * THIS.borderWidth) + 'px';
p.wrap.style.height = (dims[1] + 2 * THIS.borderWidth) + 'px';
p.wrap.style.zIndex = THIS.zIndex;
// picker
p.box.style.width = dims[0] + 'px';
p.box.style.height = dims[1] + 'px';
p.boxS.style.position = 'absolute';
p.boxS.style.left = '0';
p.boxS.style.top = '0';
p.boxS.style.width = '100%';
p.boxS.style.height = '100%';
jsc.setBorderRadius(p.boxS, borderRadius + 'px');
// picker border
p.boxB.style.position = 'relative';
p.boxB.style.border = THIS.borderWidth + 'px solid';
p.boxB.style.borderColor = THIS.borderColor;
p.boxB.style.background = THIS.backgroundColor;
jsc.setBorderRadius(p.boxB, borderRadius + 'px');
// IE hack:
// If the element is transparent, IE will trigger the event on the elements under it,
// e.g. on Canvas or on elements with border
p.padM.style.background =
p.sldM.style.background =
'#FFF';
jsc.setStyle(p.padM, 'opacity', '0');
jsc.setStyle(p.sldM, 'opacity', '0');
// pad
p.pad.style.position = 'relative';
p.pad.style.width = THIS.width + 'px';
p.pad.style.height = THIS.height + 'px';
// pad palettes (HSV and HVS)
p.padPal.draw(THIS.width, THIS.height, jsc.getPadYComponent(THIS));
// pad border
p.padB.style.position = 'absolute';
p.padB.style.left = THIS.padding + 'px';
p.padB.style.top = THIS.padding + 'px';
p.padB.style.border = THIS.insetWidth + 'px solid';
p.padB.style.borderColor = THIS.insetColor;
// pad mouse area
p.padM._jscInstance = THIS;
p.padM._jscControlName = 'pad';
p.padM.style.position = 'absolute';
p.padM.style.left = '0';
p.padM.style.top = '0';
p.padM.style.width = (THIS.padding + 2 * THIS.insetWidth + THIS.width + padToSliderPadding / 2) + 'px';
p.padM.style.height = dims[1] + 'px';
p.padM.style.cursor = padCursor;
// pad cross
p.cross.style.position = 'absolute';
p.cross.style.left =
p.cross.style.top =
'0';
p.cross.style.width =
p.cross.style.height =
crossOuterSize + 'px';
// pad cross border Y and X
p.crossBY.style.position =
p.crossBX.style.position =
'absolute';
p.crossBY.style.background =
p.crossBX.style.background =
THIS.pointerBorderColor;
p.crossBY.style.width =
p.crossBX.style.height =
(2 * THIS.pointerBorderWidth + THIS.pointerThickness) + 'px';
p.crossBY.style.height =
p.crossBX.style.width =
crossOuterSize + 'px';
p.crossBY.style.left =
p.crossBX.style.top =
(Math.floor(crossOuterSize / 2) - Math.floor(THIS.pointerThickness / 2) - THIS.pointerBorderWidth) + 'px';
p.crossBY.style.top =
p.crossBX.style.left =
'0';
// pad cross line Y and X
p.crossLY.style.position =
p.crossLX.style.position =
'absolute';
p.crossLY.style.background =
p.crossLX.style.background =
THIS.pointerColor;
p.crossLY.style.height =
p.crossLX.style.width =
(crossOuterSize - 2 * THIS.pointerBorderWidth) + 'px';
p.crossLY.style.width =
p.crossLX.style.height =
THIS.pointerThickness + 'px';
p.crossLY.style.left =
p.crossLX.style.top =
(Math.floor(crossOuterSize / 2) - Math.floor(THIS.pointerThickness / 2)) + 'px';
p.crossLY.style.top =
p.crossLX.style.left =
THIS.pointerBorderWidth + 'px';
// slider
p.sld.style.overflow = 'hidden';
p.sld.style.width = THIS.sliderSize + 'px';
p.sld.style.height = THIS.height + 'px';
// slider gradient
p.sldGrad.draw(THIS.sliderSize, THIS.height, '#000', '#000');
// slider border
p.sldB.style.display = displaySlider ? 'block' : 'none';
p.sldB.style.position = 'absolute';
p.sldB.style.right = THIS.padding + 'px';
p.sldB.style.top = THIS.padding + 'px';
p.sldB.style.border = THIS.insetWidth + 'px solid';
p.sldB.style.borderColor = THIS.insetColor;
// slider mouse area
p.sldM._jscInstance = THIS;
p.sldM._jscControlName = 'sld';
p.sldM.style.display = displaySlider ? 'block' : 'none';
p.sldM.style.position = 'absolute';
p.sldM.style.right = '0';
p.sldM.style.top = '0';
p.sldM.style.width = (THIS.sliderSize + padToSliderPadding / 2 + THIS.padding + 2 * THIS.insetWidth) + 'px';
p.sldM.style.height = dims[1] + 'px';
p.sldM.style.cursor = 'default';
// slider pointer inner and outer border
p.sldPtrIB.style.border =
p.sldPtrOB.style.border =
THIS.pointerBorderWidth + 'px solid ' + THIS.pointerBorderColor;
// slider pointer outer border
p.sldPtrOB.style.position = 'absolute';
p.sldPtrOB.style.left = -(2 * THIS.pointerBorderWidth + THIS.pointerThickness) + 'px';
p.sldPtrOB.style.top = '0';
// slider pointer middle border
p.sldPtrMB.style.border = THIS.pointerThickness + 'px solid ' + THIS.pointerColor;
// slider pointer spacer
p.sldPtrS.style.width = THIS.sliderSize + 'px';
p.sldPtrS.style.height = sliderPtrSpace + 'px';
// the Close button
function setBtnBorder () {
var insetColors = THIS.insetColor.split(/\s+/);
var outsetColor = insetColors.length < 2 ? insetColors[0] : insetColors[1] + ' ' + insetColors[0] + ' ' + insetColors[0] + ' ' + insetColors[1];
p.btn.style.borderColor = outsetColor;
}
p.btn.style.display = THIS.closable ? 'block' : 'none';
p.btn.style.position = 'absolute';
p.btn.style.left = THIS.padding + 'px';
p.btn.style.bottom = THIS.padding + 'px';
p.btn.style.padding = '0 15px';
p.btn.style.height = THIS.buttonHeight + 'px';
p.btn.style.border = THIS.insetWidth + 'px solid';
setBtnBorder();
p.btn.style.color = THIS.buttonColor;
p.btn.style.font = '12px sans-serif';
p.btn.style.textAlign = 'center';
try {
p.btn.style.cursor = 'pointer';
} catch(eOldIE) {
p.btn.style.cursor = 'hand';
}
p.btn.onmousedown = function () {
THIS.hide();
};
p.btnT.style.lineHeight = THIS.buttonHeight + 'px';
p.btnT.innerHTML = '';
p.btnT.appendChild(document.createTextNode(THIS.closeText));
// place pointers
redrawPad();
redrawSld();
// If we are changing the owner without first closing the picker,
// make sure to first deal with the old owner
if (jsc.picker.owner && jsc.picker.owner !== THIS) {
jsc.unsetClass(jsc.picker.owner.targetElement, THIS.activeClass);
}
// Set the new picker owner
jsc.picker.owner = THIS;
// The redrawPosition() method needs picker.owner to be set, that's why we call it here,
// after setting the owner
if (jsc.isElementType(container, 'body')) {
jsc.redrawPosition();
} else {
jsc._drawPosition(THIS, 0, 0, 'relative', false);
}
if (p.wrap.parentNode != container) {
container.appendChild(p.wrap);
}
jsc.setClass(THIS.targetElement, THIS.activeClass);
}
function redrawPad () {
// redraw the pad pointer
switch (jsc.getPadYComponent(THIS)) {
case 's': var yComponent = 1; break;
case 'v': var yComponent = 2; break;
}
var x = Math.round((THIS.hsv[0] / 360) * (THIS.width - 1));
var y = Math.round((1 - THIS.hsv[yComponent] / 100) * (THIS.height - 1));
var crossOuterSize = (2 * THIS.pointerBorderWidth + THIS.pointerThickness + 2 * THIS.crossSize);
var ofs = -Math.floor(crossOuterSize / 2);
jsc.picker.cross.style.left = (x + ofs) + 'px';
jsc.picker.cross.style.top = (y + ofs) + 'px';
// redraw the slider
switch (jsc.getSliderComponent(THIS)) {
case 's':
var rgb1 = HSV_RGB(THIS.hsv[0], 100, THIS.hsv[2]);
var rgb2 = HSV_RGB(THIS.hsv[0], 0, THIS.hsv[2]);
var color1 = 'rgb(' +
Math.round(rgb1[0]) + ',' +
Math.round(rgb1[1]) + ',' +
Math.round(rgb1[2]) + ')';
var color2 = 'rgb(' +
Math.round(rgb2[0]) + ',' +
Math.round(rgb2[1]) + ',' +
Math.round(rgb2[2]) + ')';
jsc.picker.sldGrad.draw(THIS.sliderSize, THIS.height, color1, color2);
break;
case 'v':
var rgb = HSV_RGB(THIS.hsv[0], THIS.hsv[1], 100);
var color1 = 'rgb(' +
Math.round(rgb[0]) + ',' +
Math.round(rgb[1]) + ',' +
Math.round(rgb[2]) + ')';
var color2 = '#000';
jsc.picker.sldGrad.draw(THIS.sliderSize, THIS.height, color1, color2);
break;
}
}
function redrawSld () {
var sldComponent = jsc.getSliderComponent(THIS);
if (sldComponent) {
// redraw the slider pointer
switch (sldComponent) {
case 's': var yComponent = 1; break;
case 'v': var yComponent = 2; break;
}
var y = Math.round((1 - THIS.hsv[yComponent] / 100) * (THIS.height - 1));
jsc.picker.sldPtrOB.style.top = (y - (2 * THIS.pointerBorderWidth + THIS.pointerThickness) - Math.floor(sliderPtrSpace / 2)) + 'px';
}
}
function isPickerOwner () {
return jsc.picker && jsc.picker.owner === THIS;
}
function blurValue () {
THIS.importColor();
}
// Find the target element
if (typeof targetElement === 'string') {
var id = targetElement;
var elm = document.getElementById(id);
if (elm) {
this.targetElement = elm;
} else {
jsc.warn('Could not find target element with ID \'' + id + '\'');
}
} else if (targetElement) {
this.targetElement = targetElement;
} else {
jsc.warn('Invalid target element: \'' + targetElement + '\'');
}
if (this.targetElement._jscLinkedInstance) {
jsc.warn('Cannot link jscolor twice to the same element. Skipping.');
return;
}
this.targetElement._jscLinkedInstance = this;
// Find the value element
this.valueElement = jsc.fetchElement(this.valueElement);
// Find the style element
this.styleElement = jsc.fetchElement(this.styleElement);
var THIS = this;
var container =
this.container ?
jsc.fetchElement(this.container) :
document.getElementsByTagName('body')[0];
var sliderPtrSpace = 3; // px
// For BUTTON elements it's important to stop them from sending the form when clicked
// (e.g. in Safari)
if (jsc.isElementType(this.targetElement, 'button')) {
if (this.targetElement.onclick) {
var origCallback = this.targetElement.onclick;
this.targetElement.onclick = function (evt) {
origCallback.call(this, evt);
return false;
};
} else {
this.targetElement.onclick = function () { return false; };
}
}
/*
var elm = this.targetElement;
do {
// If the target element or one of its offsetParents has fixed position,
// then use fixed positioning instead
//
// Note: In Firefox, getComputedStyle returns null in a hidden iframe,
// that's why we need to check if the returned style object is non-empty
var currStyle = jsc.getStyle(elm);
if (currStyle && currStyle.position.toLowerCase() === 'fixed') {
this.fixed = true;
}
if (elm !== this.targetElement) {
// attach onParentScroll so that we can recompute the picker position
// when one of the offsetParents is scrolled
if (!elm._jscEventsAttached) {
jsc.attachEvent(elm, 'scroll', jsc.onParentScroll);
elm._jscEventsAttached = true;
}
}
} while ((elm = elm.offsetParent) && !jsc.isElementType(elm, 'body'));
*/
// valueElement
if (this.valueElement) {
if (jsc.isElementType(this.valueElement, 'input')) {
var updateField = function () {
THIS.fromString(THIS.valueElement.value, jsc.leaveValue);
jsc.dispatchFineChange(THIS);
};
jsc.attachEvent(this.valueElement, 'keyup', updateField);
jsc.attachEvent(this.valueElement, 'input', updateField);
jsc.attachEvent(this.valueElement, 'blur', blurValue);
this.valueElement.setAttribute('autocomplete', 'off');
}
}
// styleElement
if (this.styleElement) {
this.styleElement._jscOrigStyle = {
backgroundImage : this.styleElement.style.backgroundImage,
backgroundColor : this.styleElement.style.backgroundColor,
color : this.styleElement.style.color
};
}
if (this.value) {
// Try to set the color from the .value option and if unsuccessful,
// export the current color
this.fromString(this.value) || this.exportColor();
} else {
this.importColor();
}
}
};
//================================
// Public properties and methods
//================================
// By default, search for all elements with class="jscolor" and install a color picker on them.
//
// You can change what class name will be looked for by setting the property jscolor.lookupClass
// anywhere in your HTML document. To completely disable the automatic lookup, set it to null.
//
jsc.jscolor.lookupClass = 'jscolor';
jsc.jscolor.installByClassName = function (className) {
var inputElms = document.getElementsByTagName('input');
var buttonElms = document.getElementsByTagName('button');
jsc.tryInstallOnElements(inputElms, className);
jsc.tryInstallOnElements(buttonElms, className);
};
jsc.register();
return jsc.jscolor;
})(); }
/* Display Popup when Contact Form 7 successfully submitted */
document.addEventListener( 'wpcf7mailsent', function( event ) {
var currentformid = event.detail.contactFormId;
var popup_id = event.detail.apiResponse.popup_id;
//Store popup background color and search , is aveliable or not if not aveliable then it is normal color or gradient color
if( event.detail.apiResponse.popup_background_option == "bg_color")
{
var color_code = event.detail.apiResponse.popup_background_color;
}
if(event.detail.apiResponse.popup_background_option === "gradient_color")
{
var color_code = 'linear-gradient('+ event.detail.apiResponse.popup_gradient_color +','+ event.detail.apiResponse.popup_gradient_color1 +')';
}
if(event.detail.apiResponse.popup_background_option === "image")
{
var color_code = ' url("' + event.detail.apiResponse.popup_image_color + '")right center / cover no-repeat';
}
if (popup_id != null && popup_id != '') {
//popup box
swal({
// set popup background color and image
background: color_code,
// set popup message
title: '<span style="color:' + event.detail.apiResponse.popup_text_color +'">'+event.detail.apiResponse.popup_message+'</span>',
confirmButtonColor: event.detail.apiResponse.popup_button_background_color,
confirmButtonText: '<span style="color:' + event.detail.apiResponse.popup_text_color +'">'+event.detail.apiResponse.popup_button_text+'</span>',
// set popup width
width: event.detail.apiResponse.m_popup_width,
//set popup duration time in seconds
timer: event.detail.apiResponse.m_popup_duration,
})
jQuery('.swal2-modal').css('border-radius', event.detail.apiResponse.m_popup_radius+"px");
}
}, false );
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.Sweetalert2=t()}(this,function(){"use strict";function V(e){return(V="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 c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function r(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function a(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&&u(e,t)}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e,t,n){return(l=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}}()?Reflect.construct:function(e,t,n){var o=[null];o.push.apply(o,t);var r=new(Function.bind.apply(e,o));return n&&u(r,n.prototype),r}).apply(null,arguments)}function d(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 p(e,t,n){return(p="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var o=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=s(e)););return e}(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(n):r.value}})(e,t,n||e)}var t="SweetAlert2:",f=function(e){return Array.prototype.slice.call(e)},m=function(e){console.warn("".concat(t," ").concat(e))},R=function(e){console.error("".concat(t," ").concat(e))},n=[],h=function(e){-1===n.indexOf(e)&&(n.push(e),m(e))},M=function(e){return"function"==typeof e?e():e},H=function(e){return"object"===V(e)&&"function"==typeof e.then},e=Object.freeze({cancel:"cancel",backdrop:"overlay",close:"close",esc:"esc",timer:"timer"}),g=function(e){var t={};for(var n in e)t[e[n]]="swal2-"+e[n];return t},I=g(["container","shown","height-auto","iosfix","popup","modal","no-backdrop","toast","toast-shown","toast-column","fade","show","hide","noanimation","close","title","header","content","actions","confirm","cancel","footer","icon","icon-text","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","validationerror","progresssteps","activeprogressstep","progresscircle","progressline","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen"]),b=g(["success","warning","info","question","error"]),y={previousBodyPadding:null},v=function(e,t){return e.classList.contains(t)},_=function(e){if(e.focus(),"file"!==e.type){var t=e.value;e.value="",e.value=t}},w=function(e,t,n){e&&t&&("string"==typeof t&&(t=t.split(/\s+/).filter(Boolean)),t.forEach(function(t){e.forEach?e.forEach(function(e){n?e.classList.add(t):e.classList.remove(t)}):n?e.classList.add(t):e.classList.remove(t)}))},D=function(e,t){w(e,t,!0)},N=function(e,t){w(e,t,!1)},W=function(e,t){for(var n=0;n<e.childNodes.length;n++)if(v(e.childNodes[n],t))return e.childNodes[n]},z=function(e){e.style.opacity="",e.style.display=e.id===I.content?"block":"flex"},U=function(e){e.style.opacity="",e.style.display="none"},K=function(e){return e&&(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},C=function(){return document.body.querySelector("."+I.container)},k=function(e){var t=C();return t?t.querySelector("."+e):null},x=function(){return k(I.popup)},A=function(){var e=x();return f(e.querySelectorAll("."+I.icon))},B=function(){return k(I.title)},P=function(){return k(I.content)},S=function(){return k(I.image)},E=function(){return k(I.progresssteps)},O=function(){return k(I.confirm)},F=function(){return k(I.cancel)},Z=function(){return k(I.actions)},Q=function(){return k(I.footer)},Y=function(){return k(I.close)},$=function(){var e=f(x().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort(function(e,t){return e=parseInt(e.getAttribute("tabindex")),(t=parseInt(t.getAttribute("tabindex")))<e?1:e<t?-1:0}),t=f(x().querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, [tabindex="0"], [contenteditable], audio[controls], video[controls]')).filter(function(e){return"-1"!==e.getAttribute("tabindex")});return function(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(e.concat(t)).filter(function(e){return K(e)})},L=function(){return!T()&&!document.body.classList.contains(I["no-backdrop"])},T=function(){return document.body.classList.contains(I["toast-shown"])},j=function(){return"undefined"==typeof window||"undefined"==typeof document},q='\n <div aria-labelledby="'.concat(I.title,'" aria-describedby="').concat(I.content,'" class="').concat(I.popup,'" tabindex="-1">\n <div class="').concat(I.header,'">\n <ul class="').concat(I.progresssteps,'"></ul>\n <div class="').concat(I.icon," ").concat(b.error,'">\n <span class="swal2-x-mark"><span class="swal2-x-mark-line-left"></span><span class="swal2-x-mark-line-right"></span></span>\n </div>\n <div class="').concat(I.icon," ").concat(b.question,'">\n <span class="').concat(I["icon-text"],'">?</span>\n </div>\n <div class="').concat(I.icon," ").concat(b.warning,'">\n <span class="').concat(I["icon-text"],'">!</span>\n </div>\n <div class="').concat(I.icon," ").concat(b.info,'">\n <span class="').concat(I["icon-text"],'">i</span>\n </div>\n <div class="').concat(I.icon," ").concat(b.success,'">\n <div class="swal2-success-circular-line-left"></div>\n <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>\n <div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>\n <div class="swal2-success-circular-line-right"></div>\n </div>\n <img class="').concat(I.image,'" />\n <h2 class="').concat(I.title,'" id="').concat(I.title,'"></h2>\n <button type="button" class="').concat(I.close,'">��</button>\n </div>\n <div class="').concat(I.content,'">\n <div id="').concat(I.content,'"></div>\n <input class="').concat(I.input,'" />\n <input type="file" class="').concat(I.file,'" />\n <div class="').concat(I.range,'">\n <input type="range" />\n <output></output>\n </div>\n <select class="').concat(I.select,'"></select>\n <div class="').concat(I.radio,'"></div>\n <label for="').concat(I.checkbox,'" class="').concat(I.checkbox,'">\n <input type="checkbox" />\n <span class="').concat(I.label,'"></span>\n </label>\n <textarea class="').concat(I.textarea,'"></textarea>\n <div class="').concat(I.validationerror,'" id="').concat(I.validationerror,'"></div>\n </div>\n <div class="').concat(I.actions,'">\n <button type="button" class="').concat(I.confirm,'">OK</button>\n <button type="button" class="').concat(I.cancel,'">Cancel</button>\n </div>\n <div class="').concat(I.footer,'">\n </div>\n </div>\n').replace(/(^|\n)\s*/g,""),J=function(e){var t=C();if(t&&(t.parentNode.removeChild(t),N([document.documentElement,document.body],[I["no-backdrop"],I["toast-shown"],I["has-column"]])),!j()){var n=document.createElement("div");n.className=I.container,n.innerHTML=q,("string"==typeof e.target?document.querySelector(e.target):e.target).appendChild(n);var o,r=x(),i=P(),a=W(i,I.input),c=W(i,I.file),s=i.querySelector(".".concat(I.range," input")),u=i.querySelector(".".concat(I.range," output")),l=W(i,I.select),d=i.querySelector(".".concat(I.checkbox," input")),p=W(i,I.textarea);r.setAttribute("role",e.toast?"alert":"dialog"),r.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||r.setAttribute("aria-modal","true");var f=function(e){qe.isVisible()&&o!==e.target.value&&qe.resetValidationError(),o=e.target.value};return a.oninput=f,c.onchange=f,l.onchange=f,d.onchange=f,p.oninput=f,s.oninput=function(e){f(e),u.value=s.value},s.onchange=function(e){f(e),s.nextSibling.value=s.value},r}R("SweetAlert2 requires document to initialize")},X=function(e,t){if(!e)return U(t);if("object"===V(e))if(t.innerHTML="",0 in e)for(var n=0;n in e;n++)t.appendChild(e[n].cloneNode(!0));else t.appendChild(e.cloneNode(!0));else e&&(t.innerHTML=e);z(t)},G=function(){if(j())return!1;var e=document.createElement("div"),t={WebkitAnimation:"webkitAnimationEnd",OAnimation:"oAnimationEnd oanimationend",animation:"animationend"};for(var n in t)if(t.hasOwnProperty(n)&&void 0!==e.style[n])return t[n];return!1}(),ee=function(e){var t,n,o=Z(),r=O(),i=F();if(e.showConfirmButton||e.showCancelButton?z(o):U(o),e.showCancelButton?i.style.display="inline-block":U(i),e.showConfirmButton?(n="display",(t=r).style.removeProperty?t.style.removeProperty(n):t.style.removeAttribute(n)):U(r),r.innerHTML=e.confirmButtonText,i.innerHTML=e.cancelButtonText,r.setAttribute("aria-label",e.confirmButtonAriaLabel),i.setAttribute("aria-label",e.cancelButtonAriaLabel),r.className=I.confirm,D(r,e.confirmButtonClass),i.className=I.cancel,D(i,e.cancelButtonClass),e.buttonsStyling){D([r,i],I.styled),e.confirmButtonColor&&(r.style.backgroundColor=e.confirmButtonColor),e.cancelButtonColor&&(i.style.backgroundColor=e.cancelButtonColor);var a=window.getComputedStyle(r).getPropertyValue("background-color");r.style.borderLeftColor=a,r.style.borderRightColor=a}else N([r,i],I.styled),r.style.backgroundColor=r.style.borderLeftColor=r.style.borderRightColor="",i.style.backgroundColor=i.style.borderLeftColor=i.style.borderRightColor=""},te=function(e){var t=P().querySelector("#"+I.content);e.html?X(e.html,t):e.text?(t.textContent=e.text,z(t)):U(t)},ne=function(e){for(var t=A(),n=0;n<t.length;n++)U(t[n]);if(e.type)if(-1!==Object.keys(b).indexOf(e.type)){var o=qe.getPopup().querySelector(".".concat(I.icon,".").concat(b[e.type]));z(o),e.animation&&D(o,"swal2-animate-".concat(e.type,"-icon"))}else R('Unknown type! Expected "success", "error", "warning", "info" or "question", got "'.concat(e.type,'"'))},oe=function(e){var t=S();e.imageUrl?(t.setAttribute("src",e.imageUrl),t.setAttribute("alt",e.imageAlt),z(t),e.imageWidth?t.setAttribute("width",e.imageWidth):t.removeAttribute("width"),e.imageHeight?t.setAttribute("height",e.imageHeight):t.removeAttribute("height"),t.className=I.image,e.imageClass&&D(t,e.imageClass)):U(t)},re=function(r){var i=E(),a=parseInt(null===r.currentProgressStep?qe.getQueueStep():r.currentProgressStep,10);r.progressSteps&&r.progressSteps.length?(z(i),i.innerHTML="",a>=r.progressSteps.length&&m("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),r.progressSteps.forEach(function(e,t){var n=document.createElement("li");if(D(n,I.progresscircle),n.innerHTML=e,t===a&&D(n,I.activeprogressstep),i.appendChild(n),t!==r.progressSteps.length-1){var o=document.createElement("li");D(o,I.progressline),r.progressStepsDistance&&(o.style.width=r.progressStepsDistance),i.appendChild(o)}})):U(i)},ie=function(e){var t=B();e.titleText?t.innerText=e.titleText:e.title&&("string"==typeof e.title&&(e.title=e.title.split("\n").join("<br />")),X(e.title,t))},ae=function(){null===y.previousBodyPadding&&document.body.scrollHeight>window.innerHeight&&(y.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=y.previousBodyPadding+function(){if("ontouchstart"in window||navigator.msMaxTouchPoints)return 0;var e=document.createElement("div");e.style.width="50px",e.style.height="50px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}()+"px")},ce={},se=function(e,n){var o=C(),t=x();if(t){null!==e&&"function"==typeof e&&e(t),N(t,I.show),D(t,I.hide);var r=function(){var e,t;T()||(e=window.scrollX,t=window.scrollY,ce.restoreFocusTimeout=setTimeout(function(){ce.previousActiveElement&&ce.previousActiveElement.focus?(ce.previousActiveElement.focus(),ce.previousActiveElement=null):document.body&&document.body.focus()},100),void 0!==e&&void 0!==t&&window.scrollTo(e,t),ce.keydownTarget.removeEventListener("keydown",ce.keydownHandler,{capture:ce.keydownListenerCapture}),ce.keydownHandlerAdded=!1),o.parentNode&&o.parentNode.removeChild(o),N([document.documentElement,document.body],[I.shown,I["height-auto"],I["no-backdrop"],I["toast-shown"],I["toast-column"]]),L()&&(null!==y.previousBodyPadding&&(document.body.style.paddingRight=y.previousBodyPadding,y.previousBodyPadding=null),function(){if(v(document.body,I.iosfix)){var e=parseInt(document.body.style.top,10);N(document.body,I.iosfix),document.body.style.top="",document.body.scrollTop=-1*e}}(),f(document.body.children).forEach(function(e){e.hasAttribute("data-previous-aria-hidden")?(e.setAttribute("aria-hidden",e.getAttribute("data-previous-aria-hidden")),e.removeAttribute("data-previous-aria-hidden")):e.removeAttribute("aria-hidden")})),null!==n&&"function"==typeof n&&setTimeout(function(){n()})};G&&!v(t,I.noanimation)?t.addEventListener(G,function e(){t.removeEventListener(G,e),v(t,I.hide)&&r()}):r()}};function ue(e){var t=function e(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];if(!(this instanceof e))return l(e,n);Object.getPrototypeOf(e).apply(this,n)};return t.prototype=i(Object.create(e.prototype),{constructor:t}),"function"==typeof Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e,t}var le={title:"",titleText:"",text:"",html:"",footer:"",type:null,toast:!1,customClass:"",target:"body",backdrop:!0,animation:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showCancelButton:!1,preConfirm:null,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:null,confirmButtonClass:null,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:null,cancelButtonClass:null,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusCancel:!1,showCloseButton:!1,closeButtonAriaLabel:"Close this dialog",showLoaderOnConfirm:!1,imageUrl:null,imageWidth:null,imageHeight:null,imageAlt:"",imageClass:null,timer:null,width:null,padding:null,background:null,input:null,inputPlaceholder:"",inputValue:"",inputOptions:{},inputAutoTrim:!0,inputClass:null,inputAttributes:{},inputValidator:null,grow:!1,position:"center",progressSteps:[],currentProgressStep:null,progressStepsDistance:null,onBeforeOpen:null,onAfterClose:null,onOpen:null,onClose:null,useRejections:!1,expectRejections:!1},de=["useRejections","expectRejections"],pe=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusCancel","heightAuto","keydownListenerCapture"],fe=function(e){return le.hasOwnProperty(e)||"extraParams"===e},me=function(e){return-1!==de.indexOf(e)},he=function(e){for(var t in e)fe(t)||m('Unknown parameter "'.concat(t,'"')),e.toast&&-1!==pe.indexOf(t)&&m('The parameter "'.concat(t,'" is incompatible with toasts')),me(t)&&h('The parameter "'.concat(t,'" is deprecated and will be removed in the next major release.'))},ge='"setDefaults" & "resetDefaults" methods are deprecated in favor of "mixin" method and will be removed in the next major release. For new projects, use "mixin". For past projects already using "setDefaults", support will be provided through an additional package.',be={};var ye=[],ve=function(){var e=x();e||qe(""),e=x();var t=Z(),n=O(),o=F();z(t),z(n),D([e,t],I.loading),n.disabled=!0,o.disabled=!0,e.setAttribute("data-loading",!0),e.setAttribute("aria-busy",!0),e.focus()},we=Object.freeze({isValidParameter:fe,isDeprecatedParameter:me,argsToParams:function(n){var o={};switch(V(n[0])){case"object":i(o,n[0]);break;default:["title","html","type"].forEach(function(e,t){switch(V(n[t])){case"string":o[e]=n[t];break;case"undefined":break;default:R("Unexpected type of ".concat(e,'! Expected "string", got ').concat(V(n[t])))}})}return o},adaptInputValidator:function(n){return function(e,t){return n.call(this,e,t).then(function(){},function(e){return e})}},close:se,closePopup:se,closeModal:se,closeToast:se,isVisible:function(){return!!x()},clickConfirm:function(){return O().click()},clickCancel:function(){return F().click()},getContainer:C,getPopup:x,getTitle:B,getContent:P,getImage:S,getIcons:A,getCloseButton:Y,getButtonsWrapper:function(){return h("swal.getButtonsWrapper() is deprecated and will be removed in the next major release, use swal.getActions() instead"),k(I.actions)},getActions:Z,getConfirmButton:O,getCancelButton:F,getFooter:Q,getFocusableElements:$,isLoading:function(){return x().hasAttribute("data-loading")},fire:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return l(this,t)},mixin:function(n){return ue(function(e){function t(){return c(this,t),d(this,s(t).apply(this,arguments))}return a(t,e),r(t,[{key:"_main",value:function(e){return p(s(t.prototype),"_main",this).call(this,i({},n,e))}}]),t}(this))},queue:function(e){var i=this;ye=e;var a=function(){ye=[],document.body.removeAttribute("data-swal2-queue-step")},c=[];return new Promise(function(r){!function t(n,o){n<ye.length?(document.body.setAttribute("data-swal2-queue-step",n),i(ye[n]).then(function(e){void 0!==e.value?(c.push(e.value),t(n+1,o)):(a(),r({dismiss:e.dismiss}))})):(a(),r({value:c}))}(0)})},getQueueStep:function(){return document.body.getAttribute("data-swal2-queue-step")},insertQueueStep:function(e,t){return t&&t<ye.length?ye.splice(t,0,e):ye.push(e)},deleteQueueStep:function(e){void 0!==ye[e]&&ye.splice(e,1)},showLoading:ve,enableLoading:ve,getTimerLeft:function(){return ce.timeout&&ce.timeout.getTimerLeft()}}),Ce="function"==typeof Symbol?Symbol:function(){var t=0;function e(e){return"__"+e+"_"+Math.floor(1e9*Math.random())+"_"+ ++t+"__"}return e.iterator=e("Symbol.iterator"),e}(),ke="function"==typeof WeakMap?WeakMap:function(n,o,t){function e(){o(this,n,{value:Ce("WeakMap")})}return e.prototype={delete:function(e){delete e[this[n]]},get:function(e){return e[this[n]]},has:function(e){return t.call(e,this[n])},set:function(e,t){o(e,this[n],{configurable:!0,value:t})}},e}(Ce("WeakMap"),Object.defineProperty,{}.hasOwnProperty),xe={promise:new ke,innerParams:new ke,domCache:new ke};function Ae(){var e=xe.innerParams.get(this),t=xe.domCache.get(this);e.showConfirmButton||(U(t.confirmButton),e.showCancelButton||U(t.actions)),N([t.popup,t.actions],I.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),t.confirmButton.disabled=!1,t.cancelButton.disabled=!1}var Be=function e(t,n){var o,r,i;c(this,e);var a=n;this.start=function(){i=!0,r=new Date,o=setTimeout(t,a)},this.stop=function(){i=!1,clearTimeout(o),a-=new Date-r},this.getTimerLeft=function(){return i&&(this.stop(),this.start()),a},this.start()},Pe={email:function(e,t){return/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(e)?Promise.resolve():Promise.reject(t&&t.validationMessage?t.validationMessage:"Invalid email address")},url:function(e,t){return/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_+.~#?&//=]*)$/.test(e)?Promise.resolve():Promise.reject(t&&t.validationMessage?t.validationMessage:"Invalid URL")}};var Se=function(e){var t=C(),n=x();null!==e.onBeforeOpen&&"function"==typeof e.onBeforeOpen&&e.onBeforeOpen(n),e.animation?(D(n,I.show),D(t,I.fade),N(n,I.hide)):N(n,I.fade),z(n),t.style.overflowY="hidden",G&&!v(n,I.noanimation)?n.addEventListener(G,function e(){n.removeEventListener(G,e),t.style.overflowY="auto"}):t.style.overflowY="auto",D([document.documentElement,document.body,t],I.shown),e.heightAuto&&e.backdrop&&!e.toast&&D([document.documentElement,document.body],I["height-auto"]),L()&&(ae(),function(){if(/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream&&!v(document.body,I.iosfix)){var e=document.body.scrollTop;document.body.style.top=-1*e+"px",D(document.body,I.iosfix)}}(),f(document.body.children).forEach(function(e){e===C()||e.contains(C())||(e.hasAttribute("aria-hidden")&&e.setAttribute("data-previous-aria-hidden",e.getAttribute("aria-hidden")),e.setAttribute("aria-hidden","true"))})),T()||ce.previousActiveElement||(ce.previousActiveElement=document.activeElement),null!==e.onOpen&&"function"==typeof e.onOpen&&setTimeout(function(){e.onOpen(n)})};var Ee,Oe=Object.freeze({hideLoading:Ae,disableLoading:Ae,getInput:function(e){var t=xe.innerParams.get(this),n=xe.domCache.get(this);if(!(e=e||t.input))return null;switch(e){case"select":case"textarea":case"file":return W(n.content,I[e]);case"checkbox":return n.popup.querySelector(".".concat(I.checkbox," input"));case"radio":return n.popup.querySelector(".".concat(I.radio," input:checked"))||n.popup.querySelector(".".concat(I.radio," input:first-child"));case"range":return n.popup.querySelector(".".concat(I.range," input"));default:return W(n.content,I.input)}},enableButtons:function(){var e=xe.domCache.get(this);e.confirmButton.disabled=!1,e.cancelButton.disabled=!1},disableButtons:function(){var e=xe.domCache.get(this);e.confirmButton.disabled=!0,e.cancelButton.disabled=!0},enableConfirmButton:function(){xe.domCache.get(this).confirmButton.disabled=!1},disableConfirmButton:function(){xe.domCache.get(this).confirmButton.disabled=!0},enableInput:function(){var e=this.getInput();if(!e)return!1;if("radio"===e.type)for(var t=e.parentNode.parentNode.querySelectorAll("input"),n=0;n<t.length;n++)t[n].disabled=!1;else e.disabled=!1},disableInput:function(){var e=this.getInput();if(!e)return!1;if(e&&"radio"===e.type)for(var t=e.parentNode.parentNode.querySelectorAll("input"),n=0;n<t.length;n++)t[n].disabled=!0;else e.disabled=!0},showValidationError:function(e){var t=xe.domCache.get(this);t.validationError.innerHTML=e;var n=window.getComputedStyle(t.popup);t.validationError.style.marginLeft="-".concat(n.getPropertyValue("padding-left")),t.validationError.style.marginRight="-".concat(n.getPropertyValue("padding-right")),z(t.validationError);var o=this.getInput();o&&(o.setAttribute("aria-invalid",!0),o.setAttribute("aria-describedBy",I.validationerror),_(o),D(o,I.inputerror))},resetValidationError:function(){var e=xe.domCache.get(this);e.validationError&&U(e.validationError);var t=this.getInput();t&&(t.removeAttribute("aria-invalid"),t.removeAttribute("aria-describedBy"),N(t,I.inputerror))},getProgressSteps:function(){return xe.innerParams.get(this).progressSteps},setProgressSteps:function(e){var t=i({},xe.innerParams.get(this),{progressSteps:e});xe.innerParams.set(this,t),re(t)},showProgressSteps:function(){var e=xe.domCache.get(this);z(e.progressSteps)},hideProgressSteps:function(){var e=xe.domCache.get(this);U(e.progressSteps)},_main:function(e){var L=this;he(e);var T=i({},le,e);!function(t){var e;t.inputValidator||Object.keys(Pe).forEach(function(e){t.input===e&&(t.inputValidator=t.expectRejections?Pe[e]:qe.adaptInputValidator(Pe[e]))}),(!t.target||"string"==typeof t.target&&!document.querySelector(t.target)||"string"!=typeof t.target&&!t.target.appendChild)&&(m('Target parameter is not valid, defaulting to "body"'),t.target="body");var n=x(),o="string"==typeof t.target?document.querySelector(t.target):t.target;e=n&&o&&n.parentNode!==o.parentNode?J(t):n||J(t),t.width&&(e.style.width="number"==typeof t.width?t.width+"px":t.width),t.padding&&(e.style.padding="number"==typeof t.padding?t.padding+"px":t.padding),t.background&&(e.style.background=t.background);for(var r=window.getComputedStyle(e).getPropertyValue("background-color"),i=e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix"),a=0;a<i.length;a++)i[a].style.backgroundColor=r;var c=C(),s=Y(),u=Q();if(ie(t),te(t),"string"==typeof t.backdrop?C().style.background=t.backdrop:t.backdrop||D([document.documentElement,document.body],I["no-backdrop"]),!t.backdrop&&t.allowOutsideClick&&m('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),t.position in I?D(c,I[t.position]):(m('The "position" parameter is not valid, defaulting to "center"'),D(c,I.center)),t.grow&&"string"==typeof t.grow){var l="grow-"+t.grow;l in I&&D(c,I[l])}"function"==typeof t.animation&&(t.animation=t.animation.call()),t.showCloseButton?(s.setAttribute("aria-label",t.closeButtonAriaLabel),z(s)):U(s),e.className=I.popup,t.toast?(D([document.documentElement,document.body],I["toast-shown"]),D(e,I.toast)):D(e,I.modal),t.customClass&&D(e,t.customClass),re(t),ne(t),oe(t),ee(t),X(t.footer,u),!0===t.animation?N(e,I.noanimation):D(e,I.noanimation),t.showLoaderOnConfirm&&!t.preConfirm&&m("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request")}(T),Object.freeze(T),xe.innerParams.set(this,T),ce.timeout&&(ce.timeout.stop(),delete ce.timeout),clearTimeout(ce.restoreFocusTimeout);var j={popup:x(),container:C(),content:P(),actions:Z(),confirmButton:O(),cancelButton:F(),closeButton:Y(),validationError:k(I.validationerror),progressSteps:E()};xe.domCache.set(this,j);var q=this.constructor;return new Promise(function(t,n){var o=function(e){q.closePopup(T.onClose,T.onAfterClose),T.useRejections?t(e):t({value:e})},s=function(e){q.closePopup(T.onClose,T.onAfterClose),T.useRejections?n(e):t({dismiss:e})},u=function(e){q.closePopup(T.onClose,T.onAfterClose),n(e)};T.timer&&(ce.timeout=new Be(function(){s("timer"),delete ce.timeout},T.timer)),T.input&&setTimeout(function(){var e=L.getInput();e&&_(e)},0);for(var l=function(t){if(T.showLoaderOnConfirm&&q.showLoading(),T.preConfirm){L.resetValidationError();var e=Promise.resolve().then(function(){return T.preConfirm(t,T.extraParams)});T.expectRejections?e.then(function(e){return o(e||t)},function(e){L.hideLoading(),e&&L.showValidationError(e)}):e.then(function(e){K(j.validationError)||!1===e?L.hideLoading():o(e||t)},function(e){return u(e)})}else o(t)},e=function(e){var t=e.target,n=j.confirmButton,o=j.cancelButton,r=n&&(n===t||n.contains(t)),i=o&&(o===t||o.contains(t));switch(e.type){case"click":if(r&&q.isVisible())if(L.disableButtons(),T.input){var a=function(){var e=L.getInput();if(!e)return null;switch(T.input){case"checkbox":return e.checked?1:0;case"radio":return e.checked?e.value:null;case"file":return e.files.length?e.files[0]:null;default:return T.inputAutoTrim?e.value.trim():e.value}}();if(T.inputValidator){L.disableInput();var c=Promise.resolve().then(function(){return T.inputValidator(a,T.extraParams)});T.expectRejections?c.then(function(){L.enableButtons(),L.enableInput(),l(a)},function(e){L.enableButtons(),L.enableInput(),e&&L.showValidationError(e)}):c.then(function(e){L.enableButtons(),L.enableInput(),e?L.showValidationError(e):l(a)},function(e){return u(e)})}else l(a)}else l(!0);else i&&q.isVisible()&&(L.disableButtons(),s(q.DismissReason.cancel))}},r=j.popup.querySelectorAll("button"),i=0;i<r.length;i++)r[i].onclick=e,r[i].onmouseover=e,r[i].onmouseout=e,r[i].onmousedown=e;if(j.closeButton.onclick=function(){s(q.DismissReason.close)},T.toast)j.popup.onclick=function(){T.showConfirmButton||T.showCancelButton||T.showCloseButton||T.input||s(q.DismissReason.close)};else{var a=!1;j.popup.onmousedown=function(){j.container.onmouseup=function(e){j.container.onmouseup=void 0,e.target===j.container&&(a=!0)}},j.container.onmousedown=function(){j.popup.onmouseup=function(e){j.popup.onmouseup=void 0,(e.target===j.popup||j.popup.contains(e.target))&&(a=!0)}},j.container.onclick=function(e){a?a=!1:e.target===j.container&&M(T.allowOutsideClick)&&s(q.DismissReason.backdrop)}}T.reverseButtons?j.confirmButton.parentNode.insertBefore(j.cancelButton,j.confirmButton):j.confirmButton.parentNode.insertBefore(j.confirmButton,j.cancelButton);var c=function(e,t){for(var n=$(T.focusCancel),o=0;o<n.length;o++)return(e+=t)===n.length?e=0:-1===e&&(e=n.length-1),n[e].focus();j.popup.focus()};ce.keydownHandlerAdded&&(ce.keydownTarget.removeEventListener("keydown",ce.keydownHandler,{capture:ce.keydownListenerCapture}),ce.keydownHandlerAdded=!1),T.toast||(ce.keydownHandler=function(e){return function(e,t){if(t.stopKeydownPropagation&&e.stopPropagation(),"Enter"!==e.key||e.isComposing)if("Tab"===e.key){for(var n=e.target,o=$(t.focusCancel),r=-1,i=0;i<o.length;i++)if(n===o[i]){r=i;break}e.shiftKey?c(r,-1):c(r,1),e.stopPropagation(),e.preventDefault()}else-1!==["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Left","Right","Up","Down"].indexOf(e.key)?document.activeElement===j.confirmButton&&K(j.cancelButton)?j.cancelButton.focus():document.activeElement===j.cancelButton&&K(j.confirmButton)&&j.confirmButton.focus():"Escape"!==e.key&&"Esc"!==e.key||!0!==M(t.allowEscapeKey)||s(q.DismissReason.esc);else if(e.target&&L.getInput()&&e.target.outerHTML===L.getInput().outerHTML){if(-1!==["textarea","file"].indexOf(t.input))return;q.clickConfirm(),e.preventDefault()}}(e,T)},ce.keydownTarget=T.keydownListenerCapture?window:j.popup,ce.keydownListenerCapture=T.keydownListenerCapture,ce.keydownTarget.addEventListener("keydown",ce.keydownHandler,{capture:ce.keydownListenerCapture}),ce.keydownHandlerAdded=!0),L.enableButtons(),L.hideLoading(),L.resetValidationError(),T.toast&&(T.input||T.footer||T.showCloseButton)?D(document.body,I["toast-column"]):N(document.body,I["toast-column"]);for(var d,p,f=["input","file","range","select","radio","checkbox","textarea"],m=0;m<f.length;m++){var h=I[f[m]],g=W(j.content,h);if(d=L.getInput(f[m])){for(var b in d.attributes)if(d.attributes.hasOwnProperty(b)){var y=d.attributes[b].name;"type"!==y&&"value"!==y&&d.removeAttribute(y)}for(var v in T.inputAttributes)d.setAttribute(v,T.inputAttributes[v])}g.className=h,T.inputClass&&D(g,T.inputClass),U(g)}switch(T.input){case"text":case"email":case"password":case"number":case"tel":case"url":(d=W(j.content,I.input)).value=T.inputValue,d.placeholder=T.inputPlaceholder,d.type=T.input,z(d);break;case"file":(d=W(j.content,I.file)).placeholder=T.inputPlaceholder,d.type=T.input,z(d);break;case"range":var w=W(j.content,I.range),C=w.querySelector("input"),k=w.querySelector("output");C.value=T.inputValue,C.type=T.input,k.value=T.inputValue,z(w);break;case"select":var x=W(j.content,I.select);if(x.innerHTML="",T.inputPlaceholder){var A=document.createElement("option");A.innerHTML=T.inputPlaceholder,A.value="",A.disabled=!0,A.selected=!0,x.appendChild(A)}p=function(e){e.forEach(function(e){var t=e[0],n=e[1],o=document.createElement("option");o.value=t,o.innerHTML=n,T.inputValue.toString()===t.toString()&&(o.selected=!0),x.appendChild(o)}),z(x),x.focus()};break;case"radio":var B=W(j.content,I.radio);B.innerHTML="",p=function(e){e.forEach(function(e){var t=e[0],n=e[1],o=document.createElement("input"),r=document.createElement("label");o.type="radio",o.name=I.radio,o.value=t,T.inputValue.toString()===t.toString()&&(o.checked=!0);var i=document.createElement("span");i.innerHTML=n,i.className=I.label,r.appendChild(o),r.appendChild(i),B.appendChild(r)}),z(B);var t=B.querySelectorAll("input");t.length&&t[0].focus()};break;case"checkbox":var P=W(j.content,I.checkbox),S=L.getInput("checkbox");S.type="checkbox",S.value=1,S.id=I.checkbox,S.checked=Boolean(T.inputValue),P.querySelector("span").innerHTML=T.inputPlaceholder,z(P);break;case"textarea":var E=W(j.content,I.textarea);E.value=T.inputValue,E.placeholder=T.inputPlaceholder,z(E);break;case null:break;default:R('Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "'.concat(T.input,'"'))}if("select"===T.input||"radio"===T.input){var O=function(e){return p((t=e,n=[],"undefined"!=typeof Map&&t instanceof Map?t.forEach(function(e,t){n.push([t,e])}):Object.keys(t).forEach(function(e){n.push([e,t[e]])}),n));var t,n};H(T.inputOptions)?(q.showLoading(),T.inputOptions.then(function(e){L.hideLoading(),O(e)})):"object"===V(T.inputOptions)?O(T.inputOptions):R("Unexpected type of inputOptions! Expected object, Map or Promise, got ".concat(V(T.inputOptions)))}else-1!==["text","email","number","tel","textarea"].indexOf(T.input)&&H(T.inputValue)&&(q.showLoading(),U(d),T.inputValue.then(function(e){d.value="number"===T.input?parseFloat(e)||0:e+"",z(d),d.focus(),L.hideLoading()}).catch(function(e){R("Error in inputValue promise: "+e),d.value="",z(d),d.focus(),L.hideLoading()}));Se(T),T.toast||(M(T.allowEnterKey)?T.focusCancel&&K(j.cancelButton)?j.cancelButton.focus():T.focusConfirm&&K(j.confirmButton)?j.confirmButton.focus():c(-1,1):document.activeElement&&document.activeElement.blur()),j.container.scrollTop=0})}});function Le(){if("undefined"!=typeof window){"undefined"==typeof Promise&&R("This package requires a Promise library, please include a shim to enable it in this browser (See: https://github.com/sweetalert2/sweetalert2/wiki/Migration-from-SweetAlert-to-SweetAlert2#1-ie-support)");for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(0===t.length)return R("At least 1 argument is expected!"),!1;Ee=this;var o=Object.freeze(this.constructor.argsToParams(t));Object.defineProperties(this,{params:{value:o,writable:!1,enumerable:!0}});var r=this._main(this.params);xe.promise.set(this,r)}}Le.prototype.then=function(e,t){return xe.promise.get(this).then(e,t)},Le.prototype.catch=function(e){return xe.promise.get(this).catch(e)},Le.prototype.finally=function(e){return xe.promise.get(this).finally(e)},i(Le.prototype,Oe),i(Le,we),Object.keys(Oe).forEach(function(t){Le[t]=function(){var e;if(Ee)return(e=Ee)[t].apply(e,arguments)}}),Le.DismissReason=e,Le.noop=function(){},Le.version="7.26.27";var Te,je,qe=ue((Te=Le,je=function(e){function t(){return c(this,t),d(this,s(t).apply(this,arguments))}return a(t,Te),r(t,[{key:"_main",value:function(e){return p(s(t.prototype),"_main",this).call(this,i({},be,e))}}],[{key:"setDefaults",value:function(t){if(h(ge),!t||"object"!==V(t))throw new TypeError("SweetAlert2: The argument for setDefaults() is required and has to be a object");he(t),Object.keys(t).forEach(function(e){Te.isValidParameter(e)&&(be[e]=t[e])})}},{key:"resetDefaults",value:function(){h(ge),be={}}}]),t}(),"undefined"!=typeof window&&"object"===V(window._swalDefaults)&&je.setDefaults(window._swalDefaults),je));return qe.default=qe}),"undefined"!=typeof window&&window.Sweetalert2&&(window.swal=window.sweetAlert=window.Swal=window.SweetAlert=window.Sweetalert2);
"undefined"!=typeof document&&function(e,t){var n=e.createElement("style");if(e.getElementsByTagName("head")[0].appendChild(n),n.styleSheet)n.styleSheet.disabled||(n.styleSheet.cssText=t);else try{n.innerHTML=t}catch(e){n.innerText=t}}(document,"@-webkit-keyframes swal2-show{0%{-webkit-transform:scale(.7);transform:scale(.7)}45%{-webkit-transform:scale(1.05);transform:scale(1.05)}80%{-webkit-transform:scale(.95);transform:scale(.95)}100%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes swal2-show{0%{-webkit-transform:scale(.7);transform:scale(.7)}45%{-webkit-transform:scale(1.05);transform:scale(1.05)}80%{-webkit-transform:scale(.95);transform:scale(.95)}100%{-webkit-transform:scale(1);transform:scale(1)}}@-webkit-keyframes swal2-hide{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}100%{-webkit-transform:scale(.5);transform:scale(.5);opacity:0}}@keyframes swal2-hide{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}100%{-webkit-transform:scale(.5);transform:scale(.5);opacity:0}}@-webkit-keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.875em;width:1.5625em}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.875em;width:1.5625em}}@-webkit-keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@-webkit-keyframes swal2-rotate-success-circular-line{0%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}5%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}12%{-webkit-transform:rotate(-405deg);transform:rotate(-405deg)}100%{-webkit-transform:rotate(-405deg);transform:rotate(-405deg)}}@keyframes swal2-rotate-success-circular-line{0%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}5%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}12%{-webkit-transform:rotate(-405deg);transform:rotate(-405deg)}100%{-webkit-transform:rotate(-405deg);transform:rotate(-405deg)}}@-webkit-keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;-webkit-transform:scale(.4);transform:scale(.4);opacity:0}50%{margin-top:1.625em;-webkit-transform:scale(.4);transform:scale(.4);opacity:0}80%{margin-top:-.375em;-webkit-transform:scale(1.15);transform:scale(1.15)}100%{margin-top:0;-webkit-transform:scale(1);transform:scale(1);opacity:1}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;-webkit-transform:scale(.4);transform:scale(.4);opacity:0}50%{margin-top:1.625em;-webkit-transform:scale(.4);transform:scale(.4);opacity:0}80%{margin-top:-.375em;-webkit-transform:scale(1.15);transform:scale(1.15)}100%{margin-top:0;-webkit-transform:scale(1);transform:scale(1);opacity:1}}@-webkit-keyframes swal2-animate-error-icon{0%{-webkit-transform:rotateX(100deg);transform:rotateX(100deg);opacity:0}100%{-webkit-transform:rotateX(0);transform:rotateX(0);opacity:1}}@keyframes swal2-animate-error-icon{0%{-webkit-transform:rotateX(100deg);transform:rotateX(100deg);opacity:0}100%{-webkit-transform:rotateX(0);transform:rotateX(0);opacity:1}}body.swal2-toast-shown .swal2-container{position:fixed;background-color:transparent}body.swal2-toast-shown .swal2-container.swal2-shown{background-color:transparent}body.swal2-toast-shown .swal2-container.swal2-top{top:0;right:auto;bottom:auto;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{top:0;right:0;bottom:auto;left:auto}body.swal2-toast-shown .swal2-container.swal2-top-left,body.swal2-toast-shown .swal2-container.swal2-top-start{top:0;right:auto;bottom:auto;left:0}body.swal2-toast-shown .swal2-container.swal2-center-left,body.swal2-toast-shown .swal2-container.swal2-center-start{top:50%;right:auto;bottom:auto;left:0;-webkit-transform:translateY(-50%);transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{top:50%;right:auto;bottom:auto;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{top:50%;right:0;bottom:auto;left:auto;-webkit-transform:translateY(-50%);transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-left,body.swal2-toast-shown .swal2-container.swal2-bottom-start{top:auto;right:auto;bottom:0;left:0}body.swal2-toast-shown .swal2-container.swal2-bottom{top:auto;right:auto;bottom:0;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{top:auto;right:0;bottom:0;left:auto}body.swal2-toast-column .swal2-toast{flex-direction:column;align-items:stretch}body.swal2-toast-column .swal2-toast .swal2-actions{flex:1;align-self:stretch;height:2.2em;margin-top:.3125em}body.swal2-toast-column .swal2-toast .swal2-loading{justify-content:center}body.swal2-toast-column .swal2-toast .swal2-input{height:2em;margin:.3125em auto;font-size:1em}body.swal2-toast-column .swal2-toast .swal2-validationerror{font-size:1em}.swal2-popup.swal2-toast{flex-direction:row;align-items:center;width:auto;padding:.625em;box-shadow:0 0 .625em #d9d9d9;overflow-y:hidden}.swal2-popup.swal2-toast .swal2-header{flex-direction:row}.swal2-popup.swal2-toast .swal2-title{flex-grow:1;justify-content:flex-start;margin:0 .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{position:initial;width:.8em;height:.8em;line-height:.8}.swal2-popup.swal2-toast .swal2-content{justify-content:flex-start;font-size:1em}.swal2-popup.swal2-toast .swal2-icon{width:2em;min-width:2em;height:2em;margin:0}.swal2-popup.swal2-toast .swal2-icon-text{font-size:2em;font-weight:700;line-height:1em}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{height:auto;margin:0 .3125em}.swal2-popup.swal2-toast .swal2-styled{margin:0 .3125em;padding:.3125em .625em;font-size:1em}.swal2-popup.swal2-toast .swal2-styled:focus{box-shadow:0 0 0 .0625em #fff,0 0 0 .125em rgba(50,100,150,.4)}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:2em;height:2.8125em;-webkit-transform:rotate(45deg);transform:rotate(45deg);border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.25em;left:-.9375em;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-transform-origin:2em 2em;transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-.25em;left:.9375em;-webkit-transform-origin:0 2em;transform-origin:0 2em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast.swal2-show{-webkit-animation:showSweetToast .5s;animation:showSweetToast .5s}.swal2-popup.swal2-toast.swal2-hide{-webkit-animation:hideSweetToast .2s forwards;animation:hideSweetToast .2s forwards}.swal2-popup.swal2-toast .swal2-animate-success-icon .swal2-success-line-tip{-webkit-animation:animate-toast-success-tip .75s;animation:animate-toast-success-tip .75s}.swal2-popup.swal2-toast .swal2-animate-success-icon .swal2-success-line-long{-webkit-animation:animate-toast-success-long .75s;animation:animate-toast-success-long .75s}@-webkit-keyframes showSweetToast{0%{-webkit-transform:translateY(-.625em) rotateZ(2deg);transform:translateY(-.625em) rotateZ(2deg);opacity:0}33%{-webkit-transform:translateY(0) rotateZ(-2deg);transform:translateY(0) rotateZ(-2deg);opacity:.5}66%{-webkit-transform:translateY(.3125em) rotateZ(2deg);transform:translateY(.3125em) rotateZ(2deg);opacity:.7}100%{-webkit-transform:translateY(0) rotateZ(0);transform:translateY(0) rotateZ(0);opacity:1}}@keyframes showSweetToast{0%{-webkit-transform:translateY(-.625em) rotateZ(2deg);transform:translateY(-.625em) rotateZ(2deg);opacity:0}33%{-webkit-transform:translateY(0) rotateZ(-2deg);transform:translateY(0) rotateZ(-2deg);opacity:.5}66%{-webkit-transform:translateY(.3125em) rotateZ(2deg);transform:translateY(.3125em) rotateZ(2deg);opacity:.7}100%{-webkit-transform:translateY(0) rotateZ(0);transform:translateY(0) rotateZ(0);opacity:1}}@-webkit-keyframes hideSweetToast{0%{opacity:1}33%{opacity:.5}100%{-webkit-transform:rotateZ(1deg);transform:rotateZ(1deg);opacity:0}}@keyframes hideSweetToast{0%{opacity:1}33%{opacity:.5}100%{-webkit-transform:rotateZ(1deg);transform:rotateZ(1deg);opacity:0}}@-webkit-keyframes animate-toast-success-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes animate-toast-success-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@-webkit-keyframes animate-toast-success-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@keyframes animate-toast-success-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow-y:hidden}body.swal2-height-auto{height:auto!important}body.swal2-no-backdrop .swal2-shown{top:auto;right:auto;bottom:auto;left:auto;background-color:transparent}body.swal2-no-backdrop .swal2-shown>.swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}body.swal2-no-backdrop .swal2-shown.swal2-top{top:0;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}body.swal2-no-backdrop .swal2-shown.swal2-top-left,body.swal2-no-backdrop .swal2-shown.swal2-top-start{top:0;left:0}body.swal2-no-backdrop .swal2-shown.swal2-top-end,body.swal2-no-backdrop .swal2-shown.swal2-top-right{top:0;right:0}body.swal2-no-backdrop .swal2-shown.swal2-center{top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}body.swal2-no-backdrop .swal2-shown.swal2-center-left,body.swal2-no-backdrop .swal2-shown.swal2-center-start{top:50%;left:0;-webkit-transform:translateY(-50%);transform:translateY(-50%)}body.swal2-no-backdrop .swal2-shown.swal2-center-end,body.swal2-no-backdrop .swal2-shown.swal2-center-right{top:50%;right:0;-webkit-transform:translateY(-50%);transform:translateY(-50%)}body.swal2-no-backdrop .swal2-shown.swal2-bottom{bottom:0;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}body.swal2-no-backdrop .swal2-shown.swal2-bottom-left,body.swal2-no-backdrop .swal2-shown.swal2-bottom-start{bottom:0;left:0}body.swal2-no-backdrop .swal2-shown.swal2-bottom-end,body.swal2-no-backdrop .swal2-shown.swal2-bottom-right{right:0;bottom:0}.swal2-container{display:flex;position:fixed;top:0;right:0;bottom:0;left:0;flex-direction:row;align-items:center;justify-content:center;padding:10px;background-color:transparent;z-index:1060;overflow-x:hidden;-webkit-overflow-scrolling:touch}.swal2-container.swal2-top{align-items:flex-start}.swal2-container.swal2-top-left,.swal2-container.swal2-top-start{align-items:flex-start;justify-content:flex-start}.swal2-container.swal2-top-end,.swal2-container.swal2-top-right{align-items:flex-start;justify-content:flex-end}.swal2-container.swal2-center{align-items:center}.swal2-container.swal2-center-left,.swal2-container.swal2-center-start{align-items:center;justify-content:flex-start}.swal2-container.swal2-center-end,.swal2-container.swal2-center-right{align-items:center;justify-content:flex-end}.swal2-container.swal2-bottom{align-items:flex-end}.swal2-container.swal2-bottom-left,.swal2-container.swal2-bottom-start{align-items:flex-end;justify-content:flex-start}.swal2-container.swal2-bottom-end,.swal2-container.swal2-bottom-right{align-items:flex-end;justify-content:flex-end}.swal2-container.swal2-grow-fullscreen>.swal2-modal{display:flex!important;flex:1;align-self:stretch;justify-content:center}.swal2-container.swal2-grow-row>.swal2-modal{display:flex!important;flex:1;align-content:c���zAV���zAV��zAV@��zAVX��zAV��zAV�3��zAVainer.swal2-grow-column.swal2-bottom,.swal2-container.swal2-grow-column.swal2-center,.swal2-container.swal2-grow-column.swal2-top{align-items:center}.swal2-container.swal2-grow-column.swal2-bottom-left,.swal2-container.swal2-grow-column.swal2-bottom-start,.swal2-container.swal2-grow-column.swal2-center-left,.swal2-container.swal2-grow-column.swal2-center-start,.swal2-container.swal2-grow-column.swal2-top-left,.swal2-container.swal2-grow-column.swal2-top-start{align-items:flex-start}.swal2-container.swal2-grow-column.swal2-bottom-end,.swal2-container.swal2-grow-column.swal2-bottom-right,.swal2-container.swal2-grow-column.swal2-center-end,.swal2-container.swal2-grow-column.swal2-center-right,.swal2-container.swal2-grow-column.swal2-top-end,.swal2-container.swal2-grow-column.swal2-top-right{align-items:flex-end}.swal2-container.swal2-grow-column>.swal2-modal{display:flex!important;flex:1;align-content:center;justify-content:center}.swal2-container:not(.swal2-top):not(.swal2-top-start):not(.swal2-top-end):not(.swal2-top-left):not(.swal2-top-right):not(.swal2-center-start):not(.swal2-center-end):not(.swal2-center-left):not(.swal2-center-right):not(.swal2-bottom):not(.swal2-bottom-start):not(.swal2-bottom-end):not(.swal2-bottom-left):not(.swal2-bottom-right):not(.swal2-grow-fullscreen)>.swal2-modal{margin:auto}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.swal2-container .swal2-modal{margin:0!important}}.swal2-container.swal2-fade{transition:background-color .1s}.swal2-container.swal2-shown{background-color:rgba(0,0,0,.4)}.swal2-popup{display:none;position:relative;flex-direction:column;justify-content:center;width:32em;max-width:100%;padding:1.25em;border-radius:.3125em;background:#fff;font-family:inherit;font-size:1rem;box-sizing:border-box}.swal2-popup:focus{outline:0}.swal2-popup.swal2-loading{overflow-y:hidden}.swal2-popup .swal2-header{display:flex;flex-direction:column;align-items:center}.swal2-popup .swal2-title{display:block;position:relative;max-width:100%;margin:0 0 .4em;padding:0;color:#595959;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word}.swal2-popup .swal2-actions{align-items:center;justify-content:center;margin:1.25em auto 0;z-index:1}.swal2-popup .swal2-actions:not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}.swal2-popup .swal2-actions:not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0,0,0,.1),rgba(0,0,0,.1))}.swal2-popup .swal2-actions:not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0,0,0,.2),rgba(0,0,0,.2))}.swal2-popup .swal2-actions.swal2-loading .swal2-styled.swal2-confirm{width:2.5em;height:2.5em;margin:.46875em;padding:0;border:.25em solid transparent;border-radius:100%;border-color:transparent;background-color:transparent!important;color:transparent;cursor:default;box-sizing:border-box;-webkit-animation:swal2-rotate-loading 1.5s linear 0s infinite normal;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.swal2-popup .swal2-actions.swal2-loading .swal2-styled.swal2-cancel{margin-right:30px;margin-left:30px}.swal2-popup .swal2-actions.swal2-loading :not(.swal2-styled).swal2-confirm::after{display:inline-block;width:15px;height:15px;margin-left:5px;border:3px solid #999;border-radius:50%;border-right-color:transparent;box-shadow:1px 1px 1px #fff;content:'';-webkit-animation:swal2-rotate-loading 1.5s linear 0s infinite normal;animation:swal2-rotate-loading 1.5s linear 0s infinite normal}.swal2-popup .swal2-styled{margin:0 .3125em;padding:.625em 2em;font-weight:500;box-shadow:none}.swal2-popup .swal2-styled:not([disabled]){cursor:pointer}.swal2-popup .swal2-styled.swal2-confirm{border:0;border-radius:.25em;background:initial;background-color:#3085d6;color:#fff;font-size:1.0625em}.swal2-popup .swal2-styled.swal2-cancel{border:0;border-radius:.25em;background:initial;background-color:#aaa;color:#fff;font-size:1.0625em}.swal2-popup .swal2-styled:focus{outline:0;box-shadow:0 0 0 2px #fff,0 0 0 4px rgba(50,100,150,.4)}.swal2-popup .swal2-styled::-moz-focus-inner{border:0}.swal2-popup .swal2-footer{justify-content:center;margin:1.25em 0 0;padding:1em 0 0;border-top:1px solid #eee;color:#545454;font-size:1em}.swal2-popup .swal2-image{max-width:100%;margin:1.25em auto}.swal2-popup .swal2-close{position:absolute;top:0;right:0;justify-content:center;width:1.2em;height:1.2em;padding:0;transition:color .1s ease-out;border:none;border-radius:0;background:0 0;color:#ccc;font-family:serif;font-size:2.5em;line-height:1.2;cursor:pointer;overflow:hidden}.swal2-popup .swal2-close:hover{-webkit-transform:none;transform:none;color:#f27474}.swal2-popup>.swal2-checkbox,.swal2-popup>.swal2-file,.swal2-popup>.swal2-input,.swal2-popup>.swal2-radio,.swal2-popup>.swal2-select,.swal2-popup>.swal2-textarea{display:none}.swal2-popup .swal2-content{justify-content:center;margin:0;padding:0;color:#545454;font-size:1.125em;font-weight:300;line-height:normal;z-index:1;word-wrap:break-word}.swal2-popup #swal2-content{text-align:center}.swal2-popup .swal2-checkbox,.swal2-popup .swal2-file,.swal2-popup .swal2-input,.swal2-popup .swal2-radio,.swal2-popup .swal2-select,.swal2-popup .swal2-textarea{margin:1em auto}.swal2-popup .swal2-file,.swal2-popup .swal2-input,.swal2-popup .swal2-textarea{width:100%;transition:border-color .3s,box-shadow .3s;border:1px solid #d9d9d9;border-radius:.1875em;font-size:1.125em;box-shadow:inset 0 1px 1px rgba(0,0,0,.06);box-sizing:border-box}.swal2-popup .swal2-file.swal2-inputerror,.swal2-popup .swal2-input.swal2-inputerror,.swal2-popup .swal2-textarea.swal2-inputerror{border-color:#f27474!important;box-shadow:0 0 2px #f27474!important}.swal2-popup .swal2-file:focus,.swal2-popup .swal2-input:focus,.swal2-popup .swal2-textarea:focus{border:1px solid #b4dbed;outline:0;box-shadow:0 0 3px #c4e6f5}.swal2-popup .swal2-file::-webkit-input-placeholder,.swal2-popup .swal2-input::-webkit-input-placeholder,.swal2-popup .swal2-textarea::-webkit-input-placeholder{color:#ccc}.swal2-popup .swal2-file:-ms-input-placeholder,.swal2-popup .swal2-input:-ms-input-placeholder,.swal2-popup .swal2-textarea:-ms-input-placeholder{color:#ccc}.swal2-popup .swal2-file::-ms-input-placeholder,.swal2-popup .swal2-input::-ms-input-placeholder,.swal2-popup .swal2-textarea::-ms-input-placeholder{color:#ccc}.swal2-popup .swal2-file::placeholder,.swal2-popup .swal2-input::placeholder,.swal2-popup .swal2-textarea::placeholder{color:#ccc}.swal2-popup .swal2-range input{width:80%}.swal2-popup .swal2-range output{width:20%;font-weight:600;text-align:center}.swal2-popup .swal2-range input,.swal2-popup .swal2-range output{height:2.625em;margin:1em auto;padding:0;font-size:1.125em;line-height:2.625em}.swal2-popup .swal2-input{height:2.625em;padding:0 .75em}.swal2-popup .swal2-input[type=number]{max-width:10em}.swal2-popup .swal2-file{font-size:1.125em}.swal2-popup .swal2-textarea{height:6.75em;padding:.75em}.swal2-popup .swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;color:#545454;font-size:1.125em}.swal2-popup .swal2-checkbox,.swal2-popup .swal2-radio{align-items:center;justify-content:center}.swal2-popup .swal2-checkbox label,.swal2-popup .swal2-radio label{margin:0 .6em;font-size:1.125em}.swal2-popup .swal2-checkbox input,.swal2-popup .swal2-radio input{margin:0 .4em}.swal2-popup .swal2-validationerror{display:none;align-items:center;justify-content:center;padding:.625em;background:#f0f0f0;color:#666;font-size:1em;font-weight:300;overflow:hidden}.swal2-popup .swal2-validationerror::before{display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center;content:'!';zoom:normal}@supports (-ms-accelerator:true){.swal2-range input{width:100%!important}.swal2-range output{display:none}}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.swal2-range input{width:100%!important}.swal2-range output{display:none}}@-moz-document url-prefix(){.swal2-close:focus{outline:2px solid rgba(50,100,150,.4)}}.swal2-icon{position:relative;justify-content:center;width:5em;height:5em;margin:1.25em auto 1.875em;border:.25em solid transparent;border-radius:50%;line-height:5em;cursor:default;box-sizing:content-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;zoom:normal}.swal2-icon-text{font-size:3.75em}.swal2-icon.swal2-error{border-color:#f27474}.swal2-icon.swal2-error .swal2-x-mark{position:relative;flex-grow:1}.swal2-icon.swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.swal2-icon.swal2-warning{border-color:#facea8;color:#f8bb86}.swal2-icon.swal2-info{border-color:#9de0f6;color:#3fc3ee}.swal2-icon.swal2-question{border-color:#c9dae1;color:#87adbd}.swal2-icon.swal2-success{border-color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;-webkit-transform:rotate(45deg);transform:rotate(45deg);border-radius:50%}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.4375em;left:-2.0635em;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-transform-origin:3.75em 3.75em;transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=right]{top:-.6875em;left:1.875em;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-transform-origin:0 3.75em;transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}.swal2-icon.swal2-success .swal2-success-ring{position:absolute;top:-.25em;left:-.25em;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%;z-index:2;box-sizing:content-box}.swal2-icon.swal2-success .swal2-success-fix{position:absolute;top:.5em;left:1.625em;width:.4375em;height:5.625em;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);z-index:1}.swal2-icon.swal2-success [class^=swal2-success-line]{display:block;position:absolute;height:.3125em;border-radius:.125em;background-color:#a5dc86;z-index:2}.swal2-icon.swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.875em;width:1.5625em;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.swal2-icon.swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.swal2-progresssteps{align-items:center;margin:0 0 1.25em;padding:0;font-weight:600}.swal2-progresssteps li{display:inline-block;position:relative}.swal2-progresssteps .swal2-progresscircle{width:2em;height:2em;border-radius:2em;background:#3085d6;color:#fff;line-height:2em;text-align:center;z-index:20}.swal2-progresssteps .swal2-progresscircle:first-child{margin-left:0}.swal2-progresssteps .swal2-progresscircle:last-child{margin-right:0}.swal2-progresssteps .swal2-progresscircle.swal2-activeprogressstep{background:#3085d6}.swal2-progresssteps .swal2-progresscircle.swal2-activeprogressstep~.swal2-progresscircle{background:#add8e6}.swal2-progresssteps .swal2-progresscircle.swal2-activeprogressstep~.swal2-progressline{background:#add8e6}.swal2-progresssteps .swal2-progressline{width:2.5em;height:.4em;margin:0 -1px;background:#3085d6;z-index:10}[class^=swal2]{-webkit-tap-highlight-color:transparent}.swal2-show{-webkit-animation:swal2-show .3s;animation:swal2-show .3s}.swal2-show.swal2-noanimation{-webkit-animation:none;animation:none}.swal2-hide{-webkit-animation:swal2-hide .15s forwards;animation:swal2-hide .15s forwards}.swal2-hide.swal2-noanimation{-webkit-animation:none;animation:none}[dir=rtl] .swal2-close{right:auto;left:0}.swal2-animate-success-icon .swal2-success-line-tip{-webkit-animation:swal2-animate-success-line-tip .75s;animation:swal2-animate-success-line-tip .75s}.swal2-animate-success-icon .swal2-success-line-long{-webkit-animation:swal2-animate-success-line-long .75s;animation:swal2-animate-success-line-long .75s}.swal2-animate-success-icon .swal2-success-circular-line-right{-webkit-animation:swal2-rotate-success-circular-line 4.25s ease-in;animation:swal2-rotate-success-circular-line 4.25s ease-in}.swal2-animate-error-icon{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-animate-error-icon .swal2-x-mark{-webkit-animation:swal2-animate-error-x-mark .5s;animation:swal2-animate-error-x-mark .5s}@-webkit-keyframes swal2-rotate-loading{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes swal2-rotate-loading{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}");
\ No newline at end of file
jQuery(function($){
/*
* Select/Upload image(s) event
*/
$('body').on('click', '.misha_upload_image_button', function(e){
e.preventDefault();
var button = $(this),
custom_uploader = wp.media({
title: 'Insert image',
library : {
// uncomment the next line if you want to attach image to the current post
// uploadedTo : wp.media.view.settings.post.id,
type : 'image'
},
button: {
text: 'Use this image' // button label text
},
multiple: false // for multiple image selection set to true
}).on('select', function() { // it also has "open" and "close" events
var attachment = custom_uploader.state().get('selection').first().toJSON();
$(button).removeClass('button').html('<img class="true_pre_image" src="' + attachment.url + '" style="max-width:100px;height:100px;display:block;" />').next().val(attachment.id).next().show();
jQuery(".hidden_img").val(attachment.url);
/* if you sen multiple to true, here is some code for getting the image IDs
var attachments = frame.state().get('selection'),
attachment_ids = new Array(),
i = 0;
attachments.each(function(attachment) {
attachment_ids[i] = attachment['id'];
console.log( attachment );
i++;
});
*/
})
.open();
});
$('body').on('click', '.misha_upload_image_button_failer', function(e){
e.preventDefault();
var button = $(this),
custom_uploader = wp.media({
title: 'Insert image',
library : {
// uncomment the next line if you want to attach image to the current post
// uploadedTo : wp.media.view.settings.post.id,
type : 'image'
},
button: {
text: 'Use this image' // button label text
},
multiple: false // for multiple image selection set to true
}).on('select', function() { // it also has "open" and "close" events
var attachment = custom_uploader.state().get('selection').first().toJSON();
$(button).removeClass('button').html('<img class="true_pre_image" src="' + attachment.url + '" style="max-width:100px;height:100px;display:block;" />').next().val(attachment.id).next().show();
jQuery(".failure_hidden_img").val(attachment.url);
/* if you sen multiple to true, here is some code for getting the image IDs
var attachments = frame.state().get('selection'),
attachment_ids = new Array(),
i = 0;
attachments.each(function(attachment) {
attachment_ids[i] = attachment['id'];
console.log( attachment );
i++;
});
*/
})
.open();
});
/*
* Remove image event
*/
$('body').on('click', '.misha_remove_image_button', function(){
$(this).hide().prev().val('').prev().addClass('button').html('Upload image');
return false;
});
});
<?php
if (!defined('ABSPATH'))
exit;
if (!class_exists('CF7POPUP_menu')) {
class CF7POPUP_menu {
protected static $instance;
function CF7POPUP_wpcf7_editor_panels( $panels ) {
$panels_popup = array(
'popup-panel' => array(
'title' => __( 'Popup Setting', 'contact-form-7' ),
'callback' => array( $this, 'CF7POPUP_wpcf7_editor_panel_popup'),
),
);
$panels = array_merge($panels,$panels_popup);
return $panels;
}
function CF7POPUP_wpcf7_editor_panel_popup() {
$formid = $_REQUEST['post'];
// POPUP ADMINPANEL FORMAT
?>
<h2>Success Message Settings</h2>
<fieldset>
<legend>You can Enable/Disable this Form popup and also you can other setting related to popup.</legend>
<p>
<label>
<input type="checkbox" name="enabled_popup_val" value="popupenable" <?php if (isset($_REQUEST['post'])){if (get_post_meta( $formid, 'enabled-popup', true ) == $formid) {echo ' checked="checked"';}} ?>>Enable/Disable this Form popup
</label>
</p>
<table class="form-table tbl_main">
<tbody>
<tr>
<th scope="row">
<label>Popup Text</label>
</th>
<td>
<input type="text" name="popup_message" class="regular-text" id="popup_message" value="<?php echo get_post_meta( $formid, 'popup_message', true );?>">
</td>
</tr>
<tr>
<th scope="row">
<label>Popup Width</label>
</th>
<td>
<input type="text" name="m_popup_width" class="small-text" value="<?php echo get_post_meta( $formid, 'm_popup_width', true );?>">
<span class="description">Value must be like: 500px / auto / 50%</span>
</td>
</tr>
<tr>
<th scope="row">
<label>Popup Border Radius</label>
</th>
<td>
<input type="number" name="m_popup_radius" class="small-text" value="<?php echo get_post_meta( $formid, 'm_popup_radius', true );?>">
</td>
</tr>
<tr>
<th scope="row">
<label>Auto Hide after</label>
</th>
<td>
<input type="text" name="m_popup_duration" class="medium-text" value="<?php echo get_post_meta( $formid, 'm_popup_duration', true );?>">
<span class="description">Duration in milliseconds eg. 5000 (Popup will hide after 5 Seconds).</span>
</td>
</tr>
<tr>
<th scope="row">
<label>Select Template</label>
</th>
<td>
<?php
if(empty(get_post_meta( $formid, 'popup_templet', true ))){
$templet_sel = 'templet1';
} else {
$templet_sel = get_post_meta( $formid, 'popup_templet', true );
}
?>
<input type="radio" id="t1" name="popup_templet" value="templet1" <?php if($templet_sel == 'templet1'){echo "checked";} ?>><label for="t1">Template 1</label>
<input type="radio" id="t2" name="popup_templet" value="templet2" <?php if($templet_sel == 'templet2'){echo "checked";}?>><label for="t2">Template 2</label>
<input type="radio" id="t3" name="popup_templet" value="templet3" <?php if($templet_sel == 'templet3'){echo "checked";}?>><label for="t3">Template 3</label>
<input type="radio" id="t4" name="popup_templet" value="templet4" <?php if($templet_sel == 'templet4'){echo "checked";}?>><label for="t4">Template 4</label>
<input type="radio" id="t5" name="popup_templet" value="templet5" <?php if($templet_sel == 'templet5'){echo "checked";}?>><label for="t5">Template 5</label>
<input type="radio" id="ct" name="popup_templet" value="custom_templet" <?php if($templet_sel == 'custom_templet'){echo "checked";}?>><label for="ct">Custom Template (<a href="https://www.xeeshop.com/#pricing" target="_blank">Go Pro</a>)</label>
</td>
</tr>
<tr class="custom_templet_1">
<th scope="row" colspan="2">
<label>Template 1 :</label>
</th>
</tr>
<tr class="custom_templet_1">
<th scope="row">
</th>
<td>
<img src="<?php echo plugins_url( 'popup-message-for-contact-form-7-pro/images/theme_1.png'); ?>"/>
</td>
</tr>
<tr class="custom_templet_2">
<th scope="row" colspan="2">
<label>Template 2 :</label>
</th>
</tr>
<tr class="custom_templet_2">
<th scope="row">
</th>
<td>
<img src="<?php echo plugins_url( 'popup-message-for-contact-form-7-pro/images/theme_2.png'); ?>"/>
</td>
</tr>
<tr class="custom_templet_3">
<th scope="row" colspan="2">
<label>Template 3 :</label>
</th>
</tr>
<tr class="custom_templet_3">
<th scope="row">
</th>
<td>
<img src="<?php echo plugins_url( 'popup-message-for-contact-form-7-pro/images/theme_3.png'); ?>"/>
</td>
</tr>
<tr class="custom_templet_4">
<th scope="row" colspan="2">
<label>Template 4 :</label>
</th>
</tr>
<tr class="custom_templet_4">
<th scope="row">
</th>
<td>
<img src="<?php echo plugins_url( 'popup-message-for-contact-form-7-pro/images/theme_4.png'); ?>"/>
</td>
</tr>
<tr class="custom_templet_5">
<th scope="row" colspan="2">
<label>Template 5 :</label>
</th>
</tr>
<tr class="custom_templet_5">
<th scope="row">
</th>
<td>
<img src="<?php echo plugins_url( 'popup-message-for-contact-form-7-pro/images/theme_5.png'); ?>"/>
</td>
</tr>
<tr class="tr_custom_templet failure_popup">
<th scope="row" colspan="2">
<label>Select Popup Background :</label>
</th>
</tr>
<tr class="tr_custom_templet failure_popup">
<th scope="row">
</th>
<td>
<table class="tbl_child">
<tr>
<td>
<label>
<input type="radio" name="popup_background_option" value="bg_color" <?php echo "checked"; ?>>Background Color
</label>
</td>
<td>
<input class="jscolor" name="popup_background_color" value="<?php echo get_post_meta( $formid, 'popup_background_color', true );?>">
</td>
</tr>
<tr>
<td>
<label>
<input type="radio" name="popup_background_option" value="image">Background Image
</label>
</td>
<td>
<?php
echo $this->CF7POPUP_image_uploader_field( 'image1', get_post_meta($formid, 'hidden_img_count', true ) );
?>
</td>
<td>
<?php if(!empty(get_post_meta($formid, 'popup_image_color', true ))){ ?>
<img src="<?php echo get_post_meta($formid, 'popup_image_color', true ); ?>" width="50px" height="50px">
<?php } ?>
<input type="hidden" name="popup_image_color" class="hidden_img" >
</td>
</tr>
<tr>
<td>
<label>
<input type="radio" name="popup_background_option" value="gradient_color">Gradient Color
</label>
</td>
<td>
<input class="jscolor" name="popup_gradient_color" value="">
</td>
<td>
<input class="jscolor gra_box" name="popup_gradient_color1" value="">
</td>
</tr>
<tr>
<td>
<label>Popup Text Color</label>
</td>
<td>
<input class="jscolor" name="popup_text_color" id="popup_text_color" value="">
</td>
</tr>
<tr>
<td>
<label>Button background color</label>
</td>
<td>
<input class="jscolor" name="popup_button_background_color" value="">
</td>
</tr>
</table>
</td>
</tr>
<tr class="failure_popup">
<th scope="row">
<label>Button Text</label>
</th>
<td>
<input type="text" name="popup_button_text" class="regular-text" value="ok">
</td>
</tr>
<tr><td><a href="https://www.xeeshop.com/#pricing" target="_blank">Go Pro</a></td></tr>
</tbody>
</table>
</fieldset>
<h2>Failure message Settings <a href="https://www.xeeshop.com/#pricing" target="_blank">Go Pro</a></h2>
<fieldset class="failure_popup">
<legend>You can Enable/Disable this Failure popup and also you can you other setting related to Failure popup.</legend>
<p>
<label>
<input type="checkbox" name="enabled_failure_popup_val" value="failurepopupenable" <?php if (isset($_REQUEST['post'])){if (get_post_meta( $formid, 'enabled-popup-failure', true ) == $formid) {echo ' checked="checked"';}} ?>>Enable/Disable this Failure popup
</label>
</p>
<table class="form-table">
<tbody>
<tr>
<th scope="row">
<label>Failure Popup Width</label>
</th>
<td>
<input type="text" name="failure_popup_width" class="small-text" value="<?php echo get_post_meta( $formid, 'failure_popup_width', true );?>">
<span class="description">Value must be like: 500px / auto / 50%</span>
</td>
</tr>
<tr>
<th scope="row">
<label>failure Popup Border Radius</label>
</th>
<td>
<input type="number" name="failure_popup_radius" class="small-text" value="<?php echo get_post_meta( $formid, 'failure_popup_radius', true );?>">
</td>
</tr>
<tr>
<th scope="row">
<label>Auto Hide after(Failure)</label>
</th>
<td>
<input type="text" name="failure_popup_duration" class="medium-text" value="<?php echo get_post_meta( $formid, 'failure_popup_duration', true );?>">
<span class="description">Duration in milliseconds eg. 5000 (Popup will hide after 5 Seconds).</span>
</td>
</tr>
<tr>
<th scope="row">
<label>Select Template</label>
</th>
<td>
<?php
if(empty(get_post_meta( $formid, 'failure_popup_templet', true ))){
$templet_sel = 'templet1';
} else {
$templet_sel = get_post_meta( $formid, 'failure_popup_templet', true );
}
?>
<input type="radio" id="fpt1" name="failure_popup_templet" value="templet1" <?php if($templet_sel == 'templet1'){echo "checked";} ?>><label for="fpt1">Template 1</label>
<input type="radio" id="fpt2" name="failure_popup_templet" value="templet2" <?php if($templet_sel == 'templet2'){echo "checked";}?>><label for="fpt2">Template 2</label>
<input type="radio" id="fpt3" name="failure_popup_templet" value="templet3" <?php if($templet_sel == 'templet3'){echo "checked";}?>><label for="fpt3">Template 3</label>
<input type="radio" id="fpt4" name="failure_popup_templet" value="templet4" <?php if($templet_sel == 'templet4'){echo "checked";}?>><label for="fpt4">Template 4</label>
<input type="radio" id="fpt5" name="failure_popup_templet" value="templet5" <?php if($templet_sel == 'templet5'){echo "checked";}?>><label for="fpt5">Template 5</label>
<input type="radio" id="fptct" name="failure_popup_templet" value="custom_templet" <?php if($templet_sel == 'custom_templet'){echo "checked";}?>><label for="fptct">Custom Template</label>
</td>
</tr>
<tr class="failuretr_custom_templet_1">
<th scope="row" colspan="2">
<label>Template 1 :</label>
</th>
</tr>
<tr class="failuretr_custom_templet_1">
<th scope="row">
</th>
<td>
<img src="<?php echo plugins_url( 'popup-message-for-contact-form-7-pro/images/f_theme_1.png'); ?>"/>
</td>
</tr>
<tr class="failuretr_custom_templet_2">
<th scope="row" colspan="2">
<label>Template 2 :</label>
</th>
</tr>
<tr class="failuretr_custom_templet_2">
<th scope="row">
</th>
<td>
<img src="<?php echo plugins_url( 'popup-message-for-contact-form-7-pro/images/f_theme_2.png'); ?>"/>
</td>
</tr>
<tr class="failuretr_custom_templet_3">
<th scope="row" colspan="2">
<label>Template 3 :</label>
</th>
</tr>
<tr class="failuretr_custom_templet_3">
<th scope="row">
</th>
<td>
<img src="<?php echo plugins_url( 'popup-message-for-contact-form-7-pro/images/f_theme_3.png'); ?>"/>
</td>
</tr>
<tr class="failuretr_custom_templet_4">
<th scope="row" colspan="2">
<label>Template 4 :</label>
</th>
</tr>
<tr class="failuretr_custom_templet_4">
<th scope="row">
</th>
<td>
<img src="<?php echo plugins_url( 'popup-message-for-contact-form-7-pro/images/f_theme_4.png'); ?>"/>
</td>
</tr>
<tr class="failuretr_custom_templet_5">
<th scope="row" colspan="2">
<label>Template 5 :</label>
</th>
</tr>
<tr class="failuretr_custom_templet_5">
<th scope="row">
</th>
<td>
<img src="<?php echo plugins_url( 'popup-message-for-contact-form-7-pro/images/f_theme_5.png'); ?>"/>
</td>
</tr>
<tr class="failuretr_custom_templet">
<th scope="row" colspan="2">
<label>Select Popup Background :</label>
</th>
</tr>
<tr class="failuretr_custom_templet">
<th scope="row">
</th>
<td>
<table class="tbl_child">
<tr>
<td>
<?php
if(empty(get_post_meta( $formid, 'failure_popup_background_option', true ))){
$val = 'bg_color';
} else {
$val = get_post_meta( $formid, 'failure_popup_background_option', true );
}
?>
<label>
<input type="radio" name="failure_popup_background_option" value="bg_color" <?php if($val == 'bg_color'){echo "checked";}?>>Background Color
</label>
</td>
<td>
<input class="jscolor" name="failure_popup_background_color" value="<?php echo get_post_meta( $formid, 'failure_popup_background_color', true );?>">
</td>
</tr>
<tr>
<td>
<label>
<input type="radio" name="failure_popup_background_option" value="image" <?php if($val == 'image'){echo "checked";}?>>Background Image
</label>
</td>
<td>
<?php
echo $this->CF7POPUP_image_uploader_field_failer ( 'image_failure', get_post_meta($formid, 'failure_hidden_img_count', true ) );
?>
</td>
<td>
<?php if(!empty(get_post_meta($formid, 'failure_popup_image_color', true ))){ ?>
<img src="<?php echo get_post_meta($formid, 'failure_popup_image_color', true ); ?>" width="50px" height="50px">
<?php } ?>
<input type="hidden" name="failure_popup_image_color" class="failure_hidden_img" >
</td>
</tr>
<tr>
<td>
<label>
<input type="radio" name="failure_popup_background_option" value="gradient_color" <?php if($val == 'gradient_color'){echo "checked";}?>>Gradient Color
</label>
</td>
<td>
<input class="jscolor" name="failure_popup_gradient_color" value="<?php echo get_post_meta( $formid, 'failure_popup_gradient_color', true );?>">
</td>
<td>
<input class="jscolor gra_box" name="failure_popup_gradient_color1" value="<?php echo get_post_meta( $formid, 'failure_popup_gradient_color1', true );?>">
</td>
</tr>
<tr>
<td>
<label>Failure Popup Text Color</label>
</td>
<td>
<input class="jscolor" name="failure_popup_text_color" id="failure_popup_text_color" value="<?php echo get_post_meta( $formid, 'failure_popup_text_color', true );?>">
</td>
</tr>
<tr>
<td>
<label>Button background color</label>
</td>
<td>
<input class="jscolor" name="failure_popup_button_background_color" value="<?php echo get_post_meta( $formid, 'failure_popup_button_background_color', true );?>">
</td>
</tr>
</table>
</td>
</tr>
<tr >
<th scope="row">
<label>Failure Button Text</label>
</th>
<td>
<input type="text" name="failure_popup_button_text" class="regular-text" value="<?php echo get_post_meta( $formid, 'failure_popup_button_text', true );?>">
</td>
</tr>
</tbody>
</table>
</fieldset>
<?php
}
function CF7POPUP_wpcf7_admin_script() {
?>
<script type="text/javascript">
jQuery( document ).ready(function() {
var radioValue = jQuery("input[name='popup_templet']:checked").val();
if(radioValue == "templet1"){
jQuery('.custom_templet_1').css("display", "table-row");
}
if(radioValue == "templet2"){
jQuery('.custom_templet_2').css("display", "table-row");
}
if(radioValue == "templet3"){
jQuery('.custom_templet_3').css("display", "table-row");
}
if(radioValue == "templet4"){
jQuery('.custom_templet_4').css("display", "table-row");
}
if(radioValue == "templet5"){
jQuery('.custom_templet_5').css("display", "table-row");
}
if(radioValue == "custom_templet"){
jQuery('.tr_custom_templet').css("display", "table-row");
}
var f_radioValue = jQuery("input[name='failure_popup_templet']:checked").val();
if(f_radioValue == "templet1"){
jQuery('.failuretr_custom_templet_1').css("display", "table-row");
}
if(f_radioValue == "templet2"){
jQuery('.failuretr_custom_templet_2').css("display", "table-row");
}
if(f_radioValue == "templet3"){
jQuery('.failuretr_custom_templet_3').css("display", "table-row");
}
if(f_radioValue == "templet4"){
jQuery('.failuretr_custom_templet_4').css("display", "table-row");
}
if(f_radioValue == "templet5"){
jQuery('.failuretr_custom_templet_5').css("display", "table-row");
}
if(f_radioValue == "custom_templet"){
jQuery('.failuretr_custom_templet').css("display", "table-row");
}
jQuery("input[name='popup_templet']").click(function(){
var radioValue = jQuery("input[name='popup_templet']:checked").val();
if(radioValue == "custom_templet"){
jQuery('.tr_custom_templet').css("display", "table-row");
}else{
jQuery('.tr_custom_templet').css("display", "none");
}
if(radioValue == "templet1"){
jQuery('.custom_templet_1').css("display", "table-row");
}else{
jQuery('.custom_templet_1').css("display", "none");
}
if(radioValue == "templet2"){
jQuery('.custom_templet_2').css("display", "table-row");
}else{
jQuery('.custom_templet_2').css("display", "none");
}
if(radioValue == "templet3"){
jQuery('.custom_templet_3').css("display", "table-row");
}else{
jQuery('.custom_templet_3').css("display", "none");
}
if(radioValue == "templet4"){
jQuery('.custom_templet_4').css("display", "table-row");
}else{
jQuery('.custom_templet_4').css("display", "none");
}
if(radioValue == "templet5"){
jQuery('.custom_templet_5').css("display", "table-row");
}else{
jQuery('.custom_templet_5').css("display", "none");
}
});
jQuery("input[name='failure_popup_templet']").click(function(){
var radioValue = jQuery("input[name='failure_popup_templet']:checked").val();
if(radioValue == "custom_templet"){
jQuery('.failuretr_custom_templet').css("display", "table-row");
}else{
jQuery('.failuretr_custom_templet').css("display", "none");
}
if(radioValue == "templet1"){
jQuery('.failuretr_custom_templet_1').css("display", "table-row");
}else{
jQuery('.failuretr_custom_templet_1').css("display", "none");
}
if(radioValue == "templet2"){
jQuery('.failuretr_custom_templet_2').css("display", "table-row");
}else{
jQuery('.failuretr_custom_templet_2').css("display", "none");
}
if(radioValue == "templet3"){
jQuery('.failuretr_custom_templet_3').css("display", "table-row");
}else{
jQuery('.failuretr_custom_templet_3').css("display", "none");
}
if(radioValue == "templet4"){
jQuery('.failuretr_custom_templet_4').css("display", "table-row");
}else{
jQuery('.failuretr_custom_templet_4').css("display", "none");
}
if(radioValue == "templet5"){
jQuery('.failuretr_custom_templet_5').css("display", "table-row");
}else{
jQuery('.failuretr_custom_templet_5').css("display", "none");
}
});
});
</script>
<style type="text/css">
.form-group.smartcat-uploader {
display: inline-block;
}
table.tbl_child td {
padding: 0px 6px;
}
.form-table td {
padding: 0px;
}
.tr_custom_templet,.failuretr_custom_templet,.custom_templet_1,.custom_templet_2,.custom_templet_3,.custom_templet_4,.custom_templet_5,.failuretr_custom_templet_1,.failuretr_custom_templet_2,.failuretr_custom_templet_3,.failuretr_custom_templet_4,.failuretr_custom_templet_5{
display: none;
}
.failure_popup {
pointer-events: none;
opacity: 0.7;
}
</style>
<?php
}
function CF7POPUP_image_uploader_field( $name, $value = '') {
$image = ' button">Upload image';
$image_size = 'full'; // it would be better to use thumbnail size here (150x150 or so)
$display = 'none'; // display state ot the "Remove image" button
if( $image_attributes = wp_get_attachment_image_src( $value, $image_size ) ) {
// $image_attributes[0] - image URL
// $image_attributes[1] - image width
// $image_attributes[2] - image height
$image = '"><img src="' . $image_attributes[0] . '" style="max-width:95%;display:block;" />';
$display = 'inline-block';
}
return '
<div>
<a href="#" class="misha_upload_image_button' . $image . '</a>
<input type="hidden" name="' . $name . '" id="' . $name . '" value="' . $value . '" />
</div>';
}
function CF7POPUP_image_uploader_field_failer( $name, $value = '') {
$image = ' button">Upload image';
$image_size = 'full'; // it would be better to use thumbnail size here (150x150 or so)
$display = 'none'; // display state ot the "Remove image" button
if( $image_attributes = wp_get_attachment_image_src( $value, $image_size ) ) {
// $image_attributes[0] - image URL
// $image_attributes[1] - image width
// $image_attributes[2] - image height
$image = '"><img src="' . $image_attributes[0] . '" style="max-width:95%;display:block;" />';
$display = 'inline-block';
}
return '
<div>
<a href="#" class="misha_upload_image_button_failer' . $image . '</a>
<input type="hidden" name="' . $name . '" id="' . $name . '" value="' . $value . '" />
</div>';
}
function init() {
add_filter( 'wpcf7_editor_panels', array( $this, 'CF7POPUP_wpcf7_editor_panels'), 10, 1 );
add_action('admin_footer', array( $this, 'CF7POPUP_wpcf7_admin_script'));
}
public static function instance() {
if (!isset(self::$instance)) {
self::$instance = new self();
self::$instance->init();
}
return self::$instance;
}
}
CF7POPUP_menu::instance();
}
<?php
/**
* Plugin Name: Popup Message for Contact Form 7
* Description: This plugin will show the popup when Contact Form 7 has been submitted.
* Version: 2.0
* Author: Ocean Infotech
* Author URI: Author's website
*/
if (!defined('ABSPATH')) {
die('-1');
}
if (!defined('CF7POPUP_PLUGIN_NAME')) {
define('CF7POPUP_PLUGIN_NAME', 'Contact Form 7 Popup');
}
if (!defined('CF7POPUP_PLUGIN_VERSION')) {
define('CF7POPUP_PLUGIN_VERSION', '1.0.0');
}
if (!defined('CF7POPUP_PLUGIN_FILE')) {
define('CF7POPUP_PLUGIN_FILE', __FILE__);
}
if (!defined('CF7POPUP_PLUGIN_DIR')) {
define('CF7POPUP_PLUGIN_DIR',plugins_url('', __FILE__));
}
if (!defined('CF7POPUP_DOMAIN')) {
define('CF7POPUP_DOMAIN', 'cf7popup');
}
if (!class_exists('CF7POPUPMAIN')) {
class CF7POPUPMAIN {
protected static $CF7POPUPMAIN_instance;
//Load all includes files
function includes() {
include_once('popup_panel.php');
include_once('save_popup_setting.php');
include_once('submit_popup_settings.php');
}
function init() {
add_action( 'admin_init', array($this, 'CF7POPUPMAIN_load_plugin'), 11 );
add_action( 'admin_enqueue_scripts', array($this, 'CF7POPUP_load_admin_script_style'));
add_action( 'wp_enqueue_scripts', array($this, 'CF7POPUP_load_front_script_style'));
add_action( 'admin_enqueue_scripts', array($this, 'CF7POPUP_load_front_script_style'));
}
function CF7POPUPMAIN_load_plugin() {
if ( ! ( is_plugin_active( 'contact-form-7/wp-contact-form-7.php' ) ) ) {
add_action( 'admin_notices', array($this,'CF7POPUPMAIN_install_error') );
}
}
function CF7POPUPMAIN_install_error() {
deactivate_plugins( plugin_basename( __FILE__ ) );
delete_transient( get_current_user_id() . 'cf7error' );
echo '<div class="error"><p> This plugin is deactivated because it require <a href="plugin-install.php?tab=search&s=contact+form+7">Contact Form 7</a> plugin installed and activated.</p></div>';
}
//Add JS and CSS on Backend
function CF7POPUP_load_admin_script_style() {
wp_enqueue_media();
wp_enqueue_script( 'pmfcf-wp-media-uploader', plugins_url( 'popup-message-for-contact-form-7-pro/js/wp_media_uploader.js', __DIR__ ) );
}
//Add JS and CSS on Frontend
function CF7POPUP_load_front_script_style() {
wp_enqueue_script( 'pmfcf-script-popupscript', plugins_url( '/js/popupscript.js', __FILE__ ) );
wp_enqueue_script( 'pmfcf-script-sweetalert2', plugins_url( '/js/sweetalert2.all.min.js', __FILE__ ) );
wp_enqueue_script( 'pmfcf-jscolor', plugins_url( '/js/jscolor.js', __FILE__ ) );
wp_enqueue_style( 'pmfcf-sweetalert2-style', plugins_url( '/css/sweetalert2.min.css', __FILE__ ) );
wp_enqueue_style( 'pmfcf-style', plugins_url( '/css/style.css', __FILE__ ) );
}
//Plugin Rating
public static function do_activation() {
set_transient('ocinsta-first-rating', true, MONTH_IN_SECONDS);
}
public static function CF7POPUPMAIN_instance() {
if (!isset(self::$CF7POPUPMAIN_instance)) {
self::$CF7POPUPMAIN_instance = new self();
self::$CF7POPUPMAIN_instance->init();
self::$CF7POPUPMAIN_instance->includes();
}
return self::$CF7POPUPMAIN_instance;
}
}
add_action('plugins_loaded', array('CF7POPUPMAIN', 'CF7POPUPMAIN_instance'));
register_activation_hook(CF7POPUP_PLUGIN_FILE, array('CF7POPUPMAIN', 'do_activation'));
}
=== Popup Message for Contact Form 7===
Tested up to: 5.2
Tags: contact form 7,contact form, Error message,message popup , submit form
Donate link: https://bit.ly/2CqhQq7
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html
CF7 Lightbox Popup Success is offering features like Add Success And Error message in to Fronted side in contact form 7
== Description ==
CF7 Lightbox Popup Success is offering features like **Add Success and Error message Popup** in to Fronted side in contact form 7.
In wordpress admin there is all setting to popup to customize background color, font size and font color.
&#128312; **[Demos](http://oceanwebguru.com/)**
> **Plugin Features**
>
> * Create popup for any Contact Form 7 form
> * Pre-Define Success Popup Template
> * Use different Success popups for different form
> * Shows Success popup when form submitted successfully
> * Customize Success Popup content
> * Customize Success Popup background color
> * Customize Success Popup font color
> * Customize Success Popup button-text
> * Customize Success Popup button color
> * Customize Success Popup Duration time
> * Customize Success Popup Background image
> * Customize Success Popup gradient colors
> * Popup is fully responsive
> * Compatible in all major browser
&#128312; **[Purchase Pro](https://www.xeeshop.com/product/contact-form-7-popup-message-pro/)**
> **Plugin Pro Features**
>
> * Create popup for any Contact Form 7 form
> * Pre-Define Success and Faild Popup Template
> * Use different Success and Faild popups for different form
> * Shows Success and Faild popup when form submitted successfully
> * Customize Success and Faild Popup content
> * Customize Success and Faild Popup background color
> * Customize Success and Faild Popup font color
> * Customize Success and Faild Popup button-text
> * Customize Success and Faild Popup button color
> * Customize Success and Faild Popup Duration time
> * Customize Success and Faild Popup Background image
> * Customize Success and Faild Popup gradient colors
> * Popup is fully responsive
> * Compatible in all major browser
> * Fast Customer Support
&#128312; **[Donation](https://bit.ly/2CqhQq7)**
**Our More Plugin**
&#128312; [**Cf7 Product List Dropdown**](https://wordpress.org/plugins/cf7-product-list-dropdown/)
&#128312; [**Popup Message for Contact Form 7**](https://wordpress.org/plugins/popup-message-for-contact-form-7/)
&#128312; [**Min and max Qty Rule Woocommerce**](https://wordpress.org/plugins/min-and-max-woocommerce-purchase-rule-by-product-category/)
&#128312; [**Post Slider**](https://wordpress.org/plugins/post-slider-by-oc/)
&#128312; [**Instagram Slider and Gallery**](https://wordpress.org/plugins/oc-instagram-slider/)
== Screenshots ==
1. screenshot-1.png
2. screenshot-2.png
3. screenshot-3.png
4. screenshot-4.png
5. screenshot-5.png
<?php
if (!defined('ABSPATH'))
exit;
if (!class_exists('CF7POPUP_save_menu')) {
class CF7POPUP_save_menu {
protected static $instance;
function CF7POPUP_wpcf7_after_save( $instance) {
$formid = $instance->id;
if(!empty($_POST['enabled_popup_val'])) {
$enabled_popup_id = $formid;
}else{
$enabled_popup_id = "";
}
if(!empty($_POST['enabled_failure_popup_val'])) {
$enabled_failure_popup_id = $formid;
}else{
$enabled_failure_popup_id = "";
}
// Add or Update popup general settings
update_post_meta( $formid, 'enabled-popup', $enabled_popup_id );
$popup_message_data = sanitize_text_field($_POST['popup_message']);
update_post_meta( $formid, 'popup_message', $popup_message_data );
$m_popup_width_data = sanitize_text_field($_POST['m_popup_width']);
update_post_meta( $formid, 'm_popup_width', $m_popup_width_data );
$m_popup_radius = sanitize_text_field($_POST['m_popup_radius']);
update_post_meta( $formid, 'm_popup_radius', $m_popup_radius );
$m_popup_duration_data = sanitize_text_field($_POST['m_popup_duration']);
update_post_meta( $formid, 'm_popup_duration', $m_popup_duration_data );
$popup_templet_data = sanitize_text_field($_POST['popup_templet']);
update_post_meta( $formid, 'popup_templet', $popup_templet_data );
if($popup_templet_data == "templet1"){
update_post_meta( $formid, 'popup_background_option', "bg_color");
update_post_meta( $formid, 'popup_background_color', "#34495e" );
update_post_meta( $formid, 'popup_text_color', "#ffffff" );
update_post_meta( $formid, 'popup_button_background_color', "#27ad5f" );
}
if($popup_templet_data == "templet2"){
update_post_meta( $formid, 'popup_background_option', "gradient_color");
update_post_meta( $formid, 'popup_gradient_color', "#CD5C5C");
update_post_meta( $formid, 'popup_gradient_color1', "#FFA07A");
update_post_meta( $formid, 'popup_text_color', "#000000" );
update_post_meta( $formid, 'popup_button_background_color', "#ffffff" );
}
if($popup_templet_data == "templet3"){
update_post_meta( $formid, 'popup_background_option', "image");
update_post_meta( $formid, 'popup_image_color', plugins_url( 'popup-message-for-contact-form-7/images/pexels-photo-1191710.jpeg'));
update_post_meta( $formid, 'popup_text_color', "#ffffff" );
update_post_meta( $formid, 'popup_button_background_color', "#51654e" );
}
if($popup_templet_data == "templet4"){
update_post_meta( $formid, 'popup_background_option', "gradient_color");
update_post_meta( $formid, 'popup_gradient_color', "#268717");
update_post_meta( $formid, 'popup_gradient_color1', "#A6EF9B");
update_post_meta( $formid, 'popup_text_color', "#000000" );
update_post_meta( $formid, 'popup_button_background_color', "#ffffff" );
}
if($popup_templet_data == "templet5"){
update_post_meta( $formid, 'popup_background_option', "image");
update_post_meta( $formid, 'popup_image_color', plugins_url( 'popup-message-for-contact-form-7/images/background-brick-brickwork-268966.jpg'));
update_post_meta( $formid, 'popup_text_color', "#ffffff" );
update_post_meta( $formid, 'popup_button_background_color', "#FF9800" );
}
if($popup_templet_data == "custom_templet"){
update_post_meta( $formid, 'popup_background_option', 'bg_color' );
update_post_meta( $formid, 'popup_background_color', "#34495e" );
update_post_meta( $formid, 'popup_text_color', "#ffffff" );
update_post_meta( $formid, 'popup_button_background_color', "#51654e" );
}
}
function init() {
add_action( 'wpcf7_after_save', array( $this, 'CF7POPUP_wpcf7_after_save'), 10, 1 );
}
public static function instance() {
if (!isset(self::$instance)) {
self::$instance = new self();
self::$instance->init();
}
return self::$instance;
}
}
CF7POPUP_save_menu::instance();
}
<?php
if (!defined('ABSPATH'))
exit;
if (!class_exists('CF7POPUP_submit_menu')) {
class CF7POPUP_submit_menu {
protected static $instance;
function CF7POPUP_wpcf7_ajax_json_echo( $items, $result ) {
$formid = $_REQUEST['_wpcf7'];
$items["popup_id"] = get_post_meta( $formid, 'enabled-popup', true );
$items["failure_popup_id"] = get_post_meta( $formid, 'enabled-popup-failure', true );
// Check popup message if text is not available then it pass default text
if( ! empty(get_post_meta( $formid, 'popup_message', true ))){
$items["popup_message"] = get_post_meta( $formid, 'popup_message', true );
}else{
$items["popup_message"] = "Form has been submitted successfully.";
}
// Check popup width if width is not available then it pass default width
if( ! empty(get_post_meta( $formid, 'm_popup_width', true ))){
$items["m_popup_width"] = get_post_meta( $formid, 'm_popup_width', true );
}else{
$items["m_popup_width"] = "500px";
}
// Check popup border radius if border radius is not available then it pass default border radius
if( ! empty(get_post_meta( $formid, 'm_popup_radius', true ))){
$items["m_popup_radius"] = get_post_meta( $formid, 'm_popup_radius', true );
}else{
$items["m_popup_radius"] = "10px";
}
// Check popup duration time if duration time is not available then it pass default duration time
if( ! empty(get_post_meta( $formid, 'm_popup_duration', true ))){
$items["m_popup_duration"] = get_post_meta( $formid, 'm_popup_duration', true );
}else{
$items["m_popup_duration"] = "100000000000";
}
// Check popup background option if option is not available then it pass popup background option
if( ! empty(get_post_meta( $formid, 'popup_background_option', true ))){
$items["popup_background_option"] = get_post_meta( $formid, 'popup_background_option', true );
}else{
$items["popup_background_option"] = "bg_color";
}
// Check popup background color if color is not available then it pass default color
if( ! empty(get_post_meta( $formid, 'popup_background_color', true ))){
$items["popup_background_color"] = get_post_meta( $formid, 'popup_background_color', true );
}else{
$items["popup_background_color"] = "#fff";
}
// Check popup background image if image is not available then it pass blank value
if( ! empty(get_post_meta( $formid, 'popup_image_color', true ))){
$items["popup_image_color"] = get_post_meta( $formid, 'popup_image_color', true );
}else{
$items["popup_image_color"] = plugins_url( '/popup-message-for-contact-form-7/popup_img2.png');
}
// Check popup background gradient color if gradient color is not available then it pass gradient color
if( ! empty(get_post_meta( $formid, 'popup_gradient_color', true ))){
$items["popup_gradient_color"] = get_post_meta( $formid, 'popup_gradient_color', true );
}else{
$items["popup_gradient_color"] = "#fff";
}
// Check popup background gradient color 2 if gradient color 2 is not available then it pass gradient color
if( ! empty(get_post_meta( $formid, 'popup_gradient_color1', true ))){
$items["popup_gradient_color1"] = get_post_meta( $formid, 'popup_gradient_color1', true );
}else{
$items["popup_gradient_color1"] = "#FF0000";
}
// Check popup text color if color is not available then it pass default color
if( ! empty(get_post_meta( $formid, 'popup_text_color', true ))){
$items["popup_text_color"] = get_post_meta( $formid, 'popup_text_color', true );
}else{
$items["popup_text_color"] = "#000";
}
// Check popup button text if text is not available then it pass default text
if( ! empty(get_post_meta( $formid, 'popup_button_text', true ))){
$items["popup_button_text"] = get_post_meta( $formid, 'popup_button_text', true );
}else{
$items["popup_button_text"] = "Ok";
}
// Check popup button background color if color is not available then it pass default color
if( ! empty(get_post_meta( $formid, 'popup_button_background_color', true ))){
$items["popup_button_background_color"] = get_post_meta( $formid, 'popup_button_background_color', true );
}else{
$items["popup_button_background_color"] = "#3085d6";
}
return $items;
}
function init() {
add_filter( 'wpcf7_ajax_json_echo', array( $this, 'CF7POPUP_wpcf7_ajax_json_echo'), 10, 2 );
}
public static function instance() {
if (!isset(self::$instance)) {
self::$instance = new self();
self::$instance->init();
}
return self::$instance;
}
}
CF7POPUP_submit_menu::instance();
}
......@@ -15263,6 +15263,56 @@ element.style {
line-height: 25px;
}
.modal-content {
border-radius: 0px !important;
}
.modal-header {
border-bottom: 0px;
}
.modal-header h2, .modal-header .h2 {
margin-top: 0px;
}
.modal-header .btn-close {
top: -10px;
position: relative;
}
.modal-body {
padding-top: 0px;
}
.modal-body a {
color: #1A3668 !important;
text-decoration: none;
}
.modal-body a:hover {
text-decoration: underline;
}
.modal-footer {
border-top: 0px;
}
.contest-close {
background-color: transparent !important;
text-transform: uppercase;
max-width: 100px;
float: right;
border: 1px solid #183668 !important;
color: #183668 !important;
transition: ease-out 0.5s;
margin-top: 20px;
margin: auto;
padding: 10px 20px;
}
.contest-close:hover {
background-color: transparent !important;
color: #fff !important;
box-shadow: inset 100px 0 0 0 #183668;
transition: ease-out 0.5s;
}
#wrapper-footer {
background-color: #183668;
width: 100%;
......
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
......@@ -65,6 +65,39 @@ $url = wp_get_attachment_url( get_post_thumbnail_id($post->ID), 'full' );
</div><!-- #content -->
</div><!-- #<?php echo $wrapper_id; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- ok. ?> -->
<div class="modal fade" id="contest_popup" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<h2 class="modal-title" id="exampleModalLabel">Thank you for your entry!</h2>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
5 winners will be drawn on . If you’re one of them (fingers crossed), we’ll be in touch! For full giveaway details, go to <a href="https://stellervista.ca/giveaway-details/">Giveaway Details.</a>
</div>
<div class="modal-footer">
<button type="button" class="contest-close" data-bs-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<div class="modal fade" id="contact_popup" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<h2 class="modal-title" id="exampleModalLabel">Thank you!</h2>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
</div>
<div class="modal-footer">
<button type="button" class="contest-close" data-bs-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<?php
get_footer();
......
......@@ -6854,6 +6854,17 @@
$(this).parents('.wp-block-columns').attr("style", 'background-image:url(' + $(this).children('img').attr('src') + ');');
$(this).children('img').hide();
});
document.addEventListener('wpcf7mailsent', function (event) {
if ('6' == event.detail.contactFormId) {
// Change 34 to the ID of the form
jQuery('#contest_popup').modal('show'); //this is the bootstrap modal popup id
}
if ('108' == event.detail.contactFormId) {
// Change 34 to the ID of the form
jQuery('#contact_popup').modal('show'); //this is the bootstrap modal popup id
}
}, false);
});
exports.Alert = alert;
......
This diff could not be displayed because it is too large.
......@@ -34,24 +34,24 @@
* Copyright 2011-2023 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
*/
!function(e,t){e.exports=function(e,t,n){const i="button",s="active",o='[data-bs-toggle="button"]',r="click.bs.button.data-api";class a extends e{static get NAME(){return i}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(s))}static jQueryInterface(e){return this.each((function(){const t=a.getOrCreateInstance(this);"toggle"===e&&t[e]()}))}}return t.on(document,r,o,(e=>{e.preventDefault();const t=e.target.closest(o);a.getOrCreateInstance(t).toggle()})),n.defineJQueryPlugin(a),a}(T(),g(),p())}({get exports(){return I},set exports(e){I=e}});var N,j=I,M={},F={},H={get exports(){return F},set exports(e){F=e}};function R(){return N||(N=1,function(e,t){e.exports=function(e,t,n){const i="swipe",s=".bs.swipe",o=`touchstart${s}`,r=`touchmove${s}`,a=`touchend${s}`,l=`pointerdown${s}`,c=`pointerup${s}`,u="touch",h="pen",d="pointer-event",f=40,p={endCallback:null,leftCallback:null,rightCallback:null},g={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class m extends t{constructor(e,t){super(),this._element=e,e&&m.isSupported()&&(this._config=this._getConfig(t),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return p}static get DefaultType(){return g}static get NAME(){return i}dispose(){e.off(this._element,s)}_start(e){this._supportPointerEvents?this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX):this._deltaX=e.touches[0].clientX}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),n.execute(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){const e=Math.abs(this._deltaX);if(e<=f)return;const t=e/this._deltaX;this._deltaX=0,t&&n.execute(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(e.on(this._element,l,(e=>this._start(e))),e.on(this._element,c,(e=>this._end(e))),this._element.classList.add(d)):(e.on(this._element,o,(e=>this._start(e))),e.on(this._element,r,(e=>this._move(e))),e.on(this._element,a,(e=>this._end(e))))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&(e.pointerType===h||e.pointerType===u)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}return m}(g(),A(),p())}(H)),F}
!function(e,t){e.exports=function(e,t,n){const i="button",s="active",o='[data-bs-toggle="button"]',r="click.bs.button.data-api";class a extends e{static get NAME(){return i}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(s))}static jQueryInterface(e){return this.each((function(){const t=a.getOrCreateInstance(this);"toggle"===e&&t[e]()}))}}return t.on(document,r,o,(e=>{e.preventDefault();const t=e.target.closest(o);a.getOrCreateInstance(t).toggle()})),n.defineJQueryPlugin(a),a}(T(),g(),p())}({get exports(){return I},set exports(e){I=e}});var j,N=I,M={},F={},H={get exports(){return F},set exports(e){F=e}};function R(){return j||(j=1,function(e,t){e.exports=function(e,t,n){const i="swipe",s=".bs.swipe",o=`touchstart${s}`,r=`touchmove${s}`,a=`touchend${s}`,l=`pointerdown${s}`,c=`pointerup${s}`,u="touch",h="pen",d="pointer-event",f=40,p={endCallback:null,leftCallback:null,rightCallback:null},g={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class m extends t{constructor(e,t){super(),this._element=e,e&&m.isSupported()&&(this._config=this._getConfig(t),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return p}static get DefaultType(){return g}static get NAME(){return i}dispose(){e.off(this._element,s)}_start(e){this._supportPointerEvents?this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX):this._deltaX=e.touches[0].clientX}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),n.execute(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){const e=Math.abs(this._deltaX);if(e<=f)return;const t=e/this._deltaX;this._deltaX=0,t&&n.execute(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(e.on(this._element,l,(e=>this._start(e))),e.on(this._element,c,(e=>this._end(e))),this._element.classList.add(d)):(e.on(this._element,o,(e=>this._start(e))),e.on(this._element,r,(e=>this._move(e))),e.on(this._element,a,(e=>this._end(e))))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&(e.pointerType===h||e.pointerType===u)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}return m}(g(),A(),p())}(H)),F}
/*!
* Bootstrap carousel.js v5.3.1 (https://getbootstrap.com/)
* Copyright 2011-2023 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
*/!function(e,t){e.exports=function(e,t,n,i,s,o){const r="carousel",a=".bs.carousel",l=".data-api",c=500,u="next",h="prev",d="left",f="right",p=`slide${a}`,g=`slid${a}`,m=`keydown${a}`,_=`mouseenter${a}`,b=`mouseleave${a}`,v=`dragstart${a}`,y=`load${a}${l}`,w=`click${a}${l}`,E="carousel",x="active",A="slide",T="carousel-item-end",O="carousel-item-start",C="carousel-item-next",k="carousel-item-prev",L=".active",D=".carousel-item",S=L+D,P=".carousel-item img",$=".carousel-indicators",I="[data-bs-slide], [data-bs-slide-to]",N='[data-bs-ride="carousel"]',j={ArrowLeft:f,ArrowRight:d},M={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},F={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class H extends e{constructor(e,t){super(e,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=i.findOne($,this._element),this._addEventListeners(),this._config.ride===E&&this.cycle()}static get Default(){return M}static get DefaultType(){return F}static get NAME(){return r}next(){this._slide(u)}nextWhenVisible(){!document.hidden&&s.isVisible(this._element)&&this.next()}prev(){this._slide(h)}pause(){this._isSliding&&s.triggerTransitionEnd(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval((()=>this.nextWhenVisible()),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?t.one(this._element,g,(()=>this.cycle())):this.cycle())}to(e){const n=this._getItems();if(e>n.length-1||e<0)return;if(this._isSliding)return void t.one(this._element,g,(()=>this.to(e)));const i=this._getItemIndex(this._getActive());if(i===e)return;const s=e>i?u:h;this._slide(s,n[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&t.on(this._element,m,(e=>this._keydown(e))),"hover"===this._config.pause&&(t.on(this._element,_,(()=>this.pause())),t.on(this._element,b,(()=>this._maybeEnableCycle()))),this._config.touch&&o.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const e of i.find(P,this._element))t.on(e,v,(e=>e.preventDefault()));const e={leftCallback:()=>this._slide(this._directionToOrder(d)),rightCallback:()=>this._slide(this._directionToOrder(f)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout((()=>this._maybeEnableCycle()),c+this._config.interval))}};this._swipeHelper=new o(this._element,e)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const t=j[e.key];t&&(e.preventDefault(),this._slide(this._directionToOrder(t)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;const t=i.findOne(L,this._indicatorsElement);t.classList.remove(x),t.removeAttribute("aria-current");const n=i.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);n&&(n.classList.add(x),n.setAttribute("aria-current","true"))}_updateInterval(){const e=this._activeElement||this._getActive();if(!e)return;const t=Number.parseInt(e.getAttribute("data-bs-interval"),10);this._config.interval=t||this._config.defaultInterval}_slide(e,n=null){if(this._isSliding)return;const i=this._getActive(),o=e===u,r=n||s.getNextActiveElement(this._getItems(),i,o,this._config.wrap);if(r===i)return;const a=this._getItemIndex(r),l=n=>t.trigger(this._element,n,{relatedTarget:r,direction:this._orderToDirection(e),from:this._getItemIndex(i),to:a});if(l(p).defaultPrevented)return;if(!i||!r)return;const c=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(a),this._activeElement=r;const h=o?O:T,d=o?C:k;r.classList.add(d),s.reflow(r),i.classList.add(h),r.classList.add(h);const f=()=>{r.classList.remove(h,d),r.classList.add(x),i.classList.remove(x,d,h),this._isSliding=!1,l(g)};this._queueCallback(f,i,this._isAnimated()),c&&this.cycle()}_isAnimated(){return this._element.classList.contains(A)}_getActive(){return i.findOne(S,this._element)}_getItems(){return i.find(D,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return s.isRTL()?e===d?h:u:e===d?u:h}_orderToDirection(e){return s.isRTL()?e===h?d:f:e===h?f:d}static jQueryInterface(e){return this.each((function(){const t=H.getOrCreateInstance(this,e);if("number"!=typeof e){if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}}else t.to(e)}))}}return t.on(document,w,I,(function(e){const t=i.getElementFromSelector(this);if(!t||!t.classList.contains(E))return;e.preventDefault();const s=H.getOrCreateInstance(t),o=this.getAttribute("data-bs-slide-to");return o?(s.to(o),void s._maybeEnableCycle()):"next"===n.getDataAttribute(this,"slide")?(s.next(),void s._maybeEnableCycle()):(s.prev(),void s._maybeEnableCycle())})),t.on(window,y,(()=>{const e=i.find(N);for(const t of e)H.getOrCreateInstance(t)})),s.defineJQueryPlugin(H),H}(T(),g(),x(),S(),p(),R())}({get exports(){return M},set exports(e){M=e}});var B=M,W={};
*/!function(e,t){e.exports=function(e,t,n,i,s,o){const r="carousel",a=".bs.carousel",l=".data-api",c=500,u="next",h="prev",d="left",f="right",p=`slide${a}`,g=`slid${a}`,m=`keydown${a}`,_=`mouseenter${a}`,b=`mouseleave${a}`,v=`dragstart${a}`,y=`load${a}${l}`,w=`click${a}${l}`,E="carousel",x="active",A="slide",T="carousel-item-end",O="carousel-item-start",C="carousel-item-next",k="carousel-item-prev",L=".active",D=".carousel-item",S=L+D,P=".carousel-item img",$=".carousel-indicators",I="[data-bs-slide], [data-bs-slide-to]",j='[data-bs-ride="carousel"]',N={ArrowLeft:f,ArrowRight:d},M={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},F={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class H extends e{constructor(e,t){super(e,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=i.findOne($,this._element),this._addEventListeners(),this._config.ride===E&&this.cycle()}static get Default(){return M}static get DefaultType(){return F}static get NAME(){return r}next(){this._slide(u)}nextWhenVisible(){!document.hidden&&s.isVisible(this._element)&&this.next()}prev(){this._slide(h)}pause(){this._isSliding&&s.triggerTransitionEnd(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval((()=>this.nextWhenVisible()),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?t.one(this._element,g,(()=>this.cycle())):this.cycle())}to(e){const n=this._getItems();if(e>n.length-1||e<0)return;if(this._isSliding)return void t.one(this._element,g,(()=>this.to(e)));const i=this._getItemIndex(this._getActive());if(i===e)return;const s=e>i?u:h;this._slide(s,n[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&t.on(this._element,m,(e=>this._keydown(e))),"hover"===this._config.pause&&(t.on(this._element,_,(()=>this.pause())),t.on(this._element,b,(()=>this._maybeEnableCycle()))),this._config.touch&&o.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const e of i.find(P,this._element))t.on(e,v,(e=>e.preventDefault()));const e={leftCallback:()=>this._slide(this._directionToOrder(d)),rightCallback:()=>this._slide(this._directionToOrder(f)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout((()=>this._maybeEnableCycle()),c+this._config.interval))}};this._swipeHelper=new o(this._element,e)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const t=N[e.key];t&&(e.preventDefault(),this._slide(this._directionToOrder(t)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;const t=i.findOne(L,this._indicatorsElement);t.classList.remove(x),t.removeAttribute("aria-current");const n=i.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);n&&(n.classList.add(x),n.setAttribute("aria-current","true"))}_updateInterval(){const e=this._activeElement||this._getActive();if(!e)return;const t=Number.parseInt(e.getAttribute("data-bs-interval"),10);this._config.interval=t||this._config.defaultInterval}_slide(e,n=null){if(this._isSliding)return;const i=this._getActive(),o=e===u,r=n||s.getNextActiveElement(this._getItems(),i,o,this._config.wrap);if(r===i)return;const a=this._getItemIndex(r),l=n=>t.trigger(this._element,n,{relatedTarget:r,direction:this._orderToDirection(e),from:this._getItemIndex(i),to:a});if(l(p).defaultPrevented)return;if(!i||!r)return;const c=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(a),this._activeElement=r;const h=o?O:T,d=o?C:k;r.classList.add(d),s.reflow(r),i.classList.add(h),r.classList.add(h);const f=()=>{r.classList.remove(h,d),r.classList.add(x),i.classList.remove(x,d,h),this._isSliding=!1,l(g)};this._queueCallback(f,i,this._isAnimated()),c&&this.cycle()}_isAnimated(){return this._element.classList.contains(A)}_getActive(){return i.findOne(S,this._element)}_getItems(){return i.find(D,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return s.isRTL()?e===d?h:u:e===d?u:h}_orderToDirection(e){return s.isRTL()?e===h?d:f:e===h?f:d}static jQueryInterface(e){return this.each((function(){const t=H.getOrCreateInstance(this,e);if("number"!=typeof e){if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}}else t.to(e)}))}}return t.on(document,w,I,(function(e){const t=i.getElementFromSelector(this);if(!t||!t.classList.contains(E))return;e.preventDefault();const s=H.getOrCreateInstance(t),o=this.getAttribute("data-bs-slide-to");return o?(s.to(o),void s._maybeEnableCycle()):"next"===n.getDataAttribute(this,"slide")?(s.next(),void s._maybeEnableCycle()):(s.prev(),void s._maybeEnableCycle())})),t.on(window,y,(()=>{const e=i.find(j);for(const t of e)H.getOrCreateInstance(t)})),s.defineJQueryPlugin(H),H}(T(),g(),x(),S(),p(),R())}({get exports(){return M},set exports(e){M=e}});var B=M,W={};
/*!
* Bootstrap collapse.js v5.3.1 (https://getbootstrap.com/)
* Copyright 2011-2023 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
*/
!function(e,t){e.exports=function(e,t,n,i){const s="collapse",o=".bs.collapse",r=`show${o}`,a=`shown${o}`,l=`hide${o}`,c=`hidden${o}`,u=`click${o}.data-api`,h="show",d="collapse",f="collapsing",p="collapsed",g=`:scope .${d} .${d}`,m="collapse-horizontal",_="width",b="height",v=".collapse.show, .collapse.collapsing",y='[data-bs-toggle="collapse"]',w={parent:null,toggle:!0},E={parent:"(null|element)",toggle:"boolean"};class x extends e{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];const i=n.find(y);for(const e of i){const t=n.getSelectorFromElement(e),i=n.find(t).filter((e=>e===this._element));null!==t&&i.length&&this._triggerArray.push(e)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return w}static get DefaultType(){return E}static get NAME(){return s}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(v).filter((e=>e!==this._element)).map((e=>x.getOrCreateInstance(e,{toggle:!1})))),e.length&&e[0]._isTransitioning)return;if(t.trigger(this._element,r).defaultPrevented)return;for(const t of e)t.hide();const n=this._getDimension();this._element.classList.remove(d),this._element.classList.add(f),this._element.style[n]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const i=()=>{this._isTransitioning=!1,this._element.classList.remove(f),this._element.classList.add(d,h),this._element.style[n]="",t.trigger(this._element,a)},s=`scroll${n[0].toUpperCase()+n.slice(1)}`;this._queueCallback(i,this._element,!0),this._element.style[n]=`${this._element[s]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(t.trigger(this._element,l).defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,i.reflow(this._element),this._element.classList.add(f),this._element.classList.remove(d,h);for(const e of this._triggerArray){const t=n.getElementFromSelector(e);t&&!this._isShown(t)&&this._addAriaAndCollapsedClass([e],!1)}this._isTransitioning=!0;const s=()=>{this._isTransitioning=!1,this._element.classList.remove(f),this._element.classList.add(d),t.trigger(this._element,c)};this._element.style[e]="",this._queueCallback(s,this._element,!0)}_isShown(e=this._element){return e.classList.contains(h)}_configAfterMerge(e){return e.toggle=Boolean(e.toggle),e.parent=i.getElement(e.parent),e}_getDimension(){return this._element.classList.contains(m)?_:b}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(y);for(const t of e){const e=n.getElementFromSelector(t);e&&this._addAriaAndCollapsedClass([t],this._isShown(e))}}_getFirstLevelChildren(e){const t=n.find(g,this._config.parent);return n.find(e,this._config.parent).filter((e=>!t.includes(e)))}_addAriaAndCollapsedClass(e,t){if(e.length)for(const n of e)n.classList.toggle(p,!t),n.setAttribute("aria-expanded",t)}static jQueryInterface(e){const t={};return"string"==typeof e&&/show|hide/.test(e)&&(t.toggle=!1),this.each((function(){const n=x.getOrCreateInstance(this,t);if("string"==typeof e){if(void 0===n[e])throw new TypeError(`No method named "${e}"`);n[e]()}}))}}return t.on(document,u,y,(function(e){("A"===e.target.tagName||e.delegateTarget&&"A"===e.delegateTarget.tagName)&&e.preventDefault();for(const e of n.getMultipleElementsFromSelector(this))x.getOrCreateInstance(e,{toggle:!1}).toggle()})),i.defineJQueryPlugin(x),x}(T(),g(),S(),p())}({get exports(){return W},set exports(e){W=e}});var z=W,q={},V={get exports(){return q},set exports(e){q=e}},Q="top",K="bottom",U="right",X="left",Y="auto",J=[Q,K,U,X],G="start",Z="end",ee="clippingParents",te="viewport",ne="popper",ie="reference",se=J.reduce((function(e,t){return e.concat([t+"-"+G,t+"-"+Z])}),[]),oe=[].concat(J,[Y]).reduce((function(e,t){return e.concat([t,t+"-"+G,t+"-"+Z])}),[]),re="beforeRead",ae="read",le="afterRead",ce="beforeMain",ue="main",he="afterMain",de="beforeWrite",fe="write",pe="afterWrite",ge=[re,ae,le,ce,ue,he,de,fe,pe];function me(e){return e?(e.nodeName||"").toLowerCase():null}function _e(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function be(e){return e instanceof _e(e).Element||e instanceof Element}function ve(e){return e instanceof _e(e).HTMLElement||e instanceof HTMLElement}function ye(e){return"undefined"!=typeof ShadowRoot&&(e instanceof _e(e).ShadowRoot||e instanceof ShadowRoot)}var we={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},i=t.attributes[e]||{},s=t.elements[e];ve(s)&&me(s)&&(Object.assign(s.style,n),Object.keys(i).forEach((function(e){var t=i[e];!1===t?s.removeAttribute(e):s.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var i=t.elements[e],s=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});ve(i)&&me(i)&&(Object.assign(i.style,o),Object.keys(s).forEach((function(e){i.removeAttribute(e)})))}))}},requires:["computeStyles"]};function Ee(e){return e.split("-")[0]}var xe=Math.max,Ae=Math.min,Te=Math.round;function Oe(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function Ce(){return!/^((?!chrome|android).)*safari/i.test(Oe())}function ke(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var i=e.getBoundingClientRect(),s=1,o=1;t&&ve(e)&&(s=e.offsetWidth>0&&Te(i.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Te(i.height)/e.offsetHeight||1);var r=(be(e)?_e(e):window).visualViewport,a=!Ce()&&n,l=(i.left+(a&&r?r.offsetLeft:0))/s,c=(i.top+(a&&r?r.offsetTop:0))/o,u=i.width/s,h=i.height/o;return{width:u,height:h,top:c,right:l+u,bottom:c+h,left:l,x:l,y:c}}function Le(e){var t=ke(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function De(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&ye(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Se(e){return _e(e).getComputedStyle(e)}function Pe(e){return["table","td","th"].indexOf(me(e))>=0}function $e(e){return((be(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ie(e){return"html"===me(e)?e:e.assignedSlot||e.parentNode||(ye(e)?e.host:null)||$e(e)}function Ne(e){return ve(e)&&"fixed"!==Se(e).position?e.offsetParent:null}function je(e){for(var t=_e(e),n=Ne(e);n&&Pe(n)&&"static"===Se(n).position;)n=Ne(n);return n&&("html"===me(n)||"body"===me(n)&&"static"===Se(n).position)?t:n||function(e){var t=/firefox/i.test(Oe());if(/Trident/i.test(Oe())&&ve(e)&&"fixed"===Se(e).position)return null;var n=Ie(e);for(ye(n)&&(n=n.host);ve(n)&&["html","body"].indexOf(me(n))<0;){var i=Se(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||t&&"filter"===i.willChange||t&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(e)||t}function Me(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Fe(e,t,n){return xe(e,Ae(t,n))}function He(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Re(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var Be={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,i=e.name,s=e.options,o=n.elements.arrow,r=n.modifiersData.popperOffsets,a=Ee(n.placement),l=Me(a),c=[X,U].indexOf(a)>=0?"height":"width";if(o&&r){var u=function(e,t){return He("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Re(e,J))}(s.padding,n),h=Le(o),d="y"===l?Q:X,f="y"===l?K:U,p=n.rects.reference[c]+n.rects.reference[l]-r[l]-n.rects.popper[c],g=r[l]-n.rects.reference[l],m=je(o),_=m?"y"===l?m.clientHeight||0:m.clientWidth||0:0,b=p/2-g/2,v=u[d],y=_-h[c]-u[f],w=_/2-h[c]/2+b,E=Fe(v,w,y),x=l;n.modifiersData[i]=((t={})[x]=E,t.centerOffset=E-w,t)}},effect:function(e){var t=e.state,n=e.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=t.elements.popper.querySelector(i)))&&De(t.elements.popper,i)&&(t.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function We(e){return e.split("-")[1]}var ze={top:"auto",right:"auto",bottom:"auto",left:"auto"};function qe(e){var t,n=e.popper,i=e.popperRect,s=e.placement,o=e.variation,r=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,h=e.isFixed,d=r.x,f=void 0===d?0:d,p=r.y,g=void 0===p?0:p,m="function"==typeof u?u({x:f,y:g}):{x:f,y:g};f=m.x,g=m.y;var _=r.hasOwnProperty("x"),b=r.hasOwnProperty("y"),v=X,y=Q,w=window;if(c){var E=je(n),x="clientHeight",A="clientWidth";if(E===_e(n)&&"static"!==Se(E=$e(n)).position&&"absolute"===a&&(x="scrollHeight",A="scrollWidth"),s===Q||(s===X||s===U)&&o===Z)y=K,g-=(h&&E===w&&w.visualViewport?w.visualViewport.height:E[x])-i.height,g*=l?1:-1;if(s===X||(s===Q||s===K)&&o===Z)v=U,f-=(h&&E===w&&w.visualViewport?w.visualViewport.width:E[A])-i.width,f*=l?1:-1}var T,O=Object.assign({position:a},c&&ze),C=!0===u?function(e,t){var n=e.x,i=e.y,s=t.devicePixelRatio||1;return{x:Te(n*s)/s||0,y:Te(i*s)/s||0}}({x:f,y:g},_e(n)):{x:f,y:g};return f=C.x,g=C.y,l?Object.assign({},O,((T={})[y]=b?"0":"",T[v]=_?"0":"",T.transform=(w.devicePixelRatio||1)<=1?"translate("+f+"px, "+g+"px)":"translate3d("+f+"px, "+g+"px, 0)",T)):Object.assign({},O,((t={})[y]=b?g+"px":"",t[v]=_?f+"px":"",t.transform="",t))}var Ve={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,i=n.gpuAcceleration,s=void 0===i||i,o=n.adaptive,r=void 0===o||o,a=n.roundOffsets,l=void 0===a||a,c={placement:Ee(t.placement),variation:We(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,qe(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:r,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,qe(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},Qe={passive:!0};var Ke={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,i=e.options,s=i.scroll,o=void 0===s||s,r=i.resize,a=void 0===r||r,l=_e(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach((function(e){e.addEventListener("scroll",n.update,Qe)})),a&&l.addEventListener("resize",n.update,Qe),function(){o&&c.forEach((function(e){e.removeEventListener("scroll",n.update,Qe)})),a&&l.removeEventListener("resize",n.update,Qe)}},data:{}},Ue={left:"right",right:"left",bottom:"top",top:"bottom"};function Xe(e){return e.replace(/left|right|bottom|top/g,(function(e){return Ue[e]}))}var Ye={start:"end",end:"start"};function Je(e){return e.replace(/start|end/g,(function(e){return Ye[e]}))}function Ge(e){var t=_e(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ze(e){return ke($e(e)).left+Ge(e).scrollLeft}function et(e){var t=Se(e),n=t.overflow,i=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+i)}function tt(e){return["html","body","#document"].indexOf(me(e))>=0?e.ownerDocument.body:ve(e)&&et(e)?e:tt(Ie(e))}function nt(e,t){var n;void 0===t&&(t=[]);var i=tt(e),s=i===(null==(n=e.ownerDocument)?void 0:n.body),o=_e(i),r=s?[o].concat(o.visualViewport||[],et(i)?i:[]):i,a=t.concat(r);return s?a:a.concat(nt(Ie(r)))}function it(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function st(e,t,n){return t===te?it(function(e,t){var n=_e(e),i=$e(e),s=n.visualViewport,o=i.clientWidth,r=i.clientHeight,a=0,l=0;if(s){o=s.width,r=s.height;var c=Ce();(c||!c&&"fixed"===t)&&(a=s.offsetLeft,l=s.offsetTop)}return{width:o,height:r,x:a+Ze(e),y:l}}(e,n)):be(t)?function(e,t){var n=ke(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):it(function(e){var t,n=$e(e),i=Ge(e),s=null==(t=e.ownerDocument)?void 0:t.body,o=xe(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),r=xe(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),a=-i.scrollLeft+Ze(e),l=-i.scrollTop;return"rtl"===Se(s||n).direction&&(a+=xe(n.clientWidth,s?s.clientWidth:0)-o),{width:o,height:r,x:a,y:l}}($e(e)))}function ot(e,t,n,i){var s="clippingParents"===t?function(e){var t=nt(Ie(e)),n=["absolute","fixed"].indexOf(Se(e).position)>=0&&ve(e)?je(e):e;return be(n)?t.filter((function(e){return be(e)&&De(e,n)&&"body"!==me(e)})):[]}(e):[].concat(t),o=[].concat(s,[n]),r=o[0],a=o.reduce((function(t,n){var s=st(e,n,i);return t.top=xe(s.top,t.top),t.right=Ae(s.right,t.right),t.bottom=Ae(s.bottom,t.bottom),t.left=xe(s.left,t.left),t}),st(e,r,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function rt(e){var t,n=e.reference,i=e.element,s=e.placement,o=s?Ee(s):null,r=s?We(s):null,a=n.x+n.width/2-i.width/2,l=n.y+n.height/2-i.height/2;switch(o){case Q:t={x:a,y:n.y-i.height};break;case K:t={x:a,y:n.y+n.height};break;case U:t={x:n.x+n.width,y:l};break;case X:t={x:n.x-i.width,y:l};break;default:t={x:n.x,y:n.y}}var c=o?Me(o):null;if(null!=c){var u="y"===c?"height":"width";switch(r){case G:t[c]=t[c]-(n[u]/2-i[u]/2);break;case Z:t[c]=t[c]+(n[u]/2-i[u]/2)}}return t}function at(e,t){void 0===t&&(t={});var n=t,i=n.placement,s=void 0===i?e.placement:i,o=n.strategy,r=void 0===o?e.strategy:o,a=n.boundary,l=void 0===a?ee:a,c=n.rootBoundary,u=void 0===c?te:c,h=n.elementContext,d=void 0===h?ne:h,f=n.altBoundary,p=void 0!==f&&f,g=n.padding,m=void 0===g?0:g,_=He("number"!=typeof m?m:Re(m,J)),b=d===ne?ie:ne,v=e.rects.popper,y=e.elements[p?b:d],w=ot(be(y)?y:y.contextElement||$e(e.elements.popper),l,u,r),E=ke(e.elements.reference),x=rt({reference:E,element:v,strategy:"absolute",placement:s}),A=it(Object.assign({},v,x)),T=d===ne?A:E,O={top:w.top-T.top+_.top,bottom:T.bottom-w.bottom+_.bottom,left:w.left-T.left+_.left,right:T.right-w.right+_.right},C=e.modifiersData.offset;if(d===ne&&C){var k=C[s];Object.keys(O).forEach((function(e){var t=[U,K].indexOf(e)>=0?1:-1,n=[Q,K].indexOf(e)>=0?"y":"x";O[e]+=k[n]*t}))}return O}function lt(e,t){void 0===t&&(t={});var n=t,i=n.placement,s=n.boundary,o=n.rootBoundary,r=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?oe:l,u=We(i),h=u?a?se:se.filter((function(e){return We(e)===u})):J,d=h.filter((function(e){return c.indexOf(e)>=0}));0===d.length&&(d=h);var f=d.reduce((function(t,n){return t[n]=at(e,{placement:n,boundary:s,rootBoundary:o,padding:r})[Ee(n)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}var ct={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var s=n.mainAxis,o=void 0===s||s,r=n.altAxis,a=void 0===r||r,l=n.fallbackPlacements,c=n.padding,u=n.boundary,h=n.rootBoundary,d=n.altBoundary,f=n.flipVariations,p=void 0===f||f,g=n.allowedAutoPlacements,m=t.options.placement,_=Ee(m),b=l||(_===m||!p?[Xe(m)]:function(e){if(Ee(e)===Y)return[];var t=Xe(e);return[Je(e),t,Je(t)]}(m)),v=[m].concat(b).reduce((function(e,n){return e.concat(Ee(n)===Y?lt(t,{placement:n,boundary:u,rootBoundary:h,padding:c,flipVariations:p,allowedAutoPlacements:g}):n)}),[]),y=t.rects.reference,w=t.rects.popper,E=new Map,x=!0,A=v[0],T=0;T<v.length;T++){var O=v[T],C=Ee(O),k=We(O)===G,L=[Q,K].indexOf(C)>=0,D=L?"width":"height",S=at(t,{placement:O,boundary:u,rootBoundary:h,altBoundary:d,padding:c}),P=L?k?U:X:k?K:Q;y[D]>w[D]&&(P=Xe(P));var $=Xe(P),I=[];if(o&&I.push(S[C]<=0),a&&I.push(S[P]<=0,S[$]<=0),I.every((function(e){return e}))){A=O,x=!1;break}E.set(O,I)}if(x)for(var N=function(e){var t=v.find((function(t){var n=E.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return A=t,"break"},j=p?3:1;j>0;j--){if("break"===N(j))break}t.placement!==A&&(t.modifiersData[i]._skip=!0,t.placement=A,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function ut(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function ht(e){return[Q,U,K,X].some((function(t){return e[t]>=0}))}var dt={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,i=t.rects.reference,s=t.rects.popper,o=t.modifiersData.preventOverflow,r=at(t,{elementContext:"reference"}),a=at(t,{altBoundary:!0}),l=ut(r,i),c=ut(a,s,o),u=ht(l),h=ht(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":h})}};var ft={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,i=e.name,s=n.offset,o=void 0===s?[0,0]:s,r=oe.reduce((function(e,n){return e[n]=function(e,t,n){var i=Ee(e),s=[X,Q].indexOf(i)>=0?-1:1,o="function"==typeof n?n(Object.assign({},t,{placement:e})):n,r=o[0],a=o[1];return r=r||0,a=(a||0)*s,[X,U].indexOf(i)>=0?{x:a,y:r}:{x:r,y:a}}(n,t.rects,o),e}),{}),a=r[t.placement],l=a.x,c=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[i]=r}};var pt={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=rt({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var gt={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name,s=n.mainAxis,o=void 0===s||s,r=n.altAxis,a=void 0!==r&&r,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,h=n.padding,d=n.tether,f=void 0===d||d,p=n.tetherOffset,g=void 0===p?0:p,m=at(t,{boundary:l,rootBoundary:c,padding:h,altBoundary:u}),_=Ee(t.placement),b=We(t.placement),v=!b,y=Me(_),w="x"===y?"y":"x",E=t.modifiersData.popperOffsets,x=t.rects.reference,A=t.rects.popper,T="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,O="number"==typeof T?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),C=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,k={x:0,y:0};if(E){if(o){var L,D="y"===y?Q:X,S="y"===y?K:U,P="y"===y?"height":"width",$=E[y],I=$+m[D],N=$-m[S],j=f?-A[P]/2:0,M=b===G?x[P]:A[P],F=b===G?-A[P]:-x[P],H=t.elements.arrow,R=f&&H?Le(H):{width:0,height:0},B=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},W=B[D],z=B[S],q=Fe(0,x[P],R[P]),V=v?x[P]/2-j-q-W-O.mainAxis:M-q-W-O.mainAxis,Y=v?-x[P]/2+j+q+z+O.mainAxis:F+q+z+O.mainAxis,J=t.elements.arrow&&je(t.elements.arrow),Z=J?"y"===y?J.clientTop||0:J.clientLeft||0:0,ee=null!=(L=null==C?void 0:C[y])?L:0,te=$+Y-ee,ne=Fe(f?Ae(I,$+V-ee-Z):I,$,f?xe(N,te):N);E[y]=ne,k[y]=ne-$}if(a){var ie,se="x"===y?Q:X,oe="x"===y?K:U,re=E[w],ae="y"===w?"height":"width",le=re+m[se],ce=re-m[oe],ue=-1!==[Q,X].indexOf(_),he=null!=(ie=null==C?void 0:C[w])?ie:0,de=ue?le:re-x[ae]-A[ae]-he+O.altAxis,fe=ue?re+x[ae]+A[ae]-he-O.altAxis:ce,pe=f&&ue?function(e,t,n){var i=Fe(e,t,n);return i>n?n:i}(de,re,fe):Fe(f?de:le,re,f?fe:ce);E[w]=pe,k[w]=pe-re}t.modifiersData[i]=k}},requiresIfExists:["offset"]};function mt(e,t,n){void 0===n&&(n=!1);var i,s,o=ve(t),r=ve(t)&&function(e){var t=e.getBoundingClientRect(),n=Te(t.width)/e.offsetWidth||1,i=Te(t.height)/e.offsetHeight||1;return 1!==n||1!==i}(t),a=$e(t),l=ke(e,r,n),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(o||!o&&!n)&&(("body"!==me(t)||et(a))&&(c=(i=t)!==_e(i)&&ve(i)?{scrollLeft:(s=i).scrollLeft,scrollTop:s.scrollTop}:Ge(i)),ve(t)?((u=ke(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):a&&(u.x=Ze(a))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function _t(e){var t=new Map,n=new Set,i=[];function s(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var i=t.get(e);i&&s(i)}})),i.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||s(e)})),i}var bt={placement:"bottom",modifiers:[],strategy:"absolute"};function vt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function yt(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,i=void 0===n?[]:n,s=t.defaultOptions,o=void 0===s?bt:s;return function(e,t,n){void 0===n&&(n=o);var s,r,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},bt,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,u={state:a,setOptions:function(n){var s="function"==typeof n?n(a.options):n;h(),a.options=Object.assign({},o,a.options,s),a.scrollParents={reference:be(e)?nt(e):e.contextElement?nt(e.contextElement):[],popper:nt(t)};var r,c,d=function(e){var t=_t(e);return ge.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((r=[].concat(i,a.options.modifiers),c=r.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(c).map((function(e){return c[e]}))));return a.orderedModifiers=d.filter((function(e){return e.enabled})),a.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,i=void 0===n?{}:n,s=e.effect;if("function"==typeof s){var o=s({state:a,name:t,instance:u,options:i}),r=function(){};l.push(o||r)}})),u.update()},forceUpdate:function(){if(!c){var e=a.elements,t=e.reference,n=e.popper;if(vt(t,n)){a.rects={reference:mt(t,je(n),"fixed"===a.options.strategy),popper:Le(n)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach((function(e){return a.modifiersData[e.name]=Object.assign({},e.data)}));for(var i=0;i<a.orderedModifiers.length;i++)if(!0!==a.reset){var s=a.orderedModifiers[i],o=s.fn,r=s.options,l=void 0===r?{}:r,h=s.name;"function"==typeof o&&(a=o({state:a,options:l,name:h,instance:u})||a)}else a.reset=!1,i=-1}}},update:(s=function(){return new Promise((function(e){u.forceUpdate(),e(a)}))},function(){return r||(r=new Promise((function(e){Promise.resolve().then((function(){r=void 0,e(s())}))}))),r}),destroy:function(){h(),c=!0}};if(!vt(e,t))return u;function h(){l.forEach((function(e){return e()})),l=[]}return u.setOptions(n).then((function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)})),u}}var wt=yt(),Et=yt({defaultModifiers:[Ke,pt,Ve,we]}),xt=yt({defaultModifiers:[Ke,pt,Ve,we,ft,ct,gt,Be,dt]}),At=t(Object.freeze({__proto__:null,popperGenerator:yt,detectOverflow:at,createPopperBase:wt,createPopper:xt,createPopperLite:Et,top:Q,bottom:K,right:U,left:X,auto:Y,basePlacements:J,start:G,end:Z,clippingParents:ee,viewport:te,popper:ne,reference:ie,variationPlacements:se,placements:oe,beforeRead:re,read:ae,afterRead:le,beforeMain:ce,main:ue,afterMain:he,beforeWrite:de,write:fe,afterWrite:pe,modifierPhases:ge,applyStyles:we,arrow:Be,computeStyles:Ve,eventListeners:Ke,flip:ct,hide:dt,offset:ft,popperOffsets:pt,preventOverflow:gt}));
!function(e,t){e.exports=function(e,t,n,i){const s="collapse",o=".bs.collapse",r=`show${o}`,a=`shown${o}`,l=`hide${o}`,c=`hidden${o}`,u=`click${o}.data-api`,h="show",d="collapse",f="collapsing",p="collapsed",g=`:scope .${d} .${d}`,m="collapse-horizontal",_="width",b="height",v=".collapse.show, .collapse.collapsing",y='[data-bs-toggle="collapse"]',w={parent:null,toggle:!0},E={parent:"(null|element)",toggle:"boolean"};class x extends e{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];const i=n.find(y);for(const e of i){const t=n.getSelectorFromElement(e),i=n.find(t).filter((e=>e===this._element));null!==t&&i.length&&this._triggerArray.push(e)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return w}static get DefaultType(){return E}static get NAME(){return s}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(v).filter((e=>e!==this._element)).map((e=>x.getOrCreateInstance(e,{toggle:!1})))),e.length&&e[0]._isTransitioning)return;if(t.trigger(this._element,r).defaultPrevented)return;for(const t of e)t.hide();const n=this._getDimension();this._element.classList.remove(d),this._element.classList.add(f),this._element.style[n]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const i=()=>{this._isTransitioning=!1,this._element.classList.remove(f),this._element.classList.add(d,h),this._element.style[n]="",t.trigger(this._element,a)},s=`scroll${n[0].toUpperCase()+n.slice(1)}`;this._queueCallback(i,this._element,!0),this._element.style[n]=`${this._element[s]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(t.trigger(this._element,l).defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,i.reflow(this._element),this._element.classList.add(f),this._element.classList.remove(d,h);for(const e of this._triggerArray){const t=n.getElementFromSelector(e);t&&!this._isShown(t)&&this._addAriaAndCollapsedClass([e],!1)}this._isTransitioning=!0;const s=()=>{this._isTransitioning=!1,this._element.classList.remove(f),this._element.classList.add(d),t.trigger(this._element,c)};this._element.style[e]="",this._queueCallback(s,this._element,!0)}_isShown(e=this._element){return e.classList.contains(h)}_configAfterMerge(e){return e.toggle=Boolean(e.toggle),e.parent=i.getElement(e.parent),e}_getDimension(){return this._element.classList.contains(m)?_:b}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(y);for(const t of e){const e=n.getElementFromSelector(t);e&&this._addAriaAndCollapsedClass([t],this._isShown(e))}}_getFirstLevelChildren(e){const t=n.find(g,this._config.parent);return n.find(e,this._config.parent).filter((e=>!t.includes(e)))}_addAriaAndCollapsedClass(e,t){if(e.length)for(const n of e)n.classList.toggle(p,!t),n.setAttribute("aria-expanded",t)}static jQueryInterface(e){const t={};return"string"==typeof e&&/show|hide/.test(e)&&(t.toggle=!1),this.each((function(){const n=x.getOrCreateInstance(this,t);if("string"==typeof e){if(void 0===n[e])throw new TypeError(`No method named "${e}"`);n[e]()}}))}}return t.on(document,u,y,(function(e){("A"===e.target.tagName||e.delegateTarget&&"A"===e.delegateTarget.tagName)&&e.preventDefault();for(const e of n.getMultipleElementsFromSelector(this))x.getOrCreateInstance(e,{toggle:!1}).toggle()})),i.defineJQueryPlugin(x),x}(T(),g(),S(),p())}({get exports(){return W},set exports(e){W=e}});var z=W,q={},V={get exports(){return q},set exports(e){q=e}},Q="top",K="bottom",U="right",X="left",Y="auto",J=[Q,K,U,X],G="start",Z="end",ee="clippingParents",te="viewport",ne="popper",ie="reference",se=J.reduce((function(e,t){return e.concat([t+"-"+G,t+"-"+Z])}),[]),oe=[].concat(J,[Y]).reduce((function(e,t){return e.concat([t,t+"-"+G,t+"-"+Z])}),[]),re="beforeRead",ae="read",le="afterRead",ce="beforeMain",ue="main",he="afterMain",de="beforeWrite",fe="write",pe="afterWrite",ge=[re,ae,le,ce,ue,he,de,fe,pe];function me(e){return e?(e.nodeName||"").toLowerCase():null}function _e(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function be(e){return e instanceof _e(e).Element||e instanceof Element}function ve(e){return e instanceof _e(e).HTMLElement||e instanceof HTMLElement}function ye(e){return"undefined"!=typeof ShadowRoot&&(e instanceof _e(e).ShadowRoot||e instanceof ShadowRoot)}var we={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},i=t.attributes[e]||{},s=t.elements[e];ve(s)&&me(s)&&(Object.assign(s.style,n),Object.keys(i).forEach((function(e){var t=i[e];!1===t?s.removeAttribute(e):s.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var i=t.elements[e],s=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});ve(i)&&me(i)&&(Object.assign(i.style,o),Object.keys(s).forEach((function(e){i.removeAttribute(e)})))}))}},requires:["computeStyles"]};function Ee(e){return e.split("-")[0]}var xe=Math.max,Ae=Math.min,Te=Math.round;function Oe(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function Ce(){return!/^((?!chrome|android).)*safari/i.test(Oe())}function ke(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var i=e.getBoundingClientRect(),s=1,o=1;t&&ve(e)&&(s=e.offsetWidth>0&&Te(i.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Te(i.height)/e.offsetHeight||1);var r=(be(e)?_e(e):window).visualViewport,a=!Ce()&&n,l=(i.left+(a&&r?r.offsetLeft:0))/s,c=(i.top+(a&&r?r.offsetTop:0))/o,u=i.width/s,h=i.height/o;return{width:u,height:h,top:c,right:l+u,bottom:c+h,left:l,x:l,y:c}}function Le(e){var t=ke(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function De(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&ye(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Se(e){return _e(e).getComputedStyle(e)}function Pe(e){return["table","td","th"].indexOf(me(e))>=0}function $e(e){return((be(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ie(e){return"html"===me(e)?e:e.assignedSlot||e.parentNode||(ye(e)?e.host:null)||$e(e)}function je(e){return ve(e)&&"fixed"!==Se(e).position?e.offsetParent:null}function Ne(e){for(var t=_e(e),n=je(e);n&&Pe(n)&&"static"===Se(n).position;)n=je(n);return n&&("html"===me(n)||"body"===me(n)&&"static"===Se(n).position)?t:n||function(e){var t=/firefox/i.test(Oe());if(/Trident/i.test(Oe())&&ve(e)&&"fixed"===Se(e).position)return null;var n=Ie(e);for(ye(n)&&(n=n.host);ve(n)&&["html","body"].indexOf(me(n))<0;){var i=Se(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||t&&"filter"===i.willChange||t&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(e)||t}function Me(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Fe(e,t,n){return xe(e,Ae(t,n))}function He(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Re(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var Be={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,i=e.name,s=e.options,o=n.elements.arrow,r=n.modifiersData.popperOffsets,a=Ee(n.placement),l=Me(a),c=[X,U].indexOf(a)>=0?"height":"width";if(o&&r){var u=function(e,t){return He("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Re(e,J))}(s.padding,n),h=Le(o),d="y"===l?Q:X,f="y"===l?K:U,p=n.rects.reference[c]+n.rects.reference[l]-r[l]-n.rects.popper[c],g=r[l]-n.rects.reference[l],m=Ne(o),_=m?"y"===l?m.clientHeight||0:m.clientWidth||0:0,b=p/2-g/2,v=u[d],y=_-h[c]-u[f],w=_/2-h[c]/2+b,E=Fe(v,w,y),x=l;n.modifiersData[i]=((t={})[x]=E,t.centerOffset=E-w,t)}},effect:function(e){var t=e.state,n=e.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=t.elements.popper.querySelector(i)))&&De(t.elements.popper,i)&&(t.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function We(e){return e.split("-")[1]}var ze={top:"auto",right:"auto",bottom:"auto",left:"auto"};function qe(e){var t,n=e.popper,i=e.popperRect,s=e.placement,o=e.variation,r=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,h=e.isFixed,d=r.x,f=void 0===d?0:d,p=r.y,g=void 0===p?0:p,m="function"==typeof u?u({x:f,y:g}):{x:f,y:g};f=m.x,g=m.y;var _=r.hasOwnProperty("x"),b=r.hasOwnProperty("y"),v=X,y=Q,w=window;if(c){var E=Ne(n),x="clientHeight",A="clientWidth";if(E===_e(n)&&"static"!==Se(E=$e(n)).position&&"absolute"===a&&(x="scrollHeight",A="scrollWidth"),s===Q||(s===X||s===U)&&o===Z)y=K,g-=(h&&E===w&&w.visualViewport?w.visualViewport.height:E[x])-i.height,g*=l?1:-1;if(s===X||(s===Q||s===K)&&o===Z)v=U,f-=(h&&E===w&&w.visualViewport?w.visualViewport.width:E[A])-i.width,f*=l?1:-1}var T,O=Object.assign({position:a},c&&ze),C=!0===u?function(e,t){var n=e.x,i=e.y,s=t.devicePixelRatio||1;return{x:Te(n*s)/s||0,y:Te(i*s)/s||0}}({x:f,y:g},_e(n)):{x:f,y:g};return f=C.x,g=C.y,l?Object.assign({},O,((T={})[y]=b?"0":"",T[v]=_?"0":"",T.transform=(w.devicePixelRatio||1)<=1?"translate("+f+"px, "+g+"px)":"translate3d("+f+"px, "+g+"px, 0)",T)):Object.assign({},O,((t={})[y]=b?g+"px":"",t[v]=_?f+"px":"",t.transform="",t))}var Ve={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,i=n.gpuAcceleration,s=void 0===i||i,o=n.adaptive,r=void 0===o||o,a=n.roundOffsets,l=void 0===a||a,c={placement:Ee(t.placement),variation:We(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,qe(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:r,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,qe(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},Qe={passive:!0};var Ke={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,i=e.options,s=i.scroll,o=void 0===s||s,r=i.resize,a=void 0===r||r,l=_e(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach((function(e){e.addEventListener("scroll",n.update,Qe)})),a&&l.addEventListener("resize",n.update,Qe),function(){o&&c.forEach((function(e){e.removeEventListener("scroll",n.update,Qe)})),a&&l.removeEventListener("resize",n.update,Qe)}},data:{}},Ue={left:"right",right:"left",bottom:"top",top:"bottom"};function Xe(e){return e.replace(/left|right|bottom|top/g,(function(e){return Ue[e]}))}var Ye={start:"end",end:"start"};function Je(e){return e.replace(/start|end/g,(function(e){return Ye[e]}))}function Ge(e){var t=_e(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ze(e){return ke($e(e)).left+Ge(e).scrollLeft}function et(e){var t=Se(e),n=t.overflow,i=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+i)}function tt(e){return["html","body","#document"].indexOf(me(e))>=0?e.ownerDocument.body:ve(e)&&et(e)?e:tt(Ie(e))}function nt(e,t){var n;void 0===t&&(t=[]);var i=tt(e),s=i===(null==(n=e.ownerDocument)?void 0:n.body),o=_e(i),r=s?[o].concat(o.visualViewport||[],et(i)?i:[]):i,a=t.concat(r);return s?a:a.concat(nt(Ie(r)))}function it(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function st(e,t,n){return t===te?it(function(e,t){var n=_e(e),i=$e(e),s=n.visualViewport,o=i.clientWidth,r=i.clientHeight,a=0,l=0;if(s){o=s.width,r=s.height;var c=Ce();(c||!c&&"fixed"===t)&&(a=s.offsetLeft,l=s.offsetTop)}return{width:o,height:r,x:a+Ze(e),y:l}}(e,n)):be(t)?function(e,t){var n=ke(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):it(function(e){var t,n=$e(e),i=Ge(e),s=null==(t=e.ownerDocument)?void 0:t.body,o=xe(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),r=xe(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),a=-i.scrollLeft+Ze(e),l=-i.scrollTop;return"rtl"===Se(s||n).direction&&(a+=xe(n.clientWidth,s?s.clientWidth:0)-o),{width:o,height:r,x:a,y:l}}($e(e)))}function ot(e,t,n,i){var s="clippingParents"===t?function(e){var t=nt(Ie(e)),n=["absolute","fixed"].indexOf(Se(e).position)>=0&&ve(e)?Ne(e):e;return be(n)?t.filter((function(e){return be(e)&&De(e,n)&&"body"!==me(e)})):[]}(e):[].concat(t),o=[].concat(s,[n]),r=o[0],a=o.reduce((function(t,n){var s=st(e,n,i);return t.top=xe(s.top,t.top),t.right=Ae(s.right,t.right),t.bottom=Ae(s.bottom,t.bottom),t.left=xe(s.left,t.left),t}),st(e,r,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function rt(e){var t,n=e.reference,i=e.element,s=e.placement,o=s?Ee(s):null,r=s?We(s):null,a=n.x+n.width/2-i.width/2,l=n.y+n.height/2-i.height/2;switch(o){case Q:t={x:a,y:n.y-i.height};break;case K:t={x:a,y:n.y+n.height};break;case U:t={x:n.x+n.width,y:l};break;case X:t={x:n.x-i.width,y:l};break;default:t={x:n.x,y:n.y}}var c=o?Me(o):null;if(null!=c){var u="y"===c?"height":"width";switch(r){case G:t[c]=t[c]-(n[u]/2-i[u]/2);break;case Z:t[c]=t[c]+(n[u]/2-i[u]/2)}}return t}function at(e,t){void 0===t&&(t={});var n=t,i=n.placement,s=void 0===i?e.placement:i,o=n.strategy,r=void 0===o?e.strategy:o,a=n.boundary,l=void 0===a?ee:a,c=n.rootBoundary,u=void 0===c?te:c,h=n.elementContext,d=void 0===h?ne:h,f=n.altBoundary,p=void 0!==f&&f,g=n.padding,m=void 0===g?0:g,_=He("number"!=typeof m?m:Re(m,J)),b=d===ne?ie:ne,v=e.rects.popper,y=e.elements[p?b:d],w=ot(be(y)?y:y.contextElement||$e(e.elements.popper),l,u,r),E=ke(e.elements.reference),x=rt({reference:E,element:v,strategy:"absolute",placement:s}),A=it(Object.assign({},v,x)),T=d===ne?A:E,O={top:w.top-T.top+_.top,bottom:T.bottom-w.bottom+_.bottom,left:w.left-T.left+_.left,right:T.right-w.right+_.right},C=e.modifiersData.offset;if(d===ne&&C){var k=C[s];Object.keys(O).forEach((function(e){var t=[U,K].indexOf(e)>=0?1:-1,n=[Q,K].indexOf(e)>=0?"y":"x";O[e]+=k[n]*t}))}return O}function lt(e,t){void 0===t&&(t={});var n=t,i=n.placement,s=n.boundary,o=n.rootBoundary,r=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?oe:l,u=We(i),h=u?a?se:se.filter((function(e){return We(e)===u})):J,d=h.filter((function(e){return c.indexOf(e)>=0}));0===d.length&&(d=h);var f=d.reduce((function(t,n){return t[n]=at(e,{placement:n,boundary:s,rootBoundary:o,padding:r})[Ee(n)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}var ct={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var s=n.mainAxis,o=void 0===s||s,r=n.altAxis,a=void 0===r||r,l=n.fallbackPlacements,c=n.padding,u=n.boundary,h=n.rootBoundary,d=n.altBoundary,f=n.flipVariations,p=void 0===f||f,g=n.allowedAutoPlacements,m=t.options.placement,_=Ee(m),b=l||(_===m||!p?[Xe(m)]:function(e){if(Ee(e)===Y)return[];var t=Xe(e);return[Je(e),t,Je(t)]}(m)),v=[m].concat(b).reduce((function(e,n){return e.concat(Ee(n)===Y?lt(t,{placement:n,boundary:u,rootBoundary:h,padding:c,flipVariations:p,allowedAutoPlacements:g}):n)}),[]),y=t.rects.reference,w=t.rects.popper,E=new Map,x=!0,A=v[0],T=0;T<v.length;T++){var O=v[T],C=Ee(O),k=We(O)===G,L=[Q,K].indexOf(C)>=0,D=L?"width":"height",S=at(t,{placement:O,boundary:u,rootBoundary:h,altBoundary:d,padding:c}),P=L?k?U:X:k?K:Q;y[D]>w[D]&&(P=Xe(P));var $=Xe(P),I=[];if(o&&I.push(S[C]<=0),a&&I.push(S[P]<=0,S[$]<=0),I.every((function(e){return e}))){A=O,x=!1;break}E.set(O,I)}if(x)for(var j=function(e){var t=v.find((function(t){var n=E.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return A=t,"break"},N=p?3:1;N>0;N--){if("break"===j(N))break}t.placement!==A&&(t.modifiersData[i]._skip=!0,t.placement=A,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function ut(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function ht(e){return[Q,U,K,X].some((function(t){return e[t]>=0}))}var dt={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,i=t.rects.reference,s=t.rects.popper,o=t.modifiersData.preventOverflow,r=at(t,{elementContext:"reference"}),a=at(t,{altBoundary:!0}),l=ut(r,i),c=ut(a,s,o),u=ht(l),h=ht(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":h})}};var ft={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,i=e.name,s=n.offset,o=void 0===s?[0,0]:s,r=oe.reduce((function(e,n){return e[n]=function(e,t,n){var i=Ee(e),s=[X,Q].indexOf(i)>=0?-1:1,o="function"==typeof n?n(Object.assign({},t,{placement:e})):n,r=o[0],a=o[1];return r=r||0,a=(a||0)*s,[X,U].indexOf(i)>=0?{x:a,y:r}:{x:r,y:a}}(n,t.rects,o),e}),{}),a=r[t.placement],l=a.x,c=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[i]=r}};var pt={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=rt({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var gt={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name,s=n.mainAxis,o=void 0===s||s,r=n.altAxis,a=void 0!==r&&r,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,h=n.padding,d=n.tether,f=void 0===d||d,p=n.tetherOffset,g=void 0===p?0:p,m=at(t,{boundary:l,rootBoundary:c,padding:h,altBoundary:u}),_=Ee(t.placement),b=We(t.placement),v=!b,y=Me(_),w="x"===y?"y":"x",E=t.modifiersData.popperOffsets,x=t.rects.reference,A=t.rects.popper,T="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,O="number"==typeof T?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),C=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,k={x:0,y:0};if(E){if(o){var L,D="y"===y?Q:X,S="y"===y?K:U,P="y"===y?"height":"width",$=E[y],I=$+m[D],j=$-m[S],N=f?-A[P]/2:0,M=b===G?x[P]:A[P],F=b===G?-A[P]:-x[P],H=t.elements.arrow,R=f&&H?Le(H):{width:0,height:0},B=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},W=B[D],z=B[S],q=Fe(0,x[P],R[P]),V=v?x[P]/2-N-q-W-O.mainAxis:M-q-W-O.mainAxis,Y=v?-x[P]/2+N+q+z+O.mainAxis:F+q+z+O.mainAxis,J=t.elements.arrow&&Ne(t.elements.arrow),Z=J?"y"===y?J.clientTop||0:J.clientLeft||0:0,ee=null!=(L=null==C?void 0:C[y])?L:0,te=$+Y-ee,ne=Fe(f?Ae(I,$+V-ee-Z):I,$,f?xe(j,te):j);E[y]=ne,k[y]=ne-$}if(a){var ie,se="x"===y?Q:X,oe="x"===y?K:U,re=E[w],ae="y"===w?"height":"width",le=re+m[se],ce=re-m[oe],ue=-1!==[Q,X].indexOf(_),he=null!=(ie=null==C?void 0:C[w])?ie:0,de=ue?le:re-x[ae]-A[ae]-he+O.altAxis,fe=ue?re+x[ae]+A[ae]-he-O.altAxis:ce,pe=f&&ue?function(e,t,n){var i=Fe(e,t,n);return i>n?n:i}(de,re,fe):Fe(f?de:le,re,f?fe:ce);E[w]=pe,k[w]=pe-re}t.modifiersData[i]=k}},requiresIfExists:["offset"]};function mt(e,t,n){void 0===n&&(n=!1);var i,s,o=ve(t),r=ve(t)&&function(e){var t=e.getBoundingClientRect(),n=Te(t.width)/e.offsetWidth||1,i=Te(t.height)/e.offsetHeight||1;return 1!==n||1!==i}(t),a=$e(t),l=ke(e,r,n),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(o||!o&&!n)&&(("body"!==me(t)||et(a))&&(c=(i=t)!==_e(i)&&ve(i)?{scrollLeft:(s=i).scrollLeft,scrollTop:s.scrollTop}:Ge(i)),ve(t)?((u=ke(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):a&&(u.x=Ze(a))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function _t(e){var t=new Map,n=new Set,i=[];function s(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var i=t.get(e);i&&s(i)}})),i.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||s(e)})),i}var bt={placement:"bottom",modifiers:[],strategy:"absolute"};function vt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function yt(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,i=void 0===n?[]:n,s=t.defaultOptions,o=void 0===s?bt:s;return function(e,t,n){void 0===n&&(n=o);var s,r,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},bt,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,u={state:a,setOptions:function(n){var s="function"==typeof n?n(a.options):n;h(),a.options=Object.assign({},o,a.options,s),a.scrollParents={reference:be(e)?nt(e):e.contextElement?nt(e.contextElement):[],popper:nt(t)};var r,c,d=function(e){var t=_t(e);return ge.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((r=[].concat(i,a.options.modifiers),c=r.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(c).map((function(e){return c[e]}))));return a.orderedModifiers=d.filter((function(e){return e.enabled})),a.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,i=void 0===n?{}:n,s=e.effect;if("function"==typeof s){var o=s({state:a,name:t,instance:u,options:i}),r=function(){};l.push(o||r)}})),u.update()},forceUpdate:function(){if(!c){var e=a.elements,t=e.reference,n=e.popper;if(vt(t,n)){a.rects={reference:mt(t,Ne(n),"fixed"===a.options.strategy),popper:Le(n)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach((function(e){return a.modifiersData[e.name]=Object.assign({},e.data)}));for(var i=0;i<a.orderedModifiers.length;i++)if(!0!==a.reset){var s=a.orderedModifiers[i],o=s.fn,r=s.options,l=void 0===r?{}:r,h=s.name;"function"==typeof o&&(a=o({state:a,options:l,name:h,instance:u})||a)}else a.reset=!1,i=-1}}},update:(s=function(){return new Promise((function(e){u.forceUpdate(),e(a)}))},function(){return r||(r=new Promise((function(e){Promise.resolve().then((function(){r=void 0,e(s())}))}))),r}),destroy:function(){h(),c=!0}};if(!vt(e,t))return u;function h(){l.forEach((function(e){return e()})),l=[]}return u.setOptions(n).then((function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)})),u}}var wt=yt(),Et=yt({defaultModifiers:[Ke,pt,Ve,we]}),xt=yt({defaultModifiers:[Ke,pt,Ve,we,ft,ct,gt,Be,dt]}),At=t(Object.freeze({__proto__:null,popperGenerator:yt,detectOverflow:at,createPopperBase:wt,createPopper:xt,createPopperLite:Et,top:Q,bottom:K,right:U,left:X,auto:Y,basePlacements:J,start:G,end:Z,clippingParents:ee,viewport:te,popper:ne,reference:ie,variationPlacements:se,placements:oe,beforeRead:re,read:ae,afterRead:le,beforeMain:ce,main:ue,afterMain:he,beforeWrite:de,write:fe,afterWrite:pe,modifierPhases:ge,applyStyles:we,arrow:Be,computeStyles:Ve,eventListeners:Ke,flip:ct,hide:dt,offset:ft,popperOffsets:pt,preventOverflow:gt}));
/*!
* Bootstrap dropdown.js v5.3.1 (https://getbootstrap.com/)
* Copyright 2011-2023 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
*/
!function(e,t){e.exports=function(e,t,n,i,s,o){function r(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e)for(const n in e)if("default"!==n){const i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:()=>e[n]})}return t.default=e,Object.freeze(t)}const a=r(e),l="dropdown",c=".bs.dropdown",u=".data-api",h="Escape",d="Tab",f="ArrowUp",p="ArrowDown",g=2,m=`hide${c}`,_=`hidden${c}`,b=`show${c}`,v=`shown${c}`,y=`click${c}${u}`,w=`keydown${c}${u}`,E=`keyup${c}${u}`,x="show",A="dropup",T="dropend",O="dropstart",C="dropup-center",k="dropdown-center",L='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',D=`${L}.${x}`,S=".dropdown-menu",P=".navbar",$=".navbar-nav",I=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",N=o.isRTL()?"top-end":"top-start",j=o.isRTL()?"top-start":"top-end",M=o.isRTL()?"bottom-end":"bottom-start",F=o.isRTL()?"bottom-start":"bottom-end",H=o.isRTL()?"left-start":"right-start",R=o.isRTL()?"right-start":"left-start",B="top",W="bottom",z={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},q={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class V extends t{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=s.next(this._element,S)[0]||s.prev(this._element,S)[0]||s.findOne(S,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return z}static get DefaultType(){return q}static get NAME(){return l}toggle(){return this._isShown()?this.hide():this.show()}show(){if(o.isDisabled(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!n.trigger(this._element,b,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest($))for(const e of[].concat(...document.body.children))n.on(e,"mouseover",o.noop);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(x),this._element.classList.add(x),n.trigger(this._element,v,e)}}hide(){if(o.isDisabled(this._element)||!this._isShown())return;const e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!n.trigger(this._element,m,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))n.off(e,"mouseover",o.noop);this._popper&&this._popper.destroy(),this._menu.classList.remove(x),this._element.classList.remove(x),this._element.setAttribute("aria-expanded","false"),i.removeDataAttribute(this._menu,"popper"),n.trigger(this._element,_,e)}}_getConfig(e){if("object"==typeof(e=super._getConfig(e)).reference&&!o.isElement(e.reference)&&"function"!=typeof e.reference.getBoundingClientRect)throw new TypeError(`${l.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(void 0===a)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let e=this._element;"parent"===this._config.reference?e=this._parent:o.isElement(this._config.reference)?e=o.getElement(this._config.reference):"object"==typeof this._config.reference&&(e=this._config.reference);const t=this._getPopperConfig();this._popper=a.createPopper(e,this._menu,t)}_isShown(){return this._menu.classList.contains(x)}_getPlacement(){const e=this._parent;if(e.classList.contains(T))return H;if(e.classList.contains(O))return R;if(e.classList.contains(C))return B;if(e.classList.contains(k))return W;const t="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return e.classList.contains(A)?t?j:N:t?F:M}_detectNavbar(){return null!==this._element.closest(P)}_getOffset(){const{offset:e}=this._config;return"string"==typeof e?e.split(",").map((e=>Number.parseInt(e,10))):"function"==typeof e?t=>e(t,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||"static"===this._config.display)&&(i.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...o.execute(this._config.popperConfig,[e])}}_selectMenuItem({key:e,target:t}){const n=s.find(I,this._menu).filter((e=>o.isVisible(e)));n.length&&o.getNextActiveElement(n,t,e===p,!n.includes(t)).focus()}static jQueryInterface(e){return this.each((function(){const t=V.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}static clearMenus(e){if(e.button===g||"keyup"===e.type&&e.key!==d)return;const t=s.find(D);for(const n of t){const t=V.getInstance(n);if(!t||!1===t._config.autoClose)continue;const i=e.composedPath(),s=i.includes(t._menu);if(i.includes(t._element)||"inside"===t._config.autoClose&&!s||"outside"===t._config.autoClose&&s)continue;if(t._menu.contains(e.target)&&("keyup"===e.type&&e.key===d||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const o={relatedTarget:t._element};"click"===e.type&&(o.clickEvent=e),t._completeHide(o)}}static dataApiKeydownHandler(e){const t=/input|textarea/i.test(e.target.tagName),n=e.key===h,i=[f,p].includes(e.key);if(!i&&!n)return;if(t&&!n)return;e.preventDefault();const o=this.matches(L)?this:s.prev(this,L)[0]||s.next(this,L)[0]||s.findOne(L,e.delegateTarget.parentNode),r=V.getOrCreateInstance(o);if(i)return e.stopPropagation(),r.show(),void r._selectMenuItem(e);r._isShown()&&(e.stopPropagation(),r.hide(),o.focus())}}return n.on(document,w,L,V.dataApiKeydownHandler),n.on(document,w,S,V.dataApiKeydownHandler),n.on(document,y,V.clearMenus),n.on(document,E,V.clearMenus),n.on(document,y,L,(function(e){e.preventDefault(),V.getOrCreateInstance(this).toggle()})),o.defineJQueryPlugin(V),V}(At,T(),g(),x(),S(),p())}(V);var Tt,Ot=q,Ct={},kt={},Lt={get exports(){return kt},set exports(e){kt=e}};function Dt(){return Tt||(Tt=1,function(e,t){e.exports=function(e,t,n){const i="backdrop",s="fade",o="show",r=`mousedown.bs.${i}`,a={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},l={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class c extends t{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return a}static get DefaultType(){return l}static get NAME(){return i}show(e){if(!this._config.isVisible)return void n.execute(e);this._append();const t=this._getElement();this._config.isAnimated&&n.reflow(t),t.classList.add(o),this._emulateAnimation((()=>{n.execute(e)}))}hide(e){this._config.isVisible?(this._getElement().classList.remove(o),this._emulateAnimation((()=>{this.dispose(),n.execute(e)}))):n.execute(e)}dispose(){this._isAppended&&(e.off(this._element,r),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add(s),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=n.getElement(e.rootElement),e}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),e.on(t,r,(()=>{n.execute(this._config.clickCallback)})),this._isAppended=!0}_emulateAnimation(e){n.executeAfterTransition(e,this._getElement(),this._config.isAnimated)}}return c}(g(),A(),p())}(Lt)),kt}var St,Pt={},$t={get exports(){return Pt},set exports(e){Pt=e}};function It(){return St||(St=1,function(e,t){e.exports=function(e,t,n){const i="focustrap",s=".bs.focustrap",o=`focusin${s}`,r=`keydown.tab${s}`,a="Tab",l="forward",c="backward",u={autofocus:!0,trapElement:null},h={autofocus:"boolean",trapElement:"element"};class d extends n{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return u}static get DefaultType(){return h}static get NAME(){return i}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),e.off(document,s),e.on(document,o,(e=>this._handleFocusin(e))),e.on(document,r,(e=>this._handleKeydown(e))),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,e.off(document,s))}_handleFocusin(e){const{trapElement:n}=this._config;if(e.target===document||e.target===n||n.contains(e.target))return;const i=t.focusableChildren(n);0===i.length?n.focus():this._lastTabNavDirection===c?i[i.length-1].focus():i[0].focus()}_handleKeydown(e){e.key===a&&(this._lastTabNavDirection=e.shiftKey?c:l)}}return d}(g(),S(),A())}($t)),Pt}var Nt,jt={},Mt={get exports(){return jt},set exports(e){jt=e}};function Ft(){return Nt||(Nt=1,function(e,t){e.exports=function(e,t,n){const i=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",s=".sticky-top",o="padding-right",r="margin-right";class a{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,o,(t=>t+e)),this._setElementAttributes(i,o,(t=>t+e)),this._setElementAttributes(s,r,(t=>t-e))}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,o),this._resetElementAttributes(i,o),this._resetElementAttributes(s,r)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,t,n){const i=this.getWidth(),s=e=>{if(e!==this._element&&window.innerWidth>e.clientWidth+i)return;this._saveInitialAttribute(e,t);const s=window.getComputedStyle(e).getPropertyValue(t);e.style.setProperty(t,`${n(Number.parseFloat(s))}px`)};this._applyManipulationCallback(e,s)}_saveInitialAttribute(t,n){const i=t.style.getPropertyValue(n);i&&e.setDataAttribute(t,n,i)}_resetElementAttributes(t,n){const i=t=>{const i=e.getDataAttribute(t,n);null!==i?(e.removeDataAttribute(t,n),t.style.setProperty(n,i)):t.style.removeProperty(n)};this._applyManipulationCallback(t,i)}_applyManipulationCallback(e,i){if(n.isElement(e))i(e);else for(const n of t.find(e,this._element))i(n)}}return a}(x(),S(),p())}(Mt)),jt}
!function(e,t){e.exports=function(e,t,n,i,s,o){function r(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e)for(const n in e)if("default"!==n){const i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:()=>e[n]})}return t.default=e,Object.freeze(t)}const a=r(e),l="dropdown",c=".bs.dropdown",u=".data-api",h="Escape",d="Tab",f="ArrowUp",p="ArrowDown",g=2,m=`hide${c}`,_=`hidden${c}`,b=`show${c}`,v=`shown${c}`,y=`click${c}${u}`,w=`keydown${c}${u}`,E=`keyup${c}${u}`,x="show",A="dropup",T="dropend",O="dropstart",C="dropup-center",k="dropdown-center",L='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',D=`${L}.${x}`,S=".dropdown-menu",P=".navbar",$=".navbar-nav",I=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",j=o.isRTL()?"top-end":"top-start",N=o.isRTL()?"top-start":"top-end",M=o.isRTL()?"bottom-end":"bottom-start",F=o.isRTL()?"bottom-start":"bottom-end",H=o.isRTL()?"left-start":"right-start",R=o.isRTL()?"right-start":"left-start",B="top",W="bottom",z={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},q={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class V extends t{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=s.next(this._element,S)[0]||s.prev(this._element,S)[0]||s.findOne(S,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return z}static get DefaultType(){return q}static get NAME(){return l}toggle(){return this._isShown()?this.hide():this.show()}show(){if(o.isDisabled(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!n.trigger(this._element,b,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest($))for(const e of[].concat(...document.body.children))n.on(e,"mouseover",o.noop);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(x),this._element.classList.add(x),n.trigger(this._element,v,e)}}hide(){if(o.isDisabled(this._element)||!this._isShown())return;const e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!n.trigger(this._element,m,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))n.off(e,"mouseover",o.noop);this._popper&&this._popper.destroy(),this._menu.classList.remove(x),this._element.classList.remove(x),this._element.setAttribute("aria-expanded","false"),i.removeDataAttribute(this._menu,"popper"),n.trigger(this._element,_,e)}}_getConfig(e){if("object"==typeof(e=super._getConfig(e)).reference&&!o.isElement(e.reference)&&"function"!=typeof e.reference.getBoundingClientRect)throw new TypeError(`${l.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(void 0===a)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let e=this._element;"parent"===this._config.reference?e=this._parent:o.isElement(this._config.reference)?e=o.getElement(this._config.reference):"object"==typeof this._config.reference&&(e=this._config.reference);const t=this._getPopperConfig();this._popper=a.createPopper(e,this._menu,t)}_isShown(){return this._menu.classList.contains(x)}_getPlacement(){const e=this._parent;if(e.classList.contains(T))return H;if(e.classList.contains(O))return R;if(e.classList.contains(C))return B;if(e.classList.contains(k))return W;const t="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return e.classList.contains(A)?t?N:j:t?F:M}_detectNavbar(){return null!==this._element.closest(P)}_getOffset(){const{offset:e}=this._config;return"string"==typeof e?e.split(",").map((e=>Number.parseInt(e,10))):"function"==typeof e?t=>e(t,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||"static"===this._config.display)&&(i.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...o.execute(this._config.popperConfig,[e])}}_selectMenuItem({key:e,target:t}){const n=s.find(I,this._menu).filter((e=>o.isVisible(e)));n.length&&o.getNextActiveElement(n,t,e===p,!n.includes(t)).focus()}static jQueryInterface(e){return this.each((function(){const t=V.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}static clearMenus(e){if(e.button===g||"keyup"===e.type&&e.key!==d)return;const t=s.find(D);for(const n of t){const t=V.getInstance(n);if(!t||!1===t._config.autoClose)continue;const i=e.composedPath(),s=i.includes(t._menu);if(i.includes(t._element)||"inside"===t._config.autoClose&&!s||"outside"===t._config.autoClose&&s)continue;if(t._menu.contains(e.target)&&("keyup"===e.type&&e.key===d||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const o={relatedTarget:t._element};"click"===e.type&&(o.clickEvent=e),t._completeHide(o)}}static dataApiKeydownHandler(e){const t=/input|textarea/i.test(e.target.tagName),n=e.key===h,i=[f,p].includes(e.key);if(!i&&!n)return;if(t&&!n)return;e.preventDefault();const o=this.matches(L)?this:s.prev(this,L)[0]||s.next(this,L)[0]||s.findOne(L,e.delegateTarget.parentNode),r=V.getOrCreateInstance(o);if(i)return e.stopPropagation(),r.show(),void r._selectMenuItem(e);r._isShown()&&(e.stopPropagation(),r.hide(),o.focus())}}return n.on(document,w,L,V.dataApiKeydownHandler),n.on(document,w,S,V.dataApiKeydownHandler),n.on(document,y,V.clearMenus),n.on(document,E,V.clearMenus),n.on(document,y,L,(function(e){e.preventDefault(),V.getOrCreateInstance(this).toggle()})),o.defineJQueryPlugin(V),V}(At,T(),g(),x(),S(),p())}(V);var Tt,Ot=q,Ct={},kt={},Lt={get exports(){return kt},set exports(e){kt=e}};function Dt(){return Tt||(Tt=1,function(e,t){e.exports=function(e,t,n){const i="backdrop",s="fade",o="show",r=`mousedown.bs.${i}`,a={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},l={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class c extends t{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return a}static get DefaultType(){return l}static get NAME(){return i}show(e){if(!this._config.isVisible)return void n.execute(e);this._append();const t=this._getElement();this._config.isAnimated&&n.reflow(t),t.classList.add(o),this._emulateAnimation((()=>{n.execute(e)}))}hide(e){this._config.isVisible?(this._getElement().classList.remove(o),this._emulateAnimation((()=>{this.dispose(),n.execute(e)}))):n.execute(e)}dispose(){this._isAppended&&(e.off(this._element,r),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add(s),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=n.getElement(e.rootElement),e}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),e.on(t,r,(()=>{n.execute(this._config.clickCallback)})),this._isAppended=!0}_emulateAnimation(e){n.executeAfterTransition(e,this._getElement(),this._config.isAnimated)}}return c}(g(),A(),p())}(Lt)),kt}var St,Pt={},$t={get exports(){return Pt},set exports(e){Pt=e}};function It(){return St||(St=1,function(e,t){e.exports=function(e,t,n){const i="focustrap",s=".bs.focustrap",o=`focusin${s}`,r=`keydown.tab${s}`,a="Tab",l="forward",c="backward",u={autofocus:!0,trapElement:null},h={autofocus:"boolean",trapElement:"element"};class d extends n{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return u}static get DefaultType(){return h}static get NAME(){return i}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),e.off(document,s),e.on(document,o,(e=>this._handleFocusin(e))),e.on(document,r,(e=>this._handleKeydown(e))),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,e.off(document,s))}_handleFocusin(e){const{trapElement:n}=this._config;if(e.target===document||e.target===n||n.contains(e.target))return;const i=t.focusableChildren(n);0===i.length?n.focus():this._lastTabNavDirection===c?i[i.length-1].focus():i[0].focus()}_handleKeydown(e){e.key===a&&(this._lastTabNavDirection=e.shiftKey?c:l)}}return d}(g(),S(),A())}($t)),Pt}var jt,Nt={},Mt={get exports(){return Nt},set exports(e){Nt=e}};function Ft(){return jt||(jt=1,function(e,t){e.exports=function(e,t,n){const i=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",s=".sticky-top",o="padding-right",r="margin-right";class a{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,o,(t=>t+e)),this._setElementAttributes(i,o,(t=>t+e)),this._setElementAttributes(s,r,(t=>t-e))}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,o),this._resetElementAttributes(i,o),this._resetElementAttributes(s,r)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,t,n){const i=this.getWidth(),s=e=>{if(e!==this._element&&window.innerWidth>e.clientWidth+i)return;this._saveInitialAttribute(e,t);const s=window.getComputedStyle(e).getPropertyValue(t);e.style.setProperty(t,`${n(Number.parseFloat(s))}px`)};this._applyManipulationCallback(e,s)}_saveInitialAttribute(t,n){const i=t.style.getPropertyValue(n);i&&e.setDataAttribute(t,n,i)}_resetElementAttributes(t,n){const i=t=>{const i=e.getDataAttribute(t,n);null!==i?(e.removeDataAttribute(t,n),t.style.setProperty(n,i)):t.style.removeProperty(n)};this._applyManipulationCallback(t,i)}_applyManipulationCallback(e,i){if(n.isElement(e))i(e);else for(const n of t.find(e,this._element))i(n)}}return a}(x(),S(),p())}(Mt)),Nt}
/*!
* Bootstrap modal.js v5.3.1 (https://getbootstrap.com/)
* Copyright 2011-2023 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
......@@ -90,5 +90,5 @@
* Copyright 2011-2023 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
*/
!function(e,t){e.exports=function(e,t,n,i){const s="toast",o=".bs.toast",r=`mouseover${o}`,a=`mouseout${o}`,l=`focusin${o}`,c=`focusout${o}`,u=`hide${o}`,h=`hidden${o}`,d=`show${o}`,f=`shown${o}`,p="fade",g="hide",m="show",_="showing",b={animation:"boolean",autohide:"boolean",delay:"number"},v={animation:!0,autohide:!0,delay:5e3};class y extends e{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return v}static get DefaultType(){return b}static get NAME(){return s}show(){if(t.trigger(this._element,d).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(p);const e=()=>{this._element.classList.remove(_),t.trigger(this._element,f),this._maybeScheduleHide()};this._element.classList.remove(g),i.reflow(this._element),this._element.classList.add(m,_),this._queueCallback(e,this._element,this._config.animation)}hide(){if(!this.isShown())return;if(t.trigger(this._element,u).defaultPrevented)return;const e=()=>{this._element.classList.add(g),this._element.classList.remove(_,m),t.trigger(this._element,h)};this._element.classList.add(_),this._queueCallback(e,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(m),super.dispose()}isShown(){return this._element.classList.contains(m)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout((()=>{this.hide()}),this._config.delay)))}_onInteraction(e,t){switch(e.type){case"mouseover":case"mouseout":this._hasMouseInteraction=t;break;case"focusin":case"focusout":this._hasKeyboardInteraction=t}if(t)return void this._clearTimeout();const n=e.relatedTarget;this._element===n||this._element.contains(n)||this._maybeScheduleHide()}_setListeners(){t.on(this._element,r,(e=>this._onInteraction(e,!0))),t.on(this._element,a,(e=>this._onInteraction(e,!1))),t.on(this._element,l,(e=>this._onInteraction(e,!0))),t.on(this._element,c,(e=>this._onInteraction(e,!1)))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each((function(){const t=y.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}return n.enableDismissTrigger(y),i.defineJQueryPlugin(y),y}(T(),g(),P(),p())}({get exports(){return on},set exports(e){on=e}});var rn,an,ln,cn=on;rn=navigator.userAgent.toLowerCase().indexOf("webkit")>-1,an=navigator.userAgent.toLowerCase().indexOf("opera")>-1,ln=navigator.userAgent.toLowerCase().indexOf("msie")>-1,(rn||an||ln)&&document.getElementById&&window.addEventListener&&window.addEventListener("hashchange",(function(){var e,t=location.hash.substring(1);/^[A-z0-9_-]+$/.test(t)&&(e=document.getElementById(t))&&(/^(?:a|select|input|button|textarea)$/i.test(e.tagName)||(e.tabIndex=-1),e.focus())}),!1),jQuery(document).ready((function(e){e(".story-body-image").each((function(t){e(this).parents(".wp-block-column").attr("style","background-image:url("+e(this).children("img").attr("src")+");"),e(this).children("img").hide()})),e(".story-body-image-full").each((function(t){e(this).parents(".wp-block-columns").attr("style","background-image:url("+e(this).children("img").attr("src")+");"),e(this).children("img").hide()}))})),e.Alert=$,e.Button=j,e.Carousel=B,e.Collapse=z,e.Dropdown=Ot,e.Modal=Ht,e.Offcanvas=Wt,e.Popover=Zt,e.Scrollspy=tn,e.Tab=sn,e.Toast=cn,e.Tooltip=Gt,Object.defineProperty(e,"__esModule",{value:!0})}));
!function(e,t){e.exports=function(e,t,n,i){const s="toast",o=".bs.toast",r=`mouseover${o}`,a=`mouseout${o}`,l=`focusin${o}`,c=`focusout${o}`,u=`hide${o}`,h=`hidden${o}`,d=`show${o}`,f=`shown${o}`,p="fade",g="hide",m="show",_="showing",b={animation:"boolean",autohide:"boolean",delay:"number"},v={animation:!0,autohide:!0,delay:5e3};class y extends e{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return v}static get DefaultType(){return b}static get NAME(){return s}show(){if(t.trigger(this._element,d).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(p);const e=()=>{this._element.classList.remove(_),t.trigger(this._element,f),this._maybeScheduleHide()};this._element.classList.remove(g),i.reflow(this._element),this._element.classList.add(m,_),this._queueCallback(e,this._element,this._config.animation)}hide(){if(!this.isShown())return;if(t.trigger(this._element,u).defaultPrevented)return;const e=()=>{this._element.classList.add(g),this._element.classList.remove(_,m),t.trigger(this._element,h)};this._element.classList.add(_),this._queueCallback(e,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(m),super.dispose()}isShown(){return this._element.classList.contains(m)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout((()=>{this.hide()}),this._config.delay)))}_onInteraction(e,t){switch(e.type){case"mouseover":case"mouseout":this._hasMouseInteraction=t;break;case"focusin":case"focusout":this._hasKeyboardInteraction=t}if(t)return void this._clearTimeout();const n=e.relatedTarget;this._element===n||this._element.contains(n)||this._maybeScheduleHide()}_setListeners(){t.on(this._element,r,(e=>this._onInteraction(e,!0))),t.on(this._element,a,(e=>this._onInteraction(e,!1))),t.on(this._element,l,(e=>this._onInteraction(e,!0))),t.on(this._element,c,(e=>this._onInteraction(e,!1)))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each((function(){const t=y.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}return n.enableDismissTrigger(y),i.defineJQueryPlugin(y),y}(T(),g(),P(),p())}({get exports(){return on},set exports(e){on=e}});var rn,an,ln,cn=on;rn=navigator.userAgent.toLowerCase().indexOf("webkit")>-1,an=navigator.userAgent.toLowerCase().indexOf("opera")>-1,ln=navigator.userAgent.toLowerCase().indexOf("msie")>-1,(rn||an||ln)&&document.getElementById&&window.addEventListener&&window.addEventListener("hashchange",(function(){var e,t=location.hash.substring(1);/^[A-z0-9_-]+$/.test(t)&&(e=document.getElementById(t))&&(/^(?:a|select|input|button|textarea)$/i.test(e.tagName)||(e.tabIndex=-1),e.focus())}),!1),jQuery(document).ready((function(e){e(".story-body-image").each((function(t){e(this).parents(".wp-block-column").attr("style","background-image:url("+e(this).children("img").attr("src")+");"),e(this).children("img").hide()})),e(".story-body-image-full").each((function(t){e(this).parents(".wp-block-columns").attr("style","background-image:url("+e(this).children("img").attr("src")+");"),e(this).children("img").hide()})),document.addEventListener("wpcf7mailsent",(function(e){"6"==e.detail.contactFormId&&jQuery("#contest_popup").modal("show"),"108"==e.detail.contactFormId&&jQuery("#contact_popup").modal("show")}),!1)})),e.Alert=$,e.Button=N,e.Carousel=B,e.Collapse=z,e.Dropdown=Ot,e.Modal=Ht,e.Offcanvas=Wt,e.Popover=Zt,e.Scrollspy=tn,e.Tab=sn,e.Toast=cn,e.Tooltip=Gt,Object.defineProperty(e,"__esModule",{value:!0})}));
//# sourceMappingURL=child-theme.min.js.map
\ No newline at end of file
......
This diff could not be displayed because it is too large.
......@@ -9,5 +9,17 @@ jQuery( document ).ready(function($) {
$(this).parents('.wp-block-columns').attr("style", 'background-image:url('+$(this).children('img').attr('src')+');')
$(this).children('img').hide();
})
})
\ No newline at end of file
});
document.addEventListener( 'wpcf7mailsent', function( event ) {
if ( '6' == event.detail.contactFormId ) { // Change 34 to the ID of the form
jQuery('#contest_popup').modal('show'); //this is the bootstrap modal popup id
}
if ( '108' == event.detail.contactFormId ) { // Change 34 to the ID of the form
jQuery('#contact_popup').modal('show'); //this is the bootstrap modal popup id
}
}, false );
})
......
......@@ -86,4 +86,54 @@ element.style {
color: #183668 !important;
font-size: 20px;
line-height: 25px;
}
.modal-content{
border-radius: 0px !important;
}
.modal-header{
border-bottom:0px ;
h2{
margin-top: 0px;
}
.btn-close{
top: -10px;
position: relative;
}
}
.modal-body {
padding-top: 0px;
a {
color:#1A3668 !important;
text-decoration: none;
}
a:hover{
text-decoration: underline;
}
}
.modal-footer{
border-top:0px ;
}
.contest-close{
background-color: transparent !important;
text-transform: uppercase;
max-width: 100px;
float: right;
border: 1px solid #183668 !important;
color: #183668 !important;
transition: ease-out 0.5s;
margin-top: 20px;
margin: auto;
padding: 10px 20px;
}
.contest-close:hover{
background-color: transparent !important;
color: #fff !important;
box-shadow: inset 100px 0 0 0 #183668;
transition: ease-out 0.5s;
}
\ No newline at end of file
......