소재지 ₍₍◝(・'ω'・)◟⁾⁾ 🐟️?看XM(^_−)☆哈先看看刚看过卡卡国看过了回来冷藏柜好极过估计 PNG %k25u25%fgd5n!build/et-theme-options-library-app.bundle.css000064400000114246152214575740015272 0ustar00/*! This minified app bundle contains open source software from several third party developers. Please review CREDITS.md in the root directory or LICENSE.md in the current directory for complete licensing, copyright and patent information. This file and the included code may not be redistributed without the attributions listed in LICENSE.md, including associate copyright notices and licensing information. */ @keyframes et-spinner{0%{box-shadow:0 -17px #7E3BD0,17px 0 #29C4A9,0 17px #7E3BD0,-17px 0 #29C4A9}25%{box-shadow:17px 0 #2B87DA,0 17px #29C4A9,-17px 0 #2B87DA,0 -17px #29C4A9}50%{box-shadow:0 17px #2B87DA,-17px 0 #FF9232,0 -17px #2B87DA,17px 0 #FF9232}75%{box-shadow:-17px 0 #7E3BD0,0 -17px #FF9232,17px 0 #7E3BD0,0 17px #FF9232}100%{box-shadow:0 -17px #7E3BD0,17px 0 #29C4A9,0 17px #7E3BD0,-17px 0 #29C4A9}}@keyframes et-pulse-animation{0%{transform:scale(0.95);border-color:#2b87da}10%{transform:scale(1)}20%{transform:scale(1.02)}30%{transform:scale(1.04)}40%{transform:scale(1.06)}50%{transform:scale(1.08)}60%{transform:scale(1.06);border-color:#00c3aa}70%{transform:scale(1.04)}80%{transform:scale(1.02)}80%{transform:scale(1)}100%{transform:scale(0.95);border-color:#2b87da}}.et-common-branded-modal__header{z-index:1000}.et-common-branded-modal{font-family:"Open Sans",Helvetica,Roboto,Arial,sans-serif;line-height:16px;border-radius:3px;box-shadow:0 5px 30px rgba(43,135,218,0.2);background:#fff;border-radius:3px;box-shadow:0 5px 30px rgba(43,135,218,0.2)}@media (max-width: 812px){.et-common-branded-modal{border-radius:0}}.et-common-branded-modal--fullheight{display:flex;flex-direction:column;height:100%}.et-common-branded-modal__header{display:flex;align-items:center;justify-content:space-between;background:#6C2EB9;height:58px;border-radius:3px 3px 0 0;padding:0 14px 0 26px;color:#fff;font-size:18px;font-weight:600;line-height:24px;text-transform:none;user-select:none}.et-tb-branded-modal--visual-builder .et-common-branded-modal__header{font-size:16px}.rtl .et-common-branded-modal__header{padding:0 18px 0 18px}@media (max-width: 812px){.et-common-branded-modal__header{border-radius:0}}.et-common-branded-modal--fullheight .et-common-branded-modal__header{flex:0 0 auto}.et-common-branded-modal--visual-builder .et-common-branded-modal__header{height:32px}.et-common-branded-modal__title{max-width:80%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}.et-common-branded-modal__header-buttons{display:flex} .et-common-button{box-sizing:border-box;position:relative;padding:12px;border:0;border-radius:3px;margin:0;line-height:16px;font-family:"Open Sans",Helvetica,Roboto,Arial,sans-serif;font-size:14px;font-weight:600;background:transparent;color:#fff;outline:none;cursor:pointer;transition:background 200ms ease;overflow:hidden}a.et-common-button{text-align:center;text-decoration:none;display:inline-block}a.et-common-button:hover,a.et-common-button:focus{color:#fff;border:none;outline:none;box-shadow:none}.et-common-button--round{border-radius:100px}.et-common-button--round .et-fb-icon{display:block}.et-common-button--compact{padding:8px}.et-common-button--rectangle{border-radius:3px;background:#f1f4f9;color:#5c6978}.et-common-button--primary{background:#2B87DA;color:#fff}.et-common-button--danger{background:#EF5555;color:#fff}.et-common-button--success{background:#29C4A9;color:#fff}.et-common-button--secondary{background:#29C4A9;color:#fff}.et-common-button--cancel{background:#ED5759;color:#fff}.et-common-button--tertiary{background:#7D3BCF;color:#fff}.et-common-button--meta{padding:6px;color:#fff;background:#a3b0c2;box-shadow:5px 5px 15px rgba(43,135,218,0.15);transition:padding 0.25s ease-in-out, margin 0.25s ease-in-out, bottom 0.25s ease-in-out}.et-common-button--meta:hover{padding:12px;margin:-6px} .et-common-icon{display:inline-block;vertical-align:middle}.et-common-icon svg{display:block;width:100%;fill:inherit}.et-common-icon.et-common-icon--divi-ai-light svg .cls-1{fill:url(#divi-ai-light-linear-gradient)}.et-common-icon.et-common-icon--divi-ai-light svg .cls-2{fill:#fff} @keyframes et-common-fade-in{0%{opacity:0}100%{opacity:1}}@keyframes et-common-slide-fade-in{0%{transform:translate(-30px, 0);opacity:0}100%{transform:translate(0, 0);opacity:1}}@keyframes et-common-zoom-in{0%{transform:scale(0.5, 0.5)}100%{transform:scale(1, 1)}}@keyframes et-common-bounce-in{from,20%,40%,60%,80%,to{animation-timing-function:cubic-bezier(0.215, 0.61, 0.355, 1)}0%{opacity:0;transform:scale3d(0.3, 0.3, 0.3)}20%{transform:scale3d(1.1, 1.1, 1.1)}40%{transform:scale3d(0.9, 0.9, 0.9)}60%{opacity:1;transform:scale3d(1.03, 1.03, 1.03)}80%{transform:scale3d(0.97, 0.97, 0.97)}to{opacity:1;transform:scale3d(1, 1, 1)}}.et-common-progress-bar{width:350px;left:50%;top:53%;position:absolute;transform:translateX(-50%)}.et-common-progress-bar__background{background:#F1F5F9}.et-common-progress-bar__bar{border-radius:3px;background-color:#32C4AA;background-image:linear-gradient(-45deg, rgba(255,255,255,0.3) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0.3) 75%, transparent 75%, transparent);background-size:30px 30px;animation:et-core-progress-bar-stripes 2s linear infinite;width:0%;transition:width 0.4s ease}.et-common-progress-bar__value{min-width:30px;font-weight:700;line-height:22px;text-align:center;color:#fff}.et-common-progress-bar__estimate{padding:10px 0;text-align:center;font-weight:600;color:#A6A9B2}.et-common-loader{background:transparent;transition:background, box-shadow 0.3s;height:50px;width:50px;color:#fff;border-radius:50px;text-align:center;box-shadow:rgba(0,139,219,0.25) 0 0 60px;display:block;margin:auto}.et-common-loader-success{opacity:0;animation:et-common-bounce-in 1s;animation-delay:0.3s;animation-fill-mode:forwards;background:#a9e900;box-shadow:rgba(169,233,0,0.25) 0 0 60px}.et-common-loader-success:before{font-family:'ETmodules';content:'\4e';font-weight:600;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:30px;line-height:53px} @keyframes et-spinner{0%{box-shadow:0 -17px #7E3BD0,17px 0 #29C4A9,0 17px #7E3BD0,-17px 0 #29C4A9}25%{box-shadow:17px 0 #2B87DA,0 17px #29C4A9,-17px 0 #2B87DA,0 -17px #29C4A9}50%{box-shadow:0 17px #2B87DA,-17px 0 #FF9232,0 -17px #2B87DA,17px 0 #FF9232}75%{box-shadow:-17px 0 #7E3BD0,0 -17px #FF9232,17px 0 #7E3BD0,0 17px #FF9232}100%{box-shadow:0 -17px #7E3BD0,17px 0 #29C4A9,0 17px #7E3BD0,-17px 0 #29C4A9}}@keyframes et-pulse-animation{0%{transform:scale(0.95);border-color:#2b87da}10%{transform:scale(1)}20%{transform:scale(1.02)}30%{transform:scale(1.04)}40%{transform:scale(1.06)}50%{transform:scale(1.08)}60%{transform:scale(1.06);border-color:#00c3aa}70%{transform:scale(1.04)}80%{transform:scale(1.02)}80%{transform:scale(1)}100%{transform:scale(0.95);border-color:#2b87da}}.et-common-app-spinner-block{position:relative;height:80px}.et-common-app-spinner-block--overlay{position:absolute;z-index:100;left:0;top:0;width:100%;height:100%;background:#fff}.et-common-app-spinner-block__spinner{position:absolute;background:none;width:80px;height:80px;left:calc(50% - 40px);top:calc(50% - 40px);right:auto;bottom:auto}.et-common-app-spinner-block__spinner:before{content:'';position:absolute;top:50%;left:50%;width:12px;height:12px;border-radius:12px;box-shadow:0 -17px #7E3BD0,17px 0 #7E3BD0,0 17px #7E3BD0,-17px 0 #7E3BD0;margin:-6px auto auto -6px;animation:et-spinner ease infinite 3s} .et-common-tabs-navigation{display:flex;background:#7E3BD0}.et-common-tabs-navigation__button{display:block;padding:13px 26px;border:0;font-size:14px !important;font-weight:600 !important;line-height:1 !important;color:#fff !important;background:#7E3BD0;outline:none;transition:background 200ms ease,transform 200ms ease,opacity 150ms ease;cursor:pointer;user-select:none}.et-common-tabs-navigation__button:hover{background:#7435C1}.et-common-tabs-navigation__button--active,.et-common-tabs-navigation__button--active:hover{background:#8E42EB}.et-common-tabs-navigation__button svg{fill:#fff} @keyframes et-spinner{0%{box-shadow:0 -17px #7E3BD0,17px 0 #29C4A9,0 17px #7E3BD0,-17px 0 #29C4A9}25%{box-shadow:17px 0 #2B87DA,0 17px #29C4A9,-17px 0 #2B87DA,0 -17px #29C4A9}50%{box-shadow:0 17px #2B87DA,-17px 0 #FF9232,0 -17px #2B87DA,17px 0 #FF9232}75%{box-shadow:-17px 0 #7E3BD0,0 -17px #FF9232,17px 0 #7E3BD0,0 17px #FF9232}100%{box-shadow:0 -17px #7E3BD0,17px 0 #29C4A9,0 17px #7E3BD0,-17px 0 #29C4A9}}@keyframes et-pulse-animation{0%{transform:scale(0.95);border-color:#2b87da}10%{transform:scale(1)}20%{transform:scale(1.02)}30%{transform:scale(1.04)}40%{transform:scale(1.06)}50%{transform:scale(1.08)}60%{transform:scale(1.06);border-color:#00c3aa}70%{transform:scale(1.04)}80%{transform:scale(1.02)}80%{transform:scale(1)}100%{transform:scale(0.95);border-color:#2b87da}}body.et-common-prompt-open *{pointer-events:none}body.et-common-prompt-open .et-common-prompt,body.et-common-prompt-open .et-common-prompt *{pointer-events:auto}body.et-common-prompt-open{overflow:hidden}.et-common-prompt{position:fixed;left:0;top:0;width:100vw;height:100vh}.et-common-prompt-draggable{width:calc(100vw - 15px)}.et-common-prompt{z-index:2000000}.et-common-prompt__overlay{position:fixed;left:0;top:0;width:100vw;height:100vh;background:radial-gradient(ellipse at center, #fff 20%, rgba(255,255,255,0) 80%);animation:et-common-fade-in 200ms ease}.et-common-prompt__modal{position:fixed;left:0;top:0;width:100vw;height:100vh}.et-common-prompt-draggable .et-common-prompt__modal{width:calc(100vw - 15px)}body.admin-bar .et-common-prompt-draggable .et-common-prompt__modal{top:32px;height:calc(100vh - 32px)}.et-common-prompt__modal{display:flex;flex-direction:column;justify-content:center;align-items:center}.et-common-prompt__container{width:400px;max-width:100%;box-shadow:0 5px 30px rgba(43,135,218,0.2)}@media (max-width: 812px){.et-common-prompt__container{width:100%}}.et-common-prompt__header{display:flex;position:relative;padding:9px 26px;border-radius:3px 3px 0 0;font-family:"Open Sans",Helvetica,Roboto,Arial,sans-serif;font-weight:600;font-size:18px;line-height:40px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#fff;background-color:#6C2EB9;box-shadow:0 5px 30px rgba(0,0,0,0.1);box-shadow:none;padding-right:9px}.rtl .et-common-prompt__header{padding-right:18px !important;padding-left:9px !important}.et-common-prompt__header-back{padding-left:9px}@media (max-width: 812px){.et-common-prompt__header{margin-top:0;border-radius:0}}.react-draggable .et-common-prompt__header{cursor:move}.et-common-prompt__header-actions{display:flex;justify-content:flex-end;align-items:center;margin-left:auto}.rtl .et-common-prompt__header-actions{margin-left:0 !important;margin-right:auto}.et-common-prompt__header-actions .et-fb-icon svg{fill:#fff}.et-common-prompt__body{background:#fff}@media (max-width: 812px){.et-common-prompt__body{height:calc(100vh - 58px - 42px)}}.et-common-prompt__content{color:#4C5866;padding:30px}.et-common-prompt__content p{margin:0 0 13px 0;font-weight:600}.et-common-prompt__content ul{padding:0 0 0 25px;list-style-type:disc}.et-common-prompt__content>*:last-child{margin-bottom:0}.et-common-prompt__footer{display:flex;border-radius:0 0 3px 3px}.et-common-prompt__footer .et-common-button{flex:1 0 0;padding:10px;font-weight:700;line-height:20px;border-radius:0}.et-common-prompt__footer .et-common-button:first-child{border-bottom-left-radius:3px}.et-common-prompt__footer .et-common-button:last-child{border-bottom-right-radius:3px}.rtl .et-common-prompt__footer .et-common-button:first-child{border-bottom-left-radius:0;border-bottom-right-radius:3px}.rtl .et-common-prompt__footer .et-common-button:last-child{border-bottom-right-radius:0;border-bottom-left-radius:3px}.rtl .et-common-prompt__footer .et-common-button:first-child:last-child{border-bottom-left-radius:3px;border-bottom-right-radius:3px}@media (max-width: 812px){.et-common-prompt__footer{border-radius:0}.et-common-prompt__footer .et-common-button{border-radius:0 !important}} body.et-common-scroll-lock{overflow:hidden} @keyframes et-spinner{0%{box-shadow:0 -17px #7E3BD0,17px 0 #29C4A9,0 17px #7E3BD0,-17px 0 #29C4A9}25%{box-shadow:17px 0 #2B87DA,0 17px #29C4A9,-17px 0 #2B87DA,0 -17px #29C4A9}50%{box-shadow:0 17px #2B87DA,-17px 0 #FF9232,0 -17px #2B87DA,17px 0 #FF9232}75%{box-shadow:-17px 0 #7E3BD0,0 -17px #FF9232,17px 0 #7E3BD0,0 17px #FF9232}100%{box-shadow:0 -17px #7E3BD0,17px 0 #29C4A9,0 17px #7E3BD0,-17px 0 #29C4A9}}@keyframes et-pulse-animation{0%{transform:scale(0.95);border-color:#2b87da}10%{transform:scale(1)}20%{transform:scale(1.02)}30%{transform:scale(1.04)}40%{transform:scale(1.06)}50%{transform:scale(1.08)}60%{transform:scale(1.06);border-color:#00c3aa}70%{transform:scale(1.04)}80%{transform:scale(1.02)}80%{transform:scale(1)}100%{transform:scale(0.95);border-color:#2b87da}}[type].et-common-input-text{display:inline-block;background:#F1F5F9;max-height:30px;border:0;border-radius:3px;padding:7px 10px;box-sizing:border-box;transition:background 200ms ease;color:#4C5866;font-family:"Open Sans",Helvetica,Roboto,Arial,sans-serif;font-size:13px;font-weight:600;text-transform:none;line-height:normal;box-shadow:none;letter-spacing:normal}[type].et-common-input-text:focus{box-shadow:none;background:#E6ECF2;text-transform:none;letter-spacing:normal}[type].et-common-input-text::-webkit-input-placeholder{color:#98a7b8;text-transform:none;letter-spacing:normal}[type].et-common-input-text:-moz-placeholder{color:#98a7b8;text-transform:none;letter-spacing:normal}[type].et-common-input-text::-moz-placeholder{color:#98a7b8;text-transform:none;letter-spacing:normal}[type].et-common-input-text:-ms-input-placeholder{color:#98a7b8;text-transform:none;letter-spacing:normal}[type].et-common-input-text--block{display:block;width:100%}[type].et-common-input-text[readonly]{background:#ffffff !important;border:1px solid #EAEDF0 !important;cursor:not-allowed} @keyframes et-common-fade-in{0%{opacity:0}100%{opacity:1}}@keyframes et-common-slide-fade-in{0%{transform:translate(-30px, 0);opacity:0}100%{transform:translate(0, 0);opacity:1}}@keyframes et-common-zoom-in{0%{transform:scale(0.5, 0.5)}100%{transform:scale(1, 1)}}@keyframes et-common-bounce-in{from,20%,40%,60%,80%,to{animation-timing-function:cubic-bezier(0.215, 0.61, 0.355, 1)}0%{opacity:0;transform:scale3d(0.3, 0.3, 0.3)}20%{transform:scale3d(1.1, 1.1, 1.1)}40%{transform:scale3d(0.9, 0.9, 0.9)}60%{opacity:1;transform:scale3d(1.03, 1.03, 1.03)}80%{transform:scale3d(0.97, 0.97, 0.97)}to{opacity:1;transform:scale3d(1, 1, 1)}}.et-common-checkbox{display:flex;align-items:flex-start;padding:3px;font-size:13px;font-weight:600;color:#4C5866;line-height:normal}.et-common-checkbox__input[type="checkbox"]{flex:0 0 24px;width:24px;height:24px;padding:0;margin:0 8px 0 0;border:0;border-radius:3px;background:#f1f4f9;box-shadow:none;-webkit-appearance:none}.rtl .et-common-checkbox__input[type="checkbox"]{margin:0 0 0 8px}.et-common-checkbox__input[type="checkbox"]:focus{outline:none;box-shadow:none}.et-common-checkbox__input[type="checkbox"]:disabled,.et-common-checkbox__input[type="checkbox"]:disabled:checked:before{opacity:1}.et-common-checkbox__input[type="checkbox"]:checked{position:relative}.et-common-checkbox__input[type="checkbox"]:checked:before{content:"\f147";display:inline-block;position:absolute;margin:0 0 0 -1px;top:50%;left:50%;transform:translate(-50%, -50%);color:#00c3aa;font:400 24px/1 dashicons;height:auto;width:auto}.rtl .et-common-checkbox__input[type="checkbox"]:checked:before{margin:0 !important}.et-common-checkbox__input--danger[type="checkbox"]:checked:before{color:#EF5555}.et-common-checkbox__label{flex:1 1 0;line-height:24px;transition:color 200ms ease}.et-common-checkbox__label .et-fb-icon{flex:0 0 auto;position:relative;top:4px}.et-common-checkbox__label .et-fb-icon svg{fill:#a3b0c2;transition:fill 200ms ease}.et-common-checkbox-group{padding-bottom:16px}.et-common-checkbox-group+.et-common-checkbox-group{padding-top:16px;border-top:2px solid #e7eef5}.et-common-checkbox-group:last-child{padding-bottom:0}.et-common-checkbox-group__label{display:block;margin-bottom:7px;font-size:13px;font-weight:600;color:#a3b0c2;cursor:auto}.et-common-checkbox-group__list{padding:0;margin:0;list-style-type:none}.et-common-checkbox-group__list li{padding:0;margin:0} @keyframes et-spinner{0%{box-shadow:0 -17px #7E3BD0,17px 0 #29C4A9,0 17px #7E3BD0,-17px 0 #29C4A9}25%{box-shadow:17px 0 #2B87DA,0 17px #29C4A9,-17px 0 #2B87DA,0 -17px #29C4A9}50%{box-shadow:0 17px #2B87DA,-17px 0 #FF9232,0 -17px #2B87DA,17px 0 #FF9232}75%{box-shadow:-17px 0 #7E3BD0,0 -17px #FF9232,17px 0 #7E3BD0,0 17px #FF9232}100%{box-shadow:0 -17px #7E3BD0,17px 0 #29C4A9,0 17px #7E3BD0,-17px 0 #29C4A9}}@keyframes et-pulse-animation{0%{transform:scale(0.95);border-color:#2b87da}10%{transform:scale(1)}20%{transform:scale(1.02)}30%{transform:scale(1.04)}40%{transform:scale(1.06)}50%{transform:scale(1.08)}60%{transform:scale(1.06);border-color:#00c3aa}70%{transform:scale(1.04)}80%{transform:scale(1.02)}80%{transform:scale(1)}100%{transform:scale(0.95);border-color:#2b87da}}.et-common-library-portability-modal{-webkit-font-smoothing:antialiased}.et-common-library-portability-modal__spinner-overlay{align-items:center;background:#fff;display:flex;height:calc(100% - 60px);justify-content:center;position:absolute;top:60px;width:100%;z-index:99}.et-common-library-portability-modal .et-common-prompt__header .et-common-button{background:transparent !important}.et-common-library-portability-modal .et-common-button--primary{background:#2B87DA !important;color:#fff !important}.et-common-library-portability-modal .et-common-prompt__overlay,.et-common-library-portability-modal .et-common-prompt__modal{height:100%;width:100%}.et-common-library-portability-modal .et-common-prompt__container{position:relative}.et-common-library-portability-modal .et-common-prompt .et-common-export-file-container h3,.et-common-library-portability-modal .et-common-prompt .et-common-import-file-container h3{color:#32373c;font-size:14px;font-weight:600;font-family:inherit;margin:0;padding-bottom:10px}.et-common-library-portability-modal .et-common-prompt .et-common-export-file-container p,.et-common-library-portability-modal .et-common-prompt .et-common-import-file-container p{font-size:13px;padding:0}.et-common-library-portability-modal .et-common-prompt .et-common-export-file-container .et-common-input-text,.et-common-library-portability-modal .et-common-prompt .et-common-import-file-container .et-common-input-text{width:100%}.et-common-library-portability-modal .et-common-prompt button{font-weight:600}.et-common-library-portability-modal .et-common-import-file-container{position:relative}.et-common-library-portability-modal .et-common-import-file-container .et-common-import-file-name-field{height:54px;margin-bottom:20px}.et-common-library-portability-modal .et-common-import-file-container .et-common-import-file{cursor:pointer;height:30px;left:0;opacity:0;position:absolute;width:100%}.et-common-library-portability-modal .et-common-import-file-container .et-common-portability-import-placeholder{border:2px dashed #e6ecf2;border-radius:3px;color:#a3b0c2;float:left;font-size:12px;font-weight:700;height:16px;line-height:16px;overflow:hidden;padding:5px;text-align:center;text-overflow:ellipsis;text-transform:uppercase;white-space:nowrap;width:326px}.et-common-library-portability-modal .et-common-import-file-container .et-common-portability-import-placeholder--active{border-color:#2B87DA;border-style:solid;color:#2B87DA}.et-common-library-portability-modal .et-common-import-file-container .et-common-checkbox{padding:0}.et-common-library-portability-modal .et-common-import-file-container .et-common-checkbox__input::before{margin:0 !important}.toplevel_page_et_divi_options .et-common-library-portability-modal .et-common-import-file-container .et-common-checkbox__label{line-height:16px}.et-common-library-portability-modal .et-common-import-file-container .et-common-import-error-container p{margin:0 0 13px 0;color:red;font-weight:600}.et-common-library-portability-modal .et-common-button-disabled{pointer-events:none}body.et-fb .et-common-library-portability-modal .et-common-portability-import-placeholder{height:30px} @keyframes et-spinner{0%{box-shadow:0 -17px #7E3BD0,17px 0 #29C4A9,0 17px #7E3BD0,-17px 0 #29C4A9}25%{box-shadow:17px 0 #2B87DA,0 17px #29C4A9,-17px 0 #2B87DA,0 -17px #29C4A9}50%{box-shadow:0 17px #2B87DA,-17px 0 #FF9232,0 -17px #2B87DA,17px 0 #FF9232}75%{box-shadow:-17px 0 #7E3BD0,0 -17px #FF9232,17px 0 #7E3BD0,0 17px #FF9232}100%{box-shadow:0 -17px #7E3BD0,17px 0 #29C4A9,0 17px #7E3BD0,-17px 0 #29C4A9}}@keyframes et-pulse-animation{0%{transform:scale(0.95);border-color:#2b87da}10%{transform:scale(1)}20%{transform:scale(1.02)}30%{transform:scale(1.04)}40%{transform:scale(1.06)}50%{transform:scale(1.08)}60%{transform:scale(1.06);border-color:#00c3aa}70%{transform:scale(1.04)}80%{transform:scale(1.02)}80%{transform:scale(1)}100%{transform:scale(0.95);border-color:#2b87da}}.et-common-library-overlay{position:fixed;left:0;top:0;width:100vw;height:100vh;background:radial-gradient(ellipse at center, #fff 20%, rgba(255,255,255,0.7) 100%);z-index:159900;animation:et-core-fade-in 500ms linear}.et-common-library-modal-positioner{display:flex;justify-content:center;align-items:stretch;position:fixed;left:30px;top:32px;right:30px;bottom:30px;z-index:159900;-webkit-font-smoothing:antialiased}.et-common-library-modal{font-size:13px;flex:1 1 0}@media (min-width: 813px){.et-common-library-modal{position:relative;left:0 !important;right:0 !important;top:0 !important;bottom:0 !important}.et-common-library-modal #et-cloud-app .et-cloud-app-layout-screenshot{height:100%;max-height:100%}}.et-common-library-modal .et-common-branded-modal__header .et-common-button{background-color:transparent !important}.et-common-library-modal .et-common-branded-modal__header .et-common-button:focus{outline:none}.et-common-library-modal #et-cloud-app.et-common-library-cloud .et-cloud-app-content-wrapper{top:58px}.et-common-library-modal #et-cloud-app.et-common-library-cloud .et-cloud-app-content-wrapper .et-cloud-app-layout{height:calc(100% - 58px);overflow-y:auto}.et-common-library-modal #et-cloud-app.et-common-library-cloud .et-cloud-app-content-wrapper .et-cloud-app-view-header,.et-common-library-modal #et-cloud-app.et-common-library-cloud .et-cloud-app-content-wrapper .et-cloud-filter{font-weight:600}.et-common-library-modal #et-cloud-app.et-common-library-cloud .et-cloud-app-content-wrapper .et-cloud-filter-editor-add-new{line-height:1.7em}.et-common-library-modal #et-cloud-app.et-common-library-cloud .et-cloud-app-content-wrapper .et-cloud-editor-control h6{padding-bottom:10px}.et-common-button.et-code-snippets-library__back-button{margin-left:-40px;opacity:0;pointer-events:none;transition:opacity 200ms ease,margin-left 500ms cubic-bezier(0.175, 0.885, 0.35, 1.42)}.et-common-button.et-code-snippets-library__back-button--visible{pointer-events:auto;margin-left:-12px;opacity:1}.et-common-button.et-code-snippets-library__back-button--visible .et-common-icon{margin-top:-11px !important}.rtl .et-common-button.et-code-snippets-library__back-button--visible{margin-left:0} .et-common-toggle{display:table;background:#f1f5f9;border-radius:3px;padding:5px;box-sizing:border-box;transition:background-color 200ms ease,color 200ms ease;color:#A4AFC0;cursor:pointer}.et-common-toggle[disabled],.et-common-toggle[disabled] *{cursor:not-allowed}.et-common-toggle__label{color:inherit;font-family:"Open Sans",Helvetica,Roboto,Arial,sans-serif;font-size:12px;font-weight:700;text-align:center;text-transform:uppercase;display:table-cell;vertical-align:middle;min-width:30px;height:20px;position:relative}.et-common-toggle__label--on{padding-right:2.5px}.et-common-toggle__label--off{padding-left:2.5px}.et-common-toggle__text{transform:translateY(2px);margin-top:-3px;line-height:1.6em}.et-common-toggle__handle{position:relative;background:#fff;width:100%;height:20px;border-radius:3px;box-shadow:0 1px 3px rgba(0,0,0,0.1);transition:all 200ms ease;position:absolute;top:0;right:0}.et-common-toggle--on{background:#2B87DA;color:#fff}.et-common-toggle--on>.et-common-toggle__label--on>.et-common-toggle__handle{opacity:0;transform:translateX(90%);box-shadow:none}.et-common-toggle--on>.et-common-toggle__label--off{color:transparent}.et-common-toggle--off>.et-common-toggle__label--off>.et-common-toggle__handle{opacity:0;transform:translateX(-90%);box-shadow:none}.et-common-toggle--off>.et-common-toggle__label--on{color:transparent}.et-common-toggle__cursor_default{cursor:default} .et-common-categories>label{font-size:14px;font-weight:600;line-height:20px;margin-bottom:10px;color:#32373C;display:block;max-width:100%}@media (max-width: 749px){.et-common-checkboxes-category-wrap{columns:2}}.et-common-checkboxes-category-wrap p{padding-bottom:0;margin-top:0 !important;margin-bottom:6px !important;padding-left:34px}.et-common-checkboxes-category-wrap p label{font-size:13px;font-weight:600;position:relative;color:#4C5866;line-height:27.2px;cursor:pointer;text-transform:capitalize}.rtl .et-common-checkboxes-category-wrap p label{padding-right:40px}.et-common-checkboxes-category-wrap p.et-tb-prompt-input-error input[type="checkbox"],.et-common-checkboxes-category-wrap p.et-tb-prompt-input-error input[type="checkbox"]:focus{color:#FF9232;box-shadow:inset 0px 0px 0px 2px #FF9232;background:rgba(255,146,50,0.1)}.et-common-checkboxes-category-wrap input{margin-bottom:10px;display:block;margin-bottom:10px;display:block;-webkit-appearance:none;-webkit-font-smoothing:subpixel-antialiased;-moz-osx-font-smoothing:grayscale;outline:0;position:absolute;top:-3px;left:-34px;display:inline-block;background:#f1f5f9;width:25px;min-width:16px;height:25px;border:0;border-radius:3px;box-shadow:none;margin:0;padding:0 !important;float:none;clear:none;color:#4C5866;font-size:13px;font-weight:600;line-height:0;text-align:center;vertical-align:middle;cursor:pointer;margin-top:0 !important}.et-common-checkboxes-category-wrap input:checked:before{content:'\F147';display:inline-block;width:16px;margin:2px 0 0 -5px;float:none;color:#29C4A9;font:normal 21px/1 dashicons;vertical-align:middle;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.et-common-checkboxes-category-wrap input:checked:after{display:none}.rtl .et-common-checkboxes-category-wrap input{right:0;position:absolute;left:auto}@media (max-width: 749px){.et-cloud-app-status-on .et-common-checkboxes-category-wrap{columns:1}} .ReactTags__tags{position:relative;z-index:9}.ReactTags__tagInput{background:none;border:none;border-radius:3px;display:inline-block;max-width:100%;min-width:48px;width:1px;flex-grow:1;line-height:24px}.ReactTags__tagInput .ReactTags__tagInputField,.ReactTags__tagInput .ReactTags__tagInputField:focus{min-height:24px;height:24px;margin:0;font-size:13px;font-weight:600;color:#4C5866;width:100%;padding:3px;background:none;border:none}.ReactTags__selected{display:flex;border-radius:3px;background:#f1f5f9;flex-wrap:wrap;padding:3px}.ReactTags__selected .ReactTags__tag{border-radius:3px;background:#e0e5ea;display:flex;padding:3px 6px 3px 8px;margin:0;color:#7b8490;line-height:18px;margin:2px 4px 2px 0;text-transform:capitalize;font-weight:600}.ReactTags__selected .ReactTags__remove{margin-left:6px !important;cursor:pointer;font-size:18px;color:#7b8490;border:none !important;height:18px !important;width:10px;line-height:19px;font-weight:900;display:inline-block;position:relative;background:none}.ReactTags__suggestions{position:absolute;left:0;width:100%}.ReactTags__suggestions ul{list-style-type:none;background:#fff;width:100%;position:relative;display:block;padding:3px !important;margin:0;margin-top:3px;box-shadow:0 5px 30px rgba(43,135,218,0.2);border-bottom-left-radius:3px;border-bottom-right-radius:3px}.ReactTags__suggestions ul li{display:inline-block;margin-bottom:0}.ReactTags__suggestions ul li.ReactTags__activeSuggestion{cursor:pointer}.ReactTags__suggestions ul li mark{background:none;font-weight:600}.ReactTags__suggestions ul li .et-common-tag-suggestion{display:inline-block;border-radius:3px;background:#e0e5ea;padding:3px 6px 3px 8px;margin:2px 4px 2px 0;color:#7b8490;line-height:18px;font-weight:600} @keyframes et-spinner{0%{box-shadow:0 -17px #7E3BD0,17px 0 #29C4A9,0 17px #7E3BD0,-17px 0 #29C4A9}25%{box-shadow:17px 0 #2B87DA,0 17px #29C4A9,-17px 0 #2B87DA,0 -17px #29C4A9}50%{box-shadow:0 17px #2B87DA,-17px 0 #FF9232,0 -17px #2B87DA,17px 0 #FF9232}75%{box-shadow:-17px 0 #7E3BD0,0 -17px #FF9232,17px 0 #7E3BD0,0 17px #FF9232}100%{box-shadow:0 -17px #7E3BD0,17px 0 #29C4A9,0 17px #7E3BD0,-17px 0 #29C4A9}}@keyframes et-pulse-animation{0%{transform:scale(0.95);border-color:#2b87da}10%{transform:scale(1)}20%{transform:scale(1.02)}30%{transform:scale(1.04)}40%{transform:scale(1.06)}50%{transform:scale(1.08)}60%{transform:scale(1.06);border-color:#00c3aa}70%{transform:scale(1.04)}80%{transform:scale(1.02)}80%{transform:scale(1)}100%{transform:scale(0.95);border-color:#2b87da}}.et-fb-icon{display:inline-block;vertical-align:middle;transition:fill 200ms ease}.et-fb-icon svg{display:block;width:100%;fill:inherit}.et-fb-icon svg path.opacity-half{opacity:0.5}.et-fb-icon--loading svg{transform-origin:center;animation:icon-loading-rotate 1s infinite linear;fill:rgba(255,255,255,0.8)}.et-fb-icon--page-settings-main-buttons>.et-fb-icon__child{top:50%;left:50%;transform:translate(-50%, -50%)}.et-fb-icon--page-settings-main-buttons>.et-fb-icon__child,.et-fb-icon--page-settings-main-buttons>.et-fb-icon__child:before,.et-fb-icon--page-settings-main-buttons>.et-fb-icon__child:after{position:absolute;display:block;background:#fff;width:6px;height:6px;border-radius:10px}.et-fb-icon--page-settings-main-buttons>.et-fb-icon__child:before,.et-fb-icon--page-settings-main-buttons>.et-fb-icon__child:after{content:''}.et-fb-icon--page-settings-main-buttons>.et-fb-icon__child:before{left:-11px;transform:translateX(-50%)}.et-fb-icon--page-settings-main-buttons>.et-fb-icon__child:after{right:-11px;transform:translateX(50%)}.et-fb-icon--page-settings-main-buttons>.et-fb-icon__child--animate>.et-fb-icon__child{transition:background 0.3s ease}.et-fb-icon--page-settings-main-buttons>.et-fb-icon__child--animate:before,.et-fb-icon--page-settings-main-buttons>.et-fb-icon__child--animate:after{transition:right 100ms ease,left 100ms ease}.et-fb-icon--page-settings-main-buttons>.et-fb-icon__child--animate.et-fb-icon__child--active{transition:background 200ms ease}.et-fb-icon--page-settings-main-buttons>.et-fb-icon__child--animate.et-fb-icon__child--active:before,.et-fb-icon--page-settings-main-buttons>.et-fb-icon__child--animate.et-fb-icon__child--active:after{transition:width 100ms 100ms ease,transform 100ms 200ms cubic-bezier(0.28, 0.55, 0.385, 1.65)}.et-fb-icon--page-settings-main-buttons>.et-fb-icon__child--active{background:transparent;transition:background 200ms ease}.et-fb-icon--page-settings-main-buttons>.et-fb-icon__child--active,.et-fb-icon--page-settings-main-buttons>.et-fb-icon__child--active:before,.et-fb-icon--page-settings-main-buttons>.et-fb-icon__child--active:after{height:3px}.et-fb-icon--page-settings-main-buttons>.et-fb-icon__child--active:before,.et-fb-icon--page-settings-main-buttons>.et-fb-icon__child--active:after{width:20px;transform-origin:50% 50%}.et-fb-icon--page-settings-main-buttons>.et-fb-icon__child--active:before{left:50%;transform:translateX(-50%) rotate(45deg)}.et-fb-icon--page-settings-main-buttons>.et-fb-icon__child--active:after{right:50%;transform:translateX(50%) rotate(-45deg)}@keyframes icon-loading-rotate{100%{transform:rotate(360deg)}} .et-common-library-cloud .et-cloud-app__upsell{margin-top:40px}.et-cloud-app__upsell{border-radius:7px;background-color:#f1f5f9;margin-top:20px;padding:20px;text-align:center;animation:2s fadeIn;animation-fill-mode:forwards;visibility:hidden}.et-cloud-app__upsell.card-default a{background-color:#2B87DA}.et-cloud-app__upsell.card-free a{background-color:#29C4A9}.et-cloud-app__upsell.card-paid a{background-color:#FF9232}.et-cloud-app__upsell.card-save-modal{border-radius:3px;padding:2px 12px 16px;text-align:left;margin:0 auto 10px;animation-duration:5ms}.et-cloud-app__upsell.card-save-modal a{display:inline;font-weight:700}.et-cloud-app__upsell.card-default.card-save-modal{background-color:rgba(43,135,218,0.1)}.et-cloud-app__upsell.card-free.card-save-modal{background-color:rgba(43,196,169,0.1)}.et-cloud-app__upsell.card-save-modal .et-cloud-app__upsell-description{margin:0 !important;padding-bottom:15px !important}.et-cloud-app__upsell.card-default.card-save-modal .et-cloud-app__upsell-description{color:#2B87DA !important}.et-cloud-app__upsell.card-free.card-save-modal .et-cloud-app__upsell-description{color:#29C4A9 !important}.et-cloud-app__upsell-title{color:#4C5866;font-size:17px;font-weight:700;line-height:24px;margin:0;padding:0;text-transform:capitalize}.et-cloud-app__upsell-description{color:#4C5866 !important;font-size:13px;line-height:18px;margin:0;padding:10px 0 20px !important}.et-cloud-app__upsell a{color:#fff !important;border-radius:3px;display:block;padding:5px 12px;font-size:14px;font-weight:600;line-height:23px;margin:0 auto;text-decoration:none}.et-cloud-app__upsell a:hover{color:#fff}@keyframes fadeIn{99%{visibility:hidden}100%{visibility:visible}} .et-core-control-select{background:#f1f5f9;width:100%;border:0;border-radius:3px;box-shadow:none;margin:0;padding:5px 10px;color:#4C5866;font-family:"Open Sans",Helvetica,Roboto,Arial,sans-serif;font-size:13px;font-weight:600;height:30px;display:inline-block}body.gecko .et-core-control-select{-moz-appearance:none;z-index:10;background:#f1f5f9 !important;position:relative;border-radius:3px !important}body.gecko .et-core-control-select:after{font-family:'ETmodules' !important;speak:none;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;content:'C';position:absolute;right:7px;top:8px;cursor:default;z-index:5}.et-core-control-select:-moz-focusring{text-shadow:0 0 0 #000;color:transparent}.et-core-control-select[disabled]{cursor:not-allowed} @keyframes et-spinner{0%{box-shadow:0 -17px #7E3BD0,17px 0 #29C4A9,0 17px #7E3BD0,-17px 0 #29C4A9}25%{box-shadow:17px 0 #2B87DA,0 17px #29C4A9,-17px 0 #2B87DA,0 -17px #29C4A9}50%{box-shadow:0 17px #2B87DA,-17px 0 #FF9232,0 -17px #2B87DA,17px 0 #FF9232}75%{box-shadow:-17px 0 #7E3BD0,0 -17px #FF9232,17px 0 #7E3BD0,0 17px #FF9232}100%{box-shadow:0 -17px #7E3BD0,17px 0 #29C4A9,0 17px #7E3BD0,-17px 0 #29C4A9}}@keyframes et-pulse-animation{0%{transform:scale(0.95);border-color:#2b87da}10%{transform:scale(1)}20%{transform:scale(1.02)}30%{transform:scale(1.04)}40%{transform:scale(1.06)}50%{transform:scale(1.08)}60%{transform:scale(1.06);border-color:#00c3aa}70%{transform:scale(1.04)}80%{transform:scale(1.02)}80%{transform:scale(1)}100%{transform:scale(0.95);border-color:#2b87da}}.et-save-to-library-modal{font-family:"Open Sans",Helvetica,Roboto,Arial,sans-serif;font-weight:600;-webkit-font-smoothing:antialiased;font-size:13px}.et-save-to-library-modal .et-save-to-library-description{font-size:13px}.et-save-to-library-modal .et-common-prompt .et-common-prompt__modal .et-common-prompt__container .et-common-button{background:transparent}.et-save-to-library-modal .et-common-prompt .et-common-prompt__modal .et-common-prompt__container .et-common-button--primary{background:#2B87DA;color:#fff}.et-save-to-library-modal .et-common-prompt .et-common-prompt__modal .et-common-prompt__container .et-common-button--cancel{background:#ED5759;color:#fff}.et-save-to-library-modal .et-save-to-library-option input{color:#4C5866}.et-save-to-library-modal .et-save-to-library-option input:focus{outline:none;box-shadow:none}.et-save-to-library-modal .et-save-to-library-option input[type=checkbox]:checked:after{display:none}.et-save-to-library-modal .et-save-to-library-option--select-cloud-folders{font-size:13px;background-color:#F1F5F9}.et-save-to-library-modal .et-save-to-library-option--select-cloud-folders,.et-save-to-library-modal .et-save-to-library-option--select-cloud-folders:focus,.et-save-to-library-modal .et-save-to-library-option--select-cloud-folders:hover{color:#4C5866}.et-save-to-library-modal .et-save-to-library-option--select-cloud-folders:focus{box-shadow:none}.et-save-to-library-modal .et-save-to-library-option{padding:10px 0}.et-save-to-library-modal .et-save-to-library-option--hidden{display:none}.et-save-to-library-modal .et-save-to-library-option--label{color:#32373C;font-size:14px;font-weight:600;margin-bottom:5px;display:block}.et-save-to-library-modal .et-save-to-library-option--input{width:100%}.et-save-to-library-modal .et-common-input-text.et-save-to-library-option--input-error{box-shadow:inset 0px 0px 0px 2px #FF9232;background:rgba(255,146,50,0.1)}.et-save-to-library-modal .et-common-prompt__content{overflow-x:hidden}.et-save-to-library-modal .et-common-prompt__content::-webkit-scrollbar{width:10px;cursor:initial}.et-save-to-library-modal .et-common-prompt__content::-webkit-scrollbar-thumb{background:#4C5866 !important;border-radius:3px;border-right:3px solid #fff;border-left:3px solid #fff}.et-save-to-library-modal .et-common-prompt__content::-webkit-scrollbar-thumb{border-right-width:0;border-radius:0}.rtl .et-save-to-library-modal .et-common-prompt__content::-webkit-scrollbar-thumb{border-left-width:0;border-right-width:3px}.et-save-to-library-modal .et-cloud-category-mark,.et-save-to-library-modal .et-cloud-tag-mark{margin-right:5px !important;margin-left:0px !important;width:14px !important;height:14px !important;min-width:12px !important}.rtl .et-save-to-library-modal .et-cloud-category-mark,.rtl .et-save-to-library-modal .et-cloud-tag-mark{margin-right:0 !important;margin-left:5px !important}.et-save-to-library-modal .et-common-tag-marked,.et-save-to-library-modal .et-common-selected-tag-marked{position:relative;background:#0088E1 !important;color:#fff !important}.et-save-to-library-modal .et-common-tag-marked .ReactTags__remove,.et-save-to-library-modal .et-common-selected-tag-marked .ReactTags__remove{background:#0088E1 !important;color:#fff !important}.et-save-to-library-modal .et-common-tag-marked:before,.et-save-to-library-modal .et-common-selected-tag-marked:before{font-family:'CloudApp';content:'\e900';color:#fff;margin-right:5px} .et-theme-options-library__container #et-cloud-app .et-cloud-app-layout-placeholder:before{font-family:'etbuilder';font-weight:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:80px;margin-bottom:5px;color:#e7eef5;content:'\002e';z-index:99;position:absolute;top:0;right:0;width:100%;height:100%;display:flex;flex-direction:row;align-items:center;justify-content:center}.et-theme-options-library__container #et-cloud-app .et-cloud-app-layouts-grid-item-disabled .et-cloud-app-layout-placeholder:before{content:''} build/et-theme-options-library-app.bundle.js000064400002772514152214575740015130 0ustar00/*! This minified app bundle contains open source software from several third party developers. Please review CREDITS.md in the root directory or LICENSE.md in the current directory for complete licensing, copyright and patent information. This file and the included code may not be redistributed without the attributions listed in LICENSE.md, including associate copyright notices and licensing information. */!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="http://0.0.0.0:31599/",n(n.s=181)}([function(e,t){e.exports=React},function(e,t,n){e.exports=n(200)()},function(e,t,n){"use strict";n.d(t,"l",(function(){return u})),n.d(t,"c",(function(){return c})),n.d(t,"v",(function(){return l})),n.d(t,"s",(function(){return s})),n.d(t,"w",(function(){return f})),n.d(t,"h",(function(){return p})),n.d(t,"y",(function(){return d})),n.d(t,"u",(function(){return h})),n.d(t,"f",(function(){return v})),n.d(t,"k",(function(){return y})),n.d(t,"n",(function(){return g})),n.d(t,"g",(function(){return b})),n.d(t,"r",(function(){return _})),n.d(t,"i",(function(){return w})),n.d(t,"e",(function(){return O})),n.d(t,"x",(function(){return E})),n.d(t,"d",(function(){return x})),n.d(t,"b",(function(){return j})),n.d(t,"q",(function(){return S})),n.d(t,"m",(function(){return C})),n.d(t,"j",(function(){return T})),n.d(t,"a",(function(){return k})),n.d(t,"o",(function(){return M})),n.d(t,"t",(function(){return D})),n.d(t,"p",(function(){return A}));var r=n(39),o=n(17),i=n(10),a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function u(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.keys(e),r=Object.keys(t),o=[],i=0;i1&&void 0!==arguments[1]?arguments[1]:[],n=t.reduce((function(t,n){return!!(t||e instanceof n)||t}),!1);return!(void 0===e||!(n||l(e)&&"[object Object]"===Object.prototype.toString.call(e)&&(e.constructor===Object||null===Object.getPrototypeOf(e))||"number"==typeof e||"string"==typeof e||"boolean"==typeof e||null===e||Array.isArray(e)))}function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Array.isArray(e)?e:"string"==typeof e?e.split("."):[]}function d(e){throw new Error("Cerebral - "+e)}function h(){return!1}function v(e,t,n){var r=void 0;return function(){var o=this,i=arguments,a=function(){r=null,n||e.apply(o,i)},u=n&&!r;clearTimeout(r),r=setTimeout(a,t),u&&e.apply(o,i)}}function y(e){if(e&&!f(e)){var t=e.constructor.name;try{Object.defineProperty(e,"toJSON",{value:function(){return"["+t+"]"}})}catch(e){}}return e}function g(e){return Object.assign(Object.keys(e.providers||{}).reduce((function(t,n){return t[n]=e.providers[n]instanceof i.b?e.providers[n]:new i.b(e.providers[n]),t}),{}),Object.keys(e.modules||{}).reduce((function(t,n){return Object.assign(t,g(e.modules[n]))}),{}))}function m(e){return Object.keys(e).reduce((function(t,n){return e[n].children?t.concat(e[n]).concat(m(e[n].children)):t.concat(e[n])}),[])}function b(e,t){for(var n=[],r=0;r0&&void 0===e&&d('You are extracting with path "'+t+'", but it is not valid for this object'),e[n]}),e)}}function w(e,t){return s(t)&&-1===e.indexOf("*")?e+".**":e}function O(e){return{isTag:function(e){if(!(e instanceof r.Tag))return!1;for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;o0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=function(t){return p(t).reduce((function(e,t){return e?e[t]:void 0}),e)};return{options:{},on:function(){},getState:n,model:{get:n},getSequence:function(e){return t[e]||function(){}},dependencyStore:{addEntity:E,removeEntity:E}}}function j(e){if(s(e)&&!(e instanceof o.a)){for(var t in e)j(e[t]);!e.__CerebralState&&Object.defineProperty(e,"__CerebralState",{value:!0})}return e}function S(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){return!t&&s(e[n])&&"__CerebralState"in e[n]?n:t}),null)}function C(e,t){var n=Array.isArray(e)?e:p(e);return n.reduce((function(t,r){return t.modules[r]||d('The path "'+n.join(".")+'" is invalid, can not find module. Does the path "'+n.splice(0,e.length-1).join(".")+'" exist?'),t.modules[r]}),t)}function T(e,t,n){var r=Object.keys(e.modules||{}).reduce((function(r,o){return r[o]=T(e.modules[o],t,n),r}),{});if(e[t]){var o=Object.keys(e[t]).reduce((function(n,r){var o=Object.getOwnPropertyDescriptor(e[t],r);return o&&"get"in o?Object.defineProperty(n,r,o):n[r]=e[t][r],n}),r);return n?n(o,e):o}return r}var P=[];function k(e,t){-1===P.indexOf(e)&&(P.push(e),console.warn(e+" is DEPRECATED - "+t))}function M(e,t){var n=t.execution.name.split(".");return n.splice(0,n.length-1).concat(e).join(".")}function D(e){return e instanceof o.a||e instanceof o.b}function A(e,t,n){var r=[];return function e(t,n,o){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];if(D(n)||D(o))return o;if(l(n)&&l(o)){var a=Object.keys(n).concat(Object.keys(o)).reduce((function(e,t){return-1===e.indexOf(t)?e.concat(t):e}),[]),u=!0,c=!1,s=void 0;try{for(var f,p=a[Symbol.iterator]();!(u=(f=p.next()).done);u=!0){var d=f.value;e(t[d],n[d],o[d],i.concat(d))}}catch(e){c=!0,s=e}finally{try{!u&&p.return&&p.return()}finally{if(c)throw s}}}else"function"!=typeof o&&(Array.isArray(n)&&Array.isArray(o)||o===t&&n!==t?r.push({path:i.slice(),value:n}):o!==t&&r.push({path:i.slice(),value:o}))}(e,t,n),r}},function(e,t,n){(function(e,n){(function(){var r="Expected a function",o="__lodash_placeholder__",i=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],a="[object Arguments]",u="[object Array]",c="[object Boolean]",l="[object Date]",s="[object Error]",f="[object Function]",p="[object GeneratorFunction]",d="[object Map]",h="[object Number]",v="[object Object]",y="[object RegExp]",g="[object Set]",m="[object String]",b="[object Symbol]",_="[object WeakMap]",w="[object ArrayBuffer]",O="[object DataView]",E="[object Float32Array]",x="[object Float64Array]",j="[object Int8Array]",S="[object Int16Array]",C="[object Int32Array]",T="[object Uint8Array]",P="[object Uint16Array]",k="[object Uint32Array]",M=/\b__p \+= '';/g,D=/\b(__p \+=) '' \+/g,A=/(__e\(.*?\)|\b__t\)) \+\n'';/g,R=/&(?:amp|lt|gt|quot|#39);/g,I=/[&<>"']/g,L=RegExp(R.source),N=RegExp(I.source),z=/<%-([\s\S]+?)%>/g,F=/<%([\s\S]+?)%>/g,B=/<%=([\s\S]+?)%>/g,U=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,V=/^\w*$/,H=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,W=/[\\^$.*+?()[\]{}|]/g,q=RegExp(W.source),Z=/^\s+/,G=/\s/,Y=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,$=/\{\n\/\* \[wrapped with (.+)\] \*/,K=/,? & /,J=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,X=/[()=,{}\[\]\/\s]/,Q=/\\(\\)?/g,ee=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,te=/\w*$/,ne=/^[-+]0x[0-9a-f]+$/i,re=/^0b[01]+$/i,oe=/^\[object .+?Constructor\]$/,ie=/^0o[0-7]+$/i,ae=/^(?:0|[1-9]\d*)$/,ue=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ce=/($^)/,le=/['\n\r\u2028\u2029\\]/g,se="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",fe="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",pe="[\\ud800-\\udfff]",de="["+fe+"]",he="["+se+"]",ve="\\d+",ye="[\\u2700-\\u27bf]",ge="[a-z\\xdf-\\xf6\\xf8-\\xff]",me="[^\\ud800-\\udfff"+fe+ve+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",be="\\ud83c[\\udffb-\\udfff]",_e="[^\\ud800-\\udfff]",we="(?:\\ud83c[\\udde6-\\uddff]){2}",Oe="[\\ud800-\\udbff][\\udc00-\\udfff]",Ee="[A-Z\\xc0-\\xd6\\xd8-\\xde]",xe="(?:"+ge+"|"+me+")",je="(?:"+Ee+"|"+me+")",Se="(?:"+he+"|"+be+")"+"?",Ce="[\\ufe0e\\ufe0f]?"+Se+("(?:\\u200d(?:"+[_e,we,Oe].join("|")+")[\\ufe0e\\ufe0f]?"+Se+")*"),Te="(?:"+[ye,we,Oe].join("|")+")"+Ce,Pe="(?:"+[_e+he+"?",he,we,Oe,pe].join("|")+")",ke=RegExp("['\u2019]","g"),Me=RegExp(he,"g"),De=RegExp(be+"(?="+be+")|"+Pe+Ce,"g"),Ae=RegExp([Ee+"?"+ge+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?(?="+[de,Ee,"$"].join("|")+")",je+"+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?(?="+[de,Ee+xe,"$"].join("|")+")",Ee+"?"+xe+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?",Ee+"+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ve,Te].join("|"),"g"),Re=RegExp("[\\u200d\\ud800-\\udfff"+se+"\\ufe0e\\ufe0f]"),Ie=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Le=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ne=-1,ze={};ze[E]=ze[x]=ze[j]=ze[S]=ze[C]=ze[T]=ze["[object Uint8ClampedArray]"]=ze[P]=ze[k]=!0,ze[a]=ze[u]=ze[w]=ze[c]=ze[O]=ze[l]=ze[s]=ze[f]=ze[d]=ze[h]=ze[v]=ze[y]=ze[g]=ze[m]=ze[_]=!1;var Fe={};Fe[a]=Fe[u]=Fe[w]=Fe[O]=Fe[c]=Fe[l]=Fe[E]=Fe[x]=Fe[j]=Fe[S]=Fe[C]=Fe[d]=Fe[h]=Fe[v]=Fe[y]=Fe[g]=Fe[m]=Fe[b]=Fe[T]=Fe["[object Uint8ClampedArray]"]=Fe[P]=Fe[k]=!0,Fe[s]=Fe[f]=Fe[_]=!1;var Be={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ue=parseFloat,Ve=parseInt,He="object"==typeof e&&e&&e.Object===Object&&e,We="object"==typeof self&&self&&self.Object===Object&&self,qe=He||We||Function("return this")(),Ze=t&&!t.nodeType&&t,Ge=Ze&&"object"==typeof n&&n&&!n.nodeType&&n,Ye=Ge&&Ge.exports===Ze,$e=Ye&&He.process,Ke=function(){try{var e=Ge&&Ge.require&&Ge.require("util").types;return e||$e&&$e.binding&&$e.binding("util")}catch(e){}}(),Je=Ke&&Ke.isArrayBuffer,Xe=Ke&&Ke.isDate,Qe=Ke&&Ke.isMap,et=Ke&&Ke.isRegExp,tt=Ke&&Ke.isSet,nt=Ke&&Ke.isTypedArray;function rt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function ot(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o-1}function st(e,t,n){for(var r=-1,o=null==e?0:e.length;++r-1;);return n}function At(e,t){for(var n=e.length;n--&&bt(t,e[n],0)>-1;);return n}function Rt(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var It=xt({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),Lt=xt({"&":"&","<":"<",">":">",'"':""","'":"'"});function Nt(e){return"\\"+Be[e]}function zt(e){return Re.test(e)}function Ft(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function Bt(e,t){return function(n){return e(t(n))}}function Ut(e,t){for(var n=-1,r=e.length,i=0,a=[];++n",""":'"',"'":"'"});var Yt=function e(t){var n,G=(t=null==t?qe:Yt.defaults(qe.Object(),t,Yt.pick(qe,Le))).Array,se=t.Date,fe=t.Error,pe=t.Function,de=t.Math,he=t.Object,ve=t.RegExp,ye=t.String,ge=t.TypeError,me=G.prototype,be=pe.prototype,_e=he.prototype,we=t["__core-js_shared__"],Oe=be.toString,Ee=_e.hasOwnProperty,xe=0,je=(n=/[^.]+$/.exec(we&&we.keys&&we.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Se=_e.toString,Ce=Oe.call(he),Te=qe._,Pe=ve("^"+Oe.call(Ee).replace(W,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),De=Ye?t.Buffer:void 0,Re=t.Symbol,Be=t.Uint8Array,He=De?De.allocUnsafe:void 0,We=Bt(he.getPrototypeOf,he),Ze=he.create,Ge=_e.propertyIsEnumerable,$e=me.splice,Ke=Re?Re.isConcatSpreadable:void 0,yt=Re?Re.iterator:void 0,xt=Re?Re.toStringTag:void 0,$t=function(){try{var e=ti(he,"defineProperty");return e({},"",{}),e}catch(e){}}(),Kt=t.clearTimeout!==qe.clearTimeout&&t.clearTimeout,Jt=se&&se.now!==qe.Date.now&&se.now,Xt=t.setTimeout!==qe.setTimeout&&t.setTimeout,Qt=de.ceil,en=de.floor,tn=he.getOwnPropertySymbols,nn=De?De.isBuffer:void 0,rn=t.isFinite,on=me.join,an=Bt(he.keys,he),un=de.max,cn=de.min,ln=se.now,sn=t.parseInt,fn=de.random,pn=me.reverse,dn=ti(t,"DataView"),hn=ti(t,"Map"),vn=ti(t,"Promise"),yn=ti(t,"Set"),gn=ti(t,"WeakMap"),mn=ti(he,"create"),bn=gn&&new gn,_n={},wn=Ti(dn),On=Ti(hn),En=Ti(vn),xn=Ti(yn),jn=Ti(gn),Sn=Re?Re.prototype:void 0,Cn=Sn?Sn.valueOf:void 0,Tn=Sn?Sn.toString:void 0;function Pn(e){if(qa(e)&&!Ra(e)&&!(e instanceof An)){if(e instanceof Dn)return e;if(Ee.call(e,"__wrapped__"))return Pi(e)}return new Dn(e)}var kn=function(){function e(){}return function(t){if(!Wa(t))return{};if(Ze)return Ze(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Mn(){}function Dn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}function An(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function Rn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function Jn(e,t,n,r,o,i){var u,s=1&t,_=2&t,M=4&t;if(n&&(u=o?n(e,r,o,i):n(e)),void 0!==u)return u;if(!Wa(e))return e;var D=Ra(e);if(D){if(u=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Ee.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!s)return bo(e,u)}else{var A=oi(e),R=A==f||A==p;if(za(e))return po(e,s);if(A==v||A==a||R&&!o){if(u=_||R?{}:ai(e),!s)return _?function(e,t){return _o(e,ri(e),t)}(e,function(e,t){return e&&_o(t,Ou(t),e)}(u,e)):function(e,t){return _o(e,ni(e),t)}(e,Gn(u,e))}else{if(!Fe[A])return o?e:{};u=function(e,t,n){var r=e.constructor;switch(t){case w:return ho(e);case c:case l:return new r(+e);case O:return function(e,t){var n=t?ho(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case E:case x:case j:case S:case C:case T:case"[object Uint8ClampedArray]":case P:case k:return vo(e,n);case d:return new r;case h:case m:return new r(e);case y:return function(e){var t=new e.constructor(e.source,te.exec(e));return t.lastIndex=e.lastIndex,t}(e);case g:return new r;case b:return o=e,Cn?he(Cn.call(o)):{}}var o}(e,A,s)}}i||(i=new zn);var I=i.get(e);if(I)return I;i.set(e,u),Ka(e)?e.forEach((function(r){u.add(Jn(r,t,n,r,e,i))})):Za(e)&&e.forEach((function(r,o){u.set(o,Jn(r,t,n,o,e,i))}));var L=D?void 0:(M?_?Yo:Go:_?Ou:wu)(e);return it(L||e,(function(r,o){L&&(r=e[o=r]),Wn(u,o,Jn(r,t,n,o,e,i))})),u}function Xn(e,t,n){var r=n.length;if(null==e)return!r;for(e=he(e);r--;){var o=n[r],i=t[o],a=e[o];if(void 0===a&&!(o in e)||!i(a))return!1}return!0}function Qn(e,t,n){if("function"!=typeof e)throw new ge(r);return wi((function(){e.apply(void 0,n)}),t)}function er(e,t,n,r){var o=-1,i=lt,a=!0,u=e.length,c=[],l=t.length;if(!u)return c;n&&(t=ft(t,Pt(n))),r?(i=st,a=!1):t.length>=200&&(i=Mt,a=!1,t=new Nn(t));e:for(;++o-1},In.prototype.set=function(e,t){var n=this.__data__,r=qn(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Ln.prototype.clear=function(){this.size=0,this.__data__={hash:new Rn,map:new(hn||In),string:new Rn}},Ln.prototype.delete=function(e){var t=Qo(this,e).delete(e);return this.size-=t?1:0,t},Ln.prototype.get=function(e){return Qo(this,e).get(e)},Ln.prototype.has=function(e){return Qo(this,e).has(e)},Ln.prototype.set=function(e,t){var n=Qo(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Nn.prototype.add=Nn.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Nn.prototype.has=function(e){return this.__data__.has(e)},zn.prototype.clear=function(){this.__data__=new In,this.size=0},zn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},zn.prototype.get=function(e){return this.__data__.get(e)},zn.prototype.has=function(e){return this.__data__.has(e)},zn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof In){var r=n.__data__;if(!hn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Ln(r)}return n.set(e,t),this.size=n.size,this};var tr=Eo(lr),nr=Eo(sr,!0);function rr(e,t){var n=!0;return tr(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function or(e,t,n){for(var r=-1,o=e.length;++r0&&n(u)?t>1?ar(u,t-1,n,r,o):pt(o,u):r||(o[o.length]=u)}return o}var ur=xo(),cr=xo(!0);function lr(e,t){return e&&ur(e,t,wu)}function sr(e,t){return e&&cr(e,t,wu)}function fr(e,t){return ct(t,(function(t){return Ua(e[t])}))}function pr(e,t){for(var n=0,r=(t=co(t,e)).length;null!=e&&nt}function yr(e,t){return null!=e&&Ee.call(e,t)}function gr(e,t){return null!=e&&t in he(e)}function mr(e,t,n){for(var r=n?st:lt,o=e[0].length,i=e.length,a=i,u=G(i),c=1/0,l=[];a--;){var s=e[a];a&&t&&(s=ft(s,Pt(t))),c=cn(s.length,c),u[a]=!n&&(t||o>=120&&s.length>=120)?new Nn(a&&s):void 0}s=e[0];var f=-1,p=u[0];e:for(;++f=u)return c;var l=n[r];return c*("desc"==l?-1:1)}}return e.index-t.index}(e,t,n)}))}function Rr(e,t,n){for(var r=-1,o=t.length,i={};++r-1;)u!==e&&$e.call(u,c,1),$e.call(e,c,1);return e}function Lr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;ci(o)?$e.call(e,o,1):eo(e,o)}}return e}function Nr(e,t){return e+en(fn()*(t-e+1))}function zr(e,t){var n="";if(!e||t<1||t>9007199254740991)return n;do{t%2&&(n+=e),(t=en(t/2))&&(e+=e)}while(t);return n}function Fr(e,t){return Oi(yi(e,t,Gu),e+"")}function Br(e){return Bn(ku(e))}function Ur(e,t){var n=ku(e);return ji(n,Kn(t,0,n.length))}function Vr(e,t,n,r){if(!Wa(e))return e;for(var o=-1,i=(t=co(t,e)).length,a=i-1,u=e;null!=u&&++oo?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=G(o);++r>>1,a=e[i];null!==a&&!Xa(a)&&(n?a<=t:a=200){var l=t?null:Fo(e);if(l)return Vt(l);a=!1,o=Mt,c=new Nn}else c=t?[]:u;e:for(;++r=r?e:Zr(e,t,n)}var fo=Kt||function(e){return qe.clearTimeout(e)};function po(e,t){if(t)return e.slice();var n=e.length,r=He?He(n):new e.constructor(n);return e.copy(r),r}function ho(e){var t=new e.constructor(e.byteLength);return new Be(t).set(new Be(e)),t}function vo(e,t){var n=t?ho(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function yo(e,t){if(e!==t){var n=void 0!==e,r=null===e,o=e==e,i=Xa(e),a=void 0!==t,u=null===t,c=t==t,l=Xa(t);if(!u&&!l&&!i&&e>t||i&&a&&c&&!u&&!l||r&&a&&c||!n&&c||!o)return 1;if(!r&&!i&&!l&&e1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(o--,i):void 0,a&&li(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),t=he(t);++r-1?o[i?t[a]:a]:void 0}}function Po(e){return Zo((function(t){var n=t.length,o=n,i=Dn.prototype.thru;for(e&&t.reverse();o--;){var a=t[o];if("function"!=typeof a)throw new ge(r);if(i&&!u&&"wrapper"==Ko(a))var u=new Dn([],!0)}for(o=u?o:n;++o1&&m.reverse(),s&&cu))return!1;var l=i.get(e),s=i.get(t);if(l&&s)return l==t&&s==e;var f=-1,p=!0,d=2&n?new Nn:void 0;for(i.set(e,t),i.set(t,e);++f-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Y,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return it(i,(function(n){var r="_."+n[0];t&n[1]&&!lt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match($);return t?t[1].split(K):[]}(r),n)))}function xi(e){var t=0,n=0;return function(){var r=ln(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function ji(e,t){var n=-1,r=e.length,o=r-1;for(t=void 0===t?r:t;++n1?e[t-1]:void 0;return n="function"==typeof n?(e.pop(),n):void 0,$i(e,n)}));function na(e){var t=Pn(e);return t.__chain__=!0,t}function ra(e,t){return t(e)}var oa=Zo((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return $n(t,e)};return!(t>1||this.__actions__.length)&&r instanceof An&&ci(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:ra,args:[o],thisArg:void 0}),new Dn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(void 0),e}))):this.thru(o)}));var ia=wo((function(e,t,n){Ee.call(e,n)?++e[n]:Yn(e,n,1)}));var aa=To(Ai),ua=To(Ri);function ca(e,t){return(Ra(e)?it:tr)(e,Xo(t,3))}function la(e,t){return(Ra(e)?at:nr)(e,Xo(t,3))}var sa=wo((function(e,t,n){Ee.call(e,n)?e[n].push(t):Yn(e,n,[t])}));var fa=Fr((function(e,t,n){var r=-1,o="function"==typeof t,i=La(e)?G(e.length):[];return tr(e,(function(e){i[++r]=o?rt(t,e,n):br(e,t,n)})),i})),pa=wo((function(e,t,n){Yn(e,n,t)}));function da(e,t){return(Ra(e)?ft:Tr)(e,Xo(t,3))}var ha=wo((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var va=Fr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&li(e,t[0],t[1])?t=[]:n>2&&li(t[0],t[1],t[2])&&(t=[t[0]]),Ar(e,ar(t,1),[])})),ya=Jt||function(){return qe.Date.now()};function ga(e,t,n){return t=n?void 0:t,Uo(e,128,void 0,void 0,void 0,void 0,t=e&&null==t?e.length:t)}function ma(e,t){var n;if("function"!=typeof t)throw new ge(r);return e=ou(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var ba=Fr((function(e,t,n){var r=1;if(n.length){var o=Ut(n,Jo(ba));r|=32}return Uo(e,r,t,n,o)})),_a=Fr((function(e,t,n){var r=3;if(n.length){var o=Ut(n,Jo(_a));r|=32}return Uo(t,r,e,n,o)}));function wa(e,t,n){var o,i,a,u,c,l,s=0,f=!1,p=!1,d=!0;if("function"!=typeof e)throw new ge(r);function h(t){var n=o,r=i;return o=i=void 0,s=t,u=e.apply(r,n)}function v(e){return s=e,c=wi(g,t),f?h(e):u}function y(e){var n=e-l;return void 0===l||n>=t||n<0||p&&e-s>=a}function g(){var e=ya();if(y(e))return m(e);c=wi(g,function(e){var n=t-(e-l);return p?cn(n,a-(e-s)):n}(e))}function m(e){return c=void 0,d&&o?h(e):(o=i=void 0,u)}function b(){var e=ya(),n=y(e);if(o=arguments,i=this,l=e,n){if(void 0===c)return v(l);if(p)return fo(c),c=wi(g,t),h(l)}return void 0===c&&(c=wi(g,t)),u}return t=au(t)||0,Wa(n)&&(f=!!n.leading,a=(p="maxWait"in n)?un(au(n.maxWait)||0,t):a,d="trailing"in n?!!n.trailing:d),b.cancel=function(){void 0!==c&&fo(c),s=0,o=l=i=c=void 0},b.flush=function(){return void 0===c?u:m(ya())},b}var Oa=Fr((function(e,t){return Qn(e,1,t)})),Ea=Fr((function(e,t,n){return Qn(e,au(t)||0,n)}));function xa(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ge(r);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(xa.Cache||Ln),n}function ja(e){if("function"!=typeof e)throw new ge(r);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}xa.Cache=Ln;var Sa=lo((function(e,t){var n=(t=1==t.length&&Ra(t[0])?ft(t[0],Pt(Xo())):ft(ar(t,1),Pt(Xo()))).length;return Fr((function(r){for(var o=-1,i=cn(r.length,n);++o=t})),Aa=_r(function(){return arguments}())?_r:function(e){return qa(e)&&Ee.call(e,"callee")&&!Ge.call(e,"callee")},Ra=G.isArray,Ia=Je?Pt(Je):function(e){return qa(e)&&hr(e)==w};function La(e){return null!=e&&Ha(e.length)&&!Ua(e)}function Na(e){return qa(e)&&La(e)}var za=nn||ac,Fa=Xe?Pt(Xe):function(e){return qa(e)&&hr(e)==l};function Ba(e){if(!qa(e))return!1;var t=hr(e);return t==s||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!Ya(e)}function Ua(e){if(!Wa(e))return!1;var t=hr(e);return t==f||t==p||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Va(e){return"number"==typeof e&&e==ou(e)}function Ha(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function Wa(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function qa(e){return null!=e&&"object"==typeof e}var Za=Qe?Pt(Qe):function(e){return qa(e)&&oi(e)==d};function Ga(e){return"number"==typeof e||qa(e)&&hr(e)==h}function Ya(e){if(!qa(e)||hr(e)!=v)return!1;var t=We(e);if(null===t)return!0;var n=Ee.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Oe.call(n)==Ce}var $a=et?Pt(et):function(e){return qa(e)&&hr(e)==y};var Ka=tt?Pt(tt):function(e){return qa(e)&&oi(e)==g};function Ja(e){return"string"==typeof e||!Ra(e)&&qa(e)&&hr(e)==m}function Xa(e){return"symbol"==typeof e||qa(e)&&hr(e)==b}var Qa=nt?Pt(nt):function(e){return qa(e)&&Ha(e.length)&&!!ze[hr(e)]};var eu=Lo(Cr),tu=Lo((function(e,t){return e<=t}));function nu(e){if(!e)return[];if(La(e))return Ja(e)?qt(e):bo(e);if(yt&&e[yt])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[yt]());var t=oi(e);return(t==d?Ft:t==g?Vt:ku)(e)}function ru(e){return e?(e=au(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ou(e){var t=ru(e),n=t%1;return t==t?n?t-n:t:0}function iu(e){return e?Kn(ou(e),0,4294967295):0}function au(e){if("number"==typeof e)return e;if(Xa(e))return NaN;if(Wa(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Wa(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Tt(e);var n=re.test(e);return n||ie.test(e)?Ve(e.slice(2),n?2:8):ne.test(e)?NaN:+e}function uu(e){return _o(e,Ou(e))}function cu(e){return null==e?"":Xr(e)}var lu=Oo((function(e,t){if(di(t)||La(t))_o(t,wu(t),e);else for(var n in t)Ee.call(t,n)&&Wn(e,n,t[n])})),su=Oo((function(e,t){_o(t,Ou(t),e)})),fu=Oo((function(e,t,n,r){_o(t,Ou(t),e,r)})),pu=Oo((function(e,t,n,r){_o(t,wu(t),e,r)})),du=Zo($n);var hu=Fr((function(e,t){e=he(e);var n=-1,r=t.length,o=r>2?t[2]:void 0;for(o&&li(t[0],t[1],o)&&(r=1);++n1),t})),_o(e,Yo(e),n),r&&(n=Jn(n,7,Wo));for(var o=t.length;o--;)eo(n,t[o]);return n}));var Su=Zo((function(e,t){return null==e?{}:function(e,t){return Rr(e,t,(function(t,n){return gu(e,n)}))}(e,t)}));function Cu(e,t){if(null==e)return{};var n=ft(Yo(e),(function(e){return[e]}));return t=Xo(t),Rr(e,n,(function(e,n){return t(e,n[0])}))}var Tu=Bo(wu),Pu=Bo(Ou);function ku(e){return null==e?[]:kt(e,wu(e))}var Mu=So((function(e,t,n){return t=t.toLowerCase(),e+(n?Du(t):t)}));function Du(e){return Bu(cu(e).toLowerCase())}function Au(e){return(e=cu(e))&&e.replace(ue,It).replace(Me,"")}var Ru=So((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Iu=So((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Lu=jo("toLowerCase");var Nu=So((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var zu=So((function(e,t,n){return e+(n?" ":"")+Bu(t)}));var Fu=So((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Bu=jo("toUpperCase");function Uu(e,t,n){return e=cu(e),void 0===(t=n?void 0:t)?function(e){return Ie.test(e)}(e)?function(e){return e.match(Ae)||[]}(e):function(e){return e.match(J)||[]}(e):e.match(t)||[]}var Vu=Fr((function(e,t){try{return rt(e,void 0,t)}catch(e){return Ba(e)?e:new fe(e)}})),Hu=Zo((function(e,t){return it(t,(function(t){t=Ci(t),Yn(e,t,ba(e[t],e))})),e}));function Wu(e){return function(){return e}}var qu=Po(),Zu=Po(!0);function Gu(e){return e}function Yu(e){return xr("function"==typeof e?e:Jn(e,1))}var $u=Fr((function(e,t){return function(n){return br(n,e,t)}})),Ku=Fr((function(e,t){return function(n){return br(e,n,t)}}));function Ju(e,t,n){var r=wu(t),o=fr(t,r);null!=n||Wa(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=fr(t,wu(t)));var i=!(Wa(n)&&"chain"in n&&!n.chain),a=Ua(e);return it(o,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__),o=n.__actions__=bo(this.__actions__);return o.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,pt([this.value()],arguments))})})),e}function Xu(){}var Qu=Ao(ft),ec=Ao(ut),tc=Ao(vt);function nc(e){return si(e)?Et(Ci(e)):function(e){return function(t){return pr(t,e)}}(e)}var rc=Io(),oc=Io(!0);function ic(){return[]}function ac(){return!1}var uc=Do((function(e,t){return e+t}),0),cc=zo("ceil"),lc=Do((function(e,t){return e/t}),1),sc=zo("floor");var fc,pc=Do((function(e,t){return e*t}),1),dc=zo("round"),hc=Do((function(e,t){return e-t}),0);return Pn.after=function(e,t){if("function"!=typeof t)throw new ge(r);return e=ou(e),function(){if(--e<1)return t.apply(this,arguments)}},Pn.ary=ga,Pn.assign=lu,Pn.assignIn=su,Pn.assignInWith=fu,Pn.assignWith=pu,Pn.at=du,Pn.before=ma,Pn.bind=ba,Pn.bindAll=Hu,Pn.bindKey=_a,Pn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ra(e)?e:[e]},Pn.chain=na,Pn.chunk=function(e,t,n){t=(n?li(e,t,n):void 0===t)?1:un(ou(t),0);var r=null==e?0:e.length;if(!r||t<1)return[];for(var o=0,i=0,a=G(Qt(r/t));oo?0:o+n),(r=void 0===r||r>o?o:ou(r))<0&&(r+=o),r=n>r?0:iu(r);n>>0)?(e=cu(e))&&("string"==typeof t||null!=t&&!$a(t))&&!(t=Xr(t))&&zt(e)?so(qt(e),0,n):e.split(t,n):[]},Pn.spread=function(e,t){if("function"!=typeof e)throw new ge(r);return t=null==t?0:un(ou(t),0),Fr((function(n){var r=n[t],o=so(n,0,t);return r&&pt(o,r),rt(e,this,o)}))},Pn.tail=function(e){var t=null==e?0:e.length;return t?Zr(e,1,t):[]},Pn.take=function(e,t,n){return e&&e.length?Zr(e,0,(t=n||void 0===t?1:ou(t))<0?0:t):[]},Pn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?Zr(e,(t=r-(t=n||void 0===t?1:ou(t)))<0?0:t,r):[]},Pn.takeRightWhile=function(e,t){return e&&e.length?no(e,Xo(t,3),!1,!0):[]},Pn.takeWhile=function(e,t){return e&&e.length?no(e,Xo(t,3)):[]},Pn.tap=function(e,t){return t(e),e},Pn.throttle=function(e,t,n){var o=!0,i=!0;if("function"!=typeof e)throw new ge(r);return Wa(n)&&(o="leading"in n?!!n.leading:o,i="trailing"in n?!!n.trailing:i),wa(e,t,{leading:o,maxWait:t,trailing:i})},Pn.thru=ra,Pn.toArray=nu,Pn.toPairs=Tu,Pn.toPairsIn=Pu,Pn.toPath=function(e){return Ra(e)?ft(e,Ci):Xa(e)?[e]:bo(Si(cu(e)))},Pn.toPlainObject=uu,Pn.transform=function(e,t,n){var r=Ra(e),o=r||za(e)||Qa(e);if(t=Xo(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:Wa(e)&&Ua(i)?kn(We(e)):{}}return(o?it:lr)(e,(function(e,r,o){return t(n,e,r,o)})),n},Pn.unary=function(e){return ga(e,1)},Pn.union=qi,Pn.unionBy=Zi,Pn.unionWith=Gi,Pn.uniq=function(e){return e&&e.length?Qr(e):[]},Pn.uniqBy=function(e,t){return e&&e.length?Qr(e,Xo(t,2)):[]},Pn.uniqWith=function(e,t){return t="function"==typeof t?t:void 0,e&&e.length?Qr(e,void 0,t):[]},Pn.unset=function(e,t){return null==e||eo(e,t)},Pn.unzip=Yi,Pn.unzipWith=$i,Pn.update=function(e,t,n){return null==e?e:to(e,t,uo(n))},Pn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:to(e,t,uo(n),r)},Pn.values=ku,Pn.valuesIn=function(e){return null==e?[]:kt(e,Ou(e))},Pn.without=Ki,Pn.words=Uu,Pn.wrap=function(e,t){return Ca(uo(t),e)},Pn.xor=Ji,Pn.xorBy=Xi,Pn.xorWith=Qi,Pn.zip=ea,Pn.zipObject=function(e,t){return io(e||[],t||[],Wn)},Pn.zipObjectDeep=function(e,t){return io(e||[],t||[],Vr)},Pn.zipWith=ta,Pn.entries=Tu,Pn.entriesIn=Pu,Pn.extend=su,Pn.extendWith=fu,Ju(Pn,Pn),Pn.add=uc,Pn.attempt=Vu,Pn.camelCase=Mu,Pn.capitalize=Du,Pn.ceil=cc,Pn.clamp=function(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=au(n))==n?n:0),void 0!==t&&(t=(t=au(t))==t?t:0),Kn(au(e),t,n)},Pn.clone=function(e){return Jn(e,4)},Pn.cloneDeep=function(e){return Jn(e,5)},Pn.cloneDeepWith=function(e,t){return Jn(e,5,t="function"==typeof t?t:void 0)},Pn.cloneWith=function(e,t){return Jn(e,4,t="function"==typeof t?t:void 0)},Pn.conformsTo=function(e,t){return null==t||Xn(e,t,wu(t))},Pn.deburr=Au,Pn.defaultTo=function(e,t){return null==e||e!=e?t:e},Pn.divide=lc,Pn.endsWith=function(e,t,n){e=cu(e),t=Xr(t);var r=e.length,o=n=void 0===n?r:Kn(ou(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},Pn.eq=ka,Pn.escape=function(e){return(e=cu(e))&&N.test(e)?e.replace(I,Lt):e},Pn.escapeRegExp=function(e){return(e=cu(e))&&q.test(e)?e.replace(W,"\\$&"):e},Pn.every=function(e,t,n){var r=Ra(e)?ut:rr;return n&&li(e,t,n)&&(t=void 0),r(e,Xo(t,3))},Pn.find=aa,Pn.findIndex=Ai,Pn.findKey=function(e,t){return gt(e,Xo(t,3),lr)},Pn.findLast=ua,Pn.findLastIndex=Ri,Pn.findLastKey=function(e,t){return gt(e,Xo(t,3),sr)},Pn.floor=sc,Pn.forEach=ca,Pn.forEachRight=la,Pn.forIn=function(e,t){return null==e?e:ur(e,Xo(t,3),Ou)},Pn.forInRight=function(e,t){return null==e?e:cr(e,Xo(t,3),Ou)},Pn.forOwn=function(e,t){return e&&lr(e,Xo(t,3))},Pn.forOwnRight=function(e,t){return e&&sr(e,Xo(t,3))},Pn.get=yu,Pn.gt=Ma,Pn.gte=Da,Pn.has=function(e,t){return null!=e&&ii(e,t,yr)},Pn.hasIn=gu,Pn.head=Li,Pn.identity=Gu,Pn.includes=function(e,t,n,r){e=La(e)?e:ku(e),n=n&&!r?ou(n):0;var o=e.length;return n<0&&(n=un(o+n,0)),Ja(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&bt(e,t,n)>-1},Pn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:ou(n);return o<0&&(o=un(r+o,0)),bt(e,t,o)},Pn.inRange=function(e,t,n){return t=ru(t),void 0===n?(n=t,t=0):n=ru(n),function(e,t,n){return e>=cn(t,n)&&e=-9007199254740991&&e<=9007199254740991},Pn.isSet=Ka,Pn.isString=Ja,Pn.isSymbol=Xa,Pn.isTypedArray=Qa,Pn.isUndefined=function(e){return void 0===e},Pn.isWeakMap=function(e){return qa(e)&&oi(e)==_},Pn.isWeakSet=function(e){return qa(e)&&"[object WeakSet]"==hr(e)},Pn.join=function(e,t){return null==e?"":on.call(e,t)},Pn.kebabCase=Ru,Pn.last=Bi,Pn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return void 0!==n&&(o=(o=ou(n))<0?un(r+o,0):cn(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):mt(e,wt,o,!0)},Pn.lowerCase=Iu,Pn.lowerFirst=Lu,Pn.lt=eu,Pn.lte=tu,Pn.max=function(e){return e&&e.length?or(e,Gu,vr):void 0},Pn.maxBy=function(e,t){return e&&e.length?or(e,Xo(t,2),vr):void 0},Pn.mean=function(e){return Ot(e,Gu)},Pn.meanBy=function(e,t){return Ot(e,Xo(t,2))},Pn.min=function(e){return e&&e.length?or(e,Gu,Cr):void 0},Pn.minBy=function(e,t){return e&&e.length?or(e,Xo(t,2),Cr):void 0},Pn.stubArray=ic,Pn.stubFalse=ac,Pn.stubObject=function(){return{}},Pn.stubString=function(){return""},Pn.stubTrue=function(){return!0},Pn.multiply=pc,Pn.nth=function(e,t){return e&&e.length?Dr(e,ou(t)):void 0},Pn.noConflict=function(){return qe._===this&&(qe._=Te),this},Pn.noop=Xu,Pn.now=ya,Pn.pad=function(e,t,n){e=cu(e);var r=(t=ou(t))?Wt(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Ro(en(o),n)+e+Ro(Qt(o),n)},Pn.padEnd=function(e,t,n){e=cu(e);var r=(t=ou(t))?Wt(e):0;return t&&rt){var r=e;e=t,t=r}if(n||e%1||t%1){var o=fn();return cn(e+o*(t-e+Ue("1e-"+((o+"").length-1))),t)}return Nr(e,t)},Pn.reduce=function(e,t,n){var r=Ra(e)?dt:jt,o=arguments.length<3;return r(e,Xo(t,4),n,o,tr)},Pn.reduceRight=function(e,t,n){var r=Ra(e)?ht:jt,o=arguments.length<3;return r(e,Xo(t,4),n,o,nr)},Pn.repeat=function(e,t,n){return t=(n?li(e,t,n):void 0===t)?1:ou(t),zr(cu(e),t)},Pn.replace=function(){var e=arguments,t=cu(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Pn.result=function(e,t,n){var r=-1,o=(t=co(t,e)).length;for(o||(o=1,e=void 0);++r9007199254740991)return[];var n=4294967295,r=cn(e,4294967295);e-=4294967295;for(var o=Ct(r,t=Xo(t));++n=i)return e;var u=n-Wt(r);if(u<1)return r;var c=a?so(a,0,u).join(""):e.slice(0,u);if(void 0===o)return c+r;if(a&&(u+=c.length-u),$a(o)){if(e.slice(u).search(o)){var l,s=c;for(o.global||(o=ve(o.source,cu(te.exec(o))+"g")),o.lastIndex=0;l=o.exec(s);)var f=l.index;c=c.slice(0,void 0===f?u:f)}}else if(e.indexOf(Xr(o),u)!=u){var p=c.lastIndexOf(o);p>-1&&(c=c.slice(0,p))}return c+r},Pn.unescape=function(e){return(e=cu(e))&&L.test(e)?e.replace(R,Gt):e},Pn.uniqueId=function(e){var t=++xe;return cu(e)+t},Pn.upperCase=Fu,Pn.upperFirst=Bu,Pn.each=ca,Pn.eachRight=la,Pn.first=Li,Ju(Pn,(fc={},lr(Pn,(function(e,t){Ee.call(Pn.prototype,t)||(fc[t]=e)})),fc),{chain:!1}),Pn.VERSION="4.17.21",it(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Pn[e].placeholder=Pn})),it(["drop","take"],(function(e,t){An.prototype[e]=function(n){n=void 0===n?1:un(ou(n),0);var r=this.__filtered__&&!t?new An(this):this.clone();return r.__filtered__?r.__takeCount__=cn(n,r.__takeCount__):r.__views__.push({size:cn(n,4294967295),type:e+(r.__dir__<0?"Right":"")}),r},An.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),it(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;An.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Xo(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),it(["head","last"],(function(e,t){var n="take"+(t?"Right":"");An.prototype[e]=function(){return this[n](1).value()[0]}})),it(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");An.prototype[e]=function(){return this.__filtered__?new An(this):this[n](1)}})),An.prototype.compact=function(){return this.filter(Gu)},An.prototype.find=function(e){return this.filter(e).head()},An.prototype.findLast=function(e){return this.reverse().find(e)},An.prototype.invokeMap=Fr((function(e,t){return"function"==typeof e?new An(this):this.map((function(n){return br(n,e,t)}))})),An.prototype.reject=function(e){return this.filter(ja(Xo(e)))},An.prototype.slice=function(e,t){e=ou(e);var n=this;return n.__filtered__&&(e>0||t<0)?new An(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),void 0!==t&&(n=(t=ou(t))<0?n.dropRight(-t):n.take(t-e)),n)},An.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},An.prototype.toArray=function(){return this.take(4294967295)},lr(An.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=Pn[r?"take"+("last"==t?"Right":""):t],i=r||/^find/.test(t);o&&(Pn.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,u=t instanceof An,c=a[0],l=u||Ra(t),s=function(e){var t=o.apply(Pn,pt([e],a));return r&&f?t[0]:t};l&&n&&"function"==typeof c&&1!=c.length&&(u=l=!1);var f=this.__chain__,p=!!this.__actions__.length,d=i&&!f,h=u&&!p;if(!i&&l){t=h?t:new An(this);var v=e.apply(t,a);return v.__actions__.push({func:ra,args:[s],thisArg:void 0}),new Dn(v,f)}return d&&h?e.apply(this,a):(v=this.thru(s),d?r?v.value()[0]:v.value():v)})})),it(["pop","push","shift","sort","splice","unshift"],(function(e){var t=me[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Pn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(Ra(o)?o:[],e)}return this[n]((function(n){return t.apply(Ra(n)?n:[],e)}))}})),lr(An.prototype,(function(e,t){var n=Pn[t];if(n){var r=n.name+"";Ee.call(_n,r)||(_n[r]=[]),_n[r].push({name:t,func:n})}})),_n[ko(void 0,2).name]=[{name:"wrapper",func:void 0}],An.prototype.clone=function(){var e=new An(this.__wrapped__);return e.__actions__=bo(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=bo(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=bo(this.__views__),e},An.prototype.reverse=function(){if(this.__filtered__){var e=new An(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},An.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ra(e),r=t<0,o=n?e.length:0,i=function(e,t,n){var r=-1,o=n.length;for(;++r=this.__values__.length;return{done:e,value:e?void 0:this.__values__[this.__index__++]}},Pn.prototype.plant=function(e){for(var t,n=this;n instanceof Mn;){var r=Pi(n);r.__index__=0,r.__values__=void 0,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},Pn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof An){var t=e;return this.__actions__.length&&(t=new An(this)),(t=t.reverse()).__actions__.push({func:ra,args:[Wi],thisArg:void 0}),new Dn(t,this.__chain__)}return this.thru(Wi)},Pn.prototype.toJSON=Pn.prototype.valueOf=Pn.prototype.value=function(){return ro(this.__wrapped__,this.__actions__)},Pn.prototype.first=Pn.prototype.head,yt&&(Pn.prototype[yt]=function(){return this}),Pn}();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(qe._=Yt,define((function(){return Yt}))):Ge?((Ge.exports=Yt)._=Yt,Ze._=Yt):qe._=Yt}).call(this)}).call(this,n(35),n(54)(e))},function(e,t,n){"use strict";n.r(t),n.d(t,"props",(function(){return Z})),n.d(t,"path",(function(){return G})),n.d(t,"state",(function(){return Y})),n.d(t,"string",(function(){return $})),n.d(t,"sequences",(function(){return K})),n.d(t,"computed",(function(){return J})),n.d(t,"moduleState",(function(){return X})),n.d(t,"moduleSequences",(function(){return Q})),n.d(t,"moduleComputed",(function(){return ee})),n.d(t,"ModuleClass",(function(){return h})),n.d(t,"ControllerClass",(function(){return P})),n.d(t,"ProviderClass",(function(){return y.a})),n.d(t,"BaseControllerClass",(function(){return E})),n.d(t,"ChainSequenceFactory",(function(){return z})),n.d(t,"ChainSequenceWithPropsFactory",(function(){return F})),n.d(t,"sequence",(function(){return u.j})),n.d(t,"parallel",(function(){return u.h})),n.d(t,"createTemplateTag",(function(){return u.e})),n.d(t,"extractValueWithPath",(function(){return u.g})),n.d(t,"resolveObject",(function(){return u.i})),n.d(t,"ResolveValue",(function(){return u.c})),n.d(t,"Tag",(function(){return u.d})),n.d(t,"Controller",(function(){return te})),n.d(t,"UniversalController",(function(){return ne})),n.d(t,"UniversalApp",(function(){return re})),n.d(t,"Module",(function(){return oe})),n.d(t,"CerebralError",(function(){return V})),n.d(t,"Provider",(function(){return y.a})),n.d(t,"Compute",(function(){return c.c})),n.d(t,"Reaction",(function(){return p})),n.d(t,"View",(function(){return W})),n.d(t,"createDummyController",(function(){return o.d})),n.d(t,"throwError",(function(){return o.y})),n.d(t,"default",(function(){return ae}));var r=n(39),o=n(2),i=function(){function e(e,t){for(var n=0;nt.rawId?1:-1}))}},{key:"getUniqueEntities",value:function(e){return Object(o.g)(e,this.map).reduce((function(e,t){return(t.entities||[]).reduce((function(e,t){return-1===e.indexOf(t)?e.concat(t):e}),e)}),[]).sort((function(e,t){return e.rawId>t.rawId?1:-1}))}}]),e}(),u=n(10),c=n(17),l=n(51),s=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:[];n=Object(o.h)(n),Object(o.a)("module.*","use the new STORE provider, store.set(state.isAwesome, true)");for(var r=this.context.execution.name.split("."),i=r.splice(0,r.length-1),a=arguments.length,u=Array(a>1?a-1:0),c=1;c2&&void 0!==arguments[2]?arguments[2]:{};!this.devtools||Object(o.v)(r)&&Object(o.w)(r)||(console.warn('You passed an invalid payload to sequence "'+e+'". Only serializable payloads can be passed to a sequence. The payload has been ignored. This is the object:',r),r={}),this.devtools&&(r=Object.keys(r).reduce((function(t,i){return Object(o.w)(r[i],n.devtools.allowedTypes)?(t[i]=Object(o.k)(r[i]),t):(console.warn('You passed an invalid payload to sequence "'+e+'", on key "'+i+'". Only serializable values like Object, Array, String, Number and Boolean can be passed in. Also these special value types:',n.devtools.allowedTypes),t)}),{}));var i=function(e){if(e){var t=Object(o.h)(e.execution.name).reduce((function(e,t,n){return e.currentModule.catch&&(e.catchingModule=e.currentModule),e.currentModule=e.currentModule.modules[t],e}),{currentModule:n.module,catchingModule:null});if(t.catchingModule){var r=!0,i=!1,a=void 0;try{for(var u,c=t.catchingModule.catch[Symbol.iterator]();!(r=(u=c.next()).done);r=!0){var l=w(u.value,2),s=l[0],f=l[1];if(e instanceof s)return n.runSequence("catch",f,e.payload),void(n.throwToConsole&&setTimeout((function(){console.log('Cerebral is handling error "'+e.name+": "+e.message+'" thrown by sequence "'+e.execution.name+'". Check debugger for more information.')})))}}catch(e){i=!0,a=e}finally{try{!r&&c.return&&c.return()}finally{if(i)throw a}}}if(!n.noRethrow){if(!e.execution.isAsync)throw e;setTimeout((function(){throw e}))}}};if(this.returnSequencePromise)return this.run(e,t,r).catch(i);this.run(e,t,r,i)}},{key:"getSequence",value:function(e){var t=Object(o.h)(e),n=t.pop(),r=t.reduce((function(e,t){return e?e.modules[t]:void 0}),this.module),i=r&&r.sequences[n];if(i)return i&&i.run}},{key:"getSequences",value:function(e){var t=Object(o.h)(e).reduce((function(e,t){return e?e.modules[t]:void 0}),this.module),n=t&&t.sequences;if(n){var r={};for(var i in n)r[i]=n[i].run;return r}}},{key:"addModule",value:function(e,t){var n=Object(o.h)(e),r=n.pop(),i=Object(o.m)(n,this.module),a=t instanceof h?t.create(this,Object(o.h)(e)):new h(t).create(this,Object(o.h)(e));i.modules[r]=a,a.providers&&Object.assign(this.contextProviders,a.providers),this.emit("moduleAdded",e.split("."),a),this.flush()}},{key:"removeModule",value:function(e){var t=this;if(!e)return console.warn("Controller.removeModule requires a Module Path"),null;var n=Object(o.h)(e),r=n.pop(),i=Object(o.m)(n,this.module),a=i.modules[r];a.providers&&Object.keys(a.providers).forEach((function(e){delete t.contextProviders[e]})),delete i.modules[r],this.emit("moduleRemoved",Object(o.h)(e),a),this.flush()}}]),t}(u.f),x=n(79),j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},S=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]&&arguments[2];e.length?e.reduce((function(i,a,u){if(u===e.length-1){Array.isArray(i)||Object(o.v)(i)||Object(o.y)('The path "'+e.join(".")+'" is invalid. Path: "'+e.slice(0,e.length-1).join(".")+'" is type of "'+(null===i?"null":void 0===i?"undefined":j(i))+'"');var c=i[a];t(i[a],i,a),(i[a]!==c||Object(o.s)(i[a])&&Object(o.s)(c))&&n.changedPaths.push({path:e,forceChildPathUpdates:r})}else i[a]||(i[a]={});return i[a]}),this.state):t(this.state,this,"state")}},{key:"checkForComputed",value:function(e){var t=e.reduce((function(e,t){return e[t]}),this.state);if(t instanceof c.a&&Object(o.y)('You are trying to replace a computed value on path "'+e.join(".")+'", but that is not allowed'),Object(o.v)(t)){!function e(t,n){Object.keys(t).forEach((function(r){t[r]instanceof c.a?Object(o.y)('You are trying to replace a computed value on path "'+n.join(".")+'", but that is not allowed'):Object(o.v)(t[r])&&e(t[r],n.concat(r))}))}(t,e)}}},{key:"verifyValue",value:function(e,t){this.devtools&&(this.checkForComputed(t),Object(o.w)(e,this.devtools.allowedTypes)||Object(o.y)('You are passing a non serializable value into the state tree on path "'+t.join(".")+'"'),Object(o.k)(e),this.devtools.warnStateProps&&Object(o.b)(e))}},{key:"verifyValues",value:function(e,t){var n=this;this.devtools&&e.forEach((function(e){n.verifyValue(e,t)}))}},{key:"emitMutationEvent",value:function(e,t,n){for(var r=arguments.length,o=Array(r>3?r-3:0),i=3;i0&&void 0!==arguments[0]?arguments[0]:[];return e.reduce((function(t,n,r){return t instanceof c.b?t:t instanceof c.a?new c.b(t,e.slice(r)):t?t[n]:void 0}),this.state)}},{key:"set",value:function(e,t){this.verifyValue(t,e),this.updateIn(e,(function(e,n,r){n[r]=t}),!0),this.emitMutationEvent("set",e,!0,t)}},{key:"toggle",value:function(e){this.updateIn(e,(function(e,t,n){t[n]=!e})),this.emitMutationEvent("toggle",e,!1)}},{key:"push",value:function(e,t){this.verifyValue(t,e),this.updateIn(e,(function(e){e.push(t)})),this.emitMutationEvent("push",e,t,!1)}},{key:"merge",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r1?t-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:1;if(!Number.isInteger(t))throw new Error("Cerebral state.increment: you must increment with integer values.");this.updateIn(e,(function(e,n,r){if(!Number.isInteger(e))throw new Error("Cerebral state.increment: you must increment integer values.");n[r]=e+t})),this.emitMutationEvent("increment",e,!1,t)}}]),t}(x.a),T=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},n=this.createContext(t),r=e.getValue(n);return Object(o.t)(r)?r.getValue(t):r}},{key:"createContext",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=t.length?t.join(".")+".":"";return{props:e,controller:this,execution:{name:n}}}},{key:"createDependencyMap",value:function(e,t,n){var r=this,i=this.createContext(t,n);return e.reduce((function(e,n){return n instanceof u.d?n.getTags(i).reduce((function(e,n){if("state"===n.type||"moduleState"===n.type){var a=n.getValue(i);if(Object(o.t)(a))return a.getValue(t),Object.assign(e,a.getDependencyMap());var u=n.getPath(i);e[Object(o.i)(u,r.getState(u))]=!0}return e}),e):e}),{})}}]),t}(E),k=function(){function e(e,t){for(var n=0;nwindow.CEREBRAL_STATE = "+e+"<\/script>"}},{key:"runSequence",value:function(e,t){var n=void 0;if(Array.isArray(e))n=this.run("UniversalController.run",e,t);else if("string"==typeof e){var r=Object(o.h)(e),i=r.pop(),a=Object(o.m)(r,this.module),u=a&&a.sequences[i];n=this.run(e,u.sequence,t)}else Object(o.y)("Sequence must be a sequence-path or an array of action.");return n}},{key:"setState",value:function(e,t){this.model.set(Object(o.h)(e),t),this.flush(!0)}}]),t}(P),A=n(44),R=(M=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}M(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),I=function(){function e(e){this.sequenceArray=e}return e.prototype.action=function(){for(var t=[],n=0;n0&&void 0!==arguments[0]?arguments[0]:"";B(this,t);var n=U(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return Object.defineProperty(n,"message",{configurable:!0,enumerable:!1,value:e,writable:!0}),Object.defineProperty(n,"name",{configurable:!0,enumerable:!1,value:n.constructor.name,writable:!0}),Error.hasOwnProperty("captureStackTrace")?(Error.captureStackTrace(n,n.constructor),U(n)):(Object.defineProperty(n,"stack",{configurable:!0,enumerable:!1,value:new Error(e).stack,writable:!0}),n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(function(e){function t(){e.apply(this,arguments)}return t.prototype=Object.create(e.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e,t}(Error))),H=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=Object.keys(this.dependencies).reduce((function(r,i){var a=t.dependencies[i],u=a.getValue(e);if(Object(o.t)(u)){var c=a.getPath(e);t.computedWithProps[c]?r[i]=t.computedWithProps[c].getValue(n):r[i]=u.getValue(n)}else r[i]=u;return r}),{});return this.controller.devtools&&this.controller.devtools.bigComponentsWarning&&!this._hasWarnedBigComponent&&Object.keys(this.dependencies).length>=this.controller.devtools.bigComponentsWarning&&(console.warn("Component named "+this._displayName+" has a lot of dependencies, consider refactoring or adjust this option in devtools"),this._hasWarnedBigComponent=!0),this.mergeProps?this.mergeProps(i,n,(function(t){t instanceof u.d||Object(o.y)("You are not passing a tag to the mergeProp get function");var r=t.getValue(e);return Object(o.t)(r)?r.getValue(n):r})):(i.get=this.createDynamicGetter(n,e),i.reaction=this.createReaction,Object.assign({},r?n:{},i))}},{key:"render",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},n=arguments[2],r=this.controller.createContext(e),o=this.getProps(r,e,n);this.executedCount++,this.controller.devtools&&this.controller.devtools.sendWatchMap([],[],0,0);var i=t(o);return this.dynamicDependencies.length&&this.update(e),i}}]),t}(l.a),q=r;var Z=q.props,G=q.path,Y=q.state,$=q.string,K=q.sequences,J=q.computed,X=q.moduleState,Q=q.moduleSequences,ee=q.moduleComputed;function te(e,t){return Object(o.a)("Controller","Use App default import instead"),new P(e,t)}function ne(e,t){return Object(o.a)("UniversalController","Use UniversalApp import instead"),new D(e,t)}function re(e,t){return new D(e,t)}function oe(e){return Object(o.a)("Module","Use plain object/function. Type with ModuleDefinition export"),new h(e)}var ie=void 0;function ae(e,t){return t&&!0===t.hotReloading&&ie?(ie.reconfigure(e),ie):ie=new P(e,t)}},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){(function(e,n){(function(){var r="Expected a function",o="__lodash_placeholder__",i=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],a="[object Arguments]",u="[object Array]",c="[object Boolean]",l="[object Date]",s="[object Error]",f="[object Function]",p="[object GeneratorFunction]",d="[object Map]",h="[object Number]",v="[object Object]",y="[object RegExp]",g="[object Set]",m="[object String]",b="[object Symbol]",_="[object WeakMap]",w="[object ArrayBuffer]",O="[object DataView]",E="[object Float32Array]",x="[object Float64Array]",j="[object Int8Array]",S="[object Int16Array]",C="[object Int32Array]",T="[object Uint8Array]",P="[object Uint16Array]",k="[object Uint32Array]",M=/\b__p \+= '';/g,D=/\b(__p \+=) '' \+/g,A=/(__e\(.*?\)|\b__t\)) \+\n'';/g,R=/&(?:amp|lt|gt|quot|#39);/g,I=/[&<>"']/g,L=RegExp(R.source),N=RegExp(I.source),z=/<%-([\s\S]+?)%>/g,F=/<%([\s\S]+?)%>/g,B=/<%=([\s\S]+?)%>/g,U=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,V=/^\w*$/,H=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,W=/[\\^$.*+?()[\]{}|]/g,q=RegExp(W.source),Z=/^\s+/,G=/\s/,Y=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,$=/\{\n\/\* \[wrapped with (.+)\] \*/,K=/,? & /,J=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,X=/[()=,{}\[\]\/\s]/,Q=/\\(\\)?/g,ee=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,te=/\w*$/,ne=/^[-+]0x[0-9a-f]+$/i,re=/^0b[01]+$/i,oe=/^\[object .+?Constructor\]$/,ie=/^0o[0-7]+$/i,ae=/^(?:0|[1-9]\d*)$/,ue=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ce=/($^)/,le=/['\n\r\u2028\u2029\\]/g,se="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",fe="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",pe="[\\ud800-\\udfff]",de="["+fe+"]",he="["+se+"]",ve="\\d+",ye="[\\u2700-\\u27bf]",ge="[a-z\\xdf-\\xf6\\xf8-\\xff]",me="[^\\ud800-\\udfff"+fe+ve+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",be="\\ud83c[\\udffb-\\udfff]",_e="[^\\ud800-\\udfff]",we="(?:\\ud83c[\\udde6-\\uddff]){2}",Oe="[\\ud800-\\udbff][\\udc00-\\udfff]",Ee="[A-Z\\xc0-\\xd6\\xd8-\\xde]",xe="(?:"+ge+"|"+me+")",je="(?:"+Ee+"|"+me+")",Se="(?:"+he+"|"+be+")"+"?",Ce="[\\ufe0e\\ufe0f]?"+Se+("(?:\\u200d(?:"+[_e,we,Oe].join("|")+")[\\ufe0e\\ufe0f]?"+Se+")*"),Te="(?:"+[ye,we,Oe].join("|")+")"+Ce,Pe="(?:"+[_e+he+"?",he,we,Oe,pe].join("|")+")",ke=RegExp("['\u2019]","g"),Me=RegExp(he,"g"),De=RegExp(be+"(?="+be+")|"+Pe+Ce,"g"),Ae=RegExp([Ee+"?"+ge+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?(?="+[de,Ee,"$"].join("|")+")",je+"+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?(?="+[de,Ee+xe,"$"].join("|")+")",Ee+"?"+xe+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?",Ee+"+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ve,Te].join("|"),"g"),Re=RegExp("[\\u200d\\ud800-\\udfff"+se+"\\ufe0e\\ufe0f]"),Ie=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Le=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ne=-1,ze={};ze[E]=ze[x]=ze[j]=ze[S]=ze[C]=ze[T]=ze["[object Uint8ClampedArray]"]=ze[P]=ze[k]=!0,ze[a]=ze[u]=ze[w]=ze[c]=ze[O]=ze[l]=ze[s]=ze[f]=ze[d]=ze[h]=ze[v]=ze[y]=ze[g]=ze[m]=ze[_]=!1;var Fe={};Fe[a]=Fe[u]=Fe[w]=Fe[O]=Fe[c]=Fe[l]=Fe[E]=Fe[x]=Fe[j]=Fe[S]=Fe[C]=Fe[d]=Fe[h]=Fe[v]=Fe[y]=Fe[g]=Fe[m]=Fe[b]=Fe[T]=Fe["[object Uint8ClampedArray]"]=Fe[P]=Fe[k]=!0,Fe[s]=Fe[f]=Fe[_]=!1;var Be={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ue=parseFloat,Ve=parseInt,He="object"==typeof e&&e&&e.Object===Object&&e,We="object"==typeof self&&self&&self.Object===Object&&self,qe=He||We||Function("return this")(),Ze=t&&!t.nodeType&&t,Ge=Ze&&"object"==typeof n&&n&&!n.nodeType&&n,Ye=Ge&&Ge.exports===Ze,$e=Ye&&He.process,Ke=function(){try{var e=Ge&&Ge.require&&Ge.require("util").types;return e||$e&&$e.binding&&$e.binding("util")}catch(e){}}(),Je=Ke&&Ke.isArrayBuffer,Xe=Ke&&Ke.isDate,Qe=Ke&&Ke.isMap,et=Ke&&Ke.isRegExp,tt=Ke&&Ke.isSet,nt=Ke&&Ke.isTypedArray;function rt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function ot(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o-1}function st(e,t,n){for(var r=-1,o=null==e?0:e.length;++r-1;);return n}function At(e,t){for(var n=e.length;n--&&bt(t,e[n],0)>-1;);return n}function Rt(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var It=xt({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),Lt=xt({"&":"&","<":"<",">":">",'"':""","'":"'"});function Nt(e){return"\\"+Be[e]}function zt(e){return Re.test(e)}function Ft(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function Bt(e,t){return function(n){return e(t(n))}}function Ut(e,t){for(var n=-1,r=e.length,i=0,a=[];++n",""":'"',"'":"'"});var Yt=function e(t){var n,G=(t=null==t?qe:Yt.defaults(qe.Object(),t,Yt.pick(qe,Le))).Array,se=t.Date,fe=t.Error,pe=t.Function,de=t.Math,he=t.Object,ve=t.RegExp,ye=t.String,ge=t.TypeError,me=G.prototype,be=pe.prototype,_e=he.prototype,we=t["__core-js_shared__"],Oe=be.toString,Ee=_e.hasOwnProperty,xe=0,je=(n=/[^.]+$/.exec(we&&we.keys&&we.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Se=_e.toString,Ce=Oe.call(he),Te=qe._,Pe=ve("^"+Oe.call(Ee).replace(W,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),De=Ye?t.Buffer:void 0,Re=t.Symbol,Be=t.Uint8Array,He=De?De.allocUnsafe:void 0,We=Bt(he.getPrototypeOf,he),Ze=he.create,Ge=_e.propertyIsEnumerable,$e=me.splice,Ke=Re?Re.isConcatSpreadable:void 0,yt=Re?Re.iterator:void 0,xt=Re?Re.toStringTag:void 0,$t=function(){try{var e=ti(he,"defineProperty");return e({},"",{}),e}catch(e){}}(),Kt=t.clearTimeout!==qe.clearTimeout&&t.clearTimeout,Jt=se&&se.now!==qe.Date.now&&se.now,Xt=t.setTimeout!==qe.setTimeout&&t.setTimeout,Qt=de.ceil,en=de.floor,tn=he.getOwnPropertySymbols,nn=De?De.isBuffer:void 0,rn=t.isFinite,on=me.join,an=Bt(he.keys,he),un=de.max,cn=de.min,ln=se.now,sn=t.parseInt,fn=de.random,pn=me.reverse,dn=ti(t,"DataView"),hn=ti(t,"Map"),vn=ti(t,"Promise"),yn=ti(t,"Set"),gn=ti(t,"WeakMap"),mn=ti(he,"create"),bn=gn&&new gn,_n={},wn=Ti(dn),On=Ti(hn),En=Ti(vn),xn=Ti(yn),jn=Ti(gn),Sn=Re?Re.prototype:void 0,Cn=Sn?Sn.valueOf:void 0,Tn=Sn?Sn.toString:void 0;function Pn(e){if(qa(e)&&!Ra(e)&&!(e instanceof An)){if(e instanceof Dn)return e;if(Ee.call(e,"__wrapped__"))return Pi(e)}return new Dn(e)}var kn=function(){function e(){}return function(t){if(!Wa(t))return{};if(Ze)return Ze(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Mn(){}function Dn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}function An(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function Rn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function Jn(e,t,n,r,o,i){var u,s=1&t,_=2&t,M=4&t;if(n&&(u=o?n(e,r,o,i):n(e)),void 0!==u)return u;if(!Wa(e))return e;var D=Ra(e);if(D){if(u=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Ee.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!s)return bo(e,u)}else{var A=oi(e),R=A==f||A==p;if(za(e))return po(e,s);if(A==v||A==a||R&&!o){if(u=_||R?{}:ai(e),!s)return _?function(e,t){return _o(e,ri(e),t)}(e,function(e,t){return e&&_o(t,Ou(t),e)}(u,e)):function(e,t){return _o(e,ni(e),t)}(e,Gn(u,e))}else{if(!Fe[A])return o?e:{};u=function(e,t,n){var r=e.constructor;switch(t){case w:return ho(e);case c:case l:return new r(+e);case O:return function(e,t){var n=t?ho(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case E:case x:case j:case S:case C:case T:case"[object Uint8ClampedArray]":case P:case k:return vo(e,n);case d:return new r;case h:case m:return new r(e);case y:return function(e){var t=new e.constructor(e.source,te.exec(e));return t.lastIndex=e.lastIndex,t}(e);case g:return new r;case b:return o=e,Cn?he(Cn.call(o)):{}}var o}(e,A,s)}}i||(i=new zn);var I=i.get(e);if(I)return I;i.set(e,u),Ka(e)?e.forEach((function(r){u.add(Jn(r,t,n,r,e,i))})):Za(e)&&e.forEach((function(r,o){u.set(o,Jn(r,t,n,o,e,i))}));var L=D?void 0:(M?_?Yo:Go:_?Ou:wu)(e);return it(L||e,(function(r,o){L&&(r=e[o=r]),Wn(u,o,Jn(r,t,n,o,e,i))})),u}function Xn(e,t,n){var r=n.length;if(null==e)return!r;for(e=he(e);r--;){var o=n[r],i=t[o],a=e[o];if(void 0===a&&!(o in e)||!i(a))return!1}return!0}function Qn(e,t,n){if("function"!=typeof e)throw new ge(r);return wi((function(){e.apply(void 0,n)}),t)}function er(e,t,n,r){var o=-1,i=lt,a=!0,u=e.length,c=[],l=t.length;if(!u)return c;n&&(t=ft(t,Pt(n))),r?(i=st,a=!1):t.length>=200&&(i=Mt,a=!1,t=new Nn(t));e:for(;++o-1},In.prototype.set=function(e,t){var n=this.__data__,r=qn(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Ln.prototype.clear=function(){this.size=0,this.__data__={hash:new Rn,map:new(hn||In),string:new Rn}},Ln.prototype.delete=function(e){var t=Qo(this,e).delete(e);return this.size-=t?1:0,t},Ln.prototype.get=function(e){return Qo(this,e).get(e)},Ln.prototype.has=function(e){return Qo(this,e).has(e)},Ln.prototype.set=function(e,t){var n=Qo(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Nn.prototype.add=Nn.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Nn.prototype.has=function(e){return this.__data__.has(e)},zn.prototype.clear=function(){this.__data__=new In,this.size=0},zn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},zn.prototype.get=function(e){return this.__data__.get(e)},zn.prototype.has=function(e){return this.__data__.has(e)},zn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof In){var r=n.__data__;if(!hn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Ln(r)}return n.set(e,t),this.size=n.size,this};var tr=Eo(lr),nr=Eo(sr,!0);function rr(e,t){var n=!0;return tr(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function or(e,t,n){for(var r=-1,o=e.length;++r0&&n(u)?t>1?ar(u,t-1,n,r,o):pt(o,u):r||(o[o.length]=u)}return o}var ur=xo(),cr=xo(!0);function lr(e,t){return e&&ur(e,t,wu)}function sr(e,t){return e&&cr(e,t,wu)}function fr(e,t){return ct(t,(function(t){return Ua(e[t])}))}function pr(e,t){for(var n=0,r=(t=co(t,e)).length;null!=e&&nt}function yr(e,t){return null!=e&&Ee.call(e,t)}function gr(e,t){return null!=e&&t in he(e)}function mr(e,t,n){for(var r=n?st:lt,o=e[0].length,i=e.length,a=i,u=G(i),c=1/0,l=[];a--;){var s=e[a];a&&t&&(s=ft(s,Pt(t))),c=cn(s.length,c),u[a]=!n&&(t||o>=120&&s.length>=120)?new Nn(a&&s):void 0}s=e[0];var f=-1,p=u[0];e:for(;++f=u)return c;var l=n[r];return c*("desc"==l?-1:1)}}return e.index-t.index}(e,t,n)}))}function Rr(e,t,n){for(var r=-1,o=t.length,i={};++r-1;)u!==e&&$e.call(u,c,1),$e.call(e,c,1);return e}function Lr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;ci(o)?$e.call(e,o,1):eo(e,o)}}return e}function Nr(e,t){return e+en(fn()*(t-e+1))}function zr(e,t){var n="";if(!e||t<1||t>9007199254740991)return n;do{t%2&&(n+=e),(t=en(t/2))&&(e+=e)}while(t);return n}function Fr(e,t){return Oi(yi(e,t,Gu),e+"")}function Br(e){return Bn(ku(e))}function Ur(e,t){var n=ku(e);return ji(n,Kn(t,0,n.length))}function Vr(e,t,n,r){if(!Wa(e))return e;for(var o=-1,i=(t=co(t,e)).length,a=i-1,u=e;null!=u&&++oo?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=G(o);++r>>1,a=e[i];null!==a&&!Xa(a)&&(n?a<=t:a=200){var l=t?null:Fo(e);if(l)return Vt(l);a=!1,o=Mt,c=new Nn}else c=t?[]:u;e:for(;++r=r?e:Zr(e,t,n)}var fo=Kt||function(e){return qe.clearTimeout(e)};function po(e,t){if(t)return e.slice();var n=e.length,r=He?He(n):new e.constructor(n);return e.copy(r),r}function ho(e){var t=new e.constructor(e.byteLength);return new Be(t).set(new Be(e)),t}function vo(e,t){var n=t?ho(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function yo(e,t){if(e!==t){var n=void 0!==e,r=null===e,o=e==e,i=Xa(e),a=void 0!==t,u=null===t,c=t==t,l=Xa(t);if(!u&&!l&&!i&&e>t||i&&a&&c&&!u&&!l||r&&a&&c||!n&&c||!o)return 1;if(!r&&!i&&!l&&e1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(o--,i):void 0,a&&li(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),t=he(t);++r-1?o[i?t[a]:a]:void 0}}function Po(e){return Zo((function(t){var n=t.length,o=n,i=Dn.prototype.thru;for(e&&t.reverse();o--;){var a=t[o];if("function"!=typeof a)throw new ge(r);if(i&&!u&&"wrapper"==Ko(a))var u=new Dn([],!0)}for(o=u?o:n;++o1&&m.reverse(),s&&cu))return!1;var l=i.get(e),s=i.get(t);if(l&&s)return l==t&&s==e;var f=-1,p=!0,d=2&n?new Nn:void 0;for(i.set(e,t),i.set(t,e);++f-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Y,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return it(i,(function(n){var r="_."+n[0];t&n[1]&&!lt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match($);return t?t[1].split(K):[]}(r),n)))}function xi(e){var t=0,n=0;return function(){var r=ln(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function ji(e,t){var n=-1,r=e.length,o=r-1;for(t=void 0===t?r:t;++n1?e[t-1]:void 0;return n="function"==typeof n?(e.pop(),n):void 0,$i(e,n)}));function na(e){var t=Pn(e);return t.__chain__=!0,t}function ra(e,t){return t(e)}var oa=Zo((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return $n(t,e)};return!(t>1||this.__actions__.length)&&r instanceof An&&ci(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:ra,args:[o],thisArg:void 0}),new Dn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(void 0),e}))):this.thru(o)}));var ia=wo((function(e,t,n){Ee.call(e,n)?++e[n]:Yn(e,n,1)}));var aa=To(Ai),ua=To(Ri);function ca(e,t){return(Ra(e)?it:tr)(e,Xo(t,3))}function la(e,t){return(Ra(e)?at:nr)(e,Xo(t,3))}var sa=wo((function(e,t,n){Ee.call(e,n)?e[n].push(t):Yn(e,n,[t])}));var fa=Fr((function(e,t,n){var r=-1,o="function"==typeof t,i=La(e)?G(e.length):[];return tr(e,(function(e){i[++r]=o?rt(t,e,n):br(e,t,n)})),i})),pa=wo((function(e,t,n){Yn(e,n,t)}));function da(e,t){return(Ra(e)?ft:Tr)(e,Xo(t,3))}var ha=wo((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var va=Fr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&li(e,t[0],t[1])?t=[]:n>2&&li(t[0],t[1],t[2])&&(t=[t[0]]),Ar(e,ar(t,1),[])})),ya=Jt||function(){return qe.Date.now()};function ga(e,t,n){return t=n?void 0:t,Uo(e,128,void 0,void 0,void 0,void 0,t=e&&null==t?e.length:t)}function ma(e,t){var n;if("function"!=typeof t)throw new ge(r);return e=ou(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var ba=Fr((function(e,t,n){var r=1;if(n.length){var o=Ut(n,Jo(ba));r|=32}return Uo(e,r,t,n,o)})),_a=Fr((function(e,t,n){var r=3;if(n.length){var o=Ut(n,Jo(_a));r|=32}return Uo(t,r,e,n,o)}));function wa(e,t,n){var o,i,a,u,c,l,s=0,f=!1,p=!1,d=!0;if("function"!=typeof e)throw new ge(r);function h(t){var n=o,r=i;return o=i=void 0,s=t,u=e.apply(r,n)}function v(e){return s=e,c=wi(g,t),f?h(e):u}function y(e){var n=e-l;return void 0===l||n>=t||n<0||p&&e-s>=a}function g(){var e=ya();if(y(e))return m(e);c=wi(g,function(e){var n=t-(e-l);return p?cn(n,a-(e-s)):n}(e))}function m(e){return c=void 0,d&&o?h(e):(o=i=void 0,u)}function b(){var e=ya(),n=y(e);if(o=arguments,i=this,l=e,n){if(void 0===c)return v(l);if(p)return fo(c),c=wi(g,t),h(l)}return void 0===c&&(c=wi(g,t)),u}return t=au(t)||0,Wa(n)&&(f=!!n.leading,a=(p="maxWait"in n)?un(au(n.maxWait)||0,t):a,d="trailing"in n?!!n.trailing:d),b.cancel=function(){void 0!==c&&fo(c),s=0,o=l=i=c=void 0},b.flush=function(){return void 0===c?u:m(ya())},b}var Oa=Fr((function(e,t){return Qn(e,1,t)})),Ea=Fr((function(e,t,n){return Qn(e,au(t)||0,n)}));function xa(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ge(r);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(xa.Cache||Ln),n}function ja(e){if("function"!=typeof e)throw new ge(r);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}xa.Cache=Ln;var Sa=lo((function(e,t){var n=(t=1==t.length&&Ra(t[0])?ft(t[0],Pt(Xo())):ft(ar(t,1),Pt(Xo()))).length;return Fr((function(r){for(var o=-1,i=cn(r.length,n);++o=t})),Aa=_r(function(){return arguments}())?_r:function(e){return qa(e)&&Ee.call(e,"callee")&&!Ge.call(e,"callee")},Ra=G.isArray,Ia=Je?Pt(Je):function(e){return qa(e)&&hr(e)==w};function La(e){return null!=e&&Ha(e.length)&&!Ua(e)}function Na(e){return qa(e)&&La(e)}var za=nn||ac,Fa=Xe?Pt(Xe):function(e){return qa(e)&&hr(e)==l};function Ba(e){if(!qa(e))return!1;var t=hr(e);return t==s||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!Ya(e)}function Ua(e){if(!Wa(e))return!1;var t=hr(e);return t==f||t==p||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Va(e){return"number"==typeof e&&e==ou(e)}function Ha(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function Wa(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function qa(e){return null!=e&&"object"==typeof e}var Za=Qe?Pt(Qe):function(e){return qa(e)&&oi(e)==d};function Ga(e){return"number"==typeof e||qa(e)&&hr(e)==h}function Ya(e){if(!qa(e)||hr(e)!=v)return!1;var t=We(e);if(null===t)return!0;var n=Ee.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Oe.call(n)==Ce}var $a=et?Pt(et):function(e){return qa(e)&&hr(e)==y};var Ka=tt?Pt(tt):function(e){return qa(e)&&oi(e)==g};function Ja(e){return"string"==typeof e||!Ra(e)&&qa(e)&&hr(e)==m}function Xa(e){return"symbol"==typeof e||qa(e)&&hr(e)==b}var Qa=nt?Pt(nt):function(e){return qa(e)&&Ha(e.length)&&!!ze[hr(e)]};var eu=Lo(Cr),tu=Lo((function(e,t){return e<=t}));function nu(e){if(!e)return[];if(La(e))return Ja(e)?qt(e):bo(e);if(yt&&e[yt])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[yt]());var t=oi(e);return(t==d?Ft:t==g?Vt:ku)(e)}function ru(e){return e?(e=au(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ou(e){var t=ru(e),n=t%1;return t==t?n?t-n:t:0}function iu(e){return e?Kn(ou(e),0,4294967295):0}function au(e){if("number"==typeof e)return e;if(Xa(e))return NaN;if(Wa(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Wa(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Tt(e);var n=re.test(e);return n||ie.test(e)?Ve(e.slice(2),n?2:8):ne.test(e)?NaN:+e}function uu(e){return _o(e,Ou(e))}function cu(e){return null==e?"":Xr(e)}var lu=Oo((function(e,t){if(di(t)||La(t))_o(t,wu(t),e);else for(var n in t)Ee.call(t,n)&&Wn(e,n,t[n])})),su=Oo((function(e,t){_o(t,Ou(t),e)})),fu=Oo((function(e,t,n,r){_o(t,Ou(t),e,r)})),pu=Oo((function(e,t,n,r){_o(t,wu(t),e,r)})),du=Zo($n);var hu=Fr((function(e,t){e=he(e);var n=-1,r=t.length,o=r>2?t[2]:void 0;for(o&&li(t[0],t[1],o)&&(r=1);++n1),t})),_o(e,Yo(e),n),r&&(n=Jn(n,7,Wo));for(var o=t.length;o--;)eo(n,t[o]);return n}));var Su=Zo((function(e,t){return null==e?{}:function(e,t){return Rr(e,t,(function(t,n){return gu(e,n)}))}(e,t)}));function Cu(e,t){if(null==e)return{};var n=ft(Yo(e),(function(e){return[e]}));return t=Xo(t),Rr(e,n,(function(e,n){return t(e,n[0])}))}var Tu=Bo(wu),Pu=Bo(Ou);function ku(e){return null==e?[]:kt(e,wu(e))}var Mu=So((function(e,t,n){return t=t.toLowerCase(),e+(n?Du(t):t)}));function Du(e){return Bu(cu(e).toLowerCase())}function Au(e){return(e=cu(e))&&e.replace(ue,It).replace(Me,"")}var Ru=So((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Iu=So((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Lu=jo("toLowerCase");var Nu=So((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var zu=So((function(e,t,n){return e+(n?" ":"")+Bu(t)}));var Fu=So((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Bu=jo("toUpperCase");function Uu(e,t,n){return e=cu(e),void 0===(t=n?void 0:t)?function(e){return Ie.test(e)}(e)?function(e){return e.match(Ae)||[]}(e):function(e){return e.match(J)||[]}(e):e.match(t)||[]}var Vu=Fr((function(e,t){try{return rt(e,void 0,t)}catch(e){return Ba(e)?e:new fe(e)}})),Hu=Zo((function(e,t){return it(t,(function(t){t=Ci(t),Yn(e,t,ba(e[t],e))})),e}));function Wu(e){return function(){return e}}var qu=Po(),Zu=Po(!0);function Gu(e){return e}function Yu(e){return xr("function"==typeof e?e:Jn(e,1))}var $u=Fr((function(e,t){return function(n){return br(n,e,t)}})),Ku=Fr((function(e,t){return function(n){return br(e,n,t)}}));function Ju(e,t,n){var r=wu(t),o=fr(t,r);null!=n||Wa(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=fr(t,wu(t)));var i=!(Wa(n)&&"chain"in n&&!n.chain),a=Ua(e);return it(o,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__),o=n.__actions__=bo(this.__actions__);return o.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,pt([this.value()],arguments))})})),e}function Xu(){}var Qu=Ao(ft),ec=Ao(ut),tc=Ao(vt);function nc(e){return si(e)?Et(Ci(e)):function(e){return function(t){return pr(t,e)}}(e)}var rc=Io(),oc=Io(!0);function ic(){return[]}function ac(){return!1}var uc=Do((function(e,t){return e+t}),0),cc=zo("ceil"),lc=Do((function(e,t){return e/t}),1),sc=zo("floor");var fc,pc=Do((function(e,t){return e*t}),1),dc=zo("round"),hc=Do((function(e,t){return e-t}),0);return Pn.after=function(e,t){if("function"!=typeof t)throw new ge(r);return e=ou(e),function(){if(--e<1)return t.apply(this,arguments)}},Pn.ary=ga,Pn.assign=lu,Pn.assignIn=su,Pn.assignInWith=fu,Pn.assignWith=pu,Pn.at=du,Pn.before=ma,Pn.bind=ba,Pn.bindAll=Hu,Pn.bindKey=_a,Pn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ra(e)?e:[e]},Pn.chain=na,Pn.chunk=function(e,t,n){t=(n?li(e,t,n):void 0===t)?1:un(ou(t),0);var r=null==e?0:e.length;if(!r||t<1)return[];for(var o=0,i=0,a=G(Qt(r/t));oo?0:o+n),(r=void 0===r||r>o?o:ou(r))<0&&(r+=o),r=n>r?0:iu(r);n>>0)?(e=cu(e))&&("string"==typeof t||null!=t&&!$a(t))&&!(t=Xr(t))&&zt(e)?so(qt(e),0,n):e.split(t,n):[]},Pn.spread=function(e,t){if("function"!=typeof e)throw new ge(r);return t=null==t?0:un(ou(t),0),Fr((function(n){var r=n[t],o=so(n,0,t);return r&&pt(o,r),rt(e,this,o)}))},Pn.tail=function(e){var t=null==e?0:e.length;return t?Zr(e,1,t):[]},Pn.take=function(e,t,n){return e&&e.length?Zr(e,0,(t=n||void 0===t?1:ou(t))<0?0:t):[]},Pn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?Zr(e,(t=r-(t=n||void 0===t?1:ou(t)))<0?0:t,r):[]},Pn.takeRightWhile=function(e,t){return e&&e.length?no(e,Xo(t,3),!1,!0):[]},Pn.takeWhile=function(e,t){return e&&e.length?no(e,Xo(t,3)):[]},Pn.tap=function(e,t){return t(e),e},Pn.throttle=function(e,t,n){var o=!0,i=!0;if("function"!=typeof e)throw new ge(r);return Wa(n)&&(o="leading"in n?!!n.leading:o,i="trailing"in n?!!n.trailing:i),wa(e,t,{leading:o,maxWait:t,trailing:i})},Pn.thru=ra,Pn.toArray=nu,Pn.toPairs=Tu,Pn.toPairsIn=Pu,Pn.toPath=function(e){return Ra(e)?ft(e,Ci):Xa(e)?[e]:bo(Si(cu(e)))},Pn.toPlainObject=uu,Pn.transform=function(e,t,n){var r=Ra(e),o=r||za(e)||Qa(e);if(t=Xo(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:Wa(e)&&Ua(i)?kn(We(e)):{}}return(o?it:lr)(e,(function(e,r,o){return t(n,e,r,o)})),n},Pn.unary=function(e){return ga(e,1)},Pn.union=qi,Pn.unionBy=Zi,Pn.unionWith=Gi,Pn.uniq=function(e){return e&&e.length?Qr(e):[]},Pn.uniqBy=function(e,t){return e&&e.length?Qr(e,Xo(t,2)):[]},Pn.uniqWith=function(e,t){return t="function"==typeof t?t:void 0,e&&e.length?Qr(e,void 0,t):[]},Pn.unset=function(e,t){return null==e||eo(e,t)},Pn.unzip=Yi,Pn.unzipWith=$i,Pn.update=function(e,t,n){return null==e?e:to(e,t,uo(n))},Pn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:to(e,t,uo(n),r)},Pn.values=ku,Pn.valuesIn=function(e){return null==e?[]:kt(e,Ou(e))},Pn.without=Ki,Pn.words=Uu,Pn.wrap=function(e,t){return Ca(uo(t),e)},Pn.xor=Ji,Pn.xorBy=Xi,Pn.xorWith=Qi,Pn.zip=ea,Pn.zipObject=function(e,t){return io(e||[],t||[],Wn)},Pn.zipObjectDeep=function(e,t){return io(e||[],t||[],Vr)},Pn.zipWith=ta,Pn.entries=Tu,Pn.entriesIn=Pu,Pn.extend=su,Pn.extendWith=fu,Ju(Pn,Pn),Pn.add=uc,Pn.attempt=Vu,Pn.camelCase=Mu,Pn.capitalize=Du,Pn.ceil=cc,Pn.clamp=function(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=au(n))==n?n:0),void 0!==t&&(t=(t=au(t))==t?t:0),Kn(au(e),t,n)},Pn.clone=function(e){return Jn(e,4)},Pn.cloneDeep=function(e){return Jn(e,5)},Pn.cloneDeepWith=function(e,t){return Jn(e,5,t="function"==typeof t?t:void 0)},Pn.cloneWith=function(e,t){return Jn(e,4,t="function"==typeof t?t:void 0)},Pn.conformsTo=function(e,t){return null==t||Xn(e,t,wu(t))},Pn.deburr=Au,Pn.defaultTo=function(e,t){return null==e||e!=e?t:e},Pn.divide=lc,Pn.endsWith=function(e,t,n){e=cu(e),t=Xr(t);var r=e.length,o=n=void 0===n?r:Kn(ou(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},Pn.eq=ka,Pn.escape=function(e){return(e=cu(e))&&N.test(e)?e.replace(I,Lt):e},Pn.escapeRegExp=function(e){return(e=cu(e))&&q.test(e)?e.replace(W,"\\$&"):e},Pn.every=function(e,t,n){var r=Ra(e)?ut:rr;return n&&li(e,t,n)&&(t=void 0),r(e,Xo(t,3))},Pn.find=aa,Pn.findIndex=Ai,Pn.findKey=function(e,t){return gt(e,Xo(t,3),lr)},Pn.findLast=ua,Pn.findLastIndex=Ri,Pn.findLastKey=function(e,t){return gt(e,Xo(t,3),sr)},Pn.floor=sc,Pn.forEach=ca,Pn.forEachRight=la,Pn.forIn=function(e,t){return null==e?e:ur(e,Xo(t,3),Ou)},Pn.forInRight=function(e,t){return null==e?e:cr(e,Xo(t,3),Ou)},Pn.forOwn=function(e,t){return e&&lr(e,Xo(t,3))},Pn.forOwnRight=function(e,t){return e&&sr(e,Xo(t,3))},Pn.get=yu,Pn.gt=Ma,Pn.gte=Da,Pn.has=function(e,t){return null!=e&&ii(e,t,yr)},Pn.hasIn=gu,Pn.head=Li,Pn.identity=Gu,Pn.includes=function(e,t,n,r){e=La(e)?e:ku(e),n=n&&!r?ou(n):0;var o=e.length;return n<0&&(n=un(o+n,0)),Ja(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&bt(e,t,n)>-1},Pn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:ou(n);return o<0&&(o=un(r+o,0)),bt(e,t,o)},Pn.inRange=function(e,t,n){return t=ru(t),void 0===n?(n=t,t=0):n=ru(n),function(e,t,n){return e>=cn(t,n)&&e=-9007199254740991&&e<=9007199254740991},Pn.isSet=Ka,Pn.isString=Ja,Pn.isSymbol=Xa,Pn.isTypedArray=Qa,Pn.isUndefined=function(e){return void 0===e},Pn.isWeakMap=function(e){return qa(e)&&oi(e)==_},Pn.isWeakSet=function(e){return qa(e)&&"[object WeakSet]"==hr(e)},Pn.join=function(e,t){return null==e?"":on.call(e,t)},Pn.kebabCase=Ru,Pn.last=Bi,Pn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return void 0!==n&&(o=(o=ou(n))<0?un(r+o,0):cn(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):mt(e,wt,o,!0)},Pn.lowerCase=Iu,Pn.lowerFirst=Lu,Pn.lt=eu,Pn.lte=tu,Pn.max=function(e){return e&&e.length?or(e,Gu,vr):void 0},Pn.maxBy=function(e,t){return e&&e.length?or(e,Xo(t,2),vr):void 0},Pn.mean=function(e){return Ot(e,Gu)},Pn.meanBy=function(e,t){return Ot(e,Xo(t,2))},Pn.min=function(e){return e&&e.length?or(e,Gu,Cr):void 0},Pn.minBy=function(e,t){return e&&e.length?or(e,Xo(t,2),Cr):void 0},Pn.stubArray=ic,Pn.stubFalse=ac,Pn.stubObject=function(){return{}},Pn.stubString=function(){return""},Pn.stubTrue=function(){return!0},Pn.multiply=pc,Pn.nth=function(e,t){return e&&e.length?Dr(e,ou(t)):void 0},Pn.noConflict=function(){return qe._===this&&(qe._=Te),this},Pn.noop=Xu,Pn.now=ya,Pn.pad=function(e,t,n){e=cu(e);var r=(t=ou(t))?Wt(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Ro(en(o),n)+e+Ro(Qt(o),n)},Pn.padEnd=function(e,t,n){e=cu(e);var r=(t=ou(t))?Wt(e):0;return t&&rt){var r=e;e=t,t=r}if(n||e%1||t%1){var o=fn();return cn(e+o*(t-e+Ue("1e-"+((o+"").length-1))),t)}return Nr(e,t)},Pn.reduce=function(e,t,n){var r=Ra(e)?dt:jt,o=arguments.length<3;return r(e,Xo(t,4),n,o,tr)},Pn.reduceRight=function(e,t,n){var r=Ra(e)?ht:jt,o=arguments.length<3;return r(e,Xo(t,4),n,o,nr)},Pn.repeat=function(e,t,n){return t=(n?li(e,t,n):void 0===t)?1:ou(t),zr(cu(e),t)},Pn.replace=function(){var e=arguments,t=cu(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Pn.result=function(e,t,n){var r=-1,o=(t=co(t,e)).length;for(o||(o=1,e=void 0);++r9007199254740991)return[];var n=4294967295,r=cn(e,4294967295);e-=4294967295;for(var o=Ct(r,t=Xo(t));++n=i)return e;var u=n-Wt(r);if(u<1)return r;var c=a?so(a,0,u).join(""):e.slice(0,u);if(void 0===o)return c+r;if(a&&(u+=c.length-u),$a(o)){if(e.slice(u).search(o)){var l,s=c;for(o.global||(o=ve(o.source,cu(te.exec(o))+"g")),o.lastIndex=0;l=o.exec(s);)var f=l.index;c=c.slice(0,void 0===f?u:f)}}else if(e.indexOf(Xr(o),u)!=u){var p=c.lastIndexOf(o);p>-1&&(c=c.slice(0,p))}return c+r},Pn.unescape=function(e){return(e=cu(e))&&L.test(e)?e.replace(R,Gt):e},Pn.uniqueId=function(e){var t=++xe;return cu(e)+t},Pn.upperCase=Fu,Pn.upperFirst=Bu,Pn.each=ca,Pn.eachRight=la,Pn.first=Li,Ju(Pn,(fc={},lr(Pn,(function(e,t){Ee.call(Pn.prototype,t)||(fc[t]=e)})),fc),{chain:!1}),Pn.VERSION="4.17.21",it(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Pn[e].placeholder=Pn})),it(["drop","take"],(function(e,t){An.prototype[e]=function(n){n=void 0===n?1:un(ou(n),0);var r=this.__filtered__&&!t?new An(this):this.clone();return r.__filtered__?r.__takeCount__=cn(n,r.__takeCount__):r.__views__.push({size:cn(n,4294967295),type:e+(r.__dir__<0?"Right":"")}),r},An.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),it(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;An.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Xo(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),it(["head","last"],(function(e,t){var n="take"+(t?"Right":"");An.prototype[e]=function(){return this[n](1).value()[0]}})),it(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");An.prototype[e]=function(){return this.__filtered__?new An(this):this[n](1)}})),An.prototype.compact=function(){return this.filter(Gu)},An.prototype.find=function(e){return this.filter(e).head()},An.prototype.findLast=function(e){return this.reverse().find(e)},An.prototype.invokeMap=Fr((function(e,t){return"function"==typeof e?new An(this):this.map((function(n){return br(n,e,t)}))})),An.prototype.reject=function(e){return this.filter(ja(Xo(e)))},An.prototype.slice=function(e,t){e=ou(e);var n=this;return n.__filtered__&&(e>0||t<0)?new An(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),void 0!==t&&(n=(t=ou(t))<0?n.dropRight(-t):n.take(t-e)),n)},An.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},An.prototype.toArray=function(){return this.take(4294967295)},lr(An.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=Pn[r?"take"+("last"==t?"Right":""):t],i=r||/^find/.test(t);o&&(Pn.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,u=t instanceof An,c=a[0],l=u||Ra(t),s=function(e){var t=o.apply(Pn,pt([e],a));return r&&f?t[0]:t};l&&n&&"function"==typeof c&&1!=c.length&&(u=l=!1);var f=this.__chain__,p=!!this.__actions__.length,d=i&&!f,h=u&&!p;if(!i&&l){t=h?t:new An(this);var v=e.apply(t,a);return v.__actions__.push({func:ra,args:[s],thisArg:void 0}),new Dn(v,f)}return d&&h?e.apply(this,a):(v=this.thru(s),d?r?v.value()[0]:v.value():v)})})),it(["pop","push","shift","sort","splice","unshift"],(function(e){var t=me[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Pn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(Ra(o)?o:[],e)}return this[n]((function(n){return t.apply(Ra(n)?n:[],e)}))}})),lr(An.prototype,(function(e,t){var n=Pn[t];if(n){var r=n.name+"";Ee.call(_n,r)||(_n[r]=[]),_n[r].push({name:t,func:n})}})),_n[ko(void 0,2).name]=[{name:"wrapper",func:void 0}],An.prototype.clone=function(){var e=new An(this.__wrapped__);return e.__actions__=bo(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=bo(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=bo(this.__views__),e},An.prototype.reverse=function(){if(this.__filtered__){var e=new An(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},An.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ra(e),r=t<0,o=n?e.length:0,i=function(e,t,n){var r=-1,o=n.length;for(;++r=this.__values__.length;return{done:e,value:e?void 0:this.__values__[this.__index__++]}},Pn.prototype.plant=function(e){for(var t,n=this;n instanceof Mn;){var r=Pi(n);r.__index__=0,r.__values__=void 0,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},Pn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof An){var t=e;return this.__actions__.length&&(t=new An(this)),(t=t.reverse()).__actions__.push({func:ra,args:[Wi],thisArg:void 0}),new Dn(t,this.__chain__)}return this.thru(Wi)},Pn.prototype.toJSON=Pn.prototype.valueOf=Pn.prototype.value=function(){return ro(this.__wrapped__,this.__actions__)},Pn.prototype.first=Pn.prototype.head,yt&&(Pn.prototype[yt]=function(){return this}),Pn}();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(qe._=Yt,define((function(){return Yt}))):Ge?((Ge.exports=Yt)._=Yt,Ze._=Yt):qe._=Yt}).call(this)}).call(this,n(35),n(54)(e))},function(e,t){e.exports=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(61).default,o=n(5);e.exports=function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return o(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"j",(function(){return X})),n.d(t,"h",(function(){return Q})),n.d(t,"f",(function(){return J})),n.d(t,"b",(function(){return A})),n.d(t,"g",(function(){return N})),n.d(t,"i",(function(){return F})),n.d(t,"c",(function(){return L})),n.d(t,"e",(function(){return V})),n.d(t,"d",(function(){return U}));var r=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},r=n.wrap,o=void 0===r||r,i=n.ignoreDefinition,a=void 0!==i&&i;D(this,e),this.definition=t,"function"!=typeof t&&(a||this.verifyDefinition(t),this.wrap=o,this.ProviderConstructor=function(e){this.context=e},this.ProviderConstructor.prototype=t,this.WrappedProviderConstructor=function(e,t){this.context=t,this.providerName=e},this.WrappedProviderConstructor.prototype=Object.keys(a?{}:t).reduce((function(e,n){var r=t[n];return e[n]=function(){for(var e=this,t=arguments.length,o=Array(t),i=0;i0&&void 0===e)throw new Error('Cannot extract value at path "'+t+'" ("'+n+'" is not defined).');return e[n]}),e)}var z=function(e){function t(e){I(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.cvalue=e,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),R(t,[{key:"getValue",value:function(e){var t=e.resolve,n=this.cvalue;return t.isResolveValue(n)?t.value(n):Object.keys(n).reduce((function(e,r){return e[r]=t.value(n[r]),e}),{})}}]),t}(L),F=function(e){return new z(e)},B=function(){function e(e,t){for(var n=0;n1?r-1:0),i=1;i1?t-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:{};return e instanceof L?e.getValue(t?Object.assign({},this.context,t):this.context):e},path:function(e){if(e instanceof U)return e.getPath(this.context);throw new Error("You are extracting a path from an argument that is not a Tag.")}},{wrap:!1}),W=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};G(this,t);var r=Z(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));if(r.cachedTrees=[],r.cachedStaticTrees=[],r.executeBranchWrapper=n.executeBranchWrapper||function(e){e()},"object"!==(void 0===e?"undefined":q(e))||null===e||Array.isArray(e))throw new Error("You have to pass an object of context providers to FunctionTree");var o=Object.keys(e);if(o.indexOf("props")>=0||o.indexOf("path")>=0||o.indexOf("resolve")>=0||o.indexOf("execution")>=0||o.indexOf("debugger")>=0)throw new Error('You are trying to add a provider with protected key. "props", "path", "resolve", "execution" and "debugger" are protected');return r.contextProviders=Object.assign({},e,{resolve:H}),r.run=r.run.bind(r),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),W(t,[{key:"run",value:function(){var e=this,t=void 0,n=void 0,r=void 0,o=void 0,i=void 0,a=[].slice.call(arguments);if(a.forEach((function(e){"string"==typeof e?t=e:Array.isArray(e)||e instanceof u?n=e:n||"function"!=typeof e?"function"==typeof e?o=e:r=e:n=e})),!n)throw new Error("function-tree - You did not pass in a function tree");var c=function(o,a){var u=e.cachedTrees.indexOf(n);-1===u?(i=_(t,n),e.cachedTrees.push(n),e.cachedStaticTrees.push(i)):i=e.cachedStaticTrees[u];var c=new K(t,i,e,(function(t,n,r,o){e.emit("error",t,n,r,o),a(t)}));e.emit("start",c,r),S(c,r,e.executeBranchWrapper,(function(t,n,r){e.emit("pathStart",n,c,t,r)}),(function(t){e.emit("pathEnd",c,t)}),(function(t,n){e.emit("parallelStart",c,t,n)}),(function(t,n){e.emit("parallelProgress",c,t,n)}),(function(t,n){e.emit("parallelEnd",c,t,n)}),(function(t){e.emit("end",c,t),o===a?o(null,t):o(t)}))};if(!o)return new Promise(c);c(o,o)}}]),t}(x.a);function X(){for(var e=arguments.length,t=Array(e),n=0;n"']/g,L=RegExp(R.source),N=RegExp(I.source),z=/<%-([\s\S]+?)%>/g,F=/<%([\s\S]+?)%>/g,B=/<%=([\s\S]+?)%>/g,U=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,V=/^\w*$/,H=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,W=/[\\^$.*+?()[\]{}|]/g,q=RegExp(W.source),Z=/^\s+/,G=/\s/,Y=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,$=/\{\n\/\* \[wrapped with (.+)\] \*/,K=/,? & /,J=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,X=/[()=,{}\[\]\/\s]/,Q=/\\(\\)?/g,ee=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,te=/\w*$/,ne=/^[-+]0x[0-9a-f]+$/i,re=/^0b[01]+$/i,oe=/^\[object .+?Constructor\]$/,ie=/^0o[0-7]+$/i,ae=/^(?:0|[1-9]\d*)$/,ue=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ce=/($^)/,le=/['\n\r\u2028\u2029\\]/g,se="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",fe="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",pe="[\\ud800-\\udfff]",de="["+fe+"]",he="["+se+"]",ve="\\d+",ye="[\\u2700-\\u27bf]",ge="[a-z\\xdf-\\xf6\\xf8-\\xff]",me="[^\\ud800-\\udfff"+fe+ve+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",be="\\ud83c[\\udffb-\\udfff]",_e="[^\\ud800-\\udfff]",we="(?:\\ud83c[\\udde6-\\uddff]){2}",Oe="[\\ud800-\\udbff][\\udc00-\\udfff]",Ee="[A-Z\\xc0-\\xd6\\xd8-\\xde]",xe="(?:"+ge+"|"+me+")",je="(?:"+Ee+"|"+me+")",Se="(?:"+he+"|"+be+")"+"?",Ce="[\\ufe0e\\ufe0f]?"+Se+("(?:\\u200d(?:"+[_e,we,Oe].join("|")+")[\\ufe0e\\ufe0f]?"+Se+")*"),Te="(?:"+[ye,we,Oe].join("|")+")"+Ce,Pe="(?:"+[_e+he+"?",he,we,Oe,pe].join("|")+")",ke=RegExp("['\u2019]","g"),Me=RegExp(he,"g"),De=RegExp(be+"(?="+be+")|"+Pe+Ce,"g"),Ae=RegExp([Ee+"?"+ge+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?(?="+[de,Ee,"$"].join("|")+")",je+"+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?(?="+[de,Ee+xe,"$"].join("|")+")",Ee+"?"+xe+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?",Ee+"+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ve,Te].join("|"),"g"),Re=RegExp("[\\u200d\\ud800-\\udfff"+se+"\\ufe0e\\ufe0f]"),Ie=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Le=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ne=-1,ze={};ze[E]=ze[x]=ze[j]=ze[S]=ze[C]=ze[T]=ze["[object Uint8ClampedArray]"]=ze[P]=ze[k]=!0,ze[a]=ze[u]=ze[w]=ze[c]=ze[O]=ze[l]=ze[s]=ze[f]=ze[d]=ze[h]=ze[v]=ze[y]=ze[g]=ze[m]=ze[_]=!1;var Fe={};Fe[a]=Fe[u]=Fe[w]=Fe[O]=Fe[c]=Fe[l]=Fe[E]=Fe[x]=Fe[j]=Fe[S]=Fe[C]=Fe[d]=Fe[h]=Fe[v]=Fe[y]=Fe[g]=Fe[m]=Fe[b]=Fe[T]=Fe["[object Uint8ClampedArray]"]=Fe[P]=Fe[k]=!0,Fe[s]=Fe[f]=Fe[_]=!1;var Be={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ue=parseFloat,Ve=parseInt,He="object"==typeof e&&e&&e.Object===Object&&e,We="object"==typeof self&&self&&self.Object===Object&&self,qe=He||We||Function("return this")(),Ze=t&&!t.nodeType&&t,Ge=Ze&&"object"==typeof n&&n&&!n.nodeType&&n,Ye=Ge&&Ge.exports===Ze,$e=Ye&&He.process,Ke=function(){try{var e=Ge&&Ge.require&&Ge.require("util").types;return e||$e&&$e.binding&&$e.binding("util")}catch(e){}}(),Je=Ke&&Ke.isArrayBuffer,Xe=Ke&&Ke.isDate,Qe=Ke&&Ke.isMap,et=Ke&&Ke.isRegExp,tt=Ke&&Ke.isSet,nt=Ke&&Ke.isTypedArray;function rt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function ot(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o-1}function st(e,t,n){for(var r=-1,o=null==e?0:e.length;++r-1;);return n}function At(e,t){for(var n=e.length;n--&&bt(t,e[n],0)>-1;);return n}function Rt(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var It=xt({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),Lt=xt({"&":"&","<":"<",">":">",'"':""","'":"'"});function Nt(e){return"\\"+Be[e]}function zt(e){return Re.test(e)}function Ft(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function Bt(e,t){return function(n){return e(t(n))}}function Ut(e,t){for(var n=-1,r=e.length,i=0,a=[];++n",""":'"',"'":"'"});var Yt=function e(t){var n,G=(t=null==t?qe:Yt.defaults(qe.Object(),t,Yt.pick(qe,Le))).Array,se=t.Date,fe=t.Error,pe=t.Function,de=t.Math,he=t.Object,ve=t.RegExp,ye=t.String,ge=t.TypeError,me=G.prototype,be=pe.prototype,_e=he.prototype,we=t["__core-js_shared__"],Oe=be.toString,Ee=_e.hasOwnProperty,xe=0,je=(n=/[^.]+$/.exec(we&&we.keys&&we.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Se=_e.toString,Ce=Oe.call(he),Te=qe._,Pe=ve("^"+Oe.call(Ee).replace(W,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),De=Ye?t.Buffer:void 0,Re=t.Symbol,Be=t.Uint8Array,He=De?De.allocUnsafe:void 0,We=Bt(he.getPrototypeOf,he),Ze=he.create,Ge=_e.propertyIsEnumerable,$e=me.splice,Ke=Re?Re.isConcatSpreadable:void 0,yt=Re?Re.iterator:void 0,xt=Re?Re.toStringTag:void 0,$t=function(){try{var e=ti(he,"defineProperty");return e({},"",{}),e}catch(e){}}(),Kt=t.clearTimeout!==qe.clearTimeout&&t.clearTimeout,Jt=se&&se.now!==qe.Date.now&&se.now,Xt=t.setTimeout!==qe.setTimeout&&t.setTimeout,Qt=de.ceil,en=de.floor,tn=he.getOwnPropertySymbols,nn=De?De.isBuffer:void 0,rn=t.isFinite,on=me.join,an=Bt(he.keys,he),un=de.max,cn=de.min,ln=se.now,sn=t.parseInt,fn=de.random,pn=me.reverse,dn=ti(t,"DataView"),hn=ti(t,"Map"),vn=ti(t,"Promise"),yn=ti(t,"Set"),gn=ti(t,"WeakMap"),mn=ti(he,"create"),bn=gn&&new gn,_n={},wn=Ti(dn),On=Ti(hn),En=Ti(vn),xn=Ti(yn),jn=Ti(gn),Sn=Re?Re.prototype:void 0,Cn=Sn?Sn.valueOf:void 0,Tn=Sn?Sn.toString:void 0;function Pn(e){if(qa(e)&&!Ra(e)&&!(e instanceof An)){if(e instanceof Dn)return e;if(Ee.call(e,"__wrapped__"))return Pi(e)}return new Dn(e)}var kn=function(){function e(){}return function(t){if(!Wa(t))return{};if(Ze)return Ze(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Mn(){}function Dn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}function An(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function Rn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function Jn(e,t,n,r,o,i){var u,s=1&t,_=2&t,M=4&t;if(n&&(u=o?n(e,r,o,i):n(e)),void 0!==u)return u;if(!Wa(e))return e;var D=Ra(e);if(D){if(u=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Ee.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!s)return bo(e,u)}else{var A=oi(e),R=A==f||A==p;if(za(e))return po(e,s);if(A==v||A==a||R&&!o){if(u=_||R?{}:ai(e),!s)return _?function(e,t){return _o(e,ri(e),t)}(e,function(e,t){return e&&_o(t,Ou(t),e)}(u,e)):function(e,t){return _o(e,ni(e),t)}(e,Gn(u,e))}else{if(!Fe[A])return o?e:{};u=function(e,t,n){var r=e.constructor;switch(t){case w:return ho(e);case c:case l:return new r(+e);case O:return function(e,t){var n=t?ho(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case E:case x:case j:case S:case C:case T:case"[object Uint8ClampedArray]":case P:case k:return vo(e,n);case d:return new r;case h:case m:return new r(e);case y:return function(e){var t=new e.constructor(e.source,te.exec(e));return t.lastIndex=e.lastIndex,t}(e);case g:return new r;case b:return o=e,Cn?he(Cn.call(o)):{}}var o}(e,A,s)}}i||(i=new zn);var I=i.get(e);if(I)return I;i.set(e,u),Ka(e)?e.forEach((function(r){u.add(Jn(r,t,n,r,e,i))})):Za(e)&&e.forEach((function(r,o){u.set(o,Jn(r,t,n,o,e,i))}));var L=D?void 0:(M?_?Yo:Go:_?Ou:wu)(e);return it(L||e,(function(r,o){L&&(r=e[o=r]),Wn(u,o,Jn(r,t,n,o,e,i))})),u}function Xn(e,t,n){var r=n.length;if(null==e)return!r;for(e=he(e);r--;){var o=n[r],i=t[o],a=e[o];if(void 0===a&&!(o in e)||!i(a))return!1}return!0}function Qn(e,t,n){if("function"!=typeof e)throw new ge(r);return wi((function(){e.apply(void 0,n)}),t)}function er(e,t,n,r){var o=-1,i=lt,a=!0,u=e.length,c=[],l=t.length;if(!u)return c;n&&(t=ft(t,Pt(n))),r?(i=st,a=!1):t.length>=200&&(i=Mt,a=!1,t=new Nn(t));e:for(;++o-1},In.prototype.set=function(e,t){var n=this.__data__,r=qn(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Ln.prototype.clear=function(){this.size=0,this.__data__={hash:new Rn,map:new(hn||In),string:new Rn}},Ln.prototype.delete=function(e){var t=Qo(this,e).delete(e);return this.size-=t?1:0,t},Ln.prototype.get=function(e){return Qo(this,e).get(e)},Ln.prototype.has=function(e){return Qo(this,e).has(e)},Ln.prototype.set=function(e,t){var n=Qo(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Nn.prototype.add=Nn.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Nn.prototype.has=function(e){return this.__data__.has(e)},zn.prototype.clear=function(){this.__data__=new In,this.size=0},zn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},zn.prototype.get=function(e){return this.__data__.get(e)},zn.prototype.has=function(e){return this.__data__.has(e)},zn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof In){var r=n.__data__;if(!hn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Ln(r)}return n.set(e,t),this.size=n.size,this};var tr=Eo(lr),nr=Eo(sr,!0);function rr(e,t){var n=!0;return tr(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function or(e,t,n){for(var r=-1,o=e.length;++r0&&n(u)?t>1?ar(u,t-1,n,r,o):pt(o,u):r||(o[o.length]=u)}return o}var ur=xo(),cr=xo(!0);function lr(e,t){return e&&ur(e,t,wu)}function sr(e,t){return e&&cr(e,t,wu)}function fr(e,t){return ct(t,(function(t){return Ua(e[t])}))}function pr(e,t){for(var n=0,r=(t=co(t,e)).length;null!=e&&nt}function yr(e,t){return null!=e&&Ee.call(e,t)}function gr(e,t){return null!=e&&t in he(e)}function mr(e,t,n){for(var r=n?st:lt,o=e[0].length,i=e.length,a=i,u=G(i),c=1/0,l=[];a--;){var s=e[a];a&&t&&(s=ft(s,Pt(t))),c=cn(s.length,c),u[a]=!n&&(t||o>=120&&s.length>=120)?new Nn(a&&s):void 0}s=e[0];var f=-1,p=u[0];e:for(;++f=u)return c;var l=n[r];return c*("desc"==l?-1:1)}}return e.index-t.index}(e,t,n)}))}function Rr(e,t,n){for(var r=-1,o=t.length,i={};++r-1;)u!==e&&$e.call(u,c,1),$e.call(e,c,1);return e}function Lr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;ci(o)?$e.call(e,o,1):eo(e,o)}}return e}function Nr(e,t){return e+en(fn()*(t-e+1))}function zr(e,t){var n="";if(!e||t<1||t>9007199254740991)return n;do{t%2&&(n+=e),(t=en(t/2))&&(e+=e)}while(t);return n}function Fr(e,t){return Oi(yi(e,t,Gu),e+"")}function Br(e){return Bn(ku(e))}function Ur(e,t){var n=ku(e);return ji(n,Kn(t,0,n.length))}function Vr(e,t,n,r){if(!Wa(e))return e;for(var o=-1,i=(t=co(t,e)).length,a=i-1,u=e;null!=u&&++oo?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=G(o);++r>>1,a=e[i];null!==a&&!Xa(a)&&(n?a<=t:a=200){var l=t?null:Fo(e);if(l)return Vt(l);a=!1,o=Mt,c=new Nn}else c=t?[]:u;e:for(;++r=r?e:Zr(e,t,n)}var fo=Kt||function(e){return qe.clearTimeout(e)};function po(e,t){if(t)return e.slice();var n=e.length,r=He?He(n):new e.constructor(n);return e.copy(r),r}function ho(e){var t=new e.constructor(e.byteLength);return new Be(t).set(new Be(e)),t}function vo(e,t){var n=t?ho(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function yo(e,t){if(e!==t){var n=void 0!==e,r=null===e,o=e==e,i=Xa(e),a=void 0!==t,u=null===t,c=t==t,l=Xa(t);if(!u&&!l&&!i&&e>t||i&&a&&c&&!u&&!l||r&&a&&c||!n&&c||!o)return 1;if(!r&&!i&&!l&&e1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(o--,i):void 0,a&&li(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),t=he(t);++r-1?o[i?t[a]:a]:void 0}}function Po(e){return Zo((function(t){var n=t.length,o=n,i=Dn.prototype.thru;for(e&&t.reverse();o--;){var a=t[o];if("function"!=typeof a)throw new ge(r);if(i&&!u&&"wrapper"==Ko(a))var u=new Dn([],!0)}for(o=u?o:n;++o1&&m.reverse(),s&&cu))return!1;var l=i.get(e),s=i.get(t);if(l&&s)return l==t&&s==e;var f=-1,p=!0,d=2&n?new Nn:void 0;for(i.set(e,t),i.set(t,e);++f-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Y,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return it(i,(function(n){var r="_."+n[0];t&n[1]&&!lt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match($);return t?t[1].split(K):[]}(r),n)))}function xi(e){var t=0,n=0;return function(){var r=ln(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function ji(e,t){var n=-1,r=e.length,o=r-1;for(t=void 0===t?r:t;++n1?e[t-1]:void 0;return n="function"==typeof n?(e.pop(),n):void 0,$i(e,n)}));function na(e){var t=Pn(e);return t.__chain__=!0,t}function ra(e,t){return t(e)}var oa=Zo((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return $n(t,e)};return!(t>1||this.__actions__.length)&&r instanceof An&&ci(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:ra,args:[o],thisArg:void 0}),new Dn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(void 0),e}))):this.thru(o)}));var ia=wo((function(e,t,n){Ee.call(e,n)?++e[n]:Yn(e,n,1)}));var aa=To(Ai),ua=To(Ri);function ca(e,t){return(Ra(e)?it:tr)(e,Xo(t,3))}function la(e,t){return(Ra(e)?at:nr)(e,Xo(t,3))}var sa=wo((function(e,t,n){Ee.call(e,n)?e[n].push(t):Yn(e,n,[t])}));var fa=Fr((function(e,t,n){var r=-1,o="function"==typeof t,i=La(e)?G(e.length):[];return tr(e,(function(e){i[++r]=o?rt(t,e,n):br(e,t,n)})),i})),pa=wo((function(e,t,n){Yn(e,n,t)}));function da(e,t){return(Ra(e)?ft:Tr)(e,Xo(t,3))}var ha=wo((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var va=Fr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&li(e,t[0],t[1])?t=[]:n>2&&li(t[0],t[1],t[2])&&(t=[t[0]]),Ar(e,ar(t,1),[])})),ya=Jt||function(){return qe.Date.now()};function ga(e,t,n){return t=n?void 0:t,Uo(e,128,void 0,void 0,void 0,void 0,t=e&&null==t?e.length:t)}function ma(e,t){var n;if("function"!=typeof t)throw new ge(r);return e=ou(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var ba=Fr((function(e,t,n){var r=1;if(n.length){var o=Ut(n,Jo(ba));r|=32}return Uo(e,r,t,n,o)})),_a=Fr((function(e,t,n){var r=3;if(n.length){var o=Ut(n,Jo(_a));r|=32}return Uo(t,r,e,n,o)}));function wa(e,t,n){var o,i,a,u,c,l,s=0,f=!1,p=!1,d=!0;if("function"!=typeof e)throw new ge(r);function h(t){var n=o,r=i;return o=i=void 0,s=t,u=e.apply(r,n)}function v(e){return s=e,c=wi(g,t),f?h(e):u}function y(e){var n=e-l;return void 0===l||n>=t||n<0||p&&e-s>=a}function g(){var e=ya();if(y(e))return m(e);c=wi(g,function(e){var n=t-(e-l);return p?cn(n,a-(e-s)):n}(e))}function m(e){return c=void 0,d&&o?h(e):(o=i=void 0,u)}function b(){var e=ya(),n=y(e);if(o=arguments,i=this,l=e,n){if(void 0===c)return v(l);if(p)return fo(c),c=wi(g,t),h(l)}return void 0===c&&(c=wi(g,t)),u}return t=au(t)||0,Wa(n)&&(f=!!n.leading,a=(p="maxWait"in n)?un(au(n.maxWait)||0,t):a,d="trailing"in n?!!n.trailing:d),b.cancel=function(){void 0!==c&&fo(c),s=0,o=l=i=c=void 0},b.flush=function(){return void 0===c?u:m(ya())},b}var Oa=Fr((function(e,t){return Qn(e,1,t)})),Ea=Fr((function(e,t,n){return Qn(e,au(t)||0,n)}));function xa(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ge(r);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(xa.Cache||Ln),n}function ja(e){if("function"!=typeof e)throw new ge(r);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}xa.Cache=Ln;var Sa=lo((function(e,t){var n=(t=1==t.length&&Ra(t[0])?ft(t[0],Pt(Xo())):ft(ar(t,1),Pt(Xo()))).length;return Fr((function(r){for(var o=-1,i=cn(r.length,n);++o=t})),Aa=_r(function(){return arguments}())?_r:function(e){return qa(e)&&Ee.call(e,"callee")&&!Ge.call(e,"callee")},Ra=G.isArray,Ia=Je?Pt(Je):function(e){return qa(e)&&hr(e)==w};function La(e){return null!=e&&Ha(e.length)&&!Ua(e)}function Na(e){return qa(e)&&La(e)}var za=nn||ac,Fa=Xe?Pt(Xe):function(e){return qa(e)&&hr(e)==l};function Ba(e){if(!qa(e))return!1;var t=hr(e);return t==s||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!Ya(e)}function Ua(e){if(!Wa(e))return!1;var t=hr(e);return t==f||t==p||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Va(e){return"number"==typeof e&&e==ou(e)}function Ha(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function Wa(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function qa(e){return null!=e&&"object"==typeof e}var Za=Qe?Pt(Qe):function(e){return qa(e)&&oi(e)==d};function Ga(e){return"number"==typeof e||qa(e)&&hr(e)==h}function Ya(e){if(!qa(e)||hr(e)!=v)return!1;var t=We(e);if(null===t)return!0;var n=Ee.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Oe.call(n)==Ce}var $a=et?Pt(et):function(e){return qa(e)&&hr(e)==y};var Ka=tt?Pt(tt):function(e){return qa(e)&&oi(e)==g};function Ja(e){return"string"==typeof e||!Ra(e)&&qa(e)&&hr(e)==m}function Xa(e){return"symbol"==typeof e||qa(e)&&hr(e)==b}var Qa=nt?Pt(nt):function(e){return qa(e)&&Ha(e.length)&&!!ze[hr(e)]};var eu=Lo(Cr),tu=Lo((function(e,t){return e<=t}));function nu(e){if(!e)return[];if(La(e))return Ja(e)?qt(e):bo(e);if(yt&&e[yt])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[yt]());var t=oi(e);return(t==d?Ft:t==g?Vt:ku)(e)}function ru(e){return e?(e=au(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ou(e){var t=ru(e),n=t%1;return t==t?n?t-n:t:0}function iu(e){return e?Kn(ou(e),0,4294967295):0}function au(e){if("number"==typeof e)return e;if(Xa(e))return NaN;if(Wa(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Wa(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Tt(e);var n=re.test(e);return n||ie.test(e)?Ve(e.slice(2),n?2:8):ne.test(e)?NaN:+e}function uu(e){return _o(e,Ou(e))}function cu(e){return null==e?"":Xr(e)}var lu=Oo((function(e,t){if(di(t)||La(t))_o(t,wu(t),e);else for(var n in t)Ee.call(t,n)&&Wn(e,n,t[n])})),su=Oo((function(e,t){_o(t,Ou(t),e)})),fu=Oo((function(e,t,n,r){_o(t,Ou(t),e,r)})),pu=Oo((function(e,t,n,r){_o(t,wu(t),e,r)})),du=Zo($n);var hu=Fr((function(e,t){e=he(e);var n=-1,r=t.length,o=r>2?t[2]:void 0;for(o&&li(t[0],t[1],o)&&(r=1);++n1),t})),_o(e,Yo(e),n),r&&(n=Jn(n,7,Wo));for(var o=t.length;o--;)eo(n,t[o]);return n}));var Su=Zo((function(e,t){return null==e?{}:function(e,t){return Rr(e,t,(function(t,n){return gu(e,n)}))}(e,t)}));function Cu(e,t){if(null==e)return{};var n=ft(Yo(e),(function(e){return[e]}));return t=Xo(t),Rr(e,n,(function(e,n){return t(e,n[0])}))}var Tu=Bo(wu),Pu=Bo(Ou);function ku(e){return null==e?[]:kt(e,wu(e))}var Mu=So((function(e,t,n){return t=t.toLowerCase(),e+(n?Du(t):t)}));function Du(e){return Bu(cu(e).toLowerCase())}function Au(e){return(e=cu(e))&&e.replace(ue,It).replace(Me,"")}var Ru=So((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Iu=So((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Lu=jo("toLowerCase");var Nu=So((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var zu=So((function(e,t,n){return e+(n?" ":"")+Bu(t)}));var Fu=So((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Bu=jo("toUpperCase");function Uu(e,t,n){return e=cu(e),void 0===(t=n?void 0:t)?function(e){return Ie.test(e)}(e)?function(e){return e.match(Ae)||[]}(e):function(e){return e.match(J)||[]}(e):e.match(t)||[]}var Vu=Fr((function(e,t){try{return rt(e,void 0,t)}catch(e){return Ba(e)?e:new fe(e)}})),Hu=Zo((function(e,t){return it(t,(function(t){t=Ci(t),Yn(e,t,ba(e[t],e))})),e}));function Wu(e){return function(){return e}}var qu=Po(),Zu=Po(!0);function Gu(e){return e}function Yu(e){return xr("function"==typeof e?e:Jn(e,1))}var $u=Fr((function(e,t){return function(n){return br(n,e,t)}})),Ku=Fr((function(e,t){return function(n){return br(e,n,t)}}));function Ju(e,t,n){var r=wu(t),o=fr(t,r);null!=n||Wa(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=fr(t,wu(t)));var i=!(Wa(n)&&"chain"in n&&!n.chain),a=Ua(e);return it(o,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__),o=n.__actions__=bo(this.__actions__);return o.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,pt([this.value()],arguments))})})),e}function Xu(){}var Qu=Ao(ft),ec=Ao(ut),tc=Ao(vt);function nc(e){return si(e)?Et(Ci(e)):function(e){return function(t){return pr(t,e)}}(e)}var rc=Io(),oc=Io(!0);function ic(){return[]}function ac(){return!1}var uc=Do((function(e,t){return e+t}),0),cc=zo("ceil"),lc=Do((function(e,t){return e/t}),1),sc=zo("floor");var fc,pc=Do((function(e,t){return e*t}),1),dc=zo("round"),hc=Do((function(e,t){return e-t}),0);return Pn.after=function(e,t){if("function"!=typeof t)throw new ge(r);return e=ou(e),function(){if(--e<1)return t.apply(this,arguments)}},Pn.ary=ga,Pn.assign=lu,Pn.assignIn=su,Pn.assignInWith=fu,Pn.assignWith=pu,Pn.at=du,Pn.before=ma,Pn.bind=ba,Pn.bindAll=Hu,Pn.bindKey=_a,Pn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ra(e)?e:[e]},Pn.chain=na,Pn.chunk=function(e,t,n){t=(n?li(e,t,n):void 0===t)?1:un(ou(t),0);var r=null==e?0:e.length;if(!r||t<1)return[];for(var o=0,i=0,a=G(Qt(r/t));oo?0:o+n),(r=void 0===r||r>o?o:ou(r))<0&&(r+=o),r=n>r?0:iu(r);n>>0)?(e=cu(e))&&("string"==typeof t||null!=t&&!$a(t))&&!(t=Xr(t))&&zt(e)?so(qt(e),0,n):e.split(t,n):[]},Pn.spread=function(e,t){if("function"!=typeof e)throw new ge(r);return t=null==t?0:un(ou(t),0),Fr((function(n){var r=n[t],o=so(n,0,t);return r&&pt(o,r),rt(e,this,o)}))},Pn.tail=function(e){var t=null==e?0:e.length;return t?Zr(e,1,t):[]},Pn.take=function(e,t,n){return e&&e.length?Zr(e,0,(t=n||void 0===t?1:ou(t))<0?0:t):[]},Pn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?Zr(e,(t=r-(t=n||void 0===t?1:ou(t)))<0?0:t,r):[]},Pn.takeRightWhile=function(e,t){return e&&e.length?no(e,Xo(t,3),!1,!0):[]},Pn.takeWhile=function(e,t){return e&&e.length?no(e,Xo(t,3)):[]},Pn.tap=function(e,t){return t(e),e},Pn.throttle=function(e,t,n){var o=!0,i=!0;if("function"!=typeof e)throw new ge(r);return Wa(n)&&(o="leading"in n?!!n.leading:o,i="trailing"in n?!!n.trailing:i),wa(e,t,{leading:o,maxWait:t,trailing:i})},Pn.thru=ra,Pn.toArray=nu,Pn.toPairs=Tu,Pn.toPairsIn=Pu,Pn.toPath=function(e){return Ra(e)?ft(e,Ci):Xa(e)?[e]:bo(Si(cu(e)))},Pn.toPlainObject=uu,Pn.transform=function(e,t,n){var r=Ra(e),o=r||za(e)||Qa(e);if(t=Xo(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:Wa(e)&&Ua(i)?kn(We(e)):{}}return(o?it:lr)(e,(function(e,r,o){return t(n,e,r,o)})),n},Pn.unary=function(e){return ga(e,1)},Pn.union=qi,Pn.unionBy=Zi,Pn.unionWith=Gi,Pn.uniq=function(e){return e&&e.length?Qr(e):[]},Pn.uniqBy=function(e,t){return e&&e.length?Qr(e,Xo(t,2)):[]},Pn.uniqWith=function(e,t){return t="function"==typeof t?t:void 0,e&&e.length?Qr(e,void 0,t):[]},Pn.unset=function(e,t){return null==e||eo(e,t)},Pn.unzip=Yi,Pn.unzipWith=$i,Pn.update=function(e,t,n){return null==e?e:to(e,t,uo(n))},Pn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:to(e,t,uo(n),r)},Pn.values=ku,Pn.valuesIn=function(e){return null==e?[]:kt(e,Ou(e))},Pn.without=Ki,Pn.words=Uu,Pn.wrap=function(e,t){return Ca(uo(t),e)},Pn.xor=Ji,Pn.xorBy=Xi,Pn.xorWith=Qi,Pn.zip=ea,Pn.zipObject=function(e,t){return io(e||[],t||[],Wn)},Pn.zipObjectDeep=function(e,t){return io(e||[],t||[],Vr)},Pn.zipWith=ta,Pn.entries=Tu,Pn.entriesIn=Pu,Pn.extend=su,Pn.extendWith=fu,Ju(Pn,Pn),Pn.add=uc,Pn.attempt=Vu,Pn.camelCase=Mu,Pn.capitalize=Du,Pn.ceil=cc,Pn.clamp=function(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=au(n))==n?n:0),void 0!==t&&(t=(t=au(t))==t?t:0),Kn(au(e),t,n)},Pn.clone=function(e){return Jn(e,4)},Pn.cloneDeep=function(e){return Jn(e,5)},Pn.cloneDeepWith=function(e,t){return Jn(e,5,t="function"==typeof t?t:void 0)},Pn.cloneWith=function(e,t){return Jn(e,4,t="function"==typeof t?t:void 0)},Pn.conformsTo=function(e,t){return null==t||Xn(e,t,wu(t))},Pn.deburr=Au,Pn.defaultTo=function(e,t){return null==e||e!=e?t:e},Pn.divide=lc,Pn.endsWith=function(e,t,n){e=cu(e),t=Xr(t);var r=e.length,o=n=void 0===n?r:Kn(ou(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},Pn.eq=ka,Pn.escape=function(e){return(e=cu(e))&&N.test(e)?e.replace(I,Lt):e},Pn.escapeRegExp=function(e){return(e=cu(e))&&q.test(e)?e.replace(W,"\\$&"):e},Pn.every=function(e,t,n){var r=Ra(e)?ut:rr;return n&&li(e,t,n)&&(t=void 0),r(e,Xo(t,3))},Pn.find=aa,Pn.findIndex=Ai,Pn.findKey=function(e,t){return gt(e,Xo(t,3),lr)},Pn.findLast=ua,Pn.findLastIndex=Ri,Pn.findLastKey=function(e,t){return gt(e,Xo(t,3),sr)},Pn.floor=sc,Pn.forEach=ca,Pn.forEachRight=la,Pn.forIn=function(e,t){return null==e?e:ur(e,Xo(t,3),Ou)},Pn.forInRight=function(e,t){return null==e?e:cr(e,Xo(t,3),Ou)},Pn.forOwn=function(e,t){return e&&lr(e,Xo(t,3))},Pn.forOwnRight=function(e,t){return e&&sr(e,Xo(t,3))},Pn.get=yu,Pn.gt=Ma,Pn.gte=Da,Pn.has=function(e,t){return null!=e&&ii(e,t,yr)},Pn.hasIn=gu,Pn.head=Li,Pn.identity=Gu,Pn.includes=function(e,t,n,r){e=La(e)?e:ku(e),n=n&&!r?ou(n):0;var o=e.length;return n<0&&(n=un(o+n,0)),Ja(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&bt(e,t,n)>-1},Pn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:ou(n);return o<0&&(o=un(r+o,0)),bt(e,t,o)},Pn.inRange=function(e,t,n){return t=ru(t),void 0===n?(n=t,t=0):n=ru(n),function(e,t,n){return e>=cn(t,n)&&e=-9007199254740991&&e<=9007199254740991},Pn.isSet=Ka,Pn.isString=Ja,Pn.isSymbol=Xa,Pn.isTypedArray=Qa,Pn.isUndefined=function(e){return void 0===e},Pn.isWeakMap=function(e){return qa(e)&&oi(e)==_},Pn.isWeakSet=function(e){return qa(e)&&"[object WeakSet]"==hr(e)},Pn.join=function(e,t){return null==e?"":on.call(e,t)},Pn.kebabCase=Ru,Pn.last=Bi,Pn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return void 0!==n&&(o=(o=ou(n))<0?un(r+o,0):cn(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):mt(e,wt,o,!0)},Pn.lowerCase=Iu,Pn.lowerFirst=Lu,Pn.lt=eu,Pn.lte=tu,Pn.max=function(e){return e&&e.length?or(e,Gu,vr):void 0},Pn.maxBy=function(e,t){return e&&e.length?or(e,Xo(t,2),vr):void 0},Pn.mean=function(e){return Ot(e,Gu)},Pn.meanBy=function(e,t){return Ot(e,Xo(t,2))},Pn.min=function(e){return e&&e.length?or(e,Gu,Cr):void 0},Pn.minBy=function(e,t){return e&&e.length?or(e,Xo(t,2),Cr):void 0},Pn.stubArray=ic,Pn.stubFalse=ac,Pn.stubObject=function(){return{}},Pn.stubString=function(){return""},Pn.stubTrue=function(){return!0},Pn.multiply=pc,Pn.nth=function(e,t){return e&&e.length?Dr(e,ou(t)):void 0},Pn.noConflict=function(){return qe._===this&&(qe._=Te),this},Pn.noop=Xu,Pn.now=ya,Pn.pad=function(e,t,n){e=cu(e);var r=(t=ou(t))?Wt(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Ro(en(o),n)+e+Ro(Qt(o),n)},Pn.padEnd=function(e,t,n){e=cu(e);var r=(t=ou(t))?Wt(e):0;return t&&rt){var r=e;e=t,t=r}if(n||e%1||t%1){var o=fn();return cn(e+o*(t-e+Ue("1e-"+((o+"").length-1))),t)}return Nr(e,t)},Pn.reduce=function(e,t,n){var r=Ra(e)?dt:jt,o=arguments.length<3;return r(e,Xo(t,4),n,o,tr)},Pn.reduceRight=function(e,t,n){var r=Ra(e)?ht:jt,o=arguments.length<3;return r(e,Xo(t,4),n,o,nr)},Pn.repeat=function(e,t,n){return t=(n?li(e,t,n):void 0===t)?1:ou(t),zr(cu(e),t)},Pn.replace=function(){var e=arguments,t=cu(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Pn.result=function(e,t,n){var r=-1,o=(t=co(t,e)).length;for(o||(o=1,e=void 0);++r9007199254740991)return[];var n=4294967295,r=cn(e,4294967295);e-=4294967295;for(var o=Ct(r,t=Xo(t));++n=i)return e;var u=n-Wt(r);if(u<1)return r;var c=a?so(a,0,u).join(""):e.slice(0,u);if(void 0===o)return c+r;if(a&&(u+=c.length-u),$a(o)){if(e.slice(u).search(o)){var l,s=c;for(o.global||(o=ve(o.source,cu(te.exec(o))+"g")),o.lastIndex=0;l=o.exec(s);)var f=l.index;c=c.slice(0,void 0===f?u:f)}}else if(e.indexOf(Xr(o),u)!=u){var p=c.lastIndexOf(o);p>-1&&(c=c.slice(0,p))}return c+r},Pn.unescape=function(e){return(e=cu(e))&&L.test(e)?e.replace(R,Gt):e},Pn.uniqueId=function(e){var t=++xe;return cu(e)+t},Pn.upperCase=Fu,Pn.upperFirst=Bu,Pn.each=ca,Pn.eachRight=la,Pn.first=Li,Ju(Pn,(fc={},lr(Pn,(function(e,t){Ee.call(Pn.prototype,t)||(fc[t]=e)})),fc),{chain:!1}),Pn.VERSION="4.17.21",it(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Pn[e].placeholder=Pn})),it(["drop","take"],(function(e,t){An.prototype[e]=function(n){n=void 0===n?1:un(ou(n),0);var r=this.__filtered__&&!t?new An(this):this.clone();return r.__filtered__?r.__takeCount__=cn(n,r.__takeCount__):r.__views__.push({size:cn(n,4294967295),type:e+(r.__dir__<0?"Right":"")}),r},An.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),it(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;An.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Xo(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),it(["head","last"],(function(e,t){var n="take"+(t?"Right":"");An.prototype[e]=function(){return this[n](1).value()[0]}})),it(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");An.prototype[e]=function(){return this.__filtered__?new An(this):this[n](1)}})),An.prototype.compact=function(){return this.filter(Gu)},An.prototype.find=function(e){return this.filter(e).head()},An.prototype.findLast=function(e){return this.reverse().find(e)},An.prototype.invokeMap=Fr((function(e,t){return"function"==typeof e?new An(this):this.map((function(n){return br(n,e,t)}))})),An.prototype.reject=function(e){return this.filter(ja(Xo(e)))},An.prototype.slice=function(e,t){e=ou(e);var n=this;return n.__filtered__&&(e>0||t<0)?new An(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),void 0!==t&&(n=(t=ou(t))<0?n.dropRight(-t):n.take(t-e)),n)},An.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},An.prototype.toArray=function(){return this.take(4294967295)},lr(An.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=Pn[r?"take"+("last"==t?"Right":""):t],i=r||/^find/.test(t);o&&(Pn.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,u=t instanceof An,c=a[0],l=u||Ra(t),s=function(e){var t=o.apply(Pn,pt([e],a));return r&&f?t[0]:t};l&&n&&"function"==typeof c&&1!=c.length&&(u=l=!1);var f=this.__chain__,p=!!this.__actions__.length,d=i&&!f,h=u&&!p;if(!i&&l){t=h?t:new An(this);var v=e.apply(t,a);return v.__actions__.push({func:ra,args:[s],thisArg:void 0}),new Dn(v,f)}return d&&h?e.apply(this,a):(v=this.thru(s),d?r?v.value()[0]:v.value():v)})})),it(["pop","push","shift","sort","splice","unshift"],(function(e){var t=me[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Pn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(Ra(o)?o:[],e)}return this[n]((function(n){return t.apply(Ra(n)?n:[],e)}))}})),lr(An.prototype,(function(e,t){var n=Pn[t];if(n){var r=n.name+"";Ee.call(_n,r)||(_n[r]=[]),_n[r].push({name:t,func:n})}})),_n[ko(void 0,2).name]=[{name:"wrapper",func:void 0}],An.prototype.clone=function(){var e=new An(this.__wrapped__);return e.__actions__=bo(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=bo(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=bo(this.__views__),e},An.prototype.reverse=function(){if(this.__filtered__){var e=new An(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},An.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ra(e),r=t<0,o=n?e.length:0,i=function(e,t,n){var r=-1,o=n.length;for(;++r=this.__values__.length;return{done:e,value:e?void 0:this.__values__[this.__index__++]}},Pn.prototype.plant=function(e){for(var t,n=this;n instanceof Mn;){var r=Pi(n);r.__index__=0,r.__values__=void 0,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},Pn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof An){var t=e;return this.__actions__.length&&(t=new An(this)),(t=t.reverse()).__actions__.push({func:ra,args:[Wi],thisArg:void 0}),new Dn(t,this.__chain__)}return this.thru(Wi)},Pn.prototype.toJSON=Pn.prototype.valueOf=Pn.prototype.value=function(){return ro(this.__wrapped__,this.__actions__)},Pn.prototype.first=Pn.prototype.head,yt&&(Pn.prototype[yt]=function(){return this}),Pn}();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(qe._=Yt,define((function(){return Yt}))):Ge?((Ge.exports=Yt)._=Yt,Ze._=Yt):qe._=Yt}).call(this)}).call(this,n(35),n(54)(e))},function(e,t,n){"use strict"; /** * Copyright (c) 2013-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */e.exports=function(e,t,n,r,o,i,a,u){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,o,i,a,u],s=0;(c=new Error(t.replace(/%s/g,(function(){return l[s++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}},function(e,t,n){var r=n(147);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},function(e,t){e.exports=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}},function(e,t,n){var r=n(189)();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},function(e,t,n){"use strict";var r=n(10);t.a=function(){for(var e=arguments.length,t=Array(e),n=0;n=0;y--)if(s.canDragSource(n[y])){v=n[y];break}if(null!==v){var g=null;c&&(i("function"==typeof l,"When clientOffset is provided, getSourceClientOffset must be a function."),g=l(v));var m=f.getSource(v).beginDrag(s,v);i(a(m),"Item must be an object."),f.pinSource(v);var b=f.getSourceType(v);return{type:t.BEGIN_DRAG,payload:{itemType:b,item:m,sourceId:v,clientOffset:c||null,sourceClientOffset:g||null,isSourcePublic:!!u}}}},publishDragSource:function(){if(e.getMonitor().isDragging())return{type:t.PUBLISH_DRAG_SOURCE}},hover:function(n,r){var a=(void 0===r?{}:r).clientOffset;i(Array.isArray(n),"Expected targetIds to be an array.");var u=n.slice(0),c=e.getMonitor(),l=e.getRegistry();i(c.isDragging(),"Cannot call hover while not dragging."),i(!c.didDrop(),"Cannot call hover after drop.");for(var s=0;s=0;s--){f=u[s];var h=l.getTargetType(f);o.default(h,d)||u.splice(s,1)}for(var v=0,y=u;v=43)}})).catch((function(){return!1}))}(e).then((function(e){return f=e}))}function v(e){var t=p[e.name],n={};n.promise=new a((function(e,t){n.resolve=e,n.reject=t})),t.deferredOperations.push(n),t.dbReady?t.dbReady=t.dbReady.then((function(){return n.promise})):t.dbReady=n.promise}function y(e){var t=p[e.name].deferredOperations.pop();if(t)return t.resolve(),t.promise}function g(e,t){var n=p[e.name].deferredOperations.pop();if(n)return n.reject(t),n.promise}function m(e,t){return new a((function(n,r){if(p[e.name]=p[e.name]||{forages:[],db:null,dbReady:null,deferredOperations:[]},e.db){if(!t)return n(e.db);v(e),e.db.close()}var i=[e.name];t&&i.push(e.version);var a=o.open.apply(o,i);t&&(a.onupgradeneeded=function(t){var n=a.result;try{n.createObjectStore(e.storeName),t.oldVersion<=1&&n.createObjectStore("local-forage-detect-blob-support")}catch(n){if("ConstraintError"!==n.name)throw n;console.warn('The database "'+e.name+'" has been upgraded from version '+t.oldVersion+" to version "+t.newVersion+', but the storage "'+e.storeName+'" already exists.')}}),a.onerror=function(e){e.preventDefault(),r(a.error)},a.onsuccess=function(){var t=a.result;t.onversionchange=function(e){e.target.close()},n(t),y(e)}}))}function b(e){return m(e,!1)}function _(e){return m(e,!0)}function w(e,t){if(!e.db)return!0;var n=!e.db.objectStoreNames.contains(e.storeName),r=e.versione.db.version;if(r&&(e.version!==t&&console.warn('The database "'+e.name+"\" can't be downgraded from version "+e.db.version+" to version "+e.version+"."),e.version=e.db.version),o||n){if(n){var i=e.db.version+1;i>e.version&&(e.version=i)}return!0}return!1}function O(e){return i([function(e){for(var t=e.length,n=new ArrayBuffer(t),r=new Uint8Array(n),o=0;o0&&(!e.db||"InvalidStateError"===o.name||"NotFoundError"===o.name))return a.resolve().then((function(){if(!e.db||"NotFoundError"===o.name&&!e.db.objectStoreNames.contains(e.storeName)&&e.version<=e.db.version)return e.db&&(e.version=e.db.version+1),_(e)})).then((function(){return function(e){v(e);for(var t=p[e.name],n=t.forages,r=0;r>4,s[c++]=(15&r)<<4|o>>2,s[c++]=(3&o)<<6|63&i;return l}function A(e){var t,n=new Uint8Array(e),r="";for(t=0;t>2],r+=C[(3&n[t])<<4|n[t+1]>>4],r+=C[(15&n[t+1])<<2|n[t+2]>>6],r+=C[63&n[t+2]];return n.length%3==2?r=r.substring(0,r.length-1)+"=":n.length%3==1&&(r=r.substring(0,r.length-2)+"=="),r}var R={serialize:function(e,t){var n="";if(e&&(n=M.call(e)),e&&("[object ArrayBuffer]"===n||e.buffer&&"[object ArrayBuffer]"===M.call(e.buffer))){var r,o="__lfsc__:";e instanceof ArrayBuffer?(r=e,o+="arbf"):(r=e.buffer,"[object Int8Array]"===n?o+="si08":"[object Uint8Array]"===n?o+="ui08":"[object Uint8ClampedArray]"===n?o+="uic8":"[object Int16Array]"===n?o+="si16":"[object Uint16Array]"===n?o+="ur16":"[object Int32Array]"===n?o+="si32":"[object Uint32Array]"===n?o+="ui32":"[object Float32Array]"===n?o+="fl32":"[object Float64Array]"===n?o+="fl64":t(new Error("Failed to get type for BinaryArray"))),t(o+A(r))}else if("[object Blob]"===n){var i=new FileReader;i.onload=function(){var n="~~local_forage_type~"+e.type+"~"+A(this.result);t("__lfsc__:blob"+n)},i.readAsArrayBuffer(e)}else try{t(JSON.stringify(e))}catch(n){console.error("Couldn't convert value into a JSON string: ",e),t(null,n)}},deserialize:function(e){if("__lfsc__:"!==e.substring(0,P))return JSON.parse(e);var t,n=e.substring(k),r=e.substring(P,k);if("blob"===r&&T.test(n)){var o=n.match(T);t=o[1],n=n.substring(o[0].length)}var a=D(n);switch(r){case"arbf":return a;case"blob":return i([a],{type:t});case"si08":return new Int8Array(a);case"ui08":return new Uint8Array(a);case"uic8":return new Uint8ClampedArray(a);case"si16":return new Int16Array(a);case"ur16":return new Uint16Array(a);case"si32":return new Int32Array(a);case"ui32":return new Uint32Array(a);case"fl32":return new Float32Array(a);case"fl64":return new Float64Array(a);default:throw new Error("Unkown type: "+r)}},stringToBuffer:D,bufferToString:A}; /* * Includes code from: * * base64-arraybuffer * https://github.com/niklasvh/base64-arraybuffer * * Copyright (c) 2012 Niklas von Hertzen * Licensed under the MIT license. */function I(e,t,n,r){e.executeSql("CREATE TABLE IF NOT EXISTS "+t.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],n,r)}function L(e,t,n,r,o,i){e.executeSql(n,r,o,(function(e,a){a.code===a.SYNTAX_ERR?e.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[t.storeName],(function(e,u){u.rows.length?i(e,a):I(e,t,(function(){e.executeSql(n,r,o,i)}),i)}),i):i(e,a)}),i)}function N(e,t,n,r){var o=this;e=l(e);var i=new a((function(i,a){o.ready().then((function(){void 0===t&&(t=null);var u=t,c=o._dbInfo;c.serializer.serialize(t,(function(t,l){l?a(l):c.db.transaction((function(n){L(n,c,"INSERT OR REPLACE INTO "+c.storeName+" (key, value) VALUES (?, ?)",[e,t],(function(){i(u)}),(function(e,t){a(t)}))}),(function(t){if(t.code===t.QUOTA_ERR){if(r>0)return void i(N.apply(o,[e,u,n,r-1]));a(t)}}))}))})).catch(a)}));return u(i,n),i}function z(e){return new a((function(t,n){e.transaction((function(r){r.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],(function(n,r){for(var o=[],i=0;i0}var V={_driver:"localStorageWrapper",_initStorage:function(e){var t={};if(e)for(var n in e)t[n]=e[n];return t.keyPrefix=B(e,this._defaultConfig),U()?(this._dbInfo=t,t.serializer=R,a.resolve()):a.reject()},_support:function(){try{return"undefined"!=typeof localStorage&&"setItem"in localStorage&&!!localStorage.setItem}catch(e){return!1}}(),iterate:function(e,t){var n=this,r=n.ready().then((function(){for(var t=n._dbInfo,r=t.keyPrefix,o=r.length,i=localStorage.length,a=1,u=0;u=0;n--){var r=localStorage.key(n);0===r.indexOf(e)&&localStorage.removeItem(r)}}));return u(n,e),n},length:function(e){var t=this.keys().then((function(e){return e.length}));return u(t,e),t},key:function(e,t){var n=this,r=n.ready().then((function(){var t,r=n._dbInfo;try{t=localStorage.key(e)}catch(e){t=null}return t&&(t=t.substring(r.keyPrefix.length)),t}));return u(r,t),r},keys:function(e){var t=this,n=t.ready().then((function(){for(var e=t._dbInfo,n=localStorage.length,r=[],o=0;o=0;t--){var n=localStorage.key(t);0===n.indexOf(e)&&localStorage.removeItem(n)}})):a.reject("Invalid arguments"),t),r}},H=function(e,t){for(var n,r,o=e.length,i=0;i-1&&e%1==0&&e<=9007199254740991}},function(e,t){var n=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&n.test(e))&&e>-1&&e%1==0&&et===e.identifier)||e.changedTouches&&(0,r.findInArray)(e.changedTouches,e=>t===e.identifier)},t.getTouchIdentifier=function(e){if(e.targetTouches&&e.targetTouches[0])return e.targetTouches[0].identifier;if(e.changedTouches&&e.changedTouches[0])return e.changedTouches[0].identifier},t.getTranslation=c,t.innerHeight=function(e){let t=e.clientHeight;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,r.int)(n.paddingTop),t-=(0,r.int)(n.paddingBottom),t},t.innerWidth=function(e){let t=e.clientWidth;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,r.int)(n.paddingLeft),t-=(0,r.int)(n.paddingRight),t},t.matchesSelector=u,t.matchesSelectorAndParentsTo=function(e,t,n){let r=e;do{if(u(r,t))return!0;if(r===n)return!1;r=r.parentNode}while(r);return!1},t.offsetXYFromParent=function(e,t,n){const r=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect(),o=(e.clientX+t.scrollLeft-r.left)/n,i=(e.clientY+t.scrollTop-r.top)/n;return{x:o,y:i}},t.outerHeight=function(e){let t=e.clientHeight;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,r.int)(n.borderTopWidth),t+=(0,r.int)(n.borderBottomWidth),t},t.outerWidth=function(e){let t=e.clientWidth;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,r.int)(n.borderLeftWidth),t+=(0,r.int)(n.borderRightWidth),t},t.removeClassName=s,t.removeEvent=function(e,t,n,r){if(!e)return;const o={capture:!0,...r};e.removeEventListener?e.removeEventListener(t,n,o):e.detachEvent?e.detachEvent("on"+t,n):e["on"+t]=null},t.removeUserSelectStyles=function(e){if(!e)return;try{if(e.body&&s(e.body,"react-draggable-transparent-selection"),e.selection)e.selection.empty();else{const t=(e.defaultView||window).getSelection();t&&"Caret"!==t.type&&t.removeAllRanges()}}catch(e){}};var r=n(73),o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=i(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var u=o?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(r,a,u):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(286));function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}let a="";function u(e,t){return a||(a=(0,r.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],(function(t){return(0,r.isFunction)(e[t])}))),!!(0,r.isFunction)(e[a])&&e[a](t)}function c(e,t,n){let{x:r,y:o}=e,i="translate(".concat(r).concat(n,",").concat(o).concat(n,")");if(t){const e="".concat("string"==typeof t.x?t.x:t.x+n),r="".concat("string"==typeof t.y?t.y:t.y+n);i="translate(".concat(e,", ").concat(r,")")+i}return i}function l(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)")))||(e.className+=" ".concat(t))}function s(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)"),"g"),"")}},function(e,t,n){var r=n(69),o=n(105),i=n(106),a=n(70),u=n(292),c=n(100);e.exports=function(e,t,n){var l=-1,s=o,f=e.length,p=!0,d=[],h=d;if(n)p=!1,s=i;else if(f>=200){var v=t?null:u(e);if(v)return c(v);p=!1,s=a,h=new r}else h=t?[]:d;e:for(;++l-1}},function(e,t){e.exports=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r0&&i(s)?n>1?e(s,n-1,i,a,u):r(u,s):a||(u[u.length]=s)}return u}},function(e,t,n){"use strict"; /** * Copyright 2015, Yahoo! Inc. * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms. */var r={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i=Object.defineProperty,a=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,c=Object.getOwnPropertyDescriptor,l=Object.getPrototypeOf,s=l&&l(Object);e.exports=function e(t,n,f){if("string"!=typeof n){if(s){var p=l(n);p&&p!==s&&e(t,p,f)}var d=a(n);u&&(d=d.concat(u(n)));for(var h=0;h-1:!!s&&r(e,t,n)>-1}},function(e,t,n){e.exports=n(184)()},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1)for(var n=1;ns))return!1;var p=c.get(e),d=c.get(t);if(p&&d)return p==t&&d==e;var h=-1,v=!0,y=2&n?new r:void 0;for(c.set(e,t),c.set(t,e);++he.length)&&(t=e.length);for(var n=0,r=Array(t);n: Unmounted during event!");return t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){void 0}},function(e,t,n){var r=n(289),o=n(290),i=n(291);e.exports=function(e,t,n){return t==t?i(e,t,n):r(e,o,n)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(107);t.DragDropContext=r.DragDropContext,t.DragDropContextProvider=r.DragDropContextProvider;var o=n(319);t.DragLayer=o.default;var i=n(321);t.DragSource=i.default;var a=n(331);t.DropTarget=a.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"}(t.HandlerRole||(t.HandlerRole={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return null===t?null===e:Array.isArray(e)?e.some((function(e){return e===t})):e===t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.strictEquality=function(e,t){return e===t},t.areCoordsEqual=function(e,t){return!e&&!t||!(!e||!t)&&(e.x===t.x&&e.y===t.y)},t.areArraysEqual=function(e,n,r){if(void 0===r&&(r=t.strictEquality),e.length!==n.length)return!1;for(var o=0;o=200&&(f=c,p=!1,t=new r(t));e:for(;++s0)}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n, or turn it into a drag source or a drop target itself.")}}(i);var a=n?function(t){return e(t,n)}:e;return o.default(i,a)}e(t,n)}}t.default=function(e){var t={};return Object.keys(e).forEach((function(n){var r=i(e[n]);t[n]=function(){return r}})),t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,n){return"string"==typeof t||"symbol"==typeof t||!!n&&Array.isArray(t)&&t.every((function(t){return e(t,!1)}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(149);t.isFirefox=r((function(){return/firefox/i.test(navigator.userAgent)})),t.isSafari=r((function(){return Boolean(window.safari)}))},function(e,t,n){var r=n(99);e.exports=function(e,t){return r(e,t)}},function(e,t,n){!function(){"use strict";var t={}.hasOwnProperty;function n(){for(var e=[],r=0;r_},A=function(e){return function(e){var t=y[e].b;return v+t+b}(e)>w},R=function(e){return function(e){return j(e)<0}(e)||D(e)||function(e){return M(e)<0}(e)||A(e)},I=function(e){return!R(e)},L=["top","bottom","left","right"],N=[],z=0;z<4;z++){var F=L[z];I(F)&&N.push(F)}var B,U=!1,V=o!==r;return I(o)&&V?(U=!0,B=o):N.length>0&&R(o)&&R(r)&&(U=!0,B=N[0]),U?{isNewState:!0,newState:{place:B}}:{isNewState:!1,position:{left:parseInt(j(r)-x,10),top:parseInt(M(r)-E,10)}}}var S=function(e){var t=e.getBoundingClientRect(),n=t.height,r=t.width;return{height:parseInt(n,10),width:parseInt(r,10)}},C=function(e,t,n){var r=t.getBoundingClientRect(),o=r.top,i=r.left,a=S(t),u=a.width,c=a.height;return"float"===n?{mouseX:e.clientX,mouseY:e.clientY}:{mouseX:i+u/2,mouseY:o+c/2}},T=function(e,t,n,r,o){var i,a,u,c;return"float"===e?(i={l:-r/2,r:r/2,t:-(o+3+2),b:-3},u={l:-r/2,r:r/2,t:15,b:o+3+2+12},c={l:-(r+3+2),r:-3,t:-o/2,b:o/2},a={l:3,r:r+3+2,t:-o/2,b:o/2}):"solid"===e&&(i={l:-r/2,r:r/2,t:-(n/2+o+2),b:-n/2},u={l:-r/2,r:r/2,t:n/2,b:n/2+o+2},c={l:-(r+t/2+2),r:-t/2,t:-o/2,b:o/2},a={l:t/2,r:r+t/2+2,t:-o/2,b:o/2}),{top:i,bottom:u,left:c,right:a}},P=function(e){var t=0,n=0;for(var r in"[object String]"===Object.prototype.toString.apply(e)&&(e=JSON.parse(e.toString().replace(/'/g,'"'))),e)"top"===r?n-=parseInt(e[r],10):"bottom"===r?n+=parseInt(e[r],10):"left"===r?t-=parseInt(e[r],10):"right"===r&&(t+=parseInt(e[r],10));return{extraOffsetX:t,extraOffsetY:n}},k=function(e){for(var t=e;t;){var n=window.getComputedStyle(t);if("none"!==n.getPropertyValue("transform")||"transform"===n.getPropertyValue("will-change"))break;t=t.parentElement}return{parentTop:t&&t.getBoundingClientRect().top||0,parentLeft:t&&t.getBoundingClientRect().left||0}};function M(e,t,n,r){if(t)return t;if(null!=n)return n;if(null===n)return null;var i=//;return r&&"false"!==r&&i.test(e)?e.split(i).map((function(e,t){return o.a.createElement("span",{key:t,className:"multi-line"},e)})):e}function D(e){var t={};return Object.keys(e).filter((function(e){return/(^aria-\w+$|^role$)/.test(e)})).forEach((function(n){t[n]=e[n]})),t}function A(e){var t=e.length;return e.hasOwnProperty?Array.prototype.slice.call(e):new Array(t).fill().map((function(t){return e[t]}))}var R={dark:{text:"#fff",background:"#222",border:"transparent",arrow:"#222"},success:{text:"#fff",background:"#8DC572",border:"transparent",arrow:"#8DC572"},warning:{text:"#fff",background:"#F0AD4E",border:"transparent",arrow:"#F0AD4E"},error:{text:"#fff",background:"#BE6464",border:"transparent",arrow:"#BE6464"},info:{text:"#fff",background:"#337AB7",border:"transparent",arrow:"#337AB7"},light:{text:"#222",background:"#fff",border:"transparent",arrow:"#fff"}};function I(e,t,n,r){return function(e,t){var n=t.text,r=t.background,o=t.border,i=t.arrow;return"\n \t.".concat(e," {\n\t color: ").concat(n,";\n\t background: ").concat(r,";\n\t border: 1px solid ").concat(o,";\n \t}\n\n \t.").concat(e,".place-top {\n margin-top: -10px;\n }\n .").concat(e,".place-top::before {\n border-top: 8px solid ").concat(o,";\n }\n .").concat(e,".place-top::after {\n border-left: 8px solid transparent;\n border-right: 8px solid transparent;\n bottom: -6px;\n left: 50%;\n margin-left: -8px;\n border-top-color: ").concat(i,";\n border-top-style: solid;\n border-top-width: 6px;\n }\n\n .").concat(e,".place-bottom {\n margin-top: 10px;\n }\n .").concat(e,".place-bottom::before {\n border-bottom: 8px solid ").concat(o,";\n }\n .").concat(e,".place-bottom::after {\n border-left: 8px solid transparent;\n border-right: 8px solid transparent;\n top: -6px;\n left: 50%;\n margin-left: -8px;\n border-bottom-color: ").concat(i,";\n border-bottom-style: solid;\n border-bottom-width: 6px;\n }\n\n .").concat(e,".place-left {\n margin-left: -10px;\n }\n .").concat(e,".place-left::before {\n border-left: 8px solid ").concat(o,";\n }\n .").concat(e,".place-left::after {\n border-top: 5px solid transparent;\n border-bottom: 5px solid transparent;\n right: -6px;\n top: 50%;\n margin-top: -4px;\n border-left-color: ").concat(i,";\n border-left-style: solid;\n border-left-width: 6px;\n }\n\n .").concat(e,".place-right {\n margin-left: 10px;\n }\n .").concat(e,".place-right::before {\n border-right: 8px solid ").concat(o,";\n }\n .").concat(e,".place-right::after {\n border-top: 5px solid transparent;\n border-bottom: 5px solid transparent;\n left: -6px;\n top: 50%;\n margin-top: -4px;\n border-right-color: ").concat(i,";\n border-right-style: solid;\n border-right-width: 6px;\n }\n ")}(e,function(e,t,n){var r=e.text,o=e.background,i=e.border,a=e.arrow?e.arrow:e.background,u=function(e){return R[e]?d({},R[e]):void 0}(t);r&&(u.text=r);o&&(u.background=o);n&&(u.border=i||("light"===t?"black":"white"));a&&(u.arrow=a);return u}(t,n,r))}var L="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{};function N(e,t){return e(t={exports:{}},t.exports),t.exports}var z=function(e){return e&&e.Math==Math&&e},F=z("object"==typeof globalThis&&globalThis)||z("object"==typeof window&&window)||z("object"==typeof self&&self)||z("object"==typeof L&&L)||function(){return this}()||Function("return this")(),B=function(e){try{return!!e()}catch(e){return!0}},U=!B((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),V={}.propertyIsEnumerable,H=Object.getOwnPropertyDescriptor,W={f:H&&!V.call({1:2},1)?function(e){var t=H(this,e);return!!t&&t.enumerable}:V},q=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Z={}.toString,G=function(e){return Z.call(e).slice(8,-1)},Y="".split,$=B((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==G(e)?Y.call(e,""):Object(e)}:Object,K=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},J=function(e){return $(K(e))},X=function(e){return"object"==typeof e?null!==e:"function"==typeof e},Q=function(e,t){if(!X(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!X(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!X(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!X(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},ee=function(e){return Object(K(e))},te={}.hasOwnProperty,ne=function(e,t){return te.call(ee(e),t)},re=F.document,oe=X(re)&&X(re.createElement),ie=function(e){return oe?re.createElement(e):{}},ae=!U&&!B((function(){return 7!=Object.defineProperty(ie("div"),"a",{get:function(){return 7}}).a})),ue=Object.getOwnPropertyDescriptor,ce={f:U?ue:function(e,t){if(e=J(e),t=Q(t,!0),ae)try{return ue(e,t)}catch(e){}if(ne(e,t))return q(!W.f.call(e,t),e[t])}},le=function(e){if(!X(e))throw TypeError(String(e)+" is not an object");return e},se=Object.defineProperty,fe={f:U?se:function(e,t,n){if(le(e),t=Q(t,!0),le(n),ae)try{return se(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},pe=U?function(e,t,n){return fe.f(e,t,q(1,n))}:function(e,t,n){return e[t]=n,e},de=function(e,t){try{pe(F,e,t)}catch(n){F[e]=t}return t},he=F["__core-js_shared__"]||de("__core-js_shared__",{}),ve=Function.toString;"function"!=typeof he.inspectSource&&(he.inspectSource=function(e){return ve.call(e)});var ye,ge,me,be=he.inspectSource,_e=F.WeakMap,we="function"==typeof _e&&/native code/.test(be(_e)),Oe=N((function(e){(e.exports=function(e,t){return he[e]||(he[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.12.1",mode:"global",copyright:"\xa9 2021 Denis Pushkarev (zloirock.ru)"})})),Ee=0,xe=Math.random(),je=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++Ee+xe).toString(36)},Se=Oe("keys"),Ce=function(e){return Se[e]||(Se[e]=je(e))},Te={},Pe=F.WeakMap;if(we||he.state){var ke=he.state||(he.state=new Pe),Me=ke.get,De=ke.has,Ae=ke.set;ye=function(e,t){if(De.call(ke,e))throw new TypeError("Object already initialized");return t.facade=e,Ae.call(ke,e,t),t},ge=function(e){return Me.call(ke,e)||{}},me=function(e){return De.call(ke,e)}}else{var Re=Ce("state");Te[Re]=!0,ye=function(e,t){if(ne(e,Re))throw new TypeError("Object already initialized");return t.facade=e,pe(e,Re,t),t},ge=function(e){return ne(e,Re)?e[Re]:{}},me=function(e){return ne(e,Re)}}var Ie,Le,Ne={set:ye,get:ge,has:me,enforce:function(e){return me(e)?ge(e):ye(e,{})},getterFor:function(e){return function(t){var n;if(!X(t)||(n=ge(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},ze=N((function(e){var t=Ne.get,n=Ne.enforce,r=String(String).split("String");(e.exports=function(e,t,o,i){var a,u=!!i&&!!i.unsafe,c=!!i&&!!i.enumerable,l=!!i&&!!i.noTargetGet;"function"==typeof o&&("string"!=typeof t||ne(o,"name")||pe(o,"name",t),(a=n(o)).source||(a.source=r.join("string"==typeof t?t:""))),e!==F?(u?!l&&e[t]&&(c=!0):delete e[t],c?e[t]=o:pe(e,t,o)):c?e[t]=o:de(t,o)})(Function.prototype,"toString",(function(){return"function"==typeof this&&t(this).source||be(this)}))})),Fe=F,Be=function(e){return"function"==typeof e?e:void 0},Ue=function(e,t){return arguments.length<2?Be(Fe[e])||Be(F[e]):Fe[e]&&Fe[e][t]||F[e]&&F[e][t]},Ve=Math.ceil,He=Math.floor,We=function(e){return isNaN(e=+e)?0:(e>0?He:Ve)(e)},qe=Math.min,Ze=function(e){return e>0?qe(We(e),9007199254740991):0},Ge=Math.max,Ye=Math.min,$e=function(e){return function(t,n,r){var o,i=J(t),a=Ze(i.length),u=function(e,t){var n=We(e);return n<0?Ge(n+t,0):Ye(n,t)}(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},Ke={includes:$e(!0),indexOf:$e(!1)}.indexOf,Je=function(e,t){var n,r=J(e),o=0,i=[];for(n in r)!ne(Te,n)&&ne(r,n)&&i.push(n);for(;t.length>o;)ne(r,n=t[o++])&&(~Ke(i,n)||i.push(n));return i},Xe=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Qe=Xe.concat("length","prototype"),et={f:Object.getOwnPropertyNames||function(e){return Je(e,Qe)}},tt={f:Object.getOwnPropertySymbols},nt=Ue("Reflect","ownKeys")||function(e){var t=et.f(le(e)),n=tt.f;return n?t.concat(n(e)):t},rt=function(e,t){for(var n=nt(t),r=fe.f,o=ce.f,i=0;i=74)&&(Ie=ht.match(/Chrome\/(\d+)/))&&(Le=Ie[1]);var mt,bt=Le&&+Le,_t=!!Object.getOwnPropertySymbols&&!B((function(){return!String(Symbol())||!Symbol.sham&&bt&&bt<41})),wt=_t&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Ot=Oe("wks"),Et=F.Symbol,xt=wt?Et:Et&&Et.withoutSetter||je,jt=function(e){return ne(Ot,e)&&(_t||"string"==typeof Ot[e])||(_t&&ne(Et,e)?Ot[e]=Et[e]:Ot[e]=xt("Symbol."+e)),Ot[e]},St=jt("species"),Ct=function(e,t){var n;return dt(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!dt(n.prototype)?X(n)&&null===(n=n[St])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)},Tt=[].push,Pt=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(c,l,s,f){for(var p,d,h=ee(c),v=$(h),y=pt(l,s,3),g=Ze(v.length),m=0,b=f||Ct,_=t?b(c,g):n||a?b(c,0):void 0;g>m;m++)if((u||m in v)&&(d=y(p=v[m],m,h),e))if(t)_[m]=d;else if(d)switch(e){case 3:return!0;case 5:return p;case 6:return m;case 2:Tt.call(_,p)}else switch(e){case 4:return!1;case 7:Tt.call(_,p)}return i?-1:r||o?o:_}},kt={forEach:Pt(0),map:Pt(1),filter:Pt(2),some:Pt(3),every:Pt(4),find:Pt(5),findIndex:Pt(6),filterOut:Pt(7)},Mt=Object.keys||function(e){return Je(e,Xe)},Dt=U?Object.defineProperties:function(e,t){le(e);for(var n,r=Mt(t),o=r.length,i=0;o>i;)fe.f(e,n=r[i++],t[n]);return e},At=Ue("document","documentElement"),Rt=Ce("IE_PROTO"),It=function(){},Lt=function(e){return""; echo et_core_esc_previously( $output ); } add_shortcode('digg', 'et_digg'); function et_digg($atts, $content = null) { do_action( 'et_do_legacy_shortcode' ); $output = " "; return $output; } add_shortcode('stumble','et_stumble'); function et_stumble($atts, $content = null){ do_action( 'et_do_legacy_shortcode' ); $output = ""; // phpcs:ignore WordPress.WP.EnqueuedResources.NonEnqueuedScript return $output; } add_shortcode('facebook','et_facebook'); function et_facebook($atts, $content = null){ do_action( 'et_do_legacy_shortcode' ); $output = "Share"; // phpcs:ignore WordPress.WP.EnqueuedResources.NonEnqueuedScript return $output; } add_shortcode('twitter','et_twitter'); function et_twitter($atts, $content = null){ do_action( 'et_do_legacy_shortcode' ); extract(shortcode_atts(array( "name" => 'name' ), $atts, 'twitter')); $output = ""; // phpcs:ignore WordPress.WP.EnqueuedResources.NonEnqueuedScript return $output; } add_shortcode('feedburner','et_feedburner'); function et_feedburner($atts, $content = null){ do_action( 'et_do_legacy_shortcode' ); extract(shortcode_atts(array( "name" => 'name' ), $atts, 'feedburner')); $output = " "; return $output; } add_shortcode('retweet','et_retweet'); function et_retweet($atts, $content = null){ do_action( 'et_do_legacy_shortcode' ); global $themename; $output = ""; // phpcs:ignore WordPress.WP.EnqueuedResources.NonEnqueuedScript return $output; } add_shortcode('protected','et_protected'); function et_protected($atts, $content = null){ do_action( 'et_do_legacy_shortcode' ); global $themename, $user_login; if ( is_user_logged_in() ) { $content = et_content_helper($content); $output = $content; } else { $scheme = apply_filters( 'et_forms_scheme', null ); $output = "
" . esc_html__('Member Login',$themename) . "

"; } return $output; } add_shortcode('box', 'et_box'); function et_box($atts, $content = null) { do_action( 'et_do_legacy_shortcode' ); extract(shortcode_atts(array( "type" => 'shadow', "id" => '', "class" => '' ), $atts, 'box')); $content = et_content_helper($content); $id = ($id !== '') ? " id='" . esc_attr( $id ) . "'" : ''; $class = ($class !== '') ? esc_attr( ' ' . $class ) : ''; $type = ($type !== '') ? esc_attr( 'et-' . $type ) : ''; $output = "
"; $output .= do_shortcode($content); $output .= "
"; return $output; } add_shortcode('tooltip', 'et_tooltip'); function et_tooltip($atts, $content = null) { do_action( 'et_do_legacy_shortcode' ); global $themename; extract(shortcode_atts(array( "text" => esc_html__( 'Add a Tooltip Text', $themename ), "id" => '', "class" => '' ), $atts, 'tooltip')); $content = et_content_helper($content); $id = ($id !== '') ? " id='" . esc_attr( $id ) . "'" : ''; $class = ($class !== '') ? esc_attr( ' ' . $class ) : ''; $output = "{$content}{$text}"; return $output; } add_shortcode('learn_more', 'et_learnmore'); function et_learnmore($atts, $content = null) { do_action( 'et_do_legacy_shortcode' ); global $themename; extract(shortcode_atts(array( "caption" => esc_html__( 'Click here to learn more', $themename ), "state" => 'close', "id" => '', "class" => '' ), $atts, 'learn_more')); $content = et_content_helper($content); $id = ($id !== '') ? " id='" . esc_attr( $id ) . "'" : ''; $class = ($class !== '') ? esc_attr( ' ' . $class ) : ''; $divClass = ($state === 'close') ? 'et-learn-more' : 'et-learn-more et-open'; $hClass = ($state === 'close') ? 'heading-more' : 'heading-more open'; $divClass .= ' clearfix'; $output = "

" . esc_html( $caption ) . "

{$content}
"; return $output; } add_shortcode('button', 'et_button'); function et_button($atts, $content = null) { do_action( 'et_do_legacy_shortcode' ); extract(shortcode_atts(array( "link" => "#", "color" => "blue", "type" => "small", "icon" => "download", "newwindow" => "no", "id" => '', "class" => '', "br" => 'no' ), $atts, 'button')); $output = ''; $target = ($newwindow === 'yes') ? ' target="_blank"' : ''; $content = et_content_helper($content); $id = ($id !== '') ? " id='" . esc_attr( $id ) . "'" : ''; if ($type === 'small') $output .= "{$content}"; if ($type === 'big') $output .= "{$content}"; if ($type === 'icon') $output .= "{$content}"; if ( $br === 'yes' ) $output .= '
'; return $output; } add_shortcode('slide', 'et_slide'); function et_slide($atts, $content = null) { do_action( 'et_do_legacy_shortcode' ); extract(shortcode_atts(array( "id" => '', "class" => '' ), $atts, 'slide')); $content = et_content_helper($content); $id = ($id !== '') ? " id='" . esc_attr( $id ) . "'" : ''; $class = ($class !== '') ? esc_attr( ' ' . $class ) : ''; $output = " {$content} "; return $output; } add_shortcode('tabs', 'et_tabs'); function et_tabs($atts, $content = null) { do_action( 'et_do_legacy_shortcode' ); extract(shortcode_atts(array( "fx" => 'fade', "auto" => 'no', "autospeed" => '5000', "id" => '', "slidertype" => 'top tabs', "class" => '' ), $atts, 'tabs')); $auto = ( $auto === 'no' ) ? 'false' : 'true'; $content = et_content_helper($content); $id = ( '' !== $id ) ? " id='" . esc_attr( $id ) . "'" : ''; $class = ($class !== '') ? " {$class}" : ''; $class .= " et_sliderfx_{$fx}" . " et_sliderauto_{$auto}" . " et_sliderauto_speed_{$autospeed}"; if ($slidertype === 'top tabs') { $class .= ' et_slidertype_top_tabs'; $output = "
{$content}
"; } elseif ($slidertype === 'left tabs') { $class .= ' et_slidertype_left_tabs clearfix'; $output = "
{$content}
"; } elseif ($slidertype === 'simple') { $class .= ' et_slidertype_simple'; $output = "
{$content}
"; } elseif ($slidertype === 'images') { $class .= ' et_slidertype_images'; $output = "
{$content}
"; } return $output; } add_shortcode('tabcontainer', 'et_tabcontainer'); function et_tabcontainer($atts, $content = null) { do_action( 'et_do_legacy_shortcode' ); $content = et_content_helper($content); $output = "
    {$content}
"; return $output; } add_shortcode('imagetabcontainer', 'et_imagetabcontainer'); function et_imagetabcontainer($atts, $content = null) { do_action( 'et_do_legacy_shortcode' ); global $themename; extract(shortcode_atts(array( "id" => '', "class" => '' ), $atts, 'imagetabcontainer')); $content = et_content_helper($content); $id = ($id !== '') ? " id='" . esc_attr( $id ) . "'" : ''; $class = ($class !== '') ? esc_attr( ' ' . $class ) : ''; $previous = esc_html__( 'Previous', $themename ); $next = esc_html__( 'Next', $themename ); $output = "
{$previous} {$content} {$next}
"; return $output; } add_shortcode('imagetabtext', 'et_imagetabtext'); function et_imagetabtext($atts, $content = null) { do_action( 'et_do_legacy_shortcode' ); $content = et_content_helper($content); $output = " {$content} "; return $output; } add_shortcode('tabtext', 'et_tabtext'); function et_tabtext($atts, $content = null) { do_action( 'et_do_legacy_shortcode' ); extract(shortcode_atts(array( "id" => '', "class" => '' ), $atts, 'tabtext')); $content = et_content_helper($content); $id = ($id !== '') ? " id='" . esc_attr( $id ) . "'" : ''; $class = ($class !== '') ? " class='" . esc_attr( $class ) . "'" : ''; $output = " {$content} "; return $output; } add_shortcode('tabcontent', 'et_tabcontent'); function et_tabcontent($atts, $content = null) { do_action( 'et_do_legacy_shortcode' ); extract(shortcode_atts(array( "id" => '', "class" => '' ), $atts, 'tabcontent')); $content = et_content_helper($content); $id = ($id !== '') ? " id='" . esc_attr( $id ) . "'" : ''; $class = ($class !== '') ? esc_attr( ' ' . $class ) : ''; $output = "
{$content}
"; return $output; } add_shortcode('tab', 'et_tab'); function et_tab($atts, $content = null) { do_action( 'et_do_legacy_shortcode' ); extract(shortcode_atts(array( "id" => '', "class" => '' ), $atts, 'tab')); $content = et_content_helper($content); $id = ($id !== '') ? " id='" . esc_attr( $id ) . "'" : ''; $class = ($class !== '') ? esc_attr( ' ' . $class ) : ''; $output = " {$content} "; return $output; } add_shortcode('imagetab', 'et_imagetab'); function et_imagetab($atts, $content = null) { do_action( 'et_do_legacy_shortcode' ); extract(shortcode_atts(array( "width" => '', "height" => '', "id" => '', "class" => '', "link" => '', "newwindow" => '', "alt" => '' ), $atts, 'imagetab')); $target = '' !== $newwindow ? ' target="_blank"' : ''; $content = et_content_helper($content); $id = ($id !== '') ? " id='" . esc_attr( $id ) . "'" : ''; $class = ($class !== '') ? esc_attr( ' ' . $class ) : ''; $output = " " . ( '' !== $link ? "" : '' ) . et_new_thumb_resize( $content, $width, $height, $alt ) . " " . ( '' !== $link ? '' : '' ) . ""; return $output; } add_shortcode('author', 'et_author'); function et_author($atts, $content = null) { do_action( 'et_do_legacy_shortcode' ); extract(shortcode_atts(array( 'id' => '', 'class' => '', 'name' => '', 'description' => '' ), $atts, 'author')); $content = et_content_helper($content); $id = ($id !== '') ? " id='" . esc_attr( $id ) . "'" : ''; $class = ($class !== '') ? esc_attr( ' ' . $class ) : ''; $output = "
{$content}
"; return $output; } add_shortcode('author_image', 'et_author_image'); function et_author_image($atts, $content = null) { do_action( 'et_do_legacy_shortcode' ); extract(shortcode_atts(array( "timthumb" => 'on' ), $atts, 'author_image')); $content = et_content_helper($content); $src = ($timthumb === 'on') ? ( et_new_thumb_resize( $content, 60, 60, '', $forstyle = true ) ) : $content; $output = "
"; return $output; } add_shortcode('author_info', 'et_author_info'); function et_author_info($atts, $content = null) { do_action( 'et_do_legacy_shortcode' ); $content = et_content_helper($content); $output = "
{$content}
"; return $output; } add_shortcode('pricing_table', 'et_pricing_table'); function et_pricing_table($atts, $content = null) { do_action( 'et_do_legacy_shortcode' ); $content = et_content_helper($content); $output = "
{$content}
"; return $output; } add_shortcode('custom_list', 'et_custom_list'); function et_custom_list($atts, $content = null) { do_action( 'et_do_legacy_shortcode' ); extract(shortcode_atts(array( "type" => 'checkmark' ), $atts, 'custom_list')); $content = et_content_helper($content); $type = ( $type !== 'checkmark' ) ? ' etlist-' . esc_attr( $type ) : ''; $output = "
{$content}
"; return $output; } add_shortcode('pricing', 'et_pricing'); function et_pricing($atts, $content = null) { do_action( 'et_do_legacy_shortcode' ); global $themename; extract(shortcode_atts(array( "price" => '19.95', "title" => "professional", "desc" => "", "url" => "#", "window" => "", "moretext" => esc_html__( 'Join Now', $themename ), "type" => "small", "currency" => "$" ), $atts, 'pricing')); $content = et_content_helper($content); $separator_sign = ( strpos($price, '.') !== false ) ? '.' : ','; $price_array = explode($separator_sign, $price); $link_target = ( $window === 'new' ) ? ' target="_blank"' : ''; $type = ( $type === 'big' ) ? ' pricing-big' : ''; $output = "

" . esc_html( $title ) . "

" . esc_html( $desc ) . "

    {$content}
" . esc_html( $currency ) . "" . esc_html( $price_array[0] ) . "" . esc_html( $price_array[1] ) . "
" . esc_html( $moretext ) . "
"; return $output; } add_shortcode('feature', 'et_pricing_feature'); function et_pricing_feature($atts, $content = null) { do_action( 'et_do_legacy_shortcode' ); extract(shortcode_atts(array( "checkmark" => 'normal' ), $atts, 'feature')); $content = et_content_helper($content); $class = ( $checkmark === 'x' ) ? ' class="x-mark"' : ''; $output = "{$content}"; return $output; } add_shortcode('dropcap', 'et_dropcap'); function et_dropcap($atts, $content = null) { do_action( 'et_do_legacy_shortcode' ); extract(shortcode_atts(array( 'style' => '', 'id' => '', 'class' => '' ), $atts, 'dropcap')); $content = et_content_helper($content); $style = ( $style !== '' ) ? ' style="' . esc_attr( $style ) . '"' : ''; $id = ($id !== '') ? " id='" . esc_attr( $id ) . "'" : ''; $class = ($class !== '') ? esc_attr( ' ' . $class ) : ''; $output = "{$content}"; return $output; } add_shortcode('testimonial', 'et_testimonial'); function et_testimonial($atts, $content = null) { do_action( 'et_do_legacy_shortcode' ); extract(shortcode_atts(array( 'style' => '', 'id' => '', 'class' => '', 'author' => '', 'company' => '', 'image' => '', 'timthumb' => 'on' ), $atts, 'testimonial')); $content = et_content_helper($content); $style = ( $style !== '' ) ? ' style="' . esc_attr( $style ) . '"' : ''; $id = ($id !== '') ? " id='" . esc_attr( $id ) . "'" : ''; $class = ($class !== '') ? esc_attr( ' ' . $class ) : ''; $orig_name = $author; $author = ( $author !== '' ) ? "" . esc_html( $author ) . "" : ''; $company = ( $company !== '' ) ? "" . esc_html( $company ) . "" : ''; $image_markup = ''; if ( $image !== '' ) { $image = ( $timthumb === 'on' ) ? et_new_thumb_resize( $image, 60, 60, '', $forstyle = true ) : $image; $image_markup = "
" . esc_attr( $orig_name ) . "
"; } $output = "
{$image_markup} {$author} {$company}
{$content}
"; return $output; } add_shortcode('quote','et_quote'); function et_quote( $atts, $content = null ) { do_action( 'et_do_legacy_shortcode' ); if ( function_exists( 'bbpress' ) && function_exists( 'gdbbx_render_the_bbcode' ) ) { // compat for gdbbpress tools plugin. if ( isset( $atts['quote'] ) && ! empty( $atts['quote'] ) ) { $output = gdbbx_render_the_bbcode( 'quote', $atts, $content ); if ( $output !== false ) { return $output; } } } extract(shortcode_atts(array( 'style' => '', 'id' => '', 'class' => '', 'type' => 'normal' ), $atts, 'quote')); $content = et_content_helper($content); $style = ( $style !== '' ) ? ' style="' . esc_attr( $style ) . '"' : ''; $id = ($id !== '') ? " id='" . esc_attr( $id ) . "'" : ''; $class = ($class !== '') ? esc_attr( ' ' . $class ) : ''; if ( $type === 'center' ) $class = ' quote-center'; $output = "
{$content} " . ( 'center' === $type ? "" : '' ) . "
"; return $output; } add_shortcode('one_half', 'et_columns'); add_shortcode('one_half_last', 'et_columns'); add_shortcode('one_third', 'et_columns'); add_shortcode('one_third_last', 'et_columns'); add_shortcode('one_fourth', 'et_columns'); add_shortcode('one_fourth_last', 'et_columns'); add_shortcode('two_third', 'et_columns'); add_shortcode('two_third_last', 'et_columns'); add_shortcode('three_fourth', 'et_columns'); add_shortcode('three_fourth_last', 'et_columns'); function et_columns($atts, $content = null, $name='') { do_action( 'et_do_legacy_shortcode' ); extract(shortcode_atts(array( "id" => '', "class" => '' ), $atts, $name)); $content = et_content_helper($content); $id = ($id !== '') ? " id='" . esc_attr( $id ) . "'" : ''; $pos = strpos($name,'_last'); if($pos !== false) $name = str_replace('_last',' et_column_last',$name); $output = " {$content} "; if($pos !== false) $output .= "
"; return $output; } if ( ! function_exists( 'et_paragraph_br_fix' ) ){ function et_paragraph_br_fix($content,$paragraph_tag=false,$br_tag=false){ $content = preg_replace('#^<\/p>|^
|

$#', '', $content); $content = preg_replace('#
#', '', $content); if ( $paragraph_tag ) $content = preg_replace('#

|

#', '', $content); return trim($content); } } if ( ! function_exists( 'et_content_helper' ) ){ function et_content_helper($content,$paragraph_tag=false,$br_tag=false){ return et_paragraph_br_fix( do_shortcode(shortcode_unautop($content)), $paragraph_tag, $br_tag ); } } // Hook later into the request lifecycle so that we can check Gutenberg status. // 'wp' is not run on edit pages so we use the next best thing. add_action( 'admin_head', 'et_init_shortcodes' ); function et_init_shortcodes() { $is_edit_url = in_array( basename( $_SERVER['PHP_SELF'] ), array( 'post-new.php', 'page-new.php', 'post.php', 'page.php' ) ); if ( ! is_admin() || ! $is_edit_url || ! current_user_can( 'edit_posts' ) || ! current_user_can( 'edit_pages' ) || et_core_is_gutenberg_enabled() ) { return; } add_filter('mce_buttons', 'et_filter_mce_button'); add_filter('mce_external_plugins', 'et_filter_mce_plugin'); add_action('edit_form_advanced', 'et_advanced_buttons'); add_action('edit_page_form', 'et_advanced_buttons'); et_add_simple_buttons(); } function et_filter_mce_button($buttons) { array_push( $buttons, '|', 'et_learn_more', 'et_box', 'et_button', 'et_tabs', 'et_author' ); return $buttons; } function et_filter_mce_plugin($plugins) { $suffix = defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ? '' : '.min'; $plugins['et_quicktags'] = get_template_directory_uri(). "/epanel/shortcodes/js/editor_plugin{$suffix}.js"; return $plugins; } function et_advanced_buttons(){ global $themename; ?> { const deferred = $.ajax({ type: method, url: config.api, dataType: 'json', data, ...options, }); return Promise.resolve(deferred.promise()) .then(response => { if (false === response.success) { return Promise.reject(response.data || {}); } return Promise.resolve(response.data); }); }; export const post = (data, options = {}) => request('POST', data, options); theme-options-library/app/lib/config.js000064400000000055152214575740014146 0ustar00export default window.et_theme_options_data; theme-options-library/app/lib/theme-options-utils.js000064400000003425152214575740016636 0ustar00import { noop, trim, set, } from 'lodash'; import config from '@common-ui/lib/config'; import { post } from '@common-ui/lib/request'; import { saveToCloudPure } from '@cloud/app/lib/api'; /* eslint-disable import/prefer-default-export */ const saveThemeOptionsToLocal = (item, content) => { const { item_name, selected_cats, new_category_name, new_tag_name, builtFor, } = item; const { nonces, post_types, } = config; return post({ action: 'et_library_save_item', et_library_save_item_nonce: nonces.et_library_save_item, post_type: post_types.et_theme_options, item_name, selected_cats, new_category_name, new_tag_name, content, builtFor, }); }; // eslint-disable-next-line arrow-parens const sanitizeCommaSeparatedTaxNames = (taxName) => { const categoryName = 'string' === typeof taxName && taxName ? taxName : ''; return categoryName.split(',').map(newCategory => trim(newCategory)); }; const saveThemeOptionsToCloud = async (obj, content) => { const { builtFor, item_name, new_category_name, new_tag_name, providedBaseUrl, selected_cats, selected_tags, } = obj; const newCategories = sanitizeCommaSeparatedTaxNames(new_category_name); const newTags = sanitizeCommaSeparatedTaxNames(new_tag_name); const termsData = { tags: [...selected_tags, ...newTags], categories: [...selected_cats, ...newCategories], }; const newCloudItem = { title: item_name, content, status: 'publish', }; if (builtFor) { set(newCloudItem, 'meta._built_for', builtFor); } return saveToCloudPure('theme-options', newCloudItem, termsData, noop, 0, providedBaseUrl); }; /* eslint-enable */ export { saveThemeOptionsToCloud, saveThemeOptionsToLocal, }; theme-options-library/app/lib/theme-options-library.js000064400000000530152214575740017134 0ustar00// Set global variable to detect new library item creation. window.themeOptionsLibraryItemsLoaded = {}; export const setThemeOptionsLibraryItemsLoaded = (context, flag) => { window.themeOptionsLibraryItemsLoaded = { [context] : flag, }; }; export const setThemeOptionsLibraryToken = (token) => { window.globalCloudToken = token; }; theme-options-library/app/lib/i18n.js000064400000001033152214575740013455 0ustar00// External dependencies. import { get } from 'lodash'; // Internal dependencies. import config from './config'; const i18n = (context, key, ...args) => { const value = get(context, key, ''); if ('production' !== process.env.NODE_ENV && '' === value) { console.error('Failed to find i18n string:', key); } if (args.length > 0) { const sprintf = get(window, 'wp.i18n.sprintf'); return sprintf(value, ...args); } return value; }; export default (path, key, ...args) => i18n(config.i18n, [path, key], ...args); theme-options-library/app/store/theme-options-library/actions.js000064400000000670152214575740021167 0ustar00async function importThemeOptions({ themeOptionsLibApi, props: { item } }) { const exportedContent = item; exportedContent.context = 'epanel'; const file = new File([JSON.stringify(exportedContent)], 'theme_option.json', { type: 'application/json' }); await themeOptionsLibApi.importContent(file); window.location = window.location.href.replace(/reset\=true\&|\&reset\=true/, ''); }; export default { importThemeOptions, }; theme-options-library/app/store/theme-options-library/sequences.js000064400000016046152214575740021526 0ustar00// External dependencies. import { props, sequence, state } from 'cerebral'; import { set, when } from 'cerebral/factories'; import { get as lodashGet } from 'lodash'; // Internal dependencies. import { setThemeOptionsLibraryItemsLoaded, setThemeOptionsLibraryToken } from '../../lib/theme-options-library'; import actions from './actions'; import { PORTABILITY_STATE_EXPORT_THEME_OPTIONS, PORTABILITY_STATE_IMPORT_THEME_OPTIONS, } from '../../lib/constants'; const closePortability = sequence('Close Theme Options portability modal', [ set(state`showPortability`, false), set(state`importError`, false), ]); const closeThemeOptionApp = sequence('Close theme options library app', [ set(state`modalType`, null), ]); const loadItems = sequence('Load theme options library items', [ /* eslint-disable arrow-body-style, arrow-parens */ ({ get, themeOptionsLibApi, path }) => { const context = get(state`context`); return themeOptionsLibApi .getItems(context) .then(response => path.success({ items: response, })) .catch(() => path.error()); }, { success: [ set(state`items`, props`items`), set(state`itemsLoadedAndCached`, true), ({ get }) => { setThemeOptionsLibraryItemsLoaded(get(state`context`), true); }, ], error: [], }, /* eslint-enable */ ]); const updateLocalFilters = sequence('Update Local Filters', [ ({ themeOptionsLibApi, path, props: { payload } }) => themeOptionsLibApi .updateFilters(payload) .then((response => path.success(response))) .catch(() => path.error()), { success: [Promise.resolve(props`response`)], error: [], }, ]); const getExportedItem = sequence('Get the exported theme option content', [ ({ themeOptionsLibApi, path, props: { id } }) => themeOptionsLibApi .getItemContent(id) .then(response => path.success(response)) .catch(() => path.error()), { success: [Promise.resolve(props`response`)], error: [], }, ]); const updateItem = sequence('Update theme options library item', [ ({ themeOptionsLibApi, get, path }) => { const payload = get(props`payload`); return themeOptionsLibApi.updateItem(payload) .then(response => path.success({ updatedItem: { success: true, data: response, }, })) .catch(() => path.error()); }, { success: [Promise.resolve(props`updatedItem`)], error: [], }, ]); const setCloudToken = sequence('Set cloudToken', [ ({ get }) => { setThemeOptionsLibraryToken(get(props`cloudToken`)); }, ]); const cacheCloudToken = sequence('Retrieve saved Cloud Access token and save to state', [ ({ themeOptionsLibApi, path }) => { return themeOptionsLibApi.getCloudToken() .then(cloudTokenData => { return path.success({cloudToken: cloudTokenData.accessToken}); }) .catch(() => path.error()); }, { success: [ setCloudToken, ], error: [], }, ]); const setLibraryContext = sequence('Set Theme Options library context', [ set(state`context`, props`context`), ]); const useThemeOptions = sequence('Insert theme options into a field', [ when(props`item`, item => isNaN(parseInt(item))), { true: [ ({ props: contextProps }) => ({ item: JSON.parse(contextProps.item) }), actions.importThemeOptions, ], false: [ async ({ props: { item }, themeOptionsLibApi }) => { const data = await themeOptionsLibApi.getItemsContent(item); const { exported } = data; return { item: exported }; }, actions.importThemeOptions, ], }, ]); const openPortablity = sequence('Open theme options library modal', [ ({ store, props: { data } }) => { const portabilityState = lodashGet(data, 'action'); if (PORTABILITY_STATE_EXPORT_THEME_OPTIONS === portabilityState) { const itemLocation = lodashGet(data, 'item.item_location'); const exportItemId = lodashGet(data, 'item.id'); store.set(state`portability.export.id`, exportItemId); if ('cloud' === itemLocation) { const exportItemContent = lodashGet(data, 'content'); store.set(state`portability.export.content`, exportItemContent); store.set(state`portability.export.item_location`, itemLocation); } } if ([PORTABILITY_STATE_IMPORT_THEME_OPTIONS, PORTABILITY_STATE_EXPORT_THEME_OPTIONS].includes(portabilityState)) { store.set(state`portability.state`, portabilityState); } else { store.set(state`portability.state`, PORTABILITY_STATE_IMPORT_THEME_OPTIONS); } }, set(state`showPortability`, true), ]); const setShowLibrary = sequence('Set theme options library', [ set(state`showLibrary`, props`toggle`), ]); const exportThemeOptions = sequence('Export theme option', [ ({ themeOptionsLibApi, path, props: { id, cloudContent } }) => themeOptionsLibApi.exportItem(id, cloudContent) .then(() => path.success()) .catch(() => path.error()), { success: [ ({ themeOptionsLibApi, props: { id, fileName } }) => { const downloadURI = themeOptionsLibApi.downloadExportFile(id, fileName); window.location.assign(downloadURI); window.ETCloudApp.emitSignal({ signal: 'finishDownload', data: {}, }); }, closePortability, ], error: [], }, ]); const saveThemeOptions = sequence('Save theme options', [ async ({ themeOptionsLibApi }) => { await themeOptionsLibApi.saveTempOptions(); const exportRestData = await themeOptionsLibApi.export(); return { timestamp: exportRestData.timestamp }; }, async ({ themeOptionsLibApi, props: contextProps }) => { const response = await themeOptionsLibApi.download(contextProps.timestamp); const exportedContent = await response.json(); return { content: JSON.stringify(exportedContent) }; }, when(props`item.cloud`, cloud => 'on' === cloud), { true: [ ({ themeOptionsLibApi, props: contextProps }) => { const { item, content } = contextProps; return themeOptionsLibApi.saveThemeOptionsToCloud(item, content); }, ], false: [ ({ themeOptionsLibApi, props: contextProps }) => { const { item, content } = contextProps; return themeOptionsLibApi.saveThemeOptionsToLocal(item, content); }, ], }, ({ themeOptionsLibApi }) => themeOptionsLibApi.deleteTempOptions(), ]); const toggleLibraryItemLocation = sequence('Remove local item from WPDB', [ /* eslint-disable-next-line arrow-body-style */ ({ themeOptionsLibApi, path, props: { id } }) => { return themeOptionsLibApi.removeLocalItem(id) .then((response => path.success(response))) .catch(() => path.error()); }, { success: [Promise.resolve(props`response`)], error: [], }, /* eslint-enable arrow-body-style */ ]); export { closePortability, closeThemeOptionApp, exportThemeOptions, cacheCloudToken, getExportedItem, loadItems, openPortablity, setCloudToken, setLibraryContext, setShowLibrary, toggleLibraryItemLocation, updateItem, updateLocalFilters, useThemeOptions, saveThemeOptions, }; theme-options-library/app/store/theme-options-library/module.js000064400000001122152214575740021005 0ustar00import { state } from 'cerebral'; import * as sequences from './sequences'; import themeOptionsLibApi from './providers'; import { PORTABILITY_STATE_DEFAULT } from '../../lib/constants'; export default initialState => ( { state: { ...initialState, showSaveModal: get => 'save' === get(state`modalType`), showLibraryModal: get => 'add' === get(state`modalType`), itemsLoadedAndCached: false, portability: { state: PORTABILITY_STATE_DEFAULT, export: {}, }, }, providers: { themeOptionsLibApi, }, sequences, } ); theme-options-library/app/store/theme-options-library/providers.js000064400000013220152214575740021537 0ustar00// Internal dependencies. import { noop } from 'lodash'; // Internal dependencies. import { post } from '../../lib/request'; import config from '../../lib/config'; import { saveToCloudPure } from '@cloud/app/lib/api'; export default { /** * Gets the Theme Options library items. * * @param {string} context Context (a.k.a Item type). * * @returns {Array} Resolved value from promise. Array of objects. */ getItems(context) { /* eslint-disable key-spacing */ return post({ action: 'et_theme_options_library_get_items', context, nonce: config.nonces.et_theme_options_library_get_items, }); /* eslint-enable key-spacing */ }, getItemsContent(item) { return post({ action: 'et_theme_options_library_get_item_content', et_theme_option_id: item, nonce: config.nonces.et_theme_options_library_get_item_content, }); }, importContent(file) { const formData = new FormData(); formData.append('action', 'et_core_portability_import'); formData.append('file', file, 'theme-options.json'); formData.append('context', 'epanel'); formData.append('nonce', config.nonces.et_core_portability_import); return post(formData, { contentType: false, processData: false, }); }, exportItem(id, cloudContent) { return post({ action: 'et_theme_options_library_export_item', nonce: config.nonces.et_theme_options_library_export_item, id, cloudContent, }); }, downloadExportFile(id, fileName) { const args = { action: 'et_theme_options_library_export_item_download', nonce: config.nonces.et_theme_options_library_export_item, fileName, id, }; return `${config.api}?${jQuery.param(args)}`; }, /** * Update Local Tags/Categories and return updated list. * * @param {object} payload Payload. * @returns {Array} Response. */ updateFilters(payload) { return post({ action: 'et_theme_options_library_update_terms', nonce: config.nonces.et_theme_options_library_update_terms, payload, }); }, /** * Update the theme options library item. * * @param {object} payload Updated item details. * @returns {Array} Resolved value from promise. Array of objects. */ updateItem(payload) { return post({ action : 'et_theme_options_library_update_item', nonce : config.nonces.et_theme_options_library_update_item, payload, }); }, /* * Gets the Theme Options library item content. * * @returns {Array} Resolved value from promise. Array of objects. */ getItemContent(id) { return post({ action: 'et_theme_options_library_get_item_content', nonce: config.nonces.et_theme_options_library_get_item_content, et_theme_option_id: id, }); }, /** * Retrieve Cloud Token. * * @returns {Array} Response with cloud token. */ getCloudToken() { return post({ action: 'et_theme_options_library_get_token', nonce : config.nonces.et_theme_options_library_get_token, }); }, /** * Remove local item. * * @param {int} id * @returns {Array} Response with cloud token. */ export() { return post({ action: 'et_core_portability_export', nonce: config.nonces.et_core_portability_export, context: 'epanel_temp', content: false, selection: false, timestamp: 0, page: 1, }); }, saveTempOptions() { let opsForm = jQuery('#main_options_form').formSerialize(); const nonce = `&_ajax_nonce=${config.nonces.et_core_save_theme_options}`; opsForm += `${nonce}&action=save_epanel_temp`; return post(opsForm); }, download(timestamp) { let downloadURL = config.epanel_save_url; const query = { timestamp, name: '', }; Object.entries(query).forEach(([key, value]) => { if (value) { downloadURL = `${downloadURL}&${key}=${value}`; } }); return fetch(downloadURL); }, saveThemeOptionsToLocal(item, content) { const { item_name, selected_cats, selected_tags, new_category_name, new_tag_name, } = item; return post({ action: 'et_library_save_item', et_library_save_item_nonce: config.nonces.et_library_save_item, post_type: config.post_types.et_theme_options, item_name, selected_cats, selected_tags, new_category_name, new_tag_name, content, }); }, saveThemeOptionsToCloud(item, content) { const { new_category_name, new_tag_name, selected_tags, selected_cats, item_name, providedBaseUrl, } = item; const newCategories = new_category_name.split(',').map(newCategory => newCategory.trim()); const newTags = new_tag_name.split(',').map(newTag => newTag.trim()); const termsData = { tags: [...selected_tags, ...newTags], categories: [...selected_cats, ...newCategories], }; const newCloudItem = { title: item_name, content, status: 'publish', }; return saveToCloudPure('theme-options', newCloudItem, termsData, noop, 0, providedBaseUrl); }, deleteTempOptions() { return post({ action: 'et_theme_options_delete_temp_options', et_theme_options_delete_temp_options_nonce: config.nonces.et_theme_options_delete_temp_options, }); }, removeLocalItem(id) { /* eslint-disable key-spacing */ return post({ action : 'et_theme_options_toggle_cloud_status', nonce : config.nonces.et_theme_options_library_toggle_item_location, et_theme_option_id : id, }); /* eslint-enable */ }, }; theme-options-library/app/store/index.js000064400000000202152214575740014370 0ustar00// Internal dependencies. import themeOptionsLibrary from './theme-options-library/module'; export default themeOptionsLibrary; theme-options-library/app/boot.js000064400000003565152214575740013107 0ustar00// External Dependencies import React from 'react'; import { render, unmountComponentAtNode } from 'react-dom'; import $ from 'jquery'; import App from 'cerebral'; // import Devtools from 'cerebral/devtools'; import { Container } from '@cerebral/react'; // Internal Dependencies import store from './store/index'; import ThemeOptionsApp from './components/App'; const initialState = { content: '', context: 'theme-options', items: [], showLibrary: false, showPortability: false, showSave: false, }; const unMountCommonLibraryApp = () => { const container = document.getElementById('et-theme-options-container'); if (container) { unmountComponentAtNode(container); container.remove(); } } // Note: Hyphen is used to stay consistent w/ the Cloud context. $(window).on(`et_theme-options_container_ready`, (event, preferences) => { let devtools = null; /*if (process.env.NODE_ENV === 'development') { devtools = Devtools({ host: '127.0.0.1:22722', reconnect: false, bigComponentsWarning: 15, }); }*/ const modalType = preferences?.modalType || ''; const state = { ...initialState, modalType }; state.sidebarLabel = preferences?.sidebarLabel || ''; state.builtFor = preferences?.builtFor ?? 'Divi'; const app = App(store(state), { devtools, returnSequencePromise: true, }); const { containerId = 'et-theme-options-container', containerClass = 'et-theme-options-container' } = preferences; $(document.body).first().append(`
`); render( , document.getElementById(containerId) ); }); $(window).on('et_theme-options_container_close', () => { unMountCommonLibraryApp(); }); theme-options-library/post/type/ThemeOptions.php000064400000005243152214575740016116 0ustar00 true, 'capability_type' => 'post', 'has_archive' => false, 'hierarchical' => false, 'map_meta_cap' => true, 'public' => false, 'publicly_queryable' => false, 'query_var' => false, 'show_in_menu' => false, 'show_ui' => false, 'supports' => array( 'editor', 'excerpt', 'revisions', 'thumbnail', 'title', ), 'taxonomies' => array( 'layout_category', 'layout_tag', ), ); } /** * {@inheritDoc} */ protected function _get_labels() { return array( 'add_new' => esc_html_x( 'Add New', 'Layout', 'et_builder' ), 'add_new_item' => esc_html__( 'Add New Theme Options', 'et_builder' ), 'all_items' => esc_html__( 'All Theme Options', 'et_builder' ), 'edit_item' => esc_html__( 'Edit Theme Options', 'et_builder' ), 'name' => esc_html__( 'Theme Options', 'et_builder' ), 'new_item' => esc_html__( 'New Theme Options', 'et_builder' ), 'not_found' => esc_html__( 'Nothing found', 'et_builder' ), 'not_found_in_trash' => esc_html__( 'Nothing found in Trash', 'et_builder' ), 'parent_item_colon' => '', 'search_items' => esc_html__( 'Search Theme Options', 'et_builder' ), 'singular_name' => esc_html__( 'Theme Options', 'et_builder' ), 'view_item' => esc_html__( 'View Theme Options', 'et_builder' ), ); } /** * Get the class instance. * * @param string $type See {@see self::$wp_type} for accepted values. Default is 'cpt'. * @param string $name The name/slug of the post object. Default is {@see self::$name}. * * @return self|null */ public static function instance( $type = 'cpt', $name = ET_THEME_OPTIONS_POST_TYPE ) { $instance = parent::instance( $type, $name ); if ( ! $instance ) { $instance = new self(); } return $instance; } /** * Returns TRUE when a layout is Favorite. * * @param string $post_id Post ID. * * @return bool */ public function is_favorite( $post_id ) { return 'favorite' === get_post_meta( $post_id, 'favorite_status', true ); } } theme-options-library/theme-options-library-local/ThemeOptionsLibraryLocal.php000064400000013351152214575740023774 0ustar00post_type = ET_THEME_OPTIONS_POST_TYPE; $this->exceptional_processes = array( 'duplicate', 'duplicate_and_delete', ); } /** * Gets the library items. * * @param string $item_type Item type. * @return array */ public function get_library_items( $item_type ) { $_ = ET_Core_Data_Utils::instance(); $theme_options_items = ET_Post_Type_Theme_Options::instance(); $theme_options_tags = ET_Builder_Post_Taxonomy_LayoutTag::instance(); $theme_options_categories = ET_Builder_Post_Taxonomy_LayoutCategory::instance(); $item_categories = []; $item_tags = []; $items = []; $index = 0; $query_posts = $theme_options_items ->query() ->run( array( 'post_status' => array( 'publish', 'trash' ), 'orderby' => 'name', 'fields' => 'ids', ) ); $post_ids = is_array( $query_posts ) ? $query_posts : array( $query_posts ); foreach ( $post_ids as $post_id ) { $item = new stdClass(); $post = get_post( $post_id ); $item->id = $post->ID; $item->index = $index; $item->date = $post->post_date; $title = html_entity_decode( $post->post_title ); // check if current user can edit library item. $can_edit_post = current_user_can( 'edit_post', $item->id ); if ( $title ) { // Remove periods since we use dot notation to retrieve translation. $title = str_replace( '.', '', $title ); $item->name = et_core_intentionally_unescaped( $title, 'react_jsx' ); } $built_for = get_post_meta( $item->id, '_built_for', true ); $item->slug = $post->post_name; $item->url = esc_url( wp_make_link_relative( get_permalink( $post ) ) ); $item->short_name = ''; $item->builtFor = $built_for && '' !== $built_for ? $built_for : 'Divi'; // phpcs:ignore ET.Sniffs.ValidVariableName.UsedPropertyNotSnakeCase -- This is valid format for the property in the Cloud App. $item->description = ''; $item->is_favorite = $theme_options_items->is_favorite( $item->id ); $item->isTrash = 'trash' === $post->post_status; // phpcs:ignore ET.Sniffs.ValidVariableName.UsedPropertyNotSnakeCase -- This is valid format for the property in the Cloud App. $item->isReadOnly = ! $can_edit_post; // phpcs:ignore ET.Sniffs.ValidVariableName.UsedPropertyNotSnakeCase -- This is valid format for the property in the Cloud App. $item->categories = array(); $item->category_ids = array(); $item->tags = array(); $item->tag_ids = array(); $this->process_item_taxonomy( $post, $item, $index, $item_categories, $theme_options_categories->name, 'category' ); $this->process_item_taxonomy( $post, $item, $index, $item_tags, $theme_options_tags->name, 'tag' ); $items[] = $item; $index++; } return [ 'categories' => $this->get_processed_terms( $theme_options_categories->name ), 'tags' => $this->get_processed_terms( $theme_options_tags->name ), 'items' => $items, ]; } /** * Performs item exceptional updates. * * @param array $payload Payload. * @param array $updated_data Updated data. * * @since ?? * * @return array */ private function _perform_item_exceptional_updates( $payload, $updated_data ) { if ( empty( $payload['item_id'] ) || empty( $payload['update_details'] ) ) { return false; } $update_details = $payload['update_details']; if ( empty( $update_details['updateType'] ) ) { return false; } $item_id = absint( $payload['item_id'] ); $update_type = sanitize_text_field( $update_details['updateType'] ); $item_name = isset( $update_details['itemName'] ) ? sanitize_text_field( $update_details['itemName'] ) : ''; $et_builder_categories = ET_Builder_Post_Taxonomy_LayoutCategory::instance(); $et_builder_tags = ET_Builder_Post_Taxonomy_LayoutTag::instance(); switch ( $update_type ) { case 'duplicate': case 'duplicate_and_delete': if ( isset( $update_details['content'] ) ) { $content = $update_details['content']; } else { $content = get_the_content( null, false, $item_id ); } if ( is_array( $content ) ) { $content = wp_json_encode( $content ); } $new_item = array( 'post_title' => $item_name, 'post_content' => $content, 'post_status' => 'publish', 'post_type' => $this->post_type, 'tax_input' => array( $et_builder_categories->name => $updated_data['categories'], $et_builder_tags->name => $updated_data['tags'], ), ); $updated_data['newItem'] = wp_insert_post( $new_item ); break; } $updated_data['updateType'] = $update_type; return $updated_data; } /** * Updates the library item. * * @param array $payload Payload. * * @return array */ public function perform_item_update( $payload ) { $updated_data = $this->_perform_item_common_updates( $payload ); if ( ! empty( $this->exceptional_processes ) ) { $updated_data = $this->_perform_item_exceptional_updates( $payload, $updated_data ); } return $updated_data; } } theme-options-library/ThemeOptionsLibrary.php000064400000005214152214575740015473 0ustar00_instance_check(); $this->_register_cpt_and_taxonomies(); } /** * Dies if an instance already exists. */ protected function _instance_check() { if ( self::$_instance ) { et_error( 'Multiple instances are not allowed!' ); wp_die(); } } /** * Registers the Theme Options Library's custom post type and its taxonomies. */ protected function _register_cpt_and_taxonomies() { $files = [ ET_THEME_OPTIONS_DIR . 'post/type/ThemeOptions.php', ]; if ( ! $files ) { return; } foreach ( $files as $file ) { require_once $file; } $this->theme_options = ET_Post_Type_Theme_Options::instance(); $this->theme_options_categories = ET_Builder_Post_Taxonomy_LayoutCategory::instance(); $this->theme_options_tags = ET_Builder_Post_Taxonomy_LayoutTag::instance(); // We manually call register_all() now to ensure the CPT and taxonomies are registered // at exactly the same point during the request that they were in prior releases. ET_Builder_Post_Type_Layout::register_all( 'builder' ); } /** * Returns the ET_Builder_Theme_Options_Library instance. * * @return ET_Builder_Theme_Options_Library */ public static function instance() { if ( ! self::$_instance ) { self::$_instance = new self(); } return self::$_instance; } } ET_Builder_Theme_Options_Library::instance(); theme-options-library/theme-options-library-app.php000064400000012300152214575740016535 0ustar00 true, 'context' => 'epanel', 'name' => 'save', 'nonce' => wp_create_nonce( 'et_core_portability_export' ), ); $epanel_save_url = add_query_arg( $args, admin_url() ); // phpcs:disable WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned, WordPress.Arrays.MultipleStatementAlignment.LongIndexSpaceBeforeDoubleArrow -- Aligned manually. return [ 'i18n' => [ 'library' => require ET_CORE_PATH . '/i18n/library.php', 'epanel' => require ET_EPANEL_DIR . '/i18n/epanel.php', ], 'api' => admin_url( 'admin-ajax.php' ), 'capabilities' => isset( $role_capabilities[ $user_role ] ) ? $role_capabilities[ $user_role ] : array(), 'epanel_save_url' => $epanel_save_url, 'post_types' => [ 'et_theme_options' => ET_THEME_OPTIONS_POST_TYPE, ], 'nonces' => [ 'et_theme_options_library_get_items' => wp_create_nonce( 'et_theme_options_library_get_items' ), 'et_theme_options_library_update_terms' => wp_create_nonce( 'et_theme_options_library_update_terms' ), 'et_theme_options_library_get_item_content' => wp_create_nonce( 'et_theme_options_library_get_item_content' ), 'et_theme_options_library_import_item_content' => wp_create_nonce( 'et_theme_options_library_import_item_content' ), 'et_core_portability_import' => wp_create_nonce( 'et_core_portability_import' ), 'et_theme_options_library_update_item' => wp_create_nonce( 'et_theme_options_library_update_item' ), 'et_theme_options_library_export_item' => wp_create_nonce( 'et_theme_options_library_export_item' ), 'et_theme_options_library_get_token' => wp_create_nonce( 'et_theme_options_library_get_token' ), 'et_core_save_theme_options' => wp_create_nonce( 'et_core_save_theme_options' ), 'et_core_portability_export' => wp_create_nonce( 'et_core_portability_export' ), 'et_library_save_item' => wp_create_nonce( 'et_library_save_item' ), 'et_theme_options_delete_temp_options' => wp_create_nonce( 'et_theme_options_delete_temp_options' ), 'et_theme_options_library_toggle_item_location' => wp_create_nonce( 'et_theme_options_library_toggle_item_location' ), ], ]; // phpcs:enable } /** * Load the Cloud App scripts. * * @param string $enqueue_prod_scripts Flag to force Production scripts. * @param bool $skip_react_loading Flag to skip react loading. * * @return void */ public static function load_js( $enqueue_prod_scripts = true, $skip_react_loading = false ) { // phpcs:disable ET.Sniffs.ValidVariableName.VariableNotSnakeCase -- Following the pattern found in /cloud. $EPANEL_VERSION = et_get_theme_version(); $ET_DEBUG = defined( 'ET_DEBUG' ) && ET_DEBUG; $DEBUG = $ET_DEBUG; $home_url = wp_parse_url( get_site_url() ); $build_dir_uri = ET_EPANEL_URI . '/build'; $cache_buster = $DEBUG ? mt_rand() / mt_getrandmax() : $EPANEL_VERSION; // phpcs:ignore WordPress.WP.AlternativeFunctions.rand_mt_rand -- mt_rand() should do for cache busting. $asset_path = ET_EPANEL_DIR . '/build/et-theme-options-library-app.bundle.js'; if ( file_exists( $asset_path ) ) { wp_enqueue_style( 'et-theme-options-library-styles', "{$build_dir_uri}/et-theme-options-library-app.bundle.css", [], (string) $cache_buster ); } $BUNDLE_DEPS = [ 'jquery', 'react', 'react-dom', 'es6-promise', ]; if ( $DEBUG || $enqueue_prod_scripts || file_exists( $asset_path ) ) { $BUNDLE_URI = ! file_exists( $asset_path ) ? "{$home_url['scheme']}://{$home_url['host']}:31599/et-theme-options-library-app.bundle.js" : "{$build_dir_uri}/et-theme-options-library-app.bundle.js"; // Skip the React loading if we already have React ( Gutenberg editor for example ) to avoid conflicts. if ( ! $skip_react_loading ) { if ( function_exists( 'et_fb_enqueue_react' ) ) { et_fb_enqueue_react(); } } wp_enqueue_script( 'et-theme-options-library-app', $BUNDLE_URI, $BUNDLE_DEPS, (string) $cache_buster, true ); wp_localize_script( 'et-theme-options-library-app', 'et_theme_options_data', self::get_cloud_helpers() ); } // phpcs:enable } } ET_Theme_Options_Library_App::instance(); theme-options-library/theme-options.php000064400000001363152214575740014324 0ustar00get_library_items( $context ); wp_send_json_success( $data ); } add_action( 'wp_ajax_et_theme_options_library_get_items', 'et_theme_options_library_get_items' ); /** * Update Terms. * * @return void */ function et_theme_options_library_update_terms() { et_core_security_check( 'manage_categories', 'et_theme_options_library_update_terms', 'nonce' ); $payload = isset( $_POST['payload'] ) ? (array) $_POST['payload'] : array(); // phpcs:ignore ET.Sniffs.ValidatedSanitizedInput -- $_POST['payload'] is an array, it's value sanitization is done at the time of accessing value. if ( empty( $payload ) ) { wp_send_json_error( 'Payload is empty.' ); } $item_library_local = et_pb_theme_options_library_local(); $response = $item_library_local->perform_terms_update( $payload ); wp_send_json_success( $response ); } add_action( 'wp_ajax_et_theme_options_library_update_terms', 'et_theme_options_library_update_terms' ); /** * Export the Theme Options library item. * This function only retrieves the data. * All the permissions checks should be performed at the top level function which calls this one. * * @since 4.19.0 * * @param int $id Item ID. * @param array $cloud_content Optional cloud content. * * @return array */ function et_theme_options_library_export_item_data( $id, $cloud_content ) { if ( empty( $cloud_content ) ) { if ( empty( $id ) ) { return false; } $id = absint( $id ); $post = get_post( $id ); $export_content = $post->post_content; $export_content = json_decode( $export_content ); } else { $export_content = $cloud_content; } if ( empty( $export_content ) ) { return; } $transient = 'et_theme_options_export_' . get_current_user_id() . '_' . $id; set_transient( $transient, $export_content, 60 * 60 * 24 ); return $export_content; } /** * Export Theme options Library item. * * @return void */ function et_theme_options_library_export_item() { et_core_security_check( et_core_portability_cap( 'epanel' ), 'et_theme_options_library_export_item', 'nonce' ); $post_id = isset( $_POST['id'] ) ? absint( $_POST['id'] ) : 0; $cloud_content = isset( $_POST['cloudContent'] ) ? $_POST['cloudContent'] : ''; // phpcs:ignore ET.Sniffs.ValidatedSanitizedInput -- $_POST['cloudContent'] is an array, it's value sanitization is done at the time of accessing value. $post_type = get_post_type( $post_id ); // When exporting cloud content this check doesn't make sense as we already have data. if ( empty( $cloud_content ) && ( ! current_user_can( 'edit_post', $post_id ) || ET_THEME_OPTIONS_POST_TYPE !== $post_type ) ) { wp_send_json_error( 'You do not have permission.' ); } $response = et_theme_options_library_export_item_data( $post_id, $cloud_content ); if ( ! $response ) { wp_send_json_error( 'Error: Wrong data provided.' ); } wp_send_json_success( $response ); } add_action( 'wp_ajax_et_theme_options_library_export_item', 'et_theme_options_library_export_item' ); /** * Download exported Theme options Library item. * * @return void */ function et_theme_options_library_export_item_download() { et_core_security_check( et_core_portability_cap( 'epanel' ), 'et_theme_options_library_export_item', 'nonce', '_GET' ); $id = ! empty( $_GET['id'] ) ? absint( $_GET['id'] ) : 0; $file_name = empty( $_GET['fileName'] ) ? 'Theme Options' : sanitize_file_name( $_GET['fileName'] ); header( 'Content-Description: File Transfer' ); header( 'Content-Disposition: attachment; filename="' . $file_name . '.json"' ); header( 'Content-Type: application/json' ); header( 'Pragma: no-cache' ); $transient = 'et_theme_options_export_' . get_current_user_id() . '_' . $id; $export_content = get_transient( $transient ); delete_transient( $transient ); echo wp_json_encode( $export_content ); wp_die(); } add_action( 'wp_ajax_et_theme_options_library_export_item_download', 'et_theme_options_library_export_item_download' ); /** * Update theme options Library item. * * @return void */ function et_theme_options_library_update_item() { et_core_security_check( et_core_portability_cap( 'epanel' ), 'et_theme_options_library_update_item', 'nonce' ); $payload = isset( $_POST['payload'] ) ? $_POST['payload'] : array(); // phpcs:ignore ET.Sniffs.ValidatedSanitizedInput -- $_POST['payload'] is an array, it's value sanitization is done at the time of accessing value. if ( empty( $payload ) ) { wp_send_json_error( 'Payload is empty.' ); } $item_library_local = et_pb_theme_options_library_local(); $response = $item_library_local->perform_item_update( $payload ); if ( ! $response ) { wp_send_json_error( 'Error: Wrong data provided.' ); } wp_send_json_success( $response ); } add_action( 'wp_ajax_et_theme_options_library_update_item', 'et_theme_options_library_update_item' ); /** * Get cloud access token. * * @return void */ function et_theme_options_library_get_token() { et_core_security_check( et_core_portability_cap( 'epanel' ), 'et_theme_options_library_get_token', 'nonce' ); wp_send_json_success( array( 'accessToken' => get_transient( 'et_cloud_access_token' ) ) ); } add_action( 'wp_ajax_et_theme_options_library_get_token', 'et_theme_options_library_get_token' ); /** * Get Theme options Library item. * * @since ?? * Retrieves theme options library item content. * * @return void */ function et_theme_options_library_get_item_content() { et_core_security_check( et_core_portability_cap( 'epanel' ), 'et_theme_options_library_get_item_content', 'nonce' ); $id = isset( $_POST['et_theme_option_id'] ) ? (int) sanitize_text_field( $_POST['et_theme_option_id'] ) : 0; if ( empty( $id ) ) { wp_send_json_error(); } $result = array(); $post = get_post( $id ); $post_type = ET_THEME_OPTIONS_POST_TYPE; if ( $post_type !== $post->post_type ) { wp_die(); } $result = []; $result['exported'] = json_decode( $post->post_content ); $response = wp_json_encode( array( 'success' => true, 'data' => $result, ) ); // Charset has to be explicitly mentioned when it is other than UTF-8. header( 'Content-Type: application/json; charset=' . esc_attr( get_option( 'blog_charset' ) ) ); die( et_core_intentionally_unescaped( $response, 'html' ) ); } add_action( 'wp_ajax_et_theme_options_library_get_item_content', 'et_theme_options_library_get_item_content' ); /** * AJAX Callback: Remove the Library layout after it was moved to the Cloud. * * @since ?? * * @global $_POST['payload'] Array with the layout data to remove. * * @return void|string JSON encoded in case of empty payload */ function et_theme_options_toggle_cloud_status() { et_core_security_check( et_core_portability_cap( 'epanel' ), 'et_theme_options_library_toggle_item_location', 'nonce' ); $post_id = isset( $_POST['et_theme_option_id'] ) ? (int) sanitize_text_field( $_POST['et_theme_option_id'] ) : 0; $post_type = get_post_type( $post_id ); if ( empty( $post_id ) ) { wp_send_json_error( 'No post ID' ); } $post_type = get_post_type( $post_id ); if ( ! current_user_can( 'edit_post', $post_id ) || ET_THEME_OPTIONS_POST_TYPE !== $post_type ) { wp_send_json_error( 'You do not have permission.' ); } wp_delete_post( $post_id, true ); $item_library_local = et_pb_theme_options_library_local(); wp_send_json_success( array( 'localLibraryTerms' => [ 'layout_category' => $item_library_local->get_formatted_library_terms(), 'layout_tag' => $item_library_local->get_formatted_library_terms( 'layout_tag' ), ], ) ); } add_action( 'wp_ajax_et_theme_options_toggle_cloud_status', 'et_theme_options_toggle_cloud_status' ); /** * Delete temporary options library */ function et_theme_options_delete_temp_options() { et_core_security_check( et_core_portability_cap( 'epanel' ), 'et_theme_options_delete_temp_options' ); $deleted = delete_option( 'et_divi_' . get_current_user_id() ); if ( $deleted ) { return wp_send_json_success(); } return wp_send_json_error(); } add_action( 'wp_ajax_et_theme_options_delete_temp_options', 'et_theme_options_delete_temp_options' ); custom_functions.php000064400000203462152214575740010702 0ustar00parent_theme ); } $theme_version = $theme_info->display( 'Version' ); return $theme_version; } endif; if ( ! function_exists( 'et_options_stored_in_one_row' ) ) { function et_options_stored_in_one_row(){ global $et_store_options_in_one_row; return isset( $et_store_options_in_one_row ) ? (bool) $et_store_options_in_one_row : false; } } /* sync custom CSS from ePanel with WP custom CSS option introduced in WP 4.7 */ if ( ! function_exists( 'et_sync_custom_css_options' ) ) { function et_sync_custom_css_options() { global $shortname; $legacy_custom_css = wp_unslash( et_get_option( "{$shortname}_custom_css" ) ); // nothing to sync if no custom css saved in ePanel if ( '' === $legacy_custom_css || ! $legacy_custom_css || empty( $legacy_custom_css ) ) { set_theme_mod( 'et_pb_css_synced', 'yes' ); return; } // don't proceed with the sync logic if the custom CSS option does not exist if ( ! function_exists( 'wp_get_custom_css' ) ) { return; } $css_synced = get_theme_mod( 'et_pb_css_synced', 'no' ); // get custom css string from WP customizer $wp_custom_css = wp_get_custom_css(); // force sync if the current custom CSS is empty if ( 'yes' === $css_synced && '' !== $wp_custom_css ) { return; } // ePanel is completely synced with Customizer if ( $wp_custom_css === $legacy_custom_css || false !== strpos( $wp_custom_css, $legacy_custom_css ) ) { set_theme_mod( 'et_pb_css_synced', 'yes' ); return; } // merge custom css from WP customizer with ePanel custom css $updated_custom_css = $legacy_custom_css . ' ' . $wp_custom_css; $updated_status = wp_update_custom_css_post( $updated_custom_css ); // set theme mod in case of success if ( is_object( $updated_status ) && ! empty( $updated_status ) ) { set_theme_mod( 'et_pb_css_synced', 'yes' ); } } } add_action( 'init', 'et_sync_custom_css_options' ); /** * sync custom CSS from WP custom CSS option introduced in WP 4.7 with theme options for backward compatibility * it should be removed after a few WP major updates when we fully migrate to WP custom CSS system */ if ( ! function_exists( 'et_back_sync_custom_css_options' ) ) { function et_back_sync_custom_css_options( $data ) { global $shortname; if ( ! empty( $data ) && isset( $data['css'] ) ) { et_update_option( "{$shortname}_custom_css", $data['css'] ); } return $data; } } add_filter( 'update_custom_css_data', 'et_back_sync_custom_css_options' ); if ( ! function_exists( 'et_update_custom_css_data_cb' ) ): function et_update_custom_css_data_cb( $data ) { ET_Core_PageResource::remove_static_resources( 'all', 'all' ); return $data; } add_filter( 'update_custom_css_data', 'et_update_custom_css_data_cb' ); endif; if ( ! function_exists( 'et_epanel_handle_custom_css_output' ) ): function et_epanel_handle_custom_css_output( $css, $stylesheet ) { global $wp_current_filter, $shortname; /** @see ET_Core_SupportCenter::toggle_safe_mode */ if ( et_core_is_safe_mode_active() ) { return $css; } if ( ! $css || ! in_array( 'wp_head', $wp_current_filter ) || is_admin() && ! is_customize_preview() ) { return $css; } $post_id = et_core_page_resource_get_the_ID(); $is_preview = is_preview() || isset( $_GET['et_pb_preview_nonce'] ) || is_customize_preview(); // phpcs:ignore WordPress.Security.NonceVerification.NoNonceVerification $is_singular = et_core_page_resource_is_singular(); $disabled_global = 'off' === et_get_option( 'et_pb_static_css_file', 'on' ); $disabled_post = $disabled_global || ( $is_singular && 'off' === get_post_meta( $post_id, '_et_pb_static_css_file', true ) ); $forced_inline = $is_preview || $disabled_global || $disabled_post || post_password_required(); $builder_in_footer = 'on' === et_get_option( 'et_pb_css_in_footer', 'off' ); $unified_styles = $is_singular && ! $forced_inline && ! $builder_in_footer && et_core_is_builder_used_on_current_request(); $resource_owner = $unified_styles ? 'core' : $shortname; $resource_slug = $unified_styles ? 'unified' : 'customizer'; if ( $is_preview ) { // Don't let previews cause existing saved static css files to be modified. $resource_slug .= '-preview'; } if ( function_exists( 'et_fb_is_enabled' ) && et_fb_is_enabled() ) { $resource_slug .= '-vb'; } if ( ! $unified_styles ) { $post_id = 'global'; } $styles_manager = et_core_page_resource_get( $resource_owner, $resource_slug, $post_id, 30 ); if ( $styles_manager->forced_inline || ! $styles_manager->has_file() ) { $styles_manager->set_data( $css, 30 ); } return ''; // We're handling the custom CSS output ourselves. } add_filter( 'wp_get_custom_css', 'et_epanel_handle_custom_css_output', 999, 2 ); endif; if ( ! function_exists( 'et_get_option' ) ) { /** * Gets option value from the single theme option, stored as an array in the database * if all options stored in one row. * Stores the serialized array with theme options into the global variable on the first function run on the page. * * If options are stored as separate rows in database, it simply uses get_option() function. * * @param string $option_name Theme option name. * @param string $default_value Default value that should be set if the theme option isn't set. * @param string $used_for_object "Object" name that should be translated into corresponding "object" if WPML is activated. * @param bool $force_default_value Is return provided default. * @param bool $is_global_setting Is Global Setting. * @param string $global_setting_main_name Global Setting name. * @param string $global_setting_sub_name Global Setting sub name. * @param bool $is_product_setting Product setting flag. * @return mixed Theme option value or false if not found. */ function et_get_option( $option_name, $default_value = '', $used_for_object = '', $force_default_value = false, $is_global_setting = false, $global_setting_main_name = '', $global_setting_sub_name = '', $is_product_setting = false ) { global $et_theme_options, $shortname; $et_one_row_option_name = ''; if ( $is_global_setting ) { $option_value = ''; $et_global_setting = get_option( $global_setting_main_name ); if ( false !== $et_global_setting && isset( $et_global_setting[ $global_setting_sub_name ] ) ) { $option_value = $et_global_setting[ $global_setting_sub_name ]; } } elseif ( $is_product_setting ) { $et_product_setting_name = 'et_' . $shortname . '_' . $option_name; $option_value = $force_default_value ? get_option( $et_product_setting_name, $default_value ) : get_option( $et_product_setting_name ); } elseif ( et_options_stored_in_one_row() ) { $et_theme_options_name = 'et_' . $shortname; if ( ! isset( $et_theme_options ) || is_customize_preview() ) { $et_theme_options = get_option( $et_theme_options_name ); } $option_value = isset( $et_theme_options[$option_name] ) ? $et_theme_options[$option_name] : false; $et_one_row_option_name = $et_theme_options_name . '_' . $option_name; } else { $option_value = $force_default_value ? get_option( $option_name, $default_value ) : get_option( $option_name ); } // option value might be equal to false, so check if the option is not set in the database if ( et_options_stored_in_one_row() && ! $is_product_setting && ! isset( $et_theme_options[ $option_name ] ) && ( ! empty( $default_value ) || $force_default_value ) ) { $option_value = $default_value; } if ( ! empty( $used_for_object ) && in_array( $used_for_object, array( 'page', 'category' ) ) && is_array( $option_value ) ) $option_value = et_generate_wpml_ids( $option_value, $used_for_object ); if ( ! empty( $et_one_row_option_name ) ) { $option_value = apply_filters( 'et_get_option_' . $et_one_row_option_name, $option_value, $et_one_row_option_name ); } return $option_value; } } if ( ! function_exists( 'et_update_option' ) ) { /** * Update option value in theme option, stored as an array in the database * if all options stored in one row. * * If options are stored as separate rows in database, it simply uses update_option() function. * * @param string $option_name Theme option name. * @param string $new_value Theme option value. * @param bool $is_new_global_setting Global setting flag. * @param string $global_setting_main_name Global setting name. * @param string $global_setting_sub_name Global setting sub name. * @param bool $is_product_setting Product setting flag. */ function et_update_option( $option_name, $new_value, $is_new_global_setting = false, $global_setting_main_name = '', $global_setting_sub_name = '', $is_product_setting = false ) { global $et_theme_options, $shortname; if ( $is_new_global_setting && '' !== $global_setting_main_name && '' !== $global_setting_sub_name ) { $global_setting = get_option( $global_setting_main_name, array() ); // $global_setting has to be array otherwise setting can't be saved so it needs // to be treated as empty array if ( ! is_array( $global_setting ) ) { $global_setting = array(); } $global_setting[ $global_setting_sub_name ] = $new_value; update_option( $global_setting_main_name, $global_setting ); } elseif ( $is_product_setting ) { $et_product_setting_name = 'et_' . $shortname . '_' . $option_name; // Update option and disable autoload of this option. update_option( $et_product_setting_name, $new_value, false ); } elseif ( et_options_stored_in_one_row() ) { $et_theme_options_name = 'et_' . $shortname; if ( ! isset( $et_theme_options ) || is_customize_preview() ) { $et_theme_options = get_option( $et_theme_options_name ); } $et_theme_options[ $option_name ] = $new_value; update_option( $et_theme_options_name, $et_theme_options ); } else { update_option( $option_name, $new_value ); } } } if ( ! function_exists( 'et_delete_option' ) ) { function et_delete_option( $option_name ){ global $et_theme_options, $shortname; if ( et_options_stored_in_one_row() ) { $et_theme_options_name = 'et_' . $shortname; if ( ! isset( $et_theme_options ) ) $et_theme_options = get_option( $et_theme_options_name ); unset( $et_theme_options[$option_name] ); update_option( $et_theme_options_name, $et_theme_options ); } else { delete_option( $option_name ); } } } /*this function allows for the auto-creation of post excerpts*/ if ( ! function_exists( 'truncate_post' ) ) { /** * Truncate post content to generate post excerpt. * * @since ?? Add new paramter $is_words_length to cut the text based on words length. * * @param integer $amount Amount of text that should be kept. * @param boolean $echo Whether to print the output or not. * @param object $post Post object. * @param boolean $strip_shortcodes Whether to strip the shortcodes or not. * @param boolean $is_words_length Whether to cut the text based on words length or not. * * @return string Generated post post excerpt. */ function truncate_post( $amount, $echo = true, $post = '', $strip_shortcodes = false, $is_words_length = false ) { global $shortname; if ( empty( $post ) ) global $post; if ( post_password_required( $post ) ) { $post_excerpt = get_the_password_form(); if ( $echo ) { echo et_core_intentionally_unescaped( $post_excerpt, 'html' ); return; } return $post_excerpt; } $post_excerpt = apply_filters( 'the_excerpt', $post->post_excerpt ); if ( 'on' === et_get_option( $shortname . '_use_excerpt' ) && ! empty( $post_excerpt ) ) { if ( $echo ) { echo et_core_intentionally_unescaped( $post_excerpt, 'html' ); } else { return $post_excerpt; } } else { // get the post content $truncate = $post->post_content; // remove caption shortcode from the post content $truncate = preg_replace( '@\[caption[^\]]*?\].*?\[\/caption]@si', '', $truncate ); // remove post nav shortcode from the post content $truncate = preg_replace( '@\[et_pb_post_nav[^\]]*?\].*?\[\/et_pb_post_nav]@si', '', $truncate ); // Remove audio shortcode from post content to prevent unwanted audio file on the excerpt // due to unparsed audio shortcode $truncate = preg_replace( '@\[audio[^\]]*?\].*?\[\/audio]@si', '', $truncate ); // Remove embed shortcode from post content $truncate = preg_replace( '@\[embed[^\]]*?\].*?\[\/embed]@si', '', $truncate ); // Remove script and style tags from the post content $truncate = wp_strip_all_tags( $truncate ); if ( $strip_shortcodes ) { $truncate = et_strip_shortcodes( $truncate ); $truncate = et_builder_strip_dynamic_content( $truncate ); } else { // Check if content should be overridden with a custom value. $custom = apply_filters( 'et_truncate_post_use_custom_content', false, $truncate, $post ); // apply content filters $truncate = false === $custom ? apply_filters( 'the_content', $truncate ) : $custom; } /** * Filter automatically generated post excerpt before it gets truncated. * * @since 3.17.2 * * @param string $excerpt * @param integer $post_id */ $truncate = apply_filters( 'et_truncate_post', $truncate, $post->ID ); // decide if we need to append dots at the end of the string if ( strlen( $truncate ) <= $amount ) { $echo_out = ''; } else { $echo_out = '...'; // $amount = $amount - 3; } $trim_words = ''; if ( $is_words_length ) { // Reset `$echo_out` text because it will be added by wp_trim_words() with // default WordPress `excerpt_more` text. $echo_out = ''; $excerpt_more = apply_filters( 'excerpt_more', ' […]' ); $trim_words = wp_trim_words( $truncate, $amount, $excerpt_more ); } else { $trim_words = et_wp_trim_words( $truncate, $amount, '' ); } // trim text to a certain number of characters, also remove spaces from the end of a string ( space counts as a character ). $truncate = rtrim( $trim_words ); // remove the last word to make sure we display all words correctly if ( ! empty( $echo_out ) ) { $new_words_array = (array) explode( ' ', $truncate ); // Remove last word if word count is more than 1. if ( count( $new_words_array ) > 1 ) { array_pop( $new_words_array ); } $truncate = implode( ' ', $new_words_array ); // Dots should not add to empty string if ( '' !== $truncate ) { // append dots to the end of the string $truncate .= $echo_out; } } if ( $echo ) { echo et_core_intentionally_unescaped( $truncate, 'html' ); } else { return $truncate; } }; } } if ( ! function_exists( 'et_wp_trim_words' ) ) { function et_wp_trim_words( $text, $num_words = 55, $more = null ) { if ( null === $more ) $more = esc_html__( '…' ); // Completely remove icons so that unicode hex entities representing the icons do not get included in words. $text = preg_replace( '/ $num_words ) { array_pop( $words_array ); $text = implode( $sep, $words_array ); $text = $text . $more; } else { $text = implode( $sep, $words_array ); } return $text; } } /*this function truncates titles to create preview excerpts*/ if ( ! function_exists( 'truncate_title' ) ) { function truncate_title( $amount, $echo = true, $post = '' ) { if ( empty( $post ) ) $truncate = get_the_title(); else $truncate = $post->post_title; if ( strlen( $truncate ) <= $amount ) $echo_out = ''; else $echo_out = '...'; $truncate = et_wp_trim_words( $truncate, $amount, '' ); if ( ! empty( $echo_out ) ) $truncate .= $echo_out; if ( $echo ) echo et_core_intentionally_unescaped( $truncate, 'html' ); else return $truncate; } } /*this function allows users to use the first image in their post as their thumbnail*/ if ( ! function_exists( 'et_first_image' ) ) { function et_first_image() { global $post; $img = ''; if ( empty( $post->ID ) ) { return $img; } $unprocessed_content = $post->post_content; // truncate Post based shortcodes if Divi Builder enabled to avoid infinite loops if ( function_exists( 'et_strip_shortcodes' ) ) { $unprocessed_content = et_strip_shortcodes( $post->post_content, true ); } // Check if content should be overridden with a custom value. $custom = apply_filters( 'et_first_image_use_custom_content', false, $unprocessed_content, $post ); // apply the_content filter to execute all shortcodes and get the correct image from the processed content $processed_content = false === $custom ? apply_filters( 'the_content', $unprocessed_content ) : $custom; $output = preg_match_all( '//i', $processed_content, $matches ); if ( isset( $matches[1][0] ) ) $img = $matches[1][0]; return trim( $img ); } } /* this function gets thumbnail from Post Thumbnail or Custom field or First post image */ if ( ! function_exists( 'get_thumbnail' ) ) { function get_thumbnail($width=100, $height=100, $class='', $alttext='', $titletext='', $fullpath=false, $custom_field='', $post='') { if ( empty( $post ) ) global $post; global $shortname; $thumb_array['thumb'] = ''; $thumb_array['use_timthumb'] = true; if ($fullpath) $thumb_array['fullpath'] = ''; //full image url for lightbox $new_method = true; if ( has_post_thumbnail( $post->ID ) || 'attachment' === $post->post_type ) { $thumb_array['use_timthumb'] = false; $et_fullpath = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'full' ); if ( is_array( $et_fullpath ) ) { $thumb_array['fullpath'] = $et_fullpath[0]; $thumb_array['thumb'] = $thumb_array['fullpath']; } } if ( empty( $thumb_array['thumb'] ) ) { if ( empty( $custom_field ) ) $thumb_array['thumb'] = esc_attr( get_post_meta( $post->ID, 'Thumbnail', $single = true ) ); else { $thumb_array['thumb'] = esc_attr( get_post_meta( $post->ID, $custom_field, $single = true ) ); if ( empty( $thumb_array['thumb'] ) ) $thumb_array['thumb'] = esc_attr( get_post_meta( $post->ID, 'Thumbnail', $single = true ) ); } if ( '' === $thumb_array['thumb'] && et_grab_image_setting() ) { $thumb_array['thumb'] = esc_attr( et_first_image() ); if ( $fullpath ) $thumb_array['fullpath'] = $thumb_array['thumb']; } #if custom field used for small pre-cropped image, open Thumbnail custom field image in lightbox if ($fullpath) { $thumb_array['fullpath'] = $thumb_array['thumb']; if ( empty( $custom_field ) ) $thumb_array['fullpath'] = apply_filters( 'et_fullpath', et_path_reltoabs( esc_attr( $thumb_array['thumb'] ) ) ); elseif ( ! empty( $custom_field ) && get_post_meta( $post->ID, 'Thumbnail', $single = true ) ) $thumb_array['fullpath'] = apply_filters( 'et_fullpath', et_path_reltoabs( esc_attr( get_post_meta( $post->ID, 'Thumbnail', $single = true ) ) ) ); } } return $thumb_array; } } if ( ! function_exists( 'et_grab_image_setting' ) ) : /** * Filterable "Grab the first post image" setting. * "Grab the first post image" needs to be filterable so it can be disabled forcefully. * It uses et_first_image() which uses apply_filters( 'the_content' ) which could cause * a conflict with third party plugin which extensively uses 'the_content' filter (ie. BuddyPress) * @return bool */ function et_grab_image_setting() { global $shortname; // Force disable "Grab the first post image" in BuddyPress component page $is_buddypress_component = function_exists( 'bp_current_component' ) && bp_current_component(); $setting = 'on' === et_get_option( "{$shortname}_grab_image" ) && ! $is_buddypress_component; return apply_filters( 'et_grab_image_setting', $setting ); } endif; /* this function prints thumbnail from Post Thumbnail or Custom field or First post image */ if ( ! function_exists( 'print_thumbnail' ) ) { function print_thumbnail($thumbnail = '', $use_timthumb = true, $alttext = '', $width = 100, $height = 100, $class = '', $echoout = true, $forstyle = false, $resize = true, $post='', $et_post_id = '' ) { if ( is_array( $thumbnail ) ) { extract( $thumbnail ); } if ( empty( $post ) ) global $post, $et_theme_image_sizes; $output = ''; $raw = false; $thumbnail_orig = $thumbnail; $et_post_id = ! empty( $et_post_id ) ? (int) $et_post_id : $post->ID; if ( has_post_thumbnail( $et_post_id ) ) { $thumb_array['use_timthumb'] = false; $image_size_name = $width . 'x' . $height; $et_size = isset( $et_theme_image_sizes ) && array_key_exists( $image_size_name, $et_theme_image_sizes ) ? $et_theme_image_sizes[$image_size_name] : array( $width, $height ); $et_attachment_image_attributes = wp_get_attachment_image_src( get_post_thumbnail_id( $et_post_id ), $et_size ); $thumbnail = $et_attachment_image_attributes[0]; } else { $thumbnail = et_multisite_thumbnail( $thumbnail ); $cropPosition = ''; $allow_new_thumb_method = false; $new_method = true; $new_method_thumb = ''; $external_source = false; $allow_new_thumb_method = !$external_source && $new_method && empty( $cropPosition ); if ( $allow_new_thumb_method && !empty( $thumbnail ) ) { if ( 'data:image' === substr( $thumbnail, 0, 10 ) ) { $new_method_thumb = $thumbnail; $raw = true; } else { $et_crop = get_post_meta( $post->ID, 'et_nocrop', true ); $et_crop = empty( $et_crop ) ? true : false; $new_method_thumb = et_resize_image( et_path_reltoabs( $thumbnail ), $width, $height, $et_crop ); if ( is_wp_error( $new_method_thumb ) ) { $new_method_thumb = ''; } } } $thumbnail = $new_method_thumb; } if ( false === $forstyle && $resize ) { if ( $width < 480 && et_is_responsive_images_enabled() && ! $raw ) { $output = sprintf( '%2$s', esc_url( $thumbnail ), esc_attr( wp_strip_all_tags( $alttext ) ), empty( $class ) ? '' : esc_attr( $class ), $thumbnail_orig . ' 479w, ' . $thumbnail . ' 480w', '(max-width:479px) 479px, 100vw', apply_filters( 'et_print_thumbnail_dimensions', ' width="' . esc_attr( $width ) . '" height="' . esc_attr( $height ) . '"' ) ); } else { $output = sprintf( '%2$s', $raw ? $thumbnail : esc_url( $thumbnail ), esc_attr( wp_strip_all_tags( $alttext ) ), empty( $class ) ? '' : esc_attr( $class ), apply_filters( 'et_print_thumbnail_dimensions', ' width="' . esc_attr( $width ) . '" height="' . esc_attr( $height ) . '"' ) ); if ( ! $raw ) { $output = et_image_add_srcset_and_sizes( $output ); } } } else { $output = $thumbnail; } if ($echoout) echo et_core_intentionally_unescaped( $output, 'html' ); else return $output; } } if ( ! function_exists( 'et_new_thumb_resize' ) ) { function et_new_thumb_resize( $thumbnail, $width, $height, $alt='', $forstyle = false ){ global $shortname; $new_method = true; $new_method_thumb = ''; $external_source = false; $allow_new_thumb_method = !$external_source && $new_method; if ( $allow_new_thumb_method && ! empty( $thumbnail ) ) { $et_crop = true; $new_method_thumb = et_resize_image( $thumbnail, $width, $height, $et_crop ); if ( is_wp_error( $new_method_thumb ) ) $new_method_thumb = ''; } $thumb = esc_attr( $new_method_thumb ); // Bail early when $forstyle argument is true. if ( $forstyle ) { return $thumb; } $output = sprintf( '%2$s', esc_url( $thumb ), esc_attr( $alt ), esc_attr( $width ), esc_attr( $height ) ); return et_image_add_srcset_and_sizes( $output ); } } if ( ! function_exists( 'et_multisite_thumbnail' ) ) { function et_multisite_thumbnail( $thumbnail = '' ) { // do nothing if it's not a Multisite installation or current site is the main one if ( is_main_site() ) return $thumbnail; # get the real image url preg_match( '#([_0-9a-zA-Z-]+/)?files/(.+)#', $thumbnail, $matches ); if ( isset( $matches[2] ) ) { $file = rtrim( BLOGUPLOADDIR, '/' ) . '/' . str_replace( '..', '', $matches[2] ); if ( is_file( $file ) ) $thumbnail = str_replace( ABSPATH, trailingslashit( get_site_url( 1 ) ), $file ); else $thumbnail = ''; } return $thumbnail; } } if ( ! function_exists( 'et_is_portrait' ) ) { function et_is_portrait($imageurl, $post='', $ignore_cfields = false){ if ( empty( $post ) ) global $post; if ( get_post_meta( $post->ID, 'et_disable_portrait', true ) === '1' ) return false; if ( !$ignore_cfields ) { if ( get_post_meta( $post->ID, 'et_imagetype', true ) === 'l' ) return false; if ( get_post_meta( $post->ID, 'et_imagetype', true ) === 'p' ) return true; } $imageurl = et_path_reltoabs( et_multisite_thumbnail( $imageurl ) ); $et_thumb_size = @getimagesize( $imageurl ); if ( empty( $et_thumb_size ) ) { $et_thumb_size = @getimagesize( str_replace( WP_CONTENT_URL, WP_CONTENT_DIR, $imageurl ) ); if ( empty( $et_thumb_size ) ) return false; } $et_thumb_width = $et_thumb_size[0]; $et_thumb_height = $et_thumb_size[1]; $result = ($et_thumb_width < $et_thumb_height) ? true : false; return $result; } } if ( ! function_exists( 'et_path_reltoabs' ) ) { function et_path_reltoabs( $imageurl ){ if ( strpos( strtolower( $imageurl ), 'http://' ) !== false || strpos( strtolower( $imageurl ), 'https://' ) !== false ) return $imageurl; if ( strpos( strtolower( $imageurl ), $_SERVER['HTTP_HOST'] ) !== false ) return $imageurl; else { $imageurl = esc_url( apply_filters( 'et_path_relative_image', site_url() . '/' ) . $imageurl ); } return $imageurl; } } if ( ! function_exists( 'in_subcat' ) ) { function in_subcat($blogcat,$current_cat='') { $in_subcategory = false; if (cat_is_ancestor_of( $blogcat, $current_cat ) || $blogcat === $current_cat) $in_subcategory = true; return $in_subcategory; } } if ( ! function_exists( 'show_page_menu' ) ) { function show_page_menu($customClass = 'nav clearfix', $addUlContainer = true, $addHomeLink = true){ global $shortname, $themename, $exclude_pages, $strdepth, $page_menu, $is_footer; //excluded pages if ( $menupages = et_get_option( $shortname.'_menupages' ) ) { $exclude_pages = is_array( $menupages ) ? implode( ',', $menupages ) : ''; } //dropdown for pages $strdepth = ''; if ( et_get_option( $shortname.'_enable_dropdowns' ) === 'on' ) { $strdepth = "depth=".et_get_option( $shortname.'_tiers_shown_pages' ); } if ( empty( $strdepth ) ) { $strdepth = "depth=1"; } if ( $is_footer ) { $strdepth = "depth=1"; $strdepth2 = $strdepth; } $page_menu = wp_list_pages( "sort_column=".et_get_option( $shortname.'_sort_pages' )."&sort_order=".et_get_option( $shortname.'_order_page' )."&".$strdepth."&exclude=".$exclude_pages."&title_li=&echo=0" ); if ( $addUlContainer ) echo '
    '; if (et_get_option( $shortname . '_home_link' ) === 'on' && $addHomeLink) { ?>
  • >
  • '; } } if ( ! function_exists( 'show_categories_menu' ) ) { function show_categories_menu($customClass = 'nav clearfix', $addUlContainer = true){ global $shortname, $themename, $category_menu, $exclude_cats, $hide, $strdepth2, $projects_cat; //excluded categories if ( $menucats = et_get_option( $shortname.'_menucats' ) ) { $exclude_cats = implode( ',', (array) $menucats ); } //hide empty categories if (et_get_option( $shortname.'_categories_empty' ) === 'on') $hide = '1'; else $hide = '0'; //dropdown for categories $strdepth2 = ''; if ( et_get_option( $shortname.'_enable_dropdowns_categories' ) === 'on' ) $strdepth2 = "depth=".et_get_option( $shortname.'_tiers_shown_categories' ); if ( empty( $strdepth2 ) ) $strdepth2 = "depth=1"; $args = "orderby=".et_get_option( $shortname.'_sort_cat' )."&order=".et_get_option( $shortname.'_order_cat' )."&".$strdepth2."&exclude=".$exclude_cats."&hide_empty=".$hide."&title_li=&echo=0"; $categories = get_categories( $args ); if ( !empty( $categories ) ) { $args_array = wp_parse_args( $args ); if ( isset( $args_array['exclude'] ) && '' !== $args_array['exclude'] ) { $args_array['exclude'] = explode( ',', $args_array['exclude'] ); } $category_menu = wp_list_categories( $args_array ); if ( $addUlContainer ) echo '
      '; echo et_core_esc_wp( $category_menu ); if ( $addUlContainer ) echo '
    '; } } } function head_addons(){ global $shortname, $default_colorscheme; // phpcs:disable WordPress.WP.EnqueuedResources.NonEnqueuedStylesheet $color_scheme = apply_filters( 'et_get_additional_color_scheme', et_get_option( $shortname.'_color_scheme' ) ); if ( !empty( $color_scheme ) && $color_scheme !== $default_colorscheme ) { ?> display( 'Name' ) . ' v.' . $theme_info->display( 'Version' ) ) . '" name="generator"/>'; if ( et_get_option( $shortname . '_custom_colors' ) === 'on' ) et_epanel_custom_colors_css(); // phpcs:enable }// end function head_addons() add_action( 'wp_head', 'head_addons', 7 ); function integration_head(){ global $shortname; /** @see ET_Core_SupportCenter::toggle_safe_mode */ if ( et_core_is_safe_mode_active() ) { return; } $integration_head = et_get_option( $shortname . '_integration_head' ); if ( ! empty( $integration_head ) && et_get_option( $shortname . '_integrate_header_enable' ) === 'on' ) { $integration_head = et_core_fix_unclosed_html_tags( $integration_head ); echo et_core_intentionally_unescaped( $integration_head, 'html' ); } } add_action( 'wp_head', 'integration_head', 12 ); function integration_body(){ global $shortname; /** @see ET_Core_SupportCenter::toggle_safe_mode */ if ( et_core_is_safe_mode_active() ) { return; } $integration_body = et_get_option( $shortname . '_integration_body' ); if ( ! empty( $integration_body ) && et_get_option( $shortname . '_integrate_body_enable' ) === 'on' ) { $integration_body = et_core_fix_unclosed_html_tags( $integration_body ); echo et_core_intentionally_unescaped( $integration_body, 'html' ); } } add_action( 'wp_footer', 'integration_body', 12 ); function integration_single_top(){ global $shortname; /** @see ET_Core_SupportCenter::toggle_safe_mode */ if ( et_core_is_safe_mode_active() ) { return; } $integration_single_top = et_get_option( $shortname . '_integration_single_top' ); if ( ! empty( $integration_single_top ) && et_get_option( $shortname . '_integrate_singletop_enable' ) === 'on' ) { $integration_single_top = et_core_fix_unclosed_html_tags( $integration_single_top ); echo et_core_intentionally_unescaped( $integration_single_top, 'html' ); } } add_action( 'et_before_post', 'integration_single_top', 12 ); function integration_single_bottom(){ global $shortname; /** @see ET_Core_SupportCenter::toggle_safe_mode */ if ( et_core_is_safe_mode_active() ) { return; } $integration_single_bottom = et_get_option( $shortname . '_integration_single_bottom' ); if ( ! empty( $integration_single_bottom ) && et_get_option( $shortname . '_integrate_singlebottom_enable' ) === 'on' ) { $integration_single_bottom = et_core_fix_unclosed_html_tags( $integration_single_bottom ); echo et_core_intentionally_unescaped( $integration_single_bottom, 'html' ); } } add_action( 'et_after_post', 'integration_single_bottom', 12 ); /*this function gets page name by its id*/ if ( ! function_exists( 'get_pagename' ) ) { function get_pagename( $page_id ) { $page_object = get_page( $page_id ); return apply_filters( 'the_title', $page_object->post_title, $page_id ); } } /*this function gets category name by its id*/ if ( ! function_exists( 'get_categname' ) ) { function get_categname( $cat_id ) { return get_cat_name( $cat_id ); } } /*this function gets category id by its name*/ if ( ! function_exists( 'get_catId' ) ) { function get_catId( $cat_name, $taxonomy = 'category' ) { $cat_name_id = is_numeric( $cat_name ) ? (int) $cat_name : (int) get_cat_ID( html_entity_decode( $cat_name, ENT_QUOTES ) ); // wpml compatibility if ( function_exists( 'icl_object_id' ) ) { $cat_name_id = (int) icl_object_id( $cat_name_id, $taxonomy, true ); } return $cat_name_id; } } /*this function gets page id by its name*/ if ( ! function_exists( 'get_pageId' ) ) { function get_pageId( $page_name ) { if ( is_numeric( $page_name ) ) { $page_id = intval( $page_name ); } else { $page_name = html_entity_decode( $page_name, ENT_QUOTES ); $page = get_page_by_title( $page_name ); $page_id = intval( $page->ID ); } // wpml compatibility if ( function_exists( 'icl_object_id' ) ) $page_id = (int) icl_object_id( $page_id, 'page', true ); return $page_id; } } /** * Transforms an array of posts, pages, post_tags or categories ids * into corresponding "objects" ids, if WPML plugin is installed * * @param array $ids_array Posts, pages, post_tags or categories ids. * @param string $type "Object" type. * @return array IDs. */ if ( ! function_exists( 'et_generate_wpml_ids' ) ) { function et_generate_wpml_ids( $ids_array, $type ) { if ( function_exists( 'icl_object_id' ) ) { $wpml_ids = array(); foreach ( $ids_array as $id ) { $translated_id = icl_object_id( $id, $type, false ); if ( ! is_null( $translated_id ) ) $wpml_ids[] = $translated_id; } $ids_array = $wpml_ids; } return array_map( 'intval', $ids_array ); } } if ( ! function_exists( 'elegant_is_blog_posts_page' ) ) { function elegant_is_blog_posts_page() { /** * Returns true if static page is set in WP-Admin / Settings / Reading * and Posts page is displayed */ static $et_is_blog_posts_cached = null; if ( null === $et_is_blog_posts_cached ) { $et_is_blog_posts_cached = (bool) is_home() && 0 !== intval( get_option( 'page_for_posts', '0' ) ); } return $et_is_blog_posts_cached; } } // Added for backwards compatibility if ( ! function_exists( 'elegant_titles' ) ) { function elegant_titles() { if ( ! function_exists( 'wp_get_document_title' ) ) { wp_title(); } else { echo et_core_esc_wp( wp_get_document_title() ); } } } if ( ! function_exists( '_wp_render_title_tag' ) && ! function_exists( 'et_add_title_tag_back_compat' ) ) { /** * Manually add tag in head for WordPress 4.1 below for backward compatibility * Title tag is automatically added for WordPress 4.1 above via theme support * @return void */ function et_add_title_tag_back_compat() { ?> <title><?php wp_title( '-', true, 'right' ); ?> post->ID; $key = et_get_option( $shortname . '_seo_single_field_title' ); $exists3 = $key ? get_post_meta( $postid, $key, true ) : ''; if ( 'on' === et_get_option( $shortname . '_seo_single_title' ) && '' !== $exists3 ) { $custom_title = $exists3; } else { $seo_single_type = et_get_option( $shortname . '_seo_single_type' ); $seo_single_separate = et_get_option( $shortname . '_seo_single_separate' ); $page_title = single_post_title( '', false ); if ( $seo_single_type === 'BlogName | Post title' ) { $custom_title = $sitename . esc_html( $seo_single_separate ) . $page_title; } if ( $seo_single_type === 'Post title | BlogName' ) { $custom_title = $page_title . esc_html( $seo_single_separate ) . $sitename; } if ( $seo_single_type === 'Post title only' ) { $custom_title = $page_title; } } } #if the title is being displayed on index pages (categories/archives/search results) if ( is_category() || is_archive() || is_search() || is_404() ) { $page_title = ''; $seo_index_type = et_get_option( $shortname . '_seo_index_type' ); $seo_index_separate = et_get_option( $shortname . '_seo_index_separate' ); if ( is_category() || is_tag() || is_tax() ) { $page_title = single_term_title( '', false ); } else if ( is_post_type_archive() ) { $page_title = post_type_archive_title( '', false ); } else if ( is_author() ) { $page_title = get_the_author_meta( 'display_name', get_query_var( 'author' ) ); } else if ( is_date() ) { $page_title = esc_html__( 'Archives', $themename ); } else if ( is_search() ) { $page_title = sprintf( esc_html__( 'Search results for "%s"', $themename ), esc_attr( get_search_query() ) ); } else if ( is_404() ) { $page_title = esc_html__( '404 Not Found', $themename ); } if ( $seo_index_type === 'BlogName | Category name' ) { $custom_title = $sitename . esc_html( $seo_index_separate ) . $page_title; } if ( $seo_index_type === 'Category name | BlogName') { $custom_title = $page_title . esc_html( $seo_index_separate ) . $sitename; } if ( $seo_index_type === 'Category name only') { $custom_title = $page_title; } } $custom_title = wp_strip_all_tags( $custom_title ); return $custom_title; } } add_filter( 'pre_get_document_title', 'elegant_titles_filter' ); if ( ! function_exists( 'et_is_seo_plugin_active' ) ) { /** * Determine if SEO plugin is active. * * @since ?? * @return bool */ function et_is_seo_plugin_active() { // WordPress SEO. if ( class_exists( 'WPSEO_Frontend' ) ) { return true; } // All In One SEO Pack. if ( class_exists( 'All_in_One_SEO_Pack' ) ) { return true; } // Rank Math SEO. if ( class_exists( 'RankMath\Frontend\Frontend' ) ) { return true; } return false; } } /*this function controls the meta description display*/ if ( ! function_exists( 'elegant_description' ) ) { function elegant_description() { // Don't use ePanel SEO if a SEO plugin is active. if ( et_is_seo_plugin_active() ) { return; } global $shortname, $themename; #homepage descriptions if ( et_get_option( $shortname.'_seo_home_description' ) === 'on' && ( ( is_home() || is_front_page() ) && ! elegant_is_blog_posts_page() ) ) { echo ''; } #single page descriptions if ( et_get_option( $shortname.'_seo_single_description' ) === 'on' && ( is_single() || is_page() || elegant_is_blog_posts_page() ) ) { global $wp_query; if ( isset( $wp_query->post->ID ) || elegant_is_blog_posts_page() ) { $postid = elegant_is_blog_posts_page() ? intval( get_option( 'page_for_posts' ) ) : $wp_query->post->ID; } $key2 = et_get_option( $shortname . '_seo_single_field_description' ); $exists = ( $postid && $key2 ) ? get_post_meta( $postid, $key2, true ) : ''; if ( $exists !== '' ) { echo ''; } } #index descriptions $seo_index_description = et_get_option( $shortname.'_seo_index_description' ); if ( $seo_index_description === 'on' ) { $is_pre_4_4 = version_compare( $GLOBALS['wp_version'], '4.4', '<' ); $description_added = false; if ( is_category() ) { remove_filter( 'term_description', 'wpautop' ); $cat = get_query_var( 'cat' ); $exists2 = category_description( $cat ); if ( $exists2 !== '' ) { echo ''; $description_added = true; } } if ( is_archive() && ! $description_added ) { $description_text = $is_pre_4_4 ? sprintf( esc_html__( 'Currently viewing archives from %1$s', $themename ), wp_title( '', false, '' ) ) : get_the_archive_title(); printf( '', esc_attr( $description_text ) ); $description_added = true; } if ( is_search() && ! $description_added ) { $description_text = $is_pre_4_4 ? wp_title( '', false, '' ) : sprintf( esc_html__( 'Search Results for: %s', $themename ), get_search_query() ); echo ''; $description_added = true; } } } } /*this function controls the meta keywords display*/ if ( ! function_exists( 'elegant_keywords' ) ) { function elegant_keywords() { // Don't use ePanel SEO if a SEO plugin is active. if ( et_is_seo_plugin_active() ) { return; } global $shortname; #homepage keywords if ( et_get_option( $shortname.'_seo_home_keywords' ) === 'on' && ( ( is_home() || is_front_page() ) && ! elegant_is_blog_posts_page() ) ) { echo ''; } #single page keywords if ( et_get_option( $shortname.'_seo_single_keywords' ) === 'on' ) { global $wp_query; if ( isset( $wp_query->post->ID ) || elegant_is_blog_posts_page() ) { $postid = elegant_is_blog_posts_page() ? intval( get_option( 'page_for_posts' ) ) : $wp_query->post->ID; } $key3 = et_get_option( $shortname . '_seo_single_field_keywords' ); $exists4 = ( $postid && $key3 ) ? get_post_meta( $postid, $key3, true ) : ''; if ( '' !== $exists4 ) { if ( is_single() || is_page() || elegant_is_blog_posts_page() ) echo ''; } } } } /*this function controls canonical urls*/ if ( ! function_exists( 'elegant_canonical' ) ) { function elegant_canonical() { // Don't use ePanel SEO if 'rel_canonical' is registered for `wp_head`. if ( has_action( 'embed_head', 'rel_canonical' ) && is_singular() ) { return; } // Don't use ePanel SEO if a SEO plugin is active. if ( et_is_seo_plugin_active() ) { return; } global $shortname; #homepage urls if ( et_get_option( $shortname.'_seo_home_canonical' ) === 'on' && is_home() && ! elegant_is_blog_posts_page() ) { echo ''; } #single page urls if ( et_get_option( $shortname.'_seo_single_canonical' ) === 'on' ) { global $wp_query; if ( isset( $wp_query->post->ID ) || elegant_is_blog_posts_page() ) { $postid = elegant_is_blog_posts_page() ? intval( get_option( 'page_for_posts' ) ) : $wp_query->post->ID; } if ( ( is_single() || is_page() || elegant_is_blog_posts_page() ) && ! is_front_page() ) { echo ''; } } #index page urls if ( et_get_option( $shortname.'_seo_index_canonical' ) === 'on' ) { $current_page_url = ( is_ssl() ? 'https://' : 'http://' ) . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; if ( is_archive() || is_category() || is_search() ) echo ''; } } } add_action( 'wp_head', 'add_favicon' ); function add_favicon(){ global $shortname; $favicon_url = et_get_option( $shortname . '_favicon' ); // If the `has_site_icon` function doesn't exist (ie we're on < WP 4.3) or if the site icon has not been set, // and when we have a icon URL from theme option if ( ( ! function_exists( 'has_site_icon' ) || ! has_site_icon() ) && ! empty( $favicon_url ) ) { echo ''; } elseif ( function_exists( 'has_site_icon' ) && has_site_icon() ) { et_update_option( $shortname . '_favicon', '' ); } } add_action( 'init', 'et_create_images_temp_folder' ); function et_create_images_temp_folder(){ $et_images_temp_folder = get_option( 'et_images_temp_folder' ); #clean et_temp folder once per week if ( false !== $last_time = get_option( 'et_schedule_clean_images_last_time' ) ) { $timeout = 86400 * 7; if ( ( $timeout < ( time() - $last_time ) ) && ! empty( $et_images_temp_folder ) ) et_clean_temp_images( $et_images_temp_folder ); } if ( false !== $et_images_temp_folder ) return; $uploads_dir = wp_upload_dir(); $destination_dir = ( false === $uploads_dir['error'] ) ? path_join( $uploads_dir['basedir'], 'et_temp' ) : ''; if ( ! wp_mkdir_p( $destination_dir ) ) update_option( 'et_images_temp_folder', '' ); else { update_option( 'et_images_temp_folder', preg_replace( '#\/\/#', '/', $destination_dir ) ); update_option( 'et_schedule_clean_images_last_time', time() ); } } if ( ! function_exists( 'et_clean_temp_images' ) ) { function et_clean_temp_images( $directory ){ $dir_to_clean = @ opendir( $directory ); if ( $dir_to_clean ) { while (($file = readdir( $dir_to_clean ) ) !== false ) { if ( substr( $file, 0, 1 ) === '.' ) continue; if ( is_dir( $directory.'/'.$file ) ) et_clean_temp_images( path_join( $directory, $file ) ); else @ unlink( path_join( $directory, $file ) ); } closedir( $dir_to_clean ); } #set last time cleaning was performed update_option( 'et_schedule_clean_images_last_time', time() ); } } add_filter( 'update_option_upload_path', 'et_update_uploads_dir' ); function et_update_uploads_dir( $upload_path ){ #check if we have 'et_temp' folder within $uploads_dir['basedir'] directory, if not - try creating it, if it's not possible $destination_dir = null $destination_dir = ''; $uploads_dir = wp_upload_dir(); $et_temp_dir = path_join( $uploads_dir['basedir'], 'et_temp' ); if ( is_dir( $et_temp_dir ) || ( false === $uploads_dir['error'] && wp_mkdir_p( $et_temp_dir ) ) ) { $destination_dir = $et_temp_dir; update_option( 'et_schedule_clean_images_last_time', time() ); } update_option( 'et_images_temp_folder', preg_replace( '#\/\/#', '/', $destination_dir ) ); return $upload_path; } if ( ! function_exists( 'et_resize_image' ) ) { function et_resize_image( $thumb, $new_width, $new_height, $crop ){ /* * Fixes the issue with x symbol between width and height values in the filename. * For instance, sports-400x400.jpg file results in 'image not found' in getimagesize() function. */ $thumb = str_replace( '%26%23215%3B', 'x', rawurlencode( $thumb ) ); $thumb = rawurldecode( $thumb ); if ( is_ssl() ) $thumb = preg_replace( '#^http://#', 'https://', $thumb ); $info = pathinfo( $thumb ); $ext = $info['extension']; $name = wp_basename( $thumb, ".$ext" ); $is_jpeg = false; $site_uri = apply_filters( 'et_resize_image_site_uri', site_url() ); $site_dir = apply_filters( 'et_resize_image_site_dir', ABSPATH ); // If multisite, not the main site, WordPress version < 3.5 or ms-files rewriting is enabled ( not the fresh WordPress installation, updated from the 3.4 version ) if ( is_multisite() && ! is_main_site() && ( ! function_exists( 'wp_get_mime_types' ) || get_site_option( 'ms_files_rewriting' ) ) ) { //Get main site url on multisite installation switch_to_blog( 1 ); $site_uri = site_url(); restore_current_blog(); } /* * If we're dealing with an external image ( might be the result of Grab the first image function ), * return original image url */ if ( false === strpos( $thumb, $site_uri ) ) return $thumb; if ( 'jpeg' === $ext ) { $ext = 'jpg'; $name = preg_replace( '#.jpeg$#', '', $name ); $is_jpeg = true; } $suffix = "{$new_width}x{$new_height}"; $et_images_temp_folder = get_option( 'et_images_temp_folder' ); $destination_dir = ! empty( $et_images_temp_folder ) ? preg_replace( '#\/\/#', '/', $et_images_temp_folder ) : null; $matches = apply_filters( 'et_resize_image_site_dir', array(), $site_dir ); if ( !empty( $matches ) ) { preg_match( '#'.$matches[1].'$#', $site_uri, $site_uri_matches ); if ( !empty( $site_uri_matches ) ) { $site_uri = str_replace( $matches[1], '', $site_uri ); $site_uri = preg_replace( '#/$#', '', $site_uri ); $site_dir = str_replace( $matches[1], '', $site_dir ); $site_dir = preg_replace( '#\\\/$#', '', $site_dir ); } } #get local name for use in file_exists() and get_imagesize() functions $localfile = str_replace( apply_filters( 'et_resize_image_localfile', $site_uri, $site_dir, et_multisite_thumbnail( $thumb ) ), $site_dir, et_multisite_thumbnail( $thumb ) ); $add_to_suffix = ''; if ( file_exists( $localfile ) ) $add_to_suffix = filesize( $localfile ) . '_'; #prepend image filesize to be able to use images with the same filename $suffix = $add_to_suffix . $suffix; $destfilename_attributes = '-' . $suffix . '.' . strtolower( $ext ); $checkfilename = ( ! empty( $destination_dir ) && null !== $destination_dir ) ? path_join( $destination_dir, $name ) : path_join( dirname( $localfile ), $name ); $checkfilename .= $destfilename_attributes; if ( $is_jpeg ) $checkfilename = preg_replace( '#.jpg$#', '.jpeg', $checkfilename ); $uploads_dir = wp_upload_dir(); $uploads_dir['basedir'] = preg_replace( '#\/\/#', '/', $uploads_dir['basedir'] ); if ( null !== $destination_dir && ! empty( $destination_dir ) && apply_filters( 'et_enable_uploads_detection', true ) ) { $site_dir = trailingslashit( preg_replace( '#\/\/#', '/', $uploads_dir['basedir'] ) ); $site_uri = trailingslashit( $uploads_dir['baseurl'] ); } #check if we have an image with specified width and height if ( file_exists( $checkfilename ) ) return str_replace( $site_dir, trailingslashit( $site_uri ), $checkfilename ); $size = @getimagesize( $localfile ); if ( !$size ) return new WP_Error( 'invalid_image_path', esc_html__( 'Image doesn\'t exist' ), $thumb ); list($orig_width, $orig_height, $orig_type) = $size; #check if we're resizing the image to smaller dimensions if ( $orig_width > $new_width || $orig_height > $new_height ) { if ( $orig_width < $new_width || $orig_height < $new_height ) { #don't resize image if new dimensions > than its original ones if ( $orig_width < $new_width ) $new_width = $orig_width; if ( $orig_height < $new_height ) $new_height = $orig_height; #regenerate suffix and appended attributes in case we changed new width or new height dimensions $suffix = "{$add_to_suffix}{$new_width}x{$new_height}"; $destfilename_attributes = '-' . $suffix . '.' . $ext; $checkfilename = ( ! empty( $destination_dir ) && null !== $destination_dir ) ? path_join( $destination_dir, $name ) : path_join( dirname( $localfile ), $name ); $checkfilename .= $destfilename_attributes; #check if we have an image with new calculated width and height parameters if ( file_exists( $checkfilename ) ) return str_replace( $site_dir, trailingslashit( $site_uri ), $checkfilename ); } #we didn't find the image in cache, resizing is done here $et_image_editor = wp_get_image_editor( $localfile ); if ( ! is_wp_error( $et_image_editor ) ) { $et_image_editor->resize( $new_width, $new_height, $crop ); // generate correct file name/path $et_new_image_name = $et_image_editor->generate_filename( $suffix, $destination_dir ); do_action( 'et_resize_image_before_save', $et_image_editor, $et_new_image_name ); $et_image_editor->save( $et_new_image_name ); // assign new image path $result = $et_new_image_name; } else { // assign a WP_ERROR ( WP_Image_Editor instance wasn't created properly ) $result = $et_image_editor; } if ( ! is_wp_error( $result ) ) { // transform local image path into URI if ( $is_jpeg ) $thumb = preg_replace( '#.jpeg$#', '.jpg', $thumb ); $site_dir = str_replace( '\\', '/', $site_dir ); $result = str_replace( '\\', '/', $result ); $result = str_replace( '//', '/', $result ); $result = str_replace( $site_dir, trailingslashit( $site_uri ), $result ); } #returns resized image path or WP_Error ( if something went wrong during resizing ) return $result; } #returns unmodified image, for example in case if the user is trying to resize 800x600px to 1920x1080px image return $thumb; } } add_action( 'pre_get_posts', 'et_custom_posts_per_page' ); function et_custom_posts_per_page( $query = false ) { global $shortname; // phpcs:disable WordPress.Security.NonceVerification.NoNonceVerification if ( is_admin() ) { return; } if ( ! is_a( $query, 'WP_Query' ) || ( ! $query->is_main_query() || ! empty( $query->et_pb_shop_query ) ) ) { return; } if ( $query->is_category ) { $query->set( 'posts_per_page', (int) et_get_option( $shortname . '_catnum_posts', '5' ) ); } elseif ( $query->is_tag ) { $query->set( 'posts_per_page', (int) et_get_option( $shortname . '_tagnum_posts', '5' ) ); } elseif ( $query->is_search ) { if ( isset( $_GET['et_searchform_submit'] ) ) { $postTypes = array(); if ( !isset( $_GET['et-inc-posts'] ) && !isset( $_GET['et-inc-pages'] ) ) $postTypes = array('post'); if ( isset( $_GET['et-inc-pages'] ) ) $postTypes = array('page'); if ( isset( $_GET['et-inc-posts'] ) ) $postTypes[] = 'post'; $query->set( 'post_type', $postTypes ); if ( isset( $_GET['et-month-choice'] ) && $_GET['et-month-choice'] !== 'no-choice' ) { $et_year = substr( $_GET['et-month-choice'], 0, 4 ); $et_month = substr( $_GET['et-month-choice'], 4, strlen( $_GET['et-month-choice'] ) - 4 ); $query->set( 'year', absint( $et_year ) ); $query->set( 'monthnum', absint( $et_month ) ); } if ( isset( $_GET['et-cat'] ) && $_GET['et-cat'] !== '0' ) $query->set( 'cat', absint( $_GET['et-cat'] ) ); } $query->set( 'posts_per_page', (int) et_get_option( $shortname . '_searchnum_posts', '5' ) ); } elseif ( $query->is_archive ) { if ( function_exists( 'is_woocommerce' ) && is_woocommerce() ) { // Plugin Compatibility :: Skip query->set if "loop_shop_per_page" filter is being used by 3rd party plugins if ( ! has_filter( 'loop_shop_per_page' ) ) { $posts_number = (int) et_get_option( $shortname . '_woocommerce_archive_num_posts', '9' ); $query->set( 'posts_per_page', $posts_number ); } } else { $posts_number = (int) et_get_option( $shortname . '_archivenum_posts', '5' ); $query->set( 'posts_per_page', $posts_number ); } } // phpcs:enable } add_filter( 'default_hidden_meta_boxes', 'et_show_hidden_metaboxes', 10, 2 ); function et_show_hidden_metaboxes( $hidden, $screen ){ # make custom fields and excerpt meta boxes show by default if ( 'post' === $screen->base || 'page' === $screen->base ) $hidden = array( 'slugdiv', 'trackbacksdiv', 'commentstatusdiv', 'commentsdiv', 'authordiv', 'revisionsdiv', ); return $hidden; } add_filter( 'widget_title', 'et_widget_force_title' ); function et_widget_force_title( $title ){ #add an empty title for widgets ( otherwise it might break the sidebar layout ) if ( empty( $title ) ) $title = ' '; return $title; } //modify the comment counts to only reflect the number of comments minus pings if( version_compare( phpversion(), '4.4', '>=' ) ) add_filter( 'get_comments_number', 'et_comment_count', 0, 2 ); function et_comment_count( $count, $post_id ) { $is_doing_ajax = defined( 'DOING_AJAX' ) && DOING_AJAX ? true : false; if ( ! is_admin() || $is_doing_ajax ) { global $id; $post_id = $post_id ? $post_id : $id; $get_comments = get_comments( array('post_id' => $post_id, 'status' => 'approve') ); $comments_by_type = separate_comments( $get_comments ); return count( $comments_by_type['comment'] ); } else { return $count; } } add_action( 'admin_init', 'et_theme_check_clean_installation' ); function et_theme_check_clean_installation(){ add_action( 'admin_notices', 'et_theme_epanel_reminder' ); } if ( ! function_exists( 'et_theme_epanel_reminder' ) ) { function et_theme_epanel_reminder(){ global $shortname, $themename, $current_screen; if ( false === et_get_option( $shortname . '_logo' ) && 'appearance_page_core_functions' !== $current_screen->id ) { printf( et_get_safe_localization( __( '

    This is a fresh installation of %1$s theme. Don\'t forget to go to ePanel to set it up. This message will disappear once you have clicked the Save button within the theme\'s options page.

    ', $themename ) ), esc_html( wp_get_theme() ), esc_url( admin_url( 'themes.php?page=core_functions.php' ) ) ); } } } add_filter( 'body_class', 'et_add_fullwidth_body_class' ); function et_add_fullwidth_body_class( $classes ){ $fullwidth_view = false; if ( is_page_template( 'page-full.php' ) ) $fullwidth_view = true; if ( is_page() || is_single() ) { $et_ptemplate_settings = get_post_meta( get_queried_object_id(), 'et_ptemplate_settings', true ); $fullwidth = isset( $et_ptemplate_settings['et_fullwidthpage'] ) ? (bool) $et_ptemplate_settings['et_fullwidthpage'] : false; if ( $fullwidth ) $fullwidth_view = true; } if ( is_single() && 'on' === get_post_meta( get_queried_object_id(), '_et_full_post', true ) ) $fullwidth_view = true; $classes[] = apply_filters( 'et_fullwidth_view_body_class', $fullwidth_view ) ? 'et_fullwidth_view' : 'et_includes_sidebar'; return $classes; } /** * Enqueue legacy shortcodes' CSS. * * @since ?? */ function et_add_legacy_shortcode_css() { wp_enqueue_style( 'et-shortcodes-css', ET_SHORTCODES_DIR . '/css/shortcodes-legacy.css', array(), ET_SHORTCODES_VERSION, 'all' ); wp_enqueue_style( 'et-shortcodes-responsive-css', ET_SHORTCODES_DIR . '/css/shortcodes_responsive.css', false, ET_SHORTCODES_VERSION, 'all' ); } /** * Enqueue legacy shortcode JS. * * @return void * @since ?? */ function et_add_legacy_shortcode_js() { global $themename; $shortcode_strings_handle = apply_filters( 'et_shortcodes_strings_handle', 'et-shortcodes-js' ); wp_enqueue_script( 'et-shortcodes-js', ET_SHORTCODES_DIR . '/js/et_shortcodes_frontend.js', array( 'jquery' ), ET_SHORTCODES_VERSION, false ); wp_localize_script( $shortcode_strings_handle, 'et_shortcodes_strings', array( 'previous' => esc_html__( 'Previous', $themename ), 'next' => esc_html__( 'Next', $themename ), ) ); } /** * Enqueue responsive shortcode CSS in legacy themes when the ePanel option is enabled. * * @since ?? */ function et_add_responsive_shortcodes_css() { global $shortname; if ( 'on' === et_get_option( $shortname . '_responsive_shortcodes', 'on' ) ) wp_enqueue_style( 'et-shortcodes-responsive-css', ET_SHORTCODES_DIR . '/css/shortcodes_responsive.css', false, ET_SHORTCODES_VERSION, 'all' ); } /** * Loads theme settings * */ if ( ! function_exists( 'et_load_core_options' ) ) { function et_load_core_options() { global $shortname; require_once get_template_directory() . esc_attr( "/options_{$shortname}.php" ); } } /** * Adds custom css option content to * */ function et_add_custom_css() { // use default wp custom css system starting from WP 4.7 // fallback to our legacy custom css system otherwise if ( function_exists( 'wp_get_custom_css_post' ) ) { return; } global $shortname; $custom_css = et_get_option( "{$shortname}_custom_css" ); if ( empty( $custom_css ) ) return; /** * The theme doesn't strip slashes from custom css, when saving to the database, * so it does that before outputting the code on front-end */ echo ''; } add_action( 'wp_head', 'et_add_custom_css', 100 ); if ( ! function_exists( 'et_get_google_fonts' ) ) : /** * Returns the list of popular google fonts * Fallback to websafe fonts if disabled */ function et_get_google_fonts() { $websafe_fonts = et_core_get_websafe_fonts(); $google_fonts = et_core_use_google_fonts() ? et_core_get_saved_google_fonts() : $websafe_fonts; return apply_filters( 'et_google_fonts', $google_fonts ); } endif; if ( ! function_exists( 'et_get_websafe_font_stack' ) ) : /** * Determines a websafe font stack, using font type * */ function et_get_websafe_font_stack( $type = 'sans-serif' ) { $font_stack = ''; switch ( $type ) { case 'sans-serif': $font_stack = 'Helvetica, Arial, Lucida, sans-serif'; break; case 'serif': $font_stack = 'Georgia, "Times New Roman", serif'; break; case 'cursive': $font_stack = 'cursive'; break; } return $font_stack; } endif; if ( ! function_exists( 'et_gf_attach_font' ) ) : /** * Attaches Google Font to given css elements * */ function et_gf_attach_font( $et_gf_font_name, $elements ) { $google_fonts = et_get_google_fonts(); printf( '%s { font-family: \'%s\', %s; }', esc_html( $elements ), esc_html( $et_gf_font_name ), et_core_esc_previously( et_get_websafe_font_stack( $google_fonts[$et_gf_font_name]['type'] ) ) ); } endif; if ( ! function_exists( 'et_gf_enqueue_fonts' ) ) : /** * Enqueues Google Fonts * */ function et_gf_enqueue_fonts( $et_gf_font_names ) { global $shortname; if ( ! is_array( $et_gf_font_names ) || empty( $et_gf_font_names ) || ! et_core_use_google_fonts() ) { return; } $google_fonts = et_get_google_fonts(); $protocol = is_ssl() ? 'https' : 'http'; foreach ( $et_gf_font_names as $et_gf_font_name ) { $google_font_character_set = $google_fonts[$et_gf_font_name]['character_set']; // By default, only latin and latin-ext subsets are loaded, all available subsets can be enabled in ePanel if ( 'false' === et_get_option( "{$shortname}_gf_enable_all_character_sets", 'false' ) ) { $latin_ext = ''; if ( false !== strpos( $google_fonts[$et_gf_font_name]['character_set'], 'latin-ext' ) ) $latin_ext = ',latin-ext'; $google_font_character_set = "latin{$latin_ext}"; } $query_args = array( 'family' => sprintf( '%s:%s', str_replace( ' ', '+', $et_gf_font_name ), apply_filters( 'et_gf_set_styles', $google_fonts[$et_gf_font_name]['styles'], $et_gf_font_name ) ), 'subset' => apply_filters( 'et_gf_set_character_set', $google_font_character_set, $et_gf_font_name ), ); $et_gf_font_name_slug = strtolower( str_replace( ' ', '-', $et_gf_font_name ) ); wp_enqueue_style( 'et-gf-' . $et_gf_font_name_slug, esc_url( add_query_arg( $query_args, "$protocol://fonts.googleapis.com/css" ) ), array(), null ); } } endif; if ( ! function_exists( 'et_pb_get_google_api_key' ) ) : function et_pb_get_google_api_key() { $google_api_option = get_option( 'et_google_api_settings' ); $google_api_key = isset( $google_api_option['api_key'] ) ? $google_api_option['api_key'] : ''; return $google_api_key; } endif; if ( ! function_exists( 'et_uc_theme_name' ) ) : /** * Fixes the bug with lowercase theme name, preventing a theme to update correctly, * when an update is being performed via Themes page */ function et_uc_theme_name( $key, $raw_key ) { if ( ! ( is_admin() && isset( $_REQUEST['action'] ) && 'update-theme' === $_REQUEST['action'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.NoNonceVerification return $key; } $theme_info = wp_get_theme(); if ( is_child_theme() ) { $theme_info = wp_get_theme( $theme_info->parent_theme ); } $theme_name = $theme_info->display( 'Name' ); if ( $raw_key !== $theme_name ) { return $key; } return $theme_name; } add_filter( 'sanitize_key', 'et_uc_theme_name', 10, 2 ); endif; if ( ! function_exists( 'et_core_exists_in_active_plugins' ) ) : function et_core_exists_in_active_plugins() { $result = defined( 'ET_BUILDER_PLUGIN_DIR' ) || defined( 'ET_BLOOM_PLUGIN_DIR' ) || defined( 'ET_MONARCH_PLUGIN_DIR' ); return $result; } endif; core_functions.php000064400000145272152214575740010324 0ustar00 true, 'context' => 'epanel', 'name' => 'save', 'nonce' => wp_create_nonce( 'et_core_portability_export' ), ); $epanel_save_url = add_query_arg( $args, admin_url() ); wp_localize_script( 'epanel_functions_init', 'ePanelSettings', [ 'clearpath' => get_template_directory_uri() . '/epanel/images/empty.png', 'currentTheme' => et_core_get_theme_info( 'Name' ), 'epanel_nonce' => wp_create_nonce( 'epanel_nonce' ), 'help_label' => esc_html__( 'Help', $themename ), // phpcs:disable WordPress.WP.I18n.NonSingularStringLiteralDomain -- Following the standard. 'et_core_nonces' => et_core_get_nonces(), 'epanel_save_url' => $epanel_save_url, 'allowedCaps' => array( 'portability' => et_pb_is_allowed( 'portability' ) ? et_pb_is_allowed( 'et_code_snippets_portability' ) : false, 'addLibrary' => et_pb_is_allowed( 'divi_library' ) ? et_pb_is_allowed( 'add_library' ) : false, 'saveLibrary' => et_pb_is_allowed( 'divi_library' ) ? et_pb_is_allowed( 'save_library' ) : false, ), 'i18n' => [ // phpcs:disable WordPress.WP.I18n.NonSingularStringLiteralDomain -- Following the standard. 'Code Snippet' => esc_html__( 'Code Snippet', $themename ), 'Theme Option' => esc_html__( 'Theme Option', $themename ), // phpcs:enable WordPress.WP.I18n.NonSingularStringLiteralDomain ], ] ); // Use WP 4.9 CodeMirror Editor for some fields if ( function_exists( 'wp_enqueue_code_editor' ) ) { wp_enqueue_code_editor( array( 'type' => 'text/css', ) ); // Required for Javascript mode wp_enqueue_script( 'jshint' ); wp_enqueue_script( 'htmlhint' ); } et_builder_load_library(); ET_Cloud_App::load_js(); } } /* --------------------------------------------- */ /* Enabling CSSlint for codemirror */ if ( ! function_exists( 'et_epanel_enable_css_lint' ) ) { function et_epanel_enable_css_lint( $settings ){ $modes = array( 'text/css', 'css', 'text/x-scss', 'text/x-less', 'text/x-sass' ); if ( in_array( $settings['codemirror']['mode'], $modes, true ) ) { $settings['codemirror']['lint'] = true; $settings['codemirror']['gutters'] = array( 'CodeMirror-lint-markers' ); } return $settings; } add_filter( 'wp_code_editor_settings', 'et_epanel_enable_css_lint' ); } /* Adds additional ePanel css */ if ( ! function_exists( 'et_epanel_css_admin' ) ) { function et_epanel_css_admin() { ?> id ); if ( ! wp_style_is( 'et-core-admin', 'enqueued' ) ) { wp_enqueue_style( 'et-core-admin-epanel', get_template_directory_uri() . '/core/admin/css/core.css', array(), et_get_theme_version() ); } wp_enqueue_style( 'epanel-style', get_template_directory_uri() . '/epanel/css/panel.css', array(), et_get_theme_version() ); if ( wp_style_is( 'activecampaign-subscription-forms', 'enqueued' ) ) { // activecampaign-subscription-forms style breaks the panel. wp_dequeue_style( 'activecampaign-subscription-forms' ); } // ePanel on theme others than Divi might want to add specific styling if ( ! apply_filters( 'et_epanel_is_divi', $is_divi ) ) { wp_enqueue_style( 'epanel-theme-style', apply_filters( 'et_epanel_style_url', get_template_directory_uri() . '/style-epanel.css'), array( 'epanel-style' ), et_get_theme_version() ); } } } if ( ! function_exists( 'et_epanel_hook_scripts' ) ) { function et_epanel_hook_scripts() { add_action( 'admin_enqueue_scripts', 'et_epanel_admin_scripts' ); } } /* --------------------------------------------- */ /* Save/Reset actions | Adds theme options to WP-Admin menu */ add_action( 'admin_menu', 'et_add_epanel' ); function et_add_epanel() { global $themename, $shortname, $options; $epanel = basename( __FILE__ ); if ( isset( $_GET['page'] ) && $_GET['page'] === $epanel && isset( $_POST['action'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.NoNonceVerification -- logic for nonce checks are following if ( ( isset( $_POST['_wpnonce'] ) && wp_verify_nonce( $_POST['_wpnonce'], 'epanel_nonce' ) ) || ( 'reset' === $_POST['action'] && isset( $_POST['_wpnonce_reset'] ) && wp_verify_nonce( $_POST['_wpnonce_reset'], 'et-nojs-reset_epanel' ) ) ) { if ( ! isset( $GLOBALS['et_core_updates'] ) ) { et_register_updates_component(); } epanel_save_data( 'js_disabled' ); //saves data when javascript is disabled } } $core_page = add_theme_page( $themename . ' ' . esc_html__( 'Options', $themename ), $themename . ' ' . esc_html__( 'Theme Options', $themename ), 'edit_theme_options', basename( __FILE__ ), 'et_build_epanel' ); add_action( "admin_print_scripts-{$core_page}", 'et_epanel_admin_js' ); add_action( "admin_head-{$core_page}", 'et_epanel_css_admin' ); add_action( "load-{$core_page}", 'et_epanel_hook_scripts' ); } /* --------------------------------------------- */ /* Displays ePanel */ if ( ! function_exists( 'et_build_epanel' ) ) { function et_build_epanel() { global $themename, $shortname, $options, $et_disabled_jquery, $epanelMainTabs; // load theme settings array et_load_core_options(); $tabs = array(); $default_tab_names = array( 'ad' => _x( 'Ads', 'site ads placement areas', $themename ), 'colorization' => _x( 'Colorization', 'site color scheme', $themename ), 'general' => _x( 'General', 'general options', $themename ), 'integration' => _x( 'Integration', 'integrate third-party code', $themename ), 'layout' => _x( 'Layout', 'page/post', $themename ), 'navigation' => _x( 'Navigation', 'navigation menu', $themename ), 'seo' => _x( 'SEO', 'search engine optimization', $themename ), 'support' => _x( 'Support', 'documentation links', $themename ), 'updates' => _x( 'Updates', 'theme updates', $themename ), ); /** * Filters the data used to construct ePanel's layout. * * @since 3.2.1 * * @param array $options */ $options = apply_filters( 'et_epanel_layout_data', $options ); /** * Filters the slugs/ids for ePanel's tabs. * * @deprecated * * @since 1.0 * @since 3.2.1 Deprecated * * @param string[] $tab_slugs */ $epanelMainTabs = apply_filters( 'epanel_page_maintabs', $epanelMainTabs ); foreach( $epanelMainTabs as $tab_slug ) { if ( isset( $default_tab_names[ $tab_slug ] ) ) { $tabs[ $tab_slug ] = $default_tab_names[ $tab_slug ]; } } /** * Filters ePanel's localized tab names. * * @since 3.2.1 * * @param string[] $tabs { * * @type string $tab_slug Localized tab name. * ... * } */ $tabs = apply_filters( 'et_epanel_tab_names', $tabs ); et_core_nonce_verified_previously(); if ( isset($_GET['saved']) ) { if ( $_GET['saved'] ) echo '

    ' . esc_html( $themename ) . ' ' . esc_html__( 'settings saved.', $themename ) . '

    '; } if ( isset($_GET['reset']) ) { if ( $_GET['reset'] ) echo '

    ' . esc_html( $themename ) . ' ' . esc_html__( 'settings reset.', $themename ) . '

    '; } ?>

    'et-defaults-button epanel-portability' ) ) ); ?>
      $tab_name ) { if ( 'ad' === $tab_slug ) { $tab_slug = 'advertisements'; } printf( '
    • %2$s
    • ', esc_attr( $tab_slug ), esc_html( $tab_name ) ); } do_action( 'epanel_render_maintabs', $epanelMainTabs ); ?>

    array( 'href' => array(), 'title' => array(), 'target' => array(), ), ) ); ?>

    value="" />
    name ); } else { $et_checkboxes_value = ( 'pages' === $value['usefor'] ) ? get_pagename( $option ) : get_categname( $option ); } } ?>

    />



    array( 'href' => array(), 'title' => array(), 'target' => array(), ), ) ); ?>

    />

    array( 'href' => array(), 'title' => array(), 'target' => array(), ), ) ); ?>

    $option ) { $option_value = isset( $value['et_save_values'] ) && $value['et_save_values'] ? sanitize_text_field( $option_key ) : sanitize_text_field( $option ); $option_label = sanitize_text_field( $option ); $checked = isset( $defaults[ $option_value ] ) ? $defaults[ $option_value ] : 'off'; if ( isset( $stored_values[ $option_value ] ) ) { $checked = $stored_values[ $option_value ]; } $checked = 'on' === $checked ? 'checked="checked"' : ''; $checkbox_list_id = sanitize_text_field( $value['id'] . '-' . $option_key ); ?>
    />
  • Are you sure you want to do this?', $themename ) ); ?>
    loading
    ` in custom CSS would be encoded to `>`) so we have to disable kses filtering // while saving epanel options. $skip_kses = ! current_user_can( 'unfiltered_html' ); if ( $skip_kses ) { kses_remove_filters(); } $shortname .= 'save_epanel_temp' === $_POST['action'] ? '_' . get_current_user_id() : ''; foreach ( $options as $value ) { $et_option_name = $et_option_new_value = false; $is_builder_field = isset( $value['is_builder_field'] ) && $value['is_builder_field']; if ( isset( $value['id'] ) ) { $et_option_name = $value['id']; if ( isset( $_POST[ $value['id'] ] ) || 'checkbox_list' === $value['type'] ) { if ( in_array( $value['type'], array( 'text', 'textlimit', 'password' ) ) ) { if( 'password' === $value['type'] && _et_epanel_password_mask() === $_POST[$et_option_name] ) { // The password was not modified so no need to update it continue; } if ( isset( $value['validation_type'] ) ) { // saves the value as integer if ( 'number' === $value['validation_type'] ) { $et_option_new_value = intval( stripslashes( $_POST[$value['id']] ) ); } // makes sure the option is a url if ( 'url' === $value['validation_type'] ) { $et_option_new_value = esc_url_raw( stripslashes( $_POST[ $value['id'] ] ) ); } // option is a date format if ( 'date_format' === $value['validation_type'] ) { $et_option_new_value = sanitize_option( 'date_format', $_POST[ $value['id'] ] ); } /* * html is not allowed * wp_strip_all_tags can't be used here, because it returns trimmed text, some options need spaces ( e.g 'character to separate BlogName and Post title' option ) */ if ( 'nohtml' === $value['validation_type'] ) { $et_option_new_value = stripslashes( wp_filter_nohtml_kses( $_POST[$value['id']] ) ); } if ( 'apikey' === $value['validation_type'] ) { $et_option_new_value = stripslashes( sanitize_text_field( $_POST[ $value['id'] ] ) ); } } else { // use html allowed for posts if the validation type isn't provided $et_option_new_value = wp_kses_post( stripslashes( $_POST[ $value['id'] ] ) ); } } elseif ( 'select' === $value['type'] ) { // select boxes that list pages / categories should save page/category ID ( as integer ) if ( isset( $value['et_array_for'] ) && in_array( $value['et_array_for'], array( 'pages', 'categories' ) ) ) { $et_option_new_value = intval( stripslashes( $_POST[$value['id']] ) ); } else { // html is not allowed in select boxes $et_option_new_value = sanitize_text_field( stripslashes( $_POST[$value['id']] ) ); } } elseif ( in_array( $value['type'], array( 'checkbox', 'checkbox2' ) ) ) { // saves 'on' value to the database, if the option is enabled $et_option_new_value = 'on'; } elseif ( 'upload' === $value['type'] ) { // makes sure the option is a url $et_option_new_value = esc_url_raw( stripslashes( $_POST[ $value['id'] ] ) ); } elseif ( in_array( $value['type'], array( 'textcolorpopup', 'et_color_palette' ) ) ) { // the color value $et_option_new_value = sanitize_text_field( stripslashes( $_POST[$value['id']] ) ); } elseif ( 'textarea' === $value['type'] ) { if ( isset( $value['validation_type'] ) ) { // html is not allowed if ( 'nohtml' === $value['validation_type'] ) { if ( $value['id'] === ( $shortname . '_custom_css' ) ) { // save custom css into wp custom css option if supported // fallback to legacy system otherwise if ( function_exists( 'wp_update_custom_css_post' ) ) { // Data sent via AJAX is automatically escaped by browser, thus it needs // to be unslashed befor being saved into custom CSS post wp_update_custom_css_post( wp_unslash( wp_strip_all_tags( $_POST[ $value['id'] ] ) ) ); } else { // don't strip slashes from custom css, it should be possible to use \ for icon fonts $et_option_new_value = wp_strip_all_tags( $_POST[ $value['id'] ] ); } } else { $et_option_new_value = wp_strip_all_tags( stripslashes( $_POST[ $value['id'] ] ) ); } } } else { if ( current_user_can( 'edit_theme_options' ) ) { $et_option_new_value = stripslashes( $_POST[ $value['id'] ] ); } else { $et_option_new_value = stripslashes( wp_filter_post_kses( addslashes( $_POST[ $value['id'] ] ) ) ); // wp_filter_post_kses() expects slashed value } } } elseif ( 'checkboxes' === $value['type'] ) { if ( isset( $value['value_sanitize_function'] ) && 'sanitize_text_field' === $value['value_sanitize_function'] ) { // strings $et_option_new_value = array_map( 'sanitize_text_field', stripslashes_deep( $_POST[ $value['id'] ] ) ); } else { // saves categories / pages IDs $et_option_new_value = array_map( 'intval', stripslashes_deep( $_POST[ $value['id'] ] ) ); } } elseif ( 'different_checkboxes' === $value['type'] ) { // saves 'author/date/categories/comments' options $et_option_new_value = array_map( 'sanitize_text_field', array_map( 'wp_strip_all_tags', stripslashes_deep( $_POST[$value['id']] ) ) ); } elseif ( 'checkbox_list' === $value['type'] ) { // saves array of: 'value' => 'on' or 'off' $raw_checked_options = isset( $_POST[ $value['id'] ] ) ? stripslashes_deep( $_POST[ $value['id'] ] ) : array(); $checkbox_options = $value['options']; if ( is_callable( $checkbox_options ) ) { // @phpcs:ignore Generic.PHP.ForbiddenFunctions.Found $checkbox_options = call_user_func( $checkbox_options ); } $allowed_values = array_values( $checkbox_options ); if ( isset( $value['et_save_values'] ) && $value['et_save_values'] ) { $allowed_values = array_keys( $checkbox_options ); } $et_option_new_value = array(); foreach ( $allowed_values as $allowed_value ) { $et_option_new_value[ $allowed_value ] = in_array( $allowed_value, $raw_checked_options ) ? 'on' : 'off'; } } } else { if ( in_array( $value['type'], array( 'checkbox', 'checkbox2' ) ) ) { $et_option_new_value = $is_builder_field ? 'off' : 'false'; } else if ( 'different_checkboxes' === $value['type'] ) { $et_option_new_value = array(); } else { et_delete_option( $value['id'] ); } } if ( false !== $et_option_name && false !== $et_option_new_value ) { $is_new_global_setting = false; $global_setting_main_name = $global_setting_sub_name = ''; if ( isset( $value['is_global'] ) && $value['is_global'] ) { $is_new_global_setting = true; $global_setting_main_name = isset( $value['main_setting_name'] ) ? sanitize_text_field( $value['main_setting_name'] ) : ''; $global_setting_sub_name = isset( $value['sub_setting_name'] ) ? sanitize_text_field( $value['sub_setting_name'] ) : ''; } /** * Fires before updating an ePanel option in the database. * * @param string $et_option_name The option name/id. * @param string $et_new_option_value The new option value. */ do_action( 'et_epanel_update_option', $et_option_name, $et_option_new_value ); if ( 'et_automatic_updates_options' === $global_setting_main_name && 'save_epanel_temp' !== $_POST['action'] ) { $updates_options[ $global_setting_sub_name ] = $et_option_new_value; update_site_option( $global_setting_main_name, $updates_options ); } else { et_update_option( $et_option_name, $et_option_new_value, $is_new_global_setting, $global_setting_main_name, $global_setting_sub_name ); } } } } if ( $skip_kses ) { // Enable kses filters again kses_init_filters(); } $redirect_url = add_query_arg( 'saved', 'true', $redirect_url ); if ( 'js_disabled' === $source ) { header( "Location: " . $redirect_url ); } die('1'); } else if ( 'reset' === $_POST['action'] ) { check_admin_referer( 'et-nojs-reset_epanel', '_wpnonce_reset' ); foreach ($options as $value) { if ( isset($value['id']) ) { et_delete_option( $value['id'] ); if ( isset( $value['std'] ) ) { et_update_option( $value['id'], $value['std'] ); } } } // Reset Google Maps API Key update_option( 'et_google_api_settings', array() ); // Resets WordPress custom CSS which is synced with Options Custom CSS as of WP 4.7 if ( function_exists( 'wp_get_custom_css' ) ) { wp_update_custom_css_post(''); set_theme_mod( 'et_pb_css_synced', 'no' ); } $redirect_url = add_query_arg( 'reset', 'true', $redirect_url ); header( "Location: " . $redirect_url ); die('1'); } } } } function et_epanel_media_upload_scripts() { global $themename; wp_enqueue_script( 'et_epanel_uploader', get_template_directory_uri().'/epanel/js/custom_uploader.js', array('jquery', 'media-upload', 'thickbox'), et_get_theme_version() ); wp_enqueue_media(); wp_localize_script( 'et_epanel_uploader', 'epanel_uploader', array( 'media_window_title' => esc_html__( 'Choose an Image', $themename ), ) ); } function et_epanel_media_upload_styles() { wp_enqueue_style( 'thickbox' ); } global $pagenow; if ( 'themes.php' === $pagenow && isset( $_GET['page'] ) && ( $_GET['page'] === basename( __FILE__ ) ) ) { add_action( 'admin_print_scripts', 'et_epanel_media_upload_scripts' ); add_action( 'admin_print_styles', 'et_epanel_media_upload_styles' ); } /** * Register ePanel portability. * * @since To define * * @return bool Always return true. */ function et_epanel_register_portability() { global $shortname, $themename, $options; // get all the roles that can edit theme options. $applicability_roles = et_core_get_roles_by_capabilities( [ 'edit_theme_options' ] ); // Make sure the Portability is loaded. et_core_load_component( 'portability' ); // Load ePanel options. et_load_core_options(); // Include only ePanel options. $include = array(); foreach ( $options as $option ) { if ( isset( $option['id'] ) ) { $include[ $option['id'] ] = true; } } // reason: explanation Follwoing the standard and Not processing form data. // phpcs:disable. // WordPress.WP.I18n.NonSingularStringLiteralDomain. // WordPress.Security.NonceVerification.Recommended. // Register the portability. et_core_portability_register( 'epanel', array( 'title' => esc_html__( 'Import & Export Theme Options', $themename ), 'name' => sprintf( esc_html__( '%s Theme Options', $themename ), $themename ), 'type' => 'options', 'target' => "et_{$shortname}", 'include' => $include, 'view' => ( isset( $_GET['page'] ) && "et_{$shortname}_options" === $_GET['page'] ), 'applicability' => $applicability_roles, ) ); // Register the portability. et_core_portability_register( 'epanel_temp', array( 'title' => esc_html__( 'Import & Export Theme Options', $themename ), 'name' => sprintf( esc_html__( '%s Theme Options', $themename ), $themename ), 'type' => 'options', 'target' => "et_{$shortname}_" . get_current_user_id(), 'include' => $include, 'view' => ( isset( $_GET['page'] ) && "et_{$shortname}_options" === $_GET['page'] ), 'applicability' => $applicability_roles, ) ); // phpcs:enable } add_action( 'admin_init', 'et_epanel_register_portability' ); /** * Flush rewrite rules when a change in CPTs with builder enabled is detected. * * @since ?? * * @param string $et_option_name * @param mixed $et_option_new_value */ function et_epanel_flush_rewrite_rules_on_post_type_integration( $et_option_name, $et_option_new_value ) { if ( 'et_pb_post_type_integration' !== $et_option_name ) { return; } $old = et_get_option( $et_option_name, array() ); if ( $et_option_new_value !== $old ) { flush_rewrite_rules(); } } add_action( 'et_epanel_update_option', 'et_epanel_flush_rewrite_rules_on_post_type_integration', 10, 2 ); if ( ! function_exists( 'et_theme_options_library_admin_enqueue_scripts' ) ) { /** * Enqueue Theme Options library scripts on Theme options page. * * @since ?? * * @param string $hook_suffix Page hook suffix. * @return void */ function et_theme_options_library_admin_enqueue_scripts( $hook_suffix ) { global $shortname; $is_options_page = 'toplevel_page_et_' . $shortname . '_options' === $hook_suffix; // Only used on theme options page. if ( ! $is_options_page ) { return; } if ( ! class_exists( 'ET_Theme_Options_Library_App' ) ) { require_once ET_EPANEL_DIR . '/theme-options-library/theme-options-library-app.php'; } ET_Theme_Options_Library_App::load_js(); } add_action( 'admin_enqueue_scripts', 'et_theme_options_library_admin_enqueue_scripts' ); } custom_hsb_h.png000064400000001712152214671710007736 0ustar00PNG  IHDR>BC pHYs   cHRMz-RqEf9!'VPIDATx]HA3{)h"w ACD>$كP/%!D`ABDC>B! EEyznsm{{]gffo~ ٙ13_|m-6ڮ(/=}$I@a`B{؋m㢘߿<ץTMT,)=< ~f.g)ItI5.-4 ;qq]=Fot\ǝdX'26]'t%k9դiL#`#wd7ItF404CcTښ*A#PYQif2u~ek´~౹tqYh5քpV#`s㲺J["MQi*F@3FUOFwW+tw"U[D{S`86{i\#Iׯ݇oYx}K^ߒh舎)ߐUltfK_Uouqz$x1P077Goz)F<k_99tIENDB`colorpicker_overlay.png000064400000024163152214671710011343 0ustar00PNG  IHDR<q pHYs   cHRMz-RqEf9!'V'IDATx}ˎH'O;8n]ݕY=%G N:(TU36w/3f03=;~6w/W=x1/Ǣ ?wZݽݿ}/cfkyOl@" NԳz1yvq 羭ێx<wO?_W{z|Iـs^|nn7O?d߾}/~hffmဵV玁 =*}\ yG7FrV@t|Zmǣ=~v󏏏[_?~x<ڗʉ'o lrD֎BY 6xlj[km[k[=E#Rs~шR;|P}۞gn;ׯ__//ׯ_|X00)&g!'^IMa$ FA9A0cN61{`rw{<X|>}vf}o_ׯoY} "m"[Ơ;DT.Vx$.`"4ԙl0B߾6{?" 5~Gh}v(RTg"NH*| ZÓ5Ë#zGPfr׊xF,Qv5@5ۮn߿~}|| ~n=ffZcU5d+-눎tI()@1[!`uk&d{;aېLh]S@*ҷoǶ,P OZHRse882ޏGQ=ffX5ptð$]ua :DKa誝l=϶GvۮNT?>>LJ=x9bM,J"ꋲ1G|ysax$Е4h)@6nT^"1b# sd -@jGd}Vv~ St}}w{<GhQ*TK"Oh 좗vӶMFzP5 sSȀ J.hn7Q@C a&WuPnnXvnfqd>}gލpD tG~}amAܽp (-xK422%ڶ"iT@}FF"a2F&xhY6"0n4kk hE EŔ'2NU'"JG=+2xCJBL-Uu 糹{[_w nGC[v㱡E1>cP'ODmE82h(̃EQK: E38ro?aKUR贳w H=wngvmGGO3ӈU`Xf!о6pLUm9eyG$&N;kX uw;` =k;,3XQ R," cRQ!)O)@31&g 4ɻlLOId۾@+w}gfX{rv|h*_T4LݡkG[? 8#Ho5_wO1,ns9)1xH]C 9a3#[?x,V ;+\|)5ђPɑOR+L8JBC1a\1tuA܈g# ĻC̠Nxچ#68[Gd8SL_)[=>@IE}LD/dZ2H&Eܣln"5"-npFζSZCf.:Pl@ڧаU`]\Y-PbXD.9OuX756a1t0EdR3{cblXƹD,*-& y@vn-LX썢ՠx鼣݀  g86=O7wn%вD g50d%TRJD";AqjYpV^d8*Z@ Zu( THx6 Rmst#JNl7"V5Z8T$腦(DFkc*# RacZܩ-pSfᙍJ:Ej%E49LY!'}, p@@Jc@ ?A7<*]5t48cB,U-`3 ל3*8M<#09H];eƠ! wJ}+*7fg y2!r#DπvٞRNM4| ߇ZꤹyPP9bX@%EdKDc8dQАȧPx- w0cIyPpgǧȆrІ -3 E 8R$psEVMQ3-eoATh Bc c@z< B@吕i׋o K`"1 W(ςx<@KwLJ<=NI_ @?&Qc96 Bz6KljRkԗ1bLchzGzƵH ^WB-:E/^ҡ}2A"'*<( #"ʓ!z\WTh aE[*Id5^@mǮYrǸX eC\1Џh8MQ!fA6e*3ͳ ߝ_i LMɅQ{ƭ#pQYQ4*E1m:6t:~Fd":Dwnv#ìGl{G+XnSǁQLE=W-2@lAzRmh8(N/n'Kt4ee h鼾atEKJ`'ECFlZphEٮ4V%'+, !-= /28z I]j:լw*-8']6>o\;M$)Ts5|PǾ`-FF.`K1q=XL ')ZpM1l#:haV`% r1-R!;{AyHg@oZ ^ +D~,SV n8)D&hqmI-1^͠"WK0\)]ҟRB?* XmP&ӖFGA(=-qS7OR<3kFs G_&}hI*5Mt02h!w%~}hU '25vwWa)wI7:z܏XР¨}fӚCW;j/SӟxF>FEhDTDͭ2)rC F,#? FmcX[)JªalR |Iwx,G݂>K(2+\wDGeEpй텓ԇ9fwqo @<+[&Syo.VJg Ղ:3v"a44D ĥ"= t++?:i嗒Ɗ",]h#.qRVzDf4ų~g _JC͖(oċ?0rU%Ub!qfU˥=˨QD3~=rMѢze[Bs$a`g85m^\[ 6n'&KeQ Bډr׉N-aqQ (²HDԊ LPe6zgl!3T~@g!Lp%mKT&xq 8؆.ZvBNwwvij?")t2Xt(Mh0i k*DLpוJ~ קcPMp1J|ײ¤8Fdɢ該Eb)b@8Lw$̐9O2솓>"Q{Uo6ANEgO9X΢Rd+ g=dLŇ2 |,271uXLbf)+B#mFOt|]| ;􈱏;R;J7j>yf BQD <#`7A,>gbr۳Yb(!+OŻJ (egFwB](#j+N"]4>=a?@㠮n oՋ%D|JsֆZk0Jڦ<͕l |b5w%{d ;Dֈ} hENnJ7~"(W+^UDVɱbrb_ThrDwJ &_I@fsԼ5_xmfS-yc*Ã+'NL\-c4b+ڠ>7Ґ,MQ!,NYx< -XK!\p65g(@N(Z:8w-1Ȯpe0/wuМQtZ0~nUc2FkfF=@kE50sYOLp$ *ۦPd-Dq*=VȘ2S%{= ~f(ΞPD{E̳wMjL8EqvJǙԹɈ~_e+ь4%TCl{EO6{u0?0Bی5 bE?Զ2VV ՜';XɶhMv Hc~ 5&B&:`{PG*#^^j?(17E*Ex>%̢dĊW)Q`8 Ep_)+ %(3xOВj^"Z-҉ qv>2RT4|-0!u+T@%QaxʒMep-0_M-1 YODeF7]8-iwl26H'ꑖ,Yuj3wUF_L&:;~MwM(]-XUOǐ%`j!iB*ꕩdCYa_"y?IYBVylaVXlw)+ #V ;8(ȟWk'&+Y`F3"hFlϫM&̎!g&@fTsX+ 3KN|Mh7 hqxuEOz Ц&a& r0#T ͟i)5kN M^^2=֢MO2Ė v1TazEO(ob`tX+sTdkB7Xb!D'hkfٜ[UlE&fdV EQwOξ)-4Z4ϏZqiZxTvIy>40>ܧ"U"Ii+D'>z[6'W:(4DHhehHmM1ۘ"eO7aIZXzۣ6Y-j9X(K,itqP72UfžuRAj)\ UWļ6e BJ4)V6t2 b*z^t΂wJA=ve-Wg>OfXKNT9a =>4+)LPZ/YetQrh益^ wWT X3Af(6d9k:Z=&ZbeЫcbISYR$d*yѨSEM}ZeǝdzPqH_5jH! g#Q*{YDǷMo(`{/y@:.ɨd1Jt}qߡN,- 71W O<곓I!agn?'ﭘip|ȶC,6&kUJѬ|/53( -G٬$_^.Sn{EMZ\]PBGZJVeBPgd (+QیDDbה?!-e SQ7ZcEBs55Hg'M% 0-GQ)}eĪ@2[i;!@' VDP9he*kV(YdjIXp nd/+m\$y-"@EdRg]} S8Gݤ.W:Ӌaem? eVߣD4XIʀ0/PFyrх/_hSyytXӂwپ!eVJɕJE'.k*27j.(E@g|"+a g6D?W6Ŭ-@፞"A%0ZKWdt2D'".l` +l-JoW,+lEMHQU5' t^ {̬e+ 2Z 4_&F4^+HdG^&\w|6;u=5=JzE`̙>Fr"l #DGU谪T.%ʺ]Mh,J{0KQM}{!:ƒW_PHeLpMQUZ:8g|a-)3+ӶfV[.,MZTAT-/dboj݄qaAy2c M RDl2EҤi}f)jܣ1+~^K,t)R`8~<)5.E9x =YPb|W({РN'+bmauֱP_W{`) W5FY$_)=3oy||9t2"`XDKgT#Ҥd$[a2oa@zQD4i3 Ue36dzeBޮ *!H}e11|L" -(_udK%/Pn8-QqT8I/Ae"M&&/G3:V O#u 2(ri*LY}ϙb+`+gM- 2Xݐ Qk&+Wz+ؽxRձzXV*|aPxSaEY3ZP g K_%FhW|J#}e@ _fxiu&+uCVOG)8J8UM>= 0fc <,i`³fTZxU\8QK't!JDH\.+)l@\"bdWځ^޸H8Qh!BթpSV"Bpu/V(}` 2$c*\LC3:{gPNiJ@]tZ@T z\5=R{!|Iy%bV=գ);Sd9´Up-g *^y>g_/]o]KXKMcUQW{f"(L|lNhsq˶7:X.x kwfM2}hlQ칭R*(z'w0K<2bU>WzPUwMѤ*W[*MNWX*ըSJ:-nԦT}M|WSy %jMDpt|*₶\h, T8)@+/_4+\b7iZ8'=;q;YuP juLVAN^5]? U9ah)x˱ `L-jXO*yV.·j+ݱ+ @yO ,֬oXFh{x +'jWȗjһl9~V7gHᕈIѰ,ZWZr@>Łm+d|>=@zsgj_ W+IW1l3?}HWK~>_ox=){zIENDB`colorpicker_select.gif000064400000000116152214671710011112 0ustar00GIF89a !, hXFY}%pZtBC pHYs   cHRMz-RqEf9!'VIDATx]HSaǜu(D$7A7vXYiid Yx!ieARt !I#77;];7B;x^yy6`!'}n^Cv zloc:Q ƣJ?8?0 x$?o1pP}hCӧNܟ݇N1\KgHvNiڋ] ʎiu& n!hLjT:jWJ<dg ~dg|ئY\ZҪXf92|gsCMHP IL׫$(8vvuOb"efuxtf/;WLʖ<~SkGt FU6rtb[%JLrDIqE2טOP=xb_Y"f5[A1aK_5N;DQqBi~|KLKN^R0#Su_O[}tQRZ^ޝTնz!_&7 OC?Mftc#58cs~URT ̜9a`bfN'+9}C@Kҕ @^N&G{" {"@" I{$lC"& R͠x͡yJz^~&Ё\'Pap,IP%ՂuP%3V[uq^@Meѕ 8vVW2N^Mk:"Jyh40,[)-O]aA5>׷qF^'4w%#K'#DΑD`bfWݛfGU:yZuD"=)TIENDB`custom_rgb_r.png000064400000001772152214671710007754 0ustar00PNG  IHDR>BC pHYs   cHRMz-RqEf9!'VIDATx]HAvgӳ#/1X臌f愹pQ}>OD,ן'(OO:=3&wǬ}RR6 :n t_|>rN#@<qvW@~Ud cϹ͎zR6By#Ǒ1VvY4u,q7F7\1lF F7FmI#VeF` lx~ s8D1XjՄq:cXG8DE2yRQF"MMmX`47jqZp4U#@ЦiK5puI?w}g^:{IENDB`custom_submit.png000064400000001745152214671710010164 0ustar00PNG  IHDR,7ߧ pHYs   cHRMz-RqEf9!'VkIDATxodƟׯĉF-EaKAKӺl7\ 2&6:iRA-JW5ݔ~i;'..HkGͱ9DXҰ}^X:B=[gXea0 󟷈'fgfH v"IENDB`custom_hex.png000064400000001062152214671710007435 0ustar00PNG  IHDRH,Ii\ pHYs   cHRMz-RqEf9!'VIDATxKAǿ L"<Ea!:;<B!P`F +mcmivf7TkwPbшt3ӊ5Z&3|i#x2cا{Pj~UUQE_{Ṋ}O ]j&f2ws<2YwQJ50B #$1RP*x0FpڌSˏU)w?t`vrbZY>BC pHYs   cHRMz-RqEf9!'VvIDATxkHAvgz}PYx]J)H"oՇ! DA=>HeaVTPA)0CqZUwCڲ]7C;̇ٹٛ;S =>[&jKMI>a.uh5苁@t߮ې&طIQ*tF*2fm4T"N 6ڒ>؜ohk}>Fjt\-CJ~幺@`i:ip‚_Rt> ! wӨYΚjZˀM:=82,#8=T/9]Ô/Cg#B> >kytq{=V~zoCӔeC+W3V$޹ٙA}r!β)/[8Bj籏-ٹ l[SU],Xs.OFH/nؘQ? E"M=޹4b0DIҾMhW:D ik>zzj2l5C^G%%+4HhwI'$!6ڲl_ZJ7֪P(]HUZdx7=:# uY,F@6lh2e#dmc5,.Q#;swkHz#t,Fp5T\<GE(ypH|;\x Ii#s1s=sхڣ\JuO;5w9yk\#![M/=}߉@Zj+ɫt+ ]#WsD~cj$!Ŋ_gBIENDB`custom_background.png000064400000003574152214671710011002 0ustar00PNG  IHDRd8 pHYs   cHRMz-RqEf9!'VIDATxowqvv%JkpH 'ĉ#B pąn)DR B(T&]{8tg6}iyl볳/}5;4$WOi'IUUj$KeN/~w:,61˱hp1&e&dNK8ɟ.52%8sf7_˃$]l7Gp~3^`jK}V|~(K ܂x}`4edA@ 4<O?ڬs}w''a\~3s,,$w=N㇏7L$9q/{$~;z3lSyUT+k˞3sY) (tI[fx!ȃ*~H̊'i:_! JA2A2AAAdBAQ])! AAAc #PQ}‘"Џ # R 2 e%Y"Џ #Ȱ:A# Ղ CF"Џ #PZd(Qa}$2cj} CDd(,OA"L_b6Lrܷ6ks9\0䮏ӺsDp.VȬK\!nks95Afnƈ Cw|ddV$> A"̒ToA~LAAAAF # yA\e222,222+.7:2Zra;Pdz2s2d0dZFF Cj#@ c#@AAe CjAF cAFAAenl;2B[! 2 A+ddd3Ja:{1"XdX CF"ЏZd(Xd(Ùyz2db C Cfq ŬALAY!o# ʘ /# M2a*222̒ToAVȂ C& 22̌ArV P ` -t{c2B[! 2 2 V \ h`2a=u@d8NX 2d0206Zj#@ '0dZjAF t_ۑ"Џ # 2. P@AAFA[AA堞! 2 A2=M:3(2 =Z"# \] # yAzC cDAdV/# M3d(,IadTdddd 2fb2anoUF C? CDdx3}6Zs[V<(>[u&u[9J>h/o^sx"(?wwrރΉη_K|),?Fn޸fr07{ D  l0dKw0p$OZ?.6\\lxk7~׿f4K+nmzR5Ms%ɍņ$N8,GIL$OR%I4?LiF/AUU>^L^| {[5MJsq+ei%yTUʜMRIENDB`custom_indic.gif000064400000000126152214671710007720 0ustar00GIF89a# Θ!,# 'L˝qh\Emf86!xNS~ kLP;select.png000064400000000772152214671710006545 0ustar00PNG  IHDR$$gAMA7tEXtSoftwareAdobe ImageReadyqe<IDATxJ@w7zIR"\ ^BC pHYs   cHRMz-RqEf9!'VIDATx{HA;wz^(,|$>E"IWA D= (RYETH F8-{폵mnoFwcv73ߛgO5bwCR,2#Q:dwbqH' (HapHWn)Mдh-ͪB YQ:qK4ܴl)n 1QU8 $ʷ[u|9;'X `X#[(cԂ̬wm1 *ܖ=:mxwÇJ3Rhz(*iaV鼪\CS-."6^UUNL0S7h^uL k#Y9dWHg}LEy!v_4o_5++)eʲK#Ie$ cpJ_ΜYLO5"u9#?vY/p{&qTTV%'.,,,lӧm2PtHFüJLYc_Ig`@HAJS*􋯲tJGĔm:6F&ŠQP7y@|LDcwȒ ۣBwvZU*վ5.TUoCzpDwO@@$0$!" O q1&˨ Pfٝ2%]o[D#_"@HDñ%jFD@ S*ШIl"I>\<)D$)k"r\P~ce0Wk\>Ε~",Ӛޕ%aΝ>n{ "; ={_)k"&a|z-[| (C"0dc5(R:Aͺl7HRIENDB`postinfo-date.gif000064400000001046152214671710010016 0ustar00GIF89a7'CxRV䛛qpppiDDD!,7'"$ Uhl/tx8FAH{rY Ct*2ʩu= 8qU%Wb?$<^JY/g)xm}pu,lzj}(.k*{q~-z~)f[J͜?ٷs*?( ' @*\ HqE0(hX  )d/n~9@*PκOf 4 CW迌E}fƘʹRI~ݮ*?hH$]f4.(Wń ' 8ZSp6ˇN c"Na<4* &:ֺ Dd2ć </yķPdIENDB`custom_hsb_s.png000064400000002220152214671710007744 0ustar00PNG  IHDR>BC pHYs   cHRMz-RqEf9!'VIDATxmHSQǟ{6ݚX1-{T #( ?A/ dE!aR}H("!2UV[V79vo潊rpv3Ξ=9iv;q a>^DZ| q\bbG\xR @0z4DKoyRnNNq:5]'eـ.<߲e}!)\a¬e٢gך6.2cQdtz}nwyyynn.;ibz.08}JI8: OhRUU5/-o٢WSPuuXЌ46Mvܳ*7=appH c08 Q yaZZYY{J6oojFһ 4-ixUZZZ>AsfR%K8gGG^"3Ljj}(u⌆iM8 >!T:#=MI"8~]ҍF̵Xq3v\RLsgB}.WVF]Q"."]Qe˗*Hd*3JD"a*%\뤈TX\(7QZZZ\\@enL,Mʋ-'m흪$fSD`vR'Q㵚uOP"yGeKhPcXrVS+bJt : D)Dӡq^KDD>'3GwW%̩W؁/4hE?ӳ1 fPR}H|mzoTߎ'.ߌDh<.Zȃ&H^ %ڑGݰrGDs${LjקZˈ*G!]g9' kIENDB`postinfo-categories.gif000064400000001017152214671710011224 0ustar00GIF89a['ڊuIDDD!,['IQ8ͻ`Ai'1lΥ!8"p˳pHu~  ШtQ&39^6uJcBF 7mKyHrwtz|4x7bY`f_EET pxzSSm!Hj7v3^ehh_q(M0D; R>M 4*TX@@AwJDC DdE Cء%f˗9<FpּH3'ƚ'3vf]:T͝9d*U' AiJ&RXY'rj'Xg{-[PFDS_V{500 &!L X"ۻtO5KW.i%vТE򼋗sj1^8ڞWvzEGxN8;