Version Description
(November 17, 2021) = * Bug: Fixed issue while permanently deleting bulk quizzes * Bug: Fixed issue while editing questions imported from question bank * Bug: Fixed issue with question categories * Bug: Fixed various security vulnerabilities * Bug: Fixed Authenticated SQL injection * Bug: Fixed issues with polar question type * Bug: Fixed issue where multiple popups were appearing * Bug: Fixed issues where refreshing the page resets answered questions * Feature: Added support for webp file format * Feature: Added new template variable %MINIMUM_POINTS% * Enhancement: Replaced shortened urls with original urls * Enhancement: Refactored code to enqueue JS and CSS files as per coding standards * Enhancement: Refactored code to utilise libraries bundled with WordPress core * Enhancement: Updated out of date libraries * Enhancement: Removed CDN and third party server scripts * Enhancement: Sanitized, Escaped, and Validated all variable, file uploads and data * Enhancement: Moved inline scripts to wp_enqueue_script and wp_add_inline_script
Release Info
Developer | expresstech |
Plugin | ![]() |
Version | 7.3.5 |
Comparing to | |
See all releases |
Code changes from version 7.3.4 to 7.3.5
- addons.xml +2 -2
- assets/index.php +1 -1
- blocks/block.js +19 -11
- blocks/block.php +13 -33
- blocks/index.php +1 -1
- css/admin-dashboard-rtl.css +1 -0
- css/admin-dashboard.css +1 -0
- css/common.css +19 -9
- css/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- css/jquery-ui.css +394 -261
- css/jquery-ui.min.css +7 -0
- css/qsm-admin-rtl.css +80 -11
- css/qsm-admin.css +83 -11
- css/sendinblue-component-clickable.css +1 -0
- css/sendinblue-component.css +1 -0
- css/sendinblue-progress-indicator.css +1 -0
- css/show-js-error.css +0 -120
- css/sib-styles.css +238 -0
- data/parsing_script.json +353 -0
- index.php +1 -1
- js/Chart.min.js +0 -7
- js/admin.js +0 -401
- js/jquery-ui.js +0 -18706
- js/mathjax/output/chtml.js +1 -0
@@ -106,8 +106,8 @@
|
|
106 |
Â
</ads>
|
107 |
Â
<ads>
|
108 |
Â
<text>Want to grow your email list? Check out our addons for adding your quiz or survey takers to your email lists! [link].</text>
|
109 |
-
<link>
|
110 |
Â
<link_text>View our addon store</link_text>
|
111 |
-
</ads>
|
112 |
Â
</qsm_ads>
|
113 |
Â
</addon-list>
|
106 |
Â
</ads>
|
107 |
Â
<ads>
|
108 |
Â
<text>Want to grow your email list? Check out our addons for adding your quiz or survey takers to your email lists! [link].</text>
|
109 |
+
<link>https://quizandsurveymaster.com/addons/?utm_campaign=qsm_plugin&utm_medium=plugin&utm_source=qsm-plugin-ads&utm_content=email-marketing-ad</link>
|
110 |
Â
<link_text>View our addon store</link_text>
|
111 |
+
</ads>
|
112 |
Â
</qsm_ads>
|
113 |
Â
</addon-list>
|
@@ -1,4 +1,4 @@
|
|
1 |
Â
<?php
|
2 |
Â
|
3 |
Â
die("Error: Unauthorized Access");
|
4 |
-
|
1 |
Â
<?php
|
2 |
Â
|
3 |
Â
die("Error: Unauthorized Access");
|
4 |
+
|
@@ -1,3 +1,12 @@
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
1 |
Â
|
2 |
Â
var el = wp.element.createElement,
|
3 |
Â
registerBlockType = wp.blocks.registerBlockType,
|
@@ -15,7 +24,7 @@ registerBlockType( 'qsm/main-block', {
|
|
15 |
Â
category: 'widgets',
|
16 |
Â
|
17 |
Â
edit: function( props ) {
|
18 |
-
|
19 |
Â
return [
|
20 |
Â
/*
|
21 |
Â
* The ServerSideRender element uses the REST API to automatically call
|
@@ -26,17 +35,16 @@ registerBlockType( 'qsm/main-block', {
|
|
26 |
Â
block: 'qsm/main-block',
|
27 |
Â
attributes: props.attributes,
|
28 |
Â
} ),
|
29 |
-
|
30 |
Â
el( InspectorControls, {},
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
Â
];
|
41 |
Â
},
|
42 |
Â
|
1 |
+
var quizListEndPoint = wpApiSettings.root+'quiz-survey-master/v2/quizzlist/';
|
2 |
+
var quizList;
|
3 |
+
jQuery.ajax( quizListEndPoint , {
|
4 |
+
data: null ,
|
5 |
+
method: 'GET',
|
6 |
+
success : function(response){
|
7 |
+
quizList = response;
|
8 |
+
}
|
9 |
+
});
|
10 |
Â
|
11 |
Â
var el = wp.element.createElement,
|
12 |
Â
registerBlockType = wp.blocks.registerBlockType,
|
24 |
Â
category: 'widgets',
|
25 |
Â
|
26 |
Â
edit: function( props ) {
|
27 |
+
const quiz_arr = quizList;
|
28 |
Â
return [
|
29 |
Â
/*
|
30 |
Â
* The ServerSideRender element uses the REST API to automatically call
|
35 |
Â
block: 'qsm/main-block',
|
36 |
Â
attributes: props.attributes,
|
37 |
Â
} ),
|
Â
|
|
38 |
Â
el( InspectorControls, {},
|
39 |
+
el( 'p', { style: { padding: '0 16px' } },
|
40 |
+
el( SelectControl, {
|
41 |
+
label: 'Quiz/Survey ID',
|
42 |
+
value: props.attributes.quiz,
|
43 |
+
options: quiz_arr,
|
44 |
+
onChange: ( value ) => { props.setAttributes( { quiz: value } ); },
|
45 |
+
} )
|
46 |
+
)
|
47 |
+
)
|
48 |
Â
];
|
49 |
Â
},
|
50 |
Â
|
@@ -12,22 +12,27 @@
|
|
12 |
Â
* Register our block.
|
13 |
Â
*/
|
14 |
Â
function qsm_block_init() {
|
Â
|
|
15 |
Â
// Register our block editor script.
|
16 |
Â
wp_register_script(
|
17 |
Â
'qsm-quiz-block',
|
18 |
Â
plugins_url( 'block.js', __FILE__ ),
|
19 |
-
array( 'wp-blocks', 'wp-element', 'wp-components', 'wp-editor' )
|
20 |
-
);
|
21 |
Â
// Register our block, and explicitly define the attributes we accept.
|
22 |
Â
register_block_type( 'qsm/main-block', array(
|
23 |
Â
'attributes' => array(
|
24 |
-
'quiz'
|
25 |
-
|
26 |
Â
),
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
31 |
Â
),
|
32 |
Â
'editor_script' => 'qsm-quiz-block',
|
33 |
Â
'render_callback' => 'qsm_block_render',
|
@@ -35,31 +40,6 @@ function qsm_block_init() {
|
|
35 |
Â
}
|
36 |
Â
add_action( 'init', 'qsm_block_init' );
|
37 |
Â
|
38 |
-
/**
|
39 |
-
* Get the quizzes list
|
40 |
-
*
|
41 |
-
* @since 7.0.2
|
42 |
-
* @global object $wpdb
|
43 |
-
* @return array
|
44 |
-
*/
|
45 |
-
function qsm_get_quizzes_list(){
|
46 |
-
global $wpdb;
|
47 |
-
$quizzes = $wpdb->get_results( "SELECT quiz_id, quiz_name FROM {$wpdb->prefix}mlw_quizzes WHERE deleted='0'" );
|
48 |
-
$newslatter_provider_list[] = array(
|
49 |
-
'label' => __('Select the quiz', 'quiz-master-next'),
|
50 |
-
'value' => ''
|
51 |
-
);
|
52 |
-
if( $quizzes ){
|
53 |
-
foreach( $quizzes as $key=>$value) {
|
54 |
-
$newslatter_provider_list[] = array(
|
55 |
-
'label' => $value->quiz_name,
|
56 |
-
'value' => $value->quiz_id,
|
57 |
-
);
|
58 |
-
}
|
59 |
-
}
|
60 |
-
return $newslatter_provider_list;
|
61 |
-
}
|
62 |
-
|
63 |
Â
/**
|
64 |
Â
* The block renderer.
|
65 |
Â
*
|
12 |
Â
* Register our block.
|
13 |
Â
*/
|
14 |
Â
function qsm_block_init() {
|
15 |
+
global $mlwQuizMasterNext;
|
16 |
Â
// Register our block editor script.
|
17 |
Â
wp_register_script(
|
18 |
Â
'qsm-quiz-block',
|
19 |
Â
plugins_url( 'block.js', __FILE__ ),
|
20 |
+
array( 'wp-blocks', 'wp-element', 'wp-components', 'wp-editor', 'wp-api-request' ), $mlwQuizMasterNext->version, true );
|
Â
|
|
21 |
Â
// Register our block, and explicitly define the attributes we accept.
|
22 |
Â
register_block_type( 'qsm/main-block', array(
|
23 |
Â
'attributes' => array(
|
24 |
+
'quiz' => array(
|
25 |
+
'type' => 'string',
|
26 |
Â
),
|
27 |
+
'quiz_id' => array(
|
28 |
+
'type' => 'array',
|
29 |
+
'default' => array(
|
30 |
+
array(
|
31 |
+
'label' => 'quiz name',
|
32 |
+
'value' => '0',
|
33 |
+
),
|
34 |
+
),
|
35 |
+
),
|
36 |
Â
),
|
37 |
Â
'editor_script' => 'qsm-quiz-block',
|
38 |
Â
'render_callback' => 'qsm_block_render',
|
40 |
Â
}
|
41 |
Â
add_action( 'init', 'qsm_block_init' );
|
42 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
43 |
Â
/**
|
44 |
Â
* The block renderer.
|
45 |
Â
*
|
@@ -1,3 +1,3 @@
|
|
1 |
Â
<?php
|
2 |
Â
// Silence is golden...
|
3 |
-
|
1 |
Â
<?php
|
2 |
Â
// Silence is golden...
|
3 |
+
|
@@ -25,6 +25,7 @@
|
|
25 |
Â
font-size: 13px;
|
26 |
Â
line-height: 1.23076923;
|
27 |
Â
text-decoration: none;
|
Â
|
|
28 |
Â
}
|
29 |
Â
|
30 |
Â
.welcome-panel .qsm-welcome-panel-dismiss:before {
|
25 |
Â
font-size: 13px;
|
26 |
Â
line-height: 1.23076923;
|
27 |
Â
text-decoration: none;
|
28 |
+
z-index:999;
|
29 |
Â
}
|
30 |
Â
|
31 |
Â
.welcome-panel .qsm-welcome-panel-dismiss:before {
|
@@ -25,6 +25,7 @@
|
|
25 |
Â
font-size: 13px;
|
26 |
Â
line-height: 1.23076923;
|
27 |
Â
text-decoration: none;
|
Â
|
|
28 |
Â
}
|
29 |
Â
|
30 |
Â
.welcome-panel .qsm-welcome-panel-dismiss:before {
|
25 |
Â
font-size: 13px;
|
26 |
Â
line-height: 1.23076923;
|
27 |
Â
text-decoration: none;
|
28 |
+
z-index:999;
|
29 |
Â
}
|
30 |
Â
|
31 |
Â
.welcome-panel .qsm-welcome-panel-dismiss:before {
|
@@ -7,7 +7,7 @@
|
|
7 |
Â
display: block;
|
8 |
Â
text-align: center;
|
9 |
Â
}
|
10 |
-
.mlw_qmn_question p:empty{
|
11 |
Â
display: none;
|
12 |
Â
}
|
13 |
Â
.MJXc-display{
|
@@ -66,7 +66,7 @@ body .quiz_section .qsm_contact_div .mlw_qmn_question{
|
|
66 |
Â
background: #A5A5A5;
|
67 |
Â
border-color: #A5A5A5;
|
68 |
Â
border-radius: 0;
|
69 |
-
height: 20px;
|
70 |
Â
}
|
71 |
Â
.question-type-polar-s .ui-widget-content .ui-slider-handle{
|
72 |
Â
background: rgb(119, 113, 113);
|
@@ -126,7 +126,7 @@ footer.qsm-popup__footer button.qsm-popup-secondary-button:hover{
|
|
126 |
Â
}
|
127 |
Â
.qsm-quiz-container .qsm-contact-type-checkbox input{
|
128 |
Â
display: inline-block;
|
129 |
-
}
|
130 |
Â
.quiz_section .mlw_qmn_new_question{
|
131 |
Â
font-weight: bold;
|
132 |
Â
display: inline;
|
@@ -138,7 +138,7 @@ footer.qsm-popup__footer button.qsm-popup-secondary-button:hover{
|
|
138 |
Â
display: block;
|
139 |
Â
margin-bottom: 10px;
|
140 |
Â
}
|
141 |
-
.quiz_section iframe{
|
142 |
Â
width: 100% !important;
|
143 |
Â
min-height: 315px !important;
|
144 |
Â
}
|
@@ -171,7 +171,7 @@ footer.qsm-popup__footer button.qsm-popup-secondary-button:hover{
|
|
171 |
Â
* Design for new template variable QUESTION_WITH_ANSWER
|
172 |
Â
*/
|
173 |
Â
|
174 |
-
.mlw_qmn_question .qmn_user_incorrect_answer{
|
175 |
Â
color: #dc3232;
|
176 |
Â
margin-bottom: 5px;
|
177 |
Â
padding-left: 10px;
|
@@ -185,7 +185,7 @@ footer.qsm-popup__footer button.qsm-popup-secondary-button:hover{
|
|
185 |
Â
left: -10px;
|
186 |
Â
}
|
187 |
Â
|
188 |
-
.mlw_qmn_question .qmn_user_correct_answer{
|
189 |
Â
color: green;
|
190 |
Â
margin-bottom: 5px;
|
191 |
Â
padding-left: 10px;
|
@@ -229,12 +229,12 @@ footer.qsm-popup__footer button.qsm-popup-secondary-button:hover{
|
|
229 |
Â
top: 4px;
|
230 |
Â
}
|
231 |
Â
.mlw_qmn_question .qsm-text-simple-option{
|
232 |
-
display: block;
|
233 |
Â
margin-bottom: 5px;
|
234 |
Â
color: #808080;
|
235 |
Â
padding-left: 10px;
|
236 |
Â
}
|
237 |
-
.mlw_qmn_question .qsm-text-simple-option:before{
|
238 |
Â
content: "\f159";
|
239 |
Â
font-family: dashicons;
|
240 |
Â
position: relative;
|
@@ -296,7 +296,7 @@ footer.qsm-popup__footer button.qsm-popup-secondary-button:hover{
|
|
296 |
Â
bottom: auto;
|
297 |
Â
transform: none;
|
298 |
Â
margin-bottom: 30px;
|
299 |
-
}
|
300 |
Â
.question-type-polar-s{
|
301 |
Â
height: auto !important;
|
302 |
Â
}
|
@@ -333,4 +333,14 @@ footer.qsm-popup__footer button.qsm-popup-secondary-button:hover{
|
|
333 |
Â
}
|
334 |
Â
.qsm_tooltip:hover .qsm_tooltiptext {
|
335 |
Â
visibility: visible;
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
336 |
Â
}
|
7 |
Â
display: block;
|
8 |
Â
text-align: center;
|
9 |
Â
}
|
10 |
+
.mlw_qmn_question p:empty, .qsm-d-none{
|
11 |
Â
display: none;
|
12 |
Â
}
|
13 |
Â
.MJXc-display{
|
66 |
Â
background: #A5A5A5;
|
67 |
Â
border-color: #A5A5A5;
|
68 |
Â
border-radius: 0;
|
69 |
+
height: 20px;
|
70 |
Â
}
|
71 |
Â
.question-type-polar-s .ui-widget-content .ui-slider-handle{
|
72 |
Â
background: rgb(119, 113, 113);
|
126 |
Â
}
|
127 |
Â
.qsm-quiz-container .qsm-contact-type-checkbox input{
|
128 |
Â
display: inline-block;
|
129 |
+
}
|
130 |
Â
.quiz_section .mlw_qmn_new_question{
|
131 |
Â
font-weight: bold;
|
132 |
Â
display: inline;
|
138 |
Â
display: block;
|
139 |
Â
margin-bottom: 10px;
|
140 |
Â
}
|
141 |
+
.quiz_section iframe{
|
142 |
Â
width: 100% !important;
|
143 |
Â
min-height: 315px !important;
|
144 |
Â
}
|
171 |
Â
* Design for new template variable QUESTION_WITH_ANSWER
|
172 |
Â
*/
|
173 |
Â
|
174 |
+
.mlw_qmn_question .qmn_user_incorrect_answer{
|
175 |
Â
color: #dc3232;
|
176 |
Â
margin-bottom: 5px;
|
177 |
Â
padding-left: 10px;
|
185 |
Â
left: -10px;
|
186 |
Â
}
|
187 |
Â
|
188 |
+
.mlw_qmn_question .qmn_user_correct_answer{
|
189 |
Â
color: green;
|
190 |
Â
margin-bottom: 5px;
|
191 |
Â
padding-left: 10px;
|
229 |
Â
top: 4px;
|
230 |
Â
}
|
231 |
Â
.mlw_qmn_question .qsm-text-simple-option{
|
232 |
+
display: block;
|
233 |
Â
margin-bottom: 5px;
|
234 |
Â
color: #808080;
|
235 |
Â
padding-left: 10px;
|
236 |
Â
}
|
237 |
+
.mlw_qmn_question .qsm-text-simple-option:before{
|
238 |
Â
content: "\f159";
|
239 |
Â
font-family: dashicons;
|
240 |
Â
position: relative;
|
296 |
Â
bottom: auto;
|
297 |
Â
transform: none;
|
298 |
Â
margin-bottom: 30px;
|
299 |
+
}
|
300 |
Â
.question-type-polar-s{
|
301 |
Â
height: auto !important;
|
302 |
Â
}
|
333 |
Â
}
|
334 |
Â
.qsm_tooltip:hover .qsm_tooltiptext {
|
335 |
Â
visibility: visible;
|
336 |
+
}
|
337 |
+
.qsm_quiz_processing_box {
|
338 |
+
display: inline-block;
|
339 |
+
width: 100%;
|
340 |
+
box-sizing: border-box;
|
341 |
+
padding: 20px;
|
342 |
+
text-align: center;
|
343 |
+
}
|
344 |
+
.qsm_quiz_processing_box .qsm_quiz_processing_message{
|
345 |
+
margin: 10px 0;
|
346 |
Â
}
|
Binary file
|
@@ -1,8 +1,8 @@
|
|
1 |
-
/*! jQuery UI - v1.
|
2 |
Â
* http://jqueryui.com
|
3 |
-
* Includes:
|
4 |
Â
* To view and modify this theme, visit http://jqueryui.com/themeroller/?ffDefault=Lucida%20Grande%2CLucida%20Sans%2CArial%2Csans-serif&fwDefault=bold&fsDefault=1.1em&cornerRadius=5px&bgColorHeader=5c9ccc&bgTextureHeader=gloss_wave&bgImgOpacityHeader=55&borderColorHeader=4297d7&fcHeader=ffffff&iconColorHeader=d8e7f3&bgColorContent=fcfdfd&bgTextureContent=inset_hard&bgImgOpacityContent=100&borderColorContent=a6c9e2&fcContent=222222&iconColorContent=469bdd&bgColorDefault=dfeffc&bgTextureDefault=glass&bgImgOpacityDefault=85&borderColorDefault=c5dbec&fcDefault=2e6e9e&iconColorDefault=6da8d5&bgColorHover=d0e5f5&bgTextureHover=glass&bgImgOpacityHover=75&borderColorHover=79b7e7&fcHover=1d5987&iconColorHover=217bc0&bgColorActive=f5f8f9&bgTextureActive=inset_hard&bgImgOpacityActive=100&borderColorActive=79b7e7&fcActive=e17009&iconColorActive=f9bd01&bgColorHighlight=fbec88&bgTextureHighlight=flat&bgImgOpacityHighlight=55&borderColorHighlight=fad42e&fcHighlight=363636&iconColorHighlight=2e83ff&bgColorError=fef1ec&bgTextureError=glass&bgImgOpacityError=95&borderColorError=cd0a0a&fcError=cd0a0a&iconColorError=cd0a0a&bgColorOverlay=aaaaaa&bgTextureOverlay=flat&bgImgOpacityOverlay=0&opacityOverlay=30&bgColorShadow=aaaaaa&bgTextureShadow=flat&bgImgOpacityShadow=0&opacityShadow=30&thicknessShadow=8px&offsetTopShadow=-8px&offsetLeftShadow=-8px&cornerRadiusShadow=8px
|
5 |
-
* Copyright
|
6 |
Â
|
7 |
Â
/* Layout helpers
|
8 |
Â
----------------------------------*/
|
@@ -38,9 +38,6 @@
|
|
38 |
Â
.ui-helper-clearfix:after {
|
39 |
Â
clear: both;
|
40 |
Â
}
|
41 |
-
.ui-helper-clearfix {
|
42 |
-
min-height: 0; /* support: IE7 */
|
43 |
-
}
|
44 |
Â
.ui-helper-zfix {
|
45 |
Â
width: 100%;
|
46 |
Â
height: 100%;
|
@@ -48,7 +45,7 @@
|
|
48 |
Â
left: 0;
|
49 |
Â
position: absolute;
|
50 |
Â
opacity: 0;
|
51 |
-
filter:Alpha(Opacity=0);
|
52 |
Â
}
|
53 |
Â
|
54 |
Â
.ui-front {
|
@@ -60,20 +57,27 @@
|
|
60 |
Â
----------------------------------*/
|
61 |
Â
.ui-state-disabled {
|
62 |
Â
cursor: default !important;
|
Â
|
|
63 |
Â
}
|
64 |
Â
|
65 |
Â
|
66 |
Â
/* Icons
|
67 |
Â
----------------------------------*/
|
68 |
-
|
69 |
-
/* states and images */
|
70 |
Â
.ui-icon {
|
71 |
-
display: block;
|
Â
|
|
Â
|
|
Â
|
|
72 |
Â
text-indent: -99999px;
|
73 |
Â
overflow: hidden;
|
74 |
Â
background-repeat: no-repeat;
|
75 |
Â
}
|
76 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
77 |
Â
|
78 |
Â
/* Misc visuals
|
79 |
Â
----------------------------------*/
|
@@ -90,24 +94,9 @@
|
|
90 |
Â
display: block;
|
91 |
Â
cursor: pointer;
|
92 |
Â
position: relative;
|
93 |
-
margin
|
94 |
Â
padding: .5em .5em .5em .7em;
|
95 |
-
|
96 |
-
}
|
97 |
-
.ui-accordion .ui-accordion-icons {
|
98 |
-
padding-left: 2.2em;
|
99 |
-
}
|
100 |
-
.ui-accordion .ui-accordion-noicons {
|
101 |
-
padding-left: .7em;
|
102 |
-
}
|
103 |
-
.ui-accordion .ui-accordion-icons .ui-accordion-icons {
|
104 |
-
padding-left: 2.2em;
|
105 |
-
}
|
106 |
-
.ui-accordion .ui-accordion-header .ui-accordion-header-icon {
|
107 |
-
position: absolute;
|
108 |
-
left: .5em;
|
109 |
-
top: 50%;
|
110 |
-
margin-top: -8px;
|
111 |
Â
}
|
112 |
Â
.ui-accordion .ui-accordion-content {
|
113 |
Â
padding: 1em 2.2em;
|
@@ -120,17 +109,78 @@
|
|
120 |
Â
left: 0;
|
121 |
Â
cursor: default;
|
122 |
Â
}
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
123 |
Â
.ui-button {
|
Â
|
|
124 |
Â
display: inline-block;
|
125 |
Â
position: relative;
|
126 |
-
padding: 0;
|
127 |
Â
line-height: normal;
|
128 |
Â
margin-right: .1em;
|
129 |
Â
cursor: pointer;
|
130 |
Â
vertical-align: middle;
|
131 |
Â
text-align: center;
|
132 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
133 |
Â
}
|
Â
|
|
134 |
Â
.ui-button,
|
135 |
Â
.ui-button:link,
|
136 |
Â
.ui-button:visited,
|
@@ -138,91 +188,129 @@
|
|
138 |
Â
.ui-button:active {
|
139 |
Â
text-decoration: none;
|
140 |
Â
}
|
Â
|
|
141 |
Â
/* to make room for the icon, a width needs to be set here */
|
142 |
Â
.ui-button-icon-only {
|
143 |
-
width:
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
width: 2.4em;
|
148 |
Â
}
|
149 |
-
|
150 |
-
|
Â
|
|
Â
|
|
151 |
Â
}
|
152 |
-
|
153 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
154 |
Â
}
|
155 |
Â
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
Â
|
|
Â
|
|
Â
|
|
160 |
Â
}
|
161 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
162 |
Â
padding: .4em 1em;
|
163 |
Â
}
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
168 |
Â
}
|
169 |
-
.ui-
|
170 |
-
|
171 |
-
|
Â
|
|
172 |
Â
}
|
173 |
-
.ui-
|
174 |
-
.ui-
|
175 |
-
|
176 |
Â
}
|
177 |
-
.ui-
|
178 |
-
|
179 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
180 |
Â
}
|
181 |
-
|
182 |
-
input.ui-button {
|
183 |
Â
padding: .4em 1em;
|
184 |
Â
}
|
185 |
-
|
186 |
-
|
187 |
-
.ui-button-icon-only .ui-icon,
|
188 |
-
.ui-button-text-icon-primary .ui-icon,
|
189 |
-
.ui-button-text-icon-secondary .ui-icon,
|
190 |
-
.ui-button-text-icons .ui-icon,
|
191 |
-
.ui-button-icons-only .ui-icon {
|
192 |
-
position: absolute;
|
193 |
-
top: 50%;
|
194 |
-
margin-top: -8px;
|
195 |
Â
}
|
196 |
-
.ui-
|
197 |
-
left:
|
198 |
-
margin-left: -8px;
|
199 |
Â
}
|
200 |
-
.ui-
|
201 |
-
|
202 |
-
|
203 |
-
|
Â
|
|
204 |
Â
}
|
205 |
-
.ui-
|
206 |
-
|
207 |
-
.ui-button-icons-only .ui-button-icon-secondary {
|
208 |
-
right: .5em;
|
209 |
Â
}
|
210 |
Â
|
211 |
-
/*
|
212 |
-
.ui-
|
213 |
-
|
Â
|
|
Â
|
|
Â
|
|
214 |
Â
}
|
215 |
-
.ui-
|
216 |
-
|
217 |
-
margin-right: -.3em;
|
218 |
Â
}
|
219 |
Â
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
226 |
Â
}
|
227 |
Â
.ui-datepicker {
|
228 |
Â
width: 17em;
|
@@ -274,12 +362,9 @@ button.ui-button::-moz-focus-inner {
|
|
274 |
Â
font-size: 1em;
|
275 |
Â
margin: 1px 0;
|
276 |
Â
}
|
277 |
-
.ui-datepicker select.ui-datepicker-month-year {
|
278 |
-
width: 100%;
|
279 |
-
}
|
280 |
Â
.ui-datepicker select.ui-datepicker-month,
|
281 |
Â
.ui-datepicker select.ui-datepicker-year {
|
282 |
-
width:
|
283 |
Â
}
|
284 |
Â
.ui-datepicker table {
|
285 |
Â
width: 100%;
|
@@ -392,6 +477,16 @@ button.ui-button::-moz-focus-inner {
|
|
392 |
Â
border-right-width: 0;
|
393 |
Â
border-left-width: 1px;
|
394 |
Â
}
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
395 |
Â
.ui-dialog {
|
396 |
Â
position: absolute;
|
397 |
Â
top: 0;
|
@@ -415,7 +510,7 @@ button.ui-button::-moz-focus-inner {
|
|
415 |
Â
position: absolute;
|
416 |
Â
right: .3em;
|
417 |
Â
top: 50%;
|
418 |
-
width:
|
419 |
Â
margin: -10px 0 0 0;
|
420 |
Â
padding: 1px;
|
421 |
Â
height: 20px;
|
@@ -441,102 +536,51 @@ button.ui-button::-moz-focus-inner {
|
|
441 |
Â
margin: .5em .4em .5em 0;
|
442 |
Â
cursor: pointer;
|
443 |
Â
}
|
444 |
-
.ui-dialog .ui-resizable-
|
445 |
-
|
446 |
-
|
447 |
-
right: -5px;
|
448 |
-
bottom: -5px;
|
449 |
-
background-position: 16px 16px;
|
450 |
-
}
|
451 |
-
.ui-draggable .ui-dialog-titlebar {
|
452 |
-
cursor: move;
|
453 |
-
}
|
454 |
-
.ui-menu {
|
455 |
-
list-style: none;
|
456 |
-
padding: 2px;
|
457 |
-
margin: 0;
|
458 |
-
display: block;
|
459 |
-
outline: none;
|
460 |
-
}
|
461 |
-
.ui-menu .ui-menu {
|
462 |
-
margin-top: -3px;
|
463 |
-
position: absolute;
|
464 |
-
}
|
465 |
-
.ui-menu .ui-menu-item {
|
466 |
-
margin: 0;
|
467 |
-
padding: 0;
|
468 |
-
width: 100%;
|
469 |
-
/* support: IE10, see #8844 */
|
470 |
-
list-style-image: url(data:image/webp;base64,UklGRhoAAABXRUJQVlA4TA0AAAAvAAAAEAcQERGIiP4HAA==);
|
471 |
-
}
|
472 |
-
.ui-menu .ui-menu-divider {
|
473 |
-
margin: 5px -2px 5px -2px;
|
474 |
-
height: 0;
|
475 |
-
font-size: 0;
|
476 |
-
line-height: 0;
|
477 |
-
border-width: 1px 0 0 0;
|
478 |
-
}
|
479 |
-
.ui-menu .ui-menu-item a {
|
480 |
-
text-decoration: none;
|
481 |
-
display: block;
|
482 |
-
padding: 2px .4em;
|
483 |
-
line-height: 1.5;
|
484 |
-
min-height: 0; /* support: IE7 */
|
485 |
-
font-weight: normal;
|
486 |
-
}
|
487 |
-
.ui-menu .ui-menu-item a.ui-state-focus,
|
488 |
-
.ui-menu .ui-menu-item a.ui-state-active {
|
489 |
-
font-weight: normal;
|
490 |
-
margin: -1px;
|
491 |
Â
}
|
492 |
-
|
493 |
-
|
494 |
-
|
495 |
-
margin: .4em 0 .2em;
|
496 |
-
line-height: 1.5;
|
497 |
Â
}
|
498 |
-
.ui-
|
499 |
-
|
Â
|
|
500 |
Â
}
|
501 |
-
|
502 |
-
|
503 |
-
|
504 |
-
position: relative;
|
505 |
Â
}
|
506 |
-
.ui-
|
507 |
-
|
508 |
-
|
Â
|
|
Â
|
|
Â
|
|
509 |
Â
}
|
510 |
-
|
511 |
-
|
512 |
-
|
513 |
-
position: absolute;
|
514 |
-
top: .2em;
|
515 |
-
left: .2em;
|
516 |
Â
}
|
517 |
-
|
518 |
-
|
519 |
-
|
520 |
-
position: static;
|
521 |
-
float: right;
|
522 |
Â
}
|
523 |
-
.ui-
|
524 |
-
|
525 |
-
|
526 |
-
overflow: hidden;
|
527 |
Â
}
|
528 |
-
.ui-
|
529 |
-
|
530 |
-
|
531 |
Â
}
|
532 |
-
.ui-
|
533 |
-
|
534 |
-
height: 100%;
|
535 |
-
filter: alpha(opacity=25);
|
536 |
-
opacity: 0.25;
|
537 |
Â
}
|
538 |
-
.ui-
|
539 |
-
|
Â
|
|
540 |
Â
}
|
541 |
Â
.ui-resizable {
|
542 |
Â
position: relative;
|
@@ -545,6 +589,8 @@ button.ui-button::-moz-focus-inner {
|
|
545 |
Â
position: absolute;
|
546 |
Â
font-size: 0.1px;
|
547 |
Â
display: block;
|
Â
|
|
Â
|
|
548 |
Â
}
|
549 |
Â
.ui-resizable-disabled .ui-resizable-handle,
|
550 |
Â
.ui-resizable-autohide .ui-resizable-handle {
|
@@ -606,11 +652,73 @@ button.ui-button::-moz-focus-inner {
|
|
606 |
Â
right: -5px;
|
607 |
Â
top: -5px;
|
608 |
Â
}
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
609 |
Â
.ui-selectable-helper {
|
610 |
Â
position: absolute;
|
611 |
Â
z-index: 100;
|
612 |
Â
border: 1px dotted black;
|
613 |
Â
}
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
614 |
Â
.ui-slider {
|
615 |
Â
position: relative;
|
616 |
Â
text-align: left;
|
@@ -621,6 +729,8 @@ button.ui-button::-moz-focus-inner {
|
|
621 |
Â
width: 1.2em;
|
622 |
Â
height: 1.2em;
|
623 |
Â
cursor: default;
|
Â
|
|
Â
|
|
624 |
Â
}
|
625 |
Â
.ui-slider .ui-slider-range {
|
626 |
Â
position: absolute;
|
@@ -631,7 +741,7 @@ button.ui-button::-moz-focus-inner {
|
|
631 |
Â
background-position: 0 0;
|
632 |
Â
}
|
633 |
Â
|
634 |
-
/*
|
635 |
Â
.ui-slider.ui-state-disabled .ui-slider-handle,
|
636 |
Â
.ui-slider.ui-state-disabled .ui-slider-range {
|
637 |
Â
filter: inherit;
|
@@ -674,6 +784,10 @@ button.ui-button::-moz-focus-inner {
|
|
674 |
Â
.ui-slider-vertical .ui-slider-range-max {
|
675 |
Â
top: 0;
|
676 |
Â
}
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
677 |
Â
.ui-spinner {
|
678 |
Â
position: relative;
|
679 |
Â
display: inline-block;
|
@@ -685,14 +799,14 @@ button.ui-button::-moz-focus-inner {
|
|
685 |
Â
border: none;
|
686 |
Â
background: none;
|
687 |
Â
color: inherit;
|
688 |
-
padding: 0;
|
689 |
Â
margin: .2em 0;
|
690 |
Â
vertical-align: middle;
|
691 |
Â
margin-left: .4em;
|
692 |
-
margin-right:
|
693 |
Â
}
|
694 |
Â
.ui-spinner-button {
|
695 |
-
width:
|
696 |
Â
height: 50%;
|
697 |
Â
font-size: .5em;
|
698 |
Â
padding: 0;
|
@@ -704,18 +818,11 @@ button.ui-button::-moz-focus-inner {
|
|
704 |
Â
overflow: hidden;
|
705 |
Â
right: 0;
|
706 |
Â
}
|
707 |
-
/* more specificity required here to
|
708 |
Â
.ui-spinner a.ui-spinner-button {
|
709 |
-
border-top: none;
|
710 |
-
border-bottom: none;
|
711 |
-
border-right: none;
|
712 |
-
}
|
713 |
-
/* vertical centre icon */
|
714 |
-
.ui-spinner .ui-icon {
|
715 |
-
position: absolute;
|
716 |
-
margin-top: -8px;
|
717 |
-
top: 50%;
|
718 |
-
left: 0;
|
719 |
Â
}
|
720 |
Â
.ui-spinner-up {
|
721 |
Â
top: 0;
|
@@ -723,12 +830,6 @@ button.ui-button::-moz-focus-inner {
|
|
723 |
Â
.ui-spinner-down {
|
724 |
Â
bottom: 0;
|
725 |
Â
}
|
726 |
-
|
727 |
-
/* TR overrides */
|
728 |
-
.ui-spinner .ui-icon-triangle-1-s {
|
729 |
-
/* need to fix icons sprite */
|
730 |
-
background-position: -65px -16px;
|
731 |
-
}
|
732 |
Â
.ui-tabs {
|
733 |
Â
position: relative;/* position: relative prevents IE scroll bug (element with position: relative inside container with overflow: auto appear as "fixed") */
|
734 |
Â
padding: .2em;
|
@@ -747,7 +848,7 @@ button.ui-button::-moz-focus-inner {
|
|
747 |
Â
padding: 0;
|
748 |
Â
white-space: nowrap;
|
749 |
Â
}
|
750 |
-
.ui-tabs .ui-tabs-nav
|
751 |
Â
float: left;
|
752 |
Â
padding: .5em 1em;
|
753 |
Â
text-decoration: none;
|
@@ -756,13 +857,12 @@ button.ui-button::-moz-focus-inner {
|
|
756 |
Â
margin-bottom: -1px;
|
757 |
Â
padding-bottom: 1px;
|
758 |
Â
}
|
759 |
-
.ui-tabs .ui-tabs-nav li.ui-tabs-active
|
760 |
-
.ui-tabs .ui-tabs-nav li.ui-state-disabled
|
761 |
-
.ui-tabs .ui-tabs-nav li.ui-tabs-loading
|
762 |
Â
cursor: text;
|
763 |
Â
}
|
764 |
-
.ui-tabs .ui-tabs-nav li
|
765 |
-
.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-active a {
|
766 |
Â
cursor: pointer;
|
767 |
Â
}
|
768 |
Â
.ui-tabs .ui-tabs-panel {
|
@@ -776,14 +876,10 @@ button.ui-button::-moz-focus-inner {
|
|
776 |
Â
position: absolute;
|
777 |
Â
z-index: 9999;
|
778 |
Â
max-width: 300px;
|
779 |
-
-webkit-box-shadow: 0 0 5px #aaa;
|
780 |
-
box-shadow: 0 0 5px #aaa;
|
781 |
-
opacity: 1 !important;
|
782 |
Â
}
|
783 |
Â
body .ui-tooltip {
|
784 |
Â
border-width: 2px;
|
785 |
Â
}
|
786 |
-
|
787 |
Â
/* Component containers
|
788 |
Â
----------------------------------*/
|
789 |
Â
.ui-widget {
|
@@ -800,9 +896,12 @@ body .ui-tooltip {
|
|
800 |
Â
font-family: Lucida Grande,Lucida Sans,Arial,sans-serif;
|
801 |
Â
font-size: 1em;
|
802 |
Â
}
|
Â
|
|
Â
|
|
Â
|
|
803 |
Â
.ui-widget-content {
|
804 |
Â
border: 1px solid #a6c9e2;
|
805 |
-
background: #fcfdfd url(images/ui-bg_inset-hard_100_fcfdfd_1x100.png) 50% bottom repeat-x;
|
806 |
Â
color: #222222;
|
807 |
Â
}
|
808 |
Â
.ui-widget-content a {
|
@@ -810,7 +909,7 @@ body .ui-tooltip {
|
|
810 |
Â
}
|
811 |
Â
.ui-widget-header {
|
812 |
Â
border: 1px solid #4297d7;
|
813 |
-
background: #5c9ccc url(images/ui-bg_gloss-wave_55_5c9ccc_500x100.png) 50% 50% repeat-x;
|
814 |
Â
color: #ffffff;
|
815 |
Â
font-weight: bold;
|
816 |
Â
}
|
@@ -822,15 +921,25 @@ body .ui-tooltip {
|
|
822 |
Â
----------------------------------*/
|
823 |
Â
.ui-state-default,
|
824 |
Â
.ui-widget-content .ui-state-default,
|
825 |
-
.ui-widget-header .ui-state-default
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
826 |
Â
border: 1px solid #c5dbec;
|
827 |
-
background: #dfeffc url(images/ui-bg_glass_85_dfeffc_1x400.png) 50% 50% repeat-x;
|
828 |
Â
font-weight: bold;
|
829 |
Â
color: #2e6e9e;
|
830 |
Â
}
|
831 |
Â
.ui-state-default a,
|
832 |
Â
.ui-state-default a:link,
|
833 |
-
.ui-state-default a:visited
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
834 |
Â
color: #2e6e9e;
|
835 |
Â
text-decoration: none;
|
836 |
Â
}
|
@@ -839,27 +948,47 @@ body .ui-tooltip {
|
|
839 |
Â
.ui-widget-header .ui-state-hover,
|
840 |
Â
.ui-state-focus,
|
841 |
Â
.ui-widget-content .ui-state-focus,
|
842 |
-
.ui-widget-header .ui-state-focus
|
Â
|
|
Â
|
|
843 |
Â
border: 1px solid #79b7e7;
|
844 |
-
background: #d0e5f5 url(images/ui-bg_glass_75_d0e5f5_1x400.png) 50% 50% repeat-x;
|
845 |
Â
font-weight: bold;
|
846 |
Â
color: #1d5987;
|
847 |
Â
}
|
848 |
Â
.ui-state-hover a,
|
849 |
Â
.ui-state-hover a:hover,
|
850 |
Â
.ui-state-hover a:link,
|
851 |
-
.ui-state-hover a:visited
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
852 |
Â
color: #1d5987;
|
853 |
Â
text-decoration: none;
|
854 |
Â
}
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
855 |
Â
.ui-state-active,
|
856 |
Â
.ui-widget-content .ui-state-active,
|
857 |
-
.ui-widget-header .ui-state-active
|
Â
|
|
Â
|
|
Â
|
|
858 |
Â
border: 1px solid #79b7e7;
|
859 |
-
background: #f5f8f9 url(images/ui-bg_inset-hard_100_f5f8f9_1x100.png) 50% 50% repeat-x;
|
860 |
Â
font-weight: bold;
|
861 |
Â
color: #e17009;
|
862 |
Â
}
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
863 |
Â
.ui-state-active a,
|
864 |
Â
.ui-state-active a:link,
|
865 |
Â
.ui-state-active a:visited {
|
@@ -873,9 +1002,13 @@ body .ui-tooltip {
|
|
873 |
Â
.ui-widget-content .ui-state-highlight,
|
874 |
Â
.ui-widget-header .ui-state-highlight {
|
875 |
Â
border: 1px solid #fad42e;
|
876 |
-
background: #fbec88
|
877 |
Â
color: #363636;
|
878 |
Â
}
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
879 |
Â
.ui-state-highlight a,
|
880 |
Â
.ui-widget-content .ui-state-highlight a,
|
881 |
Â
.ui-widget-header .ui-state-highlight a {
|
@@ -885,7 +1018,7 @@ body .ui-tooltip {
|
|
885 |
Â
.ui-widget-content .ui-state-error,
|
886 |
Â
.ui-widget-header .ui-state-error {
|
887 |
Â
border: 1px solid #cd0a0a;
|
888 |
-
background: #fef1ec url(images/ui-bg_glass_95_fef1ec_1x400.png) 50% 50% repeat-x;
|
889 |
Â
color: #cd0a0a;
|
890 |
Â
}
|
891 |
Â
.ui-state-error a,
|
@@ -907,18 +1040,18 @@ body .ui-tooltip {
|
|
907 |
Â
.ui-widget-content .ui-priority-secondary,
|
908 |
Â
.ui-widget-header .ui-priority-secondary {
|
909 |
Â
opacity: .7;
|
910 |
-
filter:Alpha(Opacity=70);
|
911 |
Â
font-weight: normal;
|
912 |
Â
}
|
913 |
Â
.ui-state-disabled,
|
914 |
Â
.ui-widget-content .ui-state-disabled,
|
915 |
Â
.ui-widget-header .ui-state-disabled {
|
916 |
Â
opacity: .35;
|
917 |
-
filter:Alpha(Opacity=35);
|
918 |
Â
background-image: none;
|
919 |
Â
}
|
920 |
Â
.ui-state-disabled .ui-icon {
|
921 |
-
filter:Alpha(Opacity=35); /*
|
922 |
Â
}
|
923 |
Â
|
924 |
Â
/* Icons
|
@@ -931,46 +1064,50 @@ body .ui-tooltip {
|
|
931 |
Â
}
|
932 |
Â
.ui-icon,
|
933 |
Â
.ui-widget-content .ui-icon {
|
934 |
-
background-image: url(images/ui-icons_469bdd_256x240.png);
|
935 |
Â
}
|
936 |
Â
.ui-widget-header .ui-icon {
|
937 |
-
background-image: url(images/ui-icons_d8e7f3_256x240.png);
|
938 |
-
}
|
939 |
-
.ui-state-default .ui-icon {
|
940 |
-
background-image: url(images/ui-icons_6da8d5_256x240.png);
|
941 |
Â
}
|
942 |
Â
.ui-state-hover .ui-icon,
|
943 |
-
.ui-state-focus .ui-icon
|
944 |
-
|
Â
|
|
Â
|
|
945 |
Â
}
|
946 |
-
.ui-state-active .ui-icon
|
947 |
-
|
Â
|
|
948 |
Â
}
|
949 |
-
.ui-state-highlight .ui-icon
|
950 |
-
|
Â
|
|
951 |
Â
}
|
952 |
Â
.ui-state-error .ui-icon,
|
953 |
Â
.ui-state-error-text .ui-icon {
|
954 |
-
background-image: url(images/ui-icons_cd0a0a_256x240.png);
|
Â
|
|
Â
|
|
Â
|
|
955 |
Â
}
|
956 |
Â
|
957 |
Â
/* positioning */
|
958 |
Â
.ui-icon-blank { background-position: 16px 16px; }
|
959 |
-
.ui-icon-
|
960 |
-
.ui-icon-
|
961 |
-
.ui-icon-
|
962 |
-
.ui-icon-
|
963 |
-
.ui-icon-
|
964 |
-
.ui-icon-
|
965 |
-
.ui-icon-
|
966 |
-
.ui-icon-
|
967 |
-
.ui-icon-
|
968 |
-
.ui-icon-
|
969 |
Â
.ui-icon-triangle-1-n { background-position: 0 -16px; }
|
970 |
Â
.ui-icon-triangle-1-ne { background-position: -16px -16px; }
|
971 |
Â
.ui-icon-triangle-1-e { background-position: -32px -16px; }
|
972 |
Â
.ui-icon-triangle-1-se { background-position: -48px -16px; }
|
973 |
-
.ui-icon-triangle-1-s { background-position: -
|
974 |
Â
.ui-icon-triangle-1-sw { background-position: -80px -16px; }
|
975 |
Â
.ui-icon-triangle-1-w { background-position: -96px -16px; }
|
976 |
Â
.ui-icon-triangle-1-nw { background-position: -112px -16px; }
|
@@ -980,7 +1117,7 @@ body .ui-tooltip {
|
|
980 |
Â
.ui-icon-arrow-1-ne { background-position: -16px -32px; }
|
981 |
Â
.ui-icon-arrow-1-e { background-position: -32px -32px; }
|
982 |
Â
.ui-icon-arrow-1-se { background-position: -48px -32px; }
|
983 |
-
.ui-icon-arrow-1-s { background-position: -
|
984 |
Â
.ui-icon-arrow-1-sw { background-position: -80px -32px; }
|
985 |
Â
.ui-icon-arrow-1-w { background-position: -96px -32px; }
|
986 |
Â
.ui-icon-arrow-1-nw { background-position: -112px -32px; }
|
@@ -992,7 +1129,7 @@ body .ui-tooltip {
|
|
992 |
Â
.ui-icon-arrowstop-1-e { background-position: -208px -32px; }
|
993 |
Â
.ui-icon-arrowstop-1-s { background-position: -224px -32px; }
|
994 |
Â
.ui-icon-arrowstop-1-w { background-position: -240px -32px; }
|
995 |
-
.ui-icon-arrowthick-1-n { background-position:
|
996 |
Â
.ui-icon-arrowthick-1-ne { background-position: -16px -48px; }
|
997 |
Â
.ui-icon-arrowthick-1-e { background-position: -32px -48px; }
|
998 |
Â
.ui-icon-arrowthick-1-se { background-position: -48px -48px; }
|
@@ -1164,15 +1301,11 @@ body .ui-tooltip {
|
|
1164 |
Â
|
1165 |
Â
/* Overlays */
|
1166 |
Â
.ui-widget-overlay {
|
1167 |
-
background: #aaaaaa
|
1168 |
Â
opacity: .3;
|
1169 |
-
filter: Alpha(Opacity=30);
|
1170 |
Â
}
|
1171 |
Â
.ui-widget-shadow {
|
1172 |
-
|
1173 |
-
|
1174 |
-
background: #aaaaaa url(images/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x;
|
1175 |
-
opacity: .3;
|
1176 |
-
filter: Alpha(Opacity=30);
|
1177 |
-
border-radius: 8px;
|
1178 |
Â
}
|
1 |
+
/*! jQuery UI - v1.12.1 - 2016-09-14
|
2 |
Â
* http://jqueryui.com
|
3 |
+
* Includes: core.css, accordion.css, autocomplete.css, menu.css, button.css, controlgroup.css, checkboxradio.css, datepicker.css, dialog.css, draggable.css, resizable.css, progressbar.css, selectable.css, selectmenu.css, slider.css, sortable.css, spinner.css, tabs.css, tooltip.css, theme.css
|
4 |
Â
* To view and modify this theme, visit http://jqueryui.com/themeroller/?ffDefault=Lucida%20Grande%2CLucida%20Sans%2CArial%2Csans-serif&fwDefault=bold&fsDefault=1.1em&cornerRadius=5px&bgColorHeader=5c9ccc&bgTextureHeader=gloss_wave&bgImgOpacityHeader=55&borderColorHeader=4297d7&fcHeader=ffffff&iconColorHeader=d8e7f3&bgColorContent=fcfdfd&bgTextureContent=inset_hard&bgImgOpacityContent=100&borderColorContent=a6c9e2&fcContent=222222&iconColorContent=469bdd&bgColorDefault=dfeffc&bgTextureDefault=glass&bgImgOpacityDefault=85&borderColorDefault=c5dbec&fcDefault=2e6e9e&iconColorDefault=6da8d5&bgColorHover=d0e5f5&bgTextureHover=glass&bgImgOpacityHover=75&borderColorHover=79b7e7&fcHover=1d5987&iconColorHover=217bc0&bgColorActive=f5f8f9&bgTextureActive=inset_hard&bgImgOpacityActive=100&borderColorActive=79b7e7&fcActive=e17009&iconColorActive=f9bd01&bgColorHighlight=fbec88&bgTextureHighlight=flat&bgImgOpacityHighlight=55&borderColorHighlight=fad42e&fcHighlight=363636&iconColorHighlight=2e83ff&bgColorError=fef1ec&bgTextureError=glass&bgImgOpacityError=95&borderColorError=cd0a0a&fcError=cd0a0a&iconColorError=cd0a0a&bgColorOverlay=aaaaaa&bgTextureOverlay=flat&bgImgOpacityOverlay=0&opacityOverlay=30&bgColorShadow=aaaaaa&bgTextureShadow=flat&bgImgOpacityShadow=0&opacityShadow=30&thicknessShadow=8px&offsetTopShadow=-8px&offsetLeftShadow=-8px&cornerRadiusShadow=8px
|
5 |
+
* Copyright jQuery Foundation and other contributors; Licensed MIT */
|
6 |
Â
|
7 |
Â
/* Layout helpers
|
8 |
Â
----------------------------------*/
|
38 |
Â
.ui-helper-clearfix:after {
|
39 |
Â
clear: both;
|
40 |
Â
}
|
Â
|
|
Â
|
|
Â
|
|
41 |
Â
.ui-helper-zfix {
|
42 |
Â
width: 100%;
|
43 |
Â
height: 100%;
|
45 |
Â
left: 0;
|
46 |
Â
position: absolute;
|
47 |
Â
opacity: 0;
|
48 |
+
filter:Alpha(Opacity=0); /* support: IE8 */
|
49 |
Â
}
|
50 |
Â
|
51 |
Â
.ui-front {
|
57 |
Â
----------------------------------*/
|
58 |
Â
.ui-state-disabled {
|
59 |
Â
cursor: default !important;
|
60 |
+
pointer-events: none;
|
61 |
Â
}
|
62 |
Â
|
63 |
Â
|
64 |
Â
/* Icons
|
65 |
Â
----------------------------------*/
|
Â
|
|
Â
|
|
66 |
Â
.ui-icon {
|
67 |
+
display: inline-block;
|
68 |
+
vertical-align: middle;
|
69 |
+
margin-top: -.25em;
|
70 |
+
position: relative;
|
71 |
Â
text-indent: -99999px;
|
72 |
Â
overflow: hidden;
|
73 |
Â
background-repeat: no-repeat;
|
74 |
Â
}
|
75 |
Â
|
76 |
+
.ui-widget-icon-block {
|
77 |
+
left: 50%;
|
78 |
+
margin-left: -8px;
|
79 |
+
display: block;
|
80 |
+
}
|
81 |
Â
|
82 |
Â
/* Misc visuals
|
83 |
Â
----------------------------------*/
|
94 |
Â
display: block;
|
95 |
Â
cursor: pointer;
|
96 |
Â
position: relative;
|
97 |
+
margin: 2px 0 0 0;
|
98 |
Â
padding: .5em .5em .5em .7em;
|
99 |
+
font-size: 100%;
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
100 |
Â
}
|
101 |
Â
.ui-accordion .ui-accordion-content {
|
102 |
Â
padding: 1em 2.2em;
|
109 |
Â
left: 0;
|
110 |
Â
cursor: default;
|
111 |
Â
}
|
112 |
+
.ui-menu {
|
113 |
+
list-style: none;
|
114 |
+
padding: 0;
|
115 |
+
margin: 0;
|
116 |
+
display: block;
|
117 |
+
outline: 0;
|
118 |
+
}
|
119 |
+
.ui-menu .ui-menu {
|
120 |
+
position: absolute;
|
121 |
+
}
|
122 |
+
.ui-menu .ui-menu-item {
|
123 |
+
margin: 0;
|
124 |
+
cursor: pointer;
|
125 |
+
/* support: IE10, see #8844 */
|
126 |
+
list-style-image: url("data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7");
|
127 |
+
}
|
128 |
+
.ui-menu .ui-menu-item-wrapper {
|
129 |
+
position: relative;
|
130 |
+
padding: 3px 1em 3px .4em;
|
131 |
+
}
|
132 |
+
.ui-menu .ui-menu-divider {
|
133 |
+
margin: 5px 0;
|
134 |
+
height: 0;
|
135 |
+
font-size: 0;
|
136 |
+
line-height: 0;
|
137 |
+
border-width: 1px 0 0 0;
|
138 |
+
}
|
139 |
+
.ui-menu .ui-state-focus,
|
140 |
+
.ui-menu .ui-state-active {
|
141 |
+
margin: -1px;
|
142 |
+
}
|
143 |
+
|
144 |
+
/* icon support */
|
145 |
+
.ui-menu-icons {
|
146 |
+
position: relative;
|
147 |
+
}
|
148 |
+
.ui-menu-icons .ui-menu-item-wrapper {
|
149 |
+
padding-left: 2em;
|
150 |
+
}
|
151 |
+
|
152 |
+
/* left-aligned */
|
153 |
+
.ui-menu .ui-icon {
|
154 |
+
position: absolute;
|
155 |
+
top: 0;
|
156 |
+
bottom: 0;
|
157 |
+
left: .2em;
|
158 |
+
margin: auto 0;
|
159 |
+
}
|
160 |
+
|
161 |
+
/* right-aligned */
|
162 |
+
.ui-menu .ui-menu-icon {
|
163 |
+
left: auto;
|
164 |
+
right: 0;
|
165 |
+
}
|
166 |
Â
.ui-button {
|
167 |
+
padding: .4em 1em;
|
168 |
Â
display: inline-block;
|
169 |
Â
position: relative;
|
Â
|
|
170 |
Â
line-height: normal;
|
171 |
Â
margin-right: .1em;
|
172 |
Â
cursor: pointer;
|
173 |
Â
vertical-align: middle;
|
174 |
Â
text-align: center;
|
175 |
+
-webkit-user-select: none;
|
176 |
+
-moz-user-select: none;
|
177 |
+
-ms-user-select: none;
|
178 |
+
user-select: none;
|
179 |
+
|
180 |
+
/* Support: IE <= 11 */
|
181 |
+
overflow: visible;
|
182 |
Â
}
|
183 |
+
|
184 |
Â
.ui-button,
|
185 |
Â
.ui-button:link,
|
186 |
Â
.ui-button:visited,
|
188 |
Â
.ui-button:active {
|
189 |
Â
text-decoration: none;
|
190 |
Â
}
|
191 |
+
|
192 |
Â
/* to make room for the icon, a width needs to be set here */
|
193 |
Â
.ui-button-icon-only {
|
194 |
+
width: 2em;
|
195 |
+
box-sizing: border-box;
|
196 |
+
text-indent: -9999px;
|
197 |
+
white-space: nowrap;
|
Â
|
|
198 |
Â
}
|
199 |
+
|
200 |
+
/* no icon support for input elements */
|
201 |
+
input.ui-button.ui-button-icon-only {
|
202 |
+
text-indent: 0;
|
203 |
Â
}
|
204 |
+
|
205 |
+
/* button icon element(s) */
|
206 |
+
.ui-button-icon-only .ui-icon {
|
207 |
+
position: absolute;
|
208 |
+
top: 50%;
|
209 |
+
left: 50%;
|
210 |
+
margin-top: -8px;
|
211 |
+
margin-left: -8px;
|
212 |
Â
}
|
213 |
Â
|
214 |
+
.ui-button.ui-icon-notext .ui-icon {
|
215 |
+
padding: 0;
|
216 |
+
width: 2.1em;
|
217 |
+
height: 2.1em;
|
218 |
+
text-indent: -9999px;
|
219 |
+
white-space: nowrap;
|
220 |
+
|
221 |
Â
}
|
222 |
+
|
223 |
+
input.ui-button.ui-icon-notext .ui-icon {
|
224 |
+
width: auto;
|
225 |
+
height: auto;
|
226 |
+
text-indent: 0;
|
227 |
+
white-space: normal;
|
228 |
Â
padding: .4em 1em;
|
229 |
Â
}
|
230 |
+
|
231 |
+
/* workarounds */
|
232 |
+
/* Support: Firefox 5 - 40 */
|
233 |
+
input.ui-button::-moz-focus-inner,
|
234 |
+
button.ui-button::-moz-focus-inner {
|
235 |
+
border: 0;
|
236 |
+
padding: 0;
|
237 |
+
}
|
238 |
+
.ui-controlgroup {
|
239 |
+
vertical-align: middle;
|
240 |
+
display: inline-block;
|
241 |
Â
}
|
242 |
+
.ui-controlgroup > .ui-controlgroup-item {
|
243 |
+
float: left;
|
244 |
+
margin-left: 0;
|
245 |
+
margin-right: 0;
|
246 |
Â
}
|
247 |
+
.ui-controlgroup > .ui-controlgroup-item:focus,
|
248 |
+
.ui-controlgroup > .ui-controlgroup-item.ui-visual-focus {
|
249 |
+
z-index: 9999;
|
250 |
Â
}
|
251 |
+
.ui-controlgroup-vertical > .ui-controlgroup-item {
|
252 |
+
display: block;
|
253 |
+
float: none;
|
254 |
+
width: 100%;
|
255 |
+
margin-top: 0;
|
256 |
+
margin-bottom: 0;
|
257 |
+
text-align: left;
|
258 |
+
}
|
259 |
+
.ui-controlgroup-vertical .ui-controlgroup-item {
|
260 |
+
box-sizing: border-box;
|
261 |
Â
}
|
262 |
+
.ui-controlgroup .ui-controlgroup-label {
|
Â
|
|
263 |
Â
padding: .4em 1em;
|
264 |
Â
}
|
265 |
+
.ui-controlgroup .ui-controlgroup-label span {
|
266 |
+
font-size: 80%;
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
267 |
Â
}
|
268 |
+
.ui-controlgroup-horizontal .ui-controlgroup-label + .ui-controlgroup-item {
|
269 |
+
border-left: none;
|
Â
|
|
270 |
Â
}
|
271 |
+
.ui-controlgroup-vertical .ui-controlgroup-label + .ui-controlgroup-item {
|
272 |
+
border-top: none;
|
273 |
+
}
|
274 |
+
.ui-controlgroup-horizontal .ui-controlgroup-label.ui-widget-content {
|
275 |
+
border-right: none;
|
276 |
Â
}
|
277 |
+
.ui-controlgroup-vertical .ui-controlgroup-label.ui-widget-content {
|
278 |
+
border-bottom: none;
|
Â
|
|
Â
|
|
279 |
Â
}
|
280 |
Â
|
281 |
+
/* Spinner specific style fixes */
|
282 |
+
.ui-controlgroup-vertical .ui-spinner-input {
|
283 |
+
|
284 |
+
/* Support: IE8 only, Android < 4.4 only */
|
285 |
+
width: 75%;
|
286 |
+
width: calc( 100% - 2.4em );
|
287 |
Â
}
|
288 |
+
.ui-controlgroup-vertical .ui-spinner .ui-spinner-up {
|
289 |
+
border-top-style: solid;
|
Â
|
|
290 |
Â
}
|
291 |
Â
|
292 |
+
.ui-checkboxradio-label .ui-icon-background {
|
293 |
+
box-shadow: inset 1px 1px 1px #ccc;
|
294 |
+
border-radius: .12em;
|
295 |
+
border: none;
|
296 |
+
}
|
297 |
+
.ui-checkboxradio-radio-label .ui-icon-background {
|
298 |
+
width: 16px;
|
299 |
+
height: 16px;
|
300 |
+
border-radius: 1em;
|
301 |
+
overflow: visible;
|
302 |
+
border: none;
|
303 |
+
}
|
304 |
+
.ui-checkboxradio-radio-label.ui-checkboxradio-checked .ui-icon,
|
305 |
+
.ui-checkboxradio-radio-label.ui-checkboxradio-checked:hover .ui-icon {
|
306 |
+
background-image: none;
|
307 |
+
width: 8px;
|
308 |
+
height: 8px;
|
309 |
+
border-width: 4px;
|
310 |
+
border-style: solid;
|
311 |
+
}
|
312 |
+
.ui-checkboxradio-disabled {
|
313 |
+
pointer-events: none;
|
314 |
Â
}
|
315 |
Â
.ui-datepicker {
|
316 |
Â
width: 17em;
|
362 |
Â
font-size: 1em;
|
363 |
Â
margin: 1px 0;
|
364 |
Â
}
|
Â
|
|
Â
|
|
Â
|
|
365 |
Â
.ui-datepicker select.ui-datepicker-month,
|
366 |
Â
.ui-datepicker select.ui-datepicker-year {
|
367 |
+
width: 45%;
|
368 |
Â
}
|
369 |
Â
.ui-datepicker table {
|
370 |
Â
width: 100%;
|
477 |
Â
border-right-width: 0;
|
478 |
Â
border-left-width: 1px;
|
479 |
Â
}
|
480 |
+
|
481 |
+
/* Icons */
|
482 |
+
.ui-datepicker .ui-icon {
|
483 |
+
display: block;
|
484 |
+
text-indent: -99999px;
|
485 |
+
overflow: hidden;
|
486 |
+
background-repeat: no-repeat;
|
487 |
+
left: .5em;
|
488 |
+
top: .3em;
|
489 |
+
}
|
490 |
Â
.ui-dialog {
|
491 |
Â
position: absolute;
|
492 |
Â
top: 0;
|
510 |
Â
position: absolute;
|
511 |
Â
right: .3em;
|
512 |
Â
top: 50%;
|
513 |
+
width: 20px;
|
514 |
Â
margin: -10px 0 0 0;
|
515 |
Â
padding: 1px;
|
516 |
Â
height: 20px;
|
536 |
Â
margin: .5em .4em .5em 0;
|
537 |
Â
cursor: pointer;
|
538 |
Â
}
|
539 |
+
.ui-dialog .ui-resizable-n {
|
540 |
+
height: 2px;
|
541 |
+
top: 0;
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
542 |
Â
}
|
543 |
+
.ui-dialog .ui-resizable-e {
|
544 |
+
width: 2px;
|
545 |
+
right: 0;
|
Â
|
|
Â
|
|
546 |
Â
}
|
547 |
+
.ui-dialog .ui-resizable-s {
|
548 |
+
height: 2px;
|
549 |
+
bottom: 0;
|
550 |
Â
}
|
551 |
+
.ui-dialog .ui-resizable-w {
|
552 |
+
width: 2px;
|
553 |
+
left: 0;
|
Â
|
|
554 |
Â
}
|
555 |
+
.ui-dialog .ui-resizable-se,
|
556 |
+
.ui-dialog .ui-resizable-sw,
|
557 |
+
.ui-dialog .ui-resizable-ne,
|
558 |
+
.ui-dialog .ui-resizable-nw {
|
559 |
+
width: 7px;
|
560 |
+
height: 7px;
|
561 |
Â
}
|
562 |
+
.ui-dialog .ui-resizable-se {
|
563 |
+
right: 0;
|
564 |
+
bottom: 0;
|
Â
|
|
Â
|
|
Â
|
|
565 |
Â
}
|
566 |
+
.ui-dialog .ui-resizable-sw {
|
567 |
+
left: 0;
|
568 |
+
bottom: 0;
|
Â
|
|
Â
|
|
569 |
Â
}
|
570 |
+
.ui-dialog .ui-resizable-ne {
|
571 |
+
right: 0;
|
572 |
+
top: 0;
|
Â
|
|
573 |
Â
}
|
574 |
+
.ui-dialog .ui-resizable-nw {
|
575 |
+
left: 0;
|
576 |
+
top: 0;
|
577 |
Â
}
|
578 |
+
.ui-draggable .ui-dialog-titlebar {
|
579 |
+
cursor: move;
|
Â
|
|
Â
|
|
Â
|
|
580 |
Â
}
|
581 |
+
.ui-draggable-handle {
|
582 |
+
-ms-touch-action: none;
|
583 |
+
touch-action: none;
|
584 |
Â
}
|
585 |
Â
.ui-resizable {
|
586 |
Â
position: relative;
|
589 |
Â
position: absolute;
|
590 |
Â
font-size: 0.1px;
|
591 |
Â
display: block;
|
592 |
+
-ms-touch-action: none;
|
593 |
+
touch-action: none;
|
594 |
Â
}
|
595 |
Â
.ui-resizable-disabled .ui-resizable-handle,
|
596 |
Â
.ui-resizable-autohide .ui-resizable-handle {
|
652 |
Â
right: -5px;
|
653 |
Â
top: -5px;
|
654 |
Â
}
|
655 |
+
.ui-progressbar {
|
656 |
+
height: 2em;
|
657 |
+
text-align: left;
|
658 |
+
overflow: hidden;
|
659 |
+
}
|
660 |
+
.ui-progressbar .ui-progressbar-value {
|
661 |
+
margin: -1px;
|
662 |
+
height: 100%;
|
663 |
+
}
|
664 |
+
.ui-progressbar .ui-progressbar-overlay {
|
665 |
+
background: url("data:image/gif;base64,R0lGODlhKAAoAIABAAAAAP///yH/C05FVFNDQVBFMi4wAwEAAAAh+QQJAQABACwAAAAAKAAoAAACkYwNqXrdC52DS06a7MFZI+4FHBCKoDeWKXqymPqGqxvJrXZbMx7Ttc+w9XgU2FB3lOyQRWET2IFGiU9m1frDVpxZZc6bfHwv4c1YXP6k1Vdy292Fb6UkuvFtXpvWSzA+HycXJHUXiGYIiMg2R6W459gnWGfHNdjIqDWVqemH2ekpObkpOlppWUqZiqr6edqqWQAAIfkECQEAAQAsAAAAACgAKAAAApSMgZnGfaqcg1E2uuzDmmHUBR8Qil95hiPKqWn3aqtLsS18y7G1SzNeowWBENtQd+T1JktP05nzPTdJZlR6vUxNWWjV+vUWhWNkWFwxl9VpZRedYcflIOLafaa28XdsH/ynlcc1uPVDZxQIR0K25+cICCmoqCe5mGhZOfeYSUh5yJcJyrkZWWpaR8doJ2o4NYq62lAAACH5BAkBAAEALAAAAAAoACgAAAKVDI4Yy22ZnINRNqosw0Bv7i1gyHUkFj7oSaWlu3ovC8GxNso5fluz3qLVhBVeT/Lz7ZTHyxL5dDalQWPVOsQWtRnuwXaFTj9jVVh8pma9JjZ4zYSj5ZOyma7uuolffh+IR5aW97cHuBUXKGKXlKjn+DiHWMcYJah4N0lYCMlJOXipGRr5qdgoSTrqWSq6WFl2ypoaUAAAIfkECQEAAQAsAAAAACgAKAAAApaEb6HLgd/iO7FNWtcFWe+ufODGjRfoiJ2akShbueb0wtI50zm02pbvwfWEMWBQ1zKGlLIhskiEPm9R6vRXxV4ZzWT2yHOGpWMyorblKlNp8HmHEb/lCXjcW7bmtXP8Xt229OVWR1fod2eWqNfHuMjXCPkIGNileOiImVmCOEmoSfn3yXlJWmoHGhqp6ilYuWYpmTqKUgAAIfkECQEAAQAsAAAAACgAKAAAApiEH6kb58biQ3FNWtMFWW3eNVcojuFGfqnZqSebuS06w5V80/X02pKe8zFwP6EFWOT1lDFk8rGERh1TTNOocQ61Hm4Xm2VexUHpzjymViHrFbiELsefVrn6XKfnt2Q9G/+Xdie499XHd2g4h7ioOGhXGJboGAnXSBnoBwKYyfioubZJ2Hn0RuRZaflZOil56Zp6iioKSXpUAAAh+QQJAQABACwAAAAAKAAoAAACkoQRqRvnxuI7kU1a1UU5bd5tnSeOZXhmn5lWK3qNTWvRdQxP8qvaC+/yaYQzXO7BMvaUEmJRd3TsiMAgswmNYrSgZdYrTX6tSHGZO73ezuAw2uxuQ+BbeZfMxsexY35+/Qe4J1inV0g4x3WHuMhIl2jXOKT2Q+VU5fgoSUI52VfZyfkJGkha6jmY+aaYdirq+lQAACH5BAkBAAEALAAAAAAoACgAAAKWBIKpYe0L3YNKToqswUlvznigd4wiR4KhZrKt9Upqip61i9E3vMvxRdHlbEFiEXfk9YARYxOZZD6VQ2pUunBmtRXo1Lf8hMVVcNl8JafV38aM2/Fu5V16Bn63r6xt97j09+MXSFi4BniGFae3hzbH9+hYBzkpuUh5aZmHuanZOZgIuvbGiNeomCnaxxap2upaCZsq+1kAACH5BAkBAAEALAAAAAAoACgAAAKXjI8By5zf4kOxTVrXNVlv1X0d8IGZGKLnNpYtm8Lr9cqVeuOSvfOW79D9aDHizNhDJidFZhNydEahOaDH6nomtJjp1tutKoNWkvA6JqfRVLHU/QUfau9l2x7G54d1fl995xcIGAdXqMfBNadoYrhH+Mg2KBlpVpbluCiXmMnZ2Sh4GBqJ+ckIOqqJ6LmKSllZmsoq6wpQAAAh+QQJAQABACwAAAAAKAAoAAAClYx/oLvoxuJDkU1a1YUZbJ59nSd2ZXhWqbRa2/gF8Gu2DY3iqs7yrq+xBYEkYvFSM8aSSObE+ZgRl1BHFZNr7pRCavZ5BW2142hY3AN/zWtsmf12p9XxxFl2lpLn1rseztfXZjdIWIf2s5dItwjYKBgo9yg5pHgzJXTEeGlZuenpyPmpGQoKOWkYmSpaSnqKileI2FAAACH5BAkBAAEALAAAAAAoACgAAAKVjB+gu+jG4kORTVrVhRlsnn2dJ3ZleFaptFrb+CXmO9OozeL5VfP99HvAWhpiUdcwkpBH3825AwYdU8xTqlLGhtCosArKMpvfa1mMRae9VvWZfeB2XfPkeLmm18lUcBj+p5dnN8jXZ3YIGEhYuOUn45aoCDkp16hl5IjYJvjWKcnoGQpqyPlpOhr3aElaqrq56Bq7VAAAOw==");
|
666 |
+
height: 100%;
|
667 |
+
filter: alpha(opacity=25); /* support: IE8 */
|
668 |
+
opacity: 0.25;
|
669 |
+
}
|
670 |
+
.ui-progressbar-indeterminate .ui-progressbar-value {
|
671 |
+
background-image: none;
|
672 |
+
}
|
673 |
+
.ui-selectable {
|
674 |
+
-ms-touch-action: none;
|
675 |
+
touch-action: none;
|
676 |
+
}
|
677 |
Â
.ui-selectable-helper {
|
678 |
Â
position: absolute;
|
679 |
Â
z-index: 100;
|
680 |
Â
border: 1px dotted black;
|
681 |
Â
}
|
682 |
+
.ui-selectmenu-menu {
|
683 |
+
padding: 0;
|
684 |
+
margin: 0;
|
685 |
+
position: absolute;
|
686 |
+
top: 0;
|
687 |
+
left: 0;
|
688 |
+
display: none;
|
689 |
+
}
|
690 |
+
.ui-selectmenu-menu .ui-menu {
|
691 |
+
overflow: auto;
|
692 |
+
overflow-x: hidden;
|
693 |
+
padding-bottom: 1px;
|
694 |
+
}
|
695 |
+
.ui-selectmenu-menu .ui-menu .ui-selectmenu-optgroup {
|
696 |
+
font-size: 1em;
|
697 |
+
font-weight: bold;
|
698 |
+
line-height: 1.5;
|
699 |
+
padding: 2px 0.4em;
|
700 |
+
margin: 0.5em 0 0 0;
|
701 |
+
height: auto;
|
702 |
+
border: 0;
|
703 |
+
}
|
704 |
+
.ui-selectmenu-open {
|
705 |
+
display: block;
|
706 |
+
}
|
707 |
+
.ui-selectmenu-text {
|
708 |
+
display: block;
|
709 |
+
margin-right: 20px;
|
710 |
+
overflow: hidden;
|
711 |
+
text-overflow: ellipsis;
|
712 |
+
}
|
713 |
+
.ui-selectmenu-button.ui-button {
|
714 |
+
text-align: left;
|
715 |
+
white-space: nowrap;
|
716 |
+
width: 14em;
|
717 |
+
}
|
718 |
+
.ui-selectmenu-icon.ui-icon {
|
719 |
+
float: right;
|
720 |
+
margin-top: 0;
|
721 |
+
}
|
722 |
Â
.ui-slider {
|
723 |
Â
position: relative;
|
724 |
Â
text-align: left;
|
729 |
Â
width: 1.2em;
|
730 |
Â
height: 1.2em;
|
731 |
Â
cursor: default;
|
732 |
+
-ms-touch-action: none;
|
733 |
+
touch-action: none;
|
734 |
Â
}
|
735 |
Â
.ui-slider .ui-slider-range {
|
736 |
Â
position: absolute;
|
741 |
Â
background-position: 0 0;
|
742 |
Â
}
|
743 |
Â
|
744 |
+
/* support: IE8 - See #6727 */
|
745 |
Â
.ui-slider.ui-state-disabled .ui-slider-handle,
|
746 |
Â
.ui-slider.ui-state-disabled .ui-slider-range {
|
747 |
Â
filter: inherit;
|
784 |
Â
.ui-slider-vertical .ui-slider-range-max {
|
785 |
Â
top: 0;
|
786 |
Â
}
|
787 |
+
.ui-sortable-handle {
|
788 |
+
-ms-touch-action: none;
|
789 |
+
touch-action: none;
|
790 |
+
}
|
791 |
Â
.ui-spinner {
|
792 |
Â
position: relative;
|
793 |
Â
display: inline-block;
|
799 |
Â
border: none;
|
800 |
Â
background: none;
|
801 |
Â
color: inherit;
|
802 |
+
padding: .222em 0;
|
803 |
Â
margin: .2em 0;
|
804 |
Â
vertical-align: middle;
|
805 |
Â
margin-left: .4em;
|
806 |
+
margin-right: 2em;
|
807 |
Â
}
|
808 |
Â
.ui-spinner-button {
|
809 |
+
width: 1.6em;
|
810 |
Â
height: 50%;
|
811 |
Â
font-size: .5em;
|
812 |
Â
padding: 0;
|
818 |
Â
overflow: hidden;
|
819 |
Â
right: 0;
|
820 |
Â
}
|
821 |
+
/* more specificity required here to override default borders */
|
822 |
Â
.ui-spinner a.ui-spinner-button {
|
823 |
+
border-top-style: none;
|
824 |
+
border-bottom-style: none;
|
825 |
+
border-right-style: none;
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
826 |
Â
}
|
827 |
Â
.ui-spinner-up {
|
828 |
Â
top: 0;
|
830 |
Â
.ui-spinner-down {
|
831 |
Â
bottom: 0;
|
832 |
Â
}
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
833 |
Â
.ui-tabs {
|
834 |
Â
position: relative;/* position: relative prevents IE scroll bug (element with position: relative inside container with overflow: auto appear as "fixed") */
|
835 |
Â
padding: .2em;
|
848 |
Â
padding: 0;
|
849 |
Â
white-space: nowrap;
|
850 |
Â
}
|
851 |
+
.ui-tabs .ui-tabs-nav .ui-tabs-anchor {
|
852 |
Â
float: left;
|
853 |
Â
padding: .5em 1em;
|
854 |
Â
text-decoration: none;
|
857 |
Â
margin-bottom: -1px;
|
858 |
Â
padding-bottom: 1px;
|
859 |
Â
}
|
860 |
+
.ui-tabs .ui-tabs-nav li.ui-tabs-active .ui-tabs-anchor,
|
861 |
+
.ui-tabs .ui-tabs-nav li.ui-state-disabled .ui-tabs-anchor,
|
862 |
+
.ui-tabs .ui-tabs-nav li.ui-tabs-loading .ui-tabs-anchor {
|
863 |
Â
cursor: text;
|
864 |
Â
}
|
865 |
+
.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-active .ui-tabs-anchor {
|
Â
|
|
866 |
Â
cursor: pointer;
|
867 |
Â
}
|
868 |
Â
.ui-tabs .ui-tabs-panel {
|
876 |
Â
position: absolute;
|
877 |
Â
z-index: 9999;
|
878 |
Â
max-width: 300px;
|
Â
|
|
Â
|
|
Â
|
|
879 |
Â
}
|
880 |
Â
body .ui-tooltip {
|
881 |
Â
border-width: 2px;
|
882 |
Â
}
|
Â
|
|
883 |
Â
/* Component containers
|
884 |
Â
----------------------------------*/
|
885 |
Â
.ui-widget {
|
896 |
Â
font-family: Lucida Grande,Lucida Sans,Arial,sans-serif;
|
897 |
Â
font-size: 1em;
|
898 |
Â
}
|
899 |
+
.ui-widget.ui-widget-content {
|
900 |
+
border: 1px solid #c5dbec;
|
901 |
+
}
|
902 |
Â
.ui-widget-content {
|
903 |
Â
border: 1px solid #a6c9e2;
|
904 |
+
background: #fcfdfd url("images/ui-bg_inset-hard_100_fcfdfd_1x100.png") 50% bottom repeat-x;
|
905 |
Â
color: #222222;
|
906 |
Â
}
|
907 |
Â
.ui-widget-content a {
|
909 |
Â
}
|
910 |
Â
.ui-widget-header {
|
911 |
Â
border: 1px solid #4297d7;
|
912 |
+
background: #5c9ccc url("images/ui-bg_gloss-wave_55_5c9ccc_500x100.png") 50% 50% repeat-x;
|
913 |
Â
color: #ffffff;
|
914 |
Â
font-weight: bold;
|
915 |
Â
}
|
921 |
Â
----------------------------------*/
|
922 |
Â
.ui-state-default,
|
923 |
Â
.ui-widget-content .ui-state-default,
|
924 |
+
.ui-widget-header .ui-state-default,
|
925 |
+
.ui-button,
|
926 |
+
|
927 |
+
/* We use html here because we need a greater specificity to make sure disabled
|
928 |
+
works properly when clicked or hovered */
|
929 |
+
html .ui-button.ui-state-disabled:hover,
|
930 |
+
html .ui-button.ui-state-disabled:active {
|
931 |
Â
border: 1px solid #c5dbec;
|
932 |
+
background: #dfeffc url("images/ui-bg_glass_85_dfeffc_1x400.png") 50% 50% repeat-x;
|
933 |
Â
font-weight: bold;
|
934 |
Â
color: #2e6e9e;
|
935 |
Â
}
|
936 |
Â
.ui-state-default a,
|
937 |
Â
.ui-state-default a:link,
|
938 |
+
.ui-state-default a:visited,
|
939 |
+
a.ui-button,
|
940 |
+
a:link.ui-button,
|
941 |
+
a:visited.ui-button,
|
942 |
+
.ui-button {
|
943 |
Â
color: #2e6e9e;
|
944 |
Â
text-decoration: none;
|
945 |
Â
}
|
948 |
Â
.ui-widget-header .ui-state-hover,
|
949 |
Â
.ui-state-focus,
|
950 |
Â
.ui-widget-content .ui-state-focus,
|
951 |
+
.ui-widget-header .ui-state-focus,
|
952 |
+
.ui-button:hover,
|
953 |
+
.ui-button:focus {
|
954 |
Â
border: 1px solid #79b7e7;
|
955 |
+
background: #d0e5f5 url("images/ui-bg_glass_75_d0e5f5_1x400.png") 50% 50% repeat-x;
|
956 |
Â
font-weight: bold;
|
957 |
Â
color: #1d5987;
|
958 |
Â
}
|
959 |
Â
.ui-state-hover a,
|
960 |
Â
.ui-state-hover a:hover,
|
961 |
Â
.ui-state-hover a:link,
|
962 |
+
.ui-state-hover a:visited,
|
963 |
+
.ui-state-focus a,
|
964 |
+
.ui-state-focus a:hover,
|
965 |
+
.ui-state-focus a:link,
|
966 |
+
.ui-state-focus a:visited,
|
967 |
+
a.ui-button:hover,
|
968 |
+
a.ui-button:focus {
|
969 |
Â
color: #1d5987;
|
970 |
Â
text-decoration: none;
|
971 |
Â
}
|
972 |
+
|
973 |
+
.ui-visual-focus {
|
974 |
+
box-shadow: 0 0 3px 1px rgb(94, 158, 214);
|
975 |
+
}
|
976 |
Â
.ui-state-active,
|
977 |
Â
.ui-widget-content .ui-state-active,
|
978 |
+
.ui-widget-header .ui-state-active,
|
979 |
+
a.ui-button:active,
|
980 |
+
.ui-button:active,
|
981 |
+
.ui-button.ui-state-active:hover {
|
982 |
Â
border: 1px solid #79b7e7;
|
983 |
+
background: #f5f8f9 url("images/ui-bg_inset-hard_100_f5f8f9_1x100.png") 50% 50% repeat-x;
|
984 |
Â
font-weight: bold;
|
985 |
Â
color: #e17009;
|
986 |
Â
}
|
987 |
+
.ui-icon-background,
|
988 |
+
.ui-state-active .ui-icon-background {
|
989 |
+
border: #79b7e7;
|
990 |
+
background-color: #e17009;
|
991 |
+
}
|
992 |
Â
.ui-state-active a,
|
993 |
Â
.ui-state-active a:link,
|
994 |
Â
.ui-state-active a:visited {
|
1002 |
Â
.ui-widget-content .ui-state-highlight,
|
1003 |
Â
.ui-widget-header .ui-state-highlight {
|
1004 |
Â
border: 1px solid #fad42e;
|
1005 |
+
background: #fbec88;
|
1006 |
Â
color: #363636;
|
1007 |
Â
}
|
1008 |
+
.ui-state-checked {
|
1009 |
+
border: 1px solid #fad42e;
|
1010 |
+
background: #fbec88;
|
1011 |
+
}
|
1012 |
Â
.ui-state-highlight a,
|
1013 |
Â
.ui-widget-content .ui-state-highlight a,
|
1014 |
Â
.ui-widget-header .ui-state-highlight a {
|
1018 |
Â
.ui-widget-content .ui-state-error,
|
1019 |
Â
.ui-widget-header .ui-state-error {
|
1020 |
Â
border: 1px solid #cd0a0a;
|
1021 |
+
background: #fef1ec url("images/ui-bg_glass_95_fef1ec_1x400.png") 50% 50% repeat-x;
|
1022 |
Â
color: #cd0a0a;
|
1023 |
Â
}
|
1024 |
Â
.ui-state-error a,
|
1040 |
Â
.ui-widget-content .ui-priority-secondary,
|
1041 |
Â
.ui-widget-header .ui-priority-secondary {
|
1042 |
Â
opacity: .7;
|
1043 |
+
filter:Alpha(Opacity=70); /* support: IE8 */
|
1044 |
Â
font-weight: normal;
|
1045 |
Â
}
|
1046 |
Â
.ui-state-disabled,
|
1047 |
Â
.ui-widget-content .ui-state-disabled,
|
1048 |
Â
.ui-widget-header .ui-state-disabled {
|
1049 |
Â
opacity: .35;
|
1050 |
+
filter:Alpha(Opacity=35); /* support: IE8 */
|
1051 |
Â
background-image: none;
|
1052 |
Â
}
|
1053 |
Â
.ui-state-disabled .ui-icon {
|
1054 |
+
filter:Alpha(Opacity=35); /* support: IE8 - See #6059 */
|
1055 |
Â
}
|
1056 |
Â
|
1057 |
Â
/* Icons
|
1064 |
Â
}
|
1065 |
Â
.ui-icon,
|
1066 |
Â
.ui-widget-content .ui-icon {
|
1067 |
+
background-image: url("images/ui-icons_469bdd_256x240.png");
|
1068 |
Â
}
|
1069 |
Â
.ui-widget-header .ui-icon {
|
1070 |
+
background-image: url("images/ui-icons_d8e7f3_256x240.png");
|
Â
|
|
Â
|
|
Â
|
|
1071 |
Â
}
|
1072 |
Â
.ui-state-hover .ui-icon,
|
1073 |
+
.ui-state-focus .ui-icon,
|
1074 |
+
.ui-button:hover .ui-icon,
|
1075 |
+
.ui-button:focus .ui-icon {
|
1076 |
+
background-image: url("images/ui-icons_217bc0_256x240.png");
|
1077 |
Â
}
|
1078 |
+
.ui-state-active .ui-icon,
|
1079 |
+
.ui-button:active .ui-icon {
|
1080 |
+
background-image: url("images/ui-icons_f9bd01_256x240.png");
|
1081 |
Â
}
|
1082 |
+
.ui-state-highlight .ui-icon,
|
1083 |
+
.ui-button .ui-state-highlight.ui-icon {
|
1084 |
+
background-image: url("images/ui-icons_2e83ff_256x240.png");
|
1085 |
Â
}
|
1086 |
Â
.ui-state-error .ui-icon,
|
1087 |
Â
.ui-state-error-text .ui-icon {
|
1088 |
+
background-image: url("images/ui-icons_cd0a0a_256x240.png");
|
1089 |
+
}
|
1090 |
+
.ui-button .ui-icon {
|
1091 |
+
background-image: url("images/ui-icons_6da8d5_256x240.png");
|
1092 |
Â
}
|
1093 |
Â
|
1094 |
Â
/* positioning */
|
1095 |
Â
.ui-icon-blank { background-position: 16px 16px; }
|
1096 |
+
.ui-icon-caret-1-n { background-position: 0 0; }
|
1097 |
+
.ui-icon-caret-1-ne { background-position: -16px 0; }
|
1098 |
+
.ui-icon-caret-1-e { background-position: -32px 0; }
|
1099 |
+
.ui-icon-caret-1-se { background-position: -48px 0; }
|
1100 |
+
.ui-icon-caret-1-s { background-position: -65px 0; }
|
1101 |
+
.ui-icon-caret-1-sw { background-position: -80px 0; }
|
1102 |
+
.ui-icon-caret-1-w { background-position: -96px 0; }
|
1103 |
+
.ui-icon-caret-1-nw { background-position: -112px 0; }
|
1104 |
+
.ui-icon-caret-2-n-s { background-position: -128px 0; }
|
1105 |
+
.ui-icon-caret-2-e-w { background-position: -144px 0; }
|
1106 |
Â
.ui-icon-triangle-1-n { background-position: 0 -16px; }
|
1107 |
Â
.ui-icon-triangle-1-ne { background-position: -16px -16px; }
|
1108 |
Â
.ui-icon-triangle-1-e { background-position: -32px -16px; }
|
1109 |
Â
.ui-icon-triangle-1-se { background-position: -48px -16px; }
|
1110 |
+
.ui-icon-triangle-1-s { background-position: -65px -16px; }
|
1111 |
Â
.ui-icon-triangle-1-sw { background-position: -80px -16px; }
|
1112 |
Â
.ui-icon-triangle-1-w { background-position: -96px -16px; }
|
1113 |
Â
.ui-icon-triangle-1-nw { background-position: -112px -16px; }
|
1117 |
Â
.ui-icon-arrow-1-ne { background-position: -16px -32px; }
|
1118 |
Â
.ui-icon-arrow-1-e { background-position: -32px -32px; }
|
1119 |
Â
.ui-icon-arrow-1-se { background-position: -48px -32px; }
|
1120 |
+
.ui-icon-arrow-1-s { background-position: -65px -32px; }
|
1121 |
Â
.ui-icon-arrow-1-sw { background-position: -80px -32px; }
|
1122 |
Â
.ui-icon-arrow-1-w { background-position: -96px -32px; }
|
1123 |
Â
.ui-icon-arrow-1-nw { background-position: -112px -32px; }
|
1129 |
Â
.ui-icon-arrowstop-1-e { background-position: -208px -32px; }
|
1130 |
Â
.ui-icon-arrowstop-1-s { background-position: -224px -32px; }
|
1131 |
Â
.ui-icon-arrowstop-1-w { background-position: -240px -32px; }
|
1132 |
+
.ui-icon-arrowthick-1-n { background-position: 1px -48px; }
|
1133 |
Â
.ui-icon-arrowthick-1-ne { background-position: -16px -48px; }
|
1134 |
Â
.ui-icon-arrowthick-1-e { background-position: -32px -48px; }
|
1135 |
Â
.ui-icon-arrowthick-1-se { background-position: -48px -48px; }
|
1301 |
Â
|
1302 |
Â
/* Overlays */
|
1303 |
Â
.ui-widget-overlay {
|
1304 |
+
background: #aaaaaa;
|
1305 |
Â
opacity: .3;
|
1306 |
+
filter: Alpha(Opacity=30); /* support: IE8 */
|
1307 |
Â
}
|
1308 |
Â
.ui-widget-shadow {
|
1309 |
+
-webkit-box-shadow: -8px -8px 8px #aaaaaa;
|
1310 |
+
box-shadow: -8px -8px 8px #aaaaaa;
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
1311 |
Â
}
|
@@ -0,0 +1,7 @@
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
1 |
+
/*! jQuery UI - v1.12.1 - 2016-09-14
|
2 |
+
* http://jqueryui.com
|
3 |
+
* Includes: core.css, accordion.css, autocomplete.css, menu.css, button.css, controlgroup.css, checkboxradio.css, datepicker.css, dialog.css, draggable.css, resizable.css, progressbar.css, selectable.css, selectmenu.css, slider.css, sortable.css, spinner.css, tabs.css, tooltip.css, theme.css
|
4 |
+
* To view and modify this theme, visit http://jqueryui.com/themeroller/?ffDefault=Lucida%20Grande%2CLucida%20Sans%2CArial%2Csans-serif&fwDefault=bold&fsDefault=1.1em&cornerRadius=5px&bgColorHeader=5c9ccc&bgTextureHeader=gloss_wave&bgImgOpacityHeader=55&borderColorHeader=4297d7&fcHeader=ffffff&iconColorHeader=d8e7f3&bgColorContent=fcfdfd&bgTextureContent=inset_hard&bgImgOpacityContent=100&borderColorContent=a6c9e2&fcContent=222222&iconColorContent=469bdd&bgColorDefault=dfeffc&bgTextureDefault=glass&bgImgOpacityDefault=85&borderColorDefault=c5dbec&fcDefault=2e6e9e&iconColorDefault=6da8d5&bgColorHover=d0e5f5&bgTextureHover=glass&bgImgOpacityHover=75&borderColorHover=79b7e7&fcHover=1d5987&iconColorHover=217bc0&bgColorActive=f5f8f9&bgTextureActive=inset_hard&bgImgOpacityActive=100&borderColorActive=79b7e7&fcActive=e17009&iconColorActive=f9bd01&bgColorHighlight=fbec88&bgTextureHighlight=flat&bgImgOpacityHighlight=55&borderColorHighlight=fad42e&fcHighlight=363636&iconColorHighlight=2e83ff&bgColorError=fef1ec&bgTextureError=glass&bgImgOpacityError=95&borderColorError=cd0a0a&fcError=cd0a0a&iconColorError=cd0a0a&bgColorOverlay=aaaaaa&bgTextureOverlay=flat&bgImgOpacityOverlay=0&opacityOverlay=30&bgColorShadow=aaaaaa&bgTextureShadow=flat&bgImgOpacityShadow=0&opacityShadow=30&thicknessShadow=8px&offsetTopShadow=-8px&offsetLeftShadow=-8px&cornerRadiusShadow=8px
|
5 |
+
* Copyright jQuery Foundation and other contributors; Licensed MIT */
|
6 |
+
|
7 |
+
.ui-helper-hidden{display:none}.ui-helper-hidden-accessible{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.ui-helper-reset{margin:0;padding:0;border:0;outline:0;line-height:1.3;text-decoration:none;font-size:100%;list-style:none}.ui-helper-clearfix:before,.ui-helper-clearfix:after{content:"";display:table;border-collapse:collapse}.ui-helper-clearfix:after{clear:both}.ui-helper-zfix{width:100%;height:100%;top:0;left:0;position:absolute;opacity:0;filter:Alpha(Opacity=0)}.ui-front{z-index:100}.ui-state-disabled{cursor:default!important;pointer-events:none}.ui-icon{display:inline-block;vertical-align:middle;margin-top:-.25em;position:relative;text-indent:-99999px;overflow:hidden;background-repeat:no-repeat}.ui-widget-icon-block{left:50%;margin-left:-8px;display:block}.ui-widget-overlay{position:fixed;top:0;left:0;width:100%;height:100%}.ui-accordion .ui-accordion-header{display:block;cursor:pointer;position:relative;margin:2px 0 0 0;padding:.5em .5em .5em .7em;font-size:100%}.ui-accordion .ui-accordion-content{padding:1em 2.2em;border-top:0;overflow:auto}.ui-autocomplete{position:absolute;top:0;left:0;cursor:default}.ui-menu{list-style:none;padding:0;margin:0;display:block;outline:0}.ui-menu .ui-menu{position:absolute}.ui-menu .ui-menu-item{margin:0;cursor:pointer;list-style-image:url("data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7")}.ui-menu .ui-menu-item-wrapper{position:relative;padding:3px 1em 3px .4em}.ui-menu .ui-menu-divider{margin:5px 0;height:0;font-size:0;line-height:0;border-width:1px 0 0 0}.ui-menu .ui-state-focus,.ui-menu .ui-state-active{margin:-1px}.ui-menu-icons{position:relative}.ui-menu-icons .ui-menu-item-wrapper{padding-left:2em}.ui-menu .ui-icon{position:absolute;top:0;bottom:0;left:.2em;margin:auto 0}.ui-menu .ui-menu-icon{left:auto;right:0}.ui-button{padding:.4em 1em;display:inline-block;position:relative;line-height:normal;margin-right:.1em;cursor:pointer;vertical-align:middle;text-align:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;overflow:visible}.ui-button,.ui-button:link,.ui-button:visited,.ui-button:hover,.ui-button:active{text-decoration:none}.ui-button-icon-only{width:2em;box-sizing:border-box;text-indent:-9999px;white-space:nowrap}input.ui-button.ui-button-icon-only{text-indent:0}.ui-button-icon-only .ui-icon{position:absolute;top:50%;left:50%;margin-top:-8px;margin-left:-8px}.ui-button.ui-icon-notext .ui-icon{padding:0;width:2.1em;height:2.1em;text-indent:-9999px;white-space:nowrap}input.ui-button.ui-icon-notext .ui-icon{width:auto;height:auto;text-indent:0;white-space:normal;padding:.4em 1em}input.ui-button::-moz-focus-inner,button.ui-button::-moz-focus-inner{border:0;padding:0}.ui-controlgroup{vertical-align:middle;display:inline-block}.ui-controlgroup > .ui-controlgroup-item{float:left;margin-left:0;margin-right:0}.ui-controlgroup > .ui-controlgroup-item:focus,.ui-controlgroup > .ui-controlgroup-item.ui-visual-focus{z-index:9999}.ui-controlgroup-vertical > .ui-controlgroup-item{display:block;float:none;width:100%;margin-top:0;margin-bottom:0;text-align:left}.ui-controlgroup-vertical .ui-controlgroup-item{box-sizing:border-box}.ui-controlgroup .ui-controlgroup-label{padding:.4em 1em}.ui-controlgroup .ui-controlgroup-label span{font-size:80%}.ui-controlgroup-horizontal .ui-controlgroup-label + .ui-controlgroup-item{border-left:none}.ui-controlgroup-vertical .ui-controlgroup-label + .ui-controlgroup-item{border-top:none}.ui-controlgroup-horizontal .ui-controlgroup-label.ui-widget-content{border-right:none}.ui-controlgroup-vertical .ui-controlgroup-label.ui-widget-content{border-bottom:none}.ui-controlgroup-vertical .ui-spinner-input{width:75%;width:calc( 100% - 2.4em )}.ui-controlgroup-vertical .ui-spinner .ui-spinner-up{border-top-style:solid}.ui-checkboxradio-label .ui-icon-background{box-shadow:inset 1px 1px 1px #ccc;border-radius:.12em;border:none}.ui-checkboxradio-radio-label .ui-icon-background{width:16px;height:16px;border-radius:1em;overflow:visible;border:none}.ui-checkboxradio-radio-label.ui-checkboxradio-checked .ui-icon,.ui-checkboxradio-radio-label.ui-checkboxradio-checked:hover .ui-icon{background-image:none;width:8px;height:8px;border-width:4px;border-style:solid}.ui-checkboxradio-disabled{pointer-events:none}.ui-datepicker{width:17em;padding:.2em .2em 0;display:none}.ui-datepicker .ui-datepicker-header{position:relative;padding:.2em 0}.ui-datepicker .ui-datepicker-prev,.ui-datepicker .ui-datepicker-next{position:absolute;top:2px;width:1.8em;height:1.8em}.ui-datepicker .ui-datepicker-prev-hover,.ui-datepicker .ui-datepicker-next-hover{top:1px}.ui-datepicker .ui-datepicker-prev{left:2px}.ui-datepicker .ui-datepicker-next{right:2px}.ui-datepicker .ui-datepicker-prev-hover{left:1px}.ui-datepicker .ui-datepicker-next-hover{right:1px}.ui-datepicker .ui-datepicker-prev span,.ui-datepicker .ui-datepicker-next span{display:block;position:absolute;left:50%;margin-left:-8px;top:50%;margin-top:-8px}.ui-datepicker .ui-datepicker-title{margin:0 2.3em;line-height:1.8em;text-align:center}.ui-datepicker .ui-datepicker-title select{font-size:1em;margin:1px 0}.ui-datepicker select.ui-datepicker-month,.ui-datepicker select.ui-datepicker-year{width:45%}.ui-datepicker table{width:100%;font-size:.9em;border-collapse:collapse;margin:0 0 .4em}.ui-datepicker th{padding:.7em .3em;text-align:center;font-weight:bold;border:0}.ui-datepicker td{border:0;padding:1px}.ui-datepicker td span,.ui-datepicker td a{display:block;padding:.2em;text-align:right;text-decoration:none}.ui-datepicker .ui-datepicker-buttonpane{background-image:none;margin:.7em 0 0 0;padding:0 .2em;border-left:0;border-right:0;border-bottom:0}.ui-datepicker .ui-datepicker-buttonpane button{float:right;margin:.5em .2em .4em;cursor:pointer;padding:.2em .6em .3em .6em;width:auto;overflow:visible}.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current{float:left}.ui-datepicker.ui-datepicker-multi{width:auto}.ui-datepicker-multi .ui-datepicker-group{float:left}.ui-datepicker-multi .ui-datepicker-group table{width:95%;margin:0 auto .4em}.ui-datepicker-multi-2 .ui-datepicker-group{width:50%}.ui-datepicker-multi-3 .ui-datepicker-group{width:33.3%}.ui-datepicker-multi-4 .ui-datepicker-group{width:25%}.ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header,.ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header{border-left-width:0}.ui-datepicker-multi .ui-datepicker-buttonpane{clear:left}.ui-datepicker-row-break{clear:both;width:100%;font-size:0}.ui-datepicker-rtl{direction:rtl}.ui-datepicker-rtl .ui-datepicker-prev{right:2px;left:auto}.ui-datepicker-rtl .ui-datepicker-next{left:2px;right:auto}.ui-datepicker-rtl .ui-datepicker-prev:hover{right:1px;left:auto}.ui-datepicker-rtl .ui-datepicker-next:hover{left:1px;right:auto}.ui-datepicker-rtl .ui-datepicker-buttonpane{clear:right}.ui-datepicker-rtl .ui-datepicker-buttonpane button{float:left}.ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current,.ui-datepicker-rtl .ui-datepicker-group{float:right}.ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header,.ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header{border-right-width:0;border-left-width:1px}.ui-datepicker .ui-icon{display:block;text-indent:-99999px;overflow:hidden;background-repeat:no-repeat;left:.5em;top:.3em}.ui-dialog{position:absolute;top:0;left:0;padding:.2em;outline:0}.ui-dialog .ui-dialog-titlebar{padding:.4em 1em;position:relative}.ui-dialog .ui-dialog-title{float:left;margin:.1em 0;white-space:nowrap;width:90%;overflow:hidden;text-overflow:ellipsis}.ui-dialog .ui-dialog-titlebar-close{position:absolute;right:.3em;top:50%;width:20px;margin:-10px 0 0 0;padding:1px;height:20px}.ui-dialog .ui-dialog-content{position:relative;border:0;padding:.5em 1em;background:none;overflow:auto}.ui-dialog .ui-dialog-buttonpane{text-align:left;border-width:1px 0 0 0;background-image:none;margin-top:.5em;padding:.3em 1em .5em .4em}.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset{float:right}.ui-dialog .ui-dialog-buttonpane button{margin:.5em .4em .5em 0;cursor:pointer}.ui-dialog .ui-resizable-n{height:2px;top:0}.ui-dialog .ui-resizable-e{width:2px;right:0}.ui-dialog .ui-resizable-s{height:2px;bottom:0}.ui-dialog .ui-resizable-w{width:2px;left:0}.ui-dialog .ui-resizable-se,.ui-dialog .ui-resizable-sw,.ui-dialog .ui-resizable-ne,.ui-dialog .ui-resizable-nw{width:7px;height:7px}.ui-dialog .ui-resizable-se{right:0;bottom:0}.ui-dialog .ui-resizable-sw{left:0;bottom:0}.ui-dialog .ui-resizable-ne{right:0;top:0}.ui-dialog .ui-resizable-nw{left:0;top:0}.ui-draggable .ui-dialog-titlebar{cursor:move}.ui-draggable-handle{-ms-touch-action:none;touch-action:none}.ui-resizable{position:relative}.ui-resizable-handle{position:absolute;font-size:0.1px;display:block;-ms-touch-action:none;touch-action:none}.ui-resizable-disabled .ui-resizable-handle,.ui-resizable-autohide .ui-resizable-handle{display:none}.ui-resizable-n{cursor:n-resize;height:7px;width:100%;top:-5px;left:0}.ui-resizable-s{cursor:s-resize;height:7px;width:100%;bottom:-5px;left:0}.ui-resizable-e{cursor:e-resize;width:7px;right:-5px;top:0;height:100%}.ui-resizable-w{cursor:w-resize;width:7px;left:-5px;top:0;height:100%}.ui-resizable-se{cursor:se-resize;width:12px;height:12px;right:1px;bottom:1px}.ui-resizable-sw{cursor:sw-resize;width:9px;height:9px;left:-5px;bottom:-5px}.ui-resizable-nw{cursor:nw-resize;width:9px;height:9px;left:-5px;top:-5px}.ui-resizable-ne{cursor:ne-resize;width:9px;height:9px;right:-5px;top:-5px}.ui-progressbar{height:2em;text-align:left;overflow:hidden}.ui-progressbar .ui-progressbar-value{margin:-1px;height:100%}.ui-progressbar .ui-progressbar-overlay{background:url("data:image/gif;base64,R0lGODlhKAAoAIABAAAAAP///yH/C05FVFNDQVBFMi4wAwEAAAAh+QQJAQABACwAAAAAKAAoAAACkYwNqXrdC52DS06a7MFZI+4FHBCKoDeWKXqymPqGqxvJrXZbMx7Ttc+w9XgU2FB3lOyQRWET2IFGiU9m1frDVpxZZc6bfHwv4c1YXP6k1Vdy292Fb6UkuvFtXpvWSzA+HycXJHUXiGYIiMg2R6W459gnWGfHNdjIqDWVqemH2ekpObkpOlppWUqZiqr6edqqWQAAIfkECQEAAQAsAAAAACgAKAAAApSMgZnGfaqcg1E2uuzDmmHUBR8Qil95hiPKqWn3aqtLsS18y7G1SzNeowWBENtQd+T1JktP05nzPTdJZlR6vUxNWWjV+vUWhWNkWFwxl9VpZRedYcflIOLafaa28XdsH/ynlcc1uPVDZxQIR0K25+cICCmoqCe5mGhZOfeYSUh5yJcJyrkZWWpaR8doJ2o4NYq62lAAACH5BAkBAAEALAAAAAAoACgAAAKVDI4Yy22ZnINRNqosw0Bv7i1gyHUkFj7oSaWlu3ovC8GxNso5fluz3qLVhBVeT/Lz7ZTHyxL5dDalQWPVOsQWtRnuwXaFTj9jVVh8pma9JjZ4zYSj5ZOyma7uuolffh+IR5aW97cHuBUXKGKXlKjn+DiHWMcYJah4N0lYCMlJOXipGRr5qdgoSTrqWSq6WFl2ypoaUAAAIfkECQEAAQAsAAAAACgAKAAAApaEb6HLgd/iO7FNWtcFWe+ufODGjRfoiJ2akShbueb0wtI50zm02pbvwfWEMWBQ1zKGlLIhskiEPm9R6vRXxV4ZzWT2yHOGpWMyorblKlNp8HmHEb/lCXjcW7bmtXP8Xt229OVWR1fod2eWqNfHuMjXCPkIGNileOiImVmCOEmoSfn3yXlJWmoHGhqp6ilYuWYpmTqKUgAAIfkECQEAAQAsAAAAACgAKAAAApiEH6kb58biQ3FNWtMFWW3eNVcojuFGfqnZqSebuS06w5V80/X02pKe8zFwP6EFWOT1lDFk8rGERh1TTNOocQ61Hm4Xm2VexUHpzjymViHrFbiELsefVrn6XKfnt2Q9G/+Xdie499XHd2g4h7ioOGhXGJboGAnXSBnoBwKYyfioubZJ2Hn0RuRZaflZOil56Zp6iioKSXpUAAAh+QQJAQABACwAAAAAKAAoAAACkoQRqRvnxuI7kU1a1UU5bd5tnSeOZXhmn5lWK3qNTWvRdQxP8qvaC+/yaYQzXO7BMvaUEmJRd3TsiMAgswmNYrSgZdYrTX6tSHGZO73ezuAw2uxuQ+BbeZfMxsexY35+/Qe4J1inV0g4x3WHuMhIl2jXOKT2Q+VU5fgoSUI52VfZyfkJGkha6jmY+aaYdirq+lQAACH5BAkBAAEALAAAAAAoACgAAAKWBIKpYe0L3YNKToqswUlvznigd4wiR4KhZrKt9Upqip61i9E3vMvxRdHlbEFiEXfk9YARYxOZZD6VQ2pUunBmtRXo1Lf8hMVVcNl8JafV38aM2/Fu5V16Bn63r6xt97j09+MXSFi4BniGFae3hzbH9+hYBzkpuUh5aZmHuanZOZgIuvbGiNeomCnaxxap2upaCZsq+1kAACH5BAkBAAEALAAAAAAoACgAAAKXjI8By5zf4kOxTVrXNVlv1X0d8IGZGKLnNpYtm8Lr9cqVeuOSvfOW79D9aDHizNhDJidFZhNydEahOaDH6nomtJjp1tutKoNWkvA6JqfRVLHU/QUfau9l2x7G54d1fl995xcIGAdXqMfBNadoYrhH+Mg2KBlpVpbluCiXmMnZ2Sh4GBqJ+ckIOqqJ6LmKSllZmsoq6wpQAAAh+QQJAQABACwAAAAAKAAoAAAClYx/oLvoxuJDkU1a1YUZbJ59nSd2ZXhWqbRa2/gF8Gu2DY3iqs7yrq+xBYEkYvFSM8aSSObE+ZgRl1BHFZNr7pRCavZ5BW2142hY3AN/zWtsmf12p9XxxFl2lpLn1rseztfXZjdIWIf2s5dItwjYKBgo9yg5pHgzJXTEeGlZuenpyPmpGQoKOWkYmSpaSnqKileI2FAAACH5BAkBAAEALAAAAAAoACgAAAKVjB+gu+jG4kORTVrVhRlsnn2dJ3ZleFaptFrb+CXmO9OozeL5VfP99HvAWhpiUdcwkpBH3825AwYdU8xTqlLGhtCosArKMpvfa1mMRae9VvWZfeB2XfPkeLmm18lUcBj+p5dnN8jXZ3YIGEhYuOUn45aoCDkp16hl5IjYJvjWKcnoGQpqyPlpOhr3aElaqrq56Bq7VAAAOw==");height:100%;filter:alpha(opacity=25);opacity:0.25}.ui-progressbar-indeterminate .ui-progressbar-value{background-image:none}.ui-selectable{-ms-touch-action:none;touch-action:none}.ui-selectable-helper{position:absolute;z-index:100;border:1px dotted black}.ui-selectmenu-menu{padding:0;margin:0;position:absolute;top:0;left:0;display:none}.ui-selectmenu-menu .ui-menu{overflow:auto;overflow-x:hidden;padding-bottom:1px}.ui-selectmenu-menu .ui-menu .ui-selectmenu-optgroup{font-size:1em;font-weight:bold;line-height:1.5;padding:2px 0.4em;margin:0.5em 0 0 0;height:auto;border:0}.ui-selectmenu-open{display:block}.ui-selectmenu-text{display:block;margin-right:20px;overflow:hidden;text-overflow:ellipsis}.ui-selectmenu-button.ui-button{text-align:left;white-space:nowrap;width:14em}.ui-selectmenu-icon.ui-icon{float:right;margin-top:0}.ui-slider{position:relative;text-align:left}.ui-slider .ui-slider-handle{position:absolute;z-index:2;width:1.2em;height:1.2em;cursor:default;-ms-touch-action:none;touch-action:none}.ui-slider .ui-slider-range{position:absolute;z-index:1;font-size:.7em;display:block;border:0;background-position:0 0}.ui-slider.ui-state-disabled .ui-slider-handle,.ui-slider.ui-state-disabled .ui-slider-range{filter:inherit}.ui-slider-horizontal{height:.8em}.ui-slider-horizontal .ui-slider-handle{top:-.3em;margin-left:-.6em}.ui-slider-horizontal .ui-slider-range{top:0;height:100%}.ui-slider-horizontal .ui-slider-range-min{left:0}.ui-slider-horizontal .ui-slider-range-max{right:0}.ui-slider-vertical{width:.8em;height:100px}.ui-slider-vertical .ui-slider-handle{left:-.3em;margin-left:0;margin-bottom:-.6em}.ui-slider-vertical .ui-slider-range{left:0;width:100%}.ui-slider-vertical .ui-slider-range-min{bottom:0}.ui-slider-vertical .ui-slider-range-max{top:0}.ui-sortable-handle{-ms-touch-action:none;touch-action:none}.ui-spinner{position:relative;display:inline-block;overflow:hidden;padding:0;vertical-align:middle}.ui-spinner-input{border:none;background:none;color:inherit;padding:.222em 0;margin:.2em 0;vertical-align:middle;margin-left:.4em;margin-right:2em}.ui-spinner-button{width:1.6em;height:50%;font-size:.5em;padding:0;margin:0;text-align:center;position:absolute;cursor:default;display:block;overflow:hidden;right:0}.ui-spinner a.ui-spinner-button{border-top-style:none;border-bottom-style:none;border-right-style:none}.ui-spinner-up{top:0}.ui-spinner-down{bottom:0}.ui-tabs{position:relative;padding:.2em}.ui-tabs .ui-tabs-nav{margin:0;padding:.2em .2em 0}.ui-tabs .ui-tabs-nav li{list-style:none;float:left;position:relative;top:0;margin:1px .2em 0 0;border-bottom-width:0;padding:0;white-space:nowrap}.ui-tabs .ui-tabs-nav .ui-tabs-anchor{float:left;padding:.5em 1em;text-decoration:none}.ui-tabs .ui-tabs-nav li.ui-tabs-active{margin-bottom:-1px;padding-bottom:1px}.ui-tabs .ui-tabs-nav li.ui-tabs-active .ui-tabs-anchor,.ui-tabs .ui-tabs-nav li.ui-state-disabled .ui-tabs-anchor,.ui-tabs .ui-tabs-nav li.ui-tabs-loading .ui-tabs-anchor{cursor:text}.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-active .ui-tabs-anchor{cursor:pointer}.ui-tabs .ui-tabs-panel{display:block;border-width:0;padding:1em 1.4em;background:none}.ui-tooltip{padding:8px;position:absolute;z-index:9999;max-width:300px}body .ui-tooltip{border-width:2px}.ui-widget{font-family:Lucida Grande,Lucida Sans,Arial,sans-serif;font-size:1.1em}.ui-widget .ui-widget{font-size:1em}.ui-widget input,.ui-widget select,.ui-widget textarea,.ui-widget button{font-family:Lucida Grande,Lucida Sans,Arial,sans-serif;font-size:1em}.ui-widget.ui-widget-content{border:1px solid #c5dbec}.ui-widget-content{border:1px solid #a6c9e2;background:#fcfdfd url("images/ui-bg_inset-hard_100_fcfdfd_1x100.png") 50% bottom repeat-x;color:#222}.ui-widget-content a{color:#222}.ui-widget-header{border:1px solid #4297d7;background:#5c9ccc url("images/ui-bg_gloss-wave_55_5c9ccc_500x100.png") 50% 50% repeat-x;color:#fff;font-weight:bold}.ui-widget-header a{color:#fff}.ui-state-default,.ui-widget-content .ui-state-default,.ui-widget-header .ui-state-default,.ui-button,html .ui-button.ui-state-disabled:hover,html .ui-button.ui-state-disabled:active{border:1px solid #c5dbec;background:#dfeffc url("images/ui-bg_glass_85_dfeffc_1x400.png") 50% 50% repeat-x;font-weight:bold;color:#2e6e9e}.ui-state-default a,.ui-state-default a:link,.ui-state-default a:visited,a.ui-button,a:link.ui-button,a:visited.ui-button,.ui-button{color:#2e6e9e;text-decoration:none}.ui-state-hover,.ui-widget-content .ui-state-hover,.ui-widget-header .ui-state-hover,.ui-state-focus,.ui-widget-content .ui-state-focus,.ui-widget-header .ui-state-focus,.ui-button:hover,.ui-button:focus{border:1px solid #79b7e7;background:#d0e5f5 url("images/ui-bg_glass_75_d0e5f5_1x400.png") 50% 50% repeat-x;font-weight:bold;color:#1d5987}.ui-state-hover a,.ui-state-hover a:hover,.ui-state-hover a:link,.ui-state-hover a:visited,.ui-state-focus a,.ui-state-focus a:hover,.ui-state-focus a:link,.ui-state-focus a:visited,a.ui-button:hover,a.ui-button:focus{color:#1d5987;text-decoration:none}.ui-visual-focus{box-shadow:0 0 3px 1px rgb(94,158,214)}.ui-state-active,.ui-widget-content .ui-state-active,.ui-widget-header .ui-state-active,a.ui-button:active,.ui-button:active,.ui-button.ui-state-active:hover{border:1px solid #79b7e7;background:#f5f8f9 url("images/ui-bg_inset-hard_100_f5f8f9_1x100.png") 50% 50% repeat-x;font-weight:bold;color:#e17009}.ui-icon-background,.ui-state-active .ui-icon-background{border:#79b7e7;background-color:#e17009}.ui-state-active a,.ui-state-active a:link,.ui-state-active a:visited{color:#e17009;text-decoration:none}.ui-state-highlight,.ui-widget-content .ui-state-highlight,.ui-widget-header .ui-state-highlight{border:1px solid #fad42e;background:#fbec88;color:#363636}.ui-state-checked{border:1px solid #fad42e;background:#fbec88}.ui-state-highlight a,.ui-widget-content .ui-state-highlight a,.ui-widget-header .ui-state-highlight a{color:#363636}.ui-state-error,.ui-widget-content .ui-state-error,.ui-widget-header .ui-state-error{border:1px solid #cd0a0a;background:#fef1ec url("images/ui-bg_glass_95_fef1ec_1x400.png") 50% 50% repeat-x;color:#cd0a0a}.ui-state-error a,.ui-widget-content .ui-state-error a,.ui-widget-header .ui-state-error a{color:#cd0a0a}.ui-state-error-text,.ui-widget-content .ui-state-error-text,.ui-widget-header .ui-state-error-text{color:#cd0a0a}.ui-priority-primary,.ui-widget-content .ui-priority-primary,.ui-widget-header .ui-priority-primary{font-weight:bold}.ui-priority-secondary,.ui-widget-content .ui-priority-secondary,.ui-widget-header .ui-priority-secondary{opacity:.7;filter:Alpha(Opacity=70);font-weight:normal}.ui-state-disabled,.ui-widget-content .ui-state-disabled,.ui-widget-header .ui-state-disabled{opacity:.35;filter:Alpha(Opacity=35);background-image:none}.ui-state-disabled .ui-icon{filter:Alpha(Opacity=35)}.ui-icon{width:16px;height:16px}.ui-icon,.ui-widget-content .ui-icon{background-image:url("images/ui-icons_469bdd_256x240.png")}.ui-widget-header .ui-icon{background-image:url("images/ui-icons_d8e7f3_256x240.png")}.ui-state-hover .ui-icon,.ui-state-focus .ui-icon,.ui-button:hover .ui-icon,.ui-button:focus .ui-icon{background-image:url("images/ui-icons_217bc0_256x240.png")}.ui-state-active .ui-icon,.ui-button:active .ui-icon{background-image:url("images/ui-icons_f9bd01_256x240.png")}.ui-state-highlight .ui-icon,.ui-button .ui-state-highlight.ui-icon{background-image:url("images/ui-icons_2e83ff_256x240.png")}.ui-state-error .ui-icon,.ui-state-error-text .ui-icon{background-image:url("images/ui-icons_cd0a0a_256x240.png")}.ui-button .ui-icon{background-image:url("images/ui-icons_6da8d5_256x240.png")}.ui-icon-blank{background-position:16px 16px}.ui-icon-caret-1-n{background-position:0 0}.ui-icon-caret-1-ne{background-position:-16px 0}.ui-icon-caret-1-e{background-position:-32px 0}.ui-icon-caret-1-se{background-position:-48px 0}.ui-icon-caret-1-s{background-position:-65px 0}.ui-icon-caret-1-sw{background-position:-80px 0}.ui-icon-caret-1-w{background-position:-96px 0}.ui-icon-caret-1-nw{background-position:-112px 0}.ui-icon-caret-2-n-s{background-position:-128px 0}.ui-icon-caret-2-e-w{background-position:-144px 0}.ui-icon-triangle-1-n{background-position:0 -16px}.ui-icon-triangle-1-ne{background-position:-16px -16px}.ui-icon-triangle-1-e{background-position:-32px -16px}.ui-icon-triangle-1-se{background-position:-48px -16px}.ui-icon-triangle-1-s{background-position:-65px -16px}.ui-icon-triangle-1-sw{background-position:-80px -16px}.ui-icon-triangle-1-w{background-position:-96px -16px}.ui-icon-triangle-1-nw{background-position:-112px -16px}.ui-icon-triangle-2-n-s{background-position:-128px -16px}.ui-icon-triangle-2-e-w{background-position:-144px -16px}.ui-icon-arrow-1-n{background-position:0 -32px}.ui-icon-arrow-1-ne{background-position:-16px -32px}.ui-icon-arrow-1-e{background-position:-32px -32px}.ui-icon-arrow-1-se{background-position:-48px -32px}.ui-icon-arrow-1-s{background-position:-65px -32px}.ui-icon-arrow-1-sw{background-position:-80px -32px}.ui-icon-arrow-1-w{background-position:-96px -32px}.ui-icon-arrow-1-nw{background-position:-112px -32px}.ui-icon-arrow-2-n-s{background-position:-128px -32px}.ui-icon-arrow-2-ne-sw{background-position:-144px -32px}.ui-icon-arrow-2-e-w{background-position:-160px -32px}.ui-icon-arrow-2-se-nw{background-position:-176px -32px}.ui-icon-arrowstop-1-n{background-position:-192px -32px}.ui-icon-arrowstop-1-e{background-position:-208px -32px}.ui-icon-arrowstop-1-s{background-position:-224px -32px}.ui-icon-arrowstop-1-w{background-position:-240px -32px}.ui-icon-arrowthick-1-n{background-position:1px -48px}.ui-icon-arrowthick-1-ne{background-position:-16px -48px}.ui-icon-arrowthick-1-e{background-position:-32px -48px}.ui-icon-arrowthick-1-se{background-position:-48px -48px}.ui-icon-arrowthick-1-s{background-position:-64px -48px}.ui-icon-arrowthick-1-sw{background-position:-80px -48px}.ui-icon-arrowthick-1-w{background-position:-96px -48px}.ui-icon-arrowthick-1-nw{background-position:-112px -48px}.ui-icon-arrowthick-2-n-s{background-position:-128px -48px}.ui-icon-arrowthick-2-ne-sw{background-position:-144px -48px}.ui-icon-arrowthick-2-e-w{background-position:-160px -48px}.ui-icon-arrowthick-2-se-nw{background-position:-176px -48px}.ui-icon-arrowthickstop-1-n{background-position:-192px -48px}.ui-icon-arrowthickstop-1-e{background-position:-208px -48px}.ui-icon-arrowthickstop-1-s{background-position:-224px -48px}.ui-icon-arrowthickstop-1-w{background-position:-240px -48px}.ui-icon-arrowreturnthick-1-w{background-position:0 -64px}.ui-icon-arrowreturnthick-1-n{background-position:-16px -64px}.ui-icon-arrowreturnthick-1-e{background-position:-32px -64px}.ui-icon-arrowreturnthick-1-s{background-position:-48px -64px}.ui-icon-arrowreturn-1-w{background-position:-64px -64px}.ui-icon-arrowreturn-1-n{background-position:-80px -64px}.ui-icon-arrowreturn-1-e{background-position:-96px -64px}.ui-icon-arrowreturn-1-s{background-position:-112px -64px}.ui-icon-arrowrefresh-1-w{background-position:-128px -64px}.ui-icon-arrowrefresh-1-n{background-position:-144px -64px}.ui-icon-arrowrefresh-1-e{background-position:-160px -64px}.ui-icon-arrowrefresh-1-s{background-position:-176px -64px}.ui-icon-arrow-4{background-position:0 -80px}.ui-icon-arrow-4-diag{background-position:-16px -80px}.ui-icon-extlink{background-position:-32px -80px}.ui-icon-newwin{background-position:-48px -80px}.ui-icon-refresh{background-position:-64px -80px}.ui-icon-shuffle{background-position:-80px -80px}.ui-icon-transfer-e-w{background-position:-96px -80px}.ui-icon-transferthick-e-w{background-position:-112px -80px}.ui-icon-folder-collapsed{background-position:0 -96px}.ui-icon-folder-open{background-position:-16px -96px}.ui-icon-document{background-position:-32px -96px}.ui-icon-document-b{background-position:-48px -96px}.ui-icon-note{background-position:-64px -96px}.ui-icon-mail-closed{background-position:-80px -96px}.ui-icon-mail-open{background-position:-96px -96px}.ui-icon-suitcase{background-position:-112px -96px}.ui-icon-comment{background-position:-128px -96px}.ui-icon-person{background-position:-144px -96px}.ui-icon-print{background-position:-160px -96px}.ui-icon-trash{background-position:-176px -96px}.ui-icon-locked{background-position:-192px -96px}.ui-icon-unlocked{background-position:-208px -96px}.ui-icon-bookmark{background-position:-224px -96px}.ui-icon-tag{background-position:-240px -96px}.ui-icon-home{background-position:0 -112px}.ui-icon-flag{background-position:-16px -112px}.ui-icon-calendar{background-position:-32px -112px}.ui-icon-cart{background-position:-48px -112px}.ui-icon-pencil{background-position:-64px -112px}.ui-icon-clock{background-position:-80px -112px}.ui-icon-disk{background-position:-96px -112px}.ui-icon-calculator{background-position:-112px -112px}.ui-icon-zoomin{background-position:-128px -112px}.ui-icon-zoomout{background-position:-144px -112px}.ui-icon-search{background-position:-160px -112px}.ui-icon-wrench{background-position:-176px -112px}.ui-icon-gear{background-position:-192px -112px}.ui-icon-heart{background-position:-208px -112px}.ui-icon-star{background-position:-224px -112px}.ui-icon-link{background-position:-240px -112px}.ui-icon-cancel{background-position:0 -128px}.ui-icon-plus{background-position:-16px -128px}.ui-icon-plusthick{background-position:-32px -128px}.ui-icon-minus{background-position:-48px -128px}.ui-icon-minusthick{background-position:-64px -128px}.ui-icon-close{background-position:-80px -128px}.ui-icon-closethick{background-position:-96px -128px}.ui-icon-key{background-position:-112px -128px}.ui-icon-lightbulb{background-position:-128px -128px}.ui-icon-scissors{background-position:-144px -128px}.ui-icon-clipboard{background-position:-160px -128px}.ui-icon-copy{background-position:-176px -128px}.ui-icon-contact{background-position:-192px -128px}.ui-icon-image{background-position:-208px -128px}.ui-icon-video{background-position:-224px -128px}.ui-icon-script{background-position:-240px -128px}.ui-icon-alert{background-position:0 -144px}.ui-icon-info{background-position:-16px -144px}.ui-icon-notice{background-position:-32px -144px}.ui-icon-help{background-position:-48px -144px}.ui-icon-check{background-position:-64px -144px}.ui-icon-bullet{background-position:-80px -144px}.ui-icon-radio-on{background-position:-96px -144px}.ui-icon-radio-off{background-position:-112px -144px}.ui-icon-pin-w{background-position:-128px -144px}.ui-icon-pin-s{background-position:-144px -144px}.ui-icon-play{background-position:0 -160px}.ui-icon-pause{background-position:-16px -160px}.ui-icon-seek-next{background-position:-32px -160px}.ui-icon-seek-prev{background-position:-48px -160px}.ui-icon-seek-end{background-position:-64px -160px}.ui-icon-seek-start{background-position:-80px -160px}.ui-icon-seek-first{background-position:-80px -160px}.ui-icon-stop{background-position:-96px -160px}.ui-icon-eject{background-position:-112px -160px}.ui-icon-volume-off{background-position:-128px -160px}.ui-icon-volume-on{background-position:-144px -160px}.ui-icon-power{background-position:0 -176px}.ui-icon-signal-diag{background-position:-16px -176px}.ui-icon-signal{background-position:-32px -176px}.ui-icon-battery-0{background-position:-48px -176px}.ui-icon-battery-1{background-position:-64px -176px}.ui-icon-battery-2{background-position:-80px -176px}.ui-icon-battery-3{background-position:-96px -176px}.ui-icon-circle-plus{background-position:0 -192px}.ui-icon-circle-minus{background-position:-16px -192px}.ui-icon-circle-close{background-position:-32px -192px}.ui-icon-circle-triangle-e{background-position:-48px -192px}.ui-icon-circle-triangle-s{background-position:-64px -192px}.ui-icon-circle-triangle-w{background-position:-80px -192px}.ui-icon-circle-triangle-n{background-position:-96px -192px}.ui-icon-circle-arrow-e{background-position:-112px -192px}.ui-icon-circle-arrow-s{background-position:-128px -192px}.ui-icon-circle-arrow-w{background-position:-144px -192px}.ui-icon-circle-arrow-n{background-position:-160px -192px}.ui-icon-circle-zoomin{background-position:-176px -192px}.ui-icon-circle-zoomout{background-position:-192px -192px}.ui-icon-circle-check{background-position:-208px -192px}.ui-icon-circlesmall-plus{background-position:0 -208px}.ui-icon-circlesmall-minus{background-position:-16px -208px}.ui-icon-circlesmall-close{background-position:-32px -208px}.ui-icon-squaresmall-plus{background-position:-48px -208px}.ui-icon-squaresmall-minus{background-position:-64px -208px}.ui-icon-squaresmall-close{background-position:-80px -208px}.ui-icon-grip-dotted-vertical{background-position:0 -224px}.ui-icon-grip-dotted-horizontal{background-position:-16px -224px}.ui-icon-grip-solid-vertical{background-position:-32px -224px}.ui-icon-grip-solid-horizontal{background-position:-48px -224px}.ui-icon-gripsmall-diagonal-se{background-position:-64px -224px}.ui-icon-grip-diagonal-se{background-position:-80px -224px}.ui-corner-all,.ui-corner-top,.ui-corner-left,.ui-corner-tl{border-top-left-radius:5px}.ui-corner-all,.ui-corner-top,.ui-corner-right,.ui-corner-tr{border-top-right-radius:5px}.ui-corner-all,.ui-corner-bottom,.ui-corner-left,.ui-corner-bl{border-bottom-left-radius:5px}.ui-corner-all,.ui-corner-bottom,.ui-corner-right,.ui-corner-br{border-bottom-right-radius:5px}.ui-widget-overlay{background:#aaa;opacity:.3;filter:Alpha(Opacity=30)}.ui-widget-shadow{-webkit-box-shadow:-8px -8px 8px #aaa;box-shadow:-8px -8px 8px #aaa}
|
@@ -1292,10 +1292,13 @@ h3.addon_category_name {
|
|
1292 |
Â
|
1293 |
Â
.qsm_tab_content input[type="text"],
|
1294 |
Â
.qsm_tab_content input[type="number"],
|
Â
|
|
1295 |
Â
.qsm_global_settings input[type="text"],
|
1296 |
Â
.qsm_global_settings input[type="number"],
|
1297 |
Â
.qsm_global_settings input[type="email"],
|
Â
|
|
1298 |
Â
.qsm-addon-setting-wrap input[type="email"],
|
Â
|
|
1299 |
Â
.qsm-addon-setting-wrap input[type="text"],
|
1300 |
Â
.qsm-addon-setting-wrap input[type="number"] {
|
1301 |
Â
background: #ffffff none repeat scroll 0 0;
|
@@ -1606,6 +1609,7 @@ td.scheduled_time_start {
|
|
1606 |
Â
display: inline-block;
|
1607 |
Â
position: relative;
|
1608 |
Â
text-align: center;
|
Â
|
|
1609 |
Â
}
|
1610 |
Â
|
1611 |
Â
#show-all-variable-content .popup-template-span-wrap {
|
@@ -1613,6 +1617,7 @@ td.scheduled_time_start {
|
|
1613 |
Â
margin-left: 3%;
|
1614 |
Â
width: 30%;
|
1615 |
Â
display: inline-block;
|
Â
|
|
1616 |
Â
}
|
1617 |
Â
|
1618 |
Â
#show-all-variable-content .popup-template-span-wrap:nth-child(3n + 3) .qsm-text-template-span .qsm-tooltips-icon .qsm-tooltips {
|
@@ -1623,19 +1628,16 @@ td.scheduled_time_start {
|
|
1623 |
Â
right: 93%;
|
1624 |
Â
}
|
1625 |
Â
|
1626 |
-
#show-all-variable-content .qsm-text-template-span .qsm-tooltips-icon {
|
1627 |
-
margin-right: 5px;
|
1628 |
-
}
|
1629 |
-
|
1630 |
-
.qsm-text-template-span button {
|
1631 |
-
border-color: #ccc !important;
|
1632 |
-
}
|
1633 |
-
|
1634 |
Â
.qsm-text-template-span .qsm-tooltips-icon {
|
1635 |
Â
vertical-align: middle;
|
1636 |
-
line-height:
|
1637 |
-
|
1638 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
1639 |
Â
}
|
1640 |
Â
|
1641 |
Â
.qsm-text-template-span .qsm-tooltips-icon .qsm-tooltips {
|
@@ -2103,4 +2105,71 @@ td.scheduled_time_start {
|
|
2103 |
Â
.result-page-title {
|
2104 |
Â
margin-bottom: 10px;
|
2105 |
Â
}
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
2106 |
Â
}
|
1292 |
Â
|
1293 |
Â
.qsm_tab_content input[type="text"],
|
1294 |
Â
.qsm_tab_content input[type="number"],
|
1295 |
+
.qsm_tab_content input[type="url"],
|
1296 |
Â
.qsm_global_settings input[type="text"],
|
1297 |
Â
.qsm_global_settings input[type="number"],
|
1298 |
Â
.qsm_global_settings input[type="email"],
|
1299 |
+
.qsm_global_settings input[type="url"],
|
1300 |
Â
.qsm-addon-setting-wrap input[type="email"],
|
1301 |
+
.qsm-addon-setting-wrap input[type="url"],
|
1302 |
Â
.qsm-addon-setting-wrap input[type="text"],
|
1303 |
Â
.qsm-addon-setting-wrap input[type="number"] {
|
1304 |
Â
background: #ffffff none repeat scroll 0 0;
|
1609 |
Â
display: inline-block;
|
1610 |
Â
position: relative;
|
1611 |
Â
text-align: center;
|
1612 |
+
padding: 0 5px;
|
1613 |
Â
}
|
1614 |
Â
|
1615 |
Â
#show-all-variable-content .popup-template-span-wrap {
|
1617 |
Â
margin-left: 3%;
|
1618 |
Â
width: 30%;
|
1619 |
Â
display: inline-block;
|
1620 |
+
border: 1px solid #def0ff;
|
1621 |
Â
}
|
1622 |
Â
|
1623 |
Â
#show-all-variable-content .popup-template-span-wrap:nth-child(3n + 3) .qsm-text-template-span .qsm-tooltips-icon .qsm-tooltips {
|
1628 |
Â
right: 93%;
|
1629 |
Â
}
|
1630 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
1631 |
Â
.qsm-text-template-span .qsm-tooltips-icon {
|
1632 |
Â
vertical-align: middle;
|
1633 |
+
line-height: 10px;
|
1634 |
+
width: unset;
|
1635 |
+
height: 12px;
|
1636 |
+
color: #2271b1;
|
1637 |
+
border: 0.5px solid #2271b1;
|
1638 |
+
border-radius: 50%;
|
1639 |
+
font-size: 10px;
|
1640 |
+
display: none;
|
1641 |
Â
}
|
1642 |
Â
|
1643 |
Â
.qsm-text-template-span .qsm-tooltips-icon .qsm-tooltips {
|
2105 |
Â
.result-page-title {
|
2106 |
Â
margin-bottom: 10px;
|
2107 |
Â
}
|
2108 |
+
}
|
2109 |
+
|
2110 |
+
.qsm-text-template-span .button{
|
2111 |
+
padding: 0px;
|
2112 |
+
border: none;
|
2113 |
+
min-height: unset;
|
2114 |
+
font-size: 12px;
|
2115 |
+
background: unset;
|
2116 |
+
}
|
2117 |
+
|
2118 |
+
.qsm-text-template-span .template-variable:hover {
|
2119 |
+
background: unset;
|
2120 |
+
}
|
2121 |
+
|
2122 |
+
|
2123 |
+
.qsm-text-template-span .click-to-copy{
|
2124 |
+
display: none;
|
2125 |
+
position: absolute;
|
2126 |
+
width: calc(100% - 25px);
|
2127 |
+
text-align: center;
|
2128 |
+
left: 0;
|
2129 |
+
}
|
2130 |
+
|
2131 |
+
|
2132 |
+
.qsm-text-template-span:hover .click-to-copy{
|
2133 |
+
display: inline-block;
|
2134 |
+
background: #def0ff;
|
2135 |
+
}
|
2136 |
+
|
2137 |
+
|
2138 |
+
.qsm-text-template-span .qsm-tooltips-icon:before{
|
2139 |
+
content:"\003F";
|
2140 |
+
padding: 0px 3px;
|
2141 |
+
vertical-align: top;
|
2142 |
+
}
|
2143 |
+
|
2144 |
+
.qsm-text-template-span:hover .qsm-tooltips-icon{
|
2145 |
+
display: inline-block;
|
2146 |
+
|
2147 |
+
}
|
2148 |
+
|
2149 |
+
.qsm-text-template-span:hover .temp-var-seperator{
|
2150 |
+
position: absolute;
|
2151 |
+
display: flex;
|
2152 |
+
right: 0;
|
2153 |
+
top: 0;
|
2154 |
+
align-items: center;
|
2155 |
+
justify-content: center;
|
2156 |
+
height: 100%;
|
2157 |
+
width:25px;
|
2158 |
+
z-index:99;
|
2159 |
+
border-left: 1px dashed #a1c1d8;
|
2160 |
+
background: #def0ff;
|
2161 |
+
}
|
2162 |
+
|
2163 |
+
#show-all-variable-content .popup-template-span-wrap:hover{
|
2164 |
+
background: #def0ff;
|
2165 |
+
border-color: #a1c1d8 ;
|
2166 |
+
border-style: dashed;
|
2167 |
+
}
|
2168 |
+
|
2169 |
+
.popup-template-span-wrap .qsm-text-template-span .popup-copied-des span.dashicons{
|
2170 |
+
line-height: 1;
|
2171 |
+
}
|
2172 |
+
|
2173 |
+
#result_page_fb_image {
|
2174 |
+
width: 25em;
|
2175 |
Â
}
|
@@ -1306,11 +1306,14 @@ h3.addon_category_name {
|
|
1306 |
Â
|
1307 |
Â
.qsm_tab_content input[type="text"],
|
1308 |
Â
.qsm_tab_content input[type="number"],
|
Â
|
|
1309 |
Â
.qsm_global_settings input[type="text"],
|
1310 |
Â
.qsm_global_settings input[type="number"],
|
1311 |
Â
.qsm_global_settings input[type="email"],
|
Â
|
|
1312 |
Â
.qsm-addon-setting-wrap input[type="email"],
|
1313 |
Â
.qsm-addon-setting-wrap input[type="text"],
|
Â
|
|
1314 |
Â
.qsm-addon-setting-wrap input[type="number"] {
|
1315 |
Â
background: #ffffff none repeat scroll 0 0;
|
1316 |
Â
border: 1px solid #dddddd;
|
@@ -1620,6 +1623,7 @@ td.scheduled_time_start {
|
|
1620 |
Â
display: inline-block;
|
1621 |
Â
position: relative;
|
1622 |
Â
text-align: center;
|
Â
|
|
1623 |
Â
}
|
1624 |
Â
|
1625 |
Â
#show-all-variable-content .popup-template-span-wrap {
|
@@ -1627,6 +1631,7 @@ td.scheduled_time_start {
|
|
1627 |
Â
margin-right: 5px;
|
1628 |
Â
width: auto;
|
1629 |
Â
display: inline-block;
|
Â
|
|
1630 |
Â
}
|
1631 |
Â
|
1632 |
Â
#show-all-variable-content .popup-template-span-wrap:nth-child(3n + 3) .qsm-text-template-span .qsm-tooltips-icon .qsm-tooltips {
|
@@ -1637,19 +1642,15 @@ td.scheduled_time_start {
|
|
1637 |
Â
left: 93%;
|
1638 |
Â
}
|
1639 |
Â
|
1640 |
-
#show-all-variable-content .qsm-text-template-span .qsm-tooltips-icon {
|
1641 |
-
margin-left: 5px;
|
1642 |
-
}
|
1643 |
-
|
1644 |
-
.qsm-text-template-span button {
|
1645 |
-
border-color: #ccc !important;
|
1646 |
-
}
|
1647 |
-
|
1648 |
Â
.qsm-text-template-span .qsm-tooltips-icon {
|
1649 |
Â
vertical-align: middle;
|
1650 |
-
|
1651 |
-
|
1652 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
1653 |
Â
}
|
1654 |
Â
|
1655 |
Â
.qsm-text-template-span .qsm-tooltips-icon .qsm-tooltips {
|
@@ -2257,4 +2258,75 @@ td.scheduled_time_start {
|
|
2257 |
Â
margin-bottom: 10px;
|
2258 |
Â
}
|
2259 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
2260 |
Â
}
|
1306 |
Â
|
1307 |
Â
.qsm_tab_content input[type="text"],
|
1308 |
Â
.qsm_tab_content input[type="number"],
|
1309 |
+
.qsm_tab_content input[type="url"],
|
1310 |
Â
.qsm_global_settings input[type="text"],
|
1311 |
Â
.qsm_global_settings input[type="number"],
|
1312 |
Â
.qsm_global_settings input[type="email"],
|
1313 |
+
.qsm_global_settings input[type="url"],
|
1314 |
Â
.qsm-addon-setting-wrap input[type="email"],
|
1315 |
Â
.qsm-addon-setting-wrap input[type="text"],
|
1316 |
+
.qsm-addon-setting-wrap input[type="url"],
|
1317 |
Â
.qsm-addon-setting-wrap input[type="number"] {
|
1318 |
Â
background: #ffffff none repeat scroll 0 0;
|
1319 |
Â
border: 1px solid #dddddd;
|
1623 |
Â
display: inline-block;
|
1624 |
Â
position: relative;
|
1625 |
Â
text-align: center;
|
1626 |
+
padding: 0 5px;
|
1627 |
Â
}
|
1628 |
Â
|
1629 |
Â
#show-all-variable-content .popup-template-span-wrap {
|
1631 |
Â
margin-right: 5px;
|
1632 |
Â
width: auto;
|
1633 |
Â
display: inline-block;
|
1634 |
+
border: 1px solid #def0ff;
|
1635 |
Â
}
|
1636 |
Â
|
1637 |
Â
#show-all-variable-content .popup-template-span-wrap:nth-child(3n + 3) .qsm-text-template-span .qsm-tooltips-icon .qsm-tooltips {
|
1642 |
Â
left: 93%;
|
1643 |
Â
}
|
1644 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
1645 |
Â
.qsm-text-template-span .qsm-tooltips-icon {
|
1646 |
Â
vertical-align: middle;
|
1647 |
+
width: unset;
|
1648 |
+
height: 10px;
|
1649 |
+
color: #2271b1;
|
1650 |
+
border: 0.5px solid #2271b1;
|
1651 |
+
border-radius: 50%;
|
1652 |
+
font-size: 8px;
|
1653 |
+
display: none;
|
1654 |
Â
}
|
1655 |
Â
|
1656 |
Â
.qsm-text-template-span .qsm-tooltips-icon .qsm-tooltips {
|
2258 |
Â
margin-bottom: 10px;
|
2259 |
Â
}
|
2260 |
Â
|
2261 |
+
}
|
2262 |
+
|
2263 |
+
.qsm-text-template-span{
|
2264 |
+
min-width: 100px;
|
2265 |
+
|
2266 |
+
}
|
2267 |
+
|
2268 |
+
.qsm-text-template-span .button{
|
2269 |
+
padding: 0px;
|
2270 |
+
border: none;
|
2271 |
+
min-height: unset;
|
2272 |
+
font-size: 12px;
|
2273 |
+
background: unset;
|
2274 |
+
}
|
2275 |
+
|
2276 |
+
.qsm-text-template-span .template-variable:hover {
|
2277 |
+
background: unset;
|
2278 |
+
}
|
2279 |
+
|
2280 |
+
.qsm-text-template-span .click-to-copy{
|
2281 |
+
display: none;
|
2282 |
+
position: absolute;
|
2283 |
+
width: calc(100% - 25px);
|
2284 |
+
text-align: center;
|
2285 |
+
left: 0;
|
2286 |
+
}
|
2287 |
+
|
2288 |
+
|
2289 |
+
.qsm-text-template-span:hover .click-to-copy{
|
2290 |
+
display: inline-block;
|
2291 |
+
background: #def0ff;
|
2292 |
+
}
|
2293 |
+
|
2294 |
+
|
2295 |
+
.qsm-text-template-span .qsm-tooltips-icon:before{
|
2296 |
+
content:"\003F";
|
2297 |
+
padding: 0px 3px;
|
2298 |
+
vertical-align: top;
|
2299 |
+
}
|
2300 |
+
|
2301 |
+
.qsm-text-template-span:hover .qsm-tooltips-icon{
|
2302 |
+
display: inline-block;
|
2303 |
+
|
2304 |
+
}
|
2305 |
+
|
2306 |
+
.qsm-text-template-span:hover .temp-var-seperator{
|
2307 |
+
position: absolute;
|
2308 |
+
display: flex;
|
2309 |
+
right: 0;
|
2310 |
+
top: 0;
|
2311 |
+
align-items: center;
|
2312 |
+
justify-content: center;
|
2313 |
+
height: 100%;
|
2314 |
+
width:25px;
|
2315 |
+
z-index:99;
|
2316 |
+
border-left: 1px dashed #a1c1d8;
|
2317 |
+
background: #def0ff;
|
2318 |
+
}
|
2319 |
+
|
2320 |
+
#show-all-variable-content .popup-template-span-wrap:hover{
|
2321 |
+
background: #def0ff;
|
2322 |
+
border-color: #a1c1d8 ;
|
2323 |
+
border-style: dashed;
|
2324 |
+
}
|
2325 |
+
|
2326 |
+
.popup-template-span-wrap .qsm-text-template-span .popup-copied-des span.dashicons{
|
2327 |
+
line-height: 1;
|
2328 |
+
}
|
2329 |
+
|
2330 |
+
#result_page_fb_image {
|
2331 |
+
width: 25em;
|
2332 |
Â
}
|
@@ -0,0 +1 @@
|
|
Â
|
1 |
+
.menu{background:#fff;border:1px solid #c0ccda;border-radius:3px;list-style:none;margin:0;max-width:100vw;min-width:100%;padding:calc(.5rem - 1px) 0}.menu.collapsible__content{position:absolute;top:100%;z-index:1}.menu.collapsible__content:not(.collapsible__content_toggled){display:none}.menu__content,.menu__heading{padding:0;margin:1rem}.menu__content:first-child,.menu__heading:first-child{margin-top:.5rem}.menu__content:last-child,.menu__heading:last-child{margin-bottom:.5rem}.menu__heading{font-size:1.31950791rem;line-height:1.5rem;font-weight:400}.menu__content{list-style:none}.menu__icon{color:#8492a6;height:1em;vertical-align:-.125em;width:1em;margin-right:.5rem}.menu__control{color:inherit;cursor:pointer;display:block;overflow:hidden;padding:.5rem 1rem;text-decoration:none;text-overflow:ellipsis;white-space:nowrap}.menu__control:focus,.menu__control:hover{background:#eff2f7}.menu__divider{border:0;border-top:1px solid #c0ccda;margin:.5rem 0}.clickable_button,.clickable_link{font:inherit;margin:0}.clickable_button.collapsible__trigger:before,.clickable_link.collapsible__trigger:before{border-left:.25rem solid transparent;border-right:.25rem solid transparent;border-bottom:0;border-top:.25rem solid;content:"";float:right;margin:.625rem 0 0 .25em}.clickable_button.collapsible__trigger_toggled:before,.clickable_link.collapsible__trigger_toggled:before{border-bottom:.25rem solid;border-top:0}.clickable_button:not([disabled]),.clickable_link:not([disabled]){cursor:pointer}.clickable_button{background:#0092ff;border:1px solid #0092ff;border-radius:3px;color:#fff;display:inline-block;outline:0;padding:calc(.5rem - 1px) calc(1rem - 1px);text-decoration:none}.clickable_button.collapsible__trigger{overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap}.clickable_button[disabled]{opacity:.5}.clickable_button:focus{box-shadow:0 0 0 2px #c9e1f4}.clickable_button:focus:not([disabled]),.clickable_button:hover:not([disabled]){background:#007cd9;border-color:#007cd9}.clickable_ghost{background:0 0;border-color:#c0ccda;color:#3c4858}.clickable_ghost:focus:not([disabled]),.clickable_ghost:hover:not([disabled]){background:0 0;border-color:#8492a6}.clickable_dropdown{display:inline-block;position:relative}.clickable_dropdown .menu{margin-top:2px}.clickable_dropdown .menu_left{left:0}.clickable_dropdown .menu_right{right:0}.clickable_block{width:100%}.clickable_cta{border-radius:9999em}.clickable_link{background:0 0;border:0;color:#0092ff;display:inline;padding:0;text-decoration:none}.clickable_link:focus,.clickable_link:hover{color:#007cd9;text-decoration:underline}.clickable_link:focus{outline:0}.clickable_sneaky,.clickable_sneaky:focus,.clickable_sneaky:hover{color:inherit}.clickable_plan{color:#0092ff}.clickable_plan:focus,.clickable_plan:hover{color:#007cd9}.clickable_destructive{background:#ff4949;border-color:#ff4949}.clickable_destructive:focus:not([disabled]),.clickable_destructive:hover:not([disabled]){background:#d93e3e;border-color:#d93e3e}.clickable__group{display:-webkit-inline-flex;display:inline-flex;-webkit-flex-wrap:wrap;flex-wrap:wrap}.clickable__group .clickable_button:focus,.clickable__group .clickable_button:hover{position:relative}.clickable__group .clickable_button:not(:first-child),.clickable__group .clickable_dropdown:not(:first-child) .clickable_button{border-bottom-left-radius:0;border-top-left-radius:0;margin-left:-1px}.clickable__group>.clickable_button:not(:last-child),.clickable__group>.clickable_dropdown:not(:last-child) .clickable_button{border-bottom-right-radius:0;border-top-right-radius:0}.clickable__group>.clickable_dropdown:not(:last-child) .clickable_link,.clickable__group>.clickable_link:not(:last-child){margin-right:1.5em;position:relative}.clickable__group>.clickable_dropdown:not(:last-child) .clickable_link:after,.clickable__group>.clickable_link:not(:last-child):after{background:#c0ccda;border-radius:50%;content:"";cursor:auto;display:inline-block;height:.25rem;pointer-events:none;position:absolute;right:-.9em;top:.7em;width:.25rem}.clickable__icon{height:1.5rem;vertical-align:bottom;width:1.5rem}.clickable__icon:not(.icon_standalone){margin-right:calc(.7002rem - 1px)}
|
@@ -0,0 +1 @@
|
|
Â
|
1 |
+
::-webkit-input-placeholder{color:#c0ccda;opacity:1}::-moz-placeholder{color:#c0ccda;opacity:1}:-ms-input-placeholder{color:#c0ccda;opacity:1}::-ms-input-placeholder{color:#c0ccda;opacity:1}::placeholder{color:#c0ccda;opacity:1}.form_fieldset{display:table-row-group}.fieldset__separator{display:table-row}.fieldset__separator:after,.fieldset__separator:before{background:#c0ccda;background-clip:padding-box;border:solid transparent;border-width:calc(4rem - 1px) 0 4rem;-moz-box-sizing:content-box;box-sizing:content-box;content:"";display:table-cell;height:1px}.form__fieldset{border:0;display:table-row;padding:0}.form__fieldset:first-child .form__entries,.form__fieldset:first-child .form__legend{padding-top:0}.form__entries,.form__legend{display:table-cell;margin:0;padding-top:4rem;vertical-align:top}.form__legend{font-size:1.14869835rem;line-height:1.5rem;font-weight:700;padding-right:2.5rem}@media(max-width:45rem){.fieldset__separator,.form__entries,.form__fieldset,.form__legend,.form_fieldset{display:block}.form__legend{padding-bottom:.5rem;padding-right:0}.form__entries{padding-top:0}.fieldset__separator{border:0}}.form__entry{border:0;margin:0;padding:0;position:relative}.form__entry:not(:first-child){margin-top:1.5rem}.entry__label+.form__entry{margin-top:0}.entry__label{display:table;font-weight:700;padding:0;white-space:normal}.form__row{display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;margin:-.25rem -.75rem}.form__row:not(:first-child){margin-top:1.25rem}.entry__label+.form__row{margin-top:-.25rem}.form__row>.form__entry{margin:.25rem .75rem}.entry__optional-indicator{color:#687484;font-size:.87055056rem;line-height:1rem;font-weight:400}.entry__field{-webkit-align-items:center;align-items:center;background:#fff;border:1px solid #c0ccda;border-radius:3px;display:-webkit-inline-flex;display:inline-flex;margin:.25rem 0;max-width:100%}.entry__field:focus-within{box-shadow:0 0 0 2px #c9e1f4}.input,.input__affix{background:0 0;border:0;font:inherit;margin:0}.input:first-child,.input__affix:first-child{padding-left:.5rem}.input:last-child,.input__affix:last-child{padding-right:.5rem}.input,.input__button{-moz-box-sizing:content-box;box-sizing:content-box;color:inherit;outline:0}.input:not(textarea),.input__button{height:calc(2.5rem - 2px)}.input__affix{color:#687484;-webkit-flex-shrink:0;flex-shrink:0}.input__button{cursor:pointer;padding:0 .5rem}.input__button[type=submit]{border-bottom-left-radius:0;border-left:1px solid #c0ccda;border-top-left-radius:0;color:inherit;margin-left:.5rem}.input__button .icon{height:1.5rem;vertical-align:bottom;width:1.5rem}.input{box-shadow:none;min-width:1px;padding:0}textarea.input{padding:calc(.5rem - 1px)}select.input{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url(data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCAyODYuMSAxNjcnPjxwYXRoIGQ9J00yNC4xIDBoMjM4YzIxLjQgMCAzMi4xIDI1LjkgMTcgNDFsLTExOSAxMTljLTkuNCA5LjQtMjQuNiA5LjQtMzMuOSAwTDcuMSA0MUMtOCAyNS45IDIuNyAwIDI0LjEgMHonIGZpbGw9JyMzYzQ4NTgnLz48L3N2Zz4=);background-position:right .65em top 50%;background-repeat:no-repeat;background-size:.65em auto}select.input:first-child,select.input:last-child{padding-right:calc(2rem - 1px)}.entry_block .entry__field,.form__row .entry__field,.form_block .entry__field{display:-webkit-flex;display:flex}.entry_block .input,.form__row .input,.form_block .input{-webkit-flex-grow:1;flex-grow:1}.entry_phrasing,.entry_phrasing .entry__label,.entry_phrasing .entry__specification{display:inline-block}.entry_phrasing .entry__label{font-weight:400}.entry_errored{margin-left:-.5rem;padding-left:.5rem}.entry_errored:before{background:#ff4949;bottom:0;content:"";position:absolute;right:100%;top:0;width:.25rem}.entry__error,.entry__label,.entry__specification,.form__error{max-width:40em}.entry__error,.entry__specification,.form__error{display:block}.entry__choice+.entry__error,.entry__choice+.entry__specification,.entry__error+.entry__error,.entry__error+.entry__specification,.entry__specification+.entry__error,.entry__specification+.entry__specification{margin-top:.5rem}.entry__error{color:#ff4949;font-size:.87055056rem;line-height:1rem}.entry__specification{color:#687484;margin:0}.entry__choice{padding-left:1.5em;text-indent:-1.5em}.entry__choice .checkbox,.entry__choice .radio-button{margin-right:.5em}.entry__choice .toggletip{text-indent:0}.entry__choice:not(:first-child){margin-top:.5rem}.entry__choices.menu{margin-top:2px;max-height:20rem;overflow:auto;padding:.5rem}.checkbox,.radio-button{background:#fff;border:1px solid #687484;cursor:pointer;display:inline-block;height:1em;vertical-align:-.125em;width:1em;position:relative}.checkbox{border-radius:3px}.radio-button{border-radius:50%}.radio-button:before{border-radius:50%;bottom:2px;content:"";left:2px;position:absolute;right:2px;top:2px}.checkbox_tick_negative:after,.checkbox_tick_negative:before{border:solid #fff;border-width:0 0 0 2px;bottom:0;content:"";left:50%;margin-left:-1px;position:absolute;top:0}.checkbox_tick_negative:after{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.checkbox_tick_negative:before,.checkbox_tick_positive:before{-webkit-transform:rotate(45deg);transform:rotate(45deg)}.checkbox_tick_positive:before{border-color:#fff;border-style:solid;border-width:0 2px 2px 0;bottom:1px;content:"";left:50%;margin-left:-25%;position:absolute;top:1px;-webkit-transform-origin:80% 45%;transform-origin:80% 45%;width:50%}.input_replaced{opacity:0;position:absolute;z-index:-1}.input_replaced:checked+.checkbox_tick_positive{background:#13ce66;border-color:#13ce66}.input_replaced:checked+.checkbox_tick_negative{background:#ff4949;border-color:#ff4949}.input_replaced:checked+.radio-button{border-color:#0092ff}.input_replaced:checked+.radio-button:before{background:#0092ff}.input_replaced:indeterminate+.checkbox{background:#fff;border-color:#687484}.input_replaced:indeterminate+.checkbox:before{background:#687484;border:0;content:"";height:2px;left:2px;margin:-1px 0 0;position:absolute;right:2px;-webkit-transform:none;transform:none;top:50%;width:auto}.input_replaced:indeterminate+.checkbox:after{content:normal}.input_replaced:active+.checkbox,.input_replaced:active+.radio-button,.input_replaced:focus+.checkbox,.input_replaced:focus+.radio-button{box-shadow:0 0 0 2px #c9e1f4}.choice__form{border:0;margin:0;padding:0}.choice__form[disabled]{display:none}.entry__choice+.choice__form{border-left:2px solid #c0ccda;margin-left:calc(.5em - 1px);padding:.5rem calc(.5rem + .5em - 1px)}::-ms-reveal{display:none}::-webkit-inner-spin-button,::-webkit-search-decoration{display:none}[type=search]{-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield}.input[readonly]{background-color:#f9fafc}.input[type=text]+.input__password-toggler{color:#0092ff}.ap-nostyle-input-icon{display:none}.ap-nostyle-dropdown-menu{-moz-box-sizing:content-box;box-sizing:content-box;background:#fff;border:1px solid #c0ccda;border-radius:3px;list-style:none;margin:0;max-width:100vw;min-width:100%;padding:calc(.5rem - 1px) 0}.ap-nostyle-dropdown-menu.collapsible__content{position:absolute;top:100%;z-index:1}.ap-nostyle-dropdown-menu.collapsible__content:not(.collapsible__content_toggled){display:none}.ap-nostyle-dropdown-menu em{font-style:normal;font-weight:700}.ap-nostyle-input{padding-right:.5rem}.ap-nostyle-suggestion{cursor:default;color:inherit;cursor:pointer;display:block;overflow:hidden;padding:.5rem 1rem;text-decoration:none;text-overflow:ellipsis;white-space:nowrap}.ap-nostyle-cursor,.ap-nostyle-suggestion:focus,.ap-nostyle-suggestion:hover{background:#eff2f7}.ap-footer{display:none}
|
@@ -0,0 +1 @@
|
|
Â
|
1 |
+
.progress-indicator{-webkit-align-items:center;align-items:center;background:hsla(0,0%,100%,.9);display:-webkit-flex;display:flex;height:100%;-webkit-justify-content:center;justify-content:center;width:100%}.progress-indicator .progress-indicator__icon{fill:#0092ff;height:2rem;width:2rem}.progress-indicator_small .progress-indicator__icon{height:1rem;width:1rem}.progress-indicator__icon{-webkit-animation:indicator-spin 1.3s cubic-bezier(.46,.35,.39,.85) infinite;animation:indicator-spin 1.3s cubic-bezier(.46,.35,.39,.85) infinite}@-webkit-keyframes indicator-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes indicator-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}
|
@@ -1,120 +0,0 @@
|
|
1 |
-
.show-js-error {
|
2 |
-
font-family: Arial, sans-serif;
|
3 |
-
font-size: 12px;
|
4 |
-
position: fixed;
|
5 |
-
z-index: 16000000;
|
6 |
-
bottom: 15px;
|
7 |
-
left: 15px;
|
8 |
-
visibility: hidden;
|
9 |
-
min-width: 15em;
|
10 |
-
max-width: 40em;
|
11 |
-
transition: all 0.2s ease-out;
|
12 |
-
opacity: 0;
|
13 |
-
color: #000;
|
14 |
-
background: #ffc1cc;
|
15 |
-
}
|
16 |
-
.show-js-error_visible {
|
17 |
-
visibility: visible;
|
18 |
-
opacity: 1;
|
19 |
-
}
|
20 |
-
.show-js-error input {
|
21 |
-
padding: 1px 2px;
|
22 |
-
}
|
23 |
-
.show-js-error__title {
|
24 |
-
font-weight: bold;
|
25 |
-
padding: 4px 7px;
|
26 |
-
color: #fff;
|
27 |
-
background: #f66;
|
28 |
-
}
|
29 |
-
.show-js-error__message {
|
30 |
-
display: inline;
|
31 |
-
cursor: pointer;
|
32 |
-
border-bottom: 1px dotted #000;
|
33 |
-
}
|
34 |
-
.show-js-error a,
|
35 |
-
.show-js-error a:visited {
|
36 |
-
text-decoration: underline;
|
37 |
-
color: #000;
|
38 |
-
}
|
39 |
-
.show-js-error a:hover {
|
40 |
-
text-decoration: underline;
|
41 |
-
}
|
42 |
-
.show-js-error__close {
|
43 |
-
font-size: 20px;
|
44 |
-
line-height: 20px;
|
45 |
-
position: absolute;
|
46 |
-
top: -1px;
|
47 |
-
right: 2px;
|
48 |
-
padding: 3px;
|
49 |
-
cursor: pointer;
|
50 |
-
color: #fff;
|
51 |
-
}
|
52 |
-
.show-js-error__body {
|
53 |
-
line-height: 19px;
|
54 |
-
padding: 5px 8px 5px 8px;
|
55 |
-
}
|
56 |
-
.show-js-error .show-js-error__filename,
|
57 |
-
.show-js-error .show-js-error__ua,
|
58 |
-
.show-js-error .show-js-error__help {
|
59 |
-
display: none;
|
60 |
-
}
|
61 |
-
.show-js-error__body_detailed .show-js-error__filename,
|
62 |
-
.show-js-error__body_detailed .show-js-error__ua,
|
63 |
-
.show-js-error__body_detailed .show-js-error__help {
|
64 |
-
display: block;
|
65 |
-
}
|
66 |
-
.show-js-error .show-js-error__additional-text {
|
67 |
-
color: #666;
|
68 |
-
}
|
69 |
-
.show-js-error .show-js-error__filename {
|
70 |
-
overflow-y: auto;
|
71 |
-
max-height: 15em;
|
72 |
-
margin: 3px 0 3px -2px;
|
73 |
-
padding: 5px;
|
74 |
-
white-space: pre-wrap;
|
75 |
-
border: 1px solid #faa;
|
76 |
-
background: #ffe1ec;
|
77 |
-
}
|
78 |
-
.show-js-error__help a {
|
79 |
-
font-size: 11px;
|
80 |
-
margin-right: 6px;
|
81 |
-
}
|
82 |
-
.show-js-error__actions {
|
83 |
-
padding: 3px 5px;
|
84 |
-
border-top: 1px solid #faa;
|
85 |
-
}
|
86 |
-
.show-js-error__actions::after {
|
87 |
-
font-size: 0;
|
88 |
-
display: block;
|
89 |
-
visibility: hidden;
|
90 |
-
clear: both;
|
91 |
-
height: 0;
|
92 |
-
content: ' ';
|
93 |
-
}
|
94 |
-
.show-js-error__arrows {
|
95 |
-
display: none;
|
96 |
-
float: left;
|
97 |
-
margin-left: 8px;
|
98 |
-
}
|
99 |
-
.show-js-error__arrows_visible {
|
100 |
-
display: block;
|
101 |
-
}
|
102 |
-
.show-js-error__copy,
|
103 |
-
.show-js-error__send,
|
104 |
-
.show-js-error__prev,
|
105 |
-
.show-js-error__next,
|
106 |
-
.show-js-error__num {
|
107 |
-
font-size: 11px;
|
108 |
-
}
|
109 |
-
.show-js-error__next {
|
110 |
-
margin-left: 1px;
|
111 |
-
}
|
112 |
-
.show-js-error__num {
|
113 |
-
margin-right: 5px;
|
114 |
-
margin-left: 5px;
|
115 |
-
}
|
116 |
-
.show-js-error__copy,
|
117 |
-
.show-js-error__send {
|
118 |
-
float: left;
|
119 |
-
margin-right: 3px;
|
120 |
-
}
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
@@ -0,0 +1,238 @@
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
1 |
+
@charset "UTF-8";
|
2 |
+
|
3 |
+
/*!
|
4 |
+
* Pikaday
|
5 |
+
* Copyright © 2014 David Bushell | BSD & MIT license | https://dbushell.com/
|
6 |
+
*/
|
7 |
+
|
8 |
+
.pika-single {
|
9 |
+
z-index: 9999;
|
10 |
+
display: block;
|
11 |
+
position: relative;
|
12 |
+
color: #333;
|
13 |
+
background: #fff;
|
14 |
+
border: 1px solid #ccc;
|
15 |
+
border-bottom-color: #bbb;
|
16 |
+
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
17 |
+
}
|
18 |
+
|
19 |
+
/*
|
20 |
+
clear child float (pika-lendar), using the famous micro clearfix hack
|
21 |
+
http://nicolasgallagher.com/micro-clearfix-hack/
|
22 |
+
*/
|
23 |
+
.pika-single:before,
|
24 |
+
.pika-single:after {
|
25 |
+
content: " ";
|
26 |
+
display: table;
|
27 |
+
}
|
28 |
+
.pika-single:after { clear: both }
|
29 |
+
|
30 |
+
.pika-single.is-hidden {
|
31 |
+
display: none;
|
32 |
+
}
|
33 |
+
|
34 |
+
.pika-single.is-bound {
|
35 |
+
position: absolute;
|
36 |
+
box-shadow: 0 5px 15px -5px rgba(0,0,0,.5);
|
37 |
+
}
|
38 |
+
|
39 |
+
.pika-lendar {
|
40 |
+
float: left;
|
41 |
+
width: 240px;
|
42 |
+
margin: 8px;
|
43 |
+
}
|
44 |
+
|
45 |
+
.pika-title {
|
46 |
+
position: relative;
|
47 |
+
text-align: center;
|
48 |
+
}
|
49 |
+
|
50 |
+
.pika-label {
|
51 |
+
display: inline-block;
|
52 |
+
position: relative;
|
53 |
+
z-index: 9999;
|
54 |
+
overflow: hidden;
|
55 |
+
margin: 0;
|
56 |
+
padding: 5px 3px;
|
57 |
+
font-size: 14px;
|
58 |
+
line-height: 20px;
|
59 |
+
font-weight: bold;
|
60 |
+
background-color: #fff;
|
61 |
+
}
|
62 |
+
.pika-title select {
|
63 |
+
cursor: pointer;
|
64 |
+
position: absolute;
|
65 |
+
z-index: 9998;
|
66 |
+
margin: 0;
|
67 |
+
left: 0;
|
68 |
+
top: 5px;
|
69 |
+
opacity: 0;
|
70 |
+
}
|
71 |
+
|
72 |
+
.pika-prev,
|
73 |
+
.pika-next {
|
74 |
+
display: block;
|
75 |
+
cursor: pointer;
|
76 |
+
position: relative;
|
77 |
+
outline: none;
|
78 |
+
border: 0;
|
79 |
+
padding: 0;
|
80 |
+
width: 20px;
|
81 |
+
height: 30px;
|
82 |
+
/* hide text using text-indent trick, using width value (it's enough) */
|
83 |
+
text-indent: 20px;
|
84 |
+
white-space: nowrap;
|
85 |
+
overflow: hidden;
|
86 |
+
background-color: transparent;
|
87 |
+
background-position: center center;
|
88 |
+
background-repeat: no-repeat;
|
89 |
+
background-size: 75% 75%;
|
90 |
+
opacity: .5;
|
91 |
+
}
|
92 |
+
|
93 |
+
.pika-prev:hover,
|
94 |
+
.pika-next:hover {
|
95 |
+
opacity: 1;
|
96 |
+
}
|
97 |
+
|
98 |
+
.pika-prev,
|
99 |
+
.is-rtl .pika-next {
|
100 |
+
float: left;
|
101 |
+
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAeCAYAAAAsEj5rAAAAUklEQVR42u3VMQoAIBADQf8Pgj+OD9hG2CtONJB2ymQkKe0HbwAP0xucDiQWARITIDEBEnMgMQ8S8+AqBIl6kKgHiXqQqAeJepBo/z38J/U0uAHlaBkBl9I4GwAAAABJRU5ErkJggg==');
|
102 |
+
}
|
103 |
+
|
104 |
+
.pika-next,
|
105 |
+
.is-rtl .pika-prev {
|
106 |
+
float: right;
|
107 |
+
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAeCAYAAAAsEj5rAAAAU0lEQVR42u3VOwoAMAgE0dwfAnNjU26bYkBCFGwfiL9VVWoO+BJ4Gf3gtsEKKoFBNTCoCAYVwaAiGNQGMUHMkjGbgjk2mIONuXo0nC8XnCf1JXgArVIZAQh5TKYAAAAASUVORK5CYII=');
|
108 |
+
}
|
109 |
+
|
110 |
+
.pika-prev.is-disabled,
|
111 |
+
.pika-next.is-disabled {
|
112 |
+
cursor: default;
|
113 |
+
opacity: .2;
|
114 |
+
}
|
115 |
+
|
116 |
+
.pika-select {
|
117 |
+
display: inline-block;
|
118 |
+
}
|
119 |
+
|
120 |
+
.pika-table {
|
121 |
+
width: 100%;
|
122 |
+
border-collapse: collapse;
|
123 |
+
border-spacing: 0;
|
124 |
+
border: 0;
|
125 |
+
}
|
126 |
+
|
127 |
+
.pika-table th,
|
128 |
+
.pika-table td {
|
129 |
+
width: 14.285714285714286%;
|
130 |
+
padding: 0;
|
131 |
+
}
|
132 |
+
|
133 |
+
.pika-table th {
|
134 |
+
color: #999;
|
135 |
+
font-size: 12px;
|
136 |
+
line-height: 25px;
|
137 |
+
font-weight: bold;
|
138 |
+
text-align: center;
|
139 |
+
}
|
140 |
+
|
141 |
+
.pika-button {
|
142 |
+
cursor: pointer;
|
143 |
+
display: block;
|
144 |
+
box-sizing: border-box;
|
145 |
+
-moz-box-sizing: border-box;
|
146 |
+
outline: none;
|
147 |
+
border: 0;
|
148 |
+
margin: 0;
|
149 |
+
width: 100%;
|
150 |
+
padding: 5px;
|
151 |
+
color: #666;
|
152 |
+
font-size: 12px;
|
153 |
+
line-height: 15px;
|
154 |
+
text-align: right;
|
155 |
+
background: #f5f5f5;
|
156 |
+
height: initial;
|
157 |
+
}
|
158 |
+
|
159 |
+
.pika-week {
|
160 |
+
font-size: 11px;
|
161 |
+
color: #999;
|
162 |
+
}
|
163 |
+
|
164 |
+
.is-today .pika-button {
|
165 |
+
color: #33aaff;
|
166 |
+
font-weight: bold;
|
167 |
+
}
|
168 |
+
|
169 |
+
.is-selected .pika-button,
|
170 |
+
.has-event .pika-button {
|
171 |
+
color: #fff;
|
172 |
+
font-weight: bold;
|
173 |
+
background: #33aaff;
|
174 |
+
box-shadow: inset 0 1px 3px #178fe5;
|
175 |
+
border-radius: 3px;
|
176 |
+
}
|
177 |
+
|
178 |
+
.has-event .pika-button {
|
179 |
+
background: #005da9;
|
180 |
+
box-shadow: inset 0 1px 3px #0076c9;
|
181 |
+
}
|
182 |
+
|
183 |
+
.is-disabled .pika-button,
|
184 |
+
.is-inrange .pika-button {
|
185 |
+
background: #D5E9F7;
|
186 |
+
}
|
187 |
+
|
188 |
+
.is-startrange .pika-button {
|
189 |
+
color: #fff;
|
190 |
+
background: #6CB31D;
|
191 |
+
box-shadow: none;
|
192 |
+
border-radius: 3px;
|
193 |
+
}
|
194 |
+
|
195 |
+
.is-endrange .pika-button {
|
196 |
+
color: #fff;
|
197 |
+
background: #33aaff;
|
198 |
+
box-shadow: none;
|
199 |
+
border-radius: 3px;
|
200 |
+
}
|
201 |
+
|
202 |
+
.is-disabled .pika-button {
|
203 |
+
pointer-events: none;
|
204 |
+
cursor: default;
|
205 |
+
color: #999;
|
206 |
+
opacity: .3;
|
207 |
+
}
|
208 |
+
|
209 |
+
.is-outside-current-month .pika-button {
|
210 |
+
color: #999;
|
211 |
+
opacity: .3;
|
212 |
+
}
|
213 |
+
|
214 |
+
.is-selection-disabled {
|
215 |
+
pointer-events: none;
|
216 |
+
cursor: default;
|
217 |
+
}
|
218 |
+
|
219 |
+
.pika-button:hover,
|
220 |
+
.pika-row.pick-whole-week:hover .pika-button {
|
221 |
+
color: #fff;
|
222 |
+
background: #ff8000;
|
223 |
+
box-shadow: none;
|
224 |
+
border-radius: 3px;
|
225 |
+
}
|
226 |
+
|
227 |
+
/* styling for abbr */
|
228 |
+
.pika-table abbr {
|
229 |
+
border-bottom: none;
|
230 |
+
cursor: help;
|
231 |
+
}
|
232 |
+
|
233 |
+
.pika-single{color:#3c4858}.pika-button{color:#3c4858;background:#fff}.sib-is-today .pika-button{color:#0092ff}.sib-is-selected .pika-button{color:#fff}.sib-is-today:hover .pika-button{color:#fff}.sib-is-selected .pika-button,.sib-has-event .pika-button{background:#0092ff}.pika-button:hover,.pika-row.sib-pick-whole-week:hover .pika-button{background:#0092ff}.pika-table abbr{cursor:default;color:#8390A4;text-decoration:none}.pika-label{font-size:0}.pika-title select{position:initial;opacity:1;z-index:inherit}.sib-sms-tooltip{margin-left:8px;position:relative}.sib-sms-tooltip__box{display:none;border-radius:5px;color:#fff;background-color:#333;position:absolute;bottom:100%;width:200px;padding:5px;right:calc(100% - 60px);font-size:12px}.sib-sms-tooltip:hover .sib-sms-tooltip__box{display:block}.sib-sms-tooltip__icon{border-radius:50%;color:#4DA6E0;width:24px;height:24px;padding:3px;font-weight:700;font-style:normal;font-size:24px}.sib-container--medium.sib-container--horizontal .sib-sms-tooltip,.sib-container--small .sib-sms-tooltip{position:absolute;bottom:0;right:0;border-radius:100%;height:18px;width:18px;margin:12px 8px;background:#687484;text-align:center;display:flex;justify-content:center;align-items:center}.sib-container--medium.sib-container--horizontal .sib-sms-tooltip__icon,.sib-container--small .sib-sms-tooltip__icon{color:#fff;font-size:16px}.sib-sms-input-wrapper{display:flex;align-items:center;position:relative}.sib-sms-field .form__label-row--horizontal{flex-wrap:wrap}/*!
|
234 |
+
* Generated with CSS Flag Sprite generator (https://www.flag-sprites.com/)
|
235 |
+
*/.sib-flag{display:inline-block;width:32px;min-width:2rem;height:32px;background:url("https://static.sendinblue.com/images/flags.png") no-repeat}.sib-flag.sib-flag-ad{background-position:-3px -0px;width:30px;height:30px}.sib-flag.sib-flag-ae{background-position:-36px -0px;width:30px;height:30px}.sib-flag.sib-flag-af{background-position:-69px -0px;width:30px;height:30px}.sib-flag.sib-flag-ag{background-position:-102px -0px;width:30px;height:30px}.sib-flag.sib-flag-ai{background-position:-135px -0px;width:30px;height:30px}.sib-flag.sib-flag-al{background-position:-168px -0px;width:30px;height:30px}.sib-flag.sib-flag-am{background-position:-201px -0px;width:30px;height:30px}.sib-flag.sib-flag-ao{background-position:-234px -0px;width:30px;height:30px}.sib-flag.sib-flag-aq{background-position:-267px -0px;width:30px;height:30px}.sib-flag.sib-flag-ar{background-position:-300px -0px;width:30px;height:30px}.sib-flag.sib-flag-as{background-position:-333px -0px;width:30px;height:30px}.sib-flag.sib-flag-at{background-position:-366px -0px;width:30px;height:30px}.sib-flag.sib-flag-au{background-position:-399px -0px;width:30px;height:30px}.sib-flag.sib-flag-aw{background-position:-432px -0px;width:30px;height:30px}.sib-flag.sib-flag-ax{background-position:-465px -0px;width:30px;height:30px}.sib-flag.sib-flag-az{background-position:-498px -0px;width:30px;height:30px}.sib-flag.sib-flag-ba{background-position:-3px -33px;width:30px;height:30px}.sib-flag.sib-flag-bb{background-position:-36px -33px;width:30px;height:30px}.sib-flag.sib-flag-bd{background-position:-69px -33px;width:30px;height:30px}.sib-flag.sib-flag-be{background-position:-102px -33px;width:30px;height:30px}.sib-flag.sib-flag-bf{background-position:-135px -33px;width:30px;height:30px}.sib-flag.sib-flag-bg{background-position:-168px -33px;width:30px;height:30px}.sib-flag.sib-flag-bh{background-position:-201px -33px;width:30px;height:30px}.sib-flag.sib-flag-bi{background-position:-234px -33px;width:30px;height:30px}.sib-flag.sib-flag-bj{background-position:-267px -33px;width:30px;height:30px}.sib-flag.sib-flag-bl{background-position:-300px -33px;width:30px;height:30px}.sib-flag.sib-flag-bm{background-position:-333px -33px;width:30px;height:30px}.sib-flag.sib-flag-bn{background-position:-366px -33px;width:30px;height:30px}.sib-flag.sib-flag-bo{background-position:-399px -33px;width:30px;height:30px}.sib-flag.sib-flag-bq{background-position:-432px -33px;width:30px;height:30px}.sib-flag.sib-flag-br{background-position:-465px -33px;width:30px;height:30px}.sib-flag.sib-flag-bs{background-position:-498px -33px;width:30px;height:30px}.sib-flag.sib-flag-bt{background-position:-3px -66px;width:30px;height:30px}.sib-flag.sib-flag-bv{background-position:-36px -66px;width:30px;height:30px}.sib-flag.sib-flag-bw{background-position:-69px -66px;width:30px;height:30px}.sib-flag.sib-flag-by{background-position:-102px -66px;width:30px;height:30px}.sib-flag.sib-flag-bz{background-position:-135px -66px;width:30px;height:30px}.sib-flag.sib-flag-ca{background-position:-168px -66px;width:30px;height:30px}.sib-flag.sib-flag-cc{background-position:-201px -66px;width:30px;height:30px}.sib-flag.sib-flag-cd{background-position:-234px -66px;width:30px;height:30px}.sib-flag.sib-flag-cf{background-position:-267px -66px;width:30px;height:30px}.sib-flag.sib-flag-cg{background-position:-300px -66px;width:30px;height:30px}.sib-flag.sib-flag-ch{background-position:-333px -66px;width:30px;height:30px}.sib-flag.sib-flag-ci{background-position:-366px -66px;width:30px;height:30px}.sib-flag.sib-flag-ck{background-position:-399px -66px;width:30px;height:30px}.sib-flag.sib-flag-cl{background-position:-432px -66px;width:30px;height:30px}.sib-flag.sib-flag-cm{background-position:-465px -66px;width:30px;height:30px}.sib-flag.sib-flag-cn{background-position:-498px -66px;width:30px;height:30px}.sib-flag.sib-flag-co{background-position:-3px -99px;width:30px;height:30px}.sib-flag.sib-flag-cr{background-position:-36px -99px;width:30px;height:30px}.sib-flag.sib-flag-cu{background-position:-69px -99px;width:30px;height:30px}.sib-flag.sib-flag-cv{background-position:-102px -99px;width:30px;height:30px}.sib-flag.sib-flag-cw{background-position:-135px -99px;width:30px;height:30px}.sib-flag.sib-flag-cx{background-position:-168px -99px;width:30px;height:30px}.sib-flag.sib-flag-cy{background-position:-201px -99px;width:30px;height:30px}.sib-flag.sib-flag-cz{background-position:-234px -99px;width:30px;height:30px}.sib-flag.sib-flag-de{background-position:-267px -99px;width:30px;height:30px}.sib-flag.sib-flag-dj{background-position:-300px -99px;width:30px;height:30px}.sib-flag.sib-flag-dk{background-position:-333px -99px;width:30px;height:30px}.sib-flag.sib-flag-dm{background-position:-366px -99px;width:30px;height:30px}.sib-flag.sib-flag-do{background-position:-399px -99px;width:30px;height:30px}.sib-flag.sib-flag-dz{background-position:-432px -99px;width:30px;height:30px}.sib-flag.sib-flag-ec{background-position:-465px -99px;width:30px;height:30px}.sib-flag.sib-flag-ee{background-position:-498px -99px;width:30px;height:30px}.sib-flag.sib-flag-eg{background-position:-3px -132px;width:30px;height:30px}.sib-flag.sib-flag-eh{background-position:-36px -132px;width:30px;height:30px}.sib-flag.sib-flag-er{background-position:-69px -132px;width:30px;height:30px}.sib-flag.sib-flag-es{background-position:-102px -132px;width:30px;height:30px}.sib-flag.sib-flag-et{background-position:-135px -132px;width:30px;height:30px}.sib-flag.sib-flag-fi{background-position:-168px -132px;width:30px;height:30px}.sib-flag.sib-flag-fj{background-position:-201px -132px;width:30px;height:30px}.sib-flag.sib-flag-fk{background-position:-234px -132px;width:30px;height:30px}.sib-flag.sib-flag-fm{background-position:-267px -132px;width:30px;height:30px}.sib-flag.sib-flag-fo{background-position:-300px -132px;width:30px;height:30px}.sib-flag.sib-flag-fr{background-position:-333px -132px;width:30px;height:30px}.sib-flag.sib-flag-ga{background-position:-366px -132px;width:30px;height:30px}.sib-flag.sib-flag-gb{background-position:-399px -132px;width:30px;height:30px}.sib-flag.sib-flag-gd{background-position:-432px -132px;width:30px;height:30px}.sib-flag.sib-flag-ge{background-position:-465px -132px;width:30px;height:30px}.sib-flag.sib-flag-gf{background-position:-498px -132px;width:30px;height:30px}.sib-flag.sib-flag-gg{background-position:-3px -165px;width:30px;height:30px}.sib-flag.sib-flag-gh{background-position:-36px -165px;width:30px;height:30px}.sib-flag.sib-flag-gi{background-position:-69px -165px;width:30px;height:30px}.sib-flag.sib-flag-gl{background-position:-102px -165px;width:30px;height:30px}.sib-flag.sib-flag-gm{background-position:-135px -165px;width:30px;height:30px}.sib-flag.sib-flag-gn{background-position:-168px -165px;width:30px;height:30px}.sib-flag.sib-flag-gp{background-position:-201px -165px;width:30px;height:30px}.sib-flag.sib-flag-gq{background-position:-234px -165px;width:30px;height:30px}.sib-flag.sib-flag-gr{background-position:-267px -165px;width:30px;height:30px}.sib-flag.sib-flag-gs{background-position:-300px -165px;width:30px;height:30px}.sib-flag.sib-flag-gt{background-position:-333px -165px;width:30px;height:30px}.sib-flag.sib-flag-gu{background-position:-366px -165px;width:30px;height:30px}.sib-flag.sib-flag-gw{background-position:-399px -165px;width:30px;height:30px}.sib-flag.sib-flag-gy{background-position:-432px -165px;width:30px;height:30px}.sib-flag.sib-flag-hk{background-position:-465px -165px;width:30px;height:30px}.sib-flag.sib-flag-hm{background-position:-498px -165px;width:30px;height:30px}.sib-flag.sib-flag-hn{background-position:-3px -198px;width:30px;height:30px}.sib-flag.sib-flag-hr{background-position:-36px -198px;width:30px;height:30px}.sib-flag.sib-flag-ht{background-position:-69px -198px;width:30px;height:30px}.sib-flag.sib-flag-hu{background-position:-102px -198px;width:30px;height:30px}.sib-flag.sib-flag-id{background-position:-135px -198px;width:30px;height:30px}.sib-flag.sib-flag-ie{background-position:-168px -198px;width:30px;height:30px}.sib-flag.sib-flag-il{background-position:-201px -198px;width:30px;height:30px}.sib-flag.sib-flag-im{background-position:-234px -198px;width:30px;height:30px}.sib-flag.sib-flag-in{background-position:-267px -198px;width:30px;height:30px}.sib-flag.sib-flag-io{background-position:-300px -198px;width:30px;height:30px}.sib-flag.sib-flag-iq{background-position:-333px -198px;width:30px;height:30px}.sib-flag.sib-flag-ir{background-position:-366px -198px;width:30px;height:30px}.sib-flag.sib-flag-is{background-position:-399px -198px;width:30px;height:30px}.sib-flag.sib-flag-it{background-position:-432px -198px;width:30px;height:30px}.sib-flag.sib-flag-je{background-position:-465px -198px;width:30px;height:30px}.sib-flag.sib-flag-jm{background-position:-498px -198px;width:30px;height:30px}.sib-flag.sib-flag-jo{background-position:-3px -231px;width:30px;height:30px}.sib-flag.sib-flag-jp{background-position:-36px -231px;width:30px;height:30px}.sib-flag.sib-flag-ke{background-position:-69px -231px;width:30px;height:30px}.sib-flag.sib-flag-kg{background-position:-102px -231px;width:30px;height:30px}.sib-flag.sib-flag-kh{background-position:-135px -231px;width:30px;height:30px}.sib-flag.sib-flag-ki{background-position:-168px -231px;width:30px;height:30px}.sib-flag.sib-flag-km{background-position:-201px -231px;width:30px;height:30px}.sib-flag.sib-flag-kn{background-position:-234px -231px;width:30px;height:30px}.sib-flag.sib-flag-kp{background-position:-267px -231px;width:30px;height:30px}.sib-flag.sib-flag-kr{background-position:-300px -231px;width:30px;height:30px}.sib-flag.sib-flag-kw{background-position:-333px -231px;width:30px;height:30px}.sib-flag.sib-flag-ky{background-position:-366px -231px;width:30px;height:30px}.sib-flag.sib-flag-kz{background-position:-399px -231px;width:30px;height:30px}.sib-flag.sib-flag-la{background-position:-432px -231px;width:30px;height:30px}.sib-flag.sib-flag-lb{background-position:-465px -231px;width:30px;height:30px}.sib-flag.sib-flag-lc{background-position:-498px -231px;width:30px;height:30px}.sib-flag.sib-flag-li{background-position:-3px -264px;width:30px;height:30px}.sib-flag.sib-flag-lk{background-position:-36px -264px;width:30px;height:30px}.sib-flag.sib-flag-lr{background-position:-69px -264px;width:30px;height:30px}.sib-flag.sib-flag-ls{background-position:-102px -264px;width:30px;height:30px}.sib-flag.sib-flag-lt{background-position:-135px -264px;width:30px;height:30px}.sib-flag.sib-flag-lu{background-position:-168px -264px;width:30px;height:30px}.sib-flag.sib-flag-lv{background-position:-201px -264px;width:30px;height:30px}.sib-flag.sib-flag-ly{background-position:-234px -264px;width:30px;height:30px}.sib-flag.sib-flag-ma{background-position:-267px -264px;width:30px;height:30px}.sib-flag.sib-flag-mc{background-position:-300px -264px;width:30px;height:30px}.sib-flag.sib-flag-md{background-position:-333px -264px;width:30px;height:30px}.sib-flag.sib-flag-me{background-position:-366px -264px;width:30px;height:30px}.sib-flag.sib-flag-mf{background-position:-399px -264px;width:30px;height:30px}.sib-flag.sib-flag-mg{background-position:-432px -264px;width:30px;height:30px}.sib-flag.sib-flag-mh{background-position:-465px -264px;width:30px;height:30px}.sib-flag.sib-flag-mk{background-position:-498px -264px;width:30px;height:30px}.sib-flag.sib-flag-ml{background-position:-3px -297px;width:30px;height:30px}.sib-flag.sib-flag-mm{background-position:-36px -297px;width:30px;height:30px}.sib-flag.sib-flag-mn{background-position:-69px -297px;width:30px;height:30px}.sib-flag.sib-flag-mo{background-position:-102px -297px;width:30px;height:30px}.sib-flag.sib-flag-mp{background-position:-135px -297px;width:30px;height:30px}.sib-flag.sib-flag-mq{background-position:-168px -297px;width:30px;height:30px}.sib-flag.sib-flag-mr{background-position:-201px -297px;width:30px;height:30px}.sib-flag.sib-flag-ms{background-position:-234px -297px;width:30px;height:30px}.sib-flag.sib-flag-mt{background-position:-267px -297px;width:30px;height:30px}.sib-flag.sib-flag-mu{background-position:-300px -297px;width:30px;height:30px}.sib-flag.sib-flag-mv{background-position:-333px -297px;width:30px;height:30px}.sib-flag.sib-flag-mw{background-position:-366px -297px;width:30px;height:30px}.sib-flag.sib-flag-mx{background-position:-399px -297px;width:30px;height:30px}.sib-flag.sib-flag-my{background-position:-432px -297px;width:30px;height:30px}.sib-flag.sib-flag-mz{background-position:-465px -297px;width:30px;height:30px}.sib-flag.sib-flag-na{background-position:-498px -297px;width:30px;height:30px}.sib-flag.sib-flag-nc{background-position:-3px -330px;width:30px;height:30px}.sib-flag.sib-flag-ne{background-position:-36px -330px;width:30px;height:30px}.sib-flag.sib-flag-nf{background-position:-69px -330px;width:30px;height:30px}.sib-flag.sib-flag-ng{background-position:-102px -330px;width:30px;height:30px}.sib-flag.sib-flag-ni{background-position:-135px -330px;width:30px;height:30px}.sib-flag.sib-flag-nl{background-position:-168px -330px;width:30px;height:30px}.sib-flag.sib-flag-no{background-position:-201px -330px;width:30px;height:30px}.sib-flag.sib-flag-np{background-position:-234px -330px;width:30px;height:30px}.sib-flag.sib-flag-nr{background-position:-267px -330px;width:30px;height:30px}.sib-flag.sib-flag-nu{background-position:-300px -330px;width:30px;height:30px}.sib-flag.sib-flag-nz{background-position:-333px -330px;width:30px;height:30px}.sib-flag.sib-flag-om{background-position:-366px -330px;width:30px;height:30px}.sib-flag.sib-flag-pa{background-position:-399px -330px;width:30px;height:30px}.sib-flag.sib-flag-pe{background-position:-432px -330px;width:30px;height:30px}.sib-flag.sib-flag-pf{background-position:-465px -330px;width:30px;height:30px}.sib-flag.sib-flag-pg{background-position:-498px -330px;width:30px;height:30px}.sib-flag.sib-flag-ph{background-position:-3px -363px;width:30px;height:30px}.sib-flag.sib-flag-pk{background-position:-36px -363px;width:30px;height:30px}.sib-flag.sib-flag-pl{background-position:-69px -363px;width:30px;height:30px}.sib-flag.sib-flag-pm{background-position:-102px -363px;width:30px;height:30px}.sib-flag.sib-flag-pn{background-position:-135px -363px;width:30px;height:30px}.sib-flag.sib-flag-pr{background-position:-168px -363px;width:30px;height:30px}.sib-flag.sib-flag-ps{background-position:-201px -363px;width:30px;height:30px}.sib-flag.sib-flag-pt{background-position:-234px -363px;width:30px;height:30px}.sib-flag.sib-flag-pw{background-position:-267px -363px;width:30px;height:30px}.sib-flag.sib-flag-py{background-position:-300px -363px;width:30px;height:30px}.sib-flag.sib-flag-qa{background-position:-333px -363px;width:30px;height:30px}.sib-flag.sib-flag-re{background-position:-366px -363px;width:30px;height:30px}.sib-flag.sib-flag-ro{background-position:-399px -363px;width:30px;height:30px}.sib-flag.sib-flag-rs{background-position:-432px -363px;width:30px;height:30px}.sib-flag.sib-flag-ru{background-position:-465px -363px;width:30px;height:30px}.sib-flag.sib-flag-rw{background-position:-498px -363px;width:30px;height:30px}.sib-flag.sib-flag-sa{background-position:-3px -396px;width:30px;height:30px}.sib-flag.sib-flag-sb{background-position:-36px -396px;width:30px;height:30px}.sib-flag.sib-flag-sc{background-position:-69px -396px;width:30px;height:30px}.sib-flag.sib-flag-sd{background-position:-102px -396px;width:30px;height:30px}.sib-flag.sib-flag-se{background-position:-135px -396px;width:30px;height:30px}.sib-flag.sib-flag-sg{background-position:-168px -396px;width:30px;height:30px}.sib-flag.sib-flag-sh{background-position:-201px -396px;width:30px;height:30px}.sib-flag.sib-flag-si{background-position:-234px -396px;width:30px;height:30px}.sib-flag.sib-flag-sj{background-position:-267px -396px;width:30px;height:30px}.sib-flag.sib-flag-sk{background-position:-300px -396px;width:30px;height:30px}.sib-flag.sib-flag-sl{background-position:-333px -396px;width:30px;height:30px}.sib-flag.sib-flag-sm{background-position:-366px -396px;width:30px;height:30px}.sib-flag.sib-flag-sn{background-position:-399px -396px;width:30px;height:30px}.sib-flag.sib-flag-so{background-position:-432px -396px;width:30px;height:30px}.sib-flag.sib-flag-sr{background-position:-465px -396px;width:30px;height:30px}.sib-flag.sib-flag-ss{background-position:-498px -396px;width:30px;height:30px}.sib-flag.sib-flag-st{background-position:-3px -429px;width:30px;height:30px}.sib-flag.sib-flag-sv{background-position:-36px -429px;width:30px;height:30px}.sib-flag.sib-flag-sx{background-position:-69px -429px;width:30px;height:30px}.sib-flag.sib-flag-sy{background-position:-102px -429px;width:30px;height:30px}.sib-flag.sib-flag-sz{background-position:-135px -429px;width:30px;height:30px}.sib-flag.sib-flag-tc{background-position:-168px -429px;width:30px;height:30px}.sib-flag.sib-flag-td{background-position:-201px -429px;width:30px;height:30px}.sib-flag.sib-flag-tf{background-position:-234px -429px;width:30px;height:30px}.sib-flag.sib-flag-tg{background-position:-267px -429px;width:30px;height:30px}.sib-flag.sib-flag-th{background-position:-300px -429px;width:30px;height:30px}.sib-flag.sib-flag-tj{background-position:-333px -429px;width:30px;height:30px}.sib-flag.sib-flag-tk{background-position:-366px -429px;width:30px;height:30px}.sib-flag.sib-flag-tl{background-position:-399px -429px;width:30px;height:30px}.sib-flag.sib-flag-tm{background-position:-432px -429px;width:30px;height:30px}.sib-flag.sib-flag-tn{background-position:-465px -429px;width:30px;height:30px}.sib-flag.sib-flag-to{background-position:-498px -429px;width:30px;height:30px}.sib-flag.sib-flag-tr{background-position:-3px -462px;width:30px;height:30px}.sib-flag.sib-flag-tt{background-position:-36px -462px;width:30px;height:30px}.sib-flag.sib-flag-tv{background-position:-69px -462px;width:30px;height:30px}.sib-flag.sib-flag-tw{background-position:-102px -462px;width:30px;height:30px}.sib-flag.sib-flag-tz{background-position:-135px -462px;width:30px;height:30px}.sib-flag.sib-flag-ua{background-position:-168px -462px;width:30px;height:30px}.sib-flag.sib-flag-ug{background-position:-201px -462px;width:30px;height:30px}.sib-flag.sib-flag-um{background-position:-234px -462px;width:30px;height:30px}.sib-flag.sib-flag-us{background-position:-267px -462px;width:30px;height:30px}.sib-flag.sib-flag-uy{background-position:-300px -462px;width:30px;height:30px}.sib-flag.sib-flag-uz{background-position:-333px -462px;width:30px;height:30px}.sib-flag.sib-flag-va{background-position:-366px -462px;width:30px;height:30px}.sib-flag.sib-flag-vc{background-position:-399px -462px;width:30px;height:30px}.sib-flag.sib-flag-ve{background-position:-432px -462px;width:30px;height:30px}.sib-flag.sib-flag-vg{background-position:-465px -462px;width:30px;height:30px}.sib-flag.sib-flag-vi{background-position:-498px -462px;width:30px;height:30px}.sib-flag.sib-flag-vn{background-position:-3px -495px;width:30px;height:30px}.sib-flag.sib-flag-vu{background-position:-36px -495px;width:30px;height:30px}.sib-flag.sib-flag-wf{background-position:-69px -495px;width:30px;height:30px}.sib-flag.sib-flag-ws{background-position:-102px -495px;width:30px;height:30px}.sib-flag.sib-flag-xk{background-position:-135px -495px;width:30px;height:30px}.sib-flag.sib-flag-ye{background-position:-168px -495px;width:30px;height:30px}.sib-flag.sib-flag-yt{background-position:-201px -495px;width:30px;height:30px}.sib-flag.sib-flag-za{background-position:-234px -495px;width:30px;height:30px}.sib-flag.sib-flag-zm{background-position:-267px -495px;width:30px;height:30px}.sib-flag.sib-flag-zw{background-position:-300px -495px;width:30px;height:30px}.sib-sms-select{display:flex;width:100%;font-size:14px;position:relative}.sib-container--medium.sib-container--horizontal .sib-sms-select,.sib-container--small .sib-sms-select{flex-direction:column}.sib-sms-select__title{display:flex;position:relative;align-items:center;background:#ffffff;border:1px solid #c0ccda;border-radius:3px;box-sizing:border-box;cursor:pointer;font-size:14px;height:3em;padding:8px 16px 8px 8px;margin-right:8px;position:relative;text-align:left;width:100%;max-width:60px}.sib-sms-select__title::after{content:'';display:block;position:absolute;right:5px;width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid #000}.sib-sms-select__title>.sib-sms-select__label-text{display:none}.sib-container--medium.sib-container--horizontal .sib-sms-select__title,.sib-container--small .sib-sms-select__title{max-width:100%;margin-right:0;margin-bottom:0.5rem}.sib-container--medium.sib-container--horizontal .sib-sms-select__title::after,.sib-container--small .sib-sms-select__title::after{content:'';display:block;position:absolute;right:8px;width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid #000}.sib-container--medium.sib-container--horizontal .sib-sms-select__title>.sib-sms-select__label-text,.sib-container--small .sib-sms-select__title>.sib-sms-select__label-text{display:block}.sib-sms-select__list{background:#fff;border:1px solid #c0ccda;border-radius:3px;box-sizing:border-box;display:none;height:0;list-style:none;margin:8px 0 0 0;opacity:0;padding:0;position:absolute;width:100%;z-index:999}.sib-sms-select__list.sib-is-open{display:block;height:auto;max-height:250px;overflow:scroll;opacity:1}.sib-sms-select__list li{display:flex;align-items:center;border-bottom:1px solid #c0ccda;cursor:pointer;padding:8px;font-size:14px}.sib-sms-select__list li:hover,.sib-sms-select__list li.sib-is-selected{background-color:#8ed8fd}.sib-sms-select__number-input{display:flex;width:100%;height:3em;border:1px solid #c0ccda;border-radius:3px;background:#fff}.sib-sms-select__calling-code{height:100%;max-width:70px;padding:8px;border-top:0;border-right:1px solid #c0ccda;border-bottom:0;border-left:0;border-radius:3px 0 0 3px;line-height:1.8em;text-align:center;font-size:inherit;color:inherit;outline:none}.sib-container--medium.sib-container--horizontal .sib-sms-select__calling-code,.sib-container--small .sib-sms-select__calling-code{max-width:50px;padding:8px 4px}.sib-sms-select__phone-number{width:calc(100% - 70px);height:100%;padding:8px;border-radius:3px;border:0;outline:0;font-size:inherit}.sib-sms-select__label-text{margin-left:8px;margin-left:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}@media screen and (max-width: 480px){.sib-sms-select{display:block}.sib-sms-select__title{display:inline-block;max-width:100%;margin-bottom:10px}.sib-container--small .sib-sms-select__title{display:flex}.sib-container--small .sib-sms-select__title .sib-flag{margin-left:0;bottom:0}.sib-container--small .sib-sms-select__title .sib-sms-select__label-text{margin-left:0.5rem;padding-bottom:0}.sib-sms-select__title::after{content:'';display:block;position:absolute;right:20px;top:50%;width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid #000}.sib-sms-select__title__phone-number{padding-right:45px}.sib-sms-select__title>.sib-flag{margin-left:10px;float:left;position:relative;bottom:4px}.sib-sms-select__title>.sib-sms-select__label-text{display:inline-block;max-width:70%;margin-left:18px;padding-bottom:5px;font-size:20px;float:left}}@media screen and (max-width: 480px){.sib-sms-tooltip{position:absolute;right:12px;top:56%;width:18px;height:18px}.sib-sms-tooltip__icon{color:#FFF;width:24px;height:24px;display:block;background:transparent;text-align:center;font-size:12px !important;padding:4px}}@media screen and (max-width: 375px){.g-recaptcha.sib-visible-recaptcha{transform:scale(0.8);-webkit-transform:scale(0.8);transform-origin:0 0;-webkit-transform-origin:0 0}}.sib-form *,.sib-form ::after,.sib-form ::before{box-sizing:border-box}.sib-form{background-attachment:fixed;font-size:16px;font-family:Roboto, sans-serif;padding:32px 12px 32px;margin:0}.sib-form__declaration{display:flex;padding:0 16px;align-items:center}.sib-form__declaration .declaration-block-icon{display:flex;padding:0 16px 0 0;margin:0}.sib-form__declaration .declaration-block-icon [class^="sib-svgIcon"]{width:65px;height:65px}.sib-form__declaration p{line-height:1.5em;margin:0}.sib-form ul,.sib-form ol{padding:0}#sib-container{background:#fff;margin:0 auto;padding:17px;display:inline-block;width:100%}#sib-form{text-align:left}.sib-menu{display:none;position:absolute;top:0;left:0;z-index:10;background-color:#fff;border:1px solid #d1d1d1;border-radius:3px;margin-top:8px}.sib-menu .entry__choice{white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis;padding:0;text-indent:0}.sib-menu__item-list{margin:0;list-style:none;overflow-y:auto;overflow-x:hidden;box-shadow:none;margin-top:8px;max-height:360px;border:none;padding:12px 0}.sib-menu__item{line-height:1.5em;cursor:pointer;padding:4px 16px;overflow:hidden}.sib-menu__item:hover{background-color:#8ED8FD}.sib-menu__apply{text-align:right;padding:8px 12px 12px 0}@media screen and (max-width: 375px){.sib-menu__apply{display:flex;flex-direction:column-reverse;padding:8px}}.sib-menu__apply button{padding:8px 16px}.sib-menu__separator{font-size:20px;vertical-align:sub}.sib-menu__select{padding:0px 7px}.sib-menu__select button{padding:8px 5px}.sib-menu .input_replaced{opacity:0;position:static;width:0px;margin:0}.sib-menu .sib-multiselect__label{width:100%}.sib-menu .sib-multiselect__label-text{text-indent:0}#sib-other-container .entry__controls--other{margin-left:1.5em}#sib-other-container .entry__choice--other{width:100%}#sib-other-container #sib-other-reason{width:100%;padding:8px;resize:vertical;border:1px solid #687484}.checkbox__label{word-wrap:break-word}.checkbox.checkbox_tick_positive::before{left:calc(50% - 1px)}.input_display{line-height:1.5rem}.entry__choice{width:100%;margin-bottom:3px;font-family:Roboto, sans-serif;word-wrap:break-all;word-wrap:break-word}.entry__label{margin-bottom:10px;width:100%;font-weight:500;word-break:break-word;word-wrap:break-word}.entry__label_optin{display:inline}.entry__label>*{float:left}.entry__label::after{content:attr(data-required);font-size:1em;color:#FF4949;text-decoration:none;word-wrap:break-all;word-wrap:break-word;display:inline}.entry__specification{margin:10px 0}.entry__controls{margin:0}.entry__error{display:none;margin-top:6px;margin-bottom:6px;background:transparent}.sib-entry_mcq .entry__controls{display:block;background:transparent;border:none;outline:none}.sib-form-block{padding:0 16px;word-wrap:break-word;outline:none}.sib-form-block p,.sib-form-block ol,.sib-form-block ul{text-align:inherit;margin:0;line-height:1.5em}.sib-form-block ol,.sib-form-block ul{list-style-position:inside}.sib-form-block__button{display:inline-block;padding:8px 18px;border:none;overflow-wrap:break-word;max-width:100%;cursor:pointer}.sib-form-block__button-disabled{opacity:0.5}.sib-form-block__button-with-loader{min-height:40px;line-height:23px}.sib-image-form-block{padding:2px}.sib-image-form-block a{display:block;overflow:hidden}.sib-image-form-block img{max-width:100%}.sib-divider-form-block{border:0;margin:0}.form__label-row{display:flex;flex-direction:column;justify-content:stretch}.form__label-row--horizontal{flex-direction:row;align-items:flex-start;margin:10px 0}.form__label-row--horizontal>*:first-child{margin-right:20px}.form__label-row--horizontal>*{width:50%;flex-grow:1}.input{width:calc(100% - 1rem)}.input--multiselect{position:relative;padding-right:32px;line-height:37px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.input--multiselect::before{content:'';position:absolute;right:8px;border:8px solid transparent;border-top-color:#343F4E;top:calc(50% - 4px)}.input--select{position:relative;width:100%}.input--select::before,.input--select::after{content:'';position:absolute;right:8px}.input--select::before{top:calc(50% - 12px);border:5px solid transparent;border-bottom-color:#343F4E}.input--select::after{top:calc(50% + 2px);border:5px solid transparent;border-top-color:#343F4E}.input--hidden{display:none !important}input::-webkit-input-placeholder{color:#BFCAD8}input::-moz-placeholder{color:#BFCAD8}input:-ms-input-placeholder{color:#BFCAD8}input:-moz-placeholder{color:#BFCAD8}textarea.input{padding:calc(.5rem - 1px)}.sib-form-container a{text-decoration:underline;color:#2BB2FC}.sib-sms-input{width:100%;display:flex;align-items:center}.sib-sms-input .sib-smscode-select{width:70px;margin-right:10px;flex-shrink:0}.sib-sms-input .entry__controls{width:100%}.sib-sms-input .sib-menu__item{padding:4px 2px}.form__entry{position:static;margin-left:0;padding-left:0}.sib-panel{position:relative;width:100%;margin:24px 0;padding:10px 25px;border-width:1px;border-style:solid;border-radius:3px;color:#3C4858;text-align:center;box-shadow:none}.sib-panel--active{display:block}.sib-panel--inactive{display:none}.sib-panel__text{margin:0;font-weight:600;text-align:left}.sib-panel__link{padding:0 5px;color:#3C4858;text-decoration:underline;cursor:pointer}.sib-panel__close-icon{position:absolute;top:12px;right:25px;cursor:pointer}.sib-form-message-panel{margin:0 0 1.25rem 0;width:100%;padding:0.4375rem;border:1px solid;display:none}.sib-form-message-panel--active{display:inline-block}.sib-form-message-panel__text{display:flex;align-items:center;margin:0;padding:0.5rem}.sib-form-message-panel__text .sib-icon{contain:strict;display:inline-block;fill:currentColor}.sib-form-message-panel__text .sib-notification__icon{height:1.5em;width:1.5em;flex-shrink:0;margin-right:calc(1rem - 1px)}.sib-loader{display:inline-block;position:relative;width:64px;height:64px}.checkbox_tick_positive:before{left:49%}@media screen and (max-width: 500px){#sib-container{padding:32px 9px 32px}.form__label-row--horizontal{flex-direction:column}.form__label-row--horizontal>*{width:100%}}.sib-loader div{position:absolute;width:5px;height:5px;background:#fff;border-radius:50%;animation:loader 1.2s linear infinite}.sib-loader div:nth-child(1){animation-delay:0s;top:29px;left:53px}.sib-loader div:nth-child(2){animation-delay:-0.1s;top:18px;left:50px}.sib-loader div:nth-child(3){animation-delay:-0.2s;top:9px;left:41px}.sib-loader div:nth-child(4){animation-delay:-0.3s;top:6px;left:29px}.sib-loader div:nth-child(5){animation-delay:-0.4s;top:9px;left:18px}.sib-loader div:nth-child(6){animation-delay:-0.5s;top:18px;left:9px}.sib-loader div:nth-child(7){animation-delay:-0.6s;top:29px;left:6px}.sib-loader div:nth-child(8){animation-delay:-0.7s;top:41px;left:9px}.sib-loader div:nth-child(9){animation-delay:-0.8s;top:50px;left:18px}.sib-loader div:nth-child(10){animation-delay:-0.9s;top:53px;left:29px}.sib-loader div:nth-child(11){animation-delay:-1s;top:50px;left:41px}.sib-loader div:nth-child(12){animation-delay:-1.1s;top:41px;left:50px}.entry__choice label p{display:inline}@keyframes loader{0%,20%,80%,100%{transform:scale(1)}50%{transform:scale(1.5)}}@media screen and (max-width: 400px){#sib-container{padding:32px 0px 32px}}@media screen and (max-width: 480px){.sib-image-form-block img{height:auto !important}}.progress-indicator{background:transparent}.sib-hide-loader-icon{display:none}
|
236 |
+
|
237 |
+
.sib-form ::-webkit-input-placeholder{color:#c0ccda;opacity:1}.sib-form ::-moz-placeholder{color:#c0ccda;opacity:1}.sib-form :-ms-input-placeholder{color:#c0ccda;opacity:1}.sib-form ::-ms-input-placeholder{color:#c0ccda;opacity:1}.sib-form ::placeholder{color:#c0ccda;opacity:1}.sib-form .sib-form_fieldset{display:table-row-group}.sib-form .fieldset__separator{display:table-row}.sib-form .fieldset__separator:after,.sib-form .fieldset__separator:before{background:#c0ccda;background-clip:padding-box;border:solid transparent;border-width:calc(4rem - 1px) 0 4rem;-moz-box-sizing:content-box;box-sizing:content-box;content:"";display:table-cell;height:1px}.sib-form .form__fieldset{border:0;display:table-row;padding:0}.sib-form .form__fieldset:first-child .form__entries,.sib-form .form__fieldset:first-child .form__legend{padding-top:0}.sib-form .form__entries,.sib-form .form__legend{display:table-cell;margin:0;padding-top:4rem;vertical-align:top}.sib-form .form__legend{font-size:1.14869835rem;line-height:1.5rem;font-weight:700;padding-right:2.5rem}@media (max-width: 45rem){.sib-form .fieldset__separator,.sib-form .form__entries,.sib-form .form__fieldset,.sib-form .form__legend,.sib-form .sib-form_fieldset{display:block}.sib-form .form__legend{padding-bottom:.5rem;padding-right:0}.sib-form .form__entries{padding-top:0}.sib-form .fieldset__separator{border:0}}.sib-form .form__entry{border:0;margin:0;padding:0;position:relative}.sib-form .form__entry:not(:first-child){margin-top:1.5rem}.sib-form .entry__label+.form__entry{margin-top:0}.sib-form .entry__label{display:table;font-weight:700;padding:0;white-space:normal}.sib-form .form__row{display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;margin:-.25rem -.75rem}.sib-form .form__row:not(:first-child){margin-top:1.25rem}.sib-form .entry__label+.form__row{margin-top:-.25rem}.sib-form .form__row>.form__entry{margin:.25rem .75rem}.sib-form .entry__optional-indicator{color:#687484;font-size:.87055056rem;line-height:1rem;font-weight:400}.sib-form .entry__field{-webkit-align-items:center;align-items:center;background:#fff;border:1px solid #c0ccda;border-radius:3px;display:-webkit-inline-flex;display:inline-flex;margin:.25rem 0;max-width:100%}.sib-form .entry__field:focus-within{box-shadow:0 0 0 2px #c9e1f4}.sib-form .input,.sib-form .input__affix{background:none;border:0;font:inherit;margin:0}.sib-form .input:first-child,.sib-form .input__affix:first-child{padding-left:.5rem}.sib-form .input:last-child,.sib-form .input__affix:last-child{padding-right:.5rem}.sib-form .input,.sib-form .input__button{-moz-box-sizing:content-box;box-sizing:content-box;color:inherit;outline:0}.sib-form .input:not(textarea),.sib-form .input__button{height:calc(2.5rem - 2px)}.sib-form .input__affix{color:#687484;-webkit-flex-shrink:0;flex-shrink:0}.sib-form .input__button{cursor:pointer;padding:0 .5rem}.sib-form .input__button[type=submit]{border-bottom-left-radius:0;border-left:1px solid #c0ccda;border-top-left-radius:0;color:inherit;margin-left:.5rem}.sib-form .input__button .sib-icon{height:1.5rem;vertical-align:bottom;width:1.5rem}.sib-form .input{box-shadow:none;min-width:1px;padding:0}.sib-form textarea.input{padding:calc(.5rem - 1px)}.sib-form select.input{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 286.1 167'%3E%3Cpath d='M24.1 0h238c21.4 0 32.1 25.9 17 41l-119 119c-9.4 9.4-24.6 9.4-33.9 0L7.1 41C-8 25.9 2.7 0 24.1 0z' fill='%233c4858'/%3E%3C/svg%3E");background-position:right .65em top 50%;background-repeat:no-repeat;background-size:.65em auto}.sib-form select.input:first-child,.sib-form select.input:last-child{padding-right:calc(2rem - 1px)}.sib-form .sib-entry_block .entry__field,.sib-form .form__row .entry__field,.sib-form .sib-form_block .entry__field{display:-webkit-flex;display:flex}.sib-form .sib-entry_block .input,.sib-form .form__row .input,.sib-form .sib-form_block .input{-webkit-flex-grow:1;flex-grow:1}.sib-form .sib-entry_phrasing,.sib-form .sib-entry_phrasing .entry__label,.sib-form .sib-entry_phrasing .entry__specification{display:inline-block}.sib-form .sib-entry_phrasing .entry__label{font-weight:400}.sib-form .sib-entry_errored{margin-left:-.5rem;padding-left:.5rem}.sib-form .sib-entry_errored:before{background:#ff4949;bottom:0;content:"";position:absolute;right:100%;top:0;width:.25rem}.sib-form .entry__error,.sib-form .entry__label,.sib-form .entry__specification,.sib-form .form__error{max-width:40em}.sib-form .entry__error,.sib-form .entry__specification,.sib-form .form__error{display:block}.sib-form .entry__choice+.entry__error,.sib-form .entry__choice+.entry__specification,.sib-form .entry__error+.entry__error,.sib-form .entry__error+.entry__specification,.sib-form .entry__specification+.entry__error,.sib-form .entry__specification+.entry__specification{margin-top:.5rem}.sib-form .entry__error{color:#ff4949;font-size:.87055056rem;line-height:1rem}.sib-form .entry__specification{color:#687484;margin:0}.sib-form .entry__choice{padding-left:1.5em;text-indent:-1.5em}.sib-form .entry__choice .checkbox,.sib-form .entry__choice .radio-button{margin-right:.5em}.sib-form .entry__choice .sib-toggletip{text-indent:0}.sib-form .entry__choice:not(:first-child){margin-top:.5rem}.sib-form .entry__choices.menu{margin-top:2px;max-height:20rem;overflow:auto;padding:.5rem}.sib-form .checkbox,.sib-form .radio-button{background:#fff;border:1px solid #687484;cursor:pointer;display:inline-block;height:1em;vertical-align:-.125em;width:1em;position:relative}.sib-form .checkbox{border-radius:3px}.sib-form .radio-button{border-radius:50%}.sib-form .radio-button:before{border-radius:50%;bottom:2px;content:"";left:2px;position:absolute;right:2px;top:2px}.sib-form .checkbox_tick_negative:after,.sib-form .checkbox_tick_negative:before{border:solid #fff;border-width:0 0 0 2px;bottom:0;content:"";left:50%;margin-left:-1px;position:absolute;top:0}.sib-form .checkbox_tick_negative:after{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.sib-form .checkbox_tick_negative:before,.sib-form .checkbox_tick_positive:before{-webkit-transform:rotate(45deg);transform:rotate(45deg)}.sib-form .checkbox_tick_positive:before{border-color:#fff;border-style:solid;border-width:0 2px 2px 0;bottom:1px;content:"";left:50%;margin-left:-25%;position:absolute;top:1px;-webkit-transform-origin:80% 45%;transform-origin:80% 45%;width:50%}.sib-form .input_replaced{opacity:0;position:absolute;z-index:-1}.sib-form .input_replaced:checked+.checkbox_tick_positive{background:#13ce66;border-color:#13ce66}.sib-form .input_replaced:checked+.checkbox_tick_negative{background:#ff4949;border-color:#ff4949}.sib-form .input_replaced:checked+.radio-button{border-color:#0092ff}.sib-form .input_replaced:checked+.radio-button:before{background:#0092ff}.sib-form .input_replaced:indeterminate+.checkbox{background:#fff;border-color:#687484}.sib-form .input_replaced:indeterminate+.checkbox:before{background:#687484;border:0;content:"";height:2px;left:2px;margin:-1px 0 0;position:absolute;right:2px;-webkit-transform:none;transform:none;top:50%;width:auto}.sib-form .input_replaced:indeterminate+.checkbox:after{content:normal}.sib-form .input_replaced:active+.checkbox,.sib-form .input_replaced:active+.radio-button,.sib-form .input_replaced:focus+.checkbox,.sib-form .input_replaced:focus+.radio-button{box-shadow:0 0 0 2px #c9e1f4}.sib-form .choice__form{border:0;margin:0;padding:0}.sib-form .choice__form[disabled]{display:none}.sib-form .entry__choice+.choice__form{border-left:2px solid #c0ccda;margin-left:calc(.5em - 1px);padding:0.5rem calc(.5rem + .5em - 1px)}.sib-form ::-ms-reveal{display:none}.sib-form ::-webkit-inner-spin-button,.sib-form ::-webkit-search-decoration{display:none}.sib-form [type=search]{-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield}.sib-form .input[readonly]{background-color:#f9fafc}.sib-form .input[type=text]+.input__password-toggler{color:#0092ff}.sib-form .sib-ap-nostyle-input-icon{display:none}.sib-form .sib-ap-nostyle-dropdown-menu{-moz-box-sizing:content-box;box-sizing:content-box;background:#fff;border:1px solid #c0ccda;border-radius:3px;list-style:none;margin:0;max-width:100vw;min-width:100%;padding:calc(.5rem - 1px) 0}.sib-form .sib-ap-nostyle-dropdown-menu.sib-collapsible__content{position:absolute;top:100%;z-index:1}.sib-form .sib-ap-nostyle-dropdown-menu.sib-collapsible__content:not(.sib-collapsible__content_toggled){display:none}.sib-form .sib-ap-nostyle-dropdown-menu em{font-style:normal;font-weight:700}.sib-form .sib-ap-nostyle-input{padding-right:.5rem}.sib-form .sib-ap-nostyle-suggestion{cursor:default;color:inherit;cursor:pointer;display:block;overflow:hidden;padding:.5rem 1rem;text-decoration:none;text-overflow:ellipsis;white-space:nowrap}.sib-form .sib-ap-nostyle-cursor,.sib-form .sib-ap-nostyle-suggestion:focus,.sib-form .sib-ap-nostyle-suggestion:hover{background:#eff2f7}.sib-form .sib-ap-footer{display:none}.sib-form .menu{background:#fff;border:1px solid #c0ccda;border-radius:3px;list-style:none;margin:0;max-width:100vw;min-width:100%;padding:calc(.5rem - 1px) 0}.sib-form .menu.sib-collapsible__content{position:absolute;top:100%;z-index:1}.sib-form .menu.sib-collapsible__content:not(.sib-collapsible__content_toggled){display:none}.sib-form .menu__content,.sib-form .menu__heading{padding:0;margin:1rem}.sib-form .menu__content:first-child,.sib-form .menu__heading:first-child{margin-top:.5rem}.sib-form .menu__content:last-child,.sib-form .menu__heading:last-child{margin-bottom:.5rem}.sib-form .menu__heading{font-size:1.31950791rem;line-height:1.5rem;font-weight:400}.sib-form .menu__content{list-style:none}.sib-form .menu__icon{color:#8492a6;height:1em;vertical-align:-.125em;width:1em;margin-right:.5rem}.sib-form .menu__control{color:inherit;cursor:pointer;display:block;overflow:hidden;padding:.5rem 1rem;text-decoration:none;text-overflow:ellipsis;white-space:nowrap}.sib-form .menu__control:focus,.sib-form .menu__control:hover{background:#eff2f7}.sib-form .menu__divider{border:0;border-top:1px solid #c0ccda;margin:.5rem 0}.sib-form .clickable_button,.sib-form .clickable_link{font:inherit;margin:0}.sib-form .clickable_button.sib-collapsible__trigger:before,.sib-form .clickable_link.sib-collapsible__trigger:before{border-left:.25rem solid transparent;border-right:.25rem solid transparent;border-bottom:0;border-top:.25rem solid;content:"";float:right;margin:.625rem 0 0 .25em}.sib-form .clickable_button.sib-collapsible__trigger_toggled:before,.sib-form .clickable_link.sib-collapsible__trigger_toggled:before{border-bottom:.25rem solid;border-top:0}.sib-form .clickable_button:not([disabled]),.sib-form .clickable_link:not([disabled]){cursor:pointer}.sib-form .clickable_button{background:#0092ff;border:1px solid #0092ff;border-radius:3px;color:#fff;display:inline-block;outline:0;padding:calc(.5rem - 1px) calc(1rem - 1px);text-decoration:none}.sib-form .clickable_button.sib-collapsible__trigger{overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap}.sib-form .clickable_button[disabled]{opacity:.5}.sib-form .clickable_button:focus{box-shadow:0 0 0 2px #c9e1f4}.sib-form .clickable_button:focus:not([disabled]),.sib-form .clickable_button:hover:not([disabled]){background:#007cd9;border-color:#007cd9}.sib-form .clickable_ghost{background:none;border-color:#c0ccda;color:#3c4858}.sib-form .clickable_ghost:focus:not([disabled]),.sib-form .clickable_ghost:hover:not([disabled]){background:none;border-color:#8492a6}.sib-form .clickable_dropdown{display:inline-block;position:relative}.sib-form .clickable_dropdown .menu{margin-top:2px}.sib-form .clickable_dropdown .menu_left{left:0}.sib-form .clickable_dropdown .menu_right{right:0}.sib-form .clickable_block{width:100%}.sib-form .clickable_cta{border-radius:9999em}.sib-form .clickable_link{background:none;border:0;color:#0092ff;display:inline;padding:0;text-decoration:none}.sib-form .clickable_link:focus,.sib-form .clickable_link:hover{color:#007cd9;text-decoration:underline}.sib-form .clickable_link:focus{outline:0}.sib-form .clickable_sneaky,.sib-form .clickable_sneaky:focus,.sib-form .clickable_sneaky:hover{color:inherit}.sib-form .clickable_plan{color:#0092ff}.sib-form .clickable_plan:focus,.sib-form .clickable_plan:hover{color:#007cd9}.sib-form .clickable_destructive{background:#ff4949;border-color:#ff4949}.sib-form .clickable_destructive:focus:not([disabled]),.sib-form .clickable_destructive:hover:not([disabled]){background:#d93e3e;border-color:#d93e3e}.sib-form .clickable__group{display:-webkit-inline-flex;display:inline-flex;-webkit-flex-wrap:wrap;flex-wrap:wrap}.sib-form .clickable__group .clickable_button:focus,.sib-form .clickable__group .clickable_button:hover{position:relative}.sib-form .clickable__group .clickable_button:not(:first-child),.sib-form .clickable__group .clickable_dropdown:not(:first-child) .clickable_button{border-bottom-left-radius:0;border-top-left-radius:0;margin-left:-1px}.sib-form .clickable__group>.clickable_button:not(:last-child),.sib-form .clickable__group>.clickable_dropdown:not(:last-child) .clickable_button{border-bottom-right-radius:0;border-top-right-radius:0}.sib-form .clickable__group>.clickable_dropdown:not(:last-child) .clickable_link,.sib-form .clickable__group>.clickable_link:not(:last-child){margin-right:1.5em;position:relative}.sib-form .clickable__group>.clickable_dropdown:not(:last-child) .clickable_link:after,.sib-form .clickable__group>.clickable_link:not(:last-child):after{background:#c0ccda;border-radius:50%;content:"";cursor:auto;display:inline-block;height:.25rem;pointer-events:none;position:absolute;right:-.9em;top:.7em;width:.25rem}.sib-form .clickable__icon{height:1.5rem;vertical-align:bottom;width:1.5rem}.sib-form .clickable__icon:not(.sib-icon_standalone){margin-right:calc(.7002rem - 1px)}.sib-form .progress-indicator{-webkit-align-items:center;align-items:center;background:rgba(255,255,255,0.9);display:-webkit-flex;display:flex;height:100%;-webkit-justify-content:center;justify-content:center;width:100%}.sib-form .progress-indicator .progress-indicator__icon{fill:#0092ff;height:2rem;width:2rem}.sib-form .progress-indicator_small .progress-indicator__icon{height:1rem;width:1rem}.sib-form .progress-indicator__icon{-webkit-animation:indicator-spin 1.3s cubic-bezier(0.46, 0.35, 0.39, 0.85) infinite;animation:indicator-spin 1.3s cubic-bezier(0.46, 0.35, 0.39, 0.85) infinite}@-webkit-keyframes indicator-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes indicator-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}
|
238 |
+
|
@@ -0,0 +1,353 @@
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
1 |
+
{
|
2 |
+
"change_log": [
|
3 |
+
"",
|
4 |
+
" Bug: Fixed the issue with validation of date field for contact section"
|
5 |
+
],
|
6 |
+
"products": [
|
7 |
+
{
|
8 |
+
"name": "Pro Bundle",
|
9 |
+
"img": "https://quizandsurveymaster.com/wp-content/uploads/edd/2021/06/Pro.png",
|
10 |
+
"link": "https://quizandsurveymaster.com/?post_type=download&p=306210"
|
11 |
+
},
|
12 |
+
{
|
13 |
+
"name": "Plus Bundle",
|
14 |
+
"img": "https://quizandsurveymaster.com/wp-content/uploads/edd/2021/06/PLUS.png",
|
15 |
+
"link": "https://quizandsurveymaster.com/?post_type=download&p=306190"
|
16 |
+
},
|
17 |
+
{
|
18 |
+
"name": "Basic Bundle",
|
19 |
+
"img": "https://quizandsurveymaster.com/wp-content/uploads/edd/2021/06/Basic-1.png",
|
20 |
+
"link": "https://quizandsurveymaster.com/?post_type=download&p=305426"
|
21 |
+
},
|
22 |
+
{
|
23 |
+
"name": "Premium Bundle",
|
24 |
+
"img": "https://quizandsurveymaster.com/wp-content/uploads/edd/2020/04/premium-bundle-qsm-scaled.jpg",
|
25 |
+
"link": "https://quizandsurveymaster.com/?post_type=download&p=275059"
|
26 |
+
}
|
27 |
+
],
|
28 |
+
"new_addons": [
|
29 |
+
{
|
30 |
+
"name": "Pro Bundle",
|
31 |
+
"img": "https://quizandsurveymaster.com/wp-content/uploads/edd/2021/06/Pro.png",
|
32 |
+
"link": "https://quizandsurveymaster.com/?post_type=download&p=306210",
|
33 |
+
"price": {
|
34 |
+
"amount": "179.00"
|
35 |
+
},
|
36 |
+
"description": "All QSM Addons in one single and affordable package. Over 34 addons are included in this package and new addons are added automatically. Save over $1600 by buying our bundle."
|
37 |
+
},
|
38 |
+
{
|
39 |
+
"name": "Plus Bundle",
|
40 |
+
"img": "https://quizandsurveymaster.com/wp-content/uploads/edd/2021/06/PLUS.png",
|
41 |
+
"link": "https://quizandsurveymaster.com/?post_type=download&p=306190",
|
42 |
+
"price": {
|
43 |
+
"amount": "149.00"
|
44 |
+
},
|
45 |
+
"description": "14+ addons to add useful features to your quiz and surveys. "
|
46 |
+
},
|
47 |
+
{
|
48 |
+
"name": "Basic Bundle",
|
49 |
+
"img": "https://quizandsurveymaster.com/wp-content/uploads/edd/2021/06/Basic-1.png",
|
50 |
+
"link": "https://quizandsurveymaster.com/?post_type=download&p=305426",
|
51 |
+
"price": {
|
52 |
+
"amount": "99.00"
|
53 |
+
},
|
54 |
+
"description": "All the right addons to get you started with QSM premium features. "
|
55 |
+
},
|
56 |
+
{
|
57 |
+
"name": "Pool",
|
58 |
+
"img": "https://quizandsurveymaster.com/wp-content/uploads/edd/2021/06/Poolv2-1.png",
|
59 |
+
"link": "https://quizandsurveymaster.com/?post_type=download&p=302299",
|
60 |
+
"price": {
|
61 |
+
"1site": "14.00",
|
62 |
+
"2-5sites": "24.00",
|
63 |
+
"unlimited": "49.00"
|
64 |
+
},
|
65 |
+
"description": ""
|
66 |
+
},
|
67 |
+
{
|
68 |
+
"name": "Ivory",
|
69 |
+
"img": "https://quizandsurveymaster.com/wp-content/uploads/edd/2021/06/Ivoryv2-1.png",
|
70 |
+
"link": "https://quizandsurveymaster.com/?post_type=download&p=302297",
|
71 |
+
"price": {
|
72 |
+
"1site": "14.00",
|
73 |
+
"2-5sites": "24.00",
|
74 |
+
"unlimited": "49.00"
|
75 |
+
},
|
76 |
+
"description": ""
|
77 |
+
},
|
78 |
+
{
|
79 |
+
"name": "Fragrance",
|
80 |
+
"img": "https://quizandsurveymaster.com/wp-content/uploads/edd/2021/06/Fragrancev2.png",
|
81 |
+
"link": "https://quizandsurveymaster.com/?post_type=download&p=300658",
|
82 |
+
"price": {
|
83 |
+
"1site": "14.00",
|
84 |
+
"2-5sites": "24.00",
|
85 |
+
"unlimited": "49.00"
|
86 |
+
},
|
87 |
+
"description": ""
|
88 |
+
},
|
89 |
+
{
|
90 |
+
"name": "Breeze",
|
91 |
+
"img": "https://quizandsurveymaster.com/wp-content/uploads/edd/2021/06/Breezev2-1.png",
|
92 |
+
"link": "https://quizandsurveymaster.com/?post_type=download&p=300513",
|
93 |
+
"price": {
|
94 |
+
"1site": "19.00",
|
95 |
+
"2-5sites": "24.00",
|
96 |
+
"unlimited": "39.00"
|
97 |
+
},
|
98 |
+
"description": ""
|
99 |
+
},
|
100 |
+
{
|
101 |
+
"name": "Premium Bundle",
|
102 |
+
"img": "https://quizandsurveymaster.com/wp-content/uploads/edd/2020/04/premium-bundle-qsm-scaled.jpg",
|
103 |
+
"link": "https://quizandsurveymaster.com/?post_type=download&p=275059",
|
104 |
+
"price": {
|
105 |
+
"1site": "147.00",
|
106 |
+
"3sites": "197.00",
|
107 |
+
"25sites": "297.00"
|
108 |
+
},
|
109 |
+
"description": "All QSM Addons in one single and affordable package. Over 34 addons are included in this package and new addons are added automatically. Save over $1600 by buying our bundle."
|
110 |
+
},
|
111 |
+
{
|
112 |
+
"name": "ActiveCampaign Integration",
|
113 |
+
"img": "https://quizandsurveymaster.com/wp-content/uploads/edd/2020/07/ActiveCampaign_Integration.jpg",
|
114 |
+
"link": "https://quizandsurveymaster.com/?post_type=download&p=141594",
|
115 |
+
"price": {
|
116 |
+
"1site": "19.00",
|
117 |
+
"2-5sites": "29.00",
|
118 |
+
"unlimited": "49.00"
|
119 |
+
},
|
120 |
+
"description": ""
|
121 |
+
},
|
122 |
+
{
|
123 |
+
"name": "Advanced Timer",
|
124 |
+
"img": "https://quizandsurveymaster.com/wp-content/uploads/edd/2020/04/35.jpg",
|
125 |
+
"link": "https://quizandsurveymaster.com/?post_type=download&p=109654",
|
126 |
+
"price": {
|
127 |
+
"personal1site": "19.00",
|
128 |
+
"business2-5sites": "39.00",
|
129 |
+
"developerunlimitedsites": "59.00"
|
130 |
+
},
|
131 |
+
"description": ""
|
132 |
+
}
|
133 |
+
],
|
134 |
+
"blog_post": [
|
135 |
+
{
|
136 |
+
"link": "https://quizandsurveymaster.com/employee-engagement-survey/",
|
137 |
+
"title": "Creating an Employee Engagement Survey in WordPress (5 simple steps)",
|
138 |
+
"excerpt": "<p>Create an employee engagement survey using the QSM plugin for your WordPress website. An employee engagement survey helps in getting to know your employees </p>\n"
|
139 |
+
},
|
140 |
+
{
|
141 |
+
"link": "https://quizandsurveymaster.com/create-interactive-questionnaire/",
|
142 |
+
"title": "How to make Interactive Questionnaire on WordPress? (5 Simple Steps)",
|
143 |
+
"excerpt": "<p>Thinking about adding a fun quiz to your WordPress website? You are in the right place to know all about it and how it is done. So without wasting any time, let us see how you can make interactive questionnaires on WordPress using the QSM plugin. What are Interactive Questionnaires? Many websites host questionnaires under […]</p>\n"
|
144 |
+
}
|
145 |
+
],
|
146 |
+
"popular_products": [
|
147 |
+
{
|
148 |
+
"name": "Google Sheet Connector",
|
149 |
+
"img": "https://quizandsurveymaster.com/wp-content/uploads/edd/2020/03/first-1.jpg",
|
150 |
+
"link": "https://quizandsurveymaster.com/?post_type=download&p=83375",
|
151 |
+
"price": {
|
152 |
+
"personal1site": "29.00",
|
153 |
+
"business2-5sites": "39.00",
|
154 |
+
"developerunlimited": "59.00"
|
155 |
+
},
|
156 |
+
"description": "Sync your surveys with Google Sheets. "
|
157 |
+
},
|
158 |
+
{
|
159 |
+
"name": "Paypal and Stripe Payment Integration",
|
160 |
+
"img": "https://quizandsurveymaster.com/wp-content/uploads/edd/2020/04/Paypal-and-Stripe-Payment-Integration.jpg",
|
161 |
+
"link": "https://quizandsurveymaster.com/?post_type=download&p=63522",
|
162 |
+
"price": {
|
163 |
+
"personal1site": "29.00",
|
164 |
+
"business2-5sites": "39.00",
|
165 |
+
"developerunlimitedsites": "59.00"
|
166 |
+
},
|
167 |
+
"description": "Add payment wall for quiz and surveys using this addon. Integrate Paypal or Stripe and start receiving payments. "
|
168 |
+
},
|
169 |
+
{
|
170 |
+
"name": "Simple Popups",
|
171 |
+
"img": "https://quizandsurveymaster.com/wp-content/uploads/edd/2020/04/Simple-Popups.jpg",
|
172 |
+
"link": "https://quizandsurveymaster.com/?post_type=download&p=38572",
|
173 |
+
"price": {
|
174 |
+
"personal1site": "35.00",
|
175 |
+
"business2-5sites": "56.00",
|
176 |
+
"developerunlimitedsites": "87.00"
|
177 |
+
},
|
178 |
+
"description": "Have you ever wanted to have your quiz or survey inside of a popup? With this easy to use addon, now you can!"
|
179 |
+
},
|
180 |
+
{
|
181 |
+
"name": "Google Analytics Tracking",
|
182 |
+
"img": "https://quizandsurveymaster.com/wp-content/uploads/edd/2020/04/Google-Analytics-Tracking.jpg",
|
183 |
+
"link": "https://quizandsurveymaster.com/?post_type=download&p=34421",
|
184 |
+
"price": {
|
185 |
+
"personal1site": "35.00",
|
186 |
+
"business2-5sites": "56.00",
|
187 |
+
"developerunlimited": "87.00"
|
188 |
+
},
|
189 |
+
"description": "Track your quiz and survey submissions in Google Analytics."
|
190 |
+
},
|
191 |
+
{
|
192 |
+
"name": "Logic",
|
193 |
+
"img": "https://quizandsurveymaster.com/wp-content/uploads/edd/2020/04/Logic.jpg",
|
194 |
+
"link": "https://quizandsurveymaster.com/?post_type=download&p=8071",
|
195 |
+
"price": {
|
196 |
+
"personal1site": "49.00",
|
197 |
+
"business2-5sites": "59.00",
|
198 |
+
"developerunlimitedsites": "99.00"
|
199 |
+
},
|
200 |
+
"description": ""
|
201 |
+
},
|
202 |
+
{
|
203 |
+
"name": "Reporting And Analysis",
|
204 |
+
"img": "https://quizandsurveymaster.com/wp-content/uploads/edd/2020/04/Reporting-And-Analysis.jpg",
|
205 |
+
"link": "https://quizandsurveymaster.com/?post_type=download&p=3437",
|
206 |
+
"price": {
|
207 |
+
"personal1site": "39.00",
|
208 |
+
"business2-5sites": "59.00",
|
209 |
+
"developerunlimitedsites": "99.00"
|
210 |
+
},
|
211 |
+
"description": "Analyze your results by visualizing the data in a variety of different graphs, filter the data, and export the data."
|
212 |
+
},
|
213 |
+
{
|
214 |
+
"name": "Zapier Integration",
|
215 |
+
"img": "https://quizandsurveymaster.com/wp-content/uploads/edd/2020/04/Zapier-Integration.jpg",
|
216 |
+
"link": "https://quizandsurveymaster.com/?post_type=download&p=2809",
|
217 |
+
"price": {
|
218 |
+
"personal1site": "35.00",
|
219 |
+
"business2-5sites": "56.00",
|
220 |
+
"developerunlimitedsites": "87.00"
|
221 |
+
},
|
222 |
+
"description": "With Zapier Integration, Quiz And Survey Master can sends results to over 700 different websites and services using Zapier."
|
223 |
+
},
|
224 |
+
{
|
225 |
+
"name": "Export Results",
|
226 |
+
"img": "https://quizandsurveymaster.com/wp-content/uploads/edd/2020/04/Export-Results.jpg",
|
227 |
+
"link": "https://quizandsurveymaster.com/downloads/export-results/",
|
228 |
+
"price": {
|
229 |
+
"personal1site": "29.00",
|
230 |
+
"business2-5sites": "39.00",
|
231 |
+
"developerunlimitedsites": "59.00"
|
232 |
+
},
|
233 |
+
"description": "This add-on gives you the ability to export your quiz results as a CSV file which can be imported into spreadsheet programs such as Excel and Google Sheets."
|
234 |
+
},
|
235 |
+
{
|
236 |
+
"name": "User Dashboard",
|
237 |
+
"img": "https://quizandsurveymaster.com/wp-content/uploads/edd/2020/04/User-Dashboard.jpg",
|
238 |
+
"link": "https://quizandsurveymaster.com/downloads/user-dashboard/",
|
239 |
+
"price": {
|
240 |
+
"personal1site": "29.00",
|
241 |
+
"business2-5sites": "39.00",
|
242 |
+
"developerunlimitedsites": "59.00"
|
243 |
+
},
|
244 |
+
"description": "This add-on gives you the ability to set up a page where users can review their results from all the quizzes they have taken."
|
245 |
+
},
|
246 |
+
{
|
247 |
+
"name": "MailPoet Integration",
|
248 |
+
"img": "https://quizandsurveymaster.com/wp-content/uploads/edd/2020/04/MailPoet-Integration.jpg",
|
249 |
+
"link": "https://quizandsurveymaster.com/downloads/mailpoet-integration/",
|
250 |
+
"price": {
|
251 |
+
"personal1site": "25.00",
|
252 |
+
"business2-5sites": "40.00",
|
253 |
+
"developerunlimitedsites": "62.00"
|
254 |
+
},
|
255 |
+
"description": "Grow your list of subscribers in MailPoet by using this addon to add users who take your quizzes and surveys!"
|
256 |
+
}
|
257 |
+
],
|
258 |
+
"on_sale_products": [
|
259 |
+
{
|
260 |
+
"name": "Google Sheet Connector",
|
261 |
+
"img": "https://quizandsurveymaster.com/wp-content/uploads/edd/2020/03/first-1.jpg",
|
262 |
+
"link": "https://quizandsurveymaster.com/?post_type=download&p=83375",
|
263 |
+
"price": {
|
264 |
+
"personal1site": "29.00",
|
265 |
+
"business2-5sites": "39.00",
|
266 |
+
"developerunlimited": "59.00"
|
267 |
+
},
|
268 |
+
"description": "Sync your surveys with Google Sheets. "
|
269 |
+
}
|
270 |
+
],
|
271 |
+
"bundles": [
|
272 |
+
{
|
273 |
+
"name": "Pro Bundle",
|
274 |
+
"img": "https://quizandsurveymaster.com/wp-content/uploads/edd/2021/06/Pro.png",
|
275 |
+
"link": "https://quizandsurveymaster.com/?post_type=download&p=306210",
|
276 |
+
"price": {
|
277 |
+
"amount": "179.00"
|
278 |
+
},
|
279 |
+
"desc": "All QSM Addons in one single and affordable package. Over 34 addons are included in this package and new addons are added automatically. Save over $1600 by buying our bundle.",
|
280 |
+
"icon": "https://quizandsurveymaster.com/wp-content/uploads/edd/2021/06/PRO.png"
|
281 |
+
},
|
282 |
+
{
|
283 |
+
"name": "Plus Bundle",
|
284 |
+
"img": "https://quizandsurveymaster.com/wp-content/uploads/edd/2021/06/PLUS.png",
|
285 |
+
"link": "https://quizandsurveymaster.com/?post_type=download&p=306190",
|
286 |
+
"price": {
|
287 |
+
"amount": "149.00"
|
288 |
+
},
|
289 |
+
"desc": "14+ addons to add useful features to your quiz and surveys. ",
|
290 |
+
"icon": "https://quizandsurveymaster.com/wp-content/uploads/edd/2021/06/Plus.png"
|
291 |
+
},
|
292 |
+
{
|
293 |
+
"name": "Basic Bundle",
|
294 |
+
"img": "https://quizandsurveymaster.com/wp-content/uploads/edd/2021/06/Basic-1.png",
|
295 |
+
"link": "https://quizandsurveymaster.com/?post_type=download&p=305426",
|
296 |
+
"price": {
|
297 |
+
"amount": "99.00"
|
298 |
+
},
|
299 |
+
"desc": "All the right addons to get you started with QSM premium features. ",
|
300 |
+
"icon": "https://quizandsurveymaster.com/wp-content/uploads/edd/2021/06/Basic.png"
|
301 |
+
}
|
302 |
+
],
|
303 |
+
"themes": [
|
304 |
+
{
|
305 |
+
"name": "Pool",
|
306 |
+
"img": "https://quizandsurveymaster.com/wp-content/uploads/edd/2021/06/theme-pool.png",
|
307 |
+
"link": "https://quizandsurveymaster.com/?post_type=download&p=302299",
|
308 |
+
"price": {
|
309 |
+
"1site": "14.00",
|
310 |
+
"2-5sites": "24.00",
|
311 |
+
"unlimited": "49.00"
|
312 |
+
},
|
313 |
+
"description": "",
|
314 |
+
"demo": "https://themes.quizandsurveymaster.com/ivory-qsm-theme-demo"
|
315 |
+
},
|
316 |
+
{
|
317 |
+
"name": "Ivory",
|
318 |
+
"img": "https://quizandsurveymaster.com/wp-content/uploads/edd/2021/06/theme-ivory.png",
|
319 |
+
"link": "https://quizandsurveymaster.com/?post_type=download&p=302297",
|
320 |
+
"price": {
|
321 |
+
"1site": "14.00",
|
322 |
+
"2-5sites": "24.00",
|
323 |
+
"unlimited": "49.00"
|
324 |
+
},
|
325 |
+
"description": "",
|
326 |
+
"demo": "https://themes.quizandsurveymaster.com/ivory-qsm-theme-demo"
|
327 |
+
},
|
328 |
+
{
|
329 |
+
"name": "Fragrance",
|
330 |
+
"img": "https://quizandsurveymaster.com/wp-content/uploads/edd/2021/06/theme-fragrance.png",
|
331 |
+
"link": "https://quizandsurveymaster.com/?post_type=download&p=300658",
|
332 |
+
"price": {
|
333 |
+
"1site": "14.00",
|
334 |
+
"2-5sites": "24.00",
|
335 |
+
"unlimited": "49.00"
|
336 |
+
},
|
337 |
+
"description": "",
|
338 |
+
"demo": "https://themes.quizandsurveymaster.com/fragrance-qsm-theme-demo"
|
339 |
+
},
|
340 |
+
{
|
341 |
+
"name": "Breeze",
|
342 |
+
"img": "https://quizandsurveymaster.com/wp-content/uploads/edd/2021/06/theme-breeze.png",
|
343 |
+
"link": "https://quizandsurveymaster.com/?post_type=download&p=300513",
|
344 |
+
"price": {
|
345 |
+
"1site": "19.00",
|
346 |
+
"2-5sites": "24.00",
|
347 |
+
"unlimited": "39.00"
|
348 |
+
},
|
349 |
+
"description": "",
|
350 |
+
"demo": "https://themes.quizandsurveymaster.com/breeze-qsm-theme-demo"
|
351 |
+
}
|
352 |
+
]
|
353 |
+
}
|
@@ -1,4 +1,4 @@
|
|
1 |
Â
<?php
|
2 |
Â
|
3 |
Â
die("Error: Unauthorized Access.");
|
4 |
-
|
1 |
Â
<?php
|
2 |
Â
|
3 |
Â
die("Error: Unauthorized Access.");
|
4 |
+
|
@@ -1,7 +0,0 @@
|
|
1 |
-
/*!
|
2 |
-
* Chart.js v2.9.3
|
3 |
-
* https://www.chartjs.org
|
4 |
-
* (c) 2019 Chart.js Contributors
|
5 |
-
* Released under the MIT License
|
6 |
-
*/
|
7 |
-
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(function(){try{return require("moment")}catch(t){}}()):"function"==typeof define&&define.amd?define(["require"],(function(t){return e(function(){try{return t("moment")}catch(t){}}())})):(t=t||self).Chart=e(t.moment)}(this,(function(t){"use strict";t=t&&t.hasOwnProperty("default")?t.default:t;var e={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},n=function(t,e){return t(e={exports:{}},e.exports),e.exports}((function(t){var n={};for(var i in e)e.hasOwnProperty(i)&&(n[e[i]]=i);var a=t.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var r in a)if(a.hasOwnProperty(r)){if(!("channels"in a[r]))throw new Error("missing channels property: "+r);if(!("labels"in a[r]))throw new Error("missing channel labels property: "+r);if(a[r].labels.length!==a[r].channels)throw new Error("channel and label counts mismatch: "+r);var o=a[r].channels,s=a[r].labels;delete a[r].channels,delete a[r].labels,Object.defineProperty(a[r],"channels",{value:o}),Object.defineProperty(a[r],"labels",{value:s})}a.rgb.hsl=function(t){var e,n,i=t[0]/255,a=t[1]/255,r=t[2]/255,o=Math.min(i,a,r),s=Math.max(i,a,r),l=s-o;return s===o?e=0:i===s?e=(a-r)/l:a===s?e=2+(r-i)/l:r===s&&(e=4+(i-a)/l),(e=Math.min(60*e,360))<0&&(e+=360),n=(o+s)/2,[e,100*(s===o?0:n<=.5?l/(s+o):l/(2-s-o)),100*n]},a.rgb.hsv=function(t){var e,n,i,a,r,o=t[0]/255,s=t[1]/255,l=t[2]/255,u=Math.max(o,s,l),d=u-Math.min(o,s,l),h=function(t){return(u-t)/6/d+.5};return 0===d?a=r=0:(r=d/u,e=h(o),n=h(s),i=h(l),o===u?a=i-n:s===u?a=1/3+e-i:l===u&&(a=2/3+n-e),a<0?a+=1:a>1&&(a-=1)),[360*a,100*r,100*u]},a.rgb.hwb=function(t){var e=t[0],n=t[1],i=t[2];return[a.rgb.hsl(t)[0],100*(1/255*Math.min(e,Math.min(n,i))),100*(i=1-1/255*Math.max(e,Math.max(n,i)))]},a.rgb.cmyk=function(t){var e,n=t[0]/255,i=t[1]/255,a=t[2]/255;return[100*((1-n-(e=Math.min(1-n,1-i,1-a)))/(1-e)||0),100*((1-i-e)/(1-e)||0),100*((1-a-e)/(1-e)||0),100*e]},a.rgb.keyword=function(t){var i=n[t];if(i)return i;var a,r,o,s=1/0;for(var l in e)if(e.hasOwnProperty(l)){var u=e[l],d=(r=t,o=u,Math.pow(r[0]-o[0],2)+Math.pow(r[1]-o[1],2)+Math.pow(r[2]-o[2],2));d<s&&(s=d,a=l)}return a},a.keyword.rgb=function(t){return e[t]},a.rgb.xyz=function(t){var e=t[0]/255,n=t[1]/255,i=t[2]/255;return[100*(.4124*(e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92)),100*(.2126*e+.7152*n+.0722*i),100*(.0193*e+.1192*n+.9505*i)]},a.rgb.lab=function(t){var e=a.rgb.xyz(t),n=e[0],i=e[1],r=e[2];return i/=100,r/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116)-16,500*(n-i),200*(i-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},a.hsl.rgb=function(t){var e,n,i,a,r,o=t[0]/360,s=t[1]/100,l=t[2]/100;if(0===s)return[r=255*l,r,r];e=2*l-(n=l<.5?l*(1+s):l+s-l*s),a=[0,0,0];for(var u=0;u<3;u++)(i=o+1/3*-(u-1))<0&&i++,i>1&&i--,r=6*i<1?e+6*(n-e)*i:2*i<1?n:3*i<2?e+(n-e)*(2/3-i)*6:e,a[u]=255*r;return a},a.hsl.hsv=function(t){var e=t[0],n=t[1]/100,i=t[2]/100,a=n,r=Math.max(i,.01);return n*=(i*=2)<=1?i:2-i,a*=r<=1?r:2-r,[e,100*(0===i?2*a/(r+a):2*n/(i+n)),100*((i+n)/2)]},a.hsv.rgb=function(t){var e=t[0]/60,n=t[1]/100,i=t[2]/100,a=Math.floor(e)%6,r=e-Math.floor(e),o=255*i*(1-n),s=255*i*(1-n*r),l=255*i*(1-n*(1-r));switch(i*=255,a){case 0:return[i,l,o];case 1:return[s,i,o];case 2:return[o,i,l];case 3:return[o,s,i];case 4:return[l,o,i];case 5:return[i,o,s]}},a.hsv.hsl=function(t){var e,n,i,a=t[0],r=t[1]/100,o=t[2]/100,s=Math.max(o,.01);return i=(2-r)*o,n=r*s,[a,100*(n=(n/=(e=(2-r)*s)<=1?e:2-e)||0),100*(i/=2)]},a.hwb.rgb=function(t){var e,n,i,a,r,o,s,l=t[0]/360,u=t[1]/100,d=t[2]/100,h=u+d;switch(h>1&&(u/=h,d/=h),i=6*l-(e=Math.floor(6*l)),0!=(1&e)&&(i=1-i),a=u+i*((n=1-d)-u),e){default:case 6:case 0:r=n,o=a,s=u;break;case 1:r=a,o=n,s=u;break;case 2:r=u,o=n,s=a;break;case 3:r=u,o=a,s=n;break;case 4:r=a,o=u,s=n;break;case 5:r=n,o=u,s=a}return[255*r,255*o,255*s]},a.cmyk.rgb=function(t){var e=t[0]/100,n=t[1]/100,i=t[2]/100,a=t[3]/100;return[255*(1-Math.min(1,e*(1-a)+a)),255*(1-Math.min(1,n*(1-a)+a)),255*(1-Math.min(1,i*(1-a)+a))]},a.xyz.rgb=function(t){var e,n,i,a=t[0]/100,r=t[1]/100,o=t[2]/100;return n=-.9689*a+1.8758*r+.0415*o,i=.0557*a+-.204*r+1.057*o,e=(e=3.2406*a+-1.5372*r+-.4986*o)>.0031308?1.055*Math.pow(e,1/2.4)-.055:12.92*e,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:12.92*i,[255*(e=Math.min(Math.max(0,e),1)),255*(n=Math.min(Math.max(0,n),1)),255*(i=Math.min(Math.max(0,i),1))]},a.xyz.lab=function(t){var e=t[0],n=t[1],i=t[2];return n/=100,i/=108.883,e=(e/=95.047)>.008856?Math.pow(e,1/3):7.787*e+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(e-n),200*(n-(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116))]},a.lab.xyz=function(t){var e,n,i,a=t[0];e=t[1]/500+(n=(a+16)/116),i=n-t[2]/200;var r=Math.pow(n,3),o=Math.pow(e,3),s=Math.pow(i,3);return n=r>.008856?r:(n-16/116)/7.787,e=o>.008856?o:(e-16/116)/7.787,i=s>.008856?s:(i-16/116)/7.787,[e*=95.047,n*=100,i*=108.883]},a.lab.lch=function(t){var e,n=t[0],i=t[1],a=t[2];return(e=360*Math.atan2(a,i)/2/Math.PI)<0&&(e+=360),[n,Math.sqrt(i*i+a*a),e]},a.lch.lab=function(t){var e,n=t[0],i=t[1];return e=t[2]/360*2*Math.PI,[n,i*Math.cos(e),i*Math.sin(e)]},a.rgb.ansi16=function(t){var e=t[0],n=t[1],i=t[2],r=1 in arguments?arguments[1]:a.rgb.hsv(t)[2];if(0===(r=Math.round(r/50)))return 30;var o=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(e/255));return 2===r&&(o+=60),o},a.hsv.ansi16=function(t){return a.rgb.ansi16(a.hsv.rgb(t),t[2])},a.rgb.ansi256=function(t){var e=t[0],n=t[1],i=t[2];return e===n&&n===i?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(n/255*5)+Math.round(i/255*5)},a.ansi16.rgb=function(t){var e=t%10;if(0===e||7===e)return t>50&&(e+=3.5),[e=e/10.5*255,e,e];var n=.5*(1+~~(t>50));return[(1&e)*n*255,(e>>1&1)*n*255,(e>>2&1)*n*255]},a.ansi256.rgb=function(t){if(t>=232){var e=10*(t-232)+8;return[e,e,e]}var n;return t-=16,[Math.floor(t/36)/5*255,Math.floor((n=t%36)/6)/5*255,n%6/5*255]},a.rgb.hex=function(t){var e=(((255&Math.round(t[0]))<<16)+((255&Math.round(t[1]))<<8)+(255&Math.round(t[2]))).toString(16).toUpperCase();return"000000".substring(e.length)+e},a.hex.rgb=function(t){var e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];var n=e[0];3===e[0].length&&(n=n.split("").map((function(t){return t+t})).join(""));var i=parseInt(n,16);return[i>>16&255,i>>8&255,255&i]},a.rgb.hcg=function(t){var e,n=t[0]/255,i=t[1]/255,a=t[2]/255,r=Math.max(Math.max(n,i),a),o=Math.min(Math.min(n,i),a),s=r-o;return e=s<=0?0:r===n?(i-a)/s%6:r===i?2+(a-n)/s:4+(n-i)/s+4,e/=6,[360*(e%=1),100*s,100*(s<1?o/(1-s):0)]},a.hsl.hcg=function(t){var e=t[1]/100,n=t[2]/100,i=1,a=0;return(i=n<.5?2*e*n:2*e*(1-n))<1&&(a=(n-.5*i)/(1-i)),[t[0],100*i,100*a]},a.hsv.hcg=function(t){var e=t[1]/100,n=t[2]/100,i=e*n,a=0;return i<1&&(a=(n-i)/(1-i)),[t[0],100*i,100*a]},a.hcg.rgb=function(t){var e=t[0]/360,n=t[1]/100,i=t[2]/100;if(0===n)return[255*i,255*i,255*i];var a,r=[0,0,0],o=e%1*6,s=o%1,l=1-s;switch(Math.floor(o)){case 0:r[0]=1,r[1]=s,r[2]=0;break;case 1:r[0]=l,r[1]=1,r[2]=0;break;case 2:r[0]=0,r[1]=1,r[2]=s;break;case 3:r[0]=0,r[1]=l,r[2]=1;break;case 4:r[0]=s,r[1]=0,r[2]=1;break;default:r[0]=1,r[1]=0,r[2]=l}return a=(1-n)*i,[255*(n*r[0]+a),255*(n*r[1]+a),255*(n*r[2]+a)]},a.hcg.hsv=function(t){var e=t[1]/100,n=e+t[2]/100*(1-e),i=0;return n>0&&(i=e/n),[t[0],100*i,100*n]},a.hcg.hsl=function(t){var e=t[1]/100,n=t[2]/100*(1-e)+.5*e,i=0;return n>0&&n<.5?i=e/(2*n):n>=.5&&n<1&&(i=e/(2*(1-n))),[t[0],100*i,100*n]},a.hcg.hwb=function(t){var e=t[1]/100,n=e+t[2]/100*(1-e);return[t[0],100*(n-e),100*(1-n)]},a.hwb.hcg=function(t){var e=t[1]/100,n=1-t[2]/100,i=n-e,a=0;return i<1&&(a=(n-i)/(1-i)),[t[0],100*i,100*a]},a.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]},a.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]},a.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]},a.gray.hsl=a.gray.hsv=function(t){return[0,0,t[0]]},a.gray.hwb=function(t){return[0,100,t[0]]},a.gray.cmyk=function(t){return[0,0,0,t[0]]},a.gray.lab=function(t){return[t[0],0,0]},a.gray.hex=function(t){var e=255&Math.round(t[0]/100*255),n=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(n.length)+n},a.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}}));n.rgb,n.hsl,n.hsv,n.hwb,n.cmyk,n.xyz,n.lab,n.lch,n.hex,n.keyword,n.ansi16,n.ansi256,n.hcg,n.apple,n.gray;function i(t){var e=function(){for(var t={},e=Object.keys(n),i=e.length,a=0;a<i;a++)t[e[a]]={distance:-1,parent:null};return t}(),i=[t];for(e[t].distance=0;i.length;)for(var a=i.pop(),r=Object.keys(n[a]),o=r.length,s=0;s<o;s++){var l=r[s],u=e[l];-1===u.distance&&(u.distance=e[a].distance+1,u.parent=a,i.unshift(l))}return e}function a(t,e){return function(n){return e(t(n))}}function r(t,e){for(var i=[e[t].parent,t],r=n[e[t].parent][t],o=e[t].parent;e[o].parent;)i.unshift(e[o].parent),r=a(n[e[o].parent][o],r),o=e[o].parent;return r.conversion=i,r}var o={};Object.keys(n).forEach((function(t){o[t]={},Object.defineProperty(o[t],"channels",{value:n[t].channels}),Object.defineProperty(o[t],"labels",{value:n[t].labels});var e=function(t){for(var e=i(t),n={},a=Object.keys(e),o=a.length,s=0;s<o;s++){var l=a[s];null!==e[l].parent&&(n[l]=r(l,e))}return n}(t);Object.keys(e).forEach((function(n){var i=e[n];o[t][n]=function(t){var e=function(e){if(null==e)return e;arguments.length>1&&(e=Array.prototype.slice.call(arguments));var n=t(e);if("object"==typeof n)for(var i=n.length,a=0;a<i;a++)n[a]=Math.round(n[a]);return n};return"conversion"in t&&(e.conversion=t.conversion),e}(i),o[t][n].raw=function(t){var e=function(e){return null==e?e:(arguments.length>1&&(e=Array.prototype.slice.call(arguments)),t(e))};return"conversion"in t&&(e.conversion=t.conversion),e}(i)}))}));var s=o,l={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},u={getRgba:d,getHsla:h,getRgb:function(t){var e=d(t);return e&&e.slice(0,3)},getHsl:function(t){var e=h(t);return e&&e.slice(0,3)},getHwb:c,getAlpha:function(t){var e=d(t);if(e)return e[3];if(e=h(t))return e[3];if(e=c(t))return e[3]},hexString:function(t,e){e=void 0!==e&&3===t.length?e:t[3];return"#"+v(t[0])+v(t[1])+v(t[2])+(e>=0&&e<1?v(Math.round(255*e)):"")},rgbString:function(t,e){if(e<1||t[3]&&t[3]<1)return f(t,e);return"rgb("+t[0]+", "+t[1]+", "+t[2]+")"},rgbaString:f,percentString:function(t,e){if(e<1||t[3]&&t[3]<1)return g(t,e);var n=Math.round(t[0]/255*100),i=Math.round(t[1]/255*100),a=Math.round(t[2]/255*100);return"rgb("+n+"%, "+i+"%, "+a+"%)"},percentaString:g,hslString:function(t,e){if(e<1||t[3]&&t[3]<1)return p(t,e);return"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)"},hslaString:p,hwbString:function(t,e){void 0===e&&(e=void 0!==t[3]?t[3]:1);return"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+(void 0!==e&&1!==e?", "+e:"")+")"},keyword:function(t){return b[t.slice(0,3)]}};function d(t){if(t){var e=[0,0,0],n=1,i=t.match(/^#([a-fA-F0-9]{3,4})$/i),a="";if(i){a=(i=i[1])[3];for(var r=0;r<e.length;r++)e[r]=parseInt(i[r]+i[r],16);a&&(n=Math.round(parseInt(a+a,16)/255*100)/100)}else if(i=t.match(/^#([a-fA-F0-9]{6}([a-fA-F0-9]{2})?)$/i)){a=i[2],i=i[1];for(r=0;r<e.length;r++)e[r]=parseInt(i.slice(2*r,2*r+2),16);a&&(n=Math.round(parseInt(a,16)/255*100)/100)}else if(i=t.match(/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)){for(r=0;r<e.length;r++)e[r]=parseInt(i[r+1]);n=parseFloat(i[4])}else if(i=t.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)){for(r=0;r<e.length;r++)e[r]=Math.round(2.55*parseFloat(i[r+1]));n=parseFloat(i[4])}else if(i=t.match(/(\w+)/)){if("transparent"==i[1])return[0,0,0,0];if(!(e=l[i[1]]))return}for(r=0;r<e.length;r++)e[r]=m(e[r],0,255);return n=n||0==n?m(n,0,1):1,e[3]=n,e}}function h(t){if(t){var e=t.match(/^hsla?\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(e){var n=parseFloat(e[4]);return[m(parseInt(e[1]),0,360),m(parseFloat(e[2]),0,100),m(parseFloat(e[3]),0,100),m(isNaN(n)?1:n,0,1)]}}}function c(t){if(t){var e=t.match(/^hwb\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(e){var n=parseFloat(e[4]);return[m(parseInt(e[1]),0,360),m(parseFloat(e[2]),0,100),m(parseFloat(e[3]),0,100),m(isNaN(n)?1:n,0,1)]}}}function f(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),"rgba("+t[0]+", "+t[1]+", "+t[2]+", "+e+")"}function g(t,e){return"rgba("+Math.round(t[0]/255*100)+"%, "+Math.round(t[1]/255*100)+"%, "+Math.round(t[2]/255*100)+"%, "+(e||t[3]||1)+")"}function p(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+e+")"}function m(t,e,n){return Math.min(Math.max(e,t),n)}function v(t){var e=t.toString(16).toUpperCase();return e.length<2?"0"+e:e}var b={};for(var x in l)b[l[x]]=x;var y=function(t){return t instanceof y?t:this instanceof y?(this.valid=!1,this.values={rgb:[0,0,0],hsl:[0,0,0],hsv:[0,0,0],hwb:[0,0,0],cmyk:[0,0,0,0],alpha:1},void("string"==typeof t?(e=u.getRgba(t))?this.setValues("rgb",e):(e=u.getHsla(t))?this.setValues("hsl",e):(e=u.getHwb(t))&&this.setValues("hwb",e):"object"==typeof t&&(void 0!==(e=t).r||void 0!==e.red?this.setValues("rgb",e):void 0!==e.l||void 0!==e.lightness?this.setValues("hsl",e):void 0!==e.v||void 0!==e.value?this.setValues("hsv",e):void 0!==e.w||void 0!==e.whiteness?this.setValues("hwb",e):void 0===e.c&&void 0===e.cyan||this.setValues("cmyk",e)))):new y(t);var e};y.prototype={isValid:function(){return this.valid},rgb:function(){return this.setSpace("rgb",arguments)},hsl:function(){return this.setSpace("hsl",arguments)},hsv:function(){return this.setSpace("hsv",arguments)},hwb:function(){return this.setSpace("hwb",arguments)},cmyk:function(){return this.setSpace("cmyk",arguments)},rgbArray:function(){return this.values.rgb},hslArray:function(){return this.values.hsl},hsvArray:function(){return this.values.hsv},hwbArray:function(){var t=this.values;return 1!==t.alpha?t.hwb.concat([t.alpha]):t.hwb},cmykArray:function(){return this.values.cmyk},rgbaArray:function(){var t=this.values;return t.rgb.concat([t.alpha])},hslaArray:function(){var t=this.values;return t.hsl.concat([t.alpha])},alpha:function(t){return void 0===t?this.values.alpha:(this.setValues("alpha",t),this)},red:function(t){return this.setChannel("rgb",0,t)},green:function(t){return this.setChannel("rgb",1,t)},blue:function(t){return this.setChannel("rgb",2,t)},hue:function(t){return t&&(t=(t%=360)<0?360+t:t),this.setChannel("hsl",0,t)},saturation:function(t){return this.setChannel("hsl",1,t)},lightness:function(t){return this.setChannel("hsl",2,t)},saturationv:function(t){return this.setChannel("hsv",1,t)},whiteness:function(t){return this.setChannel("hwb",1,t)},blackness:function(t){return this.setChannel("hwb",2,t)},value:function(t){return this.setChannel("hsv",2,t)},cyan:function(t){return this.setChannel("cmyk",0,t)},magenta:function(t){return this.setChannel("cmyk",1,t)},yellow:function(t){return this.setChannel("cmyk",2,t)},black:function(t){return this.setChannel("cmyk",3,t)},hexString:function(){return u.hexString(this.values.rgb)},rgbString:function(){return u.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return u.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){return u.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return u.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return u.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return u.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return u.keyword(this.values.rgb,this.values.alpha)},rgbNumber:function(){var t=this.values.rgb;return t[0]<<16|t[1]<<8|t[2]},luminosity:function(){for(var t=this.values.rgb,e=[],n=0;n<t.length;n++){var i=t[n]/255;e[n]=i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4)}return.2126*e[0]+.7152*e[1]+.0722*e[2]},contrast:function(t){var e=this.luminosity(),n=t.luminosity();return e>n?(e+.05)/(n+.05):(n+.05)/(e+.05)},level:function(t){var e=this.contrast(t);return e>=7.1?"AAA":e>=4.5?"AA":""},dark:function(){var t=this.values.rgb;return(299*t[0]+587*t[1]+114*t[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var t=[],e=0;e<3;e++)t[e]=255-this.values.rgb[e];return this.setValues("rgb",t),this},lighten:function(t){var e=this.values.hsl;return e[2]+=e[2]*t,this.setValues("hsl",e),this},darken:function(t){var e=this.values.hsl;return e[2]-=e[2]*t,this.setValues("hsl",e),this},saturate:function(t){var e=this.values.hsl;return e[1]+=e[1]*t,this.setValues("hsl",e),this},desaturate:function(t){var e=this.values.hsl;return e[1]-=e[1]*t,this.setValues("hsl",e),this},whiten:function(t){var e=this.values.hwb;return e[1]+=e[1]*t,this.setValues("hwb",e),this},blacken:function(t){var e=this.values.hwb;return e[2]+=e[2]*t,this.setValues("hwb",e),this},greyscale:function(){var t=this.values.rgb,e=.3*t[0]+.59*t[1]+.11*t[2];return this.setValues("rgb",[e,e,e]),this},clearer:function(t){var e=this.values.alpha;return this.setValues("alpha",e-e*t),this},opaquer:function(t){var e=this.values.alpha;return this.setValues("alpha",e+e*t),this},rotate:function(t){var e=this.values.hsl,n=(e[0]+t)%360;return e[0]=n<0?360+n:n,this.setValues("hsl",e),this},mix:function(t,e){var n=t,i=void 0===e?.5:e,a=2*i-1,r=this.alpha()-n.alpha(),o=((a*r==-1?a:(a+r)/(1+a*r))+1)/2,s=1-o;return this.rgb(o*this.red()+s*n.red(),o*this.green()+s*n.green(),o*this.blue()+s*n.blue()).alpha(this.alpha()*i+n.alpha()*(1-i))},toJSON:function(){return this.rgb()},clone:function(){var t,e,n=new y,i=this.values,a=n.values;for(var r in i)i.hasOwnProperty(r)&&(t=i[r],"[object Array]"===(e={}.toString.call(t))?a[r]=t.slice(0):"[object Number]"===e?a[r]=t:console.error("unexpected color value:",t));return n}},y.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},y.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},y.prototype.getValues=function(t){for(var e=this.values,n={},i=0;i<t.length;i++)n[t.charAt(i)]=e[t][i];return 1!==e.alpha&&(n.a=e.alpha),n},y.prototype.setValues=function(t,e){var n,i,a=this.values,r=this.spaces,o=this.maxes,l=1;if(this.valid=!0,"alpha"===t)l=e;else if(e.length)a[t]=e.slice(0,t.length),l=e[t.length];else if(void 0!==e[t.charAt(0)]){for(n=0;n<t.length;n++)a[t][n]=e[t.charAt(n)];l=e.a}else if(void 0!==e[r[t][0]]){var u=r[t];for(n=0;n<t.length;n++)a[t][n]=e[u[n]];l=e.alpha}if(a.alpha=Math.max(0,Math.min(1,void 0===l?a.alpha:l)),"alpha"===t)return!1;for(n=0;n<t.length;n++)i=Math.max(0,Math.min(o[t][n],a[t][n])),a[t][n]=Math.round(i);for(var d in r)d!==t&&(a[d]=s[t][d](a[t]));return!0},y.prototype.setSpace=function(t,e){var n=e[0];return void 0===n?this.getValues(t):("number"==typeof n&&(n=Array.prototype.slice.call(e)),this.setValues(t,n),this)},y.prototype.setChannel=function(t,e,n){var i=this.values[t];return void 0===n?i[e]:n===i[e]?this:(i[e]=n,this.setValues(t,i),this)},"undefined"!=typeof window&&(window.Color=y);var _,k=y,w={noop:function(){},uid:(_=0,function(){return _++}),isNullOrUndef:function(t){return null==t},isArray:function(t){if(Array.isArray&&Array.isArray(t))return!0;var e=Object.prototype.toString.call(t);return"[object"===e.substr(0,7)&&"Array]"===e.substr(-6)},isObject:function(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)},isFinite:function(t){return("number"==typeof t||t instanceof Number)&&isFinite(t)},valueOrDefault:function(t,e){return void 0===t?e:t},valueAtIndexOrDefault:function(t,e,n){return w.valueOrDefault(w.isArray(t)?t[e]:t,n)},callback:function(t,e,n){if(t&&"function"==typeof t.call)return t.apply(n,e)},each:function(t,e,n,i){var a,r,o;if(w.isArray(t))if(r=t.length,i)for(a=r-1;a>=0;a--)e.call(n,t[a],a);else for(a=0;a<r;a++)e.call(n,t[a],a);else if(w.isObject(t))for(r=(o=Object.keys(t)).length,a=0;a<r;a++)e.call(n,t[o[a]],o[a])},arrayEquals:function(t,e){var n,i,a,r;if(!t||!e||t.length!==e.length)return!1;for(n=0,i=t.length;n<i;++n)if(a=t[n],r=e[n],a instanceof Array&&r instanceof Array){if(!w.arrayEquals(a,r))return!1}else if(a!==r)return!1;return!0},clone:function(t){if(w.isArray(t))return t.map(w.clone);if(w.isObject(t)){for(var e={},n=Object.keys(t),i=n.length,a=0;a<i;++a)e[n[a]]=w.clone(t[n[a]]);return e}return t},_merger:function(t,e,n,i){var a=e[t],r=n[t];w.isObject(a)&&w.isObject(r)?w.merge(a,r,i):e[t]=w.clone(r)},_mergerIf:function(t,e,n){var i=e[t],a=n[t];w.isObject(i)&&w.isObject(a)?w.mergeIf(i,a):e.hasOwnProperty(t)||(e[t]=w.clone(a))},merge:function(t,e,n){var i,a,r,o,s,l=w.isArray(e)?e:[e],u=l.length;if(!w.isObject(t))return t;for(i=(n=n||{}).merger||w._merger,a=0;a<u;++a)if(e=l[a],w.isObject(e))for(s=0,o=(r=Object.keys(e)).length;s<o;++s)i(r[s],t,e,n);return t},mergeIf:function(t,e){return w.merge(t,e,{merger:w._mergerIf})},extend:Object.assign||function(t){return w.merge(t,[].slice.call(arguments,1),{merger:function(t,e,n){e[t]=n[t]}})},inherits:function(t){var e=this,n=t&&t.hasOwnProperty("constructor")?t.constructor:function(){return e.apply(this,arguments)},i=function(){this.constructor=n};return i.prototype=e.prototype,n.prototype=new i,n.extend=w.inherits,t&&w.extend(n.prototype,t),n.__super__=e.prototype,n},_deprecated:function(t,e,n,i){void 0!==e&&console.warn(t+': "'+n+'" is deprecated. Please use "'+i+'" instead')}},M=w;w.callCallback=w.callback,w.indexOf=function(t,e,n){return Array.prototype.indexOf.call(t,e,n)},w.getValueOrDefault=w.valueOrDefault,w.getValueAtIndexOrDefault=w.valueAtIndexOrDefault;var S={linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return-t*(t-2)},easeInOutQuad:function(t){return(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1)},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return(t-=1)*t*t+1},easeInOutCubic:function(t){return(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return-((t-=1)*t*t*t-1)},easeInOutQuart:function(t){return(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},easeInQuint:function(t){return t*t*t*t*t},easeOutQuint:function(t){return(t-=1)*t*t*t*t+1},easeInOutQuint:function(t){return(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},easeInSine:function(t){return 1-Math.cos(t*(Math.PI/2))},easeOutSine:function(t){return Math.sin(t*(Math.PI/2))},easeInOutSine:function(t){return-.5*(Math.cos(Math.PI*t)-1)},easeInExpo:function(t){return 0===t?0:Math.pow(2,10*(t-1))},easeOutExpo:function(t){return 1===t?1:1-Math.pow(2,-10*t)},easeInOutExpo:function(t){return 0===t?0:1===t?1:(t/=.5)<1?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*--t))},easeInCirc:function(t){return t>=1?t:-(Math.sqrt(1-t*t)-1)},easeOutCirc:function(t){return Math.sqrt(1-(t-=1)*t)},easeInOutCirc:function(t){return(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},easeInElastic:function(t){var e=1.70158,n=0,i=1;return 0===t?0:1===t?1:(n||(n=.3),i<1?(i=1,e=n/4):e=n/(2*Math.PI)*Math.asin(1/i),-i*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n))},easeOutElastic:function(t){var e=1.70158,n=0,i=1;return 0===t?0:1===t?1:(n||(n=.3),i<1?(i=1,e=n/4):e=n/(2*Math.PI)*Math.asin(1/i),i*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/n)+1)},easeInOutElastic:function(t){var e=1.70158,n=0,i=1;return 0===t?0:2==(t/=.5)?1:(n||(n=.45),i<1?(i=1,e=n/4):e=n/(2*Math.PI)*Math.asin(1/i),t<1?i*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*-.5:i*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*.5+1)},easeInBack:function(t){var e=1.70158;return t*t*((e+1)*t-e)},easeOutBack:function(t){var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},easeInOutBack:function(t){var e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:function(t){return 1-S.easeOutBounce(1-t)},easeOutBounce:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:function(t){return t<.5?.5*S.easeInBounce(2*t):.5*S.easeOutBounce(2*t-1)+.5}},C={effects:S};M.easingEffects=S;var P=Math.PI,A=P/180,D=2*P,T=P/2,I=P/4,F=2*P/3,L={clear:function(t){t.ctx.clearRect(0,0,t.width,t.height)},roundedRect:function(t,e,n,i,a,r){if(r){var o=Math.min(r,a/2,i/2),s=e+o,l=n+o,u=e+i-o,d=n+a-o;t.moveTo(e,l),s<u&&l<d?(t.arc(s,l,o,-P,-T),t.arc(u,l,o,-T,0),t.arc(u,d,o,0,T),t.arc(s,d,o,T,P)):s<u?(t.moveTo(s,n),t.arc(u,l,o,-T,T),t.arc(s,l,o,T,P+T)):l<d?(t.arc(s,l,o,-P,0),t.arc(s,d,o,0,P)):t.arc(s,l,o,-P,P),t.closePath(),t.moveTo(e,n)}else t.rect(e,n,i,a)},drawPoint:function(t,e,n,i,a,r){var o,s,l,u,d,h=(r||0)*A;if(e&&"object"==typeof e&&("[object HTMLImageElement]"===(o=e.toString())||"[object HTMLCanvasElement]"===o))return t.save(),t.translate(i,a),t.rotate(h),t.drawImage(e,-e.width/2,-e.height/2,e.width,e.height),void t.restore();if(!(isNaN(n)||n<=0)){switch(t.beginPath(),e){default:t.arc(i,a,n,0,D),t.closePath();break;case"triangle":t.moveTo(i+Math.sin(h)*n,a-Math.cos(h)*n),h+=F,t.lineTo(i+Math.sin(h)*n,a-Math.cos(h)*n),h+=F,t.lineTo(i+Math.sin(h)*n,a-Math.cos(h)*n),t.closePath();break;case"rectRounded":u=n-(d=.516*n),s=Math.cos(h+I)*u,l=Math.sin(h+I)*u,t.arc(i-s,a-l,d,h-P,h-T),t.arc(i+l,a-s,d,h-T,h),t.arc(i+s,a+l,d,h,h+T),t.arc(i-l,a+s,d,h+T,h+P),t.closePath();break;case"rect":if(!r){u=Math.SQRT1_2*n,t.rect(i-u,a-u,2*u,2*u);break}h+=I;case"rectRot":s=Math.cos(h)*n,l=Math.sin(h)*n,t.moveTo(i-s,a-l),t.lineTo(i+l,a-s),t.lineTo(i+s,a+l),t.lineTo(i-l,a+s),t.closePath();break;case"crossRot":h+=I;case"cross":s=Math.cos(h)*n,l=Math.sin(h)*n,t.moveTo(i-s,a-l),t.lineTo(i+s,a+l),t.moveTo(i+l,a-s),t.lineTo(i-l,a+s);break;case"star":s=Math.cos(h)*n,l=Math.sin(h)*n,t.moveTo(i-s,a-l),t.lineTo(i+s,a+l),t.moveTo(i+l,a-s),t.lineTo(i-l,a+s),h+=I,s=Math.cos(h)*n,l=Math.sin(h)*n,t.moveTo(i-s,a-l),t.lineTo(i+s,a+l),t.moveTo(i+l,a-s),t.lineTo(i-l,a+s);break;case"line":s=Math.cos(h)*n,l=Math.sin(h)*n,t.moveTo(i-s,a-l),t.lineTo(i+s,a+l);break;case"dash":t.moveTo(i,a),t.lineTo(i+Math.cos(h)*n,a+Math.sin(h)*n)}t.fill(),t.stroke()}},_isPointInArea:function(t,e){return t.x>e.left-1e-6&&t.x<e.right+1e-6&&t.y>e.top-1e-6&&t.y<e.bottom+1e-6},clipArea:function(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()},unclipArea:function(t){t.restore()},lineTo:function(t,e,n,i){var a=n.steppedLine;if(a){if("middle"===a){var r=(e.x+n.x)/2;t.lineTo(r,i?n.y:e.y),t.lineTo(r,i?e.y:n.y)}else"after"===a&&!i||"after"!==a&&i?t.lineTo(e.x,n.y):t.lineTo(n.x,e.y);t.lineTo(n.x,n.y)}else n.tension?t.bezierCurveTo(i?e.controlPointPreviousX:e.controlPointNextX,i?e.controlPointPreviousY:e.controlPointNextY,i?n.controlPointNextX:n.controlPointPreviousX,i?n.controlPointNextY:n.controlPointPreviousY,n.x,n.y):t.lineTo(n.x,n.y)}},O=L;M.clear=L.clear,M.drawRoundedRectangle=function(t){t.beginPath(),L.roundedRect.apply(L,arguments)};var R={_set:function(t,e){return M.merge(this[t]||(this[t]={}),e)}};R._set("global",{defaultColor:"rgba(0,0,0,0.1)",defaultFontColor:"#666",defaultFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",defaultFontSize:12,defaultFontStyle:"normal",defaultLineHeight:1.2,showLines:!0});var z=R,N=M.valueOrDefault;var B={toLineHeight:function(t,e){var n=(""+t).match(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/);if(!n||"normal"===n[1])return 1.2*e;switch(t=+n[2],n[3]){case"px":return t;case"%":t/=100}return e*t},toPadding:function(t){var e,n,i,a;return M.isObject(t)?(e=+t.top||0,n=+t.right||0,i=+t.bottom||0,a=+t.left||0):e=n=i=a=+t||0,{top:e,right:n,bottom:i,left:a,height:e+i,width:a+n}},_parseFont:function(t){var e=z.global,n=N(t.fontSize,e.defaultFontSize),i={family:N(t.fontFamily,e.defaultFontFamily),lineHeight:M.options.toLineHeight(N(t.lineHeight,e.defaultLineHeight),n),size:n,style:N(t.fontStyle,e.defaultFontStyle),weight:null,string:""};return i.string=function(t){return!t||M.isNullOrUndef(t.size)||M.isNullOrUndef(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}(i),i},resolve:function(t,e,n,i){var a,r,o,s=!0;for(a=0,r=t.length;a<r;++a)if(void 0!==(o=t[a])&&(void 0!==e&&"function"==typeof o&&(o=o(e),s=!1),void 0!==n&&M.isArray(o)&&(o=o[n],s=!1),void 0!==o))return i&&!s&&(i.cacheable=!1),o}},E={_factorize:function(t){var e,n=[],i=Math.sqrt(t);for(e=1;e<i;e++)t%e==0&&(n.push(e),n.push(t/e));return i===(0|i)&&n.push(i),n.sort((function(t,e){return t-e})).pop(),n},log10:Math.log10||function(t){var e=Math.log(t)*Math.LOG10E,n=Math.round(e);return t===Math.pow(10,n)?n:e}},W=E;M.log10=E.log10;var V=M,H=C,j=O,q=B,U=W,Y={getRtlAdapter:function(t,e,n){return t?function(t,e){return{x:function(n){return t+t+e-n},setWidth:function(t){e=t},textAlign:function(t){return"center"===t?t:"right"===t?"left":"right"},xPlus:function(t,e){return t-e},leftForLtr:function(t,e){return t-e}}}(e,n):{x:function(t){return t},setWidth:function(t){},textAlign:function(t){return t},xPlus:function(t,e){return t+e},leftForLtr:function(t,e){return t}}},overrideTextDirection:function(t,e){var n,i;"ltr"!==e&&"rtl"!==e||(i=[(n=t.canvas.style).getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",e,"important"),t.prevTextDirection=i)},restoreTextDirection:function(t){var e=t.prevTextDirection;void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}};V.easing=H,V.canvas=j,V.options=q,V.math=U,V.rtl=Y;var G=function(t){V.extend(this,t),this.initialize.apply(this,arguments)};V.extend(G.prototype,{_type:void 0,initialize:function(){this.hidden=!1},pivot:function(){var t=this;return t._view||(t._view=V.extend({},t._model)),t._start={},t},transition:function(t){var e=this,n=e._model,i=e._start,a=e._view;return n&&1!==t?(a||(a=e._view={}),i||(i=e._start={}),function(t,e,n,i){var a,r,o,s,l,u,d,h,c,f=Object.keys(n);for(a=0,r=f.length;a<r;++a)if(u=n[o=f[a]],e.hasOwnProperty(o)||(e[o]=u),(s=e[o])!==u&&"_"!==o[0]){if(t.hasOwnProperty(o)||(t[o]=s),(d=typeof u)===typeof(l=t[o]))if("string"===d){if((h=k(l)).valid&&(c=k(u)).valid){e[o]=c.mix(h,i).rgbString();continue}}else if(V.isFinite(l)&&V.isFinite(u)){e[o]=l+(u-l)*i;continue}e[o]=u}}(i,a,n,t),e):(e._view=V.extend({},n),e._start=null,e)},tooltipPosition:function(){return{x:this._model.x,y:this._model.y}},hasValue:function(){return V.isNumber(this._model.x)&&V.isNumber(this._model.y)}}),G.extend=V.inherits;var X=G,K=X.extend({chart:null,currentStep:0,numSteps:60,easing:"",render:null,onAnimationProgress:null,onAnimationComplete:null}),Z=K;Object.defineProperty(K.prototype,"animationObject",{get:function(){return this}}),Object.defineProperty(K.prototype,"chartInstance",{get:function(){return this.chart},set:function(t){this.chart=t}}),z._set("global",{animation:{duration:1e3,easing:"easeOutQuart",onProgress:V.noop,onComplete:V.noop}});var $={animations:[],request:null,addAnimation:function(t,e,n,i){var a,r,o=this.animations;for(e.chart=t,e.startTime=Date.now(),e.duration=n,i||(t.animating=!0),a=0,r=o.length;a<r;++a)if(o[a].chart===t)return void(o[a]=e);o.push(e),1===o.length&&this.requestAnimationFrame()},cancelAnimation:function(t){var e=V.findIndex(this.animations,(function(e){return e.chart===t}));-1!==e&&(this.animations.splice(e,1),t.animating=!1)},requestAnimationFrame:function(){var t=this;null===t.request&&(t.request=V.requestAnimFrame.call(window,(function(){t.request=null,t.startDigest()})))},startDigest:function(){this.advance(),this.animations.length>0&&this.requestAnimationFrame()},advance:function(){for(var t,e,n,i,a=this.animations,r=0;r<a.length;)e=(t=a[r]).chart,n=t.numSteps,i=Math.floor((Date.now()-t.startTime)/t.duration*n)+1,t.currentStep=Math.min(i,n),V.callback(t.render,[e,t],e),V.callback(t.onAnimationProgress,[t],e),t.currentStep>=n?(V.callback(t.onAnimationComplete,[t],e),e.animating=!1,a.splice(r,1)):++r}},J=V.options.resolve,Q=["push","pop","shift","splice","unshift"];function tt(t,e){var n=t._chartjs;if(n){var i=n.listeners,a=i.indexOf(e);-1!==a&&i.splice(a,1),i.length>0||(Q.forEach((function(e){delete t[e]})),delete t._chartjs)}}var et=function(t,e){this.initialize(t,e)};V.extend(et.prototype,{datasetElementType:null,dataElementType:null,_datasetElementOptions:["backgroundColor","borderCapStyle","borderColor","borderDash","borderDashOffset","borderJoinStyle","borderWidth"],_dataElementOptions:["backgroundColor","borderColor","borderWidth","pointStyle"],initialize:function(t,e){var n=this;n.chart=t,n.index=e,n.linkScales(),n.addElements(),n._type=n.getMeta().type},updateIndex:function(t){this.index=t},linkScales:function(){var t=this.getMeta(),e=this.chart,n=e.scales,i=this.getDataset(),a=e.options.scales;null!==t.xAxisID&&t.xAxisID in n&&!i.xAxisID||(t.xAxisID=i.xAxisID||a.xAxes[0].id),null!==t.yAxisID&&t.yAxisID in n&&!i.yAxisID||(t.yAxisID=i.yAxisID||a.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(t){return this.chart.scales[t]},_getValueScaleId:function(){return this.getMeta().yAxisID},_getIndexScaleId:function(){return this.getMeta().xAxisID},_getValueScale:function(){return this.getScaleForId(this._getValueScaleId())},_getIndexScale:function(){return this.getScaleForId(this._getIndexScaleId())},reset:function(){this._update(!0)},destroy:function(){this._data&&tt(this._data,this)},createMetaDataset:function(){var t=this.datasetElementType;return t&&new t({_chart:this.chart,_datasetIndex:this.index})},createMetaData:function(t){var e=this.dataElementType;return e&&new e({_chart:this.chart,_datasetIndex:this.index,_index:t})},addElements:function(){var t,e,n=this.getMeta(),i=this.getDataset().data||[],a=n.data;for(t=0,e=i.length;t<e;++t)a[t]=a[t]||this.createMetaData(t);n.dataset=n.dataset||this.createMetaDataset()},addElementAndReset:function(t){var e=this.createMetaData(t);this.getMeta().data.splice(t,0,e),this.updateElement(e,t,!0)},buildOrUpdateElements:function(){var t,e,n=this,i=n.getDataset(),a=i.data||(i.data=[]);n._data!==a&&(n._data&&tt(n._data,n),a&&Object.isExtensible(a)&&(e=n,(t=a)._chartjs?t._chartjs.listeners.push(e):(Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),Q.forEach((function(e){var n="onData"+e.charAt(0).toUpperCase()+e.slice(1),i=t[e];Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:function(){var e=Array.prototype.slice.call(arguments),a=i.apply(this,e);return V.each(t._chartjs.listeners,(function(t){"function"==typeof t[n]&&t[n].apply(t,e)})),a}})})))),n._data=a),n.resyncElements()},_configure:function(){this._config=V.merge({},[this.chart.options.datasets[this._type],this.getDataset()],{merger:function(t,e,n){"_meta"!==t&&"data"!==t&&V._merger(t,e,n)}})},_update:function(t){this._configure(),this._cachedDataOpts=null,this.update(t)},update:V.noop,transition:function(t){for(var e=this.getMeta(),n=e.data||[],i=n.length,a=0;a<i;++a)n[a].transition(t);e.dataset&&e.dataset.transition(t)},draw:function(){var t=this.getMeta(),e=t.data||[],n=e.length,i=0;for(t.dataset&&t.dataset.draw();i<n;++i)e[i].draw()},getStyle:function(t){var e,n=this.getMeta(),i=n.dataset;return this._configure(),i&&void 0===t?e=this._resolveDatasetElementOptions(i||{}):(t=t||0,e=this._resolveDataElementOptions(n.data[t]||{},t)),!1!==e.fill&&null!==e.fill||(e.backgroundColor=e.borderColor),e},_resolveDatasetElementOptions:function(t,e){var n,i,a,r,o=this,s=o.chart,l=o._config,u=t.custom||{},d=s.options.elements[o.datasetElementType.prototype._type]||{},h=o._datasetElementOptions,c={},f={chart:s,dataset:o.getDataset(),datasetIndex:o.index,hover:e};for(n=0,i=h.length;n<i;++n)a=h[n],r=e?"hover"+a.charAt(0).toUpperCase()+a.slice(1):a,c[a]=J([u[r],l[r],d[r]],f);return c},_resolveDataElementOptions:function(t,e){var n=this,i=t&&t.custom,a=n._cachedDataOpts;if(a&&!i)return a;var r,o,s,l,u=n.chart,d=n._config,h=u.options.elements[n.dataElementType.prototype._type]||{},c=n._dataElementOptions,f={},g={chart:u,dataIndex:e,dataset:n.getDataset(),datasetIndex:n.index},p={cacheable:!i};if(i=i||{},V.isArray(c))for(o=0,s=c.length;o<s;++o)f[l=c[o]]=J([i[l],d[l],h[l]],g,e,p);else for(o=0,s=(r=Object.keys(c)).length;o<s;++o)f[l=r[o]]=J([i[l],d[c[l]],d[l],h[l]],g,e,p);return p.cacheable&&(n._cachedDataOpts=Object.freeze(f)),f},removeHoverStyle:function(t){V.merge(t._model,t.$previousStyle||{}),delete t.$previousStyle},setHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],n=t._index,i=t.custom||{},a=t._model,r=V.getHoverColor;t.$previousStyle={backgroundColor:a.backgroundColor,borderColor:a.borderColor,borderWidth:a.borderWidth},a.backgroundColor=J([i.hoverBackgroundColor,e.hoverBackgroundColor,r(a.backgroundColor)],void 0,n),a.borderColor=J([i.hoverBorderColor,e.hoverBorderColor,r(a.borderColor)],void 0,n),a.borderWidth=J([i.hoverBorderWidth,e.hoverBorderWidth,a.borderWidth],void 0,n)},_removeDatasetHoverStyle:function(){var t=this.getMeta().dataset;t&&this.removeHoverStyle(t)},_setDatasetHoverStyle:function(){var t,e,n,i,a,r,o=this.getMeta().dataset,s={};if(o){for(r=o._model,a=this._resolveDatasetElementOptions(o,!0),t=0,e=(i=Object.keys(a)).length;t<e;++t)s[n=i[t]]=r[n],r[n]=a[n];o.$previousStyle=s}},resyncElements:function(){var t=this.getMeta(),e=this.getDataset().data,n=t.data.length,i=e.length;i<n?t.data.splice(i,n-i):i>n&&this.insertElements(n,i-n)},insertElements:function(t,e){for(var n=0;n<e;++n)this.addElementAndReset(t+n)},onDataPush:function(){var t=arguments.length;this.insertElements(this.getDataset().data.length-t,t)},onDataPop:function(){this.getMeta().data.pop()},onDataShift:function(){this.getMeta().data.shift()},onDataSplice:function(t,e){this.getMeta().data.splice(t,e),this.insertElements(t,arguments.length-2)},onDataUnshift:function(){this.insertElements(0,arguments.length)}}),et.extend=V.inherits;var nt=et,it=2*Math.PI;function at(t,e){var n=e.startAngle,i=e.endAngle,a=e.pixelMargin,r=a/e.outerRadius,o=e.x,s=e.y;t.beginPath(),t.arc(o,s,e.outerRadius,n-r,i+r),e.innerRadius>a?(r=a/e.innerRadius,t.arc(o,s,e.innerRadius-a,i+r,n-r,!0)):t.arc(o,s,a,i+Math.PI/2,n-Math.PI/2),t.closePath(),t.clip()}function rt(t,e,n){var i="inner"===e.borderAlign;i?(t.lineWidth=2*e.borderWidth,t.lineJoin="round"):(t.lineWidth=e.borderWidth,t.lineJoin="bevel"),n.fullCircles&&function(t,e,n,i){var a,r=n.endAngle;for(i&&(n.endAngle=n.startAngle+it,at(t,n),n.endAngle=r,n.endAngle===n.startAngle&&n.fullCircles&&(n.endAngle+=it,n.fullCircles--)),t.beginPath(),t.arc(n.x,n.y,n.innerRadius,n.startAngle+it,n.startAngle,!0),a=0;a<n.fullCircles;++a)t.stroke();for(t.beginPath(),t.arc(n.x,n.y,e.outerRadius,n.startAngle,n.startAngle+it),a=0;a<n.fullCircles;++a)t.stroke()}(t,e,n,i),i&&at(t,n),t.beginPath(),t.arc(n.x,n.y,e.outerRadius,n.startAngle,n.endAngle),t.arc(n.x,n.y,n.innerRadius,n.endAngle,n.startAngle,!0),t.closePath(),t.stroke()}z._set("global",{elements:{arc:{backgroundColor:z.global.defaultColor,borderColor:"#fff",borderWidth:2,borderAlign:"center"}}});var ot=X.extend({_type:"arc",inLabelRange:function(t){var e=this._view;return!!e&&Math.pow(t-e.x,2)<Math.pow(e.radius+e.hoverRadius,2)},inRange:function(t,e){var n=this._view;if(n){for(var i=V.getAngleFromPoint(n,{x:t,y:e}),a=i.angle,r=i.distance,o=n.startAngle,s=n.endAngle;s<o;)s+=it;for(;a>s;)a-=it;for(;a<o;)a+=it;var l=a>=o&&a<=s,u=r>=n.innerRadius&&r<=n.outerRadius;return l&&u}return!1},getCenterPoint:function(){var t=this._view,e=(t.startAngle+t.endAngle)/2,n=(t.innerRadius+t.outerRadius)/2;return{x:t.x+Math.cos(e)*n,y:t.y+Math.sin(e)*n}},getArea:function(){var t=this._view;return Math.PI*((t.endAngle-t.startAngle)/(2*Math.PI))*(Math.pow(t.outerRadius,2)-Math.pow(t.innerRadius,2))},tooltipPosition:function(){var t=this._view,e=t.startAngle+(t.endAngle-t.startAngle)/2,n=(t.outerRadius-t.innerRadius)/2+t.innerRadius;return{x:t.x+Math.cos(e)*n,y:t.y+Math.sin(e)*n}},draw:function(){var t,e=this._chart.ctx,n=this._view,i="inner"===n.borderAlign?.33:0,a={x:n.x,y:n.y,innerRadius:n.innerRadius,outerRadius:Math.max(n.outerRadius-i,0),pixelMargin:i,startAngle:n.startAngle,endAngle:n.endAngle,fullCircles:Math.floor(n.circumference/it)};if(e.save(),e.fillStyle=n.backgroundColor,e.strokeStyle=n.borderColor,a.fullCircles){for(a.endAngle=a.startAngle+it,e.beginPath(),e.arc(a.x,a.y,a.outerRadius,a.startAngle,a.endAngle),e.arc(a.x,a.y,a.innerRadius,a.endAngle,a.startAngle,!0),e.closePath(),t=0;t<a.fullCircles;++t)e.fill();a.endAngle=a.startAngle+n.circumference%it}e.beginPath(),e.arc(a.x,a.y,a.outerRadius,a.startAngle,a.endAngle),e.arc(a.x,a.y,a.innerRadius,a.endAngle,a.startAngle,!0),e.closePath(),e.fill(),n.borderWidth&&rt(e,n,a),e.restore()}}),st=V.valueOrDefault,lt=z.global.defaultColor;z._set("global",{elements:{line:{tension:.4,backgroundColor:lt,borderWidth:3,borderColor:lt,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0}}});var ut=X.extend({_type:"line",draw:function(){var t,e,n,i=this,a=i._view,r=i._chart.ctx,o=a.spanGaps,s=i._children.slice(),l=z.global,u=l.elements.line,d=-1,h=i._loop;if(s.length){if(i._loop){for(t=0;t<s.length;++t)if(e=V.previousItem(s,t),!s[t]._view.skip&&e._view.skip){s=s.slice(t).concat(s.slice(0,t)),h=o;break}h&&s.push(s[0])}for(r.save(),r.lineCap=a.borderCapStyle||u.borderCapStyle,r.setLineDash&&r.setLineDash(a.borderDash||u.borderDash),r.lineDashOffset=st(a.borderDashOffset,u.borderDashOffset),r.lineJoin=a.borderJoinStyle||u.borderJoinStyle,r.lineWidth=st(a.borderWidth,u.borderWidth),r.strokeStyle=a.borderColor||l.defaultColor,r.beginPath(),(n=s[0]._view).skip||(r.moveTo(n.x,n.y),d=0),t=1;t<s.length;++t)n=s[t]._view,e=-1===d?V.previousItem(s,t):s[d],n.skip||(d!==t-1&&!o||-1===d?r.moveTo(n.x,n.y):V.canvas.lineTo(r,e._view,n),d=t);h&&r.closePath(),r.stroke(),r.restore()}}}),dt=V.valueOrDefault,ht=z.global.defaultColor;function ct(t){var e=this._view;return!!e&&Math.abs(t-e.x)<e.radius+e.hitRadius}z._set("global",{elements:{point:{radius:3,pointStyle:"circle",backgroundColor:ht,borderColor:ht,borderWidth:1,hitRadius:1,hoverRadius:4,hoverBorderWidth:1}}});var ft=X.extend({_type:"point",inRange:function(t,e){var n=this._view;return!!n&&Math.pow(t-n.x,2)+Math.pow(e-n.y,2)<Math.pow(n.hitRadius+n.radius,2)},inLabelRange:ct,inXRange:ct,inYRange:function(t){var e=this._view;return!!e&&Math.abs(t-e.y)<e.radius+e.hitRadius},getCenterPoint:function(){var t=this._view;return{x:t.x,y:t.y}},getArea:function(){return Math.PI*Math.pow(this._view.radius,2)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y,padding:t.radius+t.borderWidth}},draw:function(t){var e=this._view,n=this._chart.ctx,i=e.pointStyle,a=e.rotation,r=e.radius,o=e.x,s=e.y,l=z.global,u=l.defaultColor;e.skip||(void 0===t||V.canvas._isPointInArea(e,t))&&(n.strokeStyle=e.borderColor||u,n.lineWidth=dt(e.borderWidth,l.elements.point.borderWidth),n.fillStyle=e.backgroundColor||u,V.canvas.drawPoint(n,i,r,o,s,a))}}),gt=z.global.defaultColor;function pt(t){return t&&void 0!==t.width}function mt(t){var e,n,i,a,r;return pt(t)?(r=t.width/2,e=t.x-r,n=t.x+r,i=Math.min(t.y,t.base),a=Math.max(t.y,t.base)):(r=t.height/2,e=Math.min(t.x,t.base),n=Math.max(t.x,t.base),i=t.y-r,a=t.y+r),{left:e,top:i,right:n,bottom:a}}function vt(t,e,n){return t===e?n:t===n?e:t}function bt(t,e,n){var i,a,r,o,s=t.borderWidth,l=function(t){var e=t.borderSkipped,n={};return e?(t.horizontal?t.base>t.x&&(e=vt(e,"left","right")):t.base<t.y&&(e=vt(e,"bottom","top")),n[e]=!0,n):n}(t);return V.isObject(s)?(i=+s.top||0,a=+s.right||0,r=+s.bottom||0,o=+s.left||0):i=a=r=o=+s||0,{t:l.top||i<0?0:i>n?n:i,r:l.right||a<0?0:a>e?e:a,b:l.bottom||r<0?0:r>n?n:r,l:l.left||o<0?0:o>e?e:o}}function xt(t,e,n){var i=null===e,a=null===n,r=!(!t||i&&a)&&mt(t);return r&&(i||e>=r.left&&e<=r.right)&&(a||n>=r.top&&n<=r.bottom)}z._set("global",{elements:{rectangle:{backgroundColor:gt,borderColor:gt,borderSkipped:"bottom",borderWidth:0}}});var yt=X.extend({_type:"rectangle",draw:function(){var t=this._chart.ctx,e=this._view,n=function(t){var e=mt(t),n=e.right-e.left,i=e.bottom-e.top,a=bt(t,n/2,i/2);return{outer:{x:e.left,y:e.top,w:n,h:i},inner:{x:e.left+a.l,y:e.top+a.t,w:n-a.l-a.r,h:i-a.t-a.b}}}(e),i=n.outer,a=n.inner;t.fillStyle=e.backgroundColor,t.fillRect(i.x,i.y,i.w,i.h),i.w===a.w&&i.h===a.h||(t.save(),t.beginPath(),t.rect(i.x,i.y,i.w,i.h),t.clip(),t.fillStyle=e.borderColor,t.rect(a.x,a.y,a.w,a.h),t.fill("evenodd"),t.restore())},height:function(){var t=this._view;return t.base-t.y},inRange:function(t,e){return xt(this._view,t,e)},inLabelRange:function(t,e){var n=this._view;return pt(n)?xt(n,t,null):xt(n,null,e)},inXRange:function(t){return xt(this._view,t,null)},inYRange:function(t){return xt(this._view,null,t)},getCenterPoint:function(){var t,e,n=this._view;return pt(n)?(t=n.x,e=(n.y+n.base)/2):(t=(n.x+n.base)/2,e=n.y),{x:t,y:e}},getArea:function(){var t=this._view;return pt(t)?t.width*Math.abs(t.y-t.base):t.height*Math.abs(t.x-t.base)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y}}}),_t={},kt=ot,wt=ut,Mt=ft,St=yt;_t.Arc=kt,_t.Line=wt,_t.Point=Mt,_t.Rectangle=St;var Ct=V._deprecated,Pt=V.valueOrDefault;function At(t,e,n){var i,a,r=n.barThickness,o=e.stackCount,s=e.pixels[t],l=V.isNullOrUndef(r)?function(t,e){var n,i,a,r,o=t._length;for(a=1,r=e.length;a<r;++a)o=Math.min(o,Math.abs(e[a]-e[a-1]));for(a=0,r=t.getTicks().length;a<r;++a)i=t.getPixelForTick(a),o=a>0?Math.min(o,Math.abs(i-n)):o,n=i;return o}(e.scale,e.pixels):-1;return V.isNullOrUndef(r)?(i=l*n.categoryPercentage,a=n.barPercentage):(i=r*o,a=1),{chunk:i/o,ratio:a,start:s-i/2}}z._set("bar",{hover:{mode:"label"},scales:{xAxes:[{type:"category",offset:!0,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}}),z._set("global",{datasets:{bar:{categoryPercentage:.8,barPercentage:.9}}});var Dt=nt.extend({dataElementType:_t.Rectangle,_dataElementOptions:["backgroundColor","borderColor","borderSkipped","borderWidth","barPercentage","barThickness","categoryPercentage","maxBarThickness","minBarLength"],initialize:function(){var t,e,n=this;nt.prototype.initialize.apply(n,arguments),(t=n.getMeta()).stack=n.getDataset().stack,t.bar=!0,e=n._getIndexScale().options,Ct("bar chart",e.barPercentage,"scales.[x/y]Axes.barPercentage","dataset.barPercentage"),Ct("bar chart",e.barThickness,"scales.[x/y]Axes.barThickness","dataset.barThickness"),Ct("bar chart",e.categoryPercentage,"scales.[x/y]Axes.categoryPercentage","dataset.categoryPercentage"),Ct("bar chart",n._getValueScale().options.minBarLength,"scales.[x/y]Axes.minBarLength","dataset.minBarLength"),Ct("bar chart",e.maxBarThickness,"scales.[x/y]Axes.maxBarThickness","dataset.maxBarThickness")},update:function(t){var e,n,i=this.getMeta().data;for(this._ruler=this.getRuler(),e=0,n=i.length;e<n;++e)this.updateElement(i[e],e,t)},updateElement:function(t,e,n){var i=this,a=i.getMeta(),r=i.getDataset(),o=i._resolveDataElementOptions(t,e);t._xScale=i.getScaleForId(a.xAxisID),t._yScale=i.getScaleForId(a.yAxisID),t._datasetIndex=i.index,t._index=e,t._model={backgroundColor:o.backgroundColor,borderColor:o.borderColor,borderSkipped:o.borderSkipped,borderWidth:o.borderWidth,datasetLabel:r.label,label:i.chart.data.labels[e]},V.isArray(r.data[e])&&(t._model.borderSkipped=null),i._updateElementGeometry(t,e,n,o),t.pivot()},_updateElementGeometry:function(t,e,n,i){var a=this,r=t._model,o=a._getValueScale(),s=o.getBasePixel(),l=o.isHorizontal(),u=a._ruler||a.getRuler(),d=a.calculateBarValuePixels(a.index,e,i),h=a.calculateBarIndexPixels(a.index,e,u,i);r.horizontal=l,r.base=n?s:d.base,r.x=l?n?s:d.head:h.center,r.y=l?h.center:n?s:d.head,r.height=l?h.size:void 0,r.width=l?void 0:h.size},_getStacks:function(t){var e,n,i=this._getIndexScale(),a=i._getMatchingVisibleMetas(this._type),r=i.options.stacked,o=a.length,s=[];for(e=0;e<o&&(n=a[e],(!1===r||-1===s.indexOf(n.stack)||void 0===r&&void 0===n.stack)&&s.push(n.stack),n.index!==t);++e);return s},getStackCount:function(){return this._getStacks().length},getStackIndex:function(t,e){var n=this._getStacks(t),i=void 0!==e?n.indexOf(e):-1;return-1===i?n.length-1:i},getRuler:function(){var t,e,n=this._getIndexScale(),i=[];for(t=0,e=this.getMeta().data.length;t<e;++t)i.push(n.getPixelForValue(null,t,this.index));return{pixels:i,start:n._startPixel,end:n._endPixel,stackCount:this.getStackCount(),scale:n}},calculateBarValuePixels:function(t,e,n){var i,a,r,o,s,l,u,d=this.chart,h=this._getValueScale(),c=h.isHorizontal(),f=d.data.datasets,g=h._getMatchingVisibleMetas(this._type),p=h._parseValue(f[t].data[e]),m=n.minBarLength,v=h.options.stacked,b=this.getMeta().stack,x=void 0===p.start?0:p.max>=0&&p.min>=0?p.min:p.max,y=void 0===p.start?p.end:p.max>=0&&p.min>=0?p.max-p.min:p.min-p.max,_=g.length;if(v||void 0===v&&void 0!==b)for(i=0;i<_&&(a=g[i]).index!==t;++i)a.stack===b&&(r=void 0===(u=h._parseValue(f[a.index].data[e])).start?u.end:u.min>=0&&u.max>=0?u.max:u.min,(p.min<0&&r<0||p.max>=0&&r>0)&&(x+=r));return o=h.getPixelForValue(x),l=(s=h.getPixelForValue(x+y))-o,void 0!==m&&Math.abs(l)<m&&(l=m,s=y>=0&&!c||y<0&&c?o-m:o+m),{size:l,base:o,head:s,center:s+l/2}},calculateBarIndexPixels:function(t,e,n,i){var a="flex"===i.barThickness?function(t,e,n){var i,a=e.pixels,r=a[t],o=t>0?a[t-1]:null,s=t<a.length-1?a[t+1]:null,l=n.categoryPercentage;return null===o&&(o=r-(null===s?e.end-e.start:s-r)),null===s&&(s=r+r-o),i=r-(r-Math.min(o,s))/2*l,{chunk:Math.abs(s-o)/2*l/e.stackCount,ratio:n.barPercentage,start:i}}(e,n,i):At(e,n,i),r=this.getStackIndex(t,this.getMeta().stack),o=a.start+a.chunk*r+a.chunk/2,s=Math.min(Pt(i.maxBarThickness,1/0),a.chunk*a.ratio);return{base:o-s/2,head:o+s/2,center:o,size:s}},draw:function(){var t=this.chart,e=this._getValueScale(),n=this.getMeta().data,i=this.getDataset(),a=n.length,r=0;for(V.canvas.clipArea(t.ctx,t.chartArea);r<a;++r){var o=e._parseValue(i.data[r]);isNaN(o.min)||isNaN(o.max)||n[r].draw()}V.canvas.unclipArea(t.ctx)},_resolveDataElementOptions:function(){var t=this,e=V.extend({},nt.prototype._resolveDataElementOptions.apply(t,arguments)),n=t._getIndexScale().options,i=t._getValueScale().options;return e.barPercentage=Pt(n.barPercentage,e.barPercentage),e.barThickness=Pt(n.barThickness,e.barThickness),e.categoryPercentage=Pt(n.categoryPercentage,e.categoryPercentage),e.maxBarThickness=Pt(n.maxBarThickness,e.maxBarThickness),e.minBarLength=Pt(i.minBarLength,e.minBarLength),e}}),Tt=V.valueOrDefault,It=V.options.resolve;z._set("bubble",{hover:{mode:"single"},scales:{xAxes:[{type:"linear",position:"bottom",id:"x-axis-0"}],yAxes:[{type:"linear",position:"left",id:"y-axis-0"}]},tooltips:{callbacks:{title:function(){return""},label:function(t,e){var n=e.datasets[t.datasetIndex].label||"",i=e.datasets[t.datasetIndex].data[t.index];return n+": ("+t.xLabel+", "+t.yLabel+", "+i.r+")"}}}});var Ft=nt.extend({dataElementType:_t.Point,_dataElementOptions:["backgroundColor","borderColor","borderWidth","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth","hoverRadius","hitRadius","pointStyle","rotation"],update:function(t){var e=this,n=e.getMeta().data;V.each(n,(function(n,i){e.updateElement(n,i,t)}))},updateElement:function(t,e,n){var i=this,a=i.getMeta(),r=t.custom||{},o=i.getScaleForId(a.xAxisID),s=i.getScaleForId(a.yAxisID),l=i._resolveDataElementOptions(t,e),u=i.getDataset().data[e],d=i.index,h=n?o.getPixelForDecimal(.5):o.getPixelForValue("object"==typeof u?u:NaN,e,d),c=n?s.getBasePixel():s.getPixelForValue(u,e,d);t._xScale=o,t._yScale=s,t._options=l,t._datasetIndex=d,t._index=e,t._model={backgroundColor:l.backgroundColor,borderColor:l.borderColor,borderWidth:l.borderWidth,hitRadius:l.hitRadius,pointStyle:l.pointStyle,rotation:l.rotation,radius:n?0:l.radius,skip:r.skip||isNaN(h)||isNaN(c),x:h,y:c},t.pivot()},setHoverStyle:function(t){var e=t._model,n=t._options,i=V.getHoverColor;t.$previousStyle={backgroundColor:e.backgroundColor,borderColor:e.borderColor,borderWidth:e.borderWidth,radius:e.radius},e.backgroundColor=Tt(n.hoverBackgroundColor,i(n.backgroundColor)),e.borderColor=Tt(n.hoverBorderColor,i(n.borderColor)),e.borderWidth=Tt(n.hoverBorderWidth,n.borderWidth),e.radius=n.radius+n.hoverRadius},_resolveDataElementOptions:function(t,e){var n=this,i=n.chart,a=n.getDataset(),r=t.custom||{},o=a.data[e]||{},s=nt.prototype._resolveDataElementOptions.apply(n,arguments),l={chart:i,dataIndex:e,dataset:a,datasetIndex:n.index};return n._cachedDataOpts===s&&(s=V.extend({},s)),s.radius=It([r.radius,o.r,n._config.radius,i.options.elements.point.radius],l,e),s}}),Lt=V.valueOrDefault,Ot=Math.PI,Rt=2*Ot,zt=Ot/2;z._set("doughnut",{animation:{animateRotate:!0,animateScale:!1},hover:{mode:"single"},legendCallback:function(t){var e,n,i,a=document.createElement("ul"),r=t.data,o=r.datasets,s=r.labels;if(a.setAttribute("class",t.id+"-legend"),o.length)for(e=0,n=o[0].data.length;e<n;++e)(i=a.appendChild(document.createElement("li"))).appendChild(document.createElement("span")).style.backgroundColor=o[0].backgroundColor[e],s[e]&&i.appendChild(document.createTextNode(s[e]));return a.outerHTML},legend:{labels:{generateLabels:function(t){var e=t.data;return e.labels.length&&e.datasets.length?e.labels.map((function(n,i){var a=t.getDatasetMeta(0),r=a.controller.getStyle(i);return{text:n,fillStyle:r.backgroundColor,strokeStyle:r.borderColor,lineWidth:r.borderWidth,hidden:isNaN(e.datasets[0].data[i])||a.data[i].hidden,index:i}})):[]}},onClick:function(t,e){var n,i,a,r=e.index,o=this.chart;for(n=0,i=(o.data.datasets||[]).length;n<i;++n)(a=o.getDatasetMeta(n)).data[r]&&(a.data[r].hidden=!a.data[r].hidden);o.update()}},cutoutPercentage:50,rotation:-zt,circumference:Rt,tooltips:{callbacks:{title:function(){return""},label:function(t,e){var n=e.labels[t.index],i=": "+e.datasets[t.datasetIndex].data[t.index];return V.isArray(n)?(n=n.slice())[0]+=i:n+=i,n}}}});var Nt=nt.extend({dataElementType:_t.Arc,linkScales:V.noop,_dataElementOptions:["backgroundColor","borderColor","borderWidth","borderAlign","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth"],getRingIndex:function(t){for(var e=0,n=0;n<t;++n)this.chart.isDatasetVisible(n)&&++e;return e},update:function(t){var e,n,i,a,r=this,o=r.chart,s=o.chartArea,l=o.options,u=1,d=1,h=0,c=0,f=r.getMeta(),g=f.data,p=l.cutoutPercentage/100||0,m=l.circumference,v=r._getRingWeight(r.index);if(m<Rt){var b=l.rotation%Rt,x=(b+=b>=Ot?-Rt:b<-Ot?Rt:0)+m,y=Math.cos(b),_=Math.sin(b),k=Math.cos(x),w=Math.sin(x),M=b<=0&&x>=0||x>=Rt,S=b<=zt&&x>=zt||x>=Rt+zt,C=b<=-zt&&x>=-zt||x>=Ot+zt,P=b===-Ot||x>=Ot?-1:Math.min(y,y*p,k,k*p),A=C?-1:Math.min(_,_*p,w,w*p),D=M?1:Math.max(y,y*p,k,k*p),T=S?1:Math.max(_,_*p,w,w*p);u=(D-P)/2,d=(T-A)/2,h=-(D+P)/2,c=-(T+A)/2}for(i=0,a=g.length;i<a;++i)g[i]._options=r._resolveDataElementOptions(g[i],i);for(o.borderWidth=r.getMaxBorderWidth(),e=(s.right-s.left-o.borderWidth)/u,n=(s.bottom-s.top-o.borderWidth)/d,o.outerRadius=Math.max(Math.min(e,n)/2,0),o.innerRadius=Math.max(o.outerRadius*p,0),o.radiusLength=(o.outerRadius-o.innerRadius)/(r._getVisibleDatasetWeightTotal()||1),o.offsetX=h*o.outerRadius,o.offsetY=c*o.outerRadius,f.total=r.calculateTotal(),r.outerRadius=o.outerRadius-o.radiusLength*r._getRingWeightOffset(r.index),r.innerRadius=Math.max(r.outerRadius-o.radiusLength*v,0),i=0,a=g.length;i<a;++i)r.updateElement(g[i],i,t)},updateElement:function(t,e,n){var i=this,a=i.chart,r=a.chartArea,o=a.options,s=o.animation,l=(r.left+r.right)/2,u=(r.top+r.bottom)/2,d=o.rotation,h=o.rotation,c=i.getDataset(),f=n&&s.animateRotate?0:t.hidden?0:i.calculateCircumference(c.data[e])*(o.circumference/Rt),g=n&&s.animateScale?0:i.innerRadius,p=n&&s.animateScale?0:i.outerRadius,m=t._options||{};V.extend(t,{_datasetIndex:i.index,_index:e,_model:{backgroundColor:m.backgroundColor,borderColor:m.borderColor,borderWidth:m.borderWidth,borderAlign:m.borderAlign,x:l+a.offsetX,y:u+a.offsetY,startAngle:d,endAngle:h,circumference:f,outerRadius:p,innerRadius:g,label:V.valueAtIndexOrDefault(c.label,e,a.data.labels[e])}});var v=t._model;n&&s.animateRotate||(v.startAngle=0===e?o.rotation:i.getMeta().data[e-1]._model.endAngle,v.endAngle=v.startAngle+v.circumference),t.pivot()},calculateTotal:function(){var t,e=this.getDataset(),n=this.getMeta(),i=0;return V.each(n.data,(function(n,a){t=e.data[a],isNaN(t)||n.hidden||(i+=Math.abs(t))})),i},calculateCircumference:function(t){var e=this.getMeta().total;return e>0&&!isNaN(t)?Rt*(Math.abs(t)/e):0},getMaxBorderWidth:function(t){var e,n,i,a,r,o,s,l,u=0,d=this.chart;if(!t)for(e=0,n=d.data.datasets.length;e<n;++e)if(d.isDatasetVisible(e)){t=(i=d.getDatasetMeta(e)).data,e!==this.index&&(r=i.controller);break}if(!t)return 0;for(e=0,n=t.length;e<n;++e)a=t[e],r?(r._configure(),o=r._resolveDataElementOptions(a,e)):o=a._options,"inner"!==o.borderAlign&&(s=o.borderWidth,u=(l=o.hoverBorderWidth)>(u=s>u?s:u)?l:u);return u},setHoverStyle:function(t){var e=t._model,n=t._options,i=V.getHoverColor;t.$previousStyle={backgroundColor:e.backgroundColor,borderColor:e.borderColor,borderWidth:e.borderWidth},e.backgroundColor=Lt(n.hoverBackgroundColor,i(n.backgroundColor)),e.borderColor=Lt(n.hoverBorderColor,i(n.borderColor)),e.borderWidth=Lt(n.hoverBorderWidth,n.borderWidth)},_getRingWeightOffset:function(t){for(var e=0,n=0;n<t;++n)this.chart.isDatasetVisible(n)&&(e+=this._getRingWeight(n));return e},_getRingWeight:function(t){return Math.max(Lt(this.chart.data.datasets[t].weight,1),0)},_getVisibleDatasetWeightTotal:function(){return this._getRingWeightOffset(this.chart.data.datasets.length)}});z._set("horizontalBar",{hover:{mode:"index",axis:"y"},scales:{xAxes:[{type:"linear",position:"bottom"}],yAxes:[{type:"category",position:"left",offset:!0,gridLines:{offsetGridLines:!0}}]},elements:{rectangle:{borderSkipped:"left"}},tooltips:{mode:"index",axis:"y"}}),z._set("global",{datasets:{horizontalBar:{categoryPercentage:.8,barPercentage:.9}}});var Bt=Dt.extend({_getValueScaleId:function(){return this.getMeta().xAxisID},_getIndexScaleId:function(){return this.getMeta().yAxisID}}),Et=V.valueOrDefault,Wt=V.options.resolve,Vt=V.canvas._isPointInArea;function Ht(t,e){var n=t&&t.options.ticks||{},i=n.reverse,a=void 0===n.min?e:0,r=void 0===n.max?e:0;return{start:i?r:a,end:i?a:r}}function jt(t,e,n){var i=n/2,a=Ht(t,i),r=Ht(e,i);return{top:r.end,right:a.end,bottom:r.start,left:a.start}}function qt(t){var e,n,i,a;return V.isObject(t)?(e=t.top,n=t.right,i=t.bottom,a=t.left):e=n=i=a=t,{top:e,right:n,bottom:i,left:a}}z._set("line",{showLines:!0,spanGaps:!1,hover:{mode:"label"},scales:{xAxes:[{type:"category",id:"x-axis-0"}],yAxes:[{type:"linear",id:"y-axis-0"}]}});var Ut=nt.extend({datasetElementType:_t.Line,dataElementType:_t.Point,_datasetElementOptions:["backgroundColor","borderCapStyle","borderColor","borderDash","borderDashOffset","borderJoinStyle","borderWidth","cubicInterpolationMode","fill"],_dataElementOptions:{backgroundColor:"pointBackgroundColor",borderColor:"pointBorderColor",borderWidth:"pointBorderWidth",hitRadius:"pointHitRadius",hoverBackgroundColor:"pointHoverBackgroundColor",hoverBorderColor:"pointHoverBorderColor",hoverBorderWidth:"pointHoverBorderWidth",hoverRadius:"pointHoverRadius",pointStyle:"pointStyle",radius:"pointRadius",rotation:"pointRotation"},update:function(t){var e,n,i=this,a=i.getMeta(),r=a.dataset,o=a.data||[],s=i.chart.options,l=i._config,u=i._showLine=Et(l.showLine,s.showLines);for(i._xScale=i.getScaleForId(a.xAxisID),i._yScale=i.getScaleForId(a.yAxisID),u&&(void 0!==l.tension&&void 0===l.lineTension&&(l.lineTension=l.tension),r._scale=i._yScale,r._datasetIndex=i.index,r._children=o,r._model=i._resolveDatasetElementOptions(r),r.pivot()),e=0,n=o.length;e<n;++e)i.updateElement(o[e],e,t);for(u&&0!==r._model.tension&&i.updateBezierControlPoints(),e=0,n=o.length;e<n;++e)o[e].pivot()},updateElement:function(t,e,n){var i,a,r=this,o=r.getMeta(),s=t.custom||{},l=r.getDataset(),u=r.index,d=l.data[e],h=r._xScale,c=r._yScale,f=o.dataset._model,g=r._resolveDataElementOptions(t,e);i=h.getPixelForValue("object"==typeof d?d:NaN,e,u),a=n?c.getBasePixel():r.calculatePointY(d,e,u),t._xScale=h,t._yScale=c,t._options=g,t._datasetIndex=u,t._index=e,t._model={x:i,y:a,skip:s.skip||isNaN(i)||isNaN(a),radius:g.radius,pointStyle:g.pointStyle,rotation:g.rotation,backgroundColor:g.backgroundColor,borderColor:g.borderColor,borderWidth:g.borderWidth,tension:Et(s.tension,f?f.tension:0),steppedLine:!!f&&f.steppedLine,hitRadius:g.hitRadius}},_resolveDatasetElementOptions:function(t){var e=this,n=e._config,i=t.custom||{},a=e.chart.options,r=a.elements.line,o=nt.prototype._resolveDatasetElementOptions.apply(e,arguments);return o.spanGaps=Et(n.spanGaps,a.spanGaps),o.tension=Et(n.lineTension,r.tension),o.steppedLine=Wt([i.steppedLine,n.steppedLine,r.stepped]),o.clip=qt(Et(n.clip,jt(e._xScale,e._yScale,o.borderWidth))),o},calculatePointY:function(t,e,n){var i,a,r,o,s,l,u,d=this.chart,h=this._yScale,c=0,f=0;if(h.options.stacked){for(s=+h.getRightValue(t),u=(l=d._getSortedVisibleDatasetMetas()).length,i=0;i<u&&(r=l[i]).index!==n;++i)a=d.data.datasets[r.index],"line"===r.type&&r.yAxisID===h.id&&((o=+h.getRightValue(a.data[e]))<0?f+=o||0:c+=o||0);return s<0?h.getPixelForValue(f+s):h.getPixelForValue(c+s)}return h.getPixelForValue(t)},updateBezierControlPoints:function(){var t,e,n,i,a=this.chart,r=this.getMeta(),o=r.dataset._model,s=a.chartArea,l=r.data||[];function u(t,e,n){return Math.max(Math.min(t,n),e)}if(o.spanGaps&&(l=l.filter((function(t){return!t._model.skip}))),"monotone"===o.cubicInterpolationMode)V.splineCurveMonotone(l);else for(t=0,e=l.length;t<e;++t)n=l[t]._model,i=V.splineCurve(V.previousItem(l,t)._model,n,V.nextItem(l,t)._model,o.tension),n.controlPointPreviousX=i.previous.x,n.controlPointPreviousY=i.previous.y,n.controlPointNextX=i.next.x,n.controlPointNextY=i.next.y;if(a.options.elements.line.capBezierPoints)for(t=0,e=l.length;t<e;++t)n=l[t]._model,Vt(n,s)&&(t>0&&Vt(l[t-1]._model,s)&&(n.controlPointPreviousX=u(n.controlPointPreviousX,s.left,s.right),n.controlPointPreviousY=u(n.controlPointPreviousY,s.top,s.bottom)),t<l.length-1&&Vt(l[t+1]._model,s)&&(n.controlPointNextX=u(n.controlPointNextX,s.left,s.right),n.controlPointNextY=u(n.controlPointNextY,s.top,s.bottom)))},draw:function(){var t,e=this.chart,n=this.getMeta(),i=n.data||[],a=e.chartArea,r=e.canvas,o=0,s=i.length;for(this._showLine&&(t=n.dataset._model.clip,V.canvas.clipArea(e.ctx,{left:!1===t.left?0:a.left-t.left,right:!1===t.right?r.width:a.right+t.right,top:!1===t.top?0:a.top-t.top,bottom:!1===t.bottom?r.height:a.bottom+t.bottom}),n.dataset.draw(),V.canvas.unclipArea(e.ctx));o<s;++o)i[o].draw(a)},setHoverStyle:function(t){var e=t._model,n=t._options,i=V.getHoverColor;t.$previousStyle={backgroundColor:e.backgroundColor,borderColor:e.borderColor,borderWidth:e.borderWidth,radius:e.radius},e.backgroundColor=Et(n.hoverBackgroundColor,i(n.backgroundColor)),e.borderColor=Et(n.hoverBorderColor,i(n.borderColor)),e.borderWidth=Et(n.hoverBorderWidth,n.borderWidth),e.radius=Et(n.hoverRadius,n.radius)}}),Yt=V.options.resolve;z._set("polarArea",{scale:{type:"radialLinear",angleLines:{display:!1},gridLines:{circular:!0},pointLabels:{display:!1},ticks:{beginAtZero:!0}},animation:{animateRotate:!0,animateScale:!0},startAngle:-.5*Math.PI,legendCallback:function(t){var e,n,i,a=document.createElement("ul"),r=t.data,o=r.datasets,s=r.labels;if(a.setAttribute("class",t.id+"-legend"),o.length)for(e=0,n=o[0].data.length;e<n;++e)(i=a.appendChild(document.createElement("li"))).appendChild(document.createElement("span")).style.backgroundColor=o[0].backgroundColor[e],s[e]&&i.appendChild(document.createTextNode(s[e]));return a.outerHTML},legend:{labels:{generateLabels:function(t){var e=t.data;return e.labels.length&&e.datasets.length?e.labels.map((function(n,i){var a=t.getDatasetMeta(0),r=a.controller.getStyle(i);return{text:n,fillStyle:r.backgroundColor,strokeStyle:r.borderColor,lineWidth:r.borderWidth,hidden:isNaN(e.datasets[0].data[i])||a.data[i].hidden,index:i}})):[]}},onClick:function(t,e){var n,i,a,r=e.index,o=this.chart;for(n=0,i=(o.data.datasets||[]).length;n<i;++n)(a=o.getDatasetMeta(n)).data[r].hidden=!a.data[r].hidden;o.update()}},tooltips:{callbacks:{title:function(){return""},label:function(t,e){return e.labels[t.index]+": "+t.yLabel}}}});var Gt=nt.extend({dataElementType:_t.Arc,linkScales:V.noop,_dataElementOptions:["backgroundColor","borderColor","borderWidth","borderAlign","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth"],_getIndexScaleId:function(){return this.chart.scale.id},_getValueScaleId:function(){return this.chart.scale.id},update:function(t){var e,n,i,a=this,r=a.getDataset(),o=a.getMeta(),s=a.chart.options.startAngle||0,l=a._starts=[],u=a._angles=[],d=o.data;for(a._updateRadius(),o.count=a.countVisibleElements(),e=0,n=r.data.length;e<n;e++)l[e]=s,i=a._computeAngle(e),u[e]=i,s+=i;for(e=0,n=d.length;e<n;++e)d[e]._options=a._resolveDataElementOptions(d[e],e),a.updateElement(d[e],e,t)},_updateRadius:function(){var t=this,e=t.chart,n=e.chartArea,i=e.options,a=Math.min(n.right-n.left,n.bottom-n.top);e.outerRadius=Math.max(a/2,0),e.innerRadius=Math.max(i.cutoutPercentage?e.outerRadius/100*i.cutoutPercentage:1,0),e.radiusLength=(e.outerRadius-e.innerRadius)/e.getVisibleDatasetCount(),t.outerRadius=e.outerRadius-e.radiusLength*t.index,t.innerRadius=t.outerRadius-e.radiusLength},updateElement:function(t,e,n){var i=this,a=i.chart,r=i.getDataset(),o=a.options,s=o.animation,l=a.scale,u=a.data.labels,d=l.xCenter,h=l.yCenter,c=o.startAngle,f=t.hidden?0:l.getDistanceFromCenterForValue(r.data[e]),g=i._starts[e],p=g+(t.hidden?0:i._angles[e]),m=s.animateScale?0:l.getDistanceFromCenterForValue(r.data[e]),v=t._options||{};V.extend(t,{_datasetIndex:i.index,_index:e,_scale:l,_model:{backgroundColor:v.backgroundColor,borderColor:v.borderColor,borderWidth:v.borderWidth,borderAlign:v.borderAlign,x:d,y:h,innerRadius:0,outerRadius:n?m:f,startAngle:n&&s.animateRotate?c:g,endAngle:n&&s.animateRotate?c:p,label:V.valueAtIndexOrDefault(u,e,u[e])}}),t.pivot()},countVisibleElements:function(){var t=this.getDataset(),e=this.getMeta(),n=0;return V.each(e.data,(function(e,i){isNaN(t.data[i])||e.hidden||n++})),n},setHoverStyle:function(t){var e=t._model,n=t._options,i=V.getHoverColor,a=V.valueOrDefault;t.$previousStyle={backgroundColor:e.backgroundColor,borderColor:e.borderColor,borderWidth:e.borderWidth},e.backgroundColor=a(n.hoverBackgroundColor,i(n.backgroundColor)),e.borderColor=a(n.hoverBorderColor,i(n.borderColor)),e.borderWidth=a(n.hoverBorderWidth,n.borderWidth)},_computeAngle:function(t){var e=this,n=this.getMeta().count,i=e.getDataset(),a=e.getMeta();if(isNaN(i.data[t])||a.data[t].hidden)return 0;var r={chart:e.chart,dataIndex:t,dataset:i,datasetIndex:e.index};return Yt([e.chart.options.elements.arc.angle,2*Math.PI/n],r,t)}});z._set("pie",V.clone(z.doughnut)),z._set("pie",{cutoutPercentage:0});var Xt=Nt,Kt=V.valueOrDefault;z._set("radar",{spanGaps:!1,scale:{type:"radialLinear"},elements:{line:{fill:"start",tension:0}}});var Zt=nt.extend({datasetElementType:_t.Line,dataElementType:_t.Point,linkScales:V.noop,_datasetElementOptions:["backgroundColor","borderWidth","borderColor","borderCapStyle","borderDash","borderDashOffset","borderJoinStyle","fill"],_dataElementOptions:{backgroundColor:"pointBackgroundColor",borderColor:"pointBorderColor",borderWidth:"pointBorderWidth",hitRadius:"pointHitRadius",hoverBackgroundColor:"pointHoverBackgroundColor",hoverBorderColor:"pointHoverBorderColor",hoverBorderWidth:"pointHoverBorderWidth",hoverRadius:"pointHoverRadius",pointStyle:"pointStyle",radius:"pointRadius",rotation:"pointRotation"},_getIndexScaleId:function(){return this.chart.scale.id},_getValueScaleId:function(){return this.chart.scale.id},update:function(t){var e,n,i=this,a=i.getMeta(),r=a.dataset,o=a.data||[],s=i.chart.scale,l=i._config;for(void 0!==l.tension&&void 0===l.lineTension&&(l.lineTension=l.tension),r._scale=s,r._datasetIndex=i.index,r._children=o,r._loop=!0,r._model=i._resolveDatasetElementOptions(r),r.pivot(),e=0,n=o.length;e<n;++e)i.updateElement(o[e],e,t);for(i.updateBezierControlPoints(),e=0,n=o.length;e<n;++e)o[e].pivot()},updateElement:function(t,e,n){var i=this,a=t.custom||{},r=i.getDataset(),o=i.chart.scale,s=o.getPointPositionForValue(e,r.data[e]),l=i._resolveDataElementOptions(t,e),u=i.getMeta().dataset._model,d=n?o.xCenter:s.x,h=n?o.yCenter:s.y;t._scale=o,t._options=l,t._datasetIndex=i.index,t._index=e,t._model={x:d,y:h,skip:a.skip||isNaN(d)||isNaN(h),radius:l.radius,pointStyle:l.pointStyle,rotation:l.rotation,backgroundColor:l.backgroundColor,borderColor:l.borderColor,borderWidth:l.borderWidth,tension:Kt(a.tension,u?u.tension:0),hitRadius:l.hitRadius}},_resolveDatasetElementOptions:function(){var t=this,e=t._config,n=t.chart.options,i=nt.prototype._resolveDatasetElementOptions.apply(t,arguments);return i.spanGaps=Kt(e.spanGaps,n.spanGaps),i.tension=Kt(e.lineTension,n.elements.line.tension),i},updateBezierControlPoints:function(){var t,e,n,i,a=this.getMeta(),r=this.chart.chartArea,o=a.data||[];function s(t,e,n){return Math.max(Math.min(t,n),e)}for(a.dataset._model.spanGaps&&(o=o.filter((function(t){return!t._model.skip}))),t=0,e=o.length;t<e;++t)n=o[t]._model,i=V.splineCurve(V.previousItem(o,t,!0)._model,n,V.nextItem(o,t,!0)._model,n.tension),n.controlPointPreviousX=s(i.previous.x,r.left,r.right),n.controlPointPreviousY=s(i.previous.y,r.top,r.bottom),n.controlPointNextX=s(i.next.x,r.left,r.right),n.controlPointNextY=s(i.next.y,r.top,r.bottom)},setHoverStyle:function(t){var e=t._model,n=t._options,i=V.getHoverColor;t.$previousStyle={backgroundColor:e.backgroundColor,borderColor:e.borderColor,borderWidth:e.borderWidth,radius:e.radius},e.backgroundColor=Kt(n.hoverBackgroundColor,i(n.backgroundColor)),e.borderColor=Kt(n.hoverBorderColor,i(n.borderColor)),e.borderWidth=Kt(n.hoverBorderWidth,n.borderWidth),e.radius=Kt(n.hoverRadius,n.radius)}});z._set("scatter",{hover:{mode:"single"},scales:{xAxes:[{id:"x-axis-1",type:"linear",position:"bottom"}],yAxes:[{id:"y-axis-1",type:"linear",position:"left"}]},tooltips:{callbacks:{title:function(){return""},label:function(t){return"("+t.xLabel+", "+t.yLabel+")"}}}}),z._set("global",{datasets:{scatter:{showLine:!1}}});var $t={bar:Dt,bubble:Ft,doughnut:Nt,horizontalBar:Bt,line:Ut,polarArea:Gt,pie:Xt,radar:Zt,scatter:Ut};function Jt(t,e){return t.native?{x:t.x,y:t.y}:V.getRelativePosition(t,e)}function Qt(t,e){var n,i,a,r,o,s,l=t._getSortedVisibleDatasetMetas();for(i=0,r=l.length;i<r;++i)for(a=0,o=(n=l[i].data).length;a<o;++a)(s=n[a])._view.skip||e(s)}function te(t,e){var n=[];return Qt(t,(function(t){t.inRange(e.x,e.y)&&n.push(t)})),n}function ee(t,e,n,i){var a=Number.POSITIVE_INFINITY,r=[];return Qt(t,(function(t){if(!n||t.inRange(e.x,e.y)){var o=t.getCenterPoint(),s=i(e,o);s<a?(r=[t],a=s):s===a&&r.push(t)}})),r}function ne(t){var e=-1!==t.indexOf("x"),n=-1!==t.indexOf("y");return function(t,i){var a=e?Math.abs(t.x-i.x):0,r=n?Math.abs(t.y-i.y):0;return Math.sqrt(Math.pow(a,2)+Math.pow(r,2))}}function ie(t,e,n){var i=Jt(e,t);n.axis=n.axis||"x";var a=ne(n.axis),r=n.intersect?te(t,i):ee(t,i,!1,a),o=[];return r.length?(t._getSortedVisibleDatasetMetas().forEach((function(t){var e=t.data[r[0]._index];e&&!e._view.skip&&o.push(e)})),o):[]}var ae={modes:{single:function(t,e){var n=Jt(e,t),i=[];return Qt(t,(function(t){if(t.inRange(n.x,n.y))return i.push(t),i})),i.slice(0,1)},label:ie,index:ie,dataset:function(t,e,n){var i=Jt(e,t);n.axis=n.axis||"xy";var a=ne(n.axis),r=n.intersect?te(t,i):ee(t,i,!1,a);return r.length>0&&(r=t.getDatasetMeta(r[0]._datasetIndex).data),r},"x-axis":function(t,e){return ie(t,e,{intersect:!1})},point:function(t,e){return te(t,Jt(e,t))},nearest:function(t,e,n){var i=Jt(e,t);n.axis=n.axis||"xy";var a=ne(n.axis);return ee(t,i,n.intersect,a)},x:function(t,e,n){var i=Jt(e,t),a=[],r=!1;return Qt(t,(function(t){t.inXRange(i.x)&&a.push(t),t.inRange(i.x,i.y)&&(r=!0)})),n.intersect&&!r&&(a=[]),a},y:function(t,e,n){var i=Jt(e,t),a=[],r=!1;return Qt(t,(function(t){t.inYRange(i.y)&&a.push(t),t.inRange(i.x,i.y)&&(r=!0)})),n.intersect&&!r&&(a=[]),a}}},re=V.extend;function oe(t,e){return V.where(t,(function(t){return t.pos===e}))}function se(t,e){return t.sort((function(t,n){var i=e?n:t,a=e?t:n;return i.weight===a.weight?i.index-a.index:i.weight-a.weight}))}function le(t,e,n,i){return Math.max(t[n],e[n])+Math.max(t[i],e[i])}function ue(t,e,n){var i,a,r=n.box,o=t.maxPadding;if(n.size&&(t[n.pos]-=n.size),n.size=n.horizontal?r.height:r.width,t[n.pos]+=n.size,r.getPadding){var s=r.getPadding();o.top=Math.max(o.top,s.top),o.left=Math.max(o.left,s.left),o.bottom=Math.max(o.bottom,s.bottom),o.right=Math.max(o.right,s.right)}if(i=e.outerWidth-le(o,t,"left","right"),a=e.outerHeight-le(o,t,"top","bottom"),i!==t.w||a!==t.h)return t.w=i,t.h=a,n.horizontal?i!==t.w:a!==t.h}function de(t,e){var n=e.maxPadding;function i(t){var i={left:0,top:0,right:0,bottom:0};return t.forEach((function(t){i[t]=Math.max(e[t],n[t])})),i}return i(t?["left","right"]:["top","bottom"])}function he(t,e,n){var i,a,r,o,s,l,u=[];for(i=0,a=t.length;i<a;++i)(o=(r=t[i]).box).update(r.width||e.w,r.height||e.h,de(r.horizontal,e)),ue(e,n,r)&&(l=!0,u.length&&(s=!0)),o.fullWidth||u.push(r);return s&&he(u,e,n)||l}function ce(t,e,n){var i,a,r,o,s=n.padding,l=e.x,u=e.y;for(i=0,a=t.length;i<a;++i)o=(r=t[i]).box,r.horizontal?(o.left=o.fullWidth?s.left:e.left,o.right=o.fullWidth?n.outerWidth-s.right:e.left+e.w,o.top=u,o.bottom=u+o.height,o.width=o.right-o.left,u=o.bottom):(o.left=l,o.right=l+o.width,o.top=e.top,o.bottom=e.top+e.h,o.height=o.bottom-o.top,l=o.right);e.x=l,e.y=u}z._set("global",{layout:{padding:{top:0,right:0,bottom:0,left:0}}});var fe,ge={defaults:{},addBox:function(t,e){t.boxes||(t.boxes=[]),e.fullWidth=e.fullWidth||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw:function(){e.draw.apply(e,arguments)}}]},t.boxes.push(e)},removeBox:function(t,e){var n=t.boxes?t.boxes.indexOf(e):-1;-1!==n&&t.boxes.splice(n,1)},configure:function(t,e,n){for(var i,a=["fullWidth","position","weight"],r=a.length,o=0;o<r;++o)i=a[o],n.hasOwnProperty(i)&&(e[i]=n[i])},update:function(t,e,n){if(t){var i=t.options.layout||{},a=V.options.toPadding(i.padding),r=e-a.width,o=n-a.height,s=function(t){var e=function(t){var e,n,i,a=[];for(e=0,n=(t||[]).length;e<n;++e)i=t[e],a.push({index:e,box:i,pos:i.position,horizontal:i.isHorizontal(),weight:i.weight});return a}(t),n=se(oe(e,"left"),!0),i=se(oe(e,"right")),a=se(oe(e,"top"),!0),r=se(oe(e,"bottom"));return{leftAndTop:n.concat(a),rightAndBottom:i.concat(r),chartArea:oe(e,"chartArea"),vertical:n.concat(i),horizontal:a.concat(r)}}(t.boxes),l=s.vertical,u=s.horizontal,d=Object.freeze({outerWidth:e,outerHeight:n,padding:a,availableWidth:r,vBoxMaxWidth:r/2/l.length,hBoxMaxHeight:o/2}),h=re({maxPadding:re({},a),w:r,h:o,x:a.left,y:a.top},a);!function(t,e){var n,i,a;for(n=0,i=t.length;n<i;++n)(a=t[n]).width=a.horizontal?a.box.fullWidth&&e.availableWidth:e.vBoxMaxWidth,a.height=a.horizontal&&e.hBoxMaxHeight}(l.concat(u),d),he(l,h,d),he(u,h,d)&&he(l,h,d),function(t){var e=t.maxPadding;function n(n){var i=Math.max(e[n]-t[n],0);return t[n]+=i,i}t.y+=n("top"),t.x+=n("left"),n("right"),n("bottom")}(h),ce(s.leftAndTop,h,d),h.x+=h.w,h.y+=h.h,ce(s.rightAndBottom,h,d),t.chartArea={left:h.left,top:h.top,right:h.left+h.w,bottom:h.top+h.h},V.each(s.chartArea,(function(e){var n=e.box;re(n,t.chartArea),n.update(h.w,h.h)}))}}},pe=(fe=Object.freeze({__proto__:null,default:"@keyframes chartjs-render-animation{from{opacity:.99}to{opacity:1}}.chartjs-render-monitor{animation:chartjs-render-animation 1ms}.chartjs-size-monitor,.chartjs-size-monitor-expand,.chartjs-size-monitor-shrink{position:absolute;direction:ltr;left:0;top:0;right:0;bottom:0;overflow:hidden;pointer-events:none;visibility:hidden;z-index:-1}.chartjs-size-monitor-expand>div{position:absolute;width:1000000px;height:1000000px;left:0;top:0}.chartjs-size-monitor-shrink>div{position:absolute;width:200%;height:200%;left:0;top:0}"}))&&fe.default||fe,me="$chartjs",ve="chartjs-size-monitor",be="chartjs-render-monitor",xe="chartjs-render-animation",ye=["animationstart","webkitAnimationStart"],_e={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"};function ke(t,e){var n=V.getStyle(t,e),i=n&&n.match(/^(\d+)(\.\d+)?px$/);return i?Number(i[1]):void 0}var we=!!function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("e",null,e)}catch(t){}return t}()&&{passive:!0};function Me(t,e,n){t.addEventListener(e,n,we)}function Se(t,e,n){t.removeEventListener(e,n,we)}function Ce(t,e,n,i,a){return{type:t,chart:e,native:a||null,x:void 0!==n?n:null,y:void 0!==i?i:null}}function Pe(t){var e=document.createElement("div");return e.className=t||"",e}function Ae(t,e,n){var i,a,r,o,s=t[me]||(t[me]={}),l=s.resizer=function(t){var e=Pe(ve),n=Pe(ve+"-expand"),i=Pe(ve+"-shrink");n.appendChild(Pe()),i.appendChild(Pe()),e.appendChild(n),e.appendChild(i),e._reset=function(){n.scrollLeft=1e6,n.scrollTop=1e6,i.scrollLeft=1e6,i.scrollTop=1e6};var a=function(){e._reset(),t()};return Me(n,"scroll",a.bind(n,"expand")),Me(i,"scroll",a.bind(i,"shrink")),e}((i=function(){if(s.resizer){var i=n.options.maintainAspectRatio&&t.parentNode,a=i?i.clientWidth:0;e(Ce("resize",n)),i&&i.clientWidth<a&&n.canvas&&e(Ce("resize",n))}},r=!1,o=[],function(){o=Array.prototype.slice.call(arguments),a=a||this,r||(r=!0,V.requestAnimFrame.call(window,(function(){r=!1,i.apply(a,o)})))}));!function(t,e){var n=t[me]||(t[me]={}),i=n.renderProxy=function(t){t.animationName===xe&&e()};V.each(ye,(function(e){Me(t,e,i)})),n.reflow=!!t.offsetParent,t.classList.add(be)}(t,(function(){if(s.resizer){var e=t.parentNode;e&&e!==l.parentNode&&e.insertBefore(l,e.firstChild),l._reset()}}))}function De(t){var e=t[me]||{},n=e.resizer;delete e.resizer,function(t){var e=t[me]||{},n=e.renderProxy;n&&(V.each(ye,(function(e){Se(t,e,n)})),delete e.renderProxy),t.classList.remove(be)}(t),n&&n.parentNode&&n.parentNode.removeChild(n)}var Te={disableCSSInjection:!1,_enabled:"undefined"!=typeof window&&"undefined"!=typeof document,_ensureLoaded:function(t){if(!this.disableCSSInjection){var e=t.getRootNode?t.getRootNode():document;!function(t,e){var n=t[me]||(t[me]={});if(!n.containsStyles){n.containsStyles=!0,e="/* Chart.js */\n"+e;var i=document.createElement("style");i.setAttribute("type","text/css"),i.appendChild(document.createTextNode(e)),t.appendChild(i)}}(e.host?e:document.head,pe)}},acquireContext:function(t,e){"string"==typeof t?t=document.getElementById(t):t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas);var n=t&&t.getContext&&t.getContext("2d");return n&&n.canvas===t?(this._ensureLoaded(t),function(t,e){var n=t.style,i=t.getAttribute("height"),a=t.getAttribute("width");if(t[me]={initial:{height:i,width:a,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",null===a||""===a){var r=ke(t,"width");void 0!==r&&(t.width=r)}if(null===i||""===i)if(""===t.style.height)t.height=t.width/(e.options.aspectRatio||2);else{var o=ke(t,"height");void 0!==r&&(t.height=o)}}(t,e),n):null},releaseContext:function(t){var e=t.canvas;if(e[me]){var n=e[me].initial;["height","width"].forEach((function(t){var i=n[t];V.isNullOrUndef(i)?e.removeAttribute(t):e.setAttribute(t,i)})),V.each(n.style||{},(function(t,n){e.style[n]=t})),e.width=e.width,delete e[me]}},addEventListener:function(t,e,n){var i=t.canvas;if("resize"!==e){var a=n[me]||(n[me]={});Me(i,e,(a.proxies||(a.proxies={}))[t.id+"_"+e]=function(e){n(function(t,e){var n=_e[t.type]||t.type,i=V.getRelativePosition(t,e);return Ce(n,e,i.x,i.y,t)}(e,t))})}else Ae(i,n,t)},removeEventListener:function(t,e,n){var i=t.canvas;if("resize"!==e){var a=((n[me]||{}).proxies||{})[t.id+"_"+e];a&&Se(i,e,a)}else De(i)}};V.addEvent=Me,V.removeEvent=Se;var Ie=Te._enabled?Te:{acquireContext:function(t){return t&&t.canvas&&(t=t.canvas),t&&t.getContext("2d")||null}},Fe=V.extend({initialize:function(){},acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}},Ie);z._set("global",{plugins:{}});var Le={_plugins:[],_cacheId:0,register:function(t){var e=this._plugins;[].concat(t).forEach((function(t){-1===e.indexOf(t)&&e.push(t)})),this._cacheId++},unregister:function(t){var e=this._plugins;[].concat(t).forEach((function(t){var n=e.indexOf(t);-1!==n&&e.splice(n,1)})),this._cacheId++},clear:function(){this._plugins=[],this._cacheId++},count:function(){return this._plugins.length},getAll:function(){return this._plugins},notify:function(t,e,n){var i,a,r,o,s,l=this.descriptors(t),u=l.length;for(i=0;i<u;++i)if("function"==typeof(s=(r=(a=l[i]).plugin)[e])&&((o=[t].concat(n||[])).push(a.options),!1===s.apply(r,o)))return!1;return!0},descriptors:function(t){var e=t.$plugins||(t.$plugins={});if(e.id===this._cacheId)return e.descriptors;var n=[],i=[],a=t&&t.config||{},r=a.options&&a.options.plugins||{};return this._plugins.concat(a.plugins||[]).forEach((function(t){if(-1===n.indexOf(t)){var e=t.id,a=r[e];!1!==a&&(!0===a&&(a=V.clone(z.global.plugins[e])),n.push(t),i.push({plugin:t,options:a||{}}))}})),e.descriptors=i,e.id=this._cacheId,i},_invalidate:function(t){delete t.$plugins}},Oe={constructors:{},defaults:{},registerScaleType:function(t,e,n){this.constructors[t]=e,this.defaults[t]=V.clone(n)},getScaleConstructor:function(t){return this.constructors.hasOwnProperty(t)?this.constructors[t]:void 0},getScaleDefaults:function(t){return this.defaults.hasOwnProperty(t)?V.merge({},[z.scale,this.defaults[t]]):{}},updateScaleDefaults:function(t,e){this.defaults.hasOwnProperty(t)&&(this.defaults[t]=V.extend(this.defaults[t],e))},addScalesToLayout:function(t){V.each(t.scales,(function(e){e.fullWidth=e.options.fullWidth,e.position=e.options.position,e.weight=e.options.weight,ge.addBox(t,e)}))}},Re=V.valueOrDefault,ze=V.rtl.getRtlAdapter;z._set("global",{tooltips:{enabled:!0,custom:null,mode:"nearest",position:"average",intersect:!0,backgroundColor:"rgba(0,0,0,0.8)",titleFontStyle:"bold",titleSpacing:2,titleMarginBottom:6,titleFontColor:"#fff",titleAlign:"left",bodySpacing:2,bodyFontColor:"#fff",bodyAlign:"left",footerFontStyle:"bold",footerSpacing:2,footerMarginTop:6,footerFontColor:"#fff",footerAlign:"left",yPadding:6,xPadding:6,caretPadding:2,caretSize:5,cornerRadius:6,multiKeyBackground:"#fff",displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:0,callbacks:{beforeTitle:V.noop,title:function(t,e){var n="",i=e.labels,a=i?i.length:0;if(t.length>0){var r=t[0];r.label?n=r.label:r.xLabel?n=r.xLabel:a>0&&r.index<a&&(n=i[r.index])}return n},afterTitle:V.noop,beforeBody:V.noop,beforeLabel:V.noop,label:function(t,e){var n=e.datasets[t.datasetIndex].label||"";return n&&(n+=": "),V.isNullOrUndef(t.value)?n+=t.yLabel:n+=t.value,n},labelColor:function(t,e){var n=e.getDatasetMeta(t.datasetIndex).data[t.index]._view;return{borderColor:n.borderColor,backgroundColor:n.backgroundColor}},labelTextColor:function(){return this._options.bodyFontColor},afterLabel:V.noop,afterBody:V.noop,beforeFooter:V.noop,footer:V.noop,afterFooter:V.noop}}});var Ne={average:function(t){if(!t.length)return!1;var e,n,i=0,a=0,r=0;for(e=0,n=t.length;e<n;++e){var o=t[e];if(o&&o.hasValue()){var s=o.tooltipPosition();i+=s.x,a+=s.y,++r}}return{x:i/r,y:a/r}},nearest:function(t,e){var n,i,a,r=e.x,o=e.y,s=Number.POSITIVE_INFINITY;for(n=0,i=t.length;n<i;++n){var l=t[n];if(l&&l.hasValue()){var u=l.getCenterPoint(),d=V.distanceBetweenPoints(e,u);d<s&&(s=d,a=l)}}if(a){var h=a.tooltipPosition();r=h.x,o=h.y}return{x:r,y:o}}};function Be(t,e){return e&&(V.isArray(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function Ee(t){return("string"==typeof t||t instanceof String)&&t.indexOf("\n")>-1?t.split("\n"):t}function We(t){var e=z.global;return{xPadding:t.xPadding,yPadding:t.yPadding,xAlign:t.xAlign,yAlign:t.yAlign,rtl:t.rtl,textDirection:t.textDirection,bodyFontColor:t.bodyFontColor,_bodyFontFamily:Re(t.bodyFontFamily,e.defaultFontFamily),_bodyFontStyle:Re(t.bodyFontStyle,e.defaultFontStyle),_bodyAlign:t.bodyAlign,bodyFontSize:Re(t.bodyFontSize,e.defaultFontSize),bodySpacing:t.bodySpacing,titleFontColor:t.titleFontColor,_titleFontFamily:Re(t.titleFontFamily,e.defaultFontFamily),_titleFontStyle:Re(t.titleFontStyle,e.defaultFontStyle),titleFontSize:Re(t.titleFontSize,e.defaultFontSize),_titleAlign:t.titleAlign,titleSpacing:t.titleSpacing,titleMarginBottom:t.titleMarginBottom,footerFontColor:t.footerFontColor,_footerFontFamily:Re(t.footerFontFamily,e.defaultFontFamily),_footerFontStyle:Re(t.footerFontStyle,e.defaultFontStyle),footerFontSize:Re(t.footerFontSize,e.defaultFontSize),_footerAlign:t.footerAlign,footerSpacing:t.footerSpacing,footerMarginTop:t.footerMarginTop,caretSize:t.caretSize,cornerRadius:t.cornerRadius,backgroundColor:t.backgroundColor,opacity:0,legendColorBackground:t.multiKeyBackground,displayColors:t.displayColors,borderColor:t.borderColor,borderWidth:t.borderWidth}}function Ve(t,e){return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-t.xPadding:t.x+t.xPadding}function He(t){return Be([],Ee(t))}var je=X.extend({initialize:function(){this._model=We(this._options),this._lastActive=[]},getTitle:function(){var t=this,e=t._options,n=e.callbacks,i=n.beforeTitle.apply(t,arguments),a=n.title.apply(t,arguments),r=n.afterTitle.apply(t,arguments),o=[];return o=Be(o,Ee(i)),o=Be(o,Ee(a)),o=Be(o,Ee(r))},getBeforeBody:function(){return He(this._options.callbacks.beforeBody.apply(this,arguments))},getBody:function(t,e){var n=this,i=n._options.callbacks,a=[];return V.each(t,(function(t){var r={before:[],lines:[],after:[]};Be(r.before,Ee(i.beforeLabel.call(n,t,e))),Be(r.lines,i.label.call(n,t,e)),Be(r.after,Ee(i.afterLabel.call(n,t,e))),a.push(r)})),a},getAfterBody:function(){return He(this._options.callbacks.afterBody.apply(this,arguments))},getFooter:function(){var t=this,e=t._options.callbacks,n=e.beforeFooter.apply(t,arguments),i=e.footer.apply(t,arguments),a=e.afterFooter.apply(t,arguments),r=[];return r=Be(r,Ee(n)),r=Be(r,Ee(i)),r=Be(r,Ee(a))},update:function(t){var e,n,i,a,r,o,s,l,u,d,h=this,c=h._options,f=h._model,g=h._model=We(c),p=h._active,m=h._data,v={xAlign:f.xAlign,yAlign:f.yAlign},b={x:f.x,y:f.y},x={width:f.width,height:f.height},y={x:f.caretX,y:f.caretY};if(p.length){g.opacity=1;var _=[],k=[];y=Ne[c.position].call(h,p,h._eventPosition);var w=[];for(e=0,n=p.length;e<n;++e)w.push((i=p[e],a=void 0,r=void 0,o=void 0,s=void 0,l=void 0,u=void 0,d=void 0,a=i._xScale,r=i._yScale||i._scale,o=i._index,s=i._datasetIndex,l=i._chart.getDatasetMeta(s).controller,u=l._getIndexScale(),d=l._getValueScale(),{xLabel:a?a.getLabelForIndex(o,s):"",yLabel:r?r.getLabelForIndex(o,s):"",label:u?""+u.getLabelForIndex(o,s):"",value:d?""+d.getLabelForIndex(o,s):"",index:o,datasetIndex:s,x:i._model.x,y:i._model.y}));c.filter&&(w=w.filter((function(t){return c.filter(t,m)}))),c.itemSort&&(w=w.sort((function(t,e){return c.itemSort(t,e,m)}))),V.each(w,(function(t){_.push(c.callbacks.labelColor.call(h,t,h._chart)),k.push(c.callbacks.labelTextColor.call(h,t,h._chart))})),g.title=h.getTitle(w,m),g.beforeBody=h.getBeforeBody(w,m),g.body=h.getBody(w,m),g.afterBody=h.getAfterBody(w,m),g.footer=h.getFooter(w,m),g.x=y.x,g.y=y.y,g.caretPadding=c.caretPadding,g.labelColors=_,g.labelTextColors=k,g.dataPoints=w,x=function(t,e){var n=t._chart.ctx,i=2*e.yPadding,a=0,r=e.body,o=r.reduce((function(t,e){return t+e.before.length+e.lines.length+e.after.length}),0);o+=e.beforeBody.length+e.afterBody.length;var s=e.title.length,l=e.footer.length,u=e.titleFontSize,d=e.bodyFontSize,h=e.footerFontSize;i+=s*u,i+=s?(s-1)*e.titleSpacing:0,i+=s?e.titleMarginBottom:0,i+=o*d,i+=o?(o-1)*e.bodySpacing:0,i+=l?e.footerMarginTop:0,i+=l*h,i+=l?(l-1)*e.footerSpacing:0;var c=0,f=function(t){a=Math.max(a,n.measureText(t).width+c)};return n.font=V.fontString(u,e._titleFontStyle,e._titleFontFamily),V.each(e.title,f),n.font=V.fontString(d,e._bodyFontStyle,e._bodyFontFamily),V.each(e.beforeBody.concat(e.afterBody),f),c=e.displayColors?d+2:0,V.each(r,(function(t){V.each(t.before,f),V.each(t.lines,f),V.each(t.after,f)})),c=0,n.font=V.fontString(h,e._footerFontStyle,e._footerFontFamily),V.each(e.footer,f),{width:a+=2*e.xPadding,height:i}}(this,g),b=function(t,e,n,i){var a=t.x,r=t.y,o=t.caretSize,s=t.caretPadding,l=t.cornerRadius,u=n.xAlign,d=n.yAlign,h=o+s,c=l+s;return"right"===u?a-=e.width:"center"===u&&((a-=e.width/2)+e.width>i.width&&(a=i.width-e.width),a<0&&(a=0)),"top"===d?r+=h:r-="bottom"===d?e.height+h:e.height/2,"center"===d?"left"===u?a+=h:"right"===u&&(a-=h):"left"===u?a-=c:"right"===u&&(a+=c),{x:a,y:r}}(g,x,v=function(t,e){var n,i,a,r,o,s=t._model,l=t._chart,u=t._chart.chartArea,d="center",h="center";s.y<e.height?h="top":s.y>l.height-e.height&&(h="bottom");var c=(u.left+u.right)/2,f=(u.top+u.bottom)/2;"center"===h?(n=function(t){return t<=c},i=function(t){return t>c}):(n=function(t){return t<=e.width/2},i=function(t){return t>=l.width-e.width/2}),a=function(t){return t+e.width+s.caretSize+s.caretPadding>l.width},r=function(t){return t-e.width-s.caretSize-s.caretPadding<0},o=function(t){return t<=f?"top":"bottom"},n(s.x)?(d="left",a(s.x)&&(d="center",h=o(s.y))):i(s.x)&&(d="right",r(s.x)&&(d="center",h=o(s.y)));var g=t._options;return{xAlign:g.xAlign?g.xAlign:d,yAlign:g.yAlign?g.yAlign:h}}(this,x),h._chart)}else g.opacity=0;return g.xAlign=v.xAlign,g.yAlign=v.yAlign,g.x=b.x,g.y=b.y,g.width=x.width,g.height=x.height,g.caretX=y.x,g.caretY=y.y,h._model=g,t&&c.custom&&c.custom.call(h,g),h},drawCaret:function(t,e){var n=this._chart.ctx,i=this._view,a=this.getCaretPosition(t,e,i);n.lineTo(a.x1,a.y1),n.lineTo(a.x2,a.y2),n.lineTo(a.x3,a.y3)},getCaretPosition:function(t,e,n){var i,a,r,o,s,l,u=n.caretSize,d=n.cornerRadius,h=n.xAlign,c=n.yAlign,f=t.x,g=t.y,p=e.width,m=e.height;if("center"===c)s=g+m/2,"left"===h?(a=(i=f)-u,r=i,o=s+u,l=s-u):(a=(i=f+p)+u,r=i,o=s-u,l=s+u);else if("left"===h?(i=(a=f+d+u)-u,r=a+u):"right"===h?(i=(a=f+p-d-u)-u,r=a+u):(i=(a=n.caretX)-u,r=a+u),"top"===c)s=(o=g)-u,l=o;else{s=(o=g+m)+u,l=o;var v=r;r=i,i=v}return{x1:i,x2:a,x3:r,y1:o,y2:s,y3:l}},drawTitle:function(t,e,n){var i,a,r,o=e.title,s=o.length;if(s){var l=ze(e.rtl,e.x,e.width);for(t.x=Ve(e,e._titleAlign),n.textAlign=l.textAlign(e._titleAlign),n.textBaseline="middle",i=e.titleFontSize,a=e.titleSpacing,n.fillStyle=e.titleFontColor,n.font=V.fontString(i,e._titleFontStyle,e._titleFontFamily),r=0;r<s;++r)n.fillText(o[r],l.x(t.x),t.y+i/2),t.y+=i+a,r+1===s&&(t.y+=e.titleMarginBottom-a)}},drawBody:function(t,e,n){var i,a,r,o,s,l,u,d,h=e.bodyFontSize,c=e.bodySpacing,f=e._bodyAlign,g=e.body,p=e.displayColors,m=0,v=p?Ve(e,"left"):0,b=ze(e.rtl,e.x,e.width),x=function(e){n.fillText(e,b.x(t.x+m),t.y+h/2),t.y+=h+c},y=b.textAlign(f);for(n.textAlign=f,n.textBaseline="middle",n.font=V.fontString(h,e._bodyFontStyle,e._bodyFontFamily),t.x=Ve(e,y),n.fillStyle=e.bodyFontColor,V.each(e.beforeBody,x),m=p&&"right"!==y?"center"===f?h/2+1:h+2:0,s=0,u=g.length;s<u;++s){for(i=g[s],a=e.labelTextColors[s],r=e.labelColors[s],n.fillStyle=a,V.each(i.before,x),l=0,d=(o=i.lines).length;l<d;++l){if(p){var _=b.x(v);n.fillStyle=e.legendColorBackground,n.fillRect(b.leftForLtr(_,h),t.y,h,h),n.lineWidth=1,n.strokeStyle=r.borderColor,n.strokeRect(b.leftForLtr(_,h),t.y,h,h),n.fillStyle=r.backgroundColor,n.fillRect(b.leftForLtr(b.xPlus(_,1),h-2),t.y+1,h-2,h-2),n.fillStyle=a}x(o[l])}V.each(i.after,x)}m=0,V.each(e.afterBody,x),t.y-=c},drawFooter:function(t,e,n){var i,a,r=e.footer,o=r.length;if(o){var s=ze(e.rtl,e.x,e.width);for(t.x=Ve(e,e._footerAlign),t.y+=e.footerMarginTop,n.textAlign=s.textAlign(e._footerAlign),n.textBaseline="middle",i=e.footerFontSize,n.fillStyle=e.footerFontColor,n.font=V.fontString(i,e._footerFontStyle,e._footerFontFamily),a=0;a<o;++a)n.fillText(r[a],s.x(t.x),t.y+i/2),t.y+=i+e.footerSpacing}},drawBackground:function(t,e,n,i){n.fillStyle=e.backgroundColor,n.strokeStyle=e.borderColor,n.lineWidth=e.borderWidth;var a=e.xAlign,r=e.yAlign,o=t.x,s=t.y,l=i.width,u=i.height,d=e.cornerRadius;n.beginPath(),n.moveTo(o+d,s),"top"===r&&this.drawCaret(t,i),n.lineTo(o+l-d,s),n.quadraticCurveTo(o+l,s,o+l,s+d),"center"===r&&"right"===a&&this.drawCaret(t,i),n.lineTo(o+l,s+u-d),n.quadraticCurveTo(o+l,s+u,o+l-d,s+u),"bottom"===r&&this.drawCaret(t,i),n.lineTo(o+d,s+u),n.quadraticCurveTo(o,s+u,o,s+u-d),"center"===r&&"left"===a&&this.drawCaret(t,i),n.lineTo(o,s+d),n.quadraticCurveTo(o,s,o+d,s),n.closePath(),n.fill(),e.borderWidth>0&&n.stroke()},draw:function(){var t=this._chart.ctx,e=this._view;if(0!==e.opacity){var n={width:e.width,height:e.height},i={x:e.x,y:e.y},a=Math.abs(e.opacity<.001)?0:e.opacity,r=e.title.length||e.beforeBody.length||e.body.length||e.afterBody.length||e.footer.length;this._options.enabled&&r&&(t.save(),t.globalAlpha=a,this.drawBackground(i,e,t,n),i.y+=e.yPadding,V.rtl.overrideTextDirection(t,e.textDirection),this.drawTitle(i,e,t),this.drawBody(i,e,t),this.drawFooter(i,e,t),V.rtl.restoreTextDirection(t,e.textDirection),t.restore())}},handleEvent:function(t){var e,n=this,i=n._options;return n._lastActive=n._lastActive||[],"mouseout"===t.type?n._active=[]:(n._active=n._chart.getElementsAtEventForMode(t,i.mode,i),i.reverse&&n._active.reverse()),(e=!V.arrayEquals(n._active,n._lastActive))&&(n._lastActive=n._active,(i.enabled||i.custom)&&(n._eventPosition={x:t.x,y:t.y},n.update(!0),n.pivot())),e}}),qe=Ne,Ue=je;Ue.positioners=qe;var Ye=V.valueOrDefault;function Ge(){return V.merge({},[].slice.call(arguments),{merger:function(t,e,n,i){if("xAxes"===t||"yAxes"===t){var a,r,o,s=n[t].length;for(e[t]||(e[t]=[]),a=0;a<s;++a)o=n[t][a],r=Ye(o.type,"xAxes"===t?"category":"linear"),a>=e[t].length&&e[t].push({}),!e[t][a].type||o.type&&o.type!==e[t][a].type?V.merge(e[t][a],[Oe.getScaleDefaults(r),o]):V.merge(e[t][a],o)}else V._merger(t,e,n,i)}})}function Xe(){return V.merge({},[].slice.call(arguments),{merger:function(t,e,n,i){var a=e[t]||{},r=n[t];"scales"===t?e[t]=Ge(a,r):"scale"===t?e[t]=V.merge(a,[Oe.getScaleDefaults(r.type),r]):V._merger(t,e,n,i)}})}function Ke(t){var e=t.options;V.each(t.scales,(function(e){ge.removeBox(t,e)})),e=Xe(z.global,z[t.config.type],e),t.options=t.config.options=e,t.ensureScalesHaveIDs(),t.buildOrUpdateScales(),t.tooltip._options=e.tooltips,t.tooltip.initialize()}function Ze(t,e,n){var i,a=function(t){return t.id===i};do{i=e+n++}while(V.findIndex(t,a)>=0);return i}function $e(t){return"top"===t||"bottom"===t}function Je(t,e){return function(n,i){return n[t]===i[t]?n[e]-i[e]:n[t]-i[t]}}z._set("global",{elements:{},events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"nearest",intersect:!0,animationDuration:400},onClick:null,maintainAspectRatio:!0,responsive:!0,responsiveAnimationDuration:0});var Qe=function(t,e){return this.construct(t,e),this};V.extend(Qe.prototype,{construct:function(t,e){var n=this;e=function(t){var e=(t=t||{}).data=t.data||{};return e.datasets=e.datasets||[],e.labels=e.labels||[],t.options=Xe(z.global,z[t.type],t.options||{}),t}(e);var i=Fe.acquireContext(t,e),a=i&&i.canvas,r=a&&a.height,o=a&&a.width;n.id=V.uid(),n.ctx=i,n.canvas=a,n.config=e,n.width=o,n.height=r,n.aspectRatio=r?o/r:null,n.options=e.options,n._bufferedRender=!1,n._layers=[],n.chart=n,n.controller=n,Qe.instances[n.id]=n,Object.defineProperty(n,"data",{get:function(){return n.config.data},set:function(t){n.config.data=t}}),i&&a?(n.initialize(),n.update()):console.error("Failed to create chart: can't acquire context from the given item")},initialize:function(){var t=this;return Le.notify(t,"beforeInit"),V.retinaScale(t,t.options.devicePixelRatio),t.bindEvents(),t.options.responsive&&t.resize(!0),t.initToolTip(),Le.notify(t,"afterInit"),t},clear:function(){return V.canvas.clear(this),this},stop:function(){return $.cancelAnimation(this),this},resize:function(t){var e=this,n=e.options,i=e.canvas,a=n.maintainAspectRatio&&e.aspectRatio||null,r=Math.max(0,Math.floor(V.getMaximumWidth(i))),o=Math.max(0,Math.floor(a?r/a:V.getMaximumHeight(i)));if((e.width!==r||e.height!==o)&&(i.width=e.width=r,i.height=e.height=o,i.style.width=r+"px",i.style.height=o+"px",V.retinaScale(e,n.devicePixelRatio),!t)){var s={width:r,height:o};Le.notify(e,"resize",[s]),n.onResize&&n.onResize(e,s),e.stop(),e.update({duration:n.responsiveAnimationDuration})}},ensureScalesHaveIDs:function(){var t=this.options,e=t.scales||{},n=t.scale;V.each(e.xAxes,(function(t,n){t.id||(t.id=Ze(e.xAxes,"x-axis-",n))})),V.each(e.yAxes,(function(t,n){t.id||(t.id=Ze(e.yAxes,"y-axis-",n))})),n&&(n.id=n.id||"scale")},buildOrUpdateScales:function(){var t=this,e=t.options,n=t.scales||{},i=[],a=Object.keys(n).reduce((function(t,e){return t[e]=!1,t}),{});e.scales&&(i=i.concat((e.scales.xAxes||[]).map((function(t){return{options:t,dtype:"category",dposition:"bottom"}})),(e.scales.yAxes||[]).map((function(t){return{options:t,dtype:"linear",dposition:"left"}})))),e.scale&&i.push({options:e.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),V.each(i,(function(e){var i=e.options,r=i.id,o=Ye(i.type,e.dtype);$e(i.position)!==$e(e.dposition)&&(i.position=e.dposition),a[r]=!0;var s=null;if(r in n&&n[r].type===o)(s=n[r]).options=i,s.ctx=t.ctx,s.chart=t;else{var l=Oe.getScaleConstructor(o);if(!l)return;s=new l({id:r,type:o,options:i,ctx:t.ctx,chart:t}),n[s.id]=s}s.mergeTicksOptions(),e.isDefault&&(t.scale=s)})),V.each(a,(function(t,e){t||delete n[e]})),t.scales=n,Oe.addScalesToLayout(this)},buildOrUpdateControllers:function(){var t,e,n=this,i=[],a=n.data.datasets;for(t=0,e=a.length;t<e;t++){var r=a[t],o=n.getDatasetMeta(t),s=r.type||n.config.type;if(o.type&&o.type!==s&&(n.destroyDatasetMeta(t),o=n.getDatasetMeta(t)),o.type=s,o.order=r.order||0,o.index=t,o.controller)o.controller.updateIndex(t),o.controller.linkScales();else{var l=$t[o.type];if(void 0===l)throw new Error('"'+o.type+'" is not a chart type.');o.controller=new l(n,t),i.push(o.controller)}}return i},resetElements:function(){var t=this;V.each(t.data.datasets,(function(e,n){t.getDatasetMeta(n).controller.reset()}),t)},reset:function(){this.resetElements(),this.tooltip.initialize()},update:function(t){var e,n,i=this;if(t&&"object"==typeof t||(t={duration:t,lazy:arguments[1]}),Ke(i),Le._invalidate(i),!1!==Le.notify(i,"beforeUpdate")){i.tooltip._data=i.data;var a=i.buildOrUpdateControllers();for(e=0,n=i.data.datasets.length;e<n;e++)i.getDatasetMeta(e).controller.buildOrUpdateElements();i.updateLayout(),i.options.animation&&i.options.animation.duration&&V.each(a,(function(t){t.reset()})),i.updateDatasets(),i.tooltip.initialize(),i.lastActive=[],Le.notify(i,"afterUpdate"),i._layers.sort(Je("z","_idx")),i._bufferedRender?i._bufferedRequest={duration:t.duration,easing:t.easing,lazy:t.lazy}:i.render(t)}},updateLayout:function(){var t=this;!1!==Le.notify(t,"beforeLayout")&&(ge.update(this,this.width,this.height),t._layers=[],V.each(t.boxes,(function(e){e._configure&&e._configure(),t._layers.push.apply(t._layers,e._layers())}),t),t._layers.forEach((function(t,e){t._idx=e})),Le.notify(t,"afterScaleUpdate"),Le.notify(t,"afterLayout"))},updateDatasets:function(){if(!1!==Le.notify(this,"beforeDatasetsUpdate")){for(var t=0,e=this.data.datasets.length;t<e;++t)this.updateDataset(t);Le.notify(this,"afterDatasetsUpdate")}},updateDataset:function(t){var e=this.getDatasetMeta(t),n={meta:e,index:t};!1!==Le.notify(this,"beforeDatasetUpdate",[n])&&(e.controller._update(),Le.notify(this,"afterDatasetUpdate",[n]))},render:function(t){var e=this;t&&"object"==typeof t||(t={duration:t,lazy:arguments[1]});var n=e.options.animation,i=Ye(t.duration,n&&n.duration),a=t.lazy;if(!1!==Le.notify(e,"beforeRender")){var r=function(t){Le.notify(e,"afterRender"),V.callback(n&&n.onComplete,[t],e)};if(n&&i){var o=new Z({numSteps:i/16.66,easing:t.easing||n.easing,render:function(t,e){var n=V.easing.effects[e.easing],i=e.currentStep,a=i/e.numSteps;t.draw(n(a),a,i)},onAnimationProgress:n.onProgress,onAnimationComplete:r});$.addAnimation(e,o,i,a)}else e.draw(),r(new Z({numSteps:0,chart:e}));return e}},draw:function(t){var e,n,i=this;if(i.clear(),V.isNullOrUndef(t)&&(t=1),i.transition(t),!(i.width<=0||i.height<=0)&&!1!==Le.notify(i,"beforeDraw",[t])){for(n=i._layers,e=0;e<n.length&&n[e].z<=0;++e)n[e].draw(i.chartArea);for(i.drawDatasets(t);e<n.length;++e)n[e].draw(i.chartArea);i._drawTooltip(t),Le.notify(i,"afterDraw",[t])}},transition:function(t){for(var e=0,n=(this.data.datasets||[]).length;e<n;++e)this.isDatasetVisible(e)&&this.getDatasetMeta(e).controller.transition(t);this.tooltip.transition(t)},_getSortedDatasetMetas:function(t){var e,n,i=[];for(e=0,n=(this.data.datasets||[]).length;e<n;++e)t&&!this.isDatasetVisible(e)||i.push(this.getDatasetMeta(e));return i.sort(Je("order","index")),i},_getSortedVisibleDatasetMetas:function(){return this._getSortedDatasetMetas(!0)},drawDatasets:function(t){var e,n;if(!1!==Le.notify(this,"beforeDatasetsDraw",[t])){for(n=(e=this._getSortedVisibleDatasetMetas()).length-1;n>=0;--n)this.drawDataset(e[n],t);Le.notify(this,"afterDatasetsDraw",[t])}},drawDataset:function(t,e){var n={meta:t,index:t.index,easingValue:e};!1!==Le.notify(this,"beforeDatasetDraw",[n])&&(t.controller.draw(e),Le.notify(this,"afterDatasetDraw",[n]))},_drawTooltip:function(t){var e=this.tooltip,n={tooltip:e,easingValue:t};!1!==Le.notify(this,"beforeTooltipDraw",[n])&&(e.draw(),Le.notify(this,"afterTooltipDraw",[n]))},getElementAtEvent:function(t){return ae.modes.single(this,t)},getElementsAtEvent:function(t){return ae.modes.label(this,t,{intersect:!0})},getElementsAtXAxis:function(t){return ae.modes["x-axis"](this,t,{intersect:!0})},getElementsAtEventForMode:function(t,e,n){var i=ae.modes[e];return"function"==typeof i?i(this,t,n):[]},getDatasetAtEvent:function(t){return ae.modes.dataset(this,t,{intersect:!0})},getDatasetMeta:function(t){var e=this.data.datasets[t];e._meta||(e._meta={});var n=e._meta[this.id];return n||(n=e._meta[this.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e.order||0,index:t}),n},getVisibleDatasetCount:function(){for(var t=0,e=0,n=this.data.datasets.length;e<n;++e)this.isDatasetVisible(e)&&t++;return t},isDatasetVisible:function(t){var e=this.getDatasetMeta(t);return"boolean"==typeof e.hidden?!e.hidden:!this.data.datasets[t].hidden},generateLegend:function(){return this.options.legendCallback(this)},destroyDatasetMeta:function(t){var e=this.id,n=this.data.datasets[t],i=n._meta&&n._meta[e];i&&(i.controller.destroy(),delete n._meta[e])},destroy:function(){var t,e,n=this,i=n.canvas;for(n.stop(),t=0,e=n.data.datasets.length;t<e;++t)n.destroyDatasetMeta(t);i&&(n.unbindEvents(),V.canvas.clear(n),Fe.releaseContext(n.ctx),n.canvas=null,n.ctx=null),Le.notify(n,"destroy"),delete Qe.instances[n.id]},toBase64Image:function(){return this.canvas.toDataURL.apply(this.canvas,arguments)},initToolTip:function(){var t=this;t.tooltip=new Ue({_chart:t,_chartInstance:t,_data:t.data,_options:t.options.tooltips},t)},bindEvents:function(){var t=this,e=t._listeners={},n=function(){t.eventHandler.apply(t,arguments)};V.each(t.options.events,(function(i){Fe.addEventListener(t,i,n),e[i]=n})),t.options.responsive&&(n=function(){t.resize()},Fe.addEventListener(t,"resize",n),e.resize=n)},unbindEvents:function(){var t=this,e=t._listeners;e&&(delete t._listeners,V.each(e,(function(e,n){Fe.removeEventListener(t,n,e)})))},updateHoverStyle:function(t,e,n){var i,a,r,o=n?"set":"remove";for(a=0,r=t.length;a<r;++a)(i=t[a])&&this.getDatasetMeta(i._datasetIndex).controller[o+"HoverStyle"](i);"dataset"===e&&this.getDatasetMeta(t[0]._datasetIndex).controller["_"+o+"DatasetHoverStyle"]()},eventHandler:function(t){var e=this,n=e.tooltip;if(!1!==Le.notify(e,"beforeEvent",[t])){e._bufferedRender=!0,e._bufferedRequest=null;var i=e.handleEvent(t);n&&(i=n._start?n.handleEvent(t):i|n.handleEvent(t)),Le.notify(e,"afterEvent",[t]);var a=e._bufferedRequest;return a?e.render(a):i&&!e.animating&&(e.stop(),e.render({duration:e.options.hover.animationDuration,lazy:!0})),e._bufferedRender=!1,e._bufferedRequest=null,e}},handleEvent:function(t){var e,n=this,i=n.options||{},a=i.hover;return n.lastActive=n.lastActive||[],"mouseout"===t.type?n.active=[]:n.active=n.getElementsAtEventForMode(t,a.mode,a),V.callback(i.onHover||i.hover.onHover,[t.native,n.active],n),"mouseup"!==t.type&&"click"!==t.type||i.onClick&&i.onClick.call(n,t.native,n.active),n.lastActive.length&&n.updateHoverStyle(n.lastActive,a.mode,!1),n.active.length&&a.mode&&n.updateHoverStyle(n.active,a.mode,!0),e=!V.arrayEquals(n.active,n.lastActive),n.lastActive=n.active,e}}),Qe.instances={};var tn=Qe;Qe.Controller=Qe,Qe.types={},V.configMerge=Xe,V.scaleMerge=Ge;function en(){throw new Error("This method is not implemented: either no adapter can be found or an incomplete integration was provided.")}function nn(t){this.options=t||{}}V.extend(nn.prototype,{formats:en,parse:en,format:en,add:en,diff:en,startOf:en,endOf:en,_create:function(t){return t}}),nn.override=function(t){V.extend(nn.prototype,t)};var an={_date:nn},rn={formatters:{values:function(t){return V.isArray(t)?t:""+t},linear:function(t,e,n){var i=n.length>3?n[2]-n[1]:n[1]-n[0];Math.abs(i)>1&&t!==Math.floor(t)&&(i=t-Math.floor(t));var a=V.log10(Math.abs(i)),r="";if(0!==t)if(Math.max(Math.abs(n[0]),Math.abs(n[n.length-1]))<1e-4){var o=V.log10(Math.abs(t)),s=Math.floor(o)-Math.floor(a);s=Math.max(Math.min(s,20),0),r=t.toExponential(s)}else{var l=-1*Math.floor(a);l=Math.max(Math.min(l,20),0),r=t.toFixed(l)}else r="0";return r},logarithmic:function(t,e,n){var i=t/Math.pow(10,Math.floor(V.log10(t)));return 0===t?"0":1===i||2===i||5===i||0===e||e===n.length-1?t.toExponential():""}}},on=V.isArray,sn=V.isNullOrUndef,ln=V.valueOrDefault,un=V.valueAtIndexOrDefault;function dn(t,e,n){var i,a=t.getTicks().length,r=Math.min(e,a-1),o=t.getPixelForTick(r),s=t._startPixel,l=t._endPixel;if(!(n&&(i=1===a?Math.max(o-s,l-o):0===e?(t.getPixelForTick(1)-o)/2:(o-t.getPixelForTick(r-1))/2,(o+=r<e?i:-i)<s-1e-6||o>l+1e-6)))return o}function hn(t,e,n,i){var a,r,o,s,l,u,d,h,c,f,g,p,m,v=n.length,b=[],x=[],y=[];for(a=0;a<v;++a){if(s=n[a].label,l=n[a].major?e.major:e.minor,t.font=u=l.string,d=i[u]=i[u]||{data:{},gc:[]},h=l.lineHeight,c=f=0,sn(s)||on(s)){if(on(s))for(r=0,o=s.length;r<o;++r)g=s[r],sn(g)||on(g)||(c=V.measureText(t,d.data,d.gc,c,g),f+=h)}else c=V.measureText(t,d.data,d.gc,c,s),f=h;b.push(c),x.push(f),y.push(h/2)}function _(t){return{width:b[t]||0,height:x[t]||0,offset:y[t]||0}}return function(t,e){V.each(t,(function(t){var n,i=t.gc,a=i.length/2;if(a>e){for(n=0;n<a;++n)delete t.data[i[n]];i.splice(0,a)}}))}(i,v),p=b.indexOf(Math.max.apply(null,b)),m=x.indexOf(Math.max.apply(null,x)),{first:_(0),last:_(v-1),widest:_(p),highest:_(m)}}function cn(t){return t.drawTicks?t.tickMarkLength:0}function fn(t){var e,n;return t.display?(e=V.options._parseFont(t),n=V.options.toPadding(t.padding),e.lineHeight+n.height):0}function gn(t,e){return V.extend(V.options._parseFont({fontFamily:ln(e.fontFamily,t.fontFamily),fontSize:ln(e.fontSize,t.fontSize),fontStyle:ln(e.fontStyle,t.fontStyle),lineHeight:ln(e.lineHeight,t.lineHeight)}),{color:V.options.resolve([e.fontColor,t.fontColor,z.global.defaultFontColor])})}function pn(t){var e=gn(t,t.minor);return{minor:e,major:t.major.enabled?gn(t,t.major):e}}function mn(t){var e,n,i,a=[];for(n=0,i=t.length;n<i;++n)void 0!==(e=t[n])._index&&a.push(e);return a}function vn(t,e,n,i){var a,r,o,s,l=ln(n,0),u=Math.min(ln(i,t.length),t.length),d=0;for(e=Math.ceil(e),i&&(e=(a=i-n)/Math.floor(a/e)),s=l;s<0;)d++,s=Math.round(l+d*e);for(r=Math.max(l,0);r<u;r++)o=t[r],r===s?(o._index=r,d++,s=Math.round(l+d*e)):delete o.label}z._set("scale",{display:!0,position:"left",offset:!1,gridLines:{display:!0,color:"rgba(0,0,0,0.1)",lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickMarkLength:10,zeroLineWidth:1,zeroLineColor:"rgba(0,0,0,0.25)",zeroLineBorderDash:[],zeroLineBorderDashOffset:0,offsetGridLines:!1,borderDash:[],borderDashOffset:0},scaleLabel:{display:!1,labelString:"",padding:{top:4,bottom:4}},ticks:{beginAtZero:!1,minRotation:0,maxRotation:50,mirror:!1,padding:0,reverse:!1,display:!0,autoSkip:!0,autoSkipPadding:0,labelOffset:0,callback:rn.formatters.values,minor:{},major:{}}});var bn=X.extend({zeroLineIndex:0,getPadding:function(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}},getTicks:function(){return this._ticks},_getLabels:function(){var t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]},mergeTicksOptions:function(){},beforeUpdate:function(){V.callback(this.options.beforeUpdate,[this])},update:function(t,e,n){var i,a,r,o,s,l=this,u=l.options.ticks,d=u.sampleSize;if(l.beforeUpdate(),l.maxWidth=t,l.maxHeight=e,l.margins=V.extend({left:0,right:0,top:0,bottom:0},n),l._ticks=null,l.ticks=null,l._labelSizes=null,l._maxLabelLines=0,l.longestLabelWidth=0,l.longestTextCache=l.longestTextCache||{},l._gridLineItems=null,l._labelItems=null,l.beforeSetDimensions(),l.setDimensions(),l.afterSetDimensions(),l.beforeDataLimits(),l.determineDataLimits(),l.afterDataLimits(),l.beforeBuildTicks(),o=l.buildTicks()||[],(!(o=l.afterBuildTicks(o)||o)||!o.length)&&l.ticks)for(o=[],i=0,a=l.ticks.length;i<a;++i)o.push({value:l.ticks[i],major:!1});return l._ticks=o,s=d<o.length,r=l._convertTicksToLabels(s?function(t,e){for(var n=[],i=t.length/e,a=0,r=t.length;a<r;a+=i)n.push(t[Math.floor(a)]);return n}(o,d):o),l._configure(),l.beforeCalculateTickRotation(),l.calculateTickRotation(),l.afterCalculateTickRotation(),l.beforeFit(),l.fit(),l.afterFit(),l._ticksToDraw=u.display&&(u.autoSkip||"auto"===u.source)?l._autoSkip(o):o,s&&(r=l._convertTicksToLabels(l._ticksToDraw)),l.ticks=r,l.afterUpdate(),l.minSize},_configure:function(){var t,e,n=this,i=n.options.ticks.reverse;n.isHorizontal()?(t=n.left,e=n.right):(t=n.top,e=n.bottom,i=!i),n._startPixel=t,n._endPixel=e,n._reversePixels=i,n._length=e-t},afterUpdate:function(){V.callback(this.options.afterUpdate,[this])},beforeSetDimensions:function(){V.callback(this.options.beforeSetDimensions,[this])},setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0},afterSetDimensions:function(){V.callback(this.options.afterSetDimensions,[this])},beforeDataLimits:function(){V.callback(this.options.beforeDataLimits,[this])},determineDataLimits:V.noop,afterDataLimits:function(){V.callback(this.options.afterDataLimits,[this])},beforeBuildTicks:function(){V.callback(this.options.beforeBuildTicks,[this])},buildTicks:V.noop,afterBuildTicks:function(t){var e=this;return on(t)&&t.length?V.callback(e.options.afterBuildTicks,[e,t]):(e.ticks=V.callback(e.options.afterBuildTicks,[e,e.ticks])||e.ticks,t)},beforeTickToLabelConversion:function(){V.callback(this.options.beforeTickToLabelConversion,[this])},convertTicksToLabels:function(){var t=this.options.ticks;this.ticks=this.ticks.map(t.userCallback||t.callback,this)},afterTickToLabelConversion:function(){V.callback(this.options.afterTickToLabelConversion,[this])},beforeCalculateTickRotation:function(){V.callback(this.options.beforeCalculateTickRotation,[this])},calculateTickRotation:function(){var t,e,n,i,a,r,o,s=this,l=s.options,u=l.ticks,d=s.getTicks().length,h=u.minRotation||0,c=u.maxRotation,f=h;!s._isVisible()||!u.display||h>=c||d<=1||!s.isHorizontal()?s.labelRotation=h:(e=(t=s._getLabelSizes()).widest.width,n=t.highest.height-t.highest.offset,i=Math.min(s.maxWidth,s.chart.width-e),e+6>(a=l.offset?s.maxWidth/d:i/(d-1))&&(a=i/(d-(l.offset?.5:1)),r=s.maxHeight-cn(l.gridLines)-u.padding-fn(l.scaleLabel),o=Math.sqrt(e*e+n*n),f=V.toDegrees(Math.min(Math.asin(Math.min((t.highest.height+6)/a,1)),Math.asin(Math.min(r/o,1))-Math.asin(n/o))),f=Math.max(h,Math.min(c,f))),s.labelRotation=f)},afterCalculateTickRotation:function(){V.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){V.callback(this.options.beforeFit,[this])},fit:function(){var t=this,e=t.minSize={width:0,height:0},n=t.chart,i=t.options,a=i.ticks,r=i.scaleLabel,o=i.gridLines,s=t._isVisible(),l="bottom"===i.position,u=t.isHorizontal();if(u?e.width=t.maxWidth:s&&(e.width=cn(o)+fn(r)),u?s&&(e.height=cn(o)+fn(r)):e.height=t.maxHeight,a.display&&s){var d=pn(a),h=t._getLabelSizes(),c=h.first,f=h.last,g=h.widest,p=h.highest,m=.4*d.minor.lineHeight,v=a.padding;if(u){var b=0!==t.labelRotation,x=V.toRadians(t.labelRotation),y=Math.cos(x),_=Math.sin(x),k=_*g.width+y*(p.height-(b?p.offset:0))+(b?0:m);e.height=Math.min(t.maxHeight,e.height+k+v);var w,M,S=t.getPixelForTick(0)-t.left,C=t.right-t.getPixelForTick(t.getTicks().length-1);b?(w=l?y*c.width+_*c.offset:_*(c.height-c.offset),M=l?_*(f.height-f.offset):y*f.width+_*f.offset):(w=c.width/2,M=f.width/2),t.paddingLeft=Math.max((w-S)*t.width/(t.width-S),0)+3,t.paddingRight=Math.max((M-C)*t.width/(t.width-C),0)+3}else{var P=a.mirror?0:g.width+v+m;e.width=Math.min(t.maxWidth,e.width+P),t.paddingTop=c.height/2,t.paddingBottom=f.height/2}}t.handleMargins(),u?(t.width=t._length=n.width-t.margins.left-t.margins.right,t.height=e.height):(t.width=e.width,t.height=t._length=n.height-t.margins.top-t.margins.bottom)},handleMargins:function(){var t=this;t.margins&&(t.margins.left=Math.max(t.paddingLeft,t.margins.left),t.margins.top=Math.max(t.paddingTop,t.margins.top),t.margins.right=Math.max(t.paddingRight,t.margins.right),t.margins.bottom=Math.max(t.paddingBottom,t.margins.bottom))},afterFit:function(){V.callback(this.options.afterFit,[this])},isHorizontal:function(){var t=this.options.position;return"top"===t||"bottom"===t},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(t){if(sn(t))return NaN;if(("number"==typeof t||t instanceof Number)&&!isFinite(t))return NaN;if(t)if(this.isHorizontal()){if(void 0!==t.x)return this.getRightValue(t.x)}else if(void 0!==t.y)return this.getRightValue(t.y);return t},_convertTicksToLabels:function(t){var e,n,i,a=this;for(a.ticks=t.map((function(t){return t.value})),a.beforeTickToLabelConversion(),e=a.convertTicksToLabels(t)||a.ticks,a.afterTickToLabelConversion(),n=0,i=t.length;n<i;++n)t[n].label=e[n];return e},_getLabelSizes:function(){var t=this,e=t._labelSizes;return e||(t._labelSizes=e=hn(t.ctx,pn(t.options.ticks),t.getTicks(),t.longestTextCache),t.longestLabelWidth=e.widest.width),e},_parseValue:function(t){var e,n,i,a;return on(t)?(e=+this.getRightValue(t[0]),n=+this.getRightValue(t[1]),i=Math.min(e,n),a=Math.max(e,n)):(e=void 0,n=t=+this.getRightValue(t),i=t,a=t),{min:i,max:a,start:e,end:n}},_getScaleLabel:function(t){var e=this._parseValue(t);return void 0!==e.start?"["+e.start+", "+e.end+"]":+this.getRightValue(t)},getLabelForIndex:V.noop,getPixelForValue:V.noop,getValueForPixel:V.noop,getPixelForTick:function(t){var e=this.options.offset,n=this._ticks.length,i=1/Math.max(n-(e?0:1),1);return t<0||t>n-1?null:this.getPixelForDecimal(t*i+(e?i/2:0))},getPixelForDecimal:function(t){return this._reversePixels&&(t=1-t),this._startPixel+t*this._length},getDecimalForPixel:function(t){var e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var t=this.min,e=this.max;return this.beginAtZero?0:t<0&&e<0?e:t>0&&e>0?t:0},_autoSkip:function(t){var e,n,i,a,r=this.options.ticks,o=this._length,s=r.maxTicksLimit||o/this._tickSize()+1,l=r.major.enabled?function(t){var e,n,i=[];for(e=0,n=t.length;e<n;e++)t[e].major&&i.push(e);return i}(t):[],u=l.length,d=l[0],h=l[u-1];if(u>s)return function(t,e,n){var i,a,r=0,o=e[0];for(n=Math.ceil(n),i=0;i<t.length;i++)a=t[i],i===o?(a._index=i,o=e[++r*n]):delete a.label}(t,l,u/s),mn(t);if(i=function(t,e,n,i){var a,r,o,s,l=function(t){var e,n,i=t.length;if(i<2)return!1;for(n=t[0],e=1;e<i;++e)if(t[e]-t[e-1]!==n)return!1;return n}(t),u=(e.length-1)/i;if(!l)return Math.max(u,1);for(o=0,s=(a=V.math._factorize(l)).length-1;o<s;o++)if((r=a[o])>u)return r;return Math.max(u,1)}(l,t,0,s),u>0){for(e=0,n=u-1;e<n;e++)vn(t,i,l[e],l[e+1]);return a=u>1?(h-d)/(u-1):null,vn(t,i,V.isNullOrUndef(a)?0:d-a,d),vn(t,i,h,V.isNullOrUndef(a)?t.length:h+a),mn(t)}return vn(t,i),mn(t)},_tickSize:function(){var t=this.options.ticks,e=V.toRadians(this.labelRotation),n=Math.abs(Math.cos(e)),i=Math.abs(Math.sin(e)),a=this._getLabelSizes(),r=t.autoSkipPadding||0,o=a?a.widest.width+r:0,s=a?a.highest.height+r:0;return this.isHorizontal()?s*n>o*i?o/n:s/i:s*i<o*n?s/n:o/i},_isVisible:function(){var t,e,n,i=this.chart,a=this.options.display;if("auto"!==a)return!!a;for(t=0,e=i.data.datasets.length;t<e;++t)if(i.isDatasetVisible(t)&&((n=i.getDatasetMeta(t)).xAxisID===this.id||n.yAxisID===this.id))return!0;return!1},_computeGridLineItems:function(t){var e,n,i,a,r,o,s,l,u,d,h,c,f,g,p,m,v,b=this,x=b.chart,y=b.options,_=y.gridLines,k=y.position,w=_.offsetGridLines,M=b.isHorizontal(),S=b._ticksToDraw,C=S.length+(w?1:0),P=cn(_),A=[],D=_.drawBorder?un(_.lineWidth,0,0):0,T=D/2,I=V._alignPixel,F=function(t){return I(x,t,D)};for("top"===k?(e=F(b.bottom),s=b.bottom-P,u=e-T,h=F(t.top)+T,f=t.bottom):"bottom"===k?(e=F(b.top),h=t.top,f=F(t.bottom)-T,s=e+T,u=b.top+P):"left"===k?(e=F(b.right),o=b.right-P,l=e-T,d=F(t.left)+T,c=t.right):(e=F(b.left),d=t.left,c=F(t.right)-T,o=e+T,l=b.left+P),n=0;n<C;++n)i=S[n]||{},sn(i.label)&&n<S.length||(n===b.zeroLineIndex&&y.offset===w?(g=_.zeroLineWidth,p=_.zeroLineColor,m=_.zeroLineBorderDash||[],v=_.zeroLineBorderDashOffset||0):(g=un(_.lineWidth,n,1),p=un(_.color,n,"rgba(0,0,0,0.1)"),m=_.borderDash||[],v=_.borderDashOffset||0),void 0!==(a=dn(b,i._index||n,w))&&(r=I(x,a,g),M?o=l=d=c=r:s=u=h=f=r,A.push({tx1:o,ty1:s,tx2:l,ty2:u,x1:d,y1:h,x2:c,y2:f,width:g,color:p,borderDash:m,borderDashOffset:v})));return A.ticksLength=C,A.borderValue=e,A},_computeLabelItems:function(){var t,e,n,i,a,r,o,s,l,u,d,h,c=this,f=c.options,g=f.ticks,p=f.position,m=g.mirror,v=c.isHorizontal(),b=c._ticksToDraw,x=pn(g),y=g.padding,_=cn(f.gridLines),k=-V.toRadians(c.labelRotation),w=[];for("top"===p?(r=c.bottom-_-y,o=k?"left":"center"):"bottom"===p?(r=c.top+_+y,o=k?"right":"center"):"left"===p?(a=c.right-(m?0:_)-y,o=m?"left":"right"):(a=c.left+(m?0:_)+y,o=m?"right":"left"),t=0,e=b.length;t<e;++t)i=(n=b[t]).label,sn(i)||(s=c.getPixelForTick(n._index||t)+g.labelOffset,u=(l=n.major?x.major:x.minor).lineHeight,d=on(i)?i.length:1,v?(a=s,h="top"===p?((k?1:.5)-d)*u:(k?0:.5)*u):(r=s,h=(1-d)*u/2),w.push({x:a,y:r,rotation:k,label:i,font:l,textOffset:h,textAlign:o}));return w},_drawGrid:function(t){var e=this,n=e.options.gridLines;if(n.display){var i,a,r,o,s,l=e.ctx,u=e.chart,d=V._alignPixel,h=n.drawBorder?un(n.lineWidth,0,0):0,c=e._gridLineItems||(e._gridLineItems=e._computeGridLineItems(t));for(r=0,o=c.length;r<o;++r)i=(s=c[r]).width,a=s.color,i&&a&&(l.save(),l.lineWidth=i,l.strokeStyle=a,l.setLineDash&&(l.setLineDash(s.borderDash),l.lineDashOffset=s.borderDashOffset),l.beginPath(),n.drawTicks&&(l.moveTo(s.tx1,s.ty1),l.lineTo(s.tx2,s.ty2)),n.drawOnChartArea&&(l.moveTo(s.x1,s.y1),l.lineTo(s.x2,s.y2)),l.stroke(),l.restore());if(h){var f,g,p,m,v=h,b=un(n.lineWidth,c.ticksLength-1,1),x=c.borderValue;e.isHorizontal()?(f=d(u,e.left,v)-v/2,g=d(u,e.right,b)+b/2,p=m=x):(p=d(u,e.top,v)-v/2,m=d(u,e.bottom,b)+b/2,f=g=x),l.lineWidth=h,l.strokeStyle=un(n.color,0),l.beginPath(),l.moveTo(f,p),l.lineTo(g,m),l.stroke()}}},_drawLabels:function(){var t=this;if(t.options.ticks.display){var e,n,i,a,r,o,s,l,u=t.ctx,d=t._labelItems||(t._labelItems=t._computeLabelItems());for(e=0,i=d.length;e<i;++e){if(o=(r=d[e]).font,u.save(),u.translate(r.x,r.y),u.rotate(r.rotation),u.font=o.string,u.fillStyle=o.color,u.textBaseline="middle",u.textAlign=r.textAlign,s=r.label,l=r.textOffset,on(s))for(n=0,a=s.length;n<a;++n)u.fillText(""+s[n],0,l),l+=o.lineHeight;else u.fillText(s,0,l);u.restore()}}},_drawTitle:function(){var t=this,e=t.ctx,n=t.options,i=n.scaleLabel;if(i.display){var a,r,o=ln(i.fontColor,z.global.defaultFontColor),s=V.options._parseFont(i),l=V.options.toPadding(i.padding),u=s.lineHeight/2,d=n.position,h=0;if(t.isHorizontal())a=t.left+t.width/2,r="bottom"===d?t.bottom-u-l.bottom:t.top+u+l.top;else{var c="left"===d;a=c?t.left+u+l.top:t.right-u-l.top,r=t.top+t.height/2,h=c?-.5*Math.PI:.5*Math.PI}e.save(),e.translate(a,r),e.rotate(h),e.textAlign="center",e.textBaseline="middle",e.fillStyle=o,e.font=s.string,e.fillText(i.labelString,0,0),e.restore()}},draw:function(t){this._isVisible()&&(this._drawGrid(t),this._drawTitle(),this._drawLabels())},_layers:function(){var t=this,e=t.options,n=e.ticks&&e.ticks.z||0,i=e.gridLines&&e.gridLines.z||0;return t._isVisible()&&n!==i&&t.draw===t._draw?[{z:i,draw:function(){t._drawGrid.apply(t,arguments),t._drawTitle.apply(t,arguments)}},{z:n,draw:function(){t._drawLabels.apply(t,arguments)}}]:[{z:n,draw:function(){t.draw.apply(t,arguments)}}]},_getMatchingVisibleMetas:function(t){var e=this,n=e.isHorizontal();return e.chart._getSortedVisibleDatasetMetas().filter((function(i){return(!t||i.type===t)&&(n?i.xAxisID===e.id:i.yAxisID===e.id)}))}});bn.prototype._draw=bn.prototype.draw;var xn=bn,yn=V.isNullOrUndef,_n=xn.extend({determineDataLimits:function(){var t,e=this,n=e._getLabels(),i=e.options.ticks,a=i.min,r=i.max,o=0,s=n.length-1;void 0!==a&&(t=n.indexOf(a))>=0&&(o=t),void 0!==r&&(t=n.indexOf(r))>=0&&(s=t),e.minIndex=o,e.maxIndex=s,e.min=n[o],e.max=n[s]},buildTicks:function(){var t=this._getLabels(),e=this.minIndex,n=this.maxIndex;this.ticks=0===e&&n===t.length-1?t:t.slice(e,n+1)},getLabelForIndex:function(t,e){var n=this.chart;return n.getDatasetMeta(e).controller._getValueScaleId()===this.id?this.getRightValue(n.data.datasets[e].data[t]):this._getLabels()[t]},_configure:function(){var t=this,e=t.options.offset,n=t.ticks;xn.prototype._configure.call(t),t.isHorizontal()||(t._reversePixels=!t._reversePixels),n&&(t._startValue=t.minIndex-(e?.5:0),t._valueRange=Math.max(n.length-(e?0:1),1))},getPixelForValue:function(t,e,n){var i,a,r,o=this;return yn(e)||yn(n)||(t=o.chart.data.datasets[n].data[e]),yn(t)||(i=o.isHorizontal()?t.x:t.y),(void 0!==i||void 0!==t&&isNaN(e))&&(a=o._getLabels(),t=V.valueOrDefault(i,t),e=-1!==(r=a.indexOf(t))?r:e,isNaN(e)&&(e=t)),o.getPixelForDecimal((e-o._startValue)/o._valueRange)},getPixelForTick:function(t){var e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t],t+this.minIndex)},getValueForPixel:function(t){var e=Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange);return Math.min(Math.max(e,0),this.ticks.length-1)},getBasePixel:function(){return this.bottom}}),kn={position:"bottom"};_n._defaults=kn;var wn=V.noop,Mn=V.isNullOrUndef;var Sn=xn.extend({getRightValue:function(t){return"string"==typeof t?+t:xn.prototype.getRightValue.call(this,t)},handleTickRangeOptions:function(){var t=this,e=t.options.ticks;if(e.beginAtZero){var n=V.sign(t.min),i=V.sign(t.max);n<0&&i<0?t.max=0:n>0&&i>0&&(t.min=0)}var a=void 0!==e.min||void 0!==e.suggestedMin,r=void 0!==e.max||void 0!==e.suggestedMax;void 0!==e.min?t.min=e.min:void 0!==e.suggestedMin&&(null===t.min?t.min=e.suggestedMin:t.min=Math.min(t.min,e.suggestedMin)),void 0!==e.max?t.max=e.max:void 0!==e.suggestedMax&&(null===t.max?t.max=e.suggestedMax:t.max=Math.max(t.max,e.suggestedMax)),a!==r&&t.min>=t.max&&(a?t.max=t.min+1:t.min=t.max-1),t.min===t.max&&(t.max++,e.beginAtZero||t.min--)},getTickLimit:function(){var t,e=this.options.ticks,n=e.stepSize,i=e.maxTicksLimit;return n?t=Math.ceil(this.max/n)-Math.floor(this.min/n)+1:(t=this._computeTickLimit(),i=i||11),i&&(t=Math.min(i,t)),t},_computeTickLimit:function(){return Number.POSITIVE_INFINITY},handleDirectionalChanges:wn,buildTicks:function(){var t=this,e=t.options.ticks,n=t.getTickLimit(),i={maxTicks:n=Math.max(2,n),min:e.min,max:e.max,precision:e.precision,stepSize:V.valueOrDefault(e.fixedStepSize,e.stepSize)},a=t.ticks=function(t,e){var n,i,a,r,o=[],s=t.stepSize,l=s||1,u=t.maxTicks-1,d=t.min,h=t.max,c=t.precision,f=e.min,g=e.max,p=V.niceNum((g-f)/u/l)*l;if(p<1e-14&&Mn(d)&&Mn(h))return[f,g];(r=Math.ceil(g/p)-Math.floor(f/p))>u&&(p=V.niceNum(r*p/u/l)*l),s||Mn(c)?n=Math.pow(10,V._decimalPlaces(p)):(n=Math.pow(10,c),p=Math.ceil(p*n)/n),i=Math.floor(f/p)*p,a=Math.ceil(g/p)*p,s&&(!Mn(d)&&V.almostWhole(d/p,p/1e3)&&(i=d),!Mn(h)&&V.almostWhole(h/p,p/1e3)&&(a=h)),r=(a-i)/p,r=V.almostEquals(r,Math.round(r),p/1e3)?Math.round(r):Math.ceil(r),i=Math.round(i*n)/n,a=Math.round(a*n)/n,o.push(Mn(d)?i:d);for(var m=1;m<r;++m)o.push(Math.round((i+m*p)*n)/n);return o.push(Mn(h)?a:h),o}(i,t);t.handleDirectionalChanges(),t.max=V.max(a),t.min=V.min(a),e.reverse?(a.reverse(),t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max)},convertTicksToLabels:function(){var t=this;t.ticksAsNumbers=t.ticks.slice(),t.zeroLineIndex=t.ticks.indexOf(0),xn.prototype.convertTicksToLabels.call(t)},_configure:function(){var t,e=this,n=e.getTicks(),i=e.min,a=e.max;xn.prototype._configure.call(e),e.options.offset&&n.length&&(i-=t=(a-i)/Math.max(n.length-1,1)/2,a+=t),e._startValue=i,e._endValue=a,e._valueRange=a-i}}),Cn={position:"left",ticks:{callback:rn.formatters.linear}};function Pn(t,e,n,i){var a,r,o=t.options,s=function(t,e,n){var i=[n.type,void 0===e&&void 0===n.stack?n.index:"",n.stack].join(".");return void 0===t[i]&&(t[i]={pos:[],neg:[]}),t[i]}(e,o.stacked,n),l=s.pos,u=s.neg,d=i.length;for(a=0;a<d;++a)r=t._parseValue(i[a]),isNaN(r.min)||isNaN(r.max)||n.data[a].hidden||(l[a]=l[a]||0,u[a]=u[a]||0,o.relativePoints?l[a]=100:r.min<0||r.max<0?u[a]+=r.min:l[a]+=r.max)}function An(t,e,n){var i,a,r=n.length;for(i=0;i<r;++i)a=t._parseValue(n[i]),isNaN(a.min)||isNaN(a.max)||e.data[i].hidden||(t.min=Math.min(t.min,a.min),t.max=Math.max(t.max,a.max))}var Dn=Sn.extend({determineDataLimits:function(){var t,e,n,i,a=this,r=a.options,o=a.chart.data.datasets,s=a._getMatchingVisibleMetas(),l=r.stacked,u={},d=s.length;if(a.min=Number.POSITIVE_INFINITY,a.max=Number.NEGATIVE_INFINITY,void 0===l)for(t=0;!l&&t<d;++t)l=void 0!==(e=s[t]).stack;for(t=0;t<d;++t)n=o[(e=s[t]).index].data,l?Pn(a,u,e,n):An(a,e,n);V.each(u,(function(t){i=t.pos.concat(t.neg),a.min=Math.min(a.min,V.min(i)),a.max=Math.max(a.max,V.max(i))})),a.min=V.isFinite(a.min)&&!isNaN(a.min)?a.min:0,a.max=V.isFinite(a.max)&&!isNaN(a.max)?a.max:1,a.handleTickRangeOptions()},_computeTickLimit:function(){var t;return this.isHorizontal()?Math.ceil(this.width/40):(t=V.options._parseFont(this.options.ticks),Math.ceil(this.height/t.lineHeight))},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(t,e){return this._getScaleLabel(this.chart.data.datasets[e].data[t])},getPixelForValue:function(t){return this.getPixelForDecimal((+this.getRightValue(t)-this._startValue)/this._valueRange)},getValueForPixel:function(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange},getPixelForTick:function(t){var e=this.ticksAsNumbers;return t<0||t>e.length-1?null:this.getPixelForValue(e[t])}}),Tn=Cn;Dn._defaults=Tn;var In=V.valueOrDefault,Fn=V.math.log10;var Ln={position:"left",ticks:{callback:rn.formatters.logarithmic}};function On(t,e){return V.isFinite(t)&&t>=0?t:e}var Rn=xn.extend({determineDataLimits:function(){var t,e,n,i,a,r,o=this,s=o.options,l=o.chart,u=l.data.datasets,d=o.isHorizontal();function h(t){return d?t.xAxisID===o.id:t.yAxisID===o.id}o.min=Number.POSITIVE_INFINITY,o.max=Number.NEGATIVE_INFINITY,o.minNotZero=Number.POSITIVE_INFINITY;var c=s.stacked;if(void 0===c)for(t=0;t<u.length;t++)if(e=l.getDatasetMeta(t),l.isDatasetVisible(t)&&h(e)&&void 0!==e.stack){c=!0;break}if(s.stacked||c){var f={};for(t=0;t<u.length;t++){var g=[(e=l.getDatasetMeta(t)).type,void 0===s.stacked&&void 0===e.stack?t:"",e.stack].join(".");if(l.isDatasetVisible(t)&&h(e))for(void 0===f[g]&&(f[g]=[]),a=0,r=(i=u[t].data).length;a<r;a++){var p=f[g];n=o._parseValue(i[a]),isNaN(n.min)||isNaN(n.max)||e.data[a].hidden||n.min<0||n.max<0||(p[a]=p[a]||0,p[a]+=n.max)}}V.each(f,(function(t){if(t.length>0){var e=V.min(t),n=V.max(t);o.min=Math.min(o.min,e),o.max=Math.max(o.max,n)}}))}else for(t=0;t<u.length;t++)if(e=l.getDatasetMeta(t),l.isDatasetVisible(t)&&h(e))for(a=0,r=(i=u[t].data).length;a<r;a++)n=o._parseValue(i[a]),isNaN(n.min)||isNaN(n.max)||e.data[a].hidden||n.min<0||n.max<0||(o.min=Math.min(n.min,o.min),o.max=Math.max(n.max,o.max),0!==n.min&&(o.minNotZero=Math.min(n.min,o.minNotZero)));o.min=V.isFinite(o.min)?o.min:null,o.max=V.isFinite(o.max)?o.max:null,o.minNotZero=V.isFinite(o.minNotZero)?o.minNotZero:null,this.handleTickRangeOptions()},handleTickRangeOptions:function(){var t=this,e=t.options.ticks;t.min=On(e.min,t.min),t.max=On(e.max,t.max),t.min===t.max&&(0!==t.min&&null!==t.min?(t.min=Math.pow(10,Math.floor(Fn(t.min))-1),t.max=Math.pow(10,Math.floor(Fn(t.max))+1)):(t.min=1,t.max=10)),null===t.min&&(t.min=Math.pow(10,Math.floor(Fn(t.max))-1)),null===t.max&&(t.max=0!==t.min?Math.pow(10,Math.floor(Fn(t.min))+1):10),null===t.minNotZero&&(t.min>0?t.minNotZero=t.min:t.max<1?t.minNotZero=Math.pow(10,Math.floor(Fn(t.max))):t.minNotZero=1)},buildTicks:function(){var t=this,e=t.options.ticks,n=!t.isHorizontal(),i={min:On(e.min),max:On(e.max)},a=t.ticks=function(t,e){var n,i,a=[],r=In(t.min,Math.pow(10,Math.floor(Fn(e.min)))),o=Math.floor(Fn(e.max)),s=Math.ceil(e.max/Math.pow(10,o));0===r?(n=Math.floor(Fn(e.minNotZero)),i=Math.floor(e.minNotZero/Math.pow(10,n)),a.push(r),r=i*Math.pow(10,n)):(n=Math.floor(Fn(r)),i=Math.floor(r/Math.pow(10,n)));var l=n<0?Math.pow(10,Math.abs(n)):1;do{a.push(r),10===++i&&(i=1,l=++n>=0?1:l),r=Math.round(i*Math.pow(10,n)*l)/l}while(n<o||n===o&&i<s);var u=In(t.max,r);return a.push(u),a}(i,t);t.max=V.max(a),t.min=V.min(a),e.reverse?(n=!n,t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max),n&&a.reverse()},convertTicksToLabels:function(){this.tickValues=this.ticks.slice(),xn.prototype.convertTicksToLabels.call(this)},getLabelForIndex:function(t,e){return this._getScaleLabel(this.chart.data.datasets[e].data[t])},getPixelForTick:function(t){var e=this.tickValues;return t<0||t>e.length-1?null:this.getPixelForValue(e[t])},_getFirstTickValue:function(t){var e=Math.floor(Fn(t));return Math.floor(t/Math.pow(10,e))*Math.pow(10,e)},_configure:function(){var t=this,e=t.min,n=0;xn.prototype._configure.call(t),0===e&&(e=t._getFirstTickValue(t.minNotZero),n=In(t.options.ticks.fontSize,z.global.defaultFontSize)/t._length),t._startValue=Fn(e),t._valueOffset=n,t._valueRange=(Fn(t.max)-Fn(e))/(1-n)},getPixelForValue:function(t){var e=this,n=0;return(t=+e.getRightValue(t))>e.min&&t>0&&(n=(Fn(t)-e._startValue)/e._valueRange+e._valueOffset),e.getPixelForDecimal(n)},getValueForPixel:function(t){var e=this,n=e.getDecimalForPixel(t);return 0===n&&0===e.min?0:Math.pow(10,e._startValue+(n-e._valueOffset)*e._valueRange)}}),zn=Ln;Rn._defaults=zn;var Nn=V.valueOrDefault,Bn=V.valueAtIndexOrDefault,En=V.options.resolve,Wn={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,color:"rgba(0,0,0,0.1)",lineWidth:1,borderDash:[],borderDashOffset:0},gridLines:{circular:!1},ticks:{showLabelBackdrop:!0,backdropColor:"rgba(255,255,255,0.75)",backdropPaddingY:2,backdropPaddingX:2,callback:rn.formatters.linear},pointLabels:{display:!0,fontSize:10,callback:function(t){return t}}};function Vn(t){var e=t.ticks;return e.display&&t.display?Nn(e.fontSize,z.global.defaultFontSize)+2*e.backdropPaddingY:0}function Hn(t,e,n,i,a){return t===i||t===a?{start:e-n/2,end:e+n/2}:t<i||t>a?{start:e-n,end:e}:{start:e,end:e+n}}function jn(t){return 0===t||180===t?"center":t<180?"left":"right"}function qn(t,e,n,i){var a,r,o=n.y+i/2;if(V.isArray(e))for(a=0,r=e.length;a<r;++a)t.fillText(e[a],n.x,o),o+=i;else t.fillText(e,n.x,o)}function Un(t,e,n){90===t||270===t?n.y-=e.h/2:(t>270||t<90)&&(n.y-=e.h)}function Yn(t){return V.isNumber(t)?t:0}var Gn=Sn.extend({setDimensions:function(){var t=this;t.width=t.maxWidth,t.height=t.maxHeight,t.paddingTop=Vn(t.options)/2,t.xCenter=Math.floor(t.width/2),t.yCenter=Math.floor((t.height-t.paddingTop)/2),t.drawingArea=Math.min(t.height-t.paddingTop,t.width)/2},determineDataLimits:function(){var t=this,e=t.chart,n=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;V.each(e.data.datasets,(function(a,r){if(e.isDatasetVisible(r)){var o=e.getDatasetMeta(r);V.each(a.data,(function(e,a){var r=+t.getRightValue(e);isNaN(r)||o.data[a].hidden||(n=Math.min(r,n),i=Math.max(r,i))}))}})),t.min=n===Number.POSITIVE_INFINITY?0:n,t.max=i===Number.NEGATIVE_INFINITY?0:i,t.handleTickRangeOptions()},_computeTickLimit:function(){return Math.ceil(this.drawingArea/Vn(this.options))},convertTicksToLabels:function(){var t=this;Sn.prototype.convertTicksToLabels.call(t),t.pointLabels=t.chart.data.labels.map((function(){var e=V.callback(t.options.pointLabels.callback,arguments,t);return e||0===e?e:""}))},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},fit:function(){var t=this.options;t.display&&t.pointLabels.display?function(t){var e,n,i,a=V.options._parseFont(t.options.pointLabels),r={l:0,r:t.width,t:0,b:t.height-t.paddingTop},o={};t.ctx.font=a.string,t._pointLabelSizes=[];var s,l,u,d=t.chart.data.labels.length;for(e=0;e<d;e++){i=t.getPointPosition(e,t.drawingArea+5),s=t.ctx,l=a.lineHeight,u=t.pointLabels[e],n=V.isArray(u)?{w:V.longestText(s,s.font,u),h:u.length*l}:{w:s.measureText(u).width,h:l},t._pointLabelSizes[e]=n;var h=t.getIndexAngle(e),c=V.toDegrees(h)%360,f=Hn(c,i.x,n.w,0,180),g=Hn(c,i.y,n.h,90,270);f.start<r.l&&(r.l=f.start,o.l=h),f.end>r.r&&(r.r=f.end,o.r=h),g.start<r.t&&(r.t=g.start,o.t=h),g.end>r.b&&(r.b=g.end,o.b=h)}t.setReductions(t.drawingArea,r,o)}(this):this.setCenterPoint(0,0,0,0)},setReductions:function(t,e,n){var i=this,a=e.l/Math.sin(n.l),r=Math.max(e.r-i.width,0)/Math.sin(n.r),o=-e.t/Math.cos(n.t),s=-Math.max(e.b-(i.height-i.paddingTop),0)/Math.cos(n.b);a=Yn(a),r=Yn(r),o=Yn(o),s=Yn(s),i.drawingArea=Math.min(Math.floor(t-(a+r)/2),Math.floor(t-(o+s)/2)),i.setCenterPoint(a,r,o,s)},setCenterPoint:function(t,e,n,i){var a=this,r=a.width-e-a.drawingArea,o=t+a.drawingArea,s=n+a.drawingArea,l=a.height-a.paddingTop-i-a.drawingArea;a.xCenter=Math.floor((o+r)/2+a.left),a.yCenter=Math.floor((s+l)/2+a.top+a.paddingTop)},getIndexAngle:function(t){var e=this.chart,n=(t*(360/e.data.labels.length)+((e.options||{}).startAngle||0))%360;return(n<0?n+360:n)*Math.PI*2/360},getDistanceFromCenterForValue:function(t){var e=this;if(V.isNullOrUndef(t))return NaN;var n=e.drawingArea/(e.max-e.min);return e.options.ticks.reverse?(e.max-t)*n:(t-e.min)*n},getPointPosition:function(t,e){var n=this.getIndexAngle(t)-Math.PI/2;return{x:Math.cos(n)*e+this.xCenter,y:Math.sin(n)*e+this.yCenter}},getPointPositionForValue:function(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))},getBasePosition:function(t){var e=this.min,n=this.max;return this.getPointPositionForValue(t||0,this.beginAtZero?0:e<0&&n<0?n:e>0&&n>0?e:0)},_drawGrid:function(){var t,e,n,i=this,a=i.ctx,r=i.options,o=r.gridLines,s=r.angleLines,l=Nn(s.lineWidth,o.lineWidth),u=Nn(s.color,o.color);if(r.pointLabels.display&&function(t){var e=t.ctx,n=t.options,i=n.pointLabels,a=Vn(n),r=t.getDistanceFromCenterForValue(n.ticks.reverse?t.min:t.max),o=V.options._parseFont(i);e.save(),e.font=o.string,e.textBaseline="middle";for(var s=t.chart.data.labels.length-1;s>=0;s--){var l=0===s?a/2:0,u=t.getPointPosition(s,r+l+5),d=Bn(i.fontColor,s,z.global.defaultFontColor);e.fillStyle=d;var h=t.getIndexAngle(s),c=V.toDegrees(h);e.textAlign=jn(c),Un(c,t._pointLabelSizes[s],u),qn(e,t.pointLabels[s],u,o.lineHeight)}e.restore()}(i),o.display&&V.each(i.ticks,(function(t,n){0!==n&&(e=i.getDistanceFromCenterForValue(i.ticksAsNumbers[n]),function(t,e,n,i){var a,r=t.ctx,o=e.circular,s=t.chart.data.labels.length,l=Bn(e.color,i-1),u=Bn(e.lineWidth,i-1);if((o||s)&&l&&u){if(r.save(),r.strokeStyle=l,r.lineWidth=u,r.setLineDash&&(r.setLineDash(e.borderDash||[]),r.lineDashOffset=e.borderDashOffset||0),r.beginPath(),o)r.arc(t.xCenter,t.yCenter,n,0,2*Math.PI);else{a=t.getPointPosition(0,n),r.moveTo(a.x,a.y);for(var d=1;d<s;d++)a=t.getPointPosition(d,n),r.lineTo(a.x,a.y)}r.closePath(),r.stroke(),r.restore()}}(i,o,e,n))})),s.display&&l&&u){for(a.save(),a.lineWidth=l,a.strokeStyle=u,a.setLineDash&&(a.setLineDash(En([s.borderDash,o.borderDash,[]])),a.lineDashOffset=En([s.borderDashOffset,o.borderDashOffset,0])),t=i.chart.data.labels.length-1;t>=0;t--)e=i.getDistanceFromCenterForValue(r.ticks.reverse?i.min:i.max),n=i.getPointPosition(t,e),a.beginPath(),a.moveTo(i.xCenter,i.yCenter),a.lineTo(n.x,n.y),a.stroke();a.restore()}},_drawLabels:function(){var t=this,e=t.ctx,n=t.options.ticks;if(n.display){var i,a,r=t.getIndexAngle(0),o=V.options._parseFont(n),s=Nn(n.fontColor,z.global.defaultFontColor);e.save(),e.font=o.string,e.translate(t.xCenter,t.yCenter),e.rotate(r),e.textAlign="center",e.textBaseline="middle",V.each(t.ticks,(function(r,l){(0!==l||n.reverse)&&(i=t.getDistanceFromCenterForValue(t.ticksAsNumbers[l]),n.showLabelBackdrop&&(a=e.measureText(r).width,e.fillStyle=n.backdropColor,e.fillRect(-a/2-n.backdropPaddingX,-i-o.size/2-n.backdropPaddingY,a+2*n.backdropPaddingX,o.size+2*n.backdropPaddingY)),e.fillStyle=s,e.fillText(r,0,-i))})),e.restore()}},_drawTitle:V.noop}),Xn=Wn;Gn._defaults=Xn;var Kn=V._deprecated,Zn=V.options.resolve,$n=V.valueOrDefault,Jn=Number.MIN_SAFE_INTEGER||-9007199254740991,Qn=Number.MAX_SAFE_INTEGER||9007199254740991,ti={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},ei=Object.keys(ti);function ni(t,e){return t-e}function ii(t){return V.valueOrDefault(t.time.min,t.ticks.min)}function ai(t){return V.valueOrDefault(t.time.max,t.ticks.max)}function ri(t,e,n,i){var a=function(t,e,n){for(var i,a,r,o=0,s=t.length-1;o>=0&&o<=s;){if(a=t[(i=o+s>>1)-1]||null,r=t[i],!a)return{lo:null,hi:r};if(r[e]<n)o=i+1;else{if(!(a[e]>n))return{lo:a,hi:r};s=i-1}}return{lo:r,hi:null}}(t,e,n),r=a.lo?a.hi?a.lo:t[t.length-2]:t[0],o=a.lo?a.hi?a.hi:t[t.length-1]:t[1],s=o[e]-r[e],l=s?(n-r[e])/s:0,u=(o[i]-r[i])*l;return r[i]+u}function oi(t,e){var n=t._adapter,i=t.options.time,a=i.parser,r=a||i.format,o=e;return"function"==typeof a&&(o=a(o)),V.isFinite(o)||(o="string"==typeof r?n.parse(o,r):n.parse(o)),null!==o?+o:(a||"function"!=typeof r||(o=r(e),V.isFinite(o)||(o=n.parse(o))),o)}function si(t,e){if(V.isNullOrUndef(e))return null;var n=t.options.time,i=oi(t,t.getRightValue(e));return null===i?i:(n.round&&(i=+t._adapter.startOf(i,n.round)),i)}function li(t,e,n,i){var a,r,o,s=ei.length;for(a=ei.indexOf(t);a<s-1;++a)if(o=(r=ti[ei[a]]).steps?r.steps:Qn,r.common&&Math.ceil((n-e)/(o*r.size))<=i)return ei[a];return ei[s-1]}function ui(t,e,n){var i,a,r=[],o={},s=e.length;for(i=0;i<s;++i)o[a=e[i]]=i,r.push({value:a,major:!1});return 0!==s&&n?function(t,e,n,i){var a,r,o=t._adapter,s=+o.startOf(e[0].value,i),l=e[e.length-1].value;for(a=s;a<=l;a=+o.add(a,1,i))(r=n[a])>=0&&(e[r].major=!0);return e}(t,r,o,n):r}var di=xn.extend({initialize:function(){this.mergeTicksOptions(),xn.prototype.initialize.call(this)},update:function(){var t=this,e=t.options,n=e.time||(e.time={}),i=t._adapter=new an._date(e.adapters.date);return Kn("time scale",n.format,"time.format","time.parser"),Kn("time scale",n.min,"time.min","ticks.min"),Kn("time scale",n.max,"time.max","ticks.max"),V.mergeIf(n.displayFormats,i.formats()),xn.prototype.update.apply(t,arguments)},getRightValue:function(t){return t&&void 0!==t.t&&(t=t.t),xn.prototype.getRightValue.call(this,t)},determineDataLimits:function(){var t,e,n,i,a,r,o,s=this,l=s.chart,u=s._adapter,d=s.options,h=d.time.unit||"day",c=Qn,f=Jn,g=[],p=[],m=[],v=s._getLabels();for(t=0,n=v.length;t<n;++t)m.push(si(s,v[t]));for(t=0,n=(l.data.datasets||[]).length;t<n;++t)if(l.isDatasetVisible(t))if(a=l.data.datasets[t].data,V.isObject(a[0]))for(p[t]=[],e=0,i=a.length;e<i;++e)r=si(s,a[e]),g.push(r),p[t][e]=r;else p[t]=m.slice(0),o||(g=g.concat(m),o=!0);else p[t]=[];m.length&&(c=Math.min(c,m[0]),f=Math.max(f,m[m.length-1])),g.length&&(g=n>1?function(t){var e,n,i,a={},r=[];for(e=0,n=t.length;e<n;++e)a[i=t[e]]||(a[i]=!0,r.push(i));return r}(g).sort(ni):g.sort(ni),c=Math.min(c,g[0]),f=Math.max(f,g[g.length-1])),c=si(s,ii(d))||c,f=si(s,ai(d))||f,c=c===Qn?+u.startOf(Date.now(),h):c,f=f===Jn?+u.endOf(Date.now(),h)+1:f,s.min=Math.min(c,f),s.max=Math.max(c+1,f),s._table=[],s._timestamps={data:g,datasets:p,labels:m}},buildTicks:function(){var t,e,n,i=this,a=i.min,r=i.max,o=i.options,s=o.ticks,l=o.time,u=i._timestamps,d=[],h=i.getLabelCapacity(a),c=s.source,f=o.distribution;for(u="data"===c||"auto"===c&&"series"===f?u.data:"labels"===c?u.labels:function(t,e,n,i){var a,r=t._adapter,o=t.options,s=o.time,l=s.unit||li(s.minUnit,e,n,i),u=Zn([s.stepSize,s.unitStepSize,1]),d="week"===l&&s.isoWeekday,h=e,c=[];if(d&&(h=+r.startOf(h,"isoWeek",d)),h=+r.startOf(h,d?"day":l),r.diff(n,e,l)>1e5*u)throw e+" and "+n+" are too far apart with stepSize of "+u+" "+l;for(a=h;a<n;a=+r.add(a,u,l))c.push(a);return a!==n&&"ticks"!==o.bounds||c.push(a),c}(i,a,r,h),"ticks"===o.bounds&&u.length&&(a=u[0],r=u[u.length-1]),a=si(i,ii(o))||a,r=si(i,ai(o))||r,t=0,e=u.length;t<e;++t)(n=u[t])>=a&&n<=r&&d.push(n);return i.min=a,i.max=r,i._unit=l.unit||(s.autoSkip?li(l.minUnit,i.min,i.max,h):function(t,e,n,i,a){var r,o;for(r=ei.length-1;r>=ei.indexOf(n);r--)if(o=ei[r],ti[o].common&&t._adapter.diff(a,i,o)>=e-1)return o;return ei[n?ei.indexOf(n):0]}(i,d.length,l.minUnit,i.min,i.max)),i._majorUnit=s.major.enabled&&"year"!==i._unit?function(t){for(var e=ei.indexOf(t)+1,n=ei.length;e<n;++e)if(ti[ei[e]].common)return ei[e]}(i._unit):void 0,i._table=function(t,e,n,i){if("linear"===i||!t.length)return[{time:e,pos:0},{time:n,pos:1}];var a,r,o,s,l,u=[],d=[e];for(a=0,r=t.length;a<r;++a)(s=t[a])>e&&s<n&&d.push(s);for(d.push(n),a=0,r=d.length;a<r;++a)l=d[a+1],o=d[a-1],s=d[a],void 0!==o&&void 0!==l&&Math.round((l+o)/2)===s||u.push({time:s,pos:a/(r-1)});return u}(i._timestamps.data,a,r,f),i._offsets=function(t,e,n,i,a){var r,o,s=0,l=0;return a.offset&&e.length&&(r=ri(t,"time",e[0],"pos"),s=1===e.length?1-r:(ri(t,"time",e[1],"pos")-r)/2,o=ri(t,"time",e[e.length-1],"pos"),l=1===e.length?o:(o-ri(t,"time",e[e.length-2],"pos"))/2),{start:s,end:l,factor:1/(s+1+l)}}(i._table,d,0,0,o),s.reverse&&d.reverse(),ui(i,d,i._majorUnit)},getLabelForIndex:function(t,e){var n=this,i=n._adapter,a=n.chart.data,r=n.options.time,o=a.labels&&t<a.labels.length?a.labels[t]:"",s=a.datasets[e].data[t];return V.isObject(s)&&(o=n.getRightValue(s)),r.tooltipFormat?i.format(oi(n,o),r.tooltipFormat):"string"==typeof o?o:i.format(oi(n,o),r.displayFormats.datetime)},tickFormatFunction:function(t,e,n,i){var a=this._adapter,r=this.options,o=r.time.displayFormats,s=o[this._unit],l=this._majorUnit,u=o[l],d=n[e],h=r.ticks,c=l&&u&&d&&d.major,f=a.format(t,i||(c?u:s)),g=c?h.major:h.minor,p=Zn([g.callback,g.userCallback,h.callback,h.userCallback]);return p?p(f,e,n):f},convertTicksToLabels:function(t){var e,n,i=[];for(e=0,n=t.length;e<n;++e)i.push(this.tickFormatFunction(t[e].value,e,t));return i},getPixelForOffset:function(t){var e=this._offsets,n=ri(this._table,"time",t,"pos");return this.getPixelForDecimal((e.start+n)*e.factor)},getPixelForValue:function(t,e,n){var i=null;if(void 0!==e&&void 0!==n&&(i=this._timestamps.datasets[n][e]),null===i&&(i=si(this,t)),null!==i)return this.getPixelForOffset(i)},getPixelForTick:function(t){var e=this.getTicks();return t>=0&&t<e.length?this.getPixelForOffset(e[t].value):null},getValueForPixel:function(t){var e=this._offsets,n=this.getDecimalForPixel(t)/e.factor-e.end,i=ri(this._table,"pos",n,"time");return this._adapter._create(i)},_getLabelSize:function(t){var e=this.options.ticks,n=this.ctx.measureText(t).width,i=V.toRadians(this.isHorizontal()?e.maxRotation:e.minRotation),a=Math.cos(i),r=Math.sin(i),o=$n(e.fontSize,z.global.defaultFontSize);return{w:n*a+o*r,h:n*r+o*a}},getLabelWidth:function(t){return this._getLabelSize(t).w},getLabelCapacity:function(t){var e=this,n=e.options.time,i=n.displayFormats,a=i[n.unit]||i.millisecond,r=e.tickFormatFunction(t,0,ui(e,[t],e._majorUnit),a),o=e._getLabelSize(r),s=Math.floor(e.isHorizontal()?e.width/o.w:e.height/o.h);return e.options.offset&&s--,s>0?s:1}}),hi={position:"bottom",distribution:"linear",bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{autoSkip:!1,source:"auto",major:{enabled:!1}}};di._defaults=hi;var ci={category:_n,linear:Dn,logarithmic:Rn,radialLinear:Gn,time:di},fi={datetime:"MMM D, YYYY, h:mm:ss a",millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"};an._date.override("function"==typeof t?{_id:"moment",formats:function(){return fi},parse:function(e,n){return"string"==typeof e&&"string"==typeof n?e=t(e,n):e instanceof t||(e=t(e)),e.isValid()?e.valueOf():null},format:function(e,n){return t(e).format(n)},add:function(e,n,i){return t(e).add(n,i).valueOf()},diff:function(e,n,i){return t(e).diff(t(n),i)},startOf:function(e,n,i){return e=t(e),"isoWeek"===n?e.isoWeekday(i).valueOf():e.startOf(n).valueOf()},endOf:function(e,n){return t(e).endOf(n).valueOf()},_create:function(e){return t(e)}}:{}),z._set("global",{plugins:{filler:{propagate:!0}}});var gi={dataset:function(t){var e=t.fill,n=t.chart,i=n.getDatasetMeta(e),a=i&&n.isDatasetVisible(e)&&i.dataset._children||[],r=a.length||0;return r?function(t,e){return e<r&&a[e]._view||null}:null},boundary:function(t){var e=t.boundary,n=e?e.x:null,i=e?e.y:null;return V.isArray(e)?function(t,n){return e[n]}:function(t){return{x:null===n?t.x:n,y:null===i?t.y:i}}}};function pi(t,e,n){var i,a=t._model||{},r=a.fill;if(void 0===r&&(r=!!a.backgroundColor),!1===r||null===r)return!1;if(!0===r)return"origin";if(i=parseFloat(r,10),isFinite(i)&&Math.floor(i)===i)return"-"!==r[0]&&"+"!==r[0]||(i=e+i),!(i===e||i<0||i>=n)&&i;switch(r){case"bottom":return"start";case"top":return"end";case"zero":return"origin";case"origin":case"start":case"end":return r;default:return!1}}function mi(t){return(t.el._scale||{}).getPointPositionForValue?function(t){var e,n,i,a,r,o=t.el._scale,s=o.options,l=o.chart.data.labels.length,u=t.fill,d=[];if(!l)return null;for(e=s.ticks.reverse?o.max:o.min,n=s.ticks.reverse?o.min:o.max,i=o.getPointPositionForValue(0,e),a=0;a<l;++a)r="start"===u||"end"===u?o.getPointPositionForValue(a,"start"===u?e:n):o.getBasePosition(a),s.gridLines.circular&&(r.cx=i.x,r.cy=i.y,r.angle=o.getIndexAngle(a)-Math.PI/2),d.push(r);return d}(t):function(t){var e,n=t.el._model||{},i=t.el._scale||{},a=t.fill,r=null;if(isFinite(a))return null;if("start"===a?r=void 0===n.scaleBottom?i.bottom:n.scaleBottom:"end"===a?r=void 0===n.scaleTop?i.top:n.scaleTop:void 0!==n.scaleZero?r=n.scaleZero:i.getBasePixel&&(r=i.getBasePixel()),null!=r){if(void 0!==r.x&&void 0!==r.y)return r;if(V.isFinite(r))return{x:(e=i.isHorizontal())?r:null,y:e?null:r}}return null}(t)}function vi(t,e,n){var i,a=t[e].fill,r=[e];if(!n)return a;for(;!1!==a&&-1===r.indexOf(a);){if(!isFinite(a))return a;if(!(i=t[a]))return!1;if(i.visible)return a;r.push(a),a=i.fill}return!1}function bi(t){var e=t.fill,n="dataset";return!1===e?null:(isFinite(e)||(n="boundary"),gi[n](t))}function xi(t){return t&&!t.skip}function yi(t,e,n,i,a){var r,o,s,l;if(i&&a){for(t.moveTo(e[0].x,e[0].y),r=1;r<i;++r)V.canvas.lineTo(t,e[r-1],e[r]);if(void 0===n[0].angle)for(t.lineTo(n[a-1].x,n[a-1].y),r=a-1;r>0;--r)V.canvas.lineTo(t,n[r],n[r-1],!0);else for(o=n[0].cx,s=n[0].cy,l=Math.sqrt(Math.pow(n[0].x-o,2)+Math.pow(n[0].y-s,2)),r=a-1;r>0;--r)t.arc(o,s,l,n[r].angle,n[r-1].angle,!0)}}function _i(t,e,n,i,a,r){var o,s,l,u,d,h,c,f,g=e.length,p=i.spanGaps,m=[],v=[],b=0,x=0;for(t.beginPath(),o=0,s=g;o<s;++o)d=n(u=e[l=o%g]._view,l,i),h=xi(u),c=xi(d),r&&void 0===f&&h&&(s=g+(f=o+1)),h&&c?(b=m.push(u),x=v.push(d)):b&&x&&(p?(h&&m.push(u),c&&v.push(d)):(yi(t,m,v,b,x),b=x=0,m=[],v=[]));yi(t,m,v,b,x),t.closePath(),t.fillStyle=a,t.fill()}var ki={id:"filler",afterDatasetsUpdate:function(t,e){var n,i,a,r,o=(t.data.datasets||[]).length,s=e.propagate,l=[];for(i=0;i<o;++i)r=null,(a=(n=t.getDatasetMeta(i)).dataset)&&a._model&&a instanceof _t.Line&&(r={visible:t.isDatasetVisible(i),fill:pi(a,i,o),chart:t,el:a}),n.$filler=r,l.push(r);for(i=0;i<o;++i)(r=l[i])&&(r.fill=vi(l,i,s),r.boundary=mi(r),r.mapper=bi(r))},beforeDatasetsDraw:function(t){var e,n,i,a,r,o,s,l=t._getSortedVisibleDatasetMetas(),u=t.ctx;for(n=l.length-1;n>=0;--n)(e=l[n].$filler)&&e.visible&&(a=(i=e.el)._view,r=i._children||[],o=e.mapper,s=a.backgroundColor||z.global.defaultColor,o&&s&&r.length&&(V.canvas.clipArea(u,t.chartArea),_i(u,r,o,a,s,i._loop),V.canvas.unclipArea(u)))}},wi=V.rtl.getRtlAdapter,Mi=V.noop,Si=V.valueOrDefault;function Ci(t,e){return t.usePointStyle&&t.boxWidth>e?e:t.boxWidth}z._set("global",{legend:{display:!0,position:"top",align:"center",fullWidth:!0,reverse:!1,weight:1e3,onClick:function(t,e){var n=e.datasetIndex,i=this.chart,a=i.getDatasetMeta(n);a.hidden=null===a.hidden?!i.data.datasets[n].hidden:null,i.update()},onHover:null,onLeave:null,labels:{boxWidth:40,padding:10,generateLabels:function(t){var e=t.data.datasets,n=t.options.legend||{},i=n.labels&&n.labels.usePointStyle;return t._getSortedDatasetMetas().map((function(n){var a=n.controller.getStyle(i?0:void 0);return{text:e[n.index].label,fillStyle:a.backgroundColor,hidden:!t.isDatasetVisible(n.index),lineCap:a.borderCapStyle,lineDash:a.borderDash,lineDashOffset:a.borderDashOffset,lineJoin:a.borderJoinStyle,lineWidth:a.borderWidth,strokeStyle:a.borderColor,pointStyle:a.pointStyle,rotation:a.rotation,datasetIndex:n.index}}),this)}}},legendCallback:function(t){var e,n,i,a=document.createElement("ul"),r=t.data.datasets;for(a.setAttribute("class",t.id+"-legend"),e=0,n=r.length;e<n;e++)(i=a.appendChild(document.createElement("li"))).appendChild(document.createElement("span")).style.backgroundColor=r[e].backgroundColor,r[e].label&&i.appendChild(document.createTextNode(r[e].label));return a.outerHTML}});var Pi=X.extend({initialize:function(t){V.extend(this,t),this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1},beforeUpdate:Mi,update:function(t,e,n){var i=this;return i.beforeUpdate(),i.maxWidth=t,i.maxHeight=e,i.margins=n,i.beforeSetDimensions(),i.setDimensions(),i.afterSetDimensions(),i.beforeBuildLabels(),i.buildLabels(),i.afterBuildLabels(),i.beforeFit(),i.fit(),i.afterFit(),i.afterUpdate(),i.minSize},afterUpdate:Mi,beforeSetDimensions:Mi,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:Mi,beforeBuildLabels:Mi,buildLabels:function(){var t=this,e=t.options.labels||{},n=V.callback(e.generateLabels,[t.chart],t)||[];e.filter&&(n=n.filter((function(n){return e.filter(n,t.chart.data)}))),t.options.reverse&&n.reverse(),t.legendItems=n},afterBuildLabels:Mi,beforeFit:Mi,fit:function(){var t=this,e=t.options,n=e.labels,i=e.display,a=t.ctx,r=V.options._parseFont(n),o=r.size,s=t.legendHitBoxes=[],l=t.minSize,u=t.isHorizontal();if(u?(l.width=t.maxWidth,l.height=i?10:0):(l.width=i?10:0,l.height=t.maxHeight),i){if(a.font=r.string,u){var d=t.lineWidths=[0],h=0;a.textAlign="left",a.textBaseline="middle",V.each(t.legendItems,(function(t,e){var i=Ci(n,o)+o/2+a.measureText(t.text).width;(0===e||d[d.length-1]+i+2*n.padding>l.width)&&(h+=o+n.padding,d[d.length-(e>0?0:1)]=0),s[e]={left:0,top:0,width:i,height:o},d[d.length-1]+=i+n.padding})),l.height+=h}else{var c=n.padding,f=t.columnWidths=[],g=t.columnHeights=[],p=n.padding,m=0,v=0;V.each(t.legendItems,(function(t,e){var i=Ci(n,o)+o/2+a.measureText(t.text).width;e>0&&v+o+2*c>l.height&&(p+=m+n.padding,f.push(m),g.push(v),m=0,v=0),m=Math.max(m,i),v+=o+c,s[e]={left:0,top:0,width:i,height:o}})),p+=m,f.push(m),g.push(v),l.width+=p}t.width=l.width,t.height=l.height}else t.width=l.width=t.height=l.height=0},afterFit:Mi,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var t=this,e=t.options,n=e.labels,i=z.global,a=i.defaultColor,r=i.elements.line,o=t.height,s=t.columnHeights,l=t.width,u=t.lineWidths;if(e.display){var d,h=wi(e.rtl,t.left,t.minSize.width),c=t.ctx,f=Si(n.fontColor,i.defaultFontColor),g=V.options._parseFont(n),p=g.size;c.textAlign=h.textAlign("left"),c.textBaseline="middle",c.lineWidth=.5,c.strokeStyle=f,c.fillStyle=f,c.font=g.string;var m=Ci(n,p),v=t.legendHitBoxes,b=function(t,i){switch(e.align){case"start":return n.padding;case"end":return t-i;default:return(t-i+n.padding)/2}},x=t.isHorizontal();d=x?{x:t.left+b(l,u[0]),y:t.top+n.padding,line:0}:{x:t.left+n.padding,y:t.top+b(o,s[0]),line:0},V.rtl.overrideTextDirection(t.ctx,e.textDirection);var y=p+n.padding;V.each(t.legendItems,(function(e,i){var f=c.measureText(e.text).width,g=m+p/2+f,_=d.x,k=d.y;h.setWidth(t.minSize.width),x?i>0&&_+g+n.padding>t.left+t.minSize.width&&(k=d.y+=y,d.line++,_=d.x=t.left+b(l,u[d.line])):i>0&&k+y>t.top+t.minSize.height&&(_=d.x=_+t.columnWidths[d.line]+n.padding,d.line++,k=d.y=t.top+b(o,s[d.line]));var w=h.x(_);!function(t,e,i){if(!(isNaN(m)||m<=0)){c.save();var o=Si(i.lineWidth,r.borderWidth);if(c.fillStyle=Si(i.fillStyle,a),c.lineCap=Si(i.lineCap,r.borderCapStyle),c.lineDashOffset=Si(i.lineDashOffset,r.borderDashOffset),c.lineJoin=Si(i.lineJoin,r.borderJoinStyle),c.lineWidth=o,c.strokeStyle=Si(i.strokeStyle,a),c.setLineDash&&c.setLineDash(Si(i.lineDash,r.borderDash)),n&&n.usePointStyle){var s=m*Math.SQRT2/2,l=h.xPlus(t,m/2),u=e+p/2;V.canvas.drawPoint(c,i.pointStyle,s,l,u,i.rotation)}else c.fillRect(h.leftForLtr(t,m),e,m,p),0!==o&&c.strokeRect(h.leftForLtr(t,m),e,m,p);c.restore()}}(w,k,e),v[i].left=h.leftForLtr(w,v[i].width),v[i].top=k,function(t,e,n,i){var a=p/2,r=h.xPlus(t,m+a),o=e+a;c.fillText(n.text,r,o),n.hidden&&(c.beginPath(),c.lineWidth=2,c.moveTo(r,o),c.lineTo(h.xPlus(r,i),o),c.stroke())}(w,k,e,f),x?d.x+=g+n.padding:d.y+=y})),V.rtl.restoreTextDirection(t.ctx,e.textDirection)}},_getLegendItemAt:function(t,e){var n,i,a,r=this;if(t>=r.left&&t<=r.right&&e>=r.top&&e<=r.bottom)for(a=r.legendHitBoxes,n=0;n<a.length;++n)if(t>=(i=a[n]).left&&t<=i.left+i.width&&e>=i.top&&e<=i.top+i.height)return r.legendItems[n];return null},handleEvent:function(t){var e,n=this,i=n.options,a="mouseup"===t.type?"click":t.type;if("mousemove"===a){if(!i.onHover&&!i.onLeave)return}else{if("click"!==a)return;if(!i.onClick)return}e=n._getLegendItemAt(t.x,t.y),"click"===a?e&&i.onClick&&i.onClick.call(n,t.native,e):(i.onLeave&&e!==n._hoveredItem&&(n._hoveredItem&&i.onLeave.call(n,t.native,n._hoveredItem),n._hoveredItem=e),i.onHover&&e&&i.onHover.call(n,t.native,e))}});function Ai(t,e){var n=new Pi({ctx:t.ctx,options:e,chart:t});ge.configure(t,n,e),ge.addBox(t,n),t.legend=n}var Di={id:"legend",_element:Pi,beforeInit:function(t){var e=t.options.legend;e&&Ai(t,e)},beforeUpdate:function(t){var e=t.options.legend,n=t.legend;e?(V.mergeIf(e,z.global.legend),n?(ge.configure(t,n,e),n.options=e):Ai(t,e)):n&&(ge.removeBox(t,n),delete t.legend)},afterEvent:function(t,e){var n=t.legend;n&&n.handleEvent(e)}},Ti=V.noop;z._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,padding:10,position:"top",text:"",weight:2e3}});var Ii=X.extend({initialize:function(t){V.extend(this,t),this.legendHitBoxes=[]},beforeUpdate:Ti,update:function(t,e,n){var i=this;return i.beforeUpdate(),i.maxWidth=t,i.maxHeight=e,i.margins=n,i.beforeSetDimensions(),i.setDimensions(),i.afterSetDimensions(),i.beforeBuildLabels(),i.buildLabels(),i.afterBuildLabels(),i.beforeFit(),i.fit(),i.afterFit(),i.afterUpdate(),i.minSize},afterUpdate:Ti,beforeSetDimensions:Ti,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:Ti,beforeBuildLabels:Ti,buildLabels:Ti,afterBuildLabels:Ti,beforeFit:Ti,fit:function(){var t,e=this,n=e.options,i=e.minSize={},a=e.isHorizontal();n.display?(t=(V.isArray(n.text)?n.text.length:1)*V.options._parseFont(n).lineHeight+2*n.padding,e.width=i.width=a?e.maxWidth:t,e.height=i.height=a?t:e.maxHeight):e.width=i.width=e.height=i.height=0},afterFit:Ti,isHorizontal:function(){var t=this.options.position;return"top"===t||"bottom"===t},draw:function(){var t=this,e=t.ctx,n=t.options;if(n.display){var i,a,r,o=V.options._parseFont(n),s=o.lineHeight,l=s/2+n.padding,u=0,d=t.top,h=t.left,c=t.bottom,f=t.right;e.fillStyle=V.valueOrDefault(n.fontColor,z.global.defaultFontColor),e.font=o.string,t.isHorizontal()?(a=h+(f-h)/2,r=d+l,i=f-h):(a="left"===n.position?h+l:f-l,r=d+(c-d)/2,i=c-d,u=Math.PI*("left"===n.position?-.5:.5)),e.save(),e.translate(a,r),e.rotate(u),e.textAlign="center",e.textBaseline="middle";var g=n.text;if(V.isArray(g))for(var p=0,m=0;m<g.length;++m)e.fillText(g[m],0,p,i),p+=s;else e.fillText(g,0,0,i);e.restore()}}});function Fi(t,e){var n=new Ii({ctx:t.ctx,options:e,chart:t});ge.configure(t,n,e),ge.addBox(t,n),t.titleBlock=n}var Li={},Oi=ki,Ri=Di,zi={id:"title",_element:Ii,beforeInit:function(t){var e=t.options.title;e&&Fi(t,e)},beforeUpdate:function(t){var e=t.options.title,n=t.titleBlock;e?(V.mergeIf(e,z.global.title),n?(ge.configure(t,n,e),n.options=e):Fi(t,e)):n&&(ge.removeBox(t,n),delete t.titleBlock)}};for(var Ni in Li.filler=Oi,Li.legend=Ri,Li.title=zi,tn.helpers=V,function(){function t(t,e,n){var i;return"string"==typeof t?(i=parseInt(t,10),-1!==t.indexOf("%")&&(i=i/100*e.parentNode[n])):i=t,i}function e(t){return null!=t&&"none"!==t}function n(n,i,a){var r=document.defaultView,o=V._getParentNode(n),s=r.getComputedStyle(n)[i],l=r.getComputedStyle(o)[i],u=e(s),d=e(l),h=Number.POSITIVE_INFINITY;return u||d?Math.min(u?t(s,n,a):h,d?t(l,o,a):h):"none"}V.where=function(t,e){if(V.isArray(t)&&Array.prototype.filter)return t.filter(e);var n=[];return V.each(t,(function(t){e(t)&&n.push(t)})),n},V.findIndex=Array.prototype.findIndex?function(t,e,n){return t.findIndex(e,n)}:function(t,e,n){n=void 0===n?t:n;for(var i=0,a=t.length;i<a;++i)if(e.call(n,t[i],i,t))return i;return-1},V.findNextWhere=function(t,e,n){V.isNullOrUndef(n)&&(n=-1);for(var i=n+1;i<t.length;i++){var a=t[i];if(e(a))return a}},V.findPreviousWhere=function(t,e,n){V.isNullOrUndef(n)&&(n=t.length);for(var i=n-1;i>=0;i--){var a=t[i];if(e(a))return a}},V.isNumber=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},V.almostEquals=function(t,e,n){return Math.abs(t-e)<n},V.almostWhole=function(t,e){var n=Math.round(t);return n-e<=t&&n+e>=t},V.max=function(t){return t.reduce((function(t,e){return isNaN(e)?t:Math.max(t,e)}),Number.NEGATIVE_INFINITY)},V.min=function(t){return t.reduce((function(t,e){return isNaN(e)?t:Math.min(t,e)}),Number.POSITIVE_INFINITY)},V.sign=Math.sign?function(t){return Math.sign(t)}:function(t){return 0===(t=+t)||isNaN(t)?t:t>0?1:-1},V.toRadians=function(t){return t*(Math.PI/180)},V.toDegrees=function(t){return t*(180/Math.PI)},V._decimalPlaces=function(t){if(V.isFinite(t)){for(var e=1,n=0;Math.round(t*e)/e!==t;)e*=10,n++;return n}},V.getAngleFromPoint=function(t,e){var n=e.x-t.x,i=e.y-t.y,a=Math.sqrt(n*n+i*i),r=Math.atan2(i,n);return r<-.5*Math.PI&&(r+=2*Math.PI),{angle:r,distance:a}},V.distanceBetweenPoints=function(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))},V.aliasPixel=function(t){return t%2==0?0:.5},V._alignPixel=function(t,e,n){var i=t.currentDevicePixelRatio,a=n/2;return Math.round((e-a)*i)/i+a},V.splineCurve=function(t,e,n,i){var a=t.skip?e:t,r=e,o=n.skip?e:n,s=Math.sqrt(Math.pow(r.x-a.x,2)+Math.pow(r.y-a.y,2)),l=Math.sqrt(Math.pow(o.x-r.x,2)+Math.pow(o.y-r.y,2)),u=s/(s+l),d=l/(s+l),h=i*(u=isNaN(u)?0:u),c=i*(d=isNaN(d)?0:d);return{previous:{x:r.x-h*(o.x-a.x),y:r.y-h*(o.y-a.y)},next:{x:r.x+c*(o.x-a.x),y:r.y+c*(o.y-a.y)}}},V.EPSILON=Number.EPSILON||1e-14,V.splineCurveMonotone=function(t){var e,n,i,a,r,o,s,l,u,d=(t||[]).map((function(t){return{model:t._model,deltaK:0,mK:0}})),h=d.length;for(e=0;e<h;++e)if(!(i=d[e]).model.skip){if(n=e>0?d[e-1]:null,(a=e<h-1?d[e+1]:null)&&!a.model.skip){var c=a.model.x-i.model.x;i.deltaK=0!==c?(a.model.y-i.model.y)/c:0}!n||n.model.skip?i.mK=i.deltaK:!a||a.model.skip?i.mK=n.deltaK:this.sign(n.deltaK)!==this.sign(i.deltaK)?i.mK=0:i.mK=(n.deltaK+i.deltaK)/2}for(e=0;e<h-1;++e)i=d[e],a=d[e+1],i.model.skip||a.model.skip||(V.almostEquals(i.deltaK,0,this.EPSILON)?i.mK=a.mK=0:(r=i.mK/i.deltaK,o=a.mK/i.deltaK,(l=Math.pow(r,2)+Math.pow(o,2))<=9||(s=3/Math.sqrt(l),i.mK=r*s*i.deltaK,a.mK=o*s*i.deltaK)));for(e=0;e<h;++e)(i=d[e]).model.skip||(n=e>0?d[e-1]:null,a=e<h-1?d[e+1]:null,n&&!n.model.skip&&(u=(i.model.x-n.model.x)/3,i.model.controlPointPreviousX=i.model.x-u,i.model.controlPointPreviousY=i.model.y-u*i.mK),a&&!a.model.skip&&(u=(a.model.x-i.model.x)/3,i.model.controlPointNextX=i.model.x+u,i.model.controlPointNextY=i.model.y+u*i.mK))},V.nextItem=function(t,e,n){return n?e>=t.length-1?t[0]:t[e+1]:e>=t.length-1?t[t.length-1]:t[e+1]},V.previousItem=function(t,e,n){return n?e<=0?t[t.length-1]:t[e-1]:e<=0?t[0]:t[e-1]},V.niceNum=function(t,e){var n=Math.floor(V.log10(t)),i=t/Math.pow(10,n);return(e?i<1.5?1:i<3?2:i<7?5:10:i<=1?1:i<=2?2:i<=5?5:10)*Math.pow(10,n)},V.requestAnimFrame="undefined"==typeof window?function(t){t()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return window.setTimeout(t,1e3/60)},V.getRelativePosition=function(t,e){var n,i,a=t.originalEvent||t,r=t.target||t.srcElement,o=r.getBoundingClientRect(),s=a.touches;s&&s.length>0?(n=s[0].clientX,i=s[0].clientY):(n=a.clientX,i=a.clientY);var l=parseFloat(V.getStyle(r,"padding-left")),u=parseFloat(V.getStyle(r,"padding-top")),d=parseFloat(V.getStyle(r,"padding-right")),h=parseFloat(V.getStyle(r,"padding-bottom")),c=o.right-o.left-l-d,f=o.bottom-o.top-u-h;return{x:n=Math.round((n-o.left-l)/c*r.width/e.currentDevicePixelRatio),y:i=Math.round((i-o.top-u)/f*r.height/e.currentDevicePixelRatio)}},V.getConstraintWidth=function(t){return n(t,"max-width","clientWidth")},V.getConstraintHeight=function(t){return n(t,"max-height","clientHeight")},V._calculatePadding=function(t,e,n){return(e=V.getStyle(t,e)).indexOf("%")>-1?n*parseInt(e,10)/100:parseInt(e,10)},V._getParentNode=function(t){var e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e},V.getMaximumWidth=function(t){var e=V._getParentNode(t);if(!e)return t.clientWidth;var n=e.clientWidth,i=n-V._calculatePadding(e,"padding-left",n)-V._calculatePadding(e,"padding-right",n),a=V.getConstraintWidth(t);return isNaN(a)?i:Math.min(i,a)},V.getMaximumHeight=function(t){var e=V._getParentNode(t);if(!e)return t.clientHeight;var n=e.clientHeight,i=n-V._calculatePadding(e,"padding-top",n)-V._calculatePadding(e,"padding-bottom",n),a=V.getConstraintHeight(t);return isNaN(a)?i:Math.min(i,a)},V.getStyle=function(t,e){return t.currentStyle?t.currentStyle[e]:document.defaultView.getComputedStyle(t,null).getPropertyValue(e)},V.retinaScale=function(t,e){var n=t.currentDevicePixelRatio=e||"undefined"!=typeof window&&window.devicePixelRatio||1;if(1!==n){var i=t.canvas,a=t.height,r=t.width;i.height=a*n,i.width=r*n,t.ctx.scale(n,n),i.style.height||i.style.width||(i.style.height=a+"px",i.style.width=r+"px")}},V.fontString=function(t,e,n){return e+" "+t+"px "+n},V.longestText=function(t,e,n,i){var a=(i=i||{}).data=i.data||{},r=i.garbageCollect=i.garbageCollect||[];i.font!==e&&(a=i.data={},r=i.garbageCollect=[],i.font=e),t.font=e;var o,s,l,u,d,h=0,c=n.length;for(o=0;o<c;o++)if(null!=(u=n[o])&&!0!==V.isArray(u))h=V.measureText(t,a,r,h,u);else if(V.isArray(u))for(s=0,l=u.length;s<l;s++)null==(d=u[s])||V.isArray(d)||(h=V.measureText(t,a,r,h,d));var f=r.length/2;if(f>n.length){for(o=0;o<f;o++)delete a[r[o]];r.splice(0,f)}return h},V.measureText=function(t,e,n,i,a){var r=e[a];return r||(r=e[a]=t.measureText(a).width,n.push(a)),r>i&&(i=r),i},V.numberOfLabelLines=function(t){var e=1;return V.each(t,(function(t){V.isArray(t)&&t.length>e&&(e=t.length)})),e},V.color=k?function(t){return t instanceof CanvasGradient&&(t=z.global.defaultColor),k(t)}:function(t){return console.error("Color.js not found!"),t},V.getHoverColor=function(t){return t instanceof CanvasPattern||t instanceof CanvasGradient?t:V.color(t).saturate(.5).darken(.1).rgbString()}}(),tn._adapters=an,tn.Animation=Z,tn.animationService=$,tn.controllers=$t,tn.DatasetController=nt,tn.defaults=z,tn.Element=X,tn.elements=_t,tn.Interaction=ae,tn.layouts=ge,tn.platform=Fe,tn.plugins=Le,tn.Scale=xn,tn.scaleService=Oe,tn.Ticks=rn,tn.Tooltip=Ue,tn.helpers.each(ci,(function(t,e){tn.scaleService.registerScaleType(e,t,t._defaults)})),Li)Li.hasOwnProperty(Ni)&&tn.plugins.register(Li[Ni]);tn.platform.initialize();var Bi=tn;return"undefined"!=typeof window&&(window.Chart=tn),tn.Chart=tn,tn.Legend=Li.legend._element,tn.Title=Li.title._element,tn.pluginService=tn.plugins,tn.PluginBase=tn.Element.extend({}),tn.canvasHelpers=tn.helpers.canvas,tn.layoutService=tn.layouts,tn.LinearScaleBase=Sn,tn.helpers.each(["Bar","Bubble","Doughnut","Line","PolarArea","Radar","Scatter"],(function(t){tn[t]=function(e,n){return new tn(e,tn.helpers.merge(n||{},{type:t.charAt(0).toLowerCase()+t.slice(1)}))}})),Bi}));
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
@@ -1,401 +0,0 @@
|
|
1 |
-
/**
|
2 |
-
* Main admin file for functions to be used across many QSM admin pages.
|
3 |
-
*/
|
4 |
-
var QSMAdmin;
|
5 |
-
(function ($) {
|
6 |
-
|
7 |
-
QSMAdmin = {
|
8 |
-
/**
|
9 |
-
* Catches an error from a jQuery function (i.e. $.ajax())
|
10 |
-
*/
|
11 |
-
displayjQueryError: function (jqXHR, textStatus, errorThrown) {
|
12 |
-
QSMAdmin.displayAlert('Error: ' + errorThrown + '! Please try again.', 'error');
|
13 |
-
},
|
14 |
-
/**
|
15 |
-
* Catches an error from a BackBone function (i.e. model.save())
|
16 |
-
*/
|
17 |
-
displayError: function (jqXHR, textStatus, errorThrown) {
|
18 |
-
QSMAdmin.displayAlert('Error: ' + errorThrown.errorThrown + '! Please try again.', 'error');
|
19 |
-
},
|
20 |
-
/**
|
21 |
-
* Displays an alert within the "Quiz Settings" page
|
22 |
-
*
|
23 |
-
* @param string message The message of the alert
|
24 |
-
* @param string type The type of alert. Choose from 'error', 'info', 'success', and 'warning'
|
25 |
-
*/
|
26 |
-
displayAlert: function (message, type) {
|
27 |
-
QSMAdmin.clearAlerts();
|
28 |
-
var template = wp.template('notice');
|
29 |
-
var data = {
|
30 |
-
message: message,
|
31 |
-
type: type
|
32 |
-
};
|
33 |
-
$('.qsm-alerts').append(template(data));
|
34 |
-
},
|
35 |
-
clearAlerts: function () {
|
36 |
-
$('.qsm-alerts').empty();
|
37 |
-
},
|
38 |
-
selectTab: function (tab) {
|
39 |
-
$('.qsm-tab').removeClass('nav-tab-active');
|
40 |
-
$('.qsm-tab-content').hide();
|
41 |
-
tab.addClass('nav-tab-active');
|
42 |
-
tabID = tab.data('tab');
|
43 |
-
$('.tab-' + tabID).show();
|
44 |
-
}
|
45 |
-
};
|
46 |
-
$(function () {
|
47 |
-
$('.qsm-tab').on('click', function (event) {
|
48 |
-
event.preventDefault();
|
49 |
-
QSMAdmin.selectTab($(this));
|
50 |
-
});
|
51 |
-
|
52 |
-
$('#qmn_check_all').change(function () {
|
53 |
-
$('.qmn_delete_checkbox').prop('checked', jQuery('#qmn_check_all').prop('checked'));
|
54 |
-
});
|
55 |
-
|
56 |
-
$('.edit-quiz-name').click(function (e) {
|
57 |
-
e.preventDefault();
|
58 |
-
MicroModal.show('modal-3');
|
59 |
-
});
|
60 |
-
$('#edit-name-button').on('click', function (event) {
|
61 |
-
event.preventDefault();
|
62 |
-
$('#edit-name-form').submit();
|
63 |
-
});
|
64 |
-
$('#sendySignupForm').submit(function (e) {
|
65 |
-
|
66 |
-
e.preventDefault();
|
67 |
-
var $form = $(this),
|
68 |
-
name = $form.find('input[name="name"]').val(),
|
69 |
-
email = $form.find('input[name="email"]').val(),
|
70 |
-
action = 'qsm_send_data_sendy';
|
71 |
-
$form.find('#submit').attr('disabled', true);
|
72 |
-
$.post(ajaxurl, { name: name, email: email, nonce: qsmAdminObject.saveNonce, action: action },
|
73 |
-
function (data) {
|
74 |
-
if (data) {
|
75 |
-
$("#status").text('');
|
76 |
-
if (data == "Some fields are missing.") {
|
77 |
-
$("#status").text("Please fill in your name and email.");
|
78 |
-
$("#status").css("color", "red");
|
79 |
-
} else if (data == "Invalid email address.") {
|
80 |
-
$("#status").text("Your email address is invalid.");
|
81 |
-
$("#status").css("color", "red");
|
82 |
-
} else if (data == "Invalid list ID.") {
|
83 |
-
$("#status").text("Your list ID is invalid.");
|
84 |
-
$("#status").css("color", "red");
|
85 |
-
} else if (data == "Already subscribed.") {
|
86 |
-
$("#status").text("You're already subscribed!");
|
87 |
-
$("#status").css("color", "red");
|
88 |
-
} else {
|
89 |
-
$("#status").text("Thanks, you are now subscribed to our mailing list!");
|
90 |
-
$("#status").css("color", "green");
|
91 |
-
}
|
92 |
-
$form.find('#submit').attr('disabled', false);
|
93 |
-
} else {
|
94 |
-
alert("Sorry, unable to subscribe. Please try again later!");
|
95 |
-
}
|
96 |
-
}
|
97 |
-
);
|
98 |
-
});
|
99 |
-
jQuery('.category_selection_random').change(function () {
|
100 |
-
var checked_data = jQuery(this).val().toString();
|
101 |
-
jQuery('.catergory_comma_values').val(checked_data);
|
102 |
-
});
|
103 |
-
jQuery('.row-actions-c > .rtq-delete-result').click(function (e) {
|
104 |
-
e.preventDefault();
|
105 |
-
var $this = jQuery(this);
|
106 |
-
if (confirm('are you sure?')) {
|
107 |
-
var action = 'qsm_dashboard_delete_result';
|
108 |
-
var result_id = jQuery(this).data('result_id');
|
109 |
-
$.post(ajaxurl, { result_id: result_id, action: action },
|
110 |
-
function (data) {
|
111 |
-
if (data == 'failed') {
|
112 |
-
alert('Error to delete the result!');
|
113 |
-
} else {
|
114 |
-
$this.parents('li').slideUp();
|
115 |
-
$this.parents('li').remove();
|
116 |
-
}
|
117 |
-
}
|
118 |
-
);
|
119 |
-
}
|
120 |
-
});
|
121 |
-
jQuery('.load-quiz-wizard').click(function (e) {
|
122 |
-
e.preventDefault();
|
123 |
-
MicroModal.show('model-wizard');
|
124 |
-
var height = jQuery(".qsm-wizard-template-section").css("height");
|
125 |
-
jQuery(".qsm-wizard-setting-section").css("height", height);
|
126 |
-
if (jQuery("#accordion").length > 0) {
|
127 |
-
var icons = {
|
128 |
-
header: "iconClosed", // custom icon class
|
129 |
-
activeHeader: "iconOpen" // custom icon class
|
130 |
-
};
|
131 |
-
jQuery("#accordion").accordion({
|
132 |
-
collapsible: true,
|
133 |
-
icons: icons,
|
134 |
-
heightStyle: "content"
|
135 |
-
});
|
136 |
-
jQuery('#accordion h3.ui-accordion-header').next().slideDown();
|
137 |
-
jQuery('.template-list .template-list-inner:first-child').trigger('click');
|
138 |
-
}
|
139 |
-
});
|
140 |
-
//Get quiz options
|
141 |
-
jQuery('.template-list-inner').click(function () {
|
142 |
-
var action = 'qsm_wizard_template_quiz_options';
|
143 |
-
var settings = jQuery(this).data('settings');
|
144 |
-
var addons = jQuery(this).data('addons');
|
145 |
-
jQuery('.template-list .template-list-inner').removeClass('selected-quiz-template');
|
146 |
-
jQuery(this).addClass('selected-quiz-template');
|
147 |
-
jQuery('#quiz_settings_wrapper').html('').html('<div class="qsm-spinner-loader"></div>');
|
148 |
-
jQuery('#recomm_addons_wrapper').html('').html('<div class="qsm-spinner-loader"></div>');
|
149 |
-
$.post(ajaxurl, { settings: settings, addons: addons, action: action },
|
150 |
-
function (data) {
|
151 |
-
var diff_html = data.split('=====');
|
152 |
-
jQuery('#quiz_settings_wrapper').html('');
|
153 |
-
jQuery('#quiz_settings_wrapper').html(diff_html[0]);
|
154 |
-
jQuery('#recomm_addons_wrapper').html('');
|
155 |
-
jQuery('#recomm_addons_wrapper').html(diff_html[1]);
|
156 |
-
jQuery("#accordion").accordion();
|
157 |
-
jQuery('#accordion h3.ui-accordion-header').next().slideDown();
|
158 |
-
$('#quiz_settings_wrapper select').each(function () {
|
159 |
-
var name = $(this).attr('name');
|
160 |
-
var value = $(this).val();
|
161 |
-
if ($('.' + name + '_' + value).length > 0) {
|
162 |
-
$('.' + name + '_' + value).show();
|
163 |
-
}
|
164 |
-
});
|
165 |
-
}
|
166 |
-
);
|
167 |
-
});
|
168 |
-
|
169 |
-
jQuery('#create-quiz-button').on('click', function (event) {
|
170 |
-
event.preventDefault();
|
171 |
-
if (jQuery('#new-quiz-form').find('.quiz_name').val() === '') {
|
172 |
-
jQuery('#new-quiz-form').find('.quiz_name').addClass('qsm-required');
|
173 |
-
jQuery('#new-quiz-form').find('.quiz_name').focus();
|
174 |
-
return;
|
175 |
-
}
|
176 |
-
jQuery('#new-quiz-form').submit();
|
177 |
-
});
|
178 |
-
|
179 |
-
//Hide/Show legacy option
|
180 |
-
jQuery('#legacy_options').parents('tr').nextAll('tr').hide();
|
181 |
-
jQuery(document).on('click', '#legacy_options', function (e) {
|
182 |
-
e.preventDefault();
|
183 |
-
if (jQuery('#legacy_options').parents('tr').next('tr').is(':visible')) {
|
184 |
-
jQuery(this).text('').text('Show Legacy options');
|
185 |
-
jQuery('#legacy_options').parents('tr').nextAll('tr').hide();
|
186 |
-
} else {
|
187 |
-
jQuery(this).text('').text('Hide Legacy options');
|
188 |
-
jQuery('#legacy_options').parents('tr').nextAll('tr').show();
|
189 |
-
}
|
190 |
-
});
|
191 |
-
|
192 |
-
//Dismiss the welcome panel
|
193 |
-
jQuery('.qsm-welcome-panel-dismiss').click(function (e) {
|
194 |
-
e.preventDefault();
|
195 |
-
jQuery('#welcome_panel').addClass('hidden');
|
196 |
-
jQuery('#screen-options-wrap').find('#welcome_panel-hide').prop('checked', false);
|
197 |
-
postboxes.save_state('toplevel_page_qsm_dashboard');
|
198 |
-
});
|
199 |
-
//Get the message in text tab
|
200 |
-
jQuery(document).on('change', '#qsm_question_text_message_id', function () {
|
201 |
-
var text_id = jQuery(this).val();
|
202 |
-
jQuery('.qsm-text-main-wrap .qsm-text-tab-message-loader').show();
|
203 |
-
jQuery.post(ajaxurl, { text_id: text_id, 'quiz_id': qsmTextTabObject.quiz_id, action: 'qsm_get_question_text_message' }, function (response) {
|
204 |
-
var data = jQuery.parseJSON(response);
|
205 |
-
if (data.success === true) {
|
206 |
-
var text_msg = data.text_message;
|
207 |
-
if ($('#wp-qsm_question_text_message-wrap').hasClass('html-active')) {
|
208 |
-
jQuery("#qsm_question_text_message").val(text_msg);
|
209 |
-
} else {
|
210 |
-
text_msg = text_msg.replace(/\n/g, "<br>");
|
211 |
-
tinyMCE.get('qsm_question_text_message').setContent(text_msg);
|
212 |
-
}
|
213 |
-
//tinyMCE.get( 'qsm_question_text_message' ).setContent( text_msg );
|
214 |
-
jQuery('.qsm-text-allowed-variables > .qsm-text-variable-wrap').html('').html(data.allowed_variable_text);
|
215 |
-
jQuery('.qsm-text-main-wrap .qsm-text-tab-message-loader').hide();
|
216 |
-
} else {
|
217 |
-
console.log(data.message);
|
218 |
-
}
|
219 |
-
});
|
220 |
-
});
|
221 |
-
//Save the message in text tab
|
222 |
-
jQuery(document).on('click', '#qsm_save_text_message', function () {
|
223 |
-
var $this = jQuery(this);
|
224 |
-
$this.siblings('.spinner').addClass('is-active');
|
225 |
-
var text_id = jQuery('#qsm_question_text_message_id').val();
|
226 |
-
var message = wp.editor.getContent('qsm_question_text_message');
|
227 |
-
jQuery.post(ajaxurl, { text_id: text_id, 'message': message, 'quiz_id': qsmTextTabObject.quiz_id, action: 'qsm_update_text_message' }, function (response) {
|
228 |
-
var data = jQuery.parseJSON(response);
|
229 |
-
if (data.success === true) {
|
230 |
-
//Do nothing
|
231 |
-
} else {
|
232 |
-
console.log(data.message);
|
233 |
-
}
|
234 |
-
$this.siblings('.spinner').removeClass('is-active');
|
235 |
-
});
|
236 |
-
});
|
237 |
-
//On click append on tiny mce
|
238 |
-
jQuery(document).on('click', '.qsm-text-allowed-variables button.button', function () {
|
239 |
-
var content = jQuery(this).text();
|
240 |
-
if (jQuery('.qsm-question-text-tab .html-active').length > 0) {
|
241 |
-
var $txt = jQuery("#qsm_question_text_message");
|
242 |
-
var caretPos = $txt[0].selectionStart;
|
243 |
-
var textAreaTxt = $txt.val();
|
244 |
-
var txtToAdd = content;
|
245 |
-
$txt.val(textAreaTxt.substring(0, caretPos) + txtToAdd + textAreaTxt.substring(caretPos));
|
246 |
-
} else {
|
247 |
-
tinyMCE.activeEditor.execCommand('mceInsertContent', false, content);
|
248 |
-
}
|
249 |
-
});
|
250 |
-
//Show all the variable list
|
251 |
-
jQuery('.qsm-show-all-variable-text').click(function (e) {
|
252 |
-
e.preventDefault();
|
253 |
-
MicroModal.show('show-all-variable');
|
254 |
-
});
|
255 |
-
//Hide/show tr based on selection
|
256 |
-
$('.qsm_tab_content select').each(function () {
|
257 |
-
var name = $(this).attr('name');
|
258 |
-
var value = $(this).val();
|
259 |
-
if ($('.' + name + '_' + value).length > 0) {
|
260 |
-
$('.' + name + '_' + value).show();
|
261 |
-
}
|
262 |
-
});
|
263 |
-
$(document).on('change', '.qsm_tab_content select, #quiz_settings_wrapper select', function () {
|
264 |
-
var name = $(this).attr('name');
|
265 |
-
var value = $(this).val();
|
266 |
-
$('.qsm_hidden_tr').hide();
|
267 |
-
if ($('.' + name + '_' + value).length > 0) {
|
268 |
-
$('.' + name + '_' + value).show();
|
269 |
-
}
|
270 |
-
});
|
271 |
-
$(document).on('click', '.qsm_tab_content input[name="system"]', function () {
|
272 |
-
var name = $(this).attr('name');
|
273 |
-
var value = $(this).val();
|
274 |
-
$('.qsm_hidden_tr_gradingsystem').hide();
|
275 |
-
if (value == 0 || value == 3) {
|
276 |
-
$('.qsm_hidden_tr_gradingsystem').show();
|
277 |
-
}
|
278 |
-
});
|
279 |
-
$(document).ready(function () {
|
280 |
-
var system_option = $("input[type=radio][name='system']:checked").val();
|
281 |
-
$('.qsm_hidden_tr_gradingsystem').hide();
|
282 |
-
if (system_option == 0 || system_option == 3) {
|
283 |
-
$('.qsm_hidden_tr_gradingsystem').show();
|
284 |
-
}
|
285 |
-
});
|
286 |
-
if ($('.qsm-text-label-wrapper').length > 0) {
|
287 |
-
var element_position = $('.qsm-text-label-wrapper').offset().top;
|
288 |
-
$(window).scroll(function () {
|
289 |
-
var y_scroll_pos = window.pageYOffset;
|
290 |
-
var scroll_pos_test = element_position;
|
291 |
-
if (y_scroll_pos > scroll_pos_test) {
|
292 |
-
$('.qsm_text_customize_label').fadeOut('slow');
|
293 |
-
} else {
|
294 |
-
$('.qsm_text_customize_label').fadeIn('slow');
|
295 |
-
}
|
296 |
-
});
|
297 |
-
}
|
298 |
-
$(document).on('click', '.qsm_text_customize_label', function () {
|
299 |
-
$('html, body').animate({
|
300 |
-
scrollTop: $(".qsm-text-label-wrapper").offset().top - 30
|
301 |
-
}, 2000);
|
302 |
-
});
|
303 |
-
//New template design hide show
|
304 |
-
var new_template_result_detail = $('.new_template_result_detail:checked').val();
|
305 |
-
if (new_template_result_detail == 1) {
|
306 |
-
$('.new_template_result_detail:checked').parents('tr').next('tr').hide();
|
307 |
-
}
|
308 |
-
$(document).on('change', '.new_template_result_detail', function () {
|
309 |
-
if ($(this).val() == 1) {
|
310 |
-
$(this).parents('tr').next('tr').hide();
|
311 |
-
} else {
|
312 |
-
$(this).parents('tr').next('tr').show();
|
313 |
-
}
|
314 |
-
});
|
315 |
-
$(document).on('click', '#show-all-variable .qsm-text-template-span > .button', function (e) {
|
316 |
-
e.preventDefault();
|
317 |
-
var $temp = $("<input>");
|
318 |
-
$("body").append($temp);
|
319 |
-
$temp.val(jQuery(this).text()).select();
|
320 |
-
document.execCommand("copy");
|
321 |
-
$temp.remove();
|
322 |
-
var button_width = $(this).width();
|
323 |
-
var button_txt = $(this).text();
|
324 |
-
$(this).css('width', button_width);
|
325 |
-
$(this).text('').html('<span class="popup-copied-des"><span class="dashicons dashicons-yes"></span> Copied!</span>');
|
326 |
-
var this_par = $(this);
|
327 |
-
setTimeout(function () {
|
328 |
-
this_par.css('width', 'auto');
|
329 |
-
this_par.text('').text(button_txt);
|
330 |
-
}, 1000);
|
331 |
-
});
|
332 |
-
$(document).on('click', ' .qsm-active-addons .no_addons_installed a', function (e) {
|
333 |
-
$('.qsm-addon-anchor-left .qsm-install-addon a').trigger('click');
|
334 |
-
});
|
335 |
-
$(document).on('click', '.qsm-addon-anchor-left .qsm-install-addon a', function (e) {
|
336 |
-
e.preventDefault();
|
337 |
-
var href = $(this).attr('href');
|
338 |
-
$('.qsm-addon-anchor-left .qsm-install-addon').find('a').removeClass('active');
|
339 |
-
$(this).addClass('active');
|
340 |
-
$('.qsm-addon-setting-wrap .qsm-primary-acnhor').hide();
|
341 |
-
$(href).show();
|
342 |
-
if (href == '#qsm_add_addons') {
|
343 |
-
$('.qsm-add-addon').css('display', 'inline-block');
|
344 |
-
} else {
|
345 |
-
$('.qsm-add-addon').css('display', 'none');
|
346 |
-
}
|
347 |
-
});
|
348 |
-
$(document).on('click', '.qsm-addon-anchor-left .qsm-add-addon a', function (e) {
|
349 |
-
e.preventDefault();
|
350 |
-
var href = $(this).attr('href');
|
351 |
-
$('.qsm-addon-anchor-left .qsm-add-addon').find('a').removeClass('active');
|
352 |
-
$(this).addClass('active');
|
353 |
-
$('.qsm-addon-setting-wrap .qsm_popular_addons').hide();
|
354 |
-
$(href).show();
|
355 |
-
});
|
356 |
-
|
357 |
-
// opens media library o set featured image for quiz
|
358 |
-
$(document).on('click', '#set_featured_image', function (e) {
|
359 |
-
var button = $(this);
|
360 |
-
e.preventDefault();
|
361 |
-
custom_uploader = wp.media({
|
362 |
-
title: 'Set Featured Image',
|
363 |
-
library: {
|
364 |
-
type: 'image'
|
365 |
-
},
|
366 |
-
button: {
|
367 |
-
text: 'Use this image' // button label text
|
368 |
-
},
|
369 |
-
multiple: false
|
370 |
-
}).on('select', function () { // it also has "open" and "close" events
|
371 |
-
var attachment = custom_uploader.state().get('selection').first().toJSON();
|
372 |
-
button.prev().val(attachment.url);
|
373 |
-
button.nextAll('.qsm_featured_image_preview').attr('src', attachment.url);
|
374 |
-
}).open();
|
375 |
-
});
|
376 |
-
|
377 |
-
$(document).on('change', '.global_form_type_settiong select[name="qsm-quiz-settings[form_type]"]', function () {
|
378 |
-
var value = $(this).val();
|
379 |
-
if (value == '0' ) {
|
380 |
-
$('.global_setting_system').parents('tr').show();
|
381 |
-
$('.global_setting_score_roundoff').parents('tr').show();
|
382 |
-
}else {
|
383 |
-
$('.global_setting_system').parents('tr').hide();
|
384 |
-
$('.global_setting_score_roundoff').parents('tr').hide();
|
385 |
-
|
386 |
-
}
|
387 |
-
});
|
388 |
-
$(document).on('change', '.global_setting_system input[name="qsm-quiz-settings[system]"]', function () {
|
389 |
-
var value = $('input[name="qsm-quiz-settings[system]"]:checked').val();
|
390 |
-
var value1 = $('.global_form_type_settiong select[name="qsm-quiz-settings[form_type]"]').val();
|
391 |
-
if (value != '1' && value1 == '0' ) {
|
392 |
-
$('.global_setting_score_roundoff').parents('tr').show();
|
393 |
-
}else {
|
394 |
-
$('.global_setting_score_roundoff').parents('tr').hide();
|
395 |
-
}
|
396 |
-
});
|
397 |
-
$('.global_form_type_settiong select[name="qsm-quiz-settings[form_type]"]').trigger('change');
|
398 |
-
$('.global_setting_system input[name="qsm-quiz-settings[system]"]').trigger('change');
|
399 |
-
|
400 |
-
});
|
401 |
-
}(jQuery));
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
@@ -1,18706 +0,0 @@
|
|
1 |
-
/*! jQuery UI - v1.12.1 - 2016-09-14
|
2 |
-
* http://jqueryui.com
|
3 |
-
* Includes: widget.js, position.js, data.js, disable-selection.js, effect.js, effects/effect-blind.js, effects/effect-bounce.js, effects/effect-clip.js, effects/effect-drop.js, effects/effect-explode.js, effects/effect-fade.js, effects/effect-fold.js, effects/effect-highlight.js, effects/effect-puff.js, effects/effect-pulsate.js, effects/effect-scale.js, effects/effect-shake.js, effects/effect-size.js, effects/effect-slide.js, effects/effect-transfer.js, focusable.js, form-reset-mixin.js, jquery-1-7.js, keycode.js, labels.js, scroll-parent.js, tabbable.js, unique-id.js, widgets/accordion.js, widgets/autocomplete.js, widgets/button.js, widgets/checkboxradio.js, widgets/controlgroup.js, widgets/datepicker.js, widgets/dialog.js, widgets/draggable.js, widgets/droppable.js, widgets/menu.js, widgets/mouse.js, widgets/progressbar.js, widgets/resizable.js, widgets/selectable.js, widgets/selectmenu.js, widgets/slider.js, widgets/sortable.js, widgets/spinner.js, widgets/tabs.js, widgets/tooltip.js
|
4 |
-
* Copyright jQuery Foundation and other contributors; Licensed MIT */
|
5 |
-
|
6 |
-
(function( factory ) {
|
7 |
-
if ( typeof define === "function" && define.amd ) {
|
8 |
-
|
9 |
-
// AMD. Register as an anonymous module.
|
10 |
-
define([ "jquery" ], factory );
|
11 |
-
} else {
|
12 |
-
|
13 |
-
// Browser globals
|
14 |
-
factory( jQuery );
|
15 |
-
}
|
16 |
-
}(function( $ ) {
|
17 |
-
|
18 |
-
$.ui = $.ui || {};
|
19 |
-
|
20 |
-
var version = $.ui.version = "1.12.1";
|
21 |
-
|
22 |
-
|
23 |
-
/*!
|
24 |
-
* jQuery UI Widget 1.12.1
|
25 |
-
* http://jqueryui.com
|
26 |
-
*
|
27 |
-
* Copyright jQuery Foundation and other contributors
|
28 |
-
* Released under the MIT license.
|
29 |
-
* http://jquery.org/license
|
30 |
-
*/
|
31 |
-
|
32 |
-
//>>label: Widget
|
33 |
-
//>>group: Core
|
34 |
-
//>>description: Provides a factory for creating stateful widgets with a common API.
|
35 |
-
//>>docs: http://api.jqueryui.com/jQuery.widget/
|
36 |
-
//>>demos: http://jqueryui.com/widget/
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
var widgetUuid = 0;
|
41 |
-
var widgetSlice = Array.prototype.slice;
|
42 |
-
|
43 |
-
$.cleanData = ( function( orig ) {
|
44 |
-
return function( elems ) {
|
45 |
-
var events, elem, i;
|
46 |
-
for ( i = 0; ( elem = elems[ i ] ) != null; i++ ) {
|
47 |
-
try {
|
48 |
-
|
49 |
-
// Only trigger remove when necessary to save time
|
50 |
-
events = $._data( elem, "events" );
|
51 |
-
if ( events && events.remove ) {
|
52 |
-
$( elem ).triggerHandler( "remove" );
|
53 |
-
}
|
54 |
-
|
55 |
-
// Http://bugs.jquery.com/ticket/8235
|
56 |
-
} catch ( e ) {}
|
57 |
-
}
|
58 |
-
orig( elems );
|
59 |
-
};
|
60 |
-
} )( $.cleanData );
|
61 |
-
|
62 |
-
$.widget = function( name, base, prototype ) {
|
63 |
-
var existingConstructor, constructor, basePrototype;
|
64 |
-
|
65 |
-
// ProxiedPrototype allows the provided prototype to remain unmodified
|
66 |
-
// so that it can be used as a mixin for multiple widgets (#8876)
|
67 |
-
var proxiedPrototype = {};
|
68 |
-
|
69 |
-
var namespace = name.split( "." )[ 0 ];
|
70 |
-
name = name.split( "." )[ 1 ];
|
71 |
-
var fullName = namespace + "-" + name;
|
72 |
-
|
73 |
-
if ( !prototype ) {
|
74 |
-
prototype = base;
|
75 |
-
base = $.Widget;
|
76 |
-
}
|
77 |
-
|
78 |
-
if ( $.isArray( prototype ) ) {
|
79 |
-
prototype = $.extend.apply( null, [ {} ].concat( prototype ) );
|
80 |
-
}
|
81 |
-
|
82 |
-
// Create selector for plugin
|
83 |
-
$.expr[ ":" ][ fullName.toLowerCase() ] = function( elem ) {
|
84 |
-
return !!$.data( elem, fullName );
|
85 |
-
};
|
86 |
-
|
87 |
-
$[ namespace ] = $[ namespace ] || {};
|
88 |
-
existingConstructor = $[ namespace ][ name ];
|
89 |
-
constructor = $[ namespace ][ name ] = function( options, element ) {
|
90 |
-
|
91 |
-
// Allow instantiation without "new" keyword
|
92 |
-
if ( !this._createWidget ) {
|
93 |
-
return new constructor( options, element );
|
94 |
-
}
|
95 |
-
|
96 |
-
// Allow instantiation without initializing for simple inheritance
|
97 |
-
// must use "new" keyword (the code above always passes args)
|
98 |
-
if ( arguments.length ) {
|
99 |
-
this._createWidget( options, element );
|
100 |
-
}
|
101 |
-
};
|
102 |
-
|
103 |
-
// Extend with the existing constructor to carry over any static properties
|
104 |
-
$.extend( constructor, existingConstructor, {
|
105 |
-
version: prototype.version,
|
106 |
-
|
107 |
-
// Copy the object used to create the prototype in case we need to
|
108 |
-
// redefine the widget later
|
109 |
-
_proto: $.extend( {}, prototype ),
|
110 |
-
|
111 |
-
// Track widgets that inherit from this widget in case this widget is
|
112 |
-
// redefined after a widget inherits from it
|
113 |
-
_childConstructors: []
|
114 |
-
} );
|
115 |
-
|
116 |
-
basePrototype = new base();
|
117 |
-
|
118 |
-
// We need to make the options hash a property directly on the new instance
|
119 |
-
// otherwise we'll modify the options hash on the prototype that we're
|
120 |
-
// inheriting from
|
121 |
-
basePrototype.options = $.widget.extend( {}, basePrototype.options );
|
122 |
-
$.each( prototype, function( prop, value ) {
|
123 |
-
if ( !$.isFunction( value ) ) {
|
124 |
-
proxiedPrototype[ prop ] = value;
|
125 |
-
return;
|
126 |
-
}
|
127 |
-
proxiedPrototype[ prop ] = ( function() {
|
128 |
-
function _super() {
|
129 |
-
return base.prototype[ prop ].apply( this, arguments );
|
130 |
-
}
|
131 |
-
|
132 |
-
function _superApply( args ) {
|
133 |
-
return base.prototype[ prop ].apply( this, args );
|
134 |
-
}
|
135 |
-
|
136 |
-
return function() {
|
137 |
-
var __super = this._super;
|
138 |
-
var __superApply = this._superApply;
|
139 |
-
var returnValue;
|
140 |
-
|
141 |
-
this._super = _super;
|
142 |
-
this._superApply = _superApply;
|
143 |
-
|
144 |
-
returnValue = value.apply( this, arguments );
|
145 |
-
|
146 |
-
this._super = __super;
|
147 |
-
this._superApply = __superApply;
|
148 |
-
|
149 |
-
return returnValue;
|
150 |
-
};
|
151 |
-
} )();
|
152 |
-
} );
|
153 |
-
constructor.prototype = $.widget.extend( basePrototype, {
|
154 |
-
|
155 |
-
// TODO: remove support for widgetEventPrefix
|
156 |
-
// always use the name + a colon as the prefix, e.g., draggable:start
|
157 |
-
// don't prefix for widgets that aren't DOM-based
|
158 |
-
widgetEventPrefix: existingConstructor ? ( basePrototype.widgetEventPrefix || name ) : name
|
159 |
-
}, proxiedPrototype, {
|
160 |
-
constructor: constructor,
|
161 |
-
namespace: namespace,
|
162 |
-
widgetName: name,
|
163 |
-
widgetFullName: fullName
|
164 |
-
} );
|
165 |
-
|
166 |
-
// If this widget is being redefined then we need to find all widgets that
|
167 |
-
// are inheriting from it and redefine all of them so that they inherit from
|
168 |
-
// the new version of this widget. We're essentially trying to replace one
|
169 |
-
// level in the prototype chain.
|
170 |
-
if ( existingConstructor ) {
|
171 |
-
$.each( existingConstructor._childConstructors, function( i, child ) {
|
172 |
-
var childPrototype = child.prototype;
|
173 |
-
|
174 |
-
// Redefine the child widget using the same prototype that was
|
175 |
-
// originally used, but inherit from the new version of the base
|
176 |
-
$.widget( childPrototype.namespace + "." + childPrototype.widgetName, constructor,
|
177 |
-
child._proto );
|
178 |
-
} );
|
179 |
-
|
180 |
-
// Remove the list of existing child constructors from the old constructor
|
181 |
-
// so the old child constructors can be garbage collected
|
182 |
-
delete existingConstructor._childConstructors;
|
183 |
-
} else {
|
184 |
-
base._childConstructors.push( constructor );
|
185 |
-
}
|
186 |
-
|
187 |
-
$.widget.bridge( name, constructor );
|
188 |
-
|
189 |
-
return constructor;
|
190 |
-
};
|
191 |
-
|
192 |
-
$.widget.extend = function( target ) {
|
193 |
-
var input = widgetSlice.call( arguments, 1 );
|
194 |
-
var inputIndex = 0;
|
195 |
-
var inputLength = input.length;
|
196 |
-
var key;
|
197 |
-
var value;
|
198 |
-
|
199 |
-
for ( ; inputIndex < inputLength; inputIndex++ ) {
|
200 |
-
for ( key in input[ inputIndex ] ) {
|
201 |
-
value = input[ inputIndex ][ key ];
|
202 |
-
if ( input[ inputIndex ].hasOwnProperty( key ) && value !== undefined ) {
|
203 |
-
|
204 |
-
// Clone objects
|
205 |
-
if ( $.isPlainObject( value ) ) {
|
206 |
-
target[ key ] = $.isPlainObject( target[ key ] ) ?
|
207 |
-
$.widget.extend( {}, target[ key ], value ) :
|
208 |
-
|
209 |
-
// Don't extend strings, arrays, etc. with objects
|
210 |
-
$.widget.extend( {}, value );
|
211 |
-
|
212 |
-
// Copy everything else by reference
|
213 |
-
} else {
|
214 |
-
target[ key ] = value;
|
215 |
-
}
|
216 |
-
}
|
217 |
-
}
|
218 |
-
}
|
219 |
-
return target;
|
220 |
-
};
|
221 |
-
|
222 |
-
$.widget.bridge = function( name, object ) {
|
223 |
-
var fullName = object.prototype.widgetFullName || name;
|
224 |
-
$.fn[ name ] = function( options ) {
|
225 |
-
var isMethodCall = typeof options === "string";
|
226 |
-
var args = widgetSlice.call( arguments, 1 );
|
227 |
-
var returnValue = this;
|
228 |
-
|
229 |
-
if ( isMethodCall ) {
|
230 |
-
|
231 |
-
// If this is an empty collection, we need to have the instance method
|
232 |
-
// return undefined instead of the jQuery instance
|
233 |
-
if ( !this.length && options === "instance" ) {
|
234 |
-
returnValue = undefined;
|
235 |
-
} else {
|
236 |
-
this.each( function() {
|
237 |
-
var methodValue;
|
238 |
-
var instance = $.data( this, fullName );
|
239 |
-
|
240 |
-
if ( options === "instance" ) {
|
241 |
-
returnValue = instance;
|
242 |
-
return false;
|
243 |
-
}
|
244 |
-
|
245 |
-
if ( !instance ) {
|
246 |
-
return $.error( "cannot call methods on " + name +
|
247 |
-
" prior to initialization; " +
|
248 |
-
"attempted to call method '" + options + "'" );
|
249 |
-
}
|
250 |
-
|
251 |
-
if ( !$.isFunction( instance[ options ] ) || options.charAt( 0 ) === "_" ) {
|
252 |
-
return $.error( "no such method '" + options + "' for " + name +
|
253 |
-
" widget instance" );
|
254 |
-
}
|
255 |
-
|
256 |
-
methodValue = instance[ options ].apply( instance, args );
|
257 |
-
|
258 |
-
if ( methodValue !== instance && methodValue !== undefined ) {
|
259 |
-
returnValue = methodValue && methodValue.jquery ?
|
260 |
-
returnValue.pushStack( methodValue.get() ) :
|
261 |
-
methodValue;
|
262 |
-
return false;
|
263 |
-
}
|
264 |
-
} );
|
265 |
-
}
|
266 |
-
} else {
|
267 |
-
|
268 |
-
// Allow multiple hashes to be passed on init
|
269 |
-
if ( args.length ) {
|
270 |
-
options = $.widget.extend.apply( null, [ options ].concat( args ) );
|
271 |
-
}
|
272 |
-
|
273 |
-
this.each( function() {
|
274 |
-
var instance = $.data( this, fullName );
|
275 |
-
if ( instance ) {
|
276 |
-
instance.option( options || {} );
|
277 |
-
if ( instance._init ) {
|
278 |
-
instance._init();
|
279 |
-
}
|
280 |
-
} else {
|
281 |
-
$.data( this, fullName, new object( options, this ) );
|
282 |
-
}
|
283 |
-
} );
|
284 |
-
}
|
285 |
-
|
286 |
-
return returnValue;
|
287 |
-
};
|
288 |
-
};
|
289 |
-
|
290 |
-
$.Widget = function( /* options, element */ ) {};
|
291 |
-
$.Widget._childConstructors = [];
|
292 |
-
|
293 |
-
$.Widget.prototype = {
|
294 |
-
widgetName: "widget",
|
295 |
-
widgetEventPrefix: "",
|
296 |
-
defaultElement: "<div>",
|
297 |
-
|
298 |
-
options: {
|
299 |
-
classes: {},
|
300 |
-
disabled: false,
|
301 |
-
|
302 |
-
// Callbacks
|
303 |
-
create: null
|
304 |
-
},
|
305 |
-
|
306 |
-
_createWidget: function( options, element ) {
|
307 |
-
element = $( element || this.defaultElement || this )[ 0 ];
|
308 |
-
this.element = $( element );
|
309 |
-
this.uuid = widgetUuid++;
|
310 |
-
this.eventNamespace = "." + this.widgetName + this.uuid;
|
311 |
-
|
312 |
-
this.bindings = $();
|
313 |
-
this.hoverable = $();
|
314 |
-
this.focusable = $();
|
315 |
-
this.classesElementLookup = {};
|
316 |
-
|
317 |
-
if ( element !== this ) {
|
318 |
-
$.data( element, this.widgetFullName, this );
|
319 |
-
this._on( true, this.element, {
|
320 |
-
remove: function( event ) {
|
321 |
-
if ( event.target === element ) {
|
322 |
-
this.destroy();
|
323 |
-
}
|
324 |
-
}
|
325 |
-
} );
|
326 |
-
this.document = $( element.style ?
|
327 |
-
|
328 |
-
// Element within the document
|
329 |
-
element.ownerDocument :
|
330 |
-
|
331 |
-
// Element is window or document
|
332 |
-
element.document || element );
|
333 |
-
this.window = $( this.document[ 0 ].defaultView || this.document[ 0 ].parentWindow );
|
334 |
-
}
|
335 |
-
|
336 |
-
this.options = $.widget.extend( {},
|
337 |
-
this.options,
|
338 |
-
this._getCreateOptions(),
|
339 |
-
options );
|
340 |
-
|
341 |
-
this._create();
|
342 |
-
|
343 |
-
if ( this.options.disabled ) {
|
344 |
-
this._setOptionDisabled( this.options.disabled );
|
345 |
-
}
|
346 |
-
|
347 |
-
this._trigger( "create", null, this._getCreateEventData() );
|
348 |
-
this._init();
|
349 |
-
},
|
350 |
-
|
351 |
-
_getCreateOptions: function() {
|
352 |
-
return {};
|
353 |
-
},
|
354 |
-
|
355 |
-
_getCreateEventData: $.noop,
|
356 |
-
|
357 |
-
_create: $.noop,
|
358 |
-
|
359 |
-
_init: $.noop,
|
360 |
-
|
361 |
-
destroy: function() {
|
362 |
-
var that = this;
|
363 |
-
|
364 |
-
this._destroy();
|
365 |
-
$.each( this.classesElementLookup, function( key, value ) {
|
366 |
-
that._removeClass( value, key );
|
367 |
-
} );
|
368 |
-
|
369 |
-
// We can probably remove the unbind calls in 2.0
|
370 |
-
// all event bindings should go through this._on()
|
371 |
-
this.element
|
372 |
-
.off( this.eventNamespace )
|
373 |
-
.removeData( this.widgetFullName );
|
374 |
-
this.widget()
|
375 |
-
.off( this.eventNamespace )
|
376 |
-
.removeAttr( "aria-disabled" );
|
377 |
-
|
378 |
-
// Clean up events and states
|
379 |
-
this.bindings.off( this.eventNamespace );
|
380 |
-
},
|
381 |
-
|
382 |
-
_destroy: $.noop,
|
383 |
-
|
384 |
-
widget: function() {
|
385 |
-
return this.element;
|
386 |
-
},
|
387 |
-
|
388 |
-
option: function( key, value ) {
|
389 |
-
var options = key;
|
390 |
-
var parts;
|
391 |
-
var curOption;
|
392 |
-
var i;
|
393 |
-
|
394 |
-
if ( arguments.length === 0 ) {
|
395 |
-
|
396 |
-
// Don't return a reference to the internal hash
|
397 |
-
return $.widget.extend( {}, this.options );
|
398 |
-
}
|
399 |
-
|
400 |
-
if ( typeof key === "string" ) {
|
401 |
-
|
402 |
-
// Handle nested keys, e.g., "foo.bar" => { foo: { bar: ___ } }
|
403 |
-
options = {};
|
404 |
-
parts = key.split( "." );
|
405 |
-
key = parts.shift();
|
406 |
-
if ( parts.length ) {
|
407 |
-
curOption = options[ key ] = $.widget.extend( {}, this.options[ key ] );
|
408 |
-
for ( i = 0; i < parts.length - 1; i++ ) {
|
409 |
-
curOption[ parts[ i ] ] = curOption[ parts[ i ] ] || {};
|
410 |
-
curOption = curOption[ parts[ i ] ];
|
411 |
-
}
|
412 |
-
key = parts.pop();
|
413 |
-
if ( arguments.length === 1 ) {
|
414 |
-
return curOption[ key ] === undefined ? null : curOption[ key ];
|
415 |
-
}
|
416 |
-
curOption[ key ] = value;
|
417 |
-
} else {
|
418 |
-
if ( arguments.length === 1 ) {
|
419 |
-
return this.options[ key ] === undefined ? null : this.options[ key ];
|
420 |
-
}
|
421 |
-
options[ key ] = value;
|
422 |
-
}
|
423 |
-
}
|
424 |
-
|
425 |
-
this._setOptions( options );
|
426 |
-
|
427 |
-
return this;
|
428 |
-
},
|
429 |
-
|
430 |
-
_setOptions: function( options ) {
|
431 |
-
var key;
|
432 |
-
|
433 |
-
for ( key in options ) {
|
434 |
-
this._setOption( key, options[ key ] );
|
435 |
-
}
|
436 |
-
|
437 |
-
return this;
|
438 |
-
},
|
439 |
-
|
440 |
-
_setOption: function( key, value ) {
|
441 |
-
if ( key === "classes" ) {
|
442 |
-
this._setOptionClasses( value );
|
443 |
-
}
|
444 |
-
|
445 |
-
this.options[ key ] = value;
|
446 |
-
|
447 |
-
if ( key === "disabled" ) {
|
448 |
-
this._setOptionDisabled( value );
|
449 |
-
}
|
450 |
-
|
451 |
-
return this;
|
452 |
-
},
|
453 |
-
|
454 |
-
_setOptionClasses: function( value ) {
|
455 |
-
var classKey, elements, currentElements;
|
456 |
-
|
457 |
-
for ( classKey in value ) {
|
458 |
-
currentElements = this.classesElementLookup[ classKey ];
|
459 |
-
if ( value[ classKey ] === this.options.classes[ classKey ] ||
|
460 |
-
!currentElements ||
|
461 |
-
!currentElements.length ) {
|
462 |
-
continue;
|
463 |
-
}
|
464 |
-
|
465 |
-
// We are doing this to create a new jQuery object because the _removeClass() call
|
466 |
-
// on the next line is going to destroy the reference to the current elements being
|
467 |
-
// tracked. We need to save a copy of this collection so that we can add the new classes
|
468 |
-
// below.
|
469 |
-
elements = $( currentElements.get() );
|
470 |
-
this._removeClass( currentElements, classKey );
|
471 |
-
|
472 |
-
// We don't use _addClass() here, because that uses this.options.classes
|
473 |
-
// for generating the string of classes. We want to use the value passed in from
|
474 |
-
// _setOption(), this is the new value of the classes option which was passed to
|
475 |
-
// _setOption(). We pass this value directly to _classes().
|
476 |
-
elements.addClass( this._classes( {
|
477 |
-
element: elements,
|
478 |
-
keys: classKey,
|
479 |
-
classes: value,
|
480 |
-
add: true
|
481 |
-
} ) );
|
482 |
-
}
|
483 |
-
},
|
484 |
-
|
485 |
-
_setOptionDisabled: function( value ) {
|
486 |
-
this._toggleClass( this.widget(), this.widgetFullName + "-disabled", null, !!value );
|
487 |
-
|
488 |
-
// If the widget is becoming disabled, then nothing is interactive
|
489 |
-
if ( value ) {
|
490 |
-
this._removeClass( this.hoverable, null, "ui-state-hover" );
|
491 |
-
this._removeClass( this.focusable, null, "ui-state-focus" );
|
492 |
-
}
|
493 |
-
},
|
494 |
-
|
495 |
-
enable: function() {
|
496 |
-
return this._setOptions( { disabled: false } );
|
497 |
-
},
|
498 |
-
|
499 |
-
disable: function() {
|
500 |
-
return this._setOptions( { disabled: true } );
|
501 |
-
},
|
502 |
-
|
503 |
-
_classes: function( options ) {
|
504 |
-
var full = [];
|
505 |
-
var that = this;
|
506 |
-
|
507 |
-
options = $.extend( {
|
508 |
-
element: this.element,
|
509 |
-
classes: this.options.classes || {}
|
510 |
-
}, options );
|
511 |
-
|
512 |
-
function processClassString( classes, checkOption ) {
|
513 |
-
var current, i;
|
514 |
-
for ( i = 0; i < classes.length; i++ ) {
|
515 |
-
current = that.classesElementLookup[ classes[ i ] ] || $();
|
516 |
-
if ( options.add ) {
|
517 |
-
current = $( $.unique( current.get().concat( options.element.get() ) ) );
|
518 |
-
} else {
|
519 |
-
current = $( current.not( options.element ).get() );
|
520 |
-
}
|
521 |
-
that.classesElementLookup[ classes[ i ] ] = current;
|
522 |
-
full.push( classes[ i ] );
|
523 |
-
if ( checkOption && options.classes[ classes[ i ] ] ) {
|
524 |
-
full.push( options.classes[ classes[ i ] ] );
|
525 |
-
}
|
526 |
-
}
|
527 |
-
}
|
528 |
-
|
529 |
-
this._on( options.element, {
|
530 |
-
"remove": "_untrackClassesElement"
|
531 |
-
} );
|
532 |
-
|
533 |
-
if ( options.keys ) {
|
534 |
-
processClassString( options.keys.match( /\S+/g ) || [], true );
|
535 |
-
}
|
536 |
-
if ( options.extra ) {
|
537 |
-
processClassString( options.extra.match( /\S+/g ) || [] );
|
538 |
-
}
|
539 |
-
|
540 |
-
return full.join( " " );
|
541 |
-
},
|
542 |
-
|
543 |
-
_untrackClassesElement: function( event ) {
|
544 |
-
var that = this;
|
545 |
-
$.each( that.classesElementLookup, function( key, value ) {
|
546 |
-
if ( $.inArray( event.target, value ) !== -1 ) {
|
547 |
-
that.classesElementLookup[ key ] = $( value.not( event.target ).get() );
|
548 |
-
}
|
549 |
-
} );
|
550 |
-
},
|
551 |
-
|
552 |
-
_removeClass: function( element, keys, extra ) {
|
553 |
-
return this._toggleClass( element, keys, extra, false );
|
554 |
-
},
|
555 |
-
|
556 |
-
_addClass: function( element, keys, extra ) {
|
557 |
-
return this._toggleClass( element, keys, extra, true );
|
558 |
-
},
|
559 |
-
|
560 |
-
_toggleClass: function( element, keys, extra, add ) {
|
561 |
-
add = ( typeof add === "boolean" ) ? add : extra;
|
562 |
-
var shift = ( typeof element === "string" || element === null ),
|
563 |
-
options = {
|
564 |
-
extra: shift ? keys : extra,
|
565 |
-
keys: shift ? element : keys,
|
566 |
-
element: shift ? this.element : element,
|
567 |
-
add: add
|
568 |
-
};
|
569 |
-
options.element.toggleClass( this._classes( options ), add );
|
570 |
-
return this;
|
571 |
-
},
|
572 |
-
|
573 |
-
_on: function( suppressDisabledCheck, element, handlers ) {
|
574 |
-
var delegateElement;
|
575 |
-
var instance = this;
|
576 |
-
|
577 |
-
// No suppressDisabledCheck flag, shuffle arguments
|
578 |
-
if ( typeof suppressDisabledCheck !== "boolean" ) {
|
579 |
-
handlers = element;
|
580 |
-
element = suppressDisabledCheck;
|
581 |
-
suppressDisabledCheck = false;
|
582 |
-
}
|
583 |
-
|
584 |
-
// No element argument, shuffle and use this.element
|
585 |
-
if ( !handlers ) {
|
586 |
-
handlers = element;
|
587 |
-
element = this.element;
|
588 |
-
delegateElement = this.widget();
|
589 |
-
} else {
|
590 |
-
element = delegateElement = $( element );
|
591 |
-
this.bindings = this.bindings.add( element );
|
592 |
-
}
|
593 |
-
|
594 |
-
$.each( handlers, function( event, handler ) {
|
595 |
-
function handlerProxy() {
|
596 |
-
|
597 |
-
// Allow widgets to customize the disabled handling
|
598 |
-
// - disabled as an array instead of boolean
|
599 |
-
// - disabled class as method for disabling individual parts
|
600 |
-
if ( !suppressDisabledCheck &&
|
601 |
-
( instance.options.disabled === true ||
|
602 |
-
$( this ).hasClass( "ui-state-disabled" ) ) ) {
|
603 |
-
return;
|
604 |
-
}
|
605 |
-
return ( typeof handler === "string" ? instance[ handler ] : handler )
|
606 |
-
.apply( instance, arguments );
|
607 |
-
}
|
608 |
-
|
609 |
-
// Copy the guid so direct unbinding works
|
610 |
-
if ( typeof handler !== "string" ) {
|
611 |
-
handlerProxy.guid = handler.guid =
|
612 |
-
handler.guid || handlerProxy.guid || $.guid++;
|
613 |
-
}
|
614 |
-
|
615 |
-
var match = event.match( /^([\w:-]*)\s*(.*)$/ );
|
616 |
-
var eventName = match[ 1 ] + instance.eventNamespace;
|
617 |
-
var selector = match[ 2 ];
|
618 |
-
|
619 |
-
if ( selector ) {
|
620 |
-
delegateElement.on( eventName, selector, handlerProxy );
|
621 |
-
} else {
|
622 |
-
element.on( eventName, handlerProxy );
|
623 |
-
}
|
624 |
-
} );
|
625 |
-
},
|
626 |
-
|
627 |
-
_off: function( element, eventName ) {
|
628 |
-
eventName = ( eventName || "" ).split( " " ).join( this.eventNamespace + " " ) +
|
629 |
-
this.eventNamespace;
|
630 |
-
element.off( eventName ).off( eventName );
|
631 |
-
|
632 |
-
// Clear the stack to avoid memory leaks (#10056)
|
633 |
-
this.bindings = $( this.bindings.not( element ).get() );
|
634 |
-
this.focusable = $( this.focusable.not( element ).get() );
|
635 |
-
this.hoverable = $( this.hoverable.not( element ).get() );
|
636 |
-
},
|
637 |
-
|
638 |
-
_delay: function( handler, delay ) {
|
639 |
-
function handlerProxy() {
|
640 |
-
return ( typeof handler === "string" ? instance[ handler ] : handler )
|
641 |
-
.apply( instance, arguments );
|
642 |
-
}
|
643 |
-
var instance = this;
|
644 |
-
return setTimeout( handlerProxy, delay || 0 );
|
645 |
-
},
|
646 |
-
|
647 |
-
_hoverable: function( element ) {
|
648 |
-
this.hoverable = this.hoverable.add( element );
|
649 |
-
this._on( element, {
|
650 |
-
mouseenter: function( event ) {
|
651 |
-
this._addClass( $( event.currentTarget ), null, "ui-state-hover" );
|
652 |
-
},
|
653 |
-
mouseleave: function( event ) {
|
654 |
-
this._removeClass( $( event.currentTarget ), null, "ui-state-hover" );
|
655 |
-
}
|
656 |
-
} );
|
657 |
-
},
|
658 |
-
|
659 |
-
_focusable: function( element ) {
|
660 |
-
this.focusable = this.focusable.add( element );
|
661 |
-
this._on( element, {
|
662 |
-
focusin: function( event ) {
|
663 |
-
this._addClass( $( event.currentTarget ), null, "ui-state-focus" );
|
664 |
-
},
|
665 |
-
focusout: function( event ) {
|
666 |
-
this._removeClass( $( event.currentTarget ), null, "ui-state-focus" );
|
667 |
-
}
|
668 |
-
} );
|
669 |
-
},
|
670 |
-
|
671 |
-
_trigger: function( type, event, data ) {
|
672 |
-
var prop, orig;
|
673 |
-
var callback = this.options[ type ];
|
674 |
-
|
675 |
-
data = data || {};
|
676 |
-
event = $.Event( event );
|
677 |
-
event.type = ( type === this.widgetEventPrefix ?
|
678 |
-
type :
|
679 |
-
this.widgetEventPrefix + type ).toLowerCase();
|
680 |
-
|
681 |
-
// The original event may come from any element
|
682 |
-
// so we need to reset the target on the new event
|
683 |
-
event.target = this.element[ 0 ];
|
684 |
-
|
685 |
-
// Copy original event properties over to the new event
|
686 |
-
orig = event.originalEvent;
|
687 |
-
if ( orig ) {
|
688 |
-
for ( prop in orig ) {
|
689 |
-
if ( !( prop in event ) ) {
|
690 |
-
event[ prop ] = orig[ prop ];
|
691 |
-
}
|
692 |
-
}
|
693 |
-
}
|
694 |
-
|
695 |
-
this.element.trigger( event, data );
|
696 |
-
return !( $.isFunction( callback ) &&
|
697 |
-
callback.apply( this.element[ 0 ], [ event ].concat( data ) ) === false ||
|
698 |
-
event.isDefaultPrevented() );
|
699 |
-
}
|
700 |
-
};
|
701 |
-
|
702 |
-
$.each( { show: "fadeIn", hide: "fadeOut" }, function( method, defaultEffect ) {
|
703 |
-
$.Widget.prototype[ "_" + method ] = function( element, options, callback ) {
|
704 |
-
if ( typeof options === "string" ) {
|
705 |
-
options = { effect: options };
|
706 |
-
}
|
707 |
-
|
708 |
-
var hasOptions;
|
709 |
-
var effectName = !options ?
|
710 |
-
method :
|
711 |
-
options === true || typeof options === "number" ?
|
712 |
-
defaultEffect :
|
713 |
-
options.effect || defaultEffect;
|
714 |
-
|
715 |
-
options = options || {};
|
716 |
-
if ( typeof options === "number" ) {
|
717 |
-
options = { duration: options };
|
718 |
-
}
|
719 |
-
|
720 |
-
hasOptions = !$.isEmptyObject( options );
|
721 |
-
options.complete = callback;
|
722 |
-
|
723 |
-
if ( options.delay ) {
|
724 |
-
element.delay( options.delay );
|
725 |
-
}
|
726 |
-
|
727 |
-
if ( hasOptions && $.effects && $.effects.effect[ effectName ] ) {
|
728 |
-
element[ method ]( options );
|
729 |
-
} else if ( effectName !== method && element[ effectName ] ) {
|
730 |
-
element[ effectName ]( options.duration, options.easing, callback );
|
731 |
-
} else {
|
732 |
-
element.queue( function( next ) {
|
733 |
-
$( this )[ method ]();
|
734 |
-
if ( callback ) {
|
735 |
-
callback.call( element[ 0 ] );
|
736 |
-
}
|
737 |
-
next();
|
738 |
-
} );
|
739 |
-
}
|
740 |
-
};
|
741 |
-
} );
|
742 |
-
|
743 |
-
var widget = $.widget;
|
744 |
-
|
745 |
-
|
746 |
-
/*!
|
747 |
-
* jQuery UI Position 1.12.1
|
748 |
-
* http://jqueryui.com
|
749 |
-
*
|
750 |
-
* Copyright jQuery Foundation and other contributors
|
751 |
-
* Released under the MIT license.
|
752 |
-
* http://jquery.org/license
|
753 |
-
*
|
754 |
-
* http://api.jqueryui.com/position/
|
755 |
-
*/
|
756 |
-
|
757 |
-
//>>label: Position
|
758 |
-
//>>group: Core
|
759 |
-
//>>description: Positions elements relative to other elements.
|
760 |
-
//>>docs: http://api.jqueryui.com/position/
|
761 |
-
//>>demos: http://jqueryui.com/position/
|
762 |
-
|
763 |
-
|
764 |
-
( function() {
|
765 |
-
var cachedScrollbarWidth,
|
766 |
-
max = Math.max,
|
767 |
-
abs = Math.abs,
|
768 |
-
rhorizontal = /left|center|right/,
|
769 |
-
rvertical = /top|center|bottom/,
|
770 |
-
roffset = /[\+\-]\d+(\.[\d]+)?%?/,
|
771 |
-
rposition = /^\w+/,
|
772 |
-
rpercent = /%$/,
|
773 |
-
_position = $.fn.position;
|
774 |
-
|
775 |
-
function getOffsets( offsets, width, height ) {
|
776 |
-
return [
|
777 |
-
parseFloat( offsets[ 0 ] ) * ( rpercent.test( offsets[ 0 ] ) ? width / 100 : 1 ),
|
778 |
-
parseFloat( offsets[ 1 ] ) * ( rpercent.test( offsets[ 1 ] ) ? height / 100 : 1 )
|
779 |
-
];
|
780 |
-
}
|
781 |
-
|
782 |
-
function parseCss( element, property ) {
|
783 |
-
return parseInt( $.css( element, property ), 10 ) || 0;
|
784 |
-
}
|
785 |
-
|
786 |
-
function getDimensions( elem ) {
|
787 |
-
var raw = elem[ 0 ];
|
788 |
-
if ( raw.nodeType === 9 ) {
|
789 |
-
return {
|
790 |
-
width: elem.width(),
|
791 |
-
height: elem.height(),
|
792 |
-
offset: { top: 0, left: 0 }
|
793 |
-
};
|
794 |
-
}
|
795 |
-
if ( $.isWindow( raw ) ) {
|
796 |
-
return {
|
797 |
-
width: elem.width(),
|
798 |
-
height: elem.height(),
|
799 |
-
offset: { top: elem.scrollTop(), left: elem.scrollLeft() }
|
800 |
-
};
|
801 |
-
}
|
802 |
-
if ( raw.preventDefault ) {
|
803 |
-
return {
|
804 |
-
width: 0,
|
805 |
-
height: 0,
|
806 |
-
offset: { top: raw.pageY, left: raw.pageX }
|
807 |
-
};
|
808 |
-
}
|
809 |
-
return {
|
810 |
-
width: elem.outerWidth(),
|
811 |
-
height: elem.outerHeight(),
|
812 |
-
offset: elem.offset()
|
813 |
-
};
|
814 |
-
}
|
815 |
-
|
816 |
-
$.position = {
|
817 |
-
scrollbarWidth: function() {
|
818 |
-
if ( cachedScrollbarWidth !== undefined ) {
|
819 |
-
return cachedScrollbarWidth;
|
820 |
-
}
|
821 |
-
var w1, w2,
|
822 |
-
div = $( "<div " +
|
823 |
-
"style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'>" +
|
824 |
-
"<div style='height:100px;width:auto;'></div></div>" ),
|
825 |
-
innerDiv = div.children()[ 0 ];
|
826 |
-
|
827 |
-
$( "body" ).append( div );
|
828 |
-
w1 = innerDiv.offsetWidth;
|
829 |
-
div.css( "overflow", "scroll" );
|
830 |
-
|
831 |
-
w2 = innerDiv.offsetWidth;
|
832 |
-
|
833 |
-
if ( w1 === w2 ) {
|
834 |
-
w2 = div[ 0 ].clientWidth;
|
835 |
-
}
|
836 |
-
|
837 |
-
div.remove();
|
838 |
-
|
839 |
-
return ( cachedScrollbarWidth = w1 - w2 );
|
840 |
-
},
|
841 |
-
getScrollInfo: function( within ) {
|
842 |
-
var overflowX = within.isWindow || within.isDocument ? "" :
|
843 |
-
within.element.css( "overflow-x" ),
|
844 |
-
overflowY = within.isWindow || within.isDocument ? "" :
|
845 |
-
within.element.css( "overflow-y" ),
|
846 |
-
hasOverflowX = overflowX === "scroll" ||
|
847 |
-
( overflowX === "auto" && within.width < within.element[ 0 ].scrollWidth ),
|
848 |
-
hasOverflowY = overflowY === "scroll" ||
|
849 |
-
( overflowY === "auto" && within.height < within.element[ 0 ].scrollHeight );
|
850 |
-
return {
|
851 |
-
width: hasOverflowY ? $.position.scrollbarWidth() : 0,
|
852 |
-
height: hasOverflowX ? $.position.scrollbarWidth() : 0
|
853 |
-
};
|
854 |
-
},
|
855 |
-
getWithinInfo: function( element ) {
|
856 |
-
var withinElement = $( element || window ),
|
857 |
-
isWindow = $.isWindow( withinElement[ 0 ] ),
|
858 |
-
isDocument = !!withinElement[ 0 ] && withinElement[ 0 ].nodeType === 9,
|
859 |
-
hasOffset = !isWindow && !isDocument;
|
860 |
-
return {
|
861 |
-
element: withinElement,
|
862 |
-
isWindow: isWindow,
|
863 |
-
isDocument: isDocument,
|
864 |
-
offset: hasOffset ? $( element ).offset() : { left: 0, top: 0 },
|
865 |
-
scrollLeft: withinElement.scrollLeft(),
|
866 |
-
scrollTop: withinElement.scrollTop(),
|
867 |
-
width: withinElement.outerWidth(),
|
868 |
-
height: withinElement.outerHeight()
|
869 |
-
};
|
870 |
-
}
|
871 |
-
};
|
872 |
-
|
873 |
-
$.fn.position = function( options ) {
|
874 |
-
if ( !options || !options.of ) {
|
875 |
-
return _position.apply( this, arguments );
|
876 |
-
}
|
877 |
-
|
878 |
-
// Make a copy, we don't want to modify arguments
|
879 |
-
options = $.extend( {}, options );
|
880 |
-
|
881 |
-
var atOffset, targetWidth, targetHeight, targetOffset, basePosition, dimensions,
|
882 |
-
target = $( options.of ),
|
883 |
-
within = $.position.getWithinInfo( options.within ),
|
884 |
-
scrollInfo = $.position.getScrollInfo( within ),
|
885 |
-
collision = ( options.collision || "flip" ).split( " " ),
|
886 |
-
offsets = {};
|
887 |
-
|
888 |
-
dimensions = getDimensions( target );
|
889 |
-
if ( target[ 0 ].preventDefault ) {
|
890 |
-
|
891 |
-
// Force left top to allow flipping
|
892 |
-
options.at = "left top";
|
893 |
-
}
|
894 |
-
targetWidth = dimensions.width;
|
895 |
-
targetHeight = dimensions.height;
|
896 |
-
targetOffset = dimensions.offset;
|
897 |
-
|
898 |
-
// Clone to reuse original targetOffset later
|
899 |
-
basePosition = $.extend( {}, targetOffset );
|
900 |
-
|
901 |
-
// Force my and at to have valid horizontal and vertical positions
|
902 |
-
// if a value is missing or invalid, it will be converted to center
|
903 |
-
$.each( [ "my", "at" ], function() {
|
904 |
-
var pos = ( options[ this ] || "" ).split( " " ),
|
905 |
-
horizontalOffset,
|
906 |
-
verticalOffset;
|
907 |
-
|
908 |
-
if ( pos.length === 1 ) {
|
909 |
-
pos = rhorizontal.test( pos[ 0 ] ) ?
|
910 |
-
pos.concat( [ "center" ] ) :
|
911 |
-
rvertical.test( pos[ 0 ] ) ?
|
912 |
-
[ "center" ].concat( pos ) :
|
913 |
-
[ "center", "center" ];
|
914 |
-
}
|
915 |
-
pos[ 0 ] = rhorizontal.test( pos[ 0 ] ) ? pos[ 0 ] : "center";
|
916 |
-
pos[ 1 ] = rvertical.test( pos[ 1 ] ) ? pos[ 1 ] : "center";
|
917 |
-
|
918 |
-
// Calculate offsets
|
919 |
-
horizontalOffset = roffset.exec( pos[ 0 ] );
|
920 |
-
verticalOffset = roffset.exec( pos[ 1 ] );
|
921 |
-
offsets[ this ] = [
|
922 |
-
horizontalOffset ? horizontalOffset[ 0 ] : 0,
|
923 |
-
verticalOffset ? verticalOffset[ 0 ] : 0
|
924 |
-
];
|
925 |
-
|
926 |
-
// Reduce to just the positions without the offsets
|
927 |
-
options[ this ] = [
|
928 |
-
rposition.exec( pos[ 0 ] )[ 0 ],
|
929 |
-
rposition.exec( pos[ 1 ] )[ 0 ]
|
930 |
-
];
|
931 |
-
} );
|
932 |
-
|
933 |
-
// Normalize collision option
|
934 |
-
if ( collision.length === 1 ) {
|
935 |
-
collision[ 1 ] = collision[ 0 ];
|
936 |
-
}
|
937 |
-
|
938 |
-
if ( options.at[ 0 ] === "right" ) {
|
939 |
-
basePosition.left += targetWidth;
|
940 |
-
} else if ( options.at[ 0 ] === "center" ) {
|
941 |
-
basePosition.left += targetWidth / 2;
|
942 |
-
}
|
943 |
-
|
944 |
-
if ( options.at[ 1 ] === "bottom" ) {
|
945 |
-
basePosition.top += targetHeight;
|
946 |
-
} else if ( options.at[ 1 ] === "center" ) {
|
947 |
-
basePosition.top += targetHeight / 2;
|
948 |
-
}
|
949 |
-
|
950 |
-
atOffset = getOffsets( offsets.at, targetWidth, targetHeight );
|
951 |
-
basePosition.left += atOffset[ 0 ];
|
952 |
-
basePosition.top += atOffset[ 1 ];
|
953 |
-
|
954 |
-
return this.each( function() {
|
955 |
-
var collisionPosition, using,
|
956 |
-
elem = $( this ),
|
957 |
-
elemWidth = elem.outerWidth(),
|
958 |
-
elemHeight = elem.outerHeight(),
|
959 |
-
marginLeft = parseCss( this, "marginLeft" ),
|
960 |
-
marginTop = parseCss( this, "marginTop" ),
|
961 |
-
collisionWidth = elemWidth + marginLeft + parseCss( this, "marginRight" ) +
|
962 |
-
scrollInfo.width,
|
963 |
-
collisionHeight = elemHeight + marginTop + parseCss( this, "marginBottom" ) +
|
964 |
-
scrollInfo.height,
|
965 |
-
position = $.extend( {}, basePosition ),
|
966 |
-
myOffset = getOffsets( offsets.my, elem.outerWidth(), elem.outerHeight() );
|
967 |
-
|
968 |
-
if ( options.my[ 0 ] === "right" ) {
|
969 |
-
position.left -= elemWidth;
|
970 |
-
} else if ( options.my[ 0 ] === "center" ) {
|
971 |
-
position.left -= elemWidth / 2;
|
972 |
-
}
|
973 |
-
|
974 |
-
if ( options.my[ 1 ] === "bottom" ) {
|
975 |
-
position.top -= elemHeight;
|
976 |
-
} else if ( options.my[ 1 ] === "center" ) {
|
977 |
-
position.top -= elemHeight / 2;
|
978 |
-
}
|
979 |
-
|
980 |
-
position.left += myOffset[ 0 ];
|
981 |
-
position.top += myOffset[ 1 ];
|
982 |
-
|
983 |
-
collisionPosition = {
|
984 |
-
marginLeft: marginLeft,
|
985 |
-
marginTop: marginTop
|
986 |
-
};
|
987 |
-
|
988 |
-
$.each( [ "left", "top" ], function( i, dir ) {
|
989 |
-
if ( $.ui.position[ collision[ i ] ] ) {
|
990 |
-
$.ui.position[ collision[ i ] ][ dir ]( position, {
|
991 |
-
targetWidth: targetWidth,
|
992 |
-
targetHeight: targetHeight,
|
993 |
-
elemWidth: elemWidth,
|
994 |
-
elemHeight: elemHeight,
|
995 |
-
collisionPosition: collisionPosition,
|
996 |
-
collisionWidth: collisionWidth,
|
997 |
-
collisionHeight: collisionHeight,
|
998 |
-
offset: [ atOffset[ 0 ] + myOffset[ 0 ], atOffset [ 1 ] + myOffset[ 1 ] ],
|
999 |
-
my: options.my,
|
1000 |
-
at: options.at,
|
1001 |
-
within: within,
|
1002 |
-
elem: elem
|
1003 |
-
} );
|
1004 |
-
}
|
1005 |
-
} );
|
1006 |
-
|
1007 |
-
if ( options.using ) {
|
1008 |
-
|
1009 |
-
// Adds feedback as second argument to using callback, if present
|
1010 |
-
using = function( props ) {
|
1011 |
-
var left = targetOffset.left - position.left,
|
1012 |
-
right = left + targetWidth - elemWidth,
|
1013 |
-
top = targetOffset.top - position.top,
|
1014 |
-
bottom = top + targetHeight - elemHeight,
|
1015 |
-
feedback = {
|
1016 |
-
target: {
|
1017 |
-
element: target,
|
1018 |
-
left: targetOffset.left,
|
1019 |
-
top: targetOffset.top,
|
1020 |
-
width: targetWidth,
|
1021 |
-
height: targetHeight
|
1022 |
-
},
|
1023 |
-
element: {
|
1024 |
-
element: elem,
|
1025 |
-
left: position.left,
|
1026 |
-
top: position.top,
|
1027 |
-
width: elemWidth,
|
1028 |
-
height: elemHeight
|
1029 |
-
},
|
1030 |
-
horizontal: right < 0 ? "left" : left > 0 ? "right" : "center",
|
1031 |
-
vertical: bottom < 0 ? "top" : top > 0 ? "bottom" : "middle"
|
1032 |
-
};
|
1033 |
-
if ( targetWidth < elemWidth && abs( left + right ) < targetWidth ) {
|
1034 |
-
feedback.horizontal = "center";
|
1035 |
-
}
|
1036 |
-
if ( targetHeight < elemHeight && abs( top + bottom ) < targetHeight ) {
|
1037 |
-
feedback.vertical = "middle";
|
1038 |
-
}
|
1039 |
-
if ( max( abs( left ), abs( right ) ) > max( abs( top ), abs( bottom ) ) ) {
|
1040 |
-
feedback.important = "horizontal";
|
1041 |
-
} else {
|
1042 |
-
feedback.important = "vertical";
|
1043 |
-
}
|
1044 |
-
options.using.call( this, props, feedback );
|
1045 |
-
};
|
1046 |
-
}
|
1047 |
-
|
1048 |
-
elem.offset( $.extend( position, { using: using } ) );
|
1049 |
-
} );
|
1050 |
-
};
|
1051 |
-
|
1052 |
-
$.ui.position = {
|
1053 |
-
fit: {
|
1054 |
-
left: function( position, data ) {
|
1055 |
-
var within = data.within,
|
1056 |
-
withinOffset = within.isWindow ? within.scrollLeft : within.offset.left,
|
1057 |
-
outerWidth = within.width,
|
1058 |
-
collisionPosLeft = position.left - data.collisionPosition.marginLeft,
|
1059 |
-
overLeft = withinOffset - collisionPosLeft,
|
1060 |
-
overRight = collisionPosLeft + data.collisionWidth - outerWidth - withinOffset,
|
1061 |
-
newOverRight;
|
1062 |
-
|
1063 |
-
// Element is wider than within
|
1064 |
-
if ( data.collisionWidth > outerWidth ) {
|
1065 |
-
|
1066 |
-
// Element is initially over the left side of within
|
1067 |
-
if ( overLeft > 0 && overRight <= 0 ) {
|
1068 |
-
newOverRight = position.left + overLeft + data.collisionWidth - outerWidth -
|
1069 |
-
withinOffset;
|
1070 |
-
position.left += overLeft - newOverRight;
|
1071 |
-
|
1072 |
-
// Element is initially over right side of within
|
1073 |
-
} else if ( overRight > 0 && overLeft <= 0 ) {
|
1074 |
-
position.left = withinOffset;
|
1075 |
-
|
1076 |
-
// Element is initially over both left and right sides of within
|
1077 |
-
} else {
|
1078 |
-
if ( overLeft > overRight ) {
|
1079 |
-
position.left = withinOffset + outerWidth - data.collisionWidth;
|
1080 |
-
} else {
|
1081 |
-
position.left = withinOffset;
|
1082 |
-
}
|
1083 |
-
}
|
1084 |
-
|
1085 |
-
// Too far left -> align with left edge
|
1086 |
-
} else if ( overLeft > 0 ) {
|
1087 |
-
position.left += overLeft;
|
1088 |
-
|
1089 |
-
// Too far right -> align with right edge
|
1090 |
-
} else if ( overRight > 0 ) {
|
1091 |
-
position.left -= overRight;
|
1092 |
-
|
1093 |
-
// Adjust based on position and margin
|
1094 |
-
} else {
|
1095 |
-
position.left = max( position.left - collisionPosLeft, position.left );
|
1096 |
-
}
|
1097 |
-
},
|
1098 |
-
top: function( position, data ) {
|
1099 |
-
var within = data.within,
|
1100 |
-
withinOffset = within.isWindow ? within.scrollTop : within.offset.top,
|
1101 |
-
outerHeight = data.within.height,
|
1102 |
-
collisionPosTop = position.top - data.collisionPosition.marginTop,
|
1103 |
-
overTop = withinOffset - collisionPosTop,
|
1104 |
-
overBottom = collisionPosTop + data.collisionHeight - outerHeight - withinOffset,
|
1105 |
-
newOverBottom;
|
1106 |
-
|
1107 |
-
// Element is taller than within
|
1108 |
-
if ( data.collisionHeight > outerHeight ) {
|
1109 |
-
|
1110 |
-
// Element is initially over the top of within
|
1111 |
-
if ( overTop > 0 && overBottom <= 0 ) {
|
1112 |
-
newOverBottom = position.top + overTop + data.collisionHeight - outerHeight -
|
1113 |
-
withinOffset;
|
1114 |
-
position.top += overTop - newOverBottom;
|
1115 |
-
|
1116 |
-
// Element is initially over bottom of within
|
1117 |
-
} else if ( overBottom > 0 && overTop <= 0 ) {
|
1118 |
-
position.top = withinOffset;
|
1119 |
-
|
1120 |
-
// Element is initially over both top and bottom of within
|
1121 |
-
} else {
|
1122 |
-
if ( overTop > overBottom ) {
|
1123 |
-
position.top = withinOffset + outerHeight - data.collisionHeight;
|
1124 |
-
} else {
|
1125 |
-
position.top = withinOffset;
|
1126 |
-
}
|
1127 |
-
}
|
1128 |
-
|
1129 |
-
// Too far up -> align with top
|
1130 |
-
} else if ( overTop > 0 ) {
|
1131 |
-
position.top += overTop;
|
1132 |
-
|
1133 |
-
// Too far down -> align with bottom edge
|
1134 |
-
} else if ( overBottom > 0 ) {
|
1135 |
-
position.top -= overBottom;
|
1136 |
-
|
1137 |
-
// Adjust based on position and margin
|
1138 |
-
} else {
|
1139 |
-
position.top = max( position.top - collisionPosTop, position.top );
|
1140 |
-
}
|
1141 |
-
}
|
1142 |
-
},
|
1143 |
-
flip: {
|
1144 |
-
left: function( position, data ) {
|
1145 |
-
var within = data.within,
|
1146 |
-
withinOffset = within.offset.left + within.scrollLeft,
|
1147 |
-
outerWidth = within.width,
|
1148 |
-
offsetLeft = within.isWindow ? within.scrollLeft : within.offset.left,
|
1149 |
-
collisionPosLeft = position.left - data.collisionPosition.marginLeft,
|
1150 |
-
overLeft = collisionPosLeft - offsetLeft,
|
1151 |
-
overRight = collisionPosLeft + data.collisionWidth - outerWidth - offsetLeft,
|
1152 |
-
myOffset = data.my[ 0 ] === "left" ?
|
1153 |
-
-data.elemWidth :
|
1154 |
-
data.my[ 0 ] === "right" ?
|
1155 |
-
data.elemWidth :
|
1156 |
-
0,
|
1157 |
-
atOffset = data.at[ 0 ] === "left" ?
|
1158 |
-
data.targetWidth :
|
1159 |
-
data.at[ 0 ] === "right" ?
|
1160 |
-
-data.targetWidth :
|
1161 |
-
0,
|
1162 |
-
offset = -2 * data.offset[ 0 ],
|
1163 |
-
newOverRight,
|
1164 |
-
newOverLeft;
|
1165 |
-
|
1166 |
-
if ( overLeft < 0 ) {
|
1167 |
-
newOverRight = position.left + myOffset + atOffset + offset + data.collisionWidth -
|
1168 |
-
outerWidth - withinOffset;
|
1169 |
-
if ( newOverRight < 0 || newOverRight < abs( overLeft ) ) {
|
1170 |
-
position.left += myOffset + atOffset + offset;
|
1171 |
-
}
|
1172 |
-
} else if ( overRight > 0 ) {
|
1173 |
-
newOverLeft = position.left - data.collisionPosition.marginLeft + myOffset +
|
1174 |
-
atOffset + offset - offsetLeft;
|
1175 |
-
if ( newOverLeft > 0 || abs( newOverLeft ) < overRight ) {
|
1176 |
-
position.left += myOffset + atOffset + offset;
|
1177 |
-
}
|
1178 |
-
}
|
1179 |
-
},
|
1180 |
-
top: function( position, data ) {
|
1181 |
-
var within = data.within,
|
1182 |
-
withinOffset = within.offset.top + within.scrollTop,
|
1183 |
-
outerHeight = within.height,
|
1184 |
-
offsetTop = within.isWindow ? within.scrollTop : within.offset.top,
|
1185 |
-
collisionPosTop = position.top - data.collisionPosition.marginTop,
|
1186 |
-
overTop = collisionPosTop - offsetTop,
|
1187 |
-
overBottom = collisionPosTop + data.collisionHeight - outerHeight - offsetTop,
|
1188 |
-
top = data.my[ 1 ] === "top",
|
1189 |
-
myOffset = top ?
|
1190 |
-
-data.elemHeight :
|
1191 |
-
data.my[ 1 ] === "bottom" ?
|
1192 |
-
data.elemHeight :
|
1193 |
-
0,
|
1194 |
-
atOffset = data.at[ 1 ] === "top" ?
|
1195 |
-
data.targetHeight :
|
1196 |
-
data.at[ 1 ] === "bottom" ?
|
1197 |
-
-data.targetHeight :
|
1198 |
-
0,
|
1199 |
-
offset = -2 * data.offset[ 1 ],
|
1200 |
-
newOverTop,
|
1201 |
-
newOverBottom;
|
1202 |
-
if ( overTop < 0 ) {
|
1203 |
-
newOverBottom = position.top + myOffset + atOffset + offset + data.collisionHeight -
|
1204 |
-
outerHeight - withinOffset;
|
1205 |
-
if ( newOverBottom < 0 || newOverBottom < abs( overTop ) ) {
|
1206 |
-
position.top += myOffset + atOffset + offset;
|
1207 |
-
}
|
1208 |
-
} else if ( overBottom > 0 ) {
|
1209 |
-
newOverTop = position.top - data.collisionPosition.marginTop + myOffset + atOffset +
|
1210 |
-
offset - offsetTop;
|
1211 |
-
if ( newOverTop > 0 || abs( newOverTop ) < overBottom ) {
|
1212 |
-
position.top += myOffset + atOffset + offset;
|
1213 |
-
}
|
1214 |
-
}
|
1215 |
-
}
|
1216 |
-
},
|
1217 |
-
flipfit: {
|
1218 |
-
left: function() {
|
1219 |
-
$.ui.position.flip.left.apply( this, arguments );
|
1220 |
-
$.ui.position.fit.left.apply( this, arguments );
|
1221 |
-
},
|
1222 |
-
top: function() {
|
1223 |
-
$.ui.position.flip.top.apply( this, arguments );
|
1224 |
-
$.ui.position.fit.top.apply( this, arguments );
|
1225 |
-
}
|
1226 |
-
}
|
1227 |
-
};
|
1228 |
-
|
1229 |
-
} )();
|
1230 |
-
|
1231 |
-
var position = $.ui.position;
|
1232 |
-
|
1233 |
-
|
1234 |
-
/*!
|
1235 |
-
* jQuery UI :data 1.12.1
|
1236 |
-
* http://jqueryui.com
|
1237 |
-
*
|
1238 |
-
* Copyright jQuery Foundation and other contributors
|
1239 |
-
* Released under the MIT license.
|
1240 |
-
* http://jquery.org/license
|
1241 |
-
*/
|
1242 |
-
|
1243 |
-
//>>label: :data Selector
|
1244 |
-
//>>group: Core
|
1245 |
-
//>>description: Selects elements which have data stored under the specified key.
|
1246 |
-
//>>docs: http://api.jqueryui.com/data-selector/
|
1247 |
-
|
1248 |
-
|
1249 |
-
var data = $.extend( $.expr[ ":" ], {
|
1250 |
-
data: $.expr.createPseudo ?
|
1251 |
-
$.expr.createPseudo( function( dataName ) {
|
1252 |
-
return function( elem ) {
|
1253 |
-
return !!$.data( elem, dataName );
|
1254 |
-
};
|
1255 |
-
} ) :
|
1256 |
-
|
1257 |
-
// Support: jQuery <1.8
|
1258 |
-
function( elem, i, match ) {
|
1259 |
-
return !!$.data( elem, match[ 3 ] );
|
1260 |
-
}
|
1261 |
-
} );
|
1262 |
-
|
1263 |
-
/*!
|
1264 |
-
* jQuery UI Disable Selection 1.12.1
|
1265 |
-
* http://jqueryui.com
|
1266 |
-
*
|
1267 |
-
* Copyright jQuery Foundation and other contributors
|
1268 |
-
* Released under the MIT license.
|
1269 |
-
* http://jquery.org/license
|
1270 |
-
*/
|
1271 |
-
|
1272 |
-
//>>label: disableSelection
|
1273 |
-
//>>group: Core
|
1274 |
-
//>>description: Disable selection of text content within the set of matched elements.
|
1275 |
-
//>>docs: http://api.jqueryui.com/disableSelection/
|
1276 |
-
|
1277 |
-
// This file is deprecated
|
1278 |
-
|
1279 |
-
|
1280 |
-
var disableSelection = $.fn.extend( {
|
1281 |
-
disableSelection: ( function() {
|
1282 |
-
var eventType = "onselectstart" in document.createElement( "div" ) ?
|
1283 |
-
"selectstart" :
|
1284 |
-
"mousedown";
|
1285 |
-
|
1286 |
-
return function() {
|
1287 |
-
return this.on( eventType + ".ui-disableSelection", function( event ) {
|
1288 |
-
event.preventDefault();
|
1289 |
-
} );
|
1290 |
-
};
|
1291 |
-
} )(),
|
1292 |
-
|
1293 |
-
enableSelection: function() {
|
1294 |
-
return this.off( ".ui-disableSelection" );
|
1295 |
-
}
|
1296 |
-
} );
|
1297 |
-
|
1298 |
-
|
1299 |
-
/*!
|
1300 |
-
* jQuery UI Effects 1.12.1
|
1301 |
-
* http://jqueryui.com
|
1302 |
-
*
|
1303 |
-
* Copyright jQuery Foundation and other contributors
|
1304 |
-
* Released under the MIT license.
|
1305 |
-
* http://jquery.org/license
|
1306 |
-
*/
|
1307 |
-
|
1308 |
-
//>>label: Effects Core
|
1309 |
-
//>>group: Effects
|
1310 |
-
// jscs:disable maximumLineLength
|
1311 |
-
//>>description: Extends the internal jQuery effects. Includes morphing and easing. Required by all other effects.
|
1312 |
-
// jscs:enable maximumLineLength
|
1313 |
-
//>>docs: http://api.jqueryui.com/category/effects-core/
|
1314 |
-
//>>demos: http://jqueryui.com/effect/
|
1315 |
-
|
1316 |
-
|
1317 |
-
|
1318 |
-
var dataSpace = "ui-effects-",
|
1319 |
-
dataSpaceStyle = "ui-effects-style",
|
1320 |
-
dataSpaceAnimated = "ui-effects-animated",
|
1321 |
-
|
1322 |
-
// Create a local jQuery because jQuery Color relies on it and the
|
1323 |
-
// global may not exist with AMD and a custom build (#10199)
|
1324 |
-
jQuery = $;
|
1325 |
-
|
1326 |
-
$.effects = {
|
1327 |
-
effect: {}
|
1328 |
-
};
|
1329 |
-
|
1330 |
-
/*!
|
1331 |
-
* jQuery Color Animations v2.1.2
|
1332 |
-
* https://github.com/jquery/jquery-color
|
1333 |
-
*
|
1334 |
-
* Copyright 2014 jQuery Foundation and other contributors
|
1335 |
-
* Released under the MIT license.
|
1336 |
-
* http://jquery.org/license
|
1337 |
-
*
|
1338 |
-
* Date: Wed Jan 16 08:47:09 2013 -0600
|
1339 |
-
*/
|
1340 |
-
( function( jQuery, undefined ) {
|
1341 |
-
|
1342 |
-
var stepHooks = "backgroundColor borderBottomColor borderLeftColor borderRightColor " +
|
1343 |
-
"borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor",
|
1344 |
-
|
1345 |
-
// Plusequals test for += 100 -= 100
|
1346 |
-
rplusequals = /^([\-+])=\s*(\d+\.?\d*)/,
|
1347 |
-
|
1348 |
-
// A set of RE's that can match strings and generate color tuples.
|
1349 |
-
stringParsers = [ {
|
1350 |
-
re: /rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,
|
1351 |
-
parse: function( execResult ) {
|
1352 |
-
return [
|
1353 |
-
execResult[ 1 ],
|
1354 |
-
execResult[ 2 ],
|
1355 |
-
execResult[ 3 ],
|
1356 |
-
execResult[ 4 ]
|
1357 |
-
];
|
1358 |
-
}
|
1359 |
-
}, {
|
1360 |
-
re: /rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,
|
1361 |
-
parse: function( execResult ) {
|
1362 |
-
return [
|
1363 |
-
execResult[ 1 ] * 2.55,
|
1364 |
-
execResult[ 2 ] * 2.55,
|
1365 |
-
execResult[ 3 ] * 2.55,
|
1366 |
-
execResult[ 4 ]
|
1367 |
-
];
|
1368 |
-
}
|
1369 |
-
}, {
|
1370 |
-
|
1371 |
-
// This regex ignores A-F because it's compared against an already lowercased string
|
1372 |
-
re: /#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,
|
1373 |
-
parse: function( execResult ) {
|
1374 |
-
return [
|
1375 |
-
parseInt( execResult[ 1 ], 16 ),
|
1376 |
-
parseInt( execResult[ 2 ], 16 ),
|
1377 |
-
parseInt( execResult[ 3 ], 16 )
|
1378 |
-
];
|
1379 |
-
}
|
1380 |
-
}, {
|
1381 |
-
|
1382 |
-
// This regex ignores A-F because it's compared against an already lowercased string
|
1383 |
-
re: /#([a-f0-9])([a-f0-9])([a-f0-9])/,
|
1384 |
-
parse: function( execResult ) {
|
1385 |
-
return [
|
1386 |
-
parseInt( execResult[ 1 ] + execResult[ 1 ], 16 ),
|
1387 |
-
parseInt( execResult[ 2 ] + execResult[ 2 ], 16 ),
|
1388 |
-
parseInt( execResult[ 3 ] + execResult[ 3 ], 16 )
|
1389 |
-
];
|
1390 |
-
}
|
1391 |
-
}, {
|
1392 |
-
re: /hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,
|
1393 |
-
space: "hsla",
|
1394 |
-
parse: function( execResult ) {
|
1395 |
-
return [
|
1396 |
-
execResult[ 1 ],
|
1397 |
-
execResult[ 2 ] / 100,
|
1398 |
-
execResult[ 3 ] / 100,
|
1399 |
-
execResult[ 4 ]
|
1400 |
-
];
|
1401 |
-
}
|
1402 |
-
} ],
|
1403 |
-
|
1404 |
-
// JQuery.Color( )
|
1405 |
-
color = jQuery.Color = function( color, green, blue, alpha ) {
|
1406 |
-
return new jQuery.Color.fn.parse( color, green, blue, alpha );
|
1407 |
-
},
|
1408 |
-
spaces = {
|
1409 |
-
rgba: {
|
1410 |
-
props: {
|
1411 |
-
red: {
|
1412 |
-
idx: 0,
|
1413 |
-
type: "byte"
|
1414 |
-
},
|
1415 |
-
green: {
|
1416 |
-
idx: 1,
|
1417 |
-
type: "byte"
|
1418 |
-
},
|
1419 |
-
blue: {
|
1420 |
-
idx: 2,
|
1421 |
-
type: "byte"
|
1422 |
-
}
|
1423 |
-
}
|
1424 |
-
},
|
1425 |
-
|
1426 |
-
hsla: {
|
1427 |
-
props: {
|
1428 |
-
hue: {
|
1429 |
-
idx: 0,
|
1430 |
-
type: "degrees"
|
1431 |
-
},
|
1432 |
-
saturation: {
|
1433 |
-
idx: 1,
|
1434 |
-
type: "percent"
|
1435 |
-
},
|
1436 |
-
lightness: {
|
1437 |
-
idx: 2,
|
1438 |
-
type: "percent"
|
1439 |
-
}
|
1440 |
-
}
|
1441 |
-
}
|
1442 |
-
},
|
1443 |
-
propTypes = {
|
1444 |
-
"byte": {
|
1445 |
-
floor: true,
|
1446 |
-
max: 255
|
1447 |
-
},
|
1448 |
-
"percent": {
|
1449 |
-
max: 1
|
1450 |
-
},
|
1451 |
-
"degrees": {
|
1452 |
-
mod: 360,
|
1453 |
-
floor: true
|
1454 |
-
}
|
1455 |
-
},
|
1456 |
-
support = color.support = {},
|
1457 |
-
|
1458 |
-
// Element for support tests
|
1459 |
-
supportElem = jQuery( "<p>" )[ 0 ],
|
1460 |
-
|
1461 |
-
// Colors = jQuery.Color.names
|
1462 |
-
colors,
|
1463 |
-
|
1464 |
-
// Local aliases of functions called often
|
1465 |
-
each = jQuery.each;
|
1466 |
-
|
1467 |
-
// Determine rgba support immediately
|
1468 |
-
supportElem.style.cssText = "background-color:rgba(1,1,1,.5)";
|
1469 |
-
support.rgba = supportElem.style.backgroundColor.indexOf( "rgba" ) > -1;
|
1470 |
-
|
1471 |
-
// Define cache name and alpha properties
|
1472 |
-
// for rgba and hsla spaces
|
1473 |
-
each( spaces, function( spaceName, space ) {
|
1474 |
-
space.cache = "_" + spaceName;
|
1475 |
-
space.props.alpha = {
|
1476 |
-
idx: 3,
|
1477 |
-
type: "percent",
|
1478 |
-
def: 1
|
1479 |
-
};
|
1480 |
-
} );
|
1481 |
-
|
1482 |
-
function clamp( value, prop, allowEmpty ) {
|
1483 |
-
var type = propTypes[ prop.type ] || {};
|
1484 |
-
|
1485 |
-
if ( value == null ) {
|
1486 |
-
return ( allowEmpty || !prop.def ) ? null : prop.def;
|
1487 |
-
}
|
1488 |
-
|
1489 |
-
// ~~ is an short way of doing floor for positive numbers
|
1490 |
-
value = type.floor ? ~~value : parseFloat( value );
|
1491 |
-
|
1492 |
-
// IE will pass in empty strings as value for alpha,
|
1493 |
-
// which will hit this case
|
1494 |
-
if ( isNaN( value ) ) {
|
1495 |
-
return prop.def;
|
1496 |
-
}
|
1497 |
-
|
1498 |
-
if ( type.mod ) {
|
1499 |
-
|
1500 |
-
// We add mod before modding to make sure that negatives values
|
1501 |
-
// get converted properly: -10 -> 350
|
1502 |
-
return ( value + type.mod ) % type.mod;
|
1503 |
-
}
|
1504 |
-
|
1505 |
-
// For now all property types without mod have min and max
|
1506 |
-
return 0 > value ? 0 : type.max < value ? type.max : value;
|
1507 |
-
}
|
1508 |
-
|
1509 |
-
function stringParse( string ) {
|
1510 |
-
var inst = color(),
|
1511 |
-
rgba = inst._rgba = [];
|
1512 |
-
|
1513 |
-
string = string.toLowerCase();
|
1514 |
-
|
1515 |
-
each( stringParsers, function( i, parser ) {
|
1516 |
-
var parsed,
|
1517 |
-
match = parser.re.exec( string ),
|
1518 |
-
values = match && parser.parse( match ),
|
1519 |
-
spaceName = parser.space || "rgba";
|
1520 |
-
|
1521 |
-
if ( values ) {
|
1522 |
-
parsed = inst[ spaceName ]( values );
|
1523 |
-
|
1524 |
-
// If this was an rgba parse the assignment might happen twice
|
1525 |
-
// oh well....
|
1526 |
-
inst[ spaces[ spaceName ].cache ] = parsed[ spaces[ spaceName ].cache ];
|
1527 |
-
rgba = inst._rgba = parsed._rgba;
|
1528 |
-
|
1529 |
-
// Exit each( stringParsers ) here because we matched
|
1530 |
-
return false;
|
1531 |
-
}
|
1532 |
-
} );
|
1533 |
-
|
1534 |
-
// Found a stringParser that handled it
|
1535 |
-
if ( rgba.length ) {
|
1536 |
-
|
1537 |
-
// If this came from a parsed string, force "transparent" when alpha is 0
|
1538 |
-
// chrome, (and maybe others) return "transparent" as rgba(0,0,0,0)
|
1539 |
-
if ( rgba.join() === "0,0,0,0" ) {
|
1540 |
-
jQuery.extend( rgba, colors.transparent );
|
1541 |
-
}
|
1542 |
-
return inst;
|
1543 |
-
}
|
1544 |
-
|
1545 |
-
// Named colors
|
1546 |
-
return colors[ string ];
|
1547 |
-
}
|
1548 |
-
|
1549 |
-
color.fn = jQuery.extend( color.prototype, {
|
1550 |
-
parse: function( red, green, blue, alpha ) {
|
1551 |
-
if ( red === undefined ) {
|
1552 |
-
this._rgba = [ null, null, null, null ];
|
1553 |
-
return this;
|
1554 |
-
}
|
1555 |
-
if ( red.jquery || red.nodeType ) {
|
1556 |
-
red = jQuery( red ).css( green );
|
1557 |
-
green = undefined;
|
1558 |
-
}
|
1559 |
-
|
1560 |
-
var inst = this,
|
1561 |
-
type = jQuery.type( red ),
|
1562 |
-
rgba = this._rgba = [];
|
1563 |
-
|
1564 |
-
// More than 1 argument specified - assume ( red, green, blue, alpha )
|
1565 |
-
if ( green !== undefined ) {
|
1566 |
-
red = [ red, green, blue, alpha ];
|
1567 |
-
type = "array";
|
1568 |
-
}
|
1569 |
-
|
1570 |
-
if ( type === "string" ) {
|
1571 |
-
return this.parse( stringParse( red ) || colors._default );
|
1572 |
-
}
|
1573 |
-
|
1574 |
-
if ( type === "array" ) {
|
1575 |
-
each( spaces.rgba.props, function( key, prop ) {
|
1576 |
-
rgba[ prop.idx ] = clamp( red[ prop.idx ], prop );
|
1577 |
-
} );
|
1578 |
-
return this;
|
1579 |
-
}
|
1580 |
-
|
1581 |
-
if ( type === "object" ) {
|
1582 |
-
if ( red instanceof color ) {
|
1583 |
-
each( spaces, function( spaceName, space ) {
|
1584 |
-
if ( red[ space.cache ] ) {
|
1585 |
-
inst[ space.cache ] = red[ space.cache ].slice();
|
1586 |
-
}
|
1587 |
-
} );
|
1588 |
-
} else {
|
1589 |
-
each( spaces, function( spaceName, space ) {
|
1590 |
-
var cache = space.cache;
|
1591 |
-
each( space.props, function( key, prop ) {
|
1592 |
-
|
1593 |
-
// If the cache doesn't exist, and we know how to convert
|
1594 |
-
if ( !inst[ cache ] && space.to ) {
|
1595 |
-
|
1596 |
-
// If the value was null, we don't need to copy it
|
1597 |
-
// if the key was alpha, we don't need to copy it either
|
1598 |
-
if ( key === "alpha" || red[ key ] == null ) {
|
1599 |
-
return;
|
1600 |
-
}
|
1601 |
-
inst[ cache ] = space.to( inst._rgba );
|
1602 |
-
}
|
1603 |
-
|
1604 |
-
// This is the only case where we allow nulls for ALL properties.
|
1605 |
-
// call clamp with alwaysAllowEmpty
|
1606 |
-
inst[ cache ][ prop.idx ] = clamp( red[ key ], prop, true );
|
1607 |
-
} );
|
1608 |
-
|
1609 |
-
// Everything defined but alpha?
|
1610 |
-
if ( inst[ cache ] &&
|
1611 |
-
jQuery.inArray( null, inst[ cache ].slice( 0, 3 ) ) < 0 ) {
|
1612 |
-
|
1613 |
-
// Use the default of 1
|
1614 |
-
inst[ cache ][ 3 ] = 1;
|
1615 |
-
if ( space.from ) {
|
1616 |
-
inst._rgba = space.from( inst[ cache ] );
|
1617 |
-
}
|
1618 |
-
}
|
1619 |
-
} );
|
1620 |
-
}
|
1621 |
-
return this;
|
1622 |
-
}
|
1623 |
-
},
|
1624 |
-
is: function( compare ) {
|
1625 |
-
var is = color( compare ),
|
1626 |
-
same = true,
|
1627 |
-
inst = this;
|
1628 |
-
|
1629 |
-
each( spaces, function( _, space ) {
|
1630 |
-
var localCache,
|
1631 |
-
isCache = is[ space.cache ];
|
1632 |
-
if ( isCache ) {
|
1633 |
-
localCache = inst[ space.cache ] || space.to && space.to( inst._rgba ) || [];
|
1634 |
-
each( space.props, function( _, prop ) {
|
1635 |
-
if ( isCache[ prop.idx ] != null ) {
|
1636 |
-
same = ( isCache[ prop.idx ] === localCache[ prop.idx ] );
|
1637 |
-
return same;
|
1638 |
-
}
|
1639 |
-
} );
|
1640 |
-
}
|
1641 |
-
return same;
|
1642 |
-
} );
|
1643 |
-
return same;
|
1644 |
-
},
|
1645 |
-
_space: function() {
|
1646 |
-
var used = [],
|
1647 |
-
inst = this;
|
1648 |
-
each( spaces, function( spaceName, space ) {
|
1649 |
-
if ( inst[ space.cache ] ) {
|
1650 |
-
used.push( spaceName );
|
1651 |
-
}
|
1652 |
-
} );
|
1653 |
-
return used.pop();
|
1654 |
-
},
|
1655 |
-
transition: function( other, distance ) {
|
1656 |
-
var end = color( other ),
|
1657 |
-
spaceName = end._space(),
|
1658 |
-
space = spaces[ spaceName ],
|
1659 |
-
startColor = this.alpha() === 0 ? color( "transparent" ) : this,
|
1660 |
-
start = startColor[ space.cache ] || space.to( startColor._rgba ),
|
1661 |
-
result = start.slice();
|
1662 |
-
|
1663 |
-
end = end[ space.cache ];
|
1664 |
-
each( space.props, function( key, prop ) {
|
1665 |
-
var index = prop.idx,
|
1666 |
-
startValue = start[ index ],
|
1667 |
-
endValue = end[ index ],
|
1668 |
-
type = propTypes[ prop.type ] || {};
|
1669 |
-
|
1670 |
-
// If null, don't override start value
|
1671 |
-
if ( endValue === null ) {
|
1672 |
-
return;
|
1673 |
-
}
|
1674 |
-
|
1675 |
-
// If null - use end
|
1676 |
-
if ( startValue === null ) {
|
1677 |
-
result[ index ] = endValue;
|
1678 |
-
} else {
|
1679 |
-
if ( type.mod ) {
|
1680 |
-
if ( endValue - startValue > type.mod / 2 ) {
|
1681 |
-
startValue += type.mod;
|
1682 |
-
} else if ( startValue - endValue > type.mod / 2 ) {
|
1683 |
-
startValue -= type.mod;
|
1684 |
-
}
|
1685 |
-
}
|
1686 |
-
result[ index ] = clamp( ( endValue - startValue ) * distance + startValue, prop );
|
1687 |
-
}
|
1688 |
-
} );
|
1689 |
-
return this[ spaceName ]( result );
|
1690 |
-
},
|
1691 |
-
blend: function( opaque ) {
|
1692 |
-
|
1693 |
-
// If we are already opaque - return ourself
|
1694 |
-
if ( this._rgba[ 3 ] === 1 ) {
|
1695 |
-
return this;
|
1696 |
-
}
|
1697 |
-
|
1698 |
-
var rgb = this._rgba.slice(),
|
1699 |
-
a = rgb.pop(),
|
1700 |
-
blend = color( opaque )._rgba;
|
1701 |
-
|
1702 |
-
return color( jQuery.map( rgb, function( v, i ) {
|
1703 |
-
return ( 1 - a ) * blend[ i ] + a * v;
|
1704 |
-
} ) );
|
1705 |
-
},
|
1706 |
-
toRgbaString: function() {
|
1707 |
-
var prefix = "rgba(",
|
1708 |
-
rgba = jQuery.map( this._rgba, function( v, i ) {
|
1709 |
-
return v == null ? ( i > 2 ? 1 : 0 ) : v;
|
1710 |
-
} );
|
1711 |
-
|
1712 |
-
if ( rgba[ 3 ] === 1 ) {
|
1713 |
-
rgba.pop();
|
1714 |
-
prefix = "rgb(";
|
1715 |
-
}
|
1716 |
-
|
1717 |
-
return prefix + rgba.join() + ")";
|
1718 |
-
},
|
1719 |
-
toHslaString: function() {
|
1720 |
-
var prefix = "hsla(",
|
1721 |
-
hsla = jQuery.map( this.hsla(), function( v, i ) {
|
1722 |
-
if ( v == null ) {
|
1723 |
-
v = i > 2 ? 1 : 0;
|
1724 |
-
}
|
1725 |
-
|
1726 |
-
// Catch 1 and 2
|
1727 |
-
if ( i && i < 3 ) {
|
1728 |
-
v = Math.round( v * 100 ) + "%";
|
1729 |
-
}
|
1730 |
-
return v;
|
1731 |
-
} );
|
1732 |
-
|
1733 |
-
if ( hsla[ 3 ] === 1 ) {
|
1734 |
-
hsla.pop();
|
1735 |
-
prefix = "hsl(";
|
1736 |
-
}
|
1737 |
-
return prefix + hsla.join() + ")";
|
1738 |
-
},
|
1739 |
-
toHexString: function( includeAlpha ) {
|
1740 |
-
var rgba = this._rgba.slice(),
|
1741 |
-
alpha = rgba.pop();
|
1742 |
-
|
1743 |
-
if ( includeAlpha ) {
|
1744 |
-
rgba.push( ~~( alpha * 255 ) );
|
1745 |
-
}
|
1746 |
-
|
1747 |
-
return "#" + jQuery.map( rgba, function( v ) {
|
1748 |
-
|
1749 |
-
// Default to 0 when nulls exist
|
1750 |
-
v = ( v || 0 ).toString( 16 );
|
1751 |
-
return v.length === 1 ? "0" + v : v;
|
1752 |
-
} ).join( "" );
|
1753 |
-
},
|
1754 |
-
toString: function() {
|
1755 |
-
return this._rgba[ 3 ] === 0 ? "transparent" : this.toRgbaString();
|
1756 |
-
}
|
1757 |
-
} );
|
1758 |
-
color.fn.parse.prototype = color.fn;
|
1759 |
-
|
1760 |
-
// Hsla conversions adapted from:
|
1761 |
-
// https://code.google.com/p/maashaack/source/browse/packages/graphics/trunk/src/graphics/colors/HUE2RGB.as?r=5021
|
1762 |
-
|
1763 |
-
function hue2rgb( p, q, h ) {
|
1764 |
-
h = ( h + 1 ) % 1;
|
1765 |
-
if ( h * 6 < 1 ) {
|
1766 |
-
return p + ( q - p ) * h * 6;
|
1767 |
-
}
|
1768 |
-
if ( h * 2 < 1 ) {
|
1769 |
-
return q;
|
1770 |
-
}
|
1771 |
-
if ( h * 3 < 2 ) {
|
1772 |
-
return p + ( q - p ) * ( ( 2 / 3 ) - h ) * 6;
|
1773 |
-
}
|
1774 |
-
return p;
|
1775 |
-
}
|
1776 |
-
|
1777 |
-
spaces.hsla.to = function( rgba ) {
|
1778 |
-
if ( rgba[ 0 ] == null || rgba[ 1 ] == null || rgba[ 2 ] == null ) {
|
1779 |
-
return [ null, null, null, rgba[ 3 ] ];
|
1780 |
-
}
|
1781 |
-
var r = rgba[ 0 ] / 255,
|
1782 |
-
g = rgba[ 1 ] / 255,
|
1783 |
-
b = rgba[ 2 ] / 255,
|
1784 |
-
a = rgba[ 3 ],
|
1785 |
-
max = Math.max( r, g, b ),
|
1786 |
-
min = Math.min( r, g, b ),
|
1787 |
-
diff = max - min,
|
1788 |
-
add = max + min,
|
1789 |
-
l = add * 0.5,
|
1790 |
-
h, s;
|
1791 |
-
|
1792 |
-
if ( min === max ) {
|
1793 |
-
h = 0;
|
1794 |
-
} else if ( r === max ) {
|
1795 |
-
h = ( 60 * ( g - b ) / diff ) + 360;
|
1796 |
-
} else if ( g === max ) {
|
1797 |
-
h = ( 60 * ( b - r ) / diff ) + 120;
|
1798 |
-
} else {
|
1799 |
-
h = ( 60 * ( r - g ) / diff ) + 240;
|
1800 |
-
}
|
1801 |
-
|
1802 |
-
// Chroma (diff) == 0 means greyscale which, by definition, saturation = 0%
|
1803 |
-
// otherwise, saturation is based on the ratio of chroma (diff) to lightness (add)
|
1804 |
-
if ( diff === 0 ) {
|
1805 |
-
s = 0;
|
1806 |
-
} else if ( l <= 0.5 ) {
|
1807 |
-
s = diff / add;
|
1808 |
-
} else {
|
1809 |
-
s = diff / ( 2 - add );
|
1810 |
-
}
|
1811 |
-
return [ Math.round( h ) % 360, s, l, a == null ? 1 : a ];
|
1812 |
-
};
|
1813 |
-
|
1814 |
-
spaces.hsla.from = function( hsla ) {
|
1815 |
-
if ( hsla[ 0 ] == null || hsla[ 1 ] == null || hsla[ 2 ] == null ) {
|
1816 |
-
return [ null, null, null, hsla[ 3 ] ];
|
1817 |
-
}
|
1818 |
-
var h = hsla[ 0 ] / 360,
|
1819 |
-
s = hsla[ 1 ],
|
1820 |
-
l = hsla[ 2 ],
|
1821 |
-
a = hsla[ 3 ],
|
1822 |
-
q = l <= 0.5 ? l * ( 1 + s ) : l + s - l * s,
|
1823 |
-
p = 2 * l - q;
|
1824 |
-
|
1825 |
-
return [
|
1826 |
-
Math.round( hue2rgb( p, q, h + ( 1 / 3 ) ) * 255 ),
|
1827 |
-
Math.round( hue2rgb( p, q, h ) * 255 ),
|
1828 |
-
Math.round( hue2rgb( p, q, h - ( 1 / 3 ) ) * 255 ),
|
1829 |
-
a
|
1830 |
-
];
|
1831 |
-
};
|
1832 |
-
|
1833 |
-
each( spaces, function( spaceName, space ) {
|
1834 |
-
var props = space.props,
|
1835 |
-
cache = space.cache,
|
1836 |
-
to = space.to,
|
1837 |
-
from = space.from;
|
1838 |
-
|
1839 |
-
// Makes rgba() and hsla()
|
1840 |
-
color.fn[ spaceName ] = function( value ) {
|
1841 |
-
|
1842 |
-
// Generate a cache for this space if it doesn't exist
|
1843 |
-
if ( to && !this[ cache ] ) {
|
1844 |
-
this[ cache ] = to( this._rgba );
|
1845 |
-
}
|
1846 |
-
if ( value === undefined ) {
|
1847 |
-
return this[ cache ].slice();
|
1848 |
-
}
|
1849 |
-
|
1850 |
-
var ret,
|
1851 |
-
type = jQuery.type( value ),
|
1852 |
-
arr = ( type === "array" || type === "object" ) ? value : arguments,
|
1853 |
-
local = this[ cache ].slice();
|
1854 |
-
|
1855 |
-
each( props, function( key, prop ) {
|
1856 |
-
var val = arr[ type === "object" ? key : prop.idx ];
|
1857 |
-
if ( val == null ) {
|
1858 |
-
val = local[ prop.idx ];
|
1859 |
-
}
|
1860 |
-
local[ prop.idx ] = clamp( val, prop );
|
1861 |
-
} );
|
1862 |
-
|
1863 |
-
if ( from ) {
|
1864 |
-
ret = color( from( local ) );
|
1865 |
-
ret[ cache ] = local;
|
1866 |
-
return ret;
|
1867 |
-
} else {
|
1868 |
-
return color( local );
|
1869 |
-
}
|
1870 |
-
};
|
1871 |
-
|
1872 |
-
// Makes red() green() blue() alpha() hue() saturation() lightness()
|
1873 |
-
each( props, function( key, prop ) {
|
1874 |
-
|
1875 |
-
// Alpha is included in more than one space
|
1876 |
-
if ( color.fn[ key ] ) {
|
1877 |
-
return;
|
1878 |
-
}
|
1879 |
-
color.fn[ key ] = function( value ) {
|
1880 |
-
var vtype = jQuery.type( value ),
|
1881 |
-
fn = ( key === "alpha" ? ( this._hsla ? "hsla" : "rgba" ) : spaceName ),
|
1882 |
-
local = this[ fn ](),
|
1883 |
-
cur = local[ prop.idx ],
|
1884 |
-
match;
|
1885 |
-
|
1886 |
-
if ( vtype === "undefined" ) {
|
1887 |
-
return cur;
|
1888 |
-
}
|
1889 |
-
|
1890 |
-
if ( vtype === "function" ) {
|
1891 |
-
value = value.call( this, cur );
|
1892 |
-
vtype = jQuery.type( value );
|
1893 |
-
}
|
1894 |
-
if ( value == null && prop.empty ) {
|
1895 |
-
return this;
|
1896 |
-
}
|
1897 |
-
if ( vtype === "string" ) {
|
1898 |
-
match = rplusequals.exec( value );
|
1899 |
-
if ( match ) {
|
1900 |
-
value = cur + parseFloat( match[ 2 ] ) * ( match[ 1 ] === "+" ? 1 : -1 );
|
1901 |
-
}
|
1902 |
-
}
|
1903 |
-
local[ prop.idx ] = value;
|
1904 |
-
return this[ fn ]( local );
|
1905 |
-
};
|
1906 |
-
} );
|
1907 |
-
} );
|
1908 |
-
|
1909 |
-
// Add cssHook and .fx.step function for each named hook.
|
1910 |
-
// accept a space separated string of properties
|
1911 |
-
color.hook = function( hook ) {
|
1912 |
-
var hooks = hook.split( " " );
|
1913 |
-
each( hooks, function( i, hook ) {
|
1914 |
-
jQuery.cssHooks[ hook ] = {
|
1915 |
-
set: function( elem, value ) {
|
1916 |
-
var parsed, curElem,
|
1917 |
-
backgroundColor = "";
|
1918 |
-
|
1919 |
-
if ( value !== "transparent" && ( jQuery.type( value ) !== "string" ||
|
1920 |
-
( parsed = stringParse( value ) ) ) ) {
|
1921 |
-
value = color( parsed || value );
|
1922 |
-
if ( !support.rgba && value._rgba[ 3 ] !== 1 ) {
|
1923 |
-
curElem = hook === "backgroundColor" ? elem.parentNode : elem;
|
1924 |
-
while (
|
1925 |
-
( backgroundColor === "" || backgroundColor === "transparent" ) &&
|
1926 |
-
curElem && curElem.style
|
1927 |
-
) {
|
1928 |
-
try {
|
1929 |
-
backgroundColor = jQuery.css( curElem, "backgroundColor" );
|
1930 |
-
curElem = curElem.parentNode;
|
1931 |
-
} catch ( e ) {
|
1932 |
-
}
|
1933 |
-
}
|
1934 |
-
|
1935 |
-
value = value.blend( backgroundColor && backgroundColor !== "transparent" ?
|
1936 |
-
backgroundColor :
|
1937 |
-
"_default" );
|
1938 |
-
}
|
1939 |
-
|
1940 |
-
value = value.toRgbaString();
|
1941 |
-
}
|
1942 |
-
try {
|
1943 |
-
elem.style[ hook ] = value;
|
1944 |
-
} catch ( e ) {
|
1945 |
-
|
1946 |
-
// Wrapped to prevent IE from throwing errors on "invalid" values like
|
1947 |
-
// 'auto' or 'inherit'
|
1948 |
-
}
|
1949 |
-
}
|
1950 |
-
};
|
1951 |
-
jQuery.fx.step[ hook ] = function( fx ) {
|
1952 |
-
if ( !fx.colorInit ) {
|
1953 |
-
fx.start = color( fx.elem, hook );
|
1954 |
-
fx.end = color( fx.end );
|
1955 |
-
fx.colorInit = true;
|
1956 |
-
}
|
1957 |
-
jQuery.cssHooks[ hook ].set( fx.elem, fx.start.transition( fx.end, fx.pos ) );
|
1958 |
-
};
|
1959 |
-
} );
|
1960 |
-
|
1961 |
-
};
|
1962 |
-
|
1963 |
-
color.hook( stepHooks );
|
1964 |
-
|
1965 |
-
jQuery.cssHooks.borderColor = {
|
1966 |
-
expand: function( value ) {
|
1967 |
-
var expanded = {};
|
1968 |
-
|
1969 |
-
each( [ "Top", "Right", "Bottom", "Left" ], function( i, part ) {
|
1970 |
-
expanded[ "border" + part + "Color" ] = value;
|
1971 |
-
} );
|
1972 |
-
return expanded;
|
1973 |
-
}
|
1974 |
-
};
|
1975 |
-
|
1976 |
-
// Basic color names only.
|
1977 |
-
// Usage of any of the other color names requires adding yourself or including
|
1978 |
-
// jquery.color.svg-names.js.
|
1979 |
-
colors = jQuery.Color.names = {
|
1980 |
-
|
1981 |
-
// 4.1. Basic color keywords
|
1982 |
-
aqua: "#00ffff",
|
1983 |
-
black: "#000000",
|
1984 |
-
blue: "#0000ff",
|
1985 |
-
fuchsia: "#ff00ff",
|
1986 |
-
gray: "#808080",
|
1987 |
-
green: "#008000",
|
1988 |
-
lime: "#00ff00",
|
1989 |
-
maroon: "#800000",
|
1990 |
-
navy: "#000080",
|
1991 |
-
olive: "#808000",
|
1992 |
-
purple: "#800080",
|
1993 |
-
red: "#ff0000",
|
1994 |
-
silver: "#c0c0c0",
|
1995 |
-
teal: "#008080",
|
1996 |
-
white: "#ffffff",
|
1997 |
-
yellow: "#ffff00",
|
1998 |
-
|
1999 |
-
// 4.2.3. "transparent" color keyword
|
2000 |
-
transparent: [ null, null, null, 0 ],
|
2001 |
-
|
2002 |
-
_default: "#ffffff"
|
2003 |
-
};
|
2004 |
-
|
2005 |
-
} )( jQuery );
|
2006 |
-
|
2007 |
-
/******************************************************************************/
|
2008 |
-
/****************************** CLASS ANIMATIONS ******************************/
|
2009 |
-
/******************************************************************************/
|
2010 |
-
( function() {
|
2011 |
-
|
2012 |
-
var classAnimationActions = [ "add", "remove", "toggle" ],
|
2013 |
-
shorthandStyles = {
|
2014 |
-
border: 1,
|
2015 |
-
borderBottom: 1,
|
2016 |
-
borderColor: 1,
|
2017 |
-
borderLeft: 1,
|
2018 |
-
borderRight: 1,
|
2019 |
-
borderTop: 1,
|
2020 |
-
borderWidth: 1,
|
2021 |
-
margin: 1,
|
2022 |
-
padding: 1
|
2023 |
-
};
|
2024 |
-
|
2025 |
-
$.each(
|
2026 |
-
[ "borderLeftStyle", "borderRightStyle", "borderBottomStyle", "borderTopStyle" ],
|
2027 |
-
function( _, prop ) {
|
2028 |
-
$.fx.step[ prop ] = function( fx ) {
|
2029 |
-
if ( fx.end !== "none" && !fx.setAttr || fx.pos === 1 && !fx.setAttr ) {
|
2030 |
-
jQuery.style( fx.elem, prop, fx.end );
|
2031 |
-
fx.setAttr = true;
|
2032 |
-
}
|
2033 |
-
};
|
2034 |
-
}
|
2035 |
-
);
|
2036 |
-
|
2037 |
-
function getElementStyles( elem ) {
|
2038 |
-
var key, len,
|
2039 |
-
style = elem.ownerDocument.defaultView ?
|
2040 |
-
elem.ownerDocument.defaultView.getComputedStyle( elem, null ) :
|
2041 |
-
elem.currentStyle,
|
2042 |
-
styles = {};
|
2043 |
-
|
2044 |
-
if ( style && style.length && style[ 0 ] && style[ style[ 0 ] ] ) {
|
2045 |
-
len = style.length;
|
2046 |
-
while ( len-- ) {
|
2047 |
-
key = style[ len ];
|
2048 |
-
if ( typeof style[ key ] === "string" ) {
|
2049 |
-
styles[ $.camelCase( key ) ] = style[ key ];
|
2050 |
-
}
|
2051 |
-
}
|
2052 |
-
|
2053 |
-
// Support: Opera, IE <9
|
2054 |
-
} else {
|
2055 |
-
for ( key in style ) {
|
2056 |
-
if ( typeof style[ key ] === "string" ) {
|
2057 |
-
styles[ key ] = style[ key ];
|
2058 |
-
}
|
2059 |
-
}
|
2060 |
-
}
|
2061 |
-
|
2062 |
-
return styles;
|
2063 |
-
}
|
2064 |
-
|
2065 |
-
function styleDifference( oldStyle, newStyle ) {
|
2066 |
-
var diff = {},
|
2067 |
-
name, value;
|
2068 |
-
|
2069 |
-
for ( name in newStyle ) {
|
2070 |
-
value = newStyle[ name ];
|
2071 |
-
if ( oldStyle[ name ] !== value ) {
|
2072 |
-
if ( !shorthandStyles[ name ] ) {
|
2073 |
-
if ( $.fx.step[ name ] || !isNaN( parseFloat( value ) ) ) {
|
2074 |
-
diff[ name ] = value;
|
2075 |
-
}
|
2076 |
-
}
|
2077 |
-
}
|
2078 |
-
}
|
2079 |
-
|
2080 |
-
return diff;
|
2081 |
-
}
|
2082 |
-
|
2083 |
-
// Support: jQuery <1.8
|
2084 |
-
if ( !$.fn.addBack ) {
|
2085 |
-
$.fn.addBack = function( selector ) {
|
2086 |
-
return this.add( selector == null ?
|
2087 |
-
this.prevObject : this.prevObject.filter( selector )
|
2088 |
-
);
|
2089 |
-
};
|
2090 |
-
}
|
2091 |
-
|
2092 |
-
$.effects.animateClass = function( value, duration, easing, callback ) {
|
2093 |
-
var o = $.speed( duration, easing, callback );
|
2094 |
-
|
2095 |
-
return this.queue( function() {
|
2096 |
-
var animated = $( this ),
|
2097 |
-
baseClass = animated.attr( "class" ) || "",
|
2098 |
-
applyClassChange,
|
2099 |
-
allAnimations = o.children ? animated.find( "*" ).addBack() : animated;
|
2100 |
-
|
2101 |
-
// Map the animated objects to store the original styles.
|
2102 |
-
allAnimations = allAnimations.map( function() {
|
2103 |
-
var el = $( this );
|
2104 |
-
return {
|
2105 |
-
el: el,
|
2106 |
-
start: getElementStyles( this )
|
2107 |
-
};
|
2108 |
-
} );
|
2109 |
-
|
2110 |
-
// Apply class change
|
2111 |
-
applyClassChange = function() {
|
2112 |
-
$.each( classAnimationActions, function( i, action ) {
|
2113 |
-
if ( value[ action ] ) {
|
2114 |
-
animated[ action + "Class" ]( value[ action ] );
|
2115 |
-
}
|
2116 |
-
} );
|
2117 |
-
};
|
2118 |
-
applyClassChange();
|
2119 |
-
|
2120 |
-
// Map all animated objects again - calculate new styles and diff
|
2121 |
-
allAnimations = allAnimations.map( function() {
|
2122 |
-
this.end = getElementStyles( this.el[ 0 ] );
|
2123 |
-
this.diff = styleDifference( this.start, this.end );
|
2124 |
-
return this;
|
2125 |
-
} );
|
2126 |
-
|
2127 |
-
// Apply original class
|
2128 |
-
animated.attr( "class", baseClass );
|
2129 |
-
|
2130 |
-
// Map all animated objects again - this time collecting a promise
|
2131 |
-
allAnimations = allAnimations.map( function() {
|
2132 |
-
var styleInfo = this,
|
2133 |
-
dfd = $.Deferred(),
|
2134 |
-
opts = $.extend( {}, o, {
|
2135 |
-
queue: false,
|
2136 |
-
complete: function() {
|
2137 |
-
dfd.resolve( styleInfo );
|
2138 |
-
}
|
2139 |
-
} );
|
2140 |
-
|
2141 |
-
this.el.animate( this.diff, opts );
|
2142 |
-
return dfd.promise();
|
2143 |
-
} );
|
2144 |
-
|
2145 |
-
// Once all animations have completed:
|
2146 |
-
$.when.apply( $, allAnimations.get() ).done( function() {
|
2147 |
-
|
2148 |
-
// Set the final class
|
2149 |
-
applyClassChange();
|
2150 |
-
|
2151 |
-
// For each animated element,
|
2152 |
-
// clear all css properties that were animated
|
2153 |
-
$.each( arguments, function() {
|
2154 |
-
var el = this.el;
|
2155 |
-
$.each( this.diff, function( key ) {
|
2156 |
-
el.css( key, "" );
|
2157 |
-
} );
|
2158 |
-
} );
|
2159 |
-
|
2160 |
-
// This is guarnteed to be there if you use jQuery.speed()
|
2161 |
-
// it also handles dequeuing the next anim...
|
2162 |
-
o.complete.call( animated[ 0 ] );
|
2163 |
-
} );
|
2164 |
-
} );
|
2165 |
-
};
|
2166 |
-
|
2167 |
-
$.fn.extend( {
|
2168 |
-
addClass: ( function( orig ) {
|
2169 |
-
return function( classNames, speed, easing, callback ) {
|
2170 |
-
return speed ?
|
2171 |
-
$.effects.animateClass.call( this,
|
2172 |
-
{ add: classNames }, speed, easing, callback ) :
|
2173 |
-
orig.apply( this, arguments );
|
2174 |
-
};
|
2175 |
-
} )( $.fn.addClass ),
|
2176 |
-
|
2177 |
-
removeClass: ( function( orig ) {
|
2178 |
-
return function( classNames, speed, easing, callback ) {
|
2179 |
-
return arguments.length > 1 ?
|
2180 |
-
$.effects.animateClass.call( this,
|
2181 |
-
{ remove: classNames }, speed, easing, callback ) :
|
2182 |
-
orig.apply( this, arguments );
|
2183 |
-
};
|
2184 |
-
} )( $.fn.removeClass ),
|
2185 |
-
|
2186 |
-
toggleClass: ( function( orig ) {
|
2187 |
-
return function( classNames, force, speed, easing, callback ) {
|
2188 |
-
if ( typeof force === "boolean" || force === undefined ) {
|
2189 |
-
if ( !speed ) {
|
2190 |
-
|
2191 |
-
// Without speed parameter
|
2192 |
-
return orig.apply( this, arguments );
|
2193 |
-
} else {
|
2194 |
-
return $.effects.animateClass.call( this,
|
2195 |
-
( force ? { add: classNames } : { remove: classNames } ),
|
2196 |
-
speed, easing, callback );
|
2197 |
-
}
|
2198 |
-
} else {
|
2199 |
-
|
2200 |
-
// Without force parameter
|
2201 |
-
return $.effects.animateClass.call( this,
|
2202 |
-
{ toggle: classNames }, force, speed, easing );
|
2203 |
-
}
|
2204 |
-
};
|
2205 |
-
} )( $.fn.toggleClass ),
|
2206 |
-
|
2207 |
-
switchClass: function( remove, add, speed, easing, callback ) {
|
2208 |
-
return $.effects.animateClass.call( this, {
|
2209 |
-
add: add,
|
2210 |
-
remove: remove
|
2211 |
-
}, speed, easing, callback );
|
2212 |
-
}
|
2213 |
-
} );
|
2214 |
-
|
2215 |
-
} )();
|
2216 |
-
|
2217 |
-
/******************************************************************************/
|
2218 |
-
/*********************************** EFFECTS **********************************/
|
2219 |
-
/******************************************************************************/
|
2220 |
-
|
2221 |
-
( function() {
|
2222 |
-
|
2223 |
-
if ( $.expr && $.expr.filters && $.expr.filters.animated ) {
|
2224 |
-
$.expr.filters.animated = ( function( orig ) {
|
2225 |
-
return function( elem ) {
|
2226 |
-
return !!$( elem ).data( dataSpaceAnimated ) || orig( elem );
|
2227 |
-
};
|
2228 |
-
} )( $.expr.filters.animated );
|
2229 |
-
}
|
2230 |
-
|
2231 |
-
if ( $.uiBackCompat !== false ) {
|
2232 |
-
$.extend( $.effects, {
|
2233 |
-
|
2234 |
-
// Saves a set of properties in a data storage
|
2235 |
-
save: function( element, set ) {
|
2236 |
-
var i = 0, length = set.length;
|
2237 |
-
for ( ; i < length; i++ ) {
|
2238 |
-
if ( set[ i ] !== null ) {
|
2239 |
-
element.data( dataSpace + set[ i ], element[ 0 ].style[ set[ i ] ] );
|
2240 |
-
}
|
2241 |
-
}
|
2242 |
-
},
|
2243 |
-
|
2244 |
-
// Restores a set of previously saved properties from a data storage
|
2245 |
-
restore: function( element, set ) {
|
2246 |
-
var val, i = 0, length = set.length;
|
2247 |
-
for ( ; i < length; i++ ) {
|
2248 |
-
if ( set[ i ] !== null ) {
|
2249 |
-
val = element.data( dataSpace + set[ i ] );
|
2250 |
-
element.css( set[ i ], val );
|
2251 |
-
}
|
2252 |
-
}
|
2253 |
-
},
|
2254 |
-
|
2255 |
-
setMode: function( el, mode ) {
|
2256 |
-
if ( mode === "toggle" ) {
|
2257 |
-
mode = el.is( ":hidden" ) ? "show" : "hide";
|
2258 |
-
}
|
2259 |
-
return mode;
|
2260 |
-
},
|
2261 |
-
|
2262 |
-
// Wraps the element around a wrapper that copies position properties
|
2263 |
-
createWrapper: function( element ) {
|
2264 |
-
|
2265 |
-
// If the element is already wrapped, return it
|
2266 |
-
if ( element.parent().is( ".ui-effects-wrapper" ) ) {
|
2267 |
-
return element.parent();
|
2268 |
-
}
|
2269 |
-
|
2270 |
-
// Wrap the element
|
2271 |
-
var props = {
|
2272 |
-
width: element.outerWidth( true ),
|
2273 |
-
height: element.outerHeight( true ),
|
2274 |
-
"float": element.css( "float" )
|
2275 |
-
},
|
2276 |
-
wrapper = $( "<div></div>" )
|
2277 |
-
.addClass( "ui-effects-wrapper" )
|
2278 |
-
.css( {
|
2279 |
-
fontSize: "100%",
|
2280 |
-
background: "transparent",
|
2281 |
-
border: "none",
|
2282 |
-
margin: 0,
|
2283 |
-
padding: 0
|
2284 |
-
} ),
|
2285 |
-
|
2286 |
-
// Store the size in case width/height are defined in % - Fixes #5245
|
2287 |
-
size = {
|
2288 |
-
width: element.width(),
|
2289 |
-
height: element.height()
|
2290 |
-
},
|
2291 |
-
active = document.activeElement;
|
2292 |
-
|
2293 |
-
// Support: Firefox
|
2294 |
-
// Firefox incorrectly exposes anonymous content
|
2295 |
-
// https://bugzilla.mozilla.org/show_bug.cgi?id=561664
|
2296 |
-
try {
|
2297 |
-
active.id;
|
2298 |
-
} catch ( e ) {
|
2299 |
-
active = document.body;
|
2300 |
-
}
|
2301 |
-
|
2302 |
-
element.wrap( wrapper );
|
2303 |
-
|
2304 |
-
// Fixes #7595 - Elements lose focus when wrapped.
|
2305 |
-
if ( element[ 0 ] === active || $.contains( element[ 0 ], active ) ) {
|
2306 |
-
$( active ).trigger( "focus" );
|
2307 |
-
}
|
2308 |
-
|
2309 |
-
// Hotfix for jQuery 1.4 since some change in wrap() seems to actually
|
2310 |
-
// lose the reference to the wrapped element
|
2311 |
-
wrapper = element.parent();
|
2312 |
-
|
2313 |
-
// Transfer positioning properties to the wrapper
|
2314 |
-
if ( element.css( "position" ) === "static" ) {
|
2315 |
-
wrapper.css( { position: "relative" } );
|
2316 |
-
element.css( { position: "relative" } );
|
2317 |
-
} else {
|
2318 |
-
$.extend( props, {
|
2319 |
-
position: element.css( "position" ),
|
2320 |
-
zIndex: element.css( "z-index" )
|
2321 |
-
} );
|
2322 |
-
$.each( [ "top", "left", "bottom", "right" ], function( i, pos ) {
|
2323 |
-
props[ pos ] = element.css( pos );
|
2324 |
-
if ( isNaN( parseInt( props[ pos ], 10 ) ) ) {
|
2325 |
-
props[ pos ] = "auto";
|
2326 |
-
}
|
2327 |
-
} );
|
2328 |
-
element.css( {
|
2329 |
-
position: "relative",
|
2330 |
-
top: 0,
|
2331 |
-
left: 0,
|
2332 |
-
right: "auto",
|
2333 |
-
bottom: "auto"
|
2334 |
-
} );
|
2335 |
-
}
|
2336 |
-
element.css( size );
|
2337 |
-
|
2338 |
-
return wrapper.css( props ).show();
|
2339 |
-
},
|
2340 |
-
|
2341 |
-
removeWrapper: function( element ) {
|
2342 |
-
var active = document.activeElement;
|
2343 |
-
|
2344 |
-
if ( element.parent().is( ".ui-effects-wrapper" ) ) {
|
2345 |
-
element.parent().replaceWith( element );
|
2346 |
-
|
2347 |
-
// Fixes #7595 - Elements lose focus when wrapped.
|
2348 |
-
if ( element[ 0 ] === active || $.contains( element[ 0 ], active ) ) {
|
2349 |
-
$( active ).trigger( "focus" );
|
2350 |
-
}
|
2351 |
-
}
|
2352 |
-
|
2353 |
-
return element;
|
2354 |
-
}
|
2355 |
-
} );
|
2356 |
-
}
|
2357 |
-
|
2358 |
-
$.extend( $.effects, {
|
2359 |
-
version: "1.12.1",
|
2360 |
-
|
2361 |
-
define: function( name, mode, effect ) {
|
2362 |
-
if ( !effect ) {
|
2363 |
-
effect = mode;
|
2364 |
-
mode = "effect";
|
2365 |
-
}
|
2366 |
-
|
2367 |
-
$.effects.effect[ name ] = effect;
|
2368 |
-
$.effects.effect[ name ].mode = mode;
|
2369 |
-
|
2370 |
-
return effect;
|
2371 |
-
},
|
2372 |
-
|
2373 |
-
scaledDimensions: function( element, percent, direction ) {
|
2374 |
-
if ( percent === 0 ) {
|
2375 |
-
return {
|
2376 |
-
height: 0,
|
2377 |
-
width: 0,
|
2378 |
-
outerHeight: 0,
|
2379 |
-
outerWidth: 0
|
2380 |
-
};
|
2381 |
-
}
|
2382 |
-
|
2383 |
-
var x = direction !== "horizontal" ? ( ( percent || 100 ) / 100 ) : 1,
|
2384 |
-
y = direction !== "vertical" ? ( ( percent || 100 ) / 100 ) : 1;
|
2385 |
-
|
2386 |
-
return {
|
2387 |
-
height: element.height() * y,
|
2388 |
-
width: element.width() * x,
|
2389 |
-
outerHeight: element.outerHeight() * y,
|
2390 |
-
outerWidth: element.outerWidth() * x
|
2391 |
-
};
|
2392 |
-
|
2393 |
-
},
|
2394 |
-
|
2395 |
-
clipToBox: function( animation ) {
|
2396 |
-
return {
|
2397 |
-
width: animation.clip.right - animation.clip.left,
|
2398 |
-
height: animation.clip.bottom - animation.clip.top,
|
2399 |
-
left: animation.clip.left,
|
2400 |
-
top: animation.clip.top
|
2401 |
-
};
|
2402 |
-
},
|
2403 |
-
|
2404 |
-
// Injects recently queued functions to be first in line (after "inprogress")
|
2405 |
-
unshift: function( element, queueLength, count ) {
|
2406 |
-
var queue = element.queue();
|
2407 |
-
|
2408 |
-
if ( queueLength > 1 ) {
|
2409 |
-
queue.splice.apply( queue,
|
2410 |
-
[ 1, 0 ].concat( queue.splice( queueLength, count ) ) );
|
2411 |
-
}
|
2412 |
-
element.dequeue();
|
2413 |
-
},
|
2414 |
-
|
2415 |
-
saveStyle: function( element ) {
|
2416 |
-
element.data( dataSpaceStyle, element[ 0 ].style.cssText );
|
2417 |
-
},
|
2418 |
-
|
2419 |
-
restoreStyle: function( element ) {
|
2420 |
-
element[ 0 ].style.cssText = element.data( dataSpaceStyle ) || "";
|
2421 |
-
element.removeData( dataSpaceStyle );
|
2422 |
-
},
|
2423 |
-
|
2424 |
-
mode: function( element, mode ) {
|
2425 |
-
var hidden = element.is( ":hidden" );
|
2426 |
-
|
2427 |
-
if ( mode === "toggle" ) {
|
2428 |
-
mode = hidden ? "show" : "hide";
|
2429 |
-
}
|
2430 |
-
if ( hidden ? mode === "hide" : mode === "show" ) {
|
2431 |
-
mode = "none";
|
2432 |
-
}
|
2433 |
-
return mode;
|
2434 |
-
},
|
2435 |
-
|
2436 |
-
// Translates a [top,left] array into a baseline value
|
2437 |
-
getBaseline: function( origin, original ) {
|
2438 |
-
var y, x;
|
2439 |
-
|
2440 |
-
switch ( origin[ 0 ] ) {
|
2441 |
-
case "top":
|
2442 |
-
y = 0;
|
2443 |
-
break;
|
2444 |
-
case "middle":
|
2445 |
-
y = 0.5;
|
2446 |
-
break;
|
2447 |
-
case "bottom":
|
2448 |
-
y = 1;
|
2449 |
-
break;
|
2450 |
-
default:
|
2451 |
-
y = origin[ 0 ] / original.height;
|
2452 |
-
}
|
2453 |
-
|
2454 |
-
switch ( origin[ 1 ] ) {
|
2455 |
-
case "left":
|
2456 |
-
x = 0;
|
2457 |
-
break;
|
2458 |
-
case "center":
|
2459 |
-
x = 0.5;
|
2460 |
-
break;
|
2461 |
-
case "right":
|
2462 |
-
x = 1;
|
2463 |
-
break;
|
2464 |
-
default:
|
2465 |
-
x = origin[ 1 ] / original.width;
|
2466 |
-
}
|
2467 |
-
|
2468 |
-
return {
|
2469 |
-
x: x,
|
2470 |
-
y: y
|
2471 |
-
};
|
2472 |
-
},
|
2473 |
-
|
2474 |
-
// Creates a placeholder element so that the original element can be made absolute
|
2475 |
-
createPlaceholder: function( element ) {
|
2476 |
-
var placeholder,
|
2477 |
-
cssPosition = element.css( "position" ),
|
2478 |
-
position = element.position();
|
2479 |
-
|
2480 |
-
// Lock in margins first to account for form elements, which
|
2481 |
-
// will change margin if you explicitly set height
|
2482 |
-
// see: http://jsfiddle.net/JZSMt/3/ https://bugs.webkit.org/show_bug.cgi?id=107380
|
2483 |
-
// Support: Safari
|
2484 |
-
element.css( {
|
2485 |
-
marginTop: element.css( "marginTop" ),
|
2486 |
-
marginBottom: element.css( "marginBottom" ),
|
2487 |
-
marginLeft: element.css( "marginLeft" ),
|
2488 |
-
marginRight: element.css( "marginRight" )
|
2489 |
-
} )
|
2490 |
-
.outerWidth( element.outerWidth() )
|
2491 |
-
.outerHeight( element.outerHeight() );
|
2492 |
-
|
2493 |
-
if ( /^(static|relative)/.test( cssPosition ) ) {
|
2494 |
-
cssPosition = "absolute";
|
2495 |
-
|
2496 |
-
placeholder = $( "<" + element[ 0 ].nodeName + ">" ).insertAfter( element ).css( {
|
2497 |
-
|
2498 |
-
// Convert inline to inline block to account for inline elements
|
2499 |
-
// that turn to inline block based on content (like img)
|
2500 |
-
display: /^(inline|ruby)/.test( element.css( "display" ) ) ?
|
2501 |
-
"inline-block" :
|
2502 |
-
"block",
|
2503 |
-
visibility: "hidden",
|
2504 |
-
|
2505 |
-
// Margins need to be set to account for margin collapse
|
2506 |
-
marginTop: element.css( "marginTop" ),
|
2507 |
-
marginBottom: element.css( "marginBottom" ),
|
2508 |
-
marginLeft: element.css( "marginLeft" ),
|
2509 |
-
marginRight: element.css( "marginRight" ),
|
2510 |
-
"float": element.css( "float" )
|
2511 |
-
} )
|
2512 |
-
.outerWidth( element.outerWidth() )
|
2513 |
-
.outerHeight( element.outerHeight() )
|
2514 |
-
.addClass( "ui-effects-placeholder" );
|
2515 |
-
|
2516 |
-
element.data( dataSpace + "placeholder", placeholder );
|
2517 |
-
}
|
2518 |
-
|
2519 |
-
element.css( {
|
2520 |
-
position: cssPosition,
|
2521 |
-
left: position.left,
|
2522 |
-
top: position.top
|
2523 |
-
} );
|
2524 |
-
|
2525 |
-
return placeholder;
|
2526 |
-
},
|
2527 |
-
|
2528 |
-
removePlaceholder: function( element ) {
|
2529 |
-
var dataKey = dataSpace + "placeholder",
|
2530 |
-
placeholder = element.data( dataKey );
|
2531 |
-
|
2532 |
-
if ( placeholder ) {
|
2533 |
-
placeholder.remove();
|
2534 |
-
element.removeData( dataKey );
|
2535 |
-
}
|
2536 |
-
},
|
2537 |
-
|
2538 |
-
// Removes a placeholder if it exists and restores
|
2539 |
-
// properties that were modified during placeholder creation
|
2540 |
-
cleanUp: function( element ) {
|
2541 |
-
$.effects.restoreStyle( element );
|
2542 |
-
$.effects.removePlaceholder( element );
|
2543 |
-
},
|
2544 |
-
|
2545 |
-
setTransition: function( element, list, factor, value ) {
|
2546 |
-
value = value || {};
|
2547 |
-
$.each( list, function( i, x ) {
|
2548 |
-
var unit = element.cssUnit( x );
|
2549 |
-
if ( unit[ 0 ] > 0 ) {
|
2550 |
-
value[ x ] = unit[ 0 ] * factor + unit[ 1 ];
|
2551 |
-
}
|
2552 |
-
} );
|
2553 |
-
return value;
|
2554 |
-
}
|
2555 |
-
} );
|
2556 |
-
|
2557 |
-
// Return an effect options object for the given parameters:
|
2558 |
-
function _normalizeArguments( effect, options, speed, callback ) {
|
2559 |
-
|
2560 |
-
// Allow passing all options as the first parameter
|
2561 |
-
if ( $.isPlainObject( effect ) ) {
|
2562 |
-
options = effect;
|
2563 |
-
effect = effect.effect;
|
2564 |
-
}
|
2565 |
-
|
2566 |
-
// Convert to an object
|
2567 |
-
effect = { effect: effect };
|
2568 |
-
|
2569 |
-
// Catch (effect, null, ...)
|
2570 |
-
if ( options == null ) {
|
2571 |
-
options = {};
|
2572 |
-
}
|
2573 |
-
|
2574 |
-
// Catch (effect, callback)
|
2575 |
-
if ( $.isFunction( options ) ) {
|
2576 |
-
callback = options;
|
2577 |
-
speed = null;
|
2578 |
-
options = {};
|
2579 |
-
}
|
2580 |
-
|
2581 |
-
// Catch (effect, speed, ?)
|
2582 |
-
if ( typeof options === "number" || $.fx.speeds[ options ] ) {
|
2583 |
-
callback = speed;
|
2584 |
-
speed = options;
|
2585 |
-
options = {};
|
2586 |
-
}
|
2587 |
-
|
2588 |
-
// Catch (effect, options, callback)
|
2589 |
-
if ( $.isFunction( speed ) ) {
|
2590 |
-
callback = speed;
|
2591 |
-
speed = null;
|
2592 |
-
}
|
2593 |
-
|
2594 |
-
// Add options to effect
|
2595 |
-
if ( options ) {
|
2596 |
-
$.extend( effect, options );
|
2597 |
-
}
|
2598 |
-
|
2599 |
-
speed = speed || options.duration;
|
2600 |
-
effect.duration = $.fx.off ? 0 :
|
2601 |
-
typeof speed === "number" ? speed :
|
2602 |
-
speed in $.fx.speeds ? $.fx.speeds[ speed ] :
|
2603 |
-
$.fx.speeds._default;
|
2604 |
-
|
2605 |
-
effect.complete = callback || options.complete;
|
2606 |
-
|
2607 |
-
return effect;
|
2608 |
-
}
|
2609 |
-
|
2610 |
-
function standardAnimationOption( option ) {
|
2611 |
-
|
2612 |
-
// Valid standard speeds (nothing, number, named speed)
|
2613 |
-
if ( !option || typeof option === "number" || $.fx.speeds[ option ] ) {
|
2614 |
-
return true;
|
2615 |
-
}
|
2616 |
-
|
2617 |
-
// Invalid strings - treat as "normal" speed
|
2618 |
-
if ( typeof option === "string" && !$.effects.effect[ option ] ) {
|
2619 |
-
return true;
|
2620 |
-
}
|
2621 |
-
|
2622 |
-
// Complete callback
|
2623 |
-
if ( $.isFunction( option ) ) {
|
2624 |
-
return true;
|
2625 |
-
}
|
2626 |
-
|
2627 |
-
// Options hash (but not naming an effect)
|
2628 |
-
if ( typeof option === "object" && !option.effect ) {
|
2629 |
-
return true;
|
2630 |
-
}
|
2631 |
-
|
2632 |
-
// Didn't match any standard API
|
2633 |
-
return false;
|
2634 |
-
}
|
2635 |
-
|
2636 |
-
$.fn.extend( {
|
2637 |
-
effect: function( /* effect, options, speed, callback */ ) {
|
2638 |
-
var args = _normalizeArguments.apply( this, arguments ),
|
2639 |
-
effectMethod = $.effects.effect[ args.effect ],
|
2640 |
-
defaultMode = effectMethod.mode,
|
2641 |
-
queue = args.queue,
|
2642 |
-
queueName = queue || "fx",
|
2643 |
-
complete = args.complete,
|
2644 |
-
mode = args.mode,
|
2645 |
-
modes = [],
|
2646 |
-
prefilter = function( next ) {
|
2647 |
-
var el = $( this ),
|
2648 |
-
normalizedMode = $.effects.mode( el, mode ) || defaultMode;
|
2649 |
-
|
2650 |
-
// Sentinel for duck-punching the :animated psuedo-selector
|
2651 |
-
el.data( dataSpaceAnimated, true );
|
2652 |
-
|
2653 |
-
// Save effect mode for later use,
|
2654 |
-
// we can't just call $.effects.mode again later,
|
2655 |
-
// as the .show() below destroys the initial state
|
2656 |
-
modes.push( normalizedMode );
|
2657 |
-
|
2658 |
-
// See $.uiBackCompat inside of run() for removal of defaultMode in 1.13
|
2659 |
-
if ( defaultMode && ( normalizedMode === "show" ||
|
2660 |
-
( normalizedMode === defaultMode && normalizedMode === "hide" ) ) ) {
|
2661 |
-
el.show();
|
2662 |
-
}
|
2663 |
-
|
2664 |
-
if ( !defaultMode || normalizedMode !== "none" ) {
|
2665 |
-
$.effects.saveStyle( el );
|
2666 |
-
}
|
2667 |
-
|
2668 |
-
if ( $.isFunction( next ) ) {
|
2669 |
-
next();
|
2670 |
-
}
|
2671 |
-
};
|
2672 |
-
|
2673 |
-
if ( $.fx.off || !effectMethod ) {
|
2674 |
-
|
2675 |
-
// Delegate to the original method (e.g., .show()) if possible
|
2676 |
-
if ( mode ) {
|
2677 |
-
return this[ mode ]( args.duration, complete );
|
2678 |
-
} else {
|
2679 |
-
return this.each( function() {
|
2680 |
-
if ( complete ) {
|
2681 |
-
complete.call( this );
|
2682 |
-
}
|
2683 |
-
} );
|
2684 |
-
}
|
2685 |
-
}
|
2686 |
-
|
2687 |
-
function run( next ) {
|
2688 |
-
var elem = $( this );
|
2689 |
-
|
2690 |
-
function cleanup() {
|
2691 |
-
elem.removeData( dataSpaceAnimated );
|
2692 |
-
|
2693 |
-
$.effects.cleanUp( elem );
|
2694 |
-
|
2695 |
-
if ( args.mode === "hide" ) {
|
2696 |
-
elem.hide();
|
2697 |
-
}
|
2698 |
-
|
2699 |
-
done();
|
2700 |
-
}
|
2701 |
-
|
2702 |
-
function done() {
|
2703 |
-
if ( $.isFunction( complete ) ) {
|
2704 |
-
complete.call( elem[ 0 ] );
|
2705 |
-
}
|
2706 |
-
|
2707 |
-
if ( $.isFunction( next ) ) {
|
2708 |
-
next();
|
2709 |
-
}
|
2710 |
-
}
|
2711 |
-
|
2712 |
-
// Override mode option on a per element basis,
|
2713 |
-
// as toggle can be either show or hide depending on element state
|
2714 |
-
args.mode = modes.shift();
|
2715 |
-
|
2716 |
-
if ( $.uiBackCompat !== false && !defaultMode ) {
|
2717 |
-
if ( elem.is( ":hidden" ) ? mode === "hide" : mode === "show" ) {
|
2718 |
-
|
2719 |
-
// Call the core method to track "olddisplay" properly
|
2720 |
-
elem[ mode ]();
|
2721 |
-
done();
|
2722 |
-
} else {
|
2723 |
-
effectMethod.call( elem[ 0 ], args, done );
|
2724 |
-
}
|
2725 |
-
} else {
|
2726 |
-
if ( args.mode === "none" ) {
|
2727 |
-
|
2728 |
-
// Call the core method to track "olddisplay" properly
|
2729 |
-
elem[ mode ]();
|
2730 |
-
done();
|
2731 |
-
} else {
|
2732 |
-
effectMethod.call( elem[ 0 ], args, cleanup );
|
2733 |
-
}
|
2734 |
-
}
|
2735 |
-
}
|
2736 |
-
|
2737 |
-
// Run prefilter on all elements first to ensure that
|
2738 |
-
// any showing or hiding happens before placeholder creation,
|
2739 |
-
// which ensures that any layout changes are correctly captured.
|
2740 |
-
return queue === false ?
|
2741 |
-
this.each( prefilter ).each( run ) :
|
2742 |
-
this.queue( queueName, prefilter ).queue( queueName, run );
|
2743 |
-
},
|
2744 |
-
|
2745 |
-
show: ( function( orig ) {
|
2746 |
-
return function( option ) {
|
2747 |
-
if ( standardAnimationOption( option ) ) {
|
2748 |
-
return orig.apply( this, arguments );
|
2749 |
-
} else {
|
2750 |
-
var args = _normalizeArguments.apply( this, arguments );
|
2751 |
-
args.mode = "show";
|
2752 |
-
return this.effect.call( this, args );
|
2753 |
-
}
|
2754 |
-
};
|
2755 |
-
} )( $.fn.show ),
|
2756 |
-
|
2757 |
-
hide: ( function( orig ) {
|
2758 |
-
return function( option ) {
|
2759 |
-
if ( standardAnimationOption( option ) ) {
|
2760 |
-
return orig.apply( this, arguments );
|
2761 |
-
} else {
|
2762 |
-
var args = _normalizeArguments.apply( this, arguments );
|
2763 |
-
args.mode = "hide";
|
2764 |
-
return this.effect.call( this, args );
|
2765 |
-
}
|
2766 |
-
};
|
2767 |
-
} )( $.fn.hide ),
|
2768 |
-
|
2769 |
-
toggle: ( function( orig ) {
|
2770 |
-
return function( option ) {
|
2771 |
-
if ( standardAnimationOption( option ) || typeof option === "boolean" ) {
|
2772 |
-
return orig.apply( this, arguments );
|
2773 |
-
} else {
|
2774 |
-
var args = _normalizeArguments.apply( this, arguments );
|
2775 |
-
args.mode = "toggle";
|
2776 |
-
return this.effect.call( this, args );
|
2777 |
-
}
|
2778 |
-
};
|
2779 |
-
} )( $.fn.toggle ),
|
2780 |
-
|
2781 |
-
cssUnit: function( key ) {
|
2782 |
-
var style = this.css( key ),
|
2783 |
-
val = [];
|
2784 |
-
|
2785 |
-
$.each( [ "em", "px", "%", "pt" ], function( i, unit ) {
|
2786 |
-
if ( style.indexOf( unit ) > 0 ) {
|
2787 |
-
val = [ parseFloat( style ), unit ];
|
2788 |
-
}
|
2789 |
-
} );
|
2790 |
-
return val;
|
2791 |
-
},
|
2792 |
-
|
2793 |
-
cssClip: function( clipObj ) {
|
2794 |
-
if ( clipObj ) {
|
2795 |
-
return this.css( "clip", "rect(" + clipObj.top + "px " + clipObj.right + "px " +
|
2796 |
-
clipObj.bottom + "px " + clipObj.left + "px)" );
|
2797 |
-
}
|
2798 |
-
return parseClip( this.css( "clip" ), this );
|
2799 |
-
},
|
2800 |
-
|
2801 |
-
transfer: function( options, done ) {
|
2802 |
-
var element = $( this ),
|
2803 |
-
target = $( options.to ),
|
2804 |
-
targetFixed = target.css( "position" ) === "fixed",
|
2805 |
-
body = $( "body" ),
|
2806 |
-
fixTop = targetFixed ? body.scrollTop() : 0,
|
2807 |
-
fixLeft = targetFixed ? body.scrollLeft() : 0,
|
2808 |
-
endPosition = target.offset(),
|
2809 |
-
animation = {
|
2810 |
-
top: endPosition.top - fixTop,
|
2811 |
-
left: endPosition.left - fixLeft,
|
2812 |
-
height: target.innerHeight(),
|
2813 |
-
width: target.innerWidth()
|
2814 |
-
},
|
2815 |
-
startPosition = element.offset(),
|
2816 |
-
transfer = $( "<div class='ui-effects-transfer'></div>" )
|
2817 |
-
.appendTo( "body" )
|
2818 |
-
.addClass( options.className )
|
2819 |
-
.css( {
|
2820 |
-
top: startPosition.top - fixTop,
|
2821 |
-
left: startPosition.left - fixLeft,
|
2822 |
-
height: element.innerHeight(),
|
2823 |
-
width: element.innerWidth(),
|
2824 |
-
position: targetFixed ? "fixed" : "absolute"
|
2825 |
-
} )
|
2826 |
-
.animate( animation, options.duration, options.easing, function() {
|
2827 |
-
transfer.remove();
|
2828 |
-
if ( $.isFunction( done ) ) {
|
2829 |
-
done();
|
2830 |
-
}
|
2831 |
-
} );
|
2832 |
-
}
|
2833 |
-
} );
|
2834 |
-
|
2835 |
-
function parseClip( str, element ) {
|
2836 |
-
var outerWidth = element.outerWidth(),
|
2837 |
-
outerHeight = element.outerHeight(),
|
2838 |
-
clipRegex = /^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/,
|
2839 |
-
values = clipRegex.exec( str ) || [ "", 0, outerWidth, outerHeight, 0 ];
|
2840 |
-
|
2841 |
-
return {
|
2842 |
-
top: parseFloat( values[ 1 ] ) || 0,
|
2843 |
-
right: values[ 2 ] === "auto" ? outerWidth : parseFloat( values[ 2 ] ),
|
2844 |
-
bottom: values[ 3 ] === "auto" ? outerHeight : parseFloat( values[ 3 ] ),
|
2845 |
-
left: parseFloat( values[ 4 ] ) || 0
|
2846 |
-
};
|
2847 |
-
}
|
2848 |
-
|
2849 |
-
$.fx.step.clip = function( fx ) {
|
2850 |
-
if ( !fx.clipInit ) {
|
2851 |
-
fx.start = $( fx.elem ).cssClip();
|
2852 |
-
if ( typeof fx.end === "string" ) {
|
2853 |
-
fx.end = parseClip( fx.end, fx.elem );
|
2854 |
-
}
|
2855 |
-
fx.clipInit = true;
|
2856 |
-
}
|
2857 |
-
|
2858 |
-
$( fx.elem ).cssClip( {
|
2859 |
-
top: fx.pos * ( fx.end.top - fx.start.top ) + fx.start.top,
|
2860 |
-
right: fx.pos * ( fx.end.right - fx.start.right ) + fx.start.right,
|
2861 |
-
bottom: fx.pos * ( fx.end.bottom - fx.start.bottom ) + fx.start.bottom,
|
2862 |
-
left: fx.pos * ( fx.end.left - fx.start.left ) + fx.start.left
|
2863 |
-
} );
|
2864 |
-
};
|
2865 |
-
|
2866 |
-
} )();
|
2867 |
-
|
2868 |
-
/******************************************************************************/
|
2869 |
-
/*********************************** EASING ***********************************/
|
2870 |
-
/******************************************************************************/
|
2871 |
-
|
2872 |
-
( function() {
|
2873 |
-
|
2874 |
-
// Based on easing equations from Robert Penner (http://www.robertpenner.com/easing)
|
2875 |
-
|
2876 |
-
var baseEasings = {};
|
2877 |
-
|
2878 |
-
$.each( [ "Quad", "Cubic", "Quart", "Quint", "Expo" ], function( i, name ) {
|
2879 |
-
baseEasings[ name ] = function( p ) {
|
2880 |
-
return Math.pow( p, i + 2 );
|
2881 |
-
};
|
2882 |
-
} );
|
2883 |
-
|
2884 |
-
$.extend( baseEasings, {
|
2885 |
-
Sine: function( p ) {
|
2886 |
-
return 1 - Math.cos( p * Math.PI / 2 );
|
2887 |
-
},
|
2888 |
-
Circ: function( p ) {
|
2889 |
-
return 1 - Math.sqrt( 1 - p * p );
|
2890 |
-
},
|
2891 |
-
Elastic: function( p ) {
|
2892 |
-
return p === 0 || p === 1 ? p :
|
2893 |
-
-Math.pow( 2, 8 * ( p - 1 ) ) * Math.sin( ( ( p - 1 ) * 80 - 7.5 ) * Math.PI / 15 );
|
2894 |
-
},
|
2895 |
-
Back: function( p ) {
|
2896 |
-
return p * p * ( 3 * p - 2 );
|
2897 |
-
},
|
2898 |
-
Bounce: function( p ) {
|
2899 |
-
var pow2,
|
2900 |
-
bounce = 4;
|
2901 |
-
|
2902 |
-
while ( p < ( ( pow2 = Math.pow( 2, --bounce ) ) - 1 ) / 11 ) {}
|
2903 |
-
return 1 / Math.pow( 4, 3 - bounce ) - 7.5625 * Math.pow( ( pow2 * 3 - 2 ) / 22 - p, 2 );
|
2904 |
-
}
|
2905 |
-
} );
|
2906 |
-
|
2907 |
-
$.each( baseEasings, function( name, easeIn ) {
|
2908 |
-
$.easing[ "easeIn" + name ] = easeIn;
|
2909 |
-
$.easing[ "easeOut" + name ] = function( p ) {
|
2910 |
-
return 1 - easeIn( 1 - p );
|
2911 |
-
};
|
2912 |
-
$.easing[ "easeInOut" + name ] = function( p ) {
|
2913 |
-
return p < 0.5 ?
|
2914 |
-
easeIn( p * 2 ) / 2 :
|
2915 |
-
1 - easeIn( p * -2 + 2 ) / 2;
|
2916 |
-
};
|
2917 |
-
} );
|
2918 |
-
|
2919 |
-
} )();
|
2920 |
-
|
2921 |
-
var effect = $.effects;
|
2922 |
-
|
2923 |
-
|
2924 |
-
/*!
|
2925 |
-
* jQuery UI Effects Blind 1.12.1
|
2926 |
-
* http://jqueryui.com
|
2927 |
-
*
|
2928 |
-
* Copyright jQuery Foundation and other contributors
|
2929 |
-
* Released under the MIT license.
|
2930 |
-
* http://jquery.org/license
|
2931 |
-
*/
|
2932 |
-
|
2933 |
-
//>>label: Blind Effect
|
2934 |
-
//>>group: Effects
|
2935 |
-
//>>description: Blinds the element.
|
2936 |
-
//>>docs: http://api.jqueryui.com/blind-effect/
|
2937 |
-
//>>demos: http://jqueryui.com/effect/
|
2938 |
-
|
2939 |
-
|
2940 |
-
|
2941 |
-
var effectsEffectBlind = $.effects.define( "blind", "hide", function( options, done ) {
|
2942 |
-
var map = {
|
2943 |
-
up: [ "bottom", "top" ],
|
2944 |
-
vertical: [ "bottom", "top" ],
|
2945 |
-
down: [ "top", "bottom" ],
|
2946 |
-
left: [ "right", "left" ],
|
2947 |
-
horizontal: [ "right", "left" ],
|
2948 |
-
right: [ "left", "right" ]
|
2949 |
-
},
|
2950 |
-
element = $( this ),
|
2951 |
-
direction = options.direction || "up",
|
2952 |
-
start = element.cssClip(),
|
2953 |
-
animate = { clip: $.extend( {}, start ) },
|
2954 |
-
placeholder = $.effects.createPlaceholder( element );
|
2955 |
-
|
2956 |
-
animate.clip[ map[ direction ][ 0 ] ] = animate.clip[ map[ direction ][ 1 ] ];
|
2957 |
-
|
2958 |
-
if ( options.mode === "show" ) {
|
2959 |
-
element.cssClip( animate.clip );
|
2960 |
-
if ( placeholder ) {
|
2961 |
-
placeholder.css( $.effects.clipToBox( animate ) );
|
2962 |
-
}
|
2963 |
-
|
2964 |
-
animate.clip = start;
|
2965 |
-
}
|
2966 |
-
|
2967 |
-
if ( placeholder ) {
|
2968 |
-
placeholder.animate( $.effects.clipToBox( animate ), options.duration, options.easing );
|
2969 |
-
}
|
2970 |
-
|
2971 |
-
element.animate( animate, {
|
2972 |
-
queue: false,
|
2973 |
-
duration: options.duration,
|
2974 |
-
easing: options.easing,
|
2975 |
-
complete: done
|
2976 |
-
} );
|
2977 |
-
} );
|
2978 |
-
|
2979 |
-
|
2980 |
-
/*!
|
2981 |
-
* jQuery UI Effects Bounce 1.12.1
|
2982 |
-
* http://jqueryui.com
|
2983 |
-
*
|
2984 |
-
* Copyright jQuery Foundation and other contributors
|
2985 |
-
* Released under the MIT license.
|
2986 |
-
* http://jquery.org/license
|
2987 |
-
*/
|
2988 |
-
|
2989 |
-
//>>label: Bounce Effect
|
2990 |
-
//>>group: Effects
|
2991 |
-
//>>description: Bounces an element horizontally or vertically n times.
|
2992 |
-
//>>docs: http://api.jqueryui.com/bounce-effect/
|
2993 |
-
//>>demos: http://jqueryui.com/effect/
|
2994 |
-
|
2995 |
-
|
2996 |
-
|
2997 |
-
var effectsEffectBounce = $.effects.define( "bounce", function( options, done ) {
|
2998 |
-
var upAnim, downAnim, refValue,
|
2999 |
-
element = $( this ),
|
3000 |
-
|
3001 |
-
// Defaults:
|
3002 |
-
mode = options.mode,
|
3003 |
-
hide = mode === "hide",
|
3004 |
-
show = mode === "show",
|
3005 |
-
direction = options.direction || "up",
|
3006 |
-
distance = options.distance,
|
3007 |
-
times = options.times || 5,
|
3008 |
-
|
3009 |
-
// Number of internal animations
|
3010 |
-
anims = times * 2 + ( show || hide ? 1 : 0 ),
|
3011 |
-
speed = options.duration / anims,
|
3012 |
-
easing = options.easing,
|
3013 |
-
|
3014 |
-
// Utility:
|
3015 |
-
ref = ( direction === "up" || direction === "down" ) ? "top" : "left",
|
3016 |
-
motion = ( direction === "up" || direction === "left" ),
|
3017 |
-
i = 0,
|
3018 |
-
|
3019 |
-
queuelen = element.queue().length;
|
3020 |
-
|
3021 |
-
$.effects.createPlaceholder( element );
|
3022 |
-
|
3023 |
-
refValue = element.css( ref );
|
3024 |
-
|
3025 |
-
// Default distance for the BIGGEST bounce is the outer Distance / 3
|
3026 |
-
if ( !distance ) {
|
3027 |
-
distance = element[ ref === "top" ? "outerHeight" : "outerWidth" ]() / 3;
|
3028 |
-
}
|
3029 |
-
|
3030 |
-
if ( show ) {
|
3031 |
-
downAnim = { opacity: 1 };
|
3032 |
-
downAnim[ ref ] = refValue;
|
3033 |
-
|
3034 |
-
// If we are showing, force opacity 0 and set the initial position
|
3035 |
-
// then do the "first" animation
|
3036 |
-
element
|
3037 |
-
.css( "opacity", 0 )
|
3038 |
-
.css( ref, motion ? -distance * 2 : distance * 2 )
|
3039 |
-
.animate( downAnim, speed, easing );
|
3040 |
-
}
|
3041 |
-
|
3042 |
-
// Start at the smallest distance if we are hiding
|
3043 |
-
if ( hide ) {
|
3044 |
-
distance = distance / Math.pow( 2, times - 1 );
|
3045 |
-
}
|
3046 |
-
|
3047 |
-
downAnim = {};
|
3048 |
-
downAnim[ ref ] = refValue;
|
3049 |
-
|
3050 |
-
// Bounces up/down/left/right then back to 0 -- times * 2 animations happen here
|
3051 |
-
for ( ; i < times; i++ ) {
|
3052 |
-
upAnim = {};
|
3053 |
-
upAnim[ ref ] = ( motion ? "-=" : "+=" ) + distance;
|
3054 |
-
|
3055 |
-
element
|
3056 |
-
.animate( upAnim, speed, easing )
|
3057 |
-
.animate( downAnim, speed, easing );
|
3058 |
-
|
3059 |
-
distance = hide ? distance * 2 : distance / 2;
|
3060 |
-
}
|
3061 |
-
|
3062 |
-
// Last Bounce when Hiding
|
3063 |
-
if ( hide ) {
|
3064 |
-
upAnim = { opacity: 0 };
|
3065 |
-
upAnim[ ref ] = ( motion ? "-=" : "+=" ) + distance;
|
3066 |
-
|
3067 |
-
element.animate( upAnim, speed, easing );
|
3068 |
-
}
|
3069 |
-
|
3070 |
-
element.queue( done );
|
3071 |
-
|
3072 |
-
$.effects.unshift( element, queuelen, anims + 1 );
|
3073 |
-
} );
|
3074 |
-
|
3075 |
-
|
3076 |
-
/*!
|
3077 |
-
* jQuery UI Effects Clip 1.12.1
|
3078 |
-
* http://jqueryui.com
|
3079 |
-
*
|
3080 |
-
* Copyright jQuery Foundation and other contributors
|
3081 |
-
* Released under the MIT license.
|
3082 |
-
* http://jquery.org/license
|
3083 |
-
*/
|
3084 |
-
|
3085 |
-
//>>label: Clip Effect
|
3086 |
-
//>>group: Effects
|
3087 |
-
//>>description: Clips the element on and off like an old TV.
|
3088 |
-
//>>docs: http://api.jqueryui.com/clip-effect/
|
3089 |
-
//>>demos: http://jqueryui.com/effect/
|
3090 |
-
|
3091 |
-
|
3092 |
-
|
3093 |
-
var effectsEffectClip = $.effects.define( "clip", "hide", function( options, done ) {
|
3094 |
-
var start,
|
3095 |
-
animate = {},
|
3096 |
-
element = $( this ),
|
3097 |
-
direction = options.direction || "vertical",
|
3098 |
-
both = direction === "both",
|
3099 |
-
horizontal = both || direction === "horizontal",
|
3100 |
-
vertical = both || direction === "vertical";
|
3101 |
-
|
3102 |
-
start = element.cssClip();
|
3103 |
-
animate.clip = {
|
3104 |
-
top: vertical ? ( start.bottom - start.top ) / 2 : start.top,
|
3105 |
-
right: horizontal ? ( start.right - start.left ) / 2 : start.right,
|
3106 |
-
bottom: vertical ? ( start.bottom - start.top ) / 2 : start.bottom,
|
3107 |
-
left: horizontal ? ( start.right - start.left ) / 2 : start.left
|
3108 |
-
};
|
3109 |
-
|
3110 |
-
$.effects.createPlaceholder( element );
|
3111 |
-
|
3112 |
-
if ( options.mode === "show" ) {
|
3113 |
-
element.cssClip( animate.clip );
|
3114 |
-
animate.clip = start;
|
3115 |
-
}
|
3116 |
-
|
3117 |
-
element.animate( animate, {
|
3118 |
-
queue: false,
|
3119 |
-
duration: options.duration,
|
3120 |
-
easing: options.easing,
|
3121 |
-
complete: done
|
3122 |
-
} );
|
3123 |
-
|
3124 |
-
} );
|
3125 |
-
|
3126 |
-
|
3127 |
-
/*!
|
3128 |
-
* jQuery UI Effects Drop 1.12.1
|
3129 |
-
* http://jqueryui.com
|
3130 |
-
*
|
3131 |
-
* Copyright jQuery Foundation and other contributors
|
3132 |
-
* Released under the MIT license.
|
3133 |
-
* http://jquery.org/license
|
3134 |
-
*/
|
3135 |
-
|
3136 |
-
//>>label: Drop Effect
|
3137 |
-
//>>group: Effects
|
3138 |
-
//>>description: Moves an element in one direction and hides it at the same time.
|
3139 |
-
//>>docs: http://api.jqueryui.com/drop-effect/
|
3140 |
-
//>>demos: http://jqueryui.com/effect/
|
3141 |
-
|
3142 |
-
|
3143 |
-
|
3144 |
-
var effectsEffectDrop = $.effects.define( "drop", "hide", function( options, done ) {
|
3145 |
-
|
3146 |
-
var distance,
|
3147 |
-
element = $( this ),
|
3148 |
-
mode = options.mode,
|
3149 |
-
show = mode === "show",
|
3150 |
-
direction = options.direction || "left",
|
3151 |
-
ref = ( direction === "up" || direction === "down" ) ? "top" : "left",
|
3152 |
-
motion = ( direction === "up" || direction === "left" ) ? "-=" : "+=",
|
3153 |
-
oppositeMotion = ( motion === "+=" ) ? "-=" : "+=",
|
3154 |
-
animation = {
|
3155 |
-
opacity: 0
|
3156 |
-
};
|
3157 |
-
|
3158 |
-
$.effects.createPlaceholder( element );
|
3159 |
-
|
3160 |
-
distance = options.distance ||
|
3161 |
-
element[ ref === "top" ? "outerHeight" : "outerWidth" ]( true ) / 2;
|
3162 |
-
|
3163 |
-
animation[ ref ] = motion + distance;
|
3164 |
-
|
3165 |
-
if ( show ) {
|
3166 |
-
element.css( animation );
|
3167 |
-
|
3168 |
-
animation[ ref ] = oppositeMotion + distance;
|
3169 |
-
animation.opacity = 1;
|
3170 |
-
}
|
3171 |
-
|
3172 |
-
// Animate
|
3173 |
-
element.animate( animation, {
|
3174 |
-
queue: false,
|
3175 |
-
duration: options.duration,
|
3176 |
-
easing: options.easing,
|
3177 |
-
complete: done
|
3178 |
-
} );
|
3179 |
-
} );
|
3180 |
-
|
3181 |
-
|
3182 |
-
/*!
|
3183 |
-
* jQuery UI Effects Explode 1.12.1
|
3184 |
-
* http://jqueryui.com
|
3185 |
-
*
|
3186 |
-
* Copyright jQuery Foundation and other contributors
|
3187 |
-
* Released under the MIT license.
|
3188 |
-
* http://jquery.org/license
|
3189 |
-
*/
|
3190 |
-
|
3191 |
-
//>>label: Explode Effect
|
3192 |
-
//>>group: Effects
|
3193 |
-
// jscs:disable maximumLineLength
|
3194 |
-
//>>description: Explodes an element in all directions into n pieces. Implodes an element to its original wholeness.
|
3195 |
-
// jscs:enable maximumLineLength
|
3196 |
-
//>>docs: http://api.jqueryui.com/explode-effect/
|
3197 |
-
//>>demos: http://jqueryui.com/effect/
|
3198 |
-
|
3199 |
-
|
3200 |
-
|
3201 |
-
var effectsEffectExplode = $.effects.define( "explode", "hide", function( options, done ) {
|
3202 |
-
|
3203 |
-
var i, j, left, top, mx, my,
|
3204 |
-
rows = options.pieces ? Math.round( Math.sqrt( options.pieces ) ) : 3,
|
3205 |
-
cells = rows,
|
3206 |
-
element = $( this ),
|
3207 |
-
mode = options.mode,
|
3208 |
-
show = mode === "show",
|
3209 |
-
|
3210 |
-
// Show and then visibility:hidden the element before calculating offset
|
3211 |
-
offset = element.show().css( "visibility", "hidden" ).offset(),
|
3212 |
-
|
3213 |
-
// Width and height of a piece
|
3214 |
-
width = Math.ceil( element.outerWidth() / cells ),
|
3215 |
-
height = Math.ceil( element.outerHeight() / rows ),
|
3216 |
-
pieces = [];
|
3217 |
-
|
3218 |
-
// Children animate complete:
|
3219 |
-
function childComplete() {
|
3220 |
-
pieces.push( this );
|
3221 |
-
if ( pieces.length === rows * cells ) {
|
3222 |
-
animComplete();
|
3223 |
-
}
|
3224 |
-
}
|
3225 |
-
|
3226 |
-
// Clone the element for each row and cell.
|
3227 |
-
for ( i = 0; i < rows; i++ ) { // ===>
|
3228 |
-
top = offset.top + i * height;
|
3229 |
-
my = i - ( rows - 1 ) / 2;
|
3230 |
-
|
3231 |
-
for ( j = 0; j < cells; j++ ) { // |||
|
3232 |
-
left = offset.left + j * width;
|
3233 |
-
mx = j - ( cells - 1 ) / 2;
|
3234 |
-
|
3235 |
-
// Create a clone of the now hidden main element that will be absolute positioned
|
3236 |
-
// within a wrapper div off the -left and -top equal to size of our pieces
|
3237 |
-
element
|
3238 |
-
.clone()
|
3239 |
-
.appendTo( "body" )
|
3240 |
-
.wrap( "<div></div>" )
|
3241 |
-
.css( {
|
3242 |
-
position: "absolute",
|
3243 |
-
visibility: "visible",
|
3244 |
-
left: -j * width,
|
3245 |
-
top: -i * height
|
3246 |
-
} )
|
3247 |
-
|
3248 |
-
// Select the wrapper - make it overflow: hidden and absolute positioned based on
|
3249 |
-
// where the original was located +left and +top equal to the size of pieces
|
3250 |
-
.parent()
|
3251 |
-
.addClass( "ui-effects-explode" )
|
3252 |
-
.css( {
|
3253 |
-
position: "absolute",
|
3254 |
-
overflow: "hidden",
|
3255 |
-
width: width,
|
3256 |
-
height: height,
|
3257 |
-
left: left + ( show ? mx * width : 0 ),
|
3258 |
-
top: top + ( show ? my * height : 0 ),
|
3259 |
-
opacity: show ? 0 : 1
|
3260 |
-
} )
|
3261 |
-
.animate( {
|
3262 |
-
left: left + ( show ? 0 : mx * width ),
|
3263 |
-
top: top + ( show ? 0 : my * height ),
|
3264 |
-
opacity: show ? 1 : 0
|
3265 |
-
}, options.duration || 500, options.easing, childComplete );
|
3266 |
-
}
|
3267 |
-
}
|
3268 |
-
|
3269 |
-
function animComplete() {
|
3270 |
-
element.css( {
|
3271 |
-
visibility: "visible"
|
3272 |
-
} );
|
3273 |
-
$( pieces ).remove();
|
3274 |
-
done();
|
3275 |
-
}
|
3276 |
-
} );
|
3277 |
-
|
3278 |
-
|
3279 |
-
/*!
|
3280 |
-
* jQuery UI Effects Fade 1.12.1
|
3281 |
-
* http://jqueryui.com
|
3282 |
-
*
|
3283 |
-
* Copyright jQuery Foundation and other contributors
|
3284 |
-
* Released under the MIT license.
|
3285 |
-
* http://jquery.org/license
|
3286 |
-
*/
|
3287 |
-
|
3288 |
-
//>>label: Fade Effect
|
3289 |
-
//>>group: Effects
|
3290 |
-
//>>description: Fades the element.
|
3291 |
-
//>>docs: http://api.jqueryui.com/fade-effect/
|
3292 |
-
//>>demos: http://jqueryui.com/effect/
|
3293 |
-
|
3294 |
-
|
3295 |
-
|
3296 |
-
var effectsEffectFade = $.effects.define( "fade", "toggle", function( options, done ) {
|
3297 |
-
var show = options.mode === "show";
|
3298 |
-
|
3299 |
-
$( this )
|
3300 |
-
.css( "opacity", show ? 0 : 1 )
|
3301 |
-
.animate( {
|
3302 |
-
opacity: show ? 1 : 0
|
3303 |
-
}, {
|
3304 |
-
queue: false,
|
3305 |
-
duration: options.duration,
|
3306 |
-
easing: options.easing,
|
3307 |
-
complete: done
|
3308 |
-
} );
|
3309 |
-
} );
|
3310 |
-
|
3311 |
-
|
3312 |
-
/*!
|
3313 |
-
* jQuery UI Effects Fold 1.12.1
|
3314 |
-
* http://jqueryui.com
|
3315 |
-
*
|
3316 |
-
* Copyright jQuery Foundation and other contributors
|
3317 |
-
* Released under the MIT license.
|
3318 |
-
* http://jquery.org/license
|
3319 |
-
*/
|
3320 |
-
|
3321 |
-
//>>label: Fold Effect
|
3322 |
-
//>>group: Effects
|
3323 |
-
//>>description: Folds an element first horizontally and then vertically.
|
3324 |
-
//>>docs: http://api.jqueryui.com/fold-effect/
|
3325 |
-
//>>demos: http://jqueryui.com/effect/
|
3326 |
-
|
3327 |
-
|
3328 |
-
|
3329 |
-
var effectsEffectFold = $.effects.define( "fold", "hide", function( options, done ) {
|
3330 |
-
|
3331 |
-
// Create element
|
3332 |
-
var element = $( this ),
|
3333 |
-
mode = options.mode,
|
3334 |
-
show = mode === "show",
|
3335 |
-
hide = mode === "hide",
|
3336 |
-
size = options.size || 15,
|
3337 |
-
percent = /([0-9]+)%/.exec( size ),
|
3338 |
-
horizFirst = !!options.horizFirst,
|
3339 |
-
ref = horizFirst ? [ "right", "bottom" ] : [ "bottom", "right" ],
|
3340 |
-
duration = options.duration / 2,
|
3341 |
-
|
3342 |
-
placeholder = $.effects.createPlaceholder( element ),
|
3343 |
-
|
3344 |
-
start = element.cssClip(),
|
3345 |
-
animation1 = { clip: $.extend( {}, start ) },
|
3346 |
-
animation2 = { clip: $.extend( {}, start ) },
|
3347 |
-
|
3348 |
-
distance = [ start[ ref[ 0 ] ], start[ ref[ 1 ] ] ],
|
3349 |
-
|
3350 |
-
queuelen = element.queue().length;
|
3351 |
-
|
3352 |
-
if ( percent ) {
|
3353 |
-
size = parseInt( percent[ 1 ], 10 ) / 100 * distance[ hide ? 0 : 1 ];
|
3354 |
-
}
|
3355 |
-
animation1.clip[ ref[ 0 ] ] = size;
|
3356 |
-
animation2.clip[ ref[ 0 ] ] = size;
|
3357 |
-
animation2.clip[ ref[ 1 ] ] = 0;
|
3358 |
-
|
3359 |
-
if ( show ) {
|
3360 |
-
element.cssClip( animation2.clip );
|
3361 |
-
if ( placeholder ) {
|
3362 |
-
placeholder.css( $.effects.clipToBox( animation2 ) );
|
3363 |
-
}
|
3364 |
-
|
3365 |
-
animation2.clip = start;
|
3366 |
-
}
|
3367 |
-
|
3368 |
-
// Animate
|
3369 |
-
element
|
3370 |
-
.queue( function( next ) {
|
3371 |
-
if ( placeholder ) {
|
3372 |
-
placeholder
|
3373 |
-
.animate( $.effects.clipToBox( animation1 ), duration, options.easing )
|
3374 |
-
.animate( $.effects.clipToBox( animation2 ), duration, options.easing );
|
3375 |
-
}
|
3376 |
-
|
3377 |
-
next();
|
3378 |
-
} )
|
3379 |
-
.animate( animation1, duration, options.easing )
|
3380 |
-
.animate( animation2, duration, options.easing )
|
3381 |
-
.queue( done );
|
3382 |
-
|
3383 |
-
$.effects.unshift( element, queuelen, 4 );
|
3384 |
-
} );
|
3385 |
-
|
3386 |
-
|
3387 |
-
/*!
|
3388 |
-
* jQuery UI Effects Highlight 1.12.1
|
3389 |
-
* http://jqueryui.com
|
3390 |
-
*
|
3391 |
-
* Copyright jQuery Foundation and other contributors
|
3392 |
-
* Released under the MIT license.
|
3393 |
-
* http://jquery.org/license
|
3394 |
-
*/
|
3395 |
-
|
3396 |
-
//>>label: Highlight Effect
|
3397 |
-
//>>group: Effects
|
3398 |
-
//>>description: Highlights the background of an element in a defined color for a custom duration.
|
3399 |
-
//>>docs: http://api.jqueryui.com/highlight-effect/
|
3400 |
-
//>>demos: http://jqueryui.com/effect/
|
3401 |
-
|
3402 |
-
|
3403 |
-
|
3404 |
-
var effectsEffectHighlight = $.effects.define( "highlight", "show", function( options, done ) {
|
3405 |
-
var element = $( this ),
|
3406 |
-
animation = {
|
3407 |
-
backgroundColor: element.css( "backgroundColor" )
|
3408 |
-
};
|
3409 |
-
|
3410 |
-
if ( options.mode === "hide" ) {
|
3411 |
-
animation.opacity = 0;
|
3412 |
-
}
|
3413 |
-
|
3414 |
-
$.effects.saveStyle( element );
|
3415 |
-
|
3416 |
-
element
|
3417 |
-
.css( {
|
3418 |
-
backgroundImage: "none",
|
3419 |
-
backgroundColor: options.color || "#ffff99"
|
3420 |
-
} )
|
3421 |
-
.animate( animation, {
|
3422 |
-
queue: false,
|
3423 |
-
duration: options.duration,
|
3424 |
-
easing: options.easing,
|
3425 |
-
complete: done
|
3426 |
-
} );
|
3427 |
-
} );
|
3428 |
-
|
3429 |
-
|
3430 |
-
/*!
|
3431 |
-
* jQuery UI Effects Size 1.12.1
|
3432 |
-
* http://jqueryui.com
|
3433 |
-
*
|
3434 |
-
* Copyright jQuery Foundation and other contributors
|
3435 |
-
* Released under the MIT license.
|
3436 |
-
* http://jquery.org/license
|
3437 |
-
*/
|
3438 |
-
|
3439 |
-
//>>label: Size Effect
|
3440 |
-
//>>group: Effects
|
3441 |
-
//>>description: Resize an element to a specified width and height.
|
3442 |
-
//>>docs: http://api.jqueryui.com/size-effect/
|
3443 |
-
//>>demos: http://jqueryui.com/effect/
|
3444 |
-
|
3445 |
-
|
3446 |
-
|
3447 |
-
var effectsEffectSize = $.effects.define( "size", function( options, done ) {
|
3448 |
-
|
3449 |
-
// Create element
|
3450 |
-
var baseline, factor, temp,
|
3451 |
-
element = $( this ),
|
3452 |
-
|
3453 |
-
// Copy for children
|
3454 |
-
cProps = [ "fontSize" ],
|
3455 |
-
vProps = [ "borderTopWidth", "borderBottomWidth", "paddingTop", "paddingBottom" ],
|
3456 |
-
hProps = [ "borderLeftWidth", "borderRightWidth", "paddingLeft", "paddingRight" ],
|
3457 |
-
|
3458 |
-
// Set options
|
3459 |
-
mode = options.mode,
|
3460 |
-
restore = mode !== "effect",
|
3461 |
-
scale = options.scale || "both",
|
3462 |
-
origin = options.origin || [ "middle", "center" ],
|
3463 |
-
position = element.css( "position" ),
|
3464 |
-
pos = element.position(),
|
3465 |
-
original = $.effects.scaledDimensions( element ),
|
3466 |
-
from = options.from || original,
|
3467 |
-
to = options.to || $.effects.scaledDimensions( element, 0 );
|
3468 |
-
|
3469 |
-
$.effects.createPlaceholder( element );
|
3470 |
-
|
3471 |
-
if ( mode === "show" ) {
|
3472 |
-
temp = from;
|
3473 |
-
from = to;
|
3474 |
-
to = temp;
|
3475 |
-
}
|
3476 |
-
|
3477 |
-
// Set scaling factor
|
3478 |
-
factor = {
|
3479 |
-
from: {
|
3480 |
-
y: from.height / original.height,
|
3481 |
-
x: from.width / original.width
|
3482 |
-
},
|
3483 |
-
to: {
|
3484 |
-
y: to.height / original.height,
|
3485 |
-
x: to.width / original.width
|
3486 |
-
}
|
3487 |
-
};
|
3488 |
-
|
3489 |
-
// Scale the css box
|
3490 |
-
if ( scale === "box" || scale === "both" ) {
|
3491 |
-
|
3492 |
-
// Vertical props scaling
|
3493 |
-
if ( factor.from.y !== factor.to.y ) {
|
3494 |
-
from = $.effects.setTransition( element, vProps, factor.from.y, from );
|
3495 |
-
to = $.effects.setTransition( element, vProps, factor.to.y, to );
|
3496 |
-
}
|
3497 |
-
|
3498 |
-
// Horizontal props scaling
|
3499 |
-
if ( factor.from.x !== factor.to.x ) {
|
3500 |
-
from = $.effects.setTransition( element, hProps, factor.from.x, from );
|
3501 |
-
to = $.effects.setTransition( element, hProps, factor.to.x, to );
|
3502 |
-
}
|
3503 |
-
}
|
3504 |
-
|
3505 |
-
// Scale the content
|
3506 |
-
if ( scale === "content" || scale === "both" ) {
|
3507 |
-
|
3508 |
-
// Vertical props scaling
|
3509 |
-
if ( factor.from.y !== factor.to.y ) {
|
3510 |
-
from = $.effects.setTransition( element, cProps, factor.from.y, from );
|
3511 |
-
to = $.effects.setTransition( element, cProps, factor.to.y, to );
|
3512 |
-
}
|
3513 |
-
}
|
3514 |
-
|
3515 |
-
// Adjust the position properties based on the provided origin points
|
3516 |
-
if ( origin ) {
|
3517 |
-
baseline = $.effects.getBaseline( origin, original );
|
3518 |
-
from.top = ( original.outerHeight - from.outerHeight ) * baseline.y + pos.top;
|
3519 |
-
from.left = ( original.outerWidth - from.outerWidth ) * baseline.x + pos.left;
|
3520 |
-
to.top = ( original.outerHeight - to.outerHeight ) * baseline.y + pos.top;
|
3521 |
-
to.left = ( original.outerWidth - to.outerWidth ) * baseline.x + pos.left;
|
3522 |
-
}
|
3523 |
-
element.css( from );
|
3524 |
-
|
3525 |
-
// Animate the children if desired
|
3526 |
-
if ( scale === "content" || scale === "both" ) {
|
3527 |
-
|
3528 |
-
vProps = vProps.concat( [ "marginTop", "marginBottom" ] ).concat( cProps );
|
3529 |
-
hProps = hProps.concat( [ "marginLeft", "marginRight" ] );
|
3530 |
-
|
3531 |
-
// Only animate children with width attributes specified
|
3532 |
-
// TODO: is this right? should we include anything with css width specified as well
|
3533 |
-
element.find( "*[width]" ).each( function() {
|
3534 |
-
var child = $( this ),
|
3535 |
-
childOriginal = $.effects.scaledDimensions( child ),
|
3536 |
-
childFrom = {
|
3537 |
-
height: childOriginal.height * factor.from.y,
|
3538 |
-
width: childOriginal.width * factor.from.x,
|
3539 |
-
outerHeight: childOriginal.outerHeight * factor.from.y,
|
3540 |
-
outerWidth: childOriginal.outerWidth * factor.from.x
|
3541 |
-
},
|
3542 |
-
childTo = {
|
3543 |
-
height: childOriginal.height * factor.to.y,
|
3544 |
-
width: childOriginal.width * factor.to.x,
|
3545 |
-
outerHeight: childOriginal.height * factor.to.y,
|
3546 |
-
outerWidth: childOriginal.width * factor.to.x
|
3547 |
-
};
|
3548 |
-
|
3549 |
-
// Vertical props scaling
|
3550 |
-
if ( factor.from.y !== factor.to.y ) {
|
3551 |
-
childFrom = $.effects.setTransition( child, vProps, factor.from.y, childFrom );
|
3552 |
-
childTo = $.effects.setTransition( child, vProps, factor.to.y, childTo );
|
3553 |
-
}
|
3554 |
-
|
3555 |
-
// Horizontal props scaling
|
3556 |
-
if ( factor.from.x !== factor.to.x ) {
|
3557 |
-
childFrom = $.effects.setTransition( child, hProps, factor.from.x, childFrom );
|
3558 |
-
childTo = $.effects.setTransition( child, hProps, factor.to.x, childTo );
|
3559 |
-
}
|
3560 |
-
|
3561 |
-
if ( restore ) {
|
3562 |
-
$.effects.saveStyle( child );
|
3563 |
-
}
|
3564 |
-
|
3565 |
-
// Animate children
|
3566 |
-
child.css( childFrom );
|
3567 |
-
child.animate( childTo, options.duration, options.easing, function() {
|
3568 |
-
|
3569 |
-
// Restore children
|
3570 |
-
if ( restore ) {
|
3571 |
-
$.effects.restoreStyle( child );
|
3572 |
-
}
|
3573 |
-
} );
|
3574 |
-
} );
|
3575 |
-
}
|
3576 |
-
|
3577 |
-
// Animate
|
3578 |
-
element.animate( to, {
|
3579 |
-
queue: false,
|
3580 |
-
duration: options.duration,
|
3581 |
-
easing: options.easing,
|
3582 |
-
complete: function() {
|
3583 |
-
|
3584 |
-
var offset = element.offset();
|
3585 |
-
|
3586 |
-
if ( to.opacity === 0 ) {
|
3587 |
-
element.css( "opacity", from.opacity );
|
3588 |
-
}
|
3589 |
-
|
3590 |
-
if ( !restore ) {
|
3591 |
-
element
|
3592 |
-
.css( "position", position === "static" ? "relative" : position )
|
3593 |
-
.offset( offset );
|
3594 |
-
|
3595 |
-
// Need to save style here so that automatic style restoration
|
3596 |
-
// doesn't restore to the original styles from before the animation.
|
3597 |
-
$.effects.saveStyle( element );
|
3598 |
-
}
|
3599 |
-
|
3600 |
-
done();
|
3601 |
-
}
|
3602 |
-
} );
|
3603 |
-
|
3604 |
-
} );
|
3605 |
-
|
3606 |
-
|
3607 |
-
/*!
|
3608 |
-
* jQuery UI Effects Scale 1.12.1
|
3609 |
-
* http://jqueryui.com
|
3610 |
-
*
|
3611 |
-
* Copyright jQuery Foundation and other contributors
|
3612 |
-
* Released under the MIT license.
|
3613 |
-
* http://jquery.org/license
|
3614 |
-
*/
|
3615 |
-
|
3616 |
-
//>>label: Scale Effect
|
3617 |
-
//>>group: Effects
|
3618 |
-
//>>description: Grows or shrinks an element and its content.
|
3619 |
-
//>>docs: http://api.jqueryui.com/scale-effect/
|
3620 |
-
//>>demos: http://jqueryui.com/effect/
|
3621 |
-
|
3622 |
-
|
3623 |
-
|
3624 |
-
var effectsEffectScale = $.effects.define( "scale", function( options, done ) {
|
3625 |
-
|
3626 |
-
// Create element
|
3627 |
-
var el = $( this ),
|
3628 |
-
mode = options.mode,
|
3629 |
-
percent = parseInt( options.percent, 10 ) ||
|
3630 |
-
( parseInt( options.percent, 10 ) === 0 ? 0 : ( mode !== "effect" ? 0 : 100 ) ),
|
3631 |
-
|
3632 |
-
newOptions = $.extend( true, {
|
3633 |
-
from: $.effects.scaledDimensions( el ),
|
3634 |
-
to: $.effects.scaledDimensions( el, percent, options.direction || "both" ),
|
3635 |
-
origin: options.origin || [ "middle", "center" ]
|
3636 |
-
}, options );
|
3637 |
-
|
3638 |
-
// Fade option to support puff
|
3639 |
-
if ( options.fade ) {
|
3640 |
-
newOptions.from.opacity = 1;
|
3641 |
-
newOptions.to.opacity = 0;
|
3642 |
-
}
|
3643 |
-
|
3644 |
-
$.effects.effect.size.call( this, newOptions, done );
|
3645 |
-
} );
|
3646 |
-
|
3647 |
-
|
3648 |
-
/*!
|
3649 |
-
* jQuery UI Effects Puff 1.12.1
|
3650 |
-
* http://jqueryui.com
|
3651 |
-
*
|
3652 |
-
* Copyright jQuery Foundation and other contributors
|
3653 |
-
* Released under the MIT license.
|
3654 |
-
* http://jquery.org/license
|
3655 |
-
*/
|
3656 |
-
|
3657 |
-
//>>label: Puff Effect
|
3658 |
-
//>>group: Effects
|
3659 |
-
//>>description: Creates a puff effect by scaling the element up and hiding it at the same time.
|
3660 |
-
//>>docs: http://api.jqueryui.com/puff-effect/
|
3661 |
-
//>>demos: http://jqueryui.com/effect/
|
3662 |
-
|
3663 |
-
|
3664 |
-
|
3665 |
-
var effectsEffectPuff = $.effects.define( "puff", "hide", function( options, done ) {
|
3666 |
-
var newOptions = $.extend( true, {}, options, {
|
3667 |
-
fade: true,
|
3668 |
-
percent: parseInt( options.percent, 10 ) || 150
|
3669 |
-
} );
|
3670 |
-
|
3671 |
-
$.effects.effect.scale.call( this, newOptions, done );
|
3672 |
-
} );
|
3673 |
-
|
3674 |
-
|
3675 |
-
/*!
|
3676 |
-
* jQuery UI Effects Pulsate 1.12.1
|
3677 |
-
* http://jqueryui.com
|
3678 |
-
*
|
3679 |
-
* Copyright jQuery Foundation and other contributors
|
3680 |
-
* Released under the MIT license.
|
3681 |
-
* http://jquery.org/license
|
3682 |
-
*/
|
3683 |
-
|
3684 |
-
//>>label: Pulsate Effect
|
3685 |
-
//>>group: Effects
|
3686 |
-
//>>description: Pulsates an element n times by changing the opacity to zero and back.
|
3687 |
-
//>>docs: http://api.jqueryui.com/pulsate-effect/
|
3688 |
-
//>>demos: http://jqueryui.com/effect/
|
3689 |
-
|
3690 |
-
|
3691 |
-
|
3692 |
-
var effectsEffectPulsate = $.effects.define( "pulsate", "show", function( options, done ) {
|
3693 |
-
var element = $( this ),
|
3694 |
-
mode = options.mode,
|
3695 |
-
show = mode === "show",
|
3696 |
-
hide = mode === "hide",
|
3697 |
-
showhide = show || hide,
|
3698 |
-
|
3699 |
-
// Showing or hiding leaves off the "last" animation
|
3700 |
-
anims = ( ( options.times || 5 ) * 2 ) + ( showhide ? 1 : 0 ),
|
3701 |
-
duration = options.duration / anims,
|
3702 |
-
animateTo = 0,
|
3703 |
-
i = 1,
|
3704 |
-
queuelen = element.queue().length;
|
3705 |
-
|
3706 |
-
if ( show || !element.is( ":visible" ) ) {
|
3707 |
-
element.css( "opacity", 0 ).show();
|
3708 |
-
animateTo = 1;
|
3709 |
-
}
|
3710 |
-
|
3711 |
-
// Anims - 1 opacity "toggles"
|
3712 |
-
for ( ; i < anims; i++ ) {
|
3713 |
-
element.animate( { opacity: animateTo }, duration, options.easing );
|
3714 |
-
animateTo = 1 - animateTo;
|
3715 |
-
}
|
3716 |
-
|
3717 |
-
element.animate( { opacity: animateTo }, duration, options.easing );
|
3718 |
-
|
3719 |
-
element.queue( done );
|
3720 |
-
|
3721 |
-
$.effects.unshift( element, queuelen, anims + 1 );
|
3722 |
-
} );
|
3723 |
-
|
3724 |
-
|
3725 |
-
/*!
|
3726 |
-
* jQuery UI Effects Shake 1.12.1
|
3727 |
-
* http://jqueryui.com
|
3728 |
-
*
|
3729 |
-
* Copyright jQuery Foundation and other contributors
|
3730 |
-
* Released under the MIT license.
|
3731 |
-
* http://jquery.org/license
|
3732 |
-
*/
|
3733 |
-
|
3734 |
-
//>>label: Shake Effect
|
3735 |
-
//>>group: Effects
|
3736 |
-
//>>description: Shakes an element horizontally or vertically n times.
|
3737 |
-
//>>docs: http://api.jqueryui.com/shake-effect/
|
3738 |
-
//>>demos: http://jqueryui.com/effect/
|
3739 |
-
|
3740 |
-
|
3741 |
-
|
3742 |
-
var effectsEffectShake = $.effects.define( "shake", function( options, done ) {
|
3743 |
-
|
3744 |
-
var i = 1,
|
3745 |
-
element = $( this ),
|
3746 |
-
direction = options.direction || "left",
|
3747 |
-
distance = options.distance || 20,
|
3748 |
-
times = options.times || 3,
|
3749 |
-
anims = times * 2 + 1,
|
3750 |
-
speed = Math.round( options.duration / anims ),
|
3751 |
-
ref = ( direction === "up" || direction === "down" ) ? "top" : "left",
|
3752 |
-
positiveMotion = ( direction === "up" || direction === "left" ),
|
3753 |
-
animation = {},
|
3754 |
-
animation1 = {},
|
3755 |
-
animation2 = {},
|
3756 |
-
|
3757 |
-
queuelen = element.queue().length;
|
3758 |
-
|
3759 |
-
$.effects.createPlaceholder( element );
|
3760 |
-
|
3761 |
-
// Animation
|
3762 |
-
animation[ ref ] = ( positiveMotion ? "-=" : "+=" ) + distance;
|
3763 |
-
animation1[ ref ] = ( positiveMotion ? "+=" : "-=" ) + distance * 2;
|
3764 |
-
animation2[ ref ] = ( positiveMotion ? "-=" : "+=" ) + distance * 2;
|
3765 |
-
|
3766 |
-
// Animate
|
3767 |
-
element.animate( animation, speed, options.easing );
|
3768 |
-
|
3769 |
-
// Shakes
|
3770 |
-
for ( ; i < times; i++ ) {
|
3771 |
-
element
|
3772 |
-
.animate( animation1, speed, options.easing )
|
3773 |
-
.animate( animation2, speed, options.easing );
|
3774 |
-
}
|
3775 |
-
|
3776 |
-
element
|
3777 |
-
.animate( animation1, speed, options.easing )
|
3778 |
-
.animate( animation, speed / 2, options.easing )
|
3779 |
-
.queue( done );
|
3780 |
-
|
3781 |
-
$.effects.unshift( element, queuelen, anims + 1 );
|
3782 |
-
} );
|
3783 |
-
|
3784 |
-
|
3785 |
-
/*!
|
3786 |
-
* jQuery UI Effects Slide 1.12.1
|
3787 |
-
* http://jqueryui.com
|
3788 |
-
*
|
3789 |
-
* Copyright jQuery Foundation and other contributors
|
3790 |
-
* Released under the MIT license.
|
3791 |
-
* http://jquery.org/license
|
3792 |
-
*/
|
3793 |
-
|
3794 |
-
//>>label: Slide Effect
|
3795 |
-
//>>group: Effects
|
3796 |
-
//>>description: Slides an element in and out of the viewport.
|
3797 |
-
//>>docs: http://api.jqueryui.com/slide-effect/
|
3798 |
-
//>>demos: http://jqueryui.com/effect/
|
3799 |
-
|
3800 |
-
|
3801 |
-
|
3802 |
-
var effectsEffectSlide = $.effects.define( "slide", "show", function( options, done ) {
|
3803 |
-
var startClip, startRef,
|
3804 |
-
element = $( this ),
|
3805 |
-
map = {
|
3806 |
-
up: [ "bottom", "top" ],
|
3807 |
-
down: [ "top", "bottom" ],
|
3808 |
-
left: [ "right", "left" ],
|
3809 |
-
right: [ "left", "right" ]
|
3810 |
-
},
|
3811 |
-
mode = options.mode,
|
3812 |
-
direction = options.direction || "left",
|
3813 |
-
ref = ( direction === "up" || direction === "down" ) ? "top" : "left",
|
3814 |
-
positiveMotion = ( direction === "up" || direction === "left" ),
|
3815 |
-
distance = options.distance ||
|
3816 |
-
element[ ref === "top" ? "outerHeight" : "outerWidth" ]( true ),
|
3817 |
-
animation = {};
|
3818 |
-
|
3819 |
-
$.effects.createPlaceholder( element );
|
3820 |
-
|
3821 |
-
startClip = element.cssClip();
|
3822 |
-
startRef = element.position()[ ref ];
|
3823 |
-
|
3824 |
-
// Define hide animation
|
3825 |
-
animation[ ref ] = ( positiveMotion ? -1 : 1 ) * distance + startRef;
|
3826 |
-
animation.clip = element.cssClip();
|
3827 |
-
animation.clip[ map[ direction ][ 1 ] ] = animation.clip[ map[ direction ][ 0 ] ];
|
3828 |
-
|
3829 |
-
// Reverse the animation if we're showing
|
3830 |
-
if ( mode === "show" ) {
|
3831 |
-
element.cssClip( animation.clip );
|
3832 |
-
element.css( ref, animation[ ref ] );
|
3833 |
-
animation.clip = startClip;
|
3834 |
-
animation[ ref ] = startRef;
|
3835 |
-
}
|
3836 |
-
|
3837 |
-
// Actually animate
|
3838 |
-
element.animate( animation, {
|
3839 |
-
queue: false,
|
3840 |
-
duration: options.duration,
|
3841 |
-
easing: options.easing,
|
3842 |
-
complete: done
|
3843 |
-
} );
|
3844 |
-
} );
|
3845 |
-
|
3846 |
-
|
3847 |
-
/*!
|
3848 |
-
* jQuery UI Effects Transfer 1.12.1
|
3849 |
-
* http://jqueryui.com
|
3850 |
-
*
|
3851 |
-
* Copyright jQuery Foundation and other contributors
|
3852 |
-
* Released under the MIT license.
|
3853 |
-
* http://jquery.org/license
|
3854 |
-
*/
|
3855 |
-
|
3856 |
-
//>>label: Transfer Effect
|
3857 |
-
//>>group: Effects
|
3858 |
-
//>>description: Displays a transfer effect from one element to another.
|
3859 |
-
//>>docs: http://api.jqueryui.com/transfer-effect/
|
3860 |
-
//>>demos: http://jqueryui.com/effect/
|
3861 |
-
|
3862 |
-
|
3863 |
-
|
3864 |
-
var effect;
|
3865 |
-
if ( $.uiBackCompat !== false ) {
|
3866 |
-
effect = $.effects.define( "transfer", function( options, done ) {
|
3867 |
-
$( this ).transfer( options, done );
|
3868 |
-
} );
|
3869 |
-
}
|
3870 |
-
var effectsEffectTransfer = effect;
|
3871 |
-
|
3872 |
-
|
3873 |
-
/*!
|
3874 |
-
* jQuery UI Focusable 1.12.1
|
3875 |
-
* http://jqueryui.com
|
3876 |
-
*
|
3877 |
-
* Copyright jQuery Foundation and other contributors
|
3878 |
-
* Released under the MIT license.
|
3879 |
-
* http://jquery.org/license
|
3880 |
-
*/
|
3881 |
-
|
3882 |
-
//>>label: :focusable Selector
|
3883 |
-
//>>group: Core
|
3884 |
-
//>>description: Selects elements which can be focused.
|
3885 |
-
//>>docs: http://api.jqueryui.com/focusable-selector/
|
3886 |
-
|
3887 |
-
|
3888 |
-
|
3889 |
-
// Selectors
|
3890 |
-
$.ui.focusable = function( element, hasTabindex ) {
|
3891 |
-
var map, mapName, img, focusableIfVisible, fieldset,
|
3892 |
-
nodeName = element.nodeName.toLowerCase();
|
3893 |
-
|
3894 |
-
if ( "area" === nodeName ) {
|
3895 |
-
map = element.parentNode;
|
3896 |
-
mapName = map.name;
|
3897 |
-
if ( !element.href || !mapName || map.nodeName.toLowerCase() !== "map" ) {
|
3898 |
-
return false;
|
3899 |
-
}
|
3900 |
-
img = $( "img[usemap='#" + mapName + "']" );
|
3901 |
-
return img.length > 0 && img.is( ":visible" );
|
3902 |
-
}
|
3903 |
-
|
3904 |
-
if ( /^(input|select|textarea|button|object)$/.test( nodeName ) ) {
|
3905 |
-
focusableIfVisible = !element.disabled;
|
3906 |
-
|
3907 |
-
if ( focusableIfVisible ) {
|
3908 |
-
|
3909 |
-
// Form controls within a disabled fieldset are disabled.
|
3910 |
-
// However, controls within the fieldset's legend do not get disabled.
|
3911 |
-
// Since controls generally aren't placed inside legends, we skip
|
3912 |
-
// this portion of the check.
|
3913 |
-
fieldset = $( element ).closest( "fieldset" )[ 0 ];
|
3914 |
-
if ( fieldset ) {
|
3915 |
-
focusableIfVisible = !fieldset.disabled;
|
3916 |
-
}
|
3917 |
-
}
|
3918 |
-
} else if ( "a" === nodeName ) {
|
3919 |
-
focusableIfVisible = element.href || hasTabindex;
|
3920 |
-
} else {
|
3921 |
-
focusableIfVisible = hasTabindex;
|
3922 |
-
}
|
3923 |
-
|
3924 |
-
return focusableIfVisible && $( element ).is( ":visible" ) && visible( $( element ) );
|
3925 |
-
};
|
3926 |
-
|
3927 |
-
// Support: IE 8 only
|
3928 |
-
// IE 8 doesn't resolve inherit to visible/hidden for computed values
|
3929 |
-
function visible( element ) {
|
3930 |
-
var visibility = element.css( "visibility" );
|
3931 |
-
while ( visibility === "inherit" ) {
|
3932 |
-
element = element.parent();
|
3933 |
-
visibility = element.css( "visibility" );
|
3934 |
-
}
|
3935 |
-
return visibility !== "hidden";
|
3936 |
-
}
|
3937 |
-
|
3938 |
-
$.extend( $.expr[ ":" ], {
|
3939 |
-
focusable: function( element ) {
|
3940 |
-
return $.ui.focusable( element, $.attr( element, "tabindex" ) != null );
|
3941 |
-
}
|
3942 |
-
} );
|
3943 |
-
|
3944 |
-
var focusable = $.ui.focusable;
|
3945 |
-
|
3946 |
-
|
3947 |
-
|
3948 |
-
|
3949 |
-
// Support: IE8 Only
|
3950 |
-
// IE8 does not support the form attribute and when it is supplied. It overwrites the form prop
|
3951 |
-
// with a string, so we need to find the proper form.
|
3952 |
-
var form = $.fn.form = function() {
|
3953 |
-
return typeof this[ 0 ].form === "string" ? this.closest( "form" ) : $( this[ 0 ].form );
|
3954 |
-
};
|
3955 |
-
|
3956 |
-
|
3957 |
-
/*!
|
3958 |
-
* jQuery UI Form Reset Mixin 1.12.1
|
3959 |
-
* http://jqueryui.com
|
3960 |
-
*
|
3961 |
-
* Copyright jQuery Foundation and other contributors
|
3962 |
-
* Released under the MIT license.
|
3963 |
-
* http://jquery.org/license
|
3964 |
-
*/
|
3965 |
-
|
3966 |
-
//>>label: Form Reset Mixin
|
3967 |
-
//>>group: Core
|
3968 |
-
//>>description: Refresh input widgets when their form is reset
|
3969 |
-
//>>docs: http://api.jqueryui.com/form-reset-mixin/
|
3970 |
-
|
3971 |
-
|
3972 |
-
|
3973 |
-
var formResetMixin = $.ui.formResetMixin = {
|
3974 |
-
_formResetHandler: function() {
|
3975 |
-
var form = $( this );
|
3976 |
-
|
3977 |
-
// Wait for the form reset to actually happen before refreshing
|
3978 |
-
setTimeout( function() {
|
3979 |
-
var instances = form.data( "ui-form-reset-instances" );
|
3980 |
-
$.each( instances, function() {
|
3981 |
-
this.refresh();
|
3982 |
-
} );
|
3983 |
-
} );
|
3984 |
-
},
|
3985 |
-
|
3986 |
-
_bindFormResetHandler: function() {
|
3987 |
-
this.form = this.element.form();
|
3988 |
-
if ( !this.form.length ) {
|
3989 |
-
return;
|
3990 |
-
}
|
3991 |
-
|
3992 |
-
var instances = this.form.data( "ui-form-reset-instances" ) || [];
|
3993 |
-
if ( !instances.length ) {
|
3994 |
-
|
3995 |
-
// We don't use _on() here because we use a single event handler per form
|
3996 |
-
this.form.on( "reset.ui-form-reset", this._formResetHandler );
|
3997 |
-
}
|
3998 |
-
instances.push( this );
|
3999 |
-
this.form.data( "ui-form-reset-instances", instances );
|
4000 |
-
},
|
4001 |
-
|
4002 |
-
_unbindFormResetHandler: function() {
|
4003 |
-
if ( !this.form.length ) {
|
4004 |
-
return;
|
4005 |
-
}
|
4006 |
-
|
4007 |
-
var instances = this.form.data( "ui-form-reset-instances" );
|
4008 |
-
instances.splice( $.inArray( this, instances ), 1 );
|
4009 |
-
if ( instances.length ) {
|
4010 |
-
this.form.data( "ui-form-reset-instances", instances );
|
4011 |
-
} else {
|
4012 |
-
this.form
|
4013 |
-
.removeData( "ui-form-reset-instances" )
|
4014 |
-
.off( "reset.ui-form-reset" );
|
4015 |
-
}
|
4016 |
-
}
|
4017 |
-
};
|
4018 |
-
|
4019 |
-
|
4020 |
-
/*!
|
4021 |
-
* jQuery UI Support for jQuery core 1.7.x 1.12.1
|
4022 |
-
* http://jqueryui.com
|
4023 |
-
*
|
4024 |
-
* Copyright jQuery Foundation and other contributors
|
4025 |
-
* Released under the MIT license.
|
4026 |
-
* http://jquery.org/license
|
4027 |
-
*
|
4028 |
-
*/
|
4029 |
-
|
4030 |
-
//>>label: jQuery 1.7 Support
|
4031 |
-
//>>group: Core
|
4032 |
-
//>>description: Support version 1.7.x of jQuery core
|
4033 |
-
|
4034 |
-
|
4035 |
-
|
4036 |
-
// Support: jQuery 1.7 only
|
4037 |
-
// Not a great way to check versions, but since we only support 1.7+ and only
|
4038 |
-
// need to detect <1.8, this is a simple check that should suffice. Checking
|
4039 |
-
// for "1.7." would be a bit safer, but the version string is 1.7, not 1.7.0
|
4040 |
-
// and we'll never reach 1.70.0 (if we do, we certainly won't be supporting
|
4041 |
-
// 1.7 anymore). See #11197 for why we're not using feature detection.
|
4042 |
-
if ( $.fn.jquery.substring( 0, 3 ) === "1.7" ) {
|
4043 |
-
|
4044 |
-
// Setters for .innerWidth(), .innerHeight(), .outerWidth(), .outerHeight()
|
4045 |
-
// Unlike jQuery Core 1.8+, these only support numeric values to set the
|
4046 |
-
// dimensions in pixels
|
4047 |
-
$.each( [ "Width", "Height" ], function( i, name ) {
|
4048 |
-
var side = name === "Width" ? [ "Left", "Right" ] : [ "Top", "Bottom" ],
|
4049 |
-
type = name.toLowerCase(),
|
4050 |
-
orig = {
|
4051 |
-
innerWidth: $.fn.innerWidth,
|
4052 |
-
innerHeight: $.fn.innerHeight,
|
4053 |
-
outerWidth: $.fn.outerWidth,
|
4054 |
-
outerHeight: $.fn.outerHeight
|
4055 |
-
};
|
4056 |
-
|
4057 |
-
function reduce( elem, size, border, margin ) {
|
4058 |
-
$.each( side, function() {
|
4059 |
-
size -= parseFloat( $.css( elem, "padding" + this ) ) || 0;
|
4060 |
-
if ( border ) {
|
4061 |
-
size -= parseFloat( $.css( elem, "border" + this + "Width" ) ) || 0;
|
4062 |
-
}
|
4063 |
-
if ( margin ) {
|
4064 |
-
size -= parseFloat( $.css( elem, "margin" + this ) ) || 0;
|
4065 |
-
}
|
4066 |
-
} );
|
4067 |
-
return size;
|
4068 |
-
}
|
4069 |
-
|
4070 |
-
$.fn[ "inner" + name ] = function( size ) {
|
4071 |
-
if ( size === undefined ) {
|
4072 |
-
return orig[ "inner" + name ].call( this );
|
4073 |
-
}
|
4074 |
-
|
4075 |
-
return this.each( function() {
|
4076 |
-
$( this ).css( type, reduce( this, size ) + "px" );
|
4077 |
-
} );
|
4078 |
-
};
|
4079 |
-
|
4080 |
-
$.fn[ "outer" + name ] = function( size, margin ) {
|
4081 |
-
if ( typeof size !== "number" ) {
|
4082 |
-
return orig[ "outer" + name ].call( this, size );
|
4083 |
-
}
|
4084 |
-
|
4085 |
-
return this.each( function() {
|
4086 |
-
$( this ).css( type, reduce( this, size, true, margin ) + "px" );
|
4087 |
-
} );
|
4088 |
-
};
|
4089 |
-
} );
|
4090 |
-
|
4091 |
-
$.fn.addBack = function( selector ) {
|
4092 |
-
return this.add( selector == null ?
|
4093 |
-
this.prevObject : this.prevObject.filter( selector )
|
4094 |
-
);
|
4095 |
-
};
|
4096 |
-
}
|
4097 |
-
|
4098 |
-
;
|
4099 |
-
/*!
|
4100 |
-
* jQuery UI Keycode 1.12.1
|
4101 |
-
* http://jqueryui.com
|
4102 |
-
*
|
4103 |
-
* Copyright jQuery Foundation and other contributors
|
4104 |
-
* Released under the MIT license.
|
4105 |
-
* http://jquery.org/license
|
4106 |
-
*/
|
4107 |
-
|
4108 |
-
//>>label: Keycode
|
4109 |
-
//>>group: Core
|
4110 |
-
//>>description: Provide keycodes as keynames
|
4111 |
-
//>>docs: http://api.jqueryui.com/jQuery.ui.keyCode/
|
4112 |
-
|
4113 |
-
|
4114 |
-
var keycode = $.ui.keyCode = {
|
4115 |
-
BACKSPACE: 8,
|
4116 |
-
COMMA: 188,
|
4117 |
-
DELETE: 46,
|
4118 |
-
DOWN: 40,
|
4119 |
-
END: 35,
|
4120 |
-
ENTER: 13,
|
4121 |
-
ESCAPE: 27,
|
4122 |
-
HOME: 36,
|
4123 |
-
LEFT: 37,
|
4124 |
-
PAGE_DOWN: 34,
|
4125 |
-
PAGE_UP: 33,
|
4126 |
-
PERIOD: 190,
|
4127 |
-
RIGHT: 39,
|
4128 |
-
SPACE: 32,
|
4129 |
-
TAB: 9,
|
4130 |
-
UP: 38
|
4131 |
-
};
|
4132 |
-
|
4133 |
-
|
4134 |
-
|
4135 |
-
|
4136 |
-
// Internal use only
|
4137 |
-
var escapeSelector = $.ui.escapeSelector = ( function() {
|
4138 |
-
var selectorEscape = /([!"#$%&'()*+,./:;<=>?@[\]^`{|}~])/g;
|
4139 |
-
return function( selector ) {
|
4140 |
-
return selector.replace( selectorEscape, "\\$1" );
|
4141 |
-
};
|
4142 |
-
} )();
|
4143 |
-
|
4144 |
-
|
4145 |
-
/*!
|
4146 |
-
* jQuery UI Labels 1.12.1
|
4147 |
-
* http://jqueryui.com
|
4148 |
-
*
|
4149 |
-
* Copyright jQuery Foundation and other contributors
|
4150 |
-
* Released under the MIT license.
|
4151 |
-
* http://jquery.org/license
|
4152 |
-
*/
|
4153 |
-
|
4154 |
-
//>>label: labels
|
4155 |
-
//>>group: Core
|
4156 |
-
//>>description: Find all the labels associated with a given input
|
4157 |
-
//>>docs: http://api.jqueryui.com/labels/
|
4158 |
-
|
4159 |
-
|
4160 |
-
|
4161 |
-
var labels = $.fn.labels = function() {
|
4162 |
-
var ancestor, selector, id, labels, ancestors;
|
4163 |
-
|
4164 |
-
// Check control.labels first
|
4165 |
-
if ( this[ 0 ].labels && this[ 0 ].labels.length ) {
|
4166 |
-
return this.pushStack( this[ 0 ].labels );
|
4167 |
-
}
|
4168 |
-
|
4169 |
-
// Support: IE <= 11, FF <= 37, Android <= 2.3 only
|
4170 |
-
// Above browsers do not support control.labels. Everything below is to support them
|
4171 |
-
// as well as document fragments. control.labels does not work on document fragments
|
4172 |
-
labels = this.eq( 0 ).parents( "label" );
|
4173 |
-
|
4174 |
-
// Look for the label based on the id
|
4175 |
-
id = this.attr( "id" );
|
4176 |
-
if ( id ) {
|
4177 |
-
|
4178 |
-
// We don't search against the document in case the element
|
4179 |
-
// is disconnected from the DOM
|
4180 |
-
ancestor = this.eq( 0 ).parents().last();
|
4181 |
-
|
4182 |
-
// Get a full set of top level ancestors
|
4183 |
-
ancestors = ancestor.add( ancestor.length ? ancestor.siblings() : this.siblings() );
|
4184 |
-
|
4185 |
-
// Create a selector for the label based on the id
|
4186 |
-
selector = "label[for='" + $.ui.escapeSelector( id ) + "']";
|
4187 |
-
|
4188 |
-
labels = labels.add( ancestors.find( selector ).addBack( selector ) );
|
4189 |
-
|
4190 |
-
}
|
4191 |
-
|
4192 |
-
// Return whatever we have found for labels
|
4193 |
-
return this.pushStack( labels );
|
4194 |
-
};
|
4195 |
-
|
4196 |
-
|
4197 |
-
/*!
|
4198 |
-
* jQuery UI Scroll Parent 1.12.1
|
4199 |
-
* http://jqueryui.com
|
4200 |
-
*
|
4201 |
-
* Copyright jQuery Foundation and other contributors
|
4202 |
-
* Released under the MIT license.
|
4203 |
-
* http://jquery.org/license
|
4204 |
-
*/
|
4205 |
-
|
4206 |
-
//>>label: scrollParent
|
4207 |
-
//>>group: Core
|
4208 |
-
//>>description: Get the closest ancestor element that is scrollable.
|
4209 |
-
//>>docs: http://api.jqueryui.com/scrollParent/
|
4210 |
-
|
4211 |
-
|
4212 |
-
|
4213 |
-
var scrollParent = $.fn.scrollParent = function( includeHidden ) {
|
4214 |
-
var position = this.css( "position" ),
|
4215 |
-
excludeStaticParent = position === "absolute",
|
4216 |
-
overflowRegex = includeHidden ? /(auto|scroll|hidden)/ : /(auto|scroll)/,
|
4217 |
-
scrollParent = this.parents().filter( function() {
|
4218 |
-
var parent = $( this );
|
4219 |
-
if ( excludeStaticParent && parent.css( "position" ) === "static" ) {
|
4220 |
-
return false;
|
4221 |
-
}
|
4222 |
-
return overflowRegex.test( parent.css( "overflow" ) + parent.css( "overflow-y" ) +
|
4223 |
-
parent.css( "overflow-x" ) );
|
4224 |
-
} ).eq( 0 );
|
4225 |
-
|
4226 |
-
return position === "fixed" || !scrollParent.length ?
|
4227 |
-
$( this[ 0 ].ownerDocument || document ) :
|
4228 |
-
scrollParent;
|
4229 |
-
};
|
4230 |
-
|
4231 |
-
|
4232 |
-
/*!
|
4233 |
-
* jQuery UI Tabbable 1.12.1
|
4234 |
-
* http://jqueryui.com
|
4235 |
-
*
|
4236 |
-
* Copyright jQuery Foundation and other contributors
|
4237 |
-
* Released under the MIT license.
|
4238 |
-
* http://jquery.org/license
|
4239 |
-
*/
|
4240 |
-
|
4241 |
-
//>>label: :tabbable Selector
|
4242 |
-
//>>group: Core
|
4243 |
-
//>>description: Selects elements which can be tabbed to.
|
4244 |
-
//>>docs: http://api.jqueryui.com/tabbable-selector/
|
4245 |
-
|
4246 |
-
|
4247 |
-
|
4248 |
-
var tabbable = $.extend( $.expr[ ":" ], {
|
4249 |
-
tabbable: function( element ) {
|
4250 |
-
var tabIndex = $.attr( element, "tabindex" ),
|
4251 |
-
hasTabindex = tabIndex != null;
|
4252 |
-
return ( !hasTabindex || tabIndex >= 0 ) && $.ui.focusable( element, hasTabindex );
|
4253 |
-
}
|
4254 |
-
} );
|
4255 |
-
|
4256 |
-
|
4257 |
-
/*!
|
4258 |
-
* jQuery UI Unique ID 1.12.1
|
4259 |
-
* http://jqueryui.com
|
4260 |
-
*
|
4261 |
-
* Copyright jQuery Foundation and other contributors
|
4262 |
-
* Released under the MIT license.
|
4263 |
-
* http://jquery.org/license
|
4264 |
-
*/
|
4265 |
-
|
4266 |
-
//>>label: uniqueId
|
4267 |
-
//>>group: Core
|
4268 |
-
//>>description: Functions to generate and remove uniqueId's
|
4269 |
-
//>>docs: http://api.jqueryui.com/uniqueId/
|
4270 |
-
|
4271 |
-
|
4272 |
-
|
4273 |
-
var uniqueId = $.fn.extend( {
|
4274 |
-
uniqueId: ( function() {
|
4275 |
-
var uuid = 0;
|
4276 |
-
|
4277 |
-
return function() {
|
4278 |
-
return this.each( function() {
|
4279 |
-
if ( !this.id ) {
|
4280 |
-
this.id = "ui-id-" + ( ++uuid );
|
4281 |
-
}
|
4282 |
-
} );
|
4283 |
-
};
|
4284 |
-
} )(),
|
4285 |
-
|
4286 |
-
removeUniqueId: function() {
|
4287 |
-
return this.each( function() {
|
4288 |
-
if ( /^ui-id-\d+$/.test( this.id ) ) {
|
4289 |
-
$( this ).removeAttr( "id" );
|
4290 |
-
}
|
4291 |
-
} );
|
4292 |
-
}
|
4293 |
-
} );
|
4294 |
-
|
4295 |
-
|
4296 |
-
/*!
|
4297 |
-
* jQuery UI Accordion 1.12.1
|
4298 |
-
* http://jqueryui.com
|
4299 |
-
*
|
4300 |
-
* Copyright jQuery Foundation and other contributors
|
4301 |
-
* Released under the MIT license.
|
4302 |
-
* http://jquery.org/license
|
4303 |
-
*/
|
4304 |
-
|
4305 |
-
//>>label: Accordion
|
4306 |
-
//>>group: Widgets
|
4307 |
-
// jscs:disable maximumLineLength
|
4308 |
-
//>>description: Displays collapsible content panels for presenting information in a limited amount of space.
|
4309 |
-
// jscs:enable maximumLineLength
|
4310 |
-
//>>docs: http://api.jqueryui.com/accordion/
|
4311 |
-
//>>demos: http://jqueryui.com/accordion/
|
4312 |
-
//>>css.structure: ../../themes/base/core.css
|
4313 |
-
//>>css.structure: ../../themes/base/accordion.css
|
4314 |
-
//>>css.theme: ../../themes/base/theme.css
|
4315 |
-
|
4316 |
-
|
4317 |
-
|
4318 |
-
var widgetsAccordion = $.widget( "ui.accordion", {
|
4319 |
-
version: "1.12.1",
|
4320 |
-
options: {
|
4321 |
-
active: 0,
|
4322 |
-
animate: {},
|
4323 |
-
classes: {
|
4324 |
-
"ui-accordion-header": "ui-corner-top",
|
4325 |
-
"ui-accordion-header-collapsed": "ui-corner-all",
|
4326 |
-
"ui-accordion-content": "ui-corner-bottom"
|
4327 |
-
},
|
4328 |
-
collapsible: false,
|
4329 |
-
event: "click",
|
4330 |
-
header: "> li > :first-child, > :not(li):even",
|
4331 |
-
heightStyle: "auto",
|
4332 |
-
icons: {
|
4333 |
-
activeHeader: "ui-icon-triangle-1-s",
|
4334 |
-
header: "ui-icon-triangle-1-e"
|
4335 |
-
},
|
4336 |
-
|
4337 |
-
// Callbacks
|
4338 |
-
activate: null,
|
4339 |
-
beforeActivate: null
|
4340 |
-
},
|
4341 |
-
|
4342 |
-
hideProps: {
|
4343 |
-
borderTopWidth: "hide",
|
4344 |
-
borderBottomWidth: "hide",
|
4345 |
-
paddingTop: "hide",
|
4346 |
-
paddingBottom: "hide",
|
4347 |
-
height: "hide"
|
4348 |
-
},
|
4349 |
-
|
4350 |
-
showProps: {
|
4351 |
-
borderTopWidth: "show",
|
4352 |
-
borderBottomWidth: "show",
|
4353 |
-
paddingTop: "show",
|
4354 |
-
paddingBottom: "show",
|
4355 |
-
height: "show"
|
4356 |
-
},
|
4357 |
-
|
4358 |
-
_create: function() {
|
4359 |
-
var options = this.options;
|
4360 |
-
|
4361 |
-
this.prevShow = this.prevHide = $();
|
4362 |
-
this._addClass( "ui-accordion", "ui-widget ui-helper-reset" );
|
4363 |
-
this.element.attr( "role", "tablist" );
|
4364 |
-
|
4365 |
-
// Don't allow collapsible: false and active: false / null
|
4366 |
-
if ( !options.collapsible && ( options.active === false || options.active == null ) ) {
|
4367 |
-
options.active = 0;
|
4368 |
-
}
|
4369 |
-
|
4370 |
-
this._processPanels();
|
4371 |
-
|
4372 |
-
// handle negative values
|
4373 |
-
if ( options.active < 0 ) {
|
4374 |
-
options.active += this.headers.length;
|
4375 |
-
}
|
4376 |
-
this._refresh();
|
4377 |
-
},
|
4378 |
-
|
4379 |
-
_getCreateEventData: function() {
|
4380 |
-
return {
|
4381 |
-
header: this.active,
|
4382 |
-
panel: !this.active.length ? $() : this.active.next()
|
4383 |
-
};
|
4384 |
-
},
|
4385 |
-
|
4386 |
-
_createIcons: function() {
|
4387 |
-
var icon, children,
|
4388 |
-
icons = this.options.icons;
|
4389 |
-
|
4390 |
-
if ( icons ) {
|
4391 |
-
icon = $( "<span>" );
|
4392 |
-
this._addClass( icon, "ui-accordion-header-icon", "ui-icon " + icons.header );
|
4393 |
-
icon.prependTo( this.headers );
|
4394 |
-
children = this.active.children( ".ui-accordion-header-icon" );
|
4395 |
-
this._removeClass( children, icons.header )
|
4396 |
-
._addClass( children, null, icons.activeHeader )
|
4397 |
-
._addClass( this.headers, "ui-accordion-icons" );
|
4398 |
-
}
|
4399 |
-
},
|
4400 |
-
|
4401 |
-
_destroyIcons: function() {
|
4402 |
-
this._removeClass( this.headers, "ui-accordion-icons" );
|
4403 |
-
this.headers.children( ".ui-accordion-header-icon" ).remove();
|
4404 |
-
},
|
4405 |
-
|
4406 |
-
_destroy: function() {
|
4407 |
-
var contents;
|
4408 |
-
|
4409 |
-
// Clean up main element
|
4410 |
-
this.element.removeAttr( "role" );
|
4411 |
-
|
4412 |
-
// Clean up headers
|
4413 |
-
this.headers
|
4414 |
-
.removeAttr( "role aria-expanded aria-selected aria-controls tabIndex" )
|
4415 |
-
.removeUniqueId();
|
4416 |
-
|
4417 |
-
this._destroyIcons();
|
4418 |
-
|
4419 |
-
// Clean up content panels
|
4420 |
-
contents = this.headers.next()
|
4421 |
-
.css( "display", "" )
|
4422 |
-
.removeAttr( "role aria-hidden aria-labelledby" )
|
4423 |
-
.removeUniqueId();
|
4424 |
-
|
4425 |
-
if ( this.options.heightStyle !== "content" ) {
|
4426 |
-
contents.css( "height", "" );
|
4427 |
-
}
|
4428 |
-
},
|
4429 |
-
|
4430 |
-
_setOption: function( key, value ) {
|
4431 |
-
if ( key === "active" ) {
|
4432 |
-
|
4433 |
-
// _activate() will handle invalid values and update this.options
|
4434 |
-
this._activate( value );
|
4435 |
-
return;
|
4436 |
-
}
|
4437 |
-
|
4438 |
-
if ( key === "event" ) {
|
4439 |
-
if ( this.options.event ) {
|
4440 |
-
this._off( this.headers, this.options.event );
|
4441 |
-
}
|
4442 |
-
this._setupEvents( value );
|
4443 |
-
}
|
4444 |
-
|
4445 |
-
this._super( key, value );
|
4446 |
-
|
4447 |
-
// Setting collapsible: false while collapsed; open first panel
|
4448 |
-
if ( key === "collapsible" && !value && this.options.active === false ) {
|
4449 |
-
this._activate( 0 );
|
4450 |
-
}
|
4451 |
-
|
4452 |
-
if ( key === "icons" ) {
|
4453 |
-
this._destroyIcons();
|
4454 |
-
if ( value ) {
|
4455 |
-
this._createIcons();
|
4456 |
-
}
|
4457 |
-
}
|
4458 |
-
},
|
4459 |
-
|
4460 |
-
_setOptionDisabled: function( value ) {
|
4461 |
-
this._super( value );
|
4462 |
-
|
4463 |
-
this.element.attr( "aria-disabled", value );
|
4464 |
-
|
4465 |
-
// Support: IE8 Only
|
4466 |
-
// #5332 / #6059 - opacity doesn't cascade to positioned elements in IE
|
4467 |
-
// so we need to add the disabled class to the headers and panels
|
4468 |
-
this._toggleClass( null, "ui-state-disabled", !!value );
|
4469 |
-
this._toggleClass( this.headers.add( this.headers.next() ), null, "ui-state-disabled",
|
4470 |
-
!!value );
|
4471 |
-
},
|
4472 |
-
|
4473 |
-
_keydown: function( event ) {
|
4474 |
-
if ( event.altKey || event.ctrlKey ) {
|
4475 |
-
return;
|
4476 |
-
}
|
4477 |
-
|
4478 |
-
var keyCode = $.ui.keyCode,
|
4479 |
-
length = this.headers.length,
|
4480 |
-
currentIndex = this.headers.index( event.target ),
|
4481 |
-
toFocus = false;
|
4482 |
-
|
4483 |
-
switch ( event.keyCode ) {
|
4484 |
-
case keyCode.RIGHT:
|
4485 |
-
case keyCode.DOWN:
|
4486 |
-
toFocus = this.headers[ ( currentIndex + 1 ) % length ];
|
4487 |
-
break;
|
4488 |
-
case keyCode.LEFT:
|
4489 |
-
case keyCode.UP:
|
4490 |
-
toFocus = this.headers[ ( currentIndex - 1 + length ) % length ];
|
4491 |
-
break;
|
4492 |
-
case keyCode.SPACE:
|
4493 |
-
case keyCode.ENTER:
|
4494 |
-
this._eventHandler( event );
|
4495 |
-
break;
|
4496 |
-
case keyCode.HOME:
|
4497 |
-
toFocus = this.headers[ 0 ];
|
4498 |
-
break;
|
4499 |
-
case keyCode.END:
|
4500 |
-
toFocus = this.headers[ length - 1 ];
|
4501 |
-
break;
|
4502 |
-
}
|
4503 |
-
|
4504 |
-
if ( toFocus ) {
|
4505 |
-
$( event.target ).attr( "tabIndex", -1 );
|
4506 |
-
$( toFocus ).attr( "tabIndex", 0 );
|
4507 |
-
$( toFocus ).trigger( "focus" );
|
4508 |
-
event.preventDefault();
|
4509 |
-
}
|
4510 |
-
},
|
4511 |
-
|
4512 |
-
_panelKeyDown: function( event ) {
|
4513 |
-
if ( event.keyCode === $.ui.keyCode.UP && event.ctrlKey ) {
|
4514 |
-
$( event.currentTarget ).prev().trigger( "focus" );
|
4515 |
-
}
|
4516 |
-
},
|
4517 |
-
|
4518 |
-
refresh: function() {
|
4519 |
-
var options = this.options;
|
4520 |
-
this._processPanels();
|
4521 |
-
|
4522 |
-
// Was collapsed or no panel
|
4523 |
-
if ( ( options.active === false && options.collapsible === true ) ||
|
4524 |
-
!this.headers.length ) {
|
4525 |
-
options.active = false;
|
4526 |
-
this.active = $();
|
4527 |
-
|
4528 |
-
// active false only when collapsible is true
|
4529 |
-
} else if ( options.active === false ) {
|
4530 |
-
this._activate( 0 );
|
4531 |
-
|
4532 |
-
// was active, but active panel is gone
|
4533 |
-
} else if ( this.active.length && !$.contains( this.element[ 0 ], this.active[ 0 ] ) ) {
|
4534 |
-
|
4535 |
-
// all remaining panel are disabled
|
4536 |
-
if ( this.headers.length === this.headers.find( ".ui-state-disabled" ).length ) {
|
4537 |
-
options.active = false;
|
4538 |
-
this.active = $();
|
4539 |
-
|
4540 |
-
// activate previous panel
|
4541 |
-
} else {
|
4542 |
-
this._activate( Math.max( 0, options.active - 1 ) );
|
4543 |
-
}
|
4544 |
-
|
4545 |
-
// was active, active panel still exists
|
4546 |
-
} else {
|
4547 |
-
|
4548 |
-
// make sure active index is correct
|
4549 |
-
options.active = this.headers.index( this.active );
|
4550 |
-
}
|
4551 |
-
|
4552 |
-
this._destroyIcons();
|
4553 |
-
|
4554 |
-
this._refresh();
|
4555 |
-
},
|
4556 |
-
|
4557 |
-
_processPanels: function() {
|
4558 |
-
var prevHeaders = this.headers,
|
4559 |
-
prevPanels = this.panels;
|
4560 |
-
|
4561 |
-
this.headers = this.element.find( this.options.header );
|
4562 |
-
this._addClass( this.headers, "ui-accordion-header ui-accordion-header-collapsed",
|
4563 |
-
"ui-state-default" );
|
4564 |
-
|
4565 |
-
this.panels = this.headers.next().filter( ":not(.ui-accordion-content-active)" ).hide();
|
4566 |
-
this._addClass( this.panels, "ui-accordion-content", "ui-helper-reset ui-widget-content" );
|
4567 |
-
|
4568 |
-
// Avoid memory leaks (#10056)
|
4569 |
-
if ( prevPanels ) {
|
4570 |
-
this._off( prevHeaders.not( this.headers ) );
|
4571 |
-
this._off( prevPanels.not( this.panels ) );
|
4572 |
-
}
|
4573 |
-
},
|
4574 |
-
|
4575 |
-
_refresh: function() {
|
4576 |
-
var maxHeight,
|
4577 |
-
options = this.options,
|
4578 |
-
heightStyle = options.heightStyle,
|
4579 |
-
parent = this.element.parent();
|
4580 |
-
|
4581 |
-
this.active = this._findActive( options.active );
|
4582 |
-
this._addClass( this.active, "ui-accordion-header-active", "ui-state-active" )
|
4583 |
-
._removeClass( this.active, "ui-accordion-header-collapsed" );
|
4584 |
-
this._addClass( this.active.next(), "ui-accordion-content-active" );
|
4585 |
-
this.active.next().show();
|
4586 |
-
|
4587 |
-
this.headers
|
4588 |
-
.attr( "role", "tab" )
|
4589 |
-
.each( function() {
|
4590 |
-
var header = $( this ),
|
4591 |
-
headerId = header.uniqueId().attr( "id" ),
|
4592 |
-
panel = header.next(),
|
4593 |
-
panelId = panel.uniqueId().attr( "id" );
|
4594 |
-
header.attr( "aria-controls", panelId );
|
4595 |
-
panel.attr( "aria-labelledby", headerId );
|
4596 |
-
} )
|
4597 |
-
.next()
|
4598 |
-
.attr( "role", "tabpanel" );
|
4599 |
-
|
4600 |
-
this.headers
|
4601 |
-
.not( this.active )
|
4602 |
-
.attr( {
|
4603 |
-
"aria-selected": "false",
|
4604 |
-
"aria-expanded": "false",
|
4605 |
-
tabIndex: -1
|
4606 |
-
} )
|
4607 |
-
.next()
|
4608 |
-
.attr( {
|
4609 |
-
"aria-hidden": "true"
|
4610 |
-
} )
|
4611 |
-
.hide();
|
4612 |
-
|
4613 |
-
// Make sure at least one header is in the tab order
|
4614 |
-
if ( !this.active.length ) {
|
4615 |
-
this.headers.eq( 0 ).attr( "tabIndex", 0 );
|
4616 |
-
} else {
|
4617 |
-
this.active.attr( {
|
4618 |
-
"aria-selected": "true",
|
4619 |
-
"aria-expanded": "true",
|
4620 |
-
tabIndex: 0
|
4621 |
-
} )
|
4622 |
-
.next()
|
4623 |
-
.attr( {
|
4624 |
-
"aria-hidden": "false"
|
4625 |
-
} );
|
4626 |
-
}
|
4627 |
-
|
4628 |
-
this._createIcons();
|
4629 |
-
|
4630 |
-
this._setupEvents( options.event );
|
4631 |
-
|
4632 |
-
if ( heightStyle === "fill" ) {
|
4633 |
-
maxHeight = parent.height();
|
4634 |
-
this.element.siblings( ":visible" ).each( function() {
|
4635 |
-
var elem = $( this ),
|
4636 |
-
position = elem.css( "position" );
|
4637 |
-
|
4638 |
-
if ( position === "absolute" || position === "fixed" ) {
|
4639 |
-
return;
|
4640 |
-
}
|
4641 |
-
maxHeight -= elem.outerHeight( true );
|
4642 |
-
} );
|
4643 |
-
|
4644 |
-
this.headers.each( function() {
|
4645 |
-
maxHeight -= $( this ).outerHeight( true );
|
4646 |
-
} );
|
4647 |
-
|
4648 |
-
this.headers.next()
|
4649 |
-
.each( function() {
|
4650 |
-
$( this ).height( Math.max( 0, maxHeight -
|
4651 |
-
$( this ).innerHeight() + $( this ).height() ) );
|
4652 |
-
} )
|
4653 |
-
.css( "overflow", "auto" );
|
4654 |
-
} else if ( heightStyle === "auto" ) {
|
4655 |
-
maxHeight = 0;
|
4656 |
-
this.headers.next()
|
4657 |
-
.each( function() {
|
4658 |
-
var isVisible = $( this ).is( ":visible" );
|
4659 |
-
if ( !isVisible ) {
|
4660 |
-
$( this ).show();
|
4661 |
-
}
|
4662 |
-
maxHeight = Math.max( maxHeight, $( this ).css( "height", "" ).height() );
|
4663 |
-
if ( !isVisible ) {
|
4664 |
-
$( this ).hide();
|
4665 |
-
}
|
4666 |
-
} )
|
4667 |
-
.height( maxHeight );
|
4668 |
-
}
|
4669 |
-
},
|
4670 |
-
|
4671 |
-
_activate: function( index ) {
|
4672 |
-
var active = this._findActive( index )[ 0 ];
|
4673 |
-
|
4674 |
-
// Trying to activate the already active panel
|
4675 |
-
if ( active === this.active[ 0 ] ) {
|
4676 |
-
return;
|
4677 |
-
}
|
4678 |
-
|
4679 |
-
// Trying to collapse, simulate a click on the currently active header
|
4680 |
-
active = active || this.active[ 0 ];
|
4681 |
-
|
4682 |
-
this._eventHandler( {
|
4683 |
-
target: active,
|
4684 |
-
currentTarget: active,
|
4685 |
-
preventDefault: $.noop
|
4686 |
-
} );
|
4687 |
-
},
|
4688 |
-
|
4689 |
-
_findActive: function( selector ) {
|
4690 |
-
return typeof selector === "number" ? this.headers.eq( selector ) : $();
|
4691 |
-
},
|
4692 |
-
|
4693 |
-
_setupEvents: function( event ) {
|
4694 |
-
var events = {
|
4695 |
-
keydown: "_keydown"
|
4696 |
-
};
|
4697 |
-
if ( event ) {
|
4698 |
-
$.each( event.split( " " ), function( index, eventName ) {
|
4699 |
-
events[ eventName ] = "_eventHandler";
|
4700 |
-
} );
|
4701 |
-
}
|
4702 |
-
|
4703 |
-
this._off( this.headers.add( this.headers.next() ) );
|
4704 |
-
this._on( this.headers, events );
|
4705 |
-
this._on( this.headers.next(), { keydown: "_panelKeyDown" } );
|
4706 |
-
this._hoverable( this.headers );
|
4707 |
-
this._focusable( this.headers );
|
4708 |
-
},
|
4709 |
-
|
4710 |
-
_eventHandler: function( event ) {
|
4711 |
-
var activeChildren, clickedChildren,
|
4712 |
-
options = this.options,
|
4713 |
-
active = this.active,
|
4714 |
-
clicked = $( event.currentTarget ),
|
4715 |
-
clickedIsActive = clicked[ 0 ] === active[ 0 ],
|
4716 |
-
collapsing = clickedIsActive && options.collapsible,
|
4717 |
-
toShow = collapsing ? $() : clicked.next(),
|
4718 |
-
toHide = active.next(),
|
4719 |
-
eventData = {
|
4720 |
-
oldHeader: active,
|
4721 |
-
oldPanel: toHide,
|
4722 |
-
newHeader: collapsing ? $() : clicked,
|
4723 |
-
newPanel: toShow
|
4724 |
-
};
|
4725 |
-
|
4726 |
-
event.preventDefault();
|
4727 |
-
|
4728 |
-
if (
|
4729 |
-
|
4730 |
-
// click on active header, but not collapsible
|
4731 |
-
( clickedIsActive && !options.collapsible ) ||
|
4732 |
-
|
4733 |
-
// allow canceling activation
|
4734 |
-
( this._trigger( "beforeActivate", event, eventData ) === false ) ) {
|
4735 |
-
return;
|
4736 |
-
}
|
4737 |
-
|
4738 |
-
options.active = collapsing ? false : this.headers.index( clicked );
|
4739 |
-
|
4740 |
-
// When the call to ._toggle() comes after the class changes
|
4741 |
-
// it causes a very odd bug in IE 8 (see #6720)
|
4742 |
-
this.active = clickedIsActive ? $() : clicked;
|
4743 |
-
this._toggle( eventData );
|
4744 |
-
|
4745 |
-
// Switch classes
|
4746 |
-
// corner classes on the previously active header stay after the animation
|
4747 |
-
this._removeClass( active, "ui-accordion-header-active", "ui-state-active" );
|
4748 |
-
if ( options.icons ) {
|
4749 |
-
activeChildren = active.children( ".ui-accordion-header-icon" );
|
4750 |
-
this._removeClass( activeChildren, null, options.icons.activeHeader )
|
4751 |
-
._addClass( activeChildren, null, options.icons.header );
|
4752 |
-
}
|
4753 |
-
|
4754 |
-
if ( !clickedIsActive ) {
|
4755 |
-
this._removeClass( clicked, "ui-accordion-header-collapsed" )
|
4756 |
-
._addClass( clicked, "ui-accordion-header-active", "ui-state-active" );
|
4757 |
-
if ( options.icons ) {
|
4758 |
-
clickedChildren = clicked.children( ".ui-accordion-header-icon" );
|
4759 |
-
this._removeClass( clickedChildren, null, options.icons.header )
|
4760 |
-
._addClass( clickedChildren, null, options.icons.activeHeader );
|
4761 |
-
}
|
4762 |
-
|
4763 |
-
this._addClass( clicked.next(), "ui-accordion-content-active" );
|
4764 |
-
}
|
4765 |
-
},
|
4766 |
-
|
4767 |
-
_toggle: function( data ) {
|
4768 |
-
var toShow = data.newPanel,
|
4769 |
-
toHide = this.prevShow.length ? this.prevShow : data.oldPanel;
|
4770 |
-
|
4771 |
-
// Handle activating a panel during the animation for another activation
|
4772 |
-
this.prevShow.add( this.prevHide ).stop( true, true );
|
4773 |
-
this.prevShow = toShow;
|
4774 |
-
this.prevHide = toHide;
|
4775 |
-
|
4776 |
-
if ( this.options.animate ) {
|
4777 |
-
this._animate( toShow, toHide, data );
|
4778 |
-
} else {
|
4779 |
-
toHide.hide();
|
4780 |
-
toShow.show();
|
4781 |
-
this._toggleComplete( data );
|
4782 |
-
}
|
4783 |
-
|
4784 |
-
toHide.attr( {
|
4785 |
-
"aria-hidden": "true"
|
4786 |
-
} );
|
4787 |
-
toHide.prev().attr( {
|
4788 |
-
"aria-selected": "false",
|
4789 |
-
"aria-expanded": "false"
|
4790 |
-
} );
|
4791 |
-
|
4792 |
-
// if we're switching panels, remove the old header from the tab order
|
4793 |
-
// if we're opening from collapsed state, remove the previous header from the tab order
|
4794 |
-
// if we're collapsing, then keep the collapsing header in the tab order
|
4795 |
-
if ( toShow.length && toHide.length ) {
|
4796 |
-
toHide.prev().attr( {
|
4797 |
-
"tabIndex": -1,
|
4798 |
-
"aria-expanded": "false"
|
4799 |
-
} );
|
4800 |
-
} else if ( toShow.length ) {
|
4801 |
-
this.headers.filter( function() {
|
4802 |
-
return parseInt( $( this ).attr( "tabIndex" ), 10 ) === 0;
|
4803 |
-
} )
|
4804 |
-
.attr( "tabIndex", -1 );
|
4805 |
-
}
|
4806 |
-
|
4807 |
-
toShow
|
4808 |
-
.attr( "aria-hidden", "false" )
|
4809 |
-
.prev()
|
4810 |
-
.attr( {
|
4811 |
-
"aria-selected": "true",
|
4812 |
-
"aria-expanded": "true",
|
4813 |
-
tabIndex: 0
|
4814 |
-
} );
|
4815 |
-
},
|
4816 |
-
|
4817 |
-
_animate: function( toShow, toHide, data ) {
|
4818 |
-
var total, easing, duration,
|
4819 |
-
that = this,
|
4820 |
-
adjust = 0,
|
4821 |
-
boxSizing = toShow.css( "box-sizing" ),
|
4822 |
-
down = toShow.length &&
|
4823 |
-
( !toHide.length || ( toShow.index() < toHide.index() ) ),
|
4824 |
-
animate = this.options.animate || {},
|
4825 |
-
options = down && animate.down || animate,
|
4826 |
-
complete = function() {
|
4827 |
-
that._toggleComplete( data );
|
4828 |
-
};
|
4829 |
-
|
4830 |
-
if ( typeof options === "number" ) {
|
4831 |
-
duration = options;
|
4832 |
-
}
|
4833 |
-
if ( typeof options === "string" ) {
|
4834 |
-
easing = options;
|
4835 |
-
}
|
4836 |
-
|
4837 |
-
// fall back from options to animation in case of partial down settings
|
4838 |
-
easing = easing || options.easing || animate.easing;
|
4839 |
-
duration = duration || options.duration || animate.duration;
|
4840 |
-
|
4841 |
-
if ( !toHide.length ) {
|
4842 |
-
return toShow.animate( this.showProps, duration, easing, complete );
|
4843 |
-
}
|
4844 |
-
if ( !toShow.length ) {
|
4845 |
-
return toHide.animate( this.hideProps, duration, easing, complete );
|
4846 |
-
}
|
4847 |
-
|
4848 |
-
total = toShow.show().outerHeight();
|
4849 |
-
toHide.animate( this.hideProps, {
|
4850 |
-
duration: duration,
|
4851 |
-
easing: easing,
|
4852 |
-
step: function( now, fx ) {
|
4853 |
-
fx.now = Math.round( now );
|
4854 |
-
}
|
4855 |
-
} );
|
4856 |
-
toShow
|
4857 |
-
.hide()
|
4858 |
-
.animate( this.showProps, {
|
4859 |
-
duration: duration,
|
4860 |
-
easing: easing,
|
4861 |
-
complete: complete,
|
4862 |
-
step: function( now, fx ) {
|
4863 |
-
fx.now = Math.round( now );
|
4864 |
-
if ( fx.prop !== "height" ) {
|
4865 |
-
if ( boxSizing === "content-box" ) {
|
4866 |
-
adjust += fx.now;
|
4867 |
-
}
|
4868 |
-
} else if ( that.options.heightStyle !== "content" ) {
|
4869 |
-
fx.now = Math.round( total - toHide.outerHeight() - adjust );
|
4870 |
-
adjust = 0;
|
4871 |
-
}
|
4872 |
-
}
|
4873 |
-
} );
|
4874 |
-
},
|
4875 |
-
|
4876 |
-
_toggleComplete: function( data ) {
|
4877 |
-
var toHide = data.oldPanel,
|
4878 |
-
prev = toHide.prev();
|
4879 |
-
|
4880 |
-
this._removeClass( toHide, "ui-accordion-content-active" );
|
4881 |
-
this._removeClass( prev, "ui-accordion-header-active" )
|
4882 |
-
._addClass( prev, "ui-accordion-header-collapsed" );
|
4883 |
-
|
4884 |
-
// Work around for rendering bug in IE (#5421)
|
4885 |
-
if ( toHide.length ) {
|
4886 |
-
toHide.parent()[ 0 ].className = toHide.parent()[ 0 ].className;
|
4887 |
-
}
|
4888 |
-
this._trigger( "activate", null, data );
|
4889 |
-
}
|
4890 |
-
} );
|
4891 |
-
|
4892 |
-
|
4893 |
-
|
4894 |
-
var safeActiveElement = $.ui.safeActiveElement = function( document ) {
|
4895 |
-
var activeElement;
|
4896 |
-
|
4897 |
-
// Support: IE 9 only
|
4898 |
-
// IE9 throws an "Unspecified error" accessing document.activeElement from an <iframe>
|
4899 |
-
try {
|
4900 |
-
activeElement = document.activeElement;
|
4901 |
-
} catch ( error ) {
|
4902 |
-
activeElement = document.body;
|
4903 |
-
}
|
4904 |
-
|
4905 |
-
// Support: IE 9 - 11 only
|
4906 |
-
// IE may return null instead of an element
|
4907 |
-
// Interestingly, this only seems to occur when NOT in an iframe
|
4908 |
-
if ( !activeElement ) {
|
4909 |
-
activeElement = document.body;
|
4910 |
-
}
|
4911 |
-
|
4912 |
-
// Support: IE 11 only
|
4913 |
-
// IE11 returns a seemingly empty object in some cases when accessing
|
4914 |
-
// document.activeElement from an <iframe>
|
4915 |
-
if ( !activeElement.nodeName ) {
|
4916 |
-
activeElement = document.body;
|
4917 |
-
}
|
4918 |
-
|
4919 |
-
return activeElement;
|
4920 |
-
};
|
4921 |
-
|
4922 |
-
|
4923 |
-
/*!
|
4924 |
-
* jQuery UI Menu 1.12.1
|
4925 |
-
* http://jqueryui.com
|
4926 |
-
*
|
4927 |
-
* Copyright jQuery Foundation and other contributors
|
4928 |
-
* Released under the MIT license.
|
4929 |
-
* http://jquery.org/license
|
4930 |
-
*/
|
4931 |
-
|
4932 |
-
//>>label: Menu
|
4933 |
-
//>>group: Widgets
|
4934 |
-
//>>description: Creates nestable menus.
|
4935 |
-
//>>docs: http://api.jqueryui.com/menu/
|
4936 |
-
//>>demos: http://jqueryui.com/menu/
|
4937 |
-
//>>css.structure: ../../themes/base/core.css
|
4938 |
-
//>>css.structure: ../../themes/base/menu.css
|
4939 |
-
//>>css.theme: ../../themes/base/theme.css
|
4940 |
-
|
4941 |
-
|
4942 |
-
|
4943 |
-
var widgetsMenu = $.widget( "ui.menu", {
|
4944 |
-
version: "1.12.1",
|
4945 |
-
defaultElement: "<ul>",
|
4946 |
-
delay: 300,
|
4947 |
-
options: {
|
4948 |
-
icons: {
|
4949 |
-
submenu: "ui-icon-caret-1-e"
|
4950 |
-
},
|
4951 |
-
items: "> *",
|
4952 |
-
menus: "ul",
|
4953 |
-
position: {
|
4954 |
-
my: "left top",
|
4955 |
-
at: "right top"
|
4956 |
-
},
|
4957 |
-
role: "menu",
|
4958 |
-
|
4959 |
-
// Callbacks
|
4960 |
-
blur: null,
|
4961 |
-
focus: null,
|
4962 |
-
select: null
|
4963 |
-
},
|
4964 |
-
|
4965 |
-
_create: function() {
|
4966 |
-
this.activeMenu = this.element;
|
4967 |
-
|
4968 |
-
// Flag used to prevent firing of the click handler
|
4969 |
-
// as the event bubbles up through nested menus
|
4970 |
-
this.mouseHandled = false;
|
4971 |
-
this.element
|
4972 |
-
.uniqueId()
|
4973 |
-
.attr( {
|
4974 |
-
role: this.options.role,
|
4975 |
-
tabIndex: 0
|
4976 |
-
} );
|
4977 |
-
|
4978 |
-
this._addClass( "ui-menu", "ui-widget ui-widget-content" );
|
4979 |
-
this._on( {
|
4980 |
-
|
4981 |
-
// Prevent focus from sticking to links inside menu after clicking
|
4982 |
-
// them (focus should always stay on UL during navigation).
|
4983 |
-
"mousedown .ui-menu-item": function( event ) {
|
4984 |
-
event.preventDefault();
|
4985 |
-
},
|
4986 |
-
"click .ui-menu-item": function( event ) {
|
4987 |
-
var target = $( event.target );
|
4988 |
-
var active = $( $.ui.safeActiveElement( this.document[ 0 ] ) );
|
4989 |
-
if ( !this.mouseHandled && target.not( ".ui-state-disabled" ).length ) {
|
4990 |
-
this.select( event );
|
4991 |
-
|
4992 |
-
// Only set the mouseHandled flag if the event will bubble, see #9469.
|
4993 |
-
if ( !event.isPropagationStopped() ) {
|
4994 |
-
this.mouseHandled = true;
|
4995 |
-
}
|
4996 |
-
|
4997 |
-
// Open submenu on click
|
4998 |
-
if ( target.has( ".ui-menu" ).length ) {
|
4999 |
-
this.expand( event );
|
5000 |
-
} else if ( !this.element.is( ":focus" ) &&
|
5001 |
-
active.closest( ".ui-menu" ).length ) {
|
5002 |
-
|
5003 |
-
// Redirect focus to the menu
|
5004 |
-
this.element.trigger( "focus", [ true ] );
|
5005 |
-
|
5006 |
-
// If the active item is on the top level, let it stay active.
|
5007 |
-
// Otherwise, blur the active item since it is no longer visible.
|
5008 |
-
if ( this.active && this.active.parents( ".ui-menu" ).length === 1 ) {
|
5009 |
-
clearTimeout( this.timer );
|
5010 |
-
}
|
5011 |
-
}
|
5012 |
-
}
|
5013 |
-
},
|
5014 |
-
"mouseenter .ui-menu-item": function( event ) {
|
5015 |
-
|
5016 |
-
// Ignore mouse events while typeahead is active, see #10458.
|
5017 |
-
// Prevents focusing the wrong item when typeahead causes a scroll while the mouse
|
5018 |
-
// is over an item in the menu
|
5019 |
-
if ( this.previousFilter ) {
|
5020 |
-
return;
|
5021 |
-
}
|
5022 |
-
|
5023 |
-
var actualTarget = $( event.target ).closest( ".ui-menu-item" ),
|
5024 |
-
target = $( event.currentTarget );
|
5025 |
-
|
5026 |
-
// Ignore bubbled events on parent items, see #11641
|
5027 |
-
if ( actualTarget[ 0 ] !== target[ 0 ] ) {
|
5028 |
-
return;
|
5029 |
-
}
|
5030 |
-
|
5031 |
-
// Remove ui-state-active class from siblings of the newly focused menu item
|
5032 |
-
// to avoid a jump caused by adjacent elements both having a class with a border
|
5033 |
-
this._removeClass( target.siblings().children( ".ui-state-active" ),
|
5034 |
-
null, "ui-state-active" );
|
5035 |
-
this.focus( event, target );
|
5036 |
-
},
|
5037 |
-
mouseleave: "collapseAll",
|
5038 |
-
"mouseleave .ui-menu": "collapseAll",
|
5039 |
-
focus: function( event, keepActiveItem ) {
|
5040 |
-
|
5041 |
-
// If there's already an active item, keep it active
|
5042 |
-
// If not, activate the first item
|
5043 |
-
var item = this.active || this.element.find( this.options.items ).eq( 0 );
|
5044 |
-
|
5045 |
-
if ( !keepActiveItem ) {
|
5046 |
-
this.focus( event, item );
|
5047 |
-
}
|
5048 |
-
},
|
5049 |
-
blur: function( event ) {
|
5050 |
-
this._delay( function() {
|
5051 |
-
var notContained = !$.contains(
|
5052 |
-
this.element[ 0 ],
|
5053 |
-
$.ui.safeActiveElement( this.document[ 0 ] )
|
5054 |
-
);
|
5055 |
-
if ( notContained ) {
|
5056 |
-
this.collapseAll( event );
|
5057 |
-
}
|
5058 |
-
} );
|
5059 |
-
},
|
5060 |
-
keydown: "_keydown"
|
5061 |
-
} );
|
5062 |
-
|
5063 |
-
this.refresh();
|
5064 |
-
|
5065 |
-
// Clicks outside of a menu collapse any open menus
|
5066 |
-
this._on( this.document, {
|
5067 |
-
click: function( event ) {
|
5068 |
-
if ( this._closeOnDocumentClick( event ) ) {
|
5069 |
-
this.collapseAll( event );
|
5070 |
-
}
|
5071 |
-
|
5072 |
-
// Reset the mouseHandled flag
|
5073 |
-
this.mouseHandled = false;
|
5074 |
-
}
|
5075 |
-
} );
|
5076 |
-
},
|
5077 |
-
|
5078 |
-
_destroy: function() {
|
5079 |
-
var items = this.element.find( ".ui-menu-item" )
|
5080 |
-
.removeAttr( "role aria-disabled" ),
|
5081 |
-
submenus = items.children( ".ui-menu-item-wrapper" )
|
5082 |
-
.removeUniqueId()
|
5083 |
-
.removeAttr( "tabIndex role aria-haspopup" );
|
5084 |
-
|
5085 |
-
// Destroy (sub)menus
|
5086 |
-
this.element
|
5087 |
-
.removeAttr( "aria-activedescendant" )
|
5088 |
-
.find( ".ui-menu" ).addBack()
|
5089 |
-
.removeAttr( "role aria-labelledby aria-expanded aria-hidden aria-disabled " +
|
5090 |
-
"tabIndex" )
|
5091 |
-
.removeUniqueId()
|
5092 |
-
.show();
|
5093 |
-
|
5094 |
-
submenus.children().each( function() {
|
5095 |
-
var elem = $( this );
|
5096 |
-
if ( elem.data( "ui-menu-submenu-caret" ) ) {
|
5097 |
-
elem.remove();
|
5098 |
-
}
|
5099 |
-
} );
|
5100 |
-
},
|
5101 |
-
|
5102 |
-
_keydown: function( event ) {
|
5103 |
-
var match, prev, character, skip,
|
5104 |
-
preventDefault = true;
|
5105 |
-
|
5106 |
-
switch ( event.keyCode ) {
|
5107 |
-
case $.ui.keyCode.PAGE_UP:
|
5108 |
-
this.previousPage( event );
|
5109 |
-
break;
|
5110 |
-
case $.ui.keyCode.PAGE_DOWN:
|
5111 |
-
this.nextPage( event );
|
5112 |
-
break;
|
5113 |
-
case $.ui.keyCode.HOME:
|
5114 |
-
this._move( "first", "first", event );
|
5115 |
-
break;
|
5116 |
-
case $.ui.keyCode.END:
|
5117 |
-
this._move( "last", "last", event );
|
5118 |
-
break;
|
5119 |
-
case $.ui.keyCode.UP:
|
5120 |
-
this.previous( event );
|
5121 |
-
break;
|
5122 |
-
case $.ui.keyCode.DOWN:
|
5123 |
-
this.next( event );
|
5124 |
-
break;
|
5125 |
-
case $.ui.keyCode.LEFT:
|
5126 |
-
this.collapse( event );
|
5127 |
-
break;
|
5128 |
-
case $.ui.keyCode.RIGHT:
|
5129 |
-
if ( this.active && !this.active.is( ".ui-state-disabled" ) ) {
|
5130 |
-
this.expand( event );
|
5131 |
-
}
|
5132 |
-
break;
|
5133 |
-
case $.ui.keyCode.ENTER:
|
5134 |
-
case $.ui.keyCode.SPACE:
|
5135 |
-
this._activate( event );
|
5136 |
-
break;
|
5137 |
-
case $.ui.keyCode.ESCAPE:
|
5138 |
-
this.collapse( event );
|
5139 |
-
break;
|
5140 |
-
default:
|
5141 |
-
preventDefault = false;
|
5142 |
-
prev = this.previousFilter || "";
|
5143 |
-
skip = false;
|
5144 |
-
|
5145 |
-
// Support number pad values
|
5146 |
-
character = event.keyCode >= 96 && event.keyCode <= 105 ?
|
5147 |
-
( event.keyCode - 96 ).toString() : String.fromCharCode( event.keyCode );
|
5148 |
-
|
5149 |
-
clearTimeout( this.filterTimer );
|
5150 |
-
|
5151 |
-
if ( character === prev ) {
|
5152 |
-
skip = true;
|
5153 |
-
} else {
|
5154 |
-
character = prev + character;
|
5155 |
-
}
|
5156 |
-
|
5157 |
-
match = this._filterMenuItems( character );
|
5158 |
-
match = skip && match.index( this.active.next() ) !== -1 ?
|
5159 |
-
this.active.nextAll( ".ui-menu-item" ) :
|
5160 |
-
match;
|
5161 |
-
|
5162 |
-
// If no matches on the current filter, reset to the last character pressed
|
5163 |
-
// to move down the menu to the first item that starts with that character
|
5164 |
-
if ( !match.length ) {
|
5165 |
-
character = String.fromCharCode( event.keyCode );
|
5166 |
-
match = this._filterMenuItems( character );
|
5167 |
-
}
|
5168 |
-
|
5169 |
-
if ( match.length ) {
|
5170 |
-
this.focus( event, match );
|
5171 |
-
this.previousFilter = character;
|
5172 |
-
this.filterTimer = this._delay( function() {
|
5173 |
-
delete this.previousFilter;
|
5174 |
-
}, 1000 );
|
5175 |
-
} else {
|
5176 |
-
delete this.previousFilter;
|
5177 |
-
}
|
5178 |
-
}
|
5179 |
-
|
5180 |
-
if ( preventDefault ) {
|
5181 |
-
event.preventDefault();
|
5182 |
-
}
|
5183 |
-
},
|
5184 |
-
|
5185 |
-
_activate: function( event ) {
|
5186 |
-
if ( this.active && !this.active.is( ".ui-state-disabled" ) ) {
|
5187 |
-
if ( this.active.children( "[aria-haspopup='true']" ).length ) {
|
5188 |
-
this.expand( event );
|
5189 |
-
} else {
|
5190 |
-
this.select( event );
|
5191 |
-
}
|
5192 |
-
}
|
5193 |
-
},
|
5194 |
-
|
5195 |
-
refresh: function() {
|
5196 |
-
var menus, items, newSubmenus, newItems, newWrappers,
|
5197 |
-
that = this,
|
5198 |
-
icon = this.options.icons.submenu,
|
5199 |
-
submenus = this.element.find( this.options.menus );
|
5200 |
-
|
5201 |
-
this._toggleClass( "ui-menu-icons", null, !!this.element.find( ".ui-icon" ).length );
|
5202 |
-
|
5203 |
-
// Initialize nested menus
|
5204 |
-
newSubmenus = submenus.filter( ":not(.ui-menu)" )
|
5205 |
-
.hide()
|
5206 |
-
.attr( {
|
5207 |
-
role: this.options.role,
|
5208 |
-
"aria-hidden": "true",
|
5209 |
-
"aria-expanded": "false"
|
5210 |
-
} )
|
5211 |
-
.each( function() {
|
5212 |
-
var menu = $( this ),
|
5213 |
-
item = menu.prev(),
|
5214 |
-
submenuCaret = $( "<span>" ).data( "ui-menu-submenu-caret", true );
|
5215 |
-
|
5216 |
-
that._addClass( submenuCaret, "ui-menu-icon", "ui-icon " + icon );
|
5217 |
-
item
|
5218 |
-
.attr( "aria-haspopup", "true" )
|
5219 |
-
.prepend( submenuCaret );
|
5220 |
-
menu.attr( "aria-labelledby", item.attr( "id" ) );
|
5221 |
-
} );
|
5222 |
-
|
5223 |
-
this._addClass( newSubmenus, "ui-menu", "ui-widget ui-widget-content ui-front" );
|
5224 |
-
|
5225 |
-
menus = submenus.add( this.element );
|
5226 |
-
items = menus.find( this.options.items );
|
5227 |
-
|
5228 |
-
// Initialize menu-items containing spaces and/or dashes only as dividers
|
5229 |
-
items.not( ".ui-menu-item" ).each( function() {
|
5230 |
-
var item = $( this );
|
5231 |
-
if ( that._isDivider( item ) ) {
|
5232 |
-
that._addClass( item, "ui-menu-divider", "ui-widget-content" );
|
5233 |
-
}
|
5234 |
-
} );
|
5235 |
-
|
5236 |
-
// Don't refresh list items that are already adapted
|
5237 |
-
newItems = items.not( ".ui-menu-item, .ui-menu-divider" );
|
5238 |
-
newWrappers = newItems.children()
|
5239 |
-
.not( ".ui-menu" )
|
5240 |
-
.uniqueId()
|
5241 |
-
.attr( {
|
5242 |
-
tabIndex: -1,
|
5243 |
-
role: this._itemRole()
|
5244 |
-
} );
|
5245 |
-
this._addClass( newItems, "ui-menu-item" )
|
5246 |
-
._addClass( newWrappers, "ui-menu-item-wrapper" );
|
5247 |
-
|
5248 |
-
// Add aria-disabled attribute to any disabled menu item
|
5249 |
-
items.filter( ".ui-state-disabled" ).attr( "aria-disabled", "true" );
|
5250 |
-
|
5251 |
-
// If the active item has been removed, blur the menu
|
5252 |
-
if ( this.active && !$.contains( this.element[ 0 ], this.active[ 0 ] ) ) {
|
5253 |
-
this.blur();
|
5254 |
-
}
|
5255 |
-
},
|
5256 |
-
|
5257 |
-
_itemRole: function() {
|
5258 |
-
return {
|
5259 |
-
menu: "menuitem",
|
5260 |
-
listbox: "option"
|
5261 |
-
}[ this.options.role ];
|
5262 |
-
},
|
5263 |
-
|
5264 |
-
_setOption: function( key, value ) {
|
5265 |
-
if ( key === "icons" ) {
|
5266 |
-
var icons = this.element.find( ".ui-menu-icon" );
|
5267 |
-
this._removeClass( icons, null, this.options.icons.submenu )
|
5268 |
-
._addClass( icons, null, value.submenu );
|
5269 |
-
}
|
5270 |
-
this._super( key, value );
|
5271 |
-
},
|
5272 |
-
|
5273 |
-
_setOptionDisabled: function( value ) {
|
5274 |
-
this._super( value );
|
5275 |
-
|
5276 |
-
this.element.attr( "aria-disabled", String( value ) );
|
5277 |
-
this._toggleClass( null, "ui-state-disabled", !!value );
|
5278 |
-
},
|
5279 |
-
|
5280 |
-
focus: function( event, item ) {
|
5281 |
-
var nested, focused, activeParent;
|
5282 |
-
this.blur( event, event && event.type === "focus" );
|
5283 |
-
|
5284 |
-
this._scrollIntoView( item );
|
5285 |
-
|
5286 |
-
this.active = item.first();
|
5287 |
-
|
5288 |
-
focused = this.active.children( ".ui-menu-item-wrapper" );
|
5289 |
-
this._addClass( focused, null, "ui-state-active" );
|
5290 |
-
|
5291 |
-
// Only update aria-activedescendant if there's a role
|
5292 |
-
// otherwise we assume focus is managed elsewhere
|
5293 |
-
if ( this.options.role ) {
|
5294 |
-
this.element.attr( "aria-activedescendant", focused.attr( "id" ) );
|
5295 |
-
}
|
5296 |
-
|
5297 |
-
// Highlight active parent menu item, if any
|
5298 |
-
activeParent = this.active
|
5299 |
-
.parent()
|
5300 |
-
.closest( ".ui-menu-item" )
|
5301 |
-
.children( ".ui-menu-item-wrapper" );
|
5302 |
-
this._addClass( activeParent, null, "ui-state-active" );
|
5303 |
-
|
5304 |
-
if ( event && event.type === "keydown" ) {
|
5305 |
-
this._close();
|
5306 |
-
} else {
|
5307 |
-
this.timer = this._delay( function() {
|
5308 |
-
this._close();
|
5309 |
-
}, this.delay );
|
5310 |
-
}
|
5311 |
-
|
5312 |
-
nested = item.children( ".ui-menu" );
|
5313 |
-
if ( nested.length && event && ( /^mouse/.test( event.type ) ) ) {
|
5314 |
-
this._startOpening( nested );
|
5315 |
-
}
|
5316 |
-
this.activeMenu = item.parent();
|
5317 |
-
|
5318 |
-
this._trigger( "focus", event, { item: item } );
|
5319 |
-
},
|
5320 |
-
|
5321 |
-
_scrollIntoView: function( item ) {
|
5322 |
-
var borderTop, paddingTop, offset, scroll, elementHeight, itemHeight;
|
5323 |
-
if ( this._hasScroll() ) {
|
5324 |
-
borderTop = parseFloat( $.css( this.activeMenu[ 0 ], "borderTopWidth" ) ) || 0;
|
5325 |
-
paddingTop = parseFloat( $.css( this.activeMenu[ 0 ], "paddingTop" ) ) || 0;
|
5326 |
-
offset = item.offset().top - this.activeMenu.offset().top - borderTop - paddingTop;
|
5327 |
-
scroll = this.activeMenu.scrollTop();
|
5328 |
-
elementHeight = this.activeMenu.height();
|
5329 |
-
itemHeight = item.outerHeight();
|
5330 |
-
|
5331 |
-
if ( offset < 0 ) {
|
5332 |
-
this.activeMenu.scrollTop( scroll + offset );
|
5333 |
-
} else if ( offset + itemHeight > elementHeight ) {
|
5334 |
-
this.activeMenu.scrollTop( scroll + offset - elementHeight + itemHeight );
|
5335 |
-
}
|
5336 |
-
}
|
5337 |
-
},
|
5338 |
-
|
5339 |
-
blur: function( event, fromFocus ) {
|
5340 |
-
if ( !fromFocus ) {
|
5341 |
-
clearTimeout( this.timer );
|
5342 |
-
}
|
5343 |
-
|
5344 |
-
if ( !this.active ) {
|
5345 |
-
return;
|
5346 |
-
}
|
5347 |
-
|
5348 |
-
this._removeClass( this.active.children( ".ui-menu-item-wrapper" ),
|
5349 |
-
null, "ui-state-active" );
|
5350 |
-
|
5351 |
-
this._trigger( "blur", event, { item: this.active } );
|
5352 |
-
this.active = null;
|
5353 |
-
},
|
5354 |
-
|
5355 |
-
_startOpening: function( submenu ) {
|
5356 |
-
clearTimeout( this.timer );
|
5357 |
-
|
5358 |
-
// Don't open if already open fixes a Firefox bug that caused a .5 pixel
|
5359 |
-
// shift in the submenu position when mousing over the caret icon
|
5360 |
-
if ( submenu.attr( "aria-hidden" ) !== "true" ) {
|
5361 |
-
return;
|
5362 |
-
}
|
5363 |
-
|
5364 |
-
this.timer = this._delay( function() {
|
5365 |
-
this._close();
|
5366 |
-
this._open( submenu );
|
5367 |
-
}, this.delay );
|
5368 |
-
},
|
5369 |
-
|
5370 |
-
_open: function( submenu ) {
|
5371 |
-
var position = $.extend( {
|
5372 |
-
of: this.active
|
5373 |
-
}, this.options.position );
|
5374 |
-
|
5375 |
-
clearTimeout( this.timer );
|
5376 |
-
this.element.find( ".ui-menu" ).not( submenu.parents( ".ui-menu" ) )
|
5377 |
-
.hide()
|
5378 |
-
.attr( "aria-hidden", "true" );
|
5379 |
-
|
5380 |
-
submenu
|
5381 |
-
.show()
|
5382 |
-
.removeAttr( "aria-hidden" )
|
5383 |
-
.attr( "aria-expanded", "true" )
|
5384 |
-
.position( position );
|
5385 |
-
},
|
5386 |
-
|
5387 |
-
collapseAll: function( event, all ) {
|
5388 |
-
clearTimeout( this.timer );
|
5389 |
-
this.timer = this._delay( function() {
|
5390 |
-
|
5391 |
-
// If we were passed an event, look for the submenu that contains the event
|
5392 |
-
var currentMenu = all ? this.element :
|
5393 |
-
$( event && event.target ).closest( this.element.find( ".ui-menu" ) );
|
5394 |
-
|
5395 |
-
// If we found no valid submenu ancestor, use the main menu to close all
|
5396 |
-
// sub menus anyway
|
5397 |
-
if ( !currentMenu.length ) {
|
5398 |
-
currentMenu = this.element;
|
5399 |
-
}
|
5400 |
-
|
5401 |
-
this._close( currentMenu );
|
5402 |
-
|
5403 |
-
this.blur( event );
|
5404 |
-
|
5405 |
-
// Work around active item staying active after menu is blurred
|
5406 |
-
this._removeClass( currentMenu.find( ".ui-state-active" ), null, "ui-state-active" );
|
5407 |
-
|
5408 |
-
this.activeMenu = currentMenu;
|
5409 |
-
}, this.delay );
|
5410 |
-
},
|
5411 |
-
|
5412 |
-
// With no arguments, closes the currently active menu - if nothing is active
|
5413 |
-
// it closes all menus. If passed an argument, it will search for menus BELOW
|
5414 |
-
_close: function( startMenu ) {
|
5415 |
-
if ( !startMenu ) {
|
5416 |
-
startMenu = this.active ? this.active.parent() : this.element;
|
5417 |
-
}
|
5418 |
-
|
5419 |
-
startMenu.find( ".ui-menu" )
|
5420 |
-
.hide()
|
5421 |
-
.attr( "aria-hidden", "true" )
|
5422 |
-
.attr( "aria-expanded", "false" );
|
5423 |
-
},
|
5424 |
-
|
5425 |
-
_closeOnDocumentClick: function( event ) {
|
5426 |
-
return !$( event.target ).closest( ".ui-menu" ).length;
|
5427 |
-
},
|
5428 |
-
|
5429 |
-
_isDivider: function( item ) {
|
5430 |
-
|
5431 |
-
// Match hyphen, em dash, en dash
|
5432 |
-
return !/[^\-\u2014\u2013\s]/.test( item.text() );
|
5433 |
-
},
|
5434 |
-
|
5435 |
-
collapse: function( event ) {
|
5436 |
-
var newItem = this.active &&
|
5437 |
-
this.active.parent().closest( ".ui-menu-item", this.element );
|
5438 |
-
if ( newItem && newItem.length ) {
|
5439 |
-
this._close();
|
5440 |
-
this.focus( event, newItem );
|
5441 |
-
}
|
5442 |
-
},
|
5443 |
-
|
5444 |
-
expand: function( event ) {
|
5445 |
-
var newItem = this.active &&
|
5446 |
-
this.active
|
5447 |
-
.children( ".ui-menu " )
|
5448 |
-
.find( this.options.items )
|
5449 |
-
.first();
|
5450 |
-
|
5451 |
-
if ( newItem && newItem.length ) {
|
5452 |
-
this._open( newItem.parent() );
|
5453 |
-
|
5454 |
-
// Delay so Firefox will not hide activedescendant change in expanding submenu from AT
|
5455 |
-
this._delay( function() {
|
5456 |
-
this.focus( event, newItem );
|
5457 |
-
} );
|
5458 |
-
}
|
5459 |
-
},
|
5460 |
-
|
5461 |
-
next: function( event ) {
|
5462 |
-
this._move( "next", "first", event );
|
5463 |
-
},
|
5464 |
-
|
5465 |
-
previous: function( event ) {
|
5466 |
-
this._move( "prev", "last", event );
|
5467 |
-
},
|
5468 |
-
|
5469 |
-
isFirstItem: function() {
|
5470 |
-
return this.active && !this.active.prevAll( ".ui-menu-item" ).length;
|
5471 |
-
},
|
5472 |
-
|
5473 |
-
isLastItem: function() {
|
5474 |
-
return this.active && !this.active.nextAll( ".ui-menu-item" ).length;
|
5475 |
-
},
|
5476 |
-
|
5477 |
-
_move: function( direction, filter, event ) {
|
5478 |
-
var next;
|
5479 |
-
if ( this.active ) {
|
5480 |
-
if ( direction === "first" || direction === "last" ) {
|
5481 |
-
next = this.active
|
5482 |
-
[ direction === "first" ? "prevAll" : "nextAll" ]( ".ui-menu-item" )
|
5483 |
-
.eq( -1 );
|
5484 |
-
} else {
|
5485 |
-
next = this.active
|
5486 |
-
[ direction + "All" ]( ".ui-menu-item" )
|
5487 |
-
.eq( 0 );
|
5488 |
-
}
|
5489 |
-
}
|
5490 |
-
if ( !next || !next.length || !this.active ) {
|
5491 |
-
next = this.activeMenu.find( this.options.items )[ filter ]();
|
5492 |
-
}
|
5493 |
-
|
5494 |
-
this.focus( event, next );
|
5495 |
-
},
|
5496 |
-
|
5497 |
-
nextPage: function( event ) {
|
5498 |
-
var item, base, height;
|
5499 |
-
|
5500 |
-
if ( !this.active ) {
|
5501 |
-
this.next( event );
|
5502 |
-
return;
|
5503 |
-
}
|
5504 |
-
if ( this.isLastItem() ) {
|
5505 |
-
return;
|
5506 |
-
}
|
5507 |
-
if ( this._hasScroll() ) {
|
5508 |
-
base = this.active.offset().top;
|
5509 |
-
height = this.element.height();
|
5510 |
-
this.active.nextAll( ".ui-menu-item" ).each( function() {
|
5511 |
-
item = $( this );
|
5512 |
-
return item.offset().top - base - height < 0;
|
5513 |
-
} );
|
5514 |
-
|
5515 |
-
this.focus( event, item );
|
5516 |
-
} else {
|
5517 |
-
this.focus( event, this.activeMenu.find( this.options.items )
|
5518 |
-
[ !this.active ? "first" : "last" ]() );
|
5519 |
-
}
|
5520 |
-
},
|
5521 |
-
|
5522 |
-
previousPage: function( event ) {
|
5523 |
-
var item, base, height;
|
5524 |
-
if ( !this.active ) {
|
5525 |
-
this.next( event );
|
5526 |
-
return;
|
5527 |
-
}
|
5528 |
-
if ( this.isFirstItem() ) {
|
5529 |
-
return;
|
5530 |
-
}
|
5531 |
-
if ( this._hasScroll() ) {
|
5532 |
-
base = this.active.offset().top;
|
5533 |
-
height = this.element.height();
|
5534 |
-
this.active.prevAll( ".ui-menu-item" ).each( function() {
|
5535 |
-
item = $( this );
|
5536 |
-
return item.offset().top - base + height > 0;
|
5537 |
-
} );
|
5538 |
-
|
5539 |
-
this.focus( event, item );
|
5540 |
-
} else {
|
5541 |
-
this.focus( event, this.activeMenu.find( this.options.items ).first() );
|
5542 |
-
}
|
5543 |
-
},
|
5544 |
-
|
5545 |
-
_hasScroll: function() {
|
5546 |
-
return this.element.outerHeight() < this.element.prop( "scrollHeight" );
|
5547 |
-
},
|
5548 |
-
|
5549 |
-
select: function( event ) {
|
5550 |
-
|
5551 |
-
// TODO: It should never be possible to not have an active item at this
|
5552 |
-
// point, but the tests don't trigger mouseenter before click.
|
5553 |
-
this.active = this.active || $( event.target ).closest( ".ui-menu-item" );
|
5554 |
-
var ui = { item: this.active };
|
5555 |
-
if ( !this.active.has( ".ui-menu" ).length ) {
|
5556 |
-
this.collapseAll( event, true );
|
5557 |
-
}
|
5558 |
-
this._trigger( "select", event, ui );
|
5559 |
-
},
|
5560 |
-
|
5561 |
-
_filterMenuItems: function( character ) {
|
5562 |
-
var escapedCharacter = character.replace( /[\-\[\]{}()*+?.,\\\^$|#\s]/g, "\\$&" ),
|
5563 |
-
regex = new RegExp( "^" + escapedCharacter, "i" );
|
5564 |
-
|
5565 |
-
return this.activeMenu
|
5566 |
-
.find( this.options.items )
|
5567 |
-
|
5568 |
-
// Only match on items, not dividers or other content (#10571)
|
5569 |
-
.filter( ".ui-menu-item" )
|
5570 |
-
.filter( function() {
|
5571 |
-
return regex.test(
|
5572 |
-
$.trim( $( this ).children( ".ui-menu-item-wrapper" ).text() ) );
|
5573 |
-
} );
|
5574 |
-
}
|
5575 |
-
} );
|
5576 |
-
|
5577 |
-
|
5578 |
-
/*!
|
5579 |
-
* jQuery UI Autocomplete 1.12.1
|
5580 |
-
* http://jqueryui.com
|
5581 |
-
*
|
5582 |
-
* Copyright jQuery Foundation and other contributors
|
5583 |
-
* Released under the MIT license.
|
5584 |
-
* http://jquery.org/license
|
5585 |
-
*/
|
5586 |
-
|
5587 |
-
//>>label: Autocomplete
|
5588 |
-
//>>group: Widgets
|
5589 |
-
//>>description: Lists suggested words as the user is typing.
|
5590 |
-
//>>docs: http://api.jqueryui.com/autocomplete/
|
5591 |
-
//>>demos: http://jqueryui.com/autocomplete/
|
5592 |
-
//>>css.structure: ../../themes/base/core.css
|
5593 |
-
//>>css.structure: ../../themes/base/autocomplete.css
|
5594 |
-
//>>css.theme: ../../themes/base/theme.css
|
5595 |
-
|
5596 |
-
|
5597 |
-
|
5598 |
-
$.widget( "ui.autocomplete", {
|
5599 |
-
version: "1.12.1",
|
5600 |
-
defaultElement: "<input>",
|
5601 |
-
options: {
|
5602 |
-
appendTo: null,
|
5603 |
-
autoFocus: false,
|
5604 |
-
delay: 300,
|
5605 |
-
minLength: 1,
|
5606 |
-
position: {
|
5607 |
-
my: "left top",
|
5608 |
-
at: "left bottom",
|
5609 |
-
collision: "none"
|
5610 |
-
},
|
5611 |
-
source: null,
|
5612 |
-
|
5613 |
-
// Callbacks
|
5614 |
-
change: null,
|
5615 |
-
close: null,
|
5616 |
-
focus: null,
|
5617 |
-
open: null,
|
5618 |
-
response: null,
|
5619 |
-
search: null,
|
5620 |
-
select: null
|
5621 |
-
},
|
5622 |
-
|
5623 |
-
requestIndex: 0,
|
5624 |
-
pending: 0,
|
5625 |
-
|
5626 |
-
_create: function() {
|
5627 |
-
|
5628 |
-
// Some browsers only repeat keydown events, not keypress events,
|
5629 |
-
// so we use the suppressKeyPress flag to determine if we've already
|
5630 |
-
// handled the keydown event. #7269
|
5631 |
-
// Unfortunately the code for & in keypress is the same as the up arrow,
|
5632 |
-
// so we use the suppressKeyPressRepeat flag to avoid handling keypress
|
5633 |
-
// events when we know the keydown event was used to modify the
|
5634 |
-
// search term. #7799
|
5635 |
-
var suppressKeyPress, suppressKeyPressRepeat, suppressInput,
|
5636 |
-
nodeName = this.element[ 0 ].nodeName.toLowerCase(),
|
5637 |
-
isTextarea = nodeName === "textarea",
|
5638 |
-
isInput = nodeName === "input";
|
5639 |
-
|
5640 |
-
// Textareas are always multi-line
|
5641 |
-
// Inputs are always single-line, even if inside a contentEditable element
|
5642 |
-
// IE also treats inputs as contentEditable
|
5643 |
-
// All other element types are determined by whether or not they're contentEditable
|
5644 |
-
this.isMultiLine = isTextarea || !isInput && this._isContentEditable( this.element );
|
5645 |
-
|
5646 |
-
this.valueMethod = this.element[ isTextarea || isInput ? "val" : "text" ];
|
5647 |
-
this.isNewMenu = true;
|
5648 |
-
|
5649 |
-
this._addClass( "ui-autocomplete-input" );
|
5650 |
-
this.element.attr( "autocomplete", "off" );
|
5651 |
-
|
5652 |
-
this._on( this.element, {
|
5653 |
-
keydown: function( event ) {
|
5654 |
-
if ( this.element.prop( "readOnly" ) ) {
|
5655 |
-
suppressKeyPress = true;
|
5656 |
-
suppressInput = true;
|
5657 |
-
suppressKeyPressRepeat = true;
|
5658 |
-
return;
|
5659 |
-
}
|
5660 |
-
|
5661 |
-
suppressKeyPress = false;
|
5662 |
-
suppressInput = false;
|
5663 |
-
suppressKeyPressRepeat = false;
|
5664 |
-
var keyCode = $.ui.keyCode;
|
5665 |
-
switch ( event.keyCode ) {
|
5666 |
-
case keyCode.PAGE_UP:
|
5667 |
-
suppressKeyPress = true;
|
5668 |
-
this._move( "previousPage", event );
|
5669 |
-
break;
|
5670 |
-
case keyCode.PAGE_DOWN:
|
5671 |
-
suppressKeyPress = true;
|
5672 |
-
this._move( "nextPage", event );
|
5673 |
-
break;
|
5674 |
-
case keyCode.UP:
|
5675 |
-
suppressKeyPress = true;
|
5676 |
-
this._keyEvent( "previous", event );
|
5677 |
-
break;
|
5678 |
-
case keyCode.DOWN:
|
5679 |
-
suppressKeyPress = true;
|
5680 |
-
this._keyEvent( "next", event );
|
5681 |
-
break;
|
5682 |
-
case keyCode.ENTER:
|
5683 |
-
|
5684 |
-
// when menu is open and has focus
|
5685 |
-
if ( this.menu.active ) {
|
5686 |
-
|
5687 |
-
// #6055 - Opera still allows the keypress to occur
|
5688 |
-
// which causes forms to submit
|
5689 |
-
suppressKeyPress = true;
|
5690 |
-
event.preventDefault();
|
5691 |
-
this.menu.select( event );
|
5692 |
-
}
|
5693 |
-
break;
|
5694 |
-
case keyCode.TAB:
|
5695 |
-
if ( this.menu.active ) {
|
5696 |
-
this.menu.select( event );
|
5697 |
-
}
|
5698 |
-
break;
|
5699 |
-
case keyCode.ESCAPE:
|
5700 |
-
if ( this.menu.element.is( ":visible" ) ) {
|
5701 |
-
if ( !this.isMultiLine ) {
|
5702 |
-
this._value( this.term );
|
5703 |
-
}
|
5704 |
-
this.close( event );
|
5705 |
-
|
5706 |
-
// Different browsers have different default behavior for escape
|
5707 |
-
// Single press can mean undo or clear
|
5708 |
-
// Double press in IE means clear the whole form
|
5709 |
-
event.preventDefault();
|
5710 |
-
}
|
5711 |
-
break;
|
5712 |
-
default:
|
5713 |
-
suppressKeyPressRepeat = true;
|
5714 |
-
|
5715 |
-
// search timeout should be triggered before the input value is changed
|
5716 |
-
this._searchTimeout( event );
|
5717 |
-
break;
|
5718 |
-
}
|
5719 |
-
},
|
5720 |
-
keypress: function( event ) {
|
5721 |
-
if ( suppressKeyPress ) {
|
5722 |
-
suppressKeyPress = false;
|
5723 |
-
if ( !this.isMultiLine || this.menu.element.is( ":visible" ) ) {
|
5724 |
-
event.preventDefault();
|
5725 |
-
}
|
5726 |
-
return;
|
5727 |
-
}
|
5728 |
-
if ( suppressKeyPressRepeat ) {
|
5729 |
-
return;
|
5730 |
-
}
|
5731 |
-
|
5732 |
-
// Replicate some key handlers to allow them to repeat in Firefox and Opera
|
5733 |
-
var keyCode = $.ui.keyCode;
|
5734 |
-
switch ( event.keyCode ) {
|
5735 |
-
case keyCode.PAGE_UP:
|
5736 |
-
this._move( "previousPage", event );
|
5737 |
-
break;
|
5738 |
-
case keyCode.PAGE_DOWN:
|
5739 |
-
this._move( "nextPage", event );
|
5740 |
-
break;
|
5741 |
-
case keyCode.UP:
|
5742 |
-
this._keyEvent( "previous", event );
|
5743 |
-
break;
|
5744 |
-
case keyCode.DOWN:
|
5745 |
-
this._keyEvent( "next", event );
|
5746 |
-
break;
|
5747 |
-
}
|
5748 |
-
},
|
5749 |
-
input: function( event ) {
|
5750 |
-
if ( suppressInput ) {
|
5751 |
-
suppressInput = false;
|
5752 |
-
event.preventDefault();
|
5753 |
-
return;
|
5754 |
-
}
|
5755 |
-
this._searchTimeout( event );
|
5756 |
-
},
|
5757 |
-
focus: function() {
|
5758 |
-
this.selectedItem = null;
|
5759 |
-
this.previous = this._value();
|
5760 |
-
},
|
5761 |
-
blur: function( event ) {
|
5762 |
-
if ( this.cancelBlur ) {
|
5763 |
-
delete this.cancelBlur;
|
5764 |
-
return;
|
5765 |
-
}
|
5766 |
-
|
5767 |
-
clearTimeout( this.searching );
|
5768 |
-
this.close( event );
|
5769 |
-
this._change( event );
|
5770 |
-
}
|
5771 |
-
} );
|
5772 |
-
|
5773 |
-
this._initSource();
|
5774 |
-
this.menu = $( "<ul>" )
|
5775 |
-
.appendTo( this._appendTo() )
|
5776 |
-
.menu( {
|
5777 |
-
|
5778 |
-
// disable ARIA support, the live region takes care of that
|
5779 |
-
role: null
|
5780 |
-
} )
|
5781 |
-
.hide()
|
5782 |
-
.menu( "instance" );
|
5783 |
-
|
5784 |
-
this._addClass( this.menu.element, "ui-autocomplete", "ui-front" );
|
5785 |
-
this._on( this.menu.element, {
|
5786 |
-
mousedown: function( event ) {
|
5787 |
-
|
5788 |
-
// prevent moving focus out of the text field
|
5789 |
-
event.preventDefault();
|
5790 |
-
|
5791 |
-
// IE doesn't prevent moving focus even with event.preventDefault()
|
5792 |
-
// so we set a flag to know when we should ignore the blur event
|
5793 |
-
this.cancelBlur = true;
|
5794 |
-
this._delay( function() {
|
5795 |
-
delete this.cancelBlur;
|
5796 |
-
|
5797 |
-
// Support: IE 8 only
|
5798 |
-
// Right clicking a menu item or selecting text from the menu items will
|
5799 |
-
// result in focus moving out of the input. However, we've already received
|
5800 |
-
// and ignored the blur event because of the cancelBlur flag set above. So
|
5801 |
-
// we restore focus to ensure that the menu closes properly based on the user's
|
5802 |
-
// next actions.
|
5803 |
-
if ( this.element[ 0 ] !== $.ui.safeActiveElement( this.document[ 0 ] ) ) {
|
5804 |
-
this.element.trigger( "focus" );
|
5805 |
-
}
|
5806 |
-
} );
|
5807 |
-
},
|
5808 |
-
menufocus: function( event, ui ) {
|
5809 |
-
var label, item;
|
5810 |
-
|
5811 |
-
// support: Firefox
|
5812 |
-
// Prevent accidental activation of menu items in Firefox (#7024 #9118)
|
5813 |
-
if ( this.isNewMenu ) {
|
5814 |
-
this.isNewMenu = false;
|
5815 |
-
if ( event.originalEvent && /^mouse/.test( event.originalEvent.type ) ) {
|
5816 |
-
this.menu.blur();
|
5817 |
-
|
5818 |
-
this.document.one( "mousemove", function() {
|
5819 |
-
$( event.target ).trigger( event.originalEvent );
|
5820 |
-
} );
|
5821 |
-
|
5822 |
-
return;
|
5823 |
-
}
|
5824 |
-
}
|
5825 |
-
|
5826 |
-
item = ui.item.data( "ui-autocomplete-item" );
|
5827 |
-
if ( false !== this._trigger( "focus", event, { item: item } ) ) {
|
5828 |
-
|
5829 |
-
// use value to match what will end up in the input, if it was a key event
|
5830 |
-
if ( event.originalEvent && /^key/.test( event.originalEvent.type ) ) {
|
5831 |
-
this._value( item.value );
|
5832 |
-
}
|
5833 |
-
}
|
5834 |
-
|
5835 |
-
// Announce the value in the liveRegion
|
5836 |
-
label = ui.item.attr( "aria-label" ) || item.value;
|
5837 |
-
if ( label && $.trim( label ).length ) {
|
5838 |
-
this.liveRegion.children().hide();
|
5839 |
-
$( "<div>" ).text( label ).appendTo( this.liveRegion );
|
5840 |
-
}
|
5841 |
-
},
|
5842 |
-
menuselect: function( event, ui ) {
|
5843 |
-
var item = ui.item.data( "ui-autocomplete-item" ),
|
5844 |
-
previous = this.previous;
|
5845 |
-
|
5846 |
-
// Only trigger when focus was lost (click on menu)
|
5847 |
-
if ( this.element[ 0 ] !== $.ui.safeActiveElement( this.document[ 0 ] ) ) {
|
5848 |
-
this.element.trigger( "focus" );
|
5849 |
-
this.previous = previous;
|
5850 |
-
|
5851 |
-
// #6109 - IE triggers two focus events and the second
|
5852 |
-
// is asynchronous, so we need to reset the previous
|
5853 |
-
// term synchronously and asynchronously :-(
|
5854 |
-
this._delay( function() {
|
5855 |
-
this.previous = previous;
|
5856 |
-
this.selectedItem = item;
|
5857 |
-
} );
|
5858 |
-
}
|
5859 |
-
|
5860 |
-
if ( false !== this._trigger( "select", event, { item: item } ) ) {
|
5861 |
-
this._value( item.value );
|
5862 |
-
}
|
5863 |
-
|
5864 |
-
// reset the term after the select event
|
5865 |
-
// this allows custom select handling to work properly
|
5866 |
-
this.term = this._value();
|
5867 |
-
|
5868 |
-
this.close( event );
|
5869 |
-
this.selectedItem = item;
|
5870 |
-
}
|
5871 |
-
} );
|
5872 |
-
|
5873 |
-
this.liveRegion = $( "<div>", {
|
5874 |
-
role: "status",
|
5875 |
-
"aria-live": "assertive",
|
5876 |
-
"aria-relevant": "additions"
|
5877 |
-
} )
|
5878 |
-
.appendTo( this.document[ 0 ].body );
|
5879 |
-
|
5880 |
-
this._addClass( this.liveRegion, null, "ui-helper-hidden-accessible" );
|
5881 |
-
|
5882 |
-
// Turning off autocomplete prevents the browser from remembering the
|
5883 |
-
// value when navigating through history, so we re-enable autocomplete
|
5884 |
-
// if the page is unloaded before the widget is destroyed. #7790
|
5885 |
-
this._on( this.window, {
|
5886 |
-
beforeunload: function() {
|
5887 |
-
this.element.removeAttr( "autocomplete" );
|
5888 |
-
}
|
5889 |
-
} );
|
5890 |
-
},
|
5891 |
-
|
5892 |
-
_destroy: function() {
|
5893 |
-
clearTimeout( this.searching );
|
5894 |
-
this.element.removeAttr( "autocomplete" );
|
5895 |
-
this.menu.element.remove();
|
5896 |
-
this.liveRegion.remove();
|
5897 |
-
},
|
5898 |
-
|
5899 |
-
_setOption: function( key, value ) {
|
5900 |
-
this._super( key, value );
|
5901 |
-
if ( key === "source" ) {
|
5902 |
-
this._initSource();
|
5903 |
-
}
|
5904 |
-
if ( key === "appendTo" ) {
|
5905 |
-
this.menu.element.appendTo( this._appendTo() );
|
5906 |
-
}
|
5907 |
-
if ( key === "disabled" && value && this.xhr ) {
|
5908 |
-
this.xhr.abort();
|
5909 |
-
}
|
5910 |
-
},
|
5911 |
-
|
5912 |
-
_isEventTargetInWidget: function( event ) {
|
5913 |
-
var menuElement = this.menu.element[ 0 ];
|
5914 |
-
|
5915 |
-
return event.target === this.element[ 0 ] ||
|
5916 |
-
event.target === menuElement ||
|
5917 |
-
$.contains( menuElement, event.target );
|
5918 |
-
},
|
5919 |
-
|
5920 |
-
_closeOnClickOutside: function( event ) {
|
5921 |
-
if ( !this._isEventTargetInWidget( event ) ) {
|
5922 |
-
this.close();
|
5923 |
-
}
|
5924 |
-
},
|
5925 |
-
|
5926 |
-
_appendTo: function() {
|
5927 |
-
var element = this.options.appendTo;
|
5928 |
-
|
5929 |
-
if ( element ) {
|
5930 |
-
element = element.jquery || element.nodeType ?
|
5931 |
-
$( element ) :
|
5932 |
-
this.document.find( element ).eq( 0 );
|
5933 |
-
}
|
5934 |
-
|
5935 |
-
if ( !element || !element[ 0 ] ) {
|
5936 |
-
element = this.element.closest( ".ui-front, dialog" );
|
5937 |
-
}
|
5938 |
-
|
5939 |
-
if ( !element.length ) {
|
5940 |
-
element = this.document[ 0 ].body;
|
5941 |
-
}
|
5942 |
-
|
5943 |
-
return element;
|
5944 |
-
},
|
5945 |
-
|
5946 |
-
_initSource: function() {
|
5947 |
-
var array, url,
|
5948 |
-
that = this;
|
5949 |
-
if ( $.isArray( this.options.source ) ) {
|
5950 |
-
array = this.options.source;
|
5951 |
-
this.source = function( request, response ) {
|
5952 |
-
response( $.ui.autocomplete.filter( array, request.term ) );
|
5953 |
-
};
|
5954 |
-
} else if ( typeof this.options.source === "string" ) {
|
5955 |
-
url = this.options.source;
|
5956 |
-
this.source = function( request, response ) {
|
5957 |
-
if ( that.xhr ) {
|
5958 |
-
that.xhr.abort();
|
5959 |
-
}
|
5960 |
-
that.xhr = $.ajax( {
|
5961 |
-
url: url,
|
5962 |
-
data: request,
|
5963 |
-
dataType: "json",
|
5964 |
-
success: function( data ) {
|
5965 |
-
response( data );
|
5966 |
-
},
|
5967 |
-
error: function() {
|
5968 |
-
response( [] );
|
5969 |
-
}
|
5970 |
-
} );
|
5971 |
-
};
|
5972 |
-
} else {
|
5973 |
-
this.source = this.options.source;
|
5974 |
-
}
|
5975 |
-
},
|
5976 |
-
|
5977 |
-
_searchTimeout: function( event ) {
|
5978 |
-
clearTimeout( this.searching );
|
5979 |
-
this.searching = this._delay( function() {
|
5980 |
-
|
5981 |
-
// Search if the value has changed, or if the user retypes the same value (see #7434)
|
5982 |
-
var equalValues = this.term === this._value(),
|
5983 |
-
menuVisible = this.menu.element.is( ":visible" ),
|
5984 |
-
modifierKey = event.altKey || event.ctrlKey || event.metaKey || event.shiftKey;
|
5985 |
-
|
5986 |
-
if ( !equalValues || ( equalValues && !menuVisible && !modifierKey ) ) {
|
5987 |
-
this.selectedItem = null;
|
5988 |
-
this.search( null, event );
|
5989 |
-
}
|
5990 |
-
}, this.options.delay );
|
5991 |
-
},
|
5992 |
-
|
5993 |
-
search: function( value, event ) {
|
5994 |
-
value = value != null ? value : this._value();
|
5995 |
-
|
5996 |
-
// Always save the actual value, not the one passed as an argument
|
5997 |
-
this.term = this._value();
|
5998 |
-
|
5999 |
-
if ( value.length < this.options.minLength ) {
|
6000 |
-
return this.close( event );
|
6001 |
-
}
|
6002 |
-
|
6003 |
-
if ( this._trigger( "search", event ) === false ) {
|
6004 |
-
return;
|
6005 |
-
}
|
6006 |
-
|
6007 |
-
return this._search( value );
|
6008 |
-
},
|
6009 |
-
|
6010 |
-
_search: function( value ) {
|
6011 |
-
this.pending++;
|
6012 |
-
this._addClass( "ui-autocomplete-loading" );
|
6013 |
-
this.cancelSearch = false;
|
6014 |
-
|
6015 |
-
this.source( { term: value }, this._response() );
|
6016 |
-
},
|
6017 |
-
|
6018 |
-
_response: function() {
|
6019 |
-
var index = ++this.requestIndex;
|
6020 |
-
|
6021 |
-
return $.proxy( function( content ) {
|
6022 |
-
if ( index === this.requestIndex ) {
|
6023 |
-
this.__response( content );
|
6024 |
-
}
|
6025 |
-
|
6026 |
-
this.pending--;
|
6027 |
-
if ( !this.pending ) {
|
6028 |
-
this._removeClass( "ui-autocomplete-loading" );
|
6029 |
-
}
|
6030 |
-
}, this );
|
6031 |
-
},
|
6032 |
-
|
6033 |
-
__response: function( content ) {
|
6034 |
-
if ( content ) {
|
6035 |
-
content = this._normalize( content );
|
6036 |
-
}
|
6037 |
-
this._trigger( "response", null, { content: content } );
|
6038 |
-
if ( !this.options.disabled && content && content.length && !this.cancelSearch ) {
|
6039 |
-
this._suggest( content );
|
6040 |
-
this._trigger( "open" );
|
6041 |
-
} else {
|
6042 |
-
|
6043 |
-
// use ._close() instead of .close() so we don't cancel future searches
|
6044 |
-
this._close();
|
6045 |
-
}
|
6046 |
-
},
|
6047 |
-
|
6048 |
-
close: function( event ) {
|
6049 |
-
this.cancelSearch = true;
|
6050 |
-
this._close( event );
|
6051 |
-
},
|
6052 |
-
|
6053 |
-
_close: function( event ) {
|
6054 |
-
|
6055 |
-
// Remove the handler that closes the menu on outside clicks
|
6056 |
-
this._off( this.document, "mousedown" );
|
6057 |
-
|
6058 |
-
if ( this.menu.element.is( ":visible" ) ) {
|
6059 |
-
this.menu.element.hide();
|
6060 |
-
this.menu.blur();
|
6061 |
-
this.isNewMenu = true;
|
6062 |
-
this._trigger( "close", event );
|
6063 |
-
}
|
6064 |
-
},
|
6065 |
-
|
6066 |
-
_change: function( event ) {
|
6067 |
-
if ( this.previous !== this._value() ) {
|
6068 |
-
this._trigger( "change", event, { item: this.selectedItem } );
|
6069 |
-
}
|
6070 |
-
},
|
6071 |
-
|
6072 |
-
_normalize: function( items ) {
|
6073 |
-
|
6074 |
-
// assume all items have the right format when the first item is complete
|
6075 |
-
if ( items.length && items[ 0 ].label && items[ 0 ].value ) {
|
6076 |
-
return items;
|
6077 |
-
}
|
6078 |
-
return $.map( items, function( item ) {
|
6079 |
-
if ( typeof item === "string" ) {
|
6080 |
-
return {
|
6081 |
-
label: item,
|
6082 |
-
value: item
|
6083 |
-
};
|
6084 |
-
}
|
6085 |
-
return $.extend( {}, item, {
|
6086 |
-
label: item.label || item.value,
|
6087 |
-
value: item.value || item.label
|
6088 |
-
} );
|
6089 |
-
} );
|
6090 |
-
},
|
6091 |
-
|
6092 |
-
_suggest: function( items ) {
|
6093 |
-
var ul = this.menu.element.empty();
|
6094 |
-
this._renderMenu( ul, items );
|
6095 |
-
this.isNewMenu = true;
|
6096 |
-
this.menu.refresh();
|
6097 |
-
|
6098 |
-
// Size and position menu
|
6099 |
-
ul.show();
|
6100 |
-
this._resizeMenu();
|
6101 |
-
ul.position( $.extend( {
|
6102 |
-
of: this.element
|
6103 |
-
}, this.options.position ) );
|
6104 |
-
|
6105 |
-
if ( this.options.autoFocus ) {
|
6106 |
-
this.menu.next();
|
6107 |
-
}
|
6108 |
-
|
6109 |
-
// Listen for interactions outside of the widget (#6642)
|
6110 |
-
this._on( this.document, {
|
6111 |
-
mousedown: "_closeOnClickOutside"
|
6112 |
-
} );
|
6113 |
-
},
|
6114 |
-
|
6115 |
-
_resizeMenu: function() {
|
6116 |
-
var ul = this.menu.element;
|
6117 |
-
ul.outerWidth( Math.max(
|
6118 |
-
|
6119 |
-
// Firefox wraps long text (possibly a rounding bug)
|
6120 |
-
// so we add 1px to avoid the wrapping (#7513)
|
6121 |
-
ul.width( "" ).outerWidth() + 1,
|
6122 |
-
this.element.outerWidth()
|
6123 |
-
) );
|
6124 |
-
},
|
6125 |
-
|
6126 |
-
_renderMenu: function( ul, items ) {
|
6127 |
-
var that = this;
|
6128 |
-
$.each( items, function( index, item ) {
|
6129 |
-
that._renderItemData( ul, item );
|
6130 |
-
} );
|
6131 |
-
},
|
6132 |
-
|
6133 |
-
_renderItemData: function( ul, item ) {
|
6134 |
-
return this._renderItem( ul, item ).data( "ui-autocomplete-item", item );
|
6135 |
-
},
|
6136 |
-
|
6137 |
-
_renderItem: function( ul, item ) {
|
6138 |
-
return $( "<li>" )
|
6139 |
-
.append( $( "<div>" ).text( item.label ) )
|
6140 |
-
.appendTo( ul );
|
6141 |
-
},
|
6142 |
-
|
6143 |
-
_move: function( direction, event ) {
|
6144 |
-
if ( !this.menu.element.is( ":visible" ) ) {
|
6145 |
-
this.search( null, event );
|
6146 |
-
return;
|
6147 |
-
}
|
6148 |
-
if ( this.menu.isFirstItem() && /^previous/.test( direction ) ||
|
6149 |
-
this.menu.isLastItem() && /^next/.test( direction ) ) {
|
6150 |
-
|
6151 |
-
if ( !this.isMultiLine ) {
|
6152 |
-
this._value( this.term );
|
6153 |
-
}
|
6154 |
-
|
6155 |
-
this.menu.blur();
|
6156 |
-
return;
|
6157 |
-
}
|
6158 |
-
this.menu[ direction ]( event );
|
6159 |
-
},
|
6160 |
-
|
6161 |
-
widget: function() {
|
6162 |
-
return this.menu.element;
|
6163 |
-
},
|
6164 |
-
|
6165 |
-
_value: function() {
|
6166 |
-
return this.valueMethod.apply( this.element, arguments );
|
6167 |
-
},
|
6168 |
-
|
6169 |
-
_keyEvent: function( keyEvent, event ) {
|
6170 |
-
if ( !this.isMultiLine || this.menu.element.is( ":visible" ) ) {
|
6171 |
-
this._move( keyEvent, event );
|
6172 |
-
|
6173 |
-
// Prevents moving cursor to beginning/end of the text field in some browsers
|
6174 |
-
event.preventDefault();
|
6175 |
-
}
|
6176 |
-
},
|
6177 |
-
|
6178 |
-
// Support: Chrome <=50
|
6179 |
-
// We should be able to just use this.element.prop( "isContentEditable" )
|
6180 |
-
// but hidden elements always report false in Chrome.
|
6181 |
-
// https://code.google.com/p/chromium/issues/detail?id=313082
|
6182 |
-
_isContentEditable: function( element ) {
|
6183 |
-
if ( !element.length ) {
|
6184 |
-
return false;
|
6185 |
-
}
|
6186 |
-
|
6187 |
-
var editable = element.prop( "contentEditable" );
|
6188 |
-
|
6189 |
-
if ( editable === "inherit" ) {
|
6190 |
-
return this._isContentEditable( element.parent() );
|
6191 |
-
}
|
6192 |
-
|
6193 |
-
return editable === "true";
|
6194 |
-
}
|
6195 |
-
} );
|
6196 |
-
|
6197 |
-
$.extend( $.ui.autocomplete, {
|
6198 |
-
escapeRegex: function( value ) {
|
6199 |
-
return value.replace( /[\-\[\]{}()*+?.,\\\^$|#\s]/g, "\\$&" );
|
6200 |
-
},
|
6201 |
-
filter: function( array, term ) {
|
6202 |
-
var matcher = new RegExp( $.ui.autocomplete.escapeRegex( term ), "i" );
|
6203 |
-
return $.grep( array, function( value ) {
|
6204 |
-
return matcher.test( value.label || value.value || value );
|
6205 |
-
} );
|
6206 |
-
}
|
6207 |
-
} );
|
6208 |
-
|
6209 |
-
// Live region extension, adding a `messages` option
|
6210 |
-
// NOTE: This is an experimental API. We are still investigating
|
6211 |
-
// a full solution for string manipulation and internationalization.
|
6212 |
-
$.widget( "ui.autocomplete", $.ui.autocomplete, {
|
6213 |
-
options: {
|
6214 |
-
messages: {
|
6215 |
-
noResults: "No search results.",
|
6216 |
-
results: function( amount ) {
|
6217 |
-
return amount + ( amount > 1 ? " results are" : " result is" ) +
|
6218 |
-
" available, use up and down arrow keys to navigate.";
|
6219 |
-
}
|
6220 |
-
}
|
6221 |
-
},
|
6222 |
-
|
6223 |
-
__response: function( content ) {
|
6224 |
-
var message;
|
6225 |
-
this._superApply( arguments );
|
6226 |
-
if ( this.options.disabled || this.cancelSearch ) {
|
6227 |
-
return;
|
6228 |
-
}
|
6229 |
-
if ( content && content.length ) {
|
6230 |
-
message = this.options.messages.results( content.length );
|
6231 |
-
} else {
|
6232 |
-
message = this.options.messages.noResults;
|
6233 |
-
}
|
6234 |
-
this.liveRegion.children().hide();
|
6235 |
-
$( "<div>" ).text( message ).appendTo( this.liveRegion );
|
6236 |
-
}
|
6237 |
-
} );
|
6238 |
-
|
6239 |
-
var widgetsAutocomplete = $.ui.autocomplete;
|
6240 |
-
|
6241 |
-
|
6242 |
-
/*!
|
6243 |
-
* jQuery UI Controlgroup 1.12.1
|
6244 |
-
* http://jqueryui.com
|
6245 |
-
*
|
6246 |
-
* Copyright jQuery Foundation and other contributors
|
6247 |
-
* Released under the MIT license.
|
6248 |
-
* http://jquery.org/license
|
6249 |
-
*/
|
6250 |
-
|
6251 |
-
//>>label: Controlgroup
|
6252 |
-
//>>group: Widgets
|
6253 |
-
//>>description: Visually groups form control widgets
|
6254 |
-
//>>docs: http://api.jqueryui.com/controlgroup/
|
6255 |
-
//>>demos: http://jqueryui.com/controlgroup/
|
6256 |
-
//>>css.structure: ../../themes/base/core.css
|
6257 |
-
//>>css.structure: ../../themes/base/controlgroup.css
|
6258 |
-
//>>css.theme: ../../themes/base/theme.css
|
6259 |
-
|
6260 |
-
|
6261 |
-
var controlgroupCornerRegex = /ui-corner-([a-z]){2,6}/g;
|
6262 |
-
|
6263 |
-
var widgetsControlgroup = $.widget( "ui.controlgroup", {
|
6264 |
-
version: "1.12.1",
|
6265 |
-
defaultElement: "<div>",
|
6266 |
-
options: {
|
6267 |
-
direction: "horizontal",
|
6268 |
-
disabled: null,
|
6269 |
-
onlyVisible: true,
|
6270 |
-
items: {
|
6271 |
-
"button": "input[type=button], input[type=submit], input[type=reset], button, a",
|
6272 |
-
"controlgroupLabel": ".ui-controlgroup-label",
|
6273 |
-
"checkboxradio": "input[type='checkbox'], input[type='radio']",
|
6274 |
-
"selectmenu": "select",
|
6275 |
-
"spinner": ".ui-spinner-input"
|
6276 |
-
}
|
6277 |
-
},
|
6278 |
-
|
6279 |
-
_create: function() {
|
6280 |
-
this._enhance();
|
6281 |
-
},
|
6282 |
-
|
6283 |
-
// To support the enhanced option in jQuery Mobile, we isolate DOM manipulation
|
6284 |
-
_enhance: function() {
|
6285 |
-
this.element.attr( "role", "toolbar" );
|
6286 |
-
this.refresh();
|
6287 |
-
},
|
6288 |
-
|
6289 |
-
_destroy: function() {
|
6290 |
-
this._callChildMethod( "destroy" );
|
6291 |
-
this.childWidgets.removeData( "ui-controlgroup-data" );
|
6292 |
-
this.element.removeAttr( "role" );
|
6293 |
-
if ( this.options.items.controlgroupLabel ) {
|
6294 |
-
this.element
|
6295 |
-
.find( this.options.items.controlgroupLabel )
|
6296 |
-
.find( ".ui-controlgroup-label-contents" )
|
6297 |
-
.contents().unwrap();
|
6298 |
-
}
|
6299 |
-
},
|
6300 |
-
|
6301 |
-
_initWidgets: function() {
|
6302 |
-
var that = this,
|
6303 |
-
childWidgets = [];
|
6304 |
-
|
6305 |
-
// First we iterate over each of the items options
|
6306 |
-
$.each( this.options.items, function( widget, selector ) {
|
6307 |
-
var labels;
|
6308 |
-
var options = {};
|
6309 |
-
|
6310 |
-
// Make sure the widget has a selector set
|
6311 |
-
if ( !selector ) {
|
6312 |
-
return;
|
6313 |
-
}
|
6314 |
-
|
6315 |
-
if ( widget === "controlgroupLabel" ) {
|
6316 |
-
labels = that.element.find( selector );
|
6317 |
-
labels.each( function() {
|
6318 |
-
var element = $( this );
|
6319 |
-
|
6320 |
-
if ( element.children( ".ui-controlgroup-label-contents" ).length ) {
|
6321 |
-
return;
|
6322 |
-
}
|
6323 |
-
element.contents()
|
6324 |
-
.wrapAll( "<span class='ui-controlgroup-label-contents'></span>" );
|
6325 |
-
} );
|
6326 |
-
that._addClass( labels, null, "ui-widget ui-widget-content ui-state-default" );
|
6327 |
-
childWidgets = childWidgets.concat( labels.get() );
|
6328 |
-
return;
|
6329 |
-
}
|
6330 |
-
|
6331 |
-
// Make sure the widget actually exists
|
6332 |
-
if ( !$.fn[ widget ] ) {
|
6333 |
-
return;
|
6334 |
-
}
|
6335 |
-
|
6336 |
-
// We assume everything is in the middle to start because we can't determine
|
6337 |
-
// first / last elements until all enhancments are done.
|
6338 |
-
if ( that[ "_" + widget + "Options" ] ) {
|
6339 |
-
options = that[ "_" + widget + "Options" ]( "middle" );
|
6340 |
-
} else {
|
6341 |
-
options = { classes: {} };
|
6342 |
-
}
|
6343 |
-
|
6344 |
-
// Find instances of this widget inside controlgroup and init them
|
6345 |
-
that.element
|
6346 |
-
.find( selector )
|
6347 |
-
.each( function() {
|
6348 |
-
var element = $( this );
|
6349 |
-
var instance = element[ widget ]( "instance" );
|
6350 |
-
|
6351 |
-
// We need to clone the default options for this type of widget to avoid
|
6352 |
-
// polluting the variable options which has a wider scope than a single widget.
|
6353 |
-
var instanceOptions = $.widget.extend( {}, options );
|
6354 |
-
|
6355 |
-
// If the button is the child of a spinner ignore it
|
6356 |
-
// TODO: Find a more generic solution
|
6357 |
-
if ( widget === "button" && element.parent( ".ui-spinner" ).length ) {
|
6358 |
-
return;
|
6359 |
-
}
|
6360 |
-
|
6361 |
-
// Create the widget if it doesn't exist
|
6362 |
-
if ( !instance ) {
|
6363 |
-
instance = element[ widget ]()[ widget ]( "instance" );
|
6364 |
-
}
|
6365 |
-
if ( instance ) {
|
6366 |
-
instanceOptions.classes =
|
6367 |
-
that._resolveClassesValues( instanceOptions.classes, instance );
|
6368 |
-
}
|
6369 |
-
element[ widget ]( instanceOptions );
|
6370 |
-
|
6371 |
-
// Store an instance of the controlgroup to be able to reference
|
6372 |
-
// from the outermost element for changing options and refresh
|
6373 |
-
var widgetElement = element[ widget ]( "widget" );
|
6374 |
-
$.data( widgetElement[ 0 ], "ui-controlgroup-data",
|
6375 |
-
instance ? instance : element[ widget ]( "instance" ) );
|
6376 |
-
|
6377 |
-
childWidgets.push( widgetElement[ 0 ] );
|
6378 |
-
} );
|
6379 |
-
} );
|
6380 |
-
|
6381 |
-
this.childWidgets = $( $.unique( childWidgets ) );
|
6382 |
-
this._addClass( this.childWidgets, "ui-controlgroup-item" );
|
6383 |
-
},
|
6384 |
-
|
6385 |
-
_callChildMethod: function( method ) {
|
6386 |
-
this.childWidgets.each( function() {
|
6387 |
-
var element = $( this ),
|
6388 |
-
data = element.data( "ui-controlgroup-data" );
|
6389 |
-
if ( data && data[ method ] ) {
|
6390 |
-
data[ method ]();
|
6391 |
-
}
|
6392 |
-
} );
|
6393 |
-
},
|
6394 |
-
|
6395 |
-
_updateCornerClass: function( element, position ) {
|
6396 |
-
var remove = "ui-corner-top ui-corner-bottom ui-corner-left ui-corner-right ui-corner-all";
|
6397 |
-
var add = this._buildSimpleOptions( position, "label" ).classes.label;
|
6398 |
-
|
6399 |
-
this._removeClass( element, null, remove );
|
6400 |
-
this._addClass( element, null, add );
|
6401 |
-
},
|
6402 |
-
|
6403 |
-
_buildSimpleOptions: function( position, key ) {
|
6404 |
-
var direction = this.options.direction === "vertical";
|
6405 |
-
var result = {
|
6406 |
-
classes: {}
|
6407 |
-
};
|
6408 |
-
result.classes[ key ] = {
|
6409 |
-
"middle": "",
|
6410 |
-
"first": "ui-corner-" + ( direction ? "top" : "left" ),
|
6411 |
-
"last": "ui-corner-" + ( direction ? "bottom" : "right" ),
|
6412 |
-
"only": "ui-corner-all"
|
6413 |
-
}[ position ];
|
6414 |
-
|
6415 |
-
return result;
|
6416 |
-
},
|
6417 |
-
|
6418 |
-
_spinnerOptions: function( position ) {
|
6419 |
-
var options = this._buildSimpleOptions( position, "ui-spinner" );
|
6420 |
-
|
6421 |
-
options.classes[ "ui-spinner-up" ] = "";
|
6422 |
-
options.classes[ "ui-spinner-down" ] = "";
|
6423 |
-
|
6424 |
-
return options;
|
6425 |
-
},
|
6426 |
-
|
6427 |
-
_buttonOptions: function( position ) {
|
6428 |
-
return this._buildSimpleOptions( position, "ui-button" );
|
6429 |
-
},
|
6430 |
-
|
6431 |
-
_checkboxradioOptions: function( position ) {
|
6432 |
-
return this._buildSimpleOptions( position, "ui-checkboxradio-label" );
|
6433 |
-
},
|
6434 |
-
|
6435 |
-
_selectmenuOptions: function( position ) {
|
6436 |
-
var direction = this.options.direction === "vertical";
|
6437 |
-
return {
|
6438 |
-
width: direction ? "auto" : false,
|
6439 |
-
classes: {
|
6440 |
-
middle: {
|
6441 |
-
"ui-selectmenu-button-open": "",
|
6442 |
-
"ui-selectmenu-button-closed": ""
|
6443 |
-
},
|
6444 |
-
first: {
|
6445 |
-
"ui-selectmenu-button-open": "ui-corner-" + ( direction ? "top" : "tl" ),
|
6446 |
-
"ui-selectmenu-button-closed": "ui-corner-" + ( direction ? "top" : "left" )
|
6447 |
-
},
|
6448 |
-
last: {
|
6449 |
-
"ui-selectmenu-button-open": direction ? "" : "ui-corner-tr",
|
6450 |
-
"ui-selectmenu-button-closed": "ui-corner-" + ( direction ? "bottom" : "right" )
|
6451 |
-
},
|
6452 |
-
only: {
|
6453 |
-
"ui-selectmenu-button-open": "ui-corner-top",
|
6454 |
-
"ui-selectmenu-button-closed": "ui-corner-all"
|
6455 |
-
}
|
6456 |
-
|
6457 |
-
}[ position ]
|
6458 |
-
};
|
6459 |
-
},
|
6460 |
-
|
6461 |
-
_resolveClassesValues: function( classes, instance ) {
|
6462 |
-
var result = {};
|
6463 |
-
$.each( classes, function( key ) {
|
6464 |
-
var current = instance.options.classes[ key ] || "";
|
6465 |
-
current = $.trim( current.replace( controlgroupCornerRegex, "" ) );
|
6466 |
-
result[ key ] = ( current + " " + classes[ key ] ).replace( /\s+/g, " " );
|
6467 |
-
} );
|
6468 |
-
return result;
|
6469 |
-
},
|
6470 |
-
|
6471 |
-
_setOption: function( key, value ) {
|
6472 |
-
if ( key === "direction" ) {
|
6473 |
-
this._removeClass( "ui-controlgroup-" + this.options.direction );
|
6474 |
-
}
|
6475 |
-
|
6476 |
-
this._super( key, value );
|
6477 |
-
if ( key === "disabled" ) {
|
6478 |
-
this._callChildMethod( value ? "disable" : "enable" );
|
6479 |
-
return;
|
6480 |
-
}
|
6481 |
-
|
6482 |
-
this.refresh();
|
6483 |
-
},
|
6484 |
-
|
6485 |
-
refresh: function() {
|
6486 |
-
var children,
|
6487 |
-
that = this;
|
6488 |
-
|
6489 |
-
this._addClass( "ui-controlgroup ui-controlgroup-" + this.options.direction );
|
6490 |
-
|
6491 |
-
if ( this.options.direction === "horizontal" ) {
|
6492 |
-
this._addClass( null, "ui-helper-clearfix" );
|
6493 |
-
}
|
6494 |
-
this._initWidgets();
|
6495 |
-
|
6496 |
-
children = this.childWidgets;
|
6497 |
-
|
6498 |
-
// We filter here because we need to track all childWidgets not just the visible ones
|
6499 |
-
if ( this.options.onlyVisible ) {
|
6500 |
-
children = children.filter( ":visible" );
|
6501 |
-
}
|
6502 |
-
|
6503 |
-
if ( children.length ) {
|
6504 |
-
|
6505 |
-
// We do this last because we need to make sure all enhancment is done
|
6506 |
-
// before determining first and last
|
6507 |
-
$.each( [ "first", "last" ], function( index, value ) {
|
6508 |
-
var instance = children[ value ]().data( "ui-controlgroup-data" );
|
6509 |
-
|
6510 |
-
if ( instance && that[ "_" + instance.widgetName + "Options" ] ) {
|
6511 |
-
var options = that[ "_" + instance.widgetName + "Options" ](
|
6512 |
-
children.length === 1 ? "only" : value
|
6513 |
-
);
|
6514 |
-
options.classes = that._resolveClassesValues( options.classes, instance );
|
6515 |
-
instance.element[ instance.widgetName ]( options );
|
6516 |
-
} else {
|
6517 |
-
that._updateCornerClass( children[ value ](), value );
|
6518 |
-
}
|
6519 |
-
} );
|
6520 |
-
|
6521 |
-
// Finally call the refresh method on each of the child widgets.
|
6522 |
-
this._callChildMethod( "refresh" );
|
6523 |
-
}
|
6524 |
-
}
|
6525 |
-
} );
|
6526 |
-
|
6527 |
-
/*!
|
6528 |
-
* jQuery UI Checkboxradio 1.12.1
|
6529 |
-
* http://jqueryui.com
|
6530 |
-
*
|
6531 |
-
* Copyright jQuery Foundation and other contributors
|
6532 |
-
* Released under the MIT license.
|
6533 |
-
* http://jquery.org/license
|
6534 |
-
*/
|
6535 |
-
|
6536 |
-
//>>label: Checkboxradio
|
6537 |
-
//>>group: Widgets
|
6538 |
-
//>>description: Enhances a form with multiple themeable checkboxes or radio buttons.
|
6539 |
-
//>>docs: http://api.jqueryui.com/checkboxradio/
|
6540 |
-
//>>demos: http://jqueryui.com/checkboxradio/
|
6541 |
-
//>>css.structure: ../../themes/base/core.css
|
6542 |
-
//>>css.structure: ../../themes/base/button.css
|
6543 |
-
//>>css.structure: ../../themes/base/checkboxradio.css
|
6544 |
-
//>>css.theme: ../../themes/base/theme.css
|
6545 |
-
|
6546 |
-
|
6547 |
-
|
6548 |
-
$.widget( "ui.checkboxradio", [ $.ui.formResetMixin, {
|
6549 |
-
version: "1.12.1",
|
6550 |
-
options: {
|
6551 |
-
disabled: null,
|
6552 |
-
label: null,
|
6553 |
-
icon: true,
|
6554 |
-
classes: {
|
6555 |
-
"ui-checkboxradio-label": "ui-corner-all",
|
6556 |
-
"ui-checkboxradio-icon": "ui-corner-all"
|
6557 |
-
}
|
6558 |
-
},
|
6559 |
-
|
6560 |
-
_getCreateOptions: function() {
|
6561 |
-
var disabled, labels;
|
6562 |
-
var that = this;
|
6563 |
-
var options = this._super() || {};
|
6564 |
-
|
6565 |
-
// We read the type here, because it makes more sense to throw a element type error first,
|
6566 |
-
// rather then the error for lack of a label. Often if its the wrong type, it
|
6567 |
-
// won't have a label (e.g. calling on a div, btn, etc)
|
6568 |
-
this._readType();
|
6569 |
-
|
6570 |
-
labels = this.element.labels();
|
6571 |
-
|
6572 |
-
// If there are multiple labels, use the last one
|
6573 |
-
this.label = $( labels[ labels.length - 1 ] );
|
6574 |
-
if ( !this.label.length ) {
|
6575 |
-
$.error( "No label found for checkboxradio widget" );
|
6576 |
-
}
|
6577 |
-
|
6578 |
-
this.originalLabel = "";
|
6579 |
-
|
6580 |
-
// We need to get the label text but this may also need to make sure it does not contain the
|
6581 |
-
// input itself.
|
6582 |
-
this.label.contents().not( this.element[ 0 ] ).each( function() {
|
6583 |
-
|
6584 |
-
// The label contents could be text, html, or a mix. We concat each element to get a
|
6585 |
-
// string representation of the label, without the input as part of it.
|
6586 |
-
that.originalLabel += this.nodeType === 3 ? $( this ).text() : this.outerHTML;
|
6587 |
-
} );
|
6588 |
-
|
6589 |
-
// Set the label option if we found label text
|
6590 |
-
if ( this.originalLabel ) {
|
6591 |
-
options.label = this.originalLabel;
|
6592 |
-
}
|
6593 |
-
|
6594 |
-
disabled = this.element[ 0 ].disabled;
|
6595 |
-
if ( disabled != null ) {
|
6596 |
-
options.disabled = disabled;
|
6597 |
-
}
|
6598 |
-
return options;
|
6599 |
-
},
|
6600 |
-
|
6601 |
-
_create: function() {
|
6602 |
-
var checked = this.element[ 0 ].checked;
|
6603 |
-
|
6604 |
-
this._bindFormResetHandler();
|
6605 |
-
|
6606 |
-
if ( this.options.disabled == null ) {
|
6607 |
-
this.options.disabled = this.element[ 0 ].disabled;
|
6608 |
-
}
|
6609 |
-
|
6610 |
-
this._setOption( "disabled", this.options.disabled );
|
6611 |
-
this._addClass( "ui-checkboxradio", "ui-helper-hidden-accessible" );
|
6612 |
-
this._addClass( this.label, "ui-checkboxradio-label", "ui-button ui-widget" );
|
6613 |
-
|
6614 |
-
if ( this.type === "radio" ) {
|
6615 |
-
this._addClass( this.label, "ui-checkboxradio-radio-label" );
|
6616 |
-
}
|
6617 |
-
|
6618 |
-
if ( this.options.label && this.options.label !== this.originalLabel ) {
|
6619 |
-
this._updateLabel();
|
6620 |
-
} else if ( this.originalLabel ) {
|
6621 |
-
this.options.label = this.originalLabel;
|
6622 |
-
}
|
6623 |
-
|
6624 |
-
this._enhance();
|
6625 |
-
|
6626 |
-
if ( checked ) {
|
6627 |
-
this._addClass( this.label, "ui-checkboxradio-checked", "ui-state-active" );
|
6628 |
-
if ( this.icon ) {
|
6629 |
-
this._addClass( this.icon, null, "ui-state-hover" );
|
6630 |
-
}
|
6631 |
-
}
|
6632 |
-
|
6633 |
-
this._on( {
|
6634 |
-
change: "_toggleClasses",
|
6635 |
-
focus: function() {
|
6636 |
-
this._addClass( this.label, null, "ui-state-focus ui-visual-focus" );
|
6637 |
-
},
|
6638 |
-
blur: function() {
|
6639 |
-
this._removeClass( this.label, null, "ui-state-focus ui-visual-focus" );
|
6640 |
-
}
|
6641 |
-
} );
|
6642 |
-
},
|
6643 |
-
|
6644 |
-
_readType: function() {
|
6645 |
-
var nodeName = this.element[ 0 ].nodeName.toLowerCase();
|
6646 |
-
this.type = this.element[ 0 ].type;
|
6647 |
-
if ( nodeName !== "input" || !/radio|checkbox/.test( this.type ) ) {
|
6648 |
-
$.error( "Can't create checkboxradio on element.nodeName=" + nodeName +
|
6649 |
-
" and element.type=" + this.type );
|
6650 |
-
}
|
6651 |
-
},
|
6652 |
-
|
6653 |
-
// Support jQuery Mobile enhanced option
|
6654 |
-
_enhance: function() {
|
6655 |
-
this._updateIcon( this.element[ 0 ].checked );
|
6656 |
-
},
|
6657 |
-
|
6658 |
-
widget: function() {
|
6659 |
-
return this.label;
|
6660 |
-
},
|
6661 |
-
|
6662 |
-
_getRadioGroup: function() {
|
6663 |
-
var group;
|
6664 |
-
var name = this.element[ 0 ].name;
|
6665 |
-
var nameSelector = "input[name='" + $.ui.escapeSelector( name ) + "']";
|
6666 |
-
|
6667 |
-
if ( !name ) {
|
6668 |
-
return $( [] );
|
6669 |
-
}
|
6670 |
-
|
6671 |
-
if ( this.form.length ) {
|
6672 |
-
group = $( this.form[ 0 ].elements ).filter( nameSelector );
|
6673 |
-
} else {
|
6674 |
-
|
6675 |
-
// Not inside a form, check all inputs that also are not inside a form
|
6676 |
-
group = $( nameSelector ).filter( function() {
|
6677 |
-
return $( this ).form().length === 0;
|
6678 |
-
} );
|
6679 |
-
}
|
6680 |
-
|
6681 |
-
return group.not( this.element );
|
6682 |
-
},
|
6683 |
-
|
6684 |
-
_toggleClasses: function() {
|
6685 |
-
var checked = this.element[ 0 ].checked;
|
6686 |
-
this._toggleClass( this.label, "ui-checkboxradio-checked", "ui-state-active", checked );
|
6687 |
-
|
6688 |
-
if ( this.options.icon && this.type === "checkbox" ) {
|
6689 |
-
this._toggleClass( this.icon, null, "ui-icon-check ui-state-checked", checked )
|
6690 |
-
._toggleClass( this.icon, null, "ui-icon-blank", !checked );
|
6691 |
-
}
|
6692 |
-
|
6693 |
-
if ( this.type === "radio" ) {
|
6694 |
-
this._getRadioGroup()
|
6695 |
-
.each( function() {
|
6696 |
-
var instance = $( this ).checkboxradio( "instance" );
|
6697 |
-
|
6698 |
-
if ( instance ) {
|
6699 |
-
instance._removeClass( instance.label,
|
6700 |
-
"ui-checkboxradio-checked", "ui-state-active" );
|
6701 |
-
}
|
6702 |
-
} );
|
6703 |
-
}
|
6704 |
-
},
|
6705 |
-
|
6706 |
-
_destroy: function() {
|
6707 |
-
this._unbindFormResetHandler();
|
6708 |
-
|
6709 |
-
if ( this.icon ) {
|
6710 |
-
this.icon.remove();
|
6711 |
-
this.iconSpace.remove();
|
6712 |
-
}
|
6713 |
-
},
|
6714 |
-
|
6715 |
-
_setOption: function( key, value ) {
|
6716 |
-
|
6717 |
-
// We don't allow the value to be set to nothing
|
6718 |
-
if ( key === "label" && !value ) {
|
6719 |
-
return;
|
6720 |
-
}
|
6721 |
-
|
6722 |
-
this._super( key, value );
|
6723 |
-
|
6724 |
-
if ( key === "disabled" ) {
|
6725 |
-
this._toggleClass( this.label, null, "ui-state-disabled", value );
|
6726 |
-
this.element[ 0 ].disabled = value;
|
6727 |
-
|
6728 |
-
// Don't refresh when setting disabled
|
6729 |
-
return;
|
6730 |
-
}
|
6731 |
-
this.refresh();
|
6732 |
-
},
|
6733 |
-
|
6734 |
-
_updateIcon: function( checked ) {
|
6735 |
-
var toAdd = "ui-icon ui-icon-background ";
|
6736 |
-
|
6737 |
-
if ( this.options.icon ) {
|
6738 |
-
if ( !this.icon ) {
|
6739 |
-
this.icon = $( "<span>" );
|
6740 |
-
this.iconSpace = $( "<span> </span>" );
|
6741 |
-
this._addClass( this.iconSpace, "ui-checkboxradio-icon-space" );
|
6742 |
-
}
|
6743 |
-
|
6744 |
-
if ( this.type === "checkbox" ) {
|
6745 |
-
toAdd += checked ? "ui-icon-check ui-state-checked" : "ui-icon-blank";
|
6746 |
-
this._removeClass( this.icon, null, checked ? "ui-icon-blank" : "ui-icon-check" );
|
6747 |
-
} else {
|
6748 |
-
toAdd += "ui-icon-blank";
|
6749 |
-
}
|
6750 |
-
this._addClass( this.icon, "ui-checkboxradio-icon", toAdd );
|
6751 |
-
if ( !checked ) {
|
6752 |
-
this._removeClass( this.icon, null, "ui-icon-check ui-state-checked" );
|
6753 |
-
}
|
6754 |
-
this.icon.prependTo( this.label ).after( this.iconSpace );
|
6755 |
-
} else if ( this.icon !== undefined ) {
|
6756 |
-
this.icon.remove();
|
6757 |
-
this.iconSpace.remove();
|
6758 |
-
delete this.icon;
|
6759 |
-
}
|
6760 |
-
},
|
6761 |
-
|
6762 |
-
_updateLabel: function() {
|
6763 |
-
|
6764 |
-
// Remove the contents of the label ( minus the icon, icon space, and input )
|
6765 |
-
var contents = this.label.contents().not( this.element[ 0 ] );
|
6766 |
-
if ( this.icon ) {
|
6767 |
-
contents = contents.not( this.icon[ 0 ] );
|
6768 |
-
}
|
6769 |
-
if ( this.iconSpace ) {
|
6770 |
-
contents = contents.not( this.iconSpace[ 0 ] );
|
6771 |
-
}
|
6772 |
-
contents.remove();
|
6773 |
-
|
6774 |
-
this.label.append( this.options.label );
|
6775 |
-
},
|
6776 |
-
|
6777 |
-
refresh: function() {
|
6778 |
-
var checked = this.element[ 0 ].checked,
|
6779 |
-
isDisabled = this.element[ 0 ].disabled;
|
6780 |
-
|
6781 |
-
this._updateIcon( checked );
|
6782 |
-
this._toggleClass( this.label, "ui-checkboxradio-checked", "ui-state-active", checked );
|
6783 |
-
if ( this.options.label !== null ) {
|
6784 |
-
this._updateLabel();
|
6785 |
-
}
|
6786 |
-
|
6787 |
-
if ( isDisabled !== this.options.disabled ) {
|
6788 |
-
this._setOptions( { "disabled": isDisabled } );
|
6789 |
-
}
|
6790 |
-
}
|
6791 |
-
|
6792 |
-
} ] );
|
6793 |
-
|
6794 |
-
var widgetsCheckboxradio = $.ui.checkboxradio;
|
6795 |
-
|
6796 |
-
|
6797 |
-
/*!
|
6798 |
-
* jQuery UI Button 1.12.1
|
6799 |
-
* http://jqueryui.com
|
6800 |
-
*
|
6801 |
-
* Copyright jQuery Foundation and other contributors
|
6802 |
-
* Released under the MIT license.
|
6803 |
-
* http://jquery.org/license
|
6804 |
-
*/
|
6805 |
-
|
6806 |
-
//>>label: Button
|
6807 |
-
//>>group: Widgets
|
6808 |
-
//>>description: Enhances a form with themeable buttons.
|
6809 |
-
//>>docs: http://api.jqueryui.com/button/
|
6810 |
-
//>>demos: http://jqueryui.com/button/
|
6811 |
-
//>>css.structure: ../../themes/base/core.css
|
6812 |
-
//>>css.structure: ../../themes/base/button.css
|
6813 |
-
//>>css.theme: ../../themes/base/theme.css
|
6814 |
-
|
6815 |
-
|
6816 |
-
|
6817 |
-
$.widget( "ui.button", {
|
6818 |
-
version: "1.12.1",
|
6819 |
-
defaultElement: "<button>",
|
6820 |
-
options: {
|
6821 |
-
classes: {
|
6822 |
-
"ui-button": "ui-corner-all"
|
6823 |
-
},
|
6824 |
-
disabled: null,
|
6825 |
-
icon: null,
|
6826 |
-
iconPosition: "beginning",
|
6827 |
-
label: null,
|
6828 |
-
showLabel: true
|
6829 |
-
},
|
6830 |
-
|
6831 |
-
_getCreateOptions: function() {
|
6832 |
-
var disabled,
|
6833 |
-
|
6834 |
-
// This is to support cases like in jQuery Mobile where the base widget does have
|
6835 |
-
// an implementation of _getCreateOptions
|
6836 |
-
options = this._super() || {};
|
6837 |
-
|
6838 |
-
this.isInput = this.element.is( "input" );
|
6839 |
-
|
6840 |
-
disabled = this.element[ 0 ].disabled;
|
6841 |
-
if ( disabled != null ) {
|
6842 |
-
options.disabled = disabled;
|
6843 |
-
}
|
6844 |
-
|
6845 |
-
this.originalLabel = this.isInput ? this.element.val() : this.element.html();
|
6846 |
-
if ( this.originalLabel ) {
|
6847 |
-
options.label = this.originalLabel;
|
6848 |
-
}
|
6849 |
-
|
6850 |
-
return options;
|
6851 |
-
},
|
6852 |
-
|
6853 |
-
_create: function() {
|
6854 |
-
if ( !this.option.showLabel & !this.options.icon ) {
|
6855 |
-
this.options.showLabel = true;
|
6856 |
-
}
|
6857 |
-
|
6858 |
-
// We have to check the option again here even though we did in _getCreateOptions,
|
6859 |
-
// because null may have been passed on init which would override what was set in
|
6860 |
-
// _getCreateOptions
|
6861 |
-
if ( this.options.disabled == null ) {
|
6862 |
-
this.options.disabled = this.element[ 0 ].disabled || false;
|
6863 |
-
}
|
6864 |
-
|
6865 |
-
this.hasTitle = !!this.element.attr( "title" );
|
6866 |
-
|
6867 |
-
// Check to see if the label needs to be set or if its already correct
|
6868 |
-
if ( this.options.label && this.options.label !== this.originalLabel ) {
|
6869 |
-
if ( this.isInput ) {
|
6870 |
-
this.element.val( this.options.label );
|
6871 |
-
} else {
|
6872 |
-
this.element.html( this.options.label );
|
6873 |
-
}
|
6874 |
-
}
|
6875 |
-
this._addClass( "ui-button", "ui-widget" );
|
6876 |
-
this._setOption( "disabled", this.options.disabled );
|
6877 |
-
this._enhance();
|
6878 |
-
|
6879 |
-
if ( this.element.is( "a" ) ) {
|
6880 |
-
this._on( {
|
6881 |
-
"keyup": function( event ) {
|
6882 |
-
if ( event.keyCode === $.ui.keyCode.SPACE ) {
|
6883 |
-
event.preventDefault();
|
6884 |
-
|
6885 |
-
// Support: PhantomJS <= 1.9, IE 8 Only
|
6886 |
-
// If a native click is available use it so we actually cause navigation
|
6887 |
-
// otherwise just trigger a click event
|
6888 |
-
if ( this.element[ 0 ].click ) {
|
6889 |
-
this.element[ 0 ].click();
|
6890 |
-
} else {
|
6891 |
-
this.element.trigger( "click" );
|
6892 |
-
}
|
6893 |
-
}
|
6894 |
-
}
|
6895 |
-
} );
|
6896 |
-
}
|
6897 |
-
},
|
6898 |
-
|
6899 |
-
_enhance: function() {
|
6900 |
-
if ( !this.element.is( "button" ) ) {
|
6901 |
-
this.element.attr( "role", "button" );
|
6902 |
-
}
|
6903 |
-
|
6904 |
-
if ( this.options.icon ) {
|
6905 |
-
this._updateIcon( "icon", this.options.icon );
|
6906 |
-
this._updateTooltip();
|
6907 |
-
}
|
6908 |
-
},
|
6909 |
-
|
6910 |
-
_updateTooltip: function() {
|
6911 |
-
this.title = this.element.attr( "title" );
|
6912 |
-
|
6913 |
-
if ( !this.options.showLabel && !this.title ) {
|
6914 |
-
this.element.attr( "title", this.options.label );
|
6915 |
-
}
|
6916 |
-
},
|
6917 |
-
|
6918 |
-
_updateIcon: function( option, value ) {
|
6919 |
-
var icon = option !== "iconPosition",
|
6920 |
-
position = icon ? this.options.iconPosition : value,
|
6921 |
-
displayBlock = position === "top" || position === "bottom";
|
6922 |
-
|
6923 |
-
// Create icon
|
6924 |
-
if ( !this.icon ) {
|
6925 |
-
this.icon = $( "<span>" );
|
6926 |
-
|
6927 |
-
this._addClass( this.icon, "ui-button-icon", "ui-icon" );
|
6928 |
-
|
6929 |
-
if ( !this.options.showLabel ) {
|
6930 |
-
this._addClass( "ui-button-icon-only" );
|
6931 |
-
}
|
6932 |
-
} else if ( icon ) {
|
6933 |
-
|
6934 |
-
// If we are updating the icon remove the old icon class
|
6935 |
-
this._removeClass( this.icon, null, this.options.icon );
|
6936 |
-
}
|
6937 |
-
|
6938 |
-
// If we are updating the icon add the new icon class
|
6939 |
-
if ( icon ) {
|
6940 |
-
this._addClass( this.icon, null, value );
|
6941 |
-
}
|
6942 |
-
|
6943 |
-
this._attachIcon( position );
|
6944 |
-
|
6945 |
-
// If the icon is on top or bottom we need to add the ui-widget-icon-block class and remove
|
6946 |
-
// the iconSpace if there is one.
|
6947 |
-
if ( displayBlock ) {
|
6948 |
-
this._addClass( this.icon, null, "ui-widget-icon-block" );
|
6949 |
-
if ( this.iconSpace ) {
|
6950 |
-
this.iconSpace.remove();
|
6951 |
-
}
|
6952 |
-
} else {
|
6953 |
-
|
6954 |
-
// Position is beginning or end so remove the ui-widget-icon-block class and add the
|
6955 |
-
// space if it does not exist
|
6956 |
-
if ( !this.iconSpace ) {
|
6957 |
-
this.iconSpace = $( "<span> </span>" );
|
6958 |
-
this._addClass( this.iconSpace, "ui-button-icon-space" );
|
6959 |
-
}
|
6960 |
-
this._removeClass( this.icon, null, "ui-wiget-icon-block" );
|
6961 |
-
this._attachIconSpace( position );
|
6962 |
-
}
|
6963 |
-
},
|
6964 |
-
|
6965 |
-
_destroy: function() {
|
6966 |
-
this.element.removeAttr( "role" );
|
6967 |
-
|
6968 |
-
if ( this.icon ) {
|
6969 |
-
this.icon.remove();
|
6970 |
-
}
|
6971 |
-
if ( this.iconSpace ) {
|
6972 |
-
this.iconSpace.remove();
|
6973 |
-
}
|
6974 |
-
if ( !this.hasTitle ) {
|
6975 |
-
this.element.removeAttr( "title" );
|
6976 |
-
}
|
6977 |
-
},
|
6978 |
-
|
6979 |
-
_attachIconSpace: function( iconPosition ) {
|
6980 |
-
this.icon[ /^(?:end|bottom)/.test( iconPosition ) ? "before" : "after" ]( this.iconSpace );
|
6981 |
-
},
|
6982 |
-
|
6983 |
-
_attachIcon: function( iconPosition ) {
|
6984 |
-
this.element[ /^(?:end|bottom)/.test( iconPosition ) ? "append" : "prepend" ]( this.icon );
|
6985 |
-
},
|
6986 |
-
|
6987 |
-
_setOptions: function( options ) {
|
6988 |
-
var newShowLabel = options.showLabel === undefined ?
|
6989 |
-
this.options.showLabel :
|
6990 |
-
options.showLabel,
|
6991 |
-
newIcon = options.icon === undefined ? this.options.icon : options.icon;
|
6992 |
-
|
6993 |
-
if ( !newShowLabel && !newIcon ) {
|
6994 |
-
options.showLabel = true;
|
6995 |
-
}
|
6996 |
-
this._super( options );
|
6997 |
-
},
|
6998 |
-
|
6999 |
-
_setOption: function( key, value ) {
|
7000 |
-
if ( key === "icon" ) {
|
7001 |
-
if ( value ) {
|
7002 |
-
this._updateIcon( key, value );
|
7003 |
-
} else if ( this.icon ) {
|
7004 |
-
this.icon.remove();
|
7005 |
-
if ( this.iconSpace ) {
|
7006 |
-
this.iconSpace.remove();
|
7007 |
-
}
|
7008 |
-
}
|
7009 |
-
}
|
7010 |
-
|
7011 |
-
if ( key === "iconPosition" ) {
|
7012 |
-
this._updateIcon( key, value );
|
7013 |
-
}
|
7014 |
-
|
7015 |
-
// Make sure we can't end up with a button that has neither text nor icon
|
7016 |
-
if ( key === "showLabel" ) {
|
7017 |
-
this._toggleClass( "ui-button-icon-only", null, !value );
|
7018 |
-
this._updateTooltip();
|
7019 |
-
}
|
7020 |
-
|
7021 |
-
if ( key === "label" ) {
|
7022 |
-
if ( this.isInput ) {
|
7023 |
-
this.element.val( value );
|
7024 |
-
} else {
|
7025 |
-
|
7026 |
-
// If there is an icon, append it, else nothing then append the value
|
7027 |
-
// this avoids removal of the icon when setting label text
|
7028 |
-
this.element.html( value );
|
7029 |
-
if ( this.icon ) {
|
7030 |
-
this._attachIcon( this.options.iconPosition );
|
7031 |
-
this._attachIconSpace( this.options.iconPosition );
|
7032 |
-
}
|
7033 |
-
}
|
7034 |
-
}
|
7035 |
-
|
7036 |
-
this._super( key, value );
|
7037 |
-
|
7038 |
-
if ( key === "disabled" ) {
|
7039 |
-
this._toggleClass( null, "ui-state-disabled", value );
|
7040 |
-
this.element[ 0 ].disabled = value;
|
7041 |
-
if ( value ) {
|
7042 |
-
this.element.blur();
|
7043 |
-
}
|
7044 |
-
}
|
7045 |
-
},
|
7046 |
-
|
7047 |
-
refresh: function() {
|
7048 |
-
|
7049 |
-
// Make sure to only check disabled if its an element that supports this otherwise
|
7050 |
-
// check for the disabled class to determine state
|
7051 |
-
var isDisabled = this.element.is( "input, button" ) ?
|
7052 |
-
this.element[ 0 ].disabled : this.element.hasClass( "ui-button-disabled" );
|
7053 |
-
|
7054 |
-
if ( isDisabled !== this.options.disabled ) {
|
7055 |
-
this._setOptions( { disabled: isDisabled } );
|
7056 |
-
}
|
7057 |
-
|
7058 |
-
this._updateTooltip();
|
7059 |
-
}
|
7060 |
-
} );
|
7061 |
-
|
7062 |
-
// DEPRECATED
|
7063 |
-
if ( $.uiBackCompat !== false ) {
|
7064 |
-
|
7065 |
-
// Text and Icons options
|
7066 |
-
$.widget( "ui.button", $.ui.button, {
|
7067 |
-
options: {
|
7068 |
-
text: true,
|
7069 |
-
icons: {
|
7070 |
-
primary: null,
|
7071 |
-
secondary: null
|
7072 |
-
}
|
7073 |
-
},
|
7074 |
-
|
7075 |
-
_create: function() {
|
7076 |
-
if ( this.options.showLabel && !this.options.text ) {
|
7077 |
-
this.options.showLabel = this.options.text;
|
7078 |
-
}
|
7079 |
-
if ( !this.options.showLabel && this.options.text ) {
|
7080 |
-
this.options.text = this.options.showLabel;
|
7081 |
-
}
|
7082 |
-
if ( !this.options.icon && ( this.options.icons.primary ||
|
7083 |
-
this.options.icons.secondary ) ) {
|
7084 |
-
if ( this.options.icons.primary ) {
|
7085 |
-
this.options.icon = this.options.icons.primary;
|
7086 |
-
} else {
|
7087 |
-
this.options.icon = this.options.icons.secondary;
|
7088 |
-
this.options.iconPosition = "end";
|
7089 |
-
}
|
7090 |
-
} else if ( this.options.icon ) {
|
7091 |
-
this.options.icons.primary = this.options.icon;
|
7092 |
-
}
|
7093 |
-
this._super();
|
7094 |
-
},
|
7095 |
-
|
7096 |
-
_setOption: function( key, value ) {
|
7097 |
-
if ( key === "text" ) {
|
7098 |
-
this._super( "showLabel", value );
|
7099 |
-
return;
|
7100 |
-
}
|
7101 |
-
if ( key === "showLabel" ) {
|
7102 |
-
this.options.text = value;
|
7103 |
-
}
|
7104 |
-
if ( key === "icon" ) {
|
7105 |
-
this.options.icons.primary = value;
|
7106 |
-
}
|
7107 |
-
if ( key === "icons" ) {
|
7108 |
-
if ( value.primary ) {
|
7109 |
-
this._super( "icon", value.primary );
|
7110 |
-
this._super( "iconPosition", "beginning" );
|
7111 |
-
} else if ( value.secondary ) {
|
7112 |
-
this._super( "icon", value.secondary );
|
7113 |
-
this._super( "iconPosition", "end" );
|
7114 |
-
}
|
7115 |
-
}
|
7116 |
-
this._superApply( arguments );
|
7117 |
-
}
|
7118 |
-
} );
|
7119 |
-
|
7120 |
-
$.fn.button = ( function( orig ) {
|
7121 |
-
return function() {
|
7122 |
-
if ( !this.length || ( this.length && this[ 0 ].tagName !== "INPUT" ) ||
|
7123 |
-
( this.length && this[ 0 ].tagName === "INPUT" && (
|
7124 |
-
this.attr( "type" ) !== "checkbox" && this.attr( "type" ) !== "radio"
|
7125 |
-
) ) ) {
|
7126 |
-
return orig.apply( this, arguments );
|
7127 |
-
}
|
7128 |
-
if ( !$.ui.checkboxradio ) {
|
7129 |
-
$.error( "Checkboxradio widget missing" );
|
7130 |
-
}
|
7131 |
-
if ( arguments.length === 0 ) {
|
7132 |
-
return this.checkboxradio( {
|
7133 |
-
"icon": false
|
7134 |
-
} );
|
7135 |
-
}
|
7136 |
-
return this.checkboxradio.apply( this, arguments );
|
7137 |
-
};
|
7138 |
-
} )( $.fn.button );
|
7139 |
-
|
7140 |
-
$.fn.buttonset = function() {
|
7141 |
-
if ( !$.ui.controlgroup ) {
|
7142 |
-
$.error( "Controlgroup widget missing" );
|
7143 |
-
}
|
7144 |
-
if ( arguments[ 0 ] === "option" && arguments[ 1 ] === "items" && arguments[ 2 ] ) {
|
7145 |
-
return this.controlgroup.apply( this,
|
7146 |
-
[ arguments[ 0 ], "items.button", arguments[ 2 ] ] );
|
7147 |
-
}
|
7148 |
-
if ( arguments[ 0 ] === "option" && arguments[ 1 ] === "items" ) {
|
7149 |
-
return this.controlgroup.apply( this, [ arguments[ 0 ], "items.button" ] );
|
7150 |
-
}
|
7151 |
-
if ( typeof arguments[ 0 ] === "object" && arguments[ 0 ].items ) {
|
7152 |
-
arguments[ 0 ].items = {
|
7153 |
-
button: arguments[ 0 ].items
|
7154 |
-
};
|
7155 |
-
}
|
7156 |
-
return this.controlgroup.apply( this, arguments );
|
7157 |
-
};
|
7158 |
-
}
|
7159 |
-
|
7160 |
-
var widgetsButton = $.ui.button;
|
7161 |
-
|
7162 |
-
|
7163 |
-
// jscs:disable maximumLineLength
|
7164 |
-
/* jscs:disable requireCamelCaseOrUpperCaseIdentifiers */
|
7165 |
-
/*!
|
7166 |
-
* jQuery UI Datepicker 1.12.1
|
7167 |
-
* http://jqueryui.com
|
7168 |
-
*
|
7169 |
-
* Copyright jQuery Foundation and other contributors
|
7170 |
-
* Released under the MIT license.
|
7171 |
-
* http://jquery.org/license
|
7172 |
-
*/
|
7173 |
-
|
7174 |
-
//>>label: Datepicker
|
7175 |
-
//>>group: Widgets
|
7176 |
-
//>>description: Displays a calendar from an input or inline for selecting dates.
|
7177 |
-
//>>docs: http://api.jqueryui.com/datepicker/
|
7178 |
-
//>>demos: http://jqueryui.com/datepicker/
|
7179 |
-
//>>css.structure: ../../themes/base/core.css
|
7180 |
-
//>>css.structure: ../../themes/base/datepicker.css
|
7181 |
-
//>>css.theme: ../../themes/base/theme.css
|
7182 |
-
|
7183 |
-
|
7184 |
-
|
7185 |
-
$.extend( $.ui, { datepicker: { version: "1.12.1" } } );
|
7186 |
-
|
7187 |
-
var datepicker_instActive;
|
7188 |
-
|
7189 |
-
function datepicker_getZindex( elem ) {
|
7190 |
-
var position, value;
|
7191 |
-
while ( elem.length && elem[ 0 ] !== document ) {
|
7192 |
-
|
7193 |
-
// Ignore z-index if position is set to a value where z-index is ignored by the browser
|
7194 |
-
// This makes behavior of this function consistent across browsers
|
7195 |
-
// WebKit always returns auto if the element is positioned
|
7196 |
-
position = elem.css( "position" );
|
7197 |
-
if ( position === "absolute" || position === "relative" || position === "fixed" ) {
|
7198 |
-
|
7199 |
-
// IE returns 0 when zIndex is not specified
|
7200 |
-
// other browsers return a string
|
7201 |
-
// we ignore the case of nested elements with an explicit value of 0
|
7202 |
-
// <div style="z-index: -10;"><div style="z-index: 0;"></div></div>
|
7203 |
-
value = parseInt( elem.css( "zIndex" ), 10 );
|
7204 |
-
if ( !isNaN( value ) && value !== 0 ) {
|
7205 |
-
return value;
|
7206 |
-
}
|
7207 |
-
}
|
7208 |
-
elem = elem.parent();
|
7209 |
-
}
|
7210 |
-
|
7211 |
-
return 0;
|
7212 |
-
}
|
7213 |
-
/* Date picker manager.
|
7214 |
-
Use the singleton instance of this class, $.datepicker, to interact with the date picker.
|
7215 |
-
Settings for (groups of) date pickers are maintained in an instance object,
|
7216 |
-
allowing multiple different settings on the same page. */
|
7217 |
-
|
7218 |
-
function Datepicker() {
|
7219 |
-
this._curInst = null; // The current instance in use
|
7220 |
-
this._keyEvent = false; // If the last event was a key event
|
7221 |
-
this._disabledInputs = []; // List of date picker inputs that have been disabled
|
7222 |
-
this._datepickerShowing = false; // True if the popup picker is showing , false if not
|
7223 |
-
this._inDialog = false; // True if showing within a "dialog", false if not
|
7224 |
-
this._mainDivId = "ui-datepicker-div"; // The ID of the main datepicker division
|
7225 |
-
this._inlineClass = "ui-datepicker-inline"; // The name of the inline marker class
|
7226 |
-
this._appendClass = "ui-datepicker-append"; // The name of the append marker class
|
7227 |
-
this._triggerClass = "ui-datepicker-trigger"; // The name of the trigger marker class
|
7228 |
-
this._dialogClass = "ui-datepicker-dialog"; // The name of the dialog marker class
|
7229 |
-
this._disableClass = "ui-datepicker-disabled"; // The name of the disabled covering marker class
|
7230 |
-
this._unselectableClass = "ui-datepicker-unselectable"; // The name of the unselectable cell marker class
|
7231 |
-
this._currentClass = "ui-datepicker-current-day"; // The name of the current day marker class
|
7232 |
-
this._dayOverClass = "ui-datepicker-days-cell-over"; // The name of the day hover marker class
|
7233 |
-
this.regional = []; // Available regional settings, indexed by language code
|
7234 |
-
this.regional[ "" ] = { // Default regional settings
|
7235 |
-
closeText: "Done", // Display text for close link
|
7236 |
-
prevText: "Prev", // Display text for previous month link
|
7237 |
-
nextText: "Next", // Display text for next month link
|
7238 |
-
currentText: "Today", // Display text for current month link
|
7239 |
-
monthNames: [ "January","February","March","April","May","June",
|
7240 |
-
"July","August","September","October","November","December" ], // Names of months for drop-down and formatting
|
7241 |
-
monthNamesShort: [ "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" ], // For formatting
|
7242 |
-
dayNames: [ "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" ], // For formatting
|
7243 |
-
dayNamesShort: [ "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" ], // For formatting
|
7244 |
-
dayNamesMin: [ "Su","Mo","Tu","We","Th","Fr","Sa" ], // Column headings for days starting at Sunday
|
7245 |
-
weekHeader: "Wk", // Column header for week of the year
|
7246 |
-
dateFormat: "mm/dd/yy", // See format options on parseDate
|
7247 |
-
firstDay: 0, // The first day of the week, Sun = 0, Mon = 1, ...
|
7248 |
-
isRTL: false, // True if right-to-left language, false if left-to-right
|
7249 |
-
showMonthAfterYear: false, // True if the year select precedes month, false for month then year
|
7250 |
-
yearSuffix: "" // Additional text to append to the year in the month headers
|
7251 |
-
};
|
7252 |
-
this._defaults = { // Global defaults for all the date picker instances
|
7253 |
-
showOn: "focus", // "focus" for popup on focus,
|
7254 |
-
// "button" for trigger button, or "both" for either
|
7255 |
-
showAnim: "fadeIn", // Name of jQuery animation for popup
|
7256 |
-
showOptions: {}, // Options for enhanced animations
|
7257 |
-
defaultDate: null, // Used when field is blank: actual date,
|
7258 |
-
// +/-number for offset from today, null for today
|
7259 |
-
appendText: "", // Display text following the input box, e.g. showing the format
|
7260 |
-
buttonText: "...", // Text for trigger button
|
7261 |
-
buttonImage: "", // URL for trigger button image
|
7262 |
-
buttonImageOnly: false, // True if the image appears alone, false if it appears on a button
|
7263 |
-
hideIfNoPrevNext: false, // True to hide next/previous month links
|
7264 |
-
// if not applicable, false to just disable them
|
7265 |
-
navigationAsDateFormat: false, // True if date formatting applied to prev/today/next links
|
7266 |
-
gotoCurrent: false, // True if today link goes back to current selection instead
|
7267 |
-
changeMonth: false, // True if month can be selected directly, false if only prev/next
|
7268 |
-
changeYear: false, // True if year can be selected directly, false if only prev/next
|
7269 |
-
yearRange: "c-10:c+10", // Range of years to display in drop-down,
|
7270 |
-
// either relative to today's year (-nn:+nn), relative to currently displayed year
|
7271 |
-
// (c-nn:c+nn), absolute (nnnn:nnnn), or a combination of the above (nnnn:-n)
|
7272 |
-
showOtherMonths: false, // True to show dates in other months, false to leave blank
|
7273 |
-
selectOtherMonths: false, // True to allow selection of dates in other months, false for unselectable
|
7274 |
-
showWeek: false, // True to show week of the year, false to not show it
|
7275 |
-
calculateWeek: this.iso8601Week, // How to calculate the week of the year,
|
7276 |
-
// takes a Date and returns the number of the week for it
|
7277 |
-
shortYearCutoff: "+10", // Short year values < this are in the current century,
|
7278 |
-
// > this are in the previous century,
|
7279 |
-
// string value starting with "+" for current year + value
|
7280 |
-
minDate: null, // The earliest selectable date, or null for no limit
|
7281 |
-
maxDate: null, // The latest selectable date, or null for no limit
|
7282 |
-
duration: "fast", // Duration of display/closure
|
7283 |
-
beforeShowDay: null, // Function that takes a date and returns an array with
|
7284 |
-
// [0] = true if selectable, false if not, [1] = custom CSS class name(s) or "",
|
7285 |
-
// [2] = cell title (optional), e.g. $.datepicker.noWeekends
|
7286 |
-
beforeShow: null, // Function that takes an input field and
|
7287 |
-
// returns a set of custom settings for the date picker
|
7288 |
-
onSelect: null, // Define a callback function when a date is selected
|
7289 |
-
onChangeMonthYear: null, // Define a callback function when the month or year is changed
|
7290 |
-
onClose: null, // Define a callback function when the datepicker is closed
|
7291 |
-
numberOfMonths: 1, // Number of months to show at a time
|
7292 |
-
showCurrentAtPos: 0, // The position in multipe months at which to show the current month (starting at 0)
|
7293 |
-
stepMonths: 1, // Number of months to step back/forward
|
7294 |
-
stepBigMonths: 12, // Number of months to step back/forward for the big links
|
7295 |
-
altField: "", // Selector for an alternate field to store selected dates into
|
7296 |
-
altFormat: "", // The date format to use for the alternate field
|
7297 |
-
constrainInput: true, // The input is constrained by the current date format
|
7298 |
-
showButtonPanel: false, // True to show button panel, false to not show it
|
7299 |
-
autoSize: false, // True to size the input for the date format, false to leave as is
|
7300 |
-
disabled: false // The initial disabled state
|
7301 |
-
};
|
7302 |
-
$.extend( this._defaults, this.regional[ "" ] );
|
7303 |
-
this.regional.en = $.extend( true, {}, this.regional[ "" ] );
|
7304 |
-
this.regional[ "en-US" ] = $.extend( true, {}, this.regional.en );
|
7305 |
-
this.dpDiv = datepicker_bindHover( $( "<div id='" + this._mainDivId + "' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>" ) );
|
7306 |
-
}
|
7307 |
-
|
7308 |
-
$.extend( Datepicker.prototype, {
|
7309 |
-
/* Class name added to elements to indicate already configured with a date picker. */
|
7310 |
-
markerClassName: "hasDatepicker",
|
7311 |
-
|
7312 |
-
//Keep track of the maximum number of rows displayed (see #7043)
|
7313 |
-
maxRows: 4,
|
7314 |
-
|
7315 |
-
// TODO rename to "widget" when switching to widget factory
|
7316 |
-
_widgetDatepicker: function() {
|
7317 |
-
return this.dpDiv;
|
7318 |
-
},
|
7319 |
-
|
7320 |
-
/* Override the default settings for all instances of the date picker.
|
7321 |
-
* @param settings object - the new settings to use as defaults (anonymous object)
|
7322 |
-
* @return the manager object
|
7323 |
-
*/
|
7324 |
-
setDefaults: function( settings ) {
|
7325 |
-
datepicker_extendRemove( this._defaults, settings || {} );
|
7326 |
-
return this;
|
7327 |
-
},
|
7328 |
-
|
7329 |
-
/* Attach the date picker to a jQuery selection.
|
7330 |
-
* @param target element - the target input field or division or span
|
7331 |
-
* @param settings object - the new settings to use for this date picker instance (anonymous)
|
7332 |
-
*/
|
7333 |
-
_attachDatepicker: function( target, settings ) {
|
7334 |
-
var nodeName, inline, inst;
|
7335 |
-
nodeName = target.nodeName.toLowerCase();
|
7336 |
-
inline = ( nodeName === "div" || nodeName === "span" );
|
7337 |
-
if ( !target.id ) {
|
7338 |
-
this.uuid += 1;
|
7339 |
-
target.id = "dp" + this.uuid;
|
7340 |
-
}
|
7341 |
-
inst = this._newInst( $( target ), inline );
|
7342 |
-
inst.settings = $.extend( {}, settings || {} );
|
7343 |
-
if ( nodeName === "input" ) {
|
7344 |
-
this._connectDatepicker( target, inst );
|
7345 |
-
} else if ( inline ) {
|
7346 |
-
this._inlineDatepicker( target, inst );
|
7347 |
-
}
|
7348 |
-
},
|
7349 |
-
|
7350 |
-
/* Create a new instance object. */
|
7351 |
-
_newInst: function( target, inline ) {
|
7352 |
-
var id = target[ 0 ].id.replace( /([^A-Za-z0-9_\-])/g, "\\\\$1" ); // escape jQuery meta chars
|
7353 |
-
return { id: id, input: target, // associated target
|
7354 |
-
selectedDay: 0, selectedMonth: 0, selectedYear: 0, // current selection
|
7355 |
-
drawMonth: 0, drawYear: 0, // month being drawn
|
7356 |
-
inline: inline, // is datepicker inline or not
|
7357 |
-
dpDiv: ( !inline ? this.dpDiv : // presentation div
|
7358 |
-
datepicker_bindHover( $( "<div class='" + this._inlineClass + " ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>" ) ) ) };
|
7359 |
-
},
|
7360 |
-
|
7361 |
-
/* Attach the date picker to an input field. */
|
7362 |
-
_connectDatepicker: function( target, inst ) {
|
7363 |
-
var input = $( target );
|
7364 |
-
inst.append = $( [] );
|
7365 |
-
inst.trigger = $( [] );
|
7366 |
-
if ( input.hasClass( this.markerClassName ) ) {
|
7367 |
-
return;
|
7368 |
-
}
|
7369 |
-
this._attachments( input, inst );
|
7370 |
-
input.addClass( this.markerClassName ).on( "keydown", this._doKeyDown ).
|
7371 |
-
on( "keypress", this._doKeyPress ).on( "keyup", this._doKeyUp );
|
7372 |
-
this._autoSize( inst );
|
7373 |
-
$.data( target, "datepicker", inst );
|
7374 |
-
|
7375 |
-
//If disabled option is true, disable the datepicker once it has been attached to the input (see ticket #5665)
|
7376 |
-
if ( inst.settings.disabled ) {
|
7377 |
-
this._disableDatepicker( target );
|
7378 |
-
}
|
7379 |
-
},
|
7380 |
-
|
7381 |
-
/* Make attachments based on settings. */
|
7382 |
-
_attachments: function( input, inst ) {
|
7383 |
-
var showOn, buttonText, buttonImage,
|
7384 |
-
appendText = this._get( inst, "appendText" ),
|
7385 |
-
isRTL = this._get( inst, "isRTL" );
|
7386 |
-
|
7387 |
-
if ( inst.append ) {
|
7388 |
-
inst.append.remove();
|
7389 |
-
}
|
7390 |
-
if ( appendText ) {
|
7391 |
-
inst.append = $( "<span class='" + this._appendClass + "'>" + appendText + "</span>" );
|
7392 |
-
input[ isRTL ? "before" : "after" ]( inst.append );
|
7393 |
-
}
|
7394 |
-
|
7395 |
-
input.off( "focus", this._showDatepicker );
|
7396 |
-
|
7397 |
-
if ( inst.trigger ) {
|
7398 |
-
inst.trigger.remove();
|
7399 |
-
}
|
7400 |
-
|
7401 |
-
showOn = this._get( inst, "showOn" );
|
7402 |
-
if ( showOn === "focus" || showOn === "both" ) { // pop-up date picker when in the marked field
|
7403 |
-
input.on( "focus", this._showDatepicker );
|
7404 |
-
}
|
7405 |
-
if ( showOn === "button" || showOn === "both" ) { // pop-up date picker when button clicked
|
7406 |
-
buttonText = this._get( inst, "buttonText" );
|
7407 |
-
buttonImage = this._get( inst, "buttonImage" );
|
7408 |
-
inst.trigger = $( this._get( inst, "buttonImageOnly" ) ?
|
7409 |
-
$( "<img/>" ).addClass( this._triggerClass ).
|
7410 |
-
attr( { src: buttonImage, alt: buttonText, title: buttonText } ) :
|
7411 |
-
$( "<button type='button'></button>" ).addClass( this._triggerClass ).
|
7412 |
-
html( !buttonImage ? buttonText : $( "<img/>" ).attr(
|
7413 |
-
{ src:buttonImage, alt:buttonText, title:buttonText } ) ) );
|
7414 |
-
input[ isRTL ? "before" : "after" ]( inst.trigger );
|
7415 |
-
inst.trigger.on( "click", function() {
|
7416 |
-
if ( $.datepicker._datepickerShowing && $.datepicker._lastInput === input[ 0 ] ) {
|
7417 |
-
$.datepicker._hideDatepicker();
|
7418 |
-
} else if ( $.datepicker._datepickerShowing && $.datepicker._lastInput !== input[ 0 ] ) {
|
7419 |
-
$.datepicker._hideDatepicker();
|
7420 |
-
$.datepicker._showDatepicker( input[ 0 ] );
|
7421 |
-
} else {
|
7422 |
-
$.datepicker._showDatepicker( input[ 0 ] );
|
7423 |
-
}
|
7424 |
-
return false;
|
7425 |
-
} );
|
7426 |
-
}
|
7427 |
-
},
|
7428 |
-
|
7429 |
-
/* Apply the maximum length for the date format. */
|
7430 |
-
_autoSize: function( inst ) {
|
7431 |
-
if ( this._get( inst, "autoSize" ) && !inst.inline ) {
|
7432 |
-
var findMax, max, maxI, i,
|
7433 |
-
date = new Date( 2009, 12 - 1, 20 ), // Ensure double digits
|
7434 |
-
dateFormat = this._get( inst, "dateFormat" );
|
7435 |
-
|
7436 |
-
if ( dateFormat.match( /[DM]/ ) ) {
|
7437 |
-
findMax = function( names ) {
|
7438 |
-
max = 0;
|
7439 |
-
maxI = 0;
|
7440 |
-
for ( i = 0; i < names.length; i++ ) {
|
7441 |
-
if ( names[ i ].length > max ) {
|
7442 |
-
max = names[ i ].length;
|
7443 |
-
maxI = i;
|
7444 |
-
}
|
7445 |
-
}
|
7446 |
-
return maxI;
|
7447 |
-
};
|
7448 |
-
date.setMonth( findMax( this._get( inst, ( dateFormat.match( /MM/ ) ?
|
7449 |
-
"monthNames" : "monthNamesShort" ) ) ) );
|
7450 |
-
date.setDate( findMax( this._get( inst, ( dateFormat.match( /DD/ ) ?
|
7451 |
-
"dayNames" : "dayNamesShort" ) ) ) + 20 - date.getDay() );
|
7452 |
-
}
|
7453 |
-
inst.input.attr( "size", this._formatDate( inst, date ).length );
|
7454 |
-
}
|
7455 |
-
},
|
7456 |
-
|
7457 |
-
/* Attach an inline date picker to a div. */
|
7458 |
-
_inlineDatepicker: function( target, inst ) {
|
7459 |
-
var divSpan = $( target );
|
7460 |
-
if ( divSpan.hasClass( this.markerClassName ) ) {
|
7461 |
-
return;
|
7462 |
-
}
|
7463 |
-
divSpan.addClass( this.markerClassName ).append( inst.dpDiv );
|
7464 |
-
$.data( target, "datepicker", inst );
|
7465 |
-
this._setDate( inst, this._getDefaultDate( inst ), true );
|
7466 |
-
this._updateDatepicker( inst );
|
7467 |
-
this._updateAlternate( inst );
|
7468 |
-
|
7469 |
-
//If disabled option is true, disable the datepicker before showing it (see ticket #5665)
|
7470 |
-
if ( inst.settings.disabled ) {
|
7471 |
-
this._disableDatepicker( target );
|
7472 |
-
}
|
7473 |
-
|
7474 |
-
// Set display:block in place of inst.dpDiv.show() which won't work on disconnected elements
|
7475 |
-
// http://bugs.jqueryui.com/ticket/7552 - A Datepicker created on a detached div has zero height
|
7476 |
-
inst.dpDiv.css( "display", "block" );
|
7477 |
-
},
|
7478 |
-
|
7479 |
-
/* Pop-up the date picker in a "dialog" box.
|
7480 |
-
* @param input element - ignored
|
7481 |
-
* @param date string or Date - the initial date to display
|
7482 |
-
* @param onSelect function - the function to call when a date is selected
|
7483 |
-
* @param settings object - update the dialog date picker instance's settings (anonymous object)
|
7484 |
-
* @param pos int[2] - coordinates for the dialog's position within the screen or
|
7485 |
-
* event - with x/y coordinates or
|
7486 |
-
* leave empty for default (screen centre)
|
7487 |
-
* @return the manager object
|
7488 |
-
*/
|
7489 |
-
_dialogDatepicker: function( input, date, onSelect, settings, pos ) {
|
7490 |
-
var id, browserWidth, browserHeight, scrollX, scrollY,
|
7491 |
-
inst = this._dialogInst; // internal instance
|
7492 |
-
|
7493 |
-
if ( !inst ) {
|
7494 |
-
this.uuid += 1;
|
7495 |
-
id = "dp" + this.uuid;
|
7496 |
-
this._dialogInput = $( "<input type='text' id='" + id +
|
7497 |
-
"' style='position: absolute; top: -100px; width: 0px;'/>" );
|
7498 |
-
this._dialogInput.on( "keydown", this._doKeyDown );
|
7499 |
-
$( "body" ).append( this._dialogInput );
|
7500 |
-
inst = this._dialogInst = this._newInst( this._dialogInput, false );
|
7501 |
-
inst.settings = {};
|
7502 |
-
$.data( this._dialogInput[ 0 ], "datepicker", inst );
|
7503 |
-
}
|
7504 |
-
datepicker_extendRemove( inst.settings, settings || {} );
|
7505 |
-
date = ( date && date.constructor === Date ? this._formatDate( inst, date ) : date );
|
7506 |
-
this._dialogInput.val( date );
|
7507 |
-
|
7508 |
-
this._pos = ( pos ? ( pos.length ? pos : [ pos.pageX, pos.pageY ] ) : null );
|
7509 |
-
if ( !this._pos ) {
|
7510 |
-
browserWidth = document.documentElement.clientWidth;
|
7511 |
-
browserHeight = document.documentElement.clientHeight;
|
7512 |
-
scrollX = document.documentElement.scrollLeft || document.body.scrollLeft;
|
7513 |
-
scrollY = document.documentElement.scrollTop || document.body.scrollTop;
|
7514 |
-
this._pos = // should use actual width/height below
|
7515 |
-
[ ( browserWidth / 2 ) - 100 + scrollX, ( browserHeight / 2 ) - 150 + scrollY ];
|
7516 |
-
}
|
7517 |
-
|
7518 |
-
// Move input on screen for focus, but hidden behind dialog
|
7519 |
-
this._dialogInput.css( "left", ( this._pos[ 0 ] + 20 ) + "px" ).css( "top", this._pos[ 1 ] + "px" );
|
7520 |
-
inst.settings.onSelect = onSelect;
|
7521 |
-
this._inDialog = true;
|
7522 |
-
this.dpDiv.addClass( this._dialogClass );
|
7523 |
-
this._showDatepicker( this._dialogInput[ 0 ] );
|
7524 |
-
if ( $.blockUI ) {
|
7525 |
-
$.blockUI( this.dpDiv );
|
7526 |
-
}
|
7527 |
-
$.data( this._dialogInput[ 0 ], "datepicker", inst );
|
7528 |
-
return this;
|
7529 |
-
},
|
7530 |
-
|
7531 |
-
/* Detach a datepicker from its control.
|
7532 |
-
* @param target element - the target input field or division or span
|
7533 |
-
*/
|
7534 |
-
_destroyDatepicker: function( target ) {
|
7535 |
-
var nodeName,
|
7536 |
-
$target = $( target ),
|
7537 |
-
inst = $.data( target, "datepicker" );
|
7538 |
-
|
7539 |
-
if ( !$target.hasClass( this.markerClassName ) ) {
|
7540 |
-
return;
|
7541 |
-
}
|
7542 |
-
|
7543 |
-
nodeName = target.nodeName.toLowerCase();
|
7544 |
-
$.removeData( target, "datepicker" );
|
7545 |
-
if ( nodeName === "input" ) {
|
7546 |
-
inst.append.remove();
|
7547 |
-
inst.trigger.remove();
|
7548 |
-
$target.removeClass( this.markerClassName ).
|
7549 |
-
off( "focus", this._showDatepicker ).
|
7550 |
-
off( "keydown", this._doKeyDown ).
|
7551 |
-
off( "keypress", this._doKeyPress ).
|
7552 |
-
off( "keyup", this._doKeyUp );
|
7553 |
-
} else if ( nodeName === "div" || nodeName === "span" ) {
|
7554 |
-
$target.removeClass( this.markerClassName ).empty();
|
7555 |
-
}
|
7556 |
-
|
7557 |
-
if ( datepicker_instActive === inst ) {
|
7558 |
-
datepicker_instActive = null;
|
7559 |
-
}
|
7560 |
-
},
|
7561 |
-
|
7562 |
-
/* Enable the date picker to a jQuery selection.
|
7563 |
-
* @param target element - the target input field or division or span
|
7564 |
-
*/
|
7565 |
-
_enableDatepicker: function( target ) {
|
7566 |
-
var nodeName, inline,
|
7567 |
-
$target = $( target ),
|
7568 |
-
inst = $.data( target, "datepicker" );
|
7569 |
-
|
7570 |
-
if ( !$target.hasClass( this.markerClassName ) ) {
|
7571 |
-
return;
|
7572 |
-
}
|
7573 |
-
|
7574 |
-
nodeName = target.nodeName.toLowerCase();
|
7575 |
-
if ( nodeName === "input" ) {
|
7576 |
-
target.disabled = false;
|
7577 |
-
inst.trigger.filter( "button" ).
|
7578 |
-
each( function() { this.disabled = false; } ).end().
|
7579 |
-
filter( "img" ).css( { opacity: "1.0", cursor: "" } );
|
7580 |
-
} else if ( nodeName === "div" || nodeName === "span" ) {
|
7581 |
-
inline = $target.children( "." + this._inlineClass );
|
7582 |
-
inline.children().removeClass( "ui-state-disabled" );
|
7583 |
-
inline.find( "select.ui-datepicker-month, select.ui-datepicker-year" ).
|
7584 |
-
prop( "disabled", false );
|
7585 |
-
}
|
7586 |
-
this._disabledInputs = $.map( this._disabledInputs,
|
7587 |
-
function( value ) { return ( value === target ? null : value ); } ); // delete entry
|
7588 |
-
},
|
7589 |
-
|
7590 |
-
/* Disable the date picker to a jQuery selection.
|
7591 |
-
* @param target element - the target input field or division or span
|
7592 |
-
*/
|
7593 |
-
_disableDatepicker: function( target ) {
|
7594 |
-
var nodeName, inline,
|
7595 |
-
$target = $( target ),
|
7596 |
-
inst = $.data( target, "datepicker" );
|
7597 |
-
|
7598 |
-
if ( !$target.hasClass( this.markerClassName ) ) {
|
7599 |
-
return;
|
7600 |
-
}
|
7601 |
-
|
7602 |
-
nodeName = target.nodeName.toLowerCase();
|
7603 |
-
if ( nodeName === "input" ) {
|
7604 |
-
target.disabled = true;
|
7605 |
-
inst.trigger.filter( "button" ).
|
7606 |
-
each( function() { this.disabled = true; } ).end().
|
7607 |
-
filter( "img" ).css( { opacity: "0.5", cursor: "default" } );
|
7608 |
-
} else if ( nodeName === "div" || nodeName === "span" ) {
|
7609 |
-
inline = $target.children( "." + this._inlineClass );
|
7610 |
-
inline.children().addClass( "ui-state-disabled" );
|
7611 |
-
inline.find( "select.ui-datepicker-month, select.ui-datepicker-year" ).
|
7612 |
-
prop( "disabled", true );
|
7613 |
-
}
|
7614 |
-
this._disabledInputs = $.map( this._disabledInputs,
|
7615 |
-
function( value ) { return ( value === target ? null : value ); } ); // delete entry
|
7616 |
-
this._disabledInputs[ this._disabledInputs.length ] = target;
|
7617 |
-
},
|
7618 |
-
|
7619 |
-
/* Is the first field in a jQuery collection disabled as a datepicker?
|
7620 |
-
* @param target element - the target input field or division or span
|
7621 |
-
* @return boolean - true if disabled, false if enabled
|
7622 |
-
*/
|
7623 |
-
_isDisabledDatepicker: function( target ) {
|
7624 |
-
if ( !target ) {
|
7625 |
-
return false;
|
7626 |
-
}
|
7627 |
-
for ( var i = 0; i < this._disabledInputs.length; i++ ) {
|
7628 |
-
if ( this._disabledInputs[ i ] === target ) {
|
7629 |
-
return true;
|
7630 |
-
}
|
7631 |
-
}
|
7632 |
-
return false;
|
7633 |
-
},
|
7634 |
-
|
7635 |
-
/* Retrieve the instance data for the target control.
|
7636 |
-
* @param target element - the target input field or division or span
|
7637 |
-
* @return object - the associated instance data
|
7638 |
-
* @throws error if a jQuery problem getting data
|
7639 |
-
*/
|
7640 |
-
_getInst: function( target ) {
|
7641 |
-
try {
|
7642 |
-
return $.data( target, "datepicker" );
|
7643 |
-
}
|
7644 |
-
catch ( err ) {
|
7645 |
-
throw "Missing instance data for this datepicker";
|
7646 |
-
}
|
7647 |
-
},
|
7648 |
-
|
7649 |
-
/* Update or retrieve the settings for a date picker attached to an input field or division.
|
7650 |
-
* @param target element - the target input field or division or span
|
7651 |
-
* @param name object - the new settings to update or
|
7652 |
-
* string - the name of the setting to change or retrieve,
|
7653 |
-
* when retrieving also "all" for all instance settings or
|
7654 |
-
* "defaults" for all global defaults
|
7655 |
-
* @param value any - the new value for the setting
|
7656 |
-
* (omit if above is an object or to retrieve a value)
|
7657 |
-
*/
|
7658 |
-
_optionDatepicker: function( target, name, value ) {
|
7659 |
-
var settings, date, minDate, maxDate,
|
7660 |
-
inst = this._getInst( target );
|
7661 |
-
|
7662 |
-
if ( arguments.length === 2 && typeof name === "string" ) {
|
7663 |
-
return ( name === "defaults" ? $.extend( {}, $.datepicker._defaults ) :
|
7664 |
-
( inst ? ( name === "all" ? $.extend( {}, inst.settings ) :
|
7665 |
-
this._get( inst, name ) ) : null ) );
|
7666 |
-
}
|
7667 |
-
|
7668 |
-
settings = name || {};
|
7669 |
-
if ( typeof name === "string" ) {
|
7670 |
-
settings = {};
|
7671 |
-
settings[ name ] = value;
|
7672 |
-
}
|
7673 |
-
|
7674 |
-
if ( inst ) {
|
7675 |
-
if ( this._curInst === inst ) {
|
7676 |
-
this._hideDatepicker();
|
7677 |
-
}
|
7678 |
-
|
7679 |
-
date = this._getDateDatepicker( target, true );
|
7680 |
-
minDate = this._getMinMaxDate( inst, "min" );
|
7681 |
-
maxDate = this._getMinMaxDate( inst, "max" );
|
7682 |
-
datepicker_extendRemove( inst.settings, settings );
|
7683 |
-
|
7684 |
-
// reformat the old minDate/maxDate values if dateFormat changes and a new minDate/maxDate isn't provided
|
7685 |
-
if ( minDate !== null && settings.dateFormat !== undefined && settings.minDate === undefined ) {
|
7686 |
-
inst.settings.minDate = this._formatDate( inst, minDate );
|
7687 |
-
}
|
7688 |
-
if ( maxDate !== null && settings.dateFormat !== undefined && settings.maxDate === undefined ) {
|
7689 |
-
inst.settings.maxDate = this._formatDate( inst, maxDate );
|
7690 |
-
}
|
7691 |
-
if ( "disabled" in settings ) {
|
7692 |
-
if ( settings.disabled ) {
|
7693 |
-
this._disableDatepicker( target );
|
7694 |
-
} else {
|
7695 |
-
this._enableDatepicker( target );
|
7696 |
-
}
|
7697 |
-
}
|
7698 |
-
this._attachments( $( target ), inst );
|
7699 |
-
this._autoSize( inst );
|
7700 |
-
this._setDate( inst, date );
|
7701 |
-
this._updateAlternate( inst );
|
7702 |
-
this._updateDatepicker( inst );
|
7703 |
-
}
|
7704 |
-
},
|
7705 |
-
|
7706 |
-
// Change method deprecated
|
7707 |
-
_changeDatepicker: function( target, name, value ) {
|
7708 |
-
this._optionDatepicker( target, name, value );
|
7709 |
-
},
|
7710 |
-
|
7711 |
-
/* Redraw the date picker attached to an input field or division.
|
7712 |
-
* @param target element - the target input field or division or span
|
7713 |
-
*/
|
7714 |
-
_refreshDatepicker: function( target ) {
|
7715 |
-
var inst = this._getInst( target );
|
7716 |
-
if ( inst ) {
|
7717 |
-
this._updateDatepicker( inst );
|
7718 |
-
}
|
7719 |
-
},
|
7720 |
-
|
7721 |
-
/* Set the dates for a jQuery selection.
|
7722 |
-
* @param target element - the target input field or division or span
|
7723 |
-
* @param date Date - the new date
|
7724 |
-
*/
|
7725 |
-
_setDateDatepicker: function( target, date ) {
|
7726 |
-
var inst = this._getInst( target );
|
7727 |
-
if ( inst ) {
|
7728 |
-
this._setDate( inst, date );
|
7729 |
-
this._updateDatepicker( inst );
|
7730 |
-
this._updateAlternate( inst );
|
7731 |
-
}
|
7732 |
-
},
|
7733 |
-
|
7734 |
-
/* Get the date(s) for the first entry in a jQuery selection.
|
7735 |
-
* @param target element - the target input field or division or span
|
7736 |
-
* @param noDefault boolean - true if no default date is to be used
|
7737 |
-
* @return Date - the current date
|
7738 |
-
*/
|
7739 |
-
_getDateDatepicker: function( target, noDefault ) {
|
7740 |
-
var inst = this._getInst( target );
|
7741 |
-
if ( inst && !inst.inline ) {
|
7742 |
-
this._setDateFromField( inst, noDefault );
|
7743 |
-
}
|
7744 |
-
return ( inst ? this._getDate( inst ) : null );
|
7745 |
-
},
|
7746 |
-
|
7747 |
-
/* Handle keystrokes. */
|
7748 |
-
_doKeyDown: function( event ) {
|
7749 |
-
var onSelect, dateStr, sel,
|
7750 |
-
inst = $.datepicker._getInst( event.target ),
|
7751 |
-
handled = true,
|
7752 |
-
isRTL = inst.dpDiv.is( ".ui-datepicker-rtl" );
|
7753 |
-
|
7754 |
-
inst._keyEvent = true;
|
7755 |
-
if ( $.datepicker._datepickerShowing ) {
|
7756 |
-
switch ( event.keyCode ) {
|
7757 |
-
case 9: $.datepicker._hideDatepicker();
|
7758 |
-
handled = false;
|
7759 |
-
break; // hide on tab out
|
7760 |
-
case 13: sel = $( "td." + $.datepicker._dayOverClass + ":not(." +
|
7761 |
-
$.datepicker._currentClass + ")", inst.dpDiv );
|
7762 |
-
if ( sel[ 0 ] ) {
|
7763 |
-
$.datepicker._selectDay( event.target, inst.selectedMonth, inst.selectedYear, sel[ 0 ] );
|
7764 |
-
}
|
7765 |
-
|
7766 |
-
onSelect = $.datepicker._get( inst, "onSelect" );
|
7767 |
-
if ( onSelect ) {
|
7768 |
-
dateStr = $.datepicker._formatDate( inst );
|
7769 |
-
|
7770 |
-
// Trigger custom callback
|
7771 |
-
onSelect.apply( ( inst.input ? inst.input[ 0 ] : null ), [ dateStr, inst ] );
|
7772 |
-
} else {
|
7773 |
-
$.datepicker._hideDatepicker();
|
7774 |
-
}
|
7775 |
-
|
7776 |
-
return false; // don't submit the form
|
7777 |
-
case 27: $.datepicker._hideDatepicker();
|
7778 |
-
break; // hide on escape
|
7779 |
-
case 33: $.datepicker._adjustDate( event.target, ( event.ctrlKey ?
|
7780 |
-
-$.datepicker._get( inst, "stepBigMonths" ) :
|
7781 |
-
-$.datepicker._get( inst, "stepMonths" ) ), "M" );
|
7782 |
-
break; // previous month/year on page up/+ ctrl
|
7783 |
-
case 34: $.datepicker._adjustDate( event.target, ( event.ctrlKey ?
|
7784 |
-
+$.datepicker._get( inst, "stepBigMonths" ) :
|
7785 |
-
+$.datepicker._get( inst, "stepMonths" ) ), "M" );
|
7786 |
-
break; // next month/year on page down/+ ctrl
|
7787 |
-
case 35: if ( event.ctrlKey || event.metaKey ) {
|
7788 |
-
$.datepicker._clearDate( event.target );
|
7789 |
-
}
|
7790 |
-
handled = event.ctrlKey || event.metaKey;
|
7791 |
-
break; // clear on ctrl or command +end
|
7792 |
-
case 36: if ( event.ctrlKey || event.metaKey ) {
|
7793 |
-
$.datepicker._gotoToday( event.target );
|
7794 |
-
}
|
7795 |
-
handled = event.ctrlKey || event.metaKey;
|
7796 |
-
break; // current on ctrl or command +home
|
7797 |
-
case 37: if ( event.ctrlKey || event.metaKey ) {
|
7798 |
-
$.datepicker._adjustDate( event.target, ( isRTL ? +1 : -1 ), "D" );
|
7799 |
-
}
|
7800 |
-
handled = event.ctrlKey || event.metaKey;
|
7801 |
-
|
7802 |
-
// -1 day on ctrl or command +left
|
7803 |
-
if ( event.originalEvent.altKey ) {
|
7804 |
-
$.datepicker._adjustDate( event.target, ( event.ctrlKey ?
|
7805 |
-
-$.datepicker._get( inst, "stepBigMonths" ) :
|
7806 |
-
-$.datepicker._get( inst, "stepMonths" ) ), "M" );
|
7807 |
-
}
|
7808 |
-
|
7809 |
-
// next month/year on alt +left on Mac
|
7810 |
-
break;
|
7811 |
-
case 38: if ( event.ctrlKey || event.metaKey ) {
|
7812 |
-
$.datepicker._adjustDate( event.target, -7, "D" );
|
7813 |
-
}
|
7814 |
-
handled = event.ctrlKey || event.metaKey;
|
7815 |
-
break; // -1 week on ctrl or command +up
|
7816 |
-
case 39: if ( event.ctrlKey || event.metaKey ) {
|
7817 |
-
$.datepicker._adjustDate( event.target, ( isRTL ? -1 : +1 ), "D" );
|
7818 |
-
}
|
7819 |
-
handled = event.ctrlKey || event.metaKey;
|
7820 |
-
|
7821 |
-
// +1 day on ctrl or command +right
|
7822 |
-
if ( event.originalEvent.altKey ) {
|
7823 |
-
$.datepicker._adjustDate( event.target, ( event.ctrlKey ?
|
7824 |
-
+$.datepicker._get( inst, "stepBigMonths" ) :
|
7825 |
-
+$.datepicker._get( inst, "stepMonths" ) ), "M" );
|
7826 |
-
}
|
7827 |
-
|
7828 |
-
// next month/year on alt +right
|
7829 |
-
break;
|
7830 |
-
case 40: if ( event.ctrlKey || event.metaKey ) {
|
7831 |
-
$.datepicker._adjustDate( event.target, +7, "D" );
|
7832 |
-
}
|
7833 |
-
handled = event.ctrlKey || event.metaKey;
|
7834 |
-
break; // +1 week on ctrl or command +down
|
7835 |
-
default: handled = false;
|
7836 |
-
}
|
7837 |
-
} else if ( event.keyCode === 36 && event.ctrlKey ) { // display the date picker on ctrl+home
|
7838 |
-
$.datepicker._showDatepicker( this );
|
7839 |
-
} else {
|
7840 |
-
handled = false;
|
7841 |
-
}
|
7842 |
-
|
7843 |
-
if ( handled ) {
|
7844 |
-
event.preventDefault();
|
7845 |
-
event.stopPropagation();
|
7846 |
-
}
|
7847 |
-
},
|
7848 |
-
|
7849 |
-
/* Filter entered characters - based on date format. */
|
7850 |
-
_doKeyPress: function( event ) {
|
7851 |
-
var chars, chr,
|
7852 |
-
inst = $.datepicker._getInst( event.target );
|
7853 |
-
|
7854 |
-
if ( $.datepicker._get( inst, "constrainInput" ) ) {
|
7855 |
-
chars = $.datepicker._possibleChars( $.datepicker._get( inst, "dateFormat" ) );
|
7856 |
-
chr = String.fromCharCode( event.charCode == null ? event.keyCode : event.charCode );
|
7857 |
-
return event.ctrlKey || event.metaKey || ( chr < " " || !chars || chars.indexOf( chr ) > -1 );
|
7858 |
-
}
|
7859 |
-
},
|
7860 |
-
|
7861 |
-
/* Synchronise manual entry and field/alternate field. */
|
7862 |
-
_doKeyUp: function( event ) {
|
7863 |
-
var date,
|
7864 |
-
inst = $.datepicker._getInst( event.target );
|
7865 |
-
|
7866 |
-
if ( inst.input.val() !== inst.lastVal ) {
|
7867 |
-
try {
|
7868 |
-
date = $.datepicker.parseDate( $.datepicker._get( inst, "dateFormat" ),
|
7869 |
-
( inst.input ? inst.input.val() : null ),
|
7870 |
-
$.datepicker._getFormatConfig( inst ) );
|
7871 |
-
|
7872 |
-
if ( date ) { // only if valid
|
7873 |
-
$.datepicker._setDateFromField( inst );
|
7874 |
-
$.datepicker._updateAlternate( inst );
|
7875 |
-
$.datepicker._updateDatepicker( inst );
|
7876 |
-
}
|
7877 |
-
}
|
7878 |
-
catch ( err ) {
|
7879 |
-
}
|
7880 |
-
}
|
7881 |
-
return true;
|
7882 |
-
},
|
7883 |
-
|
7884 |
-
/* Pop-up the date picker for a given input field.
|
7885 |
-
* If false returned from beforeShow event handler do not show.
|
7886 |
-
* @param input element - the input field attached to the date picker or
|
7887 |
-
* event - if triggered by focus
|
7888 |
-
*/
|
7889 |
-
_showDatepicker: function( input ) {
|
7890 |
-
input = input.target || input;
|
7891 |
-
if ( input.nodeName.toLowerCase() !== "input" ) { // find from button/image trigger
|
7892 |
-
input = $( "input", input.parentNode )[ 0 ];
|
7893 |
-
}
|
7894 |
-
|
7895 |
-
if ( $.datepicker._isDisabledDatepicker( input ) || $.datepicker._lastInput === input ) { // already here
|
7896 |
-
return;
|
7897 |
-
}
|
7898 |
-
|
7899 |
-
var inst, beforeShow, beforeShowSettings, isFixed,
|
7900 |
-
offset, showAnim, duration;
|
7901 |
-
|
7902 |
-
inst = $.datepicker._getInst( input );
|
7903 |
-
if ( $.datepicker._curInst && $.datepicker._curInst !== inst ) {
|
7904 |
-
$.datepicker._curInst.dpDiv.stop( true, true );
|
7905 |
-
if ( inst && $.datepicker._datepickerShowing ) {
|
7906 |
-
$.datepicker._hideDatepicker( $.datepicker._curInst.input[ 0 ] );
|
7907 |
-
}
|
7908 |
-
}
|
7909 |
-
|
7910 |
-
beforeShow = $.datepicker._get( inst, "beforeShow" );
|
7911 |
-
beforeShowSettings = beforeShow ? beforeShow.apply( input, [ input, inst ] ) : {};
|
7912 |
-
if ( beforeShowSettings === false ) {
|
7913 |
-
return;
|
7914 |
-
}
|
7915 |
-
datepicker_extendRemove( inst.settings, beforeShowSettings );
|
7916 |
-
|
7917 |
-
inst.lastVal = null;
|
7918 |
-
$.datepicker._lastInput = input;
|
7919 |
-
$.datepicker._setDateFromField( inst );
|
7920 |
-
|
7921 |
-
if ( $.datepicker._inDialog ) { // hide cursor
|
7922 |
-
input.value = "";
|
7923 |
-
}
|
7924 |
-
if ( !$.datepicker._pos ) { // position below input
|
7925 |
-
$.datepicker._pos = $.datepicker._findPos( input );
|
7926 |
-
$.datepicker._pos[ 1 ] += input.offsetHeight; // add the height
|
7927 |
-
}
|
7928 |
-
|
7929 |
-
isFixed = false;
|
7930 |
-
$( input ).parents().each( function() {
|
7931 |
-
isFixed |= $( this ).css( "position" ) === "fixed";
|
7932 |
-
return !isFixed;
|
7933 |
-
} );
|
7934 |
-
|
7935 |
-
offset = { left: $.datepicker._pos[ 0 ], top: $.datepicker._pos[ 1 ] };
|
7936 |
-
$.datepicker._pos = null;
|
7937 |
-
|
7938 |
-
//to avoid flashes on Firefox
|
7939 |
-
inst.dpDiv.empty();
|
7940 |
-
|
7941 |
-
// determine sizing offscreen
|
7942 |
-
inst.dpDiv.css( { position: "absolute", display: "block", top: "-1000px" } );
|
7943 |
-
$.datepicker._updateDatepicker( inst );
|
7944 |
-
|
7945 |
-
// fix width for dynamic number of date pickers
|
7946 |
-
// and adjust position before showing
|
7947 |
-
offset = $.datepicker._checkOffset( inst, offset, isFixed );
|
7948 |
-
inst.dpDiv.css( { position: ( $.datepicker._inDialog && $.blockUI ?
|
7949 |
-
"static" : ( isFixed ? "fixed" : "absolute" ) ), display: "none",
|
7950 |
-
left: offset.left + "px", top: offset.top + "px" } );
|
7951 |
-
|
7952 |
-
if ( !inst.inline ) {
|
7953 |
-
showAnim = $.datepicker._get( inst, "showAnim" );
|
7954 |
-
duration = $.datepicker._get( inst, "duration" );
|
7955 |
-
inst.dpDiv.css( "z-index", datepicker_getZindex( $( input ) ) + 1 );
|
7956 |
-
$.datepicker._datepickerShowing = true;
|
7957 |
-
|
7958 |
-
if ( $.effects && $.effects.effect[ showAnim ] ) {
|
7959 |
-
inst.dpDiv.show( showAnim, $.datepicker._get( inst, "showOptions" ), duration );
|
7960 |
-
} else {
|
7961 |
-
inst.dpDiv[ showAnim || "show" ]( showAnim ? duration : null );
|
7962 |
-
}
|
7963 |
-
|
7964 |
-
if ( $.datepicker._shouldFocusInput( inst ) ) {
|
7965 |
-
inst.input.trigger( "focus" );
|
7966 |
-
}
|
7967 |
-
|
7968 |
-
$.datepicker._curInst = inst;
|
7969 |
-
}
|
7970 |
-
},
|
7971 |
-
|
7972 |
-
/* Generate the date picker content. */
|
7973 |
-
_updateDatepicker: function( inst ) {
|
7974 |
-
this.maxRows = 4; //Reset the max number of rows being displayed (see #7043)
|
7975 |
-
datepicker_instActive = inst; // for delegate hover events
|
7976 |
-
inst.dpDiv.empty().append( this._generateHTML( inst ) );
|
7977 |
-
this._attachHandlers( inst );
|
7978 |
-
|
7979 |
-
var origyearshtml,
|
7980 |
-
numMonths = this._getNumberOfMonths( inst ),
|
7981 |
-
cols = numMonths[ 1 ],
|
7982 |
-
width = 17,
|
7983 |
-
activeCell = inst.dpDiv.find( "." + this._dayOverClass + " a" );
|
7984 |
-
|
7985 |
-
if ( activeCell.length > 0 ) {
|
7986 |
-
datepicker_handleMouseover.apply( activeCell.get( 0 ) );
|
7987 |
-
}
|
7988 |
-
|
7989 |
-
inst.dpDiv.removeClass( "ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4" ).width( "" );
|
7990 |
-
if ( cols > 1 ) {
|
7991 |
-
inst.dpDiv.addClass( "ui-datepicker-multi-" + cols ).css( "width", ( width * cols ) + "em" );
|
7992 |
-
}
|
7993 |
-
inst.dpDiv[ ( numMonths[ 0 ] !== 1 || numMonths[ 1 ] !== 1 ? "add" : "remove" ) +
|
7994 |
-
"Class" ]( "ui-datepicker-multi" );
|
7995 |
-
inst.dpDiv[ ( this._get( inst, "isRTL" ) ? "add" : "remove" ) +
|
7996 |
-
"Class" ]( "ui-datepicker-rtl" );
|
7997 |
-
|
7998 |
-
if ( inst === $.datepicker._curInst && $.datepicker._datepickerShowing && $.datepicker._shouldFocusInput( inst ) ) {
|
7999 |
-
inst.input.trigger( "focus" );
|
8000 |
-
}
|
8001 |
-
|
8002 |
-
// Deffered render of the years select (to avoid flashes on Firefox)
|
8003 |
-
if ( inst.yearshtml ) {
|
8004 |
-
origyearshtml = inst.yearshtml;
|
8005 |
-
setTimeout( function() {
|
8006 |
-
|
8007 |
-
//assure that inst.yearshtml didn't change.
|
8008 |
-
if ( origyearshtml === inst.yearshtml && inst.yearshtml ) {
|
8009 |
-
inst.dpDiv.find( "select.ui-datepicker-year:first" ).replaceWith( inst.yearshtml );
|
8010 |
-
}
|
8011 |
-
origyearshtml = inst.yearshtml = null;
|
8012 |
-
}, 0 );
|
8013 |
-
}
|
8014 |
-
},
|
8015 |
-
|
8016 |
-
// #6694 - don't focus the input if it's already focused
|
8017 |
-
// this breaks the change event in IE
|
8018 |
-
// Support: IE and jQuery <1.9
|
8019 |
-
_shouldFocusInput: function( inst ) {
|
8020 |
-
return inst.input && inst.input.is( ":visible" ) && !inst.input.is( ":disabled" ) && !inst.input.is( ":focus" );
|
8021 |
-
},
|
8022 |
-
|
8023 |
-
/* Check positioning to remain on screen. */
|
8024 |
-
_checkOffset: function( inst, offset, isFixed ) {
|
8025 |
-
var dpWidth = inst.dpDiv.outerWidth(),
|
8026 |
-
dpHeight = inst.dpDiv.outerHeight(),
|
8027 |
-
inputWidth = inst.input ? inst.input.outerWidth() : 0,
|
8028 |
-
inputHeight = inst.input ? inst.input.outerHeight() : 0,
|
8029 |
-
viewWidth = document.documentElement.clientWidth + ( isFixed ? 0 : $( document ).scrollLeft() ),
|
8030 |
-
viewHeight = document.documentElement.clientHeight + ( isFixed ? 0 : $( document ).scrollTop() );
|
8031 |
-
|
8032 |
-
offset.left -= ( this._get( inst, "isRTL" ) ? ( dpWidth - inputWidth ) : 0 );
|
8033 |
-
offset.left -= ( isFixed && offset.left === inst.input.offset().left ) ? $( document ).scrollLeft() : 0;
|
8034 |
-
offset.top -= ( isFixed && offset.top === ( inst.input.offset().top + inputHeight ) ) ? $( document ).scrollTop() : 0;
|
8035 |
-
|
8036 |
-
// Now check if datepicker is showing outside window viewport - move to a better place if so.
|
8037 |
-
offset.left -= Math.min( offset.left, ( offset.left + dpWidth > viewWidth && viewWidth > dpWidth ) ?
|
8038 |
-
Math.abs( offset.left + dpWidth - viewWidth ) : 0 );
|
8039 |
-
offset.top -= Math.min( offset.top, ( offset.top + dpHeight > viewHeight && viewHeight > dpHeight ) ?
|
8040 |
-
Math.abs( dpHeight + inputHeight ) : 0 );
|
8041 |
-
|
8042 |
-
return offset;
|
8043 |
-
},
|
8044 |
-
|
8045 |
-
/* Find an object's position on the screen. */
|
8046 |
-
_findPos: function( obj ) {
|
8047 |
-
var position,
|
8048 |
-
inst = this._getInst( obj ),
|
8049 |
-
isRTL = this._get( inst, "isRTL" );
|
8050 |
-
|
8051 |
-
while ( obj && ( obj.type === "hidden" || obj.nodeType !== 1 || $.expr.filters.hidden( obj ) ) ) {
|
8052 |
-
obj = obj[ isRTL ? "previousSibling" : "nextSibling" ];
|
8053 |
-
}
|
8054 |
-
|
8055 |
-
position = $( obj ).offset();
|
8056 |
-
return [ position.left, position.top ];
|
8057 |
-
},
|
8058 |
-
|
8059 |
-
/* Hide the date picker from view.
|
8060 |
-
* @param input element - the input field attached to the date picker
|
8061 |
-
*/
|
8062 |
-
_hideDatepicker: function( input ) {
|
8063 |
-
var showAnim, duration, postProcess, onClose,
|
8064 |
-
inst = this._curInst;
|
8065 |
-
|
8066 |
-
if ( !inst || ( input && inst !== $.data( input, "datepicker" ) ) ) {
|
8067 |
-
return;
|
8068 |
-
}
|
8069 |
-
|
8070 |
-
if ( this._datepickerShowing ) {
|
8071 |
-
showAnim = this._get( inst, "showAnim" );
|
8072 |
-
duration = this._get( inst, "duration" );
|
8073 |
-
postProcess = function() {
|
8074 |
-
$.datepicker._tidyDialog( inst );
|
8075 |
-
};
|
8076 |
-
|
8077 |
-
// DEPRECATED: after BC for 1.8.x $.effects[ showAnim ] is not needed
|
8078 |
-
if ( $.effects && ( $.effects.effect[ showAnim ] || $.effects[ showAnim ] ) ) {
|
8079 |
-
inst.dpDiv.hide( showAnim, $.datepicker._get( inst, "showOptions" ), duration, postProcess );
|
8080 |
-
} else {
|
8081 |
-
inst.dpDiv[ ( showAnim === "slideDown" ? "slideUp" :
|
8082 |
-
( showAnim === "fadeIn" ? "fadeOut" : "hide" ) ) ]( ( showAnim ? duration : null ), postProcess );
|
8083 |
-
}
|
8084 |
-
|
8085 |
-
if ( !showAnim ) {
|
8086 |
-
postProcess();
|
8087 |
-
}
|
8088 |
-
this._datepickerShowing = false;
|
8089 |
-
|
8090 |
-
onClose = this._get( inst, "onClose" );
|
8091 |
-
if ( onClose ) {
|
8092 |
-
onClose.apply( ( inst.input ? inst.input[ 0 ] : null ), [ ( inst.input ? inst.input.val() : "" ), inst ] );
|
8093 |
-
}
|
8094 |
-
|
8095 |
-
this._lastInput = null;
|
8096 |
-
if ( this._inDialog ) {
|
8097 |
-
this._dialogInput.css( { position: "absolute", left: "0", top: "-100px" } );
|
8098 |
-
if ( $.blockUI ) {
|
8099 |
-
$.unblockUI();
|
8100 |
-
$( "body" ).append( this.dpDiv );
|
8101 |
-
}
|
8102 |
-
}
|
8103 |
-
this._inDialog = false;
|
8104 |
-
}
|
8105 |
-
},
|
8106 |
-
|
8107 |
-
/* Tidy up after a dialog display. */
|
8108 |
-
_tidyDialog: function( inst ) {
|
8109 |
-
inst.dpDiv.removeClass( this._dialogClass ).off( ".ui-datepicker-calendar" );
|
8110 |
-
},
|
8111 |
-
|
8112 |
-
/* Close date picker if clicked elsewhere. */
|
8113 |
-
_checkExternalClick: function( event ) {
|
8114 |
-
if ( !$.datepicker._curInst ) {
|
8115 |
-
return;
|
8116 |
-
}
|
8117 |
-
|
8118 |
-
var $target = $( event.target ),
|
8119 |
-
inst = $.datepicker._getInst( $target[ 0 ] );
|
8120 |
-
|
8121 |
-
if ( ( ( $target[ 0 ].id !== $.datepicker._mainDivId &&
|
8122 |
-
$target.parents( "#" + $.datepicker._mainDivId ).length === 0 &&
|
8123 |
-
!$target.hasClass( $.datepicker.markerClassName ) &&
|
8124 |
-
!$target.closest( "." + $.datepicker._triggerClass ).length &&
|
8125 |
-
$.datepicker._datepickerShowing && !( $.datepicker._inDialog && $.blockUI ) ) ) ||
|
8126 |
-
( $target.hasClass( $.datepicker.markerClassName ) && $.datepicker._curInst !== inst ) ) {
|
8127 |
-
$.datepicker._hideDatepicker();
|
8128 |
-
}
|
8129 |
-
},
|
8130 |
-
|
8131 |
-
/* Adjust one of the date sub-fields. */
|
8132 |
-
_adjustDate: function( id, offset, period ) {
|
8133 |
-
var target = $( id ),
|
8134 |
-
inst = this._getInst( target[ 0 ] );
|
8135 |
-
|
8136 |
-
if ( this._isDisabledDatepicker( target[ 0 ] ) ) {
|
8137 |
-
return;
|
8138 |
-
}
|
8139 |
-
this._adjustInstDate( inst, offset +
|
8140 |
-
( period === "M" ? this._get( inst, "showCurrentAtPos" ) : 0 ), // undo positioning
|
8141 |
-
period );
|
8142 |
-
this._updateDatepicker( inst );
|
8143 |
-
},
|
8144 |
-
|
8145 |
-
/* Action for current link. */
|
8146 |
-
_gotoToday: function( id ) {
|
8147 |
-
var date,
|
8148 |
-
target = $( id ),
|
8149 |
-
inst = this._getInst( target[ 0 ] );
|
8150 |
-
|
8151 |
-
if ( this._get( inst, "gotoCurrent" ) && inst.currentDay ) {
|
8152 |
-
inst.selectedDay = inst.currentDay;
|
8153 |
-
inst.drawMonth = inst.selectedMonth = inst.currentMonth;
|
8154 |
-
inst.drawYear = inst.selectedYear = inst.currentYear;
|
8155 |
-
} else {
|
8156 |
-
date = new Date();
|
8157 |
-
inst.selectedDay = date.getDate();
|
8158 |
-
inst.drawMonth = inst.selectedMonth = date.getMonth();
|
8159 |
-
inst.drawYear = inst.selectedYear = date.getFullYear();
|
8160 |
-
}
|
8161 |
-
this._notifyChange( inst );
|
8162 |
-
this._adjustDate( target );
|
8163 |
-
},
|
8164 |
-
|
8165 |
-
/* Action for selecting a new month/year. */
|
8166 |
-
_selectMonthYear: function( id, select, period ) {
|
8167 |
-
var target = $( id ),
|
8168 |
-
inst = this._getInst( target[ 0 ] );
|
8169 |
-
|
8170 |
-
inst[ "selected" + ( period === "M" ? "Month" : "Year" ) ] =
|
8171 |
-
inst[ "draw" + ( period === "M" ? "Month" : "Year" ) ] =
|
8172 |
-
parseInt( select.options[ select.selectedIndex ].value, 10 );
|
8173 |
-
|
8174 |
-
this._notifyChange( inst );
|
8175 |
-
this._adjustDate( target );
|
8176 |
-
},
|
8177 |
-
|
8178 |
-
/* Action for selecting a day. */
|
8179 |
-
_selectDay: function( id, month, year, td ) {
|
8180 |
-
var inst,
|
8181 |
-
target = $( id );
|
8182 |
-
|
8183 |
-
if ( $( td ).hasClass( this._unselectableClass ) || this._isDisabledDatepicker( target[ 0 ] ) ) {
|
8184 |
-
return;
|
8185 |
-
}
|
8186 |
-
|
8187 |
-
inst = this._getInst( target[ 0 ] );
|
8188 |
-
inst.selectedDay = inst.currentDay = $( "a", td ).html();
|
8189 |
-
inst.selectedMonth = inst.currentMonth = month;
|
8190 |
-
inst.selectedYear = inst.currentYear = year;
|
8191 |
-
this._selectDate( id, this._formatDate( inst,
|
8192 |
-
inst.currentDay, inst.currentMonth, inst.currentYear ) );
|
8193 |
-
},
|
8194 |
-
|
8195 |
-
/* Erase the input field and hide the date picker. */
|
8196 |
-
_clearDate: function( id ) {
|
8197 |
-
var target = $( id );
|
8198 |
-
this._selectDate( target, "" );
|
8199 |
-
},
|
8200 |
-
|
8201 |
-
/* Update the input field with the selected date. */
|
8202 |
-
_selectDate: function( id, dateStr ) {
|
8203 |
-
var onSelect,
|
8204 |
-
target = $( id ),
|
8205 |
-
inst = this._getInst( target[ 0 ] );
|
8206 |
-
|
8207 |
-
dateStr = ( dateStr != null ? dateStr : this._formatDate( inst ) );
|
8208 |
-
if ( inst.input ) {
|
8209 |
-
inst.input.val( dateStr );
|
8210 |
-
}
|
8211 |
-
this._updateAlternate( inst );
|
8212 |
-
|
8213 |
-
onSelect = this._get( inst, "onSelect" );
|
8214 |
-
if ( onSelect ) {
|
8215 |
-
onSelect.apply( ( inst.input ? inst.input[ 0 ] : null ), [ dateStr, inst ] ); // trigger custom callback
|
8216 |
-
} else if ( inst.input ) {
|
8217 |
-
inst.input.trigger( "change" ); // fire the change event
|
8218 |
-
}
|
8219 |
-
|
8220 |
-
if ( inst.inline ) {
|
8221 |
-
this._updateDatepicker( inst );
|
8222 |
-
} else {
|
8223 |
-
this._hideDatepicker();
|
8224 |
-
this._lastInput = inst.input[ 0 ];
|
8225 |
-
if ( typeof( inst.input[ 0 ] ) !== "object" ) {
|
8226 |
-
inst.input.trigger( "focus" ); // restore focus
|
8227 |
-
}
|
8228 |
-
this._lastInput = null;
|
8229 |
-
}
|
8230 |
-
},
|
8231 |
-
|
8232 |
-
/* Update any alternate field to synchronise with the main field. */
|
8233 |
-
_updateAlternate: function( inst ) {
|
8234 |
-
var altFormat, date, dateStr,
|
8235 |
-
altField = this._get( inst, "altField" );
|
8236 |
-
|
8237 |
-
if ( altField ) { // update alternate field too
|
8238 |
-
altFormat = this._get( inst, "altFormat" ) || this._get( inst, "dateFormat" );
|
8239 |
-
date = this._getDate( inst );
|
8240 |
-
dateStr = this.formatDate( altFormat, date, this._getFormatConfig( inst ) );
|
8241 |
-
$( altField ).val( dateStr );
|
8242 |
-
}
|
8243 |
-
},
|
8244 |
-
|
8245 |
-
/* Set as beforeShowDay function to prevent selection of weekends.
|
8246 |
-
* @param date Date - the date to customise
|
8247 |
-
* @return [boolean, string] - is this date selectable?, what is its CSS class?
|
8248 |
-
*/
|
8249 |
-
noWeekends: function( date ) {
|
8250 |
-
var day = date.getDay();
|
8251 |
-
return [ ( day > 0 && day < 6 ), "" ];
|
8252 |
-
},
|
8253 |
-
|
8254 |
-
/* Set as calculateWeek to determine the week of the year based on the ISO 8601 definition.
|
8255 |
-
* @param date Date - the date to get the week for
|
8256 |
-
* @return number - the number of the week within the year that contains this date
|
8257 |
-
*/
|
8258 |
-
iso8601Week: function( date ) {
|
8259 |
-
var time,
|
8260 |
-
checkDate = new Date( date.getTime() );
|
8261 |
-
|
8262 |
-
// Find Thursday of this week starting on Monday
|
8263 |
-
checkDate.setDate( checkDate.getDate() + 4 - ( checkDate.getDay() || 7 ) );
|
8264 |
-
|
8265 |
-
time = checkDate.getTime();
|
8266 |
-
checkDate.setMonth( 0 ); // Compare with Jan 1
|
8267 |
-
checkDate.setDate( 1 );
|
8268 |
-
return Math.floor( Math.round( ( time - checkDate ) / 86400000 ) / 7 ) + 1;
|
8269 |
-
},
|
8270 |
-
|
8271 |
-
/* Parse a string value into a date object.
|
8272 |
-
* See formatDate below for the possible formats.
|
8273 |
-
*
|
8274 |
-
* @param format string - the expected format of the date
|
8275 |
-
* @param value string - the date in the above format
|
8276 |
-
* @param settings Object - attributes include:
|
8277 |
-
* shortYearCutoff number - the cutoff year for determining the century (optional)
|
8278 |
-
* dayNamesShort string[7] - abbreviated names of the days from Sunday (optional)
|
8279 |
-
* dayNames string[7] - names of the days from Sunday (optional)
|
8280 |
-
* monthNamesShort string[12] - abbreviated names of the months (optional)
|
8281 |
-
* monthNames string[12] - names of the months (optional)
|
8282 |
-
* @return Date - the extracted date value or null if value is blank
|
8283 |
-
*/
|
8284 |
-
parseDate: function( format, value, settings ) {
|
8285 |
-
if ( format == null || value == null ) {
|
8286 |
-
throw "Invalid arguments";
|
8287 |
-
}
|
8288 |
-
|
8289 |
-
value = ( typeof value === "object" ? value.toString() : value + "" );
|
8290 |
-
if ( value === "" ) {
|
8291 |
-
return null;
|
8292 |
-
}
|
8293 |
-
|
8294 |
-
var iFormat, dim, extra,
|
8295 |
-
iValue = 0,
|
8296 |
-
shortYearCutoffTemp = ( settings ? settings.shortYearCutoff : null ) || this._defaults.shortYearCutoff,
|
8297 |
-
shortYearCutoff = ( typeof shortYearCutoffTemp !== "string" ? shortYearCutoffTemp :
|
8298 |
-
new Date().getFullYear() % 100 + parseInt( shortYearCutoffTemp, 10 ) ),
|
8299 |
-
dayNamesShort = ( settings ? settings.dayNamesShort : null ) || this._defaults.dayNamesShort,
|
8300 |
-
dayNames = ( settings ? settings.dayNames : null ) || this._defaults.dayNames,
|
8301 |
-
monthNamesShort = ( settings ? settings.monthNamesShort : null ) || this._defaults.monthNamesShort,
|
8302 |
-
monthNames = ( settings ? settings.monthNames : null ) || this._defaults.monthNames,
|
8303 |
-
year = -1,
|
8304 |
-
month = -1,
|
8305 |
-
day = -1,
|
8306 |
-
doy = -1,
|
8307 |
-
literal = false,
|
8308 |
-
date,
|
8309 |
-
|
8310 |
-
// Check whether a format character is doubled
|
8311 |
-
lookAhead = function( match ) {
|
8312 |
-
var matches = ( iFormat + 1 < format.length && format.charAt( iFormat + 1 ) === match );
|
8313 |
-
if ( matches ) {
|
8314 |
-
iFormat++;
|
8315 |
-
}
|
8316 |
-
return matches;
|
8317 |
-
},
|
8318 |
-
|
8319 |
-
// Extract a number from the string value
|
8320 |
-
getNumber = function( match ) {
|
8321 |
-
var isDoubled = lookAhead( match ),
|
8322 |
-
size = ( match === "@" ? 14 : ( match === "!" ? 20 :
|
8323 |
-
( match === "y" && isDoubled ? 4 : ( match === "o" ? 3 : 2 ) ) ) ),
|
8324 |
-
minSize = ( match === "y" ? size : 1 ),
|
8325 |
-
digits = new RegExp( "^\\d{" + minSize + "," + size + "}" ),
|
8326 |
-
num = value.substring( iValue ).match( digits );
|
8327 |
-
if ( !num ) {
|
8328 |
-
throw "Missing number at position " + iValue;
|
8329 |
-
}
|
8330 |
-
iValue += num[ 0 ].length;
|
8331 |
-
return parseInt( num[ 0 ], 10 );
|
8332 |
-
},
|
8333 |
-
|
8334 |
-
// Extract a name from the string value and convert to an index
|
8335 |
-
getName = function( match, shortNames, longNames ) {
|
8336 |
-
var index = -1,
|
8337 |
-
names = $.map( lookAhead( match ) ? longNames : shortNames, function( v, k ) {
|
8338 |
-
return [ [ k, v ] ];
|
8339 |
-
} ).sort( function( a, b ) {
|
8340 |
-
return -( a[ 1 ].length - b[ 1 ].length );
|
8341 |
-
} );
|
8342 |
-
|
8343 |
-
$.each( names, function( i, pair ) {
|
8344 |
-
var name = pair[ 1 ];
|
8345 |
-
if ( value.substr( iValue, name.length ).toLowerCase() === name.toLowerCase() ) {
|
8346 |
-
index = pair[ 0 ];
|
8347 |
-
iValue += name.length;
|
8348 |
-
return false;
|
8349 |
-
}
|
8350 |
-
} );
|
8351 |
-
if ( index !== -1 ) {
|
8352 |
-
return index + 1;
|
8353 |
-
} else {
|
8354 |
-
throw "Unknown name at position " + iValue;
|
8355 |
-
}
|
8356 |
-
},
|
8357 |
-
|
8358 |
-
// Confirm that a literal character matches the string value
|
8359 |
-
checkLiteral = function() {
|
8360 |
-
if ( value.charAt( iValue ) !== format.charAt( iFormat ) ) {
|
8361 |
-
throw "Unexpected literal at position " + iValue;
|
8362 |
-
}
|
8363 |
-
iValue++;
|
8364 |
-
};
|
8365 |
-
|
8366 |
-
for ( iFormat = 0; iFormat < format.length; iFormat++ ) {
|
8367 |
-
if ( literal ) {
|
8368 |
-
if ( format.charAt( iFormat ) === "'" && !lookAhead( "'" ) ) {
|
8369 |
-
literal = false;
|
8370 |
-
} else {
|
8371 |
-
checkLiteral();
|
8372 |
-
}
|
8373 |
-
} else {
|
8374 |
-
switch ( format.charAt( iFormat ) ) {
|
8375 |
-
case "d":
|
8376 |
-
day = getNumber( "d" );
|
8377 |
-
break;
|
8378 |
-
case "D":
|
8379 |
-
getName( "D", dayNamesShort, dayNames );
|
8380 |
-
break;
|
8381 |
-
case "o":
|
8382 |
-
doy = getNumber( "o" );
|
8383 |
-
break;
|
8384 |
-
case "m":
|
8385 |
-
month = getNumber( "m" );
|
8386 |
-
break;
|
8387 |
-
case "M":
|
8388 |
-
month = getName( "M", monthNamesShort, monthNames );
|
8389 |
-
break;
|
8390 |
-
case "y":
|
8391 |
-
year = getNumber( "y" );
|
8392 |
-
break;
|
8393 |
-
case "@":
|
8394 |
-
date = new Date( getNumber( "@" ) );
|
8395 |
-
year = date.getFullYear();
|
8396 |
-
month = date.getMonth() + 1;
|
8397 |
-
day = date.getDate();
|
8398 |
-
break;
|
8399 |
-
case "!":
|
8400 |
-
date = new Date( ( getNumber( "!" ) - this._ticksTo1970 ) / 10000 );
|
8401 |
-
year = date.getFullYear();
|
8402 |
-
month = date.getMonth() + 1;
|
8403 |
-
day = date.getDate();
|
8404 |
-
break;
|
8405 |
-
case "'":
|
8406 |
-
if ( lookAhead( "'" ) ) {
|
8407 |
-
checkLiteral();
|
8408 |
-
} else {
|
8409 |
-
literal = true;
|
8410 |
-
}
|
8411 |
-
break;
|
8412 |
-
default:
|
8413 |
-
checkLiteral();
|
8414 |
-
}
|
8415 |
-
}
|
8416 |
-
}
|
8417 |
-
|
8418 |
-
if ( iValue < value.length ) {
|
8419 |
-
extra = value.substr( iValue );
|
8420 |
-
if ( !/^\s+/.test( extra ) ) {
|
8421 |
-
throw "Extra/unparsed characters found in date: " + extra;
|
8422 |
-
}
|
8423 |
-
}
|
8424 |
-
|
8425 |
-
if ( year === -1 ) {
|
8426 |
-
year = new Date().getFullYear();
|
8427 |
-
} else if ( year < 100 ) {
|
8428 |
-
year += new Date().getFullYear() - new Date().getFullYear() % 100 +
|
8429 |
-
( year <= shortYearCutoff ? 0 : -100 );
|
8430 |
-
}
|
8431 |
-
|
8432 |
-
if ( doy > -1 ) {
|
8433 |
-
month = 1;
|
8434 |
-
day = doy;
|
8435 |
-
do {
|
8436 |
-
dim = this._getDaysInMonth( year, month - 1 );
|
8437 |
-
if ( day <= dim ) {
|
8438 |
-
break;
|
8439 |
-
}
|
8440 |
-
month++;
|
8441 |
-
day -= dim;
|
8442 |
-
} while ( true );
|
8443 |
-
}
|
8444 |
-
|
8445 |
-
date = this._daylightSavingAdjust( new Date( year, month - 1, day ) );
|
8446 |
-
if ( date.getFullYear() !== year || date.getMonth() + 1 !== month || date.getDate() !== day ) {
|
8447 |
-
throw "Invalid date"; // E.g. 31/02/00
|
8448 |
-
}
|
8449 |
-
return date;
|
8450 |
-
},
|
8451 |
-
|
8452 |
-
/* Standard date formats. */
|
8453 |
-
ATOM: "yy-mm-dd", // RFC 3339 (ISO 8601)
|
8454 |
-
COOKIE: "D, dd M yy",
|
8455 |
-
ISO_8601: "yy-mm-dd",
|
8456 |
-
RFC_822: "D, d M y",
|
8457 |
-
RFC_850: "DD, dd-M-y",
|
8458 |
-
RFC_1036: "D, d M y",
|
8459 |
-
RFC_1123: "D, d M yy",
|
8460 |
-
RFC_2822: "D, d M yy",
|
8461 |
-
RSS: "D, d M y", // RFC 822
|
8462 |
-
TICKS: "!",
|
8463 |
-
TIMESTAMP: "@",
|
8464 |
-
W3C: "yy-mm-dd", // ISO 8601
|
8465 |
-
|
8466 |
-
_ticksTo1970: ( ( ( 1970 - 1 ) * 365 + Math.floor( 1970 / 4 ) - Math.floor( 1970 / 100 ) +
|
8467 |
-
Math.floor( 1970 / 400 ) ) * 24 * 60 * 60 * 10000000 ),
|
8468 |
-
|
8469 |
-
/* Format a date object into a string value.
|
8470 |
-
* The format can be combinations of the following:
|
8471 |
-
* d - day of month (no leading zero)
|
8472 |
-
* dd - day of month (two digit)
|
8473 |
-
* o - day of year (no leading zeros)
|
8474 |
-
* oo - day of year (three digit)
|
8475 |
-
* D - day name short
|
8476 |
-
* DD - day name long
|
8477 |
-
* m - month of year (no leading zero)
|
8478 |
-
* mm - month of year (two digit)
|
8479 |
-
* M - month name short
|
8480 |
-
* MM - month name long
|
8481 |
-
* y - year (two digit)
|
8482 |
-
* yy - year (four digit)
|
8483 |
-
* @ - Unix timestamp (ms since 01/01/1970)
|
8484 |
-
* ! - Windows ticks (100ns since 01/01/0001)
|
8485 |
-
* "..." - literal text
|
8486 |
-
* '' - single quote
|
8487 |
-
*
|
8488 |
-
* @param format string - the desired format of the date
|
8489 |
-
* @param date Date - the date value to format
|
8490 |
-
* @param settings Object - attributes include:
|
8491 |
-
* dayNamesShort string[7] - abbreviated names of the days from Sunday (optional)
|
8492 |
-
* dayNames string[7] - names of the days from Sunday (optional)
|
8493 |
-
* monthNamesShort string[12] - abbreviated names of the months (optional)
|
8494 |
-
* monthNames string[12] - names of the months (optional)
|
8495 |
-
* @return string - the date in the above format
|
8496 |
-
*/
|
8497 |
-
formatDate: function( format, date, settings ) {
|
8498 |
-
if ( !date ) {
|
8499 |
-
return "";
|
8500 |
-
}
|
8501 |
-
|
8502 |
-
var iFormat,
|
8503 |
-
dayNamesShort = ( settings ? settings.dayNamesShort : null ) || this._defaults.dayNamesShort,
|
8504 |
-
dayNames = ( settings ? settings.dayNames : null ) || this._defaults.dayNames,
|
8505 |
-
monthNamesShort = ( settings ? settings.monthNamesShort : null ) || this._defaults.monthNamesShort,
|
8506 |
-
monthNames = ( settings ? settings.monthNames : null ) || this._defaults.monthNames,
|
8507 |
-
|
8508 |
-
// Check whether a format character is doubled
|
8509 |
-
lookAhead = function( match ) {
|
8510 |
-
var matches = ( iFormat + 1 < format.length && format.charAt( iFormat + 1 ) === match );
|
8511 |
-
if ( matches ) {
|
8512 |
-
iFormat++;
|
8513 |
-
}
|
8514 |
-
return matches;
|
8515 |
-
},
|
8516 |
-
|
8517 |
-
// Format a number, with leading zero if necessary
|
8518 |
-
formatNumber = function( match, value, len ) {
|
8519 |
-
var num = "" + value;
|
8520 |
-
if ( lookAhead( match ) ) {
|
8521 |
-
while ( num.length < len ) {
|
8522 |
-
num = "0" + num;
|
8523 |
-
}
|
8524 |
-
}
|
8525 |
-
return num;
|
8526 |
-
},
|
8527 |
-
|
8528 |
-
// Format a name, short or long as requested
|
8529 |
-
formatName = function( match, value, shortNames, longNames ) {
|
8530 |
-
return ( lookAhead( match ) ? longNames[ value ] : shortNames[ value ] );
|
8531 |
-
},
|
8532 |
-
output = "",
|
8533 |
-
literal = false;
|
8534 |
-
|
8535 |
-
if ( date ) {
|
8536 |
-
for ( iFormat = 0; iFormat < format.length; iFormat++ ) {
|
8537 |
-
if ( literal ) {
|
8538 |
-
if ( format.charAt( iFormat ) === "'" && !lookAhead( "'" ) ) {
|
8539 |
-
literal = false;
|
8540 |
-
} else {
|
8541 |
-
output += format.charAt( iFormat );
|
8542 |
-
}
|
8543 |
-
} else {
|
8544 |
-
switch ( format.charAt( iFormat ) ) {
|
8545 |
-
case "d":
|
8546 |
-
output += formatNumber( "d", date.getDate(), 2 );
|
8547 |
-
break;
|
8548 |
-
case "D":
|
8549 |
-
output += formatName( "D", date.getDay(), dayNamesShort, dayNames );
|
8550 |
-
break;
|
8551 |
-
case "o":
|
8552 |
-
output += formatNumber( "o",
|
8553 |
-
Math.round( ( new Date( date.getFullYear(), date.getMonth(), date.getDate() ).getTime() - new Date( date.getFullYear(), 0, 0 ).getTime() ) / 86400000 ), 3 );
|
8554 |
-
break;
|
8555 |
-
case "m":
|
8556 |
-
output += formatNumber( "m", date.getMonth() + 1, 2 );
|
8557 |
-
break;
|
8558 |
-
case "M":
|
8559 |
-
output += formatName( "M", date.getMonth(), monthNamesShort, monthNames );
|
8560 |
-
break;
|
8561 |
-
case "y":
|
8562 |
-
output += ( lookAhead( "y" ) ? date.getFullYear() :
|
8563 |
-
( date.getFullYear() % 100 < 10 ? "0" : "" ) + date.getFullYear() % 100 );
|
8564 |
-
break;
|
8565 |
-
case "@":
|
8566 |
-
output += date.getTime();
|
8567 |
-
break;
|
8568 |
-
case "!":
|
8569 |
-
output += date.getTime() * 10000 + this._ticksTo1970;
|
8570 |
-
break;
|
8571 |
-
case "'":
|
8572 |
-
if ( lookAhead( "'" ) ) {
|
8573 |
-
output += "'";
|
8574 |
-
} else {
|
8575 |
-
literal = true;
|
8576 |
-
}
|
8577 |
-
break;
|
8578 |
-
default:
|
8579 |
-
output += format.charAt( iFormat );
|
8580 |
-
}
|
8581 |
-
}
|
8582 |
-
}
|
8583 |
-
}
|
8584 |
-
return output;
|
8585 |
-
},
|
8586 |
-
|
8587 |
-
/* Extract all possible characters from the date format. */
|
8588 |
-
_possibleChars: function( format ) {
|
8589 |
-
var iFormat,
|
8590 |
-
chars = "",
|
8591 |
-
literal = false,
|
8592 |
-
|
8593 |
-
// Check whether a format character is doubled
|
8594 |
-
lookAhead = function( match ) {
|
8595 |
-
var matches = ( iFormat + 1 < format.length && format.charAt( iFormat + 1 ) === match );
|
8596 |
-
if ( matches ) {
|
8597 |
-
iFormat++;
|
8598 |
-
}
|
8599 |
-
return matches;
|
8600 |
-
};
|
8601 |
-
|
8602 |
-
for ( iFormat = 0; iFormat < format.length; iFormat++ ) {
|
8603 |
-
if ( literal ) {
|
8604 |
-
if ( format.charAt( iFormat ) === "'" && !lookAhead( "'" ) ) {
|
8605 |
-
literal = false;
|
8606 |
-
} else {
|
8607 |
-
chars += format.charAt( iFormat );
|
8608 |
-
}
|
8609 |
-
} else {
|
8610 |
-
switch ( format.charAt( iFormat ) ) {
|
8611 |
-
case "d": case "m": case "y": case "@":
|
8612 |
-
chars += "0123456789";
|
8613 |
-
break;
|
8614 |
-
case "D": case "M":
|
8615 |
-
return null; // Accept anything
|
8616 |
-
case "'":
|
8617 |
-
if ( lookAhead( "'" ) ) {
|
8618 |
-
chars += "'";
|
8619 |
-
} else {
|
8620 |
-
literal = true;
|
8621 |
-
}
|
8622 |
-
break;
|
8623 |
-
default:
|
8624 |
-
chars += format.charAt( iFormat );
|
8625 |
-
}
|
8626 |
-
}
|
8627 |
-
}
|
8628 |
-
return chars;
|
8629 |
-
},
|
8630 |
-
|
8631 |
-
/* Get a setting value, defaulting if necessary. */
|
8632 |
-
_get: function( inst, name ) {
|
8633 |
-
return inst.settings[ name ] !== undefined ?
|
8634 |
-
inst.settings[ name ] : this._defaults[ name ];
|
8635 |
-
},
|
8636 |
-
|
8637 |
-
/* Parse existing date and initialise date picker. */
|
8638 |
-
_setDateFromField: function( inst, noDefault ) {
|
8639 |
-
if ( inst.input.val() === inst.lastVal ) {
|
8640 |
-
return;
|
8641 |
-
}
|
8642 |
-
|
8643 |
-
var dateFormat = this._get( inst, "dateFormat" ),
|
8644 |
-
dates = inst.lastVal = inst.input ? inst.input.val() : null,
|
8645 |
-
defaultDate = this._getDefaultDate( inst ),
|
8646 |
-
date = defaultDate,
|
8647 |
-
settings = this._getFormatConfig( inst );
|
8648 |
-
|
8649 |
-
try {
|
8650 |
-
date = this.parseDate( dateFormat, dates, settings ) || defaultDate;
|
8651 |
-
} catch ( event ) {
|
8652 |
-
dates = ( noDefault ? "" : dates );
|
8653 |
-
}
|
8654 |
-
inst.selectedDay = date.getDate();
|
8655 |
-
inst.drawMonth = inst.selectedMonth = date.getMonth();
|
8656 |
-
inst.drawYear = inst.selectedYear = date.getFullYear();
|
8657 |
-
inst.currentDay = ( dates ? date.getDate() : 0 );
|
8658 |
-
inst.currentMonth = ( dates ? date.getMonth() : 0 );
|
8659 |
-
inst.currentYear = ( dates ? date.getFullYear() : 0 );
|
8660 |
-
this._adjustInstDate( inst );
|
8661 |
-
},
|
8662 |
-
|
8663 |
-
/* Retrieve the default date shown on opening. */
|
8664 |
-
_getDefaultDate: function( inst ) {
|
8665 |
-
return this._restrictMinMax( inst,
|
8666 |
-
this._determineDate( inst, this._get( inst, "defaultDate" ), new Date() ) );
|
8667 |
-
},
|
8668 |
-
|
8669 |
-
/* A date may be specified as an exact value or a relative one. */
|
8670 |
-
_determineDate: function( inst, date, defaultDate ) {
|
8671 |
-
var offsetNumeric = function( offset ) {
|
8672 |
-
var date = new Date();
|
8673 |
-
date.setDate( date.getDate() + offset );
|
8674 |
-
return date;
|
8675 |
-
},
|
8676 |
-
offsetString = function( offset ) {
|
8677 |
-
try {
|
8678 |
-
return $.datepicker.parseDate( $.datepicker._get( inst, "dateFormat" ),
|
8679 |
-
offset, $.datepicker._getFormatConfig( inst ) );
|
8680 |
-
}
|
8681 |
-
catch ( e ) {
|
8682 |
-
|
8683 |
-
// Ignore
|
8684 |
-
}
|
8685 |
-
|
8686 |
-
var date = ( offset.toLowerCase().match( /^c/ ) ?
|
8687 |
-
$.datepicker._getDate( inst ) : null ) || new Date(),
|
8688 |
-
year = date.getFullYear(),
|
8689 |
-
month = date.getMonth(),
|
8690 |
-
day = date.getDate(),
|
8691 |
-
pattern = /([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,
|
8692 |
-
matches = pattern.exec( offset );
|
8693 |
-
|
8694 |
-
while ( matches ) {
|
8695 |
-
switch ( matches[ 2 ] || "d" ) {
|
8696 |
-
case "d" : case "D" :
|
8697 |
-
day += parseInt( matches[ 1 ], 10 ); break;
|
8698 |
-
case "w" : case "W" :
|
8699 |
-
day += parseInt( matches[ 1 ], 10 ) * 7; break;
|
8700 |
-
case "m" : case "M" :
|
8701 |
-
month += parseInt( matches[ 1 ], 10 );
|
8702 |
-
day = Math.min( day, $.datepicker._getDaysInMonth( year, month ) );
|
8703 |
-
break;
|
8704 |
-
case "y": case "Y" :
|
8705 |
-
year += parseInt( matches[ 1 ], 10 );
|
8706 |
-
day = Math.min( day, $.datepicker._getDaysInMonth( year, month ) );
|
8707 |
-
break;
|
8708 |
-
}
|
8709 |
-
matches = pattern.exec( offset );
|
8710 |
-
}
|
8711 |
-
return new Date( year, month, day );
|
8712 |
-
},
|
8713 |
-
newDate = ( date == null || date === "" ? defaultDate : ( typeof date === "string" ? offsetString( date ) :
|
8714 |
-
( typeof date === "number" ? ( isNaN( date ) ? defaultDate : offsetNumeric( date ) ) : new Date( date.getTime() ) ) ) );
|
8715 |
-
|
8716 |
-
newDate = ( newDate && newDate.toString() === "Invalid Date" ? defaultDate : newDate );
|
8717 |
-
if ( newDate ) {
|
8718 |
-
newDate.setHours( 0 );
|
8719 |
-
newDate.setMinutes( 0 );
|
8720 |
-
newDate.setSeconds( 0 );
|
8721 |
-
newDate.setMilliseconds( 0 );
|
8722 |
-
}
|
8723 |
-
return this._daylightSavingAdjust( newDate );
|
8724 |
-
},
|
8725 |
-
|
8726 |
-
/* Handle switch to/from daylight saving.
|
8727 |
-
* Hours may be non-zero on daylight saving cut-over:
|
8728 |
-
* > 12 when midnight changeover, but then cannot generate
|
8729 |
-
* midnight datetime, so jump to 1AM, otherwise reset.
|
8730 |
-
* @param date (Date) the date to check
|
8731 |
-
* @return (Date) the corrected date
|
8732 |
-
*/
|
8733 |
-
_daylightSavingAdjust: function( date ) {
|
8734 |
-
if ( !date ) {
|
8735 |
-
return null;
|
8736 |
-
}
|
8737 |
-
date.setHours( date.getHours() > 12 ? date.getHours() + 2 : 0 );
|
8738 |
-
return date;
|
8739 |
-
},
|
8740 |
-
|
8741 |
-
/* Set the date(s) directly. */
|
8742 |
-
_setDate: function( inst, date, noChange ) {
|
8743 |
-
var clear = !date,
|
8744 |
-
origMonth = inst.selectedMonth,
|
8745 |
-
origYear = inst.selectedYear,
|
8746 |
-
newDate = this._restrictMinMax( inst, this._determineDate( inst, date, new Date() ) );
|
8747 |
-
|
8748 |
-
inst.selectedDay = inst.currentDay = newDate.getDate();
|
8749 |
-
inst.drawMonth = inst.selectedMonth = inst.currentMonth = newDate.getMonth();
|
8750 |
-
inst.drawYear = inst.selectedYear = inst.currentYear = newDate.getFullYear();
|
8751 |
-
if ( ( origMonth !== inst.selectedMonth || origYear !== inst.selectedYear ) && !noChange ) {
|
8752 |
-
this._notifyChange( inst );
|
8753 |
-
}
|
8754 |
-
this._adjustInstDate( inst );
|
8755 |
-
if ( inst.input ) {
|
8756 |
-
inst.input.val( clear ? "" : this._formatDate( inst ) );
|
8757 |
-
}
|
8758 |
-
},
|
8759 |
-
|
8760 |
-
/* Retrieve the date(s) directly. */
|
8761 |
-
_getDate: function( inst ) {
|
8762 |
-
var startDate = ( !inst.currentYear || ( inst.input && inst.input.val() === "" ) ? null :
|
8763 |
-
this._daylightSavingAdjust( new Date(
|
8764 |
-
inst.currentYear, inst.currentMonth, inst.currentDay ) ) );
|
8765 |
-
return startDate;
|
8766 |
-
},
|
8767 |
-
|
8768 |
-
/* Attach the onxxx handlers. These are declared statically so
|
8769 |
-
* they work with static code transformers like Caja.
|
8770 |
-
*/
|
8771 |
-
_attachHandlers: function( inst ) {
|
8772 |
-
var stepMonths = this._get( inst, "stepMonths" ),
|
8773 |
-
id = "#" + inst.id.replace( /\\\\/g, "\\" );
|
8774 |
-
inst.dpDiv.find( "[data-handler]" ).map( function() {
|
8775 |
-
var handler = {
|
8776 |
-
prev: function() {
|
8777 |
-
$.datepicker._adjustDate( id, -stepMonths, "M" );
|
8778 |
-
},
|
8779 |
-
next: function() {
|
8780 |
-
$.datepicker._adjustDate( id, +stepMonths, "M" );
|
8781 |
-
},
|
8782 |
-
hide: function() {
|
8783 |
-
$.datepicker._hideDatepicker();
|
8784 |
-
},
|
8785 |
-
today: function() {
|
8786 |
-
$.datepicker._gotoToday( id );
|
8787 |
-
},
|
8788 |
-
selectDay: function() {
|
8789 |
-
$.datepicker._selectDay( id, +this.getAttribute( "data-month" ), +this.getAttribute( "data-year" ), this );
|
8790 |
-
return false;
|
8791 |
-
},
|
8792 |
-
selectMonth: function() {
|
8793 |
-
$.datepicker._selectMonthYear( id, this, "M" );
|
8794 |
-
return false;
|
8795 |
-
},
|
8796 |
-
selectYear: function() {
|
8797 |
-
$.datepicker._selectMonthYear( id, this, "Y" );
|
8798 |
-
return false;
|
8799 |
-
}
|
8800 |
-
};
|
8801 |
-
$( this ).on( this.getAttribute( "data-event" ), handler[ this.getAttribute( "data-handler" ) ] );
|
8802 |
-
} );
|
8803 |
-
},
|
8804 |
-
|
8805 |
-
/* Generate the HTML for the current state of the date picker. */
|
8806 |
-
_generateHTML: function( inst ) {
|
8807 |
-
var maxDraw, prevText, prev, nextText, next, currentText, gotoDate,
|
8808 |
-
controls, buttonPanel, firstDay, showWeek, dayNames, dayNamesMin,
|
8809 |
-
monthNames, monthNamesShort, beforeShowDay, showOtherMonths,
|
8810 |
-
selectOtherMonths, defaultDate, html, dow, row, group, col, selectedDate,
|
8811 |
-
cornerClass, calender, thead, day, daysInMonth, leadDays, curRows, numRows,
|
8812 |
-
printDate, dRow, tbody, daySettings, otherMonth, unselectable,
|
8813 |
-
tempDate = new Date(),
|
8814 |
-
today = this._daylightSavingAdjust(
|
8815 |
-
new Date( tempDate.getFullYear(), tempDate.getMonth(), tempDate.getDate() ) ), // clear time
|
8816 |
-
isRTL = this._get( inst, "isRTL" ),
|
8817 |
-
showButtonPanel = this._get( inst, "showButtonPanel" ),
|
8818 |
-
hideIfNoPrevNext = this._get( inst, "hideIfNoPrevNext" ),
|
8819 |
-
navigationAsDateFormat = this._get( inst, "navigationAsDateFormat" ),
|
8820 |
-
numMonths = this._getNumberOfMonths( inst ),
|
8821 |
-
showCurrentAtPos = this._get( inst, "showCurrentAtPos" ),
|
8822 |
-
stepMonths = this._get( inst, "stepMonths" ),
|
8823 |
-
isMultiMonth = ( numMonths[ 0 ] !== 1 || numMonths[ 1 ] !== 1 ),
|
8824 |
-
currentDate = this._daylightSavingAdjust( ( !inst.currentDay ? new Date( 9999, 9, 9 ) :
|
8825 |
-
new Date( inst.currentYear, inst.currentMonth, inst.currentDay ) ) ),
|
8826 |
-
minDate = this._getMinMaxDate( inst, "min" ),
|
8827 |
-
maxDate = this._getMinMaxDate( inst, "max" ),
|
8828 |
-
drawMonth = inst.drawMonth - showCurrentAtPos,
|
8829 |
-
drawYear = inst.drawYear;
|
8830 |
-
|
8831 |
-
if ( drawMonth < 0 ) {
|
8832 |
-
drawMonth += 12;
|
8833 |
-
drawYear--;
|
8834 |
-
}
|
8835 |
-
if ( maxDate ) {
|
8836 |
-
maxDraw = this._daylightSavingAdjust( new Date( maxDate.getFullYear(),
|
8837 |
-
maxDate.getMonth() - ( numMonths[ 0 ] * numMonths[ 1 ] ) + 1, maxDate.getDate() ) );
|
8838 |
-
maxDraw = ( minDate && maxDraw < minDate ? minDate : maxDraw );
|
8839 |
-
while ( this._daylightSavingAdjust( new Date( drawYear, drawMonth, 1 ) ) > maxDraw ) {
|
8840 |
-
drawMonth--;
|
8841 |
-
if ( drawMonth < 0 ) {
|
8842 |
-
drawMonth = 11;
|
8843 |
-
drawYear--;
|
8844 |
-
}
|
8845 |
-
}
|
8846 |
-
}
|
8847 |
-
inst.drawMonth = drawMonth;
|
8848 |
-
inst.drawYear = drawYear;
|
8849 |
-
|
8850 |
-
prevText = this._get( inst, "prevText" );
|
8851 |
-
prevText = ( !navigationAsDateFormat ? prevText : this.formatDate( prevText,
|
8852 |
-
this._daylightSavingAdjust( new Date( drawYear, drawMonth - stepMonths, 1 ) ),
|
8853 |
-
this._getFormatConfig( inst ) ) );
|
8854 |
-
|
8855 |
-
prev = ( this._canAdjustMonth( inst, -1, drawYear, drawMonth ) ?
|
8856 |
-
"<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click'" +
|
8857 |
-
" title='" + prevText + "'><span class='ui-icon ui-icon-circle-triangle-" + ( isRTL ? "e" : "w" ) + "'>" + prevText + "</span></a>" :
|
8858 |
-
( hideIfNoPrevNext ? "" : "<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='" + prevText + "'><span class='ui-icon ui-icon-circle-triangle-" + ( isRTL ? "e" : "w" ) + "'>" + prevText + "</span></a>" ) );
|
8859 |
-
|
8860 |
-
nextText = this._get( inst, "nextText" );
|
8861 |
-
nextText = ( !navigationAsDateFormat ? nextText : this.formatDate( nextText,
|
8862 |
-
this._daylightSavingAdjust( new Date( drawYear, drawMonth + stepMonths, 1 ) ),
|
8863 |
-
this._getFormatConfig( inst ) ) );
|
8864 |
-
|
8865 |
-
next = ( this._canAdjustMonth( inst, +1, drawYear, drawMonth ) ?
|
8866 |
-
"<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click'" +
|
8867 |
-
" title='" + nextText + "'><span class='ui-icon ui-icon-circle-triangle-" + ( isRTL ? "w" : "e" ) + "'>" + nextText + "</span></a>" :
|
8868 |
-
( hideIfNoPrevNext ? "" : "<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='" + nextText + "'><span class='ui-icon ui-icon-circle-triangle-" + ( isRTL ? "w" : "e" ) + "'>" + nextText + "</span></a>" ) );
|
8869 |
-
|
8870 |
-
currentText = this._get( inst, "currentText" );
|
8871 |
-
gotoDate = ( this._get( inst, "gotoCurrent" ) && inst.currentDay ? currentDate : today );
|
8872 |
-
currentText = ( !navigationAsDateFormat ? currentText :
|
8873 |
-
this.formatDate( currentText, gotoDate, this._getFormatConfig( inst ) ) );
|
8874 |
-
|
8875 |
-
controls = ( !inst.inline ? "<button type='button' class='ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all' data-handler='hide' data-event='click'>" +
|
8876 |
-
this._get( inst, "closeText" ) + "</button>" : "" );
|
8877 |
-
|
8878 |
-
buttonPanel = ( showButtonPanel ) ? "<div class='ui-datepicker-buttonpane ui-widget-content'>" + ( isRTL ? controls : "" ) +
|
8879 |
-
( this._isInRange( inst, gotoDate ) ? "<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'" +
|
8880 |
-
">" + currentText + "</button>" : "" ) + ( isRTL ? "" : controls ) + "</div>" : "";
|
8881 |
-
|
8882 |
-
firstDay = parseInt( this._get( inst, "firstDay" ), 10 );
|
8883 |
-
firstDay = ( isNaN( firstDay ) ? 0 : firstDay );
|
8884 |
-
|
8885 |
-
showWeek = this._get( inst, "showWeek" );
|
8886 |
-
dayNames = this._get( inst, "dayNames" );
|
8887 |
-
dayNamesMin = this._get( inst, "dayNamesMin" );
|
8888 |
-
monthNames = this._get( inst, "monthNames" );
|
8889 |
-
monthNamesShort = this._get( inst, "monthNamesShort" );
|
8890 |
-
beforeShowDay = this._get( inst, "beforeShowDay" );
|
8891 |
-
showOtherMonths = this._get( inst, "showOtherMonths" );
|
8892 |
-
selectOtherMonths = this._get( inst, "selectOtherMonths" );
|
8893 |
-
defaultDate = this._getDefaultDate( inst );
|
8894 |
-
html = "";
|
8895 |
-
|
8896 |
-
for ( row = 0; row < numMonths[ 0 ]; row++ ) {
|
8897 |
-
group = "";
|
8898 |
-
this.maxRows = 4;
|
8899 |
-
for ( col = 0; col < numMonths[ 1 ]; col++ ) {
|
8900 |
-
selectedDate = this._daylightSavingAdjust( new Date( drawYear, drawMonth, inst.selectedDay ) );
|
8901 |
-
cornerClass = " ui-corner-all";
|
8902 |
-
calender = "";
|
8903 |
-
if ( isMultiMonth ) {
|
8904 |
-
calender += "<div class='ui-datepicker-group";
|
8905 |
-
if ( numMonths[ 1 ] > 1 ) {
|
8906 |
-
switch ( col ) {
|
8907 |
-
case 0: calender += " ui-datepicker-group-first";
|
8908 |
-
cornerClass = " ui-corner-" + ( isRTL ? "right" : "left" ); break;
|
8909 |
-
case numMonths[ 1 ] - 1: calender += " ui-datepicker-group-last";
|
8910 |
-
cornerClass = " ui-corner-" + ( isRTL ? "left" : "right" ); break;
|
8911 |
-
default: calender += " ui-datepicker-group-middle"; cornerClass = ""; break;
|
8912 |
-
}
|
8913 |
-
}
|
8914 |
-
calender += "'>";
|
8915 |
-
}
|
8916 |
-
calender += "<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix" + cornerClass + "'>" +
|
8917 |
-
( /all|left/.test( cornerClass ) && row === 0 ? ( isRTL ? next : prev ) : "" ) +
|
8918 |
-
( /all|right/.test( cornerClass ) && row === 0 ? ( isRTL ? prev : next ) : "" ) +
|
8919 |
-
this._generateMonthYearHeader( inst, drawMonth, drawYear, minDate, maxDate,
|
8920 |
-
row > 0 || col > 0, monthNames, monthNamesShort ) + // draw month headers
|
8921 |
-
"</div><table class='ui-datepicker-calendar'><thead>" +
|
8922 |
-
"<tr>";
|
8923 |
-
thead = ( showWeek ? "<th class='ui-datepicker-week-col'>" + this._get( inst, "weekHeader" ) + "</th>" : "" );
|
8924 |
-
for ( dow = 0; dow < 7; dow++ ) { // days of the week
|
8925 |
-
day = ( dow + firstDay ) % 7;
|
8926 |
-
thead += "<th scope='col'" + ( ( dow + firstDay + 6 ) % 7 >= 5 ? " class='ui-datepicker-week-end'" : "" ) + ">" +
|
8927 |
-
"<span title='" + dayNames[ day ] + "'>" + dayNamesMin[ day ] + "</span></th>";
|
8928 |
-
}
|
8929 |
-
calender += thead + "</tr></thead><tbody>";
|
8930 |
-
daysInMonth = this._getDaysInMonth( drawYear, drawMonth );
|
8931 |
-
if ( drawYear === inst.selectedYear && drawMonth === inst.selectedMonth ) {
|
8932 |
-
inst.selectedDay = Math.min( inst.selectedDay, daysInMonth );
|
8933 |
-
}
|
8934 |
-
leadDays = ( this._getFirstDayOfMonth( drawYear, drawMonth ) - firstDay + 7 ) % 7;
|
8935 |
-
curRows = Math.ceil( ( leadDays + daysInMonth ) / 7 ); // calculate the number of rows to generate
|
8936 |
-
numRows = ( isMultiMonth ? this.maxRows > curRows ? this.maxRows : curRows : curRows ); //If multiple months, use the higher number of rows (see #7043)
|
8937 |
-
this.maxRows = numRows;
|
8938 |
-
printDate = this._daylightSavingAdjust( new Date( drawYear, drawMonth, 1 - leadDays ) );
|
8939 |
-
for ( dRow = 0; dRow < numRows; dRow++ ) { // create date picker rows
|
8940 |
-
calender += "<tr>";
|
8941 |
-
tbody = ( !showWeek ? "" : "<td class='ui-datepicker-week-col'>" +
|
8942 |
-
this._get( inst, "calculateWeek" )( printDate ) + "</td>" );
|
8943 |
-
for ( dow = 0; dow < 7; dow++ ) { // create date picker days
|
8944 |
-
daySettings = ( beforeShowDay ?
|
8945 |
-
beforeShowDay.apply( ( inst.input ? inst.input[ 0 ] : null ), [ printDate ] ) : [ true, "" ] );
|
8946 |
-
otherMonth = ( printDate.getMonth() !== drawMonth );
|
8947 |
-
unselectable = ( otherMonth && !selectOtherMonths ) || !daySettings[ 0 ] ||
|
8948 |
-
( minDate && printDate < minDate ) || ( maxDate && printDate > maxDate );
|
8949 |
-
tbody += "<td class='" +
|
8950 |
-
( ( dow + firstDay + 6 ) % 7 >= 5 ? " ui-datepicker-week-end" : "" ) + // highlight weekends
|
8951 |
-
( otherMonth ? " ui-datepicker-other-month" : "" ) + // highlight days from other months
|
8952 |
-
( ( printDate.getTime() === selectedDate.getTime() && drawMonth === inst.selectedMonth && inst._keyEvent ) || // user pressed key
|
8953 |
-
( defaultDate.getTime() === printDate.getTime() && defaultDate.getTime() === selectedDate.getTime() ) ?
|
8954 |
-
|
8955 |
-
// or defaultDate is current printedDate and defaultDate is selectedDate
|
8956 |
-
" " + this._dayOverClass : "" ) + // highlight selected day
|
8957 |
-
( unselectable ? " " + this._unselectableClass + " ui-state-disabled" : "" ) + // highlight unselectable days
|
8958 |
-
( otherMonth && !showOtherMonths ? "" : " " + daySettings[ 1 ] + // highlight custom dates
|
8959 |
-
( printDate.getTime() === currentDate.getTime() ? " " + this._currentClass : "" ) + // highlight selected day
|
8960 |
-
( printDate.getTime() === today.getTime() ? " ui-datepicker-today" : "" ) ) + "'" + // highlight today (if different)
|
8961 |
-
( ( !otherMonth || showOtherMonths ) && daySettings[ 2 ] ? " title='" + daySettings[ 2 ].replace( /'/g, "'" ) + "'" : "" ) + // cell title
|
8962 |
-
( unselectable ? "" : " data-handler='selectDay' data-event='click' data-month='" + printDate.getMonth() + "' data-year='" + printDate.getFullYear() + "'" ) + ">" + // actions
|
8963 |
-
( otherMonth && !showOtherMonths ? " " : // display for other months
|
8964 |
-
( unselectable ? "<span class='ui-state-default'>" + printDate.getDate() + "</span>" : "<a class='ui-state-default" +
|
8965 |
-
( printDate.getTime() === today.getTime() ? " ui-state-highlight" : "" ) +
|
8966 |
-
( printDate.getTime() === currentDate.getTime() ? " ui-state-active" : "" ) + // highlight selected day
|
8967 |
-
( otherMonth ? " ui-priority-secondary" : "" ) + // distinguish dates from other months
|
8968 |
-
"' href='#'>" + printDate.getDate() + "</a>" ) ) + "</td>"; // display selectable date
|
8969 |
-
printDate.setDate( printDate.getDate() + 1 );
|
8970 |
-
printDate = this._daylightSavingAdjust( printDate );
|
8971 |
-
}
|
8972 |
-
calender += tbody + "</tr>";
|
8973 |
-
}
|
8974 |
-
drawMonth++;
|
8975 |
-
if ( drawMonth > 11 ) {
|
8976 |
-
drawMonth = 0;
|
8977 |
-
drawYear++;
|
8978 |
-
}
|
8979 |
-
calender += "</tbody></table>" + ( isMultiMonth ? "</div>" +
|
8980 |
-
( ( numMonths[ 0 ] > 0 && col === numMonths[ 1 ] - 1 ) ? "<div class='ui-datepicker-row-break'></div>" : "" ) : "" );
|
8981 |
-
group += calender;
|
8982 |
-
}
|
8983 |
-
html += group;
|
8984 |
-
}
|
8985 |
-
html += buttonPanel;
|
8986 |
-
inst._keyEvent = false;
|
8987 |
-
return html;
|
8988 |
-
},
|
8989 |
-
|
8990 |
-
/* Generate the month and year header. */
|
8991 |
-
_generateMonthYearHeader: function( inst, drawMonth, drawYear, minDate, maxDate,
|
8992 |
-
secondary, monthNames, monthNamesShort ) {
|
8993 |
-
|
8994 |
-
var inMinYear, inMaxYear, month, years, thisYear, determineYear, year, endYear,
|
8995 |
-
changeMonth = this._get( inst, "changeMonth" ),
|
8996 |
-
changeYear = this._get( inst, "changeYear" ),
|
8997 |
-
showMonthAfterYear = this._get( inst, "showMonthAfterYear" ),
|
8998 |
-
html = "<div class='ui-datepicker-title'>",
|
8999 |
-
monthHtml = "";
|
9000 |
-
|
9001 |
-
// Month selection
|
9002 |
-
if ( secondary || !changeMonth ) {
|
9003 |
-
monthHtml += "<span class='ui-datepicker-month'>" + monthNames[ drawMonth ] + "</span>";
|
9004 |
-
} else {
|
9005 |
-
inMinYear = ( minDate && minDate.getFullYear() === drawYear );
|
9006 |
-
inMaxYear = ( maxDate && maxDate.getFullYear() === drawYear );
|
9007 |
-
monthHtml += "<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>";
|
9008 |
-
for ( month = 0; month < 12; month++ ) {
|
9009 |
-
if ( ( !inMinYear || month >= minDate.getMonth() ) && ( !inMaxYear || month <= maxDate.getMonth() ) ) {
|
9010 |
-
monthHtml += "<option value='" + month + "'" +
|
9011 |
-
( month === drawMonth ? " selected='selected'" : "" ) +
|
9012 |
-
">" + monthNamesShort[ month ] + "</option>";
|
9013 |
-
}
|
9014 |
-
}
|
9015 |
-
monthHtml += "</select>";
|
9016 |
-
}
|
9017 |
-
|
9018 |
-
if ( !showMonthAfterYear ) {
|
9019 |
-
html += monthHtml + ( secondary || !( changeMonth && changeYear ) ? " " : "" );
|
9020 |
-
}
|
9021 |
-
|
9022 |
-
// Year selection
|
9023 |
-
if ( !inst.yearshtml ) {
|
9024 |
-
inst.yearshtml = "";
|
9025 |
-
if ( secondary || !changeYear ) {
|
9026 |
-
html += "<span class='ui-datepicker-year'>" + drawYear + "</span>";
|
9027 |
-
} else {
|
9028 |
-
|
9029 |
-
// determine range of years to display
|
9030 |
-
years = this._get( inst, "yearRange" ).split( ":" );
|
9031 |
-
thisYear = new Date().getFullYear();
|
9032 |
-
determineYear = function( value ) {
|
9033 |
-
var year = ( value.match( /c[+\-].*/ ) ? drawYear + parseInt( value.substring( 1 ), 10 ) :
|
9034 |
-
( value.match( /[+\-].*/ ) ? thisYear + parseInt( value, 10 ) :
|
9035 |
-
parseInt( value, 10 ) ) );
|
9036 |
-
return ( isNaN( year ) ? thisYear : year );
|
9037 |
-
};
|
9038 |
-
year = determineYear( years[ 0 ] );
|
9039 |
-
endYear = Math.max( year, determineYear( years[ 1 ] || "" ) );
|
9040 |
-
year = ( minDate ? Math.max( year, minDate.getFullYear() ) : year );
|
9041 |
-
endYear = ( maxDate ? Math.min( endYear, maxDate.getFullYear() ) : endYear );
|
9042 |
-
inst.yearshtml += "<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>";
|
9043 |
-
for ( ; year <= endYear; year++ ) {
|
9044 |
-
inst.yearshtml += "<option value='" + year + "'" +
|
9045 |
-
( year === drawYear ? " selected='selected'" : "" ) +
|
9046 |
-
">" + year + "</option>";
|
9047 |
-
}
|
9048 |
-
inst.yearshtml += "</select>";
|
9049 |
-
|
9050 |
-
html += inst.yearshtml;
|
9051 |
-
inst.yearshtml = null;
|
9052 |
-
}
|
9053 |
-
}
|
9054 |
-
|
9055 |
-
html += this._get( inst, "yearSuffix" );
|
9056 |
-
if ( showMonthAfterYear ) {
|
9057 |
-
html += ( secondary || !( changeMonth && changeYear ) ? " " : "" ) + monthHtml;
|
9058 |
-
}
|
9059 |
-
html += "</div>"; // Close datepicker_header
|
9060 |
-
return html;
|
9061 |
-
},
|
9062 |
-
|
9063 |
-
/* Adjust one of the date sub-fields. */
|
9064 |
-
_adjustInstDate: function( inst, offset, period ) {
|
9065 |
-
var year = inst.selectedYear + ( period === "Y" ? offset : 0 ),
|
9066 |
-
month = inst.selectedMonth + ( period === "M" ? offset : 0 ),
|
9067 |
-
day = Math.min( inst.selectedDay, this._getDaysInMonth( year, month ) ) + ( period === "D" ? offset : 0 ),
|
9068 |
-
date = this._restrictMinMax( inst, this._daylightSavingAdjust( new Date( year, month, day ) ) );
|
9069 |
-
|
9070 |
-
inst.selectedDay = date.getDate();
|
9071 |
-
inst.drawMonth = inst.selectedMonth = date.getMonth();
|
9072 |
-
inst.drawYear = inst.selectedYear = date.getFullYear();
|
9073 |
-
if ( period === "M" || period === "Y" ) {
|
9074 |
-
this._notifyChange( inst );
|
9075 |
-
}
|
9076 |
-
},
|
9077 |
-
|
9078 |
-
/* Ensure a date is within any min/max bounds. */
|
9079 |
-
_restrictMinMax: function( inst, date ) {
|
9080 |
-
var minDate = this._getMinMaxDate( inst, "min" ),
|
9081 |
-
maxDate = this._getMinMaxDate( inst, "max" ),
|
9082 |
-
newDate = ( minDate && date < minDate ? minDate : date );
|
9083 |
-
return ( maxDate && newDate > maxDate ? maxDate : newDate );
|
9084 |
-
},
|
9085 |
-
|
9086 |
-
/* Notify change of month/year. */
|
9087 |
-
_notifyChange: function( inst ) {
|
9088 |
-
var onChange = this._get( inst, "onChangeMonthYear" );
|
9089 |
-
if ( onChange ) {
|
9090 |
-
onChange.apply( ( inst.input ? inst.input[ 0 ] : null ),
|
9091 |
-
[ inst.selectedYear, inst.selectedMonth + 1, inst ] );
|
9092 |
-
}
|
9093 |
-
},
|
9094 |
-
|
9095 |
-
/* Determine the number of months to show. */
|
9096 |
-
_getNumberOfMonths: function( inst ) {
|
9097 |
-
var numMonths = this._get( inst, "numberOfMonths" );
|
9098 |
-
return ( numMonths == null ? [ 1, 1 ] : ( typeof numMonths === "number" ? [ 1, numMonths ] : numMonths ) );
|
9099 |
-
},
|
9100 |
-
|
9101 |
-
/* Determine the current maximum date - ensure no time components are set. */
|
9102 |
-
_getMinMaxDate: function( inst, minMax ) {
|
9103 |
-
return this._determineDate( inst, this._get( inst, minMax + "Date" ), null );
|
9104 |
-
},
|
9105 |
-
|
9106 |
-
/* Find the number of days in a given month. */
|
9107 |
-
_getDaysInMonth: function( year, month ) {
|
9108 |
-
return 32 - this._daylightSavingAdjust( new Date( year, month, 32 ) ).getDate();
|
9109 |
-
},
|
9110 |
-
|
9111 |
-
/* Find the day of the week of the first of a month. */
|
9112 |
-
_getFirstDayOfMonth: function( year, month ) {
|
9113 |
-
return new Date( year, month, 1 ).getDay();
|
9114 |
-
},
|
9115 |
-
|
9116 |
-
/* Determines if we should allow a "next/prev" month display change. */
|
9117 |
-
_canAdjustMonth: function( inst, offset, curYear, curMonth ) {
|
9118 |
-
var numMonths = this._getNumberOfMonths( inst ),
|
9119 |
-
date = this._daylightSavingAdjust( new Date( curYear,
|
9120 |
-
curMonth + ( offset < 0 ? offset : numMonths[ 0 ] * numMonths[ 1 ] ), 1 ) );
|
9121 |
-
|
9122 |
-
if ( offset < 0 ) {
|
9123 |
-
date.setDate( this._getDaysInMonth( date.getFullYear(), date.getMonth() ) );
|
9124 |
-
}
|
9125 |
-
return this._isInRange( inst, date );
|
9126 |
-
},
|
9127 |
-
|
9128 |
-
/* Is the given date in the accepted range? */
|
9129 |
-
_isInRange: function( inst, date ) {
|
9130 |
-
var yearSplit, currentYear,
|
9131 |
-
minDate = this._getMinMaxDate( inst, "min" ),
|
9132 |
-
maxDate = this._getMinMaxDate( inst, "max" ),
|
9133 |
-
minYear = null,
|
9134 |
-
maxYear = null,
|
9135 |
-
years = this._get( inst, "yearRange" );
|
9136 |
-
if ( years ) {
|
9137 |
-
yearSplit = years.split( ":" );
|
9138 |
-
currentYear = new Date().getFullYear();
|
9139 |
-
minYear = parseInt( yearSplit[ 0 ], 10 );
|
9140 |
-
maxYear = parseInt( yearSplit[ 1 ], 10 );
|
9141 |
-
if ( yearSplit[ 0 ].match( /[+\-].*/ ) ) {
|
9142 |
-
minYear += currentYear;
|
9143 |
-
}
|
9144 |
-
if ( yearSplit[ 1 ].match( /[+\-].*/ ) ) {
|
9145 |
-
maxYear += currentYear;
|
9146 |
-
}
|
9147 |
-
}
|
9148 |
-
|
9149 |
-
return ( ( !minDate || date.getTime() >= minDate.getTime() ) &&
|
9150 |
-
( !maxDate || date.getTime() <= maxDate.getTime() ) &&
|
9151 |
-
( !minYear || date.getFullYear() >= minYear ) &&
|
9152 |
-
( !maxYear || date.getFullYear() <= maxYear ) );
|
9153 |
-
},
|
9154 |
-
|
9155 |
-
/* Provide the configuration settings for formatting/parsing. */
|
9156 |
-
_getFormatConfig: function( inst ) {
|
9157 |
-
var shortYearCutoff = this._get( inst, "shortYearCutoff" );
|
9158 |
-
shortYearCutoff = ( typeof shortYearCutoff !== "string" ? shortYearCutoff :
|
9159 |
-
new Date().getFullYear() % 100 + parseInt( shortYearCutoff, 10 ) );
|
9160 |
-
return { shortYearCutoff: shortYearCutoff,
|
9161 |
-
dayNamesShort: this._get( inst, "dayNamesShort" ), dayNames: this._get( inst, "dayNames" ),
|
9162 |
-
monthNamesShort: this._get( inst, "monthNamesShort" ), monthNames: this._get( inst, "monthNames" ) };
|
9163 |
-
},
|
9164 |
-
|
9165 |
-
/* Format the given date for display. */
|
9166 |
-
_formatDate: function( inst, day, month, year ) {
|
9167 |
-
if ( !day ) {
|
9168 |
-
inst.currentDay = inst.selectedDay;
|
9169 |
-
inst.currentMonth = inst.selectedMonth;
|
9170 |
-
inst.currentYear = inst.selectedYear;
|
9171 |
-
}
|
9172 |
-
var date = ( day ? ( typeof day === "object" ? day :
|
9173 |
-
this._daylightSavingAdjust( new Date( year, month, day ) ) ) :
|
9174 |
-
this._daylightSavingAdjust( new Date( inst.currentYear, inst.currentMonth, inst.currentDay ) ) );
|
9175 |
-
return this.formatDate( this._get( inst, "dateFormat" ), date, this._getFormatConfig( inst ) );
|
9176 |
-
}
|
9177 |
-
} );
|
9178 |
-
|
9179 |
-
/*
|
9180 |
-
* Bind hover events for datepicker elements.
|
9181 |
-
* Done via delegate so the binding only occurs once in the lifetime of the parent div.
|
9182 |
-
* Global datepicker_instActive, set by _updateDatepicker allows the handlers to find their way back to the active picker.
|
9183 |
-
*/
|
9184 |
-
function datepicker_bindHover( dpDiv ) {
|
9185 |
-
var selector = "button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";
|
9186 |
-
return dpDiv.on( "mouseout", selector, function() {
|
9187 |
-
$( this ).removeClass( "ui-state-hover" );
|
9188 |
-
if ( this.className.indexOf( "ui-datepicker-prev" ) !== -1 ) {
|
9189 |
-
$( this ).removeClass( "ui-datepicker-prev-hover" );
|
9190 |
-
}
|
9191 |
-
if ( this.className.indexOf( "ui-datepicker-next" ) !== -1 ) {
|
9192 |
-
$( this ).removeClass( "ui-datepicker-next-hover" );
|
9193 |
-
}
|
9194 |
-
} )
|
9195 |
-
.on( "mouseover", selector, datepicker_handleMouseover );
|
9196 |
-
}
|
9197 |
-
|
9198 |
-
function datepicker_handleMouseover() {
|
9199 |
-
if ( !$.datepicker._isDisabledDatepicker( datepicker_instActive.inline ? datepicker_instActive.dpDiv.parent()[ 0 ] : datepicker_instActive.input[ 0 ] ) ) {
|
9200 |
-
$( this ).parents( ".ui-datepicker-calendar" ).find( "a" ).removeClass( "ui-state-hover" );
|
9201 |
-
$( this ).addClass( "ui-state-hover" );
|
9202 |
-
if ( this.className.indexOf( "ui-datepicker-prev" ) !== -1 ) {
|
9203 |
-
$( this ).addClass( "ui-datepicker-prev-hover" );
|
9204 |
-
}
|
9205 |
-
if ( this.className.indexOf( "ui-datepicker-next" ) !== -1 ) {
|
9206 |
-
$( this ).addClass( "ui-datepicker-next-hover" );
|
9207 |
-
}
|
9208 |
-
}
|
9209 |
-
}
|
9210 |
-
|
9211 |
-
/* jQuery extend now ignores nulls! */
|
9212 |
-
function datepicker_extendRemove( target, props ) {
|
9213 |
-
$.extend( target, props );
|
9214 |
-
for ( var name in props ) {
|
9215 |
-
if ( props[ name ] == null ) {
|
9216 |
-
target[ name ] = props[ name ];
|
9217 |
-
}
|
9218 |
-
}
|
9219 |
-
return target;
|
9220 |
-
}
|
9221 |
-
|
9222 |
-
/* Invoke the datepicker functionality.
|
9223 |
-
@param options string - a command, optionally followed by additional parameters or
|
9224 |
-
Object - settings for attaching new datepicker functionality
|
9225 |
-
@return jQuery object */
|
9226 |
-
$.fn.datepicker = function( options ) {
|
9227 |
-
|
9228 |
-
/* Verify an empty collection wasn't passed - Fixes #6976 */
|
9229 |
-
if ( !this.length ) {
|
9230 |
-
return this;
|
9231 |
-
}
|
9232 |
-
|
9233 |
-
/* Initialise the date picker. */
|
9234 |
-
if ( !$.datepicker.initialized ) {
|
9235 |
-
$( document ).on( "mousedown", $.datepicker._checkExternalClick );
|
9236 |
-
$.datepicker.initialized = true;
|
9237 |
-
}
|
9238 |
-
|
9239 |
-
/* Append datepicker main container to body if not exist. */
|
9240 |
-
if ( $( "#" + $.datepicker._mainDivId ).length === 0 ) {
|
9241 |
-
$( "body" ).append( $.datepicker.dpDiv );
|
9242 |
-
}
|
9243 |
-
|
9244 |
-
var otherArgs = Array.prototype.slice.call( arguments, 1 );
|
9245 |
-
if ( typeof options === "string" && ( options === "isDisabled" || options === "getDate" || options === "widget" ) ) {
|
9246 |
-
return $.datepicker[ "_" + options + "Datepicker" ].
|
9247 |
-
apply( $.datepicker, [ this[ 0 ] ].concat( otherArgs ) );
|
9248 |
-
}
|
9249 |
-
if ( options === "option" && arguments.length === 2 && typeof arguments[ 1 ] === "string" ) {
|
9250 |
-
return $.datepicker[ "_" + options + "Datepicker" ].
|
9251 |
-
apply( $.datepicker, [ this[ 0 ] ].concat( otherArgs ) );
|
9252 |
-
}
|
9253 |
-
return this.each( function() {
|
9254 |
-
typeof options === "string" ?
|
9255 |
-
$.datepicker[ "_" + options + "Datepicker" ].
|
9256 |
-
apply( $.datepicker, [ this ].concat( otherArgs ) ) :
|
9257 |
-
$.datepicker._attachDatepicker( this, options );
|
9258 |
-
} );
|
9259 |
-
};
|
9260 |
-
|
9261 |
-
$.datepicker = new Datepicker(); // singleton instance
|
9262 |
-
$.datepicker.initialized = false;
|
9263 |
-
$.datepicker.uuid = new Date().getTime();
|
9264 |
-
$.datepicker.version = "1.12.1";
|
9265 |
-
|
9266 |
-
var widgetsDatepicker = $.datepicker;
|
9267 |
-
|
9268 |
-
|
9269 |
-
|
9270 |
-
|
9271 |
-
// This file is deprecated
|
9272 |
-
var ie = $.ui.ie = !!/msie [\w.]+/.exec( navigator.userAgent.toLowerCase() );
|
9273 |
-
|
9274 |
-
/*!
|
9275 |
-
* jQuery UI Mouse 1.12.1
|
9276 |
-
* http://jqueryui.com
|
9277 |
-
*
|
9278 |
-
* Copyright jQuery Foundation and other contributors
|
9279 |
-
* Released under the MIT license.
|
9280 |
-
* http://jquery.org/license
|
9281 |
-
*/
|
9282 |
-
|
9283 |
-
//>>label: Mouse
|
9284 |
-
//>>group: Widgets
|
9285 |
-
//>>description: Abstracts mouse-based interactions to assist in creating certain widgets.
|
9286 |
-
//>>docs: http://api.jqueryui.com/mouse/
|
9287 |
-
|
9288 |
-
|
9289 |
-
|
9290 |
-
var mouseHandled = false;
|
9291 |
-
$( document ).on( "mouseup", function() {
|
9292 |
-
mouseHandled = false;
|
9293 |
-
} );
|
9294 |
-
|
9295 |
-
var widgetsMouse = $.widget( "ui.mouse", {
|
9296 |
-
version: "1.12.1",
|
9297 |
-
options: {
|
9298 |
-
cancel: "input, textarea, button, select, option",
|
9299 |
-
distance: 1,
|
9300 |
-
delay: 0
|
9301 |
-
},
|
9302 |
-
_mouseInit: function() {
|
9303 |
-
var that = this;
|
9304 |
-
|
9305 |
-
this.element
|
9306 |
-
.on( "mousedown." + this.widgetName, function( event ) {
|
9307 |
-
return that._mouseDown( event );
|
9308 |
-
} )
|
9309 |
-
.on( "click." + this.widgetName, function( event ) {
|
9310 |
-
if ( true === $.data( event.target, that.widgetName + ".preventClickEvent" ) ) {
|
9311 |
-
$.removeData( event.target, that.widgetName + ".preventClickEvent" );
|
9312 |
-
event.stopImmediatePropagation();
|
9313 |
-
return false;
|
9314 |
-
}
|
9315 |
-
} );
|
9316 |
-
|
9317 |
-
this.started = false;
|
9318 |
-
},
|
9319 |
-
|
9320 |
-
// TODO: make sure destroying one instance of mouse doesn't mess with
|
9321 |
-
// other instances of mouse
|
9322 |
-
_mouseDestroy: function() {
|
9323 |
-
this.element.off( "." + this.widgetName );
|
9324 |
-
if ( this._mouseMoveDelegate ) {
|
9325 |
-
this.document
|
9326 |
-
.off( "mousemove." + this.widgetName, this._mouseMoveDelegate )
|
9327 |
-
.off( "mouseup." + this.widgetName, this._mouseUpDelegate );
|
9328 |
-
}
|
9329 |
-
},
|
9330 |
-
|
9331 |
-
_mouseDown: function( event ) {
|
9332 |
-
|
9333 |
-
// don't let more than one widget handle mouseStart
|
9334 |
-
if ( mouseHandled ) {
|
9335 |
-
return;
|
9336 |
-
}
|
9337 |
-
|
9338 |
-
this._mouseMoved = false;
|
9339 |
-
|
9340 |
-
// We may have missed mouseup (out of window)
|
9341 |
-
( this._mouseStarted && this._mouseUp( event ) );
|
9342 |
-
|
9343 |
-
this._mouseDownEvent = event;
|
9344 |
-
|
9345 |
-
var that = this,
|
9346 |
-
btnIsLeft = ( event.which === 1 ),
|
9347 |
-
|
9348 |
-
// event.target.nodeName works around a bug in IE 8 with
|
9349 |
-
// disabled inputs (#7620)
|
9350 |
-
elIsCancel = ( typeof this.options.cancel === "string" && event.target.nodeName ?
|
9351 |
-
$( event.target ).closest( this.options.cancel ).length : false );
|
9352 |
-
if ( !btnIsLeft || elIsCancel || !this._mouseCapture( event ) ) {
|
9353 |
-
return true;
|
9354 |
-
}
|
9355 |
-
|
9356 |
-
this.mouseDelayMet = !this.options.delay;
|
9357 |
-
if ( !this.mouseDelayMet ) {
|
9358 |
-
this._mouseDelayTimer = setTimeout( function() {
|
9359 |
-
that.mouseDelayMet = true;
|
9360 |
-
}, this.options.delay );
|
9361 |
-
}
|
9362 |
-
|
9363 |
-
if ( this._mouseDistanceMet( event ) && this._mouseDelayMet( event ) ) {
|
9364 |
-
this._mouseStarted = ( this._mouseStart( event ) !== false );
|
9365 |
-
if ( !this._mouseStarted ) {
|
9366 |
-
event.preventDefault();
|
9367 |
-
return true;
|
9368 |
-
}
|
9369 |
-
}
|
9370 |
-
|
9371 |
-
// Click event may never have fired (Gecko & Opera)
|
9372 |
-
if ( true === $.data( event.target, this.widgetName + ".preventClickEvent" ) ) {
|
9373 |
-
$.removeData( event.target, this.widgetName + ".preventClickEvent" );
|
9374 |
-
}
|
9375 |
-
|
9376 |
-
// These delegates are required to keep context
|
9377 |
-
this._mouseMoveDelegate = function( event ) {
|
9378 |
-
return that._mouseMove( event );
|
9379 |
-
};
|
9380 |
-
this._mouseUpDelegate = function( event ) {
|
9381 |
-
return that._mouseUp( event );
|
9382 |
-
};
|
9383 |
-
|
9384 |
-
this.document
|
9385 |
-
.on( "mousemove." + this.widgetName, this._mouseMoveDelegate )
|
9386 |
-
.on( "mouseup." + this.widgetName, this._mouseUpDelegate );
|
9387 |
-
|
9388 |
-
event.preventDefault();
|
9389 |
-
|
9390 |
-
mouseHandled = true;
|
9391 |
-
return true;
|
9392 |
-
},
|
9393 |
-
|
9394 |
-
_mouseMove: function( event ) {
|
9395 |
-
|
9396 |
-
// Only check for mouseups outside the document if you've moved inside the document
|
9397 |
-
// at least once. This prevents the firing of mouseup in the case of IE<9, which will
|
9398 |
-
// fire a mousemove event if content is placed under the cursor. See #7778
|
9399 |
-
// Support: IE <9
|
9400 |
-
if ( this._mouseMoved ) {
|
9401 |
-
|
9402 |
-
// IE mouseup check - mouseup happened when mouse was out of window
|
9403 |
-
if ( $.ui.ie && ( !document.documentMode || document.documentMode < 9 ) &&
|
9404 |
-
!event.button ) {
|
9405 |
-
return this._mouseUp( event );
|
9406 |
-
|
9407 |
-
// Iframe mouseup check - mouseup occurred in another document
|
9408 |
-
} else if ( !event.which ) {
|
9409 |
-
|
9410 |
-
// Support: Safari <=8 - 9
|
9411 |
-
// Safari sets which to 0 if you press any of the following keys
|
9412 |
-
// during a drag (#14461)
|
9413 |
-
if ( event.originalEvent.altKey || event.originalEvent.ctrlKey ||
|
9414 |
-
event.originalEvent.metaKey || event.originalEvent.shiftKey ) {
|
9415 |
-
this.ignoreMissingWhich = true;
|
9416 |
-
} else if ( !this.ignoreMissingWhich ) {
|
9417 |
-
return this._mouseUp( event );
|
9418 |
-
}
|
9419 |
-
}
|
9420 |
-
}
|
9421 |
-
|
9422 |
-
if ( event.which || event.button ) {
|
9423 |
-
this._mouseMoved = true;
|
9424 |
-
}
|
9425 |
-
|
9426 |
-
if ( this._mouseStarted ) {
|
9427 |
-
this._mouseDrag( event );
|
9428 |
-
return event.preventDefault();
|
9429 |
-
}
|
9430 |
-
|
9431 |
-
if ( this._mouseDistanceMet( event ) && this._mouseDelayMet( event ) ) {
|
9432 |
-
this._mouseStarted =
|
9433 |
-
( this._mouseStart( this._mouseDownEvent, event ) !== false );
|
9434 |
-
( this._mouseStarted ? this._mouseDrag( event ) : this._mouseUp( event ) );
|
9435 |
-
}
|
9436 |
-
|
9437 |
-
return !this._mouseStarted;
|
9438 |
-
},
|
9439 |
-
|
9440 |
-
_mouseUp: function( event ) {
|
9441 |
-
this.document
|
9442 |
-
.off( "mousemove." + this.widgetName, this._mouseMoveDelegate )
|
9443 |
-
.off( "mouseup." + this.widgetName, this._mouseUpDelegate );
|
9444 |
-
|
9445 |
-
if ( this._mouseStarted ) {
|
9446 |
-
this._mouseStarted = false;
|
9447 |
-
|
9448 |
-
if ( event.target === this._mouseDownEvent.target ) {
|
9449 |
-
$.data( event.target, this.widgetName + ".preventClickEvent", true );
|
9450 |
-
}
|
9451 |
-
|
9452 |
-
this._mouseStop( event );
|
9453 |
-
}
|
9454 |
-
|
9455 |
-
if ( this._mouseDelayTimer ) {
|
9456 |
-
clearTimeout( this._mouseDelayTimer );
|
9457 |
-
delete this._mouseDelayTimer;
|
9458 |
-
}
|
9459 |
-
|
9460 |
-
this.ignoreMissingWhich = false;
|
9461 |
-
mouseHandled = false;
|
9462 |
-
event.preventDefault();
|
9463 |
-
},
|
9464 |
-
|
9465 |
-
_mouseDistanceMet: function( event ) {
|
9466 |
-
return ( Math.max(
|
9467 |
-
Math.abs( this._mouseDownEvent.pageX - event.pageX ),
|
9468 |
-
Math.abs( this._mouseDownEvent.pageY - event.pageY )
|
9469 |
-
) >= this.options.distance
|
9470 |
-
);
|
9471 |
-
},
|
9472 |
-
|
9473 |
-
_mouseDelayMet: function( /* event */ ) {
|
9474 |
-
return this.mouseDelayMet;
|
9475 |
-
},
|
9476 |
-
|
9477 |
-
// These are placeholder methods, to be overriden by extending plugin
|
9478 |
-
_mouseStart: function( /* event */ ) {},
|
9479 |
-
_mouseDrag: function( /* event */ ) {},
|
9480 |
-
_mouseStop: function( /* event */ ) {},
|
9481 |
-
_mouseCapture: function( /* event */ ) { return true; }
|
9482 |
-
} );
|
9483 |
-
|
9484 |
-
|
9485 |
-
|
9486 |
-
|
9487 |
-
// $.ui.plugin is deprecated. Use $.widget() extensions instead.
|
9488 |
-
var plugin = $.ui.plugin = {
|
9489 |
-
add: function( module, option, set ) {
|
9490 |
-
var i,
|
9491 |
-
proto = $.ui[ module ].prototype;
|
9492 |
-
for ( i in set ) {
|
9493 |
-
proto.plugins[ i ] = proto.plugins[ i ] || [];
|
9494 |
-
proto.plugins[ i ].push( [ option, set[ i ] ] );
|
9495 |
-
}
|
9496 |
-
},
|
9497 |
-
call: function( instance, name, args, allowDisconnected ) {
|
9498 |
-
var i,
|
9499 |
-
set = instance.plugins[ name ];
|
9500 |
-
|
9501 |
-
if ( !set ) {
|
9502 |
-
return;
|
9503 |
-
}
|
9504 |
-
|
9505 |
-
if ( !allowDisconnected && ( !instance.element[ 0 ].parentNode ||
|
9506 |
-
instance.element[ 0 ].parentNode.nodeType === 11 ) ) {
|
9507 |
-
return;
|
9508 |
-
}
|
9509 |
-
|
9510 |
-
for ( i = 0; i < set.length; i++ ) {
|
9511 |
-
if ( instance.options[ set[ i ][ 0 ] ] ) {
|
9512 |
-
set[ i ][ 1 ].apply( instance.element, args );
|
9513 |
-
}
|
9514 |
-
}
|
9515 |
-
}
|
9516 |
-
};
|
9517 |
-
|
9518 |
-
|
9519 |
-
|
9520 |
-
var safeBlur = $.ui.safeBlur = function( element ) {
|
9521 |
-
|
9522 |
-
// Support: IE9 - 10 only
|
9523 |
-
// If the <body> is blurred, IE will switch windows, see #9420
|
9524 |
-
if ( element && element.nodeName.toLowerCase() !== "body" ) {
|
9525 |
-
$( element ).trigger( "blur" );
|
9526 |
-
}
|
9527 |
-
};
|
9528 |
-
|
9529 |
-
|
9530 |
-
/*!
|
9531 |
-
* jQuery UI Draggable 1.12.1
|
9532 |
-
* http://jqueryui.com
|
9533 |
-
*
|
9534 |
-
* Copyright jQuery Foundation and other contributors
|
9535 |
-
* Released under the MIT license.
|
9536 |
-
* http://jquery.org/license
|
9537 |
-
*/
|
9538 |
-
|
9539 |
-
//>>label: Draggable
|
9540 |
-
//>>group: Interactions
|
9541 |
-
//>>description: Enables dragging functionality for any element.
|
9542 |
-
//>>docs: http://api.jqueryui.com/draggable/
|
9543 |
-
//>>demos: http://jqueryui.com/draggable/
|
9544 |
-
//>>css.structure: ../../themes/base/draggable.css
|
9545 |
-
|
9546 |
-
|
9547 |
-
|
9548 |
-
$.widget( "ui.draggable", $.ui.mouse, {
|
9549 |
-
version: "1.12.1",
|
9550 |
-
widgetEventPrefix: "drag",
|
9551 |
-
options: {
|
9552 |
-
addClasses: true,
|
9553 |
-
appendTo: "parent",
|
9554 |
-
axis: false,
|
9555 |
-
connectToSortable: false,
|
9556 |
-
containment: false,
|
9557 |
-
cursor: "auto",
|
9558 |
-
cursorAt: false,
|
9559 |
-
grid: false,
|
9560 |
-
handle: false,
|
9561 |
-
helper: "original",
|
9562 |
-
iframeFix: false,
|
9563 |
-
opacity: false,
|
9564 |
-
refreshPositions: false,
|
9565 |
-
revert: false,
|
9566 |
-
revertDuration: 500,
|
9567 |
-
scope: "default",
|
9568 |
-
scroll: true,
|
9569 |
-
scrollSensitivity: 20,
|
9570 |
-
scrollSpeed: 20,
|
9571 |
-
snap: false,
|
9572 |
-
snapMode: "both",
|
9573 |
-
snapTolerance: 20,
|
9574 |
-
stack: false,
|
9575 |
-
zIndex: false,
|
9576 |
-
|
9577 |
-
// Callbacks
|
9578 |
-
drag: null,
|
9579 |
-
start: null,
|
9580 |
-
stop: null
|
9581 |
-
},
|
9582 |
-
_create: function() {
|
9583 |
-
|
9584 |
-
if ( this.options.helper === "original" ) {
|
9585 |
-
this._setPositionRelative();
|
9586 |
-
}
|
9587 |
-
if ( this.options.addClasses ) {
|
9588 |
-
this._addClass( "ui-draggable" );
|
9589 |
-
}
|
9590 |
-
this._setHandleClassName();
|
9591 |
-
|
9592 |
-
this._mouseInit();
|
9593 |
-
},
|
9594 |
-
|
9595 |
-
_setOption: function( key, value ) {
|
9596 |
-
this._super( key, value );
|
9597 |
-
if ( key === "handle" ) {
|
9598 |
-
this._removeHandleClassName();
|
9599 |
-
this._setHandleClassName();
|
9600 |
-
}
|
9601 |
-
},
|
9602 |
-
|
9603 |
-
_destroy: function() {
|
9604 |
-
if ( ( this.helper || this.element ).is( ".ui-draggable-dragging" ) ) {
|
9605 |
-
this.destroyOnClear = true;
|
9606 |
-
return;
|
9607 |
-
}
|
9608 |
-
this._removeHandleClassName();
|
9609 |
-
this._mouseDestroy();
|
9610 |
-
},
|
9611 |
-
|
9612 |
-
_mouseCapture: function( event ) {
|
9613 |
-
var o = this.options;
|
9614 |
-
|
9615 |
-
// Among others, prevent a drag on a resizable-handle
|
9616 |
-
if ( this.helper || o.disabled ||
|
9617 |
-
$( event.target ).closest( ".ui-resizable-handle" ).length > 0 ) {
|
9618 |
-
return false;
|
9619 |
-
}
|
9620 |
-
|
9621 |
-
//Quit if we're not on a valid handle
|
9622 |
-
this.handle = this._getHandle( event );
|
9623 |
-
if ( !this.handle ) {
|
9624 |
-
return false;
|
9625 |
-
}
|
9626 |
-
|
9627 |
-
this._blurActiveElement( event );
|
9628 |
-
|
9629 |
-
this._blockFrames( o.iframeFix === true ? "iframe" : o.iframeFix );
|
9630 |
-
|
9631 |
-
return true;
|
9632 |
-
|
9633 |
-
},
|
9634 |
-
|
9635 |
-
_blockFrames: function( selector ) {
|
9636 |
-
this.iframeBlocks = this.document.find( selector ).map( function() {
|
9637 |
-
var iframe = $( this );
|
9638 |
-
|
9639 |
-
return $( "<div>" )
|
9640 |
-
.css( "position", "absolute" )
|
9641 |
-
.appendTo( iframe.parent() )
|
9642 |
-
.outerWidth( iframe.outerWidth() )
|
9643 |
-
.outerHeight( iframe.outerHeight() )
|
9644 |
-
.offset( iframe.offset() )[ 0 ];
|
9645 |
-
} );
|
9646 |
-
},
|
9647 |
-
|
9648 |
-
_unblockFrames: function() {
|
9649 |
-
if ( this.iframeBlocks ) {
|
9650 |
-
this.iframeBlocks.remove();
|
9651 |
-
delete this.iframeBlocks;
|
9652 |
-
}
|
9653 |
-
},
|
9654 |
-
|
9655 |
-
_blurActiveElement: function( event ) {
|
9656 |
-
var activeElement = $.ui.safeActiveElement( this.document[ 0 ] ),
|
9657 |
-
target = $( event.target );
|
9658 |
-
|
9659 |
-
// Don't blur if the event occurred on an element that is within
|
9660 |
-
// the currently focused element
|
9661 |
-
// See #10527, #12472
|
9662 |
-
if ( target.closest( activeElement ).length ) {
|
9663 |
-
return;
|
9664 |
-
}
|
9665 |
-
|
9666 |
-
// Blur any element that currently has focus, see #4261
|
9667 |
-
$.ui.safeBlur( activeElement );
|
9668 |
-
},
|
9669 |
-
|
9670 |
-
_mouseStart: function( event ) {
|
9671 |
-
|
9672 |
-
var o = this.options;
|
9673 |
-
|
9674 |
-
//Create and append the visible helper
|
9675 |
-
this.helper = this._createHelper( event );
|
9676 |
-
|
9677 |
-
this._addClass( this.helper, "ui-draggable-dragging" );
|
9678 |
-
|
9679 |
-
//Cache the helper size
|
9680 |
-
this._cacheHelperProportions();
|
9681 |
-
|
9682 |
-
//If ddmanager is used for droppables, set the global draggable
|
9683 |
-
if ( $.ui.ddmanager ) {
|
9684 |
-
$.ui.ddmanager.current = this;
|
9685 |
-
}
|
9686 |
-
|
9687 |
-
/*
|
9688 |
-
* - Position generation -
|
9689 |
-
* This block generates everything position related - it's the core of draggables.
|
9690 |
-
*/
|
9691 |
-
|
9692 |
-
//Cache the margins of the original element
|
9693 |
-
this._cacheMargins();
|
9694 |
-
|
9695 |
-
//Store the helper's css position
|
9696 |
-
this.cssPosition = this.helper.css( "position" );
|
9697 |
-
this.scrollParent = this.helper.scrollParent( true );
|
9698 |
-
this.offsetParent = this.helper.offsetParent();
|
9699 |
-
this.hasFixedAncestor = this.helper.parents().filter( function() {
|
9700 |
-
return $( this ).css( "position" ) === "fixed";
|
9701 |
-
} ).length > 0;
|
9702 |
-
|
9703 |
-
//The element's absolute position on the page minus margins
|
9704 |
-
this.positionAbs = this.element.offset();
|
9705 |
-
this._refreshOffsets( event );
|
9706 |
-
|
9707 |
-
//Generate the original position
|
9708 |
-
this.originalPosition = this.position = this._generatePosition( event, false );
|
9709 |
-
this.originalPageX = event.pageX;
|
9710 |
-
this.originalPageY = event.pageY;
|
9711 |
-
|
9712 |
-
//Adjust the mouse offset relative to the helper if "cursorAt" is supplied
|
9713 |
-
( o.cursorAt && this._adjustOffsetFromHelper( o.cursorAt ) );
|
9714 |
-
|
9715 |
-
//Set a containment if given in the options
|
9716 |
-
this._setContainment();
|
9717 |
-
|
9718 |
-
//Trigger event + callbacks
|
9719 |
-
if ( this._trigger( "start", event ) === false ) {
|
9720 |
-
this._clear();
|
9721 |
-
return false;
|
9722 |
-
}
|
9723 |
-
|
9724 |
-
//Recache the helper size
|
9725 |
-
this._cacheHelperProportions();
|
9726 |
-
|
9727 |
-
//Prepare the droppable offsets
|
9728 |
-
if ( $.ui.ddmanager && !o.dropBehaviour ) {
|
9729 |
-
$.ui.ddmanager.prepareOffsets( this, event );
|
9730 |
-
}
|
9731 |
-
|
9732 |
-
// Execute the drag once - this causes the helper not to be visible before getting its
|
9733 |
-
// correct position
|
9734 |
-
this._mouseDrag( event, true );
|
9735 |
-
|
9736 |
-
// If the ddmanager is used for droppables, inform the manager that dragging has started
|
9737 |
-
// (see #5003)
|
9738 |
-
if ( $.ui.ddmanager ) {
|
9739 |
-
$.ui.ddmanager.dragStart( this, event );
|
9740 |
-
}
|
9741 |
-
|
9742 |
-
return true;
|
9743 |
-
},
|
9744 |
-
|
9745 |
-
_refreshOffsets: function( event ) {
|
9746 |
-
this.offset = {
|
9747 |
-
top: this.positionAbs.top - this.margins.top,
|
9748 |
-
left: this.positionAbs.left - this.margins.left,
|
9749 |
-
scroll: false,
|
9750 |
-
parent: this._getParentOffset(),
|
9751 |
-
relative: this._getRelativeOffset()
|
9752 |
-
};
|
9753 |
-
|
9754 |
-
this.offset.click = {
|
9755 |
-
left: event.pageX - this.offset.left,
|
9756 |
-
top: event.pageY - this.offset.top
|
9757 |
-
};
|
9758 |
-
},
|
9759 |
-
|
9760 |
-
_mouseDrag: function( event, noPropagation ) {
|
9761 |
-
|
9762 |
-
// reset any necessary cached properties (see #5009)
|
9763 |
-
if ( this.hasFixedAncestor ) {
|
9764 |
-
this.offset.parent = this._getParentOffset();
|
9765 |
-
}
|
9766 |
-
|
9767 |
-
//Compute the helpers position
|
9768 |
-
this.position = this._generatePosition( event, true );
|
9769 |
-
this.positionAbs = this._convertPositionTo( "absolute" );
|
9770 |
-
|
9771 |
-
//Call plugins and callbacks and use the resulting position if something is returned
|
9772 |
-
if ( !noPropagation ) {
|
9773 |
-
var ui = this._uiHash();
|
9774 |
-
if ( this._trigger( "drag", event, ui ) === false ) {
|
9775 |
-
this._mouseUp( new $.Event( "mouseup", event ) );
|
9776 |
-
return false;
|
9777 |
-
}
|
9778 |
-
this.position = ui.position;
|
9779 |
-
}
|
9780 |
-
|
9781 |
-
this.helper[ 0 ].style.left = this.position.left + "px";
|
9782 |
-
this.helper[ 0 ].style.top = this.position.top + "px";
|
9783 |
-
|
9784 |
-
if ( $.ui.ddmanager ) {
|
9785 |
-
$.ui.ddmanager.drag( this, event );
|
9786 |
-
}
|
9787 |
-
|
9788 |
-
return false;
|
9789 |
-
},
|
9790 |
-
|
9791 |
-
_mouseStop: function( event ) {
|
9792 |
-
|
9793 |
-
//If we are using droppables, inform the manager about the drop
|
9794 |
-
var that = this,
|
9795 |
-
dropped = false;
|
9796 |
-
if ( $.ui.ddmanager && !this.options.dropBehaviour ) {
|
9797 |
-
dropped = $.ui.ddmanager.drop( this, event );
|
9798 |
-
}
|
9799 |
-
|
9800 |
-
//if a drop comes from outside (a sortable)
|
9801 |
-
if ( this.dropped ) {
|
9802 |
-
dropped = this.dropped;
|
9803 |
-
this.dropped = false;
|
9804 |
-
}
|
9805 |
-
|
9806 |
-
if ( ( this.options.revert === "invalid" && !dropped ) ||
|
9807 |
-
( this.options.revert === "valid" && dropped ) ||
|
9808 |
-
this.options.revert === true || ( $.isFunction( this.options.revert ) &&
|
9809 |
-
this.options.revert.call( this.element, dropped ) )
|
9810 |
-
) {
|
9811 |
-
$( this.helper ).animate(
|
9812 |
-
this.originalPosition,
|
9813 |
-
parseInt( this.options.revertDuration, 10 ),
|
9814 |
-
function() {
|
9815 |
-
if ( that._trigger( "stop", event ) !== false ) {
|
9816 |
-
that._clear();
|
9817 |
-
}
|
9818 |
-
}
|
9819 |
-
);
|
9820 |
-
} else {
|
9821 |
-
if ( this._trigger( "stop", event ) !== false ) {
|
9822 |
-
this._clear();
|
9823 |
-
}
|
9824 |
-
}
|
9825 |
-
|
9826 |
-
return false;
|
9827 |
-
},
|
9828 |
-
|
9829 |
-
_mouseUp: function( event ) {
|
9830 |
-
this._unblockFrames();
|
9831 |
-
|
9832 |
-
// If the ddmanager is used for droppables, inform the manager that dragging has stopped
|
9833 |
-
// (see #5003)
|
9834 |
-
if ( $.ui.ddmanager ) {
|
9835 |
-
$.ui.ddmanager.dragStop( this, event );
|
9836 |
-
}
|
9837 |
-
|
9838 |
-
// Only need to focus if the event occurred on the draggable itself, see #10527
|
9839 |
-
if ( this.handleElement.is( event.target ) ) {
|
9840 |
-
|
9841 |
-
// The interaction is over; whether or not the click resulted in a drag,
|
9842 |
-
// focus the element
|
9843 |
-
this.element.trigger( "focus" );
|
9844 |
-
}
|
9845 |
-
|
9846 |
-
return $.ui.mouse.prototype._mouseUp.call( this, event );
|
9847 |
-
},
|
9848 |
-
|
9849 |
-
cancel: function() {
|
9850 |
-
|
9851 |
-
if ( this.helper.is( ".ui-draggable-dragging" ) ) {
|
9852 |
-
this._mouseUp( new $.Event( "mouseup", { target: this.element[ 0 ] } ) );
|
9853 |
-
} else {
|
9854 |
-
this._clear();
|
9855 |
-
}
|
9856 |
-
|
9857 |
-
return this;
|
9858 |
-
|
9859 |
-
},
|
9860 |
-
|
9861 |
-
_getHandle: function( event ) {
|
9862 |
-
return this.options.handle ?
|
9863 |
-
!!$( event.target ).closest( this.element.find( this.options.handle ) ).length :
|
9864 |
-
true;
|
9865 |
-
},
|
9866 |
-
|
9867 |
-
_setHandleClassName: function() {
|
9868 |
-
this.handleElement = this.options.handle ?
|
9869 |
-
this.element.find( this.options.handle ) : this.element;
|
9870 |
-
this._addClass( this.handleElement, "ui-draggable-handle" );
|
9871 |
-
},
|
9872 |
-
|
9873 |
-
_removeHandleClassName: function() {
|
9874 |
-
this._removeClass( this.handleElement, "ui-draggable-handle" );
|
9875 |
-
},
|
9876 |
-
|
9877 |
-
_createHelper: function( event ) {
|
9878 |
-
|
9879 |
-
var o = this.options,
|
9880 |
-
helperIsFunction = $.isFunction( o.helper ),
|
9881 |
-
helper = helperIsFunction ?
|
9882 |
-
$( o.helper.apply( this.element[ 0 ], [ event ] ) ) :
|
9883 |
-
( o.helper === "clone" ?
|
9884 |
-
this.element.clone().removeAttr( "id" ) :
|
9885 |
-
this.element );
|
9886 |
-
|
9887 |
-
if ( !helper.parents( "body" ).length ) {
|
9888 |
-
helper.appendTo( ( o.appendTo === "parent" ?
|
9889 |
-
this.element[ 0 ].parentNode :
|
9890 |
-
o.appendTo ) );
|
9891 |
-
}
|
9892 |
-
|
9893 |
-
// Http://bugs.jqueryui.com/ticket/9446
|
9894 |
-
// a helper function can return the original element
|
9895 |
-
// which wouldn't have been set to relative in _create
|
9896 |
-
if ( helperIsFunction && helper[ 0 ] === this.element[ 0 ] ) {
|
9897 |
-
this._setPositionRelative();
|
9898 |
-
}
|
9899 |
-
|
9900 |
-
if ( helper[ 0 ] !== this.element[ 0 ] &&
|
9901 |
-
!( /(fixed|absolute)/ ).test( helper.css( "position" ) ) ) {
|
9902 |
-
helper.css( "position", "absolute" );
|
9903 |
-
}
|
9904 |
-
|
9905 |
-
return helper;
|
9906 |
-
|
9907 |
-
},
|
9908 |
-
|
9909 |
-
_setPositionRelative: function() {
|
9910 |
-
if ( !( /^(?:r|a|f)/ ).test( this.element.css( "position" ) ) ) {
|
9911 |
-
this.element[ 0 ].style.position = "relative";
|
9912 |
-
}
|
9913 |
-
},
|
9914 |
-
|
9915 |
-
_adjustOffsetFromHelper: function( obj ) {
|
9916 |
-
if ( typeof obj === "string" ) {
|
9917 |
-
obj = obj.split( " " );
|
9918 |
-
}
|
9919 |
-
if ( $.isArray( obj ) ) {
|
9920 |
-
obj = { left: +obj[ 0 ], top: +obj[ 1 ] || 0 };
|
9921 |
-
}
|
9922 |
-
if ( "left" in obj ) {
|
9923 |
-
this.offset.click.left = obj.left + this.margins.left;
|
9924 |
-
}
|
9925 |
-
if ( "right" in obj ) {
|
9926 |
-
this.offset.click.left = this.helperProportions.width - obj.right + this.margins.left;
|
9927 |
-
}
|
9928 |
-
if ( "top" in obj ) {
|
9929 |
-
this.offset.click.top = obj.top + this.margins.top;
|
9930 |
-
}
|
9931 |
-
if ( "bottom" in obj ) {
|
9932 |
-
this.offset.click.top = this.helperProportions.height - obj.bottom + this.margins.top;
|
9933 |
-
}
|
9934 |
-
},
|
9935 |
-
|
9936 |
-
_isRootNode: function( element ) {
|
9937 |
-
return ( /(html|body)/i ).test( element.tagName ) || element === this.document[ 0 ];
|
9938 |
-
},
|
9939 |
-
|
9940 |
-
_getParentOffset: function() {
|
9941 |
-
|
9942 |
-
//Get the offsetParent and cache its position
|
9943 |
-
var po = this.offsetParent.offset(),
|
9944 |
-
document = this.document[ 0 ];
|
9945 |
-
|
9946 |
-
// This is a special case where we need to modify a offset calculated on start, since the
|
9947 |
-
// following happened:
|
9948 |
-
// 1. The position of the helper is absolute, so it's position is calculated based on the
|
9949 |
-
// next positioned parent
|
9950 |
-
// 2. The actual offset parent is a child of the scroll parent, and the scroll parent isn't
|
9951 |
-
// the document, which means that the scroll is included in the initial calculation of the
|
9952 |
-
// offset of the parent, and never recalculated upon drag
|
9953 |
-
if ( this.cssPosition === "absolute" && this.scrollParent[ 0 ] !== document &&
|
9954 |
-
$.contains( this.scrollParent[ 0 ], this.offsetParent[ 0 ] ) ) {
|
9955 |
-
po.left += this.scrollParent.scrollLeft();
|
9956 |
-
po.top += this.scrollParent.scrollTop();
|
9957 |
-
}
|
9958 |
-
|
9959 |
-
if ( this._isRootNode( this.offsetParent[ 0 ] ) ) {
|
9960 |
-
po = { top: 0, left: 0 };
|
9961 |
-
}
|
9962 |
-
|
9963 |
-
return {
|
9964 |
-
top: po.top + ( parseInt( this.offsetParent.css( "borderTopWidth" ), 10 ) || 0 ),
|
9965 |
-
left: po.left + ( parseInt( this.offsetParent.css( "borderLeftWidth" ), 10 ) || 0 )
|
9966 |
-
};
|
9967 |
-
|
9968 |
-
},
|
9969 |
-
|
9970 |
-
_getRelativeOffset: function() {
|
9971 |
-
if ( this.cssPosition !== "relative" ) {
|
9972 |
-
return { top: 0, left: 0 };
|
9973 |
-
}
|
9974 |
-
|
9975 |
-
var p = this.element.position(),
|
9976 |
-
scrollIsRootNode = this._isRootNode( this.scrollParent[ 0 ] );
|
9977 |
-
|
9978 |
-
return {
|
9979 |
-
top: p.top - ( parseInt( this.helper.css( "top" ), 10 ) || 0 ) +
|
9980 |
-
( !scrollIsRootNode ? this.scrollParent.scrollTop() : 0 ),
|
9981 |
-
left: p.left - ( parseInt( this.helper.css( "left" ), 10 ) || 0 ) +
|
9982 |
-
( !scrollIsRootNode ? this.scrollParent.scrollLeft() : 0 )
|
9983 |
-
};
|
9984 |
-
|
9985 |
-
},
|
9986 |
-
|
9987 |
-
_cacheMargins: function() {
|
9988 |
-
this.margins = {
|
9989 |
-
left: ( parseInt( this.element.css( "marginLeft" ), 10 ) || 0 ),
|
9990 |
-
top: ( parseInt( this.element.css( "marginTop" ), 10 ) || 0 ),
|
9991 |
-
right: ( parseInt( this.element.css( "marginRight" ), 10 ) || 0 ),
|
9992 |
-
bottom: ( parseInt( this.element.css( "marginBottom" ), 10 ) || 0 )
|
9993 |
-
};
|
9994 |
-
},
|
9995 |
-
|
9996 |
-
_cacheHelperProportions: function() {
|
9997 |
-
this.helperProportions = {
|
9998 |
-
width: this.helper.outerWidth(),
|
9999 |
-
height: this.helper.outerHeight()
|
10000 |
-
};
|
10001 |
-
},
|
10002 |
-
|
10003 |
-
_setContainment: function() {
|
10004 |
-
|
10005 |
-
var isUserScrollable, c, ce,
|
10006 |
-
o = this.options,
|
10007 |
-
document = this.document[ 0 ];
|