Webpushnotification_Pushassist - Version 1.0.5

Version Notes

Built a stable version 1.0.5

Download this release

Release Info

Developer PushAssist Team
Extension Webpushnotification_Pushassist
Version 1.0.5
Comparing to
See all releases


Code changes from version 1.0.4 to 1.0.5

Files changed (21) hide show
  1. app/code/community/Webpushnotification/Pushassist/Block/Script.php +5 -2
  2. app/code/community/Webpushnotification/Pushassist/Model/Observer.php +45 -0
  3. app/code/community/Webpushnotification/Pushassist/controllers/Adminhtml/Pushassist/CampaignController.php +71 -0
  4. app/code/community/Webpushnotification/Pushassist/controllers/Adminhtml/Pushassist/NotificationsendController.php +4 -2
  5. app/code/community/Webpushnotification/Pushassist/controllers/Adminhtml/Pushassist/SettingsController.php +19 -4
  6. app/code/community/Webpushnotification/Pushassist/etc/adminhtml.xml +23 -0
  7. app/code/community/Webpushnotification/Pushassist/etc/config.xml +18 -2
  8. app/code/community/Webpushnotification/Pushassist/etc/system.xml +49 -0
  9. app/design/adminhtml/default/default/layout/pushassist.xml +1 -0
  10. app/design/adminhtml/default/default/template/pushassist/campaign.phtml +291 -25
  11. app/design/adminhtml/default/default/template/pushassist/create_account.phtml +1 -1
  12. app/design/adminhtml/default/default/template/pushassist/sendnotification.phtml +4 -4
  13. app/design/adminhtml/default/default/template/pushassist/settings.phtml +13 -2
  14. package.xml +6 -6
  15. skin/adminhtml/default/default/pushassist/bootstrap-datetimepicker.min.css +0 -0
  16. skin/adminhtml/default/default/pushassist/bootstrap-select.css +264 -0
  17. skin/adminhtml/default/default/pushassist/bootstrap.min.css +5 -0
  18. skin/adminhtml/default/default/pushassist/content_base.css +5 -25
  19. skin/adminhtml/default/default/pushassist/imgUpload/jquery.fileupload.css +37 -0
  20. skin/adminhtml/default/default/pushassist/imgUpload/jquery.fileupload.js +1477 -0
  21. skin/adminhtml/default/default/pushassist/imgUpload/jquery.ui.widget.js +572 -0
app/code/community/Webpushnotification/Pushassist/Block/Script.php CHANGED
@@ -4,10 +4,13 @@ class Webpushnotification_Pushassist_Block_Script extends Mage_GoogleAnalytics_B
4
  protected function _toHtml() {
5
 
6
  $account_response = Mage::helper('pushassist')->get_account_details();
 
 
7
  $html=parent::_toHtml();
8
  if($account_response['error'] == '' && $account_response){
9
-
10
- $jsPath=$account_response['jsPath'];
 
11
  $html .= '<script src="'.$jsPath.'"></script>';
12
 
13
  }
4
  protected function _toHtml() {
5
 
6
  $account_response = Mage::helper('pushassist')->get_account_details();
7
+
8
+
9
  $html=parent::_toHtml();
10
  if($account_response['error'] == '' && $account_response){
11
+ $subdomain_name=$account_response['account_name'];
12
+ $jsPath= 'https://cdn.pushassist.com/account/assets/psa-'.$subdomain_name.'.js';
13
+ //$jsPath=$account_response['jsPath'];
14
  $html .= '<script src="'.$jsPath.'"></script>';
15
 
16
  }
app/code/community/Webpushnotification/Pushassist/Model/Observer.php ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Webpushnotification_Pushassist_Model_Observer
3
+ {
4
+ public function handle_adminSystemConfigChangedSection() {
5
+
6
+ $check_api_key=Mage::app()->getStore()->getConfig('pushassistsection/general/apikey');
7
+ $check_secret_key=Mage::app()->getStore()->getConfig('pushassistsection/general/secretkey');
8
+
9
+ $account_response = Mage::helper('pushassist')->get_account_details();
10
+
11
+ if($account_response['error'] == '' && $account_response) {
12
+
13
+ $planType=$account_response['planType'];
14
+ $subscribers_limit=$account_response['subscribers_limit'];
15
+ $subscribers_remain=$account_response['subscribers_remain'];
16
+ $jspath=$account_response['jsPath'];
17
+
18
+ if( $planType != '' ){
19
+ Mage::getModel('core/config')->saveConfig('pushassistsection/general/planType',$planType ,'default',0);
20
+ }
21
+ if($subscribers_limit != ''){
22
+ Mage::getModel('core/config')->saveConfig('pushassistsection/general/subscribers_limit',$subscribers_limit ,'default',0);
23
+ }
24
+ if($subscribers_remain != ''){
25
+ Mage::getModel('core/config')->saveConfig('pushassistsection/general/subscribers_remain',$subscribers_remain ,'default',0);
26
+ }
27
+ if($jspath !=''){
28
+ Mage::getModel('core/config')->saveConfig('pushassistsection/general/jsPath',$jspath ,'default',0);
29
+ }
30
+ } else if($account_response['error'] != ''){
31
+ Mage::getModel('core/config')->saveConfig('pushassistsection/general/apikey','' ,'default',0);
32
+ Mage::getModel('core/config')->saveConfig('pushassistsection/general/secretkey','' ,'default',0);
33
+ Mage::getModel('core/config')->saveConfig('pushassistsection/general/planType','' ,'default',0);
34
+ Mage::getModel('core/config')->saveConfig('pushassistsection/general/subscribers_limit','' ,'default',0);
35
+ Mage::getModel('core/config')->saveConfig('pushassistsection/general/subscribers_remain','' ,'default',0);
36
+ Mage::getModel('core/config')->saveConfig('pushassistsection/general/jsPath','' ,'default',0);
37
+ $message=$account_response['error'];
38
+ Mage::getSingleton('adminhtml/session')->addError(Mage::helper('adminhtml')->__($message));
39
+ $returnUrl = Mage::helper("adminhtml")->getUrl("adminhtml/system_config/edit/section/pushassistsection");
40
+ Mage::app()->getResponse()->setRedirect($returnUrl);
41
+
42
+ }
43
+
44
+ }
45
+ }
app/code/community/Webpushnotification/Pushassist/controllers/Adminhtml/Pushassist/CampaignController.php CHANGED
@@ -7,5 +7,76 @@ class Webpushnotification_Pushassist_Adminhtml_Pushassist_CampaignController ext
7
  $this->renderLayout();
8
  }
9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10
 
11
  }
7
  $this->renderLayout();
8
  }
9
 
10
+ public function createcampaignAction(){
11
+
12
+ $post = $this->getRequest()->getPost();
13
+
14
+ if(isset($_FILES['fileupload']['name']) && $_FILES['fileupload']['name'] != '') {
15
+ $baseurl=Mage::getBaseUrl( Mage_Core_Model_Store::URL_TYPE_WEB, true );
16
+ $uploader = new Varien_File_Uploader('fileupload');
17
+ $uploader->setAllowedExtensions(array('jpg','jpeg','gif','png'));
18
+ $uploader->setAllowRenameFiles(false);
19
+ $uploader->setFilesDispersion(false);
20
+ $random_digit=rand(0000,9999);
21
+ $ext = substr($_FILES['fileupload']['name'], strrpos($_FILES['fileupload']['name'], '.') + 1);
22
+ $new_file_name = 'cmp' . time() . '.' . $ext;
23
+ //$new_file_name=$random_digit.$_FILES['fileupload']['name'];
24
+ $path = Mage::getBaseDir('media').DS.'pushassist'.DS.'campaign'.DS;
25
+ $uploader->save($path, $new_file_name);
26
+ $post['fileupload'] = 'pushassist'.DS.'campaign'.$new_file_name;
27
+ $full_image_path=$baseurl.'media/pushassist/campaign/'.$new_file_name;
28
+ }else{
29
+ $full_image_path='';
30
+ }
31
+
32
+ $response_array = array("campaign" => array(
33
+ "title" => $post['title'],
34
+ "message" => $post['message'],
35
+ "redirect_url" => $post['url'],
36
+ "timezone"=>$post['campaigndate'],
37
+ "image" => $full_image_path)
38
+ );
39
+
40
+ if(isset($post['is_utm_show'])){
41
+ if($post['is_utm_show']==1){
42
+
43
+ $response_array['utm_params'] =array("utm_source" => $post['utm_source'], // optional
44
+ "utm_medium" => $post['utm_medium'],
45
+ "utm_campaign" => $post['utm_campaign']);
46
+
47
+ }
48
+ }
49
+
50
+ if(!empty($post['segment'])){
51
+ $response_array['segments'] =$post['segment'];
52
+ }
53
+
54
+ $result_array = Mage::helper('pushassist')->add_campaigns($response_array);
55
+ if($result_array['status'] == 'Success'){
56
+ $message = $this->__($result_array['response_message']);
57
+ Mage::getSingleton('adminhtml/session')->addSuccess($message);
58
+ $this->_redirect('*/pushassist_campaign/index');
59
+
60
+
61
+ } else if($result_array['status'] == 'Error') {
62
+
63
+ $message = $this->__($result_array['error_message']);
64
+ Mage::getSingleton('adminhtml/session')->addError($message);
65
+ $this->_redirect('*/*/');
66
+ } else if($result_array['error'] != '') {
67
+
68
+ $message = $this->__($result_array['error']);
69
+ Mage::getSingleton('adminhtml/session')->addError($message);
70
+ $this->_redirect('*/*/');
71
+ }
72
+
73
+ else {
74
+ $message = $this->__($result_array['errors']);
75
+ Mage::getSingleton('adminhtml/session')->addError($message);
76
+ $this->_redirect('*/*/');
77
+
78
+ }
79
+
80
+ }
81
 
82
  }
app/code/community/Webpushnotification/Pushassist/controllers/Adminhtml/Pushassist/NotificationsendController.php CHANGED
@@ -19,7 +19,9 @@ class Webpushnotification_Pushassist_Adminhtml_Pushassist_NotificationsendContro
19
  $uploader->setAllowRenameFiles(false);
20
  $uploader->setFilesDispersion(false);
21
  $random_digit=rand(0000,9999);
22
- $new_file_name=$random_digit.$_FILES['fileupload']['name'];
 
 
23
  $path = Mage::getBaseDir('media').DS.'pushassist'.DS;
24
  $uploader->save($path, $new_file_name);
25
  $post['fileupload'] = 'pushassist'.DS.$new_file_name;
@@ -31,7 +33,7 @@ class Webpushnotification_Pushassist_Adminhtml_Pushassist_NotificationsendContro
31
 
32
 
33
  $response_array = array("notification" => array(
34
- "siteurl" => Mage::getBaseUrl(),
35
  "title" => $post['title'],
36
  "message" => $post['message'],
37
  "redirect_url" => $post['url'],
19
  $uploader->setAllowRenameFiles(false);
20
  $uploader->setFilesDispersion(false);
21
  $random_digit=rand(0000,9999);
22
+ $ext = substr($_FILES['fileupload']['name'], strrpos($_FILES['fileupload']['name'], '.') + 1);
23
+ $new_file_name = 'webpush' . time() . '.' . $ext;
24
+ //$new_file_name=$random_digit.$_FILES['fileupload']['name'];
25
  $path = Mage::getBaseDir('media').DS.'pushassist'.DS;
26
  $uploader->save($path, $new_file_name);
27
  $post['fileupload'] = 'pushassist'.DS.$new_file_name;
33
 
34
 
35
  $response_array = array("notification" => array(
36
+ //"siteurl" => Mage::getBaseUrl(),
37
  "title" => $post['title'],
38
  "message" => $post['message'],
39
  "redirect_url" => $post['url'],
app/code/community/Webpushnotification/Pushassist/controllers/Adminhtml/Pushassist/SettingsController.php CHANGED
@@ -13,22 +13,35 @@ class Webpushnotification_Pushassist_Adminhtml_Pushassist_SettingsController ext
13
  if($post){
14
 
15
  if(isset($_FILES['fileupload']['name']) && $_FILES['fileupload']['name'] != '') {
16
- $baseurl=Mage::getBaseUrl( Mage_Core_Model_Store::URL_TYPE_WEB, true );
 
17
  $uploader = new Varien_File_Uploader('fileupload');
18
  $uploader->setAllowedExtensions(array('jpg','jpeg','gif','png'));
19
  $uploader->setAllowRenameFiles(false);
20
  $uploader->setFilesDispersion(false);
21
  $random_digit=rand(0000,9999);
22
- $new_file_name=$random_digit.$_FILES['fileupload']['name'];
 
 
23
  $path = Mage::getBaseDir('media').DS.'pushassist'.DS.'site'.DS;
24
  $uploader->save($path, $new_file_name);
25
  $post['fileupload'] = 'pushassist'.DS.$new_file_name;
26
- $full_image_path=$baseurl.'media/pushassist/site/'.$new_file_name;
 
 
 
 
 
 
 
 
 
 
27
  }else{
 
28
  $full_image_path='';
29
  }
30
 
31
-
32
  $response_array = array("templatesetting" => array("interval_time" => $post['pushassist_timeinterval'],
33
  "opt_in_title" => trim($post['pushassist_opt_in_title']),
34
  "opt_in_subtitle" => trim($post['pushassist_opt_in_subtitle']),
@@ -38,6 +51,7 @@ class Webpushnotification_Pushassist_Adminhtml_Pushassist_SettingsController ext
38
  "location" => $post['psa_template_location'],
39
  "image_data" => $full_image_path, // read image file & pass image data
40
  "image_name" => trim($new_file_name),
 
41
  "child_window_title" => trim($post['pushassist_child_window_title']),
42
  "child_window_message" => trim($post['pushassist_child_window_message']),
43
  "notification_title" => trim($post['pushassist_setting_title']),
@@ -45,6 +59,7 @@ class Webpushnotification_Pushassist_Adminhtml_Pushassist_SettingsController ext
45
  "redirect_url" => trim($post['pushassist_redirect_url']))
46
  );
47
 
 
48
  $response = Mage::helper('pushassist')->settings($response_array);
49
 
50
  if($response['status'] == 'Success'){
13
  if($post){
14
 
15
  if(isset($_FILES['fileupload']['name']) && $_FILES['fileupload']['name'] != '') {
16
+ if($_FILES['fileupload']['size'] < 5000){
17
+ $baseurl=Mage::getBaseUrl( Mage_Core_Model_Store::URL_TYPE_WEB, true );
18
  $uploader = new Varien_File_Uploader('fileupload');
19
  $uploader->setAllowedExtensions(array('jpg','jpeg','gif','png'));
20
  $uploader->setAllowRenameFiles(false);
21
  $uploader->setFilesDispersion(false);
22
  $random_digit=rand(0000,9999);
23
+ $ext = substr($_FILES['fileupload']['name'], strrpos($_FILES['fileupload']['name'], '.') + 1);
24
+ $new_file_name = time() . '.' . $ext;
25
+ //$new_file_name=$random_digit.$_FILES['fileupload']['name'];
26
  $path = Mage::getBaseDir('media').DS.'pushassist'.DS.'site'.DS;
27
  $uploader->save($path, $new_file_name);
28
  $post['fileupload'] = 'pushassist'.DS.$new_file_name;
29
+ //$full_image_path=$baseurl.'media/pushassist/site/'.$new_file_name;
30
+ $full_image_path=base64_encode(file_get_contents($path.$new_file_name));
31
+
32
+
33
+ }else{
34
+ $sizemessage='Image Size must be exactly 250x250px.';
35
+ Mage::getSingleton('adminhtml/session')->addError($sizemessage);
36
+ $this->_redirect('*/*/');
37
+ return;
38
+
39
+ }
40
  }else{
41
+ $new_file_name='';
42
  $full_image_path='';
43
  }
44
 
 
45
  $response_array = array("templatesetting" => array("interval_time" => $post['pushassist_timeinterval'],
46
  "opt_in_title" => trim($post['pushassist_opt_in_title']),
47
  "opt_in_subtitle" => trim($post['pushassist_opt_in_subtitle']),
51
  "location" => $post['psa_template_location'],
52
  "image_data" => $full_image_path, // read image file & pass image data
53
  "image_name" => trim($new_file_name),
54
+ "child_window_text" => trim($post['pushassist_child_window_text']),
55
  "child_window_title" => trim($post['pushassist_child_window_title']),
56
  "child_window_message" => trim($post['pushassist_child_window_message']),
57
  "notification_title" => trim($post['pushassist_setting_title']),
59
  "redirect_url" => trim($post['pushassist_redirect_url']))
60
  );
61
 
62
+
63
  $response = Mage::helper('pushassist')->settings($response_array);
64
 
65
  if($response['status'] == 'Success'){
app/code/community/Webpushnotification/Pushassist/etc/adminhtml.xml ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--<?xml version="1.0"?>
2
+ <config>
3
+ <acl>
4
+ <resources>
5
+ <admin>
6
+ <children>
7
+ <system>
8
+ <children>
9
+ <config>
10
+ <children>
11
+ <pushassistsection translate="title" module="pushassist">
12
+ <title>Setting Section</title>
13
+ <sort_order>0</sort_order>
14
+ </pushassistsection>
15
+ </children>
16
+ </config>
17
+ </children>
18
+ </system>
19
+ </children>
20
+ </admin>
21
+ </resources>
22
+ </acl>
23
+ </config>-->
app/code/community/Webpushnotification/Pushassist/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <Webpushnotification_Pushassist>
5
- <version>1.0.4</version>
6
  </Webpushnotification_Pushassist>
7
  </modules>
8
  <global>
@@ -11,6 +11,12 @@
11
  <class>Webpushnotification_Pushassist_Helper</class>
12
  </pushassist>
13
  </helpers>
 
 
 
 
 
 
14
  <blocks>
15
  <pushassist>
16
  <class>Webpushnotification_Pushassist_Block</class>
@@ -21,7 +27,17 @@
21
  </rewrite>
22
  </googleanalytics>
23
  </blocks>
24
-
 
 
 
 
 
 
 
 
 
 
25
  </global>
26
  <admin>
27
  <routers>
2
  <config>
3
  <modules>
4
  <Webpushnotification_Pushassist>
5
+ <version>1.0.5</version>
6
  </Webpushnotification_Pushassist>
7
  </modules>
8
  <global>
11
  <class>Webpushnotification_Pushassist_Helper</class>
12
  </pushassist>
13
  </helpers>
14
+ <models>
15
+ <pushassist>
16
+ <class>Webpushnotification_Pushassist_Model</class>
17
+ </pushassist>
18
+
19
+ </models>
20
  <blocks>
21
  <pushassist>
22
  <class>Webpushnotification_Pushassist_Block</class>
27
  </rewrite>
28
  </googleanalytics>
29
  </blocks>
30
+ <events>
31
+ <admin_system_config_changed_section_pushassistsection>
32
+ <observers>
33
+ <notification_observer>
34
+ <type>singleton</type>
35
+ <class>Webpushnotification_Pushassist_Model_Observer</class>
36
+ <method>handle_adminSystemConfigChangedSection</method>
37
+ </notification_observer>
38
+ </observers>
39
+ </admin_system_config_changed_section_pushassistsection>
40
+ </events>
41
  </global>
42
  <admin>
43
  <routers>
app/code/community/Webpushnotification/Pushassist/etc/system.xml ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--<?xml version="1.0"?>
2
+ <config>
3
+ <tabs>
4
+ <pushassisttab translate="label" module="pushassist">
5
+ <label>PushAssist</label>
6
+ <sort_order>250</sort_order>
7
+ </pushassisttab>
8
+ </tabs>
9
+ <sections>
10
+ <pushassistsection translate="label" module="pushassist">
11
+ <label>Settings</label>
12
+ <tab>pushassisttab</tab>
13
+ <frontend_type>text</frontend_type>
14
+ <sort_order>0</sort_order>
15
+ <show_in_default>1</show_in_default>
16
+ <show_in_website>1</show_in_website>
17
+ <show_in_store>1</show_in_store>
18
+ <groups>
19
+ <general translate="label">
20
+ <label>General</label>
21
+ <frontend_type>text</frontend_type>
22
+ <sort_order>0</sort_order>
23
+ <show_in_default>1</show_in_default>
24
+ <show_in_website>1</show_in_website>
25
+ <show_in_store>1</show_in_store>
26
+ <fields>
27
+ <apikey translate="label">
28
+ <label>API Key</label>
29
+ <frontend_type>text</frontend_type>
30
+ <sort_order>0</sort_order>
31
+ <show_in_default>1</show_in_default>
32
+ <show_in_website>1</show_in_website>
33
+ <show_in_store>1</show_in_store>
34
+ </apikey>
35
+ <secretkey translate="label">
36
+ <label>Secret Key</label>
37
+ <frontend_type>text</frontend_type>
38
+ <sort_order>1</sort_order>
39
+ <show_in_default>1</show_in_default>
40
+ <show_in_website>1</show_in_website>
41
+ <show_in_store>1</show_in_store>
42
+
43
+ </secretkey>
44
+ </fields>
45
+ </general>
46
+ </groups>
47
+ </pushassistsection>
48
+ </sections>
49
+ </config>-->
app/design/adminhtml/default/default/layout/pushassist.xml CHANGED
@@ -61,6 +61,7 @@
61
  <adminhtml_pushassist_campaign_index>
62
  <reference name="head">
63
  <action method="addItem"><type>skin_css</type><name>pushassist/content_base.css</name><params/></action>
 
64
  </reference>
65
  <reference name="content">
66
  <block type="pushassist/adminhtml_campaign" name="campaign" template="pushassist/campaign.phtml"/>
61
  <adminhtml_pushassist_campaign_index>
62
  <reference name="head">
63
  <action method="addItem"><type>skin_css</type><name>pushassist/content_base.css</name><params/></action>
64
+ <action method="addJs"><script>pushassist/jquery.min.js</script></action>
65
  </reference>
66
  <reference name="content">
67
  <block type="pushassist/adminhtml_campaign" name="campaign" template="pushassist/campaign.phtml"/>
app/design/adminhtml/default/default/template/pushassist/campaign.phtml CHANGED
@@ -3,12 +3,13 @@ $get_campaigns = Mage::helper('pushassist')->get_campaigns();
3
  $check_api_key=Mage::app()->getStore()->getConfig('pushassistsection/general/apikey');
4
  $check_secret_key=Mage::app()->getStore()->getConfig('pushassistsection/general/secretkey');
5
  $account_response = Mage::helper('pushassist')->get_account_details();
 
6
  if(isset($account_response['account_name'])){
7
  $account_url='https://'.$account_response['account_name'].'.pushassist.com/dashboard/';
8
  }
9
  if($check_api_key!='' && $check_secret_key != '' && (!isset($account_response['error'] )) && $account_response ) {
10
- if( count($get_campaigns) > 0){
11
- //print_r($get_segement);
12
  ?>
13
  <div id="Psidebar" >
14
  <ul>
@@ -23,6 +24,7 @@ if( count($get_campaigns) > 0){
23
  <li><a href="<?php echo $this->getUrl('*/pushassist_campaign'); ?>"><?php echo $this->__('Campaigns')?></a></li>
24
  </ul>
25
  </div>
 
26
  <!-- Content Start -->
27
  <div id="pushassist" class="content dashboard clearfix">
28
  <!-- Start Page Header -->
@@ -36,34 +38,298 @@ if( count($get_campaigns) > 0){
36
 
37
 
38
  <!-- Project Stats Start -->
39
- <div class="col-md-6" style="width:54%">
40
- <div class="panel panel-default">
41
-
42
- <div class="panel-body">
43
-
44
- <p><strong><?php echo $this->__('Campaigns');?></strong></p>
45
- <p class="margin-b-20">
46
- <?php echo $this->__('Following screenshot shows how you can create and schedule a campaign.');?>
47
- <strong><?php echo $this->__('This feature is available in premium plans.');?> </strong> </p>
48
- <p class="align-center margin-b-25">
49
- <a href="<?php echo $account_url;?>" target="_blank" class="btn btn-default margin-t-0"><?php echo $this->__('Upgrade to Premium');?></a>
50
- </p>
51
- <div class="margin-t-15 image_wrapper">
52
-
53
- <img src="<?php echo $this->getSkinUrl('pushassist/campaign.png') ?>" alt="Campaign Notification">
54
- </div>
55
-
56
- </div>
57
- </div>
58
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
59
  <!-- Project Stats End -->
60
  </div>
61
  <!-- Container End -->
62
  </div>
63
  <!-- Content End -->
64
- <?php }else{
65
- echo $this->__('No result found.');
66
- }
67
  }else{
68
  Mage::app()->getResponse()->setRedirect(Mage::helper("adminhtml")->getUrl("adminhtml/pushassist_createaccount/index/"));
 
 
69
  } ?>
3
  $check_api_key=Mage::app()->getStore()->getConfig('pushassistsection/general/apikey');
4
  $check_secret_key=Mage::app()->getStore()->getConfig('pushassistsection/general/secretkey');
5
  $account_response = Mage::helper('pushassist')->get_account_details();
6
+
7
  if(isset($account_response['account_name'])){
8
  $account_url='https://'.$account_response['account_name'].'.pushassist.com/dashboard/';
9
  }
10
  if($check_api_key!='' && $check_secret_key != '' && (!isset($account_response['error'] )) && $account_response ) {
11
+
12
+
13
  ?>
14
  <div id="Psidebar" >
15
  <ul>
24
  <li><a href="<?php echo $this->getUrl('*/pushassist_campaign'); ?>"><?php echo $this->__('Campaigns')?></a></li>
25
  </ul>
26
  </div>
27
+ <?php echo $this->getLayout()->createBlock('core/html_calendar')->setTemplate('page/js/calendar.phtml')->toHtml();?>
28
  <!-- Content Start -->
29
  <div id="pushassist" class="content dashboard clearfix">
30
  <!-- Start Page Header -->
38
 
39
 
40
  <!-- Project Stats Start -->
41
+
42
+ <?php if($account_response['planType']=='Free'){?>
43
+ <div class="col-md-6" style="width:54%">
44
+ <div class="panel panel-default">
45
+ <div class="panel-body">
46
+
47
+ <p><strong><?php echo $this->__('Campaigns');?></strong></p>
48
+ <p class="margin-b-20">
49
+ <?php echo $this->__('Following screenshot shows how you can create and schedule a campaign.');?>
50
+ <strong><?php echo $this->__('This feature is available in premium plans.');?> </strong> </p>
51
+ <p class="align-center margin-b-25">
52
+ <a href="<?php echo $account_url;?>" target="_blank" class="btn btn-default margin-t-0"><?php echo $this->__('Upgrade to Premium');?></a>
53
+ </p>
54
+ <div class="margin-t-15 image_wrapper">
55
+
56
+ <img src="<?php echo $this->getSkinUrl('pushassist/campaign.png') ?>" alt="Campaign Notification">
57
+ </div>
58
+
59
+ </div>
60
+ </div>
61
+ </div>
62
+ <?php } ?>
63
+ <?php if($account_response['planType']=='Paid'){ ?>
64
+ <div class="col-md-6">
65
+ <div class="panel panel-default">
66
+ <div class="panel-body">
67
+ <form action="<?php echo $this->getUrl('*/*/createcampaign'); ?>" method="post" name="campaign" enctype='multipart/form-data' >
68
+ <input name="form_key" type="hidden" value="<?php echo Mage::getSingleton('core/session')->getFormKey() ?>" />
69
+ <div class="form-group">
70
+ <label class="col-sm-3 control-label form-label"><?php echo $this->__('Campaign Title')?></label>
71
+ <div class="col-sm-9">
72
+ <input type="text" class="form-control" id="title" name="title" placeholder="Campaign Title" maxlength="77" required="required" />
73
+ <span class="pull-right"><?php echo $this->__('Limit 77 Characters')?></span>
74
+ </div>
75
+ </div>
76
+ <div class="form-group">
77
+ <label class="col-sm-3 control-label form-label"><?php echo $this->__('Campaign Message')?></label>
78
+ <div class="col-sm-9">
79
+ <textarea class="form-control" rows="2" name="message" id="message" placeholder="Campaign Message" maxlength="138" required="required" style="resize: none"></textarea>
80
+ <span class="pull-right"><?php echo $this->__('Limit 138 Characters')?></span>
81
+ </div>
82
+ </div>
83
+ <div class="form-group">
84
+ <label class="col-sm-3 control-label form-label"><?php echo $this->__('Campaign URL')?></label>
85
+ <div class="col-sm-9 margin-b-15">
86
+ <input type="url" maxlength="250" placeholder="Campaign URL" name="url" id="url" class="form-control" >
87
+ </div>
88
+ </div>
89
+ <div class="form-group">
90
+ <label class="col-sm-3 control-label form-label">Campaign Date</label>
91
+
92
+ <div class="col-sm-9 input-group date" form_datetime id="form_datetime" data-date="" data-link-field="date">
93
+ <input size="20" type="text" name="campaigndate" value="" id="campaigndate"/>
94
+
95
+
96
+ <img title="Select date" id="cal_date_trig_campaign" src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN) . 'adminhtml/default/default/images/grid-cal.gif'; ?>" class="v-middle" style="width:14px;height:14px;"/>
97
+ </div>
98
+
99
+ </div>
100
+ <div class="form-group margin-b-0">
101
+ <label for="focusedinput" class="col-sm-3 control-label form-label"><?php echo $this->__('Campaign Logo')?></label>
102
+ <div class="col-sm-9">
103
+ <span class="btn btn-success fileinput-button margin-b-10">
104
+ <span><?php echo $this->__('Campaign Logo')?>...</span>
105
+ <input id="fileupload" type="file" name="fileupload" />
106
+ </span>
107
+ <span class="clearfix"><?php echo $this->__('Image size must be exactly 250x250px.')?></span>
108
+ <!-- The global progress bar -->
109
+ <div id="progress" class="progress">
110
+ <div class="progress-bar progress-bar-success"></div>
111
+ </div>
112
+ </div>
113
+ </div>
114
+ <div class="form-group">
115
+ <label class="col-sm-offset-3 control-label form-label">
116
+ <input type="checkbox" value="1" name="is_utm_show" id="is_utm_show" />
117
+ <label class="form-label checkbox_title margin-l-10"><?php echo $this->__('Add UTM Parameters')?></label>
118
+ </label>
119
+ </div>
120
+ <div class="form-group" id="utm_parameter_div" style="display: none;">
121
+ <label class="col-sm-3 control-label form-label"><?php echo $this->__('UTM Source')?></label>
122
+ <div class="col-sm-9 margin-b-15">
123
+ <input type="text" class="form-control" id="utm_source" name="utm_source" value="pushassist" placeholder="Enter UTM Source" maxlength="45" required="required" />
124
+ <span class="pull-right"><?php echo $this->__('Limit 45 Characters')?></span>
125
+ </div>
126
+
127
+ <label class="col-sm-3 control-label form-label"><?php echo $this->__('UTM Medium')?></label>
128
+ <div class="col-sm-9 margin-b-15">
129
+ <input type="text" class="form-control" name="utm_medium" id="utm_medium" value="pushassist_notification" placeholder="Enter UTM Medium" maxlength="73" required="required" />
130
+ <span class="pull-right"><?php echo $this->__('Limit 73 Characters')?></span>
131
+ </div>
132
+
133
+ <label class="col-sm-3 control-label form-label"><?php echo $this->__('UTM Campaign')?></label>
134
+ <div class="col-sm-9 margin-b-15">
135
+ <input type="text" class="form-control" name="utm_campaign" id="utm_campaign" value="pushassist" placeholder="Enter UTM Campaign" maxlength="500" required="required" />
136
+ <span class="pull-right"><?php echo $this->__('Limit 500 Characters')?></span>
137
+ </div>
138
+ <!-- <input type="hidden" id="campaign_id" name="campaign_id" value="" />
139
+ <input type="hidden" id="status" name="status" value="" />
140
+ <input type="hidden" id="notification_logo" name="notification_logo" />
141
+ <input type="hidden" id="cmp_status" name="cmp_status" value="0" />
142
+ <input type="hidden" id="date" name="date" value="" />
143
+ <input type="hidden" id="is_draft" name="is_draft" value="1" /> -->
144
+ </div>
145
+ <div class="form-group">
146
+ <label class="col-sm-3 control-label form-label"><?php echo $this->__('Segment')?></label>
147
+ <div class="col-sm-9 dropdown_padding">
148
+ <select class="col-sm-12" id="segment" name="segment[]" multiple>
149
+ <?php $get_segment = Mage::helper('pushassist')->get_segments();
150
+ if(count($get_segment) > 0){
151
+ foreach($get_segment as $get_segment_list){
152
+ ?>
153
+ <option value="<?php echo $get_segment_list['id'];?>"><?php echo $get_segment_list['name'];?></option>
154
+ <?php } } else{
155
+ ?>
156
+ <option value=""><?php echo $this->__('No Segment')?></option>
157
+ <?php } ?>
158
+
159
+ </select>
160
+ </div>
161
+ </div>
162
+ <div class="form-group">
163
+ <div class="col-sm-offset-3 col-sm-1 col-xs-3">
164
+ <button type="submit" class="btn btn-default"><?php echo $this->__('Schedule')?></button>
165
+ </div>
166
+ </div>
167
+ </form>
168
+ </div>
169
+ </div>
170
+ </div>
171
+ <div class="col-md-6 dummy-notification shadow panel panel-default">
172
+ <p class="h4 pb15">Preview</p>
173
+ <div class="widget shadow dummy-notification-inner-wrapper">
174
+ <div class="wrapper">
175
+ <div class="img_wrapper pull-left">
176
+ <img class="img-responsive" src="<?php echo $account_response['site_image'];?>" id="pushassist_preview_logo">
177
+ </div>
178
+ <div class="text_wrapper pull-left">
179
+ <div class="title">
180
+ <div id="notification_title" class="title_txt pull-left"><?php echo $this->__('Campaign Title')?></div>
181
+ <div class="closer pull-right">x</div>
182
+ </div>
183
+ <div id="notification_message" class="message"><?php echo $this->__('Campaign Body')?></div>
184
+ <div class="domain">
185
+ <div class="domain"><?php echo $account_response['account_name'];?>.pushassist.com</div>
186
+ </div>
187
+ </div>
188
+ </div>
189
+ </div>
190
+ <div class="redirect_url">
191
+ <p class="h5" id="redirect_url" name="redirect_url"><?php echo $this->__('URL to open when user clicks the notification')?>:</p>
192
+ </div>
193
+ </div>
194
+ <script language="javascript">
195
+
196
+ Calendar.setup({
197
+ inputField : 'campaigndate',
198
+ ifFormat : '%Y-%m-%e %H:%M:%S',
199
+ button : 'cal_date_trig_campaign',
200
+ align : 'Bl',
201
+ singleClick : true
202
+ });
203
+ jQuery.noConflict();
204
+ jQuery(document).ready(function() {
205
+ "use strict";
206
+ var $url = "";
207
+
208
+ jQuery("#title").keyup(function () {
209
+
210
+ title = jQuery('#title').val();
211
+
212
+ if (title != "") {
213
+ jQuery('#notification_title').text(title);
214
+ }
215
+ else {
216
+ jQuery('#notification_title').text('<?php echo $this->__('Campaign Title')?>');
217
+ }
218
+ });
219
+
220
+ jQuery("#message").keyup(function () {
221
+
222
+ message = jQuery('#message').val();
223
+
224
+ if (message != "") {
225
+ jQuery('#notification_message').text(message);
226
+ }
227
+ else {
228
+
229
+ jQuery('#notification_message').text('<?php echo $this->__('Campaign Body')?>');
230
+ }
231
+ });
232
+
233
+ jQuery("#url,#utm_medium,#utm_source, #utm_campaign").keyup(function () {
234
+
235
+ $url = jQuery('#url').val();
236
+
237
+ if ($url != "" && jQuery('#is_utm_show').is(':checked')) {
238
+
239
+ jQuery('#redirect_url').text($url + "?utm_source=" + jQuery('#utm_source').val() + "&utm_medium=" + jQuery('#utm_medium').val() + "&utm_campaign=" + jQuery('#utm_campaign').val());
240
+
241
+ } else if ($url != "") {
242
+
243
+ jQuery('#redirect_url').text($url);
244
+ }
245
+ else {
246
+ jQuery('#redirect_url').text('<?php echo $this->__('URL to open when user clicks the notification')?>:');
247
+ }
248
+ });
249
+
250
+
251
+
252
+ jQuery("#title").blur(function () {
253
+ title = jQuery('#title').val();
254
+
255
+ if (title != "") {
256
+ jQuery('#notification_title').text(title);
257
+ }
258
+ else {
259
+ jQuery('#notification_title').text('<?php echo $this->__('Campaign Title')?>');
260
+ }
261
+ });
262
+
263
+ jQuery("#message").blur(function () {
264
+
265
+ message = jQuery('#message').val();
266
+
267
+ if (message != "") {
268
+ jQuery('#notification_message').text(message);
269
+ }
270
+ else {
271
+
272
+ jQuery('#notification_message').text('<?php echo $this->__('Campaign Body')?>');
273
+ }
274
+ });
275
+
276
+ jQuery("#url").blur(function () {
277
+
278
+ $url = jQuery('#url').val();
279
+
280
+ if ($url != "" && jQuery('#is_utm_show').is(':checked')) {
281
+
282
+ jQuery('#redirect_url').text($url + "?utm_source=" + jQuery('#utm_source').val() + "&utm_medium=" + jQuery('#utm_medium').val() + "&utm_campaign=" + jQuery('#utm_campaign').val());
283
+
284
+ } else if ($url != "") {
285
+
286
+ jQuery('#redirect_url').text($url);
287
+ }
288
+ else {
289
+ jQuery('#redirect_url').text('<?php echo $this->__('URL to open when user clicks the notification')?>:');
290
+ }
291
+ });
292
+
293
+ jQuery("#is_utm_show").on('click', function () {
294
+
295
+ if (jQuery('#is_utm_show').is(':checked')) {
296
+
297
+
298
+ jQuery('#utm_parameter_div').show('slow');
299
+
300
+ if ($url == "") {
301
+
302
+ jQuery('#redirect_url').text('<?php echo $this->__('URL to open when user clicks the notification')?>:');
303
+ } else {
304
+
305
+ jQuery('#redirect_url').text($url + "?utm_source=" + jQuery('#utm_source').val() + "&utm_medium=" + jQuery('#utm_medium').val() + "&utm_campaign=" + jQuery('#utm_campaign').val());
306
+ }
307
+
308
+ } else {
309
+
310
+ jQuery('#utm_parameter_div').hide('slow');
311
+
312
+ if ($url == "") {
313
+
314
+ jQuery('#redirect_url').text('<?php echo $this->__('URL to open when user clicks the notification')?>:');
315
+ } else {
316
+
317
+ jQuery('#redirect_url').text($url);
318
+ }
319
+ }
320
+ });
321
+ });
322
+ </script>
323
+ <?php } ?>
324
+
325
  <!-- Project Stats End -->
326
  </div>
327
  <!-- Container End -->
328
  </div>
329
  <!-- Content End -->
330
+ <?php
 
 
331
  }else{
332
  Mage::app()->getResponse()->setRedirect(Mage::helper("adminhtml")->getUrl("adminhtml/pushassist_createaccount/index/"));
333
+ //Mage::app()->getResponse()->setRedirect(Mage::helper("adminhtml")->getUrl("adminhtml/system_config/edit/section/pushassistsection"));
334
+
335
  } ?>
app/design/adminhtml/default/default/template/pushassist/create_account.phtml CHANGED
@@ -147,7 +147,7 @@ $allsites='https://'.$account_response['account_name'].'.pushassist.com/allsites
147
  </div>
148
  </div>
149
  </div>
150
- <!-- Validation Response -->
151
  <div class="response-holder"></div>
152
  </form>
153
  </div>
147
  </div>
148
  </div>
149
  </div>
150
+
151
  <div class="response-holder"></div>
152
  </form>
153
  </div>
app/design/adminhtml/default/default/template/pushassist/sendnotification.phtml CHANGED
@@ -45,15 +45,15 @@ if($check_api_key!='' && $check_secret_key != '' && (!isset($account_response['e
45
  <div class="form-group">
46
  <label class="col-sm-3 control-label form-label"><?php echo $this->__('Notification Title')?></label>
47
  <div class="col-sm-9">
48
- <input type="text" class="form-control" id="title" name="title" placeholder="Notification Title" maxlength="45" required="required" />
49
- <span class="pull-right"><?php echo $this->__('Limit 45 Characters')?></span>
50
  </div>
51
  </div>
52
  <div class="form-group">
53
  <label class="col-sm-3 control-label form-label"><?php echo $this->__('Notification Message')?></label>
54
  <div class="col-sm-9">
55
- <textarea class="form-control" rows="2" name="message" id="message" placeholder="Notification Message" maxlength="73" required="required" style="resize: none"></textarea>
56
- <span class="pull-right"><?php echo $this->__('Limit 73 Characters')?></span>
57
  </div>
58
  </div>
59
  <div class="form-group">
45
  <div class="form-group">
46
  <label class="col-sm-3 control-label form-label"><?php echo $this->__('Notification Title')?></label>
47
  <div class="col-sm-9">
48
+ <input type="text" class="form-control" id="title" name="title" placeholder="Notification Title" maxlength="77" required="required" />
49
+ <span class="pull-right"><?php echo $this->__('Limit 77 Characters')?></span>
50
  </div>
51
  </div>
52
  <div class="form-group">
53
  <label class="col-sm-3 control-label form-label"><?php echo $this->__('Notification Message')?></label>
54
  <div class="col-sm-9">
55
+ <textarea class="form-control" rows="2" name="message" id="message" placeholder="Notification Message" maxlength="138" required="required" style="resize: none"></textarea>
56
+ <span class="pull-right"><?php echo $this->__('Limit 138 Characters')?></span>
57
  </div>
58
  </div>
59
  <div class="form-group">
app/design/adminhtml/default/default/template/pushassist/settings.phtml CHANGED
@@ -188,6 +188,15 @@ if($check_api_key!='' && $check_secret_key != '' && (!isset($account_response['e
188
 
189
  <h5 class="col-sm-offset-2 title margin-t-0 margin-b-20" style="padding-top:8px;">
190
  <?php echo $this->__('Notification Subscription Setting')?></h5>
 
 
 
 
 
 
 
 
 
191
 
192
  <div class="form-group">
193
  <label class="col-sm-2 control-label form-label"><?php echo $this->__('Opt-In Title')?></label>
@@ -215,7 +224,8 @@ if($check_api_key!='' && $check_secret_key != '' && (!isset($account_response['e
215
  <label class="col-sm-2 control-label form-label"><?php echo $this->__('Notification Title')?></label>
216
  <div class="col-sm-9">
217
  <input type="text" class="form-control" name="pushassist_setting_title" id="pushassist_setting_title"
218
- value="<?php echo stripslashes($account_response['title']); ?>" placeholder="Notification Title" maxlength="36">
 
219
  </div>
220
  </div>
221
 
@@ -223,7 +233,8 @@ if($check_api_key!='' && $check_secret_key != '' && (!isset($account_response['e
223
  <label class="col-sm-2 control-label form-label"><?php echo $this->__('Notification Message')?></label>
224
  <div class="col-sm-9">
225
  <input type="text" class="form-control" name="pushassist_setting_message" id="pushassist_setting_message"
226
- value="<?php echo stripslashes($account_response['message']); ?>" placeholder="Notification Message" maxlength="99">
 
227
  </div>
228
  </div>
229
 
188
 
189
  <h5 class="col-sm-offset-2 title margin-t-0 margin-b-20" style="padding-top:8px;">
190
  <?php echo $this->__('Notification Subscription Setting')?></h5>
191
+ <div class="form-group">
192
+ <label class="col-sm-2 control-label form-label"><?php echo $this->__('Opt-In Text')?></label>
193
+ <div class="col-sm-9">
194
+ <input type="text" class="form-control" name="pushassist_child_window_text" id="pushassist_child_window_text"
195
+ value="<?php echo stripslashes($account_response['child_text']); ?>" placeholder="Would Like to Send You Push Notifications. Click Allow to receive notifications." maxlength="100" required="">
196
+ <span class="float-r">Limit 100 Characters</span>
197
+ </div>
198
+ </div>
199
+
200
 
201
  <div class="form-group">
202
  <label class="col-sm-2 control-label form-label"><?php echo $this->__('Opt-In Title')?></label>
224
  <label class="col-sm-2 control-label form-label"><?php echo $this->__('Notification Title')?></label>
225
  <div class="col-sm-9">
226
  <input type="text" class="form-control" name="pushassist_setting_title" id="pushassist_setting_title"
227
+ value="<?php echo stripslashes($account_response['title']); ?>" placeholder="Notification Title" maxlength="45">
228
+ <span class="float-r">Limit 45 Characters</span>
229
  </div>
230
  </div>
231
 
233
  <label class="col-sm-2 control-label form-label"><?php echo $this->__('Notification Message')?></label>
234
  <div class="col-sm-9">
235
  <input type="text" class="form-control" name="pushassist_setting_message" id="pushassist_setting_message"
236
+ value="<?php echo stripslashes($account_response['message']); ?>" placeholder="Notification Message" maxlength="73">
237
+ <span class="float-r">Limit 73 Characters</span>
238
  </div>
239
  </div>
240
 
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Webpushnotification_Pushassist</name>
4
- <version>1.0.4</version>
5
  <stability>stable</stability>
6
  <license uri="https://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
- <summary>Push Notification Delivery &amp;amp;amp;amp;amp;amp; Analytics for Websites and Mobile. Send Push Notifications to your customers and store visitors.</summary>
10
  <description>Quickly Send push notifications from desktop or mobile websites to your site users. Powerful APIs and tools that allow you to send, receive and track push messages. Set up trigger marketing campaigns, schedule push notification and much more. Quick 5 minutes setup to implement push notifications for ANY website.</description>
11
- <notes>Built a stable version 1.0.4</notes>
12
  <authors><author><name>PushAssist Team</name><user>PushAssist</user><email>support@pushassist.com</email></author></authors>
13
- <date>2016-07-29</date>
14
- <time>11:32:28</time>
15
- <contents><target name="magecommunity"><dir name="Webpushnotification"><dir name="Pushassist"><dir name="Block"><dir name="Adminhtml"><file name="Campaign.php" hash="df4a8dc02241f6b486ec539bc2e71370"/><file name="Createaccount.php" hash="2775e933f8b780e022fa3ff0b88b076e"/><file name="Createcampaign.php" hash="318eb9deab2bfc9a8c4cad81449aaf0f"/><file name="Createsegments.php" hash="94ef9183a9c9a56bfb3dece4c4e97fce"/><file name="Dashboard.php" hash="56e56097a9ec2421218ef8d54e8a5e36"/><file name="Notificationmain.php" hash="c5407e7f33659982ce1e12287e96b541"/><file name="Notificationsend.php" hash="c82ebd53ae7efb4c24cb168e75e8ed44"/><file name="Segments.php" hash="2b4bb8731d1ffc0509210e4b0526e247"/><file name="Settings.php" hash="4f9df0d6b916eaaf9bdaec67284740f0"/><file name="Subscribers.php" hash="7698cd83f156fac6ddea9219716508a5"/></dir><file name="Script.php" hash="75921c5e715595bd5c0eba1695338fab"/></dir><dir name="Helper"><file name="Data.php" hash="a114f5d60cb62bcd29d265c392956891"/></dir><dir name="controllers"><dir name="Adminhtml"><dir name="Pushassist"><file name="CampaignController.php" hash="e559d83bcebede0ddb1402ef694fea1f"/><file name="CampaignlistController.php" hash="693d94b5c087f2f1339ea192df4c10ab"/><file name="CreateaccountController.php" hash="800903fddaf89755ee99714fb0f7eaa3"/><file name="CreatecampaignController.php" hash="50f14a68cc26ba3fcbc55207f9612aa6"/><file name="CreatesegmentsController.php" hash="b2e45413a9bdb163d35a84896f8a2173"/><file name="DashboardController.php" hash="cbd8c12f1d2ca2072944bb80b1cd2d88"/><file name="NotificationmainController.php" hash="319b0b896ce243f64ccb7aa12f130ef0"/><file name="NotificationsendController.php" hash="87355127ebe81cf582d4122323571a34"/><file name="SegmentsController.php" hash="8d366c16f7e8817413e0492a919ce61d"/><file name="SettingsController.php" hash="2cdca98b42f4718ec4f13b25b056f5c7"/><file name="SubscribersController.php" hash="7c941c29948e69b6aabd90b44e4a63fa"/></dir></dir></dir><dir name="etc"><file name="config.xml" hash="656da11ec1ac8a23a83271b5e4426fa9"/></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="pushassist.xml" hash="96ae4097220ded547ef84af3e65b2790"/></dir><dir name="template"><dir name="pushassist"><file name="campaign.phtml" hash="727d836f47fe25948f253e2a839381d1"/><file name="create_account.phtml" hash="0766edd72d6ac30be3d364d94178fa49"/><file name="createcampaign.phtml" hash="bb9e7c5fd204edfca29221a8de1a7eac"/><file name="createsegments.phtml" hash="3453f8244da0929e0a64123a775ce2ca"/><file name="dashboard.phtml" hash="6d4132988cd2c1f826d4dbab2ddd24b9"/><file name="notification.phtml" hash="db8c2ec25f032d542c14c139018d47aa"/><file name="segments.phtml" hash="2e29052154bd79c4b3e26e6f33121099"/><file name="sendnotification.phtml" hash="6fdafcba0e0cc1952ad171aa0dba03c3"/><file name="settings.phtml" hash="3d3e547e1acb638ecc2978caf67ebc13"/><file name="subscribers.phtml" hash="dfe5e762b09c7cdb72ca55c9a0585ed4"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Webpushnotification_Pushassist.xml" hash="d32b8e99774c18aa5aab352cfdd06e96"/></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="pushassist"><file name="campaign.png" hash="fb1f5604466870a9f35dcd62eb6c562f"/><file name="content_base.css" hash="f9f106e0c8f55a97a34de8e69552e657"/><dir name="images"><file name="btn_bg.gif" hash="37c51a4d48a92da9648dcd3ca011039f"/></dir><file name="notification_setting.png" hash="8bf9fbc3ef19ab67e1da8f3849d53a9f"/><file name="pushassist_opt_in_box_setting.png" hash="79feadfc5795b25fc2cb3092272c3e95"/></dir></dir></dir></dir></target><target name="mage"><dir name="js"><dir name="pushassist"><file name="bootstrap-datetimepicker.js" hash="3476fc7070ebef66f2c3a6c1c7f3a408"/><file name="bootstrap-select.js" hash="1b4396af90dda85e5e06782133aaa443"/><file name="bootstrap.min.js" hash="8c237312864d2e4c4f03544cd4f9b195"/><file name="jquery.min.js" hash="8101d596b2b8fa35fe3a634ea342d7c3"/><file name="plugins.js" hash="d671d70560ecac1b27b328f643f76fc2"/></dir></dir></target><target name="magelocale"><dir><dir name="en_US"><file name="Webpushnotification_Pushassist.csv" hash="4cee55524c735f91e1313afd6e09c0a2"/></dir><dir name="fr_FR"><file name="Webpushnotification_Pushassist.csv" hash="f333463a98bdb3daa77102db1de6a2b8"/></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Webpushnotification_Pushassist</name>
4
+ <version>1.0.5</version>
5
  <stability>stable</stability>
6
  <license uri="https://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
+ <summary>Push Notification Delivery &amp;amp;amp;amp;amp;amp;amp; Analytics for Websites and Mobile. Send Push Notifications to your customers and store visitors.</summary>
10
  <description>Quickly Send push notifications from desktop or mobile websites to your site users. Powerful APIs and tools that allow you to send, receive and track push messages. Set up trigger marketing campaigns, schedule push notification and much more. Quick 5 minutes setup to implement push notifications for ANY website.</description>
11
+ <notes>Built a stable version 1.0.5</notes>
12
  <authors><author><name>PushAssist Team</name><user>PushAssist</user><email>support@pushassist.com</email></author></authors>
13
+ <date>2016-08-25</date>
14
+ <time>13:45:56</time>
15
+ <contents><target name="magecommunity"><dir name="Webpushnotification"><dir name="Pushassist"><dir name="Block"><dir name="Adminhtml"><file name="Campaign.php" hash="df4a8dc02241f6b486ec539bc2e71370"/><file name="Createaccount.php" hash="2775e933f8b780e022fa3ff0b88b076e"/><file name="Createcampaign.php" hash="318eb9deab2bfc9a8c4cad81449aaf0f"/><file name="Createsegments.php" hash="94ef9183a9c9a56bfb3dece4c4e97fce"/><file name="Dashboard.php" hash="56e56097a9ec2421218ef8d54e8a5e36"/><file name="Notificationmain.php" hash="c5407e7f33659982ce1e12287e96b541"/><file name="Notificationsend.php" hash="c82ebd53ae7efb4c24cb168e75e8ed44"/><file name="Segments.php" hash="2b4bb8731d1ffc0509210e4b0526e247"/><file name="Settings.php" hash="4f9df0d6b916eaaf9bdaec67284740f0"/><file name="Subscribers.php" hash="7698cd83f156fac6ddea9219716508a5"/></dir><file name="Script.php" hash="4bee85308b75357e6f3062c7d0fbf17f"/></dir><dir name="Helper"><file name="Data.php" hash="a114f5d60cb62bcd29d265c392956891"/></dir><dir name="Model"><file name="Observer.php" hash="f61d007b9e615c422972b6287deff16c"/></dir><dir name="controllers"><dir name="Adminhtml"><dir name="Pushassist"><file name="CampaignController.php" hash="d948db17d7620d0f84fcaa6e455c5b2f"/><file name="CampaignlistController.php" hash="693d94b5c087f2f1339ea192df4c10ab"/><file name="CreateaccountController.php" hash="800903fddaf89755ee99714fb0f7eaa3"/><file name="CreatecampaignController.php" hash="50f14a68cc26ba3fcbc55207f9612aa6"/><file name="CreatesegmentsController.php" hash="b2e45413a9bdb163d35a84896f8a2173"/><file name="DashboardController.php" hash="cbd8c12f1d2ca2072944bb80b1cd2d88"/><file name="NotificationmainController.php" hash="319b0b896ce243f64ccb7aa12f130ef0"/><file name="NotificationsendController.php" hash="c42f6b223dfba834827b1c4ccd5e4321"/><file name="SegmentsController.php" hash="8d366c16f7e8817413e0492a919ce61d"/><file name="SettingsController.php" hash="341b8144b2038a25fbefcf5411055e87"/><file name="SubscribersController.php" hash="7c941c29948e69b6aabd90b44e4a63fa"/></dir></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="7db3b82adfefb22f01c2c73877c2a883"/><file name="config.xml" hash="e709d584a50bbd8b4659a3a5168a6485"/><file name="system.xml" hash="ae307161f98924ac45adc981db84c75e"/></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="pushassist.xml" hash="db81fe5191c00f4fe08f50dd0004673a"/></dir><dir name="template"><dir name="pushassist"><file name="campaign.phtml" hash="35b1fe1e892823c6772261b453117fa1"/><file name="create_account.phtml" hash="5944544b8919f4e083a8c66c1952c1a9"/><file name="createcampaign.phtml" hash="bb9e7c5fd204edfca29221a8de1a7eac"/><file name="createsegments.phtml" hash="3453f8244da0929e0a64123a775ce2ca"/><file name="dashboard.phtml" hash="6d4132988cd2c1f826d4dbab2ddd24b9"/><file name="notification.phtml" hash="db8c2ec25f032d542c14c139018d47aa"/><file name="segments.phtml" hash="2e29052154bd79c4b3e26e6f33121099"/><file name="sendnotification.phtml" hash="77648f82f09ead8db242caa28018d61c"/><file name="settings.phtml" hash="ab0f73b1c3e41fcf82ea2161eb8b2d41"/><file name="subscribers.phtml" hash="dfe5e762b09c7cdb72ca55c9a0585ed4"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Webpushnotification_Pushassist.xml" hash="d32b8e99774c18aa5aab352cfdd06e96"/></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="pushassist"><file name="bootstrap-datetimepicker.min.css" hash="fa0a2cb4d62d4a578174324afdec0be6"/><file name="bootstrap-select.css" hash="71fcb49a14eaea2be04acb5fc54ebbe1"/><file name="bootstrap.min.css" hash="eedf9ee80c2faa4e1b9ab9017cdfcb88"/><file name="campaign.png" hash="fb1f5604466870a9f35dcd62eb6c562f"/><file name="content_base.css" hash="556893735586a2a335cfdc2b177ce19d"/><dir name="images"><file name="btn_bg.gif" hash="37c51a4d48a92da9648dcd3ca011039f"/></dir><dir name="imgUpload"><file name="jquery.fileupload.css" hash="2ee732f8354790746644b312b7b2df1b"/><file name="jquery.fileupload.js" hash="25360c56ade52c72edf654045580c1ce"/><file name="jquery.ui.widget.js" hash="0b44270691b4abf4e38e1a45928a3dc6"/></dir><file name="notification_setting.png" hash="8bf9fbc3ef19ab67e1da8f3849d53a9f"/><file name="pushassist_opt_in_box_setting.png" hash="79feadfc5795b25fc2cb3092272c3e95"/></dir></dir></dir></dir></target><target name="mage"><dir name="js"><dir name="pushassist"><file name="bootstrap-datetimepicker.js" hash="3476fc7070ebef66f2c3a6c1c7f3a408"/><file name="bootstrap-select.js" hash="1b4396af90dda85e5e06782133aaa443"/><file name="bootstrap.min.js" hash="8c237312864d2e4c4f03544cd4f9b195"/><file name="jquery.min.js" hash="8101d596b2b8fa35fe3a634ea342d7c3"/><file name="plugins.js" hash="d671d70560ecac1b27b328f643f76fc2"/></dir></dir></target><target name="magelocale"><dir><dir name="en_US"><file name="Webpushnotification_Pushassist.csv" hash="4cee55524c735f91e1313afd6e09c0a2"/></dir><dir name="fr_FR"><file name="Webpushnotification_Pushassist.csv" hash="f333463a98bdb3daa77102db1de6a2b8"/></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>
skin/adminhtml/default/default/pushassist/bootstrap-datetimepicker.min.css ADDED
Binary file
skin/adminhtml/default/default/pushassist/bootstrap-select.css ADDED
@@ -0,0 +1,264 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*!
2
+ * Bootstrap-select v1.6.3 (http://silviomoreto.github.io/bootstrap-select/)
3
+ *
4
+ * Copyright 2013-2014 bootstrap-select
5
+ * Licensed under MIT (https://github.com/silviomoreto/bootstrap-select/blob/master/LICENSE)
6
+ */
7
+
8
+
9
+ .bootstrap-select {
10
+ /*width: 220px\9; IE8 and below*/
11
+ width: 220px \0;
12
+ /*IE9 and below*/
13
+ }
14
+ .bootstrap-select > .btn {
15
+ width: 100%;
16
+ padding-right: 25px;
17
+ }
18
+ .error .bootstrap-select .btn {
19
+ border: 1px solid #b94a48;
20
+ }
21
+ .control-group.error .bootstrap-select .dropdown-toggle {
22
+ border-color: #b94a48;
23
+ }
24
+ .bootstrap-select.fit-width {
25
+ width: auto !important;
26
+ }
27
+ .bootstrap-select:not([class*="col-"]):not([class*="form-control"]):not(.input-group-btn) {
28
+ width: 220px;
29
+ }
30
+ .bootstrap-select .btn:focus {
31
+ outline: thin dotted #333333 !important;
32
+ outline: 0px auto -webkit-focus-ring-color !important;
33
+ outline-offset: 0px;
34
+ }
35
+ .bootstrap-select.form-control {
36
+ margin-bottom: 0;
37
+ padding: 0;
38
+ border: none;
39
+ }
40
+ .bootstrap-select.form-control:not([class*="col-"]) {
41
+ width: 100%;
42
+ }
43
+ .bootstrap-select.btn-group:not(.input-group-btn),
44
+ .bootstrap-select.btn-group[class*="col-"] {
45
+ float: none;
46
+ display: inline-block;
47
+ margin-left: 0;
48
+ }
49
+ .bootstrap-select.btn-group.dropdown-menu-right,
50
+ .bootstrap-select.btn-group[class*="col-"].dropdown-menu-right,
51
+ .row-fluid .bootstrap-select.btn-group[class*="col-"].dropdown-menu-right {
52
+ float: right;
53
+ }
54
+ .form-search .bootstrap-select.btn-group,
55
+ .form-inline .bootstrap-select.btn-group,
56
+ .form-horizontal .bootstrap-select.btn-group,
57
+ .form-group .bootstrap-select.btn-group {
58
+ margin-bottom: 0;
59
+ }
60
+ .form-group-lg .bootstrap-select.btn-group.form-control,
61
+ .form-group-sm .bootstrap-select.btn-group.form-control {
62
+ padding: 0;
63
+ }
64
+ .form-inline .bootstrap-select.btn-group .form-control {
65
+ width: 100%;
66
+ }
67
+ .input-append .bootstrap-select.btn-group {
68
+ margin-left: -1px;
69
+ }
70
+ .input-prepend .bootstrap-select.btn-group {
71
+ margin-right: -1px;
72
+ }
73
+ .bootstrap-select.btn-group > .disabled {
74
+ cursor: not-allowed;
75
+ }
76
+ .bootstrap-select.btn-group > .disabled:focus {
77
+ outline: none !important;
78
+ }
79
+ .bootstrap-select.btn-group .btn .filter-option {
80
+ display: inline-block;
81
+ overflow: hidden;
82
+ width: 100%;
83
+ text-align: left;
84
+ }
85
+ .bootstrap-select.btn-group .btn .caret {
86
+ position: absolute;
87
+ top: 50%;
88
+ right: 12px;
89
+ margin-top: -2px;
90
+ vertical-align: middle;
91
+ }
92
+ .bootstrap-select.btn-group[class*="col-"] .btn {
93
+ width: 100%;
94
+ }
95
+
96
+ .bootstrap-select .dropdown-menu small{
97
+ color: inherit;
98
+ }
99
+ .bootstrap-select.btn-group .dropdown-menu {
100
+ min-width: 100%;
101
+ z-index: 1035;
102
+ box-shadow: 0 0px 0px 2px rgba(0, 0, 0, .0.5);
103
+ -webkit-box-sizing: border-box;
104
+ -moz-box-sizing: border-box;
105
+ box-sizing: border-box;
106
+ }
107
+ .bootstrap-select.btn-group .dropdown-menu.inner {
108
+ position: static;
109
+ border: 0;
110
+ padding: 0;
111
+ margin: 0;
112
+ border-radius: 0;
113
+ -webkit-box-shadow: none;
114
+ box-shadow: none;
115
+ }
116
+ .bootstrap-select.btn-group .dropdown-menu li {
117
+ position: relative;
118
+ }
119
+ .bootstrap-select.btn-group .dropdown-menu li:not(.disabled) a:hover small,
120
+ .bootstrap-select.btn-group .dropdown-menu li:not(.disabled) a:focus small,
121
+ .bootstrap-select.btn-group .dropdown-menu li.active:not(.disabled) a small {
122
+ }
123
+ .bootstrap-select.btn-group .dropdown-menu li.disabled a {
124
+ cursor: not-allowed;
125
+ }
126
+ .bootstrap-select.btn-group .dropdown-menu li a {
127
+ cursor: pointer;
128
+ }
129
+ .bootstrap-select.btn-group .dropdown-menu li a.opt {
130
+ position: relative;
131
+ padding-left: 2.25em;
132
+ }
133
+ .bootstrap-select.btn-group .dropdown-menu li a span.check-mark {
134
+ display: none;
135
+ }
136
+ .bootstrap-select.btn-group .dropdown-menu li a span.text {
137
+ display: inline-block;
138
+ }
139
+ .bootstrap-select.btn-group .dropdown-menu li small {
140
+ padding-left: 0.5em;
141
+ }
142
+ .bootstrap-select.btn-group .dropdown-menu .notify {
143
+ position: absolute;
144
+ bottom: 5px;
145
+ width: 96%;
146
+ margin: 0 2%;
147
+ min-height: 26px;
148
+ padding: 3px 5px;
149
+ background: #f5f5f5;
150
+ border: 1px solid #e3e3e3;
151
+ -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
152
+ box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
153
+ pointer-events: none;
154
+ opacity: 0.9;
155
+ -webkit-box-sizing: border-box;
156
+ -moz-box-sizing: border-box;
157
+ box-sizing: border-box;
158
+ }
159
+ .bootstrap-select.btn-group .no-results {
160
+ padding: 3px;
161
+ background: #f5f5f5;
162
+ margin: 0 5px;
163
+ }
164
+ .bootstrap-select.btn-group.fit-width .btn .filter-option {
165
+ position: static;
166
+ }
167
+ .bootstrap-select.btn-group.fit-width .btn .caret {
168
+ position: static;
169
+ top: auto;
170
+ margin-top: -1px;
171
+ }
172
+ .bootstrap-select.btn-group.show-tick .dropdown-menu li.selected a span.check-mark {
173
+ position: absolute;
174
+ display: inline-block;
175
+ right: 15px;
176
+ margin-top: 5px;
177
+ }
178
+ .bootstrap-select.btn-group.show-tick .dropdown-menu li a span.text {
179
+ margin-right: 34px;
180
+ }
181
+ .bootstrap-select.show-menu-arrow.open > .btn {
182
+ z-index: 1035 + 1;
183
+ }
184
+ .bootstrap-select.show-menu-arrow .dropdown-toggle:before {
185
+ content: '';
186
+ border-left: 7px solid transparent;
187
+ border-right: 7px solid transparent;
188
+ border-bottom-width: 7px;
189
+ border-bottom-style: solid;
190
+ border-bottom-color: #cccccc;
191
+ border-bottom-color: rgba(204, 204, 204, 0.2);
192
+ position: absolute;
193
+ bottom: -4px;
194
+ left: 9px;
195
+ display: none;
196
+ }
197
+ .bootstrap-select.show-menu-arrow .dropdown-toggle:after {
198
+ content: '';
199
+ border-left: 6px solid transparent;
200
+ border-right: 6px solid transparent;
201
+ border-bottom: 6px solid white;
202
+ position: absolute;
203
+ bottom: -4px;
204
+ left: 10px;
205
+ display: none;
206
+ }
207
+ .bootstrap-select.show-menu-arrow.dropup .dropdown-toggle:before {
208
+ bottom: auto;
209
+ top: -3px;
210
+ border-bottom: 0;
211
+ border-top-width: 7px;
212
+ border-top-style: solid;
213
+ border-top-color: #cccccc;
214
+ border-top-color: rgba(204, 204, 204, 0.2);
215
+ }
216
+ .bootstrap-select.show-menu-arrow.dropup .dropdown-toggle:after {
217
+ bottom: auto;
218
+ top: -3px;
219
+ border-top: 6px solid white;
220
+ border-bottom: 0;
221
+ }
222
+ .bootstrap-select.show-menu-arrow.pull-right .dropdown-toggle:before {
223
+ right: 12px;
224
+ left: auto;
225
+ }
226
+ .bootstrap-select.show-menu-arrow.pull-right .dropdown-toggle:after {
227
+ right: 13px;
228
+ left: auto;
229
+ }
230
+ .bootstrap-select.show-menu-arrow.open > .dropdown-toggle:before,
231
+ .bootstrap-select.show-menu-arrow.open > .dropdown-toggle:after {
232
+ display: block;
233
+ }
234
+ .bs-searchbox,
235
+ .bs-actionsbox {
236
+ padding: 4px 8px;
237
+ }
238
+ .bs-actionsbox {
239
+ float: left;
240
+ width: 100%;
241
+ -webkit-box-sizing: border-box;
242
+ -moz-box-sizing: border-box;
243
+ box-sizing: border-box;
244
+ }
245
+ .bs-actionsbox .btn-group button {
246
+ width: 50%;
247
+ }
248
+ .bs-searchbox + .bs-actionsbox {
249
+ padding: 0 8px 4px;
250
+ }
251
+ .bs-searchbox input.form-control {
252
+ margin-bottom: 0;
253
+ width: 100%;
254
+ }
255
+ .mobile-device {
256
+ position: absolute;
257
+ top: 0;
258
+ left: 0;
259
+ display: block !important;
260
+ width: 100%;
261
+ height: 100% !important;
262
+ opacity: 0;
263
+ }
264
+ /*# sourceMappingURL=bootstrap-select.css.map */
skin/adminhtml/default/default/pushassist/bootstrap.min.css ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
1
+ /*!
2
+ * Bootstrap v3.3.4 (http://getbootstrap.com)
3
+ * Copyright 2011-2015 Twitter, Inc.
4
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
5
+ *//*! normalize.css v3.0.2 | MIT License | git.io/normalize */html{font-family:sans-serif;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:700}dfn{font-style:italic}h1{margin:.67em 0;font-size:2em}mark{color:#000;background:#ff0}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{height:0;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{margin:0;font:inherit;color:inherit}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{padding:0;border:0}input{line-height:normal}input[type=checkbox],input[type=radio]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;-webkit-appearance:textfield}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}fieldset{padding:.35em .625em .75em;margin:0 2px;border:1px solid silver}legend{padding:0;border:0}textarea{overflow:auto}optgroup{font-weight:700}table{border-spacing:0;border-collapse:collapse}td,th{padding:0}/*! Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css */@media print{*,:after,:before{color:#000!important;text-shadow:none!important;background:0 0!important;-webkit-box-shadow:none!important;box-shadow:none!important}a,a:visited{text-decoration:underline}a[href]:after{content:" (" attr(href) ")"}abbr[title]:after{content:" (" attr(title) ")"}a[href^="javascript:"]:after,a[href^="#"]:after{content:""}blockquote,pre{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}img,tr{page-break-inside:avoid}img{max-width:100%!important}h2,h3,p{orphans:3;widows:3}h2,h3{page-break-after:avoid}select{background:#fff!important}.navbar{display:none}.btn>.caret,.dropup>.btn>.caret{border-top-color:#000!important}.label{border:1px solid #000}.table{border-collapse:collapse!important}.table td,.table th{background-color:#fff!important}.table-bordered td,.table-bordered th{border:1px solid #ddd!important}}@font-face{font-family:'Glyphicons Halflings';src:url(../fonts/glyphicons-halflings-regular.eot);src:url(../fonts/glyphicons-halflings-regular.eot?#iefix) format('embedded-opentype'),url(../fonts/glyphicons-halflings-regular.woff2) format('woff2'),url(../fonts/glyphicons-halflings-regular.woff) format('woff'),url(../fonts/glyphicons-halflings-regular.ttf) format('truetype'),url(../fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular) format('svg')}.glyphicon{position:relative;top:1px;display:inline-block;font-family:'Glyphicons Halflings';font-style:normal;font-weight:400;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.glyphicon-asterisk:before{content:"\2a"}.glyphicon-plus:before{content:"\2b"}.glyphicon-eur:before,.glyphicon-euro:before{content:"\20ac"}.glyphicon-minus:before{content:"\2212"}.glyphicon-cloud:before{content:"\2601"}.glyphicon-envelope:before{content:"\2709"}.glyphicon-pencil:before{content:"\270f"}.glyphicon-glass:before{content:"\e001"}.glyphicon-music:before{content:"\e002"}.glyphicon-search:before{content:"\e003"}.glyphicon-heart:before{content:"\e005"}.glyphicon-star:before{content:"\e006"}.glyphicon-star-empty:before{content:"\e007"}.glyphicon-user:before{content:"\e008"}.glyphicon-film:before{content:"\e009"}.glyphicon-th-large:before{content:"\e010"}.glyphicon-th:before{content:"\e011"}.glyphicon-th-list:before{content:"\e012"}.glyphicon-ok:before{content:"\e013"}.glyphicon-remove:before{content:"\e014"}.glyphicon-zoom-in:before{content:"\e015"}.glyphicon-zoom-out:before{content:"\e016"}.glyphicon-off:before{content:"\e017"}.glyphicon-signal:before{content:"\e018"}.glyphicon-cog:before{content:"\e019"}.glyphicon-trash:before{content:"\e020"}.glyphicon-home:before{content:"\e021"}.glyphicon-file:before{content:"\e022"}.glyphicon-time:before{content:"\e023"}.glyphicon-road:before{content:"\e024"}.glyphicon-download-alt:before{content:"\e025"}.glyphicon-download:before{content:"\e026"}.glyphicon-upload:before{content:"\e027"}.glyphicon-inbox:before{content:"\e028"}.glyphicon-play-circle:before{content:"\e029"}.glyphicon-repeat:before{content:"\e030"}.glyphicon-refresh:before{content:"\e031"}.glyphicon-list-alt:before{content:"\e032"}.glyphicon-lock:before{content:"\e033"}.glyphicon-flag:before{content:"\e034"}.glyphicon-headphones:before{content:"\e035"}.glyphicon-volume-off:before{content:"\e036"}.glyphicon-volume-down:before{content:"\e037"}.glyphicon-volume-up:before{content:"\e038"}.glyphicon-qrcode:before{content:"\e039"}.glyphicon-barcode:before{content:"\e040"}.glyphicon-tag:before{content:"\e041"}.glyphicon-tags:before{content:"\e042"}.glyphicon-book:before{content:"\e043"}.glyphicon-bookmark:before{content:"\e044"}.glyphicon-print:before{content:"\e045"}.glyphicon-camera:before{content:"\e046"}.glyphicon-font:before{content:"\e047"}.glyphicon-bold:before{content:"\e048"}.glyphicon-italic:before{content:"\e049"}.glyphicon-text-height:before{content:"\e050"}.glyphicon-text-width:before{content:"\e051"}.glyphicon-align-left:before{content:"\e052"}.glyphicon-align-center:before{content:"\e053"}.glyphicon-align-right:before{content:"\e054"}.glyphicon-align-justify:before{content:"\e055"}.glyphicon-list:before{content:"\e056"}.glyphicon-indent-left:before{content:"\e057"}.glyphicon-indent-right:before{content:"\e058"}.glyphicon-facetime-video:before{content:"\e059"}.glyphicon-picture:before{content:"\e060"}.glyphicon-map-marker:before{content:"\e062"}.glyphicon-adjust:before{content:"\e063"}.glyphicon-tint:before{content:"\e064"}.glyphicon-edit:before{content:"\e065"}.glyphicon-share:before{content:"\e066"}.glyphicon-check:before{content:"\e067"}.glyphicon-move:before{content:"\e068"}.glyphicon-step-backward:before{content:"\e069"}.glyphicon-fast-backward:before{content:"\e070"}.glyphicon-backward:before{content:"\e071"}.glyphicon-play:before{content:"\e072"}.glyphicon-pause:before{content:"\e073"}.glyphicon-stop:before{content:"\e074"}.glyphicon-forward:before{content:"\e075"}.glyphicon-fast-forward:before{content:"\e076"}.glyphicon-step-forward:before{content:"\e077"}.glyphicon-eject:before{content:"\e078"}.glyphicon-chevron-left:before{content:"\e079"}.glyphicon-chevron-right:before{content:"\e080"}.glyphicon-plus-sign:before{content:"\e081"}.glyphicon-minus-sign:before{content:"\e082"}.glyphicon-remove-sign:before{content:"\e083"}.glyphicon-ok-sign:before{content:"\e084"}.glyphicon-question-sign:before{content:"\e085"}.glyphicon-info-sign:before{content:"\e086"}.glyphicon-screenshot:before{content:"\e087"}.glyphicon-remove-circle:before{content:"\e088"}.glyphicon-ok-circle:before{content:"\e089"}.glyphicon-ban-circle:before{content:"\e090"}.glyphicon-arrow-left:before{content:"\e091"}.glyphicon-arrow-right:before{content:"\e092"}.glyphicon-arrow-up:before{content:"\e093"}.glyphicon-arrow-down:before{content:"\e094"}.glyphicon-share-alt:before{content:"\e095"}.glyphicon-resize-full:before{content:"\e096"}.glyphicon-resize-small:before{content:"\e097"}.glyphicon-exclamation-sign:before{content:"\e101"}.glyphicon-gift:before{content:"\e102"}.glyphicon-leaf:before{content:"\e103"}.glyphicon-fire:before{content:"\e104"}.glyphicon-eye-open:before{content:"\e105"}.glyphicon-eye-close:before{content:"\e106"}.glyphicon-warning-sign:before{content:"\e107"}.glyphicon-plane:before{content:"\e108"}.glyphicon-calendar:before{content:"\e109"}.glyphicon-random:before{content:"\e110"}.glyphicon-comment:before{content:"\e111"}.glyphicon-magnet:before{content:"\e112"}.glyphicon-chevron-up:before{content:"\e113"}.glyphicon-chevron-down:before{content:"\e114"}.glyphicon-retweet:before{content:"\e115"}.glyphicon-shopping-cart:before{content:"\e116"}.glyphicon-folder-close:before{content:"\e117"}.glyphicon-folder-open:before{content:"\e118"}.glyphicon-resize-vertical:before{content:"\e119"}.glyphicon-resize-horizontal:before{content:"\e120"}.glyphicon-hdd:before{content:"\e121"}.glyphicon-bullhorn:before{content:"\e122"}.glyphicon-bell:before{content:"\e123"}.glyphicon-certificate:before{content:"\e124"}.glyphicon-thumbs-up:before{content:"\e125"}.glyphicon-thumbs-down:before{content:"\e126"}.glyphicon-hand-right:before{content:"\e127"}.glyphicon-hand-left:before{content:"\e128"}.glyphicon-hand-up:before{content:"\e129"}.glyphicon-hand-down:before{content:"\e130"}.glyphicon-circle-arrow-right:before{content:"\e131"}.glyphicon-circle-arrow-left:before{content:"\e132"}.glyphicon-circle-arrow-up:before{content:"\e133"}.glyphicon-circle-arrow-down:before{content:"\e134"}.glyphicon-globe:before{content:"\e135"}.glyphicon-wrench:before{content:"\e136"}.glyphicon-tasks:before{content:"\e137"}.glyphicon-filter:before{content:"\e138"}.glyphicon-briefcase:before{content:"\e139"}.glyphicon-fullscreen:before{content:"\e140"}.glyphicon-dashboard:before{content:"\e141"}.glyphicon-paperclip:before{content:"\e142"}.glyphicon-heart-empty:before{content:"\e143"}.glyphicon-link:before{content:"\e144"}.glyphicon-phone:before{content:"\e145"}.glyphicon-pushpin:before{content:"\e146"}.glyphicon-usd:before{content:"\e148"}.glyphicon-gbp:before{content:"\e149"}.glyphicon-sort:before{content:"\e150"}.glyphicon-sort-by-alphabet:before{content:"\e151"}.glyphicon-sort-by-alphabet-alt:before{content:"\e152"}.glyphicon-sort-by-order:before{content:"\e153"}.glyphicon-sort-by-order-alt:before{content:"\e154"}.glyphicon-sort-by-attributes:before{content:"\e155"}.glyphicon-sort-by-attributes-alt:before{content:"\e156"}.glyphicon-unchecked:before{content:"\e157"}.glyphicon-expand:before{content:"\e158"}.glyphicon-collapse-down:before{content:"\e159"}.glyphicon-collapse-up:before{content:"\e160"}.glyphicon-log-in:before{content:"\e161"}.glyphicon-flash:before{content:"\e162"}.glyphicon-log-out:before{content:"\e163"}.glyphicon-new-window:before{content:"\e164"}.glyphicon-record:before{content:"\e165"}.glyphicon-save:before{content:"\e166"}.glyphicon-open:before{content:"\e167"}.glyphicon-saved:before{content:"\e168"}.glyphicon-import:before{content:"\e169"}.glyphicon-export:before{content:"\e170"}.glyphicon-send:before{content:"\e171"}.glyphicon-floppy-disk:before{content:"\e172"}.glyphicon-floppy-saved:before{content:"\e173"}.glyphicon-floppy-remove:before{content:"\e174"}.glyphicon-floppy-save:before{content:"\e175"}.glyphicon-floppy-open:before{content:"\e176"}.glyphicon-credit-card:before{content:"\e177"}.glyphicon-transfer:before{content:"\e178"}.glyphicon-cutlery:before{content:"\e179"}.glyphicon-header:before{content:"\e180"}.glyphicon-compressed:before{content:"\e181"}.glyphicon-earphone:before{content:"\e182"}.glyphicon-phone-alt:before{content:"\e183"}.glyphicon-tower:before{content:"\e184"}.glyphicon-stats:before{content:"\e185"}.glyphicon-sd-video:before{content:"\e186"}.glyphicon-hd-video:before{content:"\e187"}.glyphicon-subtitles:before{content:"\e188"}.glyphicon-sound-stereo:before{content:"\e189"}.glyphicon-sound-dolby:before{content:"\e190"}.glyphicon-sound-5-1:before{content:"\e191"}.glyphicon-sound-6-1:before{content:"\e192"}.glyphicon-sound-7-1:before{content:"\e193"}.glyphicon-copyright-mark:before{content:"\e194"}.glyphicon-registration-mark:before{content:"\e195"}.glyphicon-cloud-download:before{content:"\e197"}.glyphicon-cloud-upload:before{content:"\e198"}.glyphicon-tree-conifer:before{content:"\e199"}.glyphicon-tree-deciduous:before{content:"\e200"}.glyphicon-cd:before{content:"\e201"}.glyphicon-save-file:before{content:"\e202"}.glyphicon-open-file:before{content:"\e203"}.glyphicon-level-up:before{content:"\e204"}.glyphicon-copy:before{content:"\e205"}.glyphicon-paste:before{content:"\e206"}.glyphicon-alert:before{content:"\e209"}.glyphicon-equalizer:before{content:"\e210"}.glyphicon-king:before{content:"\e211"}.glyphicon-queen:before{content:"\e212"}.glyphicon-pawn:before{content:"\e213"}.glyphicon-bishop:before{content:"\e214"}.glyphicon-knight:before{content:"\e215"}.glyphicon-baby-formula:before{content:"\e216"}.glyphicon-tent:before{content:"\26fa"}.glyphicon-blackboard:before{content:"\e218"}.glyphicon-bed:before{content:"\e219"}.glyphicon-apple:before{content:"\f8ff"}.glyphicon-erase:before{content:"\e221"}.glyphicon-hourglass:before{content:"\231b"}.glyphicon-lamp:before{content:"\e223"}.glyphicon-duplicate:before{content:"\e224"}.glyphicon-piggy-bank:before{content:"\e225"}.glyphicon-scissors:before{content:"\e226"}.glyphicon-bitcoin:before{content:"\e227"}.glyphicon-btc:before{content:"\e227"}.glyphicon-xbt:before{content:"\e227"}.glyphicon-yen:before{content:"\00a5"}.glyphicon-jpy:before{content:"\00a5"}.glyphicon-ruble:before{content:"\20bd"}.glyphicon-rub:before{content:"\20bd"}.glyphicon-scale:before{content:"\e230"}.glyphicon-ice-lolly:before{content:"\e231"}.glyphicon-ice-lolly-tasted:before{content:"\e232"}.glyphicon-education:before{content:"\e233"}.glyphicon-option-horizontal:before{content:"\e234"}.glyphicon-option-vertical:before{content:"\e235"}.glyphicon-menu-hamburger:before{content:"\e236"}.glyphicon-modal-window:before{content:"\e237"}.glyphicon-oil:before{content:"\e238"}.glyphicon-grain:before{content:"\e239"}.glyphicon-sunglasses:before{content:"\e240"}.glyphicon-text-size:before{content:"\e241"}.glyphicon-text-color:before{content:"\e242"}.glyphicon-text-background:before{content:"\e243"}.glyphicon-object-align-top:before{content:"\e244"}.glyphicon-object-align-bottom:before{content:"\e245"}.glyphicon-object-align-horizontal:before{content:"\e246"}.glyphicon-object-align-left:before{content:"\e247"}.glyphicon-object-align-vertical:before{content:"\e248"}.glyphicon-object-align-right:before{content:"\e249"}.glyphicon-triangle-right:before{content:"\e250"}.glyphicon-triangle-left:before{content:"\e251"}.glyphicon-triangle-bottom:before{content:"\e252"}.glyphicon-triangle-top:before{content:"\e253"}.glyphicon-console:before{content:"\e254"}.glyphicon-superscript:before{content:"\e255"}.glyphicon-subscript:before{content:"\e256"}.glyphicon-menu-left:before{content:"\e257"}.glyphicon-menu-right:before{content:"\e258"}.glyphicon-menu-down:before{content:"\e259"}.glyphicon-menu-up:before{content:"\e260"}*{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}:after,:before{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}html{font-size:10px;-webkit-tap-highlight-color:rgba(0,0,0,0)}body{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;line-height:1.42857143;color:#333;background-color:#fff}button,input,select,textarea{font-family:inherit;font-size:inherit;line-height:inherit}a{color:#337ab7;text-decoration:none}a:focus,a:hover{color:#23527c;text-decoration:underline}a:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}figure{margin:0}img{vertical-align:middle}.carousel-inner>.item>a>img,.carousel-inner>.item>img,.img-responsive,.thumbnail a>img,.thumbnail>img{display:block;max-width:100%;height:auto}.img-rounded{border-radius:6px}.img-thumbnail{display:inline-block;max-width:100%;height:auto;padding:4px;line-height:1.42857143;background-color:#fff;border:1px solid #ddd;border-radius:4px;-webkit-transition:all .2s ease-in-out;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.img-circle{border-radius:50%}hr{margin-top:20px;margin-bottom:20px;border:0;border-top:1px solid #eee}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto}[role=button]{cursor:pointer}.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6{font-family:inherit;font-weight:500;line-height:1.1;color:inherit}.h1 .small,.h1 small,.h2 .small,.h2 small,.h3 .small,.h3 small,.h4 .small,.h4 small,.h5 .small,.h5 small,.h6 .small,.h6 small,h1 .small,h1 small,h2 .small,h2 small,h3 .small,h3 small,h4 .small,h4 small,h5 .small,h5 small,h6 .small,h6 small{font-weight:400;line-height:1;color:#777}.h1,.h2,.h3,h1,h2,h3{margin-top:20px;margin-bottom:10px}.h1 .small,.h1 small,.h2 .small,.h2 small,.h3 .small,.h3 small,h1 .small,h1 small,h2 .small,h2 small,h3 .small,h3 small{font-size:65%}.h4,.h5,.h6,h4,h5,h6{margin-top:10px;margin-bottom:10px}.h4 .small,.h4 small,.h5 .small,.h5 small,.h6 .small,.h6 small,h4 .small,h4 small,h5 .small,h5 small,h6 .small,h6 small{font-size:75%}.h1,h1{font-size:36px}.h2,h2{font-size:30px}.h3,h3{font-size:24px}.h4,h4{font-size:18px}.h5,h5{font-size:14px}.h6,h6{font-size:12px}p{margin:0 0 10px}.lead{margin-bottom:20px;font-size:16px;font-weight:300;line-height:1.4}@media (min-width:768px){.lead{font-size:21px}}.small,small{font-size:85%}.mark,mark{padding:.2em;background-color:#fcf8e3}.text-left{text-align:left}.text-right{text-align:right}.text-center{text-align:center}.text-justify{text-align:justify}.text-nowrap{white-space:nowrap}.text-lowercase{text-transform:lowercase}.text-uppercase{text-transform:uppercase}.text-capitalize{text-transform:capitalize}.text-muted{color:#777}.text-primary{color:#337ab7}a.text-primary:hover{color:#286090}.text-success{color:#3c763d}a.text-success:hover{color:#2b542c}.text-info{color:#31708f}a.text-info:hover{color:#245269}.text-warning{color:#8a6d3b}a.text-warning:hover{color:#66512c}.text-danger{color:#a94442}a.text-danger:hover{color:#843534}.bg-primary{color:#fff;background-color:#337ab7}a.bg-primary:hover{background-color:#286090}.bg-success{background-color:#dff0d8}a.bg-success:hover{background-color:#c1e2b3}.bg-info{background-color:#d9edf7}a.bg-info:hover{background-color:#afd9ee}.bg-warning{background-color:#fcf8e3}a.bg-warning:hover{background-color:#f7ecb5}.bg-danger{background-color:#f2dede}a.bg-danger:hover{background-color:#e4b9b9}.page-header{padding-bottom:9px;margin:40px 0 20px;border-bottom:1px solid #eee}ol,ul{margin-top:0;margin-bottom:10px}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}.list-unstyled{padding-left:0;list-style:none}.list-inline{padding-left:0;margin-left:-5px;list-style:none}.list-inline>li{display:inline-block;padding-right:5px;padding-left:5px}dl{margin-top:0;margin-bottom:20px}dd,dt{line-height:1.42857143}dt{font-weight:700}dd{margin-left:0}@media (min-width:768px){.dl-horizontal dt{float:left;width:160px;overflow:hidden;clear:left;text-align:right;text-overflow:ellipsis;white-space:nowrap}.dl-horizontal dd{margin-left:180px}}abbr[data-original-title],abbr[title]{cursor:help;border-bottom:1px dotted #777}.initialism{font-size:90%;text-transform:uppercase}blockquote{padding:10px 20px;margin:0 0 20px;font-size:17.5px;border-left:5px solid #eee}blockquote ol:last-child,blockquote p:last-child,blockquote ul:last-child{margin-bottom:0}blockquote .small,blockquote footer,blockquote small{display:block;font-size:80%;line-height:1.42857143;color:#777}blockquote .small:before,blockquote footer:before,blockquote small:before{content:'\2014 \00A0'}.blockquote-reverse,blockquote.pull-right{padding-right:15px;padding-left:0;text-align:right;border-right:5px solid #eee;border-left:0}.blockquote-reverse .small:before,.blockquote-reverse footer:before,.blockquote-reverse small:before,blockquote.pull-right .small:before,blockquote.pull-right footer:before,blockquote.pull-right small:before{content:''}.blockquote-reverse .small:after,.blockquote-reverse footer:after,.blockquote-reverse small:after,blockquote.pull-right .small:after,blockquote.pull-right footer:after,blockquote.pull-right small:after{content:'\00A0 \2014'}address{margin-bottom:20px;font-style:normal;line-height:1.42857143}code,kbd,pre,samp{font-family:Menlo,Monaco,Consolas,"Courier New",monospace}code{padding:2px 4px;font-size:90%;color:#c7254e;background-color:#f9f2f4;border-radius:4px}kbd{padding:2px 4px;font-size:90%;color:#fff;background-color:#333;border-radius:3px;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,.25);box-shadow:inset 0 -1px 0 rgba(0,0,0,.25)}kbd kbd{padding:0;font-size:100%;font-weight:700;-webkit-box-shadow:none;box-shadow:none}pre{display:block;padding:9.5px;margin:0 0 10px;font-size:13px;line-height:1.42857143;color:#333;word-break:break-all;word-wrap:break-word;background-color:#f5f5f5;border:1px solid #ccc;border-radius:4px}pre code{padding:0;font-size:inherit;color:inherit;white-space:pre-wrap;background-color:transparent;border-radius:0}.pre-scrollable{max-height:340px;overflow-y:scroll}.container{padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}@media (min-width:768px){.container{width:750px}}@media (min-width:992px){.container{width:970px}}@media (min-width:1200px){.container{width:1170px}}.container-fluid{padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}.row{margin-right:-15px;margin-left:-15px}.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-xs-1,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9{position:relative;min-height:1px;padding-right:15px;padding-left:15px}.col-xs-1,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9{float:left}.col-xs-12{width:100%}.col-xs-11{width:91.66666667%}.col-xs-10{width:83.33333333%}.col-xs-9{width:75%}.col-xs-8{width:66.66666667%}.col-xs-7{width:58.33333333%}.col-xs-6{width:50%}.col-xs-5{width:41.66666667%}.col-xs-4{width:33.33333333%}.col-xs-3{width:25%}.col-xs-2{width:16.66666667%}.col-xs-1{width:8.33333333%}.col-xs-pull-12{right:100%}.col-xs-pull-11{right:91.66666667%}.col-xs-pull-10{right:83.33333333%}.col-xs-pull-9{right:75%}.col-xs-pull-8{right:66.66666667%}.col-xs-pull-7{right:58.33333333%}.col-xs-pull-6{right:50%}.col-xs-pull-5{right:41.66666667%}.col-xs-pull-4{right:33.33333333%}.col-xs-pull-3{right:25%}.col-xs-pull-2{right:16.66666667%}.col-xs-pull-1{right:8.33333333%}.col-xs-pull-0{right:auto}.col-xs-push-12{left:100%}.col-xs-push-11{left:91.66666667%}.col-xs-push-10{left:83.33333333%}.col-xs-push-9{left:75%}.col-xs-push-8{left:66.66666667%}.col-xs-push-7{left:58.33333333%}.col-xs-push-6{left:50%}.col-xs-push-5{left:41.66666667%}.col-xs-push-4{left:33.33333333%}.col-xs-push-3{left:25%}.col-xs-push-2{left:16.66666667%}.col-xs-push-1{left:8.33333333%}.col-xs-push-0{left:auto}.col-xs-offset-12{margin-left:100%}.col-xs-offset-11{margin-left:91.66666667%}.col-xs-offset-10{margin-left:83.33333333%}.col-xs-offset-9{margin-left:75%}.col-xs-offset-8{margin-left:66.66666667%}.col-xs-offset-7{margin-left:58.33333333%}.col-xs-offset-6{margin-left:50%}.col-xs-offset-5{margin-left:41.66666667%}.col-xs-offset-4{margin-left:33.33333333%}.col-xs-offset-3{margin-left:25%}.col-xs-offset-2{margin-left:16.66666667%}.col-xs-offset-1{margin-left:8.33333333%}.col-xs-offset-0{margin-left:0}@media (min-width:768px){.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9{float:left}.col-sm-12{width:100%}.col-sm-11{width:91.66666667%}.col-sm-10{width:83.33333333%}.col-sm-9{width:75%}.col-sm-8{width:66.66666667%}.col-sm-7{width:58.33333333%}.col-sm-6{width:50%}.col-sm-5{width:41.66666667%}.col-sm-4{width:33.33333333%}.col-sm-3{width:25%}.col-sm-2{width:16.66666667%}.col-sm-1{width:8.33333333%}.col-sm-pull-12{right:100%}.col-sm-pull-11{right:91.66666667%}.col-sm-pull-10{right:83.33333333%}.col-sm-pull-9{right:75%}.col-sm-pull-8{right:66.66666667%}.col-sm-pull-7{right:58.33333333%}.col-sm-pull-6{right:50%}.col-sm-pull-5{right:41.66666667%}.col-sm-pull-4{right:33.33333333%}.col-sm-pull-3{right:25%}.col-sm-pull-2{right:16.66666667%}.col-sm-pull-1{right:8.33333333%}.col-sm-pull-0{right:auto}.col-sm-push-12{left:100%}.col-sm-push-11{left:91.66666667%}.col-sm-push-10{left:83.33333333%}.col-sm-push-9{left:75%}.col-sm-push-8{left:66.66666667%}.col-sm-push-7{left:58.33333333%}.col-sm-push-6{left:50%}.col-sm-push-5{left:41.66666667%}.col-sm-push-4{left:33.33333333%}.col-sm-push-3{left:25%}.col-sm-push-2{left:16.66666667%}.col-sm-push-1{left:8.33333333%}.col-sm-push-0{left:auto}.col-sm-offset-12{margin-left:100%}.col-sm-offset-11{margin-left:91.66666667%}.col-sm-offset-10{margin-left:83.33333333%}.col-sm-offset-9{margin-left:75%}.col-sm-offset-8{margin-left:66.66666667%}.col-sm-offset-7{margin-left:58.33333333%}.col-sm-offset-6{margin-left:50%}.col-sm-offset-5{margin-left:41.66666667%}.col-sm-offset-4{margin-left:33.33333333%}.col-sm-offset-3{margin-left:25%}.col-sm-offset-2{margin-left:16.66666667%}.col-sm-offset-1{margin-left:8.33333333%}.col-sm-offset-0{margin-left:0}}@media (min-width:992px){.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9{float:left}.col-md-12{width:100%}.col-md-11{width:91.66666667%}.col-md-10{width:83.33333333%}.col-md-9{width:75%}.col-md-8{width:66.66666667%}.col-md-7{width:58.33333333%}.col-md-6{width:50%}.col-md-5{width:41.66666667%}.col-md-4{width:33.33333333%}.col-md-3{width:25%}.col-md-2{width:16.66666667%}.col-md-1{width:8.33333333%}.col-md-pull-12{right:100%}.col-md-pull-11{right:91.66666667%}.col-md-pull-10{right:83.33333333%}.col-md-pull-9{right:75%}.col-md-pull-8{right:66.66666667%}.col-md-pull-7{right:58.33333333%}.col-md-pull-6{right:50%}.col-md-pull-5{right:41.66666667%}.col-md-pull-4{right:33.33333333%}.col-md-pull-3{right:25%}.col-md-pull-2{right:16.66666667%}.col-md-pull-1{right:8.33333333%}.col-md-pull-0{right:auto}.col-md-push-12{left:100%}.col-md-push-11{left:91.66666667%}.col-md-push-10{left:83.33333333%}.col-md-push-9{left:75%}.col-md-push-8{left:66.66666667%}.col-md-push-7{left:58.33333333%}.col-md-push-6{left:50%}.col-md-push-5{left:41.66666667%}.col-md-push-4{left:33.33333333%}.col-md-push-3{left:25%}.col-md-push-2{left:16.66666667%}.col-md-push-1{left:8.33333333%}.col-md-push-0{left:auto}.col-md-offset-12{margin-left:100%}.col-md-offset-11{margin-left:91.66666667%}.col-md-offset-10{margin-left:83.33333333%}.col-md-offset-9{margin-left:75%}.col-md-offset-8{margin-left:66.66666667%}.col-md-offset-7{margin-left:58.33333333%}.col-md-offset-6{margin-left:50%}.col-md-offset-5{margin-left:41.66666667%}.col-md-offset-4{margin-left:33.33333333%}.col-md-offset-3{margin-left:25%}.col-md-offset-2{margin-left:16.66666667%}.col-md-offset-1{margin-left:8.33333333%}.col-md-offset-0{margin-left:0}}@media (min-width:1200px){.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9{float:left}.col-lg-12{width:100%}.col-lg-11{width:91.66666667%}.col-lg-10{width:83.33333333%}.col-lg-9{width:75%}.col-lg-8{width:66.66666667%}.col-lg-7{width:58.33333333%}.col-lg-6{width:50%}.col-lg-5{width:41.66666667%}.col-lg-4{width:33.33333333%}.col-lg-3{width:25%}.col-lg-2{width:16.66666667%}.col-lg-1{width:8.33333333%}.col-lg-pull-12{right:100%}.col-lg-pull-11{right:91.66666667%}.col-lg-pull-10{right:83.33333333%}.col-lg-pull-9{right:75%}.col-lg-pull-8{right:66.66666667%}.col-lg-pull-7{right:58.33333333%}.col-lg-pull-6{right:50%}.col-lg-pull-5{right:41.66666667%}.col-lg-pull-4{right:33.33333333%}.col-lg-pull-3{right:25%}.col-lg-pull-2{right:16.66666667%}.col-lg-pull-1{right:8.33333333%}.col-lg-pull-0{right:auto}.col-lg-push-12{left:100%}.col-lg-push-11{left:91.66666667%}.col-lg-push-10{left:83.33333333%}.col-lg-push-9{left:75%}.col-lg-push-8{left:66.66666667%}.col-lg-push-7{left:58.33333333%}.col-lg-push-6{left:50%}.col-lg-push-5{left:41.66666667%}.col-lg-push-4{left:33.33333333%}.col-lg-push-3{left:25%}.col-lg-push-2{left:16.66666667%}.col-lg-push-1{left:8.33333333%}.col-lg-push-0{left:auto}.col-lg-offset-12{margin-left:100%}.col-lg-offset-11{margin-left:91.66666667%}.col-lg-offset-10{margin-left:83.33333333%}.col-lg-offset-9{margin-left:75%}.col-lg-offset-8{margin-left:66.66666667%}.col-lg-offset-7{margin-left:58.33333333%}.col-lg-offset-6{margin-left:50%}.col-lg-offset-5{margin-left:41.66666667%}.col-lg-offset-4{margin-left:33.33333333%}.col-lg-offset-3{margin-left:25%}.col-lg-offset-2{margin-left:16.66666667%}.col-lg-offset-1{margin-left:8.33333333%}.col-lg-offset-0{margin-left:0}}table{background-color:transparent}caption{padding-top:8px;padding-bottom:8px;color:#777;text-align:left}th{text-align:left}.table{width:100%;max-width:100%;margin-bottom:20px}.table>tbody>tr>td,.table>tbody>tr>th,.table>tfoot>tr>td,.table>tfoot>tr>th,.table>thead>tr>td,.table>thead>tr>th{padding:8px;line-height:1.42857143;vertical-align:top;border-top:1px solid #ddd}.table>thead>tr>th{vertical-align:bottom;border-bottom:2px solid #ddd}.table>caption+thead>tr:first-child>td,.table>caption+thead>tr:first-child>th,.table>colgroup+thead>tr:first-child>td,.table>colgroup+thead>tr:first-child>th,.table>thead:first-child>tr:first-child>td,.table>thead:first-child>tr:first-child>th{border-top:0}.table>tbody+tbody{border-top:2px solid #ddd}.table .table{background-color:#fff}.table-condensed>tbody>tr>td,.table-condensed>tbody>tr>th,.table-condensed>tfoot>tr>td,.table-condensed>tfoot>tr>th,.table-condensed>thead>tr>td,.table-condensed>thead>tr>th{padding:5px}.table-bordered{border:1px solid #ddd}.table-bordered>tbody>tr>td,.table-bordered>tbody>tr>th,.table-bordered>tfoot>tr>td,.table-bordered>tfoot>tr>th,.table-bordered>thead>tr>td,.table-bordered>thead>tr>th{border:1px solid #ddd}.table-bordered>thead>tr>td,.table-bordered>thead>tr>th{border-bottom-width:2px}.table-striped>tbody>tr:nth-of-type(odd){background-color:#f9f9f9}.table-hover>tbody>tr:hover{background-color:#f5f5f5}table col[class*=col-]{position:static;display:table-column;float:none}table td[class*=col-],table th[class*=col-]{position:static;display:table-cell;float:none}.table>tbody>tr.active>td,.table>tbody>tr.active>th,.table>tbody>tr>td.active,.table>tbody>tr>th.active,.table>tfoot>tr.active>td,.table>tfoot>tr.active>th,.table>tfoot>tr>td.active,.table>tfoot>tr>th.active,.table>thead>tr.active>td,.table>thead>tr.active>th,.table>thead>tr>td.active,.table>thead>tr>th.active{background-color:#f5f5f5}.table-hover>tbody>tr.active:hover>td,.table-hover>tbody>tr.active:hover>th,.table-hover>tbody>tr:hover>.active,.table-hover>tbody>tr>td.active:hover,.table-hover>tbody>tr>th.active:hover{background-color:#e8e8e8}.table>tbody>tr.success>td,.table>tbody>tr.success>th,.table>tbody>tr>td.success,.table>tbody>tr>th.success,.table>tfoot>tr.success>td,.table>tfoot>tr.success>th,.table>tfoot>tr>td.success,.table>tfoot>tr>th.success,.table>thead>tr.success>td,.table>thead>tr.success>th,.table>thead>tr>td.success,.table>thead>tr>th.success{background-color:#dff0d8}.table-hover>tbody>tr.success:hover>td,.table-hover>tbody>tr.success:hover>th,.table-hover>tbody>tr:hover>.success,.table-hover>tbody>tr>td.success:hover,.table-hover>tbody>tr>th.success:hover{background-color:#d0e9c6}.table>tbody>tr.info>td,.table>tbody>tr.info>th,.table>tbody>tr>td.info,.table>tbody>tr>th.info,.table>tfoot>tr.info>td,.table>tfoot>tr.info>th,.table>tfoot>tr>td.info,.table>tfoot>tr>th.info,.table>thead>tr.info>td,.table>thead>tr.info>th,.table>thead>tr>td.info,.table>thead>tr>th.info{background-color:#d9edf7}.table-hover>tbody>tr.info:hover>td,.table-hover>tbody>tr.info:hover>th,.table-hover>tbody>tr:hover>.info,.table-hover>tbody>tr>td.info:hover,.table-hover>tbody>tr>th.info:hover{background-color:#c4e3f3}.table>tbody>tr.warning>td,.table>tbody>tr.warning>th,.table>tbody>tr>td.warning,.table>tbody>tr>th.warning,.table>tfoot>tr.warning>td,.table>tfoot>tr.warning>th,.table>tfoot>tr>td.warning,.table>tfoot>tr>th.warning,.table>thead>tr.warning>td,.table>thead>tr.warning>th,.table>thead>tr>td.warning,.table>thead>tr>th.warning{background-color:#fcf8e3}.table-hover>tbody>tr.warning:hover>td,.table-hover>tbody>tr.warning:hover>th,.table-hover>tbody>tr:hover>.warning,.table-hover>tbody>tr>td.warning:hover,.table-hover>tbody>tr>th.warning:hover{background-color:#faf2cc}.table>tbody>tr.danger>td,.table>tbody>tr.danger>th,.table>tbody>tr>td.danger,.table>tbody>tr>th.danger,.table>tfoot>tr.danger>td,.table>tfoot>tr.danger>th,.table>tfoot>tr>td.danger,.table>tfoot>tr>th.danger,.table>thead>tr.danger>td,.table>thead>tr.danger>th,.table>thead>tr>td.danger,.table>thead>tr>th.danger{background-color:#f2dede}.table-hover>tbody>tr.danger:hover>td,.table-hover>tbody>tr.danger:hover>th,.table-hover>tbody>tr:hover>.danger,.table-hover>tbody>tr>td.danger:hover,.table-hover>tbody>tr>th.danger:hover{background-color:#ebcccc}.table-responsive{min-height:.01%;overflow-x:auto}@media screen and (max-width:767px){.table-responsive{width:100%;margin-bottom:15px;overflow-y:hidden;-ms-overflow-style:-ms-autohiding-scrollbar;border:1px solid #ddd}.table-responsive>.table{margin-bottom:0}.table-responsive>.table>tbody>tr>td,.table-responsive>.table>tbody>tr>th,.table-responsive>.table>tfoot>tr>td,.table-responsive>.table>tfoot>tr>th,.table-responsive>.table>thead>tr>td,.table-responsive>.table>thead>tr>th{white-space:nowrap}.table-responsive>.table-bordered{border:0}.table-responsive>.table-bordered>tbody>tr>td:first-child,.table-responsive>.table-bordered>tbody>tr>th:first-child,.table-responsive>.table-bordered>tfoot>tr>td:first-child,.table-responsive>.table-bordered>tfoot>tr>th:first-child,.table-responsive>.table-bordered>thead>tr>td:first-child,.table-responsive>.table-bordered>thead>tr>th:first-child{border-left:0}.table-responsive>.table-bordered>tbody>tr>td:last-child,.table-responsive>.table-bordered>tbody>tr>th:last-child,.table-responsive>.table-bordered>tfoot>tr>td:last-child,.table-responsive>.table-bordered>tfoot>tr>th:last-child,.table-responsive>.table-bordered>thead>tr>td:last-child,.table-responsive>.table-bordered>thead>tr>th:last-child{border-right:0}.table-responsive>.table-bordered>tbody>tr:last-child>td,.table-responsive>.table-bordered>tbody>tr:last-child>th,.table-responsive>.table-bordered>tfoot>tr:last-child>td,.table-responsive>.table-bordered>tfoot>tr:last-child>th{border-bottom:0}}fieldset{min-width:0;padding:0;margin:0;border:0}legend{display:block;width:100%;padding:0;margin-bottom:20px;font-size:21px;line-height:inherit;color:#333;border:0;border-bottom:1px solid #e5e5e5}label{display:inline-block;max-width:100%;margin-bottom:5px;font-weight:700}input[type=search]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}input[type=checkbox],input[type=radio]{margin:4px 0 0;margin-top:1px \9;line-height:normal}input[type=file]{display:block}input[type=range]{display:block;width:100%}select[multiple],select[size]{height:auto}input[type=file]:focus,input[type=checkbox]:focus,input[type=radio]:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}output{display:block;padding-top:7px;font-size:14px;line-height:1.42857143;color:#555}.form-control{display:block;width:100%;height:34px;padding:6px 12px;font-size:14px;line-height:1.42857143;color:#555;background-color:#fff;background-image:none;border:1px solid #ccc;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075);-webkit-transition:border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;-o-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s}.form-control:focus{border-color:#66afe9;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)}.form-control::-moz-placeholder{color:#999;opacity:1}.form-control:-ms-input-placeholder{color:#999}.form-control::-webkit-input-placeholder{color:#999}.form-control[disabled],.form-control[readonly],fieldset[disabled] .form-control{background-color:#eee;opacity:1}.form-control[disabled],fieldset[disabled] .form-control{cursor:not-allowed}textarea.form-control{height:auto}input[type=search]{-webkit-appearance:none}@media screen and (-webkit-min-device-pixel-ratio:0){input[type=date],input[type=time],input[type=datetime-local],input[type=month]{line-height:34px}.input-group-sm input[type=date],.input-group-sm input[type=time],.input-group-sm input[type=datetime-local],.input-group-sm input[type=month],input[type=date].input-sm,input[type=time].input-sm,input[type=datetime-local].input-sm,input[type=month].input-sm{line-height:30px}.input-group-lg input[type=date],.input-group-lg input[type=time],.input-group-lg input[type=datetime-local],.input-group-lg input[type=month],input[type=date].input-lg,input[type=time].input-lg,input[type=datetime-local].input-lg,input[type=month].input-lg{line-height:46px}}.form-group{margin-bottom:15px}.checkbox,.radio{position:relative;display:block;margin-top:10px;margin-bottom:10px}.checkbox label,.radio label{min-height:20px;padding-left:20px;margin-bottom:0;font-weight:400;cursor:pointer}.checkbox input[type=checkbox],.checkbox-inline input[type=checkbox],.radio input[type=radio],.radio-inline input[type=radio]{position:absolute;margin-top:4px \9;margin-left:-20px}.checkbox+.checkbox,.radio+.radio{margin-top:-5px}.checkbox-inline,.radio-inline{position:relative;display:inline-block;padding-left:20px;margin-bottom:0;font-weight:400;vertical-align:middle;cursor:pointer}.checkbox-inline+.checkbox-inline,.radio-inline+.radio-inline{margin-top:0;margin-left:10px}fieldset[disabled] input[type=checkbox],fieldset[disabled] input[type=radio],input[type=checkbox].disabled,input[type=checkbox][disabled],input[type=radio].disabled,input[type=radio][disabled]{cursor:not-allowed}.checkbox-inline.disabled,.radio-inline.disabled,fieldset[disabled] .checkbox-inline,fieldset[disabled] .radio-inline{cursor:not-allowed}.checkbox.disabled label,.radio.disabled label,fieldset[disabled] .checkbox label,fieldset[disabled] .radio label{cursor:not-allowed}.form-control-static{min-height:34px;padding-top:7px;padding-bottom:7px;margin-bottom:0}.form-control-static.input-lg,.form-control-static.input-sm{padding-right:0;padding-left:0}.input-sm{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}select.input-sm{height:30px;line-height:30px}select[multiple].input-sm,textarea.input-sm{height:auto}.form-group-sm .form-control{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}select.form-group-sm .form-control{height:30px;line-height:30px}select[multiple].form-group-sm .form-control,textarea.form-group-sm .form-control{height:auto}.form-group-sm .form-control-static{height:30px;min-height:32px;padding:5px 10px;font-size:12px;line-height:1.5}.input-lg{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}select.input-lg{height:46px;line-height:46px}select[multiple].input-lg,textarea.input-lg{height:auto}.form-group-lg .form-control{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}select.form-group-lg .form-control{height:46px;line-height:46px}select[multiple].form-group-lg .form-control,textarea.form-group-lg .form-control{height:auto}.form-group-lg .form-control-static{height:46px;min-height:38px;padding:10px 16px;font-size:18px;line-height:1.3333333}.has-feedback{position:relative}.has-feedback .form-control{padding-right:42.5px}.form-control-feedback{position:absolute;top:0;right:0;z-index:2;display:block;width:34px;height:34px;line-height:34px;text-align:center;pointer-events:none}.input-lg+.form-control-feedback{width:46px;height:46px;line-height:46px}.input-sm+.form-control-feedback{width:30px;height:30px;line-height:30px}.has-success .checkbox,.has-success .checkbox-inline,.has-success .control-label,.has-success .help-block,.has-success .radio,.has-success .radio-inline,.has-success.checkbox label,.has-success.checkbox-inline label,.has-success.radio label,.has-success.radio-inline label{color:#3c763d}.has-success .form-control{border-color:#3c763d;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-success .form-control:focus{border-color:#2b542c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #67b168;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #67b168}.has-success .input-group-addon{color:#3c763d;background-color:#dff0d8;border-color:#3c763d}.has-success .form-control-feedback{color:#3c763d}.has-warning .checkbox,.has-warning .checkbox-inline,.has-warning .control-label,.has-warning .help-block,.has-warning .radio,.has-warning .radio-inline,.has-warning.checkbox label,.has-warning.checkbox-inline label,.has-warning.radio label,.has-warning.radio-inline label{color:#8a6d3b}.has-warning .form-control{border-color:#8a6d3b;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-warning .form-control:focus{border-color:#66512c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #c0a16b;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #c0a16b}.has-warning .input-group-addon{color:#8a6d3b;background-color:#fcf8e3;border-color:#8a6d3b}.has-warning .form-control-feedback{color:#8a6d3b}.has-error .checkbox,.has-error .checkbox-inline,.has-error .control-label,.has-error .help-block,.has-error .radio,.has-error .radio-inline,.has-error.checkbox label,.has-error.checkbox-inline label,.has-error.radio label,.has-error.radio-inline label{color:#a94442}.has-error .form-control{border-color:#a94442;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-error .form-control:focus{border-color:#843534;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #ce8483;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #ce8483}.has-error .input-group-addon{color:#a94442;background-color:#f2dede;border-color:#a94442}.has-error .form-control-feedback{color:#a94442}.has-feedback label~.form-control-feedback{top:25px}.has-feedback label.sr-only~.form-control-feedback{top:0}.help-block{display:block;margin-top:5px;margin-bottom:10px;color:#737373}@media (min-width:768px){.form-inline .form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.form-inline .form-control{display:inline-block;width:auto;vertical-align:middle}.form-inline .form-control-static{display:inline-block}.form-inline .input-group{display:inline-table;vertical-align:middle}.form-inline .input-group .form-control,.form-inline .input-group .input-group-addon,.form-inline .input-group .input-group-btn{width:auto}.form-inline .input-group>.form-control{width:100%}.form-inline .control-label{margin-bottom:0;vertical-align:middle}.form-inline .checkbox,.form-inline .radio{display:inline-block;margin-top:0;margin-bottom:0;vertical-align:middle}.form-inline .checkbox label,.form-inline .radio label{padding-left:0}.form-inline .checkbox input[type=checkbox],.form-inline .radio input[type=radio]{position:relative;margin-left:0}.form-inline .has-feedback .form-control-feedback{top:0}}.form-horizontal .checkbox,.form-horizontal .checkbox-inline,.form-horizontal .radio,.form-horizontal .radio-inline{padding-top:7px;margin-top:0;margin-bottom:0}.form-horizontal .checkbox,.form-horizontal .radio{min-height:27px}.form-horizontal .form-group{margin-right:-15px;margin-left:-15px}@media (min-width:768px){.form-horizontal .control-label{padding-top:7px;margin-bottom:0;text-align:right}}.form-horizontal .has-feedback .form-control-feedback{right:15px}@media (min-width:768px){.form-horizontal .form-group-lg .control-label{padding-top:14.33px}}@media (min-width:768px){.form-horizontal .form-group-sm .control-label{padding-top:6px}}.btn{display:inline-block;padding:6px 12px;margin-bottom:0;font-size:14px;font-weight:400;line-height:1.42857143;text-align:center;white-space:nowrap;vertical-align:middle;-ms-touch-action:manipulation;touch-action:manipulation;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-image:none;border:1px solid transparent;border-radius:4px}.btn.active.focus,.btn.active:focus,.btn.focus,.btn:active.focus,.btn:active:focus,.btn:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.btn.focus,.btn:focus,.btn:hover{color:#333;text-decoration:none}.btn.active,.btn:active{background-image:none;outline:0;-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn.disabled,.btn[disabled],fieldset[disabled] .btn{pointer-events:none;cursor:not-allowed;filter:alpha(opacity=65);-webkit-box-shadow:none;box-shadow:none;opacity:.65}.btn-default{color:#333;background-color:#fff;border-color:#ccc}.btn-default.active,.btn-default.focus,.btn-default:active,.btn-default:focus,.btn-default:hover,.open>.dropdown-toggle.btn-default{color:#333;background-color:#e6e6e6;border-color:#adadad}.btn-default.active,.btn-default:active,.open>.dropdown-toggle.btn-default{background-image:none}.btn-default.disabled,.btn-default.disabled.active,.btn-default.disabled.focus,.btn-default.disabled:active,.btn-default.disabled:focus,.btn-default.disabled:hover,.btn-default[disabled],.btn-default[disabled].active,.btn-default[disabled].focus,.btn-default[disabled]:active,.btn-default[disabled]:focus,.btn-default[disabled]:hover,fieldset[disabled] .btn-default,fieldset[disabled] .btn-default.active,fieldset[disabled] .btn-default.focus,fieldset[disabled] .btn-default:active,fieldset[disabled] .btn-default:focus,fieldset[disabled] .btn-default:hover{background-color:#fff;border-color:#ccc}.btn-default .badge{color:#fff;background-color:#333}.btn-primary{color:#fff;background-color:#337ab7;border-color:#2e6da4}.btn-primary.active,.btn-primary.focus,.btn-primary:active,.btn-primary:focus,.btn-primary:hover,.open>.dropdown-toggle.btn-primary{color:#fff;background-color:#286090;border-color:#204d74}.btn-primary.active,.btn-primary:active,.open>.dropdown-toggle.btn-primary{background-image:none}.btn-primary.disabled,.btn-primary.disabled.active,.btn-primary.disabled.focus,.btn-primary.disabled:active,.btn-primary.disabled:focus,.btn-primary.disabled:hover,.btn-primary[disabled],.btn-primary[disabled].active,.btn-primary[disabled].focus,.btn-primary[disabled]:active,.btn-primary[disabled]:focus,.btn-primary[disabled]:hover,fieldset[disabled] .btn-primary,fieldset[disabled] .btn-primary.active,fieldset[disabled] .btn-primary.focus,fieldset[disabled] .btn-primary:active,fieldset[disabled] .btn-primary:focus,fieldset[disabled] .btn-primary:hover{background-color:#337ab7;border-color:#2e6da4}.btn-primary .badge{color:#337ab7;background-color:#fff}.btn-success{color:#fff;background-color:#5cb85c;border-color:#4cae4c}.btn-success.active,.btn-success.focus,.btn-success:active,.btn-success:focus,.btn-success:hover,.open>.dropdown-toggle.btn-success{color:#fff;background-color:#449d44;border-color:#398439}.btn-success.active,.btn-success:active,.open>.dropdown-toggle.btn-success{background-image:none}.btn-success.disabled,.btn-success.disabled.active,.btn-success.disabled.focus,.btn-success.disabled:active,.btn-success.disabled:focus,.btn-success.disabled:hover,.btn-success[disabled],.btn-success[disabled].active,.btn-success[disabled].focus,.btn-success[disabled]:active,.btn-success[disabled]:focus,.btn-success[disabled]:hover,fieldset[disabled] .btn-success,fieldset[disabled] .btn-success.active,fieldset[disabled] .btn-success.focus,fieldset[disabled] .btn-success:active,fieldset[disabled] .btn-success:focus,fieldset[disabled] .btn-success:hover{background-color:#5cb85c;border-color:#4cae4c}.btn-success .badge{color:#5cb85c;background-color:#fff}.btn-info{color:#fff;background-color:#5bc0de;border-color:#46b8da}.btn-info.active,.btn-info.focus,.btn-info:active,.btn-info:focus,.btn-info:hover,.open>.dropdown-toggle.btn-info{color:#fff;background-color:#31b0d5;border-color:#269abc}.btn-info.active,.btn-info:active,.open>.dropdown-toggle.btn-info{background-image:none}.btn-info.disabled,.btn-info.disabled.active,.btn-info.disabled.focus,.btn-info.disabled:active,.btn-info.disabled:focus,.btn-info.disabled:hover,.btn-info[disabled],.btn-info[disabled].active,.btn-info[disabled].focus,.btn-info[disabled]:active,.btn-info[disabled]:focus,.btn-info[disabled]:hover,fieldset[disabled] .btn-info,fieldset[disabled] .btn-info.active,fieldset[disabled] .btn-info.focus,fieldset[disabled] .btn-info:active,fieldset[disabled] .btn-info:focus,fieldset[disabled] .btn-info:hover{background-color:#5bc0de;border-color:#46b8da}.btn-info .badge{color:#5bc0de;background-color:#fff}.btn-warning{color:#fff;background-color:#f0ad4e;border-color:#eea236}.btn-warning.active,.btn-warning.focus,.btn-warning:active,.btn-warning:focus,.btn-warning:hover,.open>.dropdown-toggle.btn-warning{color:#fff;background-color:#ec971f;border-color:#d58512}.btn-warning.active,.btn-warning:active,.open>.dropdown-toggle.btn-warning{background-image:none}.btn-warning.disabled,.btn-warning.disabled.active,.btn-warning.disabled.focus,.btn-warning.disabled:active,.btn-warning.disabled:focus,.btn-warning.disabled:hover,.btn-warning[disabled],.btn-warning[disabled].active,.btn-warning[disabled].focus,.btn-warning[disabled]:active,.btn-warning[disabled]:focus,.btn-warning[disabled]:hover,fieldset[disabled] .btn-warning,fieldset[disabled] .btn-warning.active,fieldset[disabled] .btn-warning.focus,fieldset[disabled] .btn-warning:active,fieldset[disabled] .btn-warning:focus,fieldset[disabled] .btn-warning:hover{background-color:#f0ad4e;border-color:#eea236}.btn-warning .badge{color:#f0ad4e;background-color:#fff}.btn-danger{color:#fff;background-color:#d9534f;border-color:#d43f3a}.btn-danger.active,.btn-danger.focus,.btn-danger:active,.btn-danger:focus,.btn-danger:hover,.open>.dropdown-toggle.btn-danger{color:#fff;background-color:#c9302c;border-color:#ac2925}.btn-danger.active,.btn-danger:active,.open>.dropdown-toggle.btn-danger{background-image:none}.btn-danger.disabled,.btn-danger.disabled.active,.btn-danger.disabled.focus,.btn-danger.disabled:active,.btn-danger.disabled:focus,.btn-danger.disabled:hover,.btn-danger[disabled],.btn-danger[disabled].active,.btn-danger[disabled].focus,.btn-danger[disabled]:active,.btn-danger[disabled]:focus,.btn-danger[disabled]:hover,fieldset[disabled] .btn-danger,fieldset[disabled] .btn-danger.active,fieldset[disabled] .btn-danger.focus,fieldset[disabled] .btn-danger:active,fieldset[disabled] .btn-danger:focus,fieldset[disabled] .btn-danger:hover{background-color:#d9534f;border-color:#d43f3a}.btn-danger .badge{color:#d9534f;background-color:#fff}.btn-link{font-weight:400;color:#337ab7;border-radius:0}.btn-link,.btn-link.active,.btn-link:active,.btn-link[disabled],fieldset[disabled] .btn-link{background-color:transparent;-webkit-box-shadow:none;box-shadow:none}.btn-link,.btn-link:active,.btn-link:focus,.btn-link:hover{border-color:transparent}.btn-link:focus,.btn-link:hover{color:#23527c;text-decoration:underline;background-color:transparent}.btn-link[disabled]:focus,.btn-link[disabled]:hover,fieldset[disabled] .btn-link:focus,fieldset[disabled] .btn-link:hover{color:#777;text-decoration:none}.btn-group-lg>.btn,.btn-lg{padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}.btn-group-sm>.btn,.btn-sm{padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}.btn-group-xs>.btn,.btn-xs{padding:1px 5px;font-size:12px;line-height:1.5;border-radius:3px}.btn-block{display:block;width:100%}.btn-block+.btn-block{margin-top:5px}input[type=button].btn-block,input[type=reset].btn-block,input[type=submit].btn-block{width:100%}.fade{opacity:0;-webkit-transition:opacity .15s linear;-o-transition:opacity .15s linear;transition:opacity .15s linear}.fade.in{opacity:1}.collapse{display:none}.collapse.in{display:block}tr.collapse.in{display:table-row}tbody.collapse.in{display:table-row-group}.collapsing{position:relative;height:0;overflow:hidden;-webkit-transition-timing-function:ease;-o-transition-timing-function:ease;transition-timing-function:ease;-webkit-transition-duration:.35s;-o-transition-duration:.35s;transition-duration:.35s;-webkit-transition-property:height,visibility;-o-transition-property:height,visibility;transition-property:height,visibility}.caret{display:inline-block;width:0;height:0;margin-left:2px;vertical-align:middle;border-top:4px dashed;border-right:4px solid transparent;border-left:4px solid transparent}.dropdown,.dropup{position:relative}.dropdown-toggle:focus{outline:0}.dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;display:none;float:left;min-width:160px;padding:5px 0;margin:2px 0 0;font-size:14px;text-align:left;list-style:none;background-color:#fff;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid #ccc;border:1px solid rgba(0,0,0,.15);border-radius:4px;-webkit-box-shadow:0 6px 12px rgba(0,0,0,.175);box-shadow:0 6px 12px rgba(0,0,0,.175)}.dropdown-menu.pull-right{right:0;left:auto}.dropdown-menu .divider{height:1px;margin:9px 0;overflow:hidden;background-color:#e5e5e5}.dropdown-menu>li>a{display:block;padding:3px 20px;clear:both;font-weight:400;line-height:1.42857143;color:#333;white-space:nowrap}.dropdown-menu>li>a:focus,.dropdown-menu>li>a:hover{color:#262626;text-decoration:none;background-color:#f5f5f5}.dropdown-menu>.active>a,.dropdown-menu>.active>a:focus,.dropdown-menu>.active>a:hover{color:#fff;text-decoration:none;background-color:#337ab7;outline:0}.dropdown-menu>.disabled>a,.dropdown-menu>.disabled>a:focus,.dropdown-menu>.disabled>a:hover{color:#777}.dropdown-menu>.disabled>a:focus,.dropdown-menu>.disabled>a:hover{text-decoration:none;cursor:not-allowed;background-color:transparent;background-image:none;filter:progid:DXImageTransform.Microsoft.gradient(enabled=false)}.open>.dropdown-menu{display:block}.open>a{outline:0}.dropdown-menu-right{right:0;left:auto}.dropdown-menu-left{right:auto;left:0}.dropdown-header{display:block;padding:3px 20px;font-size:12px;line-height:1.42857143;color:#777;white-space:nowrap}.dropdown-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:990}.pull-right>.dropdown-menu{right:0;left:auto}.dropup .caret,.navbar-fixed-bottom .dropdown .caret{content:"";border-top:0;border-bottom:4px solid}.dropup .dropdown-menu,.navbar-fixed-bottom .dropdown .dropdown-menu{top:auto;bottom:100%;margin-bottom:2px}@media (min-width:768px){.navbar-right .dropdown-menu{right:0;left:auto}.navbar-right .dropdown-menu-left{right:auto;left:0}}.btn-group,.btn-group-vertical{position:relative;display:inline-block;vertical-align:middle}.btn-group-vertical>.btn,.btn-group>.btn{position:relative;float:left}.btn-group-vertical>.btn.active,.btn-group-vertical>.btn:active,.btn-group-vertical>.btn:focus,.btn-group-vertical>.btn:hover,.btn-group>.btn.active,.btn-group>.btn:active,.btn-group>.btn:focus,.btn-group>.btn:hover{z-index:2}.btn-group .btn+.btn,.btn-group .btn+.btn-group,.btn-group .btn-group+.btn,.btn-group .btn-group+.btn-group{margin-left:-1px}.btn-toolbar{margin-left:-5px}.btn-toolbar .btn-group,.btn-toolbar .input-group{float:left}.btn-toolbar>.btn,.btn-toolbar>.btn-group,.btn-toolbar>.input-group{margin-left:5px}.btn-group>.btn:not(:first-child):not(:last-child):not(.dropdown-toggle){border-radius:0}.btn-group>.btn:first-child{margin-left:0}.btn-group>.btn:first-child:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn:last-child:not(:first-child),.btn-group>.dropdown-toggle:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.btn-group>.btn-group{float:left}.btn-group>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.btn-group>.btn-group:first-child:not(:last-child)>.btn:last-child,.btn-group>.btn-group:first-child:not(:last-child)>.dropdown-toggle{border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn-group:last-child:not(:first-child)>.btn:first-child{border-top-left-radius:0;border-bottom-left-radius:0}.btn-group .dropdown-toggle:active,.btn-group.open .dropdown-toggle{outline:0}.btn-group>.btn+.dropdown-toggle{padding-right:8px;padding-left:8px}.btn-group>.btn-lg+.dropdown-toggle{padding-right:12px;padding-left:12px}.btn-group.open .dropdown-toggle{-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn-group.open .dropdown-toggle.btn-link{-webkit-box-shadow:none;box-shadow:none}.btn .caret{margin-left:0}.btn-lg .caret{border-width:5px 5px 0;border-bottom-width:0}.dropup .btn-lg .caret{border-width:0 5px 5px}.btn-group-vertical>.btn,.btn-group-vertical>.btn-group,.btn-group-vertical>.btn-group>.btn{display:block;float:none;width:100%;max-width:100%}.btn-group-vertical>.btn-group>.btn{float:none}.btn-group-vertical>.btn+.btn,.btn-group-vertical>.btn+.btn-group,.btn-group-vertical>.btn-group+.btn,.btn-group-vertical>.btn-group+.btn-group{margin-top:-1px;margin-left:0}.btn-group-vertical>.btn:not(:first-child):not(:last-child){border-radius:0}.btn-group-vertical>.btn:first-child:not(:last-child){border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn:last-child:not(:first-child){border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:4px}.btn-group-vertical>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.btn-group-vertical>.btn-group:first-child:not(:last-child)>.btn:last-child,.btn-group-vertical>.btn-group:first-child:not(:last-child)>.dropdown-toggle{border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn-group:last-child:not(:first-child)>.btn:first-child{border-top-left-radius:0;border-top-right-radius:0}.btn-group-justified{display:table;width:100%;table-layout:fixed;border-collapse:separate}.btn-group-justified>.btn,.btn-group-justified>.btn-group{display:table-cell;float:none;width:1%}.btn-group-justified>.btn-group .btn{width:100%}.btn-group-justified>.btn-group .dropdown-menu{left:auto}[data-toggle=buttons]>.btn input[type=checkbox],[data-toggle=buttons]>.btn input[type=radio],[data-toggle=buttons]>.btn-group>.btn input[type=checkbox],[data-toggle=buttons]>.btn-group>.btn input[type=radio]{position:absolute;clip:rect(0,0,0,0);pointer-events:none}.input-group{position:relative;display:table;border-collapse:separate}.input-group[class*=col-]{float:none;padding-right:0;padding-left:0}.input-group .form-control{position:relative;z-index:2;float:left;width:100%;margin-bottom:0}.input-group-lg>.form-control,.input-group-lg>.input-group-addon,.input-group-lg>.input-group-btn>.btn{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}select.input-group-lg>.form-control,select.input-group-lg>.input-group-addon,select.input-group-lg>.input-group-btn>.btn{height:46px;line-height:46px}select[multiple].input-group-lg>.form-control,select[multiple].input-group-lg>.input-group-addon,select[multiple].input-group-lg>.input-group-btn>.btn,textarea.input-group-lg>.form-control,textarea.input-group-lg>.input-group-addon,textarea.input-group-lg>.input-group-btn>.btn{height:auto}.input-group-sm>.form-control,.input-group-sm>.input-group-addon,.input-group-sm>.input-group-btn>.btn{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}select.input-group-sm>.form-control,select.input-group-sm>.input-group-addon,select.input-group-sm>.input-group-btn>.btn{height:30px;line-height:30px}select[multiple].input-group-sm>.form-control,select[multiple].input-group-sm>.input-group-addon,select[multiple].input-group-sm>.input-group-btn>.btn,textarea.input-group-sm>.form-control,textarea.input-group-sm>.input-group-addon,textarea.input-group-sm>.input-group-btn>.btn{height:auto}.input-group .form-control,.input-group-addon,.input-group-btn{display:table-cell}.input-group .form-control:not(:first-child):not(:last-child),.input-group-addon:not(:first-child):not(:last-child),.input-group-btn:not(:first-child):not(:last-child){border-radius:0}.input-group-addon,.input-group-btn{width:1%;white-space:nowrap;vertical-align:middle}.input-group-addon{padding:6px 12px;font-size:14px;font-weight:400;line-height:1;color:#555;text-align:center;background-color:#eee;border:1px solid #ccc;border-radius:4px}.input-group-addon.input-sm{padding:5px 10px;font-size:12px;border-radius:3px}.input-group-addon.input-lg{padding:10px 16px;font-size:18px;border-radius:6px}.input-group-addon input[type=checkbox],.input-group-addon input[type=radio]{margin-top:0}.input-group .form-control:first-child,.input-group-addon:first-child,.input-group-btn:first-child>.btn,.input-group-btn:first-child>.btn-group>.btn,.input-group-btn:first-child>.dropdown-toggle,.input-group-btn:last-child>.btn-group:not(:last-child)>.btn,.input-group-btn:last-child>.btn:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}.input-group-addon:first-child{border-right:0}.input-group .form-control:last-child,.input-group-addon:last-child,.input-group-btn:first-child>.btn-group:not(:first-child)>.btn,.input-group-btn:first-child>.btn:not(:first-child),.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group>.btn,.input-group-btn:last-child>.dropdown-toggle{border-top-left-radius:0;border-bottom-left-radius:0}.input-group-addon:last-child{border-left:0}.input-group-btn{position:relative;font-size:0;white-space:nowrap}.input-group-btn>.btn{position:relative}.input-group-btn>.btn+.btn{margin-left:-1px}.input-group-btn>.btn:active,.input-group-btn>.btn:focus,.input-group-btn>.btn:hover{z-index:2}.input-group-btn:first-child>.btn,.input-group-btn:first-child>.btn-group{margin-right:-1px}.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group{margin-left:-1px}.nav{padding-left:0;margin-bottom:0;list-style:none}.nav>li{position:relative;display:block}.nav>li>a{position:relative;display:block;padding:10px 15px}.nav>li>a:focus,.nav>li>a:hover{text-decoration:none;background-color:#eee}.nav>li.disabled>a{color:#777}.nav>li.disabled>a:focus,.nav>li.disabled>a:hover{color:#777;text-decoration:none;cursor:not-allowed;background-color:transparent}.nav .open>a,.nav .open>a:focus,.nav .open>a:hover{background-color:#eee;border-color:#337ab7}.nav .nav-divider{height:1px;margin:9px 0;overflow:hidden;background-color:#e5e5e5}.nav>li>a>img{max-width:none}.nav-tabs{border-bottom:1px solid #ddd}.nav-tabs>li{float:left;margin-bottom:-1px}.nav-tabs>li>a{margin-right:2px;line-height:1.42857143;border:1px solid transparent;border-radius:4px 4px 0 0}.nav-tabs>li>a:hover{border-color:#eee #eee #ddd}.nav-tabs>li.active>a,.nav-tabs>li.active>a:focus,.nav-tabs>li.active>a:hover{color:#555;cursor:default;background-color:#fff;border:1px solid #ddd;border-bottom-color:transparent}.nav-tabs.nav-justified{width:100%;border-bottom:0}.nav-tabs.nav-justified>li{float:none}.nav-tabs.nav-justified>li>a{margin-bottom:5px;text-align:center}.nav-tabs.nav-justified>.dropdown .dropdown-menu{top:auto;left:auto}@media (min-width:768px){.nav-tabs.nav-justified>li{display:table-cell;width:1%}.nav-tabs.nav-justified>li>a{margin-bottom:0}}.nav-tabs.nav-justified>li>a{margin-right:0;border-radius:4px}.nav-tabs.nav-justified>.active>a,.nav-tabs.nav-justified>.active>a:focus,.nav-tabs.nav-justified>.active>a:hover{border:1px solid #ddd}@media (min-width:768px){.nav-tabs.nav-justified>li>a{border-bottom:1px solid #ddd;border-radius:4px 4px 0 0}.nav-tabs.nav-justified>.active>a,.nav-tabs.nav-justified>.active>a:focus,.nav-tabs.nav-justified>.active>a:hover{border-bottom-color:#fff}}.nav-pills>li{float:left}.nav-pills>li>a{border-radius:4px}.nav-pills>li+li{margin-left:2px}.nav-pills>li.active>a,.nav-pills>li.active>a:focus,.nav-pills>li.active>a:hover{color:#fff;background-color:#337ab7}.nav-stacked>li{float:none}.nav-stacked>li+li{margin-top:2px;margin-left:0}.nav-justified{width:100%}.nav-justified>li{float:none}.nav-justified>li>a{margin-bottom:5px;text-align:center}.nav-justified>.dropdown .dropdown-menu{top:auto;left:auto}@media (min-width:768px){.nav-justified>li{display:table-cell;width:1%}.nav-justified>li>a{margin-bottom:0}}.nav-tabs-justified{border-bottom:0}.nav-tabs-justified>li>a{margin-right:0;border-radius:4px}.nav-tabs-justified>.active>a,.nav-tabs-justified>.active>a:focus,.nav-tabs-justified>.active>a:hover{border:1px solid #ddd}@media (min-width:768px){.nav-tabs-justified>li>a{border-bottom:1px solid #ddd;border-radius:4px 4px 0 0}.nav-tabs-justified>.active>a,.nav-tabs-justified>.active>a:focus,.nav-tabs-justified>.active>a:hover{border-bottom-color:#fff}}.tab-content>.tab-pane{display:none}.tab-content>.active{display:block}.nav-tabs .dropdown-menu{margin-top:-1px;border-top-left-radius:0;border-top-right-radius:0}.navbar{position:relative;min-height:50px;margin-bottom:20px;border:1px solid transparent}@media (min-width:768px){.navbar{border-radius:4px}}@media (min-width:768px){.navbar-header{float:left}}.navbar-collapse{padding-right:15px;padding-left:15px;overflow-x:visible;-webkit-overflow-scrolling:touch;border-top:1px solid transparent;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.1);box-shadow:inset 0 1px 0 rgba(255,255,255,.1)}.navbar-collapse.in{overflow-y:auto}@media (min-width:768px){.navbar-collapse{width:auto;border-top:0;-webkit-box-shadow:none;box-shadow:none}.navbar-collapse.collapse{display:block!important;height:auto!important;padding-bottom:0;overflow:visible!important}.navbar-collapse.in{overflow-y:visible}.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse,.navbar-static-top .navbar-collapse{padding-right:0;padding-left:0}}.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse{max-height:340px}@media (max-device-width:480px)and (orientation:landscape){.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse{max-height:200px}}.container-fluid>.navbar-collapse,.container-fluid>.navbar-header,.container>.navbar-collapse,.container>.navbar-header{margin-right:-15px;margin-left:-15px}@media (min-width:768px){.container-fluid>.navbar-collapse,.container-fluid>.navbar-header,.container>.navbar-collapse,.container>.navbar-header{margin-right:0;margin-left:0}}.navbar-static-top{z-index:1000;border-width:0 0 1px}@media (min-width:768px){.navbar-static-top{border-radius:0}}.navbar-fixed-bottom,.navbar-fixed-top{position:fixed;right:0;left:0;z-index:1030}@media (min-width:768px){.navbar-fixed-bottom,.navbar-fixed-top{border-radius:0}}.navbar-fixed-top{top:0;border-width:0 0 1px}.navbar-fixed-bottom{bottom:0;margin-bottom:0;border-width:1px 0 0}.navbar-brand{float:left;height:50px;padding:15px 15px;font-size:18px;line-height:20px}.navbar-brand:focus,.navbar-brand:hover{text-decoration:none}.navbar-brand>img{display:block}@media (min-width:768px){.navbar>.container .navbar-brand,.navbar>.container-fluid .navbar-brand{margin-left:-15px}}.navbar-toggle{position:relative;float:right;padding:9px 10px;margin-top:8px;margin-right:15px;margin-bottom:8px;background-color:transparent;background-image:none;border:1px solid transparent;border-radius:4px}.navbar-toggle:focus{outline:0}.navbar-toggle .icon-bar{display:block;width:22px;height:2px;border-radius:1px}.navbar-toggle .icon-bar+.icon-bar{margin-top:4px}@media (min-width:768px){.navbar-toggle{display:none}}.navbar-nav{margin:7.5px -15px}.navbar-nav>li>a{padding-top:10px;padding-bottom:10px;line-height:20px}@media (max-width:767px){.navbar-nav .open .dropdown-menu{position:static;float:none;width:auto;margin-top:0;background-color:transparent;border:0;-webkit-box-shadow:none;box-shadow:none}.navbar-nav .open .dropdown-menu .dropdown-header,.navbar-nav .open .dropdown-menu>li>a{padding:5px 15px 5px 25px}.navbar-nav .open .dropdown-menu>li>a{line-height:20px}.navbar-nav .open .dropdown-menu>li>a:focus,.navbar-nav .open .dropdown-menu>li>a:hover{background-image:none}}@media (min-width:768px){.navbar-nav{float:left;margin:0}.navbar-nav>li{float:left}.navbar-nav>li>a{padding-top:15px;padding-bottom:15px}}.navbar-form{padding:10px 15px;margin-top:8px;margin-right:-15px;margin-bottom:8px;margin-left:-15px;border-top:1px solid transparent;border-bottom:1px solid transparent;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 1px 0 rgba(255,255,255,.1);box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 1px 0 rgba(255,255,255,.1)}@media (min-width:768px){.navbar-form .form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.navbar-form .form-control{display:inline-block;width:auto;vertical-align:middle}.navbar-form .form-control-static{display:inline-block}.navbar-form .input-group{display:inline-table;vertical-align:middle}.navbar-form .input-group .form-control,.navbar-form .input-group .input-group-addon,.navbar-form .input-group .input-group-btn{width:auto}.navbar-form .input-group>.form-control{width:100%}.navbar-form .control-label{margin-bottom:0;vertical-align:middle}.navbar-form .checkbox,.navbar-form .radio{display:inline-block;margin-top:0;margin-bottom:0;vertical-align:middle}.navbar-form .checkbox label,.navbar-form .radio label{padding-left:0}.navbar-form .checkbox input[type=checkbox],.navbar-form .radio input[type=radio]{position:relative;margin-left:0}.navbar-form .has-feedback .form-control-feedback{top:0}}@media (max-width:767px){.navbar-form .form-group{margin-bottom:5px}.navbar-form .form-group:last-child{margin-bottom:0}}@media (min-width:768px){.navbar-form{width:auto;padding-top:0;padding-bottom:0;margin-right:0;margin-left:0;border:0;-webkit-box-shadow:none;box-shadow:none}}.navbar-nav>li>.dropdown-menu{margin-top:0;border-top-left-radius:0;border-top-right-radius:0}.navbar-fixed-bottom .navbar-nav>li>.dropdown-menu{margin-bottom:0;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.navbar-btn{margin-top:8px;margin-bottom:8px}.navbar-btn.btn-sm{margin-top:10px;margin-bottom:10px}.navbar-btn.btn-xs{margin-top:14px;margin-bottom:14px}.navbar-text{margin-top:15px;margin-bottom:15px}@media (min-width:768px){.navbar-text{float:left;margin-right:15px;margin-left:15px}}@media (min-width:768px){.navbar-left{float:left!important}.navbar-right{float:right!important;margin-right:-15px}.navbar-right~.navbar-right{margin-right:0}}.navbar-default{background-color:#f8f8f8;border-color:#e7e7e7}.navbar-default .navbar-brand{color:#777}.navbar-default .navbar-brand:focus,.navbar-default .navbar-brand:hover{color:#5e5e5e;background-color:transparent}.navbar-default .navbar-text{color:#777}.navbar-default .navbar-nav>li>a{color:#777}.navbar-default .navbar-nav>li>a:focus,.navbar-default .navbar-nav>li>a:hover{color:#333;background-color:transparent}.navbar-default .navbar-nav>.active>a,.navbar-default .navbar-nav>.active>a:focus,.navbar-default .navbar-nav>.active>a:hover{color:#555;background-color:#e7e7e7}.navbar-default .navbar-nav>.disabled>a,.navbar-default .navbar-nav>.disabled>a:focus,.navbar-default .navbar-nav>.disabled>a:hover{color:#ccc;background-color:transparent}.navbar-default .navbar-toggle{border-color:#ddd}.navbar-default .navbar-toggle:focus,.navbar-default .navbar-toggle:hover{background-color:#ddd}.navbar-default .navbar-toggle .icon-bar{background-color:#888}.navbar-default .navbar-collapse,.navbar-default .navbar-form{border-color:#e7e7e7}.navbar-default .navbar-nav>.open>a,.navbar-default .navbar-nav>.open>a:focus,.navbar-default .navbar-nav>.open>a:hover{color:#555;background-color:#e7e7e7}@media (max-width:767px){.navbar-default .navbar-nav .open .dropdown-menu>li>a{color:#777}.navbar-default .navbar-nav .open .dropdown-menu>li>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>li>a:hover{color:#333;background-color:transparent}.navbar-default .navbar-nav .open .dropdown-menu>.active>a,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:hover{color:#555;background-color:#e7e7e7}.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:hover{color:#ccc;background-color:transparent}}.navbar-default .navbar-link{color:#777}.navbar-default .navbar-link:hover{color:#333}.navbar-default .btn-link{color:#777}.navbar-default .btn-link:focus,.navbar-default .btn-link:hover{color:#333}.navbar-default .btn-link[disabled]:focus,.navbar-default .btn-link[disabled]:hover,fieldset[disabled] .navbar-default .btn-link:focus,fieldset[disabled] .navbar-default .btn-link:hover{color:#ccc}.navbar-inverse{background-color:#222;border-color:#080808}.navbar-inverse .navbar-brand{color:#9d9d9d}.navbar-inverse .navbar-brand:focus,.navbar-inverse .navbar-brand:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-text{color:#9d9d9d}.navbar-inverse .navbar-nav>li>a{color:#9d9d9d}.navbar-inverse .navbar-nav>li>a:focus,.navbar-inverse .navbar-nav>li>a:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-nav>.active>a,.navbar-inverse .navbar-nav>.active>a:focus,.navbar-inverse .navbar-nav>.active>a:hover{color:#fff;background-color:#080808}.navbar-inverse .navbar-nav>.disabled>a,.navbar-inverse .navbar-nav>.disabled>a:focus,.navbar-inverse .navbar-nav>.disabled>a:hover{color:#444;background-color:transparent}.navbar-inverse .navbar-toggle{border-color:#333}.navbar-inverse .navbar-toggle:focus,.navbar-inverse .navbar-toggle:hover{background-color:#333}.navbar-inverse .navbar-toggle .icon-bar{background-color:#fff}.navbar-inverse .navbar-collapse,.navbar-inverse .navbar-form{border-color:#101010}.navbar-inverse .navbar-nav>.open>a,.navbar-inverse .navbar-nav>.open>a:focus,.navbar-inverse .navbar-nav>.open>a:hover{color:#fff;background-color:#080808}@media (max-width:767px){.navbar-inverse .navbar-nav .open .dropdown-menu>.dropdown-header{border-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu .divider{background-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a{color:#9d9d9d}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:hover{color:#fff;background-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:hover{color:#444;background-color:transparent}}.navbar-inverse .navbar-link{color:#9d9d9d}.navbar-inverse .navbar-link:hover{color:#fff}.navbar-inverse .btn-link{color:#9d9d9d}.navbar-inverse .btn-link:focus,.navbar-inverse .btn-link:hover{color:#fff}.navbar-inverse .btn-link[disabled]:focus,.navbar-inverse .btn-link[disabled]:hover,fieldset[disabled] .navbar-inverse .btn-link:focus,fieldset[disabled] .navbar-inverse .btn-link:hover{color:#444}.breadcrumb{padding:8px 15px;margin-bottom:20px;list-style:none;background-color:#f5f5f5;border-radius:4px}.breadcrumb>li{display:inline-block}.breadcrumb>li+li:before{padding:0 5px;color:#ccc;content:"/\00a0"}.breadcrumb>.active{color:#777}.pagination{display:inline-block;padding-left:0;margin:20px 0;border-radius:4px}.pagination>li{display:inline}.pagination>li>a,.pagination>li>span{position:relative;float:left;padding:6px 12px;margin-left:-1px;line-height:1.42857143;color:#337ab7;text-decoration:none;background-color:#fff;border:1px solid #ddd}.pagination>li:first-child>a,.pagination>li:first-child>span{margin-left:0;border-top-left-radius:4px;border-bottom-left-radius:4px}.pagination>li:last-child>a,.pagination>li:last-child>span{border-top-right-radius:4px;border-bottom-right-radius:4px}.pagination>li>a:focus,.pagination>li>a:hover,.pagination>li>span:focus,.pagination>li>span:hover{color:#23527c;background-color:#eee;border-color:#ddd}.pagination>.active>a,.pagination>.active>a:focus,.pagination>.active>a:hover,.pagination>.active>span,.pagination>.active>span:focus,.pagination>.active>span:hover{z-index:2;color:#fff;cursor:default;background-color:#337ab7;border-color:#337ab7}.pagination>.disabled>a,.pagination>.disabled>a:focus,.pagination>.disabled>a:hover,.pagination>.disabled>span,.pagination>.disabled>span:focus,.pagination>.disabled>span:hover{color:#777;cursor:not-allowed;background-color:#fff;border-color:#ddd}.pagination-lg>li>a,.pagination-lg>li>span{padding:10px 16px;font-size:18px}.pagination-lg>li:first-child>a,.pagination-lg>li:first-child>span{border-top-left-radius:6px;border-bottom-left-radius:6px}.pagination-lg>li:last-child>a,.pagination-lg>li:last-child>span{border-top-right-radius:6px;border-bottom-right-radius:6px}.pagination-sm>li>a,.pagination-sm>li>span{padding:5px 10px;font-size:12px}.pagination-sm>li:first-child>a,.pagination-sm>li:first-child>span{border-top-left-radius:3px;border-bottom-left-radius:3px}.pagination-sm>li:last-child>a,.pagination-sm>li:last-child>span{border-top-right-radius:3px;border-bottom-right-radius:3px}.pager{padding-left:0;margin:20px 0;text-align:center;list-style:none}.pager li{display:inline}.pager li>a,.pager li>span{display:inline-block;padding:5px 14px;background-color:#fff;border:1px solid #ddd;border-radius:15px}.pager li>a:focus,.pager li>a:hover{text-decoration:none;background-color:#eee}.pager .next>a,.pager .next>span{float:right}.pager .previous>a,.pager .previous>span{float:left}.pager .disabled>a,.pager .disabled>a:focus,.pager .disabled>a:hover,.pager .disabled>span{color:#777;cursor:not-allowed;background-color:#fff}.label{display:inline;padding:.2em .6em .3em;font-size:75%;font-weight:700;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.25em}a.label:focus,a.label:hover{color:#fff;text-decoration:none;cursor:pointer}.label:empty{display:none}.btn .label{position:relative;top:-1px}.label-default{background-color:#777}.label-default[href]:focus,.label-default[href]:hover{background-color:#5e5e5e}.label-primary{background-color:#337ab7}.label-primary[href]:focus,.label-primary[href]:hover{background-color:#286090}.label-success{background-color:#5cb85c}.label-success[href]:focus,.label-success[href]:hover{background-color:#449d44}.label-info{background-color:#5bc0de}.label-info[href]:focus,.label-info[href]:hover{background-color:#31b0d5}.label-warning{background-color:#f0ad4e}.label-warning[href]:focus,.label-warning[href]:hover{background-color:#ec971f}.label-danger{background-color:#d9534f}.label-danger[href]:focus,.label-danger[href]:hover{background-color:#c9302c}.badge{display:inline-block;min-width:10px;padding:3px 7px;font-size:12px;font-weight:700;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:baseline;background-color:#777;border-radius:10px}.badge:empty{display:none}.btn .badge{position:relative;top:-1px}.btn-group-xs>.btn .badge,.btn-xs .badge{top:0;padding:1px 5px}a.badge:focus,a.badge:hover{color:#fff;text-decoration:none;cursor:pointer}.list-group-item.active>.badge,.nav-pills>.active>a>.badge{color:#337ab7;background-color:#fff}.list-group-item>.badge{float:right}.list-group-item>.badge+.badge{margin-right:5px}.nav-pills>li>a>.badge{margin-left:3px}.jumbotron{padding:30px 15px;margin-bottom:30px;color:inherit;background-color:#eee}.jumbotron .h1,.jumbotron h1{color:inherit}.jumbotron p{margin-bottom:15px;font-size:21px;font-weight:200}.jumbotron>hr{border-top-color:#d5d5d5}.container .jumbotron,.container-fluid .jumbotron{border-radius:6px}.jumbotron .container{max-width:100%}@media screen and (min-width:768px){.jumbotron{padding:48px 0}.container .jumbotron,.container-fluid .jumbotron{padding-right:60px;padding-left:60px}.jumbotron .h1,.jumbotron h1{font-size:63px}}.thumbnail{display:block;padding:4px;margin-bottom:20px;line-height:1.42857143;background-color:#fff;border:1px solid #ddd;border-radius:4px;-webkit-transition:border .2s ease-in-out;-o-transition:border .2s ease-in-out;transition:border .2s ease-in-out}.thumbnail a>img,.thumbnail>img{margin-right:auto;margin-left:auto}a.thumbnail.active,a.thumbnail:focus,a.thumbnail:hover{border-color:#337ab7}.thumbnail .caption{padding:9px;color:#333}.alert{padding:15px;margin-bottom:20px;border:1px solid transparent;border-radius:4px}.alert h4{margin-top:0;color:inherit}.alert .alert-link{font-weight:700}.alert>p,.alert>ul{margin-bottom:0}.alert>p+p{margin-top:5px}.alert-dismissable,.alert-dismissible{padding-right:35px}.alert-dismissable .close,.alert-dismissible .close{position:relative;top:-2px;right:-21px;color:inherit}.alert-success{color:#3c763d;background-color:#dff0d8;border-color:#d6e9c6}.alert-success hr{border-top-color:#c9e2b3}.alert-success .alert-link{color:#2b542c}.alert-info{color:#31708f;background-color:#d9edf7;border-color:#bce8f1}.alert-info hr{border-top-color:#a6e1ec}.alert-info .alert-link{color:#245269}.alert-warning{color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc}.alert-warning hr{border-top-color:#f7e1b5}.alert-warning .alert-link{color:#66512c}.alert-danger{color:#a94442;background-color:#f2dede;border-color:#ebccd1}.alert-danger hr{border-top-color:#e4b9c0}.alert-danger .alert-link{color:#843534}@-webkit-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}@-o-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}@keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}.progress{height:20px;margin-bottom:20px;overflow:hidden;background-color:#f5f5f5;border-radius:4px;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);box-shadow:inset 0 1px 2px rgba(0,0,0,.1)}.progress-bar{float:left;width:0;height:100%;font-size:12px;line-height:20px;color:#fff;text-align:center;background-color:#337ab7;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);-webkit-transition:width .6s ease;-o-transition:width .6s ease;transition:width .6s ease}.progress-bar-striped,.progress-striped .progress-bar{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);-webkit-background-size:40px 40px;background-size:40px 40px}.progress-bar.active,.progress.active .progress-bar{-webkit-animation:progress-bar-stripes 2s linear infinite;-o-animation:progress-bar-stripes 2s linear infinite;animation:progress-bar-stripes 2s linear infinite}.progress-bar-success{background-color:#5cb85c}.progress-striped .progress-bar-success{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-info{background-color:#5bc0de}.progress-striped .progress-bar-info{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-warning{background-color:#f0ad4e}.progress-striped .progress-bar-warning{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-danger{background-color:#d9534f}.progress-striped .progress-bar-danger{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.media{margin-top:15px}.media:first-child{margin-top:0}.media,.media-body{overflow:hidden;zoom:1}.media-body{width:10000px}.media-object{display:block}.media-right,.media>.pull-right{padding-left:10px}.media-left,.media>.pull-left{padding-right:10px}.media-body,.media-left,.media-right{display:table-cell;vertical-align:top}.media-middle{vertical-align:middle}.media-bottom{vertical-align:bottom}.media-heading{margin-top:0;margin-bottom:5px}.media-list{padding-left:0;list-style:none}.list-group{padding-left:0;margin-bottom:20px}.list-group-item{position:relative;display:block;padding:10px 15px;margin-bottom:-1px;background-color:#fff;border:1px solid #ddd}.list-group-item:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.list-group-item:last-child{margin-bottom:0;border-bottom-right-radius:4px;border-bottom-left-radius:4px}a.list-group-item{color:#555}a.list-group-item .list-group-item-heading{color:#333}a.list-group-item:focus,a.list-group-item:hover{color:#555;text-decoration:none;background-color:#f5f5f5}.list-group-item.disabled,.list-group-item.disabled:focus,.list-group-item.disabled:hover{color:#777;cursor:not-allowed;background-color:#eee}.list-group-item.disabled .list-group-item-heading,.list-group-item.disabled:focus .list-group-item-heading,.list-group-item.disabled:hover .list-group-item-heading{color:inherit}.list-group-item.disabled .list-group-item-text,.list-group-item.disabled:focus .list-group-item-text,.list-group-item.disabled:hover .list-group-item-text{color:#777}.list-group-item.active,.list-group-item.active:focus,.list-group-item.active:hover{z-index:2;color:#fff;background-color:#337ab7;border-color:#337ab7}.list-group-item.active .list-group-item-heading,.list-group-item.active .list-group-item-heading>.small,.list-group-item.active .list-group-item-heading>small,.list-group-item.active:focus .list-group-item-heading,.list-group-item.active:focus .list-group-item-heading>.small,.list-group-item.active:focus .list-group-item-heading>small,.list-group-item.active:hover .list-group-item-heading,.list-group-item.active:hover .list-group-item-heading>.small,.list-group-item.active:hover .list-group-item-heading>small{color:inherit}.list-group-item.active .list-group-item-text,.list-group-item.active:focus .list-group-item-text,.list-group-item.active:hover .list-group-item-text{color:#c7ddef}.list-group-item-success{color:#3c763d;background-color:#dff0d8}a.list-group-item-success{color:#3c763d}a.list-group-item-success .list-group-item-heading{color:inherit}a.list-group-item-success:focus,a.list-group-item-success:hover{color:#3c763d;background-color:#d0e9c6}a.list-group-item-success.active,a.list-group-item-success.active:focus,a.list-group-item-success.active:hover{color:#fff;background-color:#3c763d;border-color:#3c763d}.list-group-item-info{color:#31708f;background-color:#d9edf7}a.list-group-item-info{color:#31708f}a.list-group-item-info .list-group-item-heading{color:inherit}a.list-group-item-info:focus,a.list-group-item-info:hover{color:#31708f;background-color:#c4e3f3}a.list-group-item-info.active,a.list-group-item-info.active:focus,a.list-group-item-info.active:hover{color:#fff;background-color:#31708f;border-color:#31708f}.list-group-item-warning{color:#8a6d3b;background-color:#fcf8e3}a.list-group-item-warning{color:#8a6d3b}a.list-group-item-warning .list-group-item-heading{color:inherit}a.list-group-item-warning:focus,a.list-group-item-warning:hover{color:#8a6d3b;background-color:#faf2cc}a.list-group-item-warning.active,a.list-group-item-warning.active:focus,a.list-group-item-warning.active:hover{color:#fff;background-color:#8a6d3b;border-color:#8a6d3b}.list-group-item-danger{color:#a94442;background-color:#f2dede}a.list-group-item-danger{color:#a94442}a.list-group-item-danger .list-group-item-heading{color:inherit}a.list-group-item-danger:focus,a.list-group-item-danger:hover{color:#a94442;background-color:#ebcccc}a.list-group-item-danger.active,a.list-group-item-danger.active:focus,a.list-group-item-danger.active:hover{color:#fff;background-color:#a94442;border-color:#a94442}.list-group-item-heading{margin-top:0;margin-bottom:5px}.list-group-item-text{margin-bottom:0;line-height:1.3}.panel{margin-bottom:20px;background-color:#fff;border:1px solid transparent;border-radius:4px;-webkit-box-shadow:0 1px 1px rgba(0,0,0,.05);box-shadow:0 1px 1px rgba(0,0,0,.05)}.panel-body{padding:15px}.panel-heading{padding:10px 15px;border-bottom:1px solid transparent;border-top-left-radius:3px;border-top-right-radius:3px}.panel-heading>.dropdown .dropdown-toggle{color:inherit}.panel-title{margin-top:0;margin-bottom:0;font-size:16px;color:inherit}.panel-title>.small,.panel-title>.small>a,.panel-title>a,.panel-title>small,.panel-title>small>a{color:inherit}.panel-footer{padding:10px 15px;background-color:#f5f5f5;border-top:1px solid #ddd;border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.list-group,.panel>.panel-collapse>.list-group{margin-bottom:0}.panel>.list-group .list-group-item,.panel>.panel-collapse>.list-group .list-group-item{border-width:1px 0;border-radius:0}.panel>.list-group:first-child .list-group-item:first-child,.panel>.panel-collapse>.list-group:first-child .list-group-item:first-child{border-top:0;border-top-left-radius:3px;border-top-right-radius:3px}.panel>.list-group:last-child .list-group-item:last-child,.panel>.panel-collapse>.list-group:last-child .list-group-item:last-child{border-bottom:0;border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel-heading+.list-group .list-group-item:first-child{border-top-width:0}.list-group+.panel-footer{border-top-width:0}.panel>.panel-collapse>.table,.panel>.table,.panel>.table-responsive>.table{margin-bottom:0}.panel>.panel-collapse>.table caption,.panel>.table caption,.panel>.table-responsive>.table caption{padding-right:15px;padding-left:15px}.panel>.table-responsive:first-child>.table:first-child,.panel>.table:first-child{border-top-left-radius:3px;border-top-right-radius:3px}.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child,.panel>.table:first-child>thead:first-child>tr:first-child{border-top-left-radius:3px;border-top-right-radius:3px}.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:first-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child td:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child th:first-child,.panel>.table:first-child>thead:first-child>tr:first-child td:first-child,.panel>.table:first-child>thead:first-child>tr:first-child th:first-child{border-top-left-radius:3px}.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:last-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:last-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:last-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:last-child,.panel>.table:first-child>tbody:first-child>tr:first-child td:last-child,.panel>.table:first-child>tbody:first-child>tr:first-child th:last-child,.panel>.table:first-child>thead:first-child>tr:first-child td:last-child,.panel>.table:first-child>thead:first-child>tr:first-child th:last-child{border-top-right-radius:3px}.panel>.table-responsive:last-child>.table:last-child,.panel>.table:last-child{border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child{border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:first-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:first-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:first-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:first-child,.panel>.table:last-child>tbody:last-child>tr:last-child td:first-child,.panel>.table:last-child>tbody:last-child>tr:last-child th:first-child,.panel>.table:last-child>tfoot:last-child>tr:last-child td:first-child,.panel>.table:last-child>tfoot:last-child>tr:last-child th:first-child{border-bottom-left-radius:3px}.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:last-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child td:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child th:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child td:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child th:last-child{border-bottom-right-radius:3px}.panel>.panel-body+.table,.panel>.panel-body+.table-responsive,.panel>.table+.panel-body,.panel>.table-responsive+.panel-body{border-top:1px solid #ddd}.panel>.table>tbody:first-child>tr:first-child td,.panel>.table>tbody:first-child>tr:first-child th{border-top:0}.panel>.table-bordered,.panel>.table-responsive>.table-bordered{border:0}.panel>.table-bordered>tbody>tr>td:first-child,.panel>.table-bordered>tbody>tr>th:first-child,.panel>.table-bordered>tfoot>tr>td:first-child,.panel>.table-bordered>tfoot>tr>th:first-child,.panel>.table-bordered>thead>tr>td:first-child,.panel>.table-bordered>thead>tr>th:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:first-child,.panel>.table-responsive>.table-bordered>thead>tr>td:first-child,.panel>.table-responsive>.table-bordered>thead>tr>th:first-child{border-left:0}.panel>.table-bordered>tbody>tr>td:last-child,.panel>.table-bordered>tbody>tr>th:last-child,.panel>.table-bordered>tfoot>tr>td:last-child,.panel>.table-bordered>tfoot>tr>th:last-child,.panel>.table-bordered>thead>tr>td:last-child,.panel>.table-bordered>thead>tr>th:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:last-child,.panel>.table-responsive>.table-bordered>thead>tr>td:last-child,.panel>.table-responsive>.table-bordered>thead>tr>th:last-child{border-right:0}.panel>.table-bordered>tbody>tr:first-child>td,.panel>.table-bordered>tbody>tr:first-child>th,.panel>.table-bordered>thead>tr:first-child>td,.panel>.table-bordered>thead>tr:first-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:first-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:first-child>th,.panel>.table-responsive>.table-bordered>thead>tr:first-child>td,.panel>.table-responsive>.table-bordered>thead>tr:first-child>th{border-bottom:0}.panel>.table-bordered>tbody>tr:last-child>td,.panel>.table-bordered>tbody>tr:last-child>th,.panel>.table-bordered>tfoot>tr:last-child>td,.panel>.table-bordered>tfoot>tr:last-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>th,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>td,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>th{border-bottom:0}.panel>.table-responsive{margin-bottom:0;border:0}.panel-group{margin-bottom:20px}.panel-group .panel{margin-bottom:0;border-radius:4px}.panel-group .panel+.panel{margin-top:5px}.panel-group .panel-heading{border-bottom:0}.panel-group .panel-heading+.panel-collapse>.list-group,.panel-group .panel-heading+.panel-collapse>.panel-body{border-top:1px solid #ddd}.panel-group .panel-footer{border-top:0}.panel-group .panel-footer+.panel-collapse .panel-body{border-bottom:1px solid #ddd}.panel-default{border-color:#ddd}.panel-default>.panel-heading{color:#333;background-color:#f5f5f5;border-color:#ddd}.panel-default>.panel-heading+.panel-collapse>.panel-body{border-top-color:#ddd}.panel-default>.panel-heading .badge{color:#f5f5f5;background-color:#333}.panel-default>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#ddd}.panel-primary{border-color:#337ab7}.panel-primary>.panel-heading{color:#fff;background-color:#337ab7;border-color:#337ab7}.panel-primary>.panel-heading+.panel-collapse>.panel-body{border-top-color:#337ab7}.panel-primary>.panel-heading .badge{color:#337ab7;background-color:#fff}.panel-primary>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#337ab7}.panel-success{border-color:#d6e9c6}.panel-success>.panel-heading{color:#3c763d;background-color:#dff0d8;border-color:#d6e9c6}.panel-success>.panel-heading+.panel-collapse>.panel-body{border-top-color:#d6e9c6}.panel-success>.panel-heading .badge{color:#dff0d8;background-color:#3c763d}.panel-success>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#d6e9c6}.panel-info{border-color:#bce8f1}.panel-info>.panel-heading{color:#31708f;background-color:#d9edf7;border-color:#bce8f1}.panel-info>.panel-heading+.panel-collapse>.panel-body{border-top-color:#bce8f1}.panel-info>.panel-heading .badge{color:#d9edf7;background-color:#31708f}.panel-info>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#bce8f1}.panel-warning{border-color:#faebcc}.panel-warning>.panel-heading{color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc}.panel-warning>.panel-heading+.panel-collapse>.panel-body{border-top-color:#faebcc}.panel-warning>.panel-heading .badge{color:#fcf8e3;background-color:#8a6d3b}.panel-warning>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#faebcc}.panel-danger{border-color:#ebccd1}.panel-danger>.panel-heading{color:#a94442;background-color:#f2dede;border-color:#ebccd1}.panel-danger>.panel-heading+.panel-collapse>.panel-body{border-top-color:#ebccd1}.panel-danger>.panel-heading .badge{color:#f2dede;background-color:#a94442}.panel-danger>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#ebccd1}.embed-responsive{position:relative;display:block;height:0;padding:0;overflow:hidden}.embed-responsive .embed-responsive-item,.embed-responsive embed,.embed-responsive iframe,.embed-responsive object,.embed-responsive video{position:absolute;top:0;bottom:0;left:0;width:100%;height:100%;border:0}.embed-responsive-16by9{padding-bottom:56.25%}.embed-responsive-4by3{padding-bottom:75%}.well{min-height:20px;padding:19px;margin-bottom:20px;background-color:#f5f5f5;border:1px solid #e3e3e3;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.05);box-shadow:inset 0 1px 1px rgba(0,0,0,.05)}.well blockquote{border-color:#ddd;border-color:rgba(0,0,0,.15)}.well-lg{padding:24px;border-radius:6px}.well-sm{padding:9px;border-radius:3px}.close{float:right;font-size:21px;font-weight:700;line-height:1;color:#000;text-shadow:0 1px 0 #fff;filter:alpha(opacity=20);opacity:.2}.close:focus,.close:hover{color:#000;text-decoration:none;cursor:pointer;filter:alpha(opacity=50);opacity:.5}button.close{-webkit-appearance:none;padding:0;cursor:pointer;background:0 0;border:0}.modal-open{overflow:hidden}.modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1050;display:none;overflow:hidden;-webkit-overflow-scrolling:touch;outline:0}.modal.fade .modal-dialog{-webkit-transition:-webkit-transform .3s ease-out;-o-transition:-o-transform .3s ease-out;transition:transform .3s ease-out;-webkit-transform:translate(0,-25%);-ms-transform:translate(0,-25%);-o-transform:translate(0,-25%);transform:translate(0,-25%)}.modal.in .modal-dialog{-webkit-transform:translate(0,0);-ms-transform:translate(0,0);-o-transform:translate(0,0);transform:translate(0,0)}.modal-open .modal{overflow-x:hidden;overflow-y:auto}.modal-dialog{position:relative;width:auto;margin:10px}.modal-content{position:relative;background-color:#fff;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid #999;border:1px solid rgba(0,0,0,.2);border-radius:6px;outline:0;-webkit-box-shadow:0 3px 9px rgba(0,0,0,.5);box-shadow:0 3px 9px rgba(0,0,0,.5)}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1040;background-color:#000}.modal-backdrop.fade{filter:alpha(opacity=0);opacity:0}.modal-backdrop.in{filter:alpha(opacity=50);opacity:.5}.modal-header{min-height:16.43px;padding:15px;border-bottom:1px solid #e5e5e5}.modal-header .close{margin-top:-2px}.modal-title{margin:0;line-height:1.42857143}.modal-body{position:relative;padding:15px}.modal-footer{padding:15px;text-align:right;border-top:1px solid #e5e5e5}.modal-footer .btn+.btn{margin-bottom:0;margin-left:5px}.modal-footer .btn-group .btn+.btn{margin-left:-1px}.modal-footer .btn-block+.btn-block{margin-left:0}.modal-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}@media (min-width:768px){.modal-dialog{width:600px;margin:30px auto}.modal-content{-webkit-box-shadow:0 5px 15px rgba(0,0,0,.5);box-shadow:0 5px 15px rgba(0,0,0,.5)}.modal-sm{width:300px}}@media (min-width:992px){.modal-lg{width:900px}}.tooltip{position:absolute;z-index:1070;display:block;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:12px;font-weight:400;line-height:1.4;filter:alpha(opacity=0);opacity:0}.tooltip.in{filter:alpha(opacity=90);opacity:.9}.tooltip.top{padding:5px 0;margin-top:-3px}.tooltip.right{padding:0 5px;margin-left:3px}.tooltip.bottom{padding:5px 0;margin-top:3px}.tooltip.left{padding:0 5px;margin-left:-3px}.tooltip-inner{max-width:200px;padding:3px 8px;color:#fff;text-align:center;text-decoration:none;background-color:#000;border-radius:4px}.tooltip-arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid}.tooltip.top .tooltip-arrow{bottom:0;left:50%;margin-left:-5px;border-width:5px 5px 0;border-top-color:#000}.tooltip.top-left .tooltip-arrow{right:5px;bottom:0;margin-bottom:-5px;border-width:5px 5px 0;border-top-color:#000}.tooltip.top-right .tooltip-arrow{bottom:0;left:5px;margin-bottom:-5px;border-width:5px 5px 0;border-top-color:#000}.tooltip.right .tooltip-arrow{top:50%;left:0;margin-top:-5px;border-width:5px 5px 5px 0;border-right-color:#000}.tooltip.left .tooltip-arrow{top:50%;right:0;margin-top:-5px;border-width:5px 0 5px 5px;border-left-color:#000}.tooltip.bottom .tooltip-arrow{top:0;left:50%;margin-left:-5px;border-width:0 5px 5px;border-bottom-color:#000}.tooltip.bottom-left .tooltip-arrow{top:0;right:5px;margin-top:-5px;border-width:0 5px 5px;border-bottom-color:#000}.tooltip.bottom-right .tooltip-arrow{top:0;left:5px;margin-top:-5px;border-width:0 5px 5px;border-bottom-color:#000}.popover{position:absolute;top:0;left:0;z-index:1060;display:none;max-width:276px;padding:1px;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;font-weight:400;line-height:1.42857143;text-align:left;white-space:normal;background-color:#fff;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid #ccc;border:1px solid rgba(0,0,0,.2);border-radius:6px;-webkit-box-shadow:0 5px 10px rgba(0,0,0,.2);box-shadow:0 5px 10px rgba(0,0,0,.2)}.popover.top{margin-top:-10px}.popover.right{margin-left:10px}.popover.bottom{margin-top:10px}.popover.left{margin-left:-10px}.popover-title{padding:8px 14px;margin:0;font-size:14px;background-color:#f7f7f7;border-bottom:1px solid #ebebeb;border-radius:5px 5px 0 0}.popover-content{padding:9px 14px}.popover>.arrow,.popover>.arrow:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid}.popover>.arrow{border-width:11px}.popover>.arrow:after{content:"";border-width:10px}.popover.top>.arrow{bottom:-11px;left:50%;margin-left:-11px;border-top-color:#999;border-top-color:rgba(0,0,0,.25);border-bottom-width:0}.popover.top>.arrow:after{bottom:1px;margin-left:-10px;content:" ";border-top-color:#fff;border-bottom-width:0}.popover.right>.arrow{top:50%;left:-11px;margin-top:-11px;border-right-color:#999;border-right-color:rgba(0,0,0,.25);border-left-width:0}.popover.right>.arrow:after{bottom:-10px;left:1px;content:" ";border-right-color:#fff;border-left-width:0}.popover.bottom>.arrow{top:-11px;left:50%;margin-left:-11px;border-top-width:0;border-bottom-color:#999;border-bottom-color:rgba(0,0,0,.25)}.popover.bottom>.arrow:after{top:1px;margin-left:-10px;content:" ";border-top-width:0;border-bottom-color:#fff}.popover.left>.arrow{top:50%;right:-11px;margin-top:-11px;border-right-width:0;border-left-color:#999;border-left-color:rgba(0,0,0,.25)}.popover.left>.arrow:after{right:1px;bottom:-10px;content:" ";border-right-width:0;border-left-color:#fff}.carousel{position:relative}.carousel-inner{position:relative;width:100%;overflow:hidden}.carousel-inner>.item{position:relative;display:none;-webkit-transition:.6s ease-in-out left;-o-transition:.6s ease-in-out left;transition:.6s ease-in-out left}.carousel-inner>.item>a>img,.carousel-inner>.item>img{line-height:1}@media all and (transform-3d),(-webkit-transform-3d){.carousel-inner>.item{-webkit-transition:-webkit-transform .6s ease-in-out;-o-transition:-o-transform .6s ease-in-out;transition:transform .6s ease-in-out;-webkit-backface-visibility:hidden;backface-visibility:hidden;-webkit-perspective:1000;perspective:1000}.carousel-inner>.item.active.right,.carousel-inner>.item.next{left:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}.carousel-inner>.item.active.left,.carousel-inner>.item.prev{left:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}.carousel-inner>.item.active,.carousel-inner>.item.next.left,.carousel-inner>.item.prev.right{left:0;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}.carousel-inner>.active,.carousel-inner>.next,.carousel-inner>.prev{display:block}.carousel-inner>.active{left:0}.carousel-inner>.next,.carousel-inner>.prev{position:absolute;top:0;width:100%}.carousel-inner>.next{left:100%}.carousel-inner>.prev{left:-100%}.carousel-inner>.next.left,.carousel-inner>.prev.right{left:0}.carousel-inner>.active.left{left:-100%}.carousel-inner>.active.right{left:100%}.carousel-control{position:absolute;top:0;bottom:0;left:0;width:15%;font-size:20px;color:#fff;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,.6);filter:alpha(opacity=50);opacity:.5}.carousel-control.left{background-image:-webkit-linear-gradient(left,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);background-image:-o-linear-gradient(left,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);background-image:-webkit-gradient(linear,left top,right top,from(rgba(0,0,0,.5)),to(rgba(0,0,0,.0001)));background-image:linear-gradient(to right,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000', endColorstr='#00000000', GradientType=1);background-repeat:repeat-x}.carousel-control.right{right:0;left:auto;background-image:-webkit-linear-gradient(left,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);background-image:-o-linear-gradient(left,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);background-image:-webkit-gradient(linear,left top,right top,from(rgba(0,0,0,.0001)),to(rgba(0,0,0,.5)));background-image:linear-gradient(to right,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#80000000', GradientType=1);background-repeat:repeat-x}.carousel-control:focus,.carousel-control:hover{color:#fff;text-decoration:none;filter:alpha(opacity=90);outline:0;opacity:.9}.carousel-control .glyphicon-chevron-left,.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next,.carousel-control .icon-prev{position:absolute;top:50%;z-index:5;display:inline-block}.carousel-control .glyphicon-chevron-left,.carousel-control .icon-prev{left:50%;margin-left:-10px}.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next{right:50%;margin-right:-10px}.carousel-control .icon-next,.carousel-control .icon-prev{width:20px;height:20px;margin-top:-10px;font-family:serif;line-height:1}.carousel-control .icon-prev:before{content:'\2039'}.carousel-control .icon-next:before{content:'\203a'}.carousel-indicators{position:absolute;bottom:10px;left:50%;z-index:15;width:60%;padding-left:0;margin-left:-30%;text-align:center;list-style:none}.carousel-indicators li{display:inline-block;width:10px;height:10px;margin:1px;text-indent:-999px;cursor:pointer;background-color:#000 \9;background-color:rgba(0,0,0,0);border:1px solid #fff;border-radius:10px}.carousel-indicators .active{width:12px;height:12px;margin:0;background-color:#fff}.carousel-caption{position:absolute;right:15%;bottom:20px;left:15%;z-index:10;padding-top:20px;padding-bottom:20px;color:#fff;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,.6)}.carousel-caption .btn{text-shadow:none}@media screen and (min-width:768px){.carousel-control .glyphicon-chevron-left,.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next,.carousel-control .icon-prev{width:30px;height:30px;margin-top:-15px;font-size:30px}.carousel-control .glyphicon-chevron-left,.carousel-control .icon-prev{margin-left:-15px}.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next{margin-right:-15px}.carousel-caption{right:20%;left:20%;padding-bottom:30px}.carousel-indicators{bottom:20px}}.btn-group-vertical>.btn-group:after,.btn-group-vertical>.btn-group:before,.btn-toolbar:after,.btn-toolbar:before,.clearfix:after,.clearfix:before,.container-fluid:after,.container-fluid:before,.container:after,.container:before,.dl-horizontal dd:after,.dl-horizontal dd:before,.form-horizontal .form-group:after,.form-horizontal .form-group:before,.modal-footer:after,.modal-footer:before,.nav:after,.nav:before,.navbar-collapse:after,.navbar-collapse:before,.navbar-header:after,.navbar-header:before,.navbar:after,.navbar:before,.pager:after,.pager:before,.panel-body:after,.panel-body:before,.row:after,.row:before{display:table;content:" "}.btn-group-vertical>.btn-group:after,.btn-toolbar:after,.clearfix:after,.container-fluid:after,.container:after,.dl-horizontal dd:after,.form-horizontal .form-group:after,.modal-footer:after,.nav:after,.navbar-collapse:after,.navbar-header:after,.navbar:after,.pager:after,.panel-body:after,.row:after{clear:both}.center-block{display:block;margin-right:auto;margin-left:auto}.pull-right{float:right!important}.pull-left{float:left!important}.hide{display:none!important}.show{display:block!important}.invisible{visibility:hidden}.text-hide{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.hidden{display:none!important}.affix{position:fixed}@-ms-viewport{width:device-width}.visible-lg,.visible-md,.visible-sm,.visible-xs{display:none!important}.visible-lg-block,.visible-lg-inline,.visible-lg-inline-block,.visible-md-block,.visible-md-inline,.visible-md-inline-block,.visible-sm-block,.visible-sm-inline,.visible-sm-inline-block,.visible-xs-block,.visible-xs-inline,.visible-xs-inline-block{display:none!important}@media (max-width:767px){.visible-xs{display:block!important}table.visible-xs{display:table}tr.visible-xs{display:table-row!important}td.visible-xs,th.visible-xs{display:table-cell!important}}@media (max-width:767px){.visible-xs-block{display:block!important}}@media (max-width:767px){.visible-xs-inline{display:inline!important}}@media (max-width:767px){.visible-xs-inline-block{display:inline-block!important}}@media (min-width:768px)and (max-width:991px){.visible-sm{display:block!important}table.visible-sm{display:table}tr.visible-sm{display:table-row!important}td.visible-sm,th.visible-sm{display:table-cell!important}}@media (min-width:768px)and (max-width:991px){.visible-sm-block{display:block!important}}@media (min-width:768px)and (max-width:991px){.visible-sm-inline{display:inline!important}}@media (min-width:768px)and (max-width:991px){.visible-sm-inline-block{display:inline-block!important}}@media (min-width:992px)and (max-width:1199px){.visible-md{display:block!important}table.visible-md{display:table}tr.visible-md{display:table-row!important}td.visible-md,th.visible-md{display:table-cell!important}}@media (min-width:992px)and (max-width:1199px){.visible-md-block{display:block!important}}@media (min-width:992px)and (max-width:1199px){.visible-md-inline{display:inline!important}}@media (min-width:992px)and (max-width:1199px){.visible-md-inline-block{display:inline-block!important}}@media (min-width:1200px){.visible-lg{display:block!important}table.visible-lg{display:table}tr.visible-lg{display:table-row!important}td.visible-lg,th.visible-lg{display:table-cell!important}}@media (min-width:1200px){.visible-lg-block{display:block!important}}@media (min-width:1200px){.visible-lg-inline{display:inline!important}}@media (min-width:1200px){.visible-lg-inline-block{display:inline-block!important}}@media (max-width:767px){.hidden-xs{display:none!important}}@media (min-width:768px)and (max-width:991px){.hidden-sm{display:none!important}}@media (min-width:992px)and (max-width:1199px){.hidden-md{display:none!important}}@media (min-width:1200px){.hidden-lg{display:none!important}}.visible-print{display:none!important}@media print{.visible-print{display:block!important}table.visible-print{display:table}tr.visible-print{display:table-row!important}td.visible-print,th.visible-print{display:table-cell!important}}.visible-print-block{display:none!important}@media print{.visible-print-block{display:block!important}}.visible-print-inline{display:none!important}@media print{.visible-print-inline{display:inline!important}}.visible-print-inline-block{display:none!important}@media print{.visible-print-inline-block{display:inline-block!important}}@media print{.hidden-print{display:none!important}}
skin/adminhtml/default/default/pushassist/content_base.css CHANGED
@@ -345,6 +345,7 @@ background: #ffffff none repeat scroll 0 0;
345
  padding-left: 10px;
346
  }
347
  #pushassist .float-r { float:right;}
 
348
  @media (min-width: 768px) {
349
  #pushassist .col-sm-1, #pushassist .col-sm-2, #pushassist .col-sm-3, #pushassist .col-sm-4, #pushassist .col-sm-5, #pushassist .col-sm-6, #pushassist .col-sm-7, #pushassist .col-sm-8, #pushassist .col-sm-9, #pushassist .col-sm-10, #pushassist .col-sm-11, #pushassist .col-sm-12 {
350
  float: left;
@@ -894,20 +895,9 @@ background: #ffffff none repeat scroll 0 0;
894
  width: 80px !important;
895
  }
896
 
897
- #pushassist .wrapper .text_wrapper {
898
- padding: 5px 13px 10px 0;
899
- width: 269px !important;
900
- }
901
 
902
- #pushassist .wrapper .text_wrapper .message {
903
- font-size: 12px;
904
- font-weight: 100;
905
- line-height: 15px;
906
- margin: 8px 0;
907
- max-height: 30px;
908
- min-height: 30px;
909
- overflow: hidden;
910
- }
911
 
912
  #pushassist .wrapper .text_wrapper .domain {
913
  color: #7f7f7f;
@@ -919,19 +909,9 @@ background: #ffffff none repeat scroll 0 0;
919
  width: 96%;
920
  }
921
 
922
- #pushassist .wrapper .text_wrapper .title .closer {
923
- position: relative;
924
- top: -6px;
925
- }
926
 
927
- #pushassist .wrapper .text_wrapper .title {
928
- font-size: 13.5px !important;
929
- letter-spacing: 0.5px;
930
- line-height: 18px;
931
- margin: 4px 0 8px;
932
- max-height: 36px;
933
- overflow: hidden;
934
- }
935
 
936
  #pushassist .dummy-notification .redirect_url {
937
  font-size: 12px;
345
  padding-left: 10px;
346
  }
347
  #pushassist .float-r { float:right;}
348
+
349
  @media (min-width: 768px) {
350
  #pushassist .col-sm-1, #pushassist .col-sm-2, #pushassist .col-sm-3, #pushassist .col-sm-4, #pushassist .col-sm-5, #pushassist .col-sm-6, #pushassist .col-sm-7, #pushassist .col-sm-8, #pushassist .col-sm-9, #pushassist .col-sm-10, #pushassist .col-sm-11, #pushassist .col-sm-12 {
351
  float: left;
895
  width: 80px !important;
896
  }
897
 
898
+ #pushassist .wrapper .text_wrapper {width: 270px; padding: 5px 10px 5px 0px; max-height: 150px; min-height: 95px;color: #3e3e3e; font-family: Open Sans; font-weight: 500;}
 
 
 
899
 
900
+ #pushassist .wrapper .text_wrapper .message {margin: 8px 0px; max-height: 55px; min-height: 30px; overflow: hidden; font-size: 12px; line-height: 17px; font-weight: 100; padding-right: 2px;} /* max-height: 30px; */
 
 
 
 
 
 
 
 
901
 
902
  #pushassist .wrapper .text_wrapper .domain {
903
  color: #7f7f7f;
909
  width: 96%;
910
  }
911
 
912
+ #pushassist .wrapper .text_wrapper .title .closer {position: relative; top: -6px; left: 1px; cursor: pointer;}
 
 
 
913
 
914
+ #pushassist .wrapper .text_wrapper .title {font-size: 13px !important; line-height: 18px; max-height: 55px; overflow: hidden; margin: 4px 0px 8px; letter-spacing: 0.5px;} /*max-height: 36px*/
 
 
 
 
 
 
 
915
 
916
  #pushassist .dummy-notification .redirect_url {
917
  font-size: 12px;
skin/adminhtml/default/default/pushassist/imgUpload/jquery.fileupload.css ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @charset "UTF-8";
2
+ /*
3
+ * jQuery File Upload Plugin CSS
4
+ * https://github.com/blueimp/jQuery-File-Upload
5
+ *
6
+ * Copyright 2013, Sebastian Tschan
7
+ * https://blueimp.net
8
+ *
9
+ * Licensed under the MIT license:
10
+ * http://www.opensource.org/licenses/MIT
11
+ */
12
+
13
+ .fileinput-button {
14
+ position: relative;
15
+ overflow: hidden;
16
+ display: inline-block;
17
+ }
18
+ .fileinput-button input {
19
+ position: absolute;
20
+ top: 0;
21
+ right: 0;
22
+ margin: 0;
23
+ opacity: 0;
24
+ -ms-filter: 'alpha(opacity=0)';
25
+ font-size: 200px;
26
+ direction: ltr;
27
+ cursor: pointer;
28
+ }
29
+
30
+ /* Fixes for IE < 8 */
31
+ @media screen\9 {
32
+ .fileinput-button input {
33
+ filter: alpha(opacity=0);
34
+ font-size: 100%;
35
+ height: 100%;
36
+ }
37
+ }
skin/adminhtml/default/default/pushassist/imgUpload/jquery.fileupload.js ADDED
@@ -0,0 +1,1477 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * jQuery File Upload Plugin
3
+ * https://github.com/blueimp/jQuery-File-Upload
4
+ *
5
+ * Copyright 2010, Sebastian Tschan
6
+ * https://blueimp.net
7
+ *
8
+ * Licensed under the MIT license:
9
+ * http://www.opensource.org/licenses/MIT
10
+ */
11
+
12
+ /* jshint nomen:false */
13
+ /* global define, require, window, document, location, Blob, FormData */
14
+
15
+ (function (factory) {
16
+ 'use strict';
17
+ if (typeof define === 'function' && define.amd) {
18
+ // Register as an anonymous AMD module:
19
+ define([
20
+ 'jquery',
21
+ 'jquery.ui.widget'
22
+ ], factory);
23
+ } else if (typeof exports === 'object') {
24
+ // Node/CommonJS:
25
+ factory(
26
+ require('jquery'),
27
+ require('jquery.ui.widget')
28
+ );
29
+ } else {
30
+ // Browser globals:
31
+ factory(window.jQuery);
32
+ }
33
+ }(function ($) {
34
+ 'use strict';
35
+
36
+ // Detect file input support, based on
37
+ // http://viljamis.com/blog/2012/file-upload-support-on-mobile/
38
+ $.support.fileInput = !(new RegExp(
39
+ // Handle devices which give false positives for the feature detection:
40
+ '(Android (1\\.[0156]|2\\.[01]))' +
41
+ '|(Windows Phone (OS 7|8\\.0))|(XBLWP)|(ZuneWP)|(WPDesktop)' +
42
+ '|(w(eb)?OSBrowser)|(webOS)' +
43
+ '|(Kindle/(1\\.0|2\\.[05]|3\\.0))'
44
+ ).test(window.navigator.userAgent) ||
45
+ // Feature detection for all other devices:
46
+ $('<input type="file">').prop('disabled'));
47
+
48
+ // The FileReader API is not actually used, but works as feature detection,
49
+ // as some Safari versions (5?) support XHR file uploads via the FormData API,
50
+ // but not non-multipart XHR file uploads.
51
+ // window.XMLHttpRequestUpload is not available on IE10, so we check for
52
+ // window.ProgressEvent instead to detect XHR2 file upload capability:
53
+ $.support.xhrFileUpload = !!(window.ProgressEvent && window.FileReader);
54
+ $.support.xhrFormDataFileUpload = !!window.FormData;
55
+
56
+ // Detect support for Blob slicing (required for chunked uploads):
57
+ $.support.blobSlice = window.Blob && (Blob.prototype.slice ||
58
+ Blob.prototype.webkitSlice || Blob.prototype.mozSlice);
59
+
60
+ // Helper function to create drag handlers for dragover/dragenter/dragleave:
61
+ function getDragHandler(type) {
62
+ var isDragOver = type === 'dragover';
63
+ return function (e) {
64
+ e.dataTransfer = e.originalEvent && e.originalEvent.dataTransfer;
65
+ var dataTransfer = e.dataTransfer;
66
+ if (dataTransfer && $.inArray('Files', dataTransfer.types) !== -1 &&
67
+ this._trigger(
68
+ type,
69
+ $.Event(type, {delegatedEvent: e})
70
+ ) !== false) {
71
+ e.preventDefault();
72
+ if (isDragOver) {
73
+ dataTransfer.dropEffect = 'copy';
74
+ }
75
+ }
76
+ };
77
+ }
78
+
79
+ // The fileupload widget listens for change events on file input fields defined
80
+ // via fileInput setting and paste or drop events of the given dropZone.
81
+ // In addition to the default jQuery Widget methods, the fileupload widget
82
+ // exposes the "add" and "send" methods, to add or directly send files using
83
+ // the fileupload API.
84
+ // By default, files added via file input selection, paste, drag & drop or
85
+ // "add" method are uploaded immediately, but it is possible to override
86
+ // the "add" callback option to queue file uploads.
87
+ $.widget('blueimp.fileupload', {
88
+
89
+ options: {
90
+ // The drop target element(s), by the default the complete document.
91
+ // Set to null to disable drag & drop support:
92
+ dropZone: $(document),
93
+ // The paste target element(s), by the default undefined.
94
+ // Set to a DOM node or jQuery object to enable file pasting:
95
+ pasteZone: undefined,
96
+ // The file input field(s), that are listened to for change events.
97
+ // If undefined, it is set to the file input fields inside
98
+ // of the widget element on plugin initialization.
99
+ // Set to null to disable the change listener.
100
+ fileInput: undefined,
101
+ // By default, the file input field is replaced with a clone after
102
+ // each input field change event. This is required for iframe transport
103
+ // queues and allows change events to be fired for the same file
104
+ // selection, but can be disabled by setting the following option to false:
105
+ replaceFileInput: true,
106
+ // The parameter name for the file form data (the request argument name).
107
+ // If undefined or empty, the name property of the file input field is
108
+ // used, or "files[]" if the file input name property is also empty,
109
+ // can be a string or an array of strings:
110
+ paramName: undefined,
111
+ // By default, each file of a selection is uploaded using an individual
112
+ // request for XHR type uploads. Set to false to upload file
113
+ // selections in one request each:
114
+ singleFileUploads: true,
115
+ // To limit the number of files uploaded with one XHR request,
116
+ // set the following option to an integer greater than 0:
117
+ limitMultiFileUploads: undefined,
118
+ // The following option limits the number of files uploaded with one
119
+ // XHR request to keep the request size under or equal to the defined
120
+ // limit in bytes:
121
+ limitMultiFileUploadSize: undefined,
122
+ // Multipart file uploads add a number of bytes to each uploaded file,
123
+ // therefore the following option adds an overhead for each file used
124
+ // in the limitMultiFileUploadSize configuration:
125
+ limitMultiFileUploadSizeOverhead: 512,
126
+ // Set the following option to true to issue all file upload requests
127
+ // in a sequential order:
128
+ sequentialUploads: false,
129
+ // To limit the number of concurrent uploads,
130
+ // set the following option to an integer greater than 0:
131
+ limitConcurrentUploads: undefined,
132
+ // Set the following option to true to force iframe transport uploads:
133
+ forceIframeTransport: false,
134
+ // Set the following option to the location of a redirect url on the
135
+ // origin server, for cross-domain iframe transport uploads:
136
+ redirect: undefined,
137
+ // The parameter name for the redirect url, sent as part of the form
138
+ // data and set to 'redirect' if this option is empty:
139
+ redirectParamName: undefined,
140
+ // Set the following option to the location of a postMessage window,
141
+ // to enable postMessage transport uploads:
142
+ postMessage: undefined,
143
+ // By default, XHR file uploads are sent as multipart/form-data.
144
+ // The iframe transport is always using multipart/form-data.
145
+ // Set to false to enable non-multipart XHR uploads:
146
+ multipart: true,
147
+ // To upload large files in smaller chunks, set the following option
148
+ // to a preferred maximum chunk size. If set to 0, null or undefined,
149
+ // or the browser does not support the required Blob API, files will
150
+ // be uploaded as a whole.
151
+ maxChunkSize: undefined,
152
+ // When a non-multipart upload or a chunked multipart upload has been
153
+ // aborted, this option can be used to resume the upload by setting
154
+ // it to the size of the already uploaded bytes. This option is most
155
+ // useful when modifying the options object inside of the "add" or
156
+ // "send" callbacks, as the options are cloned for each file upload.
157
+ uploadedBytes: undefined,
158
+ // By default, failed (abort or error) file uploads are removed from the
159
+ // global progress calculation. Set the following option to false to
160
+ // prevent recalculating the global progress data:
161
+ recalculateProgress: true,
162
+ // Interval in milliseconds to calculate and trigger progress events:
163
+ progressInterval: 100,
164
+ // Interval in milliseconds to calculate progress bitrate:
165
+ bitrateInterval: 500,
166
+ // By default, uploads are started automatically when adding files:
167
+ autoUpload: true,
168
+
169
+ // Error and info messages:
170
+ messages: {
171
+ uploadedBytes: 'Uploaded bytes exceed file size'
172
+ },
173
+
174
+ // Translation function, gets the message key to be translated
175
+ // and an object with context specific data as arguments:
176
+ i18n: function (message, context) {
177
+ message = this.messages[message] || message.toString();
178
+ if (context) {
179
+ $.each(context, function (key, value) {
180
+ message = message.replace('{' + key + '}', value);
181
+ });
182
+ }
183
+ return message;
184
+ },
185
+
186
+ // Additional form data to be sent along with the file uploads can be set
187
+ // using this option, which accepts an array of objects with name and
188
+ // value properties, a function returning such an array, a FormData
189
+ // object (for XHR file uploads), or a simple object.
190
+ // The form of the first fileInput is given as parameter to the function:
191
+ formData: function (form) {
192
+ return form.serializeArray();
193
+ },
194
+
195
+ // The add callback is invoked as soon as files are added to the fileupload
196
+ // widget (via file input selection, drag & drop, paste or add API call).
197
+ // If the singleFileUploads option is enabled, this callback will be
198
+ // called once for each file in the selection for XHR file uploads, else
199
+ // once for each file selection.
200
+ //
201
+ // The upload starts when the submit method is invoked on the data parameter.
202
+ // The data object contains a files property holding the added files
203
+ // and allows you to override plugin options as well as define ajax settings.
204
+ //
205
+ // Listeners for this callback can also be bound the following way:
206
+ // .bind('fileuploadadd', func);
207
+ //
208
+ // data.submit() returns a Promise object and allows to attach additional
209
+ // handlers using jQuery's Deferred callbacks:
210
+ // data.submit().done(func).fail(func).always(func);
211
+ add: function (e, data) {
212
+ if (e.isDefaultPrevented()) {
213
+ return false;
214
+ }
215
+ if (data.autoUpload || (data.autoUpload !== false &&
216
+ $(this).fileupload('option', 'autoUpload'))) {
217
+ data.process().done(function () {
218
+ data.submit();
219
+ });
220
+ }
221
+ },
222
+
223
+ // Other callbacks:
224
+
225
+ // Callback for the submit event of each file upload:
226
+ // submit: function (e, data) {}, // .bind('fileuploadsubmit', func);
227
+
228
+ // Callback for the start of each file upload request:
229
+ // send: function (e, data) {}, // .bind('fileuploadsend', func);
230
+
231
+ // Callback for successful uploads:
232
+ // done: function (e, data) {}, // .bind('fileuploaddone', func);
233
+
234
+ // Callback for failed (abort or error) uploads:
235
+ // fail: function (e, data) {}, // .bind('fileuploadfail', func);
236
+
237
+ // Callback for completed (success, abort or error) requests:
238
+ // always: function (e, data) {}, // .bind('fileuploadalways', func);
239
+
240
+ // Callback for upload progress events:
241
+ // progress: function (e, data) {}, // .bind('fileuploadprogress', func);
242
+
243
+ // Callback for global upload progress events:
244
+ // progressall: function (e, data) {}, // .bind('fileuploadprogressall', func);
245
+
246
+ // Callback for uploads start, equivalent to the global ajaxStart event:
247
+ // start: function (e) {}, // .bind('fileuploadstart', func);
248
+
249
+ // Callback for uploads stop, equivalent to the global ajaxStop event:
250
+ // stop: function (e) {}, // .bind('fileuploadstop', func);
251
+
252
+ // Callback for change events of the fileInput(s):
253
+ // change: function (e, data) {}, // .bind('fileuploadchange', func);
254
+
255
+ // Callback for paste events to the pasteZone(s):
256
+ // paste: function (e, data) {}, // .bind('fileuploadpaste', func);
257
+
258
+ // Callback for drop events of the dropZone(s):
259
+ // drop: function (e, data) {}, // .bind('fileuploaddrop', func);
260
+
261
+ // Callback for dragover events of the dropZone(s):
262
+ // dragover: function (e) {}, // .bind('fileuploaddragover', func);
263
+
264
+ // Callback for the start of each chunk upload request:
265
+ // chunksend: function (e, data) {}, // .bind('fileuploadchunksend', func);
266
+
267
+ // Callback for successful chunk uploads:
268
+ // chunkdone: function (e, data) {}, // .bind('fileuploadchunkdone', func);
269
+
270
+ // Callback for failed (abort or error) chunk uploads:
271
+ // chunkfail: function (e, data) {}, // .bind('fileuploadchunkfail', func);
272
+
273
+ // Callback for completed (success, abort or error) chunk upload requests:
274
+ // chunkalways: function (e, data) {}, // .bind('fileuploadchunkalways', func);
275
+
276
+ // The plugin options are used as settings object for the ajax calls.
277
+ // The following are jQuery ajax settings required for the file uploads:
278
+ processData: false,
279
+ contentType: false,
280
+ cache: false,
281
+ timeout: 0
282
+ },
283
+
284
+ // A list of options that require reinitializing event listeners and/or
285
+ // special initialization code:
286
+ _specialOptions: [
287
+ 'fileInput',
288
+ 'dropZone',
289
+ 'pasteZone',
290
+ 'multipart',
291
+ 'forceIframeTransport'
292
+ ],
293
+
294
+ _blobSlice: $.support.blobSlice && function () {
295
+ var slice = this.slice || this.webkitSlice || this.mozSlice;
296
+ return slice.apply(this, arguments);
297
+ },
298
+
299
+ _BitrateTimer: function () {
300
+ this.timestamp = ((Date.now) ? Date.now() : (new Date()).getTime());
301
+ this.loaded = 0;
302
+ this.bitrate = 0;
303
+ this.getBitrate = function (now, loaded, interval) {
304
+ var timeDiff = now - this.timestamp;
305
+ if (!this.bitrate || !interval || timeDiff > interval) {
306
+ this.bitrate = (loaded - this.loaded) * (1000 / timeDiff) * 8;
307
+ this.loaded = loaded;
308
+ this.timestamp = now;
309
+ }
310
+ return this.bitrate;
311
+ };
312
+ },
313
+
314
+ _isXHRUpload: function (options) {
315
+ return !options.forceIframeTransport &&
316
+ ((!options.multipart && $.support.xhrFileUpload) ||
317
+ $.support.xhrFormDataFileUpload);
318
+ },
319
+
320
+ _getFormData: function (options) {
321
+ var formData;
322
+ if ($.type(options.formData) === 'function') {
323
+ return options.formData(options.form);
324
+ }
325
+ if ($.isArray(options.formData)) {
326
+ return options.formData;
327
+ }
328
+ if ($.type(options.formData) === 'object') {
329
+ formData = [];
330
+ $.each(options.formData, function (name, value) {
331
+ formData.push({name: name, value: value});
332
+ });
333
+ return formData;
334
+ }
335
+ return [];
336
+ },
337
+
338
+ _getTotal: function (files) {
339
+ var total = 0;
340
+ $.each(files, function (index, file) {
341
+ total += file.size || 1;
342
+ });
343
+ return total;
344
+ },
345
+
346
+ _initProgressObject: function (obj) {
347
+ var progress = {
348
+ loaded: 0,
349
+ total: 0,
350
+ bitrate: 0
351
+ };
352
+ if (obj._progress) {
353
+ $.extend(obj._progress, progress);
354
+ } else {
355
+ obj._progress = progress;
356
+ }
357
+ },
358
+
359
+ _initResponseObject: function (obj) {
360
+ var prop;
361
+ if (obj._response) {
362
+ for (prop in obj._response) {
363
+ if (obj._response.hasOwnProperty(prop)) {
364
+ delete obj._response[prop];
365
+ }
366
+ }
367
+ } else {
368
+ obj._response = {};
369
+ }
370
+ },
371
+
372
+ _onProgress: function (e, data) {
373
+ if (e.lengthComputable) {
374
+ var now = ((Date.now) ? Date.now() : (new Date()).getTime()),
375
+ loaded;
376
+ if (data._time && data.progressInterval &&
377
+ (now - data._time < data.progressInterval) &&
378
+ e.loaded !== e.total) {
379
+ return;
380
+ }
381
+ data._time = now;
382
+ loaded = Math.floor(
383
+ e.loaded / e.total * (data.chunkSize || data._progress.total)
384
+ ) + (data.uploadedBytes || 0);
385
+ // Add the difference from the previously loaded state
386
+ // to the global loaded counter:
387
+ this._progress.loaded += (loaded - data._progress.loaded);
388
+ this._progress.bitrate = this._bitrateTimer.getBitrate(
389
+ now,
390
+ this._progress.loaded,
391
+ data.bitrateInterval
392
+ );
393
+ data._progress.loaded = data.loaded = loaded;
394
+ data._progress.bitrate = data.bitrate = data._bitrateTimer.getBitrate(
395
+ now,
396
+ loaded,
397
+ data.bitrateInterval
398
+ );
399
+ // Trigger a custom progress event with a total data property set
400
+ // to the file size(s) of the current upload and a loaded data
401
+ // property calculated accordingly:
402
+ this._trigger(
403
+ 'progress',
404
+ $.Event('progress', {delegatedEvent: e}),
405
+ data
406
+ );
407
+ // Trigger a global progress event for all current file uploads,
408
+ // including ajax calls queued for sequential file uploads:
409
+ this._trigger(
410
+ 'progressall',
411
+ $.Event('progressall', {delegatedEvent: e}),
412
+ this._progress
413
+ );
414
+ }
415
+ },
416
+
417
+ _initProgressListener: function (options) {
418
+ var that = this,
419
+ xhr = options.xhr ? options.xhr() : $.ajaxSettings.xhr();
420
+ // Accesss to the native XHR object is required to add event listeners
421
+ // for the upload progress event:
422
+ if (xhr.upload) {
423
+ $(xhr.upload).bind('progress', function (e) {
424
+ var oe = e.originalEvent;
425
+ // Make sure the progress event properties get copied over:
426
+ e.lengthComputable = oe.lengthComputable;
427
+ e.loaded = oe.loaded;
428
+ e.total = oe.total;
429
+ that._onProgress(e, options);
430
+ });
431
+ options.xhr = function () {
432
+ return xhr;
433
+ };
434
+ }
435
+ },
436
+
437
+ _isInstanceOf: function (type, obj) {
438
+ // Cross-frame instanceof check
439
+ return Object.prototype.toString.call(obj) === '[object ' + type + ']';
440
+ },
441
+
442
+ _initXHRData: function (options) {
443
+ var that = this,
444
+ formData,
445
+ file = options.files[0],
446
+ // Ignore non-multipart setting if not supported:
447
+ multipart = options.multipart || !$.support.xhrFileUpload,
448
+ paramName = $.type(options.paramName) === 'array' ?
449
+ options.paramName[0] : options.paramName;
450
+ options.headers = $.extend({}, options.headers);
451
+ if (options.contentRange) {
452
+ options.headers['Content-Range'] = options.contentRange;
453
+ }
454
+ if (!multipart || options.blob || !this._isInstanceOf('File', file)) {
455
+ options.headers['Content-Disposition'] = 'attachment; filename="' +
456
+ encodeURI(file.name) + '"';
457
+ }
458
+ if (!multipart) {
459
+ options.contentType = file.type || 'application/octet-stream';
460
+ options.data = options.blob || file;
461
+ } else if ($.support.xhrFormDataFileUpload) {
462
+ if (options.postMessage) {
463
+ // window.postMessage does not allow sending FormData
464
+ // objects, so we just add the File/Blob objects to
465
+ // the formData array and let the postMessage window
466
+ // create the FormData object out of this array:
467
+ formData = this._getFormData(options);
468
+ if (options.blob) {
469
+ formData.push({
470
+ name: paramName,
471
+ value: options.blob
472
+ });
473
+ } else {
474
+ $.each(options.files, function (index, file) {
475
+ formData.push({
476
+ name: ($.type(options.paramName) === 'array' &&
477
+ options.paramName[index]) || paramName,
478
+ value: file
479
+ });
480
+ });
481
+ }
482
+ } else {
483
+ if (that._isInstanceOf('FormData', options.formData)) {
484
+ formData = options.formData;
485
+ } else {
486
+ formData = new FormData();
487
+ $.each(this._getFormData(options), function (index, field) {
488
+ formData.append(field.name, field.value);
489
+ });
490
+ }
491
+ if (options.blob) {
492
+ formData.append(paramName, options.blob, file.name);
493
+ } else {
494
+ $.each(options.files, function (index, file) {
495
+ // This check allows the tests to run with
496
+ // dummy objects:
497
+ if (that._isInstanceOf('File', file) ||
498
+ that._isInstanceOf('Blob', file)) {
499
+ formData.append(
500
+ ($.type(options.paramName) === 'array' &&
501
+ options.paramName[index]) || paramName,
502
+ file,
503
+ file.uploadName || file.name
504
+ );
505
+ }
506
+ });
507
+ }
508
+ }
509
+ options.data = formData;
510
+ }
511
+ // Blob reference is not needed anymore, free memory:
512
+ options.blob = null;
513
+ },
514
+
515
+ _initIframeSettings: function (options) {
516
+ var targetHost = $('<a></a>').prop('href', options.url).prop('host');
517
+ // Setting the dataType to iframe enables the iframe transport:
518
+ options.dataType = 'iframe ' + (options.dataType || '');
519
+ // The iframe transport accepts a serialized array as form data:
520
+ options.formData = this._getFormData(options);
521
+ // Add redirect url to form data on cross-domain uploads:
522
+ if (options.redirect && targetHost && targetHost !== location.host) {
523
+ options.formData.push({
524
+ name: options.redirectParamName || 'redirect',
525
+ value: options.redirect
526
+ });
527
+ }
528
+ },
529
+
530
+ _initDataSettings: function (options) {
531
+ if (this._isXHRUpload(options)) {
532
+ if (!this._chunkedUpload(options, true)) {
533
+ if (!options.data) {
534
+ this._initXHRData(options);
535
+ }
536
+ this._initProgressListener(options);
537
+ }
538
+ if (options.postMessage) {
539
+ // Setting the dataType to postmessage enables the
540
+ // postMessage transport:
541
+ options.dataType = 'postmessage ' + (options.dataType || '');
542
+ }
543
+ } else {
544
+ this._initIframeSettings(options);
545
+ }
546
+ },
547
+
548
+ _getParamName: function (options) {
549
+ var fileInput = $(options.fileInput),
550
+ paramName = options.paramName;
551
+ if (!paramName) {
552
+ paramName = [];
553
+ fileInput.each(function () {
554
+ var input = $(this),
555
+ name = input.prop('name') || 'files[]',
556
+ i = (input.prop('files') || [1]).length;
557
+ while (i) {
558
+ paramName.push(name);
559
+ i -= 1;
560
+ }
561
+ });
562
+ if (!paramName.length) {
563
+ paramName = [fileInput.prop('name') || 'files[]'];
564
+ }
565
+ } else if (!$.isArray(paramName)) {
566
+ paramName = [paramName];
567
+ }
568
+ return paramName;
569
+ },
570
+
571
+ _initFormSettings: function (options) {
572
+ // Retrieve missing options from the input field and the
573
+ // associated form, if available:
574
+ if (!options.form || !options.form.length) {
575
+ options.form = $(options.fileInput.prop('form'));
576
+ // If the given file input doesn't have an associated form,
577
+ // use the default widget file input's form:
578
+ if (!options.form.length) {
579
+ options.form = $(this.options.fileInput.prop('form'));
580
+ }
581
+ }
582
+ options.paramName = this._getParamName(options);
583
+ if (!options.url) {
584
+ options.url = options.form.prop('action') || location.href;
585
+ }
586
+ // The HTTP request method must be "POST" or "PUT":
587
+ options.type = (options.type ||
588
+ ($.type(options.form.prop('method')) === 'string' &&
589
+ options.form.prop('method')) || ''
590
+ ).toUpperCase();
591
+ if (options.type !== 'POST' && options.type !== 'PUT' &&
592
+ options.type !== 'PATCH') {
593
+ options.type = 'POST';
594
+ }
595
+ if (!options.formAcceptCharset) {
596
+ options.formAcceptCharset = options.form.attr('accept-charset');
597
+ }
598
+ },
599
+
600
+ _getAJAXSettings: function (data) {
601
+ var options = $.extend({}, this.options, data);
602
+ this._initFormSettings(options);
603
+ this._initDataSettings(options);
604
+ return options;
605
+ },
606
+
607
+ // jQuery 1.6 doesn't provide .state(),
608
+ // while jQuery 1.8+ removed .isRejected() and .isResolved():
609
+ _getDeferredState: function (deferred) {
610
+ if (deferred.state) {
611
+ return deferred.state();
612
+ }
613
+ if (deferred.isResolved()) {
614
+ return 'resolved';
615
+ }
616
+ if (deferred.isRejected()) {
617
+ return 'rejected';
618
+ }
619
+ return 'pending';
620
+ },
621
+
622
+ // Maps jqXHR callbacks to the equivalent
623
+ // methods of the given Promise object:
624
+ _enhancePromise: function (promise) {
625
+ promise.success = promise.done;
626
+ promise.error = promise.fail;
627
+ promise.complete = promise.always;
628
+ return promise;
629
+ },
630
+
631
+ // Creates and returns a Promise object enhanced with
632
+ // the jqXHR methods abort, success, error and complete:
633
+ _getXHRPromise: function (resolveOrReject, context, args) {
634
+ var dfd = $.Deferred(),
635
+ promise = dfd.promise();
636
+ context = context || this.options.context || promise;
637
+ if (resolveOrReject === true) {
638
+ dfd.resolveWith(context, args);
639
+ } else if (resolveOrReject === false) {
640
+ dfd.rejectWith(context, args);
641
+ }
642
+ promise.abort = dfd.promise;
643
+ return this._enhancePromise(promise);
644
+ },
645
+
646
+ // Adds convenience methods to the data callback argument:
647
+ _addConvenienceMethods: function (e, data) {
648
+ var that = this,
649
+ getPromise = function (args) {
650
+ return $.Deferred().resolveWith(that, args).promise();
651
+ };
652
+ data.process = function (resolveFunc, rejectFunc) {
653
+ if (resolveFunc || rejectFunc) {
654
+ data._processQueue = this._processQueue =
655
+ (this._processQueue || getPromise([this])).pipe(
656
+ function () {
657
+ if (data.errorThrown) {
658
+ return $.Deferred()
659
+ .rejectWith(that, [data]).promise();
660
+ }
661
+ return getPromise(arguments);
662
+ }
663
+ ).pipe(resolveFunc, rejectFunc);
664
+ }
665
+ return this._processQueue || getPromise([this]);
666
+ };
667
+ data.submit = function () {
668
+ if (this.state() !== 'pending') {
669
+ data.jqXHR = this.jqXHR =
670
+ (that._trigger(
671
+ 'submit',
672
+ $.Event('submit', {delegatedEvent: e}),
673
+ this
674
+ ) !== false) && that._onSend(e, this);
675
+ }
676
+ return this.jqXHR || that._getXHRPromise();
677
+ };
678
+ data.abort = function () {
679
+ if (this.jqXHR) {
680
+ return this.jqXHR.abort();
681
+ }
682
+ this.errorThrown = 'abort';
683
+ that._trigger('fail', null, this);
684
+ return that._getXHRPromise(false);
685
+ };
686
+ data.state = function () {
687
+ if (this.jqXHR) {
688
+ return that._getDeferredState(this.jqXHR);
689
+ }
690
+ if (this._processQueue) {
691
+ return that._getDeferredState(this._processQueue);
692
+ }
693
+ };
694
+ data.processing = function () {
695
+ return !this.jqXHR && this._processQueue && that
696
+ ._getDeferredState(this._processQueue) === 'pending';
697
+ };
698
+ data.progress = function () {
699
+ return this._progress;
700
+ };
701
+ data.response = function () {
702
+ return this._response;
703
+ };
704
+ },
705
+
706
+ // Parses the Range header from the server response
707
+ // and returns the uploaded bytes:
708
+ _getUploadedBytes: function (jqXHR) {
709
+ var range = jqXHR.getResponseHeader('Range'),
710
+ parts = range && range.split('-'),
711
+ upperBytesPos = parts && parts.length > 1 &&
712
+ parseInt(parts[1], 10);
713
+ return upperBytesPos && upperBytesPos + 1;
714
+ },
715
+
716
+ // Uploads a file in multiple, sequential requests
717
+ // by splitting the file up in multiple blob chunks.
718
+ // If the second parameter is true, only tests if the file
719
+ // should be uploaded in chunks, but does not invoke any
720
+ // upload requests:
721
+ _chunkedUpload: function (options, testOnly) {
722
+ options.uploadedBytes = options.uploadedBytes || 0;
723
+ var that = this,
724
+ file = options.files[0],
725
+ fs = file.size,
726
+ ub = options.uploadedBytes,
727
+ mcs = options.maxChunkSize || fs,
728
+ slice = this._blobSlice,
729
+ dfd = $.Deferred(),
730
+ promise = dfd.promise(),
731
+ jqXHR,
732
+ upload;
733
+ if (!(this._isXHRUpload(options) && slice && (ub || mcs < fs)) ||
734
+ options.data) {
735
+ return false;
736
+ }
737
+ if (testOnly) {
738
+ return true;
739
+ }
740
+ if (ub >= fs) {
741
+ file.error = options.i18n('uploadedBytes');
742
+ return this._getXHRPromise(
743
+ false,
744
+ options.context,
745
+ [null, 'error', file.error]
746
+ );
747
+ }
748
+ // The chunk upload method:
749
+ upload = function () {
750
+ // Clone the options object for each chunk upload:
751
+ var o = $.extend({}, options),
752
+ currentLoaded = o._progress.loaded;
753
+ o.blob = slice.call(
754
+ file,
755
+ ub,
756
+ ub + mcs,
757
+ file.type
758
+ );
759
+ // Store the current chunk size, as the blob itself
760
+ // will be dereferenced after data processing:
761
+ o.chunkSize = o.blob.size;
762
+ // Expose the chunk bytes position range:
763
+ o.contentRange = 'bytes ' + ub + '-' +
764
+ (ub + o.chunkSize - 1) + '/' + fs;
765
+ // Process the upload data (the blob and potential form data):
766
+ that._initXHRData(o);
767
+ // Add progress listeners for this chunk upload:
768
+ that._initProgressListener(o);
769
+ jqXHR = ((that._trigger('chunksend', null, o) !== false && $.ajax(o)) ||
770
+ that._getXHRPromise(false, o.context))
771
+ .done(function (result, textStatus, jqXHR) {
772
+ ub = that._getUploadedBytes(jqXHR) ||
773
+ (ub + o.chunkSize);
774
+ // Create a progress event if no final progress event
775
+ // with loaded equaling total has been triggered
776
+ // for this chunk:
777
+ if (currentLoaded + o.chunkSize - o._progress.loaded) {
778
+ that._onProgress($.Event('progress', {
779
+ lengthComputable: true,
780
+ loaded: ub - o.uploadedBytes,
781
+ total: ub - o.uploadedBytes
782
+ }), o);
783
+ }
784
+ options.uploadedBytes = o.uploadedBytes = ub;
785
+ o.result = result;
786
+ o.textStatus = textStatus;
787
+ o.jqXHR = jqXHR;
788
+ that._trigger('chunkdone', null, o);
789
+ that._trigger('chunkalways', null, o);
790
+ if (ub < fs) {
791
+ // File upload not yet complete,
792
+ // continue with the next chunk:
793
+ upload();
794
+ } else {
795
+ dfd.resolveWith(
796
+ o.context,
797
+ [result, textStatus, jqXHR]
798
+ );
799
+ }
800
+ })
801
+ .fail(function (jqXHR, textStatus, errorThrown) {
802
+ o.jqXHR = jqXHR;
803
+ o.textStatus = textStatus;
804
+ o.errorThrown = errorThrown;
805
+ that._trigger('chunkfail', null, o);
806
+ that._trigger('chunkalways', null, o);
807
+ dfd.rejectWith(
808
+ o.context,
809
+ [jqXHR, textStatus, errorThrown]
810
+ );
811
+ });
812
+ };
813
+ this._enhancePromise(promise);
814
+ promise.abort = function () {
815
+ return jqXHR.abort();
816
+ };
817
+ upload();
818
+ return promise;
819
+ },
820
+
821
+ _beforeSend: function (e, data) {
822
+ if (this._active === 0) {
823
+ // the start callback is triggered when an upload starts
824
+ // and no other uploads are currently running,
825
+ // equivalent to the global ajaxStart event:
826
+ this._trigger('start');
827
+ // Set timer for global bitrate progress calculation:
828
+ this._bitrateTimer = new this._BitrateTimer();
829
+ // Reset the global progress values:
830
+ this._progress.loaded = this._progress.total = 0;
831
+ this._progress.bitrate = 0;
832
+ }
833
+ // Make sure the container objects for the .response() and
834
+ // .progress() methods on the data object are available
835
+ // and reset to their initial state:
836
+ this._initResponseObject(data);
837
+ this._initProgressObject(data);
838
+ data._progress.loaded = data.loaded = data.uploadedBytes || 0;
839
+ data._progress.total = data.total = this._getTotal(data.files) || 1;
840
+ data._progress.bitrate = data.bitrate = 0;
841
+ this._active += 1;
842
+ // Initialize the global progress values:
843
+ this._progress.loaded += data.loaded;
844
+ this._progress.total += data.total;
845
+ },
846
+
847
+ _onDone: function (result, textStatus, jqXHR, options) {
848
+ var total = options._progress.total,
849
+ response = options._response;
850
+ if (options._progress.loaded < total) {
851
+ // Create a progress event if no final progress event
852
+ // with loaded equaling total has been triggered:
853
+ this._onProgress($.Event('progress', {
854
+ lengthComputable: true,
855
+ loaded: total,
856
+ total: total
857
+ }), options);
858
+ }
859
+ response.result = options.result = result;
860
+ response.textStatus = options.textStatus = textStatus;
861
+ response.jqXHR = options.jqXHR = jqXHR;
862
+ this._trigger('done', null, options);
863
+ },
864
+
865
+ _onFail: function (jqXHR, textStatus, errorThrown, options) {
866
+ var response = options._response;
867
+ if (options.recalculateProgress) {
868
+ // Remove the failed (error or abort) file upload from
869
+ // the global progress calculation:
870
+ this._progress.loaded -= options._progress.loaded;
871
+ this._progress.total -= options._progress.total;
872
+ }
873
+ response.jqXHR = options.jqXHR = jqXHR;
874
+ response.textStatus = options.textStatus = textStatus;
875
+ response.errorThrown = options.errorThrown = errorThrown;
876
+ this._trigger('fail', null, options);
877
+ },
878
+
879
+ _onAlways: function (jqXHRorResult, textStatus, jqXHRorError, options) {
880
+ // jqXHRorResult, textStatus and jqXHRorError are added to the
881
+ // options object via done and fail callbacks
882
+ this._trigger('always', null, options);
883
+ },
884
+
885
+ _onSend: function (e, data) {
886
+ if (!data.submit) {
887
+ this._addConvenienceMethods(e, data);
888
+ }
889
+ var that = this,
890
+ jqXHR,
891
+ aborted,
892
+ slot,
893
+ pipe,
894
+ options = that._getAJAXSettings(data),
895
+ send = function () {
896
+ that._sending += 1;
897
+ // Set timer for bitrate progress calculation:
898
+ options._bitrateTimer = new that._BitrateTimer();
899
+ jqXHR = jqXHR || (
900
+ ((aborted || that._trigger(
901
+ 'send',
902
+ $.Event('send', {delegatedEvent: e}),
903
+ options
904
+ ) === false) &&
905
+ that._getXHRPromise(false, options.context, aborted)) ||
906
+ that._chunkedUpload(options) || $.ajax(options)
907
+ ).done(function (result, textStatus, jqXHR) {
908
+ that._onDone(result, textStatus, jqXHR, options);
909
+ }).fail(function (jqXHR, textStatus, errorThrown) {
910
+ that._onFail(jqXHR, textStatus, errorThrown, options);
911
+ }).always(function (jqXHRorResult, textStatus, jqXHRorError) {
912
+ that._onAlways(
913
+ jqXHRorResult,
914
+ textStatus,
915
+ jqXHRorError,
916
+ options
917
+ );
918
+ that._sending -= 1;
919
+ that._active -= 1;
920
+ if (options.limitConcurrentUploads &&
921
+ options.limitConcurrentUploads > that._sending) {
922
+ // Start the next queued upload,
923
+ // that has not been aborted:
924
+ var nextSlot = that._slots.shift();
925
+ while (nextSlot) {
926
+ if (that._getDeferredState(nextSlot) === 'pending') {
927
+ nextSlot.resolve();
928
+ break;
929
+ }
930
+ nextSlot = that._slots.shift();
931
+ }
932
+ }
933
+ if (that._active === 0) {
934
+ // The stop callback is triggered when all uploads have
935
+ // been completed, equivalent to the global ajaxStop event:
936
+ that._trigger('stop');
937
+ }
938
+ });
939
+ return jqXHR;
940
+ };
941
+ this._beforeSend(e, options);
942
+ if (this.options.sequentialUploads ||
943
+ (this.options.limitConcurrentUploads &&
944
+ this.options.limitConcurrentUploads <= this._sending)) {
945
+ if (this.options.limitConcurrentUploads > 1) {
946
+ slot = $.Deferred();
947
+ this._slots.push(slot);
948
+ pipe = slot.pipe(send);
949
+ } else {
950
+ this._sequence = this._sequence.pipe(send, send);
951
+ pipe = this._sequence;
952
+ }
953
+ // Return the piped Promise object, enhanced with an abort method,
954
+ // which is delegated to the jqXHR object of the current upload,
955
+ // and jqXHR callbacks mapped to the equivalent Promise methods:
956
+ pipe.abort = function () {
957
+ aborted = [undefined, 'abort', 'abort'];
958
+ if (!jqXHR) {
959
+ if (slot) {
960
+ slot.rejectWith(options.context, aborted);
961
+ }
962
+ return send();
963
+ }
964
+ return jqXHR.abort();
965
+ };
966
+ return this._enhancePromise(pipe);
967
+ }
968
+ return send();
969
+ },
970
+
971
+ _onAdd: function (e, data) {
972
+ var that = this,
973
+ result = true,
974
+ options = $.extend({}, this.options, data),
975
+ files = data.files,
976
+ filesLength = files.length,
977
+ limit = options.limitMultiFileUploads,
978
+ limitSize = options.limitMultiFileUploadSize,
979
+ overhead = options.limitMultiFileUploadSizeOverhead,
980
+ batchSize = 0,
981
+ paramName = this._getParamName(options),
982
+ paramNameSet,
983
+ paramNameSlice,
984
+ fileSet,
985
+ i,
986
+ j = 0;
987
+ if (!filesLength) {
988
+ return false;
989
+ }
990
+ if (limitSize && files[0].size === undefined) {
991
+ limitSize = undefined;
992
+ }
993
+ if (!(options.singleFileUploads || limit || limitSize) ||
994
+ !this._isXHRUpload(options)) {
995
+ fileSet = [files];
996
+ paramNameSet = [paramName];
997
+ } else if (!(options.singleFileUploads || limitSize) && limit) {
998
+ fileSet = [];
999
+ paramNameSet = [];
1000
+ for (i = 0; i < filesLength; i += limit) {
1001
+ fileSet.push(files.slice(i, i + limit));
1002
+ paramNameSlice = paramName.slice(i, i + limit);
1003
+ if (!paramNameSlice.length) {
1004
+ paramNameSlice = paramName;
1005
+ }
1006
+ paramNameSet.push(paramNameSlice);
1007
+ }
1008
+ } else if (!options.singleFileUploads && limitSize) {
1009
+ fileSet = [];
1010
+ paramNameSet = [];
1011
+ for (i = 0; i < filesLength; i = i + 1) {
1012
+ batchSize += files[i].size + overhead;
1013
+ if (i + 1 === filesLength ||
1014
+ ((batchSize + files[i + 1].size + overhead) > limitSize) ||
1015
+ (limit && i + 1 - j >= limit)) {
1016
+ fileSet.push(files.slice(j, i + 1));
1017
+ paramNameSlice = paramName.slice(j, i + 1);
1018
+ if (!paramNameSlice.length) {
1019
+ paramNameSlice = paramName;
1020
+ }
1021
+ paramNameSet.push(paramNameSlice);
1022
+ j = i + 1;
1023
+ batchSize = 0;
1024
+ }
1025
+ }
1026
+ } else {
1027
+ paramNameSet = paramName;
1028
+ }
1029
+ data.originalFiles = files;
1030
+ $.each(fileSet || files, function (index, element) {
1031
+ var newData = $.extend({}, data);
1032
+ newData.files = fileSet ? element : [element];
1033
+ newData.paramName = paramNameSet[index];
1034
+ that._initResponseObject(newData);
1035
+ that._initProgressObject(newData);
1036
+ that._addConvenienceMethods(e, newData);
1037
+ result = that._trigger(
1038
+ 'add',
1039
+ $.Event('add', {delegatedEvent: e}),
1040
+ newData
1041
+ );
1042
+ return result;
1043
+ });
1044
+ return result;
1045
+ },
1046
+
1047
+ _replaceFileInput: function (data) {
1048
+ var input = data.fileInput,
1049
+ inputClone = input.clone(true),
1050
+ restoreFocus = input.is(document.activeElement);
1051
+ // Add a reference for the new cloned file input to the data argument:
1052
+ data.fileInputClone = inputClone;
1053
+ $('<form></form>').append(inputClone)[0].reset();
1054
+ // Detaching allows to insert the fileInput on another form
1055
+ // without loosing the file input value:
1056
+ input.after(inputClone).detach();
1057
+ // If the fileInput had focus before it was detached,
1058
+ // restore focus to the inputClone.
1059
+ if (restoreFocus) {
1060
+ inputClone.focus();
1061
+ }
1062
+ // Avoid memory leaks with the detached file input:
1063
+ $.cleanData(input.unbind('remove'));
1064
+ // Replace the original file input element in the fileInput
1065
+ // elements set with the clone, which has been copied including
1066
+ // event handlers:
1067
+ this.options.fileInput = this.options.fileInput.map(function (i, el) {
1068
+ if (el === input[0]) {
1069
+ return inputClone[0];
1070
+ }
1071
+ return el;
1072
+ });
1073
+ // If the widget has been initialized on the file input itself,
1074
+ // override this.element with the file input clone:
1075
+ if (input[0] === this.element[0]) {
1076
+ this.element = inputClone;
1077
+ }
1078
+ },
1079
+
1080
+ _handleFileTreeEntry: function (entry, path) {
1081
+ var that = this,
1082
+ dfd = $.Deferred(),
1083
+ errorHandler = function (e) {
1084
+ if (e && !e.entry) {
1085
+ e.entry = entry;
1086
+ }
1087
+ // Since $.when returns immediately if one
1088
+ // Deferred is rejected, we use resolve instead.
1089
+ // This allows valid files and invalid items
1090
+ // to be returned together in one set:
1091
+ dfd.resolve([e]);
1092
+ },
1093
+ successHandler = function (entries) {
1094
+ that._handleFileTreeEntries(
1095
+ entries,
1096
+ path + entry.name + '/'
1097
+ ).done(function (files) {
1098
+ dfd.resolve(files);
1099
+ }).fail(errorHandler);
1100
+ },
1101
+ readEntries = function () {
1102
+ dirReader.readEntries(function (results) {
1103
+ if (!results.length) {
1104
+ successHandler(entries);
1105
+ } else {
1106
+ entries = entries.concat(results);
1107
+ readEntries();
1108
+ }
1109
+ }, errorHandler);
1110
+ },
1111
+ dirReader, entries = [];
1112
+ path = path || '';
1113
+ if (entry.isFile) {
1114
+ if (entry._file) {
1115
+ // Workaround for Chrome bug #149735
1116
+ entry._file.relativePath = path;
1117
+ dfd.resolve(entry._file);
1118
+ } else {
1119
+ entry.file(function (file) {
1120
+ file.relativePath = path;
1121
+ dfd.resolve(file);
1122
+ }, errorHandler);
1123
+ }
1124
+ } else if (entry.isDirectory) {
1125
+ dirReader = entry.createReader();
1126
+ readEntries();
1127
+ } else {
1128
+ // Return an empy list for file system items
1129
+ // other than files or directories:
1130
+ dfd.resolve([]);
1131
+ }
1132
+ return dfd.promise();
1133
+ },
1134
+
1135
+ _handleFileTreeEntries: function (entries, path) {
1136
+ var that = this;
1137
+ return $.when.apply(
1138
+ $,
1139
+ $.map(entries, function (entry) {
1140
+ return that._handleFileTreeEntry(entry, path);
1141
+ })
1142
+ ).pipe(function () {
1143
+ return Array.prototype.concat.apply(
1144
+ [],
1145
+ arguments
1146
+ );
1147
+ });
1148
+ },
1149
+
1150
+ _getDroppedFiles: function (dataTransfer) {
1151
+ dataTransfer = dataTransfer || {};
1152
+ var items = dataTransfer.items;
1153
+ if (items && items.length && (items[0].webkitGetAsEntry ||
1154
+ items[0].getAsEntry)) {
1155
+ return this._handleFileTreeEntries(
1156
+ $.map(items, function (item) {
1157
+ var entry;
1158
+ if (item.webkitGetAsEntry) {
1159
+ entry = item.webkitGetAsEntry();
1160
+ if (entry) {
1161
+ // Workaround for Chrome bug #149735:
1162
+ entry._file = item.getAsFile();
1163
+ }
1164
+ return entry;
1165
+ }
1166
+ return item.getAsEntry();
1167
+ })
1168
+ );
1169
+ }
1170
+ return $.Deferred().resolve(
1171
+ $.makeArray(dataTransfer.files)
1172
+ ).promise();
1173
+ },
1174
+
1175
+ _getSingleFileInputFiles: function (fileInput) {
1176
+ fileInput = $(fileInput);
1177
+ var entries = fileInput.prop('webkitEntries') ||
1178
+ fileInput.prop('entries'),
1179
+ files,
1180
+ value;
1181
+ if (entries && entries.length) {
1182
+ return this._handleFileTreeEntries(entries);
1183
+ }
1184
+ files = $.makeArray(fileInput.prop('files'));
1185
+ if (!files.length) {
1186
+ value = fileInput.prop('value');
1187
+ if (!value) {
1188
+ return $.Deferred().resolve([]).promise();
1189
+ }
1190
+ // If the files property is not available, the browser does not
1191
+ // support the File API and we add a pseudo File object with
1192
+ // the input value as name with path information removed:
1193
+ files = [{name: value.replace(/^.*\\/, '')}];
1194
+ } else if (files[0].name === undefined && files[0].fileName) {
1195
+ // File normalization for Safari 4 and Firefox 3:
1196
+ $.each(files, function (index, file) {
1197
+ file.name = file.fileName;
1198
+ file.size = file.fileSize;
1199
+ });
1200
+ }
1201
+ return $.Deferred().resolve(files).promise();
1202
+ },
1203
+
1204
+ _getFileInputFiles: function (fileInput) {
1205
+ if (!(fileInput instanceof $) || fileInput.length === 1) {
1206
+ return this._getSingleFileInputFiles(fileInput);
1207
+ }
1208
+ return $.when.apply(
1209
+ $,
1210
+ $.map(fileInput, this._getSingleFileInputFiles)
1211
+ ).pipe(function () {
1212
+ return Array.prototype.concat.apply(
1213
+ [],
1214
+ arguments
1215
+ );
1216
+ });
1217
+ },
1218
+
1219
+ _onChange: function (e) {
1220
+ var that = this,
1221
+ data = {
1222
+ fileInput: $(e.target),
1223
+ form: $(e.target.form)
1224
+ };
1225
+ this._getFileInputFiles(data.fileInput).always(function (files) {
1226
+ data.files = files;
1227
+ if (that.options.replaceFileInput) {
1228
+ that._replaceFileInput(data);
1229
+ }
1230
+ if (that._trigger(
1231
+ 'change',
1232
+ $.Event('change', {delegatedEvent: e}),
1233
+ data
1234
+ ) !== false) {
1235
+ that._onAdd(e, data);
1236
+ }
1237
+ });
1238
+ },
1239
+
1240
+ _onPaste: function (e) {
1241
+ var items = e.originalEvent && e.originalEvent.clipboardData &&
1242
+ e.originalEvent.clipboardData.items,
1243
+ data = {files: []};
1244
+ if (items && items.length) {
1245
+ $.each(items, function (index, item) {
1246
+ var file = item.getAsFile && item.getAsFile();
1247
+ if (file) {
1248
+ data.files.push(file);
1249
+ }
1250
+ });
1251
+ if (this._trigger(
1252
+ 'paste',
1253
+ $.Event('paste', {delegatedEvent: e}),
1254
+ data
1255
+ ) !== false) {
1256
+ this._onAdd(e, data);
1257
+ }
1258
+ }
1259
+ },
1260
+
1261
+ _onDrop: function (e) {
1262
+ e.dataTransfer = e.originalEvent && e.originalEvent.dataTransfer;
1263
+ var that = this,
1264
+ dataTransfer = e.dataTransfer,
1265
+ data = {};
1266
+ if (dataTransfer && dataTransfer.files && dataTransfer.files.length) {
1267
+ e.preventDefault();
1268
+ this._getDroppedFiles(dataTransfer).always(function (files) {
1269
+ data.files = files;
1270
+ if (that._trigger(
1271
+ 'drop',
1272
+ $.Event('drop', {delegatedEvent: e}),
1273
+ data
1274
+ ) !== false) {
1275
+ that._onAdd(e, data);
1276
+ }
1277
+ });
1278
+ }
1279
+ },
1280
+
1281
+ _onDragOver: getDragHandler('dragover'),
1282
+
1283
+ _onDragEnter: getDragHandler('dragenter'),
1284
+
1285
+ _onDragLeave: getDragHandler('dragleave'),
1286
+
1287
+ _initEventHandlers: function () {
1288
+ if (this._isXHRUpload(this.options)) {
1289
+ this._on(this.options.dropZone, {
1290
+ dragover: this._onDragOver,
1291
+ drop: this._onDrop,
1292
+ // event.preventDefault() on dragenter is required for IE10+:
1293
+ dragenter: this._onDragEnter,
1294
+ // dragleave is not required, but added for completeness:
1295
+ dragleave: this._onDragLeave
1296
+ });
1297
+ this._on(this.options.pasteZone, {
1298
+ paste: this._onPaste
1299
+ });
1300
+ }
1301
+ if ($.support.fileInput) {
1302
+ this._on(this.options.fileInput, {
1303
+ change: this._onChange
1304
+ });
1305
+ }
1306
+ },
1307
+
1308
+ _destroyEventHandlers: function () {
1309
+ this._off(this.options.dropZone, 'dragenter dragleave dragover drop');
1310
+ this._off(this.options.pasteZone, 'paste');
1311
+ this._off(this.options.fileInput, 'change');
1312
+ },
1313
+
1314
+ _setOption: function (key, value) {
1315
+ var reinit = $.inArray(key, this._specialOptions) !== -1;
1316
+ if (reinit) {
1317
+ this._destroyEventHandlers();
1318
+ }
1319
+ this._super(key, value);
1320
+ if (reinit) {
1321
+ this._initSpecialOptions();
1322
+ this._initEventHandlers();
1323
+ }
1324
+ },
1325
+
1326
+ _initSpecialOptions: function () {
1327
+ var options = this.options;
1328
+ if (options.fileInput === undefined) {
1329
+ options.fileInput = this.element.is('input[type="file"]') ?
1330
+ this.element : this.element.find('input[type="file"]');
1331
+ } else if (!(options.fileInput instanceof $)) {
1332
+ options.fileInput = $(options.fileInput);
1333
+ }
1334
+ if (!(options.dropZone instanceof $)) {
1335
+ options.dropZone = $(options.dropZone);
1336
+ }
1337
+ if (!(options.pasteZone instanceof $)) {
1338
+ options.pasteZone = $(options.pasteZone);
1339
+ }
1340
+ },
1341
+
1342
+ _getRegExp: function (str) {
1343
+ var parts = str.split('/'),
1344
+ modifiers = parts.pop();
1345
+ parts.shift();
1346
+ return new RegExp(parts.join('/'), modifiers);
1347
+ },
1348
+
1349
+ _isRegExpOption: function (key, value) {
1350
+ return key !== 'url' && $.type(value) === 'string' &&
1351
+ /^\/.*\/[igm]{0,3}$/.test(value);
1352
+ },
1353
+
1354
+ _initDataAttributes: function () {
1355
+ var that = this,
1356
+ options = this.options,
1357
+ data = this.element.data();
1358
+ // Initialize options set via HTML5 data-attributes:
1359
+ $.each(
1360
+ this.element[0].attributes,
1361
+ function (index, attr) {
1362
+ var key = attr.name.toLowerCase(),
1363
+ value;
1364
+ if (/^data-/.test(key)) {
1365
+ // Convert hyphen-ated key to camelCase:
1366
+ key = key.slice(5).replace(/-[a-z]/g, function (str) {
1367
+ return str.charAt(1).toUpperCase();
1368
+ });
1369
+ value = data[key];
1370
+ if (that._isRegExpOption(key, value)) {
1371
+ value = that._getRegExp(value);
1372
+ }
1373
+ options[key] = value;
1374
+ }
1375
+ }
1376
+ );
1377
+ },
1378
+
1379
+ _create: function () {
1380
+ this._initDataAttributes();
1381
+ this._initSpecialOptions();
1382
+ this._slots = [];
1383
+ this._sequence = this._getXHRPromise(true);
1384
+ this._sending = this._active = 0;
1385
+ this._initProgressObject(this);
1386
+ this._initEventHandlers();
1387
+ },
1388
+
1389
+ // This method is exposed to the widget API and allows to query
1390
+ // the number of active uploads:
1391
+ active: function () {
1392
+ return this._active;
1393
+ },
1394
+
1395
+ // This method is exposed to the widget API and allows to query
1396
+ // the widget upload progress.
1397
+ // It returns an object with loaded, total and bitrate properties
1398
+ // for the running uploads:
1399
+ progress: function () {
1400
+ return this._progress;
1401
+ },
1402
+
1403
+ // This method is exposed to the widget API and allows adding files
1404
+ // using the fileupload API. The data parameter accepts an object which
1405
+ // must have a files property and can contain additional options:
1406
+ // .fileupload('add', {files: filesList});
1407
+ add: function (data) {
1408
+ var that = this;
1409
+ if (!data || this.options.disabled) {
1410
+ return;
1411
+ }
1412
+ if (data.fileInput && !data.files) {
1413
+ this._getFileInputFiles(data.fileInput).always(function (files) {
1414
+ data.files = files;
1415
+ that._onAdd(null, data);
1416
+ });
1417
+ } else {
1418
+ data.files = $.makeArray(data.files);
1419
+ this._onAdd(null, data);
1420
+ }
1421
+ },
1422
+
1423
+ // This method is exposed to the widget API and allows sending files
1424
+ // using the fileupload API. The data parameter accepts an object which
1425
+ // must have a files or fileInput property and can contain additional options:
1426
+ // .fileupload('send', {files: filesList});
1427
+ // The method returns a Promise object for the file upload call.
1428
+ send: function (data) {
1429
+ if (data && !this.options.disabled) {
1430
+ if (data.fileInput && !data.files) {
1431
+ var that = this,
1432
+ dfd = $.Deferred(),
1433
+ promise = dfd.promise(),
1434
+ jqXHR,
1435
+ aborted;
1436
+ promise.abort = function () {
1437
+ aborted = true;
1438
+ if (jqXHR) {
1439
+ return jqXHR.abort();
1440
+ }
1441
+ dfd.reject(null, 'abort', 'abort');
1442
+ return promise;
1443
+ };
1444
+ this._getFileInputFiles(data.fileInput).always(
1445
+ function (files) {
1446
+ if (aborted) {
1447
+ return;
1448
+ }
1449
+ if (!files.length) {
1450
+ dfd.reject();
1451
+ return;
1452
+ }
1453
+ data.files = files;
1454
+ jqXHR = that._onSend(null, data);
1455
+ jqXHR.then(
1456
+ function (result, textStatus, jqXHR) {
1457
+ dfd.resolve(result, textStatus, jqXHR);
1458
+ },
1459
+ function (jqXHR, textStatus, errorThrown) {
1460
+ dfd.reject(jqXHR, textStatus, errorThrown);
1461
+ }
1462
+ );
1463
+ }
1464
+ );
1465
+ return this._enhancePromise(promise);
1466
+ }
1467
+ data.files = $.makeArray(data.files);
1468
+ if (data.files.length) {
1469
+ return this._onSend(null, data);
1470
+ }
1471
+ }
1472
+ return this._getXHRPromise(false, data && data.context);
1473
+ }
1474
+
1475
+ });
1476
+
1477
+ }));
skin/adminhtml/default/default/pushassist/imgUpload/jquery.ui.widget.js ADDED
@@ -0,0 +1,572 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*! jQuery UI - v1.11.4+CommonJS - 2015-08-28
2
+ * http://jqueryui.com
3
+ * Includes: widget.js
4
+ * Copyright 2015 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
+
12
+ } else if ( typeof exports === "object" ) {
13
+
14
+ // Node/CommonJS
15
+ factory( require( "jquery" ) );
16
+
17
+ } else {
18
+
19
+ // Browser globals
20
+ factory( jQuery );
21
+ }
22
+ }(function( $ ) {
23
+ /*!
24
+ * jQuery UI Widget 1.11.4
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
+ * http://api.jqueryui.com/jQuery.widget/
32
+ */
33
+
34
+
35
+ var widget_uuid = 0,
36
+ widget_slice = Array.prototype.slice;
37
+
38
+ $.cleanData = (function( orig ) {
39
+ return function( elems ) {
40
+ var events, elem, i;
41
+ for ( i = 0; (elem = elems[i]) != null; i++ ) {
42
+ try {
43
+
44
+ // Only trigger remove when necessary to save time
45
+ events = $._data( elem, "events" );
46
+ if ( events && events.remove ) {
47
+ $( elem ).triggerHandler( "remove" );
48
+ }
49
+
50
+ // http://bugs.jquery.com/ticket/8235
51
+ } catch ( e ) {}
52
+ }
53
+ orig( elems );
54
+ };
55
+ })( $.cleanData );
56
+
57
+ $.widget = function( name, base, prototype ) {
58
+ var fullName, existingConstructor, constructor, basePrototype,
59
+ // proxiedPrototype allows the provided prototype to remain unmodified
60
+ // so that it can be used as a mixin for multiple widgets (#8876)
61
+ proxiedPrototype = {},
62
+ namespace = name.split( "." )[ 0 ];
63
+
64
+ name = name.split( "." )[ 1 ];
65
+ fullName = namespace + "-" + name;
66
+
67
+ if ( !prototype ) {
68
+ prototype = base;
69
+ base = $.Widget;
70
+ }
71
+
72
+ // create selector for plugin
73
+ $.expr[ ":" ][ fullName.toLowerCase() ] = function( elem ) {
74
+ return !!$.data( elem, fullName );
75
+ };
76
+
77
+ $[ namespace ] = $[ namespace ] || {};
78
+ existingConstructor = $[ namespace ][ name ];
79
+ constructor = $[ namespace ][ name ] = function( options, element ) {
80
+ // allow instantiation without "new" keyword
81
+ if ( !this._createWidget ) {
82
+ return new constructor( options, element );
83
+ }
84
+
85
+ // allow instantiation without initializing for simple inheritance
86
+ // must use "new" keyword (the code above always passes args)
87
+ if ( arguments.length ) {
88
+ this._createWidget( options, element );
89
+ }
90
+ };
91
+ // extend with the existing constructor to carry over any static properties
92
+ $.extend( constructor, existingConstructor, {
93
+ version: prototype.version,
94
+ // copy the object used to create the prototype in case we need to
95
+ // redefine the widget later
96
+ _proto: $.extend( {}, prototype ),
97
+ // track widgets that inherit from this widget in case this widget is
98
+ // redefined after a widget inherits from it
99
+ _childConstructors: []
100
+ });
101
+
102
+ basePrototype = new base();
103
+ // we need to make the options hash a property directly on the new instance
104
+ // otherwise we'll modify the options hash on the prototype that we're
105
+ // inheriting from
106
+ basePrototype.options = $.widget.extend( {}, basePrototype.options );
107
+ $.each( prototype, function( prop, value ) {
108
+ if ( !$.isFunction( value ) ) {
109
+ proxiedPrototype[ prop ] = value;
110
+ return;
111
+ }
112
+ proxiedPrototype[ prop ] = (function() {
113
+ var _super = function() {
114
+ return base.prototype[ prop ].apply( this, arguments );
115
+ },
116
+ _superApply = function( args ) {
117
+ return base.prototype[ prop ].apply( this, args );
118
+ };
119
+ return function() {
120
+ var __super = this._super,
121
+ __superApply = this._superApply,
122
+ returnValue;
123
+
124
+ this._super = _super;
125
+ this._superApply = _superApply;
126
+
127
+ returnValue = value.apply( this, arguments );
128
+
129
+ this._super = __super;
130
+ this._superApply = __superApply;
131
+
132
+ return returnValue;
133
+ };
134
+ })();
135
+ });
136
+ constructor.prototype = $.widget.extend( basePrototype, {
137
+ // TODO: remove support for widgetEventPrefix
138
+ // always use the name + a colon as the prefix, e.g., draggable:start
139
+ // don't prefix for widgets that aren't DOM-based
140
+ widgetEventPrefix: existingConstructor ? (basePrototype.widgetEventPrefix || name) : name
141
+ }, proxiedPrototype, {
142
+ constructor: constructor,
143
+ namespace: namespace,
144
+ widgetName: name,
145
+ widgetFullName: fullName
146
+ });
147
+
148
+ // If this widget is being redefined then we need to find all widgets that
149
+ // are inheriting from it and redefine all of them so that they inherit from
150
+ // the new version of this widget. We're essentially trying to replace one
151
+ // level in the prototype chain.
152
+ if ( existingConstructor ) {
153
+ $.each( existingConstructor._childConstructors, function( i, child ) {
154
+ var childPrototype = child.prototype;
155
+
156
+ // redefine the child widget using the same prototype that was
157
+ // originally used, but inherit from the new version of the base
158
+ $.widget( childPrototype.namespace + "." + childPrototype.widgetName, constructor, child._proto );
159
+ });
160
+ // remove the list of existing child constructors from the old constructor
161
+ // so the old child constructors can be garbage collected
162
+ delete existingConstructor._childConstructors;
163
+ } else {
164
+ base._childConstructors.push( constructor );
165
+ }
166
+
167
+ $.widget.bridge( name, constructor );
168
+
169
+ return constructor;
170
+ };
171
+
172
+ $.widget.extend = function( target ) {
173
+ var input = widget_slice.call( arguments, 1 ),
174
+ inputIndex = 0,
175
+ inputLength = input.length,
176
+ key,
177
+ value;
178
+ for ( ; inputIndex < inputLength; inputIndex++ ) {
179
+ for ( key in input[ inputIndex ] ) {
180
+ value = input[ inputIndex ][ key ];
181
+ if ( input[ inputIndex ].hasOwnProperty( key ) && value !== undefined ) {
182
+ // Clone objects
183
+ if ( $.isPlainObject( value ) ) {
184
+ target[ key ] = $.isPlainObject( target[ key ] ) ?
185
+ $.widget.extend( {}, target[ key ], value ) :
186
+ // Don't extend strings, arrays, etc. with objects
187
+ $.widget.extend( {}, value );
188
+ // Copy everything else by reference
189
+ } else {
190
+ target[ key ] = value;
191
+ }
192
+ }
193
+ }
194
+ }
195
+ return target;
196
+ };
197
+
198
+ $.widget.bridge = function( name, object ) {
199
+ var fullName = object.prototype.widgetFullName || name;
200
+ $.fn[ name ] = function( options ) {
201
+ var isMethodCall = typeof options === "string",
202
+ args = widget_slice.call( arguments, 1 ),
203
+ returnValue = this;
204
+
205
+ if ( isMethodCall ) {
206
+ this.each(function() {
207
+ var methodValue,
208
+ instance = $.data( this, fullName );
209
+ if ( options === "instance" ) {
210
+ returnValue = instance;
211
+ return false;
212
+ }
213
+ if ( !instance ) {
214
+ return $.error( "cannot call methods on " + name + " prior to initialization; " +
215
+ "attempted to call method '" + options + "'" );
216
+ }
217
+ if ( !$.isFunction( instance[options] ) || options.charAt( 0 ) === "_" ) {
218
+ return $.error( "no such method '" + options + "' for " + name + " widget instance" );
219
+ }
220
+ methodValue = instance[ options ].apply( instance, args );
221
+ if ( methodValue !== instance && methodValue !== undefined ) {
222
+ returnValue = methodValue && methodValue.jquery ?
223
+ returnValue.pushStack( methodValue.get() ) :
224
+ methodValue;
225
+ return false;
226
+ }
227
+ });
228
+ } else {
229
+
230
+ // Allow multiple hashes to be passed on init
231
+ if ( args.length ) {
232
+ options = $.widget.extend.apply( null, [ options ].concat(args) );
233
+ }
234
+
235
+ this.each(function() {
236
+ var instance = $.data( this, fullName );
237
+ if ( instance ) {
238
+ instance.option( options || {} );
239
+ if ( instance._init ) {
240
+ instance._init();
241
+ }
242
+ } else {
243
+ $.data( this, fullName, new object( options, this ) );
244
+ }
245
+ });
246
+ }
247
+
248
+ return returnValue;
249
+ };
250
+ };
251
+
252
+ $.Widget = function( /* options, element */ ) {};
253
+ $.Widget._childConstructors = [];
254
+
255
+ $.Widget.prototype = {
256
+ widgetName: "widget",
257
+ widgetEventPrefix: "",
258
+ defaultElement: "<div>",
259
+ options: {
260
+ disabled: false,
261
+
262
+ // callbacks
263
+ create: null
264
+ },
265
+ _createWidget: function( options, element ) {
266
+ element = $( element || this.defaultElement || this )[ 0 ];
267
+ this.element = $( element );
268
+ this.uuid = widget_uuid++;
269
+ this.eventNamespace = "." + this.widgetName + this.uuid;
270
+
271
+ this.bindings = $();
272
+ this.hoverable = $();
273
+ this.focusable = $();
274
+
275
+ if ( element !== this ) {
276
+ $.data( element, this.widgetFullName, this );
277
+ this._on( true, this.element, {
278
+ remove: function( event ) {
279
+ if ( event.target === element ) {
280
+ this.destroy();
281
+ }
282
+ }
283
+ });
284
+ this.document = $( element.style ?
285
+ // element within the document
286
+ element.ownerDocument :
287
+ // element is window or document
288
+ element.document || element );
289
+ this.window = $( this.document[0].defaultView || this.document[0].parentWindow );
290
+ }
291
+
292
+ this.options = $.widget.extend( {},
293
+ this.options,
294
+ this._getCreateOptions(),
295
+ options );
296
+
297
+ this._create();
298
+ this._trigger( "create", null, this._getCreateEventData() );
299
+ this._init();
300
+ },
301
+ _getCreateOptions: $.noop,
302
+ _getCreateEventData: $.noop,
303
+ _create: $.noop,
304
+ _init: $.noop,
305
+
306
+ destroy: function() {
307
+ this._destroy();
308
+ // we can probably remove the unbind calls in 2.0
309
+ // all event bindings should go through this._on()
310
+ this.element
311
+ .unbind( this.eventNamespace )
312
+ .removeData( this.widgetFullName )
313
+ // support: jquery <1.6.3
314
+ // http://bugs.jquery.com/ticket/9413
315
+ .removeData( $.camelCase( this.widgetFullName ) );
316
+ this.widget()
317
+ .unbind( this.eventNamespace )
318
+ .removeAttr( "aria-disabled" )
319
+ .removeClass(
320
+ this.widgetFullName + "-disabled " +
321
+ "ui-state-disabled" );
322
+
323
+ // clean up events and states
324
+ this.bindings.unbind( this.eventNamespace );
325
+ this.hoverable.removeClass( "ui-state-hover" );
326
+ this.focusable.removeClass( "ui-state-focus" );
327
+ },
328
+ _destroy: $.noop,
329
+
330
+ widget: function() {
331
+ return this.element;
332
+ },
333
+
334
+ option: function( key, value ) {
335
+ var options = key,
336
+ parts,
337
+ curOption,
338
+ i;
339
+
340
+ if ( arguments.length === 0 ) {
341
+ // don't return a reference to the internal hash
342
+ return $.widget.extend( {}, this.options );
343
+ }
344
+
345
+ if ( typeof key === "string" ) {
346
+ // handle nested keys, e.g., "foo.bar" => { foo: { bar: ___ } }
347
+ options = {};
348
+ parts = key.split( "." );
349
+ key = parts.shift();
350
+ if ( parts.length ) {
351
+ curOption = options[ key ] = $.widget.extend( {}, this.options[ key ] );
352
+ for ( i = 0; i < parts.length - 1; i++ ) {
353
+ curOption[ parts[ i ] ] = curOption[ parts[ i ] ] || {};
354
+ curOption = curOption[ parts[ i ] ];
355
+ }
356
+ key = parts.pop();
357
+ if ( arguments.length === 1 ) {
358
+ return curOption[ key ] === undefined ? null : curOption[ key ];
359
+ }
360
+ curOption[ key ] = value;
361
+ } else {
362
+ if ( arguments.length === 1 ) {
363
+ return this.options[ key ] === undefined ? null : this.options[ key ];
364
+ }
365
+ options[ key ] = value;
366
+ }
367
+ }
368
+
369
+ this._setOptions( options );
370
+
371
+ return this;
372
+ },
373
+ _setOptions: function( options ) {
374
+ var key;
375
+
376
+ for ( key in options ) {
377
+ this._setOption( key, options[ key ] );
378
+ }
379
+
380
+ return this;
381
+ },
382
+ _setOption: function( key, value ) {
383
+ this.options[ key ] = value;
384
+
385
+ if ( key === "disabled" ) {
386
+ this.widget()
387
+ .toggleClass( this.widgetFullName + "-disabled", !!value );
388
+
389
+ // If the widget is becoming disabled, then nothing is interactive
390
+ if ( value ) {
391
+ this.hoverable.removeClass( "ui-state-hover" );
392
+ this.focusable.removeClass( "ui-state-focus" );
393
+ }
394
+ }
395
+
396
+ return this;
397
+ },
398
+
399
+ enable: function() {
400
+ return this._setOptions({ disabled: false });
401
+ },
402
+ disable: function() {
403
+ return this._setOptions({ disabled: true });
404
+ },
405
+
406
+ _on: function( suppressDisabledCheck, element, handlers ) {
407
+ var delegateElement,
408
+ instance = this;
409
+
410
+ // no suppressDisabledCheck flag, shuffle arguments
411
+ if ( typeof suppressDisabledCheck !== "boolean" ) {
412
+ handlers = element;
413
+ element = suppressDisabledCheck;
414
+ suppressDisabledCheck = false;
415
+ }
416
+
417
+ // no element argument, shuffle and use this.element
418
+ if ( !handlers ) {
419
+ handlers = element;
420
+ element = this.element;
421
+ delegateElement = this.widget();
422
+ } else {
423
+ element = delegateElement = $( element );
424
+ this.bindings = this.bindings.add( element );
425
+ }
426
+
427
+ $.each( handlers, function( event, handler ) {
428
+ function handlerProxy() {
429
+ // allow widgets to customize the disabled handling
430
+ // - disabled as an array instead of boolean
431
+ // - disabled class as method for disabling individual parts
432
+ if ( !suppressDisabledCheck &&
433
+ ( instance.options.disabled === true ||
434
+ $( this ).hasClass( "ui-state-disabled" ) ) ) {
435
+ return;
436
+ }
437
+ return ( typeof handler === "string" ? instance[ handler ] : handler )
438
+ .apply( instance, arguments );
439
+ }
440
+
441
+ // copy the guid so direct unbinding works
442
+ if ( typeof handler !== "string" ) {
443
+ handlerProxy.guid = handler.guid =
444
+ handler.guid || handlerProxy.guid || $.guid++;
445
+ }
446
+
447
+ var match = event.match( /^([\w:-]*)\s*(.*)$/ ),
448
+ eventName = match[1] + instance.eventNamespace,
449
+ selector = match[2];
450
+ if ( selector ) {
451
+ delegateElement.delegate( selector, eventName, handlerProxy );
452
+ } else {
453
+ element.bind( eventName, handlerProxy );
454
+ }
455
+ });
456
+ },
457
+
458
+ _off: function( element, eventName ) {
459
+ eventName = (eventName || "").split( " " ).join( this.eventNamespace + " " ) +
460
+ this.eventNamespace;
461
+ element.unbind( eventName ).undelegate( eventName );
462
+
463
+ // Clear the stack to avoid memory leaks (#10056)
464
+ this.bindings = $( this.bindings.not( element ).get() );
465
+ this.focusable = $( this.focusable.not( element ).get() );
466
+ this.hoverable = $( this.hoverable.not( element ).get() );
467
+ },
468
+
469
+ _delay: function( handler, delay ) {
470
+ function handlerProxy() {
471
+ return ( typeof handler === "string" ? instance[ handler ] : handler )
472
+ .apply( instance, arguments );
473
+ }
474
+ var instance = this;
475
+ return setTimeout( handlerProxy, delay || 0 );
476
+ },
477
+
478
+ _hoverable: function( element ) {
479
+ this.hoverable = this.hoverable.add( element );
480
+ this._on( element, {
481
+ mouseenter: function( event ) {
482
+ $( event.currentTarget ).addClass( "ui-state-hover" );
483
+ },
484
+ mouseleave: function( event ) {
485
+ $( event.currentTarget ).removeClass( "ui-state-hover" );
486
+ }
487
+ });
488
+ },
489
+
490
+ _focusable: function( element ) {
491
+ this.focusable = this.focusable.add( element );
492
+ this._on( element, {
493
+ focusin: function( event ) {
494
+ $( event.currentTarget ).addClass( "ui-state-focus" );
495
+ },
496
+ focusout: function( event ) {
497
+ $( event.currentTarget ).removeClass( "ui-state-focus" );
498
+ }
499
+ });
500
+ },
501
+
502
+ _trigger: function( type, event, data ) {
503
+ var prop, orig,
504
+ callback = this.options[ type ];
505
+
506
+ data = data || {};
507
+ event = $.Event( event );
508
+ event.type = ( type === this.widgetEventPrefix ?
509
+ type :
510
+ this.widgetEventPrefix + type ).toLowerCase();
511
+ // the original event may come from any element
512
+ // so we need to reset the target on the new event
513
+ event.target = this.element[ 0 ];
514
+
515
+ // copy original event properties over to the new event
516
+ orig = event.originalEvent;
517
+ if ( orig ) {
518
+ for ( prop in orig ) {
519
+ if ( !( prop in event ) ) {
520
+ event[ prop ] = orig[ prop ];
521
+ }
522
+ }
523
+ }
524
+
525
+ this.element.trigger( event, data );
526
+ return !( $.isFunction( callback ) &&
527
+ callback.apply( this.element[0], [ event ].concat( data ) ) === false ||
528
+ event.isDefaultPrevented() );
529
+ }
530
+ };
531
+
532
+ $.each( { show: "fadeIn", hide: "fadeOut" }, function( method, defaultEffect ) {
533
+ $.Widget.prototype[ "_" + method ] = function( element, options, callback ) {
534
+ if ( typeof options === "string" ) {
535
+ options = { effect: options };
536
+ }
537
+ var hasOptions,
538
+ effectName = !options ?
539
+ method :
540
+ options === true || typeof options === "number" ?
541
+ defaultEffect :
542
+ options.effect || defaultEffect;
543
+ options = options || {};
544
+ if ( typeof options === "number" ) {
545
+ options = { duration: options };
546
+ }
547
+ hasOptions = !$.isEmptyObject( options );
548
+ options.complete = callback;
549
+ if ( options.delay ) {
550
+ element.delay( options.delay );
551
+ }
552
+ if ( hasOptions && $.effects && $.effects.effect[ effectName ] ) {
553
+ element[ method ]( options );
554
+ } else if ( effectName !== method && element[ effectName ] ) {
555
+ element[ effectName ]( options.duration, options.easing, callback );
556
+ } else {
557
+ element.queue(function( next ) {
558
+ $( this )[ method ]();
559
+ if ( callback ) {
560
+ callback.call( element[ 0 ] );
561
+ }
562
+ next();
563
+ });
564
+ }
565
+ };
566
+ });
567
+
568
+ var widget = $.widget;
569
+
570
+
571
+
572
+ }));