Version Notes
Initial Release
Download this release
Release Info
Developer | Reamaze |
Extension | Reamaze |
Version | 1.0.0 |
Comparing to | |
See all releases |
Version 1.0.0
- app/code/community/Reamaze/Reamaze/Block/Adminhtml/Customer/Edit/Tab/Conversations.php +40 -0
- app/code/community/Reamaze/Reamaze/Block/Adminhtml/Main.php +12 -0
- app/code/community/Reamaze/Reamaze/Block/Adminhtml/System/Config/HelpMe.php +35 -0
- app/code/community/Reamaze/Reamaze/Block/Adminhtml/System/Config/RunSetupButton.php +33 -0
- app/code/community/Reamaze/Reamaze/Block/Js.php +94 -0
- app/code/community/Reamaze/Reamaze/Helper/Data.php +86 -0
- app/code/community/Reamaze/Reamaze/Model/AdminObserver.php +89 -0
- app/code/community/Reamaze/Reamaze/Model/Adminhtml/System/Config/Source/DashboardCharts.php +20 -0
- app/code/community/Reamaze/Reamaze/Model/Adminhtml/System/Config/Source/DashboardConversations.php +20 -0
- app/code/community/Reamaze/Reamaze/controllers/Adminhtml/MainController.php +72 -0
- app/code/community/Reamaze/Reamaze/etc/adminhtml.xml +115 -0
- app/code/community/Reamaze/Reamaze/etc/config.xml +101 -0
- app/code/community/Reamaze/Reamaze/etc/system.xml +111 -0
- app/design/adminhtml/default/default/layout/reamaze_reamaze.xml +212 -0
- app/design/adminhtml/default/default/template/reamaze/reamaze/adminhtml_customer_edit_tab_conversations.phtml +33 -0
- app/design/adminhtml/default/default/template/reamaze/reamaze/adminhtml_dashboard_chart.phtml +33 -0
- app/design/adminhtml/default/default/template/reamaze/reamaze/adminhtml_dashboard_conversations.phtml +39 -0
- app/design/adminhtml/default/default/template/reamaze/reamaze/dashboard.phtml +24 -0
- app/design/adminhtml/default/default/template/reamaze/reamaze/jquery.phtml +1 -0
- app/design/adminhtml/default/default/template/reamaze/reamaze/setup.phtml +19 -0
- app/design/adminhtml/default/default/template/reamaze/reamaze/system/config/helpme.phtml +29 -0
- app/design/frontend/base/default/layout/reamaze_reamaze.xml +8 -0
- app/design/frontend/base/default/template/reamaze/reamaze/js.phtml +19 -0
- app/etc/modules/Reamaze_Reamaze.xml +18 -0
- js/reamaze/jquery.ba-postmessage.js +222 -0
- js/reamaze/jquery.deparam.js +97 -0
- js/reamaze/jquery.migrate.js +3 -0
- js/reamaze/jquery.min.js +6 -0
- js/reamaze/jquery.min.map +1 -0
- js/reamaze/jquery.noConflict.js +1 -0
- package.xml +52 -0
- skin/adminhtml/default/default/reamaze/dashboard.css +4 -0
app/code/community/Reamaze/Reamaze/Block/Adminhtml/Customer/Edit/Tab/Conversations.php
ADDED
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Dashboard Conversations lists config
|
4 |
+
*
|
5 |
+
* @author Reamaze
|
6 |
+
*/
|
7 |
+
class Reamaze_Reamaze_Block_Adminhtml_Customer_Edit_Tab_Conversations
|
8 |
+
extends Mage_Adminhtml_Block_Template
|
9 |
+
implements Mage_Adminhtml_Block_Widget_Tab_Interface {
|
10 |
+
|
11 |
+
public function getTabLabel() {
|
12 |
+
return Mage::helper('reamaze_reamaze')->__('Conversations');
|
13 |
+
}
|
14 |
+
|
15 |
+
public function getTabTitle() {
|
16 |
+
return Mage::helper('reamaze_reamaze')->__('Conversations');
|
17 |
+
}
|
18 |
+
|
19 |
+
public function canShowTab() {
|
20 |
+
if (Mage::registry('current_customer')->getId()) {
|
21 |
+
return true;
|
22 |
+
}
|
23 |
+
return false;
|
24 |
+
}
|
25 |
+
|
26 |
+
public function isHidden() {
|
27 |
+
if (Mage::registry('current_customer')->getId()) {
|
28 |
+
return false;
|
29 |
+
}
|
30 |
+
return true;
|
31 |
+
}
|
32 |
+
|
33 |
+
public function getCustomer()
|
34 |
+
{
|
35 |
+
if (!$this->_customer) {
|
36 |
+
$this->_customer = Mage::registry('current_customer');
|
37 |
+
}
|
38 |
+
return $this->_customer;
|
39 |
+
}
|
40 |
+
}
|
app/code/community/Reamaze/Reamaze/Block/Adminhtml/Main.php
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Admin container
|
4 |
+
*
|
5 |
+
* @author Reamaze
|
6 |
+
*/
|
7 |
+
class Reamaze_Reamaze_Block_Adminhtml_Main extends Mage_Adminhtml_Block_Template {
|
8 |
+
|
9 |
+
public function test() {
|
10 |
+
echo 'test';
|
11 |
+
}
|
12 |
+
}
|
app/code/community/Reamaze/Reamaze/Block/Adminhtml/System/Config/HelpMe.php
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* frontend model for help me link
|
4 |
+
*
|
5 |
+
* @author Reamaze
|
6 |
+
*/
|
7 |
+
class Reamaze_Reamaze_Block_Adminhtml_System_Config_HelpMe extends Mage_Adminhtml_Block_System_Config_Form_Field
|
8 |
+
{
|
9 |
+
protected function _construct()
|
10 |
+
{
|
11 |
+
parent::_construct();
|
12 |
+
}
|
13 |
+
|
14 |
+
public function render(Varien_Data_Form_Element_Abstract $element)
|
15 |
+
{
|
16 |
+
$element->unsScope()->unsCanUseWebsiteValue()->unsCanUseDefaultValue();
|
17 |
+
return parent::render($element);
|
18 |
+
}
|
19 |
+
|
20 |
+
protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element)
|
21 |
+
{
|
22 |
+
$block = $this->getLayout()
|
23 |
+
->createBlock('core/template')
|
24 |
+
->setName('reamaze_adminhtml_system_config_helpme')
|
25 |
+
->setTemplate('reamaze/reamaze/system/config/helpme.phtml')
|
26 |
+
->setData('js_path', $this->getJsPath());
|
27 |
+
|
28 |
+
return $block->toHtml();
|
29 |
+
}
|
30 |
+
|
31 |
+
private function getJsPath()
|
32 |
+
{
|
33 |
+
return Mage::helper('reamaze_reamaze')->getUrlForPath('/assets/reamaze.js');
|
34 |
+
}
|
35 |
+
}
|
app/code/community/Reamaze/Reamaze/Block/Adminhtml/System/Config/RunSetupButton.php
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* frontend model for run setup button
|
4 |
+
*
|
5 |
+
* @author Reamaze
|
6 |
+
*/
|
7 |
+
class Reamaze_Reamaze_Block_Adminhtml_System_Config_RunSetupButton extends Mage_Adminhtml_Block_System_Config_Form_Field
|
8 |
+
{
|
9 |
+
protected function _construct()
|
10 |
+
{
|
11 |
+
parent::_construct();
|
12 |
+
}
|
13 |
+
|
14 |
+
public function render(Varien_Data_Form_Element_Abstract $element)
|
15 |
+
{
|
16 |
+
$element->unsScope()->unsCanUseWebsiteValue()->unsCanUseDefaultValue();
|
17 |
+
return parent::render($element);
|
18 |
+
}
|
19 |
+
|
20 |
+
protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element)
|
21 |
+
{
|
22 |
+
$originalData = $element->getOriginalData();
|
23 |
+
$button = $this->getLayout()->createBlock('adminhtml/widget_button')
|
24 |
+
->setData(array(
|
25 |
+
'html_id' => 'run-setup',
|
26 |
+
'label' => $originalData['button_label'],
|
27 |
+
'onclick' => "window.location.href='" . Mage::helper("adminhtml")->getUrl('reamaze_reamaze/Adminhtml_main/setup') . "'"
|
28 |
+
)
|
29 |
+
);
|
30 |
+
|
31 |
+
return '<span style="margin-right: 10px;">or</span>' . $button->toHtml();
|
32 |
+
}
|
33 |
+
}
|
app/code/community/Reamaze/Reamaze/Block/Js.php
ADDED
@@ -0,0 +1,94 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* JS block
|
4 |
+
*
|
5 |
+
* @author Reamaze
|
6 |
+
*/
|
7 |
+
class Reamaze_Reamaze_Block_Js extends Mage_Core_Block_Template {
|
8 |
+
public function getJsPath() {
|
9 |
+
return Mage::helper('reamaze_reamaze')->getUrlForPath('/assets/reamaze.js');
|
10 |
+
}
|
11 |
+
|
12 |
+
public function getSupportJson() {
|
13 |
+
$reamazeHelper = Mage::helper('reamaze_reamaze');
|
14 |
+
$support = array(
|
15 |
+
'account' => $reamazeHelper->getAccountName()
|
16 |
+
);
|
17 |
+
|
18 |
+
if (Mage::getSingleton('customer/session')->isLoggedIn()) {
|
19 |
+
$customer = Mage::getSingleton('customer/session')->getCustomer();
|
20 |
+
|
21 |
+
$customerData = $this->_getCustomerData($customer);
|
22 |
+
|
23 |
+
$support['user'] = array(
|
24 |
+
'id' => $customer->getId(),
|
25 |
+
'email' => $customer->getEmail(),
|
26 |
+
'name' => $customer->getName(),
|
27 |
+
'authkey' => $reamazeHelper->getAuthKey($customer->getId()),
|
28 |
+
'data' => $customerData
|
29 |
+
);
|
30 |
+
}
|
31 |
+
|
32 |
+
$support['ui'] = array(
|
33 |
+
'popup' => array(
|
34 |
+
'trigger' => $reamazeHelper->getJSPopupTrigger()
|
35 |
+
),
|
36 |
+
'embed' => array(
|
37 |
+
'container' => $reamazeHelper->getJSEmbedContainer()
|
38 |
+
),
|
39 |
+
'mailbox' => array(
|
40 |
+
'enabled' => false
|
41 |
+
)
|
42 |
+
);
|
43 |
+
|
44 |
+
return Mage::helper('core')->jsonEncode($support);
|
45 |
+
}
|
46 |
+
|
47 |
+
private function _getCustomerData($customer)
|
48 |
+
{
|
49 |
+
$data = array();
|
50 |
+
|
51 |
+
$customerTotals = Mage::getResourceModel('sales/sale_collection')
|
52 |
+
->setCustomerFilter($customer)
|
53 |
+
->load()
|
54 |
+
->getTotals();
|
55 |
+
|
56 |
+
if ($customerLifetimeSales = $customerTotals->getLifetime()) {
|
57 |
+
$data['Total Sales'] = Mage::helper('core')->formatCurrency($customerLifetimeSales, false);
|
58 |
+
}
|
59 |
+
|
60 |
+
if ($customerAvgSale = $customerTotals->getAvgSale()) {
|
61 |
+
$data['Avg Sale'] = Mage::helper('core')->formatCurrency($customerAvgSale, false);
|
62 |
+
}
|
63 |
+
|
64 |
+
$customerPrimaryBillingAddress = $customer->getPrimaryBillingAddress();
|
65 |
+
|
66 |
+
if ($customerPrimaryBillingAddress) {
|
67 |
+
if ($city = $customerPrimaryBillingAddress->getCity()) {
|
68 |
+
$data['City'] = $city;
|
69 |
+
}
|
70 |
+
|
71 |
+
if ($state = $customerPrimaryBillingAddress->getRegion()) {
|
72 |
+
$data['State'] = $state;
|
73 |
+
}
|
74 |
+
|
75 |
+
if ($zip = $customerPrimaryBillingAddress->getPostcode()) {
|
76 |
+
$data['Zipcode'] = $zip;
|
77 |
+
}
|
78 |
+
|
79 |
+
if ($country = $customerPrimaryBillingAddress->getCountryModel()->getName()) {
|
80 |
+
$data['Country'] = $country;
|
81 |
+
}
|
82 |
+
}
|
83 |
+
|
84 |
+
return $data;
|
85 |
+
}
|
86 |
+
|
87 |
+
protected function _toHtml()
|
88 |
+
{
|
89 |
+
if (!Mage::helper('reamaze_reamaze')->isSetupComplete()) {
|
90 |
+
return '';
|
91 |
+
}
|
92 |
+
return parent::_toHtml();
|
93 |
+
}
|
94 |
+
}
|
app/code/community/Reamaze/Reamaze/Helper/Data.php
ADDED
@@ -0,0 +1,86 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Data helper
|
4 |
+
*
|
5 |
+
* not used at the moment but admin barfs without this
|
6 |
+
*
|
7 |
+
* @author Reamaze
|
8 |
+
*/
|
9 |
+
class Reamaze_Reamaze_Helper_Data extends Mage_Core_Helper_Data {
|
10 |
+
const XML_PATH_ACCOUNT_NAME = 'reamaze_reamaze/account/account_name';
|
11 |
+
|
12 |
+
const XML_PATH_SSO_KEY = 'reamaze_reamaze/account/sso_key';
|
13 |
+
|
14 |
+
const XML_PATH_DASHBOARD_CHARTS = 'reamaze_reamaze/adminhtml_dashboard_widgets/charts';
|
15 |
+
|
16 |
+
const XML_PATH_DASHBOARD_CONVERSATIONS = 'reamaze_reamaze/adminhtml_dashboard_widgets/conversations';
|
17 |
+
|
18 |
+
const XML_PATH_JS_POPUP_TRIGGER = 'reamaze_reamaze/integration/js_popup_trigger';
|
19 |
+
|
20 |
+
const XML_PATH_JS_EMBED_CONTAINER = 'reamaze_reamaze/integration/js_embed_container';
|
21 |
+
|
22 |
+
private static $dashboardCharts = array(
|
23 |
+
'response_time' => 'Response Time',
|
24 |
+
'volume' => 'Response Volume',
|
25 |
+
'staff' => 'Staff Response'
|
26 |
+
);
|
27 |
+
|
28 |
+
private static $dashboardConversations = array(
|
29 |
+
'unresolved' => 'Unresolved Conversations',
|
30 |
+
'assigned_to_me' => 'Conversations Assigned To Me'
|
31 |
+
);
|
32 |
+
|
33 |
+
public function getAccountName($store = null) {
|
34 |
+
return Mage::getStoreConfig(self::XML_PATH_ACCOUNT_NAME, $store);
|
35 |
+
}
|
36 |
+
|
37 |
+
public function getSSOKey($store = null) {
|
38 |
+
return Mage::getStoreConfig(self::XML_PATH_SSO_KEY, $store);
|
39 |
+
}
|
40 |
+
|
41 |
+
public function getAuthKey($userId, $store = null) {
|
42 |
+
return hash('sha256', $userId . ':' . $this->getSSOKey($store));
|
43 |
+
}
|
44 |
+
|
45 |
+
public function getDomain() {
|
46 |
+
return Mage::getStoreConfig('reamaze_reamaze/domain');
|
47 |
+
}
|
48 |
+
|
49 |
+
public function getUrlForPath($path = '/') {
|
50 |
+
return 'http' . (Mage::app()->getStore()->isCurrentlySecure() ? 's' : '') . '://'
|
51 |
+
. $this->getDomain()
|
52 |
+
. $path;
|
53 |
+
}
|
54 |
+
|
55 |
+
public function isSetupComplete() {
|
56 |
+
return Mage::getStoreConfig('reamaze_reamaze/setup_completed');
|
57 |
+
}
|
58 |
+
|
59 |
+
public function getSetupCallbackUrl() {
|
60 |
+
return Mage::helper('adminhtml')->getUrl('reamaze_reamaze/Adminhtml_main/setupCallback');
|
61 |
+
}
|
62 |
+
|
63 |
+
public function getEnabledDashboardCharts($store = null) {
|
64 |
+
return array_filter(explode(',', Mage::getStoreConfig(self::XML_PATH_DASHBOARD_CHARTS, $store)));
|
65 |
+
}
|
66 |
+
|
67 |
+
public function getEnabledDashboardConversations($store = null) {
|
68 |
+
return array_filter(explode(',', Mage::getStoreConfig(self::XML_PATH_DASHBOARD_CONVERSATIONS, $store)));
|
69 |
+
}
|
70 |
+
|
71 |
+
public function getDashboardConversations() {
|
72 |
+
return self::$dashboardConversations;
|
73 |
+
}
|
74 |
+
|
75 |
+
public function getDashboardCharts() {
|
76 |
+
return self::$dashboardCharts;
|
77 |
+
}
|
78 |
+
|
79 |
+
public function getJSEmbedContainer($store = null) {
|
80 |
+
return Mage::getStoreConfig(self::XML_PATH_JS_EMBED_CONTAINER, $store);
|
81 |
+
}
|
82 |
+
|
83 |
+
public function getJSPopupTrigger($store = null) {
|
84 |
+
return Mage::getStoreConfig(self::XML_PATH_JS_POPUP_TRIGGER, $store);
|
85 |
+
}
|
86 |
+
}
|
app/code/community/Reamaze/Reamaze/Model/AdminObserver.php
ADDED
@@ -0,0 +1,89 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Reamaze admin observer
|
4 |
+
* @author Reamaze
|
5 |
+
*/
|
6 |
+
class Reamaze_Reamaze_Model_AdminObserver {
|
7 |
+
public function afterConfigSaved(Varien_Event_Observer $observer) {
|
8 |
+
if (Mage::helper('reamaze_reamaze')->getAccountName()) {
|
9 |
+
Mage::getModel('core/config')->saveConfig('reamaze_reamaze/setup_completed', true);
|
10 |
+
Mage::getModel('core/config')->saveConfig('reamaze_reamaze/setup_incomplete', false);
|
11 |
+
} else {
|
12 |
+
Mage::getModel('core/config')->saveConfig('reamaze_reamaze/setup_completed', false);
|
13 |
+
Mage::getModel('core/config')->saveConfig('reamaze_reamaze/setup_incomplete', true);
|
14 |
+
}
|
15 |
+
|
16 |
+
Mage::getConfig()->reinit();
|
17 |
+
}
|
18 |
+
|
19 |
+
public function coreBlockAbstractPrepareLayoutAfter(Varien_Event_Observer $observer)
|
20 |
+
{
|
21 |
+
if (Mage::app()->getFrontController()->getAction()->getFullActionName() === 'adminhtml_dashboard_index')
|
22 |
+
{
|
23 |
+
$block = $observer->getBlock();
|
24 |
+
if ($block->getNameInLayout() === 'dashboard')
|
25 |
+
{
|
26 |
+
$block->getChild('diagrams')->setUseAsDashboardHook(true);
|
27 |
+
$block->getChild('grids')->setUseAsDashboardHook(true);
|
28 |
+
}
|
29 |
+
}
|
30 |
+
}
|
31 |
+
|
32 |
+
public function coreBlockAbstractToHtmlBefore(Varien_Event_Observer $observer)
|
33 |
+
{
|
34 |
+
if (Mage::app()->getFrontController()->getAction()->getFullActionName() === 'adminhtml_dashboard_index')
|
35 |
+
{
|
36 |
+
if ($observer->getBlock()->getUseAsDashboardHook())
|
37 |
+
{
|
38 |
+
$helper = Mage::helper('reamaze_reamaze');
|
39 |
+
|
40 |
+
if ($observer->getBlock()->getBlockAlias() === 'diagrams' && Mage::getStoreConfig(Mage_Adminhtml_Block_Dashboard::XML_PATH_ENABLE_CHARTS)) {
|
41 |
+
$enabledCharts = $helper->getEnabledDashboardCharts();
|
42 |
+
$allCharts = $helper->getDashboardCharts();
|
43 |
+
|
44 |
+
if (count($enabledCharts) > 0) {
|
45 |
+
foreach($enabledCharts as $chart_id) {
|
46 |
+
$chartBlock = $observer->getBlock()->getLayout()
|
47 |
+
->createBlock('core/template')
|
48 |
+
->setName('reamaze_adminhtml_dashboard_chart_'.$chart_id)
|
49 |
+
->setTemplate('reamaze/reamaze/adminhtml_dashboard_chart.phtml')
|
50 |
+
->setData('chart_id', $chart_id);
|
51 |
+
|
52 |
+
$observer->getBlock()->addTab($chart_id, array(
|
53 |
+
'label' => $allCharts[$chart_id],
|
54 |
+
'content' => $chartBlock->toHtml()
|
55 |
+
));
|
56 |
+
}
|
57 |
+
}
|
58 |
+
} else if ($observer->getBlock()->getBlockAlias() === 'grids') {
|
59 |
+
$enabledConversations = $helper->getEnabledDashboardConversations();
|
60 |
+
$allConversations = $helper->getDashboardConversations();
|
61 |
+
|
62 |
+
if (count($enabledConversations) > 0) {
|
63 |
+
foreach($enabledConversations as $conversations_id) {
|
64 |
+
$conversationsBlock = $observer->getBlock()->getLayout()
|
65 |
+
->createBlock('core/template')
|
66 |
+
->setName('reamaze_adminhtml_dashboard_conversations_'.$conversations_id)
|
67 |
+
->setTemplate('reamaze/reamaze/adminhtml_dashboard_conversations.phtml')
|
68 |
+
->setData('conversations_id', $conversations_id);
|
69 |
+
|
70 |
+
switch ($conversations_id) {
|
71 |
+
case 'unresolved':
|
72 |
+
$conversationsBlock->setData('filter', 'unresolved');
|
73 |
+
break;
|
74 |
+
case 'assigned_to_me':
|
75 |
+
$conversationsBlock->setData('filter', 'me');
|
76 |
+
break;
|
77 |
+
}
|
78 |
+
|
79 |
+
$observer->getBlock()->addTab($conversations_id, array(
|
80 |
+
'label' => $allConversations[$conversations_id],
|
81 |
+
'content' => $conversationsBlock->toHtml()
|
82 |
+
));
|
83 |
+
}
|
84 |
+
}
|
85 |
+
}
|
86 |
+
}
|
87 |
+
}
|
88 |
+
}
|
89 |
+
}
|
app/code/community/Reamaze/Reamaze/Model/Adminhtml/System/Config/Source/DashboardCharts.php
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Dashboard Report Charts config
|
4 |
+
*
|
5 |
+
* @author Reamaze
|
6 |
+
*/
|
7 |
+
class Reamaze_Reamaze_Model_Adminhtml_System_Config_Source_DashboardCharts {
|
8 |
+
protected $_options;
|
9 |
+
|
10 |
+
public function toOptionArray($isMultiselect=false)
|
11 |
+
{
|
12 |
+
$options = array();
|
13 |
+
foreach(Mage::helper('reamaze_reamaze')->getDashboardCharts() as $id => $label)
|
14 |
+
{
|
15 |
+
$options[]= array('value' => $id, 'label' => $label);
|
16 |
+
};
|
17 |
+
|
18 |
+
return $options;
|
19 |
+
}
|
20 |
+
}
|
app/code/community/Reamaze/Reamaze/Model/Adminhtml/System/Config/Source/DashboardConversations.php
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Dashboard Conversations lists config
|
4 |
+
*
|
5 |
+
* @author Reamaze
|
6 |
+
*/
|
7 |
+
class Reamaze_Reamaze_Model_Adminhtml_System_Config_Source_DashboardConversations {
|
8 |
+
protected $_options;
|
9 |
+
|
10 |
+
public function toOptionArray($isMultiselect=false)
|
11 |
+
{
|
12 |
+
$options = array();
|
13 |
+
foreach(Mage::helper('reamaze_reamaze')->getDashboardConversations() as $id => $label)
|
14 |
+
{
|
15 |
+
$options[]= array('value' => $id, 'label' => $label);
|
16 |
+
};
|
17 |
+
|
18 |
+
return $options;
|
19 |
+
}
|
20 |
+
}
|
app/code/community/Reamaze/Reamaze/controllers/Adminhtml/MainController.php
ADDED
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Main admin controller
|
4 |
+
*
|
5 |
+
* @author Reamaze
|
6 |
+
*/
|
7 |
+
|
8 |
+
class Reamaze_Reamaze_Adminhtml_MainController extends Mage_Adminhtml_Controller_Action {
|
9 |
+
|
10 |
+
/**
|
11 |
+
* Init actions
|
12 |
+
* @return Reamaze_Reamaze_adminhtml_MainController
|
13 |
+
*/
|
14 |
+
protected function _initAction() {
|
15 |
+
$this->loadLayout()
|
16 |
+
->_setActiveMenu('reamaze/dashboard')
|
17 |
+
->_addBreadCrumb('Reamaze', 'Reamaze')
|
18 |
+
->_addBreadCrumb('Dashboard', 'Dashboard');
|
19 |
+
|
20 |
+
return $this;
|
21 |
+
}
|
22 |
+
|
23 |
+
public function indexAction($actionPath='') {
|
24 |
+
$this->_title('Reamaze')
|
25 |
+
->_title('Dashboard');
|
26 |
+
|
27 |
+
$this->_initAction();
|
28 |
+
$this->getLayout()->getBlock('reamaze_main')->setData('actionPath', $actionPath);
|
29 |
+
$this->renderLayout();
|
30 |
+
}
|
31 |
+
|
32 |
+
public function dashboardAction() {
|
33 |
+
$this->indexAction();
|
34 |
+
}
|
35 |
+
|
36 |
+
public function reportsAction() {
|
37 |
+
$this->indexAction('reports/volume');
|
38 |
+
}
|
39 |
+
|
40 |
+
public function kbAction() {
|
41 |
+
$this->indexAction('articles');
|
42 |
+
}
|
43 |
+
|
44 |
+
public function contactsAction() {
|
45 |
+
$this->indexAction('users');
|
46 |
+
}
|
47 |
+
|
48 |
+
public function settingsAction() {
|
49 |
+
$this->indexAction('settings');
|
50 |
+
}
|
51 |
+
|
52 |
+
public function setupAction() {
|
53 |
+
$this->_title('Reamaze')
|
54 |
+
->_title('Setup');
|
55 |
+
|
56 |
+
$this->_initAction();
|
57 |
+
$this->renderLayout();
|
58 |
+
}
|
59 |
+
|
60 |
+
public function setupCallbackAction() {
|
61 |
+
$sso = $this->getRequest()->getParam('sso');
|
62 |
+
$accountName = $this->getRequest()->getParam('account_name');
|
63 |
+
|
64 |
+
Mage::getModel('core/config')->saveConfig('reamaze_reamaze/account/account_name', $accountName);
|
65 |
+
Mage::getModel('core/config')->saveConfig('reamaze_reamaze/account/sso_key', $sso);
|
66 |
+
Mage::getModel('core/config')->saveConfig('reamaze_reamaze/setup_completed', true);
|
67 |
+
Mage::getModel('core/config')->saveConfig('reamaze_reamaze/setup_incomplete', false);
|
68 |
+
Mage::getConfig()->reinit();
|
69 |
+
|
70 |
+
$this->getResponse()->setBody('<html><body><script>top.location.href="' . Mage::helper('adminhtml')->getUrl('reamaze_reamaze/Adminhtml_main/dashboard') . '";</script></body></html>');
|
71 |
+
}
|
72 |
+
}
|
app/code/community/Reamaze/Reamaze/etc/adminhtml.xml
ADDED
@@ -0,0 +1,115 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* Admin config
|
5 |
+
*
|
6 |
+
* @author Reamaze
|
7 |
+
*/
|
8 |
+
-->
|
9 |
+
<config>
|
10 |
+
<menu>
|
11 |
+
<reamaze translate="title" module="reamaze_reamaze">
|
12 |
+
<title>Reamaze</title>
|
13 |
+
<sort_order>65</sort_order>
|
14 |
+
<children>
|
15 |
+
<dashboard translate="title" module="reamaze_reamaze">
|
16 |
+
<title>Dashboard</title>
|
17 |
+
<action>reamaze_reamaze/Adminhtml_main/dashboard</action>
|
18 |
+
<sort_order>0</sort_order>
|
19 |
+
<depends>
|
20 |
+
<config>reamaze_reamaze/setup_completed</config>
|
21 |
+
</depends>
|
22 |
+
</dashboard>
|
23 |
+
<reports translate="title" module="reamaze_reamaze">
|
24 |
+
<title>Reports</title>
|
25 |
+
<action>reamaze_reamaze/Adminhtml_main/reports</action>
|
26 |
+
<sort_order>1</sort_order>
|
27 |
+
<depends>
|
28 |
+
<config>reamaze_reamaze/setup_completed</config>
|
29 |
+
</depends>
|
30 |
+
</reports>
|
31 |
+
<kb translate="title" module="reamaze_reamaze">
|
32 |
+
<title>Knowledge Base</title>
|
33 |
+
<action>reamaze_reamaze/Adminhtml_main/kb</action>
|
34 |
+
<sort_order>2</sort_order>
|
35 |
+
<depends>
|
36 |
+
<config>reamaze_reamaze/setup_completed</config>
|
37 |
+
</depends>
|
38 |
+
</kb>
|
39 |
+
<contacts translate="title" module="reamaze_reamaze">
|
40 |
+
<title>Contacts</title>
|
41 |
+
<action>reamaze_reamaze/Adminhtml_main/contacts</action>
|
42 |
+
<sort_order>3</sort_order>
|
43 |
+
<depends>
|
44 |
+
<config>reamaze_reamaze/setup_completed</config>
|
45 |
+
</depends>
|
46 |
+
</contacts>
|
47 |
+
<settings translate="title" module="reamaze_reamaze">
|
48 |
+
<title>Settings</title>
|
49 |
+
<action>reamaze_reamaze/Adminhtml_main/settings</action>
|
50 |
+
<sort_order>4</sort_order>
|
51 |
+
<depends>
|
52 |
+
<config>reamaze_reamaze/setup_completed</config>
|
53 |
+
</depends>
|
54 |
+
</settings>
|
55 |
+
<setup translate="title" module="reamaze_reamaze">
|
56 |
+
<title>Setup</title>
|
57 |
+
<action>reamaze_reamaze/Adminhtml_main/setup</action>
|
58 |
+
<sort_order>1</sort_order>
|
59 |
+
<depends>
|
60 |
+
<config>reamaze_reamaze/setup_incomplete</config>
|
61 |
+
</depends>
|
62 |
+
</setup>
|
63 |
+
</children>
|
64 |
+
</reamaze>
|
65 |
+
</menu>
|
66 |
+
<acl>
|
67 |
+
<resources>
|
68 |
+
<admin>
|
69 |
+
<children>
|
70 |
+
<reamaze translate="title" module="reamaze_reamaze">
|
71 |
+
<title>Reamaze</title>
|
72 |
+
<sort_order>65</sort_order>
|
73 |
+
<children>
|
74 |
+
<dashboard translate="title">
|
75 |
+
<title>Dashboard</title>
|
76 |
+
<sort_order>0</sort_order>
|
77 |
+
</dashboard>
|
78 |
+
<reports translate="title">
|
79 |
+
<title>Reports</title>
|
80 |
+
<sort_order>1</sort_order>
|
81 |
+
</reports>
|
82 |
+
<kb translate="title">
|
83 |
+
<title>Knowledge Base</title>
|
84 |
+
<sort_order>2</sort_order>
|
85 |
+
</kb>
|
86 |
+
<contacts translate="title">
|
87 |
+
<title>Contacts</title>
|
88 |
+
<sort_order>3</sort_order>
|
89 |
+
</contacts>
|
90 |
+
<settings translate="title">
|
91 |
+
<title>Settings</title>
|
92 |
+
<sort_order>4</sort_order>
|
93 |
+
</settings>
|
94 |
+
<setup translate="title">
|
95 |
+
<title>Setup</title>
|
96 |
+
<sort_order>10</sort_order>
|
97 |
+
</setup>
|
98 |
+
</children>
|
99 |
+
</reamaze>
|
100 |
+
<system>
|
101 |
+
<children>
|
102 |
+
<config>
|
103 |
+
<children>
|
104 |
+
<reamaze_reamaze translate="title" module="reamaze_reamaze">
|
105 |
+
<title>Reamaze</title>
|
106 |
+
</reamaze_reamaze>
|
107 |
+
</children>
|
108 |
+
</config>
|
109 |
+
</children>
|
110 |
+
</system>
|
111 |
+
</children>
|
112 |
+
</admin>
|
113 |
+
</resources>
|
114 |
+
</acl>
|
115 |
+
</config>
|
app/code/community/Reamaze/Reamaze/etc/config.xml
ADDED
@@ -0,0 +1,101 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* Module config
|
5 |
+
* @author Reamaze
|
6 |
+
*/
|
7 |
+
-->
|
8 |
+
<config>
|
9 |
+
<modules>
|
10 |
+
<Reamaze_Reamaze>
|
11 |
+
<version>1.0.0</version>
|
12 |
+
</Reamaze_Reamaze>
|
13 |
+
</modules>
|
14 |
+
<global>
|
15 |
+
<models>
|
16 |
+
<reamaze_reamaze>
|
17 |
+
<class>Reamaze_Reamaze_Model</class>
|
18 |
+
</reamaze_reamaze>
|
19 |
+
</models>
|
20 |
+
<helpers>
|
21 |
+
<reamaze_reamaze>
|
22 |
+
<class>Reamaze_Reamaze_Helper</class>
|
23 |
+
</reamaze_reamaze>
|
24 |
+
</helpers>
|
25 |
+
<blocks>
|
26 |
+
<reamaze_reamaze>
|
27 |
+
<class>Reamaze_Reamaze_Block</class>
|
28 |
+
</reamaze_reamaze>
|
29 |
+
</blocks>
|
30 |
+
</global>
|
31 |
+
<frontend>
|
32 |
+
<layout>
|
33 |
+
<updates>
|
34 |
+
<reamaze_reamaze>
|
35 |
+
<file>reamaze_reamaze.xml</file>
|
36 |
+
</reamaze_reamaze>
|
37 |
+
</updates>
|
38 |
+
</layout>
|
39 |
+
</frontend>
|
40 |
+
<admin>
|
41 |
+
<routers>
|
42 |
+
<reamaze_reamaze>
|
43 |
+
<use>admin</use>
|
44 |
+
<args>
|
45 |
+
<module>Reamaze_Reamaze</module>
|
46 |
+
<frontName>reamaze_reamaze</frontName>
|
47 |
+
</args>
|
48 |
+
</reamaze_reamaze>
|
49 |
+
</routers>
|
50 |
+
</admin>
|
51 |
+
<adminhtml>
|
52 |
+
<layout>
|
53 |
+
<updates>
|
54 |
+
<reamaze_reamaze>
|
55 |
+
<file>reamaze_reamaze.xml</file>
|
56 |
+
</reamaze_reamaze>
|
57 |
+
</updates>
|
58 |
+
</layout>
|
59 |
+
<events>
|
60 |
+
<admin_system_config_changed_section_reamaze>
|
61 |
+
<observers>
|
62 |
+
<reamaze_reamaze>
|
63 |
+
<class>reamaze_reamaze/AdminObserver</class>
|
64 |
+
<method>afterConfigSaved</method>
|
65 |
+
</reamaze_reamaze>
|
66 |
+
</observers>
|
67 |
+
</admin_system_config_changed_section_reamaze>
|
68 |
+
<core_block_abstract_prepare_layout_after>
|
69 |
+
<observers>
|
70 |
+
<reamaze_reamaze>
|
71 |
+
<class>reamaze_reamaze/AdminObserver</class>
|
72 |
+
<method>coreBlockAbstractPrepareLayoutAfter</method>
|
73 |
+
</reamaze_reamaze>
|
74 |
+
</observers>
|
75 |
+
</core_block_abstract_prepare_layout_after>
|
76 |
+
<core_block_abstract_to_html_before>
|
77 |
+
<observers>
|
78 |
+
<reamaze_reamaze>
|
79 |
+
<class>reamaze_reamaze/AdminObserver</class>
|
80 |
+
<method>coreBlockAbstractToHtmlBefore</method>
|
81 |
+
</reamaze_reamaze>
|
82 |
+
</observers>
|
83 |
+
</core_block_abstract_to_html_before>
|
84 |
+
</events>
|
85 |
+
</adminhtml>
|
86 |
+
<default>
|
87 |
+
<reamaze_reamaze>
|
88 |
+
<setup_completed>false</setup_completed>
|
89 |
+
<setup_incomplete>true</setup_incomplete>
|
90 |
+
<adminhtml_dashboard_widgets>
|
91 |
+
<charts>response_time,volume,staff</charts>
|
92 |
+
<conversations>assigned_to_me,unresolved</conversations>
|
93 |
+
</adminhtml_dashboard_widgets>
|
94 |
+
<integration>
|
95 |
+
<js_popup_trigger>.contact-us, a[title="Contact Us"]</js_popup_trigger>
|
96 |
+
<js_embed_container>#reamaze-kb</js_embed_container>
|
97 |
+
</integration>
|
98 |
+
<domain>reamaze.com</domain>
|
99 |
+
</reamaze_reamaze>
|
100 |
+
</default>
|
101 |
+
</config>
|
app/code/community/Reamaze/Reamaze/etc/system.xml
ADDED
@@ -0,0 +1,111 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* Admin configuration section config
|
5 |
+
*
|
6 |
+
* @author Reamaze
|
7 |
+
*/
|
8 |
+
-->
|
9 |
+
<config>
|
10 |
+
<sections>
|
11 |
+
<reamaze_reamaze>
|
12 |
+
<class>separator-top</class>
|
13 |
+
<label>Reamaze</label>
|
14 |
+
<tab>general</tab>
|
15 |
+
<frontend_type>text</frontend_type>
|
16 |
+
<sort_order>500</sort_order>
|
17 |
+
<show_in_default>1</show_in_default>
|
18 |
+
|
19 |
+
<groups>
|
20 |
+
<account translate="label">
|
21 |
+
<label>Account Settings</label>
|
22 |
+
<sort_order>10</sort_order>
|
23 |
+
<show_in_default>1</show_in_default>
|
24 |
+
<expanded>1</expanded>
|
25 |
+
<fields>
|
26 |
+
<account_name translate="label">
|
27 |
+
<label>Account Name</label>
|
28 |
+
<validate>required-entry</validate>
|
29 |
+
<sort_order>10</sort_order>
|
30 |
+
<comment>
|
31 |
+
This is the same as the subdomain of your account. For example, if your account is mystore.reamaze.com then mystore would be the value you provide here.
|
32 |
+
</comment>
|
33 |
+
<show_in_default>1</show_in_default>
|
34 |
+
</account_name>
|
35 |
+
<sso_key translate="label">
|
36 |
+
<label>Secret SSO Key</label>
|
37 |
+
<validate>required-entry</validate>
|
38 |
+
<sort_order>20</sort_order>
|
39 |
+
<comment>This is the key used to authenticate users with Reamaze. You can find this key in the Settings -> Website Integration section in Reamaze.</comment>
|
40 |
+
<show_in_default>1</show_in_default>
|
41 |
+
</sso_key>
|
42 |
+
<setup_button translate="button_label">
|
43 |
+
<label></label>
|
44 |
+
<button_label>Run Quick Setup</button_label>
|
45 |
+
<frontend_model>reamaze_reamaze/adminhtml_system_config_RunSetupButton</frontend_model>
|
46 |
+
<sort_order>100</sort_order>
|
47 |
+
<show_in_default>1</show_in_default>
|
48 |
+
</setup_button>
|
49 |
+
<help_me translate="label">
|
50 |
+
<label></label>
|
51 |
+
<frontend_model>reamaze_reamaze/adminhtml_system_config_HelpMe</frontend_model>
|
52 |
+
<sort_order>101</sort_order>
|
53 |
+
<show_in_default>1</show_in_default>
|
54 |
+
</help_me>
|
55 |
+
</fields>
|
56 |
+
</account>
|
57 |
+
<adminhtml_dashboard_widgets translate="label">
|
58 |
+
<label>Magento Admin Dashboard Widgets</label>
|
59 |
+
<sort_order>20</sort_order>
|
60 |
+
<show_in_default>1</show_in_default>
|
61 |
+
<fields>
|
62 |
+
<charts translate="label">
|
63 |
+
<label>Report Charts</label>
|
64 |
+
<frontend_type>multiselect</frontend_type>
|
65 |
+
<source_model>reamaze_reamaze/adminhtml_system_config_source_DashboardCharts</source_model>
|
66 |
+
<sort_order>10</sort_order>
|
67 |
+
<show_in_default>1</show_in_default>
|
68 |
+
<can_be_empty>1</can_be_empty>
|
69 |
+
<comment>Dashboard Charts must be enabled for the report charts to work (Configuration -> Advanced -> Admin -> Dashboard -> Enable Charts).</comment>
|
70 |
+
</charts>
|
71 |
+
<conversations translate="label">
|
72 |
+
<label>Conversation Lists</label>
|
73 |
+
<frontend_type>multiselect</frontend_type>
|
74 |
+
<source_model>reamaze_reamaze/adminhtml_system_config_source_DashboardConversations</source_model>
|
75 |
+
<sort_order>20</sort_order>
|
76 |
+
<show_in_default>1</show_in_default>
|
77 |
+
<can_be_empty>1</can_be_empty>
|
78 |
+
</conversations>
|
79 |
+
</fields>
|
80 |
+
</adminhtml_dashboard_widgets>
|
81 |
+
<integration>
|
82 |
+
<label>Website Integration</label>
|
83 |
+
<sort_order>30</sort_order>
|
84 |
+
<show_in_default>1</show_in_default>
|
85 |
+
<fields>
|
86 |
+
<js_popup_trigger translate="label">
|
87 |
+
<label>Support Popup Trigger</label>
|
88 |
+
<frontend_type>text</frontend_type>
|
89 |
+
<sort_order>10</sort_order>
|
90 |
+
<show_in_default>1</show_in_default>
|
91 |
+
<comment>This is the CSS selector that matches the link for which you want to trigger the Reamaze Support Popup.<br/>
|
92 |
+
For example, if the trigger is <span style="font-weight:bold;color:#d14;padding:2px 3px;background-color:#f5f5f5;border:1px solid rgba(0, 0, 0, 0.15);">#support-link</span>, the following HTML would trigger the popup and can be placed anywhere on your site.<br/>
|
93 |
+
<span style="display:block;margin:5px 0;padding:3px 5px;background-color:#f5f5f5;border:1px solid rgba(0, 0, 0, 0.15);">&lt;a href="#" id="support-link"&gt;Get Support&lt;/a&gt;</span>
|
94 |
+
You can use any CSS selector to match the corresponding HTML (e.g. IDs, classes, etc.)</comment>
|
95 |
+
</js_popup_trigger>
|
96 |
+
<js_embed_container translate="label">
|
97 |
+
<label>Knowledge Base Container</label>
|
98 |
+
<frontend_type>text</frontend_type>
|
99 |
+
<sort_order>11</sort_order>
|
100 |
+
<show_in_default>1</show_in_default>
|
101 |
+
<comment>This is the CSS selector that matches an HTML element which will contain the Knowledge Base.<br/>
|
102 |
+
For example, if the CSS selector entered is <span style="font-weight:bold;color:#d14;padding:2px 3px;background-color:#f5f5f5;border:1px solid rgba(0, 0, 0, 0.15);">#reamaze-kb</span>, the Knowledge Base will be dropped in to the following HTML placed on a page:<br/>
|
103 |
+
<span style="display:block;margin:5px 0;padding:3px 5px;background-color:#f5f5f5;border:1px solid rgba(0, 0, 0, 0.15);">&lt;div id="reamaze-kb"&gt;&lt;/div&gt;</span>
|
104 |
+
</comment>
|
105 |
+
</js_embed_container>
|
106 |
+
</fields>
|
107 |
+
</integration>
|
108 |
+
</groups>
|
109 |
+
</reamaze_reamaze>
|
110 |
+
</sections>
|
111 |
+
</config>
|
app/design/adminhtml/default/default/layout/reamaze_reamaze.xml
ADDED
@@ -0,0 +1,212 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* backend layout
|
5 |
+
*
|
6 |
+
* @author Reamaze
|
7 |
+
*/
|
8 |
+
-->
|
9 |
+
<layout>
|
10 |
+
<adminhtml_dashboard_index>
|
11 |
+
<reference name="head">
|
12 |
+
<action method="addJs">
|
13 |
+
<script>reamaze/jquery.min.js</script>
|
14 |
+
</action>
|
15 |
+
<action method="addJs">
|
16 |
+
<script>reamaze/jquery.migrate.js</script>
|
17 |
+
</action>
|
18 |
+
<action method="addJs">
|
19 |
+
<script>reamaze/jquery.ba-postmessage.js</script>
|
20 |
+
</action>
|
21 |
+
<action method="addJs">
|
22 |
+
<script>reamaze/jquery.deparam.js</script>
|
23 |
+
</action>
|
24 |
+
<action method="addJs">
|
25 |
+
<script>reamaze/jquery.noConflict.js</script>
|
26 |
+
</action>
|
27 |
+
<action method="addCss">
|
28 |
+
<script>reamaze/dashboard.css</script>
|
29 |
+
</action>
|
30 |
+
</reference>
|
31 |
+
</adminhtml_dashboard_index>
|
32 |
+
<adminhtml_customer_edit>
|
33 |
+
<reference name="head">
|
34 |
+
<action method="addJs">
|
35 |
+
<script>reamaze/jquery.min.js</script>
|
36 |
+
</action>
|
37 |
+
<action method="addJs">
|
38 |
+
<script>reamaze/jquery.migrate.js</script>
|
39 |
+
</action>
|
40 |
+
<action method="addJs">
|
41 |
+
<script>reamaze/jquery.ba-postmessage.js</script>
|
42 |
+
</action>
|
43 |
+
<action method="addJs">
|
44 |
+
<script>reamaze/jquery.deparam.js</script>
|
45 |
+
</action>
|
46 |
+
<action method="addJs">
|
47 |
+
<script>reamaze/jquery.noConflict.js</script>
|
48 |
+
</action>
|
49 |
+
<action method="addCss">
|
50 |
+
<script>reamaze/dashboard.css</script>
|
51 |
+
</action>
|
52 |
+
</reference>
|
53 |
+
<reference name="customer_edit_tabs">
|
54 |
+
<block type="reamaze_reamaze/adminhtml_customer_edit_tab_conversations" name="reamaze_customer_conversations_view" template="reamaze/reamaze/adminhtml_customer_edit_tab_conversations.phtml" />
|
55 |
+
<action method="addTab">
|
56 |
+
<name>conversations</name>
|
57 |
+
<block>reamaze_customer_conversations_view</block>
|
58 |
+
<afterTab>account</afterTab>
|
59 |
+
</action>
|
60 |
+
</reference>
|
61 |
+
</adminhtml_customer_edit>
|
62 |
+
<reamaze_reamaze_adminhtml_main_dashboard>
|
63 |
+
<reference name="head">
|
64 |
+
<action method="addJs">
|
65 |
+
<script>reamaze/jquery.min.js</script>
|
66 |
+
</action>
|
67 |
+
<action method="addJs">
|
68 |
+
<script>reamaze/jquery.migrate.js</script>
|
69 |
+
</action>
|
70 |
+
<action method="addJs">
|
71 |
+
<script>reamaze/jquery.ba-postmessage.js</script>
|
72 |
+
</action>
|
73 |
+
<action method="addJs">
|
74 |
+
<script>reamaze/jquery.deparam.js</script>
|
75 |
+
</action>
|
76 |
+
<action method="addJs">
|
77 |
+
<script>reamaze/jquery.noConflict.js</script>
|
78 |
+
</action>
|
79 |
+
<action method="addCss">
|
80 |
+
<script>reamaze/dashboard.css</script>
|
81 |
+
</action>
|
82 |
+
</reference>
|
83 |
+
<reference name="content">
|
84 |
+
<block type="reamaze_reamaze/adminhtml_main" name="reamaze_main" template="reamaze/reamaze/dashboard.phtml" />
|
85 |
+
</reference>
|
86 |
+
</reamaze_reamaze_adminhtml_main_dashboard>
|
87 |
+
<reamaze_reamaze_adminhtml_main_reports>
|
88 |
+
<reference name="head">
|
89 |
+
<action method="addJs">
|
90 |
+
<script>reamaze/jquery.min.js</script>
|
91 |
+
</action>
|
92 |
+
<action method="addJs">
|
93 |
+
<script>reamaze/jquery.migrate.js</script>
|
94 |
+
</action>
|
95 |
+
<action method="addJs">
|
96 |
+
<script>reamaze/jquery.ba-postmessage.js</script>
|
97 |
+
</action>
|
98 |
+
<action method="addJs">
|
99 |
+
<script>reamaze/jquery.deparam.js</script>
|
100 |
+
</action>
|
101 |
+
<action method="addJs">
|
102 |
+
<script>reamaze/jquery.noConflict.js</script>
|
103 |
+
</action>
|
104 |
+
<action method="addCss">
|
105 |
+
<script>reamaze/dashboard.css</script>
|
106 |
+
</action>
|
107 |
+
</reference>
|
108 |
+
<reference name="content">
|
109 |
+
<block type="reamaze_reamaze/adminhtml_main" name="reamaze_main" template="reamaze/reamaze/dashboard.phtml" />
|
110 |
+
</reference>
|
111 |
+
</reamaze_reamaze_adminhtml_main_reports>
|
112 |
+
<reamaze_reamaze_adminhtml_main_kb>
|
113 |
+
<reference name="head">
|
114 |
+
<action method="addJs">
|
115 |
+
<script>reamaze/jquery.min.js</script>
|
116 |
+
</action>
|
117 |
+
<action method="addJs">
|
118 |
+
<script>reamaze/jquery.migrate.js</script>
|
119 |
+
</action>
|
120 |
+
<action method="addJs">
|
121 |
+
<script>reamaze/jquery.ba-postmessage.js</script>
|
122 |
+
</action>
|
123 |
+
<action method="addJs">
|
124 |
+
<script>reamaze/jquery.deparam.js</script>
|
125 |
+
</action>
|
126 |
+
<action method="addJs">
|
127 |
+
<script>reamaze/jquery.noConflict.js</script>
|
128 |
+
</action>
|
129 |
+
<action method="addCss">
|
130 |
+
<script>reamaze/dashboard.css</script>
|
131 |
+
</action>
|
132 |
+
</reference>
|
133 |
+
<reference name="content">
|
134 |
+
<block type="reamaze_reamaze/adminhtml_main" name="reamaze_main" template="reamaze/reamaze/dashboard.phtml" />
|
135 |
+
</reference>
|
136 |
+
</reamaze_reamaze_adminhtml_main_kb>
|
137 |
+
<reamaze_reamaze_adminhtml_main_contacts>
|
138 |
+
<reference name="head">
|
139 |
+
<action method="addJs">
|
140 |
+
<script>reamaze/jquery.min.js</script>
|
141 |
+
</action>
|
142 |
+
<action method="addJs">
|
143 |
+
<script>reamaze/jquery.migrate.js</script>
|
144 |
+
</action>
|
145 |
+
<action method="addJs">
|
146 |
+
<script>reamaze/jquery.ba-postmessage.js</script>
|
147 |
+
</action>
|
148 |
+
<action method="addJs">
|
149 |
+
<script>reamaze/jquery.deparam.js</script>
|
150 |
+
</action>
|
151 |
+
<action method="addJs">
|
152 |
+
<script>reamaze/jquery.noConflict.js</script>
|
153 |
+
</action>
|
154 |
+
<action method="addCss">
|
155 |
+
<script>reamaze/dashboard.css</script>
|
156 |
+
</action>
|
157 |
+
</reference>
|
158 |
+
<reference name="content">
|
159 |
+
<block type="reamaze_reamaze/adminhtml_main" name="reamaze_main" template="reamaze/reamaze/dashboard.phtml" />
|
160 |
+
</reference>
|
161 |
+
</reamaze_reamaze_adminhtml_main_contacts>
|
162 |
+
<reamaze_reamaze_adminhtml_main_settings>
|
163 |
+
<reference name="head">
|
164 |
+
<action method="addJs">
|
165 |
+
<script>reamaze/jquery.min.js</script>
|
166 |
+
</action>
|
167 |
+
<action method="addJs">
|
168 |
+
<script>reamaze/jquery.migrate.js</script>
|
169 |
+
</action>
|
170 |
+
<action method="addJs">
|
171 |
+
<script>reamaze/jquery.ba-postmessage.js</script>
|
172 |
+
</action>
|
173 |
+
<action method="addJs">
|
174 |
+
<script>reamaze/jquery.deparam.js</script>
|
175 |
+
</action>
|
176 |
+
<action method="addJs">
|
177 |
+
<script>reamaze/jquery.noConflict.js</script>
|
178 |
+
</action>
|
179 |
+
<action method="addCss">
|
180 |
+
<script>reamaze/dashboard.css</script>
|
181 |
+
</action>
|
182 |
+
</reference>
|
183 |
+
<reference name="content">
|
184 |
+
<block type="reamaze_reamaze/adminhtml_main" name="reamaze_main" template="reamaze/reamaze/dashboard.phtml" />
|
185 |
+
</reference>
|
186 |
+
</reamaze_reamaze_adminhtml_main_settings>
|
187 |
+
<reamaze_reamaze_adminhtml_main_setup>
|
188 |
+
<reference name="head">
|
189 |
+
<action method="addJs">
|
190 |
+
<script>reamaze/jquery.min.js</script>
|
191 |
+
</action>
|
192 |
+
<action method="addJs">
|
193 |
+
<script>reamaze/jquery.migrate.js</script>
|
194 |
+
</action>
|
195 |
+
<action method="addJs">
|
196 |
+
<script>reamaze/jquery.ba-postmessage.js</script>
|
197 |
+
</action>
|
198 |
+
<action method="addJs">
|
199 |
+
<script>reamaze/jquery.deparam.js</script>
|
200 |
+
</action>
|
201 |
+
<action method="addJs">
|
202 |
+
<script>reamaze/jquery.noConflict.js</script>
|
203 |
+
</action>
|
204 |
+
<action method="addCss">
|
205 |
+
<script>reamaze/dashboard.css</script>
|
206 |
+
</action>
|
207 |
+
</reference>
|
208 |
+
<reference name="content">
|
209 |
+
<block type="reamaze_reamaze/adminhtml_main" name="reamaze_main_setup" template="reamaze/reamaze/setup.phtml" />
|
210 |
+
</reference>
|
211 |
+
</reamaze_reamaze_adminhtml_main_setup>
|
212 |
+
</layout>
|
app/design/adminhtml/default/default/template/reamaze/reamaze/adminhtml_customer_edit_tab_conversations.phtml
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<script type="text/javascript">
|
2 |
+
$jq(function() {
|
3 |
+
varienGlobalEvents.attachEventHandler('showTab', function(e) {
|
4 |
+
var $chartContainer = $jq("#rmz-user-conversations");
|
5 |
+
|
6 |
+
if (e.tab &&
|
7 |
+
$jq(e.tab).is('#customer_info_tabs_conversations') &&
|
8 |
+
!$chartContainer.children('iframe').length) {
|
9 |
+
|
10 |
+
var _baseUrl = "https://<?php echo Mage::helper('reamaze_reamaze')->getAccountName()?>.<?php echo Mage::helper('reamaze_reamaze')->getDomain(); ?>";
|
11 |
+
var _user = {
|
12 |
+
"id": "<?php echo Mage::getSingleton('admin/session')->getUser()->getId(); ?>",
|
13 |
+
"authkey": "<?php echo Mage::helper('reamaze_reamaze')->getAuthKey(Mage::getSingleton('admin/session')->getUser()->getId()); ?>",
|
14 |
+
"parent_url": window.location.href
|
15 |
+
};
|
16 |
+
|
17 |
+
var url = _baseUrl + '/admin/users' + '?' + $jq.param({external_ref: '<?php echo $this->getCustomer()->getId(); ?>', sso: _user, widget: 1, app: 'magento'});
|
18 |
+
var embedEle = $jq('<iframe/>').attr({width: "100%", src: url, scrolling: "no", frameborder: "0", allowtransparency: "true", name: "_widget_user_conversations"});
|
19 |
+
$chartContainer.html(embedEle);
|
20 |
+
|
21 |
+
$jq.receiveMessage(function(e) {
|
22 |
+
var msgAr = $jq.deparam(e.data);
|
23 |
+
var frame = $jq('iframe[name="' + msgAr._name + '"]');
|
24 |
+
if (frame.length) {
|
25 |
+
frame.height(msgAr._height);
|
26 |
+
}
|
27 |
+
}, _baseUrl);
|
28 |
+
}
|
29 |
+
});
|
30 |
+
});
|
31 |
+
</script>
|
32 |
+
|
33 |
+
<div id="rmz-user-conversations"></div>
|
app/design/adminhtml/default/default/template/reamaze/reamaze/adminhtml_dashboard_chart.phtml
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<script type="text/javascript">
|
2 |
+
$jq(function() {
|
3 |
+
varienGlobalEvents.attachEventHandler('showTab', function(e) {
|
4 |
+
var $chartContainer = $jq("#rmz-chart-<?php echo $this->getData('chart_id'); ?>");
|
5 |
+
|
6 |
+
if (e.tab &&
|
7 |
+
$jq(e.tab).is('#diagram_tab_<?php echo $this->getData("chart_id"); ?>') &&
|
8 |
+
!$chartContainer.children('iframe').length) {
|
9 |
+
|
10 |
+
var _baseUrl = "https://<?php echo Mage::helper('reamaze_reamaze')->getAccountName()?>.<?php echo Mage::helper('reamaze_reamaze')->getDomain(); ?>";
|
11 |
+
var _user = {
|
12 |
+
"id": "<?php echo Mage::getSingleton('admin/session')->getUser()->getId(); ?>",
|
13 |
+
"authkey": "<?php echo Mage::helper('reamaze_reamaze')->getAuthKey(Mage::getSingleton('admin/session')->getUser()->getId()); ?>",
|
14 |
+
"parent_url": window.location.href
|
15 |
+
};
|
16 |
+
|
17 |
+
var url = _baseUrl + '/admin/reports/<?php echo $this->getData("chart_id"); ?>' + '?' + $jq.param({sso: _user, widget: 1, app: 'magento'});
|
18 |
+
var embedEle = $jq('<iframe/>').attr({width: "100%", src: url, scrolling: "no", frameborder: "0", allowtransparency: "true", name: "_widget_chart_" + '<?php echo $this->getData("chart_id"); ?>'});
|
19 |
+
$chartContainer.html(embedEle);
|
20 |
+
|
21 |
+
$jq.receiveMessage(function(e) {
|
22 |
+
var msgAr = $jq.deparam(e.data);
|
23 |
+
var frame = $jq('iframe[name="' + msgAr._name + '"]');
|
24 |
+
if (frame.length) {
|
25 |
+
frame.height(msgAr._height);
|
26 |
+
}
|
27 |
+
}, _baseUrl);
|
28 |
+
}
|
29 |
+
});
|
30 |
+
});
|
31 |
+
</script>
|
32 |
+
|
33 |
+
<div id="rmz-chart-<?php echo $this->getData('chart_id'); ?>"></div>
|
app/design/adminhtml/default/default/template/reamaze/reamaze/adminhtml_dashboard_conversations.phtml
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<script type="text/javascript">
|
2 |
+
$jq(function() {
|
3 |
+
varienGlobalEvents.attachEventHandler('showTab', function(e) {
|
4 |
+
var $conversationsContainer = $jq("#rmz-conversations-<?php echo $this->getData('conversations_id'); ?>");
|
5 |
+
|
6 |
+
if (e.tab &&
|
7 |
+
$jq(e.tab).is('#grid_tab_<?php echo $this->getData("conversations_id"); ?>') &&
|
8 |
+
!$conversationsContainer.children('iframe').length) {
|
9 |
+
|
10 |
+
var _baseUrl = "https://<?php echo Mage::helper('reamaze_reamaze')->getAccountName()?>.<?php echo Mage::helper('reamaze_reamaze')->getDomain(); ?>";
|
11 |
+
var _user = {
|
12 |
+
"id": "<?php echo Mage::getSingleton('admin/session')->getUser()->getId(); ?>",
|
13 |
+
"authkey": "<?php echo Mage::helper('reamaze_reamaze')->getAuthKey(Mage::getSingleton('admin/session')->getUser()->getId()); ?>",
|
14 |
+
"parent_url": window.location.href
|
15 |
+
};
|
16 |
+
var params = {
|
17 |
+
filter: '<?php echo $this->getData("filter"); ?>',
|
18 |
+
sso: _user,
|
19 |
+
widget: 1,
|
20 |
+
app: 'magento'
|
21 |
+
};
|
22 |
+
|
23 |
+
var url = _baseUrl + '/admin/dashboard?' + $jq.param(params);
|
24 |
+
var embedEle = $jq('<iframe/>').attr({width: "100%", src: url, scrolling: "no", frameborder: "0", allowtransparency: "true", name: "_widget_conversations_<?php echo $this->getData('conversations_id'); ?>"});
|
25 |
+
$conversationsContainer.html(embedEle);
|
26 |
+
|
27 |
+
$jq.receiveMessage(function(e) {
|
28 |
+
var msgAr = $jq.deparam(e.data);
|
29 |
+
var frame = $jq('iframe[name="' + msgAr._name + '"]');
|
30 |
+
if (frame.length) {
|
31 |
+
frame.height(msgAr._height);
|
32 |
+
}
|
33 |
+
}, _baseUrl);
|
34 |
+
}
|
35 |
+
});
|
36 |
+
});
|
37 |
+
</script>
|
38 |
+
|
39 |
+
<div id="rmz-conversations-<?php echo $this->getData('conversations_id'); ?>"></div>
|
app/design/adminhtml/default/default/template/reamaze/reamaze/dashboard.phtml
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<script type="text/javascript">
|
2 |
+
$jq(function() {
|
3 |
+
var _baseUrl = "https://<?php echo Mage::helper('reamaze_reamaze')->getAccountName()?>.<?php echo Mage::helper('reamaze_reamaze')->getDomain(); ?>";
|
4 |
+
var _user = {
|
5 |
+
"id": "<?php echo Mage::getSingleton('admin/session')->getUser()->getId(); ?>",
|
6 |
+
"authkey": "<?php echo Mage::helper('reamaze_reamaze')->getAuthKey(Mage::getSingleton('admin/session')->getUser()->getId()); ?>",
|
7 |
+
"parent_url": window.location.href
|
8 |
+
};
|
9 |
+
|
10 |
+
var url = _baseUrl + '/admin/<?php echo $this->getData("actionPath"); ?>?' + $jq.param({sso: _user, framed: 1, app: 'magento'});
|
11 |
+
var embedEle = $jq('<iframe/>').attr({width: "100%", src: url, scrolling: "no", frameborder: "0", allowtransparency: "true", name: "_embed"});
|
12 |
+
$jq("#reamaze-dashboard").append(embedEle);
|
13 |
+
|
14 |
+
$jq.receiveMessage(function(e) {
|
15 |
+
var msgAr = $jq.deparam(e.data);
|
16 |
+
var frame = $jq('iframe[name="' + msgAr._name + '"]');
|
17 |
+
if (frame.length) {
|
18 |
+
frame.height(msgAr._height);
|
19 |
+
}
|
20 |
+
}, _baseUrl);
|
21 |
+
});
|
22 |
+
</script>
|
23 |
+
|
24 |
+
<div id="reamaze-dashboard"></div>
|
app/design/adminhtml/default/default/template/reamaze/reamaze/jquery.phtml
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<![CDATA[<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script><script>window.jQuery||document.write('<script src="/path/to/your/jquery.js">\x3c/script>');</script><script>jQuery.noConflict();</script>]]>
|
app/design/adminhtml/default/default/template/reamaze/reamaze/setup.phtml
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<script type="text/javascript">
|
2 |
+
$jq(function() {
|
3 |
+
var _baseUrl = "https://<?php echo Mage::helper('reamaze_reamaze')->getDomain(); ?>";
|
4 |
+
|
5 |
+
var url = _baseUrl + '/extensions/magento_setup?' + $jq.param({cb: '<?php echo Mage::helper("reamaze_reamaze")->getSetupCallbackUrl(); ?>', parent_url: '<?php echo Mage::helper("core/url")->getCurrentUrl(); ?>'});
|
6 |
+
var embedEle = $jq('<iframe/>').attr({width: "100%", src: url, scrolling: "no", frameborder: "0", allowtransparency: "true", name: "_embed"});
|
7 |
+
$jq("#reamaze-setup").append(embedEle);
|
8 |
+
|
9 |
+
$jq.receiveMessage(function(e) {
|
10 |
+
var msgAr = $jq.deparam(e.data);
|
11 |
+
var frame = $jq('iframe[name="' + msgAr._name + '"]');
|
12 |
+
if (frame.length) {
|
13 |
+
frame.height(msgAr._height);
|
14 |
+
}
|
15 |
+
}, _baseUrl);
|
16 |
+
});
|
17 |
+
</script>
|
18 |
+
|
19 |
+
<div id="reamaze-setup"></div>
|
app/design/adminhtml/default/default/template/reamaze/reamaze/system/config/helpme.phtml
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div style="margin-top: 5px;">
|
2 |
+
<a class="contact-reamaze" href="javascript:;">Contact Support</a> | <a href="http://reamaze.reamaze.com/" target="_blank">Knowledge Base</a>
|
3 |
+
</div>
|
4 |
+
<script type="text/javascript">
|
5 |
+
var _support = {
|
6 |
+
account: 'reamaze',
|
7 |
+
ui: {
|
8 |
+
type: 'popup',
|
9 |
+
trigger: '.contact-reamaze'
|
10 |
+
}
|
11 |
+
}
|
12 |
+
</script>
|
13 |
+
|
14 |
+
<script>
|
15 |
+
(function() {
|
16 |
+
function async_load() {
|
17 |
+
var s = document.createElement('script');
|
18 |
+
s.type = 'text/javascript'; s.async = true;
|
19 |
+
s.src = '<?php echo $this->getData("js_path"); ?>';
|
20 |
+
var x = document.getElementsByTagName('script')[0];
|
21 |
+
x.parentNode.insertBefore(s, x);
|
22 |
+
}
|
23 |
+
if (window.attachEvent) {
|
24 |
+
window.attachEvent('onload', async_load);
|
25 |
+
} else {
|
26 |
+
window.addEventListener('load', async_load, false);
|
27 |
+
}
|
28 |
+
})();
|
29 |
+
</script>
|
app/design/frontend/base/default/layout/reamaze_reamaze.xml
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<layout version="0.1.0">
|
3 |
+
<default>
|
4 |
+
<reference name="before_body_end">
|
5 |
+
<block type="reamaze_reamaze/js" name="reamazejs" as="reamazejs" template="reamaze/reamaze/js.phtml" />
|
6 |
+
</reference>
|
7 |
+
</default>
|
8 |
+
</layout>
|
app/design/frontend/base/default/template/reamaze/reamaze/js.phtml
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<script type="text/javascript">
|
2 |
+
var _support = <?php echo $this->getSupportJson(); ?>;
|
3 |
+
|
4 |
+
(function() {
|
5 |
+
function async_load() {
|
6 |
+
var s = document.createElement('script');
|
7 |
+
s.type = 'text/javascript'; s.async = true;
|
8 |
+
s.src = '<?php echo $this->getJsPath() ?>';
|
9 |
+
var x = document.getElementsByTagName('script')[0];
|
10 |
+
x.parentNode.insertBefore(s, x);
|
11 |
+
}
|
12 |
+
if (window.attachEvent) {
|
13 |
+
window.attachEvent('onload', async_load);
|
14 |
+
} else {
|
15 |
+
window.addEventListener('load', async_load, false);
|
16 |
+
}
|
17 |
+
})();
|
18 |
+
</script>
|
19 |
+
|
app/etc/modules/Reamaze_Reamaze.xml
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* Module initial config
|
5 |
+
* @author Reamaze
|
6 |
+
*/
|
7 |
+
-->
|
8 |
+
<config>
|
9 |
+
<modules>
|
10 |
+
<Reamaze_Reamaze>
|
11 |
+
<active>true</active>
|
12 |
+
<codePool>community</codePool>
|
13 |
+
<depends>
|
14 |
+
<Mage_Adminhtml />
|
15 |
+
</depends>
|
16 |
+
</Reamaze_Reamaze>
|
17 |
+
</modules>
|
18 |
+
</config>
|
js/reamaze/jquery.ba-postmessage.js
ADDED
@@ -0,0 +1,222 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*!
|
2 |
+
* jQuery postMessage - v0.5 - 9/11/2009
|
3 |
+
* http://benalman.com/projects/jquery-postmessage-plugin/
|
4 |
+
*
|
5 |
+
* Copyright (c) 2009 "Cowboy" Ben Alman
|
6 |
+
* Dual licensed under the MIT and GPL licenses.
|
7 |
+
* http://benalman.com/about/license/
|
8 |
+
*/
|
9 |
+
|
10 |
+
// Script: jQuery postMessage: Cross-domain scripting goodness
|
11 |
+
//
|
12 |
+
// *Version: 0.5, Last updated: 9/11/2009*
|
13 |
+
//
|
14 |
+
// Project Home - http://benalman.com/projects/jquery-postmessage-plugin/
|
15 |
+
// GitHub - http://github.com/cowboy/jquery-postmessage/
|
16 |
+
// Source - http://github.com/cowboy/jquery-postmessage/raw/master/jquery.ba-postmessage.js
|
17 |
+
// (Minified) - http://github.com/cowboy/jquery-postmessage/raw/master/jquery.ba-postmessage.min.js (0.9kb)
|
18 |
+
//
|
19 |
+
// About: License
|
20 |
+
//
|
21 |
+
// Copyright (c) 2009 "Cowboy" Ben Alman,
|
22 |
+
// Dual licensed under the MIT and GPL licenses.
|
23 |
+
// http://benalman.com/about/license/
|
24 |
+
//
|
25 |
+
// About: Examples
|
26 |
+
//
|
27 |
+
// This working example, complete with fully commented code, illustrates one
|
28 |
+
// way in which this plugin can be used.
|
29 |
+
//
|
30 |
+
// Iframe resizing - http://benalman.com/code/projects/jquery-postmessage/examples/iframe/
|
31 |
+
//
|
32 |
+
// About: Support and Testing
|
33 |
+
//
|
34 |
+
// Information about what version or versions of jQuery this plugin has been
|
35 |
+
// tested with and what browsers it has been tested in.
|
36 |
+
//
|
37 |
+
// jQuery Versions - 1.3.2
|
38 |
+
// Browsers Tested - Internet Explorer 6-8, Firefox 3, Safari 3-4, Chrome, Opera 9.
|
39 |
+
//
|
40 |
+
// About: Release History
|
41 |
+
//
|
42 |
+
// 0.5 - (9/11/2009) Improved cache-busting
|
43 |
+
// 0.4 - (8/25/2009) Initial release
|
44 |
+
|
45 |
+
(function($){
|
46 |
+
'$:nomunge'; // Used by YUI compressor.
|
47 |
+
|
48 |
+
// A few vars used in non-awesome browsers.
|
49 |
+
var interval_id,
|
50 |
+
last_hash,
|
51 |
+
cache_bust = 1,
|
52 |
+
|
53 |
+
// A var used in awesome browsers.
|
54 |
+
rm_callback,
|
55 |
+
|
56 |
+
// A few convenient shortcuts.
|
57 |
+
window = this,
|
58 |
+
FALSE = !1,
|
59 |
+
|
60 |
+
// Reused internal strings.
|
61 |
+
postMessage = 'postMessage',
|
62 |
+
addEventListener = 'addEventListener',
|
63 |
+
|
64 |
+
p_receiveMessage,
|
65 |
+
|
66 |
+
// I couldn't get window.postMessage to actually work in Opera 9.64!
|
67 |
+
has_postMessage = window[postMessage] && !$.browser.opera;
|
68 |
+
|
69 |
+
// Method: jQuery.postMessage
|
70 |
+
//
|
71 |
+
// This method will call window.postMessage if available, setting the
|
72 |
+
// targetOrigin parameter to the base of the target_url parameter for maximum
|
73 |
+
// security in browsers that support it. If window.postMessage is not available,
|
74 |
+
// the target window's location.hash will be used to pass the message. If an
|
75 |
+
// object is passed as the message param, it will be serialized into a string
|
76 |
+
// using the jQuery.param method.
|
77 |
+
//
|
78 |
+
// Usage:
|
79 |
+
//
|
80 |
+
// > jQuery.postMessage( message, target_url [, target ] );
|
81 |
+
//
|
82 |
+
// Arguments:
|
83 |
+
//
|
84 |
+
// message - (String) A message to be passed to the other frame.
|
85 |
+
// message - (Object) An object to be serialized into a params string, using
|
86 |
+
// the jQuery.param method.
|
87 |
+
// target_url - (String) The URL of the other frame this window is
|
88 |
+
// attempting to communicate with. This must be the exact URL (including
|
89 |
+
// any query string) of the other window for this script to work in
|
90 |
+
// browsers that don't support window.postMessage.
|
91 |
+
// target - (Object) A reference to the other frame this window is
|
92 |
+
// attempting to communicate with. If omitted, defaults to `parent`.
|
93 |
+
//
|
94 |
+
// Returns:
|
95 |
+
//
|
96 |
+
// Nothing.
|
97 |
+
|
98 |
+
$[postMessage] = function( message, target_url, target ) {
|
99 |
+
if ( !target_url ) { return; }
|
100 |
+
|
101 |
+
// Serialize the message if not a string. Note that this is the only real
|
102 |
+
// jQuery dependency for this script. If removed, this script could be
|
103 |
+
// written as very basic JavaScript.
|
104 |
+
message = typeof message === 'string' ? message : $.param( message );
|
105 |
+
|
106 |
+
// Default to parent if unspecified.
|
107 |
+
target = target || parent;
|
108 |
+
|
109 |
+
if ( has_postMessage ) {
|
110 |
+
// The browser supports window.postMessage, so call it with a targetOrigin
|
111 |
+
// set appropriately, based on the target_url parameter.
|
112 |
+
target[postMessage]( message, target_url.replace( /([^:]+:\/\/[^\/]+).*/, '$1' ) );
|
113 |
+
|
114 |
+
} else if ( target_url ) {
|
115 |
+
// The browser does not support window.postMessage, so set the location
|
116 |
+
// of the target to target_url#message. A bit ugly, but it works! A cache
|
117 |
+
// bust parameter is added to ensure that repeat messages trigger the
|
118 |
+
// callback.
|
119 |
+
target.location = target_url.replace( /#.*$/, '' ) + '#' + (+new Date) + (cache_bust++) + '&' + message;
|
120 |
+
}
|
121 |
+
};
|
122 |
+
|
123 |
+
// Method: jQuery.receiveMessage
|
124 |
+
//
|
125 |
+
// Register a single callback for either a window.postMessage call, if
|
126 |
+
// supported, or if unsupported, for any change in the current window
|
127 |
+
// location.hash. If window.postMessage is supported and source_origin is
|
128 |
+
// specified, the source window will be checked against this for maximum
|
129 |
+
// security. If window.postMessage is unsupported, a polling loop will be
|
130 |
+
// started to watch for changes to the location.hash.
|
131 |
+
//
|
132 |
+
// Note that for simplicity's sake, only a single callback can be registered
|
133 |
+
// at one time. Passing no params will unbind this event (or stop the polling
|
134 |
+
// loop), and calling this method a second time with another callback will
|
135 |
+
// unbind the event (or stop the polling loop) first, before binding the new
|
136 |
+
// callback.
|
137 |
+
//
|
138 |
+
// Also note that if window.postMessage is available, the optional
|
139 |
+
// source_origin param will be used to test the event.origin property. From
|
140 |
+
// the MDC window.postMessage docs: This string is the concatenation of the
|
141 |
+
// protocol and "://", the host name if one exists, and ":" followed by a port
|
142 |
+
// number if a port is present and differs from the default port for the given
|
143 |
+
// protocol. Examples of typical origins are https://example.org (implying
|
144 |
+
// port 443), http://example.net (implying port 80), and http://example.com:8080.
|
145 |
+
//
|
146 |
+
// Usage:
|
147 |
+
//
|
148 |
+
// > jQuery.receiveMessage( callback [, source_origin ] [, delay ] );
|
149 |
+
//
|
150 |
+
// Arguments:
|
151 |
+
//
|
152 |
+
// callback - (Function) This callback will execute whenever a <jQuery.postMessage>
|
153 |
+
// message is received, provided the source_origin matches. If callback is
|
154 |
+
// omitted, any existing receiveMessage event bind or polling loop will be
|
155 |
+
// canceled.
|
156 |
+
// source_origin - (String) If window.postMessage is available and this value
|
157 |
+
// is not equal to the event.origin property, the callback will not be
|
158 |
+
// called.
|
159 |
+
// source_origin - (Function) If window.postMessage is available and this
|
160 |
+
// function returns false when passed the event.origin property, the
|
161 |
+
// callback will not be called.
|
162 |
+
// delay - (Number) An optional zero-or-greater delay in milliseconds at
|
163 |
+
// which the polling loop will execute (for browser that don't support
|
164 |
+
// window.postMessage). If omitted, defaults to 100.
|
165 |
+
//
|
166 |
+
// Returns:
|
167 |
+
//
|
168 |
+
// Nothing!
|
169 |
+
|
170 |
+
$.receiveMessage = p_receiveMessage = function( callback, source_origin, delay ) {
|
171 |
+
if ( has_postMessage ) {
|
172 |
+
// Since the browser supports window.postMessage, the callback will be
|
173 |
+
// bound to the actual event associated with window.postMessage.
|
174 |
+
|
175 |
+
if ( callback ) {
|
176 |
+
// Unbind an existing callback if it exists.
|
177 |
+
rm_callback && p_receiveMessage();
|
178 |
+
|
179 |
+
// Bind the callback. A reference to the callback is stored for ease of
|
180 |
+
// unbinding.
|
181 |
+
rm_callback = function(e) {
|
182 |
+
if ( ( typeof source_origin === 'string' && e.origin !== source_origin )
|
183 |
+
|| ( $.isFunction( source_origin ) && source_origin( e.origin ) === FALSE ) ) {
|
184 |
+
return FALSE;
|
185 |
+
}
|
186 |
+
callback( e );
|
187 |
+
};
|
188 |
+
}
|
189 |
+
|
190 |
+
if ( window[addEventListener] ) {
|
191 |
+
window[ callback ? addEventListener : 'removeEventListener' ]( 'message', rm_callback, FALSE );
|
192 |
+
} else {
|
193 |
+
window[ callback ? 'attachEvent' : 'detachEvent' ]( 'onmessage', rm_callback );
|
194 |
+
}
|
195 |
+
|
196 |
+
} else {
|
197 |
+
// Since the browser sucks, a polling loop will be started, and the
|
198 |
+
// callback will be called whenever the location.hash changes.
|
199 |
+
|
200 |
+
interval_id && clearInterval( interval_id );
|
201 |
+
interval_id = null;
|
202 |
+
|
203 |
+
if ( callback ) {
|
204 |
+
delay = typeof source_origin === 'number'
|
205 |
+
? source_origin
|
206 |
+
: typeof delay === 'number'
|
207 |
+
? delay
|
208 |
+
: 100;
|
209 |
+
|
210 |
+
interval_id = setInterval(function(){
|
211 |
+
var hash = document.location.hash,
|
212 |
+
re = /^#?\d+&/;
|
213 |
+
if ( hash !== last_hash && re.test( hash ) ) {
|
214 |
+
last_hash = hash;
|
215 |
+
callback({ data: hash.replace( re, '' ) });
|
216 |
+
}
|
217 |
+
}, delay );
|
218 |
+
}
|
219 |
+
}
|
220 |
+
};
|
221 |
+
|
222 |
+
})(jQuery);
|
js/reamaze/jquery.deparam.js
ADDED
@@ -0,0 +1,97 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*
|
2 |
+
jQuery deparam is an extraction of the deparam method from Ben Alman's jQuery BBQ
|
3 |
+
http://benalman.com/projects/jquery-bbq-plugin/
|
4 |
+
*/
|
5 |
+
(function ($) {
|
6 |
+
$.deparam = function (params, coerce) {
|
7 |
+
var obj = {},
|
8 |
+
coerce_types = { 'true': !0, 'false': !1, 'null': null };
|
9 |
+
|
10 |
+
// Iterate over all name=value pairs.
|
11 |
+
$.each(params.replace(/\+/g, ' ').split('&'), function (j,v) {
|
12 |
+
var param = v.split('='),
|
13 |
+
key = decodeURIComponent(param[0]),
|
14 |
+
val,
|
15 |
+
cur = obj,
|
16 |
+
i = 0,
|
17 |
+
|
18 |
+
// If key is more complex than 'foo', like 'a[]' or 'a[b][c]', split it
|
19 |
+
// into its component parts.
|
20 |
+
keys = key.split(']['),
|
21 |
+
keys_last = keys.length - 1;
|
22 |
+
|
23 |
+
// If the first keys part contains [ and the last ends with ], then []
|
24 |
+
// are correctly balanced.
|
25 |
+
if (/\[/.test(keys[0]) && /\]$/.test(keys[keys_last])) {
|
26 |
+
// Remove the trailing ] from the last keys part.
|
27 |
+
keys[keys_last] = keys[keys_last].replace(/\]$/, '');
|
28 |
+
|
29 |
+
// Split first keys part into two parts on the [ and add them back onto
|
30 |
+
// the beginning of the keys array.
|
31 |
+
keys = keys.shift().split('[').concat(keys);
|
32 |
+
|
33 |
+
keys_last = keys.length - 1;
|
34 |
+
} else {
|
35 |
+
// Basic 'foo' style key.
|
36 |
+
keys_last = 0;
|
37 |
+
}
|
38 |
+
|
39 |
+
// Are we dealing with a name=value pair, or just a name?
|
40 |
+
if (param.length === 2) {
|
41 |
+
val = decodeURIComponent(param[1]);
|
42 |
+
|
43 |
+
// Coerce values.
|
44 |
+
if (coerce) {
|
45 |
+
val = val && !isNaN(val) ? +val // number
|
46 |
+
: val === 'undefined' ? undefined // undefined
|
47 |
+
: coerce_types[val] !== undefined ? coerce_types[val] // true, false, null
|
48 |
+
: val; // string
|
49 |
+
}
|
50 |
+
|
51 |
+
if ( keys_last ) {
|
52 |
+
// Complex key, build deep object structure based on a few rules:
|
53 |
+
// * The 'cur' pointer starts at the object top-level.
|
54 |
+
// * [] = array push (n is set to array length), [n] = array if n is
|
55 |
+
// numeric, otherwise object.
|
56 |
+
// * If at the last keys part, set the value.
|
57 |
+
// * For each keys part, if the current level is undefined create an
|
58 |
+
// object or array based on the type of the next keys part.
|
59 |
+
// * Move the 'cur' pointer to the next level.
|
60 |
+
// * Rinse & repeat.
|
61 |
+
for (; i <= keys_last; i++) {
|
62 |
+
key = keys[i] === '' ? cur.length : keys[i];
|
63 |
+
cur = cur[key] = i < keys_last
|
64 |
+
? cur[key] || (keys[i+1] && isNaN(keys[i+1]) ? {} : [])
|
65 |
+
: val;
|
66 |
+
}
|
67 |
+
|
68 |
+
} else {
|
69 |
+
// Simple key, even simpler rules, since only scalars and shallow
|
70 |
+
// arrays are allowed.
|
71 |
+
|
72 |
+
if ($.isArray(obj[key])) {
|
73 |
+
// val is already an array, so push on the next value.
|
74 |
+
obj[key].push( val );
|
75 |
+
|
76 |
+
} else if (obj[key] !== undefined) {
|
77 |
+
// val isn't an array, but since a second value has been specified,
|
78 |
+
// convert val into an array.
|
79 |
+
obj[key] = [obj[key], val];
|
80 |
+
|
81 |
+
} else {
|
82 |
+
// val is a scalar.
|
83 |
+
obj[key] = val;
|
84 |
+
}
|
85 |
+
}
|
86 |
+
|
87 |
+
} else if (key) {
|
88 |
+
// No value was defined, so set something meaningful.
|
89 |
+
obj[key] = coerce
|
90 |
+
? undefined
|
91 |
+
: '';
|
92 |
+
}
|
93 |
+
});
|
94 |
+
|
95 |
+
return obj;
|
96 |
+
};
|
97 |
+
})(jQuery);
|
js/reamaze/jquery.migrate.js
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
1 |
+
/*! jQuery Migrate v1.1.1 | (c) 2005, 2013 jQuery Foundation, Inc. and other contributors | jquery.org/license */
|
2 |
+
jQuery.migrateMute===void 0&&(jQuery.migrateMute=!0),function(e,t,n){function r(n){o[n]||(o[n]=!0,e.migrateWarnings.push(n),t.console&&console.warn&&!e.migrateMute&&(console.warn("JQMIGRATE: "+n),e.migrateTrace&&console.trace&&console.trace()))}function a(t,a,o,i){if(Object.defineProperty)try{return Object.defineProperty(t,a,{configurable:!0,enumerable:!0,get:function(){return r(i),o},set:function(e){r(i),o=e}}),n}catch(s){}e._definePropertyBroken=!0,t[a]=o}var o={};e.migrateWarnings=[],!e.migrateMute&&t.console&&console.log&&console.log("JQMIGRATE: Logging is active"),e.migrateTrace===n&&(e.migrateTrace=!0),e.migrateReset=function(){o={},e.migrateWarnings.length=0},"BackCompat"===document.compatMode&&r("jQuery is not compatible with Quirks Mode");var i=e("<input/>",{size:1}).attr("size")&&e.attrFn,s=e.attr,u=e.attrHooks.value&&e.attrHooks.value.get||function(){return null},c=e.attrHooks.value&&e.attrHooks.value.set||function(){return n},l=/^(?:input|button)$/i,d=/^[238]$/,p=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,f=/^(?:checked|selected)$/i;a(e,"attrFn",i||{},"jQuery.attrFn is deprecated"),e.attr=function(t,a,o,u){var c=a.toLowerCase(),g=t&&t.nodeType;return u&&(4>s.length&&r("jQuery.fn.attr( props, pass ) is deprecated"),t&&!d.test(g)&&(i?a in i:e.isFunction(e.fn[a])))?e(t)[a](o):("type"===a&&o!==n&&l.test(t.nodeName)&&t.parentNode&&r("Can't change the 'type' of an input or button in IE 6/7/8"),!e.attrHooks[c]&&p.test(c)&&(e.attrHooks[c]={get:function(t,r){var a,o=e.prop(t,r);return o===!0||"boolean"!=typeof o&&(a=t.getAttributeNode(r))&&a.nodeValue!==!1?r.toLowerCase():n},set:function(t,n,r){var a;return n===!1?e.removeAttr(t,r):(a=e.propFix[r]||r,a in t&&(t[a]=!0),t.setAttribute(r,r.toLowerCase())),r}},f.test(c)&&r("jQuery.fn.attr('"+c+"') may use property instead of attribute")),s.call(e,t,a,o))},e.attrHooks.value={get:function(e,t){var n=(e.nodeName||"").toLowerCase();return"button"===n?u.apply(this,arguments):("input"!==n&&"option"!==n&&r("jQuery.fn.attr('value') no longer gets properties"),t in e?e.value:null)},set:function(e,t){var a=(e.nodeName||"").toLowerCase();return"button"===a?c.apply(this,arguments):("input"!==a&&"option"!==a&&r("jQuery.fn.attr('value', val) no longer sets properties"),e.value=t,n)}};var g,h,v=e.fn.init,m=e.parseJSON,y=/^(?:[^<]*(<[\w\W]+>)[^>]*|#([\w\-]*))$/;e.fn.init=function(t,n,a){var o;return t&&"string"==typeof t&&!e.isPlainObject(n)&&(o=y.exec(t))&&o[1]&&("<"!==t.charAt(0)&&r("$(html) HTML strings must start with '<' character"),n&&n.context&&(n=n.context),e.parseHTML)?v.call(this,e.parseHTML(e.trim(t),n,!0),n,a):v.apply(this,arguments)},e.fn.init.prototype=e.fn,e.parseJSON=function(e){return e||null===e?m.apply(this,arguments):(r("jQuery.parseJSON requires a valid JSON string"),null)},e.uaMatch=function(e){e=e.toLowerCase();var t=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||0>e.indexOf("compatible")&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:t[1]||"",version:t[2]||"0"}},e.browser||(g=e.uaMatch(navigator.userAgent),h={},g.browser&&(h[g.browser]=!0,h.version=g.version),h.chrome?h.webkit=!0:h.webkit&&(h.safari=!0),e.browser=h),a(e,"browser",e.browser,"jQuery.browser is deprecated"),e.sub=function(){function t(e,n){return new t.fn.init(e,n)}e.extend(!0,t,this),t.superclass=this,t.fn=t.prototype=this(),t.fn.constructor=t,t.sub=this.sub,t.fn.init=function(r,a){return a&&a instanceof e&&!(a instanceof t)&&(a=t(a)),e.fn.init.call(this,r,a,n)},t.fn.init.prototype=t.fn;var n=t(document);return r("jQuery.sub() is deprecated"),t},e.ajaxSetup({converters:{"text json":e.parseJSON}});var b=e.fn.data;e.fn.data=function(t){var a,o,i=this[0];return!i||"events"!==t||1!==arguments.length||(a=e.data(i,t),o=e._data(i,t),a!==n&&a!==o||o===n)?b.apply(this,arguments):(r("Use of jQuery.fn.data('events') is deprecated"),o)};var j=/\/(java|ecma)script/i,w=e.fn.andSelf||e.fn.addBack;e.fn.andSelf=function(){return r("jQuery.fn.andSelf() replaced by jQuery.fn.addBack()"),w.apply(this,arguments)},e.clean||(e.clean=function(t,a,o,i){a=a||document,a=!a.nodeType&&a[0]||a,a=a.ownerDocument||a,r("jQuery.clean() is deprecated");var s,u,c,l,d=[];if(e.merge(d,e.buildFragment(t,a).childNodes),o)for(c=function(e){return!e.type||j.test(e.type)?i?i.push(e.parentNode?e.parentNode.removeChild(e):e):o.appendChild(e):n},s=0;null!=(u=d[s]);s++)e.nodeName(u,"script")&&c(u)||(o.appendChild(u),u.getElementsByTagName!==n&&(l=e.grep(e.merge([],u.getElementsByTagName("script")),c),d.splice.apply(d,[s+1,0].concat(l)),s+=l.length));return d});var Q=e.event.add,x=e.event.remove,k=e.event.trigger,N=e.fn.toggle,C=e.fn.live,S=e.fn.die,T="ajaxStart|ajaxStop|ajaxSend|ajaxComplete|ajaxError|ajaxSuccess",M=RegExp("\\b(?:"+T+")\\b"),H=/(?:^|\s)hover(\.\S+|)\b/,A=function(t){return"string"!=typeof t||e.event.special.hover?t:(H.test(t)&&r("'hover' pseudo-event is deprecated, use 'mouseenter mouseleave'"),t&&t.replace(H,"mouseenter$1 mouseleave$1"))};e.event.props&&"attrChange"!==e.event.props[0]&&e.event.props.unshift("attrChange","attrName","relatedNode","srcElement"),e.event.dispatch&&a(e.event,"handle",e.event.dispatch,"jQuery.event.handle is undocumented and deprecated"),e.event.add=function(e,t,n,a,o){e!==document&&M.test(t)&&r("AJAX events should be attached to document: "+t),Q.call(this,e,A(t||""),n,a,o)},e.event.remove=function(e,t,n,r,a){x.call(this,e,A(t)||"",n,r,a)},e.fn.error=function(){var e=Array.prototype.slice.call(arguments,0);return r("jQuery.fn.error() is deprecated"),e.splice(0,0,"error"),arguments.length?this.bind.apply(this,e):(this.triggerHandler.apply(this,e),this)},e.fn.toggle=function(t,n){if(!e.isFunction(t)||!e.isFunction(n))return N.apply(this,arguments);r("jQuery.fn.toggle(handler, handler...) is deprecated");var a=arguments,o=t.guid||e.guid++,i=0,s=function(n){var r=(e._data(this,"lastToggle"+t.guid)||0)%i;return e._data(this,"lastToggle"+t.guid,r+1),n.preventDefault(),a[r].apply(this,arguments)||!1};for(s.guid=o;a.length>i;)a[i++].guid=o;return this.click(s)},e.fn.live=function(t,n,a){return r("jQuery.fn.live() is deprecated"),C?C.apply(this,arguments):(e(this.context).on(t,this.selector,n,a),this)},e.fn.die=function(t,n){return r("jQuery.fn.die() is deprecated"),S?S.apply(this,arguments):(e(this.context).off(t,this.selector||"**",n),this)},e.event.trigger=function(e,t,n,a){return n||M.test(e)||r("Global events are undocumented and deprecated"),k.call(this,e,t,n||document,a)},e.each(T.split("|"),function(t,n){e.event.special[n]={setup:function(){var t=this;return t!==document&&(e.event.add(document,n+"."+e.guid,function(){e.event.trigger(n,null,t,!0)}),e._data(this,n,e.guid++)),!1},teardown:function(){return this!==document&&e.event.remove(document,n+"."+e._data(this,n)),!1}}})}(jQuery,window);
|
3 |
+
//@ sourceMappingURL=jquery.min.map
|
js/reamaze/jquery.min.js
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*! jQuery v1.10.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license
|
2 |
+
//@ sourceMappingURL=jquery.min.map
|
3 |
+
*/
|
4 |
+
(function(e,t){var n,r,i=typeof t,o=e.location,a=e.document,s=a.documentElement,l=e.jQuery,u=e.$,c={},p=[],f="1.10.2",d=p.concat,h=p.push,g=p.slice,m=p.indexOf,y=c.toString,v=c.hasOwnProperty,b=f.trim,x=function(e,t){return new x.fn.init(e,t,r)},w=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,T=/\S+/g,C=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,N=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,k=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,E=/^[\],:{}\s]*$/,S=/(?:^|:|,)(?:\s*\[)+/g,A=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,j=/"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g,D=/^-ms-/,L=/-([\da-z])/gi,H=function(e,t){return t.toUpperCase()},q=function(e){(a.addEventListener||"load"===e.type||"complete"===a.readyState)&&(_(),x.ready())},_=function(){a.addEventListener?(a.removeEventListener("DOMContentLoaded",q,!1),e.removeEventListener("load",q,!1)):(a.detachEvent("onreadystatechange",q),e.detachEvent("onload",q))};x.fn=x.prototype={jquery:f,constructor:x,init:function(e,n,r){var i,o;if(!e)return this;if("string"==typeof e){if(i="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:N.exec(e),!i||!i[1]&&n)return!n||n.jquery?(n||r).find(e):this.constructor(n).find(e);if(i[1]){if(n=n instanceof x?n[0]:n,x.merge(this,x.parseHTML(i[1],n&&n.nodeType?n.ownerDocument||n:a,!0)),k.test(i[1])&&x.isPlainObject(n))for(i in n)x.isFunction(this[i])?this[i](n[i]):this.attr(i,n[i]);return this}if(o=a.getElementById(i[2]),o&&o.parentNode){if(o.id!==i[2])return r.find(e);this.length=1,this[0]=o}return this.context=a,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):x.isFunction(e)?r.ready(e):(e.selector!==t&&(this.selector=e.selector,this.context=e.context),x.makeArray(e,this))},selector:"",length:0,toArray:function(){return g.call(this)},get:function(e){return null==e?this.toArray():0>e?this[this.length+e]:this[e]},pushStack:function(e){var t=x.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return x.each(this,e,t)},ready:function(e){return x.ready.promise().done(e),this},slice:function(){return this.pushStack(g.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(0>e?t:0);return this.pushStack(n>=0&&t>n?[this[n]]:[])},map:function(e){return this.pushStack(x.map(this,function(t,n){return e.call(t,n,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:h,sort:[].sort,splice:[].splice},x.fn.init.prototype=x.fn,x.extend=x.fn.extend=function(){var e,n,r,i,o,a,s=arguments[0]||{},l=1,u=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[1]||{},l=2),"object"==typeof s||x.isFunction(s)||(s={}),u===l&&(s=this,--l);u>l;l++)if(null!=(o=arguments[l]))for(i in o)e=s[i],r=o[i],s!==r&&(c&&r&&(x.isPlainObject(r)||(n=x.isArray(r)))?(n?(n=!1,a=e&&x.isArray(e)?e:[]):a=e&&x.isPlainObject(e)?e:{},s[i]=x.extend(c,a,r)):r!==t&&(s[i]=r));return s},x.extend({expando:"jQuery"+(f+Math.random()).replace(/\D/g,""),noConflict:function(t){return e.$===x&&(e.$=u),t&&e.jQuery===x&&(e.jQuery=l),x},isReady:!1,readyWait:1,holdReady:function(e){e?x.readyWait++:x.ready(!0)},ready:function(e){if(e===!0?!--x.readyWait:!x.isReady){if(!a.body)return setTimeout(x.ready);x.isReady=!0,e!==!0&&--x.readyWait>0||(n.resolveWith(a,[x]),x.fn.trigger&&x(a).trigger("ready").off("ready"))}},isFunction:function(e){return"function"===x.type(e)},isArray:Array.isArray||function(e){return"array"===x.type(e)},isWindow:function(e){return null!=e&&e==e.window},isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?c[y.call(e)]||"object":typeof e},isPlainObject:function(e){var n;if(!e||"object"!==x.type(e)||e.nodeType||x.isWindow(e))return!1;try{if(e.constructor&&!v.call(e,"constructor")&&!v.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(r){return!1}if(x.support.ownLast)for(n in e)return v.call(e,n);for(n in e);return n===t||v.call(e,n)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},error:function(e){throw Error(e)},parseHTML:function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||a;var r=k.exec(e),i=!n&&[];return r?[t.createElement(r[1])]:(r=x.buildFragment([e],t,i),i&&x(i).remove(),x.merge([],r.childNodes))},parseJSON:function(n){return e.JSON&&e.JSON.parse?e.JSON.parse(n):null===n?n:"string"==typeof n&&(n=x.trim(n),n&&E.test(n.replace(A,"@").replace(j,"]").replace(S,"")))?Function("return "+n)():(x.error("Invalid JSON: "+n),t)},parseXML:function(n){var r,i;if(!n||"string"!=typeof n)return null;try{e.DOMParser?(i=new DOMParser,r=i.parseFromString(n,"text/xml")):(r=new ActiveXObject("Microsoft.XMLDOM"),r.async="false",r.loadXML(n))}catch(o){r=t}return r&&r.documentElement&&!r.getElementsByTagName("parsererror").length||x.error("Invalid XML: "+n),r},noop:function(){},globalEval:function(t){t&&x.trim(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(D,"ms-").replace(L,H)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,n){var r,i=0,o=e.length,a=M(e);if(n){if(a){for(;o>i;i++)if(r=t.apply(e[i],n),r===!1)break}else for(i in e)if(r=t.apply(e[i],n),r===!1)break}else if(a){for(;o>i;i++)if(r=t.call(e[i],i,e[i]),r===!1)break}else for(i in e)if(r=t.call(e[i],i,e[i]),r===!1)break;return e},trim:b&&!b.call("\ufeff\u00a0")?function(e){return null==e?"":b.call(e)}:function(e){return null==e?"":(e+"").replace(C,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(M(Object(e))?x.merge(n,"string"==typeof e?[e]:e):h.call(n,e)),n},inArray:function(e,t,n){var r;if(t){if(m)return m.call(t,e,n);for(r=t.length,n=n?0>n?Math.max(0,r+n):n:0;r>n;n++)if(n in t&&t[n]===e)return n}return-1},merge:function(e,n){var r=n.length,i=e.length,o=0;if("number"==typeof r)for(;r>o;o++)e[i++]=n[o];else while(n[o]!==t)e[i++]=n[o++];return e.length=i,e},grep:function(e,t,n){var r,i=[],o=0,a=e.length;for(n=!!n;a>o;o++)r=!!t(e[o],o),n!==r&&i.push(e[o]);return i},map:function(e,t,n){var r,i=0,o=e.length,a=M(e),s=[];if(a)for(;o>i;i++)r=t(e[i],i,n),null!=r&&(s[s.length]=r);else for(i in e)r=t(e[i],i,n),null!=r&&(s[s.length]=r);return d.apply([],s)},guid:1,proxy:function(e,n){var r,i,o;return"string"==typeof n&&(o=e[n],n=e,e=o),x.isFunction(e)?(r=g.call(arguments,2),i=function(){return e.apply(n||this,r.concat(g.call(arguments)))},i.guid=e.guid=e.guid||x.guid++,i):t},access:function(e,n,r,i,o,a,s){var l=0,u=e.length,c=null==r;if("object"===x.type(r)){o=!0;for(l in r)x.access(e,n,l,r[l],!0,a,s)}else if(i!==t&&(o=!0,x.isFunction(i)||(s=!0),c&&(s?(n.call(e,i),n=null):(c=n,n=function(e,t,n){return c.call(x(e),n)})),n))for(;u>l;l++)n(e[l],r,s?i:i.call(e[l],l,n(e[l],r)));return o?e:c?n.call(e):u?n(e[0],r):a},now:function(){return(new Date).getTime()},swap:function(e,t,n,r){var i,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];i=n.apply(e,r||[]);for(o in t)e.style[o]=a[o];return i}}),x.ready.promise=function(t){if(!n)if(n=x.Deferred(),"complete"===a.readyState)setTimeout(x.ready);else if(a.addEventListener)a.addEventListener("DOMContentLoaded",q,!1),e.addEventListener("load",q,!1);else{a.attachEvent("onreadystatechange",q),e.attachEvent("onload",q);var r=!1;try{r=null==e.frameElement&&a.documentElement}catch(i){}r&&r.doScroll&&function o(){if(!x.isReady){try{r.doScroll("left")}catch(e){return setTimeout(o,50)}_(),x.ready()}}()}return n.promise(t)},x.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){c["[object "+t+"]"]=t.toLowerCase()});function M(e){var t=e.length,n=x.type(e);return x.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||"function"!==n&&(0===t||"number"==typeof t&&t>0&&t-1 in e)}r=x(a),function(e,t){var n,r,i,o,a,s,l,u,c,p,f,d,h,g,m,y,v,b="sizzle"+-new Date,w=e.document,T=0,C=0,N=st(),k=st(),E=st(),S=!1,A=function(e,t){return e===t?(S=!0,0):0},j=typeof t,D=1<<31,L={}.hasOwnProperty,H=[],q=H.pop,_=H.push,M=H.push,O=H.slice,F=H.indexOf||function(e){var t=0,n=this.length;for(;n>t;t++)if(this[t]===e)return t;return-1},B="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",P="[\\x20\\t\\r\\n\\f]",R="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",W=R.replace("w","w#"),$="\\["+P+"*("+R+")"+P+"*(?:([*^$|!~]?=)"+P+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+W+")|)|)"+P+"*\\]",I=":("+R+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+$.replace(3,8)+")*)|.*)\\)|)",z=RegExp("^"+P+"+|((?:^|[^\\\\])(?:\\\\.)*)"+P+"+$","g"),X=RegExp("^"+P+"*,"+P+"*"),U=RegExp("^"+P+"*([>+~]|"+P+")"+P+"*"),V=RegExp(P+"*[+~]"),Y=RegExp("="+P+"*([^\\]'\"]*)"+P+"*\\]","g"),J=RegExp(I),G=RegExp("^"+W+"$"),Q={ID:RegExp("^#("+R+")"),CLASS:RegExp("^\\.("+R+")"),TAG:RegExp("^("+R.replace("w","w*")+")"),ATTR:RegExp("^"+$),PSEUDO:RegExp("^"+I),CHILD:RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+P+"*(even|odd|(([+-]|)(\\d*)n|)"+P+"*(?:([+-]|)"+P+"*(\\d+)|))"+P+"*\\)|)","i"),bool:RegExp("^(?:"+B+")$","i"),needsContext:RegExp("^"+P+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+P+"*((?:-\\d)?\\d*)"+P+"*\\)|)(?=[^-]|$)","i")},K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,et=/^(?:input|select|textarea|button)$/i,tt=/^h\d$/i,nt=/'|\\/g,rt=RegExp("\\\\([\\da-f]{1,6}"+P+"?|("+P+")|.)","ig"),it=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:0>r?String.fromCharCode(r+65536):String.fromCharCode(55296|r>>10,56320|1023&r)};try{M.apply(H=O.call(w.childNodes),w.childNodes),H[w.childNodes.length].nodeType}catch(ot){M={apply:H.length?function(e,t){_.apply(e,O.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function at(e,t,n,i){var o,a,s,l,u,c,d,m,y,x;if((t?t.ownerDocument||t:w)!==f&&p(t),t=t||f,n=n||[],!e||"string"!=typeof e)return n;if(1!==(l=t.nodeType)&&9!==l)return[];if(h&&!i){if(o=Z.exec(e))if(s=o[1]){if(9===l){if(a=t.getElementById(s),!a||!a.parentNode)return n;if(a.id===s)return n.push(a),n}else if(t.ownerDocument&&(a=t.ownerDocument.getElementById(s))&&v(t,a)&&a.id===s)return n.push(a),n}else{if(o[2])return M.apply(n,t.getElementsByTagName(e)),n;if((s=o[3])&&r.getElementsByClassName&&t.getElementsByClassName)return M.apply(n,t.getElementsByClassName(s)),n}if(r.qsa&&(!g||!g.test(e))){if(m=d=b,y=t,x=9===l&&e,1===l&&"object"!==t.nodeName.toLowerCase()){c=mt(e),(d=t.getAttribute("id"))?m=d.replace(nt,"\\$&"):t.setAttribute("id",m),m="[id='"+m+"'] ",u=c.length;while(u--)c[u]=m+yt(c[u]);y=V.test(e)&&t.parentNode||t,x=c.join(",")}if(x)try{return M.apply(n,y.querySelectorAll(x)),n}catch(T){}finally{d||t.removeAttribute("id")}}}return kt(e.replace(z,"$1"),t,n,i)}function st(){var e=[];function t(n,r){return e.push(n+=" ")>o.cacheLength&&delete t[e.shift()],t[n]=r}return t}function lt(e){return e[b]=!0,e}function ut(e){var t=f.createElement("div");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ct(e,t){var n=e.split("|"),r=e.length;while(r--)o.attrHandle[n[r]]=t}function pt(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||D)-(~e.sourceIndex||D);if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function ft(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function dt(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function ht(e){return lt(function(t){return t=+t,lt(function(n,r){var i,o=e([],n.length,t),a=o.length;while(a--)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}s=at.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?"HTML"!==t.nodeName:!1},r=at.support={},p=at.setDocument=function(e){var n=e?e.ownerDocument||e:w,i=n.defaultView;return n!==f&&9===n.nodeType&&n.documentElement?(f=n,d=n.documentElement,h=!s(n),i&&i.attachEvent&&i!==i.top&&i.attachEvent("onbeforeunload",function(){p()}),r.attributes=ut(function(e){return e.className="i",!e.getAttribute("className")}),r.getElementsByTagName=ut(function(e){return e.appendChild(n.createComment("")),!e.getElementsByTagName("*").length}),r.getElementsByClassName=ut(function(e){return e.innerHTML="<div class='a'></div><div class='a i'></div>",e.firstChild.className="i",2===e.getElementsByClassName("i").length}),r.getById=ut(function(e){return d.appendChild(e).id=b,!n.getElementsByName||!n.getElementsByName(b).length}),r.getById?(o.find.ID=function(e,t){if(typeof t.getElementById!==j&&h){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},o.filter.ID=function(e){var t=e.replace(rt,it);return function(e){return e.getAttribute("id")===t}}):(delete o.find.ID,o.filter.ID=function(e){var t=e.replace(rt,it);return function(e){var n=typeof e.getAttributeNode!==j&&e.getAttributeNode("id");return n&&n.value===t}}),o.find.TAG=r.getElementsByTagName?function(e,n){return typeof n.getElementsByTagName!==j?n.getElementsByTagName(e):t}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},o.find.CLASS=r.getElementsByClassName&&function(e,n){return typeof n.getElementsByClassName!==j&&h?n.getElementsByClassName(e):t},m=[],g=[],(r.qsa=K.test(n.querySelectorAll))&&(ut(function(e){e.innerHTML="<select><option selected=''></option></select>",e.querySelectorAll("[selected]").length||g.push("\\["+P+"*(?:value|"+B+")"),e.querySelectorAll(":checked").length||g.push(":checked")}),ut(function(e){var t=n.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("t",""),e.querySelectorAll("[t^='']").length&&g.push("[*^$]="+P+"*(?:''|\"\")"),e.querySelectorAll(":enabled").length||g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")})),(r.matchesSelector=K.test(y=d.webkitMatchesSelector||d.mozMatchesSelector||d.oMatchesSelector||d.msMatchesSelector))&&ut(function(e){r.disconnectedMatch=y.call(e,"div"),y.call(e,"[s!='']:x"),m.push("!=",I)}),g=g.length&&RegExp(g.join("|")),m=m.length&&RegExp(m.join("|")),v=K.test(d.contains)||d.compareDocumentPosition?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},A=d.compareDocumentPosition?function(e,t){if(e===t)return S=!0,0;var i=t.compareDocumentPosition&&e.compareDocumentPosition&&e.compareDocumentPosition(t);return i?1&i||!r.sortDetached&&t.compareDocumentPosition(e)===i?e===n||v(w,e)?-1:t===n||v(w,t)?1:c?F.call(c,e)-F.call(c,t):0:4&i?-1:1:e.compareDocumentPosition?-1:1}:function(e,t){var r,i=0,o=e.parentNode,a=t.parentNode,s=[e],l=[t];if(e===t)return S=!0,0;if(!o||!a)return e===n?-1:t===n?1:o?-1:a?1:c?F.call(c,e)-F.call(c,t):0;if(o===a)return pt(e,t);r=e;while(r=r.parentNode)s.unshift(r);r=t;while(r=r.parentNode)l.unshift(r);while(s[i]===l[i])i++;return i?pt(s[i],l[i]):s[i]===w?-1:l[i]===w?1:0},n):f},at.matches=function(e,t){return at(e,null,null,t)},at.matchesSelector=function(e,t){if((e.ownerDocument||e)!==f&&p(e),t=t.replace(Y,"='$1']"),!(!r.matchesSelector||!h||m&&m.test(t)||g&&g.test(t)))try{var n=y.call(e,t);if(n||r.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(i){}return at(t,f,null,[e]).length>0},at.contains=function(e,t){return(e.ownerDocument||e)!==f&&p(e),v(e,t)},at.attr=function(e,n){(e.ownerDocument||e)!==f&&p(e);var i=o.attrHandle[n.toLowerCase()],a=i&&L.call(o.attrHandle,n.toLowerCase())?i(e,n,!h):t;return a===t?r.attributes||!h?e.getAttribute(n):(a=e.getAttributeNode(n))&&a.specified?a.value:null:a},at.error=function(e){throw Error("Syntax error, unrecognized expression: "+e)},at.uniqueSort=function(e){var t,n=[],i=0,o=0;if(S=!r.detectDuplicates,c=!r.sortStable&&e.slice(0),e.sort(A),S){while(t=e[o++])t===e[o]&&(i=n.push(o));while(i--)e.splice(n[i],1)}return e},a=at.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=a(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r];r++)n+=a(t);return n},o=at.selectors={cacheLength:50,createPseudo:lt,match:Q,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(rt,it),e[3]=(e[4]||e[5]||"").replace(rt,it),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||at.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&at.error(e[0]),e},PSEUDO:function(e){var n,r=!e[5]&&e[2];return Q.CHILD.test(e[0])?null:(e[3]&&e[4]!==t?e[2]=e[4]:r&&J.test(r)&&(n=mt(r,!0))&&(n=r.indexOf(")",r.length-n)-r.length)&&(e[0]=e[0].slice(0,n),e[2]=r.slice(0,n)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(rt,it).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=N[e+" "];return t||(t=RegExp("(^|"+P+")"+e+"("+P+"|$)"))&&N(e,function(e){return t.test("string"==typeof e.className&&e.className||typeof e.getAttribute!==j&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var i=at.attr(r,e);return null==i?"!="===t:t?(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i+" ").indexOf(n)>-1:"|="===t?i===n||i.slice(0,n.length+1)===n+"-":!1):!0}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,l){var u,c,p,f,d,h,g=o!==a?"nextSibling":"previousSibling",m=t.parentNode,y=s&&t.nodeName.toLowerCase(),v=!l&&!s;if(m){if(o){while(g){p=t;while(p=p[g])if(s?p.nodeName.toLowerCase()===y:1===p.nodeType)return!1;h=g="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?m.firstChild:m.lastChild],a&&v){c=m[b]||(m[b]={}),u=c[e]||[],d=u[0]===T&&u[1],f=u[0]===T&&u[2],p=d&&m.childNodes[d];while(p=++d&&p&&p[g]||(f=d=0)||h.pop())if(1===p.nodeType&&++f&&p===t){c[e]=[T,d,f];break}}else if(v&&(u=(t[b]||(t[b]={}))[e])&&u[0]===T)f=u[1];else while(p=++d&&p&&p[g]||(f=d=0)||h.pop())if((s?p.nodeName.toLowerCase()===y:1===p.nodeType)&&++f&&(v&&((p[b]||(p[b]={}))[e]=[T,f]),p===t))break;return f-=i,f===r||0===f%r&&f/r>=0}}},PSEUDO:function(e,t){var n,r=o.pseudos[e]||o.setFilters[e.toLowerCase()]||at.error("unsupported pseudo: "+e);return r[b]?r(t):r.length>1?(n=[e,e,"",t],o.setFilters.hasOwnProperty(e.toLowerCase())?lt(function(e,n){var i,o=r(e,t),a=o.length;while(a--)i=F.call(e,o[a]),e[i]=!(n[i]=o[a])}):function(e){return r(e,0,n)}):r}},pseudos:{not:lt(function(e){var t=[],n=[],r=l(e.replace(z,"$1"));return r[b]?lt(function(e,t,n,i){var o,a=r(e,null,i,[]),s=e.length;while(s--)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,i,o){return t[0]=e,r(t,null,o,n),!n.pop()}}),has:lt(function(e){return function(t){return at(e,t).length>0}}),contains:lt(function(e){return function(t){return(t.textContent||t.innerText||a(t)).indexOf(e)>-1}}),lang:lt(function(e){return G.test(e||"")||at.error("unsupported lang: "+e),e=e.replace(rt,it).toLowerCase(),function(t){var n;do if(n=h?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===d},focus:function(e){return e===f.activeElement&&(!f.hasFocus||f.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeName>"@"||3===e.nodeType||4===e.nodeType)return!1;return!0},parent:function(e){return!o.pseudos.empty(e)},header:function(e){return tt.test(e.nodeName)},input:function(e){return et.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||t.toLowerCase()===e.type)},first:ht(function(){return[0]}),last:ht(function(e,t){return[t-1]}),eq:ht(function(e,t,n){return[0>n?n+t:n]}),even:ht(function(e,t){var n=0;for(;t>n;n+=2)e.push(n);return e}),odd:ht(function(e,t){var n=1;for(;t>n;n+=2)e.push(n);return e}),lt:ht(function(e,t,n){var r=0>n?n+t:n;for(;--r>=0;)e.push(r);return e}),gt:ht(function(e,t,n){var r=0>n?n+t:n;for(;t>++r;)e.push(r);return e})}},o.pseudos.nth=o.pseudos.eq;for(n in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})o.pseudos[n]=ft(n);for(n in{submit:!0,reset:!0})o.pseudos[n]=dt(n);function gt(){}gt.prototype=o.filters=o.pseudos,o.setFilters=new gt;function mt(e,t){var n,r,i,a,s,l,u,c=k[e+" "];if(c)return t?0:c.slice(0);s=e,l=[],u=o.preFilter;while(s){(!n||(r=X.exec(s)))&&(r&&(s=s.slice(r[0].length)||s),l.push(i=[])),n=!1,(r=U.exec(s))&&(n=r.shift(),i.push({value:n,type:r[0].replace(z," ")}),s=s.slice(n.length));for(a in o.filter)!(r=Q[a].exec(s))||u[a]&&!(r=u[a](r))||(n=r.shift(),i.push({value:n,type:a,matches:r}),s=s.slice(n.length));if(!n)break}return t?s.length:s?at.error(e):k(e,l).slice(0)}function yt(e){var t=0,n=e.length,r="";for(;n>t;t++)r+=e[t].value;return r}function vt(e,t,n){var r=t.dir,o=n&&"parentNode"===r,a=C++;return t.first?function(t,n,i){while(t=t[r])if(1===t.nodeType||o)return e(t,n,i)}:function(t,n,s){var l,u,c,p=T+" "+a;if(s){while(t=t[r])if((1===t.nodeType||o)&&e(t,n,s))return!0}else while(t=t[r])if(1===t.nodeType||o)if(c=t[b]||(t[b]={}),(u=c[r])&&u[0]===p){if((l=u[1])===!0||l===i)return l===!0}else if(u=c[r]=[p],u[1]=e(t,n,s)||i,u[1]===!0)return!0}}function bt(e){return e.length>1?function(t,n,r){var i=e.length;while(i--)if(!e[i](t,n,r))return!1;return!0}:e[0]}function xt(e,t,n,r,i){var o,a=[],s=0,l=e.length,u=null!=t;for(;l>s;s++)(o=e[s])&&(!n||n(o,r,i))&&(a.push(o),u&&t.push(s));return a}function wt(e,t,n,r,i,o){return r&&!r[b]&&(r=wt(r)),i&&!i[b]&&(i=wt(i,o)),lt(function(o,a,s,l){var u,c,p,f=[],d=[],h=a.length,g=o||Nt(t||"*",s.nodeType?[s]:s,[]),m=!e||!o&&t?g:xt(g,f,e,s,l),y=n?i||(o?e:h||r)?[]:a:m;if(n&&n(m,y,s,l),r){u=xt(y,d),r(u,[],s,l),c=u.length;while(c--)(p=u[c])&&(y[d[c]]=!(m[d[c]]=p))}if(o){if(i||e){if(i){u=[],c=y.length;while(c--)(p=y[c])&&u.push(m[c]=p);i(null,y=[],u,l)}c=y.length;while(c--)(p=y[c])&&(u=i?F.call(o,p):f[c])>-1&&(o[u]=!(a[u]=p))}}else y=xt(y===a?y.splice(h,y.length):y),i?i(null,a,y,l):M.apply(a,y)})}function Tt(e){var t,n,r,i=e.length,a=o.relative[e[0].type],s=a||o.relative[" "],l=a?1:0,c=vt(function(e){return e===t},s,!0),p=vt(function(e){return F.call(t,e)>-1},s,!0),f=[function(e,n,r){return!a&&(r||n!==u)||((t=n).nodeType?c(e,n,r):p(e,n,r))}];for(;i>l;l++)if(n=o.relative[e[l].type])f=[vt(bt(f),n)];else{if(n=o.filter[e[l].type].apply(null,e[l].matches),n[b]){for(r=++l;i>r;r++)if(o.relative[e[r].type])break;return wt(l>1&&bt(f),l>1&&yt(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(z,"$1"),n,r>l&&Tt(e.slice(l,r)),i>r&&Tt(e=e.slice(r)),i>r&&yt(e))}f.push(n)}return bt(f)}function Ct(e,t){var n=0,r=t.length>0,a=e.length>0,s=function(s,l,c,p,d){var h,g,m,y=[],v=0,b="0",x=s&&[],w=null!=d,C=u,N=s||a&&o.find.TAG("*",d&&l.parentNode||l),k=T+=null==C?1:Math.random()||.1;for(w&&(u=l!==f&&l,i=n);null!=(h=N[b]);b++){if(a&&h){g=0;while(m=e[g++])if(m(h,l,c)){p.push(h);break}w&&(T=k,i=++n)}r&&((h=!m&&h)&&v--,s&&x.push(h))}if(v+=b,r&&b!==v){g=0;while(m=t[g++])m(x,y,l,c);if(s){if(v>0)while(b--)x[b]||y[b]||(y[b]=q.call(p));y=xt(y)}M.apply(p,y),w&&!s&&y.length>0&&v+t.length>1&&at.uniqueSort(p)}return w&&(T=k,u=C),x};return r?lt(s):s}l=at.compile=function(e,t){var n,r=[],i=[],o=E[e+" "];if(!o){t||(t=mt(e)),n=t.length;while(n--)o=Tt(t[n]),o[b]?r.push(o):i.push(o);o=E(e,Ct(i,r))}return o};function Nt(e,t,n){var r=0,i=t.length;for(;i>r;r++)at(e,t[r],n);return n}function kt(e,t,n,i){var a,s,u,c,p,f=mt(e);if(!i&&1===f.length){if(s=f[0]=f[0].slice(0),s.length>2&&"ID"===(u=s[0]).type&&r.getById&&9===t.nodeType&&h&&o.relative[s[1].type]){if(t=(o.find.ID(u.matches[0].replace(rt,it),t)||[])[0],!t)return n;e=e.slice(s.shift().value.length)}a=Q.needsContext.test(e)?0:s.length;while(a--){if(u=s[a],o.relative[c=u.type])break;if((p=o.find[c])&&(i=p(u.matches[0].replace(rt,it),V.test(s[0].type)&&t.parentNode||t))){if(s.splice(a,1),e=i.length&&yt(s),!e)return M.apply(n,i),n;break}}}return l(e,f)(i,t,!h,n,V.test(e)),n}r.sortStable=b.split("").sort(A).join("")===b,r.detectDuplicates=S,p(),r.sortDetached=ut(function(e){return 1&e.compareDocumentPosition(f.createElement("div"))}),ut(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||ct("type|href|height|width",function(e,n,r){return r?t:e.getAttribute(n,"type"===n.toLowerCase()?1:2)}),r.attributes&&ut(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||ct("value",function(e,n,r){return r||"input"!==e.nodeName.toLowerCase()?t:e.defaultValue}),ut(function(e){return null==e.getAttribute("disabled")})||ct(B,function(e,n,r){var i;return r?t:(i=e.getAttributeNode(n))&&i.specified?i.value:e[n]===!0?n.toLowerCase():null}),x.find=at,x.expr=at.selectors,x.expr[":"]=x.expr.pseudos,x.unique=at.uniqueSort,x.text=at.getText,x.isXMLDoc=at.isXML,x.contains=at.contains}(e);var O={};function F(e){var t=O[e]={};return x.each(e.match(T)||[],function(e,n){t[n]=!0}),t}x.Callbacks=function(e){e="string"==typeof e?O[e]||F(e):x.extend({},e);var n,r,i,o,a,s,l=[],u=!e.once&&[],c=function(t){for(r=e.memory&&t,i=!0,a=s||0,s=0,o=l.length,n=!0;l&&o>a;a++)if(l[a].apply(t[0],t[1])===!1&&e.stopOnFalse){r=!1;break}n=!1,l&&(u?u.length&&c(u.shift()):r?l=[]:p.disable())},p={add:function(){if(l){var t=l.length;(function i(t){x.each(t,function(t,n){var r=x.type(n);"function"===r?e.unique&&p.has(n)||l.push(n):n&&n.length&&"string"!==r&&i(n)})})(arguments),n?o=l.length:r&&(s=t,c(r))}return this},remove:function(){return l&&x.each(arguments,function(e,t){var r;while((r=x.inArray(t,l,r))>-1)l.splice(r,1),n&&(o>=r&&o--,a>=r&&a--)}),this},has:function(e){return e?x.inArray(e,l)>-1:!(!l||!l.length)},empty:function(){return l=[],o=0,this},disable:function(){return l=u=r=t,this},disabled:function(){return!l},lock:function(){return u=t,r||p.disable(),this},locked:function(){return!u},fireWith:function(e,t){return!l||i&&!u||(t=t||[],t=[e,t.slice?t.slice():t],n?u.push(t):c(t)),this},fire:function(){return p.fireWith(this,arguments),this},fired:function(){return!!i}};return p},x.extend({Deferred:function(e){var t=[["resolve","done",x.Callbacks("once memory"),"resolved"],["reject","fail",x.Callbacks("once memory"),"rejected"],["notify","progress",x.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return x.Deferred(function(n){x.each(t,function(t,o){var a=o[0],s=x.isFunction(e[t])&&e[t];i[o[1]](function(){var e=s&&s.apply(this,arguments);e&&x.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[a+"With"](this===r?n.promise():this,s?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?x.extend(e,r):r}},i={};return r.pipe=r.then,x.each(t,function(e,o){var a=o[2],s=o[3];r[o[1]]=a.add,s&&a.add(function(){n=s},t[1^e][2].disable,t[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](this===i?r:this,arguments),this},i[o[0]+"With"]=a.fireWith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t=0,n=g.call(arguments),r=n.length,i=1!==r||e&&x.isFunction(e.promise)?r:0,o=1===i?e:x.Deferred(),a=function(e,t,n){return function(r){t[e]=this,n[e]=arguments.length>1?g.call(arguments):r,n===s?o.notifyWith(t,n):--i||o.resolveWith(t,n)}},s,l,u;if(r>1)for(s=Array(r),l=Array(r),u=Array(r);r>t;t++)n[t]&&x.isFunction(n[t].promise)?n[t].promise().done(a(t,u,n)).fail(o.reject).progress(a(t,l,s)):--i;return i||o.resolveWith(u,n),o.promise()}}),x.support=function(t){var n,r,o,s,l,u,c,p,f,d=a.createElement("div");if(d.setAttribute("className","t"),d.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",n=d.getElementsByTagName("*")||[],r=d.getElementsByTagName("a")[0],!r||!r.style||!n.length)return t;s=a.createElement("select"),u=s.appendChild(a.createElement("option")),o=d.getElementsByTagName("input")[0],r.style.cssText="top:1px;float:left;opacity:.5",t.getSetAttribute="t"!==d.className,t.leadingWhitespace=3===d.firstChild.nodeType,t.tbody=!d.getElementsByTagName("tbody").length,t.htmlSerialize=!!d.getElementsByTagName("link").length,t.style=/top/.test(r.getAttribute("style")),t.hrefNormalized="/a"===r.getAttribute("href"),t.opacity=/^0.5/.test(r.style.opacity),t.cssFloat=!!r.style.cssFloat,t.checkOn=!!o.value,t.optSelected=u.selected,t.enctype=!!a.createElement("form").enctype,t.html5Clone="<:nav></:nav>"!==a.createElement("nav").cloneNode(!0).outerHTML,t.inlineBlockNeedsLayout=!1,t.shrinkWrapBlocks=!1,t.pixelPosition=!1,t.deleteExpando=!0,t.noCloneEvent=!0,t.reliableMarginRight=!0,t.boxSizingReliable=!0,o.checked=!0,t.noCloneChecked=o.cloneNode(!0).checked,s.disabled=!0,t.optDisabled=!u.disabled;try{delete d.test}catch(h){t.deleteExpando=!1}o=a.createElement("input"),o.setAttribute("value",""),t.input=""===o.getAttribute("value"),o.value="t",o.setAttribute("type","radio"),t.radioValue="t"===o.value,o.setAttribute("checked","t"),o.setAttribute("name","t"),l=a.createDocumentFragment(),l.appendChild(o),t.appendChecked=o.checked,t.checkClone=l.cloneNode(!0).cloneNode(!0).lastChild.checked,d.attachEvent&&(d.attachEvent("onclick",function(){t.noCloneEvent=!1}),d.cloneNode(!0).click());for(f in{submit:!0,change:!0,focusin:!0})d.setAttribute(c="on"+f,"t"),t[f+"Bubbles"]=c in e||d.attributes[c].expando===!1;d.style.backgroundClip="content-box",d.cloneNode(!0).style.backgroundClip="",t.clearCloneStyle="content-box"===d.style.backgroundClip;for(f in x(t))break;return t.ownLast="0"!==f,x(function(){var n,r,o,s="padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;",l=a.getElementsByTagName("body")[0];l&&(n=a.createElement("div"),n.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",l.appendChild(n).appendChild(d),d.innerHTML="<table><tr><td></td><td>t</td></tr></table>",o=d.getElementsByTagName("td"),o[0].style.cssText="padding:0;margin:0;border:0;display:none",p=0===o[0].offsetHeight,o[0].style.display="",o[1].style.display="none",t.reliableHiddenOffsets=p&&0===o[0].offsetHeight,d.innerHTML="",d.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;",x.swap(l,null!=l.style.zoom?{zoom:1}:{},function(){t.boxSizing=4===d.offsetWidth}),e.getComputedStyle&&(t.pixelPosition="1%"!==(e.getComputedStyle(d,null)||{}).top,t.boxSizingReliable="4px"===(e.getComputedStyle(d,null)||{width:"4px"}).width,r=d.appendChild(a.createElement("div")),r.style.cssText=d.style.cssText=s,r.style.marginRight=r.style.width="0",d.style.width="1px",t.reliableMarginRight=!parseFloat((e.getComputedStyle(r,null)||{}).marginRight)),typeof d.style.zoom!==i&&(d.innerHTML="",d.style.cssText=s+"width:1px;padding:1px;display:inline;zoom:1",t.inlineBlockNeedsLayout=3===d.offsetWidth,d.style.display="block",d.innerHTML="<div></div>",d.firstChild.style.width="5px",t.shrinkWrapBlocks=3!==d.offsetWidth,t.inlineBlockNeedsLayout&&(l.style.zoom=1)),l.removeChild(n),n=d=o=r=null)}),n=s=l=u=r=o=null,t
|
5 |
+
}({});var B=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,P=/([A-Z])/g;function R(e,n,r,i){if(x.acceptData(e)){var o,a,s=x.expando,l=e.nodeType,u=l?x.cache:e,c=l?e[s]:e[s]&&s;if(c&&u[c]&&(i||u[c].data)||r!==t||"string"!=typeof n)return c||(c=l?e[s]=p.pop()||x.guid++:s),u[c]||(u[c]=l?{}:{toJSON:x.noop}),("object"==typeof n||"function"==typeof n)&&(i?u[c]=x.extend(u[c],n):u[c].data=x.extend(u[c].data,n)),a=u[c],i||(a.data||(a.data={}),a=a.data),r!==t&&(a[x.camelCase(n)]=r),"string"==typeof n?(o=a[n],null==o&&(o=a[x.camelCase(n)])):o=a,o}}function W(e,t,n){if(x.acceptData(e)){var r,i,o=e.nodeType,a=o?x.cache:e,s=o?e[x.expando]:x.expando;if(a[s]){if(t&&(r=n?a[s]:a[s].data)){x.isArray(t)?t=t.concat(x.map(t,x.camelCase)):t in r?t=[t]:(t=x.camelCase(t),t=t in r?[t]:t.split(" ")),i=t.length;while(i--)delete r[t[i]];if(n?!I(r):!x.isEmptyObject(r))return}(n||(delete a[s].data,I(a[s])))&&(o?x.cleanData([e],!0):x.support.deleteExpando||a!=a.window?delete a[s]:a[s]=null)}}}x.extend({cache:{},noData:{applet:!0,embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(e){return e=e.nodeType?x.cache[e[x.expando]]:e[x.expando],!!e&&!I(e)},data:function(e,t,n){return R(e,t,n)},removeData:function(e,t){return W(e,t)},_data:function(e,t,n){return R(e,t,n,!0)},_removeData:function(e,t){return W(e,t,!0)},acceptData:function(e){if(e.nodeType&&1!==e.nodeType&&9!==e.nodeType)return!1;var t=e.nodeName&&x.noData[e.nodeName.toLowerCase()];return!t||t!==!0&&e.getAttribute("classid")===t}}),x.fn.extend({data:function(e,n){var r,i,o=null,a=0,s=this[0];if(e===t){if(this.length&&(o=x.data(s),1===s.nodeType&&!x._data(s,"parsedAttrs"))){for(r=s.attributes;r.length>a;a++)i=r[a].name,0===i.indexOf("data-")&&(i=x.camelCase(i.slice(5)),$(s,i,o[i]));x._data(s,"parsedAttrs",!0)}return o}return"object"==typeof e?this.each(function(){x.data(this,e)}):arguments.length>1?this.each(function(){x.data(this,e,n)}):s?$(s,e,x.data(s,e)):null},removeData:function(e){return this.each(function(){x.removeData(this,e)})}});function $(e,n,r){if(r===t&&1===e.nodeType){var i="data-"+n.replace(P,"-$1").toLowerCase();if(r=e.getAttribute(i),"string"==typeof r){try{r="true"===r?!0:"false"===r?!1:"null"===r?null:+r+""===r?+r:B.test(r)?x.parseJSON(r):r}catch(o){}x.data(e,n,r)}else r=t}return r}function I(e){var t;for(t in e)if(("data"!==t||!x.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}x.extend({queue:function(e,n,r){var i;return e?(n=(n||"fx")+"queue",i=x._data(e,n),r&&(!i||x.isArray(r)?i=x._data(e,n,x.makeArray(r)):i.push(r)),i||[]):t},dequeue:function(e,t){t=t||"fx";var n=x.queue(e,t),r=n.length,i=n.shift(),o=x._queueHooks(e,t),a=function(){x.dequeue(e,t)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,a,o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return x._data(e,n)||x._data(e,n,{empty:x.Callbacks("once memory").add(function(){x._removeData(e,t+"queue"),x._removeData(e,n)})})}}),x.fn.extend({queue:function(e,n){var r=2;return"string"!=typeof e&&(n=e,e="fx",r--),r>arguments.length?x.queue(this[0],e):n===t?this:this.each(function(){var t=x.queue(this,e,n);x._queueHooks(this,e),"fx"===e&&"inprogress"!==t[0]&&x.dequeue(this,e)})},dequeue:function(e){return this.each(function(){x.dequeue(this,e)})},delay:function(e,t){return e=x.fx?x.fx.speeds[e]||e:e,t=t||"fx",this.queue(t,function(t,n){var r=setTimeout(t,e);n.stop=function(){clearTimeout(r)}})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,n){var r,i=1,o=x.Deferred(),a=this,s=this.length,l=function(){--i||o.resolveWith(a,[a])};"string"!=typeof e&&(n=e,e=t),e=e||"fx";while(s--)r=x._data(a[s],e+"queueHooks"),r&&r.empty&&(i++,r.empty.add(l));return l(),o.promise(n)}});var z,X,U=/[\t\r\n\f]/g,V=/\r/g,Y=/^(?:input|select|textarea|button|object)$/i,J=/^(?:a|area)$/i,G=/^(?:checked|selected)$/i,Q=x.support.getSetAttribute,K=x.support.input;x.fn.extend({attr:function(e,t){return x.access(this,x.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){x.removeAttr(this,e)})},prop:function(e,t){return x.access(this,x.prop,e,t,arguments.length>1)},removeProp:function(e){return e=x.propFix[e]||e,this.each(function(){try{this[e]=t,delete this[e]}catch(n){}})},addClass:function(e){var t,n,r,i,o,a=0,s=this.length,l="string"==typeof e&&e;if(x.isFunction(e))return this.each(function(t){x(this).addClass(e.call(this,t,this.className))});if(l)for(t=(e||"").match(T)||[];s>a;a++)if(n=this[a],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(U," "):" ")){o=0;while(i=t[o++])0>r.indexOf(" "+i+" ")&&(r+=i+" ");n.className=x.trim(r)}return this},removeClass:function(e){var t,n,r,i,o,a=0,s=this.length,l=0===arguments.length||"string"==typeof e&&e;if(x.isFunction(e))return this.each(function(t){x(this).removeClass(e.call(this,t,this.className))});if(l)for(t=(e||"").match(T)||[];s>a;a++)if(n=this[a],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(U," "):"")){o=0;while(i=t[o++])while(r.indexOf(" "+i+" ")>=0)r=r.replace(" "+i+" "," ");n.className=e?x.trim(r):""}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):x.isFunction(e)?this.each(function(n){x(this).toggleClass(e.call(this,n,this.className,t),t)}):this.each(function(){if("string"===n){var t,r=0,o=x(this),a=e.match(T)||[];while(t=a[r++])o.hasClass(t)?o.removeClass(t):o.addClass(t)}else(n===i||"boolean"===n)&&(this.className&&x._data(this,"__className__",this.className),this.className=this.className||e===!1?"":x._data(this,"__className__")||"")})},hasClass:function(e){var t=" "+e+" ",n=0,r=this.length;for(;r>n;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(U," ").indexOf(t)>=0)return!0;return!1},val:function(e){var n,r,i,o=this[0];{if(arguments.length)return i=x.isFunction(e),this.each(function(n){var o;1===this.nodeType&&(o=i?e.call(this,n,x(this).val()):e,null==o?o="":"number"==typeof o?o+="":x.isArray(o)&&(o=x.map(o,function(e){return null==e?"":e+""})),r=x.valHooks[this.type]||x.valHooks[this.nodeName.toLowerCase()],r&&"set"in r&&r.set(this,o,"value")!==t||(this.value=o))});if(o)return r=x.valHooks[o.type]||x.valHooks[o.nodeName.toLowerCase()],r&&"get"in r&&(n=r.get(o,"value"))!==t?n:(n=o.value,"string"==typeof n?n.replace(V,""):null==n?"":n)}}}),x.extend({valHooks:{option:{get:function(e){var t=x.find.attr(e,"value");return null!=t?t:e.text}},select:{get:function(e){var t,n,r=e.options,i=e.selectedIndex,o="select-one"===e.type||0>i,a=o?null:[],s=o?i+1:r.length,l=0>i?s:o?i:0;for(;s>l;l++)if(n=r[l],!(!n.selected&&l!==i||(x.support.optDisabled?n.disabled:null!==n.getAttribute("disabled"))||n.parentNode.disabled&&x.nodeName(n.parentNode,"optgroup"))){if(t=x(n).val(),o)return t;a.push(t)}return a},set:function(e,t){var n,r,i=e.options,o=x.makeArray(t),a=i.length;while(a--)r=i[a],(r.selected=x.inArray(x(r).val(),o)>=0)&&(n=!0);return n||(e.selectedIndex=-1),o}}},attr:function(e,n,r){var o,a,s=e.nodeType;if(e&&3!==s&&8!==s&&2!==s)return typeof e.getAttribute===i?x.prop(e,n,r):(1===s&&x.isXMLDoc(e)||(n=n.toLowerCase(),o=x.attrHooks[n]||(x.expr.match.bool.test(n)?X:z)),r===t?o&&"get"in o&&null!==(a=o.get(e,n))?a:(a=x.find.attr(e,n),null==a?t:a):null!==r?o&&"set"in o&&(a=o.set(e,r,n))!==t?a:(e.setAttribute(n,r+""),r):(x.removeAttr(e,n),t))},removeAttr:function(e,t){var n,r,i=0,o=t&&t.match(T);if(o&&1===e.nodeType)while(n=o[i++])r=x.propFix[n]||n,x.expr.match.bool.test(n)?K&&Q||!G.test(n)?e[r]=!1:e[x.camelCase("default-"+n)]=e[r]=!1:x.attr(e,n,""),e.removeAttribute(Q?n:r)},attrHooks:{type:{set:function(e,t){if(!x.support.radioValue&&"radio"===t&&x.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},propFix:{"for":"htmlFor","class":"className"},prop:function(e,n,r){var i,o,a,s=e.nodeType;if(e&&3!==s&&8!==s&&2!==s)return a=1!==s||!x.isXMLDoc(e),a&&(n=x.propFix[n]||n,o=x.propHooks[n]),r!==t?o&&"set"in o&&(i=o.set(e,r,n))!==t?i:e[n]=r:o&&"get"in o&&null!==(i=o.get(e,n))?i:e[n]},propHooks:{tabIndex:{get:function(e){var t=x.find.attr(e,"tabindex");return t?parseInt(t,10):Y.test(e.nodeName)||J.test(e.nodeName)&&e.href?0:-1}}}}),X={set:function(e,t,n){return t===!1?x.removeAttr(e,n):K&&Q||!G.test(n)?e.setAttribute(!Q&&x.propFix[n]||n,n):e[x.camelCase("default-"+n)]=e[n]=!0,n}},x.each(x.expr.match.bool.source.match(/\w+/g),function(e,n){var r=x.expr.attrHandle[n]||x.find.attr;x.expr.attrHandle[n]=K&&Q||!G.test(n)?function(e,n,i){var o=x.expr.attrHandle[n],a=i?t:(x.expr.attrHandle[n]=t)!=r(e,n,i)?n.toLowerCase():null;return x.expr.attrHandle[n]=o,a}:function(e,n,r){return r?t:e[x.camelCase("default-"+n)]?n.toLowerCase():null}}),K&&Q||(x.attrHooks.value={set:function(e,n,r){return x.nodeName(e,"input")?(e.defaultValue=n,t):z&&z.set(e,n,r)}}),Q||(z={set:function(e,n,r){var i=e.getAttributeNode(r);return i||e.setAttributeNode(i=e.ownerDocument.createAttribute(r)),i.value=n+="","value"===r||n===e.getAttribute(r)?n:t}},x.expr.attrHandle.id=x.expr.attrHandle.name=x.expr.attrHandle.coords=function(e,n,r){var i;return r?t:(i=e.getAttributeNode(n))&&""!==i.value?i.value:null},x.valHooks.button={get:function(e,n){var r=e.getAttributeNode(n);return r&&r.specified?r.value:t},set:z.set},x.attrHooks.contenteditable={set:function(e,t,n){z.set(e,""===t?!1:t,n)}},x.each(["width","height"],function(e,n){x.attrHooks[n]={set:function(e,r){return""===r?(e.setAttribute(n,"auto"),r):t}}})),x.support.hrefNormalized||x.each(["href","src"],function(e,t){x.propHooks[t]={get:function(e){return e.getAttribute(t,4)}}}),x.support.style||(x.attrHooks.style={get:function(e){return e.style.cssText||t},set:function(e,t){return e.style.cssText=t+""}}),x.support.optSelected||(x.propHooks.selected={get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}}),x.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){x.propFix[this.toLowerCase()]=this}),x.support.enctype||(x.propFix.enctype="encoding"),x.each(["radio","checkbox"],function(){x.valHooks[this]={set:function(e,n){return x.isArray(n)?e.checked=x.inArray(x(e).val(),n)>=0:t}},x.support.checkOn||(x.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var Z=/^(?:input|select|textarea)$/i,et=/^key/,tt=/^(?:mouse|contextmenu)|click/,nt=/^(?:focusinfocus|focusoutblur)$/,rt=/^([^.]*)(?:\.(.+)|)$/;function it(){return!0}function ot(){return!1}function at(){try{return a.activeElement}catch(e){}}x.event={global:{},add:function(e,n,r,o,a){var s,l,u,c,p,f,d,h,g,m,y,v=x._data(e);if(v){r.handler&&(c=r,r=c.handler,a=c.selector),r.guid||(r.guid=x.guid++),(l=v.events)||(l=v.events={}),(f=v.handle)||(f=v.handle=function(e){return typeof x===i||e&&x.event.triggered===e.type?t:x.event.dispatch.apply(f.elem,arguments)},f.elem=e),n=(n||"").match(T)||[""],u=n.length;while(u--)s=rt.exec(n[u])||[],g=y=s[1],m=(s[2]||"").split(".").sort(),g&&(p=x.event.special[g]||{},g=(a?p.delegateType:p.bindType)||g,p=x.event.special[g]||{},d=x.extend({type:g,origType:y,data:o,handler:r,guid:r.guid,selector:a,needsContext:a&&x.expr.match.needsContext.test(a),namespace:m.join(".")},c),(h=l[g])||(h=l[g]=[],h.delegateCount=0,p.setup&&p.setup.call(e,o,m,f)!==!1||(e.addEventListener?e.addEventListener(g,f,!1):e.attachEvent&&e.attachEvent("on"+g,f))),p.add&&(p.add.call(e,d),d.handler.guid||(d.handler.guid=r.guid)),a?h.splice(h.delegateCount++,0,d):h.push(d),x.event.global[g]=!0);e=null}},remove:function(e,t,n,r,i){var o,a,s,l,u,c,p,f,d,h,g,m=x.hasData(e)&&x._data(e);if(m&&(c=m.events)){t=(t||"").match(T)||[""],u=t.length;while(u--)if(s=rt.exec(t[u])||[],d=g=s[1],h=(s[2]||"").split(".").sort(),d){p=x.event.special[d]||{},d=(r?p.delegateType:p.bindType)||d,f=c[d]||[],s=s[2]&&RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),l=o=f.length;while(o--)a=f[o],!i&&g!==a.origType||n&&n.guid!==a.guid||s&&!s.test(a.namespace)||r&&r!==a.selector&&("**"!==r||!a.selector)||(f.splice(o,1),a.selector&&f.delegateCount--,p.remove&&p.remove.call(e,a));l&&!f.length&&(p.teardown&&p.teardown.call(e,h,m.handle)!==!1||x.removeEvent(e,d,m.handle),delete c[d])}else for(d in c)x.event.remove(e,d+t[u],n,r,!0);x.isEmptyObject(c)&&(delete m.handle,x._removeData(e,"events"))}},trigger:function(n,r,i,o){var s,l,u,c,p,f,d,h=[i||a],g=v.call(n,"type")?n.type:n,m=v.call(n,"namespace")?n.namespace.split("."):[];if(u=f=i=i||a,3!==i.nodeType&&8!==i.nodeType&&!nt.test(g+x.event.triggered)&&(g.indexOf(".")>=0&&(m=g.split("."),g=m.shift(),m.sort()),l=0>g.indexOf(":")&&"on"+g,n=n[x.expando]?n:new x.Event(g,"object"==typeof n&&n),n.isTrigger=o?2:3,n.namespace=m.join("."),n.namespace_re=n.namespace?RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,n.result=t,n.target||(n.target=i),r=null==r?[n]:x.makeArray(r,[n]),p=x.event.special[g]||{},o||!p.trigger||p.trigger.apply(i,r)!==!1)){if(!o&&!p.noBubble&&!x.isWindow(i)){for(c=p.delegateType||g,nt.test(c+g)||(u=u.parentNode);u;u=u.parentNode)h.push(u),f=u;f===(i.ownerDocument||a)&&h.push(f.defaultView||f.parentWindow||e)}d=0;while((u=h[d++])&&!n.isPropagationStopped())n.type=d>1?c:p.bindType||g,s=(x._data(u,"events")||{})[n.type]&&x._data(u,"handle"),s&&s.apply(u,r),s=l&&u[l],s&&x.acceptData(u)&&s.apply&&s.apply(u,r)===!1&&n.preventDefault();if(n.type=g,!o&&!n.isDefaultPrevented()&&(!p._default||p._default.apply(h.pop(),r)===!1)&&x.acceptData(i)&&l&&i[g]&&!x.isWindow(i)){f=i[l],f&&(i[l]=null),x.event.triggered=g;try{i[g]()}catch(y){}x.event.triggered=t,f&&(i[l]=f)}return n.result}},dispatch:function(e){e=x.event.fix(e);var n,r,i,o,a,s=[],l=g.call(arguments),u=(x._data(this,"events")||{})[e.type]||[],c=x.event.special[e.type]||{};if(l[0]=e,e.delegateTarget=this,!c.preDispatch||c.preDispatch.call(this,e)!==!1){s=x.event.handlers.call(this,e,u),n=0;while((o=s[n++])&&!e.isPropagationStopped()){e.currentTarget=o.elem,a=0;while((i=o.handlers[a++])&&!e.isImmediatePropagationStopped())(!e.namespace_re||e.namespace_re.test(i.namespace))&&(e.handleObj=i,e.data=i.data,r=((x.event.special[i.origType]||{}).handle||i.handler).apply(o.elem,l),r!==t&&(e.result=r)===!1&&(e.preventDefault(),e.stopPropagation()))}return c.postDispatch&&c.postDispatch.call(this,e),e.result}},handlers:function(e,n){var r,i,o,a,s=[],l=n.delegateCount,u=e.target;if(l&&u.nodeType&&(!e.button||"click"!==e.type))for(;u!=this;u=u.parentNode||this)if(1===u.nodeType&&(u.disabled!==!0||"click"!==e.type)){for(o=[],a=0;l>a;a++)i=n[a],r=i.selector+" ",o[r]===t&&(o[r]=i.needsContext?x(r,this).index(u)>=0:x.find(r,this,null,[u]).length),o[r]&&o.push(i);o.length&&s.push({elem:u,handlers:o})}return n.length>l&&s.push({elem:this,handlers:n.slice(l)}),s},fix:function(e){if(e[x.expando])return e;var t,n,r,i=e.type,o=e,s=this.fixHooks[i];s||(this.fixHooks[i]=s=tt.test(i)?this.mouseHooks:et.test(i)?this.keyHooks:{}),r=s.props?this.props.concat(s.props):this.props,e=new x.Event(o),t=r.length;while(t--)n=r[t],e[n]=o[n];return e.target||(e.target=o.srcElement||a),3===e.target.nodeType&&(e.target=e.target.parentNode),e.metaKey=!!e.metaKey,s.filter?s.filter(e,o):e},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,n){var r,i,o,s=n.button,l=n.fromElement;return null==e.pageX&&null!=n.clientX&&(i=e.target.ownerDocument||a,o=i.documentElement,r=i.body,e.pageX=n.clientX+(o&&o.scrollLeft||r&&r.scrollLeft||0)-(o&&o.clientLeft||r&&r.clientLeft||0),e.pageY=n.clientY+(o&&o.scrollTop||r&&r.scrollTop||0)-(o&&o.clientTop||r&&r.clientTop||0)),!e.relatedTarget&&l&&(e.relatedTarget=l===e.target?n.toElement:l),e.which||s===t||(e.which=1&s?1:2&s?3:4&s?2:0),e}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==at()&&this.focus)try{return this.focus(),!1}catch(e){}},delegateType:"focusin"},blur:{trigger:function(){return this===at()&&this.blur?(this.blur(),!1):t},delegateType:"focusout"},click:{trigger:function(){return x.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):t},_default:function(e){return x.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){e.result!==t&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n,r){var i=x.extend(new x.Event,n,{type:e,isSimulated:!0,originalEvent:{}});r?x.event.trigger(i,null,t):x.event.dispatch.call(t,i),i.isDefaultPrevented()&&n.preventDefault()}},x.removeEvent=a.removeEventListener?function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)}:function(e,t,n){var r="on"+t;e.detachEvent&&(typeof e[r]===i&&(e[r]=null),e.detachEvent(r,n))},x.Event=function(e,n){return this instanceof x.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||e.returnValue===!1||e.getPreventDefault&&e.getPreventDefault()?it:ot):this.type=e,n&&x.extend(this,n),this.timeStamp=e&&e.timeStamp||x.now(),this[x.expando]=!0,t):new x.Event(e,n)},x.Event.prototype={isDefaultPrevented:ot,isPropagationStopped:ot,isImmediatePropagationStopped:ot,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=it,e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=it,e&&(e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=it,this.stopPropagation()}},x.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(e,t){x.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,o=e.handleObj;return(!i||i!==r&&!x.contains(r,i))&&(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),x.support.submitBubbles||(x.event.special.submit={setup:function(){return x.nodeName(this,"form")?!1:(x.event.add(this,"click._submit keypress._submit",function(e){var n=e.target,r=x.nodeName(n,"input")||x.nodeName(n,"button")?n.form:t;r&&!x._data(r,"submitBubbles")&&(x.event.add(r,"submit._submit",function(e){e._submit_bubble=!0}),x._data(r,"submitBubbles",!0))}),t)},postDispatch:function(e){e._submit_bubble&&(delete e._submit_bubble,this.parentNode&&!e.isTrigger&&x.event.simulate("submit",this.parentNode,e,!0))},teardown:function(){return x.nodeName(this,"form")?!1:(x.event.remove(this,"._submit"),t)}}),x.support.changeBubbles||(x.event.special.change={setup:function(){return Z.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(x.event.add(this,"propertychange._change",function(e){"checked"===e.originalEvent.propertyName&&(this._just_changed=!0)}),x.event.add(this,"click._change",function(e){this._just_changed&&!e.isTrigger&&(this._just_changed=!1),x.event.simulate("change",this,e,!0)})),!1):(x.event.add(this,"beforeactivate._change",function(e){var t=e.target;Z.test(t.nodeName)&&!x._data(t,"changeBubbles")&&(x.event.add(t,"change._change",function(e){!this.parentNode||e.isSimulated||e.isTrigger||x.event.simulate("change",this.parentNode,e,!0)}),x._data(t,"changeBubbles",!0))}),t)},handle:function(e){var n=e.target;return this!==n||e.isSimulated||e.isTrigger||"radio"!==n.type&&"checkbox"!==n.type?e.handleObj.handler.apply(this,arguments):t},teardown:function(){return x.event.remove(this,"._change"),!Z.test(this.nodeName)}}),x.support.focusinBubbles||x.each({focus:"focusin",blur:"focusout"},function(e,t){var n=0,r=function(e){x.event.simulate(t,e.target,x.event.fix(e),!0)};x.event.special[t]={setup:function(){0===n++&&a.addEventListener(e,r,!0)},teardown:function(){0===--n&&a.removeEventListener(e,r,!0)}}}),x.fn.extend({on:function(e,n,r,i,o){var a,s;if("object"==typeof e){"string"!=typeof n&&(r=r||n,n=t);for(a in e)this.on(a,n,r,e[a],o);return this}if(null==r&&null==i?(i=n,r=n=t):null==i&&("string"==typeof n?(i=r,r=t):(i=r,r=n,n=t)),i===!1)i=ot;else if(!i)return this;return 1===o&&(s=i,i=function(e){return x().off(e),s.apply(this,arguments)},i.guid=s.guid||(s.guid=x.guid++)),this.each(function(){x.event.add(this,e,i,r,n)})},one:function(e,t,n,r){return this.on(e,t,n,r,1)},off:function(e,n,r){var i,o;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,x(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof e){for(o in e)this.off(o,n,e[o]);return this}return(n===!1||"function"==typeof n)&&(r=n,n=t),r===!1&&(r=ot),this.each(function(){x.event.remove(this,e,r,n)})},trigger:function(e,t){return this.each(function(){x.event.trigger(e,t,this)})},triggerHandler:function(e,n){var r=this[0];return r?x.event.trigger(e,n,r,!0):t}});var st=/^.[^:#\[\.,]*$/,lt=/^(?:parents|prev(?:Until|All))/,ut=x.expr.match.needsContext,ct={children:!0,contents:!0,next:!0,prev:!0};x.fn.extend({find:function(e){var t,n=[],r=this,i=r.length;if("string"!=typeof e)return this.pushStack(x(e).filter(function(){for(t=0;i>t;t++)if(x.contains(r[t],this))return!0}));for(t=0;i>t;t++)x.find(e,r[t],n);return n=this.pushStack(i>1?x.unique(n):n),n.selector=this.selector?this.selector+" "+e:e,n},has:function(e){var t,n=x(e,this),r=n.length;return this.filter(function(){for(t=0;r>t;t++)if(x.contains(this,n[t]))return!0})},not:function(e){return this.pushStack(ft(this,e||[],!0))},filter:function(e){return this.pushStack(ft(this,e||[],!1))},is:function(e){return!!ft(this,"string"==typeof e&&ut.test(e)?x(e):e||[],!1).length},closest:function(e,t){var n,r=0,i=this.length,o=[],a=ut.test(e)||"string"!=typeof e?x(e,t||this.context):0;for(;i>r;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(11>n.nodeType&&(a?a.index(n)>-1:1===n.nodeType&&x.find.matchesSelector(n,e))){n=o.push(n);break}return this.pushStack(o.length>1?x.unique(o):o)},index:function(e){return e?"string"==typeof e?x.inArray(this[0],x(e)):x.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){var n="string"==typeof e?x(e,t):x.makeArray(e&&e.nodeType?[e]:e),r=x.merge(this.get(),n);return this.pushStack(x.unique(r))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}});function pt(e,t){do e=e[t];while(e&&1!==e.nodeType);return e}x.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return x.dir(e,"parentNode")},parentsUntil:function(e,t,n){return x.dir(e,"parentNode",n)},next:function(e){return pt(e,"nextSibling")},prev:function(e){return pt(e,"previousSibling")},nextAll:function(e){return x.dir(e,"nextSibling")},prevAll:function(e){return x.dir(e,"previousSibling")},nextUntil:function(e,t,n){return x.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return x.dir(e,"previousSibling",n)},siblings:function(e){return x.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return x.sibling(e.firstChild)},contents:function(e){return x.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:x.merge([],e.childNodes)}},function(e,t){x.fn[e]=function(n,r){var i=x.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=x.filter(r,i)),this.length>1&&(ct[e]||(i=x.unique(i)),lt.test(e)&&(i=i.reverse())),this.pushStack(i)}}),x.extend({filter:function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?x.find.matchesSelector(r,e)?[r]:[]:x.find.matches(e,x.grep(t,function(e){return 1===e.nodeType}))},dir:function(e,n,r){var i=[],o=e[n];while(o&&9!==o.nodeType&&(r===t||1!==o.nodeType||!x(o).is(r)))1===o.nodeType&&i.push(o),o=o[n];return i},sibling:function(e,t){var n=[];for(;e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}});function ft(e,t,n){if(x.isFunction(t))return x.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)return x.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(st.test(t))return x.filter(t,e,n);t=x.filter(t,e)}return x.grep(e,function(e){return x.inArray(e,t)>=0!==n})}function dt(e){var t=ht.split("|"),n=e.createDocumentFragment();if(n.createElement)while(t.length)n.createElement(t.pop());return n}var ht="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",gt=/ jQuery\d+="(?:null|\d+)"/g,mt=RegExp("<(?:"+ht+")[\\s/>]","i"),yt=/^\s+/,vt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,bt=/<([\w:]+)/,xt=/<tbody/i,wt=/<|&#?\w+;/,Tt=/<(?:script|style|link)/i,Ct=/^(?:checkbox|radio)$/i,Nt=/checked\s*(?:[^=]|=\s*.checked.)/i,kt=/^$|\/(?:java|ecma)script/i,Et=/^true\/(.*)/,St=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,At={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:x.support.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},jt=dt(a),Dt=jt.appendChild(a.createElement("div"));At.optgroup=At.option,At.tbody=At.tfoot=At.colgroup=At.caption=At.thead,At.th=At.td,x.fn.extend({text:function(e){return x.access(this,function(e){return e===t?x.text(this):this.empty().append((this[0]&&this[0].ownerDocument||a).createTextNode(e))},null,e,arguments.length)},append:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Lt(this,e);t.appendChild(e)}})},prepend:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Lt(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},remove:function(e,t){var n,r=e?x.filter(e,this):this,i=0;for(;null!=(n=r[i]);i++)t||1!==n.nodeType||x.cleanData(Ft(n)),n.parentNode&&(t&&x.contains(n.ownerDocument,n)&&_t(Ft(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){var e,t=0;for(;null!=(e=this[t]);t++){1===e.nodeType&&x.cleanData(Ft(e,!1));while(e.firstChild)e.removeChild(e.firstChild);e.options&&x.nodeName(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=null==e?!1:e,t=null==t?e:t,this.map(function(){return x.clone(this,e,t)})},html:function(e){return x.access(this,function(e){var n=this[0]||{},r=0,i=this.length;if(e===t)return 1===n.nodeType?n.innerHTML.replace(gt,""):t;if(!("string"!=typeof e||Tt.test(e)||!x.support.htmlSerialize&&mt.test(e)||!x.support.leadingWhitespace&&yt.test(e)||At[(bt.exec(e)||["",""])[1].toLowerCase()])){e=e.replace(vt,"<$1></$2>");try{for(;i>r;r++)n=this[r]||{},1===n.nodeType&&(x.cleanData(Ft(n,!1)),n.innerHTML=e);n=0}catch(o){}}n&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=x.map(this,function(e){return[e.nextSibling,e.parentNode]}),t=0;return this.domManip(arguments,function(n){var r=e[t++],i=e[t++];i&&(r&&r.parentNode!==i&&(r=this.nextSibling),x(this).remove(),i.insertBefore(n,r))},!0),t?this:this.remove()},detach:function(e){return this.remove(e,!0)},domManip:function(e,t,n){e=d.apply([],e);var r,i,o,a,s,l,u=0,c=this.length,p=this,f=c-1,h=e[0],g=x.isFunction(h);if(g||!(1>=c||"string"!=typeof h||x.support.checkClone)&&Nt.test(h))return this.each(function(r){var i=p.eq(r);g&&(e[0]=h.call(this,r,i.html())),i.domManip(e,t,n)});if(c&&(l=x.buildFragment(e,this[0].ownerDocument,!1,!n&&this),r=l.firstChild,1===l.childNodes.length&&(l=r),r)){for(a=x.map(Ft(l,"script"),Ht),o=a.length;c>u;u++)i=l,u!==f&&(i=x.clone(i,!0,!0),o&&x.merge(a,Ft(i,"script"))),t.call(this[u],i,u);if(o)for(s=a[a.length-1].ownerDocument,x.map(a,qt),u=0;o>u;u++)i=a[u],kt.test(i.type||"")&&!x._data(i,"globalEval")&&x.contains(s,i)&&(i.src?x._evalUrl(i.src):x.globalEval((i.text||i.textContent||i.innerHTML||"").replace(St,"")));l=r=null}return this}});function Lt(e,t){return x.nodeName(e,"table")&&x.nodeName(1===t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function Ht(e){return e.type=(null!==x.find.attr(e,"type"))+"/"+e.type,e}function qt(e){var t=Et.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function _t(e,t){var n,r=0;for(;null!=(n=e[r]);r++)x._data(n,"globalEval",!t||x._data(t[r],"globalEval"))}function Mt(e,t){if(1===t.nodeType&&x.hasData(e)){var n,r,i,o=x._data(e),a=x._data(t,o),s=o.events;if(s){delete a.handle,a.events={};for(n in s)for(r=0,i=s[n].length;i>r;r++)x.event.add(t,n,s[n][r])}a.data&&(a.data=x.extend({},a.data))}}function Ot(e,t){var n,r,i;if(1===t.nodeType){if(n=t.nodeName.toLowerCase(),!x.support.noCloneEvent&&t[x.expando]){i=x._data(t);for(r in i.events)x.removeEvent(t,r,i.handle);t.removeAttribute(x.expando)}"script"===n&&t.text!==e.text?(Ht(t).text=e.text,qt(t)):"object"===n?(t.parentNode&&(t.outerHTML=e.outerHTML),x.support.html5Clone&&e.innerHTML&&!x.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):"input"===n&&Ct.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):"option"===n?t.defaultSelected=t.selected=e.defaultSelected:("input"===n||"textarea"===n)&&(t.defaultValue=e.defaultValue)}}x.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){x.fn[e]=function(e){var n,r=0,i=[],o=x(e),a=o.length-1;for(;a>=r;r++)n=r===a?this:this.clone(!0),x(o[r])[t](n),h.apply(i,n.get());return this.pushStack(i)}});function Ft(e,n){var r,o,a=0,s=typeof e.getElementsByTagName!==i?e.getElementsByTagName(n||"*"):typeof e.querySelectorAll!==i?e.querySelectorAll(n||"*"):t;if(!s)for(s=[],r=e.childNodes||e;null!=(o=r[a]);a++)!n||x.nodeName(o,n)?s.push(o):x.merge(s,Ft(o,n));return n===t||n&&x.nodeName(e,n)?x.merge([e],s):s}function Bt(e){Ct.test(e.type)&&(e.defaultChecked=e.checked)}x.extend({clone:function(e,t,n){var r,i,o,a,s,l=x.contains(e.ownerDocument,e);if(x.support.html5Clone||x.isXMLDoc(e)||!mt.test("<"+e.nodeName+">")?o=e.cloneNode(!0):(Dt.innerHTML=e.outerHTML,Dt.removeChild(o=Dt.firstChild)),!(x.support.noCloneEvent&&x.support.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||x.isXMLDoc(e)))for(r=Ft(o),s=Ft(e),a=0;null!=(i=s[a]);++a)r[a]&&Ot(i,r[a]);if(t)if(n)for(s=s||Ft(e),r=r||Ft(o),a=0;null!=(i=s[a]);a++)Mt(i,r[a]);else Mt(e,o);return r=Ft(o,"script"),r.length>0&&_t(r,!l&&Ft(e,"script")),r=s=i=null,o},buildFragment:function(e,t,n,r){var i,o,a,s,l,u,c,p=e.length,f=dt(t),d=[],h=0;for(;p>h;h++)if(o=e[h],o||0===o)if("object"===x.type(o))x.merge(d,o.nodeType?[o]:o);else if(wt.test(o)){s=s||f.appendChild(t.createElement("div")),l=(bt.exec(o)||["",""])[1].toLowerCase(),c=At[l]||At._default,s.innerHTML=c[1]+o.replace(vt,"<$1></$2>")+c[2],i=c[0];while(i--)s=s.lastChild;if(!x.support.leadingWhitespace&&yt.test(o)&&d.push(t.createTextNode(yt.exec(o)[0])),!x.support.tbody){o="table"!==l||xt.test(o)?"<table>"!==c[1]||xt.test(o)?0:s:s.firstChild,i=o&&o.childNodes.length;while(i--)x.nodeName(u=o.childNodes[i],"tbody")&&!u.childNodes.length&&o.removeChild(u)}x.merge(d,s.childNodes),s.textContent="";while(s.firstChild)s.removeChild(s.firstChild);s=f.lastChild}else d.push(t.createTextNode(o));s&&f.removeChild(s),x.support.appendChecked||x.grep(Ft(d,"input"),Bt),h=0;while(o=d[h++])if((!r||-1===x.inArray(o,r))&&(a=x.contains(o.ownerDocument,o),s=Ft(f.appendChild(o),"script"),a&&_t(s),n)){i=0;while(o=s[i++])kt.test(o.type||"")&&n.push(o)}return s=null,f},cleanData:function(e,t){var n,r,o,a,s=0,l=x.expando,u=x.cache,c=x.support.deleteExpando,f=x.event.special;for(;null!=(n=e[s]);s++)if((t||x.acceptData(n))&&(o=n[l],a=o&&u[o])){if(a.events)for(r in a.events)f[r]?x.event.remove(n,r):x.removeEvent(n,r,a.handle);
|
6 |
+
u[o]&&(delete u[o],c?delete n[l]:typeof n.removeAttribute!==i?n.removeAttribute(l):n[l]=null,p.push(o))}},_evalUrl:function(e){return x.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})}}),x.fn.extend({wrapAll:function(e){if(x.isFunction(e))return this.each(function(t){x(this).wrapAll(e.call(this,t))});if(this[0]){var t=x(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstChild&&1===e.firstChild.nodeType)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(e){return x.isFunction(e)?this.each(function(t){x(this).wrapInner(e.call(this,t))}):this.each(function(){var t=x(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=x.isFunction(e);return this.each(function(n){x(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){x.nodeName(this,"body")||x(this).replaceWith(this.childNodes)}).end()}});var Pt,Rt,Wt,$t=/alpha\([^)]*\)/i,It=/opacity\s*=\s*([^)]*)/,zt=/^(top|right|bottom|left)$/,Xt=/^(none|table(?!-c[ea]).+)/,Ut=/^margin/,Vt=RegExp("^("+w+")(.*)$","i"),Yt=RegExp("^("+w+")(?!px)[a-z%]+$","i"),Jt=RegExp("^([+-])=("+w+")","i"),Gt={BODY:"block"},Qt={position:"absolute",visibility:"hidden",display:"block"},Kt={letterSpacing:0,fontWeight:400},Zt=["Top","Right","Bottom","Left"],en=["Webkit","O","Moz","ms"];function tn(e,t){if(t in e)return t;var n=t.charAt(0).toUpperCase()+t.slice(1),r=t,i=en.length;while(i--)if(t=en[i]+n,t in e)return t;return r}function nn(e,t){return e=t||e,"none"===x.css(e,"display")||!x.contains(e.ownerDocument,e)}function rn(e,t){var n,r,i,o=[],a=0,s=e.length;for(;s>a;a++)r=e[a],r.style&&(o[a]=x._data(r,"olddisplay"),n=r.style.display,t?(o[a]||"none"!==n||(r.style.display=""),""===r.style.display&&nn(r)&&(o[a]=x._data(r,"olddisplay",ln(r.nodeName)))):o[a]||(i=nn(r),(n&&"none"!==n||!i)&&x._data(r,"olddisplay",i?n:x.css(r,"display"))));for(a=0;s>a;a++)r=e[a],r.style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?o[a]||"":"none"));return e}x.fn.extend({css:function(e,n){return x.access(this,function(e,n,r){var i,o,a={},s=0;if(x.isArray(n)){for(o=Rt(e),i=n.length;i>s;s++)a[n[s]]=x.css(e,n[s],!1,o);return a}return r!==t?x.style(e,n,r):x.css(e,n)},e,n,arguments.length>1)},show:function(){return rn(this,!0)},hide:function(){return rn(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){nn(this)?x(this).show():x(this).hide()})}}),x.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Wt(e,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":x.support.cssFloat?"cssFloat":"styleFloat"},style:function(e,n,r,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,a,s,l=x.camelCase(n),u=e.style;if(n=x.cssProps[l]||(x.cssProps[l]=tn(u,l)),s=x.cssHooks[n]||x.cssHooks[l],r===t)return s&&"get"in s&&(o=s.get(e,!1,i))!==t?o:u[n];if(a=typeof r,"string"===a&&(o=Jt.exec(r))&&(r=(o[1]+1)*o[2]+parseFloat(x.css(e,n)),a="number"),!(null==r||"number"===a&&isNaN(r)||("number"!==a||x.cssNumber[l]||(r+="px"),x.support.clearCloneStyle||""!==r||0!==n.indexOf("background")||(u[n]="inherit"),s&&"set"in s&&(r=s.set(e,r,i))===t)))try{u[n]=r}catch(c){}}},css:function(e,n,r,i){var o,a,s,l=x.camelCase(n);return n=x.cssProps[l]||(x.cssProps[l]=tn(e.style,l)),s=x.cssHooks[n]||x.cssHooks[l],s&&"get"in s&&(a=s.get(e,!0,r)),a===t&&(a=Wt(e,n,i)),"normal"===a&&n in Kt&&(a=Kt[n]),""===r||r?(o=parseFloat(a),r===!0||x.isNumeric(o)?o||0:a):a}}),e.getComputedStyle?(Rt=function(t){return e.getComputedStyle(t,null)},Wt=function(e,n,r){var i,o,a,s=r||Rt(e),l=s?s.getPropertyValue(n)||s[n]:t,u=e.style;return s&&(""!==l||x.contains(e.ownerDocument,e)||(l=x.style(e,n)),Yt.test(l)&&Ut.test(n)&&(i=u.width,o=u.minWidth,a=u.maxWidth,u.minWidth=u.maxWidth=u.width=l,l=s.width,u.width=i,u.minWidth=o,u.maxWidth=a)),l}):a.documentElement.currentStyle&&(Rt=function(e){return e.currentStyle},Wt=function(e,n,r){var i,o,a,s=r||Rt(e),l=s?s[n]:t,u=e.style;return null==l&&u&&u[n]&&(l=u[n]),Yt.test(l)&&!zt.test(n)&&(i=u.left,o=e.runtimeStyle,a=o&&o.left,a&&(o.left=e.currentStyle.left),u.left="fontSize"===n?"1em":l,l=u.pixelLeft+"px",u.left=i,a&&(o.left=a)),""===l?"auto":l});function on(e,t,n){var r=Vt.exec(t);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):t}function an(e,t,n,r,i){var o=n===(r?"border":"content")?4:"width"===t?1:0,a=0;for(;4>o;o+=2)"margin"===n&&(a+=x.css(e,n+Zt[o],!0,i)),r?("content"===n&&(a-=x.css(e,"padding"+Zt[o],!0,i)),"margin"!==n&&(a-=x.css(e,"border"+Zt[o]+"Width",!0,i))):(a+=x.css(e,"padding"+Zt[o],!0,i),"padding"!==n&&(a+=x.css(e,"border"+Zt[o]+"Width",!0,i)));return a}function sn(e,t,n){var r=!0,i="width"===t?e.offsetWidth:e.offsetHeight,o=Rt(e),a=x.support.boxSizing&&"border-box"===x.css(e,"boxSizing",!1,o);if(0>=i||null==i){if(i=Wt(e,t,o),(0>i||null==i)&&(i=e.style[t]),Yt.test(i))return i;r=a&&(x.support.boxSizingReliable||i===e.style[t]),i=parseFloat(i)||0}return i+an(e,t,n||(a?"border":"content"),r,o)+"px"}function ln(e){var t=a,n=Gt[e];return n||(n=un(e,t),"none"!==n&&n||(Pt=(Pt||x("<iframe frameborder='0' width='0' height='0'/>").css("cssText","display:block !important")).appendTo(t.documentElement),t=(Pt[0].contentWindow||Pt[0].contentDocument).document,t.write("<!doctype html><html><body>"),t.close(),n=un(e,t),Pt.detach()),Gt[e]=n),n}function un(e,t){var n=x(t.createElement(e)).appendTo(t.body),r=x.css(n[0],"display");return n.remove(),r}x.each(["height","width"],function(e,n){x.cssHooks[n]={get:function(e,r,i){return r?0===e.offsetWidth&&Xt.test(x.css(e,"display"))?x.swap(e,Qt,function(){return sn(e,n,i)}):sn(e,n,i):t},set:function(e,t,r){var i=r&&Rt(e);return on(e,t,r?an(e,n,r,x.support.boxSizing&&"border-box"===x.css(e,"boxSizing",!1,i),i):0)}}}),x.support.opacity||(x.cssHooks.opacity={get:function(e,t){return It.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var n=e.style,r=e.currentStyle,i=x.isNumeric(t)?"alpha(opacity="+100*t+")":"",o=r&&r.filter||n.filter||"";n.zoom=1,(t>=1||""===t)&&""===x.trim(o.replace($t,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===t||r&&!r.filter)||(n.filter=$t.test(o)?o.replace($t,i):o+" "+i)}}),x(function(){x.support.reliableMarginRight||(x.cssHooks.marginRight={get:function(e,n){return n?x.swap(e,{display:"inline-block"},Wt,[e,"marginRight"]):t}}),!x.support.pixelPosition&&x.fn.position&&x.each(["top","left"],function(e,n){x.cssHooks[n]={get:function(e,r){return r?(r=Wt(e,n),Yt.test(r)?x(e).position()[n]+"px":r):t}}})}),x.expr&&x.expr.filters&&(x.expr.filters.hidden=function(e){return 0>=e.offsetWidth&&0>=e.offsetHeight||!x.support.reliableHiddenOffsets&&"none"===(e.style&&e.style.display||x.css(e,"display"))},x.expr.filters.visible=function(e){return!x.expr.filters.hidden(e)}),x.each({margin:"",padding:"",border:"Width"},function(e,t){x.cssHooks[e+t]={expand:function(n){var r=0,i={},o="string"==typeof n?n.split(" "):[n];for(;4>r;r++)i[e+Zt[r]+t]=o[r]||o[r-2]||o[0];return i}},Ut.test(e)||(x.cssHooks[e+t].set=on)});var cn=/%20/g,pn=/\[\]$/,fn=/\r?\n/g,dn=/^(?:submit|button|image|reset|file)$/i,hn=/^(?:input|select|textarea|keygen)/i;x.fn.extend({serialize:function(){return x.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=x.prop(this,"elements");return e?x.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!x(this).is(":disabled")&&hn.test(this.nodeName)&&!dn.test(e)&&(this.checked||!Ct.test(e))}).map(function(e,t){var n=x(this).val();return null==n?null:x.isArray(n)?x.map(n,function(e){return{name:t.name,value:e.replace(fn,"\r\n")}}):{name:t.name,value:n.replace(fn,"\r\n")}}).get()}}),x.param=function(e,n){var r,i=[],o=function(e,t){t=x.isFunction(t)?t():null==t?"":t,i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(n===t&&(n=x.ajaxSettings&&x.ajaxSettings.traditional),x.isArray(e)||e.jquery&&!x.isPlainObject(e))x.each(e,function(){o(this.name,this.value)});else for(r in e)gn(r,e[r],n,o);return i.join("&").replace(cn,"+")};function gn(e,t,n,r){var i;if(x.isArray(t))x.each(t,function(t,i){n||pn.test(e)?r(e,i):gn(e+"["+("object"==typeof i?t:"")+"]",i,n,r)});else if(n||"object"!==x.type(t))r(e,t);else for(i in t)gn(e+"["+i+"]",t[i],n,r)}x.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){x.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),x.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)},bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}});var mn,yn,vn=x.now(),bn=/\?/,xn=/#.*$/,wn=/([?&])_=[^&]*/,Tn=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Cn=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Nn=/^(?:GET|HEAD)$/,kn=/^\/\//,En=/^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,Sn=x.fn.load,An={},jn={},Dn="*/".concat("*");try{yn=o.href}catch(Ln){yn=a.createElement("a"),yn.href="",yn=yn.href}mn=En.exec(yn.toLowerCase())||[];function Hn(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(T)||[];if(x.isFunction(n))while(r=o[i++])"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function qn(e,n,r,i){var o={},a=e===jn;function s(l){var u;return o[l]=!0,x.each(e[l]||[],function(e,l){var c=l(n,r,i);return"string"!=typeof c||a||o[c]?a?!(u=c):t:(n.dataTypes.unshift(c),s(c),!1)}),u}return s(n.dataTypes[0])||!o["*"]&&s("*")}function _n(e,n){var r,i,o=x.ajaxSettings.flatOptions||{};for(i in n)n[i]!==t&&((o[i]?e:r||(r={}))[i]=n[i]);return r&&x.extend(!0,e,r),e}x.fn.load=function(e,n,r){if("string"!=typeof e&&Sn)return Sn.apply(this,arguments);var i,o,a,s=this,l=e.indexOf(" ");return l>=0&&(i=e.slice(l,e.length),e=e.slice(0,l)),x.isFunction(n)?(r=n,n=t):n&&"object"==typeof n&&(a="POST"),s.length>0&&x.ajax({url:e,type:a,dataType:"html",data:n}).done(function(e){o=arguments,s.html(i?x("<div>").append(x.parseHTML(e)).find(i):e)}).complete(r&&function(e,t){s.each(r,o||[e.responseText,t,e])}),this},x.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){x.fn[t]=function(e){return this.on(t,e)}}),x.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:yn,type:"GET",isLocal:Cn.test(mn[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Dn,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":x.parseJSON,"text xml":x.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?_n(_n(e,x.ajaxSettings),t):_n(x.ajaxSettings,e)},ajaxPrefilter:Hn(An),ajaxTransport:Hn(jn),ajax:function(e,n){"object"==typeof e&&(n=e,e=t),n=n||{};var r,i,o,a,s,l,u,c,p=x.ajaxSetup({},n),f=p.context||p,d=p.context&&(f.nodeType||f.jquery)?x(f):x.event,h=x.Deferred(),g=x.Callbacks("once memory"),m=p.statusCode||{},y={},v={},b=0,w="canceled",C={readyState:0,getResponseHeader:function(e){var t;if(2===b){if(!c){c={};while(t=Tn.exec(a))c[t[1].toLowerCase()]=t[2]}t=c[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===b?a:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return b||(e=v[n]=v[n]||e,y[e]=t),this},overrideMimeType:function(e){return b||(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(2>b)for(t in e)m[t]=[m[t],e[t]];else C.always(e[C.status]);return this},abort:function(e){var t=e||w;return u&&u.abort(t),k(0,t),this}};if(h.promise(C).complete=g.add,C.success=C.done,C.error=C.fail,p.url=((e||p.url||yn)+"").replace(xn,"").replace(kn,mn[1]+"//"),p.type=n.method||n.type||p.method||p.type,p.dataTypes=x.trim(p.dataType||"*").toLowerCase().match(T)||[""],null==p.crossDomain&&(r=En.exec(p.url.toLowerCase()),p.crossDomain=!(!r||r[1]===mn[1]&&r[2]===mn[2]&&(r[3]||("http:"===r[1]?"80":"443"))===(mn[3]||("http:"===mn[1]?"80":"443")))),p.data&&p.processData&&"string"!=typeof p.data&&(p.data=x.param(p.data,p.traditional)),qn(An,p,n,C),2===b)return C;l=p.global,l&&0===x.active++&&x.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Nn.test(p.type),o=p.url,p.hasContent||(p.data&&(o=p.url+=(bn.test(o)?"&":"?")+p.data,delete p.data),p.cache===!1&&(p.url=wn.test(o)?o.replace(wn,"$1_="+vn++):o+(bn.test(o)?"&":"?")+"_="+vn++)),p.ifModified&&(x.lastModified[o]&&C.setRequestHeader("If-Modified-Since",x.lastModified[o]),x.etag[o]&&C.setRequestHeader("If-None-Match",x.etag[o])),(p.data&&p.hasContent&&p.contentType!==!1||n.contentType)&&C.setRequestHeader("Content-Type",p.contentType),C.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Dn+"; q=0.01":""):p.accepts["*"]);for(i in p.headers)C.setRequestHeader(i,p.headers[i]);if(p.beforeSend&&(p.beforeSend.call(f,C,p)===!1||2===b))return C.abort();w="abort";for(i in{success:1,error:1,complete:1})C[i](p[i]);if(u=qn(jn,p,n,C)){C.readyState=1,l&&d.trigger("ajaxSend",[C,p]),p.async&&p.timeout>0&&(s=setTimeout(function(){C.abort("timeout")},p.timeout));try{b=1,u.send(y,k)}catch(N){if(!(2>b))throw N;k(-1,N)}}else k(-1,"No Transport");function k(e,n,r,i){var c,y,v,w,T,N=n;2!==b&&(b=2,s&&clearTimeout(s),u=t,a=i||"",C.readyState=e>0?4:0,c=e>=200&&300>e||304===e,r&&(w=Mn(p,C,r)),w=On(p,w,C,c),c?(p.ifModified&&(T=C.getResponseHeader("Last-Modified"),T&&(x.lastModified[o]=T),T=C.getResponseHeader("etag"),T&&(x.etag[o]=T)),204===e||"HEAD"===p.type?N="nocontent":304===e?N="notmodified":(N=w.state,y=w.data,v=w.error,c=!v)):(v=N,(e||!N)&&(N="error",0>e&&(e=0))),C.status=e,C.statusText=(n||N)+"",c?h.resolveWith(f,[y,N,C]):h.rejectWith(f,[C,N,v]),C.statusCode(m),m=t,l&&d.trigger(c?"ajaxSuccess":"ajaxError",[C,p,c?y:v]),g.fireWith(f,[C,N]),l&&(d.trigger("ajaxComplete",[C,p]),--x.active||x.event.trigger("ajaxStop")))}return C},getJSON:function(e,t,n){return x.get(e,t,n,"json")},getScript:function(e,n){return x.get(e,t,n,"script")}}),x.each(["get","post"],function(e,n){x[n]=function(e,r,i,o){return x.isFunction(r)&&(o=o||i,i=r,r=t),x.ajax({url:e,type:n,dataType:o,data:r,success:i})}});function Mn(e,n,r){var i,o,a,s,l=e.contents,u=e.dataTypes;while("*"===u[0])u.shift(),o===t&&(o=e.mimeType||n.getResponseHeader("Content-Type"));if(o)for(s in l)if(l[s]&&l[s].test(o)){u.unshift(s);break}if(u[0]in r)a=u[0];else{for(s in r){if(!u[0]||e.converters[s+" "+u[0]]){a=s;break}i||(i=s)}a=a||i}return a?(a!==u[0]&&u.unshift(a),r[a]):t}function On(e,t,n,r){var i,o,a,s,l,u={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)u[a.toLowerCase()]=e.converters[a];o=c.shift();while(o)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=c.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(a=u[l+" "+o]||u["* "+o],!a)for(i in u)if(s=i.split(" "),s[1]===o&&(a=u[l+" "+s[0]]||u["* "+s[0]])){a===!0?a=u[i]:u[i]!==!0&&(o=s[0],c.unshift(s[1]));break}if(a!==!0)if(a&&e["throws"])t=a(t);else try{t=a(t)}catch(p){return{state:"parsererror",error:a?p:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}x.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return x.globalEval(e),e}}}),x.ajaxPrefilter("script",function(e){e.cache===t&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),x.ajaxTransport("script",function(e){if(e.crossDomain){var n,r=a.head||x("head")[0]||a.documentElement;return{send:function(t,i){n=a.createElement("script"),n.async=!0,e.scriptCharset&&(n.charset=e.scriptCharset),n.src=e.url,n.onload=n.onreadystatechange=function(e,t){(t||!n.readyState||/loaded|complete/.test(n.readyState))&&(n.onload=n.onreadystatechange=null,n.parentNode&&n.parentNode.removeChild(n),n=null,t||i(200,"success"))},r.insertBefore(n,r.firstChild)},abort:function(){n&&n.onload(t,!0)}}}});var Fn=[],Bn=/(=)\?(?=&|$)|\?\?/;x.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Fn.pop()||x.expando+"_"+vn++;return this[e]=!0,e}}),x.ajaxPrefilter("json jsonp",function(n,r,i){var o,a,s,l=n.jsonp!==!1&&(Bn.test(n.url)?"url":"string"==typeof n.data&&!(n.contentType||"").indexOf("application/x-www-form-urlencoded")&&Bn.test(n.data)&&"data");return l||"jsonp"===n.dataTypes[0]?(o=n.jsonpCallback=x.isFunction(n.jsonpCallback)?n.jsonpCallback():n.jsonpCallback,l?n[l]=n[l].replace(Bn,"$1"+o):n.jsonp!==!1&&(n.url+=(bn.test(n.url)?"&":"?")+n.jsonp+"="+o),n.converters["script json"]=function(){return s||x.error(o+" was not called"),s[0]},n.dataTypes[0]="json",a=e[o],e[o]=function(){s=arguments},i.always(function(){e[o]=a,n[o]&&(n.jsonpCallback=r.jsonpCallback,Fn.push(o)),s&&x.isFunction(a)&&a(s[0]),s=a=t}),"script"):t});var Pn,Rn,Wn=0,$n=e.ActiveXObject&&function(){var e;for(e in Pn)Pn[e](t,!0)};function In(){try{return new e.XMLHttpRequest}catch(t){}}function zn(){try{return new e.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}x.ajaxSettings.xhr=e.ActiveXObject?function(){return!this.isLocal&&In()||zn()}:In,Rn=x.ajaxSettings.xhr(),x.support.cors=!!Rn&&"withCredentials"in Rn,Rn=x.support.ajax=!!Rn,Rn&&x.ajaxTransport(function(n){if(!n.crossDomain||x.support.cors){var r;return{send:function(i,o){var a,s,l=n.xhr();if(n.username?l.open(n.type,n.url,n.async,n.username,n.password):l.open(n.type,n.url,n.async),n.xhrFields)for(s in n.xhrFields)l[s]=n.xhrFields[s];n.mimeType&&l.overrideMimeType&&l.overrideMimeType(n.mimeType),n.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");try{for(s in i)l.setRequestHeader(s,i[s])}catch(u){}l.send(n.hasContent&&n.data||null),r=function(e,i){var s,u,c,p;try{if(r&&(i||4===l.readyState))if(r=t,a&&(l.onreadystatechange=x.noop,$n&&delete Pn[a]),i)4!==l.readyState&&l.abort();else{p={},s=l.status,u=l.getAllResponseHeaders(),"string"==typeof l.responseText&&(p.text=l.responseText);try{c=l.statusText}catch(f){c=""}s||!n.isLocal||n.crossDomain?1223===s&&(s=204):s=p.text?200:404}}catch(d){i||o(-1,d)}p&&o(s,c,p,u)},n.async?4===l.readyState?setTimeout(r):(a=++Wn,$n&&(Pn||(Pn={},x(e).unload($n)),Pn[a]=r),l.onreadystatechange=r):r()},abort:function(){r&&r(t,!0)}}}});var Xn,Un,Vn=/^(?:toggle|show|hide)$/,Yn=RegExp("^(?:([+-])=|)("+w+")([a-z%]*)$","i"),Jn=/queueHooks$/,Gn=[nr],Qn={"*":[function(e,t){var n=this.createTween(e,t),r=n.cur(),i=Yn.exec(t),o=i&&i[3]||(x.cssNumber[e]?"":"px"),a=(x.cssNumber[e]||"px"!==o&&+r)&&Yn.exec(x.css(n.elem,e)),s=1,l=20;if(a&&a[3]!==o){o=o||a[3],i=i||[],a=+r||1;do s=s||".5",a/=s,x.style(n.elem,e,a+o);while(s!==(s=n.cur()/r)&&1!==s&&--l)}return i&&(a=n.start=+a||+r||0,n.unit=o,n.end=i[1]?a+(i[1]+1)*i[2]:+i[2]),n}]};function Kn(){return setTimeout(function(){Xn=t}),Xn=x.now()}function Zn(e,t,n){var r,i=(Qn[t]||[]).concat(Qn["*"]),o=0,a=i.length;for(;a>o;o++)if(r=i[o].call(n,t,e))return r}function er(e,t,n){var r,i,o=0,a=Gn.length,s=x.Deferred().always(function(){delete l.elem}),l=function(){if(i)return!1;var t=Xn||Kn(),n=Math.max(0,u.startTime+u.duration-t),r=n/u.duration||0,o=1-r,a=0,l=u.tweens.length;for(;l>a;a++)u.tweens[a].run(o);return s.notifyWith(e,[u,o,n]),1>o&&l?n:(s.resolveWith(e,[u]),!1)},u=s.promise({elem:e,props:x.extend({},t),opts:x.extend(!0,{specialEasing:{}},n),originalProperties:t,originalOptions:n,startTime:Xn||Kn(),duration:n.duration,tweens:[],createTween:function(t,n){var r=x.Tween(e,u.opts,t,n,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(r),r},stop:function(t){var n=0,r=t?u.tweens.length:0;if(i)return this;for(i=!0;r>n;n++)u.tweens[n].run(1);return t?s.resolveWith(e,[u,t]):s.rejectWith(e,[u,t]),this}}),c=u.props;for(tr(c,u.opts.specialEasing);a>o;o++)if(r=Gn[o].call(u,e,c,u.opts))return r;return x.map(c,Zn,u),x.isFunction(u.opts.start)&&u.opts.start.call(e,u),x.fx.timer(x.extend(l,{elem:e,anim:u,queue:u.opts.queue})),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always)}function tr(e,t){var n,r,i,o,a;for(n in e)if(r=x.camelCase(n),i=t[r],o=e[n],x.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),a=x.cssHooks[r],a&&"expand"in a){o=a.expand(o),delete e[r];for(n in o)n in e||(e[n]=o[n],t[n]=i)}else t[r]=i}x.Animation=x.extend(er,{tweener:function(e,t){x.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");var n,r=0,i=e.length;for(;i>r;r++)n=e[r],Qn[n]=Qn[n]||[],Qn[n].unshift(t)},prefilter:function(e,t){t?Gn.unshift(e):Gn.push(e)}});function nr(e,t,n){var r,i,o,a,s,l,u=this,c={},p=e.style,f=e.nodeType&&nn(e),d=x._data(e,"fxshow");n.queue||(s=x._queueHooks(e,"fx"),null==s.unqueued&&(s.unqueued=0,l=s.empty.fire,s.empty.fire=function(){s.unqueued||l()}),s.unqueued++,u.always(function(){u.always(function(){s.unqueued--,x.queue(e,"fx").length||s.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],"inline"===x.css(e,"display")&&"none"===x.css(e,"float")&&(x.support.inlineBlockNeedsLayout&&"inline"!==ln(e.nodeName)?p.zoom=1:p.display="inline-block")),n.overflow&&(p.overflow="hidden",x.support.shrinkWrapBlocks||u.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}));for(r in t)if(i=t[r],Vn.exec(i)){if(delete t[r],o=o||"toggle"===i,i===(f?"hide":"show"))continue;c[r]=d&&d[r]||x.style(e,r)}if(!x.isEmptyObject(c)){d?"hidden"in d&&(f=d.hidden):d=x._data(e,"fxshow",{}),o&&(d.hidden=!f),f?x(e).show():u.done(function(){x(e).hide()}),u.done(function(){var t;x._removeData(e,"fxshow");for(t in c)x.style(e,t,c[t])});for(r in c)a=Zn(f?d[r]:0,r,u),r in d||(d[r]=a.start,f&&(a.end=a.start,a.start="width"===r||"height"===r?1:0))}}function rr(e,t,n,r,i){return new rr.prototype.init(e,t,n,r,i)}x.Tween=rr,rr.prototype={constructor:rr,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||"swing",this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(x.cssNumber[n]?"":"px")},cur:function(){var e=rr.propHooks[this.prop];return e&&e.get?e.get(this):rr.propHooks._default.get(this)},run:function(e){var t,n=rr.propHooks[this.prop];return this.pos=t=this.options.duration?x.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):rr.propHooks._default.set(this),this}},rr.prototype.init.prototype=rr.prototype,rr.propHooks={_default:{get:function(e){var t;return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=x.css(e.elem,e.prop,""),t&&"auto"!==t?t:0):e.elem[e.prop]},set:function(e){x.fx.step[e.prop]?x.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[x.cssProps[e.prop]]||x.cssHooks[e.prop])?x.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},rr.propHooks.scrollTop=rr.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},x.each(["toggle","show","hide"],function(e,t){var n=x.fn[t];x.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(ir(t,!0),e,r,i)}}),x.fn.extend({fadeTo:function(e,t,n,r){return this.filter(nn).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=x.isEmptyObject(e),o=x.speed(t,n,r),a=function(){var t=er(this,x.extend({},e),o);(i||x._data(this,"finish"))&&t.stop(!0)};return a.finish=a,i||o.queue===!1?this.each(a):this.queue(o.queue,a)},stop:function(e,n,r){var i=function(e){var t=e.stop;delete e.stop,t(r)};return"string"!=typeof e&&(r=n,n=e,e=t),n&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var t=!0,n=null!=e&&e+"queueHooks",o=x.timers,a=x._data(this);if(n)a[n]&&a[n].stop&&i(a[n]);else for(n in a)a[n]&&a[n].stop&&Jn.test(n)&&i(a[n]);for(n=o.length;n--;)o[n].elem!==this||null!=e&&o[n].queue!==e||(o[n].anim.stop(r),t=!1,o.splice(n,1));(t||!r)&&x.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,n=x._data(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=x.timers,a=r?r.length:0;for(n.finish=!0,x.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;a>t;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}});function ir(e,t){var n,r={height:e},i=0;for(t=t?1:0;4>i;i+=2-t)n=Zt[i],r["margin"+n]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}x.each({slideDown:ir("show"),slideUp:ir("hide"),slideToggle:ir("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){x.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),x.speed=function(e,t,n){var r=e&&"object"==typeof e?x.extend({},e):{complete:n||!n&&t||x.isFunction(e)&&e,duration:e,easing:n&&t||t&&!x.isFunction(t)&&t};return r.duration=x.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in x.fx.speeds?x.fx.speeds[r.duration]:x.fx.speeds._default,(null==r.queue||r.queue===!0)&&(r.queue="fx"),r.old=r.complete,r.complete=function(){x.isFunction(r.old)&&r.old.call(this),r.queue&&x.dequeue(this,r.queue)},r},x.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},x.timers=[],x.fx=rr.prototype.init,x.fx.tick=function(){var e,n=x.timers,r=0;for(Xn=x.now();n.length>r;r++)e=n[r],e()||n[r]!==e||n.splice(r--,1);n.length||x.fx.stop(),Xn=t},x.fx.timer=function(e){e()&&x.timers.push(e)&&x.fx.start()},x.fx.interval=13,x.fx.start=function(){Un||(Un=setInterval(x.fx.tick,x.fx.interval))},x.fx.stop=function(){clearInterval(Un),Un=null},x.fx.speeds={slow:600,fast:200,_default:400},x.fx.step={},x.expr&&x.expr.filters&&(x.expr.filters.animated=function(e){return x.grep(x.timers,function(t){return e===t.elem}).length}),x.fn.offset=function(e){if(arguments.length)return e===t?this:this.each(function(t){x.offset.setOffset(this,e,t)});var n,r,o={top:0,left:0},a=this[0],s=a&&a.ownerDocument;if(s)return n=s.documentElement,x.contains(n,a)?(typeof a.getBoundingClientRect!==i&&(o=a.getBoundingClientRect()),r=or(s),{top:o.top+(r.pageYOffset||n.scrollTop)-(n.clientTop||0),left:o.left+(r.pageXOffset||n.scrollLeft)-(n.clientLeft||0)}):o},x.offset={setOffset:function(e,t,n){var r=x.css(e,"position");"static"===r&&(e.style.position="relative");var i=x(e),o=i.offset(),a=x.css(e,"top"),s=x.css(e,"left"),l=("absolute"===r||"fixed"===r)&&x.inArray("auto",[a,s])>-1,u={},c={},p,f;l?(c=i.position(),p=c.top,f=c.left):(p=parseFloat(a)||0,f=parseFloat(s)||0),x.isFunction(t)&&(t=t.call(e,n,o)),null!=t.top&&(u.top=t.top-o.top+p),null!=t.left&&(u.left=t.left-o.left+f),"using"in t?t.using.call(e,u):i.css(u)}},x.fn.extend({position:function(){if(this[0]){var e,t,n={top:0,left:0},r=this[0];return"fixed"===x.css(r,"position")?t=r.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),x.nodeName(e[0],"html")||(n=e.offset()),n.top+=x.css(e[0],"borderTopWidth",!0),n.left+=x.css(e[0],"borderLeftWidth",!0)),{top:t.top-n.top-x.css(r,"marginTop",!0),left:t.left-n.left-x.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent||s;while(e&&!x.nodeName(e,"html")&&"static"===x.css(e,"position"))e=e.offsetParent;return e||s})}}),x.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,n){var r=/Y/.test(n);x.fn[e]=function(i){return x.access(this,function(e,i,o){var a=or(e);return o===t?a?n in a?a[n]:a.document.documentElement[i]:e[i]:(a?a.scrollTo(r?x(a).scrollLeft():o,r?o:x(a).scrollTop()):e[i]=o,t)},e,i,arguments.length,null)}});function or(e){return x.isWindow(e)?e:9===e.nodeType?e.defaultView||e.parentWindow:!1}x.each({Height:"height",Width:"width"},function(e,n){x.each({padding:"inner"+e,content:n,"":"outer"+e},function(r,i){x.fn[i]=function(i,o){var a=arguments.length&&(r||"boolean"!=typeof i),s=r||(i===!0||o===!0?"margin":"border");return x.access(this,function(n,r,i){var o;return x.isWindow(n)?n.document.documentElement["client"+e]:9===n.nodeType?(o=n.documentElement,Math.max(n.body["scroll"+e],o["scroll"+e],n.body["offset"+e],o["offset"+e],o["client"+e])):i===t?x.css(n,r,s):x.style(n,r,i,s)},n,a?i:t,a,null)}})}),x.fn.size=function(){return this.length},x.fn.andSelf=x.fn.addBack,"object"==typeof module&&module&&"object"==typeof module.exports?module.exports=x:(e.jQuery=e.$=x,"function"==typeof define&&define.amd&&define("jquery",[],function(){return x}))})(window);
|
js/reamaze/jquery.min.map
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
{"version":3,"file":"jquery.min.js","sources":["jquery.js"],"names":["window","undefined","readyList","rootjQuery","core_strundefined","location","document","docElem","documentElement","_jQuery","jQuery","_$","$","class2type","core_deletedIds","core_version","core_concat","concat","core_push","push","core_slice","slice","core_indexOf","indexOf","core_toString","toString","core_hasOwn","hasOwnProperty","core_trim","trim","selector","context","fn","init","core_pnum","source","core_rnotwhite","rtrim","rquickExpr","rsingleTag","rvalidchars","rvalidbraces","rvalidescape","rvalidtokens","rmsPrefix","rdashAlpha","fcamelCase","all","letter","toUpperCase","completed","event","addEventListener","type","readyState","detach","ready","removeEventListener","detachEvent","prototype","jquery","constructor","match","elem","this","charAt","length","exec","find","merge","parseHTML","nodeType","ownerDocument","test","isPlainObject","isFunction","attr","getElementById","parentNode","id","makeArray","toArray","call","get","num","pushStack","elems","ret","prevObject","each","callback","args","promise","done","apply","arguments","first","eq","last","i","len","j","map","end","sort","splice","extend","src","copyIsArray","copy","name","options","clone","target","deep","isArray","expando","Math","random","replace","noConflict","isReady","readyWait","holdReady","hold","wait","body","setTimeout","resolveWith","trigger","off","obj","Array","isWindow","isNumeric","isNaN","parseFloat","isFinite","String","key","e","support","ownLast","isEmptyObject","error","msg","Error","data","keepScripts","parsed","scripts","createElement","buildFragment","remove","childNodes","parseJSON","JSON","parse","Function","parseXML","xml","tmp","DOMParser","parseFromString","ActiveXObject","async","loadXML","getElementsByTagName","noop","globalEval","execScript","camelCase","string","nodeName","toLowerCase","value","isArraylike","text","arr","results","Object","inArray","max","second","l","grep","inv","retVal","arg","guid","proxy","access","chainable","emptyGet","raw","bulk","now","Date","getTime","swap","old","style","Deferred","attachEvent","top","frameElement","doScroll","doScrollCheck","split","cachedruns","Expr","getText","isXML","compile","outermostContext","sortInput","setDocument","documentIsHTML","rbuggyQSA","rbuggyMatches","matches","contains","preferredDoc","dirruns","classCache","createCache","tokenCache","compilerCache","hasDuplicate","sortOrder","a","b","strundefined","MAX_NEGATIVE","hasOwn","pop","push_native","booleans","whitespace","characterEncoding","identifier","attributes","pseudos","RegExp","rcomma","rcombinators","rsibling","rattributeQuotes","rpseudo","ridentifier","matchExpr","ID","CLASS","TAG","ATTR","PSEUDO","CHILD","bool","needsContext","rnative","rinputs","rheader","rescape","runescape","funescape","_","escaped","escapedWhitespace","high","fromCharCode","els","Sizzle","seed","m","groups","nid","newContext","newSelector","getElementsByClassName","qsa","tokenize","getAttribute","setAttribute","toSelector","join","querySelectorAll","qsaError","removeAttribute","select","keys","cache","cacheLength","shift","markFunction","assert","div","removeChild","addHandle","attrs","handler","attrHandle","siblingCheck","cur","diff","sourceIndex","nextSibling","createInputPseudo","createButtonPseudo","createPositionalPseudo","argument","matchIndexes","node","doc","parent","defaultView","className","appendChild","createComment","innerHTML","firstChild","getById","getElementsByName","filter","attrId","getAttributeNode","tag","input","matchesSelector","webkitMatchesSelector","mozMatchesSelector","oMatchesSelector","msMatchesSelector","disconnectedMatch","compareDocumentPosition","adown","bup","compare","sortDetached","aup","ap","bp","unshift","expr","elements","val","specified","uniqueSort","duplicates","detectDuplicates","sortStable","textContent","nodeValue","selectors","createPseudo","relative",">","dir"," ","+","~","preFilter","excess","unquoted","nodeNameSelector","pattern","operator","check","result","what","simple","forward","ofType","outerCache","nodeIndex","start","useCache","lastChild","pseudo","setFilters","idx","matched","not","matcher","unmatched","has","innerText","lang","elemLang","hash","root","focus","activeElement","hasFocus","href","tabIndex","enabled","disabled","checked","selected","selectedIndex","empty","header","button","even","odd","lt","gt","radio","checkbox","file","password","image","submit","reset","filters","parseOnly","tokens","soFar","preFilters","cached","addCombinator","combinator","base","checkNonElements","doneName","dirkey","elementMatcher","matchers","condense","newUnmatched","mapped","setMatcher","postFilter","postFinder","postSelector","temp","preMap","postMap","preexisting","multipleContexts","matcherIn","matcherOut","matcherFromTokens","checkContext","leadingRelative","implicitRelative","matchContext","matchAnyContext","matcherFromGroupMatchers","elementMatchers","setMatchers","matcherCachedRuns","bySet","byElement","superMatcher","expandContext","setMatched","matchedCount","outermost","contextBackup","dirrunsUnique","group","contexts","token","div1","defaultValue","unique","isXMLDoc","optionsCache","createOptions","object","flag","Callbacks","firing","memory","fired","firingLength","firingIndex","firingStart","list","stack","once","fire","stopOnFalse","self","disable","add","index","lock","locked","fireWith","func","tuples","state","always","deferred","fail","then","fns","newDefer","tuple","action","returned","resolve","reject","progress","notify","pipe","stateString","when","subordinate","resolveValues","remaining","updateFunc","values","progressValues","notifyWith","progressContexts","resolveContexts","fragment","opt","eventName","isSupported","cssText","getSetAttribute","leadingWhitespace","tbody","htmlSerialize","hrefNormalized","opacity","cssFloat","checkOn","optSelected","enctype","html5Clone","cloneNode","outerHTML","inlineBlockNeedsLayout","shrinkWrapBlocks","pixelPosition","deleteExpando","noCloneEvent","reliableMarginRight","boxSizingReliable","noCloneChecked","optDisabled","radioValue","createDocumentFragment","appendChecked","checkClone","click","change","focusin","backgroundClip","clearCloneStyle","container","marginDiv","tds","divReset","offsetHeight","display","reliableHiddenOffsets","zoom","boxSizing","offsetWidth","getComputedStyle","width","marginRight","rbrace","rmultiDash","internalData","pvt","acceptData","thisCache","internalKey","isNode","toJSON","internalRemoveData","isEmptyDataObject","cleanData","noData","applet","embed","hasData","removeData","_data","_removeData","dataAttr","queue","dequeue","startLength","hooks","_queueHooks","next","stop","setter","delay","time","fx","speeds","timeout","clearTimeout","clearQueue","count","defer","nodeHook","boolHook","rclass","rreturn","rfocusable","rclickable","ruseDefault","getSetInput","removeAttr","prop","removeProp","propFix","addClass","classes","clazz","proceed","removeClass","toggleClass","stateVal","classNames","hasClass","valHooks","set","option","one","optionSet","nType","attrHooks","propName","attrNames","for","class","notxml","propHooks","tabindex","parseInt","getter","setAttributeNode","createAttribute","coords","contenteditable","rformElems","rkeyEvent","rmouseEvent","rfocusMorph","rtypenamespace","returnTrue","returnFalse","safeActiveElement","err","global","types","events","t","handleObjIn","special","eventHandle","handleObj","handlers","namespaces","origType","elemData","handle","triggered","dispatch","delegateType","bindType","namespace","delegateCount","setup","mappedTypes","origCount","teardown","removeEvent","onlyHandlers","ontype","bubbleType","eventPath","Event","isTrigger","namespace_re","noBubble","parentWindow","isPropagationStopped","preventDefault","isDefaultPrevented","_default","fix","handlerQueue","delegateTarget","preDispatch","currentTarget","isImmediatePropagationStopped","stopPropagation","postDispatch","sel","originalEvent","fixHook","fixHooks","mouseHooks","keyHooks","props","srcElement","metaKey","original","which","charCode","keyCode","eventDoc","fromElement","pageX","clientX","scrollLeft","clientLeft","pageY","clientY","scrollTop","clientTop","relatedTarget","toElement","load","blur","beforeunload","returnValue","simulate","bubble","isSimulated","defaultPrevented","getPreventDefault","timeStamp","cancelBubble","stopImmediatePropagation","mouseenter","mouseleave","orig","related","submitBubbles","form","_submit_bubble","changeBubbles","propertyName","_just_changed","focusinBubbles","attaches","on","origFn","triggerHandler","isSimple","rparentsprev","rneedsContext","guaranteedUnique","children","contents","prev","targets","winnow","is","closest","pos","prevAll","addBack","sibling","parents","parentsUntil","until","nextAll","nextUntil","prevUntil","siblings","contentDocument","contentWindow","reverse","n","r","qualifier","createSafeFragment","nodeNames","safeFrag","rinlinejQuery","rnoshimcache","rleadingWhitespace","rxhtmlTag","rtagName","rtbody","rhtml","rnoInnerhtml","manipulation_rcheckableType","rchecked","rscriptType","rscriptTypeMasked","rcleanScript","wrapMap","legend","area","param","thead","tr","col","td","safeFragment","fragmentDiv","optgroup","tfoot","colgroup","caption","th","append","createTextNode","domManip","manipulationTarget","prepend","insertBefore","before","after","keepData","getAll","setGlobalEval","dataAndEvents","deepDataAndEvents","html","replaceWith","allowIntersection","hasScripts","iNoClone","disableScript","restoreScript","_evalUrl","content","refElements","cloneCopyEvent","dest","oldData","curData","fixCloneNodeIssues","defaultChecked","defaultSelected","appendTo","prependTo","insertAfter","replaceAll","insert","found","fixDefaultChecked","destElements","srcElements","inPage","selection","wrap","safe","nodes","url","ajax","dataType","throws","wrapAll","wrapInner","unwrap","iframe","getStyles","curCSS","ralpha","ropacity","rposition","rdisplayswap","rmargin","rnumsplit","rnumnonpx","rrelNum","elemdisplay","BODY","cssShow","position","visibility","cssNormalTransform","letterSpacing","fontWeight","cssExpand","cssPrefixes","vendorPropName","capName","origName","isHidden","el","css","showHide","show","hidden","css_defaultDisplay","styles","hide","toggle","cssHooks","computed","cssNumber","columnCount","fillOpacity","lineHeight","order","orphans","widows","zIndex","cssProps","float","extra","_computed","minWidth","maxWidth","getPropertyValue","currentStyle","left","rs","rsLeft","runtimeStyle","pixelLeft","setPositiveNumber","subtract","augmentWidthOrHeight","isBorderBox","getWidthOrHeight","valueIsBorderBox","actualDisplay","write","close","$1","visible","margin","padding","border","prefix","suffix","expand","expanded","parts","r20","rbracket","rCRLF","rsubmitterTypes","rsubmittable","serialize","serializeArray","traditional","s","encodeURIComponent","ajaxSettings","buildParams","v","hover","fnOver","fnOut","bind","unbind","delegate","undelegate","ajaxLocParts","ajaxLocation","ajax_nonce","ajax_rquery","rhash","rts","rheaders","rlocalProtocol","rnoContent","rprotocol","rurl","_load","prefilters","transports","allTypes","addToPrefiltersOrTransports","structure","dataTypeExpression","dataTypes","inspectPrefiltersOrTransports","originalOptions","jqXHR","inspected","seekingTransport","inspect","prefilterOrFactory","dataTypeOrTransport","ajaxExtend","flatOptions","params","response","responseText","complete","status","active","lastModified","etag","isLocal","processData","contentType","accepts","*","json","responseFields","converters","* text","text html","text json","text xml","ajaxSetup","settings","ajaxPrefilter","ajaxTransport","cacheURL","responseHeadersString","timeoutTimer","fireGlobals","transport","responseHeaders","callbackContext","globalEventContext","completeDeferred","statusCode","requestHeaders","requestHeadersNames","strAbort","getResponseHeader","getAllResponseHeaders","setRequestHeader","lname","overrideMimeType","mimeType","code","abort","statusText","finalText","success","method","crossDomain","hasContent","ifModified","headers","beforeSend","send","nativeStatusText","responses","isSuccess","modified","ajaxHandleResponses","ajaxConvert","rejectWith","getJSON","getScript","firstDataType","ct","finalDataType","conv2","current","conv","dataFilter","script","text script","head","scriptCharset","charset","onload","onreadystatechange","isAbort","oldCallbacks","rjsonp","jsonp","jsonpCallback","originalSettings","callbackName","overwritten","responseContainer","jsonProp","xhrCallbacks","xhrSupported","xhrId","xhrOnUnloadAbort","createStandardXHR","XMLHttpRequest","createActiveXHR","xhr","cors","username","open","xhrFields","firefoxAccessException","unload","fxNow","timerId","rfxtypes","rfxnum","rrun","animationPrefilters","defaultPrefilter","tweeners","tween","createTween","unit","scale","maxIterations","createFxNow","animation","collection","Animation","properties","stopped","tick","currentTime","startTime","duration","percent","tweens","run","opts","specialEasing","originalProperties","Tween","easing","gotoEnd","propFilter","timer","anim","tweener","prefilter","oldfire","dataShow","unqueued","overflow","overflowX","overflowY","eased","step","cssFn","speed","animate","genFx","fadeTo","to","optall","doAnimation","finish","stopQueue","timers","includeWidth","height","slideDown","slideUp","slideToggle","fadeIn","fadeOut","fadeToggle","linear","p","swing","cos","PI","interval","setInterval","clearInterval","slow","fast","animated","offset","setOffset","win","box","getBoundingClientRect","getWindow","pageYOffset","pageXOffset","curElem","curOffset","curCSSTop","curCSSLeft","calculatePosition","curPosition","curTop","curLeft","using","offsetParent","parentOffset","scrollTo","Height","Width","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AW+L,EAAW,WAQvDtL,EAAOsB,GAAGooC,KAAO,WAChB,MAAOpmC,MAAKE,QAGbxD,EAAOsB,GAAGqoC,QAAU3pC,EAAOsB,GAAG6tB,QAGP,gBAAXya,SAAuBA,QAAoC,gBAAnBA,QAAOC,QAK1DD,OAAOC,QAAU7pC,GAGjBV,EAAOU,OAASV,EAAOY,EAAIF,EASJ,kBAAX8pC,SAAyBA,OAAOC,KAC3CD,OAAQ,YAAc,WAAc,MAAO9pC,QAIzCV"}
|
js/reamaze/jquery.noConflict.js
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
$jq = jQuery.noConflict();
|
package.xml
ADDED
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<package>
|
3 |
+
<name>Reamaze</name>
|
4 |
+
<version>1.0.0</version>
|
5 |
+
<stability>stable</stability>
|
6 |
+
<license uri="http://www.apache.org/licenses/LICENSE-2.0.html">Apache License v2.0</license>
|
7 |
+
<channel>community</channel>
|
8 |
+
<extends/>
|
9 |
+
<summary>Lightweight, Lightspeed Help Desk.
|
10 |
+
Email, Social, Branded, Integrated.
|
11 |
+
Everything you need to impress.</summary>
|
12 |
+
<description>Thousands of businesses, from agencies to enterprises, use Reamaze to deliver awesome, personable customer support experiences.
|
13 |
+
Businesses who love their customers love us.
|
14 |
+

|
15 |
+
Reamaze helps small businesses and growing startups provide better customer support experiences with intuitive conversation management, simplified user interface, and a powerful set of social and integrated tools.
|
16 |
+

|
17 |
+
== Response Templates, Collision Detection and Tagging:
|
18 |
+
Help your team respond faster using templates shared by your team. Avoid sending colliding responses to the same thread. Even through email.Use tags to easily find and categorize your conversations.
|
19 |
+

|
20 |
+
== Workflows:
|
21 |
+
Create customizable macros that can be used to automate common actions. Optionally, workflows can be triggered automatically under certain conditions.
|
22 |
+

|
23 |
+
== Knowledge Base and Forums:
|
24 |
+
Let your customers search for their own answers in your public knowledge base.
|
25 |
+
In addition, use Reamaze to host community forums for your brand to gather feedback.
|
26 |
+

|
27 |
+
== Branded
|
28 |
+
Manage multiple support sites for multiple brands in one Reamaze account.
|
29 |
+

|
30 |
+
== Integrated On Your Site:
|
31 |
+
Embed Reamaze's Support Module on your site to prompt your users to ask questions right on your website or in your application.
|
32 |
+
Add custom identifiable attributes to customer profiles and easily manage their value to your business.
|
33 |
+
Reamaze will attach a custom data block with relevant customer information to the conversation. More context means better support.
|
34 |
+

|
35 |
+
== At a Glance Reporting
|
36 |
+
Stay on top of your conversation volume and response times with built in reporting features.
|
37 |
+

|
38 |
+
== Mobile Ready:
|
39 |
+
Reamaze is mobile ready on any device right through the browser. No apps to download.
|
40 |
+

|
41 |
+
Try It Free for 14 Days (No credit card required)
|
42 |
+

|
43 |
+
http://www.reamaze.com
|
44 |
+
</description>
|
45 |
+
<notes>Initial Release</notes>
|
46 |
+
<authors><author><name>Reamaze</name><user>reamaze</user><email>support@reamaze.com</email></author></authors>
|
47 |
+
<date>2014-01-27</date>
|
48 |
+
<time>02:56:31</time>
|
49 |
+
<contents><target name="magecommunity"><dir name="Reamaze"><dir name="Reamaze"><dir name="Block"><dir name="Adminhtml"><dir name="Customer"><dir name="Edit"><dir name="Tab"><file name="Conversations.php" hash="c84f1e6bfb2f8058cbce35d72c575de3"/></dir></dir></dir><file name="Main.php" hash="e19f02965be7f371d80e5ac260c8ebe1"/><dir name="System"><dir name="Config"><file name="HelpMe.php" hash="2ecdd68bc5936e193057d2695756b11f"/><file name="RunSetupButton.php" hash="be7d7dc223834a954c237cf659c574e7"/></dir></dir></dir><file name="Js.php" hash="07b7d560316df9f6e62804b9ffd5d7e4"/></dir><dir name="Helper"><file name="Data.php" hash="ea232b7ef91ab5558fcfdd31e8875c3d"/></dir><dir name="Model"><file name="AdminObserver.php" hash="c83b2c0e2947784e7bf5bf096d587e98"/><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Source"><file name="DashboardCharts.php" hash="0223cfbf60aa139b8811e2de9be547ee"/><file name="DashboardConversations.php" hash="41199f1c4ebbe9ae7394dcab3ed9c1ac"/></dir></dir></dir></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="MainController.php" hash="48fefc3c8f7d054c535cef92f52cb036"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="47f4f64a53c60fc1d1d3a91b9782c32c"/><file name="config.xml" hash="3f1323217fbe6061ef9a0cb68df17d41"/><file name="system.xml" hash="3dda4fe1da9ceb3fe64021c6a0405789"/></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="reamaze_reamaze.xml" hash="eefb4693281ba659039c9270dafcd682"/></dir><dir name="template"><dir name="reamaze"><dir name="reamaze"><file name="adminhtml_customer_edit_tab_conversations.phtml" hash="50749c251ffec094413931633168d89e"/><file name="adminhtml_dashboard_chart.phtml" hash="ff9c7361b1e41c1f667f2729ed087b74"/><file name="adminhtml_dashboard_conversations.phtml" hash="5b5c1a7b97864e041739b7501f103b6a"/><file name="dashboard.phtml" hash="9ff6e3d911b9991d908828f2796cf566"/><file name="jquery.phtml" hash="b657c2b6846cb341066d6f1233a4d29d"/><file name="setup.phtml" hash="65897e5bc78389b2db68024f94978d33"/><dir name="system"><dir name="config"><file name="helpme.phtml" hash="4052236e81d4330d610fb77946ecff3d"/></dir></dir></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="reamaze_reamaze.xml" hash="b7d02e2d040e5538aa28121525fee776"/></dir><dir name="template"><dir name="reamaze"><dir name="reamaze"><file name="js.phtml" hash="8cb40a99ad8f233b0c89340336a8499a"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Reamaze_Reamaze.xml" hash="642f93ee26c6e304e46c88be89625f7b"/></dir></target><target name="mageweb"><dir name="js"><dir name="reamaze"><file name="jquery.ba-postmessage.js" hash="c9817980bd783037351b5416882e97c6"/><file name="jquery.deparam.js" hash="a236e89a0310e5c3579bc7bf51eff93c"/><file name="jquery.migrate.js" hash="03acd09da7a9775916e244c240467ac1"/><file name="jquery.min.js" hash="a1fe315f64e4b8c36f9c4e42b5a66dca"/><file name="jquery.min.map" hash="0bec84859c7b4d4907f51b748b0a5012"/><file name="jquery.noConflict.js" hash="7e1379465d667c5605e62ce1abf29a31"/></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="reamaze"><file name="dashboard.css" hash="72177b032a3a5b429ce6cb5972ce4ec8"/></dir></dir></dir></dir></target></contents>
|
50 |
+
<compatible/>
|
51 |
+
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
52 |
+
</package>
|
skin/adminhtml/default/default/reamaze/dashboard.css
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
1 |
+
.middle
|
2 |
+
{
|
3 |
+
padding: 0;
|
4 |
+
}
|