Version Description
- New: 2 new bulk actions are available in the admin to allow enabling or disabling multiple snippets at once.
- New: We added a new search field for snippets in the admin list which allows you to search using all snippet fields.
- New: When adding a JavaScript snippet, WPCode will attempt to remove HTML script tags, if present.
Download this release
Release Info
Developer | gripgrip |
Plugin | Insert Headers and Footers |
Version | 2.0.5 |
Comparing to | |
See all releases |
Code changes from version 2.0.4.4 to 2.0.5
- build/admin-global-lite.asset.php +1 -1
- build/admin-global-lite.css +1 -1
- build/admin.asset.php +1 -1
- build/admin.css +1 -1
- build/admin.js +1 -1
- ihaf.php +2 -2
- includes/admin/class-wpcode-admin-notice.php +65 -5
- includes/admin/class-wpcode-upgrade-welcome.php +14 -2
- includes/admin/pages/class-wpcode-admin-page-code-snippets.php +50 -1
- includes/admin/pages/class-wpcode-admin-page-library.php +2 -1
- includes/admin/pages/class-wpcode-admin-page-snippet-manager.php +85 -5
- includes/admin/pages/class-wpcode-admin-page.php +156 -4
- includes/admin/pages/class-wpcode-code-snippets-table.php +96 -20
- includes/class-wpcode-file-cache.php +15 -3
- includes/class-wpcode-library.php +23 -0
- includes/class-wpcode-snippet.php +25 -0
- includes/helpers.php +12 -7
- includes/icons.php +3 -0
- includes/lite/admin/class-wpcode-admin-page-loader-lite.php +106 -0
- includes/lite/admin/notices.php +115 -2
- includes/lite/conditional-logic/class-wpcode-conditional-device.php +61 -0
- includes/lite/loader.php +4 -0
- languages/insert-headers-and-footers.pot +350 -175
- readme.txt +6 -1
build/admin-global-lite.asset.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php return array('dependencies' => array(), 'version' => '
|
1 |
+
<?php return array('dependencies' => array(), 'version' => 'd4cc9f5a989df6eb1ea13792571f9688');
|
build/admin-global-lite.css
CHANGED
@@ -1,2 +1,2 @@
|
|
1 |
-
:root{--wpcode-background-gray:#F8F8F8;--wpcode-background-highlight:#F6FAFF;--wpcode-background-light:#F3F4F5;--wpcode-background-red:#DF2A35;--wpcode-background-white:#fff;--wpcode-border-color:#ddd;--wpcode-button-disabled-bg:#F5F5F5;--wpcode-button-disabled-border:1px solid #DDDDDD;--wpcode-button-disabled-text:#bbb;--wpcode-button-primary-bg:var(--wpcode-color-primary);--wpcode-button-primary-bg-hover:#397EEB;--wpcode-button-primary-text:#fff;--wpcode-button-primary-text-hover:#fff;--wpcode-button-secondary-bg:#F8F8F8;--wpcode-button-secondary-bg-hover:#fff;--wpcode-button-secondary-border:1px solid #DDDDDD;--wpcode-button-secondary-text:#777;--wpcode-button-orange-bg:#E06B44;--wpcode-button-orange-bg-hover:#e17f5e;--wpcode-button-secondary-text-hover:#454545;--wpcode-color-primary:#3568B7;--wpcode-color-red:#DF2A35;--wpcode-color-red-darker:#AB2028;--wpcode-font-size-l:18px;--wpcode-font-size-m:16px;--wpcode-font-size-s:14px;--wpcode-font-size-xl:22px;--wpcode-font-size-xs:12px;--wpcode-font-size-xxl:24px;--wpcode-input-border:1px solid #DDD;--wpcode-input-border-active:#3568B7;--wpcode-input-text-color:#454545;--wpcode-notice-success-bg:#09A347;--wpcode-notice-success-text:#fff;--wpcode-space-h:36px;--wpcode-space-v:24px;--wpcode-text-color-heading:#454545;--wpcode-text-color-highlight:#3568B7;--wpcode-text-color-light-bg:#848A8A;--wpcode-text-color-paragraph:#777777;--wpcode-text-color-placeholder:#bbb}.wpcode-admin-tabs{font-size:14px;list-style:none;margin:0;overflow:auto;padding:0}.wpcode-admin-tabs li{float:left;margin:0 30px 0 0;padding:0}.wpcode-admin-tabs li button{border:none;background:transparent;cursor:pointer}.wpcode-admin-tabs li button,.wpcode-admin-tabs li a{border-bottom:4px solid #fff;box-shadow:none;color:var(--wpcode-text-color-paragraph);display:block;font-weight:600;padding:20px 0 18px 0;text-decoration:none;transition:border 300ms ease}.wpcode-admin-tabs li button.active,.wpcode-admin-tabs li a.active{border-color:var(--wpcode-color-primary);color:var(--wpcode-text-color-heading)}.wpcode-admin-tabs li button:focus,.wpcode-admin-tabs li button:hover,.wpcode-admin-tabs li a:focus,.wpcode-admin-tabs li a:hover{border-color:var(--wpcode-text-color-paragraph)}.wpcode-admin-tab-content{display:none;position:relative}.wpcode-admin-tab-content.active{display:block}.wpcode-smart-tags{position:relative;display:inline-block;vertical-align:top}.wpcode-smart-tags .wpcode-smart-tags-toggle{background:none;border:none;color:var(--wpcode-text-color-paragraph);font-size:var(--wpcode-font-size-s)}.wpcode-smart-tags .wpcode-smart-tags-toggle svg{vertical-align:middle}.wpcode-smart-tags .wpcode-smart-tags-toggle span{text-decoration:underline}.wpcode-smart-tags .wpcode-text-active{display:none}.wpcode-smart-tags .wpcode-smart-tags-dropdown{border:1px solid var(--wpcode-border-color);border-radius:4px;display:none;left:0;position:absolute;top:100%;z-index:1900;background:#fff;width:300px;margin-top:7px}.wpcode-smart-tags .wpcode-smart-tags-dropdown ul{border-top:1px solid var(--wpcode-border-color)}.wpcode-smart-tags .wpcode-smart-tags-dropdown ul:first-child{border-top:none}.wpcode-smart-tags .wpcode-smart-tags-dropdown ul li{padding:0 15px;margin:12px 0}.wpcode-smart-tags .wpcode-smart-tags-dropdown .wpcode-smart-tag-category-label{font-weight:600;font-size:var(--wpcode-font-size-s);color:var(--wpcode-text-color-paragraph)}.wpcode-smart-tags.wpcode-smart-tags-open .wpcode-text-active{display:inline-block}.wpcode-smart-tags.wpcode-smart-tags-open .wpcode-text-default{display:none}.wpcode-smart-tags.wpcode-smart-tags-open .wpcode-smart-tags-dropdown{display:block}.wpcode-insert-smart-tag{border:0;color:var(--wpcode-text-color-paragraph);font-size:var(--wpcode-font-size-s);padding:0;text-align:left;background:none}.wpcode-blur-area{filter:blur(2px);pointer-events:none}.wpcode-library .wpcode-content{position:relative}#poststuff .wpcode-upsell-box,.wpcode-upsell-box{position:absolute;z-index:20;background:#fff;width:662px;max-width:100%;top:50%;left:50%;transform:translate(-50%,-50%);padding:40px;text-align:center;border-radius:8px;border:1px solid var(--wpcode-border-color)}#poststuff .wpcode-upsell-box *,.wpcode-upsell-box *{box-sizing:border-box}#poststuff .wpcode-upsell-box h2,.wpcode-upsell-box h2{font-size:var(--wpcode-font-size-xxl);margin-top:0;line-height:1.2}#poststuff .wpcode-upsell-box .wpcode-button,.wpcode-upsell-box .wpcode-button{margin-top:6px}#poststuff .wpcode-upsell-box .wpcode-upsell-button-text,.wpcode-upsell-box .wpcode-upsell-button-text{margin-top:16px;display:inline-block;font-size:var(--wpcode-font-size-s);color:var(--wpcode-text-color-light-bg)}#poststuff .wpcode-upsell-box .wpcode-upsell-button-text:hover,.wpcode-upsell-box .wpcode-upsell-button-text:hover{text-decoration:none}#poststuff .wpcode-upsell-box p,.wpcode-upsell-box p{color:var(--wpcode-text-color-paragraph);font-size:var(--wpcode-font-size-s)}#poststuff .wpcode-upsell-box.wpcode-upsell-box-with-features,.wpcode-upsell-box.wpcode-upsell-box-with-features{width:892px;padding:56px}#poststuff .wpcode-upsell-box.wpcode-upsell-box-with-features .wpcode-upsell-text,.wpcode-upsell-box.wpcode-upsell-box-with-features .wpcode-upsell-text{max-width:600px;margin:0 auto}#poststuff .wpcode-upsell-box .wpcode-upsell-features,.wpcode-upsell-box .wpcode-upsell-features{display:flex;flex-wrap:wrap;justify-content:space-between;margin-top:40px;margin-bottom:24px;text-align:left}#poststuff .wpcode-upsell-box .wpcode-upsell-features .wpcode-upsell-feature,.wpcode-upsell-box .wpcode-upsell-features .wpcode-upsell-feature{width:50%;color:var(--wpcode-text-color-heading);font-size:var(--wpcode-font-size-m);margin-bottom:16px;line-height:1.5;padding-left:34px;position:relative;padding-right:10px}#poststuff .wpcode-upsell-box .wpcode-upsell-features .wpcode-upsell-feature:before,.wpcode-upsell-box .wpcode-upsell-features .wpcode-upsell-feature:before{content:'';background-image:url("data:image/svg+xml,%3Csvg width=%2719%27 height=%2718%27 viewBox=%270 0 19 18%27 fill=%27none%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath fill-rule=%27evenodd%27 clip-rule=%27evenodd%27 d=%27M9.5 0.416016C4.67 0.416016 0.75 4.33602 0.75 9.16602C0.75 13.996 4.67 17.916 9.5 17.916C14.33 17.916 18.25 13.996 18.25 9.16602C18.25 4.33602 14.33 0.416016 9.5 0.416016ZM9.5 16.166C5.64125 16.166 2.5 13.0248 2.5 9.16602C2.5 5.30727 5.64125 2.16602 9.5 2.16602C13.3587 2.16602 16.5 5.30727 16.5 9.16602C16.5 13.0248 13.3587 16.166 9.5 16.166ZM7.75 11.0648L13.5163 5.29852L14.75 6.54102L7.75 13.541L4.25 10.041L5.48375 8.80727L7.75 11.0648Z%27 fill=%27%2309A347%27/%3E%3C/svg%3E");display:block;width:19px;height:18px;position:absolute;left:0;top:3px}.wpcode-button{background-color:var(--wpcode-button-primary-bg);border:1px solid var(--wpcode-button-primary-bg);border-radius:4px;color:var(--wpcode-button-primary-text);cursor:pointer;display:inline-block;font-size:var(--wpcode-font-size-s);font-weight:700;line-height:1;padding:10px 16px;text-decoration:none}.wpcode-button.wpcode-button-icon{align-items:center;display:inline-flex;padding-bottom:12px;padding-top:12px}.wpcode-button.wpcode-button-icon svg{margin-right:5px}.wpcode-button.wpcode-button-icon.wpcode-copy-target{padding-bottom:10px;padding-top:10px}.wpcode-button.wpcode-button-wide{padding-left:50px;padding-right:50px}.wpcode-button:hover,.wpcode-button:focus{background-color:var(--wpcode-button-primary-bg-hover);border-color:var(--wpcode-button-primary-bg-hover);color:var(--wpcode-button-primary-text-hover)}.wpcode-button.wpcode-button-secondary{background-color:var(--wpcode-button-secondary-bg);border:var(--wpcode-button-secondary-border);color:var(--wpcode-button-secondary-text)}.wpcode-button.wpcode-button-secondary:hover,.wpcode-button.wpcode-button-secondary:focus{background-color:var(--wpcode-button-secondary-bg-hover);color:var(--wpcode-button-secondary-text-hover)}.wpcode-button.wpcode-button-secondary.wpcode-button-secondary-inactive{background-color:var(--wpcode-button-disabled-bg);border-color:var(--wpcode-button-disabled-bg)}.wpcode-button.wpcode-button-secondary.wpcode-button-secondary-selected{border-color:var(--wpcode-button-primary-bg)}.wpcode-button.wpcode-button-orange{background-color:var(--wpcode-button-orange-bg);border-color:var(--wpcode-button-orange-bg);color:var(--wpcode-button-primary-text)}.wpcode-button.wpcode-button-orange:hover,.wpcode-button.wpcode-button-orange:focus{background-color:var(--wpcode-button-orange-bg-hover);color:var(--wpcode-button-primary-text)}.wpcode-button.wpcode-button-large{align-items:center;display:inline-flex;font-size:var(--wpcode-font-size-m);height:56px;justify-content:center;padding-left:var(--wpcode-space-h);padding-right:var(--wpcode-space-h);text-align:center}.wpcode-button.wpcode-button-large svg{margin-right:7px}.wpcode-button.wpcode-button-small{font-size:var(--wpcode-font-size-xs);padding:9px}.wpcode-button:disabled:hover,.wpcode-button:disabled{background-color:var(--wpcode-button-disabled-bg);border:var(--wpcode-button-disabled-border);color:var(--wpcode-button-disabled-text)}.wpcode-button-toggle{align-items:center;display:flex;justify-content:space-between;min-width:424px}.wpcode-button-toggle .wpcode-button{width:calc(50% - 5px);background:#fff;color:var(--wpcode-input-text-color)}.wpcode-button-toggle .wpcode-button-secondary{border:2px solid var(--wpcode-color-primary)}.wpcode-success-icon{display:none}.wpcode-show-success-icon .wpcode-success-icon{display:inline-block}.wpcode-show-success-icon .wpcode-default-icon{display:none}.wpcode-button-just-icon{background:none;border:none;cursor:pointer;padding:0}.wpcode-button-just-icon .wpcode-icon{display:block}.wpcode-text-button-icon{align-items:center;background:none;border:none;color:var(--wpcode-text-color-paragraph);cursor:pointer;display:inline-flex;font-size:var(--wpcode-font-size-s);font-weight:600;padding:0}.wpcode-text-button-icon:hover{color:var(--wpcode-text-color-heading)}.wpcode-text-button-icon:hover path{fill:var(--wpcode-text-color-heading)}.wpcode-text-button-icon .wpcode-icon{margin-right:5px}.wpcode-just-icon-button{background:none;border:none;cursor:pointer}.wpcode-button-text{background:none;border:none;color:var(--wpcode-text-color-paragraph);cursor:pointer;font-size:var(--wpcode-font-size-xs);padding:0;text-decoration:underline}.wpcode-button-text .wpcode-icon{margin-right:11px}.wpcode-button-text:focus,.wpcode-button-text:hover{text-decoration:none;background:none;color:var(--wpcode-text-color-heading)}.wpcode-button-text:focus svg path,.wpcode-button-text:hover svg path{fill:var(--wpcode-text-color-heading)}.wpcode-items-metabox{display:flex;padding:0}.wpcode-items-sidebar{flex-shrink:0;padding:var(--wpcode-space-v);width:242px}.wpcode-items-list{border-left:1px solid var(--wpcode-border-color);min-height:400px;padding:calc(var(--wpcode-space-v) / 2) 12px;width:100%}.wpcode-items-categories-list{margin:0}.wpcode-items-categories-list li{margin:0}.wpcode-items-categories-list button{background:transparent;border:none;color:var(--wpcode-text-color-paragraph);cursor:pointer;display:block;font-size:var(--wpcode-font-size-m);font-weight:500;padding:12px 8px;position:relative;text-align:left;width:100%}.wpcode-items-categories-list button:focus,.wpcode-items-categories-list button.wpcode-active{background:var(--wpcode-background-highlight);color:var(--wpcode-text-color-highlight)}.wpcode-items-categories-list button:hover{text-decoration:underline}.wpcode-items-categories-list button.wpcode-active{font-weight:700}.wpcode-items-categories-list button.wpcode-active:after{background-image:url("data:image/svg+xml,%3Csvg width=%2716%27 height=%2712%27 viewBox=%270 0 16 12%27 fill=%27none%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath d=%27M5.33329 9.25326L1.83329 5.75326L0.666626 6.91992L5.33329 11.5866L15.3333 1.58659L14.1666 0.419922L5.33329 9.25326Z%27 fill=%27%233568B7%27/%3E%3C/svg%3E%0A");content:'';height:12px;position:absolute;right:10px;top:50%;transform:translateY(-50%);width:16px}.wpcode-items-categories-list button.wpcode-active:hover{text-decoration:none}.wpcode-items-list-category{align-content:stretch;display:flex;flex-wrap:wrap;justify-content:flex-start}.wpcode-list-item{border:1px solid var(--wpcode-border-color);border-radius:4px;margin-bottom:24px;margin-right:12px;margin-left:12px;max-width:100%;padding:16px 20px;position:relative;width:100%}@media (min-width:961px){.wpcode-list-item{width:calc(50% - 24px)}}@media (min-width:1440px){.wpcode-list-item{width:calc(100% / 3 - 24px)}}.wpcode-list-item h3{font-size:var(--wpcode-font-size-m);line-height:1.2;margin:0;overflow:hidden;position:relative;text-overflow:ellipsis;white-space:nowrap}.wpcode-list-item p{margin-bottom:0}.wpcode-list-item:hover .wpcode-list-item-description,.wpcode-list-item:focus .wpcode-list-item-description{opacity:0}.wpcode-list-item:hover .wpcode-list-item-buttons,.wpcode-list-item:focus .wpcode-list-item-buttons{opacity:1}@media (hover:none){.wpcode-list-item .wpcode-list-item-description{opacity:0}.wpcode-list-item .wpcode-list-item-buttons{opacity:1}}.wpcode-list-item .wpcode-list-item-pill{position:absolute;top:10px;right:10px;font-size:8px;font-weight:700;text-transform:uppercase;line-height:1;padding:4px 8px;border-radius:40px}.wpcode-list-item .wpcode-list-item-pill.wpcode-list-item-pill-blue{background:var(--wpcode-color-primary);color:#fff}.wpcode-list-item .wpcode-list-item-pill.wpcode-list-item-pill-gray{background:var(--wpcode-text-color-heading);color:#fff}.wpcode-list-item.wpcode-list-item-has-pill h3{max-width:calc(100% - 60px)}.wpcode-list-item-actions{position:relative}.wpcode-list-item-description{min-height:40px}.wpcode-list-item-buttons{display:flex;justify-content:space-between;opacity:0;position:absolute;top:0;width:100%;z-index:10}.wpcode-list-item-buttons .wpcode-button{flex-grow:1;margin-left:10px;text-align:center}.wpcode-list-item-buttons .wpcode-button:first-child{margin-left:0}.wpcode-items-search{margin-bottom:20px;position:relative}.wpcode-items-search input{border-color:var(--wpcode-border-color);font-size:var(--wpcode-font-size-s);height:38px;padding-left:32px;width:100%}.wpcode-items-search input::-moz-placeholder{color:var(--wpcode-text-color-placeholder)}.wpcode-items-search input:-ms-input-placeholder{color:var(--wpcode-text-color-placeholder)}.wpcode-items-search input::placeholder{color:var(--wpcode-text-color-placeholder)}.wpcode-items-search label{left:10px;position:absolute;top:11px}.wpcode-library-preview-header{padding-bottom:25px}.wpcode-library-preview-header h2{margin:0}.wpcode-library-preview-header .wpcode-close-modal{float:right}.wpcode-library-preview-content .CodeMirror{background:var(--wpcode-background-gray)}.wpcode-library-preview-content .CodeMirror-activeline-background{background:transparent !important}.wpcode-library-preview-content .CodeMirror-focused .CodeMirror-activeline-background{background:rgba(100,100,100,0.1) !important}.wpcode-library-preview-buttons{margin-top:25px}.wpcode-item-use-button.wpcode-start-auth{padding-top:6px;padding-bottom:6px;justify-content:center}.wpcode-item-use-button.wpcode-start-auth svg{margin-right:9px}.wpcode-content *{box-sizing:border-box}.wpcode-metabox-snippets:after{display:table;clear:both;content:''}#wpcode-picked-snippets{align-content:stretch;display:flex;flex-wrap:wrap;justify-content:flex-start}.wpcode-snippet-picker-item{border-bottom:1px solid var(--wpcode-border-color);padding:15px 0;display:flex;justify-content:space-between;color:var(--wpcode-text-color-paragraph);font-size:var(--wpcode-font-size-m)}.wpcode-snippet-picker-item .wpcode-checkbox-toggle{flex-shrink:0;flex-grow:0}.wpcode-selected-snippet-item h4{margin-top:12px}.wpcode-selected-snippet-item label{margin:5px 0;display:block}#wpcode-snippet-chooser{width:30%;float:left}#wpcode-snippet-chooser .wpcode-chooser-fixed-height{height:400px;overflow:auto}.wpcode-picked-snippets-area{margin-left:30%;padding-left:16px}.wpcode-picked-snippets-area>h3{margin-left:12px}.wpcode-snippet-chooser-closed #wpcode-snippet-chooser{width:0;overflow:hidden}.wpcode-snippet-chooser-closed .wpcode-picked-snippets-area{margin-left:0;padding-left:0}.wpcode-snippet-chooser-closed .wpcode-picked-snippets-area>h3{margin-left:0}.wpcode-snippet-chooser-closed #wpcode-picked-snippets{margin:0 -12px}.wpcode-snippets-search{padding-bottom:16px;position:relative}.wpcode-snippets-search input{width:100%}#wpcode-close-drawer{float:right}.wpcode-input-row{margin:24px 0}.wpcode-input-row label{font-size:var(--wpcode-font-size-s);color:var(--wpcode-text-color-heading);margin-bottom:20px;display:inline-block;font-weight:600}#wpcode-no-snippets-selected{margin-left:12px}.wpcode-choose-actions{text-align:center}#wpcode-metabox-load-more{margin:15px 0}#wpcode-chooser-spinner{right:0;top:12px}.wpcode-auto-insert-number-wrap.wpcode-hidden{display:none}.wpcode-list-item-location-details{display:flex}.wpcode-list-item-location-details .wpcode-auto-insert-location-wrap{width:100%}.wpcode-list-item-location-details .wpcode-auto-insert-number-wrap input{width:100px}
|
2 |
|
1 |
+
:root{--wpcode-background-gray:#F8F8F8;--wpcode-background-highlight:#F6FAFF;--wpcode-background-light:#F3F4F5;--wpcode-background-red:#DF2A35;--wpcode-background-white:#fff;--wpcode-border-color:#ddd;--wpcode-button-disabled-bg:#F5F5F5;--wpcode-button-disabled-border:1px solid #DDDDDD;--wpcode-button-disabled-text:#bbb;--wpcode-button-primary-bg:var(--wpcode-color-primary);--wpcode-button-primary-bg-hover:#397EEB;--wpcode-button-primary-text:#fff;--wpcode-button-primary-text-hover:#fff;--wpcode-button-secondary-bg:#F8F8F8;--wpcode-button-secondary-bg-hover:#fff;--wpcode-button-secondary-border:1px solid #DDDDDD;--wpcode-button-secondary-text:#777;--wpcode-button-orange-bg:#E06B44;--wpcode-button-orange-bg-hover:#e17f5e;--wpcode-button-secondary-text-hover:#454545;--wpcode-color-primary:#3568B7;--wpcode-color-red:#DF2A35;--wpcode-color-red-darker:#AB2028;--wpcode-font-size-l:18px;--wpcode-font-size-m:16px;--wpcode-font-size-s:14px;--wpcode-font-size-xl:22px;--wpcode-font-size-xs:12px;--wpcode-font-size-xxl:24px;--wpcode-input-border:1px solid #DDD;--wpcode-input-border-active:#3568B7;--wpcode-input-text-color:#454545;--wpcode-notice-success-bg:#09A347;--wpcode-notice-success-text:#fff;--wpcode-space-h:36px;--wpcode-space-v:24px;--wpcode-text-color-heading:#454545;--wpcode-text-color-highlight:#3568B7;--wpcode-text-color-light-bg:#848A8A;--wpcode-text-color-paragraph:#777777;--wpcode-text-color-placeholder:#bbb}.wpcode-admin-tabs{font-size:14px;list-style:none;margin:0;overflow:auto;padding:0}.wpcode-admin-tabs li{float:left;margin:0 30px 0 0;padding:0}.wpcode-admin-tabs li button{border:none;background:transparent;cursor:pointer}.wpcode-admin-tabs li button,.wpcode-admin-tabs li a{border-bottom:4px solid #fff;box-shadow:none;color:var(--wpcode-text-color-paragraph);display:block;font-weight:600;padding:20px 0 18px 0;text-decoration:none;transition:border 300ms ease}.wpcode-admin-tabs li button.active,.wpcode-admin-tabs li a.active{border-color:var(--wpcode-color-primary);color:var(--wpcode-text-color-heading)}.wpcode-admin-tabs li button:focus,.wpcode-admin-tabs li button:hover,.wpcode-admin-tabs li a:focus,.wpcode-admin-tabs li a:hover{border-color:var(--wpcode-text-color-paragraph)}.wpcode-admin-tab-content{display:none;position:relative}.wpcode-admin-tab-content.active{display:block}.wpcode-smart-tags{position:relative;display:inline-block;vertical-align:top}.wpcode-smart-tags .wpcode-smart-tags-toggle{background:none;border:none;color:var(--wpcode-text-color-paragraph);font-size:var(--wpcode-font-size-s)}.wpcode-smart-tags .wpcode-smart-tags-toggle svg{vertical-align:middle}.wpcode-smart-tags .wpcode-smart-tags-toggle span{text-decoration:underline}.wpcode-smart-tags .wpcode-text-active{display:none}.wpcode-smart-tags .wpcode-smart-tags-dropdown{border:1px solid var(--wpcode-border-color);border-radius:4px;display:none;left:0;position:absolute;top:100%;z-index:1900;background:#fff;width:300px;margin-top:7px}.wpcode-smart-tags .wpcode-smart-tags-dropdown ul{border-top:1px solid var(--wpcode-border-color)}.wpcode-smart-tags .wpcode-smart-tags-dropdown ul:first-child{border-top:none}.wpcode-smart-tags .wpcode-smart-tags-dropdown ul li{padding:0 15px;margin:12px 0}.wpcode-smart-tags .wpcode-smart-tags-dropdown .wpcode-smart-tag-category-label{font-weight:600;font-size:var(--wpcode-font-size-s);color:var(--wpcode-text-color-paragraph)}.wpcode-smart-tags.wpcode-smart-tags-open .wpcode-text-active{display:inline-block}.wpcode-smart-tags.wpcode-smart-tags-open .wpcode-text-default{display:none}.wpcode-smart-tags.wpcode-smart-tags-open .wpcode-smart-tags-dropdown{display:block}.wpcode-insert-smart-tag{border:0;color:var(--wpcode-text-color-paragraph);font-size:var(--wpcode-font-size-s);padding:0;text-align:left;background:none}.wpcode-blur-area{filter:blur(2px);pointer-events:none}.wpcode-library .wpcode-content{position:relative}#poststuff .wpcode-upsell-box,.wpcode-upsell-box{position:absolute;z-index:20;background:#fff;width:662px;max-width:100%;top:50%;left:50%;transform:translate(-50%,-50%);padding:40px;text-align:center;border-radius:8px;border:1px solid var(--wpcode-border-color)}#poststuff .wpcode-upsell-box *,.wpcode-upsell-box *{box-sizing:border-box}#poststuff .wpcode-upsell-box h2,.wpcode-upsell-box h2{font-size:var(--wpcode-font-size-xxl);margin-top:0;line-height:1.2}#poststuff .wpcode-upsell-box .wpcode-button,.wpcode-upsell-box .wpcode-button{margin-top:6px}#poststuff .wpcode-upsell-box .wpcode-upsell-button-text,.wpcode-upsell-box .wpcode-upsell-button-text{margin-top:16px;display:inline-block;font-size:var(--wpcode-font-size-s);color:var(--wpcode-text-color-light-bg)}#poststuff .wpcode-upsell-box .wpcode-upsell-button-text:hover,.wpcode-upsell-box .wpcode-upsell-button-text:hover{text-decoration:none}#poststuff .wpcode-upsell-box p,.wpcode-upsell-box p{color:var(--wpcode-text-color-paragraph);font-size:var(--wpcode-font-size-s)}#poststuff .wpcode-upsell-box.wpcode-upsell-box-with-features,.wpcode-upsell-box.wpcode-upsell-box-with-features{width:892px;padding:56px}#poststuff .wpcode-upsell-box.wpcode-upsell-box-with-features .wpcode-upsell-text,.wpcode-upsell-box.wpcode-upsell-box-with-features .wpcode-upsell-text{max-width:600px;margin:0 auto}#poststuff .wpcode-upsell-box .wpcode-upsell-features,.wpcode-upsell-box .wpcode-upsell-features{display:flex;flex-wrap:wrap;justify-content:space-between;margin-top:40px;margin-bottom:24px;text-align:left}#poststuff .wpcode-upsell-box .wpcode-upsell-features .wpcode-upsell-feature,.wpcode-upsell-box .wpcode-upsell-features .wpcode-upsell-feature{width:50%;color:var(--wpcode-text-color-heading);font-size:var(--wpcode-font-size-m);margin-bottom:16px;line-height:1.5;padding-left:34px;position:relative;padding-right:10px}#poststuff .wpcode-upsell-box .wpcode-upsell-features .wpcode-upsell-feature:before,.wpcode-upsell-box .wpcode-upsell-features .wpcode-upsell-feature:before{content:'';background-image:url("data:image/svg+xml,%3Csvg width=%2719%27 height=%2718%27 viewBox=%270 0 19 18%27 fill=%27none%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath fill-rule=%27evenodd%27 clip-rule=%27evenodd%27 d=%27M9.5 0.416016C4.67 0.416016 0.75 4.33602 0.75 9.16602C0.75 13.996 4.67 17.916 9.5 17.916C14.33 17.916 18.25 13.996 18.25 9.16602C18.25 4.33602 14.33 0.416016 9.5 0.416016ZM9.5 16.166C5.64125 16.166 2.5 13.0248 2.5 9.16602C2.5 5.30727 5.64125 2.16602 9.5 2.16602C13.3587 2.16602 16.5 5.30727 16.5 9.16602C16.5 13.0248 13.3587 16.166 9.5 16.166ZM7.75 11.0648L13.5163 5.29852L14.75 6.54102L7.75 13.541L4.25 10.041L5.48375 8.80727L7.75 11.0648Z%27 fill=%27%2309A347%27/%3E%3C/svg%3E");display:block;width:19px;height:18px;position:absolute;left:0;top:3px}@media (max-width:1440px){.wpcode-library .wpcode-upsell-box{top:100px;transform:translate(-50%,0)}}.wpcode-button{background-color:var(--wpcode-button-primary-bg);border:1px solid var(--wpcode-button-primary-bg);border-radius:4px;color:var(--wpcode-button-primary-text);cursor:pointer;display:inline-block;font-size:var(--wpcode-font-size-s);font-weight:700;line-height:1;padding:10px 16px;text-decoration:none}.wpcode-button.wpcode-button-icon{align-items:center;display:inline-flex;padding-bottom:12px;padding-top:12px}.wpcode-button.wpcode-button-icon svg{margin-right:5px}.wpcode-button.wpcode-button-icon.wpcode-copy-target{padding-bottom:10px;padding-top:10px}.wpcode-button.wpcode-button-wide{padding-left:50px;padding-right:50px}.wpcode-button:hover,.wpcode-button:focus{background-color:var(--wpcode-button-primary-bg-hover);border-color:var(--wpcode-button-primary-bg-hover);color:var(--wpcode-button-primary-text-hover)}.wpcode-button.wpcode-button-secondary{background-color:var(--wpcode-button-secondary-bg);border:var(--wpcode-button-secondary-border);color:var(--wpcode-button-secondary-text)}.wpcode-button.wpcode-button-secondary:hover,.wpcode-button.wpcode-button-secondary:focus{background-color:var(--wpcode-button-secondary-bg-hover);color:var(--wpcode-button-secondary-text-hover)}.wpcode-button.wpcode-button-secondary.wpcode-button-secondary-inactive{background-color:var(--wpcode-button-disabled-bg);border-color:var(--wpcode-button-disabled-bg)}.wpcode-button.wpcode-button-secondary.wpcode-button-secondary-selected{border-color:var(--wpcode-button-primary-bg)}.wpcode-button.wpcode-button-orange{background-color:var(--wpcode-button-orange-bg);border-color:var(--wpcode-button-orange-bg);color:var(--wpcode-button-primary-text)}.wpcode-button.wpcode-button-orange:hover,.wpcode-button.wpcode-button-orange:focus{background-color:var(--wpcode-button-orange-bg-hover);color:var(--wpcode-button-primary-text)}.wpcode-button.wpcode-button-large{align-items:center;display:inline-flex;font-size:var(--wpcode-font-size-m);height:56px;justify-content:center;padding-left:var(--wpcode-space-h);padding-right:var(--wpcode-space-h);text-align:center}.wpcode-button.wpcode-button-large svg{margin-right:7px}.wpcode-button.wpcode-button-small{font-size:var(--wpcode-font-size-xs);padding:9px}.wpcode-button:disabled:hover,.wpcode-button:disabled{background-color:var(--wpcode-button-disabled-bg);border:var(--wpcode-button-disabled-border);color:var(--wpcode-button-disabled-text)}.wpcode-button-toggle{align-items:center;display:flex;justify-content:space-between;min-width:424px}.wpcode-button-toggle .wpcode-button{width:calc(50% - 5px);background:#fff;color:var(--wpcode-input-text-color)}.wpcode-button-toggle .wpcode-button-secondary{border:2px solid var(--wpcode-color-primary)}.wpcode-success-icon{display:none}.wpcode-show-success-icon .wpcode-success-icon{display:inline-block}.wpcode-show-success-icon .wpcode-default-icon{display:none}.wpcode-button-just-icon{background:none;border:none;cursor:pointer;padding:0}.wpcode-button-just-icon .wpcode-icon{display:block}.wpcode-text-button-icon{align-items:center;background:none;border:none;color:var(--wpcode-text-color-paragraph);cursor:pointer;display:inline-flex;font-size:var(--wpcode-font-size-s);font-weight:600;padding:0}.wpcode-text-button-icon:hover{color:var(--wpcode-text-color-heading)}.wpcode-text-button-icon:hover path{fill:var(--wpcode-text-color-heading)}.wpcode-text-button-icon .wpcode-icon{margin-right:5px}.wpcode-just-icon-button{background:none;border:none;cursor:pointer}.wpcode-button-text{background:none;border:none;color:var(--wpcode-text-color-paragraph);cursor:pointer;font-size:var(--wpcode-font-size-xs);padding:0;text-decoration:underline}.wpcode-button-text .wpcode-icon{margin-right:11px}.wpcode-button-text:focus,.wpcode-button-text:hover{text-decoration:none;background:none;color:var(--wpcode-text-color-heading)}.wpcode-button-text:focus svg path,.wpcode-button-text:hover svg path{fill:var(--wpcode-text-color-heading)}.wpcode-items-metabox{display:flex;padding:0}.wpcode-items-sidebar{flex-shrink:0;padding:var(--wpcode-space-v);width:242px}.wpcode-items-list{border-left:1px solid var(--wpcode-border-color);min-height:400px;padding:calc(var(--wpcode-space-v) / 2) 12px;width:100%}.wpcode-items-categories-list{margin:0}.wpcode-items-categories-list li{margin:0}.wpcode-items-categories-list button{background:transparent;border:none;color:var(--wpcode-text-color-paragraph);cursor:pointer;display:block;font-size:var(--wpcode-font-size-m);font-weight:500;padding:12px 8px;position:relative;text-align:left;width:100%}.wpcode-items-categories-list button:focus,.wpcode-items-categories-list button.wpcode-active{background:var(--wpcode-background-highlight);color:var(--wpcode-text-color-highlight)}.wpcode-items-categories-list button:hover{text-decoration:underline}.wpcode-items-categories-list button .wpcode-items-count{float:right;color:var(--wpcode-text-color-paragraph);opacity:0.5}.wpcode-items-categories-list button.wpcode-active{font-weight:700}.wpcode-items-categories-list button.wpcode-active:hover{text-decoration:none}.wpcode-items-categories-list button.wpcode-active .wpcode-items-count{opacity:1;color:var(--wpcode-text-color-highlight);font-weight:700}.wpcode-items-list-category{align-content:stretch;display:flex;flex-wrap:wrap;justify-content:flex-start}.wpcode-list-item{border:1px solid var(--wpcode-border-color);border-radius:4px;margin-bottom:24px;margin-right:12px;margin-left:12px;max-width:100%;padding:16px 20px;position:relative;width:100%}@media (min-width:961px){.wpcode-list-item{width:calc(50% - 24px)}}@media (min-width:1440px){.wpcode-list-item{width:calc(100% / 3 - 24px)}}.wpcode-list-item h3{font-size:var(--wpcode-font-size-m);line-height:1.2;margin:0;overflow:hidden;position:relative;text-overflow:ellipsis;white-space:nowrap}.wpcode-list-item p{margin-bottom:0}.wpcode-list-item:hover .wpcode-list-item-description,.wpcode-list-item:focus .wpcode-list-item-description{opacity:0}.wpcode-list-item:hover .wpcode-list-item-buttons,.wpcode-list-item:focus .wpcode-list-item-buttons{opacity:1}@media (hover:none){.wpcode-list-item .wpcode-list-item-description{opacity:0}.wpcode-list-item .wpcode-list-item-buttons{opacity:1}}.wpcode-list-item .wpcode-list-item-pill{position:absolute;top:10px;right:10px;font-size:8px;font-weight:700;text-transform:uppercase;line-height:1;padding:4px 8px;border-radius:40px}.wpcode-list-item .wpcode-list-item-pill.wpcode-list-item-pill-blue{background:var(--wpcode-color-primary);color:#fff}.wpcode-list-item .wpcode-list-item-pill.wpcode-list-item-pill-gray{background:var(--wpcode-text-color-heading);color:#fff}.wpcode-list-item.wpcode-list-item-has-pill h3{max-width:calc(100% - 60px)}.wpcode-list-item-actions{position:relative}.wpcode-list-item-description{min-height:40px}.wpcode-list-item-buttons{display:flex;justify-content:space-between;opacity:0;position:absolute;top:0;width:100%;z-index:10}.wpcode-list-item-buttons .wpcode-button{flex-grow:1;margin-left:10px;text-align:center}.wpcode-list-item-buttons .wpcode-button:first-child{margin-left:0}.wpcode-items-search{margin-bottom:20px;position:relative}.wpcode-items-search input{border-color:var(--wpcode-border-color);font-size:var(--wpcode-font-size-s);height:38px;padding-left:32px;width:100%}.wpcode-items-search input::-moz-placeholder{color:var(--wpcode-text-color-placeholder)}.wpcode-items-search input:-ms-input-placeholder{color:var(--wpcode-text-color-placeholder)}.wpcode-items-search input::placeholder{color:var(--wpcode-text-color-placeholder)}.wpcode-items-search label{left:10px;position:absolute;top:11px}.wpcode-library-preview-header{padding-bottom:25px}.wpcode-library-preview-header h2{margin:0}.wpcode-library-preview-header .wpcode-close-modal{float:right}.wpcode-library-preview-content .CodeMirror{background:var(--wpcode-background-gray)}.wpcode-library-preview-content .CodeMirror-activeline-background{background:transparent !important}.wpcode-library-preview-content .CodeMirror-focused .CodeMirror-activeline-background{background:rgba(100,100,100,0.1) !important}.wpcode-library-preview-buttons{margin-top:25px}.wpcode-item-use-button.wpcode-start-auth{padding-top:6px;padding-bottom:6px;justify-content:center}.wpcode-item-use-button.wpcode-start-auth svg{margin-right:9px}#wpcode-library-connect-banner{background:var(--wpcode-button-disabled-bg);margin-bottom:24px;margin-left:12px;border-radius:6px;display:flex;flex-direction:column;justify-content:space-between;align-items:center;padding-right:20px;margin-right:12px}@media (min-width:961px){#wpcode-library-connect-banner{flex-direction:row}}#wpcode-library-connect-banner .wpcode-template-content{padding:20px;color:#444444}@media (min-width:961px){#wpcode-library-connect-banner .wpcode-template-content{width:80%}}#wpcode-library-connect-banner .wpcode-template-upgrade-button{text-align:right;flex-shrink:0;padding-bottom:20px}@media (min-width:961px){#wpcode-library-connect-banner .wpcode-template-upgrade-button{padding-bottom:0}}#wpcode-library-connect-banner .wpcode-template-upgrade-button button{white-space:pre}#wpcode-library-connect-banner h3{margin:0 0 5px}#wpcode-library-connect-banner p{margin:0}.wpcode-content *{box-sizing:border-box}.wpcode-metabox-snippets:after{display:table;clear:both;content:''}#wpcode-picked-snippets{align-content:stretch;display:flex;flex-wrap:wrap;justify-content:flex-start}.wpcode-snippet-picker-item{border-bottom:1px solid var(--wpcode-border-color);padding:15px 0;display:flex;justify-content:space-between;color:var(--wpcode-text-color-paragraph);font-size:var(--wpcode-font-size-m)}.wpcode-snippet-picker-item .wpcode-checkbox-toggle{flex-shrink:0;flex-grow:0}.wpcode-selected-snippet-item h4{margin-top:12px}.wpcode-selected-snippet-item label{margin:5px 0;display:block}#wpcode-snippet-chooser{width:30%;float:left}#wpcode-snippet-chooser .wpcode-chooser-fixed-height{height:400px;overflow:auto}.wpcode-picked-snippets-area{margin-left:30%;padding-left:16px}.wpcode-picked-snippets-area>h3{margin-left:12px}.wpcode-snippet-chooser-closed #wpcode-snippet-chooser{width:0;overflow:hidden}.wpcode-snippet-chooser-closed .wpcode-picked-snippets-area{margin-left:0;padding-left:0}.wpcode-snippet-chooser-closed .wpcode-picked-snippets-area>h3{margin-left:0}.wpcode-snippet-chooser-closed #wpcode-picked-snippets{margin:0 -12px}.wpcode-snippets-search{padding-bottom:16px;position:relative}.wpcode-snippets-search input{width:100%}#wpcode-close-drawer{float:right}.wpcode-input-row{margin:24px 0}.wpcode-input-row label{font-size:var(--wpcode-font-size-s);color:var(--wpcode-text-color-heading);margin-bottom:20px;display:inline-block;font-weight:600}#wpcode-no-snippets-selected{margin-left:12px}.wpcode-choose-actions{text-align:center}#wpcode-metabox-load-more{margin:15px 0}#wpcode-chooser-spinner{right:0;top:12px}.wpcode-auto-insert-number-wrap.wpcode-hidden{display:none}.wpcode-list-item-location-details{display:flex}.wpcode-list-item-location-details .wpcode-auto-insert-location-wrap{width:100%}.wpcode-list-item-location-details .wpcode-auto-insert-number-wrap input{width:100px}
|
2 |
|
build/admin.asset.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php return array('dependencies' => array('jquery'), 'version' => '
|
1 |
+
<?php return array('dependencies' => array('jquery'), 'version' => '7a923b3199047def789f6602ae65d5b0');
|
build/admin.css
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
:root{--wpcode-background-gray:#F8F8F8;--wpcode-background-highlight:#F6FAFF;--wpcode-background-light:#F3F4F5;--wpcode-background-red:#DF2A35;--wpcode-background-white:#fff;--wpcode-border-color:#ddd;--wpcode-button-disabled-bg:#F5F5F5;--wpcode-button-disabled-border:1px solid #DDDDDD;--wpcode-button-disabled-text:#bbb;--wpcode-button-primary-bg:var(--wpcode-color-primary);--wpcode-button-primary-bg-hover:#397EEB;--wpcode-button-primary-text:#fff;--wpcode-button-primary-text-hover:#fff;--wpcode-button-secondary-bg:#F8F8F8;--wpcode-button-secondary-bg-hover:#fff;--wpcode-button-secondary-border:1px solid #DDDDDD;--wpcode-button-secondary-text:#777;--wpcode-button-orange-bg:#E06B44;--wpcode-button-orange-bg-hover:#e17f5e;--wpcode-button-secondary-text-hover:#454545;--wpcode-color-primary:#3568B7;--wpcode-color-red:#DF2A35;--wpcode-color-red-darker:#AB2028;--wpcode-font-size-l:18px;--wpcode-font-size-m:16px;--wpcode-font-size-s:14px;--wpcode-font-size-xl:22px;--wpcode-font-size-xs:12px;--wpcode-font-size-xxl:24px;--wpcode-input-border:1px solid #DDD;--wpcode-input-border-active:#3568B7;--wpcode-input-text-color:#454545;--wpcode-notice-success-bg:#09A347;--wpcode-notice-success-text:#fff;--wpcode-space-h:36px;--wpcode-space-v:24px;--wpcode-text-color-heading:#454545;--wpcode-text-color-highlight:#3568B7;--wpcode-text-color-light-bg:#848A8A;--wpcode-text-color-paragraph:#777777;--wpcode-text-color-placeholder:#bbb}.wpcode-button,.swal2-styled.swal2-confirm.wpcode-button,.swal2-styled.wpcode-button{background-color:var(--wpcode-button-primary-bg);border:1px solid var(--wpcode-button-primary-bg);border-radius:4px;color:var(--wpcode-button-primary-text);cursor:pointer;display:inline-block;font-size:var(--wpcode-font-size-s);font-weight:700;line-height:1;padding:10px 16px;text-decoration:none}.wpcode-button.wpcode-button-icon,.swal2-styled.swal2-confirm.wpcode-button.wpcode-button-icon,.swal2-styled.wpcode-button.wpcode-button-icon{align-items:center;display:inline-flex;padding-bottom:12px;padding-top:12px}.wpcode-button.wpcode-button-icon svg,.swal2-styled.swal2-confirm.wpcode-button.wpcode-button-icon svg,.swal2-styled.wpcode-button.wpcode-button-icon svg{margin-right:5px}.wpcode-button.wpcode-button-icon.wpcode-copy-target,.swal2-styled.swal2-confirm.wpcode-button.wpcode-button-icon.wpcode-copy-target,.swal2-styled.wpcode-button.wpcode-button-icon.wpcode-copy-target{padding-bottom:10px;padding-top:10px}.wpcode-button.wpcode-button-wide,.swal2-styled.swal2-confirm.wpcode-button.wpcode-button-wide,.swal2-styled.wpcode-button.wpcode-button-wide{padding-left:50px;padding-right:50px}.wpcode-button:hover,.wpcode-button:focus,.swal2-styled.swal2-confirm.wpcode-button:hover,.swal2-styled.swal2-confirm.wpcode-button:focus,.swal2-styled.wpcode-button:hover,.swal2-styled.wpcode-button:focus{background-color:var(--wpcode-button-primary-bg-hover);border-color:var(--wpcode-button-primary-bg-hover);color:var(--wpcode-button-primary-text-hover)}.wpcode-button.wpcode-button-secondary,.swal2-styled.swal2-confirm.wpcode-button.wpcode-button-secondary,.swal2-styled.wpcode-button.wpcode-button-secondary{background-color:var(--wpcode-button-secondary-bg);border:var(--wpcode-button-secondary-border);color:var(--wpcode-button-secondary-text)}.wpcode-button.wpcode-button-secondary:hover,.wpcode-button.wpcode-button-secondary:focus,.swal2-styled.swal2-confirm.wpcode-button.wpcode-button-secondary:hover,.swal2-styled.swal2-confirm.wpcode-button.wpcode-button-secondary:focus,.swal2-styled.wpcode-button.wpcode-button-secondary:hover,.swal2-styled.wpcode-button.wpcode-button-secondary:focus{background-color:var(--wpcode-button-secondary-bg-hover);color:var(--wpcode-button-secondary-text-hover)}.wpcode-button.wpcode-button-secondary.wpcode-button-secondary-inactive,.swal2-styled.swal2-confirm.wpcode-button.wpcode-button-secondary.wpcode-button-secondary-inactive,.swal2-styled.wpcode-button.wpcode-button-secondary.wpcode-button-secondary-inactive{background-color:var(--wpcode-button-disabled-bg);border-color:var(--wpcode-button-disabled-bg)}.wpcode-button.wpcode-button-secondary.wpcode-button-secondary-selected,.swal2-styled.swal2-confirm.wpcode-button.wpcode-button-secondary.wpcode-button-secondary-selected,.swal2-styled.wpcode-button.wpcode-button-secondary.wpcode-button-secondary-selected{border-color:var(--wpcode-button-primary-bg)}.wpcode-button.wpcode-button-orange,.swal2-styled.swal2-confirm.wpcode-button.wpcode-button-orange,.swal2-styled.wpcode-button.wpcode-button-orange{background-color:var(--wpcode-button-orange-bg);border-color:var(--wpcode-button-orange-bg);color:var(--wpcode-button-primary-text)}.wpcode-button.wpcode-button-orange:hover,.wpcode-button.wpcode-button-orange:focus,.swal2-styled.swal2-confirm.wpcode-button.wpcode-button-orange:hover,.swal2-styled.swal2-confirm.wpcode-button.wpcode-button-orange:focus,.swal2-styled.wpcode-button.wpcode-button-orange:hover,.swal2-styled.wpcode-button.wpcode-button-orange:focus{background-color:var(--wpcode-button-orange-bg-hover);color:var(--wpcode-button-primary-text)}.wpcode-button.wpcode-button-large,.swal2-styled.swal2-confirm.wpcode-button.wpcode-button-large,.swal2-styled.wpcode-button.wpcode-button-large{align-items:center;display:inline-flex;font-size:var(--wpcode-font-size-m);height:56px;justify-content:center;padding-left:var(--wpcode-space-h);padding-right:var(--wpcode-space-h);text-align:center}.wpcode-button.wpcode-button-large svg,.swal2-styled.swal2-confirm.wpcode-button.wpcode-button-large svg,.swal2-styled.wpcode-button.wpcode-button-large svg{margin-right:7px}.wpcode-button.wpcode-button-small,.swal2-styled.swal2-confirm.wpcode-button.wpcode-button-small,.swal2-styled.wpcode-button.wpcode-button-small{font-size:var(--wpcode-font-size-xs);padding:9px}.wpcode-button:disabled:hover,.wpcode-button:disabled,.swal2-styled.swal2-confirm.wpcode-button:disabled:hover,.swal2-styled.swal2-confirm.wpcode-button:disabled,.swal2-styled.wpcode-button:disabled:hover,.swal2-styled.wpcode-button:disabled{background-color:var(--wpcode-button-disabled-bg);border:var(--wpcode-button-disabled-border);color:var(--wpcode-button-disabled-text)}.wpcode-button-toggle{align-items:center;display:flex;justify-content:space-between;min-width:424px}.wpcode-button-toggle .wpcode-button,.wpcode-button-toggle .swal2-styled.swal2-confirm.wpcode-button,.wpcode-button-toggle .swal2-styled.wpcode-button{width:calc(50% - 5px);background:#fff;color:var(--wpcode-input-text-color)}.wpcode-button-toggle .wpcode-button-secondary{border:2px solid var(--wpcode-color-primary)}.wpcode-success-icon{display:none}.wpcode-show-success-icon .wpcode-success-icon{display:inline-block}.wpcode-show-success-icon .wpcode-default-icon{display:none}.wpcode-button-just-icon{background:none;border:none;cursor:pointer;padding:0}.wpcode-button-just-icon .wpcode-icon{display:block}.wpcode-text-button-icon{align-items:center;background:none;border:none;color:var(--wpcode-text-color-paragraph);cursor:pointer;display:inline-flex;font-size:var(--wpcode-font-size-s);font-weight:600;padding:0}.wpcode-text-button-icon:hover{color:var(--wpcode-text-color-heading)}.wpcode-text-button-icon:hover path{fill:var(--wpcode-text-color-heading)}.wpcode-text-button-icon .wpcode-icon{margin-right:5px}.wpcode-just-icon-button{background:none;border:none;cursor:pointer}.wpcode-button-text{background:none;border:none;color:var(--wpcode-text-color-paragraph);cursor:pointer;font-size:var(--wpcode-font-size-xs);padding:0;text-decoration:underline}.wpcode-button-text .wpcode-icon{margin-right:11px}.wpcode-button-text:focus,.wpcode-button-text:hover{text-decoration:none;background:none;color:var(--wpcode-text-color-heading)}.wpcode-button-text:focus svg path,.wpcode-button-text:hover svg path{fill:var(--wpcode-text-color-heading)}.wpcode-headers-footers #wpcontent,.wpcode-admin-page #wpcontent{padding-left:0 !important}.wpcode-headers-footers #wpwrap,.wpcode-admin-page #wpwrap{background:var(--wpcode-background-light)}.wpcode-header-top{align-items:center;background:var(--wpcode-background-gray);display:flex;justify-content:space-between;padding:var(--wpcode-space-v) var(--wpcode-space-h)}.wpcode-header-right button{margin-left:18px;vertical-align:middle}.wpcode-header-bottom{align-items:center;background:var(--wpcode-background-white);border-color:var(--wpcode-border-color);border-style:solid;border-width:1px 0;display:flex;justify-content:space-between;min-height:60px;padding:0 var(--wpcode-space-h)}.wpcode-header-bottom h1{color:var(--wpcode-text-color-heading);font-size:var(--wpcode-font-size-xl);margin:0}.wpcode-header-bottom.wpcode-sticky{left:160px;position:fixed;right:0;top:32px;z-index:100}.folded .wpcode-header-bottom.wpcode-sticky{left:36px}.wpcode-column{align-items:center;display:flex;flex-flow:row}.wpcode-column .wpcode-button,.wpcode-column .swal2-styled.swal2-confirm.wpcode-button,.wpcode-column .swal2-styled.wpcode-button{margin-left:20px}#wpcode-header-logo{display:block}.wpcode-notifications-inbox{position:relative}.wpcode-notifications-inbox[data-count]:after{background:var(--wpcode-color-red);border-radius:50%;bottom:100%;color:#fff;content:attr(data-count);display:block;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:12px;font-weight:700;height:16px;left:100%;line-height:18px;min-width:16px;position:absolute;text-align:center;transform:translate(-50%,50%)}.wpcode-admin-tabs{font-size:14px;list-style:none;margin:0;overflow:auto;padding:0}.wpcode-admin-tabs li{float:left;margin:0 30px 0 0;padding:0}.wpcode-admin-tabs li button{border:none;background:transparent;cursor:pointer}.wpcode-admin-tabs li button,.wpcode-admin-tabs li a{border-bottom:4px solid #fff;box-shadow:none;color:var(--wpcode-text-color-paragraph);display:block;font-weight:600;padding:20px 0 18px 0;text-decoration:none;transition:border 300ms ease}.wpcode-admin-tabs li button.active,.wpcode-admin-tabs li a.active{border-color:var(--wpcode-color-primary);color:var(--wpcode-text-color-heading)}.wpcode-admin-tabs li button:focus,.wpcode-admin-tabs li button:hover,.wpcode-admin-tabs li a:focus,.wpcode-admin-tabs li a:hover{border-color:var(--wpcode-text-color-paragraph)}.wpcode-admin-tab-content{display:none;position:relative}.wpcode-admin-tab-content.active{display:block}.wpcode-content{padding:28px var(--wpcode-space-h)}.wpcode-content *{box-sizing:border-box}.wpcode-content h2{color:var(--wpcode-text-color-heading);font-size:var(--wpcode-font-size-l)}.wpcode-content p{color:var(--wpcode-text-color-paragraph);font-size:var(--wpcode-font-size-s)}.wpcode-add-snippet .wpcode-content{padding-top:20px}.wpcode-content>hr{margin-bottom:36px;margin-top:36px}.wpcode-code-textarea{margin-bottom:var(--wpcode-space-h)}.wpcode-code-textarea h2{margin:12px 0 20px}.wrap{margin:0;padding:0 var(--wpcode-space-h)}.wrap div.error,.wrap div.updated{margin-bottom:0;position:relative}.wrap div:first-child{margin-top:28px}#wpfooter{padding-left:var(--wpcode-space-h);padding-right:var(--wpcode-space-h)}.wpcode-modal-overlay{background:rgba(0,0,0,0.3);bottom:0;display:none;left:0;position:fixed;right:0;top:0;z-index:1000}.admin-bar .wpcode-modal-overlay{top:32px}.wpcode-show-modal .wpcode-modal-overlay{display:block}.wpcode-modal{background:#fff;border:1px solid var(--wpcode-border-color);border-radius:8px;display:none;left:50%;max-width:100%;padding:25px;position:fixed;top:50%;transform:translate(-50%,-50%);width:752px;z-index:1050}.wpcode-show-modal .wpcode-modal{display:block}@media screen and (min-width:783px){.wpcode-modal{margin-left:18px}}@media screen and (min-width:961px){.wpcode-modal{margin-left:80px}.folded .wpcode-modal{margin-left:18px}}.wpcode-content .CodeMirror{border:1px solid var(--wpcode-border-color);border-radius:3px;font-size:var(--wpcode-font-size-s);line-height:25px}.wpcode-content .CodeMirror-linenumber{color:var(--wpcode-text-color-light-bg);font-size:var(--wpcode-font-size-xs)}.wpcode-content .CodeMirror-lines{padding:20px 0}.wpcode-content .CodeMirror-gutters{background-color:var(--wpcode-button-disabled-bg)}.CodeMirror-sizer:before{color:var(--wpcode-text-color-light-bg);position:absolute}[data-code-type="php"] .CodeMirror-sizer:before{content:"<?php"}[data-code-type="js"] .CodeMirror-sizer:before{content:"<script>"}.wpcode-input-title input.wpcode-input-text{font-size:var(--wpcode-font-size-m)}input.wpcode-input-number,input.wpcode-input-text{border:var(--wpcode-input-border);border-radius:4px;color:var(--wpcode-input-text-color);font-size:var(--wpcode-font-size-s);height:40px}input.wpcode-input-number:focus,input.wpcode-input-text:focus{border-color:var(--wpcode-input-border-active)}input.wpcode-input-text{width:100%}.wpcode-input-textarea{border:var(--wpcode-input-border);border-radius:4px;color:var(--wpcode-input-text-color);font-size:var(--wpcode-font-size-s);max-width:100%;resize:none;width:424px}.wpcode-input-select{align-items:center;display:flex}.wpcode-input-select label{color:var(--wpcode-text-color-heading);font-size:var(--wpcode-font-size-s);font-weight:600}.wpcode-input-select select{margin-left:13px}.wpcode-metabox-form-row-input{width:100%}.wpcode-metabox-form-row-input select{min-width:424px}.wpcode-inline-select select{min-width:98px}.wpcode-inline-select>span{color:var(--wpcode-text-color-paragraph);display:inline-block;font-size:13px;margin-left:12px}.wpcode-separator{border-color:var(--wpcode-border-color);border-style:solid;border-width:1px 0 0;margin:var(--wpcode-space-v) 0}.wpcode-checkbox-toggle{display:inline-block;height:20px;position:relative;width:36px}.wpcode-checkbox-toggle input{display:none;height:0;opacity:0;width:0}.wpcode-checkbox-toggle input:checked+.wpcode-checkbox-toggle-slider{background-color:var(--wpcode-color-primary)}.wpcode-checkbox-toggle input:checked+.wpcode-checkbox-toggle-slider:before{transform:translateX(16px)}.wpcode-checkbox-toggle input:focus+.wpcode-checkbox-toggle-slider{box-shadow:0 0 1px #2196F3}.wpcode-checkbox-toggle .wpcode-checkbox-toggle-slider{background-color:#ccc;border-radius:20px;bottom:0;cursor:pointer;left:0;position:absolute;right:0;top:0;transition:.4s}.wpcode-checkbox-toggle .wpcode-checkbox-toggle-slider:before{background-color:white;border-radius:50%;bottom:3px;content:"";height:14px;left:3px;position:absolute;transition:.4s;width:14px}.wpcode-input-with-button{display:flex;width:100%}.wpcode-input-with-button .wpcode-input-text{margin-right:10px;width:100%}.wpcode-snippet-manager.wp-core-ui select,.wpcode-tools.wp-core-ui select,.wpcode-generator.wp-core-ui select{background-position-x:calc(100% - 13px);border-color:var(--wpcode-border-color);border-radius:4px;color:var(--wpcode-text-color-heading);line-height:38px;min-height:40px;padding-left:12px;padding-right:32px}.wpcode-metabox .select2-container .select2-search--inline{margin:0}.wpcode-metabox .select2-container .select2-search--inline .select2-search__field{color:var(--wpcode-text-color-heading);font-size:14px;margin:5px 5px 0}.wpcode-metabox .select2-container.select2-container--default .select2-selection--multiple{border-color:var(--wpcode-border-color)}.wpcode-metabox .select2-container.select2-container--default .select2-selection--multiple .select2-selection__choice{background-color:var(--wpcode-button-disabled-bg);border:none;border-radius:3px;color:var(--wpcode-text-color-heading);font-size:14px;margin:9px 8px 9px 0;padding:1px 4px}.wpcode-metabox .select2-container.select2-container--default .select2-selection--multiple .select2-selection__rendered{display:block;padding:0 8px}.wpcode-metabox .select2-container.select2-container--default .select2-selection--multiple .select2-selection__choice__remove{margin-right:4px}.wpcode-metabox .select2-container .select2-selection--single{height:40px;font-size:var(--wpcode-font-size-s);border-color:var(--wpcode-border-color)}.wpcode-metabox .select2-container .select2-selection--single .select2-selection__rendered{padding:0 8px;line-height:40px}.wpcode-metabox .select2-container .select2-selection--single .select2-selection__arrow{height:40px;width:30px}.wpcode-admin-page .select2-dropdown{border-color:var(--wpcode-border-color);color:var(--wpcode-text-color-heading)}.wpcode-admin-page .select2-results .wpcode-pro-pill{margin-left:7px;vertical-align:middle}.wpcode-checkboxes-list label{display:block;margin-bottom:16px}.wpcode-checkboxes-list input{margin-right:12px}.wpcode-file-upload .wpcode-file-field{background-color:#fff;border:1px solid #ddd;border-radius:3px;box-shadow:none;color:var(--wpcode-text-color-paragraph);display:inline-block;margin:0 10px 0 0;min-height:40px;overflow:hidden;padding:10px 10px;text-overflow:ellipsis;vertical-align:middle;white-space:nowrap;width:400px}.wpcode-file-upload input[type=file]{height:0.1px;opacity:0;overflow:hidden;position:absolute;width:0.1px;z-index:-1}.wpcode-file-upload label{cursor:pointer;display:inline-flex;outline:none;padding:0;text-overflow:ellipsis;white-space:nowrap}.wpcode-checkbox-multiselect-columns{max-width:600px;position:relative}.wpcode-checkbox-multiselect-columns:after{clear:both;content:".";display:block;font-size:0;height:0;line-height:0;min-height:0;visibility:hidden}.wpcode-checkbox-multiselect-columns:before{background-image:url("data:image/svg+xml,%3Csvg width=%2718%27 height=%2714%27 viewBox=%270 0 18 14%27 fill=%27none%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath d=%27M3.99 6L0 10L3.99 14V11H11V9H3.99V6ZM18 4L14.01 0V3H7V5H14.01V8L18 4Z%27 fill=%27%23999%27/%3E%3C/svg%3E%0A");color:#999;content:"";display:block;height:14px;left:50%;margin:0 0 0 -10px;position:absolute;top:130px;width:18px}.wpcode-checkbox-multiselect-columns .header{font-size:13px;font-weight:600;margin:0;padding:0 0 5px 0;text-align:center}.wpcode-checkbox-multiselect-columns .first-column,.wpcode-checkbox-multiselect-columns .second-column{float:left;width:45%}.wpcode-checkbox-multiselect-columns .second-column{float:right}.wpcode-checkbox-multiselect-columns .second-column ul li{padding:10px}.wpcode-checkbox-multiselect-columns ul{background-color:#fff;border:1px solid #ddd;border-radius:3px;height:250px;list-style-type:none;margin:0;overflow-y:auto;padding:0;position:relative}.wpcode-checkbox-multiselect-columns ul li{border-bottom:1px #eee solid;color:var(--wpcode-text-color-paragraph);font-size:14px;margin:0}.wpcode-checkbox-multiselect-columns ul li label{display:block;padding:10px 10px 10px 32px;position:relative;vertical-align:baseline}.wpcode-checkbox-multiselect-columns ul li label:hover{background-color:var(--wpcode-color-primary);color:#fff}.wpcode-checkbox-multiselect-columns ul li label:before{color:#ddd;content:"\f0c8";font:normal normal normal 16px/1 Georgia;-webkit-font-smoothing:antialiased;left:10px;-moz-osx-font-smoothing:grayscale;position:absolute;text-rendering:auto;top:12px}.wpcode-checkbox-multiselect-columns ul li label.checked{color:rgba(119,119,119,0.6)}.wpcode-checkbox-multiselect-columns ul li label.checked:hover{color:#fff}.wpcode-checkbox-multiselect-columns ul li label.checked:before{background-image:url("data:image/svg+xml,%3Csvg width=%2710%27 height=%278%27 viewBox=%270 0 10 8%27 fill=%27none%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath d=%27M1.38462 3.03448L0 4.13793L3.23077 8H4.46154L10 0.965517L8.76923 0L3.69231 4.96552L1.38462 3.03448Z%27 fill=%27%234982BF%27/%3E%3C/svg%3E%0A");background-position:3px 3px;background-repeat:no-repeat;background-size:10px 8px}.wpcode-checkbox-multiselect-columns ul li label input{display:none}.wpcode-checkbox-multiselect-columns .all{color:#999;display:inline-block;font-size:13px;margin:10px 0 0}.wpcode-admin-page .select2-container--default{font-size:12px;font-weight:500}.wpcode-admin-page .select2-container--default .select2-results__option .select2-results__option{padding-left:30px;color:var(--wpcode-text-color-heading);font-weight:500;margin-bottom:0}.wpcode-admin-page .select2-container--default .select2-results__option .select2-results__option[aria-disabled=true]{color:var(--wpcode-text-color-paragraph);opacity:0.5}.wpcode-admin-page .select2-container--default .select2-results__option .select2-results__option[aria-selected=true]{background-color:var(--wpcode-button-primary-bg);color:#fff}.wpcode-admin-page .select2-container--default .select2-results__option--highlighted[aria-selected]{background:var(--wpcode-button-disabled-bg);color:var(--wpcode-text-color-light-bg)}.wpcode-admin-page .select2-container--default .select2-results__group{padding-left:16px;color:var(--wpcode-text-color-paragraph);font-weight:500}.wpcode-flex{display:flex}.wpcode-code-textarea>.wpcode-flex{justify-content:space-between}.wpcode-input-title{margin-bottom:8px}.wpcode-status-text{color:var(--wpcode-text-color-paragraph);font-size:var(--wpcode-font-size-s);margin-right:8px;min-width:51px}#wp-wpcode_snippet_text-wrap{display:none}.wpcode-show-tinymce .wpcode-code-textarea .CodeMirror{display:none}.wpcode-show-tinymce #wp-wpcode_snippet_text-wrap{display:block}.wpcode-add-snippet-description{padding:var(--wpcode-space-v);background:#fff;border:1px solid var(--wpcode-border-color);border-bottom:0;border-radius:4px 4px 0 0;font-size:var(--wpcode-font-size-s);color:var(--wpcode-text-color-paragraph)}.wpcode-add-snippet-description a:hover{text-decoration:none}.wpcode-add-snippet-description+.wpcode-metabox{border-radius:0 0 4px 4px}.wpcode-button-save-to-library{margin-right:14px;text-decoration:none;font-size:var(--wpcode-font-size-s);font-weight:600;color:var(--wpcode-text-color-paragraph)}.wpcode-button-save-to-library svg{vertical-align:middle}.wpcode-button-save-to-library svg path{fill:var(--wpcode-text-color-paragraph)}.wpcode-button-save-to-library:hover{text-decoration:underline;color:var(--wpcode-text-color-heading)}.wpcode-button-save-to-library:hover svg path{fill:var(--wpcode-text-color-heading)}.wpcode-button-save-to-library:disabled{background-color:transparent;border:none}.wpcode-button-save-to-library#wpcode_save_to_library{opacity:0.5}.swal2-title{line-height:1.2}.wpcode-metabox{background:var(--wpcode-background-white);border:1px solid var(--wpcode-border-color);border-radius:4px;margin-bottom:var(--wpcode-space-h)}.wpcode-metabox-title{align-items:center;border-bottom:1px solid var(--wpcode-border-color);display:flex;justify-content:space-between}.wpcode-metabox-title-text{color:var(--wpcode-text-color-heading);font-size:var(--wpcode-font-size-m);font-weight:600;padding:0 var(--wpcode-space-v)}.wpcode-metabox-button-toggle{background-color:var(--wpcode-background-white);border:none;cursor:pointer;height:60px;margin:0;text-align:center;width:60px}.wpcode-metabox-collapsed .wpcode-metabox-button-toggle svg{transform:rotate(180deg)}.wpcode-metabox-content{padding:var(--wpcode-space-v);padding-bottom:0}.wpcode-metabox-collapsed .wpcode-metabox-content{display:none}.wpcode-metabox-content p:first-child{margin-top:0}.wpcode-metabox-form{max-width:670px}.wpcode-metabox-form-row{display:flex;margin-bottom:var(--wpcode-space-v)}.wpcode-metabox-form-row-label{flex-shrink:0;width:245px}.wpcode-metabox-form-row-label label{color:var(--wpcode-text-color-heading);font-size:var(--wpcode-font-size-s);font-weight:600}.wp-list-table.wpcode-snippets .column-status{width:65px}@media screen and (min-width:783px){.wp-list-table.wpcode-snippets .column-status{text-align:center}}.wp-list-table.wpcode-snippets .column-name a{color:var(--wpcode-text-color-heading);font-size:14px;text-decoration:none}.wp-list-table.wpcode-snippets .column-name a:hover,.wp-list-table.wpcode-snippets .column-name a:focus{color:var(--wpcode-text-color-paragraph)}.wp-list-table.wpcode-snippets .column-name .delete a,.wp-list-table.wpcode-snippets .column-name .trash a{color:var(--wpcode-background-red)}.wp-list-table.wpcode-snippets .column-name .delete a:hover,.wp-list-table.wpcode-snippets .column-name .delete a:focus,.wp-list-table.wpcode-snippets .column-name .trash a:hover,.wp-list-table.wpcode-snippets .column-name .trash a:focus{color:var(--wpcode-color-red-darker)}.wp-list-table.wpcode-snippets .column-location a,.wp-list-table.wpcode-snippets .column-author a{color:var(--wpcode-text-color-paragraph)}.wp-list-table.wpcode-snippets .column-location a:hover,.wp-list-table.wpcode-snippets .column-location a:focus,.wp-list-table.wpcode-snippets .column-author a:hover,.wp-list-table.wpcode-snippets .column-author a:focus{color:var(--wpcode-text-color-heading)}.wp-list-table.wpcode-snippets th.column-created a{color:var(--wpcode-text-color-heading)}.wp-list-table.wpcode-snippets th.column-created a:hover,.wp-list-table.wpcode-snippets th.column-created a:focus{color:var(--wpcode-text-color-paragraph)}.wp-list-table.wpcode-snippets .column-created{color:var(--wpcode-text-color-paragraph)}.wp-list-table.wpcode-snippets td.column-tags{color:var(--wpcode-color-primary)}.wp-list-table.wpcode-snippets td.column-tags a{color:var(--wpcode-color-primary);text-decoration:underline}.wp-list-table.wpcode-snippets td.column-tags a:hover,.wp-list-table.wpcode-snippets td.column-tags a:focus{text-decoration:none}.wp-list-table.wpcode-snippets .alternate,.wp-list-table.wpcode-snippets.striped>tbody>:nth-child(odd),.wp-list-table.wpcode-snippets ul.striped>:nth-child(odd){background-color:var(--wpcode-background-gray)}.wpcode-admin-page.wpcode .tablenav.top{margin-bottom:16px}.wpcode-admin-page.wpcode .tablenav.bottom{margin-top:11px}.wpcode-admin-page.wpcode .wpcode-content a{}.wpcode-admin-page.wpcode .button{background:var(--wpcode-background-light);border-color:var(--wpcode-color-primary);color:var(--wpcode-color-primary)}.wpcode-cl-group{background:var(--wpcode-button-disabled-bg);border-radius:4px;margin-top:50px;padding:16px;position:relative}.wpcode-cl-group:first-child{margin-top:0}.wpcode-cl-group:first-child .wpcode-cl-group-or{display:none}#wpcode-conditions-holder{margin:16px 0;max-width:685px}.wpcode-cl-group-or{bottom:100%;height:50px;left:0;position:absolute;right:0}.wpcode-cl-group-or .wpcode-cl-group-or-line{background-color:var(--wpcode-button-disabled-bg);height:2px;left:0;position:absolute;right:0;top:50%}.wpcode-cl-group-or .wpcode-cl-group-or-text{background:#F5F5F5;border-radius:10px;color:var(--wpcode-text-color-heading);font-size:12px;font-weight:500;left:50%;padding:2px 9px;position:absolute;top:50%;transform:translate(-50%,-50%)}.wpcode-cl-rules-row{align-items:center;display:flex;justify-content:space-between;margin-bottom:8px}.wpcode-cl-rules-row .wpcode-cl-rules-row-options{align-items:flex-start;display:flex;max-width:653px}.wpcode-metabox-form-row-input .wpcode-cl-rules-row select{margin:0 16px 0 0;min-width:0;width:175px}.wpcode-metabox-form-row-input .wpcode-cl-rules-row select.wpcode-cl-rule-relation{width:130px}.wpcode-cl-rules-row .wpcode-cl-remove-row{flex-shrink:0}.wpcode-items-metabox{display:flex;padding:0}.wpcode-items-sidebar{flex-shrink:0;padding:var(--wpcode-space-v);width:242px}.wpcode-items-list{border-left:1px solid var(--wpcode-border-color);min-height:400px;padding:calc(var(--wpcode-space-v) / 2) 12px;width:100%}.wpcode-items-categories-list{margin:0}.wpcode-items-categories-list li{margin:0}.wpcode-items-categories-list button{background:transparent;border:none;color:var(--wpcode-text-color-paragraph);cursor:pointer;display:block;font-size:var(--wpcode-font-size-m);font-weight:500;padding:12px 8px;position:relative;text-align:left;width:100%}.wpcode-items-categories-list button:focus,.wpcode-items-categories-list button.wpcode-active{background:var(--wpcode-background-highlight);color:var(--wpcode-text-color-highlight)}.wpcode-items-categories-list button:hover{text-decoration:underline}.wpcode-items-categories-list button.wpcode-active{font-weight:700}.wpcode-items-categories-list button.wpcode-active:after{background-image:url("data:image/svg+xml,%3Csvg width=%2716%27 height=%2712%27 viewBox=%270 0 16 12%27 fill=%27none%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath d=%27M5.33329 9.25326L1.83329 5.75326L0.666626 6.91992L5.33329 11.5866L15.3333 1.58659L14.1666 0.419922L5.33329 9.25326Z%27 fill=%27%233568B7%27/%3E%3C/svg%3E%0A");content:'';height:12px;position:absolute;right:10px;top:50%;transform:translateY(-50%);width:16px}.wpcode-items-categories-list button.wpcode-active:hover{text-decoration:none}.wpcode-items-list-category{align-content:stretch;display:flex;flex-wrap:wrap;justify-content:flex-start}.wpcode-list-item{border:1px solid var(--wpcode-border-color);border-radius:4px;margin-bottom:24px;margin-right:12px;margin-left:12px;max-width:100%;padding:16px 20px;position:relative;width:100%}@media (min-width:961px){.wpcode-list-item{width:calc(50% - 24px)}}@media (min-width:1440px){.wpcode-list-item{width:calc(100% / 3 - 24px)}}.wpcode-list-item h3{font-size:var(--wpcode-font-size-m);line-height:1.2;margin:0;overflow:hidden;position:relative;text-overflow:ellipsis;white-space:nowrap}.wpcode-list-item p{margin-bottom:0}.wpcode-list-item:hover .wpcode-list-item-description,.wpcode-list-item:focus .wpcode-list-item-description{opacity:0}.wpcode-list-item:hover .wpcode-list-item-buttons,.wpcode-list-item:focus .wpcode-list-item-buttons{opacity:1}@media (hover:none){.wpcode-list-item .wpcode-list-item-description{opacity:0}.wpcode-list-item .wpcode-list-item-buttons{opacity:1}}.wpcode-list-item .wpcode-list-item-pill{position:absolute;top:10px;right:10px;font-size:8px;font-weight:700;text-transform:uppercase;line-height:1;padding:4px 8px;border-radius:40px}.wpcode-list-item .wpcode-list-item-pill.wpcode-list-item-pill-blue{background:var(--wpcode-color-primary);color:#fff}.wpcode-list-item .wpcode-list-item-pill.wpcode-list-item-pill-gray{background:var(--wpcode-text-color-heading);color:#fff}.wpcode-list-item.wpcode-list-item-has-pill h3{max-width:calc(100% - 60px)}.wpcode-list-item-actions{position:relative}.wpcode-list-item-description{min-height:40px}.wpcode-list-item-buttons{display:flex;justify-content:space-between;opacity:0;position:absolute;top:0;width:100%;z-index:10}.wpcode-list-item-buttons .wpcode-button,.wpcode-list-item-buttons .swal2-styled.swal2-confirm.wpcode-button,.wpcode-list-item-buttons .swal2-styled.wpcode-button{flex-grow:1;margin-left:10px;text-align:center}.wpcode-list-item-buttons .wpcode-button:first-child,.wpcode-list-item-buttons .swal2-styled.swal2-confirm.wpcode-button:first-child,.wpcode-list-item-buttons .swal2-styled.wpcode-button:first-child{margin-left:0}.wpcode-items-search{margin-bottom:20px;position:relative}.wpcode-items-search input{border-color:var(--wpcode-border-color);font-size:var(--wpcode-font-size-s);height:38px;padding-left:32px;width:100%}.wpcode-items-search input::-moz-placeholder{color:var(--wpcode-text-color-placeholder)}.wpcode-items-search input:-ms-input-placeholder{color:var(--wpcode-text-color-placeholder)}.wpcode-items-search input::placeholder{color:var(--wpcode-text-color-placeholder)}.wpcode-items-search label{left:10px;position:absolute;top:11px}.wpcode-library-preview-header{padding-bottom:25px}.wpcode-library-preview-header h2{margin:0}.wpcode-library-preview-header .wpcode-close-modal{float:right}.wpcode-library-preview-content .CodeMirror{background:var(--wpcode-background-gray)}.wpcode-library-preview-content .CodeMirror-activeline-background{background:transparent !important}.wpcode-library-preview-content .CodeMirror-focused .CodeMirror-activeline-background{background:rgba(100,100,100,0.1) !important}.wpcode-library-preview-buttons{margin-top:25px}.wpcode-item-use-button.wpcode-start-auth{padding-top:6px;padding-bottom:6px;justify-content:center}.wpcode-item-use-button.wpcode-start-auth svg{margin-right:9px}.wpcode-generator .wpcode-items-metabox{margin-bottom:0}.wpcode-generator .wpcode-generator-preview .CodeMirror{height:auto}.wpcode-generator-preview{background-color:var(--wpcode-background-highlight);border-color:var(--wpcode-border-color);border-style:solid;border-width:0 1px 1px;padding:15px 28px 24px}.wpcode-generator-preview-header{align-items:center;display:flex;margin-bottom:14px}.wpcode-generator-preview-header h2{margin:0 8px 0 0}.wpcode-generator-preview-header .wpcode-button,.wpcode-generator-preview-header .swal2-styled.swal2-confirm.wpcode-button,.wpcode-generator-preview-header .swal2-styled.wpcode-button{margin-left:12px}.wpcode-form-tab:after{clear:both;content:'';display:table}.wpcode-generator-column{float:left;padding:14px 14px;width:calc(100% / 3)}.wpcode-generator-actions{padding:28px 14px 14px;text-align:center}.wpcode-generator-field{margin-bottom:24px}.wpcode-generator-field label{color:var(--wpcode-text-color-heading);display:block;font-size:var(--wpcode-font-size-s);font-weight:600;margin-bottom:8px}.wpcode-generator-field input[type="text"]{width:100%}.wpcode-generator-field select{max-width:100%;width:100%}.wpcode-field-description{margin-top:8px}.wpcode-generator-field-list ul{color:var(--wpcode-text-color-paragraph);font-size:var(--wpcode-font-size-s);list-style:disc;padding-left:18px}.wpcode-checkbox-line{margin-bottom:14px}.wpcode-checkbox-line .wpcode-checkbox-toggle{margin-right:8px}.wpcode-checkbox-line label{display:inline-block}.wpcode-repeater-group{border-top:1px solid var(--wpcode-border-color);padding-top:24px}.wpcode-repeater-group .wpcode-remove-row{margin-bottom:24px}#wpcode-importer-process{display:none}#wpcode-importer-process .process-completed{display:none}#wpcode-importer-process .status{background-color:#fff;border:1px solid #ddd;border-radius:3px;display:none;margin:20px 0 30px;max-height:800px;overflow-y:scroll}#wpcode-importer-process .item{border-bottom:1px solid #ddd;padding:20px}#wpcode-importer-process .item:last-of-type{border:none}#wpcode-importer-process .item .name{float:left;font-size:14px}#wpcode-importer-process .item .name svg{display:inline-block;margin:0 10px 0 0}#wpcode-importer-process .item .actions{float:right;font-size:14px}.wpcode-clear:after{clear:both;content:" ";display:table}#wpcode-plugins-importer{margin-bottom:20px;max-width:100%;width:400px}.wpcode-tools .pre-error,.wpcode-tools .info-area{background:#fff;border:1px solid #ddd;box-shadow:none;display:block;font-family:Menlo,Monaco,monospace;font-size:12px;height:450px;max-width:1000px;overflow:auto;padding:20px;white-space:pre;width:100%}.wpcode-admin-page .wpcode-alert{border:1px solid transparent;margin-bottom:18px;padding:16px}.wpcode-admin-page .wpcode-alert h4{color:inherit;margin-top:0}.wpcode-admin-page .wpcode-alert p{margin:0 0 15px 0}.wpcode-admin-page .wpcode-alert p:last-of-type{margin:0}.wpcode-admin-page .wpcode-alert.wpcode-alert-nomargin{margin:0}.wpcode-admin-page .wpcode-alert.wpcode-alert-small{font-size:12px}.wpcode-admin-page .wpcode-alert.wpcode-alert-success{background-color:#dff0d8;border-color:#d6e9c6;color:#3c763d}.wpcode-admin-page .wpcode-alert.wpcode-alert-info{background-color:#d9edf7;border-color:#bce8f1;color:#31708f}.wpcode-admin-page .wpcode-alert.wpcode-alert-warning{background-color:#fcf8e3;border-color:#faebcc;color:#8a6d3b}.wpcode-admin-page .wpcode-alert.wpcode-alert-danger{background-color:#f2dede;border-color:#ebccd1;color:#a94442}.wpcode-docs-overlay{background-color:#ffffff;bottom:0;display:none;left:0;max-height:100vh;opacity:1;overflow-y:auto;position:fixed;right:0;top:46px;z-index:100100}.wpcode-docs-overlay *{box-sizing:border-box}@media screen and (min-width:783px){.wpcode-docs-overlay{left:36px;top:32px}}@media screen and (min-width:961px){.wpcode-docs-overlay{left:160px}.folded .wpcode-docs-overlay{left:36px}}#wpcode-help-logo{left:36px;position:absolute;top:24px}#wpcode-help-close{cursor:pointer;display:inline-block;height:30px;padding:5px;position:absolute;right:37px;top:25px;transition:all 0.05s ease-out;width:30px;z-index:10}.wpcode-docs-content{background-color:#fff;margin:0 auto 50px auto;max-width:100%;padding:0 30px;width:760px}.wpcode-help-docs{margin-bottom:20px;padding:0 18px}.wpcode-help-docs a{color:var(--wpcode-text-color-paragraph);font-size:var(--wpcode-font-size-m);text-decoration:none}.wpcode-help-docs a:hover,.wpcode-help-docs a:focus{color:var(--wpcode-text-color-heading);text-decoration:underline}.wpcode-help-docs .wpcode-icon-file-text{margin-right:14px}.wpcode-help-docs li{margin-bottom:18px}.wpcode-help-categories-toggle{border-bottom:1px solid var(--wpcode-border-color);margin-bottom:40px}.wpcode-help-category{border-top:1px solid var(--wpcode-border-color);margin:0}.wpcode-help-category header{align-items:center;color:var(--wpcode-text-color-heading);cursor:pointer;display:flex;flex-direction:row;font-size:var(--wpcode-font-size-l);font-weight:600;justify-content:flex-start;padding-left:18px;padding-right:25px}.wpcode-help-category header:hover{color:var(--wpcode-color-primary)}.wpcode-help-category .wpcode-icon-folder{margin:23px 11px 23px 0}.wpcode-help-category .wpcode-icon-arrow{margin-left:auto;transform-origin:center;transition:transform 300ms ease}.wpcode-help-category.open .wpcode-icon-arrow{transform:rotate(90deg)}.wpcode-help-category .wpcode-help-docs{display:none}#wpcode-help-search{padding:74px 0 50px 0;position:relative;text-align:center;top:0}#wpcode-help-search .wpcode-icon-search{display:none;left:17px;position:absolute;top:92px}#wpcode-help-search input{background-image:none;background-position:22px center;background-repeat:no-repeat;background-size:20px 20px;border:1px solid var(--wpcode-border-color);border-radius:3px;color:var(--wpcode-text-color-heading);font-size:20px;letter-spacing:0;line-height:20px;min-height:48px;padding:10px 10px 10px 42px;text-align:left;width:100%}#wpcode-help-search #wpcode-help-search-clear{cursor:pointer;left:17px;opacity:.7;position:absolute;top:92px}#wpcode-help-search.wpcode-search-empty #wpcode-help-search-clear{display:none}#wpcode-help-search.wpcode-search-empty .wpcode-icon-search{display:block}#wpcode-help-no-result li span{color:var(--wpcode-text-color-paragraph);font-size:var(--wpcode-font-size-s)}.wpcode-help-footer{align-items:center;display:flex;justify-content:space-between}.wpcode-help-footer .wpcode-help-footer-box{border:1px solid var(--wpcode-border-color);border-radius:8px;padding:40px 38px;text-align:center;width:calc(50% - 18px)}.wpcode-help-footer .wpcode-help-footer-box h3{font-size:var(--wpcode-font-size-l)}.wpcode-help-footer .wpcode-help-footer-box p{color:var(--wpcode-text-color-paragraph);font-size:var(--wpcode-font-size-m)}.wpcode-notifications-drawer{background:#fff;border-left:1px solid var(--wpcode-border-color);bottom:0;position:fixed;right:-375px;top:32px;transition:right 300ms ease 0s,visibility 0s ease 400ms;visibility:hidden;width:375px;z-index:1100}.wpcode-notifications-open .wpcode-notifications-drawer{right:0;transition:right 300ms ease 0s,visibility 0s ease 0ms;visibility:visible}.wpcode-notifications-overlay{background-color:rgba(0,0,0,0.3);bottom:0;display:none;left:0;opacity:.5;position:fixed;right:0;top:46px;transition:.5s;z-index:1052}.folded .wpcode-notifications-overlay{left:36px}.wpcode-notifications-open .wpcode-notifications-overlay{display:block}@media screen and (min-width:783px){.wpcode-notifications-overlay{left:36px}.admin-bar .wpcode-notifications-overlay{top:32px}}@media screen and (min-width:961px){.wpcode-notifications-overlay{left:160px}.folded .wpcode-notifications-overlay{left:36px}}.wpcode-notifications-header{background:var(--wpcode-background-highlight);border-bottom:1px solid var(--wpcode-border-color);padding:18px 40px 18px 20px}.wpcode-notifications-header .wpcode-notifications-close{position:absolute;right:18px;top:22px}.wpcode-notifications-header .wpcode-notifications-close path{fill:var(--wpcode-text-color-heading)}.wpcode-notifications-header h3{color:var(--wpcode-text-color-heading);display:inline-block;font-size:var(--wpcode-font-size-s);font-weight:700;line-height:21px;margin:0 10px 0 0}.wpcode-notifications-list{height:calc(100% - 130px);overflow:auto}.wpcode-notifications-list ul{margin:0}.wpcode-notifications-list li{border-top:1px solid var(--wpcode-border-color);display:flex;margin:0;padding:24px}.wpcode-notifications-list li:first-child{border-top:none}.wpcode-notifications-list li h4{color:var(--wpcode-text-color-heading);font-size:var(--wpcode-font-size-s);font-weight:600;line-height:21px;margin:0}.wpcode-notifications-list p{color:var(--wpcode-text-color-light-bg);font-size:var(--wpcode-font-size-s);margin:8px 0}.wpcode-notifications-list p.wpcode-start{font-size:var(--wpcode-font-size-xs)}.wpcode-notification-actions .wpcode-button,.wpcode-notification-actions .swal2-styled.swal2-confirm.wpcode-button,.wpcode-notification-actions .swal2-styled.wpcode-button{margin-right:10px}.wpcode-notifications-footer{border-top:1px solid var(--wpcode-border-color);padding:24px 27px;text-align:right}#wpcode-dismissed-title,#wpcode-notifications-show-active,.wpcode-notifications-dismissed{display:none}.show-dismissed #wpcode-notifications-show-dismissed,.show-dismissed .wpcode-notifications-active,.show-dismissed #wpcode-active-title{display:none}.show-dismissed #wpcode-notifications-show-active,.show-dismissed #wpcode-dismissed-title{display:inline-block}.show-dismissed .wpcode-notifications-dismissed{display:block}.wpcode-notifications-dismissed .wpcode-notification-dismiss{display:none}.wpcode-notification-icon{margin-right:10px}.wpcode-help-tooltip{cursor:help;display:inline-block;position:relative;vertical-align:middle}.wpcode-help-tooltip .wpcode-help-tooltip-text{background-color:var(--wpcode-color-primary);border-radius:6px;bottom:100%;color:#fff;font-size:var(--wpcode-font-size-s);font-weight:400;left:50%;margin-bottom:12px;margin-left:-90px;padding:12px 12px;position:absolute;text-align:center;visibility:hidden;width:180px;z-index:500}.wpcode-help-tooltip .wpcode-help-tooltip-text:after{border-color:var(--wpcode-color-primary) transparent transparent transparent;border-style:solid;border-width:10px 9px 0 9px;content:'';height:0;left:50%;margin-left:-9px;position:absolute;top:100%;width:0}.wpcode-help-tooltip:hover .wpcode-help-tooltip-text{visibility:visible}.wpcode-help-tooltip .wpcode-icon-help{margin-top:1px}.wpcode-help-tooltip .wpcode-icon-help path{fill:#8A8A8A}.wpcode-upgrade-welcome{background:#f3f4f5}.wpcode-welcome-content{max-width:1168px;margin:24px auto;clear:both}.wpcode-welcome-content *{box-sizing:border-box}.wpcode-welcome-content h2{font-size:22px;font-weight:600;margin-top:0;line-height:1.2}.wpcode-welcome-content h3{font-size:1.5em}.wpcode-welcome-content p{font-size:1.2em}.wpcode-welcome-box{background:#fff;padding:40px;border:1px solid #ddd;border-radius:4px;margin-bottom:30px}@media (max-width:767px){.wpcode-welcome-box{padding:26px}}.wpcode-welcome-logo{margin:4px 0 28px}.wpcode-welcome-text{width:700px;margin:32px auto;max-width:100%}.wpcode-welcome-features{display:flex;justify-content:space-between;flex-wrap:wrap;margin-top:42px}.wpcode-welcome-features .wpcode-welcome-feature{width:calc(33.3% - 16px);text-align:center;margin-bottom:32px;display:flex}@media (max-width:782px){.wpcode-welcome-features .wpcode-welcome-feature{width:100%}}.wpcode-welcome-features .wpcode-welcome-feature p{font-size:16px}.wpcode-welcome-features .wpcode-welcome-feature h3{font-size:18px;margin-top:6px}.wpcode-welcome-features .wpcode-welcome-feature .wpcode-welcome-feature-text{text-align:left;margin-left:16px}.wpcode-welcome-features .wpcode-welcome-feature-icon-icon path{fill:var(--wpcode-color-primary)}.wpcode-welcome-highlight{grid-template-columns:1fr 1fr;display:grid}@media (max-width:767px){.wpcode-welcome-highlight{grid-template-columns:1fr}}.wpcode-welcome-highlight .wpcode-welcome-highlight-column{padding:16px 0;align-self:center;grid-column-start:2}@media (min-width:768px){.wpcode-welcome-highlight .wpcode-welcome-highlight-column{padding:16px 20px}.wpcode-welcome-highlight .wpcode-welcome-highlight-column:nth-of-type(2n+1){grid-column-start:1}.wpcode-welcome-highlight .wpcode-welcome-highlight-column:nth-of-type(2n){grid-column-start:2}}.wpcode-welcome-highlight img{max-width:100%;width:100%;height:auto}.wpcode-buttons-row{text-align:left}.wpcode-welcome-syed-mircea{font-size:1.2em}.wpcode-welcome-syed-mircea .wpcode-welcome-person{display:inline-flex;align-items:center;margin-right:60px;margin-top:32px}.wpcode-welcome-syed-mircea .wpcode-welcome-person-image{margin-right:15px}.wpcode-welcome-syed-mircea .wpcode-welcome-person-text{font-size:13px;color:var(--wpcode-text-color-paragraph)}.wpcode-welcome-syed-mircea h4{color:var(--wpcode-text-color-heading);margin:0 0 4px;font-size:16px;font-weight:600}.wpcode-welcome-syed-mircea img{display:block;margin-bottom:0}.wpcode-welcome-syed-mircea span{align-self:end}.wpcode-upgrade-welcome #wpcontent{padding-right:10px}@media screen and (min-width:783px){.wpcode-upgrade-welcome #wpcontent{padding-right:20px}}.wpcode-loading-spinner{-webkit-animation:wpcode-spinner-rotation 0.8s linear infinite;animation:wpcode-spinner-rotation 0.8s linear infinite;background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA4MCA4MCI+CiAgICA8cGF0aCBkPSJNNDAgMEMxNy45IDAgMCAxNy45IDAgNDBzMTcuOSA0MCA0MCA0MCA0MC0xNy45IDQwLTQwUzYyLjEgMCA0MCAwem0wIDcyQzIyLjMgNzIgOCA1Ny43IDggNDBTMjIuMyA4IDQwIDhzMzIgMTQuMyAzMiAzMi0xNC4zIDMyLTMyIDMyeiIKICAgICAgICAgIG9wYWNpdHk9Ii4xNSIvPgogICAgPHBhdGggZmlsbD0iIzM1NjhCNyIKICAgICAgICAgIGQ9Ik03NS44IDQ3LjRoLS40Yy0yLjItLjItMy44LTIuMi0zLjYtNC40LjEtMSAuMS0yIC4xLTNDNzIgMjIuNCA1Ny42IDggNDAgOGMtMi4yIDAtNC0xLjgtNC00czEuOC00IDQtNGMyMi4xIDAgNDAgMTcuOSA0MCA0MCAwIDEuMy0uMSAyLjUtLjIgMy44LS4yIDIuMS0xLjkgMy42LTQgMy42eiIvPgo8L3N2Zz4K);background-repeat:no-repeat;background-size:16px 16px;display:none;height:16px;margin:0 10px;position:absolute;width:16px;z-index:40}@-webkit-keyframes wpcode-spinner-rotation{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}@keyframes wpcode-spinner-rotation{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.wpcode-pro-pill{background:#bbb;color:#fff;text-transform:uppercase;padding:4px 7px;border-radius:9px;font-size:8px;line-height:1;display:inline-block;vertical-align:text-top}.wpcode-revisions-list-area{margin:24px 0 24px;position:relative}.wpcode-revisions-list-area #wpcode-show-all-snippets{margin-top:24px}.wpcode-revisions-list{border-left:1px solid var(--wpcode-border-color);padding-left:22px;margin:0}.wpcode-revisions-list.wpcode-revisions-list-collapsed{display:none}.wpcode-revisions-list.wpcode-revisions-list-extra{margin-top:0}.wpcode-revisions-list.wpcode-revisions-list-extra .wpcode-revision-list-item:first-child{background-color:var(--wpcode-button-disabled-bg)}.wpcode-revision-list-item{background:var(--wpcode-button-disabled-bg);padding:6px 9px;font-size:var(--wpcode-font-size-s);position:relative}.wpcode-revision-list-item .avatar{border-radius:50%;vertical-align:middle}.wpcode-revision-list-item:before{position:absolute;content:'';width:7px;height:7px;border-radius:50%;background-color:#C4C4C4;border:2px solid #FFF;right:100%;margin-right:17px;top:50%;margin-top:-5px}.wpcode-revision-list-item:first-child{background-color:var(--wpcode-background-highlight)}.wpcode-revision-list-author{display:inline-block;margin:0 10px 0 12px;font-weight:600;color:var(--wpcode-text-color-heading)}.wpcode-revision-list-date{color:var(--wpcode-text-color-light-bg)}.wpcode-revision-list-item-actions{float:right;display:inline-flex;vertical-align:middle;align-items:center;margin-top:7px;margin-right:6px}.wpcode-revision-list-item-actions span,.wpcode-revision-list-item-actions a{font-size:12px;color:var(--wpcode-text-color-paragraph);margin-left:14px}.wpcode-revision-list-item-actions span:hover,.wpcode-revision-list-item-actions a:hover{text-decoration:none}.wpcode-blur-area{filter:blur(2px);pointer-events:none}.wpcode-library .wpcode-content{position:relative}#poststuff .wpcode-upsell-box,.wpcode-upsell-box{position:absolute;z-index:20;background:#fff;width:662px;max-width:100%;top:50%;left:50%;transform:translate(-50%,-50%);padding:40px;text-align:center;border-radius:8px;border:1px solid var(--wpcode-border-color)}#poststuff .wpcode-upsell-box *,.wpcode-upsell-box *{box-sizing:border-box}#poststuff .wpcode-upsell-box h2,.wpcode-upsell-box h2{font-size:var(--wpcode-font-size-xxl);margin-top:0;line-height:1.2}#poststuff .wpcode-upsell-box .wpcode-button,#poststuff .wpcode-upsell-box .swal2-styled.swal2-confirm.wpcode-button,#poststuff .wpcode-upsell-box .swal2-styled.wpcode-button,.wpcode-upsell-box .wpcode-button,.wpcode-upsell-box .swal2-styled.swal2-confirm.wpcode-button,.wpcode-upsell-box .swal2-styled.wpcode-button{margin-top:6px}#poststuff .wpcode-upsell-box .wpcode-upsell-button-text,.wpcode-upsell-box .wpcode-upsell-button-text{margin-top:16px;display:inline-block;font-size:var(--wpcode-font-size-s);color:var(--wpcode-text-color-light-bg)}#poststuff .wpcode-upsell-box .wpcode-upsell-button-text:hover,.wpcode-upsell-box .wpcode-upsell-button-text:hover{text-decoration:none}#poststuff .wpcode-upsell-box p,.wpcode-upsell-box p{color:var(--wpcode-text-color-paragraph);font-size:var(--wpcode-font-size-s)}#poststuff .wpcode-upsell-box.wpcode-upsell-box-with-features,.wpcode-upsell-box.wpcode-upsell-box-with-features{width:892px;padding:56px}#poststuff .wpcode-upsell-box.wpcode-upsell-box-with-features .wpcode-upsell-text,.wpcode-upsell-box.wpcode-upsell-box-with-features .wpcode-upsell-text{max-width:600px;margin:0 auto}#poststuff .wpcode-upsell-box .wpcode-upsell-features,.wpcode-upsell-box .wpcode-upsell-features{display:flex;flex-wrap:wrap;justify-content:space-between;margin-top:40px;margin-bottom:24px;text-align:left}#poststuff .wpcode-upsell-box .wpcode-upsell-features .wpcode-upsell-feature,.wpcode-upsell-box .wpcode-upsell-features .wpcode-upsell-feature{width:50%;color:var(--wpcode-text-color-heading);font-size:var(--wpcode-font-size-m);margin-bottom:16px;line-height:1.5;padding-left:34px;position:relative;padding-right:10px}#poststuff .wpcode-upsell-box .wpcode-upsell-features .wpcode-upsell-feature:before,.wpcode-upsell-box .wpcode-upsell-features .wpcode-upsell-feature:before{content:'';background-image:url("data:image/svg+xml,%3Csvg width=%2719%27 height=%2718%27 viewBox=%270 0 19 18%27 fill=%27none%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath fill-rule=%27evenodd%27 clip-rule=%27evenodd%27 d=%27M9.5 0.416016C4.67 0.416016 0.75 4.33602 0.75 9.16602C0.75 13.996 4.67 17.916 9.5 17.916C14.33 17.916 18.25 13.996 18.25 9.16602C18.25 4.33602 14.33 0.416016 9.5 0.416016ZM9.5 16.166C5.64125 16.166 2.5 13.0248 2.5 9.16602C2.5 5.30727 5.64125 2.16602 9.5 2.16602C13.3587 2.16602 16.5 5.30727 16.5 9.16602C16.5 13.0248 13.3587 16.166 9.5 16.166ZM7.75 11.0648L13.5163 5.29852L14.75 6.54102L7.75 13.541L4.25 10.041L5.48375 8.80727L7.75 11.0648Z%27 fill=%27%2309A347%27/%3E%3C/svg%3E");display:block;width:19px;height:18px;position:absolute;left:0;top:3px}.wpcode-admin-page .swal2-title{font-size:var(--wpcode-font-size-xxl);color:var(--wpcode-text-color-heading);padding:0}.wpcode-admin-page .swal2-html-container{font-size:var(--wpcode-font-size-s);color:var(--wpcode-text-color-paragraph);line-height:1.5;margin-top:24px}.wpcode-admin-page .swal2-popup{padding:36px;width:560px;border:1px solid var(--wpcode-border-color);border-radius:0}.wpcode-admin-page .swal2-styled.swal2-confirm.wpcode-button:focus,.wpcode-admin-page .swal2-styled.wpcode-button:focus{box-shadow:0 0 0 3px rgb(53 104 183/50%)}.wpcode-admin-page .swal2-styled.swal2-confirm.wpcode-button.wpcode-button-orange:focus,.wpcode-admin-page .swal2-styled.wpcode-button.wpcode-button-orange:focus{box-shadow:0 0 0 3px rgb(224 107 68/50%)}.wpcode-admin-page .swal2-icon.wpcode-lock{border:none;height:auto;width:auto;margin-top:0;margin-bottom:14px}.wpcode-admin-page .swal2-close{position:absolute;top:10px;right:10px;color:var(--wpcode-text-color-heading);font-size:25px}.wpcode-admin-page .swal2-close:hover{color:var(--wpcode-button-orange-bg)}.wpcode-hide{display:none}.wpcode-setting-license-wrapper .wpcode-input-text{max-width:400px}
|
2 |
|
3 |
.select2-container{box-sizing:border-box;display:inline-block;margin:0;position:relative;vertical-align:middle}.select2-container .select2-selection--single{box-sizing:border-box;cursor:pointer;display:block;height:28px;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--single .select2-selection__rendered{display:block;padding-left:8px;padding-right:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-selection--single .select2-selection__clear{position:relative}.select2-container[dir="rtl"] .select2-selection--single .select2-selection__rendered{padding-right:8px;padding-left:20px}.select2-container .select2-selection--multiple{box-sizing:border-box;cursor:pointer;display:block;min-height:32px;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--multiple .select2-selection__rendered{display:inline-block;overflow:hidden;padding-left:8px;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-search--inline{float:left}.select2-container .select2-search--inline .select2-search__field{box-sizing:border-box;border:none;font-size:100%;margin-top:5px;padding:0}.select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-dropdown{background-color:white;border:1px solid #aaa;border-radius:4px;box-sizing:border-box;display:block;position:absolute;left:-100000px;width:100%;z-index:1051}.select2-results{display:block}.select2-results__options{list-style:none;margin:0;padding:0}.select2-results__option{padding:6px;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-select:none}.select2-results__option[aria-selected]{cursor:pointer}.select2-container--open .select2-dropdown{left:0}.select2-container--open .select2-dropdown--above{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--open .select2-dropdown--below{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-search--dropdown{display:block;padding:4px}.select2-search--dropdown .select2-search__field{padding:4px;width:100%;box-sizing:border-box}.select2-search--dropdown .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-search--dropdown.select2-search--hide{display:none}.select2-close-mask{border:0;margin:0;padding:0;display:block;position:fixed;left:0;top:0;min-height:100%;min-width:100%;height:auto;width:auto;opacity:0;z-index:99;background-color:#fff;filter:alpha(opacity=0)}.select2-hidden-accessible{border:0 !important;clip:rect(0 0 0 0) !important;-webkit-clip-path:inset(50%) !important;clip-path:inset(50%) !important;height:1px !important;overflow:hidden !important;padding:0 !important;position:absolute !important;width:1px !important;white-space:nowrap !important}.select2-container--default .select2-selection--single{background-color:#fff;border:1px solid #aaa;border-radius:4px}.select2-container--default .select2-selection--single .select2-selection__rendered{color:#444;line-height:28px}.select2-container--default .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:bold}.select2-container--default .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--default .select2-selection--single .select2-selection__arrow{height:26px;position:absolute;top:1px;right:1px;width:20px}.select2-container--default .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__clear{float:left}.select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__arrow{left:1px;right:auto}.select2-container--default.select2-container--disabled .select2-selection--single{background-color:#eee;cursor:default}.select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__clear{display:none}.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.select2-container--default .select2-selection--multiple{background-color:white;border:1px solid #aaa;border-radius:4px;cursor:text}.select2-container--default .select2-selection--multiple .select2-selection__rendered{box-sizing:border-box;list-style:none;margin:0;padding:0 5px;width:100%}.select2-container--default .select2-selection--multiple .select2-selection__rendered li{list-style:none}.select2-container--default .select2-selection--multiple .select2-selection__clear{cursor:pointer;float:right;font-weight:bold;margin-top:5px;margin-right:10px;padding:1px}.select2-container--default .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove{color:#999;cursor:pointer;display:inline-block;font-weight:bold;margin-right:2px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover{color:#333}.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice,.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-search--inline{float:right}.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice{margin-left:5px;margin-right:auto}.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove{margin-left:2px;margin-right:auto}.select2-container--default.select2-container--focus .select2-selection--multiple{border:solid black 1px;outline:0}.select2-container--default.select2-container--disabled .select2-selection--multiple{background-color:#eee;cursor:default}.select2-container--default.select2-container--disabled .select2-selection__choice__remove{display:none}.select2-container--default.select2-container--open.select2-container--above .select2-selection--single,.select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple{border-top-left-radius:0;border-top-right-radius:0}.select2-container--default.select2-container--open.select2-container--below .select2-selection--single,.select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple{border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--default .select2-search--dropdown .select2-search__field{border:1px solid #aaa}.select2-container--default .select2-search--inline .select2-search__field{background:transparent;border:none;outline:0;box-shadow:none;-webkit-appearance:textfield}.select2-container--default .select2-results>.select2-results__options{max-height:200px;overflow-y:auto}.select2-container--default .select2-results__option[role=group]{padding:0}.select2-container--default .select2-results__option[aria-disabled=true]{color:#999}.select2-container--default .select2-results__option[aria-selected=true]{background-color:#ddd}.select2-container--default .select2-results__option .select2-results__option{padding-left:1em}.select2-container--default .select2-results__option .select2-results__option .select2-results__group{padding-left:0}.select2-container--default .select2-results__option .select2-results__option .select2-results__option{margin-left:-1em;padding-left:2em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-2em;padding-left:3em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-3em;padding-left:4em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-4em;padding-left:5em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-5em;padding-left:6em}.select2-container--default .select2-results__option--highlighted[aria-selected]{background-color:#5897fb;color:white}.select2-container--default .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic .select2-selection--single{background-color:#f7f7f7;border:1px solid #aaa;border-radius:4px;outline:0;background-image:linear-gradient(to bottom,#fff 50%,#eee 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF',endColorstr='#FFEEEEEE',GradientType=0)}.select2-container--classic .select2-selection--single:focus{border:1px solid #5897fb}.select2-container--classic .select2-selection--single .select2-selection__rendered{color:#444;line-height:28px}.select2-container--classic .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:bold;margin-right:10px}.select2-container--classic .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--classic .select2-selection--single .select2-selection__arrow{background-color:#ddd;border:none;border-left:1px solid #aaa;border-top-right-radius:4px;border-bottom-right-radius:4px;height:26px;position:absolute;top:1px;right:1px;width:20px;background-image:linear-gradient(to bottom,#eee 50%,#ccc 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE',endColorstr='#FFCCCCCC',GradientType=0)}.select2-container--classic .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--classic[dir="rtl"] .select2-selection--single .select2-selection__clear{float:left}.select2-container--classic[dir="rtl"] .select2-selection--single .select2-selection__arrow{border:none;border-right:1px solid #aaa;border-radius:0;border-top-left-radius:4px;border-bottom-left-radius:4px;left:1px;right:auto}.select2-container--classic.select2-container--open .select2-selection--single{border:1px solid #5897fb}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow{background:transparent;border:none}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--single{border-top:none;border-top-left-radius:0;border-top-right-radius:0;background-image:linear-gradient(to bottom,#fff 0%,#eee 50%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF',endColorstr='#FFEEEEEE',GradientType=0)}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--single{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0;background-image:linear-gradient(to bottom,#eee 50%,#fff 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE',endColorstr='#FFFFFFFF',GradientType=0)}.select2-container--classic .select2-selection--multiple{background-color:white;border:1px solid #aaa;border-radius:4px;cursor:text;outline:0}.select2-container--classic .select2-selection--multiple:focus{border:1px solid #5897fb}.select2-container--classic .select2-selection--multiple .select2-selection__rendered{list-style:none;margin:0;padding:0 5px}.select2-container--classic .select2-selection--multiple .select2-selection__clear{display:none}.select2-container--classic .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove{color:#888;cursor:pointer;display:inline-block;font-weight:bold;margin-right:2px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove:hover{color:#555}.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice{float:right;margin-left:5px;margin-right:auto}.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove{margin-left:2px;margin-right:auto}.select2-container--classic.select2-container--open .select2-selection--multiple{border:1px solid #5897fb}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--multiple{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--multiple{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--classic .select2-search--dropdown .select2-search__field{border:1px solid #aaa;outline:0}.select2-container--classic .select2-search--inline .select2-search__field{outline:0;box-shadow:none}.select2-container--classic .select2-dropdown{background-color:#fff;border:1px solid transparent}.select2-container--classic .select2-dropdown--above{border-bottom:none}.select2-container--classic .select2-dropdown--below{border-top:none}.select2-container--classic .select2-results>.select2-results__options{max-height:200px;overflow-y:auto}.select2-container--classic .select2-results__option[role=group]{padding:0}.select2-container--classic .select2-results__option[aria-disabled=true]{color:grey}.select2-container--classic .select2-results__option--highlighted[aria-selected]{background-color:#3875d7;color:#fff}.select2-container--classic .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic.select2-container--open .select2-dropdown{border-color:#5897fb}
|
4 |
|
1 |
+
:root{--wpcode-background-gray:#F8F8F8;--wpcode-background-highlight:#F6FAFF;--wpcode-background-light:#F3F4F5;--wpcode-background-red:#DF2A35;--wpcode-background-white:#fff;--wpcode-border-color:#ddd;--wpcode-button-disabled-bg:#F5F5F5;--wpcode-button-disabled-border:1px solid #DDDDDD;--wpcode-button-disabled-text:#bbb;--wpcode-button-primary-bg:var(--wpcode-color-primary);--wpcode-button-primary-bg-hover:#397EEB;--wpcode-button-primary-text:#fff;--wpcode-button-primary-text-hover:#fff;--wpcode-button-secondary-bg:#F8F8F8;--wpcode-button-secondary-bg-hover:#fff;--wpcode-button-secondary-border:1px solid #DDDDDD;--wpcode-button-secondary-text:#777;--wpcode-button-orange-bg:#E06B44;--wpcode-button-orange-bg-hover:#e17f5e;--wpcode-button-secondary-text-hover:#454545;--wpcode-color-primary:#3568B7;--wpcode-color-red:#DF2A35;--wpcode-color-red-darker:#AB2028;--wpcode-font-size-l:18px;--wpcode-font-size-m:16px;--wpcode-font-size-s:14px;--wpcode-font-size-xl:22px;--wpcode-font-size-xs:12px;--wpcode-font-size-xxl:24px;--wpcode-input-border:1px solid #DDD;--wpcode-input-border-active:#3568B7;--wpcode-input-text-color:#454545;--wpcode-notice-success-bg:#09A347;--wpcode-notice-success-text:#fff;--wpcode-space-h:36px;--wpcode-space-v:24px;--wpcode-text-color-heading:#454545;--wpcode-text-color-highlight:#3568B7;--wpcode-text-color-light-bg:#848A8A;--wpcode-text-color-paragraph:#777777;--wpcode-text-color-placeholder:#bbb}.wpcode-button,.swal2-styled.swal2-confirm.wpcode-button,.swal2-styled.wpcode-button{background-color:var(--wpcode-button-primary-bg);border:1px solid var(--wpcode-button-primary-bg);border-radius:4px;color:var(--wpcode-button-primary-text);cursor:pointer;display:inline-block;font-size:var(--wpcode-font-size-s);font-weight:700;line-height:1;padding:10px 16px;text-decoration:none}.wpcode-button.wpcode-button-icon,.swal2-styled.swal2-confirm.wpcode-button.wpcode-button-icon,.swal2-styled.wpcode-button.wpcode-button-icon{align-items:center;display:inline-flex;padding-bottom:12px;padding-top:12px}.wpcode-button.wpcode-button-icon svg,.swal2-styled.swal2-confirm.wpcode-button.wpcode-button-icon svg,.swal2-styled.wpcode-button.wpcode-button-icon svg{margin-right:5px}.wpcode-button.wpcode-button-icon.wpcode-copy-target,.swal2-styled.swal2-confirm.wpcode-button.wpcode-button-icon.wpcode-copy-target,.swal2-styled.wpcode-button.wpcode-button-icon.wpcode-copy-target{padding-bottom:10px;padding-top:10px}.wpcode-button.wpcode-button-wide,.swal2-styled.swal2-confirm.wpcode-button.wpcode-button-wide,.swal2-styled.wpcode-button.wpcode-button-wide{padding-left:50px;padding-right:50px}.wpcode-button:hover,.wpcode-button:focus,.swal2-styled.swal2-confirm.wpcode-button:hover,.swal2-styled.swal2-confirm.wpcode-button:focus,.swal2-styled.wpcode-button:hover,.swal2-styled.wpcode-button:focus{background-color:var(--wpcode-button-primary-bg-hover);border-color:var(--wpcode-button-primary-bg-hover);color:var(--wpcode-button-primary-text-hover)}.wpcode-button.wpcode-button-secondary,.swal2-styled.swal2-confirm.wpcode-button.wpcode-button-secondary,.swal2-styled.wpcode-button.wpcode-button-secondary{background-color:var(--wpcode-button-secondary-bg);border:var(--wpcode-button-secondary-border);color:var(--wpcode-button-secondary-text)}.wpcode-button.wpcode-button-secondary:hover,.wpcode-button.wpcode-button-secondary:focus,.swal2-styled.swal2-confirm.wpcode-button.wpcode-button-secondary:hover,.swal2-styled.swal2-confirm.wpcode-button.wpcode-button-secondary:focus,.swal2-styled.wpcode-button.wpcode-button-secondary:hover,.swal2-styled.wpcode-button.wpcode-button-secondary:focus{background-color:var(--wpcode-button-secondary-bg-hover);color:var(--wpcode-button-secondary-text-hover)}.wpcode-button.wpcode-button-secondary.wpcode-button-secondary-inactive,.swal2-styled.swal2-confirm.wpcode-button.wpcode-button-secondary.wpcode-button-secondary-inactive,.swal2-styled.wpcode-button.wpcode-button-secondary.wpcode-button-secondary-inactive{background-color:var(--wpcode-button-disabled-bg);border-color:var(--wpcode-button-disabled-bg)}.wpcode-button.wpcode-button-secondary.wpcode-button-secondary-selected,.swal2-styled.swal2-confirm.wpcode-button.wpcode-button-secondary.wpcode-button-secondary-selected,.swal2-styled.wpcode-button.wpcode-button-secondary.wpcode-button-secondary-selected{border-color:var(--wpcode-button-primary-bg)}.wpcode-button.wpcode-button-orange,.swal2-styled.swal2-confirm.wpcode-button.wpcode-button-orange,.swal2-styled.wpcode-button.wpcode-button-orange{background-color:var(--wpcode-button-orange-bg);border-color:var(--wpcode-button-orange-bg);color:var(--wpcode-button-primary-text)}.wpcode-button.wpcode-button-orange:hover,.wpcode-button.wpcode-button-orange:focus,.swal2-styled.swal2-confirm.wpcode-button.wpcode-button-orange:hover,.swal2-styled.swal2-confirm.wpcode-button.wpcode-button-orange:focus,.swal2-styled.wpcode-button.wpcode-button-orange:hover,.swal2-styled.wpcode-button.wpcode-button-orange:focus{background-color:var(--wpcode-button-orange-bg-hover);color:var(--wpcode-button-primary-text)}.wpcode-button.wpcode-button-large,.swal2-styled.swal2-confirm.wpcode-button.wpcode-button-large,.swal2-styled.wpcode-button.wpcode-button-large{align-items:center;display:inline-flex;font-size:var(--wpcode-font-size-m);height:56px;justify-content:center;padding-left:var(--wpcode-space-h);padding-right:var(--wpcode-space-h);text-align:center}.wpcode-button.wpcode-button-large svg,.swal2-styled.swal2-confirm.wpcode-button.wpcode-button-large svg,.swal2-styled.wpcode-button.wpcode-button-large svg{margin-right:7px}.wpcode-button.wpcode-button-small,.swal2-styled.swal2-confirm.wpcode-button.wpcode-button-small,.swal2-styled.wpcode-button.wpcode-button-small{font-size:var(--wpcode-font-size-xs);padding:9px}.wpcode-button:disabled:hover,.wpcode-button:disabled,.swal2-styled.swal2-confirm.wpcode-button:disabled:hover,.swal2-styled.swal2-confirm.wpcode-button:disabled,.swal2-styled.wpcode-button:disabled:hover,.swal2-styled.wpcode-button:disabled{background-color:var(--wpcode-button-disabled-bg);border:var(--wpcode-button-disabled-border);color:var(--wpcode-button-disabled-text)}.wpcode-button-toggle{align-items:center;display:flex;justify-content:space-between;min-width:424px}.wpcode-button-toggle .wpcode-button,.wpcode-button-toggle .swal2-styled.swal2-confirm.wpcode-button,.wpcode-button-toggle .swal2-styled.wpcode-button{width:calc(50% - 5px);background:#fff;color:var(--wpcode-input-text-color)}.wpcode-button-toggle .wpcode-button-secondary{border:2px solid var(--wpcode-color-primary)}.wpcode-success-icon{display:none}.wpcode-show-success-icon .wpcode-success-icon{display:inline-block}.wpcode-show-success-icon .wpcode-default-icon{display:none}.wpcode-button-just-icon{background:none;border:none;cursor:pointer;padding:0}.wpcode-button-just-icon .wpcode-icon{display:block}.wpcode-text-button-icon{align-items:center;background:none;border:none;color:var(--wpcode-text-color-paragraph);cursor:pointer;display:inline-flex;font-size:var(--wpcode-font-size-s);font-weight:600;padding:0}.wpcode-text-button-icon:hover{color:var(--wpcode-text-color-heading)}.wpcode-text-button-icon:hover path{fill:var(--wpcode-text-color-heading)}.wpcode-text-button-icon .wpcode-icon{margin-right:5px}.wpcode-just-icon-button{background:none;border:none;cursor:pointer}.wpcode-button-text{background:none;border:none;color:var(--wpcode-text-color-paragraph);cursor:pointer;font-size:var(--wpcode-font-size-xs);padding:0;text-decoration:underline}.wpcode-button-text .wpcode-icon{margin-right:11px}.wpcode-button-text:focus,.wpcode-button-text:hover{text-decoration:none;background:none;color:var(--wpcode-text-color-heading)}.wpcode-button-text:focus svg path,.wpcode-button-text:hover svg path{fill:var(--wpcode-text-color-heading)}.wpcode-headers-footers #wpcontent,.wpcode-admin-page #wpcontent{padding-left:0 !important}.wpcode-headers-footers #wpwrap,.wpcode-admin-page #wpwrap{background:var(--wpcode-background-light)}.wpcode-header-top{align-items:center;background:var(--wpcode-background-gray);display:flex;justify-content:space-between;padding:var(--wpcode-space-v) var(--wpcode-space-h)}.wpcode-header-right button{margin-left:18px;vertical-align:middle}.wpcode-header-bottom{align-items:center;background:var(--wpcode-background-white);border-color:var(--wpcode-border-color);border-style:solid;border-width:1px 0;display:flex;justify-content:space-between;min-height:60px;padding:0 var(--wpcode-space-h)}.wpcode-header-bottom h1{color:var(--wpcode-text-color-heading);font-size:var(--wpcode-font-size-xl);margin:0}.wpcode-header-bottom.wpcode-sticky{left:160px;position:fixed;right:0;top:32px;z-index:100}.folded .wpcode-header-bottom.wpcode-sticky{left:36px}.wpcode-column{align-items:center;display:flex;flex-flow:row}.wpcode-column .wpcode-button,.wpcode-column .swal2-styled.swal2-confirm.wpcode-button,.wpcode-column .swal2-styled.wpcode-button{margin-left:20px}#wpcode-header-logo{display:block}.wpcode-notifications-inbox{position:relative}.wpcode-notifications-inbox[data-count]:after{background:var(--wpcode-color-red);border-radius:50%;bottom:100%;color:#fff;content:attr(data-count);display:block;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:12px;font-weight:700;height:16px;left:100%;line-height:18px;min-width:16px;position:absolute;text-align:center;transform:translate(-50%,50%)}.wpcode-admin-tabs{font-size:14px;list-style:none;margin:0;overflow:auto;padding:0}.wpcode-admin-tabs li{float:left;margin:0 30px 0 0;padding:0}.wpcode-admin-tabs li button{border:none;background:transparent;cursor:pointer}.wpcode-admin-tabs li button,.wpcode-admin-tabs li a{border-bottom:4px solid #fff;box-shadow:none;color:var(--wpcode-text-color-paragraph);display:block;font-weight:600;padding:20px 0 18px 0;text-decoration:none;transition:border 300ms ease}.wpcode-admin-tabs li button.active,.wpcode-admin-tabs li a.active{border-color:var(--wpcode-color-primary);color:var(--wpcode-text-color-heading)}.wpcode-admin-tabs li button:focus,.wpcode-admin-tabs li button:hover,.wpcode-admin-tabs li a:focus,.wpcode-admin-tabs li a:hover{border-color:var(--wpcode-text-color-paragraph)}.wpcode-admin-tab-content{display:none;position:relative}.wpcode-admin-tab-content.active{display:block}.wpcode-content{padding:28px var(--wpcode-space-h)}.wpcode-content *{box-sizing:border-box}.wpcode-content h2{color:var(--wpcode-text-color-heading);font-size:var(--wpcode-font-size-l)}.wpcode-content p{color:var(--wpcode-text-color-paragraph);font-size:var(--wpcode-font-size-s)}.wpcode-add-snippet .wpcode-content{padding-top:20px}.wpcode-content>hr{margin-bottom:36px;margin-top:36px}.wpcode-code-textarea{margin-bottom:var(--wpcode-space-h)}.wpcode-code-textarea h2{margin:12px 0 20px}.wrap{margin:0;padding:0 var(--wpcode-space-h)}.wrap div.error,.wrap div.updated{margin-bottom:0;position:relative}.wrap div:first-child{margin-top:28px}#wpfooter{padding-left:var(--wpcode-space-h);padding-right:var(--wpcode-space-h)}.wpcode-modal-overlay{background:rgba(0,0,0,0.3);bottom:0;display:none;left:0;position:fixed;right:0;top:0;z-index:1000}.admin-bar .wpcode-modal-overlay{top:32px}.wpcode-show-modal .wpcode-modal-overlay{display:block}.wpcode-modal{background:#fff;border:1px solid var(--wpcode-border-color);border-radius:8px;display:none;left:50%;max-width:100%;padding:25px;position:fixed;top:50%;transform:translate(-50%,-50%);width:752px;z-index:1050}.wpcode-show-modal .wpcode-modal{display:block}@media screen and (min-width:783px){.wpcode-modal{margin-left:18px}}@media screen and (min-width:961px){.wpcode-modal{margin-left:80px}.folded .wpcode-modal{margin-left:18px}}.wpcode-content .CodeMirror{border:1px solid var(--wpcode-border-color);border-radius:3px;font-size:var(--wpcode-font-size-s);line-height:25px}.wpcode-content .CodeMirror-linenumber{color:var(--wpcode-text-color-light-bg);font-size:var(--wpcode-font-size-xs)}.wpcode-content .CodeMirror-lines{padding:20px 0}.wpcode-content .CodeMirror-gutters{background-color:var(--wpcode-button-disabled-bg)}.CodeMirror-sizer:before{color:var(--wpcode-text-color-light-bg);position:absolute}[data-code-type="php"] .CodeMirror-sizer:before{content:"<?php"}[data-code-type="js"] .CodeMirror-sizer:before{content:"<script>"}.wpcode-input-title input.wpcode-input-text{font-size:var(--wpcode-font-size-m)}input.wpcode-input-number,input.wpcode-input-text{border:var(--wpcode-input-border);border-radius:4px;color:var(--wpcode-input-text-color);font-size:var(--wpcode-font-size-s);height:40px}input.wpcode-input-number:focus,input.wpcode-input-text:focus{border-color:var(--wpcode-input-border-active)}input.wpcode-input-text{width:100%}.wpcode-input-textarea{border:var(--wpcode-input-border);border-radius:4px;color:var(--wpcode-input-text-color);font-size:var(--wpcode-font-size-s);max-width:100%;resize:none;width:424px}.wpcode-input-select{align-items:center;display:flex}.wpcode-input-select label{color:var(--wpcode-text-color-heading);font-size:var(--wpcode-font-size-s);font-weight:600}.wpcode-input-select select{margin-left:13px}.wpcode-metabox-form-row-input{width:100%}.wpcode-metabox-form-row-input select{min-width:424px}.wpcode-inline-select select{min-width:98px}.wpcode-inline-select>span{color:var(--wpcode-text-color-paragraph);display:inline-block;font-size:13px;margin-left:12px}.wpcode-separator{border-color:var(--wpcode-border-color);border-style:solid;border-width:1px 0 0;margin:var(--wpcode-space-v) 0}.wpcode-checkbox-toggle{display:inline-block;height:20px;position:relative;width:36px}.wpcode-checkbox-toggle input{display:none;height:0;opacity:0;width:0}.wpcode-checkbox-toggle input:checked+.wpcode-checkbox-toggle-slider{background-color:var(--wpcode-color-primary)}.wpcode-checkbox-toggle input:checked+.wpcode-checkbox-toggle-slider:before{transform:translateX(16px)}.wpcode-checkbox-toggle input:focus+.wpcode-checkbox-toggle-slider{box-shadow:0 0 1px #2196F3}.wpcode-checkbox-toggle .wpcode-checkbox-toggle-slider{background-color:#ccc;border-radius:20px;bottom:0;cursor:pointer;left:0;position:absolute;right:0;top:0;transition:.4s}.wpcode-checkbox-toggle .wpcode-checkbox-toggle-slider:before{background-color:white;border-radius:50%;bottom:3px;content:"";height:14px;left:3px;position:absolute;transition:.4s;width:14px}.wpcode-input-radio{margin-right:20px;flex:1 1;text-align:center}.wpcode-input-radio label{display:flex;flex-flow:column;border-radius:4px;justify-content:center;padding:20px;background-color:var(--wpcode-button-disabled-bg);border:2px solid var(--wpcode-button-disabled-bg);color:var(--wpcode-text-color-paragraph)}.wpcode-input-radio label:hover{color:var(--wpcode-text-color-heading)}.wpcode-input-radio label:hover svg path{fill:var(--wpcode-text-color-heading)}.wpcode-input-radio input[type="radio"]{display:none;height:0;opacity:0;width:0}.wpcode-input-radio input[type="radio"]:checked+label{border-color:var(--wpcode-color-primary);background:#fff;color:var(--wpcode-text-color-heading)}.wpcode-input-radio input[type="radio"]:checked+label svg path{fill:var(--wpcode-text-color-heading)}.wpcode-input-radio input[type="radio"]:disabled+label{opacity:0.9}.wpcode-input-radio input[type="radio"]:disabled+label:hover{color:var(--wpcode-text-color-paragraph)}.wpcode-input-radio input[type="radio"]:disabled+label:hover svg path{fill:var(--wpcode-text-color-paragraph)}.wpcode-input-radio .wpcode-input-radio-icon{text-align:center}.wpcode-input-radio .wpcode-input-radio-label{font-size:16px;font-weight:600;margin-top:10px;display:block}.wpcode-input-with-button{display:flex;width:100%}.wpcode-input-with-button .wpcode-input-text{margin-right:10px;width:100%}.wpcode-snippet-manager.wp-core-ui select,.wpcode-tools.wp-core-ui select,.wpcode-generator.wp-core-ui select{background-position-x:calc(100% - 13px);border-color:var(--wpcode-border-color);border-radius:4px;color:var(--wpcode-text-color-heading);line-height:38px;min-height:40px;padding-left:12px;padding-right:32px}.wpcode-metabox .select2-container .select2-search--inline{margin:0}.wpcode-metabox .select2-container .select2-search--inline .select2-search__field{color:var(--wpcode-text-color-heading);font-size:14px;margin:5px 5px 0}.wpcode-metabox .select2-container.select2-container--default .select2-selection--multiple{border-color:var(--wpcode-border-color)}.wpcode-metabox .select2-container.select2-container--default .select2-selection--multiple .select2-selection__choice{background-color:var(--wpcode-button-disabled-bg);border:none;border-radius:3px;color:var(--wpcode-text-color-heading);font-size:14px;margin:9px 8px 9px 0;padding:1px 4px}.wpcode-metabox .select2-container.select2-container--default .select2-selection--multiple .select2-selection__rendered{display:block;padding:0 8px}.wpcode-metabox .select2-container.select2-container--default .select2-selection--multiple .select2-selection__choice__remove{margin-right:4px}.wpcode-metabox .select2-container .select2-selection--single{height:40px;font-size:var(--wpcode-font-size-s);border-color:var(--wpcode-border-color)}.wpcode-metabox .select2-container .select2-selection--single .select2-selection__rendered{padding:0 8px;line-height:40px}.wpcode-metabox .select2-container .select2-selection--single .select2-selection__arrow{height:40px;width:30px}.wpcode-admin-page .select2-dropdown{border-color:var(--wpcode-border-color);color:var(--wpcode-text-color-heading)}.wpcode-admin-page .select2-results .wpcode-pro-pill{margin-left:7px;vertical-align:middle}.wpcode-checkboxes-list label{display:block;margin-bottom:16px}.wpcode-checkboxes-list input{margin-right:12px}.wpcode-file-upload .wpcode-file-field{background-color:#fff;border:1px solid #ddd;border-radius:3px;box-shadow:none;color:var(--wpcode-text-color-paragraph);display:inline-block;margin:0 10px 0 0;min-height:40px;overflow:hidden;padding:10px 10px;text-overflow:ellipsis;vertical-align:middle;white-space:nowrap;width:400px}.wpcode-file-upload input[type=file]{height:0.1px;opacity:0;overflow:hidden;position:absolute;width:0.1px;z-index:-1}.wpcode-file-upload label{cursor:pointer;display:inline-flex;outline:none;padding:0;text-overflow:ellipsis;white-space:nowrap}.wpcode-checkbox-multiselect-columns{max-width:600px;position:relative}.wpcode-checkbox-multiselect-columns:after{clear:both;content:".";display:block;font-size:0;height:0;line-height:0;min-height:0;visibility:hidden}.wpcode-checkbox-multiselect-columns:before{background-image:url("data:image/svg+xml,%3Csvg width=%2718%27 height=%2714%27 viewBox=%270 0 18 14%27 fill=%27none%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath d=%27M3.99 6L0 10L3.99 14V11H11V9H3.99V6ZM18 4L14.01 0V3H7V5H14.01V8L18 4Z%27 fill=%27%23999%27/%3E%3C/svg%3E%0A");color:#999;content:"";display:block;height:14px;left:50%;margin:0 0 0 -10px;position:absolute;top:130px;width:18px}.wpcode-checkbox-multiselect-columns .header{font-size:13px;font-weight:600;margin:0;padding:0 0 5px 0;text-align:center}.wpcode-checkbox-multiselect-columns .first-column,.wpcode-checkbox-multiselect-columns .second-column{float:left;width:45%}.wpcode-checkbox-multiselect-columns .second-column{float:right}.wpcode-checkbox-multiselect-columns .second-column ul li{padding:10px}.wpcode-checkbox-multiselect-columns ul{background-color:#fff;border:1px solid #ddd;border-radius:3px;height:250px;list-style-type:none;margin:0;overflow-y:auto;padding:0;position:relative}.wpcode-checkbox-multiselect-columns ul li{border-bottom:1px #eee solid;color:var(--wpcode-text-color-paragraph);font-size:14px;margin:0}.wpcode-checkbox-multiselect-columns ul li label{display:block;padding:10px 10px 10px 32px;position:relative;vertical-align:baseline}.wpcode-checkbox-multiselect-columns ul li label:hover{background-color:var(--wpcode-color-primary);color:#fff}.wpcode-checkbox-multiselect-columns ul li label:before{color:#ddd;content:"\f0c8";font:normal normal normal 16px/1 Georgia;-webkit-font-smoothing:antialiased;left:10px;-moz-osx-font-smoothing:grayscale;position:absolute;text-rendering:auto;top:12px}.wpcode-checkbox-multiselect-columns ul li label.checked{color:rgba(119,119,119,0.6)}.wpcode-checkbox-multiselect-columns ul li label.checked:hover{color:#fff}.wpcode-checkbox-multiselect-columns ul li label.checked:before{background-image:url("data:image/svg+xml,%3Csvg width=%2710%27 height=%278%27 viewBox=%270 0 10 8%27 fill=%27none%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath d=%27M1.38462 3.03448L0 4.13793L3.23077 8H4.46154L10 0.965517L8.76923 0L3.69231 4.96552L1.38462 3.03448Z%27 fill=%27%234982BF%27/%3E%3C/svg%3E%0A");background-position:3px 3px;background-repeat:no-repeat;background-size:10px 8px}.wpcode-checkbox-multiselect-columns ul li label input{display:none}.wpcode-checkbox-multiselect-columns .all{color:#999;display:inline-block;font-size:13px;margin:10px 0 0}.wpcode-admin-page .select2-container--default{font-size:12px;font-weight:500}.wpcode-admin-page .select2-container--default .select2-results__option .select2-results__option{padding-left:30px;color:var(--wpcode-text-color-heading);font-weight:500;margin-bottom:0}.wpcode-admin-page .select2-container--default .select2-results__option .select2-results__option[aria-disabled=true]{color:var(--wpcode-text-color-paragraph);opacity:0.5}.wpcode-admin-page .select2-container--default .select2-results__option .select2-results__option[aria-selected=true]{background-color:var(--wpcode-button-primary-bg);color:#fff}.wpcode-admin-page .select2-container--default .select2-results__option--highlighted[aria-selected]{background:var(--wpcode-button-disabled-bg);color:var(--wpcode-text-color-light-bg)}.wpcode-admin-page .select2-container--default .select2-results__group{padding-left:16px;color:var(--wpcode-text-color-paragraph);font-weight:500}label .wpcode-icon-mobile{transform:scale(0.86)}.wpcode-flex{display:flex}.wpcode-code-textarea>.wpcode-flex{justify-content:space-between}.wpcode-input-title{margin-bottom:8px}.wpcode-status-text{color:var(--wpcode-text-color-paragraph);font-size:var(--wpcode-font-size-s);margin-right:8px;min-width:51px}#wp-wpcode_snippet_text-wrap{display:none}.wpcode-show-tinymce .wpcode-code-textarea .CodeMirror{display:none}.wpcode-show-tinymce #wp-wpcode_snippet_text-wrap{display:block}.wpcode-add-snippet-description{padding:var(--wpcode-space-v);background:#fff;border:1px solid var(--wpcode-border-color);border-bottom:0;border-radius:4px 4px 0 0;font-size:var(--wpcode-font-size-s);color:var(--wpcode-text-color-paragraph)}.wpcode-add-snippet-description a:hover{text-decoration:none}.wpcode-add-snippet-description+.wpcode-metabox{border-radius:0 0 4px 4px}.wpcode-button-save-to-library{margin-right:14px;text-decoration:none;font-size:var(--wpcode-font-size-s);font-weight:600;color:var(--wpcode-text-color-paragraph)}.wpcode-button-save-to-library svg{vertical-align:middle}.wpcode-button-save-to-library svg path{fill:var(--wpcode-text-color-paragraph)}.wpcode-button-save-to-library:hover{text-decoration:underline;color:var(--wpcode-text-color-heading)}.wpcode-button-save-to-library:hover svg path{fill:var(--wpcode-text-color-heading)}.wpcode-button-save-to-library:disabled{background-color:transparent;border:none}.wpcode-button-save-to-library#wpcode_save_to_library{opacity:0.5}.swal2-title{line-height:1.2}.wpcode-device-type-picker{margin:0 0 20px;display:flex;max-width:600px}.wpcode-device-type-area{position:relative;display:flex;margin-bottom:20px}@media (max-width:1442px){.wpcode-device-type-area{flex-flow:column}}.wpcode-device-type-area .wpcode-blur-area{flex-shrink:0;flex-grow:0;width:600px}.wpcode-device-type-area .wpcode-blur-area .wpcode-device-type-picker{margin-bottom:0}.wpcode-device-type-area .wpcode-upsell-box{padding:20px;width:580px;position:relative;transform:none;left:auto;top:auto;background:#F6FAFF;border:none;text-align:left;display:flex;justify-content:space-between;align-items:center}@media (max-width:1442px){.wpcode-device-type-area .wpcode-upsell-box{margin-top:20px;width:580px}}.wpcode-device-type-area .wpcode-upsell-box h2{margin-bottom:10px}.wpcode-device-type-area .wpcode-upsell-box .wpcode-upsell-text{margin-bottom:0}.wpcode-device-type-area .wpcode-upsell-box .wpcode-upsell-text p{margin-bottom:0}.wpcode-device-type-area .wpcode-upsell-box .wpcode-upsell-buttons{flex-shrink:0;padding-left:20px}.wpcode-metabox{background:var(--wpcode-background-white);border:1px solid var(--wpcode-border-color);border-radius:4px;margin-bottom:var(--wpcode-space-h)}.wpcode-metabox-title{align-items:center;border-bottom:1px solid var(--wpcode-border-color);display:flex;justify-content:space-between}.wpcode-metabox-title-text{color:var(--wpcode-text-color-heading);font-size:var(--wpcode-font-size-m);font-weight:600;padding:0 var(--wpcode-space-v)}.wpcode-metabox-button-toggle{background-color:var(--wpcode-background-white);border:none;cursor:pointer;height:60px;margin:0;text-align:center;width:60px}.wpcode-metabox-collapsed .wpcode-metabox-button-toggle svg{transform:rotate(180deg)}.wpcode-metabox-content{padding:var(--wpcode-space-v);padding-bottom:0}.wpcode-metabox-collapsed .wpcode-metabox-content{display:none}.wpcode-metabox-content p:first-child{margin-top:0}.wpcode-metabox-form{max-width:670px}.wpcode-metabox-form-row{display:flex;margin-bottom:var(--wpcode-space-v)}.wpcode-metabox-form-row-label{flex-shrink:0;width:245px}.wpcode-metabox-form-row-label label{color:var(--wpcode-text-color-heading);font-size:var(--wpcode-font-size-s);font-weight:600}.wp-list-table.wpcode-snippets .column-status{width:65px}@media screen and (min-width:783px){.wp-list-table.wpcode-snippets .column-status{text-align:center}}.wp-list-table.wpcode-snippets .column-name a{color:var(--wpcode-text-color-heading);font-size:14px;text-decoration:none}.wp-list-table.wpcode-snippets .column-name a:hover,.wp-list-table.wpcode-snippets .column-name a:focus{color:var(--wpcode-text-color-paragraph)}.wp-list-table.wpcode-snippets .column-name .delete a,.wp-list-table.wpcode-snippets .column-name .trash a{color:var(--wpcode-background-red)}.wp-list-table.wpcode-snippets .column-name .delete a:hover,.wp-list-table.wpcode-snippets .column-name .delete a:focus,.wp-list-table.wpcode-snippets .column-name .trash a:hover,.wp-list-table.wpcode-snippets .column-name .trash a:focus{color:var(--wpcode-color-red-darker)}.wp-list-table.wpcode-snippets .column-location a,.wp-list-table.wpcode-snippets .column-author a{color:var(--wpcode-text-color-paragraph)}.wp-list-table.wpcode-snippets .column-location a:hover,.wp-list-table.wpcode-snippets .column-location a:focus,.wp-list-table.wpcode-snippets .column-author a:hover,.wp-list-table.wpcode-snippets .column-author a:focus{color:var(--wpcode-text-color-heading)}.wp-list-table.wpcode-snippets th.column-created a{color:var(--wpcode-text-color-heading)}.wp-list-table.wpcode-snippets th.column-created a:hover,.wp-list-table.wpcode-snippets th.column-created a:focus{color:var(--wpcode-text-color-paragraph)}.wp-list-table.wpcode-snippets .column-created{color:var(--wpcode-text-color-paragraph)}.wp-list-table.wpcode-snippets td.column-tags{color:var(--wpcode-color-primary)}.wp-list-table.wpcode-snippets td.column-tags a{color:var(--wpcode-color-primary);text-decoration:underline}.wp-list-table.wpcode-snippets td.column-tags a:hover,.wp-list-table.wpcode-snippets td.column-tags a:focus{text-decoration:none}.wp-list-table.wpcode-snippets .alternate,.wp-list-table.wpcode-snippets.striped>tbody>:nth-child(odd),.wp-list-table.wpcode-snippets ul.striped>:nth-child(odd){background-color:var(--wpcode-background-gray)}.wpcode-admin-page.wpcode .tablenav.top{margin-bottom:16px}.wpcode-admin-page.wpcode .tablenav.bottom{margin-top:11px}.wpcode-admin-page.wpcode .wpcode-content a{}.wpcode-admin-page.wpcode .button{background:var(--wpcode-background-light);border-color:var(--wpcode-color-primary);color:var(--wpcode-color-primary)}.wpcode-cl-group{background:var(--wpcode-button-disabled-bg);border-radius:4px;margin-top:50px;padding:16px;position:relative}.wpcode-cl-group:first-child{margin-top:0}.wpcode-cl-group:first-child .wpcode-cl-group-or{display:none}#wpcode-conditions-holder{margin:16px 0;max-width:685px}.wpcode-cl-group-or{bottom:100%;height:50px;left:0;position:absolute;right:0}.wpcode-cl-group-or .wpcode-cl-group-or-line{background-color:var(--wpcode-button-disabled-bg);height:2px;left:0;position:absolute;right:0;top:50%}.wpcode-cl-group-or .wpcode-cl-group-or-text{background:#F5F5F5;border-radius:10px;color:var(--wpcode-text-color-heading);font-size:12px;font-weight:500;left:50%;padding:2px 9px;position:absolute;top:50%;transform:translate(-50%,-50%)}.wpcode-cl-rules-row{align-items:center;display:flex;justify-content:space-between;margin-bottom:8px}.wpcode-cl-rules-row .wpcode-cl-rules-row-options{align-items:flex-start;display:flex;max-width:653px}.wpcode-metabox-form-row-input .wpcode-cl-rules-row select{margin:0 16px 0 0;min-width:0;width:175px}.wpcode-metabox-form-row-input .wpcode-cl-rules-row select.wpcode-cl-rule-relation{width:130px}.wpcode-cl-rules-row .wpcode-cl-remove-row{flex-shrink:0}.wpcode-items-metabox{display:flex;padding:0}.wpcode-items-sidebar{flex-shrink:0;padding:var(--wpcode-space-v);width:242px}.wpcode-items-list{border-left:1px solid var(--wpcode-border-color);min-height:400px;padding:calc(var(--wpcode-space-v) / 2) 12px;width:100%}.wpcode-items-categories-list{margin:0}.wpcode-items-categories-list li{margin:0}.wpcode-items-categories-list button{background:transparent;border:none;color:var(--wpcode-text-color-paragraph);cursor:pointer;display:block;font-size:var(--wpcode-font-size-m);font-weight:500;padding:12px 8px;position:relative;text-align:left;width:100%}.wpcode-items-categories-list button:focus,.wpcode-items-categories-list button.wpcode-active{background:var(--wpcode-background-highlight);color:var(--wpcode-text-color-highlight)}.wpcode-items-categories-list button:hover{text-decoration:underline}.wpcode-items-categories-list button .wpcode-items-count{float:right;color:var(--wpcode-text-color-paragraph);opacity:0.5}.wpcode-items-categories-list button.wpcode-active{font-weight:700}.wpcode-items-categories-list button.wpcode-active:hover{text-decoration:none}.wpcode-items-categories-list button.wpcode-active .wpcode-items-count{opacity:1;color:var(--wpcode-text-color-highlight);font-weight:700}.wpcode-items-list-category{align-content:stretch;display:flex;flex-wrap:wrap;justify-content:flex-start}.wpcode-list-item{border:1px solid var(--wpcode-border-color);border-radius:4px;margin-bottom:24px;margin-right:12px;margin-left:12px;max-width:100%;padding:16px 20px;position:relative;width:100%}@media (min-width:961px){.wpcode-list-item{width:calc(50% - 24px)}}@media (min-width:1440px){.wpcode-list-item{width:calc(100% / 3 - 24px)}}.wpcode-list-item h3{font-size:var(--wpcode-font-size-m);line-height:1.2;margin:0;overflow:hidden;position:relative;text-overflow:ellipsis;white-space:nowrap}.wpcode-list-item p{margin-bottom:0}.wpcode-list-item:hover .wpcode-list-item-description,.wpcode-list-item:focus .wpcode-list-item-description{opacity:0}.wpcode-list-item:hover .wpcode-list-item-buttons,.wpcode-list-item:focus .wpcode-list-item-buttons{opacity:1}@media (hover:none){.wpcode-list-item .wpcode-list-item-description{opacity:0}.wpcode-list-item .wpcode-list-item-buttons{opacity:1}}.wpcode-list-item .wpcode-list-item-pill{position:absolute;top:10px;right:10px;font-size:8px;font-weight:700;text-transform:uppercase;line-height:1;padding:4px 8px;border-radius:40px}.wpcode-list-item .wpcode-list-item-pill.wpcode-list-item-pill-blue{background:var(--wpcode-color-primary);color:#fff}.wpcode-list-item .wpcode-list-item-pill.wpcode-list-item-pill-gray{background:var(--wpcode-text-color-heading);color:#fff}.wpcode-list-item.wpcode-list-item-has-pill h3{max-width:calc(100% - 60px)}.wpcode-list-item-actions{position:relative}.wpcode-list-item-description{min-height:40px}.wpcode-list-item-buttons{display:flex;justify-content:space-between;opacity:0;position:absolute;top:0;width:100%;z-index:10}.wpcode-list-item-buttons .wpcode-button,.wpcode-list-item-buttons .swal2-styled.swal2-confirm.wpcode-button,.wpcode-list-item-buttons .swal2-styled.wpcode-button{flex-grow:1;margin-left:10px;text-align:center}.wpcode-list-item-buttons .wpcode-button:first-child,.wpcode-list-item-buttons .swal2-styled.swal2-confirm.wpcode-button:first-child,.wpcode-list-item-buttons .swal2-styled.wpcode-button:first-child{margin-left:0}.wpcode-items-search{margin-bottom:20px;position:relative}.wpcode-items-search input{border-color:var(--wpcode-border-color);font-size:var(--wpcode-font-size-s);height:38px;padding-left:32px;width:100%}.wpcode-items-search input::-moz-placeholder{color:var(--wpcode-text-color-placeholder)}.wpcode-items-search input:-ms-input-placeholder{color:var(--wpcode-text-color-placeholder)}.wpcode-items-search input::placeholder{color:var(--wpcode-text-color-placeholder)}.wpcode-items-search label{left:10px;position:absolute;top:11px}.wpcode-library-preview-header{padding-bottom:25px}.wpcode-library-preview-header h2{margin:0}.wpcode-library-preview-header .wpcode-close-modal{float:right}.wpcode-library-preview-content .CodeMirror{background:var(--wpcode-background-gray)}.wpcode-library-preview-content .CodeMirror-activeline-background{background:transparent !important}.wpcode-library-preview-content .CodeMirror-focused .CodeMirror-activeline-background{background:rgba(100,100,100,0.1) !important}.wpcode-library-preview-buttons{margin-top:25px}.wpcode-item-use-button.wpcode-start-auth{padding-top:6px;padding-bottom:6px;justify-content:center}.wpcode-item-use-button.wpcode-start-auth svg{margin-right:9px}#wpcode-library-connect-banner{background:var(--wpcode-button-disabled-bg);margin-bottom:24px;margin-left:12px;border-radius:6px;display:flex;flex-direction:column;justify-content:space-between;align-items:center;padding-right:20px;margin-right:12px}@media (min-width:961px){#wpcode-library-connect-banner{flex-direction:row}}#wpcode-library-connect-banner .wpcode-template-content{padding:20px;color:#444444}@media (min-width:961px){#wpcode-library-connect-banner .wpcode-template-content{width:80%}}#wpcode-library-connect-banner .wpcode-template-upgrade-button{text-align:right;flex-shrink:0;padding-bottom:20px}@media (min-width:961px){#wpcode-library-connect-banner .wpcode-template-upgrade-button{padding-bottom:0}}#wpcode-library-connect-banner .wpcode-template-upgrade-button button{white-space:pre}#wpcode-library-connect-banner h3{margin:0 0 5px}#wpcode-library-connect-banner p{margin:0}.wpcode-generator .wpcode-items-metabox{margin-bottom:0}.wpcode-generator .wpcode-generator-preview .CodeMirror{height:auto}.wpcode-generator-preview{background-color:var(--wpcode-background-highlight);border-color:var(--wpcode-border-color);border-style:solid;border-width:0 1px 1px;padding:15px 28px 24px}.wpcode-generator-preview-header{align-items:center;display:flex;margin-bottom:14px}.wpcode-generator-preview-header h2{margin:0 8px 0 0}.wpcode-generator-preview-header .wpcode-button,.wpcode-generator-preview-header .swal2-styled.swal2-confirm.wpcode-button,.wpcode-generator-preview-header .swal2-styled.wpcode-button{margin-left:12px}.wpcode-form-tab:after{clear:both;content:'';display:table}.wpcode-generator-column{float:left;padding:14px 14px;width:calc(100% / 3)}.wpcode-generator-actions{padding:28px 14px 14px;text-align:center}.wpcode-generator-field{margin-bottom:24px}.wpcode-generator-field label{color:var(--wpcode-text-color-heading);display:block;font-size:var(--wpcode-font-size-s);font-weight:600;margin-bottom:8px}.wpcode-generator-field input[type="text"]{width:100%}.wpcode-generator-field select{max-width:100%;width:100%}.wpcode-field-description{margin-top:8px}.wpcode-generator-field-list ul{color:var(--wpcode-text-color-paragraph);font-size:var(--wpcode-font-size-s);list-style:disc;padding-left:18px}.wpcode-checkbox-line{margin-bottom:14px}.wpcode-checkbox-line .wpcode-checkbox-toggle{margin-right:8px}.wpcode-checkbox-line label{display:inline-block}.wpcode-repeater-group{border-top:1px solid var(--wpcode-border-color);padding-top:24px}.wpcode-repeater-group .wpcode-remove-row{margin-bottom:24px}#wpcode-importer-process{display:none}#wpcode-importer-process .process-completed{display:none}#wpcode-importer-process .status{background-color:#fff;border:1px solid #ddd;border-radius:3px;display:none;margin:20px 0 30px;max-height:800px;overflow-y:scroll}#wpcode-importer-process .item{border-bottom:1px solid #ddd;padding:20px}#wpcode-importer-process .item:last-of-type{border:none}#wpcode-importer-process .item .name{float:left;font-size:14px}#wpcode-importer-process .item .name svg{display:inline-block;margin:0 10px 0 0}#wpcode-importer-process .item .actions{float:right;font-size:14px}.wpcode-clear:after{clear:both;content:" ";display:table}#wpcode-plugins-importer{margin-bottom:20px;max-width:100%;width:400px}.wpcode-tools .pre-error,.wpcode-tools .info-area{background:#fff;border:1px solid #ddd;box-shadow:none;display:block;font-family:Menlo,Monaco,monospace;font-size:12px;height:450px;max-width:1000px;overflow:auto;padding:20px;white-space:pre;width:100%}.wpcode-admin-page .wpcode-alert{border:1px solid transparent;margin-bottom:18px;padding:16px}.wpcode-admin-page .wpcode-alert h4{color:inherit;margin-top:0}.wpcode-admin-page .wpcode-alert p{margin:0 0 15px 0}.wpcode-admin-page .wpcode-alert p:last-of-type{margin:0}.wpcode-admin-page .wpcode-alert.wpcode-alert-nomargin{margin:0}.wpcode-admin-page .wpcode-alert.wpcode-alert-small{font-size:12px}.wpcode-admin-page .wpcode-alert.wpcode-alert-success{background-color:#dff0d8;border-color:#d6e9c6;color:#3c763d}.wpcode-admin-page .wpcode-alert.wpcode-alert-info{background-color:#d9edf7;border-color:#bce8f1;color:#31708f}.wpcode-admin-page .wpcode-alert.wpcode-alert-warning{background-color:#fcf8e3;border-color:#faebcc;color:#8a6d3b}.wpcode-admin-page .wpcode-alert.wpcode-alert-danger{background-color:#f2dede;border-color:#ebccd1;color:#a94442}.wpcode-docs-overlay{background-color:#ffffff;bottom:0;display:none;left:0;max-height:100vh;opacity:1;overflow-y:auto;position:fixed;right:0;top:46px;z-index:100100}.wpcode-docs-overlay *{box-sizing:border-box}@media screen and (min-width:783px){.wpcode-docs-overlay{left:36px;top:32px}}@media screen and (min-width:961px){.wpcode-docs-overlay{left:160px}.folded .wpcode-docs-overlay{left:36px}}#wpcode-help-logo{left:36px;position:absolute;top:24px}#wpcode-help-close{cursor:pointer;display:inline-block;height:30px;padding:5px;position:absolute;right:37px;top:25px;transition:all 0.05s ease-out;width:30px;z-index:10}.wpcode-docs-content{background-color:#fff;margin:0 auto 50px auto;max-width:100%;padding:0 30px;width:760px}.wpcode-help-docs{margin-bottom:20px;padding:0 18px}.wpcode-help-docs a{color:var(--wpcode-text-color-paragraph);font-size:var(--wpcode-font-size-m);text-decoration:none}.wpcode-help-docs a:hover,.wpcode-help-docs a:focus{color:var(--wpcode-text-color-heading);text-decoration:underline}.wpcode-help-docs .wpcode-icon-file-text{margin-right:14px}.wpcode-help-docs li{margin-bottom:18px}.wpcode-help-categories-toggle{border-bottom:1px solid var(--wpcode-border-color);margin-bottom:40px}.wpcode-help-category{border-top:1px solid var(--wpcode-border-color);margin:0}.wpcode-help-category header{align-items:center;color:var(--wpcode-text-color-heading);cursor:pointer;display:flex;flex-direction:row;font-size:var(--wpcode-font-size-l);font-weight:600;justify-content:flex-start;padding-left:18px;padding-right:25px}.wpcode-help-category header:hover{color:var(--wpcode-color-primary)}.wpcode-help-category .wpcode-icon-folder{margin:23px 11px 23px 0}.wpcode-help-category .wpcode-icon-arrow{margin-left:auto;transform-origin:center;transition:transform 300ms ease}.wpcode-help-category.open .wpcode-icon-arrow{transform:rotate(90deg)}.wpcode-help-category .wpcode-help-docs{display:none}#wpcode-help-search{padding:74px 0 50px 0;position:relative;text-align:center;top:0}#wpcode-help-search .wpcode-icon-search{display:none;left:17px;position:absolute;top:92px}#wpcode-help-search input{background-image:none;background-position:22px center;background-repeat:no-repeat;background-size:20px 20px;border:1px solid var(--wpcode-border-color);border-radius:3px;color:var(--wpcode-text-color-heading);font-size:20px;letter-spacing:0;line-height:20px;min-height:48px;padding:10px 10px 10px 42px;text-align:left;width:100%}#wpcode-help-search #wpcode-help-search-clear{cursor:pointer;left:17px;opacity:.7;position:absolute;top:92px}#wpcode-help-search.wpcode-search-empty #wpcode-help-search-clear{display:none}#wpcode-help-search.wpcode-search-empty .wpcode-icon-search{display:block}#wpcode-help-no-result li span{color:var(--wpcode-text-color-paragraph);font-size:var(--wpcode-font-size-s)}.wpcode-help-footer{align-items:center;display:flex;justify-content:space-between}.wpcode-help-footer .wpcode-help-footer-box{border:1px solid var(--wpcode-border-color);border-radius:8px;padding:40px 38px;text-align:center;width:calc(50% - 18px)}.wpcode-help-footer .wpcode-help-footer-box h3{font-size:var(--wpcode-font-size-l)}.wpcode-help-footer .wpcode-help-footer-box p{color:var(--wpcode-text-color-paragraph);font-size:var(--wpcode-font-size-m)}.wpcode-notifications-drawer{background:#fff;border-left:1px solid var(--wpcode-border-color);bottom:0;position:fixed;right:-375px;top:32px;transition:right 300ms ease 0s,visibility 0s ease 400ms;visibility:hidden;width:375px;z-index:1100}.wpcode-notifications-open .wpcode-notifications-drawer{right:0;transition:right 300ms ease 0s,visibility 0s ease 0ms;visibility:visible}.wpcode-notifications-overlay{background-color:rgba(0,0,0,0.3);bottom:0;display:none;left:0;opacity:.5;position:fixed;right:0;top:46px;transition:.5s;z-index:1052}.folded .wpcode-notifications-overlay{left:36px}.wpcode-notifications-open .wpcode-notifications-overlay{display:block}@media screen and (min-width:783px){.wpcode-notifications-overlay{left:36px}.admin-bar .wpcode-notifications-overlay{top:32px}}@media screen and (min-width:961px){.wpcode-notifications-overlay{left:160px}.folded .wpcode-notifications-overlay{left:36px}}.wpcode-notifications-header{background:var(--wpcode-background-highlight);border-bottom:1px solid var(--wpcode-border-color);padding:18px 40px 18px 20px}.wpcode-notifications-header .wpcode-notifications-close{position:absolute;right:18px;top:22px}.wpcode-notifications-header .wpcode-notifications-close path{fill:var(--wpcode-text-color-heading)}.wpcode-notifications-header h3{color:var(--wpcode-text-color-heading);display:inline-block;font-size:var(--wpcode-font-size-s);font-weight:700;line-height:21px;margin:0 10px 0 0}.wpcode-notifications-list{height:calc(100% - 130px);overflow:auto}.wpcode-notifications-list ul{margin:0}.wpcode-notifications-list li{border-top:1px solid var(--wpcode-border-color);display:flex;margin:0;padding:24px}.wpcode-notifications-list li:first-child{border-top:none}.wpcode-notifications-list li h4{color:var(--wpcode-text-color-heading);font-size:var(--wpcode-font-size-s);font-weight:600;line-height:21px;margin:0}.wpcode-notifications-list p{color:var(--wpcode-text-color-light-bg);font-size:var(--wpcode-font-size-s);margin:8px 0}.wpcode-notifications-list p.wpcode-start{font-size:var(--wpcode-font-size-xs)}.wpcode-notification-actions .wpcode-button,.wpcode-notification-actions .swal2-styled.swal2-confirm.wpcode-button,.wpcode-notification-actions .swal2-styled.wpcode-button{margin-right:10px}.wpcode-notifications-footer{border-top:1px solid var(--wpcode-border-color);padding:24px 27px;text-align:right}#wpcode-dismissed-title,#wpcode-notifications-show-active,.wpcode-notifications-dismissed{display:none}.show-dismissed #wpcode-notifications-show-dismissed,.show-dismissed .wpcode-notifications-active,.show-dismissed #wpcode-active-title{display:none}.show-dismissed #wpcode-notifications-show-active,.show-dismissed #wpcode-dismissed-title{display:inline-block}.show-dismissed .wpcode-notifications-dismissed{display:block}.wpcode-notifications-dismissed .wpcode-notification-dismiss{display:none}.wpcode-notification-icon{margin-right:10px}.wpcode-help-tooltip{cursor:help;display:inline-block;position:relative;vertical-align:middle}.wpcode-help-tooltip .wpcode-help-tooltip-text{background-color:var(--wpcode-color-primary);border-radius:6px;bottom:100%;color:#fff;font-size:var(--wpcode-font-size-s);font-weight:400;left:50%;margin-bottom:12px;margin-left:-90px;padding:12px 12px;position:absolute;text-align:center;visibility:hidden;width:180px;z-index:500}.wpcode-help-tooltip .wpcode-help-tooltip-text:after{border-color:var(--wpcode-color-primary) transparent transparent transparent;border-style:solid;border-width:10px 9px 0 9px;content:'';height:0;left:50%;margin-left:-9px;position:absolute;top:100%;width:0}.wpcode-help-tooltip:hover .wpcode-help-tooltip-text{visibility:visible}.wpcode-help-tooltip .wpcode-icon-help{margin-top:1px}.wpcode-help-tooltip .wpcode-icon-help path{fill:#8A8A8A}.wpcode-upgrade-welcome{background:#f3f4f5}.wpcode-welcome-content{max-width:1168px;margin:24px auto;clear:both}.wpcode-welcome-content *{box-sizing:border-box}.wpcode-welcome-content h2{font-size:22px;font-weight:600;margin-top:0;line-height:1.2}.wpcode-welcome-content h3{font-size:1.5em}.wpcode-welcome-content p{font-size:1.2em}.wpcode-welcome-box{background:#fff;padding:40px;border:1px solid #ddd;border-radius:4px;margin-bottom:30px}@media (max-width:767px){.wpcode-welcome-box{padding:26px}}.wpcode-welcome-logo{margin:4px 0 28px}.wpcode-welcome-text{width:700px;margin:32px auto;max-width:100%}.wpcode-welcome-features{display:flex;justify-content:space-between;flex-wrap:wrap;margin-top:42px}.wpcode-welcome-features .wpcode-welcome-feature{width:calc(33.3% - 16px);text-align:center;margin-bottom:32px;display:flex}@media (max-width:782px){.wpcode-welcome-features .wpcode-welcome-feature{width:100%}}.wpcode-welcome-features .wpcode-welcome-feature p{font-size:16px}.wpcode-welcome-features .wpcode-welcome-feature h3{font-size:18px;margin-top:6px}.wpcode-welcome-features .wpcode-welcome-feature .wpcode-welcome-feature-text{text-align:left;margin-left:16px}.wpcode-welcome-features .wpcode-welcome-feature-icon-icon path{fill:var(--wpcode-color-primary)}.wpcode-welcome-highlight{grid-template-columns:1fr 1fr;display:grid}@media (max-width:767px){.wpcode-welcome-highlight{grid-template-columns:1fr}}.wpcode-welcome-highlight .wpcode-welcome-highlight-column{padding:16px 0;align-self:center;grid-column-start:2}@media (min-width:768px){.wpcode-welcome-highlight .wpcode-welcome-highlight-column{padding:16px 20px}.wpcode-welcome-highlight .wpcode-welcome-highlight-column:nth-of-type(2n+1){grid-column-start:1}.wpcode-welcome-highlight .wpcode-welcome-highlight-column:nth-of-type(2n){grid-column-start:2}}.wpcode-welcome-highlight img{max-width:100%;width:100%;height:auto}.wpcode-buttons-row{text-align:left}.wpcode-welcome-syed-mircea{font-size:1.2em}.wpcode-welcome-syed-mircea .wpcode-welcome-person{display:inline-flex;align-items:center;margin-right:60px;margin-top:32px}.wpcode-welcome-syed-mircea .wpcode-welcome-person-image{margin-right:15px}.wpcode-welcome-syed-mircea .wpcode-welcome-person-text{font-size:13px;color:var(--wpcode-text-color-paragraph)}.wpcode-welcome-syed-mircea h4{color:var(--wpcode-text-color-heading);margin:0 0 4px;font-size:16px;font-weight:600}.wpcode-welcome-syed-mircea img{display:block;margin-bottom:0}.wpcode-welcome-syed-mircea span{align-self:end}.wpcode-upgrade-welcome #wpcontent{padding-right:10px}@media screen and (min-width:783px){.wpcode-upgrade-welcome #wpcontent{padding-right:20px}}.wpcode-loading-spinner{-webkit-animation:wpcode-spinner-rotation 0.8s linear infinite;animation:wpcode-spinner-rotation 0.8s linear infinite;background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA4MCA4MCI+CiAgICA8cGF0aCBkPSJNNDAgMEMxNy45IDAgMCAxNy45IDAgNDBzMTcuOSA0MCA0MCA0MCA0MC0xNy45IDQwLTQwUzYyLjEgMCA0MCAwem0wIDcyQzIyLjMgNzIgOCA1Ny43IDggNDBTMjIuMyA4IDQwIDhzMzIgMTQuMyAzMiAzMi0xNC4zIDMyLTMyIDMyeiIKICAgICAgICAgIG9wYWNpdHk9Ii4xNSIvPgogICAgPHBhdGggZmlsbD0iIzM1NjhCNyIKICAgICAgICAgIGQ9Ik03NS44IDQ3LjRoLS40Yy0yLjItLjItMy44LTIuMi0zLjYtNC40LjEtMSAuMS0yIC4xLTNDNzIgMjIuNCA1Ny42IDggNDAgOGMtMi4yIDAtNC0xLjgtNC00czEuOC00IDQtNGMyMi4xIDAgNDAgMTcuOSA0MCA0MCAwIDEuMy0uMSAyLjUtLjIgMy44LS4yIDIuMS0xLjkgMy42LTQgMy42eiIvPgo8L3N2Zz4K);background-repeat:no-repeat;background-size:16px 16px;display:none;height:16px;margin:0 10px;position:absolute;width:16px;z-index:40}@-webkit-keyframes wpcode-spinner-rotation{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}@keyframes wpcode-spinner-rotation{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.wpcode-pro-pill{background:#bbb;color:#fff;text-transform:uppercase;padding:4px 7px;border-radius:9px;font-size:8px;line-height:1;display:inline-block;vertical-align:text-top}.wpcode-revisions-list-area{margin:24px 0 24px;position:relative}.wpcode-revisions-list-area #wpcode-show-all-snippets{margin-top:24px}.wpcode-revisions-list{border-left:1px solid var(--wpcode-border-color);padding-left:22px;margin:0}.wpcode-revisions-list.wpcode-revisions-list-collapsed{display:none}.wpcode-revisions-list.wpcode-revisions-list-extra{margin-top:0}.wpcode-revisions-list.wpcode-revisions-list-extra .wpcode-revision-list-item:first-child{background-color:var(--wpcode-button-disabled-bg)}.wpcode-revision-list-item{background:var(--wpcode-button-disabled-bg);padding:6px 9px;font-size:var(--wpcode-font-size-s);position:relative}.wpcode-revision-list-item .avatar{border-radius:50%;vertical-align:middle}.wpcode-revision-list-item:before{position:absolute;content:'';width:7px;height:7px;border-radius:50%;background-color:#C4C4C4;border:2px solid #FFF;right:100%;margin-right:17px;top:50%;margin-top:-5px}.wpcode-revision-list-item:first-child{background-color:var(--wpcode-background-highlight)}.wpcode-revision-list-author{display:inline-block;margin:0 10px 0 12px;font-weight:600;color:var(--wpcode-text-color-heading)}.wpcode-revision-list-date{color:var(--wpcode-text-color-light-bg)}.wpcode-revision-list-item-actions{float:right;display:inline-flex;vertical-align:middle;align-items:center;margin-top:7px;margin-right:6px}.wpcode-revision-list-item-actions span,.wpcode-revision-list-item-actions a{font-size:12px;color:var(--wpcode-text-color-paragraph);margin-left:14px}.wpcode-revision-list-item-actions span:hover,.wpcode-revision-list-item-actions a:hover{text-decoration:none}.wpcode-blur-area{filter:blur(2px);pointer-events:none}.wpcode-library .wpcode-content{position:relative}#poststuff .wpcode-upsell-box,.wpcode-upsell-box{position:absolute;z-index:20;background:#fff;width:662px;max-width:100%;top:50%;left:50%;transform:translate(-50%,-50%);padding:40px;text-align:center;border-radius:8px;border:1px solid var(--wpcode-border-color)}#poststuff .wpcode-upsell-box *,.wpcode-upsell-box *{box-sizing:border-box}#poststuff .wpcode-upsell-box h2,.wpcode-upsell-box h2{font-size:var(--wpcode-font-size-xxl);margin-top:0;line-height:1.2}#poststuff .wpcode-upsell-box .wpcode-button,#poststuff .wpcode-upsell-box .swal2-styled.swal2-confirm.wpcode-button,#poststuff .wpcode-upsell-box .swal2-styled.wpcode-button,.wpcode-upsell-box .wpcode-button,.wpcode-upsell-box .swal2-styled.swal2-confirm.wpcode-button,.wpcode-upsell-box .swal2-styled.wpcode-button{margin-top:6px}#poststuff .wpcode-upsell-box .wpcode-upsell-button-text,.wpcode-upsell-box .wpcode-upsell-button-text{margin-top:16px;display:inline-block;font-size:var(--wpcode-font-size-s);color:var(--wpcode-text-color-light-bg)}#poststuff .wpcode-upsell-box .wpcode-upsell-button-text:hover,.wpcode-upsell-box .wpcode-upsell-button-text:hover{text-decoration:none}#poststuff .wpcode-upsell-box p,.wpcode-upsell-box p{color:var(--wpcode-text-color-paragraph);font-size:var(--wpcode-font-size-s)}#poststuff .wpcode-upsell-box.wpcode-upsell-box-with-features,.wpcode-upsell-box.wpcode-upsell-box-with-features{width:892px;padding:56px}#poststuff .wpcode-upsell-box.wpcode-upsell-box-with-features .wpcode-upsell-text,.wpcode-upsell-box.wpcode-upsell-box-with-features .wpcode-upsell-text{max-width:600px;margin:0 auto}#poststuff .wpcode-upsell-box .wpcode-upsell-features,.wpcode-upsell-box .wpcode-upsell-features{display:flex;flex-wrap:wrap;justify-content:space-between;margin-top:40px;margin-bottom:24px;text-align:left}#poststuff .wpcode-upsell-box .wpcode-upsell-features .wpcode-upsell-feature,.wpcode-upsell-box .wpcode-upsell-features .wpcode-upsell-feature{width:50%;color:var(--wpcode-text-color-heading);font-size:var(--wpcode-font-size-m);margin-bottom:16px;line-height:1.5;padding-left:34px;position:relative;padding-right:10px}#poststuff .wpcode-upsell-box .wpcode-upsell-features .wpcode-upsell-feature:before,.wpcode-upsell-box .wpcode-upsell-features .wpcode-upsell-feature:before{content:'';background-image:url("data:image/svg+xml,%3Csvg width=%2719%27 height=%2718%27 viewBox=%270 0 19 18%27 fill=%27none%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath fill-rule=%27evenodd%27 clip-rule=%27evenodd%27 d=%27M9.5 0.416016C4.67 0.416016 0.75 4.33602 0.75 9.16602C0.75 13.996 4.67 17.916 9.5 17.916C14.33 17.916 18.25 13.996 18.25 9.16602C18.25 4.33602 14.33 0.416016 9.5 0.416016ZM9.5 16.166C5.64125 16.166 2.5 13.0248 2.5 9.16602C2.5 5.30727 5.64125 2.16602 9.5 2.16602C13.3587 2.16602 16.5 5.30727 16.5 9.16602C16.5 13.0248 13.3587 16.166 9.5 16.166ZM7.75 11.0648L13.5163 5.29852L14.75 6.54102L7.75 13.541L4.25 10.041L5.48375 8.80727L7.75 11.0648Z%27 fill=%27%2309A347%27/%3E%3C/svg%3E");display:block;width:19px;height:18px;position:absolute;left:0;top:3px}@media (max-width:1440px){.wpcode-library .wpcode-upsell-box{top:100px;transform:translate(-50%,0)}}.wpcode-admin-page .swal2-title{font-size:var(--wpcode-font-size-xxl);color:var(--wpcode-text-color-heading);padding:0}.wpcode-admin-page .swal2-html-container{font-size:var(--wpcode-font-size-s);color:var(--wpcode-text-color-paragraph);line-height:1.5;margin-top:24px}.wpcode-admin-page .swal2-popup{padding:36px;width:560px;border:1px solid var(--wpcode-border-color);border-radius:0}.wpcode-admin-page .swal2-styled.swal2-confirm.wpcode-button:focus,.wpcode-admin-page .swal2-styled.wpcode-button:focus{box-shadow:0 0 0 3px rgb(53 104 183/50%)}.wpcode-admin-page .swal2-styled.swal2-confirm.wpcode-button.wpcode-button-orange:focus,.wpcode-admin-page .swal2-styled.wpcode-button.wpcode-button-orange:focus{box-shadow:0 0 0 3px rgb(224 107 68/50%)}.wpcode-admin-page .swal2-icon.wpcode-lock{border:none;height:auto;width:auto;margin-top:0;margin-bottom:14px}.wpcode-admin-page .swal2-close{position:absolute;top:10px;right:10px;color:var(--wpcode-text-color-heading);font-size:25px}.wpcode-admin-page .swal2-close:hover{color:var(--wpcode-button-orange-bg)}.wpcode-hide{display:none}.wpcode-setting-license-wrapper .wpcode-input-text{max-width:400px}.wpcode-notice-top-area .notice-top{margin:0;border:0;box-shadow:none;background-color:#dddddd;color:var(--wpcode-text-color-heading);text-align:center}.wpcode-notice-top-area .notice-top a{color:var(--wpcode-color-primary)}.wpcode-icon-new{color:var(--wpcode-notice-success-bg);vertical-align:super;font-size:9px;font-weight:600;padding-left:2px}.wpcode-notice .wpcode-icon-new{margin-right:5px}.wpcode-features-list{display:flex;justify-content:space-between;max-width:1000px}@media (max-width:1200px){.wpcode-features-list{flex-direction:column}}.wpcode-features-list ul{margin:0}.wpcode-features-list li{color:var(--wpcode-text-color-heading);font-size:14px;margin-bottom:15px}.wpcode-features-list li:before{content:'+';margin-right:5px;vertical-align:center}#wpcode-notice-ihaf-snippets{margin:0;border-left:1px solid #c3c4c7}#wpcode-notice-ihaf-snippets p{color:var(--wpcode-text-color-heading)}
|
2 |
|
3 |
.select2-container{box-sizing:border-box;display:inline-block;margin:0;position:relative;vertical-align:middle}.select2-container .select2-selection--single{box-sizing:border-box;cursor:pointer;display:block;height:28px;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--single .select2-selection__rendered{display:block;padding-left:8px;padding-right:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-selection--single .select2-selection__clear{position:relative}.select2-container[dir="rtl"] .select2-selection--single .select2-selection__rendered{padding-right:8px;padding-left:20px}.select2-container .select2-selection--multiple{box-sizing:border-box;cursor:pointer;display:block;min-height:32px;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--multiple .select2-selection__rendered{display:inline-block;overflow:hidden;padding-left:8px;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-search--inline{float:left}.select2-container .select2-search--inline .select2-search__field{box-sizing:border-box;border:none;font-size:100%;margin-top:5px;padding:0}.select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-dropdown{background-color:white;border:1px solid #aaa;border-radius:4px;box-sizing:border-box;display:block;position:absolute;left:-100000px;width:100%;z-index:1051}.select2-results{display:block}.select2-results__options{list-style:none;margin:0;padding:0}.select2-results__option{padding:6px;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-select:none}.select2-results__option[aria-selected]{cursor:pointer}.select2-container--open .select2-dropdown{left:0}.select2-container--open .select2-dropdown--above{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--open .select2-dropdown--below{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-search--dropdown{display:block;padding:4px}.select2-search--dropdown .select2-search__field{padding:4px;width:100%;box-sizing:border-box}.select2-search--dropdown .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-search--dropdown.select2-search--hide{display:none}.select2-close-mask{border:0;margin:0;padding:0;display:block;position:fixed;left:0;top:0;min-height:100%;min-width:100%;height:auto;width:auto;opacity:0;z-index:99;background-color:#fff;filter:alpha(opacity=0)}.select2-hidden-accessible{border:0 !important;clip:rect(0 0 0 0) !important;-webkit-clip-path:inset(50%) !important;clip-path:inset(50%) !important;height:1px !important;overflow:hidden !important;padding:0 !important;position:absolute !important;width:1px !important;white-space:nowrap !important}.select2-container--default .select2-selection--single{background-color:#fff;border:1px solid #aaa;border-radius:4px}.select2-container--default .select2-selection--single .select2-selection__rendered{color:#444;line-height:28px}.select2-container--default .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:bold}.select2-container--default .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--default .select2-selection--single .select2-selection__arrow{height:26px;position:absolute;top:1px;right:1px;width:20px}.select2-container--default .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__clear{float:left}.select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__arrow{left:1px;right:auto}.select2-container--default.select2-container--disabled .select2-selection--single{background-color:#eee;cursor:default}.select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__clear{display:none}.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.select2-container--default .select2-selection--multiple{background-color:white;border:1px solid #aaa;border-radius:4px;cursor:text}.select2-container--default .select2-selection--multiple .select2-selection__rendered{box-sizing:border-box;list-style:none;margin:0;padding:0 5px;width:100%}.select2-container--default .select2-selection--multiple .select2-selection__rendered li{list-style:none}.select2-container--default .select2-selection--multiple .select2-selection__clear{cursor:pointer;float:right;font-weight:bold;margin-top:5px;margin-right:10px;padding:1px}.select2-container--default .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove{color:#999;cursor:pointer;display:inline-block;font-weight:bold;margin-right:2px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover{color:#333}.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice,.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-search--inline{float:right}.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice{margin-left:5px;margin-right:auto}.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove{margin-left:2px;margin-right:auto}.select2-container--default.select2-container--focus .select2-selection--multiple{border:solid black 1px;outline:0}.select2-container--default.select2-container--disabled .select2-selection--multiple{background-color:#eee;cursor:default}.select2-container--default.select2-container--disabled .select2-selection__choice__remove{display:none}.select2-container--default.select2-container--open.select2-container--above .select2-selection--single,.select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple{border-top-left-radius:0;border-top-right-radius:0}.select2-container--default.select2-container--open.select2-container--below .select2-selection--single,.select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple{border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--default .select2-search--dropdown .select2-search__field{border:1px solid #aaa}.select2-container--default .select2-search--inline .select2-search__field{background:transparent;border:none;outline:0;box-shadow:none;-webkit-appearance:textfield}.select2-container--default .select2-results>.select2-results__options{max-height:200px;overflow-y:auto}.select2-container--default .select2-results__option[role=group]{padding:0}.select2-container--default .select2-results__option[aria-disabled=true]{color:#999}.select2-container--default .select2-results__option[aria-selected=true]{background-color:#ddd}.select2-container--default .select2-results__option .select2-results__option{padding-left:1em}.select2-container--default .select2-results__option .select2-results__option .select2-results__group{padding-left:0}.select2-container--default .select2-results__option .select2-results__option .select2-results__option{margin-left:-1em;padding-left:2em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-2em;padding-left:3em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-3em;padding-left:4em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-4em;padding-left:5em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-5em;padding-left:6em}.select2-container--default .select2-results__option--highlighted[aria-selected]{background-color:#5897fb;color:white}.select2-container--default .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic .select2-selection--single{background-color:#f7f7f7;border:1px solid #aaa;border-radius:4px;outline:0;background-image:linear-gradient(to bottom,#fff 50%,#eee 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF',endColorstr='#FFEEEEEE',GradientType=0)}.select2-container--classic .select2-selection--single:focus{border:1px solid #5897fb}.select2-container--classic .select2-selection--single .select2-selection__rendered{color:#444;line-height:28px}.select2-container--classic .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:bold;margin-right:10px}.select2-container--classic .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--classic .select2-selection--single .select2-selection__arrow{background-color:#ddd;border:none;border-left:1px solid #aaa;border-top-right-radius:4px;border-bottom-right-radius:4px;height:26px;position:absolute;top:1px;right:1px;width:20px;background-image:linear-gradient(to bottom,#eee 50%,#ccc 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE',endColorstr='#FFCCCCCC',GradientType=0)}.select2-container--classic .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--classic[dir="rtl"] .select2-selection--single .select2-selection__clear{float:left}.select2-container--classic[dir="rtl"] .select2-selection--single .select2-selection__arrow{border:none;border-right:1px solid #aaa;border-radius:0;border-top-left-radius:4px;border-bottom-left-radius:4px;left:1px;right:auto}.select2-container--classic.select2-container--open .select2-selection--single{border:1px solid #5897fb}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow{background:transparent;border:none}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--single{border-top:none;border-top-left-radius:0;border-top-right-radius:0;background-image:linear-gradient(to bottom,#fff 0%,#eee 50%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF',endColorstr='#FFEEEEEE',GradientType=0)}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--single{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0;background-image:linear-gradient(to bottom,#eee 50%,#fff 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE',endColorstr='#FFFFFFFF',GradientType=0)}.select2-container--classic .select2-selection--multiple{background-color:white;border:1px solid #aaa;border-radius:4px;cursor:text;outline:0}.select2-container--classic .select2-selection--multiple:focus{border:1px solid #5897fb}.select2-container--classic .select2-selection--multiple .select2-selection__rendered{list-style:none;margin:0;padding:0 5px}.select2-container--classic .select2-selection--multiple .select2-selection__clear{display:none}.select2-container--classic .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove{color:#888;cursor:pointer;display:inline-block;font-weight:bold;margin-right:2px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove:hover{color:#555}.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice{float:right;margin-left:5px;margin-right:auto}.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove{margin-left:2px;margin-right:auto}.select2-container--classic.select2-container--open .select2-selection--multiple{border:1px solid #5897fb}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--multiple{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--multiple{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--classic .select2-search--dropdown .select2-search__field{border:1px solid #aaa;outline:0}.select2-container--classic .select2-search--inline .select2-search__field{outline:0;box-shadow:none}.select2-container--classic .select2-dropdown{background-color:#fff;border:1px solid transparent}.select2-container--classic .select2-dropdown--above{border-bottom:none}.select2-container--classic .select2-dropdown--below{border-top:none}.select2-container--classic .select2-results>.select2-results__options{max-height:200px;overflow-y:auto}.select2-container--classic .select2-results__option[role=group]{padding:0}.select2-container--classic .select2-results__option[aria-disabled=true]{color:grey}.select2-container--classic .select2-results__option--highlighted[aria-selected]{background-color:#3875d7;color:#fff}.select2-container--classic .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic.select2-container--open .select2-dropdown{border-color:#5897fb}
|
4 |
|
build/admin.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(){var e={233:function(){(window.WPCodeAdminCodeEditor||function(e,t,n){const o={l18n:wpcode,init(){t.WPCodeAdminCodeEditor=o},switch_code_mode(e,t){const n=o.get_editor(e);if(void 0===n)return!1;n.setOption("mode",o.get_mime_for_code_type(t)),n.setOption("lint",o.get_lint_for_code_type(t)),jQuery(n.getTextArea()).closest(".wpcode-code-textarea").attr("data-code-type",t)},get_editor:e=>wpcode_editor[e]?wpcode_editor[e].codemirror:void 0,set_value(e,t){const n=o.get_editor(e);if(void 0===n)return!1;n.getDoc().setValue(t)},get_mime_for_code_type:e=>o.l18n.code_type_options[e].mime,get_lint_for_code_type:e=>o.l18n.code_type_options[e].lint,refresh(e){o.get_editor(e).refresh()},get_value:e=>o.get_editor(e).getValue(),refresh_all(){n.each(wpcode_editor,(function(e,t){t.codemirror.refresh()}))}};return o}(document,window,jQuery)).init()},560:function(){(window.WPCodeSnippetsTable||function(e,t,n){const o={l10n:wpcode,init:function(){o.should_init()&&o.init_status_toggle()},should_init:function(){return null!==e.getElementById("wpcode-code-snippets-table")},init_status_toggle:function(){n(".wpcode-status-toggle").on("change",(function(){const e=n(this),t=e.is(":checked"),i=e.data("id");o.update_status(t,i).fail((function(){e.prop("checked",!1)})).done((function(n){!1===n.success&&(e.prop("checked",!t),n.data.message&&WPCodeAdminNotices.add_notice(n.data.message,"error"))})).fail((function(e){e.responseText&&WPCodeAdminNotices.add_notice(e.responseText,"error")}))}))},update_status:function(e,t){return n.post(ajaxurl,{_wpnonce:o.l10n.nonce,action:"wpcode_update_snippet_status",snippet_id:t,active:e})}};return o}(document,window,jQuery)).init()},569:function(){(window.WPCodeConditionalLogic||function(e,t,n){const o={l10n:wpcode,init:function(){o.should_init()&&(o.find_elements(),o.add_events(),o.show_relations_for_all_rows())},should_init:function(){return void 0!==wpcode.conditions},find_elements:function(){o.conditions=wpcode.conditions,o.conditions_holder=n(e.getElementById("wpcode-conditions-holder")),o.conditions_input=n(e.getElementById("wpcode-cl-rules")),o.add_group_button=n(e.getElementById("wpcode-cl-add-group")),o.group_template=n(e.getElementById("wpcode-conditions-group-markup")).html(),o.row_template=n(e.getElementById("wpcode-conditions-group-row-markup")).html(),o.show_hide_input=n(e.getElementById("wpcode-cl-show-hide"))},add_events:function(){o.init_add_group(),o.init_add_row(),o.init_remove_row(),o.init_change_type(),o.init_capture_rules(),o.init_change_show_hide(),o.init_select2()},show_relations_for_all_rows(){o.conditions_holder.find(".wpcode-cl-rules-row").each((function(){o.show_hide_relation_options(n(this))}))},init_add_group:function(){o.add_group_button.on("click",(function(){o.add_group()}))},add_group(){const e=o.get_new_group();o.conditions_holder.append(e),o.add_new_row(e.find(".wpcode-cl-group-rules")),o.build_rules_from_inputs()},get_new_group:()=>n(o.group_template),get_new_row:()=>n(o.row_template),init_add_row(){o.conditions_holder.on("click",".wpcode-cl-add-row",(function(){o.add_new_row(n(this).closest(".wpcode-cl-group").find(".wpcode-cl-group-rules"))}))},init_remove_row(){o.conditions_holder.on("click",".wpcode-cl-remove-row",(function(){const e=n(this).closest(".wpcode-cl-group");n(this).closest(".wpcode-cl-rules-row").remove(),o.maybe_remove_group(e),o.build_rules_from_inputs()}))},maybe_remove_group(e){0===e.find(".wpcode-cl-group-rules .wpcode-cl-rules-row").length&&o.remove_group(e)},remove_group(e){e.remove(),o.build_rules_from_inputs()},add_new_row(e){const t=o.get_new_row();t.appendTo(e),o.handle_type_change(t.find(".wpcode-cl-rule-type")),o.build_rules_from_inputs()},init_change_type(){o.conditions_holder.on("change",".wpcode-cl-rule-type",(function(){o.handle_type_change(n(this))}))},init_change_show_hide(){o.show_hide_input.on("change",(function(){o.build_rules_from_inputs()}))},handle_type_change(e){const t=e.find("option:selected"),n=e.val(),i=t.closest("optgroup").data("type"),r=o.conditions[i].options[n],s=e.closest(".wpcode-cl-rules-row");e.parent().find(".wpcode-cl-rule-value").html(o.get_input_markup(r)),o.show_hide_relation_options(s),s.find(".wpcode-cl-rule-relation option").prop("selected",!1),o.init_select2()},get_input_markup(e){let t="";switch(e.type){case"select":t=o.get_input_select(e.options);break;case"text":t=o.get_input_text();break;case"ajax":t=o.get_input_ajax(e.options)}return t},get_input_select(e){const t=n("<select/>");return n.each(e,(function(e,o){t.append(n("<option />",{value:o.value,disabled:!0===o.disabled}).text(o.label))})),t},get_input_text:()=>n('<input type="text" class="wpcode-input-text" />'),get_input_ajax:e=>n('<select data-action="'+e+'" class="wpcode-select2" multiple />'),init_capture_rules(){o.conditions_holder.on("change","input,select",(function(){o.build_rules_from_inputs()}))},build_rules_from_inputs(){const e=o.conditions_holder.find(".wpcode-cl-group"),t=[];e.each((function(e){const i=n(this).find(".wpcode-cl-rules-row");t[e]=[],i.each((function(){const i=n(this),r=i.find(".wpcode-cl-rule-type"),s=r.find("option:selected").closest("optgroup").data("type"),a=r.val(),l={},c=o.conditions[s].options[a];l.type=s,l.option=a,l.relation=i.find(".wpcode-cl-rule-relation").val(),l.value=o.get_input_value(c,i),null!==l.value&&t[e].push(l)}))}));const i={show:o.show_hide_input.val(),groups:t};o.conditions_input.val(JSON.stringify(i))},get_input_value(e,t){let n="";switch(e.type){case"select":case"ajax":n=t.find(".wpcode-cl-rule-value select").val();break;case"text":n=t.find(".wpcode-cl-rule-value input").val()}return n},show_hide_relation_options(e){const t=e.find(".wpcode-cl-rule-type"),i=t.val(),r=t.find("option:selected").closest("optgroup").data("type"),s=e.find(".wpcode-cl-rule-relation option"),a={select:["=","!="],ajax:["=","!="],text:["=","!=","contains","notcontains"]}[o.conditions[r].options[i].type];s.each((function(){a.indexOf(n(this).attr("value"))>-1?n(this).show():n(this).hide()}))},init_select2(){o.conditions_holder.find(".wpcode-select2").select2({ajax:{url:ajaxurl,data:function(e){return{action:n(this).data("action"),term:e.term,_wpnonce:o.l10n.nonce}}}})}};return o}(document,window,jQuery)).init()},786:function(){(window.WPCodeAdminGenerator||function(e,t,n){const o={doing_ajax_call:!1,ajax_snippet_update:!1,editor_id:"wpcode_generator_code_preview",init:function(){o.should_init()&&(o.find_elements(),o.init_generator_form(),o.init_code_editor(),o.init_tabs(),o.init_use_snippet(),o.init_copy_editor(),o.init_repeater(),o.do_spacer(),n(e).ready((function(){o.init_autocomplete()})))},should_init:()=>(o.generator_form=n("#wpcode_generator_form"),o.generator_form.length>0),find_elements(){o.tabs_buttons=n(".wpcode-items-tabs"),o.tabs_content=n(".wpcode-items-list .wpcode-form-tab"),o.use_snippet=n("#wpcode-generator-use-snippet"),o.update_button=n("#wpcode-generator-update-code"),o.repeater_row=n("#wpcode-generator-repeater-row").html()},init_generator_form(){o.generator_form.on("submit",(function(e){e.preventDefault(),o.update_snippet()})),o.generator_form.on("change","input, select",(function(){o.update_snippet()}))},update_snippet(){o.doing_ajax_call||(o.ajax_snippet_update&&o.ajax_snippet_update.abort(),o.show_button_spinner(o.update_button),o.ajax_snippet_update=n.post(ajaxurl,n(o.generator_form).serialize()).done((function(e){o.ajax_snippet_update=!1,WPCodeAdminCodeEditor.set_value(o.editor_id,e),o.hide_button_spinner(o.update_button)})))},init_tabs(){o.tabs_buttons.on("click","button",(function(e){e.preventDefault(),o.switch_active_tab(n(this))}))},switch_active_tab(e){o.tabs_buttons.find("button").removeClass("wpcode-active"),e.addClass("wpcode-active");const t=e.data("category");o.tabs_content.hide(),o.tabs_content.filter((function(){return n(this).data("tab")===t})).show(),o.do_spacer(),WPCodeAdminCodeEditor.refresh(o.editor_id)},init_use_snippet(){o.use_snippet.on("click",(function(e){if(e.preventDefault(),o.doing_ajax_call)return;o.doing_ajax_call=!0;const i=o.generator_form.serializeArray(),r=n(this);n.each(i,(function(e,t){"action"===t.name&&(i[e].value="wpcode_save_generated_snippet")})),o.show_button_spinner(r),n.post(ajaxurl,n.param(i)).done((function(e){o.doing_ajax_call=!1,o.hide_button_spinner(r),e.success&&e.data.url&&(t.location=e.data.url)}))}))},show_button_spinner(e){t.WPCodeSpinner.show_button_spinner(e)},hide_button_spinner(e){t.WPCodeSpinner.hide_button_spinner(e)},init_copy_editor:function(){n(".wpcode-copy-target").on("click",(function(e){e.preventDefault();const t=n(this),i=WPCodeAdminCodeEditor.get_value(o.editor_id);i&&(navigator.clipboard.writeText(i),t.addClass("wpcode-show-success-icon"),setTimeout((function(){t.removeClass("wpcode-show-success-icon")}),500))}))},init_repeater(){o.row_id=0,o.tabs_content.on("click",".wpcode-repeater-button",(function(){const e=n(this).data("target"),t=n(n('[data-repeater="'+e+'"]').get().reverse());let i,r,s=0;o.row_id++,t.each((function(){const e=n(this).closest(".wpcode-generator-column");e.is(i)||(s++,i=e,r=n(o.repeater_row),s>1?r.find("button").remove():r.find("button").data("target",o.row_id),r.attr("data-id",o.row_id),e.append(r)),n(this).clone().attr("data-repeater",null).prependTo(r).find("input").val(null)}));let a=0,l=n('.wpcode-repeater-group[data-id="'+o.row_id+'"]');l.each((function(){const e=n(this).height();e>a&&(a=e)})),l.height(a),l.first().find("input").first().focus()})),o.tabs_content.on("click",".wpcode-remove-row",(function(){const e=n(this).data("target");n('.wpcode-repeater-group[data-id="'+e+'"]').remove()}))},do_spacer(){n(".wpcode-generator-field-spacer").each((function(){const e=n(this).closest(".wpcode-generator-column"),t=n(this).closest(".wpcode-generator-column").outerHeight();let o=0;e.siblings(".wpcode-generator-column").each((function(){const e=n(this).height();e>o&&(o=e)})),o>t&&n(this).height(o-t+3)}))},init_autocomplete(){n(".wpcode-generator-field-autocomplete").each((function(){const e=n(this).find('input[type="text"]'),t=n(this).find(".wpcode-field-autocomplete").text();e.autocomplete({source:JSON.parse(t)})}))},init_code_editor(){const e=n(".wpcode-generator-code");if(0===e.length)return;const t=wp.codeEditor.initialize(e);o.CodeMirror=t.codemirror,o.CodeMirror.setOption("readOnly",!1),o.CodeMirror.on("change",(function(e){clearTimeout(o.editor_change_handler),o.editor_change_handler=setTimeout((function(){jQuery(e.getTextArea()).val(e.getValue()).change(),o.update_snippet()}),300)}))}};return o}(document,window,jQuery)).init()},448:function(){(window.WPCodeHeader||function(e,t,n){const o={init(){o.should_init()&&n(e).ready((function(){o.init_sticky_header()}))},should_init:()=>n("#wpcode_snippet_code").length>0||n("#ihaf_insert_header").length>0,init_sticky_header(){const e=n(".wpcode-header-bottom"),o=e.height(),i=e.offset().top,r=e.parent();n(t).scroll((function(){const s=n(t).scrollTop();i<s+32?(e.addClass("wpcode-sticky"),r.css("paddingBottom",o+"px")):(e.removeClass("wpcode-sticky"),r.css("paddingBottom",0))}))}};return o}(document,window,jQuery)).init()},847:function(){(window.WPCodeHelp||function(e,t,n){const o={init:function(){o.should_init()&&(o.find_elements(),o.init_show(),o.init_close_button(),o.init_search(),o.init_accordion())},should_init:()=>(o.$overlay=n("#wpcode-docs-overlay"),o.$overlay.length>0),find_elements(){o.$close_button=n("#wpcode-help-close"),o.$search=n("#wpcode-help-search"),o.$no_result=n("#wpcode-help-no-result"),o.$search_results=n("#wpcode-help-result ul"),o.$categories=n("#wpcode-help-categories")},init_close_button(){o.$close_button.on("click",(function(e){e.preventDefault(),o.$overlay.fadeOut(200)}))},init_show(){n(e).on("click",".wpcode-show-help",(function(e){e.preventDefault(),o.$overlay.fadeIn(200)}))},init_accordion(){o.$categories.on("click",".wpcode-help-category header",(function(){const e=n(this).closest(".wpcode-help-category");o.toggle_category(e)})),o.$categories.on("click",".viewall",(function(e){e.preventDefault(),n(this).closest(".wpcode-help-docs").find("div").slideDown(),n(this).hide()}))},toggle_category(e){e.toggleClass("open"),e.find(".wpcode-help-docs").slideToggle()},init_search(){o.$search.on("keyup","input",o.input_search),o.$search.on("click","#wpcode-help-search-clear",o.clear_search)},input_search(){o.$search_results.html("");const e=n(this).val().toLowerCase(),t=n("#wpcode-help-categories .wpcode-help-docs li").filter((function(){return n(this).text().toLowerCase().indexOf(""+e)>-1}));e.length>2&&t.clone().appendTo(o.$search_results),0===t.length?o.$no_result.show():o.$no_result.hide(),o.$search.toggleClass("wpcode-search-empty",!e)},clear_search(){o.$search.find("input").val("").trigger("keyup")}};return o}(document,window,jQuery)).init()},298:function(){(window.WPCodeInputs||function(e,t,n){const o={init(){n(o.ready)},ready(){o.initFileUploads(),o.initCheckboxMultiselectColumns()},initFileUploads(){n(".wpcode-file-upload").each((function(){const e=n(this).find("input[type=file]"),t=n(this).find("label"),o=t.html();e.on("change",(function(e){let n="";this.files&&this.files.length>1?n=(this.getAttribute("data-multiple-caption")||"").replace("{count}",this.files.length):e.target.value&&(n=e.target.value.split("\\").pop()),n?t.find(".wpcode-file-field").html(n):t.html(o)})),e.on("focus",(function(){e.addClass("has-focus")})).on("blur",(function(){e.removeClass("has-focus")}))}))},initCheckboxMultiselectColumns(){n(e).on("change",".wpcode-checkbox-multiselect-columns input",(function(){var e=n(this),t=e.parent(),o=e.closest(".wpcode-checkbox-multiselect-columns"),i=t.text(),r="check-item-"+e.val(),s=o.find("#"+r);e.prop("checked")?(e.parent().addClass("checked"),s.length||o.find(".second-column ul").append('<li id="'+r+'">'+i+"</li>")):(e.parent().removeClass("checked"),o.find("#"+r).remove())})),n(e).on("click",".wpcode-checkbox-multiselect-columns .all",(function(e){e.preventDefault(),n(this).closest(".wpcode-checkbox-multiselect-columns").find("input[type=checkbox]").prop("checked",!0).trigger("change")}))}};return o}(document,window,jQuery)).init()},900:function(){(window.WPCodeItemsList||function(e,t,n){const o={category:"*",search_term:"",init:function(){o.should_init()&&(o.find_elements(),o.init_category_switch(),o.init_search())},should_init:()=>(o.categories_list=n(".wpcode-items-filters"),o.categories_list.length>0),find_elements(){o.search_input=n("#wpcode-items-search")},init_category_switch(){o.categories_list.on("click","button",(function(){const e=n(this);e.hasClass("wpcode-active")||(o.switch_to_category(e.data("category")),o.switch_category_button(e))}))},switch_category_button(e){o.categories_list.find("button").removeClass("wpcode-active"),e.addClass("wpcode-active")},switch_to_category(e){o.category=e,o.filter_items()},filter_items(){let e;const t=n(".wpcode-list-item"),i=t.filter((function(){return"*"===o.category||n(this).data("categories").indexOf(o.category)>-1}));if(o.search_term.length>2){const i=o.search_term.toLowerCase();e=t.filter((function(){return n(this).text().toLowerCase().indexOf(""+i)>-1}))}else e=i;t.hide(),e.show()},init_search(){o.search_input.on("keyup change search",(function(){const e=n(this).val();e.length<3?o.search_term="":o.search_term=e,o.filter_items()}))}};return o}(document,window,jQuery)).init()},423:function(){(window.WPCodeAdminLibrary||function(e,t,n){const o={l10n:wpcode,init:function(){o.should_init()&&(o.find_elements(),o.init_preview())},should_init:()=>n(".wpcode-library-preview-button").length>0,find_elements(){o.library_list=n(".wpcode-items-list"),o.code_preview_use=n("#wpcode-preview-use-code"),o.code_preview_edit=n("#wpcode-preview-edit-snippet"),o.code_preview_updated=n("#wpcode-preview-updated"),o.code_preview_title=n("#wpcode-preview-title")},init_preview(){o.library_list.on("click",".wpcode-library-preview-button",(function(e){e.preventDefault();const t=n(this).parent().find(".wpcode-item-use-button"),i=n(this).closest(".wpcode-list-item").data("id");o.show_code_preview(i,t.attr("href")),o.code_preview_use.text(t.text())})),n(".wpcode-close-modal, .wpcode-modal-overlay").on("click",(function(){n("body").removeClass("wpcode-show-modal")}))},show_code_preview(e,t){const i=o.l10n.library.snippets.find((t=>t.library_id===e));WPCodeAdminCodeEditor.switch_code_mode("wpcode-code-preview",i.code_type),WPCodeAdminCodeEditor.set_value("wpcode-code-preview",i.code),o.code_preview_use.attr("href",t),o.code_preview_title.text(i.title),o.code_preview_edit.length>0&&o.code_preview_edit.attr("href",o.l10n.cloud_edit_url+e),o.code_preview_updated&&o.code_preview_updated.text(i.updated_text),n("body").addClass("wpcode-show-modal"),WPCodeAdminCodeEditor.refresh("wpcode-code-preview")}};return o}(document,window,jQuery)).init()},5:function(){const e=window.WPCodeAdminNotices||function(e,t,n){const o={init:function(){t.WPCodeAdminNotices=o,o.notice_holder=n(e.getElementById("wpcode-notice-area")),o.document=n(e)},add_notice(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"updated";const i=n("<div />"),r=n("<p />");r.html(e),i.addClass("fade notice is-dismissible"),i.addClass(t),i.append(r),o.notice_holder.append(i),o.document.trigger("wp-updates-notice-added"),i.find("button").focus()}};return o}(document,window,jQuery);e.init()},770:function(){(window.WPCodeAdminNotifications||function(e,t,n){const o={init(){o.should_init()&&(o.find_elements(),o.init_open(),o.init_close(),o.init_dismiss(),o.init_view_switch(),o.update_count(o.active_count))},should_init:()=>(o.$drawer=n("#wpcode-notifications-drawer"),o.$drawer.length>0),find_elements(){o.$open_button=n("#wpcode-notifications-button"),o.$count=o.$drawer.find("#wpcode-notifications-count"),o.$dismissed_count=o.$drawer.find("#wpcode-notifications-dismissed-count"),o.active_count=o.$open_button.data("count")?o.$open_button.data("count"):0,o.dismissed_count=o.$open_button.data("dismissed"),o.$body=n("body"),o.$dismissed_button=n("#wpcode-notifications-show-dismissed"),o.$active_button=n("#wpcode-notifications-show-active"),o.$active_list=n(".wpcode-notifications-list .wpcode-notifications-active"),o.$dismissed_list=n(".wpcode-notifications-list .wpcode-notifications-dismissed"),o.$dismiss_all=n("#wpcode-dismiss-all")},update_count(e){o.$open_button.data("count",e).attr("data-count",e),0===e&&o.$open_button.removeAttr("data-count"),o.$count.text(e),o.dismissed_count+=Math.abs(e-o.active_count),o.active_count=e,o.$dismissed_count.text(o.dismissed_count),0===o.active_count&&o.$dismiss_all.hide()},init_open(){o.$open_button.on("click",(function(e){e.preventDefault(),o.$body.addClass("wpcode-notifications-open")}))},init_close(){o.$body.on("click",".wpcode-notifications-close, .wpcode-notifications-overlay",(function(e){e.preventDefault(),o.$body.removeClass("wpcode-notifications-open")}))},init_dismiss(){o.$drawer.on("click",".wpcode-notification-dismiss",(function(e){e.preventDefault();const t=n(this).data("id");if(o.dismiss_notification(t),"all"===t)return o.move_to_dismissed(o.$active_list.find("li")),void o.update_count(0);o.move_to_dismissed(n(this).closest("li")),o.update_count(o.active_count-1)}))},move_to_dismissed(e){e.slideUp((function(){n(this).prependTo(o.$dismissed_list).show()}))},dismiss_notification:e=>n.post(ajaxurl,{action:"wpcode_notification_dismiss",nonce:wpcode.nonce,id:e}),init_view_switch(){o.$dismissed_button.on("click",(function(e){e.preventDefault(),o.$drawer.addClass("show-dismissed")})),o.$active_button.on("click",(function(e){e.preventDefault(),o.$drawer.removeClass("show-dismissed")}))}};return o}(document,window,jQuery)).init()},124:function(){const e=window.WPCodeSpinner||function(e,t,n){const o={init(){t.WPCodeSpinner=o,o.spinner=n("#wpcode-admin-spinner")},show_button_spinner(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"right";e.prop("disabled",!0);const i=e.offset(),r=n("#adminmenuwrap").width(),s=n("#wpadminbar").height();let a={};o.spinner.show(),a="right"===t?{left:i.left-r+e.outerWidth(),top:i.top-s+e.outerHeight()/2-o.spinner.height()/2}:{left:i.left-r-o.spinner.outerWidth()-20,top:i.top-s+e.outerHeight()/2-o.spinner.height()/2},o.spinner.css(a)},hide_button_spinner(e){e.prop("disabled",!1),o.spinner.hide()}};return o}(document,window,jQuery);e.init()},801:function(){(window.WPCodeAdminTools||function(e,t,n){const o={init:function(){o.should_init()&&(o.find_elements(),o.init_importer(),o.init_ssl_verify())},should_init:()=>n("body").hasClass("wpcode-tools"),find_elements(){o.importer_button=n("#wpcode-importer-snippets-submit"),o.$import_progress=n("#wpcode-importer-process"),o.provider=n("#wpcode-importer-provider").val(),o.status_update=n("#wpcode-importer-status-update").html()},init_importer(){o.importer_button.on("click",(function(e){e.preventDefault();const t=n("#wpcode-importer-snippets input:checked");if(t.length){const e=[];t.each((function(){e.push(n(this).val())})),o.import_snippets(e)}}))},import_snippets(e){o.$import_progress.find(".snippet-total").text(e.length),o.$import_progress.find(".snippet-current").text("1"),n("#wpcode-importer-snippets").hide(),o.$import_progress.show(),o.import_queue=e,o.imported=0,o.import_snippet()},import_snippet(){const e=o.import_queue[0];n.post(ajaxurl,{action:"wpcode_import_snippet_"+o.provider,snippet_id:e,_wpnonce:wpcode.nonce}).done((function(e){if(e.success){o.import_queue.shift(),o.imported++;const t=n(o.status_update);t.find(".name span").text(e.data.name),t.find(".actions a").attr("href",e.data.edit),o.$import_progress.find(".status").prepend(t),o.$import_progress.find(".status").show(),0===o.import_queue.length?(o.$import_progress.find(".process-count").hide(),o.$import_progress.find(".snippets-completed").text(o.imported),o.$import_progress.find(".process-completed").show()):(o.$import_progress.find(".snippet-current").text(o.imported+1),o.import_snippet())}}))},init_ssl_verify(){n(e).on("click","#wpcode-ssl-verify",(function(e){e.preventDefault(),o.verify_ssl()}))},verify_ssl(){const e=n("#wpcode-ssl-verify"),t=e.text(),o=e.outerWidth(),i=e.parent(),r={action:"wpcode_verify_ssl",nonce:wpcode.nonce};e.css("width",o).prop("disabled",!0).text(wpcode.testing),n.post(ajaxurl,r,(function(n){console.log(n),i.find(".wpcode-alert, .wpcode-ssl-error").remove(),n.success&&e.before('<div class="wpcode-alert wpcode-alert-success">'+n.data.msg+"</div>"),!n.success&&n.data.msg&&e.before('<div class="wpcode-alert wpcode-alert-danger">'+n.data.msg+"</div>"),!n.success&&n.data.debug&&e.before('<div class="wpcode-ssl-error pre-error">'+n.data.debug+"</div>"),e.css("width",o).prop("disabled",!1).text(t)}))}};return o}(document,window,jQuery)).init()},868:function(){(window.WPCodeAdminWelcome||function(e,t,n){const o={init:function(){o.add_listener()},add_listener(){n("#wpbody-content").on("click",".wpcode-scroll-to",(function(e){e.preventDefault();const t=n(this).attr("href"),o=n(t);n("html, body").animate({scrollTop:o.offset().top},700)}))}};return o}(document,window,jQuery)).init()},686:function(e,t,n){var o,i,r;i=[n(567)],o=function(e){var t=function(){if(e&&e.fn&&e.fn.select2&&e.fn.select2.amd)var t=e.fn.select2.amd;var n,o,i;return t&&t.requirejs||(t?o=t:t={},function(e){var t,r,s,a,l={},c={},u={},d={},p=Object.prototype.hasOwnProperty,h=[].slice,f=/\.js$/;function m(e,t){return p.call(e,t)}function g(e,t){var n,o,i,r,s,a,l,c,d,p,h,m=t&&t.split("/"),g=u.map,w=g&&g["*"]||{};if(e){for(s=(e=e.split("/")).length-1,u.nodeIdCompat&&f.test(e[s])&&(e[s]=e[s].replace(f,"")),"."===e[0].charAt(0)&&m&&(e=m.slice(0,m.length-1).concat(e)),d=0;d<e.length;d++)if("."===(h=e[d]))e.splice(d,1),d-=1;else if(".."===h){if(0===d||1===d&&".."===e[2]||".."===e[d-1])continue;d>0&&(e.splice(d-1,2),d-=2)}e=e.join("/")}if((m||w)&&g){for(d=(n=e.split("/")).length;d>0;d-=1){if(o=n.slice(0,d).join("/"),m)for(p=m.length;p>0;p-=1)if((i=g[m.slice(0,p).join("/")])&&(i=i[o])){r=i,a=d;break}if(r)break;!l&&w&&w[o]&&(l=w[o],c=d)}!r&&l&&(r=l,a=c),r&&(n.splice(0,a,r),e=n.join("/"))}return e}function w(t,n){return function(){var o=h.call(arguments,0);return"string"!=typeof o[0]&&1===o.length&&o.push(null),r.apply(e,o.concat([t,n]))}}function v(e){return function(t){l[e]=t}}function y(n){if(m(c,n)){var o=c[n];delete c[n],d[n]=!0,t.apply(e,o)}if(!m(l,n)&&!m(d,n))throw new Error("No "+n);return l[n]}function b(e){var t,n=e?e.indexOf("!"):-1;return n>-1&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}function _(e){return e?b(e):[]}function x(e){return function(){return u&&u.config&&u.config[e]||{}}}s=function(e,t){var n,o,i=b(e),r=i[0],s=t[1];return e=i[1],r&&(n=y(r=g(r,s))),r?e=n&&n.normalize?n.normalize(e,(o=s,function(e){return g(e,o)})):g(e,s):(r=(i=b(e=g(e,s)))[0],e=i[1],r&&(n=y(r))),{f:r?r+"!"+e:e,n:e,pr:r,p:n}},a={require:function(e){return w(e)},exports:function(e){var t=l[e];return void 0!==t?t:l[e]={}},module:function(e){return{id:e,uri:"",exports:l[e],config:x(e)}}},t=function(t,n,o,i){var r,u,p,h,f,g,b,x=[],C=typeof o;if(g=_(i=i||t),"undefined"===C||"function"===C){for(n=!n.length&&o.length?["require","exports","module"]:n,f=0;f<n.length;f+=1)if("require"===(u=(h=s(n[f],g)).f))x[f]=a.require(t);else if("exports"===u)x[f]=a.exports(t),b=!0;else if("module"===u)r=x[f]=a.module(t);else if(m(l,u)||m(c,u)||m(d,u))x[f]=y(u);else{if(!h.p)throw new Error(t+" missing "+u);h.p.load(h.n,w(i,!0),v(u),{}),x[f]=l[u]}p=o?o.apply(l[t],x):void 0,t&&(r&&r.exports!==e&&r.exports!==l[t]?l[t]=r.exports:p===e&&b||(l[t]=p))}else t&&(l[t]=o)},n=o=r=function(n,o,i,l,c){if("string"==typeof n)return a[n]?a[n](o):y(s(n,_(o)).f);if(!n.splice){if((u=n).deps&&r(u.deps,u.callback),!o)return;o.splice?(n=o,o=i,i=null):n=e}return o=o||function(){},"function"==typeof i&&(i=l,l=c),l?t(e,n,o,i):setTimeout((function(){t(e,n,o,i)}),4),r},r.config=function(e){return r(e)},n._defined=l,(i=function(e,t,n){if("string"!=typeof e)throw new Error("See almond README: incorrect module build, no module name");t.splice||(n=t,t=[]),m(l,e)||m(c,e)||(c[e]=[e,t,n])}).amd={jQuery:!0}}(),t.requirejs=n,t.require=o,t.define=i),t.define("almond",(function(){})),t.define("jquery",[],(function(){var t=e||$;return null==t&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),t})),t.define("select2/utils",["jquery"],(function(e){var t={};function n(e){var t=e.prototype,n=[];for(var o in t)"function"==typeof t[o]&&"constructor"!==o&&n.push(o);return n}t.Extend=function(e,t){var n={}.hasOwnProperty;function o(){this.constructor=e}for(var i in t)n.call(t,i)&&(e[i]=t[i]);return o.prototype=t.prototype,e.prototype=new o,e.__super__=t.prototype,e},t.Decorate=function(e,t){var o=n(t),i=n(e);function r(){var n=Array.prototype.unshift,o=t.prototype.constructor.length,i=e.prototype.constructor;o>0&&(n.call(arguments,e.prototype.constructor),i=t.prototype.constructor),i.apply(this,arguments)}t.displayName=e.displayName,r.prototype=new function(){this.constructor=r};for(var s=0;s<i.length;s++){var a=i[s];r.prototype[a]=e.prototype[a]}for(var l=function(e){var n=function(){};e in r.prototype&&(n=r.prototype[e]);var o=t.prototype[e];return function(){return Array.prototype.unshift.call(arguments,n),o.apply(this,arguments)}},c=0;c<o.length;c++){var u=o[c];r.prototype[u]=l(u)}return r};var o=function(){this.listeners={}};o.prototype.on=function(e,t){this.listeners=this.listeners||{},e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t]},o.prototype.trigger=function(e){var t=Array.prototype.slice,n=t.call(arguments,1);this.listeners=this.listeners||{},null==n&&(n=[]),0===n.length&&n.push({}),n[0]._type=e,e in this.listeners&&this.invoke(this.listeners[e],t.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},o.prototype.invoke=function(e,t){for(var n=0,o=e.length;n<o;n++)e[n].apply(this,t)},t.Observable=o,t.generateChars=function(e){for(var t="",n=0;n<e;n++)t+=Math.floor(36*Math.random()).toString(36);return t},t.bind=function(e,t){return function(){e.apply(t,arguments)}},t._convertData=function(e){for(var t in e){var n=t.split("-"),o=e;if(1!==n.length){for(var i=0;i<n.length;i++){var r=n[i];(r=r.substring(0,1).toLowerCase()+r.substring(1))in o||(o[r]={}),i==n.length-1&&(o[r]=e[t]),o=o[r]}delete e[t]}}return e},t.hasScroll=function(t,n){var o=e(n),i=n.style.overflowX,r=n.style.overflowY;return(i!==r||"hidden"!==r&&"visible"!==r)&&("scroll"===i||"scroll"===r||o.innerHeight()<n.scrollHeight||o.innerWidth()<n.scrollWidth)},t.escapeMarkup=function(e){var t={"\\":"\","&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return"string"!=typeof e?e:String(e).replace(/[&<>"'\/\\]/g,(function(e){return t[e]}))},t.appendMany=function(t,n){if("1.7"===e.fn.jquery.substr(0,3)){var o=e();e.map(n,(function(e){o=o.add(e)})),n=o}t.append(n)},t.__cache={};var i=0;return t.GetUniqueElementId=function(e){var t=e.getAttribute("data-select2-id");return null==t&&(e.id?(t=e.id,e.setAttribute("data-select2-id",t)):(e.setAttribute("data-select2-id",++i),t=i.toString())),t},t.StoreData=function(e,n,o){var i=t.GetUniqueElementId(e);t.__cache[i]||(t.__cache[i]={}),t.__cache[i][n]=o},t.GetData=function(n,o){var i=t.GetUniqueElementId(n);return o?t.__cache[i]&&null!=t.__cache[i][o]?t.__cache[i][o]:e(n).data(o):t.__cache[i]},t.RemoveData=function(e){var n=t.GetUniqueElementId(e);null!=t.__cache[n]&&delete t.__cache[n],e.removeAttribute("data-select2-id")},t})),t.define("select2/results",["jquery","./utils"],(function(e,t){function n(e,t,o){this.$element=e,this.data=o,this.options=t,n.__super__.constructor.call(this)}return t.Extend(n,t.Observable),n.prototype.render=function(){var t=e('<ul class="select2-results__options" role="listbox"></ul>');return this.options.get("multiple")&&t.attr("aria-multiselectable","true"),this.$results=t,t},n.prototype.clear=function(){this.$results.empty()},n.prototype.displayMessage=function(t){var n=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var o=e('<li role="alert" aria-live="assertive" class="select2-results__option"></li>'),i=this.options.get("translations").get(t.message);o.append(n(i(t.args))),o[0].className+=" select2-results__message",this.$results.append(o)},n.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},n.prototype.append=function(e){this.hideLoading();var t=[];if(null!=e.results&&0!==e.results.length){e.results=this.sort(e.results);for(var n=0;n<e.results.length;n++){var o=e.results[n],i=this.option(o);t.push(i)}this.$results.append(t)}else 0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"})},n.prototype.position=function(e,t){t.find(".select2-results").append(e)},n.prototype.sort=function(e){return this.options.get("sorter")(e)},n.prototype.highlightFirstItem=function(){var e=this.$results.find(".select2-results__option[aria-selected]"),t=e.filter("[aria-selected=true]");t.length>0?t.first().trigger("mouseenter"):e.first().trigger("mouseenter"),this.ensureHighlightVisible()},n.prototype.setClasses=function(){var n=this;this.data.current((function(o){var i=e.map(o,(function(e){return e.id.toString()}));n.$results.find(".select2-results__option[aria-selected]").each((function(){var n=e(this),o=t.GetData(this,"data"),r=""+o.id;null!=o.element&&o.element.selected||null==o.element&&e.inArray(r,i)>-1?n.attr("aria-selected","true"):n.attr("aria-selected","false")}))}))},n.prototype.showLoading=function(e){this.hideLoading();var t={disabled:!0,loading:!0,text:this.options.get("translations").get("searching")(e)},n=this.option(t);n.className+=" loading-results",this.$results.prepend(n)},n.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},n.prototype.option=function(n){var o=document.createElement("li");o.className="select2-results__option";var i={role:"option","aria-selected":"false"},r=window.Element.prototype.matches||window.Element.prototype.msMatchesSelector||window.Element.prototype.webkitMatchesSelector;for(var s in(null!=n.element&&r.call(n.element,":disabled")||null==n.element&&n.disabled)&&(delete i["aria-selected"],i["aria-disabled"]="true"),null==n.id&&delete i["aria-selected"],null!=n._resultId&&(o.id=n._resultId),n.title&&(o.title=n.title),n.children&&(i.role="group",i["aria-label"]=n.text,delete i["aria-selected"]),i){var a=i[s];o.setAttribute(s,a)}if(n.children){var l=e(o),c=document.createElement("strong");c.className="select2-results__group",e(c),this.template(n,c);for(var u=[],d=0;d<n.children.length;d++){var p=n.children[d],h=this.option(p);u.push(h)}var f=e("<ul></ul>",{class:"select2-results__options select2-results__options--nested"});f.append(u),l.append(c),l.append(f)}else this.template(n,o);return t.StoreData(o,"data",n),o},n.prototype.bind=function(n,o){var i=this,r=n.id+"-results";this.$results.attr("id",r),n.on("results:all",(function(e){i.clear(),i.append(e.data),n.isOpen()&&(i.setClasses(),i.highlightFirstItem())})),n.on("results:append",(function(e){i.append(e.data),n.isOpen()&&i.setClasses()})),n.on("query",(function(e){i.hideMessages(),i.showLoading(e)})),n.on("select",(function(){n.isOpen()&&(i.setClasses(),i.options.get("scrollAfterSelect")&&i.highlightFirstItem())})),n.on("unselect",(function(){n.isOpen()&&(i.setClasses(),i.options.get("scrollAfterSelect")&&i.highlightFirstItem())})),n.on("open",(function(){i.$results.attr("aria-expanded","true"),i.$results.attr("aria-hidden","false"),i.setClasses(),i.ensureHighlightVisible()})),n.on("close",(function(){i.$results.attr("aria-expanded","false"),i.$results.attr("aria-hidden","true"),i.$results.removeAttr("aria-activedescendant")})),n.on("results:toggle",(function(){var e=i.getHighlightedResults();0!==e.length&&e.trigger("mouseup")})),n.on("results:select",(function(){var e=i.getHighlightedResults();if(0!==e.length){var n=t.GetData(e[0],"data");"true"==e.attr("aria-selected")?i.trigger("close",{}):i.trigger("select",{data:n})}})),n.on("results:previous",(function(){var e=i.getHighlightedResults(),t=i.$results.find("[aria-selected]"),n=t.index(e);if(!(n<=0)){var o=n-1;0===e.length&&(o=0);var r=t.eq(o);r.trigger("mouseenter");var s=i.$results.offset().top,a=r.offset().top,l=i.$results.scrollTop()+(a-s);0===o?i.$results.scrollTop(0):a-s<0&&i.$results.scrollTop(l)}})),n.on("results:next",(function(){var e=i.getHighlightedResults(),t=i.$results.find("[aria-selected]"),n=t.index(e)+1;if(!(n>=t.length)){var o=t.eq(n);o.trigger("mouseenter");var r=i.$results.offset().top+i.$results.outerHeight(!1),s=o.offset().top+o.outerHeight(!1),a=i.$results.scrollTop()+s-r;0===n?i.$results.scrollTop(0):s>r&&i.$results.scrollTop(a)}})),n.on("results:focus",(function(e){e.element.addClass("select2-results__option--highlighted")})),n.on("results:message",(function(e){i.displayMessage(e)})),e.fn.mousewheel&&this.$results.on("mousewheel",(function(e){var t=i.$results.scrollTop(),n=i.$results.get(0).scrollHeight-t+e.deltaY,o=e.deltaY>0&&t-e.deltaY<=0,r=e.deltaY<0&&n<=i.$results.height();o?(i.$results.scrollTop(0),e.preventDefault(),e.stopPropagation()):r&&(i.$results.scrollTop(i.$results.get(0).scrollHeight-i.$results.height()),e.preventDefault(),e.stopPropagation())})),this.$results.on("mouseup",".select2-results__option[aria-selected]",(function(n){var o=e(this),r=t.GetData(this,"data");"true"!==o.attr("aria-selected")?i.trigger("select",{originalEvent:n,data:r}):i.options.get("multiple")?i.trigger("unselect",{originalEvent:n,data:r}):i.trigger("close",{})})),this.$results.on("mouseenter",".select2-results__option[aria-selected]",(function(n){var o=t.GetData(this,"data");i.getHighlightedResults().removeClass("select2-results__option--highlighted"),i.trigger("results:focus",{data:o,element:e(this)})}))},n.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},n.prototype.destroy=function(){this.$results.remove()},n.prototype.ensureHighlightVisible=function(){var e=this.getHighlightedResults();if(0!==e.length){var t=this.$results.find("[aria-selected]").index(e),n=this.$results.offset().top,o=e.offset().top,i=this.$results.scrollTop()+(o-n),r=o-n;i-=2*e.outerHeight(!1),t<=2?this.$results.scrollTop(0):(r>this.$results.outerHeight()||r<0)&&this.$results.scrollTop(i)}},n.prototype.template=function(t,n){var o=this.options.get("templateResult"),i=this.options.get("escapeMarkup"),r=o(t,n);null==r?n.style.display="none":"string"==typeof r?n.innerHTML=i(r):e(n).append(r)},n})),t.define("select2/keys",[],(function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}})),t.define("select2/selection/base",["jquery","../utils","../keys"],(function(e,t,n){function o(e,t){this.$element=e,this.options=t,o.__super__.constructor.call(this)}return t.Extend(o,t.Observable),o.prototype.render=function(){var n=e('<span class="select2-selection" role="combobox" aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=t.GetData(this.$element[0],"old-tabindex")?this._tabindex=t.GetData(this.$element[0],"old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),n.attr("title",this.$element.attr("title")),n.attr("tabindex",this._tabindex),n.attr("aria-disabled","false"),this.$selection=n,n},o.prototype.bind=function(e,t){var o=this,i=e.id+"-results";this.container=e,this.$selection.on("focus",(function(e){o.trigger("focus",e)})),this.$selection.on("blur",(function(e){o._handleBlur(e)})),this.$selection.on("keydown",(function(e){o.trigger("keypress",e),e.which===n.SPACE&&e.preventDefault()})),e.on("results:focus",(function(e){o.$selection.attr("aria-activedescendant",e.data._resultId)})),e.on("selection:update",(function(e){o.update(e.data)})),e.on("open",(function(){o.$selection.attr("aria-expanded","true"),o.$selection.attr("aria-owns",i),o._attachCloseHandler(e)})),e.on("close",(function(){o.$selection.attr("aria-expanded","false"),o.$selection.removeAttr("aria-activedescendant"),o.$selection.removeAttr("aria-owns"),o.$selection.trigger("focus"),o._detachCloseHandler(e)})),e.on("enable",(function(){o.$selection.attr("tabindex",o._tabindex),o.$selection.attr("aria-disabled","false")})),e.on("disable",(function(){o.$selection.attr("tabindex","-1"),o.$selection.attr("aria-disabled","true")}))},o.prototype._handleBlur=function(t){var n=this;window.setTimeout((function(){document.activeElement==n.$selection[0]||e.contains(n.$selection[0],document.activeElement)||n.trigger("blur",t)}),1)},o.prototype._attachCloseHandler=function(n){e(document.body).on("mousedown.select2."+n.id,(function(n){var o=e(n.target).closest(".select2");e(".select2.select2-container--open").each((function(){this!=o[0]&&t.GetData(this,"element").select2("close")}))}))},o.prototype._detachCloseHandler=function(t){e(document.body).off("mousedown.select2."+t.id)},o.prototype.position=function(e,t){t.find(".selection").append(e)},o.prototype.destroy=function(){this._detachCloseHandler(this.container)},o.prototype.update=function(e){throw new Error("The `update` method must be defined in child classes.")},o.prototype.isEnabled=function(){return!this.isDisabled()},o.prototype.isDisabled=function(){return this.options.get("disabled")},o})),t.define("select2/selection/single",["jquery","./base","../utils","../keys"],(function(e,t,n,o){function i(){i.__super__.constructor.apply(this,arguments)}return n.Extend(i,t),i.prototype.render=function(){var e=i.__super__.render.call(this);return e.addClass("select2-selection--single"),e.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),e},i.prototype.bind=function(e,t){var n=this;i.__super__.bind.apply(this,arguments);var o=e.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",o).attr("role","textbox").attr("aria-readonly","true"),this.$selection.attr("aria-labelledby",o),this.$selection.on("mousedown",(function(e){1===e.which&&n.trigger("toggle",{originalEvent:e})})),this.$selection.on("focus",(function(e){})),this.$selection.on("blur",(function(e){})),e.on("focus",(function(t){e.isOpen()||n.$selection.trigger("focus")}))},i.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},i.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},i.prototype.selectionContainer=function(){return e("<span></span>")},i.prototype.update=function(e){if(0!==e.length){var t=e[0],n=this.$selection.find(".select2-selection__rendered"),o=this.display(t,n);n.empty().append(o);var i=t.title||t.text;i?n.attr("title",i):n.removeAttr("title")}else this.clear()},i})),t.define("select2/selection/multiple",["jquery","./base","../utils"],(function(e,t,n){function o(e,t){o.__super__.constructor.apply(this,arguments)}return n.Extend(o,t),o.prototype.render=function(){var e=o.__super__.render.call(this);return e.addClass("select2-selection--multiple"),e.html('<ul class="select2-selection__rendered"></ul>'),e},o.prototype.bind=function(t,i){var r=this;o.__super__.bind.apply(this,arguments),this.$selection.on("click",(function(e){r.trigger("toggle",{originalEvent:e})})),this.$selection.on("click",".select2-selection__choice__remove",(function(t){if(!r.isDisabled()){var o=e(this).parent(),i=n.GetData(o[0],"data");r.trigger("unselect",{originalEvent:t,data:i})}}))},o.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},o.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},o.prototype.selectionContainer=function(){return e('<li class="select2-selection__choice"><span class="select2-selection__choice__remove" role="presentation">×</span></li>')},o.prototype.update=function(e){if(this.clear(),0!==e.length){for(var t=[],o=0;o<e.length;o++){var i=e[o],r=this.selectionContainer(),s=this.display(i,r);r.append(s);var a=i.title||i.text;a&&r.attr("title",a),n.StoreData(r[0],"data",i),t.push(r)}var l=this.$selection.find(".select2-selection__rendered");n.appendMany(l,t)}},o})),t.define("select2/selection/placeholder",["../utils"],(function(e){function t(e,t,n){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n)}return t.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},t.prototype.createPlaceholder=function(e,t){var n=this.selectionContainer();return n.html(this.display(t)),n.addClass("select2-selection__placeholder").removeClass("select2-selection__choice"),n},t.prototype.update=function(e,t){var n=1==t.length&&t[0].id!=this.placeholder.id;if(t.length>1||n)return e.call(this,t);this.clear();var o=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(o)},t})),t.define("select2/selection/allowClear",["jquery","../keys","../utils"],(function(e,t,n){function o(){}return o.prototype.bind=function(e,t,n){var o=this;e.call(this,t,n),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",(function(e){o._handleClear(e)})),t.on("keypress",(function(e){o._handleKeyboardClear(e,t)}))},o.prototype._handleClear=function(e,t){if(!this.isDisabled()){var o=this.$selection.find(".select2-selection__clear");if(0!==o.length){t.stopPropagation();var i=n.GetData(o[0],"data"),r=this.$element.val();this.$element.val(this.placeholder.id);var s={data:i};if(this.trigger("clear",s),s.prevented)this.$element.val(r);else{for(var a=0;a<i.length;a++)if(s={data:i[a]},this.trigger("unselect",s),s.prevented)return void this.$element.val(r);this.$element.trigger("input").trigger("change"),this.trigger("toggle",{})}}}},o.prototype._handleKeyboardClear=function(e,n,o){o.isOpen()||n.which!=t.DELETE&&n.which!=t.BACKSPACE||this._handleClear(n)},o.prototype.update=function(t,o){if(t.call(this,o),!(this.$selection.find(".select2-selection__placeholder").length>0||0===o.length)){var i=this.options.get("translations").get("removeAllItems"),r=e('<span class="select2-selection__clear" title="'+i()+'">×</span>');n.StoreData(r[0],"data",o),this.$selection.find(".select2-selection__rendered").prepend(r)}},o})),t.define("select2/selection/search",["jquery","../utils","../keys"],(function(e,t,n){function o(e,t,n){e.call(this,t,n)}return o.prototype.render=function(t){var n=e('<li class="select2-search select2-search--inline"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></li>');this.$searchContainer=n,this.$search=n.find("input");var o=t.call(this);return this._transferTabIndex(),o},o.prototype.bind=function(e,o,i){var r=this,s=o.id+"-results";e.call(this,o,i),o.on("open",(function(){r.$search.attr("aria-controls",s),r.$search.trigger("focus")})),o.on("close",(function(){r.$search.val(""),r.$search.removeAttr("aria-controls"),r.$search.removeAttr("aria-activedescendant"),r.$search.trigger("focus")})),o.on("enable",(function(){r.$search.prop("disabled",!1),r._transferTabIndex()})),o.on("disable",(function(){r.$search.prop("disabled",!0)})),o.on("focus",(function(e){r.$search.trigger("focus")})),o.on("results:focus",(function(e){e.data._resultId?r.$search.attr("aria-activedescendant",e.data._resultId):r.$search.removeAttr("aria-activedescendant")})),this.$selection.on("focusin",".select2-search--inline",(function(e){r.trigger("focus",e)})),this.$selection.on("focusout",".select2-search--inline",(function(e){r._handleBlur(e)})),this.$selection.on("keydown",".select2-search--inline",(function(e){if(e.stopPropagation(),r.trigger("keypress",e),r._keyUpPrevented=e.isDefaultPrevented(),e.which===n.BACKSPACE&&""===r.$search.val()){var o=r.$searchContainer.prev(".select2-selection__choice");if(o.length>0){var i=t.GetData(o[0],"data");r.searchRemoveChoice(i),e.preventDefault()}}})),this.$selection.on("click",".select2-search--inline",(function(e){r.$search.val()&&e.stopPropagation()}));var a=document.documentMode,l=a&&a<=11;this.$selection.on("input.searchcheck",".select2-search--inline",(function(e){l?r.$selection.off("input.search input.searchcheck"):r.$selection.off("keyup.search")})),this.$selection.on("keyup.search input.search",".select2-search--inline",(function(e){if(l&&"input"===e.type)r.$selection.off("input.search input.searchcheck");else{var t=e.which;t!=n.SHIFT&&t!=n.CTRL&&t!=n.ALT&&t!=n.TAB&&r.handleSearch(e)}}))},o.prototype._transferTabIndex=function(e){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},o.prototype.createPlaceholder=function(e,t){this.$search.attr("placeholder",t.text)},o.prototype.update=function(e,t){var n=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),e.call(this,t),this.$selection.find(".select2-selection__rendered").append(this.$searchContainer),this.resizeSearch(),n&&this.$search.trigger("focus")},o.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},o.prototype.searchRemoveChoice=function(e,t){this.trigger("unselect",{data:t}),this.$search.val(t.text),this.handleSearch()},o.prototype.resizeSearch=function(){this.$search.css("width","25px");var e;e=""!==this.$search.attr("placeholder")?this.$selection.find(".select2-selection__rendered").width():.75*(this.$search.val().length+1)+"em",this.$search.css("width",e)},o})),t.define("select2/selection/eventRelay",["jquery"],(function(e){function t(){}return t.prototype.bind=function(t,n,o){var i=this,r=["open","opening","close","closing","select","selecting","unselect","unselecting","clear","clearing"],s=["opening","closing","selecting","unselecting","clearing"];t.call(this,n,o),n.on("*",(function(t,n){if(-1!==e.inArray(t,r)){n=n||{};var o=e.Event("select2:"+t,{params:n});i.$element.trigger(o),-1!==e.inArray(t,s)&&(n.prevented=o.isDefaultPrevented())}}))},t})),t.define("select2/translation",["jquery","require"],(function(e,t){function n(e){this.dict=e||{}}return n.prototype.all=function(){return this.dict},n.prototype.get=function(e){return this.dict[e]},n.prototype.extend=function(t){this.dict=e.extend({},t.all(),this.dict)},n._cache={},n.loadPath=function(e){if(!(e in n._cache)){var o=t(e);n._cache[e]=o}return new n(n._cache[e])},n})),t.define("select2/diacritics",[],(function(){return{"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Œ":"OE","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","œ":"oe","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ώ":"ω","ς":"σ","’":"'"}})),t.define("select2/data/base",["../utils"],(function(e){function t(e,n){t.__super__.constructor.call(this)}return e.Extend(t,e.Observable),t.prototype.current=function(e){throw new Error("The `current` method must be defined in child classes.")},t.prototype.query=function(e,t){throw new Error("The `query` method must be defined in child classes.")},t.prototype.bind=function(e,t){},t.prototype.destroy=function(){},t.prototype.generateResultId=function(t,n){var o=t.id+"-result-";return o+=e.generateChars(4),null!=n.id?o+="-"+n.id.toString():o+="-"+e.generateChars(4),o},t})),t.define("select2/data/select",["./base","../utils","jquery"],(function(e,t,n){function o(e,t){this.$element=e,this.options=t,o.__super__.constructor.call(this)}return t.Extend(o,e),o.prototype.current=function(e){var t=[],o=this;this.$element.find(":selected").each((function(){var e=n(this),i=o.item(e);t.push(i)})),e(t)},o.prototype.select=function(e){var t=this;if(e.selected=!0,n(e.element).is("option"))return e.element.selected=!0,void this.$element.trigger("input").trigger("change");if(this.$element.prop("multiple"))this.current((function(o){var i=[];(e=[e]).push.apply(e,o);for(var r=0;r<e.length;r++){var s=e[r].id;-1===n.inArray(s,i)&&i.push(s)}t.$element.val(i),t.$element.trigger("input").trigger("change")}));else{var o=e.id;this.$element.val(o),this.$element.trigger("input").trigger("change")}},o.prototype.unselect=function(e){var t=this;if(this.$element.prop("multiple")){if(e.selected=!1,n(e.element).is("option"))return e.element.selected=!1,void this.$element.trigger("input").trigger("change");this.current((function(o){for(var i=[],r=0;r<o.length;r++){var s=o[r].id;s!==e.id&&-1===n.inArray(s,i)&&i.push(s)}t.$element.val(i),t.$element.trigger("input").trigger("change")}))}},o.prototype.bind=function(e,t){var n=this;this.container=e,e.on("select",(function(e){n.select(e.data)})),e.on("unselect",(function(e){n.unselect(e.data)}))},o.prototype.destroy=function(){this.$element.find("*").each((function(){t.RemoveData(this)}))},o.prototype.query=function(e,t){var o=[],i=this;this.$element.children().each((function(){var t=n(this);if(t.is("option")||t.is("optgroup")){var r=i.item(t),s=i.matches(e,r);null!==s&&o.push(s)}})),t({results:o})},o.prototype.addOptions=function(e){t.appendMany(this.$element,e)},o.prototype.option=function(e){var o;e.children?(o=document.createElement("optgroup")).label=e.text:void 0!==(o=document.createElement("option")).textContent?o.textContent=e.text:o.innerText=e.text,void 0!==e.id&&(o.value=e.id),e.disabled&&(o.disabled=!0),e.selected&&(o.selected=!0),e.title&&(o.title=e.title);var i=n(o),r=this._normalizeItem(e);return r.element=o,t.StoreData(o,"data",r),i},o.prototype.item=function(e){var o={};if(null!=(o=t.GetData(e[0],"data")))return o;if(e.is("option"))o={id:e.val(),text:e.text(),disabled:e.prop("disabled"),selected:e.prop("selected"),title:e.prop("title")};else if(e.is("optgroup")){o={text:e.prop("label"),children:[],title:e.prop("title")};for(var i=e.children("option"),r=[],s=0;s<i.length;s++){var a=n(i[s]),l=this.item(a);r.push(l)}o.children=r}return(o=this._normalizeItem(o)).element=e[0],t.StoreData(e[0],"data",o),o},o.prototype._normalizeItem=function(e){e!==Object(e)&&(e={id:e,text:e});return null!=(e=n.extend({},{text:""},e)).id&&(e.id=e.id.toString()),null!=e.text&&(e.text=e.text.toString()),null==e._resultId&&e.id&&null!=this.container&&(e._resultId=this.generateResultId(this.container,e)),n.extend({},{selected:!1,disabled:!1},e)},o.prototype.matches=function(e,t){return this.options.get("matcher")(e,t)},o})),t.define("select2/data/array",["./select","../utils","jquery"],(function(e,t,n){function o(e,t){this._dataToConvert=t.get("data")||[],o.__super__.constructor.call(this,e,t)}return t.Extend(o,e),o.prototype.bind=function(e,t){o.__super__.bind.call(this,e,t),this.addOptions(this.convertToOptions(this._dataToConvert))},o.prototype.select=function(e){var t=this.$element.find("option").filter((function(t,n){return n.value==e.id.toString()}));0===t.length&&(t=this.option(e),this.addOptions(t)),o.__super__.select.call(this,e)},o.prototype.convertToOptions=function(e){var o=this,i=this.$element.find("option"),r=i.map((function(){return o.item(n(this)).id})).get(),s=[];function a(e){return function(){return n(this).val()==e.id}}for(var l=0;l<e.length;l++){var c=this._normalizeItem(e[l]);if(n.inArray(c.id,r)>=0){var u=i.filter(a(c)),d=this.item(u),p=n.extend(!0,{},c,d),h=this.option(p);u.replaceWith(h)}else{var f=this.option(c);if(c.children){var m=this.convertToOptions(c.children);t.appendMany(f,m)}s.push(f)}}return s},o})),t.define("select2/data/ajax",["./array","../utils","jquery"],(function(e,t,n){function o(e,t){this.ajaxOptions=this._applyDefaults(t.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),o.__super__.constructor.call(this,e,t)}return t.Extend(o,e),o.prototype._applyDefaults=function(e){var t={data:function(e){return n.extend({},e,{q:e.term})},transport:function(e,t,o){var i=n.ajax(e);return i.then(t),i.fail(o),i}};return n.extend({},t,e,!0)},o.prototype.processResults=function(e){return e},o.prototype.query=function(e,t){var o=this;null!=this._request&&(n.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var i=n.extend({type:"GET"},this.ajaxOptions);function r(){var r=i.transport(i,(function(i){var r=o.processResults(i,e);o.options.get("debug")&&window.console&&console.error&&(r&&r.results&&n.isArray(r.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),t(r)}),(function(){(!("status"in r)||0!==r.status&&"0"!==r.status)&&o.trigger("results:message",{message:"errorLoading"})}));o._request=r}"function"==typeof i.url&&(i.url=i.url.call(this.$element,e)),"function"==typeof i.data&&(i.data=i.data.call(this.$element,e)),this.ajaxOptions.delay&&null!=e.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(r,this.ajaxOptions.delay)):r()},o})),t.define("select2/data/tags",["jquery"],(function(e){function t(t,n,o){var i=o.get("tags"),r=o.get("createTag");void 0!==r&&(this.createTag=r);var s=o.get("insertTag");if(void 0!==s&&(this.insertTag=s),t.call(this,n,o),e.isArray(i))for(var a=0;a<i.length;a++){var l=i[a],c=this._normalizeItem(l),u=this.option(c);this.$element.append(u)}}return t.prototype.query=function(e,t,n){var o=this;this._removeOldTags(),null!=t.term&&null==t.page?e.call(this,t,(function e(i,r){for(var s=i.results,a=0;a<s.length;a++){var l=s[a],c=null!=l.children&&!e({results:l.children},!0);if((l.text||"").toUpperCase()===(t.term||"").toUpperCase()||c)return!r&&(i.data=s,void n(i))}if(r)return!0;var u=o.createTag(t);if(null!=u){var d=o.option(u);d.attr("data-select2-tag",!0),o.addOptions([d]),o.insertTag(s,u)}i.results=s,n(i)})):e.call(this,t,n)},t.prototype.createTag=function(t,n){var o=e.trim(n.term);return""===o?null:{id:o,text:o}},t.prototype.insertTag=function(e,t,n){t.unshift(n)},t.prototype._removeOldTags=function(t){this.$element.find("option[data-select2-tag]").each((function(){this.selected||e(this).remove()}))},t})),t.define("select2/data/tokenizer",["jquery"],(function(e){function t(e,t,n){var o=n.get("tokenizer");void 0!==o&&(this.tokenizer=o),e.call(this,t,n)}return t.prototype.bind=function(e,t,n){e.call(this,t,n),this.$search=t.dropdown.$search||t.selection.$search||n.find(".select2-search__field")},t.prototype.query=function(t,n,o){var i=this;n.term=n.term||"";var r=this.tokenizer(n,this.options,(function(t){var n=i._normalizeItem(t);if(!i.$element.find("option").filter((function(){return e(this).val()===n.id})).length){var o=i.option(n);o.attr("data-select2-tag",!0),i._removeOldTags(),i.addOptions([o])}!function(e){i.trigger("select",{data:e})}(n)}));r.term!==n.term&&(this.$search.length&&(this.$search.val(r.term),this.$search.trigger("focus")),n.term=r.term),t.call(this,n,o)},t.prototype.tokenizer=function(t,n,o,i){for(var r=o.get("tokenSeparators")||[],s=n.term,a=0,l=this.createTag||function(e){return{id:e.term,text:e.term}};a<s.length;){var c=s[a];if(-1!==e.inArray(c,r)){var u=s.substr(0,a),d=l(e.extend({},n,{term:u}));null!=d?(i(d),s=s.substr(a+1)||"",a=0):a++}else a++}return{term:s}},t})),t.define("select2/data/minimumInputLength",[],(function(){function e(e,t,n){this.minimumInputLength=n.get("minimumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.term=t.term||"",t.term.length<this.minimumInputLength?this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e})),t.define("select2/data/maximumInputLength",[],(function(){function e(e,t,n){this.maximumInputLength=n.get("maximumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.term=t.term||"",this.maximumInputLength>0&&t.term.length>this.maximumInputLength?this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e})),t.define("select2/data/maximumSelectionLength",[],(function(){function e(e,t,n){this.maximumSelectionLength=n.get("maximumSelectionLength"),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){var o=this;e.call(this,t,n),t.on("select",(function(){o._checkIfMaximumSelected()}))},e.prototype.query=function(e,t,n){var o=this;this._checkIfMaximumSelected((function(){e.call(o,t,n)}))},e.prototype._checkIfMaximumSelected=function(e,t){var n=this;this.current((function(e){var o=null!=e?e.length:0;n.maximumSelectionLength>0&&o>=n.maximumSelectionLength?n.trigger("results:message",{message:"maximumSelected",args:{maximum:n.maximumSelectionLength}}):t&&t()}))},e})),t.define("select2/dropdown",["jquery","./utils"],(function(e,t){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return t.Extend(n,t.Observable),n.prototype.render=function(){var t=e('<span class="select2-dropdown"><span class="select2-results"></span></span>');return t.attr("dir",this.options.get("dir")),this.$dropdown=t,t},n.prototype.bind=function(){},n.prototype.position=function(e,t){},n.prototype.destroy=function(){this.$dropdown.remove()},n})),t.define("select2/dropdown/search",["jquery","../utils"],(function(e,t){function n(){}return n.prototype.render=function(t){var n=t.call(this),o=e('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></span>');return this.$searchContainer=o,this.$search=o.find("input"),n.prepend(o),n},n.prototype.bind=function(t,n,o){var i=this,r=n.id+"-results";t.call(this,n,o),this.$search.on("keydown",(function(e){i.trigger("keypress",e),i._keyUpPrevented=e.isDefaultPrevented()})),this.$search.on("input",(function(t){e(this).off("keyup")})),this.$search.on("keyup input",(function(e){i.handleSearch(e)})),n.on("open",(function(){i.$search.attr("tabindex",0),i.$search.attr("aria-controls",r),i.$search.trigger("focus"),window.setTimeout((function(){i.$search.trigger("focus")}),0)})),n.on("close",(function(){i.$search.attr("tabindex",-1),i.$search.removeAttr("aria-controls"),i.$search.removeAttr("aria-activedescendant"),i.$search.val(""),i.$search.trigger("blur")})),n.on("focus",(function(){n.isOpen()||i.$search.trigger("focus")})),n.on("results:all",(function(e){null!=e.query.term&&""!==e.query.term||(i.showSearch(e)?i.$searchContainer.removeClass("select2-search--hide"):i.$searchContainer.addClass("select2-search--hide"))})),n.on("results:focus",(function(e){e.data._resultId?i.$search.attr("aria-activedescendant",e.data._resultId):i.$search.removeAttr("aria-activedescendant")}))},n.prototype.handleSearch=function(e){if(!this._keyUpPrevented){var t=this.$search.val();this.trigger("query",{term:t})}this._keyUpPrevented=!1},n.prototype.showSearch=function(e,t){return!0},n})),t.define("select2/dropdown/hidePlaceholder",[],(function(){function e(e,t,n,o){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n,o)}return e.prototype.append=function(e,t){t.results=this.removePlaceholder(t.results),e.call(this,t)},e.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},e.prototype.removePlaceholder=function(e,t){for(var n=t.slice(0),o=t.length-1;o>=0;o--){var i=t[o];this.placeholder.id===i.id&&n.splice(o,1)}return n},e})),t.define("select2/dropdown/infiniteScroll",["jquery"],(function(e){function t(e,t,n,o){this.lastParams={},e.call(this,t,n,o),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return t.prototype.append=function(e,t){this.$loadingMore.remove(),this.loading=!1,e.call(this,t),this.showLoadingMore(t)&&(this.$results.append(this.$loadingMore),this.loadMoreIfNeeded())},t.prototype.bind=function(e,t,n){var o=this;e.call(this,t,n),t.on("query",(function(e){o.lastParams=e,o.loading=!0})),t.on("query:append",(function(e){o.lastParams=e,o.loading=!0})),this.$results.on("scroll",this.loadMoreIfNeeded.bind(this))},t.prototype.loadMoreIfNeeded=function(){var t=e.contains(document.documentElement,this.$loadingMore[0]);!this.loading&&t&&this.$results.offset().top+this.$results.outerHeight(!1)+50>=this.$loadingMore.offset().top+this.$loadingMore.outerHeight(!1)&&this.loadMore()},t.prototype.loadMore=function(){this.loading=!0;var t=e.extend({},{page:1},this.lastParams);t.page++,this.trigger("query:append",t)},t.prototype.showLoadingMore=function(e,t){return t.pagination&&t.pagination.more},t.prototype.createLoadingMore=function(){var t=e('<li class="select2-results__option select2-results__option--load-more"role="option" aria-disabled="true"></li>'),n=this.options.get("translations").get("loadingMore");return t.html(n(this.lastParams)),t},t})),t.define("select2/dropdown/attachBody",["jquery","../utils"],(function(e,t){function n(t,n,o){this.$dropdownParent=e(o.get("dropdownParent")||document.body),t.call(this,n,o)}return n.prototype.bind=function(e,t,n){var o=this;e.call(this,t,n),t.on("open",(function(){o._showDropdown(),o._attachPositioningHandler(t),o._bindContainerResultHandlers(t)})),t.on("close",(function(){o._hideDropdown(),o._detachPositioningHandler(t)})),this.$dropdownContainer.on("mousedown",(function(e){e.stopPropagation()}))},n.prototype.destroy=function(e){e.call(this),this.$dropdownContainer.remove()},n.prototype.position=function(e,t,n){t.attr("class",n.attr("class")),t.removeClass("select2"),t.addClass("select2-container--open"),t.css({position:"absolute",top:-999999}),this.$container=n},n.prototype.render=function(t){var n=e("<span></span>"),o=t.call(this);return n.append(o),this.$dropdownContainer=n,n},n.prototype._hideDropdown=function(e){this.$dropdownContainer.detach()},n.prototype._bindContainerResultHandlers=function(e,t){if(!this._containerResultsHandlersBound){var n=this;t.on("results:all",(function(){n._positionDropdown(),n._resizeDropdown()})),t.on("results:append",(function(){n._positionDropdown(),n._resizeDropdown()})),t.on("results:message",(function(){n._positionDropdown(),n._resizeDropdown()})),t.on("select",(function(){n._positionDropdown(),n._resizeDropdown()})),t.on("unselect",(function(){n._positionDropdown(),n._resizeDropdown()})),this._containerResultsHandlersBound=!0}},n.prototype._attachPositioningHandler=function(n,o){var i=this,r="scroll.select2."+o.id,s="resize.select2."+o.id,a="orientationchange.select2."+o.id,l=this.$container.parents().filter(t.hasScroll);l.each((function(){t.StoreData(this,"select2-scroll-position",{x:e(this).scrollLeft(),y:e(this).scrollTop()})})),l.on(r,(function(n){var o=t.GetData(this,"select2-scroll-position");e(this).scrollTop(o.y)})),e(window).on(r+" "+s+" "+a,(function(e){i._positionDropdown(),i._resizeDropdown()}))},n.prototype._detachPositioningHandler=function(n,o){var i="scroll.select2."+o.id,r="resize.select2."+o.id,s="orientationchange.select2."+o.id;this.$container.parents().filter(t.hasScroll).off(i),e(window).off(i+" "+r+" "+s)},n.prototype._positionDropdown=function(){var t=e(window),n=this.$dropdown.hasClass("select2-dropdown--above"),o=this.$dropdown.hasClass("select2-dropdown--below"),i=null,r=this.$container.offset();r.bottom=r.top+this.$container.outerHeight(!1);var s={height:this.$container.outerHeight(!1)};s.top=r.top,s.bottom=r.top+s.height;var a=this.$dropdown.outerHeight(!1),l=t.scrollTop(),c=t.scrollTop()+t.height(),u=l<r.top-a,d=c>r.bottom+a,p={left:r.left,top:s.bottom},h=this.$dropdownParent;"static"===h.css("position")&&(h=h.offsetParent());var f={top:0,left:0};(e.contains(document.body,h[0])||h[0].isConnected)&&(f=h.offset()),p.top-=f.top,p.left-=f.left,n||o||(i="below"),d||!u||n?!u&&d&&n&&(i="below"):i="above",("above"==i||n&&"below"!==i)&&(p.top=s.top-f.top-a),null!=i&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+i),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+i)),this.$dropdownContainer.css(p)},n.prototype._resizeDropdown=function(){var e={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(e.minWidth=e.width,e.position="relative",e.width="auto"),this.$dropdown.css(e)},n.prototype._showDropdown=function(e){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},n})),t.define("select2/dropdown/minimumResultsForSearch",[],(function(){function e(t){for(var n=0,o=0;o<t.length;o++){var i=t[o];i.children?n+=e(i.children):n++}return n}function t(e,t,n,o){this.minimumResultsForSearch=n.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),e.call(this,t,n,o)}return t.prototype.showSearch=function(t,n){return!(e(n.data.results)<this.minimumResultsForSearch)&&t.call(this,n)},t})),t.define("select2/dropdown/selectOnClose",["../utils"],(function(e){function t(){}return t.prototype.bind=function(e,t,n){var o=this;e.call(this,t,n),t.on("close",(function(e){o._handleSelectOnClose(e)}))},t.prototype._handleSelectOnClose=function(t,n){if(n&&null!=n.originalSelect2Event){var o=n.originalSelect2Event;if("select"===o._type||"unselect"===o._type)return}var i=this.getHighlightedResults();if(!(i.length<1)){var r=e.GetData(i[0],"data");null!=r.element&&r.element.selected||null==r.element&&r.selected||this.trigger("select",{data:r})}},t})),t.define("select2/dropdown/closeOnSelect",[],(function(){function e(){}return e.prototype.bind=function(e,t,n){var o=this;e.call(this,t,n),t.on("select",(function(e){o._selectTriggered(e)})),t.on("unselect",(function(e){o._selectTriggered(e)}))},e.prototype._selectTriggered=function(e,t){var n=t.originalEvent;n&&(n.ctrlKey||n.metaKey)||this.trigger("close",{originalEvent:n,originalSelect2Event:t})},e})),t.define("select2/i18n/en",[],(function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Please delete "+t+" character";return 1!=t&&(n+="s"),n},inputTooShort:function(e){return"Please enter "+(e.minimum-e.input.length)+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(e){var t="You can only select "+e.maximum+" item";return 1!=e.maximum&&(t+="s"),t},noResults:function(){return"No results found"},searching:function(){return"Searching…"},removeAllItems:function(){return"Remove all items"}}})),t.define("select2/defaults",["jquery","require","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./i18n/en"],(function(e,t,n,o,i,r,s,a,l,c,u,d,p,h,f,m,g,w,v,y,b,_,x,C,k,A,$,E,S){function O(){this.reset()}return O.prototype.apply=function(u){if(null==(u=e.extend(!0,{},this.defaults,u)).dataAdapter){if(null!=u.ajax?u.dataAdapter=f:null!=u.data?u.dataAdapter=h:u.dataAdapter=p,u.minimumInputLength>0&&(u.dataAdapter=c.Decorate(u.dataAdapter,w)),u.maximumInputLength>0&&(u.dataAdapter=c.Decorate(u.dataAdapter,v)),u.maximumSelectionLength>0&&(u.dataAdapter=c.Decorate(u.dataAdapter,y)),u.tags&&(u.dataAdapter=c.Decorate(u.dataAdapter,m)),null==u.tokenSeparators&&null==u.tokenizer||(u.dataAdapter=c.Decorate(u.dataAdapter,g)),null!=u.query){var d=t(u.amdBase+"compat/query");u.dataAdapter=c.Decorate(u.dataAdapter,d)}if(null!=u.initSelection){var S=t(u.amdBase+"compat/initSelection");u.dataAdapter=c.Decorate(u.dataAdapter,S)}}if(null==u.resultsAdapter&&(u.resultsAdapter=n,null!=u.ajax&&(u.resultsAdapter=c.Decorate(u.resultsAdapter,C)),null!=u.placeholder&&(u.resultsAdapter=c.Decorate(u.resultsAdapter,x)),u.selectOnClose&&(u.resultsAdapter=c.Decorate(u.resultsAdapter,$))),null==u.dropdownAdapter){if(u.multiple)u.dropdownAdapter=b;else{var O=c.Decorate(b,_);u.dropdownAdapter=O}if(0!==u.minimumResultsForSearch&&(u.dropdownAdapter=c.Decorate(u.dropdownAdapter,A)),u.closeOnSelect&&(u.dropdownAdapter=c.Decorate(u.dropdownAdapter,E)),null!=u.dropdownCssClass||null!=u.dropdownCss||null!=u.adaptDropdownCssClass){var D=t(u.amdBase+"compat/dropdownCss");u.dropdownAdapter=c.Decorate(u.dropdownAdapter,D)}u.dropdownAdapter=c.Decorate(u.dropdownAdapter,k)}if(null==u.selectionAdapter){if(u.multiple?u.selectionAdapter=i:u.selectionAdapter=o,null!=u.placeholder&&(u.selectionAdapter=c.Decorate(u.selectionAdapter,r)),u.allowClear&&(u.selectionAdapter=c.Decorate(u.selectionAdapter,s)),u.multiple&&(u.selectionAdapter=c.Decorate(u.selectionAdapter,a)),null!=u.containerCssClass||null!=u.containerCss||null!=u.adaptContainerCssClass){var P=t(u.amdBase+"compat/containerCss");u.selectionAdapter=c.Decorate(u.selectionAdapter,P)}u.selectionAdapter=c.Decorate(u.selectionAdapter,l)}u.language=this._resolveLanguage(u.language),u.language.push("en");for(var T=[],j=0;j<u.language.length;j++){var L=u.language[j];-1===T.indexOf(L)&&T.push(L)}return u.language=T,u.translations=this._processTranslations(u.language,u.debug),u},O.prototype.reset=function(){function t(e){return e.replace(/[^\u0000-\u007E]/g,(function(e){return d[e]||e}))}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:c.escapeMarkup,language:{},matcher:function n(o,i){if(""===e.trim(o.term))return i;if(i.children&&i.children.length>0){for(var r=e.extend(!0,{},i),s=i.children.length-1;s>=0;s--)null==n(o,i.children[s])&&r.children.splice(s,1);return r.children.length>0?r:n(o,r)}var a=t(i.text).toUpperCase(),l=t(o.term).toUpperCase();return a.indexOf(l)>-1?i:null},minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,scrollAfterSelect:!1,sorter:function(e){return e},templateResult:function(e){return e.text},templateSelection:function(e){return e.text},theme:"default",width:"resolve"}},O.prototype.applyFromElement=function(e,t){var n=e.language,o=this.defaults.language,i=t.prop("lang"),r=t.closest("[lang]").prop("lang"),s=Array.prototype.concat.call(this._resolveLanguage(i),this._resolveLanguage(n),this._resolveLanguage(o),this._resolveLanguage(r));return e.language=s,e},O.prototype._resolveLanguage=function(t){if(!t)return[];if(e.isEmptyObject(t))return[];if(e.isPlainObject(t))return[t];var n;n=e.isArray(t)?t:[t];for(var o=[],i=0;i<n.length;i++)if(o.push(n[i]),"string"==typeof n[i]&&n[i].indexOf("-")>0){var r=n[i].split("-")[0];o.push(r)}return o},O.prototype._processTranslations=function(t,n){for(var o=new u,i=0;i<t.length;i++){var r=new u,s=t[i];if("string"==typeof s)try{r=u.loadPath(s)}catch(e){try{s=this.defaults.amdLanguageBase+s,r=u.loadPath(s)}catch(e){n&&window.console&&console.warn&&console.warn('Select2: The language file for "'+s+'" could not be automatically loaded. A fallback will be used instead.')}}else r=e.isPlainObject(s)?new u(s):s;o.extend(r)}return o},O.prototype.set=function(t,n){var o={};o[e.camelCase(t)]=n;var i=c._convertData(o);e.extend(!0,this.defaults,i)},new O})),t.define("select2/options",["require","jquery","./defaults","./utils"],(function(e,t,n,o){function i(t,i){if(this.options=t,null!=i&&this.fromElement(i),null!=i&&(this.options=n.applyFromElement(this.options,i)),this.options=n.apply(this.options),i&&i.is("input")){var r=e(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=o.Decorate(this.options.dataAdapter,r)}}return i.prototype.fromElement=function(e){var n=["select2"];null==this.options.multiple&&(this.options.multiple=e.prop("multiple")),null==this.options.disabled&&(this.options.disabled=e.prop("disabled")),null==this.options.dir&&(e.prop("dir")?this.options.dir=e.prop("dir"):e.closest("[dir]").prop("dir")?this.options.dir=e.closest("[dir]").prop("dir"):this.options.dir="ltr"),e.prop("disabled",this.options.disabled),e.prop("multiple",this.options.multiple),o.GetData(e[0],"select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),o.StoreData(e[0],"data",o.GetData(e[0],"select2Tags")),o.StoreData(e[0],"tags",!0)),o.GetData(e[0],"ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),e.attr("ajax--url",o.GetData(e[0],"ajaxUrl")),o.StoreData(e[0],"ajax-Url",o.GetData(e[0],"ajaxUrl")));var i={};function r(e,t){return t.toUpperCase()}for(var s=0;s<e[0].attributes.length;s++){var a=e[0].attributes[s].name,l="data-";if(a.substr(0,l.length)==l){var c=a.substring(l.length),u=o.GetData(e[0],c);i[c.replace(/-([a-z])/g,r)]=u}}t.fn.jquery&&"1."==t.fn.jquery.substr(0,2)&&e[0].dataset&&(i=t.extend(!0,{},e[0].dataset,i));var d=t.extend(!0,{},o.GetData(e[0]),i);for(var p in d=o._convertData(d))t.inArray(p,n)>-1||(t.isPlainObject(this.options[p])?t.extend(this.options[p],d[p]):this.options[p]=d[p]);return this},i.prototype.get=function(e){return this.options[e]},i.prototype.set=function(e,t){this.options[e]=t},i})),t.define("select2/core",["jquery","./options","./utils","./keys"],(function(e,t,n,o){var i=function(e,o){null!=n.GetData(e[0],"select2")&&n.GetData(e[0],"select2").destroy(),this.$element=e,this.id=this._generateId(e),o=o||{},this.options=new t(o,e),i.__super__.constructor.call(this);var r=e.attr("tabindex")||0;n.StoreData(e[0],"old-tabindex",r),e.attr("tabindex","-1");var s=this.options.get("dataAdapter");this.dataAdapter=new s(e,this.options);var a=this.render();this._placeContainer(a);var l=this.options.get("selectionAdapter");this.selection=new l(e,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,a);var c=this.options.get("dropdownAdapter");this.dropdown=new c(e,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,a);var u=this.options.get("resultsAdapter");this.results=new u(e,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var d=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current((function(e){d.trigger("selection:update",{data:e})})),e.addClass("select2-hidden-accessible"),e.attr("aria-hidden","true"),this._syncAttributes(),n.StoreData(e[0],"select2",this),e.data("select2",this)};return n.Extend(i,n.Observable),i.prototype._generateId=function(e){return"select2-"+(null!=e.attr("id")?e.attr("id"):null!=e.attr("name")?e.attr("name")+"-"+n.generateChars(2):n.generateChars(4)).replace(/(:|\.|\[|\]|,)/g,"")},i.prototype._placeContainer=function(e){e.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get("width"));null!=t&&e.css("width",t)},i.prototype._resolveWidth=function(e,t){var n=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==t){var o=this._resolveWidth(e,"style");return null!=o?o:this._resolveWidth(e,"element")}if("element"==t){var i=e.outerWidth(!1);return i<=0?"auto":i+"px"}if("style"==t){var r=e.attr("style");if("string"!=typeof r)return null;for(var s=r.split(";"),a=0,l=s.length;a<l;a+=1){var c=s[a].replace(/\s/g,"").match(n);if(null!==c&&c.length>=1)return c[1]}return null}return"computedstyle"==t?window.getComputedStyle(e[0]).width:t},i.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},i.prototype._registerDomEvents=function(){var e=this;this.$element.on("change.select2",(function(){e.dataAdapter.current((function(t){e.trigger("selection:update",{data:t})}))})),this.$element.on("focus.select2",(function(t){e.trigger("focus",t)})),this._syncA=n.bind(this._syncAttributes,this),this._syncS=n.bind(this._syncSubtree,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._syncA);var t=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=t?(this._observer=new t((function(t){e._syncA(),e._syncS(null,t)})),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})):this.$element[0].addEventListener&&(this.$element[0].addEventListener("DOMAttrModified",e._syncA,!1),this.$element[0].addEventListener("DOMNodeInserted",e._syncS,!1),this.$element[0].addEventListener("DOMNodeRemoved",e._syncS,!1))},i.prototype._registerDataEvents=function(){var e=this;this.dataAdapter.on("*",(function(t,n){e.trigger(t,n)}))},i.prototype._registerSelectionEvents=function(){var t=this,n=["toggle","focus"];this.selection.on("toggle",(function(){t.toggleDropdown()})),this.selection.on("focus",(function(e){t.focus(e)})),this.selection.on("*",(function(o,i){-1===e.inArray(o,n)&&t.trigger(o,i)}))},i.prototype._registerDropdownEvents=function(){var e=this;this.dropdown.on("*",(function(t,n){e.trigger(t,n)}))},i.prototype._registerResultsEvents=function(){var e=this;this.results.on("*",(function(t,n){e.trigger(t,n)}))},i.prototype._registerEvents=function(){var e=this;this.on("open",(function(){e.$container.addClass("select2-container--open")})),this.on("close",(function(){e.$container.removeClass("select2-container--open")})),this.on("enable",(function(){e.$container.removeClass("select2-container--disabled")})),this.on("disable",(function(){e.$container.addClass("select2-container--disabled")})),this.on("blur",(function(){e.$container.removeClass("select2-container--focus")})),this.on("query",(function(t){e.isOpen()||e.trigger("open",{}),this.dataAdapter.query(t,(function(n){e.trigger("results:all",{data:n,query:t})}))})),this.on("query:append",(function(t){this.dataAdapter.query(t,(function(n){e.trigger("results:append",{data:n,query:t})}))})),this.on("keypress",(function(t){var n=t.which;e.isOpen()?n===o.ESC||n===o.TAB||n===o.UP&&t.altKey?(e.close(t),t.preventDefault()):n===o.ENTER?(e.trigger("results:select",{}),t.preventDefault()):n===o.SPACE&&t.ctrlKey?(e.trigger("results:toggle",{}),t.preventDefault()):n===o.UP?(e.trigger("results:previous",{}),t.preventDefault()):n===o.DOWN&&(e.trigger("results:next",{}),t.preventDefault()):(n===o.ENTER||n===o.SPACE||n===o.DOWN&&t.altKey)&&(e.open(),t.preventDefault())}))},i.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.isDisabled()?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},i.prototype._isChangeMutation=function(t,n){var o=!1,i=this;if(!t||!t.target||"OPTION"===t.target.nodeName||"OPTGROUP"===t.target.nodeName){if(n)if(n.addedNodes&&n.addedNodes.length>0)for(var r=0;r<n.addedNodes.length;r++)n.addedNodes[r].selected&&(o=!0);else n.removedNodes&&n.removedNodes.length>0?o=!0:e.isArray(n)&&e.each(n,(function(e,t){if(i._isChangeMutation(e,t))return o=!0,!1}));else o=!0;return o}},i.prototype._syncSubtree=function(e,t){var n=this._isChangeMutation(e,t),o=this;n&&this.dataAdapter.current((function(e){o.trigger("selection:update",{data:e})}))},i.prototype.trigger=function(e,t){var n=i.__super__.trigger,o={open:"opening",close:"closing",select:"selecting",unselect:"unselecting",clear:"clearing"};if(void 0===t&&(t={}),e in o){var r=o[e],s={prevented:!1,name:e,args:t};if(n.call(this,r,s),s.prevented)return void(t.prevented=!0)}n.call(this,e,t)},i.prototype.toggleDropdown=function(){this.isDisabled()||(this.isOpen()?this.close():this.open())},i.prototype.open=function(){this.isOpen()||this.isDisabled()||this.trigger("query",{})},i.prototype.close=function(e){this.isOpen()&&this.trigger("close",{originalEvent:e})},i.prototype.isEnabled=function(){return!this.isDisabled()},i.prototype.isDisabled=function(){return this.options.get("disabled")},i.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},i.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")},i.prototype.focus=function(e){this.hasFocus()||(this.$container.addClass("select2-container--focus"),this.trigger("focus",{}))},i.prototype.enable=function(e){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),null!=e&&0!==e.length||(e=[!0]);var t=!e[0];this.$element.prop("disabled",t)},i.prototype.data=function(){this.options.get("debug")&&arguments.length>0&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var e=[];return this.dataAdapter.current((function(t){e=t})),e},i.prototype.val=function(t){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==t||0===t.length)return this.$element.val();var n=t[0];e.isArray(n)&&(n=e.map(n,(function(e){return e.toString()}))),this.$element.val(n).trigger("input").trigger("change")},i.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._syncA),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&(this.$element[0].removeEventListener("DOMAttrModified",this._syncA,!1),this.$element[0].removeEventListener("DOMNodeInserted",this._syncS,!1),this.$element[0].removeEventListener("DOMNodeRemoved",this._syncS,!1)),this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",n.GetData(this.$element[0],"old-tabindex")),this.$element.removeClass("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),n.RemoveData(this.$element[0]),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},i.prototype.render=function(){var t=e('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return t.attr("dir",this.options.get("dir")),this.$container=t,this.$container.addClass("select2-container--"+this.options.get("theme")),n.StoreData(t[0],"element",this.$element),t},i})),t.define("jquery-mousewheel",["jquery"],(function(e){return e})),t.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],(function(e,t,n,o,i){if(null==e.fn.select2){var r=["open","close","destroy"];e.fn.select2=function(t){if("object"==typeof(t=t||{}))return this.each((function(){var o=e.extend(!0,{},t);new n(e(this),o)})),this;if("string"==typeof t){var o,s=Array.prototype.slice.call(arguments,1);return this.each((function(){var e=i.GetData(this,"select2");null==e&&window.console&&console.error&&console.error("The select2('"+t+"') method was called on an element that is not using Select2."),o=e[t].apply(e,s)})),e.inArray(t,r)>-1?this:o}throw new Error("Invalid arguments for Select2: "+t)}}return null==e.fn.select2.defaults&&(e.fn.select2.defaults=o),n})),{define:t.define,require:t.require}}(),n=t.require("jquery.select2");return e.fn.select2.amd=t,n},void 0===(r=o.apply(t,i))||(e.exports=r)},455:function(e){e.exports=function(){"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function o(e,t,o){return t&&n(e.prototype,t),o&&n(e,o),e}function i(){return i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},i.apply(this,arguments)}function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}function s(e,t){return s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},s(e,t)}function a(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function l(e,t,n){return l=a()?Reflect.construct:function(e,t,n){var o=[null];o.push.apply(o,t);var i=new(Function.bind.apply(e,o));return n&&s(i,n.prototype),i},l.apply(null,arguments)}function c(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e,t,n){return u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var o=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=r(e)););return e}(e,t);if(o){var i=Object.getOwnPropertyDescriptor(o,t);return i.get?i.get.call(n):i.value}},u(e,t,n||e)}var d="SweetAlert2:",p=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},h=function(e){return Object.keys(e).map((function(t){return e[t]}))},f=function(e){return Array.prototype.slice.call(e)},m=function(t){console.warn("".concat(d," ").concat("object"===e(t)?t.join(" "):t))},g=function(e){console.error("".concat(d," ").concat(e))},w=[],v=function(e,t){var n;n='"'.concat(e,'" is deprecated and will be removed in the next major release. Please use "').concat(t,'" instead.'),-1===w.indexOf(n)&&(w.push(n),m(n))},y=function(e){return"function"==typeof e?e():e},b=function(e){return e&&"function"==typeof e.toPromise},_=function(e){return b(e)?e.toPromise():Promise.resolve(e)},x=function(e){return e&&Promise.resolve(e)===e},C=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),k=function(t){return t instanceof Element||function(t){return"object"===e(t)&&t.jquery}(t)},A=function(e){var t={};for(var n in e)t[e[n]]="swal2-"+e[n];return t},$=A(["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","header","content","html-container","actions","confirm","deny","cancel","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error"]),E=A(["success","warning","info","question","error"]),S=function(){return document.body.querySelector(".".concat($.container))},O=function(e){var t=S();return t?t.querySelector(e):null},D=function(e){return O(".".concat(e))},P=function(){return D($.popup)},T=function(){return D($.icon)},j=function(){return D($.title)},L=function(){return D($.content)},B=function(){return D($["html-container"])},q=function(){return D($.image)},I=function(){return D($["progress-steps"])},M=function(){return D($["validation-message"])},z=function(){return O(".".concat($.actions," .").concat($.confirm))},H=function(){return O(".".concat($.actions," .").concat($.deny))},R=function(){return O(".".concat($.loader))},N=function(){return O(".".concat($.actions," .").concat($.cancel))},U=function(){return D($.actions)},W=function(){return D($.header)},V=function(){return D($.footer)},F=function(){return D($["timer-progress-bar"])},G=function(){return D($.close)},Y=function(){var e=f(P().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort((function(e,t){return(e=parseInt(e.getAttribute("tabindex")))>(t=parseInt(t.getAttribute("tabindex")))?1:e<t?-1:0})),t=f(P().querySelectorAll('\n a[href],\n area[href],\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n iframe,\n object,\n embed,\n [tabindex="0"],\n [contenteditable],\n audio[controls],\n video[controls],\n summary\n')).filter((function(e){return"-1"!==e.getAttribute("tabindex")}));return function(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(e.concat(t)).filter((function(e){return he(e)}))},Z=function(){return!K()&&!document.body.classList.contains($["no-backdrop"])},K=function(){return document.body.classList.contains($["toast-shown"])},Q={previousBodyPadding:null},X=function(e,t){if(e.textContent="",t){var n=(new DOMParser).parseFromString(t,"text/html");f(n.querySelector("head").childNodes).forEach((function(t){e.appendChild(t)})),f(n.querySelector("body").childNodes).forEach((function(t){e.appendChild(t)}))}},J=function(e,t){if(!t)return!1;for(var n=t.split(/\s+/),o=0;o<n.length;o++)if(!e.classList.contains(n[o]))return!1;return!0},ee=function(t,n,o){if(function(e,t){f(e.classList).forEach((function(n){-1===h($).indexOf(n)&&-1===h(E).indexOf(n)&&-1===h(t.showClass).indexOf(n)&&e.classList.remove(n)}))}(t,n),n.customClass&&n.customClass[o]){if("string"!=typeof n.customClass[o]&&!n.customClass[o].forEach)return m("Invalid type of customClass.".concat(o,'! Expected string or iterable object, got "').concat(e(n.customClass[o]),'"'));re(t,n.customClass[o])}};function te(e,t){if(!t)return null;switch(t){case"select":case"textarea":case"file":return ae(e,$[t]);case"checkbox":return e.querySelector(".".concat($.checkbox," input"));case"radio":return e.querySelector(".".concat($.radio," input:checked"))||e.querySelector(".".concat($.radio," input:first-child"));case"range":return e.querySelector(".".concat($.range," input"));default:return ae(e,$.input)}}var ne,oe=function(e){if(e.focus(),"file"!==e.type){var t=e.value;e.value="",e.value=t}},ie=function(e,t,n){e&&t&&("string"==typeof t&&(t=t.split(/\s+/).filter(Boolean)),t.forEach((function(t){e.forEach?e.forEach((function(e){n?e.classList.add(t):e.classList.remove(t)})):n?e.classList.add(t):e.classList.remove(t)})))},re=function(e,t){ie(e,t,!0)},se=function(e,t){ie(e,t,!1)},ae=function(e,t){for(var n=0;n<e.childNodes.length;n++)if(J(e.childNodes[n],t))return e.childNodes[n]},le=function(e,t,n){n==="".concat(parseInt(n))&&(n=parseInt(n)),n||0===parseInt(n)?e.style[t]="number"==typeof n?"".concat(n,"px"):n:e.style.removeProperty(t)},ce=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"flex";e.style.display=t},ue=function(e){e.style.display="none"},de=function(e,t,n,o){var i=e.querySelector(t);i&&(i.style[n]=o)},pe=function(e,t,n){t?ce(e,n):ue(e)},he=function(e){return!(!e||!(e.offsetWidth||e.offsetHeight||e.getClientRects().length))},fe=function(e){return!!(e.scrollHeight>e.clientHeight)},me=function(e){var t=window.getComputedStyle(e),n=parseFloat(t.getPropertyValue("animation-duration")||"0"),o=parseFloat(t.getPropertyValue("transition-duration")||"0");return n>0||o>0},ge=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=F();he(n)&&(t&&(n.style.transition="none",n.style.width="100%"),setTimeout((function(){n.style.transition="width ".concat(e/1e3,"s linear"),n.style.width="0%"}),10))},we=function(){return"undefined"==typeof window||"undefined"==typeof document},ve='\n <div aria-labelledby="'.concat($.title,'" aria-describedby="').concat($.content,'" class="').concat($.popup,'" tabindex="-1">\n <div class="').concat($.header,'">\n <ul class="').concat($["progress-steps"],'"></ul>\n <div class="').concat($.icon,'"></div>\n <img class="').concat($.image,'" />\n <h2 class="').concat($.title,'" id="').concat($.title,'"></h2>\n <button type="button" class="').concat($.close,'"></button>\n </div>\n <div class="').concat($.content,'">\n <div id="').concat($.content,'" class="').concat($["html-container"],'"></div>\n <input class="').concat($.input,'" />\n <input type="file" class="').concat($.file,'" />\n <div class="').concat($.range,'">\n <input type="range" />\n <output></output>\n </div>\n <select class="').concat($.select,'"></select>\n <div class="').concat($.radio,'"></div>\n <label for="').concat($.checkbox,'" class="').concat($.checkbox,'">\n <input type="checkbox" />\n <span class="').concat($.label,'"></span>\n </label>\n <textarea class="').concat($.textarea,'"></textarea>\n <div class="').concat($["validation-message"],'" id="').concat($["validation-message"],'"></div>\n </div>\n <div class="').concat($.actions,'">\n <div class="').concat($.loader,'"></div>\n <button type="button" class="').concat($.confirm,'"></button>\n <button type="button" class="').concat($.deny,'"></button>\n <button type="button" class="').concat($.cancel,'"></button>\n </div>\n <div class="').concat($.footer,'"></div>\n <div class="').concat($["timer-progress-bar-container"],'">\n <div class="').concat($["timer-progress-bar"],'"></div>\n </div>\n </div>\n').replace(/(^|\n)\s*/g,""),ye=function(e){Hn.isVisible()&&ne!==e.target.value&&Hn.resetValidationMessage(),ne=e.target.value},be=function(e){var t,n,o,i,r,s,a,l,c,u,d=!!(t=S())&&(t.parentNode.removeChild(t),se([document.documentElement,document.body],[$["no-backdrop"],$["toast-shown"],$["has-column"]]),!0);if(we())g("SweetAlert2 requires document to initialize");else{var p=document.createElement("div");p.className=$.container,d&&re(p,$["no-transition"]),X(p,ve);var h="string"==typeof(u=e.target)?document.querySelector(u):u;h.appendChild(p),function(e){var t=P();t.setAttribute("role",e.toast?"alert":"dialog"),t.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||t.setAttribute("aria-modal","true")}(e),function(e){"rtl"===window.getComputedStyle(e).direction&&re(S(),$.rtl)}(h),n=L(),o=ae(n,$.input),i=ae(n,$.file),r=n.querySelector(".".concat($.range," input")),s=n.querySelector(".".concat($.range," output")),a=ae(n,$.select),l=n.querySelector(".".concat($.checkbox," input")),c=ae(n,$.textarea),o.oninput=ye,i.onchange=ye,a.onchange=ye,l.onchange=ye,c.oninput=ye,r.oninput=function(e){ye(e),s.value=r.value},r.onchange=function(e){ye(e),r.nextSibling.value=r.value}}},_e=function(t,n){t instanceof HTMLElement?n.appendChild(t):"object"===e(t)?xe(t,n):t&&X(n,t)},xe=function(e,t){e.jquery?Ce(t,e):X(t,e.toString())},Ce=function(e,t){if(e.textContent="",0 in t)for(var n=0;n in t;n++)e.appendChild(t[n].cloneNode(!0));else e.appendChild(t.cloneNode(!0))},ke=function(){if(we())return!1;var e=document.createElement("div"),t={WebkitAnimation:"webkitAnimationEnd",OAnimation:"oAnimationEnd oanimationend",animation:"animationend"};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&void 0!==e.style[n])return t[n];return!1}(),Ae=function(e,t){var n=U(),o=R(),i=z(),r=H(),s=N();t.showConfirmButton||t.showDenyButton||t.showCancelButton||ue(n),ee(n,t,"actions"),$e(i,"confirm",t),$e(r,"deny",t),$e(s,"cancel",t),function(e,t,n,o){if(!o.buttonsStyling)return se([e,t,n],$.styled);re([e,t,n],$.styled),o.confirmButtonColor&&(e.style.backgroundColor=o.confirmButtonColor),o.denyButtonColor&&(t.style.backgroundColor=o.denyButtonColor),o.cancelButtonColor&&(n.style.backgroundColor=o.cancelButtonColor)}(i,r,s,t),t.reverseButtons&&(n.insertBefore(s,o),n.insertBefore(r,o),n.insertBefore(i,o)),X(o,t.loaderHtml),ee(o,t,"loader")};function $e(e,t,n){pe(e,n["show".concat(p(t),"Button")],"inline-block"),X(e,n["".concat(t,"ButtonText")]),e.setAttribute("aria-label",n["".concat(t,"ButtonAriaLabel")]),e.className=$[t],ee(e,n,"".concat(t,"Button")),re(e,n["".concat(t,"ButtonClass")])}var Ee=function(e,t){var n=S();if(n){(function(e,t){"string"==typeof t?e.style.background=t:t||re([document.documentElement,document.body],$["no-backdrop"])})(n,t.backdrop),!t.backdrop&&t.allowOutsideClick&&m('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),function(e,t){t in $?re(e,$[t]):(m('The "position" parameter is not valid, defaulting to "center"'),re(e,$.center))}(n,t.position),function(e,t){if(t&&"string"==typeof t){var n="grow-".concat(t);n in $&&re(e,$[n])}}(n,t.grow),ee(n,t,"container");var o=document.body.getAttribute("data-swal2-queue-step");o&&(n.setAttribute("data-queue-step",o),document.body.removeAttribute("data-swal2-queue-step"))}},Se={promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap},Oe=["input","file","range","select","radio","checkbox","textarea"],De=function(e){if(!qe[e.input])return g('Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "'.concat(e.input,'"'));var t=Be(e.input),n=qe[e.input](t,e);ce(n),setTimeout((function(){oe(n)}))},Pe=function(e,t){var n=te(L(),e);if(n)for(var o in function(e){for(var t=0;t<e.attributes.length;t++){var n=e.attributes[t].name;-1===["type","value","style"].indexOf(n)&&e.removeAttribute(n)}}(n),t)"range"===e&&"placeholder"===o||n.setAttribute(o,t[o])},Te=function(e){var t=Be(e.input);e.customClass&&re(t,e.customClass.input)},je=function(e,t){e.placeholder&&!t.inputPlaceholder||(e.placeholder=t.inputPlaceholder)},Le=function(e,t,n){if(n.inputLabel){e.id=$.input;var o=document.createElement("label"),i=$["input-label"];o.setAttribute("for",e.id),o.className=i,re(o,n.customClass.inputLabel),o.innerText=n.inputLabel,t.insertAdjacentElement("beforebegin",o)}},Be=function(e){var t=$[e]?$[e]:$.input;return ae(L(),t)},qe={};qe.text=qe.email=qe.password=qe.number=qe.tel=qe.url=function(t,n){return"string"==typeof n.inputValue||"number"==typeof n.inputValue?t.value=n.inputValue:x(n.inputValue)||m('Unexpected type of inputValue! Expected "string", "number" or "Promise", got "'.concat(e(n.inputValue),'"')),Le(t,t,n),je(t,n),t.type=n.input,t},qe.file=function(e,t){return Le(e,e,t),je(e,t),e},qe.range=function(e,t){var n=e.querySelector("input"),o=e.querySelector("output");return n.value=t.inputValue,n.type=t.input,o.value=t.inputValue,Le(n,e,t),e},qe.select=function(e,t){if(e.textContent="",t.inputPlaceholder){var n=document.createElement("option");X(n,t.inputPlaceholder),n.value="",n.disabled=!0,n.selected=!0,e.appendChild(n)}return Le(e,e,t),e},qe.radio=function(e){return e.textContent="",e},qe.checkbox=function(e,t){var n=te(L(),"checkbox");n.value=1,n.id=$.checkbox,n.checked=Boolean(t.inputValue);var o=e.querySelector("span");return X(o,t.inputPlaceholder),e},qe.textarea=function(e,t){e.value=t.inputValue,je(e,t),Le(e,e,t);var n=function(e){return parseInt(window.getComputedStyle(e).paddingLeft)+parseInt(window.getComputedStyle(e).paddingRight)};if("MutationObserver"in window){var o=parseInt(window.getComputedStyle(P()).width);new MutationObserver((function(){var t=e.offsetWidth+n(P())+n(L());P().style.width=t>o?"".concat(t,"px"):null})).observe(e,{attributes:!0,attributeFilter:["style"]})}return e};var Ie=function(e,t){var n=B();ee(n,t,"htmlContainer"),t.html?(_e(t.html,n),ce(n,"block")):t.text?(n.textContent=t.text,ce(n,"block")):ue(n),function(e,t){var n=L(),o=Se.innerParams.get(e),i=!o||t.input!==o.input;Oe.forEach((function(e){var o=$[e],r=ae(n,o);Pe(e,t.inputAttributes),r.className=o,i&&ue(r)})),t.input&&(i&&De(t),Te(t))}(e,t),ee(L(),t,"content")},Me=function(e,t){for(var n in E)t.icon!==n&&se(e,E[n]);re(e,E[t.icon]),Re(e,t),ze(),ee(e,t,"icon")},ze=function(){for(var e=P(),t=window.getComputedStyle(e).getPropertyValue("background-color"),n=e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix"),o=0;o<n.length;o++)n[o].style.backgroundColor=t},He=function(e,t){e.textContent="",t.iconHtml?X(e,Ne(t.iconHtml)):"success"===t.icon?X(e,'\n <div class="swal2-success-circular-line-left"></div>\n <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>\n <div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>\n <div class="swal2-success-circular-line-right"></div>\n '):"error"===t.icon?X(e,'\n <span class="swal2-x-mark">\n <span class="swal2-x-mark-line-left"></span>\n <span class="swal2-x-mark-line-right"></span>\n </span>\n '):X(e,Ne({question:"?",warning:"!",info:"i"}[t.icon]))},Re=function(e,t){if(t.iconColor){e.style.color=t.iconColor,e.style.borderColor=t.iconColor;for(var n=0,o=[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"];n<o.length;n++){de(e,o[n],"backgroundColor",t.iconColor)}de(e,".swal2-success-ring","borderColor",t.iconColor)}},Ne=function(e){return'<div class="'.concat($["icon-content"],'">').concat(e,"</div>")},Ue=[],We=function(){return S()&&S().getAttribute("data-queue-step")},Ve=function(e,t){var n=I();if(!t.progressSteps||0===t.progressSteps.length)return ue(n);ce(n),n.textContent="";var o=parseInt(void 0===t.currentProgressStep?We():t.currentProgressStep);o>=t.progressSteps.length&&m("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),t.progressSteps.forEach((function(e,i){var r=function(e){var t=document.createElement("li");return re(t,$["progress-step"]),X(t,e),t}(e);if(n.appendChild(r),i===o&&re(r,$["active-progress-step"]),i!==t.progressSteps.length-1){var s=function(e){var t=document.createElement("li");return re(t,$["progress-step-line"]),e.progressStepsDistance&&(t.style.width=e.progressStepsDistance),t}(t);n.appendChild(s)}}))},Fe=function(e,t){var n=W();ee(n,t,"header"),Ve(0,t),function(e,t){var n=Se.innerParams.get(e),o=T();n&&t.icon===n.icon?(He(o,t),Me(o,t)):t.icon||t.iconHtml?t.icon&&-1===Object.keys(E).indexOf(t.icon)?(g('Unknown icon! Expected "success", "error", "warning", "info" or "question", got "'.concat(t.icon,'"')),ue(o)):(ce(o),He(o,t),Me(o,t),re(o,t.showClass.icon)):ue(o)}(e,t),function(e,t){var n=q();if(!t.imageUrl)return ue(n);ce(n,""),n.setAttribute("src",t.imageUrl),n.setAttribute("alt",t.imageAlt),le(n,"width",t.imageWidth),le(n,"height",t.imageHeight),n.className=$.image,ee(n,t,"image")}(0,t),function(e,t){var n=j();pe(n,t.title||t.titleText,"block"),t.title&&_e(t.title,n),t.titleText&&(n.innerText=t.titleText),ee(n,t,"title")}(0,t),function(e,t){var n=G();X(n,t.closeButtonHtml),ee(n,t,"closeButton"),pe(n,t.showCloseButton),n.setAttribute("aria-label",t.closeButtonAriaLabel)}(0,t)},Ge=function(e,t){e.className="".concat($.popup," ").concat(he(e)?t.showClass.popup:""),t.toast?(re([document.documentElement,document.body],$["toast-shown"]),re(e,$.toast)):re(e,$.modal),ee(e,t,"popup"),"string"==typeof t.customClass&&re(e,t.customClass),t.icon&&re(e,$["icon-".concat(t.icon)])},Ye=function(e,t){(function(e,t){var n=S(),o=P();t.toast?(le(n,"width",t.width),o.style.width="100%"):le(o,"width",t.width),le(o,"padding",t.padding),t.background&&(o.style.background=t.background),ue(M()),Ge(o,t)})(0,t),Ee(0,t),Fe(e,t),Ie(e,t),Ae(0,t),function(e,t){var n=V();pe(n,t.footer),t.footer&&_e(t.footer,n),ee(n,t,"footer")}(0,t),"function"==typeof t.didRender?t.didRender(P()):"function"==typeof t.onRender&&t.onRender(P())},Ze=function(){return z()&&z().click()};var Ke=function(e){var t=P();t||Hn.fire(),t=P();var n=U(),o=R();!e&&he(z())&&(e=z()),ce(n),e&&(ue(e),o.setAttribute("data-button-to-replace",e.className)),o.parentNode.insertBefore(o,e),re([t,n],$.loading),ce(o),t.setAttribute("data-loading",!0),t.setAttribute("aria-busy",!0),t.focus()},Qe={},Xe=function(e){return new Promise((function(t){if(!e)return t();var n=window.scrollX,o=window.scrollY;Qe.restoreFocusTimeout=setTimeout((function(){Qe.previousActiveElement&&Qe.previousActiveElement.focus?(Qe.previousActiveElement.focus(),Qe.previousActiveElement=null):document.body&&document.body.focus(),t()}),100),void 0!==n&&void 0!==o&&window.scrollTo(n,o)}))},Je=function(){if(Qe.timeout)return function(){var e=F(),t=parseInt(window.getComputedStyle(e).width);e.style.removeProperty("transition"),e.style.width="100%";var n=parseInt(window.getComputedStyle(e).width),o=parseInt(t/n*100);e.style.removeProperty("transition"),e.style.width="".concat(o,"%")}(),Qe.timeout.stop()},et=function(){if(Qe.timeout){var e=Qe.timeout.start();return ge(e),e}},tt=!1,nt={};var ot=function(e){for(var t=e.target;t&&t!==document;t=t.parentNode)for(var n in nt){var o=t.getAttribute(n);if(o)return void nt[n].fire({template:o})}},it={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,animation:!0,showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"×",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,onBeforeOpen:void 0,onOpen:void 0,willOpen:void 0,didOpen:void 0,onRender:void 0,didRender:void 0,onClose:void 0,onAfterClose:void 0,willClose:void 0,didClose:void 0,onDestroy:void 0,didDestroy:void 0,scrollbarPadding:!0},rt=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","onAfterClose","onClose","onDestroy","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","willClose"],st={animation:'showClass" and "hideClass',onBeforeOpen:"willOpen",onOpen:"didOpen",onRender:"didRender",onClose:"willClose",onAfterClose:"didClose",onDestroy:"didDestroy"},at=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],lt=function(e){return Object.prototype.hasOwnProperty.call(it,e)},ct=function(e){return st[e]},ut=function(e){lt(e)||m('Unknown parameter "'.concat(e,'"'))},dt=function(e){-1!==at.indexOf(e)&&m('The parameter "'.concat(e,'" is incompatible with toasts'))},pt=function(e){ct(e)&&v(e,ct(e))},ht=function(e){for(var t in e)ut(t),e.toast&&dt(t),pt(t)},ft=Object.freeze({isValidParameter:lt,isUpdatableParameter:function(e){return-1!==rt.indexOf(e)},isDeprecatedParameter:ct,argsToParams:function(t){var n={};return"object"!==e(t[0])||k(t[0])?["title","html","icon"].forEach((function(o,i){var r=t[i];"string"==typeof r||k(r)?n[o]=r:void 0!==r&&g("Unexpected type of ".concat(o,'! Expected "string" or "Element", got ').concat(e(r)))})):i(n,t[0]),n},isVisible:function(){return he(P())},clickConfirm:Ze,clickDeny:function(){return H()&&H().click()},clickCancel:function(){return N()&&N().click()},getContainer:S,getPopup:P,getTitle:j,getContent:L,getHtmlContainer:B,getImage:q,getIcon:T,getInputLabel:function(){return D($["input-label"])},getCloseButton:G,getActions:U,getConfirmButton:z,getDenyButton:H,getCancelButton:N,getLoader:R,getHeader:W,getFooter:V,getTimerProgressBar:F,getFocusableElements:Y,getValidationMessage:M,isLoading:function(){return P().hasAttribute("data-loading")},fire:function(){for(var e=this,t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return l(e,n)},mixin:function(e){var n=function(n){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(h,n);var l,d,p=(l=h,d=a(),function(){var e,t=r(l);if(d){var n=r(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return c(this,e)});function h(){return t(this,h),p.apply(this,arguments)}return o(h,[{key:"_main",value:function(t,n){return u(r(h.prototype),"_main",this).call(this,t,i({},e,n))}}]),h}(this);return n},queue:function(e){v("Swal.queue()","async/await");var t=this;Ue=e;var n=function(e,t){Ue=[],e(t)},o=[];return new Promise((function(e){!function i(r,s){r<Ue.length?(document.body.setAttribute("data-swal2-queue-step",r),t.fire(Ue[r]).then((function(t){void 0!==t.value?(o.push(t.value),i(r+1,s)):n(e,{dismiss:t.dismiss})}))):n(e,{value:o})}(0)}))},getQueueStep:We,insertQueueStep:function(e,t){return t&&t<Ue.length?Ue.splice(t,0,e):Ue.push(e)},deleteQueueStep:function(e){void 0!==Ue[e]&&Ue.splice(e,1)},showLoading:Ke,enableLoading:Ke,getTimerLeft:function(){return Qe.timeout&&Qe.timeout.getTimerLeft()},stopTimer:Je,resumeTimer:et,toggleTimer:function(){var e=Qe.timeout;return e&&(e.running?Je():et())},increaseTimer:function(e){if(Qe.timeout){var t=Qe.timeout.increase(e);return ge(t,!0),t}},isTimerRunning:function(){return Qe.timeout&&Qe.timeout.isRunning()},bindClickHandler:function(){nt[arguments.length>0&&void 0!==arguments[0]?arguments[0]:"data-swal-template"]=this,tt||(document.body.addEventListener("click",ot),tt=!0)}});function mt(){if(Se.innerParams.get(this)){var e=Se.domCache.get(this);ue(e.loader);var t=e.popup.getElementsByClassName(e.loader.getAttribute("data-button-to-replace"));t.length?ce(t[0],"inline-block"):!he(z())&&!he(H())&&!he(N())&&ue(e.actions),se([e.popup,e.actions],$.loading),e.popup.removeAttribute("aria-busy"),e.popup.removeAttribute("data-loading"),e.confirmButton.disabled=!1,e.denyButton.disabled=!1,e.cancelButton.disabled=!1}}var gt=function(){null===Q.previousBodyPadding&&document.body.scrollHeight>window.innerHeight&&(Q.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight="".concat(Q.previousBodyPadding+function(){var e=document.createElement("div");e.className=$["scrollbar-measure"],document.body.appendChild(e);var t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t}(),"px"))},wt=function(){if(!navigator.userAgent.match(/(CriOS|FxiOS|EdgiOS|YaBrowser|UCBrowser)/i)){P().scrollHeight>window.innerHeight-44&&(S().style.paddingBottom="".concat(44,"px"))}},vt=function(){var e,t=S();t.ontouchstart=function(t){e=yt(t)},t.ontouchmove=function(t){e&&(t.preventDefault(),t.stopPropagation())}},yt=function(e){var t=e.target,n=S();return!(bt(e)||_t(e)||t!==n&&(fe(n)||"INPUT"===t.tagName||fe(L())&&L().contains(t)))},bt=function(e){return e.touches&&e.touches.length&&"stylus"===e.touches[0].touchType},_t=function(e){return e.touches&&e.touches.length>1},xt=function(){return!!window.MSInputMethodContext&&!!document.documentMode},Ct=function(){var e=S(),t=P();e.style.removeProperty("align-items"),t.offsetTop<0&&(e.style.alignItems="flex-start")},kt={swalPromiseResolve:new WeakMap};function At(e,t,n,o){K()?Pt(e,o):(Xe(n).then((function(){return Pt(e,o)})),Qe.keydownTarget.removeEventListener("keydown",Qe.keydownHandler,{capture:Qe.keydownListenerCapture}),Qe.keydownHandlerAdded=!1),t.parentNode&&!document.body.getAttribute("data-swal2-queue-step")&&t.parentNode.removeChild(t),Z()&&(null!==Q.previousBodyPadding&&(document.body.style.paddingRight="".concat(Q.previousBodyPadding,"px"),Q.previousBodyPadding=null),function(){if(J(document.body,$.iosfix)){var e=parseInt(document.body.style.top,10);se(document.body,$.iosfix),document.body.style.top="",document.body.scrollTop=-1*e}}(),"undefined"!=typeof window&&xt()&&window.removeEventListener("resize",Ct),f(document.body.children).forEach((function(e){e.hasAttribute("data-previous-aria-hidden")?(e.setAttribute("aria-hidden",e.getAttribute("data-previous-aria-hidden")),e.removeAttribute("data-previous-aria-hidden")):e.removeAttribute("aria-hidden")}))),se([document.documentElement,document.body],[$.shown,$["height-auto"],$["no-backdrop"],$["toast-shown"]])}function $t(e){var t=P();if(t){e=Et(e);var n=Se.innerParams.get(this);if(n&&!J(t,n.hideClass.popup)){var o=kt.swalPromiseResolve.get(this);se(t,n.showClass.popup),re(t,n.hideClass.popup);var i=S();se(i,n.showClass.backdrop),re(i,n.hideClass.backdrop),St(this,t,n),o(e)}}}var Et=function(e){return void 0===e?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:i({isConfirmed:!1,isDenied:!1,isDismissed:!1},e)},St=function(e,t,n){var o=S(),i=ke&&me(t),r=n.onClose,s=n.onAfterClose,a=n.willClose,l=n.didClose;Ot(t,a,r),i?Dt(e,t,o,n.returnFocus,l||s):At(e,o,n.returnFocus,l||s)},Ot=function(e,t,n){null!==t&&"function"==typeof t?t(e):null!==n&&"function"==typeof n&&n(e)},Dt=function(e,t,n,o,i){Qe.swalCloseEventFinishedCallback=At.bind(null,e,n,o,i),t.addEventListener(ke,(function(e){e.target===t&&(Qe.swalCloseEventFinishedCallback(),delete Qe.swalCloseEventFinishedCallback)}))},Pt=function(e,t){setTimeout((function(){"function"==typeof t&&t(),e._destroy()}))};function Tt(e,t,n){var o=Se.domCache.get(e);t.forEach((function(e){o[e].disabled=n}))}function jt(e,t){if(!e)return!1;if("radio"===e.type)for(var n=e.parentNode.parentNode.querySelectorAll("input"),o=0;o<n.length;o++)n[o].disabled=t;else e.disabled=t}var Lt=function(){function e(n,o){t(this,e),this.callback=n,this.remaining=o,this.running=!1,this.start()}return o(e,[{key:"start",value:function(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}},{key:"stop",value:function(){return this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=new Date-this.started),this.remaining}},{key:"increase",value:function(e){var t=this.running;return t&&this.stop(),this.remaining+=e,t&&this.start(),this.remaining}},{key:"getTimerLeft",value:function(){return this.running&&(this.stop(),this.start()),this.remaining}},{key:"isRunning",value:function(){return this.running}}]),e}(),Bt={email:function(e,t){return/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid email address")},url:function(e,t){return/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid URL")}};function qt(e){(function(e){e.inputValidator||Object.keys(Bt).forEach((function(t){e.input===t&&(e.inputValidator=Bt[t])}))})(e),e.showLoaderOnConfirm&&!e.preConfirm&&m("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"),e.animation=y(e.animation),function(e){(!e.target||"string"==typeof e.target&&!document.querySelector(e.target)||"string"!=typeof e.target&&!e.target.appendChild)&&(m('Target parameter is not valid, defaulting to "body"'),e.target="body")}(e),"string"==typeof e.title&&(e.title=e.title.split("\n").join("<br />")),be(e)}var It=["swal-title","swal-html","swal-footer"],Mt=function(t){var n={};return f(t.querySelectorAll("swal-param")).forEach((function(t){Vt(t,["name","value"]);var o=t.getAttribute("name"),i=t.getAttribute("value");"boolean"==typeof it[o]&&"false"===i&&(i=!1),"object"===e(it[o])&&(i=JSON.parse(i)),n[o]=i})),n},zt=function(e){var t={};return f(e.querySelectorAll("swal-button")).forEach((function(e){Vt(e,["type","color","aria-label"]);var n=e.getAttribute("type");t["".concat(n,"ButtonText")]=e.innerHTML,t["show".concat(p(n),"Button")]=!0,e.hasAttribute("color")&&(t["".concat(n,"ButtonColor")]=e.getAttribute("color")),e.hasAttribute("aria-label")&&(t["".concat(n,"ButtonAriaLabel")]=e.getAttribute("aria-label"))})),t},Ht=function(e){var t={},n=e.querySelector("swal-image");return n&&(Vt(n,["src","width","height","alt"]),n.hasAttribute("src")&&(t.imageUrl=n.getAttribute("src")),n.hasAttribute("width")&&(t.imageWidth=n.getAttribute("width")),n.hasAttribute("height")&&(t.imageHeight=n.getAttribute("height")),n.hasAttribute("alt")&&(t.imageAlt=n.getAttribute("alt"))),t},Rt=function(e){var t={},n=e.querySelector("swal-icon");return n&&(Vt(n,["type","color"]),n.hasAttribute("type")&&(t.icon=n.getAttribute("type")),n.hasAttribute("color")&&(t.iconColor=n.getAttribute("color")),t.iconHtml=n.innerHTML),t},Nt=function(e){var t={},n=e.querySelector("swal-input");n&&(Vt(n,["type","label","placeholder","value"]),t.input=n.getAttribute("type")||"text",n.hasAttribute("label")&&(t.inputLabel=n.getAttribute("label")),n.hasAttribute("placeholder")&&(t.inputPlaceholder=n.getAttribute("placeholder")),n.hasAttribute("value")&&(t.inputValue=n.getAttribute("value")));var o=e.querySelectorAll("swal-input-option");return o.length&&(t.inputOptions={},f(o).forEach((function(e){Vt(e,["value"]);var n=e.getAttribute("value"),o=e.innerHTML;t.inputOptions[n]=o}))),t},Ut=function(e,t){var n={};for(var o in t){var i=t[o],r=e.querySelector(i);r&&(Vt(r,[]),n[i.replace(/^swal-/,"")]=r.innerHTML.trim())}return n},Wt=function(e){var t=It.concat(["swal-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);f(e.querySelectorAll("*")).forEach((function(n){if(n.parentNode===e){var o=n.tagName.toLowerCase();-1===t.indexOf(o)&&m("Unrecognized element <".concat(o,">"))}}))},Vt=function(e,t){f(e.attributes).forEach((function(n){-1===t.indexOf(n.name)&&m(['Unrecognized attribute "'.concat(n.name,'" on <').concat(e.tagName.toLowerCase(),">."),"".concat(t.length?"Allowed attributes are: ".concat(t.join(", ")):"To set the value, use HTML within the element.")])}))},Ft=function(e){var t=S(),n=P();"function"==typeof e.willOpen?e.willOpen(n):"function"==typeof e.onBeforeOpen&&e.onBeforeOpen(n);var o=window.getComputedStyle(document.body).overflowY;Qt(t,n,e),setTimeout((function(){Zt(t,n)}),10),Z()&&(Kt(t,e.scrollbarPadding,o),f(document.body.children).forEach((function(e){e===S()||function(e,t){if("function"==typeof e.contains)return e.contains(t)}(e,S())||(e.hasAttribute("aria-hidden")&&e.setAttribute("data-previous-aria-hidden",e.getAttribute("aria-hidden")),e.setAttribute("aria-hidden","true"))}))),K()||Qe.previousActiveElement||(Qe.previousActiveElement=document.activeElement),Gt(n,e),se(t,$["no-transition"])},Gt=function(e,t){"function"==typeof t.didOpen?setTimeout((function(){return t.didOpen(e)})):"function"==typeof t.onOpen&&setTimeout((function(){return t.onOpen(e)}))},Yt=function e(t){var n=P();if(t.target===n){var o=S();n.removeEventListener(ke,e),o.style.overflowY="auto"}},Zt=function(e,t){ke&&me(t)?(e.style.overflowY="hidden",t.addEventListener(ke,Yt)):e.style.overflowY="auto"},Kt=function(e,t,n){(function(){if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)&&!J(document.body,$.iosfix)){var e=document.body.scrollTop;document.body.style.top="".concat(-1*e,"px"),re(document.body,$.iosfix),vt(),wt()}})(),"undefined"!=typeof window&&xt()&&(Ct(),window.addEventListener("resize",Ct)),t&&"hidden"!==n&>(),setTimeout((function(){e.scrollTop=0}))},Qt=function(e,t,n){re(e,n.showClass.backdrop),t.style.setProperty("opacity","0","important"),ce(t),setTimeout((function(){re(t,n.showClass.popup),t.style.removeProperty("opacity")}),10),re([document.documentElement,document.body],$.shown),n.heightAuto&&n.backdrop&&!n.toast&&re([document.documentElement,document.body],$["height-auto"])},Xt=function(e){return e.checked?1:0},Jt=function(e){return e.checked?e.value:null},en=function(e){return e.files.length?null!==e.getAttribute("multiple")?e.files:e.files[0]:null},tn=function(t,n){var o=L(),i=function(e){return on[n.input](o,rn(e),n)};b(n.inputOptions)||x(n.inputOptions)?(Ke(z()),_(n.inputOptions).then((function(e){t.hideLoading(),i(e)}))):"object"===e(n.inputOptions)?i(n.inputOptions):g("Unexpected type of inputOptions! Expected object, Map or Promise, got ".concat(e(n.inputOptions)))},nn=function(e,t){var n=e.getInput();ue(n),_(t.inputValue).then((function(o){n.value="number"===t.input?parseFloat(o)||0:"".concat(o),ce(n),n.focus(),e.hideLoading()})).catch((function(t){g("Error in inputValue promise: ".concat(t)),n.value="",ce(n),n.focus(),e.hideLoading()}))},on={select:function(e,t,n){var o=ae(e,$.select),i=function(e,t,o){var i=document.createElement("option");i.value=o,X(i,t),i.selected=sn(o,n.inputValue),e.appendChild(i)};t.forEach((function(e){var t=e[0],n=e[1];if(Array.isArray(n)){var r=document.createElement("optgroup");r.label=t,r.disabled=!1,o.appendChild(r),n.forEach((function(e){return i(r,e[1],e[0])}))}else i(o,n,t)})),o.focus()},radio:function(e,t,n){var o=ae(e,$.radio);t.forEach((function(e){var t=e[0],i=e[1],r=document.createElement("input"),s=document.createElement("label");r.type="radio",r.name=$.radio,r.value=t,sn(t,n.inputValue)&&(r.checked=!0);var a=document.createElement("span");X(a,i),a.className=$.label,s.appendChild(r),s.appendChild(a),o.appendChild(s)}));var i=o.querySelectorAll("input");i.length&&i[0].focus()}},rn=function t(n){var o=[];return"undefined"!=typeof Map&&n instanceof Map?n.forEach((function(n,i){var r=n;"object"===e(r)&&(r=t(r)),o.push([i,r])})):Object.keys(n).forEach((function(i){var r=n[i];"object"===e(r)&&(r=t(r)),o.push([i,r])})),o},sn=function(e,t){return t&&t.toString()===e.toString()},an=function(e,t,n){var o=function(e,t){var n=e.getInput();if(!n)return null;switch(t.input){case"checkbox":return Xt(n);case"radio":return Jt(n);case"file":return en(n);default:return t.inputAutoTrim?n.value.trim():n.value}}(e,t);t.inputValidator?ln(e,t,o):e.getInput().checkValidity()?"deny"===n?cn(e,t,o):dn(e,t,o):(e.enableButtons(),e.showValidationMessage(t.validationMessage))},ln=function(e,t,n){e.disableInput(),Promise.resolve().then((function(){return _(t.inputValidator(n,t.validationMessage))})).then((function(o){e.enableButtons(),e.enableInput(),o?e.showValidationMessage(o):dn(e,t,n)}))},cn=function(e,t,n){t.showLoaderOnDeny&&Ke(H()),t.preDeny?Promise.resolve().then((function(){return _(t.preDeny(n,t.validationMessage))})).then((function(t){!1===t?e.hideLoading():e.closePopup({isDenied:!0,value:void 0===t?n:t})})):e.closePopup({isDenied:!0,value:n})},un=function(e,t){e.closePopup({isConfirmed:!0,value:t})},dn=function(e,t,n){t.showLoaderOnConfirm&&Ke(),t.preConfirm?(e.resetValidationMessage(),Promise.resolve().then((function(){return _(t.preConfirm(n,t.validationMessage))})).then((function(t){he(M())||!1===t?e.hideLoading():un(e,void 0===t?n:t)}))):un(e,n)},pn=function(e,t,n){var o=Y();if(o.length)return(t+=n)===o.length?t=0:-1===t&&(t=o.length-1),o[t].focus();P().focus()},hn=["ArrowRight","ArrowDown","Right","Down"],fn=["ArrowLeft","ArrowUp","Left","Up"],mn=["Escape","Esc"],gn=function(e,t,n){var o=Se.innerParams.get(e);o&&(o.stopKeydownPropagation&&t.stopPropagation(),"Enter"===t.key?wn(e,t,o):"Tab"===t.key?vn(t,o):-1!==[].concat(hn,fn).indexOf(t.key)?yn(t.key):-1!==mn.indexOf(t.key)&&bn(t,o,n))},wn=function(e,t,n){if(!t.isComposing&&t.target&&e.getInput()&&t.target.outerHTML===e.getInput().outerHTML){if(-1!==["textarea","file"].indexOf(n.input))return;Ze(),t.preventDefault()}},vn=function(e,t){for(var n=e.target,o=Y(),i=-1,r=0;r<o.length;r++)if(n===o[r]){i=r;break}e.shiftKey?pn(0,i,-1):pn(0,i,1),e.stopPropagation(),e.preventDefault()},yn=function(e){if(-1!==[z(),H(),N()].indexOf(document.activeElement)){var t=-1!==hn.indexOf(e)?"nextElementSibling":"previousElementSibling",n=document.activeElement[t];n&&n.focus()}},bn=function(e,t,n){y(t.allowEscapeKey)&&(e.preventDefault(),n(C.esc))},xn=function(e,t,n){t.popup.onclick=function(){var t=Se.innerParams.get(e);t.showConfirmButton||t.showDenyButton||t.showCancelButton||t.showCloseButton||t.timer||t.input||n(C.close)}},Cn=!1,kn=function(e){e.popup.onmousedown=function(){e.container.onmouseup=function(t){e.container.onmouseup=void 0,t.target===e.container&&(Cn=!0)}}},An=function(e){e.container.onmousedown=function(){e.popup.onmouseup=function(t){e.popup.onmouseup=void 0,(t.target===e.popup||e.popup.contains(t.target))&&(Cn=!0)}}},$n=function(e,t,n){t.container.onclick=function(o){var i=Se.innerParams.get(e);Cn?Cn=!1:o.target===t.container&&y(i.allowOutsideClick)&&n(C.backdrop)}};var En=function(e,t){var n=function(e){var t="string"==typeof e.template?document.querySelector(e.template):e.template;if(!t)return{};var n=t.content||t;return Wt(n),i(Mt(n),zt(n),Ht(n),Rt(n),Nt(n),Ut(n,It))}(e),o=i({},it,t,n,e);return o.showClass=i({},it.showClass,o.showClass),o.hideClass=i({},it.hideClass,o.hideClass),!1===e.animation&&(o.showClass={popup:"swal2-noanimation",backdrop:"swal2-noanimation"},o.hideClass={}),o},Sn=function(e,t,n){return new Promise((function(o){var i=function(t){e.closePopup({isDismissed:!0,dismiss:t})};kt.swalPromiseResolve.set(e,o),t.confirmButton.onclick=function(){return function(e,t){e.disableButtons(),t.input?an(e,t,"confirm"):dn(e,t,!0)}(e,n)},t.denyButton.onclick=function(){return function(e,t){e.disableButtons(),t.returnInputValueOnDeny?an(e,t,"deny"):cn(e,t,!1)}(e,n)},t.cancelButton.onclick=function(){return function(e,t){e.disableButtons(),t(C.cancel)}(e,i)},t.closeButton.onclick=function(){return i(C.close)},function(e,t,n){Se.innerParams.get(e).toast?xn(e,t,n):(kn(t),An(t),$n(e,t,n))}(e,t,i),function(e,t,n,o){t.keydownTarget&&t.keydownHandlerAdded&&(t.keydownTarget.removeEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!1),n.toast||(t.keydownHandler=function(t){return gn(e,t,o)},t.keydownTarget=n.keydownListenerCapture?window:P(),t.keydownListenerCapture=n.keydownListenerCapture,t.keydownTarget.addEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!0)}(e,Qe,n,i),function(e,t){"select"===t.input||"radio"===t.input?tn(e,t):-1!==["text","email","number","tel","textarea"].indexOf(t.input)&&(b(t.inputValue)||x(t.inputValue))&&nn(e,t)}(e,n),Ft(n),Dn(Qe,n,i),Pn(t,n),setTimeout((function(){t.container.scrollTop=0}))}))},On=function(e){var t={popup:P(),container:S(),content:L(),actions:U(),confirmButton:z(),denyButton:H(),cancelButton:N(),loader:R(),closeButton:G(),validationMessage:M(),progressSteps:I()};return Se.domCache.set(e,t),t},Dn=function(e,t,n){var o=F();ue(o),t.timer&&(e.timeout=new Lt((function(){n("timer"),delete e.timeout}),t.timer),t.timerProgressBar&&(ce(o),setTimeout((function(){e.timeout&&e.timeout.running&&ge(t.timer)}))))},Pn=function(e,t){if(!t.toast)return y(t.allowEnterKey)?void(Tn(e,t)||pn(0,-1,1)):jn()},Tn=function(e,t){return t.focusDeny&&he(e.denyButton)?(e.denyButton.focus(),!0):t.focusCancel&&he(e.cancelButton)?(e.cancelButton.focus(),!0):!(!t.focusConfirm||!he(e.confirmButton)||(e.confirmButton.focus(),0))},jn=function(){document.activeElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur()};var Ln,Bn=function(e){"function"==typeof e.didDestroy?e.didDestroy():"function"==typeof e.onDestroy&&e.onDestroy()},qn=function(e){delete e.params,delete Qe.keydownHandler,delete Qe.keydownTarget,In(Se),In(kt)},In=function(e){for(var t in e)e[t]=new WeakMap},Mn=Object.freeze({hideLoading:mt,disableLoading:mt,getInput:function(e){var t=Se.innerParams.get(e||this),n=Se.domCache.get(e||this);return n?te(n.content,t.input):null},close:$t,closePopup:$t,closeModal:$t,closeToast:$t,enableButtons:function(){Tt(this,["confirmButton","denyButton","cancelButton"],!1)},disableButtons:function(){Tt(this,["confirmButton","denyButton","cancelButton"],!0)},enableInput:function(){return jt(this.getInput(),!1)},disableInput:function(){return jt(this.getInput(),!0)},showValidationMessage:function(e){var t=Se.domCache.get(this),n=Se.innerParams.get(this);X(t.validationMessage,e),t.validationMessage.className=$["validation-message"],n.customClass&&n.customClass.validationMessage&&re(t.validationMessage,n.customClass.validationMessage),ce(t.validationMessage);var o=this.getInput();o&&(o.setAttribute("aria-invalid",!0),o.setAttribute("aria-describedBy",$["validation-message"]),oe(o),re(o,$.inputerror))},resetValidationMessage:function(){var e=Se.domCache.get(this);e.validationMessage&&ue(e.validationMessage);var t=this.getInput();t&&(t.removeAttribute("aria-invalid"),t.removeAttribute("aria-describedBy"),se(t,$.inputerror))},getProgressSteps:function(){return Se.domCache.get(this).progressSteps},_main:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ht(i({},t,e)),Qe.currentInstance&&Qe.currentInstance._destroy(),Qe.currentInstance=this;var n=En(e,t);qt(n),Object.freeze(n),Qe.timeout&&(Qe.timeout.stop(),delete Qe.timeout),clearTimeout(Qe.restoreFocusTimeout);var o=On(this);return Ye(this,n),Se.innerParams.set(this,n),Sn(this,o,n)},update:function(e){var t=P(),n=Se.innerParams.get(this);if(!t||J(t,n.hideClass.popup))return m("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");var o={};Object.keys(e).forEach((function(t){Hn.isUpdatableParameter(t)?o[t]=e[t]:m('Invalid parameter to update: "'.concat(t,'". Updatable params are listed here: https://github.com/sweetalert2/sweetalert2/blob/master/src/utils/params.js\n\nIf you think this parameter should be updatable, request it here: https://github.com/sweetalert2/sweetalert2/issues/new?template=02_feature_request.md'))}));var r=i({},n,o);Ye(this,r),Se.innerParams.set(this,r),Object.defineProperties(this,{params:{value:i({},this.params,e),writable:!1,enumerable:!0}})},_destroy:function(){var e=Se.domCache.get(this),t=Se.innerParams.get(this);t&&(e.popup&&Qe.swalCloseEventFinishedCallback&&(Qe.swalCloseEventFinishedCallback(),delete Qe.swalCloseEventFinishedCallback),Qe.deferDisposalTimer&&(clearTimeout(Qe.deferDisposalTimer),delete Qe.deferDisposalTimer),Bn(t),qn(this))}}),zn=function(){function e(){if(t(this,e),"undefined"!=typeof window){"undefined"==typeof Promise&&g("This package requires a Promise library, please include a shim to enable it in this browser (See: https://github.com/sweetalert2/sweetalert2/wiki/Migration-from-SweetAlert-to-SweetAlert2#1-ie-support)"),Ln=this;for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];var r=Object.freeze(this.constructor.argsToParams(o));Object.defineProperties(this,{params:{value:r,writable:!1,enumerable:!0,configurable:!0}});var s=this._main(this.params);Se.promise.set(this,s)}}return o(e,[{key:"then",value:function(e){return Se.promise.get(this).then(e)}},{key:"finally",value:function(e){return Se.promise.get(this).finally(e)}}]),e}();i(zn.prototype,Mn),i(zn,ft),Object.keys(Mn).forEach((function(e){zn[e]=function(){var t;if(Ln)return(t=Ln)[e].apply(t,arguments)}})),zn.DismissReason=C,zn.version="10.16.9";var Hn=zn;return Hn.default=Hn,Hn}(),void 0!==this&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2),"undefined"!=typeof document&&function(e,t){var n=e.createElement("style");if(e.getElementsByTagName("head")[0].appendChild(n),n.styleSheet)n.styleSheet.disabled||(n.styleSheet.cssText=t);else try{n.innerHTML=t}catch(e){n.innerText=t}}(document,'.swal2-popup.swal2-toast{flex-direction:column;align-items:stretch;width:auto;padding:1.25em;overflow-y:hidden;background:#fff;box-shadow:0 0 .625em #d9d9d9}.swal2-popup.swal2-toast .swal2-header{flex-direction:row;padding:0}.swal2-popup.swal2-toast .swal2-title{flex-grow:1;justify-content:flex-start;margin:0 .625em;font-size:1em}.swal2-popup.swal2-toast .swal2-loading{justify-content:center}.swal2-popup.swal2-toast .swal2-input{height:2em;margin:.3125em auto;font-size:1em}.swal2-popup.swal2-toast .swal2-validation-message{font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{position:static;width:.8em;height:.8em;line-height:.8}.swal2-popup.swal2-toast .swal2-content{justify-content:flex-start;margin:0 .625em;padding:0;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-html-container{padding:.625em 0 0}.swal2-popup.swal2-toast .swal2-html-container:empty{padding:0}.swal2-popup.swal2-toast .swal2-icon{width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:700}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{font-size:.25em}}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{flex:1;flex-basis:auto!important;align-self:stretch;width:auto;height:2.2em;height:auto;margin:0 .3125em;margin-top:.3125em;padding:0}.swal2-popup.swal2-toast .swal2-styled{margin:.125em .3125em;padding:.3125em .625em;font-size:1em}.swal2-popup.swal2-toast .swal2-styled:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px rgba(100,150,200,.5)}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;transform:rotate(45deg);border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.8em;left:-.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{-webkit-animation:swal2-toast-animate-success-line-tip .75s;animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{-webkit-animation:swal2-toast-animate-success-line-long .75s;animation:swal2-toast-animate-success-line-long .75s}.swal2-popup.swal2-toast.swal2-show{-webkit-animation:swal2-toast-show .5s;animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{-webkit-animation:swal2-toast-hide .1s forwards;animation:swal2-toast-hide .1s forwards}.swal2-container{display:flex;position:fixed;z-index:1060;top:0;right:0;bottom:0;left:0;flex-direction:row;align-items:center;justify-content:center;padding:.625em;overflow-x:hidden;transition:background-color .1s;-webkit-overflow-scrolling:touch}.swal2-container.swal2-backdrop-show,.swal2-container.swal2-noanimation{background:rgba(0,0,0,.4)}.swal2-container.swal2-backdrop-hide{background:0 0!important}.swal2-container.swal2-top{align-items:flex-start}.swal2-container.swal2-top-left,.swal2-container.swal2-top-start{align-items:flex-start;justify-content:flex-start}.swal2-container.swal2-top-end,.swal2-container.swal2-top-right{align-items:flex-start;justify-content:flex-end}.swal2-container.swal2-center{align-items:center}.swal2-container.swal2-center-left,.swal2-container.swal2-center-start{align-items:center;justify-content:flex-start}.swal2-container.swal2-center-end,.swal2-container.swal2-center-right{align-items:center;justify-content:flex-end}.swal2-container.swal2-bottom{align-items:flex-end}.swal2-container.swal2-bottom-left,.swal2-container.swal2-bottom-start{align-items:flex-end;justify-content:flex-start}.swal2-container.swal2-bottom-end,.swal2-container.swal2-bottom-right{align-items:flex-end;justify-content:flex-end}.swal2-container.swal2-bottom-end>:first-child,.swal2-container.swal2-bottom-left>:first-child,.swal2-container.swal2-bottom-right>:first-child,.swal2-container.swal2-bottom-start>:first-child,.swal2-container.swal2-bottom>:first-child{margin-top:auto}.swal2-container.swal2-grow-fullscreen>.swal2-modal{display:flex!important;flex:1;align-self:stretch;justify-content:center}.swal2-container.swal2-grow-row>.swal2-modal{display:flex!important;flex:1;align-content:center;justify-content:center}.swal2-container.swal2-grow-column{flex:1;flex-direction:column}.swal2-container.swal2-grow-column.swal2-bottom,.swal2-container.swal2-grow-column.swal2-center,.swal2-container.swal2-grow-column.swal2-top{align-items:center}.swal2-container.swal2-grow-column.swal2-bottom-left,.swal2-container.swal2-grow-column.swal2-bottom-start,.swal2-container.swal2-grow-column.swal2-center-left,.swal2-container.swal2-grow-column.swal2-center-start,.swal2-container.swal2-grow-column.swal2-top-left,.swal2-container.swal2-grow-column.swal2-top-start{align-items:flex-start}.swal2-container.swal2-grow-column.swal2-bottom-end,.swal2-container.swal2-grow-column.swal2-bottom-right,.swal2-container.swal2-grow-column.swal2-center-end,.swal2-container.swal2-grow-column.swal2-center-right,.swal2-container.swal2-grow-column.swal2-top-end,.swal2-container.swal2-grow-column.swal2-top-right{align-items:flex-end}.swal2-container.swal2-grow-column>.swal2-modal{display:flex!important;flex:1;align-content:center;justify-content:center}.swal2-container.swal2-no-transition{transition:none!important}.swal2-container:not(.swal2-top):not(.swal2-top-start):not(.swal2-top-end):not(.swal2-top-left):not(.swal2-top-right):not(.swal2-center-start):not(.swal2-center-end):not(.swal2-center-left):not(.swal2-center-right):not(.swal2-bottom):not(.swal2-bottom-start):not(.swal2-bottom-end):not(.swal2-bottom-left):not(.swal2-bottom-right):not(.swal2-grow-fullscreen)>.swal2-modal{margin:auto}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.swal2-container .swal2-modal{margin:0!important}}.swal2-popup{display:none;position:relative;box-sizing:border-box;flex-direction:column;justify-content:center;width:32em;max-width:100%;padding:1.25em;border:none;border-radius:5px;background:#fff;font-family:inherit;font-size:1rem}.swal2-popup:focus{outline:0}.swal2-popup.swal2-loading{overflow-y:hidden}.swal2-header{display:flex;flex-direction:column;align-items:center;padding:0 1.8em}.swal2-title{position:relative;max-width:100%;margin:0 0 .4em;padding:0;color:#595959;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word}.swal2-actions{display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:center;width:100%;margin:1.25em auto 0;padding:0}.swal2-actions:not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}.swal2-actions:not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0,0,0,.1),rgba(0,0,0,.1))}.swal2-actions:not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0,0,0,.2),rgba(0,0,0,.2))}.swal2-loader{display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;-webkit-animation:swal2-rotate-loading 1.5s linear 0s infinite normal;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 transparent #2778c4 transparent}.swal2-styled{margin:.3125em;padding:.625em 1.1em;box-shadow:none;font-weight:500}.swal2-styled:not([disabled]){cursor:pointer}.swal2-styled.swal2-confirm{border:0;border-radius:.25em;background:initial;background-color:#2778c4;color:#fff;font-size:1em}.swal2-styled.swal2-deny{border:0;border-radius:.25em;background:initial;background-color:#d14529;color:#fff;font-size:1em}.swal2-styled.swal2-cancel{border:0;border-radius:.25em;background:initial;background-color:#757575;color:#fff;font-size:1em}.swal2-styled:focus{outline:0;box-shadow:0 0 0 3px rgba(100,150,200,.5)}.swal2-styled::-moz-focus-inner{border:0}.swal2-footer{justify-content:center;margin:1.25em 0 0;padding:1em 0 0;border-top:1px solid #eee;color:#545454;font-size:1em}.swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;height:.25em;overflow:hidden;border-bottom-right-radius:5px;border-bottom-left-radius:5px}.swal2-timer-progress-bar{width:100%;height:.25em;background:rgba(0,0,0,.2)}.swal2-image{max-width:100%;margin:1.25em auto}.swal2-close{position:absolute;z-index:2;top:0;right:0;align-items:center;justify-content:center;width:1.2em;height:1.2em;padding:0;overflow:hidden;transition:color .1s ease-out;border:none;border-radius:5px;background:0 0;color:#ccc;font-family:serif;font-size:2.5em;line-height:1.2;cursor:pointer}.swal2-close:hover{transform:none;background:0 0;color:#f27474}.swal2-close:focus{outline:0;box-shadow:inset 0 0 0 3px rgba(100,150,200,.5)}.swal2-close::-moz-focus-inner{border:0}.swal2-content{z-index:1;justify-content:center;margin:0;padding:0 1.6em;color:#545454;font-size:1.125em;font-weight:400;line-height:normal;text-align:center;word-wrap:break-word}.swal2-checkbox,.swal2-file,.swal2-input,.swal2-radio,.swal2-select,.swal2-textarea{margin:1em auto}.swal2-file,.swal2-input,.swal2-textarea{box-sizing:border-box;width:100%;transition:border-color .3s,box-shadow .3s;border:1px solid #d9d9d9;border-radius:.1875em;background:inherit;box-shadow:inset 0 1px 1px rgba(0,0,0,.06);color:inherit;font-size:1.125em}.swal2-file.swal2-inputerror,.swal2-input.swal2-inputerror,.swal2-textarea.swal2-inputerror{border-color:#f27474!important;box-shadow:0 0 2px #f27474!important}.swal2-file:focus,.swal2-input:focus,.swal2-textarea:focus{border:1px solid #b4dbed;outline:0;box-shadow:0 0 0 3px rgba(100,150,200,.5)}.swal2-file::-moz-placeholder,.swal2-input::-moz-placeholder,.swal2-textarea::-moz-placeholder{color:#ccc}.swal2-file:-ms-input-placeholder,.swal2-input:-ms-input-placeholder,.swal2-textarea:-ms-input-placeholder{color:#ccc}.swal2-file::placeholder,.swal2-input::placeholder,.swal2-textarea::placeholder{color:#ccc}.swal2-range{margin:1em auto;background:#fff}.swal2-range input{width:80%}.swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}.swal2-range input,.swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}.swal2-input{height:2.625em;padding:0 .75em}.swal2-input[type=number]{max-width:10em}.swal2-file{background:inherit;font-size:1.125em}.swal2-textarea{height:6.75em;padding:.75em}.swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:inherit;color:inherit;font-size:1.125em}.swal2-checkbox,.swal2-radio{align-items:center;justify-content:center;background:#fff;color:inherit}.swal2-checkbox label,.swal2-radio label{margin:0 .6em;font-size:1.125em}.swal2-checkbox input,.swal2-radio input{flex-shrink:0;margin:0 .4em}.swal2-input-label{display:flex;justify-content:center;margin:1em auto}.swal2-validation-message{align-items:center;justify-content:center;margin:0 -2.7em;padding:.625em;overflow:hidden;background:#f0f0f0;color:#666;font-size:1em;font-weight:300}.swal2-validation-message::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}.swal2-icon{position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:1.25em auto 1.875em;border:.25em solid transparent;border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}.swal2-icon.swal2-error{border-color:#f27474;color:#f27474}.swal2-icon.swal2-error .swal2-x-mark{position:relative;flex-grow:1}.swal2-icon.swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}.swal2-icon.swal2-error.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-error.swal2-icon-show .swal2-x-mark{-webkit-animation:swal2-animate-error-x-mark .5s;animation:swal2-animate-error-x-mark .5s}.swal2-icon.swal2-warning{border-color:#facea8;color:#f8bb86}.swal2-icon.swal2-info{border-color:#9de0f6;color:#3fc3ee}.swal2-icon.swal2-question{border-color:#c9dae1;color:#87adbd}.swal2-icon.swal2-success{border-color:#a5dc86;color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;transform:rotate(45deg);border-radius:50%}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=right]{top:-.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}.swal2-icon.swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-.25em;left:-.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}.swal2-icon.swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}.swal2-icon.swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}.swal2-icon.swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-line-tip{-webkit-animation:swal2-animate-success-line-tip .75s;animation:swal2-animate-success-line-tip .75s}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-line-long{-webkit-animation:swal2-animate-success-line-long .75s;animation:swal2-animate-success-line-long .75s}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-circular-line-right{-webkit-animation:swal2-rotate-success-circular-line 4.25s ease-in;animation:swal2-rotate-success-circular-line 4.25s ease-in}.swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:0 0 1.25em;padding:0;background:inherit;font-weight:600}.swal2-progress-steps li{display:inline-block;position:relative}.swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:#add8e6;color:#fff}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:#add8e6}.swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}[class^=swal2]{-webkit-tap-highlight-color:transparent}.swal2-show{-webkit-animation:swal2-show .3s;animation:swal2-show .3s}.swal2-hide{-webkit-animation:swal2-hide .15s forwards;animation:swal2-hide .15s forwards}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{right:auto;left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}@supports (-ms-accelerator:true){.swal2-range input{width:100%!important}.swal2-range output{display:none}}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.swal2-range input{width:100%!important}.swal2-range output{display:none}}@-webkit-keyframes swal2-toast-show{0%{transform:translateY(-.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0)}}@keyframes swal2-toast-show{0%{transform:translateY(-.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0)}}@-webkit-keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@-webkit-keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@-webkit-keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@-webkit-keyframes swal2-show{0%{transform:scale(.7)}45%{transform:scale(1.05)}80%{transform:scale(.95)}100%{transform:scale(1)}}@keyframes swal2-show{0%{transform:scale(.7)}45%{transform:scale(1.05)}80%{transform:scale(.95)}100%{transform:scale(1)}}@-webkit-keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(.5);opacity:0}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(.5);opacity:0}}@-webkit-keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@-webkit-keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@-webkit-keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@-webkit-keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(.4);opacity:0}50%{margin-top:1.625em;transform:scale(.4);opacity:0}80%{margin-top:-.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(.4);opacity:0}50%{margin-top:1.625em;transform:scale(.4);opacity:0}80%{margin-top:-.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@-webkit-keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0);opacity:1}}@-webkit-keyframes swal2-rotate-loading{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@keyframes swal2-rotate-loading{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto!important}body.swal2-no-backdrop .swal2-container{top:auto;right:auto;bottom:auto;left:auto;max-width:calc(100% - .625em * 2);background-color:transparent!important}body.swal2-no-backdrop .swal2-container>.swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}body.swal2-no-backdrop .swal2-container.swal2-top{top:0;left:50%;transform:translateX(-50%)}body.swal2-no-backdrop .swal2-container.swal2-top-left,body.swal2-no-backdrop .swal2-container.swal2-top-start{top:0;left:0}body.swal2-no-backdrop .swal2-container.swal2-top-end,body.swal2-no-backdrop .swal2-container.swal2-top-right{top:0;right:0}body.swal2-no-backdrop .swal2-container.swal2-center{top:50%;left:50%;transform:translate(-50%,-50%)}body.swal2-no-backdrop .swal2-container.swal2-center-left,body.swal2-no-backdrop .swal2-container.swal2-center-start{top:50%;left:0;transform:translateY(-50%)}body.swal2-no-backdrop .swal2-container.swal2-center-end,body.swal2-no-backdrop .swal2-container.swal2-center-right{top:50%;right:0;transform:translateY(-50%)}body.swal2-no-backdrop .swal2-container.swal2-bottom{bottom:0;left:50%;transform:translateX(-50%)}body.swal2-no-backdrop .swal2-container.swal2-bottom-left,body.swal2-no-backdrop .swal2-container.swal2-bottom-start{bottom:0;left:0}body.swal2-no-backdrop .swal2-container.swal2-bottom-end,body.swal2-no-backdrop .swal2-container.swal2-bottom-right{right:0;bottom:0}@media print{body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow-y:scroll!important}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) .swal2-container{position:static!important}}body.swal2-toast-shown .swal2-container{background-color:transparent}body.swal2-toast-shown .swal2-container.swal2-top{top:0;right:auto;bottom:auto;left:50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{top:0;right:0;bottom:auto;left:auto}body.swal2-toast-shown .swal2-container.swal2-top-left,body.swal2-toast-shown .swal2-container.swal2-top-start{top:0;right:auto;bottom:auto;left:0}body.swal2-toast-shown .swal2-container.swal2-center-left,body.swal2-toast-shown .swal2-container.swal2-center-start{top:50%;right:auto;bottom:auto;left:0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{top:50%;right:auto;bottom:auto;left:50%;transform:translate(-50%,-50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{top:50%;right:0;bottom:auto;left:auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-left,body.swal2-toast-shown .swal2-container.swal2-bottom-start{top:auto;right:auto;bottom:0;left:0}body.swal2-toast-shown .swal2-container.swal2-bottom{top:auto;right:auto;bottom:0;left:50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{top:auto;right:0;bottom:0;left:auto}')},567:function(e){"use strict";e.exports=window.jQuery}},t={};function n(o){var i=t[o];if(void 0!==i)return i.exports;var r=t[o]={exports:{}};return e[o].call(r.exports,r,r.exports,n),r.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){"use strict";n(233),n(686);var e=n(455),t=n.n(e);const o=window.WPCodeSnippetManager||function(e,n,o){const i={editor_id:"wpcode_snippet_code",unload_set:!1,l10n:wpcode,init:function(){i.should_init()&&(n.WPCodeSnippetManager=i,i.find_elements(),i.init_snippet_type_switcher(),i.init_auto_insert_toggle(),i.init_dynamic_hide(),i.init_copy_target(),i.init_tags_picker(),i.init_metabox_toggler(),i.init_select2(),i.init_tinymce_listener(),i.unload_change_listener(),i.init_save_to_library(),i.init_custom_shortcode(),i.init_conditional_logic_notice())},should_init:function(){return void 0!==n.wpcode_editor&&null!==e.getElementById(i.editor_id)},find_elements(){i.location_dropdown=o("#wpcode_auto_insert_location"),i.switcher=o(e.getElementById("wpcode_snippet_type")),i.$body=o("body"),i.$text_editor=tinymce.get("wpcode_snippet_text")},init_snippet_type_switcher:function(){i.switcher.on("change",(function(){i.set_before_unload(),n.WPCodeAdminCodeEditor.switch_code_mode(i.editor_id,o(this).val(),o(this).find(":selected").data("mode"),o(this).find(":selected").data("lint")),"text"===i.switcher.val()?(i.$body.addClass("wpcode-show-tinymce"),i.$text_editor.setContent(n.WPCodeAdminCodeEditor.get_value(i.editor_id))):(i.$body.removeClass("wpcode-show-tinymce"),n.WPCodeAdminCodeEditor.refresh(i.editor_id)),i.update_available_locations(i.switcher.val())}))},update_available_locations(e){const t=i.location_dropdown.find("optgroup");t.find("option").prop("disabled",!1).prop("selected",!1);const n=t.filter((function(){const t=o(this).data("code-type");return"all"!==t&&e!==t}));n.length>0&&n.find("option").prop("disabled",!0).prop("selected",!1),i.location_dropdown.trigger("change")},init_auto_insert_toggle:function(){const t={toggles:"",init:function(){t.toggles=o(e.querySelectorAll(".wpcode-button-toggle")),t.listen_to_switch()},listen_to_switch:function(){t.toggles.each((function(){const e=o(this).find(".wpcode-button-toggle-input");o(this).on("click",".wpcode-button",(function(n){n.preventDefault(),i.set_before_unload(),e.val(o(this).val()).change(),t.make_button_active(o(this))}))}))},make_button_active:function(e){e.closest(".wpcode-button-toggle").find(".wpcode-button").each((function(){e.is(o(this))?o(this).removeClass("wpcode-button-secondary-inactive"):o(this).addClass("wpcode-button-secondary-inactive")}))}};t.init()},init_dynamic_hide:function(){const e={init:function(){e.elements=o("[data-show-if-id]"),e.add_listeners()},add_listeners:function(){e.elements.each((function(){const t=o(this),n=t.data("show-if-id");if(""===n)return;const i=String(t.data("show-if-value")).split(","),r=o(n);r.on("change",(function(){e.maybe_hide(r,t,i)})),e.maybe_hide(r,t,i)}))},maybe_hide:function(e,t,n){let o=String(e.val());"checkbox"===e.attr("type")&&(o=e.prop("checked")?"1":"0"),n.indexOf(o)<0?t.hide():(t.show(),t.find(".wpcode-select2").length>0&&i.init_select2())}};e.init()},init_copy_target:function(){o(".wpcode-copy-target").on("click",(function(e){e.preventDefault();const t=o(this),n=t.data("target"),i=t.data("prefix"),r=t.data("suffix"),s=o(n).val();s&&(navigator.clipboard.writeText(i+s+r),t.addClass("wpcode-show-success-icon"),setTimeout((function(){t.removeClass("wpcode-show-success-icon")}),500))}))},init_select2:function(){o(".wpcode-select2").select2({templateResult:function(e){const t=o(e.element),n=t.data("label-pill"),i=t.data("upgrade-title"),r=t.data("upgrade-text"),s=t.data("upgrade-link"),a=t.data("upgrade-button"),l=o('<span class="wpcode-pro-pill">'+n+"</span>");return""!==i&&l.attr("data-upgrade-title",i),""!==r&&l.attr("data-upgrade-text",r),""!==s&&l.attr("data-upgrade-link",s),""!==a&&l.attr("data-upgrade-button",a),void 0!==n&&""!==n?((e=o("<span>"+e.text+"</span>")).append(l),e):e.text}}),o("body").on("click",".select2-results__options",(function(e){const t=o(this).closest(".select2-results__option").find(".wpcode-pro-pill");t.length>0&&i.show_pro_notice(t.data("upgrade-title"),t.data("upgrade-text"),t.data("upgrade-link"),t.data("upgrade-button"))}))},init_tags_picker:function(){const e=o(".wpcode-tags-picker");e.select2({tags:!0,ajax:{url:ajaxurl,data:function(e){return{action:"ajax-tag-search",tax:"wpcode_tags",q:e.term?e.term:""}},processResults:function(e){const t=e.split(","),n=[];return t.forEach((function(e){""!==e&&n.push({id:e,text:e})})),{results:n}}}}),e.on("change",(function(){i.set_before_unload();const e=o(this).data("target");o(e).val(o(this).val().join(","))}))},init_metabox_toggler:function(){o(".wpcode-metabox-title").on("click",(function(){o(this).parent().toggleClass("wpcode-metabox-collapsed")}))},init_tinymce_listener(){i.$text_editor.on("Paste Change input Undo Redo",(function(){i.set_before_unload(),clearTimeout(i.editor_change_handler),i.editor_change_handler=setTimeout((function(){n.WPCodeAdminCodeEditor.set_value(i.editor_id,i.$text_editor.getContent())}),100)}))},set_before_unload(){i.unload_set||(i.unload_set=!0,o(n).on("beforeunload",(function(){return""})))},unload_change_listener(){n.WPCodeAdminCodeEditor.get_editor(i.editor_id).on("change",(function(){i.set_before_unload()}));const e=o("#wpcode-snippet-manager-form");e.on("change","input, select",(function(){i.set_before_unload()})),e.on("submit",(function(){o(n).off("beforeunload")}))},init_save_to_library(){o("#wpcode_save_to_library").click((function(e){e.preventDefault(),i.show_pro_notice(i.l10n.save_to_library_title,i.l10n.save_to_library_text,i.l10n.save_to_library_url)}))},init_custom_shortcode(){o("#wpcode-custom-shortcode-lite").click((function(e){e.preventDefault(),i.show_pro_notice(i.l10n.shortcode_title,i.l10n.shortcode_text,i.l10n.shortcode_url)}))},show_pro_notice(e,o,r,s){t().fire({title:e,text:o,customClass:{confirmButton:"wpcode-button wpcode-button-orange wpcode-button-large",icon:"wpcode-lock"},showCloseButton:!0,confirmButtonText:s||i.l10n.save_to_library_button,iconHtml:'<svg width="22" height="28" viewBox="0 0 22 28" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M19 9.33333H17.6666V6.66667C17.6666 2.98667 14.68 0 11 0C7.31998 0 4.33331 2.98667 4.33331 6.66667V9.33333H2.99998C1.53331 9.33333 0.333313 10.5333 0.333313 12V25.3333C0.333313 26.8 1.53331 28 2.99998 28H19C20.4666 28 21.6666 26.8 21.6666 25.3333V12C21.6666 10.5333 20.4666 9.33333 19 9.33333ZM6.99998 6.66667C6.99998 4.45333 8.78665 2.66667 11 2.66667C13.2133 2.66667 15 4.45333 15 6.66667V9.33333H6.99998V6.66667ZM19 25.3333H2.99998V12H19V25.3333ZM11 21.3333C12.4666 21.3333 13.6666 20.1333 13.6666 18.6667C13.6666 17.2 12.4666 16 11 16C9.53331 16 8.33331 17.2 8.33331 18.6667C8.33331 20.1333 9.53331 21.3333 11 21.3333Z" fill="#8A8A8A"/></svg>'}).then((function(e){e.isConfirmed&&n.open(r,"_blank")}))},init_conditional_logic_notice(){o("#wpcode-conditions-holder").on("change",".wpcode-cl-rule-type",(function(e){const t=o(this).find(":selected");if(t.data("upgrade-title")){e.stopPropagation(),i.show_pro_notice(t.data("upgrade-title"),t.data("upgrade-text"),t.data("upgrade-link"),t.data("upgrade-button"));const n=o(this).find("option").first();o(this).val(n.attr("value")).trigger("change")}}))}};return i}(document,window,jQuery);jQuery((function(){o.init()})),n(560),n(569),n(5),n(900),n(423),n(124),n(786),n(298),n(801),n(847),n(770),n(868),n(448),(window.WPCodeLibraryAuth||function(e,n,o){const i={i18n:n.wpcode,init:function(){i.load_elements(),i.add_event_listeners(),n.WPCodeLibraryAuth=i},load_elements(){i.auth_start_button=o(".wpcode-start-auth"),i.auth_delete_button=o(".wpcode-delete-auth")},add_event_listeners(){i.auth_start_button.on("click",(function(e){e.preventDefault(),i.start_auth(o(this)),n.WPCodeSpinner.show_button_spinner(o(this))})),i.auth_delete_button.on("click",(function(e){e.preventDefault(),i.delete_auth()})),n.addEventListener("message",(e=>{e.isTrusted&&i.store_auth(e.data,e.origin)}),!1)},start_auth(e){o.post(ajaxurl,{action:"wpcode_library_start_auth",_ajax_nonce:i.i18n.nonce},(function(o){if(n.WPCodeSpinner.hide_button_spinner(e),o.success){let e=n.open(o.data.url,"_blank","location=no,width=500,height=730,scrollbars=0");null===e?t().fire({title:"Your browser blocked the authorization window from opening. Please check your popup settings.",customClass:{confirmButton:"wpcode-button",cancelButton:"wpcode-button"}}):e.focus()}}))},delete_auth(){i.show_please_wait(),o.post(ajaxurl,{action:"wpcode_library_delete_auth",_ajax_nonce:i.i18n.nonce},(function(e){e.success&&n.location.reload()}))},store_auth(e,r){void 0!==e.key&&void 0!==e.username&&o.post(ajaxurl,{action:"wpcode_library_store_auth",key:e.key,username:e.username,origin:r,_ajax_nonce:i.i18n.nonce},(function(e){e.success&&t().fire({title:e.data.title,text:e.data.text,didOpen:()=>{t().showLoading(),setTimeout((function(){n.location.reload()}),2e3)}})}))},show_please_wait(){t().fire({title:i.i18n.please_wait,didOpen:()=>{t().showLoading()}})}};return i}(document,window,jQuery)).init()}()}();
|
1 |
+
!function(){var e={233:function(){(window.WPCodeAdminCodeEditor||function(e,t,n){const o={l18n:wpcode,init(){t.WPCodeAdminCodeEditor=o},switch_code_mode(e,t){const n=o.get_editor(e);if(void 0===n)return!1;n.setOption("mode",o.get_mime_for_code_type(t)),n.setOption("lint",o.get_lint_for_code_type(t)),jQuery(n.getTextArea()).closest(".wpcode-code-textarea").attr("data-code-type",t)},get_editor:e=>wpcode_editor[e]?wpcode_editor[e].codemirror:void 0,set_value(e,t){const n=o.get_editor(e);if(void 0===n)return!1;n.getDoc().setValue(t)},get_mime_for_code_type:e=>o.l18n.code_type_options[e].mime,get_lint_for_code_type:e=>o.l18n.code_type_options[e].lint,refresh(e){o.get_editor(e).refresh()},get_value:e=>o.get_editor(e).getValue(),refresh_all(){n.each(wpcode_editor,(function(e,t){t.codemirror.refresh()}))}};return o}(document,window,jQuery)).init()},560:function(){(window.WPCodeSnippetsTable||function(e,t,n){const o={l10n:wpcode,init:function(){o.should_init()&&o.init_status_toggle()},should_init:function(){return null!==e.getElementById("wpcode-code-snippets-table")},init_status_toggle:function(){n(".wpcode-status-toggle").on("change",(function(){const e=n(this),t=e.is(":checked"),i=e.data("id");o.update_status(t,i).fail((function(){e.prop("checked",!1)})).done((function(n){!1===n.success&&(e.prop("checked",!t),n.data.message&&WPCodeAdminNotices.add_notice(n.data.message,"error"))})).fail((function(e){e.responseText&&WPCodeAdminNotices.add_notice(e.responseText,"error")}))}))},update_status:function(e,t){return n.post(ajaxurl,{_wpnonce:o.l10n.nonce,action:"wpcode_update_snippet_status",snippet_id:t,active:e})}};return o}(document,window,jQuery)).init()},569:function(){(window.WPCodeConditionalLogic||function(e,t,n){const o={l10n:wpcode,init:function(){o.should_init()&&(o.find_elements(),o.add_events(),o.show_relations_for_all_rows())},should_init:function(){return void 0!==wpcode.conditions},find_elements:function(){o.conditions=wpcode.conditions,o.conditions_holder=n(e.getElementById("wpcode-conditions-holder")),o.conditions_input=n(e.getElementById("wpcode-cl-rules")),o.add_group_button=n(e.getElementById("wpcode-cl-add-group")),o.group_template=n(e.getElementById("wpcode-conditions-group-markup")).html(),o.row_template=n(e.getElementById("wpcode-conditions-group-row-markup")).html(),o.show_hide_input=n(e.getElementById("wpcode-cl-show-hide"))},add_events:function(){o.init_add_group(),o.init_add_row(),o.init_remove_row(),o.init_change_type(),o.init_capture_rules(),o.init_change_show_hide(),o.init_select2()},show_relations_for_all_rows(){o.conditions_holder.find(".wpcode-cl-rules-row").each((function(){o.show_hide_relation_options(n(this))}))},init_add_group:function(){o.add_group_button.on("click",(function(){o.add_group()}))},add_group(){const e=o.get_new_group();o.conditions_holder.append(e),o.add_new_row(e.find(".wpcode-cl-group-rules")),o.build_rules_from_inputs()},get_new_group:()=>n(o.group_template),get_new_row:()=>n(o.row_template),init_add_row(){o.conditions_holder.on("click",".wpcode-cl-add-row",(function(){o.add_new_row(n(this).closest(".wpcode-cl-group").find(".wpcode-cl-group-rules"))}))},init_remove_row(){o.conditions_holder.on("click",".wpcode-cl-remove-row",(function(){const e=n(this).closest(".wpcode-cl-group");n(this).closest(".wpcode-cl-rules-row").remove(),o.maybe_remove_group(e),o.build_rules_from_inputs()}))},maybe_remove_group(e){0===e.find(".wpcode-cl-group-rules .wpcode-cl-rules-row").length&&o.remove_group(e)},remove_group(e){e.remove(),o.build_rules_from_inputs()},add_new_row(e){const t=o.get_new_row();t.appendTo(e),o.handle_type_change(t.find(".wpcode-cl-rule-type")),o.build_rules_from_inputs()},init_change_type(){o.conditions_holder.on("change",".wpcode-cl-rule-type",(function(){o.handle_type_change(n(this))}))},init_change_show_hide(){o.show_hide_input.on("change",(function(){o.build_rules_from_inputs()}))},handle_type_change(e){const t=e.find("option:selected"),n=e.val(),i=t.closest("optgroup").data("type"),r=o.conditions[i].options[n],s=e.closest(".wpcode-cl-rules-row");e.parent().find(".wpcode-cl-rule-value").html(o.get_input_markup(r)),o.show_hide_relation_options(s),s.find(".wpcode-cl-rule-relation option").prop("selected",!1),o.init_select2()},get_input_markup(e){let t="";switch(e.type){case"select":t=o.get_input_select(e.options);break;case"text":t=o.get_input_text();break;case"ajax":t=o.get_input_ajax(e.options)}return t},get_input_select(e){const t=n("<select/>");return n.each(e,(function(e,o){t.append(n("<option />",{value:o.value,disabled:!0===o.disabled}).text(o.label))})),t},get_input_text:()=>n('<input type="text" class="wpcode-input-text" />'),get_input_ajax:e=>n('<select data-action="'+e+'" class="wpcode-select2" multiple />'),init_capture_rules(){o.conditions_holder.on("change","input,select",(function(){o.build_rules_from_inputs()}))},build_rules_from_inputs(){const e=o.conditions_holder.find(".wpcode-cl-group"),t=[];e.each((function(e){const i=n(this).find(".wpcode-cl-rules-row");t[e]=[],i.each((function(){const i=n(this),r=i.find(".wpcode-cl-rule-type"),s=r.find("option:selected").closest("optgroup").data("type"),a=r.val(),l={},c=o.conditions[s].options[a];l.type=s,l.option=a,l.relation=i.find(".wpcode-cl-rule-relation").val(),l.value=o.get_input_value(c,i),null!==l.value&&t[e].push(l)}))}));const i={show:o.show_hide_input.val(),groups:t};o.conditions_input.val(JSON.stringify(i))},get_input_value(e,t){let n="";switch(e.type){case"select":case"ajax":n=t.find(".wpcode-cl-rule-value select").val();break;case"text":n=t.find(".wpcode-cl-rule-value input").val()}return n},show_hide_relation_options(e){const t=e.find(".wpcode-cl-rule-type"),i=t.val(),r=t.find("option:selected").closest("optgroup").data("type"),s=e.find(".wpcode-cl-rule-relation option"),a={select:["=","!="],ajax:["=","!="],text:["=","!=","contains","notcontains"]}[o.conditions[r].options[i].type];s.each((function(){a.indexOf(n(this).attr("value"))>-1?n(this).show():n(this).hide()}))},init_select2(){o.conditions_holder.find(".wpcode-select2").select2({ajax:{url:ajaxurl,data:function(e){return{action:n(this).data("action"),term:e.term,_wpnonce:o.l10n.nonce}}}})}};return o}(document,window,jQuery)).init()},786:function(){(window.WPCodeAdminGenerator||function(e,t,n){const o={doing_ajax_call:!1,ajax_snippet_update:!1,editor_id:"wpcode_generator_code_preview",init:function(){o.should_init()&&(o.find_elements(),o.init_generator_form(),o.init_code_editor(),o.init_tabs(),o.init_use_snippet(),o.init_copy_editor(),o.init_repeater(),o.do_spacer(),n(e).ready((function(){o.init_autocomplete()})))},should_init:()=>(o.generator_form=n("#wpcode_generator_form"),o.generator_form.length>0),find_elements(){o.tabs_buttons=n(".wpcode-items-tabs"),o.tabs_content=n(".wpcode-items-list .wpcode-form-tab"),o.use_snippet=n("#wpcode-generator-use-snippet"),o.update_button=n("#wpcode-generator-update-code"),o.repeater_row=n("#wpcode-generator-repeater-row").html()},init_generator_form(){o.generator_form.on("submit",(function(e){e.preventDefault(),o.update_snippet()})),o.generator_form.on("change","input, select",(function(){o.update_snippet()}))},update_snippet(){o.doing_ajax_call||(o.ajax_snippet_update&&o.ajax_snippet_update.abort(),o.show_button_spinner(o.update_button),o.ajax_snippet_update=n.post(ajaxurl,n(o.generator_form).serialize()).done((function(e){o.ajax_snippet_update=!1,WPCodeAdminCodeEditor.set_value(o.editor_id,e),o.hide_button_spinner(o.update_button)})))},init_tabs(){o.tabs_buttons.on("click","button",(function(e){e.preventDefault(),o.switch_active_tab(n(this))}))},switch_active_tab(e){o.tabs_buttons.find("button").removeClass("wpcode-active"),e.addClass("wpcode-active");const t=e.data("category");o.tabs_content.hide(),o.tabs_content.filter((function(){return n(this).data("tab")===t})).show(),o.do_spacer(),WPCodeAdminCodeEditor.refresh(o.editor_id)},init_use_snippet(){o.use_snippet.on("click",(function(e){if(e.preventDefault(),o.doing_ajax_call)return;o.doing_ajax_call=!0;const i=o.generator_form.serializeArray(),r=n(this);n.each(i,(function(e,t){"action"===t.name&&(i[e].value="wpcode_save_generated_snippet")})),o.show_button_spinner(r),n.post(ajaxurl,n.param(i)).done((function(e){o.doing_ajax_call=!1,o.hide_button_spinner(r),e.success&&e.data.url&&(t.location=e.data.url)}))}))},show_button_spinner(e){t.WPCodeSpinner.show_button_spinner(e)},hide_button_spinner(e){t.WPCodeSpinner.hide_button_spinner(e)},init_copy_editor:function(){n(".wpcode-copy-target").on("click",(function(e){e.preventDefault();const t=n(this),i=WPCodeAdminCodeEditor.get_value(o.editor_id);i&&(navigator.clipboard.writeText(i),t.addClass("wpcode-show-success-icon"),setTimeout((function(){t.removeClass("wpcode-show-success-icon")}),500))}))},init_repeater(){o.row_id=0,o.tabs_content.on("click",".wpcode-repeater-button",(function(){const e=n(this).data("target"),t=n(n('[data-repeater="'+e+'"]').get().reverse());let i,r,s=0;o.row_id++,t.each((function(){const e=n(this).closest(".wpcode-generator-column");e.is(i)||(s++,i=e,r=n(o.repeater_row),s>1?r.find("button").remove():r.find("button").data("target",o.row_id),r.attr("data-id",o.row_id),e.append(r)),n(this).clone().attr("data-repeater",null).prependTo(r).find("input").val(null)}));let a=0,l=n('.wpcode-repeater-group[data-id="'+o.row_id+'"]');l.each((function(){const e=n(this).height();e>a&&(a=e)})),l.height(a),l.first().find("input").first().focus()})),o.tabs_content.on("click",".wpcode-remove-row",(function(){const e=n(this).data("target");n('.wpcode-repeater-group[data-id="'+e+'"]').remove()}))},do_spacer(){n(".wpcode-generator-field-spacer").each((function(){const e=n(this).closest(".wpcode-generator-column"),t=n(this).closest(".wpcode-generator-column").outerHeight();let o=0;e.siblings(".wpcode-generator-column").each((function(){const e=n(this).height();e>o&&(o=e)})),o>t&&n(this).height(o-t+3)}))},init_autocomplete(){n(".wpcode-generator-field-autocomplete").each((function(){const e=n(this).find('input[type="text"]'),t=n(this).find(".wpcode-field-autocomplete").text();e.autocomplete({source:JSON.parse(t)})}))},init_code_editor(){const e=n(".wpcode-generator-code");if(0===e.length)return;const t=wp.codeEditor.initialize(e);o.CodeMirror=t.codemirror,o.CodeMirror.setOption("readOnly",!1),o.CodeMirror.on("change",(function(e){clearTimeout(o.editor_change_handler),o.editor_change_handler=setTimeout((function(){jQuery(e.getTextArea()).val(e.getValue()).change(),o.update_snippet()}),300)}))}};return o}(document,window,jQuery)).init()},448:function(){(window.WPCodeHeader||function(e,t,n){const o={init(){o.should_init()&&n(e).ready((function(){o.init_sticky_header()}))},should_init:()=>n("#wpcode_snippet_code").length>0||n("#ihaf_insert_header").length>0,init_sticky_header(){const e=n(".wpcode-header-bottom"),o=e.height(),i=e.offset().top,r=e.parent();n(t).scroll((function(){const s=n(t).scrollTop();i<s+32?(e.addClass("wpcode-sticky"),r.css("paddingBottom",o+"px")):(e.removeClass("wpcode-sticky"),r.css("paddingBottom",0))}))}};return o}(document,window,jQuery)).init()},847:function(){(window.WPCodeHelp||function(e,t,n){const o={init:function(){o.should_init()&&(o.find_elements(),o.init_show(),o.init_close_button(),o.init_search(),o.init_accordion())},should_init:()=>(o.$overlay=n("#wpcode-docs-overlay"),o.$overlay.length>0),find_elements(){o.$close_button=n("#wpcode-help-close"),o.$search=n("#wpcode-help-search"),o.$no_result=n("#wpcode-help-no-result"),o.$search_results=n("#wpcode-help-result ul"),o.$categories=n("#wpcode-help-categories")},init_close_button(){o.$close_button.on("click",(function(e){e.preventDefault(),o.$overlay.fadeOut(200)}))},init_show(){n(e).on("click",".wpcode-show-help",(function(e){e.preventDefault(),o.$overlay.fadeIn(200)}))},init_accordion(){o.$categories.on("click",".wpcode-help-category header",(function(){const e=n(this).closest(".wpcode-help-category");o.toggle_category(e)})),o.$categories.on("click",".viewall",(function(e){e.preventDefault(),n(this).closest(".wpcode-help-docs").find("div").slideDown(),n(this).hide()}))},toggle_category(e){e.toggleClass("open"),e.find(".wpcode-help-docs").slideToggle()},init_search(){o.$search.on("keyup","input",o.input_search),o.$search.on("click","#wpcode-help-search-clear",o.clear_search)},input_search(){o.$search_results.html("");const e=n(this).val().toLowerCase(),t=n("#wpcode-help-categories .wpcode-help-docs li").filter((function(){return n(this).text().toLowerCase().indexOf(""+e)>-1}));e.length>2&&t.clone().appendTo(o.$search_results),0===t.length?o.$no_result.show():o.$no_result.hide(),o.$search.toggleClass("wpcode-search-empty",!e)},clear_search(){o.$search.find("input").val("").trigger("keyup")}};return o}(document,window,jQuery)).init()},298:function(){(window.WPCodeInputs||function(e,t,n){const o={init(){n(o.ready)},ready(){o.initFileUploads(),o.initCheckboxMultiselectColumns()},initFileUploads(){n(".wpcode-file-upload").each((function(){const e=n(this).find("input[type=file]"),t=n(this).find("label"),o=t.html();e.on("change",(function(e){let n="";this.files&&this.files.length>1?n=(this.getAttribute("data-multiple-caption")||"").replace("{count}",this.files.length):e.target.value&&(n=e.target.value.split("\\").pop()),n?t.find(".wpcode-file-field").html(n):t.html(o)})),e.on("focus",(function(){e.addClass("has-focus")})).on("blur",(function(){e.removeClass("has-focus")}))}))},initCheckboxMultiselectColumns(){n(e).on("change",".wpcode-checkbox-multiselect-columns input",(function(){var e=n(this),t=e.parent(),o=e.closest(".wpcode-checkbox-multiselect-columns"),i=t.text(),r="check-item-"+e.val(),s=o.find("#"+r);e.prop("checked")?(e.parent().addClass("checked"),s.length||o.find(".second-column ul").append('<li id="'+r+'">'+i+"</li>")):(e.parent().removeClass("checked"),o.find("#"+r).remove())})),n(e).on("click",".wpcode-checkbox-multiselect-columns .all",(function(e){e.preventDefault(),n(this).closest(".wpcode-checkbox-multiselect-columns").find("input[type=checkbox]").prop("checked",!0).trigger("change")}))}};return o}(document,window,jQuery)).init()},900:function(){(window.WPCodeItemsList||function(e,t,n){const o={category:"*",search_term:"",init:function(){o.should_init()&&(o.find_elements(),o.init_category_switch(),o.init_search(),o.show_connect_banner())},should_init:()=>(o.categories_list=n(".wpcode-items-filters"),o.categories_list.length>0),find_elements(){o.search_input=n("#wpcode-items-search")},init_category_switch(){o.categories_list.on("click","button",(function(){const e=n(this);e.hasClass("wpcode-active")||(o.switch_to_category(e.data("category")),o.switch_category_button(e))}))},switch_category_button(e){o.categories_list.find("button").removeClass("wpcode-active"),e.addClass("wpcode-active")},switch_to_category(e){o.category=e,o.filter_items()},filter_items(){let e;const t=n(".wpcode-list-item"),i=t.filter((function(){return"*"===o.category||n(this).data("categories").indexOf(o.category)>-1}));if(o.search_term.length>2){const i=o.search_term.toLowerCase();e=t.filter((function(){return n(this).text().toLowerCase().indexOf(""+i)>-1}))}else e=i;t.hide(),e.show(),o.update_banner_position()},init_search(){o.search_input.on("keyup change search",(function(){const e=n(this).val();e.length<3?o.search_term="":o.search_term=e,o.filter_items()}))},show_connect_banner:function(){const e=n("#tmpl-wpcode-library-connect-banner");if(!e.length)return;const t=n(".wpcode-items-list-category .wpcode-list-item:visible");t.length>5?t.eq(5).after(e.html()):t.last().after(e.html()),o.banner=n("#wpcode-library-connect-banner")},update_banner_position:function(){const e=n(".wpcode-items-list-category .wpcode-list-item:visible");console.log(o.banner),o.banner&&o.banner.length>0&&(e.length>5?o.banner.insertAfter(e.eq(5)):o.banner.insertAfter(e.last()))}};return o}(document,window,jQuery)).init()},423:function(){(window.WPCodeAdminLibrary||function(e,t,n){const o={l10n:wpcode,init:function(){o.should_init()&&(o.find_elements(),o.init_preview())},should_init:()=>n(".wpcode-library-preview-button").length>0,find_elements(){o.library_list=n(".wpcode-items-list"),o.code_preview_use=n("#wpcode-preview-use-code"),o.code_preview_edit=n("#wpcode-preview-edit-snippet"),o.code_preview_updated=n("#wpcode-preview-updated"),o.code_preview_title=n("#wpcode-preview-title")},init_preview(){o.library_list.on("click",".wpcode-library-preview-button",(function(e){e.preventDefault();const t=n(this).parent().find(".wpcode-item-use-button"),i=n(this).closest(".wpcode-list-item").data("id");o.show_code_preview(i,t.attr("href")),o.code_preview_use.text(t.text())})),n(".wpcode-close-modal, .wpcode-modal-overlay").on("click",(function(){n("body").removeClass("wpcode-show-modal")}))},show_code_preview(e,t){const i=o.l10n.library.snippets.find((t=>t.library_id===e));WPCodeAdminCodeEditor.switch_code_mode("wpcode-code-preview",i.code_type),WPCodeAdminCodeEditor.set_value("wpcode-code-preview",i.code),o.code_preview_use.attr("href",t),o.code_preview_title.text(i.title),o.code_preview_edit.length>0&&o.code_preview_edit.attr("href",o.l10n.cloud_edit_url+e),o.code_preview_updated&&o.code_preview_updated.text(i.updated_text),n("body").addClass("wpcode-show-modal"),WPCodeAdminCodeEditor.refresh("wpcode-code-preview")}};return o}(document,window,jQuery)).init()},5:function(){const e=window.WPCodeAdminNotices||function(e,t,n){const o={init:function(){t.WPCodeAdminNotices=o,o.notice_holder=n(e.getElementById("wpcode-notice-area")),o.document=n(e)},add_notice(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"updated";const i=n("<div />"),r=n("<p />");r.html(e),i.addClass("fade notice is-dismissible"),i.addClass(t),i.append(r),o.notice_holder.append(i),o.document.trigger("wp-updates-notice-added"),i.find("button").focus()}};return o}(document,window,jQuery);e.init()},770:function(){(window.WPCodeAdminNotifications||function(e,t,n){const o={init(){o.should_init()&&(o.find_elements(),o.init_open(),o.init_close(),o.init_dismiss(),o.init_view_switch(),o.update_count(o.active_count))},should_init:()=>(o.$drawer=n("#wpcode-notifications-drawer"),o.$drawer.length>0),find_elements(){o.$open_button=n("#wpcode-notifications-button"),o.$count=o.$drawer.find("#wpcode-notifications-count"),o.$dismissed_count=o.$drawer.find("#wpcode-notifications-dismissed-count"),o.active_count=o.$open_button.data("count")?o.$open_button.data("count"):0,o.dismissed_count=o.$open_button.data("dismissed"),o.$body=n("body"),o.$dismissed_button=n("#wpcode-notifications-show-dismissed"),o.$active_button=n("#wpcode-notifications-show-active"),o.$active_list=n(".wpcode-notifications-list .wpcode-notifications-active"),o.$dismissed_list=n(".wpcode-notifications-list .wpcode-notifications-dismissed"),o.$dismiss_all=n("#wpcode-dismiss-all")},update_count(e){o.$open_button.data("count",e).attr("data-count",e),0===e&&o.$open_button.removeAttr("data-count"),o.$count.text(e),o.dismissed_count+=Math.abs(e-o.active_count),o.active_count=e,o.$dismissed_count.text(o.dismissed_count),0===o.active_count&&o.$dismiss_all.hide()},init_open(){o.$open_button.on("click",(function(e){e.preventDefault(),o.$body.addClass("wpcode-notifications-open")}))},init_close(){o.$body.on("click",".wpcode-notifications-close, .wpcode-notifications-overlay",(function(e){e.preventDefault(),o.$body.removeClass("wpcode-notifications-open")}))},init_dismiss(){o.$drawer.on("click",".wpcode-notification-dismiss",(function(e){e.preventDefault();const t=n(this).data("id");if(o.dismiss_notification(t),"all"===t)return o.move_to_dismissed(o.$active_list.find("li")),void o.update_count(0);o.move_to_dismissed(n(this).closest("li")),o.update_count(o.active_count-1)}))},move_to_dismissed(e){e.slideUp((function(){n(this).prependTo(o.$dismissed_list).show()}))},dismiss_notification:e=>n.post(ajaxurl,{action:"wpcode_notification_dismiss",nonce:wpcode.nonce,id:e}),init_view_switch(){o.$dismissed_button.on("click",(function(e){e.preventDefault(),o.$drawer.addClass("show-dismissed")})),o.$active_button.on("click",(function(e){e.preventDefault(),o.$drawer.removeClass("show-dismissed")}))}};return o}(document,window,jQuery)).init()},124:function(){const e=window.WPCodeSpinner||function(e,t,n){const o={init(){t.WPCodeSpinner=o,o.spinner=n("#wpcode-admin-spinner")},show_button_spinner(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"right";e.prop("disabled",!0);const i=e.offset(),r=n("#adminmenuwrap").width(),s=n("#wpadminbar").height();let a={};o.spinner.show(),a="right"===t?{left:i.left-r+e.outerWidth(),top:i.top-s+e.outerHeight()/2-o.spinner.height()/2}:{left:i.left-r-o.spinner.outerWidth()-20,top:i.top-s+e.outerHeight()/2-o.spinner.height()/2},o.spinner.css(a)},hide_button_spinner(e){e.prop("disabled",!1),o.spinner.hide()}};return o}(document,window,jQuery);e.init()},801:function(){(window.WPCodeAdminTools||function(e,t,n){const o={init:function(){o.should_init()&&(o.find_elements(),o.init_importer(),o.init_ssl_verify())},should_init:()=>n("body").hasClass("wpcode-tools"),find_elements(){o.importer_button=n("#wpcode-importer-snippets-submit"),o.$import_progress=n("#wpcode-importer-process"),o.provider=n("#wpcode-importer-provider").val(),o.status_update=n("#wpcode-importer-status-update").html()},init_importer(){o.importer_button.on("click",(function(e){e.preventDefault();const t=n("#wpcode-importer-snippets input:checked");if(t.length){const e=[];t.each((function(){e.push(n(this).val())})),o.import_snippets(e)}}))},import_snippets(e){o.$import_progress.find(".snippet-total").text(e.length),o.$import_progress.find(".snippet-current").text("1"),n("#wpcode-importer-snippets").hide(),o.$import_progress.show(),o.import_queue=e,o.imported=0,o.import_snippet()},import_snippet(){const e=o.import_queue[0];n.post(ajaxurl,{action:"wpcode_import_snippet_"+o.provider,snippet_id:e,_wpnonce:wpcode.nonce}).done((function(e){if(e.success){o.import_queue.shift(),o.imported++;const t=n(o.status_update);t.find(".name span").text(e.data.name),t.find(".actions a").attr("href",e.data.edit),o.$import_progress.find(".status").prepend(t),o.$import_progress.find(".status").show(),0===o.import_queue.length?(o.$import_progress.find(".process-count").hide(),o.$import_progress.find(".snippets-completed").text(o.imported),o.$import_progress.find(".process-completed").show()):(o.$import_progress.find(".snippet-current").text(o.imported+1),o.import_snippet())}}))},init_ssl_verify(){n(e).on("click","#wpcode-ssl-verify",(function(e){e.preventDefault(),o.verify_ssl()}))},verify_ssl(){const e=n("#wpcode-ssl-verify"),t=e.text(),o=e.outerWidth(),i=e.parent(),r={action:"wpcode_verify_ssl",nonce:wpcode.nonce};e.css("width",o).prop("disabled",!0).text(wpcode.testing),n.post(ajaxurl,r,(function(n){console.log(n),i.find(".wpcode-alert, .wpcode-ssl-error").remove(),n.success&&e.before('<div class="wpcode-alert wpcode-alert-success">'+n.data.msg+"</div>"),!n.success&&n.data.msg&&e.before('<div class="wpcode-alert wpcode-alert-danger">'+n.data.msg+"</div>"),!n.success&&n.data.debug&&e.before('<div class="wpcode-ssl-error pre-error">'+n.data.debug+"</div>"),e.css("width",o).prop("disabled",!1).text(t)}))}};return o}(document,window,jQuery)).init()},868:function(){(window.WPCodeAdminWelcome||function(e,t,n){const o={init:function(){o.add_listener()},add_listener(){n("#wpbody-content").on("click",".wpcode-scroll-to",(function(e){e.preventDefault();const t=n(this).attr("href"),o=n(t);n("html, body").animate({scrollTop:o.offset().top},700)}))}};return o}(document,window,jQuery)).init()},686:function(e,t,n){var o,i,r;i=[n(567)],o=function(e){var t=function(){if(e&&e.fn&&e.fn.select2&&e.fn.select2.amd)var t=e.fn.select2.amd;var n,o,i;return t&&t.requirejs||(t?o=t:t={},function(e){var t,r,s,a,l={},c={},u={},d={},p=Object.prototype.hasOwnProperty,h=[].slice,f=/\.js$/;function m(e,t){return p.call(e,t)}function g(e,t){var n,o,i,r,s,a,l,c,d,p,h,m=t&&t.split("/"),g=u.map,w=g&&g["*"]||{};if(e){for(s=(e=e.split("/")).length-1,u.nodeIdCompat&&f.test(e[s])&&(e[s]=e[s].replace(f,"")),"."===e[0].charAt(0)&&m&&(e=m.slice(0,m.length-1).concat(e)),d=0;d<e.length;d++)if("."===(h=e[d]))e.splice(d,1),d-=1;else if(".."===h){if(0===d||1===d&&".."===e[2]||".."===e[d-1])continue;d>0&&(e.splice(d-1,2),d-=2)}e=e.join("/")}if((m||w)&&g){for(d=(n=e.split("/")).length;d>0;d-=1){if(o=n.slice(0,d).join("/"),m)for(p=m.length;p>0;p-=1)if((i=g[m.slice(0,p).join("/")])&&(i=i[o])){r=i,a=d;break}if(r)break;!l&&w&&w[o]&&(l=w[o],c=d)}!r&&l&&(r=l,a=c),r&&(n.splice(0,a,r),e=n.join("/"))}return e}function w(t,n){return function(){var o=h.call(arguments,0);return"string"!=typeof o[0]&&1===o.length&&o.push(null),r.apply(e,o.concat([t,n]))}}function v(e){return function(t){l[e]=t}}function y(n){if(m(c,n)){var o=c[n];delete c[n],d[n]=!0,t.apply(e,o)}if(!m(l,n)&&!m(d,n))throw new Error("No "+n);return l[n]}function b(e){var t,n=e?e.indexOf("!"):-1;return n>-1&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}function _(e){return e?b(e):[]}function x(e){return function(){return u&&u.config&&u.config[e]||{}}}s=function(e,t){var n,o,i=b(e),r=i[0],s=t[1];return e=i[1],r&&(n=y(r=g(r,s))),r?e=n&&n.normalize?n.normalize(e,(o=s,function(e){return g(e,o)})):g(e,s):(r=(i=b(e=g(e,s)))[0],e=i[1],r&&(n=y(r))),{f:r?r+"!"+e:e,n:e,pr:r,p:n}},a={require:function(e){return w(e)},exports:function(e){var t=l[e];return void 0!==t?t:l[e]={}},module:function(e){return{id:e,uri:"",exports:l[e],config:x(e)}}},t=function(t,n,o,i){var r,u,p,h,f,g,b,x=[],C=typeof o;if(g=_(i=i||t),"undefined"===C||"function"===C){for(n=!n.length&&o.length?["require","exports","module"]:n,f=0;f<n.length;f+=1)if("require"===(u=(h=s(n[f],g)).f))x[f]=a.require(t);else if("exports"===u)x[f]=a.exports(t),b=!0;else if("module"===u)r=x[f]=a.module(t);else if(m(l,u)||m(c,u)||m(d,u))x[f]=y(u);else{if(!h.p)throw new Error(t+" missing "+u);h.p.load(h.n,w(i,!0),v(u),{}),x[f]=l[u]}p=o?o.apply(l[t],x):void 0,t&&(r&&r.exports!==e&&r.exports!==l[t]?l[t]=r.exports:p===e&&b||(l[t]=p))}else t&&(l[t]=o)},n=o=r=function(n,o,i,l,c){if("string"==typeof n)return a[n]?a[n](o):y(s(n,_(o)).f);if(!n.splice){if((u=n).deps&&r(u.deps,u.callback),!o)return;o.splice?(n=o,o=i,i=null):n=e}return o=o||function(){},"function"==typeof i&&(i=l,l=c),l?t(e,n,o,i):setTimeout((function(){t(e,n,o,i)}),4),r},r.config=function(e){return r(e)},n._defined=l,(i=function(e,t,n){if("string"!=typeof e)throw new Error("See almond README: incorrect module build, no module name");t.splice||(n=t,t=[]),m(l,e)||m(c,e)||(c[e]=[e,t,n])}).amd={jQuery:!0}}(),t.requirejs=n,t.require=o,t.define=i),t.define("almond",(function(){})),t.define("jquery",[],(function(){var t=e||$;return null==t&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),t})),t.define("select2/utils",["jquery"],(function(e){var t={};function n(e){var t=e.prototype,n=[];for(var o in t)"function"==typeof t[o]&&"constructor"!==o&&n.push(o);return n}t.Extend=function(e,t){var n={}.hasOwnProperty;function o(){this.constructor=e}for(var i in t)n.call(t,i)&&(e[i]=t[i]);return o.prototype=t.prototype,e.prototype=new o,e.__super__=t.prototype,e},t.Decorate=function(e,t){var o=n(t),i=n(e);function r(){var n=Array.prototype.unshift,o=t.prototype.constructor.length,i=e.prototype.constructor;o>0&&(n.call(arguments,e.prototype.constructor),i=t.prototype.constructor),i.apply(this,arguments)}t.displayName=e.displayName,r.prototype=new function(){this.constructor=r};for(var s=0;s<i.length;s++){var a=i[s];r.prototype[a]=e.prototype[a]}for(var l=function(e){var n=function(){};e in r.prototype&&(n=r.prototype[e]);var o=t.prototype[e];return function(){return Array.prototype.unshift.call(arguments,n),o.apply(this,arguments)}},c=0;c<o.length;c++){var u=o[c];r.prototype[u]=l(u)}return r};var o=function(){this.listeners={}};o.prototype.on=function(e,t){this.listeners=this.listeners||{},e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t]},o.prototype.trigger=function(e){var t=Array.prototype.slice,n=t.call(arguments,1);this.listeners=this.listeners||{},null==n&&(n=[]),0===n.length&&n.push({}),n[0]._type=e,e in this.listeners&&this.invoke(this.listeners[e],t.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},o.prototype.invoke=function(e,t){for(var n=0,o=e.length;n<o;n++)e[n].apply(this,t)},t.Observable=o,t.generateChars=function(e){for(var t="",n=0;n<e;n++)t+=Math.floor(36*Math.random()).toString(36);return t},t.bind=function(e,t){return function(){e.apply(t,arguments)}},t._convertData=function(e){for(var t in e){var n=t.split("-"),o=e;if(1!==n.length){for(var i=0;i<n.length;i++){var r=n[i];(r=r.substring(0,1).toLowerCase()+r.substring(1))in o||(o[r]={}),i==n.length-1&&(o[r]=e[t]),o=o[r]}delete e[t]}}return e},t.hasScroll=function(t,n){var o=e(n),i=n.style.overflowX,r=n.style.overflowY;return(i!==r||"hidden"!==r&&"visible"!==r)&&("scroll"===i||"scroll"===r||o.innerHeight()<n.scrollHeight||o.innerWidth()<n.scrollWidth)},t.escapeMarkup=function(e){var t={"\\":"\","&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return"string"!=typeof e?e:String(e).replace(/[&<>"'\/\\]/g,(function(e){return t[e]}))},t.appendMany=function(t,n){if("1.7"===e.fn.jquery.substr(0,3)){var o=e();e.map(n,(function(e){o=o.add(e)})),n=o}t.append(n)},t.__cache={};var i=0;return t.GetUniqueElementId=function(e){var t=e.getAttribute("data-select2-id");return null==t&&(e.id?(t=e.id,e.setAttribute("data-select2-id",t)):(e.setAttribute("data-select2-id",++i),t=i.toString())),t},t.StoreData=function(e,n,o){var i=t.GetUniqueElementId(e);t.__cache[i]||(t.__cache[i]={}),t.__cache[i][n]=o},t.GetData=function(n,o){var i=t.GetUniqueElementId(n);return o?t.__cache[i]&&null!=t.__cache[i][o]?t.__cache[i][o]:e(n).data(o):t.__cache[i]},t.RemoveData=function(e){var n=t.GetUniqueElementId(e);null!=t.__cache[n]&&delete t.__cache[n],e.removeAttribute("data-select2-id")},t})),t.define("select2/results",["jquery","./utils"],(function(e,t){function n(e,t,o){this.$element=e,this.data=o,this.options=t,n.__super__.constructor.call(this)}return t.Extend(n,t.Observable),n.prototype.render=function(){var t=e('<ul class="select2-results__options" role="listbox"></ul>');return this.options.get("multiple")&&t.attr("aria-multiselectable","true"),this.$results=t,t},n.prototype.clear=function(){this.$results.empty()},n.prototype.displayMessage=function(t){var n=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var o=e('<li role="alert" aria-live="assertive" class="select2-results__option"></li>'),i=this.options.get("translations").get(t.message);o.append(n(i(t.args))),o[0].className+=" select2-results__message",this.$results.append(o)},n.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},n.prototype.append=function(e){this.hideLoading();var t=[];if(null!=e.results&&0!==e.results.length){e.results=this.sort(e.results);for(var n=0;n<e.results.length;n++){var o=e.results[n],i=this.option(o);t.push(i)}this.$results.append(t)}else 0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"})},n.prototype.position=function(e,t){t.find(".select2-results").append(e)},n.prototype.sort=function(e){return this.options.get("sorter")(e)},n.prototype.highlightFirstItem=function(){var e=this.$results.find(".select2-results__option[aria-selected]"),t=e.filter("[aria-selected=true]");t.length>0?t.first().trigger("mouseenter"):e.first().trigger("mouseenter"),this.ensureHighlightVisible()},n.prototype.setClasses=function(){var n=this;this.data.current((function(o){var i=e.map(o,(function(e){return e.id.toString()}));n.$results.find(".select2-results__option[aria-selected]").each((function(){var n=e(this),o=t.GetData(this,"data"),r=""+o.id;null!=o.element&&o.element.selected||null==o.element&&e.inArray(r,i)>-1?n.attr("aria-selected","true"):n.attr("aria-selected","false")}))}))},n.prototype.showLoading=function(e){this.hideLoading();var t={disabled:!0,loading:!0,text:this.options.get("translations").get("searching")(e)},n=this.option(t);n.className+=" loading-results",this.$results.prepend(n)},n.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},n.prototype.option=function(n){var o=document.createElement("li");o.className="select2-results__option";var i={role:"option","aria-selected":"false"},r=window.Element.prototype.matches||window.Element.prototype.msMatchesSelector||window.Element.prototype.webkitMatchesSelector;for(var s in(null!=n.element&&r.call(n.element,":disabled")||null==n.element&&n.disabled)&&(delete i["aria-selected"],i["aria-disabled"]="true"),null==n.id&&delete i["aria-selected"],null!=n._resultId&&(o.id=n._resultId),n.title&&(o.title=n.title),n.children&&(i.role="group",i["aria-label"]=n.text,delete i["aria-selected"]),i){var a=i[s];o.setAttribute(s,a)}if(n.children){var l=e(o),c=document.createElement("strong");c.className="select2-results__group",e(c),this.template(n,c);for(var u=[],d=0;d<n.children.length;d++){var p=n.children[d],h=this.option(p);u.push(h)}var f=e("<ul></ul>",{class:"select2-results__options select2-results__options--nested"});f.append(u),l.append(c),l.append(f)}else this.template(n,o);return t.StoreData(o,"data",n),o},n.prototype.bind=function(n,o){var i=this,r=n.id+"-results";this.$results.attr("id",r),n.on("results:all",(function(e){i.clear(),i.append(e.data),n.isOpen()&&(i.setClasses(),i.highlightFirstItem())})),n.on("results:append",(function(e){i.append(e.data),n.isOpen()&&i.setClasses()})),n.on("query",(function(e){i.hideMessages(),i.showLoading(e)})),n.on("select",(function(){n.isOpen()&&(i.setClasses(),i.options.get("scrollAfterSelect")&&i.highlightFirstItem())})),n.on("unselect",(function(){n.isOpen()&&(i.setClasses(),i.options.get("scrollAfterSelect")&&i.highlightFirstItem())})),n.on("open",(function(){i.$results.attr("aria-expanded","true"),i.$results.attr("aria-hidden","false"),i.setClasses(),i.ensureHighlightVisible()})),n.on("close",(function(){i.$results.attr("aria-expanded","false"),i.$results.attr("aria-hidden","true"),i.$results.removeAttr("aria-activedescendant")})),n.on("results:toggle",(function(){var e=i.getHighlightedResults();0!==e.length&&e.trigger("mouseup")})),n.on("results:select",(function(){var e=i.getHighlightedResults();if(0!==e.length){var n=t.GetData(e[0],"data");"true"==e.attr("aria-selected")?i.trigger("close",{}):i.trigger("select",{data:n})}})),n.on("results:previous",(function(){var e=i.getHighlightedResults(),t=i.$results.find("[aria-selected]"),n=t.index(e);if(!(n<=0)){var o=n-1;0===e.length&&(o=0);var r=t.eq(o);r.trigger("mouseenter");var s=i.$results.offset().top,a=r.offset().top,l=i.$results.scrollTop()+(a-s);0===o?i.$results.scrollTop(0):a-s<0&&i.$results.scrollTop(l)}})),n.on("results:next",(function(){var e=i.getHighlightedResults(),t=i.$results.find("[aria-selected]"),n=t.index(e)+1;if(!(n>=t.length)){var o=t.eq(n);o.trigger("mouseenter");var r=i.$results.offset().top+i.$results.outerHeight(!1),s=o.offset().top+o.outerHeight(!1),a=i.$results.scrollTop()+s-r;0===n?i.$results.scrollTop(0):s>r&&i.$results.scrollTop(a)}})),n.on("results:focus",(function(e){e.element.addClass("select2-results__option--highlighted")})),n.on("results:message",(function(e){i.displayMessage(e)})),e.fn.mousewheel&&this.$results.on("mousewheel",(function(e){var t=i.$results.scrollTop(),n=i.$results.get(0).scrollHeight-t+e.deltaY,o=e.deltaY>0&&t-e.deltaY<=0,r=e.deltaY<0&&n<=i.$results.height();o?(i.$results.scrollTop(0),e.preventDefault(),e.stopPropagation()):r&&(i.$results.scrollTop(i.$results.get(0).scrollHeight-i.$results.height()),e.preventDefault(),e.stopPropagation())})),this.$results.on("mouseup",".select2-results__option[aria-selected]",(function(n){var o=e(this),r=t.GetData(this,"data");"true"!==o.attr("aria-selected")?i.trigger("select",{originalEvent:n,data:r}):i.options.get("multiple")?i.trigger("unselect",{originalEvent:n,data:r}):i.trigger("close",{})})),this.$results.on("mouseenter",".select2-results__option[aria-selected]",(function(n){var o=t.GetData(this,"data");i.getHighlightedResults().removeClass("select2-results__option--highlighted"),i.trigger("results:focus",{data:o,element:e(this)})}))},n.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},n.prototype.destroy=function(){this.$results.remove()},n.prototype.ensureHighlightVisible=function(){var e=this.getHighlightedResults();if(0!==e.length){var t=this.$results.find("[aria-selected]").index(e),n=this.$results.offset().top,o=e.offset().top,i=this.$results.scrollTop()+(o-n),r=o-n;i-=2*e.outerHeight(!1),t<=2?this.$results.scrollTop(0):(r>this.$results.outerHeight()||r<0)&&this.$results.scrollTop(i)}},n.prototype.template=function(t,n){var o=this.options.get("templateResult"),i=this.options.get("escapeMarkup"),r=o(t,n);null==r?n.style.display="none":"string"==typeof r?n.innerHTML=i(r):e(n).append(r)},n})),t.define("select2/keys",[],(function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}})),t.define("select2/selection/base",["jquery","../utils","../keys"],(function(e,t,n){function o(e,t){this.$element=e,this.options=t,o.__super__.constructor.call(this)}return t.Extend(o,t.Observable),o.prototype.render=function(){var n=e('<span class="select2-selection" role="combobox" aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=t.GetData(this.$element[0],"old-tabindex")?this._tabindex=t.GetData(this.$element[0],"old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),n.attr("title",this.$element.attr("title")),n.attr("tabindex",this._tabindex),n.attr("aria-disabled","false"),this.$selection=n,n},o.prototype.bind=function(e,t){var o=this,i=e.id+"-results";this.container=e,this.$selection.on("focus",(function(e){o.trigger("focus",e)})),this.$selection.on("blur",(function(e){o._handleBlur(e)})),this.$selection.on("keydown",(function(e){o.trigger("keypress",e),e.which===n.SPACE&&e.preventDefault()})),e.on("results:focus",(function(e){o.$selection.attr("aria-activedescendant",e.data._resultId)})),e.on("selection:update",(function(e){o.update(e.data)})),e.on("open",(function(){o.$selection.attr("aria-expanded","true"),o.$selection.attr("aria-owns",i),o._attachCloseHandler(e)})),e.on("close",(function(){o.$selection.attr("aria-expanded","false"),o.$selection.removeAttr("aria-activedescendant"),o.$selection.removeAttr("aria-owns"),o.$selection.trigger("focus"),o._detachCloseHandler(e)})),e.on("enable",(function(){o.$selection.attr("tabindex",o._tabindex),o.$selection.attr("aria-disabled","false")})),e.on("disable",(function(){o.$selection.attr("tabindex","-1"),o.$selection.attr("aria-disabled","true")}))},o.prototype._handleBlur=function(t){var n=this;window.setTimeout((function(){document.activeElement==n.$selection[0]||e.contains(n.$selection[0],document.activeElement)||n.trigger("blur",t)}),1)},o.prototype._attachCloseHandler=function(n){e(document.body).on("mousedown.select2."+n.id,(function(n){var o=e(n.target).closest(".select2");e(".select2.select2-container--open").each((function(){this!=o[0]&&t.GetData(this,"element").select2("close")}))}))},o.prototype._detachCloseHandler=function(t){e(document.body).off("mousedown.select2."+t.id)},o.prototype.position=function(e,t){t.find(".selection").append(e)},o.prototype.destroy=function(){this._detachCloseHandler(this.container)},o.prototype.update=function(e){throw new Error("The `update` method must be defined in child classes.")},o.prototype.isEnabled=function(){return!this.isDisabled()},o.prototype.isDisabled=function(){return this.options.get("disabled")},o})),t.define("select2/selection/single",["jquery","./base","../utils","../keys"],(function(e,t,n,o){function i(){i.__super__.constructor.apply(this,arguments)}return n.Extend(i,t),i.prototype.render=function(){var e=i.__super__.render.call(this);return e.addClass("select2-selection--single"),e.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),e},i.prototype.bind=function(e,t){var n=this;i.__super__.bind.apply(this,arguments);var o=e.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",o).attr("role","textbox").attr("aria-readonly","true"),this.$selection.attr("aria-labelledby",o),this.$selection.on("mousedown",(function(e){1===e.which&&n.trigger("toggle",{originalEvent:e})})),this.$selection.on("focus",(function(e){})),this.$selection.on("blur",(function(e){})),e.on("focus",(function(t){e.isOpen()||n.$selection.trigger("focus")}))},i.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},i.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},i.prototype.selectionContainer=function(){return e("<span></span>")},i.prototype.update=function(e){if(0!==e.length){var t=e[0],n=this.$selection.find(".select2-selection__rendered"),o=this.display(t,n);n.empty().append(o);var i=t.title||t.text;i?n.attr("title",i):n.removeAttr("title")}else this.clear()},i})),t.define("select2/selection/multiple",["jquery","./base","../utils"],(function(e,t,n){function o(e,t){o.__super__.constructor.apply(this,arguments)}return n.Extend(o,t),o.prototype.render=function(){var e=o.__super__.render.call(this);return e.addClass("select2-selection--multiple"),e.html('<ul class="select2-selection__rendered"></ul>'),e},o.prototype.bind=function(t,i){var r=this;o.__super__.bind.apply(this,arguments),this.$selection.on("click",(function(e){r.trigger("toggle",{originalEvent:e})})),this.$selection.on("click",".select2-selection__choice__remove",(function(t){if(!r.isDisabled()){var o=e(this).parent(),i=n.GetData(o[0],"data");r.trigger("unselect",{originalEvent:t,data:i})}}))},o.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},o.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},o.prototype.selectionContainer=function(){return e('<li class="select2-selection__choice"><span class="select2-selection__choice__remove" role="presentation">×</span></li>')},o.prototype.update=function(e){if(this.clear(),0!==e.length){for(var t=[],o=0;o<e.length;o++){var i=e[o],r=this.selectionContainer(),s=this.display(i,r);r.append(s);var a=i.title||i.text;a&&r.attr("title",a),n.StoreData(r[0],"data",i),t.push(r)}var l=this.$selection.find(".select2-selection__rendered");n.appendMany(l,t)}},o})),t.define("select2/selection/placeholder",["../utils"],(function(e){function t(e,t,n){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n)}return t.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},t.prototype.createPlaceholder=function(e,t){var n=this.selectionContainer();return n.html(this.display(t)),n.addClass("select2-selection__placeholder").removeClass("select2-selection__choice"),n},t.prototype.update=function(e,t){var n=1==t.length&&t[0].id!=this.placeholder.id;if(t.length>1||n)return e.call(this,t);this.clear();var o=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(o)},t})),t.define("select2/selection/allowClear",["jquery","../keys","../utils"],(function(e,t,n){function o(){}return o.prototype.bind=function(e,t,n){var o=this;e.call(this,t,n),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",(function(e){o._handleClear(e)})),t.on("keypress",(function(e){o._handleKeyboardClear(e,t)}))},o.prototype._handleClear=function(e,t){if(!this.isDisabled()){var o=this.$selection.find(".select2-selection__clear");if(0!==o.length){t.stopPropagation();var i=n.GetData(o[0],"data"),r=this.$element.val();this.$element.val(this.placeholder.id);var s={data:i};if(this.trigger("clear",s),s.prevented)this.$element.val(r);else{for(var a=0;a<i.length;a++)if(s={data:i[a]},this.trigger("unselect",s),s.prevented)return void this.$element.val(r);this.$element.trigger("input").trigger("change"),this.trigger("toggle",{})}}}},o.prototype._handleKeyboardClear=function(e,n,o){o.isOpen()||n.which!=t.DELETE&&n.which!=t.BACKSPACE||this._handleClear(n)},o.prototype.update=function(t,o){if(t.call(this,o),!(this.$selection.find(".select2-selection__placeholder").length>0||0===o.length)){var i=this.options.get("translations").get("removeAllItems"),r=e('<span class="select2-selection__clear" title="'+i()+'">×</span>');n.StoreData(r[0],"data",o),this.$selection.find(".select2-selection__rendered").prepend(r)}},o})),t.define("select2/selection/search",["jquery","../utils","../keys"],(function(e,t,n){function o(e,t,n){e.call(this,t,n)}return o.prototype.render=function(t){var n=e('<li class="select2-search select2-search--inline"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></li>');this.$searchContainer=n,this.$search=n.find("input");var o=t.call(this);return this._transferTabIndex(),o},o.prototype.bind=function(e,o,i){var r=this,s=o.id+"-results";e.call(this,o,i),o.on("open",(function(){r.$search.attr("aria-controls",s),r.$search.trigger("focus")})),o.on("close",(function(){r.$search.val(""),r.$search.removeAttr("aria-controls"),r.$search.removeAttr("aria-activedescendant"),r.$search.trigger("focus")})),o.on("enable",(function(){r.$search.prop("disabled",!1),r._transferTabIndex()})),o.on("disable",(function(){r.$search.prop("disabled",!0)})),o.on("focus",(function(e){r.$search.trigger("focus")})),o.on("results:focus",(function(e){e.data._resultId?r.$search.attr("aria-activedescendant",e.data._resultId):r.$search.removeAttr("aria-activedescendant")})),this.$selection.on("focusin",".select2-search--inline",(function(e){r.trigger("focus",e)})),this.$selection.on("focusout",".select2-search--inline",(function(e){r._handleBlur(e)})),this.$selection.on("keydown",".select2-search--inline",(function(e){if(e.stopPropagation(),r.trigger("keypress",e),r._keyUpPrevented=e.isDefaultPrevented(),e.which===n.BACKSPACE&&""===r.$search.val()){var o=r.$searchContainer.prev(".select2-selection__choice");if(o.length>0){var i=t.GetData(o[0],"data");r.searchRemoveChoice(i),e.preventDefault()}}})),this.$selection.on("click",".select2-search--inline",(function(e){r.$search.val()&&e.stopPropagation()}));var a=document.documentMode,l=a&&a<=11;this.$selection.on("input.searchcheck",".select2-search--inline",(function(e){l?r.$selection.off("input.search input.searchcheck"):r.$selection.off("keyup.search")})),this.$selection.on("keyup.search input.search",".select2-search--inline",(function(e){if(l&&"input"===e.type)r.$selection.off("input.search input.searchcheck");else{var t=e.which;t!=n.SHIFT&&t!=n.CTRL&&t!=n.ALT&&t!=n.TAB&&r.handleSearch(e)}}))},o.prototype._transferTabIndex=function(e){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},o.prototype.createPlaceholder=function(e,t){this.$search.attr("placeholder",t.text)},o.prototype.update=function(e,t){var n=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),e.call(this,t),this.$selection.find(".select2-selection__rendered").append(this.$searchContainer),this.resizeSearch(),n&&this.$search.trigger("focus")},o.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},o.prototype.searchRemoveChoice=function(e,t){this.trigger("unselect",{data:t}),this.$search.val(t.text),this.handleSearch()},o.prototype.resizeSearch=function(){this.$search.css("width","25px");var e;e=""!==this.$search.attr("placeholder")?this.$selection.find(".select2-selection__rendered").width():.75*(this.$search.val().length+1)+"em",this.$search.css("width",e)},o})),t.define("select2/selection/eventRelay",["jquery"],(function(e){function t(){}return t.prototype.bind=function(t,n,o){var i=this,r=["open","opening","close","closing","select","selecting","unselect","unselecting","clear","clearing"],s=["opening","closing","selecting","unselecting","clearing"];t.call(this,n,o),n.on("*",(function(t,n){if(-1!==e.inArray(t,r)){n=n||{};var o=e.Event("select2:"+t,{params:n});i.$element.trigger(o),-1!==e.inArray(t,s)&&(n.prevented=o.isDefaultPrevented())}}))},t})),t.define("select2/translation",["jquery","require"],(function(e,t){function n(e){this.dict=e||{}}return n.prototype.all=function(){return this.dict},n.prototype.get=function(e){return this.dict[e]},n.prototype.extend=function(t){this.dict=e.extend({},t.all(),this.dict)},n._cache={},n.loadPath=function(e){if(!(e in n._cache)){var o=t(e);n._cache[e]=o}return new n(n._cache[e])},n})),t.define("select2/diacritics",[],(function(){return{"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Œ":"OE","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","œ":"oe","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ώ":"ω","ς":"σ","’":"'"}})),t.define("select2/data/base",["../utils"],(function(e){function t(e,n){t.__super__.constructor.call(this)}return e.Extend(t,e.Observable),t.prototype.current=function(e){throw new Error("The `current` method must be defined in child classes.")},t.prototype.query=function(e,t){throw new Error("The `query` method must be defined in child classes.")},t.prototype.bind=function(e,t){},t.prototype.destroy=function(){},t.prototype.generateResultId=function(t,n){var o=t.id+"-result-";return o+=e.generateChars(4),null!=n.id?o+="-"+n.id.toString():o+="-"+e.generateChars(4),o},t})),t.define("select2/data/select",["./base","../utils","jquery"],(function(e,t,n){function o(e,t){this.$element=e,this.options=t,o.__super__.constructor.call(this)}return t.Extend(o,e),o.prototype.current=function(e){var t=[],o=this;this.$element.find(":selected").each((function(){var e=n(this),i=o.item(e);t.push(i)})),e(t)},o.prototype.select=function(e){var t=this;if(e.selected=!0,n(e.element).is("option"))return e.element.selected=!0,void this.$element.trigger("input").trigger("change");if(this.$element.prop("multiple"))this.current((function(o){var i=[];(e=[e]).push.apply(e,o);for(var r=0;r<e.length;r++){var s=e[r].id;-1===n.inArray(s,i)&&i.push(s)}t.$element.val(i),t.$element.trigger("input").trigger("change")}));else{var o=e.id;this.$element.val(o),this.$element.trigger("input").trigger("change")}},o.prototype.unselect=function(e){var t=this;if(this.$element.prop("multiple")){if(e.selected=!1,n(e.element).is("option"))return e.element.selected=!1,void this.$element.trigger("input").trigger("change");this.current((function(o){for(var i=[],r=0;r<o.length;r++){var s=o[r].id;s!==e.id&&-1===n.inArray(s,i)&&i.push(s)}t.$element.val(i),t.$element.trigger("input").trigger("change")}))}},o.prototype.bind=function(e,t){var n=this;this.container=e,e.on("select",(function(e){n.select(e.data)})),e.on("unselect",(function(e){n.unselect(e.data)}))},o.prototype.destroy=function(){this.$element.find("*").each((function(){t.RemoveData(this)}))},o.prototype.query=function(e,t){var o=[],i=this;this.$element.children().each((function(){var t=n(this);if(t.is("option")||t.is("optgroup")){var r=i.item(t),s=i.matches(e,r);null!==s&&o.push(s)}})),t({results:o})},o.prototype.addOptions=function(e){t.appendMany(this.$element,e)},o.prototype.option=function(e){var o;e.children?(o=document.createElement("optgroup")).label=e.text:void 0!==(o=document.createElement("option")).textContent?o.textContent=e.text:o.innerText=e.text,void 0!==e.id&&(o.value=e.id),e.disabled&&(o.disabled=!0),e.selected&&(o.selected=!0),e.title&&(o.title=e.title);var i=n(o),r=this._normalizeItem(e);return r.element=o,t.StoreData(o,"data",r),i},o.prototype.item=function(e){var o={};if(null!=(o=t.GetData(e[0],"data")))return o;if(e.is("option"))o={id:e.val(),text:e.text(),disabled:e.prop("disabled"),selected:e.prop("selected"),title:e.prop("title")};else if(e.is("optgroup")){o={text:e.prop("label"),children:[],title:e.prop("title")};for(var i=e.children("option"),r=[],s=0;s<i.length;s++){var a=n(i[s]),l=this.item(a);r.push(l)}o.children=r}return(o=this._normalizeItem(o)).element=e[0],t.StoreData(e[0],"data",o),o},o.prototype._normalizeItem=function(e){e!==Object(e)&&(e={id:e,text:e});return null!=(e=n.extend({},{text:""},e)).id&&(e.id=e.id.toString()),null!=e.text&&(e.text=e.text.toString()),null==e._resultId&&e.id&&null!=this.container&&(e._resultId=this.generateResultId(this.container,e)),n.extend({},{selected:!1,disabled:!1},e)},o.prototype.matches=function(e,t){return this.options.get("matcher")(e,t)},o})),t.define("select2/data/array",["./select","../utils","jquery"],(function(e,t,n){function o(e,t){this._dataToConvert=t.get("data")||[],o.__super__.constructor.call(this,e,t)}return t.Extend(o,e),o.prototype.bind=function(e,t){o.__super__.bind.call(this,e,t),this.addOptions(this.convertToOptions(this._dataToConvert))},o.prototype.select=function(e){var t=this.$element.find("option").filter((function(t,n){return n.value==e.id.toString()}));0===t.length&&(t=this.option(e),this.addOptions(t)),o.__super__.select.call(this,e)},o.prototype.convertToOptions=function(e){var o=this,i=this.$element.find("option"),r=i.map((function(){return o.item(n(this)).id})).get(),s=[];function a(e){return function(){return n(this).val()==e.id}}for(var l=0;l<e.length;l++){var c=this._normalizeItem(e[l]);if(n.inArray(c.id,r)>=0){var u=i.filter(a(c)),d=this.item(u),p=n.extend(!0,{},c,d),h=this.option(p);u.replaceWith(h)}else{var f=this.option(c);if(c.children){var m=this.convertToOptions(c.children);t.appendMany(f,m)}s.push(f)}}return s},o})),t.define("select2/data/ajax",["./array","../utils","jquery"],(function(e,t,n){function o(e,t){this.ajaxOptions=this._applyDefaults(t.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),o.__super__.constructor.call(this,e,t)}return t.Extend(o,e),o.prototype._applyDefaults=function(e){var t={data:function(e){return n.extend({},e,{q:e.term})},transport:function(e,t,o){var i=n.ajax(e);return i.then(t),i.fail(o),i}};return n.extend({},t,e,!0)},o.prototype.processResults=function(e){return e},o.prototype.query=function(e,t){var o=this;null!=this._request&&(n.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var i=n.extend({type:"GET"},this.ajaxOptions);function r(){var r=i.transport(i,(function(i){var r=o.processResults(i,e);o.options.get("debug")&&window.console&&console.error&&(r&&r.results&&n.isArray(r.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),t(r)}),(function(){(!("status"in r)||0!==r.status&&"0"!==r.status)&&o.trigger("results:message",{message:"errorLoading"})}));o._request=r}"function"==typeof i.url&&(i.url=i.url.call(this.$element,e)),"function"==typeof i.data&&(i.data=i.data.call(this.$element,e)),this.ajaxOptions.delay&&null!=e.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(r,this.ajaxOptions.delay)):r()},o})),t.define("select2/data/tags",["jquery"],(function(e){function t(t,n,o){var i=o.get("tags"),r=o.get("createTag");void 0!==r&&(this.createTag=r);var s=o.get("insertTag");if(void 0!==s&&(this.insertTag=s),t.call(this,n,o),e.isArray(i))for(var a=0;a<i.length;a++){var l=i[a],c=this._normalizeItem(l),u=this.option(c);this.$element.append(u)}}return t.prototype.query=function(e,t,n){var o=this;this._removeOldTags(),null!=t.term&&null==t.page?e.call(this,t,(function e(i,r){for(var s=i.results,a=0;a<s.length;a++){var l=s[a],c=null!=l.children&&!e({results:l.children},!0);if((l.text||"").toUpperCase()===(t.term||"").toUpperCase()||c)return!r&&(i.data=s,void n(i))}if(r)return!0;var u=o.createTag(t);if(null!=u){var d=o.option(u);d.attr("data-select2-tag",!0),o.addOptions([d]),o.insertTag(s,u)}i.results=s,n(i)})):e.call(this,t,n)},t.prototype.createTag=function(t,n){var o=e.trim(n.term);return""===o?null:{id:o,text:o}},t.prototype.insertTag=function(e,t,n){t.unshift(n)},t.prototype._removeOldTags=function(t){this.$element.find("option[data-select2-tag]").each((function(){this.selected||e(this).remove()}))},t})),t.define("select2/data/tokenizer",["jquery"],(function(e){function t(e,t,n){var o=n.get("tokenizer");void 0!==o&&(this.tokenizer=o),e.call(this,t,n)}return t.prototype.bind=function(e,t,n){e.call(this,t,n),this.$search=t.dropdown.$search||t.selection.$search||n.find(".select2-search__field")},t.prototype.query=function(t,n,o){var i=this;n.term=n.term||"";var r=this.tokenizer(n,this.options,(function(t){var n=i._normalizeItem(t);if(!i.$element.find("option").filter((function(){return e(this).val()===n.id})).length){var o=i.option(n);o.attr("data-select2-tag",!0),i._removeOldTags(),i.addOptions([o])}!function(e){i.trigger("select",{data:e})}(n)}));r.term!==n.term&&(this.$search.length&&(this.$search.val(r.term),this.$search.trigger("focus")),n.term=r.term),t.call(this,n,o)},t.prototype.tokenizer=function(t,n,o,i){for(var r=o.get("tokenSeparators")||[],s=n.term,a=0,l=this.createTag||function(e){return{id:e.term,text:e.term}};a<s.length;){var c=s[a];if(-1!==e.inArray(c,r)){var u=s.substr(0,a),d=l(e.extend({},n,{term:u}));null!=d?(i(d),s=s.substr(a+1)||"",a=0):a++}else a++}return{term:s}},t})),t.define("select2/data/minimumInputLength",[],(function(){function e(e,t,n){this.minimumInputLength=n.get("minimumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.term=t.term||"",t.term.length<this.minimumInputLength?this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e})),t.define("select2/data/maximumInputLength",[],(function(){function e(e,t,n){this.maximumInputLength=n.get("maximumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.term=t.term||"",this.maximumInputLength>0&&t.term.length>this.maximumInputLength?this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e})),t.define("select2/data/maximumSelectionLength",[],(function(){function e(e,t,n){this.maximumSelectionLength=n.get("maximumSelectionLength"),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){var o=this;e.call(this,t,n),t.on("select",(function(){o._checkIfMaximumSelected()}))},e.prototype.query=function(e,t,n){var o=this;this._checkIfMaximumSelected((function(){e.call(o,t,n)}))},e.prototype._checkIfMaximumSelected=function(e,t){var n=this;this.current((function(e){var o=null!=e?e.length:0;n.maximumSelectionLength>0&&o>=n.maximumSelectionLength?n.trigger("results:message",{message:"maximumSelected",args:{maximum:n.maximumSelectionLength}}):t&&t()}))},e})),t.define("select2/dropdown",["jquery","./utils"],(function(e,t){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return t.Extend(n,t.Observable),n.prototype.render=function(){var t=e('<span class="select2-dropdown"><span class="select2-results"></span></span>');return t.attr("dir",this.options.get("dir")),this.$dropdown=t,t},n.prototype.bind=function(){},n.prototype.position=function(e,t){},n.prototype.destroy=function(){this.$dropdown.remove()},n})),t.define("select2/dropdown/search",["jquery","../utils"],(function(e,t){function n(){}return n.prototype.render=function(t){var n=t.call(this),o=e('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></span>');return this.$searchContainer=o,this.$search=o.find("input"),n.prepend(o),n},n.prototype.bind=function(t,n,o){var i=this,r=n.id+"-results";t.call(this,n,o),this.$search.on("keydown",(function(e){i.trigger("keypress",e),i._keyUpPrevented=e.isDefaultPrevented()})),this.$search.on("input",(function(t){e(this).off("keyup")})),this.$search.on("keyup input",(function(e){i.handleSearch(e)})),n.on("open",(function(){i.$search.attr("tabindex",0),i.$search.attr("aria-controls",r),i.$search.trigger("focus"),window.setTimeout((function(){i.$search.trigger("focus")}),0)})),n.on("close",(function(){i.$search.attr("tabindex",-1),i.$search.removeAttr("aria-controls"),i.$search.removeAttr("aria-activedescendant"),i.$search.val(""),i.$search.trigger("blur")})),n.on("focus",(function(){n.isOpen()||i.$search.trigger("focus")})),n.on("results:all",(function(e){null!=e.query.term&&""!==e.query.term||(i.showSearch(e)?i.$searchContainer.removeClass("select2-search--hide"):i.$searchContainer.addClass("select2-search--hide"))})),n.on("results:focus",(function(e){e.data._resultId?i.$search.attr("aria-activedescendant",e.data._resultId):i.$search.removeAttr("aria-activedescendant")}))},n.prototype.handleSearch=function(e){if(!this._keyUpPrevented){var t=this.$search.val();this.trigger("query",{term:t})}this._keyUpPrevented=!1},n.prototype.showSearch=function(e,t){return!0},n})),t.define("select2/dropdown/hidePlaceholder",[],(function(){function e(e,t,n,o){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n,o)}return e.prototype.append=function(e,t){t.results=this.removePlaceholder(t.results),e.call(this,t)},e.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},e.prototype.removePlaceholder=function(e,t){for(var n=t.slice(0),o=t.length-1;o>=0;o--){var i=t[o];this.placeholder.id===i.id&&n.splice(o,1)}return n},e})),t.define("select2/dropdown/infiniteScroll",["jquery"],(function(e){function t(e,t,n,o){this.lastParams={},e.call(this,t,n,o),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return t.prototype.append=function(e,t){this.$loadingMore.remove(),this.loading=!1,e.call(this,t),this.showLoadingMore(t)&&(this.$results.append(this.$loadingMore),this.loadMoreIfNeeded())},t.prototype.bind=function(e,t,n){var o=this;e.call(this,t,n),t.on("query",(function(e){o.lastParams=e,o.loading=!0})),t.on("query:append",(function(e){o.lastParams=e,o.loading=!0})),this.$results.on("scroll",this.loadMoreIfNeeded.bind(this))},t.prototype.loadMoreIfNeeded=function(){var t=e.contains(document.documentElement,this.$loadingMore[0]);!this.loading&&t&&this.$results.offset().top+this.$results.outerHeight(!1)+50>=this.$loadingMore.offset().top+this.$loadingMore.outerHeight(!1)&&this.loadMore()},t.prototype.loadMore=function(){this.loading=!0;var t=e.extend({},{page:1},this.lastParams);t.page++,this.trigger("query:append",t)},t.prototype.showLoadingMore=function(e,t){return t.pagination&&t.pagination.more},t.prototype.createLoadingMore=function(){var t=e('<li class="select2-results__option select2-results__option--load-more"role="option" aria-disabled="true"></li>'),n=this.options.get("translations").get("loadingMore");return t.html(n(this.lastParams)),t},t})),t.define("select2/dropdown/attachBody",["jquery","../utils"],(function(e,t){function n(t,n,o){this.$dropdownParent=e(o.get("dropdownParent")||document.body),t.call(this,n,o)}return n.prototype.bind=function(e,t,n){var o=this;e.call(this,t,n),t.on("open",(function(){o._showDropdown(),o._attachPositioningHandler(t),o._bindContainerResultHandlers(t)})),t.on("close",(function(){o._hideDropdown(),o._detachPositioningHandler(t)})),this.$dropdownContainer.on("mousedown",(function(e){e.stopPropagation()}))},n.prototype.destroy=function(e){e.call(this),this.$dropdownContainer.remove()},n.prototype.position=function(e,t,n){t.attr("class",n.attr("class")),t.removeClass("select2"),t.addClass("select2-container--open"),t.css({position:"absolute",top:-999999}),this.$container=n},n.prototype.render=function(t){var n=e("<span></span>"),o=t.call(this);return n.append(o),this.$dropdownContainer=n,n},n.prototype._hideDropdown=function(e){this.$dropdownContainer.detach()},n.prototype._bindContainerResultHandlers=function(e,t){if(!this._containerResultsHandlersBound){var n=this;t.on("results:all",(function(){n._positionDropdown(),n._resizeDropdown()})),t.on("results:append",(function(){n._positionDropdown(),n._resizeDropdown()})),t.on("results:message",(function(){n._positionDropdown(),n._resizeDropdown()})),t.on("select",(function(){n._positionDropdown(),n._resizeDropdown()})),t.on("unselect",(function(){n._positionDropdown(),n._resizeDropdown()})),this._containerResultsHandlersBound=!0}},n.prototype._attachPositioningHandler=function(n,o){var i=this,r="scroll.select2."+o.id,s="resize.select2."+o.id,a="orientationchange.select2."+o.id,l=this.$container.parents().filter(t.hasScroll);l.each((function(){t.StoreData(this,"select2-scroll-position",{x:e(this).scrollLeft(),y:e(this).scrollTop()})})),l.on(r,(function(n){var o=t.GetData(this,"select2-scroll-position");e(this).scrollTop(o.y)})),e(window).on(r+" "+s+" "+a,(function(e){i._positionDropdown(),i._resizeDropdown()}))},n.prototype._detachPositioningHandler=function(n,o){var i="scroll.select2."+o.id,r="resize.select2."+o.id,s="orientationchange.select2."+o.id;this.$container.parents().filter(t.hasScroll).off(i),e(window).off(i+" "+r+" "+s)},n.prototype._positionDropdown=function(){var t=e(window),n=this.$dropdown.hasClass("select2-dropdown--above"),o=this.$dropdown.hasClass("select2-dropdown--below"),i=null,r=this.$container.offset();r.bottom=r.top+this.$container.outerHeight(!1);var s={height:this.$container.outerHeight(!1)};s.top=r.top,s.bottom=r.top+s.height;var a=this.$dropdown.outerHeight(!1),l=t.scrollTop(),c=t.scrollTop()+t.height(),u=l<r.top-a,d=c>r.bottom+a,p={left:r.left,top:s.bottom},h=this.$dropdownParent;"static"===h.css("position")&&(h=h.offsetParent());var f={top:0,left:0};(e.contains(document.body,h[0])||h[0].isConnected)&&(f=h.offset()),p.top-=f.top,p.left-=f.left,n||o||(i="below"),d||!u||n?!u&&d&&n&&(i="below"):i="above",("above"==i||n&&"below"!==i)&&(p.top=s.top-f.top-a),null!=i&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+i),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+i)),this.$dropdownContainer.css(p)},n.prototype._resizeDropdown=function(){var e={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(e.minWidth=e.width,e.position="relative",e.width="auto"),this.$dropdown.css(e)},n.prototype._showDropdown=function(e){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},n})),t.define("select2/dropdown/minimumResultsForSearch",[],(function(){function e(t){for(var n=0,o=0;o<t.length;o++){var i=t[o];i.children?n+=e(i.children):n++}return n}function t(e,t,n,o){this.minimumResultsForSearch=n.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),e.call(this,t,n,o)}return t.prototype.showSearch=function(t,n){return!(e(n.data.results)<this.minimumResultsForSearch)&&t.call(this,n)},t})),t.define("select2/dropdown/selectOnClose",["../utils"],(function(e){function t(){}return t.prototype.bind=function(e,t,n){var o=this;e.call(this,t,n),t.on("close",(function(e){o._handleSelectOnClose(e)}))},t.prototype._handleSelectOnClose=function(t,n){if(n&&null!=n.originalSelect2Event){var o=n.originalSelect2Event;if("select"===o._type||"unselect"===o._type)return}var i=this.getHighlightedResults();if(!(i.length<1)){var r=e.GetData(i[0],"data");null!=r.element&&r.element.selected||null==r.element&&r.selected||this.trigger("select",{data:r})}},t})),t.define("select2/dropdown/closeOnSelect",[],(function(){function e(){}return e.prototype.bind=function(e,t,n){var o=this;e.call(this,t,n),t.on("select",(function(e){o._selectTriggered(e)})),t.on("unselect",(function(e){o._selectTriggered(e)}))},e.prototype._selectTriggered=function(e,t){var n=t.originalEvent;n&&(n.ctrlKey||n.metaKey)||this.trigger("close",{originalEvent:n,originalSelect2Event:t})},e})),t.define("select2/i18n/en",[],(function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Please delete "+t+" character";return 1!=t&&(n+="s"),n},inputTooShort:function(e){return"Please enter "+(e.minimum-e.input.length)+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(e){var t="You can only select "+e.maximum+" item";return 1!=e.maximum&&(t+="s"),t},noResults:function(){return"No results found"},searching:function(){return"Searching…"},removeAllItems:function(){return"Remove all items"}}})),t.define("select2/defaults",["jquery","require","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./i18n/en"],(function(e,t,n,o,i,r,s,a,l,c,u,d,p,h,f,m,g,w,v,y,b,_,x,C,k,A,$,E,S){function O(){this.reset()}return O.prototype.apply=function(u){if(null==(u=e.extend(!0,{},this.defaults,u)).dataAdapter){if(null!=u.ajax?u.dataAdapter=f:null!=u.data?u.dataAdapter=h:u.dataAdapter=p,u.minimumInputLength>0&&(u.dataAdapter=c.Decorate(u.dataAdapter,w)),u.maximumInputLength>0&&(u.dataAdapter=c.Decorate(u.dataAdapter,v)),u.maximumSelectionLength>0&&(u.dataAdapter=c.Decorate(u.dataAdapter,y)),u.tags&&(u.dataAdapter=c.Decorate(u.dataAdapter,m)),null==u.tokenSeparators&&null==u.tokenizer||(u.dataAdapter=c.Decorate(u.dataAdapter,g)),null!=u.query){var d=t(u.amdBase+"compat/query");u.dataAdapter=c.Decorate(u.dataAdapter,d)}if(null!=u.initSelection){var S=t(u.amdBase+"compat/initSelection");u.dataAdapter=c.Decorate(u.dataAdapter,S)}}if(null==u.resultsAdapter&&(u.resultsAdapter=n,null!=u.ajax&&(u.resultsAdapter=c.Decorate(u.resultsAdapter,C)),null!=u.placeholder&&(u.resultsAdapter=c.Decorate(u.resultsAdapter,x)),u.selectOnClose&&(u.resultsAdapter=c.Decorate(u.resultsAdapter,$))),null==u.dropdownAdapter){if(u.multiple)u.dropdownAdapter=b;else{var O=c.Decorate(b,_);u.dropdownAdapter=O}if(0!==u.minimumResultsForSearch&&(u.dropdownAdapter=c.Decorate(u.dropdownAdapter,A)),u.closeOnSelect&&(u.dropdownAdapter=c.Decorate(u.dropdownAdapter,E)),null!=u.dropdownCssClass||null!=u.dropdownCss||null!=u.adaptDropdownCssClass){var D=t(u.amdBase+"compat/dropdownCss");u.dropdownAdapter=c.Decorate(u.dropdownAdapter,D)}u.dropdownAdapter=c.Decorate(u.dropdownAdapter,k)}if(null==u.selectionAdapter){if(u.multiple?u.selectionAdapter=i:u.selectionAdapter=o,null!=u.placeholder&&(u.selectionAdapter=c.Decorate(u.selectionAdapter,r)),u.allowClear&&(u.selectionAdapter=c.Decorate(u.selectionAdapter,s)),u.multiple&&(u.selectionAdapter=c.Decorate(u.selectionAdapter,a)),null!=u.containerCssClass||null!=u.containerCss||null!=u.adaptContainerCssClass){var P=t(u.amdBase+"compat/containerCss");u.selectionAdapter=c.Decorate(u.selectionAdapter,P)}u.selectionAdapter=c.Decorate(u.selectionAdapter,l)}u.language=this._resolveLanguage(u.language),u.language.push("en");for(var T=[],j=0;j<u.language.length;j++){var L=u.language[j];-1===T.indexOf(L)&&T.push(L)}return u.language=T,u.translations=this._processTranslations(u.language,u.debug),u},O.prototype.reset=function(){function t(e){return e.replace(/[^\u0000-\u007E]/g,(function(e){return d[e]||e}))}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:c.escapeMarkup,language:{},matcher:function n(o,i){if(""===e.trim(o.term))return i;if(i.children&&i.children.length>0){for(var r=e.extend(!0,{},i),s=i.children.length-1;s>=0;s--)null==n(o,i.children[s])&&r.children.splice(s,1);return r.children.length>0?r:n(o,r)}var a=t(i.text).toUpperCase(),l=t(o.term).toUpperCase();return a.indexOf(l)>-1?i:null},minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,scrollAfterSelect:!1,sorter:function(e){return e},templateResult:function(e){return e.text},templateSelection:function(e){return e.text},theme:"default",width:"resolve"}},O.prototype.applyFromElement=function(e,t){var n=e.language,o=this.defaults.language,i=t.prop("lang"),r=t.closest("[lang]").prop("lang"),s=Array.prototype.concat.call(this._resolveLanguage(i),this._resolveLanguage(n),this._resolveLanguage(o),this._resolveLanguage(r));return e.language=s,e},O.prototype._resolveLanguage=function(t){if(!t)return[];if(e.isEmptyObject(t))return[];if(e.isPlainObject(t))return[t];var n;n=e.isArray(t)?t:[t];for(var o=[],i=0;i<n.length;i++)if(o.push(n[i]),"string"==typeof n[i]&&n[i].indexOf("-")>0){var r=n[i].split("-")[0];o.push(r)}return o},O.prototype._processTranslations=function(t,n){for(var o=new u,i=0;i<t.length;i++){var r=new u,s=t[i];if("string"==typeof s)try{r=u.loadPath(s)}catch(e){try{s=this.defaults.amdLanguageBase+s,r=u.loadPath(s)}catch(e){n&&window.console&&console.warn&&console.warn('Select2: The language file for "'+s+'" could not be automatically loaded. A fallback will be used instead.')}}else r=e.isPlainObject(s)?new u(s):s;o.extend(r)}return o},O.prototype.set=function(t,n){var o={};o[e.camelCase(t)]=n;var i=c._convertData(o);e.extend(!0,this.defaults,i)},new O})),t.define("select2/options",["require","jquery","./defaults","./utils"],(function(e,t,n,o){function i(t,i){if(this.options=t,null!=i&&this.fromElement(i),null!=i&&(this.options=n.applyFromElement(this.options,i)),this.options=n.apply(this.options),i&&i.is("input")){var r=e(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=o.Decorate(this.options.dataAdapter,r)}}return i.prototype.fromElement=function(e){var n=["select2"];null==this.options.multiple&&(this.options.multiple=e.prop("multiple")),null==this.options.disabled&&(this.options.disabled=e.prop("disabled")),null==this.options.dir&&(e.prop("dir")?this.options.dir=e.prop("dir"):e.closest("[dir]").prop("dir")?this.options.dir=e.closest("[dir]").prop("dir"):this.options.dir="ltr"),e.prop("disabled",this.options.disabled),e.prop("multiple",this.options.multiple),o.GetData(e[0],"select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),o.StoreData(e[0],"data",o.GetData(e[0],"select2Tags")),o.StoreData(e[0],"tags",!0)),o.GetData(e[0],"ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),e.attr("ajax--url",o.GetData(e[0],"ajaxUrl")),o.StoreData(e[0],"ajax-Url",o.GetData(e[0],"ajaxUrl")));var i={};function r(e,t){return t.toUpperCase()}for(var s=0;s<e[0].attributes.length;s++){var a=e[0].attributes[s].name,l="data-";if(a.substr(0,l.length)==l){var c=a.substring(l.length),u=o.GetData(e[0],c);i[c.replace(/-([a-z])/g,r)]=u}}t.fn.jquery&&"1."==t.fn.jquery.substr(0,2)&&e[0].dataset&&(i=t.extend(!0,{},e[0].dataset,i));var d=t.extend(!0,{},o.GetData(e[0]),i);for(var p in d=o._convertData(d))t.inArray(p,n)>-1||(t.isPlainObject(this.options[p])?t.extend(this.options[p],d[p]):this.options[p]=d[p]);return this},i.prototype.get=function(e){return this.options[e]},i.prototype.set=function(e,t){this.options[e]=t},i})),t.define("select2/core",["jquery","./options","./utils","./keys"],(function(e,t,n,o){var i=function(e,o){null!=n.GetData(e[0],"select2")&&n.GetData(e[0],"select2").destroy(),this.$element=e,this.id=this._generateId(e),o=o||{},this.options=new t(o,e),i.__super__.constructor.call(this);var r=e.attr("tabindex")||0;n.StoreData(e[0],"old-tabindex",r),e.attr("tabindex","-1");var s=this.options.get("dataAdapter");this.dataAdapter=new s(e,this.options);var a=this.render();this._placeContainer(a);var l=this.options.get("selectionAdapter");this.selection=new l(e,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,a);var c=this.options.get("dropdownAdapter");this.dropdown=new c(e,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,a);var u=this.options.get("resultsAdapter");this.results=new u(e,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var d=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current((function(e){d.trigger("selection:update",{data:e})})),e.addClass("select2-hidden-accessible"),e.attr("aria-hidden","true"),this._syncAttributes(),n.StoreData(e[0],"select2",this),e.data("select2",this)};return n.Extend(i,n.Observable),i.prototype._generateId=function(e){return"select2-"+(null!=e.attr("id")?e.attr("id"):null!=e.attr("name")?e.attr("name")+"-"+n.generateChars(2):n.generateChars(4)).replace(/(:|\.|\[|\]|,)/g,"")},i.prototype._placeContainer=function(e){e.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get("width"));null!=t&&e.css("width",t)},i.prototype._resolveWidth=function(e,t){var n=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==t){var o=this._resolveWidth(e,"style");return null!=o?o:this._resolveWidth(e,"element")}if("element"==t){var i=e.outerWidth(!1);return i<=0?"auto":i+"px"}if("style"==t){var r=e.attr("style");if("string"!=typeof r)return null;for(var s=r.split(";"),a=0,l=s.length;a<l;a+=1){var c=s[a].replace(/\s/g,"").match(n);if(null!==c&&c.length>=1)return c[1]}return null}return"computedstyle"==t?window.getComputedStyle(e[0]).width:t},i.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},i.prototype._registerDomEvents=function(){var e=this;this.$element.on("change.select2",(function(){e.dataAdapter.current((function(t){e.trigger("selection:update",{data:t})}))})),this.$element.on("focus.select2",(function(t){e.trigger("focus",t)})),this._syncA=n.bind(this._syncAttributes,this),this._syncS=n.bind(this._syncSubtree,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._syncA);var t=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=t?(this._observer=new t((function(t){e._syncA(),e._syncS(null,t)})),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})):this.$element[0].addEventListener&&(this.$element[0].addEventListener("DOMAttrModified",e._syncA,!1),this.$element[0].addEventListener("DOMNodeInserted",e._syncS,!1),this.$element[0].addEventListener("DOMNodeRemoved",e._syncS,!1))},i.prototype._registerDataEvents=function(){var e=this;this.dataAdapter.on("*",(function(t,n){e.trigger(t,n)}))},i.prototype._registerSelectionEvents=function(){var t=this,n=["toggle","focus"];this.selection.on("toggle",(function(){t.toggleDropdown()})),this.selection.on("focus",(function(e){t.focus(e)})),this.selection.on("*",(function(o,i){-1===e.inArray(o,n)&&t.trigger(o,i)}))},i.prototype._registerDropdownEvents=function(){var e=this;this.dropdown.on("*",(function(t,n){e.trigger(t,n)}))},i.prototype._registerResultsEvents=function(){var e=this;this.results.on("*",(function(t,n){e.trigger(t,n)}))},i.prototype._registerEvents=function(){var e=this;this.on("open",(function(){e.$container.addClass("select2-container--open")})),this.on("close",(function(){e.$container.removeClass("select2-container--open")})),this.on("enable",(function(){e.$container.removeClass("select2-container--disabled")})),this.on("disable",(function(){e.$container.addClass("select2-container--disabled")})),this.on("blur",(function(){e.$container.removeClass("select2-container--focus")})),this.on("query",(function(t){e.isOpen()||e.trigger("open",{}),this.dataAdapter.query(t,(function(n){e.trigger("results:all",{data:n,query:t})}))})),this.on("query:append",(function(t){this.dataAdapter.query(t,(function(n){e.trigger("results:append",{data:n,query:t})}))})),this.on("keypress",(function(t){var n=t.which;e.isOpen()?n===o.ESC||n===o.TAB||n===o.UP&&t.altKey?(e.close(t),t.preventDefault()):n===o.ENTER?(e.trigger("results:select",{}),t.preventDefault()):n===o.SPACE&&t.ctrlKey?(e.trigger("results:toggle",{}),t.preventDefault()):n===o.UP?(e.trigger("results:previous",{}),t.preventDefault()):n===o.DOWN&&(e.trigger("results:next",{}),t.preventDefault()):(n===o.ENTER||n===o.SPACE||n===o.DOWN&&t.altKey)&&(e.open(),t.preventDefault())}))},i.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.isDisabled()?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},i.prototype._isChangeMutation=function(t,n){var o=!1,i=this;if(!t||!t.target||"OPTION"===t.target.nodeName||"OPTGROUP"===t.target.nodeName){if(n)if(n.addedNodes&&n.addedNodes.length>0)for(var r=0;r<n.addedNodes.length;r++)n.addedNodes[r].selected&&(o=!0);else n.removedNodes&&n.removedNodes.length>0?o=!0:e.isArray(n)&&e.each(n,(function(e,t){if(i._isChangeMutation(e,t))return o=!0,!1}));else o=!0;return o}},i.prototype._syncSubtree=function(e,t){var n=this._isChangeMutation(e,t),o=this;n&&this.dataAdapter.current((function(e){o.trigger("selection:update",{data:e})}))},i.prototype.trigger=function(e,t){var n=i.__super__.trigger,o={open:"opening",close:"closing",select:"selecting",unselect:"unselecting",clear:"clearing"};if(void 0===t&&(t={}),e in o){var r=o[e],s={prevented:!1,name:e,args:t};if(n.call(this,r,s),s.prevented)return void(t.prevented=!0)}n.call(this,e,t)},i.prototype.toggleDropdown=function(){this.isDisabled()||(this.isOpen()?this.close():this.open())},i.prototype.open=function(){this.isOpen()||this.isDisabled()||this.trigger("query",{})},i.prototype.close=function(e){this.isOpen()&&this.trigger("close",{originalEvent:e})},i.prototype.isEnabled=function(){return!this.isDisabled()},i.prototype.isDisabled=function(){return this.options.get("disabled")},i.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},i.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")},i.prototype.focus=function(e){this.hasFocus()||(this.$container.addClass("select2-container--focus"),this.trigger("focus",{}))},i.prototype.enable=function(e){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),null!=e&&0!==e.length||(e=[!0]);var t=!e[0];this.$element.prop("disabled",t)},i.prototype.data=function(){this.options.get("debug")&&arguments.length>0&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var e=[];return this.dataAdapter.current((function(t){e=t})),e},i.prototype.val=function(t){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==t||0===t.length)return this.$element.val();var n=t[0];e.isArray(n)&&(n=e.map(n,(function(e){return e.toString()}))),this.$element.val(n).trigger("input").trigger("change")},i.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._syncA),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&(this.$element[0].removeEventListener("DOMAttrModified",this._syncA,!1),this.$element[0].removeEventListener("DOMNodeInserted",this._syncS,!1),this.$element[0].removeEventListener("DOMNodeRemoved",this._syncS,!1)),this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",n.GetData(this.$element[0],"old-tabindex")),this.$element.removeClass("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),n.RemoveData(this.$element[0]),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},i.prototype.render=function(){var t=e('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return t.attr("dir",this.options.get("dir")),this.$container=t,this.$container.addClass("select2-container--"+this.options.get("theme")),n.StoreData(t[0],"element",this.$element),t},i})),t.define("jquery-mousewheel",["jquery"],(function(e){return e})),t.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],(function(e,t,n,o,i){if(null==e.fn.select2){var r=["open","close","destroy"];e.fn.select2=function(t){if("object"==typeof(t=t||{}))return this.each((function(){var o=e.extend(!0,{},t);new n(e(this),o)})),this;if("string"==typeof t){var o,s=Array.prototype.slice.call(arguments,1);return this.each((function(){var e=i.GetData(this,"select2");null==e&&window.console&&console.error&&console.error("The select2('"+t+"') method was called on an element that is not using Select2."),o=e[t].apply(e,s)})),e.inArray(t,r)>-1?this:o}throw new Error("Invalid arguments for Select2: "+t)}}return null==e.fn.select2.defaults&&(e.fn.select2.defaults=o),n})),{define:t.define,require:t.require}}(),n=t.require("jquery.select2");return e.fn.select2.amd=t,n},void 0===(r=o.apply(t,i))||(e.exports=r)},455:function(e){e.exports=function(){"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function o(e,t,o){return t&&n(e.prototype,t),o&&n(e,o),e}function i(){return i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},i.apply(this,arguments)}function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}function s(e,t){return s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},s(e,t)}function a(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function l(e,t,n){return l=a()?Reflect.construct:function(e,t,n){var o=[null];o.push.apply(o,t);var i=new(Function.bind.apply(e,o));return n&&s(i,n.prototype),i},l.apply(null,arguments)}function c(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e,t,n){return u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var o=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=r(e)););return e}(e,t);if(o){var i=Object.getOwnPropertyDescriptor(o,t);return i.get?i.get.call(n):i.value}},u(e,t,n||e)}var d="SweetAlert2:",p=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},h=function(e){return Object.keys(e).map((function(t){return e[t]}))},f=function(e){return Array.prototype.slice.call(e)},m=function(t){console.warn("".concat(d," ").concat("object"===e(t)?t.join(" "):t))},g=function(e){console.error("".concat(d," ").concat(e))},w=[],v=function(e,t){var n;n='"'.concat(e,'" is deprecated and will be removed in the next major release. Please use "').concat(t,'" instead.'),-1===w.indexOf(n)&&(w.push(n),m(n))},y=function(e){return"function"==typeof e?e():e},b=function(e){return e&&"function"==typeof e.toPromise},_=function(e){return b(e)?e.toPromise():Promise.resolve(e)},x=function(e){return e&&Promise.resolve(e)===e},C=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),k=function(t){return t instanceof Element||function(t){return"object"===e(t)&&t.jquery}(t)},A=function(e){var t={};for(var n in e)t[e[n]]="swal2-"+e[n];return t},$=A(["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","header","content","html-container","actions","confirm","deny","cancel","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error"]),E=A(["success","warning","info","question","error"]),S=function(){return document.body.querySelector(".".concat($.container))},O=function(e){var t=S();return t?t.querySelector(e):null},D=function(e){return O(".".concat(e))},P=function(){return D($.popup)},T=function(){return D($.icon)},j=function(){return D($.title)},L=function(){return D($.content)},B=function(){return D($["html-container"])},q=function(){return D($.image)},I=function(){return D($["progress-steps"])},M=function(){return D($["validation-message"])},z=function(){return O(".".concat($.actions," .").concat($.confirm))},H=function(){return O(".".concat($.actions," .").concat($.deny))},R=function(){return O(".".concat($.loader))},N=function(){return O(".".concat($.actions," .").concat($.cancel))},U=function(){return D($.actions)},W=function(){return D($.header)},V=function(){return D($.footer)},F=function(){return D($["timer-progress-bar"])},G=function(){return D($.close)},Y=function(){var e=f(P().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort((function(e,t){return(e=parseInt(e.getAttribute("tabindex")))>(t=parseInt(t.getAttribute("tabindex")))?1:e<t?-1:0})),t=f(P().querySelectorAll('\n a[href],\n area[href],\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n iframe,\n object,\n embed,\n [tabindex="0"],\n [contenteditable],\n audio[controls],\n video[controls],\n summary\n')).filter((function(e){return"-1"!==e.getAttribute("tabindex")}));return function(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(e.concat(t)).filter((function(e){return he(e)}))},Z=function(){return!K()&&!document.body.classList.contains($["no-backdrop"])},K=function(){return document.body.classList.contains($["toast-shown"])},Q={previousBodyPadding:null},X=function(e,t){if(e.textContent="",t){var n=(new DOMParser).parseFromString(t,"text/html");f(n.querySelector("head").childNodes).forEach((function(t){e.appendChild(t)})),f(n.querySelector("body").childNodes).forEach((function(t){e.appendChild(t)}))}},J=function(e,t){if(!t)return!1;for(var n=t.split(/\s+/),o=0;o<n.length;o++)if(!e.classList.contains(n[o]))return!1;return!0},ee=function(t,n,o){if(function(e,t){f(e.classList).forEach((function(n){-1===h($).indexOf(n)&&-1===h(E).indexOf(n)&&-1===h(t.showClass).indexOf(n)&&e.classList.remove(n)}))}(t,n),n.customClass&&n.customClass[o]){if("string"!=typeof n.customClass[o]&&!n.customClass[o].forEach)return m("Invalid type of customClass.".concat(o,'! Expected string or iterable object, got "').concat(e(n.customClass[o]),'"'));re(t,n.customClass[o])}};function te(e,t){if(!t)return null;switch(t){case"select":case"textarea":case"file":return ae(e,$[t]);case"checkbox":return e.querySelector(".".concat($.checkbox," input"));case"radio":return e.querySelector(".".concat($.radio," input:checked"))||e.querySelector(".".concat($.radio," input:first-child"));case"range":return e.querySelector(".".concat($.range," input"));default:return ae(e,$.input)}}var ne,oe=function(e){if(e.focus(),"file"!==e.type){var t=e.value;e.value="",e.value=t}},ie=function(e,t,n){e&&t&&("string"==typeof t&&(t=t.split(/\s+/).filter(Boolean)),t.forEach((function(t){e.forEach?e.forEach((function(e){n?e.classList.add(t):e.classList.remove(t)})):n?e.classList.add(t):e.classList.remove(t)})))},re=function(e,t){ie(e,t,!0)},se=function(e,t){ie(e,t,!1)},ae=function(e,t){for(var n=0;n<e.childNodes.length;n++)if(J(e.childNodes[n],t))return e.childNodes[n]},le=function(e,t,n){n==="".concat(parseInt(n))&&(n=parseInt(n)),n||0===parseInt(n)?e.style[t]="number"==typeof n?"".concat(n,"px"):n:e.style.removeProperty(t)},ce=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"flex";e.style.display=t},ue=function(e){e.style.display="none"},de=function(e,t,n,o){var i=e.querySelector(t);i&&(i.style[n]=o)},pe=function(e,t,n){t?ce(e,n):ue(e)},he=function(e){return!(!e||!(e.offsetWidth||e.offsetHeight||e.getClientRects().length))},fe=function(e){return!!(e.scrollHeight>e.clientHeight)},me=function(e){var t=window.getComputedStyle(e),n=parseFloat(t.getPropertyValue("animation-duration")||"0"),o=parseFloat(t.getPropertyValue("transition-duration")||"0");return n>0||o>0},ge=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=F();he(n)&&(t&&(n.style.transition="none",n.style.width="100%"),setTimeout((function(){n.style.transition="width ".concat(e/1e3,"s linear"),n.style.width="0%"}),10))},we=function(){return"undefined"==typeof window||"undefined"==typeof document},ve='\n <div aria-labelledby="'.concat($.title,'" aria-describedby="').concat($.content,'" class="').concat($.popup,'" tabindex="-1">\n <div class="').concat($.header,'">\n <ul class="').concat($["progress-steps"],'"></ul>\n <div class="').concat($.icon,'"></div>\n <img class="').concat($.image,'" />\n <h2 class="').concat($.title,'" id="').concat($.title,'"></h2>\n <button type="button" class="').concat($.close,'"></button>\n </div>\n <div class="').concat($.content,'">\n <div id="').concat($.content,'" class="').concat($["html-container"],'"></div>\n <input class="').concat($.input,'" />\n <input type="file" class="').concat($.file,'" />\n <div class="').concat($.range,'">\n <input type="range" />\n <output></output>\n </div>\n <select class="').concat($.select,'"></select>\n <div class="').concat($.radio,'"></div>\n <label for="').concat($.checkbox,'" class="').concat($.checkbox,'">\n <input type="checkbox" />\n <span class="').concat($.label,'"></span>\n </label>\n <textarea class="').concat($.textarea,'"></textarea>\n <div class="').concat($["validation-message"],'" id="').concat($["validation-message"],'"></div>\n </div>\n <div class="').concat($.actions,'">\n <div class="').concat($.loader,'"></div>\n <button type="button" class="').concat($.confirm,'"></button>\n <button type="button" class="').concat($.deny,'"></button>\n <button type="button" class="').concat($.cancel,'"></button>\n </div>\n <div class="').concat($.footer,'"></div>\n <div class="').concat($["timer-progress-bar-container"],'">\n <div class="').concat($["timer-progress-bar"],'"></div>\n </div>\n </div>\n').replace(/(^|\n)\s*/g,""),ye=function(e){Hn.isVisible()&&ne!==e.target.value&&Hn.resetValidationMessage(),ne=e.target.value},be=function(e){var t,n,o,i,r,s,a,l,c,u,d=!!(t=S())&&(t.parentNode.removeChild(t),se([document.documentElement,document.body],[$["no-backdrop"],$["toast-shown"],$["has-column"]]),!0);if(we())g("SweetAlert2 requires document to initialize");else{var p=document.createElement("div");p.className=$.container,d&&re(p,$["no-transition"]),X(p,ve);var h="string"==typeof(u=e.target)?document.querySelector(u):u;h.appendChild(p),function(e){var t=P();t.setAttribute("role",e.toast?"alert":"dialog"),t.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||t.setAttribute("aria-modal","true")}(e),function(e){"rtl"===window.getComputedStyle(e).direction&&re(S(),$.rtl)}(h),n=L(),o=ae(n,$.input),i=ae(n,$.file),r=n.querySelector(".".concat($.range," input")),s=n.querySelector(".".concat($.range," output")),a=ae(n,$.select),l=n.querySelector(".".concat($.checkbox," input")),c=ae(n,$.textarea),o.oninput=ye,i.onchange=ye,a.onchange=ye,l.onchange=ye,c.oninput=ye,r.oninput=function(e){ye(e),s.value=r.value},r.onchange=function(e){ye(e),r.nextSibling.value=r.value}}},_e=function(t,n){t instanceof HTMLElement?n.appendChild(t):"object"===e(t)?xe(t,n):t&&X(n,t)},xe=function(e,t){e.jquery?Ce(t,e):X(t,e.toString())},Ce=function(e,t){if(e.textContent="",0 in t)for(var n=0;n in t;n++)e.appendChild(t[n].cloneNode(!0));else e.appendChild(t.cloneNode(!0))},ke=function(){if(we())return!1;var e=document.createElement("div"),t={WebkitAnimation:"webkitAnimationEnd",OAnimation:"oAnimationEnd oanimationend",animation:"animationend"};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&void 0!==e.style[n])return t[n];return!1}(),Ae=function(e,t){var n=U(),o=R(),i=z(),r=H(),s=N();t.showConfirmButton||t.showDenyButton||t.showCancelButton||ue(n),ee(n,t,"actions"),$e(i,"confirm",t),$e(r,"deny",t),$e(s,"cancel",t),function(e,t,n,o){if(!o.buttonsStyling)return se([e,t,n],$.styled);re([e,t,n],$.styled),o.confirmButtonColor&&(e.style.backgroundColor=o.confirmButtonColor),o.denyButtonColor&&(t.style.backgroundColor=o.denyButtonColor),o.cancelButtonColor&&(n.style.backgroundColor=o.cancelButtonColor)}(i,r,s,t),t.reverseButtons&&(n.insertBefore(s,o),n.insertBefore(r,o),n.insertBefore(i,o)),X(o,t.loaderHtml),ee(o,t,"loader")};function $e(e,t,n){pe(e,n["show".concat(p(t),"Button")],"inline-block"),X(e,n["".concat(t,"ButtonText")]),e.setAttribute("aria-label",n["".concat(t,"ButtonAriaLabel")]),e.className=$[t],ee(e,n,"".concat(t,"Button")),re(e,n["".concat(t,"ButtonClass")])}var Ee=function(e,t){var n=S();if(n){(function(e,t){"string"==typeof t?e.style.background=t:t||re([document.documentElement,document.body],$["no-backdrop"])})(n,t.backdrop),!t.backdrop&&t.allowOutsideClick&&m('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),function(e,t){t in $?re(e,$[t]):(m('The "position" parameter is not valid, defaulting to "center"'),re(e,$.center))}(n,t.position),function(e,t){if(t&&"string"==typeof t){var n="grow-".concat(t);n in $&&re(e,$[n])}}(n,t.grow),ee(n,t,"container");var o=document.body.getAttribute("data-swal2-queue-step");o&&(n.setAttribute("data-queue-step",o),document.body.removeAttribute("data-swal2-queue-step"))}},Se={promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap},Oe=["input","file","range","select","radio","checkbox","textarea"],De=function(e){if(!qe[e.input])return g('Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "'.concat(e.input,'"'));var t=Be(e.input),n=qe[e.input](t,e);ce(n),setTimeout((function(){oe(n)}))},Pe=function(e,t){var n=te(L(),e);if(n)for(var o in function(e){for(var t=0;t<e.attributes.length;t++){var n=e.attributes[t].name;-1===["type","value","style"].indexOf(n)&&e.removeAttribute(n)}}(n),t)"range"===e&&"placeholder"===o||n.setAttribute(o,t[o])},Te=function(e){var t=Be(e.input);e.customClass&&re(t,e.customClass.input)},je=function(e,t){e.placeholder&&!t.inputPlaceholder||(e.placeholder=t.inputPlaceholder)},Le=function(e,t,n){if(n.inputLabel){e.id=$.input;var o=document.createElement("label"),i=$["input-label"];o.setAttribute("for",e.id),o.className=i,re(o,n.customClass.inputLabel),o.innerText=n.inputLabel,t.insertAdjacentElement("beforebegin",o)}},Be=function(e){var t=$[e]?$[e]:$.input;return ae(L(),t)},qe={};qe.text=qe.email=qe.password=qe.number=qe.tel=qe.url=function(t,n){return"string"==typeof n.inputValue||"number"==typeof n.inputValue?t.value=n.inputValue:x(n.inputValue)||m('Unexpected type of inputValue! Expected "string", "number" or "Promise", got "'.concat(e(n.inputValue),'"')),Le(t,t,n),je(t,n),t.type=n.input,t},qe.file=function(e,t){return Le(e,e,t),je(e,t),e},qe.range=function(e,t){var n=e.querySelector("input"),o=e.querySelector("output");return n.value=t.inputValue,n.type=t.input,o.value=t.inputValue,Le(n,e,t),e},qe.select=function(e,t){if(e.textContent="",t.inputPlaceholder){var n=document.createElement("option");X(n,t.inputPlaceholder),n.value="",n.disabled=!0,n.selected=!0,e.appendChild(n)}return Le(e,e,t),e},qe.radio=function(e){return e.textContent="",e},qe.checkbox=function(e,t){var n=te(L(),"checkbox");n.value=1,n.id=$.checkbox,n.checked=Boolean(t.inputValue);var o=e.querySelector("span");return X(o,t.inputPlaceholder),e},qe.textarea=function(e,t){e.value=t.inputValue,je(e,t),Le(e,e,t);var n=function(e){return parseInt(window.getComputedStyle(e).paddingLeft)+parseInt(window.getComputedStyle(e).paddingRight)};if("MutationObserver"in window){var o=parseInt(window.getComputedStyle(P()).width);new MutationObserver((function(){var t=e.offsetWidth+n(P())+n(L());P().style.width=t>o?"".concat(t,"px"):null})).observe(e,{attributes:!0,attributeFilter:["style"]})}return e};var Ie=function(e,t){var n=B();ee(n,t,"htmlContainer"),t.html?(_e(t.html,n),ce(n,"block")):t.text?(n.textContent=t.text,ce(n,"block")):ue(n),function(e,t){var n=L(),o=Se.innerParams.get(e),i=!o||t.input!==o.input;Oe.forEach((function(e){var o=$[e],r=ae(n,o);Pe(e,t.inputAttributes),r.className=o,i&&ue(r)})),t.input&&(i&&De(t),Te(t))}(e,t),ee(L(),t,"content")},Me=function(e,t){for(var n in E)t.icon!==n&&se(e,E[n]);re(e,E[t.icon]),Re(e,t),ze(),ee(e,t,"icon")},ze=function(){for(var e=P(),t=window.getComputedStyle(e).getPropertyValue("background-color"),n=e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix"),o=0;o<n.length;o++)n[o].style.backgroundColor=t},He=function(e,t){e.textContent="",t.iconHtml?X(e,Ne(t.iconHtml)):"success"===t.icon?X(e,'\n <div class="swal2-success-circular-line-left"></div>\n <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>\n <div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>\n <div class="swal2-success-circular-line-right"></div>\n '):"error"===t.icon?X(e,'\n <span class="swal2-x-mark">\n <span class="swal2-x-mark-line-left"></span>\n <span class="swal2-x-mark-line-right"></span>\n </span>\n '):X(e,Ne({question:"?",warning:"!",info:"i"}[t.icon]))},Re=function(e,t){if(t.iconColor){e.style.color=t.iconColor,e.style.borderColor=t.iconColor;for(var n=0,o=[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"];n<o.length;n++){de(e,o[n],"backgroundColor",t.iconColor)}de(e,".swal2-success-ring","borderColor",t.iconColor)}},Ne=function(e){return'<div class="'.concat($["icon-content"],'">').concat(e,"</div>")},Ue=[],We=function(){return S()&&S().getAttribute("data-queue-step")},Ve=function(e,t){var n=I();if(!t.progressSteps||0===t.progressSteps.length)return ue(n);ce(n),n.textContent="";var o=parseInt(void 0===t.currentProgressStep?We():t.currentProgressStep);o>=t.progressSteps.length&&m("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),t.progressSteps.forEach((function(e,i){var r=function(e){var t=document.createElement("li");return re(t,$["progress-step"]),X(t,e),t}(e);if(n.appendChild(r),i===o&&re(r,$["active-progress-step"]),i!==t.progressSteps.length-1){var s=function(e){var t=document.createElement("li");return re(t,$["progress-step-line"]),e.progressStepsDistance&&(t.style.width=e.progressStepsDistance),t}(t);n.appendChild(s)}}))},Fe=function(e,t){var n=W();ee(n,t,"header"),Ve(0,t),function(e,t){var n=Se.innerParams.get(e),o=T();n&&t.icon===n.icon?(He(o,t),Me(o,t)):t.icon||t.iconHtml?t.icon&&-1===Object.keys(E).indexOf(t.icon)?(g('Unknown icon! Expected "success", "error", "warning", "info" or "question", got "'.concat(t.icon,'"')),ue(o)):(ce(o),He(o,t),Me(o,t),re(o,t.showClass.icon)):ue(o)}(e,t),function(e,t){var n=q();if(!t.imageUrl)return ue(n);ce(n,""),n.setAttribute("src",t.imageUrl),n.setAttribute("alt",t.imageAlt),le(n,"width",t.imageWidth),le(n,"height",t.imageHeight),n.className=$.image,ee(n,t,"image")}(0,t),function(e,t){var n=j();pe(n,t.title||t.titleText,"block"),t.title&&_e(t.title,n),t.titleText&&(n.innerText=t.titleText),ee(n,t,"title")}(0,t),function(e,t){var n=G();X(n,t.closeButtonHtml),ee(n,t,"closeButton"),pe(n,t.showCloseButton),n.setAttribute("aria-label",t.closeButtonAriaLabel)}(0,t)},Ge=function(e,t){e.className="".concat($.popup," ").concat(he(e)?t.showClass.popup:""),t.toast?(re([document.documentElement,document.body],$["toast-shown"]),re(e,$.toast)):re(e,$.modal),ee(e,t,"popup"),"string"==typeof t.customClass&&re(e,t.customClass),t.icon&&re(e,$["icon-".concat(t.icon)])},Ye=function(e,t){(function(e,t){var n=S(),o=P();t.toast?(le(n,"width",t.width),o.style.width="100%"):le(o,"width",t.width),le(o,"padding",t.padding),t.background&&(o.style.background=t.background),ue(M()),Ge(o,t)})(0,t),Ee(0,t),Fe(e,t),Ie(e,t),Ae(0,t),function(e,t){var n=V();pe(n,t.footer),t.footer&&_e(t.footer,n),ee(n,t,"footer")}(0,t),"function"==typeof t.didRender?t.didRender(P()):"function"==typeof t.onRender&&t.onRender(P())},Ze=function(){return z()&&z().click()};var Ke=function(e){var t=P();t||Hn.fire(),t=P();var n=U(),o=R();!e&&he(z())&&(e=z()),ce(n),e&&(ue(e),o.setAttribute("data-button-to-replace",e.className)),o.parentNode.insertBefore(o,e),re([t,n],$.loading),ce(o),t.setAttribute("data-loading",!0),t.setAttribute("aria-busy",!0),t.focus()},Qe={},Xe=function(e){return new Promise((function(t){if(!e)return t();var n=window.scrollX,o=window.scrollY;Qe.restoreFocusTimeout=setTimeout((function(){Qe.previousActiveElement&&Qe.previousActiveElement.focus?(Qe.previousActiveElement.focus(),Qe.previousActiveElement=null):document.body&&document.body.focus(),t()}),100),void 0!==n&&void 0!==o&&window.scrollTo(n,o)}))},Je=function(){if(Qe.timeout)return function(){var e=F(),t=parseInt(window.getComputedStyle(e).width);e.style.removeProperty("transition"),e.style.width="100%";var n=parseInt(window.getComputedStyle(e).width),o=parseInt(t/n*100);e.style.removeProperty("transition"),e.style.width="".concat(o,"%")}(),Qe.timeout.stop()},et=function(){if(Qe.timeout){var e=Qe.timeout.start();return ge(e),e}},tt=!1,nt={};var ot=function(e){for(var t=e.target;t&&t!==document;t=t.parentNode)for(var n in nt){var o=t.getAttribute(n);if(o)return void nt[n].fire({template:o})}},it={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,animation:!0,showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"×",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,onBeforeOpen:void 0,onOpen:void 0,willOpen:void 0,didOpen:void 0,onRender:void 0,didRender:void 0,onClose:void 0,onAfterClose:void 0,willClose:void 0,didClose:void 0,onDestroy:void 0,didDestroy:void 0,scrollbarPadding:!0},rt=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","onAfterClose","onClose","onDestroy","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","willClose"],st={animation:'showClass" and "hideClass',onBeforeOpen:"willOpen",onOpen:"didOpen",onRender:"didRender",onClose:"willClose",onAfterClose:"didClose",onDestroy:"didDestroy"},at=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],lt=function(e){return Object.prototype.hasOwnProperty.call(it,e)},ct=function(e){return st[e]},ut=function(e){lt(e)||m('Unknown parameter "'.concat(e,'"'))},dt=function(e){-1!==at.indexOf(e)&&m('The parameter "'.concat(e,'" is incompatible with toasts'))},pt=function(e){ct(e)&&v(e,ct(e))},ht=function(e){for(var t in e)ut(t),e.toast&&dt(t),pt(t)},ft=Object.freeze({isValidParameter:lt,isUpdatableParameter:function(e){return-1!==rt.indexOf(e)},isDeprecatedParameter:ct,argsToParams:function(t){var n={};return"object"!==e(t[0])||k(t[0])?["title","html","icon"].forEach((function(o,i){var r=t[i];"string"==typeof r||k(r)?n[o]=r:void 0!==r&&g("Unexpected type of ".concat(o,'! Expected "string" or "Element", got ').concat(e(r)))})):i(n,t[0]),n},isVisible:function(){return he(P())},clickConfirm:Ze,clickDeny:function(){return H()&&H().click()},clickCancel:function(){return N()&&N().click()},getContainer:S,getPopup:P,getTitle:j,getContent:L,getHtmlContainer:B,getImage:q,getIcon:T,getInputLabel:function(){return D($["input-label"])},getCloseButton:G,getActions:U,getConfirmButton:z,getDenyButton:H,getCancelButton:N,getLoader:R,getHeader:W,getFooter:V,getTimerProgressBar:F,getFocusableElements:Y,getValidationMessage:M,isLoading:function(){return P().hasAttribute("data-loading")},fire:function(){for(var e=this,t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return l(e,n)},mixin:function(e){var n=function(n){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(h,n);var l,d,p=(l=h,d=a(),function(){var e,t=r(l);if(d){var n=r(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return c(this,e)});function h(){return t(this,h),p.apply(this,arguments)}return o(h,[{key:"_main",value:function(t,n){return u(r(h.prototype),"_main",this).call(this,t,i({},e,n))}}]),h}(this);return n},queue:function(e){v("Swal.queue()","async/await");var t=this;Ue=e;var n=function(e,t){Ue=[],e(t)},o=[];return new Promise((function(e){!function i(r,s){r<Ue.length?(document.body.setAttribute("data-swal2-queue-step",r),t.fire(Ue[r]).then((function(t){void 0!==t.value?(o.push(t.value),i(r+1,s)):n(e,{dismiss:t.dismiss})}))):n(e,{value:o})}(0)}))},getQueueStep:We,insertQueueStep:function(e,t){return t&&t<Ue.length?Ue.splice(t,0,e):Ue.push(e)},deleteQueueStep:function(e){void 0!==Ue[e]&&Ue.splice(e,1)},showLoading:Ke,enableLoading:Ke,getTimerLeft:function(){return Qe.timeout&&Qe.timeout.getTimerLeft()},stopTimer:Je,resumeTimer:et,toggleTimer:function(){var e=Qe.timeout;return e&&(e.running?Je():et())},increaseTimer:function(e){if(Qe.timeout){var t=Qe.timeout.increase(e);return ge(t,!0),t}},isTimerRunning:function(){return Qe.timeout&&Qe.timeout.isRunning()},bindClickHandler:function(){nt[arguments.length>0&&void 0!==arguments[0]?arguments[0]:"data-swal-template"]=this,tt||(document.body.addEventListener("click",ot),tt=!0)}});function mt(){if(Se.innerParams.get(this)){var e=Se.domCache.get(this);ue(e.loader);var t=e.popup.getElementsByClassName(e.loader.getAttribute("data-button-to-replace"));t.length?ce(t[0],"inline-block"):!he(z())&&!he(H())&&!he(N())&&ue(e.actions),se([e.popup,e.actions],$.loading),e.popup.removeAttribute("aria-busy"),e.popup.removeAttribute("data-loading"),e.confirmButton.disabled=!1,e.denyButton.disabled=!1,e.cancelButton.disabled=!1}}var gt=function(){null===Q.previousBodyPadding&&document.body.scrollHeight>window.innerHeight&&(Q.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight="".concat(Q.previousBodyPadding+function(){var e=document.createElement("div");e.className=$["scrollbar-measure"],document.body.appendChild(e);var t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t}(),"px"))},wt=function(){if(!navigator.userAgent.match(/(CriOS|FxiOS|EdgiOS|YaBrowser|UCBrowser)/i)){P().scrollHeight>window.innerHeight-44&&(S().style.paddingBottom="".concat(44,"px"))}},vt=function(){var e,t=S();t.ontouchstart=function(t){e=yt(t)},t.ontouchmove=function(t){e&&(t.preventDefault(),t.stopPropagation())}},yt=function(e){var t=e.target,n=S();return!(bt(e)||_t(e)||t!==n&&(fe(n)||"INPUT"===t.tagName||fe(L())&&L().contains(t)))},bt=function(e){return e.touches&&e.touches.length&&"stylus"===e.touches[0].touchType},_t=function(e){return e.touches&&e.touches.length>1},xt=function(){return!!window.MSInputMethodContext&&!!document.documentMode},Ct=function(){var e=S(),t=P();e.style.removeProperty("align-items"),t.offsetTop<0&&(e.style.alignItems="flex-start")},kt={swalPromiseResolve:new WeakMap};function At(e,t,n,o){K()?Pt(e,o):(Xe(n).then((function(){return Pt(e,o)})),Qe.keydownTarget.removeEventListener("keydown",Qe.keydownHandler,{capture:Qe.keydownListenerCapture}),Qe.keydownHandlerAdded=!1),t.parentNode&&!document.body.getAttribute("data-swal2-queue-step")&&t.parentNode.removeChild(t),Z()&&(null!==Q.previousBodyPadding&&(document.body.style.paddingRight="".concat(Q.previousBodyPadding,"px"),Q.previousBodyPadding=null),function(){if(J(document.body,$.iosfix)){var e=parseInt(document.body.style.top,10);se(document.body,$.iosfix),document.body.style.top="",document.body.scrollTop=-1*e}}(),"undefined"!=typeof window&&xt()&&window.removeEventListener("resize",Ct),f(document.body.children).forEach((function(e){e.hasAttribute("data-previous-aria-hidden")?(e.setAttribute("aria-hidden",e.getAttribute("data-previous-aria-hidden")),e.removeAttribute("data-previous-aria-hidden")):e.removeAttribute("aria-hidden")}))),se([document.documentElement,document.body],[$.shown,$["height-auto"],$["no-backdrop"],$["toast-shown"]])}function $t(e){var t=P();if(t){e=Et(e);var n=Se.innerParams.get(this);if(n&&!J(t,n.hideClass.popup)){var o=kt.swalPromiseResolve.get(this);se(t,n.showClass.popup),re(t,n.hideClass.popup);var i=S();se(i,n.showClass.backdrop),re(i,n.hideClass.backdrop),St(this,t,n),o(e)}}}var Et=function(e){return void 0===e?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:i({isConfirmed:!1,isDenied:!1,isDismissed:!1},e)},St=function(e,t,n){var o=S(),i=ke&&me(t),r=n.onClose,s=n.onAfterClose,a=n.willClose,l=n.didClose;Ot(t,a,r),i?Dt(e,t,o,n.returnFocus,l||s):At(e,o,n.returnFocus,l||s)},Ot=function(e,t,n){null!==t&&"function"==typeof t?t(e):null!==n&&"function"==typeof n&&n(e)},Dt=function(e,t,n,o,i){Qe.swalCloseEventFinishedCallback=At.bind(null,e,n,o,i),t.addEventListener(ke,(function(e){e.target===t&&(Qe.swalCloseEventFinishedCallback(),delete Qe.swalCloseEventFinishedCallback)}))},Pt=function(e,t){setTimeout((function(){"function"==typeof t&&t(),e._destroy()}))};function Tt(e,t,n){var o=Se.domCache.get(e);t.forEach((function(e){o[e].disabled=n}))}function jt(e,t){if(!e)return!1;if("radio"===e.type)for(var n=e.parentNode.parentNode.querySelectorAll("input"),o=0;o<n.length;o++)n[o].disabled=t;else e.disabled=t}var Lt=function(){function e(n,o){t(this,e),this.callback=n,this.remaining=o,this.running=!1,this.start()}return o(e,[{key:"start",value:function(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}},{key:"stop",value:function(){return this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=new Date-this.started),this.remaining}},{key:"increase",value:function(e){var t=this.running;return t&&this.stop(),this.remaining+=e,t&&this.start(),this.remaining}},{key:"getTimerLeft",value:function(){return this.running&&(this.stop(),this.start()),this.remaining}},{key:"isRunning",value:function(){return this.running}}]),e}(),Bt={email:function(e,t){return/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid email address")},url:function(e,t){return/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid URL")}};function qt(e){(function(e){e.inputValidator||Object.keys(Bt).forEach((function(t){e.input===t&&(e.inputValidator=Bt[t])}))})(e),e.showLoaderOnConfirm&&!e.preConfirm&&m("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"),e.animation=y(e.animation),function(e){(!e.target||"string"==typeof e.target&&!document.querySelector(e.target)||"string"!=typeof e.target&&!e.target.appendChild)&&(m('Target parameter is not valid, defaulting to "body"'),e.target="body")}(e),"string"==typeof e.title&&(e.title=e.title.split("\n").join("<br />")),be(e)}var It=["swal-title","swal-html","swal-footer"],Mt=function(t){var n={};return f(t.querySelectorAll("swal-param")).forEach((function(t){Vt(t,["name","value"]);var o=t.getAttribute("name"),i=t.getAttribute("value");"boolean"==typeof it[o]&&"false"===i&&(i=!1),"object"===e(it[o])&&(i=JSON.parse(i)),n[o]=i})),n},zt=function(e){var t={};return f(e.querySelectorAll("swal-button")).forEach((function(e){Vt(e,["type","color","aria-label"]);var n=e.getAttribute("type");t["".concat(n,"ButtonText")]=e.innerHTML,t["show".concat(p(n),"Button")]=!0,e.hasAttribute("color")&&(t["".concat(n,"ButtonColor")]=e.getAttribute("color")),e.hasAttribute("aria-label")&&(t["".concat(n,"ButtonAriaLabel")]=e.getAttribute("aria-label"))})),t},Ht=function(e){var t={},n=e.querySelector("swal-image");return n&&(Vt(n,["src","width","height","alt"]),n.hasAttribute("src")&&(t.imageUrl=n.getAttribute("src")),n.hasAttribute("width")&&(t.imageWidth=n.getAttribute("width")),n.hasAttribute("height")&&(t.imageHeight=n.getAttribute("height")),n.hasAttribute("alt")&&(t.imageAlt=n.getAttribute("alt"))),t},Rt=function(e){var t={},n=e.querySelector("swal-icon");return n&&(Vt(n,["type","color"]),n.hasAttribute("type")&&(t.icon=n.getAttribute("type")),n.hasAttribute("color")&&(t.iconColor=n.getAttribute("color")),t.iconHtml=n.innerHTML),t},Nt=function(e){var t={},n=e.querySelector("swal-input");n&&(Vt(n,["type","label","placeholder","value"]),t.input=n.getAttribute("type")||"text",n.hasAttribute("label")&&(t.inputLabel=n.getAttribute("label")),n.hasAttribute("placeholder")&&(t.inputPlaceholder=n.getAttribute("placeholder")),n.hasAttribute("value")&&(t.inputValue=n.getAttribute("value")));var o=e.querySelectorAll("swal-input-option");return o.length&&(t.inputOptions={},f(o).forEach((function(e){Vt(e,["value"]);var n=e.getAttribute("value"),o=e.innerHTML;t.inputOptions[n]=o}))),t},Ut=function(e,t){var n={};for(var o in t){var i=t[o],r=e.querySelector(i);r&&(Vt(r,[]),n[i.replace(/^swal-/,"")]=r.innerHTML.trim())}return n},Wt=function(e){var t=It.concat(["swal-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);f(e.querySelectorAll("*")).forEach((function(n){if(n.parentNode===e){var o=n.tagName.toLowerCase();-1===t.indexOf(o)&&m("Unrecognized element <".concat(o,">"))}}))},Vt=function(e,t){f(e.attributes).forEach((function(n){-1===t.indexOf(n.name)&&m(['Unrecognized attribute "'.concat(n.name,'" on <').concat(e.tagName.toLowerCase(),">."),"".concat(t.length?"Allowed attributes are: ".concat(t.join(", ")):"To set the value, use HTML within the element.")])}))},Ft=function(e){var t=S(),n=P();"function"==typeof e.willOpen?e.willOpen(n):"function"==typeof e.onBeforeOpen&&e.onBeforeOpen(n);var o=window.getComputedStyle(document.body).overflowY;Qt(t,n,e),setTimeout((function(){Zt(t,n)}),10),Z()&&(Kt(t,e.scrollbarPadding,o),f(document.body.children).forEach((function(e){e===S()||function(e,t){if("function"==typeof e.contains)return e.contains(t)}(e,S())||(e.hasAttribute("aria-hidden")&&e.setAttribute("data-previous-aria-hidden",e.getAttribute("aria-hidden")),e.setAttribute("aria-hidden","true"))}))),K()||Qe.previousActiveElement||(Qe.previousActiveElement=document.activeElement),Gt(n,e),se(t,$["no-transition"])},Gt=function(e,t){"function"==typeof t.didOpen?setTimeout((function(){return t.didOpen(e)})):"function"==typeof t.onOpen&&setTimeout((function(){return t.onOpen(e)}))},Yt=function e(t){var n=P();if(t.target===n){var o=S();n.removeEventListener(ke,e),o.style.overflowY="auto"}},Zt=function(e,t){ke&&me(t)?(e.style.overflowY="hidden",t.addEventListener(ke,Yt)):e.style.overflowY="auto"},Kt=function(e,t,n){(function(){if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)&&!J(document.body,$.iosfix)){var e=document.body.scrollTop;document.body.style.top="".concat(-1*e,"px"),re(document.body,$.iosfix),vt(),wt()}})(),"undefined"!=typeof window&&xt()&&(Ct(),window.addEventListener("resize",Ct)),t&&"hidden"!==n&>(),setTimeout((function(){e.scrollTop=0}))},Qt=function(e,t,n){re(e,n.showClass.backdrop),t.style.setProperty("opacity","0","important"),ce(t),setTimeout((function(){re(t,n.showClass.popup),t.style.removeProperty("opacity")}),10),re([document.documentElement,document.body],$.shown),n.heightAuto&&n.backdrop&&!n.toast&&re([document.documentElement,document.body],$["height-auto"])},Xt=function(e){return e.checked?1:0},Jt=function(e){return e.checked?e.value:null},en=function(e){return e.files.length?null!==e.getAttribute("multiple")?e.files:e.files[0]:null},tn=function(t,n){var o=L(),i=function(e){return on[n.input](o,rn(e),n)};b(n.inputOptions)||x(n.inputOptions)?(Ke(z()),_(n.inputOptions).then((function(e){t.hideLoading(),i(e)}))):"object"===e(n.inputOptions)?i(n.inputOptions):g("Unexpected type of inputOptions! Expected object, Map or Promise, got ".concat(e(n.inputOptions)))},nn=function(e,t){var n=e.getInput();ue(n),_(t.inputValue).then((function(o){n.value="number"===t.input?parseFloat(o)||0:"".concat(o),ce(n),n.focus(),e.hideLoading()})).catch((function(t){g("Error in inputValue promise: ".concat(t)),n.value="",ce(n),n.focus(),e.hideLoading()}))},on={select:function(e,t,n){var o=ae(e,$.select),i=function(e,t,o){var i=document.createElement("option");i.value=o,X(i,t),i.selected=sn(o,n.inputValue),e.appendChild(i)};t.forEach((function(e){var t=e[0],n=e[1];if(Array.isArray(n)){var r=document.createElement("optgroup");r.label=t,r.disabled=!1,o.appendChild(r),n.forEach((function(e){return i(r,e[1],e[0])}))}else i(o,n,t)})),o.focus()},radio:function(e,t,n){var o=ae(e,$.radio);t.forEach((function(e){var t=e[0],i=e[1],r=document.createElement("input"),s=document.createElement("label");r.type="radio",r.name=$.radio,r.value=t,sn(t,n.inputValue)&&(r.checked=!0);var a=document.createElement("span");X(a,i),a.className=$.label,s.appendChild(r),s.appendChild(a),o.appendChild(s)}));var i=o.querySelectorAll("input");i.length&&i[0].focus()}},rn=function t(n){var o=[];return"undefined"!=typeof Map&&n instanceof Map?n.forEach((function(n,i){var r=n;"object"===e(r)&&(r=t(r)),o.push([i,r])})):Object.keys(n).forEach((function(i){var r=n[i];"object"===e(r)&&(r=t(r)),o.push([i,r])})),o},sn=function(e,t){return t&&t.toString()===e.toString()},an=function(e,t,n){var o=function(e,t){var n=e.getInput();if(!n)return null;switch(t.input){case"checkbox":return Xt(n);case"radio":return Jt(n);case"file":return en(n);default:return t.inputAutoTrim?n.value.trim():n.value}}(e,t);t.inputValidator?ln(e,t,o):e.getInput().checkValidity()?"deny"===n?cn(e,t,o):dn(e,t,o):(e.enableButtons(),e.showValidationMessage(t.validationMessage))},ln=function(e,t,n){e.disableInput(),Promise.resolve().then((function(){return _(t.inputValidator(n,t.validationMessage))})).then((function(o){e.enableButtons(),e.enableInput(),o?e.showValidationMessage(o):dn(e,t,n)}))},cn=function(e,t,n){t.showLoaderOnDeny&&Ke(H()),t.preDeny?Promise.resolve().then((function(){return _(t.preDeny(n,t.validationMessage))})).then((function(t){!1===t?e.hideLoading():e.closePopup({isDenied:!0,value:void 0===t?n:t})})):e.closePopup({isDenied:!0,value:n})},un=function(e,t){e.closePopup({isConfirmed:!0,value:t})},dn=function(e,t,n){t.showLoaderOnConfirm&&Ke(),t.preConfirm?(e.resetValidationMessage(),Promise.resolve().then((function(){return _(t.preConfirm(n,t.validationMessage))})).then((function(t){he(M())||!1===t?e.hideLoading():un(e,void 0===t?n:t)}))):un(e,n)},pn=function(e,t,n){var o=Y();if(o.length)return(t+=n)===o.length?t=0:-1===t&&(t=o.length-1),o[t].focus();P().focus()},hn=["ArrowRight","ArrowDown","Right","Down"],fn=["ArrowLeft","ArrowUp","Left","Up"],mn=["Escape","Esc"],gn=function(e,t,n){var o=Se.innerParams.get(e);o&&(o.stopKeydownPropagation&&t.stopPropagation(),"Enter"===t.key?wn(e,t,o):"Tab"===t.key?vn(t,o):-1!==[].concat(hn,fn).indexOf(t.key)?yn(t.key):-1!==mn.indexOf(t.key)&&bn(t,o,n))},wn=function(e,t,n){if(!t.isComposing&&t.target&&e.getInput()&&t.target.outerHTML===e.getInput().outerHTML){if(-1!==["textarea","file"].indexOf(n.input))return;Ze(),t.preventDefault()}},vn=function(e,t){for(var n=e.target,o=Y(),i=-1,r=0;r<o.length;r++)if(n===o[r]){i=r;break}e.shiftKey?pn(0,i,-1):pn(0,i,1),e.stopPropagation(),e.preventDefault()},yn=function(e){if(-1!==[z(),H(),N()].indexOf(document.activeElement)){var t=-1!==hn.indexOf(e)?"nextElementSibling":"previousElementSibling",n=document.activeElement[t];n&&n.focus()}},bn=function(e,t,n){y(t.allowEscapeKey)&&(e.preventDefault(),n(C.esc))},xn=function(e,t,n){t.popup.onclick=function(){var t=Se.innerParams.get(e);t.showConfirmButton||t.showDenyButton||t.showCancelButton||t.showCloseButton||t.timer||t.input||n(C.close)}},Cn=!1,kn=function(e){e.popup.onmousedown=function(){e.container.onmouseup=function(t){e.container.onmouseup=void 0,t.target===e.container&&(Cn=!0)}}},An=function(e){e.container.onmousedown=function(){e.popup.onmouseup=function(t){e.popup.onmouseup=void 0,(t.target===e.popup||e.popup.contains(t.target))&&(Cn=!0)}}},$n=function(e,t,n){t.container.onclick=function(o){var i=Se.innerParams.get(e);Cn?Cn=!1:o.target===t.container&&y(i.allowOutsideClick)&&n(C.backdrop)}};var En=function(e,t){var n=function(e){var t="string"==typeof e.template?document.querySelector(e.template):e.template;if(!t)return{};var n=t.content||t;return Wt(n),i(Mt(n),zt(n),Ht(n),Rt(n),Nt(n),Ut(n,It))}(e),o=i({},it,t,n,e);return o.showClass=i({},it.showClass,o.showClass),o.hideClass=i({},it.hideClass,o.hideClass),!1===e.animation&&(o.showClass={popup:"swal2-noanimation",backdrop:"swal2-noanimation"},o.hideClass={}),o},Sn=function(e,t,n){return new Promise((function(o){var i=function(t){e.closePopup({isDismissed:!0,dismiss:t})};kt.swalPromiseResolve.set(e,o),t.confirmButton.onclick=function(){return function(e,t){e.disableButtons(),t.input?an(e,t,"confirm"):dn(e,t,!0)}(e,n)},t.denyButton.onclick=function(){return function(e,t){e.disableButtons(),t.returnInputValueOnDeny?an(e,t,"deny"):cn(e,t,!1)}(e,n)},t.cancelButton.onclick=function(){return function(e,t){e.disableButtons(),t(C.cancel)}(e,i)},t.closeButton.onclick=function(){return i(C.close)},function(e,t,n){Se.innerParams.get(e).toast?xn(e,t,n):(kn(t),An(t),$n(e,t,n))}(e,t,i),function(e,t,n,o){t.keydownTarget&&t.keydownHandlerAdded&&(t.keydownTarget.removeEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!1),n.toast||(t.keydownHandler=function(t){return gn(e,t,o)},t.keydownTarget=n.keydownListenerCapture?window:P(),t.keydownListenerCapture=n.keydownListenerCapture,t.keydownTarget.addEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!0)}(e,Qe,n,i),function(e,t){"select"===t.input||"radio"===t.input?tn(e,t):-1!==["text","email","number","tel","textarea"].indexOf(t.input)&&(b(t.inputValue)||x(t.inputValue))&&nn(e,t)}(e,n),Ft(n),Dn(Qe,n,i),Pn(t,n),setTimeout((function(){t.container.scrollTop=0}))}))},On=function(e){var t={popup:P(),container:S(),content:L(),actions:U(),confirmButton:z(),denyButton:H(),cancelButton:N(),loader:R(),closeButton:G(),validationMessage:M(),progressSteps:I()};return Se.domCache.set(e,t),t},Dn=function(e,t,n){var o=F();ue(o),t.timer&&(e.timeout=new Lt((function(){n("timer"),delete e.timeout}),t.timer),t.timerProgressBar&&(ce(o),setTimeout((function(){e.timeout&&e.timeout.running&&ge(t.timer)}))))},Pn=function(e,t){if(!t.toast)return y(t.allowEnterKey)?void(Tn(e,t)||pn(0,-1,1)):jn()},Tn=function(e,t){return t.focusDeny&&he(e.denyButton)?(e.denyButton.focus(),!0):t.focusCancel&&he(e.cancelButton)?(e.cancelButton.focus(),!0):!(!t.focusConfirm||!he(e.confirmButton)||(e.confirmButton.focus(),0))},jn=function(){document.activeElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur()};var Ln,Bn=function(e){"function"==typeof e.didDestroy?e.didDestroy():"function"==typeof e.onDestroy&&e.onDestroy()},qn=function(e){delete e.params,delete Qe.keydownHandler,delete Qe.keydownTarget,In(Se),In(kt)},In=function(e){for(var t in e)e[t]=new WeakMap},Mn=Object.freeze({hideLoading:mt,disableLoading:mt,getInput:function(e){var t=Se.innerParams.get(e||this),n=Se.domCache.get(e||this);return n?te(n.content,t.input):null},close:$t,closePopup:$t,closeModal:$t,closeToast:$t,enableButtons:function(){Tt(this,["confirmButton","denyButton","cancelButton"],!1)},disableButtons:function(){Tt(this,["confirmButton","denyButton","cancelButton"],!0)},enableInput:function(){return jt(this.getInput(),!1)},disableInput:function(){return jt(this.getInput(),!0)},showValidationMessage:function(e){var t=Se.domCache.get(this),n=Se.innerParams.get(this);X(t.validationMessage,e),t.validationMessage.className=$["validation-message"],n.customClass&&n.customClass.validationMessage&&re(t.validationMessage,n.customClass.validationMessage),ce(t.validationMessage);var o=this.getInput();o&&(o.setAttribute("aria-invalid",!0),o.setAttribute("aria-describedBy",$["validation-message"]),oe(o),re(o,$.inputerror))},resetValidationMessage:function(){var e=Se.domCache.get(this);e.validationMessage&&ue(e.validationMessage);var t=this.getInput();t&&(t.removeAttribute("aria-invalid"),t.removeAttribute("aria-describedBy"),se(t,$.inputerror))},getProgressSteps:function(){return Se.domCache.get(this).progressSteps},_main:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ht(i({},t,e)),Qe.currentInstance&&Qe.currentInstance._destroy(),Qe.currentInstance=this;var n=En(e,t);qt(n),Object.freeze(n),Qe.timeout&&(Qe.timeout.stop(),delete Qe.timeout),clearTimeout(Qe.restoreFocusTimeout);var o=On(this);return Ye(this,n),Se.innerParams.set(this,n),Sn(this,o,n)},update:function(e){var t=P(),n=Se.innerParams.get(this);if(!t||J(t,n.hideClass.popup))return m("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");var o={};Object.keys(e).forEach((function(t){Hn.isUpdatableParameter(t)?o[t]=e[t]:m('Invalid parameter to update: "'.concat(t,'". Updatable params are listed here: https://github.com/sweetalert2/sweetalert2/blob/master/src/utils/params.js\n\nIf you think this parameter should be updatable, request it here: https://github.com/sweetalert2/sweetalert2/issues/new?template=02_feature_request.md'))}));var r=i({},n,o);Ye(this,r),Se.innerParams.set(this,r),Object.defineProperties(this,{params:{value:i({},this.params,e),writable:!1,enumerable:!0}})},_destroy:function(){var e=Se.domCache.get(this),t=Se.innerParams.get(this);t&&(e.popup&&Qe.swalCloseEventFinishedCallback&&(Qe.swalCloseEventFinishedCallback(),delete Qe.swalCloseEventFinishedCallback),Qe.deferDisposalTimer&&(clearTimeout(Qe.deferDisposalTimer),delete Qe.deferDisposalTimer),Bn(t),qn(this))}}),zn=function(){function e(){if(t(this,e),"undefined"!=typeof window){"undefined"==typeof Promise&&g("This package requires a Promise library, please include a shim to enable it in this browser (See: https://github.com/sweetalert2/sweetalert2/wiki/Migration-from-SweetAlert-to-SweetAlert2#1-ie-support)"),Ln=this;for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];var r=Object.freeze(this.constructor.argsToParams(o));Object.defineProperties(this,{params:{value:r,writable:!1,enumerable:!0,configurable:!0}});var s=this._main(this.params);Se.promise.set(this,s)}}return o(e,[{key:"then",value:function(e){return Se.promise.get(this).then(e)}},{key:"finally",value:function(e){return Se.promise.get(this).finally(e)}}]),e}();i(zn.prototype,Mn),i(zn,ft),Object.keys(Mn).forEach((function(e){zn[e]=function(){var t;if(Ln)return(t=Ln)[e].apply(t,arguments)}})),zn.DismissReason=C,zn.version="10.16.9";var Hn=zn;return Hn.default=Hn,Hn}(),void 0!==this&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2),"undefined"!=typeof document&&function(e,t){var n=e.createElement("style");if(e.getElementsByTagName("head")[0].appendChild(n),n.styleSheet)n.styleSheet.disabled||(n.styleSheet.cssText=t);else try{n.innerHTML=t}catch(e){n.innerText=t}}(document,'.swal2-popup.swal2-toast{flex-direction:column;align-items:stretch;width:auto;padding:1.25em;overflow-y:hidden;background:#fff;box-shadow:0 0 .625em #d9d9d9}.swal2-popup.swal2-toast .swal2-header{flex-direction:row;padding:0}.swal2-popup.swal2-toast .swal2-title{flex-grow:1;justify-content:flex-start;margin:0 .625em;font-size:1em}.swal2-popup.swal2-toast .swal2-loading{justify-content:center}.swal2-popup.swal2-toast .swal2-input{height:2em;margin:.3125em auto;font-size:1em}.swal2-popup.swal2-toast .swal2-validation-message{font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{position:static;width:.8em;height:.8em;line-height:.8}.swal2-popup.swal2-toast .swal2-content{justify-content:flex-start;margin:0 .625em;padding:0;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-html-container{padding:.625em 0 0}.swal2-popup.swal2-toast .swal2-html-container:empty{padding:0}.swal2-popup.swal2-toast .swal2-icon{width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:700}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{font-size:.25em}}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{flex:1;flex-basis:auto!important;align-self:stretch;width:auto;height:2.2em;height:auto;margin:0 .3125em;margin-top:.3125em;padding:0}.swal2-popup.swal2-toast .swal2-styled{margin:.125em .3125em;padding:.3125em .625em;font-size:1em}.swal2-popup.swal2-toast .swal2-styled:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px rgba(100,150,200,.5)}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;transform:rotate(45deg);border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.8em;left:-.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{-webkit-animation:swal2-toast-animate-success-line-tip .75s;animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{-webkit-animation:swal2-toast-animate-success-line-long .75s;animation:swal2-toast-animate-success-line-long .75s}.swal2-popup.swal2-toast.swal2-show{-webkit-animation:swal2-toast-show .5s;animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{-webkit-animation:swal2-toast-hide .1s forwards;animation:swal2-toast-hide .1s forwards}.swal2-container{display:flex;position:fixed;z-index:1060;top:0;right:0;bottom:0;left:0;flex-direction:row;align-items:center;justify-content:center;padding:.625em;overflow-x:hidden;transition:background-color .1s;-webkit-overflow-scrolling:touch}.swal2-container.swal2-backdrop-show,.swal2-container.swal2-noanimation{background:rgba(0,0,0,.4)}.swal2-container.swal2-backdrop-hide{background:0 0!important}.swal2-container.swal2-top{align-items:flex-start}.swal2-container.swal2-top-left,.swal2-container.swal2-top-start{align-items:flex-start;justify-content:flex-start}.swal2-container.swal2-top-end,.swal2-container.swal2-top-right{align-items:flex-start;justify-content:flex-end}.swal2-container.swal2-center{align-items:center}.swal2-container.swal2-center-left,.swal2-container.swal2-center-start{align-items:center;justify-content:flex-start}.swal2-container.swal2-center-end,.swal2-container.swal2-center-right{align-items:center;justify-content:flex-end}.swal2-container.swal2-bottom{align-items:flex-end}.swal2-container.swal2-bottom-left,.swal2-container.swal2-bottom-start{align-items:flex-end;justify-content:flex-start}.swal2-container.swal2-bottom-end,.swal2-container.swal2-bottom-right{align-items:flex-end;justify-content:flex-end}.swal2-container.swal2-bottom-end>:first-child,.swal2-container.swal2-bottom-left>:first-child,.swal2-container.swal2-bottom-right>:first-child,.swal2-container.swal2-bottom-start>:first-child,.swal2-container.swal2-bottom>:first-child{margin-top:auto}.swal2-container.swal2-grow-fullscreen>.swal2-modal{display:flex!important;flex:1;align-self:stretch;justify-content:center}.swal2-container.swal2-grow-row>.swal2-modal{display:flex!important;flex:1;align-content:center;justify-content:center}.swal2-container.swal2-grow-column{flex:1;flex-direction:column}.swal2-container.swal2-grow-column.swal2-bottom,.swal2-container.swal2-grow-column.swal2-center,.swal2-container.swal2-grow-column.swal2-top{align-items:center}.swal2-container.swal2-grow-column.swal2-bottom-left,.swal2-container.swal2-grow-column.swal2-bottom-start,.swal2-container.swal2-grow-column.swal2-center-left,.swal2-container.swal2-grow-column.swal2-center-start,.swal2-container.swal2-grow-column.swal2-top-left,.swal2-container.swal2-grow-column.swal2-top-start{align-items:flex-start}.swal2-container.swal2-grow-column.swal2-bottom-end,.swal2-container.swal2-grow-column.swal2-bottom-right,.swal2-container.swal2-grow-column.swal2-center-end,.swal2-container.swal2-grow-column.swal2-center-right,.swal2-container.swal2-grow-column.swal2-top-end,.swal2-container.swal2-grow-column.swal2-top-right{align-items:flex-end}.swal2-container.swal2-grow-column>.swal2-modal{display:flex!important;flex:1;align-content:center;justify-content:center}.swal2-container.swal2-no-transition{transition:none!important}.swal2-container:not(.swal2-top):not(.swal2-top-start):not(.swal2-top-end):not(.swal2-top-left):not(.swal2-top-right):not(.swal2-center-start):not(.swal2-center-end):not(.swal2-center-left):not(.swal2-center-right):not(.swal2-bottom):not(.swal2-bottom-start):not(.swal2-bottom-end):not(.swal2-bottom-left):not(.swal2-bottom-right):not(.swal2-grow-fullscreen)>.swal2-modal{margin:auto}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.swal2-container .swal2-modal{margin:0!important}}.swal2-popup{display:none;position:relative;box-sizing:border-box;flex-direction:column;justify-content:center;width:32em;max-width:100%;padding:1.25em;border:none;border-radius:5px;background:#fff;font-family:inherit;font-size:1rem}.swal2-popup:focus{outline:0}.swal2-popup.swal2-loading{overflow-y:hidden}.swal2-header{display:flex;flex-direction:column;align-items:center;padding:0 1.8em}.swal2-title{position:relative;max-width:100%;margin:0 0 .4em;padding:0;color:#595959;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word}.swal2-actions{display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:center;width:100%;margin:1.25em auto 0;padding:0}.swal2-actions:not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}.swal2-actions:not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0,0,0,.1),rgba(0,0,0,.1))}.swal2-actions:not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0,0,0,.2),rgba(0,0,0,.2))}.swal2-loader{display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;-webkit-animation:swal2-rotate-loading 1.5s linear 0s infinite normal;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 transparent #2778c4 transparent}.swal2-styled{margin:.3125em;padding:.625em 1.1em;box-shadow:none;font-weight:500}.swal2-styled:not([disabled]){cursor:pointer}.swal2-styled.swal2-confirm{border:0;border-radius:.25em;background:initial;background-color:#2778c4;color:#fff;font-size:1em}.swal2-styled.swal2-deny{border:0;border-radius:.25em;background:initial;background-color:#d14529;color:#fff;font-size:1em}.swal2-styled.swal2-cancel{border:0;border-radius:.25em;background:initial;background-color:#757575;color:#fff;font-size:1em}.swal2-styled:focus{outline:0;box-shadow:0 0 0 3px rgba(100,150,200,.5)}.swal2-styled::-moz-focus-inner{border:0}.swal2-footer{justify-content:center;margin:1.25em 0 0;padding:1em 0 0;border-top:1px solid #eee;color:#545454;font-size:1em}.swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;height:.25em;overflow:hidden;border-bottom-right-radius:5px;border-bottom-left-radius:5px}.swal2-timer-progress-bar{width:100%;height:.25em;background:rgba(0,0,0,.2)}.swal2-image{max-width:100%;margin:1.25em auto}.swal2-close{position:absolute;z-index:2;top:0;right:0;align-items:center;justify-content:center;width:1.2em;height:1.2em;padding:0;overflow:hidden;transition:color .1s ease-out;border:none;border-radius:5px;background:0 0;color:#ccc;font-family:serif;font-size:2.5em;line-height:1.2;cursor:pointer}.swal2-close:hover{transform:none;background:0 0;color:#f27474}.swal2-close:focus{outline:0;box-shadow:inset 0 0 0 3px rgba(100,150,200,.5)}.swal2-close::-moz-focus-inner{border:0}.swal2-content{z-index:1;justify-content:center;margin:0;padding:0 1.6em;color:#545454;font-size:1.125em;font-weight:400;line-height:normal;text-align:center;word-wrap:break-word}.swal2-checkbox,.swal2-file,.swal2-input,.swal2-radio,.swal2-select,.swal2-textarea{margin:1em auto}.swal2-file,.swal2-input,.swal2-textarea{box-sizing:border-box;width:100%;transition:border-color .3s,box-shadow .3s;border:1px solid #d9d9d9;border-radius:.1875em;background:inherit;box-shadow:inset 0 1px 1px rgba(0,0,0,.06);color:inherit;font-size:1.125em}.swal2-file.swal2-inputerror,.swal2-input.swal2-inputerror,.swal2-textarea.swal2-inputerror{border-color:#f27474!important;box-shadow:0 0 2px #f27474!important}.swal2-file:focus,.swal2-input:focus,.swal2-textarea:focus{border:1px solid #b4dbed;outline:0;box-shadow:0 0 0 3px rgba(100,150,200,.5)}.swal2-file::-moz-placeholder,.swal2-input::-moz-placeholder,.swal2-textarea::-moz-placeholder{color:#ccc}.swal2-file:-ms-input-placeholder,.swal2-input:-ms-input-placeholder,.swal2-textarea:-ms-input-placeholder{color:#ccc}.swal2-file::placeholder,.swal2-input::placeholder,.swal2-textarea::placeholder{color:#ccc}.swal2-range{margin:1em auto;background:#fff}.swal2-range input{width:80%}.swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}.swal2-range input,.swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}.swal2-input{height:2.625em;padding:0 .75em}.swal2-input[type=number]{max-width:10em}.swal2-file{background:inherit;font-size:1.125em}.swal2-textarea{height:6.75em;padding:.75em}.swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:inherit;color:inherit;font-size:1.125em}.swal2-checkbox,.swal2-radio{align-items:center;justify-content:center;background:#fff;color:inherit}.swal2-checkbox label,.swal2-radio label{margin:0 .6em;font-size:1.125em}.swal2-checkbox input,.swal2-radio input{flex-shrink:0;margin:0 .4em}.swal2-input-label{display:flex;justify-content:center;margin:1em auto}.swal2-validation-message{align-items:center;justify-content:center;margin:0 -2.7em;padding:.625em;overflow:hidden;background:#f0f0f0;color:#666;font-size:1em;font-weight:300}.swal2-validation-message::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}.swal2-icon{position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:1.25em auto 1.875em;border:.25em solid transparent;border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}.swal2-icon.swal2-error{border-color:#f27474;color:#f27474}.swal2-icon.swal2-error .swal2-x-mark{position:relative;flex-grow:1}.swal2-icon.swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}.swal2-icon.swal2-error.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-error.swal2-icon-show .swal2-x-mark{-webkit-animation:swal2-animate-error-x-mark .5s;animation:swal2-animate-error-x-mark .5s}.swal2-icon.swal2-warning{border-color:#facea8;color:#f8bb86}.swal2-icon.swal2-info{border-color:#9de0f6;color:#3fc3ee}.swal2-icon.swal2-question{border-color:#c9dae1;color:#87adbd}.swal2-icon.swal2-success{border-color:#a5dc86;color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;transform:rotate(45deg);border-radius:50%}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=right]{top:-.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}.swal2-icon.swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-.25em;left:-.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}.swal2-icon.swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}.swal2-icon.swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}.swal2-icon.swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-line-tip{-webkit-animation:swal2-animate-success-line-tip .75s;animation:swal2-animate-success-line-tip .75s}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-line-long{-webkit-animation:swal2-animate-success-line-long .75s;animation:swal2-animate-success-line-long .75s}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-circular-line-right{-webkit-animation:swal2-rotate-success-circular-line 4.25s ease-in;animation:swal2-rotate-success-circular-line 4.25s ease-in}.swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:0 0 1.25em;padding:0;background:inherit;font-weight:600}.swal2-progress-steps li{display:inline-block;position:relative}.swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:#add8e6;color:#fff}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:#add8e6}.swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}[class^=swal2]{-webkit-tap-highlight-color:transparent}.swal2-show{-webkit-animation:swal2-show .3s;animation:swal2-show .3s}.swal2-hide{-webkit-animation:swal2-hide .15s forwards;animation:swal2-hide .15s forwards}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{right:auto;left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}@supports (-ms-accelerator:true){.swal2-range input{width:100%!important}.swal2-range output{display:none}}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.swal2-range input{width:100%!important}.swal2-range output{display:none}}@-webkit-keyframes swal2-toast-show{0%{transform:translateY(-.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0)}}@keyframes swal2-toast-show{0%{transform:translateY(-.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0)}}@-webkit-keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@-webkit-keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@-webkit-keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@-webkit-keyframes swal2-show{0%{transform:scale(.7)}45%{transform:scale(1.05)}80%{transform:scale(.95)}100%{transform:scale(1)}}@keyframes swal2-show{0%{transform:scale(.7)}45%{transform:scale(1.05)}80%{transform:scale(.95)}100%{transform:scale(1)}}@-webkit-keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(.5);opacity:0}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(.5);opacity:0}}@-webkit-keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@-webkit-keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@-webkit-keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@-webkit-keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(.4);opacity:0}50%{margin-top:1.625em;transform:scale(.4);opacity:0}80%{margin-top:-.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(.4);opacity:0}50%{margin-top:1.625em;transform:scale(.4);opacity:0}80%{margin-top:-.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@-webkit-keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0);opacity:1}}@-webkit-keyframes swal2-rotate-loading{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@keyframes swal2-rotate-loading{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto!important}body.swal2-no-backdrop .swal2-container{top:auto;right:auto;bottom:auto;left:auto;max-width:calc(100% - .625em * 2);background-color:transparent!important}body.swal2-no-backdrop .swal2-container>.swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}body.swal2-no-backdrop .swal2-container.swal2-top{top:0;left:50%;transform:translateX(-50%)}body.swal2-no-backdrop .swal2-container.swal2-top-left,body.swal2-no-backdrop .swal2-container.swal2-top-start{top:0;left:0}body.swal2-no-backdrop .swal2-container.swal2-top-end,body.swal2-no-backdrop .swal2-container.swal2-top-right{top:0;right:0}body.swal2-no-backdrop .swal2-container.swal2-center{top:50%;left:50%;transform:translate(-50%,-50%)}body.swal2-no-backdrop .swal2-container.swal2-center-left,body.swal2-no-backdrop .swal2-container.swal2-center-start{top:50%;left:0;transform:translateY(-50%)}body.swal2-no-backdrop .swal2-container.swal2-center-end,body.swal2-no-backdrop .swal2-container.swal2-center-right{top:50%;right:0;transform:translateY(-50%)}body.swal2-no-backdrop .swal2-container.swal2-bottom{bottom:0;left:50%;transform:translateX(-50%)}body.swal2-no-backdrop .swal2-container.swal2-bottom-left,body.swal2-no-backdrop .swal2-container.swal2-bottom-start{bottom:0;left:0}body.swal2-no-backdrop .swal2-container.swal2-bottom-end,body.swal2-no-backdrop .swal2-container.swal2-bottom-right{right:0;bottom:0}@media print{body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow-y:scroll!important}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) .swal2-container{position:static!important}}body.swal2-toast-shown .swal2-container{background-color:transparent}body.swal2-toast-shown .swal2-container.swal2-top{top:0;right:auto;bottom:auto;left:50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{top:0;right:0;bottom:auto;left:auto}body.swal2-toast-shown .swal2-container.swal2-top-left,body.swal2-toast-shown .swal2-container.swal2-top-start{top:0;right:auto;bottom:auto;left:0}body.swal2-toast-shown .swal2-container.swal2-center-left,body.swal2-toast-shown .swal2-container.swal2-center-start{top:50%;right:auto;bottom:auto;left:0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{top:50%;right:auto;bottom:auto;left:50%;transform:translate(-50%,-50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{top:50%;right:0;bottom:auto;left:auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-left,body.swal2-toast-shown .swal2-container.swal2-bottom-start{top:auto;right:auto;bottom:0;left:0}body.swal2-toast-shown .swal2-container.swal2-bottom{top:auto;right:auto;bottom:0;left:50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{top:auto;right:0;bottom:0;left:auto}')},567:function(e){"use strict";e.exports=window.jQuery}},t={};function n(o){var i=t[o];if(void 0!==i)return i.exports;var r=t[o]={exports:{}};return e[o].call(r.exports,r,r.exports,n),r.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){"use strict";n(233),n(686);var e=n(455),t=n.n(e);const o=window.WPCodeSnippetManager||function(e,n,o){const i={editor_id:"wpcode_snippet_code",unload_set:!1,l10n:wpcode,init:function(){i.should_init()&&(n.WPCodeSnippetManager=i,i.find_elements(),i.init_snippet_type_switcher(),i.init_auto_insert_toggle(),i.init_dynamic_hide(),i.init_copy_target(),i.init_tags_picker(),i.init_metabox_toggler(),i.init_select2(),i.init_tinymce_listener(),i.unload_change_listener(),i.init_save_to_library(),i.init_custom_shortcode(),i.init_conditional_logic_notice(),i.init_device_type())},should_init:function(){return void 0!==n.wpcode_editor&&null!==e.getElementById(i.editor_id)},find_elements(){i.location_dropdown=o("#wpcode_auto_insert_location"),i.switcher=o(e.getElementById("wpcode_snippet_type")),i.$body=o("body"),i.$text_editor=tinymce.get("wpcode_snippet_text")},init_snippet_type_switcher:function(){i.switcher.on("change",(function(){i.set_before_unload(),n.WPCodeAdminCodeEditor.switch_code_mode(i.editor_id,o(this).val(),o(this).find(":selected").data("mode"),o(this).find(":selected").data("lint")),"text"===i.switcher.val()?(i.$body.addClass("wpcode-show-tinymce"),i.$text_editor.setContent(n.WPCodeAdminCodeEditor.get_value(i.editor_id))):(i.$body.removeClass("wpcode-show-tinymce"),n.WPCodeAdminCodeEditor.refresh(i.editor_id)),i.update_available_locations(i.switcher.val())}))},update_available_locations(e){const t=i.location_dropdown.find("optgroup");t.find("option").prop("disabled",!1).prop("selected",!1);const n=t.filter((function(){const t=o(this).data("code-type");return"all"!==t&&e!==t}));n.length>0&&n.find("option").prop("disabled",!0).prop("selected",!1),i.location_dropdown.trigger("change")},init_auto_insert_toggle:function(){const t={toggles:"",init:function(){t.toggles=o(e.querySelectorAll(".wpcode-button-toggle")),t.listen_to_switch()},listen_to_switch:function(){t.toggles.each((function(){const e=o(this).find(".wpcode-button-toggle-input");o(this).on("click",".wpcode-button",(function(n){n.preventDefault(),i.set_before_unload(),e.val(o(this).val()).change(),t.make_button_active(o(this))}))}))},make_button_active:function(e){e.closest(".wpcode-button-toggle").find(".wpcode-button").each((function(){e.is(o(this))?o(this).removeClass("wpcode-button-secondary-inactive"):o(this).addClass("wpcode-button-secondary-inactive")}))}};t.init()},init_dynamic_hide:function(){const e={init:function(){e.elements=o("[data-show-if-id]"),e.add_listeners()},add_listeners:function(){e.elements.each((function(){const t=o(this),n=t.data("show-if-id");if(""===n)return;const i=String(t.data("show-if-value")).split(","),r=o(n);r.on("change",(function(){e.maybe_hide(r,t,i)})),e.maybe_hide(r,t,i)}))},maybe_hide:function(e,t,n){let o=String(e.val());"checkbox"===e.attr("type")&&(o=e.prop("checked")?"1":"0"),n.indexOf(o)<0?t.hide():(t.show(),t.find(".wpcode-select2").length>0&&i.init_select2())}};e.init()},init_copy_target:function(){o(".wpcode-copy-target").on("click",(function(e){e.preventDefault();const t=o(this),n=t.data("target"),i=t.data("prefix"),r=t.data("suffix"),s=o(n).val();s&&(navigator.clipboard.writeText(i+s+r),t.addClass("wpcode-show-success-icon"),setTimeout((function(){t.removeClass("wpcode-show-success-icon")}),500))}))},init_select2:function(){o(".wpcode-select2").select2({templateResult:function(e){const t=o(e.element),n=t.data("label-pill"),i=t.data("upgrade-title"),r=t.data("upgrade-text"),s=t.data("upgrade-link"),a=t.data("upgrade-button"),l=o('<span class="wpcode-pro-pill">'+n+"</span>");return""!==i&&l.attr("data-upgrade-title",i),""!==r&&l.attr("data-upgrade-text",r),""!==s&&l.attr("data-upgrade-link",s),""!==a&&l.attr("data-upgrade-button",a),void 0!==n&&""!==n?((e=o("<span>"+e.text+"</span>")).append(l),e):e.text}}),o("body").on("click",".select2-results__options",(function(e){const t=o(this).closest(".select2-results__option").find(".wpcode-pro-pill");t.length>0&&i.show_pro_notice(t.data("upgrade-title"),t.data("upgrade-text"),t.data("upgrade-link"),t.data("upgrade-button"))}))},init_tags_picker:function(){const e=o(".wpcode-tags-picker");e.select2({tags:!0,ajax:{url:ajaxurl,data:function(e){return{action:"ajax-tag-search",tax:"wpcode_tags",q:e.term?e.term:""}},processResults:function(e){const t=e.split(","),n=[];return t.forEach((function(e){""!==e&&n.push({id:e,text:e})})),{results:n}}}}),e.on("change",(function(){i.set_before_unload();const e=o(this).data("target");o(e).val(o(this).val().join(","))}))},init_metabox_toggler:function(){o(".wpcode-metabox-title").on("click",(function(){o(this).parent().toggleClass("wpcode-metabox-collapsed")}))},init_tinymce_listener(){i.$text_editor.on("Paste Change input Undo Redo",(function(){i.set_before_unload(),clearTimeout(i.editor_change_handler),i.editor_change_handler=setTimeout((function(){n.WPCodeAdminCodeEditor.set_value(i.editor_id,i.$text_editor.getContent())}),100)}))},set_before_unload(){i.unload_set||(i.unload_set=!0,o(n).on("beforeunload",(function(){return""})))},unload_change_listener(){n.WPCodeAdminCodeEditor.get_editor(i.editor_id).on("change",(function(){i.set_before_unload()}));const e=o("#wpcode-snippet-manager-form");e.on("change","input, select",(function(){i.set_before_unload()})),e.on("submit",(function(){o(n).off("beforeunload")}))},init_save_to_library(){o("#wpcode_save_to_library").click((function(e){e.preventDefault(),i.show_pro_notice(i.l10n.save_to_library_title,i.l10n.save_to_library_text,i.l10n.save_to_library_url)}))},init_custom_shortcode(){o("#wpcode-custom-shortcode-lite").click((function(e){e.preventDefault(),i.show_pro_notice(i.l10n.shortcode_title,i.l10n.shortcode_text,i.l10n.shortcode_url)}))},init_device_type(){o(".wpcode-device-type-picker-lite label").click((function(e){e.preventDefault(),i.show_pro_notice(i.l10n.device_title,i.l10n.device_text,i.l10n.device_url)}))},show_pro_notice(e,o,r,s){t().fire({title:e,text:o,customClass:{confirmButton:"wpcode-button wpcode-button-orange wpcode-button-large",icon:"wpcode-lock"},showCloseButton:!0,confirmButtonText:s||i.l10n.save_to_library_button,iconHtml:'<svg width="22" height="28" viewBox="0 0 22 28" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M19 9.33333H17.6666V6.66667C17.6666 2.98667 14.68 0 11 0C7.31998 0 4.33331 2.98667 4.33331 6.66667V9.33333H2.99998C1.53331 9.33333 0.333313 10.5333 0.333313 12V25.3333C0.333313 26.8 1.53331 28 2.99998 28H19C20.4666 28 21.6666 26.8 21.6666 25.3333V12C21.6666 10.5333 20.4666 9.33333 19 9.33333ZM6.99998 6.66667C6.99998 4.45333 8.78665 2.66667 11 2.66667C13.2133 2.66667 15 4.45333 15 6.66667V9.33333H6.99998V6.66667ZM19 25.3333H2.99998V12H19V25.3333ZM11 21.3333C12.4666 21.3333 13.6666 20.1333 13.6666 18.6667C13.6666 17.2 12.4666 16 11 16C9.53331 16 8.33331 17.2 8.33331 18.6667C8.33331 20.1333 9.53331 21.3333 11 21.3333Z" fill="#8A8A8A"/></svg>'}).then((function(e){e.isConfirmed&&n.open(r,"_blank")}))},init_conditional_logic_notice(){o("#wpcode-conditions-holder").on("change",".wpcode-cl-rule-type",(function(e){const t=o(this).find(":selected");if(t.data("upgrade-title")){e.stopPropagation(),i.show_pro_notice(t.data("upgrade-title"),t.data("upgrade-text"),t.data("upgrade-link"),t.data("upgrade-button"));const n=o(this).find("option").first();o(this).val(n.attr("value")).trigger("change")}}))}};return i}(document,window,jQuery);jQuery((function(){o.init()})),n(560),n(569),n(5),n(900),n(423),n(124),n(786),n(298),n(801),n(847),n(770),n(868),n(448),(window.WPCodeLibraryAuth||function(e,n,o){const i={i18n:n.wpcode,init:function(){i.load_elements(),i.add_event_listeners(),n.WPCodeLibraryAuth=i},load_elements(){i.auth_start_button=o(".wpcode-start-auth"),i.auth_delete_button=o(".wpcode-delete-auth")},add_event_listeners(){i.auth_start_button.on("click",(function(e){e.preventDefault(),i.start_auth(o(this)),n.WPCodeSpinner.show_button_spinner(o(this))})),i.auth_delete_button.on("click",(function(e){e.preventDefault(),i.delete_auth()})),n.addEventListener("message",(e=>{e.isTrusted&&i.store_auth(e.data,e.origin)}),!1)},start_auth(e){o.post(ajaxurl,{action:"wpcode_library_start_auth",_ajax_nonce:i.i18n.nonce},(function(o){if(n.WPCodeSpinner.hide_button_spinner(e),o.success){let e=n.open(o.data.url,"_blank","location=no,width=500,height=730,scrollbars=0");null===e?t().fire({title:"Your browser blocked the authorization window from opening. Please check your popup settings.",customClass:{confirmButton:"wpcode-button",cancelButton:"wpcode-button"}}):e.focus()}}))},delete_auth(){i.show_please_wait(),o.post(ajaxurl,{action:"wpcode_library_delete_auth",_ajax_nonce:i.i18n.nonce},(function(e){e.success&&n.location.reload()}))},store_auth(e,r){void 0!==e.key&&void 0!==e.username&&o.post(ajaxurl,{action:"wpcode_library_store_auth",key:e.key,username:e.username,origin:r,_ajax_nonce:i.i18n.nonce},(function(e){e.success&&t().fire({title:e.data.title,text:e.data.text,didOpen:()=>{t().showLoading(),setTimeout((function(){n.location.reload()}),2e3)}})}))},show_please_wait(){t().fire({title:i.i18n.please_wait,didOpen:()=>{t().showLoading()}})}};return i}(document,window,jQuery)).init()}()}();
|
ihaf.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* Plugin Name: WPCode Lite
|
4 |
* Plugin URI: https://www.wpcode.com/
|
5 |
-
* Version: 2.0.
|
6 |
* Requires at least: 4.6
|
7 |
* Requires PHP: 5.5
|
8 |
* Tested up to: 6.1
|
@@ -395,7 +395,7 @@ class WPCode {
|
|
395 |
$this->generator = new WPCode_Generator();
|
396 |
$this->importers = new WPCode_Importers();
|
397 |
$this->notifications = new WPCode_Notifications();
|
398 |
-
$this->admin_page_loader = new
|
399 |
$this->notice = new WPCode_Notice();
|
400 |
|
401 |
new WPCode_Metabox_Snippets_Lite();
|
2 |
/**
|
3 |
* Plugin Name: WPCode Lite
|
4 |
* Plugin URI: https://www.wpcode.com/
|
5 |
+
* Version: 2.0.5
|
6 |
* Requires at least: 4.6
|
7 |
* Requires PHP: 5.5
|
8 |
* Tested up to: 6.1
|
395 |
$this->generator = new WPCode_Generator();
|
396 |
$this->importers = new WPCode_Importers();
|
397 |
$this->notifications = new WPCode_Notifications();
|
398 |
+
$this->admin_page_loader = new WPCode_Admin_Page_Loader_Lite();
|
399 |
$this->notice = new WPCode_Notice();
|
400 |
|
401 |
new WPCode_Metabox_Snippets_Lite();
|
includes/admin/class-wpcode-admin-notice.php
CHANGED
@@ -36,6 +36,13 @@ class WPCode_Notice {
|
|
36 |
*/
|
37 |
public $notices = array();
|
38 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
/**
|
40 |
* Init.
|
41 |
*
|
@@ -54,6 +61,9 @@ class WPCode_Notice {
|
|
54 |
// Hook for our specific pages where we hide all other admin notices.
|
55 |
add_action( 'wpcode_admin_notices', array( $this, 'display' ), 10 );
|
56 |
add_action( 'wp_ajax_wpcode_notice_dismiss', array( $this, 'dismiss_ajax' ) );
|
|
|
|
|
|
|
57 |
}
|
58 |
|
59 |
/**
|
@@ -104,6 +114,34 @@ class WPCode_Notice {
|
|
104 |
}
|
105 |
}
|
106 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
107 |
/**
|
108 |
* Add notice to the registry.
|
109 |
*
|
@@ -144,17 +182,27 @@ class WPCode_Notice {
|
|
144 |
|
145 |
$id .= empty( $slug ) ? $uniq_id : $slug;
|
146 |
|
147 |
-
$
|
148 |
-
$class
|
149 |
-
$message
|
150 |
-
$notice
|
151 |
'<div class="notice wpcode-notice %s%s" id="%s">%s</div>',
|
152 |
-
esc_attr( $
|
153 |
esc_attr( $class ),
|
154 |
esc_attr( $id ),
|
155 |
$message
|
156 |
);
|
157 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
158 |
if ( empty( $slug ) ) {
|
159 |
wpcode()->notice->notices[] = $notice;
|
160 |
} else {
|
@@ -174,6 +222,18 @@ class WPCode_Notice {
|
|
174 |
self::add( $message, 'info', $args );
|
175 |
}
|
176 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
177 |
/**
|
178 |
* Add error notice.
|
179 |
*
|
36 |
*/
|
37 |
public $notices = array();
|
38 |
|
39 |
+
/**
|
40 |
+
* Top notices, displayed separately.
|
41 |
+
*
|
42 |
+
* @var array
|
43 |
+
*/
|
44 |
+
public $notices_top = array();
|
45 |
+
|
46 |
/**
|
47 |
* Init.
|
48 |
*
|
61 |
// Hook for our specific pages where we hide all other admin notices.
|
62 |
add_action( 'wpcode_admin_notices', array( $this, 'display' ), 10 );
|
63 |
add_action( 'wp_ajax_wpcode_notice_dismiss', array( $this, 'dismiss_ajax' ) );
|
64 |
+
|
65 |
+
// Display notices above the header.
|
66 |
+
add_action( 'wpcode_admin_page', array( $this, 'display_top' ), 5 );
|
67 |
}
|
68 |
|
69 |
/**
|
114 |
}
|
115 |
}
|
116 |
|
117 |
+
/**
|
118 |
+
* Display the notices at the top of the WPC pages.
|
119 |
+
*/
|
120 |
+
public function display_top() {
|
121 |
+
$dismissed_notices = get_user_meta( get_current_user_id(), 'wpcode_admin_notices', true );
|
122 |
+
$dismissed_notices = is_array( $dismissed_notices ) ? $dismissed_notices : array();
|
123 |
+
$dismissed_notices = array_merge( $dismissed_notices, (array) get_option( 'wpcode_admin_notices', array() ) );
|
124 |
+
|
125 |
+
foreach ( $this->notices_top as $slug => $notice ) {
|
126 |
+
if ( isset( $dismissed_notices[ $slug ] ) && ! empty( $dismissed_notices[ $slug ]['dismissed'] ) ) {
|
127 |
+
unset( $this->notices_top[ $slug ] );
|
128 |
+
}
|
129 |
+
}
|
130 |
+
|
131 |
+
$output = implode( '', $this->notices_top );
|
132 |
+
|
133 |
+
if ( ! empty( $output ) ) {
|
134 |
+
echo '<div class="wpcode-notice-top-area">';
|
135 |
+
echo $output; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
|
136 |
+
echo '</div>';
|
137 |
+
}
|
138 |
+
|
139 |
+
// Enqueue script only when it's needed.
|
140 |
+
if ( strpos( $output, 'is-dismissible' ) !== false ) {
|
141 |
+
$this->enqueues();
|
142 |
+
}
|
143 |
+
}
|
144 |
+
|
145 |
/**
|
146 |
* Add notice to the registry.
|
147 |
*
|
182 |
|
183 |
$id .= empty( $slug ) ? $uniq_id : $slug;
|
184 |
|
185 |
+
$type_class = ! empty( $type ) ? 'notice-' . esc_attr( sanitize_key( $type ) ) : '';
|
186 |
+
$class = empty( $args['class'] ) ? $class : $class . ' ' . esc_attr( sanitize_key( $args['class'] ) );
|
187 |
+
$message = $args['autop'] ? wpautop( $message ) : $message;
|
188 |
+
$notice = sprintf(
|
189 |
'<div class="notice wpcode-notice %s%s" id="%s">%s</div>',
|
190 |
+
esc_attr( $type_class ),
|
191 |
esc_attr( $class ),
|
192 |
esc_attr( $id ),
|
193 |
$message
|
194 |
);
|
195 |
|
196 |
+
if ( 'top' === $type ) {
|
197 |
+
if ( empty( $slug ) ) {
|
198 |
+
wpcode()->notice->notices_top[] = $notice;
|
199 |
+
} else {
|
200 |
+
wpcode()->notice->notices_top[ $slug ] = $notice;
|
201 |
+
}
|
202 |
+
|
203 |
+
return; // Don't mix top notices.
|
204 |
+
}
|
205 |
+
|
206 |
if ( empty( $slug ) ) {
|
207 |
wpcode()->notice->notices[] = $notice;
|
208 |
} else {
|
222 |
self::add( $message, 'info', $args );
|
223 |
}
|
224 |
|
225 |
+
/**
|
226 |
+
* Add top notice (displayed before the header on wpcode pages only).
|
227 |
+
*
|
228 |
+
*
|
229 |
+
* @param string $message Message to display.
|
230 |
+
* @param array $args Array of additional arguments. Details in the self::add() method.
|
231 |
+
*/
|
232 |
+
public static function top( $message, $args = [] ) {
|
233 |
+
|
234 |
+
self::add( $message, 'top', $args );
|
235 |
+
}
|
236 |
+
|
237 |
/**
|
238 |
* Add error notice.
|
239 |
*
|
includes/admin/class-wpcode-upgrade-welcome.php
CHANGED
@@ -263,9 +263,21 @@ class WPCode_Upgrade_Welcome {
|
|
263 |
<div class="wpcode-welcome-box">
|
264 |
<div class="wpcode-welcome-highlight">
|
265 |
<div class="wpcode-welcome-highlight-column">
|
266 |
-
<h3><?php esc_html_e( 'Store Snippets in Cloud
|
267 |
<p><?php esc_html_e( 'A lot of you requested the ability to save and re-use snippets on multiple websites.', 'insert-headers-and-footers' ); ?></p>
|
268 |
-
<p
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
269 |
<p>
|
270 |
<?php
|
271 |
printf(
|
263 |
<div class="wpcode-welcome-box">
|
264 |
<div class="wpcode-welcome-highlight">
|
265 |
<div class="wpcode-welcome-highlight-column">
|
266 |
+
<h3><?php esc_html_e( 'Store Snippets in Cloud', 'insert-headers-and-footers' ); ?></h3>
|
267 |
<p><?php esc_html_e( 'A lot of you requested the ability to save and re-use snippets on multiple websites.', 'insert-headers-and-footers' ); ?></p>
|
268 |
+
<p>
|
269 |
+
<?php
|
270 |
+
printf(
|
271 |
+
// Translators: Placeholders add a link to the suggestions page.
|
272 |
+
esc_html__(
|
273 |
+
'This feature is now available in the %1$sPRO version of the plugin%2$s along with other powerful features.',
|
274 |
+
'insert-headers-and-footers'
|
275 |
+
),
|
276 |
+
'<a href="' . esc_url( wpcode_utm_url( 'https://wpcode.com/lite/', 'upgrade-welcome', 'cloud-snippets' ) ) . '" target="_blank">',
|
277 |
+
'</a>'
|
278 |
+
);
|
279 |
+
?>
|
280 |
+
</p>
|
281 |
<p>
|
282 |
<?php
|
283 |
printf(
|
includes/admin/pages/class-wpcode-admin-page-code-snippets.php
CHANGED
@@ -119,9 +119,30 @@ class WPCode_Admin_Page_Code_Snippets extends WPCode_Admin_Page {
|
|
119 |
wp_delete_post( $id );
|
120 |
}
|
121 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
122 |
$message = array(
|
123 |
rtrim( $action, 'e' ) . 'ed' => count( $ids ),
|
124 |
);
|
|
|
|
|
|
|
125 |
|
126 |
wpcode()->cache->cache_all_loaded_snippets();
|
127 |
|
@@ -227,9 +248,37 @@ class WPCode_Admin_Page_Code_Snippets extends WPCode_Admin_Page {
|
|
227 |
$count
|
228 |
);
|
229 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
230 |
// phpcs:enable WordPress.Security.NonceVerification
|
231 |
|
232 |
-
if ( isset( $notice ) ) {
|
|
|
|
|
233 |
$this->set_success_message( $notice );
|
234 |
}
|
235 |
}
|
119 |
wp_delete_post( $id );
|
120 |
}
|
121 |
}
|
122 |
+
$failed = 0;
|
123 |
+
if ( 'enable' === $action ) {
|
124 |
+
foreach ( $ids as $key => $id ) {
|
125 |
+
$snippet = new WPCode_Snippet( $id );
|
126 |
+
$snippet->activate();
|
127 |
+
if ( ! $snippet->active ) {
|
128 |
+
// If failed to activate don't count it.
|
129 |
+
unset( $ids[ $key ] );
|
130 |
+
$failed ++;
|
131 |
+
}
|
132 |
+
}
|
133 |
+
}
|
134 |
+
if ( 'disable' === $action ) {
|
135 |
+
foreach ( $ids as $id ) {
|
136 |
+
$snippet = new WPCode_Snippet( $id );
|
137 |
+
$snippet->deactivate();
|
138 |
+
}
|
139 |
+
}
|
140 |
$message = array(
|
141 |
rtrim( $action, 'e' ) . 'ed' => count( $ids ),
|
142 |
);
|
143 |
+
if ( $failed ) {
|
144 |
+
$message['error'] = $failed;
|
145 |
+
}
|
146 |
|
147 |
wpcode()->cache->cache_all_loaded_snippets();
|
148 |
|
248 |
$count
|
249 |
);
|
250 |
}
|
251 |
+
|
252 |
+
if ( isset( $_GET['enabled'] ) ) {
|
253 |
+
$count = absint( $_GET['enabled'] );
|
254 |
+
$notice = '';
|
255 |
+
if ( $count > 0 ) {
|
256 |
+
$notice = sprintf( /* translators: %d - Activated snippets count. */
|
257 |
+
_n( '%d snippet was successfully activated.', '%d snippets were successfully activated.', $count, 'insert-headers-and-footers' ),
|
258 |
+
$count
|
259 |
+
);
|
260 |
+
}
|
261 |
+
if ( isset( $_GET['error'] ) ) {
|
262 |
+
$error_count = absint( $_GET['error'] );
|
263 |
+
$notice .= ' ' . sprintf( /* translators: %d - Failed to activate snippets count. */
|
264 |
+
_n( '%d snippet was not activated due to an error.', '%d snippets were not activated due to errors.', $error_count, 'insert-headers-and-footers' ),
|
265 |
+
$error_count
|
266 |
+
);
|
267 |
+
}
|
268 |
+
}
|
269 |
+
|
270 |
+
if ( ! empty( $_GET['disabled'] ) ) {
|
271 |
+
$count = absint( $_GET['disabled'] );
|
272 |
+
$notice = sprintf( /* translators: %d - Deactivated snippets count. */
|
273 |
+
_n( '%d snippet was successfully deactivated.', '%d snippets were successfully deactivated.', $count, 'insert-headers-and-footers' ),
|
274 |
+
$count
|
275 |
+
);
|
276 |
+
}
|
277 |
// phpcs:enable WordPress.Security.NonceVerification
|
278 |
|
279 |
+
if ( isset( $error_count ) && isset( $notice ) ) {
|
280 |
+
$this->set_error_message( $notice );
|
281 |
+
} elseif ( isset( $notice ) ) {
|
282 |
$this->set_success_message( $notice );
|
283 |
}
|
284 |
}
|
includes/admin/pages/class-wpcode-admin-page-library.php
CHANGED
@@ -135,6 +135,7 @@ class WPCode_Admin_Page_Library extends WPCode_Admin_Page {
|
|
135 |
|
136 |
$this->get_library_markup( $categories, $snippets );
|
137 |
$this->library_preview_modal_content();
|
|
|
138 |
}
|
139 |
|
140 |
/**
|
@@ -261,7 +262,7 @@ class WPCode_Admin_Page_Library extends WPCode_Admin_Page {
|
|
261 |
*/
|
262 |
public function get_placeholder_library_items() {
|
263 |
$categories = array(
|
264 |
-
'*'
|
265 |
'admin' => 'Admin',
|
266 |
'archive' => 'Archive',
|
267 |
'attachments' => 'Attachments',
|
135 |
|
136 |
$this->get_library_markup( $categories, $snippets );
|
137 |
$this->library_preview_modal_content();
|
138 |
+
$this->library_connect_banner_template();
|
139 |
}
|
140 |
|
141 |
/**
|
262 |
*/
|
263 |
public function get_placeholder_library_items() {
|
264 |
$categories = array(
|
265 |
+
'*' => 'Most Popular',
|
266 |
'admin' => 'Admin',
|
267 |
'archive' => 'Archive',
|
268 |
'attachments' => 'Attachments',
|
includes/admin/pages/class-wpcode-admin-page-snippet-manager.php
CHANGED
@@ -215,6 +215,7 @@ class WPCode_Admin_Page_Snippet_Manager extends WPCode_Admin_Page {
|
|
215 |
$this->field_title();
|
216 |
$this->field_code_editor();
|
217 |
$this->field_insert_options();
|
|
|
218 |
$this->field_conditional_logic();
|
219 |
$this->field_code_revisions();
|
220 |
$this->field_basic_info();
|
@@ -269,6 +270,7 @@ class WPCode_Admin_Page_Snippet_Manager extends WPCode_Admin_Page {
|
|
269 |
<?php
|
270 |
$this->get_library_markup( $categories, $snippets );
|
271 |
$this->library_preview_modal_content();
|
|
|
272 |
}
|
273 |
|
274 |
/**
|
@@ -744,6 +746,11 @@ class WPCode_Admin_Page_Snippet_Manager extends WPCode_Admin_Page {
|
|
744 |
$snippet_code = preg_replace( '|^\s*<\?(php)?|', '', $snippet_code );
|
745 |
}
|
746 |
|
|
|
|
|
|
|
|
|
|
|
747 |
$snippet = new WPCode_Snippet(
|
748 |
array(
|
749 |
'id' => empty( $_REQUEST['id'] ) ? 0 : absint( $_REQUEST['id'] ),
|
@@ -1069,6 +1076,9 @@ class WPCode_Admin_Page_Snippet_Manager extends WPCode_Admin_Page {
|
|
1069 |
$data['shortcode_title'] = __( 'Custom Shortcode is a Pro Feature', 'insert-headers-and-footers' );
|
1070 |
$data['shortcode_text'] = __( 'Upgrade today to use a custom shortcode and nerver worry about changing snippet ids again, even when importing your snippets to another site. You\'ll also get access to a private library that makes setting up new sites a lot easier.', 'insert-headers-and-footers' );
|
1071 |
$data['shortcode_url'] = wpcode_utm_url( 'https://wpcode.com/lite/', 'snippet-editor', 'custom-shortcode', 'modal' );
|
|
|
|
|
|
|
1072 |
|
1073 |
return $data;
|
1074 |
}
|
@@ -1124,9 +1134,6 @@ class WPCode_Admin_Page_Snippet_Manager extends WPCode_Admin_Page {
|
|
1124 |
* @return void
|
1125 |
*/
|
1126 |
public function field_code_revisions() {
|
1127 |
-
if ( ! isset( $this->snippet_id ) ) {
|
1128 |
-
return;
|
1129 |
-
}
|
1130 |
$html = sprintf(
|
1131 |
'<p>%s</p><hr />',
|
1132 |
esc_html__( 'As you make changes to your snippet and save, you will get a list of previous versions with all the changes made in each revision. You can compare revisions to the current version or see changes as they have been saved by going through each revision. Any of the revisions can then be restored as needed.', 'wpcode-premium' )
|
@@ -1140,6 +1147,78 @@ class WPCode_Admin_Page_Snippet_Manager extends WPCode_Admin_Page {
|
|
1140 |
);
|
1141 |
}
|
1142 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1143 |
/**
|
1144 |
* Get a list of code revisions to use behind the notice.
|
1145 |
*
|
@@ -1147,7 +1226,8 @@ class WPCode_Admin_Page_Snippet_Manager extends WPCode_Admin_Page {
|
|
1147 |
*/
|
1148 |
public function get_code_revisions_empty_list() {
|
1149 |
$list = array();
|
1150 |
-
$post_modified = strtotime( $this->snippet->get_post_data()->post_modified );
|
|
|
1151 |
$revisions_data = array(
|
1152 |
$post_modified,
|
1153 |
$post_modified - DAY_IN_SECONDS,
|
@@ -1174,7 +1254,7 @@ class WPCode_Admin_Page_Snippet_Manager extends WPCode_Admin_Page {
|
|
1174 |
);
|
1175 |
|
1176 |
$list[] = $this->get_revision_item(
|
1177 |
-
$
|
1178 |
$updated,
|
1179 |
array(
|
1180 |
$compare,
|
215 |
$this->field_title();
|
216 |
$this->field_code_editor();
|
217 |
$this->field_insert_options();
|
218 |
+
$this->field_device_type();
|
219 |
$this->field_conditional_logic();
|
220 |
$this->field_code_revisions();
|
221 |
$this->field_basic_info();
|
270 |
<?php
|
271 |
$this->get_library_markup( $categories, $snippets );
|
272 |
$this->library_preview_modal_content();
|
273 |
+
$this->library_connect_banner_template();
|
274 |
}
|
275 |
|
276 |
/**
|
746 |
$snippet_code = preg_replace( '|^\s*<\?(php)?|', '', $snippet_code );
|
747 |
}
|
748 |
|
749 |
+
if ( 'js' === $code_type && apply_filters( 'wpcode_strip_script_tags_for_js', true ) ) {
|
750 |
+
$snippet_code = preg_replace( '|^\s*<script[^>]*>|', '', $snippet_code );
|
751 |
+
$snippet_code = preg_replace( '|</(script)>\s*$|', '', $snippet_code );
|
752 |
+
}
|
753 |
+
|
754 |
$snippet = new WPCode_Snippet(
|
755 |
array(
|
756 |
'id' => empty( $_REQUEST['id'] ) ? 0 : absint( $_REQUEST['id'] ),
|
1076 |
$data['shortcode_title'] = __( 'Custom Shortcode is a Pro Feature', 'insert-headers-and-footers' );
|
1077 |
$data['shortcode_text'] = __( 'Upgrade today to use a custom shortcode and nerver worry about changing snippet ids again, even when importing your snippets to another site. You\'ll also get access to a private library that makes setting up new sites a lot easier.', 'insert-headers-and-footers' );
|
1078 |
$data['shortcode_url'] = wpcode_utm_url( 'https://wpcode.com/lite/', 'snippet-editor', 'custom-shortcode', 'modal' );
|
1079 |
+
$data['device_title'] = __( 'Device Type is a Pro Feature', 'insert-headers-and-footers' );
|
1080 |
+
$data['device_text'] = __( 'Upgrade to PRO today and unlock one-click device targeting for your snippets.', 'insert-headers-and-footers' );
|
1081 |
+
$data['device_url'] = wpcode_utm_url( 'https://wpcode.com/lite/', 'snippet-editor', 'device-type', 'modal' );
|
1082 |
|
1083 |
return $data;
|
1084 |
}
|
1134 |
* @return void
|
1135 |
*/
|
1136 |
public function field_code_revisions() {
|
|
|
|
|
|
|
1137 |
$html = sprintf(
|
1138 |
'<p>%s</p><hr />',
|
1139 |
esc_html__( 'As you make changes to your snippet and save, you will get a list of previous versions with all the changes made in each revision. You can compare revisions to the current version or see changes as they have been saved by going through each revision. Any of the revisions can then be restored as needed.', 'wpcode-premium' )
|
1147 |
);
|
1148 |
}
|
1149 |
|
1150 |
+
/**
|
1151 |
+
* Markup for the device type metabox.
|
1152 |
+
*
|
1153 |
+
* @return void
|
1154 |
+
*/
|
1155 |
+
public function field_device_type() {
|
1156 |
+
$html = sprintf(
|
1157 |
+
'<p>%s</p>',
|
1158 |
+
esc_html__( 'Limit where you want this snippet to be loaded by device type. By default, snippets are loaded on all devices.', 'wpcode-premium' )
|
1159 |
+
);
|
1160 |
+
|
1161 |
+
$html .= '<div class="wpcode-separator"></div>';
|
1162 |
+
$html .= $this->device_type_picker();
|
1163 |
+
$this->metabox(
|
1164 |
+
__( 'Device Type', 'insert-headers-and-footers' ),
|
1165 |
+
$html
|
1166 |
+
);
|
1167 |
+
}
|
1168 |
+
|
1169 |
+
/**
|
1170 |
+
* This method returns the markup for the device type radio input picker, the
|
1171 |
+
* three options available are Any device type, Desktop only and Mobile only.
|
1172 |
+
* By default, any device type is selected.
|
1173 |
+
*
|
1174 |
+
* @return string
|
1175 |
+
*/
|
1176 |
+
public function device_type_picker() {
|
1177 |
+
$html = '<div class="wpcode-device-type-picker wpcode-device-type-picker-lite">';
|
1178 |
+
$html .= $this->get_radio_field_icon( 'devices', __( 'Any device type', 'insert-headers-and-footers' ), 'any', '', true );
|
1179 |
+
$html .= $this->get_radio_field_icon( 'desktop', __( 'Desktop only', 'insert-headers-and-footers' ), 'desktop', '', false, '', true );
|
1180 |
+
$html .= $this->get_radio_field_icon( 'mobile', __( 'Mobile only', 'insert-headers-and-footers' ), 'mobile', '', false, '', true );
|
1181 |
+
$html .= '</div>';
|
1182 |
+
|
1183 |
+
return $html;
|
1184 |
+
}
|
1185 |
+
|
1186 |
+
/**
|
1187 |
+
* Get a styled radio input with an icon.
|
1188 |
+
*
|
1189 |
+
* @param string $icon Icon to use for label, @see get_wpcode_icon
|
1190 |
+
* @param string $label The text of the label to display.
|
1191 |
+
* @param string $value The value of the radio input.
|
1192 |
+
* @param string $name The input name (for PHP).
|
1193 |
+
* @param bool $checked Whether the input is checked or not.
|
1194 |
+
* @param string $id Unique id for the input, by default name + value will be used.
|
1195 |
+
* @param bool $disabled Whether the input should be disabled.
|
1196 |
+
*
|
1197 |
+
* @return string
|
1198 |
+
*/
|
1199 |
+
public function get_radio_field_icon( $icon = '', $label = '', $value = '', $name = '', $checked = false, $id = '', $disabled = false ) {
|
1200 |
+
|
1201 |
+
$id = empty( $id ) ? $name . '-' . $value : $id;
|
1202 |
+
$html = '<div class="wpcode-input-radio">';
|
1203 |
+
$html .= sprintf(
|
1204 |
+
'<input type="radio" name="%1$s" id="%2$s" value="%3$s" %4$s %5$s />',
|
1205 |
+
esc_attr( $name ),
|
1206 |
+
esc_attr( $id ),
|
1207 |
+
esc_attr( $value ),
|
1208 |
+
checked( $checked, true, false ),
|
1209 |
+
disabled( $disabled, true, false )
|
1210 |
+
);
|
1211 |
+
$html .= sprintf(
|
1212 |
+
'<label for="%1$s" tabindex="0"><span class="wpcode-input-radio-icon">%2$s</span><span class="wpcode-input-radio-label">%3$s</span></label>',
|
1213 |
+
esc_attr( $id ),
|
1214 |
+
get_wpcode_icon( $icon, 48, 48 ),
|
1215 |
+
wp_kses_post( $label )
|
1216 |
+
);
|
1217 |
+
$html .= '</div>';
|
1218 |
+
|
1219 |
+
return $html;
|
1220 |
+
}
|
1221 |
+
|
1222 |
/**
|
1223 |
* Get a list of code revisions to use behind the notice.
|
1224 |
*
|
1226 |
*/
|
1227 |
public function get_code_revisions_empty_list() {
|
1228 |
$list = array();
|
1229 |
+
$post_modified = isset( $this->snippet ) ? strtotime( $this->snippet->get_post_data()->post_modified ) : time();
|
1230 |
+
$snippet_author = isset( $this->snippet ) ? $this->snippet->get_snippet_author() : get_current_user_id();
|
1231 |
$revisions_data = array(
|
1232 |
$post_modified,
|
1233 |
$post_modified - DAY_IN_SECONDS,
|
1254 |
);
|
1255 |
|
1256 |
$list[] = $this->get_revision_item(
|
1257 |
+
$snippet_author,
|
1258 |
$updated,
|
1259 |
array(
|
1260 |
$compare,
|
includes/admin/pages/class-wpcode-admin-page.php
CHANGED
@@ -870,9 +870,18 @@ abstract class WPCode_Admin_Page {
|
|
870 |
*/
|
871 |
public function get_library_markup( $categories, $snippets, $item_method = 'get_library_snippet_item' ) {
|
872 |
$selected_category = isset( $categories[0]['slug'] ) ? $categories[0]['slug'] : '*';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
873 |
?>
|
874 |
<div class="wpcode-items-metabox wpcode-metabox">
|
875 |
-
<?php $this->get_items_list_sidebar( $categories, __( 'All Snippets', 'insert-headers-and-footers' ), __( 'Search Snippets', 'insert-headers-and-footers' ), $selected_category ); ?>
|
876 |
<div class="wpcode-items-list">
|
877 |
<?php
|
878 |
if ( empty( $snippets ) ) {
|
@@ -895,6 +904,92 @@ abstract class WPCode_Admin_Page {
|
|
895 |
<?php
|
896 |
}
|
897 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
898 |
/**
|
899 |
* Get the items list sidebar with optional search form.
|
900 |
*
|
@@ -902,10 +997,11 @@ abstract class WPCode_Admin_Page {
|
|
902 |
* @param string $all_text Text to display on the all items button in the categories list.
|
903 |
* @param string $search_label The search label, if left empty the search form is hidden.
|
904 |
* @param string $selected_category Slug of the category selected by default.
|
|
|
905 |
*
|
906 |
* @return void
|
907 |
*/
|
908 |
-
public function get_items_list_sidebar( $categories, $all_text = '', $search_label = '', $selected_category = '' ) {
|
909 |
?>
|
910 |
<div class="wpcode-items-sidebar">
|
911 |
<?php if ( ! empty( $search_label ) ) { ?>
|
@@ -919,7 +1015,12 @@ abstract class WPCode_Admin_Page {
|
|
919 |
<?php } ?>
|
920 |
<ul class="wpcode-items-categories-list wpcode-items-filters">
|
921 |
<li>
|
922 |
-
<button type="button" data-category="*" class="<?php echo empty( $selected_category ) ? 'wpcode-active' : ''; ?>"
|
|
|
|
|
|
|
|
|
|
|
923 |
</li>
|
924 |
<?php
|
925 |
foreach ( $categories as $category ) {
|
@@ -927,7 +1028,12 @@ abstract class WPCode_Admin_Page {
|
|
927 |
$class = $category['slug'] === $selected_category ? 'wpcode-active' : '';
|
928 |
?>
|
929 |
<li>
|
930 |
-
<button type="button" class="<?php echo esc_attr( $class ); ?>" data-category="<?php echo esc_attr( $category['slug'] ); ?>"
|
|
|
|
|
|
|
|
|
|
|
931 |
</li>
|
932 |
<?php } ?>
|
933 |
</ul>
|
@@ -1022,6 +1128,8 @@ abstract class WPCode_Admin_Page {
|
|
1022 |
esc_attr( implode( ' ', $container_class ) )
|
1023 |
);
|
1024 |
|
|
|
|
|
1025 |
$html .= sprintf(
|
1026 |
'<h2>%s</h2>',
|
1027 |
wp_kses_post( $title )
|
@@ -1069,6 +1177,9 @@ abstract class WPCode_Admin_Page {
|
|
1069 |
)
|
1070 |
);
|
1071 |
|
|
|
|
|
|
|
1072 |
if ( ! empty( $button_1['text'] ) ) {
|
1073 |
$html .= self::get_list_item_button( $button_1, false );
|
1074 |
}
|
@@ -1078,9 +1189,50 @@ abstract class WPCode_Admin_Page {
|
|
1078 |
$html .= self::get_list_item_button( $button_2, false );
|
1079 |
}
|
1080 |
|
|
|
|
|
1081 |
$html .= '</div>';
|
1082 |
|
1083 |
return $html;
|
1084 |
|
1085 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1086 |
}
|
870 |
*/
|
871 |
public function get_library_markup( $categories, $snippets, $item_method = 'get_library_snippet_item' ) {
|
872 |
$selected_category = isset( $categories[0]['slug'] ) ? $categories[0]['slug'] : '*';
|
873 |
+
$count = 0;
|
874 |
+
foreach ( $snippets as $snippet ) {
|
875 |
+
if ( isset( $snippet['needs_auth'] ) ) {
|
876 |
+
$count ++;
|
877 |
+
}
|
878 |
+
}
|
879 |
+
$categories = $this->add_item_counts( $categories, $snippets );
|
880 |
+
$categories = $this->add_available_category_label( $categories, $snippets, $count );
|
881 |
+
$snippets = $this->add_available_category_to_snippets( $snippets );
|
882 |
?>
|
883 |
<div class="wpcode-items-metabox wpcode-metabox">
|
884 |
+
<?php $this->get_items_list_sidebar( $categories, __( 'All Snippets', 'insert-headers-and-footers' ), __( 'Search Snippets', 'insert-headers-and-footers' ), $selected_category, $count ); ?>
|
885 |
<div class="wpcode-items-list">
|
886 |
<?php
|
887 |
if ( empty( $snippets ) ) {
|
904 |
<?php
|
905 |
}
|
906 |
|
907 |
+
/**
|
908 |
+
* Goes through snippets and adds the item count to the categories.
|
909 |
+
*
|
910 |
+
* @param array $categories The categories to add the item count to.
|
911 |
+
* @param array $snippets The snippets to count.
|
912 |
+
*
|
913 |
+
* @return array
|
914 |
+
*/
|
915 |
+
public function add_item_counts( $categories, $snippets ) {
|
916 |
+
$category_counts = array();
|
917 |
+
foreach ( $snippets as $snippet ) {
|
918 |
+
if ( ! isset( $snippet['categories'] ) ) {
|
919 |
+
continue;
|
920 |
+
}
|
921 |
+
if ( empty( $snippet['code'] ) && empty( $snippet['needs_auth'] ) ) {
|
922 |
+
continue;
|
923 |
+
}
|
924 |
+
foreach ( $snippet['categories'] as $category ) {
|
925 |
+
if ( ! isset( $category_counts[ $category ] ) ) {
|
926 |
+
$category_counts[ $category ] = 0;
|
927 |
+
}
|
928 |
+
$category_counts[ $category ] ++;
|
929 |
+
}
|
930 |
+
}
|
931 |
+
|
932 |
+
// Add counts to the categories array.
|
933 |
+
foreach ( $categories as $category_id => $category ) {
|
934 |
+
if ( ! isset( $category['slug'] ) ) {
|
935 |
+
continue;
|
936 |
+
}
|
937 |
+
$categories[ $category_id ]['count'] = isset( $category_counts[ $category['slug'] ] ) ? $category_counts[ $category['slug'] ] : 0;
|
938 |
+
}
|
939 |
+
|
940 |
+
return $categories;
|
941 |
+
}
|
942 |
+
|
943 |
+
/**
|
944 |
+
* Create a dynamic category for the available snippets. This goes through all the snippets
|
945 |
+
* and counts how many of them need auth to be used, if there are any, it adds the category that shows
|
946 |
+
* how many are available.
|
947 |
+
*
|
948 |
+
* @param array $categories The categories to add the available category to.
|
949 |
+
* @param array $snippets The snippets to count.
|
950 |
+
*
|
951 |
+
* @return array
|
952 |
+
*/
|
953 |
+
public function add_available_category_label( $categories, $snippets, $total ) {
|
954 |
+
if ( wpcode()->library_auth->has_auth() ) {
|
955 |
+
return $categories;
|
956 |
+
}
|
957 |
+
$need_auth_count = 0;
|
958 |
+
foreach ( $snippets as $snippet ) {
|
959 |
+
if ( ! empty( $snippet['needs_auth'] ) ) {
|
960 |
+
$need_auth_count ++;
|
961 |
+
}
|
962 |
+
}
|
963 |
+
if ( $need_auth_count > 0 ) {
|
964 |
+
$categories = array_merge( array(
|
965 |
+
array(
|
966 |
+
'name' => __( 'Available Snippets', 'insert-headers-and-footers' ),
|
967 |
+
'slug' => 'available',
|
968 |
+
'count' => $total - $need_auth_count,
|
969 |
+
)
|
970 |
+
), $categories );
|
971 |
+
}
|
972 |
+
|
973 |
+
return $categories;
|
974 |
+
}
|
975 |
+
|
976 |
+
/**
|
977 |
+
* For snippets that don't need auth, add an extra category "available" to allow easy filtering.
|
978 |
+
*
|
979 |
+
* @param array $snippets The snippets to add the category to.
|
980 |
+
*
|
981 |
+
* @return array
|
982 |
+
*/
|
983 |
+
public function add_available_category_to_snippets( $snippets ) {
|
984 |
+
foreach ( $snippets as $key => $snippet ) {
|
985 |
+
if ( empty( $snippet['needs_auth'] ) ) {
|
986 |
+
$snippets[ $key ]['categories'][] = 'available';
|
987 |
+
}
|
988 |
+
}
|
989 |
+
|
990 |
+
return $snippets;
|
991 |
+
}
|
992 |
+
|
993 |
/**
|
994 |
* Get the items list sidebar with optional search form.
|
995 |
*
|
997 |
* @param string $all_text Text to display on the all items button in the categories list.
|
998 |
* @param string $search_label The search label, if left empty the search form is hidden.
|
999 |
* @param string $selected_category Slug of the category selected by default.
|
1000 |
+
* @param int $all_count (optional) The number of items in the all category.
|
1001 |
*
|
1002 |
* @return void
|
1003 |
*/
|
1004 |
+
public function get_items_list_sidebar( $categories, $all_text = '', $search_label = '', $selected_category = '', $all_count = 0 ) {
|
1005 |
?>
|
1006 |
<div class="wpcode-items-sidebar">
|
1007 |
<?php if ( ! empty( $search_label ) ) { ?>
|
1015 |
<?php } ?>
|
1016 |
<ul class="wpcode-items-categories-list wpcode-items-filters">
|
1017 |
<li>
|
1018 |
+
<button type="button" data-category="*" class="<?php echo empty( $selected_category ) ? 'wpcode-active' : ''; ?>">
|
1019 |
+
<?php echo esc_html( $all_text ); ?>
|
1020 |
+
<?php if ( $all_count ) { ?>
|
1021 |
+
<span class="wpcode-items-count"><?php echo esc_html( $all_count ); ?></span>
|
1022 |
+
<?php } ?>
|
1023 |
+
</button>
|
1024 |
</li>
|
1025 |
<?php
|
1026 |
foreach ( $categories as $category ) {
|
1028 |
$class = $category['slug'] === $selected_category ? 'wpcode-active' : '';
|
1029 |
?>
|
1030 |
<li>
|
1031 |
+
<button type="button" class="<?php echo esc_attr( $class ); ?>" data-category="<?php echo esc_attr( $category['slug'] ); ?>">
|
1032 |
+
<?php echo esc_html( $category['name'] ); ?>
|
1033 |
+
<?php if ( isset( $category['count'] ) ) { ?>
|
1034 |
+
<span class="wpcode-items-count"><?php echo esc_html( $category['count'] ); ?></span>
|
1035 |
+
<?php } ?>
|
1036 |
+
</button>
|
1037 |
</li>
|
1038 |
<?php } ?>
|
1039 |
</ul>
|
1128 |
esc_attr( implode( ' ', $container_class ) )
|
1129 |
);
|
1130 |
|
1131 |
+
$html .= '<div class="wpcode-upsell-text-content">';
|
1132 |
+
|
1133 |
$html .= sprintf(
|
1134 |
'<h2>%s</h2>',
|
1135 |
wp_kses_post( $title )
|
1177 |
)
|
1178 |
);
|
1179 |
|
1180 |
+
$html .= '</div>'; // .wpcode-upsell-text-content
|
1181 |
+
$html .= '<div class="wpcode-upsell-buttons">';
|
1182 |
+
|
1183 |
if ( ! empty( $button_1['text'] ) ) {
|
1184 |
$html .= self::get_list_item_button( $button_1, false );
|
1185 |
}
|
1189 |
$html .= self::get_list_item_button( $button_2, false );
|
1190 |
}
|
1191 |
|
1192 |
+
$html .= '</div>'; // .wpcode-upsell-buttons
|
1193 |
+
|
1194 |
$html .= '</div>';
|
1195 |
|
1196 |
return $html;
|
1197 |
|
1198 |
}
|
1199 |
+
|
1200 |
+
/**
|
1201 |
+
* Banner to highlight that connecting to the library gives you access to more snippets.
|
1202 |
+
*
|
1203 |
+
* @return void
|
1204 |
+
*/
|
1205 |
+
public function library_connect_banner_template() {
|
1206 |
+
|
1207 |
+
if ( wpcode()->library_auth->has_auth() ) {
|
1208 |
+
return;
|
1209 |
+
}
|
1210 |
+
|
1211 |
+
$data = wpcode()->library->get_data();
|
1212 |
+
$count = 0;
|
1213 |
+
if ( ! empty( $data['snippets'] ) ) {
|
1214 |
+
$count = count( $data['snippets'] );
|
1215 |
+
}
|
1216 |
+
?>
|
1217 |
+
<script type="text/html" id="tmpl-wpcode-library-connect-banner">
|
1218 |
+
<div id="wpcode-library-connect-banner">
|
1219 |
+
<div class="wpcode-template-content">
|
1220 |
+
<h3>
|
1221 |
+
<?php
|
1222 |
+
/* translators: %d - snippets count. */
|
1223 |
+
printf( esc_html__( 'Get Access to Our Library of %d FREE Snippets', 'insert-headers-and-footers' ), $count );
|
1224 |
+
?>
|
1225 |
+
</h3>
|
1226 |
+
|
1227 |
+
<p>
|
1228 |
+
<?php esc_html_e( 'Connect your website with WPCode Library and get instant access to FREE code snippets written by our experts. Snippets can be installed with just 1-click from inside the plugin and come automatically-configured to save you time.', 'insert-headers-and-footers' ); ?>
|
1229 |
+
</p>
|
1230 |
+
</div>
|
1231 |
+
<div class="wpcode-template-upgrade-button">
|
1232 |
+
<button class="wpcode-button wpcode-start-auth"><?php esc_html_e( 'Connect to Library', 'insert-headers-and-footers' ); ?></button>
|
1233 |
+
</div>
|
1234 |
+
</div>
|
1235 |
+
</script>
|
1236 |
+
<?php
|
1237 |
+
}
|
1238 |
}
|
includes/admin/pages/class-wpcode-code-snippets-table.php
CHANGED
@@ -323,7 +323,9 @@ class WPCode_Code_Snippets_Table extends WP_List_Table {
|
|
323 |
}
|
324 |
|
325 |
return array(
|
326 |
-
'trash'
|
|
|
|
|
327 |
);
|
328 |
}
|
329 |
|
@@ -366,15 +368,14 @@ class WPCode_Code_Snippets_Table extends WP_List_Table {
|
|
366 |
$is_filtered = false;
|
367 |
|
368 |
$args = array(
|
369 |
-
'orderby'
|
370 |
-
'order'
|
371 |
-
'nopaging'
|
372 |
-
'posts_per_page'
|
373 |
-
'paged'
|
374 |
-
'no_found_rows'
|
375 |
-
'post_status'
|
376 |
-
'post_type'
|
377 |
-
'suppress_filters' => true,
|
378 |
);
|
379 |
|
380 |
if ( ! empty( $_GET['location'] ) ) {
|
@@ -410,6 +411,12 @@ class WPCode_Code_Snippets_Table extends WP_List_Table {
|
|
410 |
'field' => 'slug',
|
411 |
);
|
412 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
413 |
// phpcs:enable WordPress.Security.NonceVerification.Recommended
|
414 |
|
415 |
if ( 'all' !== $this->view ) {
|
@@ -425,6 +432,8 @@ class WPCode_Code_Snippets_Table extends WP_List_Table {
|
|
425 |
|
426 |
$items_query = new WP_Query( $args );
|
427 |
$this->items = $items_query->get_posts();
|
|
|
|
|
428 |
|
429 |
$per_page = isset( $args['posts_per_page'] ) ? $args['posts_per_page'] : $this->get_items_per_page( 'wpcode_snippets_per_page', $this->per_page );
|
430 |
|
@@ -467,6 +476,28 @@ class WPCode_Code_Snippets_Table extends WP_List_Table {
|
|
467 |
return apply_filters( 'wpcode_code_snippets_table_columns', $columns );
|
468 |
}
|
469 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
470 |
/**
|
471 |
* Convert custom view names to actual post statuses.
|
472 |
*
|
@@ -535,27 +566,69 @@ class WPCode_Code_Snippets_Table extends WP_List_Table {
|
|
535 |
}
|
536 |
|
537 |
/**
|
538 |
-
*
|
539 |
*
|
540 |
-
* @
|
|
|
|
|
541 |
*/
|
542 |
-
public function
|
|
|
543 |
|
544 |
-
|
|
|
|
|
545 |
|
546 |
-
|
|
|
547 |
|
548 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
549 |
}
|
550 |
|
551 |
/**
|
552 |
-
*
|
553 |
*
|
554 |
-
* @param string $
|
555 |
-
*
|
|
|
556 |
*/
|
557 |
-
public function
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
558 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
559 |
}
|
560 |
|
561 |
/**
|
@@ -719,6 +792,9 @@ class WPCode_Code_Snippets_Table extends WP_List_Table {
|
|
719 |
'trashed',
|
720 |
'untrashed',
|
721 |
'deleted',
|
|
|
|
|
|
|
722 |
)
|
723 |
);
|
724 |
$url = 'all' === $slug ? remove_query_arg( 'view', $base_url ) : add_query_arg( 'view', $slug, $base_url );
|
323 |
}
|
324 |
|
325 |
return array(
|
326 |
+
'trash' => __( 'Trash', 'insert-headers-and-footers' ),
|
327 |
+
'enable' => __( 'Activate', 'insert-headers-and-footers' ),
|
328 |
+
'disable' => __( 'Deactivate', 'insert-headers-and-footers' ),
|
329 |
);
|
330 |
}
|
331 |
|
368 |
$is_filtered = false;
|
369 |
|
370 |
$args = array(
|
371 |
+
'orderby' => $orderby,
|
372 |
+
'order' => $order,
|
373 |
+
'nopaging' => false,
|
374 |
+
'posts_per_page' => $per_page,
|
375 |
+
'paged' => $page,
|
376 |
+
'no_found_rows' => false,
|
377 |
+
'post_status' => array( 'publish', 'draft' ),
|
378 |
+
'post_type' => 'wpcode',
|
|
|
379 |
);
|
380 |
|
381 |
if ( ! empty( $_GET['location'] ) ) {
|
411 |
'field' => 'slug',
|
412 |
);
|
413 |
}
|
414 |
+
|
415 |
+
if ( ! empty( $_GET['s'] ) ) {
|
416 |
+
$args['s'] = sanitize_text_field( wp_unslash( $_GET['s'] ) );
|
417 |
+
// This is a search so let's extend it to meta too.
|
418 |
+
$this->add_meta_search();
|
419 |
+
}
|
420 |
// phpcs:enable WordPress.Security.NonceVerification.Recommended
|
421 |
|
422 |
if ( 'all' !== $this->view ) {
|
432 |
|
433 |
$items_query = new WP_Query( $args );
|
434 |
$this->items = $items_query->get_posts();
|
435 |
+
// Remove filters to avoid conflicts.
|
436 |
+
$this->remove_meta_search();
|
437 |
|
438 |
$per_page = isset( $args['posts_per_page'] ) ? $args['posts_per_page'] : $this->get_items_per_page( 'wpcode_snippets_per_page', $this->per_page );
|
439 |
|
476 |
return apply_filters( 'wpcode_code_snippets_table_columns', $columns );
|
477 |
}
|
478 |
|
479 |
+
/**
|
480 |
+
* Dynamically add filters to extend search to meta fields.
|
481 |
+
*
|
482 |
+
* @return void
|
483 |
+
*/
|
484 |
+
public function add_meta_search() {
|
485 |
+
add_filter( 'posts_join', array( $this, 'meta_search_join' ) );
|
486 |
+
add_filter( 'posts_where', array( $this, 'meta_search_where' ) );
|
487 |
+
add_filter( 'posts_distinct', array( $this, 'meta_search_distinct' ) );
|
488 |
+
}
|
489 |
+
|
490 |
+
/**
|
491 |
+
* Remove dynamically added filters to avoid spilling to other queries.
|
492 |
+
*
|
493 |
+
* @return void
|
494 |
+
*/
|
495 |
+
public function remove_meta_search() {
|
496 |
+
remove_filter( 'posts_join', array( $this, 'meta_search_join' ) );
|
497 |
+
remove_filter( 'posts_where', array( $this, 'meta_search_where' ) );
|
498 |
+
remove_filter( 'posts_distinct', array( $this, 'meta_search_distinct' ) );
|
499 |
+
}
|
500 |
+
|
501 |
/**
|
502 |
* Convert custom view names to actual post statuses.
|
503 |
*
|
566 |
}
|
567 |
|
568 |
/**
|
569 |
+
* Extend the search to meta fields by joining the post meta table.
|
570 |
*
|
571 |
+
* @param string $join Join clause in the query.
|
572 |
+
*
|
573 |
+
* @return string
|
574 |
*/
|
575 |
+
public function meta_search_join( $join ) {
|
576 |
+
global $wpdb;
|
577 |
|
578 |
+
if ( is_admin() && isset( $_GET['s'] ) ) {
|
579 |
+
$join .= ' LEFT JOIN ' . $wpdb->postmeta . ' ON ' . $wpdb->posts . '.ID = ' . $wpdb->postmeta . '.post_id ';
|
580 |
+
}
|
581 |
|
582 |
+
return $join;
|
583 |
+
}
|
584 |
|
585 |
+
/**
|
586 |
+
* Extend the where clause to include the post meta values.
|
587 |
+
*
|
588 |
+
* @param string $where Where clause in the query.
|
589 |
+
*
|
590 |
+
* @return string
|
591 |
+
*/
|
592 |
+
public function meta_search_where( $where ) {
|
593 |
+
global $wpdb;
|
594 |
+
|
595 |
+
if ( is_admin() && isset( $_GET['s'] ) ) {
|
596 |
+
$where = preg_replace(
|
597 |
+
"/\(\s*" . $wpdb->posts . ".post_title\s+LIKE\s*(\'[^\']+\')\s*\)/",
|
598 |
+
"(" . $wpdb->posts . ".post_title LIKE $1) OR (" . $wpdb->postmeta . ".meta_value LIKE $1)", $where );
|
599 |
+
}
|
600 |
+
|
601 |
+
return $where;
|
602 |
}
|
603 |
|
604 |
/**
|
605 |
+
* Add distinct to the query to avoid duplicate results.
|
606 |
*
|
607 |
+
* @param string $distinct The distinct clause in the query.
|
608 |
+
*
|
609 |
+
* @return string
|
610 |
*/
|
611 |
+
public function meta_search_distinct( $distinct ) {
|
612 |
+
|
613 |
+
if ( is_admin() && isset( $_GET['s'] ) ) {
|
614 |
+
return "DISTINCT";
|
615 |
+
}
|
616 |
+
|
617 |
+
return $distinct;
|
618 |
+
}
|
619 |
|
620 |
+
/**
|
621 |
+
* Extending the `display_rows()` method in order to add hooks.
|
622 |
+
*
|
623 |
+
* @since 1.5.6
|
624 |
+
*/
|
625 |
+
public function display_rows() {
|
626 |
+
|
627 |
+
do_action( 'wpcode_code_snippets_table_before_rows', $this );
|
628 |
+
|
629 |
+
parent::display_rows();
|
630 |
+
|
631 |
+
do_action( 'wpcode_code_snippets_table_after_rows', $this );
|
632 |
}
|
633 |
|
634 |
/**
|
792 |
'trashed',
|
793 |
'untrashed',
|
794 |
'deleted',
|
795 |
+
'enabled',
|
796 |
+
'disabled',
|
797 |
+
's',
|
798 |
)
|
799 |
);
|
800 |
$url = 'all' === $slug ? remove_query_arg( 'view', $base_url ) : add_query_arg( 'view', $slug, $base_url );
|
includes/class-wpcode-file-cache.php
CHANGED
@@ -12,11 +12,18 @@
|
|
12 |
class WPCode_File_Cache {
|
13 |
|
14 |
/**
|
15 |
-
* Name of the folder in the Uploads folder.
|
16 |
*
|
17 |
* @var string
|
18 |
*/
|
19 |
-
private $
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
|
21 |
/**
|
22 |
* Full upload path, created form the WP uploads folder.
|
@@ -110,12 +117,15 @@ class WPCode_File_Cache {
|
|
110 |
private function get_directory_path( $filename ) {
|
111 |
if ( ! isset( $this->upload_path ) ) {
|
112 |
$uploads = wp_upload_dir();
|
113 |
-
$
|
|
|
114 |
|
115 |
if ( ! file_exists( $this->upload_path ) || ! wp_is_writable( $this->upload_path ) ) {
|
116 |
wp_mkdir_p( $this->upload_path );
|
117 |
$this->create_index_html_file( $this->upload_path );
|
118 |
}
|
|
|
|
|
119 |
}
|
120 |
|
121 |
$filepath = trailingslashit( $this->upload_path ) . $filename;
|
@@ -125,6 +135,8 @@ class WPCode_File_Cache {
|
|
125 |
$this->create_index_html_file( $directory );
|
126 |
}
|
127 |
|
|
|
|
|
128 |
return $filepath;
|
129 |
}
|
130 |
|
12 |
class WPCode_File_Cache {
|
13 |
|
14 |
/**
|
15 |
+
* Name of the base folder in the Uploads folder.
|
16 |
*
|
17 |
* @var string
|
18 |
*/
|
19 |
+
private $basedir = 'wpcode';
|
20 |
+
|
21 |
+
/**
|
22 |
+
* Name of the module-specific folder in the base folder.
|
23 |
+
*
|
24 |
+
* @var string
|
25 |
+
*/
|
26 |
+
private $dirname = 'cache';
|
27 |
|
28 |
/**
|
29 |
* Full upload path, created form the WP uploads folder.
|
117 |
private function get_directory_path( $filename ) {
|
118 |
if ( ! isset( $this->upload_path ) ) {
|
119 |
$uploads = wp_upload_dir();
|
120 |
+
$base_path = trailingslashit( $uploads['basedir'] ) . $this->basedir;
|
121 |
+
$this->upload_path = $base_path . '/' . $this->dirname;
|
122 |
|
123 |
if ( ! file_exists( $this->upload_path ) || ! wp_is_writable( $this->upload_path ) ) {
|
124 |
wp_mkdir_p( $this->upload_path );
|
125 |
$this->create_index_html_file( $this->upload_path );
|
126 |
}
|
127 |
+
// Ensure the base path has an index file.
|
128 |
+
$this->create_index_html_file( $base_path );
|
129 |
}
|
130 |
|
131 |
$filepath = trailingslashit( $this->upload_path ) . $filename;
|
135 |
$this->create_index_html_file( $directory );
|
136 |
}
|
137 |
|
138 |
+
$this->create_index_html_file( $this->upload_path );
|
139 |
+
|
140 |
return $filepath;
|
141 |
}
|
142 |
|
includes/class-wpcode-library.php
CHANGED
@@ -73,6 +73,13 @@ class WPCode_Library {
|
|
73 |
*/
|
74 |
protected $snippet_library_id_meta_key = '_wpcode_library_id';
|
75 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
76 |
/**
|
77 |
* Constructor.
|
78 |
*/
|
@@ -105,6 +112,22 @@ class WPCode_Library {
|
|
105 |
return $this->data;
|
106 |
}
|
107 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
108 |
|
109 |
/**
|
110 |
* Grab data from the cache.
|
73 |
*/
|
74 |
protected $snippet_library_id_meta_key = '_wpcode_library_id';
|
75 |
|
76 |
+
/**
|
77 |
+
* Total number of snippets in the library atm.
|
78 |
+
*
|
79 |
+
* @var int
|
80 |
+
*/
|
81 |
+
protected $snippets_count;
|
82 |
+
|
83 |
/**
|
84 |
* Constructor.
|
85 |
*/
|
112 |
return $this->data;
|
113 |
}
|
114 |
|
115 |
+
/**
|
116 |
+
* Get the number of snippets in the library.
|
117 |
+
*
|
118 |
+
* @return int
|
119 |
+
*/
|
120 |
+
public function get_snippets_count() {
|
121 |
+
if ( ! isset( $this->snippets_count ) ) {
|
122 |
+
$this->snippets_count = 0;
|
123 |
+
$data = $this->get_data();
|
124 |
+
if ( ! empty( $data['snippets'] ) ) {
|
125 |
+
$this->snippets_count = count( $data['snippets'] );
|
126 |
+
}
|
127 |
+
}
|
128 |
+
|
129 |
+
return $this->snippets_count;
|
130 |
+
}
|
131 |
|
132 |
/**
|
133 |
* Grab data from the cache.
|
includes/class-wpcode-snippet.php
CHANGED
@@ -177,6 +177,12 @@ class WPCode_Snippet {
|
|
177 |
* @var array
|
178 |
*/
|
179 |
private $generator_data;
|
|
|
|
|
|
|
|
|
|
|
|
|
180 |
|
181 |
/**
|
182 |
* Constructor. If the post passed is not the correct post type
|
@@ -503,6 +509,9 @@ class WPCode_Snippet {
|
|
503 |
update_post_meta( $this->id, '_wpcode_custom_shortcode', $this->custom_shortcode );
|
504 |
}
|
505 |
}
|
|
|
|
|
|
|
506 |
|
507 |
/**
|
508 |
* Run extra logic after the snippet is saved.
|
@@ -798,4 +807,20 @@ class WPCode_Snippet {
|
|
798 |
|
799 |
return $this->custom_shortcode;
|
800 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
801 |
}
|
177 |
* @var array
|
178 |
*/
|
179 |
private $generator_data;
|
180 |
+
/**
|
181 |
+
* The type of device to load this snippet on.
|
182 |
+
*
|
183 |
+
* @var string
|
184 |
+
*/
|
185 |
+
public $device_type;
|
186 |
|
187 |
/**
|
188 |
* Constructor. If the post passed is not the correct post type
|
509 |
update_post_meta( $this->id, '_wpcode_custom_shortcode', $this->custom_shortcode );
|
510 |
}
|
511 |
}
|
512 |
+
if ( isset( $this->device_type ) ) {
|
513 |
+
update_post_meta( $this->id, '_wpcode_device_type', $this->device_type );
|
514 |
+
}
|
515 |
|
516 |
/**
|
517 |
* Run extra logic after the snippet is saved.
|
807 |
|
808 |
return $this->custom_shortcode;
|
809 |
}
|
810 |
+
|
811 |
+
/**
|
812 |
+
* Get the device type for this snippet.
|
813 |
+
*
|
814 |
+
* @return string
|
815 |
+
*/
|
816 |
+
public function get_device_type() {
|
817 |
+
if ( ! isset( $this->device_type ) ) {
|
818 |
+
$this->device_type = get_post_meta( $this->get_id(), '_wpcode_device_type', true );
|
819 |
+
if ( empty( $this->device_type ) ) {
|
820 |
+
$this->device_type = 'any';
|
821 |
+
}
|
822 |
+
}
|
823 |
+
|
824 |
+
return $this->device_type;
|
825 |
+
}
|
826 |
}
|
includes/helpers.php
CHANGED
@@ -11,18 +11,23 @@
|
|
11 |
* @param string $url The URL to add the params to.
|
12 |
* @param string $medium The marketing medium.
|
13 |
* @param string $campaign The campaign.
|
14 |
-
* @param string $
|
15 |
*
|
16 |
* @return string
|
17 |
*/
|
18 |
function wpcode_utm_url( $url, $medium = '', $campaign = '', $ad_content = '' ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
return add_query_arg(
|
20 |
-
|
21 |
-
'utm_source' => class_exists( 'WPCode_License' ) ? 'proplugin' : 'liteplugin',
|
22 |
-
'utm_medium' => sanitize_key( $medium ),
|
23 |
-
'utm_campaign' => sanitize_key( $campaign ),
|
24 |
-
'utm_content' => sanitize_key( $ad_content ),
|
25 |
-
),
|
26 |
$url
|
27 |
);
|
28 |
}
|
11 |
* @param string $url The URL to add the params to.
|
12 |
* @param string $medium The marketing medium.
|
13 |
* @param string $campaign The campaign.
|
14 |
+
* @param string $ad_content The utm_content param.
|
15 |
*
|
16 |
* @return string
|
17 |
*/
|
18 |
function wpcode_utm_url( $url, $medium = '', $campaign = '', $ad_content = '' ) {
|
19 |
+
$args = array(
|
20 |
+
'utm_source' => class_exists( 'WPCode_License' ) ? 'proplugin' : 'liteplugin',
|
21 |
+
'utm_medium' => sanitize_key( $medium ),
|
22 |
+
'utm_campaign' => sanitize_key( $campaign )
|
23 |
+
);
|
24 |
+
|
25 |
+
if ( ! empty( $ad_content ) ) {
|
26 |
+
$args['utm_content'] = sanitize_key( $ad_content );
|
27 |
+
}
|
28 |
+
|
29 |
return add_query_arg(
|
30 |
+
$args,
|
|
|
|
|
|
|
|
|
|
|
31 |
$url
|
32 |
);
|
33 |
}
|
includes/icons.php
CHANGED
@@ -144,6 +144,9 @@ function wpcode_icons() {
|
|
144 |
'cloud' => '<path d="M8 2.00008C9.74667 2.00008 11.2533 3.24008 11.5933 4.95341L11.7933 5.95341L12.8133 6.02675C13.8533 6.09341 14.6667 6.96675 14.6667 8.00008C14.6667 9.10008 13.7667 10.0001 12.6667 10.0001H4C2.52667 10.0001 1.33333 8.80675 1.33333 7.33341C1.33333 5.96675 2.35333 4.82675 3.70667 4.68675L4.42 4.61341L4.75333 3.98008C5.38667 2.76008 6.62667 2.00008 8 2.00008ZM8 0.666748C6.07333 0.666748 4.4 1.76008 3.56667 3.36008C1.56 3.57341 0 5.27341 0 7.33341C0 9.54008 1.79333 11.3334 4 11.3334H12.6667C14.5067 11.3334 16 9.84008 16 8.00008C16 6.24008 14.6333 4.81341 12.9 4.69341C12.4467 2.39341 10.4267 0.666748 8 0.666748Z" fill="#777777"/>',
|
145 |
'lock' => '<path d="M14.5 7.5H13.5V5.5C13.5 2.74 11.26 0.5 8.5 0.5C5.74 0.5 3.5 2.74 3.5 5.5V7.5H2.5C1.4 7.5 0.5 8.4 0.5 9.5V19.5C0.5 20.6 1.4 21.5 2.5 21.5H14.5C15.6 21.5 16.5 20.6 16.5 19.5V9.5C16.5 8.4 15.6 7.5 14.5 7.5ZM5.5 5.5C5.5 3.84 6.84 2.5 8.5 2.5C10.16 2.5 11.5 3.84 11.5 5.5V7.5H5.5V5.5ZM14.5 19.5H2.5V9.5H14.5V19.5ZM8.5 16.5C9.6 16.5 10.5 15.6 10.5 14.5C10.5 13.4 9.6 12.5 8.5 12.5C7.4 12.5 6.5 13.4 6.5 14.5C6.5 15.6 7.4 16.5 8.5 16.5Z" fill="white"/>',
|
146 |
'exclamation' => '<defs><style>.b{fill:#231f20}</style></defs><g transform="translate(-.066)"><path d="M1.6 24a1.338 1.338 0 01-1.3-2.1L11 .9c.6-1.2 1.6-1.2 2.2 0l10.7 21c.6 1.2 0 2.1-1.3 2.1z" fill="#ffce31"/><path class="b" d="M10.3 8.6l1.1 7.4a.605.605 0 001.2 0l1.1-7.4a1.738 1.738 0 10-3.4 0z"/><circle class="b" cx="1.7" cy="1.7" r="1.7" transform="translate(10.3 17.3)"/></g>',
|
|
|
|
|
|
|
147 |
)
|
148 |
);
|
149 |
}
|
144 |
'cloud' => '<path d="M8 2.00008C9.74667 2.00008 11.2533 3.24008 11.5933 4.95341L11.7933 5.95341L12.8133 6.02675C13.8533 6.09341 14.6667 6.96675 14.6667 8.00008C14.6667 9.10008 13.7667 10.0001 12.6667 10.0001H4C2.52667 10.0001 1.33333 8.80675 1.33333 7.33341C1.33333 5.96675 2.35333 4.82675 3.70667 4.68675L4.42 4.61341L4.75333 3.98008C5.38667 2.76008 6.62667 2.00008 8 2.00008ZM8 0.666748C6.07333 0.666748 4.4 1.76008 3.56667 3.36008C1.56 3.57341 0 5.27341 0 7.33341C0 9.54008 1.79333 11.3334 4 11.3334H12.6667C14.5067 11.3334 16 9.84008 16 8.00008C16 6.24008 14.6333 4.81341 12.9 4.69341C12.4467 2.39341 10.4267 0.666748 8 0.666748Z" fill="#777777"/>',
|
145 |
'lock' => '<path d="M14.5 7.5H13.5V5.5C13.5 2.74 11.26 0.5 8.5 0.5C5.74 0.5 3.5 2.74 3.5 5.5V7.5H2.5C1.4 7.5 0.5 8.4 0.5 9.5V19.5C0.5 20.6 1.4 21.5 2.5 21.5H14.5C15.6 21.5 16.5 20.6 16.5 19.5V9.5C16.5 8.4 15.6 7.5 14.5 7.5ZM5.5 5.5C5.5 3.84 6.84 2.5 8.5 2.5C10.16 2.5 11.5 3.84 11.5 5.5V7.5H5.5V5.5ZM14.5 19.5H2.5V9.5H14.5V19.5ZM8.5 16.5C9.6 16.5 10.5 15.6 10.5 14.5C10.5 13.4 9.6 12.5 8.5 12.5C7.4 12.5 6.5 13.4 6.5 14.5C6.5 15.6 7.4 16.5 8.5 16.5Z" fill="white"/>',
|
146 |
'exclamation' => '<defs><style>.b{fill:#231f20}</style></defs><g transform="translate(-.066)"><path d="M1.6 24a1.338 1.338 0 01-1.3-2.1L11 .9c.6-1.2 1.6-1.2 2.2 0l10.7 21c.6 1.2 0 2.1-1.3 2.1z" fill="#ffce31"/><path class="b" d="M10.3 8.6l1.1 7.4a.605.605 0 001.2 0l1.1-7.4a1.738 1.738 0 10-3.4 0z"/><circle class="b" cx="1.7" cy="1.7" r="1.7" transform="translate(10.3 17.3)"/></g>',
|
147 |
+
'devices' => '<path d="M4 40v-4.5h4.3V11q0-1.25.875-2.125T11.3 8h31v3h-31v24.5H23V40Zm23.95 0q-.85 0-1.4-.675Q26 38.65 26 37.8V15.95q0-.85.55-1.4.55-.55 1.4-.55h13.6q.95 0 1.7.525T44 15.95V37.8q0 .95-.725 1.575T41.55 40ZM29 35.5h12V17H29Z" fill="#777777"/>',
|
148 |
+
'desktop' => '<path d="M16.7 42v-3H21v-5H7q-1.2 0-2.1-.9Q4 32.2 4 31V9q0-1.2.9-2.1Q5.8 6 7 6h34q1.2 0 2.1.9.9.9.9 2.1v22q0 1.2-.9 2.1-.9.9-2.1.9H27v5h4.3v3ZM7 31h34V9H7v22Zm0 0V9v22Z" fill="#777777"/>',
|
149 |
+
'mobile' => '<path d="M13 46q-1.2 0-2.1-.9-.9-.9-.9-2.1V5q0-1.2.9-2.1.9-.9 2.1-.9h22q1.2 0 2.1.9.9.9.9 2.1v38q0 1.2-.9 2.1-.9.9-2.1.9Zm0-4.5V43h22v-1.5Zm0-3h22v-29H13Zm0-32h22V5H13Zm0 0V5v1.5Zm0 35V43Z" fill="#777777"/>',
|
150 |
)
|
151 |
);
|
152 |
}
|
includes/lite/admin/class-wpcode-admin-page-loader-lite.php
ADDED
@@ -0,0 +1,106 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Lite-specific admin page loader.
|
4 |
+
* Extends the default pages with lite-specific items.
|
5 |
+
*
|
6 |
+
* @package WPCode
|
7 |
+
*/
|
8 |
+
|
9 |
+
/**
|
10 |
+
* Class WPCode_Admin_Page_Loader_Lite.
|
11 |
+
*/
|
12 |
+
class WPCode_Admin_Page_Loader_Lite extends WPCode_Admin_Page_Loader {
|
13 |
+
|
14 |
+
/**
|
15 |
+
* Load menu items from parent class and add class-specific ones.
|
16 |
+
*
|
17 |
+
* @return void
|
18 |
+
*/
|
19 |
+
public function hooks() {
|
20 |
+
parent::hooks();
|
21 |
+
|
22 |
+
add_action( 'admin_menu', array( $this, 'add_upgrade_menu_item' ), 40 );
|
23 |
+
add_action( 'admin_head', array( $this, 'adjust_pro_menu_item_class' ) );
|
24 |
+
add_action( 'admin_head', array( $this, 'admin_menu_styles' ), 11 );
|
25 |
+
}
|
26 |
+
|
27 |
+
/**
|
28 |
+
* Add lite-specific upgrade to pro menu item.
|
29 |
+
*
|
30 |
+
* @return void
|
31 |
+
*/
|
32 |
+
public function add_upgrade_menu_item() {
|
33 |
+
add_submenu_page(
|
34 |
+
'wpcode',
|
35 |
+
esc_html__( 'Upgrade to Pro', 'insert-headers-and-footers' ),
|
36 |
+
esc_html__( 'Upgrade to Pro', 'insert-headers-and-footers' ),
|
37 |
+
'wpcode_edit_snippets',
|
38 |
+
esc_url( wpcode_utm_url( 'https://wpcode.com/lite/', 'wpcode-admin', 'admin-side-menu' ) )
|
39 |
+
);
|
40 |
+
}
|
41 |
+
|
42 |
+
/**
|
43 |
+
* Add the PRO badge to left sidebar menu item.
|
44 |
+
*
|
45 |
+
* @since 1.7.8
|
46 |
+
*/
|
47 |
+
public function adjust_pro_menu_item_class() {
|
48 |
+
|
49 |
+
global $submenu;
|
50 |
+
|
51 |
+
// Bail if plugin menu is not registered.
|
52 |
+
if ( ! isset( $submenu['wpcode'] ) ) {
|
53 |
+
return;
|
54 |
+
}
|
55 |
+
|
56 |
+
$upgrade_link_position = key(
|
57 |
+
array_filter(
|
58 |
+
$submenu['wpcode'],
|
59 |
+
static function ( $item ) {
|
60 |
+
return strpos( $item[2], 'https://wpcode.com/lite' ) !== false;
|
61 |
+
}
|
62 |
+
)
|
63 |
+
);
|
64 |
+
|
65 |
+
// Bail if "Upgrade to Pro" menu item is not registered.
|
66 |
+
if ( is_null( $upgrade_link_position ) ) {
|
67 |
+
return;
|
68 |
+
}
|
69 |
+
|
70 |
+
$screen = get_current_screen();
|
71 |
+
// Let's make sure we have an ID and the link is set in the menu.
|
72 |
+
if ( isset( $screen->id ) && isset( $submenu['wpcode'][ $upgrade_link_position ][2] ) ) {
|
73 |
+
// Let's clean up the screen id a bit.
|
74 |
+
$screen_id = str_replace(
|
75 |
+
array(
|
76 |
+
'code-snippets_page_',
|
77 |
+
'toplevel_page_',
|
78 |
+
),
|
79 |
+
'',
|
80 |
+
$screen->id
|
81 |
+
);
|
82 |
+
|
83 |
+
$submenu['wpcode'][ $upgrade_link_position ][2] = str_replace( 'wpcode-admin', $screen_id, $submenu['wpcode'][ $upgrade_link_position ][2] );
|
84 |
+
}
|
85 |
+
|
86 |
+
// Prepare a HTML class.
|
87 |
+
// phpcs:disable WordPress.WP.GlobalVariablesOverride.Prohibited
|
88 |
+
if ( isset( $submenu['wpcode'][ $upgrade_link_position ][4] ) ) {
|
89 |
+
$submenu['wpcode'][ $upgrade_link_position ][4] .= ' wpcode-sidebar-upgrade-pro';
|
90 |
+
} else {
|
91 |
+
$submenu['wpcode'][ $upgrade_link_position ][] = 'wpcode-sidebar-upgrade-pro';
|
92 |
+
}
|
93 |
+
// phpcs:enable WordPress.WP.GlobalVariablesOverride.Prohibited
|
94 |
+
}
|
95 |
+
|
96 |
+
|
97 |
+
/**
|
98 |
+
* Output inline styles for the admin menu.
|
99 |
+
*/
|
100 |
+
public function admin_menu_styles() {
|
101 |
+
$styles = 'a.wpcode-sidebar-upgrade-pro { background-color: #59A56D !important; color: #fff !important; font-weight: 600 !important; }';
|
102 |
+
|
103 |
+
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
|
104 |
+
printf( '<style>%s</style>', $styles );
|
105 |
+
}
|
106 |
+
}
|
includes/lite/admin/notices.php
CHANGED
@@ -4,6 +4,8 @@
|
|
4 |
*/
|
5 |
|
6 |
add_action( 'admin_init', 'wpcode_maybe_add_library_connect_notice' );
|
|
|
|
|
7 |
|
8 |
/**
|
9 |
* Show a prompt to connect to the WPCode Library to get access to more snippets.
|
@@ -14,6 +16,10 @@ function wpcode_maybe_add_library_connect_notice() {
|
|
14 |
if ( wpcode()->library_auth->has_auth() || ! isset( $_GET['page'] ) || 0 !== strpos( $_GET['page'], 'wpcode' ) ) {
|
15 |
return;
|
16 |
}
|
|
|
|
|
|
|
|
|
17 |
|
18 |
$settings_url = add_query_arg(
|
19 |
array(
|
@@ -22,13 +28,20 @@ function wpcode_maybe_add_library_connect_notice() {
|
|
22 |
admin_url( 'admin.php' )
|
23 |
);
|
24 |
|
|
|
|
|
|
|
|
|
25 |
WPCode_Notice::info(
|
26 |
sprintf(
|
27 |
-
|
|
|
28 |
'<a href="' . $settings_url . '" class="wpcode-start-auth">',
|
29 |
'</a>',
|
30 |
'<strong>',
|
31 |
-
'</strong>'
|
|
|
|
|
32 |
),
|
33 |
array(
|
34 |
'dismiss' => WPCode_Notice::DISMISS_GLOBAL,
|
@@ -36,3 +49,103 @@ function wpcode_maybe_add_library_connect_notice() {
|
|
36 |
)
|
37 |
);
|
38 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
*/
|
5 |
|
6 |
add_action( 'admin_init', 'wpcode_maybe_add_library_connect_notice' );
|
7 |
+
add_action( 'wpcode_admin_page', 'wpcode_maybe_add_lite_top_bar_notice', 4 );
|
8 |
+
add_action( 'wpcode_admin_page_content_wpcode-headers-footers', 'wpcode_headers_footers_bottom_notice', 250 );
|
9 |
|
10 |
/**
|
11 |
* Show a prompt to connect to the WPCode Library to get access to more snippets.
|
16 |
if ( wpcode()->library_auth->has_auth() || ! isset( $_GET['page'] ) || 0 !== strpos( $_GET['page'], 'wpcode' ) ) {
|
17 |
return;
|
18 |
}
|
19 |
+
// Don't show if in headers & footers mode only.
|
20 |
+
if ( wpcode()->settings->get_option( 'headers_footers_mode' ) ) {
|
21 |
+
return;
|
22 |
+
}
|
23 |
|
24 |
$settings_url = add_query_arg(
|
25 |
array(
|
28 |
admin_url( 'admin.php' )
|
29 |
);
|
30 |
|
31 |
+
$snippets_count = wpcode()->library->get_snippets_count();
|
32 |
+
// Translators: more here is used in the sense of "get access to more snippets" and gets replaced with the number of snippets if the library items are loaded correctly.
|
33 |
+
$more = $snippets_count > 0 ? $snippets_count : __( 'more', 'insert-headers-and-footers' );
|
34 |
+
|
35 |
WPCode_Notice::info(
|
36 |
sprintf(
|
37 |
+
// Translators: %1$s and %2$s add a link to the settings page. %3$s and %4$s make the text bold. %6$s is replaced with the number of snippets and %5$s adds a "new" icon.
|
38 |
+
__( '%5$s%1$sConnect to the WPCode Library%2$s to get access to %3$s%6$s FREE snippets%4$s!', 'insert-headers-and-footers' ),
|
39 |
'<a href="' . $settings_url . '" class="wpcode-start-auth">',
|
40 |
'</a>',
|
41 |
'<strong>',
|
42 |
+
'</strong>',
|
43 |
+
'<span class="wpcode-icon-new"> NEW!</span>',
|
44 |
+
$more
|
45 |
),
|
46 |
array(
|
47 |
'dismiss' => WPCode_Notice::DISMISS_GLOBAL,
|
49 |
)
|
50 |
);
|
51 |
}
|
52 |
+
|
53 |
+
/**
|
54 |
+
* Add a notice to consider more features with offer.
|
55 |
+
*
|
56 |
+
* @return void
|
57 |
+
*/
|
58 |
+
function wpcode_maybe_add_lite_top_bar_notice() {
|
59 |
+
// Only add this to the WPCode pages.
|
60 |
+
if ( ! isset( $_GET['page'] ) || 0 !== strpos( $_GET['page'], 'wpcode' ) ) {
|
61 |
+
return;
|
62 |
+
}
|
63 |
+
// Don't show in H&F mode.
|
64 |
+
if ( wpcode()->settings->get_option( 'headers_footers_mode' ) ) {
|
65 |
+
return;
|
66 |
+
}
|
67 |
+
|
68 |
+
$screen = get_current_screen();
|
69 |
+
if ( isset( $screen->id ) && false !== strpos( $screen->id, 'code-snippets_page_wpcode-' ) ) {
|
70 |
+
$screen = str_replace( 'code-snippets_page_wpcode-', '', $screen->id );
|
71 |
+
} else {
|
72 |
+
$screen = 'snippets-list';
|
73 |
+
}
|
74 |
+
|
75 |
+
$upgrade_url = wpcode_utm_url(
|
76 |
+
'https://wpcode.com/lite',
|
77 |
+
$screen,
|
78 |
+
'top-notice'
|
79 |
+
);
|
80 |
+
|
81 |
+
WPCode_Notice::top(
|
82 |
+
sprintf(
|
83 |
+
// Translators: %1$s and %2$s add a link to the upgrade page. %3$s and %4$s make the text bold.
|
84 |
+
__( '%3$sYou\'re using WPCode Lite%4$s. To unlock more features consider %1$supgrading to Pro%2$s.', 'insert-headers-and-footers' ),
|
85 |
+
'<a href="' . $upgrade_url . '" target="_blank" rel="noopener noreferrer">',
|
86 |
+
'</a>',
|
87 |
+
'<strong>',
|
88 |
+
'</strong>'
|
89 |
+
),
|
90 |
+
array(
|
91 |
+
'dismiss' => WPCode_Notice::DISMISS_USER,
|
92 |
+
'slug' => 'consider-upgrading',
|
93 |
+
)
|
94 |
+
);
|
95 |
+
}
|
96 |
+
|
97 |
+
/**
|
98 |
+
* Show a notice with more features at the bottom of the Headers & Footers page.
|
99 |
+
*
|
100 |
+
* @return void
|
101 |
+
*/
|
102 |
+
function wpcode_headers_footers_bottom_notice() {
|
103 |
+
// Don't show if in headers & footers mode only.
|
104 |
+
if ( wpcode()->settings->get_option( 'headers_footers_mode' ) ) {
|
105 |
+
return;
|
106 |
+
}
|
107 |
+
// Don't show if other notices were already displayed on the page.
|
108 |
+
if ( ! empty( wpcode()->notice->notices ) ) {
|
109 |
+
return;
|
110 |
+
}
|
111 |
+
|
112 |
+
$html = '<h3>' . esc_html__( 'Get WPCode Pro and Unlock all the Powerful Features', 'insert-headers-and-footers' ) . '</h3>';
|
113 |
+
$html .= '<div class="wpcode-features-list">';
|
114 |
+
$html .= '<ul>';
|
115 |
+
$html .= '<li>' . esc_html__( 'Save & Reuse snippets in your private Cloud Library', 'insert-headers-and-footers' ) . '</li>';
|
116 |
+
$html .= '<li>' . esc_html__( 'Add page-specific scripts when editing a post/page.', 'insert-headers-and-footers' ) . '</li>';
|
117 |
+
$html .= '<li>' . esc_html__( 'Track all snippet changes with Advanced Code Revisions', 'insert-headers-and-footers' ) . '</li>';
|
118 |
+
$html .= '</ul>';
|
119 |
+
$html .= '<ul>';
|
120 |
+
$html .= '<li>' . esc_html__( 'Load snippets by device (mobile/desktop) with 1-click.', 'insert-headers-and-footers' ) . '</li>';
|
121 |
+
$html .= '<li>' . esc_html__( 'Easily insert and reuse content with Custom Shortcodes.', 'insert-headers-and-footers' ) . '</li>';
|
122 |
+
$html .= '<li>' . esc_html__( 'Precisely track eCommerce conversions for WooCommerce and EDD.', 'insert-headers-and-footers' ) . '</li>';
|
123 |
+
$html .= '</ul>';
|
124 |
+
$html .= '</div>';
|
125 |
+
$html .= sprintf(
|
126 |
+
'<p><a href="%1$s" target="_blank" rel="noopener noreferrer">%2$s</a></p>',
|
127 |
+
wpcode_utm_url( 'https://wpcode.com/lite/', 'headers-footers', 'notice', 'get-wpcode-pro' ),
|
128 |
+
esc_html__( 'Get WPCode Pro Today and Unlock all the Powerful Features »', 'insert-headers-and-footers' )
|
129 |
+
);
|
130 |
+
$html .= '<p>';
|
131 |
+
$html .= sprintf(
|
132 |
+
// Translators: Placeholders make the text bold.
|
133 |
+
esc_html__( '%1$sBonus:%2$s WPCode Lite users get %3$s$50 off regular price%4$s, automatically applied at checkout', 'insert-headers-and-footers' ),
|
134 |
+
'<strong>',
|
135 |
+
'</strong>',
|
136 |
+
'<strong style="color:#59A56D;">',
|
137 |
+
'</strong>'
|
138 |
+
);
|
139 |
+
$html .= '</p>';
|
140 |
+
|
141 |
+
// Add our custom notice for this page.
|
142 |
+
WPCode_Notice::info(
|
143 |
+
$html,
|
144 |
+
array(
|
145 |
+
'slug' => 'ihaf-snippets',
|
146 |
+
'dismiss' => WPCode_Notice::DISMISS_USER,
|
147 |
+
)
|
148 |
+
);
|
149 |
+
// Display notice we just added so that scripts are loaded.
|
150 |
+
wpcode()->notice->display();
|
151 |
+
}
|
includes/lite/conditional-logic/class-wpcode-conditional-device.php
ADDED
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Placeholder Class that handles conditional logic for device type
|
4 |
+
*
|
5 |
+
* @package WPCode
|
6 |
+
*/
|
7 |
+
|
8 |
+
/**
|
9 |
+
* The WPCode_Conditional_Device_Lite class.
|
10 |
+
*/
|
11 |
+
class WPCode_Conditional_Device_Lite extends WPCode_Conditional_Type {
|
12 |
+
|
13 |
+
/**
|
14 |
+
* The type unique name (slug).
|
15 |
+
*
|
16 |
+
* @var string
|
17 |
+
*/
|
18 |
+
public $name = 'device';
|
19 |
+
|
20 |
+
/**
|
21 |
+
* Set the translatable label.
|
22 |
+
*
|
23 |
+
* @return void
|
24 |
+
*/
|
25 |
+
protected function set_label() {
|
26 |
+
$this->label = __( 'Device Type', 'insert-headers-and-footers' ) . ' (PRO)';
|
27 |
+
}
|
28 |
+
|
29 |
+
/**
|
30 |
+
* Set the type options for the admin mainly.
|
31 |
+
*
|
32 |
+
* @return void
|
33 |
+
*/
|
34 |
+
protected function load_type_options() {
|
35 |
+
$this->options = array(
|
36 |
+
'device_type' => array(
|
37 |
+
'label' => __( 'Device Type', 'insert-headers-and-footers' ),
|
38 |
+
'type' => 'select',
|
39 |
+
'upgrade' => array(
|
40 |
+
'title' => __( 'Device Type Rules are a Pro Feature', 'insert-headers-and-footers' ),
|
41 |
+
'text' => __( 'Get access to advanced device type conditional logic rules by upgrading to PRO today.', 'insert-headers-and-footers' ),
|
42 |
+
'link' => wpcode_utm_url( 'https://wpcode.com/lite/', 'edit-snippet', 'conditional-logic', 'device-type' ),
|
43 |
+
),
|
44 |
+
'options' => array(
|
45 |
+
array(
|
46 |
+
'label' => __( 'Desktop', 'insert-headers-and-footers' ),
|
47 |
+
'value' => '',
|
48 |
+
'disabled' => true,
|
49 |
+
),
|
50 |
+
array(
|
51 |
+
'label' => __( 'Mobile', 'insert-headers-and-footers' ),
|
52 |
+
'value' => '',
|
53 |
+
'disabled' => true,
|
54 |
+
),
|
55 |
+
),
|
56 |
+
),
|
57 |
+
);
|
58 |
+
}
|
59 |
+
}
|
60 |
+
|
61 |
+
new WPCode_Conditional_Device_Lite();
|
includes/lite/loader.php
CHANGED
@@ -12,6 +12,8 @@ if ( is_admin() || defined( 'DOING_CRON' ) && DOING_CRON ) {
|
|
12 |
require_once WPCODE_PLUGIN_PATH . 'includes/lite/admin/admin-scripts.php';
|
13 |
// Load lite notices.
|
14 |
require_once WPCODE_PLUGIN_PATH . 'includes/lite/admin/notices.php';
|
|
|
|
|
15 |
}
|
16 |
|
17 |
add_action( 'plugins_loaded', 'wpcode_plugins_loaded_load_lite_files', 2 );
|
@@ -26,6 +28,8 @@ function wpcode_plugins_loaded_load_lite_files() {
|
|
26 |
require_once WPCODE_PLUGIN_PATH . 'includes/lite/auto-insert/class-wpcode-auto-insert-woocommerce.php';
|
27 |
// Load EDD auto-insert locations.
|
28 |
require_once WPCODE_PLUGIN_PATH . 'includes/lite/auto-insert/class-wpcode-auto-insert-edd.php';
|
|
|
|
|
29 |
// Load WooCommerce conditional logic.
|
30 |
require_once WPCODE_PLUGIN_PATH . 'includes/lite/conditional-logic/class-wpcode-conditional-woocommerce.php';
|
31 |
// Load EDD conditional logic.
|
12 |
require_once WPCODE_PLUGIN_PATH . 'includes/lite/admin/admin-scripts.php';
|
13 |
// Load lite notices.
|
14 |
require_once WPCODE_PLUGIN_PATH . 'includes/lite/admin/notices.php';
|
15 |
+
// Lite-specific admin page loader.
|
16 |
+
require_once WPCODE_PLUGIN_PATH . 'includes/lite/admin/class-wpcode-admin-page-loader-lite.php';
|
17 |
}
|
18 |
|
19 |
add_action( 'plugins_loaded', 'wpcode_plugins_loaded_load_lite_files', 2 );
|
28 |
require_once WPCODE_PLUGIN_PATH . 'includes/lite/auto-insert/class-wpcode-auto-insert-woocommerce.php';
|
29 |
// Load EDD auto-insert locations.
|
30 |
require_once WPCODE_PLUGIN_PATH . 'includes/lite/auto-insert/class-wpcode-auto-insert-edd.php';
|
31 |
+
// Load Device type conditional logic.
|
32 |
+
require_once WPCODE_PLUGIN_PATH . 'includes/lite/conditional-logic/class-wpcode-conditional-device.php';
|
33 |
// Load WooCommerce conditional logic.
|
34 |
require_once WPCODE_PLUGIN_PATH . 'includes/lite/conditional-logic/class-wpcode-conditional-woocommerce.php';
|
35 |
// Load EDD conditional logic.
|
languages/insert-headers-and-footers.pot
CHANGED
@@ -2,14 +2,14 @@
|
|
2 |
# This file is distributed under the GPLv2 or later.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: WPCode Lite 2.0.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/insert-headers-and-footers\n"
|
7 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
8 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"POT-Creation-Date: 2022-
|
13 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
14 |
"X-Generator: WP-CLI 2.5.0\n"
|
15 |
"X-Domain: insert-headers-and-footers\n"
|
@@ -134,172 +134,226 @@ msgstr ""
|
|
134 |
msgid "%1$s ago"
|
135 |
msgstr ""
|
136 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
137 |
#: includes/admin/class-wpcode-upgrade-welcome.php:30
|
138 |
#: includes/admin/class-wpcode-upgrade-welcome.php:31
|
139 |
msgid "Welcome to WPCode"
|
140 |
msgstr ""
|
141 |
|
142 |
-
#: includes/admin/class-wpcode-upgrade-welcome.php:
|
143 |
msgid "Header & Footer Scripts"
|
144 |
msgstr ""
|
145 |
|
146 |
-
#: includes/admin/class-wpcode-upgrade-welcome.php:
|
147 |
msgid "Effortlessly manage global headers & footers in a familiar interface."
|
148 |
msgstr ""
|
149 |
|
150 |
-
#: includes/admin/class-wpcode-upgrade-welcome.php:
|
151 |
msgid "Conversion Pixels"
|
152 |
msgstr ""
|
153 |
|
154 |
-
#: includes/admin/class-wpcode-upgrade-welcome.php:
|
155 |
msgid "Easily target specific pages to track conversions reliably."
|
156 |
msgstr ""
|
157 |
|
158 |
-
#: includes/admin/class-wpcode-upgrade-welcome.php:
|
159 |
msgid "PHP Snippets"
|
160 |
msgstr ""
|
161 |
|
162 |
-
#: includes/admin/class-wpcode-upgrade-welcome.php:
|
163 |
msgid "Add or remove features with full confidence that your site will not break."
|
164 |
msgstr ""
|
165 |
|
166 |
-
#: includes/admin/class-wpcode-upgrade-welcome.php:
|
167 |
msgid "Conditional Logic"
|
168 |
msgstr ""
|
169 |
|
170 |
-
#: includes/admin/class-wpcode-upgrade-welcome.php:
|
171 |
msgid "Create advanced conditional logic rules in an easy-to-use interface."
|
172 |
msgstr ""
|
173 |
|
174 |
-
#: includes/admin/class-wpcode-upgrade-welcome.php:
|
175 |
msgid "Error Handling"
|
176 |
msgstr ""
|
177 |
|
178 |
-
#: includes/admin/class-wpcode-upgrade-welcome.php:
|
179 |
msgid "Unique error handling capabilities ensure you will not get locked out of your site."
|
180 |
msgstr ""
|
181 |
|
182 |
-
#: includes/admin/class-wpcode-upgrade-welcome.php:
|
183 |
msgid "Snippets Library"
|
184 |
msgstr ""
|
185 |
|
186 |
-
#: includes/admin/class-wpcode-upgrade-welcome.php:
|
187 |
msgid "One-click install from our extensive library of commonly-used snippets."
|
188 |
msgstr ""
|
189 |
|
190 |
#. Translators: This simply adds the plugin name before the logo text.
|
191 |
-
#: includes/admin/class-wpcode-upgrade-welcome.php:
|
192 |
#: includes/admin/pages/class-wpcode-admin-page.php:387
|
193 |
msgid "%s logo"
|
194 |
msgstr ""
|
195 |
|
196 |
-
#: includes/admin/class-wpcode-upgrade-welcome.php:
|
197 |
msgid "Insert Headers and Footers is now WPCode"
|
198 |
msgstr ""
|
199 |
|
200 |
-
#: includes/admin/class-wpcode-upgrade-welcome.php:
|
201 |
msgid "When we first built Insert Headers and Footers over a decade ago, it was meant to do one very simple thing: add header and footer scripts to your site without editing theme files."
|
202 |
msgstr ""
|
203 |
|
204 |
-
#: includes/admin/class-wpcode-upgrade-welcome.php:
|
205 |
msgid "Since then, the plugin has grown to over 1 million active installs with an amazing user base. We have continued to receive feature requests to add more options like controlling which pages the scripts get loaded, allowing more types of code snippets, etc."
|
206 |
msgstr ""
|
207 |
|
208 |
-
#: includes/admin/class-wpcode-upgrade-welcome.php:
|
209 |
msgid "We listened to your feedback, and we are excited to present WPCode, the next generation of Insert Headers and Footers. We chose a new name because it was only fair considering the plugin is now 10x more powerful. Aside from adding global headers and footer snippets, you can also add multiple other types of code snippets, have granular control of where the snippets are output with conditional logic, and a whole lot more."
|
210 |
msgstr ""
|
211 |
|
212 |
#. Translators: Placeholders 1 & 2 add a link to scroll down the page and 3 & 4 add a link to the suggestions form.
|
213 |
-
#: includes/admin/class-wpcode-upgrade-welcome.php:
|
214 |
msgid "Please see the full list of features %1$sbelow%2$s and let us know what you'd like us to add next by %3$ssharing your feedback%4$s."
|
215 |
msgstr ""
|
216 |
|
217 |
#. Translators: Placeholders add link to the details about settings.
|
218 |
-
#: includes/admin/class-wpcode-upgrade-welcome.php:
|
219 |
msgid "For those of you who want to limit the functionality and switch back to the old interface, you can do so with one click. %1$sSee details here%2$s."
|
220 |
msgstr ""
|
221 |
|
222 |
-
#: includes/admin/class-wpcode-upgrade-welcome.php:
|
223 |
msgid "We have an exciting roadmap ahead of us since you have shared tons of great ideas with us over the last several years. We truly appreciate your continued support and thank you for being an awesome user."
|
224 |
msgstr ""
|
225 |
|
226 |
-
#: includes/admin/class-wpcode-upgrade-welcome.php:
|
227 |
msgid "We truly appreciate your continued support and thank you for using WPCode."
|
228 |
msgstr ""
|
229 |
|
230 |
#. Translators: Placeholder for "WPBeginner".
|
231 |
-
#: includes/admin/class-wpcode-upgrade-welcome.php:
|
232 |
msgid "Founder of %s"
|
233 |
msgstr ""
|
234 |
|
235 |
-
#: includes/admin/class-wpcode-upgrade-welcome.php:
|
236 |
msgid "Lead Developer"
|
237 |
msgstr ""
|
238 |
|
239 |
-
#: includes/admin/class-wpcode-upgrade-welcome.php:
|
240 |
msgid "What’s New in WPCode (Features & Highlights)"
|
241 |
msgstr ""
|
242 |
|
243 |
-
#: includes/admin/class-wpcode-upgrade-welcome.php:
|
244 |
-
#: includes/admin/class-wpcode-upgrade-welcome.php:
|
245 |
msgid "WPCode Generator Screen capture"
|
246 |
msgstr ""
|
247 |
|
248 |
-
#: includes/admin/class-wpcode-upgrade-welcome.php:
|
249 |
msgid "Snippet Generator"
|
250 |
msgstr ""
|
251 |
|
252 |
-
#: includes/admin/class-wpcode-upgrade-welcome.php:
|
253 |
msgid "WPCode now includes a snippet generator directly in the plugin."
|
254 |
msgstr ""
|
255 |
|
256 |
-
#: includes/admin/class-wpcode-upgrade-welcome.php:
|
257 |
msgid "Using the built-in generators, you can quickly add custom post types, custom post statuses, widgets, menus, build complex WP Queries and much more."
|
258 |
msgstr ""
|
259 |
|
260 |
-
#: includes/admin/class-wpcode-upgrade-welcome.php:
|
261 |
msgid "Simply fill in the fields in our guided wizard to generate a custom ready-to-use snippet for your website with 1 click. Try WordPress Snippet Generator."
|
262 |
msgstr ""
|
263 |
|
264 |
-
#: includes/admin/class-wpcode-upgrade-welcome.php:
|
265 |
-
msgid "Store Snippets in Cloud
|
266 |
msgstr ""
|
267 |
|
268 |
-
#: includes/admin/class-wpcode-upgrade-welcome.php:
|
269 |
msgid "A lot of you requested the ability to save and re-use snippets on multiple websites."
|
270 |
msgstr ""
|
271 |
|
272 |
-
|
273 |
-
|
|
|
274 |
msgstr ""
|
275 |
|
276 |
#. Translators: Placeholders add a link to the suggestions page.
|
277 |
-
#: includes/admin/class-wpcode-upgrade-welcome.php:
|
278 |
msgid "If you have specific ideas or feature requests, please let us know by %1$sfilling out this form%2$s."
|
279 |
msgstr ""
|
280 |
|
281 |
-
#: includes/admin/class-wpcode-upgrade-welcome.php:
|
282 |
msgid "WPCode Cloud Screen capture"
|
283 |
msgstr ""
|
284 |
|
285 |
-
#: includes/admin/class-wpcode-upgrade-welcome.php:
|
286 |
msgid "Not ready for the new interface?"
|
287 |
msgstr ""
|
288 |
|
289 |
-
#: includes/admin/class-wpcode-upgrade-welcome.php:
|
290 |
msgid "If you are not ready to switch to the new interface, or you simply want to use the plugin just for inserting headers and footers we've got you covered."
|
291 |
msgstr ""
|
292 |
|
293 |
#. Translators: Placeholders add a link to the settings page.
|
294 |
-
#: includes/admin/class-wpcode-upgrade-welcome.php:
|
295 |
msgid "You can switch to the simple Headers & Footers interface at any time from the %1$ssettings page%2$s."
|
296 |
msgstr ""
|
297 |
|
298 |
-
#: includes/admin/class-wpcode-upgrade-welcome.php:
|
299 |
msgid "And if you change your mind later and want to give the full plugin a shot, you can always switch back with just 2 clicks using the option at the top of the page."
|
300 |
msgstr ""
|
301 |
|
302 |
-
#: includes/admin/class-wpcode-upgrade-welcome.php:
|
303 |
msgid "Add Your First Snippet"
|
304 |
msgstr ""
|
305 |
|
@@ -313,42 +367,63 @@ msgstr ""
|
|
313 |
msgid "The snippet you are trying to import does not exist."
|
314 |
msgstr ""
|
315 |
|
316 |
-
#: includes/admin/pages/class-wpcode-admin-page-code-snippets.php:
|
317 |
-
#: includes/admin/pages/class-wpcode-admin-page.php:
|
318 |
msgid "Search Snippets"
|
319 |
msgstr ""
|
320 |
|
321 |
-
#: includes/admin/pages/class-wpcode-admin-page-code-snippets.php:
|
322 |
-
#: includes/admin/pages/class-wpcode-admin-page.php:
|
323 |
msgid "All Snippets"
|
324 |
msgstr ""
|
325 |
|
326 |
-
#: includes/admin/pages/class-wpcode-admin-page-code-snippets.php:
|
327 |
#: includes/generator/class-wpcode-generator-post-type.php:231
|
328 |
msgid "Add New"
|
329 |
msgstr ""
|
330 |
|
331 |
#. Translators: %d - Trashed snippets count.
|
332 |
-
#: includes/admin/pages/class-wpcode-admin-page-code-snippets.php:
|
333 |
msgid "%d snippet was successfully moved to Trash."
|
334 |
msgid_plural "%d snippets were successfully moved to Trash."
|
335 |
msgstr[0] ""
|
336 |
msgstr[1] ""
|
337 |
|
338 |
#. translators: %d - Restored from trash snippets count.
|
339 |
-
#: includes/admin/pages/class-wpcode-admin-page-code-snippets.php:
|
340 |
msgid "%d snippet was successfully restored."
|
341 |
msgid_plural "%d snippet were successfully restored."
|
342 |
msgstr[0] ""
|
343 |
msgstr[1] ""
|
344 |
|
345 |
#. translators: %d - Deleted snippets count.
|
346 |
-
#: includes/admin/pages/class-wpcode-admin-page-code-snippets.php:
|
347 |
msgid "%d snippet was successfully permanently deleted."
|
348 |
msgid_plural "%d snippets were successfully permanently deleted."
|
349 |
msgstr[0] ""
|
350 |
msgstr[1] ""
|
351 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
352 |
#: includes/admin/pages/class-wpcode-admin-page-generator.php:52
|
353 |
msgid "Generator"
|
354 |
msgstr ""
|
@@ -371,13 +446,13 @@ msgid "Update code"
|
|
371 |
msgstr ""
|
372 |
|
373 |
#: includes/admin/pages/class-wpcode-admin-page-generator.php:171
|
374 |
-
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:
|
375 |
-
#: includes/admin/pages/class-wpcode-admin-page.php:
|
376 |
msgid "Code Preview"
|
377 |
msgstr ""
|
378 |
|
379 |
#: includes/admin/pages/class-wpcode-admin-page-generator.php:172
|
380 |
-
#: includes/admin/pages/class-wpcode-admin-page.php:
|
381 |
msgid "Use Snippet"
|
382 |
msgstr ""
|
383 |
|
@@ -456,70 +531,70 @@ msgstr ""
|
|
456 |
msgid "My Favorites"
|
457 |
msgstr ""
|
458 |
|
459 |
-
#: includes/admin/pages/class-wpcode-admin-page-library.php:
|
460 |
msgid "We encountered an error while trying to load the snippet data. Please try again."
|
461 |
msgstr ""
|
462 |
|
463 |
-
#: includes/admin/pages/class-wpcode-admin-page-library.php:
|
464 |
msgid "My Library is a PRO Feature"
|
465 |
msgstr ""
|
466 |
|
467 |
-
#: includes/admin/pages/class-wpcode-admin-page-library.php:
|
468 |
msgid "Upgrade to WPCode PRO today and save your snippets in the WPCode Library directly from the plugin and import them with 1-click on other sites."
|
469 |
msgstr ""
|
470 |
|
471 |
-
#: includes/admin/pages/class-wpcode-admin-page-library.php:
|
472 |
-
msgid "Upgrade PRO and Unlock \"My Library\""
|
473 |
msgstr ""
|
474 |
|
475 |
-
#: includes/admin/pages/class-wpcode-admin-page-library.php:
|
476 |
-
#: includes/admin/pages/class-wpcode-admin-page-library.php:
|
477 |
-
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:
|
478 |
#: includes/lite/admin/class-wpcode-metabox-snippets-lite.php:149
|
479 |
#: includes/lite/admin/class-wpcode-metabox-snippets-lite.php:292
|
480 |
msgid "Learn more about all the features"
|
481 |
msgstr ""
|
482 |
|
483 |
-
#: includes/admin/pages/class-wpcode-admin-page-library.php:205
|
484 |
-
#: includes/admin/pages/class-wpcode-admin-page-library.php:237
|
485 |
-
msgid "Save your snippets to the WPCode Library"
|
486 |
-
msgstr ""
|
487 |
-
|
488 |
#: includes/admin/pages/class-wpcode-admin-page-library.php:206
|
489 |
-
#: includes/admin/pages/class-wpcode-admin-page-library.php:
|
490 |
-
msgid "
|
491 |
msgstr ""
|
492 |
|
493 |
#: includes/admin/pages/class-wpcode-admin-page-library.php:207
|
494 |
-
#: includes/admin/pages/class-wpcode-admin-page-library.php:
|
495 |
-
msgid "
|
496 |
msgstr ""
|
497 |
|
498 |
#: includes/admin/pages/class-wpcode-admin-page-library.php:208
|
499 |
#: includes/admin/pages/class-wpcode-admin-page-library.php:239
|
500 |
-
msgid "
|
501 |
msgstr ""
|
502 |
|
503 |
#: includes/admin/pages/class-wpcode-admin-page-library.php:209
|
504 |
#: includes/admin/pages/class-wpcode-admin-page-library.php:240
|
505 |
-
msgid "
|
506 |
msgstr ""
|
507 |
|
508 |
#: includes/admin/pages/class-wpcode-admin-page-library.php:210
|
509 |
-
#: includes/admin/pages/class-wpcode-admin-page-library.php:
|
|
|
|
|
|
|
|
|
|
|
510 |
msgid "Load favorite snippets in the plugin"
|
511 |
msgstr ""
|
512 |
|
513 |
-
#: includes/admin/pages/class-wpcode-admin-page-library.php:
|
514 |
msgid "My Favorites is a PRO Feature"
|
515 |
msgstr ""
|
516 |
|
517 |
-
#: includes/admin/pages/class-wpcode-admin-page-library.php:
|
518 |
msgid "Upgrade to WPCode PRO today and see the snippets you starred in the WPCode Library directly in the plugin."
|
519 |
msgstr ""
|
520 |
|
521 |
-
#: includes/admin/pages/class-wpcode-admin-page-library.php:
|
522 |
-
msgid "Upgrade PRO and Unlock \"My Favorites\""
|
523 |
msgstr ""
|
524 |
|
525 |
#: includes/admin/pages/class-wpcode-admin-page-settings.php:72
|
@@ -599,209 +674,235 @@ msgstr ""
|
|
599 |
msgid "Edit snippet \"%s\""
|
600 |
msgstr ""
|
601 |
|
602 |
-
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:
|
603 |
msgid "Add Your Custom Code (New Snippet)"
|
604 |
msgstr ""
|
605 |
|
606 |
-
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:
|
607 |
msgid "Choose this blank snippet to start from scratch and paste any custom code or simply write your own."
|
608 |
msgstr ""
|
609 |
|
610 |
#. Translators: The placeholders add links to create a new custom snippet or the suggest-a-snippet form.
|
611 |
-
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:
|
612 |
msgid "To speed up the process you can select from one of our pre-made library, or you can start with a %1$sblank snippet%2$s and %1$screate your own%2$s. Have a suggestion for new snippet? %3$sWe’d love to hear it!%4$s"
|
613 |
msgstr ""
|
614 |
|
615 |
-
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:
|
616 |
msgid "Add title for snippet"
|
617 |
msgstr ""
|
618 |
|
619 |
-
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:
|
620 |
msgid "Code Type"
|
621 |
msgstr ""
|
622 |
|
623 |
-
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:
|
624 |
msgid "Insertion"
|
625 |
msgstr ""
|
626 |
|
627 |
-
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:
|
628 |
msgid "Choose \"Auto Insert\" if you want the snippet to be automatically executed in one of the locations available. In \"Shortcode\" mode, the snippet will only be executed where the shortcode is inserted."
|
629 |
msgstr ""
|
630 |
|
631 |
-
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:
|
632 |
msgid "Insert Method"
|
633 |
msgstr ""
|
634 |
|
635 |
-
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:
|
636 |
-
#: includes/admin/pages/class-wpcode-code-snippets-table.php:
|
637 |
msgid "Location"
|
638 |
msgstr ""
|
639 |
|
640 |
-
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:
|
641 |
msgid "Insert Number"
|
642 |
msgstr ""
|
643 |
|
644 |
-
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:
|
645 |
-
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:
|
646 |
msgid "Shortcode"
|
647 |
msgstr ""
|
648 |
|
649 |
-
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:
|
650 |
msgid "Your snippet can be either automatically executed or only used as a shortcode. When using the \"Auto Insert\" option you can choose the location where your snippet will be placed automatically."
|
651 |
msgstr ""
|
652 |
|
653 |
-
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:
|
654 |
msgid "Number of paragraphs before which to insert the snippet."
|
655 |
msgstr ""
|
656 |
|
657 |
-
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:
|
658 |
msgid "Number of paragraphs after which to insert the snippet."
|
659 |
msgstr ""
|
660 |
|
661 |
-
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:
|
662 |
msgid "Number of posts before which to insert the snippet."
|
663 |
msgstr ""
|
664 |
|
665 |
-
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:
|
666 |
msgid "Number of posts after which to insert the snippet."
|
667 |
msgstr ""
|
668 |
|
669 |
-
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:
|
670 |
msgid "Auto Insert"
|
671 |
msgstr ""
|
672 |
|
673 |
-
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:
|
674 |
msgid "Please save the snippet first"
|
675 |
msgstr ""
|
676 |
|
677 |
-
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:
|
678 |
msgid "Tag"
|
679 |
msgstr ""
|
680 |
|
681 |
-
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:
|
682 |
#: includes/generator/class-wpcode-generator-hooks.php:1360
|
683 |
msgid "Priority"
|
684 |
msgstr ""
|
685 |
|
686 |
-
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:
|
687 |
msgid "Note"
|
688 |
msgstr ""
|
689 |
|
690 |
-
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:
|
691 |
msgid "Basic info"
|
692 |
msgstr ""
|
693 |
|
694 |
-
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:
|
695 |
msgid "Tags: Use tags to make it easier to group similar snippets together. <br />Priority: A lower priority will result in the snippet being executed before others with a higher priority. <br />Note: Add a private note related to this snippet."
|
696 |
msgstr ""
|
697 |
|
698 |
-
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:
|
699 |
msgid "Using conditional logic you can limit the pages where you want the snippet to be auto-inserted."
|
700 |
msgstr ""
|
701 |
|
702 |
-
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:
|
703 |
msgid "Enable Logic"
|
704 |
msgstr ""
|
705 |
|
706 |
-
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:
|
707 |
msgid "Conditions"
|
708 |
msgstr ""
|
709 |
|
710 |
-
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:
|
711 |
msgid "Smart Conditional Logic"
|
712 |
msgstr ""
|
713 |
|
714 |
-
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:
|
715 |
msgid "Enable logic to add rules and limit where your snippets are inserted automatically. Use multiple groups for different sets of rules."
|
716 |
msgstr ""
|
717 |
|
718 |
-
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:
|
719 |
#: includes/admin/pages/class-wpcode-admin-page-tools.php:358
|
720 |
-
#: includes/admin/pages/class-wpcode-code-snippets-table.php:
|
721 |
msgid "Active"
|
722 |
msgstr ""
|
723 |
|
724 |
-
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:
|
725 |
#: includes/admin/pages/class-wpcode-admin-page-tools.php:359
|
726 |
-
#: includes/admin/pages/class-wpcode-code-snippets-table.php:
|
727 |
msgid "Inactive"
|
728 |
msgstr ""
|
729 |
|
730 |
-
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:
|
731 |
msgid "+ Add new group"
|
732 |
msgstr ""
|
733 |
|
734 |
-
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:
|
735 |
msgid "Show"
|
736 |
msgstr ""
|
737 |
|
738 |
-
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:
|
739 |
msgid "Hide"
|
740 |
msgstr ""
|
741 |
|
742 |
-
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:
|
743 |
msgid "This code snippet if"
|
744 |
msgstr ""
|
745 |
|
746 |
-
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:
|
747 |
msgctxt "Conditional logic add another \"and\" rules row."
|
748 |
msgid "AND"
|
749 |
msgstr ""
|
750 |
|
751 |
-
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:
|
752 |
msgctxt "Conditional logic \"or\" another rule"
|
753 |
msgid "OR"
|
754 |
msgstr ""
|
755 |
|
756 |
-
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:
|
757 |
msgid "Save to Library is a Pro Feature"
|
758 |
msgstr ""
|
759 |
|
760 |
-
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:
|
761 |
msgid "Upgrade to PRO today and save your private snippets to the WPCode library for easy access. You can also share your snippets with other users or load them on other sites."
|
762 |
msgstr ""
|
763 |
|
764 |
-
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:
|
765 |
msgid "Upgrade to PRO"
|
766 |
msgstr ""
|
767 |
|
768 |
-
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:
|
769 |
msgid "Custom Shortcode is a Pro Feature"
|
770 |
msgstr ""
|
771 |
|
772 |
-
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:
|
773 |
msgid "Upgrade today to use a custom shortcode and nerver worry about changing snippet ids again, even when importing your snippets to another site. You'll also get access to a private library that makes setting up new sites a lot easier."
|
774 |
msgstr ""
|
775 |
|
776 |
-
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
777 |
msgid "Custom Shortcode"
|
778 |
msgstr ""
|
779 |
|
780 |
-
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:
|
781 |
msgid "Shortcode name"
|
782 |
msgstr ""
|
783 |
|
784 |
-
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:
|
785 |
msgid "Use this field to define a custom shortcode name instead of the id-based one."
|
786 |
msgstr ""
|
787 |
|
788 |
-
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:
|
789 |
msgid "Code Revisions"
|
790 |
msgstr ""
|
791 |
|
792 |
-
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:
|
793 |
msgid "Easily switch back to a previous version of your snippet."
|
794 |
msgstr ""
|
795 |
|
796 |
-
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
797 |
msgid "Code Revisions is a Pro Feature"
|
798 |
msgstr ""
|
799 |
|
800 |
-
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:
|
801 |
msgid "Upgrade to WPCode Pro today and start tracking revisions and see exactly who, when and which changes were made to your snippet."
|
802 |
msgstr ""
|
803 |
|
804 |
-
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:
|
805 |
msgid "Upgrade to Pro and Unlock Revisions"
|
806 |
msgstr ""
|
807 |
|
@@ -862,7 +963,7 @@ msgid "Export Code Snippets"
|
|
862 |
msgstr ""
|
863 |
|
864 |
#: includes/admin/pages/class-wpcode-admin-page-tools.php:201
|
865 |
-
#: includes/admin/pages/class-wpcode-code-snippets-table.php:
|
866 |
#: includes/generator/class-wpcode-generator-post-status.php:111
|
867 |
msgid "Status"
|
868 |
msgstr ""
|
@@ -872,7 +973,7 @@ msgid "Code type"
|
|
872 |
msgstr ""
|
873 |
|
874 |
#: includes/admin/pages/class-wpcode-admin-page-tools.php:211
|
875 |
-
#: includes/admin/pages/class-wpcode-code-snippets-table.php:
|
876 |
msgid "Tags"
|
877 |
msgstr ""
|
878 |
|
@@ -905,11 +1006,12 @@ msgid "Select the Snippets you would like to import."
|
|
905 |
msgstr ""
|
906 |
|
907 |
#: includes/admin/pages/class-wpcode-admin-page-tools.php:271
|
|
|
908 |
msgid "Available Snippets"
|
909 |
msgstr ""
|
910 |
|
911 |
#: includes/admin/pages/class-wpcode-admin-page-tools.php:276
|
912 |
-
#: includes/admin/pages/class-wpcode-code-snippets-table.php:
|
913 |
msgid "No snippets found."
|
914 |
msgstr ""
|
915 |
|
@@ -932,7 +1034,7 @@ msgid "Congrats, the import process has finished! We have successfully imported
|
|
932 |
msgstr ""
|
933 |
|
934 |
#: includes/admin/pages/class-wpcode-admin-page-tools.php:357
|
935 |
-
#: includes/admin/pages/class-wpcode-code-snippets-table.php:
|
936 |
msgid "All"
|
937 |
msgstr ""
|
938 |
|
@@ -983,7 +1085,7 @@ msgid "Search docs"
|
|
983 |
msgstr ""
|
984 |
|
985 |
#: includes/admin/pages/class-wpcode-admin-page.php:233
|
986 |
-
#: includes/admin/pages/class-wpcode-code-snippets-table.php:
|
987 |
msgid "Clear"
|
988 |
msgstr ""
|
989 |
|
@@ -1065,14 +1167,27 @@ msgstr ""
|
|
1065 |
msgid "Connect to library to unlock (Free)"
|
1066 |
msgstr ""
|
1067 |
|
1068 |
-
#: includes/admin/pages/class-wpcode-admin-page.php:
|
1069 |
msgid "We encountered a problem loading the Snippet Library items, please try again later."
|
1070 |
msgstr ""
|
1071 |
|
1072 |
-
#: includes/admin/pages/class-wpcode-admin-page.php:
|
1073 |
msgid "Preview Snippet"
|
1074 |
msgstr ""
|
1075 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1076 |
#. Translators: This is the format for displaying the date in the admin list, [date] at [time].
|
1077 |
#: includes/admin/pages/class-wpcode-code-snippets-table.php:106
|
1078 |
msgid "%1$s at %2$s"
|
@@ -1112,50 +1227,58 @@ msgstr ""
|
|
1112 |
|
1113 |
#: includes/admin/pages/class-wpcode-code-snippets-table.php:304
|
1114 |
#: includes/admin/pages/class-wpcode-code-snippets-table.php:326
|
1115 |
-
#: includes/admin/pages/class-wpcode-code-snippets-table.php:
|
1116 |
msgid "Trash"
|
1117 |
msgstr ""
|
1118 |
|
1119 |
-
#: includes/admin/pages/class-wpcode-code-snippets-table.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1120 |
#: includes/generator/class-wpcode-generator-post-status.php:128
|
1121 |
#: includes/generator/class-wpcode-generator-post-type.php:136
|
1122 |
#: includes/generator/class-wpcode-generator-sidebar.php:130
|
1123 |
msgid "Name"
|
1124 |
msgstr ""
|
1125 |
|
1126 |
-
#: includes/admin/pages/class-wpcode-code-snippets-table.php:
|
1127 |
#: includes/generator/class-wpcode-generator-post-type.php:378
|
1128 |
#: includes/generator/class-wpcode-generator-query.php:225
|
1129 |
#: includes/generator/class-wpcode-generator-query.php:299
|
1130 |
msgid "Author"
|
1131 |
msgstr ""
|
1132 |
|
1133 |
-
#: includes/admin/pages/class-wpcode-code-snippets-table.php:
|
1134 |
msgid "Created"
|
1135 |
msgstr ""
|
1136 |
|
1137 |
-
#: includes/admin/pages/class-wpcode-code-snippets-table.php:
|
1138 |
msgid "0 items"
|
1139 |
msgstr ""
|
1140 |
|
1141 |
-
#: includes/admin/pages/class-wpcode-code-snippets-table.php:
|
1142 |
#: includes/generator/class-wpcode-generator-hooks.php:1337
|
1143 |
msgid "Filter"
|
1144 |
msgstr ""
|
1145 |
|
1146 |
-
#: includes/admin/pages/class-wpcode-code-snippets-table.php:
|
1147 |
msgid "Filter by code type"
|
1148 |
msgstr ""
|
1149 |
|
1150 |
-
#: includes/admin/pages/class-wpcode-code-snippets-table.php:
|
1151 |
msgid "All types"
|
1152 |
msgstr ""
|
1153 |
|
1154 |
-
#: includes/admin/pages/class-wpcode-code-snippets-table.php:
|
1155 |
msgid "Filter by location"
|
1156 |
msgstr ""
|
1157 |
|
1158 |
-
#: includes/admin/pages/class-wpcode-code-snippets-table.php:
|
1159 |
msgid "All locations"
|
1160 |
msgstr ""
|
1161 |
|
@@ -1325,11 +1448,11 @@ msgstr ""
|
|
1325 |
msgid "Error message:"
|
1326 |
msgstr ""
|
1327 |
|
1328 |
-
#: includes/class-wpcode-snippet.php:
|
1329 |
msgid "You are not allowed to change snippet status, please contact your webmaster."
|
1330 |
msgstr ""
|
1331 |
|
1332 |
-
#: includes/class-wpcode-snippet.php:
|
1333 |
msgid "Untitled Snippet"
|
1334 |
msgstr ""
|
1335 |
|
@@ -2039,23 +2162,6 @@ msgstr ""
|
|
2039 |
msgid "Exclude from search results"
|
2040 |
msgstr ""
|
2041 |
|
2042 |
-
#: includes/generator/class-wpcode-generator-post-status.php:170
|
2043 |
-
#: includes/generator/class-wpcode-generator-post-status.php:195
|
2044 |
-
#: includes/generator/class-wpcode-generator-post-type.php:399
|
2045 |
-
#: includes/generator/class-wpcode-generator-post-type.php:551
|
2046 |
-
#: includes/generator/class-wpcode-generator-post-type.php:757
|
2047 |
-
#: includes/generator/class-wpcode-generator-query.php:136
|
2048 |
-
#: includes/generator/class-wpcode-generator-query.php:379
|
2049 |
-
#: includes/generator/class-wpcode-generator-query.php:436
|
2050 |
-
#: includes/generator/class-wpcode-generator-script.php:211
|
2051 |
-
#: includes/generator/class-wpcode-generator-script.php:228
|
2052 |
-
#: includes/generator/class-wpcode-generator-style.php:212
|
2053 |
-
#: includes/generator/class-wpcode-generator-style.php:229
|
2054 |
-
#: includes/generator/class-wpcode-generator-taxonomy.php:428
|
2055 |
-
#: includes/generator/class-wpcode-generator-taxonomy.php:505
|
2056 |
-
msgid "Yes"
|
2057 |
-
msgstr ""
|
2058 |
-
|
2059 |
#: includes/generator/class-wpcode-generator-post-status.php:171
|
2060 |
#: includes/generator/class-wpcode-generator-post-status.php:196
|
2061 |
msgid "No - Default"
|
@@ -3709,27 +3815,32 @@ msgstr ""
|
|
3709 |
msgid "Add field"
|
3710 |
msgstr ""
|
3711 |
|
3712 |
-
#: includes/helpers.php:
|
3713 |
msgctxt "Copy to clipboard"
|
3714 |
msgid "Copy"
|
3715 |
msgstr ""
|
3716 |
|
3717 |
-
#: includes/helpers.php:
|
3718 |
msgid "Is"
|
3719 |
msgstr ""
|
3720 |
|
3721 |
-
#: includes/helpers.php:
|
3722 |
msgid "Is not"
|
3723 |
msgstr ""
|
3724 |
|
3725 |
-
#: includes/helpers.php:
|
3726 |
msgid "Contains"
|
3727 |
msgstr ""
|
3728 |
|
3729 |
-
#: includes/helpers.php:
|
3730 |
msgid "Doesn't Contain"
|
3731 |
msgstr ""
|
3732 |
|
|
|
|
|
|
|
|
|
|
|
3733 |
#: includes/lite/admin/class-wpcode-metabox-snippets-lite.php:139
|
3734 |
#: includes/lite/admin/class-wpcode-metabox-snippets-lite.php:282
|
3735 |
msgid "Page Scripts is a Pro Feature"
|
@@ -3764,8 +3875,56 @@ msgstr ""
|
|
3764 |
msgid "Show Smart Tags"
|
3765 |
msgstr ""
|
3766 |
|
3767 |
-
|
3768 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3769 |
msgstr ""
|
3770 |
|
3771 |
#: includes/lite/auto-insert/class-wpcode-auto-insert-edd.php:33
|
@@ -3861,6 +4020,22 @@ msgstr ""
|
|
3861 |
msgid "WooCommerce Locations are a PRO feature"
|
3862 |
msgstr ""
|
3863 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3864 |
#: includes/lite/conditional-logic/class-wpcode-conditional-edd.php:37
|
3865 |
msgid "EDD Page"
|
3866 |
msgstr ""
|
2 |
# This file is distributed under the GPLv2 or later.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: WPCode Lite 2.0.5\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/insert-headers-and-footers\n"
|
7 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
8 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"POT-Creation-Date: 2022-12-15T08:53:17+00:00\n"
|
13 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
14 |
"X-Generator: WP-CLI 2.5.0\n"
|
15 |
"X-Domain: insert-headers-and-footers\n"
|
134 |
msgid "%1$s ago"
|
135 |
msgstr ""
|
136 |
|
137 |
+
#: includes/admin/class-wpcode-review.php:117
|
138 |
+
msgid "Are you enjoying WPCode?"
|
139 |
+
msgstr ""
|
140 |
+
|
141 |
+
#: includes/admin/class-wpcode-review.php:120
|
142 |
+
#: includes/generator/class-wpcode-generator-post-status.php:170
|
143 |
+
#: includes/generator/class-wpcode-generator-post-status.php:195
|
144 |
+
#: includes/generator/class-wpcode-generator-post-type.php:399
|
145 |
+
#: includes/generator/class-wpcode-generator-post-type.php:551
|
146 |
+
#: includes/generator/class-wpcode-generator-post-type.php:757
|
147 |
+
#: includes/generator/class-wpcode-generator-query.php:136
|
148 |
+
#: includes/generator/class-wpcode-generator-query.php:379
|
149 |
+
#: includes/generator/class-wpcode-generator-query.php:436
|
150 |
+
#: includes/generator/class-wpcode-generator-script.php:211
|
151 |
+
#: includes/generator/class-wpcode-generator-script.php:228
|
152 |
+
#: includes/generator/class-wpcode-generator-style.php:212
|
153 |
+
#: includes/generator/class-wpcode-generator-style.php:229
|
154 |
+
#: includes/generator/class-wpcode-generator-taxonomy.php:428
|
155 |
+
#: includes/generator/class-wpcode-generator-taxonomy.php:505
|
156 |
+
msgid "Yes"
|
157 |
+
msgstr ""
|
158 |
+
|
159 |
+
#: includes/admin/class-wpcode-review.php:122
|
160 |
+
msgid "Not Really"
|
161 |
+
msgstr ""
|
162 |
+
|
163 |
+
#: includes/admin/class-wpcode-review.php:126
|
164 |
+
msgid "We're sorry to hear you aren't enjoying WPCode. We would love a chance to improve. Could you take a minute and let us know what we can do better?"
|
165 |
+
msgstr ""
|
166 |
+
|
167 |
+
#: includes/admin/class-wpcode-review.php:129
|
168 |
+
#: includes/admin/class-wpcode-review.php:140
|
169 |
+
msgid "Give Feedback"
|
170 |
+
msgstr ""
|
171 |
+
|
172 |
+
#: includes/admin/class-wpcode-review.php:131
|
173 |
+
#: includes/admin/class-wpcode-review.php:141
|
174 |
+
msgid "No thanks"
|
175 |
+
msgstr ""
|
176 |
+
|
177 |
+
#: includes/admin/class-wpcode-review.php:135
|
178 |
+
msgid "That's awesome! Could you please do me a BIG favor and give it a 5-star rating on WordPress to help us spread the word and boost our motivation?"
|
179 |
+
msgstr ""
|
180 |
+
|
181 |
+
#: includes/admin/class-wpcode-review.php:137
|
182 |
+
msgid "~ Syed Balkhi<br>Co-Founder of WPCode"
|
183 |
+
msgstr ""
|
184 |
+
|
185 |
+
#. translators: $1$s - WPCode plugin name; $2$s - WP.org review link; $3$s - WP.org review link.
|
186 |
+
#: includes/admin/class-wpcode-review.php:192
|
187 |
+
msgid "Please rate %1$s <a href=\"%2$s\" target=\"_blank\" rel=\"noopener noreferrer\">★★★★★</a> on <a href=\"%3$s\" target=\"_blank\" rel=\"noopener\">WordPress.org</a> to help us spread the word. Thank you from the WPCode team!"
|
188 |
+
msgstr ""
|
189 |
+
|
190 |
#: includes/admin/class-wpcode-upgrade-welcome.php:30
|
191 |
#: includes/admin/class-wpcode-upgrade-welcome.php:31
|
192 |
msgid "Welcome to WPCode"
|
193 |
msgstr ""
|
194 |
|
195 |
+
#: includes/admin/class-wpcode-upgrade-welcome.php:131
|
196 |
msgid "Header & Footer Scripts"
|
197 |
msgstr ""
|
198 |
|
199 |
+
#: includes/admin/class-wpcode-upgrade-welcome.php:132
|
200 |
msgid "Effortlessly manage global headers & footers in a familiar interface."
|
201 |
msgstr ""
|
202 |
|
203 |
+
#: includes/admin/class-wpcode-upgrade-welcome.php:136
|
204 |
msgid "Conversion Pixels"
|
205 |
msgstr ""
|
206 |
|
207 |
+
#: includes/admin/class-wpcode-upgrade-welcome.php:137
|
208 |
msgid "Easily target specific pages to track conversions reliably."
|
209 |
msgstr ""
|
210 |
|
211 |
+
#: includes/admin/class-wpcode-upgrade-welcome.php:141
|
212 |
msgid "PHP Snippets"
|
213 |
msgstr ""
|
214 |
|
215 |
+
#: includes/admin/class-wpcode-upgrade-welcome.php:142
|
216 |
msgid "Add or remove features with full confidence that your site will not break."
|
217 |
msgstr ""
|
218 |
|
219 |
+
#: includes/admin/class-wpcode-upgrade-welcome.php:146
|
220 |
msgid "Conditional Logic"
|
221 |
msgstr ""
|
222 |
|
223 |
+
#: includes/admin/class-wpcode-upgrade-welcome.php:147
|
224 |
msgid "Create advanced conditional logic rules in an easy-to-use interface."
|
225 |
msgstr ""
|
226 |
|
227 |
+
#: includes/admin/class-wpcode-upgrade-welcome.php:151
|
228 |
msgid "Error Handling"
|
229 |
msgstr ""
|
230 |
|
231 |
+
#: includes/admin/class-wpcode-upgrade-welcome.php:152
|
232 |
msgid "Unique error handling capabilities ensure you will not get locked out of your site."
|
233 |
msgstr ""
|
234 |
|
235 |
+
#: includes/admin/class-wpcode-upgrade-welcome.php:156
|
236 |
msgid "Snippets Library"
|
237 |
msgstr ""
|
238 |
|
239 |
+
#: includes/admin/class-wpcode-upgrade-welcome.php:157
|
240 |
msgid "One-click install from our extensive library of commonly-used snippets."
|
241 |
msgstr ""
|
242 |
|
243 |
#. Translators: This simply adds the plugin name before the logo text.
|
244 |
+
#: includes/admin/class-wpcode-upgrade-welcome.php:162
|
245 |
#: includes/admin/pages/class-wpcode-admin-page.php:387
|
246 |
msgid "%s logo"
|
247 |
msgstr ""
|
248 |
|
249 |
+
#: includes/admin/class-wpcode-upgrade-welcome.php:171
|
250 |
msgid "Insert Headers and Footers is now WPCode"
|
251 |
msgstr ""
|
252 |
|
253 |
+
#: includes/admin/class-wpcode-upgrade-welcome.php:172
|
254 |
msgid "When we first built Insert Headers and Footers over a decade ago, it was meant to do one very simple thing: add header and footer scripts to your site without editing theme files."
|
255 |
msgstr ""
|
256 |
|
257 |
+
#: includes/admin/class-wpcode-upgrade-welcome.php:173
|
258 |
msgid "Since then, the plugin has grown to over 1 million active installs with an amazing user base. We have continued to receive feature requests to add more options like controlling which pages the scripts get loaded, allowing more types of code snippets, etc."
|
259 |
msgstr ""
|
260 |
|
261 |
+
#: includes/admin/class-wpcode-upgrade-welcome.php:174
|
262 |
msgid "We listened to your feedback, and we are excited to present WPCode, the next generation of Insert Headers and Footers. We chose a new name because it was only fair considering the plugin is now 10x more powerful. Aside from adding global headers and footer snippets, you can also add multiple other types of code snippets, have granular control of where the snippets are output with conditional logic, and a whole lot more."
|
263 |
msgstr ""
|
264 |
|
265 |
#. Translators: Placeholders 1 & 2 add a link to scroll down the page and 3 & 4 add a link to the suggestions form.
|
266 |
+
#: includes/admin/class-wpcode-upgrade-welcome.php:179
|
267 |
msgid "Please see the full list of features %1$sbelow%2$s and let us know what you'd like us to add next by %3$ssharing your feedback%4$s."
|
268 |
msgstr ""
|
269 |
|
270 |
#. Translators: Placeholders add link to the details about settings.
|
271 |
+
#: includes/admin/class-wpcode-upgrade-welcome.php:194
|
272 |
msgid "For those of you who want to limit the functionality and switch back to the old interface, you can do so with one click. %1$sSee details here%2$s."
|
273 |
msgstr ""
|
274 |
|
275 |
+
#: includes/admin/class-wpcode-upgrade-welcome.php:203
|
276 |
msgid "We have an exciting roadmap ahead of us since you have shared tons of great ideas with us over the last several years. We truly appreciate your continued support and thank you for being an awesome user."
|
277 |
msgstr ""
|
278 |
|
279 |
+
#: includes/admin/class-wpcode-upgrade-welcome.php:204
|
280 |
msgid "We truly appreciate your continued support and thank you for using WPCode."
|
281 |
msgstr ""
|
282 |
|
283 |
#. Translators: Placeholder for "WPBeginner".
|
284 |
+
#: includes/admin/class-wpcode-upgrade-welcome.php:215
|
285 |
msgid "Founder of %s"
|
286 |
msgstr ""
|
287 |
|
288 |
+
#: includes/admin/class-wpcode-upgrade-welcome.php:227
|
289 |
msgid "Lead Developer"
|
290 |
msgstr ""
|
291 |
|
292 |
+
#: includes/admin/class-wpcode-upgrade-welcome.php:233
|
293 |
msgid "What’s New in WPCode (Features & Highlights)"
|
294 |
msgstr ""
|
295 |
|
296 |
+
#: includes/admin/class-wpcode-upgrade-welcome.php:253
|
297 |
+
#: includes/admin/class-wpcode-upgrade-welcome.php:303
|
298 |
msgid "WPCode Generator Screen capture"
|
299 |
msgstr ""
|
300 |
|
301 |
+
#: includes/admin/class-wpcode-upgrade-welcome.php:256
|
302 |
msgid "Snippet Generator"
|
303 |
msgstr ""
|
304 |
|
305 |
+
#: includes/admin/class-wpcode-upgrade-welcome.php:257
|
306 |
msgid "WPCode now includes a snippet generator directly in the plugin."
|
307 |
msgstr ""
|
308 |
|
309 |
+
#: includes/admin/class-wpcode-upgrade-welcome.php:258
|
310 |
msgid "Using the built-in generators, you can quickly add custom post types, custom post statuses, widgets, menus, build complex WP Queries and much more."
|
311 |
msgstr ""
|
312 |
|
313 |
+
#: includes/admin/class-wpcode-upgrade-welcome.php:259
|
314 |
msgid "Simply fill in the fields in our guided wizard to generate a custom ready-to-use snippet for your website with 1 click. Try WordPress Snippet Generator."
|
315 |
msgstr ""
|
316 |
|
317 |
+
#: includes/admin/class-wpcode-upgrade-welcome.php:266
|
318 |
+
msgid "Store Snippets in Cloud"
|
319 |
msgstr ""
|
320 |
|
321 |
+
#: includes/admin/class-wpcode-upgrade-welcome.php:267
|
322 |
msgid "A lot of you requested the ability to save and re-use snippets on multiple websites."
|
323 |
msgstr ""
|
324 |
|
325 |
+
#. Translators: Placeholders add a link to the suggestions page.
|
326 |
+
#: includes/admin/class-wpcode-upgrade-welcome.php:272
|
327 |
+
msgid "This feature is now available in the %1$sPRO version of the plugin%2$s along with other powerful features."
|
328 |
msgstr ""
|
329 |
|
330 |
#. Translators: Placeholders add a link to the suggestions page.
|
331 |
+
#: includes/admin/class-wpcode-upgrade-welcome.php:285
|
332 |
msgid "If you have specific ideas or feature requests, please let us know by %1$sfilling out this form%2$s."
|
333 |
msgstr ""
|
334 |
|
335 |
+
#: includes/admin/class-wpcode-upgrade-welcome.php:296
|
336 |
msgid "WPCode Cloud Screen capture"
|
337 |
msgstr ""
|
338 |
|
339 |
+
#: includes/admin/class-wpcode-upgrade-welcome.php:306
|
340 |
msgid "Not ready for the new interface?"
|
341 |
msgstr ""
|
342 |
|
343 |
+
#: includes/admin/class-wpcode-upgrade-welcome.php:307
|
344 |
msgid "If you are not ready to switch to the new interface, or you simply want to use the plugin just for inserting headers and footers we've got you covered."
|
345 |
msgstr ""
|
346 |
|
347 |
#. Translators: Placeholders add a link to the settings page.
|
348 |
+
#: includes/admin/class-wpcode-upgrade-welcome.php:312
|
349 |
msgid "You can switch to the simple Headers & Footers interface at any time from the %1$ssettings page%2$s."
|
350 |
msgstr ""
|
351 |
|
352 |
+
#: includes/admin/class-wpcode-upgrade-welcome.php:321
|
353 |
msgid "And if you change your mind later and want to give the full plugin a shot, you can always switch back with just 2 clicks using the option at the top of the page."
|
354 |
msgstr ""
|
355 |
|
356 |
+
#: includes/admin/class-wpcode-upgrade-welcome.php:326
|
357 |
msgid "Add Your First Snippet"
|
358 |
msgstr ""
|
359 |
|
367 |
msgid "The snippet you are trying to import does not exist."
|
368 |
msgstr ""
|
369 |
|
370 |
+
#: includes/admin/pages/class-wpcode-admin-page-code-snippets.php:194
|
371 |
+
#: includes/admin/pages/class-wpcode-admin-page.php:884
|
372 |
msgid "Search Snippets"
|
373 |
msgstr ""
|
374 |
|
375 |
+
#: includes/admin/pages/class-wpcode-admin-page-code-snippets.php:212
|
376 |
+
#: includes/admin/pages/class-wpcode-admin-page.php:884
|
377 |
msgid "All Snippets"
|
378 |
msgstr ""
|
379 |
|
380 |
+
#: includes/admin/pages/class-wpcode-admin-page-code-snippets.php:214
|
381 |
#: includes/generator/class-wpcode-generator-post-type.php:231
|
382 |
msgid "Add New"
|
383 |
msgstr ""
|
384 |
|
385 |
#. Translators: %d - Trashed snippets count.
|
386 |
+
#: includes/admin/pages/class-wpcode-admin-page-code-snippets.php:231
|
387 |
msgid "%d snippet was successfully moved to Trash."
|
388 |
msgid_plural "%d snippets were successfully moved to Trash."
|
389 |
msgstr[0] ""
|
390 |
msgstr[1] ""
|
391 |
|
392 |
#. translators: %d - Restored from trash snippets count.
|
393 |
+
#: includes/admin/pages/class-wpcode-admin-page-code-snippets.php:239
|
394 |
msgid "%d snippet was successfully restored."
|
395 |
msgid_plural "%d snippet were successfully restored."
|
396 |
msgstr[0] ""
|
397 |
msgstr[1] ""
|
398 |
|
399 |
#. translators: %d - Deleted snippets count.
|
400 |
+
#: includes/admin/pages/class-wpcode-admin-page-code-snippets.php:247
|
401 |
msgid "%d snippet was successfully permanently deleted."
|
402 |
msgid_plural "%d snippets were successfully permanently deleted."
|
403 |
msgstr[0] ""
|
404 |
msgstr[1] ""
|
405 |
|
406 |
+
#. translators: %d - Activated snippets count.
|
407 |
+
#: includes/admin/pages/class-wpcode-admin-page-code-snippets.php:257
|
408 |
+
msgid "%d snippet was successfully activated."
|
409 |
+
msgid_plural "%d snippets were successfully activated."
|
410 |
+
msgstr[0] ""
|
411 |
+
msgstr[1] ""
|
412 |
+
|
413 |
+
#. translators: %d - Failed to activate snippets count.
|
414 |
+
#: includes/admin/pages/class-wpcode-admin-page-code-snippets.php:264
|
415 |
+
msgid "%d snippet was not activated due to an error."
|
416 |
+
msgid_plural "%d snippets were not activated due to errors."
|
417 |
+
msgstr[0] ""
|
418 |
+
msgstr[1] ""
|
419 |
+
|
420 |
+
#. translators: %d - Deactivated snippets count.
|
421 |
+
#: includes/admin/pages/class-wpcode-admin-page-code-snippets.php:273
|
422 |
+
msgid "%d snippet was successfully deactivated."
|
423 |
+
msgid_plural "%d snippets were successfully deactivated."
|
424 |
+
msgstr[0] ""
|
425 |
+
msgstr[1] ""
|
426 |
+
|
427 |
#: includes/admin/pages/class-wpcode-admin-page-generator.php:52
|
428 |
msgid "Generator"
|
429 |
msgstr ""
|
446 |
msgstr ""
|
447 |
|
448 |
#: includes/admin/pages/class-wpcode-admin-page-generator.php:171
|
449 |
+
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:302
|
450 |
+
#: includes/admin/pages/class-wpcode-admin-page.php:1058
|
451 |
msgid "Code Preview"
|
452 |
msgstr ""
|
453 |
|
454 |
#: includes/admin/pages/class-wpcode-admin-page-generator.php:172
|
455 |
+
#: includes/admin/pages/class-wpcode-admin-page.php:1063
|
456 |
msgid "Use Snippet"
|
457 |
msgstr ""
|
458 |
|
531 |
msgid "My Favorites"
|
532 |
msgstr ""
|
533 |
|
534 |
+
#: includes/admin/pages/class-wpcode-admin-page-library.php:173
|
535 |
msgid "We encountered an error while trying to load the snippet data. Please try again."
|
536 |
msgstr ""
|
537 |
|
538 |
+
#: includes/admin/pages/class-wpcode-admin-page-library.php:195
|
539 |
msgid "My Library is a PRO Feature"
|
540 |
msgstr ""
|
541 |
|
542 |
+
#: includes/admin/pages/class-wpcode-admin-page-library.php:196
|
543 |
msgid "Upgrade to WPCode PRO today and save your snippets in the WPCode Library directly from the plugin and import them with 1-click on other sites."
|
544 |
msgstr ""
|
545 |
|
546 |
+
#: includes/admin/pages/class-wpcode-admin-page-library.php:198
|
547 |
+
msgid "Upgrade to PRO and Unlock \"My Library\""
|
548 |
msgstr ""
|
549 |
|
550 |
+
#: includes/admin/pages/class-wpcode-admin-page-library.php:202
|
551 |
+
#: includes/admin/pages/class-wpcode-admin-page-library.php:232
|
552 |
+
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:1307
|
553 |
#: includes/lite/admin/class-wpcode-metabox-snippets-lite.php:149
|
554 |
#: includes/lite/admin/class-wpcode-metabox-snippets-lite.php:292
|
555 |
msgid "Learn more about all the features"
|
556 |
msgstr ""
|
557 |
|
|
|
|
|
|
|
|
|
|
|
558 |
#: includes/admin/pages/class-wpcode-admin-page-library.php:206
|
559 |
+
#: includes/admin/pages/class-wpcode-admin-page-library.php:238
|
560 |
+
msgid "Save your snippets to the WPCode Library"
|
561 |
msgstr ""
|
562 |
|
563 |
#: includes/admin/pages/class-wpcode-admin-page-library.php:207
|
564 |
+
#: includes/admin/pages/class-wpcode-admin-page-library.php:237
|
565 |
+
msgid "Import snippets from the WPCode Library"
|
566 |
msgstr ""
|
567 |
|
568 |
#: includes/admin/pages/class-wpcode-admin-page-library.php:208
|
569 |
#: includes/admin/pages/class-wpcode-admin-page-library.php:239
|
570 |
+
msgid "Set up new websites faster"
|
571 |
msgstr ""
|
572 |
|
573 |
#: includes/admin/pages/class-wpcode-admin-page-library.php:209
|
574 |
#: includes/admin/pages/class-wpcode-admin-page-library.php:240
|
575 |
+
msgid "Easily implement features on multiple sites"
|
576 |
msgstr ""
|
577 |
|
578 |
#: includes/admin/pages/class-wpcode-admin-page-library.php:210
|
579 |
+
#: includes/admin/pages/class-wpcode-admin-page-library.php:241
|
580 |
+
msgid "Edit snippets in the WPCode Library"
|
581 |
+
msgstr ""
|
582 |
+
|
583 |
+
#: includes/admin/pages/class-wpcode-admin-page-library.php:211
|
584 |
+
#: includes/admin/pages/class-wpcode-admin-page-library.php:236
|
585 |
msgid "Load favorite snippets in the plugin"
|
586 |
msgstr ""
|
587 |
|
588 |
+
#: includes/admin/pages/class-wpcode-admin-page-library.php:225
|
589 |
msgid "My Favorites is a PRO Feature"
|
590 |
msgstr ""
|
591 |
|
592 |
+
#: includes/admin/pages/class-wpcode-admin-page-library.php:226
|
593 |
msgid "Upgrade to WPCode PRO today and see the snippets you starred in the WPCode Library directly in the plugin."
|
594 |
msgstr ""
|
595 |
|
596 |
+
#: includes/admin/pages/class-wpcode-admin-page-library.php:228
|
597 |
+
msgid "Upgrade to PRO and Unlock \"My Favorites\""
|
598 |
msgstr ""
|
599 |
|
600 |
#: includes/admin/pages/class-wpcode-admin-page-settings.php:72
|
674 |
msgid "Edit snippet \"%s\""
|
675 |
msgstr ""
|
676 |
|
677 |
+
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:242
|
678 |
msgid "Add Your Custom Code (New Snippet)"
|
679 |
msgstr ""
|
680 |
|
681 |
+
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:243
|
682 |
msgid "Choose this blank snippet to start from scratch and paste any custom code or simply write your own."
|
683 |
msgstr ""
|
684 |
|
685 |
#. Translators: The placeholders add links to create a new custom snippet or the suggest-a-snippet form.
|
686 |
+
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:262
|
687 |
msgid "To speed up the process you can select from one of our pre-made library, or you can start with a %1$sblank snippet%2$s and %1$screate your own%2$s. Have a suggestion for new snippet? %3$sWe’d love to hear it!%4$s"
|
688 |
msgstr ""
|
689 |
|
690 |
+
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:285
|
691 |
msgid "Add title for snippet"
|
692 |
msgstr ""
|
693 |
|
694 |
+
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:336
|
695 |
msgid "Code Type"
|
696 |
msgstr ""
|
697 |
|
698 |
+
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:354
|
699 |
msgid "Insertion"
|
700 |
msgstr ""
|
701 |
|
702 |
+
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:361
|
703 |
msgid "Choose \"Auto Insert\" if you want the snippet to be automatically executed in one of the locations available. In \"Shortcode\" mode, the snippet will only be executed where the shortcode is inserted."
|
704 |
msgstr ""
|
705 |
|
706 |
+
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:364
|
707 |
msgid "Insert Method"
|
708 |
msgstr ""
|
709 |
|
710 |
+
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:367
|
711 |
+
#: includes/admin/pages/class-wpcode-code-snippets-table.php:468
|
712 |
msgid "Location"
|
713 |
msgstr ""
|
714 |
|
715 |
+
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:369
|
716 |
msgid "Insert Number"
|
717 |
msgstr ""
|
718 |
|
719 |
+
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:384
|
720 |
+
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:434
|
721 |
msgid "Shortcode"
|
722 |
msgstr ""
|
723 |
|
724 |
+
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:395
|
725 |
msgid "Your snippet can be either automatically executed or only used as a shortcode. When using the \"Auto Insert\" option you can choose the location where your snippet will be placed automatically."
|
726 |
msgstr ""
|
727 |
|
728 |
+
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:406
|
729 |
msgid "Number of paragraphs before which to insert the snippet."
|
730 |
msgstr ""
|
731 |
|
732 |
+
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:407
|
733 |
msgid "Number of paragraphs after which to insert the snippet."
|
734 |
msgstr ""
|
735 |
|
736 |
+
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:408
|
737 |
msgid "Number of posts before which to insert the snippet."
|
738 |
msgstr ""
|
739 |
|
740 |
+
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:409
|
741 |
msgid "Number of posts after which to insert the snippet."
|
742 |
msgstr ""
|
743 |
|
744 |
+
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:430
|
745 |
msgid "Auto Insert"
|
746 |
msgstr ""
|
747 |
|
748 |
+
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:498
|
749 |
msgid "Please save the snippet first"
|
750 |
msgstr ""
|
751 |
|
752 |
+
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:567
|
753 |
msgid "Tag"
|
754 |
msgstr ""
|
755 |
|
756 |
+
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:568
|
757 |
#: includes/generator/class-wpcode-generator-hooks.php:1360
|
758 |
msgid "Priority"
|
759 |
msgstr ""
|
760 |
|
761 |
+
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:569
|
762 |
msgid "Note"
|
763 |
msgstr ""
|
764 |
|
765 |
+
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:572
|
766 |
msgid "Basic info"
|
767 |
msgstr ""
|
768 |
|
769 |
+
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:574
|
770 |
msgid "Tags: Use tags to make it easier to group similar snippets together. <br />Priority: A lower priority will result in the snippet being executed before others with a higher priority. <br />Note: Add a private note related to this snippet."
|
771 |
msgstr ""
|
772 |
|
773 |
+
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:586
|
774 |
msgid "Using conditional logic you can limit the pages where you want the snippet to be auto-inserted."
|
775 |
msgstr ""
|
776 |
|
777 |
+
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:590
|
778 |
msgid "Enable Logic"
|
779 |
msgstr ""
|
780 |
|
781 |
+
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:591
|
782 |
msgid "Conditions"
|
783 |
msgstr ""
|
784 |
|
785 |
+
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:596
|
786 |
msgid "Smart Conditional Logic"
|
787 |
msgstr ""
|
788 |
|
789 |
+
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:598
|
790 |
msgid "Enable logic to add rules and limit where your snippets are inserted automatically. Use multiple groups for different sets of rules."
|
791 |
msgstr ""
|
792 |
|
793 |
+
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:686
|
794 |
#: includes/admin/pages/class-wpcode-admin-page-tools.php:358
|
795 |
+
#: includes/admin/pages/class-wpcode-code-snippets-table.php:768
|
796 |
msgid "Active"
|
797 |
msgstr ""
|
798 |
|
799 |
+
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:689
|
800 |
#: includes/admin/pages/class-wpcode-admin-page-tools.php:359
|
801 |
+
#: includes/admin/pages/class-wpcode-code-snippets-table.php:771
|
802 |
msgid "Inactive"
|
803 |
msgstr ""
|
804 |
|
805 |
+
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:855
|
806 |
msgid "+ Add new group"
|
807 |
msgstr ""
|
808 |
|
809 |
+
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:872
|
810 |
msgid "Show"
|
811 |
msgstr ""
|
812 |
|
813 |
+
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:873
|
814 |
msgid "Hide"
|
815 |
msgstr ""
|
816 |
|
817 |
+
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:888
|
818 |
msgid "This code snippet if"
|
819 |
msgstr ""
|
820 |
|
821 |
+
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:971
|
822 |
msgctxt "Conditional logic add another \"and\" rules row."
|
823 |
msgid "AND"
|
824 |
msgstr ""
|
825 |
|
826 |
+
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:1053
|
827 |
msgctxt "Conditional logic \"or\" another rule"
|
828 |
msgid "OR"
|
829 |
msgstr ""
|
830 |
|
831 |
+
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:1073
|
832 |
msgid "Save to Library is a Pro Feature"
|
833 |
msgstr ""
|
834 |
|
835 |
+
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:1074
|
836 |
msgid "Upgrade to PRO today and save your private snippets to the WPCode library for easy access. You can also share your snippets with other users or load them on other sites."
|
837 |
msgstr ""
|
838 |
|
839 |
+
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:1075
|
840 |
msgid "Upgrade to PRO"
|
841 |
msgstr ""
|
842 |
|
843 |
+
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:1076
|
844 |
msgid "Custom Shortcode is a Pro Feature"
|
845 |
msgstr ""
|
846 |
|
847 |
+
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:1077
|
848 |
msgid "Upgrade today to use a custom shortcode and nerver worry about changing snippet ids again, even when importing your snippets to another site. You'll also get access to a private library that makes setting up new sites a lot easier."
|
849 |
msgstr ""
|
850 |
|
851 |
+
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:1079
|
852 |
+
msgid "Device Type is a Pro Feature"
|
853 |
+
msgstr ""
|
854 |
+
|
855 |
+
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:1080
|
856 |
+
msgid "Upgrade to PRO today and unlock one-click device targeting for your snippets."
|
857 |
+
msgstr ""
|
858 |
+
|
859 |
+
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:1108
|
860 |
msgid "Custom Shortcode"
|
861 |
msgstr ""
|
862 |
|
863 |
+
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:1111
|
864 |
msgid "Shortcode name"
|
865 |
msgstr ""
|
866 |
|
867 |
+
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:1116
|
868 |
msgid "Use this field to define a custom shortcode name instead of the id-based one."
|
869 |
msgstr ""
|
870 |
|
871 |
+
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:1144
|
872 |
msgid "Code Revisions"
|
873 |
msgstr ""
|
874 |
|
875 |
+
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:1146
|
876 |
msgid "Easily switch back to a previous version of your snippet."
|
877 |
msgstr ""
|
878 |
|
879 |
+
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:1164
|
880 |
+
#: includes/lite/conditional-logic/class-wpcode-conditional-device.php:26
|
881 |
+
#: includes/lite/conditional-logic/class-wpcode-conditional-device.php:37
|
882 |
+
msgid "Device Type"
|
883 |
+
msgstr ""
|
884 |
+
|
885 |
+
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:1178
|
886 |
+
msgid "Any device type"
|
887 |
+
msgstr ""
|
888 |
+
|
889 |
+
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:1179
|
890 |
+
msgid "Desktop only"
|
891 |
+
msgstr ""
|
892 |
+
|
893 |
+
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:1180
|
894 |
+
msgid "Mobile only"
|
895 |
+
msgstr ""
|
896 |
+
|
897 |
+
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:1297
|
898 |
msgid "Code Revisions is a Pro Feature"
|
899 |
msgstr ""
|
900 |
|
901 |
+
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:1300
|
902 |
msgid "Upgrade to WPCode Pro today and start tracking revisions and see exactly who, when and which changes were made to your snippet."
|
903 |
msgstr ""
|
904 |
|
905 |
+
#: includes/admin/pages/class-wpcode-admin-page-snippet-manager.php:1303
|
906 |
msgid "Upgrade to Pro and Unlock Revisions"
|
907 |
msgstr ""
|
908 |
|
963 |
msgstr ""
|
964 |
|
965 |
#: includes/admin/pages/class-wpcode-admin-page-tools.php:201
|
966 |
+
#: includes/admin/pages/class-wpcode-code-snippets-table.php:473
|
967 |
#: includes/generator/class-wpcode-generator-post-status.php:111
|
968 |
msgid "Status"
|
969 |
msgstr ""
|
973 |
msgstr ""
|
974 |
|
975 |
#: includes/admin/pages/class-wpcode-admin-page-tools.php:211
|
976 |
+
#: includes/admin/pages/class-wpcode-code-snippets-table.php:470
|
977 |
msgid "Tags"
|
978 |
msgstr ""
|
979 |
|
1006 |
msgstr ""
|
1007 |
|
1008 |
#: includes/admin/pages/class-wpcode-admin-page-tools.php:271
|
1009 |
+
#: includes/admin/pages/class-wpcode-admin-page.php:966
|
1010 |
msgid "Available Snippets"
|
1011 |
msgstr ""
|
1012 |
|
1013 |
#: includes/admin/pages/class-wpcode-admin-page-tools.php:276
|
1014 |
+
#: includes/admin/pages/class-wpcode-code-snippets-table.php:339
|
1015 |
msgid "No snippets found."
|
1016 |
msgstr ""
|
1017 |
|
1034 |
msgstr ""
|
1035 |
|
1036 |
#: includes/admin/pages/class-wpcode-admin-page-tools.php:357
|
1037 |
+
#: includes/admin/pages/class-wpcode-code-snippets-table.php:765
|
1038 |
msgid "All"
|
1039 |
msgstr ""
|
1040 |
|
1085 |
msgstr ""
|
1086 |
|
1087 |
#: includes/admin/pages/class-wpcode-admin-page.php:233
|
1088 |
+
#: includes/admin/pages/class-wpcode-code-snippets-table.php:671
|
1089 |
msgid "Clear"
|
1090 |
msgstr ""
|
1091 |
|
1167 |
msgid "Connect to library to unlock (Free)"
|
1168 |
msgstr ""
|
1169 |
|
1170 |
+
#: includes/admin/pages/class-wpcode-admin-page.php:890
|
1171 |
msgid "We encountered a problem loading the Snippet Library items, please try again later."
|
1172 |
msgstr ""
|
1173 |
|
1174 |
+
#: includes/admin/pages/class-wpcode-admin-page.php:1054
|
1175 |
msgid "Preview Snippet"
|
1176 |
msgstr ""
|
1177 |
|
1178 |
+
#. translators: %d - snippets count.
|
1179 |
+
#: includes/admin/pages/class-wpcode-admin-page.php:1223
|
1180 |
+
msgid "Get Access to Our Library of %d FREE Snippets"
|
1181 |
+
msgstr ""
|
1182 |
+
|
1183 |
+
#: includes/admin/pages/class-wpcode-admin-page.php:1228
|
1184 |
+
msgid "Connect your website with WPCode Library and get instant access to FREE code snippets written by our experts. Snippets can be installed with just 1-click from inside the plugin and come automatically-configured to save you time."
|
1185 |
+
msgstr ""
|
1186 |
+
|
1187 |
+
#: includes/admin/pages/class-wpcode-admin-page.php:1232
|
1188 |
+
msgid "Connect to Library"
|
1189 |
+
msgstr ""
|
1190 |
+
|
1191 |
#. Translators: This is the format for displaying the date in the admin list, [date] at [time].
|
1192 |
#: includes/admin/pages/class-wpcode-code-snippets-table.php:106
|
1193 |
msgid "%1$s at %2$s"
|
1227 |
|
1228 |
#: includes/admin/pages/class-wpcode-code-snippets-table.php:304
|
1229 |
#: includes/admin/pages/class-wpcode-code-snippets-table.php:326
|
1230 |
+
#: includes/admin/pages/class-wpcode-code-snippets-table.php:774
|
1231 |
msgid "Trash"
|
1232 |
msgstr ""
|
1233 |
|
1234 |
+
#: includes/admin/pages/class-wpcode-code-snippets-table.php:327
|
1235 |
+
msgid "Activate"
|
1236 |
+
msgstr ""
|
1237 |
+
|
1238 |
+
#: includes/admin/pages/class-wpcode-code-snippets-table.php:328
|
1239 |
+
msgid "Deactivate"
|
1240 |
+
msgstr ""
|
1241 |
+
|
1242 |
+
#: includes/admin/pages/class-wpcode-code-snippets-table.php:466
|
1243 |
#: includes/generator/class-wpcode-generator-post-status.php:128
|
1244 |
#: includes/generator/class-wpcode-generator-post-type.php:136
|
1245 |
#: includes/generator/class-wpcode-generator-sidebar.php:130
|
1246 |
msgid "Name"
|
1247 |
msgstr ""
|
1248 |
|
1249 |
+
#: includes/admin/pages/class-wpcode-code-snippets-table.php:467
|
1250 |
#: includes/generator/class-wpcode-generator-post-type.php:378
|
1251 |
#: includes/generator/class-wpcode-generator-query.php:225
|
1252 |
#: includes/generator/class-wpcode-generator-query.php:299
|
1253 |
msgid "Author"
|
1254 |
msgstr ""
|
1255 |
|
1256 |
+
#: includes/admin/pages/class-wpcode-code-snippets-table.php:469
|
1257 |
msgid "Created"
|
1258 |
msgstr ""
|
1259 |
|
1260 |
+
#: includes/admin/pages/class-wpcode-code-snippets-table.php:651
|
1261 |
msgid "0 items"
|
1262 |
msgstr ""
|
1263 |
|
1264 |
+
#: includes/admin/pages/class-wpcode-code-snippets-table.php:667
|
1265 |
#: includes/generator/class-wpcode-generator-hooks.php:1337
|
1266 |
msgid "Filter"
|
1267 |
msgstr ""
|
1268 |
|
1269 |
+
#: includes/admin/pages/class-wpcode-code-snippets-table.php:701
|
1270 |
msgid "Filter by code type"
|
1271 |
msgstr ""
|
1272 |
|
1273 |
+
#: includes/admin/pages/class-wpcode-code-snippets-table.php:703
|
1274 |
msgid "All types"
|
1275 |
msgstr ""
|
1276 |
|
1277 |
+
#: includes/admin/pages/class-wpcode-code-snippets-table.php:743
|
1278 |
msgid "Filter by location"
|
1279 |
msgstr ""
|
1280 |
|
1281 |
+
#: includes/admin/pages/class-wpcode-code-snippets-table.php:745
|
1282 |
msgid "All locations"
|
1283 |
msgstr ""
|
1284 |
|
1448 |
msgid "Error message:"
|
1449 |
msgstr ""
|
1450 |
|
1451 |
+
#: includes/class-wpcode-snippet.php:417
|
1452 |
msgid "You are not allowed to change snippet status, please contact your webmaster."
|
1453 |
msgstr ""
|
1454 |
|
1455 |
+
#: includes/class-wpcode-snippet.php:604
|
1456 |
msgid "Untitled Snippet"
|
1457 |
msgstr ""
|
1458 |
|
2162 |
msgid "Exclude from search results"
|
2163 |
msgstr ""
|
2164 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2165 |
#: includes/generator/class-wpcode-generator-post-status.php:171
|
2166 |
#: includes/generator/class-wpcode-generator-post-status.php:196
|
2167 |
msgid "No - Default"
|
3815 |
msgid "Add field"
|
3816 |
msgstr ""
|
3817 |
|
3818 |
+
#: includes/helpers.php:156
|
3819 |
msgctxt "Copy to clipboard"
|
3820 |
msgid "Copy"
|
3821 |
msgstr ""
|
3822 |
|
3823 |
+
#: includes/helpers.php:170
|
3824 |
msgid "Is"
|
3825 |
msgstr ""
|
3826 |
|
3827 |
+
#: includes/helpers.php:171
|
3828 |
msgid "Is not"
|
3829 |
msgstr ""
|
3830 |
|
3831 |
+
#: includes/helpers.php:172
|
3832 |
msgid "Contains"
|
3833 |
msgstr ""
|
3834 |
|
3835 |
+
#: includes/helpers.php:173
|
3836 |
msgid "Doesn't Contain"
|
3837 |
msgstr ""
|
3838 |
|
3839 |
+
#: includes/lite/admin/class-wpcode-admin-page-loader-lite.php:35
|
3840 |
+
#: includes/lite/admin/class-wpcode-admin-page-loader-lite.php:36
|
3841 |
+
msgid "Upgrade to Pro"
|
3842 |
+
msgstr ""
|
3843 |
+
|
3844 |
#: includes/lite/admin/class-wpcode-metabox-snippets-lite.php:139
|
3845 |
#: includes/lite/admin/class-wpcode-metabox-snippets-lite.php:282
|
3846 |
msgid "Page Scripts is a Pro Feature"
|
3875 |
msgid "Show Smart Tags"
|
3876 |
msgstr ""
|
3877 |
|
3878 |
+
#. Translators: more here is used in the sense of "get access to more snippets" and gets replaced with the number of snippets if the library items are loaded correctly.
|
3879 |
+
#: includes/lite/admin/notices.php:33
|
3880 |
+
msgid "more"
|
3881 |
+
msgstr ""
|
3882 |
+
|
3883 |
+
#. Translators: %1$s and %2$s add a link to the settings page. %3$s and %4$s make the text bold. %6$s is replaced with the number of snippets and %5$s adds a "new" icon.
|
3884 |
+
#: includes/lite/admin/notices.php:38
|
3885 |
+
msgid "%5$s%1$sConnect to the WPCode Library%2$s to get access to %3$s%6$s FREE snippets%4$s!"
|
3886 |
+
msgstr ""
|
3887 |
+
|
3888 |
+
#. Translators: %1$s and %2$s add a link to the upgrade page. %3$s and %4$s make the text bold.
|
3889 |
+
#: includes/lite/admin/notices.php:84
|
3890 |
+
msgid "%3$sYou're using WPCode Lite%4$s. To unlock more features consider %1$supgrading to Pro%2$s."
|
3891 |
+
msgstr ""
|
3892 |
+
|
3893 |
+
#: includes/lite/admin/notices.php:112
|
3894 |
+
msgid "Get WPCode Pro and Unlock all the Powerful Features"
|
3895 |
+
msgstr ""
|
3896 |
+
|
3897 |
+
#: includes/lite/admin/notices.php:115
|
3898 |
+
msgid "Save & Reuse snippets in your private Cloud Library"
|
3899 |
+
msgstr ""
|
3900 |
+
|
3901 |
+
#: includes/lite/admin/notices.php:116
|
3902 |
+
msgid "Add page-specific scripts when editing a post/page."
|
3903 |
+
msgstr ""
|
3904 |
+
|
3905 |
+
#: includes/lite/admin/notices.php:117
|
3906 |
+
msgid "Track all snippet changes with Advanced Code Revisions"
|
3907 |
+
msgstr ""
|
3908 |
+
|
3909 |
+
#: includes/lite/admin/notices.php:120
|
3910 |
+
msgid "Load snippets by device (mobile/desktop) with 1-click."
|
3911 |
+
msgstr ""
|
3912 |
+
|
3913 |
+
#: includes/lite/admin/notices.php:121
|
3914 |
+
msgid "Easily insert and reuse content with Custom Shortcodes."
|
3915 |
+
msgstr ""
|
3916 |
+
|
3917 |
+
#: includes/lite/admin/notices.php:122
|
3918 |
+
msgid "Precisely track eCommerce conversions for WooCommerce and EDD."
|
3919 |
+
msgstr ""
|
3920 |
+
|
3921 |
+
#: includes/lite/admin/notices.php:128
|
3922 |
+
msgid "Get WPCode Pro Today and Unlock all the Powerful Features »"
|
3923 |
+
msgstr ""
|
3924 |
+
|
3925 |
+
#. Translators: Placeholders make the text bold.
|
3926 |
+
#: includes/lite/admin/notices.php:133
|
3927 |
+
msgid "%1$sBonus:%2$s WPCode Lite users get %3$s$50 off regular price%4$s, automatically applied at checkout"
|
3928 |
msgstr ""
|
3929 |
|
3930 |
#: includes/lite/auto-insert/class-wpcode-auto-insert-edd.php:33
|
4020 |
msgid "WooCommerce Locations are a PRO feature"
|
4021 |
msgstr ""
|
4022 |
|
4023 |
+
#: includes/lite/conditional-logic/class-wpcode-conditional-device.php:40
|
4024 |
+
msgid "Device Type Rules are a Pro Feature"
|
4025 |
+
msgstr ""
|
4026 |
+
|
4027 |
+
#: includes/lite/conditional-logic/class-wpcode-conditional-device.php:41
|
4028 |
+
msgid "Get access to advanced device type conditional logic rules by upgrading to PRO today."
|
4029 |
+
msgstr ""
|
4030 |
+
|
4031 |
+
#: includes/lite/conditional-logic/class-wpcode-conditional-device.php:46
|
4032 |
+
msgid "Desktop"
|
4033 |
+
msgstr ""
|
4034 |
+
|
4035 |
+
#: includes/lite/conditional-logic/class-wpcode-conditional-device.php:51
|
4036 |
+
msgid "Mobile"
|
4037 |
+
msgstr ""
|
4038 |
+
|
4039 |
#: includes/lite/conditional-logic/class-wpcode-conditional-edd.php:37
|
4040 |
msgid "EDD Page"
|
4041 |
msgstr ""
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: code, css, php, footer, functions, content, facebook pixel, footer code, f
|
|
4 |
Requires at least: 4.6
|
5 |
Tested up to: 6.1
|
6 |
Requires PHP: 5.5
|
7 |
-
Stable tag: 2.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -308,6 +308,11 @@ Syed Balkhi
|
|
308 |
|
309 |
== Changelog ==
|
310 |
|
|
|
|
|
|
|
|
|
|
|
311 |
= 2.0.4.4 =
|
312 |
* Fix: Added an extra check to prevent errors in setups where the closed metaboxes user option is not an array.
|
313 |
|
4 |
Requires at least: 4.6
|
5 |
Tested up to: 6.1
|
6 |
Requires PHP: 5.5
|
7 |
+
Stable tag: 2.0.5
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
308 |
|
309 |
== Changelog ==
|
310 |
|
311 |
+
= 2.0.5 =
|
312 |
+
* New: 2 new bulk actions are available in the admin to allow enabling or disabling multiple snippets at once.
|
313 |
+
* New: We added a new search field for snippets in the admin list which allows you to search using all snippet fields.
|
314 |
+
* New: When adding a JavaScript snippet, WPCode will attempt to remove HTML script tags, if present.
|
315 |
+
|
316 |
= 2.0.4.4 =
|
317 |
* Fix: Added an extra check to prevent errors in setups where the closed metaboxes user option is not an array.
|
318 |
|