-
-
- Duplicator - Installer
-
- |
- - - | -
-
-
-
- Help Overview
-
-
-
-
-
-
- |
- - - - version: [Help] - - - | -
diff --git a/assets/css/about.css b/assets/css/about.css
new file mode 100644
index 00000000..6ebf1129
--- /dev/null
+++ b/assets/css/about.css
@@ -0,0 +1,410 @@
+#dup-admin-about{
+ margin-top: 20px;
+}
+
+#dup-admin-about *,
+#dup-admin-about *::before,
+#dup-admin-about *::after {
+ -webkit-box-sizing: border-box;
+ -moz-box-sizing: border-box;
+ box-sizing: border-box;
+}
+
+#dup-admin-about .dup-admin-about-section {
+ margin-bottom: 20px;
+ padding: 30px;
+ background: #ffffff;
+ border: 1px solid #dddddd;
+ line-height: 2;
+}
+
+#dup-admin-about .dup-admin-about-section h1,
+#dup-admin-about .dup-admin-about-section h2,
+#dup-admin-about .dup-admin-about-section h3,
+#dup-admin-about .dup-admin-about-section h4,
+#dup-admin-about .dup-admin-about-section h5 {
+ margin-top: 0;
+ padding-top: 0;
+ line-height: 1.6;
+}
+
+#dup-admin-about .dup-admin-about-section h2 {
+ font-size: 24px;
+}
+
+#dup-admin-about .dup-admin-about-section h3 {
+ font-size: 18px;
+ margin-bottom: 30px;
+ color: #23282c;
+}
+
+#dup-admin-about .dup-admin-about-section ul,
+#dup-admin-about .dup-admin-about-section p {
+ font-size: 16px;
+}
+
+#dup-admin-about .dup-admin-about-section p {
+ margin-bottom: 20px;
+}
+
+#dup-admin-about .dup-admin-about-section p.bigger {
+ font-size: 18px;
+}
+
+#dup-admin-about .dup-admin-about-section p.smaller {
+ font-size: 14px;
+}
+
+#dup-admin-about .dup-admin-about-section p:last-child {
+ margin-bottom: 0;
+}
+
+#dup-admin-about .dup-admin-about-section hr {
+ margin: 30px 0;
+}
+
+#dup-admin-about .dup-admin-about-section figure {
+ margin: 0;
+}
+
+#dup-admin-about .dup-admin-about-section figure img {
+ width: 100%;
+}
+
+#dup-admin-about .dup-admin-about-section figure figcaption {
+ font-size: 14px;
+ color: #888888;
+ margin-top: 5px;
+ text-align: center;
+ line-height: initial;
+}
+
+#dup-admin-about .dup-admin-about-section .dup-admin-column-40 {
+ padding-left: 15px;
+}
+
+@media (max-width: 767px) {
+ #dup-admin-about .dup-admin-about-section .dup-admin-column-40 {
+ width: 100%;
+ padding-left: 0;
+ padding-top: 20px;
+ }
+}
+
+#dup-admin-about .dup-admin-about-section .dup-admin-column-60 {
+ padding-right: 15px;
+}
+
+@media (max-width: 767px) {
+ #dup-admin-about .dup-admin-about-section .dup-admin-column-60 {
+ width: 100%;
+ padding-right: 0;
+ }
+}
+
+#dup-admin-about .dup-admin-about-section ul.list-plain {
+ margin-top: 0;
+ margin-bottom: 0;
+}
+
+#dup-admin-about .dup-admin-about-section ul.list-plain li {
+ margin-bottom: 0;
+}
+
+#dup-admin-about .dup-admin-about-section ul.list-features li .fa {
+ color: #2a9b39;
+ margin: 0 8px 0 0;
+}
+
+#dup-admin-about .dup-admin-about-section .fa-star {
+ color: gold;
+}
+
+#dup-admin-about .dup-admin-about-section .no-margin {
+ margin: 0 !important;
+}
+
+#dup-admin-about .dup-admin-about-section .no-padding {
+ padding: 0 !important;
+}
+
+#dup-admin-about .dup-admin-about-section .centered {
+ text-align: center !important;
+}
+
+#dup-admin-about .dup-admin-about-section-first-form {
+ display: flex;
+}
+
+@media (max-width: 767px) {
+ #dup-admin-about .dup-admin-about-section-first-form {
+ display: block !important;
+ }
+}
+
+#dup-admin-about .dup-admin-about-section-first-form .dup-admin-about-section-first-form-text {
+ flex: 1;
+ padding-right: 30px;
+}
+
+@media (max-width: 767px) {
+ #dup-admin-about .dup-admin-about-section-first-form .dup-admin-about-section-first-form-text {
+ flex: none;
+ }
+}
+
+#dup-admin-about .dup-admin-about-section-first-form .dup-admin-about-section-first-form-video iframe {
+ border: 1px solid #dddddd;
+}
+
+@media (max-width: 767px) {
+ #dup-admin-about .dup-admin-about-section-first-form .dup-admin-about-section-first-form-video {
+ padding-top: 20px;
+ }
+}
+
+#dup-admin-about .dup-admin-about-section-hero {
+ padding: 0;
+}
+
+#dup-admin-about .dup-admin-about-section-hero .dup-admin-about-section-hero-main,
+#dup-admin-about .dup-admin-about-section-hero .dup-admin-about-section-hero-extra {
+ padding: 30px;
+}
+
+#dup-admin-about .dup-admin-about-section-features {
+ display: flex;
+ flex-direction: row;
+ align-items: start;
+ justify-content: left;
+}
+
+#dup-admin-about .dup-admin-about-section-features .list {
+ display: flex;
+ flex-direction: row;
+ flex-wrap: wrap;
+ color: #555;
+ font-size: 14px;
+ list-style: none;
+ margin: 0;
+}
+
+#dup-admin-about .dup-admin-about-section-features .list > .item {
+ flex: 33.33% 0;
+ box-sizing: border-box;
+ padding: 0 0 2px 0;
+}
+
+#dup-admin-about .dup-admin-about-section-features .list > .item span::before {
+ font-family: "Font Awesome 5 Free";
+ content: "\f00c";
+ color: #00a32a;
+ margin: 0 8px 0 0;
+ -webkit-font-smoothing: antialiased;
+ display: inline-block;
+ font-style: normal;
+ font-variant: normal;
+ text-rendering: auto;
+ line-height: 1;
+ font-weight: 900;
+}
+
+@media (max-width: 1000px) {
+ #dup-admin-about .dup-admin-about-section-features .list > .item {
+ flex: 50% 0;
+ }
+}
+
+@media (max-width: 600px) {
+ #dup-admin-about .dup-admin-about-section-features .list > .item {
+ flex: 100% 0;
+ }
+}
+
+@media (max-width: 767px) {
+ #dup-admin-about .dup-admin-about-section-hero .dup-admin-about-section-hero-extra .dup-admin-column-50 {
+ float: none;
+ width: 100%;
+ }
+}
+
+#dup-admin-about .dup-admin-about-section-hero .dup-admin-about-section-hero-main {
+ background-color: #fafafa;
+ border-bottom: 1px solid #dddddd;
+}
+
+#dup-admin-about .dup-admin-about-section-hero .dup-admin-about-section-hero-main.no-border {
+ border-bottom: 0;
+}
+
+#dup-admin-about .dup-admin-about-section-hero .dup-admin-about-section-hero-main p {
+ color: #666;
+}
+
+#dup-admin-about .dup-admin-about-section-hero h3.call-to-action {
+ margin-bottom: -10px;
+}
+
+#dup-admin-about .dup-admin-about-section-hero span.price-20-off {
+ color: #6ab255;
+}
+
+#dup-admin-about .dup-admin-about-section-squashed {
+ margin-bottom: 0;
+}
+
+#dup-admin-about .dup-admin-about-section-squashed:not(:last-of-type) {
+ border-bottom: 0;
+}
+
+#dup-admin-about .dup-admin-about-section-post h2 {
+ margin-bottom: -10px;
+}
+
+#dup-admin-about .dup-admin-about-section-post h3 {
+ margin-bottom: 15px;
+}
+
+#dup-admin-about .dup-admin-about-section-post p:last-of-type {
+ margin-bottom: 30px;
+}
+
+#dup-admin-about .dup-admin-about-section-post .dup-admin-column-20 {
+ padding-right: 20px;
+ width: auto;
+}
+
+#dup-admin-about .dup-admin-about-section-post .dup-admin-column-20 img {
+ width: 270px;
+}
+
+@media (max-width: 767px) {
+ #dup-admin-about .dup-admin-about-section-post .dup-admin-column-20 {
+ width: 20%;
+ }
+ #dup-admin-about .dup-admin-about-section-post .dup-admin-column-20 img {
+ width: auto;
+ max-width: 100%;
+ }
+}
+
+#dup-admin-about .dup-admin-about-section-post .dup-admin-column-80 {
+ padding-left: 20px;
+ width: calc(100% - 20px - 270px);
+}
+
+@media (max-width: 767px) {
+ #dup-admin-about .dup-admin-about-section-post .dup-admin-column-80 {
+ width: 80%;
+ }
+}
+
+#dup-admin-about .dup-admin-about-section-post .dup-admin-about-section-post-link {
+ padding: 10px 15px;
+ background-color: #df7739;
+ color: #fff;
+ border-radius: 3px;
+ text-decoration: none;
+ margin-top: 15px;
+ font-size: 14px;
+}
+
+#dup-admin-about .dup-admin-about-section-post .dup-admin-about-section-post-link:hover, #dup-admin-about .dup-admin-about-section-post .dup-admin-about-section-post-link:focus {
+ background-color: #b85a1b;
+ color: #fff;
+}
+
+#dup-admin-about .dup-admin-about-section-post .dup-admin-about-section-post-link:focus {
+ box-shadow: 0 0 0 1px #fff, 0 0 0 3px #b85a1b;
+ outline: 0;
+}
+
+#dup-admin-about .dup-admin-about-section-post .dup-admin-about-section-post-link .fa {
+ color: #edba9e;
+ vertical-align: middle;
+ margin-left: 8px;
+}
+
+#dup-admin-about .dup-admin-about-section-table table {
+ border-collapse: collapse;
+}
+
+#dup-admin-about .dup-admin-about-section-table table tr td,
+#dup-admin-about .dup-admin-about-section-table table tr th{
+ border-bottom: 1px solid #dddddd;
+ border-right: 1px solid #dddddd;
+ padding: 30px;
+ vertical-align: top;
+}
+
+#dup-admin-about .dup-admin-about-section-table table tr th {
+ padding: 20px;
+}
+
+#dup-admin-about .dup-admin-about-section-table table tr td:last-of-type {
+ border-right: 0;
+}
+
+#dup-admin-about .dup-admin-about-section-table table tr:last-child td {
+ border-bottom: none;
+}
+
+#dup-admin-about .dup-admin-about-section-table table p {
+ background-repeat: no-repeat;
+ background-size: 15px auto;
+ background-position: 0 6px;
+ margin: 0;
+}
+
+#dup-admin-about .dup-admin-about-section-table table p.features-full {
+ padding-left: 30px;
+ background-image: url(../img/about/icon-full.svg);
+}
+
+#dup-admin-about .dup-admin-about-section-table table p.features-none {
+ padding-left: 30px;
+ background-image: url(../img/about/icon-none.svg);
+}
+
+#dup-admin-about .dup-admin-about-section-table table p.features-partial {
+ padding-left: 30px;
+ background-position: -3px 0;
+ background-size: 23px auto;
+ background-image: url(../img/about/icon-partial.svg);
+}
+
+#dup-admin-about .dup-admin-about-section-table .dup-admin-about-section-hero-main {
+ padding: 0;
+}
+
+#dup-admin-about .dup-admin-about-section-table .dup-admin-about-section-hero-main h3 {
+ padding: 30px 30px 30px 60px;
+}
+
+#dup-admin-about .dup-admin-about-section-table .dup-admin-about-section-hero-main .dup-admin-column-33:first-child h3 {
+ padding: 30px;
+}
+
+#dup-admin-about #dup-admin-addons .addon-container {
+ padding: 0 10px;
+}
+
+#dup-admin-about #dup-admin-addons .addon-item .details {
+ padding: 20px;
+}
+
+#dup-admin-about #dup-admin-addons .addon-item h5 {
+ margin-bottom: 10px;
+}
+
+#dup-admin-about #dup-admin-addons .addon-item img {
+ padding: 10px;
+}
+
+#dup-admin-about #dup-admin-addons .addon-item img[src*="-mi"] {
+ padding: 13px;
+}
+
+#dup-admin-about #dup-admin-addons .addon-item .action-button .button.disabled, #dup-admin-about #dup-admin-addons .addon-item .action-button .button.loading {
+ cursor: default;
+}
\ No newline at end of file
diff --git a/assets/css/admin-notifications.css b/assets/css/admin-notifications.css
new file mode 100644
index 00000000..2d47f07b
--- /dev/null
+++ b/assets/css/admin-notifications.css
@@ -0,0 +1,212 @@
+#dup-notifications {
+ position: relative;
+ background: #ffffff 0 0 no-repeat padding-box;
+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
+ border-radius: 6px;
+ opacity: 1;
+ min-height: 48px;
+ margin: 10px 0 20px 0;
+}
+
+#dup-notifications * {
+ box-sizing: border-box;
+}
+
+#dup-notifications .dup-notifications-header {
+ display: flex;
+ align-items: center;
+ padding: 10px 16px;
+ border-bottom: 1px solid rgba(204, 208, 212, 0.5);
+}
+
+#dup-notifications .dup-notifications-header .dup-notifications-bell {
+ position: relative;
+ width: 16px;
+ height: 20px;
+ top: 3px;
+ margin-right: 10px;
+}
+
+#dup-notifications .dup-notifications-header .dup-notifications-circle {
+ position: absolute;
+ width: 11px;
+ height: 11px;
+ border-radius: 50%;
+ top: -4px;
+ right: -1px;
+ border: 2px solid #ffffff;
+}
+
+#dup-notifications .dup-notifications-header .dup-notifications-title {
+ font-style: normal;
+ font-weight: 500;
+ font-size: 14px;
+ line-height: 17px;
+ color: #23282d;
+}
+
+#dup-notifications .dup-notifications-body {
+ position: relative;
+}
+
+#dup-notifications .dup-notifications-messages {
+ padding: 16px 100px 16px 16px;
+}
+
+#dup-notifications .dup-notifications-messages .dup-notifications-message {
+ display: none;
+}
+
+#dup-notifications .dup-notifications-messages .dup-notifications-message.current {
+ display: block;
+}
+
+#dup-notifications .dup-notifications-messages .dup-notifications-title {
+ color: #444444;
+ font-size: 17px;
+ font-weight: 600;
+ line-height: 17px;
+ margin: 0 0 -2px 0;
+ min-height: 19px;
+}
+
+#dup-notifications .dup-notifications-messages .dup-notifications-content {
+ font-weight: normal;
+ font-size: 14px;
+ line-height: 18px;
+ margin: 8px 0 20px 0;
+ color: #777777;
+}
+
+#dup-notifications .dup-notifications-messages .dup-notifications-content p {
+ font-size: inherit;
+ line-height: inherit;
+ margin: 0 0 5px;
+}
+
+#dup-notifications .dup-notifications-messages .dup-notifications-buttons {
+ margin: -30px 80px 0 0;
+}
+
+#dup-notifications .dup-notifications-messages .dup-notifications-buttons a {
+ margin: 0 10px 0 0;
+ min-height: unset;
+}
+
+#dup-notifications .dup-notifications-badge {
+ background-color: #f6f7f7;
+ border-radius: 3px;
+ color: #2c3338;
+ cursor: pointer;
+ font-size: 11px;
+ margin-left: 10px;
+ padding: 6px 8px;
+ position: relative;
+ text-decoration: none;
+ text-transform: uppercase;
+ top: -1px;
+ white-space: nowrap;
+}
+
+#dup-notifications .dup-notifications-badge:focus, #dup-notifications .dup-notifications-badge:hover {
+ background-color: #f0f0f1;
+ box-shadow: none;
+ color: initial;
+}
+
+#dup-notifications .dup-notifications-badge .fa {
+ color: black;
+ padding-right: 6px;
+ position: relative;
+}
+
+#dup-notifications .dismiss {
+ position: absolute;
+ top: 15px;
+ right: 16px;
+ width: 16px;
+ height: 16px;
+ color: #a7aaad;
+ font-size: 16px;
+ cursor: pointer;
+ text-align: center;
+ vertical-align: middle;
+ line-height: 16px;
+}
+
+#dup-notifications .dismiss:hover {
+ color: #dc3232;
+}
+
+#dup-notifications .navigation {
+ position: absolute;
+ bottom: 20px;
+ right: 16px;
+ width: 63px;
+ height: 30px;
+}
+
+#dup-notifications .navigation a {
+ display: block;
+ width: 30px;
+ height: 30px;
+ border: 1px solid #7e8993;
+ border-radius: 3px;
+ font-size: 16px;
+ line-height: 1.625;
+ text-align: center;
+ cursor: pointer;
+ background-color: #ffffff;
+ color: #41454a;
+}
+
+#dup-notifications .navigation a:hover {
+ background-color: #f1f1f1;
+}
+
+#dup-notifications .navigation .prev {
+ float: left;
+}
+
+#dup-notifications .navigation .next {
+ float: right;
+}
+
+#dup-notifications .navigation .disabled {
+ border-color: #dddddd;
+ color: #a0a5aa;
+ cursor: default;
+}
+
+#dup-notifications .navigation .disabled:hover {
+ background-color: #ffffff;
+}
+
+.lity-iframe .lity-content {
+ margin: 0 auto;
+}
+
+@media screen and (max-width: 768px) {
+ #dup-notifications .dup-notifications-messages {
+ padding: 15px 50px 20px 16px;
+ }
+ #dup-notifications .dup-notifications-messages .dup-notifications-message .dup-notifications-title {
+ line-height: 22px;
+ margin: 0 30px -2px 0;
+ min-height: 24px;
+ }
+ #dup-notifications .dup-notifications-messages .dup-notifications-message .dup-notifications-content {
+ font-size: 16px;
+ line-height: 22px;
+ }
+ #dup-notifications .dup-notifications-messages .dup-notifications-message .dup-notifications-buttons {
+ margin: -30px 80px 0 0;
+ }
+ #dup-notifications .dup-notifications-messages .dup-notifications-message .dup-notifications-buttons a {
+ margin: 0;
+ display: table;
+ }
+ #dup-notifications .dup-notifications-messages .dup-notifications-message .dup-notifications-buttons .button-secondary {
+ margin-top: 6px;
+ }
+}
diff --git a/assets/css/font-awesome.min.css b/assets/css/font-awesome.min.css
deleted file mode 100644
index 24fcc04c..00000000
--- a/assets/css/font-awesome.min.css
+++ /dev/null
@@ -1,4 +0,0 @@
-/*!
- * Font Awesome 4.3.0 by @davegandy - http://fontawesome.io - @fontawesome
- * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License)
- */@font-face{font-family:'FontAwesome';src:url('../fonts/fontawesome-webfont.eot?v=4.3.0');src:url('../fonts/fontawesome-webfont.eot?#iefix&v=4.3.0') format('embedded-opentype'),url('../fonts/fontawesome-webfont.woff2?v=4.3.0') format('woff2'),url('../fonts/fontawesome-webfont.woff?v=4.3.0') format('woff'),url('../fonts/fontawesome-webfont.ttf?v=4.3.0') format('truetype'),url('../fonts/fontawesome-webfont.svg?v=4.3.0#fontawesomeregular') format('svg');font-weight:normal;font-style:normal}.fa{display:inline-block;font:normal normal normal 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;transform:translate(0, 0)}.fa-lg{font-size:1.33333333em;line-height:.75em;vertical-align:-15%}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-fw{width:1.28571429em;text-align:center}.fa-ul{padding-left:0;margin-left:2.14285714em;list-style-type:none}.fa-ul>li{position:relative}.fa-li{position:absolute;left:-2.14285714em;width:2.14285714em;top:.14285714em;text-align:center}.fa-li.fa-lg{left:-1.85714286em}.fa-border{padding:.2em .25em .15em;border:solid .08em #eee;border-radius:.1em}.pull-right{float:right}.pull-left{float:left}.fa.pull-left{margin-right:.3em}.fa.pull-right{margin-left:.3em}.fa-spin{-webkit-animation:fa-spin 2s infinite linear;animation:fa-spin 2s infinite linear}.fa-pulse{-webkit-animation:fa-spin 1s infinite steps(8);animation:fa-spin 1s infinite steps(8)}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.fa-rotate-90{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=1);-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=2);-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=3);-webkit-transform:rotate(270deg);-ms-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1);-webkit-transform:scale(-1, 1);-ms-transform:scale(-1, 1);transform:scale(-1, 1)}.fa-flip-vertical{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1);-webkit-transform:scale(1, -1);-ms-transform:scale(1, -1);transform:scale(1, -1)}:root .fa-rotate-90,:root .fa-rotate-180,:root .fa-rotate-270,:root .fa-flip-horizontal,:root .fa-flip-vertical{filter:none}.fa-stack{position:relative;display:inline-block;width:2em;height:2em;line-height:2em;vertical-align:middle}.fa-stack-1x,.fa-stack-2x{position:absolute;left:0;width:100%;text-align:center}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:#fff}.fa-glass:before{content:"\f000"}.fa-music:before{content:"\f001"}.fa-search:before{content:"\f002"}.fa-envelope-o:before{content:"\f003"}.fa-heart:before{content:"\f004"}.fa-star:before{content:"\f005"}.fa-star-o:before{content:"\f006"}.fa-user:before{content:"\f007"}.fa-film:before{content:"\f008"}.fa-th-large:before{content:"\f009"}.fa-th:before{content:"\f00a"}.fa-th-list:before{content:"\f00b"}.fa-check:before{content:"\f00c"}.fa-remove:before,.fa-close:before,.fa-times:before{content:"\f00d"}.fa-search-plus:before{content:"\f00e"}.fa-search-minus:before{content:"\f010"}.fa-power-off:before{content:"\f011"}.fa-signal:before{content:"\f012"}.fa-gear:before,.fa-cog:before{content:"\f013"}.fa-trash-o:before{content:"\f014"}.fa-home:before{content:"\f015"}.fa-file-o:before{content:"\f016"}.fa-clock-o:before{content:"\f017"}.fa-road:before{content:"\f018"}.fa-download:before{content:"\f019"}.fa-arrow-circle-o-down:before{content:"\f01a"}.fa-arrow-circle-o-up:before{content:"\f01b"}.fa-inbox:before{content:"\f01c"}.fa-play-circle-o:before{content:"\f01d"}.fa-rotate-right:before,.fa-repeat:before{content:"\f01e"}.fa-refresh:before{content:"\f021"}.fa-list-alt:before{content:"\f022"}.fa-lock:before{content:"\f023"}.fa-flag:before{content:"\f024"}.fa-headphones:before{content:"\f025"}.fa-volume-off:before{content:"\f026"}.fa-volume-down:before{content:"\f027"}.fa-volume-up:before{content:"\f028"}.fa-qrcode:before{content:"\f029"}.fa-barcode:before{content:"\f02a"}.fa-tag:before{content:"\f02b"}.fa-tags:before{content:"\f02c"}.fa-book:before{content:"\f02d"}.fa-bookmark:before{content:"\f02e"}.fa-print:before{content:"\f02f"}.fa-camera:before{content:"\f030"}.fa-font:before{content:"\f031"}.fa-bold:before{content:"\f032"}.fa-italic:before{content:"\f033"}.fa-text-height:before{content:"\f034"}.fa-text-width:before{content:"\f035"}.fa-align-left:before{content:"\f036"}.fa-align-center:before{content:"\f037"}.fa-align-right:before{content:"\f038"}.fa-align-justify:before{content:"\f039"}.fa-list:before{content:"\f03a"}.fa-dedent:before,.fa-outdent:before{content:"\f03b"}.fa-indent:before{content:"\f03c"}.fa-video-camera:before{content:"\f03d"}.fa-photo:before,.fa-image:before,.fa-picture-o:before{content:"\f03e"}.fa-pencil:before{content:"\f040"}.fa-map-marker:before{content:"\f041"}.fa-adjust:before{content:"\f042"}.fa-tint:before{content:"\f043"}.fa-edit:before,.fa-pencil-square-o:before{content:"\f044"}.fa-share-square-o:before{content:"\f045"}.fa-check-square-o:before{content:"\f046"}.fa-arrows:before{content:"\f047"}.fa-step-backward:before{content:"\f048"}.fa-fast-backward:before{content:"\f049"}.fa-backward:before{content:"\f04a"}.fa-play:before{content:"\f04b"}.fa-pause:before{content:"\f04c"}.fa-stop:before{content:"\f04d"}.fa-forward:before{content:"\f04e"}.fa-fast-forward:before{content:"\f050"}.fa-step-forward:before{content:"\f051"}.fa-eject:before{content:"\f052"}.fa-chevron-left:before{content:"\f053"}.fa-chevron-right:before{content:"\f054"}.fa-plus-circle:before{content:"\f055"}.fa-minus-circle:before{content:"\f056"}.fa-times-circle:before{content:"\f057"}.fa-check-circle:before{content:"\f058"}.fa-question-circle:before{content:"\f059"}.fa-info-circle:before{content:"\f05a"}.fa-crosshairs:before{content:"\f05b"}.fa-times-circle-o:before{content:"\f05c"}.fa-check-circle-o:before{content:"\f05d"}.fa-ban:before{content:"\f05e"}.fa-arrow-left:before{content:"\f060"}.fa-arrow-right:before{content:"\f061"}.fa-arrow-up:before{content:"\f062"}.fa-arrow-down:before{content:"\f063"}.fa-mail-forward:before,.fa-share:before{content:"\f064"}.fa-expand:before{content:"\f065"}.fa-compress:before{content:"\f066"}.fa-plus:before{content:"\f067"}.fa-minus:before{content:"\f068"}.fa-asterisk:before{content:"\f069"}.fa-exclamation-circle:before{content:"\f06a"}.fa-gift:before{content:"\f06b"}.fa-leaf:before{content:"\f06c"}.fa-fire:before{content:"\f06d"}.fa-eye:before{content:"\f06e"}.fa-eye-slash:before{content:"\f070"}.fa-warning:before,.fa-exclamation-triangle:before{content:"\f071"}.fa-plane:before{content:"\f072"}.fa-calendar:before{content:"\f073"}.fa-random:before{content:"\f074"}.fa-comment:before{content:"\f075"}.fa-magnet:before{content:"\f076"}.fa-chevron-up:before{content:"\f077"}.fa-chevron-down:before{content:"\f078"}.fa-retweet:before{content:"\f079"}.fa-shopping-cart:before{content:"\f07a"}.fa-folder:before{content:"\f07b"}.fa-folder-open:before{content:"\f07c"}.fa-arrows-v:before{content:"\f07d"}.fa-arrows-h:before{content:"\f07e"}.fa-bar-chart-o:before,.fa-bar-chart:before{content:"\f080"}.fa-twitter-square:before{content:"\f081"}.fa-facebook-square:before{content:"\f082"}.fa-camera-retro:before{content:"\f083"}.fa-key:before{content:"\f084"}.fa-gears:before,.fa-cogs:before{content:"\f085"}.fa-comments:before{content:"\f086"}.fa-thumbs-o-up:before{content:"\f087"}.fa-thumbs-o-down:before{content:"\f088"}.fa-star-half:before{content:"\f089"}.fa-heart-o:before{content:"\f08a"}.fa-sign-out:before{content:"\f08b"}.fa-linkedin-square:before{content:"\f08c"}.fa-thumb-tack:before{content:"\f08d"}.fa-external-link:before{content:"\f08e"}.fa-sign-in:before{content:"\f090"}.fa-trophy:before{content:"\f091"}.fa-github-square:before{content:"\f092"}.fa-upload:before{content:"\f093"}.fa-lemon-o:before{content:"\f094"}.fa-phone:before{content:"\f095"}.fa-square-o:before{content:"\f096"}.fa-bookmark-o:before{content:"\f097"}.fa-phone-square:before{content:"\f098"}.fa-twitter:before{content:"\f099"}.fa-facebook-f:before,.fa-facebook:before{content:"\f09a"}.fa-github:before{content:"\f09b"}.fa-unlock:before{content:"\f09c"}.fa-credit-card:before{content:"\f09d"}.fa-rss:before{content:"\f09e"}.fa-hdd-o:before{content:"\f0a0"}.fa-bullhorn:before{content:"\f0a1"}.fa-bell:before{content:"\f0f3"}.fa-certificate:before{content:"\f0a3"}.fa-hand-o-right:before{content:"\f0a4"}.fa-hand-o-left:before{content:"\f0a5"}.fa-hand-o-up:before{content:"\f0a6"}.fa-hand-o-down:before{content:"\f0a7"}.fa-arrow-circle-left:before{content:"\f0a8"}.fa-arrow-circle-right:before{content:"\f0a9"}.fa-arrow-circle-up:before{content:"\f0aa"}.fa-arrow-circle-down:before{content:"\f0ab"}.fa-globe:before{content:"\f0ac"}.fa-wrench:before{content:"\f0ad"}.fa-tasks:before{content:"\f0ae"}.fa-filter:before{content:"\f0b0"}.fa-briefcase:before{content:"\f0b1"}.fa-arrows-alt:before{content:"\f0b2"}.fa-group:before,.fa-users:before{content:"\f0c0"}.fa-chain:before,.fa-link:before{content:"\f0c1"}.fa-cloud:before{content:"\f0c2"}.fa-flask:before{content:"\f0c3"}.fa-cut:before,.fa-scissors:before{content:"\f0c4"}.fa-copy:before,.fa-files-o:before{content:"\f0c5"}.fa-paperclip:before{content:"\f0c6"}.fa-save:before,.fa-floppy-o:before{content:"\f0c7"}.fa-square:before{content:"\f0c8"}.fa-navicon:before,.fa-reorder:before,.fa-bars:before{content:"\f0c9"}.fa-list-ul:before{content:"\f0ca"}.fa-list-ol:before{content:"\f0cb"}.fa-strikethrough:before{content:"\f0cc"}.fa-underline:before{content:"\f0cd"}.fa-table:before{content:"\f0ce"}.fa-magic:before{content:"\f0d0"}.fa-truck:before{content:"\f0d1"}.fa-pinterest:before{content:"\f0d2"}.fa-pinterest-square:before{content:"\f0d3"}.fa-google-plus-square:before{content:"\f0d4"}.fa-google-plus:before{content:"\f0d5"}.fa-money:before{content:"\f0d6"}.fa-caret-down:before{content:"\f0d7"}.fa-caret-up:before{content:"\f0d8"}.fa-caret-left:before{content:"\f0d9"}.fa-caret-right:before{content:"\f0da"}.fa-columns:before{content:"\f0db"}.fa-unsorted:before,.fa-sort:before{content:"\f0dc"}.fa-sort-down:before,.fa-sort-desc:before{content:"\f0dd"}.fa-sort-up:before,.fa-sort-asc:before{content:"\f0de"}.fa-envelope:before{content:"\f0e0"}.fa-linkedin:before{content:"\f0e1"}.fa-rotate-left:before,.fa-undo:before{content:"\f0e2"}.fa-legal:before,.fa-gavel:before{content:"\f0e3"}.fa-dashboard:before,.fa-tachometer:before{content:"\f0e4"}.fa-comment-o:before{content:"\f0e5"}.fa-comments-o:before{content:"\f0e6"}.fa-flash:before,.fa-bolt:before{content:"\f0e7"}.fa-sitemap:before{content:"\f0e8"}.fa-umbrella:before{content:"\f0e9"}.fa-paste:before,.fa-clipboard:before{content:"\f0ea"}.fa-lightbulb-o:before{content:"\f0eb"}.fa-exchange:before{content:"\f0ec"}.fa-cloud-download:before{content:"\f0ed"}.fa-cloud-upload:before{content:"\f0ee"}.fa-user-md:before{content:"\f0f0"}.fa-stethoscope:before{content:"\f0f1"}.fa-suitcase:before{content:"\f0f2"}.fa-bell-o:before{content:"\f0a2"}.fa-coffee:before{content:"\f0f4"}.fa-cutlery:before{content:"\f0f5"}.fa-file-text-o:before{content:"\f0f6"}.fa-building-o:before{content:"\f0f7"}.fa-hospital-o:before{content:"\f0f8"}.fa-ambulance:before{content:"\f0f9"}.fa-medkit:before{content:"\f0fa"}.fa-fighter-jet:before{content:"\f0fb"}.fa-beer:before{content:"\f0fc"}.fa-h-square:before{content:"\f0fd"}.fa-plus-square:before{content:"\f0fe"}.fa-angle-double-left:before{content:"\f100"}.fa-angle-double-right:before{content:"\f101"}.fa-angle-double-up:before{content:"\f102"}.fa-angle-double-down:before{content:"\f103"}.fa-angle-left:before{content:"\f104"}.fa-angle-right:before{content:"\f105"}.fa-angle-up:before{content:"\f106"}.fa-angle-down:before{content:"\f107"}.fa-desktop:before{content:"\f108"}.fa-laptop:before{content:"\f109"}.fa-tablet:before{content:"\f10a"}.fa-mobile-phone:before,.fa-mobile:before{content:"\f10b"}.fa-circle-o:before{content:"\f10c"}.fa-quote-left:before{content:"\f10d"}.fa-quote-right:before{content:"\f10e"}.fa-spinner:before{content:"\f110"}.fa-circle:before{content:"\f111"}.fa-mail-reply:before,.fa-reply:before{content:"\f112"}.fa-github-alt:before{content:"\f113"}.fa-folder-o:before{content:"\f114"}.fa-folder-open-o:before{content:"\f115"}.fa-smile-o:before{content:"\f118"}.fa-frown-o:before{content:"\f119"}.fa-meh-o:before{content:"\f11a"}.fa-gamepad:before{content:"\f11b"}.fa-keyboard-o:before{content:"\f11c"}.fa-flag-o:before{content:"\f11d"}.fa-flag-checkered:before{content:"\f11e"}.fa-terminal:before{content:"\f120"}.fa-code:before{content:"\f121"}.fa-mail-reply-all:before,.fa-reply-all:before{content:"\f122"}.fa-star-half-empty:before,.fa-star-half-full:before,.fa-star-half-o:before{content:"\f123"}.fa-location-arrow:before{content:"\f124"}.fa-crop:before{content:"\f125"}.fa-code-fork:before{content:"\f126"}.fa-unlink:before,.fa-chain-broken:before{content:"\f127"}.fa-question:before{content:"\f128"}.fa-info:before{content:"\f129"}.fa-exclamation:before{content:"\f12a"}.fa-superscript:before{content:"\f12b"}.fa-subscript:before{content:"\f12c"}.fa-eraser:before{content:"\f12d"}.fa-puzzle-piece:before{content:"\f12e"}.fa-microphone:before{content:"\f130"}.fa-microphone-slash:before{content:"\f131"}.fa-shield:before{content:"\f132"}.fa-calendar-o:before{content:"\f133"}.fa-fire-extinguisher:before{content:"\f134"}.fa-rocket:before{content:"\f135"}.fa-maxcdn:before{content:"\f136"}.fa-chevron-circle-left:before{content:"\f137"}.fa-chevron-circle-right:before{content:"\f138"}.fa-chevron-circle-up:before{content:"\f139"}.fa-chevron-circle-down:before{content:"\f13a"}.fa-html5:before{content:"\f13b"}.fa-css3:before{content:"\f13c"}.fa-anchor:before{content:"\f13d"}.fa-unlock-alt:before{content:"\f13e"}.fa-bullseye:before{content:"\f140"}.fa-ellipsis-h:before{content:"\f141"}.fa-ellipsis-v:before{content:"\f142"}.fa-rss-square:before{content:"\f143"}.fa-play-circle:before{content:"\f144"}.fa-ticket:before{content:"\f145"}.fa-minus-square:before{content:"\f146"}.fa-minus-square-o:before{content:"\f147"}.fa-level-up:before{content:"\f148"}.fa-level-down:before{content:"\f149"}.fa-check-square:before{content:"\f14a"}.fa-pencil-square:before{content:"\f14b"}.fa-external-link-square:before{content:"\f14c"}.fa-share-square:before{content:"\f14d"}.fa-compass:before{content:"\f14e"}.fa-toggle-down:before,.fa-caret-square-o-down:before{content:"\f150"}.fa-toggle-up:before,.fa-caret-square-o-up:before{content:"\f151"}.fa-toggle-right:before,.fa-caret-square-o-right:before{content:"\f152"}.fa-euro:before,.fa-eur:before{content:"\f153"}.fa-gbp:before{content:"\f154"}.fa-dollar:before,.fa-usd:before{content:"\f155"}.fa-rupee:before,.fa-inr:before{content:"\f156"}.fa-cny:before,.fa-rmb:before,.fa-yen:before,.fa-jpy:before{content:"\f157"}.fa-ruble:before,.fa-rouble:before,.fa-rub:before{content:"\f158"}.fa-won:before,.fa-krw:before{content:"\f159"}.fa-bitcoin:before,.fa-btc:before{content:"\f15a"}.fa-file:before{content:"\f15b"}.fa-file-text:before{content:"\f15c"}.fa-sort-alpha-asc:before{content:"\f15d"}.fa-sort-alpha-desc:before{content:"\f15e"}.fa-sort-amount-asc:before{content:"\f160"}.fa-sort-amount-desc:before{content:"\f161"}.fa-sort-numeric-asc:before{content:"\f162"}.fa-sort-numeric-desc:before{content:"\f163"}.fa-thumbs-up:before{content:"\f164"}.fa-thumbs-down:before{content:"\f165"}.fa-youtube-square:before{content:"\f166"}.fa-youtube:before{content:"\f167"}.fa-xing:before{content:"\f168"}.fa-xing-square:before{content:"\f169"}.fa-youtube-play:before{content:"\f16a"}.fa-dropbox:before{content:"\f16b"}.fa-stack-overflow:before{content:"\f16c"}.fa-instagram:before{content:"\f16d"}.fa-flickr:before{content:"\f16e"}.fa-adn:before{content:"\f170"}.fa-bitbucket:before{content:"\f171"}.fa-bitbucket-square:before{content:"\f172"}.fa-tumblr:before{content:"\f173"}.fa-tumblr-square:before{content:"\f174"}.fa-long-arrow-down:before{content:"\f175"}.fa-long-arrow-up:before{content:"\f176"}.fa-long-arrow-left:before{content:"\f177"}.fa-long-arrow-right:before{content:"\f178"}.fa-apple:before{content:"\f179"}.fa-windows:before{content:"\f17a"}.fa-android:before{content:"\f17b"}.fa-linux:before{content:"\f17c"}.fa-dribbble:before{content:"\f17d"}.fa-skype:before{content:"\f17e"}.fa-foursquare:before{content:"\f180"}.fa-trello:before{content:"\f181"}.fa-female:before{content:"\f182"}.fa-male:before{content:"\f183"}.fa-gittip:before,.fa-gratipay:before{content:"\f184"}.fa-sun-o:before{content:"\f185"}.fa-moon-o:before{content:"\f186"}.fa-archive:before{content:"\f187"}.fa-bug:before{content:"\f188"}.fa-vk:before{content:"\f189"}.fa-weibo:before{content:"\f18a"}.fa-renren:before{content:"\f18b"}.fa-pagelines:before{content:"\f18c"}.fa-stack-exchange:before{content:"\f18d"}.fa-arrow-circle-o-right:before{content:"\f18e"}.fa-arrow-circle-o-left:before{content:"\f190"}.fa-toggle-left:before,.fa-caret-square-o-left:before{content:"\f191"}.fa-dot-circle-o:before{content:"\f192"}.fa-wheelchair:before{content:"\f193"}.fa-vimeo-square:before{content:"\f194"}.fa-turkish-lira:before,.fa-try:before{content:"\f195"}.fa-plus-square-o:before{content:"\f196"}.fa-space-shuttle:before{content:"\f197"}.fa-slack:before{content:"\f198"}.fa-envelope-square:before{content:"\f199"}.fa-wordpress:before{content:"\f19a"}.fa-openid:before{content:"\f19b"}.fa-institution:before,.fa-bank:before,.fa-university:before{content:"\f19c"}.fa-mortar-board:before,.fa-graduation-cap:before{content:"\f19d"}.fa-yahoo:before{content:"\f19e"}.fa-google:before{content:"\f1a0"}.fa-reddit:before{content:"\f1a1"}.fa-reddit-square:before{content:"\f1a2"}.fa-stumbleupon-circle:before{content:"\f1a3"}.fa-stumbleupon:before{content:"\f1a4"}.fa-delicious:before{content:"\f1a5"}.fa-digg:before{content:"\f1a6"}.fa-pied-piper:before{content:"\f1a7"}.fa-pied-piper-alt:before{content:"\f1a8"}.fa-drupal:before{content:"\f1a9"}.fa-joomla:before{content:"\f1aa"}.fa-language:before{content:"\f1ab"}.fa-fax:before{content:"\f1ac"}.fa-building:before{content:"\f1ad"}.fa-child:before{content:"\f1ae"}.fa-paw:before{content:"\f1b0"}.fa-spoon:before{content:"\f1b1"}.fa-cube:before{content:"\f1b2"}.fa-cubes:before{content:"\f1b3"}.fa-behance:before{content:"\f1b4"}.fa-behance-square:before{content:"\f1b5"}.fa-steam:before{content:"\f1b6"}.fa-steam-square:before{content:"\f1b7"}.fa-recycle:before{content:"\f1b8"}.fa-automobile:before,.fa-car:before{content:"\f1b9"}.fa-cab:before,.fa-taxi:before{content:"\f1ba"}.fa-tree:before{content:"\f1bb"}.fa-spotify:before{content:"\f1bc"}.fa-deviantart:before{content:"\f1bd"}.fa-soundcloud:before{content:"\f1be"}.fa-database:before{content:"\f1c0"}.fa-file-pdf-o:before{content:"\f1c1"}.fa-file-word-o:before{content:"\f1c2"}.fa-file-excel-o:before{content:"\f1c3"}.fa-file-powerpoint-o:before{content:"\f1c4"}.fa-file-photo-o:before,.fa-file-picture-o:before,.fa-file-image-o:before{content:"\f1c5"}.fa-file-zip-o:before,.fa-file-archive-o:before{content:"\f1c6"}.fa-file-sound-o:before,.fa-file-audio-o:before{content:"\f1c7"}.fa-file-movie-o:before,.fa-file-video-o:before{content:"\f1c8"}.fa-file-code-o:before{content:"\f1c9"}.fa-vine:before{content:"\f1ca"}.fa-codepen:before{content:"\f1cb"}.fa-jsfiddle:before{content:"\f1cc"}.fa-life-bouy:before,.fa-life-buoy:before,.fa-life-saver:before,.fa-support:before,.fa-life-ring:before{content:"\f1cd"}.fa-circle-o-notch:before{content:"\f1ce"}.fa-ra:before,.fa-rebel:before{content:"\f1d0"}.fa-ge:before,.fa-empire:before{content:"\f1d1"}.fa-git-square:before{content:"\f1d2"}.fa-git:before{content:"\f1d3"}.fa-hacker-news:before{content:"\f1d4"}.fa-tencent-weibo:before{content:"\f1d5"}.fa-qq:before{content:"\f1d6"}.fa-wechat:before,.fa-weixin:before{content:"\f1d7"}.fa-send:before,.fa-paper-plane:before{content:"\f1d8"}.fa-send-o:before,.fa-paper-plane-o:before{content:"\f1d9"}.fa-history:before{content:"\f1da"}.fa-genderless:before,.fa-circle-thin:before{content:"\f1db"}.fa-header:before{content:"\f1dc"}.fa-paragraph:before{content:"\f1dd"}.fa-sliders:before{content:"\f1de"}.fa-share-alt:before{content:"\f1e0"}.fa-share-alt-square:before{content:"\f1e1"}.fa-bomb:before{content:"\f1e2"}.fa-soccer-ball-o:before,.fa-futbol-o:before{content:"\f1e3"}.fa-tty:before{content:"\f1e4"}.fa-binoculars:before{content:"\f1e5"}.fa-plug:before{content:"\f1e6"}.fa-slideshare:before{content:"\f1e7"}.fa-twitch:before{content:"\f1e8"}.fa-yelp:before{content:"\f1e9"}.fa-newspaper-o:before{content:"\f1ea"}.fa-wifi:before{content:"\f1eb"}.fa-calculator:before{content:"\f1ec"}.fa-paypal:before{content:"\f1ed"}.fa-google-wallet:before{content:"\f1ee"}.fa-cc-visa:before{content:"\f1f0"}.fa-cc-mastercard:before{content:"\f1f1"}.fa-cc-discover:before{content:"\f1f2"}.fa-cc-amex:before{content:"\f1f3"}.fa-cc-paypal:before{content:"\f1f4"}.fa-cc-stripe:before{content:"\f1f5"}.fa-bell-slash:before{content:"\f1f6"}.fa-bell-slash-o:before{content:"\f1f7"}.fa-trash:before{content:"\f1f8"}.fa-copyright:before{content:"\f1f9"}.fa-at:before{content:"\f1fa"}.fa-eyedropper:before{content:"\f1fb"}.fa-paint-brush:before{content:"\f1fc"}.fa-birthday-cake:before{content:"\f1fd"}.fa-area-chart:before{content:"\f1fe"}.fa-pie-chart:before{content:"\f200"}.fa-line-chart:before{content:"\f201"}.fa-lastfm:before{content:"\f202"}.fa-lastfm-square:before{content:"\f203"}.fa-toggle-off:before{content:"\f204"}.fa-toggle-on:before{content:"\f205"}.fa-bicycle:before{content:"\f206"}.fa-bus:before{content:"\f207"}.fa-ioxhost:before{content:"\f208"}.fa-angellist:before{content:"\f209"}.fa-cc:before{content:"\f20a"}.fa-shekel:before,.fa-sheqel:before,.fa-ils:before{content:"\f20b"}.fa-meanpath:before{content:"\f20c"}.fa-buysellads:before{content:"\f20d"}.fa-connectdevelop:before{content:"\f20e"}.fa-dashcube:before{content:"\f210"}.fa-forumbee:before{content:"\f211"}.fa-leanpub:before{content:"\f212"}.fa-sellsy:before{content:"\f213"}.fa-shirtsinbulk:before{content:"\f214"}.fa-simplybuilt:before{content:"\f215"}.fa-skyatlas:before{content:"\f216"}.fa-cart-plus:before{content:"\f217"}.fa-cart-arrow-down:before{content:"\f218"}.fa-diamond:before{content:"\f219"}.fa-ship:before{content:"\f21a"}.fa-user-secret:before{content:"\f21b"}.fa-motorcycle:before{content:"\f21c"}.fa-street-view:before{content:"\f21d"}.fa-heartbeat:before{content:"\f21e"}.fa-venus:before{content:"\f221"}.fa-mars:before{content:"\f222"}.fa-mercury:before{content:"\f223"}.fa-transgender:before{content:"\f224"}.fa-transgender-alt:before{content:"\f225"}.fa-venus-double:before{content:"\f226"}.fa-mars-double:before{content:"\f227"}.fa-venus-mars:before{content:"\f228"}.fa-mars-stroke:before{content:"\f229"}.fa-mars-stroke-v:before{content:"\f22a"}.fa-mars-stroke-h:before{content:"\f22b"}.fa-neuter:before{content:"\f22c"}.fa-facebook-official:before{content:"\f230"}.fa-pinterest-p:before{content:"\f231"}.fa-whatsapp:before{content:"\f232"}.fa-server:before{content:"\f233"}.fa-user-plus:before{content:"\f234"}.fa-user-times:before{content:"\f235"}.fa-hotel:before,.fa-bed:before{content:"\f236"}.fa-viacoin:before{content:"\f237"}.fa-train:before{content:"\f238"}.fa-subway:before{content:"\f239"}.fa-medium:before{content:"\f23a"}
\ No newline at end of file
diff --git a/assets/css/fontawesome-all.min.css b/assets/css/fontawesome-all.min.css
new file mode 100644
index 00000000..e69f4d1d
--- /dev/null
+++ b/assets/css/fontawesome-all.min.css
@@ -0,0 +1 @@
+.fa,.fab,.fal,.far,.fas{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-block;font-style:normal;font-variant:normal;text-rendering:auto;line-height:1}.fa-lg{font-size:1.33333em;line-height:.75em;vertical-align:-.0667em}.fa-xs{font-size:.75em}.fa-sm{font-size:.875em}.fa-1x{font-size:1em}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-6x{font-size:6em}.fa-7x{font-size:7em}.fa-8x{font-size:8em}.fa-9x{font-size:9em}.fa-10x{font-size:10em}.fa-fw{text-align:center;width:1.25em}.fa-ul{list-style-type:none;margin-left:2.5em;padding-left:0}.fa-ul>li{position:relative}.fa-li{left:-2em;position:absolute;text-align:center;width:2em;line-height:inherit}.fa-border{border:.08em solid #eee;border-radius:.1em;padding:.2em .25em .15em}.fa-pull-left{float:left}.fa-pull-right{float:right}.fa.fa-pull-left,.fab.fa-pull-left,.fal.fa-pull-left,.far.fa-pull-left,.fas.fa-pull-left{margin-right:.3em}.fa.fa-pull-right,.fab.fa-pull-right,.fal.fa-pull-right,.far.fa-pull-right,.fas.fa-pull-right{margin-left:.3em}.fa-spin{animation:fa-spin 2s infinite linear}.fa-pulse{animation:fa-spin 1s infinite steps(8)}@keyframes fa-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.fa-rotate-90{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";transform:rotate(90deg)}.fa-rotate-180{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";transform:rotate(180deg)}.fa-rotate-270{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";transform:rotate(270deg)}.fa-flip-horizontal{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";transform:scaleX(-1)}.fa-flip-vertical{transform:scaleY(-1)}.fa-flip-both,.fa-flip-horizontal.fa-flip-vertical,.fa-flip-vertical{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)"}.fa-flip-both,.fa-flip-horizontal.fa-flip-vertical{transform:scale(-1)}:root .fa-flip-both,:root .fa-flip-horizontal,:root .fa-flip-vertical,:root .fa-rotate-90,:root .fa-rotate-180,:root .fa-rotate-270{filter:none}.fa-stack{display:inline-block;height:2em;line-height:2em;position:relative;vertical-align:middle;width:2.5em}.fa-stack-1x,.fa-stack-2x{left:0;position:absolute;text-align:center;width:100%}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:#fff}.fa-500px:before{content:"\f26e"}.fa-accessible-icon:before{content:"\f368"}.fa-accusoft:before{content:"\f369"}.fa-acquisitions-incorporated:before{content:"\f6af"}.fa-ad:before{content:"\f641"}.fa-address-book:before{content:"\f2b9"}.fa-address-card:before{content:"\f2bb"}.fa-adjust:before{content:"\f042"}.fa-adn:before{content:"\f170"}.fa-adobe:before{content:"\f778"}.fa-adversal:before{content:"\f36a"}.fa-affiliatetheme:before{content:"\f36b"}.fa-air-freshener:before{content:"\f5d0"}.fa-algolia:before{content:"\f36c"}.fa-align-center:before{content:"\f037"}.fa-align-justify:before{content:"\f039"}.fa-align-left:before{content:"\f036"}.fa-align-right:before{content:"\f038"}.fa-alipay:before{content:"\f642"}.fa-allergies:before{content:"\f461"}.fa-amazon:before{content:"\f270"}.fa-amazon-pay:before{content:"\f42c"}.fa-ambulance:before{content:"\f0f9"}.fa-american-sign-language-interpreting:before{content:"\f2a3"}.fa-amilia:before{content:"\f36d"}.fa-anchor:before{content:"\f13d"}.fa-android:before{content:"\f17b"}.fa-angellist:before{content:"\f209"}.fa-angle-double-down:before{content:"\f103"}.fa-angle-double-left:before{content:"\f100"}.fa-angle-double-right:before{content:"\f101"}.fa-angle-double-up:before{content:"\f102"}.fa-angle-down:before{content:"\f107"}.fa-angle-left:before{content:"\f104"}.fa-angle-right:before{content:"\f105"}.fa-angle-up:before{content:"\f106"}.fa-angry:before{content:"\f556"}.fa-angrycreative:before{content:"\f36e"}.fa-angular:before{content:"\f420"}.fa-ankh:before{content:"\f644"}.fa-app-store:before{content:"\f36f"}.fa-app-store-ios:before{content:"\f370"}.fa-apper:before{content:"\f371"}.fa-apple:before{content:"\f179"}.fa-apple-alt:before{content:"\f5d1"}.fa-apple-pay:before{content:"\f415"}.fa-archive:before{content:"\f187"}.fa-archway:before{content:"\f557"}.fa-arrow-alt-circle-down:before{content:"\f358"}.fa-arrow-alt-circle-left:before{content:"\f359"}.fa-arrow-alt-circle-right:before{content:"\f35a"}.fa-arrow-alt-circle-up:before{content:"\f35b"}.fa-arrow-circle-down:before{content:"\f0ab"}.fa-arrow-circle-left:before{content:"\f0a8"}.fa-arrow-circle-right:before{content:"\f0a9"}.fa-arrow-circle-up:before{content:"\f0aa"}.fa-arrow-down:before{content:"\f063"}.fa-arrow-left:before{content:"\f060"}.fa-arrow-right:before{content:"\f061"}.fa-arrow-up:before{content:"\f062"}.fa-arrows-alt:before{content:"\f0b2"}.fa-arrows-alt-h:before{content:"\f337"}.fa-arrows-alt-v:before{content:"\f338"}.fa-artstation:before{content:"\f77a"}.fa-assistive-listening-systems:before{content:"\f2a2"}.fa-asterisk:before{content:"\f069"}.fa-asymmetrik:before{content:"\f372"}.fa-at:before{content:"\f1fa"}.fa-atlas:before{content:"\f558"}.fa-atlassian:before{content:"\f77b"}.fa-atom:before{content:"\f5d2"}.fa-audible:before{content:"\f373"}.fa-audio-description:before{content:"\f29e"}.fa-autoprefixer:before{content:"\f41c"}.fa-avianex:before{content:"\f374"}.fa-aviato:before{content:"\f421"}.fa-award:before{content:"\f559"}.fa-aws:before{content:"\f375"}.fa-baby:before{content:"\f77c"}.fa-baby-carriage:before{content:"\f77d"}.fa-backspace:before{content:"\f55a"}.fa-backward:before{content:"\f04a"}.fa-bacon:before{content:"\f7e5"}.fa-balance-scale:before{content:"\f24e"}.fa-ban:before{content:"\f05e"}.fa-band-aid:before{content:"\f462"}.fa-bandcamp:before{content:"\f2d5"}.fa-barcode:before{content:"\f02a"}.fa-bars:before{content:"\f0c9"}.fa-baseball-ball:before{content:"\f433"}.fa-basketball-ball:before{content:"\f434"}.fa-bath:before{content:"\f2cd"}.fa-battery-empty:before{content:"\f244"}.fa-battery-full:before{content:"\f240"}.fa-battery-half:before{content:"\f242"}.fa-battery-quarter:before{content:"\f243"}.fa-battery-three-quarters:before{content:"\f241"}.fa-bed:before{content:"\f236"}.fa-beer:before{content:"\f0fc"}.fa-behance:before{content:"\f1b4"}.fa-behance-square:before{content:"\f1b5"}.fa-bell:before{content:"\f0f3"}.fa-bell-slash:before{content:"\f1f6"}.fa-bezier-curve:before{content:"\f55b"}.fa-bible:before{content:"\f647"}.fa-bicycle:before{content:"\f206"}.fa-bimobject:before{content:"\f378"}.fa-binoculars:before{content:"\f1e5"}.fa-biohazard:before{content:"\f780"}.fa-birthday-cake:before{content:"\f1fd"}.fa-bitbucket:before{content:"\f171"}.fa-bitcoin:before{content:"\f379"}.fa-bity:before{content:"\f37a"}.fa-black-tie:before{content:"\f27e"}.fa-blackberry:before{content:"\f37b"}.fa-blender:before{content:"\f517"}.fa-blender-phone:before{content:"\f6b6"}.fa-blind:before{content:"\f29d"}.fa-blog:before{content:"\f781"}.fa-blogger:before{content:"\f37c"}.fa-blogger-b:before{content:"\f37d"}.fa-bluetooth:before{content:"\f293"}.fa-bluetooth-b:before{content:"\f294"}.fa-bold:before{content:"\f032"}.fa-bolt:before{content:"\f0e7"}.fa-bomb:before{content:"\f1e2"}.fa-bone:before{content:"\f5d7"}.fa-bong:before{content:"\f55c"}.fa-book:before{content:"\f02d"}.fa-book-dead:before{content:"\f6b7"}.fa-book-medical:before{content:"\f7e6"}.fa-book-open:before{content:"\f518"}.fa-book-reader:before{content:"\f5da"}.fa-bookmark:before{content:"\f02e"}.fa-bowling-ball:before{content:"\f436"}.fa-box:before{content:"\f466"}.fa-box-open:before{content:"\f49e"}.fa-boxes:before{content:"\f468"}.fa-braille:before{content:"\f2a1"}.fa-brain:before{content:"\f5dc"}.fa-bread-slice:before{content:"\f7ec"}.fa-briefcase:before{content:"\f0b1"}.fa-briefcase-medical:before{content:"\f469"}.fa-broadcast-tower:before{content:"\f519"}.fa-broom:before{content:"\f51a"}.fa-brush:before{content:"\f55d"}.fa-btc:before{content:"\f15a"}.fa-bug:before{content:"\f188"}.fa-building:before{content:"\f1ad"}.fa-bullhorn:before{content:"\f0a1"}.fa-bullseye:before{content:"\f140"}.fa-burn:before{content:"\f46a"}.fa-buromobelexperte:before{content:"\f37f"}.fa-bus:before{content:"\f207"}.fa-bus-alt:before{content:"\f55e"}.fa-business-time:before{content:"\f64a"}.fa-buysellads:before{content:"\f20d"}.fa-calculator:before{content:"\f1ec"}.fa-calendar:before{content:"\f133"}.fa-calendar-alt:before{content:"\f073"}.fa-calendar-check:before{content:"\f274"}.fa-calendar-day:before{content:"\f783"}.fa-calendar-minus:before{content:"\f272"}.fa-calendar-plus:before{content:"\f271"}.fa-calendar-times:before{content:"\f273"}.fa-calendar-week:before{content:"\f784"}.fa-camera:before{content:"\f030"}.fa-camera-retro:before{content:"\f083"}.fa-campground:before{content:"\f6bb"}.fa-canadian-maple-leaf:before{content:"\f785"}.fa-candy-cane:before{content:"\f786"}.fa-cannabis:before{content:"\f55f"}.fa-capsules:before{content:"\f46b"}.fa-car:before{content:"\f1b9"}.fa-car-alt:before{content:"\f5de"}.fa-car-battery:before{content:"\f5df"}.fa-car-crash:before{content:"\f5e1"}.fa-car-side:before{content:"\f5e4"}.fa-caret-down:before{content:"\f0d7"}.fa-caret-left:before{content:"\f0d9"}.fa-caret-right:before{content:"\f0da"}.fa-caret-square-down:before{content:"\f150"}.fa-caret-square-left:before{content:"\f191"}.fa-caret-square-right:before{content:"\f152"}.fa-caret-square-up:before{content:"\f151"}.fa-caret-up:before{content:"\f0d8"}.fa-carrot:before{content:"\f787"}.fa-cart-arrow-down:before{content:"\f218"}.fa-cart-plus:before{content:"\f217"}.fa-cash-register:before{content:"\f788"}.fa-cat:before{content:"\f6be"}.fa-cc-amazon-pay:before{content:"\f42d"}.fa-cc-amex:before{content:"\f1f3"}.fa-cc-apple-pay:before{content:"\f416"}.fa-cc-diners-club:before{content:"\f24c"}.fa-cc-discover:before{content:"\f1f2"}.fa-cc-jcb:before{content:"\f24b"}.fa-cc-mastercard:before{content:"\f1f1"}.fa-cc-paypal:before{content:"\f1f4"}.fa-cc-stripe:before{content:"\f1f5"}.fa-cc-visa:before{content:"\f1f0"}.fa-centercode:before{content:"\f380"}.fa-centos:before{content:"\f789"}.fa-certificate:before{content:"\f0a3"}.fa-chair:before{content:"\f6c0"}.fa-chalkboard:before{content:"\f51b"}.fa-chalkboard-teacher:before{content:"\f51c"}.fa-charging-station:before{content:"\f5e7"}.fa-chart-area:before{content:"\f1fe"}.fa-chart-bar:before{content:"\f080"}.fa-chart-line:before{content:"\f201"}.fa-chart-pie:before{content:"\f200"}.fa-check:before{content:"\f00c"}.fa-check-circle:before{content:"\f058"}.fa-check-double:before{content:"\f560"}.fa-check-square:before{content:"\f14a"}.fa-cheese:before{content:"\f7ef"}.fa-chess:before{content:"\f439"}.fa-chess-bishop:before{content:"\f43a"}.fa-chess-board:before{content:"\f43c"}.fa-chess-king:before{content:"\f43f"}.fa-chess-knight:before{content:"\f441"}.fa-chess-pawn:before{content:"\f443"}.fa-chess-queen:before{content:"\f445"}.fa-chess-rook:before{content:"\f447"}.fa-chevron-circle-down:before{content:"\f13a"}.fa-chevron-circle-left:before{content:"\f137"}.fa-chevron-circle-right:before{content:"\f138"}.fa-chevron-circle-up:before{content:"\f139"}.fa-chevron-down:before{content:"\f078"}.fa-chevron-left:before{content:"\f053"}.fa-chevron-right:before{content:"\f054"}.fa-chevron-up:before{content:"\f077"}.fa-child:before{content:"\f1ae"}.fa-chrome:before{content:"\f268"}.fa-church:before{content:"\f51d"}.fa-circle:before{content:"\f111"}.fa-circle-notch:before{content:"\f1ce"}.fa-city:before{content:"\f64f"}.fa-clinic-medical:before{content:"\f7f2"}.fa-clipboard:before{content:"\f328"}.fa-clipboard-check:before{content:"\f46c"}.fa-clipboard-list:before{content:"\f46d"}.fa-clock:before{content:"\f017"}.fa-clone:before{content:"\f24d"}.fa-closed-captioning:before{content:"\f20a"}.fa-cloud:before{content:"\f0c2"}.fa-cloud-download-alt:before{content:"\f381"}.fa-cloud-meatball:before{content:"\f73b"}.fa-cloud-moon:before{content:"\f6c3"}.fa-cloud-moon-rain:before{content:"\f73c"}.fa-cloud-rain:before{content:"\f73d"}.fa-cloud-showers-heavy:before{content:"\f740"}.fa-cloud-sun:before{content:"\f6c4"}.fa-cloud-sun-rain:before{content:"\f743"}.fa-cloud-upload-alt:before{content:"\f382"}.fa-cloudscale:before{content:"\f383"}.fa-cloudsmith:before{content:"\f384"}.fa-cloudversify:before{content:"\f385"}.fa-cocktail:before{content:"\f561"}.fa-code:before{content:"\f121"}.fa-code-branch:before{content:"\f126"}.fa-codepen:before{content:"\f1cb"}.fa-codiepie:before{content:"\f284"}.fa-coffee:before{content:"\f0f4"}.fa-cog:before{content:"\f013"}.fa-cogs:before{content:"\f085"}.fa-coins:before{content:"\f51e"}.fa-columns:before{content:"\f0db"}.fa-comment:before{content:"\f075"}.fa-comment-alt:before{content:"\f27a"}.fa-comment-dollar:before{content:"\f651"}.fa-comment-dots:before{content:"\f4ad"}.fa-comment-medical:before{content:"\f7f5"}.fa-comment-slash:before{content:"\f4b3"}.fa-comments:before{content:"\f086"}.fa-comments-dollar:before{content:"\f653"}.fa-compact-disc:before{content:"\f51f"}.fa-compass:before{content:"\f14e"}.fa-compress:before{content:"\f066"}.fa-compress-arrows-alt:before{content:"\f78c"}.fa-concierge-bell:before{content:"\f562"}.fa-confluence:before{content:"\f78d"}.fa-connectdevelop:before{content:"\f20e"}.fa-contao:before{content:"\f26d"}.fa-cookie:before{content:"\f563"}.fa-cookie-bite:before{content:"\f564"}.fa-copy:before{content:"\f0c5"}.fa-copyright:before{content:"\f1f9"}.fa-couch:before{content:"\f4b8"}.fa-cpanel:before{content:"\f388"}.fa-creative-commons:before{content:"\f25e"}.fa-creative-commons-by:before{content:"\f4e7"}.fa-creative-commons-nc:before{content:"\f4e8"}.fa-creative-commons-nc-eu:before{content:"\f4e9"}.fa-creative-commons-nc-jp:before{content:"\f4ea"}.fa-creative-commons-nd:before{content:"\f4eb"}.fa-creative-commons-pd:before{content:"\f4ec"}.fa-creative-commons-pd-alt:before{content:"\f4ed"}.fa-creative-commons-remix:before{content:"\f4ee"}.fa-creative-commons-sa:before{content:"\f4ef"}.fa-creative-commons-sampling:before{content:"\f4f0"}.fa-creative-commons-sampling-plus:before{content:"\f4f1"}.fa-creative-commons-share:before{content:"\f4f2"}.fa-creative-commons-zero:before{content:"\f4f3"}.fa-credit-card:before{content:"\f09d"}.fa-critical-role:before{content:"\f6c9"}.fa-crop:before{content:"\f125"}.fa-crop-alt:before{content:"\f565"}.fa-cross:before{content:"\f654"}.fa-crosshairs:before{content:"\f05b"}.fa-crow:before{content:"\f520"}.fa-crown:before{content:"\f521"}.fa-crutch:before{content:"\f7f7"}.fa-css3:before{content:"\f13c"}.fa-css3-alt:before{content:"\f38b"}.fa-cube:before{content:"\f1b2"}.fa-cubes:before{content:"\f1b3"}.fa-cut:before{content:"\f0c4"}.fa-cuttlefish:before{content:"\f38c"}.fa-d-and-d:before{content:"\f38d"}.fa-d-and-d-beyond:before{content:"\f6ca"}.fa-dashcube:before{content:"\f210"}.fa-database:before{content:"\f1c0"}.fa-deaf:before{content:"\f2a4"}.fa-delicious:before{content:"\f1a5"}.fa-democrat:before{content:"\f747"}.fa-deploydog:before{content:"\f38e"}.fa-deskpro:before{content:"\f38f"}.fa-desktop:before{content:"\f108"}.fa-dev:before{content:"\f6cc"}.fa-deviantart:before{content:"\f1bd"}.fa-dharmachakra:before{content:"\f655"}.fa-dhl:before{content:"\f790"}.fa-diagnoses:before{content:"\f470"}.fa-diaspora:before{content:"\f791"}.fa-dice:before{content:"\f522"}.fa-dice-d20:before{content:"\f6cf"}.fa-dice-d6:before{content:"\f6d1"}.fa-dice-five:before{content:"\f523"}.fa-dice-four:before{content:"\f524"}.fa-dice-one:before{content:"\f525"}.fa-dice-six:before{content:"\f526"}.fa-dice-three:before{content:"\f527"}.fa-dice-two:before{content:"\f528"}.fa-digg:before{content:"\f1a6"}.fa-digital-ocean:before{content:"\f391"}.fa-digital-tachograph:before{content:"\f566"}.fa-directions:before{content:"\f5eb"}.fa-discord:before{content:"\f392"}.fa-discourse:before{content:"\f393"}.fa-divide:before{content:"\f529"}.fa-dizzy:before{content:"\f567"}.fa-dna:before{content:"\f471"}.fa-dochub:before{content:"\f394"}.fa-docker:before{content:"\f395"}.fa-dog:before{content:"\f6d3"}.fa-dollar-sign:before{content:"\f155"}.fa-dolly:before{content:"\f472"}.fa-dolly-flatbed:before{content:"\f474"}.fa-donate:before{content:"\f4b9"}.fa-door-closed:before{content:"\f52a"}.fa-door-open:before{content:"\f52b"}.fa-dot-circle:before{content:"\f192"}.fa-dove:before{content:"\f4ba"}.fa-download:before{content:"\f019"}.fa-draft2digital:before{content:"\f396"}.fa-drafting-compass:before{content:"\f568"}.fa-dragon:before{content:"\f6d5"}.fa-draw-polygon:before{content:"\f5ee"}.fa-dribbble:before{content:"\f17d"}.fa-dribbble-square:before{content:"\f397"}.fa-dropbox:before{content:"\f16b"}.fa-drum:before{content:"\f569"}.fa-drum-steelpan:before{content:"\f56a"}.fa-drumstick-bite:before{content:"\f6d7"}.fa-drupal:before{content:"\f1a9"}.fa-dumbbell:before{content:"\f44b"}.fa-dumpster:before{content:"\f793"}.fa-dumpster-fire:before{content:"\f794"}.fa-dungeon:before{content:"\f6d9"}.fa-dyalog:before{content:"\f399"}.fa-earlybirds:before{content:"\f39a"}.fa-ebay:before{content:"\f4f4"}.fa-edge:before{content:"\f282"}.fa-edit:before{content:"\f044"}.fa-egg:before{content:"\f7fb"}.fa-eject:before{content:"\f052"}.fa-elementor:before{content:"\f430"}.fa-ellipsis-h:before{content:"\f141"}.fa-ellipsis-v:before{content:"\f142"}.fa-ello:before{content:"\f5f1"}.fa-ember:before{content:"\f423"}.fa-empire:before{content:"\f1d1"}.fa-envelope:before{content:"\f0e0"}.fa-envelope-open:before{content:"\f2b6"}.fa-envelope-open-text:before{content:"\f658"}.fa-envelope-square:before{content:"\f199"}.fa-envira:before{content:"\f299"}.fa-equals:before{content:"\f52c"}.fa-eraser:before{content:"\f12d"}.fa-erlang:before{content:"\f39d"}.fa-ethereum:before{content:"\f42e"}.fa-ethernet:before{content:"\f796"}.fa-etsy:before{content:"\f2d7"}.fa-euro-sign:before{content:"\f153"}.fa-exchange-alt:before{content:"\f362"}.fa-exclamation:before{content:"\f12a"}.fa-exclamation-circle:before{content:"\f06a"}.fa-exclamation-triangle:before{content:"\f071"}.fa-expand:before{content:"\f065"}.fa-expand-arrows-alt:before{content:"\f31e"}.fa-expeditedssl:before{content:"\f23e"}.fa-external-link-alt:before{content:"\f35d"}.fa-external-link-square-alt:before{content:"\f360"}.fa-eye:before{content:"\f06e"}.fa-eye-dropper:before{content:"\f1fb"}.fa-eye-slash:before{content:"\f070"}.fa-facebook:before{content:"\f09a"}.fa-facebook-f:before{content:"\f39e"}.fa-facebook-messenger:before{content:"\f39f"}.fa-facebook-square:before{content:"\f082"}.fa-fantasy-flight-games:before{content:"\f6dc"}.fa-fast-backward:before{content:"\f049"}.fa-fast-forward:before{content:"\f050"}.fa-fax:before{content:"\f1ac"}.fa-feather:before{content:"\f52d"}.fa-feather-alt:before{content:"\f56b"}.fa-fedex:before{content:"\f797"}.fa-fedora:before{content:"\f798"}.fa-female:before{content:"\f182"}.fa-fighter-jet:before{content:"\f0fb"}.fa-figma:before{content:"\f799"}.fa-file:before{content:"\f15b"}.fa-file-alt:before{content:"\f15c"}.fa-file-archive:before{content:"\f1c6"}.fa-file-audio:before{content:"\f1c7"}.fa-file-code:before{content:"\f1c9"}.fa-file-contract:before{content:"\f56c"}.fa-file-csv:before{content:"\f6dd"}.fa-file-download:before{content:"\f56d"}.fa-file-excel:before{content:"\f1c3"}.fa-file-export:before{content:"\f56e"}.fa-file-image:before{content:"\f1c5"}.fa-file-import:before{content:"\f56f"}.fa-file-invoice:before{content:"\f570"}.fa-file-invoice-dollar:before{content:"\f571"}.fa-file-medical:before{content:"\f477"}.fa-file-medical-alt:before{content:"\f478"}.fa-file-pdf:before{content:"\f1c1"}.fa-file-powerpoint:before{content:"\f1c4"}.fa-file-prescription:before{content:"\f572"}.fa-file-signature:before{content:"\f573"}.fa-file-upload:before{content:"\f574"}.fa-file-video:before{content:"\f1c8"}.fa-file-word:before{content:"\f1c2"}.fa-fill:before{content:"\f575"}.fa-fill-drip:before{content:"\f576"}.fa-film:before{content:"\f008"}.fa-filter:before{content:"\f0b0"}.fa-fingerprint:before{content:"\f577"}.fa-fire:before{content:"\f06d"}.fa-fire-alt:before{content:"\f7e4"}.fa-fire-extinguisher:before{content:"\f134"}.fa-firefox:before{content:"\f269"}.fa-first-aid:before{content:"\f479"}.fa-first-order:before{content:"\f2b0"}.fa-first-order-alt:before{content:"\f50a"}.fa-firstdraft:before{content:"\f3a1"}.fa-fish:before{content:"\f578"}.fa-fist-raised:before{content:"\f6de"}.fa-flag:before{content:"\f024"}.fa-flag-checkered:before{content:"\f11e"}.fa-flag-usa:before{content:"\f74d"}.fa-flask:before{content:"\f0c3"}.fa-flickr:before{content:"\f16e"}.fa-flipboard:before{content:"\f44d"}.fa-flushed:before{content:"\f579"}.fa-fly:before{content:"\f417"}.fa-folder:before{content:"\f07b"}.fa-folder-minus:before{content:"\f65d"}.fa-folder-open:before{content:"\f07c"}.fa-folder-plus:before{content:"\f65e"}.fa-font:before{content:"\f031"}.fa-font-awesome:before{content:"\f2b4"}.fa-font-awesome-alt:before{content:"\f35c"}.fa-font-awesome-flag:before{content:"\f425"}.fa-font-awesome-logo-full:before{content:"\f4e6"}.fa-fonticons:before{content:"\f280"}.fa-fonticons-fi:before{content:"\f3a2"}.fa-football-ball:before{content:"\f44e"}.fa-fort-awesome:before{content:"\f286"}.fa-fort-awesome-alt:before{content:"\f3a3"}.fa-forumbee:before{content:"\f211"}.fa-forward:before{content:"\f04e"}.fa-foursquare:before{content:"\f180"}.fa-free-code-camp:before{content:"\f2c5"}.fa-freebsd:before{content:"\f3a4"}.fa-frog:before{content:"\f52e"}.fa-frown:before{content:"\f119"}.fa-frown-open:before{content:"\f57a"}.fa-fulcrum:before{content:"\f50b"}.fa-funnel-dollar:before{content:"\f662"}.fa-futbol:before{content:"\f1e3"}.fa-galactic-republic:before{content:"\f50c"}.fa-galactic-senate:before{content:"\f50d"}.fa-gamepad:before{content:"\f11b"}.fa-gas-pump:before{content:"\f52f"}.fa-gavel:before{content:"\f0e3"}.fa-gem:before{content:"\f3a5"}.fa-genderless:before{content:"\f22d"}.fa-get-pocket:before{content:"\f265"}.fa-gg:before{content:"\f260"}.fa-gg-circle:before{content:"\f261"}.fa-ghost:before{content:"\f6e2"}.fa-gift:before{content:"\f06b"}.fa-gifts:before{content:"\f79c"}.fa-git:before{content:"\f1d3"}.fa-git-square:before{content:"\f1d2"}.fa-github:before{content:"\f09b"}.fa-github-alt:before{content:"\f113"}.fa-github-square:before{content:"\f092"}.fa-gitkraken:before{content:"\f3a6"}.fa-gitlab:before{content:"\f296"}.fa-gitter:before{content:"\f426"}.fa-glass-cheers:before{content:"\f79f"}.fa-glass-martini:before{content:"\f000"}.fa-glass-martini-alt:before{content:"\f57b"}.fa-glass-whiskey:before{content:"\f7a0"}.fa-glasses:before{content:"\f530"}.fa-glide:before{content:"\f2a5"}.fa-glide-g:before{content:"\f2a6"}.fa-globe:before{content:"\f0ac"}.fa-globe-africa:before{content:"\f57c"}.fa-globe-americas:before{content:"\f57d"}.fa-globe-asia:before{content:"\f57e"}.fa-globe-europe:before{content:"\f7a2"}.fa-gofore:before{content:"\f3a7"}.fa-golf-ball:before{content:"\f450"}.fa-goodreads:before{content:"\f3a8"}.fa-goodreads-g:before{content:"\f3a9"}.fa-google:before{content:"\f1a0"}.fa-google-drive:before{content:"\f3aa"}.fa-google-play:before{content:"\f3ab"}.fa-google-plus:before{content:"\f2b3"}.fa-google-plus-g:before{content:"\f0d5"}.fa-google-plus-square:before{content:"\f0d4"}.fa-google-wallet:before{content:"\f1ee"}.fa-gopuram:before{content:"\f664"}.fa-graduation-cap:before{content:"\f19d"}.fa-gratipay:before{content:"\f184"}.fa-grav:before{content:"\f2d6"}.fa-greater-than:before{content:"\f531"}.fa-greater-than-equal:before{content:"\f532"}.fa-grimace:before{content:"\f57f"}.fa-grin:before{content:"\f580"}.fa-grin-alt:before{content:"\f581"}.fa-grin-beam:before{content:"\f582"}.fa-grin-beam-sweat:before{content:"\f583"}.fa-grin-hearts:before{content:"\f584"}.fa-grin-squint:before{content:"\f585"}.fa-grin-squint-tears:before{content:"\f586"}.fa-grin-stars:before{content:"\f587"}.fa-grin-tears:before{content:"\f588"}.fa-grin-tongue:before{content:"\f589"}.fa-grin-tongue-squint:before{content:"\f58a"}.fa-grin-tongue-wink:before{content:"\f58b"}.fa-grin-wink:before{content:"\f58c"}.fa-grip-horizontal:before{content:"\f58d"}.fa-grip-lines:before{content:"\f7a4"}.fa-grip-lines-vertical:before{content:"\f7a5"}.fa-grip-vertical:before{content:"\f58e"}.fa-gripfire:before{content:"\f3ac"}.fa-grunt:before{content:"\f3ad"}.fa-guitar:before{content:"\f7a6"}.fa-gulp:before{content:"\f3ae"}.fa-h-square:before{content:"\f0fd"}.fa-hacker-news:before{content:"\f1d4"}.fa-hacker-news-square:before{content:"\f3af"}.fa-hackerrank:before{content:"\f5f7"}.fa-hamburger:before{content:"\f805"}.fa-hammer:before{content:"\f6e3"}.fa-hamsa:before{content:"\f665"}.fa-hand-holding:before{content:"\f4bd"}.fa-hand-holding-heart:before{content:"\f4be"}.fa-hand-holding-usd:before{content:"\f4c0"}.fa-hand-lizard:before{content:"\f258"}.fa-hand-middle-finger:before{content:"\f806"}.fa-hand-paper:before{content:"\f256"}.fa-hand-peace:before{content:"\f25b"}.fa-hand-point-down:before{content:"\f0a7"}.fa-hand-point-left:before{content:"\f0a5"}.fa-hand-point-right:before{content:"\f0a4"}.fa-hand-point-up:before{content:"\f0a6"}.fa-hand-pointer:before{content:"\f25a"}.fa-hand-rock:before{content:"\f255"}.fa-hand-scissors:before{content:"\f257"}.fa-hand-spock:before{content:"\f259"}.fa-hands:before{content:"\f4c2"}.fa-hands-helping:before{content:"\f4c4"}.fa-handshake:before{content:"\f2b5"}.fa-hanukiah:before{content:"\f6e6"}.fa-hard-hat:before{content:"\f807"}.fa-hashtag:before{content:"\f292"}.fa-hat-wizard:before{content:"\f6e8"}.fa-haykal:before{content:"\f666"}.fa-hdd:before{content:"\f0a0"}.fa-heading:before{content:"\f1dc"}.fa-headphones:before{content:"\f025"}.fa-headphones-alt:before{content:"\f58f"}.fa-headset:before{content:"\f590"}.fa-heart:before{content:"\f004"}.fa-heart-broken:before{content:"\f7a9"}.fa-heartbeat:before{content:"\f21e"}.fa-helicopter:before{content:"\f533"}.fa-highlighter:before{content:"\f591"}.fa-hiking:before{content:"\f6ec"}.fa-hippo:before{content:"\f6ed"}.fa-hips:before{content:"\f452"}.fa-hire-a-helper:before{content:"\f3b0"}.fa-history:before{content:"\f1da"}.fa-hockey-puck:before{content:"\f453"}.fa-holly-berry:before{content:"\f7aa"}.fa-home:before{content:"\f015"}.fa-hooli:before{content:"\f427"}.fa-hornbill:before{content:"\f592"}.fa-horse:before{content:"\f6f0"}.fa-horse-head:before{content:"\f7ab"}.fa-hospital:before{content:"\f0f8"}.fa-hospital-alt:before{content:"\f47d"}.fa-hospital-symbol:before{content:"\f47e"}.fa-hot-tub:before{content:"\f593"}.fa-hotdog:before{content:"\f80f"}.fa-hotel:before{content:"\f594"}.fa-hotjar:before{content:"\f3b1"}.fa-hourglass:before{content:"\f254"}.fa-hourglass-end:before{content:"\f253"}.fa-hourglass-half:before{content:"\f252"}.fa-hourglass-start:before{content:"\f251"}.fa-house-damage:before{content:"\f6f1"}.fa-houzz:before{content:"\f27c"}.fa-hryvnia:before{content:"\f6f2"}.fa-html5:before{content:"\f13b"}.fa-hubspot:before{content:"\f3b2"}.fa-i-cursor:before{content:"\f246"}.fa-ice-cream:before{content:"\f810"}.fa-icicles:before{content:"\f7ad"}.fa-id-badge:before{content:"\f2c1"}.fa-id-card:before{content:"\f2c2"}.fa-id-card-alt:before{content:"\f47f"}.fa-igloo:before{content:"\f7ae"}.fa-image:before{content:"\f03e"}.fa-images:before{content:"\f302"}.fa-imdb:before{content:"\f2d8"}.fa-inbox:before{content:"\f01c"}.fa-indent:before{content:"\f03c"}.fa-industry:before{content:"\f275"}.fa-infinity:before{content:"\f534"}.fa-info:before{content:"\f129"}.fa-info-circle:before{content:"\f05a"}.fa-instagram:before{content:"\f16d"}.fa-intercom:before{content:"\f7af"}.fa-internet-explorer:before{content:"\f26b"}.fa-invision:before{content:"\f7b0"}.fa-ioxhost:before{content:"\f208"}.fa-italic:before{content:"\f033"}.fa-itunes:before{content:"\f3b4"}.fa-itunes-note:before{content:"\f3b5"}.fa-java:before{content:"\f4e4"}.fa-jedi:before{content:"\f669"}.fa-jedi-order:before{content:"\f50e"}.fa-jenkins:before{content:"\f3b6"}.fa-jira:before{content:"\f7b1"}.fa-joget:before{content:"\f3b7"}.fa-joint:before{content:"\f595"}.fa-joomla:before{content:"\f1aa"}.fa-journal-whills:before{content:"\f66a"}.fa-js:before{content:"\f3b8"}.fa-js-square:before{content:"\f3b9"}.fa-jsfiddle:before{content:"\f1cc"}.fa-kaaba:before{content:"\f66b"}.fa-kaggle:before{content:"\f5fa"}.fa-key:before{content:"\f084"}.fa-keybase:before{content:"\f4f5"}.fa-keyboard:before{content:"\f11c"}.fa-keycdn:before{content:"\f3ba"}.fa-khanda:before{content:"\f66d"}.fa-kickstarter:before{content:"\f3bb"}.fa-kickstarter-k:before{content:"\f3bc"}.fa-kiss:before{content:"\f596"}.fa-kiss-beam:before{content:"\f597"}.fa-kiss-wink-heart:before{content:"\f598"}.fa-kiwi-bird:before{content:"\f535"}.fa-korvue:before{content:"\f42f"}.fa-landmark:before{content:"\f66f"}.fa-language:before{content:"\f1ab"}.fa-laptop:before{content:"\f109"}.fa-laptop-code:before{content:"\f5fc"}.fa-laptop-medical:before{content:"\f812"}.fa-laravel:before{content:"\f3bd"}.fa-lastfm:before{content:"\f202"}.fa-lastfm-square:before{content:"\f203"}.fa-laugh:before{content:"\f599"}.fa-laugh-beam:before{content:"\f59a"}.fa-laugh-squint:before{content:"\f59b"}.fa-laugh-wink:before{content:"\f59c"}.fa-layer-group:before{content:"\f5fd"}.fa-leaf:before{content:"\f06c"}.fa-leanpub:before{content:"\f212"}.fa-lemon:before{content:"\f094"}.fa-less:before{content:"\f41d"}.fa-less-than:before{content:"\f536"}.fa-less-than-equal:before{content:"\f537"}.fa-level-down-alt:before{content:"\f3be"}.fa-level-up-alt:before{content:"\f3bf"}.fa-life-ring:before{content:"\f1cd"}.fa-lightbulb:before{content:"\f0eb"}.fa-line:before{content:"\f3c0"}.fa-link:before{content:"\f0c1"}.fa-linkedin:before{content:"\f08c"}.fa-linkedin-in:before{content:"\f0e1"}.fa-linode:before{content:"\f2b8"}.fa-linux:before{content:"\f17c"}.fa-lira-sign:before{content:"\f195"}.fa-list:before{content:"\f03a"}.fa-list-alt:before{content:"\f022"}.fa-list-ol:before{content:"\f0cb"}.fa-list-ul:before{content:"\f0ca"}.fa-location-arrow:before{content:"\f124"}.fa-lock:before{content:"\f023"}.fa-lock-open:before{content:"\f3c1"}.fa-long-arrow-alt-down:before{content:"\f309"}.fa-long-arrow-alt-left:before{content:"\f30a"}.fa-long-arrow-alt-right:before{content:"\f30b"}.fa-long-arrow-alt-up:before{content:"\f30c"}.fa-low-vision:before{content:"\f2a8"}.fa-luggage-cart:before{content:"\f59d"}.fa-lyft:before{content:"\f3c3"}.fa-magento:before{content:"\f3c4"}.fa-magic:before{content:"\f0d0"}.fa-magnet:before{content:"\f076"}.fa-mail-bulk:before{content:"\f674"}.fa-mailchimp:before{content:"\f59e"}.fa-male:before{content:"\f183"}.fa-mandalorian:before{content:"\f50f"}.fa-map:before{content:"\f279"}.fa-map-marked:before{content:"\f59f"}.fa-map-marked-alt:before{content:"\f5a0"}.fa-map-marker:before{content:"\f041"}.fa-map-marker-alt:before{content:"\f3c5"}.fa-map-pin:before{content:"\f276"}.fa-map-signs:before{content:"\f277"}.fa-markdown:before{content:"\f60f"}.fa-marker:before{content:"\f5a1"}.fa-mars:before{content:"\f222"}.fa-mars-double:before{content:"\f227"}.fa-mars-stroke:before{content:"\f229"}.fa-mars-stroke-h:before{content:"\f22b"}.fa-mars-stroke-v:before{content:"\f22a"}.fa-mask:before{content:"\f6fa"}.fa-mastodon:before{content:"\f4f6"}.fa-maxcdn:before{content:"\f136"}.fa-medal:before{content:"\f5a2"}.fa-medapps:before{content:"\f3c6"}.fa-medium:before{content:"\f23a"}.fa-medium-m:before{content:"\f3c7"}.fa-medkit:before{content:"\f0fa"}.fa-medrt:before{content:"\f3c8"}.fa-meetup:before{content:"\f2e0"}.fa-megaport:before{content:"\f5a3"}.fa-meh:before{content:"\f11a"}.fa-meh-blank:before{content:"\f5a4"}.fa-meh-rolling-eyes:before{content:"\f5a5"}.fa-memory:before{content:"\f538"}.fa-mendeley:before{content:"\f7b3"}.fa-menorah:before{content:"\f676"}.fa-mercury:before{content:"\f223"}.fa-meteor:before{content:"\f753"}.fa-microchip:before{content:"\f2db"}.fa-microphone:before{content:"\f130"}.fa-microphone-alt:before{content:"\f3c9"}.fa-microphone-alt-slash:before{content:"\f539"}.fa-microphone-slash:before{content:"\f131"}.fa-microscope:before{content:"\f610"}.fa-microsoft:before{content:"\f3ca"}.fa-minus:before{content:"\f068"}.fa-minus-circle:before{content:"\f056"}.fa-minus-square:before{content:"\f146"}.fa-mitten:before{content:"\f7b5"}.fa-mix:before{content:"\f3cb"}.fa-mixcloud:before{content:"\f289"}.fa-mizuni:before{content:"\f3cc"}.fa-mobile:before{content:"\f10b"}.fa-mobile-alt:before{content:"\f3cd"}.fa-modx:before{content:"\f285"}.fa-monero:before{content:"\f3d0"}.fa-money-bill:before{content:"\f0d6"}.fa-money-bill-alt:before{content:"\f3d1"}.fa-money-bill-wave:before{content:"\f53a"}.fa-money-bill-wave-alt:before{content:"\f53b"}.fa-money-check:before{content:"\f53c"}.fa-money-check-alt:before{content:"\f53d"}.fa-monument:before{content:"\f5a6"}.fa-moon:before{content:"\f186"}.fa-mortar-pestle:before{content:"\f5a7"}.fa-mosque:before{content:"\f678"}.fa-motorcycle:before{content:"\f21c"}.fa-mountain:before{content:"\f6fc"}.fa-mouse-pointer:before{content:"\f245"}.fa-mug-hot:before{content:"\f7b6"}.fa-music:before{content:"\f001"}.fa-napster:before{content:"\f3d2"}.fa-neos:before{content:"\f612"}.fa-network-wired:before{content:"\f6ff"}.fa-neuter:before{content:"\f22c"}.fa-newspaper:before{content:"\f1ea"}.fa-nimblr:before{content:"\f5a8"}.fa-nintendo-switch:before{content:"\f418"}.fa-node:before{content:"\f419"}.fa-node-js:before{content:"\f3d3"}.fa-not-equal:before{content:"\f53e"}.fa-notes-medical:before{content:"\f481"}.fa-npm:before{content:"\f3d4"}.fa-ns8:before{content:"\f3d5"}.fa-nutritionix:before{content:"\f3d6"}.fa-object-group:before{content:"\f247"}.fa-object-ungroup:before{content:"\f248"}.fa-odnoklassniki:before{content:"\f263"}.fa-odnoklassniki-square:before{content:"\f264"}.fa-oil-can:before{content:"\f613"}.fa-old-republic:before{content:"\f510"}.fa-om:before{content:"\f679"}.fa-opencart:before{content:"\f23d"}.fa-openid:before{content:"\f19b"}.fa-opera:before{content:"\f26a"}.fa-optin-monster:before{content:"\f23c"}.fa-osi:before{content:"\f41a"}.fa-otter:before{content:"\f700"}.fa-outdent:before{content:"\f03b"}.fa-page4:before{content:"\f3d7"}.fa-pagelines:before{content:"\f18c"}.fa-pager:before{content:"\f815"}.fa-paint-brush:before{content:"\f1fc"}.fa-paint-roller:before{content:"\f5aa"}.fa-palette:before{content:"\f53f"}.fa-palfed:before{content:"\f3d8"}.fa-pallet:before{content:"\f482"}.fa-paper-plane:before{content:"\f1d8"}.fa-paperclip:before{content:"\f0c6"}.fa-parachute-box:before{content:"\f4cd"}.fa-paragraph:before{content:"\f1dd"}.fa-parking:before{content:"\f540"}.fa-passport:before{content:"\f5ab"}.fa-pastafarianism:before{content:"\f67b"}.fa-paste:before{content:"\f0ea"}.fa-patreon:before{content:"\f3d9"}.fa-pause:before{content:"\f04c"}.fa-pause-circle:before{content:"\f28b"}.fa-paw:before{content:"\f1b0"}.fa-paypal:before{content:"\f1ed"}.fa-peace:before{content:"\f67c"}.fa-pen:before{content:"\f304"}.fa-pen-alt:before{content:"\f305"}.fa-pen-fancy:before{content:"\f5ac"}.fa-pen-nib:before{content:"\f5ad"}.fa-pen-square:before{content:"\f14b"}.fa-pencil-alt:before{content:"\f303"}.fa-pencil-ruler:before{content:"\f5ae"}.fa-penny-arcade:before{content:"\f704"}.fa-people-carry:before{content:"\f4ce"}.fa-pepper-hot:before{content:"\f816"}.fa-percent:before{content:"\f295"}.fa-percentage:before{content:"\f541"}.fa-periscope:before{content:"\f3da"}.fa-person-booth:before{content:"\f756"}.fa-phabricator:before{content:"\f3db"}.fa-phoenix-framework:before{content:"\f3dc"}.fa-phoenix-squadron:before{content:"\f511"}.fa-phone:before{content:"\f095"}.fa-phone-slash:before{content:"\f3dd"}.fa-phone-square:before{content:"\f098"}.fa-phone-volume:before{content:"\f2a0"}.fa-php:before{content:"\f457"}.fa-pied-piper:before{content:"\f2ae"}.fa-pied-piper-alt:before{content:"\f1a8"}.fa-pied-piper-hat:before{content:"\f4e5"}.fa-pied-piper-pp:before{content:"\f1a7"}.fa-piggy-bank:before{content:"\f4d3"}.fa-pills:before{content:"\f484"}.fa-pinterest:before{content:"\f0d2"}.fa-pinterest-p:before{content:"\f231"}.fa-pinterest-square:before{content:"\f0d3"}.fa-pizza-slice:before{content:"\f818"}.fa-place-of-worship:before{content:"\f67f"}.fa-plane:before{content:"\f072"}.fa-plane-arrival:before{content:"\f5af"}.fa-plane-departure:before{content:"\f5b0"}.fa-play:before{content:"\f04b"}.fa-play-circle:before{content:"\f144"}.fa-playstation:before{content:"\f3df"}.fa-plug:before{content:"\f1e6"}.fa-plus:before{content:"\f067"}.fa-plus-circle:before{content:"\f055"}.fa-plus-square:before{content:"\f0fe"}.fa-podcast:before{content:"\f2ce"}.fa-poll:before{content:"\f681"}.fa-poll-h:before{content:"\f682"}.fa-poo:before{content:"\f2fe"}.fa-poo-storm:before{content:"\f75a"}.fa-poop:before{content:"\f619"}.fa-portrait:before{content:"\f3e0"}.fa-pound-sign:before{content:"\f154"}.fa-power-off:before{content:"\f011"}.fa-pray:before{content:"\f683"}.fa-praying-hands:before{content:"\f684"}.fa-prescription:before{content:"\f5b1"}.fa-prescription-bottle:before{content:"\f485"}.fa-prescription-bottle-alt:before{content:"\f486"}.fa-print:before{content:"\f02f"}.fa-procedures:before{content:"\f487"}.fa-product-hunt:before{content:"\f288"}.fa-project-diagram:before{content:"\f542"}.fa-pushed:before{content:"\f3e1"}.fa-puzzle-piece:before{content:"\f12e"}.fa-python:before{content:"\f3e2"}.fa-qq:before{content:"\f1d6"}.fa-qrcode:before{content:"\f029"}.fa-question:before{content:"\f128"}.fa-question-circle:before{content:"\f059"}.fa-quidditch:before{content:"\f458"}.fa-quinscape:before{content:"\f459"}.fa-quora:before{content:"\f2c4"}.fa-quote-left:before{content:"\f10d"}.fa-quote-right:before{content:"\f10e"}.fa-quran:before{content:"\f687"}.fa-r-project:before{content:"\f4f7"}.fa-radiation:before{content:"\f7b9"}.fa-radiation-alt:before{content:"\f7ba"}.fa-rainbow:before{content:"\f75b"}.fa-random:before{content:"\f074"}.fa-raspberry-pi:before{content:"\f7bb"}.fa-ravelry:before{content:"\f2d9"}.fa-react:before{content:"\f41b"}.fa-reacteurope:before{content:"\f75d"}.fa-readme:before{content:"\f4d5"}.fa-rebel:before{content:"\f1d0"}.fa-receipt:before{content:"\f543"}.fa-recycle:before{content:"\f1b8"}.fa-red-river:before{content:"\f3e3"}.fa-reddit:before{content:"\f1a1"}.fa-reddit-alien:before{content:"\f281"}.fa-reddit-square:before{content:"\f1a2"}.fa-redhat:before{content:"\f7bc"}.fa-redo:before{content:"\f01e"}.fa-redo-alt:before{content:"\f2f9"}.fa-registered:before{content:"\f25d"}.fa-renren:before{content:"\f18b"}.fa-reply:before{content:"\f3e5"}.fa-reply-all:before{content:"\f122"}.fa-replyd:before{content:"\f3e6"}.fa-republican:before{content:"\f75e"}.fa-researchgate:before{content:"\f4f8"}.fa-resolving:before{content:"\f3e7"}.fa-restroom:before{content:"\f7bd"}.fa-retweet:before{content:"\f079"}.fa-rev:before{content:"\f5b2"}.fa-ribbon:before{content:"\f4d6"}.fa-ring:before{content:"\f70b"}.fa-road:before{content:"\f018"}.fa-robot:before{content:"\f544"}.fa-rocket:before{content:"\f135"}.fa-rocketchat:before{content:"\f3e8"}.fa-rockrms:before{content:"\f3e9"}.fa-route:before{content:"\f4d7"}.fa-rss:before{content:"\f09e"}.fa-rss-square:before{content:"\f143"}.fa-ruble-sign:before{content:"\f158"}.fa-ruler:before{content:"\f545"}.fa-ruler-combined:before{content:"\f546"}.fa-ruler-horizontal:before{content:"\f547"}.fa-ruler-vertical:before{content:"\f548"}.fa-running:before{content:"\f70c"}.fa-rupee-sign:before{content:"\f156"}.fa-sad-cry:before{content:"\f5b3"}.fa-sad-tear:before{content:"\f5b4"}.fa-safari:before{content:"\f267"}.fa-sass:before{content:"\f41e"}.fa-satellite:before{content:"\f7bf"}.fa-satellite-dish:before{content:"\f7c0"}.fa-save:before{content:"\f0c7"}.fa-schlix:before{content:"\f3ea"}.fa-school:before{content:"\f549"}.fa-screwdriver:before{content:"\f54a"}.fa-scribd:before{content:"\f28a"}.fa-scroll:before{content:"\f70e"}.fa-sd-card:before{content:"\f7c2"}.fa-search:before{content:"\f002"}.fa-search-dollar:before{content:"\f688"}.fa-search-location:before{content:"\f689"}.fa-search-minus:before{content:"\f010"}.fa-search-plus:before{content:"\f00e"}.fa-searchengin:before{content:"\f3eb"}.fa-seedling:before{content:"\f4d8"}.fa-sellcast:before{content:"\f2da"}.fa-sellsy:before{content:"\f213"}.fa-server:before{content:"\f233"}.fa-servicestack:before{content:"\f3ec"}.fa-shapes:before{content:"\f61f"}.fa-share:before{content:"\f064"}.fa-share-alt:before{content:"\f1e0"}.fa-share-alt-square:before{content:"\f1e1"}.fa-share-square:before{content:"\f14d"}.fa-shekel-sign:before{content:"\f20b"}.fa-shield-alt:before{content:"\f3ed"}.fa-ship:before{content:"\f21a"}.fa-shipping-fast:before{content:"\f48b"}.fa-shirtsinbulk:before{content:"\f214"}.fa-shoe-prints:before{content:"\f54b"}.fa-shopping-bag:before{content:"\f290"}.fa-shopping-basket:before{content:"\f291"}.fa-shopping-cart:before{content:"\f07a"}.fa-shopware:before{content:"\f5b5"}.fa-shower:before{content:"\f2cc"}.fa-shuttle-van:before{content:"\f5b6"}.fa-sign:before{content:"\f4d9"}.fa-sign-in-alt:before{content:"\f2f6"}.fa-sign-language:before{content:"\f2a7"}.fa-sign-out-alt:before{content:"\f2f5"}.fa-signal:before{content:"\f012"}.fa-signature:before{content:"\f5b7"}.fa-sim-card:before{content:"\f7c4"}.fa-simplybuilt:before{content:"\f215"}.fa-sistrix:before{content:"\f3ee"}.fa-sitemap:before{content:"\f0e8"}.fa-sith:before{content:"\f512"}.fa-skating:before{content:"\f7c5"}.fa-sketch:before{content:"\f7c6"}.fa-skiing:before{content:"\f7c9"}.fa-skiing-nordic:before{content:"\f7ca"}.fa-skull:before{content:"\f54c"}.fa-skull-crossbones:before{content:"\f714"}.fa-skyatlas:before{content:"\f216"}.fa-skype:before{content:"\f17e"}.fa-slack:before{content:"\f198"}.fa-slack-hash:before{content:"\f3ef"}.fa-slash:before{content:"\f715"}.fa-sleigh:before{content:"\f7cc"}.fa-sliders-h:before{content:"\f1de"}.fa-slideshare:before{content:"\f1e7"}.fa-smile:before{content:"\f118"}.fa-smile-beam:before{content:"\f5b8"}.fa-smile-wink:before{content:"\f4da"}.fa-smog:before{content:"\f75f"}.fa-smoking:before{content:"\f48d"}.fa-smoking-ban:before{content:"\f54d"}.fa-sms:before{content:"\f7cd"}.fa-snapchat:before{content:"\f2ab"}.fa-snapchat-ghost:before{content:"\f2ac"}.fa-snapchat-square:before{content:"\f2ad"}.fa-snowboarding:before{content:"\f7ce"}.fa-snowflake:before{content:"\f2dc"}.fa-snowman:before{content:"\f7d0"}.fa-snowplow:before{content:"\f7d2"}.fa-socks:before{content:"\f696"}.fa-solar-panel:before{content:"\f5ba"}.fa-sort:before{content:"\f0dc"}.fa-sort-alpha-down:before{content:"\f15d"}.fa-sort-alpha-up:before{content:"\f15e"}.fa-sort-amount-down:before{content:"\f160"}.fa-sort-amount-up:before{content:"\f161"}.fa-sort-down:before{content:"\f0dd"}.fa-sort-numeric-down:before{content:"\f162"}.fa-sort-numeric-up:before{content:"\f163"}.fa-sort-up:before{content:"\f0de"}.fa-soundcloud:before{content:"\f1be"}.fa-sourcetree:before{content:"\f7d3"}.fa-spa:before{content:"\f5bb"}.fa-space-shuttle:before{content:"\f197"}.fa-speakap:before{content:"\f3f3"}.fa-spider:before{content:"\f717"}.fa-spinner:before{content:"\f110"}.fa-splotch:before{content:"\f5bc"}.fa-spotify:before{content:"\f1bc"}.fa-spray-can:before{content:"\f5bd"}.fa-square:before{content:"\f0c8"}.fa-square-full:before{content:"\f45c"}.fa-square-root-alt:before{content:"\f698"}.fa-squarespace:before{content:"\f5be"}.fa-stack-exchange:before{content:"\f18d"}.fa-stack-overflow:before{content:"\f16c"}.fa-stamp:before{content:"\f5bf"}.fa-star:before{content:"\f005"}.fa-star-and-crescent:before{content:"\f699"}.fa-star-half:before{content:"\f089"}.fa-star-half-alt:before{content:"\f5c0"}.fa-star-of-david:before{content:"\f69a"}.fa-star-of-life:before{content:"\f621"}.fa-staylinked:before{content:"\f3f5"}.fa-steam:before{content:"\f1b6"}.fa-steam-square:before{content:"\f1b7"}.fa-steam-symbol:before{content:"\f3f6"}.fa-step-backward:before{content:"\f048"}.fa-step-forward:before{content:"\f051"}.fa-stethoscope:before{content:"\f0f1"}.fa-sticker-mule:before{content:"\f3f7"}.fa-sticky-note:before{content:"\f249"}.fa-stop:before{content:"\f04d"}.fa-stop-circle:before{content:"\f28d"}.fa-stopwatch:before{content:"\f2f2"}.fa-store:before{content:"\f54e"}.fa-store-alt:before{content:"\f54f"}.fa-strava:before{content:"\f428"}.fa-stream:before{content:"\f550"}.fa-street-view:before{content:"\f21d"}.fa-strikethrough:before{content:"\f0cc"}.fa-stripe:before{content:"\f429"}.fa-stripe-s:before{content:"\f42a"}.fa-stroopwafel:before{content:"\f551"}.fa-studiovinari:before{content:"\f3f8"}.fa-stumbleupon:before{content:"\f1a4"}.fa-stumbleupon-circle:before{content:"\f1a3"}.fa-subscript:before{content:"\f12c"}.fa-subway:before{content:"\f239"}.fa-suitcase:before{content:"\f0f2"}.fa-suitcase-rolling:before{content:"\f5c1"}.fa-sun:before{content:"\f185"}.fa-superpowers:before{content:"\f2dd"}.fa-superscript:before{content:"\f12b"}.fa-supple:before{content:"\f3f9"}.fa-surprise:before{content:"\f5c2"}.fa-suse:before{content:"\f7d6"}.fa-swatchbook:before{content:"\f5c3"}.fa-swimmer:before{content:"\f5c4"}.fa-swimming-pool:before{content:"\f5c5"}.fa-synagogue:before{content:"\f69b"}.fa-sync:before{content:"\f021"}.fa-sync-alt:before{content:"\f2f1"}.fa-syringe:before{content:"\f48e"}.fa-table:before{content:"\f0ce"}.fa-table-tennis:before{content:"\f45d"}.fa-tablet:before{content:"\f10a"}.fa-tablet-alt:before{content:"\f3fa"}.fa-tablets:before{content:"\f490"}.fa-tachometer-alt:before{content:"\f3fd"}.fa-tag:before{content:"\f02b"}.fa-tags:before{content:"\f02c"}.fa-tape:before{content:"\f4db"}.fa-tasks:before{content:"\f0ae"}.fa-taxi:before{content:"\f1ba"}.fa-teamspeak:before{content:"\f4f9"}.fa-teeth:before{content:"\f62e"}.fa-teeth-open:before{content:"\f62f"}.fa-telegram:before{content:"\f2c6"}.fa-telegram-plane:before{content:"\f3fe"}.fa-temperature-high:before{content:"\f769"}.fa-temperature-low:before{content:"\f76b"}.fa-tencent-weibo:before{content:"\f1d5"}.fa-tenge:before{content:"\f7d7"}.fa-terminal:before{content:"\f120"}.fa-text-height:before{content:"\f034"}.fa-text-width:before{content:"\f035"}.fa-th:before{content:"\f00a"}.fa-th-large:before{content:"\f009"}.fa-th-list:before{content:"\f00b"}.fa-the-red-yeti:before{content:"\f69d"}.fa-theater-masks:before{content:"\f630"}.fa-themeco:before{content:"\f5c6"}.fa-themeisle:before{content:"\f2b2"}.fa-thermometer:before{content:"\f491"}.fa-thermometer-empty:before{content:"\f2cb"}.fa-thermometer-full:before{content:"\f2c7"}.fa-thermometer-half:before{content:"\f2c9"}.fa-thermometer-quarter:before{content:"\f2ca"}.fa-thermometer-three-quarters:before{content:"\f2c8"}.fa-think-peaks:before{content:"\f731"}.fa-thumbs-down:before{content:"\f165"}.fa-thumbs-up:before{content:"\f164"}.fa-thumbtack:before{content:"\f08d"}.fa-ticket-alt:before{content:"\f3ff"}.fa-times:before{content:"\f00d"}.fa-times-circle:before{content:"\f057"}.fa-tint:before{content:"\f043"}.fa-tint-slash:before{content:"\f5c7"}.fa-tired:before{content:"\f5c8"}.fa-toggle-off:before{content:"\f204"}.fa-toggle-on:before{content:"\f205"}.fa-toilet:before{content:"\f7d8"}.fa-toilet-paper:before{content:"\f71e"}.fa-toolbox:before{content:"\f552"}.fa-tools:before{content:"\f7d9"}.fa-tooth:before{content:"\f5c9"}.fa-torah:before{content:"\f6a0"}.fa-torii-gate:before{content:"\f6a1"}.fa-tractor:before{content:"\f722"}.fa-trade-federation:before{content:"\f513"}.fa-trademark:before{content:"\f25c"}.fa-traffic-light:before{content:"\f637"}.fa-train:before{content:"\f238"}.fa-tram:before{content:"\f7da"}.fa-transgender:before{content:"\f224"}.fa-transgender-alt:before{content:"\f225"}.fa-trash:before{content:"\f1f8"}.fa-trash-alt:before{content:"\f2ed"}.fa-trash-restore:before{content:"\f829"}.fa-trash-restore-alt:before{content:"\f82a"}.fa-tree:before{content:"\f1bb"}.fa-trello:before{content:"\f181"}.fa-tripadvisor:before{content:"\f262"}.fa-trophy:before{content:"\f091"}.fa-truck:before{content:"\f0d1"}.fa-truck-loading:before{content:"\f4de"}.fa-truck-monster:before{content:"\f63b"}.fa-truck-moving:before{content:"\f4df"}.fa-truck-pickup:before{content:"\f63c"}.fa-tshirt:before{content:"\f553"}.fa-tty:before{content:"\f1e4"}.fa-tumblr:before{content:"\f173"}.fa-tumblr-square:before{content:"\f174"}.fa-tv:before{content:"\f26c"}.fa-twitch:before{content:"\f1e8"}.fa-twitter:before{content:"\f099"}.fa-twitter-square:before{content:"\f081"}.fa-typo3:before{content:"\f42b"}.fa-uber:before{content:"\f402"}.fa-ubuntu:before{content:"\f7df"}.fa-uikit:before{content:"\f403"}.fa-umbrella:before{content:"\f0e9"}.fa-umbrella-beach:before{content:"\f5ca"}.fa-underline:before{content:"\f0cd"}.fa-undo:before{content:"\f0e2"}.fa-undo-alt:before{content:"\f2ea"}.fa-uniregistry:before{content:"\f404"}.fa-universal-access:before{content:"\f29a"}.fa-university:before{content:"\f19c"}.fa-unlink:before{content:"\f127"}.fa-unlock:before{content:"\f09c"}.fa-unlock-alt:before{content:"\f13e"}.fa-untappd:before{content:"\f405"}.fa-upload:before{content:"\f093"}.fa-ups:before{content:"\f7e0"}.fa-usb:before{content:"\f287"}.fa-user:before{content:"\f007"}.fa-user-alt:before{content:"\f406"}.fa-user-alt-slash:before{content:"\f4fa"}.fa-user-astronaut:before{content:"\f4fb"}.fa-user-check:before{content:"\f4fc"}.fa-user-circle:before{content:"\f2bd"}.fa-user-clock:before{content:"\f4fd"}.fa-user-cog:before{content:"\f4fe"}.fa-user-edit:before{content:"\f4ff"}.fa-user-friends:before{content:"\f500"}.fa-user-graduate:before{content:"\f501"}.fa-user-injured:before{content:"\f728"}.fa-user-lock:before{content:"\f502"}.fa-user-md:before{content:"\f0f0"}.fa-user-minus:before{content:"\f503"}.fa-user-ninja:before{content:"\f504"}.fa-user-nurse:before{content:"\f82f"}.fa-user-plus:before{content:"\f234"}.fa-user-secret:before{content:"\f21b"}.fa-user-shield:before{content:"\f505"}.fa-user-slash:before{content:"\f506"}.fa-user-tag:before{content:"\f507"}.fa-user-tie:before{content:"\f508"}.fa-user-times:before{content:"\f235"}.fa-users:before{content:"\f0c0"}.fa-users-cog:before{content:"\f509"}.fa-usps:before{content:"\f7e1"}.fa-ussunnah:before{content:"\f407"}.fa-utensil-spoon:before{content:"\f2e5"}.fa-utensils:before{content:"\f2e7"}.fa-vaadin:before{content:"\f408"}.fa-vector-square:before{content:"\f5cb"}.fa-venus:before{content:"\f221"}.fa-venus-double:before{content:"\f226"}.fa-venus-mars:before{content:"\f228"}.fa-viacoin:before{content:"\f237"}.fa-viadeo:before{content:"\f2a9"}.fa-viadeo-square:before{content:"\f2aa"}.fa-vial:before{content:"\f492"}.fa-vials:before{content:"\f493"}.fa-viber:before{content:"\f409"}.fa-video:before{content:"\f03d"}.fa-video-slash:before{content:"\f4e2"}.fa-vihara:before{content:"\f6a7"}.fa-vimeo:before{content:"\f40a"}.fa-vimeo-square:before{content:"\f194"}.fa-vimeo-v:before{content:"\f27d"}.fa-vine:before{content:"\f1ca"}.fa-vk:before{content:"\f189"}.fa-vnv:before{content:"\f40b"}.fa-volleyball-ball:before{content:"\f45f"}.fa-volume-down:before{content:"\f027"}.fa-volume-mute:before{content:"\f6a9"}.fa-volume-off:before{content:"\f026"}.fa-volume-up:before{content:"\f028"}.fa-vote-yea:before{content:"\f772"}.fa-vr-cardboard:before{content:"\f729"}.fa-vuejs:before{content:"\f41f"}.fa-walking:before{content:"\f554"}.fa-wallet:before{content:"\f555"}.fa-warehouse:before{content:"\f494"}.fa-water:before{content:"\f773"}.fa-weebly:before{content:"\f5cc"}.fa-weibo:before{content:"\f18a"}.fa-weight:before{content:"\f496"}.fa-weight-hanging:before{content:"\f5cd"}.fa-weixin:before{content:"\f1d7"}.fa-whatsapp:before{content:"\f232"}.fa-whatsapp-square:before{content:"\f40c"}.fa-wheelchair:before{content:"\f193"}.fa-whmcs:before{content:"\f40d"}.fa-wifi:before{content:"\f1eb"}.fa-wikipedia-w:before{content:"\f266"}.fa-wind:before{content:"\f72e"}.fa-window-close:before{content:"\f410"}.fa-window-maximize:before{content:"\f2d0"}.fa-window-minimize:before{content:"\f2d1"}.fa-window-restore:before{content:"\f2d2"}.fa-windows:before{content:"\f17a"}.fa-wine-bottle:before{content:"\f72f"}.fa-wine-glass:before{content:"\f4e3"}.fa-wine-glass-alt:before{content:"\f5ce"}.fa-wix:before{content:"\f5cf"}.fa-wizards-of-the-coast:before{content:"\f730"}.fa-wolf-pack-battalion:before{content:"\f514"}.fa-won-sign:before{content:"\f159"}.fa-wordpress:before{content:"\f19a"}.fa-wordpress-simple:before{content:"\f411"}.fa-wpbeginner:before{content:"\f297"}.fa-wpexplorer:before{content:"\f2de"}.fa-wpforms:before{content:"\f298"}.fa-wpressr:before{content:"\f3e4"}.fa-wrench:before{content:"\f0ad"}.fa-x-ray:before{content:"\f497"}.fa-xbox:before{content:"\f412"}.fa-xing:before{content:"\f168"}.fa-xing-square:before{content:"\f169"}.fa-y-combinator:before{content:"\f23b"}.fa-yahoo:before{content:"\f19e"}.fa-yandex:before{content:"\f413"}.fa-yandex-international:before{content:"\f414"}.fa-yarn:before{content:"\f7e3"}.fa-yelp:before{content:"\f1e9"}.fa-yen-sign:before{content:"\f157"}.fa-yin-yang:before{content:"\f6ad"}.fa-yoast:before{content:"\f2b1"}.fa-youtube:before{content:"\f167"}.fa-youtube-square:before{content:"\f431"}.fa-zhihu:before{content:"\f63f"}.sr-only{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.sr-only-focusable:active,.sr-only-focusable:focus{clip:auto;height:auto;margin:0;overflow:visible;position:static;width:auto}@font-face{font-family:"Font Awesome 5 Brands";font-style:normal;font-weight:normal;font-display:auto;src:url(../webfonts/fa-brands-400.woff2) format("woff2"),url(../webfonts/fa-brands-400.woff) format("woff")}.fab{font-family:"Font Awesome 5 Brands"}@font-face{font-family:"Font Awesome 5 Free";font-style:normal;font-weight:400;font-display:auto;src:url(../webfonts/fa-regular-400.woff2) format("woff2"),url(../webfonts/fa-regular-400.woff) format("woff")}.far{font-weight:400}@font-face{font-family:"Font Awesome 5 Free";font-style:normal;font-weight:900;font-display:auto;src:url(../webfonts/fa-solid-900.woff2) format("woff2"),url(../webfonts/fa-solid-900.woff) format("woff")}.fa,.far,.fas{font-family:"Font Awesome 5 Free"}.fa,.fas{font-weight:900}
\ No newline at end of file
diff --git a/assets/css/global_admin_style.css b/assets/css/global_admin_style.css
new file mode 100644
index 00000000..fa46cb67
--- /dev/null
+++ b/assets/css/global_admin_style.css
@@ -0,0 +1,156 @@
+/* ================================================
+ * DUPLICATOR STYLE
+ * Included in all admin pages
+ * ================================================ */
+
+.no_display {
+ display: none;
+}
+
+.dup-updated,
+.dup-notice-success {
+ margin-left: 0;
+ background: #fff;
+ border-left: 4px solid #fff;
+ box-shadow: 0 1px 1px 0 rgba( 0, 0, 0, 0.1 );
+ margin: 5px 15px 2px 2px;
+ padding: 1px 12px;
+}
+
+.dup-notice-success {
+ border-left-color: #46b450;
+}
+
+.dup-updated p {
+ margin: 0.5em 0;
+ padding: 2px;
+}
+
+.dup-updated a {
+ padding-bottom: 2px;
+}
+
+.dup-updated {
+ border-left-color: #46b450;
+}
+
+.wrap .dup-updated {
+ margin: 5px 0 15px;
+ margin: 20px 0 10px 0;
+ padding: 5px 10px;
+ font-size: 14px;
+ line-height: 175%;
+}
+
+.duplicator-plugin-activation-admin-notice {
+ display: block;
+}
+
+.dup-plugins-list-pro-upgrade {
+ color: #1da867!important;
+}
+
+.dup-dashboard-widget-content .maroon {
+ color: maroon;
+}
+
+.dup-dashboard-widget-content .green {
+ color: #00a32a;
+}
+
+.dup-dashboard-widget-content .gary {
+ color: #646970;
+}
+
+.dup-dashboard-widget-content a.disabled {
+ pointer-events: none;
+ cursor: default;
+}
+
+.dup-dashboard-widget-content .separator {
+ margin: 1em 0;
+}
+
+.dup-dashboard-widget-content .dup-packages-counts {
+ text-align: right;
+}
+
+.dup-dashboard-widget-content .dup-section-last-packages ul,
+.dup-dashboard-widget-content .dup-section-sections ul {
+ list-style: none;
+ padding: 0;
+ margin: 0;
+}
+
+.dup-dashboard-widget-content .dup-section-last-packages ul li,
+.dup-dashboard-widget-content .dup-section-sections ul li {
+ margin: 0 0 10px 0;
+}
+
+.dup-dashboard-widget-content .dup-section-last-packages ul li:last-child,
+.dup-dashboard-widget-content .dup-section-sections ul li:last-child {
+ margin: 0;
+}
+
+.dup-dashboard-widget-content .dup-section-label-fixed-width {
+ display: inline-block;
+ min-width: 120px;
+}
+
+.dup-dashboard-widget-content .dup-section-sections .dashicons {
+ margin-right: 5px;
+}
+
+.dup-dashboard-widget-content .dup-section-sections .dashicons-image-rotate {
+ font-size: 16px;
+}
+
+.dup-dashboard-widget-content .spinner {
+ float: none;
+ visibility: visible;
+ margin: 0;
+}
+
+.dup-dashboard-widget-content .dup-section-recommended {
+ line-height: 20px;
+}
+
+.dup-dashboard-widget-content .dup-section-recommended .action-links a:after {
+ content: "|";
+ cursor: not-allowed;
+ margin: 0 5px;
+ color: #646970;
+}
+
+.dup-dashboard-widget-content .dup-section-recommended .action-links a:last-child:after {
+ content: "";
+ margin: 0;
+}
+
+.dup-dashboard-widget-content .dup-recommended-label {
+ color: #787c82;
+}
+
+.dup-dashboard-widget-content #dup-dash-widget-section-recommended {
+ margin: 0;
+ padding: 0;
+ border: 0 none;
+ background: transparent;
+ color: #787c82;
+ cursor: pointer;
+}
+
+.dup-dashboard-widget-content .dup-flex-content {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+}
+
+.dup-dashboard-widget-content .dup-flex-content > * {
+ padding-right: 5px;
+}
+
+.dup-dashboard-widget-content .dup-flex-content > *:last-child {
+ padding-right: 0;
+}
+
diff --git a/assets/css/images/index.php b/assets/css/images/index.php
new file mode 100644
index 00000000..c9199655
--- /dev/null
+++ b/assets/css/images/index.php
@@ -0,0 +1,3 @@
+ div {
+ float: left;
+ padding:10px 0 15px 0;
+ font-size: 16px;
+ border-bottom: 2px solid transparent;
+ min-width: 250px;
+ text-align: center;
+ cursor: pointer;
+}
+
+#dup-pro-import-mode-tab-header > div.active {
+ border-bottom: 3px solid #91BCE3;
+ font-weight: bold;
+}
+
+.dup-pro-import-upload-box > div {
+ width: 100%;
+}
+
+.dup-pro-import-upload-box .dup-import-button {
+ display: inline-block;
+ padding: 0 30px !important;
+ font-weight: normal;
+ box-sizing: border-box;
+ height: 40px;
+}
+
+table.dup-import-avail-packs th {
+ background-color: #e2e2e2;
+}
+
+table.dup-import-avail-packs tbody tr:nth-child(even) {
+ border: 1px solid #e2e2e2;
+}
+
+table.dup-import-avail-packs {
+ width: 100%;
+ min-height: inherit;
+ border: 1px solid #ccd0d4;
+ border-collapse: collapse;
+}
+
+table.dup-import-avail-packs thead {
+ border-bottom: 1px solid #ccd0d4;
+}
+
+table.dup-import-avail-packs th {
+ font-weight: bold;
+}
+
+table.dup-import-avail-packs th,
+table.dup-import-avail-packs td {
+ padding: 10px;
+ text-align: left;
+ vertical-align: top;
+ line-height: 30px;
+}
+
+table.dup-import-avail-packs .size {
+ width: 100px;
+}
+
+table.dup-import-avail-packs .created {
+ text-align: left;
+ width: 125px;
+}
+
+table.dup-import-avail-packs .funcs {
+ text-align: center;
+ width: 400px;
+ box-sizing: border-box;
+ white-space: nowrap;
+}
+
+table.dup-import-avail-packs .funcs button,
+table.dup-import-avail-packs .funcs .button {
+ min-width: 120px;
+}
+
+table.dup-import-avail-packs .funcs .separator {
+ margin-left: 5px;
+}
+
+table.dup-import-avail-packs .funcs div.actions {
+ text-align: right;
+}
+
+div#dpro-pro-import-available-packages {
+ background-color: #fff;
+}
+
+@media only screen and (max-width: 1200px) {
+ #dpro-pro-import-available-packages.view-list-item .size,
+ #dpro-pro-import-available-packages.view-list-item .created,
+ #dpro-pro-import-available-packages.view-list-item thead .funcs {
+ display: none;
+ }
+
+ #dpro-pro-import-available-packages.view-list-item td {
+ display: block;
+ text-align: left !important;
+ padding: 0 20px;
+ }
+
+ #dpro-pro-import-available-packages.view-list-item tbody tr {
+ border-bottom: 1px solid #ccd0d4;
+ padding-bottom: 10px;
+ display: block;
+ }
+}
+
+.fs-upload-input{
+ position:absolute;
+ top:0;
+ right:0;
+ bottom:0;
+ left:0;
+ z-index:-1;
+ opacity:0;
+ pointer-events:none
+}
+
+.margin-bottom-2 {
+ margin-bottom: 40px;
+}
+
+/* IMPORT MOCK STYLE */
+
+.dup-pro-recovery-widget-wrapper {
+ font-size: 14px;
+}
+
+.dup-pro-recovery-widget-wrapper .button {
+ margin-left: 10px;
+ min-width: 150px;
+ text-align: center;
+}
+
+.dup-pro-recovery-details-max-width-wrapper {
+ max-width: 900px;
+}
+
+.dup-pro-recovery-point-selector .recovery-select {
+ width: 100%;
+ max-width: 100%;
+ box-sizing: border-box;
+ margin: 0 0 10px 0;
+}
+
+.dup-pro-recovery-point-selector-area-wrapper {
+ margin-bottom: 20px;
+}
+
+.dup-pro-recovery-widget-wrapper label {
+ margin-bottom: 5px;
+ display: block;
+}
+
+.dup-pro-recovery-point-selector-area-wrapper .dup-pro-opening-packages-windows {
+ float: right;
+}
+
+.dup-pro-recovery-point-selector-area {
+ text-align: right;
+}
+
+.dup-pro-recovery-package-detail-content {
+ margin-top: 30px;
+}
+
+.dup-pro-recovery-package-small-icon i {
+ font-size: 14px;
+ position: relative;
+}
+
+.dup-pro-recovery-package-info table {
+ border-collapse: collapse;
+}
+
+.dup-pro-recovery-package-info table td {
+ padding: 0 5px 5px 0;
+}
+
+.dup-pro-recovery-active-link-header > .main-icon {
+ display: inline-block;
+ width: 30px;
+ height: 30px;
+ color: #000;
+ text-align: center;
+ line-height: 30px;
+ font-size: 23px;
+ margin-right: 10px;
+}
+
+.dup-pro-recovery-active-link-header > .main-title {
+ font-size: 16px;
+ line-height: 1;
+ font-weight: bold;
+}
+
+.dup-pro-recovery-active-link-header > .main-subtitle {
+ font-style: italic;
+ font-size: 12px;
+ margin-top: 2px;
+}
+
+.dup-pro-recovery-point-actions > .copy-link {
+ position: relative;
+ white-space: nowrap;
+ box-sizing: border-box;
+ border: 1px solid silver;
+ height: 30px;
+ line-height: 30px;
+ background: #fff;
+ color: #000;
+ padding: 0 35px 0 5px;
+ border-radius: 2px;
+}
+
+.dup-pro-recovery-point-actions > .copy-link .content {
+ width: 100%;
+ overflow: hidden;
+ text-overflow: ellipsis;
+}
+
+.dup-pro-recovery-point-actions > .copy-link .copy-icon {
+ position: absolute;
+ right: -1px;
+ top: -1px;
+ width: 30px;
+ line-height: 30px;
+ text-align: center;
+ color: white;
+ border-top-right-radius: 2px;
+ border-bottom-right-radius: 2px;
+ background-color: silver;
+}
+
+.dup-pro-recovery-point-actions > .dup-pro-recovery-buttons {
+ margin-top: 10px;
+ text-align: right;
+}
+
+.dup-pro-recovery-details-max-width-wrapper .dup-pro-recovery-buttons {
+ text-align: right;
+}
+
+.toplevel_page_duplicator-pro .dup-pro-opening-packages-windows {
+ display: none;
+}
+
+/* SCHEDULES MOCK STYLE */
+
+table.schedule-tbl tr:nth-child(odd),
+table.storage-tbl tr:nth-child(odd) {
+ background-color: #f6f7f7;
+}
+
+table.schedule-tbl td {
+ height: 45px
+}
+
+table.schedule-tbl a.name {
+ font-weight: bold
+}
+
+table.schedule-tbl input[type='checkbox'] {
+ margin-left: 5px
+}
+
+table.schedule-tbl div.sub-menu {
+ margin: 5px 0 0 2px;
+ display: none
+}
+
+table.schedule-tbl div.sub-menu a:hover {
+ text-decoration: underline
+}
+
+tr.schedule-detail td {
+ padding: 2px 2px 2px 15px;
+ margin: -5px 0 2px 0;
+ height: 22px
+}
+
+.dpro-edit-toolbar {
+ margin: 15px 0 5px 0;
+ width: 100%;
+}
+
+.dpro-edit-toolbar .btnnav {
+ float: right;
+}
+
+/* SCHEDULES MOCK STYLE */
+
+.dup-template-list-tbl td {
+ height: 45px
+}
+
+.dup-template-list-tbl a.name {
+ font-weight: bold
+}
+
+.dup-template-list-tbl input[type='checkbox'] {
+ margin-left: 5px
+}
+
+.dup-template-list-tbl tr.package-detail td {
+ padding: 2px 2px 2px 15px;
+ margin: -5px 0 2px 0;
+ height: 22px
+}
+
+.dup-template-list-tbl .col-check {
+ width: 10px;
+}
+
+.dup-template-list-tbl .col-name {
+ width: 425px;
+ overflow-wrap: break-word;
+ word-break: break-all;
+}
+
+.dup-template-list-tbl .col-empty {
+ width: 25px;
+}
+
+/* TRANSFER TAB */
+
+h3 {
+ margin: 10px 0 5px 5px
+}
+
+h2.title {
+ font-size: 18px
+}
+
+div.transfer-panel {
+ padding: 5px 5px 10px 10px;
+}
+
+div.transfer-hdr {
+ margin: 0 0 20px 0
+}
+
+div.transfer-hdr hr {
+ margin: -10px 0 0 0
+}
+
+div#step2-section {
+ margin: 5px 0 40px 0
+}
+
+div#location-quick-opts input[type=text] {
+ width: 300px
+}
+
+div.dup-box-title {
+ font-size: 15px
+}
+
+div.dpro-progress-bar-container {
+ margin: 0 auto 10px auto;
+ text-align: center;
+}
+
+div#step3-section {
+ margin: 65px 0 0 0
+}
+
+div#dpro-progress-bar-area {
+ width: 300px;
+ margin: 5px auto 0 auto;
+ ext-align: center
+}
+
+div.dpro-active-status-area {
+ display: none;
+}
+
+tr.dup-choose-loc-new-pack td {
+ text-align: right;
+ padding: 5px 15px 5px 5px;
+ border-top: 1px solid #c3c4c7
+}
+
+button#dup-pro-transfer-btn {
+ float: right;
+ margin: -20px 15px 0 0;
+ font-size: 14px;
+ padding: 2px 20px 2px 20px;
+ font-size: 14px
+}
+
+#dup-pro-stop-transfer-btn {
+ margin-top: 10px;
+}
+
+button.dpro-btn-stop {
+ width: 150px !important
+}
+
+tr.status-pending td {
+ font-style: italic;
+ color: #999
+}
+
+tr.status-running td {
+ font-style: italic;
+ color: green
+}
+
+tr.status-failed td {
+ color: maroon
+}
+
+tr.status-normal td {
+ color: #000
+}
+
+table.package-tbl tfoot td {
+ font-size: 12px;
+ text-align: right
+}
+
+/* STATIC POPUP STYLE */
+
+.static-popup {
+ text-align: center;
+ width: 730px;
+ box-shadow: 0 0 60px 30px rgba(0, 0, 0, 0.15);
+ border-radius: 6px;
+ position: fixed;
+ top: calc(50% + 16px);
+ left: calc(50% + 80px);
+ z-index: 100;
+ overflow: hidden;
+ transform: translate(-50%, -50%);
+}
+
+.static-popup *,
+.static-popup *::before,
+.static-popup *::after {
+ -webkit-box-sizing: border-box;
+ -moz-box-sizing: border-box;
+ box-sizing: border-box;
+}
+
+.static-popup h2 {
+ font-size: 20px;
+ margin: 0 0 16px 0;
+ padding: 0;
+}
+
+.static-popup p {
+ font-size: 16px;
+ line-height: 24px;
+ color: #777777;
+ margin: 0 0 30px 0;
+ padding: 0;
+}
+
+.static-popup p:last-of-type {
+ margin: 20px 0;
+}
+
+.static-popup-content-top-notice {
+ padding: 10px;
+ text-align: center;
+ font-style: normal;
+ font-weight: normal;
+ font-size: 15px;
+ line-height: 24px;
+ color: #444444;
+ background: #fcf9e8;
+}
+
+.static-popup-content-top-notice .fa-exclamation-triangle {
+ margin-right: 10px;
+ color: #e27730;
+ font-size: 16px;
+}
+
+.static-popup-content {
+ background-color: #ffffff;
+ border-radius: 3px 3px 0 0;
+ padding: 40px 40px 20px;
+}
+
+.static-popup ul {
+ float: left;
+ width: 50%;
+ margin: 0;
+ padding: 0 0 0 30px;
+ text-align: left;
+}
+
+.static-popup li {
+ color: #777777;
+ font-size: 16px;
+ line-height: 19px;
+ padding: 6px 0;
+}
+
+.static-popup li .fa {
+ color: #2a9b39;
+ margin: 0 8px 0 0;
+}
+
+.static-popup-button {
+ border-radius: 0 0 3px 3px;
+ padding: 30px;
+ background: #f5f5f5;
+ text-align: center;
+}
+
+.static-popup-button p {
+ margin: 20px 0 0 0;
+ font-size: 15px;
+ line-height: 18px;
+ text-align: center;
+}
+
+.static-popup-button p span {
+ display: inline-block;
+ margin-left: 20px;
+ vertical-align: bottom;
+ font-size: 14px;
+ line-height: 17px;
+}
+
+/* Settings > Access tab */
+.mock-select2 {
+ width: 500px;
+ background: white;
+ border-radius: 3px;
+ min-height: 50px;
+ padding: 3px 5px;
+ border: 1px solid gray;
+ font-size: 14px;
+}
+
+
+.access-mock .form-table th {
+ width: 250px;
+}
+
+.access-mock .form-table th i{
+ color: #888888;
+}
+
+.mock-select2 .select2-option {
+ float: left;
+ background: #e4e4e4;
+ background-color: #e4e4e4;
+ border: 1px solid #aaa;
+ border-radius: 4px;
+ cursor: default;
+ margin-right: 5px;
+ margin-top: 5px;
+ padding: 0 5px;
+}
+
+.mock-select2 .select2-option::before {
+ content: "×";
+ color: #999;
+ cursor: pointer;
+ display: inline-block;
+ font-weight: bold;
+ margin-right: 2px;
+}
diff --git a/assets/css/modal.css b/assets/css/modal.css
new file mode 100644
index 00000000..9e66e015
--- /dev/null
+++ b/assets/css/modal.css
@@ -0,0 +1,132 @@
+.duplicator-modal {
+ position: fixed;
+ overflow: auto;
+ height: 100%;
+ width: 100%;
+ top: 0;
+ z-index: 100000;
+ display: none;
+ background: rgba(0, 0, 0, 0.6);
+}
+.duplicator-modal.active {
+ display: block;
+}
+.duplicator-modal.active:before {
+ display: block;
+}
+.duplicator-modal a[disabled] { pointer-events: none; }
+
+.duplicator-modal .duplicator-modal-dialog {
+ background: transparent;
+ position: absolute;
+ left: 50%;
+ margin-left: -298px;
+ padding-bottom: 30px;
+ top: -100%;
+ z-index: 100001;
+ width: 596px;
+}
+.duplicator-modal.active .duplicator-modal-dialog {
+ top: 10%;
+}
+.duplicator-modal .duplicator-modal-body,
+.duplicator-modal .duplicator-modal-footer {
+ border: 0;
+ background: #fff;
+ padding: 15px;
+}
+.duplicator-modal .duplicator-modal-body {
+ border-bottom: 0;
+}
+.duplicator-modal .duplicator-modal-body p {
+ font-size: 1.3em;
+}
+.duplicator-modal .duplicator-modal-body h2 {
+ font-size: 1.6em;
+ font-weight: bold;
+ margin-top: 0;
+}
+.duplicator-modal .duplicator-modal-footer {
+ border-top: #eeeeee solid 1px;
+ text-align: right;
+}
+.duplicator-modal .duplicator-modal-footer .duplicator-modal-button-deactivate {
+ min-width: 124px;
+ text-align: center;
+}
+.duplicator-modal .duplicator-modal-footer .button {
+ margin: 0 5px;
+}
+.duplicator-modal .duplicator-modal-footer .button:last-child {
+ margin-right: 0;
+}
+.duplicator-modal .duplicator-modal-panel>.notice.inline {
+ margin: 0;
+ display: none;
+}
+.duplicator-modal .duplicator-modal-panel:not(.active) {
+ display: none;
+}
+body.has-duplicator-modal {
+ overflow: hidden;
+}
+.duplicator-modal.duplicator-modal-deactivation-feedback .duplicator-modal-reason-input,
+.duplicator-modal.duplicator-modal-deactivation-feedback .duplicator-modal-internal-message {
+ margin: 3px 0 3px 22px; background-color:#e0f3e8;
+}
+.duplicator-modal.duplicator-modal-deactivation-feedback .duplicator-modal-reason-input input,
+.duplicator-modal.duplicator-modal-deactivation-feedback .duplicator-modal-reason-input textarea,
+.duplicator-modal.duplicator-modal-deactivation-feedback .duplicator-modal-internal-message input,
+.duplicator-modal.duplicator-modal-deactivation-feedback .duplicator-modal-internal-message textarea {
+ width: 100%;
+}
+.duplicator-modal.duplicator-modal-deactivation-feedback li.duplicator-modal-reason.has-internal-message .duplicator-modal-internal-message {
+ border: 1px solid #ccc;
+ padding: 7px;
+ display: none;
+}
+.duplicator-modal.duplicator-modal-deactivation-feedback .duplicator-modal-anonymous-label {
+ padding-top: 15px;
+}
+.duplicator-modal.duplicator-modal-deactivation-feedback .duplicator-modal-panel {
+ margin-top: 0 !important;
+}
+
+.duplicator-modal .duplicator-modal-resp-msg {
+ font-size: 11px;
+ font-weight: bold;
+ margin-top: 10px;
+ display: block;
+}
+
+.duplicator-modal .duplicator-modal-button-skip, .duplicator-modal .duplicator-modal-resp-msg {
+ /*display: none;*/
+}
+
+
+@media (max-width: 650px) {
+ .duplicator-modal .duplicator-modal-dialog {
+ margin-left: -50%;
+ box-sizing: border-box;
+ padding-left: 10px;
+ padding-right: 10px;
+ width: 100%;
+ }
+ .duplicator-modal .duplicator-modal-dialog .duplicator-modal-panel>h3>strong {
+ font-size: 1.3em;
+ }
+ .duplicator-modal.duplicator-modal-deactivation-feedback li.duplicator-modal-reason li.duplicator-modal-reason {
+ margin-bottom: 10px;
+ }
+ .duplicator-modal.duplicator-modal-deactivation-feedback li.duplicator-modal-reason li.duplicator-modal-reason .duplicator-modal-reason-input,
+ .duplicator-modal.duplicator-modal-deactivation-feedback li.duplicator-modal-reason li.duplicator-modal-reason .duplicator-modal-internal-message {
+ margin-left: 29px;
+ }
+ .duplicator-modal.duplicator-modal-deactivation-feedback li.duplicator-modal-reason li.duplicator-modal-reason label {
+ display: table;
+ }
+ .duplicator-modal.duplicator-modal-deactivation-feedback li.duplicator-modal-reason li.duplicator-modal-reason label>span {
+ display: table-cell;
+ font-size: 1.3em;
+ }
+}
\ No newline at end of file
diff --git a/assets/css/parsley.css b/assets/css/parsley.css
new file mode 100644
index 00000000..e30094ca
--- /dev/null
+++ b/assets/css/parsley.css
@@ -0,0 +1,37 @@
+div.parsley-success,
+input.parsley-success,
+select.parsley-success,
+textarea.parsley-success {
+ color: #468847;
+ background-color: #DFF0D8;
+ border: 1px solid #D6E9C6;
+}
+
+div.parsley-error,
+input.parsley-error,
+select.parsley-error,
+textarea.parsley-error {
+ color: #B94A48;
+ background-color: #F2DEDE;
+ border: 1px solid #EED3D7;
+}
+
+.parsley-errors-list {
+ margin: 2px 0 3px;
+ padding: 0;
+ list-style-type: none;
+ font-size: 0.9em;
+ line-height: 0.9em;
+ opacity: 0;
+ -moz-opacity: 0;
+ -webkit-opacity: 0;
+
+ transition: all .3s ease-in;
+ -o-transition: all .3s ease-in;
+ -moz-transition: all .3s ease-in;
+ -webkit-transition: all .3s ease-in;
+}
+
+.parsley-errors-list.filled {
+ opacity: 1;
+}
diff --git a/assets/css/style.css b/assets/css/style.css
index dc79b107..95a59484 100644
--- a/assets/css/style.css
+++ b/assets/css/style.css
@@ -1,67 +1,1257 @@
-/* ================================================
- * DUPLICATOR STYLE
- * Common elements shared across the duplicator plugin
- * Copyright:lifeinthegrid.com 2011-2014
- * ================================================ */
-
-/*Global Elements*/
-input[type=button]{cursor:pointer;padding:5px;cursor:pointer;}
-input[type=submit]{cursor:pointer;padding:5px;cursor:pointer;}
-fieldset {border:1px solid gray; padding:0px 5px 5px 5px; }
-label {font-size:13px}
-.no-select {user-select:none; -o-user-select:none; -moz-user-select:none; -khtml-user-select:none; -webkit-user-select:none;}
-hr {border: 0; border-top: 1px solid #ddd; border-bottom: 1px solid #fafafa; margin: 10px 0px 2px 0px;}
-
-/* HEADER BAR */
-div.dup-header {padding:0px 0px 0px 0px; margin:0px 0px 7px 0px;}
-div.dup-header input {border:1px solid silver; border-radius:4px}
-div.dup-header input:hover {border:1px solid black;}
-
-/*BOXES: Expandable sections */
-div.dup-box {padding:0px; display: block; background-color: #fff; border: 1px solid #e5e5e5; box-shadow: 0 1px 1px rgba(0,0,0,.04);}
-div.dup-box-title {font-size: 14px; padding: 10px 0px 0px 15px; font-weight: bold; cursor: pointer; height:28px; margin:0px; }
-div.dup-box-title:hover {background-color: #FCFCFC;}
-div.dup-box-arrow {text-decoration:none!important; float:right; width:27px; height:30px; font-size:16px; cursor:pointer; padding:1px 0px 0px 0px; white-space: nowrap}
-div.dup-box-panel {padding:10px 15px 10px 15px; border-top:1px solid #EEEEEE; margin:-1px 0px 0px 0px;}
-
-/*PANELS: Boxes that do not exapand */
-div.dup-panel {padding:0px; display: block; background-color: #fff; border: 1px solid #e5e5e5; box-shadow: 0 1px 1px rgba(0,0,0,.04);}
-div.dup-panel-title {font-size: 14px; padding: 10px 0px 0px 15px; font-weight: 600; height:28px; margin:0px; }
-div.dup-panel-panel {padding:10px 15px 10px 15px; border-top:1px solid #EEEEEE; margin:-1px 0px 0px 0px;}
-
-/*PANELS: Fancy */
-div.dup-box-title-fancy {
- border-color: #DFDFDF;
- background: #eeeeee;
- background: -moz-linear-gradient(top, #eeeeee 0%, #e0e0e0 100%);
- background: -ms-linear-gradient(top, #eeeeee 0%,#e0e0e0 100%);
- background: linear-gradient(to bottom, #eeeeee 0%,#e0e0e0 100%);
- filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#eeeeee', endColorstr='#e0e0e0',GradientType=0 );
-}
-
-/*INFO-BOX: Simple box with no title */
-div.dup-info-box {padding:8px; border:1px solid #ccc; border-radius:4px; background-color:#F7FCFE; margin: 0px 0px 5px 20px; line-height:16px}
-div.dup-info-box small {margin-top:10px; display:block}
-
-/*PACKAGE: Progress Boxes */
-div#dup-progress-bar-area {width:500px; margin:40px auto 0px auto; padding:25px 50px 35px 50px; border:1px solid #ccc; box-shadow:0 8px 6px -6px #999; text-align:center; border-radius:4px;}
-div#dup-progress-bar-area h2 {margin-bottom: 15px}
-
-/*HEADER MESSAGES*/
-div.dup-hdr-success {color:#196512; font-size: 20px; font-weight: bold}
-div.dup-hdr-error {color:#A62426; font-size: 20px; font-weight: bold}
-
-/*================================================
-JQUERY UI:Overrides */
-.ui-tabs-hide {display:none !important} /*fix for WP 3.5 setting */
-
-/*================================================
-PARSLEY:Overrides*/
-input.parsley-error, textarea.parsley-error {
- color:#B94A48 !important;
- background-color:#F2DEDE !important;
- border:1px solid #EED3D7 !important;
-}
-ul.parsley-error-list {margin:1px 0px -7px 0px}
-
-
+/* ================================================
+ * DUPLICATOR STYLE
+ * Common elements shared across the duplicator plugin
+ * ================================================ */
+
+/*Global Elements*/
+.duplicator-pages #wpcontent{padding-left: 0px; position: relative;}
+.duplicator-pages #wpbody{padding-left: 20px;}
+input[type=button]{cursor:pointer;padding:5px;cursor:pointer;}
+input[type=submit]{cursor:pointer;padding:5px;cursor:pointer;}
+fieldset {border:1px solid gray; padding:0px 5px 5px 5px; }
+label {font-size:13px}
+.no-select {user-select:none; -o-user-select:none; -moz-user-select:none; -khtml-user-select:none; -webkit-user-select:none;}
+hr {border:0; border-top:1px solid #cecece; border-bottom:1px solid #fafafa; margin:10px 0px 10px 0px;}
+i[data-tooltip].fa-question-circle {cursor:pointer; color:#C3C3C3}
+i[data-tooltip].fa-lightbulb-o {cursor:pointer; color:gray}
+span.btn-separator {content:''; display:inline-block; background:silver; margin:2px 3px; height:25px; width:1px; vertical-align:top;}
+a.grey-icon i.fa {color:#777}
+i.grey-icon {color:#777}
+.maroon {color:maroon}
+
+.no-display {display:none !important;}
+.link-style {color:#0074ab; cursor:pointer; text-decoration:underline;}
+.link-style:hover {color:#00a0d2;}
+.no-decoration {text-decoration:none;}
+p.description {padding-top:3px}
+.dup-guide-txt-color {color:#b0b0b0;}
+i.shield-on {color:#337114}
+i.shield-off {color:maroon}
+.green {color: #008000;}
+.red {color: #DB4B38;}
+ul.dup-pro-simple-style-disc {list-style: disc; margin-left: 20px;}
+
+/*TABS*/
+ul.category-tabs li {
+ cursor:pointer;
+ user-select: none;
+}
+
+ul.category-tabs {
+ font-size: 14px;
+}
+
+/*BOXES:Expandable sections */
+div.dup-box {padding:0px; display:block; background-color:#fff; border:1px solid #e5e5e5; box-shadow:0 1px 1px rgba(0,0,0,.04);}
+div.dup-box-title {font-size:20px; padding:12px 0 3px 12px; font-weight:bold; cursor:pointer; height:30px; margin:0; color:#000; user-select:none; }
+div.dup-box-title:hover {background-color: #f9f9f9;}
+div.dup-box-arrow {text-decoration:none!important; float:right; width:27px; height:30px; font-size:16px; cursor:pointer; padding:1px 0 0 0; white-space:nowrap}
+div.dup-box-panel {padding:10px 15px 10px 15px; border-top:1px solid #EEEEEE; margin:-1px 0 0 0;}
+div.dup-redirect {font-size:16px; font-weight:bold; padding:10px}
+
+/*PANELS:Boxes that do not exapand */
+div.dup-panel {padding:0px; display:block; background-color:#fff; border:1px solid #e5e5e5; box-shadow:0 1px 1px rgba(0,0,0,.04);}
+div.dup-panel-title {font-size:14px; padding:10px 0 0 15px; font-weight:600; height:28px; margin:0px; color:#000; }
+div.dup-panel-panel {padding:10px 15px 10px 15px; border-top:1px solid #EEEEEE; margin:-1px 0 0 0;}
+
+/*INFO-BOX:Simple box with no title */
+div.dup-info-box {padding:8px; border:1px solid #ccc; border-radius:4px; background-color:#F7FCFE; margin:0px 0px 5px 20px; line-height:16px}
+div.dup-info-box small {margin-top:10px; display:block}
+
+/*PACKAGE:Progress Boxes */
+div#dup-scan-progress-bar-wrapper,
+div#dup-build-progress-bar-wrapper {
+ width: 700px;
+ margin: 40px auto 0px auto;
+ border: 1px solid #ccc;
+ box-shadow: 0 8px 6px -6px #999;
+ text-align: center;
+ border-radius: 4px;
+ color: #000;
+ overflow: hidden;
+}
+div#dup-progress-bar-area {padding:40px 50px;}
+div#dup-progress-bar-area h2 {margin-bottom:15px}
+
+/*HEADER MESSAGES*/
+div.dup-hdr-success {color:#23282d; font-size:22px; font-weight:bold}
+div.dup-hdr-error {color:#A62426; font-size:22px; font-weight:bold}
+
+/*DIALOGS:THICKBOX */
+#TB_title { padding-bottom:3px!important; margin-bottom:5px!important; font-size:16px!important;}
+div.dup-dlg-alert-txt {padding:8px 0; font-size:16px; line-height:22px}
+div.dup-dlg-alert-btns {position:absolute; bottom:20px; right:20px;}
+div.dup-dlg-confirm-txt {padding:10px 0; font-size:16px}
+div.dup-dlg-confirm-btns {position:absolute; bottom:20px; right:20px;}
+div.dup-dlg-confirm-progress {display:none}
+
+/*ADMIN:NOTICES */
+div.dup-global-error-reserved-files p {font-size:14px}
+div.dup-global-error-reserved-files b.pass-msg {color:green; font-size:20px}
+div.dup-global-error-reserved-files p.pass-lnks {line-height:24px; margin:-7px 0 0 5px}
+div.dup-global-error-reserved-files div.pass-msg {padding:5px 0 0 10px; font-size:11px; color:#999; font-style:italic}
+div.dup-wpnotice-box {display:none;}
+
+.dup-migration-pass-wrapper p {
+ font-size: 14px;
+}
+
+.dup-migration-pass-title {
+ color: green;
+ font-size: 20px;
+ margin: 10px 0;
+ font-weight: bold;
+}
+
+.dup-stored-minstallation-files {
+ margin-left: 20px;
+ line-height: 1;
+ font-style: italic;
+ margin-top: 0;
+ font-size: 12px;
+}
+
+.dup-migration-pass-wrapper .sub-note {
+ font-size: 12px;
+}
+
+label.dup-store-lbl:hover {
+ color:#000;
+ font-weight:500;
+}
+
+/*================================================
+PARSLEY:Overrides*/
+input.parsley-error, textarea.parsley-error {
+ color:#B94A48 !important;
+ background-color:#F2DEDE !important;
+ border:1px solid #EED3D7 !important;
+}
+div.qtip-content {line-height:16px}
+ul.parsley-error-list {margin:1px 0px -7px 0px}
+div.notice-safemode {color:maroon;}
+div.cleanup-notice b.title {color:green;font-size:20px;}
+
+/*SCREEN TABS*/
+div.dup-screen-hlp-info {line-height:26px; padding:10px 0 10px 0}
+#screen-meta-links .button { font-size:13px !important; height:auto !important;font-weight:normal; padding:3px 6px 3px 16px !important;min-width:72px !important}
+
+/*= Duplicator Message
+---------------------------------------*/
+.notice.duplicator-message {
+ border:none;
+ padding:20px;
+}
+
+.notice.duplicator-message .duplicator-message-inner {
+ display:-webkit-box;
+ display:-webkit-flex;
+ display:-ms-flexbox;
+ display:flex;
+ -webkit-box-align:center;
+ -webkit-align-items:center;
+ -ms-flex-align:center;
+ align-items:center;
+}
+
+.notice.duplicator-message .duplicator-message-icon {
+ font-size:20px;
+}
+
+.notice.duplicator-message .duplicator-message-content {
+ padding:0 20px;
+}
+
+.notice.duplicator-message p {
+ padding:0;
+ margin:0;
+}
+
+.notice.duplicator-message h3 {
+ margin:0 0 5px;
+}
+
+.notice.duplicator-message .duplicator-message-action {
+ text-align:center;
+ display:-webkit-box;
+ display:-webkit-flex;
+ display:-ms-flexbox;
+ display:flex;
+ -webkit-box-orient:vertical;
+ -webkit-box-direction:normal;
+ -webkit-flex-direction:column;
+ -ms-flex-direction:column;
+ flex-direction:column;
+ margin-left:auto;
+}
+
+.notice.duplicator-message .duplicator-message-action .duplicator-button {
+ background-color:#D30C5C;
+ color:#fff;
+ border-color:#7c1337;
+ -webkit-box-shadow:0 1px 0 #7c1337;
+ box-shadow:0 1px 0 #7c1337;
+ padding:5px 30px;
+ height:auto;
+ line-height:20px;
+ text-transform:capitalize;
+}
+
+.notice.duplicator-message .duplicator-message-action .duplicator-button i {
+ margin-right:5px;
+}
+
+.notice.duplicator-message .duplicator-message-action .duplicator-button:hover {
+ background-color:#a0124a;
+}
+
+.notice.duplicator-message .duplicator-message-action .duplicator-button:active {
+ -webkit-box-shadow:inset 0 1px 0 #7c1337;
+ box-shadow:inset 0 1px 0 #7c1337;
+ -webkit-transform:translateY(1px);
+ -ms-transform:translateY(1px);
+ transform:translateY(1px);
+}
+
+.notice.duplicator-message .duplicator-message-action .duplicator-link {
+ padding-top:5px;
+}
+
+.notice.duplicator-message .duplicator-message-actions {
+ margin-top:10px;
+}
+
+.notice.duplicator-message .duplicator-message-actions .button.button-primary {
+ margin-right:5px;
+}
+
+.notice.duplicator-message-announcement {
+ border-color:#D30C5C;
+}
+
+.notice.duplicator-message-announcement a {
+ color:#D30C5C;
+}
+
+@media (min-width:1200px) {
+ .duplicator-message-action {
+ padding-right:10px;
+ }
+}
+
+@media (max-width:600px) {
+ .notice.duplicator-message {
+ padding:20px;
+ }
+ .notice.duplicator-message .duplicator-message-inner {
+ display:block;
+ text-align:center;
+ }
+ .notice.duplicator-message .duplicator-message-inner .duplicator-message-icon,
+ .notice.duplicator-message .duplicator-message-inner .duplicator-message-content,
+ .notice.duplicator-message .duplicator-message-inner .duplicator-message-action {
+ display:block;
+ }
+ .notice.duplicator-message .duplicator-message-inner .duplicator-message-action {
+ text-align:center;
+ }
+ .notice.duplicator-message .duplicator-message-inner .duplicator-message-icon {
+ width:auto;
+ }
+ .notice.duplicator-message .duplicator-message-inner .duplicator-message-content {
+ padding:10px 0;
+ }
+}
+
+/** Settings **/
+.dup-settings-pages p.description {max-width:700px; font-size:13px; color:#666; padding-left:15px; text-align:justify; }
+.licenses-table .description p {margin-bottom: 15px;}
+.licenses-table .description p.discount-note {font-style: italic;color: #666;}
+.licenses-table .description p.discount-note strong {color: green;}
+#dup-lite-inst-mode-details p { margin:1em 0; max-width:700px; font-size:13px; color:#666; padding-left:15px; text-align:justify;}
+#installer-name-mode-option {
+ line-height:25px;
+}
+
+#dup-lite-inst-mode-details {
+ display:none;
+ max-width:825px;
+ padding-left:20px;
+ line-height:18px;
+}
+
+
+
+.storage_pos_fixed_label {
+ display:inline-block;
+ width:120px;
+}
+
+/** Call to action **/
+div.txt-call-action-title {
+ margin:40px auto 20px auto;
+ font-size:22px;
+ line-height:30px;
+ font-weight:bold;
+ width:100%;
+}
+
+div.txt-call-action-sub {
+ font-size:16px; line-height:24px; font-weight:bold; width:100%;
+ margin:20px auto 40px auto;
+}
+
+a.dup-btn-call-action {
+ box-shadow:0px 10px 14px -7px #3e7327;
+ background:linear-gradient(to bottom, #5ca53a 5%, #72b352 100%);
+ background-color:#4f8e32;
+ border-radius:4px;
+ border:1px solid #4b8f29;
+ display:block;
+ cursor:pointer;
+ color:#ffffff;
+ font-family:Arial;
+ font-size:18px;
+ font-weight:bold;
+ padding:10px 30px;
+ text-decoration:none;
+ text-shadow:0px 1px 0px #5b8a3c;
+ width:150px;
+ margin:auto;
+ text-align:center;
+}
+
+a.dup-btn-call-action:hover {
+ background:linear-gradient(to bottom, #72b352 5%, #337114 100%);
+ background-color:#337114;
+ color:#fff;
+}
+
+.dup-btn-call-action:active {
+ color:#fff;
+}
+
+td.dup-store-promo-area {
+ padding:7px 0 7px 7px;
+ border-top:1px solid silver;
+ background-color: #fcf9e8
+}
+
+td.dup-store-promo-area i[data-tooltip].fa-question-circle {
+ color: #e27730;
+}
+
+/* Notice bar */
+#dup-notice-bar {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ background-color: #dddddd!important;
+ color: #777777;
+ text-align: center;
+ position: relative;
+ padding: 7px;
+ margin-bottom: -4px;
+ max-height: 100px;
+ overflow: hidden;
+ border-top: #fe4716 3px solid;
+ z-index: 999;
+}
+
+#dup-notice-bar a {
+ color: #fe4716;
+}
+
+#dup-notice-bar .dup-dismiss-button{
+ position: absolute;
+ top: 0;
+ right: 0;
+ border: none;
+ padding: 5px;
+ margin-top: 1px;
+ background: 0 0;
+ color: #777777;
+ cursor: pointer;
+ margin-right: 10px;
+}
+
+#dup-notice-bar .dup-dismiss-button:before {
+ background: 0 0;
+ content: "\f335";
+ display: block;
+ font: normal 20px/20px dashicons;
+ height: 20px;
+ text-align: center;
+ width: 20px;
+ -webkit-font-smoothing: antialiased;
+}
+
+#dup-notice-bar .dup-upgrade-arrow {
+ font-weight: bold;
+ text-decoration: none;
+}
+
+#dup-notice-bar .dup-notice-logo {
+ line-height: 0;
+}
+
+#dup-notice-bar .dup-notice-logo img {
+ width: 20px;
+ height: 20px;
+ margin-right: 6px;
+}
+
+.dup-header {
+ border-top: 3px solid #fe4716;
+ padding: 20px;
+ padding-bottom: 0px;
+}
+
+/* Allow screen meta to go over other content and not push it */
+#dup-meta-screen {
+ margin: 0;
+ position: absolute;
+ top: -1px;
+ left: 0px;
+ right: 0;
+ z-index: 99;
+}
+
+#dup-notice-bar+#dup-meta-screen {
+ top:34px
+}
+
+.duplicator-pages #screen-meta {
+ margin: 0 20px -1px 20px;
+ position: relative;
+ background-color: #fff;
+ border: 1px solid #c3c4c7;
+ border-top: none;
+ box-shadow: 0 0 0 transparent;
+}
+
+#screen-meta-links .screen-meta-toggle {
+ position: absolute;
+ right: 20px;
+ top: auto;
+}
+
+.duplicator-pages #screen-meta-links,
+.duplicator-pages #screen-meta {
+ display: none;
+}
+
+.duplicator-pages .wrap > h1 {
+ margin: 0;
+ padding: 0;
+}
+
+.mock-blur {
+ filter: blur(4px);
+ pointer-events: none;
+}
+
+.dup-clearfix:before {
+ content: " ";
+ display: table;
+}
+
+.dup-clearfix:after {
+ clear: both;
+ content: " ";
+ display: table;
+}
+
+/* New button designs in the red color of the logo */
+.dup-btn {
+ border-radius: 4px;
+ cursor: pointer;
+ display: inline-block;
+ margin: 0;
+ text-decoration: none;
+ text-align: center;
+ vertical-align: middle;
+ white-space: nowrap;
+ box-shadow: none;
+ border: none;
+}
+
+.dup-btn-block {
+ display: block;
+ width: 100%;
+}
+
+.dup-btn-lg {
+ font-size: 16px;
+ font-weight: 600;
+ padding: 16px 28px;
+}
+
+.dup-btn-md {
+ font-size: 13px;
+ font-weight: 600;
+ padding: 8px 12px;
+}
+
+.dup-btn-orange {
+ background-color: #e27730;
+ color: white;
+}
+
+.dup-btn-orange:hover,
+.dup-btn-orange:focus {
+ color: white;
+ background-color: #b85a1b;
+}
+
+.dup-btn-orange:focus {
+ box-shadow: 0 0 0 1px #fff, 0 0 0 3px #b85a1b;
+}
+
+.dup-btn-grey {
+ background-color: #eee;
+ border: 1px solid #ccc;
+ color: #666;
+}
+
+.dup-btn-grey:hover,
+.dup-btn-grey:focus {
+ background-color: #d7d7d7;
+ color: #444;
+}
+
+.dup-btn-grey:focus {
+ box-shadow: 0 0 0 1px #fff, 0 0 0 3px #d7d7d7;
+}
+
+.dup-btn-green {
+ background-color: #1da867;
+ color: white;
+}
+
+.dup-btn-green:hover,
+.dup-btn-green:focus {
+ color: white;
+ background-color: #199a5e;
+}
+
+.dup-btn-green:focus {
+ box-shadow: 0 0 0 1px #fff, 0 0 0 3px #199a5e;
+}
+
+.dup-btn-trans-green {
+ color: #1da867;
+}
+
+.dup-btn-trans-green:hover,
+.dup-btn-trans-green:focus {
+ color: white;
+ background-color: #1da867;
+}
+
+.dup-btn-trans-green:focus {
+ box-shadow: 0 0 0 1px #fff, 0 0 0 3px #1da867;
+}
+
+.dup-btn-trans-green .underline {
+ position: relative;
+}
+
+.dup-btn-trans-green .underline:after {
+ content: " ";
+ border-bottom: 1px dashed #1da867;
+ position: absolute;
+ bottom: -5px;
+ left: 0;
+ width: 100%;
+}
+
+/* ADDONS LIST STYLE */
+.dup-btn-green {
+ background-color: #1da867;
+ color: white;
+}
+
+.dup-btn-green:hover,
+.dup-btn-green:focus {
+ color: white;
+ background-color: #199a5e;
+}
+
+.dup-btn-green:focus {
+ box-shadow: 0 0 0 1px #fff, 0 0 0 3px #199a5e;
+}
+
+/* STORAGE PAGE STYLE */
+
+#dup-admin-addons *,
+#dup-admin-addons *::before,
+#dup-admin-addons *::after {
+ -webkit-box-sizing: border-box;
+ -moz-box-sizing: border-box;
+ box-sizing: border-box;
+}
+
+#dup-admin-addons #dup-admin-addons-list .list {
+ display: flex;
+ flex-wrap: wrap;
+ align-items: stretch;
+ margin-left: -20px;
+ margin-right: -20px;
+}
+
+#dup-admin-addons #dup-admin-addons-list .list .action-button button,
+#dup-admin-addons #dup-admin-addons-list .list .action-button a {
+ border: 1px solid #ddd;
+ border-radius: 3px;
+ box-shadow: none;
+ font-weight: 600;
+ width: 140px;
+ text-align: center;
+}
+
+#dup-admin-addons #dup-admin-addons-list .list .action-button button:focus,
+#dup-admin-addons #dup-admin-addons-list .list .action-button a:focus {
+ border-color: #2271b1;
+ box-shadow: 0 0 0 1px #2271b1;
+ outline: none;
+}
+
+#dup-admin-addons .unlock-msg h4 {
+ margin: 1.5em 0 8px;
+}
+
+#dup-admin-addons .unlock-msg p {
+ margin: 0 0 1.5em;
+}
+
+#dup-admin-addons .addons-container {
+ padding: 0 20px;
+ width: 33.333333%;
+ margin-bottom: 20px;
+}
+
+@media (max-width: 1249px) {
+ #dup-admin-addons .addons-container {
+ width: 50%;
+ }
+}
+
+@media (max-width: 767px) {
+ #dup-admin-addons .addons-container {
+ width: 100%;
+ }
+}
+
+#dup-admin-addons h4 {
+ font-size: 17px;
+ font-weight: 700;
+}
+
+#dup-admin-addons .addon-item {
+ background-color: #fff;
+ border: 1px solid #ddd;
+ border-radius: 3px;
+ margin: 0;
+ height: 100%;
+ display: flex;
+ flex-direction: column;
+ justify-content: space-between;
+ overflow: hidden;
+}
+
+#dup-admin-addons .addon-item img {
+ border: 1px solid #eee;
+ float: left;
+ width: 75px;
+}
+
+#dup-admin-addons .addon-item h5 {
+ margin: 0 0 0 100px;
+ font-size: 16px;
+}
+
+#dup-admin-addons .addon-item h5 a {
+ color: #444;
+ display: inline-block;
+ margin: 0 10px 10px 0;
+}
+
+#dup-admin-addons .addon-item h5 a:hover {
+ color: #006799;
+}
+
+#dup-admin-addons .addon-item p {
+ margin: 0 0 0 100px;
+}
+
+#dup-admin-addons .addon-item .status {
+ flex-grow: 1;
+}
+
+#dup-admin-addons .addon-item .details {
+ padding: 30px 20px;
+}
+
+#dup-admin-addons .addon-item .actions {
+ display: flex;
+ align-items: center;
+ background-color: #f7f7f7;
+ border-top: 1px solid #ddd;
+ padding: 20px;
+ min-height: 75px;
+ position: relative;
+}
+
+#dup-admin-addons .addon-item .actions .msg p {
+ margin: 0;
+}
+
+#dup-admin-addons .addon-item .actions .msg a,
+#dup-admin-addons .addon-item .actions .msg a:hover {
+ color: inherit;
+}
+
+#dup-admin-addons .addon-item .upgrade-button {
+ text-align: center;
+}
+
+#dup-admin-addons .addon-item .upgrade-button a {
+ font-weight: 600;
+ width: 140px;
+ text-align: center;
+ padding: 8px 5px;
+}
+
+#dup-admin-addons .addon-item .action-button button {
+ width: 140px;
+}
+
+#dup-admin-addons .addon-item .dup-storage-recommended i {
+ opacity: 0.8;
+}
+
+.addon-item .upgrade-button {
+ text-align: center;
+}
+
+.addon-item .upgrade-button a {
+ font-weight: 600;
+ width: 140px;
+ text-align: center;
+}
+
+.addon-item .action-button button {
+ cursor: pointer;
+}
+
+.addon-item .action-button a {
+ text-decoration: none;
+}
+
+
+#dup-admin-addons .addon-item .status .status-active {
+ color: #00a32a
+}
+
+#dup-admin-addons .addon-item .status .status-installed {
+ color: #d63638
+}
+
+#dup-admin-addons .addon-item .actions .msg.error {
+ color: #d63638
+}
+
+.addon-item .action-button button.status-installed .fa {
+ color: #d63638
+}
+
+.addon-item .action-button button.status-active .fa {
+ color: #00a32a
+}
+
+.addon-item .action-button button.loading .fa {
+ color: #666
+}
+
+
+/* COLUMN STYLES */
+
+.dup-admin-columns > div[class*="-column-"] {
+ float: left;
+}
+
+.dup-admin-columns .dup-admin-column-20 {
+ width: 20%;
+}
+
+.dup-admin-columns .dup-admin-column-33 {
+ width: 33.33333%;
+}
+
+.dup-admin-columns .dup-admin-column-40 {
+ width: 40%;
+}
+
+.dup-admin-columns .dup-admin-column-50 {
+ width: 50%;
+}
+
+.dup-admin-columns .dup-admin-column-60 {
+ width: 60%;
+}
+
+.dup-admin-columns .dup-admin-column-80 {
+ width: 80%;
+}
+
+.dup-admin-columns .dup-admin-column-last {
+ float: right !important;
+}
+
+.dup-admin-columns:after {
+ content: "";
+ display: table;
+ clear: both;
+}
+
+.dup-subscribe-form{
+ color: #3c434a;
+}
+
+#dup-scan-progress-bar-wrapper .dup-subscribe-form,
+#dup-build-progress-bar-wrapper .dup-subscribe-form {
+ padding-bottom: 35px;
+}
+
+#dup-msg-success .dup-subscribe-form {
+ padding-bottom: 10px;
+}
+
+.dup-subscribe-form input[type=email] {
+ padding: 4px 12px;
+ vertical-align: middle;
+ margin: 0;
+ width: 320px;
+ border-radius: 3px 0 0 3px;
+ font-size: 14px;
+ border: 1px solid #c5c5c5;
+ border-right: 0;
+}
+
+.dup-subscribe-form .dup-btn {
+ border-radius: 0 3px 3px 0;
+ margin: 0;
+ font-size: 15px;
+ padding: 10px 12px;
+}
+
+.dup-subscribe-form .desc {
+ margin-top: 10px;
+}
+.dup-subscribe-form small {
+ font-size: 13px;
+}
+
+/* PACKAGES BOTTOM BAR */
+#dup-packages-bottom-bar {
+ display: flex;
+ flex-direction: row;
+ align-items: center;
+}
+
+#dup-packages-bottom-bar .feature {
+ flex-grow: 4;
+ }
+
+#dup-packages-bottom-bar .fa-info-circle {
+ text-align: center;
+ padding: 0 20px 0 10px;
+ font-size: 40px;
+ color: #fe4716;
+}
+
+#dup-packages-bottom-bar p {
+ margin: 0;
+ white-space: normal;
+ word-break: break-word;
+ max-width: 600px;
+}
+
+#dup-packages-bottom-bar-dismiss {
+ margin: 0;
+ padding: 0 0 0 15px;
+ border: 0 none;
+ background: transparent;
+ color: #787c82;
+ cursor: pointer;
+}
+
+/** Callout CTA */
+
+.dup-settings-lite-cta {
+ background-color: #fff;
+ border: 1px solid #dadada;
+ padding: 25px 20px;
+ margin: 10px 0 0 0;
+ position: relative;
+}
+
+.dup-settings-lite-cta .dismiss {
+ position: absolute;
+ top: 10px;
+ right: 10px;
+ color: #666;
+ font-size: 16px;
+}
+
+.dup-settings-lite-cta h5 {
+ margin: 0 0 16px;
+ font-size: 18px;
+ font-weight: 700;
+}
+
+.dup-settings-lite-cta h6 {
+ font-weight: 700;
+ font-size: 14px;
+ margin: 0 0 16px;
+}
+
+.dup-settings-lite-cta p {
+ color: #555;
+ font-size: 14px;
+ margin: 0 0 16px;
+}
+
+.dup-settings-lite-cta p:last-of-type {
+ margin: 0;
+}
+
+.dup-settings-lite-cta p a {
+ color: #fe4716;
+}
+
+.dup-settings-lite-cta p a:hover {
+ color: #b85a1b;
+}
+
+.dup-settings-lite-cta .list {
+ display: flex;
+ margin: 0 0 16px 0;
+ overflow: auto;
+ max-width: 900px;
+ flex-direction: row;
+ flex-wrap: wrap;
+ color: #555;
+ font-size: 14px;
+ list-style: none;
+}
+
+.dup-settings-lite-cta .list > .item {
+ flex: 33.33% 0;
+ box-sizing: border-box;
+ padding: 0 0 2px 0;
+}
+
+.dup-settings-lite-cta .list > .item > span::before {
+ content: '+ ';
+}
+
+@media (max-width: 900px) {
+ .dup-settings-lite-cta .list > .item {
+ flex: 50% 0;
+ }
+}
+
+@media (max-width: 600px) {
+ .dup-settings-lite-cta .list > .item {
+ flex: 100% 1;
+ }
+}
+
+.dup-settings-lite-cta .green {
+ color: #218900;
+ font-weight: 700;
+}
+
+.dup-settings-lite-cta .fa-star {
+ color: #ff982d;
+}
+
+/* DID YOU KNOW STYLE */
+
+#duplicator-did-you-know {
+ display: flex;
+ flex-direction: row;
+ align-items: center;
+ justify-content: center;
+ padding: 10px;
+ text-align: center;
+ font-style: normal;
+ font-weight: normal;
+ font-size: 15px;
+ line-height: 24px;
+ color: #444444;
+ background: #fcf9e8;
+ border-bottom: 1px solid #ede2a0;
+}
+
+#duplicator-did-you-know a {
+ margin-left: 5px;
+}
+
+#duplicator-did-you-know .fa-info-circle {
+ font-size: 20px;
+ margin-right: 5px;
+ vertical-align: text-top;
+ color: #e27730;
+}
+
+/* ADVANCED STORAGES POPUP */
+.advanced-storages-popup-content {
+ text-align: center;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ gap: 20px
+}
+
+.advanced-storages-popup-content img {
+ width: 250px;
+}
+
+.advanced-storages-popup-content .storage-icon {
+ vertical-align: middle;
+ margin-right: 5px;
+ width: 20px
+}
+
+.advanced-storages-popup-content ul {
+ text-align: left;
+ display: flex;
+ flex-direction: row;
+ flex-wrap: wrap;
+ color: #555;
+ font-size: 14px;
+ list-style: none;
+ margin: 0 auto;
+ justify-content: end;
+}
+
+.advanced-storages-popup-content ul li {
+ flex: 45% 0;
+ box-sizing: border-box;
+ padding: 0 0 8px 0;
+}
+
+#dup-settings-upgrade-license-key {
+ background-color: #fff;
+ border: 1px solid #ccc;
+ border-radius: 3px;
+ box-shadow: none;
+ color: #333;
+ display: inline-block;
+ vertical-align: middle;
+ padding: 7px 12px;
+ margin: 0 10px 0 0;
+ width: 400px;
+ min-height: 35px;
+ line-height: 1.3;
+}
+
+#redirect-to-remote-upgrade-endpoint {
+ visibility: hidden;
+ position: absolute;
+ left: -1000;
+ top: -1000;
+}
+
+/** Package Components **/
+
+.filter-files-tab-content {
+ padding: 0!important;
+}
+
+.dup-package-components {
+ display: flex;
+ flex-direction: row;
+ border-bottom: 1px solid #dcdcde;
+ min-height: 300px;
+}
+
+.dup-radio-button-group-wrapper {
+ width: 100%;
+ display: flex;
+ border-top: 1px solid #dcdcde;
+ border-bottom: 1px solid #dcdcde;
+}
+
+.dup-radio-button-group-wrapper input[type="radio"] {
+ position: absolute;
+ left: -9999em;
+}
+
+.dup-radio-button-group-wrapper label {
+ flex: 1 1 25%;
+ padding: .5em 1em;
+ cursor: pointer;
+ text-align: center;
+ color: #2271b1;
+ border-right: 1px solid #dcdcde;
+ background: #f6f7f7;
+ box-sizing: border-box;
+}
+
+.dup-radio-button-group-wrapper input[type="radio"] + label:last-child {
+ border-right: none;
+}
+
+.dup-radio-button-group-wrapper input[type="radio"] + label:hover,
+.dup-radio-button-group-wrapper input[type="radio"]:focus + label,
+.dup-radio-button-group-wrapper input[type="radio"]:checked + label {
+ background: #2271b1;
+ border-color: #2271b1;
+ color: #fff;
+}
+
+#dup-upgrade-license-info {
+ padding: 10px;
+ background: #fcf9e8;
+}
+
+@media only screen and (max-width: 1150px) {
+ .dup-package-components {
+ flex-direction: column;
+ }
+
+ .dup-package-components .section-title {
+ font-size: 14px;
+ }
+
+ .dup-package-components .filter-section {
+ border-left: 0 none!important;
+ }
+
+ .dup-package-components .section-title {
+ height: auto!important;
+ }
+
+ .dup-package-components .component-section {
+ max-width: 100%!important;
+ }
+}
+
+.dup-package-components label input[type="checkbox"] {
+ margin: 0!important;
+}
+
+.dup-package-components .section-title {
+ margin: 0;
+ height: 20px;
+ padding: 10px;
+ background: #f0f0f1;
+ font-size: 16px;
+ font-weight: bold;
+ display: flex;
+ flex-direction: row;
+ justify-content: space-between;
+}
+
+.dup-package-components .section-title label {
+ font-size: 16px;
+}
+
+.dup-package-components .db-only-message {
+ display: none;
+ padding: 40px 20px 20px;
+}
+
+.dup-package-components .component-section {
+ flex: 1 1 33.33%;
+ max-width: 500px;
+ font-size: 14px;
+}
+
+.dup-package-components .component-section label.secondary {
+ margin-left: 40px;
+}
+
+.dup-package-components .custom-components-select {
+ margin-left: 20px;
+}
+
+.dup-package-components .component-section label.disabled,
+.dup-package-components .component-section label.disabled input {
+ pointer-events: none;
+ color: gray;
+ opacity: 0.7;
+}
+
+.dup-package-components .filter-section {
+ flex: 1 3 66.66%;
+ border-left: 1px solid #dcdcde;
+}
+
+.dup-package-components .filter-section .filters {
+ display: flex;
+ flex-direction: column;
+}
+
+.dup-package-components .component-section {
+ padding-bottom: 20px;
+}
+
+.dup-package-components .filter-section .filters{
+ height: 100%;
+}
+.dup-package-components .filter-section textarea{
+ border: none;
+ border-radius: 0;
+}
+
+.dup-package-components .filter-section textarea[readonly]{
+ background-image: linear-gradient(45deg, #f0f0f0 41.67%, #e0e0e0 41.67%, #e0e0e0 50%, #f0f0f0 50%, #f0f0f0 91.67%, #e0e0e0 91.67%, #e0e0e0 100%);
+ background-size: 12px 12px;
+ opacity: 0.7;
+}
+
+.dup-package-components .filter-section textarea#filter-paths{
+ flex: 4 1 auto;
+}
+
+.dup-package-components .filter-section .section-title .filter-links {
+ font-size: 12px;
+ font-weight: normal;
+}
+
+.dup-package-components i[data-tooltip].fa-question-circle {
+ color: gray;
+}
+
+.dup-tabs-opts-help {
+ font-style: italic;
+ font-size: 12px;
+ padding: 10px;
+ color: #666;
+}
+
+.dup-package-components .pro-badge {
+ display: inline-block;
+ padding: 0px 5px;
+ background: #e27730;
+ color: #fff;
+ font-size: 8px;
+ font-weight: bold;
+ border-radius: 10px;
+ margin-left: 5px;
+ text-decoration: none;
+ vertical-align: middle;
+}
+
+#component-section-title {
+ position: relative;
+}
+
+#component-section-title i[data-tooltip].fa-question-circle {
+ color: #e27730;
+}
diff --git a/assets/css/welcome.css b/assets/css/welcome.css
new file mode 100644
index 00000000..ade9f82b
--- /dev/null
+++ b/assets/css/welcome.css
@@ -0,0 +1,352 @@
+#wpcontent {
+ padding-left: 0;
+ position: relative;
+}
+
+#duplicator-welcome {
+ border-top: 3px solid #fe4716;
+ color: #555;
+ padding-top: 110px;
+}
+
+@media (max-width: 767px) {
+ #duplicator-welcome {
+ padding-top: 64px;
+ }
+}
+
+#duplicator-welcome *,
+#duplicator-welcome *::before,
+#duplicator-welcome *::after {
+ -webkit-box-sizing: border-box;
+ -moz-box-sizing: border-box;
+ box-sizing: border-box;
+}
+
+#duplicator-welcome .container {
+ margin: 0 auto;
+ max-width: 760px;
+ padding: 0;
+}
+
+#duplicator-welcome .block {
+ padding: 40px;
+}
+
+@media (max-width: 767px) {
+ #duplicator-welcome .block {
+ padding: 20px;
+ }
+}
+
+#duplicator-welcome img {
+ max-width: 100%;
+ height: auto;
+}
+
+#duplicator-welcome h1 {
+ color: #222;
+ font-size: 24px;
+ text-align: center;
+ margin: 0 0 16px 0;
+}
+
+#duplicator-welcome h5 {
+ color: #222;
+ font-size: 16px;
+ margin: 0 0 8px 0;
+}
+
+#duplicator-welcome h6 {
+ font-size: 16px;
+ font-weight: 400;
+ line-height: 1.6;
+ text-align: center;
+ margin: 0;
+}
+
+#duplicator-welcome p {
+ font-size: 14px;
+ margin: 0 0 20px 0;
+}
+
+#duplicator-welcome .button-wrap {
+ max-width: 590px;
+ margin: 0 auto 0 auto;
+}
+
+#duplicator-welcome .button-wrap .left {
+ float: left;
+ width: 50%;
+ padding-right: 20px;
+}
+
+@media (max-width: 767px) {
+ #duplicator-welcome .button-wrap .left {
+ float: none;
+ width: 100%;
+ padding: 0;
+ margin-bottom: 20px;
+ }
+}
+
+#duplicator-welcome .button-wrap .right {
+ float: right;
+ width: 50%;
+ padding-left: 20px;
+}
+
+@media (max-width: 767px) {
+ #duplicator-welcome .button-wrap .right {
+ float: none;
+ width: 100%;
+ padding: 0;
+ }
+}
+
+#duplicator-welcome .intro {
+ background-color: #fff;
+ border: 2px solid #e1e1e1;
+ border-radius: 2px;
+ margin-bottom: 30px;
+ position: relative;
+ padding-top: 40px;
+}
+
+#duplicator-welcome .intro .sullie {
+ background-color: #fff;
+ border: 2px solid #e1e1e1;
+ border-radius: 50%;
+ height: 110px;
+ width: 110px;
+ padding: 18px;
+ position: absolute;
+ top: -58px;
+ left: 50%;
+ margin-left: -55px;
+}
+
+#duplicator-welcome .intro .video-thumbnail {
+ display: block;
+ margin: 0 auto;
+}
+
+#duplicator-welcome .intro .button-wrap {
+ margin-top: 25px;
+}
+
+#duplicator-welcome .features {
+ background-color: #fff;
+ border: 2px solid #e1e1e1;
+ border-bottom: 0;
+ border-radius: 2px 2px 0 0;
+ position: relative;
+ padding-top: 20px;
+ padding-bottom: 20px;
+}
+
+#duplicator-welcome .features .feature-list {
+ margin-top: 60px;
+}
+
+#duplicator-welcome .features .feature-block {
+ float: left;
+ width: 50%;
+ padding-bottom: 35px;
+ overflow: auto;
+}
+
+@media (max-width: 767px) {
+ #duplicator-welcome .features .feature-block {
+ float: none;
+ width: 100%;
+ }
+}
+
+#duplicator-welcome .features .feature-block.first {
+ padding-right: 20px;
+ clear: both;
+}
+
+@media (max-width: 767px) {
+ #duplicator-welcome .features .feature-block.first {
+ padding-right: 0;
+ }
+}
+
+#duplicator-welcome .features .feature-block.last {
+ padding-left: 20px;
+}
+
+@media (max-width: 767px) {
+ #duplicator-welcome .features .feature-block.last {
+ padding-left: 0;
+ }
+}
+
+#duplicator-welcome .features .feature-block img {
+ float: left;
+ max-width: 46px;
+}
+
+#duplicator-welcome .features .feature-block h5 {
+ margin-left: 68px;
+}
+
+#duplicator-welcome .features .feature-block p {
+ margin: 0;
+ margin-left: 68px;
+}
+
+#duplicator-welcome .features .button-wrap {
+ margin-top: 25px;
+ text-align: center;
+}
+
+#duplicator-welcome .upgrade-cta {
+ background-color: #000;
+ border: 2px solid #e1e1e1;
+ border-top: 0;
+ border-bottom: 0;
+ color: #fff;
+}
+
+#duplicator-welcome .upgrade-cta h2 {
+ color: #fff;
+ font-size: 20px;
+ margin: 0 0 30px 0;
+}
+
+#duplicator-welcome .upgrade-cta ul {
+ display: -ms-flex;
+ display: -webkit-flex;
+ display: flex;
+ -webkit-flex-wrap: wrap;
+ flex-wrap: wrap;
+ font-size: 15px;
+ margin: 0;
+ padding: 0;
+}
+
+#duplicator-welcome .upgrade-cta ul li {
+ flex: 33.33%;
+ margin: 0 0 8px 0;
+ padding: 0;
+}
+
+#duplicator-welcome .upgrade-cta ul li .dashicons {
+ color: #2a9b39;
+ margin-right: 5px;
+}
+
+#duplicator-welcome .upgrade-cta .dup-btn {
+ width: 33.33%;
+ margin: 30px auto 0;
+}
+
+#duplicator-welcome .upgrade-cta h2 {
+ text-align: center;
+ width: 50%;
+ border-bottom: 1px solid white;
+ padding-bottom: 10px;
+ margin: 0 auto 30px;
+}
+
+#duplicator-welcome .upgrade-cta .right h2 span {
+ display: inline-block;
+ border-bottom: 1px solid #555;
+ padding: 0 15px 12px;
+}
+
+#duplicator-welcome .upgrade-cta .right .price {
+ padding: 26px 0;
+}
+
+#duplicator-welcome .upgrade-cta .right .price .amount {
+ font-size: 48px;
+ font-weight: 600;
+ position: relative;
+ display: inline-block;
+}
+
+#duplicator-welcome .upgrade-cta .right .price .amount:before {
+ content: '$';
+ position: absolute;
+ top: -8px;
+ left: -16px;
+ font-size: 18px;
+}
+
+#duplicator-welcome .upgrade-cta .right .price .term {
+ font-size: 12px;
+ display: inline-block;
+}
+
+#duplicator-welcome .testimonials {
+ background-color: #fff;
+ border: 2px solid #e1e1e1;
+ border-top: 0;
+ padding: 20px 0;
+}
+
+#duplicator-welcome .testimonials .testimonial-block {
+ margin: 50px 0 0 0;
+}
+
+#duplicator-welcome .testimonials .testimonial-block img {
+ border-radius: 50%;
+ float: left;
+ max-width: 100px;
+ box-shadow: 0 0 18px rgba(0, 0, 0, 0.2);
+}
+
+@media (max-width: 767px) {
+ #duplicator-welcome .testimonials .testimonial-block img {
+ width: 65px;
+ }
+}
+
+#duplicator-welcome .testimonials .testimonial-block p {
+ font-size: 14px;
+ margin: 0 0 12px 140px;
+}
+
+@media (max-width: 767px) {
+ #duplicator-welcome .testimonials .testimonial-block p {
+ margin-left: 100px;
+ }
+}
+
+#duplicator-welcome .testimonials .testimonial-block p:last-of-type {
+ margin-bottom: 0;
+}
+
+#duplicator-welcome .footer {
+ background-color: #f1f1f1;
+ border: 2px solid #e1e1e1;
+ border-top: 0;
+ border-radius: 0 0 2px 2px;
+}
+
+#duplicator-welcome.pro .features {
+ border: 2px solid #e1e1e1;
+ margin-bottom: 30px;
+}
+
+#duplicator-welcome.pro .upgrade,
+#duplicator-welcome.pro .footer {
+ display: none;
+}
+
+#duplicator-welcome.pro .testimonials {
+ border: 2px solid #e1e1e1;
+}
+
+.dashboard_page_duplicator-getting-started .video-container {
+ border: 2px solid #e1e1e1;
+}
+
+.dashboard_page_duplicator-getting-started #wpfooter,
+.dashboard_page_duplicator-getting-started div.notice {
+ display: none !important;
+}
\ No newline at end of file
diff --git a/assets/fonts/FontAwesome.otf b/assets/fonts/FontAwesome.otf
deleted file mode 100644
index f7936cc1..00000000
Binary files a/assets/fonts/FontAwesome.otf and /dev/null differ
diff --git a/assets/fonts/fontawesome-webfont.eot b/assets/fonts/fontawesome-webfont.eot
deleted file mode 100644
index 33b2bb80..00000000
Binary files a/assets/fonts/fontawesome-webfont.eot and /dev/null differ
diff --git a/assets/fonts/fontawesome-webfont.svg b/assets/fonts/fontawesome-webfont.svg
deleted file mode 100644
index 1ee89d43..00000000
--- a/assets/fonts/fontawesome-webfont.svg
+++ /dev/null
@@ -1,565 +0,0 @@
-
-
-
\ No newline at end of file
diff --git a/assets/fonts/fontawesome-webfont.ttf b/assets/fonts/fontawesome-webfont.ttf
deleted file mode 100644
index ed9372f8..00000000
Binary files a/assets/fonts/fontawesome-webfont.ttf and /dev/null differ
diff --git a/assets/fonts/fontawesome-webfont.woff b/assets/fonts/fontawesome-webfont.woff
deleted file mode 100644
index 8b280b98..00000000
Binary files a/assets/fonts/fontawesome-webfont.woff and /dev/null differ
diff --git a/assets/fonts/fontawesome-webfont.woff2 b/assets/fonts/fontawesome-webfont.woff2
deleted file mode 100644
index 3311d585..00000000
Binary files a/assets/fonts/fontawesome-webfont.woff2 and /dev/null differ
diff --git a/assets/img/about/icon-full.svg b/assets/img/about/icon-full.svg
new file mode 100644
index 00000000..0865544d
--- /dev/null
+++ b/assets/img/about/icon-full.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/assets/img/about/icon-none.svg b/assets/img/about/icon-none.svg
new file mode 100644
index 00000000..9617560b
--- /dev/null
+++ b/assets/img/about/icon-none.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/assets/img/about/icon-partial.svg b/assets/img/about/icon-partial.svg
new file mode 100644
index 00000000..38881639
--- /dev/null
+++ b/assets/img/about/icon-partial.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/assets/img/about/plugin-affwp.png b/assets/img/about/plugin-affwp.png
new file mode 100644
index 00000000..cda0cc14
Binary files /dev/null and b/assets/img/about/plugin-affwp.png differ
diff --git a/assets/img/about/plugin-aioseo.png b/assets/img/about/plugin-aioseo.png
new file mode 100644
index 00000000..3636ad57
Binary files /dev/null and b/assets/img/about/plugin-aioseo.png differ
diff --git a/assets/img/about/plugin-edd.png b/assets/img/about/plugin-edd.png
new file mode 100644
index 00000000..69d4c267
Binary files /dev/null and b/assets/img/about/plugin-edd.png differ
diff --git a/assets/img/about/plugin-mi.png b/assets/img/about/plugin-mi.png
new file mode 100644
index 00000000..b9e4bedd
Binary files /dev/null and b/assets/img/about/plugin-mi.png differ
diff --git a/assets/img/about/plugin-om.png b/assets/img/about/plugin-om.png
new file mode 100644
index 00000000..4c1232e0
Binary files /dev/null and b/assets/img/about/plugin-om.png differ
diff --git a/assets/img/about/plugin-pushengage.png b/assets/img/about/plugin-pushengage.png
new file mode 100644
index 00000000..4a92d9de
Binary files /dev/null and b/assets/img/about/plugin-pushengage.png differ
diff --git a/assets/img/about/plugin-rp.png b/assets/img/about/plugin-rp.png
new file mode 100644
index 00000000..2c85a213
Binary files /dev/null and b/assets/img/about/plugin-rp.png differ
diff --git a/assets/img/about/plugin-sb-fb.png b/assets/img/about/plugin-sb-fb.png
new file mode 100644
index 00000000..5f60be12
Binary files /dev/null and b/assets/img/about/plugin-sb-fb.png differ
diff --git a/assets/img/about/plugin-sb-instagram.png b/assets/img/about/plugin-sb-instagram.png
new file mode 100644
index 00000000..2940cf59
Binary files /dev/null and b/assets/img/about/plugin-sb-instagram.png differ
diff --git a/assets/img/about/plugin-sb-twitter.png b/assets/img/about/plugin-sb-twitter.png
new file mode 100644
index 00000000..a05b020e
Binary files /dev/null and b/assets/img/about/plugin-sb-twitter.png differ
diff --git a/assets/img/about/plugin-sb-youtube.png b/assets/img/about/plugin-sb-youtube.png
new file mode 100644
index 00000000..e9e36616
Binary files /dev/null and b/assets/img/about/plugin-sb-youtube.png differ
diff --git a/assets/img/about/plugin-searchwp.png b/assets/img/about/plugin-searchwp.png
new file mode 100644
index 00000000..e0faa75d
Binary files /dev/null and b/assets/img/about/plugin-searchwp.png differ
diff --git a/assets/img/about/plugin-seedprod.png b/assets/img/about/plugin-seedprod.png
new file mode 100644
index 00000000..b6d7f30e
Binary files /dev/null and b/assets/img/about/plugin-seedprod.png differ
diff --git a/assets/img/about/plugin-smtp.png b/assets/img/about/plugin-smtp.png
new file mode 100644
index 00000000..adcccd22
Binary files /dev/null and b/assets/img/about/plugin-smtp.png differ
diff --git a/assets/img/about/plugin-sugarcalendar.png b/assets/img/about/plugin-sugarcalendar.png
new file mode 100644
index 00000000..b5b426e2
Binary files /dev/null and b/assets/img/about/plugin-sugarcalendar.png differ
diff --git a/assets/img/about/plugin-trustpulse.png b/assets/img/about/plugin-trustpulse.png
new file mode 100644
index 00000000..d91063e5
Binary files /dev/null and b/assets/img/about/plugin-trustpulse.png differ
diff --git a/assets/img/about/plugin-wp-simple-pay.png b/assets/img/about/plugin-wp-simple-pay.png
new file mode 100644
index 00000000..9d14d6a3
Binary files /dev/null and b/assets/img/about/plugin-wp-simple-pay.png differ
diff --git a/assets/img/about/plugin-wpforms.png b/assets/img/about/plugin-wpforms.png
new file mode 100644
index 00000000..985b5346
Binary files /dev/null and b/assets/img/about/plugin-wpforms.png differ
diff --git a/assets/img/about/team.jpeg b/assets/img/about/team.jpeg
new file mode 100644
index 00000000..d44550d5
Binary files /dev/null and b/assets/img/about/team.jpeg differ
diff --git a/assets/img/aws.svg b/assets/img/aws.svg
new file mode 100644
index 00000000..4715937f
--- /dev/null
+++ b/assets/img/aws.svg
@@ -0,0 +1,38 @@
+
+
+
diff --git a/assets/img/backblaze.svg b/assets/img/backblaze.svg
new file mode 100644
index 00000000..6718539d
--- /dev/null
+++ b/assets/img/backblaze.svg
@@ -0,0 +1,50 @@
+
+
diff --git a/assets/img/cloudflare.svg b/assets/img/cloudflare.svg
new file mode 100644
index 00000000..76559f1d
--- /dev/null
+++ b/assets/img/cloudflare.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/assets/img/cpanel-48.png b/assets/img/cpanel-48.png
new file mode 100644
index 00000000..ddf383ef
Binary files /dev/null and b/assets/img/cpanel-48.png differ
diff --git a/assets/img/create.png b/assets/img/create.png
deleted file mode 100644
index 4db7d010..00000000
Binary files a/assets/img/create.png and /dev/null differ
diff --git a/assets/img/digital-ocean.svg b/assets/img/digital-ocean.svg
new file mode 100644
index 00000000..b62daa5a
--- /dev/null
+++ b/assets/img/digital-ocean.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/assets/img/dreamhost.svg b/assets/img/dreamhost.svg
new file mode 100644
index 00000000..9e4a5aee
--- /dev/null
+++ b/assets/img/dreamhost.svg
@@ -0,0 +1,45 @@
+
+
diff --git a/assets/img/dropbox.svg b/assets/img/dropbox.svg
new file mode 100644
index 00000000..84ac8602
--- /dev/null
+++ b/assets/img/dropbox.svg
@@ -0,0 +1,4 @@
+
+
diff --git a/assets/img/duplicator-header-logo.svg b/assets/img/duplicator-header-logo.svg
new file mode 100644
index 00000000..992d7b0c
--- /dev/null
+++ b/assets/img/duplicator-header-logo.svg
@@ -0,0 +1,13 @@
+
diff --git a/assets/img/duplicator-logo-icon-menu.svg b/assets/img/duplicator-logo-icon-menu.svg
new file mode 100644
index 00000000..e6773893
--- /dev/null
+++ b/assets/img/duplicator-logo-icon-menu.svg
@@ -0,0 +1,8 @@
+
+
+
+
+
+
diff --git a/assets/img/duplicator-logo-icon-white.svg b/assets/img/duplicator-logo-icon-white.svg
new file mode 100644
index 00000000..14d057df
--- /dev/null
+++ b/assets/img/duplicator-logo-icon-white.svg
@@ -0,0 +1,3 @@
+
diff --git a/assets/img/email-logo.png b/assets/img/email-logo.png
new file mode 100644
index 00000000..51ec1857
Binary files /dev/null and b/assets/img/email-logo.png differ
diff --git a/assets/img/exclamation-triangle-orange.svg b/assets/img/exclamation-triangle-orange.svg
new file mode 100644
index 00000000..607bd61f
--- /dev/null
+++ b/assets/img/exclamation-triangle-orange.svg
@@ -0,0 +1,3 @@
+
diff --git a/assets/img/google-cloud.svg b/assets/img/google-cloud.svg
new file mode 100644
index 00000000..657a5abc
--- /dev/null
+++ b/assets/img/google-cloud.svg
@@ -0,0 +1,57 @@
+
+
diff --git a/assets/img/google-drive.svg b/assets/img/google-drive.svg
new file mode 100644
index 00000000..a8cefd5b
--- /dev/null
+++ b/assets/img/google-drive.svg
@@ -0,0 +1,8 @@
+
\ No newline at end of file
diff --git a/assets/img/hdivider.png b/assets/img/hdivider.png
deleted file mode 100644
index dc77cece..00000000
Binary files a/assets/img/hdivider.png and /dev/null differ
diff --git a/assets/img/index.php b/assets/img/index.php
new file mode 100644
index 00000000..c9199655
--- /dev/null
+++ b/assets/img/index.php
@@ -0,0 +1,3 @@
+
+
B&&(d[f]=k,l=u.clone())),d[f]-k}var k,l,m,n,o,p,q,r,s=e.target,t=c.elements.tooltip,u=e.my,v=e.at,w=e.adjust,x=w.method.split(" "),y=x[0],z=x[1]||x[0],A=e.viewport,B=e.container,C=(c.cache,{left:0,top:0});return A.jquery&&s[0]!==a&&s[0]!==b.body&&"none"!==w.method?(m=B.offset()||C,n="static"===B.css("position"),k="fixed"===t.css("position"),o=A[0]===a?A.width():A.outerWidth(E),p=A[0]===a?A.height():A.outerHeight(E),q={left:k?0:A.scrollLeft(),top:k?0:A.scrollTop()},r=A.offset()||C,("shift"!==y||"shift"!==z)&&(l=u.clone()),C={left:"none"!==y?j(G,H,y,w.x,L,N,I,f,h):0,top:"none"!==z?j(H,G,z,w.y,K,M,J,g,i):0,my:l}):C},R.polys={polygon:function(a,b){var c,d,e,f={width:0,height:0,position:{top:1e10,right:0,bottom:0,left:1e10},adjustable:E},g=0,h=[],i=1,j=1,k=0,l=0;for(g=a.length;g--;)c=[parseInt(a[--g],10),parseInt(a[g+1],10)],c[0]>f.position.right&&(f.position.right=c[0]),c[0]f.position.bottom&&(f.position.bottom=c[1]),c[1] 0&&e>0&&i>0&&j>0;)for(d=Math.floor(d/2),e=Math.floor(e/2),b.x===L?i=d:b.x===N?i=f.width-d:i+=Math.floor(d/2),b.y===K?j=e:b.y===M?j=f.height-e:j+=Math.floor(e/2),g=h.length;g--&&!(h.length<2);)k=h[g][0]-f.position.left,l=h[g][1]-f.position.top,(b.x===L&&k>=i||b.x===N&&i>=k||b.x===O&&(i>k||k>f.width-i)||b.y===K&&l>=j||b.y===M&&j>=l||b.y===O&&(j>l||l>f.height-j))&&h.splice(g,1);f.position={left:h[0][0],top:h[0][1]}}return f},rect:function(a,b,c,d){return{width:Math.abs(c-a),height:Math.abs(d-b),position:{left:Math.min(a,c),top:Math.min(b,d)}}},_angles:{tc:1.5,tr:7/4,tl:5/4,bc:.5,br:.25,bl:.75,rc:2,lc:1,c:0},ellipse:function(a,b,c,d,e){var f=R.polys._angles[e.abbrev()],g=0===f?0:c*Math.cos(f*Math.PI),h=d*Math.sin(f*Math.PI);return{width:2*c-Math.abs(g),height:2*d-Math.abs(h),position:{left:a+g,top:b+h},adjustable:E}},circle:function(a,b,c,d){return R.polys.ellipse(a,b,c,c,d)}},R.svg=function(a,c,e){for(var f,g,h,i,j,k,l,m,n,o=(d(b),c[0]),p=d(o.ownerSVGElement),q=o.ownerDocument,r=(parseInt(c.css("stroke-width"),10)||0)/2;!o.getBBox;)o=o.parentNode;if(!o.getBBox||!o.parentNode)return E;switch(o.nodeName){case"ellipse":case"circle":m=R.polys.ellipse(o.cx.baseVal.value,o.cy.baseVal.value,(o.rx||o.r).baseVal.value+r,(o.ry||o.r).baseVal.value+r,e);break;case"line":case"polygon":case"polyline":for(l=o.points||[{x:o.x1.baseVal.value,y:o.y1.baseVal.value},{x:o.x2.baseVal.value,y:o.y2.baseVal.value}],m=[],k=-1,i=l.numberOfItems||l.length;++k';d.extend(x.prototype,{_scroll:function(){var b=this.qtip.elements.overlay;b&&(b[0].style.top=d(a).scrollTop()+"px")},init:function(c){var e=c.tooltip;d("select, object").length<1&&(this.bgiframe=c.elements.bgiframe=d(Bb).appendTo(e),c._bind(e,"tooltipmove",this.adjustBGIFrame,this._ns,this)),this.redrawContainer=d("",{id:S+"-rcontainer"}).appendTo(b.body),c.elements.overlay&&c.elements.overlay.addClass("qtipmodal-ie6fix")&&(c._bind(a,["scroll","resize"],this._scroll,this._ns,this),c._bind(e,["tooltipshow"],this._scroll,this._ns,this)),this.redraw()},adjustBGIFrame:function(){var a,b,c=this.qtip.tooltip,d={height:c.outerHeight(E),width:c.outerWidth(E)},e=this.qtip.plugins.tip,f=this.qtip.elements.tip;b=parseInt(c.css("borderLeftWidth"),10)||0,b={left:-b,top:-b},e&&f&&(a="x"===e.corner.precedance?[I,L]:[J,K],b[a[1]]-=f[a[0]]()),this.bgiframe.css(b).css(d)},redraw:function(){if(this.qtip.rendered<1||this.drawing)return this;var a,b,c,d,e=this.qtip.tooltip,f=this.qtip.options.style,g=this.qtip.options.position.container;return this.qtip.drawing=1,f.height&&e.css(J,f.height),f.width?e.css(I,f.width):(e.css(I,"").appendTo(this.redrawContainer),b=e.width(),1>b%2&&(b+=1),c=e.css("maxWidth")||"",d=e.css("minWidth")||"",a=(c+d).indexOf("%")>-1?g.width()/100:0,c=(c.indexOf("%")>-1?a:1)*parseInt(c,10)||b,d=(d.indexOf("%")>-1?a:1)*parseInt(d,10)||0,b=c+d?Math.min(Math.max(b,d),c):b,e.css(I,Math.round(b)).appendTo(g)),this.drawing=0,this},destroy:function(){this.bgiframe&&this.bgiframe.remove(),this.qtip._unbind([a,this.qtip.tooltip],this._ns)}}),Ab=R.ie6=function(a){return 6===db.ie?new x(a):E},Ab.initialize="render",B.ie6={"^content|style$":function(){this.redraw()}}})}(window,document); +//# sourceMappingURL=jquery.qtip.min.js.map \ No newline at end of file diff --git a/assets/js/jquery.qtip/jquery.qtip.min.js.map b/assets/js/jquery.qtip/jquery.qtip.min.js.map new file mode 100644 index 00000000..e3b4f414 --- /dev/null +++ b/assets/js/jquery.qtip/jquery.qtip.min.js.map @@ -0,0 +1 @@ +{"version":3,"file":"jquery.qtip.min.js","sources":["jquery.qtip.js"],"names":["window","document","undefined","factory","define","amd","jQuery","fn","qtip","$","QTip","target","options","id","attr","this","tooltip","NULL","elements","_id","NAMESPACE","timers","img","plugins","cache","event","disabled","FALSE","onTooltip","lastClass","rendered","destroyed","waiting","hiddenDuringWait","positioning","triggering","invalidOpt","a","type","invalidContent","c","isFunction","length","jquery","then","sanitizeOptions","opts","content","text","ajax","once","metadata","done","api","loading","deferred","extend","context","success","error","set","xhr","status","isPlainObject","title","button","position","my","at","show","TRUE","ready","hide","style","classes","each","PLUGINS","sanitize","convertNotation","notation","obj","i","option","levels","split","pop","setCallback","args","category","rule","match","checks","RegExp","exec","push","apply","createWidgetClass","cls","WIDGET","concat","join","delay","callback","duration","setTimeout","proxy","call","showMethod","hasClass","CLASS_DISABLED","clearTimeout","toggle","hideMethod","relatedTarget","ontoTooltip","closest","SELECTOR","ontoTarget","fixed","test","preventDefault","stopImmediatePropagation","e","inactiveMethod","inactive","repositionMethod","offsetWidth","reposition","delegate","selector","events","method","body","QTIP","ATTR_ID","arguments","init","elem","posOptions","config","docBody","newTarget","metadata5","name","html5","data","parseJSON","defaults","container","solo","viewport","eq","CORNER","overwrite","ATTR_HAS","suppress","removeAttr","oldtitle","camel","s","charAt","toUpperCase","slice","vendorCss","prop","cur","val","ucProp","props","cssPrefixes","cssProps","css","intCss","Math","ceil","parseFloat","Tip","_ns","offset","size","width","height","Modal","Ie6","PROTOTYPE","CHECKS","trackingBound","X","Y","WIDTH","HEIGHT","TOP","LEFT","BOTTOM","RIGHT","CENTER","FLIPINVERT","SHIFT","INACTIVE_EVENTS","CLASS_FIXED","CLASS_DEFAULT","CLASS_FOCUS","CLASS_HOVER","replaceSuffix","BROWSER","ie","v","createElement","innerHTML","getElementsByTagName","NaN","iOS","navigator","userAgent","replace","prototype","_when","deferreds","when","render","self","posClass","_createPosClass","class","tracking","adjust","mouse","role","aria-live","aria-atomic","aria-describedby","aria-hidden","toggleClass","appendTo","append","_createTitle","_updateTitle","_createButton","_updateContent","_setWidget","instance","initialize","_unassignEvents","_assignEvents","_trigger","destroy","immediate","process","timer","stop","find","remove","end","removeData","one","builtin","^id$","o","prev","nextid","new_id","^prerender","^content.text$","^content.attr$","^content.title$","_removeTitle","^content.button$","_updateButton","^content.title.(text|button)$","^position.(my|at)$","^position.container$","^show.ready$","^style.classes$","p","removeClass","addClass","^style.(width|height)","^style.widget|content.title","^style.def","^events.(render|show|move|hide|focus|blur)$","^(show|hide|position).(event|target|fixed|inactive|leave|distance|viewport|adjust)","get","toLowerCase","result","precedance","string","rmove","rrender","value","previous","nodeType","_update","element","empty","display","visibility","html","_waitForContent","images","imagesLoaded","Deferred","resolve","promise","titlebar","widget","insertBefore","substr","abbrev","effect","pluginCalculations","adjusted","newClass","tooltipWidth","outerWidth","tooltipHeight","outerHeight","targetWidth","targetHeight","left","top","visible","isScroll","win","doc","ownerDocument","isArray","x","y","distance","origin","pageX","innerWidth","documentElement","clientWidth","pageY","scrollX","scrollLeft","scrollY","scrollTop","innerHeight","imagemap","is","svg","ownerSVGElement","adjustable","isNaN","queue","next","opacity","removeAttribute","pos","scroll","scrolled","parentOffset","overflow","quirks","compatMode","parent","getBoundingClientRect","offsetParent","C","Corner","corner","forceY","f","invert","z","center","clone","state","add","has","fix","identicalState","allow","after","contentOptions","animate","sameTarget","search","focus","bind","_storeMouse","not","Event","unbind","blur","autofocus","trigger","n","fadeTo","qtips","curIndex","parseInt","zIndex","newIndex","zindex","filter","disable","enable","isString","close","aria-label","prepend","click","on","def","_bind","targets","suffix","ns","_unbind","originalEvent","isDefaultPrevented","_bindEvents","showEvents","hideEvents","showTargets","hideTargets","similarTargets","toggleEvents","showIndex","inArray","splice","_assignInitialEvents","hoverIntent","prerender","showTarget","hideTarget","trim","onTarget","containerTarget","viewportTarget","documentTarget","windowTarget","leave","nodeName","indexOf","enabled","isAncestor","parents","inactiveEvents","limit","abs","resize","special","grep","toArray","currentTarget","newValue","command","returned","makeArray","timeStamp","keepData","elems","func","old","ui","cleanData","triggerHandler","version","move","hidden","TIP","MARGIN","BORDER","COLOR","BG_COLOR","TRANSPARENT","IMPORTANT","HASCANVAS","getContext","INVALID","PIXEL_RATIO","devicePixelRatio","BACKING_STORE_RATIO","backingStorePixelRatio","webkitBackingStorePixelRatio","mozBackingStorePixelRatio","msBackingStorePixelRatio","oBackingStorePixelRatio","SCALE","createVML","tag","tip","prependTo","lineJoin","miterLimit","save","stopPropagation","create","_swapDimensions","_resetDimensions","_useTitle","_parseCorner","_parseWidth","side","use","_parseRadius","_invalidColour","compare","_parseColours","borderSide","colorElem","color","_calculateSize","bigHyp","ratio","isCenter","base","pow","round","smallHyp","sqrt","hyp","border","reverse","_calculateTip","scale","width2","height2","tips","br","bl","tr","tl","tc","bc","rc","lc","lt","rt","lb","rb","_drawCoords","coords","beginPath","moveTo","lineTo","closePath","update","bigCoords","translate","newSize","inner","children","curSize","mimic","lineHeight","restore","clearRect","fillStyle","fill","coordsize","antialias","Number","$this","path","fillcolor","filled","stroked","opera","calculate","corners","userOffset","b","max","margin","bottom","right","shiftflip","direction","popposite","opposite","newCorner","shiftonly","xy","shift","horizontal","vertical","cornerTop","cornerLeft","user","^position.my|style.tip.(corner|mimic|border)$","^style.tip.(height|width)$","^content.title|style.(classes|widget)$","MODAL","OVERLAY","MODALCLASS","MODALSELECTOR","focusable","expr","map","mapName","isTabIndexNotNaN","parentNode","href","focusInputs","blurElems","focusableElems","first","stealFocus","targetOnTop","current","onLast","prevState","mousedown","modal","escape","keyCode","stealfocus","visibleModals","detach","overlay","modal_zindex","oEvent","last","^show.modal.(on|blur)$","elemWidth","elemHeight","otherSide","side1","side2","lengthName","targetLength","elemLength","initialPos","mySide","atSide","isShift","myLength","atLength","sideOffset","viewportScroll","viewportOffset","containerStatic","containerOffset","overflow1","overflow2","viewportWidth","viewportHeight","min","newMy","methodX","methodY","polys","polygon","baseCoords","newWidth","newHeight","compareX","compareY","realX","realY","floor","rect","ax","ay","bx","by","_angles","ellipse","cx","cy","rx","ry","rxc","cos","PI","rys","sin","circle","r","frameOffset","mtx","transformed","len","points","root","strokeWidth2","getBBox","baseVal","x1","y1","x2","y2","numberOfItems","getItem","createSVGPoint","getScreenCTM","matrixTransform","defaultView","parentWindow","frameElement","area","imageOffset","shape","image","coordsString","coordsArray","IE6","BGIFRAME","_scroll","bgiframe","adjustBGIFrame","redrawContainer","redraw","tipAdjust","dimensions","plugin","drawing","perc","ie6","^content|style$"],"mappings":";;CAaC,SAAUA,EAAQC,EAAUC,IAG5B,SAAUC,GACV,YACqB,mBAAXC,SAAyBA,OAAOC,IACzCD,QAAQ,UAAWD,GAEZG,SAAWA,OAAOC,GAAGC,MAC5BL,EAAQG,SAGT,SAASG,GACT,YAoEA,SAASC,GAAKC,EAAQC,EAASC,EAAIC,GAEnCC,KAAKF,GAAKA,EACVE,KAAKJ,OAASA,EACdI,KAAKC,QAAUC,EACfF,KAAKG,UAAaP,OAAQA,GAG1BI,KAAKI,IAAMC,EAAY,IAAMP,EAC7BE,KAAKM,QAAWC,QAChBP,KAAKH,QAAUA,EACfG,KAAKQ,WAGLR,KAAKS,OACJC,SACAd,OAAQF,IACRiB,SAAUC,EACVb,KAAMA,EACNc,UAAWD,EACXE,UAAW,IAIZd,KAAKe,SAAWf,KAAKgB,UAAYhB,KAAKW,SAAWX,KAAKiB,QACrDjB,KAAKkB,iBAAmBlB,KAAKmB,YAAcnB,KAAKoB,WAAaR,EAoL9D,QAASS,GAAWC,GACpB,MAAOA,KAAMpB,GAAsB,WAAdR,EAAE6B,KAAKD,GAG7B,QAASE,GAAeC,GACvB,QAAU/B,EAAEgC,WAAWD,IAAOA,GAAKA,EAAE1B,MAAS0B,EAAEE,QAAyB,WAAdjC,EAAE6B,K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KAAKQ,SAAUD,KAAKkK,QAItD4gB,GAAMjnB,EAAQ6nB,IAAM,SAASppB,GAE5B,MAAsB,KAAfuJ,GAAQC,GAAW,GAAItB,GAAIlI,GAAO1B,GAG1CkqB,GAAI5c,WAAa,SAEjBxD,EAAOghB,KACNC,kBAAmB,WAClB3rB,KAAKorB,cAIJnsB,OAAQC"} \ No newline at end of file diff --git a/assets/js/notifications/admin-notifications.js b/assets/js/notifications/admin-notifications.js new file mode 100644 index 00000000..bc68cd56 --- /dev/null +++ b/assets/js/notifications/admin-notifications.js @@ -0,0 +1,196 @@ +/** + * Duplicator Admin Notifications. + * + * @since 1.6.0 + */ + +'use strict'; + +var DupAdminNotifications = window.DupAdminNotifications || (function (document, window, $) { + + /** + * Elements holder. + * + * @since 1.6.0 + * + * @type {object} + */ + var el = { + + $notifications: $('#dup-notifications'), + $nextButton: $('#dup-notifications .navigation .next'), + $prevButton: $('#dup-notifications .navigation .prev'), + $adminBarCounter: $('#wp-admin-bar-dup-menu .dup-menu-notification-counter'), + $adminBarMenuItem: $('#wp-admin-bar-dup-notifications'), + + }; + + /** + * Public functions and properties. + * + * @since 1.6.0 + * + * @type {object} + */ + var app = { + + /** + * Start the engine. + * + * @since 1.6.0 + */ + init: function () { + + $(app.ready); + }, + + /** + * Document ready. + * + * @since 1.6.0 + */ + ready: function () { + + app.updateNavigation(); + app.events(); + }, + + /** + * Register JS events. + * + * @since 1.6.0 + */ + events: function () { + + el.$notifications + .on('click', '.dismiss', app.dismiss) + .on('click', '.next', app.navNext) + .on('click', '.prev', app.navPrev); + }, + + /** + * Click on the Dismiss notification button. + * + * @since 1.6.0 + * + * @param {object} event Event object. + */ + dismiss: function (event) { + + if (el.$currentMessage.length === 0) { + return; + } + + // Update counter. + var count = parseInt(el.$adminBarCounter.text(), 10); + if (count > 1) { + --count; + el.$adminBarCounter.html(count); + } else { + el.$adminBarCounter.remove(); + el.$adminBarMenuItem.remove(); + } + + // Remove notification. + var $nextMessage = el.$nextMessage.length < 1 ? el.$prevMessage : el.$nextMessage, + messageId = el.$currentMessage.data('message-id'); + + if ($nextMessage.length === 0) { + el.$notifications.fadeOut(300); + } else { + el.$currentMessage.remove(); + $nextMessage.addClass('current'); + app.updateNavigation(); + } + + // AJAX call - update option. + var data = { + action: 'duplicator_notification_dismiss', + nonce: dup_admin_notifications.nonce, + id: messageId, + }; + + $.post(dup_admin_notifications.ajax_url, data, function (res) { + + if (!res.success) { + console.log(res); + } + }).fail(function (xhr, textStatus, e) { + + console.log(xhr.responseText); + }); + }, + + /** + * Click on the Next notification button. + * + * @since 1.6.0 + * + * @param {object} event Event object. + */ + navNext: function (event) { + + if (el.$nextButton.hasClass('disabled')) { + return; + } + + el.$currentMessage.removeClass('current'); + el.$nextMessage.addClass('current'); + + app.updateNavigation(); + }, + + /** + * Click on the Previous notification button. + * + * @since 1.6.0 + * + * @param {object} event Event object. + */ + navPrev: function (event) { + + if (el.$prevButton.hasClass('disabled')) { + return; + } + + el.$currentMessage.removeClass('current'); + el.$prevMessage.addClass('current'); + + app.updateNavigation(); + }, + + /** + * Update navigation buttons. + * + * @since 1.6.0 + */ + updateNavigation: function () { + + if (el.$notifications.find('.dup-notifications-message.current').length === 0) { + el.$notifications.find('.dup-notifications-message:first-child').addClass('current'); + } + + el.$currentMessage = el.$notifications.find('.dup-notifications-message.current'); + el.$nextMessage = el.$currentMessage.next('.dup-notifications-message'); + el.$prevMessage = el.$currentMessage.prev('.dup-notifications-message'); + + if (el.$nextMessage.length === 0) { + el.$nextButton.addClass('disabled'); + } else { + el.$nextButton.removeClass('disabled'); + } + + if (el.$prevMessage.length === 0) { + el.$prevButton.addClass('disabled'); + } else { + el.$prevButton.removeClass('disabled'); + } + }, + }; + + return app; + +}(document, window, jQuery)); + +// Initialize. +DupAdminNotifications.init(); diff --git a/assets/js/notifications/notices.js b/assets/js/notifications/notices.js new file mode 100644 index 00000000..d5b33c1c --- /dev/null +++ b/assets/js/notifications/notices.js @@ -0,0 +1,83 @@ +/** + * Duplicator Dismissible Notices. + * + */ + +'use strict'; + +var DupAdminNotices = window.DupAdminNotices || (function (document, window, $) { + + /** + * Public functions and properties. + */ + var app = { + + /** + * Start the engine. + */ + init: function () { + + $(app.ready); + }, + + /** + * Document ready. + */ + ready: function () { + + app.events(); + }, + + /** + * Dismissible notices events. + */ + events: function () { + $(document).on( + 'click', + '.dup-notice .notice-dismiss, .dup-notice .dup-notice-dismiss', + app.dismissNotice + ); + + $(document).on( + 'click', + '.dup-notice .dup-multi-notice a[data-step]', + function (e) { + e.preventDefault(); + var target = $(this).attr('data-step'); + console.log(target) + if (target) { + var notice = $(this).closest('.dup-multi-notice'); + var review_step = notice.find('.dup-multi-notice-step-' + target); + if (review_step.length > 0) { + notice.find('.dup-multi-notice-step:visible').fadeOut(function () { + review_step.fadeIn(); + }); + } + } + } + ); + }, + + /** + * Dismiss notice event handler. + * + * @param {object} e Event object. + * */ + dismissNotice: function (e) { + + $.post(dup_admin_notices.ajax_url, { + action: 'dup_notice_dismiss', + nonce: dup_admin_notices.nonce, + id: ($(this).closest('.dup-notice').attr('id') || '').replace('dup-notice-', ''), + }); + + $(this).closest('.dup-notice').fadeOut(); + } + }; + + return app; + +}(document, window, jQuery)); + +// Initialize. +DupAdminNotices.init(); diff --git a/assets/js/one-click-upgrade.js b/assets/js/one-click-upgrade.js new file mode 100644 index 00000000..51b60be3 --- /dev/null +++ b/assets/js/one-click-upgrade.js @@ -0,0 +1,66 @@ +var oneClickUpgradeRemoteEndpoint = "https://connect.duplicator.com/upgrade-free-to-pro"; + +jQuery(document).ready(function ($) { + if ($('#dup-settings-upgrade-license-key').length) { + function addErrorMessage(text) { + let msg = $(' ' + + '' + ); + msg.insertAfter( ".dup-settings-pages > h1" ); + msg.find('.notice-dismiss').on('click', function (event) { + event.stopPropagation(); + msg.remove(); + }); + } + + // Client-side redirect to oneClickUpgradeRemoteEndpoint + function redirectToRemoteEndpoint(data) { + if (data["success"] != true) { + addErrorMessage(data["error_msg"]); + return; + } + + $("#redirect-to-remote-upgrade-endpoint").attr("action", oneClickUpgradeRemoteEndpoint); + $("#form-oth").attr("value", data["oth"]); + $("#form-key").attr("value", data["license_key"]); + $("#form-version").attr("value", data["version"]); + $("#form-redirect").attr("value", data["redirect"]); + $("#form-endpoint").attr("value", data["endpoint"]); + $("#form-siteurl").attr("value", data["siteurl"]); + $("#form-homeurl").attr("value", data["homeurl"]); + $("#form-file").attr("value", data["file"]); + $("#redirect-to-remote-upgrade-endpoint").submit(); + } + + $('#dup-settings-connect-btn').on('click', function (event) { + event.stopPropagation(); + var license_key = $('#dup-settings-upgrade-license-key').eq(0).val(); + jQuery.ajax({ + type: "POST", + url: dup_one_click_upgrade_script_data.ajaxurl, + dataType: "json", + data: { + action: 'duplicator_one_click_upgrade_prepare', + nonce: dup_one_click_upgrade_script_data.nonce_one_click_upgrade, + license_key: license_key + }, + success: function (result, textStatus, jqXHR) { + if (result.success) { + redirectToRemoteEndpoint(result.data.funcData); + } else { + addErrorMessage(result.data.message); + } + }, + error: function (result, textStatus, error) { + console.log(result); + } + }); + }); + } +}); diff --git a/assets/js/parsley-standalone.min.js b/assets/js/parsley-standalone.min.js deleted file mode 100644 index 052ab53e..00000000 --- a/assets/js/parsley-standalone.min.js +++ /dev/null @@ -1,85 +0,0 @@ -/* Parsley dist/parsley-standalone.min.js build version 1.1.18 http://parsleyjs.org */ -(function(b){String.prototype.trim===b&&(String.prototype.trim=function(){return this.replace(/^\s+/,"").replace(/\s+$/,"")});Array.prototype.reduce===b&&(Array.prototype.reduce=function(l){if(void 0===this||null===this)throw new TypeError;var r=Object(this),q=r.length>>>0,m=0,a;if("function"!=typeof l)throw new TypeError;if(0==q&&1==arguments.length)throw new TypeError;if(2<=arguments.length)a=arguments[1];else{do{if(m in r){a=r[m++];break}if(++m>=q)throw new TypeError;}while(1)}for(;m' + + text + + '
' + + '' + + ']*>/,N=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,I=/^(?:body|html)$/i,O="val css html text data width height offset".split(" "),F=p.createElement("table"),J=p.createElement("tr"), -K={tr:p.createElement("tbody"),tbody:F,thead:F,tfoot:F,td:J,th:J,"*":p.createElement("div")},P=/complete|loaded|interactive/,Q=/^\.([\w-]+)$/,R=/^#([\w-]*)$/,S=/^[\w-]+$/,M={}.toString,t={},G,E,L=p.createElement("div");t.matches=function(f,a){if(!f||1!==f.nodeType)return!1;var e=f.webkitMatchesSelector||f.mozMatchesSelector||f.oMatchesSelector||f.matchesSelector;if(e)return e.call(f,a);var b;b=f.parentNode;(e=!b)&&(b=L).appendChild(f);b=~t.qsa(b,a).indexOf(f);e&&L.removeChild(f);return b};G=function(f){return f.replace(/-+(.)?/g, -function(f,a){return a?a.toUpperCase():""})};E=function(f){return v.call(f,function(a,e){return f.indexOf(a)==e})};t.fragment=function(f,a,b){f.replace&&(f=f.replace(N,"<$1>$2>"));a===n&&(a=H.test(f)&&RegExp.$1);a in K||(a="*");var c,d=K[a];d.innerHTML=""+f;f=e.each(u.call(d.childNodes),function(){d.removeChild(this)});r(b)&&(c=e(f),e.each(b,function(f,a){if(-1d.indexOf(a)&&c.push(a)})}return e(c)},has:function(a){return this.filter(function(){return l(a)? -e.contains(this,a):e(this).find(a).size()})},eq:function(a){return-1===a?this.slice(a):this.slice(a,+a+1)},first:function(){var a=this[0];return a&&!l(a)?a:e(a)},last:function(){var a=this[this.length-1];return a&&!l(a)?a:e(a)},find:function(a){return 1==this.length?e(t.qsa(this[0],a)):this.map(function(){return t.qsa(this,a)})},closest:function(a,b){for(var c=this[0];c&&!t.matches(c,a);)c=c!==b&&c!==p&&c.parentNode;return e(c)},parents:function(a){for(var b=[],c=this;0 b.indexOf(a))return b.push(a),a});return j(b,a)},parent:function(a){return j(E(this.pluck("parentNode")),a)},children:function(a){return j(this.map(function(){return d(this)}),a)},contents:function(){return this.map(function(){return u.call(this.childNodes)})},siblings:function(a){return j(this.map(function(a,f){return v.call(d(f.parentNode),function(a){return a!==f})}),a)},empty:function(){return this.each(function(){this.innerHTML=""})},pluck:function(a){return e.map(this, -function(e){return e[a]})},show:function(){return this.each(function(){"none"==this.style.display&&(this.style.display=null);if("none"==C(this,"").getPropertyValue("display")){var a=this.style,e=this.nodeName,b,c;h[e]||(b=p.createElement(e),p.body.appendChild(b),c=C(b,"").getPropertyValue("display"),b.parentNode.removeChild(b),"none"==c&&(c="block"),h[e]=c);a.display=h[e]}})},replaceWith:function(a){return this.before(a).remove()},wrap:function(a){var c=b(a);if(this[0]&&!c)var d=e(a).get(0),p=d.parentNode|| -1 arguments.length&&"string"==typeof b)return 0==this.length?n:this[0].style[G(b)]||C(this[0],"").getPropertyValue(b);var c="";for(s in b)!b[s]&&0!==b[s]?this.each(function(){this.style.removeProperty(a(s))}):c+=a(s)+":"+("number"==typeof b[s]&&!D[a(s)]?b[s]+"px":b[s])+";";"string"==typeof b&&(!e&& -0!==e?this.each(function(){this.style.removeProperty(a(b))}):c=a(b)+":"+("number"==typeof e&&!D[a(b)]?e+"px":e));return this.each(function(){this.style.cssText+=";"+c})},index:function(a){return a?this.indexOf(e(a)[0]):this.parent().children().indexOf(this[0])},hasClass:function(a){return 1>this.length?!1:c(a).test(w(this[0]))},addClass:function(a){return this.each(function(b){y=[];var c=w(this);k(this,a,b,c).split(/\s+/g).forEach(function(a){e(this).hasClass(a)||y.push(a)},this);y.length&&w(this, -c+(c?" ":"")+y.join(" "))})},removeClass:function(a){return this.each(function(b){if(a===n)return w(this,"");y=w(this);k(this,a,b,y).split(/\s+/g).forEach(function(a){y=y.replace(c(a)," ")});w(this,y.trim())})},toggleClass:function(a,b){return this.each(function(c){c=k(this,a,c,w(this));(b===n?!e(this).hasClass(c):b)?e(this).addClass(c):e(this).removeClass(c)})},scrollTop:function(){if(this.length)return"scrollTop"in this[0]?this[0].scrollTop:this[0].scrollY},position:function(){if(this.length){var a= -this[0],b=this.offsetParent(),c=this.offset(),d=I.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(e(a).css("margin-top"))||0;c.left-=parseFloat(e(a).css("margin-left"))||0;d.top+=parseFloat(e(b[0]).css("border-top-width"))||0;d.left+=parseFloat(e(b[0]).css("border-left-width"))||0;return{top:c.top-d.top,left:c.left-d.left}}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||p.body;a&&!I.test(a.nodeName)&&"static"==e(a).css("position");)a=a.offsetParent; -return a})}};["width","height"].forEach(function(a){e.fn[a]=function(b){var c,d=a.replace(/./,function(a){return a[0].toUpperCase()});return b===n?this[0]==window?window["inner"+d]:this[0]==p?p.documentElement["offset"+d]:(c=this.offset())&&c[a]:this.each(function(c){var d=e(this);d.css(a,k(this,b,c,d[a]()))})}});["after","prepend","before","append"].forEach(function(a,b){var c=b%2;e.fn[a]=function(){var a=e.map(arguments,function(a){return l(a)?a:t.fragment(a)}),d,f=1 a.length? -this:this.each(function(p,h){d=c?h:h.parentNode;h=0==b?h.nextSibling:1==b?h.firstChild:2==b?h:null;a.forEach(function(a){if(f)a=a.cloneNode(!0);else if(!d)return e(a).remove();A(d.insertBefore(a,h),function(a){null!=a.nodeName&&("SCRIPT"===a.nodeName.toUpperCase()&&(!a.type||"text/javascript"===a.type)&&!a.src)&&window.eval.call(window,a.innerHTML)})})})};e.fn[c?a+"To":"insert"+(b?"Before":"After")]=function(b){e(b)[a](this);return this}});t.Z.prototype=e.fn;t.uniq=E;t.deserializeValue=x;e.zepto= -t;return e}();window.Zepto=Zepto;"$"in window||(window.$=Zepto); -(function(b){function l(a){return a._zid||(a._zid=j++)}function r(a,b,c,d){b=q(b);if(b.ns)var j=RegExp("(?:^| )"+b.ns.replace(" "," .* ?")+"(?: |$)");return(g[l(a)]||[]).filter(function(a){return a&&(!b.e||a.e==b.e)&&(!b.ns||j.test(a.ns))&&(!c||l(a.fn)===l(c))&&(!d||a.sel==d)})}function q(a){a=(""+a).split(".");return{e:a[0],ns:a.slice(1).sort().join(" ")}}function m(a,c,d){b.isObject(a)?b.each(a,d):a.split(/\s/).forEach(function(a){d(a,c)})}function a(a,c,d,j,n,p){var h=l(a),B=g[h]||(g[h]=[]);m(c, -d,function(c,d){var h=q(c);h.fn=d;h.sel=j;h.e in w&&(d=function(a){var c=a.relatedTarget;if(!c||c!==this&&!b.contains(this,c))return h.fn.apply(this,arguments)});h.del=n&&n(d,c);var g=h.del||d;h.proxy=function(b){var c=g.apply(a,[b].concat(b.data));!1===c&&(b.preventDefault(),b.stopPropagation());return c};h.i=B.length;B.push(h);a.addEventListener(w[h.e]||h.e,h.proxy,h.del&&("focus"==h.e||"blur"==h.e)||!!p)})}function c(a,b,c,d,j){var p=l(a);m(b||"",c,function(b,c){r(a,b,c,d).forEach(function(b){delete g[p][b.i]; -a.removeEventListener(w[b.e]||b.e,b.proxy,b.del&&("focus"==b.e||"blur"==b.e)||!!j)})})}function d(a){var c,d={originalEvent:a};for(c in a)!n.test(c)&&void 0!==a[c]&&(d[c]=a[c]);b.each(s,function(b,c){d[b]=function(){this[c]=x;return a[b].apply(a,arguments)};d[c]=A});return d}var g={},j=1,k={},w={mouseenter:"mouseover",mouseleave:"mouseout"};k.click=k.mousedown=k.mouseup=k.mousemove="MouseEvents";b.event={add:a,remove:c};b.proxy=function(a,c){if(b.isFunction(a)){var d=function(){return a.apply(c,arguments)}; -d._zid=l(a);return d}if("string"==typeof c)return b.proxy(a[c],a);throw new TypeError("expected function");};b.fn.bind=function(b,c){return this.each(function(){a(this,b,c)})};b.fn.unbind=function(a,b){return this.each(function(){c(this,a,b)})};b.fn.one=function(b,d){return this.each(function(g,j){a(this,b,d,null,function(a,b){return function(){var e=a.apply(j,arguments);c(j,b,a);return e}})})};var x=function(){return!0},A=function(){return!1},n=/^([A-Z]|layer[XY]$)/,s={preventDefault:"isDefaultPrevented", -stopImmediatePropagation:"isImmediatePropagationStopped",stopPropagation:"isPropagationStopped"};b.fn.delegate=function(c,g,j){return this.each(function(n,k){a(k,g,j,c,function(a){return function(h){var g,j=b(h.target).closest(c,k).get(0);if(j)return g=b.extend(d(h),{currentTarget:j,liveFired:k}),a.apply(j,[g].concat([].slice.call(arguments,1)))}})})};b.fn.undelegate=function(a,b,d){return this.each(function(){c(this,b,d,a)})};b.fn.live=function(a,c){b(document.body).delegate(this.selector,a,c);return this}; -b.fn.die=function(a,c){b(document.body).undelegate(this.selector,a,c);return this};b.fn.on=function(a,c,d){return!c||b.isFunction(c)?this.bind(a,c||d):this.delegate(c,a,d)};b.fn.off=function(a,c,d){return!c||b.isFunction(c)?this.unbind(a,c||d):this.undelegate(c,a,d)};b.fn.trigger=function(a,c){if("string"==typeof a||b.isPlainObject(a))a=b.Event(a);var d=a;if(!("defaultPrevented"in d)){d.defaultPrevented=!1;var g=d.preventDefault;d.preventDefault=function(){this.defaultPrevented=!0;g.call(this)}}a.data= -c;return this.each(function(){"dispatchEvent"in this&&this.dispatchEvent(a)})};b.fn.triggerHandler=function(a,c){var g,j;this.each(function(n,p){g=d("string"==typeof a?b.Event(a):a);g.data=c;g.target=p;b.each(r(p,a.type||a),function(a,b){j=b.proxy(g);if(g.isImmediatePropagationStopped())return!1})});return j};"focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select keydown keypress keyup error".split(" ").forEach(function(a){b.fn[a]= -function(b){return b?this.bind(a,b):this.trigger(a)}});["focus","blur"].forEach(function(a){b.fn[a]=function(b){b?this.bind(a,b):this.each(function(){try{this[a]()}catch(b){}});return this}});b.Event=function(a,b){"string"!=typeof a&&(b=a,a=b.type);var c=document.createEvent(k[a]||"Events"),d=!0;if(b)for(var g in b)"bubbles"==g?d=!!b[g]:c[g]=b[g];c.initEvent(a,d,!0,null,null,null,null,null,null,null,null,null,null,null,null);c.isDefaultPrevented=function(){return this.defaultPrevented};return c}})(Zepto); -(function(b,l){function r(a){return a.toLowerCase()}var q="",m,a=window.document.createElement("div"),c=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i,d,g,j,k,w,x,A,n={};b.each({Webkit:"webkit",Moz:"",O:"o",ms:"MS"},function(b,c){if(a.style[b+"TransitionProperty"]!==l)return q="-"+r(b)+"-",m=c,!1});d=q+"transform";n[g=q+"transition-property"]=n[j=q+"transition-duration"]=n[k=q+"transition-timing-function"]=n[w=q+"animation-name"]=n[x=q+"animation-duration"]=n[A=q+"animation-timing-function"]= -"";b.fx={off:m===l&&a.style.transitionProperty===l,speeds:{_default:400,fast:200,slow:600},cssPrefix:q,transitionEnd:m?m+"TransitionEnd":r("TransitionEnd"),animationEnd:m?m+"AnimationEnd":r("AnimationEnd")};b.fn.animate=function(a,c,d,g){b.isObject(c)&&(d=c.easing,g=c.complete,c=c.duration);c&&(c=("number"==typeof c?c:b.fx.speeds[c]||b.fx.speeds._default)/1E3);return this.anim(a,c,d,g)};b.fn.anim=function(a,e,m,q){var u,v={},p,h="",B=this,C,D=b.fx.transitionEnd;e===l&&(e=0.4);b.fx.off&&(e=0);if("string"== -typeof a)v[w]=a,v[x]=e+"s",v[A]=m||"linear",D=b.fx.animationEnd;else{p=[];for(u in a)c.test(u)?h+=u+"("+a[u]+") ":(v[u]=a[u],p.push(r(u.replace(/([a-z])([A-Z])/,"$1-$2"))));h&&(v[d]=h,p.push(d));0 =e&&setTimeout(function(){B.each(function(){C.call(this)})}, -0);return this};a=null})(Zepto); -(function(b){function l(a,c,d,e){if(a.global)return a=c||w,d=b.Event(d),b(a).trigger(d,e),!d.defaultPrevented}function r(a,b,c){var d=c.context;c.success.call(d,a,"success",b);l(c,d,"ajaxSuccess",[b,c,a]);m("success",b,c)}function q(a,b,c,d){var e=d.context;d.error.call(e,c,b,a);l(d,e,"ajaxError",[c,d,a]);m(b,c,d)}function m(a,c,d){var e=d.context;d.complete.call(e,c,a);l(d,e,"ajaxComplete",[c,d]);d.global&&!--b.active&&l(d,null,"ajaxStop")}function a(){}function c(a){return a&&(a==z?"html":a==y? -"json":s.test(a)?"script":e.test(a)&&"xml")||"text"}function d(a){a.processData&&k(a.data)&&(a.data=b.param(a.data,a.traditional));if(a.data&&(!a.type||"GET"==a.type.toUpperCase()))a.url=(a.url+"&"+a.data).replace(/[&?]{1,2}/,"?")}function g(a,c,d,e){var j=b.isArray(c);b.each(c,function(c,h){e&&(c=d?e:e+"["+(j?"":c)+"]");!e&&j?a.add(h.name,h.value):(d?b.isArray(h):k(h))?g(a,h,d,c):a.add(c,h)})}var j=0,k=b.isObject,w=window.document,x,A,n=/"; + $onClickConfirm .= $progress_func2 . ';'; + } + + if ($this->closeOnConfirm) { + $onClickConfirm .= 'tb_remove();'; + } + + $html = + ' '; + echo $html; + } + + /** + * Shows the confirm base JS code used to display when needed + * + * @return string The javascript content used for the confirm dialog + */ + public function showConfirm() + { + $this->width = is_numeric($this->width) ? $this->width : 500; + $this->height = is_numeric($this->height) ? $this->height : 225; + $html = "tb_show('" . esc_js($this->title) . "', '#TB_inline?width=" . esc_js($this->width) . "&height=" . esc_js($this->height) . "&inlineId=" . esc_js($this->id) . "');\n" . + "var styleData = jQuery('#TB_window').attr('style') + 'height: " . esc_js($this->height) . "px !important';\n" . + "jQuery('#TB_window').attr('style', styleData);"; + echo $html; + } +} diff --git a/classes/ui/class.ui.messages.php b/classes/ui/class.ui.messages.php new file mode 100644 index 00000000..19415fb1 --- /dev/null +++ b/classes/ui/class.ui.messages.php @@ -0,0 +1,112 @@ +id = self::UNIQUE_ID_PREFIX . self::$unique_id; + $this->content = (string) $content; + $this->type = $type; + } + + protected function get_notice_classes($classes = array()) + { + if (is_string($classes)) { + $classes = explode(' ', $classes); + } elseif (is_array($classes)) { + } else { + $classes = array(); + } + + if ($this->is_dismissible) { + $classes[] = 'is-dismissible'; + } + + $result = array_merge(array('notice', $this->type), $classes); + return trim(implode(' ', $result)); + } + + public function initMessage() + { + $classes = array(); + if ($this->hide_on_init) { + $classes[] = 'no_display'; + } + + $this->wrap_cont_tag = empty($this->wrap_cont_tag) ? 'p' : $this->wrap_cont_tag; + echo '' . + '<' . $this->wrap_cont_tag . ' class="msg-content">' . + $this->content . + '' . $this->wrap_cont_tag . '>' . + ''; + } + + public function updateMessage($jsVarName, $echo = true) + { + $result = 'jQuery("#' . $this->id . ' > .msg-content").html(' . $jsVarName . ');'; + if ($echo) { + echo $result; + } else { + return $result; + } + } + + public function showMessage($echo = true) + { + $callStr = !empty($this->callback_on_show) ? $this->callback_on_show . ';' : ''; + $result = 'jQuery("#' . $this->id . '").fadeIn( "slow", function() { $(this).removeClass("no_display");' . $callStr . ' });'; + if ($this->auto_hide_delay > 0) { + $result .= 'setTimeout(function () { ' . $this->hideMessage(false) . ' }, ' . $this->auto_hide_delay . ');'; + } + + if ($echo) { + echo $result; + } else { + return $result; + } + } + + public function hideMessage($echo = true) + { + $callStr = !empty($this->callback_on_hide) ? $this->callback_on_hide . ';' : ''; + $result = 'jQuery("#' . $this->id . '").fadeOut( "slow", function() { $(this).addClass("no_display");' . $callStr . ' });'; + if ($echo) { + echo $result; + } else { + return $result; + } + } +} diff --git a/classes/ui/class.ui.screen.base.php b/classes/ui/class.ui.screen.base.php new file mode 100644 index 00000000..bea168eb --- /dev/null +++ b/classes/ui/class.ui.screen.base.php @@ -0,0 +1,169 @@ +id, array( + 'toplevel_page_duplicator', + 'duplicator_page_duplicator-tools', + 'duplicator_page_duplicator-settings', + 'duplicator_page_duplicator-gopro')) + ) { + return; + } + + $colorScheme = self::getCurrentColorScheme(); + $primaryButtonColor = self::getPrimaryButtonColorByScheme(); + if ($colorScheme !== false) { ?> + + name); + switch ($name) { + case 'blue': + return '#e3af55'; + case 'light': + case 'midnight': + return $colorScheme->colors[3]; + case 'ocean': + case 'ectoplasm': + case 'coffee': + case 'sunrise': + case 'default': + default: + return $colorScheme->colors[2]; + } + } + + + public static function getCurrentColorScheme() + { + global $_wp_admin_css_colors; + if (!isset($_wp_admin_css_colors) || !is_array($_wp_admin_css_colors)) { + return false; + } + + $colorScheme = get_user_option('admin_color'); + + if (isset($_wp_admin_css_colors[$colorScheme])) { + return $_wp_admin_css_colors[$colorScheme]; + } else { + return $_wp_admin_css_colors[SnapUtil::arrayKeyFirst($_wp_admin_css_colors)]; + } + } + + /** + * Get the help support tab view content shown in the help system + * + * @param string $guide The target URL to navigate to on the online user guide + * @param string $faq The target URL to navigate to on the online user tech FAQ + * + * @return null + */ + public function getSupportTab($guide, $faq) + { + $content = __( + "Need Help? Please check out these resources first:" + . "" + . "
", + 'duplicator' + ); + + $this->screen->add_help_tab(array( + 'id' => 'dup_help_tab_callback', + 'title' => esc_html__('Support', 'duplicator'), + 'content' => "- " + . "Full Online User Guide
" + . "- " + . "Frequently Asked Questions
" + . "{$content}
" + )); + } + + /** + * Get the help support side bar found in the right most part of the help system + * + * @return null + */ + public function getHelpSidbar() + { + $txt_title = __("Resources", 'duplicator'); + $txt_home = __("Knowledge Base", 'duplicator'); + $txt_guide = __("Full User Guide", 'duplicator'); + $txt_faq = __("Technical FAQs", 'duplicator'); + $txt_sets = __("Package Settings", 'duplicator'); + $this->screen->set_help_sidebar( + "" . esc_html($txt_title) . ":" + ); + } +} diff --git a/classes/ui/class.ui.viewstate.php b/classes/ui/class.ui.viewstate.php new file mode 100644 index 00000000..bbb00cd1 --- /dev/null +++ b/classes/ui/class.ui.viewstate.php @@ -0,0 +1,87 @@ + $value) { + if ($key == $searchKey) { + return $value; + } + } + } + return null; + } +} diff --git a/classes/ui/index.php b/classes/ui/index.php new file mode 100644 index 00000000..c9199655 --- /dev/null +++ b/classes/ui/index.php @@ -0,0 +1,3 @@ + 'No error has occurred', + JSON_ERROR_DEPTH => 'The maximum stack depth has been exceeded', + JSON_ERROR_STATE_MISMATCH => 'Invalid or malformed JSON', + JSON_ERROR_CTRL_CHAR => 'Control character error, possibly incorrectly encoded', + JSON_ERROR_SYNTAX => 'Syntax error', + JSON_ERROR_UTF8 => 'Malformed UTF-8 characters. To resolve see https://duplicator.com/knowledge-base/ how-to-resolve-malformed-utf-8-characters-possibly-incorrectly-encoded-issues/' + ); + /** + * Used on PHP 5.3+ to better handle calling the json_encode method + * + * Returns a string containing the JSON representation of the supplied value + * + * @return string + */ + public static function customEncode($value, $iteration = 1) + { + if (DUP_Util::$on_php_53_plus) { + $encoded = SnapJson::jsonEncodePPrint($value); + switch (json_last_error()) { + case JSON_ERROR_NONE: + return $encoded; + case JSON_ERROR_DEPTH: + throw new RuntimeException('Maximum stack depth exceeded'); + case JSON_ERROR_STATE_MISMATCH: + throw new RuntimeException('Underflow or the modes mismatch'); + case JSON_ERROR_CTRL_CHAR: + throw new RuntimeException('Unexpected control character found'); + case JSON_ERROR_SYNTAX: + throw new RuntimeException('Syntax error, malformed JSON'); + case JSON_ERROR_UTF8: + if ($iteration == 1) { + $clean = self::makeUTF8($value); + return self::customEncode($clean, $iteration + 1); + } else { + throw new RuntimeException('UTF-8 error loop'); + } + default: + throw new RuntimeException('Unknown error'); + } + } else { + return self::oldCustomEncode($value); + } + } + + public static function safeEncode($data, $options = 0, $depth = 512) + { + try { + $jsonString = SnapJson::jsonEncode($data, $options, $depth); + } catch (Exception $e) { + $jsonString = false; + } + + if (($jsonString === false) || trim($jsonString) == '') { + $jsonString = self::customEncode($data); + if (($jsonString === false) || trim($jsonString) == '') { + throw new Exception('Unable to generate JSON from object'); + } + } + return $jsonString; + } + + /** + * Attempts to only call the json_decode method directly + * + * Returns the value encoded in json in appropriate PHP type. Values true, false and null are returned as TRUE, FALSE and NULL respectively. + * NULL is returned if the json cannot be decoded or if the encoded data is deeper than the recursion limit. + * + * @return object + */ + public static function decode($json, $assoc = false) + { + $result = json_decode($json, $assoc); + if ($result !== null) { + return $result; + } + + if (function_exists('json_last_error')) { + throw new RuntimeException(self::$messages[json_last_error()]); + } else { + throw new RuntimeException("DUP_JSON decode error"); + } + } + + private static function makeUTF8($mixed) + { + if (is_array($mixed)) { + foreach ($mixed as $key => $value) { + $mixed[$key] = self::makeUTF8($value); + } + } elseif (is_string($mixed)) { + return utf8_encode($mixed); + } + return $mixed; + } + + private static function escapeString($str) + { + return addcslashes($str, "\v\t\n\r\f\"\\/"); + } + + private static function oldCustomEncode($in) + { + $out = ""; + if (is_object($in)) { + $in = get_object_vars($in); + } + + if (is_array($in)) { + $obj = false; + $arr = array(); + foreach ($in as $key => $val) { + if (!is_numeric($key)) { + $obj = true; + } + $arr[$key] = self::oldCustomEncode($val); + } + + if ($obj) { + foreach ($arr as $key => $val) { + $arr[$key] = "\"" . self::escapeString($key) . "\":{$val}"; + } + $val = implode(',', $arr); + $out .= "{{$val}}"; + } else { + $val = implode(',', $arr); + $out .= "[{$val}]"; + } + } elseif (is_bool($in)) { + $out .= $in ? 'true' : 'false'; + } elseif (is_null($in)) { + $out .= 'null'; + } elseif (is_string($in)) { + $out .= "\"" . self::escapeString($in) . "\""; + } else { + $out .= $in; + } + + return "{$out}"; + } +} diff --git a/classes/utilities/class.u.multisite.php b/classes/utilities/class.u.multisite.php new file mode 100644 index 00000000..8cbc3551 --- /dev/null +++ b/classes/utilities/class.u.multisite.php @@ -0,0 +1,264 @@ +id} Domain={$siteInfo->domain} Path={$siteInfo->path} Blogname={$siteInfo->blogname}"); + } + + return $site_array; + } + + /** + * + * @param int $subsiteId + * + * @return stdClass|bool false on failure + */ + public static function getSubsiteInfoById($subsiteId) + { + if (!is_multisite()) { + $subsiteId = 1; + } + return self::getSubsiteInfo($subsiteId); + } + + /** + * Get subsite info + * + * @param int $siteId + * @param array $filteredTables + * @param array|false $filteredPaths return + * + * @return stdClass|bool false on failure + */ + public static function getSubsiteInfo($siteId = 1, $filteredTables = array(), $filteredPaths = array()) + { + if (is_multisite()) { + if (($siteDetails = get_blog_details($siteId)) == false) { + return false; + } + } else { + $siteId = 1; + $siteDetails = new stdClass(); + $home = DUP_Archive::getOriginalUrls('home'); + $parsedHome = SnapURL::parseUrl($home); + $siteDetails->domain = $parsedHome['host']; + $siteDetails->path = trailingslashit($parsedHome['path']); + $siteDetails->blogname = sanitize_text_field(get_option('blogname')); + } + + $subsiteID = $siteId; + $siteInfo = new stdClass(); + $siteInfo->id = $subsiteID; + $siteInfo->domain = $siteDetails->domain; + $siteInfo->path = $siteDetails->path; + $siteInfo->blogname = $siteDetails->blogname; + $siteInfo->blog_prefix = $GLOBALS['wpdb']->get_blog_prefix($subsiteID); + if (count($filteredTables) > 0) { + $siteInfo->filteredTables = array_values(array_intersect(self::getSubsiteTables($subsiteID), $filteredTables)); + } else { + $siteInfo->filteredTables = array(); + } + $siteInfo->adminUsers = SnapWP::getAdminUserLists($siteInfo->id); + $siteInfo->fullHomeUrl = get_home_url($siteId); + $siteInfo->fullSiteUrl = get_site_url($siteId); + + if ($siteId > 1) { + switch_to_blog($siteId); + } + + $uploadData = wp_upload_dir(); + $uploadPath = $uploadData['basedir']; + $siteInfo->uploadPath = SnapIO::getRelativePath($uploadPath, DUP_Archive::getTargetRootPath(), true); + $siteInfo->fullUploadPath = untrailingslashit($uploadPath); + $siteInfo->fullUploadSafePath = SnapIO::safePathUntrailingslashit($uploadPath); + $siteInfo->fullUploadUrl = $uploadData['baseurl']; + if (count($filteredPaths)) { + $globalDirFilters = apply_filters('duplicator_global_file_filters', $GLOBALS['DUPLICATOR_GLOBAL_FILE_FILTERS']); + $siteInfo->filteredPaths = array_values(array_filter($filteredPaths, function ($path) use ($uploadPath, $subsiteID, $globalDirFilters) { + if ( + ($relativeUpload = SnapIO::getRelativePath($path, $uploadPath)) === false || + in_array($path, $globalDirFilters) + ) { + return false; + } + + if ($subsiteID > 1) { + return true; + } else { + // no check on blogs.dir because in wp-content/blogs.dir not in upload folder + return !(strpos($relativeUpload, 'sites') === 0); + } + })); + } else { + $siteInfo->filteredPaths = array(); + } + + if ($siteId > 1) { + restore_current_blog(); + } + return $siteInfo; + } + + /** + * @param int $subsiteID + * + * @return array List of tables belonging to subsite + */ + public static function getSubsiteTables($subsiteID) + { + /** @var \wpdb $wpdb */ + global $wpdb; + + $basePrefix = $wpdb->base_prefix; + $subsitePrefix = $wpdb->get_blog_prefix($subsiteID); + + $sharedTables = array( + $basePrefix . 'users', + $basePrefix . 'usermeta' + ); + $multisiteOnlyTables = array( + $basePrefix . 'blogmeta', + $basePrefix . 'blogs', + $basePrefix . 'blog_versions', + $basePrefix . 'registration_log', + $basePrefix . 'signups', + $basePrefix . 'site', + $basePrefix . 'sitemeta' + ); + + $subsiteTables = array(); + $sql = ""; + $dbnameSafe = esc_sql(DB_NAME); + + if ($subsiteID != 1) { + $regex = '^' . SnapDB::quoteRegex($subsitePrefix); + $regexpSafe = esc_sql($regex); + + $sharedTablesSafe = "'" . implode( + "', '", + esc_sql($sharedTables) + ) . "'"; + $sql = "SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = '$dbnameSafe' AND "; + $sql .= "(TABLE_NAME REGEXP '$regexpSafe' OR TABLE_NAME IN ($sharedTablesSafe))"; + } else { + $regexMain = '^' . SnapDB::quoteRegex($basePrefix); + $regexpMainSafe = esc_sql($regexMain); + $regexNotSub = '^' . SnapDB::quoteRegex($basePrefix) . '[0-9]+_'; + $regexpNotSubSafe = esc_sql($regexNotSub); + + $multisiteOnlyTablesSafe = "'" . implode( + "', '", + esc_sql($multisiteOnlyTables) + ) . "'"; + $sql = "SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = '$dbnameSafe' AND "; + $sql .= "TABLE_NAME REGEXP '$regexpMainSafe' AND "; + $sql .= "TABLE_NAME NOT REGEXP '$regexpNotSubSafe' AND "; + $sql .= "TABLE_NAME NOT IN ($multisiteOnlyTablesSafe)"; + } + $subsiteTables = $wpdb->get_col($sql); + return $subsiteTables; + } +} diff --git a/classes/utilities/class.u.patch.php b/classes/utilities/class.u.patch.php new file mode 100644 index 00000000..d1918330 --- /dev/null +++ b/classes/utilities/class.u.patch.php @@ -0,0 +1,80 @@ +DupLiteBackupDir = DUP_Settings::getSsdirPath(); + } + + /** + * Apply patch code to all installer files + */ + public function ApplyInstallerPatch_0001() + { + $backupDir = $this->DupLiteBackupDir; + + foreach (glob("{$backupDir}/*_installer.php") as $file) { + if (strstr($file, '_installer.php')) { + $content = "\n"; + $this->fwritePrepend($file, $content); + } + } + } + + + /** + * Prepends data to an existing file + * + * @param string $file The full file path to the file + * @param string $content The content to prepend to the file + * + * @return TRUE on success or if file does not exist. FALSE on failure + */ + private function fwritePrepend($file, $prepend) + { + if (!file_exists($file) || !is_writable($file)) { + return false; + } + + $handle = fopen($file, "r+"); + $len = strlen($prepend); + $final_len = filesize($file) + $len; + $cache_old = fread($handle, $len); + rewind($handle); + $i = 1; + while (ftell($handle) < $final_len) { + fwrite($handle, $prepend); + $prepend = $cache_old; + $cache_old = fread($handle, $len); + fseek($handle, $i * $len); + $i++; + } + } +} diff --git a/classes/utilities/class.u.php b/classes/utilities/class.u.php new file mode 100644 index 00000000..94187627 --- /dev/null +++ b/classes/utilities/class.u.php @@ -0,0 +1,956 @@ += 0; + self::$on_php_53_plus = version_compare(PHP_VERSION, '5.3.0') >= 0; + self::$on_php_54_plus = version_compare(PHP_VERSION, '5.4.0') >= 0; + self::$PHP7_plus = version_compare(PHP_VERSION, '7.0.0', '>='); + } + + public static function getArchitectureString() + { + switch (PHP_INT_SIZE) { + case 4: + return esc_html__('32-bit', 'duplicator'); + break; + case 8: + return esc_html__('64-bit', 'duplicator'); + break; + default: + return esc_html__('Unknown', 'duplicator'); + } + } + + public static function objectCopy($srcObject, $destObject, $skipMemberArray = null) + { + foreach ($srcObject as $member_name => $member_value) { + if (!is_object($member_value) && (($skipMemberArray == null) || !in_array($member_name, $skipMemberArray))) { + // Skipping all object members + $destObject->$member_name = $member_value; + } + } + } + + public static function getWPCoreDirs() + { + $wp_core_dirs = array(get_home_path() . 'wp-admin', get_home_path() . 'wp-includes'); + + //if wp_content is overrided + $wp_path = get_home_path() . "wp-content"; + if (get_home_path() . 'wp-content' != WP_CONTENT_DIR) { + $wp_path = WP_CONTENT_DIR; + } + $wp_path = str_replace("\\", "/", $wp_path); + + $wp_core_dirs[] = $wp_path; + $wp_core_dirs[] = $wp_path . '/plugins'; + $wp_core_dirs[] = $wp_path . '/themes'; + + return $wp_core_dirs; + } + + /** + * return absolute path for the files that are core directories + * + * @return string array + */ + public static function getWPCoreFiles() + { + $wp_cored_dirs = array(get_home_path() . 'wp-config.php'); + return $wp_cored_dirs; + } + + /** + * Groups an array into arrays by a given key, or set of keys, shared between all array members. + * + * Based on {@author Jake Zatecky}'s {@link https://github.com/jakezatecky/array_group_by array_group_by()} function. + * This variant allows $key to be closures. + * + * @param array $array The array to have grouping performed on. + * @param mixed $key,... The key to group or split by. Can be a _string_, an _integer_, a _float_, or a _callable_. + * - If the key is a callback, it must return a valid key from the array. + * - If the key is _NULL_, the iterated element is skipped. + * - string|oink callback ( mixed $item ) + * + * @return array|null Returns a multidimensional array or `null` if `$key` is invalid. + */ + public static function array_group_by(array $array, $key) + { + if (!is_string($key) && !is_int($key) && !is_float($key) && !is_callable($key)) { + trigger_error('array_group_by(): The key should be a string, an integer, or a callback', E_USER_ERROR); + return null; + } + $func = (!is_string($key) && is_callable($key) ? $key : null); + $_key = $key; + // Load the new array, splitting by the target key + $grouped = array(); + foreach ($array as $value) { + $key = null; + if (is_callable($func)) { + $key = call_user_func($func, $value); + } elseif (is_object($value) && isset($value->{$_key})) { + $key = $value->{$_key}; + } elseif (isset($value[$_key])) { + $key = $value[$_key]; + } + if ($key === null) { + continue; + } + $grouped[$key][] = $value; + } + // Recursively build a nested grouping if more parameters are supplied + // Each grouped array value is grouped according to the next sequential key + if (func_num_args() > 2) { + $args = func_get_args(); + foreach ($grouped as $key => $value) { + $params = array_merge(array($value), array_slice($args, 2, func_num_args())); + $grouped[$key] = call_user_func_array('DUP_Util::array_group_by', $params); + } + } + return $grouped; + } + + /** + * PHP_SAPI for FCGI requires a data flush of at least 256 + * bytes every 40 seconds or else it forces a script halt + * + * @return string A series of 256 space characters + */ + public static function fcgiFlush() + { + echo(str_repeat(' ', 300)); + @flush(); + @ob_flush(); + } + + public static function isWpDebug() + { + return defined('WP_DEBUG') && WP_DEBUG; + } + + /** + * Returns the last N lines of a file. Equivalent to tail command + * + * @param string $filepath The full path to the file to be tailed + * @param int $lines The number of lines to return with each tail call + * + * @return string The last N parts of the file + */ + public static function tailFile($filepath, $lines = 2) + { + // Open file + $f = @fopen($filepath, "rb"); + if ($f === false) { + return false; + } + + // Sets buffer size + $buffer = 256; + + // Jump to last character + fseek($f, -1, SEEK_END); + + // Read it and adjust line number if necessary + // (Otherwise the result would be wrong if file doesn't end with a blank line) + if (fread($f, 1) != "\n") { + $lines -= 1; + } + + // Start reading + $output = ''; + $chunk = ''; + + // While we would like more + while (ftell($f) > 0 && $lines >= 0) { + // Figure out how far back we should jump + $seek = min(ftell($f), $buffer); + // Do the jump (backwards, relative to where we are) + fseek($f, -$seek, SEEK_CUR); + // Read a chunk and prepend it to our output + $output = ($chunk = fread($f, $seek)) . $output; + // Jump back to where we started reading + fseek($f, -mb_strlen($chunk, '8bit'), SEEK_CUR); + // Decrease our line counter + $lines -= substr_count($chunk, "\n"); + } + + // While we have too many lines + // (Because of buffer size we might have read too many) + while ($lines++ < 0) { + // Find first newline and remove all text before that + $output = substr($output, strpos($output, "\n") + 1); + } + fclose($f); + return trim($output); + } + + /** + * Display human readable byte sizes + * + * @param int $size The size in bytes + * + * @return string The size of bytes readable such as 100KB, 20MB, 1GB etc. + */ + public static function byteSize($size, $roundBy = 2) + { + try { + $units = array('B', 'KB', 'MB', 'GB', 'TB'); + for ($i = 0; $size >= 1024 && $i < 4; $i++) { + $size /= 1024; + } + return round($size, $roundBy) . $units[$i]; + } catch (Exception $e) { + return "n/a"; + } + } + + /** + * Makes path safe for any OS + * Paths should ALWAYS READ be "/" + * uni: /home/path/file.txt + * win: D:/home/path/file.txt + * + * @param string $path The path to make safe + * + * @return string A path with all slashes facing "/" + */ + public static function safePath($path) + { + return str_replace("\\", "/", $path); + } + + /** + * Get current microtime as a float. Method is used for simple profiling + * + * @see elapsedTime + * + * @return string A float in the form "msec sec", where sec is the number of seconds since the Unix epoch + */ + public static function getMicrotime() + { + return microtime(true); + } + + /** + * Append the value to the string if it doesn't already exist + * + * @param string $string The string to append to + * @param string $value The string to append to the $string + * + * @return string Returns the string with the $value appended once + */ + public static function appendOnce($string, $value) + { + return $string . (substr($string, -1) == $value ? '' : $value); + } + + /** + * Return a string with the elapsed time + * + * @see getMicrotime() + * + * @param mixed number $end The final time in the sequence to measure + * @param mixed number $start The start time in the sequence to measure + * + * @return string The time elapsed from $start to $end + */ + public static function elapsedTime($end, $start) + { + return sprintf("%.2f sec.", abs($end - $start)); + } + + /** + * List all of the files of a path + * + * @param string $path The full path to a system directory + * + * @return array of all files in that path + * + * Notes: + * - Avoid using glob() as GLOB_BRACE is not an option on some operating systems + * - Pre PHP 5.3 DirectoryIterator will crash on unreadable files + * - Scandir will not crash on unreadable items, but will not return results + */ + public static function listFiles($path = '.') + { + try { + $files = array(); + if ($dh = opendir($path)) { + while (($file = readdir($dh)) !== false) { + if ($file == '.' || $file == '..') { + continue; + } + $full_file_path = trailingslashit($path) . $file; + $files[] = str_replace("\\", '/', $full_file_path); + } + @closedir($dh); + } + return $files; + } catch (Exception $exc) { + $result = array(); + $files = @scandir($path); + if (is_array($files)) { + foreach ($files as $file) { + $result[] = str_replace("\\", '/', $path) . $file; + } + } + return $result; + } + } + + /** + * List all of the directories of a path + * + * @param string $path The full path to a system directory + * + * @return array of all dirs in the $path + */ + public static function listDirs($path = '.') + { + $dirs = array(); + + foreach (new DirectoryIterator($path) as $file) { + if ($file->isDir() && !$file->isDot()) { + $dirs[] = DUP_Util::safePath($file->getPathname()); + } + } + return $dirs; + } + + /** + * Does the directory have content + * + * @param string $path The full path to a system directory + * + * @return bool Returns true if directory is empty + */ + public static function isDirectoryEmpty($path) + { + if (!is_readable($path)) { + return null; + } + return (count(scandir($path)) == 2); + } + + /** + * Size of the directory recursively in bytes + * + * @param string $path The full path to a system directory + * + * @return int Returns the size of the directory in bytes + */ + public static function getDirectorySize($path) + { + if (!file_exists($path)) { + return 0; + } + if (is_file($path)) { + return filesize($path); + } + + $size = 0; + $list = glob($path . "/*"); + if (!empty($list)) { + foreach ($list as $file) { + $size += self::getDirectorySize($file); + } + } + return $size; + } + + /** + * Can shell_exec be called on this server + * + * @return bool Returns true if shell_exec can be called on server + */ + public static function hasShellExec() + { + $cmds = array('shell_exec', 'escapeshellarg', 'escapeshellcmd', 'extension_loaded'); + + //Function disabled at server level + if (array_intersect($cmds, array_map('trim', explode(',', @ini_get('disable_functions'))))) { + return apply_filters('duplicator_is_shellzip_available', false); + } + + //Suhosin: http://www.hardened-php.net/suhosin/ + //Will cause PHP to silently fail + if (extension_loaded('suhosin')) { + $suhosin_ini = @ini_get("suhosin.executor.func.blacklist"); + if (array_intersect($cmds, array_map('trim', explode(',', $suhosin_ini)))) { + return apply_filters('duplicator_is_shellzip_available', false); + } + } + + if (! function_exists('shell_exec')) { + return apply_filters('duplicator_is_shellzip_available', false); + } + + // Can we issue a simple echo command? + if (!@shell_exec('echo duplicator')) { + return apply_filters('duplicator_is_shellzip_available', false); + } + + return apply_filters('duplicator_is_shellzip_available', true); + } + + /** + * Is the server running Windows operating system + * + * @return bool Returns true if operating system is Windows + */ + public static function isWindows() + { + if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') { + return true; + } + return false; + } + + /** + * Wrap to prevent malware scanners from reporting false/positive + * Switched from our old method to avoid WordFence reporting a false positive + * + * @param string $string The string to decrypt i.e. base64_decode + * + * @return string Returns the string base64 decoded + */ + public static function installerUnscramble($string) + { + return base64_decode($string); + } + + /** + * Wrap to prevent malware scanners from reporting false/positive + * Switched from our old method to avoid WordFence reporting a false positive + * + * @param string $string The string to decrypt i.e. base64_encode + * + * @return string Returns the string base64 encode + */ + public static function installerScramble($string) + { + return base64_encode($string); + } + const SECURE_ISSUE_DIE = 'die'; + const SECURE_ISSUE_THROW = 'throw'; + const SECURE_ISSUE_RETURN = 'return'; + + /** + * Does the current user have the capability + * + * @param type $permission + * @param type $exit // SECURE_ISSUE_DIE die script with die function + * SECURE_ISSUE_THROW throw an exception if fail + * SECURE_ISSUE_RETURN return false if fail + * + * @return boolean // return false is fail and $exit is SECURE_ISSUE_THROW + * // true if success + * + * @throws Exception // thow exception if $exit is SECURE_ISSUE_THROW + */ + public static function hasCapability($permission = 'read', $exit = self::SECURE_ISSUE_DIE) + { + $capability = apply_filters('wpfront_user_role_editor_duplicator_translate_capability', $permission); + + if (!current_user_can($capability)) { + $exitMsg = __('You do not have sufficient permissions to access this page.', 'duplicator'); + DUP_LOG::Trace('You do not have sufficient permissions to access this page. PERMISSION: ' . $permission); + + switch ($exit) { + case self::SECURE_ISSUE_THROW: + throw new Exception($exitMsg); + case self::SECURE_ISSUE_RETURN: + return false; + case self::SECURE_ISSUE_DIE: + default: + wp_die($exitMsg); + } + } + return true; + } + + /** + * Gets the name of the owner of the current PHP script + * + * @return string The name of the owner of the current PHP script + */ + public static function getCurrentUser() + { + $unreadable = 'Undetectable'; + if (function_exists('get_current_user') && is_callable('get_current_user')) { + $user = get_current_user(); + return strlen($user) ? $user : $unreadable; + } + return $unreadable; + } + + /** + * Gets the owner of the PHP process + * + * @return string Gets the owner of the PHP process + */ + public static function getProcessOwner() + { + $unreadable = 'Undetectable'; + $user = ''; + try { + if (function_exists('exec')) { + $user = @exec('whoami'); + } + + if (!strlen($user) && function_exists('posix_getpwuid') && function_exists('posix_geteuid')) { + $user = posix_getpwuid(posix_geteuid()); + $user = $user['name']; + } + + return strlen($user) ? $user : $unreadable; + } catch (Exception $ex) { + return $unreadable; + } + } + + /** + * Creates the snapshot directory if it doesn't already exist + * + * @return bool + */ + public static function initSnapshotDirectory() + { + $error = false; + + $path_wproot = duplicator_get_abs_path(); + $path_ssdir = DUP_Settings::getSsdirPath(); + + if (!file_exists($path_ssdir)) { + $old_root_perm = @fileperms($path_wproot); + + //-------------------------------- + //CHMOD DIRECTORY ACCESS + //wordpress root directory + SnapIO::chmod($path_wproot, 'u+rwx'); + + //snapshot directory + if (SnapIO::dirWriteCheckOrMkdir($path_ssdir, 'u+rwx,go+rx') == false) { + $error = true; + } + + // restore original root perms + SnapIO::chmod($path_wproot, $old_root_perm); + + if ($error) { + return false; + } + } + + SnapIO::chmod($path_ssdir, 'u+rwx,go+rx'); + SnapIO::dirWriteCheckOrMkdir(DUP_Settings::getSsdirTmpPath(), 'u+rwx'); + + //-------------------------------- + //FILE CREATION & HARDEN PROCESS + //index.php, .htaccess, robots.txt + self::setupBackupDirIndexFile(); + self::setupBackupDirRobotsFile(); + self::setupBackupDirHtaccess(); + self::performHardenProcesses(); + + return true; + } + + /** + * Attempts to create a secure .htaccess file in the download directory + * + * @return void + */ + protected static function setupBackupDirHtaccess() + { + try { + $storageHtaccessOff = DUP_Settings::Get('storage_htaccess_off'); + $fileName = DUP_Settings::getSsdirPath() . '/.htaccess'; + + if ($storageHtaccessOff) { + @unlink($fileName); + } elseif (!file_exists($fileName)) { + $fileContent = <<
" + . " " . esc_html($txt_home) . "
" + . " " . esc_html($txt_guide) . "
" + . " " . esc_html($txt_faq) . "
" + . " " . esc_html($txt_sets) . "Settings > Storage > Apache .htaccess + +Options -Indexes + + deny from all + ++ +HTACCESS; + if (file_put_contents($fileName, $fileContent) === false) { + throw new Exception('Can\'t create .haccess'); + } + } + } catch (Exception $ex) { + DUP_Log::Trace("Unable create file htaccess {$fileName} msg:" . $ex->getMessage()); + } + } + + /** + * Attempts to create an index.php file in the backups directory + * + * @return void + */ + protected static function setupBackupDirIndexFile() + { + try { + $fileName = DUP_Settings::getSsdirPath() . '/index.php'; + if (!file_exists($fileName)) { + $fileContent = <<+ ForceType application/octet-stream + Header set Content-Disposition attachment + +getMessage()); + } + } + + /** + * Attempts to create a robots.txt file in the backups directory + * to prevent search engines + * + * @return void + */ + protected static function setupBackupDirRobotsFile() + { + try { + $fileName = DUP_Settings::getSsdirPath() . '/robots.txt'; + if (!file_exists($fileName)) { + $fileContent = << getMessage()); + } + } + + + /** + * Run various secure processes to harden the backups dir + * + * @return void + */ + public static function performHardenProcesses() + { + $backupsDir = DUP_Settings::getSsdirPath(); + + //Edge Case: Remove any main.installer.php files + $dupInstallFile = "{$backupsDir}/dup-installer/main.installer.php"; + if (file_exists($dupInstallFile)) { + SnapIO::chmod($dupInstallFile, "a+w"); + SnapIO::unlink("{$dupInstallFile}"); + } + + //Rename installer php files to .bak + SnapIO::regexGlobCallback( + $backupsDir, + function ($path) { + $parts = pathinfo($path); + $newPath = $parts['dirname'] . '/' . $parts['filename'] . DUP_Installer::INSTALLER_SERVER_EXTENSION; + SnapIO::rename($path, $newPath); + }, + array( + 'regexFile' => '/^.+_installer.*\.php$/', + 'regexFolder' => false, + 'recursive' => true, + ) + ); + } + + /** + * Attempts to get the file zip path on a users system + * + * @return null + */ + public static function getZipPath() + { + $filepath = null; + + if (self::hasShellExec()) { + if (shell_exec('hash zip 2>&1') == null) { + $filepath = 'zip'; + } else { + $possible_paths = array( + '/usr/bin/zip', + '/opt/local/bin/zip' + //'C:/Program\ Files\ (x86)/GnuWin32/bin/zip.exe'); + ); + + foreach ($possible_paths as $path) { + if (@file_exists($path)) { + $filepath = $path; + break; + } + } + } + } + + return $filepath; + } + + /** + * Is the server PHP 5.3 or better + * + * @return bool Returns true if the server PHP 5.3 or better + */ + public static function PHP53() + { + return version_compare(PHP_VERSION, '5.3.2', '>='); + } + + /** + * Returns an array of the WordPress core tables. + * + * @return array Returns all WP core tables + */ + public static function getWPCoreTables() + { + global $wpdb; + $result = array(); + foreach (self::getWPCoreTablesEnd() as $tend) { + $result[] = $wpdb->prefix . $tend; + } + return $result; + } + + public static function getWPCoreTablesEnd() + { + return array( + 'commentmeta', + 'comments', + 'links', + 'options', + 'postmeta', + 'posts', + 'term_relationships', + 'term_taxonomy', + 'termmeta', + 'terms', + 'usermeta', + 'blogs', + 'blog_versions', + 'blogmeta', + 'users', + 'site', + 'sitemeta', + 'signups', + 'registration_log', + 'blog_versions'); + } + + public static function isWPCoreTable($table) + { + global $wpdb; + + if (strpos($table, $wpdb->prefix) !== 0) { + return false; + } + + $subTName = substr($table, strlen($wpdb->prefix)); + $coreEnds = self::getWPCoreTablesEnd(); + + if (in_array($subTName, $coreEnds)) { + return true; + } elseif (is_multisite()) { + $exTable = explode('_', $subTName); + if (count($exTable) >= 2 && is_numeric($exTable[0])) { + $tChekc = implode('_', array_slice($exTable, 1)); + if (get_blog_details((int) $exTable[0], false) !== false && in_array($tChekc, $coreEnds)) { + return true; + } + } + } + + return false; + } + + public static function getWPBlogIdTable($table) + { + global $wpdb; + + if (!is_multisite() || strpos($table, $wpdb->prefix) !== 0) { + return 0; + } + + $subTName = substr($table, strlen($wpdb->prefix)); + $exTable = explode('_', $subTName); + if (count($exTable) >= 2 && is_numeric($exTable[0]) && get_blog_details((int) $exTable[0], false) !== false) { + return (int) $exTable[0]; + } else { + return 0; + } + } + + /** + * Check given table is exist in real + * + * @param $table string Table name + * + * @return bool + */ + public static function isTableExists($table) + { + // It will clear the $GLOBALS['wpdb']->last_error var + $GLOBALS['wpdb']->flush(); + $sql = "SELECT 1 FROM `" . esc_sql($table) . "` LIMIT 1;"; + $ret = $GLOBALS['wpdb']->get_var($sql); + if (empty($GLOBALS['wpdb']->last_error)) { + return true; + } + return false; + } + + /** + * Finds if its a valid executable or not + * + * @param string $cmd $exe A non zero length executable path to find if that is executable or not. + * + * @return boolean + */ + public static function isExecutable($cmd) + { + if (strlen($cmd) < 1) { + return false; + } + + if (@is_executable($cmd)) { + return true; + } + + $output = shell_exec($cmd); + if (!is_null($output)) { + return true; + } + + $output = shell_exec($cmd . ' -?'); + if (!is_null($output)) { + return true; + } + + return false; + } + + /** + * Display human readable byte sizes + * + * @param string $size The size in bytes + * + * @return string Human readable bytes such as 50MB, 1GB + */ + public static function readableByteSize($size) + { + try { + $units = array('B', 'KB', 'MB', 'GB', 'TB'); + for ($i = 0; $size >= 1024 && $i < 4; $i++) { + $size /= 1024; + } + return round($size, 2) . $units[$i]; + } catch (Exception $e) { + return "n/a"; + } + } + + public static function getTablePrefix() + { + global $wpdb; + $tablePrefix = (is_multisite() && is_plugin_active_for_network('duplicator/duplicator.php')) ? $wpdb->base_prefix : $wpdb->prefix; + return $tablePrefix; + } + + /** + * return ini disable functions array + * + * @return array + */ + public static function getIniDisableFuncs() + { + if (is_null(self::$iniDisableFuncs)) { + $tmpFuncs = ini_get('disable_functions'); + $tmpFuncs = explode(',', $tmpFuncs); + self::$iniDisableFuncs = array(); + foreach ($tmpFuncs as $cFunc) { + self::$iniDisableFuncs[] = trim($cFunc); + } + } + + return self::$iniDisableFuncs; + } + + /** + * Check if function exists and isn't in ini disable_functions + * + * @param string $function_name + * + * @return bool + */ + public static function isIniFunctionEnalbe($function_name) + { + return function_exists($function_name) && !in_array($function_name, self::getIniDisableFuncs()); + } +} diff --git a/classes/utilities/class.u.scancheck.php b/classes/utilities/class.u.scancheck.php new file mode 100644 index 00000000..d3ca6c7a --- /dev/null +++ b/classes/utilities/class.u.scancheck.php @@ -0,0 +1,169 @@ +isWindows = defined('PHP_WINDOWS_VERSION_BUILD'); + } + + /** + * Start the scan process + * + * @param string $dir A valid directory path where the scan will run + * @param array $results Used for recursion, do not pass in value with calling + * + * @return obj The scan check object with the results of the scan + */ + public function run($dir, &$results = array()) + { + //Stop Recursion if Max search is reached + if ($this->fileCount > $this->maxFiles || $this->dirCount > $this->maxDirs) { + $this->limitReached = true; + return $results; + } + + $files = @scandir($dir); + if (is_array($files)) { + foreach ($files as $key => $value) { + $path = realpath($dir . DIRECTORY_SEPARATOR . $value); + if ($path) { + //Files + if (!is_dir($path)) { + if (!is_readable($path)) { + $results[] = $path; + $this->unreadable[] = $path; + } elseif ($this->isLink($path)) { + $results[] = $path; + $this->symLinks[] = $path; + } else { + $name = basename($path); + $invalid_test = preg_match('/(\/|\*|\?|\>|\<|\:|\\|\|)/', $name) + || trim($name) == '' + || (strrpos($name, '.') == strlen($name) - 1 && substr($name, -1) == '.') + || preg_match('/[^\x20-\x7f]/', $name); + if ($invalid_test) { + if (! DUP_Util::$PHP7_plus && DUP_Util::isWindows()) { + $this->nameTestFiles[] = utf8_decode($path); + } else { + $this->nameTestFiles[] = $path; + } + } + } + $this->fileCount++; + } elseif ($value != "." && $value != "..") { + //Dirs + if (!$this->isLink($path) && $this->recursion) { + $this->Run($path, $results); + } + + if (!is_readable($path)) { + $results[] = $path; + $this->unreadable[] = $path; + } elseif ($this->isLink($path)) { + $results[] = $path; + $this->symLinks[] = $path; + } else { + $invalid_test = strlen($path) > 244 + || trim($path) == '' + || preg_match('/[^\x20-\x7f]/', $path); + if ($invalid_test) { + if (! DUP_Util::$PHP7_plus && DUP_Util::isWindows()) { + $this->nameTestDirs[] = utf8_decode($path); + } else { + $this->nameTestDirs[] = $path; + } + } + } + + $this->dirCount++; + } + } + } + } + return $this; + } + + /** + * Separation logic for supporting how different operating systems work + * + * @param string $target A valid file path + * + * @return bool Is the target a sym link + */ + private function isLink($target) + { + //Currently Windows does not support sym-link detection + if ($this->isWindows) { + return false; + } elseif (is_link($target)) { + return true; + } + return false; + } +} diff --git a/classes/utilities/class.u.shell.php b/classes/utilities/class.u.shell.php new file mode 100644 index 00000000..abc22eb7 --- /dev/null +++ b/classes/utilities/class.u.shell.php @@ -0,0 +1,48 @@ + '/^([a-zA-Z]:[\\\\\/]|\/|\\\\\\\\|\/\/)[^<>\0]+$/', + 'ffile' => '/^([a-zA-Z]:[\\\\\/]|\/|\\\\\\\\|\/\/)[^<>\0]+$/', + 'fext' => '/^\.?[^\\\\\/*:<>\0?"|\s\.]+$/', + 'email' => '/^[a-zA-Z0-9.!#$%&\'*+\/=?^_\`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/', + 'empty' => '/^$/', + 'nempty' => '/^.+$/', + ); + const FILTER_VALIDATE_IS_EMPTY = 'empty'; + const FILTER_VALIDATE_NOT_EMPTY = 'nempty'; + const FILTER_VALIDATE_FILE = 'ffile'; + const FILTER_VALIDATE_FOLDER = 'fdir'; + const FILTER_VALIDATE_FILE_EXT = 'fext'; + const FILTER_VALIDATE_EMAIL = 'email'; + /** + * @var array $errors [ ['key' => string field key, + * 'msg' => error message ] , [] ] + */ + private $errors = array(); + + /** + * Class constructor + */ + public function __construct() + { + $this->errors = array(); + } + + /** + * Reset + * + * @return void + */ + public function reset() + { + $this->errors = array(); + } + + /** + * + * @return bool + */ + public function isSuccess() + { + return empty($this->errors); + } + + /** + * + * @return array + */ + public function getErrors() + { + return $this->errors; + } + + /** + * + * @return array return errors messages + */ + public function getErrorsMsg() + { + $result = array(); + foreach ($this->errors as $err) { + $result[] = $err['msg']; + } + return $result; + } + + /** + * + * @param string $format printf format message where %s is the variable content default "%s\n" + * @param bool $echo if false return string + * + * @return string + */ + public function getErrorsFormat($format = "%s\n", $echo = true) + { + $msgs = $this->getErrorsMsg(); + ob_start(); + foreach ($msgs as $msg) { + printf($format, $msg); + } + + if ($echo) { + ob_end_flush(); + return ''; + } else { + return ob_get_clean(); + } + } + + /** + * + * @param string $key + * @param string $msg + */ + protected function addError($key, $msg) + { + $this->errors[] = array( + 'key' => $key, + 'msg' => $msg + ); + } + + /** + * filter_var function wrapper see http://php.net/manual/en/function.filter-var.php + * + * additional options + * valkey => key of field + * errmsg => error message; % s will be replaced with the contents of the variable es. "%s isn't a valid field" + * acc_vals => array of accepted values that skip validation + * + * @param mixed $variable + * @param int $filter + * @param array $options + * + * @return mixed + */ + public function filter_var($variable, $filter = FILTER_DEFAULT, $options = array()) + { + $success = true; + $result = null; + if (isset($options['acc_vals']) && in_array($variable, $options['acc_vals'])) { + return $variable; + } + + if ($filter === FILTER_VALIDATE_BOOLEAN) { + $options['flags'] = FILTER_NULL_ON_FAILURE; + $result = filter_var($variable, $filter, $options); + if (is_null($result)) { + $success = false; + } + } else { + $result = filter_var($variable, $filter, $options); + if ($result === false) { + $success = false; + } + } + + if (!$success) { + $key = isset($options['valkey']) ? $options['valkey'] : ''; + if (isset($options['errmsg'])) { + $msg = sprintf($options['errmsg'], $variable); + } else { + $msg = sprintf('%1$s isn\'t a valid value', $variable); + } + + $this->addError($key, $msg); + } + + return $result; + } + + /** + * validation of predefined regular expressions + * + * @param mixed $variable + * @param string $filter + * @param array $options + * + * @return string + */ + public function filter_custom($variable, $filter, $options = array()) + { + + if (!isset(self::$patterns[$filter])) { + throw new Exception('Filter not valid'); + } + + $options = array_merge($options, array( + 'options' => array( + 'regexp' => self::$patterns[$filter]) + )); +//$options['regexp'] = self::$patterns[$filter]; + + return $this->filter_var($variable, FILTER_VALIDATE_REGEXP, $options); + } + + /** + * it explodes a string with a delimiter and validates every element of the array + * + * @param string $variable + * @param string $delimiter + * @param string $filter + * @param array $options + */ + public function explode_filter_custom($variable, $delimiter, $filter, $options = array()) + { + if (empty($variable)) { + return array(); + } + + $vals = explode($delimiter, trim($variable, $delimiter)); + $res = array(); + foreach ($vals as $val) { + $res[] = $this->filter_custom($val, $filter, $options); + } + + return $res; + } +} diff --git a/classes/utilities/class.u.zip.php b/classes/utilities/class.u.zip.php new file mode 100644 index 00000000..20416642 --- /dev/null +++ b/classes/utilities/class.u.zip.php @@ -0,0 +1,161 @@ +&1"; + $stderr = shell_exec($command); + if ($stderr != '') { + $errorMessage = __("Error extracting {$archiveFilepath}): {$stderr}", 'duplicator'); + throw new Exception($errorMessage); + } + } else { + $zipArchive = new ZipArchive(); + $result = $zipArchive->open($archiveFilepath); + if ($result !== true) { + throw new Exception("Error opening {$archiveFilepath} when extracting."); + } + + $result = $zipArchive->extractTo($destinationDirectory, $relativeFilesToExtract); + if ($result === false) { + throw new Exception("Error extracting {$archiveFilepath}."); + } + } + } + + /** + * Add a directory to an existing ZipArchive object + * + * @param string $sourceFilePath The file to add to the zip file + * @param string $zipFilePath The zip file to be added to + * @param bool $deleteOld Delete the zip file before adding a file + * @param string $newName Rename the $sourceFile if needed + * + * @return bool Returns true if the file was added to the zip file + */ + public static function zipFile($sourceFilePath, $zipFilePath, $deleteOld, $newName, $isCompressed) + { + if ($deleteOld && file_exists($zipFilePath)) { + SnapIO::unlink($zipFilePath); + } + + if (file_exists($sourceFilePath)) { + $zip_archive = new ZipArchive(); + $is_zip_open = ($zip_archive->open($zipFilePath, ZIPARCHIVE::CREATE) === true); + if ($is_zip_open === false) { + DUP_Log::error("Cannot create zip archive {$zipFilePath}"); + } else { + //ADD SQL + if ($newName == null) { + $source_filename = basename($sourceFilePath); + DUP_Log::Info("adding {$source_filename}"); + } else { + $source_filename = $newName; + DUP_Log::Info("new name added {$newName}"); + } + + $in_zip = DUP_Zip_U::addFileToZipArchive($zip_archive, $sourceFilePath, $source_filename, $isCompressed); + if ($in_zip === false) { + DUP_Log::error("Unable to add {$sourceFilePath} to $zipFilePath"); + } + + $zip_archive->close(); + return true; + } + } else { + DUP_Log::error("Trying to add {$sourceFilePath} to a zip but it doesn't exist!"); + } + + return false; + } + + public static function addFileToZipArchive($zipArchive, $filepath, $localName, $isCompressed) + { + $added = $zipArchive->addFile($filepath, $localName); + return $added; + } +} diff --git a/classes/utility.php b/classes/utility.php deleted file mode 100644 index ccc838f4..00000000 --- a/classes/utility.php +++ /dev/null @@ -1,385 +0,0 @@ - 0 && $lines >= 0) { - // Figure out how far back we should jump - $seek = min(ftell($f), $buffer); - // Do the jump (backwards, relative to where we are) - fseek($f, -$seek, SEEK_CUR); - // Read a chunk and prepend it to our output - $output = ($chunk = fread($f, $seek)) . $output; - // Jump back to where we started reading - fseek($f, -mb_strlen($chunk, '8bit'), SEEK_CUR); - // Decrease our line counter - $lines -= substr_count($chunk, "\n"); - } - - // While we have too many lines - // (Because of buffer size we might have read too many) - while ($lines++ < 0) { - // Find first newline and remove all text before that - $output = substr($output, strpos($output, "\n") + 1); - } - fclose($f); - return trim($output); - } - - - - /** - * Runs the APC cache to pre-cache the php files - * returns true if all files where cached - */ - static public function RunAPC() { - if(function_exists('apc_compile_file')){ - $file01 = @apc_compile_file(DUPLICATOR_PLUGIN_PATH . "duplicator.php"); - return ($file01); - } else { - return false; - } - } - - /** - * Display human readable byte sizes - * @param string $size The size in bytes - */ - static public function ByteSize($size) { - try { - $units = array('B', 'KB', 'MB', 'GB', 'TB'); - for ($i = 0; $size >= 1024 && $i < 4; $i++) - $size /= 1024; - return round($size, 2) . $units[$i]; - } catch (Exception $e) { - return "n/a"; - } - } - - /** - * Makes path safe for any OS - * Paths should ALWAYS READ be "/" - * uni: /home/path/file.xt - * win: D:/home/path/file.txt - * @param string $path The path to make safe - */ - static public function SafePath($path) { - return str_replace("\\", "/", $path); - } - - /** - * Get current microtime as a float. Can be used for simple profiling. - */ - static public function GetMicrotime() { - return microtime(true); - } - - /** - * Append the value to the string if it doesn't already exist - */ - static public function StringAppend($string, $value ) { - return $string . (substr($string, -1) == $value ? '' : $value); - } - - /** - * Return a string with the elapsed time. - * Order of $end and $start can be switched. - */ - static public function ElapsedTime($end, $start) { - return sprintf("%.2f sec.", abs($end - $start)); - } - - /** - * Get the MySQL system variables - * @param conn $dbh Database connection handle - * @return string the server variable to query for - */ - static public function MysqlVariableValue($variable) { - global $wpdb; - $row = $wpdb->get_row("SHOW VARIABLES LIKE '{$variable}'", ARRAY_N); - return isset($row[1]) ? $row[1] : null; - } - - /** - * List all of the files of a path - * @path path to a system directory - * @return array of all files in that path - */ - static public function ListFiles($path = '.') { - $files = array(); - - //GLOB_BRACE is not an option on some systems - //{,.}* allows for hidden files to be shown - /*if (defined("GLOB_BRACE")) { - $files = glob("{$path}/{,.}*", GLOB_NOSORT | GLOB_BRACE); - } else {*/ - foreach (new DirectoryIterator($path) as $file) { - $files[] = str_replace("\\", '/', $file->getPathname()); - } - //} - return $files; - } - - /** - * List all of the directories of a path - * @path path to a system directory - * @return array of all directories in that path - */ - static public function ListDirs($path = '.') { - $dirs = array(); - - foreach (new DirectoryIterator($path) as $file) { - if ($file->isDir() && !$file->isDot()) { - $dirs[] = DUP_Util::SafePath($file->getPathname()); - } - } - return $dirs; - } - - /** - * Does the directory have content - */ - static public function IsDirectoryEmpty($dir) { - if (!is_readable($dir)) return NULL; - return (count(scandir($dir)) == 2); - } - - /** - * Size of the directory recuresivly in bytes - */ - static public function GetDirectorySize($dir) { - if(!file_exists($dir)) - return 0; - if(is_file($dir)) - return filesize($dir); - - $size = 0; - $list = glob($dir."/*"); - if (! empty($list)) { - foreach($list as $file) - $size += self::GetDirectorySize($file); - } - return $size; - } - - - public static function IsShellExecAvailable() { - - if (array_intersect(array('shell_exec', 'escapeshellarg', 'escapeshellcmd', 'extension_loaded'), array_map('trim', explode(',', @ini_get('disable_functions'))))) - return false; - - //Suhosin: http://www.hardened-php.net/suhosin/ - //Will cause PHP to silently fail. - if (extension_loaded('suhosin')) - return false; - - // Can we issue a simple echo command? - if (!@shell_exec('echo duplicator')) - return false; - - return true; - } - - public static function IsOSWindows() { - if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') { - return true; - } - return false; - } - - public static function CheckPermissions($permission = 'read') { - $capability = $permission; - $capability = apply_filters('wpfront_user_role_editor_duplicator_translate_capability', $capability); - - if(!current_user_can($capability)) { - wp_die(__('You do not have sufficient permissions to access this page.', 'wpduplicator')); - return; - } - } - - /** - * Creates the snapshot directory if it doesn't already exisit - */ - public static function GetCurrentUser() { - $unreadable = 'Undetectable'; - if (function_exists('get_current_user') && is_callable('get_current_user')) { - $user = get_current_user(); - return strlen($user) ? $user : $unreadable; - } - return $unreadable; - } - - /** - * Gets the owner of the PHP process - */ - public static function GetProcessOwner() { - $unreadable = 'Undetectable'; - $user = ''; - try { - if (function_exists('exec')) { - $user = exec('whoami'); - } - - if (! strlen($user) && function_exists('posix_getpwuid') && function_exists('posix_geteuid')) { - $user = posix_getpwuid(posix_geteuid()); - $user = $user['name']; - } - - return strlen($user) ? $user : $unreadable; - - } catch (Exception $ex) { - return $unreadable; - } - } - - /** - * Creates the snapshot directory if it doesn't already exisit - */ - public static function InitSnapshotDirectory() { - $path_wproot = DUP_Util::SafePath(DUPLICATOR_WPROOTPATH); - $path_ssdir = DUP_Util::SafePath(DUPLICATOR_SSDIR_PATH); - $path_plugin = DUP_Util::SafePath(DUPLICATOR_PLUGIN_PATH); - - //-------------------------------- - //CHMOD DIRECTORY ACCESS - //wordpress root directory - @chmod($path_wproot, 0755); - - //snapshot directory - @mkdir($path_ssdir, 0755); - @chmod($path_ssdir, 0755); - - //snapshot tmp directory - $path_ssdir_tmp = $path_ssdir . '/tmp'; - @mkdir($path_ssdir_tmp, 0755); - @chmod($path_ssdir_tmp, 0755); - - //plugins dir/files - @chmod($path_plugin . 'files', 0755); - - //-------------------------------- - //FILE CREATION - //SSDIR: Create Index File - $ssfile = @fopen($path_ssdir . '/index.php', 'w'); - @fwrite($ssfile, ''); - @fclose($ssfile); - - //SSDIR: Create token file in snapshot - $tokenfile = @fopen($path_ssdir . '/dtoken.php', 'w'); - @fwrite($tokenfile, ''); - @fclose($tokenfile); - - //SSDIR: Create .htaccess - $storage_htaccess_off = DUP_Settings::Get('storage_htaccess_off'); - if ($storage_htaccess_off) { - @unlink($path_ssdir . '/.htaccess'); - } else { - $htfile = @fopen($path_ssdir . '/.htaccess', 'w'); - $htoutput = "Options -Indexes" ; - @fwrite($htfile, $htoutput); - @fclose($htfile); - } - - //SSDIR: Robots.txt file - $robotfile = @fopen($path_ssdir . '/robots.txt', 'w'); - @fwrite($robotfile, "User-agent: * \nDisallow: /" . DUPLICATOR_SSDIR_NAME . '/'); - @fclose($robotfile); - - //PLUG DIR: Create token file in plugin - $tokenfile2 = @fopen($path_plugin . 'installer/dtoken.php', 'w'); - @fwrite($tokenfile2, 'set_404(); header("HTTP/1.1 404 Not Found", true, 404); header("Status: 404 Not Found"); @include(get_template_directory () . "/404.php"); ?>'); - @fclose($tokenfile2); - } - - /** - * Attempts to file zip on a users system - */ - public static function GetZipPath() - { - $filepath = null; - - if(self::IsShellExecAvailable()) - { - if (shell_exec('hash zip 2>&1') == NULL) - { - $filepath = 'zip'; - } - else - { - $possible_paths = array( - '/usr/bin/zip', - '/opt/local/bin/zip' - //'C:/Program\ Files\ (x86)/GnuWin32/bin/zip.exe'); - ); - - foreach ($possible_paths as $path) - { - if (file_exists($path)) - { - $filepath = $path; - break; - } - } - } - } - - return $filepath; - } - - -} -?> \ No newline at end of file diff --git a/ctrls/class.web.services.php b/ctrls/class.web.services.php new file mode 100644 index 00000000..4c21bbe2 --- /dev/null +++ b/ctrls/class.web.services.php @@ -0,0 +1,239 @@ +delete(); + } + + /** + * reset all ajax action + * + * the output must be json + */ + public static function ajax_reset_all() + { + ob_start(); + try { + DUP_Handler::init_error_handler(); + + if (!check_ajax_referer('duplicator_reset_all_settings', 'nonce', false)) { + DUP_LOG::Trace('Security issue'); + throw new Exception('Security issue'); + } + DUP_Util::hasCapability('export', DUP_Util::SECURE_ISSUE_THROW); + + /* Execute function * */ + $error = false; + $result = array( + 'data' => array(), + 'html' => '', + 'message' => '' + ); + + DUP_Package::by_status_callback(array(__CLASS__, 'package_delete_callback'), array( + array('op' => '<', 'status' => DUP_PackageStatus::COMPLETE) + )); + + /* reset active package id * */ + DUP_Settings::Set('active_package_id', -1); + DUP_Settings::Save(); + + /* Clean tmp folder * */ + DUP_Package::not_active_files_tmp_cleanup(); + + //throw new Exception('force error test'); + } catch (Exception $e) { + $error = true; + $result['message'] = $e->getMessage(); + } + + /* Intercept output * */ + $result['html'] = ob_get_clean(); + + /* check error and return json * */ + if ($error) { + wp_send_json_error($result); + } else { + wp_send_json_success($result); + } + } + + public static function duplicator_download_installer() + { + check_ajax_referer('duplicator_download_installer', 'nonce'); + + $isValid = true; + $inputData = filter_input_array(INPUT_GET, array( + 'id' => array( + 'filter' => FILTER_VALIDATE_INT, + 'flags' => FILTER_REQUIRE_SCALAR, + 'options' => array( + 'default' => false + ) + ), + 'hash' => array( + 'filter' => FILTER_UNSAFE_RAW, + 'flags' => FILTER_REQUIRE_SCALAR, + 'options' => array( + 'default' => false + ) + ) + )); + + $packageId = $inputData['id']; + $hash = $inputData['hash']; + + if (!$packageId || !$hash) { + $isValid = false; + } + + try { + DUP_Util::hasCapability('export', DUP_Util::SECURE_ISSUE_THROW); + + if (!$isValid) { + throw new Exception(__('Invalid request.', 'duplicator')); + } + + if (($package = DUP_Package::getByID($packageId)) == null) { + throw new Exception(__('Invalid request.', 'duplicator')); + } + + if ($hash !== $package->Hash) { + throw new Exception(__('Invalid request.', 'duplicator')); + } + + $fileName = $package->getInstDownloadName(); + $realFileName = $package->Installer->File; + $backupDir = DUP_Settings::getSsdirPath(); + + if (DUP_STR::endsWith($realFileName, '.php')) { + $realFileName = basename($realFileName, '.php') . DUP_Installer::INSTALLER_SERVER_EXTENSION; + } + $filepath = "{$backupDir}/{$realFileName}"; + + // Process download + if (!file_exists($filepath)) { + throw new Exception(__('INVALID REQUEST: File not found, please check the backup folder for file.', 'duplicator')); + } + + // Clean output buffer + if (ob_get_level() !== 0 && @ob_end_clean() === false) { + @ob_clean(); + } + + header('Content-Description: File Transfer'); + header('Content-Type: application/octet-stream'); + header('Content-Disposition: attachment; filename="' . $fileName . '"'); + header('Expires: 0'); + header('Cache-Control: must-revalidate'); + header('Pragma: public'); + header('Content-Length: ' . filesize($filepath)); + flush(); // Flush system output buffer + + try { + $fp = @fopen($filepath, 'r'); + if (false === $fp) { + throw new Exception('Fail to open the file ' . $filepath); + } + while (!feof($fp) && ($data = fread($fp, DUPLICATOR_BUFFER_READ_WRITE_SIZE)) !== false) { + echo $data; + } + @fclose($fp); + } catch (Exception $e) { + readfile($filepath); + } + exit; + } catch (Exception $ex) { + //Prevent brute force + sleep(2); + wp_die($ex->getMessage()); + } + } + + public static function set_admin_notice_viewed() + { + DUP_Handler::init_error_handler(); + + try { + DUP_Util::hasCapability('export', DUP_Util::SECURE_ISSUE_THROW); + + if (!wp_verify_nonce($_REQUEST['nonce'], 'duplicator_set_admin_notice_viewed')) { + DUP_Log::trace(__('Security issue', 'duplicator')); + throw new Exception('Security issue'); + } + + $notice_id = SnapUtil::filterInputRequest('notice_id', FILTER_UNSAFE_RAW); + + if (empty($notice_id)) { + throw new Exception(__('Invalid Request', 'duplicator')); + } + + $notices = get_user_meta(get_current_user_id(), DUPLICATOR_ADMIN_NOTICES_USER_META_KEY, true); + if (empty($notices)) { + $notices = array(); + } + + if (!isset($notices[$notice_id])) { + throw new Exception(__("Notice with that ID doesn't exist.", 'duplicator')); + } + + $notices[$notice_id] = 'true'; + update_user_meta(get_current_user_id(), DUPLICATOR_ADMIN_NOTICES_USER_META_KEY, $notices); + } catch (Exception $ex) { + wp_die($ex->getMessage()); + } + } + + public static function admin_notice_to_dismiss() + { + try { + DUP_Util::hasCapability('export', DUP_Util::SECURE_ISSUE_THROW); + + $nonce = filter_input(INPUT_POST, 'nonce', FILTER_UNSAFE_RAW); + if (!wp_verify_nonce($nonce, 'duplicator_admin_notice_to_dismiss')) { + DUP_Log::trace('Security issue'); + throw new Exception('Security issue'); + } + + $noticeToDismiss = filter_input(INPUT_POST, 'notice', FILTER_UNSAFE_RAW); + switch ($noticeToDismiss) { + case AdminNotices::OPTION_KEY_ACTIVATE_PLUGINS_AFTER_INSTALL: + case AdminNotices::OPTION_KEY_NEW_NOTICE_TEMPLATE: + delete_option($noticeToDismiss); + break; + case AdminNotices::OPTION_KEY_IS_ENABLE_NOTICE_DISMISSED: + case AdminNotices::OPTION_KEY_IS_MU_NOTICE_DISMISSED: + update_option($noticeToDismiss, true); + break; + default: + throw new Exception('Notice invalid'); + } + } catch (Exception $e) { + wp_send_json_error($e->getMessage()); + } + + wp_send_json_success(); + } +} diff --git a/ctrls/ctrl.base.php b/ctrls/ctrl.base.php new file mode 100644 index 00000000..f3ccbebb --- /dev/null +++ b/ctrls/ctrl.base.php @@ -0,0 +1,152 @@ +returnType = $type; + } +} + +/** + * A class structer used to report on controller methods + * + * @package Duplicator + * @subpackage classes/ctrls + */ +class DUP_CTRL_Report +{ + //Properties + public $runTime; + public $returnType; + public $results; + public $status; +} + +/** + * A class used format all controller responses in a consistent format. Every controller response will + * have a Report and Payload structer. The Payload is an array of the result response. The Report is used + * report on the overall status of the controller method + * + * Standard: PSR-2 + * + * @link http://www.php-fig.org/psr/psr-2 + * + * @package Duplicator + * @subpackage classes/ctrls + * @copyright (c) 2017, Snapcreek LLC + */ +class DUP_CTRL_Result +{ + //Properties + public $report; + public $payload; + private $timeStart; + private $timeEnd; + private $CTRL; + + public function __construct(DUP_CTRL_Base $CTRL_OBJ) + { + DUP_Util::hasCapability('export'); + $this->timeStart = $this->microtimeFloat(); + $this->CTRL = $CTRL_OBJ; + //Report Data + $this->report = new DUP_CTRL_Report(); + $this->report->returnType = $CTRL_OBJ->returnType; + } + + /** + * Used to process a controller request + * + * @param object $payload The response object that will be returned + * @param enum $test The status of a response + * + * @return object || JSON Returns a PHP object or json encoded object + */ + public function process($payload, $test = DUP_CTRL_Status::UNDEFINED) + { + if (is_array($this->payload)) { + $this->payload[] = $payload; + $this->report->results = count($this->payload); + } else { + $this->payload = $payload; + $this->report->results = (is_array($payload)) ? count($payload) : 1; + } + + $this->report->status = $test; + $this->getProcessTime(); + switch ($this->CTRL->returnType) { + case 'JSON': + return SnapJson::jsonEncode($this); + break; + case 'PHP': + return $this; + break; + default: + wp_send_json($this); + break; + } + } + + /** + * Used to process an error response + * + * @param object $exception The PHP exception object + * + * @return object || JSON Returns a PHP object or json encoded object + */ + public function processError($exception) + { + $payload = array(); + $payload['Message'] = $exception->getMessage(); + $payload['File'] = $exception->getFile(); + $payload['Line'] = $exception->getLine(); + $payload['Trace'] = $exception->getTraceAsString(); + $this->process($payload, DUP_CTRL_Status::ERROR); + die(SnapJson::jsonEncode($this)); + } + + private function getProcessTime() + { + $this->timeEnd = $this->microtimeFloat(); + $this->report->runTime = $this->timeEnd - $this->timeStart; + } + + private function microtimeFloat() + { + list($usec, $sec) = explode(" ", microtime()); + return ((float) $usec + (float) $sec); + } +} diff --git a/ctrls/ctrl.package.php b/ctrls/ctrl.package.php new file mode 100644 index 00000000..923bd665 --- /dev/null +++ b/ctrls/ctrl.package.php @@ -0,0 +1,433 @@ +runScanner(); + $package->saveActiveItem('ScanFile', $package->ScanFile); + $package->Archive->saveActiveItem($package, 'dirsCount', $package->Archive->dirsCount); + $package->Archive->saveActiveItem($package, 'filesCount', $package->Archive->filesCount); + $json_response = DUP_JSON::safeEncode($report); + DUP_Package::tempFileCleanup(); + error_reporting($errLevel); + die($json_response); +} + +/** + * duplicator_package_build + * Returns the package result status + * + * @return json JSON object of package results + */ +function duplicator_package_build() +{ + DUP_Handler::init_error_handler(); + check_ajax_referer('duplicator_package_build', 'nonce'); + header('Content-Type: application/json'); + $Package = null; + try { + DUP_Util::hasCapability('export', DUP_Util::SECURE_ISSUE_THROW); + @set_time_limit(0); + $errLevel = error_reporting(); + error_reporting(E_ERROR); + DUP_Util::initSnapshotDirectory(); + $Package = DUP_Package::getActive(); + $Package->save('zip'); + DUP_Settings::Set('active_package_id', $Package->ID); + DUP_Settings::Save(); + if (!is_readable(DUP_Settings::getSsdirTmpPath() . "/{$Package->ScanFile}")) { + die("The scan result file was not found. Please run the scan step before building the package."); + } + + $Package->runZipBuild(); + //JSON:Debug Response + //Pass = 1, Warn = 2, Fail = 3 + $json = array(); + $json['status'] = 1; + $json['error'] = ''; + $json['package'] = $Package; + $json['instDownloadName'] = $Package->getInstDownloadName(); + $json['runtime'] = $Package->Runtime; + $json['exeSize'] = $Package->ExeSize; + $json['archiveSize'] = $Package->ZipSize; + //Simulate a Host Build Interrupt + //die(0); + } catch (Exception $e) { + $Package->setStatus(DUP_PackageStatus::ERROR); + //JSON:Debug Response + //Pass = 1, Warn = 2, Fail = 3 + $json = array(); + $json['status'] = 3; + $json['error'] = $e->getMessage() . "\n" . "FILE: " . $e->getFile() . "[" . $e->getLine() . "]\n" . $e->getTraceAsString(); + $json['package'] = $Package; + $json['instDownloadName'] = null; + $json['runtime'] = null; + $json['exeSize'] = null; + $json['archiveSize'] = null; + } + $json_response = SnapJson::jsonEncode($json); + error_reporting($errLevel); + die($json_response); +} + +/** + * Returns the package result status + * + * @return json JSON object of package results + */ +function duplicator_duparchive_package_build() +{ + DUP_Handler::init_error_handler(); + DUP_Log::Info('[CTRL DUP ARCIVE] CALL TO ' . __FUNCTION__); + check_ajax_referer('duplicator_duparchive_package_build', 'nonce'); + DUP_Util::hasCapability('export'); + header('Content-Type: application/json'); + @set_time_limit(0); + $errLevel = error_reporting(); + error_reporting(E_ERROR); +// The DupArchive build process always works on a saved package so the first time through save the active package to the package table. + // After that, just retrieve it. + $active_package_id = DUP_Settings::Get('active_package_id'); + DUP_Log::Info('[CTRL DUP ARCIVE] CURRENT PACKAGE ACTIVE ' . $active_package_id); + if ($active_package_id == -1) { + $package = DUP_Package::getActive(); + $package->save('daf'); + DUP_Log::Info('[CTRL DUP ARCIVE] PACKAGE AS NEW ID ' . $package->ID . ' SAVED | STATUS:' . $package->Status); + //DUP_Log::TraceObject("[CTRL DUP ARCIVE] PACKAGE SAVED:", $package); + DUP_Settings::Set('active_package_id', $package->ID); + DUP_Settings::Save(); + } else { + if (($package = DUP_Package::getByID($active_package_id)) == null) { + DUP_Log::Info('[CTRL DUP ARCIVE] ERROR: Get package by id ' . $active_package_id . ' FAILED'); + die('Get package by id ' . $active_package_id . ' FAILED'); + } + DUP_Log::Info('[CTRL DUP ARCIVE] PACKAGE GET BY ID ' . $active_package_id . ' | STATUS:' . $package->Status); + // DUP_Log::TraceObject("getting active package by id {$active_package_id}", $package); + } + + if (!is_readable(DUP_Settings::getSsdirTmpPath() . "/{$package->ScanFile}")) { + DUP_Log::Info('[CTRL DUP ARCIVE] ERROR: The scan result file was not found. Please run the scan step before building the package.'); + die("The scan result file was not found. Please run the scan step before building the package."); + } + + if ($package === null) { + DUP_Log::Info('[CTRL DUP ARCIVE] There is no active package.'); + die("There is no active package."); + } + + if ($package->Status == DUP_PackageStatus::ERROR) { + $package->setStatus(DUP_PackageStatus::ERROR); + $hasCompleted = true; + } else { + try { + $hasCompleted = $package->runDupArchiveBuild(); + } catch (Exception $ex) { + DUP_Log::Info('[CTRL DUP ARCIVE] ERROR: caught exception'); + Dup_Log::error('[CTRL DUP ARCIVE] Caught exception', $ex->getMessage(), Dup_ErrorBehavior::LogOnly); + DUP_Log::Info('[CTRL DUP ARCIVE] ERROR: after log'); + $package->setStatus(DUP_PackageStatus::ERROR); + $hasCompleted = true; + } + } + + $json = array(); + $json['failures'] = array_merge($package->BuildProgress->build_failures, $package->BuildProgress->validation_failures); + if (!empty($json['failures'])) { + DUP_Log::Info('[CTRL DUP ARCIVE] FAILURES ' . print_r($json['failures'], true)); + } + + //JSON:Debug Response + //Pass = 1, Warn = 2, 3 = Failure, 4 = Not Done + if ($hasCompleted) { + DUP_Log::Info('[CTRL DUP ARCIVE] COMPLETED PACKAGE STATUS: ' . $package->Status); + if ($package->Status == DUP_PackageStatus::ERROR) { + DUP_Log::Info('[CTRL DUP ARCIVE] ERROR'); + $error_message = __('Error building DupArchive package', 'duplicator') . '
'; + foreach ($json['failures'] as $failure) { + $error_message .= implode(',', $failure->description); + } + + Dup_Log::error("Build failed so sending back error", esc_html($error_message), Dup_ErrorBehavior::LogOnly); + DUP_Log::Info('[CTRL DUP ARCIVE] ERROR AFTER LOG 2'); + $json['status'] = 3; + } else { + Dup_Log::Info("sending back success status"); + $json['status'] = 1; + } + + Dup_Log::Trace('#### json package'); + $json['package'] = $package; + $json['instDownloadName'] = $package->getInstDownloadName(); + $json['runtime'] = $package->Runtime; + $json['exeSize'] = $package->ExeSize; + $json['archiveSize'] = $package->ZipSize; + DUP_Log::Trace('[CTRL DUP ARCIVE] JSON PACKAGE'); + } else { + DUP_Log::Info('[CTRL DUP ARCIVE] sending back continue status PACKAGE STATUS: ' . $package->Status); + $json['status'] = 4; + } + + $json_response = SnapJson::jsonEncode($json); + Dup_Log::TraceObject('json response', $json_response); + error_reporting($errLevel); + die($json_response); +} + +/** + * DUPLICATOR_PACKAGE_DELETE + * Deletes the files and database record entries + * + * @return json A JSON message about the action. + * Use console.log to debug from client + */ +function duplicator_package_delete() +{ + DUP_Handler::init_error_handler(); + check_ajax_referer('duplicator_package_delete', 'nonce'); + $json = array( + 'success' => false, + 'message' => '' + ); + $package_ids = filter_input(INPUT_POST, 'package_ids', FILTER_VALIDATE_INT, array( + 'flags' => FILTER_REQUIRE_ARRAY, + 'options' => array( + 'default' => false + ) + )); + $delCount = 0; + try { + DUP_Util::hasCapability('export', DUP_Util::SECURE_ISSUE_THROW); + if ($package_ids === false || in_array(false, $package_ids)) { + throw new Exception('Invalid Request.', 'duplicator'); + } + + foreach ($package_ids as $id) { + $package = DUP_Package::getByID($id); + if ($package === null) { + throw new Exception('Invalid Request.', 'duplicator'); + } + + $package->delete(); + $delCount++; + } + + $json['success'] = true; + $json['ids'] = $package_ids; + $json['removed'] = $delCount; + } catch (Exception $ex) { + $json['message'] = $ex->getMessage(); + } + + die(SnapJson::jsonEncode($json)); +} + +/** + * Active package info + * Returns a JSON scan report active package info or + * active_package_present == false if no active package is present. + * + * @return json + */ +function duplicator_active_package_info() +{ + ob_start(); + try { + DUP_Handler::init_error_handler(); + DUP_Util::hasCapability('export', DUP_Util::SECURE_ISSUE_THROW); + if (!check_ajax_referer('duplicator_active_package_info', 'nonce', false)) { + throw new Exception(__('An unauthorized security request was made to this page. Please try again!', 'duplicator')); + } + + global $wpdb; + $error = false; + $result = array( + 'active_package' => array( + 'present' => false, + 'status' => 0, + 'size' => 0 + ), + 'html' => '', + 'message' => '' + ); + $result['active_package']['present'] = DUP_Package::isPackageRunning(); + if ($result['active_package']['present']) { + $id = DUP_Settings::Get('active_package_id'); + $package = DUP_Package::getByID($id); + if (is_null($package)) { + throw new Exception(__('Active package object error', 'duplicator')); + } + $result['active_package']['status'] = $package->Status; + $result['active_package']['size'] = $package->getArchiveSize(); + $result['active_package']['size_format'] = DUP_Util::byteSize($package->getArchiveSize()); + } + } catch (Exception $e) { + $error = true; + $result['message'] = $e->getMessage(); + } + + $result['html'] = ob_get_clean(); + if ($error) { + wp_send_json_error($result); + } else { + wp_send_json_success($result); + } +} + +/** + * Controller for Tools + * + * @package Duplicator\ctrls + */ +class DUP_CTRL_Package extends DUP_CTRL_Base +{ + /** + * Init this instance of the object + */ + public function __construct() + { + add_action('wp_ajax_DUP_CTRL_Package_addQuickFilters', array($this, 'addQuickFilters')); + add_action('wp_ajax_DUP_CTRL_Package_getPackageFile', array($this, 'getPackageFile')); + add_action('wp_ajax_DUP_CTRL_Package_getActivePackageStatus', array($this, 'getActivePackageStatus')); + } + + /** + * Removed all reserved installer files names + * + * @param string $_POST['dir_paths'] A semi-colon separated list of directory paths + * + * @return string Returns all of the active directory filters as a ";" separated string + */ + public function addQuickFilters() + { + DUP_Handler::init_error_handler(); + check_ajax_referer('DUP_CTRL_Package_addQuickFilters', 'nonce'); + $result = new DUP_CTRL_Result($this); + $inputData = filter_input_array(INPUT_POST, array( + 'dir_paths' => array( + 'filter' => FILTER_DEFAULT, + 'flags' => FILTER_REQUIRE_SCALAR, + 'options' => array( + 'default' => '' + ) + ), + 'file_paths' => array( + 'filter' => FILTER_DEFAULT, + 'flags' => FILTER_REQUIRE_SCALAR, + 'options' => array( + 'default' => '' + ) + ), + )); + try { + DUP_Util::hasCapability('export', DUP_Util::SECURE_ISSUE_THROW); + //CONTROLLER LOGIC + $package = DUP_Package::getActive(); + //DIRS + $dir_filters = ($package->Archive->FilterOn && strlen($package->Archive->FilterDirs) > 0) + ? $package->Archive->FilterDirs . ';' . $inputData['dir_paths'] : $inputData['dir_paths']; + $dir_filters = $package->Archive->parseDirectoryFilter($dir_filters); + $changed = $package->Archive->saveActiveItem($package, 'FilterDirs', $dir_filters); + //FILES + $file_filters = ($package->Archive->FilterOn && strlen($package->Archive->FilterFiles) > 0) + ? $package->Archive->FilterFiles . ';' . $inputData['file_paths'] : $inputData['file_paths']; + $file_filters = $package->Archive->parseFileFilter($file_filters); + $changed = $package->Archive->saveActiveItem($package, 'FilterFiles', $file_filters); + if (!$package->Archive->FilterOn && !empty($package->Archive->FilterExts)) { + $changed = $package->Archive->saveActiveItem($package, 'FilterExts', ''); + } + + $changed = $package->Archive->saveActiveItem($package, 'FilterOn', 1); + //Result + $package = DUP_Package::getActive(); + $payload['dirs-in'] = esc_html(sanitize_text_field($inputData['dir_paths'])); + $payload['dir-out'] = esc_html($package->Archive->FilterDirs); + $payload['files-in'] = esc_html(sanitize_text_field($inputData['file_paths'])); + $payload['files-out'] = esc_html($package->Archive->FilterFiles); + //RETURN RESULT + $test = ($changed) ? DUP_CTRL_Status::SUCCESS : DUP_CTRL_Status::FAILED; + $result->process($payload, $test); + } catch (Exception $exc) { + $result->processError($exc); + } + } + + /** + * Get active package status + * + *+ * //JavaScript Ajax Request + * Duplicator.Package.getActivePackageStatus() + *
+ */ + public function getActivePackageStatus() + { + DUP_Handler::init_error_handler(); + check_ajax_referer('DUP_CTRL_Package_getActivePackageStatus', 'nonce'); + $result = new DUP_CTRL_Result($this); + try { + DUP_Util::hasCapability('export', DUP_Util::SECURE_ISSUE_THROW); + //CONTROLLER LOGIC + $active_package_id = DUP_Settings::Get('active_package_id'); + $package = DUP_Package::getByID($active_package_id); + $payload = array(); + if ($package != null) { + $test = DUP_CTRL_Status::SUCCESS; + $payload['status'] = $package->Status; + } else { + $test = DUP_CTRL_Status::FAILED; + } + + //RETURN RESULT + return $result->process($payload, $test); + } catch (Exception $exc) { + $result->processError($exc); + } + } +} diff --git a/ctrls/ctrl.tools.php b/ctrls/ctrl.tools.php new file mode 100644 index 00000000..5d1c8d0b --- /dev/null +++ b/ctrls/ctrl.tools.php @@ -0,0 +1,184 @@ + 'installer', + '_wpnonce' => wp_create_nonce('duplicator_cleanup_page') + ), + $relative + ); + } + + /** + * Calls the ScanValidator and returns a JSON result + * + * @notes: Testing = /wp-admin/admin-ajax.php?action=DUP_CTRL_Tools_runScanValidator + */ + public function runScanValidator() + { + DUP_Handler::init_error_handler(); + check_ajax_referer('DUP_CTRL_Tools_runScanValidator', 'nonce'); + @set_time_limit(0); + $isValid = true; + $inputData = filter_input_array(INPUT_POST, array( + 'recursive_scan' => array( + 'filter' => FILTER_VALIDATE_BOOLEAN, + 'flags' => FILTER_NULL_ON_FAILURE + ) + )); + if (is_null($inputData['recursive_scan'])) { + $isValid = false; + } + + $result = new DUP_CTRL_Result($this); + try { + DUP_Util::hasCapability('export', DUP_Util::SECURE_ISSUE_THROW); + if (!$isValid) { + throw new Exception(__('Invalid Request.', 'duplicator')); + } + //CONTROLLER LOGIC + $path = duplicator_get_abs_path(); + if (!is_dir($path)) { + throw new Exception("Invalid directory provided '{$path}'!"); + } + + $scanner = new DUP_ScanCheck(); + $scanner->recursion = $inputData['recursive_scan']; + $payload = $scanner->run($path); +//RETURN RESULT + $test = ($payload->fileCount > 0) + ? DUP_CTRL_Status::SUCCESS + : DUP_CTRL_Status::FAILED; + $result->process($payload, $test); + } catch (Exception $exc) { + $result->processError($exc); + } + } + + public function getTraceLog() + { + DUP_Log::Trace("enter"); + check_ajax_referer('DUP_CTRL_Tools_getTraceLog', 'nonce'); + Dup_Util::hasCapability('export'); + $file_path = DUP_Log::GetTraceFilepath(); + $backup_path = DUP_Log::GetBackupTraceFilepath(); + $zip_path = DUP_Settings::getSsdirPath() . "/" . DUPLICATOR_ZIPPED_LOG_FILENAME; + $zipped = DUP_Zip_U::zipFile($file_path, $zip_path, true, null, true); + if ($zipped && file_exists($backup_path)) { + $zipped = DUP_Zip_U::zipFile($backup_path, $zip_path, false, null, true); + } + + header("Pragma: public"); + header("Expires: 0"); + header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); + header("Cache-Control: private", false); + header("Content-Transfer-Encoding: binary"); + $fp = fopen($zip_path, 'rb'); + if (($fp !== false) && $zipped) { + $zip_filename = basename($zip_path); + header("Content-Type: application/octet-stream"); + header("Content-Disposition: attachment; filename=\"$zip_filename\";"); + // required or large files wont work + if (ob_get_length()) { + ob_end_clean(); + } + + DUP_Log::trace("streaming $zip_path"); + if (fpassthru($fp) === false) { + DUP_Log::trace("Error with fpassthru for $zip_path"); + } + + fclose($fp); + @unlink($zip_path); + } else { + header("Content-Type: text/plain"); + header("Content-Disposition: attachment; filename=\"error.txt\";"); + if ($zipped === false) { + $message = "Couldn't create zip file."; + } else { + $message = "Couldn't open $file_path."; + } + DUP_Log::trace($message); + echo esc_html($message); + } + + exit; + } +} diff --git a/ctrls/ctrl.ui.php b/ctrls/ctrl.ui.php new file mode 100644 index 00000000..616e6158 --- /dev/null +++ b/ctrls/ctrl.ui.php @@ -0,0 +1,164 @@ + + * //JavaScript Ajax Request + * Duplicator.UI.SaveViewState('dup-pack-archive-panel', 1); + * + * //Call PHP Code + * $view_state = DUP_UI_ViewState::getValue('dup-pack-archive-panel'); + * $ui_css_archive = ($view_state == 1) ? 'display:block' : 'display:none'; + * + */ + public function SaveViewState() + { + DUP_Handler::init_error_handler(); + check_ajax_referer('DUP_CTRL_UI_SaveViewState', 'nonce'); + DUP_Util::hasCapability('export'); + + $payload = array( + 'success' => false, + 'message' => '', + 'key' => '', + 'value' => '' + ); + $isValid = true; + + $inputData = filter_input_array(INPUT_POST, array( + 'states' => array( + 'filter' => FILTER_UNSAFE_RAW, + 'flags' => FILTER_FORCE_ARRAY, + 'options' => array( + 'default' => array() + ) + ), + 'key' => array( + 'filter' => FILTER_UNSAFE_RAW, + 'options' => array( + 'default' => false + ) + ), + 'value' => array( + 'filter' => FILTER_UNSAFE_RAW, + 'options' => array( + 'default' => false + ) + ) + )); + + if (is_array($inputData) && is_array($inputData['states'])) { + foreach ($inputData['states'] as $index => $state) { + $filteredState = filter_var_array($state, array( + 'key' => array( + 'filter' => FILTER_UNSAFE_RAW, + 'options' => array( + 'default' => false + ) + ), + 'value' => array( + 'filter' => FILTER_UNSAFE_RAW, + 'options' => array( + 'default' => false + ) + ) + )); + + if ($filteredState['key'] === false && $filteredState['value']) { + $isValid = false; + break; + } + $inputData['states'][$index] = $filteredState; + } + } + + if ($inputData['key'] === false || $inputData['value'] === false) { + $isValid = false; + } + + $result = new DUP_CTRL_Result($this); + try { + if (!$isValid) { + throw new Exception(__('Invalid Request.', 'duplicator')); + } + + if (!empty($inputData['states'])) { + $view_state = DUP_UI_ViewState::getArray(); + $last_key = ''; + foreach ($inputData['states'] as $state) { + $view_state[$state['key']] = $state['value']; + $last_key = $state['key']; + } + $payload['success'] = DUP_UI_ViewState::setArray($view_state); + $payload['key'] = esc_html($last_key); + $payload['value'] = esc_html($view_state[$last_key]); + } else { + $payload['success'] = DUP_UI_ViewState::save($inputData['key'], $inputData['value']); + $payload['key'] = esc_html($inputData['key']); + $payload['value'] = esc_html($inputData['value']); + } + + //RETURN RESULT + $test = ($payload['success']) + ? DUP_CTRL_Status::SUCCESS + : DUP_CTRL_Status::FAILED; + return $result->process($payload, $test); + } catch (Exception $exc) { + $result->processError($exc); + } + } + + /** + * Returns a JSON list of all saved view state items + * + *+ * See SaveViewState() + *
+ */ + public function GetViewStateList() + { + $result = new DUP_CTRL_Result($this); + + try { + //CONTROLLER LOGIC + $payload = DUP_UI_ViewState::getArray(); + + //RETURN RESULT + $test = (is_array($payload) && count($payload)) + ? DUP_CTRL_Status::SUCCESS + : DUP_CTRL_Status::FAILED; + return $result->process($payload, $test); + } catch (Exception $exc) { + $result->processError($exc); + } + } +} diff --git a/ctrls/index.php b/ctrls/index.php new file mode 100644 index 00000000..c9199655 --- /dev/null +++ b/ctrls/index.php @@ -0,0 +1,3 @@ +' . __('Contact Support', 'duplicator') . ''; + $reasons = array( + array( + 'id' => 'NOT_WORKING', + 'text' => __("It's not working on my server.", 'duplicator'), + 'input_type' => 'textarea', + 'input_placeholder' => __("Kindly share what didn't work so we can fix it in future updates...", 'duplicator'), + 'internal_message' => $contact_support_template + ), + array( + 'id' => 'CONFUSING_TO_UNDERSTAND', + 'text' => __("It's too confusing to understand.", 'duplicator'), + 'input_type' => 'textarea', + 'input_placeholder' => __('Please tell us what is not clear so that we can improve it.', 'duplicator'), + 'internal_message' => $contact_support_template + ), + array( + 'id' => 'FOUND_A_DIFFERENT_PLUGIN', + 'text' => __('I found a different plugin that I like better.', 'duplicator'), + 'input_type' => 'textfield', + 'input_placeholder' => __("What's the plugin name?", 'duplicator') + ), + array( + 'id' => 'NOT_DO_WHAT_I_NEED', + 'text' => __("It does not do what I need.", 'duplicator'), + 'input_type' => 'textarea', + 'input_placeholder' => __('What does it need to do?', 'duplicator') + ), + array( + 'id' => 'TEMPORARY_DEACTIVATION', + 'text' => __("It's a temporary deactivation, I use the plugin all the time.", 'duplicator'), + 'input_type' => '', + 'input_placeholder' => '' + ), + array( + 'id' => 'SWITCHING_PRO_VERSION', + 'text' => sprintf( + __("I'm switching over to the %s", 'duplicator'), + '' . __('Pro version', 'duplicator') . '' + ), + 'input_type' => '', + 'input_placeholder' => '' + ), + /* + array( + 'id' => 'OTHER', + 'text' => __('Other', 'duplicator'), + 'input_type' => 'textarea', + 'input_placeholder' => __('Please tell us the reason so we can improve it.', 'duplicator') + ) + */ + ); + $reasons_list_items_html = ''; + foreach ($reasons as $reason) { + $list_item_classes = 'duplicator-modal-reason' . (!empty($reason['input_type']) ? ' has-input' : '' ); + if (!empty($reason['internal_message'])) { + $list_item_classes .= ' has-internal-message'; + $reason_internal_message = $reason['internal_message']; + } else { + $reason_internal_message = ''; + } + + $reasons_list_items_html .= '+ + '; + } + ?> + + array( + 'filter' => FILTER_UNSAFE_RAW, + 'flags' => FILTER_REQUIRE_SCALAR, + 'options' => array( + 'default' => false + ) + ), + 'plugin' => array( + 'filter' => FILTER_UNSAFE_RAW, + 'flags' => FILTER_REQUIRE_SCALAR, + 'options' => array( + 'default' => false + ) + ), + 'reason_info' => array( + 'filter' => FILTER_UNSAFE_RAW, + 'flags' => FILTER_REQUIRE_SCALAR, + 'options' => array( + 'default' => '' + ) + ) + )); + $reason_id = $inputData['reason_id']; + $basename = $inputData['plugin']; + if (!$reason_id || !$basename) { + $isValid = false; + } + + try { + if (!wp_verify_nonce($_POST['duplicator_ajax_nonce'], 'duplicator_ajax_nonce')) { + throw new Exception(__('Security issue', 'duplicator')); + } + + DUP_Util::hasCapability('export', DUP_Util::SECURE_ISSUE_THROW); + if (!$isValid) { + throw new Exception(__('Invalid Request.', 'duplicator')); + } + + $reason_info = isset($_REQUEST['reason_info']) ? stripcslashes(esc_html($_REQUEST['reason_info'])) : ''; + if (!empty($reason_info)) { + $reason_info = substr($reason_info, 0, 255); + } + + $options = array( + 'product' => $basename, + 'reason_id' => $reason_id, + 'reason_info' => $reason_info, + ); + + /* send data */ + $raw_response = wp_remote_post( + 'https://snapcreekanalytics.com/wp-content/plugins/duplicator-statistics-plugin/deactivation-feedback/', + array( + 'method' => 'POST', + 'body' => $options, + 'timeout' => 15, + // 'sslverify' => FALSE + ) + ); + if (!is_wp_error($raw_response) && 200 == wp_remote_retrieve_response_code($raw_response)) { + echo 'done'; + } else { + $error_msg = $raw_response->get_error_code() . ': ' . $raw_response->get_error_message(); + error_log($error_msg); + throw new Exception($error_msg); + } + } catch (Exception $ex) { + echo $ex->getMessage(); + } + exit; + } + +} + +add_action('wp_ajax_duplicator_submit_uninstall_reason_action', 'duplicator_submit_uninstall_reason_action'); diff --git a/define.php b/define.php index 427dab57..7cdc9351 100644 --- a/define.php +++ b/define.php @@ -1,59 +1,144 @@ - +prefix . "duplicator_packages"; - - //PRIMARY KEY must have 2 spaces before for dbDelta to work - $sql = "CREATE TABLE `{$table_name}` ( - `id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, - `name` VARCHAR(250) NOT NULL, - `hash` VARCHAR(50) NOT NULL, - `status` INT(11) NOT NULL, - `created` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00', - `owner` VARCHAR(60) NOT NULL, - `package` MEDIUMBLOB NOT NULL, - KEY `hash` (`hash`))"; - - require_once(DUPLICATOR_WPROOTPATH . 'wp-admin/includes/upgrade.php'); - @dbDelta($sql); - } - - //WordPress Options Hooks - update_option('duplicator_version_plugin', DUPLICATOR_VERSION); - - //Setup All Directories - DUP_Util::InitSnapshotDirectory(); - } - - /* UPDATE - register_activation_hook is not called when a plugin is updated - so we need to use the following function */ - function duplicator_update() { - if (DUPLICATOR_VERSION != get_option("duplicator_version_plugin")) { - duplicator_activate(); - } - load_plugin_textdomain('wpduplicator', FALSE, dirname(plugin_basename(__FILE__)) . '/lang/'); - } - - /* DEACTIVATION / UNINSTALL - * Only called when plugin is deactivated. - * For uninstall see uninstall.php */ - function duplicator_deactivate() { - //No actions needed yet - } - - /* META LINK ADDONS - Adds links to the plugins manager page */ - function duplicator_meta_links($links, $file) { - $plugin = plugin_basename(__FILE__); - // create link - if ($file == $plugin) { - $links[] = '' . __('Help', 'wpduplicator') . ''; - $links[] = '' . __('About', 'wpduplicator') . ''; - return $links; - } - return $links; - } - - //HOOKS - register_activation_hook(__FILE__, 'duplicator_activate'); - register_deactivation_hook(__FILE__, 'duplicator_deactivate'); - - //ACTIONS - add_action('plugins_loaded', 'duplicator_update'); - add_action('admin_init', 'duplicator_init'); - add_action('admin_menu', 'duplicator_menu'); - add_action('wp_ajax_duplicator_package_scan', 'duplicator_package_scan'); - add_action('wp_ajax_duplicator_package_build', 'duplicator_package_build'); - add_action('wp_ajax_duplicator_package_delete', 'duplicator_package_delete'); - add_action('wp_ajax_duplicator_package_report', 'duplicator_package_report'); - add_action('wp_ajax_DUP_UI_SaveViewStateByPost', array('DUP_UI', 'SaveViewStateByPost')); - add_action('admin_notices', array('DUP_UI', 'ShowReservedFilesNotice')); - add_action('plugins_loaded', 'duplicator_wpfront_integrate'); - - //FILTERS - add_filter('plugin_action_links', 'duplicator_manage_link', 10, 2); - add_filter('plugin_row_meta', 'duplicator_meta_links', 10, 2); - - function duplicator_wpfront_integrate() { - if (DUP_Settings::Get('wpfront_integrate')) { - do_action('wpfront_user_role_editor_duplicator_init', array('export', 'manage_options', 'read')); - } - } - - /** - * DUPLICATOR_INIT - * Init routines */ - function duplicator_init() { - /* CSS */ - wp_register_style('dup-jquery-ui', DUPLICATOR_PLUGIN_URL . 'assets/css/jquery-ui.css', null, "1.11.2"); - wp_register_style('dup-font-awesome', DUPLICATOR_PLUGIN_URL . 'assets/css/font-awesome.min.css', null, '4.1.0'); - wp_register_style('dup-plugin-style', DUPLICATOR_PLUGIN_URL . 'assets/css/style.css', null, DUPLICATOR_VERSION); - /* JS */ - wp_register_script('dup-parsley', DUPLICATOR_PLUGIN_URL . 'assets/js/parsley-standalone.min.js', array('jquery'), '1.1.18'); - } - - //PAGE VIEWS - function duplicator_get_menu() { - $current_page = isset($_REQUEST['page']) ? esc_html($_REQUEST['page']) : 'duplicator'; - switch ($current_page) { - case 'duplicator': include('views/packages/controller.php'); - break; - case 'duplicator-settings': include('views/settings/controller.php'); - break; - case 'duplicator-tools': include('views/tools/controller.php'); - break; - case 'duplicator-help': include('views/help/help.php'); - break; - case 'duplicator-about': include('views/help/about.php'); - break; - case 'duplicator-gopro': include('views/help/gopro.php'); - break; - } - } - - /** - * DUPLICATOR_MENU - * Loads the menu item into the WP tools section and queues the actions for only this plugin */ - function duplicator_menu() { - $wpfront_caps_translator = 'wpfront_user_role_editor_duplicator_translate_capability'; - - //Main Menu - $perms = 'export'; - $perms = apply_filters($wpfront_caps_translator, $perms); - $main_menu = add_menu_page('Duplicator Plugin', 'Duplicator', $perms, 'duplicator', 'duplicator_get_menu', plugins_url('duplicator/assets/img/create.png')); - - $perms = 'export'; - $perms = apply_filters($wpfront_caps_translator, $perms); - $page_packages = add_submenu_page('duplicator', __('Packages', 'wpduplicator'), __('Packages', 'wpduplicator'), $perms, 'duplicator', 'duplicator_get_menu'); - - $perms = 'manage_options'; - $perms = apply_filters($wpfront_caps_translator, $perms); - $page_settings = add_submenu_page('duplicator', __('Settings', 'wpduplicator'), __('Settings', 'wpduplicator'), $perms, 'duplicator-settings', 'duplicator_get_menu'); - - $perms = 'manage_options'; - $perms = apply_filters($wpfront_caps_translator, $perms); - $page_tools = add_submenu_page('duplicator', __('Tools', 'wpduplicator'), __('Tools', 'wpduplicator'), $perms, 'duplicator-tools', 'duplicator_get_menu'); - - $perms = 'manage_options'; - $perms = apply_filters($wpfront_caps_translator, $perms); - $page_help = add_submenu_page('duplicator', DUP_Util::__('Help'), DUP_Util::__('Help'), $perms, 'duplicator-help', 'duplicator_get_menu'); - - $perms = 'manage_options'; - $perms = apply_filters($wpfront_caps_translator, $perms); - $page_about = add_submenu_page('duplicator', DUP_Util::__('About'), DUP_Util::__('About'), $perms, 'duplicator-about', 'duplicator_get_menu'); - - $perms = 'manage_options'; - $go_pro_link = ' + ' . DUP_Util::__('Go Pro!') . ''; - $perms = apply_filters($wpfront_caps_translator, $perms); - $page_gopro = add_submenu_page('duplicator', $go_pro_link, $go_pro_link, $perms, 'duplicator-gopro', 'duplicator_get_menu'); - - //Apply Scripts - add_action('admin_print_scripts-' . $page_packages, 'duplicator_scripts'); - add_action('admin_print_scripts-' . $page_settings, 'duplicator_scripts'); - add_action('admin_print_scripts-' . $page_help, 'duplicator_scripts'); - add_action('admin_print_scripts-' . $page_tools, 'duplicator_scripts'); - add_action('admin_print_scripts-' . $page_about, 'duplicator_scripts'); - add_action('admin_print_scripts-' . $page_gopro, 'duplicator_scripts'); - - //Apply Styles - add_action('admin_print_styles-' . $page_packages, 'duplicator_styles'); - add_action('admin_print_styles-' . $page_settings, 'duplicator_styles'); - add_action('admin_print_styles-' . $page_help, 'duplicator_styles'); - add_action('admin_print_styles-' . $page_tools, 'duplicator_styles'); - add_action('admin_print_styles-' . $page_about, 'duplicator_styles'); - add_action('admin_print_styles-' . $page_gopro, 'duplicator_styles'); - } - - /** - * DUPLICATOR_SCRIPTS - * Loads the required javascript libs only for this plugin */ - function duplicator_scripts() { - wp_enqueue_script('jquery'); - wp_enqueue_script('jquery-ui-core'); - wp_enqueue_script('jquery-ui-progressbar'); - wp_enqueue_script('dup-parsley'); - } - - /** - * DUPLICATOR_STYLES - * Loads the required css links only for this plugin */ - function duplicator_styles() { - wp_enqueue_style('dup-jquery-ui'); - wp_enqueue_style('dup-font-awesome'); - wp_enqueue_style('dup-plugin-style'); - } - - /** - * DUPLICATOR_MANAGE_LINK - * Adds the manage link in the plugins list */ - function duplicator_manage_link($links, $file) { - static $this_plugin; - if (!$this_plugin) - $this_plugin = plugin_basename(__FILE__); - - if ($file == $this_plugin) { - $settings_link = '' . __("Manage", 'wpduplicator') . ''; - array_unshift($links, $settings_link); - } - return $links; - } - -} -?> +Success" : "Fail"; - $tstDB = ($dbFound) ? "Success" : "Fail"; - $html .= ""; - $html .= "Using Connection String:"; - die($html); -} - -//=============================== -//ERROR MESSAGES -//=============================== -//ERR_MAKELOG -($GLOBALS['LOG_FILE_HANDLE'] != false) or DUPX_Log::Error(ERR_MAKELOG); - -//ERR_MYSQLI_SUPPORT -function_exists('mysqli_connect') or DUPX_Log::Error(ERR_MYSQLI_SUPPORT); - -//ERR_DBCONNECT -$dbh = DupUtil::db_connect($_POST['dbhost'], $_POST['dbuser'], $_POST['dbpass'], null, $_POST['dbport']); -($dbh) or DUPX_Log::Error(ERR_DBCONNECT . mysqli_connect_error()); -if ($_POST['dbaction'] == 'empty') { - mysqli_select_db($dbh, $_POST['dbname']) or DUPX_Log::Error(sprintf(ERR_DBCREATE, $_POST['dbname'])); -} -//ERR_DBEMPTY -if ($_POST['dbaction'] == 'create' ) { - $tblcount = DupUtil::dbtable_count($dbh, $_POST['dbname']); - if ($tblcount > 0) { - DUPX_Log::Error(sprintf(ERR_DBEMPTY, $_POST['dbname'], $tblcount)); - } -} - -//ERR_ZIPMANUAL -if ($_POST['zip_manual']) { - if (!file_exists("wp-config.php") && !file_exists("database.sql")) { - DUPX_Log::Error(ERR_ZIPMANUAL); - } -} else { - //ERR_CONFIG_FOUND - (!file_exists('wp-config.php')) - or DUPX_Log::Error(ERR_CONFIG_FOUND); - //ERR_ZIPNOTFOUND - (is_readable("{$package_path}")) - or DUPX_Log::Error(ERR_ZIPNOTFOUND); -} - -DUPX_Log::Info("********************************************************************************"); -DUPX_Log::Info('DUPLICATOR INSTALL-LOG'); -DUPX_Log::Info('STEP1 START @ ' . @date('h:i:s')); -DUPX_Log::Info('NOTICE: Do NOT post to public sites or forums'); -DUPX_Log::Info("********************************************************************************"); -DUPX_Log::Info("VERSION:\t{$GLOBALS['FW_DUPLICATOR_VERSION']}"); -DUPX_Log::Info("PHP:\t\t" . phpversion() . ' | SAPI: ' . php_sapi_name()); -DUPX_Log::Info("SERVER:\t\t{$_SERVER['SERVER_SOFTWARE']}"); -DUPX_Log::Info("DOC ROOT:\t{$root_path}"); -DUPX_Log::Info("DOC ROOT 755:\t" . var_export($GLOBALS['CHOWN_ROOT_PATH'], true)); -DUPX_Log::Info("LOG FILE 644:\t" . var_export($GLOBALS['CHOWN_LOG_PATH'], true)); -DUPX_Log::Info("BUILD NAME:\t{$GLOBALS['FW_SECURE_NAME']}"); -DUPX_Log::Info("REQUEST URL:\t{$GLOBALS['URL_PATH']}"); - -$log = "--------------------------------------\n"; -$log .= "POST DATA\n"; -$log .= "--------------------------------------\n"; -$log .= print_r($POST_LOG, true); -DUPX_Log::Info($log, 2); - - -//==================================================================================================== -//UNZIP & FILE SETUP - Extract the zip file and prep files -//==================================================================================================== -$log = "\n********************************************************************************\n"; -$log .= "ARCHIVE SETUP\n"; -$log .= "********************************************************************************\n"; -$log .= "NAME:\t{$_POST['package_name']}\n"; -$log .= "SIZE:\t" . DupUtil::readable_bytesize(@filesize($_POST['package_name'])) . "\n"; -$log .= "ZIP:\t{$zip_support} (ZipArchive Support)"; -DUPX_Log::Info($log); - -$zip_start = DupUtil::get_microtime(); - -if ($_POST['zip_manual']) { - DUPX_Log::Info("\n** PACKAGE EXTRACTION IS IN MANUAL MODE ** \n"); -} else { - if ($GLOBALS['FW_PACKAGE_NAME'] != $_POST['package_name']) { - $log = "\n--------------------------------------\n"; - $log .= "WARNING: This package set may be incompatible! \nBelow is a summary of the package this installer was built with and the package used. \n"; - $log .= "To guarantee accuracy the installer and archive should match. For details see the online FAQs."; - $log .= "\nCREATED WITH:\t{$GLOBALS['FW_PACKAGE_NAME']} \nPROCESSED WITH:\t{$_POST['package_name']} \n"; - $log .= "--------------------------------------\n"; - DUPX_Log::Info($log); - } - - if (! class_exists('ZipArchive')) { - DUPX_Log::Info("ERROR: Stopping install process. Trying to extract without ZipArchive module installed. Please use the 'Manual Package extraction' mode to extract zip file."); - DUPX_Log::Error(ERR_ZIPARCHIVE); - } - - $target = $root_path; - $zip = new ZipArchive(); - if ($zip->open($_POST['package_name']) === TRUE) { - DUPX_Log::Info("EXTRACTING"); - if (! $zip->extractTo($target)) { - DUPX_Log::Error(ERR_ZIPEXTRACTION); - } - $log = print_r($zip, true); - $close_response = $zip->close(); - $log .= "COMPLETE: " . var_export($close_response, true); - DUPX_Log::Info($log); - } else { - DUPX_Log::Error(ERR_ZIPOPEN); - } - $zip = null; -} - -//=============================== -//WP-CONFIG: wp-config -//=============================== -$wpconfig = @file_get_contents('wp-config.php', true); - -$patterns = array( - "/'DB_NAME',\s*'.*?'/", - "/'DB_USER',\s*'.*?'/", - "/'DB_PASSWORD',\s*'.*?'/", - "/'DB_HOST',\s*'.*?'/"); - -$db_host = ($_POST['dbport'] == 3306) ? $_POST['dbhost'] : "{$_POST['dbhost']}:{$_POST['dbport']}"; - -$replace = array( - "'DB_NAME', " . '\'' . $_POST['dbname'] . '\'', - "'DB_USER', " . '\'' . $_POST['dbuser'] . '\'', - "'DB_PASSWORD', " . '\'' . DupUtil::preg_replacement_quote($_POST['dbpass']) . '\'', - "'DB_HOST', " . '\'' . $db_host . '\''); - -//SSL CHECKS -if ($_POST['ssl_admin']) { - if (! strstr($wpconfig, 'FORCE_SSL_ADMIN')) { - $wpconfig = $wpconfig . PHP_EOL . "define('FORCE_SSL_ADMIN', true);"; - } -} else { - array_push($patterns, "/'FORCE_SSL_ADMIN',\s*true/"); - array_push($replace, "'FORCE_SSL_ADMIN', false"); -} - -if ($_POST['ssl_login']) { - if (! strstr($wpconfig, 'FORCE_SSL_LOGIN')) { - $wpconfig = $wpconfig . PHP_EOL . "define('FORCE_SSL_LOGIN', true);"; - } -} else { - array_push($patterns, "/'FORCE_SSL_LOGIN',\s*true/"); - array_push($replace, "'FORCE_SSL_LOGIN', false"); -} - -//CACHE CHECKS -if ($_POST['cache_wp']) { - if (! strstr($wpconfig, 'WP_CACHE')) { - $wpconfig = $wpconfig . PHP_EOL . "define('WP_CACHE', true);"; - } -} else { - array_push($patterns, "/'WP_CACHE',\s*true/"); - array_push($replace, "'WP_CACHE', false"); -} -if (! $_POST['cache_path']) { - array_push($patterns, "/'WPCACHEHOME',\s*'.*?'/"); - array_push($replace, "'WPCACHEHOME', ''"); -} - -$wpconfig = preg_replace($patterns, $replace, $wpconfig); -file_put_contents('wp-config.php', $wpconfig); -$wpconfig = null; - -//CONFIG FILE RESETS -DUPX_Config::Reset(); - - -//=============================== -//DATABASE SCRIPT -//=============================== -@chmod("{$root_path}/database.sql", 0777); -$sql_file = @file_get_contents('database.sql', true); -if ($sql_file == false || strlen($sql_file) < 10) { - $sql_file = file_get_contents('installer-data.sql', true); - if ($sql_file == false || strlen($sql_file) < 10) { - DUPX_Log::Info("ERROR: Unable to read from the extracted database.sql file .\nValidate the permissions and/or group-owner rights on directory '{$root_path}'\n"); - } -} - -//Complex Subject See: http://webcollab.sourceforge.net/unicode.html -//Removes invalid space characters -if ($_POST['dbnbsp']) { - DUPX_Log::Info("ran fix non-breaking space characters\n"); - $sql_file = preg_replace('/\xC2\xA0/', ' ', $sql_file); -} - -//Write new contents to install-data.sql -@chmod($sql_result_file_path, 0777); -file_put_contents($GLOBALS['SQL_FILE_NAME'], $sql_file); - -$sql_result_file_data = explode(";\n", $sql_file); -$sql_result_file_length = count($sql_result_file_data); -$sql_result_file_path = "{$root_path}/{$GLOBALS['SQL_FILE_NAME']}"; -$sql_file = null; - -if (!is_readable($sql_result_file_path) || filesize($sql_result_file_path) == 0) { - DUPX_Log::Info("ERROR: Unable to create new sql file {$GLOBALS['SQL_FILE_NAME']}.\nValidate the permissions and/or group-owner rights on directory '{$root_path}' and file '{$GLOBALS['SQL_FILE_NAME']}'\n"); -} - -DUPX_Log::Info("\nUPDATED FILES:"); -DUPX_Log::Info("- SQL FILE: '{$sql_result_file_path}'"); -DUPX_Log::Info("- WP-CONFIG: '{$root_path}/wp-config.php'"); -$zip_end = DupUtil::get_microtime(); -DUPX_Log::Info("\nARCHIVE RUNTIME: " . DupUtil::elapsed_time($zip_end, $zip_start)); -DUPX_Log::Info("\n"); -DupUtil::fcgi_flush(); - - -//==================================================================================================== -//DATABASE ROUTINES -//==================================================================================================== - -@mysqli_query($dbh, "SET wait_timeout = {$GLOBALS['DB_MAX_TIME']}"); -@mysqli_query($dbh, "SET max_allowed_packet = {$GLOBALS['DB_MAX_PACKETS']}"); -DupUtil::mysql_set_charset($dbh, $_POST['dbcharset'], $_POST['dbcollate']); - -//Set defaults incase the variable could not be read -$dbvar_maxtime = DupUtil::mysql_variable_value($dbh, 'wait_timeout'); -$dbvar_maxpacks = DupUtil::mysql_variable_value($dbh, 'max_allowed_packet'); -$dbvar_maxtime = is_null($dbvar_maxtime) ? 300 : $dbvar_maxtime; -$dbvar_maxpacks = is_null($dbvar_maxpacks) ? 1048576 : $dbvar_maxpacks; - - -DUPX_Log::Info("{$GLOBALS['SEPERATOR1']}"); -DUPX_Log::Info('DATABASE-ROUTINES'); -DUPX_Log::Info("{$GLOBALS['SEPERATOR1']}"); -DUPX_Log::Info("--------------------------------------"); -DUPX_Log::Info("SERVER ENVIROMENT"); -DUPX_Log::Info("--------------------------------------"); -DUPX_Log::Info("MYSQL VERSION:\t" . mysqli_get_server_info($dbh)); -DUPX_Log::Info("TIMEOUT:\t{$dbvar_maxtime}"); -DUPX_Log::Info("MAXPACK:\t{$dbvar_maxpacks}"); - -//CREATE DB -switch ($_POST['dbaction']) { - case "create": - mysqli_query($dbh, "CREATE DATABASE IF NOT EXISTS `{$_POST['dbname']}`"); - mysqli_select_db($dbh, $_POST['dbname']) - or DUPX_Log::Error(sprintf(ERR_DBCONNECT_CREATE, $_POST['dbname'])); - break; - case "empty": - //DROP DB TABLES - $drop_log = "Database already empty. Ready for install."; - $sql = "SHOW TABLES FROM `{$_POST['dbname']}`"; - $found_tables = null; - if ($result = mysqli_query($dbh, $sql)) { - while ($row = mysqli_fetch_row($result)) { - $found_tables[] = $row[0]; - } - if (count($found_tables) > 0) { - foreach ($found_tables as $table_name) { - $sql = "DROP TABLE `{$_POST['dbname']}`.`{$table_name}`"; - if (!$result = mysqli_query($dbh, $sql)) { - DUPX_Log::Error(sprintf(ERR_DBTRYCLEAN, $_POST['dbname'])); - } - } - } - $drop_log = 'removed (' . count($found_tables) . ') tables'; - } - break; -} - - -//WRITE DATA -DUPX_Log::Info("--------------------------------------"); -DUPX_Log::Info("DATABASE RESULTS"); -DUPX_Log::Info("--------------------------------------"); -$profile_start = DupUtil::get_microtime(); -$fcgi_buffer_pool = 5000; -$fcgi_buffer_count = 0; -$dbquery_rows = 0; -$dbtable_rows = 1; -$dbquery_errs = 0; -$counter = 0; -@mysqli_autocommit($dbh, false); -while ($counter < $sql_result_file_length) { - - $query_strlen = strlen(trim($sql_result_file_data[$counter])); - if ($dbvar_maxpacks < $query_strlen) { - DUPX_Log::Info("**ERROR** Query size limit [length={$query_strlen}] [sql=" . substr($sql_result_file_data[$counter], 75) . "...]"); - $dbquery_errs++; - } elseif ($query_strlen > 0) { - @mysqli_free_result(@mysqli_query($dbh, ($sql_result_file_data[$counter]))); - $err = mysqli_error($dbh); - //Check to make sure the connection is alive - if (!empty($err)) { - - if (!mysqli_ping($dbh)) { - mysqli_close($dbh); - $dbh = DupUtil::db_connect($_POST['dbhost'], $_POST['dbuser'], $_POST['dbpass'], $_POST['dbname'], $_POST['dbport'] ); - } - DUPX_Log::Info("**ERROR** database error write '{$err}' - [sql=" . substr($sql_result_file_data[$counter], 0, 75) . "...]"); - $dbquery_errs++; - - //Buffer data to browser to keep connection open - } else { - if ($fcgi_buffer_count++ > $fcgi_buffer_pool) { - $fcgi_buffer_count = 0; - DupUtil::fcgi_flush(); - } - $dbquery_rows++; - } - } - $counter++; -} -@mysqli_commit($dbh); -@mysqli_autocommit($dbh, true); - -DUPX_Log::Info("ERRORS FOUND:\t{$dbquery_errs}"); -DUPX_Log::Info("DROP TABLE:\t{$drop_log}"); -DUPX_Log::Info("QUERIES RAN:\t{$dbquery_rows}\n"); - -$dbtable_count = 0; -if ($result = mysqli_query($dbh, "SHOW TABLES")) { - while ($row = mysqli_fetch_array($result, MYSQLI_NUM)) { - $table_rows = DupUtil::table_row_count($dbh, $row[0]); - $dbtable_rows += $table_rows; - DUPX_Log::Info("{$row[0]}: ({$table_rows})"); - $dbtable_count++; - } - @mysqli_free_result($result); -} - -if ($dbtable_count == 0) { - DUPX_Log::Info("NOTICE: You may have to manually run the installer-data.sql to validate data input. Also check to make sure your installer file is correct and the - table prefix '{$GLOBALS['FW_TABLEPREFIX']}' is correct for this particular version of WordPress. \n"); -} - - -//DATA CLEANUP: Perform Transient Cache Cleanup -//Remove all duplicator entries and record this one since this is a new install. -$dbdelete_count = 0; -@mysqli_query($dbh, "DELETE FROM `{$GLOBALS['FW_TABLEPREFIX']}duplicator_packages`"); -$dbdelete_count1 = @mysqli_affected_rows($dbh) or 0; -@mysqli_query($dbh, "DELETE FROM `{$GLOBALS['FW_TABLEPREFIX']}options` WHERE `option_name` LIKE ('_transient%') OR `option_name` LIKE ('_site_transient%')"); -$dbdelete_count2 = @mysqli_affected_rows($dbh) or 0; -$dbdelete_count = (abs($dbdelete_count1) + abs($dbdelete_count2)); -DUPX_Log::Info("Removed '{$dbdelete_count}' cache/transient rows"); -//Reset Duplicator Options -foreach ($GLOBALS['FW_OPTS_DELETE'] as $value) { - mysqli_query($dbh, "DELETE FROM `{$GLOBALS['FW_TABLEPREFIX']}options` WHERE `option_name` = '{$value}'"); -} - -@mysqli_close($dbh); - -$profile_end = DupUtil::get_microtime(); -DUPX_Log::Info("\nSECTION RUNTIME: " . DupUtil::elapsed_time($profile_end, $profile_start)); - -//FINAL RESULTS -$ajax1_end = DupUtil::get_microtime(); -$ajax1_sum = DupUtil::elapsed_time($ajax1_end, $ajax1_start); -DUPX_Log::Info("\n{$GLOBALS['SEPERATOR1']}"); -DUPX_Log::Info('STEP1 COMPLETE @ ' . @date('h:i:s') . " - TOTAL RUNTIME: {$ajax1_sum}"); -DUPX_Log::Info("{$GLOBALS['SEPERATOR1']}"); - -$JSON['pass'] = 1; -$JSON['table_count'] = $dbtable_count; -$JSON['table_rows'] = $dbtable_rows; -$JSON['query_errs'] = $dbquery_errs; -echo json_encode($JSON); -error_reporting($ajax1_error_level); -die(''); -?> \ No newline at end of file diff --git a/installer/build/ajax.step2.php b/installer/build/ajax.step2.php deleted file mode 100644 index ceab5157..00000000 --- a/installer/build/ajax.step2.php +++ /dev/null @@ -1,271 +0,0 @@ - 0)) - ? print_r($_POST['tables'], true) - : 'No tables selected to update'; -$log .= "--------------------------------------\n"; -$log .= "KEEP PLUGINS ACTIVE\n"; -$log .= "--------------------------------------\n"; -$log .= (isset($_POST['plugins']) && count($_POST['plugins'] > 0)) - ? print_r($_POST['plugins'], true) - : 'No plugins selected for activation'; -DUPX_Log::Info($log, 2); - -//UPDATE SETTINGS -$serial_plugin_list = (isset($_POST['plugins']) && count($_POST['plugins'] > 0)) ? @serialize($_POST['plugins']) : ''; -mysqli_query($dbh, "UPDATE `{$GLOBALS['FW_TABLEPREFIX']}options` SET option_value = '{$_POST['blogname']}' WHERE option_name = 'blogname' "); -mysqli_query($dbh, "UPDATE `{$GLOBALS['FW_TABLEPREFIX']}options` SET option_value = '{$serial_plugin_list}' WHERE option_name = 'active_plugins' "); - -$log = "--------------------------------------\n"; -$log .= "SERIALIZER ENGINE\n"; -$log .= "[*] scan every column\n"; -$log .= "[~] scan only text columns\n"; -$log .= "[^] no searchable columns\n"; -$log .= "--------------------------------------"; -DUPX_Log::Info($log); - -$url_old_json = str_replace('"', "", json_encode($_POST['url_old'])); -$url_new_json = str_replace('"', "", json_encode($_POST['url_new'])); -$path_old_json = str_replace('"', "", json_encode($_POST['path_old'])); -$path_new_json = str_replace('"', "", json_encode($_POST['path_new'])); - -array_push($GLOBALS['REPLACE_LIST'], - array('search' => $_POST['url_old'], 'replace' => $_POST['url_new']), - array('search' => $url_old_json, 'replace' => $url_new_json), - array('search' => $_POST['path_old'], 'replace' => $_POST['path_new']), - array('search' => $path_old_json, 'replace' => $path_new_json), - array('search' => rtrim(DupUtil::unset_safe_path($_POST['path_old']), '\\'), 'replace' => rtrim($_POST['path_new'], '/')) -); - -@mysqli_autocommit($dbh, false); -$report = DUPX_Serializer::load($dbh, $GLOBALS['REPLACE_LIST'], $_POST['tables'], $GLOBALS['TABLES_SKIP_COLS'], $_POST['fullsearch']); -@mysqli_commit($dbh); -@mysqli_autocommit($dbh, true); - - -//BUILD JSON RESPONSE -$JSON = array(); -$JSON['step1'] = json_decode(urldecode($_POST['json'])); -$JSON['step2'] = $report; -$JSON['step2']['warn_all'] = 0; -$JSON['step2']['warnlist'] = array(); - -DUPX_Serializer::log_stats($report); -DUPX_Serializer::log_errors($report); - -//Reset the postguid data -if ($_POST['postguid']) { - mysqli_query($dbh, "UPDATE `{$GLOBALS['FW_TABLEPREFIX']}posts` SET guid = REPLACE(guid, '{$_POST['url_new']}', '{$_POST['url_old']}')"); - $update_guid = @mysqli_affected_rows($dbh) or 0; - DUPX_Log::Info("Reverted '{$update_guid}' post guid columns back to '{$_POST['url_old']}'"); -} - -/* FINAL UPDATES: Must happen after the global replace to prevent double pathing - http://xyz.com/abc01 will become http://xyz.com/abc0101 with trailing data */ -mysqli_query($dbh, "UPDATE `{$GLOBALS['FW_TABLEPREFIX']}options` SET option_value = '{$_POST['url_new']}' WHERE option_name = 'home' "); -mysqli_query($dbh, "UPDATE `{$GLOBALS['FW_TABLEPREFIX']}options` SET option_value = '{$_POST['siteurl']}' WHERE option_name = 'siteurl' "); - - -//==================================================================================================== -//FINAL CLEANUP -//==================================================================================================== -DUPX_Log::Info("\n********************************************************************************"); -DUPX_Log::Info('START FINAL CLEANUP: ' . @date('h:i:s')); -DUPX_Log::Info("********************************************************************************"); - -/*CREATE NEW USER LOGIC */ -if (strlen($_POST['wp_username']) >= 4 && strlen($_POST['wp_password']) >= 6) { - - $newuser_check = mysqli_query($dbh, "SELECT COUNT(*) AS count FROM `{$GLOBALS['FW_TABLEPREFIX']}users` WHERE user_login = '{$_POST['wp_username']}' "); - $newuser_row = mysqli_fetch_row($newuser_check); - $newuser_count = is_null($newuser_row) ? 0 : $newuser_row[0]; - - if ($newuser_count == 0) { - - $newuser_datetime = @date("Y-m-d H:i:s"); - $newuser_security = mysqli_real_escape_string($dbh, 'a:1:{s:13:"administrator";s:1:"1";}'); - - $newuser_test1 = @mysqli_query($dbh, "INSERT INTO `{$GLOBALS['FW_TABLEPREFIX']}users` - (`user_login`, `user_pass`, `user_nicename`, `user_email`, `user_registered`, `user_activation_key`, `user_status`, `display_name`) - VALUES ('{$_POST['wp_username']}', MD5('{$_POST['wp_password']}'), '{$_POST['wp_username']}', '', '{$newuser_datetime}', '', '0', '{$_POST['wp_username']}')"); - - $newuser_insert_id = mysqli_insert_id($dbh); - - $newuser_test2 = @mysqli_query($dbh, "INSERT INTO `{$GLOBALS['FW_TABLEPREFIX']}usermeta` - (`user_id`, `meta_key`, `meta_value`) VALUES ('{$newuser_insert_id}', '{$GLOBALS['FW_TABLEPREFIX']}capabilities', '{$newuser_security}')"); - - $newuser_test3 = @mysqli_query($dbh, "INSERT INTO `{$GLOBALS['FW_TABLEPREFIX']}usermeta` - (`user_id`, `meta_key`, `meta_value`) VALUES ('{$newuser_insert_id}', '{$GLOBALS['FW_TABLEPREFIX']}user_level', '10')"); - - //Misc Meta-Data Settings: - @mysqli_query($dbh, "INSERT INTO `{$GLOBALS['FW_TABLEPREFIX']}usermeta` (`user_id`, `meta_key`, `meta_value`) VALUES ('{$newuser_insert_id}', 'rich_editing', 'true')"); - @mysqli_query($dbh, "INSERT INTO `{$GLOBALS['FW_TABLEPREFIX']}usermeta` (`user_id`, `meta_key`, `meta_value`) VALUES ('{$newuser_insert_id}', 'admin_color', 'fresh')"); - @mysqli_query($dbh, "INSERT INTO `{$GLOBALS['FW_TABLEPREFIX']}usermeta` (`user_id`, `meta_key`, `meta_value`) VALUES ('{$newuser_insert_id}', 'nickname', '{$_POST['wp_username']}')"); - - if ($newuser_test1 && $newuser_test2 && $newuser_test3) { - DUPX_Log::Info("NEW WP-ADMIN USER: New username '{$_POST['wp_username']}' was created successfully \n "); - } else { - $newuser_warnmsg = "NEW WP-ADMIN USER: Failed to create the user '{$_POST['wp_username']}' \n "; - $JSON['step2']['warnlist'][] = $newuser_warnmsg; - DUPX_Log::Info($newuser_warnmsg); - } - } - else { - $newuser_warnmsg = "NEW WP-ADMIN USER: Username '{$_POST['wp_username']}' already exists in the database. Unable to create new account \n"; - $JSON['step2']['warnlist'][] = $newuser_warnmsg; - DUPX_Log::Info($newuser_warnmsg); - } -} - -/*MU Updates*/ -$mu_newDomain = parse_url($_POST['url_new']); -$mu_oldDomain = parse_url($_POST['url_old']); -$mu_newDomainHost = $mu_newDomain['host']; -$mu_oldDomainHost = $mu_oldDomain['host']; -$mu_updates = @mysqli_query($dbh, "UPDATE `{$GLOBALS['FW_TABLEPREFIX']}blogs` SET domain = '{$mu_newDomainHost}' WHERE domain = '{$mu_oldDomainHost}'"); -if ($mu_updates) { - DUPX_Log::Info("Update MU table blogs: domain {$mu_newDomainHost} "); -} else { - DUPX_Log::Info("UPDATE `{$GLOBALS['FW_TABLEPREFIX']}blogs` SET domain = '{$mu_newDomainHost}' WHERE domain = '{$mu_oldDomainHost}'"); -} - - -/*UPDATE WP-CONFIG FILE */ -$patterns = array("/'WP_HOME',\s*'.*?'/", - "/'WP_SITEURL',\s*'.*?'/", - "/'DOMAIN_CURRENT_SITE',\s*'.*?'/"); - -$replace = array("'WP_HOME', " . '\'' . $_POST['url_new'] . '\'', - "'WP_SITEURL', " . '\'' . $_POST['url_new'] . '\'', - "'DOMAIN_CURRENT_SITE', " . '\'' . $mu_newDomainHost . '\''); - -$config_file = @file_get_contents('wp-config.php', true); -$config_file = preg_replace($patterns, $replace, $config_file); -file_put_contents('wp-config.php', $config_file); - - -//Create Snapshots directory -if (!file_exists(DUPLICATOR_SSDIR_NAME)) { - mkdir(DUPLICATOR_SSDIR_NAME, 0755); -} -$fp = fopen(DUPLICATOR_SSDIR_NAME . '/index.php', 'w'); -fclose($fp); - - -//=============================== -//WARNING TESTS -//=============================== -DUPX_Log::Info("\n--------------------------------------"); -DUPX_Log::Info("WARNINGS"); -DUPX_Log::Info("--------------------------------------"); -$config_vars = array('WP_CONTENT_DIR', 'WP_CONTENT_URL', 'WPCACHEHOME', 'COOKIE_DOMAIN', 'WP_SITEURL', 'WP_HOME', 'WP_TEMP_DIR'); -$config_found = DupUtil::string_has_value($config_vars, $config_file); - -//Files -if ($config_found) { - $msg = 'WP-CONFIG WARNING: The wp-config.php has one or more of these values "' . implode(", ", $config_vars) . '" which may cause issues please validate these values by opening the file.'; - $JSON['step2']['warnlist'][] = $msg; - DUPX_Log::Info($msg); -} - -//Database -$result = @mysqli_query($dbh, "SELECT option_value FROM `{$GLOBALS['FW_TABLEPREFIX']}options` WHERE option_name IN ('upload_url_path','upload_path')"); -if ($result) { - while ($row = mysqli_fetch_row($result)) { - if (strlen($row[0])) { - $msg = "MEDIA SETTINGS WARNING: The table '{$GLOBALS['FW_TABLEPREFIX']}options' has at least one the following values ['upload_url_path','upload_path'] set please validate settings. These settings can be changed in the wp-admin by going to Settings->Media area see 'Uploading Files'"; - $JSON['step2']['warnlist'][] = $msg; - DUPX_Log::Info($msg); - break; - } - } -} - -if (empty($JSON['step2']['warnlist'])) { - DUPX_Log::Info("No Warnings Found\n"); -} - -$JSON['step2']['warn_all'] = empty($JSON['step2']['warnlist']) ? 0 : count($JSON['step2']['warnlist']); - -mysqli_close($dbh); -@unlink('database.sql'); - -//CONFIG Setup -DUPX_Config::Setup(); - -$ajax2_end = DupUtil::get_microtime(); -$ajax2_sum = DupUtil::elapsed_time($ajax2_end, $ajax2_start); -DUPX_Log::Info("********************************************************************************"); -DUPX_Log::Info('STEP 2 COMPLETE @ ' . @date('h:i:s') . " - TOTAL RUNTIME: {$ajax2_sum}"); -DUPX_Log::Info("********************************************************************************"); - -$JSON['step2']['pass'] = 1; -error_reporting($ajax2_error_level); -die(json_encode($JSON)); -?> \ No newline at end of file diff --git a/installer/build/assets/inc.css.php b/installer/build/assets/inc.css.php deleted file mode 100644 index 656c65f0..00000000 --- a/installer/build/assets/inc.css.php +++ /dev/null @@ -1,165 +0,0 @@ - - \ No newline at end of file diff --git a/installer/build/assets/inc.js.php b/installer/build/assets/inc.js.php deleted file mode 100644 index e1c76e79..00000000 --- a/installer/build/assets/inc.js.php +++ /dev/null @@ -1,66 +0,0 @@ - - - diff --git a/installer/build/assets/inc.libs.css.php b/installer/build/assets/inc.libs.css.php deleted file mode 100644 index 6cf483f1..00000000 --- a/installer/build/assets/inc.libs.css.php +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/installer/build/assets/inc.libs.js.php b/installer/build/assets/inc.libs.js.php deleted file mode 100644 index 5ef3f823..00000000 --- a/installer/build/assets/inc.libs.js.php +++ /dev/null @@ -1,210 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/installer/build/classes/class.config.php b/installer/build/classes/class.config.php deleted file mode 100644 index 760ffdfc..00000000 --- a/installer/build/classes/class.config.php +++ /dev/null @@ -1,76 +0,0 @@ - -RewriteEngine On -RewriteBase {$newpath} -RewriteRule ^index\.php$ - [L] -RewriteCond %{REQUEST_FILENAME} !-f -RewriteCond %{REQUEST_FILENAME} !-d -RewriteRule . {$newpath}index.php [L] - -# END WordPress -HTACCESS; - - file_put_contents('.htaccess', $tmp_htaccess); - @chmod('.htaccess', 0644); - DUPX_Log::Info("created basic .htaccess file. If using IIS web.config this process will need to be done manually."); - - } - - -} -?> diff --git a/installer/build/classes/class.logging.php b/installer/build/classes/class.logging.php deleted file mode 100644 index f9281c8c..00000000 --- a/installer/build/classes/class.logging.php +++ /dev/null @@ -1,52 +0,0 @@ -
Host={$_POST['dbhost']}; Database={$_POST['dbname']}; Uid={$_POST['dbuser']}; Pwd={$_POST['dbpass']}; {$port_view}"; - $html .= " {$tstSrv}
"; - $html .= " {$tstDB}
"; - - - if ($_POST['dbaction'] == 'create'){ - $tblcount = DupUtil::dbtable_count($dbConn, $_POST['dbname']); - $html .= ($tblcount > 0) - ? "WARNING
" . sprintf(ERR_DBEMPTY, $_POST['dbname'], $tblcount) - : ""; - } - $html .= "Empty this root directory except for the package and installer and try again. Delete just the wp-config.php file and try again. This will over-write all other files in the directory. '); -define('ERR_ZIPNOTFOUND', 'The packaged zip file was not found. Be sure the zip package is in the same directory as the installer file. If you are trying to reinstall a package you can copy the package from the "' . DUPLICATOR_SSDIR_NAME . '" directory back up to your root which is the same location as your installer.php file.'); -define('ERR_ZIPOPEN', 'Failed to open zip archive file. Please be sure the archive is completely downloaded before running the installer. Try to extract the archive manually to make sure the file is not corrupted.'); -define('ERR_ZIPEXTRACTION', 'Errors extracting zip file. Portions or part of the zip archive did not extract correctly. Try to extract the archive manually with a client side program like unzip/win-zip/winrar to make sure the file is not corrupted. If the file extracts correctly then there is an invalid file or directory that PHP is unable to extract. This can happen if your moving from one operating system to another where certain naming conventions work on one environment and not another.
Workarounds:
1. Create a new package and be sure to exclude any directories that have invalid names or files in them. This warning will be displayed on the scan results under "Invalid Names".
2. Manually extract the zip file with a client side program. Then under advanced options in step 1 of the installer check the "Manual package extraction" option and perform the install.'); -define('ERR_ZIPMANUAL', 'When choosing manual package extraction, the contents of the package must already be extracted and the wp-config.php and database.sql files must be present in the same directory as the installer.php for the process to continue. Please manually extract the package into the current directory before continuing in manual extraction mode. Also validate that the wp-config.php and database.sql files are present.'); -define('ERR_MAKELOG', 'PHP is having issues writing to the log file ' . DupUtil::set_safe_path($GLOBALS['CURRENT_ROOT_PATH']) . '\installer-log.txt . In order for the Duplicator to proceed validate your owner/group and permission settings for PHP on this path. Try temporarily setting you permissions to 777 to see if the issue gets resolved. If you are on a shared hosting environment please contact your hosting company and tell them you are getting errors writing files to the path above when using PHP.'); -define('ERR_ZIPARCHIVE', 'In order to extract the archive.zip file the PHP ZipArchive module must be installed. Please read the FAQ for more details. You can still install this package but you will need to check the Manual package extraction checkbox found in the Advanced Options. Please read the online user guide for details in performing a manual package extraction.'); -define('ERR_MYSQLI_SUPPORT', 'In order to complete an install the mysqli extension for PHP is required. If you are on a hosted server please contact your host and request that mysqli be enabled. For more information visit: http://php.net/manual/en/mysqli.installation.php'); -define('ERR_DBCONNECT', 'DATABASE CONNECTION FAILED!
'); -define('ERR_DBCONNECT_CREATE', 'DATABASE CREATION FAILURE!
Unable to create database "%s". Check to make sure the user has "Create" privileges. Some hosts will restrict creation of a database only through the cpanel. Try creating the database manually to proceed with installation. If the database already exists then check the radio button labeled "Connect and Remove All Data" which will remove all existing tables.'); -define('ERR_DBTRYCLEAN', 'DATABASE CREATION FAILURE!
Unable to remove all tables from database "%s".
Please remove all tables from this database and try the installation again.'); -define('ERR_DBCREATE', 'The database "%s" does not exists.
Change mode to create in order to create a new database.'); -define('ERR_DBEMPTY', 'The database "%s" has "%s" tables. The Duplicator only works with an EMPTY database. Enable the action "Connect and Remove All Data" radio button to remove all tables and or create a new database. Some hosting providers do not allow table removal from scripts. In this case you will need to login to your hosting providers control panel and remove the tables manually. Please contact your hosting provider for further details. Always backup all your data before proceeding!'); - -/** * ***************************************************** - * DUPX_Log - * Class used to log information */ - -class DUPX_Log { - - /** METHOD: LOG - * Used to write debug info to the text log file - * @param string $msg Any text data - * @param int $loglevel Log level - */ - static public function Info($msg, $logging = 1) { - if ($logging <= $GLOBALS["LOGGING"]) { - @fwrite($GLOBALS["LOG_FILE_HANDLE"], "{$msg}\n"); - } - } - - static public function Error($errorMessage) { - if ($logging <= $GLOBALS["LOGGING"]) { - $breaks = array("
","
","
"); - $msg = str_ireplace($breaks, "\r\n", $errorMessage); - @fwrite($GLOBALS["LOG_FILE_HANDLE"], "\nINSTALLER ERROR:\n{$msg}\n"); - @fclose($GLOBALS["LOG_FILE_HANDLE"]); - } - die("INSTALL ERROR!
{$errorMessage}
"); - } -} -?> diff --git a/installer/build/classes/class.serializer.php b/installer/build/classes/class.serializer.php deleted file mode 100644 index 08813f23..00000000 --- a/installer/build/classes/class.serializer.php +++ /dev/null @@ -1,372 +0,0 @@ - 0) { - while ($row = mysqli_fetch_assoc($result)) { - $fields[] = $row['Field']; - } - } - - //Return Primary which is needed for index lookup - $result = mysqli_query($conn, "SHOW INDEX FROM `{$table}` WHERE KEY_NAME LIKE '%PRIMARY%'"); - if (mysqli_num_rows($result) > 0) { - while ($row = mysqli_fetch_assoc($result)) { - $fields[] = $row['Column_name']; - } - } - - return (count($fields) > 0) ? $fields : null; - } - - /** - * LOAD - * Begins the processing for replace logic - * @param mysql $conn The db connection object - * @param array $list Key value pair of 'search' and 'replace' arrays - * @param array $tables The tables we want to look at. - * @return array Collection of information gathered during the run. - */ - static public function load($conn, $list = array(), $tables = array(), $cols = array(), $fullsearch = false) { - $exclude_cols = $cols; - - $report = array('scan_tables' => 0, 'scan_rows' => 0, 'scan_cells' => 0, - 'updt_tables' => 0, 'updt_rows' => 0, 'updt_cells' => 0, - 'errsql' => array(), 'errser' => array(), 'errkey' => array(), - 'errsql_sum' => 0, 'errser_sum' => 0, 'errkey_sum' => 0, - 'time' => '', 'err_all' => 0); - - $walk_function = create_function('&$str', '$str = "`$str`";'); - - $profile_start = DupUtil::get_microtime(); - if (is_array($tables) && !empty($tables)) { - - foreach ($tables as $table) { - $report['scan_tables']++; - $columns = array(); - - // Get a list of columns in this table - $fields = mysqli_query($conn, 'DESCRIBE ' . $table); - while ($column = mysqli_fetch_array($fields)) { - $columns[$column['Field']] = $column['Key'] == 'PRI' ? true : false; - } - - // Count the number of rows we have in the table if large we'll split into blocks - $row_count = mysqli_query($conn, "SELECT COUNT(*) FROM `{$table}`"); - $rows_result = mysqli_fetch_array($row_count); - @mysqli_free_result($row_count); - $row_count = $rows_result[0]; - if ($row_count == 0) { - DUPX_Log::Info("{$table}^ ({$row_count})"); - continue; - } - - $page_size = 25000; - $offset = ($page_size + 1); - $pages = ceil($row_count / $page_size); - - // Grab the columns of the table. Only grab text based columns because - // they are the only data types that should allow any type of search/replace logic - $colList = '*'; - $colMsg = '*'; - if (! $fullsearch) { - $colList = self::getTextColumns($conn, $table); - if ($colList != null && is_array($colList)) { - array_walk($colList, $walk_function); - $colList = implode(',', $colList); - } - $colMsg = (empty($colList)) ? '*' : '~'; - } - - if (empty($colList)) { - DUPX_Log::Info("{$table}^ ({$row_count})"); - continue; - } else { - DUPX_Log::Info("{$table}{$colMsg} ({$row_count})"); - } - - //Paged Records - for ($page = 0; $page < $pages; $page++) { - - $current_row = 0; - $start = $page * $page_size; - $end = $start + $page_size; - $sql = sprintf("SELECT {$colList} FROM `%s` LIMIT %d, %d", $table, $start, $offset); - $data = mysqli_query($conn, $sql); - - if (!$data) - $report['errsql'][] = mysqli_error($conn); - - $scan_count = ($row_count < $end) ? $row_count : $end; - DUPX_Log::Info("\tScan => {$start} of {$scan_count}", 2); - //DEBUG ONLY: - //DUPX_Log::Info("\t{$sql}", 3); - - //Loops every row - while ($row = mysqli_fetch_array($data)) { - $report['scan_rows']++; - $current_row++; - $upd_col = array(); - $upd_sql = array(); - $where_sql = array(); - $upd = false; - $serial_err = 0; - - //Loops every cell - foreach ($columns as $column => $primary_key) { - if (in_array($column, $exclude_cols)) { - continue; - } - - $report['scan_cells']++; - $edited_data = $data_to_fix = $row[$column]; - $base64coverted = false; - - //Only replacing string values - if (!empty($row[$column]) && !is_numeric($row[$column])) { - - //Base 64 detection - if (base64_decode($row[$column], true)) { - $decoded = base64_decode($row[$column], true); - if (self::is_serialized($decoded)) { - $edited_data = $decoded; - $base64coverted = true; - } - } - - //Replace logic - level 1: simple check on basic serilized strings - foreach ($list as $item) { - $edited_data = self::recursive_unserialize_replace($item['search'], $item['replace'], $edited_data); - } - - //Replace logic - level 2: repair larger/complex serilized strings - $serial_check = self::fix_serial_string($edited_data); - if ($serial_check['fixed']) { - $edited_data = $serial_check['data']; - } elseif ($serial_check['tried'] && !$serial_check['fixed']) { - $serial_err++; - } - } - - //Change was made - if ($edited_data != $data_to_fix || $serial_err > 0) { - $report['updt_cells']++; - //Base 64 encode - if ($base64coverted) { - $edited_data = base64_encode($edited_data); - } - $upd_col[] = $column; - $upd_sql[] = $column . ' = "' . mysqli_real_escape_string($conn, $edited_data) . '"'; - $upd = true; - } - - if ($primary_key) { - $where_sql[] = $column . ' = "' . mysqli_real_escape_string($conn, $data_to_fix) . '"'; - } - } - - //PERFORM ROW UPDATE - if ($upd && !empty($where_sql)) { - $sql = "UPDATE `{$table}` SET " . implode(', ', $upd_sql) . ' WHERE ' . implode(' AND ', array_filter($where_sql)); - $result = mysqli_query($conn, $sql) or $report['errsql'][] = mysqli_error($conn); - //DEBUG ONLY: - DUPX_Log::Info("\t{$sql}", 3); - if ($result) { - if ($serial_err > 0) { - $report['errser'][] = "SELECT " . implode(', ', $upd_col) . " FROM `{$table}` WHERE " . implode(' AND ', array_filter($where_sql)) . ';'; - } - $report['updt_rows']++; - } - } elseif ($upd) { - $report['errkey'][] = sprintf("Row [%s] on Table [%s] requires a manual update.", $current_row, $table); - } - } - DupUtil::fcgi_flush(); - @mysqli_free_result($data); - } - - if ($upd) { - $report['updt_tables']++; - } - } - } - $profile_end = DupUtil::get_microtime(); - $report['time'] = DupUtil::elapsed_time($profile_end, $profile_start); - $report['errsql_sum'] = empty($report['errsql']) ? 0 : count($report['errsql']); - $report['errser_sum'] = empty($report['errser']) ? 0 : count($report['errser']); - $report['errkey_sum'] = empty($report['errkey']) ? 0 : count($report['errkey']); - $report['err_all'] = $report['errsql_sum'] + $report['errser_sum'] + $report['errkey_sum']; - return $report; - } - - /** - * Take a serialised array and unserialise it replacing elements and - * unserialising any subordinate arrays and performing the replace. - * @param string $from String we're looking to replace. - * @param string $to What we want it to be replaced with - * @param array $data Used to pass any subordinate arrays back to in. - * @param bool $serialised Does the array passed via $data need serialising. - * @return array The original array with all elements replaced as needed. - */ - static private function recursive_unserialize_replace($from = '', $to = '', $data = '', $serialised = false) { - - // some unseriliased data cannot be re-serialised eg. SimpleXMLElements - try { - - if (is_string($data) && ($unserialized = @unserialize($data)) !== false) { - $data = self::recursive_unserialize_replace($from, $to, $unserialized, true); - } elseif (is_array($data)) { - $_tmp = array(); - foreach ($data as $key => $value) { - $_tmp[$key] = self::recursive_unserialize_replace($from, $to, $value, false); - } - $data = $_tmp; - unset($_tmp); - } elseif (is_object($data)) { - $dataClass = get_class($data); - $_tmp = new $dataClass(); - foreach ($data as $key => $value) { - $_tmp->$key = self::recursive_unserialize_replace($from, $to, $value, false); - } - $data = $_tmp; - unset($_tmp); - } else { - if (is_string($data)) { - $data = str_replace($from, $to, $data); - } - } - - if ($serialised) - return serialize($data); - } catch (Exception $error) { - DUPX_Log::Info("\nRECURSIVE UNSERIALIZE ERROR: With string\n" . $error, 2); - } - return $data; - } - - /** - * IS_SERIALIZED - * Test if a string in properly serialized */ - static public function is_serialized($data) { - $test = @unserialize(($data)); - return ($test !== false || $test === 'b:0;') ? true : false; - } - - /** - * FIX_STRING - * Fixes the string length of a string object that has been serialized but the length is broken - * @param string $data The string ojbect to recalculate the size on. - * @return - */ - static private function fix_serial_string($data) { - - $result = array('data' => $data, 'fixed' => false, 'tried' => false); - - if (preg_match("/s:[0-9]+:/", $data)) { - if (!self::is_serialized($data)) { - $regex = '!(?<=^|;)s:(\d+)(?=:"(.*?)";(?:}|a:|s:|b:|d:|i:|o:|N;))!s'; - $serial_string = preg_match('/^s:[0-9]+:"(.*$)/s', trim($data), $matches); - //Nested serial string - if ($serial_string) { - $inner = preg_replace_callback($regex, 'DupDBTextSwap::fix_string_callback', rtrim($matches[1], '";')); - $serialized_fixed = 's:' . strlen($inner) . ':"' . $inner . '";'; - } else { - $serialized_fixed = preg_replace_callback($regex, 'DupDBTextSwap::fix_string_callback', $data); - } - - if (self::is_serialized($serialized_fixed)) { - $result['data'] = $serialized_fixed; - $result['fixed'] = true; - } - $result['tried'] = true; - } - } - return $result; - } - - static private function fix_string_callback($matches) { - return 's:' . strlen(($matches[2])); - } - -} -?> \ No newline at end of file diff --git a/installer/build/classes/class.utils.php b/installer/build/classes/class.utils.php deleted file mode 100644 index 6f0663e6..00000000 --- a/installer/build/classes/class.utils.php +++ /dev/null @@ -1,315 +0,0 @@ -='); - case 'set_charset' : - return version_compare($version, '5.0.7', '>='); - }; - return false; - } - - /** - * Sets the MySQL connection's character set. - * @param resource $dbh The resource given by mysqli_connect - * @param string $charset The character set (optional) - * @param string $collate The collation (optional) - */ - static public function mysql_set_charset($dbh, $charset = null, $collate = null) { - - $charset = (!isset($charset) ) ? $GLOBALS['DBCHARSET_DEFAULT'] : $charset; - $collate = (!isset($collate) ) ? $GLOBALS['DBCOLLATE_DEFAULT'] : $collate; - - if (self::mysql_has_ability($dbh, 'collation') && !empty($charset)) { - if (function_exists('mysqli_set_charset') && self::mysql_has_ability($dbh, 'set_charset')) { - return mysqli_set_charset($dbh, $charset); - } else { - $sql = " SET NAMES {$charset}"; - if (!empty($collate)) - $sql .= " COLLATE {$collate}"; - return mysqli_query($dbh, $sql); - } - } - } - - /** - * READABLE_BYTESIZE - * Display human readable byte sizes - * @param string $size The size in bytes - */ - static public function readable_bytesize($size) { - try { - $units = array('B', 'KB', 'MB', 'GB', 'TB'); - for ($i = 0; $size >= 1024 && $i < 4; $i++) - $size /= 1024; - return round($size, 2) . $units[$i]; - } catch (Exception $e) { - return "n/a"; - } - } - - /** - * PREG_REPLACEMENT_QUOTE - * The characters that are special in the replacement value of preg_replace are not the - * same characters that are special in the pattern - * @param string $str The string to replace on - */ - static public function preg_replacement_quote($str) { - return preg_replace('/(\$|\\\\)(?=\d)/', '\\\\\1', $str); - } - - - /** - * IS_WEB_CONNECTED - * Check to see if the internet is accessable - * @param string $url A url e.g without prefix "ajax.googleapis.com" - * @param string $port A valid port number - * @return bool - */ - static public function is_url_active($url, $port) { - if (function_exists('fsockopen')) { - $port = isset($port) && is_integer($port) ? $port : 80; - $connected = @fsockopen($url, $port); //website and port - if ($connected){ - $is_conn = true; - @fclose($connected); - } else { - $is_conn = false; - } - return $is_conn; - } else { - return false; - } - } - - -} -?> \ No newline at end of file diff --git a/installer/build/main.installer.php b/installer/build/main.installer.php deleted file mode 100644 index bd778abb..00000000 --- a/installer/build/main.installer.php +++ /dev/null @@ -1,309 +0,0 @@ - - - - - - - -Error: PHP is not running - - -Error: PHP is not running
-Duplicator requires that your web server is running PHP. Your server does not have PHP installed, or PHP is turned off.
- - - - - - 'https://oldurl/', 'replace' => 'https://newurl/')); - array_push($GLOBALS['REPLACE_LIST'], array('search' => 'ftps://oldurl/', 'replace' => 'ftps://newurl/')); - ================================================================================================= */ - -$GLOBALS['FW_TABLEPREFIX'] = '%fwrite_wp_tableprefix%'; -$GLOBALS['FW_URL_OLD'] = '%fwrite_url_old%'; -$GLOBALS['FW_URL_NEW'] = '%fwrite_url_new%'; -$GLOBALS['FW_PACKAGE_NAME'] = '%fwrite_package_name%'; -$GLOBALS['FW_PACKAGE_NOTES'] = '%fwrite_package_notes%'; -$GLOBALS['FW_SECURE_NAME'] = '%fwrite_secure_name%'; -$GLOBALS['FW_DBHOST'] = '%fwrite_dbhost%'; -$GLOBALS['FW_DBHOST'] = empty($GLOBALS['FW_DBHOST']) ? 'localhost' : $GLOBALS['FW_DBHOST']; -$GLOBALS['FW_DBPORT'] = '%fwrite_dbport%'; -$GLOBALS['FW_DBPORT'] = empty($GLOBALS['FW_DBPORT']) ? 3306 : $GLOBALS['FW_DBPORT']; -$GLOBALS['FW_DBNAME'] = '%fwrite_dbname%'; -$GLOBALS['FW_DBUSER'] = '%fwrite_dbuser%'; -$GLOBALS['FW_DBPASS'] = '%fwrite_dbpass%'; -$GLOBALS['FW_SSL_ADMIN'] = '%fwrite_ssl_admin%'; -$GLOBALS['FW_SSL_LOGIN'] = '%fwrite_ssl_login%'; -$GLOBALS['FW_CACHE_WP'] = '%fwrite_cache_wp%'; -$GLOBALS['FW_CACHE_PATH'] = '%fwrite_cache_path%'; -$GLOBALS['FW_BLOGNAME'] = '%fwrite_blogname%'; -$GLOBALS['FW_WPROOT'] = '%fwrite_wproot%'; -$GLOBALS['FW_DUPLICATOR_VERSION'] = '%fwrite_duplicator_version%'; -$GLOBALS['FW_OPTS_DELETE'] = json_decode("%fwrite_opts_delete%", true); - -//DATABASE SETUP: all time in seconds -$GLOBALS['DB_MAX_TIME'] = 5000; -$GLOBALS['DB_MAX_PACKETS'] = 268435456; -ini_set('mysql.connect_timeout', '5000'); - -//PHP SETUP: all time in seconds -ini_set('memory_limit', '5000M'); -ini_set("max_execution_time", '5000'); -ini_set("max_input_time", '5000'); -ini_set('default_socket_timeout', '5000'); -@set_time_limit(0); - -$GLOBALS['DBCHARSET_DEFAULT'] = 'utf8'; -$GLOBALS['DBCOLLATE_DEFAULT'] = 'utf8_general_ci'; - -//UPDATE TABLE SETTINGS -$GLOBALS['TABLES_SKIP_COLS'] = array(''); -$GLOBALS['REPLACE_LIST'] = array(); - - -/* ================================================================================================ - END ADVANCED FEATURES: Do not edit below here. - =================================================================================================== */ - -//CONSTANTS -define("DUPLICATOR_INIT", 1); -define("DUPLICATOR_SSDIR_NAME", 'wp-snapshots'); //This should match DUPLICATOR_SSDIR_NAME in duplicator.php - -//SHARED POST PARMS -$_POST['action_step'] = isset($_POST['action_step']) ? $_POST['action_step'] : "1"; - -/* Host has several combinations : -localhost | localhost:55 | localhost: | http://localhost | http://localhost:55 */ -$_POST['dbhost'] = isset($_POST['dbhost']) ? trim($_POST['dbhost']) : null; -$_POST['dbport'] = isset($_POST['dbport']) ? trim($_POST['dbport']) : 3306; -$_POST['dbuser'] = isset($_POST['dbuser']) ? trim($_POST['dbuser']) : null; -$_POST['dbpass'] = isset($_POST['dbpass']) ? trim($_POST['dbpass']) : null; -$_POST['dbname'] = isset($_POST['dbname']) ? trim($_POST['dbname']) : null; -$_POST['dbcharset'] = isset($_POST['dbcharset']) ? trim($_POST['dbcharset']) : $GLOBALS['DBCHARSET_DEFAULT']; -$_POST['dbcollate'] = isset($_POST['dbcollate']) ? trim($_POST['dbcollate']) : $GLOBALS['DBCOLLATE_DEFAULT']; - -//GLOBALS -$GLOBALS["SQL_FILE_NAME"] = "installer-data.sql"; -$GLOBALS["LOG_FILE_NAME"] = "installer-log.txt"; -$GLOBALS['SEPERATOR1'] = str_repeat("********", 10); -$GLOBALS['LOGGING'] = isset($_POST['logging']) ? $_POST['logging'] : 1; -$GLOBALS['CURRENT_ROOT_PATH'] = dirname(__FILE__); -$GLOBALS['CHOWN_ROOT_PATH'] = @chmod("{$GLOBALS['CURRENT_ROOT_PATH']}", 0755); -$GLOBALS['CHOWN_LOG_PATH'] = @chmod("{$GLOBALS['CURRENT_ROOT_PATH']}/{$GLOBALS['LOG_FILE_NAME']}", 0644); -$GLOBALS['URL_SSL'] = (isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] == 'on') ? true : false; -$GLOBALS['URL_PATH'] = ($GLOBALS['URL_SSL']) ? "https://{$_SERVER['SERVER_NAME']}{$_SERVER['REQUEST_URI']}" : "http://{$_SERVER['SERVER_NAME']}{$_SERVER['REQUEST_URI']}"; - - - - -//Restart log if user starts from step 1 -if ($_POST['action_step'] == 1) { - $GLOBALS['LOG_FILE_HANDLE'] = @fopen($GLOBALS['LOG_FILE_NAME'], "w+"); -} else { - $GLOBALS['LOG_FILE_HANDLE'] = @fopen($GLOBALS['LOG_FILE_NAME'], "a+"); -} -?> - -@@CLASS.LOGGING.PHP@@ - -@@CLASS.UTILS.PHP@@ - -@@CLASS.CONFIG.PHP@@ - -@@CLASS.SERIALIZER.PHP@@ - - @@AJAX.STEP1.PHP@@ @@AJAX.STEP2.PHP@@ - - - - - - -Wordpress Duplicator - @@INC.LIBS.CSS.PHP@@ - @@INC.CSS.PHP@@ - @@INC.LIBS.JS.PHP@@ - @@INC.JS.PHP@@ - - - -- --
- - -- -- -- - Duplicator - Installer --- - -- -- - - -- Help Overview -- - - - - -- - - version: [Help] - - - -- @@VIEW.STEP1.PHP@@ @@VIEW.STEP2.PHP@@ @@VIEW.STEP3.PHP@@ @@VIEW.HELP.PHP@@ --
- - - - \ No newline at end of file diff --git a/installer/build/view.help.php b/installer/build/view.help.php deleted file mode 100644 index d2628365..00000000 --- a/installer/build/view.help.php +++ /dev/null @@ -1,212 +0,0 @@ - - --\ No newline at end of file diff --git a/installer/build/view.step0.php b/installer/build/view.step0.php deleted file mode 100644 index c9db4669..00000000 --- a/installer/build/view.step0.php +++ /dev/null @@ -1,14 +0,0 @@ - diff --git a/installer/build/view.step1.php b/installer/build/view.step1.php deleted file mode 100644 index 46072b4f..00000000 --- a/installer/build/view.step1.php +++ /dev/null @@ -1,472 +0,0 @@ - 1) { - $zip_file_name = "Too many zip files in directory"; - } - - $req01a = @is_writeable($GLOBALS["CURRENT_ROOT_PATH"]) ? 'Pass' : 'Fail'; - if (is_dir($GLOBALS["CURRENT_ROOT_PATH"])) { - if ($dh = @opendir($GLOBALS["CURRENT_ROOT_PATH"])) { - closedir($dh); - } else { - $req01a = 'Fail'; - } - } - $req01b = ($zip_file_count == 1) ? 'Pass' : 'Fail'; - $req01 = ($req01a == 'Pass' && $req01b == 'Pass') ? 'Pass' : 'Fail'; - $safe_ini = strtolower(@ini_get('safe_mode')); - $req02 = $safe_ini != 'on' || $safe_ini != 'yes' || $safe_ini != 'true' || ini_get("safe_mode") != 1 ? 'Pass' : 'Fail'; - $req03 = function_exists('mysqli_connect') ? 'Pass' : 'Fail'; - $php_compare = version_compare(phpversion(), '5.2.17'); - $req04 = $php_compare >= 0 ? 'Pass' : 'Fail'; - $total_req = ($req01 == 'Pass' && $req02 == 'Pass' && $req03 == 'Pass' && $req04 == 'Pass') ? 'Pass' : 'Fail'; -?> - - - - - - - - - - - - - - - - - diff --git a/installer/build/view.step2.php b/installer/build/view.step2.php deleted file mode 100644 index e0a1d4f9..00000000 --- a/installer/build/view.step2.php +++ /dev/null @@ -1,299 +0,0 @@ - - - - - - - - - - - - diff --git a/installer/build/view.step3.php b/installer/build/view.step3.php deleted file mode 100644 index 63bb8af4..00000000 --- a/installer/build/view.step3.php +++ /dev/null @@ -1,206 +0,0 @@ - - - - - - - - - - \ No newline at end of file diff --git a/installer/dtoken.php b/installer/dtoken.php deleted file mode 100644 index f13f0e80..00000000 --- a/installer/dtoken.php +++ /dev/null @@ -1 +0,0 @@ -set_404(); header("HTTP/1.1 404 Not Found", true, 404); header("Status: 404 Not Found"); @include(get_template_directory () . "/404.php"); ?> \ No newline at end of file diff --git a/installer/dup-installer/addons/.htaccess b/installer/dup-installer/addons/.htaccess new file mode 100644 index 00000000..a58990b7 --- /dev/null +++ b/installer/dup-installer/addons/.htaccess @@ -0,0 +1,9 @@ +For in-depth help please see the online resources- -Step 1 - Deploy
-- - - - - -- -Step 2 - Update
-- - - - - - - - - - -- -Step 3 - Test
-- -- - -Troubleshooting Tips
-- -- -For in-depth help please see the online resources- -
-+ Order Deny,Allow + Deny from all + + ++ Order Allow,Deny + Allow from all + \ No newline at end of file diff --git a/installer/dup-installer/addons/index.php b/installer/dup-installer/addons/index.php new file mode 100644 index 00000000..bcebfd76 --- /dev/null +++ b/installer/dup-installer/addons/index.php @@ -0,0 +1,3 @@ +li{position:relative}.fa-li{left:-2em;position:absolute;text-align:center;width:2em;line-height:inherit}.fa-border{border:.08em solid #eee;border-radius:.1em;padding:.2em .25em .15em}.fa-pull-left{float:left}.fa-pull-right{float:right}.fa.fa-pull-left,.fab.fa-pull-left,.fal.fa-pull-left,.far.fa-pull-left,.fas.fa-pull-left{margin-right:.3em}.fa.fa-pull-right,.fab.fa-pull-right,.fal.fa-pull-right,.far.fa-pull-right,.fas.fa-pull-right{margin-left:.3em}.fa-spin{animation:fa-spin 2s infinite linear}.fa-pulse{animation:fa-spin 1s infinite steps(8)}@keyframes fa-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.fa-rotate-90{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";transform:rotate(90deg)}.fa-rotate-180{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";transform:rotate(180deg)}.fa-rotate-270{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";transform:rotate(270deg)}.fa-flip-horizontal{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";transform:scaleX(-1)}.fa-flip-vertical{transform:scaleY(-1)}.fa-flip-both,.fa-flip-horizontal.fa-flip-vertical,.fa-flip-vertical{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)"}.fa-flip-both,.fa-flip-horizontal.fa-flip-vertical{transform:scale(-1)}:root .fa-flip-both,:root .fa-flip-horizontal,:root .fa-flip-vertical,:root .fa-rotate-90,:root .fa-rotate-180,:root .fa-rotate-270{filter:none}.fa-stack{display:inline-block;height:2em;line-height:2em;position:relative;vertical-align:middle;width:2.5em}.fa-stack-1x,.fa-stack-2x{left:0;position:absolute;text-align:center;width:100%}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:#fff}.fa-500px:before{content:"\f26e"}.fa-accessible-icon:before{content:"\f368"}.fa-accusoft:before{content:"\f369"}.fa-acquisitions-incorporated:before{content:"\f6af"}.fa-ad:before{content:"\f641"}.fa-address-book:before{content:"\f2b9"}.fa-address-card:before{content:"\f2bb"}.fa-adjust:before{content:"\f042"}.fa-adn:before{content:"\f170"}.fa-adobe:before{content:"\f778"}.fa-adversal:before{content:"\f36a"}.fa-affiliatetheme:before{content:"\f36b"}.fa-air-freshener:before{content:"\f5d0"}.fa-algolia:before{content:"\f36c"}.fa-align-center:before{content:"\f037"}.fa-align-justify:before{content:"\f039"}.fa-align-left:before{content:"\f036"}.fa-align-right:before{content:"\f038"}.fa-alipay:before{content:"\f642"}.fa-allergies:before{content:"\f461"}.fa-amazon:before{content:"\f270"}.fa-amazon-pay:before{content:"\f42c"}.fa-ambulance:before{content:"\f0f9"}.fa-american-sign-language-interpreting:before{content:"\f2a3"}.fa-amilia:before{content:"\f36d"}.fa-anchor:before{content:"\f13d"}.fa-android:before{content:"\f17b"}.fa-angellist:before{content:"\f209"}.fa-angle-double-down:before{content:"\f103"}.fa-angle-double-left:before{content:"\f100"}.fa-angle-double-right:before{content:"\f101"}.fa-angle-double-up:before{content:"\f102"}.fa-angle-down:before{content:"\f107"}.fa-angle-left:before{content:"\f104"}.fa-angle-right:before{content:"\f105"}.fa-angle-up:before{content:"\f106"}.fa-angry:before{content:"\f556"}.fa-angrycreative:before{content:"\f36e"}.fa-angular:before{content:"\f420"}.fa-ankh:before{content:"\f644"}.fa-app-store:before{content:"\f36f"}.fa-app-store-ios:before{content:"\f370"}.fa-apper:before{content:"\f371"}.fa-apple:before{content:"\f179"}.fa-apple-alt:before{content:"\f5d1"}.fa-apple-pay:before{content:"\f415"}.fa-archive:before{content:"\f187"}.fa-archway:before{content:"\f557"}.fa-arrow-alt-circle-down:before{content:"\f358"}.fa-arrow-alt-circle-left:before{content:"\f359"}.fa-arrow-alt-circle-right:before{content:"\f35a"}.fa-arrow-alt-circle-up:before{content:"\f35b"}.fa-arrow-circle-down:before{content:"\f0ab"}.fa-arrow-circle-left:before{content:"\f0a8"}.fa-arrow-circle-right:before{content:"\f0a9"}.fa-arrow-circle-up:before{content:"\f0aa"}.fa-arrow-down:before{content:"\f063"}.fa-arrow-left:before{content:"\f060"}.fa-arrow-right:before{content:"\f061"}.fa-arrow-up:before{content:"\f062"}.fa-arrows-alt:before{content:"\f0b2"}.fa-arrows-alt-h:before{content:"\f337"}.fa-arrows-alt-v:before{content:"\f338"}.fa-artstation:before{content:"\f77a"}.fa-assistive-listening-systems:before{content:"\f2a2"}.fa-asterisk:before{content:"\f069"}.fa-asymmetrik:before{content:"\f372"}.fa-at:before{content:"\f1fa"}.fa-atlas:before{content:"\f558"}.fa-atlassian:before{content:"\f77b"}.fa-atom:before{content:"\f5d2"}.fa-audible:before{content:"\f373"}.fa-audio-description:before{content:"\f29e"}.fa-autoprefixer:before{content:"\f41c"}.fa-avianex:before{content:"\f374"}.fa-aviato:before{content:"\f421"}.fa-award:before{content:"\f559"}.fa-aws:before{content:"\f375"}.fa-baby:before{content:"\f77c"}.fa-baby-carriage:before{content:"\f77d"}.fa-backspace:before{content:"\f55a"}.fa-backward:before{content:"\f04a"}.fa-bacon:before{content:"\f7e5"}.fa-balance-scale:before{content:"\f24e"}.fa-ban:before{content:"\f05e"}.fa-band-aid:before{content:"\f462"}.fa-bandcamp:before{content:"\f2d5"}.fa-barcode:before{content:"\f02a"}.fa-bars:before{content:"\f0c9"}.fa-baseball-ball:before{content:"\f433"}.fa-basketball-ball:before{content:"\f434"}.fa-bath:before{content:"\f2cd"}.fa-battery-empty:before{content:"\f244"}.fa-battery-full:before{content:"\f240"}.fa-battery-half:before{content:"\f242"}.fa-battery-quarter:before{content:"\f243"}.fa-battery-three-quarters:before{content:"\f241"}.fa-bed:before{content:"\f236"}.fa-beer:before{content:"\f0fc"}.fa-behance:before{content:"\f1b4"}.fa-behance-square:before{content:"\f1b5"}.fa-bell:before{content:"\f0f3"}.fa-bell-slash:before{content:"\f1f6"}.fa-bezier-curve:before{content:"\f55b"}.fa-bible:before{content:"\f647"}.fa-bicycle:before{content:"\f206"}.fa-bimobject:before{content:"\f378"}.fa-binoculars:before{content:"\f1e5"}.fa-biohazard:before{content:"\f780"}.fa-birthday-cake:before{content:"\f1fd"}.fa-bitbucket:before{content:"\f171"}.fa-bitcoin:before{content:"\f379"}.fa-bity:before{content:"\f37a"}.fa-black-tie:before{content:"\f27e"}.fa-blackberry:before{content:"\f37b"}.fa-blender:before{content:"\f517"}.fa-blender-phone:before{content:"\f6b6"}.fa-blind:before{content:"\f29d"}.fa-blog:before{content:"\f781"}.fa-blogger:before{content:"\f37c"}.fa-blogger-b:before{content:"\f37d"}.fa-bluetooth:before{content:"\f293"}.fa-bluetooth-b:before{content:"\f294"}.fa-bold:before{content:"\f032"}.fa-bolt:before{content:"\f0e7"}.fa-bomb:before{content:"\f1e2"}.fa-bone:before{content:"\f5d7"}.fa-bong:before{content:"\f55c"}.fa-book:before{content:"\f02d"}.fa-book-dead:before{content:"\f6b7"}.fa-book-medical:before{content:"\f7e6"}.fa-book-open:before{content:"\f518"}.fa-book-reader:before{content:"\f5da"}.fa-bookmark:before{content:"\f02e"}.fa-bowling-ball:before{content:"\f436"}.fa-box:before{content:"\f466"}.fa-box-open:before{content:"\f49e"}.fa-boxes:before{content:"\f468"}.fa-braille:before{content:"\f2a1"}.fa-brain:before{content:"\f5dc"}.fa-bread-slice:before{content:"\f7ec"}.fa-briefcase:before{content:"\f0b1"}.fa-briefcase-medical:before{content:"\f469"}.fa-broadcast-tower:before{content:"\f519"}.fa-broom:before{content:"\f51a"}.fa-brush:before{content:"\f55d"}.fa-btc:before{content:"\f15a"}.fa-bug:before{content:"\f188"}.fa-building:before{content:"\f1ad"}.fa-bullhorn:before{content:"\f0a1"}.fa-bullseye:before{content:"\f140"}.fa-burn:before{content:"\f46a"}.fa-buromobelexperte:before{content:"\f37f"}.fa-bus:before{content:"\f207"}.fa-bus-alt:before{content:"\f55e"}.fa-business-time:before{content:"\f64a"}.fa-buysellads:before{content:"\f20d"}.fa-calculator:before{content:"\f1ec"}.fa-calendar:before{content:"\f133"}.fa-calendar-alt:before{content:"\f073"}.fa-calendar-check:before{content:"\f274"}.fa-calendar-day:before{content:"\f783"}.fa-calendar-minus:before{content:"\f272"}.fa-calendar-plus:before{content:"\f271"}.fa-calendar-times:before{content:"\f273"}.fa-calendar-week:before{content:"\f784"}.fa-camera:before{content:"\f030"}.fa-camera-retro:before{content:"\f083"}.fa-campground:before{content:"\f6bb"}.fa-canadian-maple-leaf:before{content:"\f785"}.fa-candy-cane:before{content:"\f786"}.fa-cannabis:before{content:"\f55f"}.fa-capsules:before{content:"\f46b"}.fa-car:before{content:"\f1b9"}.fa-car-alt:before{content:"\f5de"}.fa-car-battery:before{content:"\f5df"}.fa-car-crash:before{content:"\f5e1"}.fa-car-side:before{content:"\f5e4"}.fa-caret-down:before{content:"\f0d7"}.fa-caret-left:before{content:"\f0d9"}.fa-caret-right:before{content:"\f0da"}.fa-caret-square-down:before{content:"\f150"}.fa-caret-square-left:before{content:"\f191"}.fa-caret-square-right:before{content:"\f152"}.fa-caret-square-up:before{content:"\f151"}.fa-caret-up:before{content:"\f0d8"}.fa-carrot:before{content:"\f787"}.fa-cart-arrow-down:before{content:"\f218"}.fa-cart-plus:before{content:"\f217"}.fa-cash-register:before{content:"\f788"}.fa-cat:before{content:"\f6be"}.fa-cc-amazon-pay:before{content:"\f42d"}.fa-cc-amex:before{content:"\f1f3"}.fa-cc-apple-pay:before{content:"\f416"}.fa-cc-diners-club:before{content:"\f24c"}.fa-cc-discover:before{content:"\f1f2"}.fa-cc-jcb:before{content:"\f24b"}.fa-cc-mastercard:before{content:"\f1f1"}.fa-cc-paypal:before{content:"\f1f4"}.fa-cc-stripe:before{content:"\f1f5"}.fa-cc-visa:before{content:"\f1f0"}.fa-centercode:before{content:"\f380"}.fa-centos:before{content:"\f789"}.fa-certificate:before{content:"\f0a3"}.fa-chair:before{content:"\f6c0"}.fa-chalkboard:before{content:"\f51b"}.fa-chalkboard-teacher:before{content:"\f51c"}.fa-charging-station:before{content:"\f5e7"}.fa-chart-area:before{content:"\f1fe"}.fa-chart-bar:before{content:"\f080"}.fa-chart-line:before{content:"\f201"}.fa-chart-pie:before{content:"\f200"}.fa-check:before{content:"\f00c"}.fa-check-circle:before{content:"\f058"}.fa-check-double:before{content:"\f560"}.fa-check-square:before{content:"\f14a"}.fa-cheese:before{content:"\f7ef"}.fa-chess:before{content:"\f439"}.fa-chess-bishop:before{content:"\f43a"}.fa-chess-board:before{content:"\f43c"}.fa-chess-king:before{content:"\f43f"}.fa-chess-knight:before{content:"\f441"}.fa-chess-pawn:before{content:"\f443"}.fa-chess-queen:before{content:"\f445"}.fa-chess-rook:before{content:"\f447"}.fa-chevron-circle-down:before{content:"\f13a"}.fa-chevron-circle-left:before{content:"\f137"}.fa-chevron-circle-right:before{content:"\f138"}.fa-chevron-circle-up:before{content:"\f139"}.fa-chevron-down:before{content:"\f078"}.fa-chevron-left:before{content:"\f053"}.fa-chevron-right:before{content:"\f054"}.fa-chevron-up:before{content:"\f077"}.fa-child:before{content:"\f1ae"}.fa-chrome:before{content:"\f268"}.fa-church:before{content:"\f51d"}.fa-circle:before{content:"\f111"}.fa-circle-notch:before{content:"\f1ce"}.fa-city:before{content:"\f64f"}.fa-clinic-medical:before{content:"\f7f2"}.fa-clipboard:before{content:"\f328"}.fa-clipboard-check:before{content:"\f46c"}.fa-clipboard-list:before{content:"\f46d"}.fa-clock:before{content:"\f017"}.fa-clone:before{content:"\f24d"}.fa-closed-captioning:before{content:"\f20a"}.fa-cloud:before{content:"\f0c2"}.fa-cloud-download-alt:before{content:"\f381"}.fa-cloud-meatball:before{content:"\f73b"}.fa-cloud-moon:before{content:"\f6c3"}.fa-cloud-moon-rain:before{content:"\f73c"}.fa-cloud-rain:before{content:"\f73d"}.fa-cloud-showers-heavy:before{content:"\f740"}.fa-cloud-sun:before{content:"\f6c4"}.fa-cloud-sun-rain:before{content:"\f743"}.fa-cloud-upload-alt:before{content:"\f382"}.fa-cloudscale:before{content:"\f383"}.fa-cloudsmith:before{content:"\f384"}.fa-cloudversify:before{content:"\f385"}.fa-cocktail:before{content:"\f561"}.fa-code:before{content:"\f121"}.fa-code-branch:before{content:"\f126"}.fa-codepen:before{content:"\f1cb"}.fa-codiepie:before{content:"\f284"}.fa-coffee:before{content:"\f0f4"}.fa-cog:before{content:"\f013"}.fa-cogs:before{content:"\f085"}.fa-coins:before{content:"\f51e"}.fa-columns:before{content:"\f0db"}.fa-comment:before{content:"\f075"}.fa-comment-alt:before{content:"\f27a"}.fa-comment-dollar:before{content:"\f651"}.fa-comment-dots:before{content:"\f4ad"}.fa-comment-medical:before{content:"\f7f5"}.fa-comment-slash:before{content:"\f4b3"}.fa-comments:before{content:"\f086"}.fa-comments-dollar:before{content:"\f653"}.fa-compact-disc:before{content:"\f51f"}.fa-compass:before{content:"\f14e"}.fa-compress:before{content:"\f066"}.fa-compress-arrows-alt:before{content:"\f78c"}.fa-concierge-bell:before{content:"\f562"}.fa-confluence:before{content:"\f78d"}.fa-connectdevelop:before{content:"\f20e"}.fa-contao:before{content:"\f26d"}.fa-cookie:before{content:"\f563"}.fa-cookie-bite:before{content:"\f564"}.fa-copy:before{content:"\f0c5"}.fa-copyright:before{content:"\f1f9"}.fa-couch:before{content:"\f4b8"}.fa-cpanel:before{content:"\f388"}.fa-creative-commons:before{content:"\f25e"}.fa-creative-commons-by:before{content:"\f4e7"}.fa-creative-commons-nc:before{content:"\f4e8"}.fa-creative-commons-nc-eu:before{content:"\f4e9"}.fa-creative-commons-nc-jp:before{content:"\f4ea"}.fa-creative-commons-nd:before{content:"\f4eb"}.fa-creative-commons-pd:before{content:"\f4ec"}.fa-creative-commons-pd-alt:before{content:"\f4ed"}.fa-creative-commons-remix:before{content:"\f4ee"}.fa-creative-commons-sa:before{content:"\f4ef"}.fa-creative-commons-sampling:before{content:"\f4f0"}.fa-creative-commons-sampling-plus:before{content:"\f4f1"}.fa-creative-commons-share:before{content:"\f4f2"}.fa-creative-commons-zero:before{content:"\f4f3"}.fa-credit-card:before{content:"\f09d"}.fa-critical-role:before{content:"\f6c9"}.fa-crop:before{content:"\f125"}.fa-crop-alt:before{content:"\f565"}.fa-cross:before{content:"\f654"}.fa-crosshairs:before{content:"\f05b"}.fa-crow:before{content:"\f520"}.fa-crown:before{content:"\f521"}.fa-crutch:before{content:"\f7f7"}.fa-css3:before{content:"\f13c"}.fa-css3-alt:before{content:"\f38b"}.fa-cube:before{content:"\f1b2"}.fa-cubes:before{content:"\f1b3"}.fa-cut:before{content:"\f0c4"}.fa-cuttlefish:before{content:"\f38c"}.fa-d-and-d:before{content:"\f38d"}.fa-d-and-d-beyond:before{content:"\f6ca"}.fa-dashcube:before{content:"\f210"}.fa-database:before{content:"\f1c0"}.fa-deaf:before{content:"\f2a4"}.fa-delicious:before{content:"\f1a5"}.fa-democrat:before{content:"\f747"}.fa-deploydog:before{content:"\f38e"}.fa-deskpro:before{content:"\f38f"}.fa-desktop:before{content:"\f108"}.fa-dev:before{content:"\f6cc"}.fa-deviantart:before{content:"\f1bd"}.fa-dharmachakra:before{content:"\f655"}.fa-dhl:before{content:"\f790"}.fa-diagnoses:before{content:"\f470"}.fa-diaspora:before{content:"\f791"}.fa-dice:before{content:"\f522"}.fa-dice-d20:before{content:"\f6cf"}.fa-dice-d6:before{content:"\f6d1"}.fa-dice-five:before{content:"\f523"}.fa-dice-four:before{content:"\f524"}.fa-dice-one:before{content:"\f525"}.fa-dice-six:before{content:"\f526"}.fa-dice-three:before{content:"\f527"}.fa-dice-two:before{content:"\f528"}.fa-digg:before{content:"\f1a6"}.fa-digital-ocean:before{content:"\f391"}.fa-digital-tachograph:before{content:"\f566"}.fa-directions:before{content:"\f5eb"}.fa-discord:before{content:"\f392"}.fa-discourse:before{content:"\f393"}.fa-divide:before{content:"\f529"}.fa-dizzy:before{content:"\f567"}.fa-dna:before{content:"\f471"}.fa-dochub:before{content:"\f394"}.fa-docker:before{content:"\f395"}.fa-dog:before{content:"\f6d3"}.fa-dollar-sign:before{content:"\f155"}.fa-dolly:before{content:"\f472"}.fa-dolly-flatbed:before{content:"\f474"}.fa-donate:before{content:"\f4b9"}.fa-door-closed:before{content:"\f52a"}.fa-door-open:before{content:"\f52b"}.fa-dot-circle:before{content:"\f192"}.fa-dove:before{content:"\f4ba"}.fa-download:before{content:"\f019"}.fa-draft2digital:before{content:"\f396"}.fa-drafting-compass:before{content:"\f568"}.fa-dragon:before{content:"\f6d5"}.fa-draw-polygon:before{content:"\f5ee"}.fa-dribbble:before{content:"\f17d"}.fa-dribbble-square:before{content:"\f397"}.fa-dropbox:before{content:"\f16b"}.fa-drum:before{content:"\f569"}.fa-drum-steelpan:before{content:"\f56a"}.fa-drumstick-bite:before{content:"\f6d7"}.fa-drupal:before{content:"\f1a9"}.fa-dumbbell:before{content:"\f44b"}.fa-dumpster:before{content:"\f793"}.fa-dumpster-fire:before{content:"\f794"}.fa-dungeon:before{content:"\f6d9"}.fa-dyalog:before{content:"\f399"}.fa-earlybirds:before{content:"\f39a"}.fa-ebay:before{content:"\f4f4"}.fa-edge:before{content:"\f282"}.fa-edit:before{content:"\f044"}.fa-egg:before{content:"\f7fb"}.fa-eject:before{content:"\f052"}.fa-elementor:before{content:"\f430"}.fa-ellipsis-h:before{content:"\f141"}.fa-ellipsis-v:before{content:"\f142"}.fa-ello:before{content:"\f5f1"}.fa-ember:before{content:"\f423"}.fa-empire:before{content:"\f1d1"}.fa-envelope:before{content:"\f0e0"}.fa-envelope-open:before{content:"\f2b6"}.fa-envelope-open-text:before{content:"\f658"}.fa-envelope-square:before{content:"\f199"}.fa-envira:before{content:"\f299"}.fa-equals:before{content:"\f52c"}.fa-eraser:before{content:"\f12d"}.fa-erlang:before{content:"\f39d"}.fa-ethereum:before{content:"\f42e"}.fa-ethernet:before{content:"\f796"}.fa-etsy:before{content:"\f2d7"}.fa-euro-sign:before{content:"\f153"}.fa-exchange-alt:before{content:"\f362"}.fa-exclamation:before{content:"\f12a"}.fa-exclamation-circle:before{content:"\f06a"}.fa-exclamation-triangle:before{content:"\f071"}.fa-expand:before{content:"\f065"}.fa-expand-arrows-alt:before{content:"\f31e"}.fa-expeditedssl:before{content:"\f23e"}.fa-external-link-alt:before{content:"\f35d"}.fa-external-link-square-alt:before{content:"\f360"}.fa-eye:before{content:"\f06e"}.fa-eye-dropper:before{content:"\f1fb"}.fa-eye-slash:before{content:"\f070"}.fa-facebook:before{content:"\f09a"}.fa-facebook-f:before{content:"\f39e"}.fa-facebook-messenger:before{content:"\f39f"}.fa-facebook-square:before{content:"\f082"}.fa-fantasy-flight-games:before{content:"\f6dc"}.fa-fast-backward:before{content:"\f049"}.fa-fast-forward:before{content:"\f050"}.fa-fax:before{content:"\f1ac"}.fa-feather:before{content:"\f52d"}.fa-feather-alt:before{content:"\f56b"}.fa-fedex:before{content:"\f797"}.fa-fedora:before{content:"\f798"}.fa-female:before{content:"\f182"}.fa-fighter-jet:before{content:"\f0fb"}.fa-figma:before{content:"\f799"}.fa-file:before{content:"\f15b"}.fa-file-alt:before{content:"\f15c"}.fa-file-archive:before{content:"\f1c6"}.fa-file-audio:before{content:"\f1c7"}.fa-file-code:before{content:"\f1c9"}.fa-file-contract:before{content:"\f56c"}.fa-file-csv:before{content:"\f6dd"}.fa-file-download:before{content:"\f56d"}.fa-file-excel:before{content:"\f1c3"}.fa-file-export:before{content:"\f56e"}.fa-file-image:before{content:"\f1c5"}.fa-file-import:before{content:"\f56f"}.fa-file-invoice:before{content:"\f570"}.fa-file-invoice-dollar:before{content:"\f571"}.fa-file-medical:before{content:"\f477"}.fa-file-medical-alt:before{content:"\f478"}.fa-file-pdf:before{content:"\f1c1"}.fa-file-powerpoint:before{content:"\f1c4"}.fa-file-prescription:before{content:"\f572"}.fa-file-signature:before{content:"\f573"}.fa-file-upload:before{content:"\f574"}.fa-file-video:before{content:"\f1c8"}.fa-file-word:before{content:"\f1c2"}.fa-fill:before{content:"\f575"}.fa-fill-drip:before{content:"\f576"}.fa-film:before{content:"\f008"}.fa-filter:before{content:"\f0b0"}.fa-fingerprint:before{content:"\f577"}.fa-fire:before{content:"\f06d"}.fa-fire-alt:before{content:"\f7e4"}.fa-fire-extinguisher:before{content:"\f134"}.fa-firefox:before{content:"\f269"}.fa-first-aid:before{content:"\f479"}.fa-first-order:before{content:"\f2b0"}.fa-first-order-alt:before{content:"\f50a"}.fa-firstdraft:before{content:"\f3a1"}.fa-fish:before{content:"\f578"}.fa-fist-raised:before{content:"\f6de"}.fa-flag:before{content:"\f024"}.fa-flag-checkered:before{content:"\f11e"}.fa-flag-usa:before{content:"\f74d"}.fa-flask:before{content:"\f0c3"}.fa-flickr:before{content:"\f16e"}.fa-flipboard:before{content:"\f44d"}.fa-flushed:before{content:"\f579"}.fa-fly:before{content:"\f417"}.fa-folder:before{content:"\f07b"}.fa-folder-minus:before{content:"\f65d"}.fa-folder-open:before{content:"\f07c"}.fa-folder-plus:before{content:"\f65e"}.fa-font:before{content:"\f031"}.fa-font-awesome:before{content:"\f2b4"}.fa-font-awesome-alt:before{content:"\f35c"}.fa-font-awesome-flag:before{content:"\f425"}.fa-font-awesome-logo-full:before{content:"\f4e6"}.fa-fonticons:before{content:"\f280"}.fa-fonticons-fi:before{content:"\f3a2"}.fa-football-ball:before{content:"\f44e"}.fa-fort-awesome:before{content:"\f286"}.fa-fort-awesome-alt:before{content:"\f3a3"}.fa-forumbee:before{content:"\f211"}.fa-forward:before{content:"\f04e"}.fa-foursquare:before{content:"\f180"}.fa-free-code-camp:before{content:"\f2c5"}.fa-freebsd:before{content:"\f3a4"}.fa-frog:before{content:"\f52e"}.fa-frown:before{content:"\f119"}.fa-frown-open:before{content:"\f57a"}.fa-fulcrum:before{content:"\f50b"}.fa-funnel-dollar:before{content:"\f662"}.fa-futbol:before{content:"\f1e3"}.fa-galactic-republic:before{content:"\f50c"}.fa-galactic-senate:before{content:"\f50d"}.fa-gamepad:before{content:"\f11b"}.fa-gas-pump:before{content:"\f52f"}.fa-gavel:before{content:"\f0e3"}.fa-gem:before{content:"\f3a5"}.fa-genderless:before{content:"\f22d"}.fa-get-pocket:before{content:"\f265"}.fa-gg:before{content:"\f260"}.fa-gg-circle:before{content:"\f261"}.fa-ghost:before{content:"\f6e2"}.fa-gift:before{content:"\f06b"}.fa-gifts:before{content:"\f79c"}.fa-git:before{content:"\f1d3"}.fa-git-square:before{content:"\f1d2"}.fa-github:before{content:"\f09b"}.fa-github-alt:before{content:"\f113"}.fa-github-square:before{content:"\f092"}.fa-gitkraken:before{content:"\f3a6"}.fa-gitlab:before{content:"\f296"}.fa-gitter:before{content:"\f426"}.fa-glass-cheers:before{content:"\f79f"}.fa-glass-martini:before{content:"\f000"}.fa-glass-martini-alt:before{content:"\f57b"}.fa-glass-whiskey:before{content:"\f7a0"}.fa-glasses:before{content:"\f530"}.fa-glide:before{content:"\f2a5"}.fa-glide-g:before{content:"\f2a6"}.fa-globe:before{content:"\f0ac"}.fa-globe-africa:before{content:"\f57c"}.fa-globe-americas:before{content:"\f57d"}.fa-globe-asia:before{content:"\f57e"}.fa-globe-europe:before{content:"\f7a2"}.fa-gofore:before{content:"\f3a7"}.fa-golf-ball:before{content:"\f450"}.fa-goodreads:before{content:"\f3a8"}.fa-goodreads-g:before{content:"\f3a9"}.fa-google:before{content:"\f1a0"}.fa-google-drive:before{content:"\f3aa"}.fa-google-play:before{content:"\f3ab"}.fa-google-plus:before{content:"\f2b3"}.fa-google-plus-g:before{content:"\f0d5"}.fa-google-plus-square:before{content:"\f0d4"}.fa-google-wallet:before{content:"\f1ee"}.fa-gopuram:before{content:"\f664"}.fa-graduation-cap:before{content:"\f19d"}.fa-gratipay:before{content:"\f184"}.fa-grav:before{content:"\f2d6"}.fa-greater-than:before{content:"\f531"}.fa-greater-than-equal:before{content:"\f532"}.fa-grimace:before{content:"\f57f"}.fa-grin:before{content:"\f580"}.fa-grin-alt:before{content:"\f581"}.fa-grin-beam:before{content:"\f582"}.fa-grin-beam-sweat:before{content:"\f583"}.fa-grin-hearts:before{content:"\f584"}.fa-grin-squint:before{content:"\f585"}.fa-grin-squint-tears:before{content:"\f586"}.fa-grin-stars:before{content:"\f587"}.fa-grin-tears:before{content:"\f588"}.fa-grin-tongue:before{content:"\f589"}.fa-grin-tongue-squint:before{content:"\f58a"}.fa-grin-tongue-wink:before{content:"\f58b"}.fa-grin-wink:before{content:"\f58c"}.fa-grip-horizontal:before{content:"\f58d"}.fa-grip-lines:before{content:"\f7a4"}.fa-grip-lines-vertical:before{content:"\f7a5"}.fa-grip-vertical:before{content:"\f58e"}.fa-gripfire:before{content:"\f3ac"}.fa-grunt:before{content:"\f3ad"}.fa-guitar:before{content:"\f7a6"}.fa-gulp:before{content:"\f3ae"}.fa-h-square:before{content:"\f0fd"}.fa-hacker-news:before{content:"\f1d4"}.fa-hacker-news-square:before{content:"\f3af"}.fa-hackerrank:before{content:"\f5f7"}.fa-hamburger:before{content:"\f805"}.fa-hammer:before{content:"\f6e3"}.fa-hamsa:before{content:"\f665"}.fa-hand-holding:before{content:"\f4bd"}.fa-hand-holding-heart:before{content:"\f4be"}.fa-hand-holding-usd:before{content:"\f4c0"}.fa-hand-lizard:before{content:"\f258"}.fa-hand-middle-finger:before{content:"\f806"}.fa-hand-paper:before{content:"\f256"}.fa-hand-peace:before{content:"\f25b"}.fa-hand-point-down:before{content:"\f0a7"}.fa-hand-point-left:before{content:"\f0a5"}.fa-hand-point-right:before{content:"\f0a4"}.fa-hand-point-up:before{content:"\f0a6"}.fa-hand-pointer:before{content:"\f25a"}.fa-hand-rock:before{content:"\f255"}.fa-hand-scissors:before{content:"\f257"}.fa-hand-spock:before{content:"\f259"}.fa-hands:before{content:"\f4c2"}.fa-hands-helping:before{content:"\f4c4"}.fa-handshake:before{content:"\f2b5"}.fa-hanukiah:before{content:"\f6e6"}.fa-hard-hat:before{content:"\f807"}.fa-hashtag:before{content:"\f292"}.fa-hat-wizard:before{content:"\f6e8"}.fa-haykal:before{content:"\f666"}.fa-hdd:before{content:"\f0a0"}.fa-heading:before{content:"\f1dc"}.fa-headphones:before{content:"\f025"}.fa-headphones-alt:before{content:"\f58f"}.fa-headset:before{content:"\f590"}.fa-heart:before{content:"\f004"}.fa-heart-broken:before{content:"\f7a9"}.fa-heartbeat:before{content:"\f21e"}.fa-helicopter:before{content:"\f533"}.fa-highlighter:before{content:"\f591"}.fa-hiking:before{content:"\f6ec"}.fa-hippo:before{content:"\f6ed"}.fa-hips:before{content:"\f452"}.fa-hire-a-helper:before{content:"\f3b0"}.fa-history:before{content:"\f1da"}.fa-hockey-puck:before{content:"\f453"}.fa-holly-berry:before{content:"\f7aa"}.fa-home:before{content:"\f015"}.fa-hooli:before{content:"\f427"}.fa-hornbill:before{content:"\f592"}.fa-horse:before{content:"\f6f0"}.fa-horse-head:before{content:"\f7ab"}.fa-hospital:before{content:"\f0f8"}.fa-hospital-alt:before{content:"\f47d"}.fa-hospital-symbol:before{content:"\f47e"}.fa-hot-tub:before{content:"\f593"}.fa-hotdog:before{content:"\f80f"}.fa-hotel:before{content:"\f594"}.fa-hotjar:before{content:"\f3b1"}.fa-hourglass:before{content:"\f254"}.fa-hourglass-end:before{content:"\f253"}.fa-hourglass-half:before{content:"\f252"}.fa-hourglass-start:before{content:"\f251"}.fa-house-damage:before{content:"\f6f1"}.fa-houzz:before{content:"\f27c"}.fa-hryvnia:before{content:"\f6f2"}.fa-html5:before{content:"\f13b"}.fa-hubspot:before{content:"\f3b2"}.fa-i-cursor:before{content:"\f246"}.fa-ice-cream:before{content:"\f810"}.fa-icicles:before{content:"\f7ad"}.fa-id-badge:before{content:"\f2c1"}.fa-id-card:before{content:"\f2c2"}.fa-id-card-alt:before{content:"\f47f"}.fa-igloo:before{content:"\f7ae"}.fa-image:before{content:"\f03e"}.fa-images:before{content:"\f302"}.fa-imdb:before{content:"\f2d8"}.fa-inbox:before{content:"\f01c"}.fa-indent:before{content:"\f03c"}.fa-industry:before{content:"\f275"}.fa-infinity:before{content:"\f534"}.fa-info:before{content:"\f129"}.fa-info-circle:before{content:"\f05a"}.fa-instagram:before{content:"\f16d"}.fa-intercom:before{content:"\f7af"}.fa-internet-explorer:before{content:"\f26b"}.fa-invision:before{content:"\f7b0"}.fa-ioxhost:before{content:"\f208"}.fa-italic:before{content:"\f033"}.fa-itunes:before{content:"\f3b4"}.fa-itunes-note:before{content:"\f3b5"}.fa-java:before{content:"\f4e4"}.fa-jedi:before{content:"\f669"}.fa-jedi-order:before{content:"\f50e"}.fa-jenkins:before{content:"\f3b6"}.fa-jira:before{content:"\f7b1"}.fa-joget:before{content:"\f3b7"}.fa-joint:before{content:"\f595"}.fa-joomla:before{content:"\f1aa"}.fa-journal-whills:before{content:"\f66a"}.fa-js:before{content:"\f3b8"}.fa-js-square:before{content:"\f3b9"}.fa-jsfiddle:before{content:"\f1cc"}.fa-kaaba:before{content:"\f66b"}.fa-kaggle:before{content:"\f5fa"}.fa-key:before{content:"\f084"}.fa-keybase:before{content:"\f4f5"}.fa-keyboard:before{content:"\f11c"}.fa-keycdn:before{content:"\f3ba"}.fa-khanda:before{content:"\f66d"}.fa-kickstarter:before{content:"\f3bb"}.fa-kickstarter-k:before{content:"\f3bc"}.fa-kiss:before{content:"\f596"}.fa-kiss-beam:before{content:"\f597"}.fa-kiss-wink-heart:before{content:"\f598"}.fa-kiwi-bird:before{content:"\f535"}.fa-korvue:before{content:"\f42f"}.fa-landmark:before{content:"\f66f"}.fa-language:before{content:"\f1ab"}.fa-laptop:before{content:"\f109"}.fa-laptop-code:before{content:"\f5fc"}.fa-laptop-medical:before{content:"\f812"}.fa-laravel:before{content:"\f3bd"}.fa-lastfm:before{content:"\f202"}.fa-lastfm-square:before{content:"\f203"}.fa-laugh:before{content:"\f599"}.fa-laugh-beam:before{content:"\f59a"}.fa-laugh-squint:before{content:"\f59b"}.fa-laugh-wink:before{content:"\f59c"}.fa-layer-group:before{content:"\f5fd"}.fa-leaf:before{content:"\f06c"}.fa-leanpub:before{content:"\f212"}.fa-lemon:before{content:"\f094"}.fa-less:before{content:"\f41d"}.fa-less-than:before{content:"\f536"}.fa-less-than-equal:before{content:"\f537"}.fa-level-down-alt:before{content:"\f3be"}.fa-level-up-alt:before{content:"\f3bf"}.fa-life-ring:before{content:"\f1cd"}.fa-lightbulb:before{content:"\f0eb"}.fa-line:before{content:"\f3c0"}.fa-link:before{content:"\f0c1"}.fa-linkedin:before{content:"\f08c"}.fa-linkedin-in:before{content:"\f0e1"}.fa-linode:before{content:"\f2b8"}.fa-linux:before{content:"\f17c"}.fa-lira-sign:before{content:"\f195"}.fa-list:before{content:"\f03a"}.fa-list-alt:before{content:"\f022"}.fa-list-ol:before{content:"\f0cb"}.fa-list-ul:before{content:"\f0ca"}.fa-location-arrow:before{content:"\f124"}.fa-lock:before{content:"\f023"}.fa-lock-open:before{content:"\f3c1"}.fa-long-arrow-alt-down:before{content:"\f309"}.fa-long-arrow-alt-left:before{content:"\f30a"}.fa-long-arrow-alt-right:before{content:"\f30b"}.fa-long-arrow-alt-up:before{content:"\f30c"}.fa-low-vision:before{content:"\f2a8"}.fa-luggage-cart:before{content:"\f59d"}.fa-lyft:before{content:"\f3c3"}.fa-magento:before{content:"\f3c4"}.fa-magic:before{content:"\f0d0"}.fa-magnet:before{content:"\f076"}.fa-mail-bulk:before{content:"\f674"}.fa-mailchimp:before{content:"\f59e"}.fa-male:before{content:"\f183"}.fa-mandalorian:before{content:"\f50f"}.fa-map:before{content:"\f279"}.fa-map-marked:before{content:"\f59f"}.fa-map-marked-alt:before{content:"\f5a0"}.fa-map-marker:before{content:"\f041"}.fa-map-marker-alt:before{content:"\f3c5"}.fa-map-pin:before{content:"\f276"}.fa-map-signs:before{content:"\f277"}.fa-markdown:before{content:"\f60f"}.fa-marker:before{content:"\f5a1"}.fa-mars:before{content:"\f222"}.fa-mars-double:before{content:"\f227"}.fa-mars-stroke:before{content:"\f229"}.fa-mars-stroke-h:before{content:"\f22b"}.fa-mars-stroke-v:before{content:"\f22a"}.fa-mask:before{content:"\f6fa"}.fa-mastodon:before{content:"\f4f6"}.fa-maxcdn:before{content:"\f136"}.fa-medal:before{content:"\f5a2"}.fa-medapps:before{content:"\f3c6"}.fa-medium:before{content:"\f23a"}.fa-medium-m:before{content:"\f3c7"}.fa-medkit:before{content:"\f0fa"}.fa-medrt:before{content:"\f3c8"}.fa-meetup:before{content:"\f2e0"}.fa-megaport:before{content:"\f5a3"}.fa-meh:before{content:"\f11a"}.fa-meh-blank:before{content:"\f5a4"}.fa-meh-rolling-eyes:before{content:"\f5a5"}.fa-memory:before{content:"\f538"}.fa-mendeley:before{content:"\f7b3"}.fa-menorah:before{content:"\f676"}.fa-mercury:before{content:"\f223"}.fa-meteor:before{content:"\f753"}.fa-microchip:before{content:"\f2db"}.fa-microphone:before{content:"\f130"}.fa-microphone-alt:before{content:"\f3c9"}.fa-microphone-alt-slash:before{content:"\f539"}.fa-microphone-slash:before{content:"\f131"}.fa-microscope:before{content:"\f610"}.fa-microsoft:before{content:"\f3ca"}.fa-minus:before{content:"\f068"}.fa-minus-circle:before{content:"\f056"}.fa-minus-square:before{content:"\f146"}.fa-mitten:before{content:"\f7b5"}.fa-mix:before{content:"\f3cb"}.fa-mixcloud:before{content:"\f289"}.fa-mizuni:before{content:"\f3cc"}.fa-mobile:before{content:"\f10b"}.fa-mobile-alt:before{content:"\f3cd"}.fa-modx:before{content:"\f285"}.fa-monero:before{content:"\f3d0"}.fa-money-bill:before{content:"\f0d6"}.fa-money-bill-alt:before{content:"\f3d1"}.fa-money-bill-wave:before{content:"\f53a"}.fa-money-bill-wave-alt:before{content:"\f53b"}.fa-money-check:before{content:"\f53c"}.fa-money-check-alt:before{content:"\f53d"}.fa-monument:before{content:"\f5a6"}.fa-moon:before{content:"\f186"}.fa-mortar-pestle:before{content:"\f5a7"}.fa-mosque:before{content:"\f678"}.fa-motorcycle:before{content:"\f21c"}.fa-mountain:before{content:"\f6fc"}.fa-mouse-pointer:before{content:"\f245"}.fa-mug-hot:before{content:"\f7b6"}.fa-music:before{content:"\f001"}.fa-napster:before{content:"\f3d2"}.fa-neos:before{content:"\f612"}.fa-network-wired:before{content:"\f6ff"}.fa-neuter:before{content:"\f22c"}.fa-newspaper:before{content:"\f1ea"}.fa-nimblr:before{content:"\f5a8"}.fa-nintendo-switch:before{content:"\f418"}.fa-node:before{content:"\f419"}.fa-node-js:before{content:"\f3d3"}.fa-not-equal:before{content:"\f53e"}.fa-notes-medical:before{content:"\f481"}.fa-npm:before{content:"\f3d4"}.fa-ns8:before{content:"\f3d5"}.fa-nutritionix:before{content:"\f3d6"}.fa-object-group:before{content:"\f247"}.fa-object-ungroup:before{content:"\f248"}.fa-odnoklassniki:before{content:"\f263"}.fa-odnoklassniki-square:before{content:"\f264"}.fa-oil-can:before{content:"\f613"}.fa-old-republic:before{content:"\f510"}.fa-om:before{content:"\f679"}.fa-opencart:before{content:"\f23d"}.fa-openid:before{content:"\f19b"}.fa-opera:before{content:"\f26a"}.fa-optin-monster:before{content:"\f23c"}.fa-osi:before{content:"\f41a"}.fa-otter:before{content:"\f700"}.fa-outdent:before{content:"\f03b"}.fa-page4:before{content:"\f3d7"}.fa-pagelines:before{content:"\f18c"}.fa-pager:before{content:"\f815"}.fa-paint-brush:before{content:"\f1fc"}.fa-paint-roller:before{content:"\f5aa"}.fa-palette:before{content:"\f53f"}.fa-palfed:before{content:"\f3d8"}.fa-pallet:before{content:"\f482"}.fa-paper-plane:before{content:"\f1d8"}.fa-paperclip:before{content:"\f0c6"}.fa-parachute-box:before{content:"\f4cd"}.fa-paragraph:before{content:"\f1dd"}.fa-parking:before{content:"\f540"}.fa-passport:before{content:"\f5ab"}.fa-pastafarianism:before{content:"\f67b"}.fa-paste:before{content:"\f0ea"}.fa-patreon:before{content:"\f3d9"}.fa-pause:before{content:"\f04c"}.fa-pause-circle:before{content:"\f28b"}.fa-paw:before{content:"\f1b0"}.fa-paypal:before{content:"\f1ed"}.fa-peace:before{content:"\f67c"}.fa-pen:before{content:"\f304"}.fa-pen-alt:before{content:"\f305"}.fa-pen-fancy:before{content:"\f5ac"}.fa-pen-nib:before{content:"\f5ad"}.fa-pen-square:before{content:"\f14b"}.fa-pencil-alt:before{content:"\f303"}.fa-pencil-ruler:before{content:"\f5ae"}.fa-penny-arcade:before{content:"\f704"}.fa-people-carry:before{content:"\f4ce"}.fa-pepper-hot:before{content:"\f816"}.fa-percent:before{content:"\f295"}.fa-percentage:before{content:"\f541"}.fa-periscope:before{content:"\f3da"}.fa-person-booth:before{content:"\f756"}.fa-phabricator:before{content:"\f3db"}.fa-phoenix-framework:before{content:"\f3dc"}.fa-phoenix-squadron:before{content:"\f511"}.fa-phone:before{content:"\f095"}.fa-phone-slash:before{content:"\f3dd"}.fa-phone-square:before{content:"\f098"}.fa-phone-volume:before{content:"\f2a0"}.fa-php:before{content:"\f457"}.fa-pied-piper:before{content:"\f2ae"}.fa-pied-piper-alt:before{content:"\f1a8"}.fa-pied-piper-hat:before{content:"\f4e5"}.fa-pied-piper-pp:before{content:"\f1a7"}.fa-piggy-bank:before{content:"\f4d3"}.fa-pills:before{content:"\f484"}.fa-pinterest:before{content:"\f0d2"}.fa-pinterest-p:before{content:"\f231"}.fa-pinterest-square:before{content:"\f0d3"}.fa-pizza-slice:before{content:"\f818"}.fa-place-of-worship:before{content:"\f67f"}.fa-plane:before{content:"\f072"}.fa-plane-arrival:before{content:"\f5af"}.fa-plane-departure:before{content:"\f5b0"}.fa-play:before{content:"\f04b"}.fa-play-circle:before{content:"\f144"}.fa-playstation:before{content:"\f3df"}.fa-plug:before{content:"\f1e6"}.fa-plus:before{content:"\f067"}.fa-plus-circle:before{content:"\f055"}.fa-plus-square:before{content:"\f0fe"}.fa-podcast:before{content:"\f2ce"}.fa-poll:before{content:"\f681"}.fa-poll-h:before{content:"\f682"}.fa-poo:before{content:"\f2fe"}.fa-poo-storm:before{content:"\f75a"}.fa-poop:before{content:"\f619"}.fa-portrait:before{content:"\f3e0"}.fa-pound-sign:before{content:"\f154"}.fa-power-off:before{content:"\f011"}.fa-pray:before{content:"\f683"}.fa-praying-hands:before{content:"\f684"}.fa-prescription:before{content:"\f5b1"}.fa-prescription-bottle:before{content:"\f485"}.fa-prescription-bottle-alt:before{content:"\f486"}.fa-print:before{content:"\f02f"}.fa-procedures:before{content:"\f487"}.fa-product-hunt:before{content:"\f288"}.fa-project-diagram:before{content:"\f542"}.fa-pushed:before{content:"\f3e1"}.fa-puzzle-piece:before{content:"\f12e"}.fa-python:before{content:"\f3e2"}.fa-qq:before{content:"\f1d6"}.fa-qrcode:before{content:"\f029"}.fa-question:before{content:"\f128"}.fa-question-circle:before{content:"\f059"}.fa-quidditch:before{content:"\f458"}.fa-quinscape:before{content:"\f459"}.fa-quora:before{content:"\f2c4"}.fa-quote-left:before{content:"\f10d"}.fa-quote-right:before{content:"\f10e"}.fa-quran:before{content:"\f687"}.fa-r-project:before{content:"\f4f7"}.fa-radiation:before{content:"\f7b9"}.fa-radiation-alt:before{content:"\f7ba"}.fa-rainbow:before{content:"\f75b"}.fa-random:before{content:"\f074"}.fa-raspberry-pi:before{content:"\f7bb"}.fa-ravelry:before{content:"\f2d9"}.fa-react:before{content:"\f41b"}.fa-reacteurope:before{content:"\f75d"}.fa-readme:before{content:"\f4d5"}.fa-rebel:before{content:"\f1d0"}.fa-receipt:before{content:"\f543"}.fa-recycle:before{content:"\f1b8"}.fa-red-river:before{content:"\f3e3"}.fa-reddit:before{content:"\f1a1"}.fa-reddit-alien:before{content:"\f281"}.fa-reddit-square:before{content:"\f1a2"}.fa-redhat:before{content:"\f7bc"}.fa-redo:before{content:"\f01e"}.fa-redo-alt:before{content:"\f2f9"}.fa-registered:before{content:"\f25d"}.fa-renren:before{content:"\f18b"}.fa-reply:before{content:"\f3e5"}.fa-reply-all:before{content:"\f122"}.fa-replyd:before{content:"\f3e6"}.fa-republican:before{content:"\f75e"}.fa-researchgate:before{content:"\f4f8"}.fa-resolving:before{content:"\f3e7"}.fa-restroom:before{content:"\f7bd"}.fa-retweet:before{content:"\f079"}.fa-rev:before{content:"\f5b2"}.fa-ribbon:before{content:"\f4d6"}.fa-ring:before{content:"\f70b"}.fa-road:before{content:"\f018"}.fa-robot:before{content:"\f544"}.fa-rocket:before{content:"\f135"}.fa-rocketchat:before{content:"\f3e8"}.fa-rockrms:before{content:"\f3e9"}.fa-route:before{content:"\f4d7"}.fa-rss:before{content:"\f09e"}.fa-rss-square:before{content:"\f143"}.fa-ruble-sign:before{content:"\f158"}.fa-ruler:before{content:"\f545"}.fa-ruler-combined:before{content:"\f546"}.fa-ruler-horizontal:before{content:"\f547"}.fa-ruler-vertical:before{content:"\f548"}.fa-running:before{content:"\f70c"}.fa-rupee-sign:before{content:"\f156"}.fa-sad-cry:before{content:"\f5b3"}.fa-sad-tear:before{content:"\f5b4"}.fa-safari:before{content:"\f267"}.fa-sass:before{content:"\f41e"}.fa-satellite:before{content:"\f7bf"}.fa-satellite-dish:before{content:"\f7c0"}.fa-save:before{content:"\f0c7"}.fa-schlix:before{content:"\f3ea"}.fa-school:before{content:"\f549"}.fa-screwdriver:before{content:"\f54a"}.fa-scribd:before{content:"\f28a"}.fa-scroll:before{content:"\f70e"}.fa-sd-card:before{content:"\f7c2"}.fa-search:before{content:"\f002"}.fa-search-dollar:before{content:"\f688"}.fa-search-location:before{content:"\f689"}.fa-search-minus:before{content:"\f010"}.fa-search-plus:before{content:"\f00e"}.fa-searchengin:before{content:"\f3eb"}.fa-seedling:before{content:"\f4d8"}.fa-sellcast:before{content:"\f2da"}.fa-sellsy:before{content:"\f213"}.fa-server:before{content:"\f233"}.fa-servicestack:before{content:"\f3ec"}.fa-shapes:before{content:"\f61f"}.fa-share:before{content:"\f064"}.fa-share-alt:before{content:"\f1e0"}.fa-share-alt-square:before{content:"\f1e1"}.fa-share-square:before{content:"\f14d"}.fa-shekel-sign:before{content:"\f20b"}.fa-shield-alt:before{content:"\f3ed"}.fa-ship:before{content:"\f21a"}.fa-shipping-fast:before{content:"\f48b"}.fa-shirtsinbulk:before{content:"\f214"}.fa-shoe-prints:before{content:"\f54b"}.fa-shopping-bag:before{content:"\f290"}.fa-shopping-basket:before{content:"\f291"}.fa-shopping-cart:before{content:"\f07a"}.fa-shopware:before{content:"\f5b5"}.fa-shower:before{content:"\f2cc"}.fa-shuttle-van:before{content:"\f5b6"}.fa-sign:before{content:"\f4d9"}.fa-sign-in-alt:before{content:"\f2f6"}.fa-sign-language:before{content:"\f2a7"}.fa-sign-out-alt:before{content:"\f2f5"}.fa-signal:before{content:"\f012"}.fa-signature:before{content:"\f5b7"}.fa-sim-card:before{content:"\f7c4"}.fa-simplybuilt:before{content:"\f215"}.fa-sistrix:before{content:"\f3ee"}.fa-sitemap:before{content:"\f0e8"}.fa-sith:before{content:"\f512"}.fa-skating:before{content:"\f7c5"}.fa-sketch:before{content:"\f7c6"}.fa-skiing:before{content:"\f7c9"}.fa-skiing-nordic:before{content:"\f7ca"}.fa-skull:before{content:"\f54c"}.fa-skull-crossbones:before{content:"\f714"}.fa-skyatlas:before{content:"\f216"}.fa-skype:before{content:"\f17e"}.fa-slack:before{content:"\f198"}.fa-slack-hash:before{content:"\f3ef"}.fa-slash:before{content:"\f715"}.fa-sleigh:before{content:"\f7cc"}.fa-sliders-h:before{content:"\f1de"}.fa-slideshare:before{content:"\f1e7"}.fa-smile:before{content:"\f118"}.fa-smile-beam:before{content:"\f5b8"}.fa-smile-wink:before{content:"\f4da"}.fa-smog:before{content:"\f75f"}.fa-smoking:before{content:"\f48d"}.fa-smoking-ban:before{content:"\f54d"}.fa-sms:before{content:"\f7cd"}.fa-snapchat:before{content:"\f2ab"}.fa-snapchat-ghost:before{content:"\f2ac"}.fa-snapchat-square:before{content:"\f2ad"}.fa-snowboarding:before{content:"\f7ce"}.fa-snowflake:before{content:"\f2dc"}.fa-snowman:before{content:"\f7d0"}.fa-snowplow:before{content:"\f7d2"}.fa-socks:before{content:"\f696"}.fa-solar-panel:before{content:"\f5ba"}.fa-sort:before{content:"\f0dc"}.fa-sort-alpha-down:before{content:"\f15d"}.fa-sort-alpha-up:before{content:"\f15e"}.fa-sort-amount-down:before{content:"\f160"}.fa-sort-amount-up:before{content:"\f161"}.fa-sort-down:before{content:"\f0dd"}.fa-sort-numeric-down:before{content:"\f162"}.fa-sort-numeric-up:before{content:"\f163"}.fa-sort-up:before{content:"\f0de"}.fa-soundcloud:before{content:"\f1be"}.fa-sourcetree:before{content:"\f7d3"}.fa-spa:before{content:"\f5bb"}.fa-space-shuttle:before{content:"\f197"}.fa-speakap:before{content:"\f3f3"}.fa-spider:before{content:"\f717"}.fa-spinner:before{content:"\f110"}.fa-splotch:before{content:"\f5bc"}.fa-spotify:before{content:"\f1bc"}.fa-spray-can:before{content:"\f5bd"}.fa-square:before{content:"\f0c8"}.fa-square-full:before{content:"\f45c"}.fa-square-root-alt:before{content:"\f698"}.fa-squarespace:before{content:"\f5be"}.fa-stack-exchange:before{content:"\f18d"}.fa-stack-overflow:before{content:"\f16c"}.fa-stamp:before{content:"\f5bf"}.fa-star:before{content:"\f005"}.fa-star-and-crescent:before{content:"\f699"}.fa-star-half:before{content:"\f089"}.fa-star-half-alt:before{content:"\f5c0"}.fa-star-of-david:before{content:"\f69a"}.fa-star-of-life:before{content:"\f621"}.fa-staylinked:before{content:"\f3f5"}.fa-steam:before{content:"\f1b6"}.fa-steam-square:before{content:"\f1b7"}.fa-steam-symbol:before{content:"\f3f6"}.fa-step-backward:before{content:"\f048"}.fa-step-forward:before{content:"\f051"}.fa-stethoscope:before{content:"\f0f1"}.fa-sticker-mule:before{content:"\f3f7"}.fa-sticky-note:before{content:"\f249"}.fa-stop:before{content:"\f04d"}.fa-stop-circle:before{content:"\f28d"}.fa-stopwatch:before{content:"\f2f2"}.fa-store:before{content:"\f54e"}.fa-store-alt:before{content:"\f54f"}.fa-strava:before{content:"\f428"}.fa-stream:before{content:"\f550"}.fa-street-view:before{content:"\f21d"}.fa-strikethrough:before{content:"\f0cc"}.fa-stripe:before{content:"\f429"}.fa-stripe-s:before{content:"\f42a"}.fa-stroopwafel:before{content:"\f551"}.fa-studiovinari:before{content:"\f3f8"}.fa-stumbleupon:before{content:"\f1a4"}.fa-stumbleupon-circle:before{content:"\f1a3"}.fa-subscript:before{content:"\f12c"}.fa-subway:before{content:"\f239"}.fa-suitcase:before{content:"\f0f2"}.fa-suitcase-rolling:before{content:"\f5c1"}.fa-sun:before{content:"\f185"}.fa-superpowers:before{content:"\f2dd"}.fa-superscript:before{content:"\f12b"}.fa-supple:before{content:"\f3f9"}.fa-surprise:before{content:"\f5c2"}.fa-suse:before{content:"\f7d6"}.fa-swatchbook:before{content:"\f5c3"}.fa-swimmer:before{content:"\f5c4"}.fa-swimming-pool:before{content:"\f5c5"}.fa-synagogue:before{content:"\f69b"}.fa-sync:before{content:"\f021"}.fa-sync-alt:before{content:"\f2f1"}.fa-syringe:before{content:"\f48e"}.fa-table:before{content:"\f0ce"}.fa-table-tennis:before{content:"\f45d"}.fa-tablet:before{content:"\f10a"}.fa-tablet-alt:before{content:"\f3fa"}.fa-tablets:before{content:"\f490"}.fa-tachometer-alt:before{content:"\f3fd"}.fa-tag:before{content:"\f02b"}.fa-tags:before{content:"\f02c"}.fa-tape:before{content:"\f4db"}.fa-tasks:before{content:"\f0ae"}.fa-taxi:before{content:"\f1ba"}.fa-teamspeak:before{content:"\f4f9"}.fa-teeth:before{content:"\f62e"}.fa-teeth-open:before{content:"\f62f"}.fa-telegram:before{content:"\f2c6"}.fa-telegram-plane:before{content:"\f3fe"}.fa-temperature-high:before{content:"\f769"}.fa-temperature-low:before{content:"\f76b"}.fa-tencent-weibo:before{content:"\f1d5"}.fa-tenge:before{content:"\f7d7"}.fa-terminal:before{content:"\f120"}.fa-text-height:before{content:"\f034"}.fa-text-width:before{content:"\f035"}.fa-th:before{content:"\f00a"}.fa-th-large:before{content:"\f009"}.fa-th-list:before{content:"\f00b"}.fa-the-red-yeti:before{content:"\f69d"}.fa-theater-masks:before{content:"\f630"}.fa-themeco:before{content:"\f5c6"}.fa-themeisle:before{content:"\f2b2"}.fa-thermometer:before{content:"\f491"}.fa-thermometer-empty:before{content:"\f2cb"}.fa-thermometer-full:before{content:"\f2c7"}.fa-thermometer-half:before{content:"\f2c9"}.fa-thermometer-quarter:before{content:"\f2ca"}.fa-thermometer-three-quarters:before{content:"\f2c8"}.fa-think-peaks:before{content:"\f731"}.fa-thumbs-down:before{content:"\f165"}.fa-thumbs-up:before{content:"\f164"}.fa-thumbtack:before{content:"\f08d"}.fa-ticket-alt:before{content:"\f3ff"}.fa-times:before{content:"\f00d"}.fa-times-circle:before{content:"\f057"}.fa-tint:before{content:"\f043"}.fa-tint-slash:before{content:"\f5c7"}.fa-tired:before{content:"\f5c8"}.fa-toggle-off:before{content:"\f204"}.fa-toggle-on:before{content:"\f205"}.fa-toilet:before{content:"\f7d8"}.fa-toilet-paper:before{content:"\f71e"}.fa-toolbox:before{content:"\f552"}.fa-tools:before{content:"\f7d9"}.fa-tooth:before{content:"\f5c9"}.fa-torah:before{content:"\f6a0"}.fa-torii-gate:before{content:"\f6a1"}.fa-tractor:before{content:"\f722"}.fa-trade-federation:before{content:"\f513"}.fa-trademark:before{content:"\f25c"}.fa-traffic-light:before{content:"\f637"}.fa-train:before{content:"\f238"}.fa-tram:before{content:"\f7da"}.fa-transgender:before{content:"\f224"}.fa-transgender-alt:before{content:"\f225"}.fa-trash:before{content:"\f1f8"}.fa-trash-alt:before{content:"\f2ed"}.fa-trash-restore:before{content:"\f829"}.fa-trash-restore-alt:before{content:"\f82a"}.fa-tree:before{content:"\f1bb"}.fa-trello:before{content:"\f181"}.fa-tripadvisor:before{content:"\f262"}.fa-trophy:before{content:"\f091"}.fa-truck:before{content:"\f0d1"}.fa-truck-loading:before{content:"\f4de"}.fa-truck-monster:before{content:"\f63b"}.fa-truck-moving:before{content:"\f4df"}.fa-truck-pickup:before{content:"\f63c"}.fa-tshirt:before{content:"\f553"}.fa-tty:before{content:"\f1e4"}.fa-tumblr:before{content:"\f173"}.fa-tumblr-square:before{content:"\f174"}.fa-tv:before{content:"\f26c"}.fa-twitch:before{content:"\f1e8"}.fa-twitter:before{content:"\f099"}.fa-twitter-square:before{content:"\f081"}.fa-typo3:before{content:"\f42b"}.fa-uber:before{content:"\f402"}.fa-ubuntu:before{content:"\f7df"}.fa-uikit:before{content:"\f403"}.fa-umbrella:before{content:"\f0e9"}.fa-umbrella-beach:before{content:"\f5ca"}.fa-underline:before{content:"\f0cd"}.fa-undo:before{content:"\f0e2"}.fa-undo-alt:before{content:"\f2ea"}.fa-uniregistry:before{content:"\f404"}.fa-universal-access:before{content:"\f29a"}.fa-university:before{content:"\f19c"}.fa-unlink:before{content:"\f127"}.fa-unlock:before{content:"\f09c"}.fa-unlock-alt:before{content:"\f13e"}.fa-untappd:before{content:"\f405"}.fa-upload:before{content:"\f093"}.fa-ups:before{content:"\f7e0"}.fa-usb:before{content:"\f287"}.fa-user:before{content:"\f007"}.fa-user-alt:before{content:"\f406"}.fa-user-alt-slash:before{content:"\f4fa"}.fa-user-astronaut:before{content:"\f4fb"}.fa-user-check:before{content:"\f4fc"}.fa-user-circle:before{content:"\f2bd"}.fa-user-clock:before{content:"\f4fd"}.fa-user-cog:before{content:"\f4fe"}.fa-user-edit:before{content:"\f4ff"}.fa-user-friends:before{content:"\f500"}.fa-user-graduate:before{content:"\f501"}.fa-user-injured:before{content:"\f728"}.fa-user-lock:before{content:"\f502"}.fa-user-md:before{content:"\f0f0"}.fa-user-minus:before{content:"\f503"}.fa-user-ninja:before{content:"\f504"}.fa-user-nurse:before{content:"\f82f"}.fa-user-plus:before{content:"\f234"}.fa-user-secret:before{content:"\f21b"}.fa-user-shield:before{content:"\f505"}.fa-user-slash:before{content:"\f506"}.fa-user-tag:before{content:"\f507"}.fa-user-tie:before{content:"\f508"}.fa-user-times:before{content:"\f235"}.fa-users:before{content:"\f0c0"}.fa-users-cog:before{content:"\f509"}.fa-usps:before{content:"\f7e1"}.fa-ussunnah:before{content:"\f407"}.fa-utensil-spoon:before{content:"\f2e5"}.fa-utensils:before{content:"\f2e7"}.fa-vaadin:before{content:"\f408"}.fa-vector-square:before{content:"\f5cb"}.fa-venus:before{content:"\f221"}.fa-venus-double:before{content:"\f226"}.fa-venus-mars:before{content:"\f228"}.fa-viacoin:before{content:"\f237"}.fa-viadeo:before{content:"\f2a9"}.fa-viadeo-square:before{content:"\f2aa"}.fa-vial:before{content:"\f492"}.fa-vials:before{content:"\f493"}.fa-viber:before{content:"\f409"}.fa-video:before{content:"\f03d"}.fa-video-slash:before{content:"\f4e2"}.fa-vihara:before{content:"\f6a7"}.fa-vimeo:before{content:"\f40a"}.fa-vimeo-square:before{content:"\f194"}.fa-vimeo-v:before{content:"\f27d"}.fa-vine:before{content:"\f1ca"}.fa-vk:before{content:"\f189"}.fa-vnv:before{content:"\f40b"}.fa-volleyball-ball:before{content:"\f45f"}.fa-volume-down:before{content:"\f027"}.fa-volume-mute:before{content:"\f6a9"}.fa-volume-off:before{content:"\f026"}.fa-volume-up:before{content:"\f028"}.fa-vote-yea:before{content:"\f772"}.fa-vr-cardboard:before{content:"\f729"}.fa-vuejs:before{content:"\f41f"}.fa-walking:before{content:"\f554"}.fa-wallet:before{content:"\f555"}.fa-warehouse:before{content:"\f494"}.fa-water:before{content:"\f773"}.fa-weebly:before{content:"\f5cc"}.fa-weibo:before{content:"\f18a"}.fa-weight:before{content:"\f496"}.fa-weight-hanging:before{content:"\f5cd"}.fa-weixin:before{content:"\f1d7"}.fa-whatsapp:before{content:"\f232"}.fa-whatsapp-square:before{content:"\f40c"}.fa-wheelchair:before{content:"\f193"}.fa-whmcs:before{content:"\f40d"}.fa-wifi:before{content:"\f1eb"}.fa-wikipedia-w:before{content:"\f266"}.fa-wind:before{content:"\f72e"}.fa-window-close:before{content:"\f410"}.fa-window-maximize:before{content:"\f2d0"}.fa-window-minimize:before{content:"\f2d1"}.fa-window-restore:before{content:"\f2d2"}.fa-windows:before{content:"\f17a"}.fa-wine-bottle:before{content:"\f72f"}.fa-wine-glass:before{content:"\f4e3"}.fa-wine-glass-alt:before{content:"\f5ce"}.fa-wix:before{content:"\f5cf"}.fa-wizards-of-the-coast:before{content:"\f730"}.fa-wolf-pack-battalion:before{content:"\f514"}.fa-won-sign:before{content:"\f159"}.fa-wordpress:before{content:"\f19a"}.fa-wordpress-simple:before{content:"\f411"}.fa-wpbeginner:before{content:"\f297"}.fa-wpexplorer:before{content:"\f2de"}.fa-wpforms:before{content:"\f298"}.fa-wpressr:before{content:"\f3e4"}.fa-wrench:before{content:"\f0ad"}.fa-x-ray:before{content:"\f497"}.fa-xbox:before{content:"\f412"}.fa-xing:before{content:"\f168"}.fa-xing-square:before{content:"\f169"}.fa-y-combinator:before{content:"\f23b"}.fa-yahoo:before{content:"\f19e"}.fa-yandex:before{content:"\f413"}.fa-yandex-international:before{content:"\f414"}.fa-yarn:before{content:"\f7e3"}.fa-yelp:before{content:"\f1e9"}.fa-yen-sign:before{content:"\f157"}.fa-yin-yang:before{content:"\f6ad"}.fa-yoast:before{content:"\f2b1"}.fa-youtube:before{content:"\f167"}.fa-youtube-square:before{content:"\f431"}.fa-zhihu:before{content:"\f63f"}.sr-only{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.sr-only-focusable:active,.sr-only-focusable:focus{clip:auto;height:auto;margin:0;overflow:visible;position:static;width:auto}@font-face{font-family:"Font Awesome 5 Brands";font-style:normal;font-weight:normal;font-display:auto;src:url(../webfonts/fa-brands-400.woff2) format("woff2"),url(../webfonts/fa-brands-400.woff) format("woff")}.fab{font-family:"Font Awesome 5 Brands"}@font-face{font-family:"Font Awesome 5 Free";font-style:normal;font-weight:400;font-display:auto;src:url(../webfonts/fa-regular-400.woff2) format("woff2"),url(../webfonts/fa-regular-400.woff) format("woff")}.far{font-weight:400}@font-face{font-family:"Font Awesome 5 Free";font-style:normal;font-weight:900;font-display:auto;src:url(../webfonts/fa-solid-900.woff2) format("woff2"),url(../webfonts/fa-solid-900.woff) format("woff")}.fa,.far,.fas{font-family:"Font Awesome 5 Free"}.fa,.fas{font-weight:900} \ No newline at end of file diff --git a/installer/dup-installer/assets/font-awesome/css/index.php b/installer/dup-installer/assets/font-awesome/css/index.php new file mode 100644 index 00000000..c9199655 --- /dev/null +++ b/installer/dup-installer/assets/font-awesome/css/index.php @@ -0,0 +1,3 @@ + + + diff --git a/installer/dup-installer/assets/fonts/dots/dotsfont.ttf b/installer/dup-installer/assets/fonts/dots/dotsfont.ttf new file mode 100644 index 00000000..7a9d8268 Binary files /dev/null and b/installer/dup-installer/assets/fonts/dots/dotsfont.ttf differ diff --git a/installer/dup-installer/assets/fonts/dots/dotsfont.woff b/installer/dup-installer/assets/fonts/dots/dotsfont.woff new file mode 100644 index 00000000..2eb4cbb3 Binary files /dev/null and b/installer/dup-installer/assets/fonts/dots/dotsfont.woff differ diff --git a/installer/dup-installer/assets/fonts/dots/dotsfont.woff2 b/installer/dup-installer/assets/fonts/dots/dotsfont.woff2 new file mode 100644 index 00000000..c2d11420 Binary files /dev/null and b/installer/dup-installer/assets/fonts/dots/dotsfont.woff2 differ diff --git a/installer/dup-installer/assets/images/exclamation-triangle-orange.svg b/installer/dup-installer/assets/images/exclamation-triangle-orange.svg new file mode 100644 index 00000000..607bd61f --- /dev/null +++ b/installer/dup-installer/assets/images/exclamation-triangle-orange.svg @@ -0,0 +1,3 @@ + diff --git a/installer/dup-installer/assets/images/index.php b/installer/dup-installer/assets/images/index.php new file mode 100644 index 00000000..c9199655 --- /dev/null +++ b/installer/dup-installer/assets/images/index.php @@ -0,0 +1,3 @@ + + + + \ No newline at end of file diff --git a/installer/dup-installer/assets/inc.js.php b/installer/dup-installer/assets/inc.js.php new file mode 100644 index 00000000..d2f615e5 --- /dev/null +++ b/installer/dup-installer/assets/inc.js.php @@ -0,0 +1,502 @@ + + + + + + + + + + diff --git a/installer/dup-installer/assets/inc.libs.js b/installer/dup-installer/assets/inc.libs.js new file mode 100644 index 00000000..7b2bb86d --- /dev/null +++ b/installer/dup-installer/assets/inc.libs.js @@ -0,0 +1,97 @@ +/* ======================================== */ +/*! jQuery v3.5.0 | (c) JS Foundation and other contributors | jquery.org/license */ +!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(C,e){"use strict";var t=[],r=Object.getPrototypeOf,s=t.slice,g=t.flat?function(e){return t.flat.call(e)}:function(e){return t.concat.apply([],e)},u=t.push,i=t.indexOf,n={},o=n.toString,v=n.hasOwnProperty,a=v.toString,l=a.call(Object),y={},m=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},x=function(e){return null!=e&&e===e.window},E=C.document,c={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,n){var r,i,o=(n=n||E).createElement("script");if(o.text=e,t)for(r in c)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function w(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[o.call(e)]||"object":typeof e}var f="3.5.0",S=function(e,t){return new S.fn.init(e,t)};function p(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!m(e)&&!x(e)&&("array"===n||0===t||"number"==typeof t&&0+~]|"+M+")"+M+"*"),U=new RegExp(M+"|>"),X=new RegExp(F),V=new RegExp("^"+I+"$"),G={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+M+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){T()},ae=be(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{H.apply(t=O.call(p.childNodes),p.childNodes),t[p.childNodes.length].nodeType}catch(e){H={apply:t.length?function(e,t){L.apply(e,O.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function se(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&(T(e),e=e||C,E)){if(11!==p&&(u=Z.exec(t)))if(i=u[1]){if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(f&&(a=f.getElementById(i))&&y(e,a)&&a.id===i)return n.push(a),n}else{if(u[2])return H.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&d.getElementsByClassName&&e.getElementsByClassName)return H.apply(n,e.getElementsByClassName(i)),n}if(d.qsa&&!N[t+" "]&&(!v||!v.test(t))&&(1!==p||"object"!==e.nodeName.toLowerCase())){if(c=t,f=e,1===p&&(U.test(t)||z.test(t))){(f=ee.test(t)&&ye(e.parentNode)||e)===e&&d.scope||((s=e.getAttribute("id"))?s=s.replace(re,ie):e.setAttribute("id",s=S)),o=(l=h(t)).length;while(o--)l[o]=(s?"#"+s:":scope")+" "+xe(l[o]);c=l.join(",")}try{return H.apply(n,f.querySelectorAll(c)),n}catch(e){N(t,!0)}finally{s===S&&e.removeAttribute("id")}}}return g(t.replace($,"$1"),e,n,r)}function ue(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function le(e){return e[S]=!0,e}function ce(e){var t=C.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){var n=e.split("|"),r=n.length;while(r--)b.attrHandle[n[r]]=t}function pe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function de(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function he(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function ge(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&ae(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function ve(a){return le(function(o){return o=+o,le(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function ye(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(e in d=se.support={},i=se.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!Y.test(t||n&&n.nodeName||"HTML")},T=se.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:p;return r!=C&&9===r.nodeType&&r.documentElement&&(a=(C=r).documentElement,E=!i(C),p!=C&&(n=C.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",oe,!1):n.attachEvent&&n.attachEvent("onunload",oe)),d.scope=ce(function(e){return a.appendChild(e).appendChild(C.createElement("div")),"undefined"!=typeof e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),d.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),d.getElementsByTagName=ce(function(e){return e.appendChild(C.createComment("")),!e.getElementsByTagName("*").length}),d.getElementsByClassName=K.test(C.getElementsByClassName),d.getById=ce(function(e){return a.appendChild(e).id=S,!C.getElementsByName||!C.getElementsByName(S).length}),d.getById?(b.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(te,ne);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=d.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):d.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},b.find.CLASS=d.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&E)return t.getElementsByClassName(e)},s=[],v=[],(d.qsa=K.test(C.querySelectorAll))&&(ce(function(e){var t;a.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||v.push("\\["+M+"*(?:value|"+R+")"),e.querySelectorAll("[id~="+S+"-]").length||v.push("~="),(t=C.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||v.push("\\["+M+"*name"+M+"*="+M+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||v.push(":checked"),e.querySelectorAll("a#"+S+"+*").length||v.push(".#.+[+~]"),e.querySelectorAll("\\\f"),v.push("[\\r\\n\\f]")}),ce(function(e){e.innerHTML="";var t=C.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+M+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),a.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")})),(d.matchesSelector=K.test(c=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&ce(function(e){d.disconnectedMatch=c.call(e,"*"),c.call(e,"[s!='']:x"),s.push("!=",F)}),v=v.length&&new RegExp(v.join("|")),s=s.length&&new RegExp(s.join("|")),t=K.test(a.compareDocumentPosition),y=t||K.test(a.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},D=t?function(e,t){if(e===t)return l=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!d.sortDetached&&t.compareDocumentPosition(e)===n?e==C||e.ownerDocument==p&&y(p,e)?-1:t==C||t.ownerDocument==p&&y(p,t)?1:u?P(u,e)-P(u,t):0:4&n?-1:1)}:function(e,t){if(e===t)return l=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e==C?-1:t==C?1:i?-1:o?1:u?P(u,e)-P(u,t):0;if(i===o)return pe(e,t);n=e;while(n=n.parentNode)a.unshift(n);n=t;while(n=n.parentNode)s.unshift(n);while(a[r]===s[r])r++;return r?pe(a[r],s[r]):a[r]==p?-1:s[r]==p?1:0}),C},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(T(e),d.matchesSelector&&E&&!N[t+" "]&&(!s||!s.test(t))&&(!v||!v.test(t)))try{var n=c.call(e,t);if(n||d.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){N(t,!0)}return 0 ":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&X.test(n)&&(t=h(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=m[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&m(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=se.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1 :\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function D(e,n,r){return m(n)?S.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?S.grep(e,function(e){return e===n!==r}):"string"!=typeof n?S.grep(e,function(e){return-1 )[^>]*|#([\w-]+))$/;(S.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||j,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:q.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof S?t[0]:t,S.merge(this,S.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:E,!0)),N.test(r[1])&&S.isPlainObject(t))for(r in t)m(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=E.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):m(e)?void 0!==n.ready?n.ready(e):e(S):S.makeArray(e,this)}).prototype=S.fn,j=S(E);var L=/^(?:parents|prev(?:Until|All))/,H={children:!0,contents:!0,next:!0,prev:!0};function O(e,t){while((e=e[t])&&1!==e.nodeType);return e}S.fn.extend({has:function(e){var t=S(e,this),n=t.length;return this.filter(function(){for(var e=0;e \x20\t\r\n\f]*)/i,he=/^$|^module$|\/(?:java|ecma)script/i;ce=E.createDocumentFragment().appendChild(E.createElement("div")),(fe=E.createElement("input")).setAttribute("type","radio"),fe.setAttribute("checked","checked"),fe.setAttribute("name","t"),ce.appendChild(fe),y.checkClone=ce.cloneNode(!0).cloneNode(!0).lastChild.checked,ce.innerHTML="",y.noCloneChecked=!!ce.cloneNode(!0).lastChild.defaultValue,ce.innerHTML="",y.option=!!ce.lastChild;var ge={thead:[1," ","
"],col:[2,""],tr:[2,"
"," ","
"],td:[3,""],_default:[0,"",""]};function ve(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&A(e,t)?S.merge([e],n):n}function ye(e,t){for(var n=0,r=e.length;n
"," ",""]);var me=/<|?\w+;/;function xe(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d \s*$/g;function qe(e,t){return A(e,"table")&&A(11!==t.nodeType?t:t.firstChild,"tr")&&S(e).children("tbody")[0]||e}function Le(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function He(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Oe(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(Y.hasData(e)&&(s=Y.get(e).events))for(i in Y.remove(t,"handle events"),s)for(n=0,r=s[i].length;n ").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),E.head.appendChild(r[0])},abort:function(){i&&i()}}});var Ut,Xt=[],Vt=/(=)\?(?=&|$)|\?\?/;S.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Xt.pop()||S.expando+"_"+Ct.guid++;return this[e]=!0,e}}),S.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Vt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Vt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=m(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Vt,"$1"+r):!1!==e.jsonp&&(e.url+=(Et.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||S.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=C[r],C[r]=function(){o=arguments},n.always(function(){void 0===i?S(C).removeProp(r):C[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,Xt.push(r)),o&&m(i)&&i(o[0]),o=i=void 0}),"script"}),y.createHTMLDocument=((Ut=E.implementation.createHTMLDocument("").body).innerHTML="",2===Ut.childNodes.length),S.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(y.createHTMLDocument?((r=(t=E.implementation.createHTMLDocument("")).createElement("base")).href=E.location.href,t.head.appendChild(r)):t=E),o=!n&&[],(i=N.exec(e))?[t.createElement(i[1])]:(i=xe([e],t,o),o&&o.length&&S(o).remove(),S.merge([],i.childNodes)));var r,i,o},S.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1 ").append(S.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},S.expr.pseudos.animated=function(t){return S.grep(S.timers,function(e){return t===e.elem}).length},S.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=S.css(e,"position"),c=S(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=S.css(e,"top"),u=S.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),m(t)&&(t=t.call(e,n,S.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):("number"==typeof f.top&&(f.top+="px"),"number"==typeof f.left&&(f.left+="px"),c.css(f))}},S.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){S.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===S.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===S.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=S(e).offset()).top+=S.css(e,"borderTopWidth",!0),i.left+=S.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-S.css(r,"marginTop",!0),left:t.left-i.left-S.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===S.css(e,"position"))e=e.offsetParent;return e||re})}}),S.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;S.fn[t]=function(e){return $(this,function(e,t,n){var r;if(x(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),S.each(["top","left"],function(e,n){S.cssHooks[n]=$e(y.pixelPosition,function(e,t){if(t)return t=Be(e,n),Me.test(t)?S(e).position()[n]+"px":t})}),S.each({Height:"height",Width:"width"},function(a,s){S.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){S.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return $(this,function(e,t,n){var r;return x(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?S.css(e,t,i):S.style(e,t,n,i)},s,n?e:void 0,n)}})}),S.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){S.fn[t]=function(e){return this.on(t,e)}}),S.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),S.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){S.fn[n]=function(e,t){return 0"))}function n(e){var i="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return e.on("mouseout",i,function(){t(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&t(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&t(this).removeClass("ui-datepicker-next-hover")}).on("mouseover",i,o)}function o(){t.datepicker._isDisabledDatepicker(p.inline?p.dpDiv.parent()[0]:p.input[0])||(t(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),t(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&t(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&t(this).addClass("ui-datepicker-next-hover"))}function a(e,i){t.extend(e,i);for(var s in i)null==i[s]&&(e[s]=i[s]);return e}function r(t){return function(){var e=this.element.val();t.apply(this,arguments),this._refresh(),e!==this.element.val()&&this._trigger("change")}}t.ui=t.ui||{},t.ui.version="1.12.1";var l=0,h=Array.prototype.slice;t.cleanData=function(e){return function(i){var s,n,o;for(o=0;null!=(n=i[o]);o++)try{s=t._data(n,"events"),s&&s.remove&&t(n).triggerHandler("remove")}catch(a){}e(i)}}(t.cleanData),t.widget=function(e,i,s){var n,o,a,r={},l=e.split(".")[0];e=e.split(".")[1];var h=l+"-"+e;return s||(s=i,i=t.Widget),t.isArray(s)&&(s=t.extend.apply(null,[{}].concat(s))),t.expr[":"][h.toLowerCase()]=function(e){return!!t.data(e,h)},t[l]=t[l]||{},n=t[l][e],o=t[l][e]=function(t,e){return this._createWidget?(arguments.length&&this._createWidget(t,e),void 0):new o(t,e)},t.extend(o,n,{version:s.version,_proto:t.extend({},s),_childConstructors:[]}),a=new i,a.options=t.widget.extend({},a.options),t.each(s,function(e,s){return t.isFunction(s)?(r[e]=function(){function t(){return i.prototype[e].apply(this,arguments)}function n(t){return i.prototype[e].apply(this,t)}return function(){var e,i=this._super,o=this._superApply;return this._super=t,this._superApply=n,e=s.apply(this,arguments),this._super=i,this._superApply=o,e}}(),void 0):(r[e]=s,void 0)}),o.prototype=t.widget.extend(a,{widgetEventPrefix:n?a.widgetEventPrefix||e:e},r,{constructor:o,namespace:l,widgetName:e,widgetFullName:h}),n?(t.each(n._childConstructors,function(e,i){var s=i.prototype;t.widget(s.namespace+"."+s.widgetName,o,i._proto)}),delete n._childConstructors):i._childConstructors.push(o),t.widget.bridge(e,o),o},t.widget.extend=function(e){for(var i,s,n=h.call(arguments,1),o=0,a=n.length;a>o;o++)for(i in n[o])s=n[o][i],n[o].hasOwnProperty(i)&&void 0!==s&&(e[i]=t.isPlainObject(s)?t.isPlainObject(e[i])?t.widget.extend({},e[i],s):t.widget.extend({},s):s);return e},t.widget.bridge=function(e,i){var s=i.prototype.widgetFullName||e;t.fn[e]=function(n){var o="string"==typeof n,a=h.call(arguments,1),r=this;return o?this.length||"instance"!==n?this.each(function(){var i,o=t.data(this,s);return"instance"===n?(r=o,!1):o?t.isFunction(o[n])&&"_"!==n.charAt(0)?(i=o[n].apply(o,a),i!==o&&void 0!==i?(r=i&&i.jquery?r.pushStack(i.get()):i,!1):void 0):t.error("no such method '"+n+"' for "+e+" widget instance"):t.error("cannot call methods on "+e+" prior to initialization; "+"attempted to call method '"+n+"'")}):r=void 0:(a.length&&(n=t.widget.extend.apply(null,[n].concat(a))),this.each(function(){var e=t.data(this,s);e?(e.option(n||{}),e._init&&e._init()):t.data(this,s,new i(n,this))})),r}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:" ",options:{classes:{},disabled:!1,create:null},_createWidget:function(e,i){i=t(i||this.defaultElement||this)[0],this.element=t(i),this.uuid=l++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=t(),this.hoverable=t(),this.focusable=t(),this.classesElementLookup={},i!==this&&(t.data(i,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===i&&this.destroy()}}),this.document=t(i.style?i.ownerDocument:i.document||i),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this.options=t.widget.extend({},this.options,this._getCreateOptions(),e),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){var e=this;this._destroy(),t.each(this.classesElementLookup,function(t,i){e._removeClass(i,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:t.noop,widget:function(){return this.element},option:function(e,i){var s,n,o,a=e;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof e)if(a={},s=e.split("."),e=s.shift(),s.length){for(n=a[e]=t.widget.extend({},this.options[e]),o=0;s.length-1>o;o++)n[s[o]]=n[s[o]]||{},n=n[s[o]];if(e=s.pop(),1===arguments.length)return void 0===n[e]?null:n[e];n[e]=i}else{if(1===arguments.length)return void 0===this.options[e]?null:this.options[e];a[e]=i}return this._setOptions(a),this},_setOptions:function(t){var e;for(e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(e){var i,s,n;for(i in e)n=this.classesElementLookup[i],e[i]!==this.options.classes[i]&&n&&n.length&&(s=t(n.get()),this._removeClass(n,i),s.addClass(this._classes({element:s,keys:i,classes:e,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(e){function i(i,o){var a,r;for(r=0;i.length>r;r++)a=n.classesElementLookup[i[r]]||t(),a=e.add?t(t.unique(a.get().concat(e.element.get()))):t(a.not(e.element).get()),n.classesElementLookup[i[r]]=a,s.push(i[r]),o&&e.classes[i[r]]&&s.push(e.classes[i[r]])}var s=[],n=this;return e=t.extend({element:this.element,classes:this.options.classes||{}},e),this._on(e.element,{remove:"_untrackClassesElement"}),e.keys&&i(e.keys.match(/\S+/g)||[],!0),e.extra&&i(e.extra.match(/\S+/g)||[]),s.join(" ")},_untrackClassesElement:function(e){var i=this;t.each(i.classesElementLookup,function(s,n){-1!==t.inArray(e.target,n)&&(i.classesElementLookup[s]=t(n.not(e.target).get()))})},_removeClass:function(t,e,i){return this._toggleClass(t,e,i,!1)},_addClass:function(t,e,i){return this._toggleClass(t,e,i,!0)},_toggleClass:function(t,e,i,s){s="boolean"==typeof s?s:i;var n="string"==typeof t||null===t,o={extra:n?e:i,keys:n?t:e,element:n?this.element:t,add:s};return o.element.toggleClass(this._classes(o),s),this},_on:function(e,i,s){var n,o=this;"boolean"!=typeof e&&(s=i,i=e,e=!1),s?(i=n=t(i),this.bindings=this.bindings.add(i)):(s=i,i=this.element,n=this.widget()),t.each(s,function(s,a){function r(){return e||o.options.disabled!==!0&&!t(this).hasClass("ui-state-disabled")?("string"==typeof a?o[a]:a).apply(o,arguments):void 0}"string"!=typeof a&&(r.guid=a.guid=a.guid||r.guid||t.guid++);var l=s.match(/^([\w:-]*)\s*(.*)$/),h=l[1]+o.eventNamespace,c=l[2];c?n.on(h,c,r):i.on(h,r)})},_off:function(e,i){i=(i||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.off(i).off(i),this.bindings=t(this.bindings.not(e).get()),this.focusable=t(this.focusable.not(e).get()),this.hoverable=t(this.hoverable.not(e).get())},_delay:function(t,e){function i(){return("string"==typeof t?s[t]:t).apply(s,arguments)}var s=this;return setTimeout(i,e||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){this._addClass(t(e.currentTarget),null,"ui-state-hover")},mouseleave:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){this._addClass(t(e.currentTarget),null,"ui-state-focus")},focusout:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-focus")}})},_trigger:function(e,i,s){var n,o,a=this.options[e];if(s=s||{},i=t.Event(i),i.type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),i.target=this.element[0],o=i.originalEvent)for(n in o)n in i||(i[n]=o[n]);return this.element.trigger(i,s),!(t.isFunction(a)&&a.apply(this.element[0],[i].concat(s))===!1||i.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},function(e,i){t.Widget.prototype["_"+e]=function(s,n,o){"string"==typeof n&&(n={effect:n});var a,r=n?n===!0||"number"==typeof n?i:n.effect||i:e;n=n||{},"number"==typeof n&&(n={duration:n}),a=!t.isEmptyObject(n),n.complete=o,n.delay&&s.delay(n.delay),a&&t.effects&&t.effects.effect[r]?s[e](n):r!==e&&s[r]?s[r](n.duration,n.easing,o):s.queue(function(i){t(this)[e](),o&&o.call(s[0]),i()})}}),t.widget,function(){function e(t,e,i){return[parseFloat(t[0])*(u.test(t[0])?e/100:1),parseFloat(t[1])*(u.test(t[1])?i/100:1)]}function i(e,i){return parseInt(t.css(e,i),10)||0}function s(e){var i=e[0];return 9===i.nodeType?{width:e.width(),height:e.height(),offset:{top:0,left:0}}:t.isWindow(i)?{width:e.width(),height:e.height(),offset:{top:e.scrollTop(),left:e.scrollLeft()}}:i.preventDefault?{width:0,height:0,offset:{top:i.pageY,left:i.pageX}}:{width:e.outerWidth(),height:e.outerHeight(),offset:e.offset()}}var n,o=Math.max,a=Math.abs,r=/left|center|right/,l=/top|center|bottom/,h=/[\+\-]\d+(\.[\d]+)?%?/,c=/^\w+/,u=/%$/,d=t.fn.position;t.position={scrollbarWidth:function(){if(void 0!==n)return n;var e,i,s=t(""),o=s.children()[0];return t("body").append(s),e=o.offsetWidth,s.css("overflow","scroll"),i=o.offsetWidth,e===i&&(i=s[0].clientWidth),s.remove(),n=e-i},getScrollInfo:function(e){var i=e.isWindow||e.isDocument?"":e.element.css("overflow-x"),s=e.isWindow||e.isDocument?"":e.element.css("overflow-y"),n="scroll"===i||"auto"===i&&e.widthi?"left":e>0?"right":"center",vertical:0>r?"top":s>0?"bottom":"middle"};h>p&&p>a(e+i)&&(u.horizontal="center"),c>f&&f>a(s+r)&&(u.vertical="middle"),u.important=o(a(e),a(i))>o(a(s),a(r))?"horizontal":"vertical",n.using.call(this,t,u)}),l.offset(t.extend(D,{using:r}))})},t.ui.position={fit:{left:function(t,e){var i,s=e.within,n=s.isWindow?s.scrollLeft:s.offset.left,a=s.width,r=t.left-e.collisionPosition.marginLeft,l=n-r,h=r+e.collisionWidth-a-n;e.collisionWidth>a?l>0&&0>=h?(i=t.left+l+e.collisionWidth-a-n,t.left+=l-i):t.left=h>0&&0>=l?n:l>h?n+a-e.collisionWidth:n:l>0?t.left+=l:h>0?t.left-=h:t.left=o(t.left-r,t.left)},top:function(t,e){var i,s=e.within,n=s.isWindow?s.scrollTop:s.offset.top,a=e.within.height,r=t.top-e.collisionPosition.marginTop,l=n-r,h=r+e.collisionHeight-a-n;e.collisionHeight>a?l>0&&0>=h?(i=t.top+l+e.collisionHeight-a-n,t.top+=l-i):t.top=h>0&&0>=l?n:l>h?n+a-e.collisionHeight:n:l>0?t.top+=l:h>0?t.top-=h:t.top=o(t.top-r,t.top)}},flip:{left:function(t,e){var i,s,n=e.within,o=n.offset.left+n.scrollLeft,r=n.width,l=n.isWindow?n.scrollLeft:n.offset.left,h=t.left-e.collisionPosition.marginLeft,c=h-l,u=h+e.collisionWidth-r-l,d="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,p="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,f=-2*e.offset[0];0>c?(i=t.left+d+p+f+e.collisionWidth-r-o,(0>i||a(c)>i)&&(t.left+=d+p+f)):u>0&&(s=t.left-e.collisionPosition.marginLeft+d+p+f-l,(s>0||u>a(s))&&(t.left+=d+p+f))},top:function(t,e){var i,s,n=e.within,o=n.offset.top+n.scrollTop,r=n.height,l=n.isWindow?n.scrollTop:n.offset.top,h=t.top-e.collisionPosition.marginTop,c=h-l,u=h+e.collisionHeight-r-l,d="top"===e.my[1],p=d?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,f="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,g=-2*e.offset[1];0>c?(s=t.top+p+f+g+e.collisionHeight-r-o,(0>s||a(c)>s)&&(t.top+=p+f+g)):u>0&&(i=t.top-e.collisionPosition.marginTop+p+f+g-l,(i>0||u>a(i))&&(t.top+=p+f+g))}},flipfit:{left:function(){t.ui.position.flip.left.apply(this,arguments),t.ui.position.fit.left.apply(this,arguments)},top:function(){t.ui.position.flip.top.apply(this,arguments),t.ui.position.fit.top.apply(this,arguments)}}}}(),t.ui.position,t.extend(t.expr[":"],{data:t.expr.createPseudo?t.expr.createPseudo(function(e){return function(i){return!!t.data(i,e)}}):function(e,i,s){return!!t.data(e,s[3])}}),t.fn.extend({disableSelection:function(){var t="onselectstart"in document.createElement("div")?"selectstart":"mousedown";return function(){return this.on(t+".ui-disableSelection",function(t){t.preventDefault()})}}(),enableSelection:function(){return this.off(".ui-disableSelection")}}),t.ui.focusable=function(i,s){var n,o,a,r,l,h=i.nodeName.toLowerCase();return"area"===h?(n=i.parentNode,o=n.name,i.href&&o&&"map"===n.nodeName.toLowerCase()?(a=t("img[usemap='#"+o+"']"),a.length>0&&a.is(":visible")):!1):(/^(input|select|textarea|button|object)$/.test(h)?(r=!i.disabled,r&&(l=t(i).closest("fieldset")[0],l&&(r=!l.disabled))):r="a"===h?i.href||s:s,r&&t(i).is(":visible")&&e(t(i)))},t.extend(t.expr[":"],{focusable:function(e){return t.ui.focusable(e,null!=t.attr(e,"tabindex"))}}),t.ui.focusable,t.fn.form=function(){return"string"==typeof this[0].form?this.closest("form"):t(this[0].form)},t.ui.formResetMixin={_formResetHandler:function(){var e=t(this);setTimeout(function(){var i=e.data("ui-form-reset-instances");t.each(i,function(){this.refresh()})})},_bindFormResetHandler:function(){if(this.form=this.element.form(),this.form.length){var t=this.form.data("ui-form-reset-instances")||[];t.length||this.form.on("reset.ui-form-reset",this._formResetHandler),t.push(this),this.form.data("ui-form-reset-instances",t)}},_unbindFormResetHandler:function(){if(this.form.length){var e=this.form.data("ui-form-reset-instances");e.splice(t.inArray(this,e),1),e.length?this.form.data("ui-form-reset-instances",e):this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset")}}},"1.7"===t.fn.jquery.substring(0,3)&&(t.each(["Width","Height"],function(e,i){function s(e,i,s,o){return t.each(n,function(){i-=parseFloat(t.css(e,"padding"+this))||0,s&&(i-=parseFloat(t.css(e,"border"+this+"Width"))||0),o&&(i-=parseFloat(t.css(e,"margin"+this))||0)}),i}var n="Width"===i?["Left","Right"]:["Top","Bottom"],o=i.toLowerCase(),a={innerWidth:t.fn.innerWidth,innerHeight:t.fn.innerHeight,outerWidth:t.fn.outerWidth,outerHeight:t.fn.outerHeight};t.fn["inner"+i]=function(e){return void 0===e?a["inner"+i].call(this):this.each(function(){t(this).css(o,s(this,e)+"px")})},t.fn["outer"+i]=function(e,n){return"number"!=typeof e?a["outer"+i].call(this,e):this.each(function(){t(this).css(o,s(this,e,!0,n)+"px")})}}),t.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),t.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38},t.ui.escapeSelector=function(){var t=/([!"#$%&'()*+,./:;<=>?@[\]^`{|}~])/g;return function(e){return e.replace(t,"\\$1")}}(),t.fn.labels=function(){var e,i,s,n,o;return this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(n=this.eq(0).parents("label"),s=this.attr("id"),s&&(e=this.eq(0).parents().last(),o=e.add(e.length?e.siblings():this.siblings()),i="label[for='"+t.ui.escapeSelector(s)+"']",n=n.add(o.find(i).addBack(i))),this.pushStack(n))},t.fn.scrollParent=function(e){var i=this.css("position"),s="absolute"===i,n=e?/(auto|scroll|hidden)/:/(auto|scroll)/,o=this.parents().filter(function(){var e=t(this);return s&&"static"===e.css("position")?!1:n.test(e.css("overflow")+e.css("overflow-y")+e.css("overflow-x"))}).eq(0);return"fixed"!==i&&o.length?o:t(this[0].ownerDocument||document)},t.extend(t.expr[":"],{tabbable:function(e){var i=t.attr(e,"tabindex"),s=null!=i;return(!s||i>=0)&&t.ui.focusable(e,s)}}),t.fn.extend({uniqueId:function(){var t=0;return function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++t)})}}(),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&t(this).removeAttr("id")})}}),t.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase());var c=!1;t(document).on("mouseup",function(){c=!1}),t.widget("ui.mouse",{version:"1.12.1",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.on("mousedown."+this.widgetName,function(t){return e._mouseDown(t)}).on("click."+this.widgetName,function(i){return!0===t.data(i.target,e.widgetName+".preventClickEvent")?(t.removeData(i.target,e.widgetName+".preventClickEvent"),i.stopImmediatePropagation(),!1):void 0}),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(e){if(!c){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(e),this._mouseDownEvent=e;var i=this,s=1===e.which,n="string"==typeof this.options.cancel&&e.target.nodeName?t(e.target).closest(this.options.cancel).length:!1;return s&&!n&&this._mouseCapture(e)?(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){i.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=this._mouseStart(e)!==!1,!this._mouseStarted)?(e.preventDefault(),!0):(!0===t.data(e.target,this.widgetName+".preventClickEvent")&&t.removeData(e.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(t){return i._mouseMove(t)},this._mouseUpDelegate=function(t){return i._mouseUp(t)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),e.preventDefault(),c=!0,!0)):!0}},_mouseMove:function(e){if(this._mouseMoved){if(t.ui.ie&&(!document.documentMode||9>document.documentMode)&&!e.button)return this._mouseUp(e);if(!e.which)if(e.originalEvent.altKey||e.originalEvent.ctrlKey||e.originalEvent.metaKey||e.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(e)}return(e.which||e.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=this._mouseStart(this._mouseDownEvent,e)!==!1,this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted)},_mouseUp:function(e){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,e.target===this._mouseDownEvent.target&&t.data(e.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(e)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,c=!1,e.preventDefault()},_mouseDistanceMet:function(t){return Math.max(Math.abs(this._mouseDownEvent.pageX-t.pageX),Math.abs(this._mouseDownEvent.pageY-t.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}}),t.ui.plugin={add:function(e,i,s){var n,o=t.ui[e].prototype;for(n in s)o.plugins[n]=o.plugins[n]||[],o.plugins[n].push([i,s[n]])},call:function(t,e,i,s){var n,o=t.plugins[e];if(o&&(s||t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType))for(n=0;o.length>n;n++)t.options[o[n][0]]&&o[n][1].apply(t.element,i)}},t.ui.safeActiveElement=function(t){var e;try{e=t.activeElement}catch(i){e=t.body}return e||(e=t.body),e.nodeName||(e=t.body),e},t.ui.safeBlur=function(e){e&&"body"!==e.nodeName.toLowerCase()&&t(e).trigger("blur")},t.widget("ui.draggable",t.ui.mouse,{version:"1.12.1",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setPositionRelative(),this.options.addClasses&&this._addClass("ui-draggable"),this._setHandleClassName(),this._mouseInit()},_setOption:function(t,e){this._super(t,e),"handle"===t&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){return(this.helper||this.element).is(".ui-draggable-dragging")?(this.destroyOnClear=!0,void 0):(this._removeHandleClassName(),this._mouseDestroy(),void 0)},_mouseCapture:function(e){var i=this.options;return this.helper||i.disabled||t(e.target).closest(".ui-resizable-handle").length>0?!1:(this.handle=this._getHandle(e),this.handle?(this._blurActiveElement(e),this._blockFrames(i.iframeFix===!0?"iframe":i.iframeFix),!0):!1)},_blockFrames:function(e){this.iframeBlocks=this.document.find(e).map(function(){var e=t(this);return t(" ").css("position","absolute").appendTo(e.parent()).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()).offset(e.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(e){var i=t.ui.safeActiveElement(this.document[0]),s=t(e.target);s.closest(i).length||t.ui.safeBlur(i)},_mouseStart:function(e){var i=this.options;return this.helper=this._createHelper(e),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),t.ui.ddmanager&&(t.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=this.helper.parents().filter(function(){return"fixed"===t(this).css("position")}).length>0,this.positionAbs=this.element.offset(),this._refreshOffsets(e),this.originalPosition=this.position=this._generatePosition(e,!1),this.originalPageX=e.pageX,this.originalPageY=e.pageY,i.cursorAt&&this._adjustOffsetFromHelper(i.cursorAt),this._setContainment(),this._trigger("start",e)===!1?(this._clear(),!1):(this._cacheHelperProportions(),t.ui.ddmanager&&!i.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this._mouseDrag(e,!0),t.ui.ddmanager&&t.ui.ddmanager.dragStart(this,e),!0)},_refreshOffsets:function(t){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:t.pageX-this.offset.left,top:t.pageY-this.offset.top}},_mouseDrag:function(e,i){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(e,!0),this.positionAbs=this._convertPositionTo("absolute"),!i){var s=this._uiHash();if(this._trigger("drag",e,s)===!1)return this._mouseUp(new t.Event("mouseup",e)),!1;this.position=s.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),!1},_mouseStop:function(e){var i=this,s=!1;return t.ui.ddmanager&&!this.options.dropBehaviour&&(s=t.ui.ddmanager.drop(this,e)),this.dropped&&(s=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!s||"valid"===this.options.revert&&s||this.options.revert===!0||t.isFunction(this.options.revert)&&this.options.revert.call(this.element,s)?t(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){i._trigger("stop",e)!==!1&&i._clear()}):this._trigger("stop",e)!==!1&&this._clear(),!1},_mouseUp:function(e){return this._unblockFrames(),t.ui.ddmanager&&t.ui.ddmanager.dragStop(this,e),this.handleElement.is(e.target)&&this.element.trigger("focus"),t.ui.mouse.prototype._mouseUp.call(this,e)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new t.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(e){return this.options.handle?!!t(e.target).closest(this.element.find(this.options.handle)).length:!0},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this._addClass(this.handleElement,"ui-draggable-handle")},_removeHandleClassName:function(){this._removeClass(this.handleElement,"ui-draggable-handle")},_createHelper:function(e){var i=this.options,s=t.isFunction(i.helper),n=s?t(i.helper.apply(this.element[0],[e])):"clone"===i.helper?this.element.clone().removeAttr("id"):this.element;return n.parents("body").length||n.appendTo("parent"===i.appendTo?this.element[0].parentNode:i.appendTo),s&&n[0]===this.element[0]&&this._setPositionRelative(),n[0]===this.element[0]||/(fixed|absolute)/.test(n.css("position"))||n.css("position","absolute"),n},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),t.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_isRootNode:function(t){return/(html|body)/i.test(t.tagName)||t===this.document[0]},_getParentOffset:function(){var e=this.offsetParent.offset(),i=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==i&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),this._isRootNode(this.offsetParent[0])&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var t=this.element.position(),e=this._isRootNode(this.scrollParent[0]);return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+(e?0:this.scrollParent.scrollTop()),left:t.left-(parseInt(this.helper.css("left"),10)||0)+(e?0:this.scrollParent.scrollLeft())}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,i,s,n=this.options,o=this.document[0];return this.relativeContainer=null,n.containment?"window"===n.containment?(this.containment=[t(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,t(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,t(window).scrollLeft()+t(window).width()-this.helperProportions.width-this.margins.left,t(window).scrollTop()+(t(window).height()||o.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top],void 0):"document"===n.containment?(this.containment=[0,0,t(o).width()-this.helperProportions.width-this.margins.left,(t(o).height()||o.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top],void 0):n.containment.constructor===Array?(this.containment=n.containment,void 0):("parent"===n.containment&&(n.containment=this.helper[0].parentNode),i=t(n.containment),s=i[0],s&&(e=/(scroll|auto)/.test(i.css("overflow")),this.containment=[(parseInt(i.css("borderLeftWidth"),10)||0)+(parseInt(i.css("paddingLeft"),10)||0),(parseInt(i.css("borderTopWidth"),10)||0)+(parseInt(i.css("paddingTop"),10)||0),(e?Math.max(s.scrollWidth,s.offsetWidth):s.offsetWidth)-(parseInt(i.css("borderRightWidth"),10)||0)-(parseInt(i.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(e?Math.max(s.scrollHeight,s.offsetHeight):s.offsetHeight)-(parseInt(i.css("borderBottomWidth"),10)||0)-(parseInt(i.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=i),void 0):(this.containment=null,void 0) + },_convertPositionTo:function(t,e){e||(e=this.position);var i="absolute"===t?1:-1,s=this._isRootNode(this.scrollParent[0]);return{top:e.top+this.offset.relative.top*i+this.offset.parent.top*i-("fixed"===this.cssPosition?-this.offset.scroll.top:s?0:this.offset.scroll.top)*i,left:e.left+this.offset.relative.left*i+this.offset.parent.left*i-("fixed"===this.cssPosition?-this.offset.scroll.left:s?0:this.offset.scroll.left)*i}},_generatePosition:function(t,e){var i,s,n,o,a=this.options,r=this._isRootNode(this.scrollParent[0]),l=t.pageX,h=t.pageY;return r&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),e&&(this.containment&&(this.relativeContainer?(s=this.relativeContainer.offset(),i=[this.containment[0]+s.left,this.containment[1]+s.top,this.containment[2]+s.left,this.containment[3]+s.top]):i=this.containment,t.pageX-this.offset.click.lefti[2]&&(l=i[2]+this.offset.click.left),t.pageY-this.offset.click.top>i[3]&&(h=i[3]+this.offset.click.top)),a.grid&&(n=a.grid[1]?this.originalPageY+Math.round((h-this.originalPageY)/a.grid[1])*a.grid[1]:this.originalPageY,h=i?n-this.offset.click.top>=i[1]||n-this.offset.click.top>i[3]?n:n-this.offset.click.top>=i[1]?n-a.grid[1]:n+a.grid[1]:n,o=a.grid[0]?this.originalPageX+Math.round((l-this.originalPageX)/a.grid[0])*a.grid[0]:this.originalPageX,l=i?o-this.offset.click.left>=i[0]||o-this.offset.click.left>i[2]?o:o-this.offset.click.left>=i[0]?o-a.grid[0]:o+a.grid[0]:o),"y"===a.axis&&(l=this.originalPageX),"x"===a.axis&&(h=this.originalPageY)),{top:h-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:r?0:this.offset.scroll.top),left:l-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:r?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper,"ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_trigger:function(e,i,s){return s=s||this._uiHash(),t.ui.plugin.call(this,e,[i,s,this],!0),/^(drag|start|stop)/.test(e)&&(this.positionAbs=this._convertPositionTo("absolute"),s.offset=this.positionAbs),t.Widget.prototype._trigger.call(this,e,i,s)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),t.ui.plugin.add("draggable","connectToSortable",{start:function(e,i,s){var n=t.extend({},i,{item:s.element});s.sortables=[],t(s.options.connectToSortable).each(function(){var i=t(this).sortable("instance");i&&!i.options.disabled&&(s.sortables.push(i),i.refreshPositions(),i._trigger("activate",e,n))})},stop:function(e,i,s){var n=t.extend({},i,{item:s.element});s.cancelHelperRemoval=!1,t.each(s.sortables,function(){var t=this;t.isOver?(t.isOver=0,s.cancelHelperRemoval=!0,t.cancelHelperRemoval=!1,t._storedCSS={position:t.placeholder.css("position"),top:t.placeholder.css("top"),left:t.placeholder.css("left")},t._mouseStop(e),t.options.helper=t.options._helper):(t.cancelHelperRemoval=!0,t._trigger("deactivate",e,n))})},drag:function(e,i,s){t.each(s.sortables,function(){var n=!1,o=this;o.positionAbs=s.positionAbs,o.helperProportions=s.helperProportions,o.offset.click=s.offset.click,o._intersectsWith(o.containerCache)&&(n=!0,t.each(s.sortables,function(){return this.positionAbs=s.positionAbs,this.helperProportions=s.helperProportions,this.offset.click=s.offset.click,this!==o&&this._intersectsWith(this.containerCache)&&t.contains(o.element[0],this.element[0])&&(n=!1),n})),n?(o.isOver||(o.isOver=1,s._parent=i.helper.parent(),o.currentItem=i.helper.appendTo(o.element).data("ui-sortable-item",!0),o.options._helper=o.options.helper,o.options.helper=function(){return i.helper[0]},e.target=o.currentItem[0],o._mouseCapture(e,!0),o._mouseStart(e,!0,!0),o.offset.click.top=s.offset.click.top,o.offset.click.left=s.offset.click.left,o.offset.parent.left-=s.offset.parent.left-o.offset.parent.left,o.offset.parent.top-=s.offset.parent.top-o.offset.parent.top,s._trigger("toSortable",e),s.dropped=o.element,t.each(s.sortables,function(){this.refreshPositions()}),s.currentItem=s.element,o.fromOutside=s),o.currentItem&&(o._mouseDrag(e),i.position=o.position)):o.isOver&&(o.isOver=0,o.cancelHelperRemoval=!0,o.options._revert=o.options.revert,o.options.revert=!1,o._trigger("out",e,o._uiHash(o)),o._mouseStop(e,!0),o.options.revert=o.options._revert,o.options.helper=o.options._helper,o.placeholder&&o.placeholder.remove(),i.helper.appendTo(s._parent),s._refreshOffsets(e),i.position=s._generatePosition(e,!0),s._trigger("fromSortable",e),s.dropped=!1,t.each(s.sortables,function(){this.refreshPositions()}))})}}),t.ui.plugin.add("draggable","cursor",{start:function(e,i,s){var n=t("body"),o=s.options;n.css("cursor")&&(o._cursor=n.css("cursor")),n.css("cursor",o.cursor)},stop:function(e,i,s){var n=s.options;n._cursor&&t("body").css("cursor",n._cursor)}}),t.ui.plugin.add("draggable","opacity",{start:function(e,i,s){var n=t(i.helper),o=s.options;n.css("opacity")&&(o._opacity=n.css("opacity")),n.css("opacity",o.opacity)},stop:function(e,i,s){var n=s.options;n._opacity&&t(i.helper).css("opacity",n._opacity)}}),t.ui.plugin.add("draggable","scroll",{start:function(t,e,i){i.scrollParentNotHidden||(i.scrollParentNotHidden=i.helper.scrollParent(!1)),i.scrollParentNotHidden[0]!==i.document[0]&&"HTML"!==i.scrollParentNotHidden[0].tagName&&(i.overflowOffset=i.scrollParentNotHidden.offset())},drag:function(e,i,s){var n=s.options,o=!1,a=s.scrollParentNotHidden[0],r=s.document[0];a!==r&&"HTML"!==a.tagName?(n.axis&&"x"===n.axis||(s.overflowOffset.top+a.offsetHeight-e.pageY=0;d--)l=s.snapElements[d].left-s.margins.left,h=l+s.snapElements[d].width,c=s.snapElements[d].top-s.margins.top,u=c+s.snapElements[d].height,l-g>_||m>h+g||c-g>b||v>u+g||!t.contains(s.snapElements[d].item.ownerDocument,s.snapElements[d].item)?(s.snapElements[d].snapping&&s.options.snap.release&&s.options.snap.release.call(s.element,e,t.extend(s._uiHash(),{snapItem:s.snapElements[d].item})),s.snapElements[d].snapping=!1):("inner"!==f.snapMode&&(n=g>=Math.abs(c-b),o=g>=Math.abs(u-v),a=g>=Math.abs(l-_),r=g>=Math.abs(h-m),n&&(i.position.top=s._convertPositionTo("relative",{top:c-s.helperProportions.height,left:0}).top),o&&(i.position.top=s._convertPositionTo("relative",{top:u,left:0}).top),a&&(i.position.left=s._convertPositionTo("relative",{top:0,left:l-s.helperProportions.width}).left),r&&(i.position.left=s._convertPositionTo("relative",{top:0,left:h}).left)),p=n||o||a||r,"outer"!==f.snapMode&&(n=g>=Math.abs(c-v),o=g>=Math.abs(u-b),a=g>=Math.abs(l-m),r=g>=Math.abs(h-_),n&&(i.position.top=s._convertPositionTo("relative",{top:c,left:0}).top),o&&(i.position.top=s._convertPositionTo("relative",{top:u-s.helperProportions.height,left:0}).top),a&&(i.position.left=s._convertPositionTo("relative",{top:0,left:l}).left),r&&(i.position.left=s._convertPositionTo("relative",{top:0,left:h-s.helperProportions.width}).left)),!s.snapElements[d].snapping&&(n||o||a||r||p)&&s.options.snap.snap&&s.options.snap.snap.call(s.element,e,t.extend(s._uiHash(),{snapItem:s.snapElements[d].item})),s.snapElements[d].snapping=n||o||a||r||p)}}),t.ui.plugin.add("draggable","stack",{start:function(e,i,s){var n,o=s.options,a=t.makeArray(t(o.stack)).sort(function(e,i){return(parseInt(t(e).css("zIndex"),10)||0)-(parseInt(t(i).css("zIndex"),10)||0)});a.length&&(n=parseInt(t(a[0]).css("zIndex"),10)||0,t(a).each(function(e){t(this).css("zIndex",n+e)}),this.css("zIndex",n+a.length))}}),t.ui.plugin.add("draggable","zIndex",{start:function(e,i,s){var n=t(i.helper),o=s.options;n.css("zIndex")&&(o._zIndex=n.css("zIndex")),n.css("zIndex",o.zIndex)},stop:function(e,i,s){var n=s.options;n._zIndex&&t(i.helper).css("zIndex",n._zIndex)}}),t.ui.draggable,t.widget("ui.droppable",{version:"1.12.1",widgetEventPrefix:"drop",options:{accept:"*",addClasses:!0,greedy:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var e,i=this.options,s=i.accept;this.isover=!1,this.isout=!0,this.accept=t.isFunction(s)?s:function(t){return t.is(s)},this.proportions=function(){return arguments.length?(e=arguments[0],void 0):e?e:e={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight}},this._addToManager(i.scope),i.addClasses&&this._addClass("ui-droppable")},_addToManager:function(e){t.ui.ddmanager.droppables[e]=t.ui.ddmanager.droppables[e]||[],t.ui.ddmanager.droppables[e].push(this)},_splice:function(t){for(var e=0;t.length>e;e++)t[e]===this&&t.splice(e,1)},_destroy:function(){var e=t.ui.ddmanager.droppables[this.options.scope];this._splice(e)},_setOption:function(e,i){if("accept"===e)this.accept=t.isFunction(i)?i:function(t){return t.is(i)};else if("scope"===e){var s=t.ui.ddmanager.droppables[this.options.scope];this._splice(s),this._addToManager(i)}this._super(e,i)},_activate:function(e){var i=t.ui.ddmanager.current;this._addActiveClass(),i&&this._trigger("activate",e,this.ui(i))},_deactivate:function(e){var i=t.ui.ddmanager.current;this._removeActiveClass(),i&&this._trigger("deactivate",e,this.ui(i))},_over:function(e){var i=t.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!==this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this._addHoverClass(),this._trigger("over",e,this.ui(i)))},_out:function(e){var i=t.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!==this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this._removeHoverClass(),this._trigger("out",e,this.ui(i)))},_drop:function(e,i){var s=i||t.ui.ddmanager.current,n=!1;return s&&(s.currentItem||s.element)[0]!==this.element[0]?(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function(){var i=t(this).droppable("instance");return i.options.greedy&&!i.options.disabled&&i.options.scope===s.options.scope&&i.accept.call(i.element[0],s.currentItem||s.element)&&u(s,t.extend(i,{offset:i.element.offset()}),i.options.tolerance,e)?(n=!0,!1):void 0}),n?!1:this.accept.call(this.element[0],s.currentItem||s.element)?(this._removeActiveClass(),this._removeHoverClass(),this._trigger("drop",e,this.ui(s)),this.element):!1):!1},ui:function(t){return{draggable:t.currentItem||t.element,helper:t.helper,position:t.position,offset:t.positionAbs}},_addHoverClass:function(){this._addClass("ui-droppable-hover")},_removeHoverClass:function(){this._removeClass("ui-droppable-hover")},_addActiveClass:function(){this._addClass("ui-droppable-active")},_removeActiveClass:function(){this._removeClass("ui-droppable-active")}});var u=t.ui.intersect=function(){function t(t,e,i){return t>=e&&e+i>t}return function(e,i,s,n){if(!i.offset)return!1;var o=(e.positionAbs||e.position.absolute).left+e.margins.left,a=(e.positionAbs||e.position.absolute).top+e.margins.top,r=o+e.helperProportions.width,l=a+e.helperProportions.height,h=i.offset.left,c=i.offset.top,u=h+i.proportions().width,d=c+i.proportions().height;switch(s){case"fit":return o>=h&&u>=r&&a>=c&&d>=l;case"intersect":return o+e.helperProportions.width/2>h&&u>r-e.helperProportions.width/2&&a+e.helperProportions.height/2>c&&d>l-e.helperProportions.height/2;case"pointer":return t(n.pageY,c,i.proportions().height)&&t(n.pageX,h,i.proportions().width);case"touch":return(a>=c&&d>=a||l>=c&&d>=l||c>a&&l>d)&&(o>=h&&u>=o||r>=h&&u>=r||h>o&&r>u);default:return!1}}}();t.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(e,i){var s,n,o=t.ui.ddmanager.droppables[e.options.scope]||[],a=i?i.type:null,r=(e.currentItem||e.element).find(":data(ui-droppable)").addBack();t:for(s=0;o.length>s;s++)if(!(o[s].options.disabled||e&&!o[s].accept.call(o[s].element[0],e.currentItem||e.element))){for(n=0;r.length>n;n++)if(r[n]===o[s].element[0]){o[s].proportions().height=0;continue t}o[s].visible="none"!==o[s].element.css("display"),o[s].visible&&("mousedown"===a&&o[s]._activate.call(o[s],i),o[s].offset=o[s].element.offset(),o[s].proportions({width:o[s].element[0].offsetWidth,height:o[s].element[0].offsetHeight}))}},drop:function(e,i){var s=!1;return t.each((t.ui.ddmanager.droppables[e.options.scope]||[]).slice(),function(){this.options&&(!this.options.disabled&&this.visible&&u(e,this,this.options.tolerance,i)&&(s=this._drop.call(this,i)||s),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],e.currentItem||e.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,i)))}),s},dragStart:function(e,i){e.element.parentsUntil("body").on("scroll.droppable",function(){e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,i)})},drag:function(e,i){e.options.refreshPositions&&t.ui.ddmanager.prepareOffsets(e,i),t.each(t.ui.ddmanager.droppables[e.options.scope]||[],function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var s,n,o,a=u(e,this,this.options.tolerance,i),r=!a&&this.isover?"isout":a&&!this.isover?"isover":null;r&&(this.options.greedy&&(n=this.options.scope,o=this.element.parents(":data(ui-droppable)").filter(function(){return t(this).droppable("instance").options.scope===n}),o.length&&(s=t(o[0]).droppable("instance"),s.greedyChild="isover"===r)),s&&"isover"===r&&(s.isover=!1,s.isout=!0,s._out.call(s,i)),this[r]=!0,this["isout"===r?"isover":"isout"]=!1,this["isover"===r?"_over":"_out"].call(this,i),s&&"isout"===r&&(s.isout=!1,s.isover=!0,s._over.call(s,i)))}})},dragStop:function(e,i){e.element.parentsUntil("body").off("scroll.droppable"),e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,i)}},t.uiBackCompat!==!1&&t.widget("ui.droppable",t.ui.droppable,{options:{hoverClass:!1,activeClass:!1},_addActiveClass:function(){this._super(),this.options.activeClass&&this.element.addClass(this.options.activeClass)},_removeActiveClass:function(){this._super(),this.options.activeClass&&this.element.removeClass(this.options.activeClass)},_addHoverClass:function(){this._super(),this.options.hoverClass&&this.element.addClass(this.options.hoverClass)},_removeHoverClass:function(){this._super(),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass)}}),t.ui.droppable,t.widget("ui.resizable",t.ui.mouse,{version:"1.12.1",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,classes:{"ui-resizable-se":"ui-icon ui-icon-gripsmall-diagonal-se"},containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(t){return parseFloat(t)||0},_isNumber:function(t){return!isNaN(parseFloat(t))},_hasScroll:function(e,i){if("hidden"===t(e).css("overflow"))return!1;var s=i&&"left"===i?"scrollLeft":"scrollTop",n=!1;return e[s]>0?!0:(e[s]=1,n=e[s]>0,e[s]=0,n)},_create:function(){var e,i=this.options,s=this;this._addClass("ui-resizable"),t.extend(this,{_aspectRatio:!!i.aspectRatio,aspectRatio:i.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:i.helper||i.ghost||i.animate?i.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)&&(this.element.wrap(t("").css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance")),this.elementIsWrapper=!0,e={marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom"),marginLeft:this.originalElement.css("marginLeft")},this.element.css(e),this.originalElement.css("margin",0),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css(e),this._proportionallyResize()),this._setupHandles(),i.autoHide&&t(this.element).on("mouseenter",function(){i.disabled||(s._removeClass("ui-resizable-autohide"),s._handles.show())}).on("mouseleave",function(){i.disabled||s.resizing||(s._addClass("ui-resizable-autohide"),s._handles.hide())}),this._mouseInit()},_destroy:function(){this._mouseDestroy();var e,i=function(e){t(e).removeData("resizable").removeData("ui-resizable").off(".resizable").find(".ui-resizable-handle").remove()};return this.elementIsWrapper&&(i(this.element),e=this.element,this.originalElement.css({position:e.css("position"),width:e.outerWidth(),height:e.outerHeight(),top:e.css("top"),left:e.css("left")}).insertAfter(e),e.remove()),this.originalElement.css("resize",this.originalResizeStyle),i(this.originalElement),this},_setOption:function(t,e){switch(this._super(t,e),t){case"handles":this._removeHandles(),this._setupHandles();break;default:}},_setupHandles:function(){var e,i,s,n,o,a=this.options,r=this;if(this.handles=a.handles||(t(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this._handles=t(),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),s=this.handles.split(","),this.handles={},i=0;s.length>i;i++)e=t.trim(s[i]),n="ui-resizable-"+e,o=t(" "),this._addClass(o,"ui-resizable-handle "+n),o.css({zIndex:a.zIndex}),this.handles[e]=".ui-resizable-"+e,this.element.append(o);this._renderAxis=function(e){var i,s,n,o;e=e||this.element;for(i in this.handles)this.handles[i].constructor===String?this.handles[i]=this.element.children(this.handles[i]).first().show():(this.handles[i].jquery||this.handles[i].nodeType)&&(this.handles[i]=t(this.handles[i]),this._on(this.handles[i],{mousedown:r._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(s=t(this.handles[i],this.element),o=/sw|ne|nw|se|n|s/.test(i)?s.outerHeight():s.outerWidth(),n=["padding",/ne|nw|n/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join(""),e.css(n,o),this._proportionallyResize()),this._handles=this._handles.add(this.handles[i])},this._renderAxis(this.element),this._handles=this._handles.add(this.element.find(".ui-resizable-handle")),this._handles.disableSelection(),this._handles.on("mouseover",function(){r.resizing||(this.className&&(o=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),r.axis=o&&o[1]?o[1]:"se")}),a.autoHide&&(this._handles.hide(),this._addClass("ui-resizable-autohide"))},_removeHandles:function(){this._handles.remove()},_mouseCapture:function(e){var i,s,n=!1;for(i in this.handles)s=t(this.handles[i])[0],(s===e.target||t.contains(s,e.target))&&(n=!0);return!this.options.disabled&&n},_mouseStart:function(e){var i,s,n,o=this.options,a=this.element;return this.resizing=!0,this._renderProxy(),i=this._num(this.helper.css("left")),s=this._num(this.helper.css("top")),o.containment&&(i+=t(o.containment).scrollLeft()||0,s+=t(o.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:i,top:s},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:a.width(),height:a.height()},this.originalSize=this._helper?{width:a.outerWidth(),height:a.outerHeight()}:{width:a.width(),height:a.height()},this.sizeDiff={width:a.outerWidth()-a.width(),height:a.outerHeight()-a.height()},this.originalPosition={left:i,top:s},this.originalMousePosition={left:e.pageX,top:e.pageY},this.aspectRatio="number"==typeof o.aspectRatio?o.aspectRatio:this.originalSize.width/this.originalSize.height||1,n=t(".ui-resizable-"+this.axis).css("cursor"),t("body").css("cursor","auto"===n?this.axis+"-resize":n),this._addClass("ui-resizable-resizing"),this._propagate("start",e),!0},_mouseDrag:function(e){var i,s,n=this.originalMousePosition,o=this.axis,a=e.pageX-n.left||0,r=e.pageY-n.top||0,l=this._change[o];return this._updatePrevProperties(),l?(i=l.apply(this,[e,a,r]),this._updateVirtualBoundaries(e.shiftKey),(this._aspectRatio||e.shiftKey)&&(i=this._updateRatio(i,e)),i=this._respectSize(i,e),this._updateCache(i),this._propagate("resize",e),s=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),t.isEmptyObject(s)||(this._updatePrevProperties(),this._trigger("resize",e,this.ui()),this._applyChanges()),!1):!1},_mouseStop:function(e){this.resizing=!1;var i,s,n,o,a,r,l,h=this.options,c=this;return this._helper&&(i=this._proportionallyResizeElements,s=i.length&&/textarea/i.test(i[0].nodeName),n=s&&this._hasScroll(i[0],"left")?0:c.sizeDiff.height,o=s?0:c.sizeDiff.width,a={width:c.helper.width()-o,height:c.helper.height()-n},r=parseFloat(c.element.css("left"))+(c.position.left-c.originalPosition.left)||null,l=parseFloat(c.element.css("top"))+(c.position.top-c.originalPosition.top)||null,h.animate||this.element.css(t.extend(a,{top:l,left:r})),c.helper.height(c.size.height),c.helper.width(c.size.width),this._helper&&!h.animate&&this._proportionallyResize()),t("body").css("cursor","auto"),this._removeClass("ui-resizable-resizing"),this._propagate("stop",e),this._helper&&this.helper.remove(),!1},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left},this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var t={};return this.position.top!==this.prevPosition.top&&(t.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(t.left=this.position.left+"px"),this.size.width!==this.prevSize.width&&(t.width=this.size.width+"px"),this.size.height!==this.prevSize.height&&(t.height=this.size.height+"px"),this.helper.css(t),t},_updateVirtualBoundaries:function(t){var e,i,s,n,o,a=this.options;o={minWidth:this._isNumber(a.minWidth)?a.minWidth:0,maxWidth:this._isNumber(a.maxWidth)?a.maxWidth:1/0,minHeight:this._isNumber(a.minHeight)?a.minHeight:0,maxHeight:this._isNumber(a.maxHeight)?a.maxHeight:1/0},(this._aspectRatio||t)&&(e=o.minHeight*this.aspectRatio,s=o.minWidth/this.aspectRatio,i=o.maxHeight*this.aspectRatio,n=o.maxWidth/this.aspectRatio,e>o.minWidth&&(o.minWidth=e),s>o.minHeight&&(o.minHeight=s),o.maxWidth>i&&(o.maxWidth=i),o.maxHeight>n&&(o.maxHeight=n)),this._vBoundaries=o},_updateCache:function(t){this.offset=this.helper.offset(),this._isNumber(t.left)&&(this.position.left=t.left),this._isNumber(t.top)&&(this.position.top=t.top),this._isNumber(t.height)&&(this.size.height=t.height),this._isNumber(t.width)&&(this.size.width=t.width)},_updateRatio:function(t){var e=this.position,i=this.size,s=this.axis;return this._isNumber(t.height)?t.width=t.height*this.aspectRatio:this._isNumber(t.width)&&(t.height=t.width/this.aspectRatio),"sw"===s&&(t.left=e.left+(i.width-t.width),t.top=null),"nw"===s&&(t.top=e.top+(i.height-t.height),t.left=e.left+(i.width-t.width)),t},_respectSize:function(t){var e=this._vBoundaries,i=this.axis,s=this._isNumber(t.width)&&e.maxWidth&&e.maxWidtht.width,a=this._isNumber(t.height)&&e.minHeight&&e.minHeight>t.height,r=this.originalPosition.left+this.originalSize.width,l=this.originalPosition.top+this.originalSize.height,h=/sw|nw|w/.test(i),c=/nw|ne|n/.test(i);return o&&(t.width=e.minWidth),a&&(t.height=e.minHeight),s&&(t.width=e.maxWidth),n&&(t.height=e.maxHeight),o&&h&&(t.left=r-e.minWidth),s&&h&&(t.left=r-e.maxWidth),a&&c&&(t.top=l-e.minHeight),n&&c&&(t.top=l-e.maxHeight),t.width||t.height||t.left||!t.top?t.width||t.height||t.top||!t.left||(t.left=null):t.top=null,t},_getPaddingPlusBorderDimensions:function(t){for(var e=0,i=[],s=[t.css("borderTopWidth"),t.css("borderRightWidth"),t.css("borderBottomWidth"),t.css("borderLeftWidth")],n=[t.css("paddingTop"),t.css("paddingRight"),t.css("paddingBottom"),t.css("paddingLeft")];4>e;e++)i[e]=parseFloat(s[e])||0,i[e]+=parseFloat(n[e])||0;return{height:i[0]+i[2],width:i[1]+i[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var t,e=0,i=this.helper||this.element;this._proportionallyResizeElements.length>e;e++)t=this._proportionallyResizeElements[e],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(t)),t.css({height:i.height()-this.outerDimensions.height||0,width:i.width()-this.outerDimensions.width||0})},_renderProxy:function(){var e=this.element,i=this.options;this.elementOffset=e.offset(),this._helper?(this.helper=this.helper||t(""),this._addClass(this.helper,this._helper),this.helper.css({width:this.element.outerWidth(),height:this.element.outerHeight(),position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++i.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(t,e){return{width:this.originalSize.width+e}},w:function(t,e){var i=this.originalSize,s=this.originalPosition;return{left:s.left+e,width:i.width-e}},n:function(t,e,i){var s=this.originalSize,n=this.originalPosition;return{top:n.top+i,height:s.height-i}},s:function(t,e,i){return{height:this.originalSize.height+i}},se:function(e,i,s){return t.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[e,i,s]))},sw:function(e,i,s){return t.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[e,i,s]))},ne:function(e,i,s){return t.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[e,i,s]))},nw:function(e,i,s){return t.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[e,i,s]))}},_propagate:function(e,i){t.ui.plugin.call(this,e,[i,this.ui()]),"resize"!==e&&this._trigger(e,i,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),t.ui.plugin.add("resizable","animate",{stop:function(e){var i=t(this).resizable("instance"),s=i.options,n=i._proportionallyResizeElements,o=n.length&&/textarea/i.test(n[0].nodeName),a=o&&i._hasScroll(n[0],"left")?0:i.sizeDiff.height,r=o?0:i.sizeDiff.width,l={width:i.size.width-r,height:i.size.height-a},h=parseFloat(i.element.css("left"))+(i.position.left-i.originalPosition.left)||null,c=parseFloat(i.element.css("top"))+(i.position.top-i.originalPosition.top)||null;i.element.animate(t.extend(l,c&&h?{top:c,left:h}:{}),{duration:s.animateDuration,easing:s.animateEasing,step:function(){var s={width:parseFloat(i.element.css("width")),height:parseFloat(i.element.css("height")),top:parseFloat(i.element.css("top")),left:parseFloat(i.element.css("left"))};n&&n.length&&t(n[0]).css({width:s.width,height:s.height}),i._updateCache(s),i._propagate("resize",e)}})}}),t.ui.plugin.add("resizable","containment",{start:function(){var e,i,s,n,o,a,r,l=t(this).resizable("instance"),h=l.options,c=l.element,u=h.containment,d=u instanceof t?u.get(0):/parent/.test(u)?c.parent().get(0):u;d&&(l.containerElement=t(d),/document/.test(u)||u===document?(l.containerOffset={left:0,top:0},l.containerPosition={left:0,top:0},l.parentData={element:t(document),left:0,top:0,width:t(document).width(),height:t(document).height()||document.body.parentNode.scrollHeight}):(e=t(d),i=[],t(["Top","Right","Left","Bottom"]).each(function(t,s){i[t]=l._num(e.css("padding"+s))}),l.containerOffset=e.offset(),l.containerPosition=e.position(),l.containerSize={height:e.innerHeight()-i[3],width:e.innerWidth()-i[1]},s=l.containerOffset,n=l.containerSize.height,o=l.containerSize.width,a=l._hasScroll(d,"left")?d.scrollWidth:o,r=l._hasScroll(d)?d.scrollHeight:n,l.parentData={element:d,left:s.left,top:s.top,width:a,height:r}))},resize:function(e){var i,s,n,o,a=t(this).resizable("instance"),r=a.options,l=a.containerOffset,h=a.position,c=a._aspectRatio||e.shiftKey,u={top:0,left:0},d=a.containerElement,p=!0;d[0]!==document&&/static/.test(d.css("position"))&&(u=l),h.left<(a._helper?l.left:0)&&(a.size.width=a.size.width+(a._helper?a.position.left-l.left:a.position.left-u.left),c&&(a.size.height=a.size.width/a.aspectRatio,p=!1),a.position.left=r.helper?l.left:0),h.top<(a._helper?l.top:0)&&(a.size.height=a.size.height+(a._helper?a.position.top-l.top:a.position.top),c&&(a.size.width=a.size.height*a.aspectRatio,p=!1),a.position.top=a._helper?l.top:0),n=a.containerElement.get(0)===a.element.parent().get(0),o=/relative|absolute/.test(a.containerElement.css("position")),n&&o?(a.offset.left=a.parentData.left+a.position.left,a.offset.top=a.parentData.top+a.position.top):(a.offset.left=a.element.offset().left,a.offset.top=a.element.offset().top),i=Math.abs(a.sizeDiff.width+(a._helper?a.offset.left-u.left:a.offset.left-l.left)),s=Math.abs(a.sizeDiff.height+(a._helper?a.offset.top-u.top:a.offset.top-l.top)),i+a.size.width>=a.parentData.width&&(a.size.width=a.parentData.width-i,c&&(a.size.height=a.size.width/a.aspectRatio,p=!1)),s+a.size.height>=a.parentData.height&&(a.size.height=a.parentData.height-s,c&&(a.size.width=a.size.height*a.aspectRatio,p=!1)),p||(a.position.left=a.prevPosition.left,a.position.top=a.prevPosition.top,a.size.width=a.prevSize.width,a.size.height=a.prevSize.height)},stop:function(){var e=t(this).resizable("instance"),i=e.options,s=e.containerOffset,n=e.containerPosition,o=e.containerElement,a=t(e.helper),r=a.offset(),l=a.outerWidth()-e.sizeDiff.width,h=a.outerHeight()-e.sizeDiff.height;e._helper&&!i.animate&&/relative/.test(o.css("position"))&&t(this).css({left:r.left-n.left-s.left,width:l,height:h}),e._helper&&!i.animate&&/static/.test(o.css("position"))&&t(this).css({left:r.left-n.left-s.left,width:l,height:h})}}),t.ui.plugin.add("resizable","alsoResize",{start:function(){var e=t(this).resizable("instance"),i=e.options;t(i.alsoResize).each(function(){var e=t(this);e.data("ui-resizable-alsoresize",{width:parseFloat(e.width()),height:parseFloat(e.height()),left:parseFloat(e.css("left")),top:parseFloat(e.css("top"))})})},resize:function(e,i){var s=t(this).resizable("instance"),n=s.options,o=s.originalSize,a=s.originalPosition,r={height:s.size.height-o.height||0,width:s.size.width-o.width||0,top:s.position.top-a.top||0,left:s.position.left-a.left||0}; + t(n.alsoResize).each(function(){var e=t(this),s=t(this).data("ui-resizable-alsoresize"),n={},o=e.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];t.each(o,function(t,e){var i=(s[e]||0)+(r[e]||0);i&&i>=0&&(n[e]=i||null)}),e.css(n)})},stop:function(){t(this).removeData("ui-resizable-alsoresize")}}),t.ui.plugin.add("resizable","ghost",{start:function(){var e=t(this).resizable("instance"),i=e.size;e.ghost=e.originalElement.clone(),e.ghost.css({opacity:.25,display:"block",position:"relative",height:i.height,width:i.width,margin:0,left:0,top:0}),e._addClass(e.ghost,"ui-resizable-ghost"),t.uiBackCompat!==!1&&"string"==typeof e.options.ghost&&e.ghost.addClass(this.options.ghost),e.ghost.appendTo(e.helper)},resize:function(){var e=t(this).resizable("instance");e.ghost&&e.ghost.css({position:"relative",height:e.size.height,width:e.size.width})},stop:function(){var e=t(this).resizable("instance");e.ghost&&e.helper&&e.helper.get(0).removeChild(e.ghost.get(0))}}),t.ui.plugin.add("resizable","grid",{resize:function(){var e,i=t(this).resizable("instance"),s=i.options,n=i.size,o=i.originalSize,a=i.originalPosition,r=i.axis,l="number"==typeof s.grid?[s.grid,s.grid]:s.grid,h=l[0]||1,c=l[1]||1,u=Math.round((n.width-o.width)/h)*h,d=Math.round((n.height-o.height)/c)*c,p=o.width+u,f=o.height+d,g=s.maxWidth&&p>s.maxWidth,m=s.maxHeight&&f>s.maxHeight,_=s.minWidth&&s.minWidth>p,v=s.minHeight&&s.minHeight>f;s.grid=l,_&&(p+=h),v&&(f+=c),g&&(p-=h),m&&(f-=c),/^(se|s|e)$/.test(r)?(i.size.width=p,i.size.height=f):/^(ne)$/.test(r)?(i.size.width=p,i.size.height=f,i.position.top=a.top-d):/^(sw)$/.test(r)?(i.size.width=p,i.size.height=f,i.position.left=a.left-u):((0>=f-c||0>=p-h)&&(e=i._getPaddingPlusBorderDimensions(this)),f-c>0?(i.size.height=f,i.position.top=a.top-d):(f=c-e.height,i.size.height=f,i.position.top=a.top+o.height-f),p-h>0?(i.size.width=p,i.position.left=a.left-u):(p=h-e.width,i.size.width=p,i.position.left=a.left+o.width-p))}}),t.ui.resizable,t.widget("ui.selectable",t.ui.mouse,{version:"1.12.1",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var e=this;this._addClass("ui-selectable"),this.dragged=!1,this.refresh=function(){e.elementPos=t(e.element[0]).offset(),e.selectees=t(e.options.filter,e.element[0]),e._addClass(e.selectees,"ui-selectee"),e.selectees.each(function(){var i=t(this),s=i.offset(),n={left:s.left-e.elementPos.left,top:s.top-e.elementPos.top};t.data(this,"selectable-item",{element:this,$element:i,left:n.left,top:n.top,right:n.left+i.outerWidth(),bottom:n.top+i.outerHeight(),startselected:!1,selected:i.hasClass("ui-selected"),selecting:i.hasClass("ui-selecting"),unselecting:i.hasClass("ui-unselecting")})})},this.refresh(),this._mouseInit(),this.helper=t(" "),this._addClass(this.helper,"ui-selectable-helper")},_destroy:function(){this.selectees.removeData("selectable-item"),this._mouseDestroy()},_mouseStart:function(e){var i=this,s=this.options;this.opos=[e.pageX,e.pageY],this.elementPos=t(this.element[0]).offset(),this.options.disabled||(this.selectees=t(s.filter,this.element[0]),this._trigger("start",e),t(s.appendTo).append(this.helper),this.helper.css({left:e.pageX,top:e.pageY,width:0,height:0}),s.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var s=t.data(this,"selectable-item");s.startselected=!0,e.metaKey||e.ctrlKey||(i._removeClass(s.$element,"ui-selected"),s.selected=!1,i._addClass(s.$element,"ui-unselecting"),s.unselecting=!0,i._trigger("unselecting",e,{unselecting:s.element}))}),t(e.target).parents().addBack().each(function(){var s,n=t.data(this,"selectable-item");return n?(s=!e.metaKey&&!e.ctrlKey||!n.$element.hasClass("ui-selected"),i._removeClass(n.$element,s?"ui-unselecting":"ui-selected")._addClass(n.$element,s?"ui-selecting":"ui-unselecting"),n.unselecting=!s,n.selecting=s,n.selected=s,s?i._trigger("selecting",e,{selecting:n.element}):i._trigger("unselecting",e,{unselecting:n.element}),!1):void 0}))},_mouseDrag:function(e){if(this.dragged=!0,!this.options.disabled){var i,s=this,n=this.options,o=this.opos[0],a=this.opos[1],r=e.pageX,l=e.pageY;return o>r&&(i=r,r=o,o=i),a>l&&(i=l,l=a,a=i),this.helper.css({left:o,top:a,width:r-o,height:l-a}),this.selectees.each(function(){var i=t.data(this,"selectable-item"),h=!1,c={};i&&i.element!==s.element[0]&&(c.left=i.left+s.elementPos.left,c.right=i.right+s.elementPos.left,c.top=i.top+s.elementPos.top,c.bottom=i.bottom+s.elementPos.top,"touch"===n.tolerance?h=!(c.left>r||o>c.right||c.top>l||a>c.bottom):"fit"===n.tolerance&&(h=c.left>o&&r>c.right&&c.top>a&&l>c.bottom),h?(i.selected&&(s._removeClass(i.$element,"ui-selected"),i.selected=!1),i.unselecting&&(s._removeClass(i.$element,"ui-unselecting"),i.unselecting=!1),i.selecting||(s._addClass(i.$element,"ui-selecting"),i.selecting=!0,s._trigger("selecting",e,{selecting:i.element}))):(i.selecting&&((e.metaKey||e.ctrlKey)&&i.startselected?(s._removeClass(i.$element,"ui-selecting"),i.selecting=!1,s._addClass(i.$element,"ui-selected"),i.selected=!0):(s._removeClass(i.$element,"ui-selecting"),i.selecting=!1,i.startselected&&(s._addClass(i.$element,"ui-unselecting"),i.unselecting=!0),s._trigger("unselecting",e,{unselecting:i.element}))),i.selected&&(e.metaKey||e.ctrlKey||i.startselected||(s._removeClass(i.$element,"ui-selected"),i.selected=!1,s._addClass(i.$element,"ui-unselecting"),i.unselecting=!0,s._trigger("unselecting",e,{unselecting:i.element})))))}),!1}},_mouseStop:function(e){var i=this;return this.dragged=!1,t(".ui-unselecting",this.element[0]).each(function(){var s=t.data(this,"selectable-item");i._removeClass(s.$element,"ui-unselecting"),s.unselecting=!1,s.startselected=!1,i._trigger("unselected",e,{unselected:s.element})}),t(".ui-selecting",this.element[0]).each(function(){var s=t.data(this,"selectable-item");i._removeClass(s.$element,"ui-selecting")._addClass(s.$element,"ui-selected"),s.selecting=!1,s.selected=!0,s.startselected=!0,i._trigger("selected",e,{selected:s.element})}),this._trigger("stop",e),this.helper.remove(),!1}}),t.widget("ui.sortable",t.ui.mouse,{version:"1.12.1",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(t,e,i){return t>=e&&e+i>t},_isFloating:function(t){return/left|right/.test(t.css("float"))||/inline|table-cell/.test(t.css("display"))},_create:function(){this.containerCache={},this._addClass("ui-sortable"),this.refresh(),this.offset=this.element.offset(),this._mouseInit(),this._setHandleClassName(),this.ready=!0},_setOption:function(t,e){this._super(t,e),"handle"===t&&this._setHandleClassName()},_setHandleClassName:function(){var e=this;this._removeClass(this.element.find(".ui-sortable-handle"),"ui-sortable-handle"),t.each(this.items,function(){e._addClass(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item,"ui-sortable-handle")})},_destroy:function(){this._mouseDestroy();for(var t=this.items.length-1;t>=0;t--)this.items[t].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(e,i){var s=null,n=!1,o=this;return this.reverting?!1:this.options.disabled||"static"===this.options.type?!1:(this._refreshItems(e),t(e.target).parents().each(function(){return t.data(this,o.widgetName+"-item")===o?(s=t(this),!1):void 0}),t.data(e.target,o.widgetName+"-item")===o&&(s=t(e.target)),s?!this.options.handle||i||(t(this.options.handle,s).find("*").addBack().each(function(){this===e.target&&(n=!0)}),n)?(this.currentItem=s,this._removeCurrentsFromItems(),!0):!1:!1)},_mouseStart:function(e,i,s){var n,o,a=this.options;if(this.currentContainer=this,this.refreshPositions(),this.helper=this._createHelper(e),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),this.originalPosition=this._generatePosition(e),this.originalPageX=e.pageX,this.originalPageY=e.pageY,a.cursorAt&&this._adjustOffsetFromHelper(a.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),a.containment&&this._setContainment(),a.cursor&&"auto"!==a.cursor&&(o=this.document.find("body"),this.storedCursor=o.css("cursor"),o.css("cursor",a.cursor),this.storedStylesheet=t("").appendTo(o)),a.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",a.opacity)),a.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",a.zIndex)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",e,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!s)for(n=this.containers.length-1;n>=0;n--)this.containers[n]._trigger("activate",e,this._uiHash(this));return t.ui.ddmanager&&(t.ui.ddmanager.current=this),t.ui.ddmanager&&!a.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this.dragging=!0,this._addClass(this.helper,"ui-sortable-helper"),this._mouseDrag(e),!0},_mouseDrag:function(e){var i,s,n,o,a=this.options,r=!1;for(this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll&&(this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-e.pageY=0;i--)if(s=this.items[i],n=s.item[0],o=this._intersectsWithPointer(s),o&&s.instance===this.currentContainer&&n!==this.currentItem[0]&&this.placeholder[1===o?"next":"prev"]()[0]!==n&&!t.contains(this.placeholder[0],n)&&("semi-dynamic"===this.options.type?!t.contains(this.element[0],n):!0)){if(this.direction=1===o?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(s))break;this._rearrange(e,s),this._trigger("change",e,this._uiHash());break}return this._contactContainers(e),t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),this._trigger("sort",e,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(e,i){if(e){if(t.ui.ddmanager&&!this.options.dropBehaviour&&t.ui.ddmanager.drop(this,e),this.options.revert){var s=this,n=this.placeholder.offset(),o=this.options.axis,a={};o&&"x"!==o||(a.left=n.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),o&&"y"!==o||(a.top=n.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,t(this.helper).animate(a,parseInt(this.options.revert,10)||500,function(){s._clear(e)})}else this._clear(e,i);return!1}},cancel:function(){if(this.dragging){this._mouseUp(new t.Event("mouseup",{target:null})),"original"===this.options.helper?(this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")):this.currentItem.show();for(var e=this.containers.length-1;e>=0;e--)this.containers[e]._trigger("deactivate",null,this._uiHash(this)),this.containers[e].containerCache.over&&(this.containers[e]._trigger("out",null,this._uiHash(this)),this.containers[e].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),t.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?t(this.domPosition.prev).after(this.currentItem):t(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(e){var i=this._getItemsAsjQuery(e&&e.connected),s=[];return e=e||{},t(i).each(function(){var i=(t(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[\-=_](.+)/);i&&s.push((e.key||i[1]+"[]")+"="+(e.key&&e.expression?i[1]:i[2]))}),!s.length&&e.key&&s.push(e.key+"="),s.join("&")},toArray:function(e){var i=this._getItemsAsjQuery(e&&e.connected),s=[];return e=e||{},i.each(function(){s.push(t(e.item||this).attr(e.attribute||"id")||"")}),s},_intersectsWith:function(t){var e=this.positionAbs.left,i=e+this.helperProportions.width,s=this.positionAbs.top,n=s+this.helperProportions.height,o=t.left,a=o+t.width,r=t.top,l=r+t.height,h=this.offset.click.top,c=this.offset.click.left,u="x"===this.options.axis||s+h>r&&l>s+h,d="y"===this.options.axis||e+c>o&&a>e+c,p=u&&d;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>t[this.floating?"width":"height"]?p:e+this.helperProportions.width/2>o&&a>i-this.helperProportions.width/2&&s+this.helperProportions.height/2>r&&l>n-this.helperProportions.height/2},_intersectsWithPointer:function(t){var e,i,s="x"===this.options.axis||this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top,t.height),n="y"===this.options.axis||this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left,t.width),o=s&&n;return o?(e=this._getDragVerticalDirection(),i=this._getDragHorizontalDirection(),this.floating?"right"===i||"down"===e?2:1:e&&("down"===e?2:1)):!1},_intersectsWithSides:function(t){var e=this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top+t.height/2,t.height),i=this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left+t.width/2,t.width),s=this._getDragVerticalDirection(),n=this._getDragHorizontalDirection();return this.floating&&n?"right"===n&&i||"left"===n&&!i:s&&("down"===s&&e||"up"===s&&!e)},_getDragVerticalDirection:function(){var t=this.positionAbs.top-this.lastPositionAbs.top;return 0!==t&&(t>0?"down":"up")},_getDragHorizontalDirection:function(){var t=this.positionAbs.left-this.lastPositionAbs.left;return 0!==t&&(t>0?"right":"left")},refresh:function(t){return this._refreshItems(t),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var t=this.options;return t.connectWith.constructor===String?[t.connectWith]:t.connectWith},_getItemsAsjQuery:function(e){function i(){r.push(this)}var s,n,o,a,r=[],l=[],h=this._connectWith();if(h&&e)for(s=h.length-1;s>=0;s--)for(o=t(h[s],this.document[0]),n=o.length-1;n>=0;n--)a=t.data(o[n],this.widgetFullName),a&&a!==this&&!a.options.disabled&&l.push([t.isFunction(a.options.items)?a.options.items.call(a.element):t(a.options.items,a.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),a]);for(l.push([t.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):t(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),s=l.length-1;s>=0;s--)l[s][0].each(i);return t(r)},_removeCurrentsFromItems:function(){var e=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=t.grep(this.items,function(t){for(var i=0;e.length>i;i++)if(e[i]===t.item[0])return!1;return!0})},_refreshItems:function(e){this.items=[],this.containers=[this];var i,s,n,o,a,r,l,h,c=this.items,u=[[t.isFunction(this.options.items)?this.options.items.call(this.element[0],e,{item:this.currentItem}):t(this.options.items,this.element),this]],d=this._connectWith();if(d&&this.ready)for(i=d.length-1;i>=0;i--)for(n=t(d[i],this.document[0]),s=n.length-1;s>=0;s--)o=t.data(n[s],this.widgetFullName),o&&o!==this&&!o.options.disabled&&(u.push([t.isFunction(o.options.items)?o.options.items.call(o.element[0],e,{item:this.currentItem}):t(o.options.items,o.element),o]),this.containers.push(o));for(i=u.length-1;i>=0;i--)for(a=u[i][1],r=u[i][0],s=0,h=r.length;h>s;s++)l=t(r[s]),l.data(this.widgetName+"-item",a),c.push({item:l,instance:a,width:0,height:0,left:0,top:0})},refreshPositions:function(e){this.floating=this.items.length?"x"===this.options.axis||this._isFloating(this.items[0].item):!1,this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset());var i,s,n,o;for(i=this.items.length-1;i>=0;i--)s=this.items[i],s.instance!==this.currentContainer&&this.currentContainer&&s.item[0]!==this.currentItem[0]||(n=this.options.toleranceElement?t(this.options.toleranceElement,s.item):s.item,e||(s.width=n.outerWidth(),s.height=n.outerHeight()),o=n.offset(),s.left=o.left,s.top=o.top);if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(i=this.containers.length-1;i>=0;i--)o=this.containers[i].element.offset(),this.containers[i].containerCache.left=o.left,this.containers[i].containerCache.top=o.top,this.containers[i].containerCache.width=this.containers[i].element.outerWidth(),this.containers[i].containerCache.height=this.containers[i].element.outerHeight();return this},_createPlaceholder:function(e){e=e||this;var i,s=e.options;s.placeholder&&s.placeholder.constructor!==String||(i=s.placeholder,s.placeholder={element:function(){var s=e.currentItem[0].nodeName.toLowerCase(),n=t("<"+s+">",e.document[0]);return e._addClass(n,"ui-sortable-placeholder",i||e.currentItem[0].className)._removeClass(n,"ui-sortable-helper"),"tbody"===s?e._createTrPlaceholder(e.currentItem.find("tr").eq(0),t(" ",e.document[0]).appendTo(n)):"tr"===s?e._createTrPlaceholder(e.currentItem,n):"img"===s&&n.attr("src",e.currentItem.attr("src")),i||n.css("visibility","hidden"),n},update:function(t,n){(!i||s.forcePlaceholderSize)&&(n.height()||n.height(e.currentItem.innerHeight()-parseInt(e.currentItem.css("paddingTop")||0,10)-parseInt(e.currentItem.css("paddingBottom")||0,10)),n.width()||n.width(e.currentItem.innerWidth()-parseInt(e.currentItem.css("paddingLeft")||0,10)-parseInt(e.currentItem.css("paddingRight")||0,10)))}}),e.placeholder=t(s.placeholder.element.call(e.element,e.currentItem)),e.currentItem.after(e.placeholder),s.placeholder.update(e,e.placeholder)},_createTrPlaceholder:function(e,i){var s=this;e.children().each(function(){t(" ",s.document[0]).attr("colspan",t(this).attr("colspan")||1).appendTo(i)})},_contactContainers:function(e){var i,s,n,o,a,r,l,h,c,u,d=null,p=null;for(i=this.containers.length-1;i>=0;i--)if(!t.contains(this.currentItem[0],this.containers[i].element[0]))if(this._intersectsWith(this.containers[i].containerCache)){if(d&&t.contains(this.containers[i].element[0],d.element[0]))continue;d=this.containers[i],p=i}else this.containers[i].containerCache.over&&(this.containers[i]._trigger("out",e,this._uiHash(this)),this.containers[i].containerCache.over=0);if(d)if(1===this.containers.length)this.containers[p].containerCache.over||(this.containers[p]._trigger("over",e,this._uiHash(this)),this.containers[p].containerCache.over=1);else{for(n=1e4,o=null,c=d.floating||this._isFloating(this.currentItem),a=c?"left":"top",r=c?"width":"height",u=c?"pageX":"pageY",s=this.items.length-1;s>=0;s--)t.contains(this.containers[p].element[0],this.items[s].item[0])&&this.items[s].item[0]!==this.currentItem[0]&&(l=this.items[s].item.offset()[a],h=!1,e[u]-l>this.items[s][r]/2&&(h=!0),n>Math.abs(e[u]-l)&&(n=Math.abs(e[u]-l),o=this.items[s],this.direction=h?"up":"down"));if(!o&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[p])return this.currentContainer.containerCache.over||(this.containers[p]._trigger("over",e,this._uiHash()),this.currentContainer.containerCache.over=1),void 0;o?this._rearrange(e,o,null,!0):this._rearrange(e,null,this.containers[p].element,!0),this._trigger("change",e,this._uiHash()),this.containers[p]._trigger("change",e,this._uiHash(this)),this.currentContainer=this.containers[p],this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[p]._trigger("over",e,this._uiHash(this)),this.containers[p].containerCache.over=1}},_createHelper:function(e){var i=this.options,s=t.isFunction(i.helper)?t(i.helper.apply(this.element[0],[e,this.currentItem])):"clone"===i.helper?this.currentItem.clone():this.currentItem;return s.parents("body").length||t("parent"!==i.appendTo?i.appendTo:this.currentItem[0].parentNode)[0].appendChild(s[0]),s[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),(!s[0].style.width||i.forceHelperSize)&&s.width(this.currentItem.width()),(!s[0].style.height||i.forceHelperSize)&&s.height(this.currentItem.height()),s},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),t.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var e=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===this.document[0].body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&t.ui.ie)&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var t=this.currentItem.position();return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,i,s,n=this.options;"parent"===n.containment&&(n.containment=this.helper[0].parentNode),("document"===n.containment||"window"===n.containment)&&(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,"document"===n.containment?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,("document"===n.containment?this.document.height()||document.body.parentNode.scrollHeight:this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(n.containment)||(e=t(n.containment)[0],i=t(n.containment).offset(),s="hidden"!==t(e).css("overflow"),this.containment=[i.left+(parseInt(t(e).css("borderLeftWidth"),10)||0)+(parseInt(t(e).css("paddingLeft"),10)||0)-this.margins.left,i.top+(parseInt(t(e).css("borderTopWidth"),10)||0)+(parseInt(t(e).css("paddingTop"),10)||0)-this.margins.top,i.left+(s?Math.max(e.scrollWidth,e.offsetWidth):e.offsetWidth)-(parseInt(t(e).css("borderLeftWidth"),10)||0)-(parseInt(t(e).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,i.top+(s?Math.max(e.scrollHeight,e.offsetHeight):e.offsetHeight)-(parseInt(t(e).css("borderTopWidth"),10)||0)-(parseInt(t(e).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(e,i){i||(i=this.position);var s="absolute"===e?1:-1,n="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,o=/(html|body)/i.test(n[0].tagName);return{top:i.top+this.offset.relative.top*s+this.offset.parent.top*s-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():o?0:n.scrollTop())*s,left:i.left+this.offset.relative.left*s+this.offset.parent.left*s-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():o?0:n.scrollLeft())*s}},_generatePosition:function(e){var i,s,n=this.options,o=e.pageX,a=e.pageY,r="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,l=/(html|body)/i.test(r[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(e.pageX-this.offset.click.left this.containment[2]&&(o=this.containment[2]+this.offset.click.left),e.pageY-this.offset.click.top>this.containment[3]&&(a=this.containment[3]+this.offset.click.top)),n.grid&&(i=this.originalPageY+Math.round((a-this.originalPageY)/n.grid[1])*n.grid[1],a=this.containment?i-this.offset.click.top>=this.containment[1]&&i-this.offset.click.top<=this.containment[3]?i:i-this.offset.click.top>=this.containment[1]?i-n.grid[1]:i+n.grid[1]:i,s=this.originalPageX+Math.round((o-this.originalPageX)/n.grid[0])*n.grid[0],o=this.containment?s-this.offset.click.left>=this.containment[0]&&s-this.offset.click.left<=this.containment[2]?s:s-this.offset.click.left>=this.containment[0]?s-n.grid[0]:s+n.grid[0]:s)),{top:a-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():l?0:r.scrollTop()),left:o-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():l?0:r.scrollLeft())}},_rearrange:function(t,e,i,s){i?i[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?e.item[0]:e.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var n=this.counter;this._delay(function(){n===this.counter&&this.refreshPositions(!s)})},_clear:function(t,e){function i(t,e,i){return function(s){i._trigger(t,s,e._uiHash(e))}}this.reverting=!1;var s,n=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(s in this._storedCSS)("auto"===this._storedCSS[s]||"static"===this._storedCSS[s])&&(this._storedCSS[s]="");this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")}else this.currentItem.show();for(this.fromOutside&&!e&&n.push(function(t){this._trigger("receive",t,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||e||n.push(function(t){this._trigger("update",t,this._uiHash())}),this!==this.currentContainer&&(e||(n.push(function(t){this._trigger("remove",t,this._uiHash())}),n.push(function(t){return function(e){t._trigger("receive",e,this._uiHash(this))}}.call(this,this.currentContainer)),n.push(function(t){return function(e){t._trigger("update",e,this._uiHash(this))}}.call(this,this.currentContainer)))),s=this.containers.length-1;s>=0;s--)e||n.push(i("deactivate",this,this.containers[s])),this.containers[s].containerCache.over&&(n.push(i("out",this,this.containers[s])),this.containers[s].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,e||this._trigger("beforeStop",t,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!e){for(s=0;n.length>s;s++)n[s].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){t.Widget.prototype._trigger.apply(this,arguments)===!1&&this.cancel()},_uiHash:function(e){var i=e||this;return{helper:i.helper,placeholder:i.placeholder||t([]),position:i.position,originalPosition:i.originalPosition,offset:i.positionAbs,item:i.currentItem,sender:e?e.element:null}}}),t.widget("ui.accordion",{version:"1.12.1",options:{active:0,animate:{},classes:{"ui-accordion-header":"ui-corner-top","ui-accordion-header-collapsed":"ui-corner-all","ui-accordion-content":"ui-corner-bottom"},collapsible:!1,event:"click",header:"> li > :first-child, > :not(li):even",heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},hideProps:{borderTopWidth:"hide",borderBottomWidth:"hide",paddingTop:"hide",paddingBottom:"hide",height:"hide"},showProps:{borderTopWidth:"show",borderBottomWidth:"show",paddingTop:"show",paddingBottom:"show",height:"show"},_create:function(){var e=this.options;this.prevShow=this.prevHide=t(),this._addClass("ui-accordion","ui-widget ui-helper-reset"),this.element.attr("role","tablist"),e.collapsible||e.active!==!1&&null!=e.active||(e.active=0),this._processPanels(),0>e.active&&(e.active+=this.headers.length),this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():t()}},_createIcons:function(){var e,i,s=this.options.icons;s&&(e=t(""),this._addClass(e,"ui-accordion-header-icon","ui-icon "+s.header),e.prependTo(this.headers),i=this.active.children(".ui-accordion-header-icon"),this._removeClass(i,s.header)._addClass(i,null,s.activeHeader)._addClass(this.headers,"ui-accordion-icons")) + },_destroyIcons:function(){this._removeClass(this.headers,"ui-accordion-icons"),this.headers.children(".ui-accordion-header-icon").remove()},_destroy:function(){var t;this.element.removeAttr("role"),this.headers.removeAttr("role aria-expanded aria-selected aria-controls tabIndex").removeUniqueId(),this._destroyIcons(),t=this.headers.next().css("display","").removeAttr("role aria-hidden aria-labelledby").removeUniqueId(),"content"!==this.options.heightStyle&&t.css("height","")},_setOption:function(t,e){return"active"===t?(this._activate(e),void 0):("event"===t&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(e)),this._super(t,e),"collapsible"!==t||e||this.options.active!==!1||this._activate(0),"icons"===t&&(this._destroyIcons(),e&&this._createIcons()),void 0)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",t),this._toggleClass(null,"ui-state-disabled",!!t),this._toggleClass(this.headers.add(this.headers.next()),null,"ui-state-disabled",!!t)},_keydown:function(e){if(!e.altKey&&!e.ctrlKey){var i=t.ui.keyCode,s=this.headers.length,n=this.headers.index(e.target),o=!1;switch(e.keyCode){case i.RIGHT:case i.DOWN:o=this.headers[(n+1)%s];break;case i.LEFT:case i.UP:o=this.headers[(n-1+s)%s];break;case i.SPACE:case i.ENTER:this._eventHandler(e);break;case i.HOME:o=this.headers[0];break;case i.END:o=this.headers[s-1]}o&&(t(e.target).attr("tabIndex",-1),t(o).attr("tabIndex",0),t(o).trigger("focus"),e.preventDefault())}},_panelKeyDown:function(e){e.keyCode===t.ui.keyCode.UP&&e.ctrlKey&&t(e.currentTarget).prev().trigger("focus")},refresh:function(){var e=this.options;this._processPanels(),e.active===!1&&e.collapsible===!0||!this.headers.length?(e.active=!1,this.active=t()):e.active===!1?this._activate(0):this.active.length&&!t.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(e.active=!1,this.active=t()):this._activate(Math.max(0,e.active-1)):e.active=this.headers.index(this.active),this._destroyIcons(),this._refresh()},_processPanels:function(){var t=this.headers,e=this.panels;this.headers=this.element.find(this.options.header),this._addClass(this.headers,"ui-accordion-header ui-accordion-header-collapsed","ui-state-default"),this.panels=this.headers.next().filter(":not(.ui-accordion-content-active)").hide(),this._addClass(this.panels,"ui-accordion-content","ui-helper-reset ui-widget-content"),e&&(this._off(t.not(this.headers)),this._off(e.not(this.panels)))},_refresh:function(){var e,i=this.options,s=i.heightStyle,n=this.element.parent();this.active=this._findActive(i.active),this._addClass(this.active,"ui-accordion-header-active","ui-state-active")._removeClass(this.active,"ui-accordion-header-collapsed"),this._addClass(this.active.next(),"ui-accordion-content-active"),this.active.next().show(),this.headers.attr("role","tab").each(function(){var e=t(this),i=e.uniqueId().attr("id"),s=e.next(),n=s.uniqueId().attr("id");e.attr("aria-controls",n),s.attr("aria-labelledby",i)}).next().attr("role","tabpanel"),this.headers.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}).next().attr({"aria-hidden":"true"}).hide(),this.active.length?this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}).next().attr({"aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0),this._createIcons(),this._setupEvents(i.event),"fill"===s?(e=n.height(),this.element.siblings(":visible").each(function(){var i=t(this),s=i.css("position");"absolute"!==s&&"fixed"!==s&&(e-=i.outerHeight(!0))}),this.headers.each(function(){e-=t(this).outerHeight(!0)}),this.headers.next().each(function(){t(this).height(Math.max(0,e-t(this).innerHeight()+t(this).height()))}).css("overflow","auto")):"auto"===s&&(e=0,this.headers.next().each(function(){var i=t(this).is(":visible");i||t(this).show(),e=Math.max(e,t(this).css("height","").height()),i||t(this).hide()}).height(e))},_activate:function(e){var i=this._findActive(e)[0];i!==this.active[0]&&(i=i||this.active[0],this._eventHandler({target:i,currentTarget:i,preventDefault:t.noop}))},_findActive:function(e){return"number"==typeof e?this.headers.eq(e):t()},_setupEvents:function(e){var i={keydown:"_keydown"};e&&t.each(e.split(" "),function(t,e){i[e]="_eventHandler"}),this._off(this.headers.add(this.headers.next())),this._on(this.headers,i),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._hoverable(this.headers),this._focusable(this.headers)},_eventHandler:function(e){var i,s,n=this.options,o=this.active,a=t(e.currentTarget),r=a[0]===o[0],l=r&&n.collapsible,h=l?t():a.next(),c=o.next(),u={oldHeader:o,oldPanel:c,newHeader:l?t():a,newPanel:h};e.preventDefault(),r&&!n.collapsible||this._trigger("beforeActivate",e,u)===!1||(n.active=l?!1:this.headers.index(a),this.active=r?t():a,this._toggle(u),this._removeClass(o,"ui-accordion-header-active","ui-state-active"),n.icons&&(i=o.children(".ui-accordion-header-icon"),this._removeClass(i,null,n.icons.activeHeader)._addClass(i,null,n.icons.header)),r||(this._removeClass(a,"ui-accordion-header-collapsed")._addClass(a,"ui-accordion-header-active","ui-state-active"),n.icons&&(s=a.children(".ui-accordion-header-icon"),this._removeClass(s,null,n.icons.header)._addClass(s,null,n.icons.activeHeader)),this._addClass(a.next(),"ui-accordion-content-active")))},_toggle:function(e){var i=e.newPanel,s=this.prevShow.length?this.prevShow:e.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=i,this.prevHide=s,this.options.animate?this._animate(i,s,e):(s.hide(),i.show(),this._toggleComplete(e)),s.attr({"aria-hidden":"true"}),s.prev().attr({"aria-selected":"false","aria-expanded":"false"}),i.length&&s.length?s.prev().attr({tabIndex:-1,"aria-expanded":"false"}):i.length&&this.headers.filter(function(){return 0===parseInt(t(this).attr("tabIndex"),10)}).attr("tabIndex",-1),i.attr("aria-hidden","false").prev().attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_animate:function(t,e,i){var s,n,o,a=this,r=0,l=t.css("box-sizing"),h=t.length&&(!e.length||t.index() ",delay:300,options:{icons:{submenu:"ui-icon-caret-1-e"},items:"> *",menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.element.uniqueId().attr({role:this.options.role,tabIndex:0}),this._addClass("ui-menu","ui-widget ui-widget-content"),this._on({"mousedown .ui-menu-item":function(t){t.preventDefault()},"click .ui-menu-item":function(e){var i=t(e.target),s=t(t.ui.safeActiveElement(this.document[0]));!this.mouseHandled&&i.not(".ui-state-disabled").length&&(this.select(e),e.isPropagationStopped()||(this.mouseHandled=!0),i.has(".ui-menu").length?this.expand(e):!this.element.is(":focus")&&s.closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(e){if(!this.previousFilter){var i=t(e.target).closest(".ui-menu-item"),s=t(e.currentTarget);i[0]===s[0]&&(this._removeClass(s.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(e,s))}},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(t,e){var i=this.active||this.element.find(this.options.items).eq(0);e||this.focus(t,i)},blur:function(e){this._delay(function(){var i=!t.contains(this.element[0],t.ui.safeActiveElement(this.document[0]));i&&this.collapseAll(e)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(t){this._closeOnDocumentClick(t)&&this.collapseAll(t),this.mouseHandled=!1}})},_destroy:function(){var e=this.element.find(".ui-menu-item").removeAttr("role aria-disabled"),i=e.children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup");this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show(),i.children().each(function(){var e=t(this);e.data("ui-menu-submenu-caret")&&e.remove()})},_keydown:function(e){var i,s,n,o,a=!0;switch(e.keyCode){case t.ui.keyCode.PAGE_UP:this.previousPage(e);break;case t.ui.keyCode.PAGE_DOWN:this.nextPage(e);break;case t.ui.keyCode.HOME:this._move("first","first",e);break;case t.ui.keyCode.END:this._move("last","last",e);break;case t.ui.keyCode.UP:this.previous(e);break;case t.ui.keyCode.DOWN:this.next(e);break;case t.ui.keyCode.LEFT:this.collapse(e);break;case t.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(e);break;case t.ui.keyCode.ENTER:case t.ui.keyCode.SPACE:this._activate(e);break;case t.ui.keyCode.ESCAPE:this.collapse(e);break;default:a=!1,s=this.previousFilter||"",o=!1,n=e.keyCode>=96&&105>=e.keyCode?""+(e.keyCode-96):String.fromCharCode(e.keyCode),clearTimeout(this.filterTimer),n===s?o=!0:n=s+n,i=this._filterMenuItems(n),i=o&&-1!==i.index(this.active.next())?this.active.nextAll(".ui-menu-item"):i,i.length||(n=String.fromCharCode(e.keyCode),i=this._filterMenuItems(n)),i.length?(this.focus(e,i),this.previousFilter=n,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter}a&&e.preventDefault()},_activate:function(t){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(t):this.select(t))},refresh:function(){var e,i,s,n,o,a=this,r=this.options.icons.submenu,l=this.element.find(this.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length),s=l.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var e=t(this),i=e.prev(),s=t("").data("ui-menu-submenu-caret",!0);a._addClass(s,"ui-menu-icon","ui-icon "+r),i.attr("aria-haspopup","true").prepend(s),e.attr("aria-labelledby",i.attr("id"))}),this._addClass(s,"ui-menu","ui-widget ui-widget-content ui-front"),e=l.add(this.element),i=e.find(this.options.items),i.not(".ui-menu-item").each(function(){var e=t(this);a._isDivider(e)&&a._addClass(e,"ui-menu-divider","ui-widget-content")}),n=i.not(".ui-menu-item, .ui-menu-divider"),o=n.children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),this._addClass(n,"ui-menu-item")._addClass(o,"ui-menu-item-wrapper"),i.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!t.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(t,e){if("icons"===t){var i=this.element.find(".ui-menu-icon");this._removeClass(i,null,this.options.icons.submenu)._addClass(i,null,e.submenu)}this._super(t,e)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",t+""),this._toggleClass(null,"ui-state-disabled",!!t)},focus:function(t,e){var i,s,n;this.blur(t,t&&"focus"===t.type),this._scrollIntoView(e),this.active=e.first(),s=this.active.children(".ui-menu-item-wrapper"),this._addClass(s,null,"ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",s.attr("id")),n=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper"),this._addClass(n,null,"ui-state-active"),t&&"keydown"===t.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),i=e.children(".ui-menu"),i.length&&t&&/^mouse/.test(t.type)&&this._startOpening(i),this.activeMenu=e.parent(),this._trigger("focus",t,{item:e})},_scrollIntoView:function(e){var i,s,n,o,a,r;this._hasScroll()&&(i=parseFloat(t.css(this.activeMenu[0],"borderTopWidth"))||0,s=parseFloat(t.css(this.activeMenu[0],"paddingTop"))||0,n=e.offset().top-this.activeMenu.offset().top-i-s,o=this.activeMenu.scrollTop(),a=this.activeMenu.height(),r=e.outerHeight(),0>n?this.activeMenu.scrollTop(o+n):n+r>a&&this.activeMenu.scrollTop(o+n-a+r))},blur:function(t,e){e||clearTimeout(this.timer),this.active&&(this._removeClass(this.active.children(".ui-menu-item-wrapper"),null,"ui-state-active"),this._trigger("blur",t,{item:this.active}),this.active=null)},_startOpening:function(t){clearTimeout(this.timer),"true"===t.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close(),this._open(t)},this.delay))},_open:function(e){var i=t.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(e.parents(".ui-menu")).hide().attr("aria-hidden","true"),e.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(i)},collapseAll:function(e,i){clearTimeout(this.timer),this.timer=this._delay(function(){var s=i?this.element:t(e&&e.target).closest(this.element.find(".ui-menu"));s.length||(s=this.element),this._close(s),this.blur(e),this._removeClass(s.find(".ui-state-active"),null,"ui-state-active"),this.activeMenu=s},this.delay)},_close:function(t){t||(t=this.active?this.active.parent():this.element),t.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false")},_closeOnDocumentClick:function(e){return!t(e.target).closest(".ui-menu").length},_isDivider:function(t){return!/[^\-\u2014\u2013\s]/.test(t.text())},collapse:function(t){var e=this.active&&this.active.parent().closest(".ui-menu-item",this.element);e&&e.length&&(this._close(),this.focus(t,e))},expand:function(t){var e=this.active&&this.active.children(".ui-menu ").find(this.options.items).first();e&&e.length&&(this._open(e.parent()),this._delay(function(){this.focus(t,e)}))},next:function(t){this._move("next","first",t)},previous:function(t){this._move("prev","last",t)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(t,e,i){var s;this.active&&(s="first"===t||"last"===t?this.active["first"===t?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[t+"All"](".ui-menu-item").eq(0)),s&&s.length&&this.active||(s=this.activeMenu.find(this.options.items)[e]()),this.focus(i,s)},nextPage:function(e){var i,s,n;return this.active?(this.isLastItem()||(this._hasScroll()?(s=this.active.offset().top,n=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return i=t(this),0>i.offset().top-s-n}),this.focus(e,i)):this.focus(e,this.activeMenu.find(this.options.items)[this.active?"last":"first"]())),void 0):(this.next(e),void 0)},previousPage:function(e){var i,s,n;return this.active?(this.isFirstItem()||(this._hasScroll()?(s=this.active.offset().top,n=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return i=t(this),i.offset().top-s+n>0}),this.focus(e,i)):this.focus(e,this.activeMenu.find(this.options.items).first())),void 0):(this.next(e),void 0)},_hasScroll:function(){return this.element.outerHeight() ",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,_create:function(){var e,i,s,n=this.element[0].nodeName.toLowerCase(),o="textarea"===n,a="input"===n;this.isMultiLine=o||!a&&this._isContentEditable(this.element),this.valueMethod=this.element[o||a?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(n){if(this.element.prop("readOnly"))return e=!0,s=!0,i=!0,void 0;e=!1,s=!1,i=!1;var o=t.ui.keyCode;switch(n.keyCode){case o.PAGE_UP:e=!0,this._move("previousPage",n);break;case o.PAGE_DOWN:e=!0,this._move("nextPage",n);break;case o.UP:e=!0,this._keyEvent("previous",n);break;case o.DOWN:e=!0,this._keyEvent("next",n);break;case o.ENTER:this.menu.active&&(e=!0,n.preventDefault(),this.menu.select(n));break;case o.TAB:this.menu.active&&this.menu.select(n);break;case o.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(n),n.preventDefault());break;default:i=!0,this._searchTimeout(n)}},keypress:function(s){if(e)return e=!1,(!this.isMultiLine||this.menu.element.is(":visible"))&&s.preventDefault(),void 0;if(!i){var n=t.ui.keyCode;switch(s.keyCode){case n.PAGE_UP:this._move("previousPage",s);break;case n.PAGE_DOWN:this._move("nextPage",s);break;case n.UP:this._keyEvent("previous",s);break;case n.DOWN:this._keyEvent("next",s)}}},input:function(t){return s?(s=!1,t.preventDefault(),void 0):(this._searchTimeout(t),void 0)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(t){return this.cancelBlur?(delete this.cancelBlur,void 0):(clearTimeout(this.searching),this.close(t),this._change(t),void 0)}}),this._initSource(),this.menu=t(" ").appendTo(this._appendTo()).menu({role:null}).hide().menu("instance"),this._addClass(this.menu.element,"ui-autocomplete","ui-front"),this._on(this.menu.element,{mousedown:function(e){e.preventDefault(),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,this.element[0]!==t.ui.safeActiveElement(this.document[0])&&this.element.trigger("focus")})},menufocus:function(e,i){var s,n;return this.isNewMenu&&(this.isNewMenu=!1,e.originalEvent&&/^mouse/.test(e.originalEvent.type))?(this.menu.blur(),this.document.one("mousemove",function(){t(e.target).trigger(e.originalEvent)}),void 0):(n=i.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",e,{item:n})&&e.originalEvent&&/^key/.test(e.originalEvent.type)&&this._value(n.value),s=i.item.attr("aria-label")||n.value,s&&t.trim(s).length&&(this.liveRegion.children().hide(),t("
").text(s).appendTo(this.liveRegion)),void 0)},menuselect:function(e,i){var s=i.item.data("ui-autocomplete-item"),n=this.previous;this.element[0]!==t.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=n,this._delay(function(){this.previous=n,this.selectedItem=s})),!1!==this._trigger("select",e,{item:s})&&this._value(s.value),this.term=this._value(),this.close(e),this.selectedItem=s}}),this.liveRegion=t("",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(t,e){this._super(t,e),"source"===t&&this._initSource(),"appendTo"===t&&this.menu.element.appendTo(this._appendTo()),"disabled"===t&&e&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(e){var i=this.menu.element[0];return e.target===this.element[0]||e.target===i||t.contains(i,e.target)},_closeOnClickOutside:function(t){this._isEventTargetInWidget(t)||this.close()},_appendTo:function(){var e=this.options.appendTo;return e&&(e=e.jquery||e.nodeType?t(e):this.document.find(e).eq(0)),e&&e[0]||(e=this.element.closest(".ui-front, dialog")),e.length||(e=this.document[0].body),e},_initSource:function(){var e,i,s=this;t.isArray(this.options.source)?(e=this.options.source,this.source=function(i,s){s(t.ui.autocomplete.filter(e,i.term))}):"string"==typeof this.options.source?(i=this.options.source,this.source=function(e,n){s.xhr&&s.xhr.abort(),s.xhr=t.ajax({url:i,data:e,dataType:"json",success:function(t){n(t)},error:function(){n([])}})}):this.source=this.options.source},_searchTimeout:function(t){clearTimeout(this.searching),this.searching=this._delay(function(){var e=this.term===this._value(),i=this.menu.element.is(":visible"),s=t.altKey||t.ctrlKey||t.metaKey||t.shiftKey;(!e||e&&!i&&!s)&&(this.selectedItem=null,this.search(null,t))},this.options.delay)},search:function(t,e){return t=null!=t?t:this._value(),this.term=this._value(),t.length").append(t(" ").text(i.label)).appendTo(e)},_move:function(t,e){return this.menu.element.is(":visible")?this.menu.isFirstItem()&&/^previous/.test(t)||this.menu.isLastItem()&&/^next/.test(t)?(this.isMultiLine||this._value(this.term),this.menu.blur(),void 0):(this.menu[t](e),void 0):(this.search(null,e),void 0)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(t,e){(!this.isMultiLine||this.menu.element.is(":visible"))&&(this._move(t,e),e.preventDefault())},_isContentEditable:function(t){if(!t.length)return!1;var e=t.prop("contentEditable");return"inherit"===e?this._isContentEditable(t.parent()):"true"===e}}),t.extend(t.ui.autocomplete,{escapeRegex:function(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(e,i){var s=RegExp(t.ui.autocomplete.escapeRegex(i),"i");return t.grep(e,function(t){return s.test(t.label||t.value||t)})}}),t.widget("ui.autocomplete",t.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(t){return t+(t>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(e){var i;this._superApply(arguments),this.options.disabled||this.cancelSearch||(i=e&&e.length?this.options.messages.results(e.length):this.options.messages.noResults,this.liveRegion.children().hide(),t("").text(i).appendTo(this.liveRegion))}}),t.ui.autocomplete;var d=/ui-corner-([a-z]){2,6}/g;t.widget("ui.controlgroup",{version:"1.12.1",defaultElement:"",options:{direction:"horizontal",disabled:null,onlyVisible:!0,items:{button:"input[type=button], input[type=submit], input[type=reset], button, a",controlgroupLabel:".ui-controlgroup-label",checkboxradio:"input[type='checkbox'], input[type='radio']",selectmenu:"select",spinner:".ui-spinner-input"}},_create:function(){this._enhance()},_enhance:function(){this.element.attr("role","toolbar"),this.refresh()},_destroy:function(){this._callChildMethod("destroy"),this.childWidgets.removeData("ui-controlgroup-data"),this.element.removeAttr("role"),this.options.items.controlgroupLabel&&this.element.find(this.options.items.controlgroupLabel).find(".ui-controlgroup-label-contents").contents().unwrap()},_initWidgets:function(){var e=this,i=[];t.each(this.options.items,function(s,n){var o,a={};return n?"controlgroupLabel"===s?(o=e.element.find(n),o.each(function(){var e=t(this);e.children(".ui-controlgroup-label-contents").length||e.contents().wrapAll("")}),e._addClass(o,null,"ui-widget ui-widget-content ui-state-default"),i=i.concat(o.get()),void 0):(t.fn[s]&&(a=e["_"+s+"Options"]?e["_"+s+"Options"]("middle"):{classes:{}},e.element.find(n).each(function(){var n=t(this),o=n[s]("instance"),r=t.widget.extend({},a);if("button"!==s||!n.parent(".ui-spinner").length){o||(o=n[s]()[s]("instance")),o&&(r.classes=e._resolveClassesValues(r.classes,o)),n[s](r);var l=n[s]("widget");t.data(l[0],"ui-controlgroup-data",o?o:n[s]("instance")),i.push(l[0])}})),void 0):void 0}),this.childWidgets=t(t.unique(i)),this._addClass(this.childWidgets,"ui-controlgroup-item")},_callChildMethod:function(e){this.childWidgets.each(function(){var i=t(this),s=i.data("ui-controlgroup-data");s&&s[e]&&s[e]()})},_updateCornerClass:function(t,e){var i="ui-corner-top ui-corner-bottom ui-corner-left ui-corner-right ui-corner-all",s=this._buildSimpleOptions(e,"label").classes.label;this._removeClass(t,null,i),this._addClass(t,null,s)},_buildSimpleOptions:function(t,e){var i="vertical"===this.options.direction,s={classes:{}};return s.classes[e]={middle:"",first:"ui-corner-"+(i?"top":"left"),last:"ui-corner-"+(i?"bottom":"right"),only:"ui-corner-all"}[t],s},_spinnerOptions:function(t){var e=this._buildSimpleOptions(t,"ui-spinner");return e.classes["ui-spinner-up"]="",e.classes["ui-spinner-down"]="",e},_buttonOptions:function(t){return this._buildSimpleOptions(t,"ui-button")},_checkboxradioOptions:function(t){return this._buildSimpleOptions(t,"ui-checkboxradio-label")},_selectmenuOptions:function(t){var e="vertical"===this.options.direction;return{width:e?"auto":!1,classes:{middle:{"ui-selectmenu-button-open":"","ui-selectmenu-button-closed":""},first:{"ui-selectmenu-button-open":"ui-corner-"+(e?"top":"tl"),"ui-selectmenu-button-closed":"ui-corner-"+(e?"top":"left")},last:{"ui-selectmenu-button-open":e?"":"ui-corner-tr","ui-selectmenu-button-closed":"ui-corner-"+(e?"bottom":"right")},only:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"}}[t]}},_resolveClassesValues:function(e,i){var s={};return t.each(e,function(n){var o=i.options.classes[n]||"";o=t.trim(o.replace(d,"")),s[n]=(o+" "+e[n]).replace(/\s+/g," ")}),s},_setOption:function(t,e){return"direction"===t&&this._removeClass("ui-controlgroup-"+this.options.direction),this._super(t,e),"disabled"===t?(this._callChildMethod(e?"disable":"enable"),void 0):(this.refresh(),void 0)},refresh:function(){var e,i=this;this._addClass("ui-controlgroup ui-controlgroup-"+this.options.direction),"horizontal"===this.options.direction&&this._addClass(null,"ui-helper-clearfix"),this._initWidgets(),e=this.childWidgets,this.options.onlyVisible&&(e=e.filter(":visible")),e.length&&(t.each(["first","last"],function(t,s){var n=e[s]().data("ui-controlgroup-data");if(n&&i["_"+n.widgetName+"Options"]){var o=i["_"+n.widgetName+"Options"](1===e.length?"only":s);o.classes=i._resolveClassesValues(o.classes,n),n.element[n.widgetName](o)}else i._updateCornerClass(e[s](),s)}),this._callChildMethod("refresh"))}}),t.widget("ui.checkboxradio",[t.ui.formResetMixin,{version:"1.12.1",options:{disabled:null,label:null,icon:!0,classes:{"ui-checkboxradio-label":"ui-corner-all","ui-checkboxradio-icon":"ui-corner-all"}},_getCreateOptions:function(){var e,i,s=this,n=this._super()||{};return this._readType(),i=this.element.labels(),this.label=t(i[i.length-1]),this.label.length||t.error("No label found for checkboxradio widget"),this.originalLabel="",this.label.contents().not(this.element[0]).each(function(){s.originalLabel+=3===this.nodeType?t(this).text():this.outerHTML}),this.originalLabel&&(n.label=this.originalLabel),e=this.element[0].disabled,null!=e&&(n.disabled=e),n},_create:function(){var t=this.element[0].checked;this._bindFormResetHandler(),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled),this._setOption("disabled",this.options.disabled),this._addClass("ui-checkboxradio","ui-helper-hidden-accessible"),this._addClass(this.label,"ui-checkboxradio-label","ui-button ui-widget"),"radio"===this.type&&this._addClass(this.label,"ui-checkboxradio-radio-label"),this.options.label&&this.options.label!==this.originalLabel?this._updateLabel():this.originalLabel&&(this.options.label=this.originalLabel),this._enhance(),t&&(this._addClass(this.label,"ui-checkboxradio-checked","ui-state-active"),this.icon&&this._addClass(this.icon,null,"ui-state-hover")),this._on({change:"_toggleClasses",focus:function(){this._addClass(this.label,null,"ui-state-focus ui-visual-focus")},blur:function(){this._removeClass(this.label,null,"ui-state-focus ui-visual-focus")}})},_readType:function(){var e=this.element[0].nodeName.toLowerCase();this.type=this.element[0].type,"input"===e&&/radio|checkbox/.test(this.type)||t.error("Can't create checkboxradio on element.nodeName="+e+" and element.type="+this.type)},_enhance:function(){this._updateIcon(this.element[0].checked)},widget:function(){return this.label},_getRadioGroup:function(){var e,i=this.element[0].name,s="input[name='"+t.ui.escapeSelector(i)+"']";return i?(e=this.form.length?t(this.form[0].elements).filter(s):t(s).filter(function(){return 0===t(this).form().length}),e.not(this.element)):t([])},_toggleClasses:function(){var e=this.element[0].checked;this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",e),this.options.icon&&"checkbox"===this.type&&this._toggleClass(this.icon,null,"ui-icon-check ui-state-checked",e)._toggleClass(this.icon,null,"ui-icon-blank",!e),"radio"===this.type&&this._getRadioGroup().each(function(){var e=t(this).checkboxradio("instance");e&&e._removeClass(e.label,"ui-checkboxradio-checked","ui-state-active")})},_destroy:function(){this._unbindFormResetHandler(),this.icon&&(this.icon.remove(),this.iconSpace.remove())},_setOption:function(t,e){return"label"!==t||e?(this._super(t,e),"disabled"===t?(this._toggleClass(this.label,null,"ui-state-disabled",e),this.element[0].disabled=e,void 0):(this.refresh(),void 0)):void 0},_updateIcon:function(e){var i="ui-icon ui-icon-background ";this.options.icon?(this.icon||(this.icon=t(""),this.iconSpace=t(" "),this._addClass(this.iconSpace,"ui-checkboxradio-icon-space")),"checkbox"===this.type?(i+=e?"ui-icon-check ui-state-checked":"ui-icon-blank",this._removeClass(this.icon,null,e?"ui-icon-blank":"ui-icon-check")):i+="ui-icon-blank",this._addClass(this.icon,"ui-checkboxradio-icon",i),e||this._removeClass(this.icon,null,"ui-icon-check ui-state-checked"),this.icon.prependTo(this.label).after(this.iconSpace)):void 0!==this.icon&&(this.icon.remove(),this.iconSpace.remove(),delete this.icon) + },_updateLabel:function(){var t=this.label.contents().not(this.element[0]);this.icon&&(t=t.not(this.icon[0])),this.iconSpace&&(t=t.not(this.iconSpace[0])),t.remove(),this.label.append(this.options.label)},refresh:function(){var t=this.element[0].checked,e=this.element[0].disabled;this._updateIcon(t),this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",t),null!==this.options.label&&this._updateLabel(),e!==this.options.disabled&&this._setOptions({disabled:e})}}]),t.ui.checkboxradio,t.widget("ui.button",{version:"1.12.1",defaultElement:"