Slider by Soliloquy <= 2.8.1 - Authenticated (Subscriber+) Information Disclosure via REST API Endpoint
Description
The Slider by Soliloquy – Responsive Image Slider for WordPress plugin for WordPress is vulnerable to Sensitive Information Exposure in all versions up to, and including, 2.8.1 via the map_meta_cap. This makes it possible for authenticated attackers, with subscriber-level access and above, to extract draft slider metadata including unpublished media URLs, captions, and slider configuration authored by administrators or editors.
CVSS Vector Breakdown
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:NTechnical Details
What Changed in the Fix
Changes introduced in v2.8.2
Source Code
WordPress.org SVNThis research plan targets **CVE-2026-7636**, an Information Disclosure vulnerability in the **Slider by Soliloquy** plugin. The vulnerability stems from a flaw in the `map_meta_cap` implementation, allowing low-privileged users (Subscribers) to bypass standard post-access controls and retrieve sens…
Show full research plan
This research plan targets CVE-2026-7636, an Information Disclosure vulnerability in the Slider by Soliloquy plugin. The vulnerability stems from a flaw in the map_meta_cap implementation, allowing low-privileged users (Subscribers) to bypass standard post-access controls and retrieve sensitive metadata for draft/private sliders via the WordPress REST API.
1. Vulnerability Summary
- ID: CVE-2026-7636
- Type: Information Disclosure
- Root Cause: Improper capability mapping in the
map_meta_capfilter/logic for thesoliloquycustom post type. - Impact: Authenticated attackers with Subscriber-level access can view draft slider configurations, including unpublished image URLs, captions, and internal slider settings authored by higher-privileged users.
2. Attack Vector Analysis
- Endpoint: WordPress REST API post-type endpoint for Soliloquy.
- Primary Target:
/wp-json/wp/v2/soliloquy - Alternative Target (if custom namespace used):
/wp-json/soliloquy/v1/sliders(inferred).
- Primary Target:
- Method:
GET - Authentication: Authenticated (Subscriber+).
- Payload: Query parameters to request non-published statuses (e.g.,
?status=draftor?status=private). - Preconditions: A slider must exist in a
draftorprivatestate, created by an Administrator or Editor.
3. Code Flow (Inferred)
- Request Entry: An authenticated Subscriber sends a
GETrequest to/wp-json/wp/v2/soliloquy?status=draft. - REST Controller: WordPress core's
WP_REST_Posts_Controllerhandles the request for thesoliloquypost type. - Permission Check: The controller calls
get_items_permissions_check(). This checks if the user canedit_posts(to see drafts). - Capability Mapping: The check triggers
current_user_can( 'edit_post', $post_id ), which invokes themap_meta_capfilter. - The Flaw: The Soliloquy plugin's
map_meta_capimplementation (likely located inincludes/admin/metaboxes.phpor similar core files not provided) incorrectly maps the required capability for thesoliloquypost type to something a Subscriber possesses (e.g.,read) instead of strictly requiringedit_posts. - Information Leak: The REST API returns the full post object, including metadata fields containing slider content.
4. Nonce Acquisition Strategy
The WordPress REST API requires a _wpnonce parameter (for the wp_rest action) when using cookie-based authentication.
- Log in as the Subscriber user.
- Navigate to a page where the REST API settings are exposed. Standard WordPress installs expose this in the
wp-admindashboard or via scripts. - Use
browser_evalto extract the REST nonce from the standardwpApiSettingsobject:browser_eval("window.wpApiSettings?.nonce")
- Alternative: If the plugin enqueues its own scripts (as seen in
assets/js/addons.js), check if it localizes a nonce:browser_eval("window.soliloquy_addons?.activate_nonce")(Though this is for AJAX, the REST nonce is usually found in thewp-jsonlink headers orwpApiSettings).
5. Exploitation Strategy
Step 1: Discover Existing Sliders
Identify the IDs of draft or private sliders.
- Request:
GET /wp-json/wp/v2/soliloquy?status=draft&_wpnonce=[NONCE] Host: [TARGET_HOST] Cookie: [SUBSCRIBER_COOKIES] - Alternative: Brute force IDs if the list endpoint is restricted:
/wp-json/wp/v2/soliloquy/[ID]?_wpnonce=[NONCE].
Step 2: Extract Metadata
Once a slider ID is found, request the full details.
- Request:
GET /wp-json/wp/v2/soliloquy/[ID]?_wpnonce=[NONCE]&context=edit Host: [TARGET_HOST] Cookie: [SUBSCRIBER_COOKIES] - Note: The
context=editparameter often forces the REST API to return more detailed metadata (likecontent.raw) if the permission check is bypassed.
6. Test Data Setup
- As Admin:
- Install and activate
soliloquy-liteversion 2.8.1. - Create a new slider titled "Secret Draft Slider".
- Upload an image that is not attached to any public post.
- Add a sensitive caption:
Internal Project: Confidential. - Save the slider as a Draft or set visibility to Private.
- Install and activate
- As Subscriber:
- Create a user with the
subscriberrole.
- Create a user with the
7. Expected Results
- Successful Exploitation: The REST API returns a
200 OKresponse containing a JSON object. - Data Found:
title.rendered: "Secret Draft Slider"content.renderedormeta: URLs to unpublished images and theConfidentialcaption.
- Unsuccessful (Patched): The REST API returns a
403 Forbiddenor401 Unauthorizedresponse with an error message likerest_forbidden_context.
8. Verification Steps
After the HTTP request, verify the leaked data against the database:
- Verify Slider Content:
wp post list --post_type=soliloquy --post_status=draft --format=json - Check Meta:
Confirm that thewp post meta list [ID]_soliloquy_datameta key (standard for this plugin) matches the JSON returned in the REST response.
9. Alternative Approaches
- Direct Post Meta Access: If the post type endpoint is restricted, check if the
wp/v2/types/soliloquyendpoint reveals which meta fields are "show_in_rest". - Search Endpoint: Try the search endpoint to find content within draft sliders:
GET /wp-json/wp/v2/search?subtype=soliloquy&_wpnonce=[NONCE]
- Gutenberg Blocks: If the site uses Gutenberg, check the
/wp-json/wp/v2/block-renderer/soliloquy/sliderendpoint, which might disclose configurations when rendering a preview for a specific ID.
Summary
The Slider by Soliloquy plugin for WordPress is vulnerable to sensitive information exposure via its REST API endpoint. Due to improper capability mapping in the plugin's custom post type logic, authenticated attackers with subscriber-level permissions can bypass access controls to retrieve metadata, unpublished media URLs, and internal configurations of draft or private sliders.
Security Fix
@@ -1,321 +1,4 @@ -@font-face { - font-family: "soliloquy"; - src: url("../fonts/soliloquy.eot"); - src: - url("../fonts/soliloquy.eot?#iefix") format("embedded-opentype"), - url("../fonts/soliloquy.woff") format("woff"), - url("../fonts/soliloquy.ttf") format("truetype"), - url("../fonts/soliloquy.svg#soliloquy") format("svg"); - font-weight: normal; - font-style: normal; -} -[class*="soliloquy-icon-"]:before { - display: inline-block; - font-family: "soliloquy"; - font-style: normal; - font-weight: normal; - font-size: 13px; - line-height: 1.5; - margin-right: 8px; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} -.soliloquy-icon-configuration:before { - content: "A"; -} -.soliloquy-icon-soliloquy:before { - content: "B"; -} -.soliloquy-icon-pinterest:before { - content: "C"; -} -.soliloquy-icon-lightbox:before { - content: "D"; -} -.soliloquy-icon-misc:before { - content: "E"; -} -.soliloquy-icon-mobile:before { - content: "F"; -} -.soliloquy-icon-pagination:before { - content: "G"; -} -.soliloquy-icon-proofing:before { - content: "H"; -} -.soliloquy-icon-slideshow:before { - content: "I"; -} -.soliloquy-icon-tags:before { - content: "J"; -} -.soliloquy-icon-thumbnails:before { - content: "K"; -} -.soliloquy-icon-video:before { - content: "L"; -} -.soliloquy-icon-watermark:before { - content: "M"; -} -.soliloquy-icon-cloud-download:before { - content: "N"; -} -.soliloquy-icon-toggle-on:before { - content: "O"; -} -.soliloquy-icon-plus-circle:before { - content: "P"; -} -.soliloquy-icon-list:before { - content: "R"; -} -.soliloquy-icon-grid:before { - content: "S"; -} -.soliloquy-icon-pencil:before { - content: "U"; -} -.soliloquy-icon-close:before { - content: "V"; -} -.soliloquy-icon-check:before { - content: "W"; -} -.soliloquy-icon-schedule:before { - content: "X"; -} -.soliloquy-icon-carousel:before { - content: "Y"; -} -#soliloquy-header-temp { - position: relative; -} -#soliloquy-top-notification { - position: relative; - background-color: #162937; - text-align: center; - color: #fff; - height: 40px; - margin-left: -20px; - vertical-align: middle; -} -#soliloquy-top-notification p { - margin: 0; - padding: 0; - line-height: 40px; - font-size: 16px; -} -#soliloquy-top-notification a { - color: #fff; -} -#soliloquy-top-notification .soliloquy-dismiss { - position: absolute; - top: 10px; - right: 10px; -} -#soliloquy-settings-content input:not([type="checkbox"]) { - background-color: #fff; - border: 1px solid #ddd; - -webkit-box-shadow: none; - box-shadow: none; - color: #32373c; - height: 35px; - outline: none; - -webkit-transition: 0.05s border-color ease-in-out; - transition: 0.05s border-color ease-in-out; -} -#soliloquy-settings-content input[type="checkbox"]:checked { - -color: #e02626; -} -#soliloquy-settings-content textarea { - width: 100%; -} -#soliloquy-settings-content input[type="password"].soliloquy-input { - background-color: #fff; - border: 1px solid #ddd; - -webkit-box-shadow: none; - box-shadow: none; - color: #32373c; - outline: none; - -webkit-transition: 0.05s border-color ease-in-out; - transition: 0.05s border-color ease-in-out; -} -input[type="password"].soliloquy-input { - background-color: #fff; - border: 1px solid #ddd; - -webkit-box-shadow: none; - box-shadow: none; - height: 35px; - color: #32373c; - outline: none; - -webkit-transition: 0.05s border-color ease-in-out; - transition: 0.05s border-color ease-in-out; -} -pre.soliloquy-code { - background-color: #ddd; - border-radius: 3px; - padding: 15px; -} -.soliloquy-clipboard { - display: block; - text-decoration: underline !important; - padding-top: 8px; - font-size: 11px; - outline: 0 !important; -} -.soliloquy-clipboard:focus { - outline-style: none; - box-shadow: none; - border-color: rgba(0, 0, 0, 0); -} -.soliloquy-code { - display: block; - background-color: #f7f7f7; - border-radius: 3px; - padding: 10px !important; -} -.soliloquy-list-inline { - margin: 0; - list-style: none; -} -.soliloquy-list-inline li { - display: inline-block; - margin-right: 5px; -} -.soliloquy-list-inline li:last-child { - margin-right: 0 !important; -} -.soliloquy-yt iframe { - max-width: 100%; - height: auto; -} -.soliloquy-hidden { - display: none !important; -} -.soliloquy-hideme { - visibility: hidden; -} -.soliloquy-no-border { - border: none !important; -} -.soliloquy-right { - float: right; -} -.soliloquy-left { - float: left; -} -.soliloquy-clearfix { - clear: both; - display: block; - height: 0; - overflow: hidden; - visibility: hidden; - width: 0; -} -.no-margin { - margin: 0 !important; -} -.no-margin-top { - margin-top: 0 !important; -} -.no-margin-bottom { - margin-bottom: 0 !important; -} -[data-soliloquy-tooltip] { - position: relative; - z-index: 2; - cursor: pointer; -} -[data-soliloquy-tooltip]:before, -[data-soliloquy-tooltip]:after { - visibility: hidden; - opacity: 0; - pointer-events: none; -} -[data-soliloquy-tooltip]:before { - position: absolute; - bottom: 120%; - left: 50%; - margin-bottom: 5px; - margin-left: -35px; - padding: 7px; - width: 60px; - -webkit-border-radius: 3px; - -moz-border-radius: 3px; - border-radius: 3px; - background-color: #000; - color: #fff; - content: attr(data-soliloquy-tooltip); - text-align: center; - font-size: 12px; - line-height: 1.2; -} -[data-soliloquy-tooltip]:after { - position: absolute; - bottom: 120%; - left: 50%; - width: 0; - margin-left: -5px; - border-top: 5px solid #000; - border-right: 5px solid rgba(0, 0, 0, 0); - border-left: 5px solid rgba(0, 0, 0, 0); - content: " "; - font-size: 0; - line-height: 0; -} -[data-soliloquy-tooltip]:hover:before, -[data-soliloquy-tooltip]:hover:after { - visibility: visible; - opacity: 1; -} -[class*="soliloquy-grid-"] { - float: left; - margin-left: 2%; -} -[class*="soliloquy-grid-"] input[type="text"] { - width: 100% !important; -} -.soliloquy-grid-1 { - width: 6.5%; -} -.soliloquy-grid-2 { - width: 15%; -} -.soliloquy-grid-3 { - width: 23.5%; -} -.soliloquy-grid-4 { - width: 32%; -} -.soliloquy-grid-5 { - width: 40.5%; -} -.soliloquy-grid-6 { - width: 49%; -} -.soliloquy-grid-7 { - width: 57.5%; -} -.soliloquy-grid-8 { - width: 66%; -} -.soliloquy-grid-9 { - width: 74.5%; -} -.soliloquy-grid-10 { - width: 83%; -} -.soliloquy-grid-11 { - width: 91.5%; -} -.soliloquy-grid-12 { - width: 100%; -} -.soliloquy-first { - margin-left: 0px; -} /*! +@font-face{font-family:"soliloquy";src:url("../fonts/soliloquy.eot");src:url("../fonts/soliloquy.eot?#iefix") format("embedded-opentype"),url("../fonts/soliloquy.woff") format("woff"),url("../fonts/soliloquy.ttf") format("truetype"),url("../fonts/soliloquy.svg#soliloquy") format("svg");font-weight:normal;font-style:normal}[class*=soliloquy-icon-]:before{display:inline-block;font-family:"soliloquy";font-style:normal;font-weight:normal;font-size:13px;line-height:1.5;margin-right:8px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.soliloquy-icon-configuration:before{content:"A"}.soliloquy-icon-soliloquy:before{content:"B"}.soliloquy-icon-pinterest:before{content:"C"}.soliloquy-icon-lightbox:before{content:"D"}.soliloquy-icon-misc:before{content:"E"}.soliloquy-icon-mobile:before{content:"F"}.soliloquy-icon-pagination:before{content:"G"}.soliloquy-icon-proofing:before{content:"H"}.soliloquy-icon-slideshow:before{content:"I"}.soliloquy-icon-tags:before{content:"J"}.soliloquy-icon-thumbnails:before{content:"K"}.soliloquy-icon-video:before{content:"L"}.soliloquy-icon-watermark:before{content:"M"}.soliloquy-icon-cloud-download:before{content:"N"}.soliloquy-icon-toggle-on:before{content:"O"}.soliloquy-icon-plus-circle:before{content:"P"}.soliloquy-icon-list:before{content:"R"}.soliloquy-icon-grid:before{content:"S"}.soliloquy-icon-pencil:before{content:"U"}.soliloquy-icon-close:before{content:"V"}.soliloquy-icon-check:before{content:"W"}.soliloquy-icon-schedule:before{content:"X"}.soliloquy-icon-carousel:before{content:"Y"}#soliloquy-header-temp{position:relative}#soliloquy-top-notification{position:relative;background-color:#162937;text-align:center;color:#fff;height:40px;margin-left:-20px;vertical-align:middle}#soliloquy-top-notification p{margin:0;padding:0;line-height:40px;font-size:16px}#soliloquy-top-notification a{color:#fff}#soliloquy-top-notification .soliloquy-dismiss{position:absolute;top:10px;right:10px}#soliloquy-settings-content input:not([type=checkbox]){background-color:#fff;border:1px solid #ddd;-webkit-box-shadow:none;box-shadow:none;color:#32373c;height:35px;outline:none;-webkit-transition:.05s border-color ease-in-out;transition:.05s border-color ease-in-out}#soliloquy-settings-content input[type=checkbox]:checked{-color:#e02626}#soliloquy-settings-content textarea{width:100%}#soliloquy-settings-content input[type=password].soliloquy-input{background-color:#fff;border:1px solid #ddd;-webkit-box-shadow:none;box-shadow:none;color:#32373c;outline:none;-webkit-transition:.05s border-color ease-in-out;transition:.05s border-color ease-in-out}input[type=password].soliloquy-input{background-color:#fff;border:1px solid #ddd;-webkit-box-shadow:none;box-shadow:none;height:35px;color:#32373c;outline:none;-webkit-transition:.05s border-color ease-in-out;transition:.05s border-color ease-in-out}pre.soliloquy-code{background-color:#ddd;border-radius:3px;padding:15px}.soliloquy-clipboard{display:block;text-decoration:underline !important;padding-top:8px;font-size:11px;outline:0 !important}.soliloquy-clipboard:focus{outline-style:none;box-shadow:none;border-color:rgba(0,0,0,0)}.soliloquy-code{display:block;background-color:#f7f7f7;border-radius:3px;padding:10px !important}.soliloquy-list-inline{margin:0;list-style:none}.soliloquy-list-inline li{display:inline-block;margin-right:5px}.soliloquy-list-inline li:last-child{margin-right:0 !important}.soliloquy-yt iframe{max-width:100%;height:auto}.soliloquy-hidden{display:none !important}.soliloquy-hideme{visibility:hidden}.soliloquy-no-border{border:none !important}.soliloquy-right{float:right}.soliloquy-left{float:left}.soliloquy-clearfix{clear:both;display:block;height:0;overflow:hidden;visibility:hidden;width:0}.no-margin{margin:0 !important}.no-margin-top{margin-top:0 !important}.no-margin-bottom{margin-bottom:0 !important}[data-soliloquy-tooltip]{position:relative;z-index:2;cursor:pointer}[data-soliloquy-tooltip]:before,[data-soliloquy-tooltip]:after{visibility:hidden;opacity:0;pointer-events:none}[data-soliloquy-tooltip]:before{position:absolute;bottom:120%;left:50%;margin-bottom:5px;margin-left:-35px;padding:7px;width:60px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;background-color:#000;color:#fff;content:attr(data-soliloquy-tooltip);text-align:center;font-size:12px;line-height:1.2}[data-soliloquy-tooltip]:after{position:absolute;bottom:120%;left:50%;width:0;margin-left:-5px;border-top:5px solid #000;border-right:5px solid rgba(0,0,0,0);border-left:5px solid rgba(0,0,0,0);content:" ";font-size:0;line-height:0}[data-soliloquy-tooltip]:hover:before,[data-soliloquy-tooltip]:hover:after{visibility:visible;opacity:1}[class*=soliloquy-grid-]{float:left;margin-left:2%}[class*=soliloquy-grid-] input[type=text]{width:100% !important}.soliloquy-grid-1{width:6.5%}.soliloquy-grid-2{width:15%}.soliloquy-grid-3{width:23.5%}.soliloquy-grid-4{width:32%}.soliloquy-grid-5{width:40.5%}.soliloquy-grid-6{width:49%}.soliloquy-grid-7{width:57.5%}.soliloquy-grid-8{width:66%}.soliloquy-grid-9{width:74.5%}.soliloquy-grid-10{width:83%}.soliloquy-grid-11{width:91.5%}.soliloquy-grid-12{width:100%}.soliloquy-first{margin-left:0px}/*! Chosen, a Select Box Enhancer for jQuery and Prototype by Patrick Filler for Harvest, http://getharvest.com @@ -325,633 +8,4 @@ MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md This file is generated by `grunt build`, do not edit it by hand. -*/ -.soliloquy-select * { - box-shadow: none !important; - background-image: none !important; -} -.soliloquy-select *:after { - background-image: none !important; -} -.soliloquy-select .soliloquy-chosen { - height: 35px; - max-width: 350px; - width: 100%; -} -.soliloquy-select .chosen-container { - position: relative; - display: inline-block; - vertical-align: middle; - font-size: 13px; - -webkit-user-select: none; - -moz-user-select: none; - user-select: none; - max-width: 350px; - font-weight: 600; -} -.soliloquy-select .chosen-container * { - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; -} -.soliloquy-select .chosen-container .chosen-drop { - position: absolute; - top: 100%; - left: -9999px; - z-index: 1010; - width: 100%; - border: 1px solid #ddd; - border-top: 0; - background: #fff; -} -.soliloquy-select .chosen-container.chosen-with-drop .chosen-drop { - left: 0; -} -.soliloquy-select .chosen-container a { - cursor: pointer; -} -.soliloquy-select .chosen-container .search-choice .group-name, -.soliloquy-select .chosen-container .chosen-single .group-name { - margin-right: 4px; - overflow: hidden; - white-space: nowrap; - text-overflow: ellipsis; - font-weight: normal; - color: #999; -} -.soliloquy-select .chosen-container .search-choice .group-name:after, -.soliloquy-select .chosen-container .chosen-single .group-name:after { - content: ":"; - padding-left: 2px; - vertical-align: top; -} -.soliloquy-select .chosen-container-single .chosen-single { - position: relative; - display: block; - overflow: hidden; - padding: 0 0 0 8px; - height: 35px; - border: 1px solid #ddd; - border-radius: 3px; - background: #fff; - background-clip: padding-box; - color: #444; - text-decoration: none; - white-space: nowrap; - line-height: 35px; -} -.soliloquy-select .chosen-container-single .chosen-default { - color: #999; -} -.soliloquy-select .chosen-container-single .chosen-single span { - display: block; - overflow: hidden; - margin-right: 26px; - text-overflow: ellipsis; - white-space: nowrap; -} -.soliloquy-select .chosen-container-single .chosen-single-with-deselect span { - margin-right: 38px; -} -.soliloquy-select .chosen-container-single .chosen-single abbr { - position: absolute; - top: 6px; - right: 26px; - display: block; - width: 12px; - height: 12px; - font-size: 1px; -} -.soliloquy-select .chosen-container-single .chosen-single abbr:hover { - background-position: -42px -10px; -} -.soliloquy-select .chosen-container-single.chosen-disabled .chosen-single abbr:hover { - background-position: -42px -10px; -} -.soliloquy-select .chosen-container-single .chosen-single div { - border-left: 1px solid #ddd; - position: absolute; - top: 0; - right: 0; - display: block; - width: 30px; - height: 100%; - padding-left: 9px; -} -.soliloquy-select .chosen-container-single .chosen-single div b { - display: block; - width: 100%; - height: 100%; - line-height: 35px; -} -.soliloquy-select .chosen-container-single .chosen-single div b:before { - content: "Q"; - display: block; - font-weight: normal; - font-size: 8px !important; - font-family: "soliloquy"; - position: absolute; - text-align: center; -} -.soliloquy-select .chosen-container-single .chosen-search { - position: relative; - z-index: 1010; - margin: 0; - padding: 3px 4px; - white-space: nowrap; -} -.soliloquy-select .chosen-container-single .chosen-search input[type="text"] { - margin: 1px 0; - padding: 4px 20px 4px 5px; - width: 100%; - height: auto; - outline: 0; - border: 1px solid #ddd; - background: #fff url("chosen-sprite.png") no-repeat 100% -20px; - background: url("chosen-sprite.png") no-repeat 100% -20px; - font-size: 1em; - font-family: sans-serif; - line-height: normal; - border-radius: 0; -} -.soliloquy-select .chosen-container-single .chosen-drop { - margin-top: -1px; - border-radius: 0 0 2px 2px; - background-clip: padding-box; -} -.soliloquy-select .chosen-container-single.chosen-container-single-nosearch .chosen-search { - position: absolute; - left: -9999px; -} -.soliloquy-select .chosen-container .chosen-results { - color: #444; - position: relative; - overflow-x: hidden; - overflow-y: auto; - margin: 0 4px 4px 0; - padding: 0 0 0 4px; - max-height: 240px; - -webkit-overflow-scrolling: touch; -} -.soliloquy-select .chosen-container .chosen-results li { - display: none; - margin: 0; - padding: 5px 6px; - list-style: none; - line-height: 15px; - word-wrap: break-word; - -webkit-touch-callout: none; -} -.soliloquy-select .chosen-container .chosen-results li.active-result { - display: list-item; - cursor: pointer; -} -.soliloquy-select .chosen-container .chosen-results li.disabled-result { - display: list-item; - color: #ccc; - cursor: default; -} -.soliloquy-select .chosen-container .chosen-results li.highlighted { - background: #e02626; - color: #fff; -} -.soliloquy-select .chosen-container .chosen-results li.no-results { - color: #777; - display: list-item; - background: #f4f4f4; -} -.soliloquy-select .chosen-container .chosen-results li.group-result { - display: list-item; - font-weight: bold; - cursor: default; -} -.soliloquy-select .chosen-container .chosen-results li.group-option { - padding-left: 15px; -} -.soliloquy-select .chosen-container .chosen-results li em { - font-style: normal; - text-decoration: underline; -} -.soliloquy-select .chosen-container-multi .chosen-choices { - position: relative; - overflow: hidden; - margin: 0; - padding: 0 5px; - width: 100%; - height: auto !important; - height: 1%; - border: 1px solid #ddd; - background: #fff; - cursor: text; -} -.soliloquy-select .chosen-container-multi .chosen-choices li { - float: left; - list-style: none; -} -.soliloquy-select .chosen-container-multi .chosen-choices li.search-field { - margin: 0; - padding: 0; - white-space: nowrap; -} -.soliloquy-select .chosen-container-multi .chosen-choices li.search-field input[type="text"] { - margin: 1px 0; - padding: 0; - height: 25px; - outline: 0; - border: 0 !important; - background: rgba(0, 0, 0, 0) !important; - box-shadow: none; - color: #999; - font-size: 100%; - font-family: sans-serif; - line-height: normal; - border-radius: 0; -} -.soliloquy-select .chosen-container-multi .chosen-choices li.search-choice { - position: relative; - margin: 3px 5px 3px 0; - padding: 3px 20px 3px 5px; - border: 1px solid #ddd; - max-width: 100%; - border-radius: 2px; - background: #fff; - background-size: 100% 19px; - background-repeat: repeat-x; - background-clip: padding-box; - box-shadow: - 0 0 2px #fff inset, - 0 1px 0 rgba(0, 0, 0, 0.05); - color: #333; - line-height: 13px; - cursor: default; -} -.soliloquy-select .chosen-container-multi .chosen-choices li.search-choice span { - word-wrap: break-word; -} -.soliloquy-select .chosen-container-multi .chosen-choices li.search-choice .search-choice-close { - position: absolute; - top: 4px; - right: 3px; - display: block; - width: 12px; - height: 12px; - background: url("chosen-sprite.png") -42px 1px no-repeat; - font-size: 1px; -} -.soliloquy-select - .chosen-container-multi - .chosen-choices - li.search-choice - .search-choice-close:hover { - background-position: -42px -10px; -} -.soliloquy-select .chosen-container-multi .chosen-choices li.search-choice-disabled { - padding-right: 5px; - border: 1px solid #ddd; - background: #e4e4e4; - color: #666; -} -.soliloquy-select .chosen-container-multi .chosen-choices li.search-choice-focus { - background: #d4d4d4; -} -.soliloquy-select - .chosen-container-multi - .chosen-choices - li.search-choice-focus - .search-choice-close { - background-position: -42px -10px; -} -.soliloquy-select .chosen-container-multi .chosen-results { - margin: 0; - padding: 0; -} -.soliloquy-select .chosen-container-multi .chosen-drop .result-selected { - display: list-item; - color: #ccc; - cursor: default; -} -.soliloquy-select .chosen-container-active .chosen-single { - border: 1px solid #ddd; -} -.soliloquy-select .chosen-container-active.chosen-with-drop .chosen-single { - border: 1px solid #ddd; - -moz-border-radius-bottomright: 0; - border-bottom-right-radius: 0; - -moz-border-radius-bottomleft: 0; - border-bottom-left-radius: 0; - background: #fff; -} -.soliloquy-select .chosen-container-active.chosen-with-drop .chosen-single div { - border-left: 1px solid rgba(0, 0, 0, 0); - background: rgba(0, 0, 0, 0); -} -.soliloquy-select .chosen-container-active.chosen-with-drop .chosen-single div b { - background-position: -18px 2px; -} -.soliloquy-select .chosen-container-active .chosen-choices { - border: 1px solid #5897fb; - box-shadow: 0 0 5px rgba(0, 0, 0, 0.3); -} -.soliloquy-select .chosen-container-active .chosen-choices li.search-field input[type="text"] { - color: #222 !important; -} -.soliloquy-select .chosen-disabled { - opacity: 0.5 !important; - cursor: default; -} -.soliloquy-select .chosen-disabled .chosen-single { - cursor: default; -} -.soliloquy-select .chosen-disabled .chosen-choices .search-choice .search-choice-close { - cursor: default; -} -.soliloquy-select .chosen-rtl { - text-align: right; -} -.soliloquy-select .chosen-rtl .chosen-single { - overflow: visible; - padding: 0 8px 0 0; -} -.soliloquy-select .chosen-rtl .chosen-single span { - margin-right: 0; - margin-left: 26px; - direction: rtl; -} -.soliloquy-select .chosen-rtl .chosen-single-with-deselect span { - margin-left: 38px; -} -.soliloquy-select .chosen-rtl .chosen-single div { - right: auto; - left: 3px; -} -.soliloquy-select .chosen-rtl .chosen-single abbr { - right: auto; - left: 26px; -} -.soliloquy-select .chosen-rtl .chosen-choices li { - float: right; -} -.soliloquy-select .chosen-rtl .chosen-choices li.search-field input[type="text"] { - direction: rtl; -} -.soliloquy-select .chosen-rtl .chosen-choices li.search-choice { - margin: 3px 5px 3px 0; - padding: 3px 5px 3px 19px; -} -.soliloquy-select .chosen-rtl .chosen-choices li.search-choice .search-choice-close { - right: auto; - left: 4px; -} -.soliloquy-select .chosen-rtl.chosen-container-single-nosearch .chosen-search, -.soliloquy-select .chosen-rtl .chosen-drop { - left: 9999px; -} -.soliloquy-select .chosen-rtl.chosen-container-single .chosen-results { - margin: 0 0 4px 4px; - padding: 0 4px 0 0; -} -.soliloquy-select .chosen-rtl .chosen-results li.group-option { - padding-right: 15px; - padding-left: 0; -} -.soliloquy-select .chosen-rtl.chosen-container-active.chosen-with-drop .chosen-single div { - border-right: none; -} -.soliloquy-select .chosen-rtl .chosen-search input[type="text"] { - padding: 4px 5px 4px 20px; - background: #fff url("chosen-sprite.png") no-repeat -30px -20px; - background: url("chosen-sprite.png") no-repeat -30px -20px; - direction: rtl; -} -.soliloquy-select .chosen-rtl.chosen-container-single .chosen-single div b { - background-position: 6px 2px; -} -.soliloquy-select .chosen-rtl.chosen-container-single.chosen-with-drop .chosen-single div b { - background-position: -12px 2px; -} -@media only screen and (-webkit-min-device-pixel-ratio: 1.5), - only screen and (min-resolution: 144dpi), only screen and (min-resolution: 1.5dppx) { - .soliloquy-select .chosen-rtl .chosen-search input[type="text"], - .soliloquy-select .chosen-container-single .chosen-single abbr, - .soliloquy-select .chosen-container-single .chosen-search input[type="text"], - .soliloquy-select .chosen-container-multi .chosen-choices .search-choice .search-choice-close, - .soliloquy-select .chosen-container .chosen-results-scroll-down span, - .soliloquy-select .chosen-container .chosen-results-scroll-up span { - background-image: none !important; - background-size: 52px 37px !important; - background-repeat: no-repeat !important; - } -} -.soliloquy-select - select.soliloquy-chosen - + .chosen-container.chosen-container-single - .chosen-single { - padding-right: 35px; -} -.soliloquy_page_soliloquy-lite-addons #wpfooter { - margin-left: 0px; -} -#soliloquy-heading { - background-color: #fff; - height: 45px; - margin-left: -20px; -} -#soliloquy-heading h1 { - margin: 0; - padding-left: 20px; - line-height: 45px; - font-size: 20px; - font-weight: 400; -} -#soliloquy-settings-refresh-addons-form { - float: left; -} -#soliloquy-settings-refresh-addons-form p { - font-size: 14px; -} -.soliloquy-addon-filter { - font-weight: 600; - margin-right: 10px; -} -#soliloquy-addons-area { - margin-top: 20px; -} -#soliloquy-addons-upgrade-area { - padding-top: 0; - margin-top: 0; - border-top: none; -} -#soliloquy-addons-upgrade-area h2.soliloquy-addons-upgrade { - font-size: 23px; -} -#soliloquy-addons-upgrade-area .soliloquy-unlock-text { - font-size: 14px; - margin-bottom: 30px; -} -#soliloquy-addons-upgrade-area .soliloquy-addon-unlock { - max-width: 125px; - margin: auto; - text-align: center; -} -.soliloquy-addon { - position: relative; - border: 1px solid #ddd; - background: #fff; - border-radius: 3px; - float: left; - margin: 0 2% 2% 0; - height: 510px; - text-align: center; - width: 32%; - box-sizing: border-box; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; -} -.soliloquy-addon .soliloquy-addon-thumb { - border-radius: 3px; - height: auto; - margin: 0 auto; - max-width: 100%; - width: auto; -} -.soliloquy-addon.last { - margin-right: 0; -} -.soliloquy-addon .soliloquy-addon-content { - padding: 20px; -} -.soliloquy-addon .soliloquy-addon-footer { - position: absolute; - width: 100%; - bottom: 0; - height: 75px; - line-height: 75px; - border-top: 1px solid #ddd; - background-color: #f7f7f7; -} -.soliloquy-addon .soliloquy-addon-footer .soliloquy-unlock-addon { - vertical-align: middle; -} -.soliloquy-addon .soliloquy-addon-action-button:before { - font-size: 18px; - vertical-align: middle; - margin-top: -1px; -} -.soliloquy-addon .soliloquy-icon-cloud-download.soliloquy-addon-action-button:before { - color: #999; -} -.soliloquy-addon .soliloquy-icon-toggle-on.soliloquy-activate-addon:before { - -webkit-transform: rotate(180deg); - -moz-transform: rotate(180deg); - -ms-transform: rotate(180deg); - -o-transform: rotate(180deg); - transform: rotate(180deg); - color: #e02626; -} -.soliloquy-addon .soliloquy-icon-toggle-on.soliloquy-deactivate-addon:before { - color: #7cc048; -} -.soliloquy-addon .soliloquy-addon-message, -.soliloquy-addon .soliloquy-addon-error { - -moz-border-radius: 3px; - -webkit-border-radius: 3px; - border-radius: 3px; - text-align: left; -} -.soliloquy-addon .soliloquy-addon-inactive .addon-status span { - color: #e02626; -} -.soliloquy-addon .addon-status-not-installed span { - color: #999; -} -.soliloquy-addon .soliloquy-addon-active .addon-status span { - color: #7cc048; -} -.soliloquy-addon .soliloquy-addon-message span { - font-weight: bold; -} -.soliloquy-addon .soliloquy-addon-action { - display: inline; - float: right; - margin-top: 20px; - margin-right: 15px; -} -.soliloquy-addon .soliloquy-addon-message { - margin-left: 15px; -} -.soliloquy-addon .soliloquy-addon-error { - margin-top: 10px; -} -.soliloquy-addon .soliloquy-addon-error .wrap { - margin: 0; -} -.soliloquy-addon .soliloquy-addon-error .icon32 { - display: none; -} -.soliloquy-addon .soliloquy-addon-error h2 { - padding: 0; -} -.soliloquy-addon .soliloquy-addon-error .form-table th { - padding: 10px 0; - width: 30% !important; -} -.soliloquy-addon .soliloquy-addon-error .form-table input[type="text"], -.soliloquy-addon .soliloquy-addon-error .form-table input[type="password"] { - width: 100% !important; -} -.soliloquy-addon .soliloquy-addon-error p.submit { - padding: 0; -} -.soliloquy-addon p { - color: #2f2f2f; - font-size: 13px; - margin: 30px 40px; -} -@media screen and (min-width: 1751px) { - .soliloquy-addon { - margin: 0 2% 2% 0; - height: 720px; - width: 32%; - } -} -@media screen and (max-width: 1750px) { - .soliloquy-addon { - margin: 0 2% 2% 0; - height: 620px; - width: 32%; - } -} -@media screen and (max-width: 1549px) { - .soliloquy-addon { - margin: 0 2% 2% 0; - height: 500px; - width: 32%; - } -} -@media screen and (max-width: 1200px) { - .soliloquy-addon { - margin: 0 2% 2% 0; - min-height: 460px; - width: 48%; - } - .soliloquy-addon.last { - margin: 0 2% 2% 0; - } - .soliloquy-addon:nth-child(2) { - margin-right: 0; - } -} -@media screen and (max-width: 568px) { - .soliloquy-addon { - margin: 0 1% 1% 0; - min-height: 530px; - margin-bottom: 30px; - width: 98%; - } - .soliloquy-addon.last { - margin: 0 1% 1% 0; - } - .soliloquy-addon .soliloquy-addon-action { - margin-top: 0; - } -} +*/.soliloquy-select *{box-shadow:none !important;background-image:none !important}.soliloquy-select *:after{background-image:none !important}.soliloquy-select .soliloquy-chosen{height:35px;max-width:350px;width:100%}.soliloquy-select .chosen-container{position:relative;display:inline-block;vertical-align:middle;font-size:13px;-webkit-user-select:none;-moz-user-select:none;user-select:none;max-width:350px;font-weight:600}.soliloquy-select .chosen-container *{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.soliloquy-select .chosen-container .chosen-drop{position:absolute;top:100%;left:-9999px;z-index:1010;width:100%;border:1px solid #ddd;border-top:0;background:#fff}.soliloquy-select .chosen-container.chosen-with-drop .chosen-drop{left:0}.soliloquy-select .chosen-container a{cursor:pointer}.soliloquy-select .chosen-container .search-choice .group-name,.soliloquy-select .chosen-container .chosen-single .group-name{margin-right:4px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-weight:normal;color:#999}.soliloquy-select .chosen-container .search-choice .group-name:after,.soliloquy-select .chosen-container .chosen-single .group-name:after{content:":";padding-left:2px;vertical-align:top}.soliloquy-select .chosen-container-single .chosen-single{position:relative;display:block;overflow:hidden;padding:0 0 0 8px;height:35px;border:1px solid #ddd;border-radius:3px;background:#fff;background-clip:padding-box;color:#444;text-decoration:none;white-space:nowrap;line-height:35px}.soliloquy-select .chosen-container-single .chosen-default{color:#999}.soliloquy-select .chosen-container-single .chosen-single span{display:block;overflow:hidden;margin-right:26px;text-overflow:ellipsis;white-space:nowrap}.soliloquy-select .chosen-container-single .chosen-single-with-deselect span{margin-right:38px}.soliloquy-select .chosen-container-single .chosen-single abbr{position:absolute;top:6px;right:26px;display:block;width:12px;height:12px;font-size:1px}.soliloquy-select .chosen-container-single .chosen-single abbr:hover{background-position:-42px -10px}.soliloquy-select .chosen-container-single.chosen-disabled .chosen-single abbr:hover{background-position:-42px -10px}.soliloquy-select .chosen-container-single .chosen-single div{border-left:1px solid #ddd;position:absolute;top:0;right:0;display:block;width:30px;height:100%;padding-left:9px}.soliloquy-select .chosen-container-single .chosen-single div b{display:block;width:100%;height:100%;line-height:35px}.soliloquy-select .chosen-container-single .chosen-single div b:before{content:"Q";display:block;font-weight:normal;font-size:8px !important;font-family:"soliloquy";position:absolute;text-align:center}.soliloquy-select .chosen-container-single .chosen-search{position:relative;z-index:1010;margin:0;padding:3px 4px;white-space:nowrap}.soliloquy-select .chosen-container-single .chosen-search input[type=text]{margin:1px 0;padding:4px 20px 4px 5px;width:100%;height:auto;outline:0;border:1px solid #ddd;background:#fff url("chosen-sprite.png") no-repeat 100% -20px;background:url("chosen-sprite.png") no-repeat 100% -20px;font-size:1em;font-family:sans-serif;line-height:normal;border-radius:0}.soliloquy-select .chosen-container-single .chosen-drop{margin-top:-1px;border-radius:0 0 2px 2px;background-clip:padding-box}.soliloquy-select .chosen-container-single.chosen-container-single-nosearch .chosen-search{position:absolute;left:-9999px}.soliloquy-select .chosen-container .chosen-results{color:#444;position:relative;overflow-x:hidden;overflow-y:auto;margin:0 4px 4px 0;padding:0 0 0 4px;max-height:240px;-webkit-overflow-scrolling:touch}.soliloquy-select .chosen-container .chosen-results li{display:none;margin:0;padding:5px 6px;list-style:none;line-height:15px;word-wrap:break-word;-webkit-touch-callout:none}.soliloquy-select .chosen-container .chosen-results li.active-result{display:list-item;cursor:pointer}.soliloquy-select .chosen-container .chosen-results li.disabled-result{display:list-item;color:#ccc;cursor:default}.soliloquy-select .chosen-container .chosen-results li.highlighted{background:#e02626;color:#fff}.soliloquy-select .chosen-container .chosen-results li.no-results{color:#777;display:list-item;background:#f4f4f4}.soliloquy-select .chosen-container .chosen-results li.group-result{display:list-item;font-weight:bold;cursor:default}.soliloquy-select .chosen-container .chosen-results li.group-option{padding-left:15px}.soliloquy-select .chosen-container .chosen-results li em{font-style:normal;text-decoration:underline}.soliloquy-select .chosen-container-multi .chosen-choices{position:relative;overflow:hidden;margin:0;padding:0 5px;width:100%;height:auto !important;height:1%;border:1px solid #ddd;background:#fff;cursor:text}.soliloquy-select .chosen-container-multi .chosen-choices li{float:left;list-style:none}.soliloquy-select .chosen-container-multi .chosen-choices li.search-field{margin:0;padding:0;white-space:nowrap}.soliloquy-select .chosen-container-multi .chosen-choices li.search-field input[type=text]{margin:1px 0;padding:0;height:25px;outline:0;border:0 !important;background:rgba(0,0,0,0) !important;box-shadow:none;color:#999;font-size:100%;font-family:sans-serif;line-height:normal;border-radius:0}.soliloquy-select .chosen-container-multi .chosen-choices li.search-choice{position:relative;margin:3px 5px 3px 0;padding:3px 20px 3px 5px;border:1px solid #ddd;max-width:100%;border-radius:2px;background:#fff;background-size:100% 19px;background-repeat:repeat-x;background-clip:padding-box;box-shadow:0 0 2px #fff inset,0 1px 0 rgba(0,0,0,.05);color:#333;line-height:13px;cursor:default}.soliloquy-select .chosen-container-multi .chosen-choices li.search-choice span{word-wrap:break-word}.soliloquy-select .chosen-container-multi .chosen-choices li.search-choice .search-choice-close{position:absolute;top:4px;right:3px;display:block;width:12px;height:12px;background:url("chosen-sprite.png") -42px 1px no-repeat;font-size:1px}.soliloquy-select .chosen-container-multi .chosen-choices li.search-choice .search-choice-close:hover{background-position:-42px -10px}.soliloquy-select .chosen-container-multi .chosen-choices li.search-choice-disabled{padding-right:5px;border:1px solid #ddd;background:#e4e4e4;color:#666}.soliloquy-select .chosen-container-multi .chosen-choices li.search-choice-focus{background:#d4d4d4}.soliloquy-select .chosen-container-multi .chosen-choices li.search-choice-focus .search-choice-close{background-position:-42px -10px}.soliloquy-select .chosen-container-multi .chosen-results{margin:0;padding:0}.soliloquy-select .chosen-container-multi .chosen-drop .result-selected{display:list-item;color:#ccc;cursor:default}.soliloquy-select .chosen-container-active .chosen-single{border:1px solid #ddd}.soliloquy-select .chosen-container-active.chosen-with-drop .chosen-single{border:1px solid #ddd;-moz-border-radius-bottomright:0;border-bottom-right-radius:0;-moz-border-radius-bottomleft:0;border-bottom-left-radius:0;background:#fff}.soliloquy-select .chosen-container-active.chosen-with-drop .chosen-single div{border-left:1px solid rgba(0,0,0,0);background:rgba(0,0,0,0)}.soliloquy-select .chosen-container-active.chosen-with-drop .chosen-single div b{background-position:-18px 2px}.soliloquy-select .chosen-container-active .chosen-choices{border:1px solid #5897fb;box-shadow:0 0 5px rgba(0,0,0,.3)}.soliloquy-select .chosen-container-active .chosen-choices li.search-field input[type=text]{color:#222 !important}.soliloquy-select .chosen-disabled{opacity:.5 !important;cursor:default}.soliloquy-select .chosen-disabled .chosen-single{cursor:default}.soliloquy-select .chosen-disabled .chosen-choices .search-choice .search-choice-close{cursor:default}.soliloquy-select .chosen-rtl{text-align:right}.soliloquy-select .chosen-rtl .chosen-single{overflow:visible;padding:0 8px 0 0}.soliloquy-select .chosen-rtl .chosen-single span{margin-right:0;margin-left:26px;direction:rtl}.soliloquy-select .chosen-rtl .chosen-single-with-deselect span{margin-left:38px}.soliloquy-select .chosen-rtl .chosen-single div{right:auto;left:3px}.soliloquy-select .chosen-rtl .chosen-single abbr{right:auto;left:26px}.soliloquy-select .chosen-rtl .chosen-choices li{float:right}.soliloquy-select .chosen-rtl .chosen-choices li.search-field input[type=text]{direction:rtl}.soliloquy-select .chosen-rtl .chosen-choices li.search-choice{margin:3px 5px 3px 0;padding:3px 5px 3px 19px}.soliloquy-select .chosen-rtl .chosen-choices li.search-choice .search-choice-close{right:auto;left:4px}.soliloquy-select .chosen-rtl.chosen-container-single-nosearch .chosen-search,.soliloquy-select .chosen-rtl .chosen-drop{left:9999px}.soliloquy-select .chosen-rtl.chosen-container-single .chosen-results{margin:0 0 4px 4px;padding:0 4px 0 0}.soliloquy-select .chosen-rtl .chosen-results li.group-option{padding-right:15px;padding-left:0}.soliloquy-select .chosen-rtl.chosen-container-active.chosen-with-drop .chosen-single div{border-right:none}.soliloquy-select .chosen-rtl .chosen-search input[type=text]{padding:4px 5px 4px 20px;background:#fff url("chosen-sprite.png") no-repeat -30px -20px;background:url("chosen-sprite.png") no-repeat -30px -20px;direction:rtl}.soliloquy-select .chosen-rtl.chosen-container-single .chosen-single div b{background-position:6px 2px}.soliloquy-select .chosen-rtl.chosen-container-single.chosen-with-drop .chosen-single div b{background-position:-12px 2px}@media only screen and (-webkit-min-device-pixel-ratio: 1.5),only screen and (min-resolution: 144dpi),only screen and (min-resolution: 1.5dppx){.soliloquy-select .chosen-rtl .chosen-search input[type=text],.soliloquy-select .chosen-container-single .chosen-single abbr,.soliloquy-select .chosen-container-single .chosen-search input[type=text],.soliloquy-select .chosen-container-multi .chosen-choices .search-choice .search-choice-close,.soliloquy-select .chosen-container .chosen-results-scroll-down span,.soliloquy-select .chosen-container .chosen-results-scroll-up span{background-image:none !important;background-size:52px 37px !important;background-repeat:no-repeat !important}}.soliloquy-select select.soliloquy-chosen+.chosen-container.chosen-container-single .chosen-single{padding-right:35px}.soliloquy_page_soliloquy-lite-addons #wpfooter{margin-left:0px}#soliloquy-heading{background-color:#fff;height:45px;margin-left:-20px}#soliloquy-heading h1{margin:0;padding-left:20px;line-height:45px;font-size:20px;font-weight:400}#soliloquy-settings-refresh-addons-form{float:left}#soliloquy-settings-refresh-addons-form p{font-size:14px}.soliloquy-addon-filter{font-weight:600;margin-right:10px}#soliloquy-addons-area{margin-top:20px}#soliloquy-addons-upgrade-area{padding-top:0;margin-top:0;border-top:none}#soliloquy-addons-upgrade-area h2.soliloquy-addons-upgrade{font-size:23px}#soliloquy-addons-upgrade-area .soliloquy-unlock-text{font-size:14px;margin-bottom:30px}#soliloquy-addons-upgrade-area .soliloquy-addon-unlock{max-width:125px;margin:auto;text-align:center}.soliloquy-addon{display:flex;flex-direction:column;border:1px solid #ddd;background:#fff;border-radius:3px;float:left;margin:0 2% 2% 0;min-height:380px;text-align:center;width:32%;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box}.soliloquy-addon .soliloquy-addon-thumb{border-radius:3px;height:auto;margin:0 auto;max-width:100%;width:auto}.soliloquy-addon.last{margin-right:0}.soliloquy-addon .soliloquy-addon-content{padding:20px;flex:1}.soliloquy-addon .soliloquy-addon-footer{width:100%;height:75px;border-top:1px solid #ddd;background-color:#f7f7f7;display:flex;align-items:center;justify-content:space-between;padding:0 15px;box-sizing:border-box;flex-shrink:0}.soliloquy-addon .soliloquy-addon-action-button:before{font-size:18px;vertical-align:middle;margin-top:-1px}.soliloquy-addon .soliloquy-icon-cloud-download.soliloquy-addon-action-button:before{color:#999}.soliloquy-addon .soliloquy-icon-toggle-on.soliloquy-activate-addon:before{-webkit-transform:rotate(180deg);-moz-transform:rotate(180deg);-ms-transform:rotate(180deg);-o-transform:rotate(180deg);transform:rotate(180deg);color:#e02626}.soliloquy-addon .soliloquy-icon-toggle-on.soliloquy-deactivate-addon:before{color:#7cc048}.soliloquy-addon .soliloquy-addon-message,.soliloquy-addon .soliloquy-addon-error{-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;text-align:left}.soliloquy-addon .soliloquy-addon-inactive .addon-status span{color:#e02626}.soliloquy-addon .addon-status-not-installed span{color:#999}.soliloquy-addon .soliloquy-addon-active .addon-status span{color:#7cc048}.soliloquy-addon .soliloquy-addon-message span{font-weight:bold}.soliloquy-addon .soliloquy-addon-action{display:flex;align-items:center;margin:0}.soliloquy-addon .soliloquy-addon-message{display:flex;justify-content:space-between;align-items:center;width:100%;margin-left:0;padding:0}.soliloquy-addon .soliloquy-addon-error{margin-top:10px}.soliloquy-addon .soliloquy-addon-error .wrap{margin:0}.soliloquy-addon .soliloquy-addon-error .icon32{display:none}.soliloquy-addon .soliloquy-addon-error h2{padding:0}.soliloquy-addon .soliloquy-addon-error .form-table th{padding:10px 0;width:30% !important}.soliloquy-addon .soliloquy-addon-error .form-table input[type=text],.soliloquy-addon .soliloquy-addon-error .form-table input[type=password]{width:100% !important}.soliloquy-addon .soliloquy-addon-error p.submit{padding:0}.soliloquy-addon p{color:#2f2f2f;font-size:13px;margin:30px 40px}@media screen and (max-width: 1200px){.soliloquy-addon{margin:0 2% 2% 0;min-height:340px;width:48%}.soliloquy-addon.last{margin:0 2% 2% 0}.soliloquy-addon:nth-child(2){margin-right:0}}@media screen and (max-width: 568px){.soliloquy-addon{margin:0 1% 1% 0;margin-bottom:20px;width:98%}.soliloquy-addon.last{margin:0 1% 1% 0}.soliloquy-addon .soliloquy-addon-action{margin-top:0}}.soliloquy-badge{text-transform:uppercase;font-weight:700;text-align:center;line-height:1;display:inline-block;color:#8c8f94;background-color:#e5e5e6}.soliloquy-badge-lg{font-size:10px;letter-spacing:.5px;padding:8px 10px}.soliloquy-badge-sm{font-size:8px;letter-spacing:.4px;padding:6px 8px}.soliloquy-badge-rounded{border-radius:3px}body div.jconfirm .jconfirm-box-container .jconfirm-box.soliloquy-upgrade-modal-box .jconfirm-title-c{margin:0 0 20px 0;padding:0;font-weight:600;text-align:center}body div.jconfirm .jconfirm-box-container .jconfirm-box.soliloquy-upgrade-modal-box .jconfirm-title-c .jconfirm-icon-c .dashicons,body div.jconfirm .jconfirm-box-container .jconfirm-box.soliloquy-upgrade-modal-box .jconfirm-title-c .jconfirm-icon-c .dashicons-before:before{width:42px;height:42px;font-size:47px}body div.jconfirm .jconfirm-box-container .jconfirm-box.soliloquy-upgrade-modal-box .jconfirm-title-c .jconfirm-icon-c+.jconfirm-title{margin-top:20px}body div.jconfirm .jconfirm-box-container .jconfirm-box.soliloquy-upgrade-modal-box .jconfirm-title-c .jconfirm-title{color:#3c434a;display:block;line-height:30px}body div.jconfirm .jconfirm-box-container .jconfirm-box.soliloquy-upgrade-modal-box .jconfirm-content-pane{display:block;margin-bottom:20px}body div.jconfirm .jconfirm-box-container .jconfirm-box.soliloquy-upgrade-modal-box .jconfirm-content-pane .jconfirm-content{color:#3c434a;font-size:16px;line-height:24px;margin-bottom:0;overflow:inherit}body div.jconfirm .jconfirm-box-container .jconfirm-box.soliloquy-upgrade-modal-box .jconfirm-content-pane .jconfirm-content p{font-size:inherit;line-height:inherit;margin:0 0 16px}body div.jconfirm .jconfirm-box-container .jconfirm-box.soliloquy-upgrade-modal-box.jconfirm-type-blue{border-top:solid 7px #1d2327;animation:none}body div.jconfirm .jconfirm-box-container .jconfirm-box.soliloquy-upgrade-modal-box.jconfirm-type-blue .jconfirm-title-c .jconfirm-icon-c{color:#1d2327 !important}body div.jconfirm .jconfirm-box-container .jconfirm-box.soliloquy-upgrade-modal-box.jconfirm-type-blue button.btn-confirm{background-color:#1d2327;border-color:#1d2327}body div.jconfirm .jconfirm-box-container .jconfirm-box.soliloquy-upgrade-modal-box .jconfirm-buttons button.btn-confirm{color:#fff}body div.jconfirm .jconfirm-box-container .jconfirm-box.soliloquy-upgrade-modal-box.jconfirm-type-blue button.btn-confirm:hover{background-color:#2c3338;border-color:#2c3338} \ No newline at end of file @@ -1,582 +1 @@ -body.post-type-soliloquy #wpcontent { - min-height: 80vh; - display: flex; - flex-direction: column; -} -body.post-type-soliloquy #wpfooter { - position: relative; - margin-top: auto; -} -body.post-type-soliloquy #wpfooter .soliloquy-footer-promotion { - text-align: center; - font-weight: 400; - font-size: 13px; - line-height: normal; - color: #646970; - padding: 30px 0; - margin-bottom: 20px; -} -body.post-type-soliloquy #wpfooter .soliloquy-footer-promotion-links { - margin: 10px 0; - color: #646970; -} -body.post-type-soliloquy #wpfooter .soliloquy-footer-promotion-links span { - color: #c3c4c7; - padding: 0 7px; -} -body.post-type-soliloquy #wpfooter .soliloquy-footer-promotion-links, -body.post-type-soliloquy #wpfooter .soliloquy-footer-promotion-social { - display: flex; - justify-content: center; - align-items: center; -} -body.post-type-soliloquy #wpfooter .soliloquy-footer-promotion-social { - gap: 10px; - margin: 0; -} -#soliloquy-header-temp { - position: relative; - display: none; -} -#soliloquy-header { - display: flex; - justify-content: space-between; - align-items: center; -} -@media (max-width: 599px) { - #soliloquy-header { - padding-top: 46px; - } -} -#soliloquy-header h1.soliloquy-logo { - margin: 0; - margin-left: 20px; -} -#soliloquy-header h1.soliloquy-logo img { - max-width: 339px; -} -@media (min-width: 600px) and (max-width: 767px) { - #soliloquy-header h1.soliloquy-logo img { - width: 90%; - } -} -#soliloquy-header .soliloquy-right { - padding-right: 20px; -} -#soliloquy-header .soliloquy-notifications-inbox { - position: relative; -} -#soliloquy-header .soliloquy-notifications-inbox[data-count]:after { - background: #e02626; - 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(-40%, 30%); -} -.soliloquy-nav-tab-wrapper { - display: flex; - flex-wrap: wrap; - gap: 0 30px; - margin: 0 0 20px -20px; - padding: 0 20px; - background-color: #fff; - list-style: none; - font-size: 14px; - font-weight: 400; -} -.soliloquy-nav-tab-wrapper li { - margin: 0; - padding: 0; -} -.soliloquy-nav-tab-wrapper li a { - display: block; - padding: 15px 0 12px 0; - line-height: 30px; - border-bottom: 3px solid #fff; - box-shadow: none; - color: #2c3338; - text-decoration: none; -} -.soliloquy-nav-tab-wrapper .soliloquy-nav-tab:hover, -.soliloquy-nav-tab-wrapper .soliloquy-nav-tab-active { - border-bottom: 4px solid #162937; -} -.soliloquy-notifications-close:hover, -.soliloquy-notifications-inbox:hover { - cursor: pointer; -} -.soliloquy-notifications-drawer { - box-sizing: border-box; - background: #fff; - bottom: 0; - position: fixed; - right: -400px; - top: 32px; - transition: - right 300ms ease 0s, - visibility 0s ease 400ms; - visibility: hidden; - width: 400px; - z-index: 1100; - border: 1px solid #ddd; -} -.soliloquy-notifications-open .soliloquy-notifications-drawer { - right: 0; - transition: - right 300ms ease 0s, - visibility 0s ease 0ms; - visibility: visible; -} -.soliloquy-notifications-overlay { - background-color: rgba(0, 0, 0, 0.3); - bottom: 0; - display: none; - left: 0; - opacity: 0.5; - position: fixed; - right: 0; - top: 46px; - transition: 0.5s; - z-index: 1052; -} -.folded .soliloquy-notifications-overlay { - left: 36px; -} -.soliloquy-notifications-open .soliloquy-notifications-overlay { - display: block; -} -@media screen and (min-width: 783px) { - .soliloquy-notifications-overlay { - left: 36px; - } - .admin-bar .soliloquy-notifications-overlay { - top: 32px; - } -} -@media screen and (min-width: 961px) { - .soliloquy-notifications-overlay { - left: 160px; - } - .folded .soliloquy-notifications-overlay { - left: 36px; - } -} -.soliloquy-notifications-header { - background: #eee; - border-bottom: 1px solid #ddd; - padding: 18px 40px 18px 20px; -} -.soliloquy-notifications-header .soliloquy-notifications-close { - position: absolute; - right: 18px; - top: 22px; -} -.soliloquy-notifications-header .soliloquy-notifications-close path { - fill: #3c434a; -} -.soliloquy-notifications-header h3 { - color: #3c434a; - display: inline-block; - font-size: 14px; - font-weight: 700; - line-height: 21px; - margin: 0 10px 0 0; -} -.soliloquy-notifications-list { - height: calc(100% - 130px); - overflow: auto; -} -.soliloquy-notifications-list ul { - margin: 0; -} -.soliloquy-notifications-list li { - border-bottom: 1px solid #ddd; - display: flex; - margin: 0; - padding: 24px; - font-size: 14px; - color: rgba(60, 67, 74, 0.6); -} -.soliloquy-notifications-list li:first-child { - border-top: none; -} -.soliloquy-notifications-list li h4 { - color: #3c4249; - font-size: 14px; - font-weight: 600; - line-height: 21px; - margin: 0; -} -.soliloquy-notifications-list p { - color: rgba(60, 67, 74, 0.6); - font-size: 14px; - margin: 8px 0; - margin-bottom: 20px; -} -.soliloquy-notifications-list p.soliloquy-start { - font-size: 12px; -} -.soliloquy-notifications-list .soliloquy-button { - padding: 8px 14px; - border-radius: 4px; - text-decoration: none; - font-size: 12px; -} -.soliloquy-notifications-list .soliloquy-button.soliloquy-button-primary { - background-color: #e02626; - color: #fff; -} -.soliloquy-notifications-list .soliloquy-button.soliloquy-button-secondary { - border: 1px solid #ddd; -} -.soliloquy-button-text { - font-size: 12px; - color: rgba(60, 67, 74, 0.6980392157); -} -.soliloquy-notification-actions .soliloquy-button { - margin-right: 10px; -} -.soliloquy-notifications-footer { - border-top: 1px solid #ddd; - padding: 24px 27px; - text-align: right; -} -#soliloquy-dismissed-title, -#soliloquy-notifications-show-active, -.soliloquy-notifications-dismissed { - display: none; -} -.show-dismissed #soliloquy-notifications-show-dismissed, -.show-dismissed .soliloquy-notifications-active, -.show-dismissed #soliloquy-active-title { - display: none; -} -.show-dismissed #soliloquy-notifications-show-active, -.show-dismissed #soliloquy-dismissed-title { - display: inline-block; -} -.show-dismissed .soliloquy-notifications-dismissed { - display: block; -} -.soliloquy-notifications-dismissed .soliloquy-notification-dismiss { - display: none; -} -.soliloquy-notification-icon { - margin-right: 10px; -} -#soliloquy-header-temp { - position: relative; -} -#soliloquy-top-notification { - position: relative; - background-color: #162937; - text-align: center; - color: #fff; - height: 40px; - margin-left: -20px; - vertical-align: middle; -} -#soliloquy-top-notification p { - margin: 0; - padding: 0; - line-height: 40px; - font-size: 16px; -} -#soliloquy-top-notification a { - color: #fff; -} -#soliloquy-top-notification .soliloquy-dismiss { - position: absolute; - top: 10px; - right: 10px; -} -#soliloquy-header { - background-color: #f0f0f0; - height: 120px; - margin-left: -20px; -} -#soliloquy-header #soliloquy-logo { - margin: 0; - padding-top: 25px; - line-height: 120px; - margin-left: 20px; -} -#soliloquy-header #soliloquy-logo a { - display: inline-flex; - box-shadow: none; -} -#soliloquy-header #soliloquy-logo a:focus-visible { - outline: 1px solid #162937; -} -#soliloquy-header #soliloquy-logo img { - max-width: 288px; -} -.wp-core-ui .soliloquy-primary-button, -.wp-core-ui .button-soliloquy { - background: #e02626; - border-color: #e02626; - -webkit-box-shadow: none; - box-shadow: none; - color: #fff; - text-decoration: none; - font-weight: 500; - text-shadow: none; - line-height: 15px; - height: 35px; - font-size: 13px; - padding: 0 20px 1px; -} -.wp-core-ui .soliloquy-primary-button:focus, -.wp-core-ui .soliloquy-primary-button:hover, -.wp-core-ui .button-soliloquy:focus, -.wp-core-ui .button-soliloquy:hover { - background: #e02626; - border-color: #e02626; - color: #fff; - opacity: 0.8; - box-shadow: none; -} -.wp-core-ui .button-soliloquy-secondary { - background: #f7f7f7; - border: 1px solid; - border-color: #ddd; - -webkit-box-shadow: none; - box-shadow: none; - color: #23282d; - text-decoration: none; - text-shadow: none; - font-weight: bold; - height: 35px; - font-size: 13px; - padding: 0 20px 1px; -} -.wp-core-ui .button-soliloquy-secondary:focus, -.wp-core-ui .button-soliloquy-secondary:hover { - background: #f7f7f7; - border-color: #999; - color: #23282d; - box-shadow: none; -} -.wp-core-ui .button-soliloquy-delete { - background: #e02626; - border: 1px solid; - border-color: #e02626; - -webkit-box-shadow: none; - box-shadow: none; - color: #fff; - text-decoration: none; - text-shadow: none; - font-weight: bold; - height: 35px; - font-size: 13px; - padding: 0 20px 1px; -} -.wp-core-ui .button-soliloquy-delete:focus, -.wp-core-ui .button-soliloquy-delete:hover { - background: #e02626; - color: #fff; - opacity: 0.8; - box-shadow: none; -} -.wp-core-ui a.button-soliloquy, -.wp-core-ui a.button-soliloquy-secondary, -.wp-core-ui a.button-soliloquy-delete { - line-height: 32px; -} -.soliloquy-settings-tab { - padding: 20px; - box-sizing: border-box; -} -.soliloquy-settings-tab #soliloquy-refresh-submit { - margin-left: 10px; -} -.soliloquy-settings-tab .soliloquy-hideme { - display: none; -} -.soliloquy-settings-tab .soliloquy-clear { - clear: both; -} -.soliloquy-settings-tab .soliloquy-clear:after { - clear: both; - content: "."; - display: block; - height: 0; - line-height: 0; - overflow: auto; - visibility: hidden; - zoom: 1; -} -.soliloquy-settings-tab .soliloquy-gallery { - margin: 15px 0 20px; -} -.soliloquy-settings-tab th { - width: 170px; - padding-right: 40px; -} -@media (min-width: 600px) and (max-width: 767px) { - .soliloquy-settings-tab th { - width: auto; - } -} -.soliloquy-settings-tab input[type="text"], -.soliloquy-settings-tab input[type="number"], -.soliloquy-settings-tab input[type="password"], -.soliloquy-settings-tab select, -.soliloquy-settings-tab textarea { - width: 350px; - padding-right: 0; - border: 1px solid rgba(0, 0, 0, 0.1490196078); - font-size: 14px; -} -@media (min-width: 600px) and (max-width: 767px) { - .soliloquy-settings-tab input[type="text"], - .soliloquy-settings-tab input[type="number"], - .soliloquy-settings-tab input[type="password"], - .soliloquy-settings-tab select, - .soliloquy-settings-tab textarea { - width: 100%; - } -} -.soliloquy-settings-tab input[type="text"], -.soliloquy-settings-tab input[type="number"], -.soliloquy-settings-tab input[type="password"] { - height: 40px; -} -@media (min-width: 600px) and (max-width: 767px) { - .soliloquy-settings-tab input[type="text"], - .soliloquy-settings-tab input[type="number"], - .soliloquy-settings-tab input[type="password"] { - height: auto; - } -} -.soliloquy-settings-tab .button.soliloquy-verify-submit { - height: 39px; -} -.soliloquy-settings-tab .green { - color: #37993b; -} -.soliloquy-settings-tab a.soliloquy-clipboard { - width: 33px; - padding: 0; -} -.soliloquy-settings-tab #soliloquy-settings-submit { - margin: 40px 0 0 0px; -} -.soliloquy-settings-tab #soliloquy-refresh-submit { - vertical-align: baseline; -} -.soliloquy-settings-tab .soliloquy-external-req { - border: 1px solid #e02626; - border-radius: 4px; - padding: 30px; -} -.soliloquy-settings-tab .soliloquy-external-req h2 { - font-size: 20px; - margin: 0; - padding: 0; -} -.soliloquy-settings-tab .soliloquy-external-req-active { - border: 1px solid #7cc048; - background-color: #fff; - border-radius: 4px; - padding: 30px; -} -.soliloquy-settings-tab .soliloquy-external-req-active h2 { - font-size: 20px; - font-weight: 600; - margin: 0; - padding: 0; -} -.soliloquy-settings-tab .form-table th, -.soliloquy-settings-tab .form-table td { - padding-top: 25px; - padding-bottom: 25px; -} -@media (min-width: 768px) and (max-width: 991px) { - .soliloquy-settings-tab .form-table th { - padding-top: 40px; - padding-bottom: 10px; - padding-right: 0px !important; - } -} -@media (min-width: 600px) and (max-width: 767px) { - .soliloquy-settings-tab .form-table th { - padding-top: 40px; - padding-bottom: 10px; - padding-right: 0px !important; - } -} -@media (min-width: 768px) and (max-width: 991px) { - .soliloquy-settings-tab .form-table tr#soliloquy-settings-key-box th { - padding-top: 20px; - } -} -@media (min-width: 600px) and (max-width: 767px) { - .soliloquy-settings-tab .form-table tr#soliloquy-settings-key-box th { - padding-top: 20px; - } -} -@media (min-width: 768px) and (max-width: 991px) { - .soliloquy-settings-tab .form-table td { - padding-top: 0; - padding-right: 0px; - } -} -@media (min-width: 600px) and (max-width: 767px) { - .soliloquy-settings-tab .form-table td { - padding-top: 0; - padding-right: 0px; - } -} -.soliloquy-settings-tab .form-table td p { - margin-bottom: 15px; -} -.soliloquy-settings-tab .form-table #soliloquy-image-gallery-settings-title h3 { - font-size: 17px; -} -.soliloquy-settings-tab .form-table #soliloquy-image-gallery-settings-title p { - font-size: 14px; - color: rgba(60, 67, 74, 0.6980392157); -} -.soliloquy-settings-tab .form-table tr { - border-bottom: 1px solid #ddd; -} -.soliloquy-settings-tab .form-table tr.no-bottom-border, -.soliloquy-settings-tab .form-table tr.title { - border-bottom: 0; -} -.soliloquy-settings-tab .form-table tr.no-bottom-border label, -.soliloquy-settings-tab .form-table tr.title label { - font-size: 14px; -} -.soliloquy-settings-tab .form-table tr.no-bottom-border h6, -.soliloquy-settings-tab .form-table tr.title h6 { - font-size: 14px; - line-height: 16px; - margin: 5px auto; -} -.soliloquy-settings-tab table.form-table tr:first-of-type th, -.soliloquy-settings-tab table.form-table tr:first-of-type td { - padding-top: 0; -} -.soliloquy-settings-tab table.form-table input[type="checkbox"] { - margin-top: 0px; - float: left; -} -.soliloquy-settings-tab .description { - color: rgba(60, 67, 74, 0.6980392157); - font-size: 14px; - margin-top: 0px; - margin-bottom: 15px; -} +body.post-type-soliloquy #wpcontent{min-height:80vh;display:flex;flex-direction:column}body.post-type-soliloquy #wpfooter{position:relative;margin-top:auto}body.post-type-soliloquy #wpfooter .soliloquy-footer-promotion{text-align:center;font-weight:400;font-size:13px;line-height:normal;color:#646970;padding:30px 0;margin-bottom:20px}body.post-type-soliloquy #wpfooter .soliloquy-footer-promotion-links{margin:10px 0;color:#646970}body.post-type-soliloquy #wpfooter .soliloquy-footer-promotion-links span{color:#c3c4c7;padding:0 7px}body.post-type-soliloquy #wpfooter .soliloquy-footer-promotion-links,body.post-type-soliloquy #wpfooter .soliloquy-footer-promotion-social{display:flex;justify-content:center;align-items:center}body.post-type-soliloquy #wpfooter .soliloquy-footer-promotion-social{gap:10px;margin:0}#soliloquy-header-temp{position:relative;display:none}#soliloquy-header{display:flex;justify-content:space-between;align-items:center}@media(max-width: 599px){#soliloquy-header{padding-top:46px}}#soliloquy-header h1.soliloquy-logo{margin:0;margin-left:20px}#soliloquy-header h1.soliloquy-logo img{max-width:339px}@media(min-width: 600px)and (max-width: 767px){#soliloquy-header h1.soliloquy-logo img{width:90%}}#soliloquy-header .soliloquy-right{padding-right:20px}#soliloquy-header .soliloquy-notifications-inbox{position:relative}#soliloquy-header .soliloquy-notifications-inbox[data-count]:after{background:#e02626;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(-40%, 30%)}.soliloquy-nav-tab-wrapper{display:flex;flex-wrap:wrap;gap:0 30px;margin:0 0 20px -20px;padding:0 20px;background-color:#fff;list-style:none;font-size:14px;font-weight:400}.soliloquy-nav-tab-wrapper li{margin:0;padding:0}.soliloquy-nav-tab-wrapper li a{display:block;padding:15px 0 12px 0;line-height:30px;border-bottom:3px solid #fff;box-shadow:none;color:#2c3338;text-decoration:none}.soliloquy-nav-tab-wrapper .soliloquy-nav-tab:hover,.soliloquy-nav-tab-wrapper .soliloquy-nav-tab-active{border-bottom:4px solid #162937}.soliloquy-notifications-close:hover,.soliloquy-notifications-inbox:hover{cursor:pointer}.soliloquy-notifications-drawer{box-sizing:border-box;background:#fff;bottom:0;position:fixed;right:-400px;top:32px;transition:right 300ms ease 0s,visibility 0s ease 400ms;visibility:hidden;width:400px;z-index:1100;border:1px solid #ddd}.soliloquy-notifications-open .soliloquy-notifications-drawer{right:0;transition:right 300ms ease 0s,visibility 0s ease 0ms;visibility:visible}.soliloquy-notifications-overlay{background-color:rgba(0,0,0,.3);bottom:0;display:none;left:0;opacity:.5;position:fixed;right:0;top:46px;transition:.5s;z-index:1052}.folded .soliloquy-notifications-overlay{left:36px}.soliloquy-notifications-open .soliloquy-notifications-overlay{display:block}@media screen and (min-width: 783px){.soliloquy-notifications-overlay{left:36px}.admin-bar .soliloquy-notifications-overlay{top:32px}}@media screen and (min-width: 961px){.soliloquy-notifications-overlay{left:160px}.folded .soliloquy-notifications-overlay{left:36px}}.soliloquy-notifications-header{background:#eee;border-bottom:1px solid #ddd;padding:18px 40px 18px 20px}.soliloquy-notifications-header .soliloquy-notifications-close{position:absolute;right:18px;top:22px}.soliloquy-notifications-header .soliloquy-notifications-close path{fill:#3c434a}.soliloquy-notifications-header h3{color:#3c434a;display:inline-block;font-size:14px;font-weight:700;line-height:21px;margin:0 10px 0 0}.soliloquy-notifications-list{height:calc(100% - 130px);overflow:auto}.soliloquy-notifications-list ul{margin:0}.soliloquy-notifications-list li{border-bottom:1px solid #ddd;display:flex;margin:0;padding:24px;font-size:14px;color:rgba(60,67,74,.6)}.soliloquy-notifications-list li:first-child{border-top:none}.soliloquy-notifications-list li h4{color:#3c4249;font-size:14px;font-weight:600;line-height:21px;margin:0}.soliloquy-notifications-list p{color:rgba(60,67,74,.6);font-size:14px;margin:8px 0;margin-bottom:20px}.soliloquy-notifications-list p.soliloquy-start{font-size:12px}.soliloquy-notifications-list .soliloquy-button{padding:8px 14px;border-radius:4px;text-decoration:none;font-size:12px}.soliloquy-notifications-list .soliloquy-button.soliloquy-button-primary{background-color:#e02626;color:#fff}.soliloquy-notifications-list .soliloquy-button.soliloquy-button-secondary{border:1px solid #ddd}.soliloquy-button-text{font-size:12px;color:rgba(60,67,74,.6980392157)}.soliloquy-notification-actions .soliloquy-button{margin-right:10px}.soliloquy-notifications-footer{border-top:1px solid #ddd;padding:24px 27px;text-align:right}#soliloquy-dismissed-title,#soliloquy-notifications-show-active,.soliloquy-notifications-dismissed{display:none}.show-dismissed #soliloquy-notifications-show-dismissed,.show-dismissed .soliloquy-notifications-active,.show-dismissed #soliloquy-active-title{display:none}.show-dismissed #soliloquy-notifications-show-active,.show-dismissed #soliloquy-dismissed-title{display:inline-block}.show-dismissed .soliloquy-notifications-dismissed{display:block}.soliloquy-notifications-dismissed .soliloquy-notification-dismiss{display:none}.soliloquy-notification-icon{margin-right:10px}#soliloquy-header-temp{position:relative}#soliloquy-top-notification{position:relative;background-color:#162937;text-align:center;color:#fff;height:40px;margin-left:-20px;vertical-align:middle}#soliloquy-top-notification p{margin:0;padding:0;line-height:40px;font-size:16px}#soliloquy-top-notification a{color:#fff}#soliloquy-top-notification .soliloquy-dismiss{position:absolute;top:10px;right:10px}#soliloquy-header{background-color:#f0f0f0;height:120px;margin-left:-20px}#soliloquy-header #soliloquy-logo{margin:0;padding-top:25px;line-height:120px;margin-left:20px}#soliloquy-header #soliloquy-logo a{display:inline-flex;box-shadow:none}#soliloquy-header #soliloquy-logo a:focus-visible{outline:1px solid #162937}#soliloquy-header #soliloquy-logo img{max-width:288px}.wp-core-ui .soliloquy-primary-button,.wp-core-ui .button-soliloquy{background:#e02626;border-color:#e02626;-webkit-box-shadow:none;box-shadow:none;color:#fff;text-decoration:none;font-weight:500;text-shadow:none;line-height:15px;height:35px;font-size:13px;padding:0 20px 1px;min-height:0}.wp-core-ui .soliloquy-primary-button:focus,.wp-core-ui .soliloquy-primary-button:hover,.wp-core-ui .button-soliloquy:focus,.wp-core-ui .button-soliloquy:hover{background:#e02626;border-color:#e02626;color:#fff;opacity:.8;box-shadow:none}.wp-core-ui .button-soliloquy-secondary{background:#f7f7f7;border:1px solid;border-color:#ddd;-webkit-box-shadow:none;box-shadow:none;color:#23282d;text-decoration:none;text-shadow:none;font-weight:bold;height:35px;font-size:13px;padding:0 20px 1px}.wp-core-ui .button-soliloquy-secondary:focus,.wp-core-ui .button-soliloquy-secondary:hover{background:#f7f7f7;border-color:#999;color:#23282d;box-shadow:none}.wp-core-ui .button-soliloquy-delete{background:#e02626;border:1px solid;border-color:#e02626;-webkit-box-shadow:none;box-shadow:none;color:#fff;text-decoration:none;text-shadow:none;font-weight:bold;height:35px;font-size:13px;padding:0 20px 1px}.wp-core-ui .button-soliloquy-delete:focus,.wp-core-ui .button-soliloquy-delete:hover{background:#e02626;color:#fff;opacity:.8;box-shadow:none}.wp-core-ui a.button-soliloquy,.wp-core-ui a.button-soliloquy-secondary,.wp-core-ui a.button-soliloquy-delete{line-height:32px;min-height:0}.soliloquy-settings-tab{padding:20px;box-sizing:border-box}.soliloquy-settings-tab #soliloquy-refresh-submit{margin-left:10px}.soliloquy-settings-tab .soliloquy-hideme{display:none}.soliloquy-settings-tab .soliloquy-clear{clear:both}.soliloquy-settings-tab .soliloquy-clear:after{clear:both;content:".";display:block;height:0;line-height:0;overflow:auto;visibility:hidden;zoom:1}.soliloquy-settings-tab .soliloquy-gallery{margin:15px 0 20px}.soliloquy-settings-tab th{width:170px;padding-right:40px}@media(min-width: 600px)and (max-width: 767px){.soliloquy-settings-tab th{width:auto}}.soliloquy-settings-tab input[type=text],.soliloquy-settings-tab input[type=number],.soliloquy-settings-tab input[type=password],.soliloquy-settings-tab select,.soliloquy-settings-tab textarea{width:350px;padding-right:0;border:1px solid rgba(0,0,0,.1490196078);font-size:14px}@media(min-width: 600px)and (max-width: 767px){.soliloquy-settings-tab input[type=text],.soliloquy-settings-tab input[type=number],.soliloquy-settings-tab input[type=password],.soliloquy-settings-tab select,.soliloquy-settings-tab textarea{width:100%}}.soliloquy-settings-tab input[type=text],.soliloquy-settings-tab input[type=number],.soliloquy-settings-tab input[type=password]{height:40px}@media(min-width: 600px)and (max-width: 767px){.soliloquy-settings-tab input[type=text],.soliloquy-settings-tab input[type=number],.soliloquy-settings-tab input[type=password]{height:auto}}.soliloquy-settings-tab .button.soliloquy-verify-submit{height:39px}.soliloquy-settings-tab .green{color:#37993b}.soliloquy-settings-tab a.soliloquy-clipboard{width:33px;padding:0}.soliloquy-settings-tab #soliloquy-settings-submit{margin:40px 0 0 0px}.soliloquy-settings-tab #soliloquy-refresh-submit{vertical-align:baseline}.soliloquy-settings-tab .soliloquy-external-req{border:1px solid #e02626;border-radius:4px;padding:30px}.soliloquy-settings-tab .soliloquy-external-req h2{font-size:20px;margin:0;padding:0}.soliloquy-settings-tab .soliloquy-external-req-active{border:1px solid #7cc048;background-color:#fff;border-radius:4px;padding:30px}.soliloquy-settings-tab .soliloquy-external-req-active h2{font-size:20px;font-weight:600;margin:0;padding:0}.soliloquy-settings-tab .form-table th,.soliloquy-settings-tab .form-table td{padding-top:25px;padding-bottom:25px}@media(min-width: 768px)and (max-width: 991px){.soliloquy-settings-tab .form-table th{padding-top:40px;padding-bottom:10px;padding-right:0px !important}}@media(min-width: 600px)and (max-width: 767px){.soliloquy-settings-tab .form-table th{padding-top:40px;padding-bottom:10px;padding-right:0px !important}}@media(min-width: 768px)and (max-width: 991px){.soliloquy-settings-tab .form-table tr#soliloquy-settings-key-box th{padding-top:20px}}@media(min-width: 600px)and (max-width: 767px){.soliloquy-settings-tab .form-table tr#soliloquy-settings-key-box th{padding-top:20px}}@media(min-width: 768px)and (max-width: 991px){.soliloquy-settings-tab .form-table td{padding-top:0;padding-right:0px}}@media(min-width: 600px)and (max-width: 767px){.soliloquy-settings-tab .form-table td{padding-top:0;padding-right:0px}}.soliloquy-settings-tab .form-table td p{margin-bottom:15px}.soliloquy-settings-tab .form-table #soliloquy-image-gallery-settings-title h3{font-size:17px}.soliloquy-settings-tab .form-table #soliloquy-image-gallery-settings-title p{font-size:14px;color:rgba(60,67,74,.6980392157)}.soliloquy-settings-tab .form-table tr{border-bottom:1px solid #ddd}.soliloquy-settings-tab .form-table tr.no-bottom-border,.soliloquy-settings-tab .form-table tr.title{border-bottom:0}.soliloquy-settings-tab .form-table tr.no-bottom-border label,.soliloquy-settings-tab .form-table tr.title label{font-size:14px}.soliloquy-settings-tab .form-table tr.no-bottom-border h6,.soliloquy-settings-tab .form-table tr.title h6{font-size:14px;line-height:16px;margin:5px auto}.soliloquy-settings-tab table.form-table tr:first-of-type th,.soliloquy-settings-tab table.form-table tr:first-of-type td{padding-top:0}.soliloquy-settings-tab table.form-table input[type=checkbox]{margin-top:0px;float:left}.soliloquy-settings-tab .description{color:rgba(60,67,74,.6980392157);font-size:14px;margin-top:0px;margin-bottom:15px} \ No newline at end of file @@ -1,201 +1 @@ -#soliloquy-settings-content input:not([type="checkbox"]) { - background-color: #fff; - border: 1px solid #ddd; - -webkit-box-shadow: none; - box-shadow: none; - color: #32373c; - height: 35px; - outline: none; - -webkit-transition: 0.05s border-color ease-in-out; - transition: 0.05s border-color ease-in-out; -} -#soliloquy-settings-content input[type="checkbox"]:checked { - -color: #e02626; -} -#soliloquy-settings-content textarea { - width: 100%; -} -#soliloquy-settings-content input[type="password"].soliloquy-input { - background-color: #fff; - border: 1px solid #ddd; - -webkit-box-shadow: none; - box-shadow: none; - color: #32373c; - outline: none; - -webkit-transition: 0.05s border-color ease-in-out; - transition: 0.05s border-color ease-in-out; -} -input[type="password"].soliloquy-input { - background-color: #fff; - border: 1px solid #ddd; - -webkit-box-shadow: none; - box-shadow: none; - height: 35px; - color: #32373c; - outline: none; - -webkit-transition: 0.05s border-color ease-in-out; - transition: 0.05s border-color ease-in-out; -} -pre.soliloquy-code { - background-color: #ddd; - border-radius: 3px; - padding: 15px; -} -.soliloquy-clipboard { - display: block; - text-decoration: underline !important; - padding-top: 8px; - font-size: 11px; - outline: 0 !important; -} -.soliloquy-clipboard:focus { - outline-style: none; - box-shadow: none; - border-color: rgba(0, 0, 0, 0); -} -.soliloquy-code { - display: block; - background-color: #f7f7f7; - border-radius: 3px; - padding: 10px !important; -} -.soliloquy-list-inline { - margin: 0; - list-style: none; -} -.soliloquy-list-inline li { - display: inline-block; - margin-right: 5px; -} -.soliloquy-list-inline li:last-child { - margin-right: 0 !important; -} -.soliloquy-yt iframe { - max-width: 100%; - height: auto; -} -.soliloquy-hidden { - display: none !important; -} -.soliloquy-hideme { - visibility: hidden; -} -.soliloquy-no-border { - border: none !important; -} -.soliloquy-right { - float: right; -} -.soliloquy-left { - float: left; -} -.soliloquy-clearfix { - clear: both; - display: block; - height: 0; - overflow: hidden; - visibility: hidden; - width: 0; -} -.no-margin { - margin: 0 !important; -} -.no-margin-top { - margin-top: 0 !important; -} -.no-margin-bottom { - margin-bottom: 0 !important; -} -[data-soliloquy-tooltip] { - position: relative; - z-index: 2; - cursor: pointer; -} -[data-soliloquy-tooltip]:before, -[data-soliloquy-tooltip]:after { - visibility: hidden; - opacity: 0; - pointer-events: none; -} -[data-soliloquy-tooltip]:before { - position: absolute; - bottom: 120%; - left: 50%; - margin-bottom: 5px; - margin-left: -35px; - padding: 7px; - width: 60px; - -webkit-border-radius: 3px; - -moz-border-radius: 3px; - border-radius: 3px; - background-color: #000; - color: #fff; - content: attr(data-soliloquy-tooltip); - text-align: center; - font-size: 12px; - line-height: 1.2; -} -[data-soliloquy-tooltip]:after { - position: absolute; - bottom: 120%; - left: 50%; - width: 0; - margin-left: -5px; - border-top: 5px solid #000; - border-right: 5px solid rgba(0, 0, 0, 0); - border-left: 5px solid rgba(0, 0, 0, 0); - content: " "; - font-size: 0; - line-height: 0; -} -[data-soliloquy-tooltip]:hover:before, -[data-soliloquy-tooltip]:hover:after { - visibility: visible; - opacity: 1; -} -[class*="soliloquy-grid-"] { - float: left; - margin-left: 2%; -} -[class*="soliloquy-grid-"] input[type="text"] { - width: 100% !important; -} -.soliloquy-grid-1 { - width: 6.5%; -} -.soliloquy-grid-2 { - width: 15%; -} -.soliloquy-grid-3 { - width: 23.5%; -} -.soliloquy-grid-4 { - width: 32%; -} -.soliloquy-grid-5 { - width: 40.5%; -} -.soliloquy-grid-6 { - width: 49%; -} -.soliloquy-grid-7 { - width: 57.5%; -} -.soliloquy-grid-8 { - width: 66%; -} -.soliloquy-grid-9 { - width: 74.5%; -} -.soliloquy-grid-10 { - width: 83%; -} -.soliloquy-grid-11 { - width: 91.5%; -} -.soliloquy-grid-12 { - width: 100%; -} -.soliloquy-first { - margin-left: 0px; -} +#soliloquy-settings-content input:not([type=checkbox]){background-color:#fff;border:1px solid #ddd;-webkit-box-shadow:none;box-shadow:none;color:#32373c;height:35px;outline:none;-webkit-transition:.05s border-color ease-in-out;transition:.05s border-color ease-in-out}#soliloquy-settings-content input[type=checkbox]:checked{-color:#e02626}#soliloquy-settings-content textarea{width:100%}#soliloquy-settings-content input[type=password].soliloquy-input{background-color:#fff;border:1px solid #ddd;-webkit-box-shadow:none;box-shadow:none;color:#32373c;outline:none;-webkit-transition:.05s border-color ease-in-out;transition:.05s border-color ease-in-out}input[type=password].soliloquy-input{background-color:#fff;border:1px solid #ddd;-webkit-box-shadow:none;box-shadow:none;height:35px;color:#32373c;outline:none;-webkit-transition:.05s border-color ease-in-out;transition:.05s border-color ease-in-out}pre.soliloquy-code{background-color:#ddd;border-radius:3px;padding:15px}.soliloquy-clipboard{display:block;text-decoration:underline !important;padding-top:8px;font-size:11px;outline:0 !important}.soliloquy-clipboard:focus{outline-style:none;box-shadow:none;border-color:rgba(0,0,0,0)}.soliloquy-code{display:block;background-color:#f7f7f7;border-radius:3px;padding:10px !important}.soliloquy-list-inline{margin:0;list-style:none}.soliloquy-list-inline li{display:inline-block;margin-right:5px}.soliloquy-list-inline li:last-child{margin-right:0 !important}.soliloquy-yt iframe{max-width:100%;height:auto}.soliloquy-hidden{display:none !important}.soliloquy-hideme{visibility:hidden}.soliloquy-no-border{border:none !important}.soliloquy-right{float:right}.soliloquy-left{float:left}.soliloquy-clearfix{clear:both;display:block;height:0;overflow:hidden;visibility:hidden;width:0}.no-margin{margin:0 !important}.no-margin-top{margin-top:0 !important}.no-margin-bottom{margin-bottom:0 !important}[data-soliloquy-tooltip]{position:relative;z-index:2;cursor:pointer}[data-soliloquy-tooltip]:before,[data-soliloquy-tooltip]:after{visibility:hidden;opacity:0;pointer-events:none}[data-soliloquy-tooltip]:before{position:absolute;bottom:120%;left:50%;margin-bottom:5px;margin-left:-35px;padding:7px;width:60px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;background-color:#000;color:#fff;content:attr(data-soliloquy-tooltip);text-align:center;font-size:12px;line-height:1.2}[data-soliloquy-tooltip]:after{position:absolute;bottom:120%;left:50%;width:0;margin-left:-5px;border-top:5px solid #000;border-right:5px solid rgba(0,0,0,0);border-left:5px solid rgba(0,0,0,0);content:" ";font-size:0;line-height:0}[data-soliloquy-tooltip]:hover:before,[data-soliloquy-tooltip]:hover:after{visibility:visible;opacity:1}[class*=soliloquy-grid-]{float:left;margin-left:2%}[class*=soliloquy-grid-] input[type=text]{width:100% !important}.soliloquy-grid-1{width:6.5%}.soliloquy-grid-2{width:15%}.soliloquy-grid-3{width:23.5%}.soliloquy-grid-4{width:32%}.soliloquy-grid-5{width:40.5%}.soliloquy-grid-6{width:49%}.soliloquy-grid-7{width:57.5%}.soliloquy-grid-8{width:66%}.soliloquy-grid-9{width:74.5%}.soliloquy-grid-10{width:83%}.soliloquy-grid-11{width:91.5%}.soliloquy-grid-12{width:100%}.soliloquy-first{margin-left:0px} \ No newline at end of file @@ -1,51 +1 @@ -body.branch-4-3 div.media-modal a.media-modal-close, -body.branch-4-4 div.media-modal a.media-modal-close { - text-align: center; - text-decoration: none; - display: inline-block; -} -body.branch-4-3 div.media-modal a.media-modal-close span, -body.branch-4-4 div.media-modal a.media-modal-close span { - display: inline-block; - margin-top: 17px; -} -.soliloquy-meta.attachments .attachment { - width: 200px; - height: 200px; - border: none !important; -} -.soliloquy-meta.attachments .attachment.selected { - width: 200px; - height: 200px; -} -.soliloquy-meta.attachments .attachment .attachment-preview { - width: 100%; - height: 100%; - border: none !important; -} -.soliloquy-meta.attachments .attachment .attachment-preview:before { - padding-top: 0; - border: none !important; -} -.soliloquy-meta.attachments .attachment .attachment-preview .thumbnail { - display: table; - position: relative; - top: auto; - right: auto; - bottom: auto; - left: auto; - border: none !important; -} -.soliloquy-meta.attachments .attachment .attachment-preview .thumbnail:after { - box-shadow: none; - -webkit-box-shadow: none; - -moz-box-shadow: none; -} -.soliloquy-meta.attachments .attachment .attachment-preview .thumbnail .inside { - display: table-cell; - width: 200px; - height: 200px; - text-align: center; - vertical-align: middle; - border: none !important; -} +body.branch-4-3 div.media-modal a.media-modal-close,body.branch-4-4 div.media-modal a.media-modal-close{text-align:center;text-decoration:none;display:inline-block}body.branch-4-3 div.media-modal a.media-modal-close span,body.branch-4-4 div.media-modal a.media-modal-close span{display:inline-block;margin-top:17px}.soliloquy-meta.attachments .attachment{width:200px;height:200px;border:none !important}.soliloquy-meta.attachments .attachment.selected{width:200px;height:200px}.soliloquy-meta.attachments .attachment .attachment-preview{width:100%;height:100%;border:none !important}.soliloquy-meta.attachments .attachment .attachment-preview:before{padding-top:0;border:none !important}.soliloquy-meta.attachments .attachment .attachment-preview .thumbnail{display:table;position:relative;top:auto;right:auto;bottom:auto;left:auto;border:none !important}.soliloquy-meta.attachments .attachment .attachment-preview .thumbnail:after{box-shadow:none;-webkit-box-shadow:none;-moz-box-shadow:none}.soliloquy-meta.attachments .attachment .attachment-preview .thumbnail .inside{display:table-cell;width:200px;height:200px;text-align:center;vertical-align:middle;border:none !important} @@ -1,321 +1,4 @@ -@font-face { - font-family: "soliloquy"; - src: url("../fonts/soliloquy.eot"); - src: - url("../fonts/soliloquy.eot?#iefix") format("embedded-opentype"), - url("../fonts/soliloquy.woff") format("woff"), - url("../fonts/soliloquy.ttf") format("truetype"), - url("../fonts/soliloquy.svg#soliloquy") format("svg"); - font-weight: normal; - font-style: normal; -} -[class*="soliloquy-icon-"]:before { - display: inline-block; - font-family: "soliloquy"; - font-style: normal; - font-weight: normal; - font-size: 13px; - line-height: 1.5; - margin-right: 8px; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} -.soliloquy-icon-configuration:before { - content: "A"; -} -.soliloquy-icon-soliloquy:before { - content: "B"; -} -.soliloquy-icon-pinterest:before { - content: "C"; -} -.soliloquy-icon-lightbox:before { - content: "D"; -} -.soliloquy-icon-misc:before { - content: "E"; -} -.soliloquy-icon-mobile:before { - content: "F"; -} -.soliloquy-icon-pagination:before { - content: "G"; -} -.soliloquy-icon-proofing:before { - content: "H"; -} -.soliloquy-icon-slideshow:before { - content: "I"; -} -.soliloquy-icon-tags:before { - content: "J"; -} -.soliloquy-icon-thumbnails:before { - content: "K"; -} -.soliloquy-icon-video:before { - content: "L"; -} -.soliloquy-icon-watermark:before { - content: "M"; -} -.soliloquy-icon-cloud-download:before { - content: "N"; -} -.soliloquy-icon-toggle-on:before { - content: "O"; -} -.soliloquy-icon-plus-circle:before { - content: "P"; -} -.soliloquy-icon-list:before { - content: "R"; -} -.soliloquy-icon-grid:before { - content: "S"; -} -.soliloquy-icon-pencil:before { - content: "U"; -} -.soliloquy-icon-close:before { - content: "V"; -} -.soliloquy-icon-check:before { - content: "W"; -} -.soliloquy-icon-schedule:before { - content: "X"; -} -.soliloquy-icon-carousel:before { - content: "Y"; -} -#soliloquy-header-temp { - position: relative; -} -#soliloquy-top-notification { - position: relative; - background-color: #162937; - text-align: center; - color: #fff; - height: 40px; - margin-left: -20px; - vertical-align: middle; -} -#soliloquy-top-notification p { - margin: 0; - padding: 0; - line-height: 40px; - font-size: 16px; -} -#soliloquy-top-notification a { - color: #fff; -} -#soliloquy-top-notification .soliloquy-dismiss { - position: absolute; - top: 10px; - right: 10px; -} -#soliloquy-settings-content input:not([type="checkbox"]) { - background-color: #fff; - border: 1px solid #ddd; - -webkit-box-shadow: none; - box-shadow: none; - color: #32373c; - height: 35px; - outline: none; - -webkit-transition: 0.05s border-color ease-in-out; - transition: 0.05s border-color ease-in-out; -} -#soliloquy-settings-content input[type="checkbox"]:checked { - -color: #e02626; -} -#soliloquy-settings-content textarea { - width: 100%; -} -#soliloquy-settings-content input[type="password"].soliloquy-input { - background-color: #fff; - border: 1px solid #ddd; - -webkit-box-shadow: none; - box-shadow: none; - color: #32373c; - outline: none; - -webkit-transition: 0.05s border-color ease-in-out; - transition: 0.05s border-color ease-in-out; -} -input[type="password"].soliloquy-input { - background-color: #fff; - border: 1px solid #ddd; - -webkit-box-shadow: none; - box-shadow: none; - height: 35px; - color: #32373c; - outline: none; - -webkit-transition: 0.05s border-color ease-in-out; - transition: 0.05s border-color ease-in-out; -} -pre.soliloquy-code { - background-color: #ddd; - border-radius: 3px; - padding: 15px; -} -.soliloquy-clipboard { - display: block; - text-decoration: underline !important; - padding-top: 8px; - font-size: 11px; - outline: 0 !important; -} -.soliloquy-clipboard:focus { - outline-style: none; - box-shadow: none; - border-color: rgba(0, 0, 0, 0); -} -.soliloquy-code { - display: block; - background-color: #f7f7f7; - border-radius: 3px; - padding: 10px !important; -} -.soliloquy-list-inline { - margin: 0; - list-style: none; -} -.soliloquy-list-inline li { - display: inline-block; - margin-right: 5px; -} -.soliloquy-list-inline li:last-child { - margin-right: 0 !important; -} -.soliloquy-yt iframe { - max-width: 100%; - height: auto; -} -.soliloquy-hidden { - display: none !important; -} -.soliloquy-hideme { - visibility: hidden; -} -.soliloquy-no-border { - border: none !important; -} -.soliloquy-right { - float: right; -} -.soliloquy-left { - float: left; -} -.soliloquy-clearfix { - clear: both; - display: block; - height: 0; - overflow: hidden; - visibility: hidden; - width: 0; -} -.no-margin { - margin: 0 !important; -} -.no-margin-top { - margin-top: 0 !important; -} -.no-margin-bottom { - margin-bottom: 0 !important; -} -[data-soliloquy-tooltip] { - position: relative; - z-index: 2; - cursor: pointer; -} -[data-soliloquy-tooltip]:before, -[data-soliloquy-tooltip]:after { - visibility: hidden; - opacity: 0; - pointer-events: none; -} -[data-soliloquy-tooltip]:before { - position: absolute; - bottom: 120%; - left: 50%; - margin-bottom: 5px; - margin-left: -35px; - padding: 7px; - width: 60px; - -webkit-border-radius: 3px; - -moz-border-radius: 3px; - border-radius: 3px; - background-color: #000; - color: #fff; - content: attr(data-soliloquy-tooltip); - text-align: center; - font-size: 12px; - line-height: 1.2; -} -[data-soliloquy-tooltip]:after { - position: absolute; - bottom: 120%; - left: 50%; - width: 0; - margin-left: -5px; - border-top: 5px solid #000; - border-right: 5px solid rgba(0, 0, 0, 0); - border-left: 5px solid rgba(0, 0, 0, 0); - content: " "; - font-size: 0; - line-height: 0; -} -[data-soliloquy-tooltip]:hover:before, -[data-soliloquy-tooltip]:hover:after { - visibility: visible; - opacity: 1; -} -[class*="soliloquy-grid-"] { - float: left; - margin-left: 2%; -} -[class*="soliloquy-grid-"] input[type="text"] { - width: 100% !important; -} -.soliloquy-grid-1 { - width: 6.5%; -} -.soliloquy-grid-2 { - width: 15%; -} -.soliloquy-grid-3 { - width: 23.5%; -} -.soliloquy-grid-4 { - width: 32%; -} -.soliloquy-grid-5 { - width: 40.5%; -} -.soliloquy-grid-6 { - width: 49%; -} -.soliloquy-grid-7 { - width: 57.5%; -} -.soliloquy-grid-8 { - width: 66%; -} -.soliloquy-grid-9 { - width: 74.5%; -} -.soliloquy-grid-10 { - width: 83%; -} -.soliloquy-grid-11 { - width: 91.5%; -} -.soliloquy-grid-12 { - width: 100%; -} -.soliloquy-first { - margin-left: 0px; -} /*! +@font-face{font-family:"soliloquy";src:url("../fonts/soliloquy.eot");src:url("../fonts/soliloquy.eot?#iefix") format("embedded-opentype"),url("../fonts/soliloquy.woff") format("woff"),url("../fonts/soliloquy.ttf") format("truetype"),url("../fonts/soliloquy.svg#soliloquy") format("svg");font-weight:normal;font-style:normal}[class*=soliloquy-icon-]:before{display:inline-block;font-family:"soliloquy";font-style:normal;font-weight:normal;font-size:13px;line-height:1.5;margin-right:8px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.soliloquy-icon-configuration:before{content:"A"}.soliloquy-icon-soliloquy:before{content:"B"}.soliloquy-icon-pinterest:before{content:"C"}.soliloquy-icon-lightbox:before{content:"D"}.soliloquy-icon-misc:before{content:"E"}.soliloquy-icon-mobile:before{content:"F"}.soliloquy-icon-pagination:before{content:"G"}.soliloquy-icon-proofing:before{content:"H"}.soliloquy-icon-slideshow:before{content:"I"}.soliloquy-icon-tags:before{content:"J"}.soliloquy-icon-thumbnails:before{content:"K"}.soliloquy-icon-video:before{content:"L"}.soliloquy-icon-watermark:before{content:"M"}.soliloquy-icon-cloud-download:before{content:"N"}.soliloquy-icon-toggle-on:before{content:"O"}.soliloquy-icon-plus-circle:before{content:"P"}.soliloquy-icon-list:before{content:"R"}.soliloquy-icon-grid:before{content:"S"}.soliloquy-icon-pencil:before{content:"U"}.soliloquy-icon-close:before{content:"V"}.soliloquy-icon-check:before{content:"W"}.soliloquy-icon-schedule:before{content:"X"}.soliloquy-icon-carousel:before{content:"Y"}#soliloquy-header-temp{position:relative}#soliloquy-top-notification{position:relative;background-color:#162937;text-align:center;color:#fff;height:40px;margin-left:-20px;vertical-align:middle}#soliloquy-top-notification p{margin:0;padding:0;line-height:40px;font-size:16px}#soliloquy-top-notification a{color:#fff}#soliloquy-top-notification .soliloquy-dismiss{position:absolute;top:10px;right:10px}#soliloquy-settings-content input:not([type=checkbox]){background-color:#fff;border:1px solid #ddd;-webkit-box-shadow:none;box-shadow:none;color:#32373c;height:35px;outline:none;-webkit-transition:.05s border-color ease-in-out;transition:.05s border-color ease-in-out}#soliloquy-settings-content input[type=checkbox]:checked{-color:#e02626}#soliloquy-settings-content textarea{width:100%}#soliloquy-settings-content input[type=password].soliloquy-input{background-color:#fff;border:1px solid #ddd;-webkit-box-shadow:none;box-shadow:none;color:#32373c;outline:none;-webkit-transition:.05s border-color ease-in-out;transition:.05s border-color ease-in-out}input[type=password].soliloquy-input{background-color:#fff;border:1px solid #ddd;-webkit-box-shadow:none;box-shadow:none;height:35px;color:#32373c;outline:none;-webkit-transition:.05s border-color ease-in-out;transition:.05s border-color ease-in-out}pre.soliloquy-code{background-color:#ddd;border-radius:3px;padding:15px}.soliloquy-clipboard{display:block;text-decoration:underline !important;padding-top:8px;font-size:11px;outline:0 !important}.soliloquy-clipboard:focus{outline-style:none;box-shadow:none;border-color:rgba(0,0,0,0)}.soliloquy-code{display:block;background-color:#f7f7f7;border-radius:3px;padding:10px !important}.soliloquy-list-inline{margin:0;list-style:none}.soliloquy-list-inline li{display:inline-block;margin-right:5px}.soliloquy-list-inline li:last-child{margin-right:0 !important}.soliloquy-yt iframe{max-width:100%;height:auto}.soliloquy-hidden{display:none !important}.soliloquy-hideme{visibility:hidden}.soliloquy-no-border{border:none !important}.soliloquy-right{float:right}.soliloquy-left{float:left}.soliloquy-clearfix{clear:both;display:block;height:0;overflow:hidden;visibility:hidden;width:0}.no-margin{margin:0 !important}.no-margin-top{margin-top:0 !important}.no-margin-bottom{margin-bottom:0 !important}[data-soliloquy-tooltip]{position:relative;z-index:2;cursor:pointer}[data-soliloquy-tooltip]:before,[data-soliloquy-tooltip]:after{visibility:hidden;opacity:0;pointer-events:none}[data-soliloquy-tooltip]:before{position:absolute;bottom:120%;left:50%;margin-bottom:5px;margin-left:-35px;padding:7px;width:60px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;background-color:#000;color:#fff;content:attr(data-soliloquy-tooltip);text-align:center;font-size:12px;line-height:1.2}[data-soliloquy-tooltip]:after{position:absolute;bottom:120%;left:50%;width:0;margin-left:-5px;border-top:5px solid #000;border-right:5px solid rgba(0,0,0,0);border-left:5px solid rgba(0,0,0,0);content:" ";font-size:0;line-height:0}[data-soliloquy-tooltip]:hover:before,[data-soliloquy-tooltip]:hover:after{visibility:visible;opacity:1}[class*=soliloquy-grid-]{float:left;margin-left:2%}[class*=soliloquy-grid-] input[type=text]{width:100% !important}.soliloquy-grid-1{width:6.5%}.soliloquy-grid-2{width:15%}.soliloquy-grid-3{width:23.5%}.soliloquy-grid-4{width:32%}.soliloquy-grid-5{width:40.5%}.soliloquy-grid-6{width:49%}.soliloquy-grid-7{width:57.5%}.soliloquy-grid-8{width:66%}.soliloquy-grid-9{width:74.5%}.soliloquy-grid-10{width:83%}.soliloquy-grid-11{width:91.5%}.soliloquy-grid-12{width:100%}.soliloquy-first{margin-left:0px}/*! Chosen, a Select Box Enhancer for jQuery and Prototype by Patrick Filler for Harvest, http://getharvest.com @@ -325,553 +8,4 @@ MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md This file is generated by `grunt build`, do not edit it by hand. -*/ -.soliloquy-select * { - box-shadow: none !important; - background-image: none !important; -} -.soliloquy-select *:after { - background-image: none !important; -} -.soliloquy-select .soliloquy-chosen { - height: 35px; - max-width: 350px; - width: 100%; -} -.soliloquy-select .chosen-container { - position: relative; - display: inline-block; - vertical-align: middle; - font-size: 13px; - -webkit-user-select: none; - -moz-user-select: none; - user-select: none; - max-width: 350px; - font-weight: 600; -} -.soliloquy-select .chosen-container * { - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; -} -.soliloquy-select .chosen-container .chosen-drop { - position: absolute; - top: 100%; - left: -9999px; - z-index: 1010; - width: 100%; - border: 1px solid #ddd; - border-top: 0; - background: #fff; -} -.soliloquy-select .chosen-container.chosen-with-drop .chosen-drop { - left: 0; -} -.soliloquy-select .chosen-container a { - cursor: pointer; -} -.soliloquy-select .chosen-container .search-choice .group-name, -.soliloquy-select .chosen-container .chosen-single .group-name { - margin-right: 4px; - overflow: hidden; - white-space: nowrap; - text-overflow: ellipsis; - font-weight: normal; - color: #999; -} -.soliloquy-select .chosen-container .search-choice .group-name:after, -.soliloquy-select .chosen-container .chosen-single .group-name:after { - content: ":"; - padding-left: 2px; - vertical-align: top; -} -.soliloquy-select .chosen-container-single .chosen-single { - position: relative; - display: block; - overflow: hidden; - padding: 0 0 0 8px; - height: 35px; - border: 1px solid #ddd; - border-radius: 3px; - background: #fff; - background-clip: padding-box; - color: #444; - text-decoration: none; - white-space: nowrap; - line-height: 35px; -} -.soliloquy-select .chosen-container-single .chosen-default { - color: #999; -} -.soliloquy-select .chosen-container-single .chosen-single span { - display: block; - overflow: hidden; - margin-right: 26px; - text-overflow: ellipsis; - white-space: nowrap; -} -.soliloquy-select .chosen-container-single .chosen-single-with-deselect span { - margin-right: 38px; -} -.soliloquy-select .chosen-container-single .chosen-single abbr { - position: absolute; - top: 6px; - right: 26px; - display: block; - width: 12px; - height: 12px; - font-size: 1px; -} -.soliloquy-select .chosen-container-single .chosen-single abbr:hover { - background-position: -42px -10px; -} -.soliloquy-select .chosen-container-single.chosen-disabled .chosen-single abbr:hover { - background-position: -42px -10px; -} -.soliloquy-select .chosen-container-single .chosen-single div { - border-left: 1px solid #ddd; - position: absolute; - top: 0; - right: 0; - display: block; - width: 30px; - height: 100%; - padding-left: 9px; -} -.soliloquy-select .chosen-container-single .chosen-single div b { - display: block; - width: 100%; - height: 100%; - line-height: 35px; -} -.soliloquy-select .chosen-container-single .chosen-single div b:before { - content: "Q"; - display: block; - font-weight: normal; - font-size: 8px !important; - font-family: "soliloquy"; - position: absolute; - text-align: center; -} -.soliloquy-select .chosen-container-single .chosen-search { - position: relative; - z-index: 1010; - margin: 0; - padding: 3px 4px; - white-space: nowrap; -} -.soliloquy-select .chosen-container-single .chosen-search input[type="text"] { - margin: 1px 0; - padding: 4px 20px 4px 5px; - width: 100%; - height: auto; - outline: 0; - border: 1px solid #ddd; - background: #fff url("chosen-sprite.png") no-repeat 100% -20px; - background: url("chosen-sprite.png") no-repeat 100% -20px; - font-size: 1em; - font-family: sans-serif; - line-height: normal; - border-radius: 0; -} -.soliloquy-select .chosen-container-single .chosen-drop { - margin-top: -1px; - border-radius: 0 0 2px 2px; - background-clip: padding-box; -} -.soliloquy-select .chosen-container-single.chosen-container-single-nosearch .chosen-search { - position: absolute; - left: -9999px; -} -.soliloquy-select .chosen-container .chosen-results { - color: #444; - position: relative; - overflow-x: hidden; - overflow-y: auto; - margin: 0 4px 4px 0; - padding: 0 0 0 4px; - max-height: 240px; - -webkit-overflow-scrolling: touch; -} -.soliloquy-select .chosen-container .chosen-results li { - display: none; - margin: 0; - padding: 5px 6px; - list-style: none; - line-height: 15px; - word-wrap: break-word; - -webkit-touch-callout: none; -} -.soliloquy-select .chosen-container .chosen-results li.active-result { - display: list-item; - cursor: pointer; -} -.soliloquy-select .chosen-container .chosen-results li.disabled-result { - display: list-item; - color: #ccc; - cursor: default; -} -.soliloquy-select .chosen-container .chosen-results li.highlighted { - background: #e02626; - color: #fff; -} -.soliloquy-select .chosen-container .chosen-results li.no-results { - color: #777; - display: list-item; - background: #f4f4f4; -} -.soliloquy-select .chosen-container .chosen-results li.group-result { - display: list-item; - font-weight: bold; - cursor: default; -} -.soliloquy-select .chosen-container .chosen-results li.group-option { - padding-left: 15px; -} -.soliloquy-select .chosen-container .chosen-results li em { - font-style: normal; - text-decoration: underline; -} -.soliloquy-select .chosen-container-multi .chosen-choices { - position: relative; - overflow: hidden; - margin: 0; - padding: 0 5px; - width: 100%; - height: auto !important; - height: 1%; - border: 1px solid #ddd; - background: #fff; - cursor: text; -} -.soliloquy-select .chosen-container-multi .chosen-choices li { - float: left; - list-style: none; -} -.soliloquy-select .chosen-container-multi .chosen-choices li.search-field { - margin: 0; - padding: 0; - white-space: nowrap; -} -.soliloquy-select .chosen-container-multi .chosen-choices li.search-field input[type="text"] { - margin: 1px 0; - padding: 0; - height: 25px; - outline: 0; - border: 0 !important; - background: rgba(0, 0, 0, 0) !important; - box-shadow: none; - color: #999; - font-size: 100%; - font-family: sans-serif; - line-height: normal; - border-radius: 0; -} -.soliloquy-select .chosen-container-multi .chosen-choices li.search-choice { - position: relative; - margin: 3px 5px 3px 0; - padding: 3px 20px 3px 5px; - border: 1px solid #ddd; - max-width: 100%; - border-radius: 2px; - background: #fff; - background-size: 100% 19px; - background-repeat: repeat-x; - background-clip: padding-box; - box-shadow: - 0 0 2px #fff inset, - 0 1px 0 rgba(0, 0, 0, 0.05); - color: #333; - line-height: 13px; - cursor: default; -} -.soliloquy-select .chosen-container-multi .chosen-choices li.search-choice span { - word-wrap: break-word; -} -.soliloquy-select .chosen-container-multi .chosen-choices li.search-choice .search-choice-close { - position: absolute; - top: 4px; - right: 3px; - display: block; - width: 12px; - height: 12px; - background: url("chosen-sprite.png") -42px 1px no-repeat; - font-size: 1px; -} -.soliloquy-select - .chosen-container-multi - .chosen-choices - li.search-choice - .search-choice-close:hover { - background-position: -42px -10px; -} -.soliloquy-select .chosen-container-multi .chosen-choices li.search-choice-disabled { - padding-right: 5px; - border: 1px solid #ddd; - background: #e4e4e4; - color: #666; -} -.soliloquy-select .chosen-container-multi .chosen-choices li.search-choice-focus { - background: #d4d4d4; -} -.soliloquy-select - .chosen-container-multi - .chosen-choices - li.search-choice-focus - .search-choice-close { - background-position: -42px -10px; -} -.soliloquy-select .chosen-container-multi .chosen-results { - margin: 0; - padding: 0; -} -.soliloquy-select .chosen-container-multi .chosen-drop .result-selected { - display: list-item; - color: #ccc; - cursor: default; -} -.soliloquy-select .chosen-container-active .chosen-single { - border: 1px solid #ddd; -} -.soliloquy-select .chosen-container-active.chosen-with-drop .chosen-single { - border: 1px solid #ddd; - -moz-border-radius-bottomright: 0; - border-bottom-right-radius: 0; - -moz-border-radius-bottomleft: 0; - border-bottom-left-radius: 0; - background: #fff; -} -.soliloquy-select .chosen-container-active.chosen-with-drop .chosen-single div { - border-left: 1px solid rgba(0, 0, 0, 0); - background: rgba(0, 0, 0, 0); -} -.soliloquy-select .chosen-container-active.chosen-with-drop .chosen-single div b { - background-position: -18px 2px; -} -.soliloquy-select .chosen-container-active .chosen-choices { - border: 1px solid #5897fb; - box-shadow: 0 0 5px rgba(0, 0, 0, 0.3); -} -.soliloquy-select .chosen-container-active .chosen-choices li.search-field input[type="text"] { - color: #222 !important; -} -.soliloquy-select .chosen-disabled { - opacity: 0.5 !important; - cursor: default; -} -.soliloquy-select .chosen-disabled .chosen-single { - cursor: default; -} -.soliloquy-select .chosen-disabled .chosen-choices .search-choice .search-choice-close { - cursor: default; -} -.soliloquy-select .chosen-rtl { - text-align: right; -} -.soliloquy-select .chosen-rtl .chosen-single { - overflow: visible; - padding: 0 8px 0 0; -} -.soliloquy-select .chosen-rtl .chosen-single span { - margin-right: 0; - margin-left: 26px; - direction: rtl; -} -.soliloquy-select .chosen-rtl .chosen-single-with-deselect span { - margin-left: 38px; -} -.soliloquy-select .chosen-rtl .chosen-single div { - right: auto; - left: 3px; -} -.soliloquy-select .chosen-rtl .chosen-single abbr { - right: auto; - left: 26px; -} -.soliloquy-select .chosen-rtl .chosen-choices li { - float: right; -} -.soliloquy-select .chosen-rtl .chosen-choices li.search-field input[type="text"] { - direction: rtl; -} -.soliloquy-select .chosen-rtl .chosen-choices li.search-choice { - margin: 3px 5px 3px 0; - padding: 3px 5px 3px 19px; -} -.soliloquy-select .chosen-rtl .chosen-choices li.search-choice .search-choice-close { - right: auto; - left: 4px; -} -.soliloquy-select .chosen-rtl.chosen-container-single-nosearch .chosen-search, -.soliloquy-select .chosen-rtl .chosen-drop { - left: 9999px; -} -.soliloquy-select .chosen-rtl.chosen-container-single .chosen-results { - margin: 0 0 4px 4px; - padding: 0 4px 0 0; -} -.soliloquy-select .chosen-rtl .chosen-results li.group-option { - padding-right: 15px; - padding-left: 0; -} -.soliloquy-select .chosen-rtl.chosen-container-active.chosen-with-drop .chosen-single div { - border-right: none; -} -.soliloquy-select .chosen-rtl .chosen-search input[type="text"] { - padding: 4px 5px 4px 20px; - background: #fff url("chosen-sprite.png") no-repeat -30px -20px; - background: url("chosen-sprite.png") no-repeat -30px -20px; - direction: rtl; -} -.soliloquy-select .chosen-rtl.chosen-container-single .chosen-single div b { - background-position: 6px 2px; -} -.soliloquy-select .chosen-rtl.chosen-container-single.chosen-with-drop .chosen-single div b { - background-position: -12px 2px; -} -@media only screen and (-webkit-min-device-pixel-ratio: 1.5), - only screen and (min-resolution: 144dpi), only screen and (min-resolution: 1.5dppx) { - .soliloquy-select .chosen-rtl .chosen-search input[type="text"], - .soliloquy-select .chosen-container-single .chosen-single abbr, - .soliloquy-select .chosen-container-single .chosen-search input[type="text"], - .soliloquy-select .chosen-container-multi .chosen-choices .search-choice .search-choice-close, - .soliloquy-select .chosen-container .chosen-results-scroll-down span, - .soliloquy-select .chosen-container .chosen-results-scroll-up span { - background-image: none !important; - background-size: 52px 37px !important; - background-repeat: no-repeat !important; - } -} -.soliloquy-select - select.soliloquy-chosen - + .chosen-container.chosen-container-single - .chosen-single { - padding-right: 35px; -} -.post-type-soliloquy #wpbody-content h1 { - display: block; - margin: 0; - padding-left: 20px; - padding-right: 20px; - line-height: 40px; - font-size: 20px; - font-weight: 400; - background-color: #fff; - height: 45px; - margin-left: -20px; - margin-right: -20px; -} -.post-type-soliloquy .page-title-action { - display: inline-block; - margin-left: 4px; - padding: 4px 8px; - top: -47px; - margin-bottom: -38px; - left: 150px; - text-decoration: none; - border: none; - color: #e02626; - border-radius: 0; - background: none; - text-shadow: none; - font-weight: 600; - font-size: 13px; -} -.post-type-soliloquy .page-title-action:hover, -.post-type-soliloquy .page-title-action:active { - position: relative; - top: -47px; - margin-bottom: -38px; - left: 150px; -} -.post-type-soliloquy .page-title-action:hover { - background: none; - color: #999; -} -.post-type-soliloquy .page-title-action:before { - display: inline-block; - font-family: "soliloquy"; - content: "P"; - margin-right: 5px; - vertical-align: middle; -} -.post-type-soliloquy .wrap { - margin-top: 0px !important; -} -.post-type-soliloquy input[type="checkbox"] { - background-color: #fff; - border: 1px solid #ddd; - box-shadow: none; - margin-right: 10px; -} -.post-type-soliloquy input[type="checkbox"]:checked { - background-color: #7cc048; - border-color: #7cc048; -} -.post-type-soliloquy input[type="checkbox"]:checked:before { - color: #fff !important; -} -.post-type-soliloquy ul.subsubsub { - margin: 0 0 20px 0; - padding-left: 0px; -} -.post-type-soliloquy .column-image { - width: 85px !important; -} -.post-type-soliloquy form#posts-filter div.tablenav.top { - margin: 0 0 8px 0; -} -.post-type-soliloquy form#posts-filter .button { - height: 28px; - line-height: 26px; -} -.post-type-soliloquy #wpbody-content .inline-edit-row fieldset input[type="text"], -.post-type-soliloquy #wpbody-content .inline-edit-row fieldset input[type="number"], -.post-type-soliloquy #wpbody-content .inline-edit-row fieldset input[type="password"] { - background-color: #fff; - border: 1px solid #ddd; - -webkit-box-shadow: none; - box-shadow: none; - color: #32373c; - height: 35px; - outline: none; - -webkit-transition: 0.05s border-color ease-in-out; - transition: 0.05s border-color ease-in-out; - min-width: 210px; - max-width: 350px; - width: 100%; - border-radius: 3px; - padding-right: 0; -} -.post-type-soliloquy #wpbody-content .inline-edit-row fieldset select { - min-width: 275px; -} -.post-type-soliloquy #wpbody-content .inline-edit-row fieldset span.title { - font-style: normal; - font-weight: 600; - font-size: 13px; - min-width: 140px; -} -.post-type-soliloquy - #wpbody-content - td.colspanchange - fieldset.inline-edit-col-left - fieldset.inline-edit-date { - display: none; -} -.post-type-soliloquy - #wpbody-content - td.colspanchange - fieldset.inline-edit-col-left - div.inline-edit-group:last-child { - display: none; -} -tr.type-soliloquy th { - padding: 20px inherit !important; -} -tr.type-soliloquy td { - padding: 20px inherit; -} -.soliloquy-count { - display: none; -} +*/.soliloquy-select *{box-shadow:none !important;background-image:none !important}.soliloquy-select *:after{background-image:none !important}.soliloquy-select .soliloquy-chosen{height:35px;max-width:350px;width:100%}.soliloquy-select .chosen-container{position:relative;display:inline-block;vertical-align:middle;font-size:13px;-webkit-user-select:none;-moz-user-select:none;user-select:none;max-width:350px;font-weight:600}.soliloquy-select .chosen-container *{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.soliloquy-select .chosen-container .chosen-drop{position:absolute;top:100%;left:-9999px;z-index:1010;width:100%;border:1px solid #ddd;border-top:0;background:#fff}.soliloquy-select .chosen-container.chosen-with-drop .chosen-drop{left:0}.soliloquy-select .chosen-container a{cursor:pointer}.soliloquy-select .chosen-container .search-choice .group-name,.soliloquy-select .chosen-container .chosen-single .group-name{margin-right:4px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-weight:normal;color:#999}.soliloquy-select .chosen-container .search-choice .group-name:after,.soliloquy-select .chosen-container .chosen-single .group-name:after{content:":";padding-left:2px;vertical-align:top}.soliloquy-select .chosen-container-single .chosen-single{position:relative;display:block;overflow:hidden;padding:0 0 0 8px;height:35px;border:1px solid #ddd;border-radius:3px;background:#fff;background-clip:padding-box;color:#444;text-decoration:none;white-space:nowrap;line-height:35px}.soliloquy-select .chosen-container-single .chosen-default{color:#999}.soliloquy-select .chosen-container-single .chosen-single span{display:block;overflow:hidden;margin-right:26px;text-overflow:ellipsis;white-space:nowrap}.soliloquy-select .chosen-container-single .chosen-single-with-deselect span{margin-right:38px}.soliloquy-select .chosen-container-single .chosen-single abbr{position:absolute;top:6px;right:26px;display:block;width:12px;height:12px;font-size:1px}.soliloquy-select .chosen-container-single .chosen-single abbr:hover{background-position:-42px -10px}.soliloquy-select .chosen-container-single.chosen-disabled .chosen-single abbr:hover{background-position:-42px -10px}.soliloquy-select .chosen-container-single .chosen-single div{border-left:1px solid #ddd;position:absolute;top:0;right:0;display:block;width:30px;height:100%;padding-left:9px}.soliloquy-select .chosen-container-single .chosen-single div b{display:block;width:100%;height:100%;line-height:35px}.soliloquy-select .chosen-container-single .chosen-single div b:before{content:"Q";display:block;font-weight:normal;font-size:8px !important;font-family:"soliloquy";position:absolute;text-align:center}.soliloquy-select .chosen-container-single .chosen-search{position:relative;z-index:1010;margin:0;padding:3px 4px;white-space:nowrap}.soliloquy-select .chosen-container-single .chosen-search input[type=text]{margin:1px 0;padding:4px 20px 4px 5px;width:100%;height:auto;outline:0;border:1px solid #ddd;background:#fff url("chosen-sprite.png") no-repeat 100% -20px;background:url("chosen-sprite.png") no-repeat 100% -20px;font-size:1em;font-family:sans-serif;line-height:normal;border-radius:0}.soliloquy-select .chosen-container-single .chosen-drop{margin-top:-1px;border-radius:0 0 2px 2px;background-clip:padding-box}.soliloquy-select .chosen-container-single.chosen-container-single-nosearch .chosen-search{position:absolute;left:-9999px}.soliloquy-select .chosen-container .chosen-results{color:#444;position:relative;overflow-x:hidden;overflow-y:auto;margin:0 4px 4px 0;padding:0 0 0 4px;max-height:240px;-webkit-overflow-scrolling:touch}.soliloquy-select .chosen-container .chosen-results li{display:none;margin:0;padding:5px 6px;list-style:none;line-height:15px;word-wrap:break-word;-webkit-touch-callout:none}.soliloquy-select .chosen-container .chosen-results li.active-result{display:list-item;cursor:pointer}.soliloquy-select .chosen-container .chosen-results li.disabled-result{display:list-item;color:#ccc;cursor:default}.soliloquy-select .chosen-container .chosen-results li.highlighted{background:#e02626;color:#fff}.soliloquy-select .chosen-container .chosen-results li.no-results{color:#777;display:list-item;background:#f4f4f4}.soliloquy-select .chosen-container .chosen-results li.group-result{display:list-item;font-weight:bold;cursor:default}.soliloquy-select .chosen-container .chosen-results li.group-option{padding-left:15px}.soliloquy-select .chosen-container .chosen-results li em{font-style:normal;text-decoration:underline}.soliloquy-select .chosen-container-multi .chosen-choices{position:relative;overflow:hidden;margin:0;padding:0 5px;width:100%;height:auto !important;height:1%;border:1px solid #ddd;background:#fff;cursor:text}.soliloquy-select .chosen-container-multi .chosen-choices li{float:left;list-style:none}.soliloquy-select .chosen-container-multi .chosen-choices li.search-field{margin:0;padding:0;white-space:nowrap}.soliloquy-select .chosen-container-multi .chosen-choices li.search-field input[type=text]{margin:1px 0;padding:0;height:25px;outline:0;border:0 !important;background:rgba(0,0,0,0) !important;box-shadow:none;color:#999;font-size:100%;font-family:sans-serif;line-height:normal;border-radius:0}.soliloquy-select .chosen-container-multi .chosen-choices li.search-choice{position:relative;margin:3px 5px 3px 0;padding:3px 20px 3px 5px;border:1px solid #ddd;max-width:100%;border-radius:2px;background:#fff;background-size:100% 19px;background-repeat:repeat-x;background-clip:padding-box;box-shadow:0 0 2px #fff inset,0 1px 0 rgba(0,0,0,.05);color:#333;line-height:13px;cursor:default}.soliloquy-select .chosen-container-multi .chosen-choices li.search-choice span{word-wrap:break-word}.soliloquy-select .chosen-container-multi .chosen-choices li.search-choice .search-choice-close{position:absolute;top:4px;right:3px;display:block;width:12px;height:12px;background:url("chosen-sprite.png") -42px 1px no-repeat;font-size:1px}.soliloquy-select .chosen-container-multi .chosen-choices li.search-choice .search-choice-close:hover{background-position:-42px -10px}.soliloquy-select .chosen-container-multi .chosen-choices li.search-choice-disabled{padding-right:5px;border:1px solid #ddd;background:#e4e4e4;color:#666}.soliloquy-select .chosen-container-multi .chosen-choices li.search-choice-focus{background:#d4d4d4}.soliloquy-select .chosen-container-multi .chosen-choices li.search-choice-focus .search-choice-close{background-position:-42px -10px}.soliloquy-select .chosen-container-multi .chosen-results{margin:0;padding:0}.soliloquy-select .chosen-container-multi .chosen-drop .result-selected{display:list-item;color:#ccc;cursor:default}.soliloquy-select .chosen-container-active .chosen-single{border:1px solid #ddd}.soliloquy-select .chosen-container-active.chosen-with-drop .chosen-single{border:1px solid #ddd;-moz-border-radius-bottomright:0;border-bottom-right-radius:0;-moz-border-radius-bottomleft:0;border-bottom-left-radius:0;background:#fff}.soliloquy-select .chosen-container-active.chosen-with-drop .chosen-single div{border-left:1px solid rgba(0,0,0,0);background:rgba(0,0,0,0)}.soliloquy-select .chosen-container-active.chosen-with-drop .chosen-single div b{background-position:-18px 2px}.soliloquy-select .chosen-container-active .chosen-choices{border:1px solid #5897fb;box-shadow:0 0 5px rgba(0,0,0,.3)}.soliloquy-select .chosen-container-active .chosen-choices li.search-field input[type=text]{color:#222 !important}.soliloquy-select .chosen-disabled{opacity:.5 !important;cursor:default}.soliloquy-select .chosen-disabled .chosen-single{cursor:default}.soliloquy-select .chosen-disabled .chosen-choices .search-choice .search-choice-close{cursor:default}.soliloquy-select .chosen-rtl{text-align:right}.soliloquy-select .chosen-rtl .chosen-single{overflow:visible;padding:0 8px 0 0}.soliloquy-select .chosen-rtl .chosen-single span{margin-right:0;margin-left:26px;direction:rtl}.soliloquy-select .chosen-rtl .chosen-single-with-deselect span{margin-left:38px}.soliloquy-select .chosen-rtl .chosen-single div{right:auto;left:3px}.soliloquy-select .chosen-rtl .chosen-single abbr{right:auto;left:26px}.soliloquy-select .chosen-rtl .chosen-choices li{float:right}.soliloquy-select .chosen-rtl .chosen-choices li.search-field input[type=text]{direction:rtl}.soliloquy-select .chosen-rtl .chosen-choices li.search-choice{margin:3px 5px 3px 0;padding:3px 5px 3px 19px}.soliloquy-select .chosen-rtl .chosen-choices li.search-choice .search-choice-close{right:auto;left:4px}.soliloquy-select .chosen-rtl.chosen-container-single-nosearch .chosen-search,.soliloquy-select .chosen-rtl .chosen-drop{left:9999px}.soliloquy-select .chosen-rtl.chosen-container-single .chosen-results{margin:0 0 4px 4px;padding:0 4px 0 0}.soliloquy-select .chosen-rtl .chosen-results li.group-option{padding-right:15px;padding-left:0}.soliloquy-select .chosen-rtl.chosen-container-active.chosen-with-drop .chosen-single div{border-right:none}.soliloquy-select .chosen-rtl .chosen-search input[type=text]{padding:4px 5px 4px 20px;background:#fff url("chosen-sprite.png") no-repeat -30px -20px;background:url("chosen-sprite.png") no-repeat -30px -20px;direction:rtl}.soliloquy-select .chosen-rtl.chosen-container-single .chosen-single div b{background-position:6px 2px}.soliloquy-select .chosen-rtl.chosen-container-single.chosen-with-drop .chosen-single div b{background-position:-12px 2px}@media only screen and (-webkit-min-device-pixel-ratio: 1.5),only screen and (min-resolution: 144dpi),only screen and (min-resolution: 1.5dppx){.soliloquy-select .chosen-rtl .chosen-search input[type=text],.soliloquy-select .chosen-container-single .chosen-single abbr,.soliloquy-select .chosen-container-single .chosen-search input[type=text],.soliloquy-select .chosen-container-multi .chosen-choices .search-choice .search-choice-close,.soliloquy-select .chosen-container .chosen-results-scroll-down span,.soliloquy-select .chosen-container .chosen-results-scroll-up span{background-image:none !important;background-size:52px 37px !important;background-repeat:no-repeat !important}}.soliloquy-select select.soliloquy-chosen+.chosen-container.chosen-container-single .chosen-single{padding-right:35px}.post-type-soliloquy #wpbody-content h1{display:block;margin:0;padding-left:20px;padding-right:20px;line-height:40px;font-size:20px;font-weight:400;background-color:#fff;height:45px;margin-left:-20px;margin-right:-20px}.post-type-soliloquy .page-title-action{display:inline-block;margin-left:4px;padding:4px 8px;top:-47px;margin-bottom:-38px;left:150px;text-decoration:none;border:none;color:#e02626;border-radius:0;background:none;text-shadow:none;font-weight:600;font-size:13px}.post-type-soliloquy .page-title-action:hover,.post-type-soliloquy .page-title-action:active{position:relative;top:-47px;margin-bottom:-38px;left:150px}.post-type-soliloquy .page-title-action:hover{background:none;color:#999}.post-type-soliloquy .page-title-action:before{display:inline-block;font-family:"soliloquy";content:"P";margin-right:5px;vertical-align:middle}.post-type-soliloquy .wrap{margin-top:0px !important}.post-type-soliloquy input[type=checkbox]{background-color:#fff;border:1px solid #ddd;box-shadow:none;margin-right:10px}.post-type-soliloquy input[type=checkbox]:checked{background-color:#7cc048;border-color:#7cc048}.post-type-soliloquy input[type=checkbox]:checked:before{color:#fff !important}.post-type-soliloquy ul.subsubsub{margin:0 0 20px 0;padding-left:0px}.post-type-soliloquy .column-image{width:85px !important}.post-type-soliloquy form#posts-filter div.tablenav.top{margin:0 0 8px 0}.post-type-soliloquy form#posts-filter .button{height:28px;line-height:26px}.post-type-soliloquy #wpbody-content .inline-edit-row fieldset input[type=text],.post-type-soliloquy #wpbody-content .inline-edit-row fieldset input[type=number],.post-type-soliloquy #wpbody-content .inline-edit-row fieldset input[type=password]{background-color:#fff;border:1px solid #ddd;-webkit-box-shadow:none;box-shadow:none;color:#32373c;height:35px;outline:none;-webkit-transition:.05s border-color ease-in-out;transition:.05s border-color ease-in-out;min-width:210px;max-width:350px;width:100%;border-radius:3px;padding-right:0}.post-type-soliloquy #wpbody-content .inline-edit-row fieldset select{min-width:275px}.post-type-soliloquy #wpbody-content .inline-edit-row fieldset span.title{font-style:normal;font-weight:600;font-size:13px;min-width:140px}.post-type-soliloquy #wpbody-content td.colspanchange fieldset.inline-edit-col-left fieldset.inline-edit-date{display:none}.post-type-soliloquy #wpbody-content td.colspanchange fieldset.inline-edit-col-left div.inline-edit-group:last-child{display:none}tr.type-soliloquy th{padding:20px inherit !important}tr.type-soliloquy td{padding:20px inherit}.soliloquy-count{display:none} \ No newline at end of file @@ -1,321 +1,4 @@ -@font-face { - font-family: "soliloquy"; - src: url("../fonts/soliloquy.eot"); - src: - url("../fonts/soliloquy.eot?#iefix") format("embedded-opentype"), - url("../fonts/soliloquy.woff") format("woff"), - url("../fonts/soliloquy.ttf") format("truetype"), - url("../fonts/soliloquy.svg#soliloquy") format("svg"); - font-weight: normal; - font-style: normal; -} -[class*="soliloquy-icon-"]:before { - display: inline-block; - font-family: "soliloquy"; - font-style: normal; - font-weight: normal; - font-size: 13px; - line-height: 1.5; - margin-right: 8px; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} -.soliloquy-icon-configuration:before { - content: "A"; -} -.soliloquy-icon-soliloquy:before { - content: "B"; -} -.soliloquy-icon-pinterest:before { - content: "C"; -} -.soliloquy-icon-lightbox:before { - content: "D"; -} -.soliloquy-icon-misc:before { - content: "E"; -} -.soliloquy-icon-mobile:before { - content: "F"; -} -.soliloquy-icon-pagination:before { - content: "G"; -} -.soliloquy-icon-proofing:before { - content: "H"; -} -.soliloquy-icon-slideshow:before { - content: "I"; -} -.soliloquy-icon-tags:before { - content: "J"; -} -.soliloquy-icon-thumbnails:before { - content: "K"; -} -.soliloquy-icon-video:before { - content: "L"; -} -.soliloquy-icon-watermark:before { - content: "M"; -} -.soliloquy-icon-cloud-download:before { - content: "N"; -} -.soliloquy-icon-toggle-on:before { - content: "O"; -} -.soliloquy-icon-plus-circle:before { - content: "P"; -} -.soliloquy-icon-list:before { - content: "R"; -} -.soliloquy-icon-grid:before { - content: "S"; -} -.soliloquy-icon-pencil:before { - content: "U"; -} -.soliloquy-icon-close:before { - content: "V"; -} -.soliloquy-icon-check:before { - content: "W"; -} -.soliloquy-icon-schedule:before { - content: "X"; -} -.soliloquy-icon-carousel:before { - content: "Y"; -} -#soliloquy-header-temp { - position: relative; -} -#soliloquy-top-notification { - position: relative; - background-color: #162937; - text-align: center; - color: #fff; - height: 40px; - margin-left: -20px; - vertical-align: middle; -} -#soliloquy-top-notification p { - margin: 0; - padding: 0; - line-height: 40px; - font-size: 16px; -} -#soliloquy-top-notification a { - color: #fff; -} -#soliloquy-top-notification .soliloquy-dismiss { - position: absolute; - top: 10px; - right: 10px; -} -#soliloquy-settings-content input:not([type="checkbox"]) { - background-color: #fff; - border: 1px solid #ddd; - -webkit-box-shadow: none; - box-shadow: none; - color: #32373c; - height: 35px; - outline: none; - -webkit-transition: 0.05s border-color ease-in-out; - transition: 0.05s border-color ease-in-out; -} -#soliloquy-settings-content input[type="checkbox"]:checked { - -color: #e02626; -} -#soliloquy-settings-content textarea { - width: 100%; -} -#soliloquy-settings-content input[type="password"].soliloquy-input { - background-color: #fff; - border: 1px solid #ddd; - -webkit-box-shadow: none; - box-shadow: none; - color: #32373c; - outline: none; - -webkit-transition: 0.05s border-color ease-in-out; - transition: 0.05s border-color ease-in-out; -} -input[type="password"].soliloquy-input { - background-color: #fff; - border: 1px solid #ddd; - -webkit-box-shadow: none; - box-shadow: none; - height: 35px; - color: #32373c; - outline: none; - -webkit-transition: 0.05s border-color ease-in-out; - transition: 0.05s border-color ease-in-out; -} -pre.soliloquy-code { - background-color: #ddd; - border-radius: 3px; - padding: 15px; -} -.soliloquy-clipboard { - display: block; - text-decoration: underline !important; - padding-top: 8px; - font-size: 11px; - outline: 0 !important; -} -.soliloquy-clipboard:focus { - outline-style: none; - box-shadow: none; - border-color: rgba(0, 0, 0, 0); -} -.soliloquy-code { - display: block; - background-color: #f7f7f7; - border-radius: 3px; - padding: 10px !important; -} -.soliloquy-list-inline { - margin: 0; - list-style: none; -} -.soliloquy-list-inline li { - display: inline-block; - margin-right: 5px; -} -.soliloquy-list-inline li:last-child { - margin-right: 0 !important; -} -.soliloquy-yt iframe { - max-width: 100%; - height: auto; -} -.soliloquy-hidden { - display: none !important; -} -.soliloquy-hideme { - visibility: hidden; -} -.soliloquy-no-border { - border: none !important; -} -.soliloquy-right { - float: right; -} -.soliloquy-left { - float: left; -} -.soliloquy-clearfix { - clear: both; - display: block; - height: 0; - overflow: hidden; - visibility: hidden; - width: 0; -} -.no-margin { - margin: 0 !important; -} -.no-margin-top { - margin-top: 0 !important; -} -.no-margin-bottom { - margin-bottom: 0 !important; -} -[data-soliloquy-tooltip] { - position: relative; - z-index: 2; - cursor: pointer; -} -[data-soliloquy-tooltip]:before, -[data-soliloquy-tooltip]:after { - visibility: hidden; - opacity: 0; - pointer-events: none; -} -[data-soliloquy-tooltip]:before { - position: absolute; - bottom: 120%; - left: 50%; - margin-bottom: 5px; - margin-left: -35px; - padding: 7px; - width: 60px; - -webkit-border-radius: 3px; - -moz-border-radius: 3px; - border-radius: 3px; - background-color: #000; - color: #fff; - content: attr(data-soliloquy-tooltip); - text-align: center; - font-size: 12px; - line-height: 1.2; -} -[data-soliloquy-tooltip]:after { - position: absolute; - bottom: 120%; - left: 50%; - width: 0; - margin-left: -5px; - border-top: 5px solid #000; - border-right: 5px solid rgba(0, 0, 0, 0); - border-left: 5px solid rgba(0, 0, 0, 0); - content: " "; - font-size: 0; - line-height: 0; -} -[data-soliloquy-tooltip]:hover:before, -[data-soliloquy-tooltip]:hover:after { - visibility: visible; - opacity: 1; -} -[class*="soliloquy-grid-"] { - float: left; - margin-left: 2%; -} -[class*="soliloquy-grid-"] input[type="text"] { - width: 100% !important; -} -.soliloquy-grid-1 { - width: 6.5%; -} -.soliloquy-grid-2 { - width: 15%; -} -.soliloquy-grid-3 { - width: 23.5%; -} -.soliloquy-grid-4 { - width: 32%; -} -.soliloquy-grid-5 { - width: 40.5%; -} -.soliloquy-grid-6 { - width: 49%; -} -.soliloquy-grid-7 { - width: 57.5%; -} -.soliloquy-grid-8 { - width: 66%; -} -.soliloquy-grid-9 { - width: 74.5%; -} -.soliloquy-grid-10 { - width: 83%; -} -.soliloquy-grid-11 { - width: 91.5%; -} -.soliloquy-grid-12 { - width: 100%; -} -.soliloquy-first { - margin-left: 0px; -} /*! +@font-face{font-family:"soliloquy";src:url("../fonts/soliloquy.eot");src:url("../fonts/soliloquy.eot?#iefix") format("embedded-opentype"),url("../fonts/soliloquy.woff") format("woff"),url("../fonts/soliloquy.ttf") format("truetype"),url("../fonts/soliloquy.svg#soliloquy") format("svg");font-weight:normal;font-style:normal}[class*=soliloquy-icon-]:before{display:inline-block;font-family:"soliloquy";font-style:normal;font-weight:normal;font-size:13px;line-height:1.5;margin-right:8px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.soliloquy-icon-configuration:before{content:"A"}.soliloquy-icon-soliloquy:before{content:"B"}.soliloquy-icon-pinterest:before{content:"C"}.soliloquy-icon-lightbox:before{content:"D"}.soliloquy-icon-misc:before{content:"E"}.soliloquy-icon-mobile:before{content:"F"}.soliloquy-icon-pagination:before{content:"G"}.soliloquy-icon-proofing:before{content:"H"}.soliloquy-icon-slideshow:before{content:"I"}.soliloquy-icon-tags:before{content:"J"}.soliloquy-icon-thumbnails:before{content:"K"}.soliloquy-icon-video:before{content:"L"}.soliloquy-icon-watermark:before{content:"M"}.soliloquy-icon-cloud-download:before{content:"N"}.soliloquy-icon-toggle-on:before{content:"O"}.soliloquy-icon-plus-circle:before{content:"P"}.soliloquy-icon-list:before{content:"R"}.soliloquy-icon-grid:before{content:"S"}.soliloquy-icon-pencil:before{content:"U"}.soliloquy-icon-close:before{content:"V"}.soliloquy-icon-check:before{content:"W"}.soliloquy-icon-schedule:before{content:"X"}.soliloquy-icon-carousel:before{content:"Y"}#soliloquy-header-temp{position:relative}#soliloquy-top-notification{position:relative;background-color:#162937;text-align:center;color:#fff;height:40px;margin-left:-20px;vertical-align:middle}#soliloquy-top-notification p{margin:0;padding:0;line-height:40px;font-size:16px}#soliloquy-top-notification a{color:#fff}#soliloquy-top-notification .soliloquy-dismiss{position:absolute;top:10px;right:10px}#soliloquy-settings-content input:not([type=checkbox]){background-color:#fff;border:1px solid #ddd;-webkit-box-shadow:none;box-shadow:none;color:#32373c;height:35px;outline:none;-webkit-transition:.05s border-color ease-in-out;transition:.05s border-color ease-in-out}#soliloquy-settings-content input[type=checkbox]:checked{-color:#e02626}#soliloquy-settings-content textarea{width:100%}#soliloquy-settings-content input[type=password].soliloquy-input{background-color:#fff;border:1px solid #ddd;-webkit-box-shadow:none;box-shadow:none;color:#32373c;outline:none;-webkit-transition:.05s border-color ease-in-out;transition:.05s border-color ease-in-out}input[type=password].soliloquy-input{background-color:#fff;border:1px solid #ddd;-webkit-box-shadow:none;box-shadow:none;height:35px;color:#32373c;outline:none;-webkit-transition:.05s border-color ease-in-out;transition:.05s border-color ease-in-out}pre.soliloquy-code{background-color:#ddd;border-radius:3px;padding:15px}.soliloquy-clipboard{display:block;text-decoration:underline !important;padding-top:8px;font-size:11px;outline:0 !important}.soliloquy-clipboard:focus{outline-style:none;box-shadow:none;border-color:rgba(0,0,0,0)}.soliloquy-code{display:block;background-color:#f7f7f7;border-radius:3px;padding:10px !important}.soliloquy-list-inline{margin:0;list-style:none}.soliloquy-list-inline li{display:inline-block;margin-right:5px}.soliloquy-list-inline li:last-child{margin-right:0 !important}.soliloquy-yt iframe{max-width:100%;height:auto}.soliloquy-hidden{display:none !important}.soliloquy-hideme{visibility:hidden}.soliloquy-no-border{border:none !important}.soliloquy-right{float:right}.soliloquy-left{float:left}.soliloquy-clearfix{clear:both;display:block;height:0;overflow:hidden;visibility:hidden;width:0}.no-margin{margin:0 !important}.no-margin-top{margin-top:0 !important}.no-margin-bottom{margin-bottom:0 !important}[data-soliloquy-tooltip]{position:relative;z-index:2;cursor:pointer}[data-soliloquy-tooltip]:before,[data-soliloquy-tooltip]:after{visibility:hidden;opacity:0;pointer-events:none}[data-soliloquy-tooltip]:before{position:absolute;bottom:120%;left:50%;margin-bottom:5px;margin-left:-35px;padding:7px;width:60px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;background-color:#000;color:#fff;content:attr(data-soliloquy-tooltip);text-align:center;font-size:12px;line-height:1.2}[data-soliloquy-tooltip]:after{position:absolute;bottom:120%;left:50%;width:0;margin-left:-5px;border-top:5px solid #000;border-right:5px solid rgba(0,0,0,0);border-left:5px solid rgba(0,0,0,0);content:" ";font-size:0;line-height:0}[data-soliloquy-tooltip]:hover:before,[data-soliloquy-tooltip]:hover:after{visibility:visible;opacity:1}[class*=soliloquy-grid-]{float:left;margin-left:2%}[class*=soliloquy-grid-] input[type=text]{width:100% !important}.soliloquy-grid-1{width:6.5%}.soliloquy-grid-2{width:15%}.soliloquy-grid-3{width:23.5%}.soliloquy-grid-4{width:32%}.soliloquy-grid-5{width:40.5%}.soliloquy-grid-6{width:49%}.soliloquy-grid-7{width:57.5%}.soliloquy-grid-8{width:66%}.soliloquy-grid-9{width:74.5%}.soliloquy-grid-10{width:83%}.soliloquy-grid-11{width:91.5%}.soliloquy-grid-12{width:100%}.soliloquy-first{margin-left:0px}/*! Chosen, a Select Box Enhancer for jQuery and Prototype by Patrick Filler for Harvest, http://getharvest.com @@ -325,522 +8,4 @@ MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md This file is generated by `grunt build`, do not edit it by hand. -*/ -.soliloquy-select * { - box-shadow: none !important; - background-image: none !important; -} -.soliloquy-select *:after { - background-image: none !important; -} -.soliloquy-select .soliloquy-chosen { - height: 35px; - max-width: 350px; - width: 100%; -} -.soliloquy-select .chosen-container { - position: relative; - display: inline-block; - vertical-align: middle; - font-size: 13px; - -webkit-user-select: none; - -moz-user-select: none; - user-select: none; - max-width: 350px; - font-weight: 600; -} -.soliloquy-select .chosen-container * { - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; -} -.soliloquy-select .chosen-container .chosen-drop { - position: absolute; - top: 100%; - left: -9999px; - z-index: 1010; - width: 100%; - border: 1px solid #ddd; - border-top: 0; - background: #fff; -} -.soliloquy-select .chosen-container.chosen-with-drop .chosen-drop { - left: 0; -} -.soliloquy-select .chosen-container a { - cursor: pointer; -} -.soliloquy-select .chosen-container .search-choice .group-name, -.soliloquy-select .chosen-container .chosen-single .group-name { - margin-right: 4px; - overflow: hidden; - white-space: nowrap; - text-overflow: ellipsis; - font-weight: normal; - color: #999; -} -.soliloquy-select .chosen-container .search-choice .group-name:after, -.soliloquy-select .chosen-container .chosen-single .group-name:after { - content: ":"; - padding-left: 2px; - vertical-align: top; -} -.soliloquy-select .chosen-container-single .chosen-single { - position: relative; - display: block; - overflow: hidden; - padding: 0 0 0 8px; - height: 35px; - border: 1px solid #ddd; - border-radius: 3px; - background: #fff; - background-clip: padding-box; - color: #444; - text-decoration: none; - white-space: nowrap; - line-height: 35px; -} -.soliloquy-select .chosen-container-single .chosen-default { - color: #999; -} -.soliloquy-select .chosen-container-single .chosen-single span { - display: block; - overflow: hidden; - margin-right: 26px; - text-overflow: ellipsis; - white-space: nowrap; -} -.soliloquy-select .chosen-container-single .chosen-single-with-deselect span { - margin-right: 38px; -} -.soliloquy-select .chosen-container-single .chosen-single abbr { - position: absolute; - top: 6px; - right: 26px; - display: block; - width: 12px; - height: 12px; - font-size: 1px; -} -.soliloquy-select .chosen-container-single .chosen-single abbr:hover { - background-position: -42px -10px; -} -.soliloquy-select .chosen-container-single.chosen-disabled .chosen-single abbr:hover { - background-position: -42px -10px; -} -.soliloquy-select .chosen-container-single .chosen-single div { - border-left: 1px solid #ddd; - position: absolute; - top: 0; - right: 0; - display: block; - width: 30px; - height: 100%; - padding-left: 9px; -} -.soliloquy-select .chosen-container-single .chosen-single div b { - display: block; - width: 100%; - height: 100%; - line-height: 35px; -} -.soliloquy-select .chosen-container-single .chosen-single div b:before { - content: "Q"; - display: block; - font-weight: normal; - font-size: 8px !important; - font-family: "soliloquy"; - position: absolute; - text-align: center; -} -.soliloquy-select .chosen-container-single .chosen-search { - position: relative; - z-index: 1010; - margin: 0; - padding: 3px 4px; - white-space: nowrap; -} -.soliloquy-select .chosen-container-single .chosen-search input[type="text"] { - margin: 1px 0; - padding: 4px 20px 4px 5px; - width: 100%; - height: auto; - outline: 0; - border: 1px solid #ddd; - background: #fff url("chosen-sprite.png") no-repeat 100% -20px; - background: url("chosen-sprite.png") no-repeat 100% -20px; - font-size: 1em; - font-family: sans-serif; - line-height: normal; - border-radius: 0; -} -.soliloquy-select .chosen-container-single .chosen-drop { - margin-top: -1px; - border-radius: 0 0 2px 2px; - background-clip: padding-box; -} -.soliloquy-select .chosen-container-single.chosen-container-single-nosearch .chosen-search { - position: absolute; - left: -9999px; -} -.soliloquy-select .chosen-container .chosen-results { - color: #444; - position: relative; - overflow-x: hidden; - overflow-y: auto; - margin: 0 4px 4px 0; - padding: 0 0 0 4px; - max-height: 240px; - -webkit-overflow-scrolling: touch; -} -.soliloquy-select .chosen-container .chosen-results li { - display: none; - margin: 0; - padding: 5px 6px; - list-style: none; - line-height: 15px; - word-wrap: break-word; - -webkit-touch-callout: none; -} -.soliloquy-select .chosen-container .chosen-results li.active-result { - display: list-item; - cursor: pointer; -} -.soliloquy-select .chosen-container .chosen-results li.disabled-result { - display: list-item; - color: #ccc; - cursor: default; -} -.soliloquy-select .chosen-container .chosen-results li.highlighted { - background: #e02626; - color: #fff; -} -.soliloquy-select .chosen-container .chosen-results li.no-results { - color: #777; - display: list-item; - background: #f4f4f4; -} -.soliloquy-select .chosen-container .chosen-results li.group-result { - display: list-item; - font-weight: bold; - cursor: default; -} -.soliloquy-select .chosen-container .chosen-results li.group-option { - padding-left: 15px; -} -.soliloquy-select .chosen-container .chosen-results li em { - font-style: normal; - text-decoration: underline; -} -.soliloquy-select .chosen-container-multi .chosen-choices { - position: relative; - overflow: hidden; - margin: 0; - padding: 0 5px; - width: 100%; - height: auto !important; - height: 1%; - border: 1px solid #ddd; - background: #fff; - cursor: text; -} -.soliloquy-select .chosen-container-multi .chosen-choices li { - float: left; - list-style: none; -} -.soliloquy-select .chosen-container-multi .chosen-choices li.search-field { - margin: 0; - padding: 0; - white-space: nowrap; -} -.soliloquy-select .chosen-container-multi .chosen-choices li.search-field input[type="text"] { - margin: 1px 0; - padding: 0; - height: 25px; - outline: 0; - border: 0 !important; - background: rgba(0, 0, 0, 0) !important; - box-shadow: none; - color: #999; - font-size: 100%; - font-family: sans-serif; - line-height: normal; - border-radius: 0; -} -.soliloquy-select .chosen-container-multi .chosen-choices li.search-choice { - position: relative; - margin: 3px 5px 3px 0; - padding: 3px 20px 3px 5px; - border: 1px solid #ddd; - max-width: 100%; - border-radius: 2px; - background: #fff; - background-size: 100% 19px; - background-repeat: repeat-x; - background-clip: padding-box; - box-shadow: - 0 0 2px #fff inset, - 0 1px 0 rgba(0, 0, 0, 0.05); - color: #333; - line-height: 13px; - cursor: default; -} -.soliloquy-select .chosen-container-multi .chosen-choices li.search-choice span { - word-wrap: break-word; -} -.soliloquy-select .chosen-container-multi .chosen-choices li.search-choice .search-choice-close { - position: absolute; - top: 4px; - right: 3px; - display: block; - width: 12px; - height: 12px; - background: url("chosen-sprite.png") -42px 1px no-repeat; - font-size: 1px; -} -.soliloquy-select - .chosen-container-multi - .chosen-choices - li.search-choice - .search-choice-close:hover { - background-position: -42px -10px; -} -.soliloquy-select .chosen-container-multi .chosen-choices li.search-choice-disabled { - padding-right: 5px; - border: 1px solid #ddd; - background: #e4e4e4; - color: #666; -} -.soliloquy-select .chosen-container-multi .chosen-choices li.search-choice-focus { - background: #d4d4d4; -} -.soliloquy-select - .chosen-container-multi - .chosen-choices - li.search-choice-focus - .search-choice-close { - background-position: -42px -10px; -} -.soliloquy-select .chosen-container-multi .chosen-results { - margin: 0; - padding: 0; -} -.soliloquy-select .chosen-container-multi .chosen-drop .result-selected { - display: list-item; - color: #ccc; - cursor: default; -} -.soliloquy-select .chosen-container-active .chosen-single { - border: 1px solid #ddd; -} -.soliloquy-select .chosen-container-active.chosen-with-drop .chosen-single { - border: 1px solid #ddd; - -moz-border-radius-bottomright: 0; - border-bottom-right-radius: 0; - -moz-border-radius-bottomleft: 0; - border-bottom-left-radius: 0; - background: #fff; -} -.soliloquy-select .chosen-container-active.chosen-with-drop .chosen-single div { - border-left: 1px solid rgba(0, 0, 0, 0); - background: rgba(0, 0, 0, 0); -} -.soliloquy-select .chosen-container-active.chosen-with-drop .chosen-single div b { - background-position: -18px 2px; -} -.soliloquy-select .chosen-container-active .chosen-choices { - border: 1px solid #5897fb; - box-shadow: 0 0 5px rgba(0, 0, 0, 0.3); -} -.soliloquy-select .chosen-container-active .chosen-choices li.search-field input[type="text"] { - color: #222 !important; -} -.soliloquy-select .chosen-disabled { - opacity: 0.5 !important; - cursor: default; -} -.soliloquy-select .chosen-disabled .chosen-single { - cursor: default; -} -.soliloquy-select .chosen-disabled .chosen-choices .search-choice .search-choice-close { - cursor: default; -} -.soliloquy-select .chosen-rtl { - text-align: right; -} -.soliloquy-select .chosen-rtl .chosen-single { - overflow: visible; - padding: 0 8px 0 0; -} -.soliloquy-select .chosen-rtl .chosen-single span { - margin-right: 0; - margin-left: 26px; - direction: rtl; -} -.soliloquy-select .chosen-rtl .chosen-single-with-deselect span { - margin-left: 38px; -} -.soliloquy-select .chosen-rtl .chosen-single div { - right: auto; - left: 3px; -} -.soliloquy-select .chosen-rtl .chosen-single abbr { - right: auto; - left: 26px; -} -.soliloquy-select .chosen-rtl .chosen-choices li { - float: right; -} -.soliloquy-select .chosen-rtl .chosen-choices li.search-field input[type="text"] { - direction: rtl; -} -.soliloquy-select .chosen-rtl .chosen-choices li.search-choice { - margin: 3px 5px 3px 0; - padding: 3px 5px 3px 19px; -} -.soliloquy-select .chosen-rtl .chosen-choices li.search-choice .search-choice-close { - right: auto; - left: 4px; -} -.soliloquy-select .chosen-rtl.chosen-container-single-nosearch .chosen-search, -.soliloquy-select .chosen-rtl .chosen-drop { - left: 9999px; -} -.soliloquy-select .chosen-rtl.chosen-container-single .chosen-results { - margin: 0 0 4px 4px; - padding: 0 4px 0 0; -} -.soliloquy-select .chosen-rtl .chosen-results li.group-option { - padding-right: 15px; - padding-left: 0; -} -.soliloquy-select .chosen-rtl.chosen-container-active.chosen-with-drop .chosen-single div { - border-right: none; -} -.soliloquy-select .chosen-rtl .chosen-search input[type="text"] { - padding: 4px 5px 4px 20px; - background: #fff url("chosen-sprite.png") no-repeat -30px -20px; - background: url("chosen-sprite.png") no-repeat -30px -20px; - direction: rtl; -} -.soliloquy-select .chosen-rtl.chosen-container-single .chosen-single div b { - background-position: 6px 2px; -} -.soliloquy-select .chosen-rtl.chosen-container-single.chosen-with-drop .chosen-single div b { - background-position: -12px 2px; -} -@media only screen and (-webkit-min-device-pixel-ratio: 1.5), - only screen and (min-resolution: 144dpi), only screen and (min-resolution: 1.5dppx) { - .soliloquy-select .chosen-rtl .chosen-search input[type="text"], - .soliloquy-select .chosen-container-single .chosen-single abbr, - .soliloquy-select .chosen-container-single .chosen-search input[type="text"], - .soliloquy-select .chosen-container-multi .chosen-choices .search-choice .search-choice-close, - .soliloquy-select .chosen-container .chosen-results-scroll-down span, - .soliloquy-select .chosen-container .chosen-results-scroll-up span { - background-image: none !important; - background-size: 52px 37px !important; - background-repeat: no-repeat !important; - } -} -.soliloquy-select - select.soliloquy-chosen - + .chosen-container.chosen-container-single - .chosen-single { - padding-right: 35px; -} -#soliloquy-tabs-nav { - background-color: #fff; - padding: 0; - margin: 0; - height: 50px; - box-sizing: border-box; - margin-left: -20px; -} -#soliloquy-tabs-nav .nav-tab { - margin: 0; - background-color: #fff; - border: none; - line-height: 40px; - border-right: 1px solid #ddd; -} -#soliloquy-tabs-nav .nav-tab:first-child { - margin-left: 20px; - border-left: 1px solid #ddd; -} -#soliloquy-tabs-nav .nav-tab:focus { - outline-style: none; - box-shadow: none; - border-color: rgba(0, 0, 0, 0); -} -#soliloquy-tabs-nav .nav-tab-active { - background-color: #f1f1f1; - border: none; -} -.soliloquy-settings-table tr { - border-bottom: 1px solid #ddd; -} -.soliloquy-settings-table tr th { - padding-top: 40px; -} -.soliloquy-settings-table tr td { - padding: 40px 0; -} -#soliloquy-settings .soliloquy { - margin: 15px 0 20px; -} -#soliloquy-settings .soliloquy-tab { - display: none; -} -#soliloquy-settings .soliloquy-tab.soliloquy-active { - display: block; -} -#soliloquy-settings .soliloquy-tab th { - width: 210px; - padding-right: 0; -} -#soliloquy-settings input[type="text"], -#soliloquy-settings input[type="number"], -#soliloquy-settings input[type="password"], -#soliloquy-settings select, -#soliloquy-settings textarea { - width: 350px; - padding-right: 0; -} -#soliloquy-settings .soliloquy-clear { - clear: both; -} -#soliloquy-settings .soliloquy-clear:after { - clear: both; - content: "."; - display: block; - height: 0; - line-height: 0; - overflow: auto; - visibility: hidden; - zoom: 1; -} -#soliloquy-refresh-submit { - margin-top: -10px; -} -.soliloquy-external-req { - border: 1px solid #e02626; - border-radius: 3px; - padding: 30px; -} -.soliloquy-external-req h2 { - font-size: 20px; - margin: 0; - padding: 0; -} -.soliloquy-external-req-active { - border: 1px solid #7cc048; - background-color: #fff; - border-radius: 3px; - padding: 30px; -} -.soliloquy-external-req-active h2 { - font-size: 20px; - font-weight: 600; - margin: 0; - padding: 0; -} +*/.soliloquy-select *{box-shadow:none !important;background-image:none !important}.soliloquy-select *:after{background-image:none !important}.soliloquy-select .soliloquy-chosen{height:35px;max-width:350px;width:100%}.soliloquy-select .chosen-container{position:relative;display:inline-block;vertical-align:middle;font-size:13px;-webkit-user-select:none;-moz-user-select:none;user-select:none;max-width:350px;font-weight:600}.soliloquy-select .chosen-container *{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.soliloquy-select .chosen-container .chosen-drop{position:absolute;top:100%;left:-9999px;z-index:1010;width:100%;border:1px solid #ddd;border-top:0;background:#fff}.soliloquy-select .chosen-container.chosen-with-drop .chosen-drop{left:0}.soliloquy-select .chosen-container a{cursor:pointer}.soliloquy-select .chosen-container .search-choice .group-name,.soliloquy-select .chosen-container .chosen-single .group-name{margin-right:4px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-weight:normal;color:#999}.soliloquy-select .chosen-container .search-choice .group-name:after,.soliloquy-select .chosen-container .chosen-single .group-name:after{content:":";padding-left:2px;vertical-align:top}.soliloquy-select .chosen-container-single .chosen-single{position:relative;display:block;overflow:hidden;padding:0 0 0 8px;height:35px;border:1px solid #ddd;border-radius:3px;background:#fff;background-clip:padding-box;color:#444;text-decoration:none;white-space:nowrap;line-height:35px}.soliloquy-select .chosen-container-single .chosen-default{color:#999}.soliloquy-select .chosen-container-single .chosen-single span{display:block;overflow:hidden;margin-right:26px;text-overflow:ellipsis;white-space:nowrap}.soliloquy-select .chosen-container-single .chosen-single-with-deselect span{margin-right:38px}.soliloquy-select .chosen-container-single .chosen-single abbr{position:absolute;top:6px;right:26px;display:block;width:12px;height:12px;font-size:1px}.soliloquy-select .chosen-container-single .chosen-single abbr:hover{background-position:-42px -10px}.soliloquy-select .chosen-container-single.chosen-disabled .chosen-single abbr:hover{background-position:-42px -10px}.soliloquy-select .chosen-container-single .chosen-single div{border-left:1px solid #ddd;position:absolute;top:0;right:0;display:block;width:30px;height:100%;padding-left:9px}.soliloquy-select .chosen-container-single .chosen-single div b{display:block;width:100%;height:100%;line-height:35px}.soliloquy-select .chosen-container-single .chosen-single div b:before{content:"Q";display:block;font-weight:normal;font-size:8px !important;font-family:"soliloquy";position:absolute;text-align:center}.soliloquy-select .chosen-container-single .chosen-search{position:relative;z-index:1010;margin:0;padding:3px 4px;white-space:nowrap}.soliloquy-select .chosen-container-single .chosen-search input[type=text]{margin:1px 0;padding:4px 20px 4px 5px;width:100%;height:auto;outline:0;border:1px solid #ddd;background:#fff url("chosen-sprite.png") no-repeat 100% -20px;background:url("chosen-sprite.png") no-repeat 100% -20px;font-size:1em;font-family:sans-serif;line-height:normal;border-radius:0}.soliloquy-select .chosen-container-single .chosen-drop{margin-top:-1px;border-radius:0 0 2px 2px;background-clip:padding-box}.soliloquy-select .chosen-container-single.chosen-container-single-nosearch .chosen-search{position:absolute;left:-9999px}.soliloquy-select .chosen-container .chosen-results{color:#444;position:relative;overflow-x:hidden;overflow-y:auto;margin:0 4px 4px 0;padding:0 0 0 4px;max-height:240px;-webkit-overflow-scrolling:touch}.soliloquy-select .chosen-container .chosen-results li{display:none;margin:0;padding:5px 6px;list-style:none;line-height:15px;word-wrap:break-word;-webkit-touch-callout:none}.soliloquy-select .chosen-container .chosen-results li.active-result{display:list-item;cursor:pointer}.soliloquy-select .chosen-container .chosen-results li.disabled-result{display:list-item;color:#ccc;cursor:default}.soliloquy-select .chosen-container .chosen-results li.highlighted{background:#e02626;color:#fff}.soliloquy-select .chosen-container .chosen-results li.no-results{color:#777;display:list-item;background:#f4f4f4}.soliloquy-select .chosen-container .chosen-results li.group-result{display:list-item;font-weight:bold;cursor:default}.soliloquy-select .chosen-container .chosen-results li.group-option{padding-left:15px}.soliloquy-select .chosen-container .chosen-results li em{font-style:normal;text-decoration:underline}.soliloquy-select .chosen-container-multi .chosen-choices{position:relative;overflow:hidden;margin:0;padding:0 5px;width:100%;height:auto !important;height:1%;border:1px solid #ddd;background:#fff;cursor:text}.soliloquy-select .chosen-container-multi .chosen-choices li{float:left;list-style:none}.soliloquy-select .chosen-container-multi .chosen-choices li.search-field{margin:0;padding:0;white-space:nowrap}.soliloquy-select .chosen-container-multi .chosen-choices li.search-field input[type=text]{margin:1px 0;padding:0;height:25px;outline:0;border:0 !important;background:rgba(0,0,0,0) !important;box-shadow:none;color:#999;font-size:100%;font-family:sans-serif;line-height:normal;border-radius:0}.soliloquy-select .chosen-container-multi .chosen-choices li.search-choice{position:relative;margin:3px 5px 3px 0;padding:3px 20px 3px 5px;border:1px solid #ddd;max-width:100%;border-radius:2px;background:#fff;background-size:100% 19px;background-repeat:repeat-x;background-clip:padding-box;box-shadow:0 0 2px #fff inset,0 1px 0 rgba(0,0,0,.05);color:#333;line-height:13px;cursor:default}.soliloquy-select .chosen-container-multi .chosen-choices li.search-choice span{word-wrap:break-word}.soliloquy-select .chosen-container-multi .chosen-choices li.search-choice .search-choice-close{position:absolute;top:4px;right:3px;display:block;width:12px;height:12px;background:url("chosen-sprite.png") -42px 1px no-repeat;font-size:1px}.soliloquy-select .chosen-container-multi .chosen-choices li.search-choice .search-choice-close:hover{background-position:-42px -10px}.soliloquy-select .chosen-container-multi .chosen-choices li.search-choice-disabled{padding-right:5px;border:1px solid #ddd;background:#e4e4e4;color:#666}.soliloquy-select .chosen-container-multi .chosen-choices li.search-choice-focus{background:#d4d4d4}.soliloquy-select .chosen-container-multi .chosen-choices li.search-choice-focus .search-choice-close{background-position:-42px -10px}.soliloquy-select .chosen-container-multi .chosen-results{margin:0;padding:0}.soliloquy-select .chosen-container-multi .chosen-drop .result-selected{display:list-item;color:#ccc;cursor:default}.soliloquy-select .chosen-container-active .chosen-single{border:1px solid #ddd}.soliloquy-select .chosen-container-active.chosen-with-drop .chosen-single{border:1px solid #ddd;-moz-border-radius-bottomright:0;border-bottom-right-radius:0;-moz-border-radius-bottomleft:0;border-bottom-left-radius:0;background:#fff}.soliloquy-select .chosen-container-active.chosen-with-drop .chosen-single div{border-left:1px solid rgba(0,0,0,0);background:rgba(0,0,0,0)}.soliloquy-select .chosen-container-active.chosen-with-drop .chosen-single div b{background-position:-18px 2px}.soliloquy-select .chosen-container-active .chosen-choices{border:1px solid #5897fb;box-shadow:0 0 5px rgba(0,0,0,.3)}.soliloquy-select .chosen-container-active .chosen-choices li.search-field input[type=text]{color:#222 !important}.soliloquy-select .chosen-disabled{opacity:.5 !important;cursor:default}.soliloquy-select .chosen-disabled .chosen-single{cursor:default}.soliloquy-select .chosen-disabled .chosen-choices .search-choice .search-choice-close{cursor:default}.soliloquy-select .chosen-rtl{text-align:right}.soliloquy-select .chosen-rtl .chosen-single{overflow:visible;padding:0 8px 0 0}.soliloquy-select .chosen-rtl .chosen-single span{margin-right:0;margin-left:26px;direction:rtl}.soliloquy-select .chosen-rtl .chosen-single-with-deselect span{margin-left:38px}.soliloquy-select .chosen-rtl .chosen-single div{right:auto;left:3px}.soliloquy-select .chosen-rtl .chosen-single abbr{right:auto;left:26px}.soliloquy-select .chosen-rtl .chosen-choices li{float:right}.soliloquy-select .chosen-rtl .chosen-choices li.search-field input[type=text]{direction:rtl}.soliloquy-select .chosen-rtl .chosen-choices li.search-choice{margin:3px 5px 3px 0;padding:3px 5px 3px 19px}.soliloquy-select .chosen-rtl .chosen-choices li.search-choice .search-choice-close{right:auto;left:4px}.soliloquy-select .chosen-rtl.chosen-container-single-nosearch .chosen-search,.soliloquy-select .chosen-rtl .chosen-drop{left:9999px}.soliloquy-select .chosen-rtl.chosen-container-single .chosen-results{margin:0 0 4px 4px;padding:0 4px 0 0}.soliloquy-select .chosen-rtl .chosen-results li.group-option{padding-right:15px;padding-left:0}.soliloquy-select .chosen-rtl.chosen-container-active.chosen-with-drop .chosen-single div{border-right:none}.soliloquy-select .chosen-rtl .chosen-search input[type=text]{padding:4px 5px 4px 20px;background:#fff url("chosen-sprite.png") no-repeat -30px -20px;background:url("chosen-sprite.png") no-repeat -30px -20px;direction:rtl}.soliloquy-select .chosen-rtl.chosen-container-single .chosen-single div b{background-position:6px 2px}.soliloquy-select .chosen-rtl.chosen-container-single.chosen-with-drop .chosen-single div b{background-position:-12px 2px}@media only screen and (-webkit-min-device-pixel-ratio: 1.5),only screen and (min-resolution: 144dpi),only screen and (min-resolution: 1.5dppx){.soliloquy-select .chosen-rtl .chosen-search input[type=text],.soliloquy-select .chosen-container-single .chosen-single abbr,.soliloquy-select .chosen-container-single .chosen-search input[type=text],.soliloquy-select .chosen-container-multi .chosen-choices .search-choice .search-choice-close,.soliloquy-select .chosen-container .chosen-results-scroll-down span,.soliloquy-select .chosen-container .chosen-results-scroll-up span{background-image:none !important;background-size:52px 37px !important;background-repeat:no-repeat !important}}.soliloquy-select select.soliloquy-chosen+.chosen-container.chosen-container-single .chosen-single{padding-right:35px}#soliloquy-tabs-nav{background-color:#fff;padding:0;margin:0;height:50px;box-sizing:border-box;margin-left:-20px}#soliloquy-tabs-nav .nav-tab{margin:0;background-color:#fff;border:none;line-height:40px;border-right:1px solid #ddd}#soliloquy-tabs-nav .nav-tab:first-child{margin-left:20px;border-left:1px solid #ddd}#soliloquy-tabs-nav .nav-tab:focus{outline-style:none;box-shadow:none;border-color:rgba(0,0,0,0)}#soliloquy-tabs-nav .nav-tab-active{background-color:#f1f1f1;border:none}.soliloquy-settings-table tr{border-bottom:1px solid #ddd}.soliloquy-settings-table tr th{padding-top:40px}.soliloquy-settings-table tr td{padding:40px 0}#soliloquy-settings .soliloquy{margin:15px 0 20px}#soliloquy-settings .soliloquy-tab{display:none}#soliloquy-settings .soliloquy-tab.soliloquy-active{display:block}#soliloquy-settings .soliloquy-tab th{width:210px;padding-right:0}#soliloquy-settings input[type=text],#soliloquy-settings input[type=number],#soliloquy-settings input[type=password],#soliloquy-settings select,#soliloquy-settings textarea{width:350px;padding-right:0}#soliloquy-settings .soliloquy-clear{clear:both}#soliloquy-settings .soliloquy-clear:after{clear:both;content:".";display:block;height:0;line-height:0;overflow:auto;visibility:hidden;zoom:1}#soliloquy-refresh-submit{margin-top:-10px}.soliloquy-external-req{border:1px solid #e02626;border-radius:3px;padding:30px}.soliloquy-external-req h2{font-size:20px;margin:0;padding:0}.soliloquy-external-req-active{border:1px solid #7cc048;background-color:#fff;border-radius:3px;padding:30px}.soliloquy-external-req-active h2{font-size:20px;font-weight:600;margin:0;padding:0} \ No newline at end of file @@ -1,452 +1 @@ -body[class*=" soliloquy_page_soliloquy-lite-"] * { - box-sizing: border-box; -} -body[class*=" soliloquy_page_soliloquy-lite-"] #soliloquy-header { - height: 150px; -} -body[class*=" soliloquy_page_soliloquy-lite-"] .soliloquy-welcome-wrap { - clear: both; -} -.soliloquy-panel { - display: flex; - background: #fff; - padding: 30px; - border: 1px solid #ddd; - line-height: 2; - font-size: 16px; - line-height: 25px; - margin: 0 20px 20px; -} -.soliloquy-panel.soliloquy-litevspro-panel { - display: block; - padding: 0; -} -.soliloquy-panel h3 { - font-size: 18px; - font-weight: 600; - line-height: 1.2em; - margin-top: 0; - margin-bottom: 30px; - text-transform: capitalize; -} -.soliloquy-panel p { - font-size: 16px; - line-height: 1.5; -} -.soliloquy-panel p a { - font-weight: 500; - color: #7cc048; - text-decoration: none; -} -.soliloquy-panel p a:hover { - text-decoration: underline; -} -.soliloquy-panel ul { - list-style: disc; - list-style-position: inside; -} -.soliloquy-panel ul.list-of-links { - list-style: none; -} -.soliloquy-panel ul.list-of-links a { - color: #7cc048; - text-decoration: none; -} -.soliloquy-panel ul.list-of-links a:hover { - text-decoration: underline; -} -.soliloquy-panel .content { - width: 60%; - padding-right: 30px; -} -.soliloquy-panel .image { - width: 40%; -} -.soliloquy-panel .image img { - max-width: 100%; - width: 100%; -} -.soliloquy-panel .feature-photo-column { - padding-left: 30px; - display: inherit; -} -.soliloquy-panel .feature-photo-column img { - width: 100%; - margin: auto; -} -.soliloquy-panel .feature-photo-column.photo-left { - padding-left: 0; - padding-right: 30px; -} -.soliloquy-panel.mini-panel .feature-photo-column { - padding-top: 10px; -} -.soliloquy-panel.mini-panel .feature-photo-column a { - margin: 0 auto; - height: auto; -} -.soliloquy-panel.mini-panel .feature-photo-column img { - width: auto; - margin: 0 auto; -} -#soliloquy-admin-litevspro .soliloquy-admin-litevspro-section-hero { - text-align: center; -} -#soliloquy-admin-litevspro .soliloquy-admin-litevspro-section-hero h2 { - font-size: 21px; -} -#soliloquy-admin-litevspro .soliloquy-admin-litevspro-section-hero h4 { - font-weight: normal; - font-size: 14px; - color: rgba(60, 67, 74, 0.6980392157); -} -#soliloquy-admin-litevspro .centered { - text-align: center; -} -#soliloquy-admin-litevspro h1 { - font-size: 34px; - line-height: 32px; -} -#soliloquy-admin-litevspro p.centered { - font-size: 18px; - line-height: 21px; -} -#soliloquy-admin-litevspro.wrap { - margin-left: 0; - margin-right: 0; -} -#soliloquy-admin-litevspro .litevspro-table-header { - background: #fff; -} -#soliloquy-admin-litevspro .soliloquy-admin-litevspro-section { - margin: 0 0 30px 0; - padding: 30px; - line-height: 2; -} -#soliloquy-admin-litevspro .soliloquy-admin-litevspro-section.no-bottom { - margin-bottom: 0; - padding-bottom: 0; -} -#soliloquy-admin-litevspro .soliloquy-admin-litevspro-section.litevspro-table-header { - padding-bottom: 30px; -} -#soliloquy-admin-litevspro table tr td { - border-bottom: 1px solid #ddd; - border-right: 1px solid #ddd; - padding: 30px; - vertical-align: top; - width: 33%; -} -#soliloquy-admin-litevspro table tr td p { - font-size: 18px; - line-height: 24px; -} -#soliloquy-admin-litevspro table tr td:last-child { - border-right: 0; -} -#soliloquy-admin-litevspro table { - border-bottom: 0; -} -#soliloquy-admin-litevspro .soliloquy-admin-litevspro-section-hero { - border-top: 0; -} -#soliloquy-admin-litevspro .soliloquy-admin-litevspro-section-hero .call-to-action { - font-size: 21px; - font-weight: 500; - text-align: center; -} -#soliloquy-admin-litevspro .soliloquy-admin-litevspro-section-hero .call-to-action a { - font-size: 16px; - color: #3871ac; -} -#soliloquy-admin-litevspro .soliloquy-admin-litevspro-section-hero p { - text-align: center; - font-size: 14px; - line-height: 18px; -} -#soliloquy-admin-litevspro .soliloquy-admin-litevspro-section-hero span.soliloquy-deal { - font-weight: 500; - color: #00a32a; -} -#soliloquy-admin-litevspro .soliloquy-admin-litevspro-section-table { - padding-left: 0; - padding-right: 0; - padding-top: 0; -} -#soliloquy-admin-litevspro .soliloquy-admin-litevspro-section-table table { - width: 100%; - background: #f5f5f5; -} -#soliloquy-admin-litevspro .soliloquy-admin-litevspro-section-table table tr td:first-child { - border-left: 1px solid #ddd; - border-bottom-color: #ddd; - border-bottom-style: solid; - border-bottom-width: 1px; -} -#soliloquy-admin-litevspro .soliloquy-admin-litevspro-section-table table tr td:last-child { - border-right: 1px solid #ddd; - border-bottom-color: #ddd; - border-bottom-style: solid; - border-bottom-width: 1px; - background-color: #f3f9fe; -} -#soliloquy-admin-litevspro .soliloquy-admin-litevspro-section-table table tr:first-child td { - border-top: 1px solid #ddd; -} -#soliloquy-admin-litevspro .soliloquy-admin-litevspro-section-table table th { - text-align: left; - font-weight: 600; - font-size: 18px; - padding-left: 30px; - padding-bottom: 20px; - padding-top: 20px; - border-top: 1px solid #ddd; - border-right: 1px solid #ddd; - vertical-align: middle; -} -#soliloquy-admin-litevspro .soliloquy-admin-litevspro-section-table table th:last-child { - border-right: 1px solid #ddd; -} -#soliloquy-admin-litevspro .soliloquy-admin-litevspro-section-table table th:first-child { - border-left: 1px solid #ddd; -} -#soliloquy-admin-litevspro .soliloquy-admin-litevspro-section-table table td { - background: #fff; -} -#soliloquy-admin-litevspro .soliloquy-admin-litevspro-section-table table td strong { - display: block; -} -#soliloquy-admin-litevspro .soliloquy-admin-litevspro-section-table table p { - background-repeat: no-repeat; - background-size: 15px auto; - background-position: 0 6px; - margin: 0; -} -#soliloquy-admin-litevspro .soliloquy-admin-litevspro-section-table table p.features-full { - padding-left: 30px; - background-position: 0 4px; - background-image: url(../images/icons/litevspro/tick.svg); -} -#soliloquy-admin-litevspro .soliloquy-admin-litevspro-section-table table p.features-none { - padding-left: 30px; - background-position: 6px 6px; - background-image: url(../images/icons/litevspro/cross_red.svg); - background-size: 15px auto; -} -#soliloquy-admin-litevspro .soliloquy-admin-litevspro-section-table table p.features-partial { - padding-left: 30px; - background-position: 6px 6px; - background-size: 15px auto; - background-image: url(../images/icons/litevspro/cross.svg); -} -.soliloquy-am-plugins-wrap { - display: grid; - grid-template-columns: repeat(3, 1fr); - column-gap: 30px; - margin: 0 20px 20px; -} -.soliloquy-am-plugins { - display: flex; - flex-direction: column; - background-color: #fff; - border: 1px solid #ddd; - margin-bottom: 30px; - border-radius: 6px; -} -.soliloquy-am-plugins-main { - display: flex; - flex-direction: row; - padding: 30px 30px 20px; - flex-grow: 1; - text-align: left; -} -.soliloquy-am-plugins-main h3 { - padding-top: 0; - margin-top: 0; -} -.soliloquy-am-plugins-main img { - padding-right: 15px; -} -.soliloquy-am-plugins-footer { - display: flex; - text-align: left; - align-items: center; - vertical-align: middle; - padding: 20px; - background-color: #e8e8eb; - border-top: 1px solid #e6e6e6; -} -.soliloquy-am-plugins-footer .soliloquy-am-plugins-install-wrap { - margin-left: auto; -} -.soliloquy-am-plugins-footer .soliloquy-am-plugins-install-wrap .spinner { - float: none; - margin: 7px 10px 0; -} -.soliloquy-am-plugins-footer .soliloquy-am-plugins-button { - font-size: 14px !important; - height: 35px !important; - line-height: 38px !important; - border-radius: 4px !important; - background-color: #e02626 !important; - border: none; -} -.soliloquy-am-plugins-status { - font-weight: bold; -} -.soliloquy-am-plugins-status span { - font-weight: normal; -} -.soliloquy-admin-3-col { - display: flex; - flex-wrap: wrap; - margin-bottom: 0px; - margin: 0 20px; -} -.soliloquy-admin-3-col .soliloquy-cols { - flex-grow: 1; - width: 26%; - text-align: center; - border-radius: 4px; - padding: 3%; - margin-left: 20px; - background: #fff; - border: 1px solid #ddd; -} -.soliloquy-admin-3-col .soliloquy-cols:first-child { - margin-left: 0; -} -.soliloquy-admin-3-col .soliloquy-cols h3 { - font-size: 24px; -} -.soliloquy-admin-3-col .soliloquy-cols p { - max-width: 80%; - font-size: 16px; - margin: 20px auto; -} -.soliloquy-get-started-section { - margin-top: 20px; -} -.soliloquy-get-started-section .centered { - text-align: center; -} -.soliloquy-get-started-section .soliloquy-admin-get-started-panel h3 { - padding: 0; - margin: 0 0 10px 0; -} -.soliloquy-get-started-section .soliloquy-admin-get-started-panel p { - font-size: 18px; - line-height: 1.5; - margin: 30px 0; -} -.soliloquy-get-started-section .soliloquy-admin-get-started-panel .button.soliloquy-button { - font-size: 21px; - height: 50px; - line-height: 48px; -} -.soliloquy-get-started-section .soliloquy-admin-get-started-panel .feature-photo-column { - padding-left: 30px; - max-width: 360px; - min-width: 350px; - display: inherit; -} -.soliloquy-get-started-section .soliloquy-admin-get-started-panel .feature-photo-column img { - width: 100%; - margin: auto; -} -.soliloquy-get-started-section .soliloquy-admin-get-started-panel .feature-photo-column.photo-left { - padding-left: 0; - padding-right: 30px; -} -.soliloquy-get-started-section .soliloquy-admin-upgrade-panel { - overflow: hidden; - font-size: 18px; -} -.soliloquy-get-started-section .soliloquy-admin-upgrade-panel p { - font-size: 18px; -} -.soliloquy-get-started-section .soliloquy-admin-upgrade-panel .feature-photo-column { - position: relative; - margin-right: -120px; - margin-bottom: -540px; - width: 100%; -} -.soliloquy-get-started-section .soliloquy-admin-upgrade-panel .feature-photo-column img { - position: absolute; - right: -30px; - top: 0; -} -.soliloquy-get-started-section .soliloquy-admin-upgrade-panel .button.soliloquy-button { - font-size: 21px; - height: 50px; - line-height: 48px; -} -.soliloquy-get-started-section .soliloquy-admin-docs-panel { - background-color: #f5f5f5; - border-radius: 6px; - box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08); - overflow: hidden; - font-size: 18px; -} -.soliloquy-get-started-section .soliloquy-admin-docs-panel .soliloquy-admin-header { - display: flex; - vertical-align: middle; - align-items: center; - justify-content: space-between; - width: 100%; -} -.soliloquy-get-started-section .soliloquy-admin-get-started-banner { - display: flex; - background: #000; - color: #fff; - padding: 10px 0; - margin-bottom: 60px; - border-radius: 6px; -} -.soliloquy-get-started-section .soliloquy-admin-get-started-banner .banner-text { - display: block; - margin: 0 auto; - padding: 10px 0 0 0; - text-align: center; - font-size: 1.5em; - text-align: left; -} -.soliloquy-get-started-section .soliloquy-admin-get-started-banner .banner-text h3 { - font-size: 1.5em; - line-height: 1.3em; - margin: 5px auto; - color: #fff; -} -.soliloquy-get-started-section .soliloquy-admin-get-started-banner .banner-button { - margin: auto; - max-width: 33%; - height: 100%; - vertical-align: middle; -} -.soliloquy-get-started-section .soliloquy-admin-get-started-banner .banner-button a { - height: auto; - padding: 15px 25px; - font-size: 1.45em; - display: block; - margin: auto; -} -.soliloquy-get-started-section .soliloquy-help-section .button.soliloquy-button { - height: 40px; - line-height: 40px; - font-size: 18px; -} -@media screen and (max-width: 1400px) { - .soliloquy-am-plugins-wrap { - grid-template-columns: repeat(2, 1fr); - } -} -@media screen and (max-width: 800px) { - .soliloquy-am-plugins-wrap { - grid-template-columns: repeat(1, 1fr); - } - .soliloquy-admin-3-col .soliloquy-cols { - width: 100%; - margin: 0; - margin-bottom: 30px; - } -} +body[class*=" soliloquy_page_soliloquy-lite-"] *{box-sizing:border-box}body[class*=" soliloquy_page_soliloquy-lite-"] #soliloquy-header{height:150px}body[class*=" soliloquy_page_soliloquy-lite-"] .soliloquy-welcome-wrap{clear:both}.soliloquy-panel{display:flex;background:#fff;padding:30px;border:1px solid #ddd;line-height:2;font-size:16px;line-height:25px;margin:0 20px 20px}.soliloquy-panel.soliloquy-litevspro-panel{display:block;padding:0}.soliloquy-panel h3{font-size:18px;font-weight:600;line-height:1.2em;margin-top:0;margin-bottom:30px;text-transform:capitalize}.soliloquy-panel p{font-size:16px;line-height:1.5}.soliloquy-panel p a{font-weight:500;color:#7cc048;text-decoration:none}.soliloquy-panel p a:hover{text-decoration:underline}.soliloquy-panel ul{list-style:disc;list-style-position:inside}.soliloquy-panel ul.list-of-links{list-style:none}.soliloquy-panel ul.list-of-links a{color:#7cc048;text-decoration:none}.soliloquy-panel ul.list-of-links a:hover{text-decoration:underline}.soliloquy-panel .content{width:60%;padding-right:30px}.soliloquy-panel .image{width:40%}.soliloquy-panel .image img{max-width:100%;width:100%}.soliloquy-panel .feature-photo-column{padding-left:30px;display:inherit}.soliloquy-panel .feature-photo-column img{width:100%;margin:auto}.soliloquy-panel .feature-photo-column.photo-left{padding-left:0;padding-right:30px}.soliloquy-panel.mini-panel .feature-photo-column{padding-top:10px}.soliloquy-panel.mini-panel .feature-photo-column a{margin:0 auto;height:auto}.soliloquy-panel.mini-panel .feature-photo-column img{width:auto;margin:0 auto}#soliloquy-admin-litevspro .soliloquy-admin-litevspro-section-hero{text-align:center}#soliloquy-admin-litevspro .soliloquy-admin-litevspro-section-hero h2{font-size:21px}#soliloquy-admin-litevspro .soliloquy-admin-litevspro-section-hero h4{font-weight:normal;font-size:14px;color:rgba(60,67,74,.6980392157)}#soliloquy-admin-litevspro .centered{text-align:center}#soliloquy-admin-litevspro h1{font-size:34px;line-height:32px}#soliloquy-admin-litevspro p.centered{font-size:18px;line-height:21px}#soliloquy-admin-litevspro.wrap{margin-left:0;margin-right:0}#soliloquy-admin-litevspro .litevspro-table-header{background:#fff}#soliloquy-admin-litevspro .soliloquy-admin-litevspro-section{margin:0 0 30px 0;padding:30px;line-height:2}#soliloquy-admin-litevspro .soliloquy-admin-litevspro-section.no-bottom{margin-bottom:0;padding-bottom:0}#soliloquy-admin-litevspro .soliloquy-admin-litevspro-section.litevspro-table-header{padding-bottom:30px}#soliloquy-admin-litevspro table tr td{border-bottom:1px solid #ddd;border-right:1px solid #ddd;padding:30px;vertical-align:top;width:33%}#soliloquy-admin-litevspro table tr td p{font-size:18px;line-height:24px}#soliloquy-admin-litevspro table tr td:last-child{border-right:0}#soliloquy-admin-litevspro table{border-bottom:0}#soliloquy-admin-litevspro .soliloquy-admin-litevspro-section-hero{border-top:0}#soliloquy-admin-litevspro .soliloquy-admin-litevspro-section-hero .call-to-action{font-size:21px;font-weight:500;text-align:center}#soliloquy-admin-litevspro .soliloquy-admin-litevspro-section-hero .call-to-action a{font-size:16px;color:#3871ac}#soliloquy-admin-litevspro .soliloquy-admin-litevspro-section-hero p{text-align:center;font-size:14px;line-height:18px}#soliloquy-admin-litevspro .soliloquy-admin-litevspro-section-hero span.soliloquy-deal{font-weight:500;color:#00a32a}#soliloquy-admin-litevspro .soliloquy-admin-litevspro-section-table{padding-left:0;padding-right:0;padding-top:0}#soliloquy-admin-litevspro .soliloquy-admin-litevspro-section-table table{width:100%;background:#f5f5f5}#soliloquy-admin-litevspro .soliloquy-admin-litevspro-section-table table tr td:first-child{border-left:1px solid #ddd;border-bottom-color:#ddd;border-bottom-style:solid;border-bottom-width:1px}#soliloquy-admin-litevspro .soliloquy-admin-litevspro-section-table table tr td:last-child{border-right:1px solid #ddd;border-bottom-color:#ddd;border-bottom-style:solid;border-bottom-width:1px;background-color:#f3f9fe}#soliloquy-admin-litevspro .soliloquy-admin-litevspro-section-table table tr:first-child td{border-top:1px solid #ddd}#soliloquy-admin-litevspro .soliloquy-admin-litevspro-section-table table th{text-align:left;font-weight:600;font-size:18px;padding-left:30px;padding-bottom:20px;padding-top:20px;border-top:1px solid #ddd;border-right:1px solid #ddd;vertical-align:middle}#soliloquy-admin-litevspro .soliloquy-admin-litevspro-section-table table th:last-child{border-right:1px solid #ddd}#soliloquy-admin-litevspro .soliloquy-admin-litevspro-section-table table th:first-child{border-left:1px solid #ddd}#soliloquy-admin-litevspro .soliloquy-admin-litevspro-section-table table td{background:#fff}#soliloquy-admin-litevspro .soliloquy-admin-litevspro-section-table table td strong{display:block}#soliloquy-admin-litevspro .soliloquy-admin-litevspro-section-table table p{background-repeat:no-repeat;background-size:15px auto;background-position:0 6px;margin:0}#soliloquy-admin-litevspro .soliloquy-admin-litevspro-section-table table p.features-full{padding-left:30px;background-position:0 4px;background-image:url(../images/icons/litevspro/tick.svg)}#soliloquy-admin-litevspro .soliloquy-admin-litevspro-section-table table p.features-none{padding-left:30px;background-position:6px 6px;background-image:url(../images/icons/litevspro/cross_red.svg);background-size:15px auto}#soliloquy-admin-litevspro .soliloquy-admin-litevspro-section-table table p.features-partial{padding-left:30px;background-position:6px 6px;background-size:15px auto;background-image:url(../images/icons/litevspro/cross.svg)}.soliloquy-am-plugins-wrap{display:grid;grid-template-columns:repeat(3, 1fr);column-gap:30px;margin:0 20px 20px}.soliloquy-am-plugins{display:flex;flex-direction:column;background-color:#fff;border:1px solid #ddd;margin-bottom:30px;border-radius:6px}.soliloquy-am-plugins-main{display:flex;flex-direction:row;padding:30px 30px 20px;flex-grow:1;text-align:left}.soliloquy-am-plugins-main h3{padding-top:0;margin-top:0}.soliloquy-am-plugins-main img{padding-right:15px}.soliloquy-am-plugins-footer{display:flex;text-align:left;align-items:center;vertical-align:middle;padding:20px;background-color:#e8e8eb;border-top:1px solid #e6e6e6}.soliloquy-am-plugins-footer .soliloquy-am-plugins-install-wrap{margin-left:auto}.soliloquy-am-plugins-footer .soliloquy-am-plugins-install-wrap .spinner{float:none;margin:7px 10px 0}.soliloquy-am-plugins-footer .soliloquy-am-plugins-button{font-size:14px !important;height:35px !important;line-height:38px !important;border-radius:4px !important;background-color:#e02626 !important;border:none}.soliloquy-am-plugins-status{font-weight:bold}.soliloquy-am-plugins-status span{font-weight:normal}.soliloquy-admin-3-col{display:flex;flex-wrap:wrap;margin-bottom:0px;margin:0 20px}.soliloquy-admin-3-col .soliloquy-cols{flex-grow:1;width:26%;text-align:center;border-radius:4px;padding:3%;margin-left:20px;background:#fff;border:1px solid #ddd}.soliloquy-admin-3-col .soliloquy-cols:first-child{margin-left:0}.soliloquy-admin-3-col .soliloquy-cols h3{font-size:24px}.soliloquy-admin-3-col .soliloquy-cols p{max-width:80%;font-size:16px;margin:20px auto}.soliloquy-get-started-section{margin-top:20px}.soliloquy-get-started-section .centered{text-align:center}.soliloquy-get-started-section .soliloquy-admin-get-started-panel h3{padding:0;margin:0 0 10px 0}.soliloquy-get-started-section .soliloquy-admin-get-started-panel p{font-size:18px;line-height:1.5;margin:30px 0}.soliloquy-get-started-section .soliloquy-admin-get-started-panel .button.soliloquy-button{font-size:21px;height:50px;line-height:48px}.soliloquy-get-started-section .soliloquy-admin-get-started-panel .feature-photo-column{padding-left:30px;max-width:360px;min-width:350px;display:inherit}.soliloquy-get-started-section .soliloquy-admin-get-started-panel .feature-photo-column img{width:100%;margin:auto}.soliloquy-get-started-section .soliloquy-admin-get-started-panel .feature-photo-column.photo-left{padding-left:0;padding-right:30px}.soliloquy-get-started-section .soliloquy-admin-upgrade-panel{overflow:hidden;font-size:18px}.soliloquy-get-started-section .soliloquy-admin-upgrade-panel p{font-size:18px}.soliloquy-get-started-section .soliloquy-admin-upgrade-panel .feature-photo-column{position:relative;margin-right:-120px;margin-bottom:-540px;width:100%}.soliloquy-get-started-section .soliloquy-admin-upgrade-panel .feature-photo-column img{position:absolute;right:-30px;top:0}.soliloquy-get-started-section .soliloquy-admin-upgrade-panel .button.soliloquy-button{font-size:21px;height:50px;line-height:48px}.soliloquy-get-started-section .soliloquy-admin-docs-panel{background-color:#f5f5f5;border-radius:6px;box-shadow:0 2px 5px rgba(0,0,0,.08);overflow:hidden;font-size:18px}.soliloquy-get-started-section .soliloquy-admin-docs-panel .soliloquy-admin-header{display:flex;vertical-align:middle;align-items:center;justify-content:space-between;width:100%}.soliloquy-get-started-section .soliloquy-admin-get-started-banner{display:flex;background:#000;color:#fff;padding:10px 0;margin-bottom:60px;border-radius:6px}.soliloquy-get-started-section .soliloquy-admin-get-started-banner .banner-text{display:block;margin:0 auto;padding:10px 0 0 0;text-align:center;font-size:1.5em;text-align:left}.soliloquy-get-started-section .soliloquy-admin-get-started-banner .banner-text h3{font-size:1.5em;line-height:1.3em;margin:5px auto;color:#fff}.soliloquy-get-started-section .soliloquy-admin-get-started-banner .banner-button{margin:auto;max-width:33%;height:100%;vertical-align:middle}.soliloquy-get-started-section .soliloquy-admin-get-started-banner .banner-button a{height:auto;padding:15px 25px;font-size:1.45em;display:block;margin:auto}.soliloquy-get-started-section .soliloquy-help-section .button.soliloquy-button{height:40px;line-height:40px;font-size:18px}@media screen and (max-width: 1400px){.soliloquy-am-plugins-wrap{grid-template-columns:repeat(2, 1fr)}}@media screen and (max-width: 800px){.soliloquy-am-plugins-wrap{grid-template-columns:repeat(1, 1fr)}.soliloquy-admin-3-col .soliloquy-cols{width:100%;margin:0;margin-bottom:30px}} \ No newline at end of file @@ -30,9 +30,32 @@ }); }); + $(document).on('click', '.soliloquy-upgrade-modal', function () { + $.alert({ + title: soliloquy_addons.thanks_for_interest, + content: soliloquy_addons.upgrade_modal, + icon: 'dashicons dashicons-info', + type: 'blue', + boxWidth: '550px', + useBootstrap: false, + theme: 'modern', + titleClass: 'soliloquy-upgrade-modal-title', + onOpen: function () { + this.$jconfirmBox.addClass('soliloquy-upgrade-modal-box'); + }, + buttons: { + confirm: { + text: soliloquy_addons.ok, + btnClass: 'btn-confirm', + keys: ['enter'] + } + } + }); + }); + //Sort Filter for addons $('#soliloquy-addon-filter').on('change', function () { - var $select = $(this), + const $select = $(this), $value = $select.val(), $container = $('#soliloquy-addons-area'), container_data = $container.data('soliloquy-filter'), @@ -112,7 +135,7 @@ function (e) { e.preventDefault(); - var $el = $(this), + const $el = $(this), buttons = $('#soliloquy-addons-area').find('.soliloquy-addon-action-button'); $.each(buttons, function (i, element) { @@ -132,7 +155,7 @@ function (e) { e.preventDefault(); - var $button = $(this), + const $button = $(this), plugin = $button.attr('rel'), $el = $button.parent().parent(), $message = $button.parent().parent().find('.addon-status').children('span'); @@ -147,7 +170,7 @@ }); // Process the Ajax to perform the activation. - var opts = { + const opts = { url: ajaxurl, type: 'post', async: true, @@ -195,7 +218,7 @@ function (e) { e.preventDefault(); - var $button = $(this), + const $button = $(this), plugin = $button.attr('rel'), $el = $button.parent().parent(), $message = $button.parent().parent().find('.addon-status').children('span'); @@ -210,7 +233,7 @@ }); // Process the Ajax to perform the activation. - var opts = { + const opts = { url: ajaxurl, type: 'post', async: true, @@ -257,7 +280,7 @@ $('#soliloquy-addons-area').on('click.installAddon', '.soliloquy-install-addon', function (e) { e.preventDefault(); - var $button = $(this), + const $button = $(this), plugin = $button.attr('rel'), $el = $button.parent().parent(), $message = $button.parent().parent().find('.addon-status').children('span'); @@ -272,7 +295,7 @@ }); // Process the Ajax to perform the activation. - var opts = { + const opts = { url: ajaxurl, type: 'post', async: true, @@ -322,12 +345,12 @@ }); // Now let's make another Ajax request once the user has submitted their credentials. - var hostname = $(this).parent().parent().find('#hostname').val(), + const hostname = $(this).parent().parent().find('#hostname').val(), username = $(this).parent().parent().find('#username').val(), password = $(this).parent().parent().find('#password').val(), proceed = $(this), connect = $(this).parent().parent().parent().parent(); - var cred_opts = { + const cred_opts = { url: ajaxurl, type: 'post', async: true, @@ -14,7 +14,7 @@ let soliloquy_notifications, soliloquy_connect; window.soliloquy_notifications = soliloquy_notifications = { init() { - var app = this; + const app = this; app.$drawer = $('#soliloquy-notifications-drawer'); app.find_elements(); app.init_open(); @@ -25,11 +25,11 @@ }, should_init() { - var app = this; + const app = this; return app.$drawer.length > 0; }, find_elements() { - var app = this; + const app = this; app.$open_button = $('#soliloquy-notifications-button'); app.$count = app.$drawer.find('#soliloquy-notifications-count'); app.$dismissed_count = app.$drawer.find('#soliloquy-notifications-dismissed-count'); @@ -43,7 +43,7 @@ app.$dismiss_all = $('#soliloquy-dismiss-all'); }, update_count(count) { - var app = this; + const app = this; app.$open_button.data('count', count).attr('data-count', count); if (0 === count) { app.$open_button.removeAttr('data-count'); @@ -59,14 +59,14 @@ } }, init_open() { - var app = this; + const app = this; app.$open_button.on('click', function (e) { e.preventDefault(); app.$body.addClass('soliloquy-notifications-open'); }); }, init_close() { - var app = this; + const app = this; app.$body.on( 'click', '.soliloquy-notifications-close, .soliloquy-notifications-overlay', @@ -77,7 +77,7 @@ ); }, init_dismiss() { - var app = this; + const app = this; app.$drawer.on('click', '.soliloquy-notification-dismiss', function (e) { e.preventDefault(); const id = $(this).data('id'); @@ -92,13 +92,13 @@ }); }, move_to_dismissed(element) { - var app = this; + const app = this; element.slideUp(function () { $(this).prependTo(app.$dismissed_list).show(); }); }, dismiss_notification(id) { - var app = this; + const app = this; return $.post(ajaxurl, { action: 'soliloquy_notification_dismiss', nonce: soliloquy_admin.dismiss_notification_nonce, @@ -106,7 +106,7 @@ }); }, init_view_switch() { - var app = this; + const app = this; app.$dismissed_button.on('click', function (e) { e.preventDefault(); app.$drawer.addClass('show-dismissed'); @@ -126,15 +126,15 @@ this.connectClicked(); }, connectClicked() { - let app = this; + const app = this; $('#soliloquy-settings-connect-btn').on('click', function (e) { e.preventDefault(); app.gotoUpgradeUrl(); }); }, gotoUpgradeUrl() { - let app = this; - let data = { + const app = this; + const data = { action: 'soliloquy_connect', key: $('#soliloquy-settings-key').val(), _wpnonce: soliloquy_admin.connect_nonce @@ -182,7 +182,7 @@ } }); }, - failAlert() { + failAlert(xhr) { Swal.fire({ title: soliloquy_admin.oops, html: @@ -1,11038 +1,12 @@ // CodeMirror base. -window.CodeMirror = (function () { - var bI = /gecko\/\d/i.test(navigator.userAgent); - var cf = /MSIE \d/.test(navigator.userAgent); - var bF = cf && (document.documentMode == null || document.documentMode < 8); - var bE = cf && (document.documentMode == null || document.documentMode < 9); - var dC = /Trident\/([7-9]|\d{2,})\./.test(navigator.userAgent); - var cA = cf || dC; - var b8 = /WebKit\//.test(navigator.userAgent); - var cD = b8 && /Qt\/\d+\.\d+/.test(navigator.userAgent); - var cg = /Chrome\//.test(navigator.userAgent); - var d1 = /Opera\//.test(navigator.userAgent); - var ag = /Apple Computer/.test(navigator.vendor); - var aH = /KHTML\//.test(navigator.userAgent); - var bT = /Mac OS X 1\d\D([7-9]|\d\d)\D/.test(navigator.userAgent); - var cc = /Mac OS X 1\d\D([8-9]|\d\d)\D/.test(navigator.userAgent); - var dY = /PhantomJS/.test(navigator.userAgent); - var dy = /AppleWebKit/.test(navigator.userAgent) && /Mobile\/\w+/.test(navigator.userAgent); - var cV = - dy || /Android|webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(navigator.userAgent); - var bq = dy || /Mac/.test(navigator.platform); - var ao = /win/i.test(navigator.platform); - var c8 = d1 && navigator.userAgent.match(/Version\/(\d*\.\d*)/); - if (c8) { - c8 = Number(c8[1]); - } - if (c8 && c8 >= 15) { - d1 = false; - b8 = true; - } - var be = bq && (cD || (d1 && (c8 == null || c8 < 12.11))); - var bX = bI || (cf && !bE); - var eq = false, - aD = false; - function B(ew, ex) { - if (!(this instanceof B)) { - return new B(ew, ex); - } - this.options = ex = ex || {}; - for (var ey in dA) { - if (!ex.hasOwnProperty(ey) && dA.hasOwnProperty(ey)) { - ex[ey] = dA[ey]; - } - } - by(ex); - var eC = typeof ex.value == 'string' ? 0 : ex.value.first; - var eB = (this.display = f(ew, eC)); - eB.wrapper.CodeMirror = this; - cR(this); - if (ex.autofocus && !cV) { - db(this); - } - this.state = { - keyMaps: [], - overlays: [], - modeGen: 0, - overwrite: false, - focused: false, - suppressEdits: false, - pasteIncoming: false, - cutIncoming: false, - draggingText: false, - highlight: new ev() - }; - b2(this); - if (ex.lineWrapping) { - this.display.wrapper.className += ' CodeMirror-wrap'; - } - var eA = ex.value; - if (typeof eA == 'string') { - eA = new aa(ex.value, ex.mode); - } - b9(this, cQ)(this, eA); - if (cf) { - setTimeout(bO(dU, this, true), 20); - } - ee(this); - var eD; - try { - eD = document.activeElement == eB.input; - } catch (ez) {} - if (eD || (ex.autofocus && !cV)) { - setTimeout(bO(bS, this), 20); - } else { - au(this); - } - b9(this, function () { - for (var eF in aK) { - if (aK.propertyIsEnumerable(eF)) { - aK[eF](this, ex[eF], bw); - } - } - for (var eE = 0; eE < aE.length; ++eE) { - aE[eE](this); - } - })(); - } - function f(ew, ey) { - var ez = {}; - var ex = (ez.input = ej( - 'textarea', - null, - null, - 'position: absolute; padding: 0; width: 1px; height: 1em; outline: none; font-size: 4px;' - )); - if (b8) { - ex.style.width = '1000px'; - } else { - ex.setAttribute('wrap', 'off'); - } - if (dy) { - ex.style.border = '1px solid black'; - } - ex.setAttribute('autocorrect', 'off'); - ex.setAttribute('autocapitalize', 'off'); - ex.setAttribute('spellcheck', 'false'); - ez.inputDiv = ej( - 'div', - [ex], - null, - 'overflow: hidden; position: relative; width: 3px; height: 0px;' - ); - ez.scrollbarH = ej('div', [ej('div', null, null, 'height: 1px')], 'CodeMirror-hscrollbar'); - ez.scrollbarV = ej('div', [ej('div', null, null, 'width: 1px')], 'CodeMirror-vscrollbar'); - ez.scrollbarFiller = ej('div', null, 'CodeMirror-scrollbar-filler'); - ez.gutterFiller = ej('div', null, 'CodeMirror-gutter-filler'); - ez.lineDiv = ej('div', null, 'CodeMirror-code'); - ez.selectionDiv = ej('div', null, null, 'position: relative; z-index: 1'); - ez.cursor = ej('div', '\u00a0', 'CodeMirror-cursor'); - ez.otherCursor = ej('div', '\u00a0', 'CodeMirror-cursor CodeMirror-secondarycursor'); - ez.measure = ej('div', null, 'CodeMirror-measure'); - ez.lineSpace = ej( - 'div', - [ez.measure, ez.selectionDiv, ez.lineDiv, ez.cursor, ez.otherCursor], - null, - 'position: relative; outline: none' - ); - ez.mover = ej( - 'div', - [ej('div', [ez.lineSpace], 'CodeMirror-lines')], - null, - 'position: relative' - ); - ez.sizer = ej('div', [ez.mover], 'CodeMirror-sizer'); - ez.heightForcer = ej( - 'div', - null, - null, - 'position: absolute; height: ' + aO + 'px; width: 1px;' - ); - ez.gutters = ej('div', null, 'CodeMirror-gutters'); - ez.lineGutter = null; - ez.scroller = ej('div', [ez.sizer, ez.heightForcer, ez.gutters], 'CodeMirror-scroll'); - ez.scroller.setAttribute('tabIndex', '-1'); - ez.wrapper = ej( - 'div', - [ez.inputDiv, ez.scrollbarH, ez.scrollbarV, ez.scrollbarFiller, ez.gutterFiller, ez.scroller], - 'CodeMirror' - ); - if (bF) { - ez.gutters.style.zIndex = -1; - ez.scroller.style.paddingRight = 0; - } - if (ew.appendChild) { - ew.appendChild(ez.wrapper); - } else { - ew(ez.wrapper); - } - if (dy) { - ex.style.width = '0px'; - } - if (!b8) { - ez.scroller.draggable = true; - } - if (aH) { - ez.inputDiv.style.height = '1px'; - ez.inputDiv.style.position = 'absolute'; - } else { - if (bF) { - ez.scrollbarH.style.minWidth = ez.scrollbarV.style.minWidth = '18px'; - } - } - ez.viewOffset = ez.lastSizeC = 0; - ez.showingFrom = ez.showingTo = ey; - ez.lineNumWidth = ez.lineNumInnerWidth = ez.lineNumChars = null; - ez.prevInput = ''; - ez.alignWidgets = false; - ez.pollingFast = false; - ez.poll = new ev(); - ez.cachedCharWidth = ez.cachedTextHeight = null; - ez.measureLineCache = []; - ez.measureLineCachePos = 0; - ez.inaccurateSelection = false; - ez.maxLine = null; - ez.maxLineLength = 0; - ez.maxLineChanged = false; - ez.wheelDX = ez.wheelDY = ez.wheelStartX = ez.wheelStartY = null; - return ez; - } - function aW(ew) { - ew.doc.mode = B.getMode(ew.options, ew.doc.modeOption); - cZ(ew); - } - function cZ(ew) { - ew.doc.iter(function (ex) { - if (ex.stateAfter) { - ex.stateAfter = null; - } - if (ex.styles) { - ex.styles = null; - } - }); - ew.doc.frontier = ew.doc.first; - cU(ew, 100); - ew.state.modeGen++; - if (ew.curOp) { - Q(ew); - } - } - function dj(ew) { - if (ew.options.lineWrapping) { - ew.display.wrapper.className += ' CodeMirror-wrap'; - ew.display.sizer.style.minWidth = ''; - } else { - ew.display.wrapper.className = ew.display.wrapper.className.replace(' CodeMirror-wrap', ''); - em(ew); - } - L(ew); - Q(ew); - T(ew); - setTimeout(function () { - dw(ew); - }, 100); - } - function aJ(ew) { - var ey = aw(ew.display), - ex = ew.options.lineWrapping; - var ez = ex && Math.max(5, ew.display.scroller.clientWidth / cy(ew.display) - 3); - return function (eA) { - if (dZ(ew.doc, eA)) { - return 0; - } else { - if (ex) { - return (Math.ceil(eA.text.length / ez) || 1) * ey; - } else { - return ey; - } - } - }; - } - function L(ew) { - var ey = ew.doc, - ex = aJ(ew); - ey.iter(function (ez) { - var eA = ex(ez); - if (eA != ez.height) { - eo(ez, eA); - } - }); - } - function et(ew) { - var ey = dF[ew.options.keyMap], - ex = ey.style; - ew.display.wrapper.className = - ew.display.wrapper.className.replace(/\s*cm-keymap-\S+/g, '') + - (ex ? ' cm-keymap-' + ex : ''); - } - function b2(ew) { - ew.display.wrapper.className = - ew.display.wrapper.className.replace(/\s*cm-s-\S+/g, '') + - ew.options.theme.replace(/(^|\s)\s*/g, ' cm-s-'); - T(ew); - } - function ct(ew) { - cR(ew); - Q(ew); - setTimeout(function () { - df(ew); - }, 20); - } - function cR(ew) { - var ex = ew.display.gutters, - eB = ew.options.gutters; - cK(ex); - for (var ey = 0; ey < eB.length; ++ey) { - var ez = eB[ey]; - var eA = ex.appendChild(ej('div', null, 'CodeMirror-gutter ' + ez)); - if (ez == 'CodeMirror-linenumbers') { - ew.display.lineGutter = eA; - eA.style.width = (ew.display.lineNumWidth || 1) + 'px'; - } - } - ex.style.display = ey ? '' : 'none'; - } - function c0(eA, ey) { - if (ey.height == 0) { - return 0; - } - var ex = ey.text.length, - ew, - eB = ey; - while ((ew = dn(eB))) { - var ez = ew.find(); - eB = dJ(eA, ez.from.line); - ex += ez.from.ch - ez.to.ch; - } - eB = ey; - while ((ew = c5(eB))) { - var ez = ew.find(); - ex -= eB.text.length - ez.from.ch; - eB = dJ(eA, ez.to.line); - ex += eB.text.length - ez.to.ch; - } - return ex; - } - function em(ew) { - var ey = ew.display, - ex = ew.doc; - ey.maxLine = dJ(ex, ex.first); - ey.maxLineLength = c0(ex, ey.maxLine); - ey.maxLineChanged = true; - ex.iter(function (eA) { - var ez = c0(ex, eA); - if (ez > ey.maxLineLength) { - ey.maxLineLength = ez; - ey.maxLine = eA; - } - }); - } - function by(ew) { - var ex = cl(ew.gutters, 'CodeMirror-linenumbers'); - if (ex == -1 && ew.lineNumbers) { - ew.gutters = ew.gutters.concat(['CodeMirror-linenumbers']); - } else { - if (ex > -1 && !ew.lineNumbers) { - ew.gutters = ew.gutters.slice(0); - ew.gutters.splice(ex, 1); - } - } - } - function dw(ew) { - var eC = ew.display, - ex = ew.doc.height; - var ez = ex + a7(eC); - eC.sizer.style.minHeight = eC.heightForcer.style.top = ez + 'px'; - eC.gutters.style.height = Math.max(ez, eC.scroller.clientHeight - aO) + 'px'; - var eA = Math.max(ez, eC.scroller.scrollHeight); - var eB = eC.scroller.scrollWidth > eC.scroller.clientWidth + 1; - var ey = eA > eC.scroller.clientHeight + 1; - if (ey) { - eC.scrollbarV.style.display = 'block'; - eC.scrollbarV.style.bottom = eB ? i(eC.measure) + 'px' : '0'; - eC.scrollbarV.firstChild.style.height = - eA - eC.scroller.clientHeight + eC.scrollbarV.clientHeight + 'px'; - } else { - eC.scrollbarV.style.display = ''; - eC.scrollbarV.firstChild.style.height = '0'; - } - if (eB) { - eC.scrollbarH.style.display = 'block'; - eC.scrollbarH.style.right = ey ? i(eC.measure) + 'px' : '0'; - eC.scrollbarH.firstChild.style.width = - eC.scroller.scrollWidth - eC.scroller.clientWidth + eC.scrollbarH.clientWidth + 'px'; - } else { - eC.scrollbarH.style.display = ''; - eC.scrollbarH.firstChild.style.width = '0'; - } - if (eB && ey) { - eC.scrollbarFiller.style.display = 'block'; - eC.scrollbarFiller.style.height = eC.scrollbarFiller.style.width = i(eC.measure) + 'px'; - } else { - eC.scrollbarFiller.style.display = ''; - } - if (eB && ew.options.coverGutterNextToScrollbar && ew.options.fixedGutter) { - eC.gutterFiller.style.display = 'block'; - eC.gutterFiller.style.height = i(eC.measure) + 'px'; - eC.gutterFiller.style.width = eC.gutters.offsetWidth + 'px'; - } else { - eC.gutterFiller.style.display = ''; - } - if (bT && i(eC.measure) === 0) { - eC.scrollbarV.style.minWidth = eC.scrollbarH.style.minHeight = cc ? '18px' : '12px'; - eC.scrollbarV.style.pointerEvents = eC.scrollbarH.style.pointerEvents = 'none'; - } - } - function bp(eB, eA, ez) { - var ey = eB.scroller.scrollTop, - ew = eB.wrapper.clientHeight; - if (typeof ez == 'number') { - ey = ez; - } else { - if (ez) { - ey = ez.top; - ew = ez.bottom - ez.top; - } - } - ey = Math.floor(ey - dD(eB)); - var ex = Math.ceil(ey + ew); - return {from: a5(eA, ey), to: a5(eA, ex)}; - } - function df(ew) { - var eC = ew.display; - if (!eC.alignWidgets && (!eC.gutters.firstChild || !ew.options.fixedGutter)) { - return; - } - var ez = cJ(eC) - eC.scroller.scrollLeft + ew.doc.scrollLeft; - var eB = eC.gutters.offsetWidth, - ey = ez + 'px'; - for (var eD = eC.lineDiv.firstChild; eD; eD = eD.nextSibling) { - if (eD.alignable) { - for (var eA = 0, ex = eD.alignable; eA < ex.length; ++eA) { - ex[eA].style.left = ey; - } - } - } - if (ew.options.fixedGutter) { - eC.gutters.style.left = ez + eB + 'px'; - } - } - function cM(ew) { - if (!ew.options.lineNumbers) { - return false; - } - var eB = ew.doc, - ex = c3(ew.options, eB.first + eB.size - 1), - eA = ew.display; - if (ex.length != eA.lineNumChars) { - var eC = eA.measure.appendChild( - ej('div', [ej('div', ex)], 'CodeMirror-linenumber CodeMirror-gutter-elt') - ); - var ey = eC.firstChild.offsetWidth, - ez = eC.offsetWidth - ey; - eA.lineGutter.style.width = ''; - eA.lineNumInnerWidth = Math.max(ey, eA.lineGutter.offsetWidth - ez); - eA.lineNumWidth = eA.lineNumInnerWidth + ez; - eA.lineNumChars = eA.lineNumInnerWidth ? ex.length : -1; - eA.lineGutter.style.width = eA.lineNumWidth + 'px'; - return true; - } - return false; - } - function c3(ew, ex) { - return String(ew.lineNumberFormatter(ex + ew.firstLineNumber)); - } - function cJ(ew) { - return an(ew.scroller).left - an(ew.sizer).left; - } - function cB(eB, eA, eE, eF) { - var eD = eB.display.showingFrom, - eC = eB.display.showingTo, - ez; - var ew = bp(eB.display, eB.doc, eE); - for (var ey = true; ; ey = false) { - var ex = eB.display.scroller.clientWidth; - if (!cj(eB, eA, ew, eF)) { - break; - } - ez = true; - eA = []; - a2(eB); - dw(eB); - if (ey && eB.options.lineWrapping && ex != eB.display.scroller.clientWidth) { - eF = true; - continue; - } - eF = false; - if (eE) { - eE = Math.min( - eB.display.scroller.scrollHeight - eB.display.scroller.clientHeight, - typeof eE == 'number' ? eE : eE.top - ); - } - ew = bp(eB.display, eB.doc, eE); - if (ew.from >= eB.display.showingFrom && ew.to <= eB.display.showingTo) { - break; - } - } - if (ez) { - O(eB, 'update', eB); - if (eB.display.showingFrom != eD || eB.display.showingTo != eC) { - O(eB, 'viewportChange', eB, eB.display.showingFrom, eB.display.showingTo); - } - } - return ez; - } - function cj(eA, eO, ex, eM) { - var eG = eA.display, - eP = eA.doc; - if (!eG.wrapper.offsetWidth) { - eG.showingFrom = eG.showingTo = eP.first; - eG.viewOffset = 0; - return; - } - if (!eM && eO.length == 0 && ex.from > eG.showingFrom && ex.to < eG.showingTo) { - return; - } - if (cM(eA)) { - eO = [{from: eP.first, to: eP.first + eP.size}]; - } - var eL = (eG.sizer.style.marginLeft = eG.gutters.offsetWidth + 'px'); - eG.scrollbarH.style.left = eA.options.fixedGutter ? eL : '0'; - var ey = Infinity; - if (eA.options.lineNumbers) { - for (var eH = 0; eH < eO.length; ++eH) { - if (eO[eH].diff && eO[eH].from < ey) { - ey = eO[eH].from; - } - } - } - var ez = eP.first + eP.size; - var eF = Math.max(ex.from - eA.options.viewportMargin, eP.first); - var ew = Math.min(ez, ex.to + eA.options.viewportMargin); - if (eG.showingFrom < eF && eF - eG.showingFrom < 20) { - eF = Math.max(eP.first, eG.showingFrom); - } - if (eG.showingTo > ew && eG.showingTo - ew < 20) { - ew = Math.min(ez, eG.showingTo); - } - if (aD) { - eF = bc(u(eP, dJ(eP, eF))); - while (ew < ez && dZ(eP, dJ(eP, ew))) { - ++ew; - } - } - var eJ = [{from: Math.max(eG.showingFrom, eP.first), to: Math.min(eG.showingTo, ez)}]; - if (eJ[0].from >= eJ[0].to) { - eJ = []; - } else { - eJ = dT(eJ, eO); - } - if (aD) { - for (var eH = 0; eH < eJ.length; ++eH) { - var eC = eJ[eH], - eK; - while ((eK = c5(dJ(eP, eC.to - 1)))) { - var eN = eK.find().from.line; - if (eN > eC.from) { - eC.to = eN; - } else { - eJ.splice(eH--, 1); - break; - } - } - } - } - var eE = 0; - for (var eH = 0; eH < eJ.length; ++eH) { - var eC = eJ[eH]; - if (eC.from < eF) { - eC.from = eF; - } - if (eC.to > ew) { - eC.to = ew; - } - if (eC.from >= eC.to) { - eJ.splice(eH--, 1); - } else { - eE += eC.to - eC.from; - } - } - if (!eM && eE == ew - eF && eF == eG.showingFrom && ew == eG.showingTo) { - h(eA); - return; - } - eJ.sort(function (eR, eQ) { - return eR.from - eQ.from; - }); - try { - var eB = document.activeElement; - } catch (eI) {} - if (eE < (ew - eF) * 0.7) { - eG.lineDiv.style.display = 'none'; - } - bG(eA, eF, ew, eJ, ey); - eG.lineDiv.style.display = ''; - if (eB && document.activeElement != eB && eB.offsetHeight) { - eB.focus(); - } - var eD = eF != eG.showingFrom || ew != eG.showingTo || eG.lastSizeC != eG.wrapper.clientHeight; - if (eD) { - eG.lastSizeC = eG.wrapper.clientHeight; - cU(eA, 400); - } - eG.showingFrom = eF; - eG.showingTo = ew; - eG.gutters.style.height = ''; - aF(eA); - h(eA); - return true; - } - function aF(eE) { - var eB = eE.display; - var ex = eB.lineDiv.offsetTop; - for (var ew = eB.lineDiv.firstChild, eF; ew; ew = ew.nextSibling) { - if (ew.lineObj) { - if (bF) { - var eA = ew.offsetTop + ew.offsetHeight; - eF = eA - ex; - ex = eA; - } else { - var ez = an(ew); - eF = ez.bottom - ez.top; - } - var eD = ew.lineObj.height - eF; - if (eF < 2) { - eF = aw(eB); - } - if (eD > 0.001 || eD < -0.001) { - eo(ew.lineObj, eF); - var eC = ew.lineObj.widgets; - if (eC) { - for (var ey = 0; ey < eC.length; ++ey) { - eC[ey].height = eC[ey].node.offsetHeight; - } - } - } - } - } - } - function h(ew) { - var ex = (ew.display.viewOffset = bb(ew, dJ(ew.doc, ew.display.showingFrom))); - ew.display.mover.style.top = ex + 'px'; - } - function dT(eF, eD) { - for (var eA = 0, ey = eD.length || 0; eA < ey; ++eA) { - var eC = eD[eA], - ew = [], - eE = eC.diff || 0; - for (var ez = 0, ex = eF.length; ez < ex; ++ez) { - var eB = eF[ez]; - if (eC.to <= eB.from && eC.diff) { - ew.push({from: eB.from + eE, to: eB.to + eE}); - } else { - if (eC.to <= eB.from || eC.from >= eB.to) { - ew.push(eB); - } else { - if (eC.from > eB.from) { - ew.push({from: eB.from, to: eC.from}); - } - if (eC.to < eB.to) { - ew.push({from: eC.to + eE, to: eB.to + eE}); - } - } - } - } - eF = ew; - } - return eF; - } - function dG(ew) { - var eA = ew.display, - ez = {}, - ey = {}; - for (var eB = eA.gutters.firstChild, ex = 0; eB; eB = eB.nextSibling, ++ex) { - ez[ew.options.gutters[ex]] = eB.offsetLeft; - ey[ew.options.gutters[ex]] = eB.offsetWidth; - } - return { - fixedPos: cJ(eA), - gutterTotalWidth: eA.gutters.offsetWidth, - gutterLeft: ez, - gutterWidth: ey, - wrapperWidth: eA.wrapper.clientWidth - }; - } - function bG(eF, eC, eD, eI, ex) { - var eE = dG(eF); - var eB = eF.display, - eH = eF.options.lineNumbers; - if (!eI.length && (!b8 || !eF.display.currentWheelTarget)) { - cK(eB.lineDiv); - } - var ew = eB.lineDiv, - eG = ew.firstChild; - function eA(eK) { - var eJ = eK.nextSibling; - if (b8 && bq && eF.display.currentWheelTarget == eK) { - eK.style.display = 'none'; - eK.lineObj = null; - } else { - eK.parentNode.removeChild(eK); - } - return eJ; - } - var ey = eI.shift(), - ez = eC; - eF.doc.iter(eC, eD, function (eS) { - if (ey && ey.to == ez) { - ey = eI.shift(); - } - if (dZ(eF.doc, eS)) { - if (eS.height != 0) { - eo(eS, 0); - } - if (eS.widgets && eG && eG.previousSibling) { - for (var eN = 0; eN < eS.widgets.length; ++eN) { - var eP = eS.widgets[eN]; - if (eP.showIfHidden) { - var eL = eG.previousSibling; - if (/pre/i.test(eL.nodeName)) { - var eK = ej('div', null, null, 'position: relative'); - eL.parentNode.replaceChild(eK, eL); - eK.appendChild(eL); - eL = eK; - } - var eQ = eL.appendChild(ej('div', [eP.node], 'CodeMirror-linewidget')); - if (!eP.handleMouseEvents) { - eQ.ignoreEvents = true; - } - a4(eP, eQ, eL, eE); - } - } - } - } else { - if (ey && ey.from <= ez && ey.to > ez) { - while (eG.lineObj != eS) { - eG = eA(eG); - } - if (eH && ex <= ez && eG.lineNumber) { - l(eG.lineNumber, c3(eF.options, ez)); - } - eG = eG.nextSibling; - } else { - if (eS.widgets) { - for (var eM = 0, eR = eG, eO; eR && eM < 20; ++eM, eR = eR.nextSibling) { - if (eR.lineObj == eS && /div/i.test(eR.nodeName)) { - eO = eR; - break; - } - } - } - var eJ = ai(eF, eS, ez, eE, eO); - if (eJ != eO) { - ew.insertBefore(eJ, eG); - } else { - while (eG != eO) { - eG = eA(eG); - } - eG = eG.nextSibling; - } - eJ.lineObj = eS; - } - } - ++ez; - }); - while (eG) { - eG = eA(eG); - } - } - function ai(eD, eF, eG, eJ, ey) { - var eC = dq(eD, eF), - eP = eC.pre; - var eS = eF.gutterMarkers, - eQ = eD.display, - eE; - var ex = eC.bgClass ? eC.bgClass + ' ' + (eF.bgClass || '') : eF.bgClass; - if (!eD.options.lineNumbers && !eS && !ex && !eF.wrapClass && !eF.widgets) { - return eP; - } - if (ey) { - ey.alignable = null; - var eT = true, - eB = 0, - ez = null; - for (var eL = ey.firstChild, eK; eL; eL = eK) { - eK = eL.nextSibling; - if (!/\bCodeMirror-linewidget\b/.test(eL.className)) { - ey.removeChild(eL); - } else { - for (var eR = 0; eR < eF.widgets.length; ++eR) { - var eA = eF.widgets[eR]; - if (eA.node == eL.firstChild) { - if (!eA.above && !ez) { - ez = eL; - } - a4(eA, eL, ey, eJ); - ++eB; - break; - } - } - if (eR == eF.widgets.length) { - eT = false; - break; - } - } - } - ey.insertBefore(eP, ez); - if (eT && eB == eF.widgets.length) { - eE = ey; - ey.className = eF.wrapClass || ''; - } - } - if (!eE) { - eE = ej('div', null, eF.wrapClass, 'position: relative'); - eE.appendChild(eP); - } - if (ex) { - eE.insertBefore(ej('div', null, ex + ' CodeMirror-linebackground'), eE.firstChild); - } - if (eD.options.lineNumbers || eS) { - var eN = eE.insertBefore( - ej( - 'div', - null, - 'CodeMirror-gutter-wrapper', - 'position: absolute; left: ' + - (eD.options.fixedGutter ? eJ.fixedPos : -eJ.gutterTotalWidth) + - 'px' - ), - eP - ); - if (eD.options.fixedGutter) { - (eE.alignable || (eE.alignable = [])).push(eN); - } - if (eD.options.lineNumbers && (!eS || !eS['CodeMirror-linenumbers'])) { - eE.lineNumber = eN.appendChild( - ej( - 'div', - c3(eD.options, eG), - 'CodeMirror-linenumber CodeMirror-gutter-elt', - 'left: ' + - eJ.gutterLeft['CodeMirror-linenumbers'] + - 'px; width: ' + - eQ.lineNumInnerWidth + - 'px' - ) - ); - } - if (eS) { - for (var eO = 0; eO < eD.options.gutters.length; ++eO) { - var eI = eD.options.gutters[eO], - eH = eS.hasOwnProperty(eI) && eS[eI]; - if (eH) { - eN.appendChild( - ej( - 'div', - [eH], - 'CodeMirror-gutter-elt', - 'left: ' + eJ.gutterLeft[eI] + 'px; width: ' + eJ.gutterWidth[eI] + 'px' - ) - ); - } - } - } - } - if (bF) { - eE.style.zIndex = 2; - } - if (eF.widgets && eE != ey) { - for (var eR = 0, ew = eF.widgets; eR < ew.length; ++eR) { - var eA = ew[eR], - eM = ej('div', [eA.node], 'CodeMirror-linewidget'); - if (!eA.handleMouseEvents) { - eM.ignoreEvents = true; - } - a4(eA, eM, eE, eJ); - if (eA.above) { - eE.insertBefore(eM, eD.options.lineNumbers && eF.height != 0 ? eN : eP); - } else { - eE.appendChild(eM); - } - O(eA, 'redraw'); - } - } - return eE; - } - function a4(ez, ey, ex, eA) { - if (ez.noHScroll) { - (ex.alignable || (ex.alignable = [])).push(ey); - var ew = eA.wrapperWidth; - ey.style.left = eA.fixedPos + 'px'; - if (!ez.coverGutter) { - ew -= eA.gutterTotalWidth; - ey.style.paddingLeft = eA.gutterTotalWidth + 'px'; - } - ey.style.width = ew + 'px'; - } - if (ez.coverGutter) { - ey.style.zIndex = 5; - ey.style.position = 'relative'; - if (!ez.noHScroll) { - ey.style.marginLeft = -eA.gutterTotalWidth + 'px'; - } - } - } - function a2(ew) { - var ez = ew.display; - var eA = d8(ew.doc.sel.from, ew.doc.sel.to); - if (eA || ew.options.showCursorWhenSelecting) { - C(ew); - } else { - ez.cursor.style.display = ez.otherCursor.style.display = 'none'; - } - if (!eA) { - V(ew); - } else { - ez.selectionDiv.style.display = 'none'; - } - if (ew.options.moveInputWithCursor) { - var eB = cH(ew, ew.doc.sel.head, 'div'); - var ex = an(ez.wrapper), - ey = an(ez.lineDiv); - ez.inputDiv.style.top = - Math.max(0, Math.min(ez.wrapper.clientHeight - 10, eB.top + ey.top - ex.top)) + 'px'; - ez.inputDiv.style.left = - Math.max(0, Math.min(ez.wrapper.clientWidth - 10, eB.left + ey.left - ex.left)) + 'px'; - } - } - function C(ew) { - var ex = ew.display, - ey = cH(ew, ew.doc.sel.head, 'div'); - ex.cursor.style.left = ey.left + 'px'; - ex.cursor.style.top = ey.top + 'px'; - ex.cursor.style.height = Math.max(0, ey.bottom - ey.top) * ew.options.cursorHeight + 'px'; - ex.cursor.style.display = ''; - if (ey.other) { - ex.otherCursor.style.display = ''; - ex.otherCursor.style.left = ey.other.left + 'px'; - ex.otherCursor.style.top = ey.other.top + 'px'; - ex.otherCursor.style.height = (ey.other.bottom - ey.other.top) * 0.85 + 'px'; - } else { - ex.otherCursor.style.display = 'none'; - } - } - function V(eH) { - var eC = eH.display, - eG = eH.doc, - ew = eH.doc.sel; - var eA = document.createDocumentFragment(); - var eF = eC.lineSpace.offsetWidth, - ey = av(eH.display); - function eJ(eN, eM, eL, eK) { - if (eM < 0) { - eM = 0; - } - eA.appendChild( - ej( - 'div', - null, - 'CodeMirror-selected', - 'position: absolute; left: ' + - eN + - 'px; top: ' + - eM + - 'px; width: ' + - (eL == null ? eF - eN : eL) + - 'px; height: ' + - (eK - eM) + - 'px' - ) - ); - } - function eE(eL, eN, eQ) { - var eM = dJ(eG, eL); - var eO = eM.text.length; - var eR, eK; - function eP(eT, eS) { - return bZ(eH, K(eL, eT), 'div', eM, eS); - } - cL(a(eM), eN || 0, eQ == null ? eO : eQ, function (eZ, eY, eS) { - var eV = eP(eZ, 'left'), - eW, - eX, - eU; - if (eZ == eY) { - eW = eV; - eX = eU = eV.left; - } else { - eW = eP(eY - 1, 'right'); - if (eS == 'rtl') { - var eT = eV; - eV = eW; - eW = eT; - } - eX = eV.left; - eU = eW.right; - } - if (eN == null && eZ == 0) { - eX = ey; - } - if (eW.top - eV.top > 3) { - eJ(eX, eV.top, null, eV.bottom); - eX = ey; - if (eV.bottom < eW.top) { - eJ(eX, eV.bottom, null, eW.top); - } - } - if (eQ == null && eY == eO) { - eU = eF; - } - if (!eR || eV.top < eR.top || (eV.top == eR.top && eV.left < eR.left)) { - eR = eV; - } - if (!eK || eW.bottom > eK.bottom || (eW.bottom == eK.bottom && eW.right > eK.right)) { - eK = eW; - } - if (eX < ey + 1) { - eX = ey; - } - eJ(eX, eW.top, eU - eX, eW.bottom); - }); - return {start: eR, end: eK}; - } - if (ew.from.line == ew.to.line) { - eE(ew.from.line, ew.from.ch, ew.to.ch); - } else { - var ez = dJ(eG, ew.from.line), - ex = dJ(eG, ew.to.line); - var eB = u(eG, ez) == u(eG, ex); - var eI = eE(ew.from.line, ew.from.ch, eB ? ez.text.length : null).end; - var eD = eE(ew.to.line, eB ? 0 : null, ew.to.ch).start; - if (eB) { - if (eI.top < eD.top - 2) { - eJ(eI.right, eI.top, null, eI.bottom); - eJ(ey, eD.top, eD.left, eD.bottom); - } else { - eJ(eI.right, eI.top, eD.left - eI.right, eI.bottom); - } - } - if (eI.bottom < eD.top) { - eJ(ey, eI.bottom, null, eD.top); - } - } - bf(eC.selectionDiv, eA); - eC.selectionDiv.style.display = ''; - } - function k(ew) { - if (!ew.state.focused) { - return; - } - var ey = ew.display; - clearInterval(ey.blinker); - var ex = true; - ey.cursor.style.visibility = ey.otherCursor.style.visibility = ''; - if (ew.options.cursorBlinkRate > 0) { - ey.blinker = setInterval(function () { - ey.cursor.style.visibility = ey.otherCursor.style.visibility = (ex = !ex) ? '' : 'hidden'; - }, ew.options.cursorBlinkRate); - } - } - function cU(ew, ex) { - if (ew.doc.mode.startState && ew.doc.frontier < ew.display.showingTo) { - ew.state.highlight.set(ex, bO(b3, ew)); - } - } - function b3(ew) { - var ez = ew.doc; - if (ez.frontier < ez.first) { - ez.frontier = ez.first; - } - if (ez.frontier >= ew.display.showingTo) { - return; - } - var ex = +new Date() + ew.options.workTime; - var ey = bo(ez.mode, cw(ew, ez.frontier)); - var eB = [], - eA; - ez.iter(ez.frontier, Math.min(ez.first + ez.size, ew.display.showingTo + 500), function (eC) { - if (ez.frontier >= ew.display.showingFrom) { - var eE = eC.styles; - eC.styles = d4(ew, eC, ey, true); - var eF = !eE || eE.length != eC.styles.length; - for (var eD = 0; !eF && eD < eE.length; ++eD) { - eF = eE[eD] != eC.styles[eD]; - } - if (eF) { - if (eA && eA.end == ez.frontier) { - eA.end++; - } else { - eB.push((eA = {start: ez.frontier, end: ez.frontier + 1})); - } - } - eC.stateAfter = bo(ez.mode, ey); - } else { - cu(ew, eC.text, ey); - eC.stateAfter = ez.frontier % 5 == 0 ? bo(ez.mode, ey) : null; - } - ++ez.frontier; - if (+new Date() > ex) { - cU(ew, ew.options.workDelay); - return true; - } - }); - if (eB.length) { - b9(ew, function () { - for (var eC = 0; eC < eB.length; ++eC) { - Q(this, eB[eC].start, eB[eC].end); - } - })(); - } - } - function bQ(eC, ew, ez) { - var ex, - eA, - eB = eC.doc; - var ey = ez ? -1 : ew - (eC.doc.mode.innerMode ? 1000 : 100); - for (var eF = ew; eF > ey; --eF) { - if (eF <= eB.first) { - return eB.first; - } - var eE = dJ(eB, eF - 1); - if (eE.stateAfter && (!ez || eF <= eB.frontier)) { - return eF; - } - var eD = bg(eE.text, null, eC.options.tabSize); - if (eA == null || ex > eD) { - eA = eF - 1; - ex = eD; - } - } - return eA; - } - function cw(ew, eC, ex) { - var eA = ew.doc, - ez = ew.display; - if (!eA.mode.startState) { - return true; - } - var eB = bQ(ew, eC, ex), - ey = eB > eA.first && dJ(eA, eB - 1).stateAfter; - if (!ey) { - ey = bm(eA.mode); - } else { - ey = bo(eA.mode, ey); - } - eA.iter(eB, eC, function (eD) { - cu(ew, eD.text, ey); - var eE = eB == eC - 1 || eB % 5 == 0 || (eB >= ez.showingFrom && eB < ez.showingTo); - eD.stateAfter = eE ? bo(eA.mode, ey) : null; - ++eB; - }); - if (ex) { - eA.frontier = eB; - } - return ey; - } - function dD(ew) { - return ew.lineSpace.offsetTop; - } - function a7(ew) { - return ew.mover.offsetHeight - ew.lineSpace.offsetHeight; - } - function av(ex) { - var ew = bf(ex.measure, ej('pre', null, null, 'text-align: left')).appendChild(ej('span', 'x')); - return ew.offsetLeft; - } - function cW(eD, eE, ex, eA, eB) { - var ez = -1; - eA = eA || a8(eD, eE); - if (eA.crude) { - var ey = eA.left + ex * eA.width; - return {left: ey, right: ey + eA.width, top: eA.top, bottom: eA.bottom}; - } - for (var eC = ex; ; eC += ez) { - var ew = eA[eC]; - if (ew) { - break; - } - if (ez < 0 && eC == 0) { - ez = 1; - } - } - eB = eC > ex ? 'left' : eC < ex ? 'right' : eB; - if (eB == 'left' && ew.leftSide) { - ew = ew.leftSide; - } else { - if (eB == 'right' && ew.rightSide) { - ew = ew.rightSide; - } - } - return { - left: eC < ex ? ew.right : ew.left, - right: eC > ex ? ew.left : ew.right, - top: ew.top, - bottom: ew.bottom - }; - } - function dB(ew, ex) { - var ez = ew.display.measureLineCache; - for (var eA = 0; eA < ez.length; ++eA) { - var ey = ez[eA]; - if ( - ey.text == ex.text && - ey.markedSpans == ex.markedSpans && - ew.display.scroller.clientWidth == ey.width && - ey.classes == ex.textClass + '|' + ex.wrapClass - ) { - return ey; - } - } - } - function ec(ew, ex) { - var ey = dB(ew, ex); - if (ey) { - ey.text = ey.measure = ey.markedSpans = null; - } - } - function a8(ew, ex) { - var eB = dB(ew, ex); - if (eB) { - return eB.measure; - } - var eA = ci(ew, ex); - var ez = ew.display.measureLineCache; - var ey = { - text: ex.text, - width: ew.display.scroller.clientWidth, - markedSpans: ex.markedSpans, - measure: eA, - classes: ex.textClass + '|' + ex.wrapClass - }; - if (ez.length == 16) { - ez[++ew.display.measureLineCachePos % 16] = ey; - } else { - ez.push(ey); - } - return eA; - } - function ci(eD, eF) { - if (!eD.options.lineWrapping && eF.text.length >= eD.options.crudeMeasuringFrom) { - return ek(eD, eF); - } - var eL = eD.display, - eB = U(eF.text.length); - var eI = dq(eD, eF, eB, true).pre; - if (cf && !bF && !eD.options.lineWrapping && eI.childNodes.length > 100) { - var ey = document.createDocumentFragment(); - var eG = 10, - eJ = eI.childNodes.length; - for (var eN = 0, eH = Math.ceil(eJ / eG); eN < eH; ++eN) { - var eE = ej('div', null, null, 'display: inline-block'); - for (var eM = 0; eM < eG && eJ; ++eM) { - eE.appendChild(eI.firstChild); - --eJ; - } - ey.appendChild(eE); - } - eI.appendChild(ey); - } - bf(eL.measure, eI); - var ex = an(eL.lineDiv); - var ew = [], - eQ = U(eF.text.length), - eP = eI.offsetHeight; - if (bE && eL.measure.first != eI) { - bf(eL.measure, eI); - } - function eO(eT) { - var eV = eT.top - ex.top, - eX = eT.bottom - ex.top; - if (eX > eP) { - eX = eP; - } - if (eV < 0) { - eV = 0; - } - for (var eS = ew.length - 2; eS >= 0; eS -= 2) { - var eU = ew[eS], - eW = ew[eS + 1]; - if (eU > eX || eW < eV) { - continue; - } - if ( - (eU <= eV && eW >= eX) || - (eV <= eU && eX >= eW) || - Math.min(eX, eW) - Math.max(eV, eU) >= (eX - eV) >> 1 - ) { - ew[eS] = Math.min(eV, eU); - ew[eS + 1] = Math.max(eX, eW); - break; - } - } - if (eS < 0) { - eS = ew.length; - ew.push(eV, eX); - } - return {left: eT.left - ex.left, right: eT.right - ex.left, top: eS, bottom: null}; - } - function eR(eS) { - eS.bottom = ew[eS.top + 1]; - eS.top = ew[eS.top]; - } - for (var eN = 0, eA; eN < eB.length; ++eN) { - if ((eA = eB[eN])) { - var eK = eA, - ez = null; - if (/\bCodeMirror-widget\b/.test(eA.className) && eA.getClientRects) { - if (eA.firstChild.nodeType == 1) { - eK = eA.firstChild; - } - var eC = eK.getClientRects(); - if (eC.length > 1) { - ez = eQ[eN] = eO(eC[0]); - ez.rightSide = eO(eC[eC.length - 1]); - } - } - if (!ez) { - ez = eQ[eN] = eO(an(eK)); - } - if (eA.measureRight) { - ez.right = an(eA.measureRight).left - ex.left; - } - if (eA.leftSide) { - ez.leftSide = eO(an(eA.leftSide)); - } - } - } - cK(eD.display.measure); - for (var eN = 0, eA; eN < eQ.length; ++eN) { - if ((eA = eQ[eN])) { - eR(eA); - if (eA.leftSide) { - eR(eA.leftSide); - } - if (eA.rightSide) { - eR(eA.rightSide); - } - } - } - return eQ; - } - function ek(ew, ex) { - var eB = new en(ex.text.slice(0, 100), null); - if (ex.textClass) { - eB.textClass = ex.textClass; - } - var ez = ci(ew, eB); - var eA = cW(ew, eB, 0, ez, 'left'); - var ey = cW(ew, eB, 99, ez, 'right'); - return { - crude: true, - top: eA.top, - left: eA.left, - bottom: eA.bottom, - width: (ey.right - eA.left) / 100 - }; - } - function dg(ew, ey) { - var eD = false; - if (ey.markedSpans) { - for (var ez = 0; ez < ey.markedSpans; ++ez) { - var eB = ey.markedSpans[ez]; - if (eB.collapsed && (eB.to == null || eB.to == ey.text.length)) { - eD = true; - } - } - } - var eA = !eD && dB(ew, ey); - if (eA || ey.text.length >= ew.options.crudeMeasuringFrom) { - return cW(ew, ey, ey.text.length, eA && eA.measure, 'right').right; - } - var eC = dq(ew, ey, null, true).pre; - var ex = eC.appendChild(aS(ew.display.measure)); - bf(ew.display.measure, eC); - return an(ex).right - an(ew.display.lineDiv).left; - } - function T(ew) { - ew.display.measureLineCache.length = ew.display.measureLineCachePos = 0; - ew.display.cachedCharWidth = ew.display.cachedTextHeight = null; - if (!ew.options.lineWrapping) { - ew.display.maxLineChanged = true; - } - ew.display.lineNumChars = null; - } - function bN() { - return window.pageXOffset || (document.documentElement || document.body).scrollLeft; - } - function bM() { - return window.pageYOffset || (document.documentElement || document.body).scrollTop; - } - function dp(eC, ez, eB, ex) { - if (ez.widgets) { - for (var ey = 0; ey < ez.widgets.length; ++ey) { - if (ez.widgets[ey].above) { - var eE = b6(ez.widgets[ey]); - eB.top += eE; - eB.bottom += eE; - } - } - } - if (ex == 'line') { - return eB; - } - if (!ex) { - ex = 'local'; - } - var eA = bb(eC, ez); - if (ex == 'local') { - eA += dD(eC.display); - } else { - eA -= eC.display.viewOffset; - } - if (ex == 'page' || ex == 'window') { - var ew = an(eC.display.lineSpace); - eA += ew.top + (ex == 'window' ? 0 : bM()); - var eD = ew.left + (ex == 'window' ? 0 : bN()); - eB.left += eD; - eB.right += eD; - } - eB.top += eA; - eB.bottom += eA; - return eB; - } - function es(ex, eA, ey) { - if (ey == 'div') { - return eA; - } - var eC = eA.left, - eB = eA.top; - if (ey == 'page') { - eC -= bN(); - eB -= bM(); - } else { - if (ey == 'local' || !ey) { - var ez = an(ex.display.sizer); - eC += ez.left; - eB += ez.top; - } - } - var ew = an(ex.display.lineSpace); - return {left: eC - ew.left, top: eB - ew.top}; - } - function bZ(ew, eA, ez, ey, ex) { - if (!ey) { - ey = dJ(ew.doc, eA.line); - } - return dp(ew, ey, cW(ew, ey, eA.ch, null, ex), ez); - } - function cH(eF, eE, ey, eD, eB) { - eD = eD || dJ(eF.doc, eE.line); - if (!eB) { - eB = a8(eF, eD); - } - function eA(eJ, eI) { - var eH = cW(eF, eD, eJ, eB, eI ? 'right' : 'left'); - if (eI) { - eH.left = eH.right; - } else { - eH.right = eH.left; - } - return dp(eF, eD, eH, ey); - } - function eG(eK, eH) { - var eI = eC[eH], - eJ = eI.level % 2; - if (eK == cv(eI) && eH && eI.level < eC[eH - 1].level) { - eI = eC[--eH]; - eK = er(eI) - (eI.level % 2 ? 0 : 1); - eJ = true; - } else { - if (eK == er(eI) && eH < eC.length - 1 && eI.level < eC[eH + 1].level) { - eI = eC[++eH]; - eK = cv(eI) - (eI.level % 2); - eJ = false; - } - } - if (eJ && eK == eI.to && eK > eI.from) { - return eA(eK - 1); - } - return eA(eK, eJ); - } - var eC = a(eD), - ew = eE.ch; - if (!eC) { - return eA(ew); - } - var ex = aj(eC, ew); - var ez = eG(ew, ex); - if (dz != null) { - ez.other = eG(ew, dz); - } - return ez; - } - function ei(ew, ex, ey, eA) { - var ez = new K(ew, ex); - ez.xRel = eA; - if (ey) { - ez.outside = true; - } - return ez; - } - function ed(eD, eA, ez) { - var eC = eD.doc; - ez += eD.display.viewOffset; - if (ez < 0) { - return ei(eC.first, 0, true, -1); - } - var ex = a5(eC, ez), - eE = eC.first + eC.size - 1; - if (ex > eE) { - return ei(eC.first + eC.size - 1, dJ(eC, eE).text.length, true, 1); - } - if (eA < 0) { - eA = 0; - } - for (;;) { - var ey = dJ(eC, ex); - var eF = b7(eD, ey, ex, eA, ez); - var eB = c5(ey); - var ew = eB && eB.find(); - if (eB && (eF.ch > ew.from.ch || (eF.ch == ew.from.ch && eF.xRel > 0))) { - ex = ew.to.line; - } else { - return eF; - } - } - } - function b7(eG, ey, eJ, eI, eH) { - var eF = eH - bb(eG, ey); - var eC = false, - eP = 2 * eG.display.wrapper.clientWidth; - var eO = a8(eG, ey); - function eT(eV) { - var eW = cH(eG, K(eJ, eV), 'line', ey, eO); - eC = true; - if (eF > eW.bottom) { - return eW.left - eP; - } else { - if (eF < eW.top) { - return eW.left + eP; - } else { - eC = false; - } - } - return eW.left; - } - var eL = a(ey), - eN = ey.text.length; - var eQ = bU(ey), - ez = b4(ey); - var eM = eT(eQ), - ew = eC, - ex = eT(ez), - eB = eC; - if (eI > ex) { - return ei(eJ, ez, eB, 1); - } - for (;;) { - if (eL ? ez == eQ || ez == q(ey, eQ, 1) : ez - eQ <= 1) { - var eK = eI < eM || eI - eM <= ex - eI ? eQ : ez; - var eS = eI - (eK == eQ ? eM : ex); - while (dV(ey.text.charAt(eK))) { - ++eK; - } - var eE = ei(eJ, eK, eK == eQ ? ew : eB, eS < 0 ? -1 : eS ? 1 : 0); - return eE; - } - var eD = Math.ceil(eN / 2), - eU = eQ + eD; - if (eL) { - eU = eQ; - for (var eR = 0; eR < eD; ++eR) { - eU = q(ey, eU, 1); - } - } - var eA = eT(eU); - if (eA > eI) { - ez = eU; - ex = eA; - if ((eB = eC)) { - ex += 1000; - } - eN = eD; - } else { - eQ = eU; - eM = eA; - ew = eC; - eN -= eD; - } - } - } - var ak; - function aw(ey) { - if (ey.cachedTextHeight != null) { - return ey.cachedTextHeight; - } - if (ak == null) { - ak = ej('pre'); - for (var ex = 0; ex < 49; ++ex) { - ak.appendChild(document.createTextNode('x')); - ak.appendChild(ej('br')); - } - ak.appendChild(document.createTextNode('x')); - } - bf(ey.measure, ak); - var ew = ak.offsetHeight / 50; - if (ew > 3) { - ey.cachedTextHeight = ew; - } - cK(ey.measure); - return ew || 1; - } - function cy(ez) { - if (ez.cachedCharWidth != null) { - return ez.cachedCharWidth; - } - var ew = ej('span', 'x'); - var ey = ej('pre', [ew]); - bf(ez.measure, ey); - var ex = ew.offsetWidth; - if (ex > 2) { - ez.cachedCharWidth = ex; - } - return ex || 10; - } - var cO = 0; - function bY(ew) { - ew.curOp = { - changes: [], - forceUpdate: false, - updateInput: null, - userSelChange: null, - textChanged: null, - selectionChanged: false, - cursorActivity: false, - updateMaxLine: false, - updateScrollPos: false, - id: ++cO - }; - if (!bL++) { - aT = []; - } - } - function W(eK) { - var eE = eK.curOp, - eJ = eK.doc, - eF = eK.display; - eK.curOp = null; - if (eE.updateMaxLine) { - em(eK); - } - if (eF.maxLineChanged && !eK.options.lineWrapping && eF.maxLine) { - var ex = dg(eK, eF.maxLine); - eF.sizer.style.minWidth = Math.max(0, ex + 3 + aO) + 'px'; - eF.maxLineChanged = false; - var eH = Math.max(0, eF.sizer.offsetLeft + eF.sizer.offsetWidth - eF.scroller.clientWidth); - if (eH < eJ.scrollLeft && !eE.updateScrollPos) { - a3(eK, Math.min(eF.scroller.scrollLeft, eH), true); - } - } - var ey, eC; - if (eE.updateScrollPos) { - ey = eE.updateScrollPos; - } else { - if (eE.selectionChanged && eF.scroller.clientHeight) { - var eI = cH(eK, eJ.sel.head); - ey = A(eK, eI.left, eI.top, eI.left, eI.bottom); - } - } - if (eE.changes.length || eE.forceUpdate || (ey && ey.scrollTop != null)) { - eC = cB(eK, eE.changes, ey && ey.scrollTop, eE.forceUpdate); - if (eK.display.scroller.offsetHeight) { - eK.doc.scrollTop = eK.display.scroller.scrollTop; - } - } - if (!eC && eE.selectionChanged) { - a2(eK); - } - if (eE.updateScrollPos) { - var eG = Math.max( - 0, - Math.min(eF.scroller.scrollHeight - eF.scroller.clientHeight, ey.scrollTop) - ); - var ez = Math.max( - 0, - Math.min(eF.scroller.scrollWidth - eF.scroller.clientWidth, ey.scrollLeft) - ); - eF.scroller.scrollTop = eF.scrollbarV.scrollTop = eJ.scrollTop = eG; - eF.scroller.scrollLeft = eF.scrollbarH.scrollLeft = eJ.scrollLeft = ez; - df(eK); - if (eE.scrollToPos) { - x( - eK, - d9(eK.doc, eE.scrollToPos.from), - d9(eK.doc, eE.scrollToPos.to), - eE.scrollToPos.margin - ); - } - } else { - if (ey) { - ae(eK); - } - } - if (eE.selectionChanged) { - k(eK); - } - if (eK.state.focused && eE.updateInput) { - dU(eK, eE.userSelChange); - } - var eD = eE.maybeHiddenMarkers, - ew = eE.maybeUnhiddenMarkers; - if (eD) { - for (var eB = 0; eB < eD.length; ++eB) { - if (!eD[eB].lines.length) { - ah(eD[eB], 'hide'); - } - } - } - if (ew) { - for (var eB = 0; eB < ew.length; ++eB) { - if (ew[eB].lines.length) { - ah(ew[eB], 'unhide'); - } - } - } - var eA; - if (!--bL) { - eA = aT; - aT = null; - } - if (eE.textChanged) { - ah(eK, 'change', eK, eE.textChanged); - } - if (eE.cursorActivity) { - ah(eK, 'cursorActivity', eK); - } - if (eA) { - for (var eB = 0; eB < eA.length; ++eB) { - eA[eB](); - } - } - } - function b9(ew, ex) { - return function () { - var ez = ew || this, - eA = !ez.curOp; - if (eA) { - bY(ez); - } - try { - var ey = ex.apply(ez, arguments); - } finally { - if (eA) { - W(ez); - } - } - return ey; - }; - } - function d3(ew) { - return function () { - var ey = this.cm && !this.cm.curOp, - ex; - if (ey) { - bY(this.cm); - } - try { - ex = ew.apply(this, arguments); - } finally { - if (ey) { - W(this.cm); - } - } - return ex; - }; - } - function b1(ex, ez) { - var ey = !ex.curOp, - ew; - if (ey) { - bY(ex); - } - try { - ew = ez(); - } finally { - if (ey) { - W(ex); - } - } - return ew; - } - function Q(ew, ez, ey, ex) { - if (ez == null) { - ez = ew.doc.first; - } - if (ey == null) { - ey = ew.doc.first + ew.doc.size; - } - ew.curOp.changes.push({from: ez, to: ey, diff: ex}); - } - function aR(ew) { - if (ew.display.pollingFast) { - return; - } - ew.display.poll.set(ew.options.pollInterval, function () { - bB(ew); - if (ew.state.focused) { - aR(ew); - } - }); - } - function w(ew) { - var ex = false; - ew.display.pollingFast = true; - function ey() { - var ez = bB(ew); - if (!ez && !ex) { - ex = true; - ew.display.poll.set(60, ey); - } else { - ew.display.pollingFast = false; - aR(ew); - } - } - ew.display.poll.set(20, ey); - } - function bB(eK) { - var eF = eK.display.input, - eC = eK.display.prevInput, - eJ = eK.doc, - ew = eJ.sel; - if (!eK.state.focused || aX(eF) || S(eK) || eK.options.disableInput) { - return false; - } - if (eK.state.pasteIncoming && eK.state.fakedLastChar) { - eF.value = eF.value.substring(0, eF.value.length - 1); - eK.state.fakedLastChar = false; - } - var eL = eF.value; - if (eL == eC && d8(ew.from, ew.to)) { - return false; - } - if (cA && !bE && eK.display.inputHasSelection === eL) { - dU(eK, true); - return false; - } - var ey = !eK.curOp; - if (ey) { - bY(eK); - } - ew.shift = false; - var eE = 0, - ex = Math.min(eC.length, eL.length); - while (eE < ex && eC.charCodeAt(eE) == eL.charCodeAt(eE)) { - ++eE; - } - var eI = ew.from, - eH = ew.to; - var eA = eL.slice(eE); - if (eE < eC.length) { - eI = K(eI.line, eI.ch - (eC.length - eE)); - } else { - if (eK.state.overwrite && d8(eI, eH) && !eK.state.pasteIncoming) { - eH = K(eH.line, Math.min(dJ(eJ, eH.line).text.length, eH.ch + eA.length)); - } - } - var eD = eK.curOp.updateInput; - var eG = { - from: eI, - to: eH, - text: ay(eA), - origin: eK.state.pasteIncoming ? 'paste' : eK.state.cutIncoming ? 'cut' : '+input' - }; - aL(eK.doc, eG, 'end'); - eK.curOp.updateInput = eD; - O(eK, 'inputRead', eK, eG); - if ( - eA && - !eK.state.pasteIncoming && - eK.options.electricChars && - eK.options.smartIndent && - ew.head.ch < 100 - ) { - var ez = eK.getModeAt(ew.head).electricChars; - if (ez) { - for (var eB = 0; eB < ez.length; eB++) { - if (eA.indexOf(ez.charAt(eB)) > -1) { - N(eK, ew.head.line, 'smart'); - break; - } - } - } - } - if (eL.length > 1000 || eL.indexOf('\n') > -1) { - eF.value = eK.display.prevInput = ''; - } else { - eK.display.prevInput = eL; - } - if (ey) { - W(eK); - } - eK.state.pasteIncoming = eK.state.cutIncoming = false; - return true; - } - function dU(ew, ey) { - var ex, - ez, - eB = ew.doc; - if (!d8(eB.sel.from, eB.sel.to)) { - ew.display.prevInput = ''; - ex = - ce && (eB.sel.to.line - eB.sel.from.line > 100 || (ez = ew.getSelection()).length > 1000); - var eA = ex ? '-' : ez || ew.getSelection(); - ew.display.input.value = eA; - if (ew.state.focused) { - cC(ew.display.input); - } - if (cA && !bE) { - ew.display.inputHasSelection = eA; - } - } else { - if (ey) { - ew.display.prevInput = ew.display.input.value = ''; - if (cA && !bE) { - ew.display.inputHasSelection = null; - } - } - } - ew.display.inaccurateSelection = ex; - } - function db(ew) { - if (ew.options.readOnly != 'nocursor' && (!cV || document.activeElement != ew.display.input)) { - ew.display.input.focus(); - } - } - function S(ew) { - return ew.options.readOnly || ew.doc.cantEdit; - } - function ee(ex) { - var eC = ex.display; - bk(eC.scroller, 'mousedown', b9(ex, c4)); - if (cf) { - bk( - eC.scroller, - 'dblclick', - b9(ex, function (eF) { - if (ar(ex, eF)) { - return; - } - var eG = bH(ex, eF); - if (!eG || j(ex, eF) || aG(ex.display, eF)) { - return; - } - bV(eF); - var eE = ab(dJ(ex.doc, eG.line).text, eG); - eg(ex.doc, eE.from, eE.to); - }) - ); - } else { - bk(eC.scroller, 'dblclick', function (eE) { - ar(ex, eE) || bV(eE); - }); - } - bk(eC.lineSpace, 'selectstart', function (eE) { - if (!aG(eC, eE)) { - bV(eE); - } - }); - if (!bX) { - bk(eC.scroller, 'contextmenu', function (eE) { - ad(ex, eE); - }); - } - bk(eC.scroller, 'scroll', function () { - if (eC.scroller.clientHeight) { - F(ex, eC.scroller.scrollTop); - a3(ex, eC.scroller.scrollLeft, true); - ah(ex, 'scroll', ex); - } - }); - bk(eC.scrollbarV, 'scroll', function () { - if (eC.scroller.clientHeight) { - F(ex, eC.scrollbarV.scrollTop); - } - }); - bk(eC.scrollbarH, 'scroll', function () { - if (eC.scroller.clientHeight) { - a3(ex, eC.scrollbarH.scrollLeft); - } - }); - bk(eC.scroller, 'mousewheel', function (eE) { - b(ex, eE); - }); - bk(eC.scroller, 'DOMMouseScroll', function (eE) { - b(ex, eE); - }); - function eD() { - if (ex.state.focused) { - setTimeout(bO(db, ex), 0); - } - } - bk(eC.scrollbarH, 'mousedown', eD); - bk(eC.scrollbarV, 'mousedown', eD); - bk(eC.wrapper, 'scroll', function () { - eC.wrapper.scrollTop = eC.wrapper.scrollLeft = 0; - }); - var ew; - function eA() { - if (ew == null) { - ew = setTimeout(function () { - ew = null; - eC.cachedCharWidth = eC.cachedTextHeight = c6 = null; - T(ex); - b1(ex, bO(Q, ex)); - }, 100); - } - } - bk(window, 'resize', eA); - function ez() { - for (var eE = eC.wrapper.parentNode; eE && eE != document.body; eE = eE.parentNode) {} - if (eE) { - setTimeout(ez, 5000); - } else { - cT(window, 'resize', eA); - } - } - setTimeout(ez, 5000); - bk( - eC.input, - 'keyup', - b9(ex, function (eE) { - if (ar(ex, eE) || (ex.options.onKeyEvent && ex.options.onKeyEvent(ex, Y(eE)))) { - return; - } - if (eE.keyCode == 16) { - ex.doc.sel.shift = false; - } - }) - ); - bk(eC.input, 'input', function () { - if (cA && !bE && ex.display.inputHasSelection) { - ex.display.inputHasSelection = null; - } - w(ex); - }); - bk(eC.input, 'keydown', b9(ex, m)); - bk(eC.input, 'keypress', b9(ex, bP)); - bk(eC.input, 'focus', bO(bS, ex)); - bk(eC.input, 'blur', bO(au, ex)); - function ey(eE) { - if (ar(ex, eE) || (ex.options.onDragEvent && ex.options.onDragEvent(ex, Y(eE)))) { - return; - } - c2(eE); - } - if (ex.options.dragDrop) { - bk(eC.scroller, 'dragstart', function (eE) { - I(ex, eE); - }); - bk(eC.scroller, 'dragenter', ey); - bk(eC.scroller, 'dragover', ey); - bk(eC.scroller, 'drop', b9(ex, aN)); - } - bk(eC.scroller, 'paste', function (eE) { - if (aG(eC, eE)) { - return; - } - db(ex); - w(ex); - }); - bk(eC.input, 'paste', function () { - if (b8 && !ex.state.fakedLastChar && !(new Date() - ex.state.lastMiddleDown < 200)) { - var eF = eC.input.selectionStart, - eE = eC.input.selectionEnd; - eC.input.value += '$'; - eC.input.selectionStart = eF; - eC.input.selectionEnd = eE; - ex.state.fakedLastChar = true; - } - ex.state.pasteIncoming = true; - w(ex); - }); - function eB(eE) { - if (eC.inaccurateSelection) { - eC.prevInput = ''; - eC.inaccurateSelection = false; - eC.input.value = ex.getSelection(); - cC(eC.input); - } - if (eE.type == 'cut') { - ex.state.cutIncoming = true; - } - } - bk(eC.input, 'cut', eB); - bk(eC.input, 'copy', eB); - if (aH) { - bk(eC.sizer, 'mouseup', function () { - if (document.activeElement == eC.input) { - eC.input.blur(); - } - db(ex); - }); - } - } - function aG(ex, ew) { - for (var ey = D(ew); ey != ex.wrapper; ey = ey.parentNode) { - if (!ey || ey.ignoreEvents || (ey.parentNode == ex.sizer && ey != ex.mover)) { - return true; - } - } - } - function bH(ex, eC, ez) { - var eB = ex.display; - if (!ez) { - var eA = D(eC); - if ( - eA == eB.scrollbarH || - eA == eB.scrollbarH.firstChild || - eA == eB.scrollbarV || - eA == eB.scrollbarV.firstChild || - eA == eB.scrollbarFiller || - eA == eB.gutterFiller - ) { - return null; - } - } - var ew, - eD, - ey = an(eB.lineSpace); - try { - ew = eC.clientX; - eD = eC.clientY; - } catch (eC) { - return null; - } - return ed(ex, ew - ey.left, eD - ey.top); - } - var cn, ch; - function c4(eO) { - if (ar(this, eO)) { - return; - } - var ez = this, - eJ = ez.display, - eQ = ez.doc, - eH = eQ.sel; - eH.shift = eO.shiftKey; - if (aG(eJ, eO)) { - if (!b8) { - eJ.scroller.draggable = false; - setTimeout(function () { - eJ.scroller.draggable = true; - }, 100); - } - return; - } - if (j(ez, eO)) { - return; - } - var ey = bH(ez, eO); - switch (eb(eO)) { - case 3: - if (bX) { - ad.call(ez, ez, eO); - } - return; - case 2: - if (b8) { - ez.state.lastMiddleDown = +new Date(); - } - if (ey) { - eg(ez.doc, ey); - } - setTimeout(bO(db, ez), 20); - bV(eO); - return; - } - if (!ey) { - if (D(eO) == eJ.scroller) { - bV(eO); - } - return; - } - if (!ez.state.focused) { - bS(ez); - } - var ew = +new Date(), - ex = 'single'; - if (ch && ch.time > ew - 400 && d8(ch.pos, ey)) { - ex = 'triple'; - bV(eO); - setTimeout(bO(db, ez), 20); - aQ(ez, ey.line); - } else { - if (cn && cn.time > ew - 400 && d8(cn.pos, ey)) { - ex = 'double'; - ch = {time: ew, pos: ey}; - bV(eO); - var eL = ab(dJ(eQ, ey.line).text, ey); - eg(ez.doc, eL.from, eL.to); - } else { - cn = {time: ew, pos: ey}; - } - } - var eA = ey; - if ( - ez.options.dragDrop && - dm && - !S(ez) && - !d8(eH.from, eH.to) && - !dK(ey, eH.from) && - !dK(eH.to, ey) && - ex == 'single' - ) { - var eK = b9(ez, function (eR) { - if (b8) { - eJ.scroller.draggable = false; - } - ez.state.draggingText = false; - cT(document, 'mouseup', eK); - cT(eJ.scroller, 'drop', eK); - if (Math.abs(eO.clientX - eR.clientX) + Math.abs(eO.clientY - eR.clientY) < 10) { - bV(eR); - eg(ez.doc, ey); - db(ez); - if (cf && !bE) { - setTimeout(function () { - document.body.focus(); - db(ez); - }, 20); - } - } - }); - if (b8) { - eJ.scroller.draggable = true; - } - ez.state.draggingText = eK; - if (eJ.scroller.dragDrop) { - eJ.scroller.dragDrop(); - } - bk(document, 'mouseup', eK); - bk(eJ.scroller, 'drop', eK); - return; - } - bV(eO); - if (ex == 'single') { - eg(ez.doc, d9(eQ, ey)); - } - var eP = eH.from, - eE = eH.to, - eI = ey; - function eM(eS) { - if (d8(eI, eS)) { - return; - } - eI = eS; - if (ex == 'single') { - eg(ez.doc, d9(eQ, ey), eS); - return; - } - eP = d9(eQ, eP); - eE = d9(eQ, eE); - if (ex == 'double') { - var eR = ab(dJ(eQ, eS.line).text, eS); - if (dK(eS, eP)) { - eg(ez.doc, eR.from, eE); - } else { - eg(ez.doc, eP, eR.to); - } - } else { - if (ex == 'triple') { - if (dK(eS, eP)) { - eg(ez.doc, eE, d9(eQ, K(eS.line, 0))); - } else { - eg(ez.doc, eP, d9(eQ, K(eS.line + 1, 0))); - } - } - } - } - var eF = an(eJ.wrapper); - var eB = 0; - function eN(eT) { - var eR = ++eB; - var eV = bH(ez, eT, true); - if (!eV) { - return; - } - if (!d8(eV, eA)) { - if (!ez.state.focused) { - bS(ez); - } - eA = eV; - eM(eV); - var eU = bp(eJ, eQ); - if (eV.line >= eU.to || eV.line < eU.from) { - setTimeout( - b9(ez, function () { - if (eB == eR) { - eN(eT); - } - }), - 150 - ); - } - } else { - var eS = eT.clientY < eF.top ? -20 : eT.clientY > eF.bottom ? 20 : 0; - if (eS) { - setTimeout( - b9(ez, function () { - if (eB != eR) { - return; - } - eJ.scroller.scrollTop += eS; - eN(eT); - }), - 50 - ); - } - } - } - function eD(eR) { - eB = Infinity; - bV(eR); - db(ez); - cT(document, 'mousemove', eG); - cT(document, 'mouseup', eC); - } - var eG = b9(ez, function (eR) { - if (!cf && !eb(eR)) { - eD(eR); - } else { - eN(eR); - } - }); - var eC = b9(ez, eD); - bk(document, 'mousemove', eG); - bk(document, 'mouseup', eC); - } - function eu(eH, eD, eF, eG, ez) { - try { - var ex = eD.clientX, - ew = eD.clientY; - } catch (eD) { - return false; - } - if (ex >= Math.floor(an(eH.display.gutters).right)) { - return false; - } - if (eG) { - bV(eD); - } - var eE = eH.display; - var eC = an(eE.lineDiv); - if (ew > eC.bottom || !dP(eH, eF)) { - return ba(eD); - } - ew -= eC.top - eE.viewOffset; - for (var eA = 0; eA < eH.options.gutters.length; ++eA) { - var eB = eE.gutters.childNodes[eA]; - if (eB && an(eB).right >= ex) { - var eI = a5(eH.doc, ew); - var ey = eH.options.gutters[eA]; - ez(eH, eF, eH, eI, ey, eD); - return ba(eD); - } - } - } - function ck(ew, ex) { - if (!dP(ew, 'gutterContextMenu')) { - return false; - } - return eu(ew, ex, 'gutterContextMenu', false, ah); - } - function j(ew, ex) { - return eu(ew, ex, 'gutterClick', true, O); - } - var P = 0; - function aN(eC) { - var eE = this; - if ( - ar(eE, eC) || - aG(eE.display, eC) || - (eE.options.onDragEvent && eE.options.onDragEvent(eE, Y(eC))) - ) { - return; - } - bV(eC); - if (cA) { - P = +new Date(); - } - var eD = bH(eE, eC, true), - ew = eC.dataTransfer.files; - if (!eD || S(eE)) { - return; - } - if (ew && ew.length && window.FileReader && window.File) { - var ey = ew.length, - eG = Array(ey), - ex = 0; - var ez = function (eJ, eI) { - var eH = new FileReader(); - eH.onload = function () { - eG[eI] = eH.result; - if (++ex == ey) { - eD = d9(eE.doc, eD); - aL(eE.doc, {from: eD, to: eD, text: ay(eG.join('\n')), origin: 'paste'}, 'around'); - } - }; - eH.readAsText(eJ); - }; - for (var eA = 0; eA < ey; ++eA) { - ez(ew[eA], eA); - } - } else { - if (eE.state.draggingText && !(dK(eD, eE.doc.sel.from) || dK(eE.doc.sel.to, eD))) { - eE.state.draggingText(eC); - setTimeout(bO(db, eE), 20); - return; - } - try { - var eG = eC.dataTransfer.getData('Text'); - if (eG) { - var eF = eE.doc.sel.from, - eB = eE.doc.sel.to; - bh(eE.doc, eD, eD); - if (eE.state.draggingText) { - az(eE.doc, '', eF, eB, 'paste'); - } - eE.replaceSelection(eG, null, 'paste'); - db(eE); - } - } catch (eC) {} - } - } - function I(ex, ez) { - if (cA && (!ex.state.draggingText || +new Date() - P < 100)) { - c2(ez); - return; - } - if (ar(ex, ez) || aG(ex.display, ez)) { - return; - } - var ew = ex.getSelection(); - ez.dataTransfer.setData('Text', ew); - if (ez.dataTransfer.setDragImage && !ag) { - var ey = ej('img', null, null, 'position: fixed; left: 0; top: 0;'); - ey.src = 'data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=='; - if (d1) { - ey.width = ey.height = 1; - ex.display.wrapper.appendChild(ey); - ey._top = ey.offsetTop; - } - ez.dataTransfer.setDragImage(ey, 0, 0); - if (d1) { - ey.parentNode.removeChild(ey); - } - } - } - function F(ew, ex) { - if (Math.abs(ew.doc.scrollTop - ex) < 2) { - return; - } - ew.doc.scrollTop = ex; - if (!bI) { - cB(ew, [], ex); - } - if (ew.display.scroller.scrollTop != ex) { - ew.display.scroller.scrollTop = ex; - } - if (ew.display.scrollbarV.scrollTop != ex) { - ew.display.scrollbarV.scrollTop = ex; - } - if (bI) { - cB(ew, []); - } - cU(ew, 100); - } - function a3(ew, ey, ex) { - if (ex ? ey == ew.doc.scrollLeft : Math.abs(ew.doc.scrollLeft - ey) < 2) { - return; - } - ey = Math.min(ey, ew.display.scroller.scrollWidth - ew.display.scroller.clientWidth); - ew.doc.scrollLeft = ey; - df(ew); - if (ew.display.scroller.scrollLeft != ey) { - ew.display.scroller.scrollLeft = ey; - } - if (ew.display.scrollbarH.scrollLeft != ey) { - ew.display.scrollbarH.scrollLeft = ey; - } - } - var dQ = 0, - bA = null; - if (cf) { - bA = -0.53; - } else { - if (bI) { - bA = 15; - } else { - if (cg) { - bA = -0.7; - } else { - if (ag) { - bA = -1 / 3; - } - } - } - } - function b(eC, ex) { - var eF = ex.wheelDeltaX, - eE = ex.wheelDeltaY; - if (eF == null && ex.detail && ex.axis == ex.HORIZONTAL_AXIS) { - eF = ex.detail; - } - if (eE == null && ex.detail && ex.axis == ex.VERTICAL_AXIS) { - eE = ex.detail; - } else { - if (eE == null) { - eE = ex.wheelDelta; - } - } - var ez = eC.display, - eB = ez.scroller; - if (!((eF && eB.scrollWidth > eB.clientWidth) || (eE && eB.scrollHeight > eB.clientHeight))) { - return; - } - if (eE && bq && b8) { - for (var eD = ex.target; eD != eB; eD = eD.parentNode) { - if (eD.lineObj) { - eC.display.currentWheelTarget = eD; - break; - } - } - } - if (eF && !bI && !d1 && bA != null) { - if (eE) { - F(eC, Math.max(0, Math.min(eB.scrollTop + eE * bA, eB.scrollHeight - eB.clientHeight))); - } - a3(eC, Math.max(0, Math.min(eB.scrollLeft + eF * bA, eB.scrollWidth - eB.clientWidth))); - bV(ex); - ez.wheelStartX = null; - return; - } - if (eE && bA != null) { - var ew = eE * bA; - var eA = eC.doc.scrollTop, - ey = eA + ez.wrapper.clientHeight; - if (ew < 0) { - eA = Math.max(0, eA + ew - 50); - } else { - ey = Math.min(eC.doc.height, ey + ew + 50); - } - cB(eC, [], {top: eA, bottom: ey}); - } - if (dQ < 20) { - if (ez.wheelStartX == null) { - ez.wheelStartX = eB.scrollLeft; - ez.wheelStartY = eB.scrollTop; - ez.wheelDX = eF; - ez.wheelDY = eE; - setTimeout(function () { - if (ez.wheelStartX == null) { - return; - } - var eG = eB.scrollLeft - ez.wheelStartX; - var eI = eB.scrollTop - ez.wheelStartY; - var eH = (eI && ez.wheelDY && eI / ez.wheelDY) || (eG && ez.wheelDX && eG / ez.wheelDX); - ez.wheelStartX = ez.wheelStartY = null; - if (!eH) { - return; - } - bA = (bA * dQ + eH) / (dQ + 1); - ++dQ; - }, 200); - } else { - ez.wheelDX += eF; - ez.wheelDY += eE; - } - } - } - function ef(ex, eA, ew) { - if (typeof eA == 'string') { - eA = dd[eA]; - if (!eA) { - return false; - } - } - if (ex.display.pollingFast && bB(ex)) { - ex.display.pollingFast = false; - } - var eB = ex.doc, - ez = eB.sel.shift, - ey = false; - try { - if (S(ex)) { - ex.state.suppressEdits = true; - } - if (ew) { - eB.sel.shift = false; - } - ey = eA(ex) != bv; - } finally { - eB.sel.shift = ez; - ex.state.suppressEdits = false; - } - return ey; - } - function cr(ew) { - var ex = ew.state.keyMaps.slice(0); - if (ew.options.extraKeys) { - ex.push(ew.options.extraKeys); - } - ex.push(ew.options.keyMap); - return ex; - } - var Z; - function dN(ew, eC) { - var ex = eh(ew.options.keyMap), - eA = ex.auto; - clearTimeout(Z); - if (eA && !dc(eC)) { - Z = setTimeout(function () { - if (eh(ew.options.keyMap) == ex) { - ew.options.keyMap = eA.call ? eA.call(null, ew) : eA; - et(ew); - } - }, 50); - } - var ez = dW(eC, true), - eB = false; - if (!ez) { - return false; - } - var ey = cr(ew); - if (eC.shiftKey) { - eB = - g('Shift-' + ez, ey, function (eD) { - return ef(ew, eD, true); - }) || - g(ez, ey, function (eD) { - if (typeof eD == 'string' ? /^go[A-Z]/.test(eD) : eD.motion) { - return ef(ew, eD); - } - }); - } else { - eB = g(ez, ey, function (eD) { - return ef(ew, eD); - }); - } - if (eB) { - bV(eC); - k(ew); - if (bE) { - eC.oldKeyCode = eC.keyCode; - eC.keyCode = 0; - } - O(ew, 'keyHandled', ew, ez, eC); - } - return eB; - } - function cX(ew, ez, ex) { - var ey = g("'" + ex + "'", cr(ew), function (eA) { - return ef(ew, eA, true); - }); - if (ey) { - bV(ez); - k(ew); - O(ew, 'keyHandled', ew, "'" + ex + "'", ez); - } - return ey; - } - var cm = null; - function m(ez) { - var ew = this; - if (!ew.state.focused) { - bS(ew); - } - if (ar(ew, ez) || (ew.options.onKeyEvent && ew.options.onKeyEvent(ew, Y(ez)))) { - return; - } - if (cf && ez.keyCode == 27) { - ez.returnValue = false; - } - var ex = ez.keyCode; - ew.doc.sel.shift = ex == 16 || ez.shiftKey; - var ey = dN(ew, ez); - if (d1) { - cm = ey ? ex : null; - if (!ey && ex == 88 && !ce && (bq ? ez.metaKey : ez.ctrlKey)) { - ew.replaceSelection(''); - } - } - } - function bP(eA) { - var ew = this; - if (ar(ew, eA) || (ew.options.onKeyEvent && ew.options.onKeyEvent(ew, Y(eA)))) { - return; - } - var ez = eA.keyCode, - ex = eA.charCode; - if (d1 && ez == cm) { - cm = null; - bV(eA); - return; - } - if (((d1 && (!eA.which || eA.which < 10)) || aH) && dN(ew, eA)) { - return; - } - var ey = String.fromCharCode(ex == null ? ez : ex); - if (cX(ew, eA, ey)) { - return; - } - if (cA && !bE) { - ew.display.inputHasSelection = null; - } - w(ew); - } - function bS(ew) { - if (ew.options.readOnly == 'nocursor') { - return; - } - if (!ew.state.focused) { - ah(ew, 'focus', ew); - ew.state.focused = true; - if (ew.display.wrapper.className.search(/\bCodeMirror-focused\b/) == -1) { - ew.display.wrapper.className += ' CodeMirror-focused'; - } - if (!ew.curOp) { - dU(ew, true); - if (b8) { - setTimeout(bO(dU, ew, true), 0); - } - } - } - aR(ew); - k(ew); - } - function au(ew) { - if (ew.state.focused) { - ah(ew, 'blur', ew); - ew.state.focused = false; - ew.display.wrapper.className = ew.display.wrapper.className.replace( - ' CodeMirror-focused', - '' - ); - } - clearInterval(ew.display.blinker); - setTimeout(function () { - if (!ew.state.focused) { - ew.doc.sel.shift = false; - } - }, 150); - } - var d5; - function ad(eG, eB) { - if (ar(eG, eB, 'contextmenu')) { - return; - } - var eD = eG.display, - ex = eG.doc.sel; - if (aG(eD, eB) || ck(eG, eB)) { - return; - } - var eF = bH(eG, eB), - ew = eD.scroller.scrollTop; - if (!eF || d1) { - return; - } - var eA = eG.options.resetSelectionOnContextMenu; - if (eA && (d8(ex.from, ex.to) || dK(eF, ex.from) || !dK(eF, ex.to))) { - b9(eG, bh)(eG.doc, eF, eF); - } - var eC = eD.input.style.cssText; - eD.inputDiv.style.position = 'absolute'; - eD.input.style.cssText = - 'position: fixed; width: 30px; height: 30px; top: ' + - (eB.clientY - 5) + - 'px; left: ' + - (eB.clientX - 5) + - 'px; z-index: 1000; background: transparent; outline: none;border-width: 0; outline: none; overflow: hidden; opacity: .05; -ms-opacity: .05; filter: alpha(opacity=5);'; - db(eG); - dU(eG, true); - if (d8(ex.from, ex.to)) { - eD.input.value = eD.prevInput = ' '; - } - function ez() { - if (eD.input.selectionStart != null) { - var eH = (eD.input.value = '\u200b' + (d8(ex.from, ex.to) ? '' : eD.input.value)); - eD.prevInput = '\u200b'; - eD.input.selectionStart = 1; - eD.input.selectionEnd = eH.length; - } - } - function eE() { - eD.inputDiv.style.position = 'relative'; - eD.input.style.cssText = eC; - if (bE) { - eD.scrollbarV.scrollTop = eD.scroller.scrollTop = ew; - } - aR(eG); - if (eD.input.selectionStart != null) { - if (!cf || bE) { - ez(); - } - clearTimeout(d5); - var eH = 0, - eI = function () { - if (eD.prevInput == '\u200b' && eD.input.selectionStart == 0) { - b9(eG, dd.selectAll)(eG); - } else { - if (eH++ < 10) { - d5 = setTimeout(eI, 500); - } else { - dU(eG); - } - } - }; - d5 = setTimeout(eI, 200); - } - } - if (cf && !bE) { - ez(); - } - if (bX) { - c2(eB); - var ey = function () { - cT(window, 'mouseup', ey); - setTimeout(eE, 20); - }; - bk(window, 'mouseup', ey); - } else { - setTimeout(eE, 50); - } - } - var b5 = (B.changeEnd = function (ew) { - if (!ew.text) { - return ew.to; - } - return K( - ew.from.line + ew.text.length - 1, - d7(ew.text).length + (ew.text.length == 1 ? ew.from.ch : 0) - ); - }); - function de(eA, eC, eB) { - if (!dK(eC.from, eB)) { - return d9(eA, eB); - } - var ez = eC.text.length - 1 - (eC.to.line - eC.from.line); - if (eB.line > eC.to.line + ez) { - var ey = eB.line - ez, - ex = eA.first + eA.size - 1; - if (ey > ex) { - return K(ex, dJ(eA, ex).text.length); - } - return dX(eB, dJ(eA, ey).text.length); - } - if (eB.line == eC.to.line + ez) { - return dX( - eB, - d7(eC.text).length + - (eC.text.length == 1 ? eC.from.ch : 0) + - dJ(eA, eC.to.line).text.length - - eC.to.ch - ); - } - var ew = eB.line - eC.from.line; - return dX(eB, eC.text[ew].length + (ew ? 0 : eC.from.ch)); - } - function dO(ex, eA, ey) { - if (ey && typeof ey == 'object') { - return {anchor: de(ex, eA, ey.anchor), head: de(ex, eA, ey.head)}; - } - if (ey == 'start') { - return {anchor: eA.from, head: eA.from}; - } - var ew = b5(eA); - if (ey == 'around') { - return {anchor: eA.from, head: ew}; - } - if (ey == 'end') { - return {anchor: ew, head: ew}; - } - var ez = function (eD) { - if (dK(eD, eA.from)) { - return eD; - } - if (!dK(eA.to, eD)) { - return ew; - } - var eB = eD.line + eA.text.length - (eA.to.line - eA.from.line) - 1, - eC = eD.ch; - if (eD.line == eA.to.line) { - eC += ew.ch - eA.to.ch; - } - return K(eB, eC); - }; - return {anchor: ez(ex.sel.anchor), head: ez(ex.sel.head)}; - } - function cG(ex, ez, ey) { - var ew = { - canceled: false, - from: ez.from, - to: ez.to, - text: ez.text, - origin: ez.origin, - cancel: function () { - this.canceled = true; - } - }; - if (ey) { - ew.update = function (eD, eC, eB, eA) { - if (eD) { - this.from = d9(ex, eD); - } - if (eC) { - this.to = d9(ex, eC); - } - if (eB) { - this.text = eB; - } - if (eA !== undefined) { - this.origin = eA; - } - }; - } - ah(ex, 'beforeChange', ex, ew); - if (ex.cm) { - ah(ex.cm, 'beforeChange', ex.cm, ew); - } - if (ew.canceled) { - return null; - } - return {from: ew.from, to: ew.to, text: ew.text, origin: ew.origin}; - } - function aL(ez, eB, eA, ey) { - if (ez.cm) { - if (!ez.cm.curOp) { - return b9(ez.cm, aL)(ez, eB, eA, ey); - } - if (ez.cm.state.suppressEdits) { - return; - } - } - if (dP(ez, 'beforeChange') || (ez.cm && dP(ez.cm, 'beforeChange'))) { - eB = cG(ez, eB, true); - if (!eB) { - return; - } - } - var ex = eq && !ey && bW(ez, eB.from, eB.to); - if (ex) { - for (var ew = ex.length - 1; ew >= 1; --ew) { - ap(ez, {from: ex[ew].from, to: ex[ew].to, text: ['']}); - } - if (ex.length) { - ap(ez, {from: ex[0].from, to: ex[0].to, text: eB.text}, eA); - } - } else { - ap(ez, eB, eA); - } - } - function ap(ey, eA, ez) { - if (eA.text.length == 1 && eA.text[0] == '' && d8(eA.from, eA.to)) { - return; - } - var ex = dO(ey, eA, ez); - di(ey, eA, ex, ey.cm ? ey.cm.curOp.id : NaN); - cS(ey, eA, ex, cY(ey, eA)); - var ew = []; - cN(ey, function (eC, eB) { - if (!eB && cl(ew, eC.history) == -1) { - cz(eC.history, eA); - ew.push(eC.history); - } - cS(eC, eA, null, cY(eC, eA)); - }); - } - function bs(eF, eC) { - if (eF.cm && eF.cm.state.suppressEdits) { - return; - } - var eB = eF.history; - var ex = (eC == 'undo' ? eB.done : eB.undone).pop(); - if (!ex) { - return; - } - var eD = { - changes: [], - anchorBefore: ex.anchorAfter, - headBefore: ex.headAfter, - anchorAfter: ex.anchorBefore, - headAfter: ex.headBefore, - generation: eB.generation - }; - (eC == 'undo' ? eB.undone : eB.done).push(eD); - eB.generation = ex.generation || ++eB.maxGeneration; - var ey = dP(eF, 'beforeChange') || (eF.cm && dP(eF.cm, 'beforeChange')); - for (var ez = ex.changes.length - 1; ez >= 0; --ez) { - var eE = ex.changes[ez]; - eE.origin = eC; - if (ey && !cG(eF, eE, false)) { - (eC == 'undo' ? eB.done : eB.undone).length = 0; - return; - } - eD.changes.push(cs(eF, eE)); - var ew = ez ? dO(eF, eE, null) : {anchor: ex.anchorBefore, head: ex.headBefore}; - cS(eF, eE, ew, cP(eF, eE)); - var eA = []; - cN(eF, function (eH, eG) { - if (!eG && cl(eA, eH.history) == -1) { - cz(eH.history, eE); - eA.push(eH.history); - } - cS(eH, eE, null, cP(eH, eE)); - }); - } - } - function dR(ew, ey) { - function ex(ez) { - return K(ez.line + ey, ez.ch); - } - ew.first += ey; - if (ew.cm) { - Q(ew.cm, ew.first, ew.first, ey); - } - ew.sel.head = ex(ew.sel.head); - ew.sel.anchor = ex(ew.sel.anchor); - ew.sel.from = ex(ew.sel.from); - ew.sel.to = ex(ew.sel.to); - } - function cS(eA, eB, ez, ex) { - if (eA.cm && !eA.cm.curOp) { - return b9(eA.cm, cS)(eA, eB, ez, ex); - } - if (eB.to.line < eA.first) { - dR(eA, eB.text.length - 1 - (eB.to.line - eB.from.line)); - return; - } - if (eB.from.line > eA.lastLine()) { - return; - } - if (eB.from.line < eA.first) { - var ew = eB.text.length - 1 - (eA.first - eB.from.line); - dR(eA, ew); - eB = { - from: K(eA.first, 0), - to: K(eB.to.line + ew, eB.to.ch), - text: [d7(eB.text)], - origin: eB.origin - }; - } - var ey = eA.lastLine(); - if (eB.to.line > ey) { - eB = { - from: eB.from, - to: K(ey, dJ(eA, ey).text.length), - text: [eB.text[0]], - origin: eB.origin - }; - } - eB.removed = el(eA, eB.from, eB.to); - if (!ez) { - ez = dO(eA, eB, null); - } - if (eA.cm) { - al(eA.cm, eB, ex, ez); - } else { - d2(eA, eB, ex, ez); - } - } - function al(eG, eC, ez, ew) { - var eF = eG.doc, - eB = eG.display, - eD = eC.from, - eE = eC.to; - var ex = false, - ey = eD.line; - if (!eG.options.lineWrapping) { - ey = bc(u(eF, dJ(eF, eD.line))); - eF.iter(ey, eE.line + 1, function (eJ) { - if (eJ == eB.maxLine) { - ex = true; - return true; - } - }); - } - if (!dK(eF.sel.head, eC.from) && !dK(eC.to, eF.sel.head)) { - eG.curOp.cursorActivity = true; - } - d2(eF, eC, ez, ew, aJ(eG)); - if (!eG.options.lineWrapping) { - eF.iter(ey, eD.line + eC.text.length, function (eK) { - var eJ = c0(eF, eK); - if (eJ > eB.maxLineLength) { - eB.maxLine = eK; - eB.maxLineLength = eJ; - eB.maxLineChanged = true; - ex = false; - } - }); - if (ex) { - eG.curOp.updateMaxLine = true; - } - } - eF.frontier = Math.min(eF.frontier, eD.line); - cU(eG, 400); - var eI = eC.text.length - (eE.line - eD.line) - 1; - Q(eG, eD.line, eE.line + 1, eI); - if (dP(eG, 'change')) { - var eA = {from: eD, to: eE, text: eC.text, removed: eC.removed, origin: eC.origin}; - if (eG.curOp.textChanged) { - for (var eH = eG.curOp.textChanged; eH.next; eH = eH.next) {} - eH.next = eA; - } else { - eG.curOp.textChanged = eA; - } - } - } - function az(ez, ey, eB, eA, ew) { - if (!eA) { - eA = eB; - } - if (dK(eA, eB)) { - var ex = eA; - eA = eB; - eB = ex; - } - if (typeof ey == 'string') { - ey = ay(ey); - } - aL(ez, {from: eB, to: eA, text: ey, origin: ew}, null); - } - function K(ew, ex) { - if (!(this instanceof K)) { - return new K(ew, ex); - } - this.line = ew; - this.ch = ex; - } - B.Pos = K; - function d8(ex, ew) { - return ex.line == ew.line && ex.ch == ew.ch; - } - function dK(ex, ew) { - return ex.line < ew.line || (ex.line == ew.line && ex.ch < ew.ch); - } - function bz(ex, ew) { - return ex.line - ew.line || ex.ch - ew.ch; - } - function bC(ew) { - return K(ew.line, ew.ch); - } - function cb(ew, ex) { - return Math.max(ew.first, Math.min(ex, ew.first + ew.size - 1)); - } - function d9(ex, ey) { - if (ey.line < ex.first) { - return K(ex.first, 0); - } - var ew = ex.first + ex.size - 1; - if (ey.line > ew) { - return K(ew, dJ(ex, ew).text.length); - } - return dX(ey, dJ(ex, ey.line).text.length); - } - function dX(ey, ex) { - var ew = ey.ch; - if (ew == null || ew > ex) { - return K(ey.line, ex); - } else { - if (ew < 0) { - return K(ey.line, 0); - } else { - return ey; - } - } - } - function bt(ex, ew) { - return ew >= ex.first && ew < ex.first + ex.size; - } - function eg(eA, eB, ew, ex) { - if (eA.sel.shift || eA.sel.extend) { - var ez = eA.sel.anchor; - if (ew) { - var ey = dK(eB, ez); - if (ey != dK(ew, ez)) { - ez = eB; - eB = ew; - } else { - if (ey != dK(eB, ew)) { - eB = ew; - } - } - } - bh(eA, ez, eB, ex); - } else { - bh(eA, eB, ew || eB, ex); - } - if (eA.cm) { - eA.cm.curOp.userSelChange = true; - } - } - function c(ez, ew, ex) { - var ey = {anchor: ew, head: ex}; - ah(ez, 'beforeSelectionChange', ez, ey); - if (ez.cm) { - ah(ez.cm, 'beforeSelectionChange', ez.cm, ey); - } - ey.anchor = d9(ez, ey.anchor); - ey.head = d9(ez, ey.head); - return ey; - } - function bh(eD, eA, eB, ey, ex) { - if ((!ex && dP(eD, 'beforeSelectionChange')) || (eD.cm && dP(eD.cm, 'beforeSelectionChange'))) { - var ez = c(eD, eA, eB); - eB = ez.head; - eA = ez.anchor; - } - var eC = eD.sel; - eC.goalColumn = null; - if (ey == null) { - ey = dK(eB, eC.head) ? -1 : 1; - } - if (ex || !d8(eA, eC.anchor)) { - eA = bi(eD, eA, ey, ex != 'push'); - } - if (ex || !d8(eB, eC.head)) { - eB = bi(eD, eB, ey, ex != 'push'); - } - if (d8(eC.anchor, eA) && d8(eC.head, eB)) { - return; - } - eC.anchor = eA; - eC.head = eB; - var ew = dK(eB, eA); - eC.from = ew ? eB : eA; - eC.to = ew ? eA : eB; - if (eD.cm) { - eD.cm.curOp.updateInput = eD.cm.curOp.selectionChanged = eD.cm.curOp.cursorActivity = true; - } - O(eD, 'cursorActivity', eD); - } - function c7(ew) { - bh(ew.doc, ew.doc.sel.from, ew.doc.sel.to, null, 'push'); - } - function bi(eF, eE, eB, eC) { - var eG = false, - ey = eE; - var ez = eB || 1; - eF.cantEdit = false; - search: for (;;) { - var eH = dJ(eF, ey.line); - if (eH.markedSpans) { - for (var eA = 0; eA < eH.markedSpans.length; ++eA) { - var ew = eH.markedSpans[eA], - ex = ew.marker; - if ( - (ew.from == null || (ex.inclusiveLeft ? ew.from <= ey.ch : ew.from < ey.ch)) && - (ew.to == null || (ex.inclusiveRight ? ew.to >= ey.ch : ew.to > ey.ch)) - ) { - if (eC) { - ah(ex, 'beforeCursorEnter'); - if (ex.explicitlyCleared) { - if (!eH.markedSpans) { - break; - } else { - --eA; - continue; - } - } - } - if (!ex.atomic) { - continue; - } - var eD = ex.find()[ez < 0 ? 'from' : 'to']; - if (d8(eD, ey)) { - eD.ch += ez; - if (eD.ch < 0) { - if (eD.line > eF.first) { - eD = d9(eF, K(eD.line - 1)); - } else { - eD = null; - } - } else { - if (eD.ch > eH.text.length) { - if (eD.line < eF.first + eF.size - 1) { - eD = K(eD.line + 1, 0); - } else { - eD = null; - } - } - } - if (!eD) { - if (eG) { - if (!eC) { - return bi(eF, eE, eB, true); - } - eF.cantEdit = true; - return K(eF.first, 0); - } - eG = true; - eD = eE; - ez = -ez; - } - } - ey = eD; - continue search; - } - } - } - return ey; - } - } - function ae(ex) { - var eA = x(ex, ex.doc.sel.head, null, ex.options.cursorScrollMargin); - if (!ex.state.focused) { - return; - } - var eB = ex.display, - ey = an(eB.sizer), - ew = null; - if (eA.top + ey.top < 0) { - ew = true; - } else { - if (eA.bottom + ey.top > (window.innerHeight || document.documentElement.clientHeight)) { - ew = false; - } - } - if (ew != null && !dY) { - var ez = ej( - 'div', - '\u200b', - null, - 'position: absolute; top: ' + - (eA.top - eB.viewOffset) + - 'px; height: ' + - (eA.bottom - eA.top + aO) + - 'px; left: ' + - eA.left + - 'px; width: 2px;' - ); - ex.display.lineSpace.appendChild(ez); - ez.scrollIntoView(ew); - ex.display.lineSpace.removeChild(ez); - } - } - function x(eF, eD, eA, ez) { - if (ez == null) { - ez = 0; - } - for (;;) { - var eB = false, - eE = cH(eF, eD); - var ew = !eA || eA == eD ? eE : cH(eF, eA); - var ey = A( - eF, - Math.min(eE.left, ew.left), - Math.min(eE.top, ew.top) - ez, - Math.max(eE.left, ew.left), - Math.max(eE.bottom, ew.bottom) + ez - ); - var eC = eF.doc.scrollTop, - ex = eF.doc.scrollLeft; - if (ey.scrollTop != null) { - F(eF, ey.scrollTop); - if (Math.abs(eF.doc.scrollTop - eC) > 1) { - eB = true; - } - } - if (ey.scrollLeft != null) { - a3(eF, ey.scrollLeft); - if (Math.abs(eF.doc.scrollLeft - ex) > 1) { - eB = true; - } - } - if (!eB) { - return eE; - } - } - } - function z(ew, ey, eA, ex, ez) { - var eB = A(ew, ey, eA, ex, ez); - if (eB.scrollTop != null) { - F(ew, eB.scrollTop); - } - if (eB.scrollLeft != null) { - a3(ew, eB.scrollLeft); - } - } - function A(eC, eK, ez, eJ, ey) { - var eH = eC.display, - eG = aw(eC.display); - if (ez < 0) { - ez = 0; - } - var ex = eH.scroller.clientHeight - aO, - eF = eH.scroller.scrollTop, - eE = {}; - var eM = eC.doc.height + a7(eH); - var eN = ez < eG, - eI = ey > eM - eG; - if (ez < eF) { - eE.scrollTop = eN ? 0 : ez; - } else { - if (ey > eF + ex) { - var eD = Math.min(ez, (eI ? eM : ey) - ex); - if (eD != eF) { - eE.scrollTop = eD; - } - } - } - var eB = eH.scroller.clientWidth - aO, - ew = eH.scroller.scrollLeft; - eK += eH.gutters.offsetWidth; - eJ += eH.gutters.offsetWidth; - var eA = eH.gutters.offsetWidth; - var eL = eK < eA + 10; - if (eK < ew + eA || eL) { - if (eL) { - eK = 0; - } - eE.scrollLeft = Math.max(0, eK - 10 - eA); - } else { - if (eJ > eB + ew - 3) { - eE.scrollLeft = eJ + 10 - eB; - } - } - return eE; - } - function y(ew, ey, ex) { - ew.curOp.updateScrollPos = { - scrollLeft: ey == null ? ew.doc.scrollLeft : ey, - scrollTop: ex == null ? ew.doc.scrollTop : ex - }; - } - function b0(ex, ez, ey) { - var eA = - ex.curOp.updateScrollPos || - (ex.curOp.updateScrollPos = {scrollLeft: ex.doc.scrollLeft, scrollTop: ex.doc.scrollTop}); - var ew = ex.display.scroller; - eA.scrollTop = Math.max(0, Math.min(ew.scrollHeight - ew.clientHeight, eA.scrollTop + ey)); - eA.scrollLeft = Math.max(0, Math.min(ew.scrollWidth - ew.clientWidth, eA.scrollLeft + ez)); - } - function N(eI, ez, eH, ey) { - var eG = eI.doc; - if (eH == null) { - eH = 'add'; - } - if (eH == 'smart') { - if (!eI.doc.mode.indent) { - eH = 'prev'; - } else { - var ex = cw(eI, ez); - } - } - var eC = eI.options.tabSize; - var eJ = dJ(eG, ez), - eB = bg(eJ.text, null, eC); - var ew = eJ.text.match(/^\s*/)[0], - eE; - if (!ey && !/\S/.test(eJ.text)) { - eE = 0; - eH = 'not'; - } else { - if (eH == 'smart') { - eE = eI.doc.mode.indent(ex, eJ.text.slice(ew.length), eJ.text); - if (eE == bv) { - if (!ey) { - return; - } - eH = 'prev'; - } - } - } - if (eH == 'prev') { - if (ez > eG.first) { - eE = bg(dJ(eG, ez - 1).text, null, eC); - } else { - eE = 0; - } - } else { - if (eH == 'add') { - eE = eB + eI.options.indentUnit; - } else { - if (eH == 'subtract') { - eE = eB - eI.options.indentUnit; - } else { - if (typeof eH == 'number') { - eE = eB + eH; - } - } - } - } - eE = Math.max(0, eE); - var eF = '', - eD = 0; - if (eI.options.indentWithTabs) { - for (var eA = Math.floor(eE / eC); eA; --eA) { - eD += eC; - eF += '\t'; - } - } - if (eD < eE) { - eF += bJ(eE - eD); - } - if (eF != ew) { - az(eI.doc, eF, K(ez, 0), K(ez, ew.length), '+input'); - } else { - if (eG.sel.head.line == ez && eG.sel.head.ch < ew.length) { - bh(eG, K(ez, ew.length), K(ez, ew.length), 1); - } - } - eJ.stateAfter = null; - } - function c9(ew, ey, eB) { - var eA = ey, - ex = ey, - ez = ew.doc; - if (typeof ey == 'number') { - ex = dJ(ez, cb(ez, ey)); - } else { - eA = bc(ey); - } - if (eA == null) { - return null; - } - if (eB(ex, eA)) { - Q(ew, eA, eA + 1); - } else { - return null; - } - return ex; - } - function aZ(eN, ez, eH, eG, eB) { - var eE = ez.line, - eF = ez.ch, - eM = eH; - var ew = dJ(eN, eE); - var eK = true; - function eL() { - var eO = eE + eH; - if (eO < eN.first || eO >= eN.first + eN.size) { - return (eK = false); - } - eE = eO; - return (ew = dJ(eN, eO)); - } - function eJ(eP) { - var eO = (eB ? q : R)(ew, eF, eH, true); - if (eO == null) { - if (!eP && eL()) { - if (eB) { - eF = (eH < 0 ? b4 : bU)(ew); - } else { - eF = eH < 0 ? ew.text.length : 0; - } - } else { - return (eK = false); - } - } else { - eF = eO; - } - return true; - } - if (eG == 'char') { - eJ(); - } else { - if (eG == 'column') { - eJ(true); - } else { - if (eG == 'word' || eG == 'group') { - var eI = null, - eC = eG == 'group'; - for (var eA = true; ; eA = false) { - if (eH < 0 && !eJ(!eA)) { - break; - } - var ex = ew.text.charAt(eF) || '\n'; - var ey = bR(ex) ? 'w' : !eC ? null : /\s/.test(ex) ? null : 'p'; - if (eI && eI != ey) { - if (eH < 0) { - eH = 1; - eJ(); - } - break; - } - if (ey) { - eI = ey; - } - if (eH > 0 && !eJ(!eA)) { - break; - } - } - } - } - } - var eD = bi(eN, K(eE, eF), eM, true); - if (!eK) { - eD.hitSide = true; - } - return eD; - } - function aV(eE, ez, ew, eD) { - var eC = eE.doc, - eB = ez.left, - eA; - if (eD == 'page') { - var ey = Math.min( - eE.display.wrapper.clientHeight, - window.innerHeight || document.documentElement.clientHeight - ); - eA = ez.top + ew * (ey - (ew < 0 ? 1.5 : 0.5) * aw(eE.display)); - } else { - if (eD == 'line') { - eA = ew > 0 ? ez.bottom + 3 : ez.top - 3; - } - } - for (;;) { - var ex = ed(eE, eB, eA); - if (!ex.outside) { - break; - } - if (ew < 0 ? eA <= 0 : eA >= eC.height) { - ex.hitSide = true; - break; - } - eA += ew * 5; - } - return ex; - } - function ab(ez, eB) { - var eA = eB.ch, - ey = eB.ch; - if (ez) { - if ((eB.xRel < 0 || ey == ez.length) && eA) { - --eA; - } else { - ++ey; - } - var ex = ez.charAt(eA); - var ew = bR(ex) - ? bR - : /\s/.test(ex) - ? function (eC) { - return /\s/.test(eC); - } - : function (eC) { - return !/\s/.test(eC) && !bR(eC); - }; - while (eA > 0 && ew(ez.charAt(eA - 1))) { - --eA; - } - while (ey < ez.length && ew(ez.charAt(ey))) { - ++ey; - } - } - return {from: K(eB.line, eA), to: K(eB.line, ey)}; - } - function aQ(ew, ex) { - eg(ew.doc, K(ex, 0), d9(ew.doc, K(ex + 1, 0))); - } - B.prototype = { - constructor: B, - focus: function () { - window.focus(); - db(this); - w(this); - }, - setOption: function (ey, ez) { - var ex = this.options, - ew = ex[ey]; - if (ex[ey] == ez && ey != 'mode') { - return; - } - ex[ey] = ez; - if (aK.hasOwnProperty(ey)) { - b9(this, aK[ey])(this, ez, ew); - } - }, - getOption: function (ew) { - return this.options[ew]; - }, - getDoc: function () { - return this.doc; - }, - addKeyMap: function (ex, ew) { - this.state.keyMaps[ew ? 'push' : 'unshift'](ex); - }, - removeKeyMap: function (ex) { - var ey = this.state.keyMaps; - for (var ew = 0; ew < ey.length; ++ew) { - if (ey[ew] == ex || (typeof ey[ew] != 'string' && ey[ew].name == ex)) { - ey.splice(ew, 1); - return true; - } - } - }, - addOverlay: b9(null, function (ew, ex) { - var ey = ew.token ? ew : B.getMode(this.options, ew); - if (ey.startState) { - throw new Error('Overlays may not be stateful.'); - } - this.state.overlays.push({mode: ey, modeSpec: ew, opaque: ex && ex.opaque}); - this.state.modeGen++; - Q(this); - }), - removeOverlay: b9(null, function (ew) { - var ey = this.state.overlays; - for (var ex = 0; ex < ey.length; ++ex) { - var ez = ey[ex].modeSpec; - if (ez == ew || (typeof ew == 'string' && ez.name == ew)) { - ey.splice(ex, 1); - this.state.modeGen++; - Q(this); - return; - } - } - }), - indentLine: b9(null, function (ey, ew, ex) { - if (typeof ew != 'string' && typeof ew != 'number') { - if (ew == null) { - ew = this.options.smartIndent ? 'smart' : 'prev'; - } else { - ew = ew ? 'add' : 'subtract'; - } - } - if (bt(this.doc, ey)) { - N(this, ey, ew, ex); - } - }), - indentSelection: b9(null, function (ex) { - var ey = this.doc.sel; - if (d8(ey.from, ey.to)) { - return N(this, ey.from.line, ex, true); - } - var ez = ey.to.line - (ey.to.ch ? 0 : 1); - for (var ew = ey.from.line; ew <= ez; ++ew) { - N(this, ew, ex); - } - }), - getTokenAt: function (eD, ex) { - var eA = this.doc; - eD = d9(eA, eD); - var ez = cw(this, eD.line, ex), - eC = this.doc.mode; - var ew = dJ(eA, eD.line); - var eB = new ds(ew.text, this.options.tabSize); - while (eB.pos < eD.ch && !eB.eol()) { - eB.start = eB.pos; - var ey = eC.token(eB, ez); - } - return { - start: eB.start, - end: eB.pos, - string: eB.current(), - className: ey || null, - type: ey || null, - state: ez - }; - }, - getTokenTypeAt: function (eB) { - eB = d9(this.doc, eB); - var ey = cd(this, dJ(this.doc, eB.line)); - var ez = 0, - eA = (ey.length - 1) / 2, - ex = eB.ch; - if (ex == 0) { - return ey[2]; - } - for (;;) { - var ew = (ez + eA) >> 1; - if ((ew ? ey[ew * 2 - 1] : 0) >= ex) { - eA = ew; - } else { - if (ey[ew * 2 + 1] < ex) { - ez = ew + 1; - } else { - return ey[ew * 2 + 2]; - } - } - } - }, - getModeAt: function (ex) { - var ew = this.doc.mode; - if (!ew.innerMode) { - return ew; - } - return B.innerMode(ew, this.getTokenAt(ex).state).mode; - }, - getHelper: function (ex, ew) { - return this.getHelpers(ex, ew)[0]; - }, - getHelpers: function (eD, ey) { - var ez = []; - if (!dS.hasOwnProperty(ey)) { - return dS; - } - var ew = dS[ey], - eC = this.getModeAt(eD); - if (typeof eC[ey] == 'string') { - if (ew[eC[ey]]) { - ez.push(ew[eC[ey]]); - } - } else { - if (eC[ey]) { - for (var ex = 0; ex < eC[ey].length; ex++) { - var eB = ew[eC[ey][ex]]; - if (eB) { - ez.push(eB); - } - } - } else { - if (eC.helperType && ew[eC.helperType]) { - ez.push(ew[eC.helperType]); - } else { - if (ew[eC.name]) { - ez.push(ew[eC.name]); - } - } - } - } - for (var ex = 0; ex < ew._global.length; ex++) { - var eA = ew._global[ex]; - if (eA.pred(eC, this) && cl(ez, eA.val) == -1) { - ez.push(eA.val); - } - } - return ez; - }, - getStateAfter: function (ex, ew) { - var ey = this.doc; - ex = cb(ey, ex == null ? ey.first + ey.size - 1 : ex); - return cw(this, ex + 1, ew); - }, - cursorCoords: function (ez, ex) { - var ey, - ew = this.doc.sel; - if (ez == null) { - ey = ew.head; - } else { - if (typeof ez == 'object') { - ey = d9(this.doc, ez); - } else { - ey = ez ? ew.from : ew.to; - } - } - return cH(this, ey, ex || 'page'); - }, - charCoords: function (ex, ew) { - return bZ(this, d9(this.doc, ex), ew || 'page'); - }, - coordsChar: function (ew, ex) { - ew = es(this, ew, ex || 'page'); - return ed(this, ew.left, ew.top); - }, - lineAtHeight: function (ew, ex) { - ew = es(this, {top: ew, left: 0}, ex || 'page').top; - return a5(this.doc, ew + this.display.viewOffset); - }, - heightAtLine: function (ex, eA) { - var ew = false, - ez = this.doc.first + this.doc.size - 1; - if (ex < this.doc.first) { - ex = this.doc.first; - } else { - if (ex > ez) { - ex = ez; - ew = true; - } - } - var ey = dJ(this.doc, ex); - return dp(this, dJ(this.doc, ex), {top: 0, left: 0}, eA || 'page').top + (ew ? ey.height : 0); - }, - defaultTextHeight: function () { - return aw(this.display); - }, - defaultCharWidth: function () { - return cy(this.display); - }, - setGutterMarker: b9(null, function (ew, ex, ey) { - return c9(this, ew, function (ez) { - var eA = ez.gutterMarkers || (ez.gutterMarkers = {}); - eA[ex] = ey; - if (!ey && dt(eA)) { - ez.gutterMarkers = null; - } - return true; - }); - }), - clearGutter: b9(null, function (ey) { - var ew = this, - ez = ew.doc, - ex = ez.first; - ez.iter(function (eA) { - if (eA.gutterMarkers && eA.gutterMarkers[ey]) { - eA.gutterMarkers[ey] = null; - Q(ew, ex, ex + 1); - if (dt(eA.gutterMarkers)) { - eA.gutterMarkers = null; - } - } - ++ex; - }); - }), - addLineClass: b9(null, function (ey, ex, ew) { - return c9(this, ey, function (ez) { - var eA = ex == 'text' ? 'textClass' : ex == 'background' ? 'bgClass' : 'wrapClass'; - if (!ez[eA]) { - ez[eA] = ew; - } else { - if (new RegExp('(?:^|\\s)' + ew + '(?:$|\\s)').test(ez[eA])) { - return false; - } else { - ez[eA] += ' ' + ew; - } - } - return true; - }); - }), - removeLineClass: b9(null, function (ey, ex, ew) { - return c9(this, ey, function (eA) { - var eD = ex == 'text' ? 'textClass' : ex == 'background' ? 'bgClass' : 'wrapClass'; - var eC = eA[eD]; - if (!eC) { - return false; - } else { - if (ew == null) { - eA[eD] = null; - } else { - var eB = eC.match(new RegExp('(?:^|\\s+)' + ew + '(?:$|\\s+)')); - if (!eB) { - return false; - } - var ez = eB.index + eB[0].length; - eA[eD] = - eC.slice(0, eB.index) + (!eB.index || ez == eC.length ? '' : ' ') + eC.slice(ez) || - null; - } - } - return true; - }); - }), - addLineWidget: b9(null, function (ey, ex, ew) { - return a6(this, ey, ex, ew); - }), - removeLineWidget: function (ew) { - ew.clear(); - }, - lineInfo: function (ew) { - if (typeof ew == 'number') { - if (!bt(this.doc, ew)) { - return null; - } - var ex = ew; - ew = dJ(this.doc, ew); - if (!ew) { - return null; - } - } else { - var ex = bc(ew); - if (ex == null) { - return null; - } - } - return { - line: ex, - handle: ew, - text: ew.text, - gutterMarkers: ew.gutterMarkers, - textClass: ew.textClass, - bgClass: ew.bgClass, - wrapClass: ew.wrapClass, - widgets: ew.widgets - }; - }, - getViewport: function () { - return {from: this.display.showingFrom, to: this.display.showingTo}; - }, - addWidget: function (eB, ey, eD, ez, eF) { - var eA = this.display; - eB = cH(this, d9(this.doc, eB)); - var eC = eB.bottom, - ex = eB.left; - ey.style.position = 'absolute'; - eA.sizer.appendChild(ey); - if (ez == 'over') { - eC = eB.top; - } else { - if (ez == 'above' || ez == 'near') { - var ew = Math.max(eA.wrapper.clientHeight, this.doc.height), - eE = Math.max(eA.sizer.clientWidth, eA.lineSpace.clientWidth); - if ((ez == 'above' || eB.bottom + ey.offsetHeight > ew) && eB.top > ey.offsetHeight) { - eC = eB.top - ey.offsetHeight; - } else { - if (eB.bottom + ey.offsetHeight <= ew) { - eC = eB.bottom; - } - } - if (ex + ey.offsetWidth > eE) { - ex = eE - ey.offsetWidth; - } - } - } - ey.style.top = eC + 'px'; - ey.style.left = ey.style.right = ''; - if (eF == 'right') { - ex = eA.sizer.clientWidth - ey.offsetWidth; - ey.style.right = '0px'; - } else { - if (eF == 'left') { - ex = 0; - } else { - if (eF == 'middle') { - ex = (eA.sizer.clientWidth - ey.offsetWidth) / 2; - } - } - ey.style.left = ex + 'px'; - } - if (eD) { - z(this, ex, eC, ex + ey.offsetWidth, eC + ey.offsetHeight); - } - }, - triggerOnKeyDown: b9(null, m), - execCommand: function (ew) { - if (dd.hasOwnProperty(ew)) { - return dd[ew](this); - } - }, - findPosH: function (eC, ez, eA, ex) { - var ew = 1; - if (ez < 0) { - ew = -1; - ez = -ez; - } - for (var ey = 0, eB = d9(this.doc, eC); ey < ez; ++ey) { - eB = aZ(this.doc, eB, ew, eA, ex); - if (eB.hitSide) { - break; - } - } - return eB; - }, - moveH: b9(null, function (ew, ex) { - var ey = this.doc.sel, - ez; - if (ey.shift || ey.extend || d8(ey.from, ey.to)) { - ez = aZ(this.doc, ey.head, ew, ex, this.options.rtlMoveVisually); - } else { - ez = ew < 0 ? ey.from : ey.to; - } - eg(this.doc, ez, ez, ew); - }), - deleteH: b9(null, function (ew, ex) { - var ey = this.doc.sel; - if (!d8(ey.from, ey.to)) { - az(this.doc, '', ey.from, ey.to, '+delete'); - } else { - az(this.doc, '', ey.from, aZ(this.doc, ey.head, ew, ex, false), '+delete'); - } - this.curOp.userSelChange = true; - }), - findPosV: function (eB, ey, eC, eE) { - var ew = 1, - eA = eE; - if (ey < 0) { - ew = -1; - ey = -ey; - } - for (var ex = 0, eD = d9(this.doc, eB); ex < ey; ++ex) { - var ez = cH(this, eD, 'div'); - if (eA == null) { - eA = ez.left; - } else { - ez.left = eA; - } - eD = aV(this, ez, ew, eC); - if (eD.hitSide) { - break; - } - } - return eD; - }, - moveV: b9(null, function (ex, ey) { - var ez = this.doc.sel, - eA, - ew; - if (ez.shift || ez.extend || d8(ez.from, ez.to)) { - var eB = cH(this, ez.head, 'div'); - if (ez.goalColumn != null) { - eB.left = ez.goalColumn; - } - eA = aV(this, eB, ex, ey); - if (ey == 'page') { - b0(this, 0, bZ(this, eA, 'div').top - eB.top); - } - ew = eB.left; - } else { - eA = ex < 0 ? ez.from : ez.to; - } - eg(this.doc, eA, eA, ex); - if (ew != null) { - ez.goalColumn = ew; - } - }), - toggleOverwrite: function (ew) { - if (ew != null && ew == this.state.overwrite) { - return; - } - if ((this.state.overwrite = !this.state.overwrite)) { - this.display.cursor.className += ' CodeMirror-overwrite'; - } else { - this.display.cursor.className = this.display.cursor.className.replace( - ' CodeMirror-overwrite', - '' - ); - } - }, - hasFocus: function () { - return this.state.focused; - }, - scrollTo: b9(null, function (ew, ex) { - y(this, ew, ex); - }), - getScrollInfo: function () { - var ew = this.display.scroller, - ex = aO; - return { - left: ew.scrollLeft, - top: ew.scrollTop, - height: ew.scrollHeight - ex, - width: ew.scrollWidth - ex, - clientHeight: ew.clientHeight - ex, - clientWidth: ew.clientWidth - ex - }; - }, - scrollIntoView: b9(null, function (ex, ez) { - if (ex == null) { - ex = {from: this.doc.sel.head, to: null}; - } else { - if (typeof ex == 'number') { - ex = {from: K(ex, 0), to: null}; - } else { - if (ex.from == null) { - ex = {from: ex, to: null}; - } - } - } - if (!ex.to) { - ex.to = ex.from; - } - if (!ez) { - ez = 0; - } - var ey = ex; - if (ex.from.line != null) { - this.curOp.scrollToPos = {from: ex.from, to: ex.to, margin: ez}; - ey = {from: cH(this, ex.from), to: cH(this, ex.to)}; - } - var ew = A( - this, - Math.min(ey.from.left, ey.to.left), - Math.min(ey.from.top, ey.to.top) - ez, - Math.max(ey.from.right, ey.to.right), - Math.max(ey.from.bottom, ey.to.bottom) + ez - ); - y(this, ew.scrollLeft, ew.scrollTop); - }), - setSize: b9(null, function (ey, ew) { - function ex(ez) { - return typeof ez == 'number' || /^\d+$/.test(String(ez)) ? ez + 'px' : ez; - } - if (ey != null) { - this.display.wrapper.style.width = ex(ey); - } - if (ew != null) { - this.display.wrapper.style.height = ex(ew); - } - if (this.options.lineWrapping) { - this.display.measureLineCache.length = this.display.measureLineCachePos = 0; - } - this.curOp.forceUpdate = true; - }), - operation: function (ew) { - return b1(this, ew); - }, - refresh: b9(null, function () { - var ew = this.display.cachedTextHeight == null; - T(this); - y(this, this.doc.scrollLeft, this.doc.scrollTop); - Q(this); - if (ew) { - L(this); - } - }), - swapDoc: b9(null, function (ex) { - var ew = this.doc; - ew.cm = null; - cQ(this, ex); - T(this); - dU(this, true); - y(this, ex.scrollLeft, ex.scrollTop); - O(this, 'swapDoc', this, ew); - return ew; - }), - getInputField: function () { - return this.display.input; - }, - getWrapperElement: function () { - return this.display.wrapper; - }, - getScrollerElement: function () { - return this.display.scroller; - }, - getGutterElement: function () { - return this.display.gutters; - } - }; - a0(B); - var aK = (B.optionHandlers = {}); - var dA = (B.defaults = {}); - function o(ew, ez, ey, ex) { - B.defaults[ew] = ez; - if (ey) { - aK[ew] = ex - ? function (eA, eC, eB) { - if (eB != bw) { - ey(eA, eC, eB); - } - } - : ey; - } - } - var bw = (B.Init = { - toString: function () { - return 'CodeMirror.Init'; - } - }); - o( - 'value', - '', - function (ew, ex) { - ew.setValue(ex); - }, - true - ); - o( - 'mode', - null, - function (ew, ex) { - ew.doc.modeOption = ex; - aW(ew); - }, - true - ); - o('indentUnit', 2, aW, true); - o('indentWithTabs', false); - o('smartIndent', true); - o( - 'tabSize', - 4, - function (ew) { - cZ(ew); - T(ew); - Q(ew); - }, - true - ); - o( - 'specialChars', - /[\t\u0000-\u0019\u00ad\u200b\u2028\u2029\ufeff]/g, - function (ew, ex) { - ew.options.specialChars = new RegExp(ex.source + (ex.test('\t') ? '' : '|\t'), 'g'); - ew.refresh(); - }, - true - ); - o( - 'specialCharPlaceholder', - dH, - function (ew) { - ew.refresh(); - }, - true - ); - o('electricChars', true); - o('rtlMoveVisually', !ao); - o('wholeLineUpdateBefore', true); - o( - 'theme', - 'default', - function (ew) { - b2(ew); - ct(ew); - }, - true - ); - o('keyMap', 'default', et); - o('extraKeys', null); - o('onKeyEvent', null); - o('onDragEvent', null); - o('lineWrapping', false, dj, true); - o( - 'gutters', - [], - function (ew) { - by(ew.options); - ct(ew); - }, - true - ); - o( - 'fixedGutter', - true, - function (ew, ex) { - ew.display.gutters.style.left = ex ? cJ(ew.display) + 'px' : '0'; - ew.refresh(); - }, - true - ); - o('coverGutterNextToScrollbar', false, dw, true); - o( - 'lineNumbers', - false, - function (ew) { - by(ew.options); - ct(ew); - }, - true - ); - o('firstLineNumber', 1, ct, true); - o( - 'lineNumberFormatter', - function (ew) { - return ew; - }, - ct, - true - ); - o('showCursorWhenSelecting', false, a2, true); - o('resetSelectionOnContextMenu', true); - o('readOnly', false, function (ew, ex) { - if (ex == 'nocursor') { - au(ew); - ew.display.input.blur(); - ew.display.disabled = true; - } else { - ew.display.disabled = false; - if (!ex) { - dU(ew, true); - } - } - }); - o( - 'disableInput', - false, - function (ew, ex) { - if (!ex) { - dU(ew, true); - } - }, - true - ); - o('dragDrop', true); - o('cursorBlinkRate', 530); - o('cursorScrollMargin', 0); - o('cursorHeight', 1); - o('workTime', 100); - o('workDelay', 100); - o('flattenSpans', true, cZ, true); - o('addModeClass', false, cZ, true); - o('pollInterval', 100); - o('undoDepth', 40, function (ew, ex) { - ew.doc.history.undoDepth = ex; - }); - o('historyEventDelay', 500); - o( - 'viewportMargin', - 10, - function (ew) { - ew.refresh(); - }, - true - ); - o('maxHighlightLength', 10000, cZ, true); - o('crudeMeasuringFrom', 10000); - o('moveInputWithCursor', true, function (ew, ex) { - if (!ex) { - ew.display.inputDiv.style.top = ew.display.inputDiv.style.left = 0; - } - }); - o('tabindex', null, function (ew, ex) { - ew.display.input.tabIndex = ex || ''; - }); - o('autofocus', null); - var cq = (B.modes = {}), - at = (B.mimeModes = {}); - B.defineMode = function (ew, ey) { - if (!B.defaults.mode && ew != 'null') { - B.defaults.mode = ew; - } - if (arguments.length > 2) { - ey.dependencies = []; - for (var ex = 2; ex < arguments.length; ++ex) { - ey.dependencies.push(arguments[ex]); - } - } - cq[ew] = ey; - }; - B.defineMIME = function (ex, ew) { - at[ex] = ew; - }; - B.resolveMode = function (ew) { - if (typeof ew == 'string' && at.hasOwnProperty(ew)) { - ew = at[ew]; - } else { - if (ew && typeof ew.name == 'string' && at.hasOwnProperty(ew.name)) { - var ex = at[ew.name]; - ew = bD(ex, ew); - ew.name = ex.name; - } else { - if (typeof ew == 'string' && /^[\w\-]+\/[\w\-]+\+xml$/.test(ew)) { - return B.resolveMode('application/xml'); - } - } - } - if (typeof ew == 'string') { - return {name: ew}; - } else { - return ew || {name: 'null'}; - } - }; - B.getMode = function (ex, ew) { - var ew = B.resolveMode(ew); - var ez = cq[ew.name]; - if (!ez) { - return B.getMode(ex, 'text/plain'); - } - var eA = ez(ex, ew); - if (co.hasOwnProperty(ew.name)) { - var ey = co[ew.name]; - for (var eB in ey) { - if (!ey.hasOwnProperty(eB)) { - continue; - } - if (eA.hasOwnProperty(eB)) { - eA['_' + eB] = eA[eB]; - } - eA[eB] = ey[eB]; - } - } - eA.name = ew.name; - if (ew.helperType) { - eA.helperType = ew.helperType; - } - if (ew.modeProps) { - for (var eB in ew.modeProps) { - eA[eB] = ew.modeProps[eB]; - } - } - return eA; - }; - B.defineMode('null', function () { - return { - token: function (ew) { - ew.skipToEnd(); - } - }; - }); - B.defineMIME('text/plain', 'null'); - var co = (B.modeExtensions = {}); - B.extendMode = function (ey, ex) { - var ew = co.hasOwnProperty(ey) ? co[ey] : (co[ey] = {}); - am(ex, ew); - }; - B.defineExtension = function (ew, ex) { - B.prototype[ew] = ex; - }; - B.defineDocExtension = function (ew, ex) { - aa.prototype[ew] = ex; - }; - B.defineOption = o; - var aE = []; - B.defineInitHook = function (ew) { - aE.push(ew); - }; - var dS = (B.helpers = {}); - B.registerHelper = function (ex, ew, ey) { - if (!dS.hasOwnProperty(ex)) { - dS[ex] = B[ex] = {_global: []}; - } - dS[ex][ew] = ey; - }; - B.registerGlobalHelper = function (ey, ex, ew, ez) { - B.registerHelper(ey, ex, ez); - dS[ey]._global.push({pred: ew, val: ez}); - }; - B.isWordChar = bR; - function bo(ez, ew) { - if (ew === true) { - return ew; - } - if (ez.copyState) { - return ez.copyState(ew); - } - var ey = {}; - for (var eA in ew) { - var ex = ew[eA]; - if (ex instanceof Array) { - ex = ex.concat([]); - } - ey[eA] = ex; - } - return ey; - } - B.copyState = bo; - function bm(ey, ex, ew) { - return ey.startState ? ey.startState(ex, ew) : true; - } - B.startState = bm; - B.innerMode = function (ey, ew) { - while (ey.innerMode) { - var ex = ey.innerMode(ew); - if (!ex || ex.mode == ey) { - break; - } - ew = ex.state; - ey = ex.mode; - } - return ex || {mode: ey, state: ew}; - }; - var dd = (B.commands = { - selectAll: function (ew) { - ew.setSelection(K(ew.firstLine(), 0), K(ew.lastLine())); - }, - killLine: function (ew) { - var ez = ew.getCursor(true), - ey = ew.getCursor(false), - ex = !d8(ez, ey); - if (!ex && ew.getLine(ez.line).length == ez.ch) { - ew.replaceRange('', ez, K(ez.line + 1, 0), '+delete'); - } else { - ew.replaceRange('', ez, ex ? ey : K(ez.line), '+delete'); - } - }, - deleteLine: function (ew) { - var ex = ew.getCursor().line; - ew.replaceRange('', K(ex, 0), K(ex), '+delete'); - }, - delLineLeft: function (ew) { - var ex = ew.getCursor(); - ew.replaceRange('', K(ex.line, 0), ex, '+delete'); - }, - undo: function (ew) { - ew.undo(); - }, - redo: function (ew) { - ew.redo(); - }, - goDocStart: function (ew) { - ew.extendSelection(K(ew.firstLine(), 0)); - }, - goDocEnd: function (ew) { - ew.extendSelection(K(ew.lastLine())); - }, - goLineStart: function (ew) { - ew.extendSelection(aY(ew, ew.getCursor().line)); - }, - goLineStartSmart: function (ex) { - var eB = ex.getCursor(), - eC = aY(ex, eB.line); - var ey = ex.getLineHandle(eC.line); - var ew = a(ey); - if (!ew || ew[0].level == 0) { - var eA = Math.max(0, ey.text.search(/\S/)); - var ez = eB.line == eC.line && eB.ch <= eA && eB.ch; - ex.extendSelection(K(eC.line, ez ? 0 : eA)); - } else { - ex.extendSelection(eC); - } - }, - goLineEnd: function (ew) { - ew.extendSelection(cE(ew, ew.getCursor().line)); - }, - goLineRight: function (ew) { - var ex = ew.charCoords(ew.getCursor(), 'div').top + 5; - ew.extendSelection( - ew.coordsChar({left: ew.display.lineDiv.offsetWidth + 100, top: ex}, 'div') - ); - }, - goLineLeft: function (ew) { - var ex = ew.charCoords(ew.getCursor(), 'div').top + 5; - ew.extendSelection(ew.coordsChar({left: 0, top: ex}, 'div')); - }, - goLineUp: function (ew) { - ew.moveV(-1, 'line'); - }, - goLineDown: function (ew) { - ew.moveV(1, 'line'); - }, - goPageUp: function (ew) { - ew.moveV(-1, 'page'); - }, - goPageDown: function (ew) { - ew.moveV(1, 'page'); - }, - goCharLeft: function (ew) { - ew.moveH(-1, 'char'); - }, - goCharRight: function (ew) { - ew.moveH(1, 'char'); - }, - goColumnLeft: function (ew) { - ew.moveH(-1, 'column'); - }, - goColumnRight: function (ew) { - ew.moveH(1, 'column'); - }, - goWordLeft: function (ew) { - ew.moveH(-1, 'word'); - }, - goGroupRight: function (ew) { - ew.moveH(1, 'group'); - }, - goGroupLeft: function (ew) { - ew.moveH(-1, 'group'); - }, - goWordRight: function (ew) { - ew.moveH(1, 'word'); - }, - delCharBefore: function (ew) { - ew.deleteH(-1, 'char'); - }, - delCharAfter: function (ew) { - ew.deleteH(1, 'char'); - }, - delWordBefore: function (ew) { - ew.deleteH(-1, 'word'); - }, - delWordAfter: function (ew) { - ew.deleteH(1, 'word'); - }, - delGroupBefore: function (ew) { - ew.deleteH(-1, 'group'); - }, - delGroupAfter: function (ew) { - ew.deleteH(1, 'group'); - }, - indentAuto: function (ew) { - ew.indentSelection('smart'); - }, - indentMore: function (ew) { - ew.indentSelection('add'); - }, - indentLess: function (ew) { - ew.indentSelection('subtract'); - }, - insertTab: function (ew) { - ew.replaceSelection('\t', 'end', '+input'); - }, - defaultTab: function (ew) { - if (ew.somethingSelected()) { - ew.indentSelection('add'); - } else { - ew.replaceSelection('\t', 'end', '+input'); - } - }, - transposeChars: function (ew) { - var ey = ew.getCursor(), - ex = ew.getLine(ey.line); - if (ey.ch > 0 && ey.ch < ex.length - 1) { - ew.replaceRange( - ex.charAt(ey.ch) + ex.charAt(ey.ch - 1), - K(ey.line, ey.ch - 1), - K(ey.line, ey.ch + 1) - ); - } - }, - newlineAndIndent: function (ew) { - b9(ew, function () { - ew.replaceSelection('\n', 'end', '+input'); - ew.indentLine(ew.getCursor().line, null, true); - })(); - }, - toggleOverwrite: function (ew) { - ew.toggleOverwrite(); - } - }); - var dF = (B.keyMap = {}); - dF.basic = { - Left: 'goCharLeft', - Right: 'goCharRight', - Up: 'goLineUp', - Down: 'goLineDown', - End: 'goLineEnd', - Home: 'goLineStartSmart', - PageUp: 'goPageUp', - PageDown: 'goPageDown', - Delete: 'delCharAfter', - Backspace: 'delCharBefore', - 'Shift-Backspace': 'delCharBefore', - Tab: 'defaultTab', - 'Shift-Tab': 'indentAuto', - Enter: 'newlineAndIndent', - Insert: 'toggleOverwrite' - }; - dF.pcDefault = { - 'Ctrl-A': 'selectAll', - 'Ctrl-D': 'deleteLine', - 'Ctrl-Z': 'undo', - 'Shift-Ctrl-Z': 'redo', - 'Ctrl-Y': 'redo', - 'Ctrl-Home': 'goDocStart', - 'Alt-Up': 'goDocStart', - 'Ctrl-End': 'goDocEnd', - 'Ctrl-Down': 'goDocEnd', - 'Ctrl-Left': 'goGroupLeft', - 'Ctrl-Right': 'goGroupRight', - 'Alt-Left': 'goLineStart', - 'Alt-Right': 'goLineEnd', - 'Ctrl-Backspace': 'delGroupBefore', - 'Ctrl-Delete': 'delGroupAfter', - 'Ctrl-S': 'save', - 'Ctrl-F': 'find', - 'Ctrl-G': 'findNext', - 'Shift-Ctrl-G': 'findPrev', - 'Shift-Ctrl-F': 'replace', - 'Shift-Ctrl-R': 'replaceAll', - 'Ctrl-[': 'indentLess', - 'Ctrl-]': 'indentMore', - fallthrough: 'basic' - }; - dF.macDefault = { - 'Cmd-A': 'selectAll', - 'Cmd-D': 'deleteLine', - 'Cmd-Z': 'undo', - 'Shift-Cmd-Z': 'redo', - 'Cmd-Y': 'redo', - 'Cmd-Up': 'goDocStart', - 'Cmd-End': 'goDocEnd', - 'Cmd-Down': 'goDocEnd', - 'Alt-Left': 'goGroupLeft', - 'Alt-Right': 'goGroupRight', - 'Cmd-Left': 'goLineStart', - 'Cmd-Right': 'goLineEnd', - 'Alt-Backspace': 'delGroupBefore', - 'Ctrl-Alt-Backspace': 'delGroupAfter', - 'Alt-Delete': 'delGroupAfter', - 'Cmd-S': 'save', - 'Cmd-F': 'find', - 'Cmd-G': 'findNext', - 'Shift-Cmd-G': 'findPrev', - 'Cmd-Alt-F': 'replace', - 'Shift-Cmd-Alt-F': 'replaceAll', - 'Cmd-[': 'indentLess', - 'Cmd-]': 'indentMore', - 'Cmd-Backspace': 'delLineLeft', - fallthrough: ['basic', 'emacsy'] - }; - dF['default'] = bq ? dF.macDefault : dF.pcDefault; - dF.emacsy = { - 'Ctrl-F': 'goCharRight', - 'Ctrl-B': 'goCharLeft', - 'Ctrl-P': 'goLineUp', - 'Ctrl-N': 'goLineDown', - 'Alt-F': 'goWordRight', - 'Alt-B': 'goWordLeft', - 'Ctrl-A': 'goLineStart', - 'Ctrl-E': 'goLineEnd', - 'Ctrl-V': 'goPageDown', - 'Shift-Ctrl-V': 'goPageUp', - 'Ctrl-D': 'delCharAfter', - 'Ctrl-H': 'delCharBefore', - 'Alt-D': 'delWordAfter', - 'Alt-Backspace': 'delWordBefore', - 'Ctrl-K': 'killLine', - 'Ctrl-T': 'transposeChars' - }; - function eh(ew) { - if (typeof ew == 'string') { - return dF[ew]; - } else { - return ew; - } - } - function g(ex, eB, ez) { - function eA(eH) { - eH = eh(eH); - var eF = eH[ex]; - if (eF === false) { - return 'stop'; - } - if (eF != null && ez(eF)) { - return true; - } - if (eH.nofallthrough) { - return 'stop'; - } - var eE = eH.fallthrough; - if (eE == null) { - return false; - } - if (Object.prototype.toString.call(eE) != '[object Array]') { - return eA(eE); - } - for (var eD = 0, eG = eE.length; eD < eG; ++eD) { - var eC = eA(eE[eD]); - if (eC) { - return eC; - } - } - return false; - } - for (var ey = 0; ey < eB.length; ++ey) { - var ew = eA(eB[ey]); - if (ew) { - return ew != 'stop'; - } - } - } - function dc(ex) { - var ew = dL[ex.keyCode]; - return ew == 'Ctrl' || ew == 'Alt' || ew == 'Shift' || ew == 'Mod'; - } - function dW(ex, ey) { - if (d1 && ex.keyCode == 34 && ex['char']) { - return false; - } - var ew = dL[ex.keyCode]; - if (ew == null || ex.altGraphKey) { - return false; - } - if (ex.altKey) { - ew = 'Alt-' + ew; - } - if (be ? ex.metaKey : ex.ctrlKey) { - ew = 'Ctrl-' + ew; - } - if (be ? ex.ctrlKey : ex.metaKey) { - ew = 'Cmd-' + ew; - } - if (!ey && ex.shiftKey) { - ew = 'Shift-' + ew; - } - return ew; - } - B.lookupKey = g; - B.isModifierKey = dc; - B.keyName = dW; - B.fromTextArea = function (eD, eE) { - if (!eE) { - eE = {}; - } - eE.value = eD.value; - if (!eE.tabindex && eD.tabindex) { - eE.tabindex = eD.tabindex; - } - if (!eE.placeholder && eD.placeholder) { - eE.placeholder = eD.placeholder; - } - if (eE.autofocus == null) { - var ew = document.body; - try { - ew = document.activeElement; - } catch (ey) {} - eE.autofocus = ew == eD || (eD.getAttribute('autofocus') != null && ew == document.body); - } - function eA() { - eD.value = eC.getValue(); - } - if (eD.form) { - bk(eD.form, 'submit', eA); - if (!eE.leaveSubmitMethodAlone) { - var ex = eD.form, - eB = ex.submit; - try { - var ez = (ex.submit = function () { - eA(); - ex.submit = eB; - ex.submit(); - ex.submit = ez; - }); - } catch (ey) {} - } - } - eD.style.display = 'none'; - var eC = B(function (eF) { - eD.parentNode.insertBefore(eF, eD.nextSibling); - }, eE); - eC.save = eA; - eC.getTextArea = function () { - return eD; - }; - eC.toTextArea = function () { - eA(); - eD.parentNode.removeChild(eC.getWrapperElement()); - eD.style.display = ''; - if (eD.form) { - cT(eD.form, 'submit', eA); - if (typeof eD.form.submit == 'function') { - eD.form.submit = eB; - } - } - }; - return eC; - }; - function ds(ew, ex) { - this.pos = this.start = 0; - this.string = ew; - this.tabSize = ex || 8; - this.lastColumnPos = this.lastColumnValue = 0; - this.lineStart = 0; - } - ds.prototype = { - eol: function () { - return this.pos >= this.string.length; - }, - sol: function () { - return this.pos == this.lineStart; - }, - peek: function () { - return this.string.charAt(this.pos) || undefined; - }, - next: function () { - if (this.pos < this.string.length) { - return this.string.charAt(this.pos++); - } - }, - eat: function (ew) { - var ey = this.string.charAt(this.pos); - if (typeof ew == 'string') { - var ex = ey == ew; - } else { - var ex = ey && (ew.test ? ew.test(ey) : ew(ey)); - } - if (ex) { - ++this.pos; - return ey; - } - }, - eatWhile: function (ew) { - var ex = this.pos; - while (this.eat(ew)) {} - return this.pos > ex; - }, - eatSpace: function () { - var ew = this.pos; - while (/[\s\u00a0]/.test(this.string.charAt(this.pos))) { - ++this.pos; - } - return this.pos > ew; - }, - skipToEnd: function () { - this.pos = this.string.length; - }, - skipTo: function (ew) { - var ex = this.string.indexOf(ew, this.pos); - if (ex > -1) { - this.pos = ex; - return true; - } - }, - backUp: function (ew) { - this.pos -= ew; - }, - column: function () { - if (this.lastColumnPos < this.start) { - this.lastColumnValue = bg( - this.string, - this.start, - this.tabSize, - this.lastColumnPos, - this.lastColumnValue - ); - this.lastColumnPos = this.start; - } - return ( - this.lastColumnValue - (this.lineStart ? bg(this.string, this.lineStart, this.tabSize) : 0) - ); - }, - indentation: function () { - return ( - bg(this.string, null, this.tabSize) - - (this.lineStart ? bg(this.string, this.lineStart, this.tabSize) : 0) - ); - }, - match: function (eA, ex, ew) { - if (typeof eA == 'string') { - var eB = function (eC) { - return ew ? eC.toLowerCase() : eC; - }; - var ez = this.string.substr(this.pos, eA.length); - if (eB(ez) == eB(eA)) { - if (ex !== false) { - this.pos += eA.length; - } - return true; - } - } else { - var ey = this.string.slice(this.pos).match(eA); - if (ey && ey.index > 0) { - return null; - } - if (ey && ex !== false) { - this.pos += ey[0].length; - } - return ey; - } - }, - current: function () { - return this.string.slice(this.start, this.pos); - }, - hideFirstChars: function (ex, ew) { - this.lineStart += ex; - try { - return ew(); - } finally { - this.lineStart -= ex; - } - } - }; - B.StringStream = ds; - function H(ex, ew) { - this.lines = []; - this.type = ew; - this.doc = ex; - } - B.TextMarker = H; - a0(H); - H.prototype.clear = function () { - if (this.explicitlyCleared) { - return; - } - var eD = this.doc.cm, - ex = eD && !eD.curOp; - if (ex) { - bY(eD); - } - if (dP(this, 'clear')) { - var eE = this.find(); - if (eE) { - O(this, 'clear', eE.from, eE.to); - } - } - var ey = null, - eB = null; - for (var ez = 0; ez < this.lines.length; ++ez) { - var eF = this.lines[ez]; - var eC = dE(eF.markedSpans, this); - if (eC.to != null) { - eB = bc(eF); - } - eF.markedSpans = dk(eF.markedSpans, eC); - if (eC.from != null) { - ey = bc(eF); - } else { - if (this.collapsed && !dZ(this.doc, eF) && eD) { - eo(eF, aw(eD.display)); - } - } - } - if (eD && this.collapsed && !eD.options.lineWrapping) { - for (var ez = 0; ez < this.lines.length; ++ez) { - var ew = u(eD.doc, this.lines[ez]), - eA = c0(eD.doc, ew); - if (eA > eD.display.maxLineLength) { - eD.display.maxLine = ew; - eD.display.maxLineLength = eA; - eD.display.maxLineChanged = true; - } - } - } - if (ey != null && eD) { - Q(eD, ey, eB + 1); - } - this.lines.length = 0; - this.explicitlyCleared = true; - if (this.atomic && this.doc.cantEdit) { - this.doc.cantEdit = false; - if (eD) { - c7(eD); - } - } - if (ex) { - W(eD); - } - }; - H.prototype.find = function (eA) { - var eC, eB; - for (var ex = 0; ex < this.lines.length; ++ex) { - var ew = this.lines[ex]; - var ey = dE(ew.markedSpans, this); - if (ey.from != null || ey.to != null) { - var ez = bc(ew); - if (ey.from != null) { - eC = K(ez, ey.from); - } - if (ey.to != null) { - eB = K(ez, ey.to); - } - } - } - if (this.type == 'bookmark' && !eA) { - return eC; - } - return eC && {from: eC, to: eB}; - }; - H.prototype.changed = function () { - var ez = this.find(), - ew = this.doc.cm; - if (!ez || !ew) { - return; - } - if (this.type != 'bookmark') { - ez = ez.from; - } - var ex = dJ(this.doc, ez.line); - ec(ew, ex); - if (ez.line >= ew.display.showingFrom && ez.line < ew.display.showingTo) { - for (var ey = ew.display.lineDiv.firstChild; ey; ey = ey.nextSibling) { - if (ey.lineObj == ex) { - if (ey.offsetHeight != ex.height) { - eo(ex, ey.offsetHeight); - } - break; - } - } - b1(ew, function () { - ew.curOp.selectionChanged = ew.curOp.forceUpdate = ew.curOp.updateMaxLine = true; - }); - } - }; - H.prototype.attachLine = function (ew) { - if (!this.lines.length && this.doc.cm) { - var ex = this.doc.cm.curOp; - if (!ex.maybeHiddenMarkers || cl(ex.maybeHiddenMarkers, this) == -1) { - (ex.maybeUnhiddenMarkers || (ex.maybeUnhiddenMarkers = [])).push(this); - } - } - this.lines.push(ew); - }; - H.prototype.detachLine = function (ew) { - this.lines.splice(cl(this.lines, ew), 1); - if (!this.lines.length && this.doc.cm) { - var ex = this.doc.cm.curOp; - (ex.maybeHiddenMarkers || (ex.maybeHiddenMarkers = [])).push(this); - } - }; - var aB = 0; - function dh(eC, eA, eB, eE, ez) { - if (eE && eE.shared) { - return G(eC, eA, eB, eE, ez); - } - if (eC.cm && !eC.cm.curOp) { - return b9(eC.cm, dh)(eC, eA, eB, eE, ez); - } - var ey = new H(eC, ez); - if (eE) { - am(eE, ey); - } - if (dK(eB, eA) || (d8(eA, eB) && ey.clearWhenEmpty !== false)) { - return ey; - } - if (ey.replacedWith) { - ey.collapsed = true; - ey.replacedWith = ej('span', [ey.replacedWith], 'CodeMirror-widget'); - if (!eE.handleMouseEvents) { - ey.replacedWith.ignoreEvents = true; - } - } - if (ey.collapsed) { - if (v(eC, eA.line, eA, eB, ey) || (eA.line != eB.line && v(eC, eB.line, eA, eB, ey))) { - throw new Error('Inserting collapsed marker partially overlapping an existing one'); - } - aD = true; - } - if (ey.addToHistory) { - di( - eC, - {from: eA, to: eB, origin: 'markText'}, - {head: eC.sel.head, anchor: eC.sel.anchor}, - NaN - ); - } - var ex = eA.line, - eD = eC.cm, - ew; - eC.iter(ex, eB.line + 1, function (eF) { - if (eD && ey.collapsed && !eD.options.lineWrapping && u(eC, eF) == eD.display.maxLine) { - ew = true; - } - var eG = {from: null, to: null, marker: ey}; - if (ex == eA.line) { - eG.from = eA.ch; - } - if (ex == eB.line) { - eG.to = eB.ch; - } - if (ey.collapsed && ex != eA.line) { - eo(eF, 0); - } - bx(eF, eG); - ++ex; - }); - if (ey.collapsed) { - eC.iter(eA.line, eB.line + 1, function (eF) { - if (dZ(eC, eF)) { - eo(eF, 0); - } - }); - } - if (ey.clearOnEnter) { - bk(ey, 'beforeCursorEnter', function () { - ey.clear(); - }); - } - if (ey.readOnly) { - eq = true; - if (eC.history.done.length || eC.history.undone.length) { - eC.clearHistory(); - } - } - if (ey.collapsed) { - ey.id = ++aB; - ey.atomic = true; - } - if (eD) { - if (ew) { - eD.curOp.updateMaxLine = true; - } - if (ey.className || ey.title || ey.startStyle || ey.endStyle || ey.collapsed) { - Q(eD, eA.line, eB.line + 1); - } - if (ey.atomic) { - c7(eD); - } - } - return ey; - } - function t(ez, ex) { - this.markers = ez; - this.primary = ex; - for (var ew = 0, ey = this; ew < ez.length; ++ew) { - ez[ew].parent = this; - bk(ez[ew], 'clear', function () { - ey.clear(); - }); - } - } - B.SharedTextMarker = t; - a0(t); - t.prototype.clear = function () { - if (this.explicitlyCleared) { - return; - } - this.explicitlyCleared = true; - for (var ew = 0; ew < this.markers.length; ++ew) { - this.markers[ew].clear(); - } - O(this, 'clear'); - }; - t.prototype.find = function () { - return this.primary.find(); - }; - function G(eA, eD, eC, ew, ey) { - ew = am(ew); - ew.shared = false; - var eB = [dh(eA, eD, eC, ew, ey)], - ex = eB[0]; - var ez = ew.replacedWith; - cN(eA, function (eF) { - if (ez) { - ew.replacedWith = ez.cloneNode(true); - } - eB.push(dh(eF, d9(eF, eD), d9(eF, eC), ew, ey)); - for (var eE = 0; eE < eF.linked.length; ++eE) { - if (eF.linked[eE].isParent) { - return; - } - } - ex = d7(eB); - }); - return new t(eB, ex); - } - function dE(ey, ew) { - if (ey) { - for (var ex = 0; ex < ey.length; ++ex) { - var ez = ey[ex]; - if (ez.marker == ew) { - return ez; - } - } - } - } - function dk(ex, ey) { - for (var ez, ew = 0; ew < ex.length; ++ew) { - if (ex[ew] != ey) { - (ez || (ez = [])).push(ex[ew]); - } - } - return ez; - } - function bx(ew, ex) { - ew.markedSpans = ew.markedSpans ? ew.markedSpans.concat([ex]) : [ex]; - ex.marker.attachLine(ew); - } - function aq(ex, ey, eC) { - if (ex) { - for (var eA = 0, eD; eA < ex.length; ++eA) { - var eE = ex[eA], - eB = eE.marker; - var ew = eE.from == null || (eB.inclusiveLeft ? eE.from <= ey : eE.from < ey); - if (ew || (eE.from == ey && eB.type == 'bookmark' && (!eC || !eE.marker.insertLeft))) { - var ez = eE.to == null || (eB.inclusiveRight ? eE.to >= ey : eE.to > ey); - (eD || (eD = [])).push({from: eE.from, to: ez ? null : eE.to, marker: eB}); - } - } - } - return eD; - } - function af(ex, ez, eC) { - if (ex) { - for (var eA = 0, eD; eA < ex.length; ++eA) { - var eE = ex[eA], - eB = eE.marker; - var ey = eE.to == null || (eB.inclusiveRight ? eE.to >= ez : eE.to > ez); - if (ey || (eE.from == ez && eB.type == 'bookmark' && (!eC || eE.marker.insertLeft))) { - var ew = eE.from == null || (eB.inclusiveLeft ? eE.from <= ez : eE.from < ez); - (eD || (eD = [])).push({ - from: ew ? null : eE.from - ez, - to: eE.to == null ? null : eE.to - ez, - marker: eB - }); - } - } - } - return eD; - } - function cY(eI, eF) { - var eE = bt(eI, eF.from.line) && dJ(eI, eF.from.line).markedSpans; - var eL = bt(eI, eF.to.line) && dJ(eI, eF.to.line).markedSpans; - if (!eE && !eL) { - return null; - } - var ex = eF.from.ch, - eA = eF.to.ch, - eD = d8(eF.from, eF.to); - var eC = aq(eE, ex, eD); - var eK = af(eL, eA, eD); - var eJ = eF.text.length == 1, - ey = d7(eF.text).length + (eJ ? ex : 0); - if (eC) { - for (var ez = 0; ez < eC.length; ++ez) { - var eH = eC[ez]; - if (eH.to == null) { - var eM = dE(eK, eH.marker); - if (!eM) { - eH.to = ex; - } else { - if (eJ) { - eH.to = eM.to == null ? null : eM.to + ey; - } - } - } - } - } - if (eK) { - for (var ez = 0; ez < eK.length; ++ez) { - var eH = eK[ez]; - if (eH.to != null) { - eH.to += ey; - } - if (eH.from == null) { - var eM = dE(eC, eH.marker); - if (!eM) { - eH.from = ey; - if (eJ) { - (eC || (eC = [])).push(eH); - } - } - } else { - eH.from += ey; - if (eJ) { - (eC || (eC = [])).push(eH); - } - } - } - } - if (eC) { - eC = n(eC); - } - if (eK && eK != eC) { - eK = n(eK); - } - var eB = [eC]; - if (!eJ) { - var eG = eF.text.length - 2, - ew; - if (eG > 0 && eC) { - for (var ez = 0; ez < eC.length; ++ez) { - if (eC[ez].to == null) { - (ew || (ew = [])).push({from: null, to: null, marker: eC[ez].marker}); - } - } - } - for (var ez = 0; ez < eG; ++ez) { - eB.push(ew); - } - eB.push(eK); - } - return eB; - } - function n(ex) { - for (var ew = 0; ew < ex.length; ++ew) { - var ey = ex[ew]; - if (ey.from != null && ey.from == ey.to && ey.marker.clearWhenEmpty !== false) { - ex.splice(ew--, 1); - } - } - if (!ex.length) { - return null; - } - return ex; - } - function cP(eE, eC) { - var ew = br(eE, eC); - var eF = cY(eE, eC); - if (!ew) { - return eF; - } - if (!eF) { - return ew; - } - for (var ez = 0; ez < ew.length; ++ez) { - var eA = ew[ez], - eB = eF[ez]; - if (eA && eB) { - spans: for (var ey = 0; ey < eB.length; ++ey) { - var eD = eB[ey]; - for (var ex = 0; ex < eA.length; ++ex) { - if (eA[ex].marker == eD.marker) { - continue spans; - } - } - eA.push(eD); - } - } else { - if (eB) { - ew[ez] = eB; - } - } - } - return ew; - } - function bW(eG, eE, eF) { - var ez = null; - eG.iter(eE.line, eF.line + 1, function (eH) { - if (eH.markedSpans) { - for (var eI = 0; eI < eH.markedSpans.length; ++eI) { - var eJ = eH.markedSpans[eI].marker; - if (eJ.readOnly && (!ez || cl(ez, eJ) == -1)) { - (ez || (ez = [])).push(eJ); - } - } - } - }); - if (!ez) { - return null; - } - var eA = [{from: eE, to: eF}]; - for (var eB = 0; eB < ez.length; ++eB) { - var eC = ez[eB], - ex = eC.find(); - for (var ey = 0; ey < eA.length; ++ey) { - var ew = eA[ey]; - if (dK(ew.to, ex.from) || dK(ex.to, ew.from)) { - continue; - } - var eD = [ey, 1]; - if (dK(ew.from, ex.from) || (!eC.inclusiveLeft && d8(ew.from, ex.from))) { - eD.push({from: ew.from, to: ex.from}); - } - if (dK(ex.to, ew.to) || (!eC.inclusiveRight && d8(ew.to, ex.to))) { - eD.push({from: ex.to, to: ew.to}); - } - eA.splice.apply(eA, eD); - ey += eD.length - 1; - } - } - return eA; - } - function r(ew) { - return ew.inclusiveLeft ? -1 : 0; - } - function bj(ew) { - return ew.inclusiveRight ? 1 : 0; - } - function cF(ez, ex) { - var eB = ez.lines.length - ex.lines.length; - if (eB != 0) { - return eB; - } - var ey = ez.find(), - eC = ex.find(); - var ew = bz(ey.from, eC.from) || r(ez) - r(ex); - if (ew) { - return -ew; - } - var eA = bz(ey.to, eC.to) || bj(ez) - bj(ex); - if (eA) { - return eA; - } - return ex.id - ez.id; - } - function aC(ex, eB) { - var ew = aD && ex.markedSpans, - eA; - if (ew) { - for (var ez, ey = 0; ey < ew.length; ++ey) { - ez = ew[ey]; - if ( - ez.marker.collapsed && - (eB ? ez.from : ez.to) == null && - (!eA || cF(eA, ez.marker) < 0) - ) { - eA = ez.marker; - } - } - } - return eA; - } - function dn(ew) { - return aC(ew, true); - } - function c5(ew) { - return aC(ew, false); - } - function v(eE, ey, eC, eD, eA) { - var eH = dJ(eE, ey); - var ew = aD && eH.markedSpans; - if (ew) { - for (var ez = 0; ez < ew.length; ++ez) { - var ex = ew[ez]; - if (!ex.marker.collapsed) { - continue; - } - var eG = ex.marker.find(true); - var eF = bz(eG.from, eC) || r(ex.marker) - r(eA); - var eB = bz(eG.to, eD) || bj(ex.marker) - bj(eA); - if ((eF >= 0 && eB <= 0) || (eF <= 0 && eB >= 0)) { - continue; - } - if ( - (eF <= 0 && (bz(eG.to, eC) || bj(ex.marker) - r(eA)) > 0) || - (eF >= 0 && (bz(eG.from, eD) || r(ex.marker) - bj(eA)) < 0) - ) { - return true; - } - } - } - } - function u(ey, ex) { - var ew; - while ((ew = dn(ex))) { - ex = dJ(ey, ew.find().from.line); - } - return ex; - } - function dZ(eA, ex) { - var ew = aD && ex.markedSpans; - if (ew) { - for (var ez, ey = 0; ey < ew.length; ++ey) { - ez = ew[ey]; - if (!ez.marker.collapsed) { - continue; - } - if (ez.from == null) { - return true; - } - if (ez.marker.replacedWith) { - continue; - } - if (ez.from == 0 && ez.marker.inclusiveLeft && J(eA, ex, ez)) { - return true; - } - } - } - } - function J(eC, ex, ez) { - if (ez.to == null) { - var ew = ez.marker.find().to, - eA = dJ(eC, ew.line); - return J(eC, eA, dE(eA.markedSpans, ez.marker)); - } - if (ez.marker.inclusiveRight && ez.to == ex.text.length) { - return true; - } - for (var eB, ey = 0; ey < ex.markedSpans.length; ++ey) { - eB = ex.markedSpans[ey]; - if ( - eB.marker.collapsed && - !eB.marker.replacedWith && - eB.from == ez.to && - (eB.to == null || eB.to != ez.from) && - (eB.marker.inclusiveLeft || ez.marker.inclusiveRight) && - J(eC, ex, eB) - ) { - return true; - } - } - } - function ep(ew) { - var ey = ew.markedSpans; - if (!ey) { - return; - } - for (var ex = 0; ex < ey.length; ++ex) { - ey[ex].marker.detachLine(ew); - } - ew.markedSpans = null; - } - function ca(ew, ey) { - if (!ey) { - return; - } - for (var ex = 0; ex < ey.length; ++ex) { - ey[ex].marker.attachLine(ew); - } - ew.markedSpans = ey; - } - var cx = (B.LineWidget = function (ew, ez, ex) { - if (ex) { - for (var ey in ex) { - if (ex.hasOwnProperty(ey)) { - this[ey] = ex[ey]; - } - } - } - this.cm = ew; - this.node = ez; - }); - a0(cx); - function E(ew) { - return function () { - var ey = !this.cm.curOp; - if (ey) { - bY(this.cm); - } - try { - var ex = ew.apply(this, arguments); - } finally { - if (ey) { - W(this.cm); - } - } - return ex; - }; - } - cx.prototype.clear = E(function () { - var ex = this.line.widgets, - ez = bc(this.line); - if (ez == null || !ex) { - return; - } - for (var ey = 0; ey < ex.length; ++ey) { - if (ex[ey] == this) { - ex.splice(ey--, 1); - } - } - if (!ex.length) { - this.line.widgets = null; - } - var ew = bb(this.cm, this.line) < this.cm.doc.scrollTop; - eo(this.line, Math.max(0, this.line.height - b6(this))); - if (ew) { - b0(this.cm, 0, -this.height); - } - Q(this.cm, ez, ez + 1); - }); - cx.prototype.changed = E(function () { - var ew = this.height; - this.height = null; - var ex = b6(this) - ew; - if (!ex) { - return; - } - eo(this.line, this.line.height + ex); - var ey = bc(this.line); - Q(this.cm, ey, ey + 1); - }); - function b6(ew) { - if (ew.height != null) { - return ew.height; - } - if (!ew.node.parentNode || ew.node.parentNode.nodeType != 1) { - bf(ew.cm.display.measure, ej('div', [ew.node], null, 'position: relative')); - } - return (ew.height = ew.node.offsetHeight); - } - function a6(ew, eA, ey, ex) { - var ez = new cx(ew, ey, ex); - if (ez.noHScroll) { - ew.display.alignWidgets = true; - } - c9(ew, eA, function (eC) { - var eD = eC.widgets || (eC.widgets = []); - if (ez.insertAt == null) { - eD.push(ez); - } else { - eD.splice(Math.min(eD.length - 1, Math.max(0, ez.insertAt)), 0, ez); - } - ez.line = eC; - if (!dZ(ew.doc, eC) || ez.showIfHidden) { - var eB = bb(ew, eC) < ew.doc.scrollTop; - eo(eC, eC.height + b6(ez)); - if (eB) { - b0(ew, 0, ez.height); - } - } - return true; - }); - return ez; - } - var en = (B.Line = function (ey, ex, ew) { - this.text = ey; - ca(this, ex); - this.height = ew ? ew(this) : 1; - }); - a0(en); - en.prototype.lineNo = function () { - return bc(this); - }; - function c1(ex, eA, ey, ew) { - ex.text = eA; - if (ex.stateAfter) { - ex.stateAfter = null; - } - if (ex.styles) { - ex.styles = null; - } - if (ex.order != null) { - ex.order = null; - } - ep(ex); - ca(ex, ey); - var ez = ew ? ew(ex) : 1; - if (ez != ex.height) { - eo(ex, ez); - } - } - function a1(ew) { - ew.parent = null; - ep(ew); - } - function s(eF, eH, eA, ex, eB, ez) { - var ey = eA.flattenSpans; - if (ey == null) { - ey = eF.options.flattenSpans; - } - var eD = 0, - eC = null; - var eG = new ds(eH, eF.options.tabSize), - ew; - if (eH == '' && eA.blankLine) { - eA.blankLine(ex); - } - while (!eG.eol()) { - if (eG.pos > eF.options.maxHighlightLength) { - ey = false; - if (ez) { - cu(eF, eH, ex, eG.pos); - } - eG.pos = eH.length; - ew = null; - } else { - ew = eA.token(eG, ex); - } - if (eF.options.addModeClass) { - var eI = B.innerMode(eA, ex).mode.name; - if (eI) { - ew = 'm-' + (ew ? eI + ' ' + ew : eI); - } - } - if (!ey || eC != ew) { - if (eD < eG.start) { - eB(eG.start, eC); - } - eD = eG.start; - eC = ew; - } - eG.start = eG.pos; - } - while (eD < eG.pos) { - var eE = Math.min(eG.pos, eD + 50000); - eB(eE, eC); - eD = eE; - } - } - function d4(eC, eE, ew, ez) { - var eD = [eC.state.modeGen]; - s( - eC, - eE.text, - eC.doc.mode, - ew, - function (eF, eG) { - eD.push(eF, eG); - }, - ez - ); - for (var ex = 0; ex < eC.state.overlays.length; ++ex) { - var eA = eC.state.overlays[ex], - eB = 1, - ey = 0; - s(eC, eE.text, eA.mode, true, function (eF, eH) { - var eJ = eB; - while (ey < eF) { - var eG = eD[eB]; - if (eG > eF) { - eD.splice(eB, 1, eF, eD[eB + 1], eG); - } - eB += 2; - ey = Math.min(eF, eG); - } - if (!eH) { - return; - } - if (eA.opaque) { - eD.splice(eJ, eB - eJ, eF, eH); - eB = eJ + 2; - } else { - for (; eJ < eB; eJ += 2) { - var eI = eD[eJ + 1]; - eD[eJ + 1] = eI ? eI + ' ' + eH : eH; - } - } - }); - } - return eD; - } - function cd(ew, ex) { - if (!ex.styles || ex.styles[0] != ew.state.modeGen) { - ex.styles = d4(ew, ex, (ex.stateAfter = cw(ew, bc(ex)))); - } - return ex.styles; - } - function cu(ew, eB, ey, ex) { - var eA = ew.doc.mode; - var ez = new ds(eB, ew.options.tabSize); - ez.start = ez.pos = ex || 0; - if (eB == '' && eA.blankLine) { - eA.blankLine(ey); - } - while (!ez.eol() && ez.pos <= ew.options.maxHighlightLength) { - eA.token(ez, ey); - ez.start = ez.pos; - } - } - var cI = {}, - bn = {}; - function du(ez, ey) { - if (!ez) { - return null; - } - for (;;) { - var ex = ez.match(/(?:^|\s)line-(background-)?(\S+)/); - if (!ex) { - break; - } - ez = ez.slice(0, ex.index) + ez.slice(ex.index + ex[0].length); - var eA = ex[1] ? 'bgClass' : 'textClass'; - if (ey[eA] == null) { - ey[eA] = ex[2]; - } else { - if (!new RegExp('(?:^|s)' + ex[2] + '(?:$|s)').test(ey[eA])) { - ey[eA] += ' ' + ex[2]; - } - } - } - var ew = ey.cm.options.addModeClass ? bn : cI; - return ew[ez] || (ew[ez] = 'cm-' + ez.replace(/ +/g, ' cm-')); - } - function dq(eF, eJ, ew, eI) { - var eG, - eK = eJ, - eB = true; - while ((eG = dn(eK))) { - eK = dJ(eF.doc, eG.find().from.line); - } - var eC = { - pre: ej('pre'), - col: 0, - pos: 0, - measure: null, - measuredSomething: false, - cm: eF, - copyWidgets: eI - }; - do { - if (eK.text) { - eB = false; - } - eC.measure = eK == eJ && ew; - eC.pos = 0; - eC.addToken = eC.measure ? e : p; - if ((cf || b8) && eF.getOption('lineWrapping')) { - eC.addToken = d6(eC.addToken); - } - var eA = aU(eK, eC, cd(eF, eK)); - if (ew && eK == eJ && !eC.measuredSomething) { - ew[0] = eC.pre.appendChild(aS(eF.display.measure)); - eC.measuredSomething = true; - } - if (eA) { - eK = dJ(eF.doc, eA.to.line); - } - } while (eA); - if (ew && !eC.measuredSomething && !ew[0]) { - ew[0] = eC.pre.appendChild(eB ? ej('span', '\u00a0') : aS(eF.display.measure)); - } - if (!eC.pre.firstChild && !dZ(eF.doc, eJ)) { - eC.pre.appendChild(document.createTextNode('\u00a0')); - } - var ex; - if (ew && cA && (ex = a(eK))) { - var ez = ex.length - 1; - if (ex[ez].from == ex[ez].to) { - --ez; - } - var eH = ex[ez], - ey = ex[ez - 1]; - if (eH.from + 1 == eH.to && ey && eH.level < ey.level) { - var eE = ew[eC.pos - 1]; - if (eE) { - eE.parentNode.insertBefore((eE.measureRight = aS(eF.display.measure)), eE.nextSibling); - } - } - } - var eD = eC.textClass ? eC.textClass + ' ' + (eJ.textClass || '') : eJ.textClass; - if (eD) { - eC.pre.className = eD; - } - ah(eF, 'renderLine', eF, eJ, eC.pre); - return eC; - } - function dH(ex) { - var ew = ej('span', '\u2022', 'cm-invalidchar'); - ew.title = '\\u' + ex.charCodeAt(0).toString(16); - return ew; - } - function p(eA, eJ, ew, ez, eK, eI) { - if (!eJ) { - return; - } - var eE = eA.cm.options.specialChars; - if (!eE.test(eJ)) { - eA.col += eJ.length; - var eD = document.createTextNode(eJ); - } else { - var eD = document.createDocumentFragment(), - eG = 0; - while (true) { - eE.lastIndex = eG; - var ex = eE.exec(eJ); - var eC = ex ? ex.index - eG : eJ.length - eG; - if (eC) { - eD.appendChild(document.createTextNode(eJ.slice(eG, eG + eC))); - eA.col += eC; - } - if (!ex) { - break; - } - eG += eC + 1; - if (ex[0] == '\t') { - var eB = eA.cm.options.tabSize, - eF = eB - (eA.col % eB); - eD.appendChild(ej('span', bJ(eF), 'cm-tab')); - eA.col += eF; - } else { - var ey = eA.cm.options.specialCharPlaceholder(ex[0]); - eD.appendChild(ey); - eA.col += 1; - } - } - } - if (ew || ez || eK || eA.measure) { - var eH = ew || ''; - if (ez) { - eH += ez; - } - if (eK) { - eH += eK; - } - var ey = ej('span', [eD], eH); - if (eI) { - ey.title = eI; - } - return eA.pre.appendChild(ey); - } - eA.pre.appendChild(eD); - } - function e(eD, eG, ex, eA, eH) { - var eC = eD.cm.options.lineWrapping; - for (var eB = 0; eB < eG.length; ++eB) { - var ey = eB == 0, - eF = eB + 1; - while (eF < eG.length && dV(eG.charAt(eF))) { - ++eF; - } - var ew = eG.slice(eB, eF); - eB = eF - 1; - if (eB && eC && bu(eG, eB)) { - eD.pre.appendChild(ej('wbr')); - } - var ez = eD.measure[eD.pos]; - var eE = (eD.measure[eD.pos] = p(eD, ew, ex, ey && eA, eB == eG.length - 1 && eH)); - if (ez) { - eE.leftSide = ez.leftSide || ez; - } - if ( - cf && - eC && - ew == ' ' && - eB && - !/\s/.test(eG.charAt(eB - 1)) && - eB < eG.length - 1 && - !/\s/.test(eG.charAt(eB + 1)) - ) { - eE.style.whiteSpace = 'normal'; - } - eD.pos += ew.length; - } - if (eG.length) { - eD.measuredSomething = true; - } - } - function d6(ew) { - function ex(ey) { - var ez = ' '; - for (var eA = 0; eA < ey.length - 2; ++eA) { - ez += eA % 2 ? ' ' : '\u00a0'; - } - ez += ' '; - return ez; - } - return function (ez, eD, eA, ey, eC, eB) { - return ew(ez, eD.replace(/ {3,}/g, ex), eA, ey, eC, eB); - }; - } - function M(ex, eA, ew, ez) { - var eB = !ez && ew.replacedWith; - if (eB) { - if (ex.copyWidgets) { - eB = eB.cloneNode(true); - } - ex.pre.appendChild(eB); - if (ex.measure) { - if (eA) { - ex.measure[ex.pos] = eB; - } else { - var ey = aS(ex.cm.display.measure); - if (ew.type == 'bookmark' && !ew.insertLeft) { - ex.measure[ex.pos] = ex.pre.appendChild(ey); - } else { - if (ex.measure[ex.pos]) { - return; - } else { - ex.measure[ex.pos] = ex.pre.insertBefore(ey, eB); - } - } - } - ex.measuredSomething = true; - } - } - ex.pos += eA; - } - function aU(eF, eL, eE) { - var eB = eF.markedSpans, - eD = eF.text, - eJ = 0; - if (!eB) { - for (var eO = 1; eO < eE.length; eO += 2) { - eL.addToken(eL, eD.slice(eJ, (eJ = eE[eO])), du(eE[eO + 1], eL)); - } - return; - } - var eP = eD.length, - eA = 0, - eO = 1, - eH = '', - eQ; - var eS = 0, - ew, - eR, - eI, - eT, - ey; - for (;;) { - if (eS == eA) { - ew = eR = eI = eT = ''; - ey = null; - eS = Infinity; - var eC = []; - for (var eM = 0; eM < eB.length; ++eM) { - var eN = eB[eM], - eK = eN.marker; - if (eN.from <= eA && (eN.to == null || eN.to > eA)) { - if (eN.to != null && eS > eN.to) { - eS = eN.to; - eR = ''; - } - if (eK.className) { - ew += ' ' + eK.className; - } - if (eK.startStyle && eN.from == eA) { - eI += ' ' + eK.startStyle; - } - if (eK.endStyle && eN.to == eS) { - eR += ' ' + eK.endStyle; - } - if (eK.title && !eT) { - eT = eK.title; - } - if (eK.collapsed && (!ey || cF(ey.marker, eK) < 0)) { - ey = eN; - } - } else { - if (eN.from > eA && eS > eN.from) { - eS = eN.from; - } - } - if (eK.type == 'bookmark' && eN.from == eA && eK.replacedWith) { - eC.push(eK); - } - } - if (ey && (ey.from || 0) == eA) { - M(eL, (ey.to == null ? eP : ey.to) - eA, ey.marker, ey.from == null); - if (ey.to == null) { - return ey.marker.find(); - } - } - if (!ey && eC.length) { - for (var eM = 0; eM < eC.length; ++eM) { - M(eL, 0, eC[eM]); - } - } - } - if (eA >= eP) { - break; - } - var eG = Math.min(eP, eS); - while (true) { - if (eH) { - var ex = eA + eH.length; - if (!ey) { - var ez = ex > eG ? eH.slice(0, eG - eA) : eH; - eL.addToken(eL, ez, eQ ? eQ + ew : ew, eI, eA + ez.length == eS ? eR : '', eT); - } - if (ex >= eG) { - eH = eH.slice(eG - eA); - eA = eG; - break; - } - eA = ex; - eI = ''; - } - eH = eD.slice(eJ, (eJ = eE[eO++])); - eQ = du(eE[eO++], eL); - } - } - } - function d2(eN, eE, eA, eI, eC) { - function ez(eO) { - return eA ? eA[eO] : null; - } - function eD(eO, eQ, eP) { - c1(eO, eQ, eP, eC); - O(eO, 'change', eO, eE); - } - var eJ = eE.from, - ex = eE.to, - eG = eE.text; - var eF = dJ(eN, eJ.line), - ew = dJ(eN, ex.line); - var ey = d7(eG), - eL = ez(eG.length - 1), - eH = ex.line - eJ.line; - if (eJ.ch == 0 && ex.ch == 0 && ey == '' && (!eN.cm || eN.cm.options.wholeLineUpdateBefore)) { - for (var eK = 0, eM = eG.length - 1, eB = []; eK < eM; ++eK) { - eB.push(new en(eG[eK], ez(eK), eC)); - } - eD(ew, ew.text, eL); - if (eH) { - eN.remove(eJ.line, eH); - } - if (eB.length) { - eN.insert(eJ.line, eB); - } - } else { - if (eF == ew) { - if (eG.length == 1) { - eD(eF, eF.text.slice(0, eJ.ch) + ey + eF.text.slice(ex.ch), eL); - } else { - for (var eB = [], eK = 1, eM = eG.length - 1; eK < eM; ++eK) { - eB.push(new en(eG[eK], ez(eK), eC)); - } - eB.push(new en(ey + eF.text.slice(ex.ch), eL, eC)); - eD(eF, eF.text.slice(0, eJ.ch) + eG[0], ez(0)); - eN.insert(eJ.line + 1, eB); - } - } else { - if (eG.length == 1) { - eD(eF, eF.text.slice(0, eJ.ch) + eG[0] + ew.text.slice(ex.ch), ez(0)); - eN.remove(eJ.line + 1, eH); - } else { - eD(eF, eF.text.slice(0, eJ.ch) + eG[0], ez(0)); - eD(ew, ey + ew.text.slice(ex.ch), eL); - for (var eK = 1, eM = eG.length - 1, eB = []; eK < eM; ++eK) { - eB.push(new en(eG[eK], ez(eK), eC)); - } - if (eH > 1) { - eN.remove(eJ.line + 1, eH - 1); - } - eN.insert(eJ.line + 1, eB); - } - } - } - O(eN, 'change', eN, eE); - bh(eN, eI.anchor, eI.head, null, true); - } - function dx(ex) { - this.lines = ex; - this.parent = null; - for (var ey = 0, ez = ex.length, ew = 0; ey < ez; ++ey) { - ex[ey].parent = this; - ew += ex[ey].height; - } - this.height = ew; - } - dx.prototype = { - chunkSize: function () { - return this.lines.length; - }, - removeInner: function (ew, eA) { - for (var ey = ew, ez = ew + eA; ey < ez; ++ey) { - var ex = this.lines[ey]; - this.height -= ex.height; - a1(ex); - O(ex, 'delete'); - } - this.lines.splice(ew, eA); - }, - collapse: function (ew) { - ew.splice.apply(ew, [ew.length, 0].concat(this.lines)); - }, - insertInner: function (ex, ey, ew) { - this.height += ew; - this.lines = this.lines.slice(0, ex).concat(ey).concat(this.lines.slice(ex)); - for (var ez = 0, eA = ey.length; ez < eA; ++ez) { - ey[ez].parent = this; - } - }, - iterN: function (ew, ez, ey) { - for (var ex = ew + ez; ew < ex; ++ew) { - if (ey(this.lines[ew])) { - return true; - } - } - } - }; - function d0(ez) { - this.children = ez; - var ey = 0, - ew = 0; - for (var ex = 0, eB = ez.length; ex < eB; ++ex) { - var eA = ez[ex]; - ey += eA.chunkSize(); - ew += eA.height; - eA.parent = this; - } - this.size = ey; - this.height = ew; - this.parent = null; - } - d0.prototype = { - chunkSize: function () { - return this.size; - }, - removeInner: function (ew, eD) { - this.size -= eD; - for (var ey = 0; ey < this.children.length; ++ey) { - var eC = this.children[ey], - eA = eC.chunkSize(); - if (ew < eA) { - var ez = Math.min(eD, eA - ew), - eB = eC.height; - eC.removeInner(ew, ez); - this.height -= eB - eC.height; - if (eA == ez) { - this.children.splice(ey--, 1); - eC.parent = null; - } - if ((eD -= ez) == 0) { - break; - } - ew = 0; - } else { - ew -= eA; - } - } - if (this.size - eD < 25) { - var ex = []; - this.collapse(ex); - this.children = [new dx(ex)]; - this.children[0].parent = this; - } - }, - collapse: function (ew) { - for (var ex = 0, ey = this.children.length; ex < ey; ++ex) { - this.children[ex].collapse(ew); - } - }, - insertInner: function (ex, eE, eD) { - this.size += eE.length; - this.height += eD; - for (var ey = 0, eA = this.children.length; ey < eA; ++ey) { - var ew = this.children[ey], - eB = ew.chunkSize(); - if (ex <= eB) { - ew.insertInner(ex, eE, eD); - if (ew.lines && ew.lines.length > 50) { - while (ew.lines.length > 50) { - var ez = ew.lines.splice(ew.lines.length - 25, 25); - var eC = new dx(ez); - ew.height -= eC.height; - this.children.splice(ey + 1, 0, eC); - eC.parent = this; - } - this.maybeSpill(); - } - break; - } - ex -= eB; - } - }, - maybeSpill: function () { - if (this.children.length <= 10) { - return; - } - var ez = this; - do { - var ex = ez.children.splice(ez.children.length - 5, 5); - var ey = new d0(ex); - if (!ez.parent) { - var eA = new d0(ez.children); - eA.parent = ez; - ez.children = [eA, ey]; - ez = eA; - } else { - ez.size -= ey.size; - ez.height -= ey.height; - var ew = cl(ez.parent.children, ez); - ez.parent.children.splice(ew + 1, 0, ey); - } - ey.parent = ez.parent; - } while (ez.children.length > 10); - ez.parent.maybeSpill(); - }, - iterN: function (ew, eD, eC) { - for (var ex = 0, eA = this.children.length; ex < eA; ++ex) { - var eB = this.children[ex], - ez = eB.chunkSize(); - if (ew < ez) { - var ey = Math.min(eD, ez - ew); - if (eB.iterN(ew, ey, eC)) { - return true; - } - if ((eD -= ey) == 0) { - break; - } - ew = 0; - } else { - ew -= ez; - } - } - } - }; - var bK = 0; - var aa = (B.Doc = function (ey, ex, ew) { - if (!(this instanceof aa)) { - return new aa(ey, ex, ew); - } - if (ew == null) { - ew = 0; - } - d0.call(this, [new dx([new en('', null)])]); - this.first = ew; - this.scrollTop = this.scrollLeft = 0; - this.cantEdit = false; - this.history = ac(); - this.cleanGeneration = 1; - this.frontier = ew; - var ez = K(ew, 0); - this.sel = { - from: ez, - to: ez, - head: ez, - anchor: ez, - shift: false, - extend: false, - goalColumn: null - }; - this.id = ++bK; - this.modeOption = ex; - if (typeof ey == 'string') { - ey = ay(ey); - } - d2(this, {from: ez, to: ez, text: ey}, null, {head: ez, anchor: ez}); - }); - aa.prototype = bD(d0.prototype, { - constructor: aa, - iter: function (ey, ex, ew) { - if (ew) { - this.iterN(ey - this.first, ex - ey, ew); - } else { - this.iterN(this.first, this.first + this.size, ey); - } - }, - insert: function (ex, ey) { - var ew = 0; - for (var ez = 0, eA = ey.length; ez < eA; ++ez) { - ew += ey[ez].height; - } - this.insertInner(ex - this.first, ey, ew); - }, - remove: function (ew, ex) { - this.removeInner(ew - this.first, ex); - }, - getValue: function (ex) { - var ew = aA(this, this.first, this.first + this.size); - if (ex === false) { - return ew; - } - return ew.join(ex || '\n'); - }, - setValue: function (ex) { - var ey = K(this.first, 0), - ew = this.first + this.size - 1; - aL( - this, - {from: ey, to: K(ew, dJ(this, ew).text.length), text: ay(ex), origin: 'setValue'}, - {head: ey, anchor: ey}, - true - ); - }, - replaceRange: function (ex, ez, ey, ew) { - ez = d9(this, ez); - ey = ey ? d9(this, ey) : ez; - az(this, ex, ez, ey, ew); - }, - getRange: function (ez, ey, ex) { - var ew = el(this, d9(this, ez), d9(this, ey)); - if (ex === false) { - return ew; - } - return ew.join(ex || '\n'); - }, - getLine: function (ex) { - var ew = this.getLineHandle(ex); - return ew && ew.text; - }, - setLine: function (ew, ex) { - if (bt(this, ew)) { - az(this, ex, K(ew, 0), d9(this, K(ew))); - } - }, - removeLine: function (ew) { - if (ew) { - az(this, '', d9(this, K(ew - 1)), d9(this, K(ew))); - } else { - az(this, '', K(0, 0), d9(this, K(1, 0))); - } - }, - getLineHandle: function (ew) { - if (bt(this, ew)) { - return dJ(this, ew); - } - }, - getLineNumber: function (ew) { - return bc(ew); - }, - getLineHandleVisualStart: function (ew) { - if (typeof ew == 'number') { - ew = dJ(this, ew); - } - return u(this, ew); - }, - lineCount: function () { - return this.size; - }, - firstLine: function () { - return this.first; - }, - lastLine: function () { - return this.first + this.size - 1; - }, - clipPos: function (ew) { - return d9(this, ew); - }, - getCursor: function (ey) { - var ew = this.sel, - ex; - if (ey == null || ey == 'head') { - ex = ew.head; - } else { - if (ey == 'anchor') { - ex = ew.anchor; - } else { - if (ey == 'end' || ey === false) { - ex = ew.to; - } else { - ex = ew.from; - } - } - } - return bC(ex); - }, - somethingSelected: function () { - return !d8(this.sel.head, this.sel.anchor); - }, - setCursor: d3(function (ew, ex, ez) { - var ey = d9(this, typeof ew == 'number' ? K(ew, ex || 0) : ew); - if (ez) { - eg(this, ey); - } else { - bh(this, ey, ey); - } - }), - setSelection: d3(function (ex, ey, ew) { - bh(this, d9(this, ex), d9(this, ey || ex), ew); - }), - extendSelection: d3(function (ey, ex, ew) { - eg(this, d9(this, ey), ex && d9(this, ex), ew); - }), - getSelection: function (ew) { - return this.getRange(this.sel.from, this.sel.to, ew); - }, - replaceSelection: function (ex, ey, ew) { - aL(this, {from: this.sel.from, to: this.sel.to, text: ay(ex), origin: ew}, ey || 'around'); - }, - undo: d3(function () { - bs(this, 'undo'); - }), - redo: d3(function () { - bs(this, 'redo'); - }), - setExtending: function (ew) { - this.sel.extend = ew; - }, - historySize: function () { - var ew = this.history; - return {undo: ew.done.length, redo: ew.undone.length}; - }, - clearHistory: function () { - this.history = ac(this.history.maxGeneration); - }, - markClean: function () { - this.cleanGeneration = this.changeGeneration(true); - }, - changeGeneration: function (ew) { - if (ew) { - this.history.lastOp = this.history.lastOrigin = null; - } - return this.history.generation; - }, - isClean: function (ew) { - return this.history.generation == (ew || this.cleanGeneration); - }, - getHistory: function () { - return {done: bd(this.history.done), undone: bd(this.history.undone)}; - }, - setHistory: function (ex) { - var ew = (this.history = ac(this.history.maxGeneration)); - ew.done = ex.done.slice(0); - ew.undone = ex.undone.slice(0); - }, - markText: function (ey, ex, ew) { - return dh(this, d9(this, ey), d9(this, ex), ew, 'range'); - }, - setBookmark: function (ey, ew) { - var ex = { - replacedWith: ew && (ew.nodeType == null ? ew.widget : ew), - insertLeft: ew && ew.insertLeft, - clearWhenEmpty: false - }; - ey = d9(this, ey); - return dh(this, ey, ey, ex, 'bookmark'); - }, - findMarksAt: function (eA) { - eA = d9(this, eA); - var ez = [], - ex = dJ(this, eA.line).markedSpans; - if (ex) { - for (var ew = 0; ew < ex.length; ++ew) { - var ey = ex[ew]; - if ((ey.from == null || ey.from <= eA.ch) && (ey.to == null || ey.to >= eA.ch)) { - ez.push(ey.marker.parent || ey.marker); - } - } - } - return ez; - }, - getAllMarks: function () { - var ew = []; - this.iter(function (ey) { - var ex = ey.markedSpans; - if (ex) { - for (var ez = 0; ez < ex.length; ++ez) { - if (ex[ez].from != null) { - ew.push(ex[ez].marker); - } - } - } - }); - return ew; - }, - posFromIndex: function (ex) { - var ew, - ey = this.first; - this.iter(function (ez) { - var eA = ez.text.length + 1; - if (eA > ex) { - ew = ex; - return true; - } - ex -= eA; - ++ey; - }); - return d9(this, K(ey, ew)); - }, - indexFromPos: function (ex) { - ex = d9(this, ex); - var ew = ex.ch; - if (ex.line < this.first || ex.ch < 0) { - return 0; - } - this.iter(this.first, ex.line, function (ey) { - ew += ey.text.length + 1; - }); - return ew; - }, - copy: function (ew) { - var ex = new aa(aA(this, this.first, this.first + this.size), this.modeOption, this.first); - ex.scrollTop = this.scrollTop; - ex.scrollLeft = this.scrollLeft; - ex.sel = { - from: this.sel.from, - to: this.sel.to, - head: this.sel.head, - anchor: this.sel.anchor, - shift: this.sel.shift, - extend: false, - goalColumn: this.sel.goalColumn - }; - if (ew) { - ex.history.undoDepth = this.history.undoDepth; - ex.setHistory(this.getHistory()); - } - return ex; - }, - linkedDoc: function (ew) { - if (!ew) { - ew = {}; - } - var ez = this.first, - ey = this.first + this.size; - if (ew.from != null && ew.from > ez) { - ez = ew.from; - } - if (ew.to != null && ew.to < ey) { - ey = ew.to; - } - var ex = new aa(aA(this, ez, ey), ew.mode || this.modeOption, ez); - if (ew.sharedHist) { - ex.history = this.history; - } - (this.linked || (this.linked = [])).push({doc: ex, sharedHist: ew.sharedHist}); - ex.linked = [{doc: this, isParent: true, sharedHist: ew.sharedHist}]; - return ex; - }, - unlinkDoc: function (ex) { - if (ex instanceof B) { - ex = ex.doc; - } - if (this.linked) { - for (var ey = 0; ey < this.linked.length; ++ey) { - var ez = this.linked[ey]; - if (ez.doc != ex) { - continue; - } - this.linked.splice(ey, 1); - ex.unlinkDoc(this); - break; - } - } - if (ex.history == this.history) { - var ew = [ex.id]; - cN( - ex, - function (eA) { - ew.push(eA.id); - }, - true - ); - ex.history = ac(); - ex.history.done = bd(this.history.done, ew); - ex.history.undone = bd(this.history.undone, ew); - } - }, - iterLinkedDocs: function (ew) { - cN(this, ew); - }, - getMode: function () { - return this.mode; - }, - getEditor: function () { - return this.cm; - } - }); - aa.prototype.eachLine = aa.prototype.iter; - var d = 'iter insert remove copy getEditor'.split(' '); - for (var a9 in aa.prototype) { - if (aa.prototype.hasOwnProperty(a9) && cl(d, a9) < 0) { - B.prototype[a9] = (function (ew) { - return function () { - return ew.apply(this.doc, arguments); - }; - })(aa.prototype[a9]); - } - } - a0(aa); - function cN(ez, ey, ex) { - function ew(eF, eD, eB) { - if (eF.linked) { - for (var eC = 0; eC < eF.linked.length; ++eC) { - var eA = eF.linked[eC]; - if (eA.doc == eD) { - continue; - } - var eE = eB && eA.sharedHist; - if (ex && !eE) { - continue; - } - ey(eA.doc, eE); - ew(eA.doc, eF, eE); - } - } - } - ew(ez, null, true); - } - function cQ(ew, ex) { - if (ex.cm) { - throw new Error('This document is already in use.'); - } - ew.doc = ex; - ex.cm = ew; - L(ew); - aW(ew); - if (!ew.options.lineWrapping) { - em(ew); - } - ew.options.mode = ex.modeOption; - Q(ew); - } - function dJ(ew, eA) { - eA -= ew.first; - while (!ew.lines) { - for (var ex = 0; ; ++ex) { - var ez = ew.children[ex], - ey = ez.chunkSize(); - if (eA < ey) { - ew = ez; - break; - } - eA -= ey; - } - } - return ew.lines[eA]; - } - function el(ey, eA, ew) { - var ex = [], - ez = eA.line; - ey.iter(eA.line, ew.line + 1, function (eB) { - var eC = eB.text; - if (ez == ew.line) { - eC = eC.slice(0, ew.ch); - } - if (ez == eA.line) { - eC = eC.slice(eA.ch); - } - ex.push(eC); - ++ez; - }); - return ex; - } - function aA(ex, ez, ey) { - var ew = []; - ex.iter(ez, ey, function (eA) { - ew.push(eA.text); - }); - return ew; - } - function eo(ex, ew) { - var ey = ew - ex.height; - for (var ez = ex; ez; ez = ez.parent) { - ez.height += ey; - } - } - function bc(ew) { - if (ew.parent == null) { - return null; - } - var eA = ew.parent, - ez = cl(eA.lines, ew); - for (var ex = eA.parent; ex; eA = ex, ex = ex.parent) { - for (var ey = 0; ; ++ey) { - if (ex.children[ey] == eA) { - break; - } - ez += ex.children[ey].chunkSize(); - } - } - return ez + eA.first; - } - function a5(eC, eA) { - var ey = eC.first; - outer: do { - for (var ez = 0, eB = eC.children.length; ez < eB; ++ez) { - var ex = eC.children[ez], - ew = ex.height; - if (eA < ew) { - eC = ex; - continue outer; - } - eA -= ew; - ey += ex.chunkSize(); - } - return ey; - } while (!eC.lines); - for (var ez = 0, eB = eC.lines.length; ez < eB; ++ez) { - var eE = eC.lines[ez], - eD = eE.height; - if (eA < eD) { - break; - } - eA -= eD; - } - return ey + ez; - } - function bb(ew, ez) { - ez = u(ew.doc, ez); - var eB = 0, - ey = ez.parent; - for (var eA = 0; eA < ey.lines.length; ++eA) { - var ex = ey.lines[eA]; - if (ex == ez) { - break; - } else { - eB += ex.height; - } - } - for (var eC = ey.parent; eC; ey = eC, eC = ey.parent) { - for (var eA = 0; eA < eC.children.length; ++eA) { - var eD = eC.children[eA]; - if (eD == ey) { - break; - } else { - eB += eD.height; - } - } - } - return eB; - } - function a(ex) { - var ew = ex.order; - if (ew == null) { - ew = ex.order = aM(ex.text); - } - return ew; - } - function ac(ew) { - return { - done: [], - undone: [], - undoDepth: Infinity, - lastTime: 0, - lastOp: null, - lastOrigin: null, - generation: ew || 1, - maxGeneration: ew || 1 - }; - } - function bl(ex, eB, eA, ez) { - var ew = eB['spans_' + ex.id], - ey = 0; - ex.iter(Math.max(ex.first, eA), Math.min(ex.first + ex.size, ez), function (eC) { - if (eC.markedSpans) { - (ew || (ew = eB['spans_' + ex.id] = {}))[ey] = eC.markedSpans; - } - ++ey; - }); - } - function cs(ew, ez) { - var ey = {line: ez.from.line, ch: ez.from.ch}; - var ex = {from: ey, to: b5(ez), text: el(ew, ez.from, ez.to)}; - bl(ew, ex, ez.from.line, ez.to.line + 1); - cN( - ew, - function (eA) { - bl(eA, ex, ez.from.line, ez.to.line + 1); - }, - true - ); - return ex; - } - function di(eB, eD, eA, ew) { - var ez = eB.history; - ez.undone.length = 0; - var ey = +new Date(), - eC = d7(ez.done); - if ( - eC && - (ez.lastOp == ew || - (ez.lastOrigin == eD.origin && - eD.origin && - ((eD.origin.charAt(0) == '+' && - eB.cm && - ez.lastTime > ey - eB.cm.options.historyEventDelay) || - eD.origin.charAt(0) == '*'))) - ) { - var ex = d7(eC.changes); - if (d8(eD.from, eD.to) && d8(eD.from, ex.to)) { - ex.to = b5(eD); - } else { - eC.changes.push(cs(eB, eD)); - } - eC.anchorAfter = eA.anchor; - eC.headAfter = eA.head; - } else { - eC = { - changes: [cs(eB, eD)], - generation: ez.generation, - anchorBefore: eB.sel.anchor, - headBefore: eB.sel.head, - anchorAfter: eA.anchor, - headAfter: eA.head - }; - ez.done.push(eC); - while (ez.done.length > ez.undoDepth) { - ez.done.shift(); - } - } - ez.generation = ++ez.maxGeneration; - ez.lastTime = ey; - ez.lastOp = ew; - ez.lastOrigin = eD.origin; - } - function aP(ey) { - if (!ey) { - return null; - } - for (var ex = 0, ew; ex < ey.length; ++ex) { - if (ey[ex].marker.explicitlyCleared) { - if (!ew) { - ew = ey.slice(0, ex); - } - } else { - if (ew) { - ew.push(ey[ex]); - } - } - } - return !ew ? ey : ew.length ? ew : null; - } - function br(ez, eA) { - var ey = eA['spans_' + ez.id]; - if (!ey) { - return null; - } - for (var ex = 0, ew = []; ex < eA.text.length; ++ex) { - ew.push(aP(ey[ex])); - } - return ew; - } - function bd(eG, ez) { - for (var eC = 0, ex = []; eC < eG.length; ++eC) { - var ey = eG[eC], - eE = ey.changes, - eF = []; - ex.push({ - changes: eF, - anchorBefore: ey.anchorBefore, - headBefore: ey.headBefore, - anchorAfter: ey.anchorAfter, - headAfter: ey.headAfter - }); - for (var eB = 0; eB < eE.length; ++eB) { - var eD = eE[eB], - eA; - eF.push({from: eD.from, to: eD.to, text: eD.text}); - if (ez) { - for (var ew in eD) { - if ((eA = ew.match(/^spans_(\d+)$/))) { - if (cl(ez, Number(eA[1])) > -1) { - d7(eF)[ew] = eD[ew]; - delete eD[ew]; - } - } - } - } - } - } - return ex; - } - function dv(ez, ey, ex, ew) { - if (ex < ez.line) { - ez.line += ew; - } else { - if (ey < ez.line) { - ez.line = ey; - ez.ch = 0; - } - } - } - function dM(ez, eB, eC, eD) { - for (var ey = 0; ey < ez.length; ++ey) { - var ew = ez[ey], - eA = true; - for (var ex = 0; ex < ew.changes.length; ++ex) { - var eE = ew.changes[ex]; - if (!ew.copied) { - eE.from = bC(eE.from); - eE.to = bC(eE.to); - } - if (eC < eE.from.line) { - eE.from.line += eD; - eE.to.line += eD; - } else { - if (eB <= eE.to.line) { - eA = false; - break; - } - } - } - if (!ew.copied) { - ew.anchorBefore = bC(ew.anchorBefore); - ew.headBefore = bC(ew.headBefore); - ew.anchorAfter = bC(ew.anchorAfter); - ew.readAfter = bC(ew.headAfter); - ew.copied = true; - } - if (!eA) { - ez.splice(0, ey + 1); - ey = 0; - } else { - dv(ew.anchorBefore); - dv(ew.headBefore); - dv(ew.anchorAfter); - dv(ew.headAfter); - } - } - } - function cz(ex, eA) { - var ez = eA.from.line, - ey = eA.to.line, - ew = eA.text.length - (ey - ez) - 1; - dM(ex.done, ez, ey, ew); - dM(ex.undone, ez, ey, ew); - } - function dr() { - c2(this); - } - function Y(ew) { - if (!ew.stop) { - ew.stop = dr; - } - return ew; - } - function bV(ew) { - if (ew.preventDefault) { - ew.preventDefault(); - } else { - ew.returnValue = false; - } - } - function cp(ew) { - if (ew.stopPropagation) { - ew.stopPropagation(); - } else { - ew.cancelBubble = true; - } - } - function ba(ew) { - return ew.defaultPrevented != null ? ew.defaultPrevented : ew.returnValue == false; - } - function c2(ew) { - bV(ew); - cp(ew); - } - B.e_stop = c2; - B.e_preventDefault = bV; - B.e_stopPropagation = cp; - function D(ew) { - return ew.target || ew.srcElement; - } - function eb(ex) { - var ew = ex.which; - if (ew == null) { - if (ex.button & 1) { - ew = 1; - } else { - if (ex.button & 2) { - ew = 3; - } else { - if (ex.button & 4) { - ew = 2; - } - } - } - } - if (bq && ex.ctrlKey && ew == 1) { - ew = 3; - } - return ew; - } - function bk(ez, ex, ey) { - if (ez.addEventListener) { - ez.addEventListener(ex, ey, false); - } else { - if (ez.attachEvent) { - ez.attachEvent('on' + ex, ey); - } else { - var eA = ez._handlers || (ez._handlers = {}); - var ew = eA[ex] || (eA[ex] = []); - ew.push(ey); - } - } - } - function cT(eA, ey, ez) { - if (eA.removeEventListener) { - eA.removeEventListener(ey, ez, false); - } else { - if (eA.detachEvent) { - eA.detachEvent('on' + ey, ez); - } else { - var ew = eA._handlers && eA._handlers[ey]; - if (!ew) { - return; - } - for (var ex = 0; ex < ew.length; ++ex) { - if (ew[ex] == ez) { - ew.splice(ex, 1); - break; - } - } - } - } - } - function ah(eA, ez) { - var ew = eA._handlers && eA._handlers[ez]; - if (!ew) { - return; - } - var ex = Array.prototype.slice.call(arguments, 2); - for (var ey = 0; ey < ew.length; ++ey) { - ew[ey].apply(null, ex); - } - } - var aT, - bL = 0; - function O(eB, eA) { - var ew = eB._handlers && eB._handlers[eA]; - if (!ew) { - return; - } - var ey = Array.prototype.slice.call(arguments, 2); - if (!aT) { - ++bL; - aT = []; - setTimeout(da, 0); - } - function ex(eC) { - return function () { - eC.apply(null, ey); - }; - } - for (var ez = 0; ez < ew.length; ++ez) { - aT.push(ex(ew[ez])); - } - } - function ar(ew, ey, ex) { - ah(ew, ex || ey.type, ew, ey); - return ba(ey) || ey.codemirrorIgnore; - } - function da() { - --bL; - var ew = aT; - aT = null; - for (var ex = 0; ex < ew.length; ++ex) { - ew[ex](); - } - } - function dP(ey, ex) { - var ew = ey._handlers && ey._handlers[ex]; - return ew && ew.length > 0; - } - B.on = bk; - B.off = cT; - B.signal = ah; - function a0(ew) { - ew.prototype.on = function (ex, ey) { - bk(this, ex, ey); - }; - ew.prototype.off = function (ex, ey) { - cT(this, ex, ey); - }; - } - var aO = 30; - var bv = (B.Pass = { - toString: function () { - return 'CodeMirror.Pass'; - } - }); - function ev() { - this.id = null; - } - ev.prototype = { - set: function (ew, ex) { - clearTimeout(this.id); - this.id = setTimeout(ex, ew); - } - }; - function bg(ey, ew, eA, eB, ex) { - if (ew == null) { - ew = ey.search(/[^\s\u00a0]/); - if (ew == -1) { - ew = ey.length; - } - } - for (var ez = eB || 0, eC = ex || 0; ez < ew; ++ez) { - if (ey.charAt(ez) == '\t') { - eC += eA - (eC % eA); - } else { - ++eC; - } - } - return eC; - } - B.countColumn = bg; - var ax = ['']; - function bJ(ew) { - while (ax.length <= ew) { - ax.push(d7(ax) + ' '); - } - return ax[ew]; - } - function d7(ew) { - return ew[ew.length - 1]; - } - function cC(ex) { - if (dy) { - ex.selectionStart = 0; - ex.selectionEnd = ex.value.length; - } else { - try { - ex.select(); - } catch (ew) {} - } - } - function cl(ez, ew) { - if (ez.indexOf) { - return ez.indexOf(ew); - } - for (var ex = 0, ey = ez.length; ex < ey; ++ex) { - if (ez[ex] == ew) { - return ex; - } - } - return -1; - } - function bD(ez, ex) { - function ew() {} - ew.prototype = ez; - var ey = new ew(); - if (ex) { - am(ex, ey); - } - return ey; - } - function am(ex, ew) { - if (!ew) { - ew = {}; - } - for (var ey in ex) { - if (ex.hasOwnProperty(ey)) { - ew[ey] = ex[ey]; - } - } - return ew; - } - function U(ey) { - for (var ew = [], ex = 0; ex < ey; ++ex) { - ew.push(undefined); - } - return ew; - } - function bO(ex) { - var ew = Array.prototype.slice.call(arguments, 1); - return function () { - return ex.apply(null, ew); - }; - } - var aI = /[\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/; - function bR(ew) { - return /\w/.test(ew) || (ew > '\x80' && (ew.toUpperCase() != ew.toLowerCase() || aI.test(ew))); - } - function dt(ew) { - for (var ex in ew) { - if (ew.hasOwnProperty(ex) && ew[ex]) { - return false; - } - } - return true; - } - var dl = - /[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/; - function dV(ew) { - return ew.charCodeAt(0) >= 768 && dl.test(ew); - } - function ej(ew, eA, ez, ey) { - var eB = document.createElement(ew); - if (ez) { - eB.className = ez; - } - if (ey) { - eB.style.cssText = ey; - } - if (typeof eA == 'string') { - l(eB, eA); - } else { - if (eA) { - for (var ex = 0; ex < eA.length; ++ex) { - eB.appendChild(eA[ex]); - } - } - } - return eB; - } - function cK(ex) { - for (var ew = ex.childNodes.length; ew > 0; --ew) { - ex.removeChild(ex.firstChild); - } - return ex; - } - function bf(ew, ex) { - return cK(ew).appendChild(ex); - } - function l(ew, ex) { - if (bE) { - ew.innerHTML = ''; - ew.appendChild(document.createTextNode(ex)); - } else { - ew.textContent = ex; - } - } - function an(ew) { - return ew.getBoundingClientRect(); - } - B.replaceGetRect = function (ew) { - an = ew; - }; - var dm = (function () { - if (bE) { - return false; - } - var ew = ej('div'); - return 'draggable' in ew || 'dragDrop' in ew; - })(); - function bu() { - return false; - } - if (bI) { - bu = function (ex, ew) { - return ex.charCodeAt(ew - 1) == 36 && ex.charCodeAt(ew) == 39; - }; - } else { - if (ag && !/Version\/([6-9]|\d\d)\b/.test(navigator.userAgent)) { - bu = function (ex, ew) { - return /\-[^ \-?]|\?[^ !\'\"\),.\-\/:;\?\]\}]/.test(ex.slice(ew - 1, ew + 1)); - }; - } else { - if (b8 && /Chrome\/(?:29|[3-9]\d|\d\d\d)\./.test(navigator.userAgent)) { - bu = function (ey, ew) { - var ex = ey.charCodeAt(ew - 1); - return ex >= 8208 && ex <= 8212; - }; - } else { - if (b8) { - bu = function (ex, ew) { - if (ew > 1 && ex.charCodeAt(ew - 1) == 45) { - if (/\w/.test(ex.charAt(ew - 2)) && /[^\-?\.]/.test(ex.charAt(ew))) { - return true; - } - if (ew > 2 && /[\d\.,]/.test(ex.charAt(ew - 2)) && /[\d\.,]/.test(ex.charAt(ew))) { - return false; - } - } - return /[~!#%&*)=+}\]\\|\"\.>,:;][({[<]|-[^\-?\.\u2010-\u201f\u2026]|\?[\w~`@#$%\^&*(_=+{[|><]|\u2026[\w~`@#$%\^&*(_=+{[><]/.test( - ex.slice(ew - 1, ew + 1) - ); - }; - } - } - } - } - var c6; - function i(ew) { - if (c6 != null) { - return c6; - } - var ex = ej('div', null, null, 'width: 50px; height: 50px; overflow-x: scroll'); - bf(ew, ex); - if (ex.offsetWidth) { - c6 = ex.offsetHeight - ex.clientHeight; - } - return c6 || 0; - } - var ea; - function aS(ew) { - if (ea == null) { - var ex = ej('span', '\u200b'); - bf(ew, ej('span', [ex, document.createTextNode('x')])); - if (ew.firstChild.offsetHeight != 0) { - ea = ex.offsetWidth <= 1 && ex.offsetHeight > 2 && !bF; - } - } - if (ea) { - return ej('span', '\u200b'); - } else { - return ej('span', '\u00a0', null, 'display: inline-block; width: 1px; margin-right: -1px'); - } - } - var ay = - '\n\nb'.split(/\n/).length != 3 - ? function (eB) { - var eC = 0, - ew = [], - eA = eB.length; - while (eC <= eA) { - var ez = eB.indexOf('\n', eC); - if (ez == -1) { - ez = eB.length; - } - var ey = eB.slice(eC, eB.charAt(ez - 1) == '\r' ? ez - 1 : ez); - var ex = ey.indexOf('\r'); - if (ex != -1) { - ew.push(ey.slice(0, ex)); - eC += ex + 1; - } else { - ew.push(ey); - eC = ez + 1; - } - } - return ew; - } - : function (ew) { - return ew.split(/\r\n?|\n/); - }; - B.splitLines = ay; - var aX = window.getSelection - ? function (ex) { - try { - return ex.selectionStart != ex.selectionEnd; - } catch (ew) { - return false; - } - } - : function (ey) { - try { - var ew = ey.ownerDocument.selection.createRange(); - } catch (ex) {} - if (!ew || ew.parentElement() != ey) { - return false; - } - return ew.compareEndPoints('StartToEnd', ew) != 0; - }; - var ce = (function () { - var ew = ej('div'); - if ('oncopy' in ew) { - return true; - } - ew.setAttribute('oncopy', 'return;'); - return typeof ew.oncopy == 'function'; - })(); - var dL = { - 3: 'Enter', - 8: 'Backspace', - 9: 'Tab', - 13: 'Enter', - 16: 'Shift', - 17: 'Ctrl', - 18: 'Alt', - 19: 'Pause', - 20: 'CapsLock', - 27: 'Esc', - 32: 'Space', - 33: 'PageUp', - 34: 'PageDown', - 35: 'End', - 36: 'Home', - 37: 'Left', - 38: 'Up', - 39: 'Right', - 40: 'Down', - 44: 'PrintScrn', - 45: 'Insert', - 46: 'Delete', - 59: ';', - 61: '=', - 91: 'Mod', - 92: 'Mod', - 93: 'Mod', - 107: '=', - 109: '-', - 127: 'Delete', - 173: '-', - 186: ';', - 187: '=', - 188: ',', - 189: '-', - 190: '.', - 191: '/', - 192: '`', - 219: '[', - 220: '\\', - 221: ']', - 222: "'", - 63232: 'Up', - 63233: 'Down', - 63234: 'Left', - 63235: 'Right', - 63272: 'Delete', - 63273: 'Home', - 63275: 'End', - 63276: 'PageUp', - 63277: 'PageDown', - 63302: 'Insert' - }; - B.keyNames = dL; - (function () { - for (var ew = 0; ew < 10; ew++) { - dL[ew + 48] = dL[ew + 96] = String(ew); - } - for (var ew = 65; ew <= 90; ew++) { - dL[ew] = String.fromCharCode(ew); - } - for (var ew = 1; ew <= 12; ew++) { - dL[ew + 111] = dL[ew + 63235] = 'F' + ew; - } - })(); - function cL(ew, eC, eB, eA) { - if (!ew) { - return eA(eC, eB, 'ltr'); - } - var ez = false; - for (var ey = 0; ey < ew.length; ++ey) { - var ex = ew[ey]; - if ((ex.from < eB && ex.to > eC) || (eC == eB && ex.to == eC)) { - eA(Math.max(ex.from, eC), Math.min(ex.to, eB), ex.level == 1 ? 'rtl' : 'ltr'); - ez = true; - } - } - if (!ez) { - eA(eC, eB, 'ltr'); - } - } - function cv(ew) { - return ew.level % 2 ? ew.to : ew.from; - } - function er(ew) { - return ew.level % 2 ? ew.from : ew.to; - } - function bU(ex) { - var ew = a(ex); - return ew ? cv(ew[0]) : 0; - } - function b4(ex) { - var ew = a(ex); - if (!ew) { - return ex.text.length; - } - return er(d7(ew)); - } - function aY(ex, eA) { - var ey = dJ(ex.doc, eA); - var eB = u(ex.doc, ey); - if (eB != ey) { - eA = bc(eB); - } - var ew = a(eB); - var ez = !ew ? 0 : ew[0].level % 2 ? b4(eB) : bU(eB); - return K(eA, ez); - } - function cE(ey, eB) { - var ex, ez; - while ((ex = c5((ez = dJ(ey.doc, eB))))) { - eB = ex.find().to.line; - } - var ew = a(ez); - var eA = !ew ? ez.text.length : ew[0].level % 2 ? bU(ez) : b4(ez); - return K(eB, eA); - } - function X(ex, ey, ew) { - var ez = ex[0].level; - if (ey == ez) { - return true; - } - if (ew == ez) { - return false; - } - return ey < ew; - } - var dz; - function aj(ew, eA) { - dz = null; - for (var ex = 0, ey; ex < ew.length; ++ex) { - var ez = ew[ex]; - if (ez.from < eA && ez.to > eA) { - return ex; - } - if (ez.from == eA || ez.to == eA) { - if (ey == null) { - ey = ex; - } else { - if (X(ew, ez.level, ew[ey].level)) { - if (ez.from != ez.to) { - dz = ey; - } - return ex; - } else { - if (ez.from != ez.to) { - dz = ex; - } - return ey; - } - } - } - } - return ey; - } - function dI(ew, ez, ex, ey) { - if (!ey) { - return ez + ex; - } - do { - ez += ex; - } while (ez > 0 && dV(ew.text.charAt(ez))); - return ez; - } - function q(ew, eD, ey, ez) { - var eA = a(ew); - if (!eA) { - return R(ew, eD, ey, ez); - } - var eC = aj(eA, eD), - ex = eA[eC]; - var eB = dI(ew, eD, ex.level % 2 ? -ey : ey, ez); - for (;;) { - if (eB > ex.from && eB < ex.to) { - return eB; - } - if (eB == ex.from || eB == ex.to) { - if (aj(eA, eB) == eC) { - return eB; - } - ex = eA[(eC += ey)]; - return ey > 0 == ex.level % 2 ? ex.to : ex.from; - } else { - ex = eA[(eC += ey)]; - if (!ex) { - return null; - } - if (ey > 0 == ex.level % 2) { - eB = dI(ew, ex.to, -1, ez); - } else { - eB = dI(ew, ex.from, 1, ez); - } - } - } - } - function R(ew, eA, ex, ey) { - var ez = eA + ex; - if (ey) { - while (ez > 0 && dV(ew.text.charAt(ez))) { - ez += ex; - } - } - return ez < 0 || ez > ew.text.length ? null : ez; - } - var aM = (function () { - var eC = - 'bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLL'; - var eA = - 'rrrrrrrrrrrr,rNNmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmrrrrrrrnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmNmmmmrrrrrrrrrrrrrrrrrr'; - function ez(eF) { - if (eF <= 255) { - return eC.charAt(eF); - } else { - if (1424 <= eF && eF <= 1524) { - return 'R'; - } else { - if (1536 <= eF && eF <= 1791) { - return eA.charAt(eF - 1536); - } else { - if (1792 <= eF && eF <= 2220) { - return 'r'; - } else { - return 'L'; - } - } - } - } - } - var ew = /[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/; - var eE = /[stwN]/, - ey = /[LRr]/, - ex = /[Lb1n]/, - eB = /[1n]/; - var eD = 'L'; - return function (eP) { - if (!ew.test(eP)) { - return false; - } - var eV = eP.length, - eL = []; - for (var eU = 0, eH; eU < eV; ++eU) { - eL.push((eH = ez(eP.charCodeAt(eU)))); - } - for (var eU = 0, eO = eD; eU < eV; ++eU) { - var eH = eL[eU]; - if (eH == 'm') { - eL[eU] = eO; - } else { - eO = eH; - } - } - for (var eU = 0, eF = eD; eU < eV; ++eU) { - var eH = eL[eU]; - if (eH == '1' && eF == 'r') { - eL[eU] = 'n'; - } else { - if (ey.test(eH)) { - eF = eH; - if (eH == 'r') { - eL[eU] = 'R'; - } - } - } - } - for (var eU = 1, eO = eL[0]; eU < eV - 1; ++eU) { - var eH = eL[eU]; - if (eH == '+' && eO == '1' && eL[eU + 1] == '1') { - eL[eU] = '1'; - } else { - if (eH == ',' && eO == eL[eU + 1] && (eO == '1' || eO == 'n')) { - eL[eU] = eO; - } - } - eO = eH; - } - for (var eU = 0; eU < eV; ++eU) { - var eH = eL[eU]; - if (eH == ',') { - eL[eU] = 'N'; - } else { - if (eH == '%') { - for (var eI = eU + 1; eI < eV && eL[eI] == '%'; ++eI) {} - var eW = (eU && eL[eU - 1] == '!') || (eI < eV && eL[eI] == '1') ? '1' : 'N'; - for (var eS = eU; eS < eI; ++eS) { - eL[eS] = eW; - } - eU = eI - 1; - } - } - } - for (var eU = 0, eF = eD; eU < eV; ++eU) { - var eH = eL[eU]; - if (eF == 'L' && eH == '1') { - eL[eU] = 'L'; - } else { - if (ey.test(eH)) { - eF = eH; - } - } - } - for (var eU = 0; eU < eV; ++eU) { - if (eE.test(eL[eU])) { - for (var eI = eU + 1; eI < eV && eE.test(eL[eI]); ++eI) {} - var eM = (eU ? eL[eU - 1] : eD) == 'L'; - var eG = (eI < eV ? eL[eI] : eD) == 'L'; - var eW = eM || eG ? 'L' : 'R'; - for (var eS = eU; eS < eI; ++eS) { - eL[eS] = eW; - } - eU = eI - 1; - } - } - var eT = [], - eQ; - for (var eU = 0; eU < eV; ) { - if (ex.test(eL[eU])) { - var eJ = eU; - for (++eU; eU < eV && ex.test(eL[eU]); ++eU) {} - eT.push({from: eJ, to: eU, level: 0}); - } else { - var eK = eU, - eN = eT.length; - for (++eU; eU < eV && eL[eU] != 'L'; ++eU) {} - for (var eS = eK; eS < eU; ) { - if (eB.test(eL[eS])) { - if (eK < eS) { - eT.splice(eN, 0, {from: eK, to: eS, level: 1}); - } - var eR = eS; - for (++eS; eS < eU && eB.test(eL[eS]); ++eS) {} - eT.splice(eN, 0, {from: eR, to: eS, level: 2}); - eK = eS; - } else { - ++eS; - } - } - if (eK < eU) { - eT.splice(eN, 0, {from: eK, to: eU, level: 1}); - } - } - } - if (eT[0].level == 1 && (eQ = eP.match(/^\s+/))) { - eT[0].from = eQ[0].length; - eT.unshift({from: 0, to: eQ[0].length, level: 0}); - } - if (d7(eT).level == 1 && (eQ = eP.match(/\s+$/))) { - d7(eT).to -= eQ[0].length; - eT.push({from: eV - eQ[0].length, to: eV, level: 0}); - } - if (eT[0].level != d7(eT).level) { - eT.push({from: eV, to: eV, level: eT[0].level}); - } - return eT; - }; - })(); - B.version = '3.21.0'; - return B; -})(); +window.CodeMirror=(function(){var bI=/gecko\/\d/i.test(navigator.userAgent);var cf=/MSIE \d/.test(navigator.userAgent);var bF=cf&&(document.documentMode==null||document.documentMode<8);var bE=cf&&(document.documentMode==null||document.documentMode<9);var dC=/Trident\/([7-9]|\d{2,})\./.test(navigator.userAgent);var cA=cf||dC;var b8=/WebKit\//.test(navigator.userAgent);var cD=b8&&/Qt\/\d+\.\d+/.test(navigator.userAgent);var cg=/Chrome\//.test(navigator.userAgent);var d1=/Opera\//.test(navigator.userAgent);var ag=/Apple Computer/.test(navigator.vendor);var aH=/KHTML\//.test(navigator.userAgent);var bT=/Mac OS X 1\d\D([7-9]|\d\d)\D/.test(navigator.userAgent);var cc=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(navigator.userAgent);var dY=/PhantomJS/.test(navigator.userAgent);var dy=/AppleWebKit/.test(navigator.userAgent)&&/Mobile\/\w+/.test(navigator.userAgent);var cV=dy||/Android|webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(navigator.userAgent);var bq=dy||/Mac/.test(navigator.platform);var ao=/win/i.test(navigator.platform);var c8=d1&&navigator.userAgent.match(/Version\/(\d*\.\d*)/);if(c8){c8=Number(c8[1])}if(c8&&c8>=15){d1=false;b8=true}var be=bq&&(cD||d1&&(c8==null||c8<12.11));var bX=bI||(cf&&!bE);var eq=false,aD=false;function B(ew,ex){if(!(this instanceof B)){return new B(ew,ex)}this.options=ex=ex||{};for(var ey in dA){if(!ex.hasOwnProperty(ey)&&dA.hasOwnProperty(ey)){ex[ey]=dA[ey]}}by(ex);var eC=typeof ex.value=="string"?0:ex.value.first;var eB=this.display=f(ew,eC);eB.wrapper.CodeMirror=this;cR(this);if(ex.autofocus&&!cV){db(this)}this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:false,focused:false,suppressEdits:false,pasteIncoming:false,cutIncoming:false,draggingText:false,highlight:new ev()};b2(this);if(ex.lineWrapping){this.display.wrapper.className+=" CodeMirror-wrap"}var eA=ex.value;if(typeof eA=="string"){eA=new aa(ex.value,ex.mode)}b9(this,cQ)(this,eA);if(cf){setTimeout(bO(dU,this,true),20)}ee(this);var eD;try{eD=(document.activeElement==eB.input)}catch(ez){}if(eD||(ex.autofocus&&!cV)){setTimeout(bO(bS,this),20)}else{au(this)}b9(this,function(){for(var eF in aK){if(aK.propertyIsEnumerable(eF)){aK[eF](this,ex[eF],bw)}}for(var eE=0;eE<aE.length;++eE){aE[eE](this)}})()}function f(ew,ey){var ez={};var ex=ez.input=ej("textarea",null,null,"position: absolute; padding: 0; width: 1px; height: 1em; outline: none; font-size: 4px;");if(b8){ex.style.width="1000px"}else{ex.setAttribute("wrap","off")}if(dy){ex.style.border="1px solid black"}ex.setAttribute("autocorrect","off");ex.setAttribute("autocapitalize","off");ex.setAttribute("spellcheck","false");ez.inputDiv=ej("div",[ex],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");ez.scrollbarH=ej("div",[ej("div",null,null,"height: 1px")],"CodeMirror-hscrollbar");ez.scrollbarV=ej("div",[ej("div",null,null,"width: 1px")],"CodeMirror-vscrollbar");ez.scrollbarFiller=ej("div",null,"CodeMirror-scrollbar-filler");ez.gutterFiller=ej("div",null,"CodeMirror-gutter-filler");ez.lineDiv=ej("div",null,"CodeMirror-code");ez.selectionDiv=ej("div",null,null,"position: relative; z-index: 1");ez.cursor=ej("div","\u00a0","CodeMirror-cursor");ez.otherCursor=ej("div","\u00a0","CodeMirror-cursor CodeMirror-secondarycursor");ez.measure=ej("div",null,"CodeMirror-measure");ez.lineSpace=ej("div",[ez.measure,ez.selectionDiv,ez.lineDiv,ez.cursor,ez.otherCursor],null,"position: relative; outline: none");ez.mover=ej("div",[ej("div",[ez.lineSpace],"CodeMirror-lines")],null,"position: relative");ez.sizer=ej("div",[ez.mover],"CodeMirror-sizer");ez.heightForcer=ej("div",null,null,"position: absolute; height: "+aO+"px; width: 1px;");ez.gutters=ej("div",null,"CodeMirror-gutters");ez.lineGutter=null;ez.scroller=ej("div",[ez.sizer,ez.heightForcer,ez.gutters],"CodeMirror-scroll");ez.scroller.setAttribute("tabIndex","-1");ez.wrapper=ej("div",[ez.inputDiv,ez.scrollbarH,ez.scrollbarV,ez.scrollbarFiller,ez.gutterFiller,ez.scroller],"CodeMirror");if(bF){ez.gutters.style.zIndex=-1;ez.scroller.style.paddingRight=0}if(ew.appendChild){ew.appendChild(ez.wrapper)}else{ew(ez.wrapper)}if(dy){ex.style.width="0px"}if(!b8){ez.scroller.draggable=true}if(aH){ez.inputDiv.style.height="1px";ez.inputDiv.style.position="absolute"}else{if(bF){ez.scrollbarH.style.minWidth=ez.scrollbarV.style.minWidth="18px"}}ez.viewOffset=ez.lastSizeC=0;ez.showingFrom=ez.showingTo=ey;ez.lineNumWidth=ez.lineNumInnerWidth=ez.lineNumChars=null;ez.prevInput="";ez.alignWidgets=false;ez.pollingFast=false;ez.poll=new ev();ez.cachedCharWidth=ez.cachedTextHeight=null;ez.measureLineCache=[];ez.measureLineCachePos=0;ez.inaccurateSelection=false;ez.maxLine=null;ez.maxLineLength=0;ez.maxLineChanged=false;ez.wheelDX=ez.wheelDY=ez.wheelStartX=ez.wheelStartY=null;return ez}function aW(ew){ew.doc.mode=B.getMode(ew.options,ew.doc.modeOption);cZ(ew)}function cZ(ew){ew.doc.iter(function(ex){if(ex.stateAfter){ex.stateAfter=null}if(ex.styles){ex.styles=null}});ew.doc.frontier=ew.doc.first;cU(ew,100);ew.state.modeGen++;if(ew.curOp){Q(ew)}}function dj(ew){if(ew.options.lineWrapping){ew.display.wrapper.className+=" CodeMirror-wrap";ew.display.sizer.style.minWidth=""}else{ew.display.wrapper.className=ew.display.wrapper.className.replace(" CodeMirror-wrap","");em(ew)}L(ew);Q(ew);T(ew);setTimeout(function(){dw(ew)},100)}function aJ(ew){var ey=aw(ew.display),ex=ew.options.lineWrapping;var ez=ex&&Math.max(5,ew.display.scroller.clientWidth/cy(ew.display)-3);return function(eA){if(dZ(ew.doc,eA)){return 0}else{if(ex){return(Math.ceil(eA.text.length/ez)||1)*ey}else{return ey}}}}function L(ew){var ey=ew.doc,ex=aJ(ew);ey.iter(function(ez){var eA=ex(ez);if(eA!=ez.height){eo(ez,eA)}})}function et(ew){var ey=dF[ew.options.keyMap],ex=ey.style;ew.display.wrapper.className=ew.display.wrapper.className.replace(/\s*cm-keymap-\S+/g,"")+(ex?" cm-keymap-"+ex:"")}function b2(ew){ew.display.wrapper.className=ew.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+ew.options.theme.replace(/(^|\s)\s*/g," cm-s-");T(ew)}function ct(ew){cR(ew);Q(ew);setTimeout(function(){df(ew)},20)}function cR(ew){var ex=ew.display.gutters,eB=ew.options.gutters;cK(ex);for(var ey=0;ey<eB.length;++ey){var ez=eB[ey];var eA=ex.appendChild(ej("div",null,"CodeMirror-gutter "+ez));if(ez=="CodeMirror-linenumbers"){ew.display.lineGutter=eA;eA.style.width=(ew.display.lineNumWidth||1)+"px"}}ex.style.display=ey?"":"none"}function c0(eA,ey){if(ey.height==0){return 0}var ex=ey.text.length,ew,eB=ey;while(ew=dn(eB)){var ez=ew.find();eB=dJ(eA,ez.from.line);ex+=ez.from.ch-ez.to.ch}eB=ey;while(ew=c5(eB)){var ez=ew.find();ex-=eB.text.length-ez.from.ch;eB=dJ(eA,ez.to.line);ex+=eB.text.length-ez.to.ch}return ex}function em(ew){var ey=ew.display,ex=ew.doc;ey.maxLine=dJ(ex,ex.first);ey.maxLineLength=c0(ex,ey.maxLine);ey.maxLineChanged=true;ex.iter(function(eA){var ez=c0(ex,eA);if(ez>ey.maxLineLength){ey.maxLineLength=ez;ey.maxLine=eA}})}function by(ew){var ex=cl(ew.gutters,"CodeMirror-linenumbers");if(ex==-1&&ew.lineNumbers){ew.gutters=ew.gutters.concat(["CodeMirror-linenumbers"])}else{if(ex>-1&&!ew.lineNumbers){ew.gutters=ew.gutters.slice(0);ew.gutters.splice(ex,1)}}}function dw(ew){var eC=ew.display,ex=ew.doc.height;var ez=ex+a7(eC);eC.sizer.style.minHeight=eC.heightForcer.style.top=ez+"px";eC.gutters.style.height=Math.max(ez,eC.scroller.clientHeight-aO)+"px";var eA=Math.max(ez,eC.scroller.scrollHeight);var eB=eC.scroller.scrollWidth>(eC.scroller.clientWidth+1);var ey=eA>(eC.scroller.clientHeight+1);if(ey){eC.scrollbarV.style.display="block";eC.scrollbarV.style.bottom=eB?i(eC.measure)+"px":"0";eC.scrollbarV.firstChild.style.height=(eA-eC.scroller.clientHeight+eC.scrollbarV.clientHeight)+"px"}else{eC.scrollbarV.style.display="";eC.scrollbarV.firstChild.style.height="0"}if(eB){eC.scrollbarH.style.display="block";eC.scrollbarH.style.right=ey?i(eC.measure)+"px":"0";eC.scrollbarH.firstChild.style.width=(eC.scroller.scrollWidth-eC.scroller.clientWidth+eC.scrollbarH.clientWidth)+"px"}else{eC.scrollbarH.style.display="";eC.scrollbarH.firstChild.style.width="0"}if(eB&&ey){eC.scrollbarFiller.style.display="block";eC.scrollbarFiller.style.height=eC.scrollbarFiller.style.width=i(eC.measure)+"px"}else{eC.scrollbarFiller.style.display=""}if(eB&&ew.options.coverGutterNextToScrollbar&&ew.options.fixedGutter){eC.gutterFiller.style.display="block";eC.gutterFiller.style.height=i(eC.measure)+"px";eC.gutterFiller.style.width=eC.gutters.offsetWidth+"px"}else{eC.gutterFiller.style.display=""}if(bT&&i(eC.measure)===0){eC.scrollbarV.style.minWidth=eC.scrollbarH.style.minHeight=cc?"18px":"12px";eC.scrollbarV.style.pointerEvents=eC.scrollbarH.style.pointerEvents="none"}}function bp(eB,eA,ez){var ey=eB.scroller.scrollTop,ew=eB.wrapper.clientHeight;if(typeof ez=="number"){ey=ez}else{if(ez){ey=ez.top;ew=ez.bottom-ez.top}}ey=Math.floor(ey-dD(eB));var ex=Math.ceil(ey+ew);return{from:a5(eA,ey),to:a5(eA,ex)}}function df(ew){var eC=ew.display;if(!eC.alignWidgets&&(!eC.gutters.firstChild||!ew.options.fixedGutter)){return}var ez=cJ(eC)-eC.scroller.scrollLeft+ew.doc.scrollLeft;var eB=eC.gutters.offsetWidth,ey=ez+"px";for(var eD=eC.lineDiv.firstChild;eD;eD=eD.nextSibling){if(eD.alignable){for(var eA=0,ex=eD.alignable;eA<ex.length;++eA){ex[eA].style.left=ey}}}if(ew.options.fixedGutter){eC.gutters.style.left=(ez+eB)+"px"}}function cM(ew){if(!ew.options.lineNumbers){return false}var eB=ew.doc,ex=c3(ew.options,eB.first+eB.size-1),eA=ew.display;if(ex.length!=eA.lineNumChars){var eC=eA.measure.appendChild(ej("div",[ej("div",ex)],"CodeMirror-linenumber CodeMirror-gutter-elt"));var ey=eC.firstChild.offsetWidth,ez=eC.offsetWidth-ey;eA.lineGutter.style.width="";eA.lineNumInnerWidth=Math.max(ey,eA.lineGutter.offsetWidth-ez);eA.lineNumWidth=eA.lineNumInnerWidth+ez;eA.lineNumChars=eA.lineNumInnerWidth?ex.length:-1;eA.lineGutter.style.width=eA.lineNumWidth+"px";return true}return false}function c3(ew,ex){return String(ew.lineNumberFormatter(ex+ew.firstLineNumber))}function cJ(ew){return an(ew.scroller).left-an(ew.sizer).left}function cB(eB,eA,eE,eF){var eD=eB.display.showingFrom,eC=eB.display.showingTo,ez;var ew=bp(eB.display,eB.doc,eE);for(var ey=true;;ey=false){var ex=eB.display.scroller.clientWidth;if(!cj(eB,eA,ew,eF)){break}ez=true;eA=[];a2(eB);dw(eB);if(ey&&eB.options.lineWrapping&&ex!=eB.display.scroller.clientWidth){eF=true;continue}eF=false;if(eE){eE=Math.min(eB.display.scroller.scrollHeight-eB.display.scroller.clientHeight,typeof eE=="number"?eE:eE.top)}ew=bp(eB.display,eB.doc,eE);if(ew.from>=eB.display.showingFrom&&ew.to<=eB.display.showingTo){break}}if(ez){O(eB,"update",eB);if(eB.display.showingFrom!=eD||eB.display.showingTo!=eC){O(eB,"viewportChange",eB,eB.display.showingFrom,eB.display.showingTo)}}return ez}function cj(eA,eO,ex,eM){var eG=eA.display,eP=eA.doc;if(!eG.wrapper.offsetWidth){eG.showingFrom=eG.showingTo=eP.first;eG.viewOffset=0;return}if(!eM&&eO.length==0&&ex.from>eG.showingFrom&&ex.to<eG.showingTo){return}if(cM(eA)){eO=[{from:eP.first,to:eP.first+eP.size}]}var eL=eG.sizer.style.marginLeft=eG.gutters.offsetWidth+"px";eG.scrollbarH.style.left=eA.options.fixedGutter?eL:"0";var ey=Infinity;if(eA.options.lineNumbers){for(var eH=0;eH<eO.length;++eH){if(eO[eH].diff&&eO[eH].from<ey){ey=eO[eH].from}}}var ez=eP.first+eP.size;var eF=Math.max(ex.from-eA.options.viewportMargin,eP.first);var ew=Math.min(ez,ex.to+eA.options.viewportMargin);if(eG.showingFrom<eF&&eF-eG.showingFrom<20){eF=Math.max(eP.first,eG.showingFrom)}if(eG.showingTo>ew&&eG.showingTo-ew<20){ew=Math.min(ez,eG.showingTo)}if(aD){eF=bc(u(eP,dJ(eP,eF)));while(ew<ez&&dZ(eP,dJ(eP,ew))){++ew}}var eJ=[{from:Math.max(eG.showingFrom,eP.first),to:Math.min(eG.showingTo,ez)}];if(eJ[0].from>=eJ[0].to){eJ=[]}else{eJ=dT(eJ,eO)}if(aD){for(var eH=0;eH<eJ.length;++eH){var eC=eJ[eH],eK;while(eK=c5(dJ(eP,eC.to-1))){var eN=eK.find().from.line;if(eN>eC.from){eC.to=eN}else{eJ.splice(eH--,1);break}}}}var eE=0;for(var eH=0;eH<eJ.length;++eH){var eC=eJ[eH];if(eC.from<eF){eC.from=eF}if(eC.to>ew){eC.to=ew}if(eC.from>=eC.to){eJ.splice(eH--,1)}else{eE+=eC.to-eC.from}}if(!eM&&eE==ew-eF&&eF==eG.showingFrom&&ew==eG.showingTo){h(eA);return}eJ.sort(function(eR,eQ){return eR.from-eQ.from});try{var eB=document.activeElement}catch(eI){}if(eE<(ew-eF)*0.7){eG.lineDiv.style.display="none"}bG(eA,eF,ew,eJ,ey);eG.lineDiv.style.display="";if(eB&&document.activeElement!=eB&&eB.offsetHeight){eB.focus()}var eD=eF!=eG.showingFrom||ew!=eG.showingTo||eG.lastSizeC!=eG.wrapper.clientHeight;if(eD){eG.lastSizeC=eG.wrapper.clientHeight;cU(eA,400)}eG.showingFrom=eF;eG.showingTo=ew;eG.gutters.style.height="";aF(eA);h(eA);return true}function aF(eE){var eB=eE.display;var ex=eB.lineDiv.offsetTop;for(var ew=eB.lineDiv.firstChild,eF;ew;ew=ew.nextSibling){if(ew.lineObj){if(bF){var eA=ew.offsetTop+ew.offsetHeight;eF=eA-ex;ex=eA}else{var ez=an(ew);eF=ez.bottom-ez.top}var eD=ew.lineObj.height-eF;if(eF<2){eF=aw(eB)}if(eD>0.001||eD<-0.001){eo(ew.lineObj,eF);var eC=ew.lineObj.widgets;if(eC){for(var ey=0;ey<eC.length;++ey){eC[ey].height=eC[ey].node.offsetHeight}}}}}}function h(ew){var ex=ew.display.viewOffset=bb(ew,dJ(ew.doc,ew.display.showingFrom));ew.display.mover.style.top=ex+"px"}function dT(eF,eD){for(var eA=0,ey=eD.length||0;eA<ey;++eA){var eC=eD[eA],ew=[],eE=eC.diff||0;for(var ez=0,ex=eF.length;ez<ex;++ez){var eB=eF[ez];if(eC.to<=eB.from&&eC.diff){ew.push({from:eB.from+eE,to:eB.to+eE})}else{if(eC.to<=eB.from||eC.from>=eB.to){ew.push(eB)}else{if(eC.from>eB.from){ew.push({from:eB.from,to:eC.from})}if(eC.to<eB.to){ew.push({from:eC.to+eE,to:eB.to+eE})}}}}eF=ew}return eF}function dG(ew){var eA=ew.display,ez={},ey={};for(var eB=eA.gutters.firstChild,ex=0;eB;eB=eB.nextSibling,++ex){ez[ew.options.gutters[ex]]=eB.offsetLeft;ey[ew.options.gutters[ex]]=eB.offsetWidth}return{fixedPos:cJ(eA),gutterTotalWidth:eA.gutters.offsetWidth,gutterLeft:ez,gutterWidth:ey,wrapperWidth:eA.wrapper.clientWidth}}function bG(eF,eC,eD,eI,ex){var eE=dG(eF);var eB=eF.display,eH=eF.options.lineNumbers;if(!eI.length&&(!b8||!eF.display.currentWheelTarget)){cK(eB.lineDiv)}var ew=eB.lineDiv,eG=ew.firstChild;function eA(eK){var eJ=eK.nextSibling;if(b8&&bq&&eF.display.currentWheelTarget==eK){eK.style.display="none";eK.lineObj=null}else{eK.parentNode.removeChild(eK)}return eJ}var ey=eI.shift(),ez=eC;eF.doc.iter(eC,eD,function(eS){if(ey&&ey.to==ez){ey=eI.shift()}if(dZ(eF.doc,eS)){if(eS.height!=0){eo(eS,0)}if(eS.widgets&&eG&&eG.previousSibling){for(var eN=0;eN<eS.widgets.length;++eN){var eP=eS.widgets[eN];if(eP.showIfHidden){var eL=eG.previousSibling;if(/pre/i.test(eL.nodeName)){var eK=ej("div",null,null,"position: relative");eL.parentNode.replaceChild(eK,eL);eK.appendChild(eL);eL=eK}var eQ=eL.appendChild(ej("div",[eP.node],"CodeMirror-linewidget"));if(!eP.handleMouseEvents){eQ.ignoreEvents=true}a4(eP,eQ,eL,eE)}}}}else{if(ey&&ey.from<=ez&&ey.to>ez){while(eG.lineObj!=eS){eG=eA(eG)}if(eH&&ex<=ez&&eG.lineNumber){l(eG.lineNumber,c3(eF.options,ez))}eG=eG.nextSibling}else{if(eS.widgets){for(var eM=0,eR=eG,eO;eR&&eM<20;++eM,eR=eR.nextSibling){if(eR.lineObj==eS&&/div/i.test(eR.nodeName)){eO=eR;break}}}var eJ=ai(eF,eS,ez,eE,eO);if(eJ!=eO){ew.insertBefore(eJ,eG)}else{while(eG!=eO){eG=eA(eG)}eG=eG.nextSibling}eJ.lineObj=eS}}++ez});while(eG){eG=eA(eG)}}function ai(eD,eF,eG,eJ,ey){var eC=dq(eD,eF),eP=eC.pre;var eS=eF.gutterMarkers,eQ=eD.display,eE;var ex=eC.bgClass?eC.bgClass+" "+(eF.bgClass||""):eF.bgClass;if(!eD.options.lineNumbers&&!eS&&!ex&&!eF.wrapClass&&!eF.widgets){return eP}if(ey){ey.alignable=null;var eT=true,eB=0,ez=null;for(var eL=ey.firstChild,eK;eL;eL=eK){eK=eL.nextSibling;if(!/\bCodeMirror-linewidget\b/.test(eL.className)){ey.removeChild(eL)}else{for(var eR=0;eR<eF.widgets.length;++eR){var eA=eF.widgets[eR];if(eA.node==eL.firstChild){if(!eA.above&&!ez){ez=eL}a4(eA,eL,ey,eJ);++eB;break}}if(eR==eF.widgets.length){eT=false;break}}}ey.insertBefore(eP,ez);if(eT&&eB==eF.widgets.length){eE=ey;ey.className=eF.wrapClass||""}}if(!eE){eE=ej("div",null,eF.wrapClass,"position: relative");eE.appendChild(eP)}if(ex){eE.insertBefore(ej("div",null,ex+" CodeMirror-linebackground"),eE.firstChild)}if(eD.options.lineNumbers||eS){var eN=eE.insertBefore(ej("div",null,"CodeMirror-gutter-wrapper","position: absolute; left: "+(eD.options.fixedGutter?eJ.fixedPos:-eJ.gutterTotalWidth)+"px"),eP);if(eD.options.fixedGutter){(eE.alignable||(eE.alignable=[])).push(eN)}if(eD.options.lineNumbers&&(!eS||!eS["CodeMirror-linenumbers"])){eE.lineNumber=eN.appendChild(ej("div",c3(eD.options,eG),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+eJ.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+eQ.lineNumInnerWidth+"px"))}if(eS){for(var eO=0;eO<eD.options.gutters.length;++eO){var eI=eD.options.gutters[eO],eH=eS.hasOwnProperty(eI)&&eS[eI];if(eH){eN.appendChild(ej("div",[eH],"CodeMirror-gutter-elt","left: "+eJ.gutterLeft[eI]+"px; width: "+eJ.gutterWidth[eI]+"px"))}}}}if(bF){eE.style.zIndex=2}if(eF.widgets&&eE!=ey){for(var eR=0,ew=eF.widgets;eR<ew.length;++eR){var eA=ew[eR],eM=ej("div",[eA.node],"CodeMirror-linewidget");if(!eA.handleMouseEvents){eM.ignoreEvents=true}a4(eA,eM,eE,eJ);if(eA.above){eE.insertBefore(eM,eD.options.lineNumbers&&eF.height!=0?eN:eP)}else{eE.appendChild(eM)}O(eA,"redraw")}}return eE}function a4(ez,ey,ex,eA){if(ez.noHScroll){(ex.alignable||(ex.alignable=[])).push(ey);var ew=eA.wrapperWidth;ey.style.left=eA.fixedPos+"px";if(!ez.coverGutter){ew-=eA.gutterTotalWidth;ey.style.paddingLeft=eA.gutterTotalWidth+"px"}ey.style.width=ew+"px"}if(ez.coverGutter){ey.style.zIndex=5;ey.style.position="relative";if(!ez.noHScroll){ey.style.marginLeft=-eA.gutterTotalWidth+"px"}}}function a2(ew){var ez=ew.display;var eA=d8(ew.doc.sel.from,ew.doc.sel.to);if(eA||ew.options.showCursorWhenSelecting){C(ew)}else{ez.cursor.style.display=ez.otherCursor.style.display="none"}if(!eA){V(ew)}else{ez.selectionDiv.style.display="none"}if(ew.options.moveInputWithCursor){var eB=cH(ew,ew.doc.sel.head,"div");var ex=an(ez.wrapper),ey=an(ez.lineDiv);ez.inputDiv.style.top=Math.max(0,Math.min(ez.wrapper.clientHeight-10,eB.top+ey.top-ex.top))+"px";ez.inputDiv.style.left=Math.max(0,Math.min(ez.wrapper.clientWidth-10,eB.left+ey.left-ex.left))+"px"}}function C(ew){var ex=ew.display,ey=cH(ew,ew.doc.sel.head,"div");ex.cursor.style.left=ey.left+"px";ex.cursor.style.top=ey.top+"px";ex.cursor.style.height=Math.max(0,ey.bottom-ey.top)*ew.options.cursorHeight+"px";ex.cursor.style.display="";if(ey.other){ex.otherCursor.style.display="";ex.otherCursor.style.left=ey.other.left+"px";ex.otherCursor.style.top=ey.other.top+"px";ex.otherCursor.style.height=(ey.other.bottom-ey.other.top)*0.85+"px"}else{ex.otherCursor.style.display="none"}}function V(eH){var eC=eH.display,eG=eH.doc,ew=eH.doc.sel;var eA=document.createDocumentFragment();var eF=eC.lineSpace.offsetWidth,ey=av(eH.display);function eJ(eN,eM,eL,eK){if(eM<0){eM=0}eA.appendChild(ej("div",null,"CodeMirror-selected","position: absolute; left: "+eN+"px; top: "+eM+"px; width: "+(eL==null?eF-eN:eL)+"px; height: "+(eK-eM)+"px"))}function eE(eL,eN,eQ){var eM=dJ(eG,eL);var eO=eM.text.length;var eR,eK;function eP(eT,eS){return bZ(eH,K(eL,eT),"div",eM,eS)}cL(a(eM),eN||0,eQ==null?eO:eQ,function(eZ,eY,eS){var eV=eP(eZ,"left"),eW,eX,eU;if(eZ==eY){eW=eV;eX=eU=eV.left}else{eW=eP(eY-1,"right");if(eS=="rtl"){var eT=eV;eV=eW;eW=eT}eX=eV.left;eU=eW.right}if(eN==null&&eZ==0){eX=ey}if(eW.top-eV.top>3){eJ(eX,eV.top,null,eV.bottom);eX=ey;if(eV.bottom<eW.top){eJ(eX,eV.bottom,null,eW.top)}}if(eQ==null&&eY==eO){eU=eF}if(!eR||eV.top<eR.top||eV.top==eR.top&&eV.left<eR.left){eR=eV}if(!eK||eW.bottom>eK.bottom||eW.bottom==eK.bottom&&eW.right>eK.right){eK=eW}if(eX<ey+1){eX=ey}eJ(eX,eW.top,eU-eX,eW.bottom)});return{start:eR,end:eK}}if(ew.from.line==ew.to.line){eE(ew.from.line,ew.from.ch,ew.to.ch)}else{var ez=dJ(eG,ew.from.line),ex=dJ(eG,ew.to.line);var eB=u(eG,ez)==u(eG,ex);var eI=eE(ew.from.line,ew.from.ch,eB?ez.text.length:null).end;var eD=eE(ew.to.line,eB?0:null,ew.to.ch).start;if(eB){if(eI.top<eD.top-2){eJ(eI.right,eI.top,null,eI.bottom);eJ(ey,eD.top,eD.left,eD.bottom)}else{eJ(eI.right,eI.top,eD.left-eI.right,eI.bottom)}}if(eI.bottom<eD.top){eJ(ey,eI.bottom,null,eD.top)}}bf(eC.selectionDiv,eA);eC.selectionDiv.style.display=""}function k(ew){if(!ew.state.focused){return}var ey=ew.display;clearInterval(ey.blinker);var ex=true;ey.cursor.style.visibility=ey.otherCursor.style.visibility="";if(ew.options.cursorBlinkRate>0){ey.blinker=setInterval(function(){ey.cursor.style.visibility=ey.otherCursor.style.visibility=(ex=!ex)?"":"hidden"},ew.options.cursorBlinkRate)}}function cU(ew,ex){if(ew.doc.mode.startState&&ew.doc.frontier<ew.display.showingTo){ew.state.highlight.set(ex,bO(b3,ew))}}function b3(ew){var ez=ew.doc;if(ez.frontier<ez.first){ez.frontier=ez.first}if(ez.frontier>=ew.display.showingTo){return}var ex=+new Date+ew.options.workTime;var ey=bo(ez.mode,cw(ew,ez.frontier));var eB=[],eA;ez.iter(ez.frontier,Math.min(ez.first+ez.size,ew.display.showingTo+500),function(eC){if(ez.frontier>=ew.display.showingFrom){var eE=eC.styles;eC.styles=d4(ew,eC,ey,true);var eF=!eE||eE.length!=eC.styles.length;for(var eD=0;!eF&&eD<eE.length;++eD){eF=eE[eD]!=eC.styles[eD]}if(eF){if(eA&&eA.end==ez.frontier){eA.end++}else{eB.push(eA={start:ez.frontier,end:ez.frontier+1})}}eC.stateAfter=bo(ez.mode,ey)}else{cu(ew,eC.text,ey);eC.stateAfter=ez.frontier%5==0?bo(ez.mode,ey):null}++ez.frontier;if(+new Date>ex){cU(ew,ew.options.workDelay);return true}});if(eB.length){b9(ew,function(){for(var eC=0;eC<eB.length;++eC){Q(this,eB[eC].start,eB[eC].end)}})()}}function bQ(eC,ew,ez){var ex,eA,eB=eC.doc;var ey=ez?-1:ew-(eC.doc.mode.innerMode?1000:100);for(var eF=ew;eF>ey;--eF){if(eF<=eB.first){return eB.first}var eE=dJ(eB,eF-1);if(eE.stateAfter&&(!ez||eF<=eB.frontier)){return eF}var eD=bg(eE.text,null,eC.options.tabSize);if(eA==null||ex>eD){eA=eF-1;ex=eD}}return eA}function cw(ew,eC,ex){var eA=ew.doc,ez=ew.display;if(!eA.mode.startState){return true}var eB=bQ(ew,eC,ex),ey=eB>eA.first&&dJ(eA,eB-1).stateAfter;if(!ey){ey=bm(eA.mode)}else{ey=bo(eA.mode,ey)}eA.iter(eB,eC,function(eD){cu(ew,eD.text,ey);var eE=eB==eC-1||eB%5==0||eB>=ez.showingFrom&&eB<ez.showingTo;eD.stateAfter=eE?bo(eA.mode,ey):null;++eB});if(ex){eA.frontier=eB}return ey}function dD(ew){return ew.lineSpace.offsetTop}function a7(ew){return ew.mover.offsetHeight-ew.lineSpace.offsetHeight}function av(ex){var ew=bf(ex.measure,ej("pre",null,null,"text-align: left")).appendChild(ej("span","x"));return ew.offsetLeft}function cW(eD,eE,ex,eA,eB){var ez=-1;eA=eA||a8(eD,eE);if(eA.crude){var ey=eA.left+ex*eA.width;return{left:ey,right:ey+eA.width,top:eA.top,bottom:eA.bottom}}for(var eC=ex;;eC+=ez){var ew=eA[eC];if(ew){break}if(ez<0&&eC==0){ez=1}}eB=eC>ex?"left":eC<ex?"right":eB;if(eB=="left"&&ew.leftSide){ew=ew.leftSide}else{if(eB=="right"&&ew.rightSide){ew=ew.rightSide}}return{left:eC<ex?ew.right:ew.left,right:eC>ex?ew.left:ew.right,top:ew.top,bottom:ew.bottom}}function dB(ew,ex){var ez=ew.display.measureLineCache;for(var eA=0;eA<ez.length;++eA){var ey=ez[eA];if(ey.text==ex.text&&ey.markedSpans==ex.markedSpans&&ew.display.scroller.clientWidth==ey.width&&ey.classes==ex.textClass+"|"+ex.wrapClass){return ey}}}function ec(ew,ex){var ey=dB(ew,ex);if(ey){ey.text=ey.measure=ey.markedSpans=null}}function a8(ew,ex){var eB=dB(ew,ex);if(eB){return eB.measure}var eA=ci(ew,ex);var ez=ew.display.measureLineCache;var ey={text:ex.text,width:ew.display.scroller.clientWidth,markedSpans:ex.markedSpans,measure:eA,classes:ex.textClass+"|"+ex.wrapClass};if(ez.length==16){ez[++ew.display.measureLineCachePos%16]=ey}else{ez.push(ey)}return eA}function ci(eD,eF){if(!eD.options.lineWrapping&&eF.text.length>=eD.options.crudeMeasuringFrom){return ek(eD,eF)}var eL=eD.display,eB=U(eF.text.length);var eI=dq(eD,eF,eB,true).pre;if(cf&&!bF&&!eD.options.lineWrapping&&eI.childNodes.length>100){var ey=document.createDocumentFragment();var eG=10,eJ=eI.childNodes.length;for(var eN=0,eH=Math.ceil(eJ/eG);eN<eH;++eN){var eE=ej("div",null,null,"display: inline-block");for(var eM=0;eM<eG&&eJ;++eM){eE.appendChild(eI.firstChild);--eJ}ey.appendChild(eE)}eI.appendChild(ey)}bf(eL.measure,eI);var ex=an(eL.lineDiv);var ew=[],eQ=U(eF.text.length),eP=eI.offsetHeight;if(bE&&eL.measure.first!=eI){bf(eL.measure,eI)}function eO(eT){var eV=eT.top-ex.top,eX=eT.bottom-ex.top;if(eX>eP){eX=eP}if(eV<0){eV=0}for(var eS=ew.length-2;eS>=0;eS-=2){var eU=ew[eS],eW=ew[eS+1];if(eU>eX||eW<eV){continue}if(eU<=eV&&eW>=eX||eV<=eU&&eX>=eW||Math.min(eX,eW)-Math.max(eV,eU)>=(eX-eV)>>1){ew[eS]=Math.min(eV,eU);ew[eS+1]=Math.max(eX,eW);break}}if(eS<0){eS=ew.length;ew.push(eV,eX)}return{left:eT.left-ex.left,right:eT.right-ex.left,top:eS,bottom:null}}function eR(eS){eS.bottom=ew[eS.top+1];eS.top=ew[eS.top]}for(var eN=0,eA;eN<eB.length;++eN){if(eA=eB[eN]){var eK=eA,ez=null;if(/\bCodeMirror-widget\b/.test(eA.className)&&eA.getClientRects){if(eA.firstChild.nodeType==1){eK=eA.firstChild}var eC=eK.getClientRects();if(eC.length>1){ez=eQ[eN]=eO(eC[0]);ez.rightSide=eO(eC[eC.length-1])}}if(!ez){ez=eQ[eN]=eO(an(eK))}if(eA.measureRight){ez.right=an(eA.measureRight).left-ex.left}if(eA.leftSide){ez.leftSide=eO(an(eA.leftSide))}}}cK(eD.display.measure);for(var eN=0,eA;eN<eQ.length;++eN){if(eA=eQ[eN]){eR(eA);if(eA.leftSide){eR(eA.leftSide)}if(eA.rightSide){eR(eA.rightSide)}}}return eQ}function ek(ew,ex){var eB=new en(ex.text.slice(0,100),null);if(ex.textClass){eB.textClass=ex.textClass}var ez=ci(ew,eB);var eA=cW(ew,eB,0,ez,"left");var ey=cW(ew,eB,99,ez,"right");return{crude:true,top:eA.top,left:eA.left,bottom:eA.bottom,width:(ey.right-eA.left)/100}}function dg(ew,ey){var eD=false;if(ey.markedSpans){for(var ez=0;ez<ey.markedSpans;++ez){var eB=ey.markedSpans[ez];if(eB.collapsed&&(eB.to==null||eB.to==ey.text.length)){eD=true}}}var eA=!eD&&dB(ew,ey);if(eA||ey.text.length>=ew.options.crudeMeasuringFrom){return cW(ew,ey,ey.text.length,eA&&eA.measure,"right").right}var eC=dq(ew,ey,null,true).pre;var ex=eC.appendChild(aS(ew.display.measure));bf(ew.display.measure,eC);return an(ex).right-an(ew.display.lineDiv).left}function T(ew){ew.display.measureLineCache.length=ew.display.measureLineCachePos=0;ew.display.cachedCharWidth=ew.display.cachedTextHeight=null;if(!ew.options.lineWrapping){ew.display.maxLineChanged=true}ew.display.lineNumChars=null}function bN(){return window.pageXOffset||(document.documentElement||document.body).scrollLeft}function bM(){return window.pageYOffset||(document.documentElement||document.body).scrollTop}function dp(eC,ez,eB,ex){if(ez.widgets){for(var ey=0;ey<ez.widgets.length;++ey){if(ez.widgets[ey].above){var eE=b6(ez.widgets[ey]);eB.top+=eE;eB.bottom+=eE}}}if(ex=="line"){return eB}if(!ex){ex="local"}var eA=bb(eC,ez);if(ex=="local"){eA+=dD(eC.display)}else{eA-=eC.display.viewOffset}if(ex=="page"||ex=="window"){var ew=an(eC.display.lineSpace);eA+=ew.top+(ex=="window"?0:bM());var eD=ew.left+(ex=="window"?0:bN());eB.left+=eD;eB.right+=eD}eB.top+=eA;eB.bottom+=eA;return eB}function es(ex,eA,ey){if(ey=="div"){return eA}var eC=eA.left,eB=eA.top;if(ey=="page"){eC-=bN();eB-=bM()}else{if(ey=="local"||!ey){var ez=an(ex.display.sizer);eC+=ez.left;eB+=ez.top}}var ew=an(ex.display.lineSpace);return{left:eC-ew.left,top:eB-ew.top}}function bZ(ew,eA,ez,ey,ex){if(!ey){ey=dJ(ew.doc,eA.line)}return dp(ew,ey,cW(ew,ey,eA.ch,null,ex),ez)}function cH(eF,eE,ey,eD,eB){eD=eD||dJ(eF.doc,eE.line);if(!eB){eB=a8(eF,eD)}function eA(eJ,eI){var eH=cW(eF,eD,eJ,eB,eI?"right":"left");if(eI){eH.left=eH.right}else{eH.right=eH.left}return dp(eF,eD,eH,ey)}function eG(eK,eH){var eI=eC[eH],eJ=eI.level%2;if(eK==cv(eI)&&eH&&eI.level<eC[eH-1].level){eI=eC[--eH];eK=er(eI)-(eI.level%2?0:1);eJ=true}else{if(eK==er(eI)&&eH<eC.length-1&&eI.level<eC[eH+1].level){eI=eC[++eH];eK=cv(eI)-eI.level%2;eJ=false}}if(eJ&&eK==eI.to&&eK>eI.from){return eA(eK-1)}return eA(eK,eJ)}var eC=a(eD),ew=eE.ch;if(!eC){return eA(ew)}var ex=aj(eC,ew);var ez=eG(ew,ex);if(dz!=null){ez.other=eG(ew,dz)}return ez}function ei(ew,ex,ey,eA){var ez=new K(ew,ex);ez.xRel=eA;if(ey){ez.outside=true}return ez}function ed(eD,eA,ez){var eC=eD.doc;ez+=eD.display.viewOffset;if(ez<0){return ei(eC.first,0,true,-1)}var ex=a5(eC,ez),eE=eC.first+eC.size-1;if(ex>eE){return ei(eC.first+eC.size-1,dJ(eC,eE).text.length,true,1)}if(eA<0){eA=0}for(;;){var ey=dJ(eC,ex);var eF=b7(eD,ey,ex,eA,ez);var eB=c5(ey);var ew=eB&&eB.find();if(eB&&(eF.ch>ew.from.ch||eF.ch==ew.from.ch&&eF.xRel>0)){ex=ew.to.line}else{return eF}}}function b7(eG,ey,eJ,eI,eH){var eF=eH-bb(eG,ey);var eC=false,eP=2*eG.display.wrapper.clientWidth;var eO=a8(eG,ey);function eT(eV){var eW=cH(eG,K(eJ,eV),"line",ey,eO);eC=true;if(eF>eW.bottom){return eW.left-eP}else{if(eF<eW.top){return eW.left+eP}else{eC=false}}return eW.left}var eL=a(ey),eN=ey.text.length;var eQ=bU(ey),ez=b4(ey);var eM=eT(eQ),ew=eC,ex=eT(ez),eB=eC;if(eI>ex){return ei(eJ,ez,eB,1)}for(;;){if(eL?ez==eQ||ez==q(ey,eQ,1):ez-eQ<=1){var eK=eI<eM||eI-eM<=ex-eI?eQ:ez;var eS=eI-(eK==eQ?eM:ex);while(dV(ey.text.charAt(eK))){++eK}var eE=ei(eJ,eK,eK==eQ?ew:eB,eS<0?-1:eS?1:0);return eE}var eD=Math.ceil(eN/2),eU=eQ+eD;if(eL){eU=eQ;for(var eR=0;eR<eD;++eR){eU=q(ey,eU,1)}}var eA=eT(eU);if(eA>eI){ez=eU;ex=eA;if(eB=eC){ex+=1000}eN=eD}else{eQ=eU;eM=eA;ew=eC;eN-=eD}}}var ak;function aw(ey){if(ey.cachedTextHeight!=null){return ey.cachedTextHeight}if(ak==null){ak=ej("pre");for(var ex=0;ex<49;++ex){ak.appendChild(document.createTextNode("x"));ak.appendChild(ej("br"))}ak.appendChild(document.createTextNode("x"))}bf(ey.measure,ak);var ew=ak.offsetHeight/50;if(ew>3){ey.cachedTextHeight=ew}cK(ey.measure);return ew||1}function cy(ez){if(ez.cachedCharWidth!=null){return ez.cachedCharWidth}var ew=ej("span","x");var ey=ej("pre",[ew]);bf(ez.measure,ey);var ex=ew.offsetWidth;if(ex>2){ez.cachedCharWidth=ex}return ex||10}var cO=0;function bY(ew){ew.curOp={changes:[],forceUpdate:false,updateInput:null,userSelChange:null,textChanged:null,selectionChanged:false,cursorActivity:false,updateMaxLine:false,updateScrollPos:false,id:++cO};if(!bL++){aT=[]}}function W(eK){var eE=eK.curOp,eJ=eK.doc,eF=eK.display;eK.curOp=null;if(eE.updateMaxLine){em(eK)}if(eF.maxLineChanged&&!eK.options.lineWrapping&&eF.maxLine){var ex=dg(eK,eF.maxLine);eF.sizer.style.minWidth=Math.max(0,ex+3+aO)+"px";eF.maxLineChanged=false;var eH=Math.max(0,eF.sizer.offsetLeft+eF.sizer.offsetWidth-eF.scroller.clientWidth);if(eH<eJ.scrollLeft&&!eE.updateScrollPos){a3(eK,Math.min(eF.scroller.scrollLeft,eH),true)}}var ey,eC;if(eE.updateScrollPos){ey=eE.updateScrollPos}else{if(eE.selectionChanged&&eF.scroller.clientHeight){var eI=cH(eK,eJ.sel.head);ey=A(eK,eI.left,eI.top,eI.left,eI.bottom)}}if(eE.changes.length||eE.forceUpdate||ey&&ey.scrollTop!=null){eC=cB(eK,eE.changes,ey&&ey.scrollTop,eE.forceUpdate);if(eK.display.scroller.offsetHeight){eK.doc.scrollTop=eK.display.scroller.scrollTop}}if(!eC&&eE.selectionChanged){a2(eK)}if(eE.updateScrollPos){var eG=Math.max(0,Math.min(eF.scroller.scrollHeight-eF.scroller.clientHeight,ey.scrollTop));var ez=Math.max(0,Math.min(eF.scroller.scrollWidth-eF.scroller.clientWidth,ey.scrollLeft));eF.scroller.scrollTop=eF.scrollbarV.scrollTop=eJ.scrollTop=eG;eF.scroller.scrollLeft=eF.scrollbarH.scrollLeft=eJ.scrollLeft=ez;df(eK);if(eE.scrollToPos){x(eK,d9(eK.doc,eE.scrollToPos.from),d9(eK.doc,eE.scrollToPos.to),eE.scrollToPos.margin)}}else{if(ey){ae(eK)}}if(eE.selectionChanged){k(eK)}if(eK.state.focused&&eE.updateInput){dU(eK,eE.userSelChange)}var eD=eE.maybeHiddenMarkers,ew=eE.maybeUnhiddenMarkers;if(eD){for(var eB=0;eB<eD.length;++eB){if(!eD[eB].lines.length){ah(eD[eB],"hide")}}}if(ew){for(var eB=0;eB<ew.length;++eB){if(ew[eB].lines.length){ah(ew[eB],"unhide")}}}var eA;if(!--bL){eA=aT;aT=null}if(eE.textChanged){ah(eK,"change",eK,eE.textChanged)}if(eE.cursorActivity){ah(eK,"cursorActivity",eK)}if(eA){for(var eB=0;eB<eA.length;++eB){eA[eB]()}}}function b9(ew,ex){return function(){var ez=ew||this,eA=!ez.curOp;if(eA){bY(ez)}try{var ey=ex.apply(ez,arguments)}finally{if(eA){W(ez)}}return ey}}function d3(ew){return function(){var ey=this.cm&&!this.cm.curOp,ex;if(ey){bY(this.cm)}try{ex=ew.apply(this,arguments)}finally{if(ey){W(this.cm)}}return ex}}function b1(ex,ez){var ey=!ex.curOp,ew;if(ey){bY(ex)}try{ew=ez()}finally{if(ey){W(ex)}}return ew}function Q(ew,ez,ey,ex){if(ez==null){ez=ew.doc.first}if(ey==null){ey=ew.doc.first+ew.doc.size}ew.curOp.changes.push({from:ez,to:ey,diff:ex})}function aR(ew){if(ew.display.pollingFast){return}ew.display.poll.set(ew.options.pollInterval,function(){bB(ew);if(ew.state.focused){aR(ew)}})}function w(ew){var ex=false;ew.display.pollingFast=true;function ey(){var ez=bB(ew);if(!ez&&!ex){ex=true;ew.display.poll.set(60,ey)}else{ew.display.pollingFast=false;aR(ew)}}ew.display.poll.set(20,ey)}function bB(eK){var eF=eK.display.input,eC=eK.display.prevInput,eJ=eK.doc,ew=eJ.sel;if(!eK.state.focused||aX(eF)||S(eK)||eK.options.disableInput){return false}if(eK.state.pasteIncoming&&eK.state.fakedLastChar){eF.value=eF.value.substring(0,eF.value.length-1);eK.state.fakedLastChar=false}var eL=eF.value;if(eL==eC&&d8(ew.from,ew.to)){return false}if(cA&&!bE&&eK.display.inputHasSelection===eL){dU(eK,true);return false}var ey=!eK.curOp;if(ey){bY(eK)}ew.shift=false;var eE=0,ex=Math.min(eC.length,eL.length);while(eE<ex&&eC.charCodeAt(eE)==eL.charCodeAt(eE)){++eE}var eI=ew.from,eH=ew.to;var eA=eL.slice(eE);if(eE<eC.length){eI=K(eI.line,eI.ch-(eC.length-eE))}else{if(eK.state.overwrite&&d8(eI,eH)&&!eK.state.pasteIncoming){eH=K(eH.line,Math.min(dJ(eJ,eH.line).text.length,eH.ch+eA.length))}}var eD=eK.curOp.updateInput;var eG={from:eI,to:eH,text:ay(eA),origin:eK.state.pasteIncoming?"paste":eK.state.cutIncoming?"cut":"+input"};aL(eK.doc,eG,"end");eK.curOp.updateInput=eD;O(eK,"inputRead",eK,eG);if(eA&&!eK.state.pasteIncoming&&eK.options.electricChars&&eK.options.smartIndent&&ew.head.ch<100){var ez=eK.getModeAt(ew.head).electricChars;if(ez){for(var eB=0;eB<ez.length;eB++){if(eA.indexOf(ez.charAt(eB))>-1){N(eK,ew.head.line,"smart");break}}}}if(eL.length>1000||eL.indexOf("\n")>-1){eF.value=eK.display.prevInput=""}else{eK.display.prevInput=eL}if(ey){W(eK)}eK.state.pasteIncoming=eK.state.cutIncoming=false;return true}function dU(ew,ey){var ex,ez,eB=ew.doc;if(!d8(eB.sel.from,eB.sel.to)){ew.display.prevInput="";ex=ce&&(eB.sel.to.line-eB.sel.from.line>100||(ez=ew.getSelection()).length>1000);var eA=ex?"-":ez||ew.getSelection();ew.display.input.value=eA;if(ew.state.focused){cC(ew.display.input)}if(cA&&!bE){ew.display.inputHasSelection=eA}}else{if(ey){ew.display.prevInput=ew.display.input.value="";if(cA&&!bE){ew.display.inputHasSelection=null}}}ew.display.inaccurateSelection=ex}function db(ew){if(ew.options.readOnly!="nocursor"&&(!cV||document.activeElement!=ew.display.input)){ew.display.input.focus()}}function S(ew){return ew.options.readOnly||ew.doc.cantEdit}function ee(ex){var eC=ex.display;bk(eC.scroller,"mousedown",b9(ex,c4));if(cf){bk(eC.scroller,"dblclick",b9(ex,function(eF){if(ar(ex,eF)){return}var eG=bH(ex,eF);if(!eG||j(ex,eF)||aG(ex.display,eF)){return}bV(eF);var eE=ab(dJ(ex.doc,eG.line).text,eG);eg(ex.doc,eE.from,eE.to)}))}else{bk(eC.scroller,"dblclick",function(eE){ar(ex,eE)||bV(eE)})}bk(eC.lineSpace,"selectstart",function(eE){if(!aG(eC,eE)){bV(eE)}});if(!bX){bk(eC.scroller,"contextmenu",function(eE){ad(ex,eE)})}bk(eC.scroller,"scroll",function(){if(eC.scroller.clientHeight){F(ex,eC.scroller.scrollTop);a3(ex,eC.scroller.scrollLeft,true);ah(ex,"scroll",ex)}});bk(eC.scrollbarV,"scroll",function(){if(eC.scroller.clientHeight){F(ex,eC.scrollbarV.scrollTop)}});bk(eC.scrollbarH,"scroll",function(){if(eC.scroller.clientHeight){a3(ex,eC.scrollbarH.scrollLeft)}});bk(eC.scroller,"mousewheel",function(eE){b(ex,eE)});bk(eC.scroller,"DOMMouseScroll",function(eE){b(ex,eE)});function eD(){if(ex.state.focused){setTimeout(bO(db,ex),0)}}bk(eC.scrollbarH,"mousedown",eD);bk(eC.scrollbarV,"mousedown",eD);bk(eC.wrapper,"scroll",function(){eC.wrapper.scrollTop=eC.wrapper.scrollLeft=0});var ew;function eA(){if(ew==null){ew=setTimeout(function(){ew=null;eC.cachedCharWidth=eC.cachedTextHeight=c6=null;T(ex);b1(ex,bO(Q,ex))},100)}}bk(window,"resize",eA);function ez(){for(var eE=eC.wrapper.parentNode;eE&&eE!=document.body;eE=eE.parentNode){}if(eE){setTimeout(ez,5000)}else{cT(window,"resize",eA)}}setTimeout(ez,5000);bk(eC.input,"keyup",b9(ex,function(eE){if(ar(ex,eE)||ex.options.onKeyEvent&&ex.options.onKeyEvent(ex,Y(eE))){return}if(eE.keyCode==16){ex.doc.sel.shift=false}}));bk(eC.input,"input",function(){if(cA&&!bE&&ex.display.inputHasSelection){ex.display.inputHasSelection=null}w(ex)});bk(eC.input,"keydown",b9(ex,m));bk(eC.input,"keypress",b9(ex,bP));bk(eC.input,"focus",bO(bS,ex));bk(eC.input,"blur",bO(au,ex));function ey(eE){if(ar(ex,eE)||ex.options.onDragEvent&&ex.options.onDragEvent(ex,Y(eE))){return}c2(eE)}if(ex.options.dragDrop){bk(eC.scroller,"dragstart",function(eE){I(ex,eE)});bk(eC.scroller,"dragenter",ey);bk(eC.scroller,"dragover",ey);bk(eC.scroller,"drop",b9(ex,aN))}bk(eC.scroller,"paste",function(eE){if(aG(eC,eE)){return}db(ex);w(ex)});bk(eC.input,"paste",function(){if(b8&&!ex.state.fakedLastChar&&!(new Date-ex.state.lastMiddleDown<200)){var eF=eC.input.selectionStart,eE=eC.input.selectionEnd;eC.input.value+="$";eC.input.selectionStart=eF;eC.input.selectionEnd=eE;ex.state.fakedLastChar=true}ex.state.pasteIncoming=true;w(ex)});function eB(eE){if(eC.inaccurateSelection){eC.prevInput="";eC.inaccurateSelection=false;eC.input.value=ex.getSelection();cC(eC.input)}if(eE.type=="cut"){ex.state.cutIncoming=true}}bk(eC.input,"cut",eB);bk(eC.input,"copy",eB);if(aH){bk(eC.sizer,"mouseup",function(){if(document.activeElement==eC.input){eC.input.blur()}db(ex)})}}function aG(ex,ew){for(var ey=D(ew);ey!=ex.wrapper;ey=ey.parentNode){if(!ey||ey.ignoreEvents||ey.parentNode==ex.sizer&&ey!=ex.mover){return true}}}function bH(ex,eC,ez){var eB=ex.display;if(!ez){var eA=D(eC);if(eA==eB.scrollbarH||eA==eB.scrollbarH.firstChild||eA==eB.scrollbarV||eA==eB.scrollbarV.firstChild||eA==eB.scrollbarFiller||eA==eB.gutterFiller){return null}}var ew,eD,ey=an(eB.lineSpace);try{ew=eC.clientX;eD=eC.clientY}catch(eC){return null}return ed(ex,ew-ey.left,eD-ey.top)}var cn,ch;function c4(eO){if(ar(this,eO)){return}var ez=this,eJ=ez.display,eQ=ez.doc,eH=eQ.sel;eH.shift=eO.shiftKey;if(aG(eJ,eO)){if(!b8){eJ.scroller.draggable=false;setTimeout(function(){eJ.scroller.draggable=true},100)}return}if(j(ez,eO)){return}var ey=bH(ez,eO);switch(eb(eO)){case 3:if(bX){ad.call(ez,ez,eO)}return;case 2:if(b8){ez.state.lastMiddleDown=+new Date}if(ey){eg(ez.doc,ey)}setTimeout(bO(db,ez),20);bV(eO);return}if(!ey){if(D(eO)==eJ.scroller){bV(eO)}return}if(!ez.state.focused){bS(ez)}var ew=+new Date,ex="single";if(ch&&ch.time>ew-400&&d8(ch.pos,ey)){ex="triple";bV(eO);setTimeout(bO(db,ez),20);aQ(ez,ey.line)}else{if(cn&&cn.time>ew-400&&d8(cn.pos,ey)){ex="double";ch={time:ew,pos:ey};bV(eO);var eL=ab(dJ(eQ,ey.line).text,ey);eg(ez.doc,eL.from,eL.to)}else{cn={time:ew,pos:ey}}}var eA=ey;if(ez.options.dragDrop&&dm&&!S(ez)&&!d8(eH.from,eH.to)&&!dK(ey,eH.from)&&!dK(eH.to,ey)&&ex=="single"){var eK=b9(ez,function(eR){if(b8){eJ.scroller.draggable=false}ez.state.draggingText=false;cT(document,"mouseup",eK);cT(eJ.scroller,"drop",eK);if(Math.abs(eO.clientX-eR.clientX)+Math.abs(eO.clientY-eR.clientY)<10){bV(eR);eg(ez.doc,ey);db(ez);if(cf&&!bE){setTimeout(function(){document.body.focus();db(ez)},20)}}});if(b8){eJ.scroller.draggable=true}ez.state.draggingText=eK;if(eJ.scroller.dragDrop){eJ.scroller.dragDrop()}bk(document,"mouseup",eK);bk(eJ.scroller,"drop",eK);return}bV(eO);if(ex=="single"){eg(ez.doc,d9(eQ,ey))}var eP=eH.from,eE=eH.to,eI=ey;function eM(eS){if(d8(eI,eS)){return}eI=eS;if(ex=="single"){eg(ez.doc,d9(eQ,ey),eS);return}eP=d9(eQ,eP);eE=d9(eQ,eE);if(ex=="double"){var eR=ab(dJ(eQ,eS.line).text,eS);if(dK(eS,eP)){eg(ez.doc,eR.from,eE)}else{eg(ez.doc,eP,eR.to)}}else{if(ex=="triple"){if(dK(eS,eP)){eg(ez.doc,eE,d9(eQ,K(eS.line,0)))}else{eg(ez.doc,eP,d9(eQ,K(eS.line+1,0)))}}}}var eF=an(eJ.wrapper);var eB=0;function eN(eT){var eR=++eB;var eV=bH(ez,eT,true);if(!eV){return}if(!d8(eV,eA)){if(!ez.state.focused){bS(ez)}eA=eV;eM(eV);var eU=bp(eJ,eQ);if(eV.line>=eU.to||eV.line<eU.from){setTimeout(b9(ez,function(){if(eB==eR){eN(eT)}}),150)}}else{var eS=eT.clientY<eF.top?-20:eT.clientY>eF.bottom?20:0;if(eS){setTimeout(b9(ez,function(){if(eB!=eR){return}eJ.scroller.scrollTop+=eS;eN(eT)}),50)}}}function eD(eR){eB=Infinity;bV(eR);db(ez);cT(document,"mousemove",eG);cT(document,"mouseup",eC)}var eG=b9(ez,function(eR){if(!cf&&!eb(eR)){eD(eR)}else{eN(eR)}});var eC=b9(ez,eD);bk(document,"mousemove",eG);bk(document,"mouseup",eC)}function eu(eH,eD,eF,eG,ez){try{var ex=eD.clientX,ew=eD.clientY}catch(eD){return false}if(ex>=Math.floor(an(eH.display.gutters).right)){return false}if(eG){bV(eD)}var eE=eH.display;var eC=an(eE.lineDiv);if(ew>eC.bottom||!dP(eH,eF)){return ba(eD)}ew-=eC.top-eE.viewOffset;for(var eA=0;eA<eH.options.gutters.length;++eA){var eB=eE.gutters.childNodes[eA];if(eB&&an(eB).right>=ex){var eI=a5(eH.doc,ew);var ey=eH.options.gutters[eA];ez(eH,eF,eH,eI,ey,eD);return ba(eD)}}}function ck(ew,ex){if(!dP(ew,"gutterContextMenu")){return false}return eu(ew,ex,"gutterContextMenu",false,ah)}function j(ew,ex){return eu(ew,ex,"gutterClick",true,O)}var P=0;function aN(eC){var eE=this;if(ar(eE,eC)||aG(eE.display,eC)||(eE.options.onDragEvent&&eE.options.onDragEvent(eE,Y(eC)))){return}bV(eC);if(cA){P=+new Date}var eD=bH(eE,eC,true),ew=eC.dataTransfer.files;if(!eD||S(eE)){return}if(ew&&ew.length&&window.FileReader&&window.File){var ey=ew.length,eG=Array(ey),ex=0;var ez=function(eJ,eI){var eH=new FileReader;eH.onload=function(){eG[eI]=eH.result;if(++ex==ey){eD=d9(eE.doc,eD);aL(eE.doc,{from:eD,to:eD,text:ay(eG.join("\n")),origin:"paste"},"around")}};eH.readAsText(eJ)};for(var eA=0;eA<ey;++eA){ez(ew[eA],eA)}}else{if(eE.state.draggingText&&!(dK(eD,eE.doc.sel.from)||dK(eE.doc.sel.to,eD))){eE.state.draggingText(eC);setTimeout(bO(db,eE),20);return}try{var eG=eC.dataTransfer.getData("Text");if(eG){var eF=eE.doc.sel.from,eB=eE.doc.sel.to;bh(eE.doc,eD,eD);if(eE.state.draggingText){az(eE.doc,"",eF,eB,"paste")}eE.replaceSelection(eG,null,"paste");db(eE)}}catch(eC){}}}function I(ex,ez){if(cA&&(!ex.state.draggingText||+new Date-P<100)){c2(ez);return}if(ar(ex,ez)||aG(ex.display,ez)){return}var ew=ex.getSelection();ez.dataTransfer.setData("Text",ew);if(ez.dataTransfer.setDragImage&&!ag){var ey=ej("img",null,null,"position: fixed; left: 0; top: 0;");ey.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==";if(d1){ey.width=ey.height=1;ex.display.wrapper.appendChild(ey);ey._top=ey.offsetTop}ez.dataTransfer.setDragImage(ey,0,0);if(d1){ey.parentNode.removeChild(ey)}}}function F(ew,ex){if(Math.abs(ew.doc.scrollTop-ex)<2){return}ew.doc.scrollTop=ex;if(!bI){cB(ew,[],ex)}if(ew.display.scroller.scrollTop!=ex){ew.display.scroller.scrollTop=ex}if(ew.display.scrollbarV.scrollTop!=ex){ew.display.scrollbarV.scrollTop=ex}if(bI){cB(ew,[])}cU(ew,100)}function a3(ew,ey,ex){if(ex?ey==ew.doc.scrollLeft:Math.abs(ew.doc.scrollLeft-ey)<2){return}ey=Math.min(ey,ew.display.scroller.scrollWidth-ew.display.scroller.clientWidth);ew.doc.scrollLeft=ey;df(ew);if(ew.display.scroller.scrollLeft!=ey){ew.display.scroller.scrollLeft=ey}if(ew.display.scrollbarH.scrollLeft!=ey){ew.display.scrollbarH.scrollLeft=ey}}var dQ=0,bA=null;if(cf){bA=-0.53}else{if(bI){bA=15}else{if(cg){bA=-0.7}else{if(ag){bA=-1/3}}}}function b(eC,ex){var eF=ex.wheelDeltaX,eE=ex.wheelDeltaY;if(eF==null&&ex.detail&&ex.axis==ex.HORIZONTAL_AXIS){eF=ex.detail}if(eE==null&&ex.detail&&ex.axis==ex.VERTICAL_AXIS){eE=ex.detail}else{if(eE==null){eE=ex.wheelDelta}}var ez=eC.display,eB=ez.scroller;if(!(eF&&eB.scrollWidth>eB.clientWidth||eE&&eB.scrollHeight>eB.clientHeight)){return}if(eE&&bq&&b8){for(var eD=ex.target;eD!=eB;eD=eD.parentNode){if(eD.lineObj){eC.display.currentWheelTarget=eD;break}}}if(eF&&!bI&&!d1&&bA!=null){if(eE){F(eC,Math.max(0,Math.min(eB.scrollTop+eE*bA,eB.scrollHeight-eB.clientHeight)))}a3(eC,Math.max(0,Math.min(eB.scrollLeft+eF*bA,eB.scrollWidth-eB.clientWidth)));bV(ex);ez.wheelStartX=null;return}if(eE&&bA!=null){var ew=eE*bA;var eA=eC.doc.scrollTop,ey=eA+ez.wrapper.clientHeight;if(ew<0){eA=Math.max(0,eA+ew-50)}else{ey=Math.min(eC.doc.height,ey+ew+50)}cB(eC,[],{top:eA,bottom:ey})}if(dQ<20){if(ez.wheelStartX==null){ez.wheelStartX=eB.scrollLeft;ez.wheelStartY=eB.scrollTop;ez.wheelDX=eF;ez.wheelDY=eE;setTimeout(function(){if(ez.wheelStartX==null){return}var eG=eB.scrollLeft-ez.wheelStartX;var eI=eB.scrollTop-ez.wheelStartY;var eH=(eI&&ez.wheelDY&&eI/ez.wheelDY)||(eG&&ez.wheelDX&&eG/ez.wheelDX);ez.wheelStartX=ez.wheelStartY=null;if(!eH){return}bA=(bA*dQ+eH)/(dQ+1);++dQ},200)}else{ez.wheelDX+=eF;ez.wheelDY+=eE}}}function ef(ex,eA,ew){if(typeof eA=="string"){eA=dd[eA];if(!eA){return false}}if(ex.display.pollingFast&&bB(ex)){ex.display.pollingFast=false}var eB=ex.doc,ez=eB.sel.shift,ey=false;try{if(S(ex)){ex.state.suppressEdits=true}if(ew){eB.sel.shift=false}ey=eA(ex)!=bv}finally{eB.sel.shift=ez;ex.state.suppressEdits=false}return ey}function cr(ew){var ex=ew.state.keyMaps.slice(0);if(ew.options.extraKeys){ex.push(ew.options.extraKeys)}ex.push(ew.options.keyMap);return ex}var Z;function dN(ew,eC){var ex=eh(ew.options.keyMap),eA=ex.auto;clearTimeout(Z);if(eA&&!dc(eC)){Z=setTimeout(function(){if(eh(ew.options.keyMap)==ex){ew.options.keyMap=(eA.call?eA.call(null,ew):eA);et(ew)}},50)}var ez=dW(eC,true),eB=false;if(!ez){return false}var ey=cr(ew);if(eC.shiftKey){eB=g("Shift-"+ez,ey,function(eD){return ef(ew,eD,true)})||g(ez,ey,function(eD){if(typeof eD=="string"?/^go[A-Z]/.test(eD):eD.motion){return ef(ew,eD)}})}else{eB=g(ez,ey,function(eD){return ef(ew,eD)})}if(eB){bV(eC);k(ew);if(bE){eC.oldKeyCode=eC.keyCode;eC.keyCode=0}O(ew,"keyHandled",ew,ez,eC)}return eB}function cX(ew,ez,ex){var ey=g("'"+ex+"'",cr(ew),function(eA){return ef(ew,eA,true)});if(ey){bV(ez);k(ew);O(ew,"keyHandled",ew,"'"+ex+"'",ez)}return ey}var cm=null;function m(ez){var ew=this;if(!ew.state.focused){bS(ew)}if(ar(ew,ez)||ew.options.onKeyEvent&&ew.options.onKeyEvent(ew,Y(ez))){return}if(cf&&ez.keyCode==27){ez.returnValue=false}var ex=ez.keyCode;ew.doc.sel.shift=ex==16||ez.shiftKey;var ey=dN(ew,ez);if(d1){cm=ey?ex:null;if(!ey&&ex==88&&!ce&&(bq?ez.metaKey:ez.ctrlKey)){ew.replaceSelection("")}}}function bP(eA){var ew=this;if(ar(ew,eA)||ew.options.onKeyEvent&&ew.options.onKeyEvent(ew,Y(eA))){return}var ez=eA.keyCode,ex=eA.charCode;if(d1&&ez==cm){cm=null;bV(eA);return}if(((d1&&(!eA.which||eA.which<10))||aH)&&dN(ew,eA)){return}var ey=String.fromCharCode(ex==null?ez:ex);if(cX(ew,eA,ey)){return}if(cA&&!bE){ew.display.inputHasSelection=null}w(ew)}function bS(ew){if(ew.options.readOnly=="nocursor"){return}if(!ew.state.focused){ah(ew,"focus",ew);ew.state.focused=true;if(ew.display.wrapper.className.search(/\bCodeMirror-focused\b/)==-1){ew.display.wrapper.className+=" CodeMirror-focused"}if(!ew.curOp){dU(ew,true);if(b8){setTimeout(bO(dU,ew,true),0)}}}aR(ew);k(ew)}function au(ew){if(ew.state.focused){ah(ew,"blur",ew);ew.state.focused=false;ew.display.wrapper.className=ew.display.wrapper.className.replace(" CodeMirror-focused","")}clearInterval(ew.display.blinker);setTimeout(function(){if(!ew.state.focused){ew.doc.sel.shift=false}},150)}var d5;function ad(eG,eB){if(ar(eG,eB,"contextmenu")){return}var eD=eG.display,ex=eG.doc.sel;if(aG(eD,eB)||ck(eG,eB)){return}var eF=bH(eG,eB),ew=eD.scroller.scrollTop;if(!eF||d1){return}var eA=eG.options.resetSelectionOnContextMenu;if(eA&&(d8(ex.from,ex.to)||dK(eF,ex.from)||!dK(eF,ex.to))){b9(eG,bh)(eG.doc,eF,eF)}var eC=eD.input.style.cssText;eD.inputDiv.style.position="absolute";eD.input.style.cssText="position: fixed; width: 30px; height: 30px; top: "+(eB.clientY-5)+"px; left: "+(eB.clientX-5)+"px; z-index: 1000; background: transparent; outline: none;border-width: 0; outline: none; overflow: hidden; opacity: .05; -ms-opacity: .05; filter: alpha(opacity=5);";db(eG);dU(eG,true);if(d8(ex.from,ex.to)){eD.input.value=eD.prevInput=" "}function ez(){if(eD.input.selectionStart!=null){var eH=eD.input.value="\u200b"+(d8(ex.from,ex.to)?"":eD.input.value);eD.prevInput="\u200b";eD.input.selectionStart=1;eD.input.selectionEnd=eH.length}}function eE(){eD.inputDiv.style.position="relative";eD.input.style.cssText=eC;if(bE){eD.scrollbarV.scrollTop=eD.scroller.scrollTop=ew}aR(eG);if(eD.input.selectionStart!=null){if(!cf||bE){ez()}clearTimeout(d5);var eH=0,eI=function(){if(eD.prevInput=="\u200b"&&eD.input.selectionStart==0){b9(eG,dd.selectAll)(eG)}else{if(eH++<10){d5=setTimeout(eI,500)}else{dU(eG)}}};d5=setTimeout(eI,200)}}if(cf&&!bE){ez()}if(bX){c2(eB);var ey=function(){cT(window,"mouseup",ey);setTimeout(eE,20)};bk(window,"mouseup",ey)}else{setTimeout(eE,50)}}var b5=B.changeEnd=function(ew){if(!ew.text){return ew.to}return K(ew.from.line+ew.text.length-1,d7(ew.text).length+(ew.text.length==1?ew.from.ch:0))};function de(eA,eC,eB){if(!dK(eC.from,eB)){return d9(eA,eB)}var ez=(eC.text.length-1)-(eC.to.line-eC.from.line);if(eB.line>eC.to.line+ez){var ey=eB.line-ez,ex=eA.first+eA.size-1;if(ey>ex){return K(ex,dJ(eA,ex).text.length)}return dX(eB,dJ(eA,ey).text.length)}if(eB.line==eC.to.line+ez){return dX(eB,d7(eC.text).length+(eC.text.length==1?eC.from.ch:0)+dJ(eA,eC.to.line).text.length-eC.to.ch)}var ew=eB.line-eC.from.line;return dX(eB,eC.text[ew].length+(ew?0:eC.from.ch))}function dO(ex,eA,ey){if(ey&&typeof ey=="object"){return{anchor:de(ex,eA,ey.anchor),head:de(ex,eA,ey.head)}}if(ey=="start"){return{anchor:eA.from,head:eA.from}}var ew=b5(eA);if(ey=="around"){return{anchor:eA.from,head:ew}}if(ey=="end"){return{anchor:ew,head:ew}}var ez=function(eD){if(dK(eD,eA.from)){return eD}if(!dK(eA.to,eD)){return ew}var eB=eD.line+eA.text.length-(eA.to.line-eA.from.line)-1,eC=eD.ch;if(eD.line==eA.to.line){eC+=ew.ch-eA.to.ch}return K(eB,eC)};return{anchor:ez(ex.sel.anchor),head:ez(ex.sel.head)}}function cG(ex,ez,ey){var ew={canceled:false,from:ez.from,to:ez.to,text:ez.text,origin:ez.origin,cancel:function(){this.canceled=true}};if(ey){ew.update=function(eD,eC,eB,eA){if(eD){this.from=d9(ex,eD)}if(eC){this.to=d9(ex,eC)}if(eB){this.text=eB}if(eA!==undefined){this.origin=eA}}}ah(ex,"beforeChange",ex,ew);if(ex.cm){ah(ex.cm,"beforeChange",ex.cm,ew)}if(ew.canceled){return null}return{from:ew.from,to:ew.to,text:ew.text,origin:ew.origin}}function aL(ez,eB,eA,ey){if(ez.cm){if(!ez.cm.curOp){return b9(ez.cm,aL)(ez,eB,eA,ey)}if(ez.cm.state.suppressEdits){return}}if(dP(ez,"beforeChange")||ez.cm&&dP(ez.cm,"beforeChange")){eB=cG(ez,eB,true);if(!eB){return}}var ex=eq&&!ey&&bW(ez,eB.from,eB.to);if(ex){for(var ew=ex.length-1;ew>=1;--ew){ap(ez,{from:ex[ew].from,to:ex[ew].to,text:[""]})}if(ex.length){ap(ez,{from:ex[0].from,to:ex[0].to,text:eB.text},eA)}}else{ap(ez,eB,eA)}}function ap(ey,eA,ez){if(eA.text.length==1&&eA.text[0]==""&&d8(eA.from,eA.to)){return}var ex=dO(ey,eA,ez);di(ey,eA,ex,ey.cm?ey.cm.curOp.id:NaN);cS(ey,eA,ex,cY(ey,eA));var ew=[];cN(ey,function(eC,eB){if(!eB&&cl(ew,eC.history)==-1){cz(eC.history,eA);ew.push(eC.history)}cS(eC,eA,null,cY(eC,eA))})}function bs(eF,eC){if(eF.cm&&eF.cm.state.suppressEdits){return}var eB=eF.history;var ex=(eC=="undo"?eB.done:eB.undone).pop();if(!ex){return}var eD={changes:[],anchorBefore:ex.anchorAfter,headBefore:ex.headAfter,anchorAfter:ex.anchorBefore,headAfter:ex.headBefore,generation:eB.generation};(eC=="undo"?eB.undone:eB.done).push(eD);eB.generation=ex.generation||++eB.maxGeneration;var ey=dP(eF,"beforeChange")||eF.cm&&dP(eF.cm,"beforeChange");for(var ez=ex.changes.length-1;ez>=0;--ez){var eE=ex.changes[ez];eE.origin=eC;if(ey&&!cG(eF,eE,false)){(eC=="undo"?eB.done:eB.undone).length=0;return}eD.changes.push(cs(eF,eE));var ew=ez?dO(eF,eE,null):{anchor:ex.anchorBefore,head:ex.headBefore};cS(eF,eE,ew,cP(eF,eE));var eA=[];cN(eF,function(eH,eG){if(!eG&&cl(eA,eH.history)==-1){cz(eH.history,eE);eA.push(eH.history)}cS(eH,eE,null,cP(eH,eE))})}}function dR(ew,ey){function ex(ez){return K(ez.line+ey,ez.ch)}ew.first+=ey;if(ew.cm){Q(ew.cm,ew.first,ew.first,ey)}ew.sel.head=ex(ew.sel.head);ew.sel.anchor=ex(ew.sel.anchor);ew.sel.from=ex(ew.sel.from);ew.sel.to=ex(ew.sel.to)}function cS(eA,eB,ez,ex){if(eA.cm&&!eA.cm.curOp){return b9(eA.cm,cS)(eA,eB,ez,ex)}if(eB.to.line<eA.first){dR(eA,eB.text.length-1-(eB.to.line-eB.from.line));return}if(eB.from.line>eA.lastLine()){return}if(eB.from.line<eA.first){var ew=eB.text.length-1-(eA.first-eB.from.line);dR(eA,ew);eB={from:K(eA.first,0),to:K(eB.to.line+ew,eB.to.ch),text:[d7(eB.text)],origin:eB.origin}}var ey=eA.lastLine();if(eB.to.line>ey){eB={from:eB.from,to:K(ey,dJ(eA,ey).text.length),text:[eB.text[0]],origin:eB.origin}}eB.removed=el(eA,eB.from,eB.to);if(!ez){ez=dO(eA,eB,null)}if(eA.cm){al(eA.cm,eB,ex,ez)}else{d2(eA,eB,ex,ez)}}function al(eG,eC,ez,ew){var eF=eG.doc,eB=eG.display,eD=eC.from,eE=eC.to;var ex=false,ey=eD.line;if(!eG.options.lineWrapping){ey=bc(u(eF,dJ(eF,eD.line)));eF.iter(ey,eE.line+1,function(eJ){if(eJ==eB.maxLine){ex=true;return true}})}if(!dK(eF.sel.head,eC.from)&&!dK(eC.to,eF.sel.head)){eG.curOp.cursorActivity=true}d2(eF,eC,ez,ew,aJ(eG));if(!eG.options.lineWrapping){eF.iter(ey,eD.line+eC.text.length,function(eK){var eJ=c0(eF,eK);if(eJ>eB.maxLineLength){eB.maxLine=eK;eB.maxLineLength=eJ;eB.maxLineChanged=true;ex=false}});if(ex){eG.curOp.updateMaxLine=true}}eF.frontier=Math.min(eF.frontier,eD.line);cU(eG,400);var eI=eC.text.length-(eE.line-eD.line)-1;Q(eG,eD.line,eE.line+1,eI);if(dP(eG,"change")){var eA={from:eD,to:eE,text:eC.text,removed:eC.removed,origin:eC.origin};if(eG.curOp.textChanged){for(var eH=eG.curOp.textChanged;eH.next;eH=eH.next){}eH.next=eA}else{eG.curOp.textChanged=eA}}}function az(ez,ey,eB,eA,ew){if(!eA){eA=eB}if(dK(eA,eB)){var ex=eA;eA=eB;eB=ex}if(typeof ey=="string"){ey=ay(ey)}aL(ez,{from:eB,to:eA,text:ey,origin:ew},null)}function K(ew,ex){if(!(this instanceof K)){return new K(ew,ex)}this.line=ew;this.ch=ex}B.Pos=K;function d8(ex,ew){return ex.line==ew.line&&ex.ch==ew.ch}function dK(ex,ew){return ex.line<ew.line||(ex.line==ew.line&&ex.ch<ew.ch)}function bz(ex,ew){return ex.line-ew.line||ex.ch-ew.ch}function bC(ew){return K(ew.line,ew.ch)}function cb(ew,ex){return Math.max(ew.first,Math.min(ex,ew.first+ew.size-1))}function d9(ex,ey){if(ey.line<ex.first){return K(ex.first,0)}var ew=ex.first+ex.size-1;if(ey.line>ew){return K(ew,dJ(ex,ew).text.length)}return dX(ey,dJ(ex,ey.line).text.length)}function dX(ey,ex){var ew=ey.ch;if(ew==null||ew>ex){return K(ey.line,ex)}else{if(ew<0){return K(ey.line,0)}else{return ey}}}function bt(ex,ew){return ew>=ex.first&&ew<ex.first+ex.size}function eg(eA,eB,ew,ex){if(eA.sel.shift||eA.sel.extend){var ez=eA.sel.anchor;if(ew){var ey=dK(eB,ez);if(ey!=dK(ew,ez)){ez=eB;eB=ew}else{if(ey!=dK(eB,ew)){eB=ew}}}bh(eA,ez,eB,ex)}else{bh(eA,eB,ew||eB,ex)}if(eA.cm){eA.cm.curOp.userSelChange=true}}function c(ez,ew,ex){var ey={anchor:ew,head:ex};ah(ez,"beforeSelectionChange",ez,ey);if(ez.cm){ah(ez.cm,"beforeSelectionChange",ez.cm,ey)}ey.anchor=d9(ez,ey.anchor);ey.head=d9(ez,ey.head);return ey}function bh(eD,eA,eB,ey,ex){if(!ex&&dP(eD,"beforeSelectionChange")||eD.cm&&dP(eD.cm,"beforeSelectionChange")){var ez=c(eD,eA,eB);eB=ez.head;eA=ez.anchor}var eC=eD.sel;eC.goalColumn=null;if(ey==null){ey=dK(eB,eC.head)?-1:1}if(ex||!d8(eA,eC.anchor)){eA=bi(eD,eA,ey,ex!="push")}if(ex||!d8(eB,eC.head)){eB=bi(eD,eB,ey,ex!="push")}if(d8(eC.anchor,eA)&&d8(eC.head,eB)){return}eC.anchor=eA;eC.head=eB;var ew=dK(eB,eA);eC.from=ew?eB:eA;eC.to=ew?eA:eB;if(eD.cm){eD.cm.curOp.updateInput=eD.cm.curOp.selectionChanged=eD.cm.curOp.cursorActivity=true}O(eD,"cursorActivity",eD)}function c7(ew){bh(ew.doc,ew.doc.sel.from,ew.doc.sel.to,null,"push")}function bi(eF,eE,eB,eC){var eG=false,ey=eE;var ez=eB||1;eF.cantEdit=false;search:for(;;){var eH=dJ(eF,ey.line);if(eH.markedSpans){for(var eA=0;eA<eH.markedSpans.length;++eA){var ew=eH.markedSpans[eA],ex=ew.marker;if((ew.from==null||(ex.inclusiveLeft?ew.from<=ey.ch:ew.from<ey.ch))&&(ew.to==null||(ex.inclusiveRight?ew.to>=ey.ch:ew.to>ey.ch))){if(eC){ah(ex,"beforeCursorEnter");if(ex.explicitlyCleared){if(!eH.markedSpans){break}else{--eA;continue}}}if(!ex.atomic){continue}var eD=ex.find()[ez<0?"from":"to"];if(d8(eD,ey)){eD.ch+=ez;if(eD.ch<0){if(eD.line>eF.first){eD=d9(eF,K(eD.line-1))}else{eD=null}}else{if(eD.ch>eH.text.length){if(eD.line<eF.first+eF.size-1){eD=K(eD.line+1,0)}else{eD=null}}}if(!eD){if(eG){if(!eC){return bi(eF,eE,eB,true)}eF.cantEdit=true;return K(eF.first,0)}eG=true;eD=eE;ez=-ez}}ey=eD;continue search}}}return ey}}function ae(ex){var eA=x(ex,ex.doc.sel.head,null,ex.options.cursorScrollMargin);if(!ex.state.focused){return}var eB=ex.display,ey=an(eB.sizer),ew=null;if(eA.top+ey.top<0){ew=true}else{if(eA.bottom+ey.top>(window.innerHeight||document.documentElement.clientHeight)){ew=false}}if(ew!=null&&!dY){var ez=ej("div","\u200b",null,"position: absolute; top: "+(eA.top-eB.viewOffset)+"px; height: "+(eA.bottom-eA.top+aO)+"px; left: "+eA.left+"px; width: 2px;");ex.display.lineSpace.appendChild(ez);ez.scrollIntoView(ew);ex.display.lineSpace.removeChild(ez)}}function x(eF,eD,eA,ez){if(ez==null){ez=0}for(;;){var eB=false,eE=cH(eF,eD);var ew=!eA||eA==eD?eE:cH(eF,eA);var ey=A(eF,Math.min(eE.left,ew.left),Math.min(eE.top,ew.top)-ez,Math.max(eE.left,ew.left),Math.max(eE.bottom,ew.bottom)+ez);var eC=eF.doc.scrollTop,ex=eF.doc.scrollLeft;if(ey.scrollTop!=null){F(eF,ey.scrollTop);if(Math.abs(eF.doc.scrollTop-eC)>1){eB=true}}if(ey.scrollLeft!=null){a3(eF,ey.scrollLeft);if(Math.abs(eF.doc.scrollLeft-ex)>1){eB=true}}if(!eB){return eE}}}function z(ew,ey,eA,ex,ez){var eB=A(ew,ey,eA,ex,ez);if(eB.scrollTop!=null){F(ew,eB.scrollTop)}if(eB.scrollLeft!=null){a3(ew,eB.scrollLeft)}}function A(eC,eK,ez,eJ,ey){var eH=eC.display,eG=aw(eC.display);if(ez<0){ez=0}var ex=eH.scroller.clientHeight-aO,eF=eH.scroller.scrollTop,eE={};var eM=eC.doc.height+a7(eH);var eN=ez<eG,eI=ey>eM-eG;if(ez<eF){eE.scrollTop=eN?0:ez}else{if(ey>eF+ex){var eD=Math.min(ez,(eI?eM:ey)-ex);if(eD!=eF){eE.scrollTop=eD}}}var eB=eH.scroller.clientWidth-aO,ew=eH.scroller.scrollLeft;eK+=eH.gutters.offsetWidth;eJ+=eH.gutters.offsetWidth;var eA=eH.gutters.offsetWidth;var eL=eK<eA+10;if(eK<ew+eA||eL){if(eL){eK=0}eE.scrollLeft=Math.max(0,eK-10-eA)}else{if(eJ>eB+ew-3){eE.scrollLeft=eJ+10-eB}}return eE}function y(ew,ey,ex){ew.curOp.updateScrollPos={scrollLeft:ey==null?ew.doc.scrollLeft:ey,scrollTop:ex==null?ew.doc.scrollTop:ex}}function b0(ex,ez,ey){var eA=ex.curOp.updateScrollPos||(ex.curOp.updateScrollPos={scrollLeft:ex.doc.scrollLeft,scrollTop:ex.doc.scrollTop});var ew=ex.display.scroller;eA.scrollTop=Math.max(0,Math.min(ew.scrollHeight-ew.clientHeight,eA.scrollTop+ey));eA.scrollLeft=Math.max(0,Math.min(ew.scrollWidth-ew.clientWidth,eA.scrollLeft+ez))}function N(eI,ez,eH,ey){var eG=eI.doc;if(eH==null){eH="add"}if(eH=="smart"){if(!eI.doc.mode.indent){eH="prev"}else{var ex=cw(eI,ez)}}var eC=eI.options.tabSize;var eJ=dJ(eG,ez),eB=bg(eJ.text,null,eC);var ew=eJ.text.match(/^\s*/)[0],eE;if(!ey&&!/\S/.test(eJ.text)){eE=0;eH="not"}else{if(eH=="smart"){eE=eI.doc.mode.indent(ex,eJ.text.slice(ew.length),eJ.text);if(eE==bv){if(!ey){return}eH="prev"}}}if(eH=="prev"){if(ez>eG.first){eE=bg(dJ(eG,ez-1).text,null,eC)}else{eE=0}}else{if(eH=="add"){eE=eB+eI.options.indentUnit}else{if(eH=="subtract"){eE=eB-eI.options.indentUnit}else{if(typeof eH=="number"){eE=eB+eH}}}}eE=Math.max(0,eE);var eF="",eD=0;if(eI.options.indentWithTabs){for(var eA=Math.floor(eE/eC);eA;--eA){eD+=eC;eF+="\t"}}if(eD<eE){eF+=bJ(eE-eD)}if(eF!=ew){az(eI.doc,eF,K(ez,0),K(ez,ew.length),"+input")}else{if(eG.sel.head.line==ez&&eG.sel.head.ch<ew.length){bh(eG,K(ez,ew.length),K(ez,ew.length),1)}}eJ.stateAfter=null}function c9(ew,ey,eB){var eA=ey,ex=ey,ez=ew.doc;if(typeof ey=="number"){ex=dJ(ez,cb(ez,ey))}else{eA=bc(ey)}if(eA==null){return null}if(eB(ex,eA)){Q(ew,eA,eA+1)}else{return null}return ex}function aZ(eN,ez,eH,eG,eB){var eE=ez.line,eF=ez.ch,eM=eH;var ew=dJ(eN,eE);var eK=true;function eL(){var eO=eE+eH;if(eO<eN.first||eO>=eN.first+eN.size){return(eK=false)}eE=eO;return ew=dJ(eN,eO)}function eJ(eP){var eO=(eB?q:R)(ew,eF,eH,true);if(eO==null){if(!eP&&eL()){if(eB){eF=(eH<0?b4:bU)(ew)}else{eF=eH<0?ew.text.length:0}}else{return(eK=false)}}else{eF=eO}return true}if(eG=="char"){eJ()}else{if(eG=="column"){eJ(true)}else{if(eG=="word"||eG=="group"){var eI=null,eC=eG=="group";for(var eA=true;;eA=false){if(eH<0&&!eJ(!eA)){break}var ex=ew.text.charAt(eF)||"\n";var ey=bR(ex)?"w":!eC?null:/\s/.test(ex)?null:"p";if(eI&&eI!=ey){if(eH<0){eH=1;eJ()}break}if(ey){eI=ey}if(eH>0&&!eJ(!eA)){break}}}}}var eD=bi(eN,K(eE,eF),eM,true);if(!eK){eD.hitSide=true}return eD}function aV(eE,ez,ew,eD){var eC=eE.doc,eB=ez.left,eA;if(eD=="page"){var ey=Math.min(eE.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight);eA=ez.top+ew*(ey-(ew<0?1.5:0.5)*aw(eE.display))}else{if(eD=="line"){eA=ew>0?ez.bottom+3:ez.top-3}}for(;;){var ex=ed(eE,eB,eA);if(!ex.outside){break}if(ew<0?eA<=0:eA>=eC.height){ex.hitSide=true;break}eA+=ew*5}return ex}function ab(ez,eB){var eA=eB.ch,ey=eB.ch;if(ez){if((eB.xRel<0||ey==ez.length)&&eA){--eA}else{++ey}var ex=ez.charAt(eA);var ew=bR(ex)?bR:/\s/.test(ex)?function(eC){return/\s/.test(eC)}:function(eC){return !/\s/.test(eC)&&!bR(eC)};while(eA>0&&ew(ez.charAt(eA-1))){--eA}while(ey<ez.length&&ew(ez.charAt(ey))){++ey}}return{from:K(eB.line,eA),to:K(eB.line,ey)}}function aQ(ew,ex){eg(ew.doc,K(ex,0),d9(ew.doc,K(ex+1,0)))}B.prototype={constructor:B,focus:function(){window.focus();db(this);w(this)},setOption:function(ey,ez){var ex=this.options,ew=ex[ey];if(ex[ey]==ez&&ey!="mode"){return}ex[ey]=ez;if(aK.hasOwnProperty(ey)){b9(this,aK[ey])(this,ez,ew)}},getOption:function(ew){return this.options[ew]},getDoc:function(){return this.doc},addKeyMap:function(ex,ew){this.state.keyMaps[ew?"push":"unshift"](ex)},removeKeyMap:function(ex){var ey=this.state.keyMaps;for(var ew=0;ew<ey.length;++ew){if(ey[ew]==ex||(typeof ey[ew]!="string"&&ey[ew].name==ex)){ey.splice(ew,1);return true}}},addOverlay:b9(null,function(ew,ex){var ey=ew.token?ew:B.getMode(this.options,ew);if(ey.startState){throw new Error("Overlays may not be stateful.")}this.state.overlays.push({mode:ey,modeSpec:ew,opaque:ex&&ex.opaque});this.state.modeGen++;Q(this)}),removeOverlay:b9(null,function(ew){var ey=this.state.overlays;for(var ex=0;ex<ey.length;++ex){var ez=ey[ex].modeSpec;if(ez==ew||typeof ew=="string"&&ez.name==ew){ey.splice(ex,1);this.state.modeGen++;Q(this);return}}}),indentLine:b9(null,function(ey,ew,ex){if(typeof ew!="string"&&typeof ew!="number"){if(ew==null){ew=this.options.smartIndent?"smart":"prev"}else{ew=ew?"add":"subtract"}}if(bt(this.doc,ey)){N(this,ey,ew,ex)}}),indentSelection:b9(null,function(ex){var ey=this.doc.sel;if(d8(ey.from,ey.to)){return N(this,ey.from.line,ex,true)}var ez=ey.to.line-(ey.to.ch?0:1);for(var ew=ey.from.line;ew<=ez;++ew){N(this,ew,ex)}}),getTokenAt:function(eD,ex){var eA=this.doc;eD=d9(eA,eD);var ez=cw(this,eD.line,ex),eC=this.doc.mode;var ew=dJ(eA,eD.line);var eB=new ds(ew.text,this.options.tabSize);while(eB.pos<eD.ch&&!eB.eol()){eB.start=eB.pos;var ey=eC.token(eB,ez)}return{start:eB.start,end:eB.pos,string:eB.current(),className:ey||null,type:ey||null,state:ez}},getTokenTypeAt:function(eB){eB=d9(this.doc,eB);var ey=cd(this,dJ(this.doc,eB.line));var ez=0,eA=(ey.length-1)/2,ex=eB.ch;if(ex==0){return ey[2]}for(;;){var ew=(ez+eA)>>1;if((ew?ey[ew*2-1]:0)>=ex){eA=ew}else{if(ey[ew*2+1]<ex){ez=ew+1}else{return ey[ew*2+2]}}}},getModeAt:function(ex){var ew=this.doc.mode;if(!ew.innerMode){return ew}return B.innerMode(ew,this.getTokenAt(ex).state).mode},getHelper:function(ex,ew){return this.getHelpers(ex,ew)[0]},getHelpers:function(eD,ey){var ez=[];if(!dS.hasOwnProperty(ey)){return dS}var ew=dS[ey],eC=this.getModeAt(eD);if(typeof eC[ey]=="string"){if(ew[eC[ey]]){ez.push(ew[eC[ey]])}}else{if(eC[ey]){for(var ex=0;ex<eC[ey].length;ex++){var eB=ew[eC[ey][ex]];if(eB){ez.push(eB)}}}else{if(eC.helperType&&ew[eC.helperType]){ez.push(ew[eC.helperType])}else{if(ew[eC.name]){ez.push(ew[eC.name])}}}}for(var ex=0;ex<ew._global.length;ex++){var eA=ew._global[ex];if(eA.pred(eC,this)&&cl(ez,eA.val)==-1){ez.push(eA.val)}}return ez},getStateAfter:function(ex,ew){var ey=this.doc;ex=cb(ey,ex==null?ey.first+ey.size-1:ex);return cw(this,ex+1,ew)},cursorCoords:function(ez,ex){var ey,ew=this.doc.sel;if(ez==null){ey=ew.head}else{if(typeof ez=="object"){ey=d9(this.doc,ez)}else{ey=ez?ew.from:ew.to}}return cH(this,ey,ex||"page")},charCoords:function(ex,ew){return bZ(this,d9(this.doc,ex),ew||"page")},coordsChar:function(ew,ex){ew=es(this,ew,ex||"page");return ed(this,ew.left,ew.top)},lineAtHeight:function(ew,ex){ew=es(this,{top:ew,left:0},ex||"page").top;return a5(this.doc,ew+this.display.viewOffset)},heightAtLine:function(ex,eA){var ew=false,ez=this.doc.first+this.doc.size-1;if(ex<this.doc.first){ex=this.doc.first}else{if(ex>ez){ex=ez;ew=true}}var ey=dJ(this.doc,ex);return dp(this,dJ(this.doc,ex),{top:0,left:0},eA||"page").top+(ew?ey.height:0)},defaultTextHeight:function(){return aw(this.display)},defaultCharWidth:function(){return cy(this.display)},setGutterMarker:b9(null,function(ew,ex,ey){return c9(this,ew,function(ez){var eA=ez.gutterMarkers||(ez.gutterMarkers={});eA[ex]=ey;if(!ey&&dt(eA)){ez.gutterMarkers=null}return true})}),clearGutter:b9(null,function(ey){var ew=this,ez=ew.doc,ex=ez.first;ez.iter(function(eA){if(eA.gutterMarkers&&eA.gutterMarkers[ey]){eA.gutterMarkers[ey]=null;Q(ew,ex,ex+1);if(dt(eA.gutterMarkers)){eA.gutterMarkers=null}}++ex})}),addLineClass:b9(null,function(ey,ex,ew){return c9(this,ey,function(ez){var eA=ex=="text"?"textClass":ex=="background"?"bgClass":"wrapClass";if(!ez[eA]){ez[eA]=ew}else{if(new RegExp("(?:^|\\s)"+ew+"(?:$|\\s)").test(ez[eA])){return false}else{ez[eA]+=" "+ew}}return true})}),removeLineClass:b9(null,function(ey,ex,ew){return c9(this,ey,function(eA){var eD=ex=="text"?"textClass":ex=="background"?"bgClass":"wrapClass";var eC=eA[eD];if(!eC){return false}else{if(ew==null){eA[eD]=null}else{var eB=eC.match(new RegExp("(?:^|\\s+)"+ew+"(?:$|\\s+)"));if(!eB){return false}var ez=eB.index+eB[0].length;eA[eD]=eC.slice(0,eB.index)+(!eB.index||ez==eC.length?"":" ")+eC.slice(ez)||null}}return true})}),addLineWidget:b9(null,function(ey,ex,ew){return a6(this,ey,ex,ew)}),removeLineWidget:function(ew){ew.clear()},lineInfo:function(ew){if(typeof ew=="number"){if(!bt(this.doc,ew)){return null}var ex=ew;ew=dJ(this.doc,ew);if(!ew){return null}}else{var ex=bc(ew);if(ex==null){return null}}return{line:ex,handle:ew,text:ew.text,gutterMarkers:ew.gutterMarkers,textClass:ew.textClass,bgClass:ew.bgClass,wrapClass:ew.wrapClass,widgets:ew.widgets}},getViewport:function(){return{from:this.display.showingFrom,to:this.display.showingTo}},addWidget:function(eB,ey,eD,ez,eF){var eA=this.display;eB=cH(this,d9(this.doc,eB));var eC=eB.bottom,ex=eB.left;ey.style.position="absolute";eA.sizer.appendChild(ey);if(ez=="over"){eC=eB.top}else{if(ez=="above"||ez=="near"){var ew=Math.max(eA.wrapper.clientHeight,this.doc.height),eE=Math.max(eA.sizer.clientWidth,eA.lineSpace.clientWidth);if((ez=="above"||eB.bottom+ey.offsetHeight>ew)&&eB.top>ey.offsetHeight){eC=eB.top-ey.offsetHeight}else{if(eB.bottom+ey.offsetHeight<=ew){eC=eB.bottom}}if(ex+ey.offsetWidth>eE){ex=eE-ey.offsetWidth}}}ey.style.top=eC+"px";ey.style.left=ey.style.right="";if(eF=="right"){ex=eA.sizer.clientWidth-ey.offsetWidth;ey.style.right="0px"}else{if(eF=="left"){ex=0}else{if(eF=="middle"){ex=(eA.sizer.clientWidth-ey.offsetWidth)/2}}ey.style.left=ex+"px"}if(eD){z(this,ex,eC,ex+ey.offsetWidth,eC+ey.offsetHeight)}},triggerOnKeyDown:b9(null,m),execCommand:function(ew){if(dd.hasOwnProperty(ew)){return dd[ew](this)}},findPosH:function(eC,ez,eA,ex){var ew=1;if(ez<0){ew=-1;ez=-ez}for(var ey=0,eB=d9(this.doc,eC);ey<ez;++ey){eB=aZ(this.doc,eB,ew,eA,ex);if(eB.hitSide){break}}return eB},moveH:b9(null,function(ew,ex){var ey=this.doc.sel,ez;if(ey.shift||ey.extend||d8(ey.from,ey.to)){ez=aZ(this.doc,ey.head,ew,ex,this.options.rtlMoveVisually)}else{ez=ew<0?ey.from:ey.to}eg(this.doc,ez,ez,ew)}),deleteH:b9(null,function(ew,ex){var ey=this.doc.sel;if(!d8(ey.from,ey.to)){az(this.doc,"",ey.from,ey.to,"+delete")}else{az(this.doc,"",ey.from,aZ(this.doc,ey.head,ew,ex,false),"+delete")}this.curOp.userSelChange=true}),findPosV:function(eB,ey,eC,eE){var ew=1,eA=eE;if(ey<0){ew=-1;ey=-ey}for(var ex=0,eD=d9(this.doc,eB);ex<ey;++ex){var ez=cH(this,eD,"div");if(eA==null){eA=ez.left}else{ez.left=eA}eD=aV(this,ez,ew,eC);if(eD.hitSide){break}}return eD},moveV:b9(null,function(ex,ey){var ez=this.doc.sel,eA,ew;if(ez.shift||ez.extend||d8(ez.from,ez.to)){var eB=cH(this,ez.head,"div");if(ez.goalColumn!=null){eB.left=ez.goalColumn}eA=aV(this,eB,ex,ey);if(ey=="page"){b0(this,0,bZ(this,eA,"div").top-eB.top)}ew=eB.left}else{eA=ex<0?ez.from:ez.to}eg(this.doc,eA,eA,ex);if(ew!=null){ez.goalColumn=ew}}),toggleOverwrite:function(ew){if(ew!=null&&ew==this.state.overwrite){return}if(this.state.overwrite=!this.state.overwrite){this.display.cursor.className+=" CodeMirror-overwrite"}else{this.display.cursor.className=this.display.cursor.className.replace(" CodeMirror-overwrite","")}},hasFocus:function(){return this.state.focused},scrollTo:b9(null,function(ew,ex){y(this,ew,ex)}),getScrollInfo:function(){var ew=this.display.scroller,ex=aO;return{left:ew.scrollLeft,top:ew.scrollTop,height:ew.scrollHeight-ex,width:ew.scrollWidth-ex,clientHeight:ew.clientHeight-ex,clientWidth:ew.clientWidth-ex}},scrollIntoView:b9(null,function(ex,ez){if(ex==null){ex={from:this.doc.sel.head,to:null}}else{if(typeof ex=="number"){ex={from:K(ex,0),to:null}}else{if(ex.from==null){ex={from:ex,to:null}}}}if(!ex.to){ex.to=ex.from}if(!ez){ez=0}var ey=ex;if(ex.from.line!=null){this.curOp.scrollToPos={from:ex.from,to:ex.to,margin:ez};ey={from:cH(this,ex.from),to:cH(this,ex.to)}}var ew=A(this,Math.min(ey.from.left,ey.to.left),Math.min(ey.from.top,ey.to.top)-ez,Math.max(ey.from.right,ey.to.right),Math.max(ey.from.bottom,ey.to.bottom)+ez);y(this,ew.scrollLeft,ew.scrollTop)}),setSize:b9(null,function(ey,ew){function ex(ez){return typeof ez=="number"||/^\d+$/.test(String(ez))?ez+"px":ez}if(ey!=null){this.display.wrapper.style.width=ex(ey)}if(ew!=null){this.display.wrapper.style.height=ex(ew)}if(this.options.lineWrapping){this.display.measureLineCache.length=this.display.measureLineCachePos=0}this.curOp.forceUpdate=true}),operation:function(ew){return b1(this,ew)},refresh:b9(null,function(){var ew=this.display.cachedTextHeight==null;T(this);y(this,this.doc.scrollLeft,this.doc.scrollTop);Q(this);if(ew){L(this)}}),swapDoc:b9(null,function(ex){var ew=this.doc;ew.cm=null;cQ(this,ex);T(this);dU(this,true);y(this,ex.scrollLeft,ex.scrollTop);O(this,"swapDoc",this,ew);return ew}),getInputField:function(){return this.display.input},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}};a0(B);var aK=B.optionHandlers={};var dA=B.defaults={};function o(ew,ez,ey,ex){B.defaults[ew]=ez;if(ey){aK[ew]=ex?function(eA,eC,eB){if(eB!=bw){ey(eA,eC,eB)}}:ey}}var bw=B.Init={toString:function(){return"CodeMirror.Init"}};o("value","",function(ew,ex){ew.setValue(ex)},true);o("mode",null,function(ew,ex){ew.doc.modeOption=ex;aW(ew)},true);o("indentUnit",2,aW,true);o("indentWithTabs",false);o("smartIndent",true);o("tabSize",4,function(ew){cZ(ew);T(ew);Q(ew)},true);o("specialChars",/[\t\u0000-\u0019\u00ad\u200b\u2028\u2029\ufeff]/g,function(ew,ex){ew.options.specialChars=new RegExp(ex.source+(ex.test("\t")?"":"|\t"),"g");ew.refresh()},true);o("specialCharPlaceholder",dH,function(ew){ew.refresh()},true);o("electricChars",true);o("rtlMoveVisually",!ao);o("wholeLineUpdateBefore",true);o("theme","default",function(ew){b2(ew);ct(ew)},true);o("keyMap","default",et);o("extraKeys",null);o("onKeyEvent",null);o("onDragEvent",null);o("lineWrapping",false,dj,true);o("gutters",[],function(ew){by(ew.options);ct(ew)},true);o("fixedGutter",true,function(ew,ex){ew.display.gutters.style.left=ex?cJ(ew.display)+"px":"0";ew.refresh()},true);o("coverGutterNextToScrollbar",false,dw,true);o("lineNumbers",false,function(ew){by(ew.options);ct(ew)},true);o("firstLineNumber",1,ct,true);o("lineNumberFormatter",function(ew){return ew},ct,true);o("showCursorWhenSelecting",false,a2,true);o("resetSelectionOnContextMenu",true);o("readOnly",false,function(ew,ex){if(ex=="nocursor"){au(ew);ew.display.input.blur();ew.display.disabled=true}else{ew.display.disabled=false;if(!ex){dU(ew,true)}}});o("disableInput",false,function(ew,ex){if(!ex){dU(ew,true)}},true);o("dragDrop",true);o("cursorBlinkRate",530);o("cursorScrollMargin",0);o("cursorHeight",1);o("workTime",100);o("workDelay",100);o("flattenSpans",true,cZ,true);o("addModeClass",false,cZ,true);o("pollInterval",100);o("undoDepth",40,function(ew,ex){ew.doc.history.undoDepth=ex});o("historyEventDelay",500);o("viewportMargin",10,function(ew){ew.refresh()},true);o("maxHighlightLength",10000,cZ,true);o("crudeMeasuringFrom",10000);o("moveInputWithCursor",true,function(ew,ex){if(!ex){ew.display.inputDiv.style.top=ew.display.inputDiv.style.left=0}});o("tabindex",null,function(ew,ex){ew.display.input.tabIndex=ex||""});o("autofocus",null);var cq=B.modes={},at=B.mimeModes={};B.defineMode=function(ew,ey){if(!B.defaults.mode&&ew!="null"){B.defaults.mode=ew}if(arguments.length>2){ey.dependencies=[];for(var ex=2;ex<arguments.length;++ex){ey.dependencies.push(arguments[ex])}}cq[ew]=ey};B.defineMIME=function(ex,ew){at[ex]=ew};B.resolveMode=function(ew){if(typeof ew=="string"&&at.hasOwnProperty(ew)){ew=at[ew]}else{if(ew&&typeof ew.name=="string"&&at.hasOwnProperty(ew.name)){var ex=at[ew.name];ew=bD(ex,ew);ew.name=ex.name}else{if(typeof ew=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(ew)){return B.resolveMode("application/xml")}}}if(typeof ew=="string"){return{name:ew}}else{return ew||{name:"null"}}};B.getMode=function(ex,ew){var ew=B.resolveMode(ew);var ez=cq[ew.name];if(!ez){return B.getMode(ex,"text/plain")}var eA=ez(ex,ew);if(co.hasOwnProperty(ew.name)){var ey=co[ew.name];for(var eB in ey){if(!ey.hasOwnProperty(eB)){continue}if(eA.hasOwnProperty(eB)){eA["_"+eB]=eA[eB]}eA[eB]=ey[eB]}}eA.name=ew.name;if(ew.helperType){eA.helperType=ew.helperType}if(ew.modeProps){for(var eB in ew.modeProps){eA[eB]=ew.modeProps[eB]}}return eA};B.defineMode("null",function(){return{token:function(ew){ew.skipToEnd()}}});B.defineMIME("text/plain","null");var co=B.modeExtensions={};B.extendMode=function(ey,ex){var ew=co.hasOwnProperty(ey)?co[ey]:(co[ey]={});am(ex,ew)};B.defineExtension=function(ew,ex){B.prototype[ew]=ex};B.defineDocExtension=function(ew,ex){aa.prototype[ew]=ex};B.defineOption=o;var aE=[];B.defineInitHook=function(ew){aE.push(ew)};var dS=B.helpers={};B.registerHelper=function(ex,ew,ey){if(!dS.hasOwnProperty(ex)){dS[ex]=B[ex]={_global:[]}}dS[ex][ew]=ey};B.registerGlobalHelper=function(ey,ex,ew,ez){B.registerHelper(ey,ex,ez);dS[ey]._global.push({pred:ew,val:ez})};B.isWordChar=bR;function bo(ez,ew){if(ew===true){return ew}if(ez.copyState){return ez.copyState(ew)}var ey={};for(var eA in ew){var ex=ew[eA];if(ex instanceof Array){ex=ex.concat([])}ey[eA]=ex}return ey}B.copyState=bo;function bm(ey,ex,ew){return ey.startState?ey.startState(ex,ew):true}B.startState=bm;B.innerMode=function(ey,ew){while(ey.innerMode){var ex=ey.innerMode(ew);if(!ex||ex.mode==ey){break}ew=ex.state;ey=ex.mode}return ex||{mode:ey,state:ew}};var dd=B.commands={selectAll:function(ew){ew.setSelection(K(ew.firstLine(),0),K(ew.lastLine()))},killLine:function(ew){var ez=ew.getCursor(true),ey=ew.getCursor(false),ex=!d8(ez,ey);if(!ex&&ew.getLine(ez.line).length==ez.ch){ew.replaceRange("",ez,K(ez.line+1,0),"+delete")}else{ew.replaceRange("",ez,ex?ey:K(ez.line),"+delete")}},deleteLine:function(ew){var ex=ew.getCursor().line;ew.replaceRange("",K(ex,0),K(ex),"+delete")},delLineLeft:function(ew){var ex=ew.getCursor();ew.replaceRange("",K(ex.line,0),ex,"+delete")},undo:function(ew){ew.undo()},redo:function(ew){ew.redo()},goDocStart:function(ew){ew.extendSelection(K(ew.firstLine(),0))},goDocEnd:function(ew){ew.extendSelection(K(ew.lastLine()))},goLineStart:function(ew){ew.extendSelection(aY(ew,ew.getCursor().line))},goLineStartSmart:function(ex){var eB=ex.getCursor(),eC=aY(ex,eB.line);var ey=ex.getLineHandle(eC.line);var ew=a(ey);if(!ew||ew[0].level==0){var eA=Math.max(0,ey.text.search(/\S/));var ez=eB.line==eC.line&&eB.ch<=eA&&eB.ch;ex.extendSelection(K(eC.line,ez?0:eA))}else{ex.extendSelection(eC)}},goLineEnd:function(ew){ew.extendSelection(cE(ew,ew.getCursor().line))},goLineRight:function(ew){var ex=ew.charCoords(ew.getCursor(),"div").top+5;ew.extendSelection(ew.coordsChar({left:ew.display.lineDiv.offsetWidth+100,top:ex},"div"))},goLineLeft:function(ew){var ex=ew.charCoords(ew.getCursor(),"div").top+5;ew.extendSelection(ew.coordsChar({left:0,top:ex},"div"))},goLineUp:function(ew){ew.moveV(-1,"line")},goLineDown:function(ew){ew.moveV(1,"line")},goPageUp:function(ew){ew.moveV(-1,"page")},goPageDown:function(ew){ew.moveV(1,"page")},goCharLeft:function(ew){ew.moveH(-1,"char")},goCharRight:function(ew){ew.moveH(1,"char")},goColumnLeft:function(ew){ew.moveH(-1,"column")},goColumnRight:function(ew){ew.moveH(1,"column")},goWordLeft:function(ew){ew.moveH(-1,"word")},goGroupRight:function(ew){ew.moveH(1,"group")},goGroupLeft:function(ew){ew.moveH(-1,"group")},goWordRight:function(ew){ew.moveH(1,"word")},delCharBefore:function(ew){ew.deleteH(-1,"char")},delCharAfter:function(ew){ew.deleteH(1,"char")},delWordBefore:function(ew){ew.deleteH(-1,"word")},delWordAfter:function(ew){ew.deleteH(1,"word")},delGroupBefore:function(ew){ew.deleteH(-1,"group")},delGroupAfter:function(ew){ew.deleteH(1,"group")},indentAuto:function(ew){ew.indentSelection("smart")},indentMore:function(ew){ew.indentSelection("add")},indentLess:function(ew){ew.indentSelection("subtract")},insertTab:function(ew){ew.replaceSelection("\t","end","+input")},defaultTab:function(ew){if(ew.somethingSelected()){ew.indentSelection("add")}else{ew.replaceSelection("\t","end","+input")}},transposeChars:function(ew){var ey=ew.getCursor(),ex=ew.getLine(ey.line);if(ey.ch>0&&ey.ch<ex.length-1){ew.replaceRange(ex.charAt(ey.ch)+ex.charAt(ey.ch-1),K(ey.line,ey.ch-1),K(ey.line,ey.ch+1))}},newlineAndIndent:function(ew){b9(ew,function(){ew.replaceSelection("\n","end","+input");ew.indentLine(ew.getCursor().line,null,true)})()},toggleOverwrite:function(ew){ew.toggleOverwrite()}};var dF=B.keyMap={};dF.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite"};dF.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Alt-Up":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Down":"goDocEnd","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore",fallthrough:"basic"};dF.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineStart","Cmd-Right":"goLineEnd","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delLineLeft",fallthrough:["basic","emacsy"]};dF["default"]=bq?dF.macDefault:dF.pcDefault;dF.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars"};function eh(ew){if(typeof ew=="string"){return dF[ew]}else{return ew}}function g(ex,eB,ez){function eA(eH){eH=eh(eH);var eF=eH[ex];if(eF===false){return"stop"}if(eF!=null&&ez(eF)){return true}if(eH.nofallthrough){return"stop"}var eE=eH.fallthrough;if(eE==null){return false}if(Object.prototype.toString.call(eE)!="[object Array]"){return eA(eE)}for(var eD=0,eG=eE.length;eD<eG;++eD){var eC=eA(eE[eD]);if(eC){return eC}}return false}for(var ey=0;ey<eB.length;++ey){var ew=eA(eB[ey]);if(ew){return ew!="stop"}}}function dc(ex){var ew=dL[ex.keyCode];return ew=="Ctrl"||ew=="Alt"||ew=="Shift"||ew=="Mod"}function dW(ex,ey){if(d1&&ex.keyCode==34&&ex["char"]){return false}var ew=dL[ex.keyCode];if(ew==null||ex.altGraphKey){return false}if(ex.altKey){ew="Alt-"+ew}if(be?ex.metaKey:ex.ctrlKey){ew="Ctrl-"+ew}if(be?ex.ctrlKey:ex.metaKey){ew="Cmd-"+ew}if(!ey&&ex.shiftKey){ew="Shift-"+ew}return ew}B.lookupKey=g;B.isModifierKey=dc;B.keyName=dW;B.fromTextArea=function(eD,eE){if(!eE){eE={}}eE.value=eD.value;if(!eE.tabindex&&eD.tabindex){eE.tabindex=eD.tabindex}if(!eE.placeholder&&eD.placeholder){eE.placeholder=eD.placeholder}if(eE.autofocus==null){var ew=document.body;try{ew=document.activeElement}catch(ey){}eE.autofocus=ew==eD||eD.getAttribute("autofocus")!=null&&ew==document.body}function eA(){eD.value=eC.getValue()}if(eD.form){bk(eD.form,"submit",eA);if(!eE.leaveSubmitMethodAlone){var ex=eD.form,eB=ex.submit;try{var ez=ex.submit=function(){eA();ex.submit=eB;ex.submit();ex.submit=ez}}catch(ey){}}}eD.style.display="none";var eC=B(function(eF){eD.parentNode.insertBefore(eF,eD.nextSibling)},eE);eC.save=eA;eC.getTextArea=function(){return eD};eC.toTextArea=function(){eA();eD.parentNode.removeChild(eC.getWrapperElement());eD.style.display="";if(eD.form){cT(eD.form,"submit",eA);if(typeof eD.form.submit=="function"){eD.form.submit=eB}}};return eC};function ds(ew,ex){this.pos=this.start=0;this.string=ew;this.tabSize=ex||8;this.lastColumnPos=this.lastColumnValue=0;this.lineStart=0}ds.prototype={eol:function(){return this.pos>=this.string.length},sol:function(){return this.pos==this.lineStart},peek:function(){return this.string.charAt(this.pos)||undefined},next:function(){if(this.pos<this.string.length){return this.string.charAt(this.pos++)}},eat:function(ew){var ey=this.string.charAt(this.pos);if(typeof ew=="string"){var ex=ey==ew}else{var ex=ey&&(ew.test?ew.test(ey):ew(ey))}if(ex){++this.pos;return ey}},eatWhile:function(ew){var ex=this.pos;while(this.eat(ew)){}return this.pos>ex},eatSpace:function(){var ew=this.pos;while(/[\s\u00a0]/.test(this.string.charAt(this.pos))){++this.pos}return this.pos>ew},skipToEnd:function(){this.pos=this.string.length},skipTo:function(ew){var ex=this.string.indexOf(ew,this.pos);if(ex>-1){this.pos=ex;return true}},backUp:function(ew){this.pos-=ew},column:function(){if(this.lastColumnPos<this.start){this.lastColumnValue=bg(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue);this.lastColumnPos=this.start}return this.lastColumnValue-(this.lineStart?bg(this.string,this.lineStart,this.tabSize):0)},indentation:function(){return bg(this.string,null,this.tabSize)-(this.lineStart?bg(this.string,this.lineStart,this.tabSize):0)},match:function(eA,ex,ew){if(typeof eA=="string"){var eB=function(eC){return ew?eC.toLowerCase():eC};var ez=this.string.substr(this.pos,eA.length);if(eB(ez)==eB(eA)){if(ex!==false){this.pos+=eA.length}return true}}else{var ey=this.string.slice(this.pos).match(eA);if(ey&&ey.index>0){return null}if(ey&&ex!==false){this.pos+=ey[0].length}return ey}},current:function(){return this.string.slice(this.start,this.pos)},hideFirstChars:function(ex,ew){this.lineStart+=ex;try{return ew()}finally{this.lineStart-=ex}}};B.StringStream=ds;function H(ex,ew){this.lines=[];this.type=ew;this.doc=ex}B.TextMarker=H;a0(H);H.prototype.clear=function(){if(this.explicitlyCleared){return}var eD=this.doc.cm,ex=eD&&!eD.curOp;if(ex){bY(eD)}if(dP(this,"clear")){var eE=this.find();if(eE){O(this,"clear",eE.from,eE.to)}}var ey=null,eB=null;for(var ez=0;ez<this.lines.length;++ez){var eF=this.lines[ez];var eC=dE(eF.markedSpans,this);if(eC.to!=null){eB=bc(eF)}eF.markedSpans=dk(eF.markedSpans,eC);if(eC.from!=null){ey=bc(eF)}else{if(this.collapsed&&!dZ(this.doc,eF)&&eD){eo(eF,aw(eD.display))}}}if(eD&&this.collapsed&&!eD.options.lineWrapping){for(var ez=0;ez<this.lines.length;++ez){var ew=u(eD.doc,this.lines[ez]),eA=c0(eD.doc,ew);if(eA>eD.display.maxLineLength){eD.display.maxLine=ew;eD.display.maxLineLength=eA;eD.display.maxLineChanged=true}}}if(ey!=null&&eD){Q(eD,ey,eB+1)}this.lines.length=0;this.explicitlyCleared=true;if(this.atomic&&this.doc.cantEdit){this.doc.cantEdit=false;if(eD){c7(eD)}}if(ex){W(eD)}};H.prototype.find=function(eA){var eC,eB;for(var ex=0;ex<this.lines.length;++ex){var ew=this.lines[ex];var ey=dE(ew.markedSpans,this);if(ey.from!=null||ey.to!=null){var ez=bc(ew);if(ey.from!=null){eC=K(ez,ey.from)}if(ey.to!=null){eB=K(ez,ey.to)}}}if(this.type=="bookmark"&&!eA){return eC}return eC&&{from:eC,to:eB}};H.prototype.changed=function(){var ez=this.find(),ew=this.doc.cm;if(!ez||!ew){return}if(this.type!="bookmark"){ez=ez.from}var ex=dJ(this.doc,ez.line);ec(ew,ex);if(ez.line>=ew.display.showingFrom&&ez.line<ew.display.showingTo){for(var ey=ew.display.lineDiv.firstChild;ey;ey=ey.nextSibling){if(ey.lineObj==ex){if(ey.offsetHeight!=ex.height){eo(ex,ey.offsetHeight)}break}}b1(ew,function(){ew.curOp.selectionChanged=ew.curOp.forceUpdate=ew.curOp.updateMaxLine=true})}};H.prototype.attachLine=function(ew){if(!this.lines.length&&this.doc.cm){var ex=this.doc.cm.curOp;if(!ex.maybeHiddenMarkers||cl(ex.maybeHiddenMarkers,this)==-1){(ex.maybeUnhiddenMarkers||(ex.maybeUnhiddenMarkers=[])).push(this)}}this.lines.push(ew)};H.prototype.detachLine=function(ew){this.lines.splice(cl(this.lines,ew),1);if(!this.lines.length&&this.doc.cm){var ex=this.doc.cm.curOp;(ex.maybeHiddenMarkers||(ex.maybeHiddenMarkers=[])).push(this)}};var aB=0;function dh(eC,eA,eB,eE,ez){if(eE&&eE.shared){return G(eC,eA,eB,eE,ez)}if(eC.cm&&!eC.cm.curOp){return b9(eC.cm,dh)(eC,eA,eB,eE,ez)}var ey=new H(eC,ez);if(eE){am(eE,ey)}if(dK(eB,eA)||d8(eA,eB)&&ey.clearWhenEmpty!==false){return ey}if(ey.replacedWith){ey.collapsed=true;ey.replacedWith=ej("span",[ey.replacedWith],"CodeMirror-widget");if(!eE.handleMouseEvents){ey.replacedWith.ignoreEvents=true}}if(ey.collapsed){if(v(eC,eA.line,eA,eB,ey)||eA.line!=eB.line&&v(eC,eB.line,eA,eB,ey)){throw new Error("Inserting collapsed marker partially overlapping an existing one")}aD=true}if(ey.addToHistory){di(eC,{from:eA,to:eB,origin:"markText"},{head:eC.sel.head,anchor:eC.sel.anchor},NaN)}var ex=eA.line,eD=eC.cm,ew;eC.iter(ex,eB.line+1,function(eF){if(eD&&ey.collapsed&&!eD.options.lineWrapping&&u(eC,eF)==eD.display.maxLine){ew=true}var eG={from:null,to:null,marker:ey};if(ex==eA.line){eG.from=eA.ch}if(ex==eB.line){eG.to=eB.ch}if(ey.collapsed&&ex!=eA.line){eo(eF,0)}bx(eF,eG);++ex});if(ey.collapsed){eC.iter(eA.line,eB.line+1,function(eF){if(dZ(eC,eF)){eo(eF,0)}})}if(ey.clearOnEnter){bk(ey,"beforeCursorEnter",function(){ey.clear()})}if(ey.readOnly){eq=true;if(eC.history.done.length||eC.history.undone.length){eC.clearHistory()}}if(ey.collapsed){ey.id=++aB;ey.atomic=true}if(eD){if(ew){eD.curOp.updateMaxLine=true}if(ey.className||ey.title||ey.startStyle||ey.endStyle||ey.collapsed){Q(eD,eA.line,eB.line+1)}if(ey.atomic){c7(eD)}}return ey}function t(ez,ex){this.markers=ez;this.primary=ex;for(var ew=0,ey=this;ew<ez.length;++ew){ez[ew].parent=this;bk(ez[ew],"clear",function(){ey.clear()})}}B.SharedTextMarker=t;a0(t);t.prototype.clear=function(){if(this.explicitlyCleared){return}this.explicitlyCleared=true;for(var ew=0;ew<this.markers.length;++ew){this.markers[ew].clear()}O(this,"clear")};t.prototype.find=function(){return this.primary.find()};function G(eA,eD,eC,ew,ey){ew=am(ew);ew.shared=false;var eB=[dh(eA,eD,eC,ew,ey)],ex=eB[0];var ez=ew.replacedWith;cN(eA,function(eF){if(ez){ew.replacedWith=ez.cloneNode(true)}eB.push(dh(eF,d9(eF,eD),d9(eF,eC),ew,ey));for(var eE=0;eE<eF.linked.length;++eE){if(eF.linked[eE].isParent){return}}ex=d7(eB)});return new t(eB,ex)}function dE(ey,ew){if(ey){for(var ex=0;ex<ey.length;++ex){var ez=ey[ex];if(ez.marker==ew){return ez}}}}function dk(ex,ey){for(var ez,ew=0;ew<ex.length;++ew){if(ex[ew]!=ey){(ez||(ez=[])).push(ex[ew])}}return ez}function bx(ew,ex){ew.markedSpans=ew.markedSpans?ew.markedSpans.concat([ex]):[ex];ex.marker.attachLine(ew)}function aq(ex,ey,eC){if(ex){for(var eA=0,eD;eA<ex.length;++eA){var eE=ex[eA],eB=eE.marker;var ew=eE.from==null||(eB.inclusiveLeft?eE.from<=ey:eE.from<ey);if(ew||eE.from==ey&&eB.type=="bookmark"&&(!eC||!eE.marker.insertLeft)){var ez=eE.to==null||(eB.inclusiveRight?eE.to>=ey:eE.to>ey);(eD||(eD=[])).push({from:eE.from,to:ez?null:eE.to,marker:eB})}}}return eD}function af(ex,ez,eC){if(ex){for(var eA=0,eD;eA<ex.length;++eA){var eE=ex[eA],eB=eE.marker;var ey=eE.to==null||(eB.inclusiveRight?eE.to>=ez:eE.to>ez);if(ey||eE.from==ez&&eB.type=="bookmark"&&(!eC||eE.marker.insertLeft)){var ew=eE.from==null||(eB.inclusiveLeft?eE.from<=ez:eE.from<ez);(eD||(eD=[])).push({from:ew?null:eE.from-ez,to:eE.to==null?null:eE.to-ez,marker:eB})}}}return eD}function cY(eI,eF){var eE=bt(eI,eF.from.line)&&dJ(eI,eF.from.line).markedSpans;var eL=bt(eI,eF.to.line)&&dJ(eI,eF.to.line).markedSpans;if(!eE&&!eL){return null}var ex=eF.from.ch,eA=eF.to.ch,eD=d8(eF.from,eF.to);var eC=aq(eE,ex,eD);var eK=af(eL,eA,eD);var eJ=eF.text.length==1,ey=d7(eF.text).length+(eJ?ex:0);if(eC){for(var ez=0;ez<eC.length;++ez){var eH=eC[ez];if(eH.to==null){var eM=dE(eK,eH.marker);if(!eM){eH.to=ex}else{if(eJ){eH.to=eM.to==null?null:eM.to+ey}}}}}if(eK){for(var ez=0;ez<eK.length;++ez){var eH=eK[ez];if(eH.to!=null){eH.to+=ey}if(eH.from==null){var eM=dE(eC,eH.marker);if(!eM){eH.from=ey;if(eJ){(eC||(eC=[])).push(eH)}}}else{eH.from+=ey;if(eJ){(eC||(eC=[])).push(eH)}}}}if(eC){eC=n(eC)}if(eK&&eK!=eC){eK=n(eK)}var eB=[eC];if(!eJ){var eG=eF.text.length-2,ew;if(eG>0&&eC){for(var ez=0;ez<eC.length;++ez){if(eC[ez].to==null){(ew||(ew=[])).push({from:null,to:null,marker:eC[ez].marker})}}}for(var ez=0;ez<eG;++ez){eB.push(ew)}eB.push(eK)}return eB}function n(ex){for(var ew=0;ew<ex.length;++ew){var ey=ex[ew];if(ey.from!=null&&ey.from==ey.to&&ey.marker.clearWhenEmpty!==false){ex.splice(ew--,1)}}if(!ex.length){return null}return ex}function cP(eE,eC){var ew=br(eE,eC);var eF=cY(eE,eC);if(!ew){return eF}if(!eF){return ew}for(var ez=0;ez<ew.length;++ez){var eA=ew[ez],eB=eF[ez];if(eA&&eB){spans:for(var ey=0;ey<eB.length;++ey){var eD=eB[ey];for(var ex=0;ex<eA.length;++ex){if(eA[ex].marker==eD.marker){continue spans}}eA.push(eD)}}else{if(eB){ew[ez]=eB}}}return ew}function bW(eG,eE,eF){var ez=null;eG.iter(eE.line,eF.line+1,function(eH){if(eH.markedSpans){for(var eI=0;eI<eH.markedSpans.length;++eI){var eJ=eH.markedSpans[eI].marker;if(eJ.readOnly&&(!ez||cl(ez,eJ)==-1)){(ez||(ez=[])).push(eJ)}}}});if(!ez){return null}var eA=[{from:eE,to:eF}];for(var eB=0;eB<ez.length;++eB){var eC=ez[eB],ex=eC.find();for(var ey=0;ey<eA.length;++ey){var ew=eA[ey];if(dK(ew.to,ex.from)||dK(ex.to,ew.from)){continue}var eD=[ey,1];if(dK(ew.from,ex.from)||!eC.inclusiveLeft&&d8(ew.from,ex.from)){eD.push({from:ew.from,to:ex.from})}if(dK(ex.to,ew.to)||!eC.inclusiveRight&&d8(ew.to,ex.to)){eD.push({from:ex.to,to:ew.to})}eA.splice.apply(eA,eD);ey+=eD.length-1}}return eA}function r(ew){return ew.inclusiveLeft?-1:0}function bj(ew){return ew.inclusiveRight?1:0}function cF(ez,ex){var eB=ez.lines.length-ex.lines.length;if(eB!=0){return eB}var ey=ez.find(),eC=ex.find();var ew=bz(ey.from,eC.from)||r(ez)-r(ex);if(ew){return -ew}var eA=bz(ey.to,eC.to)||bj(ez)-bj(ex);if(eA){return eA}return ex.id-ez.id}function aC(ex,eB){var ew=aD&&ex.markedSpans,eA;if(ew){for(var ez,ey=0;ey<ew.length;++ey){ez=ew[ey];if(ez.marker.collapsed&&(eB?ez.from:ez.to)==null&&(!eA||cF(eA,ez.marker)<0)){eA=ez.marker}}}return eA}function dn(ew){return aC(ew,true)}function c5(ew){return aC(ew,false)}function v(eE,ey,eC,eD,eA){var eH=dJ(eE,ey);var ew=aD&&eH.markedSpans;if(ew){for(var ez=0;ez<ew.length;++ez){var ex=ew[ez];if(!ex.marker.collapsed){continue}var eG=ex.marker.find(true);var eF=bz(eG.from,eC)||r(ex.marker)-r(eA);var eB=bz(eG.to,eD)||bj(ex.marker)-bj(eA);if(eF>=0&&eB<=0||eF<=0&&eB>=0){continue}if(eF<=0&&(bz(eG.to,eC)||bj(ex.marker)-r(eA))>0||eF>=0&&(bz(eG.from,eD)||r(ex.marker)-bj(eA))<0){return true}}}}function u(ey,ex){var ew;while(ew=dn(ex)){ex=dJ(ey,ew.find().from.line)}return ex}function dZ(eA,ex){var ew=aD&&ex.markedSpans;if(ew){for(var ez,ey=0;ey<ew.length;++ey){ez=ew[ey];if(!ez.marker.collapsed){continue}if(ez.from==null){return true}if(ez.marker.replacedWith){continue}if(ez.from==0&&ez.marker.inclusiveLeft&&J(eA,ex,ez)){return true}}}}function J(eC,ex,ez){if(ez.to==null){var ew=ez.marker.find().to,eA=dJ(eC,ew.line);return J(eC,eA,dE(eA.markedSpans,ez.marker))}if(ez.marker.inclusiveRight&&ez.to==ex.text.length){return true}for(var eB,ey=0;ey<ex.markedSpans.length;++ey){eB=ex.markedSpans[ey];if(eB.marker.collapsed&&!eB.marker.replacedWith&&eB.from==ez.to&&(eB.to==null||eB.to!=ez.from)&&(eB.marker.inclusiveLeft||ez.marker.inclusiveRight)&&J(eC,ex,eB)){return true}}}function ep(ew){var ey=ew.markedSpans;if(!ey){return}for(var ex=0;ex<ey.length;++ex){ey[ex].marker.detachLine(ew)}ew.markedSpans=null}function ca(ew,ey){if(!ey){return}for(var ex=0;ex<ey.length;++ex){ey[ex].marker.attachLine(ew)}ew.markedSpans=ey}var cx=B.LineWidget=function(ew,ez,ex){if(ex){for(var ey in ex){if(ex.hasOwnProperty(ey)){this[ey]=ex[ey]}}}this.cm=ew;this.node=ez};a0(cx);function E(ew){return function(){var ey=!this.cm.curOp;if(ey){bY(this.cm)}try{var ex=ew.apply(this,arguments)}finally{if(ey){W(this.cm)}}return ex}}cx.prototype.clear=E(function(){var ex=this.line.widgets,ez=bc(this.line);if(ez==null||!ex){return}for(var ey=0;ey<ex.length;++ey){if(ex[ey]==this){ex.splice(ey--,1)}}if(!ex.length){this.line.widgets=null}var ew=bb(this.cm,this.line)<this.cm.doc.scrollTop;eo(this.line,Math.max(0,this.line.height-b6(this)));if(ew){b0(this.cm,0,-this.height)}Q(this.cm,ez,ez+1)});cx.prototype.changed=E(function(){var ew=this.height;this.height=null;var ex=b6(this)-ew;if(!ex){return}eo(this.line,this.line.height+ex);var ey=bc(this.line);Q(this.cm,ey,ey+1)});function b6(ew){if(ew.height!=null){return ew.height}if(!ew.node.parentNode||ew.node.parentNode.nodeType!=1){bf(ew.cm.display.measure,ej("div",[ew.node],null,"position: relative"))}return ew.height=ew.node.offsetHeight}function a6(ew,eA,ey,ex){var ez=new cx(ew,ey,ex);if(ez.noHScroll){ew.display.alignWidgets=true}c9(ew,eA,function(eC){var eD=eC.widgets||(eC.widgets=[]);if(ez.insertAt==null){eD.push(ez)}else{eD.splice(Math.min(eD.length-1,Math.max(0,ez.insertAt)),0,ez)}ez.line=eC;if(!dZ(ew.doc,eC)||ez.showIfHidden){var eB=bb(ew,eC)<ew.doc.scrollTop;eo(eC,eC.height+b6(ez));if(eB){b0(ew,0,ez.height)}}return true});return ez}var en=B.Line=function(ey,ex,ew){this.text=ey;ca(this,ex);this.height=ew?ew(this):1};a0(en);en.prototype.lineNo=function(){return bc(this)};function c1(ex,eA,ey,ew){ex.text=eA;if(ex.stateAfter){ex.stateAfter=null}if(ex.styles){ex.styles=null}if(ex.order!=null){ex.order=null}ep(ex);ca(ex,ey);var ez=ew?ew(ex):1;if(ez!=ex.height){eo(ex,ez)}}function a1(ew){ew.parent=null;ep(ew)}function s(eF,eH,eA,ex,eB,ez){var ey=eA.flattenSpans;if(ey==null){ey=eF.options.flattenSpans}var eD=0,eC=null;var eG=new ds(eH,eF.options.tabSize),ew;if(eH==""&&eA.blankLine){eA.blankLine(ex)}while(!eG.eol()){if(eG.pos>eF.options.maxHighlightLength){ey=false;if(ez){cu(eF,eH,ex,eG.pos)}eG.pos=eH.length;ew=null}else{ew=eA.token(eG,ex)}if(eF.options.addModeClass){var eI=B.innerMode(eA,ex).mode.name;if(eI){ew="m-"+(ew?eI+" "+ew:eI)}}if(!ey||eC!=ew){if(eD<eG.start){eB(eG.start,eC)}eD=eG.start;eC=ew}eG.start=eG.pos}while(eD<eG.pos){var eE=Math.min(eG.pos,eD+50000);eB(eE,eC);eD=eE}}function d4(eC,eE,ew,ez){var eD=[eC.state.modeGen];s(eC,eE.text,eC.doc.mode,ew,function(eF,eG){eD.push(eF,eG)},ez);for(var ex=0;ex<eC.state.overlays.length;++ex){var eA=eC.state.overlays[ex],eB=1,ey=0;s(eC,eE.text,eA.mode,true,function(eF,eH){var eJ=eB;while(ey<eF){var eG=eD[eB];if(eG>eF){eD.splice(eB,1,eF,eD[eB+1],eG)}eB+=2;ey=Math.min(eF,eG)}if(!eH){return}if(eA.opaque){eD.splice(eJ,eB-eJ,eF,eH);eB=eJ+2}else{for(;eJ<eB;eJ+=2){var eI=eD[eJ+1];eD[eJ+1]=eI?eI+" "+eH:eH}}})}return eD}function cd(ew,ex){if(!ex.styles||ex.styles[0]!=ew.state.modeGen){ex.styles=d4(ew,ex,ex.stateAfter=cw(ew,bc(ex)))}return ex.styles}function cu(ew,eB,ey,ex){var eA=ew.doc.mode;var ez=new ds(eB,ew.options.tabSize);ez.start=ez.pos=ex||0;if(eB==""&&eA.blankLine){eA.blankLine(ey)}while(!ez.eol()&&ez.pos<=ew.options.maxHighlightLength){eA.token(ez,ey);ez.start=ez.pos}}var cI={},bn={};function du(ez,ey){if(!ez){return null}for(;;){var ex=ez.match(/(?:^|\s)line-(background-)?(\S+)/);if(!ex){break}ez=ez.slice(0,ex.index)+ez.slice(ex.index+ex[0].length);var eA=ex[1]?"bgClass":"textClass";if(ey[eA]==null){ey[eA]=ex[2]}else{if(!(new RegExp("(?:^|s)"+ex[2]+"(?:$|s)")).test(ey[eA])){ey[eA]+=" "+ex[2]}}}var ew=ey.cm.options.addModeClass?bn:cI;return ew[ez]||(ew[ez]="cm-"+ez.replace(/ +/g," cm-"))}function dq(eF,eJ,ew,eI){var eG,eK=eJ,eB=true;while(eG=dn(eK)){eK=dJ(eF.doc,eG.find().from.line)}var eC={pre:ej("pre"),col:0,pos:0,measure:null,measuredSomething:false,cm:eF,copyWidgets:eI};do{if(eK.text){eB=false}eC.measure=eK==eJ&&ew;eC.pos=0;eC.addToken=eC.measure?e:p;if((cf||b8)&&eF.getOption("lineWrapping")){eC.addToken=d6(eC.addToken)}var eA=aU(eK,eC,cd(eF,eK));if(ew&&eK==eJ&&!eC.measuredSomething){ew[0]=eC.pre.appendChild(aS(eF.display.measure));eC.measuredSomething=true}if(eA){eK=dJ(eF.doc,eA.to.line)}}while(eA);if(ew&&!eC.measuredSomething&&!ew[0]){ew[0]=eC.pre.appendChild(eB?ej("span","\u00a0"):aS(eF.display.measure))}if(!eC.pre.firstChild&&!dZ(eF.doc,eJ)){eC.pre.appendChild(document.createTextNode("\u00a0"))}var ex;if(ew&&cA&&(ex=a(eK))){var ez=ex.length-1;if(ex[ez].from==ex[ez].to){--ez}var eH=ex[ez],ey=ex[ez-1];if(eH.from+1==eH.to&&ey&&eH.level<ey.level){var eE=ew[eC.pos-1];if(eE){eE.parentNode.insertBefore(eE.measureRight=aS(eF.display.measure),eE.nextSibling)}}}var eD=eC.textClass?eC.textClass+" "+(eJ.textClass||""):eJ.textClass;if(eD){eC.pre.className=eD}ah(eF,"renderLine",eF,eJ,eC.pre);return eC}function dH(ex){var ew=ej("span","\u2022","cm-invalidchar");ew.title="\\u"+ex.charCodeAt(0).toString(16);return ew}function p(eA,eJ,ew,ez,eK,eI){if(!eJ){return}var eE=eA.cm.options.specialChars;if(!eE.test(eJ)){eA.col+=eJ.length;var eD=document.createTextNode(eJ)}else{var eD=document.createDocumentFragment(),eG=0;while(true){eE.lastIndex=eG;var ex=eE.exec(eJ);var eC=ex?ex.index-eG:eJ.length-eG;if(eC){eD.appendChild(document.createTextNode(eJ.slice(eG,eG+eC)));eA.col+=eC}if(!ex){break}eG+=eC+1;if(ex[0]=="\t"){var eB=eA.cm.options.tabSize,eF=eB-eA.col%eB;eD.appendChild(ej("span",bJ(eF),"cm-tab"));eA.col+=eF}else{var ey=eA.cm.options.specialCharPlaceholder(ex[0]);eD.appendChild(ey);eA.col+=1}}}if(ew||ez||eK||eA.measure){var eH=ew||"";if(ez){eH+=ez}if(eK){eH+=eK}var ey=ej("span",[eD],eH);if(eI){ey.title=eI}return eA.pre.appendChild(ey)}eA.pre.appendChild(eD)}function e(eD,eG,ex,eA,eH){var eC=eD.cm.options.lineWrapping;for(var eB=0;eB<eG.length;++eB){var ey=eB==0,eF=eB+1;while(eF<eG.length&&dV(eG.charAt(eF))){++eF}var ew=eG.slice(eB,eF);eB=eF-1;if(eB&&eC&&bu(eG,eB)){eD.pre.appendChild(ej("wbr"))}var ez=eD.measure[eD.pos];var eE=eD.measure[eD.pos]=p(eD,ew,ex,ey&&eA,eB==eG.length-1&&eH);if(ez){eE.leftSide=ez.leftSide||ez}if(cf&&eC&&ew==" "&&eB&&!/\s/.test(eG.charAt(eB-1))&&eB<eG.length-1&&!/\s/.test(eG.charAt(eB+1))){eE.style.whiteSpace="normal"}eD.pos+=ew.length}if(eG.length){eD.measuredSomething=true}}function d6(ew){function ex(ey){var ez=" ";for(var eA=0;eA<ey.length-2;++eA){ez+=eA%2?" ":"\u00a0"}ez+=" ";return ez}return function(ez,eD,eA,ey,eC,eB){return ew(ez,eD.replace(/ {3,}/g,ex),eA,ey,eC,eB)}}function M(ex,eA,ew,ez){var eB=!ez&&ew.replacedWith;if(eB){if(ex.copyWidgets){eB=eB.cloneNode(true)}ex.pre.appendChild(eB);if(ex.measure){if(eA){ex.measure[ex.pos]=eB}else{var ey=aS(ex.cm.display.measure);if(ew.type=="bookmark"&&!ew.insertLeft){ex.measure[ex.pos]=ex.pre.appendChild(ey)}else{if(ex.measure[ex.pos]){return}else{ex.measure[ex.pos]=ex.pre.insertBefore(ey,eB)}}}ex.measuredSomething=true}}ex.pos+=eA}function aU(eF,eL,eE){var eB=eF.markedSpans,eD=eF.text,eJ=0;if(!eB){for(var eO=1;eO<eE.length;eO+=2){eL.addToken(eL,eD.slice(eJ,eJ=eE[eO]),du(eE[eO+1],eL))}return}var eP=eD.length,eA=0,eO=1,eH="",eQ;var eS=0,ew,eR,eI,eT,ey;for(;;){if(eS==eA){ew=eR=eI=eT="";ey=null;eS=Infinity;var eC=[];for(var eM=0;eM<eB.length;++eM){var eN=eB[eM],eK=eN.marker;if(eN.from<=eA&&(eN.to==null||eN.to>eA)){if(eN.to!=null&&eS>eN.to){eS=eN.to;eR=""}if(eK.className){ew+=" "+eK.className}if(eK.startStyle&&eN.from==eA){eI+=" "+eK.startStyle}if(eK.endStyle&&eN.to==eS){eR+=" "+eK.endStyle}if(eK.title&&!eT){eT=eK.title}if(eK.collapsed&&(!ey||cF(ey.marker,eK)<0)){ey=eN}}else{if(eN.from>eA&&eS>eN.from){eS=eN.from}}if(eK.type=="bookmark"&&eN.from==eA&&eK.replacedWith){eC.push(eK)}}if(ey&&(ey.from||0)==eA){M(eL,(ey.to==null?eP:ey.to)-eA,ey.marker,ey.from==null);if(ey.to==null){return ey.marker.find()}}if(!ey&&eC.length){for(var eM=0;eM<eC.length;++eM){M(eL,0,eC[eM])}}}if(eA>=eP){break}var eG=Math.min(eP,eS);while(true){if(eH){var ex=eA+eH.length;if(!ey){var ez=ex>eG?eH.slice(0,eG-eA):eH;eL.addToken(eL,ez,eQ?eQ+ew:ew,eI,eA+ez.length==eS?eR:"",eT)}if(ex>=eG){eH=eH.slice(eG-eA);eA=eG;break}eA=ex;eI=""}eH=eD.slice(eJ,eJ=eE[eO++]);eQ=du(eE[eO++],eL)}}}function d2(eN,eE,eA,eI,eC){function ez(eO){return eA?eA[eO]:null}function eD(eO,eQ,eP){c1(eO,eQ,eP,eC);O(eO,"change",eO,eE)}var eJ=eE.from,ex=eE.to,eG=eE.text;var eF=dJ(eN,eJ.line),ew=dJ(eN,ex.line);var ey=d7(eG),eL=ez(eG.length-1),eH=ex.line-eJ.line;if(eJ.ch==0&&ex.ch==0&&ey==""&&(!eN.cm||eN.cm.options.wholeLineUpdateBefore)){for(var eK=0,eM=eG.length-1,eB=[];eK<eM;++eK){eB.push(new en(eG[eK],ez(eK),eC))}eD(ew,ew.text,eL);if(eH){eN.remove(eJ.line,eH)}if(eB.length){eN.insert(eJ.line,eB)}}else{if(eF==ew){if(eG.length==1){eD(eF,eF.text.slice(0,eJ.ch)+ey+eF.text.slice(ex.ch),eL)}else{for(var eB=[],eK=1,eM=eG.length-1;eK<eM;++eK){eB.push(new en(eG[eK],ez(eK),eC))}eB.push(new en(ey+eF.text.slice(ex.ch),eL,eC));eD(eF,eF.text.slice(0,eJ.ch)+eG[0],ez(0));eN.insert(eJ.line+1,eB)}}else{if(eG.length==1){eD(eF,eF.text.slice(0,eJ.ch)+eG[0]+ew.text.slice(ex.ch),ez(0));eN.remove(eJ.line+1,eH)}else{eD(eF,eF.text.slice(0,eJ.ch)+eG[0],ez(0));eD(ew,ey+ew.text.slice(ex.ch),eL);for(var eK=1,eM=eG.length-1,eB=[];eK<eM;++eK){eB.push(new en(eG[eK],ez(eK),eC))}if(eH>1){eN.remove(eJ.line+1,eH-1)}eN.insert(eJ.line+1,eB)}}}O(eN,"change",eN,eE);bh(eN,eI.anchor,eI.head,null,true)}function dx(ex){this.lines=ex;this.parent=null;for(var ey=0,ez=ex.length,ew=0;ey<ez;++ey){ex[ey].parent=this;ew+=ex[ey].height}this.height=ew}dx.prototype={chunkSize:function(){return this.lines.length},removeInner:function(ew,eA){for(var ey=ew,ez=ew+eA;ey<ez;++ey){var ex=this.lines[ey];this.height-=ex.height;a1(ex);O(ex,"delete")}this.lines.splice(ew,eA)},collapse:function(ew){ew.splice.apply(ew,[ew.length,0].concat(this.lines))},insertInner:function(ex,ey,ew){this.height+=ew;this.lines=this.lines.slice(0,ex).concat(ey).concat(this.lines.slice(ex));for(var ez=0,eA=ey.length;ez<eA;++ez){ey[ez].parent=this}},iterN:function(ew,ez,ey){for(var ex=ew+ez;ew<ex;++ew){if(ey(this.lines[ew])){return true}}}};function d0(ez){this.children=ez;var ey=0,ew=0;for(var ex=0,eB=ez.length;ex<eB;++ex){var eA=ez[ex];ey+=eA.chunkSize();ew+=eA.height;eA.parent=this}this.size=ey;this.height=ew;this.parent=null}d0.prototype={chunkSize:function(){return this.size},removeInner:function(ew,eD){this.size-=eD;for(var ey=0;ey<this.children.length;++ey){var eC=this.children[ey],eA=eC.chunkSize();if(ew<eA){var ez=Math.min(eD,eA-ew),eB=eC.height;eC.removeInner(ew,ez);this.height-=eB-eC.height;if(eA==ez){this.children.splice(ey--,1);eC.parent=null}if((eD-=ez)==0){break}ew=0}else{ew-=eA}}if(this.size-eD<25){var ex=[];this.collapse(ex);this.children=[new dx(ex)];this.children[0].parent=this}},collapse:function(ew){for(var ex=0,ey=this.children.length;ex<ey;++ex){this.children[ex].collapse(ew)}},insertInner:function(ex,eE,eD){this.size+=eE.length;this.height+=eD;for(var ey=0,eA=this.children.length;ey<eA;++ey){var ew=this.children[ey],eB=ew.chunkSize();if(ex<=eB){ew.insertInner(ex,eE,eD);if(ew.lines&&ew.lines.length>50){while(ew.lines.length>50){var ez=ew.lines.splice(ew.lines.length-25,25);var eC=new dx(ez);ew.height-=eC.height;this.children.splice(ey+1,0,eC);eC.parent=this}this.maybeSpill()}break}ex-=eB}},maybeSpill:function(){if(this.children.length<=10){return}var ez=this;do{var ex=ez.children.splice(ez.children.length-5,5);var ey=new d0(ex);if(!ez.parent){var eA=new d0(ez.children);eA.parent=ez;ez.children=[eA,ey];ez=eA}else{ez.size-=ey.size;ez.height-=ey.height;var ew=cl(ez.parent.children,ez);ez.parent.children.splice(ew+1,0,ey)}ey.parent=ez.parent}while(ez.children.length>10);ez.parent.maybeSpill()},iterN:function(ew,eD,eC){for(var ex=0,eA=this.children.length;ex<eA;++ex){var eB=this.children[ex],ez=eB.chunkSize();if(ew<ez){var ey=Math.min(eD,ez-ew);if(eB.iterN(ew,ey,eC)){return true}if((eD-=ey)==0){break}ew=0}else{ew-=ez}}}};var bK=0;var aa=B.Doc=function(ey,ex,ew){if(!(this instanceof aa)){return new aa(ey,ex,ew)}if(ew==null){ew=0}d0.call(this,[new dx([new en("",null)])]);this.first=ew;this.scrollTop=this.scrollLeft=0;this.cantEdit=false;this.history=ac();this.cleanGeneration=1;this.frontier=ew;var ez=K(ew,0);this.sel={from:ez,to:ez,head:ez,anchor:ez,shift:false,extend:false,goalColumn:null};this.id=++bK;this.modeOption=ex;if(typeof ey=="string"){ey=ay(ey)}d2(this,{from:ez,to:ez,text:ey},null,{head:ez,anchor:ez})};aa.prototype=bD(d0.prototype,{constructor:aa,iter:function(ey,ex,ew){if(ew){this.iterN(ey-this.first,ex-ey,ew)}else{this.iterN(this.first,this.first+this.size,ey)}},insert:function(ex,ey){var ew=0;for(var ez=0,eA=ey.length;ez<eA;++ez){ew+=ey[ez].height}this.insertInner(ex-this.first,ey,ew)},remove:function(ew,ex){this.removeInner(ew-this.first,ex)},getValue:function(ex){var ew=aA(this,this.first,this.first+this.size);if(ex===false){return ew}return ew.join(ex||"\n")},setValue:function(ex){var ey=K(this.first,0),ew=this.first+this.size-1;aL(this,{from:ey,to:K(ew,dJ(this,ew).text.length),text:ay(ex),origin:"setValue"},{head:ey,anchor:ey},true)},replaceRange:function(ex,ez,ey,ew){ez=d9(this,ez);ey=ey?d9(this,ey):ez;az(this,ex,ez,ey,ew)},getRange:function(ez,ey,ex){var ew=el(this,d9(this,ez),d9(this,ey));if(ex===false){return ew}return ew.join(ex||"\n")},getLine:function(ex){var ew=this.getLineHandle(ex);return ew&&ew.text},setLine:function(ew,ex){if(bt(this,ew)){az(this,ex,K(ew,0),d9(this,K(ew)))}},removeLine:function(ew){if(ew){az(this,"",d9(this,K(ew-1)),d9(this,K(ew)))}else{az(this,"",K(0,0),d9(this,K(1,0)))}},getLineHandle:function(ew){if(bt(this,ew)){return dJ(this,ew)}},getLineNumber:function(ew){return bc(ew)},getLineHandleVisualStart:function(ew){if(typeof ew=="number"){ew=dJ(this,ew)}return u(this,ew)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(ew){return d9(this,ew)},getCursor:function(ey){var ew=this.sel,ex;if(ey==null||ey=="head"){ex=ew.head}else{if(ey=="anchor"){ex=ew.anchor}else{if(ey=="end"||ey===false){ex=ew.to}else{ex=ew.from}}}return bC(ex)},somethingSelected:function(){return !d8(this.sel.head,this.sel.anchor)},setCursor:d3(function(ew,ex,ez){var ey=d9(this,typeof ew=="number"?K(ew,ex||0):ew);if(ez){eg(this,ey)}else{bh(this,ey,ey)}}),setSelection:d3(function(ex,ey,ew){bh(this,d9(this,ex),d9(this,ey||ex),ew)}),extendSelection:d3(function(ey,ex,ew){eg(this,d9(this,ey),ex&&d9(this,ex),ew)}),getSelection:function(ew){return this.getRange(this.sel.from,this.sel.to,ew)},replaceSelection:function(ex,ey,ew){aL(this,{from:this.sel.from,to:this.sel.to,text:ay(ex),origin:ew},ey||"around")},undo:d3(function(){bs(this,"undo")}),redo:d3(function(){bs(this,"redo")}),setExtending:function(ew){this.sel.extend=ew},historySize:function(){var ew=this.history;return{undo:ew.done.length,redo:ew.undone.length}},clearHistory:function(){this.history=ac(this.history.maxGeneration)},markClean:function(){this.cleanGeneration=this.changeGeneration(true)},changeGeneration:function(ew){if(ew){this.history.lastOp=this.history.lastOrigin=null}return this.history.generation},isClean:function(ew){return this.history.generation==(ew||this.cleanGeneration)},getHistory:function(){return{done:bd(this.history.done),undone:bd(this.history.undone)}},setHistory:function(ex){var ew=this.history=ac(this.history.maxGeneration);ew.done=ex.done.slice(0);ew.undone=ex.undone.slice(0)},markText:function(ey,ex,ew){return dh(this,d9(this,ey),d9(this,ex),ew,"range")},setBookmark:function(ey,ew){var ex={replacedWith:ew&&(ew.nodeType==null?ew.widget:ew),insertLeft:ew&&ew.insertLeft,clearWhenEmpty:false};ey=d9(this,ey);return dh(this,ey,ey,ex,"bookmark")},findMarksAt:function(eA){eA=d9(this,eA);var ez=[],ex=dJ(this,eA.line).markedSpans;if(ex){for(var ew=0;ew<ex.length;++ew){var ey=ex[ew];if((ey.from==null||ey.from<=eA.ch)&&(ey.to==null||ey.to>=eA.ch)){ez.push(ey.marker.parent||ey.marker)}}}return ez},getAllMarks:function(){var ew=[];this.iter(function(ey){var ex=ey.markedSpans;if(ex){for(var ez=0;ez<ex.length;++ez){if(ex[ez].from!=null){ew.push(ex[ez].marker)}}}});return ew},posFromIndex:function(ex){var ew,ey=this.first;this.iter(function(ez){var eA=ez.text.length+1;if(eA>ex){ew=ex;return true}ex-=eA;++ey});return d9(this,K(ey,ew))},indexFromPos:function(ex){ex=d9(this,ex);var ew=ex.ch;if(ex.line<this.first||ex.ch<0){return 0}this.iter(this.first,ex.line,function(ey){ew+=ey.text.length+1});return ew},copy:function(ew){var ex=new aa(aA(this,this.first,this.first+this.size),this.modeOption,this.first);ex.scrollTop=this.scrollTop;ex.scrollLeft=this.scrollLeft;ex.sel={from:this.sel.from,to:this.sel.to,head:this.sel.head,anchor:this.sel.anchor,shift:this.sel.shift,extend:false,goalColumn:this.sel.goalColumn};if(ew){ex.history.undoDepth=this.history.undoDepth;ex.setHistory(this.getHistory())}return ex},linkedDoc:function(ew){if(!ew){ew={}}var ez=this.first,ey=this.first+this.size;if(ew.from!=null&&ew.from>ez){ez=ew.from}if(ew.to!=null&&ew.to<ey){ey=ew.to}var ex=new aa(aA(this,ez,ey),ew.mode||this.modeOption,ez);if(ew.sharedHist){ex.history=this.history}(this.linked||(this.linked=[])).push({doc:ex,sharedHist:ew.sharedHist});ex.linked=[{doc:this,isParent:true,sharedHist:ew.sharedHist}];return ex},unlinkDoc:function(ex){if(ex instanceof B){ex=ex.doc}if(this.linked){for(var ey=0;ey<this.linked.length;++ey){var ez=this.linked[ey];if(ez.doc!=ex){continue}this.linked.splice(ey,1);ex.unlinkDoc(this);break}}if(ex.history==this.history){var ew=[ex.id];cN(ex,function(eA){ew.push(eA.id)},true);ex.history=ac();ex.history.done=bd(this.history.done,ew);ex.history.undone=bd(this.history.undone,ew)}},iterLinkedDocs:function(ew){cN(this,ew)},getMode:function(){return this.mode},getEditor:function(){return this.cm}});aa.prototype.eachLine=aa.prototype.iter;var d="iter insert remove copy getEditor".split(" ");for(var a9 in aa.prototype){if(aa.prototype.hasOwnProperty(a9)&&cl(d,a9)<0){B.prototype[a9]=(function(ew){return function(){return ew.apply(this.doc,arguments)}})(aa.prototype[a9])}}a0(aa);function cN(ez,ey,ex){function ew(eF,eD,eB){if(eF.linked){for(var eC=0;eC<eF.linked.length;++eC){var eA=eF.linked[eC];if(eA.doc==eD){continue}var eE=eB&&eA.sharedHist;if(ex&&!eE){continue}ey(eA.doc,eE);ew(eA.doc,eF,eE)}}}ew(ez,null,true)}function cQ(ew,ex){if(ex.cm){throw new Error("This document is already in use.")}ew.doc=ex;ex.cm=ew;L(ew);aW(ew);if(!ew.options.lineWrapping){em(ew)}ew.options.mode=ex.modeOption;Q(ew)}function dJ(ew,eA){eA-=ew.first;while(!ew.lines){for(var ex=0;;++ex){var ez=ew.children[ex],ey=ez.chunkSize();if(eA<ey){ew=ez;break}eA-=ey}}return ew.lines[eA]}function el(ey,eA,ew){var ex=[],ez=eA.line;ey.iter(eA.line,ew.line+1,function(eB){var eC=eB.text;if(ez==ew.line){eC=eC.slice(0,ew.ch)}if(ez==eA.line){eC=eC.slice(eA.ch)}ex.push(eC);++ez});return ex}function aA(ex,ez,ey){var ew=[];ex.iter(ez,ey,function(eA){ew.push(eA.text)});return ew}function eo(ex,ew){var ey=ew-ex.height;for(var ez=ex;ez;ez=ez.parent){ez.height+=ey}}function bc(ew){if(ew.parent==null){return null}var eA=ew.parent,ez=cl(eA.lines,ew);for(var ex=eA.parent;ex;eA=ex,ex=ex.parent){for(var ey=0;;++ey){if(ex.children[ey]==eA){break}ez+=ex.children[ey].chunkSize()}}return ez+eA.first}function a5(eC,eA){var ey=eC.first;outer:do{for(var ez=0,eB=eC.children.length;ez<eB;++ez){var ex=eC.children[ez],ew=ex.height;if(eA<ew){eC=ex;continue outer}eA-=ew;ey+=ex.chunkSize()}return ey}while(!eC.lines);for(var ez=0,eB=eC.lines.length;ez<eB;++ez){var eE=eC.lines[ez],eD=eE.height;if(eA<eD){break}eA-=eD}return ey+ez}function bb(ew,ez){ez=u(ew.doc,ez);var eB=0,ey=ez.parent;for(var eA=0;eA<ey.lines.length;++eA){var ex=ey.lines[eA];if(ex==ez){break}else{eB+=ex.height}}for(var eC=ey.parent;eC;ey=eC,eC=ey.parent){for(var eA=0;eA<eC.children.length;++eA){var eD=eC.children[eA];if(eD==ey){break}else{eB+=eD.height}}}return eB}function a(ex){var ew=ex.order;if(ew==null){ew=ex.order=aM(ex.text)}return ew}function ac(ew){return{done:[],undone:[],undoDepth:Infinity,lastTime:0,lastOp:null,lastOrigin:null,generation:ew||1,maxGeneration:ew||1}}function bl(ex,eB,eA,ez){var ew=eB["spans_"+ex.id],ey=0;ex.iter(Math.max(ex.first,eA),Math.min(ex.first+ex.size,ez),function(eC){if(eC.markedSpans){(ew||(ew=eB["spans_"+ex.id]={}))[ey]=eC.markedSpans}++ey})}function cs(ew,ez){var ey={line:ez.from.line,ch:ez.from.ch};var ex={from:ey,to:b5(ez),text:el(ew,ez.from,ez.to)};bl(ew,ex,ez.from.line,ez.to.line+1);cN(ew,function(eA){bl(eA,ex,ez.from.line,ez.to.line+1)},true);return ex}function di(eB,eD,eA,ew){var ez=eB.history;ez.undone.length=0;var ey=+new Date,eC=d7(ez.done);if(eC&&(ez.lastOp==ew||ez.lastOrigin==eD.origin&&eD.origin&&((eD.origin.charAt(0)=="+"&&eB.cm&&ez.lastTime>ey-eB.cm.options.historyEventDelay)||eD.origin.charAt(0)=="*"))){var ex=d7(eC.changes);if(d8(eD.from,eD.to)&&d8(eD.from,ex.to)){ex.to=b5(eD)}else{eC.changes.push(cs(eB,eD))}eC.anchorAfter=eA.anchor;eC.headAfter=eA.head}else{eC={changes:[cs(eB,eD)],generation:ez.generation,anchorBefore:eB.sel.anchor,headBefore:eB.sel.head,anchorAfter:eA.anchor,headAfter:eA.head};ez.done.push(eC);while(ez.done.length>ez.undoDepth){ez.done.shift()}}ez.generation=++ez.maxGeneration;ez.lastTime=ey;ez.lastOp=ew;ez.lastOrigin=eD.origin}function aP(ey){if(!ey){return null}for(var ex=0,ew;ex<ey.length;++ex){if(ey[ex].marker.explicitlyCleared){if(!ew){ew=ey.slice(0,ex)}}else{if(ew){ew.push(ey[ex])}}}return !ew?ey:ew.length?ew:null}function br(ez,eA){var ey=eA["spans_"+ez.id];if(!ey){return null}for(var ex=0,ew=[];ex<eA.text.length;++ex){ew.push(aP(ey[ex]))}return ew}function bd(eG,ez){for(var eC=0,ex=[];eC<eG.length;++eC){var ey=eG[eC],eE=ey.changes,eF=[];ex.push({changes:eF,anchorBefore:ey.anchorBefore,headBefore:ey.headBefore,anchorAfter:ey.anchorAfter,headAfter:ey.headAfter});for(var eB=0;eB<eE.length;++eB){var eD=eE[eB],eA;eF.push({from:eD.from,to:eD.to,text:eD.text});if(ez){for(var ew in eD){if(eA=ew.match(/^spans_(\d+)$/)){if(cl(ez,Number(eA[1]))>-1){d7(eF)[ew]=eD[ew];delete eD[ew]}}}}}}return ex}function dv(ez,ey,ex,ew){if(ex<ez.line){ez.line+=ew}else{if(ey<ez.line){ez.line=ey;ez.ch=0}}}function dM(ez,eB,eC,eD){for(var ey=0;ey<ez.length;++ey){var ew=ez[ey],eA=true;for(var ex=0;ex<ew.changes.length;++ex){var eE=ew.changes[ex];if(!ew.copied){eE.from=bC(eE.from);eE.to=bC(eE.to)}if(eC<eE.from.line){eE.from.line+=eD;eE.to.line+=eD}else{if(eB<=eE.to.line){eA=false;break}}}if(!ew.copied){ew.anchorBefore=bC(ew.anchorBefore);ew.headBefore=bC(ew.headBefore);ew.anchorAfter=bC(ew.anchorAfter);ew.readAfter=bC(ew.headAfter);ew.copied=true}if(!eA){ez.splice(0,ey+1);ey=0}else{dv(ew.anchorBefore);dv(ew.headBefore);dv(ew.anchorAfter);dv(ew.headAfter)}}}function cz(ex,eA){var ez=eA.from.line,ey=eA.to.line,ew=eA.text.length-(ey-ez)-1;dM(ex.done,ez,ey,ew);dM(ex.undone,ez,ey,ew)}function dr(){c2(this)}function Y(ew){if(!ew.stop){ew.stop=dr}return ew}function bV(ew){if(ew.preventDefault){ew.preventDefault()}else{ew.returnValue=false}}function cp(ew){if(ew.stopPropagation){ew.stopPropagation()}else{ew.cancelBubble=true}}function ba(ew){return ew.defaultPrevented!=null?ew.defaultPrevented:ew.returnValue==false}function c2(ew){bV(ew);cp(ew)}B.e_stop=c2;B.e_preventDefault=bV;B.e_stopPropagation=cp;function D(ew){return ew.target||ew.srcElement}function eb(ex){var ew=ex.which;if(ew==null){if(ex.button&1){ew=1}else{if(ex.button&2){ew=3}else{if(ex.button&4){ew=2}}}}if(bq&&ex.ctrlKey&&ew==1){ew=3}return ew}function bk(ez,ex,ey){if(ez.addEventListener){ez.addEventListener(ex,ey,false)}else{if(ez.attachEvent){ez.attachEvent("on"+ex,ey)}else{var eA=ez._handlers||(ez._handlers={});var ew=eA[ex]||(eA[ex]=[]);ew.push(ey)}}}function cT(eA,ey,ez){if(eA.removeEventListener){eA.removeEventListener(ey,ez,false)}else{if(eA.detachEvent){eA.detachEvent("on"+ey,ez)}else{var ew=eA._handlers&&eA._handlers[ey];if(!ew){return}for(var ex=0;ex<ew.length;++ex){if(ew[ex]==ez){ew.splice(ex,1);break}}}}}function ah(eA,ez){var ew=eA._handlers&&eA._handlers[ez];if(!ew){return}var ex=Array.prototype.slice.call(arguments,2);for(var ey=0;ey<ew.length;++ey){ew[ey].apply(null,ex)}}var aT,bL=0;function O(eB,eA){var ew=eB._handlers&&eB._handlers[eA];if(!ew){return}var ey=Array.prototype.slice.call(arguments,2);if(!aT){++bL;aT=[];setTimeout(da,0)}function ex(eC){return function(){eC.apply(null,ey)}}for(var ez=0;ez<ew.length;++ez){aT.push(ex(ew[ez]))}}function ar(ew,ey,ex){ah(ew,ex||ey.type,ew,ey);return ba(ey)||ey.codemirrorIgnore}function da(){--bL;var ew=aT;aT=null;for(var ex=0;ex<ew.length;++ex){ew[ex]()}}function dP(ey,ex){var ew=ey._handlers&&ey._handlers[ex];return ew&&ew.length>0}B.on=bk;B.off=cT;B.signal=ah;function a0(ew){ew.prototype.on=function(ex,ey){bk(this,ex,ey)};ew.prototype.off=function(ex,ey){cT(this,ex,ey)}}var aO=30;var bv=B.Pass={toString:function(){return"CodeMirror.Pass"}};function ev(){this.id=null}ev.prototype={set:function(ew,ex){clearTimeout(this.id);this.id=setTimeout(ex,ew)}};function bg(ey,ew,eA,eB,ex){if(ew==null){ew=ey.search(/[^\s\u00a0]/);if(ew==-1){ew=ey.length}}for(var ez=eB||0,eC=ex||0;ez<ew;++ez){if(ey.charAt(ez)=="\t"){eC+=eA-(eC%eA)}else{++eC}}return eC}B.countColumn=bg;var ax=[""];function bJ(ew){while(ax.length<=ew){ax.push(d7(ax)+" ")}return ax[ew]}function d7(ew){return ew[ew.length-1]}function cC(ex){if(dy){ex.selectionStart=0;ex.selectionEnd=ex.value.length}else{try{ex.select()}catch(ew){}}}function cl(ez,ew){if(ez.indexOf){return ez.indexOf(ew)}for(var ex=0,ey=ez.length;ex<ey;++ex){if(ez[ex]==ew){return ex}}return -1}function bD(ez,ex){function ew(){}ew.prototype=ez;var ey=new ew();if(ex){am(ex,ey)}return ey}function am(ex,ew){if(!ew){ew={}}for(var ey in ex){if(ex.hasOwnProperty(ey)){ew[ey]=ex[ey]}}return ew}function U(ey){for(var ew=[],ex=0;ex<ey;++ex){ew.push(undefined)}return ew}function bO(ex){var ew=Array.prototype.slice.call(arguments,1);return function(){return ex.apply(null,ew)}}var aI=/[\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function bR(ew){return/\w/.test(ew)||ew>"\x80"&&(ew.toUpperCase()!=ew.toLowerCase()||aI.test(ew))}function dt(ew){for(var ex in ew){if(ew.hasOwnProperty(ex)&&ew[ex]){return false}}return true}var dl=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function dV(ew){return ew.charCodeAt(0)>=768&&dl.test(ew)}function ej(ew,eA,ez,ey){var eB=document.createElement(ew);if(ez){eB.className=ez}if(ey){eB.style.cssText=ey}if(typeof eA=="string"){l(eB,eA)}else{if(eA){for(var ex=0;ex<eA.length;++ex){eB.appendChild(eA[ex])}}}return eB}function cK(ex){for(var ew=ex.childNodes.length;ew>0;--ew){ex.removeChild(ex.firstChild)}return ex}function bf(ew,ex){return cK(ew).appendChild(ex)}function l(ew,ex){if(bE){ew.innerHTML="";ew.appendChild(document.createTextNode(ex))}else{ew.textContent=ex}}function an(ew){return ew.getBoundingClientRect()}B.replaceGetRect=function(ew){an=ew};var dm=function(){if(bE){return false}var ew=ej("div");return"draggable" in ew||"dragDrop" in ew}();function bu(){return false}if(bI){bu=function(ex,ew){return ex.charCodeAt(ew-1)==36&&ex.charCodeAt(ew)==39}}else{if(ag&&!/Version\/([6-9]|\d\d)\b/.test(navigator.userAgent)){bu=function(ex,ew){return/\-[^ \-?]|\?[^ !\'\"\),.\-\/:;\?\]\}]/.test(ex.slice(ew-1,ew+1))}}else{if(b8&&/Chrome\/(?:29|[3-9]\d|\d\d\d)\./.test(navigator.userAgent)){bu=function(ey,ew){var ex=ey.charCodeAt(ew-1);return ex>=8208&&ex<=8212}}else{if(b8){bu=function(ex,ew){if(ew>1&&ex.charCodeAt(ew-1)==45){if(/\w/.test(ex.charAt(ew-2))&&/[^\-?\.]/.test(ex.charAt(ew))){return true}if(ew>2&&/[\d\.,]/.test(ex.charAt(ew-2))&&/[\d\.,]/.test(ex.charAt(ew))){return false}}return/[~!#%&*)=+}\]\\|\"\.>,:;][({[<]|-[^\-?\.\u2010-\u201f\u2026]|\?[\w~`@#$%\^&*(_=+{[|><]|\u2026[\w~`@#$%\^&*(_=+{[><]/.test(ex.slice(ew-1,ew+1))}}}}}var c6;function i(ew){if(c6!=null){return c6}var ex=ej("div",null,null,"width: 50px; height: 50px; overflow-x: scroll");bf(ew,ex);if(ex.offsetWidth){c6=ex.offsetHeight-ex.clientHeight}return c6||0}var ea;function aS(ew){if(ea==null){var ex=ej("span","\u200b");bf(ew,ej("span",[ex,document.createTextNode("x")]));if(ew.firstChild.offsetHeight!=0){ea=ex.offsetWidth<=1&&ex.offsetHeight>2&&!bF}}if(ea){return ej("span","\u200b")}else{return ej("span","\u00a0",null,"display: inline-block; width: 1px; margin-right: -1px")}}var ay="\n\nb".split(/\n/).length!=3?function(eB){var eC=0,ew=[],eA=eB.length;while(eC<=eA){var ez=eB.indexOf("\n",eC);if(ez==-1){ez=eB.length}var ey=eB.slice(eC,eB.charAt(ez-1)=="\r"?ez-1:ez);var ex=ey.indexOf("\r");if(ex!=-1){ew.push(ey.slice(0,ex));eC+=ex+1}else{ew.push(ey);eC=ez+1}}return ew}:function(ew){return ew.split(/\r\n?|\n/)};B.splitLines=ay;var aX=window.getSelection?function(ex){try{return ex.selectionStart!=ex.selectionEnd}catch(ew){return false}}:function(ey){try{var ew=ey.ownerDocument.selection.createRange()}catch(ex){}if(!ew||ew.parentElement()!=ey){return false}return ew.compareEndPoints("StartToEnd",ew)!=0};var ce=(function(){var ew=ej("div");if("oncopy" in ew){return true}ew.setAttribute("oncopy","return;");return typeof ew.oncopy=="function"})();var dL={3:"Enter",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",107:"=",109:"-",127:"Delete",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"};B.keyNames=dL;(function(){for(var ew=0;ew<10;ew++){dL[ew+48]=dL[ew+96]=String(ew)}for(var ew=65;ew<=90;ew++){dL[ew]=String.fromCharCode(ew)}for(var ew=1;ew<=12;ew++){dL[ew+111]=dL[ew+63235]="F"+ew}})();function cL(ew,eC,eB,eA){if(!ew){return eA(eC,eB,"ltr")}var ez=false;for(var ey=0;ey<ew.length;++ey){var ex=ew[ey];if(ex.from<eB&&ex.to>eC||eC==eB&&ex.to==eC){eA(Math.max(ex.from,eC),Math.min(ex.to,eB),ex.level==1?"rtl":"ltr");ez=true}}if(!ez){eA(eC,eB,"ltr")}}function cv(ew){return ew.level%2?ew.to:ew.from}function er(ew){return ew.level%2?ew.from:ew.to}function bU(ex){var ew=a(ex);return ew?cv(ew[0]):0}function b4(ex){var ew=a(ex);if(!ew){return ex.text.length}return er(d7(ew))}function aY(ex,eA){var ey=dJ(ex.doc,eA);var eB=u(ex.doc,ey);if(eB!=ey){eA=bc(eB)}var ew=a(eB);var ez=!ew?0:ew[0].level%2?b4(eB):bU(eB);return K(eA,ez)}function cE(ey,eB){var ex,ez;while(ex=c5(ez=dJ(ey.doc,eB))){eB=ex.find().to.line}var ew=a(ez);var eA=!ew?ez.text.length:ew[0].level%2?bU(ez):b4(ez);return K(eB,eA)}function X(ex,ey,ew){var ez=ex[0].level;if(ey==ez){return true}if(ew==ez){return false}return ey<ew}var dz;function aj(ew,eA){dz=null;for(var ex=0,ey;ex<ew.length;++ex){var ez=ew[ex];if(ez.from<eA&&ez.to>eA){return ex}if((ez.from==eA||ez.to==eA)){if(ey==null){ey=ex}else{if(X(ew,ez.level,ew[ey].level)){if(ez.from!=ez.to){dz=ey}return ex}else{if(ez.from!=ez.to){dz=ex}return ey}}}}return ey}function dI(ew,ez,ex,ey){if(!ey){return ez+ex}do{ez+=ex}while(ez>0&&dV(ew.text.charAt(ez)));return ez}function q(ew,eD,ey,ez){var eA=a(ew);if(!eA){return R(ew,eD,ey,ez)}var eC=aj(eA,eD),ex=eA[eC];var eB=dI(ew,eD,ex.level%2?-ey:ey,ez);for(;;){if(eB>ex.from&&eB<ex.to){return eB}if(eB==ex.from||eB==ex.to){if(aj(eA,eB)==eC){return eB}ex=eA[eC+=ey];return(ey>0)==ex.level%2?ex.to:ex.from}else{ex=eA[eC+=ey];if(!ex){return null}if((ey>0)==ex.level%2){eB=dI(ew,ex.to,-1,ez)}else{eB=dI(ew,ex.from,1,ez)}}}}function R(ew,eA,ex,ey){var ez=eA+ex;if(ey){while(ez>0&&dV(ew.text.charAt(ez))){ez+=ex}}return ez<0||ez>ew.text.length?null:ez}var aM=(function(){var eC="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLL";var eA="rrrrrrrrrrrr,rNNmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmrrrrrrrnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmNmmmmrrrrrrrrrrrrrrrrrr";function ez(eF){if(eF<=255){return eC.charAt(eF)}else{if(1424<=eF&&eF<=1524){return"R"}else{if(1536<=eF&&eF<=1791){return eA.charAt(eF-1536)}else{if(1792<=eF&&eF<=2220){return"r"}else{return"L"}}}}}var ew=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;var eE=/[stwN]/,ey=/[LRr]/,ex=/[Lb1n]/,eB=/[1n]/;var eD="L";return function(eP){if(!ew.test(eP)){return false}var eV=eP.length,eL=[];for(var eU=0,eH;eU<eV;++eU){eL.push(eH=ez(eP.charCodeAt(eU)))}for(var eU=0,eO=eD;eU<eV;++eU){var eH=eL[eU];if(eH=="m"){eL[eU]=eO}else{eO=eH}}for(var eU=0,eF=eD;eU<eV;++eU){var eH=eL[eU];if(eH=="1"&&eF=="r"){eL[eU]="n"}else{if(ey.test(eH)){eF=eH;if(eH=="r"){eL[eU]="R"}}}}for(var eU=1,eO=eL[0];eU<eV-1;++eU){var eH=eL[eU];if(eH=="+"&&eO=="1"&&eL[eU+1]=="1"){eL[eU]="1"}else{if(eH==","&&eO==eL[eU+1]&&(eO=="1"||eO=="n")){eL[eU]=eO}}eO=eH}for(var eU=0;eU<eV;++eU){var eH=eL[eU];if(eH==","){eL[eU]="N"}else{if(eH=="%"){for(var eI=eU+1;eI<eV&&eL[eI]=="%";++eI){}var eW=(eU&&eL[eU-1]=="!")||(eI<eV&&eL[eI]=="1")?"1":"N";for(var eS=eU;eS<eI;++eS){eL[eS]=eW}eU=eI-1}}}for(var eU=0,eF=eD;eU<eV;++eU){var eH=eL[eU];if(eF=="L"&&eH=="1"){eL[eU]="L"}else{if(ey.test(eH)){eF=eH}}}for(var eU=0;eU<eV;++eU){if(eE.test(eL[eU])){for(var eI=eU+1;eI<eV&&eE.test(eL[eI]);++eI){}var eM=(eU?eL[eU-1]:eD)=="L";var eG=(eI<eV?eL[eI]:eD)=="L";var eW=eM||eG?"L":"R";for(var eS=eU;eS<eI;++eS){eL[eS]=eW}eU=eI-1}}var eT=[],eQ;for(var eU=0;eU<eV;){if(ex.test(eL[eU])){var eJ=eU;for(++eU;eU<eV&&ex.test(eL[eU]);++eU){}eT.push({from:eJ,to:eU,level:0})}else{var eK=eU,eN=eT.length;for(++eU;eU<eV&&eL[eU]!="L";++eU){}for(var eS=eK;eS<eU;){if(eB.test(eL[eS])){if(eK<eS){eT.splice(eN,0,{from:eK,to:eS,level:1})}var eR=eS;for(++eS;eS<eU&&eB.test(eL[eS]);++eS){}eT.splice(eN,0,{from:eR,to:eS,level:2});eK=eS}else{++eS}}if(eK<eU){eT.splice(eN,0,{from:eK,to:eU,level:1})}}}if(eT[0].level==1&&(eQ=eP.match(/^\s+/))){eT[0].from=eQ[0].length;eT.unshift({from:0,to:eQ[0].length,level:0})}if(d7(eT).level==1&&(eQ=eP.match(/\s+$/))){d7(eT).to-=eQ[0].length;eT.push({from:eV-eQ[0].length,to:eV,level:0})}if(eT[0].level!=d7(eT).level){eT.push({from:eV,to:eV,level:eT[0].level})}return eT}})();B.version="3.21.0";return B})(); // CodeMirror XML. -CodeMirror.defineMode('xml', function (w, j) { - var p = w.indentUnit; - var v = j.multilineTagIndentFactor || 1; - var b = j.multilineTagIndentPastTag || true; - var u = j.htmlMode - ? { - autoSelfClosers: { - area: true, - base: true, - br: true, - col: true, - command: true, - embed: true, - frame: true, - hr: true, - img: true, - input: true, - keygen: true, - link: true, - meta: true, - param: true, - source: true, - track: true, - wbr: true - }, - implicitlyClosed: { - dd: true, - li: true, - optgroup: true, - option: true, - p: true, - rp: true, - rt: true, - tbody: true, - td: true, - tfoot: true, - th: true, - tr: true - }, - contextGrabbers: { - dd: {dd: true, dt: true}, - dt: {dd: true, dt: true}, - li: {li: true}, - option: {option: true, optgroup: true}, - optgroup: {optgroup: true}, - p: { - address: true, - article: true, - aside: true, - blockquote: true, - dir: true, - div: true, - dl: true, - fieldset: true, - footer: true, - form: true, - h1: true, - h2: true, - h3: true, - h4: true, - h5: true, - h6: true, - header: true, - hgroup: true, - hr: true, - menu: true, - nav: true, - ol: true, - p: true, - pre: true, - section: true, - table: true, - ul: true - }, - rp: {rp: true, rt: true}, - rt: {rp: true, rt: true}, - tbody: {tbody: true, tfoot: true}, - td: {td: true, th: true}, - tfoot: {tbody: true}, - th: {td: true, th: true}, - thead: {tbody: true, tfoot: true}, - tr: {tr: true} - }, - doNotIndent: {pre: true}, - allowUnquoted: true, - allowMissing: true - } - : { - autoSelfClosers: {}, - implicitlyClosed: {}, - contextGrabbers: {}, - doNotIndent: {}, - allowUnquoted: false, - allowMissing: false - }; - var a = j.alignCDATA; - var d, e, f; - function m(E, D) { - function B(G) { - D.tokenize = G; - return G(E, D); - } - var C = E.next(); - if (C == '<') { - if (E.eat('!')) { - if (E.eat('[')) { - if (E.match('CDATA[')) { - return B(t('atom', ']]>')); - } else { - return null; - } - } else { - if (E.match('--')) { - return B(t('comment', '-->')); - } else { - if (E.match('DOCTYPE', true, true)) { - E.eatWhile(/[\w\._\-]/); - return B(x(1)); - } else { - return null; - } - } - } - } else { - if (E.eat('?')) { - E.eatWhile(/[\w\._\-]/); - D.tokenize = t('meta', '?>'); - return 'meta'; - } else { - var z = E.eat('/'); - d = ''; - var F; - while ((F = E.eat(/[^\s\u00a0=<>\"\'\/?]/))) { - d += F; - } - if (!d) { - return 'tag error'; - } - e = z ? 'closeTag' : 'openTag'; - D.tokenize = l; - return 'tag'; - } - } - } else { - if (C == '&') { - var A; - if (E.eat('#')) { - if (E.eat('x')) { - A = E.eatWhile(/[a-fA-F\d]/) && E.eat(';'); - } else { - A = E.eatWhile(/[\d]/) && E.eat(';'); - } - } else { - A = E.eatWhile(/[\w\.\-:]/) && E.eat(';'); - } - return A ? 'atom' : 'error'; - } else { - E.eatWhile(/[^&<]/); - return null; - } - } - } - function l(C, B) { - var A = C.next(); - if (A == '>' || (A == '/' && C.eat('>'))) { - B.tokenize = m; - e = A == '>' ? 'endTag' : 'selfcloseTag'; - return 'tag'; - } else { - if (A == '=') { - e = 'equals'; - return null; - } else { - if (A == '<') { - B.tokenize = m; - B.state = k; - B.tagName = B.tagStart = null; - var z = B.tokenize(C, B); - return z ? z + ' error' : 'error'; - } else { - if (/[\'\"]/.test(A)) { - B.tokenize = i(A); - B.stringStartCol = C.column(); - return B.tokenize(C, B); - } else { - C.eatWhile(/[^\s\u00a0=<>\"\']/); - return 'word'; - } - } - } - } - } - function i(z) { - var A = function (C, B) { - while (!C.eol()) { - if (C.next() == z) { - B.tokenize = l; - break; - } - } - return 'string'; - }; - A.isInAttribute = true; - return A; - } - function t(A, z) { - return function (C, B) { - while (!C.eol()) { - if (C.match(z)) { - B.tokenize = m; - break; - } - C.next(); - } - return A; - }; - } - function x(z) { - return function (C, B) { - var A; - while ((A = C.next()) != null) { - if (A == '<') { - B.tokenize = x(z + 1); - return B.tokenize(C, B); - } else { - if (A == '>') { - if (z == 1) { - B.tokenize = m; - break; - } else { - B.tokenize = x(z - 1); - return B.tokenize(C, B); - } - } - } - } - return 'meta'; - }; - } - function q(A, z, B) { - this.prev = A.context; - this.tagName = z; - this.indent = A.indented; - this.startOfLine = B; - if (u.doNotIndent.hasOwnProperty(z) || (A.context && A.context.noIndent)) { - this.noIndent = true; - } - } - function s(z) { - if (z.context) { - z.context = z.context.prev; - } - } - function o(B, A) { - var z; - while (true) { - if (!B.context) { - return; - } - z = B.context.tagName.toLowerCase(); - if (!u.contextGrabbers.hasOwnProperty(z) || !u.contextGrabbers[z].hasOwnProperty(A)) { - return; - } - s(B); - } - } - function k(z, C, B) { - if (z == 'openTag') { - B.tagName = d; - B.tagStart = C.column(); - return c; - } else { - if (z == 'closeTag') { - var A = false; - if (B.context) { - if (B.context.tagName != d) { - if (u.implicitlyClosed.hasOwnProperty(B.context.tagName.toLowerCase())) { - s(B); - } - A = !B.context || B.context.tagName != d; - } - } else { - A = true; - } - if (A) { - f = 'error'; - } - return A ? y : r; - } else { - return k; - } - } - } - function r(A, z, B) { - if (A != 'endTag') { - f = 'error'; - return r; - } - s(B); - return k; - } - function y(z, B, A) { - f = 'error'; - return r(z, B, A); - } - function c(C, A, D) { - if (C == 'word') { - f = 'attribute'; - return h; - } else { - if (C == 'endTag' || C == 'selfcloseTag') { - var B = D.tagName, - z = D.tagStart; - D.tagName = D.tagStart = null; - if (C == 'selfcloseTag' || u.autoSelfClosers.hasOwnProperty(B.toLowerCase())) { - o(D, B.toLowerCase()); - } else { - o(D, B.toLowerCase()); - D.context = new q(D, B, z == D.indented); - } - return k; - } - } - f = 'error'; - return c; - } - function h(z, B, A) { - if (z == 'equals') { - return n; - } - if (!u.allowMissing) { - f = 'error'; - } - return c(z, B, A); - } - function n(z, B, A) { - if (z == 'string') { - return g; - } - if (z == 'word' && u.allowUnquoted) { - f = 'string'; - return c; - } - f = 'error'; - return c(z, B, A); - } - function g(z, B, A) { - if (z == 'string') { - return g; - } - return c(z, B, A); - } - return { - startState: function () { - return {tokenize: m, state: k, indented: 0, tagName: null, tagStart: null, context: null}; - }, - token: function (B, A) { - if (!A.tagName && B.sol()) { - A.indented = B.indentation(); - } - if (B.eatSpace()) { - return null; - } - d = e = null; - var z = A.tokenize(B, A); - if ((z || e) && z != 'comment') { - f = null; - A.state = A.state(e || z, B, A); - if (f) { - z = f == 'error' ? z + ' error' : f; - } - } - return z; - }, - indent: function (C, z, B) { - var A = C.context; - if (C.tokenize.isInAttribute) { - return C.stringStartCol + 1; - } - if (A && A.noIndent) { - return CodeMirror.Pass; - } - if (C.tokenize != l && C.tokenize != m) { - return B ? B.match(/^(\s*)/)[0].length : 0; - } - if (C.tagName) { - if (b) { - return C.tagStart + C.tagName.length + 2; - } else { - return C.tagStart + p * v; - } - } - if (a && /<!\[CDATA\[/.test(z)) { - return 0; - } - if (A && /^<\//.test(z)) { - A = A.prev; - } - while (A && !A.startOfLine) { - A = A.prev; - } - if (A) { - return A.indent + p; - } else { - return 0; - } - }, - electricChars: '/', - blockCommentStart: '<!--', - blockCommentEnd: '-->', - configuration: j.htmlMode ? 'html' : 'xml', - helperType: j.htmlMode ? 'html' : 'xml' - }; -}); -CodeMirror.defineMIME('text/xml', 'xml'); -CodeMirror.defineMIME('application/xml', 'xml'); -if (!CodeMirror.mimeModes.hasOwnProperty('text/html')) { - CodeMirror.defineMIME('text/html', {name: 'xml', htmlMode: true}); -} +CodeMirror.defineMode("xml",function(w,j){var p=w.indentUnit;var v=j.multilineTagIndentFactor||1;var b=j.multilineTagIndentPastTag||true;var u=j.htmlMode?{autoSelfClosers:{area:true,base:true,br:true,col:true,command:true,embed:true,frame:true,hr:true,img:true,input:true,keygen:true,link:true,meta:true,param:true,source:true,track:true,wbr:true},implicitlyClosed:{dd:true,li:true,optgroup:true,option:true,p:true,rp:true,rt:true,tbody:true,td:true,tfoot:true,th:true,tr:true},contextGrabbers:{dd:{dd:true,dt:true},dt:{dd:true,dt:true},li:{li:true},option:{option:true,optgroup:true},optgroup:{optgroup:true},p:{address:true,article:true,aside:true,blockquote:true,dir:true,div:true,dl:true,fieldset:true,footer:true,form:true,h1:true,h2:true,h3:true,h4:true,h5:true,h6:true,header:true,hgroup:true,hr:true,menu:true,nav:true,ol:true,p:true,pre:true,section:true,table:true,ul:true},rp:{rp:true,rt:true},rt:{rp:true,rt:true},tbody:{tbody:true,tfoot:true},td:{td:true,th:true},tfoot:{tbody:true},th:{td:true,th:true},thead:{tbody:true,tfoot:true},tr:{tr:true}},doNotIndent:{pre:true},allowUnquoted:true,allowMissing:true}:{autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:false,allowMissing:false};var a=j.alignCDATA;var d,e,f;function m(E,D){function B(G){D.tokenize=G;return G(E,D)}var C=E.next();if(C=="<"){if(E.eat("!")){if(E.eat("[")){if(E.match("CDATA[")){return B(t("atom","]]>"))}else{return null}}else{if(E.match("--")){return B(t("comment","-->"))}else{if(E.match("DOCTYPE",true,true)){E.eatWhile(/[\w\._\-]/);return B(x(1))}else{return null}}}}else{if(E.eat("?")){E.eatWhile(/[\w\._\-]/);D.tokenize=t("meta","?>");return"meta"}else{var z=E.eat("/");d="";var F;while((F=E.eat(/[^\s\u00a0=<>\"\'\/?]/))){d+=F}if(!d){return"tag error"}e=z?"closeTag":"openTag";D.tokenize=l;return"tag"}}}else{if(C=="&"){var A;if(E.eat("#")){if(E.eat("x")){A=E.eatWhile(/[a-fA-F\d]/)&&E.eat(";")}else{A=E.eatWhile(/[\d]/)&&E.eat(";")}}else{A=E.eatWhile(/[\w\.\-:]/)&&E.eat(";")}return A?"atom":"error"}else{E.eatWhile(/[^&<]/);return null}}}function l(C,B){var A=C.next();if(A==">"||(A=="/"&&C.eat(">"))){B.tokenize=m;e=A==">"?"endTag":"selfcloseTag";return"tag"}else{if(A=="="){e="equals";return null}else{if(A=="<"){B.tokenize=m;B.state=k;B.tagName=B.tagStart=null;var z=B.tokenize(C,B);return z?z+" error":"error"}else{if(/[\'\"]/.test(A)){B.tokenize=i(A);B.stringStartCol=C.column();return B.tokenize(C,B)}else{C.eatWhile(/[^\s\u00a0=<>\"\']/);return"word"}}}}}function i(z){var A=function(C,B){while(!C.eol()){if(C.next()==z){B.tokenize=l;break}}return"string"};A.isInAttribute=true;return A}function t(A,z){return function(C,B){while(!C.eol()){if(C.match(z)){B.tokenize=m;break}C.next()}return A}}function x(z){return function(C,B){var A;while((A=C.next())!=null){if(A=="<"){B.tokenize=x(z+1);return B.tokenize(C,B)}else{if(A==">"){if(z==1){B.tokenize=m;break}else{B.tokenize=x(z-1);return B.tokenize(C,B)}}}}return"meta"}}function q(A,z,B){this.prev=A.context;this.tagName=z;this.indent=A.indented;this.startOfLine=B;if(u.doNotIndent.hasOwnProperty(z)||(A.context&&A.context.noIndent)){this.noIndent=true}}function s(z){if(z.context){z.context=z.context.prev}}function o(B,A){var z;while(true){if(!B.context){return}z=B.context.tagName.toLowerCase();if(!u.contextGrabbers.hasOwnProperty(z)||!u.contextGrabbers[z].hasOwnProperty(A)){return}s(B)}}function k(z,C,B){if(z=="openTag"){B.tagName=d;B.tagStart=C.column();return c}else{if(z=="closeTag"){var A=false;if(B.context){if(B.context.tagName!=d){if(u.implicitlyClosed.hasOwnProperty(B.context.tagName.toLowerCase())){s(B)}A=!B.context||B.context.tagName!=d}}else{A=true}if(A){f="error"}return A?y:r}else{return k}}}function r(A,z,B){if(A!="endTag"){f="error";return r}s(B);return k}function y(z,B,A){f="error";return r(z,B,A)}function c(C,A,D){if(C=="word"){f="attribute";return h}else{if(C=="endTag"||C=="selfcloseTag"){var B=D.tagName,z=D.tagStart;D.tagName=D.tagStart=null;if(C=="selfcloseTag"||u.autoSelfClosers.hasOwnProperty(B.toLowerCase())){o(D,B.toLowerCase())}else{o(D,B.toLowerCase());D.context=new q(D,B,z==D.indented)}return k}}f="error";return c}function h(z,B,A){if(z=="equals"){return n}if(!u.allowMissing){f="error"}return c(z,B,A)}function n(z,B,A){if(z=="string"){return g}if(z=="word"&&u.allowUnquoted){f="string";return c}f="error";return c(z,B,A)}function g(z,B,A){if(z=="string"){return g}return c(z,B,A)}return{startState:function(){return{tokenize:m,state:k,indented:0,tagName:null,tagStart:null,context:null}},token:function(B,A){if(!A.tagName&&B.sol()){A.indented=B.indentation()}if(B.eatSpace()){return null}d=e=null;var z=A.tokenize(B,A);if((z||e)&&z!="comment"){f=null;A.state=A.state(e||z,B,A);if(f){z=f=="error"?z+" error":f}}return z},indent:function(C,z,B){var A=C.context;if(C.tokenize.isInAttribute){return C.stringStartCol+1}if(A&&A.noIndent){return CodeMirror.Pass}if(C.tokenize!=l&&C.tokenize!=m){return B?B.match(/^(\s*)/)[0].length:0}if(C.tagName){if(b){return C.tagStart+C.tagName.length+2}else{return C.tagStart+p*v}}if(a&&/<!\[CDATA\[/.test(z)){return 0}if(A&&/^<\//.test(z)){A=A.prev}while(A&&!A.startOfLine){A=A.prev}if(A){return A.indent+p}else{return 0}},electricChars:"/",blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:j.htmlMode?"html":"xml",helperType:j.htmlMode?"html":"xml"}});CodeMirror.defineMIME("text/xml","xml");CodeMirror.defineMIME("application/xml","xml");if(!CodeMirror.mimeModes.hasOwnProperty("text/html")){CodeMirror.defineMIME("text/html",{name:"xml",htmlMode:true})}; // CodeMirror JS. -CodeMirror.defineMode('javascript', function (W, ag) { - var i = W.indentUnit; - var w = ag.statementIndent; - var v = ag.json; - var e = ag.typescript; - var am = (function () { - function aJ(aL) { - return {type: aL, style: 'keyword'}; - } - var aE = aJ('keyword a'), - aC = aJ('keyword b'), - aB = aJ('keyword c'); - var aD = aJ('operator'), - aH = {type: 'atom', style: 'atom'}; - var aF = { - if: aJ('if'), - while: aE, - with: aE, - else: aC, - do: aC, - try: aC, - finally: aC, - return: aB, - break: aB, - continue: aB, - new: aB, - delete: aB, - throw: aB, - debugger: aB, - var: aJ('var'), - const: aJ('var'), - let: aJ('var'), - function: aJ('function'), - catch: aJ('catch'), - for: aJ('for'), - switch: aJ('switch'), - case: aJ('case'), - default: aJ('default'), - in: aD, - typeof: aD, - instanceof: aD, - true: aH, - false: aH, - null: aH, - undefined: aH, - NaN: aH, - Infinity: aH, - this: aJ('this'), - module: aJ('module'), - class: aJ('class'), - super: aJ('atom'), - yield: aB, - export: aJ('export'), - import: aJ('import'), - extends: aB - }; - if (e) { - var aK = {type: 'variable', style: 'variable-3'}; - var aG = { - interface: aJ('interface'), - extends: aJ('extends'), - constructor: aJ('constructor'), - public: aJ('public'), - private: aJ('private'), - protected: aJ('protected'), - static: aJ('static'), - string: aK, - number: aK, - bool: aK, - any: aK - }; - for (var aI in aG) { - aF[aI] = aG[aI]; - } - } - return aF; - })(); - var L = /[+\-*&%=<>!?|~^]/; - function B(aE) { - var aC = false, - aB, - aD = false; - while ((aB = aE.next()) != null) { - if (!aC) { - if (aB == '/' && !aD) { - return; - } - if (aB == '[') { - aD = true; - } else { - if (aD && aB == ']') { - aD = false; - } - } - } - aC = !aC && aB == '\\'; - } - } - var O, C; - function H(aD, aC, aB) { - O = aD; - C = aB; - return aC; - } - function Q(aF, aD) { - var aB = aF.next(); - if (aB == '"' || aB == "'") { - aD.tokenize = N(aB); - return aD.tokenize(aF, aD); - } else { - if (aB == '.' && aF.match(/^\d+(?:[eE][+\-]?\d+)?/)) { - return H('number', 'number'); - } else { - if (aB == '.' && aF.match('..')) { - return H('spread', 'meta'); - } else { - if (/[\[\]{}\(\),;\:\.]/.test(aB)) { - return H(aB); - } else { - if (aB == '=' && aF.eat('>')) { - return H('=>', 'operator'); - } else { - if (aB == '0' && aF.eat(/x/i)) { - aF.eatWhile(/[\da-f]/i); - return H('number', 'number'); - } else { - if (/\d/.test(aB)) { - aF.match(/^\d*(?:\.\d*)?(?:[eE][+\-]?\d+)?/); - return H('number', 'number'); - } else { - if (aB == '/') { - if (aF.eat('*')) { - aD.tokenize = at; - return at(aF, aD); - } else { - if (aF.eat('/')) { - aF.skipToEnd(); - return H('comment', 'comment'); - } else { - if ( - aD.lastType == 'operator' || - aD.lastType == 'keyword c' || - aD.lastType == 'sof' || - /^[\[{}\(,;:]$/.test(aD.lastType) - ) { - B(aF); - aF.eatWhile(/[gimy]/); - return H('regexp', 'string-2'); - } else { - aF.eatWhile(L); - return H('operator', 'operator', aF.current()); - } - } - } - } else { - if (aB == '`') { - aD.tokenize = au; - return au(aF, aD); - } else { - if (aB == '#') { - aF.skipToEnd(); - return H('error', 'error'); - } else { - if (L.test(aB)) { - aF.eatWhile(L); - return H('operator', 'operator', aF.current()); - } else { - aF.eatWhile(/[\w\$_]/); - var aE = aF.current(), - aC = am.propertyIsEnumerable(aE) && am[aE]; - return aC && aD.lastType != '.' - ? H(aC.type, aC.style, aE) - : H('variable', 'variable', aE); - } - } - } - } - } - } - } - } - } - } - } - } - function N(aB) { - return function (aF, aD) { - var aE = false, - aC; - while ((aC = aF.next()) != null) { - if (aC == aB && !aE) { - break; - } - aE = !aE && aC == '\\'; - } - if (!aE) { - aD.tokenize = Q; - } - return H('string', 'string'); - }; - } - function at(aE, aD) { - var aB = false, - aC; - while ((aC = aE.next())) { - if (aC == '/' && aB) { - aD.tokenize = Q; - break; - } - aB = aC == '*'; - } - return H('comment', 'comment'); - } - function au(aE, aC) { - var aD = false, - aB; - while ((aB = aE.next()) != null) { - if (!aD && (aB == '`' || (aB == '$' && aE.eat('{')))) { - aC.tokenize = Q; - break; - } - aD = !aD && aB == '\\'; - } - return H('quasi', 'string-2', aE.current()); - } - var j = '([{}])'; - function ap(aH, aE) { - if (aE.fatArrowAt) { - aE.fatArrowAt = null; - } - var aD = aH.string.indexOf('=>', aH.start); - if (aD < 0) { - return; - } - var aG = 0, - aC = false; - for (var aI = aD - 1; aI >= 0; --aI) { - var aB = aH.string.charAt(aI); - var aF = j.indexOf(aB); - if (aF >= 0 && aF < 3) { - if (!aG) { - ++aI; - break; - } - if (--aG == 0) { - break; - } - } else { - if (aF >= 3 && aF < 6) { - ++aG; - } else { - if (/[$\w]/.test(aB)) { - aC = true; - } else { - if (aC && !aG) { - ++aI; - break; - } - } - } - } - } - if (aC && !aG) { - aE.fatArrowAt = aI; - } - } - var a = {atom: true, number: true, variable: true, string: true, regexp: true, this: true}; - function F(aG, aC, aB, aF, aD, aE) { - this.indented = aG; - this.column = aC; - this.type = aB; - this.prev = aD; - this.info = aE; - if (aF != null) { - this.align = aF; - } - } - function o(aE, aD) { - for (var aC = aE.localVars; aC; aC = aC.next) { - if (aC.name == aD) { - return true; - } - } - for (var aB = aE.context; aB; aB = aB.prev) { - for (var aC = aB.vars; aC; aC = aC.next) { - if (aC.name == aD) { - return true; - } - } - } - } - function d(aF, aC, aB, aE, aG) { - var aH = aF.cc; - z.state = aF; - z.stream = aG; - (z.marked = null), (z.cc = aH); - if (!aF.lexical.hasOwnProperty('align')) { - aF.lexical.align = true; - } - while (true) { - var aD = aH.length ? aH.pop() : v ? ak : az; - if (aD(aB, aE)) { - while (aH.length && aH[aH.length - 1].lex) { - aH.pop()(); - } - if (z.marked) { - return z.marked; - } - if (aB == 'variable' && o(aF, aE)) { - return 'variable-2'; - } - return aC; - } - } - } - var z = {state: null, column: null, marked: null, cc: null}; - function X() { - for (var aB = arguments.length - 1; aB >= 0; aB--) { - z.cc.push(arguments[aB]); - } - } - function ab() { - X.apply(null, arguments); - return true; - } - function ao(aC) { - function aB(aF) { - for (var aE = aF; aE; aE = aE.next) { - if (aE.name == aC) { - return true; - } - } - return false; - } - var aD = z.state; - if (aD.context) { - z.marked = 'def'; - if (aB(aD.localVars)) { - return; - } - aD.localVars = {name: aC, next: aD.localVars}; - } else { - if (aB(aD.globalVars)) { - return; - } - if (ag.globalVars) { - aD.globalVars = {name: aC, next: aD.globalVars}; - } - } - } - var m = {name: 'this', next: {name: 'arguments'}}; - function s() { - z.state.context = {prev: z.state.context, vars: z.state.localVars}; - z.state.localVars = m; - } - function t() { - z.state.localVars = z.state.context.vars; - z.state.context = z.state.context.prev; - } - function ax(aC, aD) { - var aB = function () { - var aF = z.state, - aE = aF.indented; - if (aF.lexical.type == 'stat') { - aE = aF.lexical.indented; - } - aF.lexical = new F(aE, z.stream.column(), aC, null, aF.lexical, aD); - }; - aB.lex = true; - return aB; - } - function f() { - var aB = z.state; - if (aB.lexical.prev) { - if (aB.lexical.type == ')') { - aB.indented = aB.lexical.indented; - } - aB.lexical = aB.lexical.prev; - } - } - f.lex = true; - function n(aB) { - return function (aC) { - if (aC == aB) { - return ab(); - } else { - if (aB == ';') { - return X(); - } else { - return ab(arguments.callee); - } - } - }; - } - function az(aB, aC) { - if (aB == 'var') { - return ab(ax('vardef', aC.length), b, n(';'), f); - } - if (aB == 'keyword a') { - return ab(ax('form'), ak, az, f); - } - if (aB == 'keyword b') { - return ab(ax('form'), az, f); - } - if (aB == '{') { - return ab(ax('}'), u, f); - } - if (aB == ';') { - return ab(); - } - if (aB == 'if') { - return ab(ax('form'), ak, az, f, c); - } - if (aB == 'function') { - return ab(I); - } - if (aB == 'for') { - return ab(ax('form'), q, az, f); - } - if (aB == 'variable') { - return ab(ax('stat'), aA); - } - if (aB == 'switch') { - return ab(ax('form'), ak, ax('}', 'switch'), n('{'), u, f, f); - } - if (aB == 'case') { - return ab(ak, n(':')); - } - if (aB == 'default') { - return ab(n(':')); - } - if (aB == 'catch') { - return ab(ax('form'), s, n('('), ac, n(')'), az, f, t); - } - if (aB == 'module') { - return ab(ax('form'), s, D, t, f); - } - if (aB == 'class') { - return ab(ax('form'), S, R, f); - } - if (aB == 'export') { - return ab(ax('form'), ay, f); - } - if (aB == 'import') { - return ab(ax('form'), ad, f); - } - return X(ax('stat'), ak, n(';'), f); - } - function ak(aB) { - return V(aB, false); - } - function aw(aB) { - return V(aB, true); - } - function V(aC, aE) { - if (z.state.fatArrowAt == z.stream.start) { - var aB = aE ? J : T; - if (aC == '(') { - return ab(s, ax(')'), an(g, ')'), f, n('=>'), aB, t); - } else { - if (aC == 'variable') { - return X(s, g, n('=>'), aB, t); - } - } - } - var aD = aE ? h : Y; - if (a.hasOwnProperty(aC)) { - return ab(aD); - } - if (aC == 'function') { - return ab(I); - } - if (aC == 'keyword c') { - return ab(aE ? ah : af); - } - if (aC == '(') { - return ab(ax(')'), af, ar, n(')'), f, aD); - } - if (aC == 'operator' || aC == 'spread') { - return ab(aE ? aw : ak); - } - if (aC == '[') { - return ab(ax(']'), k, f, aD); - } - if (aC == '{') { - return aq(p, '}', null, aD); - } - return ab(); - } - function af(aB) { - if (aB.match(/[;\}\)\],]/)) { - return X(); - } - return X(ak); - } - function ah(aB) { - if (aB.match(/[;\}\)\],]/)) { - return X(); - } - return X(aw); - } - function Y(aB, aC) { - if (aB == ',') { - return ab(ak); - } - return h(aB, aC, false); - } - function h(aB, aD, aF) { - var aC = aF == false ? Y : h; - var aE = aF == false ? ak : aw; - if (aD == '=>') { - return ab(s, aF ? J : T, t); - } - if (aB == 'operator') { - if (/\+\+|--/.test(aD)) { - return ab(aC); - } - if (aD == '?') { - return ab(ak, n(':'), aE); - } - return ab(aE); - } - if (aB == 'quasi') { - z.cc.push(aC); - return M(aD); - } - if (aB == ';') { - return; - } - if (aB == '(') { - return aq(aw, ')', 'call', aC); - } - if (aB == '.') { - return ab(ai, aC); - } - if (aB == '[') { - return ab(ax(']'), af, n(']'), f, aC); - } - } - function M(aB) { - if (aB.slice(aB.length - 2) != '${') { - return ab(); - } - return ab(ak, l); - } - function l(aB) { - if (aB == '}') { - z.marked = 'string-2'; - z.state.tokenize = au; - return ab(); - } - } - function T(aB) { - ap(z.stream, z.state); - if (aB == '{') { - return X(az); - } - return X(ak); - } - function J(aB) { - ap(z.stream, z.state); - if (aB == '{') { - return X(az); - } - return X(aw); - } - function aA(aB) { - if (aB == ':') { - return ab(f, az); - } - return X(Y, n(';'), f); - } - function ai(aB) { - if (aB == 'variable') { - z.marked = 'property'; - return ab(); - } - } - function p(aB, aC) { - if (aB == 'variable') { - z.marked = 'property'; - if (aC == 'get' || aC == 'set') { - return ab(E); - } - } else { - if (aB == 'number' || aB == 'string') { - z.marked = aB + ' property'; - } else { - if (aB == '[') { - return ab(ak, n(']'), G); - } - } - } - if (a.hasOwnProperty(aB)) { - return ab(G); - } - } - function E(aB) { - if (aB != 'variable') { - return X(G); - } - z.marked = 'property'; - return ab(I); - } - function G(aB) { - if (aB == ':') { - return ab(aw); - } - if (aB == '(') { - return X(I); - } - } - function an(aD, aB) { - function aC(aF) { - if (aF == ',') { - var aE = z.state.lexical; - if (aE.info == 'call') { - aE.pos = (aE.pos || 0) + 1; - } - return ab(aD, aC); - } - if (aF == aB) { - return ab(); - } - return ab(n(aB)); - } - return function (aE) { - if (aE == aB) { - return ab(); - } - return X(aD, aC); - }; - } - function aq(aE, aB, aD) { - for (var aC = 3; aC < arguments.length; aC++) { - z.cc.push(arguments[aC]); - } - return ab(ax(aB, aD), an(aE, aB), f); - } - function u(aB) { - if (aB == '}') { - return ab(); - } - return X(az, u); - } - function P(aB) { - if (e && aB == ':') { - return ab(aa); - } - } - function aa(aB) { - if (aB == 'variable') { - z.marked = 'variable-3'; - return ab(); - } - } - function b() { - return X(g, P, Z, U); - } - function g(aB, aC) { - if (aB == 'variable') { - ao(aC); - return ab(); - } - if (aB == '[') { - return aq(g, ']'); - } - if (aB == '{') { - return aq(av, '}'); - } - } - function av(aB, aC) { - if (aB == 'variable' && !z.stream.match(/^\s*:/, false)) { - ao(aC); - return ab(Z); - } - if (aB == 'variable') { - z.marked = 'property'; - } - return ab(n(':'), g, Z); - } - function Z(aB, aC) { - if (aC == '=') { - return ab(aw); - } - } - function U(aB) { - if (aB == ',') { - return ab(b); - } - } - function c(aB, aC) { - if (aB == 'keyword b' && aC == 'else') { - return ab(ax('form'), az, f); - } - } - function q(aB) { - if (aB == '(') { - return ab(ax(')'), A, n(')'), f); - } - } - function A(aB) { - if (aB == 'var') { - return ab(b, n(';'), y); - } - if (aB == ';') { - return ab(y); - } - if (aB == 'variable') { - return ab(r); - } - return X(ak, n(';'), y); - } - function r(aB, aC) { - if (aC == 'in' || aC == 'of') { - z.marked = 'keyword'; - return ab(ak); - } - return ab(Y, y); - } - function y(aB, aC) { - if (aB == ';') { - return ab(x); - } - if (aC == 'in' || aC == 'of') { - z.marked = 'keyword'; - return ab(ak); - } - return X(ak, n(';'), x); - } - function x(aB) { - if (aB != ')') { - ab(ak); - } - } - function I(aB, aC) { - if (aC == '*') { - z.marked = 'keyword'; - return ab(I); - } - if (aB == 'variable') { - ao(aC); - return ab(I); - } - if (aB == '(') { - return ab(s, ax(')'), an(ac, ')'), f, az, t); - } - } - function ac(aB) { - if (aB == 'spread') { - return ab(ac); - } - return X(g, P); - } - function S(aB, aC) { - if (aB == 'variable') { - ao(aC); - return ab(K); - } - } - function K(aB, aC) { - if (aC == 'extends') { - return ab(ak); - } - } - function R(aB) { - if (aB == '{') { - return aq(p, '}'); - } - } - function D(aB, aC) { - if (aB == 'string') { - return ab(az); - } - if (aB == 'variable') { - ao(aC); - return ab(ae); - } - } - function ay(aB, aC) { - if (aC == '*') { - z.marked = 'keyword'; - return ab(ae, n(';')); - } - if (aC == 'default') { - z.marked = 'keyword'; - return ab(ak, n(';')); - } - return X(az); - } - function ad(aB) { - if (aB == 'string') { - return ab(); - } - return X(al, ae); - } - function al(aB, aC) { - if (aB == '{') { - return aq(al, '}'); - } - if (aB == 'variable') { - ao(aC); - } - return ab(); - } - function ae(aB, aC) { - if (aC == 'from') { - z.marked = 'keyword'; - return ab(ak); - } - } - function k(aB) { - if (aB == ']') { - return ab(); - } - return X(aw, aj); - } - function aj(aB) { - if (aB == 'for') { - return X(ar, n(']')); - } - if (aB == ',') { - return ab(an(aw, ']')); - } - return X(an(aw, ']')); - } - function ar(aB) { - if (aB == 'for') { - return ab(q, ar); - } - if (aB == 'if') { - return ab(ak, ar); - } - } - return { - startState: function (aC) { - var aB = { - tokenize: Q, - lastType: 'sof', - cc: [], - lexical: new F((aC || 0) - i, 0, 'block', false), - localVars: ag.localVars, - context: ag.localVars && {vars: ag.localVars}, - indented: 0 - }; - if (ag.globalVars) { - aB.globalVars = ag.globalVars; - } - return aB; - }, - token: function (aD, aC) { - if (aD.sol()) { - if (!aC.lexical.hasOwnProperty('align')) { - aC.lexical.align = false; - } - aC.indented = aD.indentation(); - ap(aD, aC); - } - if (aC.tokenize != at && aD.eatSpace()) { - return null; - } - var aB = aC.tokenize(aD, aC); - if (O == 'comment') { - return aB; - } - aC.lastType = O == 'operator' && (C == '++' || C == '--') ? 'incdec' : O; - return d(aC, aB, O, C, aD); - }, - indent: function (aH, aB) { - if (aH.tokenize == at) { - return CodeMirror.Pass; - } - if (aH.tokenize != Q) { - return 0; - } - var aG = aB && aB.charAt(0), - aE = aH.lexical; - for (var aD = aH.cc.length - 1; aD >= 0; --aD) { - var aI = aH.cc[aD]; - if (aI == f) { - aE = aE.prev; - } else { - if (aI != c) { - break; - } - } - } - if (aE.type == 'stat' && aG == '}') { - aE = aE.prev; - } - if (w && aE.type == ')' && aE.prev.type == 'stat') { - aE = aE.prev; - } - var aF = aE.type, - aC = aG == aF; - if (aF == 'vardef') { - return aE.indented + (aH.lastType == 'operator' || aH.lastType == ',' ? aE.info + 1 : 0); - } else { - if (aF == 'form' && aG == '{') { - return aE.indented; - } else { - if (aF == 'form') { - return aE.indented + i; - } else { - if (aF == 'stat') { - return aE.indented + (aH.lastType == 'operator' || aH.lastType == ',' ? w || i : 0); - } else { - if (aE.info == 'switch' && !aC && ag.doubleIndentSwitch != false) { - return aE.indented + (/^(?:case|default)\b/.test(aB) ? i : 2 * i); - } else { - if (aE.align) { - return aE.column + (aC ? 0 : 1); - } else { - return aE.indented + (aC ? 0 : i); - } - } - } - } - } - } - }, - electricChars: ':{}', - blockCommentStart: v ? null : '/*', - blockCommentEnd: v ? null : '*/', - lineComment: v ? null : '//', - fold: 'brace', - helperType: v ? 'json' : 'javascript', - jsonMode: v - }; -}); -CodeMirror.defineMIME('text/javascript', 'javascript'); -CodeMirror.defineMIME('text/ecmascript', 'javascript'); -CodeMirror.defineMIME('application/javascript', 'javascript'); -CodeMirror.defineMIME('application/ecmascript', 'javascript'); -CodeMirror.defineMIME('application/json', {name: 'javascript', json: true}); -CodeMirror.defineMIME('application/x-json', {name: 'javascript', json: true}); -CodeMirror.defineMIME('text/typescript', {name: 'javascript', typescript: true}); -CodeMirror.defineMIME('application/typescript', {name: 'javascript', typescript: true}); +CodeMirror.defineMode("javascript",function(W,ag){var i=W.indentUnit;var w=ag.statementIndent;var v=ag.json;var e=ag.typescript;var am=function(){function aJ(aL){return{type:aL,style:"keyword"}}var aE=aJ("keyword a"),aC=aJ("keyword b"),aB=aJ("keyword c");var aD=aJ("operator"),aH={type:"atom",style:"atom"};var aF={"if":aJ("if"),"while":aE,"with":aE,"else":aC,"do":aC,"try":aC,"finally":aC,"return":aB,"break":aB,"continue":aB,"new":aB,"delete":aB,"throw":aB,"debugger":aB,"var":aJ("var"),"const":aJ("var"),let:aJ("var"),"function":aJ("function"),"catch":aJ("catch"),"for":aJ("for"),"switch":aJ("switch"),"case":aJ("case"),"default":aJ("default"),"in":aD,"typeof":aD,"instanceof":aD,"true":aH,"false":aH,"null":aH,"undefined":aH,"NaN":aH,"Infinity":aH,"this":aJ("this"),module:aJ("module"),"class":aJ("class"),"super":aJ("atom"),yield:aB,"export":aJ("export"),"import":aJ("import"),"extends":aB};if(e){var aK={type:"variable",style:"variable-3"};var aG={"interface":aJ("interface"),"extends":aJ("extends"),constructor:aJ("constructor"),"public":aJ("public"),"private":aJ("private"),"protected":aJ("protected"),"static":aJ("static"),string:aK,number:aK,bool:aK,any:aK};for(var aI in aG){aF[aI]=aG[aI]}}return aF}();var L=/[+\-*&%=<>!?|~^]/;function B(aE){var aC=false,aB,aD=false;while((aB=aE.next())!=null){if(!aC){if(aB=="/"&&!aD){return}if(aB=="["){aD=true}else{if(aD&&aB=="]"){aD=false}}}aC=!aC&&aB=="\\"}}var O,C;function H(aD,aC,aB){O=aD;C=aB;return aC}function Q(aF,aD){var aB=aF.next();if(aB=='"'||aB=="'"){aD.tokenize=N(aB);return aD.tokenize(aF,aD)}else{if(aB=="."&&aF.match(/^\d+(?:[eE][+\-]?\d+)?/)){return H("number","number")}else{if(aB=="."&&aF.match("..")){return H("spread","meta")}else{if(/[\[\]{}\(\),;\:\.]/.test(aB)){return H(aB)}else{if(aB=="="&&aF.eat(">")){return H("=>","operator")}else{if(aB=="0"&&aF.eat(/x/i)){aF.eatWhile(/[\da-f]/i);return H("number","number")}else{if(/\d/.test(aB)){aF.match(/^\d*(?:\.\d*)?(?:[eE][+\-]?\d+)?/);return H("number","number")}else{if(aB=="/"){if(aF.eat("*")){aD.tokenize=at;return at(aF,aD)}else{if(aF.eat("/")){aF.skipToEnd();return H("comment","comment")}else{if(aD.lastType=="operator"||aD.lastType=="keyword c"||aD.lastType=="sof"||/^[\[{}\(,;:]$/.test(aD.lastType)){B(aF);aF.eatWhile(/[gimy]/);return H("regexp","string-2")}else{aF.eatWhile(L);return H("operator","operator",aF.current())}}}}else{if(aB=="`"){aD.tokenize=au;return au(aF,aD)}else{if(aB=="#"){aF.skipToEnd();return H("error","error")}else{if(L.test(aB)){aF.eatWhile(L);return H("operator","operator",aF.current())}else{aF.eatWhile(/[\w\$_]/);var aE=aF.current(),aC=am.propertyIsEnumerable(aE)&&am[aE];return(aC&&aD.lastType!=".")?H(aC.type,aC.style,aE):H("variable","variable",aE)}}}}}}}}}}}}function N(aB){return function(aF,aD){var aE=false,aC;while((aC=aF.next())!=null){if(aC==aB&&!aE){break}aE=!aE&&aC=="\\"}if(!aE){aD.tokenize=Q}return H("string","string")}}function at(aE,aD){var aB=false,aC;while(aC=aE.next()){if(aC=="/"&&aB){aD.tokenize=Q;break}aB=(aC=="*")}return H("comment","comment")}function au(aE,aC){var aD=false,aB;while((aB=aE.next())!=null){if(!aD&&(aB=="`"||aB=="$"&&aE.eat("{"))){aC.tokenize=Q;break}aD=!aD&&aB=="\\"}return H("quasi","string-2",aE.current())}var j="([{}])";function ap(aH,aE){if(aE.fatArrowAt){aE.fatArrowAt=null}var aD=aH.string.indexOf("=>",aH.start);if(aD<0){return}var aG=0,aC=false;for(var aI=aD-1;aI>=0;--aI){var aB=aH.string.charAt(aI);var aF=j.indexOf(aB);if(aF>=0&&aF<3){if(!aG){++aI;break}if(--aG==0){break}}else{if(aF>=3&&aF<6){++aG}else{if(/[$\w]/.test(aB)){aC=true}else{if(aC&&!aG){++aI;break}}}}}if(aC&&!aG){aE.fatArrowAt=aI}}var a={atom:true,number:true,variable:true,string:true,regexp:true,"this":true};function F(aG,aC,aB,aF,aD,aE){this.indented=aG;this.column=aC;this.type=aB;this.prev=aD;this.info=aE;if(aF!=null){this.align=aF}}function o(aE,aD){for(var aC=aE.localVars;aC;aC=aC.next){if(aC.name==aD){return true}}for(var aB=aE.context;aB;aB=aB.prev){for(var aC=aB.vars;aC;aC=aC.next){if(aC.name==aD){return true}}}}function d(aF,aC,aB,aE,aG){var aH=aF.cc;z.state=aF;z.stream=aG;z.marked=null,z.cc=aH;if(!aF.lexical.hasOwnProperty("align")){aF.lexical.align=true}while(true){var aD=aH.length?aH.pop():v?ak:az;if(aD(aB,aE)){while(aH.length&&aH[aH.length-1].lex){aH.pop()()}if(z.marked){return z.marked}if(aB=="variable"&&o(aF,aE)){return"variable-2"}return aC}}}var z={state:null,column:null,marked:null,cc:null};function X(){for(var aB=arguments.length-1;aB>=0;aB--){z.cc.push(arguments[aB])}}function ab(){X.apply(null,arguments);return true}function ao(aC){function aB(aF){for(var aE=aF;aE;aE=aE.next){if(aE.name==aC){return true}}return false}var aD=z.state;if(aD.context){z.marked="def";if(aB(aD.localVars)){return}aD.localVars={name:aC,next:aD.localVars}}else{if(aB(aD.globalVars)){return}if(ag.globalVars){aD.globalVars={name:aC,next:aD.globalVars}}}}var m={name:"this",next:{name:"arguments"}};function s(){z.state.context={prev:z.state.context,vars:z.state.localVars};z.state.localVars=m}function t(){z.state.localVars=z.state.context.vars;z.state.context=z.state.context.prev}function ax(aC,aD){var aB=function(){var aF=z.state,aE=aF.indented;if(aF.lexical.type=="stat"){aE=aF.lexical.indented}aF.lexical=new F(aE,z.stream.column(),aC,null,aF.lexical,aD)};aB.lex=true;return aB}function f(){var aB=z.state;if(aB.lexical.prev){if(aB.lexical.type==")"){aB.indented=aB.lexical.indented}aB.lexical=aB.lexical.prev}}f.lex=true;function n(aB){return function(aC){if(aC==aB){return ab()}else{if(aB==";"){return X()}else{return ab(arguments.callee)}}}}function az(aB,aC){if(aB=="var"){return ab(ax("vardef",aC.length),b,n(";"),f)}if(aB=="keyword a"){return ab(ax("form"),ak,az,f)}if(aB=="keyword b"){return ab(ax("form"),az,f)}if(aB=="{"){return ab(ax("}"),u,f)}if(aB==";"){return ab()}if(aB=="if"){return ab(ax("form"),ak,az,f,c)}if(aB=="function"){return ab(I)}if(aB=="for"){return ab(ax("form"),q,az,f)}if(aB=="variable"){return ab(ax("stat"),aA)}if(aB=="switch"){return ab(ax("form"),ak,ax("}","switch"),n("{"),u,f,f)}if(aB=="case"){return ab(ak,n(":"))}if(aB=="default"){return ab(n(":"))}if(aB=="catch"){return ab(ax("form"),s,n("("),ac,n(")"),az,f,t)}if(aB=="module"){return ab(ax("form"),s,D,t,f)}if(aB=="class"){return ab(ax("form"),S,R,f)}if(aB=="export"){return ab(ax("form"),ay,f)}if(aB=="import"){return ab(ax("form"),ad,f)}return X(ax("stat"),ak,n(";"),f)}function ak(aB){return V(aB,false)}function aw(aB){return V(aB,true)}function V(aC,aE){if(z.state.fatArrowAt==z.stream.start){var aB=aE?J:T;if(aC=="("){return ab(s,ax(")"),an(g,")"),f,n("=>"),aB,t)}else{if(aC=="variable"){return X(s,g,n("=>"),aB,t)}}}var aD=aE?h:Y;if(a.hasOwnProperty(aC)){return ab(aD)}if(aC=="function"){return ab(I)}if(aC=="keyword c"){return ab(aE?ah:af)}if(aC=="("){return ab(ax(")"),af,ar,n(")"),f,aD)}if(aC=="operator"||aC=="spread"){return ab(aE?aw:ak)}if(aC=="["){return ab(ax("]"),k,f,aD)}if(aC=="{"){return aq(p,"}",null,aD)}return ab()}function af(aB){if(aB.match(/[;\}\)\],]/)){return X()}return X(ak)}function ah(aB){if(aB.match(/[;\}\)\],]/)){return X()}return X(aw)}function Y(aB,aC){if(aB==","){return ab(ak)}return h(aB,aC,false)}function h(aB,aD,aF){var aC=aF==false?Y:h;var aE=aF==false?ak:aw;if(aD=="=>"){return ab(s,aF?J:T,t)}if(aB=="operator"){if(/\+\+|--/.test(aD)){return ab(aC)}if(aD=="?"){return ab(ak,n(":"),aE)}return ab(aE)}if(aB=="quasi"){z.cc.push(aC);return M(aD)}if(aB==";"){return}if(aB=="("){return aq(aw,")","call",aC)}if(aB=="."){return ab(ai,aC)}if(aB=="["){return ab(ax("]"),af,n("]"),f,aC)}}function M(aB){if(aB.slice(aB.length-2)!="${"){return ab()}return ab(ak,l)}function l(aB){if(aB=="}"){z.marked="string-2";z.state.tokenize=au;return ab()}}function T(aB){ap(z.stream,z.state);if(aB=="{"){return X(az)}return X(ak)}function J(aB){ap(z.stream,z.state);if(aB=="{"){return X(az)}return X(aw)}function aA(aB){if(aB==":"){return ab(f,az)}return X(Y,n(";"),f)}function ai(aB){if(aB=="variable"){z.marked="property";return ab()}}function p(aB,aC){if(aB=="variable"){z.marked="property";if(aC=="get"||aC=="set"){return ab(E)}}else{if(aB=="number"||aB=="string"){z.marked=aB+" property"}else{if(aB=="["){return ab(ak,n("]"),G)}}}if(a.hasOwnProperty(aB)){return ab(G)}}function E(aB){if(aB!="variable"){return X(G)}z.marked="property";return ab(I)}function G(aB){if(aB==":"){return ab(aw)}if(aB=="("){return X(I)}}function an(aD,aB){function aC(aF){if(aF==","){var aE=z.state.lexical;if(aE.info=="call"){aE.pos=(aE.pos||0)+1}return ab(aD,aC)}if(aF==aB){return ab()}return ab(n(aB))}return function(aE){if(aE==aB){return ab()}return X(aD,aC)}}function aq(aE,aB,aD){for(var aC=3;aC<arguments.length;aC++){z.cc.push(arguments[aC])}return ab(ax(aB,aD),an(aE,aB),f)}function u(aB){if(aB=="}"){return ab()}return X(az,u)}function P(aB){if(e&&aB==":"){return ab(aa)}}function aa(aB){if(aB=="variable"){z.marked="variable-3";return ab()}}function b(){return X(g,P,Z,U)}function g(aB,aC){if(aB=="variable"){ao(aC);return ab()}if(aB=="["){return aq(g,"]")}if(aB=="{"){return aq(av,"}")}}function av(aB,aC){if(aB=="variable"&&!z.stream.match(/^\s*:/,false)){ao(aC);return ab(Z)}if(aB=="variable"){z.marked="property"}return ab(n(":"),g,Z)}function Z(aB,aC){if(aC=="="){return ab(aw)}}function U(aB){if(aB==","){return ab(b)}}function c(aB,aC){if(aB=="keyword b"&&aC=="else"){return ab(ax("form"),az,f)}}function q(aB){if(aB=="("){return ab(ax(")"),A,n(")"),f)}}function A(aB){if(aB=="var"){return ab(b,n(";"),y)}if(aB==";"){return ab(y)}if(aB=="variable"){return ab(r)}return X(ak,n(";"),y)}function r(aB,aC){if(aC=="in"||aC=="of"){z.marked="keyword";return ab(ak)}return ab(Y,y)}function y(aB,aC){if(aB==";"){return ab(x)}if(aC=="in"||aC=="of"){z.marked="keyword";return ab(ak)}return X(ak,n(";"),x)}function x(aB){if(aB!=")"){ab(ak)}}function I(aB,aC){if(aC=="*"){z.marked="keyword";return ab(I)}if(aB=="variable"){ao(aC);return ab(I)}if(aB=="("){return ab(s,ax(")"),an(ac,")"),f,az,t)}}function ac(aB){if(aB=="spread"){return ab(ac)}return X(g,P)}function S(aB,aC){if(aB=="variable"){ao(aC);return ab(K)}}function K(aB,aC){if(aC=="extends"){return ab(ak)}}function R(aB){if(aB=="{"){return aq(p,"}")}}function D(aB,aC){if(aB=="string"){return ab(az)}if(aB=="variable"){ao(aC);return ab(ae)}}function ay(aB,aC){if(aC=="*"){z.marked="keyword";return ab(ae,n(";"))}if(aC=="default"){z.marked="keyword";return ab(ak,n(";"))}return X(az)}function ad(aB){if(aB=="string"){return ab()}return X(al,ae)}function al(aB,aC){if(aB=="{"){return aq(al,"}")}if(aB=="variable"){ao(aC)}return ab()}function ae(aB,aC){if(aC=="from"){z.marked="keyword";return ab(ak)}}function k(aB){if(aB=="]"){return ab()}return X(aw,aj)}function aj(aB){if(aB=="for"){return X(ar,n("]"))}if(aB==","){return ab(an(aw,"]"))}return X(an(aw,"]"))}function ar(aB){if(aB=="for"){return ab(q,ar)}if(aB=="if"){return ab(ak,ar)}}return{startState:function(aC){var aB={tokenize:Q,lastType:"sof",cc:[],lexical:new F((aC||0)-i,0,"block",false),localVars:ag.localVars,context:ag.localVars&&{vars:ag.localVars},indented:0};if(ag.globalVars){aB.globalVars=ag.globalVars}return aB},token:function(aD,aC){if(aD.sol()){if(!aC.lexical.hasOwnProperty("align")){aC.lexical.align=false}aC.indented=aD.indentation();ap(aD,aC)}if(aC.tokenize!=at&&aD.eatSpace()){return null}var aB=aC.tokenize(aD,aC);if(O=="comment"){return aB}aC.lastType=O=="operator"&&(C=="++"||C=="--")?"incdec":O;return d(aC,aB,O,C,aD)},indent:function(aH,aB){if(aH.tokenize==at){return CodeMirror.Pass}if(aH.tokenize!=Q){return 0}var aG=aB&&aB.charAt(0),aE=aH.lexical;for(var aD=aH.cc.length-1;aD>=0;--aD){var aI=aH.cc[aD];if(aI==f){aE=aE.prev}else{if(aI!=c){break}}}if(aE.type=="stat"&&aG=="}"){aE=aE.prev}if(w&&aE.type==")"&&aE.prev.type=="stat"){aE=aE.prev}var aF=aE.type,aC=aG==aF;if(aF=="vardef"){return aE.indented+(aH.lastType=="operator"||aH.lastType==","?aE.info+1:0)}else{if(aF=="form"&&aG=="{"){return aE.indented}else{if(aF=="form"){return aE.indented+i}else{if(aF=="stat"){return aE.indented+(aH.lastType=="operator"||aH.lastType==","?w||i:0)}else{if(aE.info=="switch"&&!aC&&ag.doubleIndentSwitch!=false){return aE.indented+(/^(?:case|default)\b/.test(aB)?i:2*i)}else{if(aE.align){return aE.column+(aC?0:1)}else{return aE.indented+(aC?0:i)}}}}}}},electricChars:":{}",blockCommentStart:v?null:"/*",blockCommentEnd:v?null:"*/",lineComment:v?null:"//",fold:"brace",helperType:v?"json":"javascript",jsonMode:v}});CodeMirror.defineMIME("text/javascript","javascript");CodeMirror.defineMIME("text/ecmascript","javascript");CodeMirror.defineMIME("application/javascript","javascript");CodeMirror.defineMIME("application/ecmascript","javascript");CodeMirror.defineMIME("application/json",{name:"javascript",json:true});CodeMirror.defineMIME("application/x-json",{name:"javascript",json:true});CodeMirror.defineMIME("text/typescript",{name:"javascript",typescript:true});CodeMirror.defineMIME("application/typescript",{name:"javascript",typescript:true}); // CodeMirror CSS. -CodeMirror.defineMode('css', function (u, i) { - if (!i.propertyKeywords) { - i = CodeMirror.resolveMode('text/css'); - } - var o = u.indentUnit, - b = i.tokenHooks, - t = i.mediaTypes || {}, - k = i.mediaFeatures || {}, - h = i.propertyKeywords || {}, - n = i.colorKeywords || {}, - q = i.valueKeywords || {}, - d = i.fontProperties || {}, - l = i.allowNested; - var c, m; - function v(y, z) { - c = z; - return y; - } - function x(B, A) { - var z = B.next(); - if (b[z]) { - var y = b[z](B, A); - if (y !== false) { - return y; - } - } - if (z == '@') { - B.eatWhile(/[\w\\\-]/); - return v('def', B.current()); - } else { - if (z == '=' || ((z == '~' || z == '|') && B.eat('='))) { - return v(null, 'compare'); - } else { - if (z == '"' || z == "'") { - A.tokenize = j(z); - return A.tokenize(B, A); - } else { - if (z == '#') { - B.eatWhile(/[\w\\\-]/); - return v('atom', 'hash'); - } else { - if (z == '!') { - B.match(/^\s*\w*/); - return v('keyword', 'important'); - } else { - if (/\d/.test(z) || (z == '.' && B.eat(/\d/))) { - B.eatWhile(/[\w.%]/); - return v('number', 'unit'); - } else { - if (z === '-') { - if (/[\d.]/.test(B.peek())) { - B.eatWhile(/[\w.%]/); - return v('number', 'unit'); - } else { - if (B.match(/^[^-]+-/)) { - return v('meta', 'meta'); - } - } - } else { - if (/[,+>*\/]/.test(z)) { - return v(null, 'select-op'); - } else { - if (z == '.' && B.match(/^-?[_a-z][_a-z0-9-]*/i)) { - return v('qualifier', 'qualifier'); - } else { - if (/[:;{}\[\]\(\)]/.test(z)) { - return v(null, z); - } else { - if (z == 'u' && B.match('rl(')) { - B.backUp(1); - A.tokenize = w; - return v('property', 'word'); - } else { - if (/[\w\\\-]/.test(z)) { - B.eatWhile(/[\w\\\-]/); - return v('property', 'word'); - } else { - return v(null, null); - } - } - } - } - } - } - } - } - } - } - } - } - } - function j(y) { - return function (C, A) { - var B = false, - z; - while ((z = C.next()) != null) { - if (z == y && !B) { - if (y == ')') { - C.backUp(1); - } - break; - } - B = !B && z == '\\'; - } - if (z == y || (!B && y != ')')) { - A.tokenize = null; - } - return v('string', 'string'); - }; - } - function w(z, y) { - z.next(); - if (!z.match(/\s*[\"\']/, false)) { - y.tokenize = j(')'); - } else { - y.tokenize = null; - } - return v(null, '('); - } - function p(z, y, A) { - this.type = z; - this.indent = y; - this.prev = A; - } - function f(z, A, y) { - z.context = new p(y, A.indentation() + o, z.context); - return y; - } - function r(y) { - y.context = y.context.prev; - return y.context.type; - } - function a(y, A, z) { - return e[z.context.type](y, A, z); - } - function s(z, B, A, C) { - for (var y = C || 1; y > 0; y--) { - A.context = A.context.prev; - } - return a(z, B, A); - } - function g(z) { - var y = z.current().toLowerCase(); - if (q.hasOwnProperty(y)) { - m = 'atom'; - } else { - if (n.hasOwnProperty(y)) { - m = 'keyword'; - } else { - m = 'variable'; - } - } - } - var e = {}; - e.top = function (y, A, z) { - if (y == '{') { - return f(z, A, 'block'); - } else { - if (y == '}' && z.context.prev) { - return r(z); - } else { - if (y == '@media') { - return f(z, A, 'media'); - } else { - if (y == '@font-face') { - return 'font_face_before'; - } else { - if (y && y.charAt(0) == '@') { - return f(z, A, 'at'); - } else { - if (y == 'hash') { - m = 'builtin'; - } else { - if (y == 'word') { - m = 'tag'; - } else { - if (y == 'variable-definition') { - return 'maybeprop'; - } else { - if (y == 'interpolation') { - return f(z, A, 'interpolation'); - } else { - if (y == ':') { - return 'pseudo'; - } else { - if (l && y == '(') { - return f(z, A, 'params'); - } - } - } - } - } - } - } - } - } - } - } - return z.context.type; - }; - e.block = function (y, A, z) { - if (y == 'word') { - if (h.hasOwnProperty(A.current().toLowerCase())) { - m = 'property'; - return 'maybeprop'; - } else { - if (l) { - m = A.match(/^\s*:/, false) ? 'property' : 'tag'; - return 'block'; - } else { - m += ' error'; - return 'maybeprop'; - } - } - } else { - if (y == 'meta') { - return 'block'; - } else { - if (!l && (y == 'hash' || y == 'qualifier')) { - m = 'error'; - return 'block'; - } else { - return e.top(y, A, z); - } - } - } - }; - e.maybeprop = function (y, A, z) { - if (y == ':') { - return f(z, A, 'prop'); - } - return a(y, A, z); - }; - e.prop = function (y, A, z) { - if (y == ';') { - return r(z); - } - if (y == '{' && l) { - return f(z, A, 'propBlock'); - } - if (y == '}' || y == '{') { - return s(y, A, z); - } - if (y == '(') { - return f(z, A, 'parens'); - } - if (y == 'hash' && !/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(A.current())) { - m += ' error'; - } else { - if (y == 'word') { - g(A); - } else { - if (y == 'interpolation') { - return f(z, A, 'interpolation'); - } - } - } - return 'prop'; - }; - e.propBlock = function (z, y, A) { - if (z == '}') { - return r(A); - } - if (z == 'word') { - m = 'property'; - return 'maybeprop'; - } - return A.context.type; - }; - e.parens = function (y, A, z) { - if (y == '{' || y == '}') { - return s(y, A, z); - } - if (y == ')') { - return r(z); - } - return 'parens'; - }; - e.pseudo = function (y, A, z) { - if (y == 'word') { - m = 'variable-3'; - return z.context.type; - } - return a(y, A, z); - }; - e.media = function (y, B, z) { - if (y == '(') { - return f(z, B, 'media_parens'); - } - if (y == '}') { - return s(y, B, z); - } - if (y == '{') { - return r(z) && f(z, B, l ? 'block' : 'top'); - } - if (y == 'word') { - var A = B.current().toLowerCase(); - if (A == 'only' || A == 'not' || A == 'and') { - m = 'keyword'; - } else { - if (t.hasOwnProperty(A)) { - m = 'attribute'; - } else { - if (k.hasOwnProperty(A)) { - m = 'property'; - } else { - m = 'error'; - } - } - } - } - return z.context.type; - }; - e.media_parens = function (y, A, z) { - if (y == ')') { - return r(z); - } - if (y == '{' || y == '}') { - return s(y, A, z, 2); - } - return e.media(y, A, z); - }; - e.font_face_before = function (y, A, z) { - if (y == '{') { - return f(z, A, 'font_face'); - } - return a(y, A, z); - }; - e.font_face = function (y, A, z) { - if (y == '}') { - return r(z); - } - if (y == 'word') { - if (!d.hasOwnProperty(A.current().toLowerCase())) { - m = 'error'; - } else { - m = 'property'; - } - return 'maybeprop'; - } - return 'font_face'; - }; - e.at = function (y, A, z) { - if (y == ';') { - return r(z); - } - if (y == '{' || y == '}') { - return s(y, A, z); - } - if (y == 'word') { - m = 'tag'; - } else { - if (y == 'hash') { - m = 'builtin'; - } - } - return 'at'; - }; - e.interpolation = function (y, A, z) { - if (y == '}') { - return r(z); - } - if (y == '{' || y == ';') { - return s(y, A, z); - } - if (y != 'variable') { - m = 'error'; - } - return 'interpolation'; - }; - e.params = function (y, A, z) { - if (y == ')') { - return r(z); - } - if (y == '{' || y == '}') { - return s(y, A, z); - } - if (y == 'word') { - g(A); - } - return 'params'; - }; - return { - startState: function (y) { - return {tokenize: null, state: 'top', context: new p('top', y || 0, null)}; - }, - token: function (A, z) { - if (!z.tokenize && A.eatSpace()) { - return null; - } - var y = (z.tokenize || x)(A, z); - if (y && typeof y == 'object') { - c = y[1]; - y = y[0]; - } - m = y; - z.state = e[z.state](c, A, z); - return m; - }, - indent: function (C, A) { - var z = C.context, - B = A && A.charAt(0); - var y = z.indent; - if ( - z.prev && - ((B == '}' && - (z.type == 'block' || - z.type == 'top' || - z.type == 'interpolation' || - z.type == 'font_face')) || - (B == ')' && (z.type == 'parens' || z.type == 'params' || z.type == 'media_parens')) || - (B == '{' && (z.type == 'at' || z.type == 'media'))) - ) { - y = z.indent - o; - z = z.prev; - } - return y; - }, - electricChars: '}', - blockCommentStart: '/*', - blockCommentEnd: '*/', - fold: 'brace' - }; -}); -(function () { - function d(s) { - var r = {}; - for (var q = 0; q < s.length; ++q) { - r[s[q]] = true; - } - return r; - } - var m = [ - 'all', - 'aural', - 'braille', - 'handheld', - 'print', - 'projection', - 'screen', - 'tty', - 'tv', - 'embossed' - ], - f = d(m); - var g = [ - 'width', - 'min-width', - 'max-width', - 'height', - 'min-height', - 'max-height', - 'device-width', - 'min-device-width', - 'max-device-width', - 'device-height', - 'min-device-height', - 'max-device-height', - 'aspect-ratio', - 'min-aspect-ratio', - 'max-aspect-ratio', - 'device-aspect-ratio', - 'min-device-aspect-ratio', - 'max-device-aspect-ratio', - 'color', - 'min-color', - 'max-color', - 'color-index', - 'min-color-index', - 'max-color-index', - 'monochrome', - 'min-monochrome', - 'max-monochrome', - 'resolution', - 'min-resolution', - 'max-resolution', - 'scan', - 'grid' - ], - l = d(g); - var e = [ - 'align-content', - 'align-items', - 'align-self', - 'alignment-adjust', - 'alignment-baseline', - 'anchor-point', - 'animation', - 'animation-delay', - 'animation-direction', - 'animation-duration', - 'animation-iteration-count', - 'animation-name', - 'animation-play-state', - 'animation-timing-function', - 'appearance', - 'azimuth', - 'backface-visibility', - 'background', - 'background-attachment', - 'background-clip', - 'background-color', - 'background-image', - 'background-origin', - 'background-position', - 'background-repeat', - 'background-size', - 'baseline-shift', - 'binding', - 'bleed', - 'bookmark-label', - 'bookmark-level', - 'bookmark-state', - 'bookmark-target', - 'border', - 'border-bottom', - 'border-bottom-color', - 'border-bottom-left-radius', - 'border-bottom-right-radius', - 'border-bottom-style', - 'border-bottom-width', - 'border-collapse', - 'border-color', - 'border-image', - 'border-image-outset', - 'border-image-repeat', - 'border-image-slice', - 'border-image-source', - 'border-image-width', - 'border-left', - 'border-left-color', - 'border-left-style', - 'border-left-width', - 'border-radius', - 'border-right', - 'border-right-color', - 'border-right-style', - 'border-right-width', - 'border-spacing', - 'border-style', - 'border-top', - 'border-top-color', - 'border-top-left-radius', - 'border-top-right-radius', - 'border-top-style', - 'border-top-width', - 'border-width', - 'bottom', - 'box-decoration-break', - 'box-shadow', - 'box-sizing', - 'break-after', - 'break-before', - 'break-inside', - 'caption-side', - 'clear', - 'clip', - 'color', - 'color-profile', - 'column-count', - 'column-fill', - 'column-gap', - 'column-rule', - 'column-rule-color', - 'column-rule-style', - 'column-rule-width', - 'column-span', - 'column-width', - 'columns', - 'content', - 'counter-increment', - 'counter-reset', - 'crop', - 'cue', - 'cue-after', - 'cue-before', - 'cursor', - 'direction', - 'display', - 'dominant-baseline', - 'drop-initial-after-adjust', - 'drop-initial-after-align', - 'drop-initial-before-adjust', - 'drop-initial-before-align', - 'drop-initial-size', - 'drop-initial-value', - 'elevation', - 'empty-cells', - 'fit', - 'fit-position', - 'flex', - 'flex-basis', - 'flex-direction', - 'flex-flow', - 'flex-grow', - 'flex-shrink', - 'flex-wrap', - 'float', - 'float-offset', - 'flow-from', - 'flow-into', - 'font', - 'font-feature-settings', - 'font-family', - 'font-kerning', - 'font-language-override', - 'font-size', - 'font-size-adjust', - 'font-stretch', - 'font-style', - 'font-synthesis', - 'font-variant', - 'font-variant-alternates', - 'font-variant-caps', - 'font-variant-east-asian', - 'font-variant-ligatures', - 'font-variant-numeric', - 'font-variant-position', - 'font-weight', - 'grid-cell', - 'grid-column', - 'grid-column-align', - 'grid-column-sizing', - 'grid-column-span', - 'grid-columns', - 'grid-flow', - 'grid-row', - 'grid-row-align', - 'grid-row-sizing', - 'grid-row-span', - 'grid-rows', - 'grid-template', - 'hanging-punctuation', - 'height', - 'hyphens', - 'icon', - 'image-orientation', - 'image-rendering', - 'image-resolution', - 'inline-box-align', - 'justify-content', - 'left', - 'letter-spacing', - 'line-break', - 'line-height', - 'line-stacking', - 'line-stacking-ruby', - 'line-stacking-shift', - 'line-stacking-strategy', - 'list-style', - 'list-style-image', - 'list-style-position', - 'list-style-type', - 'margin', - 'margin-bottom', - 'margin-left', - 'margin-right', - 'margin-top', - 'marker-offset', - 'marks', - 'marquee-direction', - 'marquee-loop', - 'marquee-play-count', - 'marquee-speed', - 'marquee-style', - 'max-height', - 'max-width', - 'min-height', - 'min-width', - 'move-to', - 'nav-down', - 'nav-index', - 'nav-left', - 'nav-right', - 'nav-up', - 'opacity', - 'order', - 'orphans', - 'outline', - 'outline-color', - 'outline-offset', - 'outline-style', - 'outline-width', - 'overflow', - 'overflow-style', - 'overflow-wrap', - 'overflow-x', - 'overflow-y', - 'padding', - 'padding-bottom', - 'padding-left', - 'padding-right', - 'padding-top', - 'page', - 'page-break-after', - 'page-break-before', - 'page-break-inside', - 'page-policy', - 'pause', - 'pause-after', - 'pause-before', - 'perspective', - 'perspective-origin', - 'pitch', - 'pitch-range', - 'play-during', - 'position', - 'presentation-level', - 'punctuation-trim', - 'quotes', - 'region-break-after', - 'region-break-before', - 'region-break-inside', - 'region-fragment', - 'rendering-intent', - 'resize', - 'rest', - 'rest-after', - 'rest-before', - 'richness', - 'right', - 'rotation', - 'rotation-point', - 'ruby-align', - 'ruby-overhang', - 'ruby-position', - 'ruby-span', - 'shape-inside', - 'shape-outside', - 'size', - 'speak', - 'speak-as', - 'speak-header', - 'speak-numeral', - 'speak-punctuation', - 'speech-rate', - 'stress', - 'string-set', - 'tab-size', - 'table-layout', - 'target', - 'target-name', - 'target-new', - 'target-position', - 'text-align', - 'text-align-last', - 'text-decoration', - 'text-decoration-color', - 'text-decoration-line', - 'text-decoration-skip', - 'text-decoration-style', - 'text-emphasis', - 'text-emphasis-color', - 'text-emphasis-position', - 'text-emphasis-style', - 'text-height', - 'text-indent', - 'text-justify', - 'text-outline', - 'text-overflow', - 'text-shadow', - 'text-size-adjust', - 'text-space-collapse', - 'text-transform', - 'text-underline-position', - 'text-wrap', - 'top', - 'transform', - 'transform-origin', - 'transform-style', - 'transition', - 'transition-delay', - 'transition-duration', - 'transition-property', - 'transition-timing-function', - 'unicode-bidi', - 'vertical-align', - 'visibility', - 'voice-balance', - 'voice-duration', - 'voice-family', - 'voice-pitch', - 'voice-range', - 'voice-rate', - 'voice-stress', - 'voice-volume', - 'volume', - 'white-space', - 'widows', - 'width', - 'word-break', - 'word-spacing', - 'word-wrap', - 'z-index', - 'zoom', - 'clip-path', - 'clip-rule', - 'mask', - 'enable-background', - 'filter', - 'flood-color', - 'flood-opacity', - 'lighting-color', - 'stop-color', - 'stop-opacity', - 'pointer-events', - 'color-interpolation', - 'color-interpolation-filters', - 'color-profile', - 'color-rendering', - 'fill', - 'fill-opacity', - 'fill-rule', - 'image-rendering', - 'marker', - 'marker-end', - 'marker-mid', - 'marker-start', - 'shape-rendering', - 'stroke', - 'stroke-dasharray', - 'stroke-dashoffset', - 'stroke-linecap', - 'stroke-linejoin', - 'stroke-miterlimit', - 'stroke-opacity', - 'stroke-width', - 'text-rendering', - 'baseline-shift', - 'dominant-baseline', - 'glyph-orientation-horizontal', - 'glyph-orientation-vertical', - 'kerning', - 'text-anchor', - 'writing-mode' - ], - n = d(e); - var k = [ - 'aliceblue', - 'antiquewhite', - 'aqua', - 'aquamarine', - 'azure', - 'beige', - 'bisque', - 'black', - 'blanchedalmond', - 'blue', - 'blueviolet', - 'brown', - 'burlywood', - 'cadetblue', - 'chartreuse', - 'chocolate', - 'coral', - 'cornflowerblue', - 'cornsilk', - 'crimson', - 'cyan', - 'darkblue', - 'darkcyan', - 'darkgoldenrod', - 'darkgray', - 'darkgreen', - 'darkkhaki', - 'darkmagenta', - 'darkolivegreen', - 'darkorange', - 'darkorchid', - 'darkred', - 'darksalmon', - 'darkseagreen', - 'darkslateblue', - 'darkslategray', - 'darkturquoise', - 'darkviolet', - 'deeppink', - 'deepskyblue', - 'dimgray', - 'dodgerblue', - 'firebrick', - 'floralwhite', - 'forestgreen', - 'fuchsia', - 'gainsboro', - 'ghostwhite', - 'gold', - 'goldenrod', - 'gray', - 'grey', - 'green', - 'greenyellow', - 'honeydew', - 'hotpink', - 'indianred', - 'indigo', - 'ivory', - 'khaki', - 'lavender', - 'lavenderblush', - 'lawngreen', - 'lemonchiffon', - 'lightblue', - 'lightcoral', - 'lightcyan', - 'lightgoldenrodyellow', - 'lightgray', - 'lightgreen', - 'lightpink', - 'lightsalmon', - 'lightseagreen', - 'lightskyblue', - 'lightslategray', - 'lightsteelblue', - 'lightyellow', - 'lime', - 'limegreen', - 'linen', - 'magenta', - 'maroon', - 'mediumaquamarine', - 'mediumblue', - 'mediumorchid', - 'mediumpurple', - 'mediumseagreen', - 'mediumslateblue', - 'mediumspringgreen', - 'mediumturquoise', - 'mediumvioletred', - 'midnightblue', - 'mintcream', - 'mistyrose', - 'moccasin', - 'navajowhite', - 'navy', - 'oldlace', - 'olive', - 'olivedrab', - 'orange', - 'orangered', - 'orchid', - 'palegoldenrod', - 'palegreen', - 'paleturquoise', - 'palevioletred', - 'papayawhip', - 'peachpuff', - 'peru', - 'pink', - 'plum', - 'powderblue', - 'purple', - 'red', - 'rosybrown', - 'royalblue', - 'saddlebrown', - 'salmon', - 'sandybrown', - 'seagreen', - 'seashell', - 'sienna', - 'silver', - 'skyblue', - 'slateblue', - 'slategray', - 'snow', - 'springgreen', - 'steelblue', - 'tan', - 'teal', - 'thistle', - 'tomato', - 'turquoise', - 'violet', - 'wheat', - 'white', - 'whitesmoke', - 'yellow', - 'yellowgreen' - ], - o = d(k); - var b = [ - 'above', - 'absolute', - 'activeborder', - 'activecaption', - 'afar', - 'after-white-space', - 'ahead', - 'alias', - 'all', - 'all-scroll', - 'alternate', - 'always', - 'amharic', - 'amharic-abegede', - 'antialiased', - 'appworkspace', - 'arabic-indic', - 'armenian', - 'asterisks', - 'auto', - 'avoid', - 'avoid-column', - 'avoid-page', - 'avoid-region', - 'background', - 'backwards', - 'baseline', - 'below', - 'bidi-override', - 'binary', - 'bengali', - 'blink', - 'block', - 'block-axis', - 'bold', - 'bolder', - 'border', - 'border-box', - 'both', - 'bottom', - 'break', - 'break-all', - 'break-word', - 'button', - 'button-bevel', - 'buttonface', - 'buttonhighlight', - 'buttonshadow', - 'buttontext', - 'cambodian', - 'capitalize', - 'caps-lock-indicator', - 'caption', - 'captiontext', - 'caret', - 'cell', - 'center', - 'checkbox', - 'circle', - 'cjk-earthly-branch', - 'cjk-heavenly-stem', - 'cjk-ideographic', - 'clear', - 'clip', - 'close-quote', - 'col-resize', - 'collapse', - 'column', - 'compact', - 'condensed', - 'contain', - 'content', - 'content-box', - 'context-menu', - 'continuous', - 'copy', - 'cover', - 'crop', - 'cross', - 'crosshair', - 'currentcolor', - 'cursive', - 'dashed', - 'decimal', - 'decimal-leading-zero', - 'default', - 'default-button', - 'destination-atop', - 'destination-in', - 'destination-out', - 'destination-over', - 'devanagari', - 'disc', - 'discard', - 'document', - 'dot-dash', - 'dot-dot-dash', - 'dotted', - 'double', - 'down', - 'e-resize', - 'ease', - 'ease-in', - 'ease-in-out', - 'ease-out', - 'element', - 'ellipse', - 'ellipsis', - 'embed', - 'end', - 'ethiopic', - 'ethiopic-abegede', - 'ethiopic-abegede-am-et', - 'ethiopic-abegede-gez', - 'ethiopic-abegede-ti-er', - 'ethiopic-abegede-ti-et', - 'ethiopic-halehame-aa-er', - 'ethiopic-halehame-aa-et', - 'ethiopic-halehame-am-et', - 'ethiopic-halehame-gez', - 'ethiopic-halehame-om-et', - 'ethiopic-halehame-sid-et', - 'ethiopic-halehame-so-et', - 'ethiopic-halehame-ti-er', - 'ethiopic-halehame-ti-et', - 'ethiopic-halehame-tig', - 'ew-resize', - 'expanded', - 'extra-condensed', - 'extra-expanded', - 'fantasy', - 'fast', - 'fill', - 'fixed', - 'flat', - 'footnotes', - 'forwards', - 'from', - 'geometricPrecision', - 'georgian', - 'graytext', - 'groove', - 'gujarati', - 'gurmukhi', - 'hand', - 'hangul', - 'hangul-consonant', - 'hebrew', - 'help', - 'hidden', - 'hide', - 'higher', - 'highlight', - 'highlighttext', - 'hiragana', - 'hiragana-iroha', - 'horizontal', - 'hsl', - 'hsla', - 'icon', - 'ignore', - 'inactiveborder', - 'inactivecaption', - 'inactivecaptiontext', - 'infinite', - 'infobackground', - 'infotext', - 'inherit', - 'initial', - 'inline', - 'inline-axis', - 'inline-block', - 'inline-table', - 'inset', - 'inside', - 'intrinsic', - 'invert', - 'italic', - 'justify', - 'kannada', - 'katakana', - 'katakana-iroha', - 'keep-all', - 'khmer', - 'landscape', - 'lao', - 'large', - 'larger', - 'left', - 'level', - 'lighter', - 'line-through', - 'linear', - 'lines', - 'list-item', - 'listbox', - 'listitem', - 'local', - 'logical', - 'loud', - 'lower', - 'lower-alpha', - 'lower-armenian', - 'lower-greek', - 'lower-hexadecimal', - 'lower-latin', - 'lower-norwegian', - 'lower-roman', - 'lowercase', - 'ltr', - 'malayalam', - 'match', - 'media-controls-background', - 'media-current-time-display', - 'media-fullscreen-button', - 'media-mute-button', - 'media-play-button', - 'media-return-to-realtime-button', - 'media-rewind-button', - 'media-seek-back-button', - 'media-seek-forward-button', - 'media-slider', - 'media-sliderthumb', - 'media-time-remaining-display', - 'media-volume-slider', - 'media-volume-slider-container', - 'media-volume-sliderthumb', - 'medium', - 'menu', - 'menulist', - 'menulist-button', - 'menulist-text', - 'menulist-textfield', - 'menutext', - 'message-box', - 'middle', - 'min-intrinsic', - 'mix', - 'mongolian', - 'monospace', - 'move', - 'multiple', - 'myanmar', - 'n-resize', - 'narrower', - 'ne-resize', - 'nesw-resize', - 'no-close-quote', - 'no-drop', - 'no-open-quote', - 'no-repeat', - 'none', - 'normal', - 'not-allowed', - 'nowrap', - 'ns-resize', - 'nw-resize', - 'nwse-resize', - 'oblique', - 'octal', - 'open-quote', - 'optimizeLegibility', - 'optimizeSpeed', - 'oriya', - 'oromo', - 'outset', - 'outside', - 'outside-shape', - 'overlay', - 'overline', - 'padding', - 'padding-box', - 'painted', - 'page', - 'paused', - 'persian', - 'plus-darker', - 'plus-lighter', - 'pointer', - 'polygon', - 'portrait', - 'pre', - 'pre-line', - 'pre-wrap', - 'preserve-3d', - 'progress', - 'push-button', - 'radio', - 'read-only', - 'read-write', - 'read-write-plaintext-only', - 'rectangle', - 'region', - 'relative', - 'repeat', - 'repeat-x', - 'repeat-y', - 'reset', - 'reverse', - 'rgb', - 'rgba', - 'ridge', - 'right', - 'round', - 'row-resize', - 'rtl', - 'run-in', - 'running', - 's-resize', - 'sans-serif', - 'scroll', - 'scrollbar', - 'se-resize', - 'searchfield', - 'searchfield-cancel-button', - 'searchfield-decoration', - 'searchfield-results-button', - 'searchfield-results-decoration', - 'semi-condensed', - 'semi-expanded', - 'separate', - 'serif', - 'show', - 'sidama', - 'single', - 'skip-white-space', - 'slide', - 'slider-horizontal', - 'slider-vertical', - 'sliderthumb-horizontal', - 'sliderthumb-vertical', - 'slow', - 'small', - 'small-caps', - 'small-caption', - 'smaller', - 'solid', - 'somali', - 'source-atop', - 'source-in', - 'source-out', - 'source-over', - 'space', - 'square', - 'square-button', - 'start', - 'static', - 'status-bar', - 'stretch', - 'stroke', - 'sub', - 'subpixel-antialiased', - 'super', - 'sw-resize', - 'table', - 'table-caption', - 'table-cell', - 'table-column', - 'table-column-group', - 'table-footer-group', - 'table-header-group', - 'table-row', - 'table-row-group', - 'telugu', - 'text', - 'text-bottom', - 'text-top', - 'textarea', - 'textfield', - 'thai', - 'thick', - 'thin', - 'threeddarkshadow', - 'threedface', - 'threedhighlight', - 'threedlightshadow', - 'threedshadow', - 'tibetan', - 'tigre', - 'tigrinya-er', - 'tigrinya-er-abegede', - 'tigrinya-et', - 'tigrinya-et-abegede', - 'to', - 'top', - 'transparent', - 'ultra-condensed', - 'ultra-expanded', - 'underline', - 'up', - 'upper-alpha', - 'upper-armenian', - 'upper-greek', - 'upper-hexadecimal', - 'upper-latin', - 'upper-norwegian', - 'upper-roman', - 'uppercase', - 'urdu', - 'url', - 'vertical', - 'vertical-text', - 'visible', - 'visibleFill', - 'visiblePainted', - 'visibleStroke', - 'visual', - 'w-resize', - 'wait', - 'wave', - 'wider', - 'window', - 'windowframe', - 'windowtext', - 'x-large', - 'x-small', - 'xor', - 'xx-large', - 'xx-small' - ], - h = d(b); - var j = [ - 'font-family', - 'src', - 'unicode-range', - 'font-variant', - 'font-feature-settings', - 'font-stretch', - 'font-weight', - 'font-style' - ], - a = d(j); - var i = m.concat(g).concat(e).concat(k).concat(b); - CodeMirror.registerHelper('hintWords', 'css', i); - function p(t, s) { - var q = false, - r; - while ((r = t.next()) != null) { - if (q && r == '/') { - s.tokenize = null; - break; - } - q = r == '*'; - } - return ['comment', 'comment']; - } - function c(r, q) { - if (r.skipTo('-->')) { - r.match('-->'); - q.tokenize = null; - } else { - r.skipToEnd(); - } - return ['comment', 'comment']; - } - CodeMirror.defineMIME('text/css', { - mediaTypes: f, - mediaFeatures: l, - propertyKeywords: n, - colorKeywords: o, - valueKeywords: h, - fontProperties: a, - tokenHooks: { - '<': function (r, q) { - if (!r.match('!--')) { - return false; - } - q.tokenize = c; - return c(r, q); - }, - '/': function (r, q) { - if (!r.eat('*')) { - return false; - } - q.tokenize = p; - return p(r, q); - } - }, - name: 'css' - }); - CodeMirror.defineMIME('text/x-scss', { - mediaTypes: f, - mediaFeatures: l, - propertyKeywords: n, - colorKeywords: o, - valueKeywords: h, - fontProperties: a, - allowNested: true, - tokenHooks: { - '/': function (r, q) { - if (r.eat('/')) { - r.skipToEnd(); - return ['comment', 'comment']; - } else { - if (r.eat('*')) { - q.tokenize = p; - return p(r, q); - } else { - return ['operator', 'operator']; - } - } - }, - ':': function (q) { - if (q.match(/\s*{/)) { - return [null, '{']; - } - return false; - }, - $: function (q) { - q.match(/^[\w-]+/); - if (q.match(/^\s*:/, false)) { - return ['variable-2', 'variable-definition']; - } - return ['variable-2', 'variable']; - }, - '#': function (q) { - if (!q.eat('{')) { - return false; - } - return [null, 'interpolation']; - } - }, - name: 'css', - helperType: 'scss' - }); - CodeMirror.defineMIME('text/x-less', { - mediaTypes: f, - mediaFeatures: l, - propertyKeywords: n, - colorKeywords: o, - valueKeywords: h, - fontProperties: a, - allowNested: true, - tokenHooks: { - '/': function (r, q) { - if (r.eat('/')) { - r.skipToEnd(); - return ['comment', 'comment']; - } else { - if (r.eat('*')) { - q.tokenize = p; - return p(r, q); - } else { - return ['operator', 'operator']; - } - } - }, - '@': function (q) { - if ( - q.match( - /^(charset|document|font-face|import|keyframes|media|namespace|page|supports)\b/, - false - ) - ) { - return false; - } - q.eatWhile(/[\w\\\-]/); - if (q.match(/^\s*:/, false)) { - return ['variable-2', 'variable-definition']; - } - return ['variable-2', 'variable']; - }, - '&': function () { - return ['atom', 'atom']; - } - }, - name: 'css', - helperType: 'less' - }); -})(); +CodeMirror.defineMode("css",function(u,i){if(!i.propertyKeywords){i=CodeMirror.resolveMode("text/css")}var o=u.indentUnit,b=i.tokenHooks,t=i.mediaTypes||{},k=i.mediaFeatures||{},h=i.propertyKeywords||{},n=i.colorKeywords||{},q=i.valueKeywords||{},d=i.fontProperties||{},l=i.allowNested;var c,m;function v(y,z){c=z;return y}function x(B,A){var z=B.next();if(b[z]){var y=b[z](B,A);if(y!==false){return y}}if(z=="@"){B.eatWhile(/[\w\\\-]/);return v("def",B.current())}else{if(z=="="||(z=="~"||z=="|")&&B.eat("=")){return v(null,"compare")}else{if(z=='"'||z=="'"){A.tokenize=j(z);return A.tokenize(B,A)}else{if(z=="#"){B.eatWhile(/[\w\\\-]/);return v("atom","hash")}else{if(z=="!"){B.match(/^\s*\w*/);return v("keyword","important")}else{if(/\d/.test(z)||z=="."&&B.eat(/\d/)){B.eatWhile(/[\w.%]/);return v("number","unit")}else{if(z==="-"){if(/[\d.]/.test(B.peek())){B.eatWhile(/[\w.%]/);return v("number","unit")}else{if(B.match(/^[^-]+-/)){return v("meta","meta")}}}else{if(/[,+>*\/]/.test(z)){return v(null,"select-op")}else{if(z=="."&&B.match(/^-?[_a-z][_a-z0-9-]*/i)){return v("qualifier","qualifier")}else{if(/[:;{}\[\]\(\)]/.test(z)){return v(null,z)}else{if(z=="u"&&B.match("rl(")){B.backUp(1);A.tokenize=w;return v("property","word")}else{if(/[\w\\\-]/.test(z)){B.eatWhile(/[\w\\\-]/);return v("property","word")}else{return v(null,null)}}}}}}}}}}}}}function j(y){return function(C,A){var B=false,z;while((z=C.next())!=null){if(z==y&&!B){if(y==")"){C.backUp(1)}break}B=!B&&z=="\\"}if(z==y||!B&&y!=")"){A.tokenize=null}return v("string","string")}}function w(z,y){z.next();if(!z.match(/\s*[\"\']/,false)){y.tokenize=j(")")}else{y.tokenize=null}return v(null,"(")}function p(z,y,A){this.type=z;this.indent=y;this.prev=A}function f(z,A,y){z.context=new p(y,A.indentation()+o,z.context);return y}function r(y){y.context=y.context.prev;return y.context.type}function a(y,A,z){return e[z.context.type](y,A,z)}function s(z,B,A,C){for(var y=C||1;y>0;y--){A.context=A.context.prev}return a(z,B,A)}function g(z){var y=z.current().toLowerCase();if(q.hasOwnProperty(y)){m="atom"}else{if(n.hasOwnProperty(y)){m="keyword"}else{m="variable"}}}var e={};e.top=function(y,A,z){if(y=="{"){return f(z,A,"block")}else{if(y=="}"&&z.context.prev){return r(z)}else{if(y=="@media"){return f(z,A,"media")}else{if(y=="@font-face"){return"font_face_before"}else{if(y&&y.charAt(0)=="@"){return f(z,A,"at")}else{if(y=="hash"){m="builtin"}else{if(y=="word"){m="tag"}else{if(y=="variable-definition"){return"maybeprop"}else{if(y=="interpolation"){return f(z,A,"interpolation")}else{if(y==":"){return"pseudo"}else{if(l&&y=="("){return f(z,A,"params")}}}}}}}}}}}return z.context.type};e.block=function(y,A,z){if(y=="word"){if(h.hasOwnProperty(A.current().toLowerCase())){m="property";return"maybeprop"}else{if(l){m=A.match(/^\s*:/,false)?"property":"tag";return"block"}else{m+=" error";return"maybeprop"}}}else{if(y=="meta"){return"block"}else{if(!l&&(y=="hash"||y=="qualifier")){m="error";return"block"}else{return e.top(y,A,z)}}}};e.maybeprop=function(y,A,z){if(y==":"){return f(z,A,"prop")}return a(y,A,z)};e.prop=function(y,A,z){if(y==";"){return r(z)}if(y=="{"&&l){return f(z,A,"propBlock")}if(y=="}"||y=="{"){return s(y,A,z)}if(y=="("){return f(z,A,"parens")}if(y=="hash"&&!/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(A.current())){m+=" error"}else{if(y=="word"){g(A)}else{if(y=="interpolation"){return f(z,A,"interpolation")}}}return"prop"};e.propBlock=function(z,y,A){if(z=="}"){return r(A)}if(z=="word"){m="property";return"maybeprop"}return A.context.type};e.parens=function(y,A,z){if(y=="{"||y=="}"){return s(y,A,z)}if(y==")"){return r(z)}return"parens"};e.pseudo=function(y,A,z){if(y=="word"){m="variable-3";return z.context.type}return a(y,A,z)};e.media=function(y,B,z){if(y=="("){return f(z,B,"media_parens")}if(y=="}"){return s(y,B,z)}if(y=="{"){return r(z)&&f(z,B,l?"block":"top")}if(y=="word"){var A=B.current().toLowerCase();if(A=="only"||A=="not"||A=="and"){m="keyword"}else{if(t.hasOwnProperty(A)){m="attribute"}else{if(k.hasOwnProperty(A)){m="property"}else{m="error"}}}}return z.context.type};e.media_parens=function(y,A,z){if(y==")"){return r(z)}if(y=="{"||y=="}"){return s(y,A,z,2)}return e.media(y,A,z)};e.font_face_before=function(y,A,z){if(y=="{"){return f(z,A,"font_face")}return a(y,A,z)};e.font_face=function(y,A,z){if(y=="}"){return r(z)}if(y=="word"){if(!d.hasOwnProperty(A.current().toLowerCase())){m="error"}else{m="property"}return"maybeprop"}return"font_face"};e.at=function(y,A,z){if(y==";"){return r(z)}if(y=="{"||y=="}"){return s(y,A,z)}if(y=="word"){m="tag"}else{if(y=="hash"){m="builtin"}}return"at"};e.interpolation=function(y,A,z){if(y=="}"){return r(z)}if(y=="{"||y==";"){return s(y,A,z)}if(y!="variable"){m="error"}return"interpolation"};e.params=function(y,A,z){if(y==")"){return r(z)}if(y=="{"||y=="}"){return s(y,A,z)}if(y=="word"){g(A)}return"params"};return{startState:function(y){return{tokenize:null,state:"top",context:new p("top",y||0,null)}},token:function(A,z){if(!z.tokenize&&A.eatSpace()){return null}var y=(z.tokenize||x)(A,z);if(y&&typeof y=="object"){c=y[1];y=y[0]}m=y;z.state=e[z.state](c,A,z);return m},indent:function(C,A){var z=C.context,B=A&&A.charAt(0);var y=z.indent;if(z.prev&&(B=="}"&&(z.type=="block"||z.type=="top"||z.type=="interpolation"||z.type=="font_face")||B==")"&&(z.type=="parens"||z.type=="params"||z.type=="media_parens")||B=="{"&&(z.type=="at"||z.type=="media"))){y=z.indent-o;z=z.prev}return y},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",fold:"brace"}});(function(){function d(s){var r={};for(var q=0;q<s.length;++q){r[s[q]]=true}return r}var m=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],f=d(m);var g=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid"],l=d(g);var e=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backface-visibility","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","baseline-shift","binding","bleed","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-feature-settings","font-family","font-kerning","font-language-override","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-weight","grid-cell","grid-column","grid-column-align","grid-column-sizing","grid-column-span","grid-columns","grid-flow","grid-row","grid-row-align","grid-row-sizing","grid-row-span","grid-rows","grid-template","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","justify-content","left","letter-spacing","line-break","line-height","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marker-offset","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","max-height","max-width","min-height","min-width","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotation","rotation-point","ruby-align","ruby-overhang","ruby-position","ruby-span","shape-inside","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-outline","text-overflow","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","word-break","word-spacing","word-wrap","z-index","zoom","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-profile","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","kerning","text-anchor","writing-mode"],n=d(e);var k=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],o=d(k);var b=["above","absolute","activeborder","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","auto","avoid","avoid-column","avoid-page","avoid-region","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","column","compact","condensed","contain","content","content-box","context-menu","continuous","copy","cover","crop","cross","crosshair","currentcolor","cursive","dashed","decimal","decimal-leading-zero","default","default-button","destination-atop","destination-in","destination-out","destination-over","devanagari","disc","discard","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ew-resize","expanded","extra-condensed","extra-expanded","fantasy","fast","fill","fixed","flat","footnotes","forwards","from","geometricPrecision","georgian","graytext","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-table","inset","inside","intrinsic","invert","italic","justify","kannada","katakana","katakana-iroha","keep-all","khmer","landscape","lao","large","larger","left","level","lighter","line-through","linear","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","malayalam","match","media-controls-background","media-current-time-display","media-fullscreen-button","media-mute-button","media-play-button","media-return-to-realtime-button","media-rewind-button","media-seek-back-button","media-seek-forward-button","media-slider","media-sliderthumb","media-time-remaining-display","media-volume-slider","media-volume-slider-container","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menulist-text","menulist-textfield","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","nw-resize","nwse-resize","oblique","octal","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","round","row-resize","rtl","run-in","running","s-resize","sans-serif","scroll","scrollbar","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","semi-condensed","semi-expanded","separate","serif","show","sidama","single","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","solid","somali","source-atop","source-in","source-out","source-over","space","square","square-button","start","static","status-bar","stretch","stroke","sub","subpixel-antialiased","super","sw-resize","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","transparent","ultra-condensed","ultra-expanded","underline","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","vertical","vertical-text","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","x-large","x-small","xor","xx-large","xx-small"],h=d(b);var j=["font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],a=d(j);var i=m.concat(g).concat(e).concat(k).concat(b);CodeMirror.registerHelper("hintWords","css",i);function p(t,s){var q=false,r;while((r=t.next())!=null){if(q&&r=="/"){s.tokenize=null;break}q=(r=="*")}return["comment","comment"]}function c(r,q){if(r.skipTo("-->")){r.match("-->");q.tokenize=null}else{r.skipToEnd()}return["comment","comment"]}CodeMirror.defineMIME("text/css",{mediaTypes:f,mediaFeatures:l,propertyKeywords:n,colorKeywords:o,valueKeywords:h,fontProperties:a,tokenHooks:{"<":function(r,q){if(!r.match("!--")){return false}q.tokenize=c;return c(r,q)},"/":function(r,q){if(!r.eat("*")){return false}q.tokenize=p;return p(r,q)}},name:"css"});CodeMirror.defineMIME("text/x-scss",{mediaTypes:f,mediaFeatures:l,propertyKeywords:n,colorKeywords:o,valueKeywords:h,fontProperties:a,allowNested:true,tokenHooks:{"/":function(r,q){if(r.eat("/")){r.skipToEnd();return["comment","comment"]}else{if(r.eat("*")){q.tokenize=p;return p(r,q)}else{return["operator","operator"]}}},":":function(q){if(q.match(/\s*{/)){return[null,"{"]}return false},"$":function(q){q.match(/^[\w-]+/);if(q.match(/^\s*:/,false)){return["variable-2","variable-definition"]}return["variable-2","variable"]},"#":function(q){if(!q.eat("{")){return false}return[null,"interpolation"]}},name:"css",helperType:"scss"});CodeMirror.defineMIME("text/x-less",{mediaTypes:f,mediaFeatures:l,propertyKeywords:n,colorKeywords:o,valueKeywords:h,fontProperties:a,allowNested:true,tokenHooks:{"/":function(r,q){if(r.eat("/")){r.skipToEnd();return["comment","comment"]}else{if(r.eat("*")){q.tokenize=p;return p(r,q)}else{return["operator","operator"]}}},"@":function(q){if(q.match(/^(charset|document|font-face|import|keyframes|media|namespace|page|supports)\b/,false)){return false}q.eatWhile(/[\w\\\-]/);if(q.match(/^\s*:/,false)){return["variable-2","variable-definition"]}return["variable-2","variable"]},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"})})(); // CodeMirror HTML. -CodeMirror.defineMode( - 'htmlmixed', - function (b, c) { - var a = CodeMirror.getMode(b, {name: 'xml', htmlMode: true}); - var m = CodeMirror.getMode(b, 'css'); - var k = [], - j = c && c.scriptTypes; - k.push({ - matches: /^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^$/i, - mode: CodeMirror.getMode(b, 'javascript') - }); - if (j) { - for (var d = 0; d < j.length; ++d) { - var h = j[d]; - k.push({matches: h.matches, mode: h.mode && CodeMirror.getMode(b, h.mode)}); - } - } - k.push({matches: /./, mode: CodeMirror.getMode(b, 'text/plain')}); - function e(s, q) { - var o = q.htmlState.tagName; - var p = a.token(s, q.htmlState); - if (o == 'script' && /\btag\b/.test(p) && s.current() == '>') { - var t = s.string - .slice(Math.max(0, s.pos - 100), s.pos) - .match(/\btype\s*=\s*("[^"]+"|'[^']+'|\S+)[^<]*$/i); - t = t ? t[1] : ''; - if (t && /[\"\']/.test(t.charAt(0))) { - t = t.slice(1, t.length - 1); - } - for (var n = 0; n < k.length; ++n) { - var r = k[n]; - if (typeof r.matches == 'string' ? t == r.matches : r.matches.test(t)) { - if (r.mode) { - q.token = l; - q.localMode = r.mode; - q.localState = r.mode.startState && r.mode.startState(a.indent(q.htmlState, '')); - } - break; - } - } - } else { - if (o == 'style' && /\btag\b/.test(p) && s.current() == '>') { - q.token = f; - q.localMode = m; - q.localState = m.startState(a.indent(q.htmlState, '')); - } - } - return p; - } - function g(r, n, o) { - var q = r.current(); - var p = q.search(n), - i; - if (p > -1) { - r.backUp(q.length - p); - } else { - if ((i = q.match(/<\/?$/))) { - r.backUp(q.length); - if (!r.match(n, false)) { - r.match(q); - } - } - } - return o; - } - function l(n, i) { - if (n.match(/^<\/\s*script\s*>/i, false)) { - i.token = e; - i.localState = i.localMode = null; - return e(n, i); - } - return g(n, /<\/\s*script\s*>/, i.localMode.token(n, i.localState)); - } - function f(n, i) { - if (n.match(/^<\/\s*style\s*>/i, false)) { - i.token = e; - i.localState = i.localMode = null; - return e(n, i); - } - return g(n, /<\/\s*style\s*>/, m.token(n, i.localState)); - } - return { - startState: function () { - var i = a.startState(); - return {token: e, localMode: null, localState: null, htmlState: i}; - }, - copyState: function (n) { - if (n.localState) { - var i = CodeMirror.copyState(n.localMode, n.localState); - } - return { - token: n.token, - localMode: n.localMode, - localState: i, - htmlState: CodeMirror.copyState(a, n.htmlState) - }; - }, - token: function (n, i) { - return i.token(n, i); - }, - indent: function (n, i) { - if (!n.localMode || /^\s*<\//.test(i)) { - return a.indent(n.htmlState, i); - } else { - if (n.localMode.indent) { - return n.localMode.indent(n.localState, i); - } else { - return CodeMirror.Pass; - } - } - }, - innerMode: function (i) { - return {state: i.localState || i.htmlState, mode: i.localMode || a}; - } - }; - }, - 'xml', - 'javascript', - 'css' -); -CodeMirror.defineMIME('text/html', 'htmlmixed'); +CodeMirror.defineMode("htmlmixed",function(b,c){var a=CodeMirror.getMode(b,{name:"xml",htmlMode:true});var m=CodeMirror.getMode(b,"css");var k=[],j=c&&c.scriptTypes;k.push({matches:/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^$/i,mode:CodeMirror.getMode(b,"javascript")});if(j){for(var d=0;d<j.length;++d){var h=j[d];k.push({matches:h.matches,mode:h.mode&&CodeMirror.getMode(b,h.mode)})}}k.push({matches:/./,mode:CodeMirror.getMode(b,"text/plain")});function e(s,q){var o=q.htmlState.tagName;var p=a.token(s,q.htmlState);if(o=="script"&&/\btag\b/.test(p)&&s.current()==">"){var t=s.string.slice(Math.max(0,s.pos-100),s.pos).match(/\btype\s*=\s*("[^"]+"|'[^']+'|\S+)[^<]*$/i);t=t?t[1]:"";if(t&&/[\"\']/.test(t.charAt(0))){t=t.slice(1,t.length-1)}for(var n=0;n<k.length;++n){var r=k[n];if(typeof r.matches=="string"?t==r.matches:r.matches.test(t)){if(r.mode){q.token=l;q.localMode=r.mode;q.localState=r.mode.startState&&r.mode.startState(a.indent(q.htmlState,""))}break}}}else{if(o=="style"&&/\btag\b/.test(p)&&s.current()==">"){q.token=f;q.localMode=m;q.localState=m.startState(a.indent(q.htmlState,""))}}return p}function g(r,n,o){var q=r.current();var p=q.search(n),i;if(p>-1){r.backUp(q.length-p)}else{if(i=q.match(/<\/?$/)){r.backUp(q.length);if(!r.match(n,false)){r.match(q)}}}return o}function l(n,i){if(n.match(/^<\/\s*script\s*>/i,false)){i.token=e;i.localState=i.localMode=null;return e(n,i)}return g(n,/<\/\s*script\s*>/,i.localMode.token(n,i.localState))}function f(n,i){if(n.match(/^<\/\s*style\s*>/i,false)){i.token=e;i.localState=i.localMode=null;return e(n,i)}return g(n,/<\/\s*style\s*>/,m.token(n,i.localState))}return{startState:function(){var i=a.startState();return{token:e,localMode:null,localState:null,htmlState:i}},copyState:function(n){if(n.localState){var i=CodeMirror.copyState(n.localMode,n.localState)}return{token:n.token,localMode:n.localMode,localState:i,htmlState:CodeMirror.copyState(a,n.htmlState)}},token:function(n,i){return i.token(n,i)},indent:function(n,i){if(!n.localMode||/^\s*<\//.test(i)){return a.indent(n.htmlState,i)}else{if(n.localMode.indent){return n.localMode.indent(n.localState,i)}else{return CodeMirror.Pass}}},innerMode:function(i){return{state:i.localState||i.htmlState,mode:i.localMode||a}}}},"xml","javascript","css");CodeMirror.defineMIME("text/html","htmlmixed"); // CodeMirror PHP. -(function () { - function c(g) { - var e = {}, - f = g.split(' '); - for (var d = 0; d < f.length; ++d) { - e[f[d]] = true; - } - return e; - } - function a(d) { - return function (f, e) { - if (f.match(d)) { - e.tokenize = null; - } else { - f.skipToEnd(); - } - return 'string'; - }; - } - var b = { - name: 'clike', - keywords: c( - 'abstract and array as break case catch class clone const continue declare default do else elseif enddeclare endfor endforeach endif endswitch endwhile extends final for foreach function global goto if implements interface instanceof namespace new or private protected public static switch throw trait try use var while xor die echo empty exit eval include include_once isset list require require_once return print unset __halt_compiler self static parent yield insteadof finally' - ), - blockKeywords: c('catch do else elseif for foreach if switch try while finally'), - atoms: c( - 'true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__ __TRAIT__' - ), - builtin: c( - 'func_num_args func_get_arg func_get_args strlen strcmp strncmp strcasecmp strncasecmp each error_reporting define defined trigger_error user_error set_error_handler restore_error_handler get_declared_classes get_loaded_extensions extension_loaded get_extension_funcs debug_backtrace constant bin2hex hex2bin sleep usleep time mktime gmmktime strftime gmstrftime strtotime date gmdate getdate localtime checkdate flush wordwrap htmlspecialchars htmlentities html_entity_decode md5 md5_file crc32 getimagesize image_type_to_mime_type phpinfo phpversion phpcredits strnatcmp strnatcasecmp substr_count strspn strcspn strtok strtoupper strtolower strpos strrpos strrev hebrev hebrevc nl2br basename dirname pathinfo stripslashes stripcslashes strstr stristr strrchr str_shuffle str_word_count strcoll substr substr_replace quotemeta ucfirst ucwords strtr addslashes addcslashes rtrim str_replace str_repeat count_chars chunk_split trim ltrim strip_tags similar_text explode implode setlocale localeconv parse_str str_pad chop strchr sprintf printf vprintf vsprintf sscanf fscanf parse_url urlencode urldecode rawurlencode rawurldecode readlink linkinfo link unlink exec system escapeshellcmd escapeshellarg passthru shell_exec proc_open proc_close rand srand getrandmax mt_rand mt_srand mt_getrandmax base64_decode base64_encode abs ceil floor round is_finite is_nan is_infinite bindec hexdec octdec decbin decoct dechex base_convert number_format fmod ip2long long2ip getenv putenv getopt microtime gettimeofday getrusage uniqid quoted_printable_decode set_time_limit get_cfg_var magic_quotes_runtime set_magic_quotes_runtime get_magic_quotes_gpc get_magic_quotes_runtime import_request_variables error_log serialize unserialize memory_get_usage var_dump var_export debug_zval_dump print_r highlight_file show_source highlight_string ini_get ini_get_all ini_set ini_alter ini_restore get_include_path set_include_path restore_include_path setcookie header headers_sent connection_aborted connection_status ignore_user_abort parse_ini_file is_uploaded_file move_uploaded_file intval floatval doubleval strval gettype settype is_null is_resource is_bool is_long is_float is_int is_integer is_double is_real is_numeric is_string is_array is_object is_scalar ereg ereg_replace eregi eregi_replace split spliti join sql_regcase dl pclose popen readfile rewind rmdir umask fclose feof fgetc fgets fgetss fread fopen fpassthru ftruncate fstat fseek ftell fflush fwrite fputs mkdir rename copy tempnam tmpfile file file_get_contents stream_select stream_context_create stream_context_set_params stream_context_set_option stream_context_get_options stream_filter_prepend stream_filter_append fgetcsv flock get_meta_tags stream_set_write_buffer set_file_buffer set_socket_blocking stream_set_blocking socket_set_blocking stream_get_meta_data stream_register_wrapper stream_wrapper_register stream_set_timeout socket_set_timeout socket_get_status realpath fnmatch fsockopen pfsockopen pack unpack get_browser crypt opendir closedir chdir getcwd rewinddir readdir dir glob fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype file_exists is_writable is_writeable is_readable is_executable is_file is_dir is_link stat lstat chown touch clearstatcache mail ob_start ob_flush ob_clean ob_end_flush ob_end_clean ob_get_flush ob_get_clean ob_get_length ob_get_level ob_get_status ob_get_contents ob_implicit_flush ob_list_handlers ksort krsort natsort natcasesort asort arsort sort rsort usort uasort uksort shuffle array_walk count end prev next reset current key min max in_array array_search extract compact array_fill range array_multisort array_push array_pop array_shift array_unshift array_splice array_slice array_merge array_merge_recursive array_keys array_values array_count_values array_reverse array_reduce array_pad array_flip array_change_key_case array_rand array_unique array_intersect array_intersect_assoc array_diff array_diff_assoc array_sum array_filter array_map array_chunk array_key_exists pos sizeof key_exists assert assert_options version_compare ftok str_rot13 aggregate session_name session_module_name session_save_path session_id session_regenerate_id session_decode session_register session_unregister session_is_registered session_encode session_start session_destroy session_unset session_set_save_handler session_cache_limiter session_cache_expire session_set_cookie_params session_get_cookie_params session_write_close preg_match preg_match_all preg_replace preg_replace_callback preg_split preg_quote preg_grep overload ctype_alnum ctype_alpha ctype_cntrl ctype_digit ctype_lower ctype_graph ctype_print ctype_punct ctype_space ctype_upper ctype_xdigit virtual apache_request_headers apache_note apache_lookup_uri apache_child_terminate apache_setenv apache_response_headers apache_get_version getallheaders mysql_connect mysql_pconnect mysql_close mysql_select_db mysql_create_db mysql_drop_db mysql_query mysql_unbuffered_query mysql_db_query mysql_list_dbs mysql_list_tables mysql_list_fields mysql_list_processes mysql_error mysql_errno mysql_affected_rows mysql_insert_id mysql_result mysql_num_rows mysql_num_fields mysql_fetch_row mysql_fetch_array mysql_fetch_assoc mysql_fetch_object mysql_data_seek mysql_fetch_lengths mysql_fetch_field mysql_field_seek mysql_free_result mysql_field_name mysql_field_table mysql_field_len mysql_field_type mysql_field_flags mysql_escape_string mysql_real_escape_string mysql_stat mysql_thread_id mysql_client_encoding mysql_get_client_info mysql_get_host_info mysql_get_proto_info mysql_get_server_info mysql_info mysql mysql_fieldname mysql_fieldtable mysql_fieldlen mysql_fieldtype mysql_fieldflags mysql_selectdb mysql_createdb mysql_dropdb mysql_freeresult mysql_numfields mysql_numrows mysql_listdbs mysql_listtables mysql_listfields mysql_db_name mysql_dbname mysql_tablename mysql_table_name pg_connect pg_pconnect pg_close pg_connection_status pg_connection_busy pg_connection_reset pg_host pg_dbname pg_port pg_tty pg_options pg_ping pg_query pg_send_query pg_cancel_query pg_fetch_result pg_fetch_row pg_fetch_assoc pg_fetch_array pg_fetch_object pg_fetch_all pg_affected_rows pg_get_result pg_result_seek pg_result_status pg_free_result pg_last_oid pg_num_rows pg_num_fields pg_field_name pg_field_num pg_field_size pg_field_type pg_field_prtlen pg_field_is_null pg_get_notify pg_get_pid pg_result_error pg_last_error pg_last_notice pg_put_line pg_end_copy pg_copy_to pg_copy_from pg_trace pg_untrace pg_lo_create pg_lo_unlink pg_lo_open pg_lo_close pg_lo_read pg_lo_write pg_lo_read_all pg_lo_import pg_lo_export pg_lo_seek pg_lo_tell pg_escape_string pg_escape_bytea pg_unescape_bytea pg_client_encoding pg_set_client_encoding pg_meta_data pg_convert pg_insert pg_update pg_delete pg_select pg_exec pg_getlastoid pg_cmdtuples pg_errormessage pg_numrows pg_numfields pg_fieldname pg_fieldsize pg_fieldtype pg_fieldnum pg_fieldprtlen pg_fieldisnull pg_freeresult pg_result pg_loreadall pg_locreate pg_lounlink pg_loopen pg_loclose pg_loread pg_lowrite pg_loimport pg_loexport http_response_code get_declared_traits getimagesizefromstring socket_import_stream stream_set_chunk_size trait_exists header_register_callback class_uses session_status session_register_shutdown echo print global static exit array empty eval isset unset die include require include_once require_once' - ), - multiLineStrings: true, - hooks: { - $: function (d) { - d.eatWhile(/[\w\$_]/); - return 'variable-2'; - }, - '<': function (e, d) { - if (e.match(/<</)) { - e.eatWhile(/[\w\.]/); - d.tokenize = a(e.current().slice(3)); - return d.tokenize(e, d); - } - return false; - }, - '#': function (d) { - while (!d.eol() && !d.match('?>', false)) { - d.next(); - } - return 'comment'; - }, - '/': function (d) { - if (d.eat('/')) { - while (!d.eol() && !d.match('?>', false)) { - d.next(); - } - return 'comment'; - } - return false; - } - } - }; - CodeMirror.defineMode( - 'php', - function (f, g) { - var h = CodeMirror.getMode(f, 'text/html'); - var d = CodeMirror.getMode(f, b); - function e(p, n) { - var l = n.curMode == d; - if (p.sol() && n.pending && n.pending != '"' && n.pending != "'") { - n.pending = null; - } - if (!l) { - if (p.match(/^<\?\w*/)) { - n.curMode = d; - n.curState = n.php; - return 'meta'; - } - if (n.pending == '"' || n.pending == "'") { - while (!p.eol() && p.next() != n.pending) {} - var k = 'string'; - } else { - if (n.pending && p.pos < n.pending.end) { - p.pos = n.pending.end; - var k = n.pending.style; - } else { - var k = h.token(p, n.curState); - } - } - if (n.pending) { - n.pending = null; - } - var o = p.current(), - j = o.search(/<\?/), - i; - if (j != -1) { - if (k == 'string' && (i = o.match(/[\'\"]$/)) && !/\?>/.test(o)) { - n.pending = i[0]; - } else { - n.pending = {end: p.pos, style: k}; - } - p.backUp(o.length - j); - } - return k; - } else { - if (l && n.php.tokenize == null && p.match('?>')) { - n.curMode = h; - n.curState = n.html; - return 'meta'; - } else { - return d.token(p, n.curState); - } - } - } - return { - startState: function () { - var i = CodeMirror.startState(h), - j = CodeMirror.startState(d); - return { - html: i, - php: j, - curMode: g.startOpen ? d : h, - curState: g.startOpen ? j : i, - pending: null - }; - }, - copyState: function (l) { - var j = l.html, - k = CodeMirror.copyState(h, j), - n = l.php, - i = CodeMirror.copyState(d, n), - m; - if (l.curMode == h) { - m = k; - } else { - m = i; - } - return {html: k, php: i, curMode: l.curMode, curState: m, pending: l.pending}; - }, - token: e, - indent: function (j, i) { - if ((j.curMode != d && /^\s*<\//.test(i)) || (j.curMode == d && /^\?>/.test(i))) { - return h.indent(j.html, i); - } - return j.curMode.indent(j.curState, i); - }, - blockCommentStart: '/*', - blockCommentEnd: '*/', - lineComment: '//', - innerMode: function (i) { - return {state: i.curState, mode: i.curMode}; - } - }; - }, - 'htmlmixed', - 'clike' - ); - CodeMirror.defineMIME('application/x-httpd-php', 'php'); - CodeMirror.defineMIME('application/x-httpd-php-open', {name: 'php', startOpen: true}); - CodeMirror.defineMIME('text/x-php', b); -})(); +(function(){function c(g){var e={},f=g.split(" ");for(var d=0;d<f.length;++d){e[f[d]]=true}return e}function a(d){return function(f,e){if(f.match(d)){e.tokenize=null}else{f.skipToEnd()}return"string"}}var b={name:"clike",keywords:c("abstract and array as break case catch class clone const continue declare default do else elseif enddeclare endfor endforeach endif endswitch endwhile extends final for foreach function global goto if implements interface instanceof namespace new or private protected public static switch throw trait try use var while xor die echo empty exit eval include include_once isset list require require_once return print unset __halt_compiler self static parent yield insteadof finally"),blockKeywords:c("catch do else elseif for foreach if switch try while finally"),atoms:c("true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__ __TRAIT__"),builtin:c("func_num_args func_get_arg func_get_args strlen strcmp strncmp strcasecmp strncasecmp each error_reporting define defined trigger_error user_error set_error_handler restore_error_handler get_declared_classes get_loaded_extensions extension_loaded get_extension_funcs debug_backtrace constant bin2hex hex2bin sleep usleep time mktime gmmktime strftime gmstrftime strtotime date gmdate getdate localtime checkdate flush wordwrap htmlspecialchars htmlentities html_entity_decode md5 md5_file crc32 getimagesize image_type_to_mime_type phpinfo phpversion phpcredits strnatcmp strnatcasecmp substr_count strspn strcspn strtok strtoupper strtolower strpos strrpos strrev hebrev hebrevc nl2br basename dirname pathinfo stripslashes stripcslashes strstr stristr strrchr str_shuffle str_word_count strcoll substr substr_replace quotemeta ucfirst ucwords strtr addslashes addcslashes rtrim str_replace str_repeat count_chars chunk_split trim ltrim strip_tags similar_text explode implode setlocale localeconv parse_str str_pad chop strchr sprintf printf vprintf vsprintf sscanf fscanf parse_url urlencode urldecode rawurlencode rawurldecode readlink linkinfo link unlink exec system escapeshellcmd escapeshellarg passthru shell_exec proc_open proc_close rand srand getrandmax mt_rand mt_srand mt_getrandmax base64_decode base64_encode abs ceil floor round is_finite is_nan is_infinite bindec hexdec octdec decbin decoct dechex base_convert number_format fmod ip2long long2ip getenv putenv getopt microtime gettimeofday getrusage uniqid quoted_printable_decode set_time_limit get_cfg_var magic_quotes_runtime set_magic_quotes_runtime get_magic_quotes_gpc get_magic_quotes_runtime import_request_variables error_log serialize unserialize memory_get_usage var_dump var_export debug_zval_dump print_r highlight_file show_source highlight_string ini_get ini_get_all ini_set ini_alter ini_restore get_include_path set_include_path restore_include_path setcookie header headers_sent connection_aborted connection_status ignore_user_abort parse_ini_file is_uploaded_file move_uploaded_file intval floatval doubleval strval gettype settype is_null is_resource is_bool is_long is_float is_int is_integer is_double is_real is_numeric is_string is_array is_object is_scalar ereg ereg_replace eregi eregi_replace split spliti join sql_regcase dl pclose popen readfile rewind rmdir umask fclose feof fgetc fgets fgetss fread fopen fpassthru ftruncate fstat fseek ftell fflush fwrite fputs mkdir rename copy tempnam tmpfile file file_get_contents stream_select stream_context_create stream_context_set_params stream_context_set_option stream_context_get_options stream_filter_prepend stream_filter_append fgetcsv flock get_meta_tags stream_set_write_buffer set_file_buffer set_socket_blocking stream_set_blocking socket_set_blocking stream_get_meta_data stream_register_wrapper stream_wrapper_register stream_set_timeout socket_set_timeout socket_get_status realpath fnmatch fsockopen pfsockopen pack unpack get_browser crypt opendir closedir chdir getcwd rewinddir readdir dir glob fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype file_exists is_writable is_writeable is_readable is_executable is_file is_dir is_link stat lstat chown touch clearstatcache mail ob_start ob_flush ob_clean ob_end_flush ob_end_clean ob_get_flush ob_get_clean ob_get_length ob_get_level ob_get_status ob_get_contents ob_implicit_flush ob_list_handlers ksort krsort natsort natcasesort asort arsort sort rsort usort uasort uksort shuffle array_walk count end prev next reset current key min max in_array array_search extract compact array_fill range array_multisort array_push array_pop array_shift array_unshift array_splice array_slice array_merge array_merge_recursive array_keys array_values array_count_values array_reverse array_reduce array_pad array_flip array_change_key_case array_rand array_unique array_intersect array_intersect_assoc array_diff array_diff_assoc array_sum array_filter array_map array_chunk array_key_exists pos sizeof key_exists assert assert_options version_compare ftok str_rot13 aggregate session_name session_module_name session_save_path session_id session_regenerate_id session_decode session_register session_unregister session_is_registered session_encode session_start session_destroy session_unset session_set_save_handler session_cache_limiter session_cache_expire session_set_cookie_params session_get_cookie_params session_write_close preg_match preg_match_all preg_replace preg_replace_callback preg_split preg_quote preg_grep overload ctype_alnum ctype_alpha ctype_cntrl ctype_digit ctype_lower ctype_graph ctype_print ctype_punct ctype_space ctype_upper ctype_xdigit virtual apache_request_headers apache_note apache_lookup_uri apache_child_terminate apache_setenv apache_response_headers apache_get_version getallheaders mysql_connect mysql_pconnect mysql_close mysql_select_db mysql_create_db mysql_drop_db mysql_query mysql_unbuffered_query mysql_db_query mysql_list_dbs mysql_list_tables mysql_list_fields mysql_list_processes mysql_error mysql_errno mysql_affected_rows mysql_insert_id mysql_result mysql_num_rows mysql_num_fields mysql_fetch_row mysql_fetch_array mysql_fetch_assoc mysql_fetch_object mysql_data_seek mysql_fetch_lengths mysql_fetch_field mysql_field_seek mysql_free_result mysql_field_name mysql_field_table mysql_field_len mysql_field_type mysql_field_flags mysql_escape_string mysql_real_escape_string mysql_stat mysql_thread_id mysql_client_encoding mysql_get_client_info mysql_get_host_info mysql_get_proto_info mysql_get_server_info mysql_info mysql mysql_fieldname mysql_fieldtable mysql_fieldlen mysql_fieldtype mysql_fieldflags mysql_selectdb mysql_createdb mysql_dropdb mysql_freeresult mysql_numfields mysql_numrows mysql_listdbs mysql_listtables mysql_listfields mysql_db_name mysql_dbname mysql_tablename mysql_table_name pg_connect pg_pconnect pg_close pg_connection_status pg_connection_busy pg_connection_reset pg_host pg_dbname pg_port pg_tty pg_options pg_ping pg_query pg_send_query pg_cancel_query pg_fetch_result pg_fetch_row pg_fetch_assoc pg_fetch_array pg_fetch_object pg_fetch_all pg_affected_rows pg_get_result pg_result_seek pg_result_status pg_free_result pg_last_oid pg_num_rows pg_num_fields pg_field_name pg_field_num pg_field_size pg_field_type pg_field_prtlen pg_field_is_null pg_get_notify pg_get_pid pg_result_error pg_last_error pg_last_notice pg_put_line pg_end_copy pg_copy_to pg_copy_from pg_trace pg_untrace pg_lo_create pg_lo_unlink pg_lo_open pg_lo_close pg_lo_read pg_lo_write pg_lo_read_all pg_lo_import pg_lo_export pg_lo_seek pg_lo_tell pg_escape_string pg_escape_bytea pg_unescape_bytea pg_client_encoding pg_set_client_encoding pg_meta_data pg_convert pg_insert pg_update pg_delete pg_select pg_exec pg_getlastoid pg_cmdtuples pg_errormessage pg_numrows pg_numfields pg_fieldname pg_fieldsize pg_fieldtype pg_fieldnum pg_fieldprtlen pg_fieldisnull pg_freeresult pg_result pg_loreadall pg_locreate pg_lounlink pg_loopen pg_loclose pg_loread pg_lowrite pg_loimport pg_loexport http_response_code get_declared_traits getimagesizefromstring socket_import_stream stream_set_chunk_size trait_exists header_register_callback class_uses session_status session_register_shutdown echo print global static exit array empty eval isset unset die include require include_once require_once"),multiLineStrings:true,hooks:{"$":function(d){d.eatWhile(/[\w\$_]/);return"variable-2"},"<":function(e,d){if(e.match(/<</)){e.eatWhile(/[\w\.]/);d.tokenize=a(e.current().slice(3));return d.tokenize(e,d)}return false},"#":function(d){while(!d.eol()&&!d.match("?>",false)){d.next()}return"comment"},"/":function(d){if(d.eat("/")){while(!d.eol()&&!d.match("?>",false)){d.next()}return"comment"}return false}}};CodeMirror.defineMode("php",function(f,g){var h=CodeMirror.getMode(f,"text/html");var d=CodeMirror.getMode(f,b);function e(p,n){var l=n.curMode==d;if(p.sol()&&n.pending&&n.pending!='"'&&n.pending!="'"){n.pending=null}if(!l){if(p.match(/^<\?\w*/)){n.curMode=d;n.curState=n.php;return"meta"}if(n.pending=='"'||n.pending=="'"){while(!p.eol()&&p.next()!=n.pending){}var k="string"}else{if(n.pending&&p.pos<n.pending.end){p.pos=n.pending.end;var k=n.pending.style}else{var k=h.token(p,n.curState)}}if(n.pending){n.pending=null}var o=p.current(),j=o.search(/<\?/),i;if(j!=-1){if(k=="string"&&(i=o.match(/[\'\"]$/))&&!/\?>/.test(o)){n.pending=i[0]}else{n.pending={end:p.pos,style:k}}p.backUp(o.length-j)}return k}else{if(l&&n.php.tokenize==null&&p.match("?>")){n.curMode=h;n.curState=n.html;return"meta"}else{return d.token(p,n.curState)}}}return{startState:function(){var i=CodeMirror.startState(h),j=CodeMirror.startState(d);return{html:i,php:j,curMode:g.startOpen?d:h,curState:g.startOpen?j:i,pending:null}},copyState:function(l){var j=l.html,k=CodeMirror.copyState(h,j),n=l.php,i=CodeMirror.copyState(d,n),m;if(l.curMode==h){m=k}else{m=i}return{html:k,php:i,curMode:l.curMode,curState:m,pending:l.pending}},token:e,indent:function(j,i){if((j.curMode!=d&&/^\s*<\//.test(i))||(j.curMode==d&&/^\?>/.test(i))){return h.indent(j.html,i)}return j.curMode.indent(j.curState,i)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",innerMode:function(i){return{state:i.curState,mode:i.curMode}}}},"htmlmixed","clike");CodeMirror.defineMIME("application/x-httpd-php","php");CodeMirror.defineMIME("application/x-httpd-php-open",{name:"php",startOpen:true});CodeMirror.defineMIME("text/x-php",b)})(); \ No newline at end of file @@ -1,7 +1,7 @@ /* global soliloquy_editor */ /* ========================================================== * editor.js - * http://soliloquywp.com/ + * https://soliloquywp.com/ * * This file can be used by 3rd party plugins to integrate * with their custom field systems. It allows the selection @@ -52,8 +52,8 @@ (function ($) { $(function () { // Close the modal window on user action. - var soliloquy_trigger_target = (soliloquy_editor_frame = false); - var soliloquy_append_and_hide = function (e) { + let soliloquy_trigger_target = (soliloquy_editor_frame = false); + const soliloquy_append_and_hide = function (e) { e.preventDefault(); $('.soliloquy-default-ui .selected').removeClass('details selected'); $('.soliloquy-default-ui').appendTo('.soliloquy-default-ui-wrapper').hide(); @@ -114,7 +114,7 @@ ); } else { // Make the ajax request. - var req_data = { + const req_data = { action: 'soliloquy_load_slider_data', nonce: soliloquy_metabox.load_slider, post_id: $('.soliloquy-default-ui:first .selected').data('soliloquy-id') @@ -7,13 +7,13 @@ e.preventDefault(); // Bail out if the user does not actually want to remove the image. - var confirm_delete = confirm(soliloquy_metabox_local.remove_multiple); + const confirm_delete = confirm(soliloquy_metabox_local.remove_multiple); if (!confirm_delete) { return false; } // Build array of image attachment IDs - var attach_ids = []; + const attach_ids = []; //Get all selectd Images $('ul#soliloquy-output > li.selected').each(function () { @@ -21,7 +21,7 @@ }); // Prepare our data to be sent via Ajax. - var remove = { + const remove = { action: 'soliloquy_remove_slides', attachment_ids: attach_ids, post_id: soliloquy_metabox_local.id, @@ -52,7 +52,7 @@ SoliloquySlidesUpdate(false); //Get Slide Count - var list = $('#soliloquy-output li').length; + const list = $('#soliloquy-output li').length; //Update the slide count text $('.soliloquy-count').text(list.toString()); @@ -78,13 +78,13 @@ e.preventDefault(); // Bail out if the user does not actually want to remove the image. - var confirm_delete = confirm(soliloquy_metabox_local.remove); + const confirm_delete = confirm(soliloquy_metabox_local.remove); if (!confirm_delete) { return; } // Prepare our data to be sent via Ajax. - var attach_id = $(this).parent().attr('id'), + const attach_id = $(this).parent().attr('id'), remove = { action: 'soliloquy_remove_slide', attachment_id: attach_id, @@ -110,7 +110,7 @@ SoliloquySlidesUpdate(false); //Get the slide count - var list = $('#soliloquy-output li').length; + const list = $('#soliloquy-output li').length; //Update Slide Count $('.soliloquy-count').text(list.toString()); @@ -2,7 +2,7 @@ * Single Image View * - Renders an <li> element within the bulk edit view */ -var SoliloquyBulkEditImageView = wp.Backbone.View.extend({ +const SoliloquyBulkEditImageView = wp.Backbone.View.extend({ /** * The Tag Name and Tag's Class(es) */ @@ -40,7 +40,7 @@ /** * Bulk Edit View */ -var SoliloquyBulkEditView = wp.Backbone.View.extend({ +const SoliloquyBulkEditView = wp.Backbone.View.extend({ /** * The Tag Name and Tag's Class(es) */ @@ -106,7 +106,7 @@ // Render selected items this.collection.forEach(function (model) { // Init with model - var child_view = new SoliloquyBulkEditImageView({ + const child_view = new SoliloquyBulkEditImageView({ model: model }); @@ -118,7 +118,7 @@ if (this.child_views.length > 0) { this.child_views.forEach(function (view) { // Init with model - var child_view = new view({ + const child_view = new view({ model: this.model }); @@ -153,11 +153,11 @@ */ renderError: function (error) { // Define model - var model = {}; + const model = {}; model.error = error; // Define view - var view = new wp.media.view.SoliloquyError({ + const view = new wp.media.view.SoliloquyError({ model: model }); @@ -220,7 +220,7 @@ this.trigger('loading'); // Build an array of image IDs - var image_ids = []; + const image_ids = []; this.collection.forEach(function (model) { image_ids.push(model.id); }, this); @@ -238,7 +238,7 @@ // For each image, update the model based on the edited information before inserting it as JSON // into the underlying image. this.collection.forEach(function (model) { - for (var key in this.model.attributes) { + for (const key in this.model.attributes) { value = this.model.attributes[key]; // If the value is not blank, assign the value to the image model @@ -248,7 +248,7 @@ } // Assign the model to the underlying image item in the DOM - var item = JSON.stringify(model.attributes); + const item = JSON.stringify(model.attributes); jQuery('ul#soliloquy li#' + model.get('id')).attr('data-solioquy-image-model', item); jQuery('ul#soliloquy li#' + model.get('id') + ' div.title').text(model.get('title')); }, this); @@ -3,7 +3,7 @@ /** * Slide Model */ -var SoliloquySlide = Backbone.Model.extend({ +const SoliloquySlide = Backbone.Model.extend({ /** * Defaults * As we always populate this model with existing data, we @@ -24,12 +24,12 @@ * - Comprises of all slides in an Soliloquy Slider * - Each image is represented by an SoliloquySlides Model */ -var SoliloquySlides = new Backbone.Collection(); +const SoliloquySlides = new Backbone.Collection(); /** * Modal Window */ -var SoliloquyModalWindow = new wp.media.view.Modal({ +const SoliloquyModalWindow = new wp.media.view.Modal({ controller: { trigger: function () {} } @@ -38,7 +38,7 @@ /** * View */ -var SoliloquyView = wp.Backbone.View.extend({ +const SoliloquyView = wp.Backbone.View.extend({ /** * The Tag Name and Tag's Class(es) */ @@ -96,7 +96,7 @@ this.search_timer = ''; // Get the model from the collection - var count = 0; + let count = 0; this.collection.each(function (model) { // If this model's id matches the attachment id, this is the model we want, also make sure both are int if (String(model.get('id')) == String(this.attachment_id)) { @@ -125,9 +125,9 @@ e.preventDefault(); // Get input field class name - var fieldClassName = this.$el.data('field'); + const fieldClassName = this.$el.data('field'); - var soliloquy_media_frame = (wp.media.frames.soliloquy_media_frame = wp.media({ + const soliloquy_media_frame = (wp.media.frames.soliloquy_media_frame = wp.media({ className: 'media-frame soliloquy-media-frame', frame: 'select', multiple: false, @@ -142,7 +142,7 @@ soliloquy_media_frame.on('select', function () { // Grab our attachment selection and construct a JSON representation of the model. - var thumbnail = soliloquy_media_frame.state().get('selection').first().toJSON(); + const thumbnail = soliloquy_media_frame.state().get('selection').first().toJSON(); $model.set('src', thumbnail.url, {silent: true}); jQuery('div.thumbnail > img', $parent.find('.media-frame-content')).attr( @@ -176,7 +176,7 @@ if (this.child_views.length > 0) { this.child_views.forEach(function (view) { // Init with model - var child_view = new view({ + const child_view = new view({ model: this.model }); @@ -338,13 +338,13 @@ this.trigger('loaded loaded:success'); // Assign the model's JSON string back to the underlying item - var item = JSON.stringify(this.model.attributes); + const item = JSON.stringify(this.model.attributes); jQuery('ul#soliloquy-output li#' + this.model.get('id')).attr( 'data-soliloquy-image-model', item ); // Show the user the 'saved' notice for 1.5 seconds - var saved = this.$el.find('.saved'); + const saved = this.$el.find('.saved'); saved.fadeIn(); setTimeout(function () { saved.fadeOut(); @@ -441,8 +441,8 @@ * - Addons must populate this array with their own Backbone Views, which will be appended * to the settings region */ -var SoliloquyChildViews = []; -var SoliloquyContentViews = []; +const SoliloquyChildViews = []; +const SoliloquyContentViews = []; /** * DOM */ @@ -461,7 +461,7 @@ // Prevent default action e.preventDefault(); // Get the selected attachment - var attachment_id = $(this).parent().data('soliloquy-slide'); + const attachment_id = $(this).parent().data('soliloquy-slide'); // Pass the collection of images for this gallery to the modal view, as well // as the selected attachment @@ -504,12 +504,12 @@ // Clear the collection SoliloquySlides.reset(); - var $items = 'ul#soliloquy-output li.soliloquy-slide' + (selected ? '.selected' : ''); + const $items = 'ul#soliloquy-output li.soliloquy-slide' + (selected ? '.selected' : ''); // Iterate through the gallery images in the DOM, adding them to the collection jQuery($items).each(function () { // Build an SoliloquyImage Backbone Model from the JSON supplied in the element - var soliloquy_slide = jQuery.parseJSON(jQuery(this).attr('data-soliloquy-image-model')); + const soliloquy_slide = jQuery.parseJSON(jQuery(this).attr('data-soliloquy-image-model')); // Add the model to the collection SoliloquySlides.add(new SoliloquySlide(soliloquy_slide)); @@ -34,11 +34,11 @@ // Mark existing Gallery images as selected when the modal is opened wp.media.frames.soliloquy.on('open', function () { // Get any previously selected images - var selection = wp.media.frames.soliloquy.state().get('selection'); + const selection = wp.media.frames.soliloquy.state().get('selection'); // Get images that already exist in the gallery, and select each one in the modal $('ul#soliloquy-output li').each(function () { - var attachment = wp.media.attachment($(this).attr('id')); + const attachment = wp.media.attachment($(this).attr('id')); selection.add(attachment ? [attachment] : []); }); @@ -49,13 +49,13 @@ // Insert into Gallery Button Clicked wp.media.frames.soliloquy.on('insert', function (selection) { // Get state - var state = wp.media.frames.soliloquy.state(), + const state = wp.media.frames.soliloquy.state(), images = []; // Iterate through selected images, building an images array selection.each(function (attachment) { // Get the chosen options for this image (size, alignment, link type, link URL) - var display = state.display(attachment).toJSON(), + const display = state.display(attachment).toJSON(), type = attachment.get('type'); // Change the image link parameter based on the "Link To" setting the user chose in the media view @@ -98,7 +98,7 @@ // Repopulate the Soliloquy Slide Collection SoliloquySlidesUpdate(); - var list = $('#soliloquy-output li').length; + const list = $('#soliloquy-output li').length; //update the count value $('.soliloquy-count').text(list.toString()); @@ -4,7 +4,7 @@ (function ($, window, document, soliloquy_metabox_local) { 'use strict'; - var soliloquy_manage = { + const soliloquy_manage = { //Init, Triggers all functions, used as callback on JS events. init: function () { this.select_all(); @@ -41,7 +41,7 @@ }); //How many slides are in the list - var list = $('#soliloquy-output li').length; + const list = $('#soliloquy-output li').length; //Set the Count $('.soliloquy-count').text(list.toString()); @@ -56,7 +56,7 @@ 'click.soliloquyStatus', '.soliloquy-slide-status', function (e) { - var $parent = '', + let $parent = '', $status = ''; // Prevent default action @@ -67,7 +67,7 @@ $parent = $(this).parent(); } - var $this = $(this), + const $this = $(this), $data = $this.data('status'), $list_view = $parent.find('.soliloquy-slide-status.list-status'), $grid_view = $parent.find('.soliloquy-slide-status.grid-status'), @@ -84,7 +84,7 @@ $status = 'active'; } - var opts = { + const opts = { url: soliloquy_metabox_local.ajax, type: 'post', async: true, @@ -140,7 +140,7 @@ tooltip: function () { $('[data-soliloquy-tooltip]').on('mouseover', function (e) { e.preventDefault(); - var $this = $(this), + const $this = $(this), $data = $this.data('soliloquy-tooltip'); }); }, @@ -148,13 +148,13 @@ select_all: function () { //Select all $('.soliloquy-select-all').change(function () { - var checked = this.checked; + const checked = this.checked; if (checked) { $('ul#soliloquy-output li').addClass('selected'); $('.soliloquy-bulk-actions').fadeIn(); - var selected = $('ul#soliloquy-output li.selected').length; + const selected = $('ul#soliloquy-output li.selected').length; $('.select-all').text(soliloquy_metabox_local.selected); $('.soliloquy-count').text(selected.toString()); @@ -163,7 +163,7 @@ $('ul#soliloquy-output li').removeClass('selected'); $('.soliloquy-bulk-actions').fadeOut(); - var list = $('ul#soliloquy-output li').length; + const list = $('ul#soliloquy-output li').length; $('.select-all').text(soliloquy_metabox_local.select_all); $('.soliloquy-count').text(list.toString()); @@ -175,7 +175,7 @@ //Makes Slides Sortable sortable: function () { // Make slider items sortable. - var slider = $('#soliloquy-output'); + const slider = $('#soliloquy-output'); slider.sortable({ containment: '#soliloquy-slider-main', @@ -185,7 +185,7 @@ placeholder: 'dropzone', update: function (event, ui) { // Make ajax request to sort out items. - var opts = { + const opts = { url: soliloquy_metabox_local.ajax, type: 'post', async: true, @@ -215,13 +215,13 @@ //Select a slide select: function () { // Select / deselect images - var soliloquy_shift_key_pressed = false, + let soliloquy_shift_key_pressed = false, soliloquy_last_selected_image = false; $('li.soliloquy-slide .soliloquy-item-content, .soliloquy-list li a.check').on( 'click', function (e) { - var $this = $(this), + let $this = $(this), slider_item = $(this).parent(), selected; @@ -239,7 +239,7 @@ $('.soliloquy-count').text(selected.toString()); $('.soliloquy-clear-selected').fadeIn(); } else { - var list = $('ul#soliloquy-output li').length; + const list = $('ul#soliloquy-output li').length; $('.select-all').text(soliloquy_metabox_local.select_all); $('.soliloquy-count').text(list.toString()); @@ -250,7 +250,7 @@ // and the other selected image if (soliloquy_shift_key_pressed && soliloquy_last_selected_image !== false) { // Get index of the selected image and the last image - var start_index = $('ul#soliloquy-output li').index($(soliloquy_last_selected_image)), + let start_index = $('ul#soliloquy-output li').index($(soliloquy_last_selected_image)), end_index = $('ul#soliloquy-output li').index($(slider_item)), i = 0; @@ -297,7 +297,7 @@ slide_size: function () { // Set size of slider dimension fields when changing size type. $(document).on('change', '#soliloquy-config-slider-size', function () { - var $this = $(this), + const $this = $(this), value = $this.val(), width = $this.find(':selected').data('soliloquy-width'), height = $this.find(':selected').data('soliloquy-height'); @@ -323,7 +323,7 @@ $('.soliloquy-clear-selected').on('click', function (e) { e.preventDefault(); - var list = $('#soliloquy-output li').length; + const list = $('#soliloquy-output li').length; $('ul#soliloquy-output li').removeClass('selected'); @@ -348,7 +348,7 @@ return; } - var $this = $(this), + const $this = $(this), $view = $this.data('soliloquy-display'), $output = $('#soliloquy-output'), opts = { @@ -387,7 +387,7 @@ //Create the Select boxes $('.soliloquy-chosen').each(function () { //Get the options from the data. - var data_options = $(this).data('soliloquy-chosen-options'); + const data_options = $(this).data('soliloquy-chosen-options'); $(this).chosen(data_options); }); @@ -396,11 +396,11 @@ //Upload Image functioned Used in Woo and FC addons fallback. uploadImage: function () { $('.soliloquy-insert-image').on('click', function (e) { - var soliloquy_image_frame; + let soliloquy_image_frame; e.preventDefault(); - var $button = $(event.currentTarget), + const $button = $(event.currentTarget), input_box = $button.parent().find('input'); if (soliloquy_image_frame) { soliloquy_image_frame.open(); @@ -422,7 +422,7 @@ }); soliloquy_image_frame.on('select', function () { - var attachment = soliloquy_image_frame.state().get('selection').first().toJSON(); + const attachment = soliloquy_image_frame.state().get('selection').first().toJSON(); input_box.val(attachment.url); }); @@ -25,7 +25,7 @@ $('#soliloquy .drag-drop-inside').append( '<div class="soliloquy-progress-bar"><div></div></div>' ); - var soliloquy_bar = $('#soliloquy .soliloquy-progress-bar'), + const soliloquy_bar = $('#soliloquy .soliloquy-progress-bar'), soliloquy_progress = $('#soliloquy .soliloquy-progress-bar div'), soliloquy_output = $('#soliloquy-output'); @@ -1 +1 @@ -(()=>{var n={669:a=>{"use strict";a.exports=jQuery}},t={};var r,c,a=function a(o){var e=t[o];if(void 0!==e)return e.exports;e=t[o]={exports:{}};return n[o](e,e.exports,a),e.exports}(669);r=a,window,document,c=soliloquy_addons,r(function(){r(".soliloquy-chosen").each(function(){r(this).chosen({disable_search:!0})}),r("#soliloquy-addon-filter").on("change",function(){var a=r(this).val(),e=r("#soliloquy-addons-area"),o=(e.data("soliloquy-filter"),r("#soliloquy-addons-area .soliloquy-addon"));switch(o.show(),a){case"asc":o.sort(function(a,o){return r(a).data("addon-title").localeCompare(r(o).data("addon-title"))}).each(function(a,o){r(o).removeClass("last"),e.append(o).hide().fadeIn(100)}),r("#soliloquy-addons-area .soliloquy-addon:nth-child(3n)").addClass("last");break;case"desc":o.sort(function(a,o){return r(o).data("addon-title").localeCompare(r(a).data("addon-title"))}).each(function(a,o){r(o).removeClass("last"),e.append(o).hide().fadeIn(100)}),r("#soliloquy-addons-area .soliloquy-addon:nth-child(3n)").addClass("last");break;case"active":o.hide().filter('[data-addon-status="active"]').show(),o.removeClass("last"),r("#soliloquy-addons-area .soliloquy-addon:visible").each(function(a){(a+1)%3==0&&r(this).addClass("last")});break;case"inactive":o.hide().filter('[data-addon-status="inactive"]').show(),o.removeClass("last"),r("#soliloquy-addons-area .soliloquy-addon:visible").each(function(a){(a+1)%3==0&&r(this).addClass("last")});break;case"installed":o.hide().filter('[data-addon-status="not_installed"]').show(),o.removeClass("last"),r("#soliloquy-addons-area .soliloquy-addon:visible").each(function(a){(a+1)%3==0&&r(this).addClass("last")})}}),r("#soliloquy-addons-area").on("click.refreshInstallAddon",".soliloquy-addon-action-button",function(a){a.preventDefault();var e=r(this),a=r("#soliloquy-addons-area").find(".soliloquy-addon-action-button");r.each(a,function(a,o){if(e===o)return!0;r(o).attr("disabled")&&r(o).removeAttr("disabled"),r(o).parent().parent().hasClass("soliloquy-addon-not-installed")&&r(o).text(c.install)})}),r("#soliloquy-addons-area").on("click.activateAddon",".soliloquy-activate-addon",function(a){a.preventDefault();var n=r(this),a=n.attr("rel"),o=n.parent().parent(),e=n.parent().parent().find(".addon-status").children("span"),a=(r(".soliloquy-addon-error").remove(),n.text(c.activating),n.next().css({display:"inline-block","margin-top":"0px"}),{url:ajaxurl,type:"post",async:!0,cache:!1,dataType:"json",data:{action:"soliloquy_activate_addon",nonce:c.activate_nonce,plugin:a},success:function(a){a&&!0!==a?o.slideDown("normal",function(){r(this).after('<div class="soliloquy-addon-error"><strong>'+a.error+"</strong></div>"),n.next().hide(),r(".soliloquy-addon-error").delay(3e3).slideUp()}):(n.text(c.deactivate).removeClass("soliloquy-activate-addon").addClass("soliloquy-deactivate-addon"),e.text(c.active),o.removeClass("soliloquy-addon-inactive").addClass("soliloquy-addon-active"),n.next().hide())},error:function(a,o,e){n.next().hide()}});r.ajax(a)}),r("#soliloquy-addons-area").on("click.deactivateAddon",".soliloquy-deactivate-addon",function(a){a.preventDefault();var n=r(this),a=n.attr("rel"),o=n.parent().parent(),e=n.parent().parent().find(".addon-status").children("span"),a=(r(".soliloquy-addon-error").remove(),n.text(c.deactivating),n.next().css({display:"inline-block","margin-top":"0px"}),{url:ajaxurl,type:"post",async:!0,cache:!1,dataType:"json",data:{action:"soliloquy_deactivate_addon",nonce:c.deactivate_nonce,plugin:a},success:function(a){a&&!0!==a?o.slideDown("normal",function(){r(this).after('<div class="soliloquy-addon-error"><strong>'+a.error+"</strong></div>"),n.next().hide(),r(".soliloquy-addon-error").delay(3e3).slideUp()}):(n.text(c.activate).removeClass("soliloquy-deactivate-addon").addClass("soliloquy-activate-addon"),e.text(c.inactive),o.removeClass("soliloquy-addon-active").addClass("soliloquy-addon-inactive"),n.next().hide())},error:function(a,o,e){n.next().hide()}});r.ajax(a)}),r("#soliloquy-addons-area").on("click.installAddon",".soliloquy-install-addon",function(a){a.preventDefault();var s=r(this),l=s.attr("rel"),i=s.parent().parent(),d=s.parent().parent().find(".addon-status").children("span"),a=(r(".soliloquy-addon-error").remove(),s.text(c.installing),s.next().css({display:"inline-block","margin-top":"0px"}),{url:ajaxurl,type:"post",async:!0,cache:!1,dataType:"json",data:{action:"soliloquy_install_addon",nonce:c.install_nonce,plugin:l},success:function(a){if(a.error)i.slideDown("normal",function(){s.parent().parent().after('<div class="soliloquy-addon-error"><strong>'+a.error+"</strong></div>"),s.text(c.install),s.next().hide(),r(".soliloquy-addon-error").delay(4e3).slideUp()});else{if(a.form)return i.slideDown("normal",function(){r(this).after('<div class="soliloquy-addon-error">'+a.form+"</div>"),s.next().hide()}),s.attr("disabled",!0),void r("#soliloquy-addons-area").on("click.installCredsAddon","#upgrade",function(a){a.preventDefault(),s.next().hide(),r(this).val(c.installing),r(this).next().css({display:"inline-block","margin-top":"0px"});var a=r(this).parent().parent().find("#hostname").val(),o=r(this).parent().parent().find("#username").val(),e=r(this).parent().parent().find("#password").val(),n=r(this),t=r(this).parent().parent().parent().parent(),a={url:ajaxurl,type:"post",async:!0,cache:!1,dataType:"json",data:{action:"soliloquy_install_addon",nonce:c.install_nonce,plugin:l,hostname:a,username:o,password:e},success:function(a){if(a.error)i.slideDown("normal",function(){s.parent().parent().after('<div class="soliloquy-addon-error"><strong>'+a.error+"</strong></div>"),s.text(c.install),s.next().hide(),r(".soliloquy-addon-error").delay(4e3).slideUp()});else{if(a.form)return s.next().hide(),r(".soliloquy-inline-error").remove(),r(n).val(c.proceed),void r(n).after('<span class="soliloquy-inline-error">'+c.connect_error+"</span>");r(t).remove(),s.show(),s.text(c.activate).removeClass("soliloquy-install-addon").addClass("soliloquy-activate-addon"),s.attr("rel",a.plugin),s.removeAttr("disabled"),d.text(c.inactive),i.removeClass("soliloquy-addon-not-installed").addClass("soliloquy-addon-inactive"),s.next().hide()}},error:function(a,o,e){s.next().hide()}};r.ajax(a)});s.text(c.activate).removeClass("soliloquy-install-addon").addClass("soliloquy-activate-addon"),s.attr("rel",a.plugin),d.text(c.inactive),i.removeClass("soliloquy-addon-not-installed").addClass("soliloquy-addon-inactive"),s.next().hide()}},error:function(a,o,e){s.next().hide()}});r.ajax(a)})})})(); \ No newline at end of file +(()=>{var t={669:a=>{"use strict";a.exports=jQuery}},n={};var r,a,c,o=function a(o){var e=n[o];if(void 0!==e)return e.exports;e=n[o]={exports:{}};return t[o](e,e.exports,a),e.exports}(669);r=o,window,a=document,c=soliloquy_addons,r(function(){r(".soliloquy-chosen").each(function(){r(this).chosen({disable_search:!0})}),r(a).on("click",".soliloquy-upgrade-modal",function(){r.alert({title:c.thanks_for_interest,content:c.upgrade_modal,icon:"dashicons dashicons-info",type:"blue",boxWidth:"550px",useBootstrap:!1,theme:"modern",titleClass:"soliloquy-upgrade-modal-title",onOpen:function(){this.$jconfirmBox.addClass("soliloquy-upgrade-modal-box")},buttons:{confirm:{text:c.ok,btnClass:"btn-confirm",keys:["enter"]}}})}),r("#soliloquy-addon-filter").on("change",function(){var a=r(this).val(),e=r("#soliloquy-addons-area"),o=(e.data("soliloquy-filter"),r("#soliloquy-addons-area .soliloquy-addon"));switch(o.show(),a){case"asc":o.sort(function(a,o){return r(a).data("addon-title").localeCompare(r(o).data("addon-title"))}).each(function(a,o){r(o).removeClass("last"),e.append(o).hide().fadeIn(100)}),r("#soliloquy-addons-area .soliloquy-addon:nth-child(3n)").addClass("last");break;case"desc":o.sort(function(a,o){return r(o).data("addon-title").localeCompare(r(a).data("addon-title"))}).each(function(a,o){r(o).removeClass("last"),e.append(o).hide().fadeIn(100)}),r("#soliloquy-addons-area .soliloquy-addon:nth-child(3n)").addClass("last");break;case"active":o.hide().filter('[data-addon-status="active"]').show(),o.removeClass("last"),r("#soliloquy-addons-area .soliloquy-addon:visible").each(function(a){(a+1)%3==0&&r(this).addClass("last")});break;case"inactive":o.hide().filter('[data-addon-status="inactive"]').show(),o.removeClass("last"),r("#soliloquy-addons-area .soliloquy-addon:visible").each(function(a){(a+1)%3==0&&r(this).addClass("last")});break;case"installed":o.hide().filter('[data-addon-status="not_installed"]').show(),o.removeClass("last"),r("#soliloquy-addons-area .soliloquy-addon:visible").each(function(a){(a+1)%3==0&&r(this).addClass("last")})}}),r("#soliloquy-addons-area").on("click.refreshInstallAddon",".soliloquy-addon-action-button",function(a){a.preventDefault();var e=r(this),a=r("#soliloquy-addons-area").find(".soliloquy-addon-action-button");r.each(a,function(a,o){if(e===o)return!0;r(o).attr("disabled")&&r(o).removeAttr("disabled"),r(o).parent().parent().hasClass("soliloquy-addon-not-installed")&&r(o).text(c.install)})}),r("#soliloquy-addons-area").on("click.activateAddon",".soliloquy-activate-addon",function(a){a.preventDefault();var t=r(this),a=t.attr("rel"),o=t.parent().parent(),e=t.parent().parent().find(".addon-status").children("span"),a=(r(".soliloquy-addon-error").remove(),t.text(c.activating),t.next().css({display:"inline-block","margin-top":"0px"}),{url:ajaxurl,type:"post",async:!0,cache:!1,dataType:"json",data:{action:"soliloquy_activate_addon",nonce:c.activate_nonce,plugin:a},success:function(a){a&&!0!==a?o.slideDown("normal",function(){r(this).after('<div class="soliloquy-addon-error"><strong>'+a.error+"</strong></div>"),t.next().hide(),r(".soliloquy-addon-error").delay(3e3).slideUp()}):(t.text(c.deactivate).removeClass("soliloquy-activate-addon").addClass("soliloquy-deactivate-addon"),e.text(c.active),o.removeClass("soliloquy-addon-inactive").addClass("soliloquy-addon-active"),t.next().hide())},error:function(a,o,e){t.next().hide()}});r.ajax(a)}),r("#soliloquy-addons-area").on("click.deactivateAddon",".soliloquy-deactivate-addon",function(a){a.preventDefault();var t=r(this),a=t.attr("rel"),o=t.parent().parent(),e=t.parent().parent().find(".addon-status").children("span"),a=(r(".soliloquy-addon-error").remove(),t.text(c.deactivating),t.next().css({display:"inline-block","margin-top":"0px"}),{url:ajaxurl,type:"post",async:!0,cache:!1,dataType:"json",data:{action:"soliloquy_deactivate_addon",nonce:c.deactivate_nonce,plugin:a},success:function(a){a&&!0!==a?o.slideDown("normal",function(){r(this).after('<div class="soliloquy-addon-error"><strong>'+a.error+"</strong></div>"),t.next().hide(),r(".soliloquy-addon-error").delay(3e3).slideUp()}):(t.text(c.activate).removeClass("soliloquy-deactivate-addon").addClass("soliloquy-activate-addon"),e.text(c.inactive),o.removeClass("soliloquy-addon-active").addClass("soliloquy-addon-inactive"),t.next().hide())},error:function(a,o,e){t.next().hide()}});r.ajax(a)}),r("#soliloquy-addons-area").on("click.installAddon",".soliloquy-install-addon",function(a){a.preventDefault();var s=r(this),l=s.attr("rel"),i=s.parent().parent(),d=s.parent().parent().find(".addon-status").children("span"),a=(r(".soliloquy-addon-error").remove(),s.text(c.installing),s.next().css({display:"inline-block","margin-top":"0px"}),{url:ajaxurl,type:"post",async:!0,cache:!1,dataType:"json",data:{action:"soliloquy_install_addon",nonce:c.install_nonce,plugin:l},success:function(a){if(a.error)i.slideDown("normal",function(){s.parent().parent().after('<div class="soliloquy-addon-error"><strong>'+a.error+"</strong></div>"),s.text(c.install),s.next().hide(),r(".soliloquy-addon-error").delay(4e3).slideUp()});else{if(a.form)return i.slideDown("normal",function(){r(this).after('<div class="soliloquy-addon-error">'+a.form+"</div>"),s.next().hide()}),s.attr("disabled",!0),void r("#soliloquy-addons-area").on("click.installCredsAddon","#upgrade",function(a){a.preventDefault(),s.next().hide(),r(this).val(c.installing),r(this).next().css({display:"inline-block","margin-top":"0px"});var a=r(this).parent().parent().find("#hostname").val(),o=r(this).parent().parent().find("#username").val(),e=r(this).parent().parent().find("#password").val(),t=r(this),n=r(this).parent().parent().parent().parent(),a={url:ajaxurl,type:"post",async:!0,cache:!1,dataType:"json",data:{action:"soliloquy_install_addon",nonce:c.install_nonce,plugin:l,hostname:a,username:o,password:e},success:function(a){if(a.error)i.slideDown("normal",function(){s.parent().parent().after('<div class="soliloquy-addon-error"><strong>'+a.error+"</strong></div>"),s.text(c.install),s.next().hide(),r(".soliloquy-addon-error").delay(4e3).slideUp()});else{if(a.form)return s.next().hide(),r(".soliloquy-inline-error").remove(),r(t).val(c.proceed),void r(t).after('<span class="soliloquy-inline-error">'+c.connect_error+"</span>");r(n).remove(),s.show(),s.text(c.activate).removeClass("soliloquy-install-addon").addClass("soliloquy-activate-addon"),s.attr("rel",a.plugin),s.removeAttr("disabled"),d.text(c.inactive),i.removeClass("soliloquy-addon-not-installed").addClass("soliloquy-addon-inactive"),s.next().hide()}},error:function(a,o,e){s.next().hide()}};r.ajax(a)});s.text(c.activate).removeClass("soliloquy-install-addon").addClass("soliloquy-activate-addon"),s.attr("rel",a.plugin),d.text(c.inactive),i.removeClass("soliloquy-addon-not-installed").addClass("soliloquy-addon-inactive"),s.next().hide()}},error:function(a,o,e){s.next().hide()}});r.ajax(a)})})})(); \ No newline at end of file @@ -1 +1 @@ -(()=>{var n={325:function(t){if(t.exports=function(){"use strict";function i(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol")i=function(t){return typeof t};else i=function(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};return i(t)}function D(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function M(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||false;o.configurable=true;if("value"in o)o.writable=true;Object.defineProperty(t,o.key,o)}}function I(t,e,n){if(e)M(t.prototype,e);if(n)M(t,n);return t}function r(){r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)if(Object.prototype.hasOwnProperty.call(n,o))t[o]=n[o]}return t};return r.apply(this,arguments)}function $(t,e){if(typeof e!=="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)H(t,e)}function s(t){s=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return s(t)}function H(t,e){H=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return H(t,e)}function V(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true}catch(t){return false}}function N(t,e,n){if(V())N=Reflect.construct;else N=function t(e,n,o){var a=[null];a.push.apply(a,n);var i=Function.bind.apply(e,a);var r=new i;if(o)H(r,o.prototype);return r};return N.apply(null,arguments)}function R(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function U(t,e){if(e&&(typeof e==="object"||typeof e==="function"))return e;return R(t)}function F(a){var i=V();return function t(){var e=s(a),n;if(i){var o=s(this).constructor;n=Reflect.construct(e,arguments,o)}else n=e.apply(this,arguments);return U(this,n)}}function Y(t,e){while(!Object.prototype.hasOwnProperty.call(t,e)){t=s(t);if(t===null)break}return t}function Z(t,e,n){if(typeof Reflect!=="undefined"&&Reflect.get)Z=Reflect.get;else Z=function t(e,n,o){var a=Y(e,n);if(!a)return;var i=Object.getOwnPropertyDescriptor(a,n);if(i.get)return i.get.call(o);return i.value};return Z(t,e,n||t)}var W="SweetAlert2:",K=function t(e){var n=[];for(var o=0;o<e.length;o++)if(n.indexOf(e[o])===-1)n.push(e[o]);return n},X=function t(e){return e.charAt(0).toUpperCase()+e.slice(1)},Q=function t(e){return Object.keys(e).map(function(t){return e[t]})},l=function t(e){return Array.prototype.slice.call(e)},c=function t(e){console.warn("".concat(W," ").concat(i(e)==="object"?e.join(" "):e))},u=function t(e){console.error("".concat(W," ").concat(e))},J=[],G=function t(e){if(!(J.indexOf(e)!==-1)){J.push(e);c(e)}},tt=function t(e,n){G('"'.concat(e,'" is deprecated and will be removed in the next major release. Please use "').concat(n,'" instead.'))},et=function t(e){return typeof e==="function"?e():e},nt=function t(e){return e&&typeof e.toPromise==="function"},d=function t(e){return nt(e)?e.toPromise():Promise.resolve(e)},ot=function t(e){return e&&Promise.resolve(e)===e},f=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),at=function t(e){return i(e)==="object"&&e.jquery},it=function t(e){return e instanceof Element||at(e)},rt=function t(o){var a={};if(i(o[0])==="object"&&!it(o[0]))r(a,o[0]);else["title","html","icon"].forEach(function(t,e){var n=o[e];if(typeof n==="string"||it(n))a[t]=n;else if(n!==undefined)u("Unexpected type of ".concat(t,'! Expected "string" or "Element", got ').concat(i(n)))});return a},st="swal2-",lt=function t(e){var n={};for(var o in e)n[e[o]]=st+e[o];return n},p=lt(["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"]),m=lt(["success","warning","info","question","error"]),w=function t(){return document.body.querySelector(".".concat(p.container))},n=function t(e){var n=w();return n?n.querySelector(e):null},e=function t(e){return n(".".concat(e))},h=function t(){return e(p.popup)},ct=function t(){return e(p.icon)},ut=function t(){return e(p.title)},g=function t(){return e(p.content)},dt=function t(){return e(p["html-container"])},ft=function t(){return e(p.image)},pt=function t(){return e(p["progress-steps"])},mt=function t(){return e(p["validation-message"])},b=function t(){return n(".".concat(p.actions," .").concat(p.confirm))},y=function t(){return n(".".concat(p.actions," .").concat(p.deny))},wt=function t(){return e(p["input-label"])},ht=function t(){return n(".".concat(p.loader))},v=function t(){return n(".".concat(p.actions," .").concat(p.cancel))},gt=function t(){return e(p.actions)},bt=function t(){return e(p.header)},yt=function t(){return e(p.footer)},vt=function t(){return e(p["timer-progress-bar"])},kt=function t(){return e(p.close)},xt='\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',Ct=function t(){var e=l(h().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort(function(t,e){t=parseInt(t.getAttribute("tabindex"));e=parseInt(e.getAttribute("tabindex"));if(t>e)return 1;else if(t<e)return-1;return 0});var n=l(h().querySelectorAll(xt)).filter(function(t){return t.getAttribute("tabindex")!=="-1"});return K(e.concat(n)).filter(function(t){return E(t)})},At=function t(){return!Bt()&&!document.body.classList.contains(p["no-backdrop"])},Bt=function t(){return document.body.classList.contains(p["toast-shown"])},Pt=function t(){return h().hasAttribute("data-loading")},o={previousBodyPadding:null},k=function t(e,n){e.textContent="";if(n){var o=new DOMParser;var a=o.parseFromString(n,"text/html");l(a.querySelector("head").childNodes).forEach(function(t){e.appendChild(t)});l(a.querySelector("body").childNodes).forEach(function(t){e.appendChild(t)})}},Ot=function t(e,n){if(!n)return false;var o=n.split(/\s+/);for(var a=0;a<o.length;a++)if(!e.classList.contains(o[a]))return false;return true},Et=function t(e,n){l(e.classList).forEach(function(t){if(!(Q(p).indexOf(t)!==-1)&&!(Q(m).indexOf(t)!==-1)&&!(Q(n.showClass).indexOf(t)!==-1))e.classList.remove(t)})},x=function t(e,n,o){Et(e,n);if(n.customClass&&n.customClass[o]){if(typeof n.customClass[o]!=="string"&&!n.customClass[o].forEach)return c("Invalid type of customClass.".concat(o,'! Expected string or iterable object, got "').concat(i(n.customClass[o]),'"'));C(e,n.customClass[o])}};function St(t,e){if(!e)return null;switch(e){case"select":case"textarea":case"file":return B(t,p[e]);case"checkbox":return t.querySelector(".".concat(p.checkbox," input"));case"radio":return t.querySelector(".".concat(p.radio," input:checked"))||t.querySelector(".".concat(p.radio," input:first-child"));case"range":return t.querySelector(".".concat(p.range," input"));default:return B(t,p.input)}}var Tt=function t(e){e.focus();if(e.type!=="file"){var n=e.value;e.value="";e.value=n}},_t=function t(n,e,o){if(!n||!e)return;if(typeof e==="string")e=e.split(/\s+/).filter(Boolean);e.forEach(function(e){if(n.forEach)n.forEach(function(t){o?t.classList.add(e):t.classList.remove(e)});else o?n.classList.add(e):n.classList.remove(e)})},C=function t(e,n){_t(e,n,true)},A=function t(e,n){_t(e,n,false)},B=function t(e,n){for(var o=0;o<e.childNodes.length;o++)if(Ot(e.childNodes[o],n))return e.childNodes[o]},qt=function t(e,n,o){if(o==="".concat(parseInt(o)))o=parseInt(o);if(o||parseInt(o)===0)e.style[n]=typeof o==="number"?"".concat(o,"px"):o;else e.style.removeProperty(n)},P=function t(e){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"flex";e.style.display=n},O=function t(e){e.style.display="none"},Lt=function t(e,n,o,a){var i=e.querySelector(n);if(i)i.style[o]=a},jt=function t(e,n,o){n?P(e,o):O(e)},E=function t(e){return!!(e&&(e.offsetWidth||e.offsetHeight||e.getClientRects().length))},zt=function t(){return!E(b())&&!E(y())&&!E(v())},Dt=function t(e){return!!(e.scrollHeight>e.clientHeight)},Mt=function t(e){var n=window.getComputedStyle(e);var o=parseFloat(n.getPropertyValue("animation-duration")||"0");var a=parseFloat(n.getPropertyValue("transition-duration")||"0");return o>0||a>0},It=function t(e,n){if(typeof e.contains==="function")return e.contains(n)},$t=function t(e){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;var o=vt();if(E(o)){if(n){o.style.transition="none";o.style.width="100%"}setTimeout(function(){o.style.transition="width ".concat(e/1e3,"s linear");o.style.width="0%"},10)}},Ht=function t(){var e=vt();var n=parseInt(window.getComputedStyle(e).width);e.style.removeProperty("transition");e.style.width="100%";var o=parseInt(window.getComputedStyle(e).width);var a=parseInt(n/o*100);e.style.removeProperty("transition");e.style.width="".concat(a,"%")},Vt=function t(){return typeof window==="undefined"||typeof document==="undefined"},Nt='\n <div aria-labelledby="'.concat(p.title,'" aria-describedby="').concat(p.content,'" class="').concat(p.popup,'" tabindex="-1">\n <div class="').concat(p.header,'">\n <ul class="').concat(p["progress-steps"],'"></ul>\n <div class="').concat(p.icon,'"></div>\n <img class="').concat(p.image,'" />\n <h2 class="').concat(p.title,'" id="').concat(p.title,'"></h2>\n <button type="button" class="').concat(p.close,'"></button>\n </div>\n <div class="').concat(p.content,'">\n <div id="').concat(p.content,'" class="').concat(p["html-container"],'"></div>\n <input class="').concat(p.input,'" />\n <input type="file" class="').concat(p.file,'" />\n <div class="').concat(p.range,'">\n <input type="range" />\n <output></output>\n </div>\n <select class="').concat(p.select,'"></select>\n <div class="').concat(p.radio,'"></div>\n <label for="').concat(p.checkbox,'" class="').concat(p.checkbox,'">\n <input type="checkbox" />\n <span class="').concat(p.label,'"></span>\n </label>\n <textarea class="').concat(p.textarea,'"></textarea>\n <div class="').concat(p["validation-message"],'" id="').concat(p["validation-message"],'"></div>\n </div>\n <div class="').concat(p.actions,'">\n <div class="').concat(p.loader,'"></div>\n <button type="button" class="').concat(p.confirm,'"></button>\n <button type="button" class="').concat(p.deny,'"></button>\n <button type="button" class="').concat(p.cancel,'"></button>\n </div>\n <div class="').concat(p.footer,'"></div>\n <div class="').concat(p["timer-progress-bar-container"],'">\n <div class="').concat(p["timer-progress-bar"],'"></div>\n </div>\n </div>\n').replace(/(^|\n)\s*/g,""),Rt=function t(){var e=w();if(!e)return false;e.parentNode.removeChild(e);A([document.documentElement,document.body],[p["no-backdrop"],p["toast-shown"],p["has-column"]]);return true},Ut,S=function t(e){if(z.isVisible()&&Ut!==e.target.value)z.resetValidationMessage();Ut=e.target.value},Ft=function t(){var e=g();var n=B(e,p.input);var o=B(e,p.file);var a=e.querySelector(".".concat(p.range," input"));var i=e.querySelector(".".concat(p.range," output"));var r=B(e,p.select);var s=e.querySelector(".".concat(p.checkbox," input"));var l=B(e,p.textarea);n.oninput=S;o.onchange=S;r.onchange=S;s.onchange=S;l.oninput=S;a.oninput=function(t){S(t);i.value=a.value};a.onchange=function(t){S(t);a.nextSibling.value=a.value}},Yt=function t(e){return typeof e==="string"?document.querySelector(e):e},Zt=function t(e){var n=h();n.setAttribute("role",e.toast?"alert":"dialog");n.setAttribute("aria-live",e.toast?"polite":"assertive");if(!e.toast)n.setAttribute("aria-modal","true")},Wt=function t(e){if(window.getComputedStyle(e).direction==="rtl")C(w(),p.rtl)},Kt=function t(e){var n=Rt();if(Vt()){u("SweetAlert2 requires document to initialize");return}var o=document.createElement("div");o.className=p.container;if(n)C(o,p["no-transition"]);k(o,Nt);var a=Yt(e.target);a.appendChild(o);Zt(e);Wt(a);Ft()},Xt=function t(e,n){if(e instanceof HTMLElement)n.appendChild(e);else if(i(e)==="object")Qt(e,n);else if(e)k(n,e)},Qt=function t(e,n){if(e.jquery)Jt(n,e);else k(n,e.toString())},Jt=function t(e,n){e.textContent="";if(0 in n)for(var o=0;o in n;o++)e.appendChild(n[o].cloneNode(true));else e.appendChild(n.cloneNode(true))},Gt=function(){if(Vt())return false;var t=document.createElement("div");var e={WebkitAnimation:"webkitAnimationEnd",OAnimation:"oAnimationEnd oanimationend",animation:"animationend"};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&typeof t.style[n]!=="undefined")return e[n];return false}(),te=function t(){var e=document.createElement("div");e.className=p["scrollbar-measure"];document.body.appendChild(e);var n=e.getBoundingClientRect().width-e.clientWidth;document.body.removeChild(e);return n},ee=function t(e,n){var o=gt();var a=ht();var i=b();var r=y();var s=v();if(!n.showConfirmButton&&!n.showDenyButton&&!n.showCancelButton)O(o);x(o,n,"actions");oe(i,"confirm",n);oe(r,"deny",n);oe(s,"cancel",n);ne(i,r,s,n);if(n.reverseButtons){o.insertBefore(s,a);o.insertBefore(r,a);o.insertBefore(i,a)}k(a,n.loaderHtml);x(a,n,"loader")};function ne(t,e,n,o){if(!o.buttonsStyling)return A([t,e,n],p.styled);C([t,e,n],p.styled);if(o.confirmButtonColor)t.style.backgroundColor=o.confirmButtonColor;if(o.denyButtonColor)e.style.backgroundColor=o.denyButtonColor;if(o.cancelButtonColor)n.style.backgroundColor=o.cancelButtonColor}function oe(t,e,n){jt(t,n["show".concat(X(e),"Button")],"inline-block");k(t,n["".concat(e,"ButtonText")]);t.setAttribute("aria-label",n["".concat(e,"ButtonAriaLabel")]);t.className=p[e];x(t,n,"".concat(e,"Button"));C(t,n["".concat(e,"ButtonClass")])}function ae(t,e){if(typeof e==="string")t.style.background=e;else if(!e)C([document.documentElement,document.body],p["no-backdrop"])}function ie(t,e){if(e in p)C(t,p[e]);else{c('The "position" parameter is not valid, defaulting to "center"');C(t,p.center)}}function re(t,e){if(e&&typeof e==="string"){var n="grow-".concat(e);if(n in p)C(t,p[n])}}var se=function t(e,n){var o=w();if(!o)return;ae(o,n.backdrop);if(!n.backdrop&&n.allowOutsideClick)c('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');ie(o,n.position);re(o,n.grow);x(o,n,"container");var a=document.body.getAttribute("data-swal2-queue-step");if(a){o.setAttribute("data-queue-step",a);document.body.removeAttribute("data-swal2-queue-step")}},T={promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap},le=["input","file","range","select","radio","checkbox","textarea"],ce=function t(e,o){var a=g();var n=T.innerParams.get(e);var i=!n||o.input!==n.input;le.forEach(function(t){var e=p[t];var n=B(a,e);fe(t,o.inputAttributes);n.className=e;if(i)O(n)});if(o.input){if(i)ue(o);pe(o)}},ue=function t(e){if(!a[e.input])return u('Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "'.concat(e.input,'"'));var n=he(e.input);var o=a[e.input](n,e);P(o);setTimeout(function(){Tt(o)})},de=function t(e){for(var n=0;n<e.attributes.length;n++){var o=e.attributes[n].name;if(!(["type","value","style"].indexOf(o)!==-1))e.removeAttribute(o)}},fe=function t(e,n){var o=St(g(),e);if(!o)return;de(o);for(var a in n){if(e==="range"&&a==="placeholder")continue;o.setAttribute(a,n[a])}},pe=function t(e){var n=he(e.input);if(e.customClass)C(n,e.customClass.input)},me=function t(e,n){if(!e.placeholder||n.inputPlaceholder)e.placeholder=n.inputPlaceholder},we=function t(e,n,o){if(o.inputLabel){e.id=p.input;var a=document.createElement("label");var i=p["input-label"];a.setAttribute("for",e.id);a.className=i;C(a,o.customClass.inputLabel);a.innerText=o.inputLabel;n.insertAdjacentElement("beforebegin",a)}},he=function t(e){var n=p[e]?p[e]:p.input;return B(g(),n)},a={},ge=(a.text=a.email=a.password=a.number=a.tel=a.url=function(t,e){if(typeof e.inputValue==="string"||typeof e.inputValue==="number")t.value=e.inputValue;else if(!ot(e.inputValue))c('Unexpected type of inputValue! Expected "string", "number" or "Promise", got "'.concat(i(e.inputValue),'"'));we(t,t,e);me(t,e);t.type=e.input;return t},a.file=function(t,e){we(t,t,e);me(t,e);return t},a.range=function(t,e){var n=t.querySelector("input");var o=t.querySelector("output");n.value=e.inputValue;n.type=e.input;o.value=e.inputValue;we(n,t,e);return t},a.select=function(t,e){t.textContent="";if(e.inputPlaceholder){var n=document.createElement("option");k(n,e.inputPlaceholder);n.value="";n.disabled=true;n.selected=true;t.appendChild(n)}we(t,t,e);return t},a.radio=function(t){t.textContent="";return t},a.checkbox=function(t,e){var n=St(g(),"checkbox");n.value=1;n.id=p.checkbox;n.checked=Boolean(e.inputValue);var o=t.querySelector("span");k(o,e.inputPlaceholder);return t},a.textarea=function(n,t){n.value=t.inputValue;me(n,t);we(n,n,t);var o=function t(e){return parseInt(window.getComputedStyle(e).paddingLeft)+parseInt(window.getComputedStyle(e).paddingRight)};if("MutationObserver"in window){var a=parseInt(window.getComputedStyle(h()).width);var e=function t(){var e=n.offsetWidth+o(h())+o(g());if(e>a)h().style.width="".concat(e,"px");else h().style.width=null};new MutationObserver(e).observe(n,{attributes:true,attributeFilter:["style"]})}return n},function t(e,n){var o=dt();x(o,n,"htmlContainer");if(n.html){Xt(n.html,o);P(o,"block")}else if(n.text){o.textContent=n.text;P(o,"block")}else O(o);ce(e,n);x(g(),n,"content")}),be=function t(e,n){var o=yt();jt(o,n.footer);if(n.footer)Xt(n.footer,o);x(o,n,"footer")},ye=function t(e,n){var o=kt();k(o,n.closeButtonHtml);x(o,n,"closeButton");jt(o,n.showCloseButton);o.setAttribute("aria-label",n.closeButtonAriaLabel)},ve=function t(e,n){var o=T.innerParams.get(e);var a=ct();if(o&&n.icon===o.icon){Ce(a,n);ke(a,n);return}if(!n.icon&&!n.iconHtml)return O(a);if(n.icon&&Object.keys(m).indexOf(n.icon)===-1){u('Unknown icon! Expected "success", "error", "warning", "info" or "question", got "'.concat(n.icon,'"'));return O(a)}P(a);Ce(a,n);ke(a,n);C(a,n.showClass.icon)},ke=function t(e,n){for(var o in m)if(n.icon!==o)A(e,m[o]);C(e,m[n.icon]);Ae(e,n);xe();x(e,n,"icon")},xe=function t(){var e=h();var n=window.getComputedStyle(e).getPropertyValue("background-color");var o=e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(var a=0;a<o.length;a++)o[a].style.backgroundColor=n},Ce=function t(e,n){e.textContent="";if(n.iconHtml)k(e,Be(n.iconHtml));else if(n.icon==="success")k(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 ');else if(n.icon==="error")k(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 ');else{var o={question:"?",warning:"!",info:"i"};k(e,Be(o[n.icon]))}},Ae=function t(e,n){if(!n.iconColor)return;e.style.color=n.iconColor;e.style.borderColor=n.iconColor;for(var o=0,a=[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"];o<a.length;o++){var i=a[o];Lt(e,i,"backgroundColor",n.iconColor)}Lt(e,".swal2-success-ring","borderColor",n.iconColor)},Be=function t(e){return'<div class="'.concat(p["icon-content"],'">').concat(e,"</div>")},Pe=function t(e,n){var o=ft();if(!n.imageUrl)return O(o);P(o,"");o.setAttribute("src",n.imageUrl);o.setAttribute("alt",n.imageAlt);qt(o,"width",n.imageWidth);qt(o,"height",n.imageHeight);o.className=p.image;x(o,n,"image")},_=[],Oe,Ee=function t(){return w()&&w().getAttribute("data-queue-step")},Se,Te,_e=function t(e){var n=document.createElement("li");C(n,p["progress-step"]);k(n,e);return n},qe=function t(e){var n=document.createElement("li");C(n,p["progress-step-line"]);if(e.progressStepsDistance)n.style.width=e.progressStepsDistance;return n},Le=function t(e,a){var i=pt();if(!a.progressSteps||a.progressSteps.length===0)return O(i);P(i);i.textContent="";var r=parseInt(a.currentProgressStep===undefined?Ee():a.currentProgressStep);if(r>=a.progressSteps.length)c("Invalid currentProgressStep parameter, it should be less than progressSteps.length "+"(currentProgressStep like JS arrays starts from 0)");a.progressSteps.forEach(function(t,e){var n=_e(t);i.appendChild(n);if(e===r)C(n,p["active-progress-step"]);if(e!==a.progressSteps.length-1){var o=qe(a);i.appendChild(o)}})},je=function t(e,n){var o=ut();jt(o,n.title||n.titleText,"block");if(n.title)Xt(n.title,o);if(n.titleText)o.innerText=n.titleText;x(o,n,"title")},ze=function t(e,n){var o=bt();x(o,n,"header");Le(e,n);ve(e,n);Pe(e,n);je(e,n);ye(e,n)},De=function t(e,n){var o=w();var a=h();if(n.toast){qt(o,"width",n.width);a.style.width="100%"}else qt(a,"width",n.width);qt(a,"padding",n.padding);if(n.background)a.style.background=n.background;O(mt());Me(a,n)},Me=function t(e,n){e.className="".concat(p.popup," ").concat(E(e)?n.showClass.popup:"");if(n.toast){C([document.documentElement,document.body],p["toast-shown"]);C(e,p.toast)}else C(e,p.modal);x(e,n,"popup");if(typeof n.customClass==="string")C(e,n.customClass);if(n.icon)C(e,p["icon-".concat(n.icon)])},Ie=function t(e,n){De(e,n);se(e,n);ze(e,n);ge(e,n);ee(e,n);be(e,n);if(typeof n.didRender==="function")n.didRender(h());else if(typeof n.onRender==="function")n.onRender(h())},$e,He=function t(){return b()&&b().click()},Ve,Ne;function Re(){var t=this;for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return N(t,n)}function Ue(a){var t=function(t){$(o,t);var e=F(o);function o(){D(this,o);return e.apply(this,arguments)}I(o,[{key:"_main",value:function t(e,n){return Z(s(o.prototype),"_main",this).call(this,e,r({},a,n))}}]);return o}(this);return t}var Fe=function t(e){var n=h();if(!n)z.fire();n=h();var o=gt();var a=ht();if(!e&&E(b()))e=b();P(o);if(e){O(e);a.setAttribute("data-button-to-replace",e.className)}a.parentNode.insertBefore(a,e);C([n,o],p.loading);P(a);n.setAttribute("data-loading",true);n.setAttribute("aria-busy",true);n.focus()},Ye=100,q={},Ze=function t(){if(q.previousActiveElement&&q.previousActiveElement.focus){q.previousActiveElement.focus();q.previousActiveElement=null}else if(document.body)document.body.focus()},We=function t(o){return new Promise(function(t){if(!o)return t();var e=window.scrollX;var n=window.scrollY;q.restoreFocusTimeout=setTimeout(function(){Ze();t()},Ye);if(typeof e!=="undefined"&&typeof n!=="undefined")window.scrollTo(e,n)})},Ke,Xe=function t(){if(q.timeout){Ht();return q.timeout.stop()}},Qe=function t(){if(q.timeout){var e=q.timeout.start();$t(e);return e}},Je,Ge,tn,en=false,nn={};function on(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"data-swal-template";nn[t]=this;if(!en){document.body.addEventListener("click",an);en=true}}var an=function t(e){for(var n=e.target;n&&n!==document;n=n.parentNode)for(var o in nn){var a=n.getAttribute(o);if(a){nn[o].fire({template:a});return}}},L={title:"",titleText:"",text:"",html:"",footer:"",icon:undefined,iconColor:undefined,iconHtml:undefined,template:undefined,toast:false,animation:true,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:true,heightAuto:true,allowOutsideClick:true,allowEscapeKey:true,allowEnterKey:true,stopKeydownPropagation:true,keydownListenerCapture:false,showConfirmButton:true,showDenyButton:false,showCancelButton:false,preConfirm:undefined,preDeny:undefined,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:undefined,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:undefined,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:undefined,buttonsStyling:true,reverseButtons:false,focusConfirm:true,focusDeny:false,focusCancel:false,returnFocus:true,showCloseButton:false,closeButtonHtml:"×",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:false,showLoaderOnDeny:false,imageUrl:undefined,imageWidth:undefined,imageHeight:undefined,imageAlt:"",timer:undefined,timerProgressBar:false,width:undefined,padding:undefined,background:undefined,input:undefined,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoTrim:true,inputAttributes:{},inputValidator:undefined,returnInputValueOnDeny:false,validationMessage:undefined,grow:false,position:"center",progressSteps:[],currentProgressStep:undefined,progressStepsDistance:undefined,onBeforeOpen:undefined,onOpen:undefined,willOpen:undefined,didOpen:undefined,onRender:undefined,didRender:undefined,onClose:undefined,onAfterClose:undefined,willClose:undefined,didClose:undefined,onDestroy:undefined,didDestroy:undefined,scrollbarPadding:true},rn=["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"],sn={animation:'showClass" and "hideClass',onBeforeOpen:"willOpen",onOpen:"didOpen",onRender:"didRender",onClose:"willClose",onAfterClose:"didClose",onDestroy:"didDestroy"},ln=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],cn=function t(e){return Object.prototype.hasOwnProperty.call(L,e)},un,dn=function t(e){return sn[e]},fn=function t(e){if(!cn(e))c('Unknown parameter "'.concat(e,'"'))},pn=function t(e){if(ln.indexOf(e)!==-1)c('The parameter "'.concat(e,'" is incompatible with toasts'))},mn=function t(e){if(dn(e))tt(e,dn(e))},wn=function t(e){for(var n in e){fn(n);if(e.toast)pn(n);mn(n)}},hn=Object.freeze({isValidParameter:cn,isUpdatableParameter:function t(e){return rn.indexOf(e)!==-1},isDeprecatedParameter:dn,argsToParams:rt,isVisible:function t(){return E(h())},clickConfirm:He,clickDeny:function t(){return y()&&y().click()},clickCancel:function t(){return v()&&v().click()},getContainer:w,getPopup:h,getTitle:ut,getContent:g,getHtmlContainer:dt,getImage:ft,getIcon:ct,getInputLabel:wt,getCloseButton:kt,getActions:gt,getConfirmButton:b,getDenyButton:y,getCancelButton:v,getLoader:ht,getHeader:bt,getFooter:yt,getTimerProgressBar:vt,getFocusableElements:Ct,getValidationMessage:mt,isLoading:Pt,fire:Re,mixin:Ue,queue:function t(e){tt("Swal.queue()","async/await");var i=this;_=e;var r=function t(e,n){_=[];e(n)};var s=[];return new Promise(function(a){(function e(n,o){if(n<_.length){document.body.setAttribute("data-swal2-queue-step",n);i.fire(_[n]).then(function(t){if(typeof t.value!=="undefined"){s.push(t.value);e(n+1,o)}else r(a,{dismiss:t.dismiss})})}else r(a,{value:s})})(0)})},getQueueStep:Ee,insertQueueStep:function t(e,n){if(n&&n<_.length)return _.splice(n,0,e);return _.push(e)},deleteQueueStep:function t(e){if(typeof _[e]!=="undefined")_.splice(e,1)},showLoading:Fe,enableLoading:Fe,getTimerLeft:function t(){return q.timeout&&q.timeout.getTimerLeft()},stopTimer:Xe,resumeTimer:Qe,toggleTimer:function t(){var e=q.timeout;return e&&(e.running?Xe():Qe())},increaseTimer:function t(e){if(q.timeout){var n=q.timeout.increase(e);$t(n,true);return n}},isTimerRunning:function t(){return q.timeout&&q.timeout.isRunning()},bindClickHandler:on});function gn(){var t=T.innerParams.get(this);if(!t)return;var e=T.domCache.get(this);O(e.loader);var n=e.popup.getElementsByClassName(e.loader.getAttribute("data-button-to-replace"));if(n.length)P(n[0],"inline-block");else if(zt())O(e.actions);A([e.popup,e.actions],p.loading);e.popup.removeAttribute("aria-busy");e.popup.removeAttribute("data-loading");e.confirmButton.disabled=false;e.denyButton.disabled=false;e.cancelButton.disabled=false}function bn(t){var e=T.innerParams.get(t||this);var n=T.domCache.get(t||this);if(!n)return null;return St(n.content,e.input)}var yn=function t(){if(o.previousBodyPadding!==null)return;if(document.body.scrollHeight>window.innerHeight){o.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right"));document.body.style.paddingRight="".concat(o.previousBodyPadding+te(),"px")}},vn=function t(){if(o.previousBodyPadding!==null){document.body.style.paddingRight="".concat(o.previousBodyPadding,"px");o.previousBodyPadding=null}},kn=function t(){var e=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1;if(e&&!Ot(document.body,p.iosfix)){var n=document.body.scrollTop;document.body.style.top="".concat(n*-1,"px");C(document.body,p.iosfix);Cn();xn()}},xn=function t(){var e=!navigator.userAgent.match(/(CriOS|FxiOS|EdgiOS|YaBrowser|UCBrowser)/i);if(e){var n=44;if(h().scrollHeight>window.innerHeight-n)w().style.paddingBottom="".concat(n,"px")}},Cn=function t(){var e=w();var n;e.ontouchstart=function(t){n=An(t)};e.ontouchmove=function(t){if(n){t.preventDefault();t.stopPropagation()}}},An=function t(e){var n=e.target;var o=w();if(Bn(e)||Pn(e))return false;if(n===o)return true;if(!Dt(o)&&n.tagName!=="INPUT"&&!(Dt(g())&&g().contains(n)))return true;return false},Bn=function t(e){return e.touches&&e.touches.length&&e.touches[0].touchType==="stylus"},Pn=function t(e){return e.touches&&e.touches.length>1},On=function t(){if(Ot(document.body,p.iosfix)){var e=parseInt(document.body.style.top,10);A(document.body,p.iosfix);document.body.style.top="";document.body.scrollTop=e*-1}},En=function t(){return!!window.MSInputMethodContext&&!!document.documentMode},Sn=function t(){var e=w();var n=h();e.style.removeProperty("align-items");if(n.offsetTop<0)e.style.alignItems="flex-start"},Tn=function t(){if(typeof window!=="undefined"&&En()){Sn();window.addEventListener("resize",Sn)}},_n=function t(){if(typeof window!=="undefined"&&En())window.removeEventListener("resize",Sn)},qn=function t(){var e=l(document.body.children);e.forEach(function(t){if(t===w()||It(t,w()))return;if(t.hasAttribute("aria-hidden"))t.setAttribute("data-previous-aria-hidden",t.getAttribute("aria-hidden"));t.setAttribute("aria-hidden","true")})},Ln=function t(){var e=l(document.body.children);e.forEach(function(t){if(t.hasAttribute("data-previous-aria-hidden")){t.setAttribute("aria-hidden",t.getAttribute("data-previous-aria-hidden"));t.removeAttribute("data-previous-aria-hidden")}else t.removeAttribute("aria-hidden")})},jn={swalPromiseResolve:new WeakMap};function zn(t,e,n,o){if(Bt())Nn(t,o);else{We(n).then(function(){return Nn(t,o)});q.keydownTarget.removeEventListener("keydown",q.keydownHandler,{capture:q.keydownListenerCapture});q.keydownHandlerAdded=false}if(e.parentNode&&!document.body.getAttribute("data-swal2-queue-step"))e.parentNode.removeChild(e);if(At()){vn();On();_n();Ln()}Dn()}function Dn(){A([document.documentElement,document.body],[p.shown,p["height-auto"],p["no-backdrop"],p["toast-shown"]])}function Mn(t){var e=h();if(!e)return;t=In(t);var n=T.innerParams.get(this);if(!n||Ot(e,n.hideClass.popup))return;var o=jn.swalPromiseResolve.get(this);A(e,n.showClass.popup);C(e,n.hideClass.popup);var a=w();A(a,n.showClass.backdrop);C(a,n.hideClass.backdrop);$n(this,e,n);o(t)}var In=function t(e){if(typeof e==="undefined")return{isConfirmed:false,isDenied:false,isDismissed:true};return r({isConfirmed:false,isDenied:false,isDismissed:false},e)},$n=function t(e,n,o){var a=w();var i=Gt&&Mt(n);var r=o.onClose,s=o.onAfterClose,l=o.willClose,c=o.didClose;Hn(n,l,r);if(i)Vn(e,n,a,o.returnFocus,c||s);else zn(e,a,o.returnFocus,c||s)},Hn=function t(e,n,o){if(n!==null&&typeof n==="function")n(e);else if(o!==null&&typeof o==="function")o(e)},Vn=function t(e,n,o,a,i){q.swalCloseEventFinishedCallback=zn.bind(null,e,o,a,i);n.addEventListener(Gt,function(t){if(t.target===n){q.swalCloseEventFinishedCallback();delete q.swalCloseEventFinishedCallback}})},Nn=function t(e,n){setTimeout(function(){if(typeof n==="function")n();e._destroy()})};function Rn(t,e,n){var o=T.domCache.get(t);e.forEach(function(t){o[t].disabled=n})}function Un(t,e){if(!t)return false;if(t.type==="radio"){var n=t.parentNode.parentNode;var o=n.querySelectorAll("input");for(var a=0;a<o.length;a++)o[a].disabled=e}else t.disabled=e}function Fn(){Rn(this,["confirmButton","denyButton","cancelButton"],false)}function Yn(){Rn(this,["confirmButton","denyButton","cancelButton"],true)}function Zn(){return Un(this.getInput(),false)}function Wn(){return Un(this.getInput(),true)}function Kn(t){var e=T.domCache.get(this);var n=T.innerParams.get(this);k(e.validationMessage,t);e.validationMessage.className=p["validation-message"];if(n.customClass&&n.customClass.validationMessage)C(e.validationMessage,n.customClass.validationMessage);P(e.validationMessage);var o=this.getInput();if(o){o.setAttribute("aria-invalid",true);o.setAttribute("aria-describedBy",p["validation-message"]);Tt(o);C(o,p.inputerror)}}function Xn(){var t=T.domCache.get(this);if(t.validationMessage)O(t.validationMessage);var e=this.getInput();if(e){e.removeAttribute("aria-invalid");e.removeAttribute("aria-describedBy");A(e,p.inputerror)}}function Qn(){var t=T.domCache.get(this);return t.progressSteps}var Jn=function(){function n(t,e){D(this,n);this.callback=t;this.remaining=e;this.running=false;this.start()}I(n,[{key:"start",value:function t(){if(!this.running){this.running=true;this.started=new Date;this.id=setTimeout(this.callback,this.remaining)}return this.remaining}},{key:"stop",value:function t(){if(this.running){this.running=false;clearTimeout(this.id);this.remaining-=new Date-this.started}return this.remaining}},{key:"increase",value:function t(e){var n=this.running;if(n)this.stop();this.remaining+=e;if(n)this.start();return this.remaining}},{key:"getTimerLeft",value:function t(){if(this.running){this.stop();this.start()}return this.remaining}},{key:"isRunning",value:function t(){return this.running}}]);return n}(),Gn={email:function t(e,n){return/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(e)?Promise.resolve():Promise.resolve(n||"Invalid email address")},url:function t(e,n){return/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(e)?Promise.resolve():Promise.resolve(n||"Invalid URL")}};function to(e){if(!e.inputValidator)Object.keys(Gn).forEach(function(t){if(e.input===t)e.inputValidator=Gn[t]})}function eo(t){if(!t.target||typeof t.target==="string"&&!document.querySelector(t.target)||typeof t.target!=="string"&&!t.target.appendChild){c('Target parameter is not valid, defaulting to "body"');t.target="body"}}function no(t){to(t);if(t.showLoaderOnConfirm&&!t.preConfirm)c("showLoaderOnConfirm is set to true, but preConfirm is not defined.\n"+"showLoaderOnConfirm should be used together with preConfirm, see usage example:\n"+"https://sweetalert2.github.io/#ajax-request");t.animation=et(t.animation);eo(t);if(typeof t.title==="string")t.title=t.title.split("\n").join("<br />");Kt(t)}var oo=["swal-title","swal-html","swal-footer"],ao=function t(e){var n=typeof e.template==="string"?document.querySelector(e.template):e.template;if(!n)return{};var o=n.content||n;fo(o);var a=r(io(o),ro(o),so(o),lo(o),co(o),uo(o,oo));return a},io=function t(e){var o={};l(e.querySelectorAll("swal-param")).forEach(function(t){j(t,["name","value"]);var e=t.getAttribute("name");var n=t.getAttribute("value");if(typeof L[e]==="boolean"&&n==="false")n=false;if(i(L[e])==="object")n=JSON.parse(n);o[e]=n});return o},ro=function t(e){var n={};l(e.querySelectorAll("swal-button")).forEach(function(t){j(t,["type","color","aria-label"]);var e=t.getAttribute("type");n["".concat(e,"ButtonText")]=t.innerHTML;n["show".concat(X(e),"Button")]=true;if(t.hasAttribute("color"))n["".concat(e,"ButtonColor")]=t.getAttribute("color");if(t.hasAttribute("aria-label"))n["".concat(e,"ButtonAriaLabel")]=t.getAttribute("aria-label")});return n},so=function t(e){var n={};var o=e.querySelector("swal-image");if(o){j(o,["src","width","height","alt"]);if(o.hasAttribute("src"))n.imageUrl=o.getAttribute("src");if(o.hasAttribute("width"))n.imageWidth=o.getAttribute("width");if(o.hasAttribute("height"))n.imageHeight=o.getAttribute("height");if(o.hasAttribute("alt"))n.imageAlt=o.getAttribute("alt")}return n},lo=function t(e){var n={};var o=e.querySelector("swal-icon");if(o){j(o,["type","color"]);if(o.hasAttribute("type"))n.icon=o.getAttribute("type");if(o.hasAttribute("color"))n.iconColor=o.getAttribute("color");n.iconHtml=o.innerHTML}return n},co=function t(e){var o={};var n=e.querySelector("swal-input");if(n){j(n,["type","label","placeholder","value"]);o.input=n.getAttribute("type")||"text";if(n.hasAttribute("label"))o.inputLabel=n.getAttribute("label");if(n.hasAttribute("placeholder"))o.inputPlaceholder=n.getAttribute("placeholder");if(n.hasAttribute("value"))o.inputValue=n.getAttribute("value")}var a=e.querySelectorAll("swal-input-option");if(a.length){o.inputOptions={};l(a).forEach(function(t){j(t,["value"]);var e=t.getAttribute("value");var n=t.innerHTML;o.inputOptions[e]=n})}return o},uo=function t(e,n){var o={};for(var a in n){var i=n[a];var r=e.querySelector(i);if(r){j(r,[]);o[i.replace(/^swal-/,"")]=r.innerHTML.trim()}}return o},fo=function t(n){var o=oo.concat(["swal-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);l(n.querySelectorAll("*")).forEach(function(t){if(t.parentNode!==n)return;var e=t.tagName.toLowerCase();if(o.indexOf(e)===-1)c("Unrecognized element <".concat(e,">"))})},j=function t(e,n){l(e.attributes).forEach(function(t){if(n.indexOf(t.name)===-1)c(['Unrecognized attribute "'.concat(t.name,'" on <').concat(e.tagName.toLowerCase(),">."),"".concat(n.length?"Allowed attributes are: ".concat(n.join(", ")):"To set the value, use HTML within the element.")])})},po=10,mo=function t(e){var n=w();var o=h();if(typeof e.willOpen==="function")e.willOpen(o);else if(typeof e.onBeforeOpen==="function")e.onBeforeOpen(o);var a=window.getComputedStyle(document.body);var i=a.overflowY;yo(n,o,e);setTimeout(function(){go(n,o)},po);if(At()){bo(n,e.scrollbarPadding,i);qn()}if(!Bt()&&!q.previousActiveElement)q.previousActiveElement=document.activeElement;wo(o,e);A(n,p["no-transition"])},wo=function t(e,n){if(typeof n.didOpen==="function")setTimeout(function(){return n.didOpen(e)});else if(typeof n.onOpen==="function")setTimeout(function(){return n.onOpen(e)})},ho=function t(e){var n=h();if(e.target!==n)return;var o=w();n.removeEventListener(Gt,t);o.style.overflowY="auto"},go=function t(e,n){if(Gt&&Mt(n)){e.style.overflowY="hidden";n.addEventListener(Gt,ho)}else e.style.overflowY="auto"},bo=function t(e,n,o){kn();Tn();if(n&&o!=="hidden")yn();setTimeout(function(){e.scrollTop=0})},yo=function t(e,n,o){C(e,o.showClass.backdrop);n.style.setProperty("opacity","0","important");P(n);setTimeout(function(){C(n,o.showClass.popup);n.style.removeProperty("opacity")},po);C([document.documentElement,document.body],p.shown);if(o.heightAuto&&o.backdrop&&!o.toast)C([document.documentElement,document.body],p["height-auto"])},vo=function t(e,n){if(n.input==="select"||n.input==="radio")Bo(e,n);else if(["text","email","number","tel","textarea"].indexOf(n.input)!==-1&&(nt(n.inputValue)||ot(n.inputValue)))Po(e,n)},ko=function t(e,n){var o=e.getInput();if(!o)return null;switch(n.input){case"checkbox":return xo(o);case"radio":return Co(o);case"file":return Ao(o);default:return n.inputAutoTrim?o.value.trim():o.value}},xo=function t(e){return e.checked?1:0},Co=function t(e){return e.checked?e.value:null},Ao=function t(e){return e.files.length?e.getAttribute("multiple")!==null?e.files:e.files[0]:null},Bo=function t(e,n){var o=g();var a=function t(e){return Oo[n.input](o,Eo(e),n)};if(nt(n.inputOptions)||ot(n.inputOptions)){Fe(b());d(n.inputOptions).then(function(t){e.hideLoading();a(t)})}else if(i(n.inputOptions)==="object")a(n.inputOptions);else u("Unexpected type of inputOptions! Expected object, Map or Promise, got ".concat(i(n.inputOptions)))},Po=function t(e,n){var o=e.getInput();O(o);d(n.inputValue).then(function(t){o.value=n.input==="number"?parseFloat(t)||0:"".concat(t);P(o);o.focus();e.hideLoading()})["catch"](function(t){u("Error in inputValue promise: ".concat(t));o.value="";P(o);o.focus();e.hideLoading()})},Oo={select:function a(t,e,i){var a=B(t,p.select);var r=function t(e,n,o){var a=document.createElement("option");a.value=o;k(a,n);a.selected=So(o,i.inputValue);e.appendChild(a)};e.forEach(function(t){var e=t[0];var n=t[1];if(Array.isArray(n)){var o=document.createElement("optgroup");o.label=e;o.disabled=false;a.appendChild(o);n.forEach(function(t){return r(o,t[1],t[0])})}else r(a,n,e)});a.focus()},radio:function r(t,e,s){var r=B(t,p.radio);e.forEach(function(t){var e=t[0];var n=t[1];var o=document.createElement("input");var a=document.createElement("label");o.type="radio";o.name=p.radio;o.value=e;if(So(e,s.inputValue))o.checked=true;var i=document.createElement("span");k(i,n);i.className=p.label;a.appendChild(o);a.appendChild(i);r.appendChild(a)});var n=r.querySelectorAll("input");if(n.length)n[0].focus()}},Eo=function o(n){var a=[];if(typeof Map!=="undefined"&&n instanceof Map)n.forEach(function(t,e){var n=t;if(i(n)==="object")n=o(n);a.push([e,n])});else Object.keys(n).forEach(function(t){var e=n[t];if(i(e)==="object")e=o(e);a.push([t,e])});return a},So=function t(e,n){return n&&n.toString()===e.toString()},To=function t(e,n){e.disableButtons();if(n.input)Lo(e,n,"confirm");else Mo(e,n,true)},_o=function t(e,n){e.disableButtons();if(n.returnInputValueOnDeny)Lo(e,n,"deny");else zo(e,n,false)},qo=function t(e,n){e.disableButtons();n(f.cancel)},Lo=function t(e,n,o){var a=ko(e,n);if(n.inputValidator)jo(e,n,a);else if(!e.getInput().checkValidity()){e.enableButtons();e.showValidationMessage(n.validationMessage)}else if(o==="deny")zo(e,n,a);else Mo(e,n,a)},jo=function t(e,n,o){e.disableInput();var a=Promise.resolve().then(function(){return d(n.inputValidator(o,n.validationMessage))});a.then(function(t){e.enableButtons();e.enableInput();if(t)e.showValidationMessage(t);else Mo(e,n,o)})},zo=function t(e,n,o){if(n.showLoaderOnDeny)Fe(y());if(n.preDeny){var a=Promise.resolve().then(function(){return d(n.preDeny(o,n.validationMessage))});a.then(function(t){if(t===false)e.hideLoading();else e.closePopup({isDenied:true,value:typeof t==="undefined"?o:t})})}else e.closePopup({isDenied:true,value:o})},Do=function t(e,n){e.closePopup({isConfirmed:true,value:n})},Mo=function t(e,n,o){if(n.showLoaderOnConfirm)Fe();if(n.preConfirm){e.resetValidationMessage();var a=Promise.resolve().then(function(){return d(n.preConfirm(o,n.validationMessage))});a.then(function(t){if(E(mt())||t===false)e.hideLoading();else Do(e,typeof t==="undefined"?o:t)})}else Do(e,o)},Io=function t(e,n,o,a){if(n.keydownTarget&&n.keydownHandlerAdded){n.keydownTarget.removeEventListener("keydown",n.keydownHandler,{capture:n.keydownListenerCapture});n.keydownHandlerAdded=false}if(!o.toast){n.keydownHandler=function(t){return Ro(e,t,a)};n.keydownTarget=o.keydownListenerCapture?window:h();n.keydownListenerCapture=o.keydownListenerCapture;n.keydownTarget.addEventListener("keydown",n.keydownHandler,{capture:n.keydownListenerCapture});n.keydownHandlerAdded=true}},$o=function t(e,n,o){var a=Ct();if(a.length){n=n+o;if(n===a.length)n=0;else if(n===-1)n=a.length-1;return a[n].focus()}h().focus()},Ho=["ArrowRight","ArrowDown","Right","Down"],Vo=["ArrowLeft","ArrowUp","Left","Up"],No=["Escape","Esc"],Ro=function t(e,n,o){var a=T.innerParams.get(e);if(!a)return;if(a.stopKeydownPropagation)n.stopPropagation();if(n.key==="Enter")Uo(e,n,a);else if(n.key==="Tab")Fo(n,a);else if([].concat(Ho,Vo).indexOf(n.key)!==-1)Yo(n.key);else if(No.indexOf(n.key)!==-1)Zo(n,a,o)},Uo=function t(e,n,o){if(n.isComposing)return;if(n.target&&e.getInput()&&n.target.outerHTML===e.getInput().outerHTML){if(["textarea","file"].indexOf(o.input)!==-1)return;He();n.preventDefault()}},Fo=function t(e,n){var o=e.target;var a=Ct();var i=-1;for(var r=0;r<a.length;r++)if(o===a[r]){i=r;break}if(!e.shiftKey)$o(n,i,1);else $o(n,i,-1);e.stopPropagation();e.preventDefault()},Yo=function t(e){var n=b();var o=y();var a=v();if(!([n,o,a].indexOf(document.activeElement)!==-1))return;var i=Ho.indexOf(e)!==-1?"nextElementSibling":"previousElementSibling";var r=document.activeElement[i];if(r)r.focus()},Zo=function t(e,n,o){if(et(n.allowEscapeKey)){e.preventDefault();o(f.esc)}},Wo=function t(e,n,o){var a=T.innerParams.get(e);if(a.toast)Ko(e,n,o);else{Qo(n);Jo(n);Go(e,n,o)}},Ko=function t(e,n,o){n.popup.onclick=function(){var t=T.innerParams.get(e);if(t.showConfirmButton||t.showDenyButton||t.showCancelButton||t.showCloseButton||t.timer||t.input)return;o(f.close)}},Xo=false,Qo=function t(e){e.popup.onmousedown=function(){e.container.onmouseup=function(t){e.container.onmouseup=undefined;if(t.target===e.container)Xo=true}}},Jo=function t(e){e.container.onmousedown=function(){e.popup.onmouseup=function(t){e.popup.onmouseup=undefined;if(t.target===e.popup||e.popup.contains(t.target))Xo=true}}},Go=function t(n,o,a){o.container.onclick=function(t){var e=T.innerParams.get(n);if(Xo){Xo=false;return}if(t.target===o.container&&et(e.allowOutsideClick))a(f.backdrop)}};function ta(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};wn(r({},e,t));if(q.currentInstance)q.currentInstance._destroy();q.currentInstance=this;var n=ea(t,e);no(n);Object.freeze(n);if(q.timeout){q.timeout.stop();delete q.timeout}clearTimeout(q.restoreFocusTimeout);var o=oa(this);Ie(this,n);T.innerParams.set(this,n);return na(this,o,n)}var ea=function t(e,n){var o=ao(e);var a=r({},L,n,o,e);a.showClass=r({},L.showClass,a.showClass);a.hideClass=r({},L.hideClass,a.hideClass);if(e.animation===false){a.showClass={popup:"swal2-noanimation",backdrop:"swal2-noanimation"};a.hideClass={}}return a},na=function t(n,o,a){return new Promise(function(t){var e=function t(e){n.closePopup({isDismissed:true,dismiss:e})};jn.swalPromiseResolve.set(n,t);o.confirmButton.onclick=function(){return To(n,a)};o.denyButton.onclick=function(){return _o(n,a)};o.cancelButton.onclick=function(){return qo(n,e)};o.closeButton.onclick=function(){return e(f.close)};Wo(n,o,e);Io(n,q,a,e);vo(n,a);mo(a);aa(q,a,e);ia(o,a);setTimeout(function(){o.container.scrollTop=0})})},oa=function t(e){var n={popup:h(),container:w(),content:g(),actions:gt(),confirmButton:b(),denyButton:y(),cancelButton:v(),loader:ht(),closeButton:kt(),validationMessage:mt(),progressSteps:pt()};T.domCache.set(e,n);return n},aa=function t(e,n,o){var a=vt();O(a);if(n.timer){e.timeout=new Jn(function(){o("timer");delete e.timeout},n.timer);if(n.timerProgressBar){P(a);setTimeout(function(){if(e.timeout&&e.timeout.running)$t(n.timer)})}}},ia=function t(e,n){if(n.toast)return;if(!et(n.allowEnterKey))return sa();if(!ra(e,n))$o(n,-1,1)},ra=function t(e,n){if(n.focusDeny&&E(e.denyButton)){e.denyButton.focus();return true}if(n.focusCancel&&E(e.cancelButton)){e.cancelButton.focus();return true}if(n.focusConfirm&&E(e.confirmButton)){e.confirmButton.focus();return true}return false},sa=function t(){if(document.activeElement&&typeof document.activeElement.blur==="function")document.activeElement.blur()};function la(e){var t=h();var n=T.innerParams.get(this);if(!t||Ot(t,n.hideClass.popup))return c("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){if(z.isUpdatableParameter(t))o[t]=e[t];else c('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 a=r({},n,o);Ie(this,a);T.innerParams.set(this,a);Object.defineProperties(this,{params:{value:r({},this.params,e),writable:false,enumerable:true}})}function ca(){var t=T.domCache.get(this);var e=T.innerParams.get(this);if(!e)return;if(t.popup&&q.swalCloseEventFinishedCallback){q.swalCloseEventFinishedCallback();delete q.swalCloseEventFinishedCallback}if(q.deferDisposalTimer){clearTimeout(q.deferDisposalTimer);delete q.deferDisposalTimer}ua(e);da(this)}var ua=function t(e){if(typeof e.didDestroy==="function")e.didDestroy();else if(typeof e.onDestroy==="function")e.onDestroy()},da=function t(e){delete e.params;delete q.keydownHandler;delete q.keydownTarget;fa(T);fa(jn)},fa=function t(e){for(var n in e)e[n]=new WeakMap},pa=Object.freeze({hideLoading:gn,disableLoading:gn,getInput:bn,close:Mn,closePopup:Mn,closeModal:Mn,closeToast:Mn,enableButtons:Fn,disableButtons:Yn,enableInput:Zn,disableInput:Wn,showValidationMessage:Kn,resetValidationMessage:Xn,getProgressSteps:Qn,_main:ta,update:la,_destroy:ca}),ma,t=function(){function i(){D(this,i);if(typeof window==="undefined")return;if(typeof Promise==="undefined")u("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)");ma=this;for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var o=Object.freeze(this.constructor.argsToParams(e));Object.defineProperties(this,{params:{value:o,writable:false,enumerable:true,configurable:true}});var a=this._main(this.params);T.promise.set(this,a)}I(i,[{key:"then",value:function t(e){var n=T.promise.get(this);return n.then(e)}},{key:"finally",value:function t(e){var n=T.promise.get(this);return n["finally"](e)}}]);return i}(),z=(r(t.prototype,pa),r(t,hn),Object.keys(pa).forEach(function(e){t[e]=function(){if(ma){var t;return(t=ma)[e].apply(t,arguments)}}}),t.DismissReason=f,t.version="10.16.9",t);return z["default"]=z}(),void 0!==this&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2),"undefined"!=typeof document){var e=document,t='.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}',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}}},669:t=>{"use strict";t.exports=jQuery}},o={};function s(t){var e=o[t];if(void 0!==e)return e.exports;e=o[t]={exports:{}};return n[t].call(e.exports,e,e.exports,s),e.exports}s.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return s.d(e,{a:e}),e},s.d=(t,e)=>{for(var n in e)s.o(e,n)&&!s.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},s.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{"use strict";var n,o,a,t,e,i=s(325),r=s.n(i),i=s(669);n=i,o=window,document,a=soliloquy_admin,o.soliloquy_notifications=t={init:function(){var t=this;t.$drawer=n("#soliloquy-notifications-drawer"),t.find_elements(),t.init_open(),t.init_close(),t.init_dismiss(),t.init_view_switch(),t.update_count(t.active_count)},should_init:function(){return 0<this.$drawer.length},find_elements:function(){var t=this;t.$open_button=n("#soliloquy-notifications-button"),t.$count=t.$drawer.find("#soliloquy-notifications-count"),t.$dismissed_count=t.$drawer.find("#soliloquy-notifications-dismissed-count"),t.active_count=t.$open_button.data("count")?t.$open_button.data("count"):0,t.dismissed_count=t.$open_button.data("dismissed"),t.$body=n("body"),t.$dismissed_button=n("#soliloquy-notifications-show-dismissed"),t.$active_button=n("#soliloquy-notifications-show-active"),t.$active_list=n(".soliloquy-notifications-list .soliloquy-notifications-active"),t.$dismissed_list=n(".soliloquy-notifications-list .soliloquy-notifications-dismissed"),t.$dismiss_all=n("#soliloquy-dismiss-all")},update_count:function(t){var e=this;e.$open_button.data("count",t).attr("data-count",t),0===t&&e.$open_button.removeAttr("data-count"),e.$count.text(t),e.dismissed_count+=Math.abs(t-e.active_count),e.active_count=t,e.$dismissed_count.text(e.dismissed_count),0===e.active_count&&e.$dismiss_all.hide()},init_open:function(){var e=this;e.$open_button.on("click",function(t){t.preventDefault(),e.$body.addClass("soliloquy-notifications-open")})},init_close:function(){var e=this;e.$body.on("click",".soliloquy-notifications-close, .soliloquy-notifications-overlay",function(t){t.preventDefault(),e.$body.removeClass("soliloquy-notifications-open")})},init_dismiss:function(){var e=this;e.$drawer.on("click",".soliloquy-notification-dismiss",function(t){t.preventDefault();t=n(this).data("id");if(e.dismiss_notification(t),"all"===t)return e.move_to_dismissed(e.$active_list.find("li")),void e.update_count(0);e.move_to_dismissed(n(this).closest("li")),e.update_count(e.active_count-1)})},move_to_dismissed:function(t){var e=this;t.slideUp(function(){n(this).prependTo(e.$dismissed_list).show()})},dismiss_notification:function(t){return n.post(ajaxurl,{action:"soliloquy_notification_dismiss",nonce:a.dismiss_notification_nonce,id:t})},init_view_switch:function(){var e=this;e.$dismissed_button.on("click",function(t){t.preventDefault(),e.$drawer.addClass("show-dismissed")}),e.$active_button.on("click",function(t){t.preventDefault(),e.$drawer.removeClass("show-dismissed")})}},o.soliloquy_connect=e={init:function(){n(this.ready())},ready:function(){this.connectClicked()},connectClicked:function(){var e=this;n("#soliloquy-settings-connect-btn").on("click",function(t){t.preventDefault(),e.gotoUpgradeUrl()})},gotoUpgradeUrl:function(){var e=this,t={action:"soliloquy_connect",key:n("#soliloquy-settings-key").val(),_wpnonce:a.connect_nonce};n.post(ajaxurl,t).done(function(t){if(t.success)return t.data.reload?void e.proAlreadyInstalled(t):void(o.location.href=t.data.url);r().fire({title:a.oops,html:t.data.message,icon:"warning",confirmButtonColor:"#3085d6",confirmButtonText:a.ok,customClass:{confirmButton:"soliloquy-button"}})}).fail(function(t){e.failAlert(t)})},proAlreadyInstalled:function(t){r().fire({title:a.almost_done,text:t.data.message,icon:"success",confirmButtonColor:"#3085d6",confirmButtonText:a.plugin_activate_btn,customClass:{confirmButton:"soliloquy-button"}}).then(function(t){t.isConfirmed&&o.location.reload()})},failAlert:function(){r().fire({title:a.oops,html:a.server_error+"<br>"+xhr.status+" "+xhr.statusText+" "+xhr.responseText,icon:"warning",confirmButtonColor:"#3085d6",confirmButtonText:a.ok,customClass:{confirmButton:"envira-button"}})}},n(function(){e.init(),t.init(),n("#screen-meta-links").prependTo("#soliloquy-header-temp"),n("#screen-meta").prependTo("#soliloquy-header-temp")})})()})(); \ No newline at end of file +(()=>{var n={325:function(t){if(t.exports=function(){"use strict";function i(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol")i=function(t){return typeof t};else i=function(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};return i(t)}function D(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function M(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||false;o.configurable=true;if("value"in o)o.writable=true;Object.defineProperty(t,o.key,o)}}function I(t,e,n){if(e)M(t.prototype,e);if(n)M(t,n);return t}function r(){r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)if(Object.prototype.hasOwnProperty.call(n,o))t[o]=n[o]}return t};return r.apply(this,arguments)}function $(t,e){if(typeof e!=="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)H(t,e)}function s(t){s=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return s(t)}function H(t,e){H=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return H(t,e)}function V(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true}catch(t){return false}}function N(t,e,n){if(V())N=Reflect.construct;else N=function t(e,n,o){var a=[null];a.push.apply(a,n);var i=Function.bind.apply(e,a);var r=new i;if(o)H(r,o.prototype);return r};return N.apply(null,arguments)}function R(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function U(t,e){if(e&&(typeof e==="object"||typeof e==="function"))return e;return R(t)}function F(a){var i=V();return function t(){var e=s(a),n;if(i){var o=s(this).constructor;n=Reflect.construct(e,arguments,o)}else n=e.apply(this,arguments);return U(this,n)}}function Y(t,e){while(!Object.prototype.hasOwnProperty.call(t,e)){t=s(t);if(t===null)break}return t}function Z(t,e,n){if(typeof Reflect!=="undefined"&&Reflect.get)Z=Reflect.get;else Z=function t(e,n,o){var a=Y(e,n);if(!a)return;var i=Object.getOwnPropertyDescriptor(a,n);if(i.get)return i.get.call(o);return i.value};return Z(t,e,n||t)}var W="SweetAlert2:",K=function t(e){var n=[];for(var o=0;o<e.length;o++)if(n.indexOf(e[o])===-1)n.push(e[o]);return n},X=function t(e){return e.charAt(0).toUpperCase()+e.slice(1)},Q=function t(e){return Object.keys(e).map(function(t){return e[t]})},l=function t(e){return Array.prototype.slice.call(e)},c=function t(e){console.warn("".concat(W," ").concat(i(e)==="object"?e.join(" "):e))},u=function t(e){console.error("".concat(W," ").concat(e))},J=[],G=function t(e){if(!(J.indexOf(e)!==-1)){J.push(e);c(e)}},tt=function t(e,n){G('"'.concat(e,'" is deprecated and will be removed in the next major release. Please use "').concat(n,'" instead.'))},et=function t(e){return typeof e==="function"?e():e},nt=function t(e){return e&&typeof e.toPromise==="function"},d=function t(e){return nt(e)?e.toPromise():Promise.resolve(e)},ot=function t(e){return e&&Promise.resolve(e)===e},f=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),at=function t(e){return i(e)==="object"&&e.jquery},it=function t(e){return e instanceof Element||at(e)},rt=function t(o){var a={};if(i(o[0])==="object"&&!it(o[0]))r(a,o[0]);else["title","html","icon"].forEach(function(t,e){var n=o[e];if(typeof n==="string"||it(n))a[t]=n;else if(n!==undefined)u("Unexpected type of ".concat(t,'! Expected "string" or "Element", got ').concat(i(n)))});return a},st="swal2-",lt=function t(e){var n={};for(var o in e)n[e[o]]=st+e[o];return n},p=lt(["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"]),m=lt(["success","warning","info","question","error"]),w=function t(){return document.body.querySelector(".".concat(p.container))},n=function t(e){var n=w();return n?n.querySelector(e):null},e=function t(e){return n(".".concat(e))},h=function t(){return e(p.popup)},ct=function t(){return e(p.icon)},ut=function t(){return e(p.title)},g=function t(){return e(p.content)},dt=function t(){return e(p["html-container"])},ft=function t(){return e(p.image)},pt=function t(){return e(p["progress-steps"])},mt=function t(){return e(p["validation-message"])},b=function t(){return n(".".concat(p.actions," .").concat(p.confirm))},y=function t(){return n(".".concat(p.actions," .").concat(p.deny))},wt=function t(){return e(p["input-label"])},ht=function t(){return n(".".concat(p.loader))},v=function t(){return n(".".concat(p.actions," .").concat(p.cancel))},gt=function t(){return e(p.actions)},bt=function t(){return e(p.header)},yt=function t(){return e(p.footer)},vt=function t(){return e(p["timer-progress-bar"])},kt=function t(){return e(p.close)},xt='\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',Ct=function t(){var e=l(h().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort(function(t,e){t=parseInt(t.getAttribute("tabindex"));e=parseInt(e.getAttribute("tabindex"));if(t>e)return 1;else if(t<e)return-1;return 0});var n=l(h().querySelectorAll(xt)).filter(function(t){return t.getAttribute("tabindex")!=="-1"});return K(e.concat(n)).filter(function(t){return E(t)})},At=function t(){return!Bt()&&!document.body.classList.contains(p["no-backdrop"])},Bt=function t(){return document.body.classList.contains(p["toast-shown"])},Pt=function t(){return h().hasAttribute("data-loading")},o={previousBodyPadding:null},k=function t(e,n){e.textContent="";if(n){var o=new DOMParser;var a=o.parseFromString(n,"text/html");l(a.querySelector("head").childNodes).forEach(function(t){e.appendChild(t)});l(a.querySelector("body").childNodes).forEach(function(t){e.appendChild(t)})}},Ot=function t(e,n){if(!n)return false;var o=n.split(/\s+/);for(var a=0;a<o.length;a++)if(!e.classList.contains(o[a]))return false;return true},Et=function t(e,n){l(e.classList).forEach(function(t){if(!(Q(p).indexOf(t)!==-1)&&!(Q(m).indexOf(t)!==-1)&&!(Q(n.showClass).indexOf(t)!==-1))e.classList.remove(t)})},x=function t(e,n,o){Et(e,n);if(n.customClass&&n.customClass[o]){if(typeof n.customClass[o]!=="string"&&!n.customClass[o].forEach)return c("Invalid type of customClass.".concat(o,'! Expected string or iterable object, got "').concat(i(n.customClass[o]),'"'));C(e,n.customClass[o])}};function St(t,e){if(!e)return null;switch(e){case"select":case"textarea":case"file":return B(t,p[e]);case"checkbox":return t.querySelector(".".concat(p.checkbox," input"));case"radio":return t.querySelector(".".concat(p.radio," input:checked"))||t.querySelector(".".concat(p.radio," input:first-child"));case"range":return t.querySelector(".".concat(p.range," input"));default:return B(t,p.input)}}var Tt=function t(e){e.focus();if(e.type!=="file"){var n=e.value;e.value="";e.value=n}},_t=function t(n,e,o){if(!n||!e)return;if(typeof e==="string")e=e.split(/\s+/).filter(Boolean);e.forEach(function(e){if(n.forEach)n.forEach(function(t){o?t.classList.add(e):t.classList.remove(e)});else o?n.classList.add(e):n.classList.remove(e)})},C=function t(e,n){_t(e,n,true)},A=function t(e,n){_t(e,n,false)},B=function t(e,n){for(var o=0;o<e.childNodes.length;o++)if(Ot(e.childNodes[o],n))return e.childNodes[o]},qt=function t(e,n,o){if(o==="".concat(parseInt(o)))o=parseInt(o);if(o||parseInt(o)===0)e.style[n]=typeof o==="number"?"".concat(o,"px"):o;else e.style.removeProperty(n)},P=function t(e){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"flex";e.style.display=n},O=function t(e){e.style.display="none"},Lt=function t(e,n,o,a){var i=e.querySelector(n);if(i)i.style[o]=a},jt=function t(e,n,o){n?P(e,o):O(e)},E=function t(e){return!!(e&&(e.offsetWidth||e.offsetHeight||e.getClientRects().length))},zt=function t(){return!E(b())&&!E(y())&&!E(v())},Dt=function t(e){return!!(e.scrollHeight>e.clientHeight)},Mt=function t(e){var n=window.getComputedStyle(e);var o=parseFloat(n.getPropertyValue("animation-duration")||"0");var a=parseFloat(n.getPropertyValue("transition-duration")||"0");return o>0||a>0},It=function t(e,n){if(typeof e.contains==="function")return e.contains(n)},$t=function t(e){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;var o=vt();if(E(o)){if(n){o.style.transition="none";o.style.width="100%"}setTimeout(function(){o.style.transition="width ".concat(e/1e3,"s linear");o.style.width="0%"},10)}},Ht=function t(){var e=vt();var n=parseInt(window.getComputedStyle(e).width);e.style.removeProperty("transition");e.style.width="100%";var o=parseInt(window.getComputedStyle(e).width);var a=parseInt(n/o*100);e.style.removeProperty("transition");e.style.width="".concat(a,"%")},Vt=function t(){return typeof window==="undefined"||typeof document==="undefined"},Nt='\n <div aria-labelledby="'.concat(p.title,'" aria-describedby="').concat(p.content,'" class="').concat(p.popup,'" tabindex="-1">\n <div class="').concat(p.header,'">\n <ul class="').concat(p["progress-steps"],'"></ul>\n <div class="').concat(p.icon,'"></div>\n <img class="').concat(p.image,'" />\n <h2 class="').concat(p.title,'" id="').concat(p.title,'"></h2>\n <button type="button" class="').concat(p.close,'"></button>\n </div>\n <div class="').concat(p.content,'">\n <div id="').concat(p.content,'" class="').concat(p["html-container"],'"></div>\n <input class="').concat(p.input,'" />\n <input type="file" class="').concat(p.file,'" />\n <div class="').concat(p.range,'">\n <input type="range" />\n <output></output>\n </div>\n <select class="').concat(p.select,'"></select>\n <div class="').concat(p.radio,'"></div>\n <label for="').concat(p.checkbox,'" class="').concat(p.checkbox,'">\n <input type="checkbox" />\n <span class="').concat(p.label,'"></span>\n </label>\n <textarea class="').concat(p.textarea,'"></textarea>\n <div class="').concat(p["validation-message"],'" id="').concat(p["validation-message"],'"></div>\n </div>\n <div class="').concat(p.actions,'">\n <div class="').concat(p.loader,'"></div>\n <button type="button" class="').concat(p.confirm,'"></button>\n <button type="button" class="').concat(p.deny,'"></button>\n <button type="button" class="').concat(p.cancel,'"></button>\n </div>\n <div class="').concat(p.footer,'"></div>\n <div class="').concat(p["timer-progress-bar-container"],'">\n <div class="').concat(p["timer-progress-bar"],'"></div>\n </div>\n </div>\n').replace(/(^|\n)\s*/g,""),Rt=function t(){var e=w();if(!e)return false;e.parentNode.removeChild(e);A([document.documentElement,document.body],[p["no-backdrop"],p["toast-shown"],p["has-column"]]);return true},Ut,S=function t(e){if(z.isVisible()&&Ut!==e.target.value)z.resetValidationMessage();Ut=e.target.value},Ft=function t(){var e=g();var n=B(e,p.input);var o=B(e,p.file);var a=e.querySelector(".".concat(p.range," input"));var i=e.querySelector(".".concat(p.range," output"));var r=B(e,p.select);var s=e.querySelector(".".concat(p.checkbox," input"));var l=B(e,p.textarea);n.oninput=S;o.onchange=S;r.onchange=S;s.onchange=S;l.oninput=S;a.oninput=function(t){S(t);i.value=a.value};a.onchange=function(t){S(t);a.nextSibling.value=a.value}},Yt=function t(e){return typeof e==="string"?document.querySelector(e):e},Zt=function t(e){var n=h();n.setAttribute("role",e.toast?"alert":"dialog");n.setAttribute("aria-live",e.toast?"polite":"assertive");if(!e.toast)n.setAttribute("aria-modal","true")},Wt=function t(e){if(window.getComputedStyle(e).direction==="rtl")C(w(),p.rtl)},Kt=function t(e){var n=Rt();if(Vt()){u("SweetAlert2 requires document to initialize");return}var o=document.createElement("div");o.className=p.container;if(n)C(o,p["no-transition"]);k(o,Nt);var a=Yt(e.target);a.appendChild(o);Zt(e);Wt(a);Ft()},Xt=function t(e,n){if(e instanceof HTMLElement)n.appendChild(e);else if(i(e)==="object")Qt(e,n);else if(e)k(n,e)},Qt=function t(e,n){if(e.jquery)Jt(n,e);else k(n,e.toString())},Jt=function t(e,n){e.textContent="";if(0 in n)for(var o=0;o in n;o++)e.appendChild(n[o].cloneNode(true));else e.appendChild(n.cloneNode(true))},Gt=function(){if(Vt())return false;var t=document.createElement("div");var e={WebkitAnimation:"webkitAnimationEnd",OAnimation:"oAnimationEnd oanimationend",animation:"animationend"};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&typeof t.style[n]!=="undefined")return e[n];return false}(),te=function t(){var e=document.createElement("div");e.className=p["scrollbar-measure"];document.body.appendChild(e);var n=e.getBoundingClientRect().width-e.clientWidth;document.body.removeChild(e);return n},ee=function t(e,n){var o=gt();var a=ht();var i=b();var r=y();var s=v();if(!n.showConfirmButton&&!n.showDenyButton&&!n.showCancelButton)O(o);x(o,n,"actions");oe(i,"confirm",n);oe(r,"deny",n);oe(s,"cancel",n);ne(i,r,s,n);if(n.reverseButtons){o.insertBefore(s,a);o.insertBefore(r,a);o.insertBefore(i,a)}k(a,n.loaderHtml);x(a,n,"loader")};function ne(t,e,n,o){if(!o.buttonsStyling)return A([t,e,n],p.styled);C([t,e,n],p.styled);if(o.confirmButtonColor)t.style.backgroundColor=o.confirmButtonColor;if(o.denyButtonColor)e.style.backgroundColor=o.denyButtonColor;if(o.cancelButtonColor)n.style.backgroundColor=o.cancelButtonColor}function oe(t,e,n){jt(t,n["show".concat(X(e),"Button")],"inline-block");k(t,n["".concat(e,"ButtonText")]);t.setAttribute("aria-label",n["".concat(e,"ButtonAriaLabel")]);t.className=p[e];x(t,n,"".concat(e,"Button"));C(t,n["".concat(e,"ButtonClass")])}function ae(t,e){if(typeof e==="string")t.style.background=e;else if(!e)C([document.documentElement,document.body],p["no-backdrop"])}function ie(t,e){if(e in p)C(t,p[e]);else{c('The "position" parameter is not valid, defaulting to "center"');C(t,p.center)}}function re(t,e){if(e&&typeof e==="string"){var n="grow-".concat(e);if(n in p)C(t,p[n])}}var se=function t(e,n){var o=w();if(!o)return;ae(o,n.backdrop);if(!n.backdrop&&n.allowOutsideClick)c('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');ie(o,n.position);re(o,n.grow);x(o,n,"container");var a=document.body.getAttribute("data-swal2-queue-step");if(a){o.setAttribute("data-queue-step",a);document.body.removeAttribute("data-swal2-queue-step")}},T={promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap},le=["input","file","range","select","radio","checkbox","textarea"],ce=function t(e,o){var a=g();var n=T.innerParams.get(e);var i=!n||o.input!==n.input;le.forEach(function(t){var e=p[t];var n=B(a,e);fe(t,o.inputAttributes);n.className=e;if(i)O(n)});if(o.input){if(i)ue(o);pe(o)}},ue=function t(e){if(!a[e.input])return u('Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "'.concat(e.input,'"'));var n=he(e.input);var o=a[e.input](n,e);P(o);setTimeout(function(){Tt(o)})},de=function t(e){for(var n=0;n<e.attributes.length;n++){var o=e.attributes[n].name;if(!(["type","value","style"].indexOf(o)!==-1))e.removeAttribute(o)}},fe=function t(e,n){var o=St(g(),e);if(!o)return;de(o);for(var a in n){if(e==="range"&&a==="placeholder")continue;o.setAttribute(a,n[a])}},pe=function t(e){var n=he(e.input);if(e.customClass)C(n,e.customClass.input)},me=function t(e,n){if(!e.placeholder||n.inputPlaceholder)e.placeholder=n.inputPlaceholder},we=function t(e,n,o){if(o.inputLabel){e.id=p.input;var a=document.createElement("label");var i=p["input-label"];a.setAttribute("for",e.id);a.className=i;C(a,o.customClass.inputLabel);a.innerText=o.inputLabel;n.insertAdjacentElement("beforebegin",a)}},he=function t(e){var n=p[e]?p[e]:p.input;return B(g(),n)},a={},ge=(a.text=a.email=a.password=a.number=a.tel=a.url=function(t,e){if(typeof e.inputValue==="string"||typeof e.inputValue==="number")t.value=e.inputValue;else if(!ot(e.inputValue))c('Unexpected type of inputValue! Expected "string", "number" or "Promise", got "'.concat(i(e.inputValue),'"'));we(t,t,e);me(t,e);t.type=e.input;return t},a.file=function(t,e){we(t,t,e);me(t,e);return t},a.range=function(t,e){var n=t.querySelector("input");var o=t.querySelector("output");n.value=e.inputValue;n.type=e.input;o.value=e.inputValue;we(n,t,e);return t},a.select=function(t,e){t.textContent="";if(e.inputPlaceholder){var n=document.createElement("option");k(n,e.inputPlaceholder);n.value="";n.disabled=true;n.selected=true;t.appendChild(n)}we(t,t,e);return t},a.radio=function(t){t.textContent="";return t},a.checkbox=function(t,e){var n=St(g(),"checkbox");n.value=1;n.id=p.checkbox;n.checked=Boolean(e.inputValue);var o=t.querySelector("span");k(o,e.inputPlaceholder);return t},a.textarea=function(n,t){n.value=t.inputValue;me(n,t);we(n,n,t);var o=function t(e){return parseInt(window.getComputedStyle(e).paddingLeft)+parseInt(window.getComputedStyle(e).paddingRight)};if("MutationObserver"in window){var a=parseInt(window.getComputedStyle(h()).width);var e=function t(){var e=n.offsetWidth+o(h())+o(g());if(e>a)h().style.width="".concat(e,"px");else h().style.width=null};new MutationObserver(e).observe(n,{attributes:true,attributeFilter:["style"]})}return n},function t(e,n){var o=dt();x(o,n,"htmlContainer");if(n.html){Xt(n.html,o);P(o,"block")}else if(n.text){o.textContent=n.text;P(o,"block")}else O(o);ce(e,n);x(g(),n,"content")}),be=function t(e,n){var o=yt();jt(o,n.footer);if(n.footer)Xt(n.footer,o);x(o,n,"footer")},ye=function t(e,n){var o=kt();k(o,n.closeButtonHtml);x(o,n,"closeButton");jt(o,n.showCloseButton);o.setAttribute("aria-label",n.closeButtonAriaLabel)},ve=function t(e,n){var o=T.innerParams.get(e);var a=ct();if(o&&n.icon===o.icon){Ce(a,n);ke(a,n);return}if(!n.icon&&!n.iconHtml)return O(a);if(n.icon&&Object.keys(m).indexOf(n.icon)===-1){u('Unknown icon! Expected "success", "error", "warning", "info" or "question", got "'.concat(n.icon,'"'));return O(a)}P(a);Ce(a,n);ke(a,n);C(a,n.showClass.icon)},ke=function t(e,n){for(var o in m)if(n.icon!==o)A(e,m[o]);C(e,m[n.icon]);Ae(e,n);xe();x(e,n,"icon")},xe=function t(){var e=h();var n=window.getComputedStyle(e).getPropertyValue("background-color");var o=e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(var a=0;a<o.length;a++)o[a].style.backgroundColor=n},Ce=function t(e,n){e.textContent="";if(n.iconHtml)k(e,Be(n.iconHtml));else if(n.icon==="success")k(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 ');else if(n.icon==="error")k(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 ');else{var o={question:"?",warning:"!",info:"i"};k(e,Be(o[n.icon]))}},Ae=function t(e,n){if(!n.iconColor)return;e.style.color=n.iconColor;e.style.borderColor=n.iconColor;for(var o=0,a=[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"];o<a.length;o++){var i=a[o];Lt(e,i,"backgroundColor",n.iconColor)}Lt(e,".swal2-success-ring","borderColor",n.iconColor)},Be=function t(e){return'<div class="'.concat(p["icon-content"],'">').concat(e,"</div>")},Pe=function t(e,n){var o=ft();if(!n.imageUrl)return O(o);P(o,"");o.setAttribute("src",n.imageUrl);o.setAttribute("alt",n.imageAlt);qt(o,"width",n.imageWidth);qt(o,"height",n.imageHeight);o.className=p.image;x(o,n,"image")},_=[],Oe,Ee=function t(){return w()&&w().getAttribute("data-queue-step")},Se,Te,_e=function t(e){var n=document.createElement("li");C(n,p["progress-step"]);k(n,e);return n},qe=function t(e){var n=document.createElement("li");C(n,p["progress-step-line"]);if(e.progressStepsDistance)n.style.width=e.progressStepsDistance;return n},Le=function t(e,a){var i=pt();if(!a.progressSteps||a.progressSteps.length===0)return O(i);P(i);i.textContent="";var r=parseInt(a.currentProgressStep===undefined?Ee():a.currentProgressStep);if(r>=a.progressSteps.length)c("Invalid currentProgressStep parameter, it should be less than progressSteps.length "+"(currentProgressStep like JS arrays starts from 0)");a.progressSteps.forEach(function(t,e){var n=_e(t);i.appendChild(n);if(e===r)C(n,p["active-progress-step"]);if(e!==a.progressSteps.length-1){var o=qe(a);i.appendChild(o)}})},je=function t(e,n){var o=ut();jt(o,n.title||n.titleText,"block");if(n.title)Xt(n.title,o);if(n.titleText)o.innerText=n.titleText;x(o,n,"title")},ze=function t(e,n){var o=bt();x(o,n,"header");Le(e,n);ve(e,n);Pe(e,n);je(e,n);ye(e,n)},De=function t(e,n){var o=w();var a=h();if(n.toast){qt(o,"width",n.width);a.style.width="100%"}else qt(a,"width",n.width);qt(a,"padding",n.padding);if(n.background)a.style.background=n.background;O(mt());Me(a,n)},Me=function t(e,n){e.className="".concat(p.popup," ").concat(E(e)?n.showClass.popup:"");if(n.toast){C([document.documentElement,document.body],p["toast-shown"]);C(e,p.toast)}else C(e,p.modal);x(e,n,"popup");if(typeof n.customClass==="string")C(e,n.customClass);if(n.icon)C(e,p["icon-".concat(n.icon)])},Ie=function t(e,n){De(e,n);se(e,n);ze(e,n);ge(e,n);ee(e,n);be(e,n);if(typeof n.didRender==="function")n.didRender(h());else if(typeof n.onRender==="function")n.onRender(h())},$e,He=function t(){return b()&&b().click()},Ve,Ne;function Re(){var t=this;for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return N(t,n)}function Ue(a){var t=function(t){$(o,t);var e=F(o);function o(){D(this,o);return e.apply(this,arguments)}I(o,[{key:"_main",value:function t(e,n){return Z(s(o.prototype),"_main",this).call(this,e,r({},a,n))}}]);return o}(this);return t}var Fe=function t(e){var n=h();if(!n)z.fire();n=h();var o=gt();var a=ht();if(!e&&E(b()))e=b();P(o);if(e){O(e);a.setAttribute("data-button-to-replace",e.className)}a.parentNode.insertBefore(a,e);C([n,o],p.loading);P(a);n.setAttribute("data-loading",true);n.setAttribute("aria-busy",true);n.focus()},Ye=100,q={},Ze=function t(){if(q.previousActiveElement&&q.previousActiveElement.focus){q.previousActiveElement.focus();q.previousActiveElement=null}else if(document.body)document.body.focus()},We=function t(o){return new Promise(function(t){if(!o)return t();var e=window.scrollX;var n=window.scrollY;q.restoreFocusTimeout=setTimeout(function(){Ze();t()},Ye);if(typeof e!=="undefined"&&typeof n!=="undefined")window.scrollTo(e,n)})},Ke,Xe=function t(){if(q.timeout){Ht();return q.timeout.stop()}},Qe=function t(){if(q.timeout){var e=q.timeout.start();$t(e);return e}},Je,Ge,tn,en=false,nn={};function on(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"data-swal-template";nn[t]=this;if(!en){document.body.addEventListener("click",an);en=true}}var an=function t(e){for(var n=e.target;n&&n!==document;n=n.parentNode)for(var o in nn){var a=n.getAttribute(o);if(a){nn[o].fire({template:a});return}}},L={title:"",titleText:"",text:"",html:"",footer:"",icon:undefined,iconColor:undefined,iconHtml:undefined,template:undefined,toast:false,animation:true,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:true,heightAuto:true,allowOutsideClick:true,allowEscapeKey:true,allowEnterKey:true,stopKeydownPropagation:true,keydownListenerCapture:false,showConfirmButton:true,showDenyButton:false,showCancelButton:false,preConfirm:undefined,preDeny:undefined,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:undefined,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:undefined,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:undefined,buttonsStyling:true,reverseButtons:false,focusConfirm:true,focusDeny:false,focusCancel:false,returnFocus:true,showCloseButton:false,closeButtonHtml:"×",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:false,showLoaderOnDeny:false,imageUrl:undefined,imageWidth:undefined,imageHeight:undefined,imageAlt:"",timer:undefined,timerProgressBar:false,width:undefined,padding:undefined,background:undefined,input:undefined,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoTrim:true,inputAttributes:{},inputValidator:undefined,returnInputValueOnDeny:false,validationMessage:undefined,grow:false,position:"center",progressSteps:[],currentProgressStep:undefined,progressStepsDistance:undefined,onBeforeOpen:undefined,onOpen:undefined,willOpen:undefined,didOpen:undefined,onRender:undefined,didRender:undefined,onClose:undefined,onAfterClose:undefined,willClose:undefined,didClose:undefined,onDestroy:undefined,didDestroy:undefined,scrollbarPadding:true},rn=["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"],sn={animation:'showClass" and "hideClass',onBeforeOpen:"willOpen",onOpen:"didOpen",onRender:"didRender",onClose:"willClose",onAfterClose:"didClose",onDestroy:"didDestroy"},ln=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],cn=function t(e){return Object.prototype.hasOwnProperty.call(L,e)},un,dn=function t(e){return sn[e]},fn=function t(e){if(!cn(e))c('Unknown parameter "'.concat(e,'"'))},pn=function t(e){if(ln.indexOf(e)!==-1)c('The parameter "'.concat(e,'" is incompatible with toasts'))},mn=function t(e){if(dn(e))tt(e,dn(e))},wn=function t(e){for(var n in e){fn(n);if(e.toast)pn(n);mn(n)}},hn=Object.freeze({isValidParameter:cn,isUpdatableParameter:function t(e){return rn.indexOf(e)!==-1},isDeprecatedParameter:dn,argsToParams:rt,isVisible:function t(){return E(h())},clickConfirm:He,clickDeny:function t(){return y()&&y().click()},clickCancel:function t(){return v()&&v().click()},getContainer:w,getPopup:h,getTitle:ut,getContent:g,getHtmlContainer:dt,getImage:ft,getIcon:ct,getInputLabel:wt,getCloseButton:kt,getActions:gt,getConfirmButton:b,getDenyButton:y,getCancelButton:v,getLoader:ht,getHeader:bt,getFooter:yt,getTimerProgressBar:vt,getFocusableElements:Ct,getValidationMessage:mt,isLoading:Pt,fire:Re,mixin:Ue,queue:function t(e){tt("Swal.queue()","async/await");var i=this;_=e;var r=function t(e,n){_=[];e(n)};var s=[];return new Promise(function(a){(function e(n,o){if(n<_.length){document.body.setAttribute("data-swal2-queue-step",n);i.fire(_[n]).then(function(t){if(typeof t.value!=="undefined"){s.push(t.value);e(n+1,o)}else r(a,{dismiss:t.dismiss})})}else r(a,{value:s})})(0)})},getQueueStep:Ee,insertQueueStep:function t(e,n){if(n&&n<_.length)return _.splice(n,0,e);return _.push(e)},deleteQueueStep:function t(e){if(typeof _[e]!=="undefined")_.splice(e,1)},showLoading:Fe,enableLoading:Fe,getTimerLeft:function t(){return q.timeout&&q.timeout.getTimerLeft()},stopTimer:Xe,resumeTimer:Qe,toggleTimer:function t(){var e=q.timeout;return e&&(e.running?Xe():Qe())},increaseTimer:function t(e){if(q.timeout){var n=q.timeout.increase(e);$t(n,true);return n}},isTimerRunning:function t(){return q.timeout&&q.timeout.isRunning()},bindClickHandler:on});function gn(){var t=T.innerParams.get(this);if(!t)return;var e=T.domCache.get(this);O(e.loader);var n=e.popup.getElementsByClassName(e.loader.getAttribute("data-button-to-replace"));if(n.length)P(n[0],"inline-block");else if(zt())O(e.actions);A([e.popup,e.actions],p.loading);e.popup.removeAttribute("aria-busy");e.popup.removeAttribute("data-loading");e.confirmButton.disabled=false;e.denyButton.disabled=false;e.cancelButton.disabled=false}function bn(t){var e=T.innerParams.get(t||this);var n=T.domCache.get(t||this);if(!n)return null;return St(n.content,e.input)}var yn=function t(){if(o.previousBodyPadding!==null)return;if(document.body.scrollHeight>window.innerHeight){o.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right"));document.body.style.paddingRight="".concat(o.previousBodyPadding+te(),"px")}},vn=function t(){if(o.previousBodyPadding!==null){document.body.style.paddingRight="".concat(o.previousBodyPadding,"px");o.previousBodyPadding=null}},kn=function t(){var e=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1;if(e&&!Ot(document.body,p.iosfix)){var n=document.body.scrollTop;document.body.style.top="".concat(n*-1,"px");C(document.body,p.iosfix);Cn();xn()}},xn=function t(){var e=!navigator.userAgent.match(/(CriOS|FxiOS|EdgiOS|YaBrowser|UCBrowser)/i);if(e){var n=44;if(h().scrollHeight>window.innerHeight-n)w().style.paddingBottom="".concat(n,"px")}},Cn=function t(){var e=w();var n;e.ontouchstart=function(t){n=An(t)};e.ontouchmove=function(t){if(n){t.preventDefault();t.stopPropagation()}}},An=function t(e){var n=e.target;var o=w();if(Bn(e)||Pn(e))return false;if(n===o)return true;if(!Dt(o)&&n.tagName!=="INPUT"&&!(Dt(g())&&g().contains(n)))return true;return false},Bn=function t(e){return e.touches&&e.touches.length&&e.touches[0].touchType==="stylus"},Pn=function t(e){return e.touches&&e.touches.length>1},On=function t(){if(Ot(document.body,p.iosfix)){var e=parseInt(document.body.style.top,10);A(document.body,p.iosfix);document.body.style.top="";document.body.scrollTop=e*-1}},En=function t(){return!!window.MSInputMethodContext&&!!document.documentMode},Sn=function t(){var e=w();var n=h();e.style.removeProperty("align-items");if(n.offsetTop<0)e.style.alignItems="flex-start"},Tn=function t(){if(typeof window!=="undefined"&&En()){Sn();window.addEventListener("resize",Sn)}},_n=function t(){if(typeof window!=="undefined"&&En())window.removeEventListener("resize",Sn)},qn=function t(){var e=l(document.body.children);e.forEach(function(t){if(t===w()||It(t,w()))return;if(t.hasAttribute("aria-hidden"))t.setAttribute("data-previous-aria-hidden",t.getAttribute("aria-hidden"));t.setAttribute("aria-hidden","true")})},Ln=function t(){var e=l(document.body.children);e.forEach(function(t){if(t.hasAttribute("data-previous-aria-hidden")){t.setAttribute("aria-hidden",t.getAttribute("data-previous-aria-hidden"));t.removeAttribute("data-previous-aria-hidden")}else t.removeAttribute("aria-hidden")})},jn={swalPromiseResolve:new WeakMap};function zn(t,e,n,o){if(Bt())Nn(t,o);else{We(n).then(function(){return Nn(t,o)});q.keydownTarget.removeEventListener("keydown",q.keydownHandler,{capture:q.keydownListenerCapture});q.keydownHandlerAdded=false}if(e.parentNode&&!document.body.getAttribute("data-swal2-queue-step"))e.parentNode.removeChild(e);if(At()){vn();On();_n();Ln()}Dn()}function Dn(){A([document.documentElement,document.body],[p.shown,p["height-auto"],p["no-backdrop"],p["toast-shown"]])}function Mn(t){var e=h();if(!e)return;t=In(t);var n=T.innerParams.get(this);if(!n||Ot(e,n.hideClass.popup))return;var o=jn.swalPromiseResolve.get(this);A(e,n.showClass.popup);C(e,n.hideClass.popup);var a=w();A(a,n.showClass.backdrop);C(a,n.hideClass.backdrop);$n(this,e,n);o(t)}var In=function t(e){if(typeof e==="undefined")return{isConfirmed:false,isDenied:false,isDismissed:true};return r({isConfirmed:false,isDenied:false,isDismissed:false},e)},$n=function t(e,n,o){var a=w();var i=Gt&&Mt(n);var r=o.onClose,s=o.onAfterClose,l=o.willClose,c=o.didClose;Hn(n,l,r);if(i)Vn(e,n,a,o.returnFocus,c||s);else zn(e,a,o.returnFocus,c||s)},Hn=function t(e,n,o){if(n!==null&&typeof n==="function")n(e);else if(o!==null&&typeof o==="function")o(e)},Vn=function t(e,n,o,a,i){q.swalCloseEventFinishedCallback=zn.bind(null,e,o,a,i);n.addEventListener(Gt,function(t){if(t.target===n){q.swalCloseEventFinishedCallback();delete q.swalCloseEventFinishedCallback}})},Nn=function t(e,n){setTimeout(function(){if(typeof n==="function")n();e._destroy()})};function Rn(t,e,n){var o=T.domCache.get(t);e.forEach(function(t){o[t].disabled=n})}function Un(t,e){if(!t)return false;if(t.type==="radio"){var n=t.parentNode.parentNode;var o=n.querySelectorAll("input");for(var a=0;a<o.length;a++)o[a].disabled=e}else t.disabled=e}function Fn(){Rn(this,["confirmButton","denyButton","cancelButton"],false)}function Yn(){Rn(this,["confirmButton","denyButton","cancelButton"],true)}function Zn(){return Un(this.getInput(),false)}function Wn(){return Un(this.getInput(),true)}function Kn(t){var e=T.domCache.get(this);var n=T.innerParams.get(this);k(e.validationMessage,t);e.validationMessage.className=p["validation-message"];if(n.customClass&&n.customClass.validationMessage)C(e.validationMessage,n.customClass.validationMessage);P(e.validationMessage);var o=this.getInput();if(o){o.setAttribute("aria-invalid",true);o.setAttribute("aria-describedBy",p["validation-message"]);Tt(o);C(o,p.inputerror)}}function Xn(){var t=T.domCache.get(this);if(t.validationMessage)O(t.validationMessage);var e=this.getInput();if(e){e.removeAttribute("aria-invalid");e.removeAttribute("aria-describedBy");A(e,p.inputerror)}}function Qn(){var t=T.domCache.get(this);return t.progressSteps}var Jn=function(){function n(t,e){D(this,n);this.callback=t;this.remaining=e;this.running=false;this.start()}I(n,[{key:"start",value:function t(){if(!this.running){this.running=true;this.started=new Date;this.id=setTimeout(this.callback,this.remaining)}return this.remaining}},{key:"stop",value:function t(){if(this.running){this.running=false;clearTimeout(this.id);this.remaining-=new Date-this.started}return this.remaining}},{key:"increase",value:function t(e){var n=this.running;if(n)this.stop();this.remaining+=e;if(n)this.start();return this.remaining}},{key:"getTimerLeft",value:function t(){if(this.running){this.stop();this.start()}return this.remaining}},{key:"isRunning",value:function t(){return this.running}}]);return n}(),Gn={email:function t(e,n){return/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(e)?Promise.resolve():Promise.resolve(n||"Invalid email address")},url:function t(e,n){return/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(e)?Promise.resolve():Promise.resolve(n||"Invalid URL")}};function to(e){if(!e.inputValidator)Object.keys(Gn).forEach(function(t){if(e.input===t)e.inputValidator=Gn[t]})}function eo(t){if(!t.target||typeof t.target==="string"&&!document.querySelector(t.target)||typeof t.target!=="string"&&!t.target.appendChild){c('Target parameter is not valid, defaulting to "body"');t.target="body"}}function no(t){to(t);if(t.showLoaderOnConfirm&&!t.preConfirm)c("showLoaderOnConfirm is set to true, but preConfirm is not defined.\n"+"showLoaderOnConfirm should be used together with preConfirm, see usage example:\n"+"https://sweetalert2.github.io/#ajax-request");t.animation=et(t.animation);eo(t);if(typeof t.title==="string")t.title=t.title.split("\n").join("<br />");Kt(t)}var oo=["swal-title","swal-html","swal-footer"],ao=function t(e){var n=typeof e.template==="string"?document.querySelector(e.template):e.template;if(!n)return{};var o=n.content||n;fo(o);var a=r(io(o),ro(o),so(o),lo(o),co(o),uo(o,oo));return a},io=function t(e){var o={};l(e.querySelectorAll("swal-param")).forEach(function(t){j(t,["name","value"]);var e=t.getAttribute("name");var n=t.getAttribute("value");if(typeof L[e]==="boolean"&&n==="false")n=false;if(i(L[e])==="object")n=JSON.parse(n);o[e]=n});return o},ro=function t(e){var n={};l(e.querySelectorAll("swal-button")).forEach(function(t){j(t,["type","color","aria-label"]);var e=t.getAttribute("type");n["".concat(e,"ButtonText")]=t.innerHTML;n["show".concat(X(e),"Button")]=true;if(t.hasAttribute("color"))n["".concat(e,"ButtonColor")]=t.getAttribute("color");if(t.hasAttribute("aria-label"))n["".concat(e,"ButtonAriaLabel")]=t.getAttribute("aria-label")});return n},so=function t(e){var n={};var o=e.querySelector("swal-image");if(o){j(o,["src","width","height","alt"]);if(o.hasAttribute("src"))n.imageUrl=o.getAttribute("src");if(o.hasAttribute("width"))n.imageWidth=o.getAttribute("width");if(o.hasAttribute("height"))n.imageHeight=o.getAttribute("height");if(o.hasAttribute("alt"))n.imageAlt=o.getAttribute("alt")}return n},lo=function t(e){var n={};var o=e.querySelector("swal-icon");if(o){j(o,["type","color"]);if(o.hasAttribute("type"))n.icon=o.getAttribute("type");if(o.hasAttribute("color"))n.iconColor=o.getAttribute("color");n.iconHtml=o.innerHTML}return n},co=function t(e){var o={};var n=e.querySelector("swal-input");if(n){j(n,["type","label","placeholder","value"]);o.input=n.getAttribute("type")||"text";if(n.hasAttribute("label"))o.inputLabel=n.getAttribute("label");if(n.hasAttribute("placeholder"))o.inputPlaceholder=n.getAttribute("placeholder");if(n.hasAttribute("value"))o.inputValue=n.getAttribute("value")}var a=e.querySelectorAll("swal-input-option");if(a.length){o.inputOptions={};l(a).forEach(function(t){j(t,["value"]);var e=t.getAttribute("value");var n=t.innerHTML;o.inputOptions[e]=n})}return o},uo=function t(e,n){var o={};for(var a in n){var i=n[a];var r=e.querySelector(i);if(r){j(r,[]);o[i.replace(/^swal-/,"")]=r.innerHTML.trim()}}return o},fo=function t(n){var o=oo.concat(["swal-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);l(n.querySelectorAll("*")).forEach(function(t){if(t.parentNode!==n)return;var e=t.tagName.toLowerCase();if(o.indexOf(e)===-1)c("Unrecognized element <".concat(e,">"))})},j=function t(e,n){l(e.attributes).forEach(function(t){if(n.indexOf(t.name)===-1)c(['Unrecognized attribute "'.concat(t.name,'" on <').concat(e.tagName.toLowerCase(),">."),"".concat(n.length?"Allowed attributes are: ".concat(n.join(", ")):"To set the value, use HTML within the element.")])})},po=10,mo=function t(e){var n=w();var o=h();if(typeof e.willOpen==="function")e.willOpen(o);else if(typeof e.onBeforeOpen==="function")e.onBeforeOpen(o);var a=window.getComputedStyle(document.body);var i=a.overflowY;yo(n,o,e);setTimeout(function(){go(n,o)},po);if(At()){bo(n,e.scrollbarPadding,i);qn()}if(!Bt()&&!q.previousActiveElement)q.previousActiveElement=document.activeElement;wo(o,e);A(n,p["no-transition"])},wo=function t(e,n){if(typeof n.didOpen==="function")setTimeout(function(){return n.didOpen(e)});else if(typeof n.onOpen==="function")setTimeout(function(){return n.onOpen(e)})},ho=function t(e){var n=h();if(e.target!==n)return;var o=w();n.removeEventListener(Gt,t);o.style.overflowY="auto"},go=function t(e,n){if(Gt&&Mt(n)){e.style.overflowY="hidden";n.addEventListener(Gt,ho)}else e.style.overflowY="auto"},bo=function t(e,n,o){kn();Tn();if(n&&o!=="hidden")yn();setTimeout(function(){e.scrollTop=0})},yo=function t(e,n,o){C(e,o.showClass.backdrop);n.style.setProperty("opacity","0","important");P(n);setTimeout(function(){C(n,o.showClass.popup);n.style.removeProperty("opacity")},po);C([document.documentElement,document.body],p.shown);if(o.heightAuto&&o.backdrop&&!o.toast)C([document.documentElement,document.body],p["height-auto"])},vo=function t(e,n){if(n.input==="select"||n.input==="radio")Bo(e,n);else if(["text","email","number","tel","textarea"].indexOf(n.input)!==-1&&(nt(n.inputValue)||ot(n.inputValue)))Po(e,n)},ko=function t(e,n){var o=e.getInput();if(!o)return null;switch(n.input){case"checkbox":return xo(o);case"radio":return Co(o);case"file":return Ao(o);default:return n.inputAutoTrim?o.value.trim():o.value}},xo=function t(e){return e.checked?1:0},Co=function t(e){return e.checked?e.value:null},Ao=function t(e){return e.files.length?e.getAttribute("multiple")!==null?e.files:e.files[0]:null},Bo=function t(e,n){var o=g();var a=function t(e){return Oo[n.input](o,Eo(e),n)};if(nt(n.inputOptions)||ot(n.inputOptions)){Fe(b());d(n.inputOptions).then(function(t){e.hideLoading();a(t)})}else if(i(n.inputOptions)==="object")a(n.inputOptions);else u("Unexpected type of inputOptions! Expected object, Map or Promise, got ".concat(i(n.inputOptions)))},Po=function t(e,n){var o=e.getInput();O(o);d(n.inputValue).then(function(t){o.value=n.input==="number"?parseFloat(t)||0:"".concat(t);P(o);o.focus();e.hideLoading()})["catch"](function(t){u("Error in inputValue promise: ".concat(t));o.value="";P(o);o.focus();e.hideLoading()})},Oo={select:function a(t,e,i){var a=B(t,p.select);var r=function t(e,n,o){var a=document.createElement("option");a.value=o;k(a,n);a.selected=So(o,i.inputValue);e.appendChild(a)};e.forEach(function(t){var e=t[0];var n=t[1];if(Array.isArray(n)){var o=document.createElement("optgroup");o.label=e;o.disabled=false;a.appendChild(o);n.forEach(function(t){return r(o,t[1],t[0])})}else r(a,n,e)});a.focus()},radio:function r(t,e,s){var r=B(t,p.radio);e.forEach(function(t){var e=t[0];var n=t[1];var o=document.createElement("input");var a=document.createElement("label");o.type="radio";o.name=p.radio;o.value=e;if(So(e,s.inputValue))o.checked=true;var i=document.createElement("span");k(i,n);i.className=p.label;a.appendChild(o);a.appendChild(i);r.appendChild(a)});var n=r.querySelectorAll("input");if(n.length)n[0].focus()}},Eo=function o(n){var a=[];if(typeof Map!=="undefined"&&n instanceof Map)n.forEach(function(t,e){var n=t;if(i(n)==="object")n=o(n);a.push([e,n])});else Object.keys(n).forEach(function(t){var e=n[t];if(i(e)==="object")e=o(e);a.push([t,e])});return a},So=function t(e,n){return n&&n.toString()===e.toString()},To=function t(e,n){e.disableButtons();if(n.input)Lo(e,n,"confirm");else Mo(e,n,true)},_o=function t(e,n){e.disableButtons();if(n.returnInputValueOnDeny)Lo(e,n,"deny");else zo(e,n,false)},qo=function t(e,n){e.disableButtons();n(f.cancel)},Lo=function t(e,n,o){var a=ko(e,n);if(n.inputValidator)jo(e,n,a);else if(!e.getInput().checkValidity()){e.enableButtons();e.showValidationMessage(n.validationMessage)}else if(o==="deny")zo(e,n,a);else Mo(e,n,a)},jo=function t(e,n,o){e.disableInput();var a=Promise.resolve().then(function(){return d(n.inputValidator(o,n.validationMessage))});a.then(function(t){e.enableButtons();e.enableInput();if(t)e.showValidationMessage(t);else Mo(e,n,o)})},zo=function t(e,n,o){if(n.showLoaderOnDeny)Fe(y());if(n.preDeny){var a=Promise.resolve().then(function(){return d(n.preDeny(o,n.validationMessage))});a.then(function(t){if(t===false)e.hideLoading();else e.closePopup({isDenied:true,value:typeof t==="undefined"?o:t})})}else e.closePopup({isDenied:true,value:o})},Do=function t(e,n){e.closePopup({isConfirmed:true,value:n})},Mo=function t(e,n,o){if(n.showLoaderOnConfirm)Fe();if(n.preConfirm){e.resetValidationMessage();var a=Promise.resolve().then(function(){return d(n.preConfirm(o,n.validationMessage))});a.then(function(t){if(E(mt())||t===false)e.hideLoading();else Do(e,typeof t==="undefined"?o:t)})}else Do(e,o)},Io=function t(e,n,o,a){if(n.keydownTarget&&n.keydownHandlerAdded){n.keydownTarget.removeEventListener("keydown",n.keydownHandler,{capture:n.keydownListenerCapture});n.keydownHandlerAdded=false}if(!o.toast){n.keydownHandler=function(t){return Ro(e,t,a)};n.keydownTarget=o.keydownListenerCapture?window:h();n.keydownListenerCapture=o.keydownListenerCapture;n.keydownTarget.addEventListener("keydown",n.keydownHandler,{capture:n.keydownListenerCapture});n.keydownHandlerAdded=true}},$o=function t(e,n,o){var a=Ct();if(a.length){n=n+o;if(n===a.length)n=0;else if(n===-1)n=a.length-1;return a[n].focus()}h().focus()},Ho=["ArrowRight","ArrowDown","Right","Down"],Vo=["ArrowLeft","ArrowUp","Left","Up"],No=["Escape","Esc"],Ro=function t(e,n,o){var a=T.innerParams.get(e);if(!a)return;if(a.stopKeydownPropagation)n.stopPropagation();if(n.key==="Enter")Uo(e,n,a);else if(n.key==="Tab")Fo(n,a);else if([].concat(Ho,Vo).indexOf(n.key)!==-1)Yo(n.key);else if(No.indexOf(n.key)!==-1)Zo(n,a,o)},Uo=function t(e,n,o){if(n.isComposing)return;if(n.target&&e.getInput()&&n.target.outerHTML===e.getInput().outerHTML){if(["textarea","file"].indexOf(o.input)!==-1)return;He();n.preventDefault()}},Fo=function t(e,n){var o=e.target;var a=Ct();var i=-1;for(var r=0;r<a.length;r++)if(o===a[r]){i=r;break}if(!e.shiftKey)$o(n,i,1);else $o(n,i,-1);e.stopPropagation();e.preventDefault()},Yo=function t(e){var n=b();var o=y();var a=v();if(!([n,o,a].indexOf(document.activeElement)!==-1))return;var i=Ho.indexOf(e)!==-1?"nextElementSibling":"previousElementSibling";var r=document.activeElement[i];if(r)r.focus()},Zo=function t(e,n,o){if(et(n.allowEscapeKey)){e.preventDefault();o(f.esc)}},Wo=function t(e,n,o){var a=T.innerParams.get(e);if(a.toast)Ko(e,n,o);else{Qo(n);Jo(n);Go(e,n,o)}},Ko=function t(e,n,o){n.popup.onclick=function(){var t=T.innerParams.get(e);if(t.showConfirmButton||t.showDenyButton||t.showCancelButton||t.showCloseButton||t.timer||t.input)return;o(f.close)}},Xo=false,Qo=function t(e){e.popup.onmousedown=function(){e.container.onmouseup=function(t){e.container.onmouseup=undefined;if(t.target===e.container)Xo=true}}},Jo=function t(e){e.container.onmousedown=function(){e.popup.onmouseup=function(t){e.popup.onmouseup=undefined;if(t.target===e.popup||e.popup.contains(t.target))Xo=true}}},Go=function t(n,o,a){o.container.onclick=function(t){var e=T.innerParams.get(n);if(Xo){Xo=false;return}if(t.target===o.container&&et(e.allowOutsideClick))a(f.backdrop)}};function ta(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};wn(r({},e,t));if(q.currentInstance)q.currentInstance._destroy();q.currentInstance=this;var n=ea(t,e);no(n);Object.freeze(n);if(q.timeout){q.timeout.stop();delete q.timeout}clearTimeout(q.restoreFocusTimeout);var o=oa(this);Ie(this,n);T.innerParams.set(this,n);return na(this,o,n)}var ea=function t(e,n){var o=ao(e);var a=r({},L,n,o,e);a.showClass=r({},L.showClass,a.showClass);a.hideClass=r({},L.hideClass,a.hideClass);if(e.animation===false){a.showClass={popup:"swal2-noanimation",backdrop:"swal2-noanimation"};a.hideClass={}}return a},na=function t(n,o,a){return new Promise(function(t){var e=function t(e){n.closePopup({isDismissed:true,dismiss:e})};jn.swalPromiseResolve.set(n,t);o.confirmButton.onclick=function(){return To(n,a)};o.denyButton.onclick=function(){return _o(n,a)};o.cancelButton.onclick=function(){return qo(n,e)};o.closeButton.onclick=function(){return e(f.close)};Wo(n,o,e);Io(n,q,a,e);vo(n,a);mo(a);aa(q,a,e);ia(o,a);setTimeout(function(){o.container.scrollTop=0})})},oa=function t(e){var n={popup:h(),container:w(),content:g(),actions:gt(),confirmButton:b(),denyButton:y(),cancelButton:v(),loader:ht(),closeButton:kt(),validationMessage:mt(),progressSteps:pt()};T.domCache.set(e,n);return n},aa=function t(e,n,o){var a=vt();O(a);if(n.timer){e.timeout=new Jn(function(){o("timer");delete e.timeout},n.timer);if(n.timerProgressBar){P(a);setTimeout(function(){if(e.timeout&&e.timeout.running)$t(n.timer)})}}},ia=function t(e,n){if(n.toast)return;if(!et(n.allowEnterKey))return sa();if(!ra(e,n))$o(n,-1,1)},ra=function t(e,n){if(n.focusDeny&&E(e.denyButton)){e.denyButton.focus();return true}if(n.focusCancel&&E(e.cancelButton)){e.cancelButton.focus();return true}if(n.focusConfirm&&E(e.confirmButton)){e.confirmButton.focus();return true}return false},sa=function t(){if(document.activeElement&&typeof document.activeElement.blur==="function")document.activeElement.blur()};function la(e){var t=h();var n=T.innerParams.get(this);if(!t||Ot(t,n.hideClass.popup))return c("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){if(z.isUpdatableParameter(t))o[t]=e[t];else c('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 a=r({},n,o);Ie(this,a);T.innerParams.set(this,a);Object.defineProperties(this,{params:{value:r({},this.params,e),writable:false,enumerable:true}})}function ca(){var t=T.domCache.get(this);var e=T.innerParams.get(this);if(!e)return;if(t.popup&&q.swalCloseEventFinishedCallback){q.swalCloseEventFinishedCallback();delete q.swalCloseEventFinishedCallback}if(q.deferDisposalTimer){clearTimeout(q.deferDisposalTimer);delete q.deferDisposalTimer}ua(e);da(this)}var ua=function t(e){if(typeof e.didDestroy==="function")e.didDestroy();else if(typeof e.onDestroy==="function")e.onDestroy()},da=function t(e){delete e.params;delete q.keydownHandler;delete q.keydownTarget;fa(T);fa(jn)},fa=function t(e){for(var n in e)e[n]=new WeakMap},pa=Object.freeze({hideLoading:gn,disableLoading:gn,getInput:bn,close:Mn,closePopup:Mn,closeModal:Mn,closeToast:Mn,enableButtons:Fn,disableButtons:Yn,enableInput:Zn,disableInput:Wn,showValidationMessage:Kn,resetValidationMessage:Xn,getProgressSteps:Qn,_main:ta,update:la,_destroy:ca}),ma,t=function(){function i(){D(this,i);if(typeof window==="undefined")return;if(typeof Promise==="undefined")u("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)");ma=this;for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var o=Object.freeze(this.constructor.argsToParams(e));Object.defineProperties(this,{params:{value:o,writable:false,enumerable:true,configurable:true}});var a=this._main(this.params);T.promise.set(this,a)}I(i,[{key:"then",value:function t(e){var n=T.promise.get(this);return n.then(e)}},{key:"finally",value:function t(e){var n=T.promise.get(this);return n["finally"](e)}}]);return i}(),z=(r(t.prototype,pa),r(t,hn),Object.keys(pa).forEach(function(e){t[e]=function(){if(ma){var t;return(t=ma)[e].apply(t,arguments)}}}),t.DismissReason=f,t.version="10.16.9",t);return z["default"]=z}(),void 0!==this&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2),"undefined"!=typeof document){var e=document,t='.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}',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}}},669:t=>{"use strict";t.exports=jQuery}},o={};function s(t){var e=o[t];if(void 0!==e)return e.exports;e=o[t]={exports:{}};return n[t].call(e.exports,e,e.exports,s),e.exports}s.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return s.d(e,{a:e}),e},s.d=(t,e)=>{for(var n in e)s.o(e,n)&&!s.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},s.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{"use strict";var n,o,a,t,e,i=s(325),r=s.n(i),i=s(669);n=i,o=window,document,a=soliloquy_admin,o.soliloquy_notifications=t={init:function(){var t=this;t.$drawer=n("#soliloquy-notifications-drawer"),t.find_elements(),t.init_open(),t.init_close(),t.init_dismiss(),t.init_view_switch(),t.update_count(t.active_count)},should_init:function(){return 0<this.$drawer.length},find_elements:function(){var t=this;t.$open_button=n("#soliloquy-notifications-button"),t.$count=t.$drawer.find("#soliloquy-notifications-count"),t.$dismissed_count=t.$drawer.find("#soliloquy-notifications-dismissed-count"),t.active_count=t.$open_button.data("count")?t.$open_button.data("count"):0,t.dismissed_count=t.$open_button.data("dismissed"),t.$body=n("body"),t.$dismissed_button=n("#soliloquy-notifications-show-dismissed"),t.$active_button=n("#soliloquy-notifications-show-active"),t.$active_list=n(".soliloquy-notifications-list .soliloquy-notifications-active"),t.$dismissed_list=n(".soliloquy-notifications-list .soliloquy-notifications-dismissed"),t.$dismiss_all=n("#soliloquy-dismiss-all")},update_count:function(t){var e=this;e.$open_button.data("count",t).attr("data-count",t),0===t&&e.$open_button.removeAttr("data-count"),e.$count.text(t),e.dismissed_count+=Math.abs(t-e.active_count),e.active_count=t,e.$dismissed_count.text(e.dismissed_count),0===e.active_count&&e.$dismiss_all.hide()},init_open:function(){var e=this;e.$open_button.on("click",function(t){t.preventDefault(),e.$body.addClass("soliloquy-notifications-open")})},init_close:function(){var e=this;e.$body.on("click",".soliloquy-notifications-close, .soliloquy-notifications-overlay",function(t){t.preventDefault(),e.$body.removeClass("soliloquy-notifications-open")})},init_dismiss:function(){var e=this;e.$drawer.on("click",".soliloquy-notification-dismiss",function(t){t.preventDefault();t=n(this).data("id");if(e.dismiss_notification(t),"all"===t)return e.move_to_dismissed(e.$active_list.find("li")),void e.update_count(0);e.move_to_dismissed(n(this).closest("li")),e.update_count(e.active_count-1)})},move_to_dismissed:function(t){var e=this;t.slideUp(function(){n(this).prependTo(e.$dismissed_list).show()})},dismiss_notification:function(t){return n.post(ajaxurl,{action:"soliloquy_notification_dismiss",nonce:a.dismiss_notification_nonce,id:t})},init_view_switch:function(){var e=this;e.$dismissed_button.on("click",function(t){t.preventDefault(),e.$drawer.addClass("show-dismissed")}),e.$active_button.on("click",function(t){t.preventDefault(),e.$drawer.removeClass("show-dismissed")})}},o.soliloquy_connect=e={init:function(){n(this.ready())},ready:function(){this.connectClicked()},connectClicked:function(){var e=this;n("#soliloquy-settings-connect-btn").on("click",function(t){t.preventDefault(),e.gotoUpgradeUrl()})},gotoUpgradeUrl:function(){var e=this,t={action:"soliloquy_connect",key:n("#soliloquy-settings-key").val(),_wpnonce:a.connect_nonce};n.post(ajaxurl,t).done(function(t){if(t.success)return t.data.reload?void e.proAlreadyInstalled(t):void(o.location.href=t.data.url);r().fire({title:a.oops,html:t.data.message,icon:"warning",confirmButtonColor:"#3085d6",confirmButtonText:a.ok,customClass:{confirmButton:"soliloquy-button"}})}).fail(function(t){e.failAlert(t)})},proAlreadyInstalled:function(t){r().fire({title:a.almost_done,text:t.data.message,icon:"success",confirmButtonColor:"#3085d6",confirmButtonText:a.plugin_activate_btn,customClass:{confirmButton:"soliloquy-button"}}).then(function(t){t.isConfirmed&&o.location.reload()})},failAlert:function(t){r().fire({title:a.oops,html:a.server_error+"<br>"+t.status+" "+t.statusText+" "+t.responseText,icon:"warning",confirmButtonColor:"#3085d6",confirmButtonText:a.ok,customClass:{confirmButton:"envira-button"}})}},n(function(){e.init(),t.init(),n("#screen-meta-links").prependTo("#soliloquy-header-temp"),n("#screen-meta").prependTo("#soliloquy-header-temp")})})()})(); \ No newline at end of file @@ -1 +1 @@ -jQuery(document).ready(function(i){i("a.soliloquy-media-library").on("click",function(e){e.preventDefault(),wp.media.frames.soliloquy?wp.media.frames.soliloquy.open():(wp.media.frames.soliloquy=new wp.media.view.MediaFrame.Post({title:wp.media.view.l10n.insertIntoPost,button:{text:wp.media.view.l10n.insertIntoPost},multiple:!0,library:{type:"image"}}),wp.media.frames.soliloquy.on("open",function(){var t=wp.media.frames.soliloquy.state().get("selection");i("ul#soliloquy-output li").each(function(){var e=wp.media.attachment(i(this).attr("id"));t.add(e?[e]:[])})}),wp.media.frames.soliloquy.on("ready",function(){}),wp.media.frames.soliloquy.on("insert",function(e){var l=wp.media.frames.soliloquy.state(),o=[];e.each(function(e){var t=l.display(e).toJSON(),i=e.get("type");switch(t.link){case"none":e.set("link","");break;case"file":e.set("link",e.get("url"));break;case"post":break;case"custom":e.set("link",t.linkUrl)}"image"===i&&o.push(e.toJSON())},this),i.post(soliloquy_metabox_local.ajax,{action:"soliloquy_insert_slides",nonce:soliloquy_metabox_local.insert_nonce,post_id:soliloquy_metabox_local.id,images:JSON.stringify(o)},function(e){e&&(i("#soliloquy-output").html(e.data),SoliloquySlidesUpdate(),e=i("#soliloquy-output li").length,i(".soliloquy-count").text(e.toString()),0<e&&(i("#soliloquy-empty-slider").fadeOut().addClass("soliloquy-hidden"),i(".soliloquy-slide-header").removeClass("soliloquy-hidden").fadeIn(),i(".soliloquy-bulk-actions").fadeOut()))},"json")}),wp.media.frames.soliloquy.open(),i("div.media-menu a.media-menu-item:nth-child(2)").addClass("hidden"),i("div.media-menu a.media-menu-item:nth-child(3)").addClass("hidden"),i("div.media-menu a.media-menu-item:nth-child(4)").addClass("hidden"),i("div.media-menu a.media-menu-item:nth-child(6)").addClass("hidden"))})}),jQuery(document).ready(function(i){i("a.soliloquy-slides-delete").click(function(e){if(e.preventDefault(),!confirm(soliloquy_metabox_local.remove_multiple))return!1;var t=[],e=(i("ul#soliloquy-output > li.selected").each(function(){t.push(i(this).attr("id"))}),{action:"soliloquy_remove_slides",attachment_ids:t,post_id:soliloquy_metabox_local.id,nonce:soliloquy_metabox_local.remove_nonce});i.post(soliloquy_metabox_local.ajax,e,function(e){i("ul#soliloquy-output > li.selected").remove(),i(".soliloquy-bulk-actions").fadeOut(),i(".soliloquy-select-all").prop("checked",!1),i(".soliloquy-load-library").attr("data-soliloquy-offset",0).addClass("has-search").trigger("click"),SoliloquySlidesUpdate(!1);var t=i("#soliloquy-output li").length;i(".soliloquy-count").text(t.toString()),0===t&&(i(".soliloquy-bulk-actions").fadeOut(),i(".soliloquy-slide-header").fadeOut().addClass("soliloquy-hidden"),i("#soliloquy-empty-slider").removeClass("soliloquy-hidden").fadeIn())},"json")}),i("#soliloquy-settings-content ").on("click",".soliloquy-remove-slide",function(e){var t;e.preventDefault(),confirm(soliloquy_metabox_local.remove)&&(e={action:"soliloquy_remove_slide",attachment_id:t=i(this).parent().attr("id"),post_id:soliloquy_metabox_local.id,nonce:soliloquy_metabox_local.remove_nonce},i.post(soliloquy_metabox_local.ajax,e,function(e){i("#"+t).fadeOut("normal",function(){i(this).remove(),i(".soliloquy-load-library").attr("data-soliloquy-offset",0).addClass("has-search").trigger("click"),SoliloquySlidesUpdate(!1);var e=i("#soliloquy-output li").length;i(".soliloquy-count").text(e.toString()),0===e&&(i(".soliloquy-bulk-actions").fadeOut(),i(".soliloquy-slide-header").fadeOut().addClass("soliloquy-hidden"),i("#soliloquy-empty-slider").removeClass("soliloquy-hidden").fadeIn())})},"json"))})});var SoliloquySlide=Backbone.Model.extend({defaults:{id:"",title:"",caption:"",alt:"",link:"",type:""}}),SoliloquySlides=new Backbone.Collection,SoliloquyModalWindow=new wp.media.view.Modal({controller:{trigger:function(){}}}),SoliloquyView=wp.Backbone.View.extend({id:"soliloquy-meta-edit",tagName:"div",className:"edit-attachment-frame mode-select hide-menu hide-router",template:wp.template("soliloquy-meta-editor"),events:{"click .edit-media-header .left":"loadPreviousItem","click .edit-media-header .right":"loadNextItem","keyup input":"updateItem","keyup textarea":"updateItem","change input":"updateItem","change textarea":"updateItem","keyup .CodeMirror":"updateCode","blur textarea":"updateItem","change select":"updateItem","click a.soliloquy-meta-submit":"saveItem","keyup input#link-search":"searchLinks","click div.query-results li":"insertLink","click a.soliloquy-thumbnail":"insertThumb","click a.soliloquy-thumbnail-delete":"removeThumb","click button.media-file":"insertMediaFileLink","click button.attachment-page":"insertAttachmentPageLink"},initialize:function(e){this.is_loading=!1,this.collection=e.collection,this.child_views=e.child_views,this.attachment_id=e.attachment_id,this.attachment_index=0,this.search_timer="";var t=0;this.collection.each(function(e){if(String(e.get("id"))==String(this.attachment_id))return this.model=e,this.attachment_index=t,!1;t++},this)},updateCode:function(e){$model=this.model,$textarea=this.$el.find(".soliloquy-html-slide-code"),$model.set("code",this.editor.getValue(),{silent:!0}),$textarea.text()},insertThumb:function(e){$model=this.model,e.preventDefault();this.$el.data("field");var t=wp.media.frames.soliloquy_media_frame=wp.media({className:"media-frame soliloquy-media-frame",frame:"select",multiple:!1,title:soliloquy_metabox_local.videoframe,library:{type:"image"},button:{text:soliloquy_metabox_local.videouse}});t.on("select",function(){var e=t.state().get("selection").first().toJSON();$model.set("src",e.url,{silent:!0}),jQuery("div.thumbnail > img",$parent.find(".media-frame-content")).attr("src",e.url)}),t.open()},removeThumb:function(e){e.preventDefault(),$model=this.model,$parent=this.$el.parent(),jQuery("div.thumbnail > img",$parent.find(".media-frame-content")).attr("src",""),$model.set("src","",{silent:!0})},render:function(){return this.$el.html(this.template(this.model.attributes)),0<this.child_views.length&&this.child_views.forEach(function(e){e=new e({model:this.model});this.$el.find("div.addons").append(e.render().el)},this),this.$el.find("textarea[name=caption]").val(this.model.get("caption")),setTimeout(function(){quicktags({id:"caption",buttons:"strong,em,link,ul,ol,li,close"}),QTags._buttonsInit()},500),wpLink.init,0===this.attachment_index&&this.$el.find("button.left").addClass("disabled"),this.attachment_index==this.collection.length-1&&this.$el.find("button.right").addClass("disabled"),(textarea=this.$el.find(".soliloquy-html-slide-code")).length&&(this.editor=CodeMirror.fromTextArea(textarea[0],{enterMode:"keep",indentUnit:4,electricChars:!1,lineNumbers:!0,lineWrapping:!0,matchBrackets:!0,mode:"php",smartIndent:!1,tabMode:"shift",theme:"ttcn"})),this.$el.trigger("soliloquyRenderMeta"),this},loading:function(){this.is_loading=!0,this.$el.find(".spinner").css("visibility","visible")},loaded:function(e){this.is_loading=!1,this.$el.find(".spinner").css("visibility","hidden"),void 0!==e&&alert(e)},loadPreviousItem:function(){this.attachment_index--,this.model=this.collection.at(this.attachment_index),this.attachment_id=this.model.get("id"),this.render()},loadNextItem:function(){this.attachment_index++,this.model=this.collection.at(this.attachment_index),this.attachment_id=this.model.get("id"),this.render()},updateItem:function(e){""!=e.target.name&&(value="checkbox"==e.target.type?e.target.checked?1:0:e.target.value,this.model.set(e.target.name,value))},saveItem:function(e){e.preventDefault(),this.trigger("loading"),wp.media.ajax("soliloquy_save_meta",{context:this,data:{nonce:soliloquy_metabox_local.save_nonce,post_id:soliloquy_metabox_local.id,attach_id:this.model.get("id"),meta:this.model.attributes},success:function(e){this.trigger("loaded loaded:success");var t=JSON.stringify(this.model.attributes),i=(jQuery("ul#soliloquy-output li#"+this.model.get("id")).attr("data-soliloquy-image-model",t),this.$el.find(".saved"));i.fadeIn(),setTimeout(function(){i.fadeOut()},1500)},error:function(e){this.trigger("loaded loaded:error",e)}})},searchLinks:function(e){},insertLink:function(e){},insertMediaFileLink:function(e){this.trigger("loading"),wp.media.ajax("soliloquy_get_attachment_links",{context:this,data:{nonce:soliloquy_metabox_local.save_nonce,attachment_id:this.model.get("id")},success:function(e){this.model.set("link",e.media_link),this.trigger("loaded loaded:success"),this.render()},error:function(e){this.trigger("loaded loaded:error",e)}})},insertAttachmentPageLink:function(e){this.trigger("loading"),wp.media.ajax("soliloquy_get_attachment_links",{context:this,data:{nonce:soliloquy_metabox_local.save_nonce,attachment_id:this.model.get("id")},success:function(e){this.model.set("link",e.attachment_page),this.trigger("loaded loaded:success"),this.render()},error:function(e){this.trigger("loaded loaded:error",e)}})}}),SoliloquyChildViews=[],SoliloquyContentViews=[];function SoliloquySlidesUpdate(e){SoliloquySlides.reset(),jQuery("ul#soliloquy-output li.soliloquy-slide"+(e?".selected":"")).each(function(){var e=jQuery.parseJSON(jQuery(this).attr("data-soliloquy-image-model"));SoliloquySlides.add(new SoliloquySlide(e))})}!function(t){t(document).ready(function(){(soliloquy_edit={init:function(){SoliloquySlidesUpdate(),t("#soliloquy-settings-content").on("click.soliloquyModify",".soliloquy-modify-slide",function(e){e.preventDefault();e=t(this).parent().data("soliloquy-slide");SoliloquyModalWindow.content(new SoliloquyView({collection:SoliloquySlides,child_views:SoliloquyChildViews,attachment_id:e})),SoliloquyModalWindow.open(),t(document).trigger("soliloquyEditOpen"),t(".CodeMirror").each(function(e,t){t.CodeMirror.refresh()})})}}).init()}),t(document).on("soliloquyUploaded",function(){soliloquy_edit.init()})}(jQuery),function(d,e,u){"use strict";var t={init:function(){this.select_all(),this.sortable(),this.select(),this.display(),this.chosen(),this.slide_size(),this.uploadImage(),this.toggleStatus(),this.tooltip(),this.clear_selected(),new Clipboard(".soliloquy-clipboard"),d("ul#soliloquy-output").on("click","a.check",function(e){e.preventDefault()}),d(".soliloquy-clipboard").on("click",function(e){e.preventDefault()});var e=d("#soliloquy-output li").length;d(".soliloquy-count").text(e.toString()),d("input,select").conditional()},toggleStatus:function(){d("#soliloquy-settings-content").on("click.soliloquyStatus",".soliloquy-slide-status",function(e){var t="",i="",e=(e.preventDefault(),t=(d(this).hasClass("list-status")?d(this).parent().parent():d(this)).parent(),d(this)),l=e.data("status"),o=t.find(".soliloquy-slide-status.list-status"),a=t.find(".soliloquy-slide-status.grid-status"),t=(e.parent().parent().data("view"),e.data("id")),s=a.find("span.dashicons"),n=o.find("span"),i=(e.data("soliloquy-tooltip"),"active"===l?"pending":"active"),e={url:u.ajax,type:"post",async:!0,cache:!1,dataType:"json",data:{action:"soliloquy_change_slide_status",post_id:u.id,slide_id:t,status:i,nonce:u.save_nonce},success:function(e){"active"===i?(a.removeClass("soliloquy-draft-slide").addClass("soliloquy-active-slide"),o.removeClass("soliloquy-draft-slide").addClass("soliloquy-active-slide"),s.removeClass("dashicons-hidden").addClass("dashicons-visibility"),n.text(u.active),a.attr("data-soliloquy-tooltip",u.active),o.data("status","active"),a.data("status","active")):(a.removeClass("soliloquy-active-slide").addClass("soliloquy-draft-slide"),o.removeClass("soliloquy-active-slide").addClass("soliloquy-draft-slide"),s.removeClass("dashicons-visibility").addClass("dashicons-hidden"),n.text(u.draft),o.data("status","pending"),a.data("status","pending"),a.attr("data-soliloquy-tooltip",u.draft))},error:function(e,t,i){}};d.ajax(e)})},tooltip:function(){d("[data-soliloquy-tooltip]").on("mouseover",function(e){e.preventDefault();d(this).data("soliloquy-tooltip")})},select_all:function(){d(".soliloquy-select-all").change(function(){var e;this.checked?(d("ul#soliloquy-output li").addClass("selected"),d(".soliloquy-bulk-actions").fadeIn(),e=d("ul#soliloquy-output li.selected").length,d(".select-all").text(u.selected),d(".soliloquy-count").text(e.toString()),d(".soliloquy-clear-selected").fadeIn()):(d("ul#soliloquy-output li").removeClass("selected"),d(".soliloquy-bulk-actions").fadeOut(),e=d("ul#soliloquy-output li").length,d(".select-all").text(u.select_all),d(".soliloquy-count").text(e.toString()),d(".soliloquy-clear-selected").fadeOut())})},sortable:function(){var l=d("#soliloquy-output");l.sortable({containment:"#soliloquy-slider-main",items:"li",cursor:"move",forcePlaceholderSize:!0,placeholder:"dropzone",update:function(e,t){var i={url:u.ajax,type:"post",async:!0,cache:!1,dataType:"json",data:{action:"soliloquy_sort_images",order:l.sortable("toArray").toString(),post_id:u.id,nonce:u.sort},success:function(e){SoliloquySlidesUpdate()},error:function(e,t,i){}};d.ajax(i)}})},select:function(){var s=!1,n=!1;d("li.soliloquy-slide .soliloquy-item-content, .soliloquy-list li a.check").on("click",function(e){d(this);var t,i=d(this).parent();if(e.preventDefault(),d(i).hasClass("selected"))d(i).removeClass("selected"),n=!1,0!==(t=d("ul#soliloquy-output li.selected").length)?(d(".select-all").text(u.selected),d(".soliloquy-count").text(t.toString()),d(".soliloquy-clear-selected").fadeIn()):(e=d("ul#soliloquy-output li").length,d(".select-all").text(u.select_all),d(".soliloquy-count").text(e.toString()),d(".soliloquy-clear-selected").fadeOut());else{if(s&&!1!==n){var l=d("ul#soliloquy-output li").index(d(n)),o=d("ul#soliloquy-output li").index(d(i)),a=0;if(l<o)for(a=l;a<=o;a++)d("ul#soliloquy-output li:eq( "+a+")").addClass("selected");else for(a=o;a<=l;a++)d("ul#soliloquy-output li:eq( "+a+")").addClass("selected")}d(i).addClass("selected"),n=d(i),t=d("ul#soliloquy-output li.selected").length,d(".soliloquy-clear-selected").fadeIn(),d(".select-all").text(u.selected),d(".soliloquy-count").text(t.toString())}0<d("ul#soliloquy-output > li.selected").length?d(".soliloquy-bulk-actions").fadeIn():d(".soliloquy-bulk-actions").fadeOut()}),d(e).on("keyup keydown",function(e){s=e.shiftKey})},slide_size:function(){d(e).on("change","#soliloquy-config-slider-size",function(){var e=d(this),t=e.val(),i=e.find(":selected").data("soliloquy-width"),e=e.find(":selected").data("soliloquy-height");"default"==t&&(d("#soliloquy-config-slider-width").val(u.slide_width),d("#soliloquy-config-slider-height").val(u.slide_height)),i&&d("#soliloquy-config-slider-width").val(i),e&&d("#soliloquy-config-slider-height").val(e)})},clear_selected:function(){d(".soliloquy-clear-selected").on("click",function(e){e.preventDefault();e=d("#soliloquy-output li").length;d("ul#soliloquy-output li").removeClass("selected"),d(".select-all").text(u.select_all),d(".soliloquy-count").text(e.toString()),d(".soliloquy-select-all").prop("checked",!1),d(".soliloquy-bulk-actions").fadeOut(),d(this).fadeOut()})},display:function(){d("a.soliloquy-display").on("click",function(e){var t,i,l;e.preventDefault(),d(this).hasClass("active-display")||(t=(e=d(this)).data("soliloquy-display"),i=d("#soliloquy-output"),l={url:u.ajax,type:"post",async:!0,cache:!1,dataType:"json",data:{action:"soliloquy_slider_view",post_id:u.id,view:t,nonce:u.save_nonce},success:function(e){}},d.ajax(l),d(".soliloquy-display-toggle").find(".active-display").removeClass("active-display"),e.addClass("active-display"),"grid"===t?i.removeClass("soliloquy-list").addClass("soliloquy-grid"):"list"===t&&i.removeClass("soliloquy-grid").addClass("soliloquy-list"))})},chosen:function(){d(".soliloquy-chosen").each(function(){var e=d(this).data("soliloquy-chosen-options");d(this).chosen(e)})},uploadImage:function(){d(".soliloquy-insert-image").on("click",function(e){var t;e.preventDefault();var i=d(event.currentTarget).parent().find("input");t||(t=wp.media.frames.soliloquy_image_frame=wp.media({frame:"select",library:{type:"image"},title:u.insert_image,button:{text:u.insert_image},contentUserSetting:!1,multiple:!1})).on("select",function(){var e=t.state().get("selection").first().toJSON();i.val(e.url)}),t.open()})}};d(function(){t.init()}),d(e).on("soliloquyType",function(){t.init()})}(jQuery,(window,document),soliloquy_metabox_local),function(a,s,n){a(function(){var i,l,o;"undefined"!=typeof uploader&&(a("input#plupload-browse-button").val(n.uploader_files_computer),a(".drag-drop-info").text(n.uploader_info_text),a("#soliloquy .drag-drop-inside").append('<div class="soliloquy-progress-bar"><div></div></div>'),i=a("#soliloquy .soliloquy-progress-bar"),l=a("#soliloquy .soliloquy-progress-bar div"),o=a("#soliloquy-output"),uploader.bind("FilesAdded",function(e,t){e.files=t,a(i).fadeIn()}),uploader.bind("BeforeUpload",function(e,t){if(t.name.toLowerCase().endsWith(".heic")&&!n.is_imagick_enabled)return a("#soliloquy-upload-error").html(`<div class="error fade"><p>${n.heic_error_text}</p></div>`),!1}),uploader.bind("UploadProgress",function(e,t){a(l).css({width:e.total.percent+"%"})}),uploader.bind("FileUploaded",function(e,t,i){a.post(n.ajax,{action:"soliloquy_load_image",nonce:n.load_image,id:i.response,post_id:n.id},function(e){"before"===n.media_position?a(o).prepend(e):a(o).append(e),a(s).trigger("soliloquyUploaded"),a(e).find(".wp-editor-container").each(function(e,t){t=a(t).attr("id").split("-")[4];quicktags({id:"soliloquy-caption-"+t,buttons:"strong,em,link,ul,ol,li,close"}),QTags._buttonsInit()});const t=a("#soliloquy-output li").length;a(".soliloquy-count").text(t.toString()),0<t&&(a("#soliloquy-empty-slider").fadeOut().addClass("soliloquy-hidden"),a(".soliloquy-slide-header").removeClass("soliloquy-hidden").fadeIn())},"json")}),uploader.bind("UploadComplete",function(){a(i).fadeOut()}),uploader.bind("Error",function(e,t){a("#soliloquy-upload-error").html('<div class="error fade"><p>'+t.file.name+": "+t.message+"</p></div>"),e.refresh()}))})}(jQuery,(window,document),soliloquy_media_uploader),function(s,n){"use strict";var e,t,i,l=n.location.hash,o=n.location.hash.replace("!","");l&&0<=l.indexOf("soliloquy-tab")&&(e=(l=s(o.replace("tab_",""))).parent(),t=l.parent().parent().find("ul.soliloquy-tabs-nav"),i=s("#post").attr("action"),e.find(".soliloquy-tab-active").removeClass("soliloquy-tab-active"),l.addClass("soliloquy-tab-active"),t.find(".soliloquy-tab-nav-active").removeClass("soliloquy-tab-nav-active"),t.find('a[href="'+o.replace("tab_","")+'"]').parent().addClass("soliloquy-tab-nav-active"),i&&(i=i.split("#")[0],s("#post").attr("action",i+n.location.hash)),s("body").trigger("SoliloquyTabChange")),s(function(){s("[data-soliloquy-tab]").on("click",function(e){e.preventDefault();var e=s(this),t=e.attr("data-tab-id"),i=e.parent(),l=i.parent(),o=i.attr("data-update-hashbang"),a=void 0!==e.attr("href")?"tab_"+e.attr("href"):"tab_"+t;if(!e.hasClass("soliloquy-tab-nav-active"))return l.find(".soliloquy-tab-active").removeClass("soliloquy-tab-active"),i.find(".soliloquy-tab-nav-active").removeClass("soliloquy-tab-nav-active"),e.addClass("soliloquy-tab-nav-active"),s("#"+t).addClass("soliloquy-tab-active"),e.trigger("SoliloquyTabChange"),"soliloquy-native"===t&&!0!==s("#soliloquy-type-default").prop("checked")&&(s("#soliloquy-types-nav li").removeClass("soliloquy-active"),s("#soliloquy-type-default").prop("checked",!0).trigger("change")),"1"===o&&(n.location.hash=a.split("#").join("#!"),(l=s("#post").attr("action"))&&(l=l.split("#")[0],s("#post").attr("action",l+n.location.hash))),!1})})}(jQuery,window,document); \ No newline at end of file +jQuery(document).ready(function(i){i("a.soliloquy-media-library").on("click",function(e){e.preventDefault(),wp.media.frames.soliloquy?wp.media.frames.soliloquy.open():(wp.media.frames.soliloquy=new wp.media.view.MediaFrame.Post({title:wp.media.view.l10n.insertIntoPost,button:{text:wp.media.view.l10n.insertIntoPost},multiple:!0,library:{type:"image"}}),wp.media.frames.soliloquy.on("open",function(){const t=wp.media.frames.soliloquy.state().get("selection");i("ul#soliloquy-output li").each(function(){var e=wp.media.attachment(i(this).attr("id"));t.add(e?[e]:[])})}),wp.media.frames.soliloquy.on("ready",function(){}),wp.media.frames.soliloquy.on("insert",function(e){const l=wp.media.frames.soliloquy.state(),o=[];e.each(function(e){var t=l.display(e).toJSON(),i=e.get("type");switch(t.link){case"none":e.set("link","");break;case"file":e.set("link",e.get("url"));break;case"post":break;case"custom":e.set("link",t.linkUrl)}"image"===i&&o.push(e.toJSON())},this),i.post(soliloquy_metabox_local.ajax,{action:"soliloquy_insert_slides",nonce:soliloquy_metabox_local.insert_nonce,post_id:soliloquy_metabox_local.id,images:JSON.stringify(o)},function(e){if(e){i("#soliloquy-output").html(e.data),SoliloquySlidesUpdate();const t=i("#soliloquy-output li").length;i(".soliloquy-count").text(t.toString()),0<t&&(i("#soliloquy-empty-slider").fadeOut().addClass("soliloquy-hidden"),i(".soliloquy-slide-header").removeClass("soliloquy-hidden").fadeIn(),i(".soliloquy-bulk-actions").fadeOut())}},"json")}),wp.media.frames.soliloquy.open(),i("div.media-menu a.media-menu-item:nth-child(2)").addClass("hidden"),i("div.media-menu a.media-menu-item:nth-child(3)").addClass("hidden"),i("div.media-menu a.media-menu-item:nth-child(4)").addClass("hidden"),i("div.media-menu a.media-menu-item:nth-child(6)").addClass("hidden"))})}),jQuery(document).ready(function(l){l("a.soliloquy-slides-delete").click(function(e){if(e.preventDefault(),!confirm(soliloquy_metabox_local.remove_multiple))return!1;const t=[];l("ul#soliloquy-output > li.selected").each(function(){t.push(l(this).attr("id"))});e={action:"soliloquy_remove_slides",attachment_ids:t,post_id:soliloquy_metabox_local.id,nonce:soliloquy_metabox_local.remove_nonce};l.post(soliloquy_metabox_local.ajax,e,function(e){l("ul#soliloquy-output > li.selected").remove(),l(".soliloquy-bulk-actions").fadeOut(),l(".soliloquy-select-all").prop("checked",!1),l(".soliloquy-load-library").attr("data-soliloquy-offset",0).addClass("has-search").trigger("click"),SoliloquySlidesUpdate(!1);const t=l("#soliloquy-output li").length;l(".soliloquy-count").text(t.toString()),0===t&&(l(".soliloquy-bulk-actions").fadeOut(),l(".soliloquy-slide-header").fadeOut().addClass("soliloquy-hidden"),l("#soliloquy-empty-slider").removeClass("soliloquy-hidden").fadeIn())},"json")}),l("#soliloquy-settings-content ").on("click",".soliloquy-remove-slide",function(e){if(e.preventDefault(),confirm(soliloquy_metabox_local.remove)){const t=l(this).parent().attr("id"),i={action:"soliloquy_remove_slide",attachment_id:t,post_id:soliloquy_metabox_local.id,nonce:soliloquy_metabox_local.remove_nonce};l.post(soliloquy_metabox_local.ajax,i,function(e){l("#"+t).fadeOut("normal",function(){l(this).remove(),l(".soliloquy-load-library").attr("data-soliloquy-offset",0).addClass("has-search").trigger("click"),SoliloquySlidesUpdate(!1);const e=l("#soliloquy-output li").length;l(".soliloquy-count").text(e.toString()),0===e&&(l(".soliloquy-bulk-actions").fadeOut(),l(".soliloquy-slide-header").fadeOut().addClass("soliloquy-hidden"),l("#soliloquy-empty-slider").removeClass("soliloquy-hidden").fadeIn())})},"json")}})});const SoliloquySlide=Backbone.Model.extend({defaults:{id:"",title:"",caption:"",alt:"",link:"",type:""}}),SoliloquySlides=new Backbone.Collection,SoliloquyModalWindow=new wp.media.view.Modal({controller:{trigger:function(){}}}),SoliloquyView=wp.Backbone.View.extend({id:"soliloquy-meta-edit",tagName:"div",className:"edit-attachment-frame mode-select hide-menu hide-router",template:wp.template("soliloquy-meta-editor"),events:{"click .edit-media-header .left":"loadPreviousItem","click .edit-media-header .right":"loadNextItem","keyup input":"updateItem","keyup textarea":"updateItem","change input":"updateItem","change textarea":"updateItem","keyup .CodeMirror":"updateCode","blur textarea":"updateItem","change select":"updateItem","click a.soliloquy-meta-submit":"saveItem","keyup input#link-search":"searchLinks","click div.query-results li":"insertLink","click a.soliloquy-thumbnail":"insertThumb","click a.soliloquy-thumbnail-delete":"removeThumb","click button.media-file":"insertMediaFileLink","click button.attachment-page":"insertAttachmentPageLink"},initialize:function(e){this.is_loading=!1,this.collection=e.collection,this.child_views=e.child_views,this.attachment_id=e.attachment_id,this.attachment_index=0,this.search_timer="";let t=0;this.collection.each(function(e){if(String(e.get("id"))==String(this.attachment_id))return this.model=e,this.attachment_index=t,!1;t++},this)},updateCode:function(e){$model=this.model,$textarea=this.$el.find(".soliloquy-html-slide-code"),$model.set("code",this.editor.getValue(),{silent:!0}),$textarea.text()},insertThumb:function(e){$model=this.model,e.preventDefault();this.$el.data("field");const t=wp.media.frames.soliloquy_media_frame=wp.media({className:"media-frame soliloquy-media-frame",frame:"select",multiple:!1,title:soliloquy_metabox_local.videoframe,library:{type:"image"},button:{text:soliloquy_metabox_local.videouse}});t.on("select",function(){var e=t.state().get("selection").first().toJSON();$model.set("src",e.url,{silent:!0}),jQuery("div.thumbnail > img",$parent.find(".media-frame-content")).attr("src",e.url)}),t.open()},removeThumb:function(e){e.preventDefault(),$model=this.model,$parent=this.$el.parent(),jQuery("div.thumbnail > img",$parent.find(".media-frame-content")).attr("src",""),$model.set("src","",{silent:!0})},render:function(){return this.$el.html(this.template(this.model.attributes)),0<this.child_views.length&&this.child_views.forEach(function(e){const t=new e({model:this.model});this.$el.find("div.addons").append(t.render().el)},this),this.$el.find("textarea[name=caption]").val(this.model.get("caption")),setTimeout(function(){quicktags({id:"caption",buttons:"strong,em,link,ul,ol,li,close"}),QTags._buttonsInit()},500),wpLink.init,0===this.attachment_index&&this.$el.find("button.left").addClass("disabled"),this.attachment_index==this.collection.length-1&&this.$el.find("button.right").addClass("disabled"),(textarea=this.$el.find(".soliloquy-html-slide-code")).length&&(this.editor=CodeMirror.fromTextArea(textarea[0],{enterMode:"keep",indentUnit:4,electricChars:!1,lineNumbers:!0,lineWrapping:!0,matchBrackets:!0,mode:"php",smartIndent:!1,tabMode:"shift",theme:"ttcn"})),this.$el.trigger("soliloquyRenderMeta"),this},loading:function(){this.is_loading=!0,this.$el.find(".spinner").css("visibility","visible")},loaded:function(e){this.is_loading=!1,this.$el.find(".spinner").css("visibility","hidden"),void 0!==e&&alert(e)},loadPreviousItem:function(){this.attachment_index--,this.model=this.collection.at(this.attachment_index),this.attachment_id=this.model.get("id"),this.render()},loadNextItem:function(){this.attachment_index++,this.model=this.collection.at(this.attachment_index),this.attachment_id=this.model.get("id"),this.render()},updateItem:function(e){""!=e.target.name&&(value="checkbox"==e.target.type?e.target.checked?1:0:e.target.value,this.model.set(e.target.name,value))},saveItem:function(e){e.preventDefault(),this.trigger("loading"),wp.media.ajax("soliloquy_save_meta",{context:this,data:{nonce:soliloquy_metabox_local.save_nonce,post_id:soliloquy_metabox_local.id,attach_id:this.model.get("id"),meta:this.model.attributes},success:function(e){this.trigger("loaded loaded:success");var t=JSON.stringify(this.model.attributes);jQuery("ul#soliloquy-output li#"+this.model.get("id")).attr("data-soliloquy-image-model",t);const i=this.$el.find(".saved");i.fadeIn(),setTimeout(function(){i.fadeOut()},1500)},error:function(e){this.trigger("loaded loaded:error",e)}})},searchLinks:function(e){},insertLink:function(e){},insertMediaFileLink:function(e){this.trigger("loading"),wp.media.ajax("soliloquy_get_attachment_links",{context:this,data:{nonce:soliloquy_metabox_local.save_nonce,attachment_id:this.model.get("id")},success:function(e){this.model.set("link",e.media_link),this.trigger("loaded loaded:success"),this.render()},error:function(e){this.trigger("loaded loaded:error",e)}})},insertAttachmentPageLink:function(e){this.trigger("loading"),wp.media.ajax("soliloquy_get_attachment_links",{context:this,data:{nonce:soliloquy_metabox_local.save_nonce,attachment_id:this.model.get("id")},success:function(e){this.model.set("link",e.attachment_page),this.trigger("loaded loaded:success"),this.render()},error:function(e){this.trigger("loaded loaded:error",e)}})}}),SoliloquyChildViews=[],SoliloquyContentViews=[];function SoliloquySlidesUpdate(e){SoliloquySlides.reset(),jQuery("ul#soliloquy-output li.soliloquy-slide"+(e?".selected":"")).each(function(){var e=jQuery.parseJSON(jQuery(this).attr("data-soliloquy-image-model"));SoliloquySlides.add(new SoliloquySlide(e))})}!function(t){t(document).ready(function(){(soliloquy_edit={init:function(){SoliloquySlidesUpdate(),t("#soliloquy-settings-content").on("click.soliloquyModify",".soliloquy-modify-slide",function(e){e.preventDefault();e=t(this).parent().data("soliloquy-slide");SoliloquyModalWindow.content(new SoliloquyView({collection:SoliloquySlides,child_views:SoliloquyChildViews,attachment_id:e})),SoliloquyModalWindow.open(),t(document).trigger("soliloquyEditOpen"),t(".CodeMirror").each(function(e,t){t.CodeMirror.refresh()})})}}).init()}),t(document).on("soliloquyUploaded",function(){soliloquy_edit.init()})}(jQuery),function(c,e,r){"use strict";const t={init:function(){this.select_all(),this.sortable(),this.select(),this.display(),this.chosen(),this.slide_size(),this.uploadImage(),this.toggleStatus(),this.tooltip(),this.clear_selected(),new Clipboard(".soliloquy-clipboard"),c("ul#soliloquy-output").on("click","a.check",function(e){e.preventDefault()}),c(".soliloquy-clipboard").on("click",function(e){e.preventDefault()});const e=c("#soliloquy-output li").length;c(".soliloquy-count").text(e.toString()),c("input,select").conditional()},toggleStatus:function(){c("#soliloquy-settings-content").on("click.soliloquyStatus",".soliloquy-slide-status",function(e){let t="",i="";e.preventDefault(),t=(c(this).hasClass("list-status")?c(this).parent().parent():c(this)).parent();const l=c(this),o=l.data("status"),s=t.find(".soliloquy-slide-status.list-status"),a=t.find(".soliloquy-slide-status.grid-status"),n=(l.parent().parent().data("view"),l.data("id")),d=a.find("span.dashicons"),u=s.find("span");l.data("soliloquy-tooltip");i="active"===o?"pending":"active";e={url:r.ajax,type:"post",async:!0,cache:!1,dataType:"json",data:{action:"soliloquy_change_slide_status",post_id:r.id,slide_id:n,status:i,nonce:r.save_nonce},success:function(e){"active"===i?(a.removeClass("soliloquy-draft-slide").addClass("soliloquy-active-slide"),s.removeClass("soliloquy-draft-slide").addClass("soliloquy-active-slide"),d.removeClass("dashicons-hidden").addClass("dashicons-visibility"),u.text(r.active),a.attr("data-soliloquy-tooltip",r.active),s.data("status","active"),a.data("status","active")):(a.removeClass("soliloquy-active-slide").addClass("soliloquy-draft-slide"),s.removeClass("soliloquy-active-slide").addClass("soliloquy-draft-slide"),d.removeClass("dashicons-visibility").addClass("dashicons-hidden"),u.text(r.draft),s.data("status","pending"),a.data("status","pending"),a.attr("data-soliloquy-tooltip",r.draft))},error:function(e,t,i){}};c.ajax(e)})},tooltip:function(){c("[data-soliloquy-tooltip]").on("mouseover",function(e){e.preventDefault();const t=c(this);t.data("soliloquy-tooltip")})},select_all:function(){c(".soliloquy-select-all").change(function(){if(this.checked){c("ul#soliloquy-output li").addClass("selected"),c(".soliloquy-bulk-actions").fadeIn();const e=c("ul#soliloquy-output li.selected").length;c(".select-all").text(r.selected),c(".soliloquy-count").text(e.toString()),c(".soliloquy-clear-selected").fadeIn()}else{c("ul#soliloquy-output li").removeClass("selected"),c(".soliloquy-bulk-actions").fadeOut();const t=c("ul#soliloquy-output li").length;c(".select-all").text(r.select_all),c(".soliloquy-count").text(t.toString()),c(".soliloquy-clear-selected").fadeOut()}})},sortable:function(){const l=c("#soliloquy-output");l.sortable({containment:"#soliloquy-slider-main",items:"li",cursor:"move",forcePlaceholderSize:!0,placeholder:"dropzone",update:function(e,t){var i={url:r.ajax,type:"post",async:!0,cache:!1,dataType:"json",data:{action:"soliloquy_sort_images",order:l.sortable("toArray").toString(),post_id:r.id,nonce:r.sort},success:function(e){SoliloquySlidesUpdate()},error:function(e,t,i){}};c.ajax(i)}})},select:function(){let o=!1,s=!1;c("li.soliloquy-slide .soliloquy-item-content, .soliloquy-list li a.check").on("click",function(e){c(this);let l=c(this).parent(),t;if(e.preventDefault(),c(l).hasClass("selected"))if(c(l).removeClass("selected"),s=!1,0!==(t=c("ul#soliloquy-output li.selected").length))c(".select-all").text(r.selected),c(".soliloquy-count").text(t.toString()),c(".soliloquy-clear-selected").fadeIn();else{const i=c("ul#soliloquy-output li").length;c(".select-all").text(r.select_all),c(".soliloquy-count").text(i.toString()),c(".soliloquy-clear-selected").fadeOut()}else{if(o&&!1!==s){let e=c("ul#soliloquy-output li").index(c(s)),t=c("ul#soliloquy-output li").index(c(l)),i=0;if(e<t)for(i=e;i<=t;i++)c("ul#soliloquy-output li:eq( "+i+")").addClass("selected");else for(i=t;i<=e;i++)c("ul#soliloquy-output li:eq( "+i+")").addClass("selected")}c(l).addClass("selected"),s=c(l),t=c("ul#soliloquy-output li.selected").length,c(".soliloquy-clear-selected").fadeIn(),c(".select-all").text(r.selected),c(".soliloquy-count").text(t.toString())}0<c("ul#soliloquy-output > li.selected").length?c(".soliloquy-bulk-actions").fadeIn():c(".soliloquy-bulk-actions").fadeOut()}),c(e).on("keyup keydown",function(e){o=e.shiftKey})},slide_size:function(){c(e).on("change","#soliloquy-config-slider-size",function(){const e=c(this),t=e.val(),i=e.find(":selected").data("soliloquy-width"),l=e.find(":selected").data("soliloquy-height");"default"==t&&(c("#soliloquy-config-slider-width").val(r.slide_width),c("#soliloquy-config-slider-height").val(r.slide_height)),i&&c("#soliloquy-config-slider-width").val(i),l&&c("#soliloquy-config-slider-height").val(l)})},clear_selected:function(){c(".soliloquy-clear-selected").on("click",function(e){e.preventDefault();const t=c("#soliloquy-output li").length;c("ul#soliloquy-output li").removeClass("selected"),c(".select-all").text(r.select_all),c(".soliloquy-count").text(t.toString()),c(".soliloquy-select-all").prop("checked",!1),c(".soliloquy-bulk-actions").fadeOut(),c(this).fadeOut()})},display:function(){c("a.soliloquy-display").on("click",function(e){if(e.preventDefault(),!c(this).hasClass("active-display")){const t=c(this),i=t.data("soliloquy-display"),l=c("#soliloquy-output"),o={url:r.ajax,type:"post",async:!0,cache:!1,dataType:"json",data:{action:"soliloquy_slider_view",post_id:r.id,view:i,nonce:r.save_nonce},success:function(e){}};c.ajax(o),c(".soliloquy-display-toggle").find(".active-display").removeClass("active-display"),t.addClass("active-display"),"grid"===i?l.removeClass("soliloquy-list").addClass("soliloquy-grid"):"list"===i&&l.removeClass("soliloquy-grid").addClass("soliloquy-list")}})},chosen:function(){c(".soliloquy-chosen").each(function(){var e=c(this).data("soliloquy-chosen-options");c(this).chosen(e)})},uploadImage:function(){c(".soliloquy-insert-image").on("click",function(e){let t;e.preventDefault();const i=c(event.currentTarget),l=i.parent().find("input");t||(t=wp.media.frames.soliloquy_image_frame=wp.media({frame:"select",library:{type:"image"},title:r.insert_image,button:{text:r.insert_image},contentUserSetting:!1,multiple:!1})).on("select",function(){var e=t.state().get("selection").first().toJSON();l.val(e.url)}),t.open()})}};c(function(){t.init()}),c(e).on("soliloquyType",function(){t.init()})}(jQuery,(window,document),soliloquy_metabox_local),function(s,a,n){s(function(){if("undefined"!=typeof uploader){s("input#plupload-browse-button").val(n.uploader_files_computer),s(".drag-drop-info").text(n.uploader_info_text),s("#soliloquy .drag-drop-inside").append('<div class="soliloquy-progress-bar"><div></div></div>');const i=s("#soliloquy .soliloquy-progress-bar"),l=s("#soliloquy .soliloquy-progress-bar div"),o=s("#soliloquy-output");uploader.bind("FilesAdded",function(e,t){e.files=t,s(i).fadeIn()}),uploader.bind("BeforeUpload",function(e,t){if(t.name.toLowerCase().endsWith(".heic")&&!n.is_imagick_enabled)return s("#soliloquy-upload-error").html(`<div class="error fade"><p>${n.heic_error_text}</p></div>`),!1}),uploader.bind("UploadProgress",function(e,t){s(l).css({width:e.total.percent+"%"})}),uploader.bind("FileUploaded",function(e,t,i){s.post(n.ajax,{action:"soliloquy_load_image",nonce:n.load_image,id:i.response,post_id:n.id},function(e){"before"===n.media_position?s(o).prepend(e):s(o).append(e),s(a).trigger("soliloquyUploaded"),s(e).find(".wp-editor-container").each(function(e,t){t=s(t).attr("id").split("-")[4];quicktags({id:"soliloquy-caption-"+t,buttons:"strong,em,link,ul,ol,li,close"}),QTags._buttonsInit()});const t=s("#soliloquy-output li").length;s(".soliloquy-count").text(t.toString()),0<t&&(s("#soliloquy-empty-slider").fadeOut().addClass("soliloquy-hidden"),s(".soliloquy-slide-header").removeClass("soliloquy-hidden").fadeIn())},"json")}),uploader.bind("UploadComplete",function(){s(i).fadeOut()}),uploader.bind("Error",function(e,t){s("#soliloquy-upload-error").html('<div class="error fade"><p>'+t.file.name+": "+t.message+"</p></div>"),e.refresh()})}})}(jQuery,(window,document),soliloquy_media_uploader),function(n,d){"use strict";const e=d.location.hash,o=d.location.hash.replace("!","");if(e&&0<=e.indexOf("soliloquy-tab")){let e=n(o.replace("tab_","")),t=e.parent(),i=e.parent().parent().find("ul.soliloquy-tabs-nav"),l=n("#post").attr("action");t.find(".soliloquy-tab-active").removeClass("soliloquy-tab-active"),e.addClass("soliloquy-tab-active"),i.find(".soliloquy-tab-nav-active").removeClass("soliloquy-tab-nav-active"),i.find('a[href="'+o.replace("tab_","")+'"]').parent().addClass("soliloquy-tab-nav-active"),l&&(l=l.split("#")[0],n("#post").attr("action",l+d.location.hash)),n("body").trigger("SoliloquyTabChange")}n(function(){n("[data-soliloquy-tab]").on("click",function(e){e.preventDefault();const t=n(this),i=t.attr("data-tab-id"),l=t.parent(),o=l.parent(),s=l.attr("data-update-hashbang"),a=void 0!==t.attr("href")?"tab_"+t.attr("href"):"tab_"+i;if(!t.hasClass("soliloquy-tab-nav-active")){if(o.find(".soliloquy-tab-active").removeClass("soliloquy-tab-active"),l.find(".soliloquy-tab-nav-active").removeClass("soliloquy-tab-nav-active"),t.addClass("soliloquy-tab-nav-active"),n("#"+i).addClass("soliloquy-tab-active"),t.trigger("SoliloquyTabChange"),"soliloquy-native"===i&&!0!==n("#soliloquy-type-default").prop("checked")&&(n("#soliloquy-types-nav li").removeClass("soliloquy-active"),n("#soliloquy-type-default").prop("checked",!0).trigger("change")),"1"===s){d.location.hash=a.split("#").join("#!");let e=n("#post").attr("action");e&&(e=e.split("#")[0],n("#post").attr("action",e+d.location.hash))}return!1}})})}(jQuery,window,document); \ No newline at end of file @@ -1 +1 @@ -function soliloquyIsMobile(){var e,t=!1;return e=navigator.userAgent||navigator.vendor||window.opera,(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,4)))&&(t=!0),t}function soliloquyYouTubeVids(e,t,i,s,n,o,l){o("#"+n).show().css({display:"block","z-index":"1210"}),player=l,YT.Player&&void 0===soliloquy_youtube[t]&&(soliloquy_youtube[t]=new YT.Player(n,{videoId:t,playerVars:e,events:{onStateChange:soliloquyYouTubeOnStateChange}}))}function soliloquyYouTubeOnStateChange(e){var t=jQuery(e.target.getIframe()).data("soliloquy-slider-id");e.data!==YT.PlayerState.PAUSED&&e.data!==YT.PlayerState.ENDED||soliloquy_slider[t]&&soliloquy_slider[t].getSetting("auto")&&soliloquy_slider[t].startAuto(),e.data!==YT.PlayerState.PLAYING&&e.data!==YT.PlayerState.BUFFERING||soliloquy_slider[t]&&soliloquy_slider[t].stopAuto()}function onYouTubeIframeAPIReady(){}function soliloquyVimeoVids(e,t,i,s,n,o){if(o("#"+n).show().css({display:"block","z-index":"1210"}),$f){var l={};o.each(o("#"+n)[0].attributes,function(e,t){l[t.nodeName]=t.nodeValue}),e.player_id=n,l.src="//player.vimeo.com/video/"+t+"?"+o.param(e),l.frameborder=0,o("#"+n).replaceWith(function(){return o("<iframe />",l).append(o(this).contents())}),soliloquy_vimeo[t]=$f(o("#"+n)[0]);var a=o("#"+n).data("soliloquy-slider-id");soliloquy_vimeo[t].addEvent("ready",function(){soliloquy_slider[a]&&soliloquy_slider[a].stopAuto(),soliloquy_vimeo[t].addEvent("play",function(){soliloquy_slider[a]&&soliloquy_slider[a].stopAuto()}),soliloquy_vimeo[t].addEvent("pause",function(){soliloquy_slider[a].getSetting("auto")&&soliloquy_slider[a].startAuto()}),soliloquy_vimeo[t].addEvent("finish",function(){soliloquy_slider[a].getSetting("auto")&&soliloquy_slider[a].startAuto()})})}}function soliloquyVimeoSliderPause(e){var t=jQuery("#"+e).data("soliloquy-slider-id");soliloquy_slider[t]&&soliloquy_slider[t].stopAuto()}function soliloquyVimeoSliderStart(e){var t=jQuery("#"+e).data("soliloquy-slider-id");soliloquy_slider[t]&&soliloquy_slider[t].getSetting("auto")&&soliloquy_slider[t].startAuto()}function soliloquyWistiaVids(e,t,i,s,n,o){if(o("#"+n).show().css({display:"block","z-index":"1210"}),wistiaEmbeds){var l={};o.each(o("#"+n)[0].attributes,function(e,t){l[t.nodeName]=t.nodeValue}),e.container=n,l.src="//fast.wistia.net/embed/iframe/"+t+"?"+o.param(e),l.frameborder=0,o("#"+n).replaceWith(function(){return o("<iframe />",l).addClass("wistia_embed").append(o(this).contents())}),wistiaEmbeds.onFind(function(e){t===e.hashedId()&&(soliloquy_wistia[t]=e,soliloquy_wistia[t].bind("play",function(){var e=o(this.container).data("soliloquy-slider-id");soliloquy_slider[e]&&soliloquy_slider[e].stopAuto()}),soliloquy_wistia[t].bind("pause",function(){var e=o(this.container).data("soliloquy-slider-id");soliloquy_slider[e]&&soliloquy_slider[e].getSetting("auto")&&soliloquy_slider[e].startAuto()}),soliloquy_wistia[t].bind("end",function(){var e=o(this.container).data("soliloquy-slider-id");soliloquy_slider[e]&&soliloquy_slider[e].getSetting("auto")&&soliloquy_slider[e].startAuto()}),e.play())})}}function soliloquyLocalVids(e,t,i,s,n,o){o("#"+n).show().css({display:"block","z-index":"1210"});var l={};o.each(o("#"+n)[0].attributes,function(e,t){l[t.nodeName]=t.nodeValue});var a=[];1===e.playpause&&a.push("playpause"),1===e.progress&&a.push("progress"),1===e.current&&a.push("current"),1===e.duration&&a.push("duration"),1===e.volume&&a.push("volume"),1===e.fullscreen&&a.push("fullscreen"),soliloquy_local[t]=new MediaElementPlayer("video#"+n,{features:a,success:function(t,i){1==e.autoplay&&t.play()}})}function soliloquyInitManually(){jQuery(document).ready(function($){var soliloquy_sliders=[];$(".soliloquy-outer-container[data-soliloquy-loaded='0']").each(function(){soliloquy_sliders.push($(".soliloquy-container",$(this)).attr("id").replace(/^\D+/g,""))}),soliloquy_sliders.length>0&&$.post(soliloquy_ajax.ajax,{action:"soliloquy_init_sliders",ajax_nonce:soliloquy_ajax.ajax_nonce,ids:soliloquy_sliders},function(response){"-1"!==response&&"0"!==response&&eval(response)})})}!function(e,t,s,n){var o={keyboard:!1,mode:"horizontal",slideSelector:"",infiniteLoop:!0,hideControlOnEnd:!1,speed:500,captionSpeed:0,easing:null,slideMargin:0,startSlide:0,randomStart:!1,captions:!1,ticker:!1,tickerHover:!1,adaptiveHeight:!1,adaptiveHeightSpeed:500,video:!1,useCSS:!0,preloadImages:"visible",responsive:!0,slideZIndex:50,wrapperClass:"soliloquy-wrapper",touchEnabled:!0,swipeThreshold:50,oneToOneTouch:!0,preventDefaultSwipeX:!0,preventDefaultSwipeY:!1,pager:!0,pagerType:"full",pagerShortSeparator:" / ",pagerSelector:null,buildPager:null,pagerCustom:null,controls:!0,nextText:"Next",prevText:"Prev",nextSelector:null,prevSelector:null,autoControls:!1,startText:"Start",stopText:"Stop",autoControlsCombine:!1,autoControlsSelector:null,auto:!1,pause:4e3,autoStart:!0,autoDirection:"next",autoHover:!1,autoDelay:0,autoSlideForOnePage:!1,minSlides:1,maxSlides:1,moveSlides:0,slideWidth:0,onSliderLoad:function(){},onSlideBefore:function(){},onSlideAfter:function(){},onSlideNext:function(){},onSlidePrev:function(){},onSliderResize:function(){}};e.fn.soliloquy=function(n){if(0===this.length)return this;if(this.length>1)return this.each(function(){e(this).soliloquy(n)}),this;var l={},a=this,r=e(t).width(),d=e(t).height(),c=function(){l.settings=e.extend({},o,n),l.settings.slideWidth=parseInt(l.settings.slideWidth),l.children=a.children(l.settings.slideSelector),l.children.length<l.settings.minSlides&&(l.settings.minSlides=l.children.length),l.children.length<l.settings.maxSlides&&(l.settings.maxSlides=l.children.length),l.settings.randomStart&&(l.settings.startSlide=Math.floor(Math.random()*l.children.length)),l.active={index:l.settings.startSlide},l.carousel=l.settings.minSlides>1||l.settings.maxSlides>1,l.carousel&&(l.settings.preloadImages="all"),l.minThreshold=l.settings.minSlides*l.settings.slideWidth+(l.settings.minSlides-1)*l.settings.slideMargin,l.maxThreshold=l.settings.maxSlides*l.settings.slideWidth+(l.settings.maxSlides-1)*l.settings.slideMargin,l.working=!1,l.controls={},l.interval=null,l.animProp="vertical"==l.settings.mode?"top":"left",l.usingCSS=l.settings.useCSS&&"fade"!=l.settings.mode&&function(){var e=s.createElement("div"),t=["WebkitPerspective","MozPerspective","OPerspective","msPerspective"];for(var i in t)if(void 0!==e.style[t[i]])return l.cssPrefix=t[i].replace("Perspective","").toLowerCase(),l.animProp="-"+l.cssPrefix+"-transform",!0;return!1}(),"vertical"==l.settings.mode&&(l.settings.maxSlides=l.settings.minSlides),a.data("origStyle",a.attr("style")),a.children(l.settings.slideSelector).each(function(){e(this).data("origStyle",e(this).attr("style"))}),u()},u=function(){a.wrap('<div class="'+l.settings.wrapperClass+'"><div class="soliloquy-viewport"></div></div>'),l.viewport=a.parent(),l.loader=e('<div class="soliloquy-loading" />'),l.viewport.prepend(l.loader),a.css({width:"horizontal"==l.settings.mode?100*l.children.length+215+"%":"auto",position:"relative"}),l.usingCSS&&l.settings.easing?a.css("-"+l.cssPrefix+"-transition-timing-function",l.settings.easing):l.settings.easing||(l.settings.easing="swing");m();l.viewport.css({width:"100%",position:"relative"}),"fade"!=l.settings.mode&&l.viewport.css({overflow:"hidden"}),l.viewport.parent().css({maxWidth:v()}),l.settings.pager||l.viewport.parent().css({margin:"0 auto 0px"}),l.children.css({float:"left",listStyle:"none",position:"relative"}),l.children.css("width",f()),"horizontal"==l.settings.mode&&l.settings.slideMargin>0&&l.children.css("marginRight",l.settings.slideMargin),"vertical"==l.settings.mode&&l.settings.slideMargin>0&&l.children.css("marginBottom",l.settings.slideMargin),"fade"==l.settings.mode&&(l.children.css({zIndex:0,display:"none",marginRight:"-100%",width:"100%"}),l.children.eq(l.settings.startSlide).css({zIndex:l.settings.slideZIndex,display:"block"})),l.controls.el=e('<div class="soliloquy-controls" />'),l.settings.captions&&E(),l.active.last=l.settings.startSlide==y()-1;var t=l.children.eq(l.settings.startSlide);"all"==l.settings.preloadImages&&(t=l.children),l.settings.ticker?l.settings.pager=!1:(l.settings.pager&&b(),l.settings.controls&&T(),l.settings.auto&&l.settings.autoControls&&k(),(l.settings.controls||l.settings.autoControls||l.settings.pager)&&l.viewport.after(l.controls.el)),g(t,h)},g=function(t,i){var s=t.find('img:not([src=""]), iframe').length,n=0;0!==s?t.find('img:not([src=""]), iframe').each(function(){e(this).one("load error",function(){++n===s&&i()}).each(function(){this.complete&&e(this).load()})}):i()},h=function(){if(l.settings.infiniteLoop&&"fade"!=l.settings.mode&&!l.settings.ticker&&l.children.length>1){var i="vertical"==l.settings.mode?l.settings.minSlides:l.settings.maxSlides,s=l.children.slice(0,i).clone(!0).addClass("soliloquy-clone"),n=l.children.slice(-i).clone(!0).addClass("soliloquy-clone");a.append(s).prepend(n)}l.loader.remove(),S(),"vertical"==l.settings.mode&&(l.settings.adaptiveHeight=!0),l.viewport.height(p()),a.redrawSlider(),l.settings.onSliderLoad(l.active.index),l.initialized=!0,l.settings.responsive&&e(t).bind("resize",X),l.settings.auto&&l.settings.autoStart&&(y()>1||l.settings.autoSlideForOnePage)&&L(),l.settings.ticker&&W(),l.settings.pager&&I(l.settings.startSlide),l.settings.controls&&H(),l.settings.touchEnabled&&!l.settings.ticker&&j(),l.settings.keyboard&&!l.settings.ticker&&e("body").on("keydown",function(e){if("textarea"!=e.target.type&&"input"!=e.target.type)return 39==e.keyCode?(C(e),!1):37==e.keyCode?(z(e),!1):void 0})},p=function(){var t=0,s=e();if("vertical"==l.settings.mode||l.settings.adaptiveHeight)if(l.carousel){var n=1==l.settings.moveSlides?l.active.index:l.active.index*x();for(s=l.children.eq(n),i=1;i<=l.settings.maxSlides-1;i++)s=n+i>=l.children.length?s.add(l.children.eq(i-1)):s.add(l.children.eq(n+i))}else s=l.children.eq(l.active.index);else s=l.children;return"vertical"==l.settings.mode?(s.each(function(i){t+=e(this).outerHeight()}),l.settings.slideMargin>0&&(t+=l.settings.slideMargin*(l.settings.minSlides-1))):t=Math.max.apply(Math,s.map(function(){return e(this).outerHeight(!1)}).get()),"border-box"==l.viewport.css("box-sizing")?t+=parseFloat(l.viewport.css("padding-top"))+parseFloat(l.viewport.css("padding-bottom"))+parseFloat(l.viewport.css("border-top-width"))+parseFloat(l.viewport.css("border-bottom-width")):"padding-box"==l.viewport.css("box-sizing")&&(t+=parseFloat(l.viewport.css("padding-top"))+parseFloat(l.viewport.css("padding-bottom"))),t},v=function(){var e="100%";return l.settings.slideWidth>0&&(e="horizontal"==l.settings.mode?l.settings.maxSlides*l.settings.slideWidth+(l.settings.maxSlides-1)*l.settings.slideMargin:l.settings.slideWidth),"fade"==l.settings.mode?"100%":e},f=function(){var e=l.settings.slideWidth,t=l.viewport.width();return 0===l.settings.slideWidth||l.settings.slideWidth>t&&!l.carousel||"vertical"===l.settings.mode?e=t:l.settings.maxSlides>1&&"horizontal"===l.settings.mode&&(t>l.maxThreshold||t<l.minThreshold&&(e=(t-l.settings.slideMargin*(l.settings.minSlides-1))/l.settings.minSlides)),"fade"==l.settings.mode?"100%":e},m=function(){var e=1;if("horizontal"===l.settings.mode&&l.settings.slideWidth>0)if(l.viewport.width()<l.minThreshold)e=l.settings.minSlides;else if(l.viewport.width()>l.maxThreshold)e=l.settings.maxSlides;else{var t=l.children.first().width()+l.settings.slideMargin;e=Math.floor((l.viewport.width()+l.settings.slideMargin)/t)}else"vertical"===l.settings.mode&&(e=l.settings.minSlides);return e},y=function(){var e=0;if(l.settings.moveSlides>0)if(l.settings.infiniteLoop)e=Math.ceil(l.children.length/x());else for(var t=0,i=0;t<l.children.length;)++e,t=i+m(),i+=l.settings.moveSlides<=m()?l.settings.moveSlides:m();else e=Math.ceil(l.children.length/m());return e},x=function(){return l.settings.moveSlides>0&&l.settings.moveSlides<=m()?l.settings.moveSlides:m()},S=function(){if(l.children.length>l.settings.maxSlides&&l.active.last&&!l.settings.infiniteLoop){if("horizontal"===l.settings.mode){var e=l.children.last(),t=e.position();w(-(t.left-(l.viewport.width()-e.outerWidth())),"reset",0)}else if("vertical"===l.settings.mode){var i=l.children.length-l.settings.minSlides;t=l.children.eq(i).position();w(-t.top,"reset",0)}}else if(l.settings.infiniteLoop){s=l.active.index*x(),t=l.children.eq(s).position();l.active.index===y()-1&&(l.active.last=!0),void 0!=t&&("horizontal"===l.settings.mode&&l.children.length<=1?(t.left=l.active.index*l.children.eq(s).outerWidth(!0),w(-t.left,"reset",0)):"horizontal"!==l.settings.mode||l.carousel?"vertical"===l.settings.mode?(t.top=(l.active.index+1)*l.children.eq(s).outerHeight(!0),w(-t.top,"reset",0)):l.carousel&&"horizontal"===l.settings.mode&&l.settings.infiniteLoop&&(t.left=(l.active.index+1)*l.children.eq(s).outerWidth(!0),w(-t.left*l.settings.maxSlides,"reset",0)):(t.left=(l.active.index+1)*l.children.eq(s).outerWidth(!0),w(-t.left,"reset",0)))}else{var s=l.active.index,t=l.children.eq(s).position();l.active.index===y()-1&&(l.active.last=!0),void 0!=t&&("horizontal"!==l.settings.mode||l.carousel?"vertical"===l.settings.mode&&(t.top=l.active.index*l.children.eq(s).outerHeight(!0),w(-t.top,"reset",0)):(t.left=l.active.index*l.children.eq(s).outerWidth(!0),w(-t.left,"reset",0)))}},w=function(e,t,i,s){if(l.usingCSS){var n="vertical"===l.settings.mode?"translate3d(0, "+e+"px, 0)":"translate3d("+e+"px, 0, 0)";a.css("-"+l.cssPrefix+"-transition-duration",i/1e3+"s"),"slide"===t?(a.css(l.animProp,n),a.bind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(){a.unbind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd"),A()})):"reset"===t?a.css(l.animProp,n):"ticker"===t&&(a.css("-"+l.cssPrefix+"-transition-timing-function","linear"),a.css(l.animProp,n),a.bind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(){a.unbind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd"),w(s.resetValue,"reset",0),Y()}))}else{var o={};o[l.animProp]=e,"slide"===t?a.animate(o,i,l.settings.easing,function(){A()}):"reset"===t?a.css(l.animProp,e):"ticker"===t&&a.animate(o,speed,"linear",function(){w(s.resetValue,"reset",0),Y()})}},q=function(){for(var t="",i=y(),s=0;s<i;s++){var n="";l.settings.buildPager&&e.isFunction(l.settings.buildPager)?(n=l.settings.buildPager(s),l.pagerEl.addClass("soliloquy-custom-pager")):(n=s+1,l.pagerEl.addClass("soliloquy-default-pager")),t+='<div class="soliloquy-pager-item"><a href="" data-slide-index="'+s+'" class="soliloquy-pager-link" tabindex="0"><span>'+n+"</span></a></div>"}l.pagerEl.html(t)},b=function(){l.settings.pagerCustom?l.pagerEl=e(l.settings.pagerCustom):l.pagerEl=e('<div class="soliloquy-pager" />'),l.settings.pagerSelector?e(l.settings.pagerSelector).html(l.pagerEl):l.controls.el.addClass("soliloquy-has-pager").append(l.pagerEl),l.settings.pagerCustom||q(),l.pagerEl.on("click","a",M)},T=function(){l.controls.next=e('<a class="soliloquy-next" href="" tabindex="0"><span>'+l.settings.nextText+"</span></a>"),l.controls.prev=e('<a class="soliloquy-prev" href="" tabindex="0"><span>'+l.settings.prevText+"</span></a>"),l.controls.next.bind("click",C),l.controls.prev.bind("click",z),l.settings.nextSelector&&e(l.settings.nextSelector).append(l.controls.next),l.settings.prevSelector&&e(l.settings.prevSelector).append(l.controls.prev),l.settings.nextSelector||l.settings.prevSelector||(l.controls.directionEl=e('<div class="soliloquy-controls-direction" />'),l.controls.directionEl.append(l.controls.prev).append(l.controls.next),l.controls.el.addClass("soliloquy-has-controls-direction").append(l.controls.directionEl))},k=function(){l.controls.start=e('<div class="soliloquy-controls-auto-item"><a class="soliloquy-start" href="" aria-label="play" tabindex="0"><span>'+l.settings.startText+"</span></a></div>"),l.controls.stop=e('<div class="soliloquy-controls-auto-item"><a class="soliloquy-stop" href="" aria-label="pause" tabindex="0"><span>'+l.settings.stopText+"</span></a></div>"),l.controls.autoEl=e('<div class="soliloquy-controls-auto" />'),l.controls.autoEl.on("click",".soliloquy-start",P),l.controls.autoEl.on("click",".soliloquy-stop",_),l.settings.autoControlsCombine?l.controls.autoEl.append(l.controls.start):l.controls.autoEl.append(l.controls.start).append(l.controls.stop),l.settings.autoControlsSelector?e(l.settings.autoControlsSelector).html(l.controls.autoEl):l.controls.el.addClass("soliloquy-has-controls-auto").append(l.controls.autoEl),D(l.settings.autoStart?"stop":"start")},E=function(){l.children.each(function(t){var i=e(this).find("img:first").attr("title");void 0!=i&&(""+i).length&&e(this).append('<div class="soliloquy-caption"><span>'+i+"</span></div>")})},C=function(e){l.settings.auto&&a.stopAuto(),a.goToNextSlide(),e.preventDefault()},z=function(e){l.settings.auto&&a.stopAuto(),a.goToPrevSlide(),e.preventDefault()},P=function(e){a.startAuto(),e.preventDefault()},_=function(e){a.stopAuto(),e.preventDefault()},M=function(t){l.settings.auto&&a.stopAuto();var i=e(t.currentTarget);if(void 0!==i.attr("data-slide-index")){var s=parseInt(i.attr("data-slide-index"));s!=l.active.index&&a.goToSlide(s),t.preventDefault()}},I=function(t){var i=l.children.length;if("short"===l.settings.pagerType)return l.settings.maxSlides>1&&(i=Math.ceil(l.children.length/l.settings.maxSlides)),void l.pagerEl.html(t+1+l.settings.pagerShortSeparator+i);l.pagerEl.find("a").removeClass("active"),l.pagerEl.each(function(i,s){e(s).find("a").eq(t).addClass("active")})},A=function(){if(l.settings.infiniteLoop){var e="";0===l.active.index?e=l.children.eq(0).position():l.active.index==y()-1&&l.carousel?e=l.children.eq((y()-1)*x()).position():l.active.index==l.children.length-1&&(e=l.children.eq(l.children.length-1).position()),e&&("horizontal"===l.settings.mode?w(-e.left,"reset",0):"vertical"===l.settings.mode&&w(-e.top,"reset",0))}l.working=!1,"fade"==l.settings.mode&&l.viewport.css({overflow:""}),l.settings.onSlideAfter(l.children.eq(l.active.index),l.oldIndex,l.active.index)},D=function(e){l.settings.autoControlsCombine?l.controls.autoEl&&l.controls.autoEl.html(l.controls[e]):(l.controls.autoEl.find("a").removeClass("active"),l.controls.autoEl.find("a:not(.soliloquy-"+e+")").addClass("active"))},H=function(){1==y()?(l.controls.prev.addClass("disabled"),l.controls.next.addClass("disabled")):!l.settings.infiniteLoop&&l.settings.hideControlOnEnd&&(0==l.active.index?(l.controls.prev.addClass("disabled"),l.controls.next.removeClass("disabled")):l.active.index==y()-1?(l.controls.next.addClass("disabled"),l.controls.prev.removeClass("disabled")):(l.controls.prev.removeClass("disabled"),l.controls.next.removeClass("disabled")))},L=function(){if(l.settings.autoDelay>0)setTimeout(a.startAuto,l.settings.autoDelay);else a.startAuto();l.settings.autoHover&&a.hover(function(){l.interval&&(a.stopAuto(!0),l.autoPaused=!0)},function(){l.autoPaused&&(a.startAuto(!0),l.autoPaused=null)})},W=function(){var t=0;if("next"==l.settings.autoDirection)a.append(l.children.clone().addClass("soliloquy-clone"));else{a.prepend(l.children.clone().addClass("soliloquy-clone"));var i=l.children.first().position();t="horizontal"==l.settings.mode?-i.left:-i.top}w(t,"reset",0),l.settings.pager=!1,l.settings.controls=!1,l.settings.autoControls=!1,l.settings.tickerHover&&!l.usingCSS&&l.viewport.hover(function(){a.stop()},function(){var t=0;l.children.each(function(i){t+="horizontal"==l.settings.mode?e(this).outerWidth(!0):e(this).outerHeight(!0)});var i=l.settings.speed/t,s="horizontal"==l.settings.mode?"left":"top",n=i*(t-Math.abs(parseInt(a.css(s))));Y(n)}),Y()},Y=function(e){speed=e||l.settings.speed;var t={left:0,top:0},i={left:0,top:0};"next"==l.settings.autoDirection?t=a.find(".soliloquy-clone").first().position():i=l.children.first().position();var s="horizontal"==l.settings.mode?-t.left:-t.top,n="horizontal"==l.settings.mode?-i.left:-i.top;w(s,"ticker",speed,{resetValue:n})},j=function(){l.touch={start:{x:0,y:0},end:{x:0,y:0}},l.viewport.bind("touchstart",O)},O=function(e){if(l.working)e.preventDefault();else{l.touch.originalPos=a.position();var t=e.originalEvent;l.touch.start.x=t.changedTouches[0].pageX,l.touch.start.y=t.changedTouches[0].pageY,l.viewport.bind("touchmove",N),l.viewport.bind("touchend",V)}},N=function(e){var t=e.originalEvent,i=Math.abs(t.changedTouches[0].pageX-l.touch.start.x),s=Math.abs(t.changedTouches[0].pageY-l.touch.start.y);if(3*i>s&&l.settings.preventDefaultSwipeX?e.preventDefault():3*s>i&&l.settings.preventDefaultSwipeY&&e.preventDefault(),"fade"!=l.settings.mode&&l.settings.oneToOneTouch){var n=0;if("horizontal"==l.settings.mode){var o=t.changedTouches[0].pageX-l.touch.start.x;n=l.touch.originalPos.left+o}else{o=t.changedTouches[0].pageY-l.touch.start.y;n=l.touch.originalPos.top+o}w(n,"reset",0)}},V=function(e){l.viewport.unbind("touchmove",N);var t=e.originalEvent,i=0;if(l.touch.end.x=t.changedTouches[0].pageX,l.touch.end.y=t.changedTouches[0].pageY,"fade"==l.settings.mode){(s=Math.abs(l.touch.start.x-l.touch.end.x))>=l.settings.swipeThreshold&&(l.touch.start.x>l.touch.end.x?a.goToNextSlide():a.goToPrevSlide(),a.stopAuto())}else{var s=0;"horizontal"==l.settings.mode?(s=l.touch.end.x-l.touch.start.x,i=l.touch.originalPos.left):(s=l.touch.end.y-l.touch.start.y,i=l.touch.originalPos.top),!l.settings.infiniteLoop&&(0==l.active.index&&s>0||l.active.last&&s<0)?w(i,"reset",200):Math.abs(s)>=l.settings.swipeThreshold?(s<0?a.goToNextSlide():a.goToPrevSlide(),a.stopAuto()):w(i,"reset",200)}l.viewport.unbind("touchend",V)},X=function(i){if(l.initialized){var s=e(t).width(),n=e(t).height();r==s&&d==n||(r=s,d=n,a.redrawSlider(),l.settings.onSliderResize.call(a,l.active.index))}};return a.goToSlide=function(t,i){if(!l.working&&l.active.index!=t)if(l.working=!0,l.oldIndex=l.active.index,t<0?l.active.index=y()-1:t>=y()?l.active.index=0:l.active.index=t,l.settings.onSlideBefore(l.children.eq(l.active.index),l.oldIndex,l.active.index,l.children.eq(l.oldIndex)),"next"==i?l.settings.onSlideNext(l.children.eq(l.active.index),l.oldIndex,l.active.index):"prev"==i&&l.settings.onSlidePrev(l.children.eq(l.active.index),l.oldIndex,l.active.index),l.active.last=l.active.index>=y()-1,l.settings.pager&&I(l.active.index),l.settings.controls&&H(),"fade"==l.settings.mode)l.viewport.css({overflow:"hidden"}),l.settings.adaptiveHeight&&l.viewport.height()!=p()&&l.viewport.animate({height:p()},l.settings.adaptiveHeightSpeed),l.children.filter(":visible").fadeOut(l.settings.speed).css({zIndex:0}),l.children.eq(l.active.index).css("zIndex",l.settings.slideZIndex+1).fadeIn(l.settings.speed,function(){e(this).css("zIndex",l.settings.slideZIndex),A()});else{l.settings.adaptiveHeight&&l.viewport.height()!=p()&&l.viewport.animate({height:p()},l.settings.adaptiveHeightSpeed);var s=0,n={left:0,top:0};if(!l.settings.infiniteLoop&&l.carousel&&l.active.last)if("horizontal"==l.settings.mode){n=(r=l.children.eq(l.children.length-1)).position(),s=l.viewport.width()-r.outerWidth()}else{var o=l.children.length-l.settings.minSlides;n=l.children.eq(o).position()}else if(l.carousel&&l.active.last&&"prev"==i){var r,d=1==l.settings.moveSlides?l.settings.maxSlides-x():(y()-1)*x()-(l.children.length-l.settings.maxSlides);n=(r=a.children(".soliloquy-clone").eq(d)).position()}else if("next"==i&&0==l.active.index)n=a.find("> .soliloquy-clone").eq(l.settings.maxSlides).position(),l.active.last=!1;else if(t>=0){var c=t*x();n=l.children.eq(c).position()}if(void 0!==n){var u="horizontal"==l.settings.mode?-(n.left-s):-n.top;w(u,"slide",l.settings.speed)}}},a.goToNextSlide=function(){if(l.settings.infiniteLoop||!l.active.last){var e=parseInt(l.active.index)+1;a.goToSlide(e,"next")}},a.goToPrevSlide=function(){if(l.settings.infiniteLoop||0!=l.active.index){var e=parseInt(l.active.index)-1;a.goToSlide(e,"prev")}},a.startAuto=function(e){l.interval||(l.interval=setInterval(function(){"next"==l.settings.autoDirection?a.goToNextSlide():a.goToPrevSlide()},l.settings.pause),l.settings.autoControls&&1!=e&&D("stop"))},a.stopAuto=function(e){l.interval&&(clearInterval(l.interval),l.interval=null,l.settings.autoControls&&1!=e&&D("start"))},a.getCurrentSlide=function(){return l.active.index},a.getCurrentSlideElement=function(){return l.children.eq(l.active.index)},a.getSlideCount=function(){return l.children.length},a.redrawSlider=function(){l.children.add(a.find(".soliloquy-clone")).width(f()),l.viewport.css("height",p()),l.settings.ticker||S(),l.active.last&&(l.active.index=y()-1),l.active.index>=y()&&(l.active.last=!0),l.settings.pager&&!l.settings.pagerCustom&&(q(),I(l.active.index))},a.destroySlider=function(){l.initialized&&(l.initialized=!1,e(".soliloquy-clone",this).remove(),l.children.each(function(){void 0!==e(this).data("origStyle")?e(this).attr("style",e(this).data("origStyle")):e(this).removeAttr("style")}),void 0!==e(this).data("origStyle")?this.attr("style",e(this).data("origStyle")):e(this).removeAttr("style"),e(this).unwrap().unwrap(),l.controls.el&&l.controls.el.remove(),l.controls.next&&l.controls.next.remove(),l.controls.prev&&l.controls.prev.remove(),l.pagerEl&&l.settings.controls&&l.pagerEl.remove(),e(".soliloquy-caption",this).remove(),l.controls.autoEl&&l.controls.autoEl.remove(),clearInterval(l.interval),l.settings.responsive&&e(t).unbind("resize",X))},a.reloadSlider=function(e){void 0!==e&&(n=e),a.destroySlider(),c()},a.getSetting=function(e){return!!l.settings[e]&&l.settings[e]},c(),this}}(jQuery,window,document),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e:e(jQuery)}(function(e){var t,i,s=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],n="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],o=Array.prototype.slice;if(e.event.fixHooks)for(var l=s.length;l;)e.event.fixHooks[s[--l]]=e.event.mouseHooks;var a=e.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var t=n.length;t;)this.addEventListener(n[--t],r,!1);else this.onmousewheel=r;e.data(this,"mousewheel-line-height",a.getLineHeight(this)),e.data(this,"mousewheel-page-height",a.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var t=n.length;t;)this.removeEventListener(n[--t],r,!1);else this.onmousewheel=null;e.removeData(this,"mousewheel-line-height"),e.removeData(this,"mousewheel-page-height")},getLineHeight:function(t){var i=e(t),s=i["offsetParent"in e.fn?"offsetParent":"parent"]();return s.length||(s=e("body")),parseInt(s.css("fontSize"),10)||parseInt(i.css("fontSize"),10)||16},getPageHeight:function(t){return e(t).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};function r(s){var n,l=s||window.event,r=o.call(arguments,1),u=0,g=0,h=0,p=0,v=0;if((s=e.event.fix(l)).type="mousewheel","detail"in l&&(h=-1*l.detail),"wheelDelta"in l&&(h=l.wheelDelta),"wheelDeltaY"in l&&(h=l.wheelDeltaY),"wheelDeltaX"in l&&(g=-1*l.wheelDeltaX),"axis"in l&&l.axis===l.HORIZONTAL_AXIS&&(g=-1*h,h=0),u=0===h?g:h,"deltaY"in l&&(u=h=-1*l.deltaY),"deltaX"in l&&(g=l.deltaX,0===h&&(u=-1*g)),0!==h||0!==g){if(1===l.deltaMode){var f=e.data(this,"mousewheel-line-height");u*=f,h*=f,g*=f}else if(2===l.deltaMode){var m=e.data(this,"mousewheel-page-height");u*=m,h*=m,g*=m}if(n=Math.max(Math.abs(h),Math.abs(g)),(!i||n<i)&&(i=n,c(l,n)&&(i/=40)),c(l,n)&&(u/=40,g/=40,h/=40),u=Math[u>=1?"floor":"ceil"](u/i),g=Math[g>=1?"floor":"ceil"](g/i),h=Math[h>=1?"floor":"ceil"](h/i),a.settings.normalizeOffset&&this.getBoundingClientRect){var y=this.getBoundingClientRect();p=s.clientX-y.left,v=s.clientY-y.top}return s.deltaX=g,s.deltaY=h,s.deltaFactor=i,s.offsetX=p,s.offsetY=v,s.deltaMode=0,r.unshift(s,u,g,h),t&&clearTimeout(t),t=setTimeout(d,200),(e.event.dispatch||e.event.handle).apply(this,r)}}function d(){i=null}function c(e,t){return a.settings.adjustOldDeltas&&"mousewheel"===e.type&&t%120==0}e.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}})}); \ No newline at end of file +function soliloquyIsMobile(){let e=!1;var t;return t=navigator.userAgent||navigator.vendor||window.opera,(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substr(0,4)))&&(e=!0),e}function soliloquyYouTubeVids(e,t,i,s,n,o,l){o("#"+n).show().css({display:"block","z-index":"1210"}),player=l,YT.Player&&void 0===soliloquy_youtube[t]&&(soliloquy_youtube[t]=new YT.Player(n,{videoId:t,playerVars:e,events:{onStateChange:soliloquyYouTubeOnStateChange}}))}function soliloquyYouTubeOnStateChange(e){const t=jQuery(e.target.getIframe()).data("soliloquy-slider-id");e.data!==YT.PlayerState.PAUSED&&e.data!==YT.PlayerState.ENDED||soliloquy_slider[t]&&soliloquy_slider[t].getSetting("auto")&&soliloquy_slider[t].startAuto(),e.data!==YT.PlayerState.PLAYING&&e.data!==YT.PlayerState.BUFFERING||soliloquy_slider[t]&&soliloquy_slider[t].stopAuto()}function soliloquyVimeoVids(e,t,i,s,n,o){if(o("#"+n).show().css({display:"block","z-index":"1210"}),$f){const i={};o.each(o("#"+n)[0].attributes,function(e,t){i[t.nodeName]=t.nodeValue}),e.player_id=n,i.src="//player.vimeo.com/video/"+t+"?"+o.param(e),i.frameborder=0,o("#"+n).replaceWith(function(){return o("<iframe />",i).append(o(this).contents())}),soliloquy_vimeo[t]=$f(o("#"+n)[0]);const s=o("#"+n).data("soliloquy-slider-id");soliloquy_vimeo[t].addEvent("ready",function(){soliloquy_slider[s]&&soliloquy_slider[s].stopAuto(),soliloquy_vimeo[t].addEvent("play",function(){soliloquy_slider[s]&&soliloquy_slider[s].stopAuto()}),soliloquy_vimeo[t].addEvent("pause",function(){soliloquy_slider[s].getSetting("auto")&&soliloquy_slider[s].startAuto()}),soliloquy_vimeo[t].addEvent("finish",function(){soliloquy_slider[s].getSetting("auto")&&soliloquy_slider[s].startAuto()})})}}function soliloquyVimeoSliderPause(e){const t=jQuery("#"+e).data("soliloquy-slider-id");soliloquy_slider[t]&&soliloquy_slider[t].stopAuto()}function soliloquyVimeoSliderStart(e){const t=jQuery("#"+e).data("soliloquy-slider-id");soliloquy_slider[t]&&soliloquy_slider[t].getSetting("auto")&&soliloquy_slider[t].startAuto()}function soliloquyWistiaVids(e,t,i,s,n,o){if(o("#"+n).show().css({display:"block","z-index":"1210"}),wistiaEmbeds){const i={};o.each(o("#"+n)[0].attributes,function(e,t){i[t.nodeName]=t.nodeValue}),e.container=n,i.src="//fast.wistia.net/embed/iframe/"+t+"?"+o.param(e),i.frameborder=0,o("#"+n).replaceWith(function(){return o("<iframe />",i).addClass("wistia_embed").append(o(this).contents())}),wistiaEmbeds.onFind(function(e){t===e.hashedId()&&(soliloquy_wistia[t]=e,soliloquy_wistia[t].bind("play",function(){const e=o(this.container).data("soliloquy-slider-id");soliloquy_slider[e]&&soliloquy_slider[e].stopAuto()}),soliloquy_wistia[t].bind("pause",function(){const e=o(this.container).data("soliloquy-slider-id");soliloquy_slider[e]&&soliloquy_slider[e].getSetting("auto")&&soliloquy_slider[e].startAuto()}),soliloquy_wistia[t].bind("end",function(){const e=o(this.container).data("soliloquy-slider-id");soliloquy_slider[e]&&soliloquy_slider[e].getSetting("auto")&&soliloquy_slider[e].startAuto()}),e.play())})}}function soliloquyLocalVids(e,t,i,s,n,o){o("#"+n).show().css({display:"block","z-index":"1210"});const l={};o.each(o("#"+n)[0].attributes,function(e,t){l[t.nodeName]=t.nodeValue});const a=[];1===e.playpause&&a.push("playpause"),1===e.progress&&a.push("progress"),1===e.current&&a.push("current"),1===e.duration&&a.push("duration"),1===e.volume&&a.push("volume"),1===e.fullscreen&&a.push("fullscreen"),soliloquy_local[t]=new MediaElementPlayer("video#"+n,{features:a,success:function(t,i){1==e.autoplay&&t.play()}})}function soliloquyInitManually(){jQuery(document).ready(function($){const soliloquy_sliders=[];$(".soliloquy-outer-container[data-soliloquy-loaded='0']").each(function(){soliloquy_sliders.push($(".soliloquy-container",$(this)).attr("id").replace(/^\D+/g,""))}),soliloquy_sliders.length>0&&$.post(soliloquy_ajax.ajax,{action:"soliloquy_init_sliders",ajax_nonce:soliloquy_ajax.ajax_nonce,ids:soliloquy_sliders},function(response){"-1"!==response&&"0"!==response&&eval(response)})})}!function(e,t,s,n){var o={keyboard:!1,mode:"horizontal",slideSelector:"",infiniteLoop:!0,hideControlOnEnd:!1,speed:500,captionSpeed:0,easing:null,slideMargin:0,startSlide:0,randomStart:!1,captions:!1,ticker:!1,tickerHover:!1,adaptiveHeight:!1,adaptiveHeightSpeed:500,video:!1,useCSS:!0,preloadImages:"visible",responsive:!0,slideZIndex:50,wrapperClass:"soliloquy-wrapper",touchEnabled:!0,swipeThreshold:50,oneToOneTouch:!0,preventDefaultSwipeX:!0,preventDefaultSwipeY:!1,pager:!0,pagerType:"full",pagerShortSeparator:" / ",pagerSelector:null,buildPager:null,pagerCustom:null,controls:!0,nextText:"Next",prevText:"Prev",nextSelector:null,prevSelector:null,autoControls:!1,startText:"Start",stopText:"Stop",autoControlsCombine:!1,autoControlsSelector:null,auto:!1,pause:4e3,autoStart:!0,autoDirection:"next",autoHover:!1,autoDelay:0,autoSlideForOnePage:!1,minSlides:1,maxSlides:1,moveSlides:0,slideWidth:0,onSliderLoad:function(){},onSlideBefore:function(){},onSlideAfter:function(){},onSlideNext:function(){},onSlidePrev:function(){},onSliderResize:function(){}};e.fn.soliloquy=function(n){if(0===this.length)return this;if(this.length>1)return this.each(function(){e(this).soliloquy(n)}),this;var l={},a=this,r=e(t).width(),d=e(t).height(),c=function(){l.settings=e.extend({},o,n),l.settings.slideWidth=parseInt(l.settings.slideWidth),l.children=a.children(l.settings.slideSelector),l.children.length<l.settings.minSlides&&(l.settings.minSlides=l.children.length),l.children.length<l.settings.maxSlides&&(l.settings.maxSlides=l.children.length),l.settings.randomStart&&(l.settings.startSlide=Math.floor(Math.random()*l.children.length)),l.active={index:l.settings.startSlide},l.carousel=l.settings.minSlides>1||l.settings.maxSlides>1,l.carousel&&(l.settings.preloadImages="all"),l.minThreshold=l.settings.minSlides*l.settings.slideWidth+(l.settings.minSlides-1)*l.settings.slideMargin,l.maxThreshold=l.settings.maxSlides*l.settings.slideWidth+(l.settings.maxSlides-1)*l.settings.slideMargin,l.working=!1,l.controls={},l.interval=null,l.animProp="vertical"==l.settings.mode?"top":"left",l.usingCSS=l.settings.useCSS&&"fade"!=l.settings.mode&&function(){var e=s.createElement("div"),t=["WebkitPerspective","MozPerspective","OPerspective","msPerspective"];for(var i in t)if(void 0!==e.style[t[i]])return l.cssPrefix=t[i].replace("Perspective","").toLowerCase(),l.animProp="-"+l.cssPrefix+"-transform",!0;return!1}(),"vertical"==l.settings.mode&&(l.settings.maxSlides=l.settings.minSlides),a.data("origStyle",a.attr("style")),a.children(l.settings.slideSelector).each(function(){e(this).data("origStyle",e(this).attr("style"))}),u()},u=function(){a.wrap('<div class="'+l.settings.wrapperClass+'"><div class="soliloquy-viewport"></div></div>'),l.viewport=a.parent(),l.loader=e('<div class="soliloquy-loading" />'),l.viewport.prepend(l.loader),a.css({width:"horizontal"==l.settings.mode?100*l.children.length+215+"%":"auto",position:"relative"}),l.usingCSS&&l.settings.easing?a.css("-"+l.cssPrefix+"-transition-timing-function",l.settings.easing):l.settings.easing||(l.settings.easing="swing");m();l.viewport.css({width:"100%",position:"relative"}),"fade"!=l.settings.mode&&l.viewport.css({overflow:"hidden"}),l.viewport.parent().css({maxWidth:v()}),l.settings.pager||l.viewport.parent().css({margin:"0 auto 0px"}),l.children.css({float:"left",listStyle:"none",position:"relative"}),l.children.css("width",f()),"horizontal"==l.settings.mode&&l.settings.slideMargin>0&&l.children.css("marginRight",l.settings.slideMargin),"vertical"==l.settings.mode&&l.settings.slideMargin>0&&l.children.css("marginBottom",l.settings.slideMargin),"fade"==l.settings.mode&&(l.children.css({zIndex:0,display:"none",marginRight:"-100%",width:"100%"}),l.children.eq(l.settings.startSlide).css({zIndex:l.settings.slideZIndex,display:"block"})),l.controls.el=e('<div class="soliloquy-controls" />'),l.settings.captions&&E(),l.active.last=l.settings.startSlide==y()-1;var t=l.children.eq(l.settings.startSlide);"all"==l.settings.preloadImages&&(t=l.children),l.settings.ticker?l.settings.pager=!1:(l.settings.pager&&b(),l.settings.controls&&T(),l.settings.auto&&l.settings.autoControls&&k(),(l.settings.controls||l.settings.autoControls||l.settings.pager)&&l.viewport.after(l.controls.el)),g(t,h)},g=function(t,i){var s=t.find('img:not([src=""]), iframe').length,n=0;0!==s?t.find('img:not([src=""]), iframe').each(function(){e(this).one("load error",function(){++n===s&&i()}).each(function(){this.complete&&e(this).load()})}):i()},h=function(){if(l.settings.infiniteLoop&&"fade"!=l.settings.mode&&!l.settings.ticker&&l.children.length>1){var i="vertical"==l.settings.mode?l.settings.minSlides:l.settings.maxSlides,s=l.children.slice(0,i).clone(!0).addClass("soliloquy-clone"),n=l.children.slice(-i).clone(!0).addClass("soliloquy-clone");a.append(s).prepend(n)}l.loader.remove(),S(),"vertical"==l.settings.mode&&(l.settings.adaptiveHeight=!0),l.viewport.height(p()),a.redrawSlider(),l.settings.onSliderLoad(l.active.index),l.initialized=!0,l.settings.responsive&&e(t).bind("resize",X),l.settings.auto&&l.settings.autoStart&&(y()>1||l.settings.autoSlideForOnePage)&&L(),l.settings.ticker&&W(),l.settings.pager&&I(l.settings.startSlide),l.settings.controls&&H(),l.settings.touchEnabled&&!l.settings.ticker&&j(),l.settings.keyboard&&!l.settings.ticker&&e("body").on("keydown",function(e){if("textarea"!=e.target.type&&"input"!=e.target.type)return 39==e.keyCode?(C(e),!1):37==e.keyCode?(z(e),!1):void 0})},p=function(){var t=0,s=e();if("vertical"==l.settings.mode||l.settings.adaptiveHeight)if(l.carousel){var n=1==l.settings.moveSlides?l.active.index:l.active.index*x();for(s=l.children.eq(n),i=1;i<=l.settings.maxSlides-1;i++)s=n+i>=l.children.length?s.add(l.children.eq(i-1)):s.add(l.children.eq(n+i))}else s=l.children.eq(l.active.index);else s=l.children;return"vertical"==l.settings.mode?(s.each(function(i){t+=e(this).outerHeight()}),l.settings.slideMargin>0&&(t+=l.settings.slideMargin*(l.settings.minSlides-1))):t=Math.max.apply(Math,s.map(function(){return e(this).outerHeight(!1)}).get()),"border-box"==l.viewport.css("box-sizing")?t+=parseFloat(l.viewport.css("padding-top"))+parseFloat(l.viewport.css("padding-bottom"))+parseFloat(l.viewport.css("border-top-width"))+parseFloat(l.viewport.css("border-bottom-width")):"padding-box"==l.viewport.css("box-sizing")&&(t+=parseFloat(l.viewport.css("padding-top"))+parseFloat(l.viewport.css("padding-bottom"))),t},v=function(){var e="100%";return l.settings.slideWidth>0&&(e="horizontal"==l.settings.mode?l.settings.maxSlides*l.settings.slideWidth+(l.settings.maxSlides-1)*l.settings.slideMargin:l.settings.slideWidth),"fade"==l.settings.mode?"100%":e},f=function(){var e=l.settings.slideWidth,t=l.viewport.width();return 0===l.settings.slideWidth||l.settings.slideWidth>t&&!l.carousel||"vertical"===l.settings.mode?e=t:l.settings.maxSlides>1&&"horizontal"===l.settings.mode&&(t>l.maxThreshold||t<l.minThreshold&&(e=(t-l.settings.slideMargin*(l.settings.minSlides-1))/l.settings.minSlides)),"fade"==l.settings.mode?"100%":e},m=function(){var e=1;if("horizontal"===l.settings.mode&&l.settings.slideWidth>0)if(l.viewport.width()<l.minThreshold)e=l.settings.minSlides;else if(l.viewport.width()>l.maxThreshold)e=l.settings.maxSlides;else{var t=l.children.first().width()+l.settings.slideMargin;e=Math.floor((l.viewport.width()+l.settings.slideMargin)/t)}else"vertical"===l.settings.mode&&(e=l.settings.minSlides);return e},y=function(){var e=0;if(l.settings.moveSlides>0)if(l.settings.infiniteLoop)e=Math.ceil(l.children.length/x());else for(var t=0,i=0;t<l.children.length;)++e,t=i+m(),i+=l.settings.moveSlides<=m()?l.settings.moveSlides:m();else e=Math.ceil(l.children.length/m());return e},x=function(){return l.settings.moveSlides>0&&l.settings.moveSlides<=m()?l.settings.moveSlides:m()},S=function(){if(l.children.length>l.settings.maxSlides&&l.active.last&&!l.settings.infiniteLoop){if("horizontal"===l.settings.mode){var e=l.children.last(),t=e.position();w(-(t.left-(l.viewport.width()-e.outerWidth())),"reset",0)}else if("vertical"===l.settings.mode){var i=l.children.length-l.settings.minSlides;t=l.children.eq(i).position();w(-t.top,"reset",0)}}else if(l.settings.infiniteLoop){s=l.active.index*x(),t=l.children.eq(s).position();l.active.index===y()-1&&(l.active.last=!0),void 0!=t&&("horizontal"===l.settings.mode&&l.children.length<=1?(t.left=l.active.index*l.children.eq(s).outerWidth(!0),w(-t.left,"reset",0)):"horizontal"!==l.settings.mode||l.carousel?"vertical"===l.settings.mode?(t.top=(l.active.index+1)*l.children.eq(s).outerHeight(!0),w(-t.top,"reset",0)):l.carousel&&"horizontal"===l.settings.mode&&l.settings.infiniteLoop&&(t.left=(l.active.index+1)*l.children.eq(s).outerWidth(!0),w(-t.left*l.settings.maxSlides,"reset",0)):(t.left=(l.active.index+1)*l.children.eq(s).outerWidth(!0),w(-t.left,"reset",0)))}else{var s=l.active.index,t=l.children.eq(s).position();l.active.index===y()-1&&(l.active.last=!0),void 0!=t&&("horizontal"!==l.settings.mode||l.carousel?"vertical"===l.settings.mode&&(t.top=l.active.index*l.children.eq(s).outerHeight(!0),w(-t.top,"reset",0)):(t.left=l.active.index*l.children.eq(s).outerWidth(!0),w(-t.left,"reset",0)))}},w=function(e,t,i,s){if(l.usingCSS){var n="vertical"===l.settings.mode?"translate3d(0, "+e+"px, 0)":"translate3d("+e+"px, 0, 0)";a.css("-"+l.cssPrefix+"-transition-duration",i/1e3+"s"),"slide"===t?(a.css(l.animProp,n),a.bind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(){a.unbind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd"),D()})):"reset"===t?a.css(l.animProp,n):"ticker"===t&&(a.css("-"+l.cssPrefix+"-transition-timing-function","linear"),a.css(l.animProp,n),a.bind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(){a.unbind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd"),w(s.resetValue,"reset",0),Y()}))}else{var o={};o[l.animProp]=e,"slide"===t?a.animate(o,i,l.settings.easing,function(){D()}):"reset"===t?a.css(l.animProp,e):"ticker"===t&&a.animate(o,speed,"linear",function(){w(s.resetValue,"reset",0),Y()})}},q=function(){for(var t="",i=y(),s=0;s<i;s++){var n="";l.settings.buildPager&&e.isFunction(l.settings.buildPager)?(n=l.settings.buildPager(s),l.pagerEl.addClass("soliloquy-custom-pager")):(n=s+1,l.pagerEl.addClass("soliloquy-default-pager")),t+='<div class="soliloquy-pager-item"><a href="" data-slide-index="'+s+'" class="soliloquy-pager-link" tabindex="0"><span>'+n+"</span></a></div>"}l.pagerEl.html(t)},b=function(){l.settings.pagerCustom?l.pagerEl=e(l.settings.pagerCustom):l.pagerEl=e('<div class="soliloquy-pager" />'),l.settings.pagerSelector?e(l.settings.pagerSelector).html(l.pagerEl):l.controls.el.addClass("soliloquy-has-pager").append(l.pagerEl),l.settings.pagerCustom||q(),l.pagerEl.on("click","a",M)},T=function(){l.controls.next=e('<a class="soliloquy-next" href="" tabindex="0"><span>'+l.settings.nextText+"</span></a>"),l.controls.prev=e('<a class="soliloquy-prev" href="" tabindex="0"><span>'+l.settings.prevText+"</span></a>"),l.controls.next.bind("click",C),l.controls.prev.bind("click",z),l.settings.nextSelector&&e(l.settings.nextSelector).append(l.controls.next),l.settings.prevSelector&&e(l.settings.prevSelector).append(l.controls.prev),l.settings.nextSelector||l.settings.prevSelector||(l.controls.directionEl=e('<div class="soliloquy-controls-direction" />'),l.controls.directionEl.append(l.controls.prev).append(l.controls.next),l.controls.el.addClass("soliloquy-has-controls-direction").append(l.controls.directionEl))},k=function(){l.controls.start=e('<div class="soliloquy-controls-auto-item"><a class="soliloquy-start" href="" aria-label="play" tabindex="0"><span>'+l.settings.startText+"</span></a></div>"),l.controls.stop=e('<div class="soliloquy-controls-auto-item"><a class="soliloquy-stop" href="" aria-label="pause" tabindex="0"><span>'+l.settings.stopText+"</span></a></div>"),l.controls.autoEl=e('<div class="soliloquy-controls-auto" />'),l.controls.autoEl.on("click",".soliloquy-start",P),l.controls.autoEl.on("click",".soliloquy-stop",_),l.settings.autoControlsCombine?l.controls.autoEl.append(l.controls.start):l.controls.autoEl.append(l.controls.start).append(l.controls.stop),l.settings.autoControlsSelector?e(l.settings.autoControlsSelector).html(l.controls.autoEl):l.controls.el.addClass("soliloquy-has-controls-auto").append(l.controls.autoEl),A(l.settings.autoStart?"stop":"start")},E=function(){l.children.each(function(t){var i=e(this).find("img:first").attr("title");void 0!=i&&(""+i).length&&e(this).append('<div class="soliloquy-caption"><span>'+i+"</span></div>")})},C=function(e){l.settings.auto&&a.stopAuto(),a.goToNextSlide(),e.preventDefault()},z=function(e){l.settings.auto&&a.stopAuto(),a.goToPrevSlide(),e.preventDefault()},P=function(e){a.startAuto(),e.preventDefault()},_=function(e){a.stopAuto(),e.preventDefault()},M=function(t){l.settings.auto&&a.stopAuto();var i=e(t.currentTarget);if(void 0!==i.attr("data-slide-index")){var s=parseInt(i.attr("data-slide-index"));s!=l.active.index&&a.goToSlide(s),t.preventDefault()}},I=function(t){var i=l.children.length;if("short"===l.settings.pagerType)return l.settings.maxSlides>1&&(i=Math.ceil(l.children.length/l.settings.maxSlides)),void l.pagerEl.html(t+1+l.settings.pagerShortSeparator+i);l.pagerEl.find("a").removeClass("active"),l.pagerEl.each(function(i,s){e(s).find("a").eq(t).addClass("active")})},D=function(){if(l.settings.infiniteLoop){var e="";0===l.active.index?e=l.children.eq(0).position():l.active.index==y()-1&&l.carousel?e=l.children.eq((y()-1)*x()).position():l.active.index==l.children.length-1&&(e=l.children.eq(l.children.length-1).position()),e&&("horizontal"===l.settings.mode?w(-e.left,"reset",0):"vertical"===l.settings.mode&&w(-e.top,"reset",0))}l.working=!1,"fade"==l.settings.mode&&l.viewport.css({overflow:""}),l.settings.onSlideAfter(l.children.eq(l.active.index),l.oldIndex,l.active.index)},A=function(e){l.settings.autoControlsCombine?l.controls.autoEl&&l.controls.autoEl.html(l.controls[e]):(l.controls.autoEl.find("a").removeClass("active"),l.controls.autoEl.find("a:not(.soliloquy-"+e+")").addClass("active"))},H=function(){1==y()?(l.controls.prev.addClass("disabled"),l.controls.next.addClass("disabled")):!l.settings.infiniteLoop&&l.settings.hideControlOnEnd&&(0==l.active.index?(l.controls.prev.addClass("disabled"),l.controls.next.removeClass("disabled")):l.active.index==y()-1?(l.controls.next.addClass("disabled"),l.controls.prev.removeClass("disabled")):(l.controls.prev.removeClass("disabled"),l.controls.next.removeClass("disabled")))},L=function(){if(l.settings.autoDelay>0)setTimeout(a.startAuto,l.settings.autoDelay);else a.startAuto();l.settings.autoHover&&a.hover(function(){l.interval&&(a.stopAuto(!0),l.autoPaused=!0)},function(){l.autoPaused&&(a.startAuto(!0),l.autoPaused=null)})},W=function(){var t=0;if("next"==l.settings.autoDirection)a.append(l.children.clone().addClass("soliloquy-clone"));else{a.prepend(l.children.clone().addClass("soliloquy-clone"));var i=l.children.first().position();t="horizontal"==l.settings.mode?-i.left:-i.top}w(t,"reset",0),l.settings.pager=!1,l.settings.controls=!1,l.settings.autoControls=!1,l.settings.tickerHover&&!l.usingCSS&&l.viewport.hover(function(){a.stop()},function(){var t=0;l.children.each(function(i){t+="horizontal"==l.settings.mode?e(this).outerWidth(!0):e(this).outerHeight(!0)});var i=l.settings.speed/t,s="horizontal"==l.settings.mode?"left":"top",n=i*(t-Math.abs(parseInt(a.css(s))));Y(n)}),Y()},Y=function(e){speed=e||l.settings.speed;var t={left:0,top:0},i={left:0,top:0};"next"==l.settings.autoDirection?t=a.find(".soliloquy-clone").first().position():i=l.children.first().position();var s="horizontal"==l.settings.mode?-t.left:-t.top,n="horizontal"==l.settings.mode?-i.left:-i.top;w(s,"ticker",speed,{resetValue:n})},j=function(){l.touch={start:{x:0,y:0},end:{x:0,y:0}},l.viewport.bind("touchstart",O)},O=function(e){if(l.working)e.preventDefault();else{l.touch.originalPos=a.position();var t=e.originalEvent;l.touch.start.x=t.changedTouches[0].pageX,l.touch.start.y=t.changedTouches[0].pageY,l.viewport.bind("touchmove",N),l.viewport.bind("touchend",V)}},N=function(e){var t=e.originalEvent,i=Math.abs(t.changedTouches[0].pageX-l.touch.start.x),s=Math.abs(t.changedTouches[0].pageY-l.touch.start.y);if(3*i>s&&l.settings.preventDefaultSwipeX?e.preventDefault():3*s>i&&l.settings.preventDefaultSwipeY&&e.preventDefault(),"fade"!=l.settings.mode&&l.settings.oneToOneTouch){var n=0;if("horizontal"==l.settings.mode){var o=t.changedTouches[0].pageX-l.touch.start.x;n=l.touch.originalPos.left+o}else{o=t.changedTouches[0].pageY-l.touch.start.y;n=l.touch.originalPos.top+o}w(n,"reset",0)}},V=function(e){l.viewport.unbind("touchmove",N);var t=e.originalEvent,i=0;if(l.touch.end.x=t.changedTouches[0].pageX,l.touch.end.y=t.changedTouches[0].pageY,"fade"==l.settings.mode){(s=Math.abs(l.touch.start.x-l.touch.end.x))>=l.settings.swipeThreshold&&(l.touch.start.x>l.touch.end.x?a.goToNextSlide():a.goToPrevSlide(),a.stopAuto())}else{var s=0;"horizontal"==l.settings.mode?(s=l.touch.end.x-l.touch.start.x,i=l.touch.originalPos.left):(s=l.touch.end.y-l.touch.start.y,i=l.touch.originalPos.top),!l.settings.infiniteLoop&&(0==l.active.index&&s>0||l.active.last&&s<0)?w(i,"reset",200):Math.abs(s)>=l.settings.swipeThreshold?(s<0?a.goToNextSlide():a.goToPrevSlide(),a.stopAuto()):w(i,"reset",200)}l.viewport.unbind("touchend",V)},X=function(i){if(l.initialized){var s=e(t).width(),n=e(t).height();r==s&&d==n||(r=s,d=n,a.redrawSlider(),l.settings.onSliderResize.call(a,l.active.index))}};return a.goToSlide=function(t,i){if(!l.working&&l.active.index!=t)if(l.working=!0,l.oldIndex=l.active.index,t<0?l.active.index=y()-1:t>=y()?l.active.index=0:l.active.index=t,l.settings.onSlideBefore(l.children.eq(l.active.index),l.oldIndex,l.active.index,l.children.eq(l.oldIndex)),"next"==i?l.settings.onSlideNext(l.children.eq(l.active.index),l.oldIndex,l.active.index):"prev"==i&&l.settings.onSlidePrev(l.children.eq(l.active.index),l.oldIndex,l.active.index),l.active.last=l.active.index>=y()-1,l.settings.pager&&I(l.active.index),l.settings.controls&&H(),"fade"==l.settings.mode)l.viewport.css({overflow:"hidden"}),l.settings.adaptiveHeight&&l.viewport.height()!=p()&&l.viewport.animate({height:p()},l.settings.adaptiveHeightSpeed),l.children.filter(":visible").fadeOut(l.settings.speed).css({zIndex:0}),l.children.eq(l.active.index).css("zIndex",l.settings.slideZIndex+1).fadeIn(l.settings.speed,function(){e(this).css("zIndex",l.settings.slideZIndex),D()});else{l.settings.adaptiveHeight&&l.viewport.height()!=p()&&l.viewport.animate({height:p()},l.settings.adaptiveHeightSpeed);var s=0,n={left:0,top:0};if(!l.settings.infiniteLoop&&l.carousel&&l.active.last)if("horizontal"==l.settings.mode){n=(r=l.children.eq(l.children.length-1)).position(),s=l.viewport.width()-r.outerWidth()}else{var o=l.children.length-l.settings.minSlides;n=l.children.eq(o).position()}else if(l.carousel&&l.active.last&&"prev"==i){var r,d=1==l.settings.moveSlides?l.settings.maxSlides-x():(y()-1)*x()-(l.children.length-l.settings.maxSlides);n=(r=a.children(".soliloquy-clone").eq(d)).position()}else if("next"==i&&0==l.active.index)n=a.find("> .soliloquy-clone").eq(l.settings.maxSlides).position(),l.active.last=!1;else if(t>=0){var c=t*x();n=l.children.eq(c).position()}if(void 0!==n){var u="horizontal"==l.settings.mode?-(n.left-s):-n.top;w(u,"slide",l.settings.speed)}}},a.goToNextSlide=function(){if(l.settings.infiniteLoop||!l.active.last){var e=parseInt(l.active.index)+1;a.goToSlide(e,"next")}},a.goToPrevSlide=function(){if(l.settings.infiniteLoop||0!=l.active.index){var e=parseInt(l.active.index)-1;a.goToSlide(e,"prev")}},a.startAuto=function(e){l.interval||(l.interval=setInterval(function(){"next"==l.settings.autoDirection?a.goToNextSlide():a.goToPrevSlide()},l.settings.pause),l.settings.autoControls&&1!=e&&A("stop"))},a.stopAuto=function(e){l.interval&&(clearInterval(l.interval),l.interval=null,l.settings.autoControls&&1!=e&&A("start"))},a.getCurrentSlide=function(){return l.active.index},a.getCurrentSlideElement=function(){return l.children.eq(l.active.index)},a.getSlideCount=function(){return l.children.length},a.redrawSlider=function(){l.children.add(a.find(".soliloquy-clone")).width(f()),l.viewport.css("height",p()),l.settings.ticker||S(),l.active.last&&(l.active.index=y()-1),l.active.index>=y()&&(l.active.last=!0),l.settings.pager&&!l.settings.pagerCustom&&(q(),I(l.active.index))},a.destroySlider=function(){l.initialized&&(l.initialized=!1,e(".soliloquy-clone",this).remove(),l.children.each(function(){void 0!==e(this).data("origStyle")?e(this).attr("style",e(this).data("origStyle")):e(this).removeAttr("style")}),void 0!==e(this).data("origStyle")?this.attr("style",e(this).data("origStyle")):e(this).removeAttr("style"),e(this).unwrap().unwrap(),l.controls.el&&l.controls.el.remove(),l.controls.next&&l.controls.next.remove(),l.controls.prev&&l.controls.prev.remove(),l.pagerEl&&l.settings.controls&&l.pagerEl.remove(),e(".soliloquy-caption",this).remove(),l.controls.autoEl&&l.controls.autoEl.remove(),clearInterval(l.interval),l.settings.responsive&&e(t).unbind("resize",X))},a.reloadSlider=function(e){void 0!==e&&(n=e),a.destroySlider(),c()},a.getSetting=function(e){return!!l.settings[e]&&l.settings[e]},c(),this}}(jQuery,window,document),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e:e(jQuery)}(function(e){var t,i,s=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],n="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],o=Array.prototype.slice;if(e.event.fixHooks)for(var l=s.length;l;)e.event.fixHooks[s[--l]]=e.event.mouseHooks;var a=e.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var t=n.length;t;)this.addEventListener(n[--t],r,!1);else this.onmousewheel=r;e.data(this,"mousewheel-line-height",a.getLineHeight(this)),e.data(this,"mousewheel-page-height",a.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var t=n.length;t;)this.removeEventListener(n[--t],r,!1);else this.onmousewheel=null;e.removeData(this,"mousewheel-line-height"),e.removeData(this,"mousewheel-page-height")},getLineHeight:function(t){var i=e(t),s=i["offsetParent"in e.fn?"offsetParent":"parent"]();return s.length||(s=e("body")),parseInt(s.css("fontSize"),10)||parseInt(i.css("fontSize"),10)||16},getPageHeight:function(t){return e(t).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};function r(s){var n,l=s||window.event,r=o.call(arguments,1),u=0,g=0,h=0,p=0,v=0;if((s=e.event.fix(l)).type="mousewheel","detail"in l&&(h=-1*l.detail),"wheelDelta"in l&&(h=l.wheelDelta),"wheelDeltaY"in l&&(h=l.wheelDeltaY),"wheelDeltaX"in l&&(g=-1*l.wheelDeltaX),"axis"in l&&l.axis===l.HORIZONTAL_AXIS&&(g=-1*h,h=0),u=0===h?g:h,"deltaY"in l&&(u=h=-1*l.deltaY),"deltaX"in l&&(g=l.deltaX,0===h&&(u=-1*g)),0!==h||0!==g){if(1===l.deltaMode){var f=e.data(this,"mousewheel-line-height");u*=f,h*=f,g*=f}else if(2===l.deltaMode){var m=e.data(this,"mousewheel-page-height");u*=m,h*=m,g*=m}if(n=Math.max(Math.abs(h),Math.abs(g)),(!i||n<i)&&(i=n,c(l,n)&&(i/=40)),c(l,n)&&(u/=40,g/=40,h/=40),u=Math[u>=1?"floor":"ceil"](u/i),g=Math[g>=1?"floor":"ceil"](g/i),h=Math[h>=1?"floor":"ceil"](h/i),a.settings.normalizeOffset&&this.getBoundingClientRect){var y=this.getBoundingClientRect();p=s.clientX-y.left,v=s.clientY-y.top}return s.deltaX=g,s.deltaY=h,s.deltaFactor=i,s.offsetX=p,s.offsetY=v,s.deltaMode=0,r.unshift(s,u,g,h),t&&clearTimeout(t),t=setTimeout(d,200),(e.event.dispatch||e.event.handle).apply(this,r)}}function d(){i=null}function c(e,t){return a.settings.adjustOldDeltas&&"mousewheel"===e.type&&t%120==0}e.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}})}); \ No newline at end of file @@ -15,7 +15,7 @@ */ if (typeof inlineEditPost !== 'undefined') { // we create a copy of the WP inline edit post function - var wp_inline_edit = inlineEditPost.edit; + const wp_inline_edit = inlineEditPost.edit; // and then we overwrite the function with our own code inlineEditPost.edit = function (id) { @@ -24,14 +24,14 @@ wp_inline_edit.apply(this, arguments); // get the post ID - var post_id = 0; - if (typeof id == 'object') { + let post_id = 0; + if (typeof id === 'object') { post_id = parseInt(this.getId(id)); } if (post_id > 0) { // Get the Edit and Post Row Elements - var edit_row = $('#edit-' + post_id), + const edit_row = $('#edit-' + post_id), post_row = $('#post-' + post_id); // Get Soliloquy Settings // These are stored in hidden input fields created by includes/admin/posttype.php @@ -1,7 +1,7 @@ /* global soliloquy_settings */ /* ========================================================== * settings.js - * http://soliloquywp.com/ + * https://soliloquywp.com/ * ========================================================== * Copyright 2016 Soliloquy Team. * @@ -21,7 +21,7 @@ //Dom Ready $(function () { // Initialize the slider tabs. - var soliloquy_tabs = $('#soliloquy-tabs'), + let soliloquy_tabs = $('#soliloquy-tabs'), soliloquy_tabs_nav = $('#soliloquy-tabs-nav'), soliloquy_tabs_hash = window.location.hash, soliloquy_tabs_hash_sani = window.location.hash.replace('!', ''); @@ -41,7 +41,7 @@ $('.soliloquy-start-upgrade').on('click', function (e) { e.preventDefault(); - var $this = $(this); + const $this = $(this); // Show the spinner. $('.soliloquy-spinner').css({ @@ -51,7 +51,7 @@ }); // Prepare our data to be sent via Ajax. - var upgrade = { + const upgrade = { action: 'soliloquy_upgrade_sliders', nonce: soliloquy_settings.upgrade_nonce }; @@ -74,7 +74,7 @@ $('#soliloquy-tabs-nav a').on('click', function (e) { e.preventDefault(); - var $this = $(this); + const $this = $(this); //If the tab is active return, else switch tabs if ($this.hasClass('soliloquy-active')) { @@ -82,7 +82,7 @@ } else { window.location.hash = soliloquy_tabs_hash = this.hash.split('#').join('#!'); - var current = soliloquy_tabs_nav + const current = soliloquy_tabs_nav .find('.soliloquy-active') .removeClass('soliloquy-active nav-tab-active') .attr('href'); @@ -97,7 +97,7 @@ //Create the Select boxes $('.soliloquy-chosen').each(function () { - var data_options = $(this).data('soliloquy-chosen-options'); + const data_options = $(this).data('soliloquy-chosen-options'); $(this).chosen(data_options); }); @@ -1,3 +1,7 @@ +/* eslint-disable no-undef */ + +/* eslint-disable no-useless-escape */ + /*global soliloquy_ajax, MediaElementPlayer */ /** * soliloquy.js is a placeholder, which CodeKit attaches the following JS files to, before compiling as min/soliloquy-min.js: @@ -10,7 +14,7 @@ */ // Mobile checker function. function soliloquyIsMobile() { - var check = false; + let check = false; (function (a) { if ( /(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test( @@ -19,8 +23,9 @@ /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test( a.substr(0, 4) ) - ) + ) { check = true; + } })(navigator.userAgent || navigator.vendor || window.opera); return check; } @@ -50,7 +55,7 @@ } } function soliloquyYouTubeOnStateChange(event) { - var id = jQuery(event.target.getIframe()).data('soliloquy-slider-id'); + const id = jQuery(event.target.getIframe()).data('soliloquy-slider-id'); // If the video has been paused or has finished playing, restart the slider. if (event.data === YT.PlayerState.PAUSED || event.data === YT.PlayerState.ENDED) { @@ -68,7 +73,7 @@ } } } -function onYouTubeIframeAPIReady() {} + function soliloquyVimeoVids(data, id, width, height, holder, $) { // Immediately make the holder visible and increase z-index to overlay the player icon. $('#' + holder) @@ -76,7 +81,7 @@ .css({display: 'block', 'z-index': '1210'}); // Load a new video into the slider. if ($f) { - var attrs = {}; + const attrs = {}; $.each($('#' + holder)[0].attributes, function (idx, attr) { attrs[attr.nodeName] = attr.nodeValue; @@ -94,7 +99,7 @@ // Store a reference to the video object for use with the API. soliloquy_vimeo[id] = $f($('#' + holder)[0]); - var slider_id = $('#' + holder).data('soliloquy-slider-id'); + const slider_id = $('#' + holder).data('soliloquy-slider-id'); soliloquy_vimeo[id].addEvent('ready', function () { //stopAuto when video ready, prevents autoplay while buffering @@ -120,13 +125,13 @@ } } function soliloquyVimeoSliderPause(vid) { - var id = jQuery('#' + vid).data('soliloquy-slider-id'); + const id = jQuery('#' + vid).data('soliloquy-slider-id'); if (soliloquy_slider[id]) { soliloquy_slider[id].stopAuto(); } } function soliloquyVimeoSliderStart(vid) { - var id = jQuery('#' + vid).data('soliloquy-slider-id'); + const id = jQuery('#' + vid).data('soliloquy-slider-id'); if (soliloquy_slider[id]) { if (soliloquy_slider[id].getSetting('auto')) { soliloquy_slider[id].startAuto(); @@ -140,7 +145,7 @@ .css({display: 'block', 'z-index': '1210'}); if (wistiaEmbeds) { - var attrs = {}; + const attrs = {}; $.each($('#' + holder)[0].attributes, function (idx, attr) { attrs[attr.nodeName] = attr.nodeValue; }); @@ -159,13 +164,13 @@ if (id === video.hashedId()) { soliloquy_wistia[id] = video; soliloquy_wistia[id].bind('play', function () { - var id = $(this.container).data('soliloquy-slider-id'); + const id = $(this.container).data('soliloquy-slider-id'); if (soliloquy_slider[id]) { soliloquy_slider[id].stopAuto(); } }); soliloquy_wistia[id].bind('pause', function () { - var id = $(this.container).data('soliloquy-slider-id'); + const id = $(this.container).data('soliloquy-slider-id'); if (soliloquy_slider[id]) { if (soliloquy_slider[id].getSetting('auto')) { soliloquy_slider[id].startAuto(); @@ -173,7 +178,7 @@ } }); soliloquy_wistia[id].bind('end', function () { - var id = $(this.container).data('soliloquy-slider-id'); + const id = $(this.container).data('soliloquy-slider-id'); if (soliloquy_slider[id]) { if (soliloquy_slider[id].getSetting('auto')) { soliloquy_slider[id].startAuto(); @@ -192,13 +197,13 @@ .css({display: 'block', 'z-index': '1210'}); // Build atts - var attrs = {}; + const attrs = {}; $.each($('#' + holder)[0].attributes, function (idx, attr) { attrs[attr.nodeName] = attr.nodeValue; }); // Build features for MediaElementPlayer - var features = []; + const features = []; if (data.playpause === 1) { features.push('playpause'); } @@ -240,7 +245,7 @@ function soliloquyInitManually() { jQuery(document).ready(function ($) { // Find all sliders with data-soliloquy-loaded=0 - var soliloquy_sliders = []; + const soliloquy_sliders = []; $(".soliloquy-outer-container[data-soliloquy-loaded='0']").each(function () { soliloquy_sliders.push($('.soliloquy-container', $(this)).attr('id').replace(/^\D+/g, '')); }); @@ -1,15 +1,15 @@ /* global document */ -/* jshint unused:false */ + /** * Soliloquy Admin Tabs */ (function ($, window, document) { 'use strict'; - var soliloquy_tabs_hash = window.location.hash, + const soliloquy_tabs_hash = window.location.hash, soliloquy_tabs_current_tab = window.location.hash.replace('!', ''); if (soliloquy_tabs_hash && soliloquy_tabs_hash.indexOf('soliloquy-tab') >= 0) { - var $current_tab_container = $(soliloquy_tabs_current_tab.replace('tab_', '')), + let $current_tab_container = $(soliloquy_tabs_current_tab.replace('tab_', '')), $tab_container = $current_tab_container.parent(), $tab_nav = $current_tab_container.parent().parent().find('ul.soliloquy-tabs-nav'), soliloquy_post_action = $('#post').attr('action'); @@ -46,7 +46,7 @@ e.preventDefault(); // - var $this = $(this), + const $this = $(this), tab_id = $this.attr('data-tab-id'), $parent = $this.parent(), $container = $parent.parent(), @@ -88,7 +88,7 @@ // Update the form action to contain the selected tab as a hash in the URL // This means when the user saves their Gallery, they'll see the last selected // tab 'open' on reload - var soliloquy_post_action = $('#post').attr('action'); + let soliloquy_post_action = $('#post').attr('action'); if (soliloquy_post_action) { // Remove any existing hash from the post action @@ -2,12 +2,12 @@ $(function () { $('.soliloquy-am-plugins-wrap').on('click', '.soliloquy-am-plugins-install', function (e) { e.preventDefault(); - var $this = $(this), + const $this = $(this), url = $this.data('url'), basename = $this.data('basename'); (spinner = $this.parent().find('.spinner')), (message = $(this).parent().parent().find('.soliloquy-am-plugins-status')); - var install_opts = { + const install_opts = { url: soliloquy_welcome.ajax, type: 'post', async: true, @@ -28,7 +28,7 @@ $(message).text(soliloquy_welcome.active); // Trick here to wrap a span around he last word of the status - var heading = $(message), + let heading = $(message), word_array, last_word, first_part; @@ -51,12 +51,12 @@ }); $('.soliloquy-am-plugins-wrap').on('click', '.soliloquy-am-plugins-activate', function (e) { e.preventDefault(); - var $this = $(this), + const $this = $(this), url = $this.data('url'), basename = $this.data('basename'), spinner = $this.parent().find('.spinner'), message = $(this).parent().parent().find('.soliloquy-am-plugins-status'); - var activate_opts = { + const activate_opts = { url: soliloquy_welcome.ajax, type: 'post', async: true, @@ -76,7 +76,7 @@ $(message).text(soliloquy_welcome.active); // Trick here to wrap a span around he last word of the status - var heading = $(message), + let heading = $(message), word_array, last_word, first_part; @@ -98,12 +98,12 @@ }); $('.soliloquy-am-plugins-wrap').on('click', '.soliloquy-am-plugins-deactivate', function (e) { e.preventDefault(); - var $this = $(this), + const $this = $(this), url = $this.data('url'), basename = $this.data('basename'), spinner = $this.parent().find('.spinner'), message = $(this).parent().parent().find('.soliloquy-am-plugins-status'); - var deactivate_opts = { + const deactivate_opts = { url: soliloquy_welcome.ajax, type: 'post', async: true, @@ -123,7 +123,7 @@ $(message).text(soliloquy_welcome.inactive); // Trick here to wrap a span around he last word of the status - var heading = $(message), + let heading = $(message), word_array, last_word, first_part; Only in /home/deploy/wp-safety.org/data/plugin-versions/soliloquy-lite/2.8.2/assets: lib @@ -68,13 +68,14 @@ } .soliloquy-addon { - position: relative; + display: flex; + flex-direction: column; border: 1px solid $light-grey; background: $white; border-radius: 3px; float: left; margin: 0 2% 2% 0; - height: 510px; + min-height: 380px; text-align: center; width: 32%; box-sizing: border-box; @@ -90,18 +91,21 @@ &.last { margin-right: 0; } - .soliloquy-addon-content{ padding: 20px; } + .soliloquy-addon-content{ + padding: 20px; + flex: 1; + } .soliloquy-addon-footer{ - position: absolute; width: 100%; - bottom: 0; height: 75px; - line-height: 75px; border-top: 1px solid $light-grey; background-color: $almost-white; - .soliloquy-unlock-addon{ - vertical-align: middle; - } + display: flex; + align-items: center; + justify-content: space-between; + padding: 0 15px; + box-sizing: border-box; + flex-shrink: 0; } .soliloquy-addon-action-button:before{ font-size: 18px; @@ -154,13 +158,17 @@ } .soliloquy-addon-action { - display: inline; - float: right; - margin-top: 20px; - margin-right: 15px; + display: flex; + align-items: center; + margin: 0; } .soliloquy-addon-message{ - margin-left: 15px; + display: flex; + justify-content: space-between; + align-items: center; + width: 100%; + margin-left: 0; + padding: 0; } @@ -201,35 +209,10 @@ } } -@media screen and (min-width: 1751px) { -.soliloquy-addon { - margin: 0 2% 2% 0; - height: 720px; - width: 32%; - -} -} -@media screen and (max-width: 1750px) { -.soliloquy-addon { - margin: 0 2% 2% 0; - height: 620px; - width: 32%; - -} -} -@media screen and (max-width: 1549px) { -.soliloquy-addon { - margin: 0 2% 2% 0; - height: 500px; - width: 32%; - -} -} - @media screen and (max-width: 1200px) { .soliloquy-addon { margin: 0 2% 2% 0; - min-height: 460px; + min-height: 340px; width: 48%; &.last{ margin: 0 2% 2% 0; @@ -243,8 +226,7 @@ @media screen and (max-width: 568px) { .soliloquy-addon { margin: 0 1% 1% 0; - min-height: 530px; - margin-bottom: 30px; + margin-bottom: 20px; width: 98%; &.last{ margin: 0 1% 1% 0; @@ -254,3 +236,104 @@ } } } + +/* ========================================================================== + Addon Badge Styles + ========================================================================== */ + +.soliloquy-badge { + text-transform: uppercase; + font-weight: 700; + text-align: center; + line-height: 1; + display: inline-block; + color: #8c8f94; + background-color: #e5e5e6; +} + +.soliloquy-badge-lg { + font-size: 10px; + letter-spacing: 0.5px; + padding: 8px 10px; +} + +.soliloquy-badge-sm { + font-size: 8px; + letter-spacing: 0.4px; + padding: 6px 8px; +} + +.soliloquy-badge-rounded { + border-radius: 3px; +} + +/* ========================================================================== + jQuery Confirm button styles overrides + ========================================================================== */ + +body div.jconfirm .jconfirm-box-container .jconfirm-box.soliloquy-upgrade-modal-box .jconfirm-title-c { + margin: 0 0 20px 0; + padding: 0; + font-weight: 600; + text-align: center; +} + +body div.jconfirm .jconfirm-box-container .jconfirm-box.soliloquy-upgrade-modal-box .jconfirm-title-c .jconfirm-icon-c .dashicons, +body div.jconfirm .jconfirm-box-container .jconfirm-box.soliloquy-upgrade-modal-box .jconfirm-title-c .jconfirm-icon-c .dashicons-before:before { + width: 42px; + height: 42px; + font-size: 47px; +} + +body div.jconfirm .jconfirm-box-container .jconfirm-box.soliloquy-upgrade-modal-box .jconfirm-title-c .jconfirm-icon-c + .jconfirm-title { + margin-top: 20px; +} + +body div.jconfirm .jconfirm-box-container .jconfirm-box.soliloquy-upgrade-modal-box .jconfirm-title-c .jconfirm-title { + color: #3c434a; + display: block; + line-height: 30px; +} + +body div.jconfirm .jconfirm-box-container .jconfirm-box.soliloquy-upgrade-modal-box .jconfirm-content-pane { + display: block; + margin-bottom: 20px; +} + +body div.jconfirm .jconfirm-box-container .jconfirm-box.soliloquy-upgrade-modal-box .jconfirm-content-pane .jconfirm-content { + color: #3c434a; + font-size: 16px; + line-height: 24px; + margin-bottom: 0; + overflow: inherit; +} + +body div.jconfirm .jconfirm-box-container .jconfirm-box.soliloquy-upgrade-modal-box .jconfirm-content-pane .jconfirm-content p { + font-size: inherit; + line-height: inherit; + margin: 0 0 16px; +} + +/* Modal heading (top) border and icon - overrides jconfirm-type-blue default */ +body div.jconfirm .jconfirm-box-container .jconfirm-box.soliloquy-upgrade-modal-box.jconfirm-type-blue { + border-top: solid 7px #1d2327; + animation: none; + + .jconfirm-title-c .jconfirm-icon-c { + color: #1d2327 !important; + } +} + +body div.jconfirm .jconfirm-box-container .jconfirm-box.soliloquy-upgrade-modal-box.jconfirm-type-blue button.btn-confirm { + background-color: #1d2327; + border-color: #1d2327; +} + +body div.jconfirm .jconfirm-box-container .jconfirm-box.soliloquy-upgrade-modal-box .jconfirm-buttons button.btn-confirm { + color: #ffffff; +} + +body div.jconfirm .jconfirm-box-container .jconfirm-box.soliloquy-upgrade-modal-box.jconfirm-type-blue button.btn-confirm:hover { + background-color: #2c3338; + border-color: #2c3338; +} @@ -401,6 +401,7 @@ height: $input-height; font-size: 13px; padding: 0 20px 1px; + min-height: 0; &:focus, &:hover { background: $primary-color; @@ -457,6 +458,7 @@ a.button-soliloquy-secondary, a.button-soliloquy-delete { line-height: 32px; + min-height: 0; } } .soliloquy-settings-tab { @@ -1,33 +1,40 @@ { - "$schema": "https://schemas.wp.org/trunk/block.json", - "apiVersion": 3, - "name": "soliloquy/soliloquywp", - "version": "0.1.0", - "title": "Soliloquy", - "category": "widgets", - "description": "Select a Slider below to add it to your page.", - "example": {}, - "supports": { - "html": true, - "align": ["wide", "full"] - }, - "textdomain": "soliloquywp", - "editorScript": "file:./index.js", - "editorStyle": "file:./main.css", - "style": "file:./style-main.css", - "keywords": ["Slider", "Photo", "Carosuel"], - "attributes": { - "sliderId": { - "type": "number", - "default": null - }, - "title": { - "type": "string", - "default": "" - }, - "soliloquy_gutenberg_data": { - "type": "string", - "default": "" - } - } -} + "$schema": "https://schemas.wp.org/trunk/block.json", + "apiVersion": 3, + "name": "soliloquy/soliloquywp", + "version": "0.1.0", + "title": "Soliloquy", + "category": "widgets", + "description": "Select a Slider below to add it to your page.", + "example": {}, + "supports": { + "html": true, + "align": [ + "wide", + "full" + ] + }, + "textdomain": "soliloquywp", + "editorScript": "file:./index.js", + "editorStyle": "file:./main.css", + "style": "file:./style-main.css", + "keywords": [ + "Slider", + "Photo", + "Carousel" + ], + "attributes": { + "sliderId": { + "type": "number", + "default": null + }, + "title": { + "type": "string", + "default": "" + }, + "soliloquy_gutenberg_data": { + "type": "string", + "default": "" + } + } +} \ No newline at end of file @@ -1 +1 @@ -<?php return array('dependencies' => array('react', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => 'b4fedc7556e7f230797d'); +<?php return array('dependencies' => array('react', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => '3cc29643e4bde5ab67e2'); @@ -1,640 +1 @@ -(() => { - 'use strict'; - var c, - e = { - 85: (c, e, t) => { - function l(c) { - return ( - (l = - 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator - ? function (c) { - return typeof c; - } - : function (c) { - return c && - 'function' == typeof Symbol && - c.constructor === Symbol && - c !== Symbol.prototype - ? 'symbol' - : typeof c; - }), - l(c) - ); - } - function r(c, e, t) { - return ( - (e = (function (c) { - var e = (function (c, e) { - if ('object' != l(c) || !c) return c; - var t = c[Symbol.toPrimitive]; - if (void 0 !== t) { - var r = t.call(c, 'string'); - if ('object' != l(r)) return r; - throw new TypeError('@@toPrimitive must return a primitive value.'); - } - return String(c); - })(c); - return 'symbol' == l(e) ? e : e + ''; - })(e)) in c - ? Object.defineProperty(c, e, { - value: t, - enumerable: !0, - configurable: !0, - writable: !0 - }) - : (c[e] = t), - c - ); - } - const n = window.wp.blocks, - o = window.React; - var i = t.n(o); - const a = window.wp.blockEditor, - u = window.wp.data, - s = window.wp.apiFetch; - var d = t.n(s); - const f = window.wp.components; - function p(c, e) { - (null == e || e > c.length) && (e = c.length); - for (var t = 0, l = Array(e); t < e; t++) l[t] = c[t]; - return l; - } - function v(c, e) { - return ( - (function (c) { - if (Array.isArray(c)) return c; - })(c) || - (function (c, e) { - var t = - null == c - ? null - : ('undefined' != typeof Symbol && c[Symbol.iterator]) || c['@@iterator']; - if (null != t) { - var l, - r, - n, - o, - i = [], - a = !0, - u = !1; - try { - if (((n = (t = t.call(c)).next), 0 === e)) { - if (Object(t) !== t) return; - a = !1; - } else - for ( - ; - !(a = (l = n.call(t)).done) && (i.push(l.value), i.length !== e); - a = !0 - ); - } catch (c) { - (u = !0), (r = c); - } finally { - try { - if (!a && null != t.return && ((o = t.return()), Object(o) !== o)) return; - } finally { - if (u) throw r; - } - } - return i; - } - })(c, e) || - (function (c, e) { - if (c) { - if ('string' == typeof c) return p(c, e); - var t = {}.toString.call(c).slice(8, -1); - return ( - 'Object' === t && c.constructor && (t = c.constructor.name), - 'Map' === t || 'Set' === t - ? Array.from(c) - : 'Arguments' === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) - ? p(c, e) - : void 0 - ); - } - })(c, e) || - (function () { - throw new TypeError( - 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.' - ); - })() - ); - } - const m = window.wp.i18n, - h = function (c) { - var e = c.clientId, - t = c.onSelect, - l = void 0 === t ? function () {} : t, - r = v((0, o.useState)(null), 2), - n = r[0], - a = r[1], - s = v((0, o.useState)([]), 2), - f = s[0], - p = s[1], - h = v((0, o.useState)(''), 2), - b = h[0], - y = h[1], - g = v((0, o.useState)(!1), 2), - w = g[0], - E = g[1], - S = v((0, o.useState)(!1), 2), - O = S[0], - k = S[1], - I = (0, u.useSelect)( - function (c) { - var t, - l = c('core/block-editor').getBlock(e); - return null !== (t = null == l ? void 0 : l.attributes) && void 0 !== t - ? t - : {sliderId: null, title: ''}; - }, - [e] - ), - _ = (0, u.useDispatch)('core/block-editor').updateBlockAttributes, - j = (0, o.useRef)(null); - (0, o.useEffect)( - function () { - var c = I.sliderId ? {value: I.sliderId, label: I.title || ''} : null; - a(c), y(''), M(); - }, - [I] - ); - var M = function () { - var c = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : ''; - k(!0), - d()({path: '/wp/v2/soliloquy?per_page=20&search='.concat(c)}) - .then(function (c) { - var e = Array.from( - new Map( - c.map(function (c) { - return [c.id, {value: c.id, label: c.title.rendered}]; - }) - ).values() - ); - p(e); - }) - .catch(function (c) { - console.error('Error fetching options:', c); - }) - .then(function () { - k(!1); - }); - }; - (0, o.useEffect)( - function () { - var c = function (c) { - j.current && !j.current.contains(c.target) && E(!1); - }; - return ( - document.addEventListener('mousedown', c), - function () { - document.removeEventListener('mousedown', c); - } - ); - }, - [j] - ); - var C, - z = function (c) { - a(c), y(''), E(!1), l(c); - var t = { - sliderId: c.value, - title: c.label, - soliloquy_gutenberg_data: JSON.stringify({sliderId: c.value, title: c.label}) - }; - _(e, t), M(); - }; - return ( - (C = n ? n.label : (0, m.__)('Search for a slider.')), - i().createElement( - 'div', - {ref: j, className: 'select-with-search '.concat(w ? 'has-dropdown' : '')}, - i().createElement('input', { - type: 'text', - placeholder: C, - value: b, - onChange: function (c) { - var e = c.target.value; - y(e), E(!0), e.length > 1 ? M(e) : '' === e && M(); - }, - onClick: function () { - E(!w); - }, - className: 'search-input '.concat(n ? 'selected' : '') - }), - w && - i().createElement( - 'div', - {className: 'dropdown-menu'}, - O - ? i().createElement( - 'div', - {className: 'dropdown-option loading'}, - (0, m.__)('Loading…') - ) - : i().createElement( - i().Fragment, - null, - f.length > 0 - ? f.map(function (c) { - return i().createElement( - 'div', - { - key: c.value, - className: 'dropdown-option '.concat( - c.value === (null == n ? void 0 : n.value) ? 'selected' : '' - ), - onClick: function () { - return z(c); - }, - onKeyDown: function (e) { - ('Enter' !== e.key && ' ' !== e.key) || z(c); - }, - role: 'button', - tabIndex: 0 - }, - c.label - ); - }) - : i().createElement( - 'div', - {className: 'dropdown-option no-options'}, - (0, m.__)('No options') - ) - ) - ) - ) - ); - }; - function b() { - return ( - (b = Object.assign - ? Object.assign.bind() - : function (c) { - for (var e = 1; e < arguments.length; e++) { - var t = arguments[e]; - for (var l in t) ({}).hasOwnProperty.call(t, l) && (c[l] = t[l]); - } - return c; - }), - b.apply(null, arguments) - ); - } - const y = function (c) { - return i().createElement( - 'svg', - b( - { - id: 'Layer_1', - xmlns: 'http://www.w3.org/2000/svg', - width: '298.424', - height: '63.743', - viewBox: '0 0 298.424 63.743' - }, - c - ), - i().createElement( - 'g', - {id: 'Layer-1'}, - i().createElement('path', { - d: 'M1.33,23.784h-2.187l2.187,2.187l-2.187,2.188H1.33c2.416,0,4.375,1.959,4.375,4.375v1.094 l2.187,2.187l2.188-2.187v-1.094C10.081,27.702,6.163,23.784,1.33,23.784z', - fill: '#162937', - transform: 'rotate(45 78.657 100.448) scale(2.41618)' - }), - i().createElement('path', { - d: 'M5.706,35.816v2.188c0,2.416-1.959,4.375-4.375,4.375H0.237l-2.187,2.187l2.187,2.187H1.33 c4.832,0,8.75-3.917,8.75-8.75v-2.188l-2.188,2.188L5.706,35.816z', - fill: '#162937', - transform: 'rotate(45 78.657 100.448) scale(2.41618)' - }), - i().createElement('path', { - d: 'M-1.951,42.379h-2.188c-2.416,0-4.375-1.959-4.375-4.375V36.91l-2.188-2.188l-2.187,2.188v1.094 c0,4.833,3.917,8.75,8.75,8.75h2.188l-2.188-2.187L-1.951,42.379z', - fill: '#ff3700', - transform: 'rotate(45 78.657 100.448) scale(2.41618)' - }), - i().createElement('path', { - d: 'M-8.513,34.722v-2.188c0-2.416,1.959-4.375,4.375-4.375h1.094l2.188-2.188l-2.188-2.187h-1.094 c-4.833,0-8.75,3.918-8.75,8.75v2.188l2.187-2.188L-8.513,34.722z', - fill: '#162937', - transform: 'rotate(45 78.657 100.448) scale(2.41618)' - }), - i().createElement( - 'g', - null, - i().createElement('path', { - d: 'M81.416,13.365c0.355,0.003,0.709,0.014,1.064,0.039c0.702,0.048,1.401,0.143,2.089,0.294 c0.704,0.155,1.395,0.368,2.061,0.646c0.694,0.29,1.358,0.65,1.977,1.075c0.471,0.323,0.915,0.685,1.331,1.077 c0.211,0.2,0.413,0.408,0.609,0.622l0.052,0.058c0.044,0.057,0.059,0.07,0.087,0.137c0.043,0.1,0.051,0.214,0.023,0.319 c-0.019,0.07-0.032,0.085-0.067,0.148l-2.576,3.81c-0.016,0.021-0.031,0.043-0.049,0.061c-0.036,0.038-0.078,0.071-0.124,0.096 c-0.165,0.089-0.371,0.075-0.522-0.035c-0.021-0.015-0.041-0.033-0.06-0.051c-0.035-0.035-0.055-0.066-0.083-0.105 c-0.031-0.043-0.062-0.086-0.094-0.129c-0.042-0.056-0.084-0.111-0.127-0.166c-0.176-0.223-0.361-0.439-0.56-0.643 c-0.353-0.362-0.744-0.687-1.175-0.954c-0.417-0.258-0.868-0.46-1.339-0.595c-0.485-0.139-0.989-0.207-1.494-0.214 c-0.404-0.006-0.809,0.026-1.204,0.109c-0.337,0.071-0.666,0.179-0.978,0.325c-0.323,0.152-0.626,0.346-0.902,0.574 c-0.145,0.12-0.282,0.248-0.409,0.387c-0.165,0.181-0.311,0.378-0.434,0.589c-0.228,0.392-0.373,0.827-0.445,1.273 c-0.03,0.183-0.047,0.367-0.056,0.552c-0.002,0.058-0.004,0.116-0.005,0.175c-0.001,0.051-0.001,0.101,0.003,0.152 c0.009,0.119,0.035,0.237,0.072,0.351c0.084,0.256,0.222,0.492,0.378,0.71c0.226,0.316,0.496,0.599,0.779,0.863 c0.439,0.409,0.917,0.774,1.409,1.117c0.653,0.454,1.333,0.867,2.023,1.261c0.791,0.446,1.584,0.888,2.376,1.331 c0.531,0.297,1.062,0.593,1.594,0.888c0.386,0.214,0.771,0.429,1.16,0.637c0.031,0.016,0.048,0.025,0.077,0.04 c0.006,0.003,0.012,0.006,0.018,0.009c0.001,0-0.002-0.001-0.002-0.001h0l0.055,0.026l0.056,0.036 c0.077,0.058,0.153,0.115,0.228,0.174c0.553,0.433,1.076,0.906,1.542,1.433c0.32,0.361,0.614,0.746,0.871,1.154 c0.288,0.458,0.531,0.945,0.716,1.453c0.209,0.576,0.344,1.178,0.401,1.788c0.017,0.18,0.027,0.36,0.032,0.54 c0.004,0.167,0.002,0.334-0.001,0.501c-0.007,0.363-0.025,0.727-0.056,1.089c-0.103,1.206-0.351,2.402-0.784,3.533 c-0.222,0.578-0.491,1.138-0.808,1.669c-0.338,0.567-0.73,1.102-1.167,1.597c-0.333,0.377-0.693,0.73-1.079,1.053 c-0.486,0.407-1.012,0.764-1.568,1.067c-0.566,0.308-1.163,0.559-1.777,0.754c-1.083,0.344-2.214,0.515-3.348,0.56 c-0.482,0.019-0.966,0.018-1.448-0.013c-0.655-0.042-1.306-0.137-1.944-0.291c-0.684-0.165-1.351-0.397-1.989-0.696 c-0.641-0.3-1.251-0.667-1.82-1.087c-1.02-0.753-1.906-1.676-2.665-2.689c-0.359-0.478-0.69-0.977-0.998-1.489 c-0.04-0.066-0.079-0.133-0.118-0.2c-0.028-0.048-0.072-0.117-0.093-0.173c-0.048-0.127-0.041-0.271,0.02-0.392 c0.032-0.064,0.048-0.076,0.095-0.13l3.488-3.435c0.021-0.017,0.04-0.037,0.062-0.052c0.044-0.031,0.094-0.055,0.146-0.07 c0.131-0.038,0.275-0.018,0.392,0.053c0.046,0.028,0.088,0.064,0.122,0.106c0.017,0.021,0.033,0.043,0.046,0.067 c0.026,0.045,0.038,0.082,0.056,0.13c0.018,0.048,0.024,0.061,0.043,0.108c0.022,0.054,0.045,0.108,0.068,0.161 c0.129,0.29,0.276,0.571,0.444,0.841c0.366,0.587,0.819,1.116,1.32,1.591c0.137,0.13,0.278,0.256,0.422,0.379 c0.215,0.182,0.436,0.356,0.668,0.516c0.462,0.32,0.962,0.589,1.496,0.769c0.128,0.043,0.257,0.081,0.387,0.114 c0.183,0.045,0.368,0.08,0.554,0.103c0.252,0.031,0.507,0.039,0.761,0.031c0.215-0.007,0.429-0.026,0.642-0.058 c0.368-0.056,0.731-0.154,1.074-0.302c0.377-0.163,0.726-0.386,1.033-0.659c0.234-0.209,0.442-0.445,0.629-0.697 c0.315-0.426,0.563-0.9,0.732-1.402c0.2-0.595,0.289-1.222,0.295-1.848c0.003-0.325-0.023-0.65-0.089-0.968 c-0.094-0.452-0.267-0.886-0.51-1.278c-0.062-0.101-0.129-0.199-0.2-0.294c-0.048-0.064-0.096-0.128-0.149-0.188 c-0.047-0.054-0.098-0.105-0.15-0.154c-0.127-0.119-0.263-0.228-0.402-0.332c-0.184-0.137-0.374-0.266-0.567-0.39 c-0.447-0.286-0.909-0.548-1.377-0.799c-0.467-0.251-0.94-0.491-1.417-0.724c-0.565-0.277-1.136-0.545-1.708-0.806 c-0.231-0.105-0.461-0.21-0.693-0.313c-0.183-0.081-0.366-0.162-0.548-0.245c-0.092-0.042-0.184-0.085-0.275-0.128 c-0.237-0.114-0.472-0.231-0.704-0.356c-0.168-0.09-0.334-0.183-0.498-0.279c-1.126-0.66-2.175-1.482-2.978-2.519 c-0.159-0.205-0.307-0.418-0.445-0.638c-0.175-0.281-0.331-0.574-0.465-0.877c-0.311-0.7-0.503-1.449-0.578-2.211 c-0.032-0.329-0.042-0.659-0.037-0.99c0.003-0.198,0.011-0.396,0.023-0.594c0.038-0.595,0.12-1.187,0.252-1.769 c0.137-0.602,0.328-1.192,0.574-1.759c0.228-0.525,0.503-1.03,0.819-1.506c0.311-0.469,0.662-0.911,1.045-1.323 c0.469-0.504,0.985-0.965,1.546-1.365c0.561-0.399,1.167-0.736,1.803-1.001c0.74-0.307,1.52-0.515,2.313-0.629 c0.512-0.074,1.028-0.108,1.545-0.113C81.312,13.365,81.364,13.365,81.416,13.365z M87.885,30.194 c-0.028-0.011-0.028-0.011-0.058-0.018C87.846,30.182,87.865,30.188,87.885,30.194z', - fill: '#162937' - }), - i().createElement('path', { - d: 'M109.944,13.365c0.258,0.002,0.516,0.008,0.774,0.02c0.574,0.026,1.147,0.079,1.716,0.162 c1.297,0.188,2.572,0.531,3.781,1.039c0.783,0.329,1.537,0.727,2.251,1.186c0.699,0.449,1.359,0.956,1.978,1.51 c0.641,0.575,1.236,1.199,1.788,1.86c0.59,0.705,1.129,1.453,1.607,2.239c0.469,0.772,0.879,1.58,1.222,2.415 c0.466,1.134,0.809,2.317,1.033,3.522c0.226,1.223,0.33,2.466,0.33,3.709c0,1.242-0.103,2.485-0.328,3.706 c-0.222,1.203-0.563,2.384-1.026,3.516c-0.354,0.865-0.78,1.701-1.269,2.498c-0.443,0.72-0.937,1.407-1.475,2.058 c-0.568,0.688-1.183,1.338-1.849,1.933c-0.617,0.552-1.277,1.057-1.975,1.503c-0.687,0.439-1.41,0.821-2.16,1.14 c-1.046,0.445-2.143,0.767-3.262,0.971c-1.033,0.189-2.084,0.277-3.134,0.283c-1.09,0.006-2.182-0.075-3.256-0.263 c-1.122-0.196-2.223-0.509-3.276-0.945c-0.785-0.325-1.542-0.719-2.26-1.174c-0.7-0.444-1.362-0.946-1.983-1.495 c-0.642-0.568-1.238-1.186-1.79-1.841c-0.59-0.699-1.13-1.442-1.607-2.223c-0.452-0.739-0.848-1.511-1.182-2.31 c-0.487-1.162-0.843-2.377-1.072-3.616c-0.227-1.225-0.33-2.472-0.33-3.717c0-1.211,0.098-2.424,0.313-3.616 c0.218-1.211,0.556-2.4,1.018-3.54c0.354-0.872,0.778-1.714,1.269-2.516c0.48-0.787,1.023-1.535,1.616-2.24 c0.532-0.634,1.105-1.234,1.719-1.789c0.618-0.559,1.279-1.071,1.978-1.525c0.714-0.464,1.467-0.867,2.249-1.202 c1.173-0.502,2.41-0.848,3.67-1.047c0.566-0.089,1.137-0.149,1.708-0.183c0.293-0.017,0.587-0.026,0.881-0.03 C109.721,13.365,109.833,13.365,109.944,13.365z M109.734,19.767c-0.526,0.004-1.052,0.038-1.573,0.112 c-0.813,0.115-1.614,0.328-2.369,0.654c-0.577,0.249-1.124,0.562-1.631,0.933c-0.608,0.446-1.152,0.974-1.633,1.555 c-0.369,0.445-0.705,0.919-1.001,1.416c-0.293,0.492-0.547,1.006-0.76,1.538c-0.257,0.642-0.453,1.309-0.591,1.987 c-0.141,0.692-0.222,1.396-0.252,2.102c-0.023,0.547-0.017,1.094,0.021,1.64c0.067,0.955,0.237,1.902,0.519,2.817 c0.21,0.684,0.483,1.348,0.812,1.982c0.326,0.628,0.707,1.227,1.133,1.792c0.559,0.741,1.192,1.429,1.915,2.014 c0.421,0.34,0.871,0.646,1.346,0.905c0.48,0.261,0.985,0.475,1.507,0.636c0.837,0.259,1.713,0.381,2.588,0.387 c0.784,0.005,1.571-0.066,2.338-0.233c0.651-0.142,1.286-0.354,1.888-0.64c0.745-0.354,1.433-0.821,2.044-1.374 c0.486-0.44,0.922-0.932,1.314-1.457c0.49-0.655,0.91-1.363,1.25-2.107c0.416-0.91,0.711-1.873,0.896-2.856 c0.164-0.868,0.242-1.75,0.254-2.633c0.01-0.759-0.031-1.52-0.139-2.272c-0.137-0.954-0.382-1.893-0.747-2.785 c-0.217-0.53-0.477-1.043-0.775-1.532c-0.313-0.512-0.67-0.998-1.061-1.453c-0.437-0.507-0.926-0.97-1.463-1.371 c-0.553-0.413-1.157-0.757-1.794-1.023c-0.721-0.301-1.481-0.502-2.254-0.616c-0.496-0.073-0.996-0.109-1.498-0.119 C109.924,19.767,109.83,19.766,109.734,19.767z', - fill: '#162937' - }), - i().createElement('path', { - d: 'M145.375,47.78h-15.348c-0.068-0.005-0.086-0.003-0.151-0.024 c-0.148-0.048-0.267-0.167-0.315-0.315c-0.021-0.065-0.019-0.084-0.024-0.152V14.714c0.006-0.068,0.003-0.086,0.024-0.151 c0.048-0.148,0.167-0.267,0.315-0.315c0.065-0.021,0.084-0.019,0.151-0.024h5.528c0.026,0.002,0.051,0.004,0.077,0.006 c0.066,0.016,0.085,0.016,0.146,0.047c0.115,0.059,0.204,0.163,0.244,0.286c0.021,0.065,0.019,0.083,0.024,0.151V42.13h9.33 l0.077,0.006c0.066,0.016,0.085,0.016,0.146,0.047c0.115,0.059,0.204,0.163,0.244,0.286c0.021,0.065,0.019,0.083,0.024,0.151 v4.669c-0.005,0.068-0.003,0.086-0.024,0.152c-0.048,0.148-0.167,0.267-0.315,0.315C145.461,47.777,145.443,47.775,145.375,47.78 z', - fill: '#162937' - }), - i().createElement('path', { - d: 'M153.371,47.78h-5.527c-0.068-0.005-0.086-0.003-0.152-0.024 c-0.148-0.048-0.267-0.167-0.315-0.315c-0.021-0.065-0.019-0.084-0.024-0.152V14.714c0.005-0.068,0.003-0.086,0.024-0.151 c0.048-0.148,0.167-0.267,0.315-0.315c0.066-0.021,0.084-0.019,0.152-0.024h5.527c0.026,0.002,0.051,0.004,0.077,0.006 c0.066,0.016,0.085,0.016,0.146,0.047c0.115,0.059,0.204,0.163,0.244,0.286c0.021,0.065,0.019,0.083,0.024,0.151v32.575 c-0.005,0.068-0.003,0.086-0.024,0.152c-0.048,0.148-0.167,0.267-0.315,0.315C153.457,47.777,153.439,47.775,153.371,47.78z', - fill: '#162937' - }), - i().createElement('path', { - d: 'M175.346,47.78h-15.348c-0.068-0.005-0.086-0.003-0.152-0.024 c-0.148-0.048-0.267-0.167-0.315-0.315c-0.021-0.065-0.019-0.084-0.024-0.152V14.714c0.005-0.068,0.003-0.086,0.024-0.151 c0.048-0.148,0.167-0.267,0.315-0.315c0.065-0.021,0.084-0.019,0.152-0.024h5.527c0.026,0.002,0.051,0.004,0.077,0.006 c0.066,0.016,0.085,0.016,0.146,0.047c0.115,0.059,0.204,0.163,0.244,0.286c0.021,0.065,0.019,0.083,0.024,0.151V42.13h9.33 l0.077,0.006c0.066,0.016,0.085,0.016,0.146,0.047c0.115,0.059,0.204,0.163,0.244,0.286c0.021,0.065,0.019,0.083,0.024,0.151 v4.669c-0.006,0.068-0.003,0.086-0.024,0.152c-0.048,0.148-0.167,0.267-0.315,0.315C175.432,47.777,175.414,47.775,175.346,47.78 z', - fill: '#162937' - }), - i().createElement('path', { - d: 'M191.439,13.365c0.295,0.003,0.589,0.01,0.883,0.025c0.538,0.028,1.074,0.079,1.607,0.157 c1.297,0.188,2.572,0.531,3.781,1.039c0.783,0.329,1.537,0.727,2.251,1.186c0.699,0.449,1.359,0.956,1.978,1.51 c0.641,0.575,1.236,1.199,1.788,1.86c0.567,0.678,1.088,1.396,1.552,2.149c0.492,0.799,0.92,1.637,1.277,2.505 c0.479,1.167,0.829,2.386,1.051,3.628c0.22,1.226,0.317,2.472,0.311,3.716c-0.006,1.169-0.103,2.338-0.309,3.489 c-0.221,1.239-0.568,2.456-1.045,3.621c-0.341,0.833-0.748,1.639-1.215,2.409c-0.475,0.783-1.011,1.527-1.597,2.23 c-0.549,0.657-1.141,1.279-1.78,1.85c-0.592,0.53-1.223,1.015-1.889,1.448c-0.712,0.462-1.465,0.863-2.246,1.196 c-1.014,0.432-2.076,0.747-3.158,0.952c-1.067,0.202-2.152,0.297-3.237,0.303c-1.09,0.006-2.182-0.075-3.256-0.263 c-1.122-0.196-2.223-0.509-3.276-0.945c-0.785-0.325-1.542-0.719-2.26-1.174c-0.7-0.444-1.363-0.946-1.983-1.495 c-0.642-0.568-1.238-1.186-1.79-1.841c-0.546-0.646-1.048-1.329-1.497-2.045c-0.498-0.792-0.931-1.625-1.293-2.488 c-0.501-1.195-0.863-2.446-1.091-3.721c-0.214-1.192-0.311-2.402-0.311-3.612c0-1.211,0.098-2.424,0.313-3.616 c0.218-1.211,0.556-2.4,1.018-3.54c0.34-0.839,0.747-1.651,1.214-2.427c0.494-0.82,1.054-1.598,1.67-2.33 c0.533-0.634,1.105-1.234,1.719-1.789c0.644-0.582,1.334-1.113,2.064-1.581c0.688-0.441,1.412-0.825,2.163-1.146 c1.173-0.502,2.41-0.848,3.67-1.047c0.566-0.089,1.136-0.149,1.708-0.183c0.293-0.017,0.587-0.026,0.881-0.03 C191.216,13.365,191.328,13.365,191.439,13.365z M191.229,19.767c-0.504,0.004-1.007,0.035-1.507,0.103 c-0.816,0.111-1.619,0.318-2.378,0.639c-0.578,0.244-1.128,0.554-1.638,0.921c-0.628,0.454-1.188,0.994-1.682,1.591 c-0.369,0.445-0.705,0.919-1.001,1.416c-0.282,0.473-0.529,0.968-0.736,1.479c-0.269,0.661-0.473,1.347-0.615,2.046 c-0.141,0.692-0.222,1.396-0.252,2.102c-0.024,0.57-0.017,1.141,0.026,1.71c0.071,0.931,0.239,1.855,0.514,2.747 c0.21,0.684,0.482,1.348,0.812,1.982c0.326,0.628,0.707,1.227,1.133,1.792c0.572,0.758,1.222,1.461,1.965,2.055 c0.422,0.337,0.874,0.638,1.35,0.893c0.481,0.258,0.988,0.468,1.511,0.626c0.841,0.253,1.719,0.369,2.596,0.369 c0.698,0,1.397-0.059,2.083-0.194c0.717-0.141,1.417-0.365,2.077-0.679c0.726-0.345,1.398-0.797,1.997-1.332 c0.505-0.451,0.956-0.958,1.361-1.499c0.49-0.655,0.911-1.363,1.25-2.107c0.406-0.889,0.697-1.828,0.883-2.787 c0.172-0.89,0.255-1.796,0.267-2.702c0.01-0.737-0.029-1.474-0.13-2.204c-0.129-0.935-0.361-1.856-0.709-2.734 c-0.219-0.552-0.483-1.087-0.79-1.596c-0.321-0.532-0.688-1.036-1.094-1.507c-0.437-0.507-0.926-0.97-1.463-1.371 c-0.553-0.413-1.157-0.757-1.794-1.023c-0.762-0.318-1.567-0.524-2.385-0.635c-0.5-0.067-1.004-0.098-1.508-0.102 C191.325,19.766,191.277,19.766,191.229,19.767z', - fill: '#162937' - }), - i().createElement('path', { - d: 'M225.576,13.365c0.258,0.002,0.516,0.008,0.774,0.02c0.539,0.025,1.077,0.073,1.611,0.147 c1.266,0.175,2.512,0.497,3.697,0.977c1.233,0.499,2.394,1.167,3.451,1.974c0.988,0.755,1.882,1.628,2.685,2.577 c0.639,0.755,1.22,1.559,1.73,2.407c0.535,0.89,0.991,1.828,1.358,2.8c0.522,1.381,0.862,2.827,1.034,4.292 c0.121,1.029,0.157,2.066,0.129,3.102c-0.028,1.061-0.125,2.122-0.303,3.169c-0.197,1.156-0.494,2.295-0.904,3.394 c-0.396,1.06-0.897,2.08-1.5,3.038c-0.369,0.586-0.776,1.147-1.215,1.683l3.98,4.836c0.015,0.022,0.033,0.043,0.046,0.067 c0.027,0.047,0.046,0.099,0.057,0.152c0.01,0.053,0.011,0.108,0.004,0.162c-0.02,0.136-0.097,0.259-0.21,0.336 c-0.045,0.03-0.095,0.053-0.148,0.068c-0.026,0.007-0.053,0.009-0.08,0.014l-5.527,0.537c-0.071,0.001-0.089,0.006-0.159-0.01 c-0.078-0.018-0.15-0.055-0.211-0.108c-0.02-0.017-0.037-0.038-0.056-0.057l-2.087-2.514c-0.075,0.045-0.15,0.09-0.226,0.135 c-0.08,0.046-0.161,0.093-0.242,0.138c-0.284,0.158-0.572,0.307-0.865,0.447c-0.524,0.249-1.062,0.466-1.611,0.652 c-1.192,0.403-2.434,0.653-3.687,0.765c-0.803,0.072-1.611,0.088-2.416,0.057c-1.555-0.062-3.104-0.315-4.583-0.802 c-0.809-0.266-1.594-0.6-2.345-1c-0.755-0.402-1.474-0.87-2.149-1.393c-0.896-0.694-1.714-1.486-2.454-2.344 c-0.645-0.747-1.232-1.544-1.747-2.386c-0.506-0.827-0.942-1.697-1.3-2.599c-0.441-1.107-0.764-2.26-0.974-3.433 c-0.214-1.191-0.311-2.402-0.311-3.612c0-1.14,0.087-2.28,0.276-3.404c0.187-1.112,0.474-2.208,0.866-3.265 c0.327-0.881,0.725-1.735,1.191-2.551c0.543-0.953,1.177-1.853,1.883-2.692c0.326-0.388,0.667-0.764,1.024-1.124 c0.57-0.576,1.179-1.112,1.827-1.598c0.657-0.493,1.354-0.934,2.082-1.314c0.664-0.346,1.354-0.641,2.062-0.883 c0.72-0.246,1.457-0.436,2.205-0.574c0.702-0.129,1.412-0.212,2.124-0.253c0.331-0.019,0.661-0.029,0.992-0.031 C225.427,13.365,225.501,13.365,225.576,13.365z M225.423,19.552c-0.309,0.003-0.617,0.018-0.925,0.049 c-0.545,0.055-1.086,0.158-1.611,0.314c-0.572,0.169-1.124,0.402-1.645,0.691c-0.535,0.298-1.036,0.655-1.497,1.057 c-0.676,0.59-1.264,1.274-1.785,2.003c-0.731,1.023-1.321,2.145-1.729,3.335c-0.227,0.664-0.397,1.346-0.511,2.038 c-0.125,0.761-0.182,1.532-0.178,2.303c0.004,0.806,0.074,1.613,0.223,2.405c0.158,0.838,0.404,1.66,0.741,2.444 c0.416,0.965,0.968,1.868,1.628,2.685c0.251,0.311,0.517,0.611,0.8,0.893c0.417,0.416,0.871,0.796,1.359,1.127 c0.709,0.48,1.488,0.851,2.307,1.099c0.796,0.241,1.625,0.366,2.456,0.396c0.333,0.012,0.666,0.01,0.998-0.011 c0.448-0.028,0.895-0.09,1.332-0.189c0.4-0.091,0.793-0.213,1.174-0.367c0.21-0.085,0.415-0.18,0.617-0.283l0.029-0.015 l-5.615-6.417l-0.046-0.061c-0.012-0.023-0.026-0.044-0.036-0.068c-0.02-0.047-0.033-0.097-0.038-0.149 c-0.017-0.182,0.072-0.362,0.226-0.459c0.043-0.027,0.091-0.048,0.141-0.061c0.025-0.006,0.05-0.009,0.076-0.013l5.689-0.537 c0.026,0,0.051-0.003,0.077-0.001c0.077,0.005,0.152,0.028,0.219,0.067c0.059,0.035,0.069,0.05,0.118,0.098l3.262,3.694 c0.393-0.523,0.734-1.084,1.017-1.674c0.223-0.465,0.41-0.948,0.562-1.441c0.311-1.014,0.47-2.07,0.513-3.128 c0.057-1.394-0.075-2.8-0.452-4.146c-0.188-0.672-0.437-1.328-0.745-1.955c-0.28-0.571-0.609-1.119-0.979-1.637 c-0.549-0.769-1.185-1.482-1.915-2.085c-0.381-0.315-0.789-0.599-1.217-0.845c-0.44-0.252-0.901-0.464-1.379-0.634 c-0.628-0.222-1.281-0.37-1.942-0.449c-0.393-0.047-0.789-0.069-1.185-0.073C225.514,19.552,225.469,19.552,225.423,19.552z', - fill: '#162937' - }), - i().createElement('path', { - d: 'M269.525,14.248c0.063,0.026,0.081,0.029,0.137,0.07c0.083,0.061,0.147,0.147,0.178,0.245 c0.021,0.065,0.019,0.083,0.024,0.151c0,6.53,0.011,13.061,0,19.591c-0.003,0.571-0.019,1.141-0.054,1.712 c-0.027,0.438-0.065,0.876-0.115,1.313c-0.037,0.322-0.081,0.643-0.132,0.963c-0.04,0.248-0.084,0.495-0.133,0.741 c-0.326,1.629-0.871,3.231-1.753,4.647c-0.137,0.22-0.281,0.434-0.434,0.643c-0.21,0.287-0.435,0.564-0.674,0.827 c-0.389,0.428-0.816,0.821-1.276,1.172c-0.321,0.246-0.658,0.47-1.008,0.674c-0.244,0.142-0.494,0.274-0.749,0.396 c-1.628,0.777-3.428,1.126-5.221,1.219c-0.251,0.013-0.503,0.021-0.754,0.024c-0.319,0.005-0.638,0.002-0.957-0.009 c-1.736-0.056-3.485-0.34-5.095-1.012c-0.216-0.09-0.429-0.187-0.639-0.291c-0.275-0.136-0.544-0.285-0.806-0.446 c-0.365-0.224-0.716-0.473-1.048-0.743c-0.488-0.398-0.936-0.844-1.338-1.329c-0.212-0.257-0.411-0.524-0.598-0.8 c-1.006-1.491-1.614-3.219-1.965-4.974c-0.056-0.277-0.105-0.556-0.148-0.835c-0.055-0.354-0.101-0.71-0.139-1.066 c-0.047-0.44-0.081-0.881-0.105-1.324c-0.029-0.537-0.041-1.075-0.042-1.613V14.714c0.005-0.068,0.003-0.086,0.024-0.151 c0.048-0.148,0.167-0.267,0.315-0.315c0.065-0.021,0.083-0.019,0.151-0.024h5.527c0.068,0.006,0.086,0.003,0.152,0.024 c0.148,0.048,0.267,0.167,0.315,0.315c0.021,0.065,0.019,0.083,0.024,0.151c0,6.136-0.015,12.272,0.001,18.408 c0.004,0.563,0.02,1.125,0.057,1.687c0.027,0.421,0.065,0.842,0.117,1.26c0.075,0.606,0.177,1.209,0.32,1.802 c0.112,0.466,0.25,0.927,0.421,1.375c0.271,0.709,0.631,1.392,1.118,1.977c0.251,0.301,0.536,0.575,0.852,0.808 c0.463,0.341,0.988,0.59,1.542,0.743c0.624,0.173,1.277,0.231,1.923,0.21c0.459-0.015,0.918-0.073,1.363-0.188 c0.443-0.115,0.869-0.289,1.262-0.525c0.486-0.291,0.911-0.674,1.266-1.114c0.313-0.388,0.572-0.817,0.787-1.266 c0.194-0.404,0.354-0.824,0.487-1.252c0.158-0.505,0.279-1.021,0.375-1.542c0.212-1.154,0.301-2.328,0.324-3.5 c0.004-0.213,0.006-0.425,0.006-0.638V14.714c0.006-0.068,0.003-0.086,0.024-0.151c0.048-0.148,0.167-0.267,0.315-0.315 c0.065-0.021,0.083-0.019,0.151-0.024h5.474l0.077,0.006C269.474,14.236,269.5,14.242,269.525,14.248z', - fill: '#162937' - }), - i().createElement('path', { - d: 'M287.522,47.78h-5.528c-0.068-0.005-0.086-0.003-0.151-0.024 c-0.148-0.048-0.267-0.167-0.315-0.315c-0.021-0.065-0.019-0.084-0.024-0.152v-14.68l-10.184-17.65l-0.034-0.071 c-0.007-0.025-0.017-0.05-0.022-0.076c-0.01-0.052-0.013-0.105-0.006-0.157c0.016-0.131,0.086-0.253,0.192-0.333 c0.042-0.032,0.089-0.057,0.139-0.073c0.067-0.022,0.086-0.02,0.155-0.025h6.547c0.026,0.002,0.051,0.004,0.076,0.006 c0.025,0.006,0.05,0.01,0.075,0.018c0.073,0.024,0.14,0.064,0.195,0.119c0.048,0.048,0.055,0.066,0.09,0.123l5.86,11.37 l6.37-11.385l0.041-0.062c0.044-0.049,0.053-0.064,0.108-0.102c0.061-0.042,0.132-0.07,0.205-0.082 c0.025-0.004,0.049-0.004,0.074-0.006h6.547c0.026,0.002,0.053,0.002,0.079,0.007c0.052,0.009,0.103,0.026,0.149,0.05 c0.118,0.062,0.207,0.172,0.243,0.3c0.014,0.051,0.021,0.104,0.018,0.157c-0.003,0.053-0.013,0.105-0.032,0.155 c-0.01,0.025-0.023,0.047-0.035,0.071l-10.344,17.648v14.679l-0.006,0.077c-0.016,0.066-0.016,0.085-0.047,0.146 c-0.059,0.115-0.163,0.204-0.286,0.244C287.608,47.777,287.59,47.775,287.522,47.78z', - fill: '#162937' - }) - ) - ) - ); - }, - g = function (c) { - var e = c.clientId, - t = (0, o.useRef)(null), - l = (0, u.useSelect)( - function (c) { - var t, - l = c('core/block-editor').getBlock(e); - return null !== (t = null == l ? void 0 : l.attributes) && void 0 !== t - ? t - : {sliderId: null, title: ''}; - }, - [e] - ); - return ( - (0, o.useEffect)( - function () { - l.sliderId && - d()({path: '/wp/v2/soliloquy/'.concat(l.sliderId)}) - .then(function (c) { - return c; - }) - .then(function (c) { - t.current = c.gallery_data; - }) - .catch(function (c) { - console.error('Error fetching slider:', c); - }); - }, - [l.sliderId] - ), - i().createElement( - f.Placeholder, - {className: 'soliloquy-block__placeholder'}, - i().createElement( - 'div', - {className: 'soliloquy-block__placeholder-brand'}, - i().createElement(y, null) - ), - i().createElement( - 'div', - {className: 'soliloquy-block-select'}, - i().createElement(h, { - clientId: e, - attributes: l, - onSelect: function (c) { - null !== c - ? console.log('Selected option:', c) - : console.log('No option selected'); - } - }) - ) - ) - ); - }, - w = function (c) { - var e = c.clientId, - t = (0, o.useRef)(!1), - l = (0, u.useSelect)( - function (c) { - var t, - l = c('core/block-editor').getBlock(e); - return null !== (t = null == l ? void 0 : l.attributes) && void 0 !== t - ? t - : {sliderId: null, title: ''}; - }, - [e] - ); - return ( - (0, o.useEffect)( - function () { - t.current = null !== l.sliderId; - }, - [l.sliderId] - ), - i().createElement( - a.InspectorControls, - null, - i().createElement( - f.PanelBody, - {title: (0, m.__)('Slider'), className: 'soliloquy-inspector-panelbody'}, - i().createElement('h3', null, (0, m.__)('Search for a Slider')), - i().createElement(h, { - clientId: e, - attributes: l, - onSelect: function (c) { - null !== c - ? console.log('Selected option:', c) - : console.log('No option selected'); - } - }) - ) - ) - ); - }, - E = function (c) { - var e = c.clientId, - t = (0, u.useSelect)( - function (c) { - var t, - l = c('core/block-editor').getBlock(e); - return { - attributes: - null !== (t = null == l ? void 0 : l.attributes) && void 0 !== t - ? t - : {sliderId: null, title: ''} - }; - }, - [e] - ).attributes || {sliderId: null, title: ''}; - return i().createElement( - o.Fragment, - null, - i().createElement( - 'div', - {key: 'block'}, - i().createElement(g, {clientId: e, attributes: t}) - ), - i().createElement( - 'div', - {key: 'controls'}, - i().createElement(w, {clientId: e, attributes: t}) - ) - ); - }, - S = window.wp.element, - O = JSON.parse( - '{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"soliloquy/soliloquywp","version":"0.1.0","title":"Soliloquy","category":"widgets","description":"Select a Slider below to add it to your page.","example":{},"supports":{"html":true,"align":["wide","full"]},"textdomain":"soliloquywp","editorScript":"file:./index.js","editorStyle":"file:./main.css","style":"file:./style-main.css","keywords":["Slider","Photo","Carosuel"],"attributes":{"sliderId":{"type":"number","default":null},"title":{"type":"string","default":""},"soliloquy_gutenberg_data":{"type":"string","default":""}}}' - ); - function k(c, e) { - var t = Object.keys(c); - if (Object.getOwnPropertySymbols) { - var l = Object.getOwnPropertySymbols(c); - e && - (l = l.filter(function (e) { - return Object.getOwnPropertyDescriptor(c, e).enumerable; - })), - t.push.apply(t, l); - } - return t; - } - function I(c) { - for (var e = 1; e < arguments.length; e++) { - var t = null != arguments[e] ? arguments[e] : {}; - e % 2 - ? k(Object(t), !0).forEach(function (e) { - r(c, e, t[e]); - }) - : Object.getOwnPropertyDescriptors - ? Object.defineProperties(c, Object.getOwnPropertyDescriptors(t)) - : k(Object(t)).forEach(function (e) { - Object.defineProperty(c, e, Object.getOwnPropertyDescriptor(t, e)); - }); - } - return c; - } - (0, n.registerBlockType)( - O.name, - I( - I({}, O), - {}, - { - icon: function (c) { - return i().createElement( - 'svg', - b( - { - id: 'Layer_1', - xmlns: 'http://www.w3.org/2000/svg', - width: '100', - height: '100', - viewBox: '0 0 100 100' - }, - c - ), - i().createElement('path', { - d: 'M70.05-14.767h-9.466l9.466,9.468L60.584,4.17h9.466c10.459,0,18.937,8.478,18.937,18.936v4.735l9.468,9.468l9.469-9.468v-4.735C107.925,2.19,90.966-14.767,70.05-14.767z', - fill: '#172937', - transform: 'rotate(45 29.127 37.595) scale(.90454)' - }), - i().createElement('path', { - d: 'M88.987,37.309v9.469c0,10.459-8.478,18.937-18.937,18.937h-4.734l-9.468,9.468l9.468,9.468h4.734c20.916,0,37.874-16.955,37.874-37.873v-9.469l-9.469,9.469L88.987,37.309z', - fill: '#172937', - transform: 'rotate(45 29.127 37.595) scale(.90454)' - }), - i().createElement('path', { - d: 'M55.848,65.716h-9.469c-10.457,0-18.936-8.478-18.936-18.937v-4.734l-9.469-9.469l-9.466,9.469v4.734c0,20.918,16.954,37.873,37.872,37.873h9.469l-9.469-9.468L55.848,65.716z', - fill: '#ef3f23', - transform: 'rotate(45 29.127 37.595) scale(.90454)' - }), - i().createElement('path', { - d: 'M27.443,32.575v-9.469c0-10.457,8.478-18.936,18.936-18.936h4.735l9.469-9.469l-9.469-9.468h-4.735c-20.918,0-37.872,16.957-37.872,37.873v9.469l9.466-9.469L27.443,32.575z', - fill: '#172937', - transform: 'rotate(45 29.127 37.595) scale(.90454)' - }) - ); - }, - edit: function (c) { - var e = c.clientId, - t = c.attributes, - l = c.setAttributes, - r = (0, a.useBlockProps)(); - return i().createElement( - 'div', - r, - i().createElement(E, {clientId: e, attributes: t, setAttributes: l}) - ); - }, - save: function (c) { - var e = c.attributes, - t = a.useBlockProps.save(), - l = e.sliderId, - r = "[soliloquy id='".concat(l, "' type='gutenberg']"); - return null != l ? i().createElement(S.RawHTML, t, r) : null; - } - } - ) - ); - } - }, - t = {}; - function l(c) { - var r = t[c]; - if (void 0 !== r) return r.exports; - var n = (t[c] = {exports: {}}); - return e[c](n, n.exports, l), n.exports; - } - (l.m = e), - (c = []), - (l.O = (e, t, r, n) => { - if (!t) { - var o = 1 / 0; - for (s = 0; s < c.length; s++) { - for (var [t, r, n] = c[s], i = !0, a = 0; a < t.length; a++) - (!1 & n || o >= n) && Object.keys(l.O).every(c => l.O[c](t[a])) - ? t.splice(a--, 1) - : ((i = !1), n < o && (o = n)); - if (i) { - c.splice(s--, 1); - var u = r(); - void 0 !== u && (e = u); - } - } - return e; - } - n = n || 0; - for (var s = c.length; s > 0 && c[s - 1][2] > n; s--) c[s] = c[s - 1]; - c[s] = [t, r, n]; - }), - (l.n = c => { - var e = c && c.__esModule ? () => c.default : () => c; - return l.d(e, {a: e}), e; - }), - (l.d = (c, e) => { - for (var t in e) - l.o(e, t) && !l.o(c, t) && Object.defineProperty(c, t, {enumerable: !0, get: e[t]}); - }), - (l.o = (c, e) => Object.prototype.hasOwnProperty.call(c, e)), - (() => { - var c = {792: 0, 85: 0}; - l.O.j = e => 0 === c[e]; - var e = (e, t) => { - var r, - n, - [o, i, a] = t, - u = 0; - if (o.some(e => 0 !== c[e])) { - for (r in i) l.o(i, r) && (l.m[r] = i[r]); - if (a) var s = a(l); - } - for (e && e(t); u < o.length; u++) (n = o[u]), l.o(c, n) && c[n] && c[n][0](), (c[n] = 0); - return l.O(s); - }, - t = (globalThis.webpackChunk_envira_soliloquy_lite = - globalThis.webpackChunk_envira_soliloquy_lite || []); - t.forEach(e.bind(null, 0)), (t.push = e.bind(null, t.push.bind(t))); - })(); - var r = l.O(void 0, [85], () => l(85)); - r = l.O(r); -})(); +(()=>{"use strict";var c,e={85:(c,e,t)=>{function l(c){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(c){return typeof c}:function(c){return c&&"function"==typeof Symbol&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},l(c)}function r(c){var e=function(c,e){if("object"!=l(c)||!c)return c;var t=c[Symbol.toPrimitive];if(void 0!==t){var r=t.call(c,"string");if("object"!=l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}(c);return"symbol"==l(e)?e:String(e)}const n=window.wp.blocks,o=window.React;var i=t.n(o);const a=window.wp.blockEditor,u=window.wp.data,s=window.wp.apiFetch;var d=t.n(s);const f=window.wp.components;function p(c,e){(null==e||e>c.length)&&(e=c.length);for(var t=0,l=new Array(e);t<e;t++)l[t]=c[t];return l}function v(c,e){return function(c){if(Array.isArray(c))return c}(c)||function(c,e){var t=null==c?null:"undefined"!=typeof Symbol&&c[Symbol.iterator]||c["@@iterator"];if(null!=t){var l,r,n,o,i=[],a=!0,u=!1;try{if(n=(t=t.call(c)).next,0===e){if(Object(t)!==t)return;a=!1}else for(;!(a=(l=n.call(t)).done)&&(i.push(l.value),i.length!==e);a=!0);}catch(c){u=!0,r=c}finally{try{if(!a&&null!=t.return&&(o=t.return(),Object(o)!==o))return}finally{if(u)throw r}}return i}}(c,e)||function(c,e){if(c){if("string"==typeof c)return p(c,e);var t=Object.prototype.toString.call(c).slice(8,-1);return"Object"===t&&c.constructor&&(t=c.constructor.name),"Map"===t||"Set"===t?Array.from(c):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?p(c,e):void 0}}(c,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const m=window.wp.i18n,h=function(c){var e=c.clientId,t=c.onSelect,l=void 0===t?function(){}:t,r=v((0,o.useState)(null),2),n=r[0],a=r[1],s=v((0,o.useState)([]),2),f=s[0],p=s[1],h=v((0,o.useState)(""),2),b=h[0],y=h[1],g=v((0,o.useState)(!1),2),w=g[0],E=g[1],S=v((0,o.useState)(!1),2),O=S[0],k=S[1],I=(0,u.useSelect)((function(c){var t,l=c("core/block-editor").getBlock(e);return null!==(t=null==l?void 0:l.attributes)&&void 0!==t?t:{sliderId:null,title:""}}),[e]),_=(0,u.useDispatch)("core/block-editor").updateBlockAttributes,j=(0,o.useRef)(null);(0,o.useEffect)((function(){var c=I.sliderId?{value:I.sliderId,label:I.title||""}:null;a(c),y(""),M()}),[I]);var M=function(){var c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";k(!0),d()({path:"/wp/v2/soliloquy?per_page=20&search=".concat(c)}).then((function(c){var e=Array.from(new Map(c.map((function(c){return[c.id,{value:c.id,label:c.title.rendered}]}))).values());p(e)})).catch((function(c){console.error("Error fetching options:",c)})).then((function(){k(!1)}))};(0,o.useEffect)((function(){var c=function(c){j.current&&!j.current.contains(c.target)&&E(!1)};return document.addEventListener("mousedown",c),function(){document.removeEventListener("mousedown",c)}}),[j]);var C,z=function(c){a(c),y(""),E(!1),l(c);var t={sliderId:c.value,title:c.label,soliloquy_gutenberg_data:JSON.stringify({sliderId:c.value,title:c.label})};_(e,t),M()};return C=n?n.label:(0,m.__)("Search for a slider."),i().createElement("div",{ref:j,className:"select-with-search ".concat(w?"has-dropdown":"")},i().createElement("input",{type:"text",placeholder:C,value:b,onChange:function(c){var e=c.target.value;y(e),E(!0),e.length>1?M(e):""===e&&M()},onClick:function(){E(!w)},className:"search-input ".concat(n?"selected":"")}),w&&i().createElement("div",{className:"dropdown-menu"},O?i().createElement("div",{className:"dropdown-option loading"},(0,m.__)("Loading…")):i().createElement(i().Fragment,null,f.length>0?f.map((function(c){return i().createElement("div",{key:c.value,className:"dropdown-option ".concat(c.value===(null==n?void 0:n.value)?"selected":""),onClick:function(){return z(c)},onKeyDown:function(e){"Enter"!==e.key&&" "!==e.key||z(c)},role:"button",tabIndex:0},c.label)})):i().createElement("div",{className:"dropdown-option no-options"},(0,m.__)("No options")))))};function b(){return b=Object.assign?Object.assign.bind():function(c){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&(c[l]=t[l])}return c},b.apply(this,arguments)}const y=function(c){return i().createElement("svg",b({id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",width:"298.424",height:"63.743",viewBox:"0 0 298.424 63.743"},c),i().createElement("g",{id:"Layer-1"},i().createElement("path",{d:"M1.33,23.784h-2.187l2.187,2.187l-2.187,2.188H1.33c2.416,0,4.375,1.959,4.375,4.375v1.094 l2.187,2.187l2.188-2.187v-1.094C10.081,27.702,6.163,23.784,1.33,23.784z",fill:"#162937",transform:"rotate(45 78.657 100.448) scale(2.41618)"}),i().createElement("path",{d:"M5.706,35.816v2.188c0,2.416-1.959,4.375-4.375,4.375H0.237l-2.187,2.187l2.187,2.187H1.33 c4.832,0,8.75-3.917,8.75-8.75v-2.188l-2.188,2.188L5.706,35.816z",fill:"#162937",transform:"rotate(45 78.657 100.448) scale(2.41618)"}),i().createElement("path",{d:"M-1.951,42.379h-2.188c-2.416,0-4.375-1.959-4.375-4.375V36.91l-2.188-2.188l-2.187,2.188v1.094 c0,4.833,3.917,8.75,8.75,8.75h2.188l-2.188-2.187L-1.951,42.379z",fill:"#ff3700",transform:"rotate(45 78.657 100.448) scale(2.41618)"}),i().createElement("path",{d:"M-8.513,34.722v-2.188c0-2.416,1.959-4.375,4.375-4.375h1.094l2.188-2.188l-2.188-2.187h-1.094 c-4.833,0-8.75,3.918-8.75,8.75v2.188l2.187-2.188L-8.513,34.722z",fill:"#162937",transform:"rotate(45 78.657 100.448) scale(2.41618)"}),i().createElement("g",null,i().createElement("path",{d:"M81.416,13.365c0.355,0.003,0.709,0.014,1.064,0.039c0.702,0.048,1.401,0.143,2.089,0.294 c0.704,0.155,1.395,0.368,2.061,0.646c0.694,0.29,1.358,0.65,1.977,1.075c0.471,0.323,0.915,0.685,1.331,1.077 c0.211,0.2,0.413,0.408,0.609,0.622l0.052,0.058c0.044,0.057,0.059,0.07,0.087,0.137c0.043,0.1,0.051,0.214,0.023,0.319 c-0.019,0.07-0.032,0.085-0.067,0.148l-2.576,3.81c-0.016,0.021-0.031,0.043-0.049,0.061c-0.036,0.038-0.078,0.071-0.124,0.096 c-0.165,0.089-0.371,0.075-0.522-0.035c-0.021-0.015-0.041-0.033-0.06-0.051c-0.035-0.035-0.055-0.066-0.083-0.105 c-0.031-0.043-0.062-0.086-0.094-0.129c-0.042-0.056-0.084-0.111-0.127-0.166c-0.176-0.223-0.361-0.439-0.56-0.643 c-0.353-0.362-0.744-0.687-1.175-0.954c-0.417-0.258-0.868-0.46-1.339-0.595c-0.485-0.139-0.989-0.207-1.494-0.214 c-0.404-0.006-0.809,0.026-1.204,0.109c-0.337,0.071-0.666,0.179-0.978,0.325c-0.323,0.152-0.626,0.346-0.902,0.574 c-0.145,0.12-0.282,0.248-0.409,0.387c-0.165,0.181-0.311,0.378-0.434,0.589c-0.228,0.392-0.373,0.827-0.445,1.273 c-0.03,0.183-0.047,0.367-0.056,0.552c-0.002,0.058-0.004,0.116-0.005,0.175c-0.001,0.051-0.001,0.101,0.003,0.152 c0.009,0.119,0.035,0.237,0.072,0.351c0.084,0.256,0.222,0.492,0.378,0.71c0.226,0.316,0.496,0.599,0.779,0.863 c0.439,0.409,0.917,0.774,1.409,1.117c0.653,0.454,1.333,0.867,2.023,1.261c0.791,0.446,1.584,0.888,2.376,1.331 c0.531,0.297,1.062,0.593,1.594,0.888c0.386,0.214,0.771,0.429,1.16,0.637c0.031,0.016,0.048,0.025,0.077,0.04 c0.006,0.003,0.012,0.006,0.018,0.009c0.001,0-0.002-0.001-0.002-0.001h0l0.055,0.026l0.056,0.036 c0.077,0.058,0.153,0.115,0.228,0.174c0.553,0.433,1.076,0.906,1.542,1.433c0.32,0.361,0.614,0.746,0.871,1.154 c0.288,0.458,0.531,0.945,0.716,1.453c0.209,0.576,0.344,1.178,0.401,1.788c0.017,0.18,0.027,0.36,0.032,0.54 c0.004,0.167,0.002,0.334-0.001,0.501c-0.007,0.363-0.025,0.727-0.056,1.089c-0.103,1.206-0.351,2.402-0.784,3.533 c-0.222,0.578-0.491,1.138-0.808,1.669c-0.338,0.567-0.73,1.102-1.167,1.597c-0.333,0.377-0.693,0.73-1.079,1.053 c-0.486,0.407-1.012,0.764-1.568,1.067c-0.566,0.308-1.163,0.559-1.777,0.754c-1.083,0.344-2.214,0.515-3.348,0.56 c-0.482,0.019-0.966,0.018-1.448-0.013c-0.655-0.042-1.306-0.137-1.944-0.291c-0.684-0.165-1.351-0.397-1.989-0.696 c-0.641-0.3-1.251-0.667-1.82-1.087c-1.02-0.753-1.906-1.676-2.665-2.689c-0.359-0.478-0.69-0.977-0.998-1.489 c-0.04-0.066-0.079-0.133-0.118-0.2c-0.028-0.048-0.072-0.117-0.093-0.173c-0.048-0.127-0.041-0.271,0.02-0.392 c0.032-0.064,0.048-0.076,0.095-0.13l3.488-3.435c0.021-0.017,0.04-0.037,0.062-0.052c0.044-0.031,0.094-0.055,0.146-0.07 c0.131-0.038,0.275-0.018,0.392,0.053c0.046,0.028,0.088,0.064,0.122,0.106c0.017,0.021,0.033,0.043,0.046,0.067 c0.026,0.045,0.038,0.082,0.056,0.13c0.018,0.048,0.024,0.061,0.043,0.108c0.022,0.054,0.045,0.108,0.068,0.161 c0.129,0.29,0.276,0.571,0.444,0.841c0.366,0.587,0.819,1.116,1.32,1.591c0.137,0.13,0.278,0.256,0.422,0.379 c0.215,0.182,0.436,0.356,0.668,0.516c0.462,0.32,0.962,0.589,1.496,0.769c0.128,0.043,0.257,0.081,0.387,0.114 c0.183,0.045,0.368,0.08,0.554,0.103c0.252,0.031,0.507,0.039,0.761,0.031c0.215-0.007,0.429-0.026,0.642-0.058 c0.368-0.056,0.731-0.154,1.074-0.302c0.377-0.163,0.726-0.386,1.033-0.659c0.234-0.209,0.442-0.445,0.629-0.697 c0.315-0.426,0.563-0.9,0.732-1.402c0.2-0.595,0.289-1.222,0.295-1.848c0.003-0.325-0.023-0.65-0.089-0.968 c-0.094-0.452-0.267-0.886-0.51-1.278c-0.062-0.101-0.129-0.199-0.2-0.294c-0.048-0.064-0.096-0.128-0.149-0.188 c-0.047-0.054-0.098-0.105-0.15-0.154c-0.127-0.119-0.263-0.228-0.402-0.332c-0.184-0.137-0.374-0.266-0.567-0.39 c-0.447-0.286-0.909-0.548-1.377-0.799c-0.467-0.251-0.94-0.491-1.417-0.724c-0.565-0.277-1.136-0.545-1.708-0.806 c-0.231-0.105-0.461-0.21-0.693-0.313c-0.183-0.081-0.366-0.162-0.548-0.245c-0.092-0.042-0.184-0.085-0.275-0.128 c-0.237-0.114-0.472-0.231-0.704-0.356c-0.168-0.09-0.334-0.183-0.498-0.279c-1.126-0.66-2.175-1.482-2.978-2.519 c-0.159-0.205-0.307-0.418-0.445-0.638c-0.175-0.281-0.331-0.574-0.465-0.877c-0.311-0.7-0.503-1.449-0.578-2.211 c-0.032-0.329-0.042-0.659-0.037-0.99c0.003-0.198,0.011-0.396,0.023-0.594c0.038-0.595,0.12-1.187,0.252-1.769 c0.137-0.602,0.328-1.192,0.574-1.759c0.228-0.525,0.503-1.03,0.819-1.506c0.311-0.469,0.662-0.911,1.045-1.323 c0.469-0.504,0.985-0.965,1.546-1.365c0.561-0.399,1.167-0.736,1.803-1.001c0.74-0.307,1.52-0.515,2.313-0.629 c0.512-0.074,1.028-0.108,1.545-0.113C81.312,13.365,81.364,13.365,81.416,13.365z M87.885,30.194 c-0.028-0.011-0.028-0.011-0.058-0.018C87.846,30.182,87.865,30.188,87.885,30.194z",fill:"#162937"}),i().createElement("path",{d:"M109.944,13.365c0.258,0.002,0.516,0.008,0.774,0.02c0.574,0.026,1.147,0.079,1.716,0.162 c1.297,0.188,2.572,0.531,3.781,1.039c0.783,0.329,1.537,0.727,2.251,1.186c0.699,0.449,1.359,0.956,1.978,1.51 c0.641,0.575,1.236,1.199,1.788,1.86c0.59,0.705,1.129,1.453,1.607,2.239c0.469,0.772,0.879,1.58,1.222,2.415 c0.466,1.134,0.809,2.317,1.033,3.522c0.226,1.223,0.33,2.466,0.33,3.709c0,1.242-0.103,2.485-0.328,3.706 c-0.222,1.203-0.563,2.384-1.026,3.516c-0.354,0.865-0.78,1.701-1.269,2.498c-0.443,0.72-0.937,1.407-1.475,2.058 c-0.568,0.688-1.183,1.338-1.849,1.933c-0.617,0.552-1.277,1.057-1.975,1.503c-0.687,0.439-1.41,0.821-2.16,1.14 c-1.046,0.445-2.143,0.767-3.262,0.971c-1.033,0.189-2.084,0.277-3.134,0.283c-1.09,0.006-2.182-0.075-3.256-0.263 c-1.122-0.196-2.223-0.509-3.276-0.945c-0.785-0.325-1.542-0.719-2.26-1.174c-0.7-0.444-1.362-0.946-1.983-1.495 c-0.642-0.568-1.238-1.186-1.79-1.841c-0.59-0.699-1.13-1.442-1.607-2.223c-0.452-0.739-0.848-1.511-1.182-2.31 c-0.487-1.162-0.843-2.377-1.072-3.616c-0.227-1.225-0.33-2.472-0.33-3.717c0-1.211,0.098-2.424,0.313-3.616 c0.218-1.211,0.556-2.4,1.018-3.54c0.354-0.872,0.778-1.714,1.269-2.516c0.48-0.787,1.023-1.535,1.616-2.24 c0.532-0.634,1.105-1.234,1.719-1.789c0.618-0.559,1.279-1.071,1.978-1.525c0.714-0.464,1.467-0.867,2.249-1.202 c1.173-0.502,2.41-0.848,3.67-1.047c0.566-0.089,1.137-0.149,1.708-0.183c0.293-0.017,0.587-0.026,0.881-0.03 C109.721,13.365,109.833,13.365,109.944,13.365z M109.734,19.767c-0.526,0.004-1.052,0.038-1.573,0.112 c-0.813,0.115-1.614,0.328-2.369,0.654c-0.577,0.249-1.124,0.562-1.631,0.933c-0.608,0.446-1.152,0.974-1.633,1.555 c-0.369,0.445-0.705,0.919-1.001,1.416c-0.293,0.492-0.547,1.006-0.76,1.538c-0.257,0.642-0.453,1.309-0.591,1.987 c-0.141,0.692-0.222,1.396-0.252,2.102c-0.023,0.547-0.017,1.094,0.021,1.64c0.067,0.955,0.237,1.902,0.519,2.817 c0.21,0.684,0.483,1.348,0.812,1.982c0.326,0.628,0.707,1.227,1.133,1.792c0.559,0.741,1.192,1.429,1.915,2.014 c0.421,0.34,0.871,0.646,1.346,0.905c0.48,0.261,0.985,0.475,1.507,0.636c0.837,0.259,1.713,0.381,2.588,0.387 c0.784,0.005,1.571-0.066,2.338-0.233c0.651-0.142,1.286-0.354,1.888-0.64c0.745-0.354,1.433-0.821,2.044-1.374 c0.486-0.44,0.922-0.932,1.314-1.457c0.49-0.655,0.91-1.363,1.25-2.107c0.416-0.91,0.711-1.873,0.896-2.856 c0.164-0.868,0.242-1.75,0.254-2.633c0.01-0.759-0.031-1.52-0.139-2.272c-0.137-0.954-0.382-1.893-0.747-2.785 c-0.217-0.53-0.477-1.043-0.775-1.532c-0.313-0.512-0.67-0.998-1.061-1.453c-0.437-0.507-0.926-0.97-1.463-1.371 c-0.553-0.413-1.157-0.757-1.794-1.023c-0.721-0.301-1.481-0.502-2.254-0.616c-0.496-0.073-0.996-0.109-1.498-0.119 C109.924,19.767,109.83,19.766,109.734,19.767z",fill:"#162937"}),i().createElement("path",{d:"M145.375,47.78h-15.348c-0.068-0.005-0.086-0.003-0.151-0.024 c-0.148-0.048-0.267-0.167-0.315-0.315c-0.021-0.065-0.019-0.084-0.024-0.152V14.714c0.006-0.068,0.003-0.086,0.024-0.151 c0.048-0.148,0.167-0.267,0.315-0.315c0.065-0.021,0.084-0.019,0.151-0.024h5.528c0.026,0.002,0.051,0.004,0.077,0.006 c0.066,0.016,0.085,0.016,0.146,0.047c0.115,0.059,0.204,0.163,0.244,0.286c0.021,0.065,0.019,0.083,0.024,0.151V42.13h9.33 l0.077,0.006c0.066,0.016,0.085,0.016,0.146,0.047c0.115,0.059,0.204,0.163,0.244,0.286c0.021,0.065,0.019,0.083,0.024,0.151 v4.669c-0.005,0.068-0.003,0.086-0.024,0.152c-0.048,0.148-0.167,0.267-0.315,0.315C145.461,47.777,145.443,47.775,145.375,47.78 z",fill:"#162937"}),i().createElement("path",{d:"M153.371,47.78h-5.527c-0.068-0.005-0.086-0.003-0.152-0.024 c-0.148-0.048-0.267-0.167-0.315-0.315c-0.021-0.065-0.019-0.084-0.024-0.152V14.714c0.005-0.068,0.003-0.086,0.024-0.151 c0.048-0.148,0.167-0.267,0.315-0.315c0.066-0.021,0.084-0.019,0.152-0.024h5.527c0.026,0.002,0.051,0.004,0.077,0.006 c0.066,0.016,0.085,0.016,0.146,0.047c0.115,0.059,0.204,0.163,0.244,0.286c0.021,0.065,0.019,0.083,0.024,0.151v32.575 c-0.005,0.068-0.003,0.086-0.024,0.152c-0.048,0.148-0.167,0.267-0.315,0.315C153.457,47.777,153.439,47.775,153.371,47.78z",fill:"#162937"}),i().createElement("path",{d:"M175.346,47.78h-15.348c-0.068-0.005-0.086-0.003-0.152-0.024 c-0.148-0.048-0.267-0.167-0.315-0.315c-0.021-0.065-0.019-0.084-0.024-0.152V14.714c0.005-0.068,0.003-0.086,0.024-0.151 c0.048-0.148,0.167-0.267,0.315-0.315c0.065-0.021,0.084-0.019,0.152-0.024h5.527c0.026,0.002,0.051,0.004,0.077,0.006 c0.066,0.016,0.085,0.016,0.146,0.047c0.115,0.059,0.204,0.163,0.244,0.286c0.021,0.065,0.019,0.083,0.024,0.151V42.13h9.33 l0.077,0.006c0.066,0.016,0.085,0.016,0.146,0.047c0.115,0.059,0.204,0.163,0.244,0.286c0.021,0.065,0.019,0.083,0.024,0.151 v4.669c-0.006,0.068-0.003,0.086-0.024,0.152c-0.048,0.148-0.167,0.267-0.315,0.315C175.432,47.777,175.414,47.775,175.346,47.78 z",fill:"#162937"}),i().createElement("path",{d:"M191.439,13.365c0.295,0.003,0.589,0.01,0.883,0.025c0.538,0.028,1.074,0.079,1.607,0.157 c1.297,0.188,2.572,0.531,3.781,1.039c0.783,0.329,1.537,0.727,2.251,1.186c0.699,0.449,1.359,0.956,1.978,1.51 c0.641,0.575,1.236,1.199,1.788,1.86c0.567,0.678,1.088,1.396,1.552,2.149c0.492,0.799,0.92,1.637,1.277,2.505 c0.479,1.167,0.829,2.386,1.051,3.628c0.22,1.226,0.317,2.472,0.311,3.716c-0.006,1.169-0.103,2.338-0.309,3.489 c-0.221,1.239-0.568,2.456-1.045,3.621c-0.341,0.833-0.748,1.639-1.215,2.409c-0.475,0.783-1.011,1.527-1.597,2.23 c-0.549,0.657-1.141,1.279-1.78,1.85c-0.592,0.53-1.223,1.015-1.889,1.448c-0.712,0.462-1.465,0.863-2.246,1.196 c-1.014,0.432-2.076,0.747-3.158,0.952c-1.067,0.202-2.152,0.297-3.237,0.303c-1.09,0.006-2.182-0.075-3.256-0.263 c-1.122-0.196-2.223-0.509-3.276-0.945c-0.785-0.325-1.542-0.719-2.26-1.174c-0.7-0.444-1.363-0.946-1.983-1.495 c-0.642-0.568-1.238-1.186-1.79-1.841c-0.546-0.646-1.048-1.329-1.497-2.045c-0.498-0.792-0.931-1.625-1.293-2.488 c-0.501-1.195-0.863-2.446-1.091-3.721c-0.214-1.192-0.311-2.402-0.311-3.612c0-1.211,0.098-2.424,0.313-3.616 c0.218-1.211,0.556-2.4,1.018-3.54c0.34-0.839,0.747-1.651,1.214-2.427c0.494-0.82,1.054-1.598,1.67-2.33 c0.533-0.634,1.105-1.234,1.719-1.789c0.644-0.582,1.334-1.113,2.064-1.581c0.688-0.441,1.412-0.825,2.163-1.146 c1.173-0.502,2.41-0.848,3.67-1.047c0.566-0.089,1.136-0.149,1.708-0.183c0.293-0.017,0.587-0.026,0.881-0.03 C191.216,13.365,191.328,13.365,191.439,13.365z M191.229,19.767c-0.504,0.004-1.007,0.035-1.507,0.103 c-0.816,0.111-1.619,0.318-2.378,0.639c-0.578,0.244-1.128,0.554-1.638,0.921c-0.628,0.454-1.188,0.994-1.682,1.591 c-0.369,0.445-0.705,0.919-1.001,1.416c-0.282,0.473-0.529,0.968-0.736,1.479c-0.269,0.661-0.473,1.347-0.615,2.046 c-0.141,0.692-0.222,1.396-0.252,2.102c-0.024,0.57-0.017,1.141,0.026,1.71c0.071,0.931,0.239,1.855,0.514,2.747 c0.21,0.684,0.482,1.348,0.812,1.982c0.326,0.628,0.707,1.227,1.133,1.792c0.572,0.758,1.222,1.461,1.965,2.055 c0.422,0.337,0.874,0.638,1.35,0.893c0.481,0.258,0.988,0.468,1.511,0.626c0.841,0.253,1.719,0.369,2.596,0.369 c0.698,0,1.397-0.059,2.083-0.194c0.717-0.141,1.417-0.365,2.077-0.679c0.726-0.345,1.398-0.797,1.997-1.332 c0.505-0.451,0.956-0.958,1.361-1.499c0.49-0.655,0.911-1.363,1.25-2.107c0.406-0.889,0.697-1.828,0.883-2.787 c0.172-0.89,0.255-1.796,0.267-2.702c0.01-0.737-0.029-1.474-0.13-2.204c-0.129-0.935-0.361-1.856-0.709-2.734 c-0.219-0.552-0.483-1.087-0.79-1.596c-0.321-0.532-0.688-1.036-1.094-1.507c-0.437-0.507-0.926-0.97-1.463-1.371 c-0.553-0.413-1.157-0.757-1.794-1.023c-0.762-0.318-1.567-0.524-2.385-0.635c-0.5-0.067-1.004-0.098-1.508-0.102 C191.325,19.766,191.277,19.766,191.229,19.767z",fill:"#162937"}),i().createElement("path",{d:"M225.576,13.365c0.258,0.002,0.516,0.008,0.774,0.02c0.539,0.025,1.077,0.073,1.611,0.147 c1.266,0.175,2.512,0.497,3.697,0.977c1.233,0.499,2.394,1.167,3.451,1.974c0.988,0.755,1.882,1.628,2.685,2.577 c0.639,0.755,1.22,1.559,1.73,2.407c0.535,0.89,0.991,1.828,1.358,2.8c0.522,1.381,0.862,2.827,1.034,4.292 c0.121,1.029,0.157,2.066,0.129,3.102c-0.028,1.061-0.125,2.122-0.303,3.169c-0.197,1.156-0.494,2.295-0.904,3.394 c-0.396,1.06-0.897,2.08-1.5,3.038c-0.369,0.586-0.776,1.147-1.215,1.683l3.98,4.836c0.015,0.022,0.033,0.043,0.046,0.067 c0.027,0.047,0.046,0.099,0.057,0.152c0.01,0.053,0.011,0.108,0.004,0.162c-0.02,0.136-0.097,0.259-0.21,0.336 c-0.045,0.03-0.095,0.053-0.148,0.068c-0.026,0.007-0.053,0.009-0.08,0.014l-5.527,0.537c-0.071,0.001-0.089,0.006-0.159-0.01 c-0.078-0.018-0.15-0.055-0.211-0.108c-0.02-0.017-0.037-0.038-0.056-0.057l-2.087-2.514c-0.075,0.045-0.15,0.09-0.226,0.135 c-0.08,0.046-0.161,0.093-0.242,0.138c-0.284,0.158-0.572,0.307-0.865,0.447c-0.524,0.249-1.062,0.466-1.611,0.652 c-1.192,0.403-2.434,0.653-3.687,0.765c-0.803,0.072-1.611,0.088-2.416,0.057c-1.555-0.062-3.104-0.315-4.583-0.802 c-0.809-0.266-1.594-0.6-2.345-1c-0.755-0.402-1.474-0.87-2.149-1.393c-0.896-0.694-1.714-1.486-2.454-2.344 c-0.645-0.747-1.232-1.544-1.747-2.386c-0.506-0.827-0.942-1.697-1.3-2.599c-0.441-1.107-0.764-2.26-0.974-3.433 c-0.214-1.191-0.311-2.402-0.311-3.612c0-1.14,0.087-2.28,0.276-3.404c0.187-1.112,0.474-2.208,0.866-3.265 c0.327-0.881,0.725-1.735,1.191-2.551c0.543-0.953,1.177-1.853,1.883-2.692c0.326-0.388,0.667-0.764,1.024-1.124 c0.57-0.576,1.179-1.112,1.827-1.598c0.657-0.493,1.354-0.934,2.082-1.314c0.664-0.346,1.354-0.641,2.062-0.883 c0.72-0.246,1.457-0.436,2.205-0.574c0.702-0.129,1.412-0.212,2.124-0.253c0.331-0.019,0.661-0.029,0.992-0.031 C225.427,13.365,225.501,13.365,225.576,13.365z M225.423,19.552c-0.309,0.003-0.617,0.018-0.925,0.049 c-0.545,0.055-1.086,0.158-1.611,0.314c-0.572,0.169-1.124,0.402-1.645,0.691c-0.535,0.298-1.036,0.655-1.497,1.057 c-0.676,0.59-1.264,1.274-1.785,2.003c-0.731,1.023-1.321,2.145-1.729,3.335c-0.227,0.664-0.397,1.346-0.511,2.038 c-0.125,0.761-0.182,1.532-0.178,2.303c0.004,0.806,0.074,1.613,0.223,2.405c0.158,0.838,0.404,1.66,0.741,2.444 c0.416,0.965,0.968,1.868,1.628,2.685c0.251,0.311,0.517,0.611,0.8,0.893c0.417,0.416,0.871,0.796,1.359,1.127 c0.709,0.48,1.488,0.851,2.307,1.099c0.796,0.241,1.625,0.366,2.456,0.396c0.333,0.012,0.666,0.01,0.998-0.011 c0.448-0.028,0.895-0.09,1.332-0.189c0.4-0.091,0.793-0.213,1.174-0.367c0.21-0.085,0.415-0.18,0.617-0.283l0.029-0.015 l-5.615-6.417l-0.046-0.061c-0.012-0.023-0.026-0.044-0.036-0.068c-0.02-0.047-0.033-0.097-0.038-0.149 c-0.017-0.182,0.072-0.362,0.226-0.459c0.043-0.027,0.091-0.048,0.141-0.061c0.025-0.006,0.05-0.009,0.076-0.013l5.689-0.537 c0.026,0,0.051-0.003,0.077-0.001c0.077,0.005,0.152,0.028,0.219,0.067c0.059,0.035,0.069,0.05,0.118,0.098l3.262,3.694 c0.393-0.523,0.734-1.084,1.017-1.674c0.223-0.465,0.41-0.948,0.562-1.441c0.311-1.014,0.47-2.07,0.513-3.128 c0.057-1.394-0.075-2.8-0.452-4.146c-0.188-0.672-0.437-1.328-0.745-1.955c-0.28-0.571-0.609-1.119-0.979-1.637 c-0.549-0.769-1.185-1.482-1.915-2.085c-0.381-0.315-0.789-0.599-1.217-0.845c-0.44-0.252-0.901-0.464-1.379-0.634 c-0.628-0.222-1.281-0.37-1.942-0.449c-0.393-0.047-0.789-0.069-1.185-0.073C225.514,19.552,225.469,19.552,225.423,19.552z",fill:"#162937"}),i().createElement("path",{d:"M269.525,14.248c0.063,0.026,0.081,0.029,0.137,0.07c0.083,0.061,0.147,0.147,0.178,0.245 c0.021,0.065,0.019,0.083,0.024,0.151c0,6.53,0.011,13.061,0,19.591c-0.003,0.571-0.019,1.141-0.054,1.712 c-0.027,0.438-0.065,0.876-0.115,1.313c-0.037,0.322-0.081,0.643-0.132,0.963c-0.04,0.248-0.084,0.495-0.133,0.741 c-0.326,1.629-0.871,3.231-1.753,4.647c-0.137,0.22-0.281,0.434-0.434,0.643c-0.21,0.287-0.435,0.564-0.674,0.827 c-0.389,0.428-0.816,0.821-1.276,1.172c-0.321,0.246-0.658,0.47-1.008,0.674c-0.244,0.142-0.494,0.274-0.749,0.396 c-1.628,0.777-3.428,1.126-5.221,1.219c-0.251,0.013-0.503,0.021-0.754,0.024c-0.319,0.005-0.638,0.002-0.957-0.009 c-1.736-0.056-3.485-0.34-5.095-1.012c-0.216-0.09-0.429-0.187-0.639-0.291c-0.275-0.136-0.544-0.285-0.806-0.446 c-0.365-0.224-0.716-0.473-1.048-0.743c-0.488-0.398-0.936-0.844-1.338-1.329c-0.212-0.257-0.411-0.524-0.598-0.8 c-1.006-1.491-1.614-3.219-1.965-4.974c-0.056-0.277-0.105-0.556-0.148-0.835c-0.055-0.354-0.101-0.71-0.139-1.066 c-0.047-0.44-0.081-0.881-0.105-1.324c-0.029-0.537-0.041-1.075-0.042-1.613V14.714c0.005-0.068,0.003-0.086,0.024-0.151 c0.048-0.148,0.167-0.267,0.315-0.315c0.065-0.021,0.083-0.019,0.151-0.024h5.527c0.068,0.006,0.086,0.003,0.152,0.024 c0.148,0.048,0.267,0.167,0.315,0.315c0.021,0.065,0.019,0.083,0.024,0.151c0,6.136-0.015,12.272,0.001,18.408 c0.004,0.563,0.02,1.125,0.057,1.687c0.027,0.421,0.065,0.842,0.117,1.26c0.075,0.606,0.177,1.209,0.32,1.802 c0.112,0.466,0.25,0.927,0.421,1.375c0.271,0.709,0.631,1.392,1.118,1.977c0.251,0.301,0.536,0.575,0.852,0.808 c0.463,0.341,0.988,0.59,1.542,0.743c0.624,0.173,1.277,0.231,1.923,0.21c0.459-0.015,0.918-0.073,1.363-0.188 c0.443-0.115,0.869-0.289,1.262-0.525c0.486-0.291,0.911-0.674,1.266-1.114c0.313-0.388,0.572-0.817,0.787-1.266 c0.194-0.404,0.354-0.824,0.487-1.252c0.158-0.505,0.279-1.021,0.375-1.542c0.212-1.154,0.301-2.328,0.324-3.5 c0.004-0.213,0.006-0.425,0.006-0.638V14.714c0.006-0.068,0.003-0.086,0.024-0.151c0.048-0.148,0.167-0.267,0.315-0.315 c0.065-0.021,0.083-0.019,0.151-0.024h5.474l0.077,0.006C269.474,14.236,269.5,14.242,269.525,14.248z",fill:"#162937"}),i().createElement("path",{d:"M287.522,47.78h-5.528c-0.068-0.005-0.086-0.003-0.151-0.024 c-0.148-0.048-0.267-0.167-0.315-0.315c-0.021-0.065-0.019-0.084-0.024-0.152v-14.68l-10.184-17.65l-0.034-0.071 c-0.007-0.025-0.017-0.05-0.022-0.076c-0.01-0.052-0.013-0.105-0.006-0.157c0.016-0.131,0.086-0.253,0.192-0.333 c0.042-0.032,0.089-0.057,0.139-0.073c0.067-0.022,0.086-0.02,0.155-0.025h6.547c0.026,0.002,0.051,0.004,0.076,0.006 c0.025,0.006,0.05,0.01,0.075,0.018c0.073,0.024,0.14,0.064,0.195,0.119c0.048,0.048,0.055,0.066,0.09,0.123l5.86,11.37 l6.37-11.385l0.041-0.062c0.044-0.049,0.053-0.064,0.108-0.102c0.061-0.042,0.132-0.07,0.205-0.082 c0.025-0.004,0.049-0.004,0.074-0.006h6.547c0.026,0.002,0.053,0.002,0.079,0.007c0.052,0.009,0.103,0.026,0.149,0.05 c0.118,0.062,0.207,0.172,0.243,0.3c0.014,0.051,0.021,0.104,0.018,0.157c-0.003,0.053-0.013,0.105-0.032,0.155 c-0.01,0.025-0.023,0.047-0.035,0.071l-10.344,17.648v14.679l-0.006,0.077c-0.016,0.066-0.016,0.085-0.047,0.146 c-0.059,0.115-0.163,0.204-0.286,0.244C287.608,47.777,287.59,47.775,287.522,47.78z",fill:"#162937"}))))},g=function(c){var e=c.clientId,t=(0,o.useRef)(null),l=(0,u.useSelect)((function(c){var t,l=c("core/block-editor").getBlock(e);return null!==(t=null==l?void 0:l.attributes)&&void 0!==t?t:{sliderId:null,title:""}}),[e]);return(0,o.useEffect)((function(){l.sliderId&&d()({path:"/wp/v2/soliloquy/".concat(l.sliderId)}).then((function(c){return c})).then((function(c){t.current=c.gallery_data})).catch((function(c){console.error("Error fetching slider:",c)}))}),[l.sliderId]),i().createElement(f.Placeholder,{className:"soliloquy-block__placeholder"},i().createElement("div",{className:"soliloquy-block__placeholder-brand"},i().createElement(y,null)),i().createElement("div",{className:"soliloquy-block-select"},i().createElement(h,{clientId:e,attributes:l,onSelect:function(c){null!==c?console.log("Selected option:",c):console.log("No option selected")}})))},w=function(c){var e=c.clientId,t=(0,o.useRef)(!1),l=(0,u.useSelect)((function(c){var t,l=c("core/block-editor").getBlock(e);return null!==(t=null==l?void 0:l.attributes)&&void 0!==t?t:{sliderId:null,title:""}}),[e]);return(0,o.useEffect)((function(){t.current=null!==l.sliderId}),[l.sliderId]),i().createElement(a.InspectorControls,null,i().createElement(f.PanelBody,{title:(0,m.__)("Slider"),className:"soliloquy-inspector-panelbody"},i().createElement("h3",null,(0,m.__)("Search for a Slider")),i().createElement(h,{clientId:e,attributes:l,onSelect:function(c){null!==c?console.log("Selected option:",c):console.log("No option selected")}})))},E=function(c){var e=c.clientId,t=(0,u.useSelect)((function(c){var t,l=c("core/block-editor").getBlock(e);return{attributes:null!==(t=null==l?void 0:l.attributes)&&void 0!==t?t:{sliderId:null,title:""}}}),[e]).attributes||{sliderId:null,title:""};return i().createElement(o.Fragment,null,i().createElement("div",{key:"block"},i().createElement(g,{clientId:e,attributes:t})),i().createElement("div",{key:"controls"},i().createElement(w,{clientId:e,attributes:t})))},S=window.wp.element,O=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"soliloquy/soliloquywp","version":"0.1.0","title":"Soliloquy","category":"widgets","description":"Select a Slider below to add it to your page.","example":{},"supports":{"html":true,"align":["wide","full"]},"textdomain":"soliloquywp","editorScript":"file:./index.js","editorStyle":"file:./main.css","style":"file:./style-main.css","keywords":["Slider","Photo","Carousel"],"attributes":{"sliderId":{"type":"number","default":null},"title":{"type":"string","default":""},"soliloquy_gutenberg_data":{"type":"string","default":""}}}');function k(c,e){var t=Object.keys(c);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(c);e&&(l=l.filter((function(e){return Object.getOwnPropertyDescriptor(c,e).enumerable}))),t.push.apply(t,l)}return t}function I(c){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?k(Object(t),!0).forEach((function(e){var l,n,o;l=c,n=e,o=t[e],(n=r(n))in l?Object.defineProperty(l,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):l[n]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(t)):k(Object(t)).forEach((function(e){Object.defineProperty(c,e,Object.getOwnPropertyDescriptor(t,e))}))}return c}(0,n.registerBlockType)(O.name,I(I({},O),{},{icon:function(c){return i().createElement("svg",b({id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",width:"100",height:"100",viewBox:"0 0 100 100"},c),i().createElement("path",{d:"M70.05-14.767h-9.466l9.466,9.468L60.584,4.17h9.466c10.459,0,18.937,8.478,18.937,18.936v4.735l9.468,9.468l9.469-9.468v-4.735C107.925,2.19,90.966-14.767,70.05-14.767z",fill:"#172937",transform:"rotate(45 29.127 37.595) scale(.90454)"}),i().createElement("path",{d:"M88.987,37.309v9.469c0,10.459-8.478,18.937-18.937,18.937h-4.734l-9.468,9.468l9.468,9.468h4.734c20.916,0,37.874-16.955,37.874-37.873v-9.469l-9.469,9.469L88.987,37.309z",fill:"#172937",transform:"rotate(45 29.127 37.595) scale(.90454)"}),i().createElement("path",{d:"M55.848,65.716h-9.469c-10.457,0-18.936-8.478-18.936-18.937v-4.734l-9.469-9.469l-9.466,9.469v4.734c0,20.918,16.954,37.873,37.872,37.873h9.469l-9.469-9.468L55.848,65.716z",fill:"#ef3f23",transform:"rotate(45 29.127 37.595) scale(.90454)"}),i().createElement("path",{d:"M27.443,32.575v-9.469c0-10.457,8.478-18.936,18.936-18.936h4.735l9.469-9.469l-9.469-9.468h-4.735c-20.918,0-37.872,16.957-37.872,37.873v9.469l9.466-9.469L27.443,32.575z",fill:"#172937",transform:"rotate(45 29.127 37.595) scale(.90454)"}))},edit:function(c){var e=c.clientId,t=c.attributes,l=c.setAttributes,r=(0,a.useBlockProps)();return i().createElement("div",r,i().createElement(E,{clientId:e,attributes:t,setAttributes:l}))},save:function(c){var e=c.attributes,t=a.useBlockProps.save(),l=e.sliderId,r="[soliloquy id='".concat(l,"' type='gutenberg']");return null!=l?i().createElement(S.RawHTML,t,r):null}}))}},t={};function l(c){var r=t[c];if(void 0!==r)return r.exports;var n=t[c]={exports:{}};return e[c](n,n.exports,l),n.exports}l.m=e,c=[],l.O=(e,t,r,n)=>{if(!t){var o=1/0;for(s=0;s<c.length;s++){for(var[t,r,n]=c[s],i=!0,a=0;a<t.length;a++)(!1&n||o>=n)&&Object.keys(l.O).every((c=>l.O[c](t[a])))?t.splice(a--,1):(i=!1,n<o&&(o=n));if(i){c.splice(s--,1);var u=r();void 0!==u&&(e=u)}}return e}n=n||0;for(var s=c.length;s>0&&c[s-1][2]>n;s--)c[s]=c[s-1];c[s]=[t,r,n]},l.n=c=>{var e=c&&c.__esModule?()=>c.default:()=>c;return l.d(e,{a:e}),e},l.d=(c,e)=>{for(var t in e)l.o(e,t)&&!l.o(c,t)&&Object.defineProperty(c,t,{enumerable:!0,get:e[t]})},l.o=(c,e)=>Object.prototype.hasOwnProperty.call(c,e),(()=>{var c={792:0,85:0};l.O.j=e=>0===c[e];var e=(e,t)=>{var r,n,[o,i,a]=t,u=0;if(o.some((e=>0!==c[e]))){for(r in i)l.o(i,r)&&(l.m[r]=i[r]);if(a)var s=a(l)}for(e&&e(t);u<o.length;u++)n=o[u],l.o(c,n)&&c[n]&&c[n][0](),c[n]=0;return l.O(s)},t=globalThis.webpackChunk_envira_soliloquy_lite=globalThis.webpackChunk_envira_soliloquy_lite||[];t.forEach(e.bind(null,0)),t.push=e.bind(null,t.push.bind(t))})();var r=l.O(void 0,[85],(()=>l(85)));r=l.O(r)})(); \ No newline at end of file @@ -1,114 +1,2 @@ -.select-with-search { - font-family: inherit; - margin: 0 auto; - max-width: 100%; - position: relative; - width: 100%; -} -.select-with-search .search-input { - background: #fff - url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2714%27 height=%2710%27%3E%3Cpath fill=%27none%27 stroke=%27%23323a45%27 stroke-width=%272%27 d=%27m1 1 6 6 6-6%27/%3E%3C/svg%3E") - no-repeat right 12px center; - border: 1px solid gray; - border-radius: 4px; - box-sizing: border-box; - color: #333; - cursor: pointer; - font-size: 14px; - line-height: 1.5; - padding: 12px 40px 12px 12px; - transition: - border-color 0.2s ease-in-out, - box-shadow 0.2s ease-in-out; - width: 100%; -} -.select-with-search .search-input:focus { - border-color: #2684ff; - box-shadow: 0 0 0 1px #2684ff; - outline: none; -} -.select-with-search .search-input::-moz-placeholder { - color: gray; - font-size: 13px; -} -.select-with-search .search-input::placeholder { - color: gray; - font-size: 13px; -} -.select-with-search .search-input.selected::-moz-placeholder { - color: #333; - font-size: 13px; -} -.select-with-search .search-input.selected::placeholder { - color: #333; - font-size: 13px; -} -.select-with-search .dropdown-menu { - background: #fff; - border: 1px solid #d9d9d9; - border-radius: 5px; - box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); - margin-top: 7px; - max-height: 250px; - overflow-y: auto; - padding-bottom: 5px; - padding-top: 5px; - position: absolute; - width: 100%; - z-index: 1000; -} -.select-with-search .dropdown-menu .dropdown-option { - color: #333; - cursor: pointer; - font-size: 13px; - padding: 12px; - transition: background-color 0.2s ease-in-out; -} -.select-with-search .dropdown-menu .dropdown-option:hover { - background: #f1f1f1; -} -.select-with-search .dropdown-menu .dropdown-option.selected { - background: #2684ff; - color: #fff; -} -.select-with-search .dropdown-menu .dropdown-option:first-of-type { - border-radius: 4px 4px 0 0; -} -.select-with-search .dropdown-menu .dropdown-option:last-of-type { - border-radius: 0 0 4px 4px; -} -.select-with-search .dropdown-menu .loading, -.select-with-search .dropdown-menu .no-options { - color: gray; - font-size: 13px; - padding: 12px; - text-align: center; -} -.wp-block-envira-example-dynamic-example-dynamic { - border: 1px dotted red; -} -.EnviraClear { - width: 100%; -} -.soliloquy-inspector-panelbody h3 { - margin-bottom: 10px; - margin-top: 20px; -} -.soliloquy-inspector-panelbody input, -.soliloquy-inspector-panelbody input:active, -.soliloquy-inspector-panelbody input:focus { - border: none; - box-shadow: none; - outline: none; -} -.soliloquy-block-select { - padding-top: 20px; - width: 100%; -} -.soliloquy-block-select input, -.soliloquy-block-select input:active, -.soliloquy-block-select input:focus { - border: none; - box-shadow: none; - outline: none; -} +.select-with-search{font-family:inherit;margin:0 auto;max-width:100%;position:relative;width:100%}.select-with-search .search-input{background:#fff url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2714%27 height=%2710%27%3E%3Cpath fill=%27none%27 stroke=%27%23323a45%27 stroke-width=%272%27 d=%27m1 1 6 6 6-6%27/%3E%3C/svg%3E") no-repeat right 12px center;border:1px solid gray;border-radius:4px;box-sizing:border-box;color:#333;cursor:pointer;font-size:14px;line-height:1.5;padding:12px 40px 12px 12px;transition:border-color .2s ease-in-out,box-shadow .2s ease-in-out;width:100%}.select-with-search .search-input:focus{border-color:#2684ff;box-shadow:0 0 0 1px #2684ff;outline:none}.select-with-search .search-input::-moz-placeholder{color:gray;font-size:13px}.select-with-search .search-input::placeholder{color:gray;font-size:13px}.select-with-search .search-input.selected::-moz-placeholder{color:#333;font-size:13px}.select-with-search .search-input.selected::placeholder{color:#333;font-size:13px}.select-with-search .dropdown-menu{background:#fff;border:1px solid #d9d9d9;border-radius:5px;box-shadow:0 4px 8px rgba(0,0,0,.2);margin-top:7px;max-height:250px;overflow-y:auto;padding-bottom:5px;padding-top:5px;position:absolute;width:100%;z-index:1000}.select-with-search .dropdown-menu .dropdown-option{color:#333;cursor:pointer;font-size:13px;padding:12px;transition:background-color .2s ease-in-out}.select-with-search .dropdown-menu .dropdown-option:hover{background:#f1f1f1}.select-with-search .dropdown-menu .dropdown-option.selected{background:#2684ff;color:#fff}.select-with-search .dropdown-menu .dropdown-option:first-of-type{border-radius:4px 4px 0 0}.select-with-search .dropdown-menu .dropdown-option:last-of-type{border-radius:0 0 4px 4px}.select-with-search .dropdown-menu .loading,.select-with-search .dropdown-menu .no-options{color:gray;font-size:13px;padding:12px;text-align:center} +.wp-block-envira-example-dynamic-example-dynamic{border:1px dotted red}.EnviraClear{width:100%}.soliloquy-inspector-panelbody h3{margin-bottom:10px;margin-top:20px}.soliloquy-inspector-panelbody input,.soliloquy-inspector-panelbody input:active,.soliloquy-inspector-panelbody input:focus{border:none;box-shadow:none;outline:none}.soliloquy-block-select{padding-top:20px;width:100%}.soliloquy-block-select input,.soliloquy-block-select input:active,.soliloquy-block-select input:focus{border:none;box-shadow:none;outline:none} @@ -1,114 +1,2 @@ -.select-with-search { - font-family: inherit; - margin: 0 auto; - max-width: 100%; - position: relative; - width: 100%; -} -.select-with-search .search-input { - background: #fff - url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2714%27 height=%2710%27%3E%3Cpath fill=%27none%27 stroke=%27%23323a45%27 stroke-width=%272%27 d=%27m1 1 6 6 6-6%27/%3E%3C/svg%3E") - no-repeat left 12px center; - border: 1px solid gray; - border-radius: 4px; - box-sizing: border-box; - color: #333; - cursor: pointer; - font-size: 14px; - line-height: 1.5; - padding: 12px 12px 12px 40px; - transition: - border-color 0.2s ease-in-out, - box-shadow 0.2s ease-in-out; - width: 100%; -} -.select-with-search .search-input:focus { - border-color: #2684ff; - box-shadow: 0 0 0 1px #2684ff; - outline: none; -} -.select-with-search .search-input::-moz-placeholder { - color: gray; - font-size: 13px; -} -.select-with-search .search-input::placeholder { - color: gray; - font-size: 13px; -} -.select-with-search .search-input.selected::-moz-placeholder { - color: #333; - font-size: 13px; -} -.select-with-search .search-input.selected::placeholder { - color: #333; - font-size: 13px; -} -.select-with-search .dropdown-menu { - background: #fff; - border: 1px solid #d9d9d9; - border-radius: 5px; - box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); - margin-top: 7px; - max-height: 250px; - overflow-y: auto; - padding-bottom: 5px; - padding-top: 5px; - position: absolute; - width: 100%; - z-index: 1000; -} -.select-with-search .dropdown-menu .dropdown-option { - color: #333; - cursor: pointer; - font-size: 13px; - padding: 12px; - transition: background-color 0.2s ease-in-out; -} -.select-with-search .dropdown-menu .dropdown-option:hover { - background: #f1f1f1; -} -.select-with-search .dropdown-menu .dropdown-option.selected { - background: #2684ff; - color: #fff; -} -.select-with-search .dropdown-menu .dropdown-option:first-of-type { - border-radius: 4px 4px 0 0; -} -.select-with-search .dropdown-menu .dropdown-option:last-of-type { - border-radius: 0 0 4px 4px; -} -.select-with-search .dropdown-menu .loading, -.select-with-search .dropdown-menu .no-options { - color: gray; - font-size: 13px; - padding: 12px; - text-align: center; -} -.wp-block-envira-example-dynamic-example-dynamic { - border: 1px dotted red; -} -.EnviraClear { - width: 100%; -} -.soliloquy-inspector-panelbody h3 { - margin-bottom: 10px; - margin-top: 20px; -} -.soliloquy-inspector-panelbody input, -.soliloquy-inspector-panelbody input:active, -.soliloquy-inspector-panelbody input:focus { - border: none; - box-shadow: none; - outline: none; -} -.soliloquy-block-select { - padding-top: 20px; - width: 100%; -} -.soliloquy-block-select input, -.soliloquy-block-select input:active, -.soliloquy-block-select input:focus { - border: none; - box-shadow: none; - outline: none; -} +.select-with-search{font-family:inherit;margin:0 auto;max-width:100%;position:relative;width:100%}.select-with-search .search-input{background:#fff url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2714%27 height=%2710%27%3E%3Cpath fill=%27none%27 stroke=%27%23323a45%27 stroke-width=%272%27 d=%27m1 1 6 6 6-6%27/%3E%3C/svg%3E") no-repeat left 12px center;border:1px solid gray;border-radius:4px;box-sizing:border-box;color:#333;cursor:pointer;font-size:14px;line-height:1.5;padding:12px 12px 12px 40px;transition:border-color .2s ease-in-out,box-shadow .2s ease-in-out;width:100%}.select-with-search .search-input:focus{border-color:#2684ff;box-shadow:0 0 0 1px #2684ff;outline:none}.select-with-search .search-input::-moz-placeholder{color:gray;font-size:13px}.select-with-search .search-input::placeholder{color:gray;font-size:13px}.select-with-search .search-input.selected::-moz-placeholder{color:#333;font-size:13px}.select-with-search .search-input.selected::placeholder{color:#333;font-size:13px}.select-with-search .dropdown-menu{background:#fff;border:1px solid #d9d9d9;border-radius:5px;box-shadow:0 4px 8px rgba(0,0,0,.2);margin-top:7px;max-height:250px;overflow-y:auto;padding-bottom:5px;padding-top:5px;position:absolute;width:100%;z-index:1000}.select-with-search .dropdown-menu .dropdown-option{color:#333;cursor:pointer;font-size:13px;padding:12px;transition:background-color .2s ease-in-out}.select-with-search .dropdown-menu .dropdown-option:hover{background:#f1f1f1}.select-with-search .dropdown-menu .dropdown-option.selected{background:#2684ff;color:#fff}.select-with-search .dropdown-menu .dropdown-option:first-of-type{border-radius:4px 4px 0 0}.select-with-search .dropdown-menu .dropdown-option:last-of-type{border-radius:0 0 4px 4px}.select-with-search .dropdown-menu .loading,.select-with-search .dropdown-menu .no-options{color:gray;font-size:13px;padding:12px;text-align:center} +.wp-block-envira-example-dynamic-example-dynamic{border:1px dotted red}.EnviraClear{width:100%}.soliloquy-inspector-panelbody h3{margin-bottom:10px;margin-top:20px}.soliloquy-inspector-panelbody input,.soliloquy-inspector-panelbody input:active,.soliloquy-inspector-panelbody input:focus{border:none;box-shadow:none;outline:none}.soliloquy-block-select{padding-top:20px;width:100%}.soliloquy-block-select input,.soliloquy-block-select input:active,.soliloquy-block-select input:focus{border:none;box-shadow:none;outline:none} @@ -0,0 +1 @@ + @@ -0,0 +1 @@ + Only in /home/deploy/wp-safety.org/data/plugin-versions/soliloquy-lite/2.8.2: eslint.config.js @@ -105,6 +105,10 @@ */ public function enqueue_admin_styles() { + // Enqueue jquery-confirm CSS for upgrade modal. + wp_register_style( $this->base->plugin_slug . '-jquery-confirm', plugins_url( 'assets/lib/jquery.confirm/jquery-confirm.min.css', $this->base->file ), [], $this->base->version ); + wp_enqueue_style( $this->base->plugin_slug . '-jquery-confirm' ); + wp_register_style( $this->base->plugin_slug . '-addons-style', plugins_url( 'assets/css/addons.css', $this->base->file ), [], $this->base->version ); wp_enqueue_style( $this->base->plugin_slug . '-addons-style' ); @@ -125,26 +129,30 @@ wp_register_script( $this->base->plugin_slug . '-chosen', plugins_url( 'assets/js/min/chosen.jquery-min.js', $this->base->file ), [], $this->base->version, true ); wp_enqueue_script( $this->base->plugin_slug . '-chosen' ); - wp_register_script( $this->base->plugin_slug . '-addons-script', plugins_url( 'assets/js/addons.js', $this->base->file ), [ 'jquery', 'jquery-ui-tabs' ], $this->base->version, true ); + // Register jquery-confirm JS for upgrade modal; it will be enqueued + // automatically as a dependency of the addons script. + wp_register_script( $this->base->plugin_slug . '-jquery-confirm', plugins_url( 'assets/lib/jquery.confirm/jquery-confirm.min.js', $this->base->file ), [ 'jquery' ], $this->base->version, true ); + + wp_register_script( $this->base->plugin_slug . '-addons-script', plugins_url( 'assets/js/addons.js', $this->base->file ), [ 'jquery', 'jquery-ui-tabs', $this->base->plugin_slug . '-jquery-confirm' ], $this->base->version, true ); wp_enqueue_script( $this->base->plugin_slug . '-addons-script' ); wp_localize_script( $this->base->plugin_slug . '-addons-script', 'soliloquy_addons', [ - 'active' => __( 'Active', 'soliloquy' ), - 'activate' => __( 'Activate', 'soliloquy' ), - 'activate_nonce' => wp_create_nonce( 'soliloquy-activate' ), - 'activating' => __( 'Activating...', 'soliloquy' ), - 'ajax' => admin_url( 'admin-ajax.php' ), - 'deactivate' => __( 'Deactivate', 'soliloquy' ), - 'deactivate_nonce' => wp_create_nonce( 'soliloquy-deactivate' ), - 'deactivating' => __( 'Deactivating...', 'soliloquy' ), - 'inactive' => __( 'Inactive', 'soliloquy' ), - 'install' => __( 'Install Addon', 'soliloquy' ), - 'install_nonce' => wp_create_nonce( 'soliloquy-install' ), - 'installing' => __( 'Installing...', 'soliloquy' ), - 'proceed' => __( 'Proceed', 'soliloquy' ), - 'redirect' => esc_url( + 'active' => esc_html__( 'Active', 'soliloquy' ), + 'activate' => esc_html__( 'Activate', 'soliloquy' ), + 'activate_nonce' => wp_create_nonce( 'soliloquy-activate' ), + 'activating' => esc_html__( 'Activating...', 'soliloquy' ), + 'ajax' => admin_url( 'admin-ajax.php' ), + 'deactivate' => esc_html__( 'Deactivate', 'soliloquy' ), + 'deactivate_nonce' => wp_create_nonce( 'soliloquy-deactivate' ), + 'deactivating' => esc_html__( 'Deactivating...', 'soliloquy' ), + 'inactive' => esc_html__( 'Inactive', 'soliloquy' ), + 'install' => esc_html__( 'Install Addon', 'soliloquy' ), + 'install_nonce' => wp_create_nonce( 'soliloquy-install' ), + 'installing' => esc_html__( 'Installing...', 'soliloquy' ), + 'proceed' => esc_html__( 'Proceed', 'soliloquy' ), + 'redirect' => esc_url( add_query_arg( [ 'post_type' => 'soliloquy', @@ -153,7 +161,22 @@ admin_url( 'edit.php' ) ) ), - 'upgrade_nonce' => wp_create_nonce( 'soliloquy-upgrade' ), + 'upgrade_nonce' => wp_create_nonce( 'soliloquy-upgrade' ), + 'thanks_for_interest' => esc_html__( 'Thanks for your interest in Soliloquy Pro!', 'soliloquy' ), + 'upgrade_modal' => sprintf( + '<p>%s <a href="https://soliloquywp.com/support/" target="_blank" rel="noopener noreferrer"><strong>%s</strong></a></p><p>%s <strong>%s</strong> %s <strong>%s</strong>. %s</p><p>%s <a href="https://soliloquywp.com/docs/" target="_blank" rel="noopener noreferrer"><strong>%s</strong></a> %s</p>', + esc_html__( 'If you have any questions or issues just', 'soliloquy' ), + esc_html__( 'let us know', 'soliloquy' ), + esc_html__( 'After purchasing a license, just', 'soliloquy' ), + esc_html__( 'enter your license key', 'soliloquy' ), + esc_html__( 'on the', 'soliloquy' ), + esc_html__( 'Soliloquy Settings page', 'soliloquy' ), + esc_html__( "This will let your site automatically upgrade to Soliloquy Pro! (Don't worry, all your sliders and settings will be preserved.)", 'soliloquy' ), + esc_html__( 'Check out', 'soliloquy' ), + esc_html__( 'our documentation', 'soliloquy' ), + esc_html__( 'for step-by-step instructions.', 'soliloquy' ) + ), + 'ok' => esc_html__( 'OK', 'soliloquy' ), ] ); @@ -203,6 +226,10 @@ if ( is_ssl() ) { $addon->image = str_replace( 'http://', 'https://', $addon->image ); } + + // Get the minimum required license level from the plans array (first plan is the minimum). + $min_license = ! empty( $addon->plans ) && is_array( $addon->plans ) && ! empty( $addon->plans[0] ) ? $addon->plans[0] : 'Pro'; + $badge_label = $min_license; ?> <div class="soliloquy-addon <?php echo sanitize_html_class( $last ); ?>"> @@ -218,12 +245,8 @@ </div> <div class="soliloquy-addon-footer"> - - <div class="soliloquy-addon-unlock soliloquy-addon-message"> - - <a href="<?php echo esc_url( $this->common->get_upgrade_link() ); ?>" target="_blank" class="button button-soliloquy soliloquy-addon-action-button soliloquy-unlock-addon" rel="<?php echo esc_attr( $addon->title ); ?>"><?php esc_html_e( 'Upgrade Now', 'soliloquy' ); ?></a> - - </div> + <span class="soliloquy-badge soliloquy-badge-lg soliloquy-badge-rounded" aria-label="<?php esc_attr_e( 'Required plan:', 'soliloquy' ); ?> <?php echo esc_attr( $badge_label ); ?>"><?php echo esc_html( $badge_label ); ?></span> + <a href="<?php echo esc_url( $this->common->get_upgrade_link() ); ?>" target="_blank" rel="noopener noreferrer" class="button button-soliloquy soliloquy-addon-action-button soliloquy-unlock-addon soliloquy-upgrade-modal"><?php esc_html_e( 'Upgrade Now', 'soliloquy' ); ?></a> </div> </div> <?php @@ -232,6 +255,9 @@ endif ?> + </div> + + </div> </div> @@ -309,7 +335,7 @@ ]; // Perform the query and retrieve the response. - $response = wp_remote_post( 'http://soliloquywp.com/', $post ); + $response = wp_remote_post( 'https://soliloquywp.com/', $post ); $response_code = wp_remote_retrieve_response_code( $response ); $response_body = wp_remote_retrieve_body( $response ); @@ -194,7 +194,7 @@ esc_html__( 'Upgrade to Pro', 'soliloquy' ), esc_html__( 'Upgrade to Pro', 'soliloquy' ), apply_filters( 'soliloquy_gallery_menu_cap', 'manage_options' ), - esc_url( $this->get_upgrade_link( 'http://soliloquywp.com/lite/', 'adminsidebar', 'unlockprosidebar' ) ) + esc_url( $this->get_upgrade_link( 'https://soliloquywp.com/lite/', 'adminsidebar', 'unlockprosidebar' ) ) ); if ( ! current_user_can( 'manage_options' ) ) { @@ -205,7 +205,7 @@ array_filter( $submenu['edit.php?post_type=soliloquy'], static function ( $item ) { - return strpos( $item[2], 'http://soliloquywp.com/lite/' ) !== false; + return strpos( $item[2], 'https://soliloquywp.com/lite/' ) !== false; } ) ); @@ -709,7 +709,7 @@ <div> <img class="soliloquy-item-img" src="<?php echo esc_url( plugins_url( 'assets/images/logo-color.png', $this->base->file ) ); ?>" /> <h3><?php esc_html_e( 'Create your slider by adding your media files above.', 'soliloquy' ); ?></h3> - <p class="soliloquy-help-text"><?php esc_html_e( 'Need some help?', 'soliloquy' ); ?> <a href="http://soliloquywp.com/docs/creating-your-first-slider/" target="_blank"><?php esc_html_e( 'Watch a video how to add media and create a slider', 'soliloquy' ); ?></a></p> + <p class="soliloquy-help-text"><?php esc_html_e( 'Need some help?', 'soliloquy' ); ?> <a href="https://soliloquywp.com/docs/creating-your-first-slider/" target="_blank"><?php esc_html_e( 'Watch a video how to add media and create a slider', 'soliloquy' ); ?></a></p> </div> </div> @@ -1130,7 +1130,7 @@ <p class="soliloquy-intro"><?php esc_attr_e( 'Want to add Thumbnail Navigation?', 'soliloquy' ); ?></p> <p><?php esc_html_e( 'By upgrading to Soliloquy Pro, you can add thumbnail images as navigation for your WordPress slider. ', 'soliloquy' ); ?> - <a target="_blank" href="<?php echo esc_url( 'http://soliloquywp.com/addons/thumbnails/' ); ?>"><?php esc_attr_e( '(See Demo)', 'soliloquy' ); ?></a> + <a target="_blank" href="<?php echo esc_url( 'https://soliloquywp.com/addons/thumbnails/' ); ?>"><?php esc_attr_e( '(See Demo)', 'soliloquy' ); ?></a> </p> <a href="<?php echo esc_url( $this->common->get_upgrade_link() ); ?>" target="_blank" class="button button-soliloquy"><?php esc_attr_e( 'Click here to Upgrade', 'soliloquy' ); ?></a> @@ -90,9 +90,7 @@ 'show_in_rest' => true, 'rest_base' => 'soliloquy', 'capability_type' => 'post', - 'capabilities' => [ - 'read_post' => 'read', // Allow any logged-in user to read (filtered by map_meta_cap). - ], + 'map_meta_cap' => true, 'menu_position' => apply_filters( 'soliloquy_post_type_menu_position', 248 ), 'menu_icon' => plugins_url( 'assets/css/images/menu-icon@2x.png', $this->base->file ), 'supports' => [ 'title', 'author' ], @@ -119,6 +117,12 @@ */ public function prepare_meta( $data, $post, $context ) { + // Belt-and-suspenders gate: only expose slider_data when the post is published or the current user can read it. + // REST controller already enforces this via map_meta_cap; this guards against future regressions in cap mapping. + if ( 'publish' !== $post->post_status && ! current_user_can( 'read_post', $post->ID ) ) { + return $data; + } + $slider_data = get_post_meta( $post->ID, '_sol_slider_data', true ); if ( $slider_data ) { @@ -174,7 +178,14 @@ } if ( 'read_post' === $cap ) { - $caps = ( 'private' === $post->post_status ) ? [ 'read_private_posts' ] : [ 'read' ]; + if ( 'private' === $post->post_status ) { + $caps = [ 'read_private_posts' ]; + } elseif ( 'publish' === $post->post_status ) { + $caps = [ 'read' ]; + } else { + // Non-public statuses (draft, pending, future, auto-draft, trash, inherit, etc.) require edit caps. + $caps = ( $user_id === $post_author ) ? [ 'edit_posts' ] : [ 'edit_others_posts' ]; + } } return $caps; @@ -255,7 +255,7 @@ "<strong>dynamic sliders on the fly</strong>, <strong>complete slider API</" "strong>, <strong>powerful slider documentation</strong>, <strong>full mobile " "and Retina support</strong>, <strong>dedicated customer support</strong> and " -"so much more! <a href=\"http://soliloquywp.com/lite/?" +"so much more! <a href=\"https://soliloquywp.com/lite/?" "utm_source=liteplugin&utm_medium=link&utm_campaign=WordPress\" title=\"Click " "here to upgrade to Soliloquy Pro!\" target=\"_blank\">Click here to upgrade " "to Soliloquy Pro!</a>" @@ -406,7 +406,7 @@ "for blazing fast load times</strong>, <strong>control over navigation arrows " "and dots</strong>, <strong>pause/play functionality</strong>, " "<strong>hardware accelerated CSS transitions</strong>, <strong>slider " -"randomization</strong> and so much more! <a href=\"http://soliloquywp.com/" +"randomization</strong> and so much more! <a href=\"https://soliloquywp.com/" "lite/?utm_source=liteplugin&utm_medium=link&utm_campaign=WordPress\" title=" "\"Click here to upgrade to Soliloquy Pro!\" target=\"_blank\">Click here to " "upgrade to Soliloquy Pro!</a>" @@ -463,7 +463,7 @@ "you can get access to numerous other features, including: <strong>a fully-" "integrated import/export module for your sliders</strong>, <strong>custom " "CSS controls for each slider</strong>, <strong>lightbox and featured content " -"support</strong> and so much more! <a href=\"http://soliloquywp.com/lite/?" +"support</strong> and so much more! <a href=\"https://soliloquywp.com/lite/?" "utm_source=liteplugin&utm_medium=link&utm_campaign=WordPress\" title=\"Click " "here to upgrade to Soliloquy Pro!\" target=\"_blank\">Click here to upgrade " "to Soliloquy Pro!</a>" @@ -747,7 +747,7 @@ msgstr "" #. Plugin URI of the plugin/theme -msgid "http://soliloquywp.com" +msgid "https://soliloquywp.com" msgstr "" #. Description of the plugin/theme @@ -2,9 +2,9 @@ Contributors: soliloquyslider Tags: slideshow, carousel, video slider, gallery slider, instagram slider Requires at least: 5.7.0 -Tested up to: 6.8.1 +Tested up to: 7.0 Requires PHP: 7.0 -Stable tag: 2.8.1 +Stable tag: 2.8.2 License: GNU General Public License v2.0 or later The best WordPress slider plugin. Drag & Drop responsive slider builder that helps you create a beautiful image slideshows with just a few clicks. @@ -259,6 +259,16 @@ == Changelog == += 2.8.2 = +* Added: Tested with WordPress 7.0. +* Added: Plan badges on the Addons page so you can see at a glance which addons are included with your license. +* Added: Friendly upgrade screen when clicking an addon that needs a higher plan. +* Fixed: Security hardening for sliders that are draft, pending, scheduled, or private (reported by Wordfence). +* Fixed: Button heights looking off on WordPress 7.0. +* Fixed: Error messages now show up properly when a request fails. +* Fixed: Searching for "Carousel" in the block inserter now finds the Soliloquy block. +* Updated: All Soliloquy links now use https instead of http. + = 2.8.1 = * Added: Map meta cap for better compatibility @@ -5,7 +5,7 @@ * Description: Soliloquy is the best responsive WordPress slider plugin. This is the lite version. * Author: Soliloquy Team * Author URI: https://soliloquywp.com - * Version: 2.8.1 + * Version: 2.8.2 * Text Domain: soliloquy * Domain Path: languages * @@ -58,7 +58,7 @@ * * @var string */ - public $version = '2.8.1'; + public $version = '2.8.2'; /** * The name of the plugin. @@ -1,94 +1 @@ -.soliloquy-theme-classic:after { - display: none; - height: 0; - line-height: 0; - visibility: hidden; - content: url("images/slider-arrows-horizontal.png") url("images/slider-dots.png"); -} -.soliloquy-theme-classic .soliloquy-controls-direction { - display: none; - height: 0; -} -.soliloquy-theme-classic:hover .soliloquy-controls-direction, -.soliloquy-theme-classic.soliloquy-hover .soliloquy-controls-direction { - display: block; -} -.soliloquy-theme-classic .soliloquy-prev { - display: block; - width: 13px; - height: 18px; - position: absolute; - top: 50%; - margin-top: -8px; - left: 10px; - z-index: 1320; - background: transparent url("images/slider-arrows-horizontal.png") no-repeat scroll 0 0; -} -.soliloquy-theme-classic .soliloquy-next { - display: block; - width: 13px; - height: 18px; - position: absolute; - top: 50%; - margin-top: -8px; - right: 10px; - z-index: 1320; - background: transparent url("images/slider-arrows-horizontal.png") no-repeat scroll 0 -18px; -} -.soliloquy-theme-classic .soliloquy-pager { - width: 100%; - margin: 0 0 0 5px; - position: absolute; - bottom: 10px; - height: 14px; - text-align: left; -} -.soliloquy-theme-classic .soliloquy-pager-item { - display: inline-block; - margin: 0 0 0 5px; - position: relative; - z-index: 1320; -} -.soliloquy-theme-classic .soliloquy-pager-item:first-child { - margin-left: 5px; -} -.soliloquy-theme-classic .soliloquy-pager-link { - background: url("images/slider-dots.png") no-repeat scroll 0 0; - width: 14px; - height: 14px; - display: block; - outline: none; - text-indent: -9999px; -} -.soliloquy-theme-classic .soliloquy-pager-link:hover, -.soliloquy-theme-classic .soliloquy-pager-link.active { - background: url("images/slider-dots.png") no-repeat scroll 0 -14px; -} -.soliloquy-theme-classic .soliloquy-caption-wrap { - bottom: 0; - top: auto; -} -@media only screen and (-webkit-min-device-pixel-ratio: 2), - only screen and (min--moz-device-pixel-ratio: 2), - only screen and (-o-min-device-pixel-ratio: 2 / 1), only screen and (min-device-pixel-ratio: 2), - only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) { - .soliloquy-theme-classic .soliloquy-prev { - background: url("images/slider-arrows-horizontal@2x.png") no-repeat scroll 0 0; - background-size: 100%; - } - .soliloquy-theme-classic .soliloquy-next { - background: url("images/slider-arrows-horizontal@2x.png") no-repeat scroll 0 -20px; - background-size: 100%; - } - .soliloquy-theme-classic .soliloquy-pager-link { - background: url("images/slider-dots@2x.png") no-repeat scroll 0 0; - background-size: 100%; - height: 15px; - } - .soliloquy-theme-classic .soliloquy-pager-link:hover, - .soliloquy-theme-classic .soliloquy-pager-link.active { - background: url("images/slider-dots@2x.png") no-repeat scroll 0 -15px; - background-size: 100%; - height: 15px; - } -} +.soliloquy-theme-classic:after{display:none;height:0;line-height:0;visibility:hidden;content:url("images/slider-arrows-horizontal.png") url("images/slider-dots.png")}.soliloquy-theme-classic .soliloquy-controls-direction{display:none;height:0}.soliloquy-theme-classic:hover .soliloquy-controls-direction,.soliloquy-theme-classic.soliloquy-hover .soliloquy-controls-direction{display:block}.soliloquy-theme-classic .soliloquy-prev{display:block;width:13px;height:18px;position:absolute;top:50%;margin-top:-8px;left:10px;z-index:1320;background:transparent url("images/slider-arrows-horizontal.png") no-repeat scroll 0 0}.soliloquy-theme-classic .soliloquy-next{display:block;width:13px;height:18px;position:absolute;top:50%;margin-top:-8px;right:10px;z-index:1320;background:transparent url("images/slider-arrows-horizontal.png") no-repeat scroll 0 -18px}.soliloquy-theme-classic .soliloquy-pager{width:100%;margin:0 0 0 5px;position:absolute;bottom:10px;height:14px;text-align:left}.soliloquy-theme-classic .soliloquy-pager-item{display:inline-block;margin:0 0 0 5px;position:relative;z-index:1320}.soliloquy-theme-classic .soliloquy-pager-item:first-child{margin-left:5px}.soliloquy-theme-classic .soliloquy-pager-link{background:url("images/slider-dots.png") no-repeat scroll 0 0;width:14px;height:14px;display:block;outline:none;text-indent:-9999px}.soliloquy-theme-classic .soliloquy-pager-link:hover,.soliloquy-theme-classic .soliloquy-pager-link.active{background:url("images/slider-dots.png") no-repeat scroll 0 -14px}.soliloquy-theme-classic .soliloquy-caption-wrap{bottom:0;top:auto}@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2 / 1), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx){.soliloquy-theme-classic .soliloquy-prev{background:url("images/slider-arrows-horizontal@2x.png") no-repeat scroll 0 0;background-size:100%}.soliloquy-theme-classic .soliloquy-next{background:url("images/slider-arrows-horizontal@2x.png") no-repeat scroll 0 -20px;background-size:100%}.soliloquy-theme-classic .soliloquy-pager-link{background:url("images/slider-dots@2x.png") no-repeat scroll 0 0;background-size:100%;height:15px}.soliloquy-theme-classic .soliloquy-pager-link:hover,.soliloquy-theme-classic .soliloquy-pager-link.active{background:url("images/slider-dots@2x.png") no-repeat scroll 0 -15px;background-size:100%;height:15px}}
Exploit Outline
1. Authenticate to the target WordPress site as a Subscriber-level user. 2. Obtain a valid WordPress REST API nonce, typically found in the 'wpApiSettings' JavaScript object on the dashboard. 3. Send an authenticated GET request to the '/wp-json/wp/v2/soliloquy' endpoint. 4. Append the 'status=draft' or 'status=private' query parameter to the request to bypass default visibility filters. 5. The API will return a JSON response containing the full metadata and content (including captions and image URLs) for sliders created by administrators that are not yet public.
Check if your site is affected.
Run a free security audit to detect vulnerable plugins, outdated versions, and misconfigurations.