fanzhen 1209
This commit is contained in:
28
src/assets/js/createObjectUrl.js
Normal file
28
src/assets/js/createObjectUrl.js
Normal file
@@ -0,0 +1,28 @@
|
||||
(function () {
|
||||
var _createObjectURL = window.URL.createObjectURL
|
||||
Object.defineProperty(window.URL, 'createObjectURL', {
|
||||
set: function (value) {
|
||||
console.trace('set createObjectURL')
|
||||
_createObjectURL = value
|
||||
},
|
||||
get: function () {
|
||||
console.trace('get createObjectURL')
|
||||
return _createObjectURL
|
||||
}
|
||||
})
|
||||
})()
|
||||
// (function () {
|
||||
// var _URL = window.URL
|
||||
// Object.defineProperty(window, 'URL', {
|
||||
// set: function (value) {
|
||||
// console.trace('set URL')
|
||||
// console.log(value)
|
||||
// _URL = value
|
||||
// },
|
||||
// get: function (value) {
|
||||
// console.trace('get URL')
|
||||
// console.log(value)
|
||||
// return _URL
|
||||
// }
|
||||
// })
|
||||
// })()
|
||||
120
src/assets/js/verifyMathematicalExpression.js
Normal file
120
src/assets/js/verifyMathematicalExpression.js
Normal file
@@ -0,0 +1,120 @@
|
||||
/* eslint-disable */
|
||||
const fn = (string, obj) => {
|
||||
console.log(string)
|
||||
console.log(obj)
|
||||
|
||||
// 剔除空白符
|
||||
string = string.replace(/\s/g, '')
|
||||
|
||||
// 错误情况,空字符串
|
||||
if (string === '') {
|
||||
console.log('error:空字符串')
|
||||
return false;
|
||||
}
|
||||
if (/^[\x\÷\+\-\*\/]/.test(string)) {
|
||||
// console.error(& amp; quot; 运算符开头 & amp; quot;);
|
||||
console.log('error:运算符开头')
|
||||
return false
|
||||
}
|
||||
|
||||
// 错误情况,运算符结尾
|
||||
if (/[\x\÷\+\-\*\/]$/.test(string)) {
|
||||
// console.error(& amp; quot; 运算符结尾 & amp; quot;);
|
||||
console.log('error:运算符结尾')
|
||||
return false
|
||||
}
|
||||
|
||||
// 错误情况,(后面是运算符或者)
|
||||
if (/\([\x\÷\+\-\*\/]/.test(string)) {
|
||||
// console.error(& amp; quot; (后面是运算符或者) & amp; quot;);
|
||||
console.log('error:后面是运算符或者')
|
||||
return false
|
||||
}
|
||||
// 错误情况,运算符连续
|
||||
if (/[\x\÷\+\-\*\/]{2,}/.test(string)) {
|
||||
console.log('error:运算符连续')
|
||||
return false
|
||||
}
|
||||
|
||||
// 空括号
|
||||
if (/\(\)/.test(string)) {
|
||||
console.log('error:空括号')
|
||||
return false
|
||||
}
|
||||
|
||||
// 错误情况,括号不配对
|
||||
var stack = []
|
||||
for (var i = 0, item; i < string.length; i++) {
|
||||
item = string.charAt(i)
|
||||
if (item === '(') {
|
||||
stack.push('(')
|
||||
} else if (item === ')') {
|
||||
if (stack.length > 0) {
|
||||
stack.pop()
|
||||
} else {
|
||||
console.log('error:括号不配对')
|
||||
return false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (stack.length !== 0) {
|
||||
return false
|
||||
}
|
||||
|
||||
// 错误情况,(后面是运算符
|
||||
if (/\([\x\÷\+\-\*\/]/.test(string)) {
|
||||
console.log('error:(后面是运算符')
|
||||
return false
|
||||
}
|
||||
|
||||
// 错误情况,)前面是运算符
|
||||
if (/[\x\÷\+\-\*\/]\)/.test(string)) {
|
||||
console.log('error:)前面是运算符')
|
||||
return false
|
||||
}
|
||||
// 错误情况,(前面不是运算符
|
||||
if(/[^\+\-\*\/]\(/.test(string)){
|
||||
console.log('error:(前面不是运算符')
|
||||
return false;
|
||||
}
|
||||
|
||||
// 错误情况,)后面不是运算符
|
||||
if(/\)[^\+\-\*\/]/.test(string)){
|
||||
console.log('error:)后面不是运算符')
|
||||
return false;
|
||||
}
|
||||
|
||||
// 错误情况,变量没有来自“待选公式变量”
|
||||
var tmpStr = string.replace(/[\(\)\x\÷\+\-\*\/]{1,}/g, '`')
|
||||
var array = tmpStr.split(',')
|
||||
for (let i = 0, item; i < array.length; i++) {
|
||||
item = array[i]
|
||||
if (/[A-Z]/i.test(item) && typeof (obj[item]) === 'undefined') {
|
||||
console.log('error:变量没有来自“待选公式变量”')
|
||||
return false
|
||||
}
|
||||
}
|
||||
let stringarr = string.split(',')
|
||||
let objarr = Object.keys(obj)
|
||||
for (let index = 0; index < stringarr.length; index++) {
|
||||
if (objarr.indexOf(stringarr[index]) > -1) {
|
||||
if (stringarr[index + 1] === undefined) {
|
||||
|
||||
} else if (
|
||||
stringarr[index + 1] !== '+' &&
|
||||
stringarr[index + 1] !== '.' &&
|
||||
stringarr[index + 1] !== '-' &&
|
||||
stringarr[index + 1] !== 'x' &&
|
||||
stringarr[index + 1] !== '÷' &&
|
||||
stringarr[index + 1] !== '(' &&
|
||||
stringarr[index + 1] !== ')') {
|
||||
console.log('error:变量没有来自“待选公式变量”')
|
||||
return false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return true
|
||||
}
|
||||
export default fn
|
||||
@@ -436,7 +436,29 @@ export default {
|
||||
if (val) {
|
||||
// 初始化公共数据
|
||||
// console.log(this.objCompBefore, 'this.objCompBefore')
|
||||
|
||||
if (JSON.parse(localStorage.getItem('classFiyData')) && JSON.parse(localStorage.getItem('classFiyData')).find(item => item.id === this.defaultDataRight.id)) {
|
||||
this.transBefore = {}
|
||||
this.transBefore.tableExplain = JSON.parse(localStorage.getItem('classFiyData')).find(item => item.id === this.defaultDataRight.id).data.tableExplain
|
||||
this.transBefore.timeArr = JSON.parse(localStorage.getItem('classFiyData')).find(item => item.id === this.defaultDataRight.id).data.timeArr.map((item, index) => { return item.toString() })
|
||||
this.transBefore.termsName = JSON.parse(localStorage.getItem('classFiyData')).find(item => item.id === this.defaultDataRight.id).data.termsName
|
||||
this.transBefore.termsExplain = JSON.parse(localStorage.getItem('classFiyData')).find(item => item.id === this.defaultDataRight.id).data.termsExplain
|
||||
this.transBefore.areaName = JSON.parse(localStorage.getItem('classFiyData')).find(item => item.id === this.defaultDataRight.id).data.areaName
|
||||
this.transBefore.transBeforeTermsData = JSON.parse(localStorage.getItem('classFiyData')).find(item => item.id === this.defaultDataRight.id).data.transBeforeTermsData
|
||||
this.transBefore.transBeforeAreaData = JSON.parse(localStorage.getItem('classFiyData')).find(item => item.id === this.defaultDataRight.id).data.transBeforeAreaData
|
||||
console.log(this.transBefore, '000')
|
||||
this.$store.state.transdtr = true
|
||||
// 全局总数据
|
||||
this.$store.state.transBefore = this.transBefore
|
||||
// 全局永久不变数据
|
||||
this.$store.state.noChangeData = JSON.parse(JSON.stringify(this.transBefore))
|
||||
} else {
|
||||
console.log(this.defaultDataRight, '获取左侧选中数据555')
|
||||
console.log(this.$store.state.selectData, 'this.$store.state.selectData')
|
||||
console.log(this.$store.state.selectfilter, 'this.$store.state.selectfilter')
|
||||
this.$nextTick(() => {
|
||||
// this.getDatas()
|
||||
})
|
||||
}
|
||||
}
|
||||
},
|
||||
immediate: true,
|
||||
@@ -445,6 +467,7 @@ export default {
|
||||
// 监听下拉状态变化
|
||||
stateTells (val) {
|
||||
if (val) {
|
||||
console.log(val, 'jjjjjj')
|
||||
if (JSON.parse(localStorage.getItem('classFiyData')) && JSON.parse(localStorage.getItem('classFiyData')).find(item => item.id === this.defaultDataRight.id)) {
|
||||
this.transBefore = {}
|
||||
this.transBefore.tableExplain = JSON.parse(localStorage.getItem('classFiyData')).find(item => item.id === this.defaultDataRight.id).data.tableExplain
|
||||
@@ -455,7 +478,7 @@ export default {
|
||||
this.transBefore.transBeforeTermsData = JSON.parse(localStorage.getItem('classFiyData')).find(item => item.id === this.defaultDataRight.id).data.transBeforeTermsData
|
||||
this.transBefore.transBeforeAreaData = JSON.parse(localStorage.getItem('classFiyData')).find(item => item.id === this.defaultDataRight.id).data.transBeforeAreaData
|
||||
console.log(this.transBefore, '000')
|
||||
this.$store.state.transdtr = true
|
||||
// this.$store.state.transdtr = true
|
||||
// 全局总数据
|
||||
this.$store.state.transBefore = this.transBefore
|
||||
// 全局永久不变数据
|
||||
@@ -739,6 +762,7 @@ export default {
|
||||
if (this.transBefore) {
|
||||
this.objCompBefore.initAllData()
|
||||
}
|
||||
console.log(this.$store.state.selectData, '执行')
|
||||
this.$axios({
|
||||
method: 'GET',
|
||||
url: 'data/data/detail',
|
||||
@@ -750,34 +774,81 @@ export default {
|
||||
quota: this.downLaSelect.label, // 选中的指标
|
||||
cate: this.selectState, // 1筛选指标 2筛选地区
|
||||
f: this.$store.state.selectfilter, // year=>年度分类,monthly=>月度分类,quarter=>季度分类
|
||||
// filters: this.$store.state.selectfilter, // year=>年度分类,monthly=>月度分类,quarter=>季度分类
|
||||
data: this.$store.state.selectData // 时间
|
||||
}
|
||||
}).then(res => {
|
||||
console.log(res, '获取数据展示数据')
|
||||
// 请求接口完成 请求成功
|
||||
if (res.data.code === 200) {
|
||||
// if (res.data.data.areaName.length !== 0) {
|
||||
this.transBefore = {}
|
||||
this.transBefore.tableExplain = res.data.data.tableExplain
|
||||
this.transBefore.timeArr = res.data.data.timeArr.map((item, index) => { return item.toString() })
|
||||
this.transBefore.termsName = res.data.data.termsName
|
||||
this.transBefore.termsExplain = res.data.data.termsExplain
|
||||
this.transBefore.areaName = res.data.data.areaName
|
||||
this.transBefore.transBeforeTermsData = res.data.data.transBeforeTermsData
|
||||
this.transBefore.transBeforeAreaData = res.data.data.transBeforeAreaData
|
||||
console.log(this.transBefore, '000')
|
||||
this.$store.state.transdtr = true
|
||||
// 全局总数据
|
||||
this.$store.state.transBefore = this.transBefore
|
||||
// 全局永久不变数据
|
||||
this.$store.state.noChangeData = JSON.parse(JSON.stringify(this.transBefore))
|
||||
// 告诉父组件我完成任务重置状态
|
||||
this.$emit('prentsState', false)
|
||||
// }
|
||||
if (res.data.data.areaName.length !== 0) {
|
||||
if (this.downLaSelect.area === '' || this.downLaSelect.label === '') {
|
||||
console.log(this.downLaSelect.area, 'this.downLaSelect.area')
|
||||
let brrtf = {}
|
||||
// this.transBefore = {}
|
||||
brrtf.tableExplain = res.data.data.tableExplain
|
||||
brrtf.timeArr = res.data.data.timeArr.map((item, index) => { return item.toString() })
|
||||
brrtf.termsName = res.data.data.termsName
|
||||
brrtf.termsExplain = res.data.data.termsExplain
|
||||
brrtf.areaName = res.data.data.areaName
|
||||
if (this.$route.query.type === 'area') {
|
||||
console.log('走这里')
|
||||
brrtf.transBeforeAreaData = res.data.data.transBeforeAreaData[0]
|
||||
brrtf.transBeforeTermsData = res.data.data.transBeforeTermsData
|
||||
} else {
|
||||
brrtf.transBeforeAreaData = res.data.data.transBeforeAreaData
|
||||
brrtf.transBeforeTermsData = res.data.data.transBeforeTermsData[0]
|
||||
}
|
||||
console.log(brrtf, 'brrtf')
|
||||
this.transBefore = brrtf
|
||||
console.log(this.transBefore, '000')
|
||||
this.$store.state.transdtr = true
|
||||
// 全局总数据
|
||||
this.$store.state.transBefore = this.transBefore
|
||||
// 全局永久不变数据
|
||||
this.$store.state.noChangeData = JSON.parse(JSON.stringify(this.transBefore))
|
||||
// 告诉父组件我完成任务重置状态
|
||||
this.$emit('prentsState', false)
|
||||
console.log(this.$store.state.noChangeData, 'this.$store.state.noChangeDatathis.$store.state.noChangeDatathis.$store.state.noChangeData')
|
||||
} else {
|
||||
this.transBefore = {}
|
||||
this.transBefore.tableExplain = res.data.data.tableExplain
|
||||
this.transBefore.timeArr = res.data.data.timeArr.map((item, index) => { return item.toString() })
|
||||
this.transBefore.termsName = res.data.data.termsName
|
||||
this.transBefore.termsExplain = res.data.data.termsExplain
|
||||
this.transBefore.areaName = res.data.data.areaName
|
||||
this.transBefore.transBeforeTermsData = res.data.data.transBeforeTermsData
|
||||
this.transBefore.transBeforeAreaData = res.data.data.transBeforeAreaData
|
||||
console.log(this.transBefore, '000')
|
||||
this.$store.state.transdtr = true
|
||||
// 全局总数据
|
||||
this.$store.state.transBefore = this.transBefore
|
||||
// 全局永久不变数据
|
||||
this.$store.state.noChangeData = JSON.parse(JSON.stringify(this.transBefore))
|
||||
|
||||
// 告诉父组件我完成任务重置状态
|
||||
this.$emit('prentsState', false)
|
||||
}
|
||||
} else {
|
||||
this.transBefore = {}
|
||||
this.transBefore.tableExplain = res.data.data.tableExplain
|
||||
this.transBefore.timeArr = res.data.data.timeArr.map((item, index) => { return item.toString() })
|
||||
this.transBefore.termsName = res.data.data.termsName
|
||||
this.transBefore.termsExplain = res.data.data.termsExplain
|
||||
this.transBefore.areaName = res.data.data.areaName
|
||||
this.transBefore.transBeforeTermsData = res.data.data.transBeforeTermsData
|
||||
this.transBefore.transBeforeAreaData = res.data.data.transBeforeAreaData
|
||||
console.log(this.transBefore, '000')
|
||||
this.$store.state.transdtr = true
|
||||
// 全局总数据
|
||||
this.$store.state.transBefore = this.transBefore
|
||||
// 全局永久不变数据
|
||||
this.$store.state.noChangeData = JSON.parse(JSON.stringify(this.transBefore))
|
||||
// 告诉父组件我完成任务重置状态
|
||||
this.$emit('prentsState', false)
|
||||
}
|
||||
} else {
|
||||
this.transBefore = null
|
||||
this.$store.state.transdtr = null
|
||||
// this.$store.state.transdtr = null
|
||||
// 全局总数据
|
||||
this.$store.state.transBefore = null
|
||||
this.$store.state.noChangeData = null
|
||||
@@ -793,12 +864,24 @@ export default {
|
||||
return (ind) => {
|
||||
let styStatic = false
|
||||
if (this.transState) {
|
||||
if (ind > (this.transBefore.transBeforeTermsData[0].length)) {
|
||||
styStatic = true
|
||||
if (this.transBefore.transBeforeTermsData[0] !== undefined) {
|
||||
if (ind > (this.transBefore.transBeforeTermsData[0].length)) {
|
||||
styStatic = true
|
||||
}
|
||||
} else {
|
||||
if (ind > (this.transBefore.transBeforeAreaData[0].length)) {
|
||||
styStatic = true
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (ind > (this.transBefore.transBeforeTermsData.length)) {
|
||||
styStatic = true
|
||||
if (this.transBefore.transBeforeTermsData[0] !== undefined) {
|
||||
if (ind > (this.transBefore.transBeforeTermsData.length)) {
|
||||
styStatic = true
|
||||
}
|
||||
} else {
|
||||
if (ind > (this.transBefore.transBeforeAreaData.length)) {
|
||||
styStatic = true
|
||||
}
|
||||
}
|
||||
}
|
||||
return styStatic
|
||||
@@ -809,12 +892,24 @@ export default {
|
||||
return (ind) => {
|
||||
let styStatic = false
|
||||
if (this.transState) {
|
||||
if (ind > (this.transBefore.transBeforeTermsData.length - 1)) {
|
||||
styStatic = true
|
||||
if (this.transBefore.transBeforeTermsData[0] !== undefined) {
|
||||
if (ind > (this.transBefore.transBeforeTermsData.length - 1)) {
|
||||
styStatic = true
|
||||
}
|
||||
} else {
|
||||
if (ind > (this.transBefore.transBeforeAreaData.length - 1)) {
|
||||
styStatic = true
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (ind > (this.transBefore.transBeforeTermsData[0].length - 1)) {
|
||||
styStatic = true
|
||||
if (this.transBefore.transBeforeTermsData[0] !== undefined) {
|
||||
if (ind > (this.transBefore.transBeforeTermsData[0].length - 1)) {
|
||||
styStatic = true
|
||||
}
|
||||
} else {
|
||||
if (ind > (this.transBefore.transBeforeAreaData[0].length - 1)) {
|
||||
styStatic = true
|
||||
}
|
||||
}
|
||||
}
|
||||
return styStatic
|
||||
|
||||
@@ -137,7 +137,7 @@ export default {
|
||||
if (this.$route.query.type !== 'area') {
|
||||
this.searchSelect(this.$route.query.type)
|
||||
} else {
|
||||
|
||||
this.searchSelect(val.f)
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -168,7 +168,7 @@ export default {
|
||||
}
|
||||
// 将值传给父组件
|
||||
this.$emit('comTime', resu[2].name)
|
||||
this.showInputStu = !this.showInputStu
|
||||
// this.showInputStu = !this.showInputStu
|
||||
},
|
||||
changesInputStu () {
|
||||
console.log(12569)
|
||||
@@ -180,8 +180,8 @@ export default {
|
||||
this.isHideProp = false
|
||||
},
|
||||
// 查询下拉筛选条件
|
||||
async searchSelect (type) {
|
||||
await this.$axios({
|
||||
searchSelect (type) {
|
||||
this.$axios({
|
||||
method: 'GET',
|
||||
url: 'data/data/quick',
|
||||
params: {
|
||||
@@ -191,18 +191,16 @@ export default {
|
||||
console.log(res, '下拉筛选条件')
|
||||
// 请求接口完成 请求成功
|
||||
if (res.data.code === 200) {
|
||||
if (this.$route.query.type !== 'area') {
|
||||
// console.log(Object.keys(res.data.data.list))
|
||||
// console.log(Object.values(res.data.data.list))
|
||||
this.cityDataTime = Object.keys(res.data.data.list).map((item, index) => {
|
||||
return { 'id': '110000', 'name': Object.values(res.data.data.list)[index], 'parentId': '100000', 'shortName': '北京', 'cityCode': '', indexID: item }
|
||||
})
|
||||
// 默认选中第一个
|
||||
this.$store.state.selectData = this.cityDataTime[0].indexID
|
||||
console.log(this.$store.state.selectData, 'this.cityDataTime[0].indexID')
|
||||
// 告诉父组件我获取到了
|
||||
this.$emit('stateTell', true)
|
||||
}
|
||||
// console.log(Object.keys(res.data.data.list))
|
||||
// console.log(Object.values(res.data.data.list))
|
||||
this.cityDataTime = Object.keys(res.data.data.list).map((item, index) => {
|
||||
return { 'id': '110000', 'name': Object.values(res.data.data.list)[index], 'parentId': '100000', 'shortName': '北京', 'cityCode': '', indexID: item }
|
||||
})
|
||||
// 默认选中第一个
|
||||
this.$store.state.selectData = this.cityDataTime[0].indexID
|
||||
console.log(this.$store.state.selectData, 'this.cityDataTime[0].indexID')
|
||||
// 告诉父组件我获取到了
|
||||
this.$emit('stateTell', true)
|
||||
}
|
||||
}).catch((fail) => {
|
||||
console.log(fail)
|
||||
@@ -212,6 +210,7 @@ export default {
|
||||
},
|
||||
mounted () {
|
||||
this.cityDataArea = this.cityDataAreas
|
||||
this.cityDataTime = this.cityDataAreas
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -117,6 +117,7 @@ export default {
|
||||
immediate: true,
|
||||
deep: true
|
||||
}
|
||||
|
||||
},
|
||||
computed: {
|
||||
newCityData () {
|
||||
@@ -159,6 +160,7 @@ export default {
|
||||
this.inlay[index].filterDatas.push(list)
|
||||
}
|
||||
}
|
||||
console.log(this.inlay[0], 'this.inlay')
|
||||
},
|
||||
setCity(city) {
|
||||
/* eslint-disable */
|
||||
@@ -297,7 +299,7 @@ export default {
|
||||
document.addEventListener('click', function (e) {
|
||||
/* eslint-disable */
|
||||
// console.log(that.isHideProp, '12569')
|
||||
if (e.target.className !== 'city-picker' && false) {
|
||||
if (e.target.className !== 'city-picker') {
|
||||
that.modifyNature(that.inlay, 'isHide', true)
|
||||
}
|
||||
})
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="bottom">
|
||||
<div>确定</div>
|
||||
<div @click="trueChange()">确定</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -61,7 +61,12 @@ export default {
|
||||
return {
|
||||
imgUrl: require('../../../static/nav/deleteImg.png'),
|
||||
rowVal: '指标',
|
||||
colVal: '时间'
|
||||
colVal: '时间',
|
||||
arrValue: {
|
||||
'指标': 'zb',
|
||||
'时间': 'sj',
|
||||
'地区': 'dq'
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
@@ -71,7 +76,109 @@ export default {
|
||||
} else if (strd === 'col') {
|
||||
this.colVal = stateSD
|
||||
}
|
||||
},
|
||||
// 维度转换默认
|
||||
change3D () {
|
||||
if (this.$store.state.transState) {
|
||||
if (this.$route.query.type !== 'area') {
|
||||
this.rowVal = '指标'
|
||||
this.colVal = '时间'
|
||||
} else {
|
||||
this.rowVal = '地区'
|
||||
this.colVal = '时间'
|
||||
}
|
||||
} else {
|
||||
if (this.$route.query.type !== 'area') {
|
||||
this.rowVal = '时间'
|
||||
this.colVal = '指标'
|
||||
} else {
|
||||
this.rowVal = '时间'
|
||||
this.colVal = '地区'
|
||||
}
|
||||
}
|
||||
},
|
||||
// 确定维度转换
|
||||
trueChange () {
|
||||
this.trueChangeArea()
|
||||
},
|
||||
trueChangeArea () {
|
||||
console.log(this.arrValue[this.colVal], 'this.$store.state.noChangeDatathis.$store.state.noChangeDatathis.$store.state.noChangeData')
|
||||
console.log(this.arrValue[this.rowVal], 'this.$store.state.noChangeDatathis.$store.state.noChangeDatathis.$store.state.noChangeData')
|
||||
console.log(this.$store.state.noChangeData)
|
||||
let paramsd = {}
|
||||
if ((this.arrValue[this.colVal] === 'sj' && this.arrValue[this.rowVal] === 'zb') || (this.arrValue[this.colVal] === 'zb' && this.arrValue[this.rowVal] === 'sj')) {
|
||||
paramsd = {
|
||||
type: this.$route.query.type === 'area' ? 2 : 1, // 1非地区 2地区
|
||||
data: 3,
|
||||
area: this.$store.state.noChangeData.areaName[0], // 选中的地区
|
||||
quota: '', // 选中的指标
|
||||
cate: this.selectState, // 1筛选指标 2筛选地区
|
||||
f: this.$store.state.selectDataLeft.f, // year=>年度分类,monthly=>月度分类,quarter=>季度分类
|
||||
// filters: this.$store.state.selectfilter, // year=>年度分类,monthly=>月度分类,quarter=>季度分类
|
||||
date: '', // 时间
|
||||
row: this.arrValue[this.colVal],
|
||||
col: this.arrValue[this.rowVal]
|
||||
}
|
||||
} else if ((this.arrValue[this.colVal] === 'sj' && this.arrValue[this.rowVal] === 'dq') || (this.arrValue[this.colVal] === 'dq' && this.arrValue[this.rowVal] === 'sj')) {
|
||||
paramsd = {
|
||||
type: this.$route.query.type === 'area' ? 2 : 1, // 1非地区 2地区
|
||||
data: 3,
|
||||
area: '', // 选中的地区
|
||||
quota: this.$store.state.noChangeData.termsName[0], // 选中的指标
|
||||
cate: this.selectState, // 1筛选指标 2筛选地区
|
||||
f: this.$store.state.selectDataLeft.f, // year=>年度分类,monthly=>月度分类,quarter=>季度分类
|
||||
// filters: this.$store.state.selectfilter, // year=>年度分类,monthly=>月度分类,quarter=>季度分类
|
||||
date: '', // 时间
|
||||
row: this.arrValue[this.colVal],
|
||||
col: this.arrValue[this.rowVal]
|
||||
}
|
||||
} else if ((this.arrValue[this.colVal] === 'zb' && this.arrValue[this.rowVal] === 'dq') || (this.arrValue[this.colVal] === 'dq' && this.arrValue[this.rowVal] === 'zb')) {
|
||||
paramsd = {
|
||||
type: this.$route.query.type === 'area' ? 2 : 1, // 1非地区 2地区
|
||||
data: 3,
|
||||
area: '', // 选中的地区
|
||||
quota: '', // 选中的指标
|
||||
cate: this.selectState, // 1筛选指标 2筛选地区
|
||||
f: this.$store.state.selectDataLeft.f, // year=>年度分类,monthly=>月度分类,quarter=>季度分类
|
||||
// filters: this.$store.state.selectfilter, // year=>年度分类,monthly=>月度分类,quarter=>季度分类
|
||||
date: this.$store.state.noChangeData.timeArr[0], // 时间
|
||||
row: this.arrValue[this.colVal],
|
||||
col: this.arrValue[this.rowVal]
|
||||
}
|
||||
}
|
||||
this.$axios({
|
||||
method: 'POST',
|
||||
url: 'data/data/wd-trans',
|
||||
data: paramsd
|
||||
}).then(res => {
|
||||
console.log(this.$store.state.transBefore, '维度转换全局数据')
|
||||
console.log(res, '获取数据展示数据')
|
||||
// 请求接口完成 请求成功
|
||||
if (res.data.code === 200) {
|
||||
// if (res.data.data.areaName.length !== 0) {
|
||||
let transBefore = {}
|
||||
transBefore.tableExplain = res.data.data.tableExplain
|
||||
transBefore.timeArr = res.data.data.timeArr.map((item, index) => { return item.toString() })
|
||||
transBefore.termsName = res.data.data.termsName
|
||||
transBefore.termsExplain = res.data.data.termsExplain
|
||||
transBefore.areaName = res.data.data.areaName
|
||||
transBefore.transBeforeTermsData = res.data.data.transBeforeTermsData
|
||||
transBefore.transBeforeAreaData = res.data.data.transBeforeAreaData
|
||||
console.log(this.transBefore, '000')
|
||||
this.$store.state.transdtr = true
|
||||
// 全局总数据
|
||||
this.$store.state.transBefore = this.transBefore
|
||||
// }
|
||||
} else {
|
||||
this.$store.state.transBefore = null
|
||||
}
|
||||
}).catch((fail) => {
|
||||
console.log(fail, 2369)
|
||||
})
|
||||
}
|
||||
},
|
||||
mounted () {
|
||||
this.change3D()
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -294,6 +294,7 @@ export default {
|
||||
},
|
||||
// 地图左侧指标名称显示
|
||||
searchDataMap () {
|
||||
console.log(this.$store.state.selectDataLeft.id)
|
||||
this.$axios({
|
||||
method: 'GET',
|
||||
url: 'data/data/quota',
|
||||
@@ -321,6 +322,7 @@ export default {
|
||||
}
|
||||
return brrO
|
||||
})
|
||||
console.log(this.leftDafrt, 'this.leftDafrt')
|
||||
this.getLabelDatart()
|
||||
}
|
||||
}).catch((fail) => {
|
||||
@@ -329,6 +331,7 @@ export default {
|
||||
},
|
||||
// 获取每个指标的数据
|
||||
getLabelDatart () {
|
||||
console.log(this.leftDafrt, 1010110)
|
||||
this.$axios({
|
||||
method: 'GET',
|
||||
url: 'data/data/map-data',
|
||||
|
||||
@@ -51,7 +51,9 @@ export default new Vuex.Store({
|
||||
// 下拉筛选分类
|
||||
selectfilter: null,
|
||||
// 下拉筛选条件
|
||||
selectData: 1010110
|
||||
selectData: null,
|
||||
// 转置状态
|
||||
transState: true
|
||||
|
||||
},
|
||||
mutations: {},
|
||||
|
||||
@@ -240,7 +240,7 @@
|
||||
<!-- 添加收藏 -->
|
||||
<AddCollect v-if="$store.state.addCollectState"></AddCollect>
|
||||
<!-- 维度转换 -->
|
||||
<Dimension v-if="$store.state.dimensionState"></Dimension>
|
||||
<Dimension v-if="$store.state.dimensionState" @changeValue="changeValue"></Dimension>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -324,7 +324,7 @@ export default {
|
||||
{ text: '高级查询', iconUrl: require('../../../static/data/gjcx.png') },
|
||||
{ text: '数据地图', iconUrl: require('../../../static/data/sjdt.png') },
|
||||
{ text: '添加收藏', iconUrl: require('../../../static/data/tjsc.png') },
|
||||
{ text: '导出至Exc', iconUrl: require('../../../static/data/dcexcel.png') },
|
||||
{ text: '导出至Excel', iconUrl: require('../../../static/data/dcexcel.png') },
|
||||
{
|
||||
text: '数据管理',
|
||||
iconUrl: require('../../../static/data/sjgl.png'),
|
||||
@@ -410,10 +410,25 @@ export default {
|
||||
// 新增指标状态
|
||||
statesDf: 1,
|
||||
// 数据加载状态
|
||||
stateTells: false
|
||||
stateTells: false,
|
||||
// 维度转换时(若不是地区数据只进行转置操作)
|
||||
changeState: false
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
changeState (val) {
|
||||
if (val) {
|
||||
this.chartsStatusMegger.transState = !this.chartsStatusMegger.transState
|
||||
this.$store.state.transState = this.chartsStatusMegger.transState
|
||||
this.changeState = false
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
// 维度转换非地区转置
|
||||
changeValue (val) {
|
||||
this.changeState = val
|
||||
},
|
||||
// 获取左侧菜单数据
|
||||
getCateData () {
|
||||
this.$axios({
|
||||
@@ -659,6 +674,7 @@ export default {
|
||||
break
|
||||
case '转置':
|
||||
this.chartsStatusMegger.transState = !this.chartsStatusMegger.transState
|
||||
this.$store.state.transState = this.chartsStatusMegger.transState
|
||||
break
|
||||
case '维度转换':
|
||||
this.$store.state.dimensionState = true
|
||||
@@ -878,7 +894,7 @@ export default {
|
||||
console.log(stateStatic, '数据')
|
||||
console.log(this.leftCateData[this.leftCateData.length - 1], '数据length-1')
|
||||
this.$store.state.selectDataLeft = this.leftCateData[this.leftCateData.length - 1]
|
||||
console.log(this.leftCateData[this.leftCateData.length - 1].children[0].children[0].children[0].children[0], '1')
|
||||
// console.log(this.leftCateData[this.leftCateData.length - 1].children[0].children[0].children[0].children[0], '1')
|
||||
if (this.leftCateData[this.leftCateData.length - 1].children !== undefined) {
|
||||
if (this.leftCateData[this.leftCateData.length - 1].children[0].children !== undefined) {
|
||||
if (this.leftCateData[this.leftCateData.length - 1].children[0].children[0].children !== undefined) {
|
||||
@@ -925,6 +941,7 @@ export default {
|
||||
prentsState (val) {
|
||||
this.stateTells = val
|
||||
}
|
||||
|
||||
},
|
||||
computed: {
|
||||
// 计算字符串
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
<div
|
||||
v-for="(listLeft,keyLeft) in item.textArrLeft"
|
||||
:key="keyLeft"
|
||||
@click="jumpLianjie(true)"
|
||||
@click="jumpLianjie(true,item.type)"
|
||||
>{{listLeft.name}}</div>
|
||||
</div>
|
||||
<div class="center"></div>
|
||||
@@ -55,7 +55,7 @@
|
||||
<div
|
||||
v-for="(listRight,keyRight) in item.textArrRight"
|
||||
:key="keyRight"
|
||||
@click="jumpLianjie(true)"
|
||||
@click="jumpLianjie(true,item.type)"
|
||||
class="ListpaneRight"
|
||||
>{{listRight.name}}</div>
|
||||
</div>
|
||||
@@ -126,7 +126,7 @@
|
||||
<div class="right2">
|
||||
<div class="title">24小时热文</div>
|
||||
<div class="content">
|
||||
<div v-for="(item,index) in twentyFourtimeData" :key="index">
|
||||
<div v-for="(item,index) in twentyFourtimeData" :key="index" @click="$router.push({path:'/listDetails',query:{id:item.id}})">
|
||||
<img :src="item.url" alt />
|
||||
<div>
|
||||
<div class="top" :title="item.title">{{item.title}}</div>
|
||||
@@ -407,7 +407,7 @@ export default {
|
||||
limit: 8
|
||||
}
|
||||
}).then(res => {
|
||||
// console.log(res, '快速查询')
|
||||
console.log(res, '快速查询')
|
||||
// 请求接口完成 请求成功
|
||||
if (res.data.code === 200) {
|
||||
let brrtLeft = []
|
||||
@@ -506,7 +506,8 @@ export default {
|
||||
title: item.name,
|
||||
updataTime: item.time,
|
||||
table_name: item.table_name,
|
||||
type: item.type
|
||||
type: item.type,
|
||||
filter: item.filter
|
||||
}
|
||||
arrts.push(objuu)
|
||||
})
|
||||
@@ -545,15 +546,27 @@ export default {
|
||||
},
|
||||
// 跳转至数据
|
||||
jumpLianjie (state, value) {
|
||||
console.log(value, 'this.indexDatalabel[this.selectLabelS]')
|
||||
if (state) {
|
||||
this.$router.push(
|
||||
{
|
||||
path: '/datasweb',
|
||||
query: {
|
||||
type: this.indexDatalabel[this.selectLabelS]
|
||||
if (value === 1) {
|
||||
this.$router.push(
|
||||
{
|
||||
path: '/datasweb',
|
||||
query: {
|
||||
type: this.indexDatalabel[this.selectLabelS]
|
||||
}
|
||||
}
|
||||
}
|
||||
)
|
||||
)
|
||||
} else {
|
||||
this.$router.push(
|
||||
{
|
||||
path: '/datasweb',
|
||||
query: {
|
||||
type: 'area'
|
||||
}
|
||||
}
|
||||
)
|
||||
}
|
||||
} else {
|
||||
this.$router.push(
|
||||
{
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
<div class="right2">
|
||||
<div class="title">24小时热文</div>
|
||||
<div class="content">
|
||||
<div v-for="(item,index) in twentyFourtimeData" :key="index">
|
||||
<div v-for="(item,index) in twentyFourtimeData" :key="index" @click="$router.push({path:'/'}),$router.push({path:'/listDetails',query:{id:item.id}}),$router.go(0)">
|
||||
<img :src="item.url" alt />
|
||||
<div>
|
||||
<div class="top">{{item.title}}</div>
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
<div class="left">{{staticSelect}}</div>
|
||||
<div class="right" v-if="staticSelect==='我的收藏'&&collect">
|
||||
<input type="text" placeholder="请输入搜索内容" v-model="searchCollect" />
|
||||
<div>搜索</div>
|
||||
<div @click="getCollectData(1)">搜索</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 基本设置 -->
|
||||
@@ -68,15 +68,15 @@
|
||||
v-model="collectName"
|
||||
v-if="item.staticInput"
|
||||
v-focus="true"
|
||||
@blur="blurUpset"
|
||||
@keyup.enter="blurUpset"
|
||||
@blur="blurUpset(item.id,item.name)"
|
||||
@keyup.enter="blurUpset(item.id,item.name)"
|
||||
/>
|
||||
</div>
|
||||
<div :title="item.database">{{item.database}}</div>
|
||||
<div>{{item.birthTime}}</div>
|
||||
<div class="handle">
|
||||
<div @click="editName(index)">编辑</div>/
|
||||
<div @click="deleteData">删除</div>
|
||||
<div @click="deleteData(item.id)">删除</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -89,6 +89,7 @@
|
||||
class="pagination"
|
||||
:page-size="pageConfiguration.oneSize"
|
||||
:hide-on-single-page="true"
|
||||
@current-change="currentChange"
|
||||
></el-pagination>
|
||||
</div>
|
||||
<div class="collect_no" v-if="!collect">暂无收藏记录</div>
|
||||
@@ -110,11 +111,11 @@
|
||||
<div class="wcont_content">
|
||||
<div>
|
||||
<img :src="imgurl.userpwds" alt />
|
||||
<input type="text" placeholder="请输入密码" v-model="userpwd" />
|
||||
<input type="password" placeholder="请输入密码" v-model="userpwd" />
|
||||
</div>
|
||||
<div>
|
||||
<img :src="imgurl.userpwds" alt />
|
||||
<input type="text" placeholder="请输入确认密码" v-model="userpwdQR" />
|
||||
<input type="password" placeholder="请输入确认密码" v-model="userpwdQR" />
|
||||
</div>
|
||||
<div @click="closeLoginWind(true)">确认</div>
|
||||
</div>
|
||||
@@ -281,21 +282,88 @@ export default {
|
||||
})
|
||||
},
|
||||
// 文本框失去焦点或者回车enter
|
||||
blurUpset () {
|
||||
console.log('文本框失去焦点')
|
||||
// 调用接口修改数据
|
||||
this.collect.forEach((item, index) => {
|
||||
item.staticInput = false
|
||||
blurUpset (ids, names) {
|
||||
let bStr = this.collectName === '' ? names : this.collectName
|
||||
this.$axios({
|
||||
method: 'POST',
|
||||
url: 'member/index/edit',
|
||||
data: {
|
||||
id: ids,
|
||||
name: bStr
|
||||
}
|
||||
}).then(res => {
|
||||
console.log(res, 12569)
|
||||
// 请求接口完成 请求成功
|
||||
// alert(res.data.message)
|
||||
if (res.data.code === 200) {
|
||||
alert('修改成功!')
|
||||
console.log('文本框失去焦点')
|
||||
// 调用接口修改数据
|
||||
this.collect.forEach((item, index) => {
|
||||
item.staticInput = false
|
||||
})
|
||||
this.getCollectData()
|
||||
}
|
||||
}).catch((fail) => {
|
||||
console.log(fail)
|
||||
})
|
||||
},
|
||||
// 删除收藏数据
|
||||
deleteData () {
|
||||
deleteData (ids) {
|
||||
// 调用接口删除数据
|
||||
this.$axios({
|
||||
method: 'POST',
|
||||
url: 'member/index/del',
|
||||
data: {
|
||||
id: ids
|
||||
}
|
||||
}).then(res => {
|
||||
console.log(res, 1256000009)
|
||||
// 请求接口完成 请求成功
|
||||
// alert(res.data.message)
|
||||
if (res.data.code === 200) {
|
||||
alert('删除成功!')
|
||||
this.getCollectData()
|
||||
}
|
||||
}).catch((fail) => {
|
||||
console.log(fail)
|
||||
})
|
||||
},
|
||||
// 获取收藏数据
|
||||
getCollectData () {
|
||||
getCollectData (pagess) {
|
||||
// 调接口获取数据
|
||||
console.log(this.pageConfiguration.countPage)
|
||||
this.$axios({
|
||||
method: 'GET',
|
||||
url: 'member/index/favorite',
|
||||
params: {
|
||||
page: pagess,
|
||||
limit: 5,
|
||||
key: this.searchCollect
|
||||
}
|
||||
}).then(res => {
|
||||
console.log(res, 12569)
|
||||
// 请求接口完成 请求成功
|
||||
// alert(res.data.message)
|
||||
if (res.data.code === 200) {
|
||||
this.pageConfiguration.countSize = res.data.data.total
|
||||
this.collect = res.data.data.list.map((item, index) => {
|
||||
return {
|
||||
name: item.name,
|
||||
database: item.db,
|
||||
birthTime: item.updated_at,
|
||||
staticInput: false,
|
||||
adv: item.adv,
|
||||
id: item.id,
|
||||
classify_id: item.classify_id,
|
||||
type: item.type,
|
||||
uid: item.uid
|
||||
}
|
||||
})
|
||||
}
|
||||
}).catch((fail) => {
|
||||
console.log(fail)
|
||||
})
|
||||
},
|
||||
// 获取个人中心数据
|
||||
getPersonalCenter () {
|
||||
@@ -317,6 +385,11 @@ export default {
|
||||
}).catch((fail) => {
|
||||
console.log(fail)
|
||||
})
|
||||
},
|
||||
// 当前页数发生改变时
|
||||
currentChange (val) {
|
||||
this.getCollectData(val)
|
||||
console.log(val, '1010110')
|
||||
}
|
||||
},
|
||||
// 自定义指令v-*
|
||||
@@ -341,7 +414,7 @@ export default {
|
||||
}
|
||||
},
|
||||
mounted () {
|
||||
this.getPersonalCenter()
|
||||
this.getPersonalCenter(1)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
2528
static/data/Component is not found in path.html
Normal file
2528
static/data/Component is not found in path.html
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
Binary file not shown.
|
After Width: | Height: | Size: 705 B |
Binary file not shown.
|
After Width: | Height: | Size: 6.4 KiB |
BIN
static/data/Component is not found in path_files/bd_logo1.png
Normal file
BIN
static/data/Component is not found in path_files/bd_logo1.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 7.7 KiB |
@@ -0,0 +1,157 @@
|
||||
!function(e,t){function n(e){var t=e.length,n=ct.type(e);return ct.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||"function"!==n&&(0===t||"number"==typeof t&&t>0&&t-1 in e)}function r(e){var t=kt[e]={};return ct.each(e.match(pt)||[],function(e,n){t[n]=!0}),t}function i(e,n,r,i){if(ct.acceptData(e)){var o,a,s=ct.expando,u=e.nodeType,l=u?ct.cache:e,c=u?e[s]:e[s]&&s;if(c&&l[c]&&(i||l[c].data)||r!==t||"string"!=typeof n)return c||(c=u?e[s]=tt.pop()||ct.guid++:s),l[c]||(l[c]=u?{}:{toJSON:ct.noop}),("object"==typeof n||"function"==typeof n)&&(i?l[c]=ct.extend(l[c],n):l[c].data=ct.extend(l[c].data,n)),a=l[c],i||(a.data||(a.data={}),a=a.data),r!==t&&(a[ct.camelCase(n)]=r),"string"==typeof n?(o=a[n],null==o&&(o=a[ct.camelCase(n)])):o=a,o
|
||||
}}function o(e,t,n){if(ct.acceptData(e)){var r,i,o=e.nodeType,a=o?ct.cache:e,u=o?e[ct.expando]:ct.expando;if(a[u]){if(t&&(r=n?a[u]:a[u].data)){ct.isArray(t)?t=t.concat(ct.map(t,ct.camelCase)):t in r?t=[t]:(t=ct.camelCase(t),t=t in r?[t]:t.split(" ")),i=t.length;for(;i--;)delete r[t[i]];if(n?!s(r):!ct.isEmptyObject(r))return}(n||(delete a[u].data,s(a[u])))&&(o?ct.cleanData([e],!0):ct.support.deleteExpando||a!=a.window?delete a[u]:a[u]=null)}}}function a(e,n,r){if(r===t&&1===e.nodeType){var i="data-"+n.replace(St,"-$1").toLowerCase();
|
||||
if(r=e.getAttribute(i),"string"==typeof r){try{r="true"===r?!0:"false"===r?!1:"null"===r?null:+r+""===r?+r:Et.test(r)?ct.parseJSON(r):r}catch(o){}ct.data(e,n,r)}else r=t}return r}function s(e){var t;for(t in e)if(("data"!==t||!ct.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}function u(){return!0}function l(){return!1}function c(){try{return G.activeElement}catch(e){}}function f(e,t){do e=e[t];while(e&&1!==e.nodeType);return e}function p(e,t,n){if(ct.isFunction(t))return ct.grep(e,function(e,r){return!!t.call(e,r,e)!==n
|
||||
});if(t.nodeType)return ct.grep(e,function(e){return e===t!==n});if("string"==typeof t){if($t.test(t))return ct.filter(t,e,n);t=ct.filter(t,e)}return ct.grep(e,function(e){return ct.inArray(e,t)>=0!==n})}function d(e){var t=Ut.split("|"),n=e.createDocumentFragment();if(n.createElement)for(;t.length;)n.createElement(t.pop());return n}function h(e,t){return ct.nodeName(e,"table")&&ct.nodeName(1===t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e
|
||||
}function g(e){return e.type=(null!==ct.find.attr(e,"type"))+"/"+e.type,e}function m(e){var t=on.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function y(e,t){for(var n,r=0;null!=(n=e[r]);r++)ct._data(n,"globalEval",!t||ct._data(t[r],"globalEval"))}function v(e,t){if(1===t.nodeType&&ct.hasData(e)){var n,r,i,o=ct._data(e),a=ct._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++)ct.event.add(t,n,s[n][r])}a.data&&(a.data=ct.extend({},a.data))
|
||||
}}function b(e,t){var n,r,i;if(1===t.nodeType){if(n=t.nodeName.toLowerCase(),!ct.support.noCloneEvent&&t[ct.expando]){i=ct._data(t);for(r in i.events)ct.removeEvent(t,r,i.handle);t.removeAttribute(ct.expando)}"script"===n&&t.text!==e.text?(g(t).text=e.text,m(t)):"object"===n?(t.parentNode&&(t.outerHTML=e.outerHTML),ct.support.html5Clone&&e.innerHTML&&!ct.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):"input"===n&&tn.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)
|
||||
}}function x(e,n){var r,i,o=0,a=typeof e.getElementsByTagName!==Y?e.getElementsByTagName(n||"*"):typeof e.querySelectorAll!==Y?e.querySelectorAll(n||"*"):t;if(!a)for(a=[],r=e.childNodes||e;null!=(i=r[o]);o++)!n||ct.nodeName(i,n)?a.push(i):ct.merge(a,x(i,n));return n===t||n&&ct.nodeName(e,n)?ct.merge([e],a):a}function T(e){tn.test(e.type)&&(e.defaultChecked=e.checked)}function w(e,t){if(t in e)return t;for(var n=t.charAt(0).toUpperCase()+t.slice(1),r=t,i=kn.length;i--;)if(t=kn[i]+n,t in e)return t;
|
||||
return r}function C(e,t){return e=t||e,"none"===ct.css(e,"display")||!ct.contains(e.ownerDocument,e)}function N(e,t){for(var n,r,i,o=[],a=0,s=e.length;s>a;a++)r=e[a],r.style&&(o[a]=ct._data(r,"olddisplay"),n=r.style.display,t?(o[a]||"none"!==n||(r.style.display=""),""===r.style.display&&C(r)&&(o[a]=ct._data(r,"olddisplay",A(r.nodeName)))):o[a]||(i=C(r),(n&&"none"!==n||!i)&&ct._data(r,"olddisplay",i?n:ct.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}function k(e,t,n){var r=vn.exec(t);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):t}function E(e,t,n,r,i){for(var o=n===(r?"border":"content")?4:"width"===t?1:0,a=0;4>o;o+=2)"margin"===n&&(a+=ct.css(e,n+Nn[o],!0,i)),r?("content"===n&&(a-=ct.css(e,"padding"+Nn[o],!0,i)),"margin"!==n&&(a-=ct.css(e,"border"+Nn[o]+"Width",!0,i))):(a+=ct.css(e,"padding"+Nn[o],!0,i),"padding"!==n&&(a+=ct.css(e,"border"+Nn[o]+"Width",!0,i)));return a}function S(e,t,n){var r=!0,i="width"===t?e.offsetWidth:e.offsetHeight,o=fn(e),a=ct.support.boxSizing&&"border-box"===ct.css(e,"boxSizing",!1,o);
|
||||
if(0>=i||null==i){if(i=pn(e,t,o),(0>i||null==i)&&(i=e.style[t]),bn.test(i))return i;r=a&&(ct.support.boxSizingReliable||i===e.style[t]),i=parseFloat(i)||0}return i+E(e,t,n||(a?"border":"content"),r,o)+"px"}function A(e){var t=G,n=Tn[e];return n||(n=j(e,t),"none"!==n&&n||(cn=(cn||ct("<iframe frameborder='0' width='0' height='0'/>").css("cssText","display:block !important")).appendTo(t.documentElement),t=(cn[0].contentWindow||cn[0].contentDocument).document,t.write("<!doctype html><html><body>"),t.close(),n=j(e,t),cn.detach()),Tn[e]=n),n
|
||||
}function j(e,t){var n=ct(t.createElement(e)).appendTo(t.body),r=ct.css(n[0],"display");return n.remove(),r}function D(e,t,n,r){var i;if(ct.isArray(t))ct.each(t,function(t,i){n||Sn.test(e)?r(e,i):D(e+"["+("object"==typeof i?t:"")+"]",i,n,r)});else if(n||"object"!==ct.type(t))r(e,t);else for(i in t)D(e+"["+i+"]",t[i],n,r)}function L(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(pt)||[];if(ct.isFunction(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)
|
||||
}}function H(e,n,r,i){function o(u){var l;return a[u]=!0,ct.each(e[u]||[],function(e,u){var c=u(n,r,i);return"string"!=typeof c||s||a[c]?s?!(l=c):t:(n.dataTypes.unshift(c),o(c),!1)}),l}var a={},s=e===zn;return o(n.dataTypes[0])||!a["*"]&&o("*")}function q(e,n){var r,i,o=ct.ajaxSettings.flatOptions||{};for(i in n)n[i]!==t&&((o[i]?e:r||(r={}))[i]=n[i]);return r&&ct.extend(!0,e,r),e}function _(e,n,r){for(var i,o,a,s,u=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),o===t&&(o=e.mimeType||n.getResponseHeader("Content-Type"));
|
||||
if(o)for(s in u)if(u[s]&&u[s].test(o)){l.unshift(s);break}if(l[0]in r)a=l[0];else{for(s in r){if(!l[0]||e.converters[s+" "+l[0]]){a=s;break}i||(i=s)}a=a||i}return a?(a!==l[0]&&l.unshift(a),r[a]):t}function M(e,t,n,r){var i,o,a,s,u,l={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)l[a.toLowerCase()]=e.converters[a];for(o=c.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(a=l[u+" "+o]||l["* "+o],!a)for(i in l)if(s=i.split(" "),s[1]===o&&(a=l[u+" "+s[0]]||l["* "+s[0]])){a===!0?a=l[i]:l[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(f){return{state:"parsererror",error:a?f:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}function O(){try{return new e.XMLHttpRequest}catch(t){}}function F(){try{return new e.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}function B(){return setTimeout(function(){Zn=t}),Zn=ct.now()}function P(e,t,n){for(var r,i=(or[t]||[]).concat(or["*"]),o=0,a=i.length;a>o;o++)if(r=i[o].call(n,t,e))return r}function R(e,t,n){var r,i,o=0,a=ir.length,s=ct.Deferred().always(function(){delete u.elem
|
||||
}),u=function(){if(i)return!1;for(var t=Zn||B(),n=Math.max(0,l.startTime+l.duration-t),r=n/l.duration||0,o=1-r,a=0,u=l.tweens.length;u>a;a++)l.tweens[a].run(o);return s.notifyWith(e,[l,o,n]),1>o&&u?n:(s.resolveWith(e,[l]),!1)},l=s.promise({elem:e,props:ct.extend({},t),opts:ct.extend(!0,{specialEasing:{}},n),originalProperties:t,originalOptions:n,startTime:Zn||B(),duration:n.duration,tweens:[],createTween:function(t,n){var r=ct.Tween(e,l.opts,t,n,l.opts.specialEasing[t]||l.opts.easing);return l.tweens.push(r),r
|
||||
},stop:function(t){var n=0,r=t?l.tweens.length:0;if(i)return this;for(i=!0;r>n;n++)l.tweens[n].run(1);return t?s.resolveWith(e,[l,t]):s.rejectWith(e,[l,t]),this}}),c=l.props;for(W(c,l.opts.specialEasing);a>o;o++)if(r=ir[o].call(l,e,c,l.opts))return r;return ct.map(c,P,l),ct.isFunction(l.opts.start)&&l.opts.start.call(e,l),ct.fx.timer(ct.extend(u,{elem:e,anim:l,queue:l.opts.queue})),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always)}function W(e,t){var n,r,i,o,a;
|
||||
for(n in e)if(r=ct.camelCase(n),i=t[r],o=e[n],ct.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),a=ct.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}function $(e,t,n){var r,i,o,a,s,u,l=this,c={},f=e.style,p=e.nodeType&&C(e),d=ct._data(e,"fxshow");n.queue||(s=ct._queueHooks(e,"fx"),null==s.unqueued&&(s.unqueued=0,u=s.empty.fire,s.empty.fire=function(){s.unqueued||u()}),s.unqueued++,l.always(function(){l.always(function(){s.unqueued--,ct.queue(e,"fx").length||s.empty.fire()
|
||||
})})),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[f.overflow,f.overflowX,f.overflowY],"inline"===ct.css(e,"display")&&"none"===ct.css(e,"float")&&(ct.support.inlineBlockNeedsLayout&&"inline"!==A(e.nodeName)?f.zoom=1:f.display="inline-block")),n.overflow&&(f.overflow="hidden",ct.support.shrinkWrapBlocks||l.always(function(){f.overflow=n.overflow[0],f.overflowX=n.overflow[1],f.overflowY=n.overflow[2]}));for(r in t)if(i=t[r],tr.exec(i)){if(delete t[r],o=o||"toggle"===i,i===(p?"hide":"show"))continue;
|
||||
c[r]=d&&d[r]||ct.style(e,r)}if(!ct.isEmptyObject(c)){d?"hidden"in d&&(p=d.hidden):d=ct._data(e,"fxshow",{}),o&&(d.hidden=!p),p?ct(e).show():l.done(function(){ct(e).hide()}),l.done(function(){var t;ct._removeData(e,"fxshow");for(t in c)ct.style(e,t,c[t])});for(r in c)a=P(p?d[r]:0,r,l),r in d||(d[r]=a.start,p&&(a.end=a.start,a.start="width"===r||"height"===r?1:0))}}function I(e,t,n,r,i){return new I.prototype.init(e,t,n,r,i)}function z(e,t){var n,r={height:e},i=0;for(t=t?1:0;4>i;i+=2-t)n=Nn[i],r["margin"+n]=r["padding"+n]=e;
|
||||
return t&&(r.opacity=r.width=e),r}function X(e){return ct.isWindow(e)?e:9===e.nodeType?e.defaultView||e.parentWindow:!1}var U,V,Y=typeof t,J=e.location,G=e.document,Q=G.documentElement,K=e.jQuery,Z=e.$,et={},tt=[],nt="1.10.2",rt=tt.concat,it=tt.push,ot=tt.slice,at=tt.indexOf,st=et.toString,ut=et.hasOwnProperty,lt=nt.trim,ct=function(e,t){return new ct.fn.init(e,t,V)},ft=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,pt=/\S+/g,dt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,ht=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,gt=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,mt=/^[\],:{}\s]*$/,yt=/(?:^|:|,)(?:\s*\[)+/g,vt=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,bt=/"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g,xt=/^-ms-/,Tt=/-([\da-z])/gi,wt=function(e,t){return t.toUpperCase()
|
||||
},Ct=function(e){(G.addEventListener||"load"===e.type||"complete"===G.readyState)&&(Nt(),ct.ready())},Nt=function(){G.addEventListener?(G.removeEventListener("DOMContentLoaded",Ct,!1),e.removeEventListener("load",Ct,!1)):(G.detachEvent("onreadystatechange",Ct),e.detachEvent("onload",Ct))};ct.fn=ct.prototype={jquery:nt,constructor:ct,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]:ht.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 ct?n[0]:n,ct.merge(this,ct.parseHTML(i[1],n&&n.nodeType?n.ownerDocument||n:G,!0)),gt.test(i[1])&&ct.isPlainObject(n))for(i in n)ct.isFunction(this[i])?this[i](n[i]):this.attr(i,n[i]);return this}if(o=G.getElementById(i[2]),o&&o.parentNode){if(o.id!==i[2])return r.find(e);this.length=1,this[0]=o}return this.context=G,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):ct.isFunction(e)?r.ready(e):(e.selector!==t&&(this.selector=e.selector,this.context=e.context),ct.makeArray(e,this))
|
||||
},selector:"",length:0,toArray:function(){return ot.call(this)},get:function(e){return null==e?this.toArray():0>e?this[this.length+e]:this[e]},pushStack:function(e){var t=ct.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return ct.each(this,e,t)},ready:function(e){return ct.ready.promise().done(e),this},slice:function(){return this.pushStack(ot.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(ct.map(this,function(t,n){return e.call(t,n,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:it,sort:[].sort,splice:[].splice},ct.fn.init.prototype=ct.fn,ct.extend=ct.fn.extend=function(){var e,n,r,i,o,a,s=arguments[0]||{},u=1,l=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[1]||{},u=2),"object"==typeof s||ct.isFunction(s)||(s={}),l===u&&(s=this,--u);l>u;u++)if(null!=(o=arguments[u]))for(i in o)e=s[i],r=o[i],s!==r&&(c&&r&&(ct.isPlainObject(r)||(n=ct.isArray(r)))?(n?(n=!1,a=e&&ct.isArray(e)?e:[]):a=e&&ct.isPlainObject(e)?e:{},s[i]=ct.extend(c,a,r)):r!==t&&(s[i]=r));
|
||||
return s},ct.extend({expando:"jQuery"+(nt+Math.random()).replace(/\D/g,""),noConflict:function(t){return e.$===ct&&(e.$=Z),t&&e.jQuery===ct&&(e.jQuery=K),ct},isReady:!1,readyWait:1,holdReady:function(e){e?ct.readyWait++:ct.ready(!0)},ready:function(e){if(e===!0?!--ct.readyWait:!ct.isReady){if(!G.body)return setTimeout(ct.ready);ct.isReady=!0,e!==!0&&--ct.readyWait>0||(U.resolveWith(G,[ct]),ct.fn.trigger&&ct(G).trigger("ready").off("ready"))}},isFunction:function(e){return"function"===ct.type(e)},isArray:Array.isArray||function(e){return"array"===ct.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?et[st.call(e)]||"object":typeof e},isPlainObject:function(e){var n;if(!e||"object"!==ct.type(e)||e.nodeType||ct.isWindow(e))return!1;try{if(e.constructor&&!ut.call(e,"constructor")&&!ut.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(r){return!1}if(ct.support.ownLast)for(n in e)return ut.call(e,n);
|
||||
for(n in e);return n===t||ut.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||G;var r=gt.exec(e),i=!n&&[];return r?[t.createElement(r[1])]:(r=ct.buildFragment([e],t,i),i&&ct(i).remove(),ct.merge([],r.childNodes))},parseJSON:function(n){return e.JSON&&e.JSON.parse?e.JSON.parse(n):null===n?n:"string"==typeof n&&(n=ct.trim(n),n&&mt.test(n.replace(vt,"@").replace(bt,"]").replace(yt,"")))?Function("return "+n)():(ct.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||ct.error("Invalid XML: "+n),r},noop:function(){},globalEval:function(t){t&&ct.trim(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(xt,"ms-").replace(Tt,wt)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()
|
||||
},each:function(e,t,r){var i,o=0,a=e.length,s=n(e);if(r){if(s)for(;a>o&&(i=t.apply(e[o],r),i!==!1);o++);else for(o in e)if(i=t.apply(e[o],r),i===!1)break}else if(s)for(;a>o&&(i=t.call(e[o],o,e[o]),i!==!1);o++);else for(o in e)if(i=t.call(e[o],o,e[o]),i===!1)break;return e},trim:lt&&!lt.call(" ")?function(e){return null==e?"":lt.call(e)}:function(e){return null==e?"":(e+"").replace(dt,"")},makeArray:function(e,t){var r=t||[];return null!=e&&(n(Object(e))?ct.merge(r,"string"==typeof e?[e]:e):it.call(r,e)),r
|
||||
},inArray:function(e,t,n){var r;if(t){if(at)return at.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 for(;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,r){var i,o=0,a=e.length,s=n(e),u=[];if(s)for(;a>o;o++)i=t(e[o],o,r),null!=i&&(u[u.length]=i);
|
||||
else for(o in e)i=t(e[o],o,r),null!=i&&(u[u.length]=i);return rt.apply([],u)},guid:1,proxy:function(e,n){var r,i,o;return"string"==typeof n&&(o=e[n],n=e,e=o),ct.isFunction(e)?(r=ot.call(arguments,2),i=function(){return e.apply(n||this,r.concat(ot.call(arguments)))},i.guid=e.guid=e.guid||ct.guid++,i):t},access:function(e,n,r,i,o,a,s){var u=0,l=e.length,c=null==r;if("object"===ct.type(r)){o=!0;for(u in r)ct.access(e,n,u,r[u],!0,a,s)}else if(i!==t&&(o=!0,ct.isFunction(i)||(s=!0),c&&(s?(n.call(e,i),n=null):(c=n,n=function(e,t,n){return c.call(ct(e),n)
|
||||
})),n))for(;l>u;u++)n(e[u],r,s?i:i.call(e[u],u,n(e[u],r)));return o?e:c?n.call(e):l?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}}),ct.ready.promise=function(t){if(!U)if(U=ct.Deferred(),"complete"===G.readyState)setTimeout(ct.ready);else if(G.addEventListener)G.addEventListener("DOMContentLoaded",Ct,!1),e.addEventListener("load",Ct,!1);else{G.attachEvent("onreadystatechange",Ct),e.attachEvent("onload",Ct);
|
||||
var n=!1;try{n=null==e.frameElement&&G.documentElement}catch(r){}n&&n.doScroll&&function i(){if(!ct.isReady){try{n.doScroll("left")}catch(e){return setTimeout(i,50)}Nt(),ct.ready()}}()}return U.promise(t)},ct.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){et["[object "+t+"]"]=t.toLowerCase()}),V=ct(G),function(e,t){function n(e,t,n,r){var i,o,a,s,u,l,c,f,h,g;if((t?t.ownerDocument||t:R)!==H&&L(t),t=t||H,n=n||[],!e||"string"!=typeof e)return n;if(1!==(s=t.nodeType)&&9!==s)return[];
|
||||
if(_&&!r){if(i=bt.exec(e))if(a=i[1]){if(9===s){if(o=t.getElementById(a),!o||!o.parentNode)return n;if(o.id===a)return n.push(o),n}else if(t.ownerDocument&&(o=t.ownerDocument.getElementById(a))&&B(t,o)&&o.id===a)return n.push(o),n}else{if(i[2])return et.apply(n,t.getElementsByTagName(e)),n;if((a=i[3])&&C.getElementsByClassName&&t.getElementsByClassName)return et.apply(n,t.getElementsByClassName(a)),n}if(C.qsa&&(!M||!M.test(e))){if(f=c=P,h=t,g=9===s&&e,1===s&&"object"!==t.nodeName.toLowerCase()){for(l=p(e),(c=t.getAttribute("id"))?f=c.replace(wt,"\\$&"):t.setAttribute("id",f),f="[id='"+f+"'] ",u=l.length;u--;)l[u]=f+d(l[u]);
|
||||
h=dt.test(e)&&t.parentNode||t,g=l.join(",")}if(g)try{return et.apply(n,h.querySelectorAll(g)),n}catch(m){}finally{c||t.removeAttribute("id")}}}return T(e.replace(lt,"$1"),t,n,r)}function r(){function e(n,r){return t.push(n+=" ")>k.cacheLength&&delete e[t.shift()],e[n]=r}var t=[];return e}function i(e){return e[P]=!0,e}function o(e){var t=H.createElement("div");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function a(e,t){for(var n=e.split("|"),r=e.length;r--;)k.attrHandle[n[r]]=t
|
||||
}function s(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||J)-(~e.sourceIndex||J);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function u(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function l(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function c(e){return i(function(t){return t=+t,i(function(n,r){for(var i,o=e([],n.length,t),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))
|
||||
})})}function f(){}function p(e,t){var r,i,o,a,s,u,l,c=z[e+" "];if(c)return t?0:c.slice(0);for(s=e,u=[],l=k.preFilter;s;){(!r||(i=ft.exec(s)))&&(i&&(s=s.slice(i[0].length)||s),u.push(o=[])),r=!1,(i=pt.exec(s))&&(r=i.shift(),o.push({value:r,type:i[0].replace(lt," ")}),s=s.slice(r.length));for(a in k.filter)!(i=yt[a].exec(s))||l[a]&&!(i=l[a](i))||(r=i.shift(),o.push({value:r,type:a,matches:i}),s=s.slice(r.length));if(!r)break}return t?s.length:s?n.error(e):z(e,u).slice(0)}function d(e){for(var t=0,n=e.length,r="";n>t;t++)r+=e[t].value;
|
||||
return r}function h(e,t,n){var r=t.dir,i=n&&"parentNode"===r,o=$++;return t.first?function(t,n,o){for(;t=t[r];)if(1===t.nodeType||i)return e(t,n,o)}:function(t,n,a){var s,u,l,c=W+" "+o;if(a){for(;t=t[r];)if((1===t.nodeType||i)&&e(t,n,a))return!0}else for(;t=t[r];)if(1===t.nodeType||i)if(l=t[P]||(t[P]={}),(u=l[r])&&u[0]===c){if((s=u[1])===!0||s===N)return s===!0}else if(u=l[r]=[c],u[1]=e(t,n,a)||N,u[1]===!0)return!0}}function g(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;
|
||||
return!0}:e[0]}function m(e,t,n,r,i){for(var o,a=[],s=0,u=e.length,l=null!=t;u>s;s++)(o=e[s])&&(!n||n(o,r,i))&&(a.push(o),l&&t.push(s));return a}function y(e,t,n,r,o,a){return r&&!r[P]&&(r=y(r)),o&&!o[P]&&(o=y(o,a)),i(function(i,a,s,u){var l,c,f,p=[],d=[],h=a.length,g=i||x(t||"*",s.nodeType?[s]:s,[]),y=!e||!i&&t?g:m(g,p,e,s,u),v=n?o||(i?e:h||r)?[]:a:y;if(n&&n(y,v,s,u),r)for(l=m(v,d),r(l,[],s,u),c=l.length;c--;)(f=l[c])&&(v[d[c]]=!(y[d[c]]=f));if(i){if(o||e){if(o){for(l=[],c=v.length;c--;)(f=v[c])&&l.push(y[c]=f);
|
||||
o(null,v=[],l,u)}for(c=v.length;c--;)(f=v[c])&&(l=o?nt.call(i,f):p[c])>-1&&(i[l]=!(a[l]=f))}}else v=m(v===a?v.splice(h,v.length):v),o?o(null,a,v,u):et.apply(a,v)})}function v(e){for(var t,n,r,i=e.length,o=k.relative[e[0].type],a=o||k.relative[" "],s=o?1:0,u=h(function(e){return e===t},a,!0),l=h(function(e){return nt.call(t,e)>-1},a,!0),c=[function(e,n,r){return!o&&(r||n!==j)||((t=n).nodeType?u(e,n,r):l(e,n,r))}];i>s;s++)if(n=k.relative[e[s].type])c=[h(g(c),n)];else{if(n=k.filter[e[s].type].apply(null,e[s].matches),n[P]){for(r=++s;i>r&&!k.relative[e[r].type];r++);return y(s>1&&g(c),s>1&&d(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(lt,"$1"),n,r>s&&v(e.slice(s,r)),i>r&&v(e=e.slice(r)),i>r&&d(e))
|
||||
}c.push(n)}return g(c)}function b(e,t){var r=0,o=t.length>0,a=e.length>0,s=function(i,s,u,l,c){var f,p,d,h=[],g=0,y="0",v=i&&[],b=null!=c,x=j,T=i||a&&k.find.TAG("*",c&&s.parentNode||s),w=W+=null==x?1:Math.random()||.1;for(b&&(j=s!==H&&s,N=r);null!=(f=T[y]);y++){if(a&&f){for(p=0;d=e[p++];)if(d(f,s,u)){l.push(f);break}b&&(W=w,N=++r)}o&&((f=!d&&f)&&g--,i&&v.push(f))}if(g+=y,o&&y!==g){for(p=0;d=t[p++];)d(v,h,s,u);if(i){if(g>0)for(;y--;)v[y]||h[y]||(h[y]=K.call(l));h=m(h)}et.apply(l,h),b&&!i&&h.length>0&&g+t.length>1&&n.uniqueSort(l)
|
||||
}return b&&(W=w,j=x),v};return o?i(s):s}function x(e,t,r){for(var i=0,o=t.length;o>i;i++)n(e,t[i],r);return r}function T(e,t,n,r){var i,o,a,s,u,l=p(e);if(!r&&1===l.length){if(o=l[0]=l[0].slice(0),o.length>2&&"ID"===(a=o[0]).type&&C.getById&&9===t.nodeType&&_&&k.relative[o[1].type]){if(t=(k.find.ID(a.matches[0].replace(Ct,Nt),t)||[])[0],!t)return n;e=e.slice(o.shift().value.length)}for(i=yt.needsContext.test(e)?0:o.length;i--&&(a=o[i],!k.relative[s=a.type]);)if((u=k.find[s])&&(r=u(a.matches[0].replace(Ct,Nt),dt.test(o[0].type)&&t.parentNode||t))){if(o.splice(i,1),e=r.length&&d(o),!e)return et.apply(n,r),n;
|
||||
break}}return A(e,l)(r,t,!_,n,dt.test(e)),n}var w,C,N,k,E,S,A,j,D,L,H,q,_,M,O,F,B,P="sizzle"+-new Date,R=e.document,W=0,$=0,I=r(),z=r(),X=r(),U=!1,V=function(e,t){return e===t?(U=!0,0):0},Y=typeof t,J=1<<31,G={}.hasOwnProperty,Q=[],K=Q.pop,Z=Q.push,et=Q.push,tt=Q.slice,nt=Q.indexOf||function(e){for(var t=0,n=this.length;n>t;t++)if(this[t]===e)return t;return-1},rt="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",it="[\\x20\\t\\r\\n\\f]",ot="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",at=ot.replace("w","w#"),st="\\["+it+"*("+ot+")"+it+"*(?:([*^$|!~]?=)"+it+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+at+")|)|)"+it+"*\\]",ut=":("+ot+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+st.replace(3,8)+")*)|.*)\\)|)",lt=RegExp("^"+it+"+|((?:^|[^\\\\])(?:\\\\.)*)"+it+"+$","g"),ft=RegExp("^"+it+"*,"+it+"*"),pt=RegExp("^"+it+"*([>+~]|"+it+")"+it+"*"),dt=RegExp(it+"*[+~]"),ht=RegExp("="+it+"*([^\\]'\"]*)"+it+"*\\]","g"),gt=RegExp(ut),mt=RegExp("^"+at+"$"),yt={ID:RegExp("^#("+ot+")"),CLASS:RegExp("^\\.("+ot+")"),TAG:RegExp("^("+ot.replace("w","w*")+")"),ATTR:RegExp("^"+st),PSEUDO:RegExp("^"+ut),CHILD:RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+it+"*(even|odd|(([+-]|)(\\d*)n|)"+it+"*(?:([+-]|)"+it+"*(\\d+)|))"+it+"*\\)|)","i"),bool:RegExp("^(?:"+rt+")$","i"),needsContext:RegExp("^"+it+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+it+"*((?:-\\d)?\\d*)"+it+"*\\)|)(?=[^-]|$)","i")},vt=/^[^{]+\{\s*\[native \w/,bt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,xt=/^(?:input|select|textarea|button)$/i,Tt=/^h\d$/i,wt=/'|\\/g,Ct=RegExp("\\\\([\\da-f]{1,6}"+it+"?|("+it+")|.)","ig"),Nt=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{et.apply(Q=tt.call(R.childNodes),R.childNodes),Q[R.childNodes.length].nodeType}catch(kt){et={apply:Q.length?function(e,t){Z.apply(e,tt.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}S=n.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?"HTML"!==t.nodeName:!1},C=n.support={},L=n.setDocument=function(e){var n=e?e.ownerDocument||e:R,r=n.defaultView;
|
||||
return n!==H&&9===n.nodeType&&n.documentElement?(H=n,q=n.documentElement,_=!S(n),r&&r.attachEvent&&r!==r.top&&r.attachEvent("onbeforeunload",function(){L()}),C.attributes=o(function(e){return e.className="i",!e.getAttribute("className")}),C.getElementsByTagName=o(function(e){return e.appendChild(n.createComment("")),!e.getElementsByTagName("*").length}),C.getElementsByClassName=o(function(e){return e.innerHTML="<div class='a'></div><div class='a i'></div>",e.firstChild.className="i",2===e.getElementsByClassName("i").length
|
||||
}),C.getById=o(function(e){return q.appendChild(e).id=P,!n.getElementsByName||!n.getElementsByName(P).length}),C.getById?(k.find.ID=function(e,t){if(typeof t.getElementById!==Y&&_){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},k.filter.ID=function(e){var t=e.replace(Ct,Nt);return function(e){return e.getAttribute("id")===t}}):(delete k.find.ID,k.filter.ID=function(e){var t=e.replace(Ct,Nt);return function(e){var n=typeof e.getAttributeNode!==Y&&e.getAttributeNode("id");return n&&n.value===t
|
||||
}}),k.find.TAG=C.getElementsByTagName?function(e,n){return typeof n.getElementsByTagName!==Y?n.getElementsByTagName(e):t}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},k.find.CLASS=C.getElementsByClassName&&function(e,n){return typeof n.getElementsByClassName!==Y&&_?n.getElementsByClassName(e):t},O=[],M=[],(C.qsa=vt.test(n.querySelectorAll))&&(o(function(e){e.innerHTML="<select><option selected=''></option></select>",e.querySelectorAll("[selected]").length||M.push("\\["+it+"*(?:value|"+rt+")"),e.querySelectorAll(":checked").length||M.push(":checked")
|
||||
}),o(function(e){var t=n.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("t",""),e.querySelectorAll("[t^='']").length&&M.push("[*^$]="+it+"*(?:''|\"\")"),e.querySelectorAll(":enabled").length||M.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),M.push(",.*:")})),(C.matchesSelector=vt.test(F=q.webkitMatchesSelector||q.mozMatchesSelector||q.oMatchesSelector||q.msMatchesSelector))&&o(function(e){C.disconnectedMatch=F.call(e,"div"),F.call(e,"[s!='']:x"),O.push("!=",ut)
|
||||
}),M=M.length&&RegExp(M.join("|")),O=O.length&&RegExp(O.join("|")),B=vt.test(q.contains)||q.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)for(;t=t.parentNode;)if(t===e)return!0;return!1},V=q.compareDocumentPosition?function(e,t){if(e===t)return U=!0,0;var r=t.compareDocumentPosition&&e.compareDocumentPosition&&e.compareDocumentPosition(t);
|
||||
return r?1&r||!C.sortDetached&&t.compareDocumentPosition(e)===r?e===n||B(R,e)?-1:t===n||B(R,t)?1:D?nt.call(D,e)-nt.call(D,t):0:4&r?-1:1:e.compareDocumentPosition?-1:1}:function(e,t){var r,i=0,o=e.parentNode,a=t.parentNode,u=[e],l=[t];if(e===t)return U=!0,0;if(!o||!a)return e===n?-1:t===n?1:o?-1:a?1:D?nt.call(D,e)-nt.call(D,t):0;if(o===a)return s(e,t);for(r=e;r=r.parentNode;)u.unshift(r);for(r=t;r=r.parentNode;)l.unshift(r);for(;u[i]===l[i];)i++;return i?s(u[i],l[i]):u[i]===R?-1:l[i]===R?1:0},n):H
|
||||
},n.matches=function(e,t){return n(e,null,null,t)},n.matchesSelector=function(e,t){if((e.ownerDocument||e)!==H&&L(e),t=t.replace(ht,"='$1']"),!(!C.matchesSelector||!_||O&&O.test(t)||M&&M.test(t)))try{var r=F.call(e,t);if(r||C.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(i){}return n(t,H,null,[e]).length>0},n.contains=function(e,t){return(e.ownerDocument||e)!==H&&L(e),B(e,t)},n.attr=function(e,n){(e.ownerDocument||e)!==H&&L(e);var r=k.attrHandle[n.toLowerCase()],i=r&&G.call(k.attrHandle,n.toLowerCase())?r(e,n,!_):t;
|
||||
return i===t?C.attributes||!_?e.getAttribute(n):(i=e.getAttributeNode(n))&&i.specified?i.value:null:i},n.error=function(e){throw Error("Syntax error, unrecognized expression: "+e)},n.uniqueSort=function(e){var t,n=[],r=0,i=0;if(U=!C.detectDuplicates,D=!C.sortStable&&e.slice(0),e.sort(V),U){for(;t=e[i++];)t===e[i]&&(r=n.push(i));for(;r--;)e.splice(n[r],1)}return e},E=n.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+=E(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r];r++)n+=E(t);return n},k=n.selectors={cacheLength:50,createPseudo:i,match:yt,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(Ct,Nt),e[3]=(e[4]||e[5]||"").replace(Ct,Nt),"~="===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]||n.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]&&n.error(e[0]),e
|
||||
},PSEUDO:function(e){var n,r=!e[5]&&e[2];return yt.CHILD.test(e[0])?null:(e[3]&&e[4]!==t?e[2]=e[4]:r&>.test(r)&&(n=p(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(Ct,Nt).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=I[e+" "];return t||(t=RegExp("(^|"+it+")"+e+"("+it+"|$)"))&&I(e,function(e){return t.test("string"==typeof e.className&&e.className||typeof e.getAttribute!==Y&&e.getAttribute("class")||"")
|
||||
})},ATTR:function(e,t,r){return function(i){var o=n.attr(i,e);return null==o?"!="===t:t?(o+="","="===t?o===r:"!="===t?o!==r:"^="===t?r&&0===o.indexOf(r):"*="===t?r&&o.indexOf(r)>-1:"$="===t?r&&o.slice(-r.length)===r:"~="===t?(" "+o+" ").indexOf(r)>-1:"|="===t?o===r||o.slice(0,r.length+1)===r+"-":!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,u){var l,c,f,p,d,h,g=o!==a?"nextSibling":"previousSibling",m=t.parentNode,y=s&&t.nodeName.toLowerCase(),v=!u&&!s;
|
||||
if(m){if(o){for(;g;){for(f=t;f=f[g];)if(s?f.nodeName.toLowerCase()===y:1===f.nodeType)return!1;h=g="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?m.firstChild:m.lastChild],a&&v){for(c=m[P]||(m[P]={}),l=c[e]||[],d=l[0]===W&&l[1],p=l[0]===W&&l[2],f=d&&m.childNodes[d];f=++d&&f&&f[g]||(p=d=0)||h.pop();)if(1===f.nodeType&&++p&&f===t){c[e]=[W,d,p];break}}else if(v&&(l=(t[P]||(t[P]={}))[e])&&l[0]===W)p=l[1];else for(;(f=++d&&f&&f[g]||(p=d=0)||h.pop())&&((s?f.nodeName.toLowerCase()!==y:1!==f.nodeType)||!++p||(v&&((f[P]||(f[P]={}))[e]=[W,p]),f!==t)););return p-=i,p===r||0===p%r&&p/r>=0
|
||||
}}},PSEUDO:function(e,t){var r,o=k.pseudos[e]||k.setFilters[e.toLowerCase()]||n.error("unsupported pseudo: "+e);return o[P]?o(t):o.length>1?(r=[e,e,"",t],k.setFilters.hasOwnProperty(e.toLowerCase())?i(function(e,n){for(var r,i=o(e,t),a=i.length;a--;)r=nt.call(e,i[a]),e[r]=!(n[r]=i[a])}):function(e){return o(e,0,r)}):o}},pseudos:{not:i(function(e){var t=[],n=[],r=A(e.replace(lt,"$1"));return r[P]?i(function(e,t,n,i){for(var o,a=r(e,null,i,[]),s=e.length;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:i(function(e){return function(t){return n(e,t).length>0}}),contains:i(function(e){return function(t){return(t.textContent||t.innerText||E(t)).indexOf(e)>-1}}),lang:i(function(e){return mt.test(e||"")||n.error("unsupported lang: "+e),e=e.replace(Ct,Nt).toLowerCase(),function(t){var n;do if(n=_?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===q},focus:function(e){return e===H.activeElement&&(!H.hasFocus||H.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!k.pseudos.empty(e)},header:function(e){return Tt.test(e.nodeName)},input:function(e){return xt.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:c(function(){return[0]}),last:c(function(e,t){return[t-1]}),eq:c(function(e,t,n){return[0>n?n+t:n]}),even:c(function(e,t){for(var n=0;t>n;n+=2)e.push(n);
|
||||
return e}),odd:c(function(e,t){for(var n=1;t>n;n+=2)e.push(n);return e}),lt:c(function(e,t,n){for(var r=0>n?n+t:n;--r>=0;)e.push(r);return e}),gt:c(function(e,t,n){for(var r=0>n?n+t:n;t>++r;)e.push(r);return e})}},k.pseudos.nth=k.pseudos.eq;for(w in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})k.pseudos[w]=u(w);for(w in{submit:!0,reset:!0})k.pseudos[w]=l(w);f.prototype=k.filters=k.pseudos,k.setFilters=new f,A=n.compile=function(e,t){var n,r=[],i=[],o=X[e+" "];if(!o){for(t||(t=p(e)),n=t.length;n--;)o=v(t[n]),o[P]?r.push(o):i.push(o);
|
||||
o=X(e,b(i,r))}return o},C.sortStable=P.split("").sort(V).join("")===P,C.detectDuplicates=U,L(),C.sortDetached=o(function(e){return 1&e.compareDocumentPosition(H.createElement("div"))}),o(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||a("type|href|height|width",function(e,n,r){return r?t:e.getAttribute(n,"type"===n.toLowerCase()?1:2)}),C.attributes&&o(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")
|
||||
})||a("value",function(e,n,r){return r||"input"!==e.nodeName.toLowerCase()?t:e.defaultValue}),o(function(e){return null==e.getAttribute("disabled")})||a(rt,function(e,n,r){var i;return r?t:(i=e.getAttributeNode(n))&&i.specified?i.value:e[n]===!0?n.toLowerCase():null}),ct.find=n,ct.expr=n.selectors,ct.expr[":"]=ct.expr.pseudos,ct.unique=n.uniqueSort,ct.text=n.getText,ct.isXMLDoc=n.isXML,ct.contains=n.contains}(e);var kt={};ct.Callbacks=function(e){e="string"==typeof e?kt[e]||r(e):ct.extend({},e);var n,i,o,a,s,u,l=[],c=!e.once&&[],f=function(t){for(i=e.memory&&t,o=!0,s=u||0,u=0,a=l.length,n=!0;l&&a>s;s++)if(l[s].apply(t[0],t[1])===!1&&e.stopOnFalse){i=!1;
|
||||
break}n=!1,l&&(c?c.length&&f(c.shift()):i?l=[]:p.disable())},p={add:function(){if(l){var t=l.length;!function r(t){ct.each(t,function(t,n){var i=ct.type(n);"function"===i?e.unique&&p.has(n)||l.push(n):n&&n.length&&"string"!==i&&r(n)})}(arguments),n?a=l.length:i&&(u=t,f(i))}return this},remove:function(){return l&&ct.each(arguments,function(e,t){for(var r;(r=ct.inArray(t,l,r))>-1;)l.splice(r,1),n&&(a>=r&&a--,s>=r&&s--)}),this},has:function(e){return e?ct.inArray(e,l)>-1:!(!l||!l.length)},empty:function(){return l=[],a=0,this
|
||||
},disable:function(){return l=c=i=t,this},disabled:function(){return!l},lock:function(){return c=t,i||p.disable(),this},locked:function(){return!c},fireWith:function(e,t){return!l||o&&!c||(t=t||[],t=[e,t.slice?t.slice():t],n?c.push(t):f(t)),this},fire:function(){return p.fireWith(this,arguments),this},fired:function(){return!!o}};return p},ct.extend({Deferred:function(e){var t=[["resolve","done",ct.Callbacks("once memory"),"resolved"],["reject","fail",ct.Callbacks("once memory"),"rejected"],["notify","progress",ct.Callbacks("memory")]],n="pending",r={state:function(){return n
|
||||
},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return ct.Deferred(function(n){ct.each(t,function(t,o){var a=o[0],s=ct.isFunction(e[t])&&e[t];i[o[1]](function(){var e=s&&s.apply(this,arguments);e&&ct.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?ct.extend(e,r):r}},i={};return r.pipe=r.then,ct.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,n,r,i=0,o=ot.call(arguments),a=o.length,s=1!==a||e&&ct.isFunction(e.promise)?a:0,u=1===s?e:ct.Deferred(),l=function(e,n,r){return function(i){n[e]=this,r[e]=arguments.length>1?ot.call(arguments):i,r===t?u.notifyWith(n,r):--s||u.resolveWith(n,r)}};if(a>1)for(t=Array(a),n=Array(a),r=Array(a);a>i;i++)o[i]&&ct.isFunction(o[i].promise)?o[i].promise().done(l(i,r,o)).fail(u.reject).progress(l(i,n,t)):--s;
|
||||
return s||u.resolveWith(r,o),u.promise()}}),ct.support=function(t){var n,r,i,o,a,s,u,l,c,f=G.createElement("div");if(f.setAttribute("className","t"),f.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",n=f.getElementsByTagName("*")||[],r=f.getElementsByTagName("a")[0],!r||!r.style||!n.length)return t;o=G.createElement("select"),s=o.appendChild(G.createElement("option")),i=f.getElementsByTagName("input")[0],r.style.cssText="top:1px;float:left;opacity:.5",t.getSetAttribute="t"!==f.className,t.leadingWhitespace=3===f.firstChild.nodeType,t.tbody=!f.getElementsByTagName("tbody").length,t.htmlSerialize=!!f.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=!!i.value,t.optSelected=s.selected,t.enctype=!!G.createElement("form").enctype,t.html5Clone="<:nav></:nav>"!==G.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,i.checked=!0,t.noCloneChecked=i.cloneNode(!0).checked,o.disabled=!0,t.optDisabled=!s.disabled;
|
||||
try{delete f.test}catch(p){t.deleteExpando=!1}i=G.createElement("input"),i.setAttribute("value",""),t.input=""===i.getAttribute("value"),i.value="t",i.setAttribute("type","radio"),t.radioValue="t"===i.value,i.setAttribute("checked","t"),i.setAttribute("name","t"),a=G.createDocumentFragment(),a.appendChild(i),t.appendChecked=i.checked,t.checkClone=a.cloneNode(!0).cloneNode(!0).lastChild.checked,f.attachEvent&&(f.attachEvent("onclick",function(){t.noCloneEvent=!1}),f.cloneNode(!0).click());for(c in{submit:!0,change:!0,focusin:!0})f.setAttribute(u="on"+c,"t"),t[c+"Bubbles"]=u in e||f.attributes[u].expando===!1;
|
||||
f.style.backgroundClip="content-box",f.cloneNode(!0).style.backgroundClip="",t.clearCloneStyle="content-box"===f.style.backgroundClip;for(c in ct(t))break;return t.ownLast="0"!==c,ct(function(){var n,r,i,o="padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;",a=G.getElementsByTagName("body")[0];a&&(n=G.createElement("div"),n.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",a.appendChild(n).appendChild(f),f.innerHTML="<table><tr><td></td><td>t</td></tr></table>",i=f.getElementsByTagName("td"),i[0].style.cssText="padding:0;margin:0;border:0;display:none",l=0===i[0].offsetHeight,i[0].style.display="",i[1].style.display="none",t.reliableHiddenOffsets=l&&0===i[0].offsetHeight,f.innerHTML="",f.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%;",ct.swap(a,null!=a.style.zoom?{zoom:1}:{},function(){t.boxSizing=4===f.offsetWidth
|
||||
}),e.getComputedStyle&&(t.pixelPosition="1%"!==(e.getComputedStyle(f,null)||{}).top,t.boxSizingReliable="4px"===(e.getComputedStyle(f,null)||{width:"4px"}).width,r=f.appendChild(G.createElement("div")),r.style.cssText=f.style.cssText=o,r.style.marginRight=r.style.width="0",f.style.width="1px",t.reliableMarginRight=!parseFloat((e.getComputedStyle(r,null)||{}).marginRight)),typeof f.style.zoom!==Y&&(f.innerHTML="",f.style.cssText=o+"width:1px;padding:1px;display:inline;zoom:1",t.inlineBlockNeedsLayout=3===f.offsetWidth,f.style.display="block",f.innerHTML="<div></div>",f.firstChild.style.width="5px",t.shrinkWrapBlocks=3!==f.offsetWidth,t.inlineBlockNeedsLayout&&(a.style.zoom=1)),a.removeChild(n),n=f=i=r=null)
|
||||
}),n=o=a=s=r=i=null,t}({});var Et=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,St=/([A-Z])/g;ct.extend({cache:{},noData:{applet:!0,embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(e){return e=e.nodeType?ct.cache[e[ct.expando]]:e[ct.expando],!!e&&!s(e)},data:function(e,t,n){return i(e,t,n)},removeData:function(e,t){return o(e,t)},_data:function(e,t,n){return i(e,t,n,!0)},_removeData:function(e,t){return o(e,t,!0)},acceptData:function(e){if(e.nodeType&&1!==e.nodeType&&9!==e.nodeType)return!1;
|
||||
var t=e.nodeName&&ct.noData[e.nodeName.toLowerCase()];return!t||t!==!0&&e.getAttribute("classid")===t}}),ct.fn.extend({data:function(e,n){var r,i,o=null,s=0,u=this[0];if(e===t){if(this.length&&(o=ct.data(u),1===u.nodeType&&!ct._data(u,"parsedAttrs"))){for(r=u.attributes;r.length>s;s++)i=r[s].name,0===i.indexOf("data-")&&(i=ct.camelCase(i.slice(5)),a(u,i,o[i]));ct._data(u,"parsedAttrs",!0)}return o}return"object"==typeof e?this.each(function(){ct.data(this,e)}):arguments.length>1?this.each(function(){ct.data(this,e,n)
|
||||
}):u?a(u,e,ct.data(u,e)):null},removeData:function(e){return this.each(function(){ct.removeData(this,e)})}}),ct.extend({queue:function(e,n,r){var i;return e?(n=(n||"fx")+"queue",i=ct._data(e,n),r&&(!i||ct.isArray(r)?i=ct._data(e,n,ct.makeArray(r)):i.push(r)),i||[]):t},dequeue:function(e,t){t=t||"fx";var n=ct.queue(e,t),r=n.length,i=n.shift(),o=ct._queueHooks(e,t),a=function(){ct.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 ct._data(e,n)||ct._data(e,n,{empty:ct.Callbacks("once memory").add(function(){ct._removeData(e,t+"queue"),ct._removeData(e,n)})})}}),ct.fn.extend({queue:function(e,n){var r=2;return"string"!=typeof e&&(n=e,e="fx",r--),r>arguments.length?ct.queue(this[0],e):n===t?this:this.each(function(){var t=ct.queue(this,e,n);ct._queueHooks(this,e),"fx"===e&&"inprogress"!==t[0]&&ct.dequeue(this,e)})},dequeue:function(e){return this.each(function(){ct.dequeue(this,e)
|
||||
})},delay:function(e,t){return e=ct.fx?ct.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=ct.Deferred(),a=this,s=this.length,u=function(){--i||o.resolveWith(a,[a])};for("string"!=typeof e&&(n=e,e=t),e=e||"fx";s--;)r=ct._data(a[s],e+"queueHooks"),r&&r.empty&&(i++,r.empty.add(u));return u(),o.promise(n)}});var At,jt,Dt=/[\t\r\n\f]/g,Lt=/\r/g,Ht=/^(?:input|select|textarea|button|object)$/i,qt=/^(?:a|area)$/i,_t=/^(?:checked|selected)$/i,Mt=ct.support.getSetAttribute,Ot=ct.support.input;
|
||||
ct.fn.extend({attr:function(e,t){return ct.access(this,ct.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){ct.removeAttr(this,e)})},prop:function(e,t){return ct.access(this,ct.prop,e,t,arguments.length>1)},removeProp:function(e){return e=ct.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,u="string"==typeof e&&e;if(ct.isFunction(e))return this.each(function(t){ct(this).addClass(e.call(this,t,this.className))
|
||||
});if(u)for(t=(e||"").match(pt)||[];s>a;a++)if(n=this[a],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(Dt," "):" ")){for(o=0;i=t[o++];)0>r.indexOf(" "+i+" ")&&(r+=i+" ");n.className=ct.trim(r)}return this},removeClass:function(e){var t,n,r,i,o,a=0,s=this.length,u=0===arguments.length||"string"==typeof e&&e;if(ct.isFunction(e))return this.each(function(t){ct(this).removeClass(e.call(this,t,this.className))});if(u)for(t=(e||"").match(pt)||[];s>a;a++)if(n=this[a],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(Dt," "):"")){for(o=0;i=t[o++];)for(;r.indexOf(" "+i+" ")>=0;)r=r.replace(" "+i+" "," ");
|
||||
n.className=e?ct.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):this.each(ct.isFunction(e)?function(n){ct(this).toggleClass(e.call(this,n,this.className,t),t)}:function(){if("string"===n)for(var t,r=0,i=ct(this),o=e.match(pt)||[];t=o[r++];)i.hasClass(t)?i.removeClass(t):i.addClass(t);else(n===Y||"boolean"===n)&&(this.className&&ct._data(this,"__className__",this.className),this.className=this.className||e===!1?"":ct._data(this,"__className__")||"")
|
||||
})},hasClass:function(e){for(var t=" "+e+" ",n=0,r=this.length;r>n;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(Dt," ").indexOf(t)>=0)return!0;return!1},val:function(e){var n,r,i,o=this[0];return arguments.length?(i=ct.isFunction(e),this.each(function(n){var o;1===this.nodeType&&(o=i?e.call(this,n,ct(this).val()):e,null==o?o="":"number"==typeof o?o+="":ct.isArray(o)&&(o=ct.map(o,function(e){return null==e?"":e+""})),r=ct.valHooks[this.type]||ct.valHooks[this.nodeName.toLowerCase()],r&&"set"in r&&r.set(this,o,"value")!==t||(this.value=o))
|
||||
})):o?(r=ct.valHooks[o.type]||ct.valHooks[o.nodeName.toLowerCase()],r&&"get"in r&&(n=r.get(o,"value"))!==t?n:(n=o.value,"string"==typeof n?n.replace(Lt,""):null==n?"":n)):void 0}}),ct.extend({valHooks:{option:{get:function(e){var t=ct.find.attr(e,"value");return null!=t?t:e.text}},select:{get:function(e){for(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,u=0>i?s:o?i:0;s>u;u++)if(n=r[u],!(!n.selected&&u!==i||(ct.support.optDisabled?n.disabled:null!==n.getAttribute("disabled"))||n.parentNode.disabled&&ct.nodeName(n.parentNode,"optgroup"))){if(t=ct(n).val(),o)return t;
|
||||
a.push(t)}return a},set:function(e,t){for(var n,r,i=e.options,o=ct.makeArray(t),a=i.length;a--;)r=i[a],(r.selected=ct.inArray(ct(r).val(),o)>=0)&&(n=!0);return n||(e.selectedIndex=-1),o}}},attr:function(e,n,r){var i,o,a=e.nodeType;return e&&3!==a&&8!==a&&2!==a?typeof e.getAttribute===Y?ct.prop(e,n,r):(1===a&&ct.isXMLDoc(e)||(n=n.toLowerCase(),i=ct.attrHooks[n]||(ct.expr.match.bool.test(n)?jt:At)),r===t?i&&"get"in i&&null!==(o=i.get(e,n))?o:(o=ct.find.attr(e,n),null==o?t:o):null!==r?i&&"set"in i&&(o=i.set(e,r,n))!==t?o:(e.setAttribute(n,r+""),r):(ct.removeAttr(e,n),t)):void 0
|
||||
},removeAttr:function(e,t){var n,r,i=0,o=t&&t.match(pt);if(o&&1===e.nodeType)for(;n=o[i++];)r=ct.propFix[n]||n,ct.expr.match.bool.test(n)?Ot&&Mt||!_t.test(n)?e[r]=!1:e[ct.camelCase("default-"+n)]=e[r]=!1:ct.attr(e,n,""),e.removeAttribute(Mt?n:r)},attrHooks:{type:{set:function(e,t){if(!ct.support.radioValue&&"radio"===t&&ct.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;
|
||||
return e&&3!==s&&8!==s&&2!==s?(a=1!==s||!ct.isXMLDoc(e),a&&(n=ct.propFix[n]||n,o=ct.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]):void 0},propHooks:{tabIndex:{get:function(e){var t=ct.find.attr(e,"tabindex");return t?parseInt(t,10):Ht.test(e.nodeName)||qt.test(e.nodeName)&&e.href?0:-1}}}}),jt={set:function(e,t,n){return t===!1?ct.removeAttr(e,n):Ot&&Mt||!_t.test(n)?e.setAttribute(!Mt&&ct.propFix[n]||n,n):e[ct.camelCase("default-"+n)]=e[n]=!0,n
|
||||
}},ct.each(ct.expr.match.bool.source.match(/\w+/g),function(e,n){var r=ct.expr.attrHandle[n]||ct.find.attr;ct.expr.attrHandle[n]=Ot&&Mt||!_t.test(n)?function(e,n,i){var o=ct.expr.attrHandle[n],a=i?t:(ct.expr.attrHandle[n]=t)!=r(e,n,i)?n.toLowerCase():null;return ct.expr.attrHandle[n]=o,a}:function(e,n,r){return r?t:e[ct.camelCase("default-"+n)]?n.toLowerCase():null}}),Ot&&Mt||(ct.attrHooks.value={set:function(e,n,r){return ct.nodeName(e,"input")?(e.defaultValue=n,t):At&&At.set(e,n,r)}}),Mt||(At={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}},ct.expr.attrHandle.id=ct.expr.attrHandle.name=ct.expr.attrHandle.coords=function(e,n,r){var i;return r?t:(i=e.getAttributeNode(n))&&""!==i.value?i.value:null},ct.valHooks.button={get:function(e,n){var r=e.getAttributeNode(n);return r&&r.specified?r.value:t},set:At.set},ct.attrHooks.contenteditable={set:function(e,t,n){At.set(e,""===t?!1:t,n)}},ct.each(["width","height"],function(e,n){ct.attrHooks[n]={set:function(e,r){return""===r?(e.setAttribute(n,"auto"),r):t
|
||||
}}})),ct.support.hrefNormalized||ct.each(["href","src"],function(e,t){ct.propHooks[t]={get:function(e){return e.getAttribute(t,4)}}}),ct.support.style||(ct.attrHooks.style={get:function(e){return e.style.cssText||t},set:function(e,t){return e.style.cssText=t+""}}),ct.support.optSelected||(ct.propHooks.selected={get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}}),ct.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){ct.propFix[this.toLowerCase()]=this
|
||||
}),ct.support.enctype||(ct.propFix.enctype="encoding"),ct.each(["radio","checkbox"],function(){ct.valHooks[this]={set:function(e,n){return ct.isArray(n)?e.checked=ct.inArray(ct(e).val(),n)>=0:t}},ct.support.checkOn||(ct.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var Ft=/^(?:input|select|textarea)$/i,Bt=/^key/,Pt=/^(?:mouse|contextmenu)|click/,Rt=/^(?:focusinfocus|focusoutblur)$/,Wt=/^([^.]*)(?:\.(.+)|)$/;ct.event={global:{},add:function(e,n,r,i,o){var a,s,u,l,c,f,p,d,h,g,m,y=ct._data(e);
|
||||
if(y){for(r.handler&&(l=r,r=l.handler,o=l.selector),r.guid||(r.guid=ct.guid++),(s=y.events)||(s=y.events={}),(f=y.handle)||(f=y.handle=function(e){return typeof ct===Y||e&&ct.event.triggered===e.type?t:ct.event.dispatch.apply(f.elem,arguments)},f.elem=e),n=(n||"").match(pt)||[""],u=n.length;u--;)a=Wt.exec(n[u])||[],h=m=a[1],g=(a[2]||"").split(".").sort(),h&&(c=ct.event.special[h]||{},h=(o?c.delegateType:c.bindType)||h,c=ct.event.special[h]||{},p=ct.extend({type:h,origType:m,data:i,handler:r,guid:r.guid,selector:o,needsContext:o&&ct.expr.match.needsContext.test(o),namespace:g.join(".")},l),(d=s[h])||(d=s[h]=[],d.delegateCount=0,c.setup&&c.setup.call(e,i,g,f)!==!1||(e.addEventListener?e.addEventListener(h,f,!1):e.attachEvent&&e.attachEvent("on"+h,f))),c.add&&(c.add.call(e,p),p.handler.guid||(p.handler.guid=r.guid)),o?d.splice(d.delegateCount++,0,p):d.push(p),ct.event.global[h]=!0);
|
||||
e=null}},remove:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,m=ct.hasData(e)&&ct._data(e);if(m&&(c=m.events)){for(t=(t||"").match(pt)||[""],l=t.length;l--;)if(s=Wt.exec(t[l])||[],d=g=s[1],h=(s[2]||"").split(".").sort(),d){for(f=ct.event.special[d]||{},d=(r?f.delegateType:f.bindType)||d,p=c[d]||[],s=s[2]&&RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),u=o=p.length;o--;)a=p[o],!i&&g!==a.origType||n&&n.guid!==a.guid||s&&!s.test(a.namespace)||r&&r!==a.selector&&("**"!==r||!a.selector)||(p.splice(o,1),a.selector&&p.delegateCount--,f.remove&&f.remove.call(e,a));
|
||||
u&&!p.length&&(f.teardown&&f.teardown.call(e,h,m.handle)!==!1||ct.removeEvent(e,d,m.handle),delete c[d])}else for(d in c)ct.event.remove(e,d+t[l],n,r,!0);ct.isEmptyObject(c)&&(delete m.handle,ct._removeData(e,"events"))}},trigger:function(n,r,i,o){var a,s,u,l,c,f,p,d=[i||G],h=ut.call(n,"type")?n.type:n,g=ut.call(n,"namespace")?n.namespace.split("."):[];if(u=f=i=i||G,3!==i.nodeType&&8!==i.nodeType&&!Rt.test(h+ct.event.triggered)&&(h.indexOf(".")>=0&&(g=h.split("."),h=g.shift(),g.sort()),s=0>h.indexOf(":")&&"on"+h,n=n[ct.expando]?n:new ct.Event(h,"object"==typeof n&&n),n.isTrigger=o?2:3,n.namespace=g.join("."),n.namespace_re=n.namespace?RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,n.result=t,n.target||(n.target=i),r=null==r?[n]:ct.makeArray(r,[n]),c=ct.event.special[h]||{},o||!c.trigger||c.trigger.apply(i,r)!==!1)){if(!o&&!c.noBubble&&!ct.isWindow(i)){for(l=c.delegateType||h,Rt.test(l+h)||(u=u.parentNode);u;u=u.parentNode)d.push(u),f=u;
|
||||
f===(i.ownerDocument||G)&&d.push(f.defaultView||f.parentWindow||e)}for(p=0;(u=d[p++])&&!n.isPropagationStopped();)n.type=p>1?l:c.bindType||h,a=(ct._data(u,"events")||{})[n.type]&&ct._data(u,"handle"),a&&a.apply(u,r),a=s&&u[s],a&&ct.acceptData(u)&&a.apply&&a.apply(u,r)===!1&&n.preventDefault();if(n.type=h,!o&&!n.isDefaultPrevented()&&(!c._default||c._default.apply(d.pop(),r)===!1)&&ct.acceptData(i)&&s&&i[h]&&!ct.isWindow(i)){f=i[s],f&&(i[s]=null),ct.event.triggered=h;try{i[h]()}catch(m){}ct.event.triggered=t,f&&(i[s]=f)
|
||||
}return n.result}},dispatch:function(e){e=ct.event.fix(e);var n,r,i,o,a,s=[],u=ot.call(arguments),l=(ct._data(this,"events")||{})[e.type]||[],c=ct.event.special[e.type]||{};if(u[0]=e,e.delegateTarget=this,!c.preDispatch||c.preDispatch.call(this,e)!==!1){for(s=ct.event.handlers.call(this,e,l),n=0;(o=s[n++])&&!e.isPropagationStopped();)for(e.currentTarget=o.elem,a=0;(i=o.handlers[a++])&&!e.isImmediatePropagationStopped();)(!e.namespace_re||e.namespace_re.test(i.namespace))&&(e.handleObj=i,e.data=i.data,r=((ct.event.special[i.origType]||{}).handle||i.handler).apply(o.elem,u),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=[],u=n.delegateCount,l=e.target;if(u&&l.nodeType&&(!e.button||"click"!==e.type))for(;l!=this;l=l.parentNode||this)if(1===l.nodeType&&(l.disabled!==!0||"click"!==e.type)){for(o=[],a=0;u>a;a++)i=n[a],r=i.selector+" ",o[r]===t&&(o[r]=i.needsContext?ct(r,this).index(l)>=0:ct.find(r,this,null,[l]).length),o[r]&&o.push(i);o.length&&s.push({elem:l,handlers:o})}return n.length>u&&s.push({elem:this,handlers:n.slice(u)}),s
|
||||
},fix:function(e){if(e[ct.expando])return e;var t,n,r,i=e.type,o=e,a=this.fixHooks[i];for(a||(this.fixHooks[i]=a=Pt.test(i)?this.mouseHooks:Bt.test(i)?this.keyHooks:{}),r=a.props?this.props.concat(a.props):this.props,e=new ct.Event(o),t=r.length;t--;)n=r[t],e[n]=o[n];return e.target||(e.target=o.srcElement||G),3===e.target.nodeType&&(e.target=e.target.parentNode),e.metaKey=!!e.metaKey,a.filter?a.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,a=n.button,s=n.fromElement;return null==e.pageX&&null!=n.clientX&&(i=e.target.ownerDocument||G,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&&s&&(e.relatedTarget=s===e.target?n.toElement:s),e.which||a===t||(e.which=1&a?1:2&a?3:4&a?2:0),e
|
||||
}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==c()&&this.focus)try{return this.focus(),!1}catch(e){}},delegateType:"focusin"},blur:{trigger:function(){return this===c()&&this.blur?(this.blur(),!1):t},delegateType:"focusout"},click:{trigger:function(){return ct.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):t},_default:function(e){return ct.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){e.result!==t&&(e.originalEvent.returnValue=e.result)
|
||||
}}},simulate:function(e,t,n,r){var i=ct.extend(new ct.Event,n,{type:e,isSimulated:!0,originalEvent:{}});r?ct.event.trigger(i,null,t):ct.event.dispatch.call(t,i),i.isDefaultPrevented()&&n.preventDefault()}},ct.removeEvent=G.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]===Y&&(e[r]=null),e.detachEvent(r,n))},ct.Event=function(e,n){return this instanceof ct.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||e.returnValue===!1||e.getPreventDefault&&e.getPreventDefault()?u:l):this.type=e,n&&ct.extend(this,n),this.timeStamp=e&&e.timeStamp||ct.now(),this[ct.expando]=!0,t):new ct.Event(e,n)
|
||||
},ct.Event.prototype={isDefaultPrevented:l,isPropagationStopped:l,isImmediatePropagationStopped:l,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=u,e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=u,e&&(e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=u,this.stopPropagation()}},ct.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(e,t){ct.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,o=e.handleObj;
|
||||
return(!i||i!==r&&!ct.contains(r,i))&&(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),ct.support.submitBubbles||(ct.event.special.submit={setup:function(){return ct.nodeName(this,"form")?!1:(ct.event.add(this,"click._submit keypress._submit",function(e){var n=e.target,r=ct.nodeName(n,"input")||ct.nodeName(n,"button")?n.form:t;r&&!ct._data(r,"submitBubbles")&&(ct.event.add(r,"submit._submit",function(e){e._submit_bubble=!0}),ct._data(r,"submitBubbles",!0))}),t)},postDispatch:function(e){e._submit_bubble&&(delete e._submit_bubble,this.parentNode&&!e.isTrigger&&ct.event.simulate("submit",this.parentNode,e,!0))
|
||||
},teardown:function(){return ct.nodeName(this,"form")?!1:(ct.event.remove(this,"._submit"),t)}}),ct.support.changeBubbles||(ct.event.special.change={setup:function(){return Ft.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(ct.event.add(this,"propertychange._change",function(e){"checked"===e.originalEvent.propertyName&&(this._just_changed=!0)}),ct.event.add(this,"click._change",function(e){this._just_changed&&!e.isTrigger&&(this._just_changed=!1),ct.event.simulate("change",this,e,!0)
|
||||
})),!1):(ct.event.add(this,"beforeactivate._change",function(e){var t=e.target;Ft.test(t.nodeName)&&!ct._data(t,"changeBubbles")&&(ct.event.add(t,"change._change",function(e){!this.parentNode||e.isSimulated||e.isTrigger||ct.event.simulate("change",this.parentNode,e,!0)}),ct._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 ct.event.remove(this,"._change"),!Ft.test(this.nodeName)
|
||||
}}),ct.support.focusinBubbles||ct.each({focus:"focusin",blur:"focusout"},function(e,t){var n=0,r=function(e){ct.event.simulate(t,e.target,ct.event.fix(e),!0)};ct.event.special[t]={setup:function(){0===n++&&G.addEventListener(e,r,!0)},teardown:function(){0===--n&&G.removeEventListener(e,r,!0)}}}),ct.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=l;
|
||||
else if(!i)return this;return 1===o&&(s=i,i=function(e){return ct().off(e),s.apply(this,arguments)},i.guid=s.guid||(s.guid=ct.guid++)),this.each(function(){ct.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,ct(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=l),this.each(function(){ct.event.remove(this,e,r,n)
|
||||
})},trigger:function(e,t){return this.each(function(){ct.event.trigger(e,t,this)})},triggerHandler:function(e,n){var r=this[0];return r?ct.event.trigger(e,n,r,!0):t}});var $t=/^.[^:#\[\.,]*$/,It=/^(?:parents|prev(?:Until|All))/,zt=ct.expr.match.needsContext,Xt={children:!0,contents:!0,next:!0,prev:!0};ct.fn.extend({find:function(e){var t,n=[],r=this,i=r.length;if("string"!=typeof e)return this.pushStack(ct(e).filter(function(){for(t=0;i>t;t++)if(ct.contains(r[t],this))return!0}));for(t=0;i>t;t++)ct.find(e,r[t],n);
|
||||
return n=this.pushStack(i>1?ct.unique(n):n),n.selector=this.selector?this.selector+" "+e:e,n},has:function(e){var t,n=ct(e,this),r=n.length;return this.filter(function(){for(t=0;r>t;t++)if(ct.contains(this,n[t]))return!0})},not:function(e){return this.pushStack(p(this,e||[],!0))},filter:function(e){return this.pushStack(p(this,e||[],!1))},is:function(e){return!!p(this,"string"==typeof e&&zt.test(e)?ct(e):e||[],!1).length},closest:function(e,t){for(var n,r=0,i=this.length,o=[],a=zt.test(e)||"string"!=typeof e?ct(e,t||this.context):0;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&&ct.find.matchesSelector(n,e))){n=o.push(n);
|
||||
break}return this.pushStack(o.length>1?ct.unique(o):o)},index:function(e){return e?"string"==typeof e?ct.inArray(this[0],ct(e)):ct.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?ct(e,t):ct.makeArray(e&&e.nodeType?[e]:e),r=ct.merge(this.get(),n);return this.pushStack(ct.unique(r))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),ct.each({parent:function(e){var t=e.parentNode;
|
||||
return t&&11!==t.nodeType?t:null},parents:function(e){return ct.dir(e,"parentNode")},parentsUntil:function(e,t,n){return ct.dir(e,"parentNode",n)},next:function(e){return f(e,"nextSibling")},prev:function(e){return f(e,"previousSibling")},nextAll:function(e){return ct.dir(e,"nextSibling")},prevAll:function(e){return ct.dir(e,"previousSibling")},nextUntil:function(e,t,n){return ct.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return ct.dir(e,"previousSibling",n)},siblings:function(e){return ct.sibling((e.parentNode||{}).firstChild,e)
|
||||
},children:function(e){return ct.sibling(e.firstChild)},contents:function(e){return ct.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:ct.merge([],e.childNodes)}},function(e,t){ct.fn[e]=function(n,r){var i=ct.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=ct.filter(r,i)),this.length>1&&(Xt[e]||(i=ct.unique(i)),It.test(e)&&(i=i.reverse())),this.pushStack(i)}}),ct.extend({filter:function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?ct.find.matchesSelector(r,e)?[r]:[]:ct.find.matches(e,ct.grep(t,function(e){return 1===e.nodeType
|
||||
}))},dir:function(e,n,r){for(var i=[],o=e[n];o&&9!==o.nodeType&&(r===t||1!==o.nodeType||!ct(o).is(r));)1===o.nodeType&&i.push(o),o=o[n];return i},sibling:function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}});var Ut="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",Vt=/ jQuery\d+="(?:null|\d+)"/g,Yt=RegExp("<(?:"+Ut+")[\\s/>]","i"),Jt=/^\s+/,Gt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,Qt=/<([\w:]+)/,Kt=/<tbody/i,Zt=/<|&#?\w+;/,en=/<(?:script|style|link)/i,tn=/^(?:checkbox|radio)$/i,nn=/checked\s*(?:[^=]|=\s*.checked.)/i,rn=/^$|\/(?:java|ecma)script/i,on=/^true\/(.*)/,an=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,sn={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:ct.support.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},un=d(G),ln=un.appendChild(G.createElement("div"));
|
||||
sn.optgroup=sn.option,sn.tbody=sn.tfoot=sn.colgroup=sn.caption=sn.thead,sn.th=sn.td,ct.fn.extend({text:function(e){return ct.access(this,function(e){return e===t?ct.text(this):this.empty().append((this[0]&&this[0].ownerDocument||G).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=h(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=h(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){for(var n,r=e?ct.filter(e,this):this,i=0;null!=(n=r[i]);i++)t||1!==n.nodeType||ct.cleanData(x(n)),n.parentNode&&(t&&ct.contains(n.ownerDocument,n)&&y(x(n,"script")),n.parentNode.removeChild(n));return this
|
||||
},empty:function(){for(var e,t=0;null!=(e=this[t]);t++){for(1===e.nodeType&&ct.cleanData(x(e,!1));e.firstChild;)e.removeChild(e.firstChild);e.options&&ct.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 ct.clone(this,e,t)})},html:function(e){return ct.access(this,function(e){var n=this[0]||{},r=0,i=this.length;if(e===t)return 1===n.nodeType?n.innerHTML.replace(Vt,""):t;if(!("string"!=typeof e||en.test(e)||!ct.support.htmlSerialize&&Yt.test(e)||!ct.support.leadingWhitespace&&Jt.test(e)||sn[(Qt.exec(e)||["",""])[1].toLowerCase()])){e=e.replace(Gt,"<$1></$2>");
|
||||
try{for(;i>r;r++)n=this[r]||{},1===n.nodeType&&(ct.cleanData(x(n,!1)),n.innerHTML=e);n=0}catch(o){}}n&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=ct.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),ct(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=rt.apply([],e);
|
||||
var r,i,o,a,s,u,l=0,c=this.length,f=this,p=c-1,d=e[0],h=ct.isFunction(d);if(h||!(1>=c||"string"!=typeof d||ct.support.checkClone)&&nn.test(d))return this.each(function(r){var i=f.eq(r);h&&(e[0]=d.call(this,r,i.html())),i.domManip(e,t,n)});if(c&&(u=ct.buildFragment(e,this[0].ownerDocument,!1,!n&&this),r=u.firstChild,1===u.childNodes.length&&(u=r),r)){for(a=ct.map(x(u,"script"),g),o=a.length;c>l;l++)i=u,l!==p&&(i=ct.clone(i,!0,!0),o&&ct.merge(a,x(i,"script"))),t.call(this[l],i,l);if(o)for(s=a[a.length-1].ownerDocument,ct.map(a,m),l=0;o>l;l++)i=a[l],rn.test(i.type||"")&&!ct._data(i,"globalEval")&&ct.contains(s,i)&&(i.src?ct._evalUrl(i.src):ct.globalEval((i.text||i.textContent||i.innerHTML||"").replace(an,"")));
|
||||
u=r=null}return this}}),ct.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){ct.fn[e]=function(e){for(var n,r=0,i=[],o=ct(e),a=o.length-1;a>=r;r++)n=r===a?this:this.clone(!0),ct(o[r])[t](n),it.apply(i,n.get());return this.pushStack(i)}}),ct.extend({clone:function(e,t,n){var r,i,o,a,s,u=ct.contains(e.ownerDocument,e);if(ct.support.html5Clone||ct.isXMLDoc(e)||!Yt.test("<"+e.nodeName+">")?o=e.cloneNode(!0):(ln.innerHTML=e.outerHTML,ln.removeChild(o=ln.firstChild)),!(ct.support.noCloneEvent&&ct.support.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||ct.isXMLDoc(e)))for(r=x(o),s=x(e),a=0;null!=(i=s[a]);++a)r[a]&&b(i,r[a]);
|
||||
if(t)if(n)for(s=s||x(e),r=r||x(o),a=0;null!=(i=s[a]);a++)v(i,r[a]);else v(e,o);return r=x(o,"script"),r.length>0&&y(r,!u&&x(e,"script")),r=s=i=null,o},buildFragment:function(e,t,n,r){for(var i,o,a,s,u,l,c,f=e.length,p=d(t),h=[],g=0;f>g;g++)if(o=e[g],o||0===o)if("object"===ct.type(o))ct.merge(h,o.nodeType?[o]:o);else if(Zt.test(o)){for(s=s||p.appendChild(t.createElement("div")),u=(Qt.exec(o)||["",""])[1].toLowerCase(),c=sn[u]||sn._default,s.innerHTML=c[1]+o.replace(Gt,"<$1></$2>")+c[2],i=c[0];i--;)s=s.lastChild;
|
||||
if(!ct.support.leadingWhitespace&&Jt.test(o)&&h.push(t.createTextNode(Jt.exec(o)[0])),!ct.support.tbody)for(o="table"!==u||Kt.test(o)?"<table>"!==c[1]||Kt.test(o)?0:s:s.firstChild,i=o&&o.childNodes.length;i--;)ct.nodeName(l=o.childNodes[i],"tbody")&&!l.childNodes.length&&o.removeChild(l);for(ct.merge(h,s.childNodes),s.textContent="";s.firstChild;)s.removeChild(s.firstChild);s=p.lastChild}else h.push(t.createTextNode(o));for(s&&p.removeChild(s),ct.support.appendChecked||ct.grep(x(h,"input"),T),g=0;o=h[g++];)if((!r||-1===ct.inArray(o,r))&&(a=ct.contains(o.ownerDocument,o),s=x(p.appendChild(o),"script"),a&&y(s),n))for(i=0;o=s[i++];)rn.test(o.type||"")&&n.push(o);
|
||||
return s=null,p},cleanData:function(e,t){for(var n,r,i,o,a=0,s=ct.expando,u=ct.cache,l=ct.support.deleteExpando,c=ct.event.special;null!=(n=e[a]);a++)if((t||ct.acceptData(n))&&(i=n[s],o=i&&u[i])){if(o.events)for(r in o.events)c[r]?ct.event.remove(n,r):ct.removeEvent(n,r,o.handle);u[i]&&(delete u[i],l?delete n[s]:typeof n.removeAttribute!==Y?n.removeAttribute(s):n[s]=null,tt.push(i))}},_evalUrl:function(e){return ct.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})}}),ct.fn.extend({wrapAll:function(e){if(ct.isFunction(e))return this.each(function(t){ct(this).wrapAll(e.call(this,t))
|
||||
});if(this[0]){var t=ct(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstChild&&1===e.firstChild.nodeType;)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(e){return this.each(ct.isFunction(e)?function(t){ct(this).wrapInner(e.call(this,t))}:function(){var t=ct(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=ct.isFunction(e);return this.each(function(n){ct(this).wrapAll(t?e.call(this,n):e)
|
||||
})},unwrap:function(){return this.parent().each(function(){ct.nodeName(this,"body")||ct(this).replaceWith(this.childNodes)}).end()}});var cn,fn,pn,dn=/alpha\([^)]*\)/i,hn=/opacity\s*=\s*([^)]*)/,gn=/^(top|right|bottom|left)$/,mn=/^(none|table(?!-c[ea]).+)/,yn=/^margin/,vn=RegExp("^("+ft+")(.*)$","i"),bn=RegExp("^("+ft+")(?!px)[a-z%]+$","i"),xn=RegExp("^([+-])=("+ft+")","i"),Tn={BODY:"block"},wn={position:"absolute",visibility:"hidden",display:"block"},Cn={letterSpacing:0,fontWeight:400},Nn=["Top","Right","Bottom","Left"],kn=["Webkit","O","Moz","ms"];
|
||||
ct.fn.extend({css:function(e,n){return ct.access(this,function(e,n,r){var i,o,a={},s=0;if(ct.isArray(n)){for(o=fn(e),i=n.length;i>s;s++)a[n[s]]=ct.css(e,n[s],!1,o);return a}return r!==t?ct.style(e,n,r):ct.css(e,n)},e,n,arguments.length>1)},show:function(){return N(this,!0)},hide:function(){return N(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){C(this)?ct(this).show():ct(this).hide()})}}),ct.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=pn(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":ct.support.cssFloat?"cssFloat":"styleFloat"},style:function(e,n,r,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,a,s,u=ct.camelCase(n),l=e.style;if(n=ct.cssProps[u]||(ct.cssProps[u]=w(l,u)),s=ct.cssHooks[n]||ct.cssHooks[u],r===t)return s&&"get"in s&&(o=s.get(e,!1,i))!==t?o:l[n];if(a=typeof r,"string"===a&&(o=xn.exec(r))&&(r=(o[1]+1)*o[2]+parseFloat(ct.css(e,n)),a="number"),!(null==r||"number"===a&&isNaN(r)||("number"!==a||ct.cssNumber[u]||(r+="px"),ct.support.clearCloneStyle||""!==r||0!==n.indexOf("background")||(l[n]="inherit"),s&&"set"in s&&(r=s.set(e,r,i))===t)))try{l[n]=r
|
||||
}catch(c){}}},css:function(e,n,r,i){var o,a,s,u=ct.camelCase(n);return n=ct.cssProps[u]||(ct.cssProps[u]=w(e.style,u)),s=ct.cssHooks[n]||ct.cssHooks[u],s&&"get"in s&&(a=s.get(e,!0,r)),a===t&&(a=pn(e,n,i)),"normal"===a&&n in Cn&&(a=Cn[n]),""===r||r?(o=parseFloat(a),r===!0||ct.isNumeric(o)?o||0:a):a}}),e.getComputedStyle?(fn=function(t){return e.getComputedStyle(t,null)},pn=function(e,n,r){var i,o,a,s=r||fn(e),u=s?s.getPropertyValue(n)||s[n]:t,l=e.style;return s&&(""!==u||ct.contains(e.ownerDocument,e)||(u=ct.style(e,n)),bn.test(u)&&yn.test(n)&&(i=l.width,o=l.minWidth,a=l.maxWidth,l.minWidth=l.maxWidth=l.width=u,u=s.width,l.width=i,l.minWidth=o,l.maxWidth=a)),u
|
||||
}):G.documentElement.currentStyle&&(fn=function(e){return e.currentStyle},pn=function(e,n,r){var i,o,a,s=r||fn(e),u=s?s[n]:t,l=e.style;return null==u&&l&&l[n]&&(u=l[n]),bn.test(u)&&!gn.test(n)&&(i=l.left,o=e.runtimeStyle,a=o&&o.left,a&&(o.left=e.currentStyle.left),l.left="fontSize"===n?"1em":u,u=l.pixelLeft+"px",l.left=i,a&&(o.left=a)),""===u?"auto":u}),ct.each(["height","width"],function(e,n){ct.cssHooks[n]={get:function(e,r,i){return r?0===e.offsetWidth&&mn.test(ct.css(e,"display"))?ct.swap(e,wn,function(){return S(e,n,i)
|
||||
}):S(e,n,i):t},set:function(e,t,r){var i=r&&fn(e);return k(e,t,r?E(e,n,r,ct.support.boxSizing&&"border-box"===ct.css(e,"boxSizing",!1,i),i):0)}}}),ct.support.opacity||(ct.cssHooks.opacity={get:function(e,t){return hn.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=ct.isNumeric(t)?"alpha(opacity="+100*t+")":"",o=r&&r.filter||n.filter||"";n.zoom=1,(t>=1||""===t)&&""===ct.trim(o.replace(dn,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===t||r&&!r.filter)||(n.filter=dn.test(o)?o.replace(dn,i):o+" "+i)
|
||||
}}),ct(function(){ct.support.reliableMarginRight||(ct.cssHooks.marginRight={get:function(e,n){return n?ct.swap(e,{display:"inline-block"},pn,[e,"marginRight"]):t}}),!ct.support.pixelPosition&&ct.fn.position&&ct.each(["top","left"],function(e,n){ct.cssHooks[n]={get:function(e,r){return r?(r=pn(e,n),bn.test(r)?ct(e).position()[n]+"px":r):t}}})}),ct.expr&&ct.expr.filters&&(ct.expr.filters.hidden=function(e){return 0>=e.offsetWidth&&0>=e.offsetHeight||!ct.support.reliableHiddenOffsets&&"none"===(e.style&&e.style.display||ct.css(e,"display"))
|
||||
},ct.expr.filters.visible=function(e){return!ct.expr.filters.hidden(e)}),ct.each({margin:"",padding:"",border:"Width"},function(e,t){ct.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];4>r;r++)i[e+Nn[r]+t]=o[r]||o[r-2]||o[0];return i}},yn.test(e)||(ct.cssHooks[e+t].set=k)});var En=/%20/g,Sn=/\[\]$/,An=/\r?\n/g,jn=/^(?:submit|button|image|reset|file)$/i,Dn=/^(?:input|select|textarea|keygen)/i;ct.fn.extend({serialize:function(){return ct.param(this.serializeArray())
|
||||
},serializeArray:function(){return this.map(function(){var e=ct.prop(this,"elements");return e?ct.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!ct(this).is(":disabled")&&Dn.test(this.nodeName)&&!jn.test(e)&&(this.checked||!tn.test(e))}).map(function(e,t){var n=ct(this).val();return null==n?null:ct.isArray(n)?ct.map(n,function(e){return{name:t.name,value:e.replace(An,"\r\n")}}):{name:t.name,value:n.replace(An,"\r\n")}}).get()}}),ct.param=function(e,n){var r,i=[],o=function(e,t){t=ct.isFunction(t)?t():null==t?"":t,i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)
|
||||
};if(n===t&&(n=ct.ajaxSettings&&ct.ajaxSettings.traditional),ct.isArray(e)||e.jquery&&!ct.isPlainObject(e))ct.each(e,function(){o(this.name,this.value)});else for(r in e)D(r,e[r],n,o);return i.join("&").replace(En,"+")},ct.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){ct.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)
|
||||
}}),ct.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 Ln,Hn,qn=ct.now(),_n=/\?/,Mn=/#.*$/,On=/([?&])_=[^&]*/,Fn=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Bn=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Pn=/^(?:GET|HEAD)$/,Rn=/^\/\//,Wn=/^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,$n=ct.fn.load,In={},zn={},Xn="*/".concat("*");
|
||||
try{Hn=J.href}catch(Un){Hn=G.createElement("a"),Hn.href="",Hn=Hn.href}Ln=Wn.exec(Hn.toLowerCase())||[],ct.fn.load=function(e,n,r){if("string"!=typeof e&&$n)return $n.apply(this,arguments);var i,o,a,s=this,u=e.indexOf(" ");return u>=0&&(i=e.slice(u,e.length),e=e.slice(0,u)),ct.isFunction(n)?(r=n,n=t):n&&"object"==typeof n&&(a="POST"),s.length>0&&ct.ajax({url:e,type:a,dataType:"html",data:n}).done(function(e){o=arguments,s.html(i?ct("<div>").append(ct.parseHTML(e)).find(i):e)}).complete(r&&function(e,t){s.each(r,o||[e.responseText,t,e])
|
||||
}),this},ct.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){ct.fn[t]=function(e){return this.on(t,e)}}),ct.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Hn,type:"GET",isLocal:Bn.test(Ln[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Xn,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":ct.parseJSON,"text xml":ct.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?q(q(e,ct.ajaxSettings),t):q(ct.ajaxSettings,e)
|
||||
},ajaxPrefilter:L(In),ajaxTransport:L(zn),ajax:function(e,n){function r(e,n,r,i){var o,f,v,b,T,C=n;2!==x&&(x=2,u&&clearTimeout(u),c=t,s=i||"",w.readyState=e>0?4:0,o=e>=200&&300>e||304===e,r&&(b=_(p,w,r)),b=M(p,b,w,o),o?(p.ifModified&&(T=w.getResponseHeader("Last-Modified"),T&&(ct.lastModified[a]=T),T=w.getResponseHeader("etag"),T&&(ct.etag[a]=T)),204===e||"HEAD"===p.type?C="nocontent":304===e?C="notmodified":(C=b.state,f=b.data,v=b.error,o=!v)):(v=C,(e||!C)&&(C="error",0>e&&(e=0))),w.status=e,w.statusText=(n||C)+"",o?g.resolveWith(d,[f,C,w]):g.rejectWith(d,[w,C,v]),w.statusCode(y),y=t,l&&h.trigger(o?"ajaxSuccess":"ajaxError",[w,p,o?f:v]),m.fireWith(d,[w,C]),l&&(h.trigger("ajaxComplete",[w,p]),--ct.active||ct.event.trigger("ajaxStop")))
|
||||
}"object"==typeof e&&(n=e,e=t),n=n||{};var i,o,a,s,u,l,c,f,p=ct.ajaxSetup({},n),d=p.context||p,h=p.context&&(d.nodeType||d.jquery)?ct(d):ct.event,g=ct.Deferred(),m=ct.Callbacks("once memory"),y=p.statusCode||{},v={},b={},x=0,T="canceled",w={readyState:0,getResponseHeader:function(e){var t;if(2===x){if(!f)for(f={};t=Fn.exec(s);)f[t[1].toLowerCase()]=t[2];t=f[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===x?s:null},setRequestHeader:function(e,t){var n=e.toLowerCase();
|
||||
return x||(e=b[n]=b[n]||e,v[e]=t),this},overrideMimeType:function(e){return x||(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(2>x)for(t in e)y[t]=[y[t],e[t]];else w.always(e[w.status]);return this},abort:function(e){var t=e||T;return c&&c.abort(t),r(0,t),this}};if(g.promise(w).complete=m.add,w.success=w.done,w.error=w.fail,p.url=((e||p.url||Hn)+"").replace(Mn,"").replace(Rn,Ln[1]+"//"),p.type=n.method||n.type||p.method||p.type,p.dataTypes=ct.trim(p.dataType||"*").toLowerCase().match(pt)||[""],null==p.crossDomain&&(i=Wn.exec(p.url.toLowerCase()),p.crossDomain=!(!i||i[1]===Ln[1]&&i[2]===Ln[2]&&(i[3]||("http:"===i[1]?"80":"443"))===(Ln[3]||("http:"===Ln[1]?"80":"443")))),p.data&&p.processData&&"string"!=typeof p.data&&(p.data=ct.param(p.data,p.traditional)),H(In,p,n,w),2===x)return w;
|
||||
l=p.global,l&&0===ct.active++&&ct.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Pn.test(p.type),a=p.url,p.hasContent||(p.data&&(a=p.url+=(_n.test(a)?"&":"?")+p.data,delete p.data),p.cache===!1&&(p.url=On.test(a)?a.replace(On,"$1_="+qn++):a+(_n.test(a)?"&":"?")+"_="+qn++)),p.ifModified&&(ct.lastModified[a]&&w.setRequestHeader("If-Modified-Since",ct.lastModified[a]),ct.etag[a]&&w.setRequestHeader("If-None-Match",ct.etag[a])),(p.data&&p.hasContent&&p.contentType!==!1||n.contentType)&&w.setRequestHeader("Content-Type",p.contentType),w.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Xn+"; q=0.01":""):p.accepts["*"]);
|
||||
for(o in p.headers)w.setRequestHeader(o,p.headers[o]);if(p.beforeSend&&(p.beforeSend.call(d,w,p)===!1||2===x))return w.abort();T="abort";for(o in{success:1,error:1,complete:1})w[o](p[o]);if(c=H(zn,p,n,w)){w.readyState=1,l&&h.trigger("ajaxSend",[w,p]),p.async&&p.timeout>0&&(u=setTimeout(function(){w.abort("timeout")},p.timeout));try{x=1,c.send(v,r)}catch(C){if(!(2>x))throw C;r(-1,C)}}else r(-1,"No Transport");return w},getJSON:function(e,t,n){return ct.get(e,t,n,"json")},getScript:function(e,n){return ct.get(e,t,n,"script")
|
||||
}}),ct.each(["get","post"],function(e,n){ct[n]=function(e,r,i,o){return ct.isFunction(r)&&(o=o||i,i=r,r=t),ct.ajax({url:e,type:n,dataType:o,data:r,success:i})}}),ct.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return ct.globalEval(e),e}}}),ct.ajaxPrefilter("script",function(e){e.cache===t&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),ct.ajaxTransport("script",function(e){if(e.crossDomain){var n,r=G.head||ct("head")[0]||G.documentElement;
|
||||
return{send:function(t,i){n=G.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 Vn=[],Yn=/(=)\?(?=&|$)|\?\?/;ct.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Vn.pop()||ct.expando+"_"+qn++;
|
||||
return this[e]=!0,e}}),ct.ajaxPrefilter("json jsonp",function(n,r,i){var o,a,s,u=n.jsonp!==!1&&(Yn.test(n.url)?"url":"string"==typeof n.data&&!(n.contentType||"").indexOf("application/x-www-form-urlencoded")&&Yn.test(n.data)&&"data");return u||"jsonp"===n.dataTypes[0]?(o=n.jsonpCallback=ct.isFunction(n.jsonpCallback)?n.jsonpCallback():n.jsonpCallback,u?n[u]=n[u].replace(Yn,"$1"+o):n.jsonp!==!1&&(n.url+=(_n.test(n.url)?"&":"?")+n.jsonp+"="+o),n.converters["script json"]=function(){return s||ct.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,Vn.push(o)),s&&ct.isFunction(a)&&a(s[0]),s=a=t}),"script"):t});var Jn,Gn,Qn=0,Kn=e.ActiveXObject&&function(){var e;for(e in Jn)Jn[e](t,!0)};ct.ajaxSettings.xhr=e.ActiveXObject?function(){return!this.isLocal&&O()||F()}:O,Gn=ct.ajaxSettings.xhr(),ct.support.cors=!!Gn&&"withCredentials"in Gn,Gn=ct.support.ajax=!!Gn,Gn&&ct.ajaxTransport(function(n){if(!n.crossDomain||ct.support.cors){var r;
|
||||
return{send:function(i,o){var a,s,u=n.xhr();if(n.username?u.open(n.type,n.url,n.async,n.username,n.password):u.open(n.type,n.url,n.async),n.xhrFields)for(s in n.xhrFields)u[s]=n.xhrFields[s];n.mimeType&&u.overrideMimeType&&u.overrideMimeType(n.mimeType),n.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");try{for(s in i)u.setRequestHeader(s,i[s])}catch(l){}u.send(n.hasContent&&n.data||null),r=function(e,i){var s,l,c,f;try{if(r&&(i||4===u.readyState))if(r=t,a&&(u.onreadystatechange=ct.noop,Kn&&delete Jn[a]),i)4!==u.readyState&&u.abort();
|
||||
else{f={},s=u.status,l=u.getAllResponseHeaders(),"string"==typeof u.responseText&&(f.text=u.responseText);try{c=u.statusText}catch(p){c=""}s||!n.isLocal||n.crossDomain?1223===s&&(s=204):s=f.text?200:404}}catch(d){i||o(-1,d)}f&&o(s,c,f,l)},n.async?4===u.readyState?setTimeout(r):(a=++Qn,Kn&&(Jn||(Jn={},ct(e).unload(Kn)),Jn[a]=r),u.onreadystatechange=r):r()},abort:function(){r&&r(t,!0)}}}});var Zn,er,tr=/^(?:toggle|show|hide)$/,nr=RegExp("^(?:([+-])=|)("+ft+")([a-z%]*)$","i"),rr=/queueHooks$/,ir=[$],or={"*":[function(e,t){var n=this.createTween(e,t),r=n.cur(),i=nr.exec(t),o=i&&i[3]||(ct.cssNumber[e]?"":"px"),a=(ct.cssNumber[e]||"px"!==o&&+r)&&nr.exec(ct.css(n.elem,e)),s=1,u=20;
|
||||
if(a&&a[3]!==o){o=o||a[3],i=i||[],a=+r||1;do s=s||".5",a/=s,ct.style(n.elem,e,a+o);while(s!==(s=n.cur()/r)&&1!==s&&--u)}return i&&(a=n.start=+a||+r||0,n.unit=o,n.end=i[1]?a+(i[1]+1)*i[2]:+i[2]),n}]};ct.Animation=ct.extend(R,{tweener:function(e,t){ct.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");for(var n,r=0,i=e.length;i>r;r++)n=e[r],or[n]=or[n]||[],or[n].unshift(t)},prefilter:function(e,t){t?ir.unshift(e):ir.push(e)}}),ct.Tween=I,I.prototype={constructor:I,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||(ct.cssNumber[n]?"":"px")
|
||||
},cur:function(){var e=I.propHooks[this.prop];return e&&e.get?e.get(this):I.propHooks._default.get(this)},run:function(e){var t,n=I.propHooks[this.prop];return this.pos=t=this.options.duration?ct.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):I.propHooks._default.set(this),this}},I.prototype.init.prototype=I.prototype,I.propHooks={_default:{get:function(e){var t;
|
||||
return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=ct.css(e.elem,e.prop,""),t&&"auto"!==t?t:0):e.elem[e.prop]},set:function(e){ct.fx.step[e.prop]?ct.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[ct.cssProps[e.prop]]||ct.cssHooks[e.prop])?ct.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},I.propHooks.scrollTop=I.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},ct.each(["toggle","show","hide"],function(e,t){var n=ct.fn[t];
|
||||
ct.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(z(t,!0),e,r,i)}}),ct.fn.extend({fadeTo:function(e,t,n,r){return this.filter(C).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=ct.isEmptyObject(e),o=ct.speed(t,n,r),a=function(){var t=R(this,ct.extend({},e),o);(i||ct._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=ct.timers,a=ct._data(this);if(n)a[n]&&a[n].stop&&i(a[n]);else for(n in a)a[n]&&a[n].stop&&rr.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)&&ct.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,n=ct._data(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=ct.timers,a=r?r.length:0;
|
||||
for(n.finish=!0,ct.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})}}),ct.each({slideDown:z("show"),slideUp:z("hide"),slideToggle:z("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){ct.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),ct.speed=function(e,t,n){var r=e&&"object"==typeof e?ct.extend({},e):{complete:n||!n&&t||ct.isFunction(e)&&e,duration:e,easing:n&&t||t&&!ct.isFunction(t)&&t};
|
||||
return r.duration=ct.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in ct.fx.speeds?ct.fx.speeds[r.duration]:ct.fx.speeds._default,(null==r.queue||r.queue===!0)&&(r.queue="fx"),r.old=r.complete,r.complete=function(){ct.isFunction(r.old)&&r.old.call(this),r.queue&&ct.dequeue(this,r.queue)},r},ct.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},ct.timers=[],ct.fx=I.prototype.init,ct.fx.tick=function(){var e,n=ct.timers,r=0;for(Zn=ct.now();n.length>r;r++)e=n[r],e()||n[r]!==e||n.splice(r--,1);
|
||||
n.length||ct.fx.stop(),Zn=t},ct.fx.timer=function(e){e()&&ct.timers.push(e)&&ct.fx.start()},ct.fx.interval=13,ct.fx.start=function(){er||(er=setInterval(ct.fx.tick,ct.fx.interval))},ct.fx.stop=function(){clearInterval(er),er=null},ct.fx.speeds={slow:600,fast:200,_default:400},ct.fx.step={},ct.expr&&ct.expr.filters&&(ct.expr.filters.animated=function(e){return ct.grep(ct.timers,function(t){return e===t.elem}).length}),ct.fn.offset=function(e){if(arguments.length)return e===t?this:this.each(function(t){ct.offset.setOffset(this,e,t)
|
||||
});var n,r,i={top:0,left:0},o=this[0],a=o&&o.ownerDocument;return a?(n=a.documentElement,ct.contains(n,o)?(typeof o.getBoundingClientRect!==Y&&(i=o.getBoundingClientRect()),r=X(a),{top:i.top+(r.pageYOffset||n.scrollTop)-(n.clientTop||0),left:i.left+(r.pageXOffset||n.scrollLeft)-(n.clientLeft||0)}):i):void 0},ct.offset={setOffset:function(e,t,n){var r=ct.css(e,"position");"static"===r&&(e.style.position="relative");var i,o,a=ct(e),s=a.offset(),u=ct.css(e,"top"),l=ct.css(e,"left"),c=("absolute"===r||"fixed"===r)&&ct.inArray("auto",[u,l])>-1,f={},p={};
|
||||
c?(p=a.position(),i=p.top,o=p.left):(i=parseFloat(u)||0,o=parseFloat(l)||0),ct.isFunction(t)&&(t=t.call(e,n,s)),null!=t.top&&(f.top=t.top-s.top+i),null!=t.left&&(f.left=t.left-s.left+o),"using"in t?t.using.call(e,f):a.css(f)}},ct.fn.extend({position:function(){if(this[0]){var e,t,n={top:0,left:0},r=this[0];return"fixed"===ct.css(r,"position")?t=r.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),ct.nodeName(e[0],"html")||(n=e.offset()),n.top+=ct.css(e[0],"borderTopWidth",!0),n.left+=ct.css(e[0],"borderLeftWidth",!0)),{top:t.top-n.top-ct.css(r,"marginTop",!0),left:t.left-n.left-ct.css(r,"marginLeft",!0)}
|
||||
}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent||Q;e&&!ct.nodeName(e,"html")&&"static"===ct.css(e,"position");)e=e.offsetParent;return e||Q})}}),ct.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,n){var r=/Y/.test(n);ct.fn[e]=function(i){return ct.access(this,function(e,i,o){var a=X(e);return o===t?a?n in a?a[n]:a.document.documentElement[i]:e[i]:(a?a.scrollTo(r?ct(a).scrollLeft():o,r?o:ct(a).scrollTop()):e[i]=o,t)},e,i,arguments.length,null)}}),ct.each({Height:"height",Width:"width"},function(e,n){ct.each({padding:"inner"+e,content:n,"":"outer"+e},function(r,i){ct.fn[i]=function(i,o){var a=arguments.length&&(r||"boolean"!=typeof i),s=r||(i===!0||o===!0?"margin":"border");
|
||||
return ct.access(this,function(n,r,i){var o;return ct.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?ct.css(n,r,s):ct.style(n,r,i,s)},n,a?i:t,a,null)}})}),ct.fn.size=function(){return this.length},ct.fn.andSelf=ct.fn.addBack,"object"==typeof module&&module&&"object"==typeof module.exports?module.exports=ct:(e.jQuery=e.$=ct,"function"==typeof define&&define.amd&&define("jquery",[],function(){return ct
|
||||
}))}(window);
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,55 @@
|
||||
define("@baidu/search-sug/sug/index",["require"],function(require){function checkHsugIn(e){return window.__sample_hsug_length?e.length>=4||encodeURIComponent(e).length>=18:e.length>=4||encodeURIComponent(e).length>=18}function checkHsugShow(e){return e.length>=1&&encodeURIComponent(e).length>3}function SUGOBJ(e){var t=this,e=t.opts=e||{};t.ipt=e.ipt||null,t.reverse=e.reverse||!1,t.form=e.form||null,t.submission=e.submission||null,t.maxNum=e.maxNum||10,t.bds=e.bds||null,t.sids=t.bds&&t.bds.comm&&t.bds.comm.sid,t.withoutMode=e.withoutMode||!1,t.withoutRich=e.withoutRich||!1,t.withoutStat=e.withoutStat||!1,t.withoutZhixin=e.withoutZhixin||!1,t.visible=!1,t.stopRefresh=!1,t.renderCallback=e.renderCallback||function(){},t.selectCallback=e.selectCallback||function(){},t.storestr=t.storestr||"",t.storearr=t.storearr||[],t.zhixinsug=[],t.zhixintemplate={},t.zhixinused={},t.zhixindata={},t.query=t.ipt&&t.ipt.value||"",t.inputValue=t.query,t.showValue=t.query,t.sugValue="",t.queryValue="",t.reqValue="",t.value=t.query,t.index=-1,t.sugcontainer,t.dataCached={},t.dataArray=[],t.dataStored=[],t.dataAladdin=[],t.dataDirect=[],t.directSugSelected=!1,t.dataHot=[],t.timer,t.rsv_sug=0,t.rsv_sug1=0,t.rsv_sug3=0,t.rsv_sug4=0,t.rsv_sug7=[0,0,0],t.rsv_sug9=0,t.initTime=0,t.inputT=0,t.rsv_bp=e&&e.comm&&1===e.comm.ishome?0:1,t.jqXhr=null,t.ipt&&t.init(),t.pwd=""
|
||||
}function xss(e){return e.toString().replace(/[<%3C]/g,"<").replace(/[>%3E]/g,">").replace(/"/g,""").replace(/'/g,"'")}var bds=window.bds||{};bds.se=bds.se||{},bds.se.store=function(){function e(){try{return u in r&&r[u]}catch(e){return!1}}function t(){try{return d in r&&r[d]&&r[d][r.location.hostname]}catch(e){return!1}}function s(e){return function(){var t=Array.prototype.slice.call(arguments,0);t.unshift(n),l.appendChild(n),n.addBehavior("#default#userData"),n.load(u);var s=e.apply(i,t);
|
||||
return l.removeChild(n),s}}function a(e){return"_"+e}var n,i={},r=window,o=r.document,u="localStorage",d="globalStorage",c="__storejs__";if(i.disabled=!1,i.set=function(){},i.get=function(){},i.remove=function(){},i.clear=function(){},i.transact=function(e,t,s){var a=i.get(e);null==s&&(s=t,t=null),"undefined"==typeof a&&(a=t||{}),s(a),i.set(e,a)},i.getAll=function(){},i.serialize=function(e){return String(e)},i.deserialize=function(e){return"string"!=typeof e?void 0:e},e())n=r[u],i.set=function(e,t){return void 0===t?i.remove(e):void n.setItem(e,i.serialize(t))
|
||||
},i.get=function(e){return i.deserialize(n.getItem(e))},i.remove=function(e){n.removeItem(e)},i.clear=function(){n.clear()},i.getAll=function(){for(var e={},t=0;t<n.length;++t){var s=n.key(t);e[s]=i.get(s)}return e};else if(t())n=r[d][r.location.hostname],i.set=function(e,t){return void 0===t?i.remove(e):void(n[e]=i.serialize(t))},i.get=function(e){return i.deserialize(n[e]&&n[e].value)},i.remove=function(e){delete n[e]},i.clear=function(){for(var e in n)delete n[e]},i.getAll=function(){for(var e={},t=0;t<n.length;++t){var s=n.key(t);
|
||||
e[s]=i.get(s)}return e};else if(o.documentElement.addBehavior){var l,g;try{g=new ActiveXObject("htmlfile"),g.open(),g.write("<script>document.w=window</script><iframe src='/favicon.ico'></iframe>"),g.close(),l=g.w.frames[0].document,n=l.createElement("div")}catch(m){n=o.createElement("div"),l=o.body}i.set=s(function(e,t,s){return t=a(t),void 0===s?i.remove(t):(e.setAttribute(t,i.serialize(s)),void e.save(u))}),i.get=s(function(e,t){return t=a(t),i.deserialize(e.getAttribute(t))}),i.remove=s(function(e,t){t=a(t),e.removeAttribute(t),e.save(u)
|
||||
}),i.clear=s(function(e){var t=e.XMLDocument.documentElement.attributes;e.load(u);for(var s,a=0;s=t[a];a++)e.removeAttribute(s.name);e.save(u)}),i.getAll=s(function(e){var t=e.XMLDocument.documentElement.attributes;e.load(u);for(var s,a={},n=0;s=t[n];++n)a[s]=i.get(s);return a})}try{i.set(c,c),i.get(c)!=c&&(i.disabled=!0),i.remove(c)}catch(m){i.disabled=!0}return i}();var ImeTrack=function(){function e(e){var t=0;if(document.selection){e.focus();var s=document.selection.createRange(),a=0;e&&e.value&&(a=e.value.length),s.moveStart("character",-a),t=s.text.length-1
|
||||
}else(e.selectionStart||"0"===e.selectionStart)&&(t=e.selectionStart);return t}function t(t){function s(e){n.ipt.value!==n.oldval&&(n.oldval=n.ipt.value,n.inputchangeHandle(e))}function a(){for(var e=0,t=n.logs.length-1;t<n.logs.length-1;t--)if(-1===n.logs[t].type.indexOf("unval-"))return n.logs[t].time;return e}var n=this;n.logs=[],n.opts=t||{},n.opts.logmaxnum=t.logmaxnum||10,n.opts.adv=t.adv||!1,this.onLogChange=t.onLogChange,void 0===n.opts.innerchange&&(n.opts.innerchange=!0),n.ipt=document.getElementById(n.opts.iptId),n._kdcode=0,n._kdevt={},n._keyposition=0,n.ipt.onkeydown=function(e){var t=e||window.event;
|
||||
n._kdcode=t.keyCode||t.which,n._kdevt=t},n.ipt.onkeyup=function(t){var s=t||window.event,a=s.keyCode||s.which;n.ipt.value||"",e(n.ipt),n._kdcode&&(n.addLog({ku:a,type:"upsave"}),n._kdcode=0,n._kdevt={},n.oldval=n.ipt.value)},n.ipt.onpaste=function(){n.addLog(n._kdevt.ctrlKey?{type:"unval-paste-key"}:{type:"unval-paste-mouse"})},n.oldval=n.ipt.value||"",n.inputchangeHandle=function(){if(n._kdcode)n.addLog({type:"unval-change-key"});else{var e="";n.logs.length&&(new Date).getTime()-a()<300&&(e="unval-"),n.addLog({type:e+"change-unkey"})
|
||||
}},n.timmer,n.opts.innerchange&&(n.ipt.onfocus=function(e){n.timmer=setInterval(function(){s(e)},200)},n.ipt.onblur=function(){clearInterval(n.timmer)})}return t.prototype={checkLog:function(e){for(var t=this.logs.length,s=!1;t>0;)t--,-1!==this.logs[t].type.indexOf("unval-")?(e.type=(-1===e.type.indexOf("unval-")?"":"unval-")+this.logs[t].type.replace("unval-","")+"-"+e.type.replace("unval-",""),this.logs[t]=e,s=!0):t=-2;if(s)return!1;for(;this.logs.length>=this.opts.logmaxnum;)this.logs.shift();
|
||||
return!0},analyseLog:function(){function t(){if(s.opts.adv)for(var e=0;e<i.length;e++)i.charCodeAt(e)>256&&(o=i.substring(0,e+1),u=i.substring(e+1))}var s=this;if(this.logs.length>0&&-1===this.logs[this.logs.length-1].type.indexOf("unval")){var a=this.logs[this.logs.length-1],n=a.val.substring(0,a.start),i=a.val.substring(a.start,a.cursor),r=a.val.substring(a.cursor),o="",u="";229===a.kd?i.charCodeAt(i.length-1)>256||!i.match(/[\x00-\x80]/g)?(this._keyposition=e(this.ipt),a.type+="-endime",0===i.length&&(a.type+="-cancelime")):(a.type+="-imeinput",t()):a.type.indexOf("paste-mouse")>-1?this._keyposition=e(this.ipt):a.type.indexOf("change-unkey")>-1?0===i.length?(this._keyposition=e(this.ipt),this.logs.length>1&&this.logs[this.logs.length-2].type.indexOf("upsave")>-1&&(a.type+="-link")):i.charCodeAt(i.length-1)>256||!i.match(/[\x00-\x80]/g)?(this._keyposition=e(this.ipt),a.type+="-endime"):(a.type+="-imeinput",t()):this._keyposition=e(this.ipt),this.opts.adv&&(a.type+="-adv",a.strA=n,a.strB=i,a.strB1=o,a.strB2=u,a.strC=r),this.onLogChange&&this.onLogChange.call(this,a)
|
||||
}},addLog:function(t){t.kd=this._kdcode,t.val=this.ipt.value,t.start=this._keyposition,t.cursor=e(this.ipt),t.type=t.type||0,t.time=(new Date).getTime(),(0===this.logs.length||this.logs[this.logs.length-1].val!==t.val||-1!==this.logs[this.logs.length-1].type.indexOf("unval-")||-1!==t.type.indexOf("unval-"))&&(this.checkLog(t)&&this.logs.push(t),this.analyseLog())},getLog:function(){var e=this.logs.slice(0);return e},triggerInputChange:function(e){this.inputchangeHandle(e)},diffLog:function(){var e=[],t=!1;
|
||||
for(var s in this.logs)if("0"!==s){var a=this.logs[s];if(a.strB&&a.strA){if(0===a.strB.length&&a.strA.length<this.logs[s-1].strA.length){e=[];continue}if(a.type.indexOf("link")>-1||a.type.indexOf("paste")>-1){e=[];continue}}var n=a.time-this.logs[s-1].time;n>3e3&&(e=[]);var i=0,r=(a.val.match(/[^\x00-\x80]/g)||[]).length-(this.logs[s-1].val.match(/[^\x00-\x80]/g)||[]).length;r>0?i=1:r=(a.val.match(/[\x00-\x80]/g)||[]).length-(this.logs[s-1].val.match(/[\x00-\x80]/g)||[]).length,a.type.indexOf("ime")>-1?(i+=2,t=!0):a.type.indexOf("unval")>-1&&t?i+=2:t=!1,r>0&&e.push(i,r,n)
|
||||
}return e}},t}(),bdSug=function(e){var t=new SUGOBJ(e);return t.outInterface()},supportInputEvent="oninput"in document.createElement("input")&&!navigator.userAgent.match(/MSIE 9/)&&!navigator.userAgent.match(/chrome\/(28|29|30|31)/i),BDSUG_TIMESTAMP_START=14183424e5,BDSUG_QUERY_LEV=4;return SUGOBJ.prototype={updateInitData:function(type){var me=this,opts=me.opts||{};me.setsug=!0,me.setsugstorage=!0,me.sets={},me.sugcookie=navigator.cookieEnabled&&/sug=(\d)/.test(document.cookie)?RegExp.$1:3,me.sugstorecookie=navigator.cookieEnabled&&/sugstore=(\d)/.test(document.cookie)?RegExp.$1:1,me.bds&&me.bds.comm&&me.bds.comm.personalData&&(me.sets="string"==typeof me.bds.comm.personalData?eval("("+me.bds.comm.personalData+")"):me.bds.comm.personalData),me.sets.errno&&0===me.sets.errno&&me.sets.sugSet&&me.sets.sugSet.ErrMsg&&"SUCCESS"===me.sets.sugSet.ErrMsg?"0"===me.sets.sugSet.value&&(me.setsug=!1):"0"===me.sugcookie&&(me.setsug=!1),me.sets.errno&&0===me.sets.errno&&me.sets.sugStoreSet&&me.sets.sugStoreSet.ErrMsg&&"SUCCESS"===me.sets.sugStoreSet.ErrMsg?"0"===me.sets.sugStoreSet.value&&(me.setsugstorage=!1):"0"===me.sugstorecookie&&(me.setsugstorage=!1),me.loggedon=me.bds&&me.bds.se.store&&!me.bds.se.store.disabled&&navigator.cookieEnabled,me.showsug=opts.showsug?opts.showsug:me.setsug,me.showsugstore=opts.showsugstore?opts.showsugstore:me.showsug&&me.loggedon&&me.setsugstorage,me.query=me.bds.comm.query,me.pinyin=me.bds.comm.pinyin,me.sugHost=me.bds.comm.sugHost||"",me.sid=navigator.cookieEnabled&&/H_PS_PSSID=([0-9_]+)/.test(document.cookie)?RegExp.$1:me.bds.comm.sid;
|
||||
var canWriteStore=!0,sampleHis=!1;if(me.bds&&me.bds.comm&&me.bds.comm.sampleval&&$.inArray("sample_his",me.bds.comm.sampleval)>-1){var isLogin=me.bds&&me.bds.comm&&me.bds.comm.username;isLogin?canWriteStore=!1:1==me.bds.se.store.get("wwwPassLogout")&&(canWriteStore=!1)}("init"!==type||document.referrer)&&canWriteStore&&me.writeStore(),me.bds.se.store.set("wwwPassLogout",0)},check:function(){var e=this;e.value!==e.ipt.value&&e.showValue!==e.ipt.value&&(e.inputValue=e.showValue=e.value=e.ipt.value,e.bds&&e.bds.comm&&0===e.bds.comm.ishome&&e.addStat("oq",e.bds.comm.confirmQuery?xss(e.bds.comm.confirmQuery):""),e.bds&&e.bds.comm&&e.bds.comm.confirmQid&&e.addStat("rsv_pq",e.bds.comm.confirmQid),$(e.ipt).trigger("inputChange",[e]),e.request(e.value))
|
||||
},startCircle:function(){var e=this;e.timer||($(e.ipt).trigger("start",[e]),e.timer=setTimeout(function(){e.check(),e.timer=setTimeout(arguments.callee,200)},200),supportInputEvent&&$(e.ipt).bind("input",function(){e.check()}))},stopCircle:function(){var e=this;e.timer&&(clearTimeout(e.timer),supportInputEvent&&$(e.ipt).unbind("input"),e.timer=null,$(e.ipt).trigger("stop",[e]))},callback:function(e,t){function s(e){a.zhixintemplate[e]&&!a.zhixinused[e]&&(a.zhixinused[e]=$.ajax({crossDomain:!0,url:a.zhixintemplate[e],dataType:"script",scriptCharset:"UTF-8"}))
|
||||
}var a=this;if(e&&e.exp){var n=a.stat.rsv_sug6||"";n.length>0&&e.exp.length>0&&-1===n.indexOf(e.exp)?n+="_"+e.exp:n=e.exp,a.addStat("rsv_sug6",n)}if(e&&(e.g||e.z||a.checkStore(e)&&a.checkStore(e).length>0)){if(a.queryValue=e.q,e.q&&2!==t&&(a.dataCached[e.q]=e),$(a.ipt).trigger("dataReady",[a]),!a.withoutZhixin&&e.zzx)for(var i=0;i<e.zzx.length;i++)e.zzx[i]&&e.zzx[i].type&&(a.zhixinsug.push({value:e.g[i].q,type:e.zzx[i].type,url:e.zzx[i].url}),s(e.zzx[i].type));a.dataArray=a.packData(e),a.render(a.dataArray)
|
||||
}else a.hideSug()},buildUrl:function(e,t,s){var a=this,n=a.sid.replace(/_/g,","),i="//www.baidu.com/sugrec?pre=1&p=3&ie=utf-8&json=1&prod=pc&from=pc_web"+(n?"&sugsid="+n:""),r=(a.sugHost||"http://suggestion.baidu.com/su","");if(""===e){var o=[],u=[];try{var d=a.bds.se.store.get("BDSUGSTORED");o=d&&$.parseJSON(d)||[]}catch(c){}for(var l=0;l<o.length;l++){var g=o[l].t?1*o[l].t+BDSUG_TIMESTAMP_START:(new Date).getTime();g=Math.round(g/1e3);var m={time:g,kw:decodeURIComponent(o[l].q)};o[l].s&&o[l].s>BDSUG_QUERY_LEV&&(m.fq=o[l].s-BDSUG_QUERY_LEV+1),u.push(m),u.length>10&&u.shift()
|
||||
}i="//www.baidu.com/sugrec?",r="prod=pc_his&from=pc_web&json=1&sid="+a.sid+"&hisdata=",$.stringify&&u.length&&(r+=encodeURIComponent($.stringify(u))),!window.__sam_his_hot||a.bds&&a.bds.comm&&a.bds.comm.username||(r+="&type=4")}if(a.withoutZhixin?"":"&zxmode=1",a.sugcookie>0&&(a.sugcookie=3),""===e)var p=i+r;else var p=i+"&wd="+encodeURIComponent(e);return bds.comm.supportis&&(p+="&req=2"),window.bds&&bds.comm&&bds.comm.cur_query&&(p+="&bs="+encodeURIComponent(bds.comm.cur_query)),window.bds&&bds.comm&&bds.comm.cur_disp_query&&(p+="&pbs="+encodeURIComponent(bds.comm.cur_disp_query)),!window._is_sugemptyhot_sam||!bds.comm.ishome||bds.comm.username||e||s?e||s||(p+="&sc=eb"):p+="&sc=hot",a.ipt&&(p+="&csor="+getCursortPosition(a.ipt)),a.pwd&&(p+="&pwd="+encodeURIComponent(a.pwd)),a.pwd=e,p
|
||||
},request:function(e,t){var s=this;if(e&&(e=$.limitWd(e,160)),s.directSugSelected=!1,"_blank"===$(s.form).attr("target")&&1===$(s.ipt).attr("data-bfocus"))$(s.ipt).focus().attr("data-bfocus",0);else if(s.showsug){if(s.reqValue=e,2!==t&&s.dataCached[e])return void s.callback(s.dataCached[e]);s.jqXhr&&s.jqXhr.abort(),s.jqXhr=$.ajax({dataType:"jsonp",async:!0,url:s.buildUrl(e,t),jsonp:"cb",timeout:5e3,success:function(e){s.callback(e,t)},always:function(){s.jqXhr=null}}),s.rsv_sug3++,s.addStat("rsv_sug3",s.rsv_sug3),s.initTime=(new Date).getTime()
|
||||
}},packData:function(e){var t=this,s=[];t.checkHot(e),t.checkAla(e),t.checkStore(e),t.bds.comm.supportis||t.checkDirect(e);for(var a=t.mergeData(e),n=0;n<a.length;n++){if(t.bds&&t.bds.comm&&1===t.bds.comm.ishome&&t.bds.comm.supportis){if(n>9)break}else if(t.bds&&t.bds.comm&&0===t.bds.comm.ishome&&t.bds.comm.supportis&&("store"===a[n].type||"hot"===a[n].type)){if(n>t.maxNum-1+5)break}else if(n>t.maxNum-1)break;t.reverse?s.unshift(a[n]):s.push(a[n])}return s},checkHot:function(e){var t=this;if(t.dataHot=[],e.g&&e.g.length)for(var s=0;s<e.g.length;s++){var a=e.g[s];
|
||||
a.t&&"hot"===a.t?t.dataHot.push({value:a.q,otherData:a.st}):!window.__sam_his_hot||!a.t||"hs"!==a.t||window.me.bds&&t.bds.comm&&t.bds.comm.username||t.dataHot.push({value:a.q,otherData:a.st})}},checkDirect:function(e){var t=this;if(t.dataDirect=[],e.tzx&&"6"===e.tzx.type&&e.tzx.info){var s=e.tzx.info;t.dataDirect.push({value:s.site,otherData:s})}},checkAla:function(e){var t=this;if(t.dataAladdin=[],e.z&&e.z.length>0&&!t.withoutRich)for(var s=0;s<e.z.length;s++){var a=e.z[s];a.id&&a.type&&a.key&&a.word&&t.dataAladdin.push({value:a.key,otherData:a})
|
||||
}else t.dataAladdin=[]},writeStore:function(){var e=this;if(e.showsugstore&&e.query&&e.pinyin&&checkHsugIn(e.query)){e.getStore();var t=encodeURIComponent(e.query.toLowerCase()),s=encodeURIComponent(e.pinyin.toLowerCase()),a=BDSUG_QUERY_LEV,n=(new Date).getTime()-BDSUG_TIMESTAMP_START,i=-1;$.each(e.storearr,function(e,r){r.p===s&&(r.q=t,a=(r.s||BDSUG_QUERY_LEV)+1,r.t=n,i=e)}),i>-1&&e.storearr.splice(i,1),e.storearr.push({q:t,p:s,s:a,t:n}),e.storearr.length>50&&e.storearr.shift(),e.setStore()}},checkStore:function(e){var t=this;
|
||||
if(t.dataStored=[],t.showsugstore&&checkHsugShow(t.value)){if(e&&e.g&&e.g.length)for(var s=0;s<e.g.length;s++){var a=e.g[s];a.type&&("his_normal"===a.type||"his_rec"===a.type)&&$.trim(a.q)&&t.dataStored.push({value:$.trim(a.q),pinyin:"|",s:4,t:""})}0===t.dataStored.length&&(t.getStore(),$.each(t.storearr,function(e,s){var a=decodeURIComponent(s.q),n=decodeURIComponent(s.p);(0===a.indexOf(t.value.toLowerCase())||0===n.indexOf(t.value.toLowerCase()))&&t.dataStored.unshift({value:a,pinyin:n,s:s.s,t:s.t})
|
||||
}))}else if(t.showsugstore&&""===t.value){if(e&&e.g&&e.g.length)for(var s=0;s<e.g.length;s++){var a=e.g[s];a.type&&("his_normal"===a.type||"his_rec"===a.type)&&$.trim(a.q)&&t.dataStored.push({value:$.trim(a.q),pinyin:"|",s:4,t:""})}!window._is_sugempty_sam||t.bds&&t.bds.comm&&t.bds.comm.username||(t.getStore(),$.each(t.storearr,function(e,s){var a=decodeURIComponent(s.q),n=decodeURIComponent(s.p);t.dataStored.unshift({value:a,pinyin:n,s:s.s,t:s.t})}))}return t.dataStored},placeHolder:function(e){var t=this;
|
||||
t.placeholder=e||"",$(t.ipt).attr("placeholder",t.placeholder)},getStore:function(){var e=this;try{e.storestr=e.bds.se.store.get("BDSUGSTORED"),e.storearr=e.storestr&&$.parseJSON(e.storestr)||[]}catch(t){e.storestr="[]",e.storearr=[]}$.each(e.storearr,function(e,t){t.t=t.t||0,t.s=t.s||4})},setStore:function(){var e=this,t="";$.each(e.storearr,function(e,s){t+=(0===e?"":",")+'{"q":"'+s.q+'","p":"'+s.p+'","s":'+s.s+',"t":'+s.t+"}"}),e.storestr="["+t+"]";try{e.bds.se.store.set("BDSUGSTORED",e.storestr)
|
||||
}catch(s){}},mergeData:function(e){function t(e,t,a,n){function i(e,t){var e=$.subByte(e,"41");return t&&e?(e=$.trim(e),t=$.trim(t),e=0===e.indexOf(t)&&e!==t?r(e,t):o(e)):e=o(e),e}function r(e,t){e=o(e),t=o(t);var s=t,a=t.length,n="<b>"+e.substring(a)+"</b>";return s+n}function o(e){return e=e.replace(/&/g,"&"),e=e.replace(/</g,"<"),e=e.replace(/>/g,">")}var u={};u.value=e;var d=i(e,s.queryValue);switch(t){case"direct":u.html="-"===a.iconurl?'<p link="'+a.siteurl+'">'+a.site+"<span>"+a.showurl+"</span><i>官网</i></p>":'<p link="'+a.siteurl+'"><img src="'+a.iconurl+'"/>'+a.site+"<span>"+a.showurl+"</span></p>",u.type="direct";
|
||||
break;case"ala":u.html="<h3>"+d+"</h3><p>"+a.word+"</p>",u.type="ala",u.alaid=a.id;break;case"store":2===a["new"]&&(d+='<span class="bdsug-newicon"> [<i>企业</i>]</span>'),u.html="<span>"+d+"</span>",(s.bds.comm.username||"|"!==a)&&(u.html+='<u class="bdsug-store-del '+("|"===a?"bdsug-store-del-cloud":"")+'" title="如您不需要此搜索历史提示, 可在右上角搜索设置中关闭">删除</u>'),u.type="store",u.pinyin=a,u.s=n;break;default:a&&a["new"]&&2===a["new"]&&(d+='<span class="bdsug-newicon"> [<i>企业</i>]</span>'),u.html=d
|
||||
}if(!s.withoutZhixin&&s.zhixinsug.length>0)for(var c=0;c<s.zhixinsug.length;c++)if(u.value===s.zhixinsug[c].value&&"ala"!==u.type){u.zxtype=s.zhixinsug[c].type,u.zxurl=s.zhixinsug[c].url;var l='<i class="bdsug-arrow"></i>';u.html.split(l).length<=1&&(u.html+=l)}return u}var s=this,a=[],n=0,i=0;if(s.rsv_sug=0,s.dataHot.length>0&&""===s.value){for(var r=0;r<s.dataHot.length&&(n++,a.push(t(s.dataHot[r].value,"hot",s.dataHot[r].otherData)),!(n>=8));r++);return a}if(s.dataDirect.length>0&&(a.push(t(s.dataDirect[0].value,"direct",s.dataDirect[0].otherData)),ns_c({pj_name:"zhida_sug",zhida_prefix:encodeURIComponent(s.inputValue),zhida_query:encodeURIComponent(s.dataDirect[0].value),zhida_chufa:encodeURIComponent(s.dataDirect[0].otherData.hit_q),zhida_bp:s.bds.comm.ishome?0:1})),s.dataAladdin.length>0)for(var r=0;r<s.dataAladdin.length&&(a.push(t(s.dataAladdin[0].value,"ala",s.dataAladdin[0].otherData)),n++,!(n>=1));r++);if(s.dataStored.length>0)for(var r=0;r<s.dataStored.length;r++){for(var o=!1,u=0;u<a.length;u++)"direct"!==a[u].type&&s.dataStored[r].value===a[u].value&&(o=!0);
|
||||
if(o||(a.push(t(s.dataStored[r].value,"store",s.dataStored[r].pinyin,s.dataStored[r].s||0)),n++,0===i&&"|"===s.dataStored[r].pinyin&&(i=3)),s.rsv_sug++,""===s.value&&n>=9)break;if(""!==s.value&&n>=2)break}var d=[];if(e.g&&e.g.length>0){for(var r=0;r<e.g.length;r++)if("sug"===e.g[r].type){for(var o=!1,u=0;u<a.length;u++)"direct"!==a[u].type&&e.g[r].q===a[u].value&&(o=!0);o||(d.push(t(e.g[r].q,e.g[r].type,e.g[r].st)),i=i?i:1)}a=""===s.value&&d.length?s.bds.comm.supportis?d.slice(0,Math.max(4-a.length,2)).concat(a):d.slice(0,Math.max(10-a.length,5)).concat(a):a.concat(d)
|
||||
}switch(i){case 1:s.rsv_sug7[0]=1;break;case 3:s.rsv_sug7[2]=1}return a},render:function(e){var t=this;if(t.is_selecting=!1,t.sugcontainer||(t.sugcontainer=document.createElement("DIV"),t.sugcontainer.className="bdsug",$(t.sugcontainer).delegate("li","mouseenter",function(){var e=$(this).data("key");t.blurSug($(t.sugcontainer).find("li")),t.focusSug(this,e),t.index=$(t.sugcontainer).find("li").index($(this)),t.hoverSug=e}).delegate("li","mouseleave",function(){$(this).removeClass("bdsug-s")}).delegate("li","click",function(){var e=$(this).data("key"),s=$(".kw-placeholder").hasClass("placeholders-hidden");
|
||||
!s&&$(".kw-placeholder").addClass("placeholders-hidden"),t.directSugSelected=$(this).hasClass("bdsug-direct")?!0:!1,$(this).hasClass("bdsug-hot")&&t.addStat("rsv_sug8","hot"),t.sugValue=t.showValue=t.value=t.ipt.value=e,t.index=$(t.sugcontainer).find("li").index($(this)),t.hideSug(),t.bds&&t.bds.comm&&0===t.bds.comm.ishome&&t.addStat("oq",t.bds.comm.confirmQuery?xss(t.bds.comm.confirmQuery):""),t.bds&&t.bds.comm&&t.bds.comm.confirmQid&&t.addStat("rsv_pq",t.bds.comm.confirmQid),t.addStat("sug",xss(e)),t.addStat("rsv_sug2",1),t.formSubmit()
|
||||
}),$(t.sugcontainer).click(function(e){e.stopPropagation()})),e.length>0){for(var s=document.createElement("UL"),a=t.bds&&t.bds.util&&t.bds.util.domain?t.bds.util.domain.get("http://sclick.baidu.com"):"http://sclick.baidu.com",n=0;n<e.length;n++){var i=document.createElement("LI");if(i.innerHTML=e[n].html,e[n].zxtype&&e[n].zxurl){var r=e[n].value,o=e[n].zxtype,u=e[n].zxurl,d=t.zhixindata[r]&&t.zhixindata[r].responseJSON&&0===t.zhixindata[r].responseJSON.status&&t.zhixindata[r].responseJSON.data&&t.zhixindata[r].responseJSON.data.length>0;
|
||||
d||(t.zhixindata[r]=$.ajax({dataType:"jsonp",async:!0,url:u,jsonp:"cb"})),$(i).addClass("bdsug-zx").on("focused",function(){var e=$(this).data("key"),s=t.zhixindata[e]&&t.zhixindata[e].responseJSON&&0===t.zhixindata[e].responseJSON.status&&t.zhixindata[e].responseJSON.data&&t.zhixindata[e].responseJSON.data.length>0,a=$(t.sugcontainer).find(".bdsug-box")[0];if(s&&a&&t.bds.se.sugzx&&t.bds.se.sugzx[o]){var n=t.bds.se.sugzx[o](t.zhixindata[e].responseJSON.data,e,t.outInterface(),t);n instanceof jQuery&&($(t.sugcontainer).addClass("bdsug-showzx"),$(a).empty().append(n),$(t.sugcontainer).height()<$(t.sugcontainer).find(".bdsug-box").height()&&$(t.sugcontainer).css({height:$(t.sugcontainer).find(".bdsug-box").height()}))
|
||||
}}).on("blured",function(){$(t.sugcontainer).removeClass("bdsug-showzx"),$(t.sugcontainer).css({height:"auto"})})}t.setSug(i,e[n].value,e[n].type),s.appendChild(i)}t.form?$(t.sugcontainer).insertBefore(t.form.firstChild):$(t.ipt).after(t.sugcontainer),t.sugcontainer.innerHTML="",t.sugcontainer.appendChild(s),$(t.sugcontainer).removeClass("bdsug-showzx"),$(t.sugcontainer).css({height:"auto"});var c=$(t.sugcontainer).find("ul li");t.withoutZhixin||($(t.sugcontainer).addClass("bdsug-showarrow"),$(t.sugcontainer).append($('<div class="bdsug-box"></div>')),$(t.form).find(".bdsug-tmp").length||$(t.form).append($('<div class="bdsug-tmp"></div>')),$(t.sugcontainer).find(".bdsug-box").on("mouseenter",function(){$(t.sugcontainer).addClass("bdsug-showzx"),$(c[t.index]).addClass("bdsug-s")
|
||||
}).on("mouseleave",function(){$(t.sugcontainer).removeClass("bdsug-showzx"),$(c[t.index]).removeClass("bdsug-s"),$(t.sugcontainer).css({height:"auto"})}).on("click",function(e){e.stopPropagation()})),$(t.form).find(".bdsug-tmp").empty();var l=$("<li>").appendTo($("<div>").addClass("bdsug-showzx").appendTo($(t.form).find(".bdsug-tmp"))),g=$("<div>").css({position:"absolute",display:"inline-block",top:"-10000px",left:"-10000px"}).appendTo($(t.form).find(".bdsug-tmp"));$.each(c,function(e,s){g.html($(s).html());
|
||||
var a=28;g.width()>l.width()-$(t.sugcontainer).find(".bdsug-arrow").width()-a&&$(s).addClass("bdsug-overflow")});var m="0";if(0===t.bds.comm.ishome?m="0":1===t.bds.comm.ishome&&window.s_domain&&"home"===window.s_domain.base?m="2":1===t.bds.comm.ishome&&(m="1"),""===t.value&&e.length){for(var p=0,n=0;n<e.length;n++)e[n].type&&"store"===e[n].type&&p++;if(ns_c({pj_name:"es_sug",es_sug_hot:t.dataHot.length,es_sug_num:e.length,eb_sug_num:e.length-p,es_sug_bp:m+"_"+(t.bds.comm.supportis?1:0)}),$(".bdsug-feedback-wrap").length>0&&$(".bdsug-feedback-wrap").remove(),t.dataStored.length&&t.dataStored.length>3||t.dataHot.length&&t.dataHot.length>3){var h="";
|
||||
t.bds.comm.username?(h='<div style="text-align:right; background:#fafafa; color:#666; height:25px; line-height:25px;"><span class="setup_storeSug" style="margin-right:10px; text-decoration:underline; cursor:pointer;">关闭历史</span><span style="color:#e6e6e6;margin-right:10px;">|</span><span class="del_all_storeSug" style="margin-right:10px; text-decoration:underline; cursor:pointer;">删除历史</span><span style="color:#e6e6e6;margin-right:10px;">|</span><a class="more_storeSug" href="http://i.baidu.com/my/history?from=pssug"target="_blank" style="color:#666; text-decoration:underline; margin-right:10px;">更多历史</a></div>',$(t.sugcontainer).append(h)):t.dataHot.length?(h='<div style="text-align:right; background:#fafafa; color:#666; height:25px; line-height:25px;"><span class="close_hotSug" style="margin-right:10px; text-decoration:underline; cursor:pointer;">关闭</span></div>',$(t.sugcontainer).append(h)):(h='<div style="text-align:right; background:#fafafa; color:#666; height:25px; line-height:25px;"><span class="setup_storeSug" style="margin-right:10px; text-decoration:underline; cursor:pointer;">关闭历史</span></div>',$(t.sugcontainer).append(h)),$(t.sugcontainer).find(".del_all_storeSug").click(function(){if(t.dataStored[0]&&t.dataStored[0].pinyin&&"|"===t.dataStored[0].pinyin){var e=t.bds&&t.bds.util&&t.bds.util.domain&&t.bds.util.domain.get("http://api.open.baidu.com/new_hsug/data/Deleteall");
|
||||
$.ajax({dataType:"jsonp",scriptCharset:"utf-8",jsonp:"cb",timeout:6e3,url:e,success:function(){}})}t.storearr=[],t.setStore(),t.hideSug();var s=window["BD_PS_C"+(new Date).getTime()]=new Image;s.src=a+"/w.gif?q=delall&fm=beha&rsv_sug=delall&rsv_sid="+t.bds.comm.sid+"&t="+(new Date).getTime()+"&rsv_sug9=es_"+m+"_"+(t.bds.comm.supportis?1:0)+"&path=http://www.baidu.com"}),$(t.sugcontainer).find(".more_storeSug").click(function(){ns_c({pj_name:"hs_sug_more"})}),$(t.sugcontainer).find(".close_hotSug").click(function(){t.hideSug(),ns_c({pj_name:"hot_sug_close"})
|
||||
}),$(t.sugcontainer).find(".setup_storeSug").click(function(){t.bds.event.trigger("bd.se.loadpanel",{tabindex:0,tipsConfig:{content:t.bds&&t.bds.comm&&t.bds.comm.username?"该选项可以关闭您账号下多个设备的搜索历史":"该选项可以关闭您的历史记录",wrapper:"#se-setting-5"}}),t.hideSug(),ns_c({pj_name:"hs_sug_setup"})})}}$.each(c,function(s,n){if(e[s]&&"store"===e[s].type){var i=s;$(n).find("u").click(function(s){if(s.stopPropagation(),$(n).remove(),t.bds&&t.bds.comm&&t.bds.comm.username){var r=t.bds&&t.bds.util&&t.bds.util.domain&&t.bds.util.domain.get("http://api.open.baidu.com/new_hsug/data/Delete");
|
||||
r=r+"?query="+encodeURIComponent(e[i].value),$.ajax({dataType:"jsonp",scriptCharset:"utf-8",jsonp:"cb",timeout:6e3,url:r,success:function(){}})}if(e[i].pinyin&&"|"===e[i].pinyin){t.dataCached={};var o=!1;$.each(t.storearr,function(e){encodeURIComponent(t.dataArray[i].value)===t.storearr[e].q&&(o=e)}),o!==!1&&(t.storearr.splice(o,1),t.setStore())}else{var o=!1;$.each(t.storearr,function(e){t.dataArray[i].pinyin===decodeURIComponent(t.storearr[e].p)&&(o=e)}),o!==!1&&(t.storearr.splice(o,1),t.setStore())
|
||||
}var u=window["BD_PS_C"+(new Date).getTime()]=new Image;u.src=a+"/w.gif?q="+encodeURIComponent(e[i].value)+"&fm=beha&rsv_sug=del&rsv_sid="+t.bds.comm.sid+"&t="+(new Date).getTime()+(""===t.value?"&rsv_sug9=es_"+m+"_"+(t.bds.comm.supportis?1:0):"")+"&path=http://www.baidu.com"})}});var v=!!window.ActiveXObject&&(!document.documentMode||document.documentMode<=9);v||(0!==$(".bdsug-feedback-wrap").length&&$(".bdsug-feedback-wrap").remove(),""!==t.value&&($(t.sugcontainer).append('<div class="bdsug-feedback-wrap"><span class="bdsug-feedback">反馈</span></div>'),$(".bdsug-feedback-wrap").on("click",function(){var e=t.dataArray;
|
||||
t.dataArray.forEach(function(t,s){e[s]=t.value}),t.bds.se.ShortCut.initSugBar(e),t.hideSug()}))),$(t.ipt).trigger("render",[t]),t.renderCallback(),t.showSug(),$(t.ipt).trigger("showSug",[t])}else t.renderCallback(),t.hideSug()},setAutocomplete:function(e){var t=this;$(t.ipt).attr("autocomplete",e)},setSug:function(e,t,s){$(e).attr("data-key",t),s&&$(e).addClass("bdsug-"+s)},clickIpt:function(){var e=this;e.bds.comm.query&&e.ipt.value&&e.bds.comm.query===e.ipt.value?e.request(e.ipt.value,"2"):e.request(e.ipt.value)
|
||||
},showSug:function(){var e=this;e.index=-1,e.ipt.value===e.reqValue&&$(e.sugcontainer).show(),e.visible=!0,e.rsv_sug1++,e.addStat("rsv_sug1",e.rsv_sug1),e.addStat("rsv_sug7",e.rsv_sug7.join(""))},hideSug:function(){var e=this;e.is_selecting=!1,$(e.ipt).trigger("hide",[e]),$(e.sugcontainer).hide(),e.visible=!1,e.jqXhr&&e.jqXhr.abort(),e.jqXhr=null},selectSug:function(e){var t=this,s=$(t.sugcontainer).find("li");if(t.blurSug(s),t.directSugSelected=-1!==e&&s.eq(e).hasClass("bdsug-direct")?!0:!1,-1!==e){t.is_selecting=!0;
|
||||
var a=$($(s)[e]).data("key");t.focusSug(s[e],a),t.sugValue=t.showValue=t.value=t.ipt.value=a,t.addStat("sug",a),t.bds&&t.bds.comm&&0===t.bds.comm.ishome&&t.addStat("oq",t.bds.comm.confirmQuery?xss(t.bds.comm.confirmQuery):""),t.bds&&t.bds.comm&&t.bds.comm.confirmQid&&t.addStat("rsv_pq",t.bds.comm.confirmQid),t.addStat("rsv_n",1)}else t.is_selecting=!1,t.selectCallback(t.inputValue),t.showValue=t.value=t.ipt.value=t.inputValue,t.sugValue="",t.removeStat("sug"),t.removeStat("rsv_n");t.stopRefresh=t.inputValue||1!==t.bds.comm.ishome?!1:!0,$(t.ipt).trigger("selectSug",[t,e,a])
|
||||
},blurSug:function(e){$(e).removeClass("bdsug-s"),$(e).trigger("blured")},focusSug:function(e,t){var s=this;$(e).addClass("bdsug-s"),$(e).trigger("focused"),s.selectCallback(t)},pressUp:function(e){var t=this,e=$(t.sugcontainer).find("li").length;t.index--,t.index<-1&&(t.index=e-1),t.selectSug(t.index)},pressDown:function(e){var t=this,e=$(t.sugcontainer).find("li").length;t.index++,t.index>=e&&(t.index=-1),t.selectSug(t.index)},addStat:function(e,t){t=encodeURIComponent(t);var s=this;if(s.stat||(s.stat={}),s.stat[e]=t,!s.withoutStat){var a=$(s.form).find('input[type="hidden"][name="'+e+'"]');
|
||||
a.length?$(a).val(t):$(s.form).append('<input type="hidden" name="'+e+'" value="'+t+'"/>')}},removeStat:function(e){var t=this;if(!t.withoutStat&&($(t.form).find('input[type="hidden"][name="'+e+'"]').remove(),!t.stat))try{delete t.stat[e]}catch(s){}},clearStat:function(){var e=this;e.bds&&e.bds.comm&&e.bds.comm.isAsync&&(e.removeStat("rsp"),e.removeStat("prefixsug"),1===e.bds.comm.ishome?e.addStat("rsv_dl","ib"):e.addStat("rsv_dl","tb")),e.rsv_sug7=[0,0,0],e.removeStat("rsv_n"),e.removeStat("rsv_sug"),e.removeStat("rsv_sug1"),e.removeStat("rsv_sug2"),e.removeStat("rsv_sug3"),e.removeStat("rsv_sug4"),e.removeStat("rsv_sug5"),e.removeStat("rsv_sug6"),e.removeStat("rsv_sug7"),e.removeStat("rsv_sug8"),e.removeStat("rsv_sug9"),e.stat={}
|
||||
},getRsvStatus:function(e){var t=this,s=[],a=[-2];if(t.rsv_sug){a=[-1];for(var n in t.dataArray)e===t.dataArray[n].value&&(a=[0,n],n<t.rsv_sug&&(a=[1,n]));for(var n=0;n<t.rsv_sug&&t.dataArray[n];n++)s.push(t.dataArray[n].value.length,t.dataArray[n].s);a.push(t.index,t.rsv_sug,s.join("."))}return a.join("_")},formSubmit:function(e){var t=this,s=!0,a=t.bds&&t.bds.comm&&1===t.bds.comm.ishome?"i":"t";if(-1!==t.index?(t.addStat("f",3),t.addStat("prefixsug",xss(t.inputValue)),t.addStat("rsp",t.index),""===t.inputValue?t.addStat("rsv_dl",a+"h_"+t.index):t.addStat("rsv_dl",a+"s_"+t.index),t.dataArray[t.index]&&t.dataArray[t.index].alaid?t.addStat("rsv_sug5",t.dataArray[t.index].alaid):t.removeStat("rsv_sug5")):t.addStat("f",8),!t.dataArray[t.index]||""!==t.inputValue&&"|"!==t.dataArray[t.index].pinyin||"store"!==t.dataArray[t.index].type)""===t.inputValue&&t.addStat("rsv_sug9","eb_"+(t.bds.comm.supportis?1:0));
|
||||
else{var n="0";0===t.bds.comm.ishome?n="0":1===t.bds.comm.ishome&&window.s_domain&&"home"===window.s_domain.base?n="2":1===t.bds.comm.ishome&&(n="1"),t.addStat("rsv_sug9","es_"+n+"_"+(t.bds.comm.supportis?1:0))}t.sugValue===t.value?(t.removeStat("rsv_n"),t.removeStat("sug")):(t.hoverSug!==t.value||t.sugValue!==t.value)&&(t.addStat("rsv_dl",a+"b"),t.addStat("f",8)),0!==t.inputT?(t.addStat("inputT",(new Date).getTime()-t.inputT),t.directInputT=(new Date).getTime()-t.inputT,t.inputT=0):t.removeStat("inputT"),0!==t.rsv_sug4&&(t.addStat("rsv_sug4",(new Date).getTime()-t.rsv_sug4),t.rsv_sug4=0),t.rsv_sug&&t.addStat("rsv_sug",t.rsv_sug),$($(t.sugcontainer).find("li")[t.index]).hasClass("bdsug-zx")?"all"===$(t.sugcontainer).find(".bdsug-box").attr("bdsug-click")?t.addStat("rsv_sugtp",1):t.addStat("rsv_sugtp",0):t.removeStat("rsv_sugtp");
|
||||
try{!function(){var e=(new Date).getTime();document.cookie="WWW_ST="+e+";expires="+new Date(e+1e4).toGMTString()}()}catch(i){}if(0===t.index&&t.dataDirect.length>0&&t.directSugSelected){if(window.open($(t.sugcontainer).find(".bdsug-direct p").attr("link"),"_blank"),t.blankHandle(),ns_c({pj_name:"zhida_sug",sug_prefix:encodeURIComponent(t.inputValue),sug_query:encodeURIComponent(t.dataDirect[0].value),sug_siteurl:encodeURIComponent(t.dataDirect[0].otherData.siteurl),sug_chufa:encodeURIComponent(t.dataDirect[0].otherData.hit_q),sug_inputT:t.directInputT?t.directInputT:0,rsv_bp:t.bds.comm.ishome?0:1}),t.bds&&t.bds.comm&&t.bds.comm.username){var r=t.bds&&t.bds.util&&t.bds.util.domain&&t.bds.util.domain.get("http://api.open.baidu.com/new_hsug/data/write");
|
||||
r=r+"?query="+encodeURIComponent(t.dataDirect[0].value)+"&src=1&f=3&st="+(t.showsugstore?"1":"0"),$.ajax({dataType:"jsonp",scriptCharset:"utf-8",jsonp:"cb",timeout:6e3,url:r,success:function(){}})}t.index=-1,t.directSugSelected=!1}else if($.isFunction(t.submission)&&(s=t.submission.call(t.form,e),t.hideSug(),t.inputValue=t.value,t.dataCached={},t.clearStat()),s){var o=t.ipt.value,u=$("#kw").attr("placeholder")||$(".kw-placeholder").text();o?(o=$.limitWd(o),t.ipt.value=t.value=t.inputValue=t.showValue=o):u&&(o=$.limitWd(u),$(".kw-placeholder").hide(),t.ipt.value=t.value=t.inputValue=t.showValue=o,t.addStat("rsv_dq",1)),t.form.submit(),t.blankHandle()
|
||||
}"_blank"!==$(t.form).attr("target")&&t.addStat("rsv_bp",1),t.removeStat("rsv_dq")},blankHandle:function(){var e=this;/12783|14655|14668/.test(e.bds.comm.sid)?setTimeout(function(){e.ipt.value=e.value=e.inputValue=e.showValue="",(navigator&&navigator.userAgent?navigator.userAgent:"").match(/(msie [2-8])/i)||$(e.ipt).focus()},25):/13488|14654|14667/.test(e.bds.comm.sid)&&setTimeout(function(){$(e.ipt).select()},25)},init:function(){var e=this;e.setAutocomplete("off"),e.addStat("rsv_bp",e.rsv_bp),e.updateInitData("init"),e.bds.se.sugdnscached||($.ajax({dataType:"jsonp",async:!0,url:e.buildUrl("","",!0),jsonp:"cb",timeout:5e3,success:function(){}}),e.bds.se.sugdnscached=1),e.imt=new ImeTrack({iptId:"kw",adv:!0,innerchange:!1}),$(e.ipt).on("inputChange",function(e,t){t.imt.triggerInputChange(e)
|
||||
}),e.startCircle(),e.clearStat(),$(e.ipt).on("click",function(t){t.stopPropagation(),!e.withoutMode&&e.clickIpt(),0===e.rsv_sug4&&(e.rsv_sug4=(new Date).getTime())}).on("focus",function(){e.startCircle()}).on("keydown",function(t){t=t||window.event,0===e.inputT&&(e.inputT=(new Date).getTime()),0===e.rsv_sug4&&(e.rsv_sug4=(new Date).getTime()),(9===t.keyCode||27===t.keyCode)&&e.hideSug(),13===t.keyCode&&e.addStat("rsv_sug2",0),86===t.keyCode&&t.ctrlKey&&e.addStat("rsv_n",2),e.sugcontainer&&"none"!==e.sugcontainer.style.display?(38===t.keyCode&&(t.preventDefault(),e.pressUp()),40===t.keyCode&&(t.preventDefault(),e.pressDown())):(38===t.keyCode||40===t.keyCode)&&(t.preventDefault(),e.request(e.value))
|
||||
}),e.form&&$(e.form).submit(function(t){return e.bds&&e.bds.comm&&0===e.bds.comm.ishome&&e.addStat("oq",e.bds.comm.confirmQuery?xss(e.bds.comm.confirmQuery):""),e.bds&&e.bds.comm&&e.bds.comm.confirmQid&&e.addStat("rsv_pq",e.bds.comm.confirmQid),e.formSubmit(t),!1})},outInterface:function(){var e=this;return{setVisibleSug:function(){var t=$('<i class="c-icon c-icon-bear-round"></i>');return function(s){var a;for(t.remove(),a=0;a<e.dataArray.length;a++)if(e.dataArray[a].value===s){t.appendTo($(e.sugcontainer).find("li").eq(a));
|
||||
break}}}(),getStat:function(t){return e.stat?e.stat[t]:void 0},clearStat:function(){return e.clearStat()},setKey:function(t){e.ipt.value=e.value=e.inputValue=e.showValue=t},visible:function(){return e.visible},is_selecting:function(){return e.visible&&e.is_selecting},data:function(){return e.dataArray&&e.dataArray.length?$.grep(e.dataArray,function(e){return"direct"!==e.type}):[]},show:function(){return e.showSug()},hide:function(){return e.hideSug()},start:function(){return e.startCircle()},stop:function(){return e.stopCircle()
|
||||
},setMaxNum:function(t){return e.maxNum=t},check:function(){return e.check()},formSubmit:function(){return e.formSubmit()},updateInitData:function(){return e.updateInitData()},on:function(){$(e.ipt).on.apply($(e.ipt),arguments)},height:function(){return $(e.sugcontainer).height()},off:function(){$(e.ipt).off.apply($(e.ipt),arguments)},getRsvStatus:function(t){return e.getRsvStatus(t)}}}},bdSug}),define("@baidu/search-sug",["@baidu/search-sug/sug/index"],function(e){return e});
|
||||
84
static/data/Component is not found in path_files/soutu.css
Normal file
84
static/data/Component is not found in path_files/soutu.css
Normal file
@@ -0,0 +1,84 @@
|
||||
#kw::-ms-clear{display:none}
|
||||
#kw::-webkit-input-placeholder,#kw::-moz-input-placeholder,#kw:-moz-input-placeholder,#kw:-ms-input-placeholder{color:#ccc}
|
||||
.ipt_rec{right:41px!important;left:initial;top:initial}
|
||||
.ipt_rec:after{content:"";display:inline-block;height:14px;width:0;border-left:1px solid #e7e7e7;margin:10px 0 10px 24px}
|
||||
.soutu-btn{z-index:1;position:absolute;right:11px;top:50%;margin-top:-8px;height:16px;width:18px;background:#fff url(https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/soutu/img/camera_new_5606e8f.png) no-repeat;background-image:-webkit-image-set(url(https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/soutu/img/camera_new_5606e8f.png) 1x,url(https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/soutu/img/camera_new_x2_fb6c085.png) 2x);background-image:-moz-image-set(url(https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/soutu/img/camera_new_5606e8f.png) 1x,url(https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/soutu/img/camera_new_x2_fb6c085.png) 2x);background-image:-o-image-set(url(https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/soutu/img/camera_new_5606e8f.png) 1x,url(https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/soutu/img/camera_new_x2_fb6c085.png) 2x);background-image:-ms-image-set(url(https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/soutu/img/camera_new_5606e8f.png) 1x,url(https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/soutu/img/camera_new_x2_fb6c085.png) 2x);cursor:pointer}
|
||||
.soutu-btn:hover{background-position:0 -20px}
|
||||
.wrapper_l #kw{width:494px}
|
||||
.soutu-env-mac #kw{width:460px}
|
||||
.soutu-btn.soutu-btn_retainer{background:#fff url(https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/soutu/img/camera_b659d28.png) no-repeat center;background-position:0 50%;background-size:25px 25px}
|
||||
.soutu-layer{background-color:#fff;position:absolute;border:1px solid #3385ff;z-index:101}
|
||||
.soutu-layer .soutu-icon{display:inline-block;background:url(https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/soutu/img/soutu_icons_sample_e128610.png) no-repeat}
|
||||
.soutu-layer .soutu-url-wrap{border-bottom:1px solid #ccc;background:#fff;display:inline-block;width:539px;overflow:hidden;height:34px;vertical-align:top}
|
||||
.soutu-env-nomac.soutu-env-index .soutu-layer .soutu-url-wrap{background:transparent}
|
||||
.soutu-layer .soutu-url-wrap.focus{border-color:#4791ff transparent #4791ff #4791ff}
|
||||
.soutu-layer #soutu-url-kw{width:526px;height:22px;font:13px/18px '宋体';color:#aaa;line-height:22px\9;margin:6px 0 0 7px;padding:0;background:transparent;border:0;outline:0;-webkit-appearance:none}
|
||||
.soutu-layer #soutu-url-kw::-webkit-input-placeholder,.soutu-layer #soutu-url-kw::-moz-input-placeholder,.soutu-layer #soutu-url-kw:-moz-input-placeholder,.soutu-layer #soutu-url-kw:-ms-input-placeholder{color:#ccc}
|
||||
.soutu-layer .soutu-url{position:relative;z-index:2}
|
||||
.soutu-layer .soutu-url-btn{position:relative;display:inline-block;text-align:center;width:100px;height:35px;background:#3385ff;border:0 none;border-bottom:1px solid #2d78f4;cursor:pointer;vertical-align:top;margin:-1px -1px 0 0}
|
||||
.soutu-layer .soutu-url-btn:hover{background:#317ef3;border-bottom:1px solid #2868c8;box-shadow:1px 1px 1px #ccc;margin:-1px -1px 0 0}
|
||||
.soutu-layer .soutu-url-btn-icon{position:absolute;margin:auto;left:0;right:0;top:0;bottom:0;width:18px;height:16px;background-image:url(https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/soutu/img/camera_layer_dc17de8.png);background-image:-webkit-image-set(url(https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/soutu/img/camera_layer_dc17de8.png) 1x,url(https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/soutu/img/camera_layer_x2_673a7fa.png) 2x);background-image:-moz-image-set(url(https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/soutu/img/camera_layer_dc17de8.png) 1x,url(https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/soutu/img/camera_layer_x2_673a7fa.png) 2x);background-image:-o-image-set(url(https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/soutu/img/camera_layer_dc17de8.png) 1x,url(https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/soutu/img/camera_layer_x2_673a7fa.png) 2x);background-image:-ms-image-set(url(https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/soutu/img/camera_layer_dc17de8.png) 1x,url(https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/soutu/img/camera_layer_x2_673a7fa.png) 2x)}
|
||||
.soutu-layer .soutu-state-normal{padding:23px 20px 27px}
|
||||
.soutu-layer .soutu-close{position:absolute;right:18px;bottom:13px;z-index:2;background-position:-20px 0;width:18px;height:18px}
|
||||
.soutu-layer .soutu-close:hover{background-position:-197px -1px}
|
||||
.soutu-layer .soutu-url-error{position:absolute;right:121px;margin-top:5px;background:url(https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/soutu/img/soutu_icons_sample_e128610.png) no-repeat center;display:none;width:134px;padding-left:36px;height:26px;line-height:26px;color:#e43;background-position:right -65px}
|
||||
.soutu-layer .soutu-drop{text-align:center;height:75px;padding-top:25px;margin-bottom:16px;background-color:#fafafa}
|
||||
.soutu-layer .soutu-drop.drag-over{background-color:#f2f2f2}
|
||||
.soutu-layer .soutu-drop-tip{display:block;font-size:16px;color:#999}
|
||||
.soutu-drop.drag-over .soutu-drop-tip{color:#333}
|
||||
.soutu-layer .soutu-drop-icon{margin-top:6px;width:28px;height:28px;background-position:-70px -2px}
|
||||
.soutu-drop.drag-over .soutu-drop-icon{background-position:-42px -2px}
|
||||
.soutu-layer .upload-wrap{position:relative;width:158px;height:43px;font-size:16px;border:1px solid #cacbcc;line-height:43px;margin:0 auto;color:#333;text-align:center}
|
||||
.soutu-layer .upload-wrap:hover{border-color:#388bff}
|
||||
.soutu-layer .upload-pic{position:absolute;font-size:0;width:100%;height:100%;outline:0;opacity:0;filter:alpha(opacity=0);margin-left:-18px;z-index:1;cursor:pointer}
|
||||
.soutu-layer .upload-icon{position:relative;top:2px;width:18px;height:18px;margin-right:8px;background-position:-144px 0}
|
||||
.soutu-waiting{padding:23px 20px 27px;margin-top:35px;height:125px;text-align:center;font-size:16px;font-weight:700;background:#fff}
|
||||
.soutu-waiting .ball{width:40px;height:10px;margin:0 auto;position:relative}
|
||||
.soutu-waiting .b{left:20px;position:absolute;width:10px;height:10px;-moz-border-radius:50%;-webkit-border-radius:50%;border-radius:50%}
|
||||
.soutu-waiting span{display:inline-block;margin-top:30px;font-size:16px}
|
||||
.soutu-error{padding:23px 20px 27px;margin-top:17px;height:143px;text-align:center}
|
||||
.soutu-layer .soutu-error-icon{width:44px;height:44px;background-position:-98px -1px}
|
||||
.soutu-error-main{margin:12px 0 15px;font:16px "Microsoft YaHei";color:#333}
|
||||
.soutu-error-tip{font-weight:400;color:#999;font:13px SimSun}
|
||||
.soutu-error-upload{text-decoration:underline;color:#333}
|
||||
.soutu-error-upload:active{color:#333}
|
||||
.soutu-error-upload:hover{cursor:pointer}
|
||||
.soutu-newtab{padding:23px 20px 27px}
|
||||
.soutu-newtab .soutu-newtab-cont{height:75px;padding-top:25px;margin-bottom:16px;background-color:#fafafa;position:relative}
|
||||
.soutu-newtab .soutu-newtab-img{position:absolute;top:0;left:0;width:100px;height:100px;background-repeat:no-repeat;background-size:cover}
|
||||
.soutu-newtab .soutu-newtab-text{margin-left:175px;font-size:16px;line-height:25px;color:#333}
|
||||
.soutu-newtab .soutu-newtab-link{display:block;position:relative;width:158px;height:43px;font-size:16px;border:1px solid #cacbcc;line-height:43px;margin:0 auto;color:#333;text-align:center;text-decoration:none}
|
||||
.soutu-newtab .soutu-newtab-link:hover{border-color:#388bff}
|
||||
.wrapper_s .soutu-env-result .soutu-layer,.wrapper_s .soutu-env-imgresult .soutu-layer{width:539px}
|
||||
.wrapper_s .soutu-env-result .soutu-url-wrap,.wrapper_s .soutu-env-imgresult .soutu-url-wrap{width:439px}
|
||||
.wrapper_s .soutu-env-mac #kw{width:361px}
|
||||
.wrapper_s .soutu-env-nomac #kw{width:395px}
|
||||
#quickdelete{display:none!important}
|
||||
.soutu-input-image-active{background-color:#3385ff!important;border:1px solid #3385ff!important;top:1px!important}
|
||||
.soutu-input-image-active:hover{border-color:#317ef3;background-color:#317ef3!important}
|
||||
.soutu-input-image-active .soutu-input-close::after{background-position:-163px -22px!important}
|
||||
.soutu-input-image i.active-del{background-color:#1f91ff}
|
||||
.soutu-env-result .soutu-layer,.soutu-env-imgresult .soutu-layer{width:639px}
|
||||
.soutu-env-newindex .quickdelete-wrap{position:relative}
|
||||
.soutu-env-newindex .ipt_rec{top:3px}
|
||||
.soutu-env-newindex #kw{width:450px!important;padding-right:79px!important}
|
||||
.soutu-env-newindex.soutu-env-mac #kw{width:450px!important;padding-right:78px!important}
|
||||
.s-skin-hasbg .soutu-env-newindex.soutu-env-mac #kw{width:450px!important;padding-right:80px!important}
|
||||
.soutu-env-newindex.soutu-env-nomac #kw{width:480px!important;padding-right:48px!important}
|
||||
.s-skin-hasbg .soutu-env-newindex.soutu-env-nomac #kw{width:480px!important;padding-right:50px!important}
|
||||
.soutu-env-newindex .soutu-layer{border:0;box-shadow:1px 1px 3px rgba(0,0,0,.2);-webkit-box-shadow:1px 1px 3px rgba(0,0,0,.2);-moz-box-shadow:1px 1px 3px rgba(0,0,0,.2)}
|
||||
.soutu-env-newindex .soutu-url-btn,.soutu-env-newindex .soutu-url-btn:hover{width:104px;height:40px;background-color:#e2e2e2;border:0;margin:0;box-shadow:none}
|
||||
.soutu-env-newindex .soutu-url-btn-icon{background-image:url(https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/soutu/img/camera_newindex_layer_cc6dffd.png);background-image:-webkit-image-set(url(https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/soutu/img/camera_newindex_layer_cc6dffd.png) 1x,url(https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/soutu/img/camera_newindex_layer_x2_16dfd32.png) 2x);background-image:-moz-image-set(url(https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/soutu/img/camera_newindex_layer_cc6dffd.png) 1x,url(https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/soutu/img/camera_newindex_layer_x2_16dfd32.png) 2x);background-image:-o-image-set(url(https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/soutu/img/camera_newindex_layer_cc6dffd.png) 1x,url(https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/soutu/img/camera_newindex_layer_x2_16dfd32.png) 2x);background-image:-ms-image-set(url(https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/soutu/img/camera_newindex_layer_cc6dffd.png) 1x,url(https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/soutu/img/camera_newindex_layer_x2_16dfd32.png) 2x)}
|
||||
.soutu-env-newindex .soutu-url-wrap{width:537px;height:39px}
|
||||
.soutu-env-newindex .soutu-no-skin .soutu-url-wrap{width:536px}
|
||||
.soutu-env-newindex #soutu-url-kw{width:523px;margin:0;padding:9px 7px}
|
||||
#head_wrapper.s-down .soutu-env-newindex.soutu-env-mac #kw{padding-right:78px!important}
|
||||
#head_wrapper.s-down .soutu-env-newindex.soutu-env-nomac #kw{padding-right:48px!important}
|
||||
#head_wrapper.s-down .soutu-env-newindex #kw{padding-right:78px!important}
|
||||
#head_wrapper.s-down .soutu-env-newindex .soutu-url-wrap{width:535px}
|
||||
#head_wrapper.s-down .soutu-env-newindex #soutu-url-kw{width:521px}
|
||||
#head_wrapper.s-down .soutu-env-newindex .soutu-url-btn{width:104px}
|
||||
#head_wrapper.s-down .soutu-env-newindex .soutu-layer,.soutu-env-newindex .soutu-no-skin{box-shadow:none;border:1px solid #3385ff}
|
||||
#head_wrapper.s-down .soutu-env-newindex .soutu-url-btn-icon,.soutu-env-newindex .soutu-no-skin .soutu-url-btn-icon{background-image:url(https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/soutu/img/camera_layer_dc17de8.png);background-image:-webkit-image-set(url(https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/soutu/img/camera_layer_dc17de8.png) 1x,url(https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/soutu/img/camera_layer_x2_673a7fa.png) 2x);background-image:-moz-image-set(url(https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/soutu/img/camera_layer_dc17de8.png) 1x,url(https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/soutu/img/camera_layer_x2_673a7fa.png) 2x);background-image:-o-image-set(url(https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/soutu/img/camera_layer_dc17de8.png) 1x,url(https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/soutu/img/camera_layer_x2_673a7fa.png) 2x);background-image:-ms-image-set(url(https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/soutu/img/camera_layer_dc17de8.png) 1x,url(https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/soutu/img/camera_layer_x2_673a7fa.png) 2x)}
|
||||
#head_wrapper.s-down .soutu-env-newindex .soutu-url-btn,.soutu-env-newindex .soutu-no-skin .soutu-url-btn{background-color:#3385ff;margin:-1px -1px 0 0;border-bottom:1px solid #2d78f4;height:40px}
|
||||
#head_wrapper.s-down .soutu-env-newindex .soutu-url-btn:hover,.soutu-env-newindex .soutu-no-skin .soutu-url-btn:hover{background:#317ef3;border-bottom:1px solid #2868c8;box-shadow:1px 1px 1px #ccc;margin:-1px -1px 0 0}
|
||||
@@ -0,0 +1,17 @@
|
||||
!function(){var e=function(){function t(){if(!X&&document.getElementsByTagName("body")[0]){try{var e,t=g("span");t.style.display="none",e=R.getElementsByTagName("body")[0].appendChild(t),e.parentNode.removeChild(e),e=null,t=null}catch(n){return}X=!0;for(var i=H.length,a=0;i>a;a++)H[a]()}}function n(e){X?e():H[H.length]=e}function i(e){if(typeof P.addEventListener!==O)P.addEventListener("load",e,!1);else if(typeof R.addEventListener!==O)R.addEventListener("load",e,!1);else if(typeof P.attachEvent!==O)b(P,"onload",e);
|
||||
else if("function"==typeof P.onload){var t=P.onload;P.onload=function(){t(),e()}}else P.onload=e}function a(){var e=R.getElementsByTagName("body")[0],t=g(x);t.setAttribute("style","visibility:hidden;"),t.setAttribute("type",M);var n=e.appendChild(t);n?!function(){if(typeof n.GetVariable!==O)try{var i=n.GetVariable("$version");i&&(i=i.split(" ")[1].split(","),Q.pv=[w(i[0]),w(i[1]),w(i[2])])}catch(a){Q.pv=[8,0,0]}else Q.pv=[8,0,0];e.removeChild(t),n=null,r()}():r()}function r(){var e=W.length;if(e>0)for(var t=0;e>t;t++){var n=W[t].id,i=W[t].callbackFn,a={success:!1,id:n};
|
||||
if(Q.pv[0]>0){var r=m(n);if(r)if(!E(W[t].swfVersion)||Q.wk&&Q.wk<312)if(W[t].expressInstall&&l()){var f={};f.data=W[t].expressInstall,f.width=r.getAttribute("width")||"0",f.height=r.getAttribute("height")||"0",r.getAttribute("class")&&(f.styleclass=r.getAttribute("class")),r.getAttribute("align")&&(f.align=r.getAttribute("align"));for(var c={},u=r.getElementsByTagName("param"),p=u.length,v=0;p>v;v++)"movie"!==u[v].getAttribute("name").toLowerCase()&&(c[u[v].getAttribute("name")]=u[v].getAttribute("value"));
|
||||
s(f,c,n,i)}else d(r),i&&i(a);else A(n,!0),i&&(a.success=!0,a.ref=o(n),a.id=n,i(a))}else if(A(n,!0),i){var y=o(n);y&&typeof y.SetVariable!==O&&(a.success=!0,a.ref=y,a.id=y.id),i(a)}}}function o(e){var t=null,n=m(e);return n&&"OBJECT"===n.nodeName.toUpperCase()&&(t=typeof n.SetVariable!==O?n:n.getElementsByTagName(x)[0]||n),t}function l(){return!z&&E("6.0.65")&&(Q.win||Q.mac)&&!(Q.wk&&Q.wk<312)}function s(e,t,n,i){var a=m(n);if(n=h(n),z=!0,k=i||null,B={success:!1,id:n},a){"OBJECT"===a.nodeName.toUpperCase()?(T=f(a),N=null):(T=a,N=n),e.id=j,(typeof e.width===O||!/%$/.test(e.width)&&w(e.width)<310)&&(e.width="310"),(typeof e.height===O||!/%$/.test(e.height)&&w(e.height)<137)&&(e.height="137");
|
||||
var r=Q.ie?"ActiveX":"PlugIn",o="MMredirectURL="+encodeURIComponent(P.location.toString().replace(/&/g,"%26"))+"&MMplayerType="+r+"&MMdoctitle="+encodeURIComponent(R.title.slice(0,47)+" - Flash Player Installation");if(typeof t.flashvars!==O?t.flashvars+="&"+o:t.flashvars=o,Q.ie&&4!=a.readyState){var l=g("div");n+="SWFObjectNew",l.setAttribute("id",n),a.parentNode.insertBefore(l,a),a.style.display="none",v(a)}u(e,t,n)}}function d(e){if(Q.ie&&4!=e.readyState){e.style.display="none";var t=g("div");
|
||||
e.parentNode.insertBefore(t,e),t.parentNode.replaceChild(f(e),t),v(e)}else e.parentNode.replaceChild(f(e),e)}function f(e){var t=g("div");if(Q.win&&Q.ie)t.innerHTML=e.innerHTML;else{var n=e.getElementsByTagName(x)[0];if(n){var i=n.childNodes;if(i)for(var a=i.length,r=0;a>r;r++)1==i[r].nodeType&&"PARAM"===i[r].nodeName||8==i[r].nodeType||t.appendChild(i[r].cloneNode(!0))}}return t}function c(e,t){var n=g("div");return n.innerHTML="<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'><param name='movie' value='"+e+"'>"+t+"</object>",n.firstChild
|
||||
}function u(e,t,n){var i,a=m(n);if(n=h(n),Q.wk&&Q.wk<312)return i;if(a){var r,o,l,s=g(Q.ie?"div":x);typeof e.id===O&&(e.id=n);for(l in t)t.hasOwnProperty(l)&&"movie"!==l.toLowerCase()&&p(s,l,t[l]);Q.ie&&(s=c(e.data,s.innerHTML));for(r in e)e.hasOwnProperty(r)&&(o=r.toLowerCase(),"styleclass"===o?s.setAttribute("class",e[r]):"classid"!==o&&"data"!==o&&s.setAttribute(r,e[r]));Q.ie?G[G.length]=e.id:(s.setAttribute("type",M),s.setAttribute("data",e.data)),a.parentNode.replaceChild(s,a),i=s}return i}function p(e,t,n){var i=g("param");
|
||||
i.setAttribute("name",t),i.setAttribute("value",n),e.appendChild(i)}function v(e){var t=m(e);t&&"OBJECT"===t.nodeName.toUpperCase()&&(Q.ie?(t.style.display="none",function n(){if(4==t.readyState){for(var e in t)"function"==typeof t[e]&&(t[e]=null);t.parentNode.removeChild(t)}else setTimeout(n,10)}()):t.parentNode.removeChild(t))}function y(e){return e&&e.nodeType&&1===e.nodeType}function h(e){return y(e)?e.id:e}function m(e){if(y(e))return e;var t=null;try{t=R.getElementById(e)}catch(n){}return t
|
||||
}function g(e){return R.createElement(e)}function w(e){return parseInt(e,10)}function b(e,t,n){e.attachEvent(t,n),J[J.length]=[e,t,n]}function E(e){e+="";var t=Q.pv,n=e.split(".");return n[0]=w(n[0]),n[1]=w(n[1])||0,n[2]=w(n[2])||0,t[0]>n[0]||t[0]==n[0]&&t[1]>n[1]||t[0]==n[0]&&t[1]==n[1]&&t[2]>=n[2]?!0:!1}function C(e,t,n,i){var a=R.getElementsByTagName("head")[0];if(a){var r="string"==typeof n?n:"screen";if(i&&(I=null,L=null),!I||L!=r){var o=g("style");o.setAttribute("type","text/css"),o.setAttribute("media",r),I=a.appendChild(o),Q.ie&&typeof R.styleSheets!==O&&R.styleSheets.length>0&&(I=R.styleSheets[R.styleSheets.length-1]),L=r
|
||||
}I&&(typeof I.addRule!==O?I.addRule(e,t):typeof R.createTextNode!==O&&I.appendChild(R.createTextNode(e+" {"+t+"}")))}}function A(e,t){if(Z){var n=t?"visible":"hidden",i=m(e);X&&i?i.style.visibility=n:"string"==typeof e&&C("#"+e,"visibility:"+n)}}function S(e){var t=/[\\\"<>\.;]/,n=null!==t.exec(e);return n&&typeof encodeURIComponent!==O?encodeURIComponent(e):e}{var T,N,k,B,I,L,O="undefined",x="object",F="Shockwave Flash",$="ShockwaveFlash.ShockwaveFlash",M="application/x-shockwave-flash",j="SWFObjectExprInst",U="onreadystatechange",P=window,R=document,V=navigator,D=!1,H=[],W=[],G=[],J=[],X=!1,z=!1,Z=!0,q=!1,Q=function(){var e=typeof R.getElementById!==O&&typeof R.getElementsByTagName!==O&&typeof R.createElement!==O,t=V.userAgent.toLowerCase(),n=V.platform.toLowerCase(),i=/win/.test(n?n:t),a=/mac/.test(n?n:t),r=/webkit/.test(t)?parseFloat(t.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):!1,o="Microsoft Internet Explorer"===V.appName,l=[0,0,0],s=null;
|
||||
if(typeof V.plugins!==O&&typeof V.plugins[F]===x)s=V.plugins[F].description,s&&typeof V.mimeTypes!==O&&V.mimeTypes[M]&&V.mimeTypes[M].enabledPlugin&&(D=!0,o=!1,s=s.replace(/^.*\s+(\S+\s+\S+$)/,"$1"),l[0]=w(s.replace(/^(.*)\..*$/,"$1")),l[1]=w(s.replace(/^.*\.(.*)\s.*$/,"$1")),l[2]=/[a-zA-Z]/.test(s)?w(s.replace(/^.*[a-zA-Z]+(.*)$/,"$1")):0);else if(typeof P.ActiveXObject!==O)try{var d=new ActiveXObject($);d&&(s=d.GetVariable("$version"),s&&(o=!0,s=s.split(" ")[1].split(","),l=[w(s[0]),w(s[1]),w(s[2])]))
|
||||
}catch(f){}return{w3:e,pv:l,wk:r,ie:o,win:i,mac:a}}();!function(){Q.w3&&((typeof R.readyState!==O&&("complete"===R.readyState||"interactive"===R.readyState)||typeof R.readyState===O&&(R.getElementsByTagName("body")[0]||R.body))&&t(),X||(typeof R.addEventListener!==O&&R.addEventListener("DOMContentLoaded",t,!1),Q.ie&&(R.attachEvent(U,function e(){"complete"===R.readyState&&(R.detachEvent(U,e),t())}),P==top&&!function n(){if(!X){try{R.documentElement.doScroll("left")}catch(e){return void setTimeout(n,0)
|
||||
}t()}}()),Q.wk&&!function i(){return X?void 0:/loaded|complete/.test(R.readyState)?void t():void setTimeout(i,0)}()))}()}H[0]=function(){D?a():r()};!function(){Q.ie&&window.attachEvent("onunload",function(){for(var t=J.length,n=0;t>n;n++)J[n][0].detachEvent(J[n][1],J[n][2]);for(var i=G.length,a=0;i>a;a++)v(G[a]);for(var r in Q)Q[r]=null;Q=null;for(var o in e)e[o]=null;e=null})}();return{registerObject:function(e,t,n,i){if(Q.w3&&e&&t){var a={};a.id=e,a.swfVersion=t,a.expressInstall=n,a.callbackFn=i,W[W.length]=a,A(e,!1)
|
||||
}else i&&i({success:!1,id:e})},getObjectById:function(e){return Q.w3?o(e):void 0},embedSWF:function(e,t,i,a,r,o,d,f,c,p){var v=h(t),y={success:!1,id:v};Q.w3&&!(Q.wk&&Q.wk<312)&&e&&t&&i&&a&&r?(A(v,!1),n(function(){i+="",a+="";var n={};if(c&&typeof c===x)for(var h in c)n[h]=c[h];n.data=e,n.width=i,n.height=a;var m={};if(f&&typeof f===x)for(var g in f)m[g]=f[g];if(d&&typeof d===x)for(var w in d)if(d.hasOwnProperty(w)){var b=q?encodeURIComponent(w):w,C=q?encodeURIComponent(d[w]):d[w];typeof m.flashvars!==O?m.flashvars+="&"+b+"="+C:m.flashvars=b+"="+C
|
||||
}if(E(r)){var S=u(n,m,t);n.id==v&&A(v,!0),y.success=!0,y.ref=S,y.id=S.id}else{if(o&&l())return n.data=o,void s(n,m,t,p);A(v,!0)}p&&p(y)})):p&&p(y)},switchOffAutoHideShow:function(){Z=!1},enableUriEncoding:function(e){q=typeof e===O?!0:e},ua:Q,getFlashPlayerVersion:function(){return{major:Q.pv[0],minor:Q.pv[1],release:Q.pv[2]}},hasFlashPlayerVersion:E,createSWF:function(e,t,n){return Q.w3?u(e,t,n):void 0},showExpressInstall:function(e,t,n,i){Q.w3&&l()&&s(e,t,n,i)},removeSWF:function(e){Q.w3&&v(e)},createCSS:function(e,t,n,i){Q.w3&&C(e,t,n,i)
|
||||
},addDomLoadEvent:n,addLoadEvent:i,getQueryParamValue:function(e){var t=R.location.search||R.location.hash;if(t){if(/\?/.test(t)&&(t=t.split("?")[1]),!e)return S(t);for(var n=t.split("&"),i=0;i<n.length;i++)if(n[i].substring(0,n[i].indexOf("="))==e)return S(n[i].substring(n[i].indexOf("=")+1))}return""},expressInstallCallback:function(){if(z){var e=m(j);e&&T&&(e.parentNode.replaceChild(T,e),N&&(A(N,!0),Q.ie&&(T.style.display="block")),k&&k(B)),z=!1}},version:"2.3"}}();"function"==typeof define&&define("plugins/swfobject",["require"],function(){return e
|
||||
})}();
|
||||
@@ -0,0 +1,22 @@
|
||||
!function(){var t=navigator.platform.toUpperCase(),e="//graph.baidu.com/upload",a=-1!==t.indexOf("MAC"),n=$("#kw"),r=$("#form").parent(),o="https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/soutu/css/soutu.css",i=10485760,s=102400,u={1:"抱歉,您上传的文件不是图片格式",2:"图片上传失败"},l={getEnv:function(){if(bds&&bds.comm){if(bds.comm.ishome&&bds.comm.newindex)return"newindex";if(bds.comm.ishome)return"index";if(/^\/imgsearch/.test(location.pathname))return"imgresult"}return"result"},supportVoice:function(){return window.URL=window.URL||window.webkitURL,navigator.getUserMedia=navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia||navigator.msGetUserMedia,window.AudioContext=window.AudioContext||window.webkitAudioContext,navigator.getUserMedia&&window.URL&&window.AudioContext&&window.Worker&&swfobject.hasFlashPlayerVersion("11.1.0")?!0:!1
|
||||
},parseQuery:function(){for(var t=window.location.search.substr(1),e={},a=t.substring(t.indexOf("?")+1,t.length).split("&"),n=0;n<a.length;n++){var r=a[n],o=r.split("=");o[0]&&(e[o[0]]=decodeURIComponent(o[1]))}return e},getQuery:function(t){var e=new RegExp("(^|&)"+t+"=([^&]*)(&|$)","i"),a=window.location.search.substr(1).match(e);return null!=a?a[2]:null},isURL:function(t){return/^(((http[s]?:\/\/)|(ftp:\/\/))?([\w-]+\.)+(com|edu|gov|int|mil|net|org|biz|info|pro|name|museum|coop|aero|xxx|idv|al|dz|af|ar|ae|aw|om|az|eg|et|ie|ee|ad|ao|ai|ag|at|au|mo|bb|pg|bs|pk|py|ps|bh|pa|br|by|bm|bg|mp|bj|be|is|pr|ba|pl|bo|bz|bw|bt|bf|bi|bv|kp|gq|dk|de|tl|tp|tg|dm|do|ru|ec|er|fr|fo|pf|gf|tf|va|ph|fj|fi|cv|fk|gm|cg|cd|co|cr|gg|gd|gl|ge|cu|gp|gu|gy|kz|ht|kr|nl|an|hm|hn|ki|dj|kg|gn|gw|ca|gh|ga|kh|cz|zw|cm|qa|ky|km|ci|kw|cc|hr|ke|ck|lv|ls|la|lb|lt|lr|ly|li|re|lu|rw|ro|mg|im|mv|mt|mw|my|ml|mk|mh|mq|yt|mu|mr|us|um|as|vi|mn|ms|bd|pe|fm|mm|md|ma|mc|mz|mx|nr|np|ni|ne|ng|nu|no|nf|na|za|zq|aq|gs|eu|pw|pn|pt|jp|se|ch|sv|ws|yu|sl|sn|cy|sc|sa|cx|st|sh|kn|lc|sm|pm|vc|lk|sk|si|sj|sz|sd|sr|sb|so|tj|tw|th|tz|to|tc|tt|tn|tv|tr|tm|tk|wf|vu|gt|ve|bn|ug|ua|uy|uz|es|eh|gr|hk|sg|nc|nz|hu|sy|jm|am|ac|ye|iq|ir|il|it|in|id|uk|vg|io|jo|vn|zm|je|td|gi|cl|cf|cn)(:\d+)?(\/[^\s]*)?)$/.test(t)
|
||||
},blobtoBase64:function(t,e){var a=new FileReader;a.onload=function(){e(this.result)},a.onerror=function(){e()},a.readAsDataURL(t)},compressImg:function(t){function e(t,e){var a=new FileReader;a.onload=function(){var t=this.result.split("base64,")[1];e(t,this.result)},a.onerror=function(){e()},a.readAsDataURL(t)}function a(t,e,a){e=e||"",a=a||512;for(var n=atob(t),r=[],o=n.length,i=0;o>i;i+=a){for(var s=n.slice(i,i+a),u=new Array(s.length),l=0;l<s.length;l++)u[l]=s.charCodeAt(l);var c=new Uint8Array(u);
|
||||
r.push(c)}return new Blob(r,{type:e})}function n(t){var e=t.width,n=t.height;if(e>800||n>800){var r=Math.max(e/800,n/800);e/=r,n/=r}var o=document.createElement("canvas");o.width=e,o.height=n;var i=o.getContext("2d");i.fillRect(0,0,o.width,o.height),i.drawImage(t,0,0,e,n);var s=o.toDataURL("image/jpeg",1);return a(s.replace(/^.*?,/,""),"image/jpeg")}var r=new $.Deferred,o=t.size;return e(t,function(e,a){var i=new Image;i.onload=function(){return s>o&&i.width<800&&i.height<800?void r.resolve(t):(t=n(i),void r.resolve(t))
|
||||
},i.src=a}),r.promise()},sendLog:function(t){var e=location.href.match(/sign=(\w{32})\b/),a=e&&e[1]||"";t.sign=a,t.fm="inlo",t.rsv_imageclick&&(t.rsv_imageclick=l.getEnv()+"_"+t.rsv_imageclick),window.soutu_mixsearch&&(t.rsv_imagemix=1),window.ns_c(t)}},c={graphIconHtml:function(){return'<span class="soutu-btn"></span>'},wrapHtml:function(){return'<div class="soutu-layer"><div class="soutu-url"><span class="soutu-url-wrap"><input id="soutu-url-kw" class="soutu-url-kw" maxlength="255" autocomplete="off" placeholder="在此处粘贴图片网址"/></span><span class="soutu-url-btn"><i class="soutu-icon soutu-url-btn-icon"></i></span><span class="soutu-url-error">请输入正确的图片网址</span></div><div class="soutu-state-normal"><div class="soutu-drop"><span class="soutu-drop-tip">拖拽图片到这里</span><i class="soutu-icon soutu-drop-icon"></i></div><div class="upload-wrap"><input type="file" class="upload-pic" value="上传图片"/><i class="soutu-icon upload-icon"></i><span class="upload-text">本地上传图片</span></div></div><a class="soutu-icon soutu-close" href="javascript:void(0);"></a></div>'
|
||||
},waitingHtml:function(){return'<div class="soutu-state-waiting soutu-waiting"><div class="ball"><div class="b"></div><div class="b"></div><div class="b"></div></div><span>正在加载图片</span></div>'},errorHtml:function(t){return'<div class="soutu-state-error soutu-error"><i class="soutu-icon soutu-error-icon"></i><p class="soutu-error-main">'+t+',请<a href="#" class="soutu-error-upload">重新上传</a></p><p class="soutu-error-tip">仅支持10M以下JPG,JPEG,PNG,BMP,GIF格式图片</p></div>'},newTabTipHtml:function(t){return['<div class="soutu-state-newtabtip soutu-newtab">','<div class="soutu-newtab-cont">','<div class="soutu-newtab-img" style="background-image:url('+t.imgUrl+')">',"</div>",'<div class="soutu-newtab-text">',"<p>"+t.text+"</p>","<span></span>","</div>","</div>",'<a class="soutu-newtab-link" href="'+t.url+'" target="_blank">查看搜索结果</a>',"</div>"].join("")
|
||||
}},d={init:function(){if("imgresult"===l.getEnv()){var t=$("#form"),e=t.find(".soutu-input-image");if(e.length){var a=!0,r=l.parseQuery(),o=t.find("input[type=hidden]"),i=o.clone();t.attr("action","/imgsearch"),o.remove(),delete r.wd,t.append('<input type="hidden" name="sign" value="'+r.sign+'">');var s=function(){e.remove(),e.off("click.soutu"),e.removeClass("soutu-input-image-active"),n.off(".soutu"),n.attr("placeholder","").removeClass("soutu-input"),a=!1,t.find("input[type=hidden]").remove(),t.append(i),t.attr("action","/s")
|
||||
};e.on("click.soutu",function(){s(),l.sendLog({rsv_imageclick:"del_thumb_by_click"})}),n.on("keydown",function(t){var a=n.val();return 8!==t.which||a.length?void(a.length<=1&&e.hasClass("soutu-input-image-active")&&e.removeClass("soutu-input-image-active")):void(e.hasClass("soutu-input-image-active")?(s(),l.sendLog({rsv_imageclick:"del_thumb_by_return"})):e.addClass("soutu-input-image-active"))}),n.on("focus.soutu",function(){e.show()}),n.on("click",function(){l.sendLog(a?{rsv_imageclick:"click_input_thumb"}:{rsv_imageclick:"click_input"})
|
||||
}),n.on("blur.soutu",function(){e.removeClass("soutu-input-image-active")}),$("#su").on("click.soutu",function(){var t=n.val();return a&&!t.length?(l.sendLog({rsv_imageclick:"search_only_thumb"}),location.href="/imgsearch?"+$.param({sign:r.sign,wd:r.sign.substr(5,16)}),!1):void 0}),t.on("submit",function(){l.sendLog(a?{rsv_imageclick:"search_image_and_text"}:{rsv_imageclick:"search_only_text"})})}}}},p={init:function(){var t=this;t.canDrop="ondrop"in document.body;var e=$('<link rel="stylesheet" href="'+o+'" type="text/css" data-for="result"/>');
|
||||
"newindex"===l.getEnv()?e.insertBefore(r.parent()):e.appendTo("head"),t.$graphIcon=$(c.graphIconHtml()).prependTo(n.parent()),r.addClass(a?"soutu-env-mac":"soutu-env-nomac").addClass("soutu-env-"+l.getEnv()),t.state="init",d.init(),t.listenIcon()},listenIcon:function(){var t=this;t.$graphIcon.on("click",function(e){e.stopPropagation(),e.preventDefault(),t.show(),t.log({rsv_imageclick:"camerabtn"})}),$(document).on("dragstart.soutu",function(t){var e,a=t.originalEvent.dataTransfer,n=t.target||t.srcElement,r=n.nodeName.toLowerCase();
|
||||
if("img"===r){e=n.src;try{a.setData("text/plain",e)}catch(o){a.setData("Text",e)}}else if("a"===r){var i=$(n).children("img");if(i.length){e=i[0].src;try{a.setData("text/plain",e)}catch(o){a.setData("Text",e)}}}}),n.on("drop.soutu",function(e){e.originalEvent.dataTransfer&&e.originalEvent.dataTransfer.files&&e.originalEvent.dataTransfer.files.length&&(e.stopPropagation(),e.preventDefault(),t.$graphIcon.trigger("click"),t.handleDrop(e),t.log({rsv_imageclick:"iptdrop"}))}).on("dragover.soutu",function(){var t=window.bds&&bds.se&&bds.se.upn&&bds.se.upn.cookieset||[],e=t[0]&&1===t[0].v;
|
||||
return!e}),$(window).one("index_off",function(){r.removeClass("soutu-env-newindex"),r.removeClass("soutu-no-skin")})},show:function(){var t=this;t.$layer||t.addLayer();var e=t.$layer;t.setState("normal"),e.show(),t.$graphIcon.hide(),1!==window.pageState||r.hasClass("soutu-env-result")||r.addClass("soutu-env-result"),"newindex"===l.getEnv()&&(r.addClass("soutu-env-newindex"),window.s_session&&!!s_session.userSkinName!=!1?e.removeClass("soutu-no-skin"):e.addClass("soutu-no-skin"))},close:function(){var t=this;
|
||||
t.$layer.hide(),t.$graphIcon.show(),t.setState("normal"),t.$urlErrorTip.hide(),t.$urlInput.val("")},addLayer:function(){var t=this,e=t.$layer=$(c.wrapHtml()).prependTo($("#form"));t.$urlInput=e.find("#soutu-url-kw").on("focus",function(){e.find(".soutu-url-layer").addClass("focus")}).on("blur",function(){e.find(".soutu-url-layer").removeClass("focus")}),"newindex"===l.getEnv()&&$(".s-lite").not(".hide-icon").length&&e.find(".soutu-url-btn").css("width","103px"),t.$dropArea=e.find(".soutu-drop"),t.$urlErrorTip=e.find(".soutu-url-error"),t.$urlSearchBtn=e.find(".soutu-url-btn"),t.panelHidden=!1,t.listenLayer()
|
||||
},handleDrop:function(t){var e=this;e.$dropArea.removeClass("drag-over");var a;if(t.originalEvent.dataTransfer&&(a=t.originalEvent.dataTransfer.files),a&&0!==a.length){var n=a[0];e.uptype="drag",e.upload(n,"PC_UPLOAD_SEARCH_MOVE")}else{var r;try{r=t.originalEvent.dataTransfer.getData("text/plain")||t.originalEvent.dataTransfer.getData("text/uri-list")}catch(o){r=t.originalEvent.dataTransfer.getData("Text")||t.originalEvent.dataTransfer.getData("URL")}r?e.handleURL(r):e.setState("error")}},listenLayer:function(){var t=this,e=t.$layer;
|
||||
t.$urlInput.on("focus",function(){e.find(".soutu-url-panel").addClass("focus")}).on("blur",function(){e.find(".soutu-url-panel").removeClass("focus")}).on("keydown",function(e){var a=e.keyCode;return"none"!==t.$urlErrorTip.css("display")&&t.$urlErrorTip.hide(),13===a?(t.handleURL(this.value),e.stopPropagation(),e.preventDefault(),!1):void 0}),t.$urlSearchBtn.on("click",function(){var e=t.$urlInput.val();t.handleURL(e)}),t.$layer.find(".upload-pic").on("change",function(){var e=this.files[0];e&&(t.uptype="upload",t.upload(e,"PC_UPLOAD_SEARCH_FILE"))
|
||||
}),t.$layer.find(".upload-pic").on("click",function(){t.log({rsv_imageclick:"uploadbtn"})}),t.$dropArea.on("dragover",function(e){t.$dropArea.addClass("drag-over"),e.stopPropagation(),e.preventDefault()}).on("dragleave",function(e){t.$dropArea.removeClass("drag-over"),e.stopPropagation(),e.preventDefault()}).on("drop",function(e){e.stopPropagation(),e.preventDefault(),t.handleDrop(e)}),t.$layer.find(".soutu-close").on("click",function(){t.close(!0),t.log({rsv_imageclick:"close"})}),t.$layer.on("click",".soutu-error-upload",function(e){e.stopPropagation(),e.preventDefault(),t.setState("normal")
|
||||
}),$(document).on("click",function(e){var a=e.target,n=!0;do if(a=a.parentNode,a===t.$layer[0]||a===t.$graphIcon[0]){n=!1;break}while(a.parentNode);n&&t.close()})},setNormal:function(){this.$layer.find(".soutu-state-normal").show();var t=this.$layer.find(".upload-pic");t.val("")},setWaiting:function(){var t=this;t.$layer.append(c.waitingHtml());var e=[[0,40],[20,20],[40,0]],a=["rgb(55,137,250)","rgb(99,99,99)","rgb(235,67,70)"];t.$layer.find(".b").each(function(t,n){var r=0;$(n).css({"background-color":a[t]}),function o(){$(n).animate({left:e[t][r%2]},{duration:800,easing:"swing",progress:function(e,o){o>=.5&&$(n).css({"background-color":a[(r+t)%3]})
|
||||
},complete:function(){o()}}),r++}()})},setError:function(t){var e=t.msg||u[2];this.$layer.append(c.errorHtml(e))},setNewTabTip:function(t){var e=this.$layer.find(".soutu-state-newtabtip");e.length&&e.remove(),e=$(c.newTabTipHtml(t)),this.$layer.append(e),l.sendLog({rsv_imageclick:"tipForNewTab"})},setState:function(t,e){var a=this;a.state=t,a.$layer.find(".soutu-state-normal").hide(),a.$layer.find(".soutu-state-error").remove(),a.$layer.find(".soutu-state-waiting").remove(),a.$layer.find(".soutu-state-newtabtip").remove(),a.$urlErrorTip.hide(),t=t.charAt(0).toUpperCase()+t.substring(1),a["set"+t].apply(a,[e||{}])
|
||||
},handleURL:function(t){l.isURL(t)?(this.$urlInput.val(t),this.setState("normal"),this.$urlErrorTip.hide(),this.uploadUrl(t),this.log({rsv_imageclick:"searchurl-success"})):(this.setState("normal"),this.$urlErrorTip.show(),this.log({rsv_imageclick:"searchurl-error"}))},openResutlPage:function(t){var e=this,a=$("#form").attr("target");if("_blank"===a){var n="图片上传完毕,根据您的搜索习惯,<br/>将打开新窗口展示搜索结果",r=window.player;r&&r.config&&r.config.play.on&&(n="您正在听音乐,为了不打扰您继续听音乐,<br/>将打开新窗口查看搜索结果"),$.isString(e.uploadObj)?e.setState("newTabTip",{text:n,imgUrl:e.uploadObj,url:t}):l.blobtoBase64(e.uploadObj,function(a){e.setState("newTabTip",{text:n,imgUrl:a,url:t})
|
||||
})}else location.href=t,e.close()},validate:function(t){var e=["jpg","jpeg","png","bmp","gif","webp"],a=t.name.split("."),n=a.pop().toLowerCase();return t.type&&n&&-1!==$.inArray(n,e)?t.size>i?2:0:1},doAjax:function(t){var a=this;"waiting"!==this.state&&this.setState("waiting"),$.ajax({url:e,type:"POST",data:t,processData:!1,contentType:!1,success:function(t){a.uploadComplete(t)},error:function(){a.setState("error")},always:function(){}})},uploadUrl:function(t){var e=this;e.uploadObj=t,this.log({rsv_imageclick:"uploadurl"}),e.upload(t,"PC_UPLOAD_SEARCH_URL")
|
||||
},upload:function(t,e){var a=this,n=0===window.pageState?'{"page_from": "searchIndex"}':' {"page_from": "searchResult"}';if("PC_UPLOAD_SEARCH_URL"!==e){a.uploadObj=t,a.$urlInput.val("");var r=a.validate(t);if(r)return void a.setState("error",{msg:u[r]});a.log({rsv_imageclick:"uploadfile"})}a.setState("waiting");var o=new FormData;o.append("image",t),o.append("tn","pc"),o.append("from","pc"),o.append("image_source",e),o.append("range",n),a.doAjax(o)},uploadComplete:function(t){var e=this;0===t.status?setTimeout(function(){window.location.href=t.data.url
|
||||
},30):e.setState("error")},log:l.sendLog};p.init(),"function"==typeof define&&define("soutu/js/tu",["require"],function(){return p})}();
|
||||
Reference in New Issue
Block a user