diff --git a/DIUserscript.meta.js b/DIUserscript.meta.js index 4073480..cfc8b2c 100644 --- a/DIUserscript.meta.js +++ b/DIUserscript.meta.js @@ -31,5 +31,5 @@ // @grant GM_download // @inject-into page // @run-at document-start -// @version 2023.4.92 +// @version 2024.12.159 // ==/UserScript== diff --git a/DIUserscript.user.js b/DIUserscript.user.js index ffdc5c6..8a724e8 100644 --- a/DIUserscript.user.js +++ b/DIUserscript.user.js @@ -31,6 +31,6 @@ // @grant GM_download // @inject-into page // @run-at document-start -// @version 2023.4.92 +// @version 2024.12.159 // ==/UserScript== -!function(t){var e={};function i(n){if(e[n])return e[n].exports;var r=e[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.m=t,i.c=e,i.i=function(t){return t},i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="/",i(i.s=647)}([function(t,e,i){var n=i(4),r=i(37),o=i(22),a=i(23),s=i(33),l=function(t,e,i){var c,p,u,d,f=t&l.F,v=t&l.G,h=t&l.S,m=t&l.P,g=t&l.B,y=v?n:h?n[e]||(n[e]={}):(n[e]||{}).prototype,b=v?r:r[e]||(r[e]={}),x=b.prototype||(b.prototype={});for(c in v&&(i=e),i)u=((p=!f&&y&&void 0!==y[c])?y:i)[c],d=g&&p?s(u,n):m&&"function"==typeof u?s(Function.call,u):u,y&&a(y,c,u,t&l.U),b[c]!=u&&o(b,c,d),m&&x[c]!=u&&(x[c]=u)};n.core=r,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,t.exports=l},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){i.d(e,"factory",function(){return s});var n=Object.assign||function(t){for(var e=1;e=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|t}function v(t,e){if(l.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var i=t.length;if(0===i)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":case void 0:return R(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return z(t).length;default:if(n)return R(t).length;e=(""+e).toLowerCase(),n=!0}}function h(t,e,i){var n=t[e];t[e]=t[i],t[i]=n}function m(t,e,i,n,r){if(0===t.length)return-1;if("string"==typeof i?(n=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),i=+i,isNaN(i)&&(i=r?0:t.length-1),i<0&&(i=t.length+i),i>=t.length){if(r)return-1;i=t.length-1}else if(i<0){if(!r)return-1;i=0}if("string"==typeof e&&(e=l.from(e,n)),l.isBuffer(e))return 0===e.length?-1:g(t,e,i,n,r);if("number"==typeof e)return e&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(t,e,i):Uint8Array.prototype.lastIndexOf.call(t,e,i):g(t,[e],i,n,r);throw new TypeError("val must be string, number or Buffer")}function g(t,e,i,n,r){var o,a=1,s=t.length,l=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;a=2,s/=2,l/=2,i/=2}function c(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(r){var p=-1;for(o=i;os&&(i=s-l),o=i;o>=0;o--){for(var u=!0,d=0;dr&&(n=r):n=r;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var a=0;a>8,r=i%256,o.push(r),o.push(n);return o}(e,t.length-i),t,i,n)}function S(t,e,i){return 0===e&&i===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,i))}function C(t,e,i){i=Math.min(t.length,i);for(var n=[],r=e;r239?4:c>223?3:c>191?2:1;if(r+u<=i)switch(u){case 1:c<128&&(p=c);break;case 2:128==(192&(o=t[r+1]))&&(l=(31&c)<<6|63&o)>127&&(p=l);break;case 3:o=t[r+1],a=t[r+2],128==(192&o)&&128==(192&a)&&(l=(15&c)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(p=l);break;case 4:o=t[r+1],a=t[r+2],s=t[r+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(l=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(p=l)}null===p?(p=65533,u=1):p>65535&&(p-=65536,n.push(p>>>10&1023|55296),p=56320|1023&p),n.push(p),r+=u}return function(t){var e=t.length;if(e<=T)return String.fromCharCode.apply(String,t);var i="",n=0;for(;nthis.length)return"";if((void 0===i||i>this.length)&&(i=this.length),i<=0)return"";if((i>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return V(this,e,i);case"utf8":case"utf-8":return C(this,e,i);case"ascii":return A(this,e,i);case"latin1":case"binary":return O(this,e,i);case"base64":return S(this,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,e,i);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}.apply(this,arguments)},l.prototype.equals=function(t){if(!l.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===l.compare(this,t)},l.prototype.inspect=function(){var t="",i=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,i).match(/.{2}/g).join(" "),this.length>i&&(t+=" ... ")),""},l.prototype.compare=function(t,e,i,n,r){if(!l.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===i&&(i=t?t.length:0),void 0===n&&(n=0),void 0===r&&(r=this.length),e<0||i>t.length||n<0||r>this.length)throw new RangeError("out of range index");if(n>=r&&e>=i)return 0;if(n>=r)return-1;if(e>=i)return 1;if(e>>>=0,i>>>=0,n>>>=0,r>>>=0,this===t)return 0;for(var o=r-n,a=i-e,s=Math.min(o,a),c=this.slice(n,r),p=t.slice(e,i),u=0;ur)&&(i=r),t.length>0&&(i<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return y(this,t,e,i);case"utf8":case"utf-8":return b(this,t,e,i);case"ascii":return x(this,t,e,i);case"latin1":case"binary":return _(this,t,e,i);case"base64":return w(this,t,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,t,e,i);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var T=4096;function A(t,e,i){var n="";i=Math.min(t.length,i);for(var r=e;rn)&&(i=n);for(var r="",o=e;oi)throw new RangeError("Trying to access beyond buffer length")}function E(t,e,i,n,r,o){if(!l.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>r||et.length)throw new RangeError("Index out of range")}function I(t,e,i,n){e<0&&(e=65535+e+1);for(var r=0,o=Math.min(t.length-i,2);r>>8*(n?r:1-r)}function j(t,e,i,n){e<0&&(e=4294967295+e+1);for(var r=0,o=Math.min(t.length-i,4);r>>8*(n?r:3-r)&255}function D(t,e,i,n,r,o){if(i+n>t.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function L(t,e,i,n,o){return o||D(t,0,i,4),r.write(t,e,i,n,23,4),i+4}function B(t,e,i,n,o){return o||D(t,0,i,8),r.write(t,e,i,n,52,8),i+8}l.prototype.slice=function(t,e){var i,n=this.length;if(t=~~t,e=void 0===e?n:~~e,t<0?(t+=n)<0&&(t=0):t>n&&(t=n),e<0?(e+=n)<0&&(e=0):e>n&&(e=n),e0&&(r*=256);)n+=this[t+--e]*r;return n},l.prototype.readUInt8=function(t,e){return e||M(t,1,this.length),this[t]},l.prototype.readUInt16LE=function(t,e){return e||M(t,2,this.length),this[t]|this[t+1]<<8},l.prototype.readUInt16BE=function(t,e){return e||M(t,2,this.length),this[t]<<8|this[t+1]},l.prototype.readUInt32LE=function(t,e){return e||M(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},l.prototype.readUInt32BE=function(t,e){return e||M(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},l.prototype.readIntLE=function(t,e,i){t|=0,e|=0,i||M(t,e,this.length);for(var n=this[t],r=1,o=0;++o=(r*=128)&&(n-=Math.pow(2,8*e)),n},l.prototype.readIntBE=function(t,e,i){t|=0,e|=0,i||M(t,e,this.length);for(var n=e,r=1,o=this[t+--n];n>0&&(r*=256);)o+=this[t+--n]*r;return o>=(r*=128)&&(o-=Math.pow(2,8*e)),o},l.prototype.readInt8=function(t,e){return e||M(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},l.prototype.readInt16LE=function(t,e){e||M(t,2,this.length);var i=this[t]|this[t+1]<<8;return 32768&i?4294901760|i:i},l.prototype.readInt16BE=function(t,e){e||M(t,2,this.length);var i=this[t+1]|this[t]<<8;return 32768&i?4294901760|i:i},l.prototype.readInt32LE=function(t,e){return e||M(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},l.prototype.readInt32BE=function(t,e){return e||M(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},l.prototype.readFloatLE=function(t,e){return e||M(t,4,this.length),r.read(this,t,!0,23,4)},l.prototype.readFloatBE=function(t,e){return e||M(t,4,this.length),r.read(this,t,!1,23,4)},l.prototype.readDoubleLE=function(t,e){return e||M(t,8,this.length),r.read(this,t,!0,52,8)},l.prototype.readDoubleBE=function(t,e){return e||M(t,8,this.length),r.read(this,t,!1,52,8)},l.prototype.writeUIntLE=function(t,e,i,n){(t=+t,e|=0,i|=0,n)||E(this,t,e,i,Math.pow(2,8*i)-1,0);var r=1,o=0;for(this[e]=255&t;++o=0&&(o*=256);)this[e+r]=t/o&255;return e+i},l.prototype.writeUInt8=function(t,e,i){return t=+t,e|=0,i||E(this,t,e,1,255,0),l.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},l.prototype.writeUInt16LE=function(t,e,i){return t=+t,e|=0,i||E(this,t,e,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):I(this,t,e,!0),e+2},l.prototype.writeUInt16BE=function(t,e,i){return t=+t,e|=0,i||E(this,t,e,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):I(this,t,e,!1),e+2},l.prototype.writeUInt32LE=function(t,e,i){return t=+t,e|=0,i||E(this,t,e,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):j(this,t,e,!0),e+4},l.prototype.writeUInt32BE=function(t,e,i){return t=+t,e|=0,i||E(this,t,e,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):j(this,t,e,!1),e+4},l.prototype.writeIntLE=function(t,e,i,n){if(t=+t,e|=0,!n){var r=Math.pow(2,8*i-1);E(this,t,e,i,r-1,-r)}var o=0,a=1,s=0;for(this[e]=255&t;++o>0)-s&255;return e+i},l.prototype.writeIntBE=function(t,e,i,n){if(t=+t,e|=0,!n){var r=Math.pow(2,8*i-1);E(this,t,e,i,r-1,-r)}var o=i-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+i},l.prototype.writeInt8=function(t,e,i){return t=+t,e|=0,i||E(this,t,e,1,127,-128),l.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},l.prototype.writeInt16LE=function(t,e,i){return t=+t,e|=0,i||E(this,t,e,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):I(this,t,e,!0),e+2},l.prototype.writeInt16BE=function(t,e,i){return t=+t,e|=0,i||E(this,t,e,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):I(this,t,e,!1),e+2},l.prototype.writeInt32LE=function(t,e,i){return t=+t,e|=0,i||E(this,t,e,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):j(this,t,e,!0),e+4},l.prototype.writeInt32BE=function(t,e,i){return t=+t,e|=0,i||E(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):j(this,t,e,!1),e+4},l.prototype.writeFloatLE=function(t,e,i){return L(this,t,e,!0,i)},l.prototype.writeFloatBE=function(t,e,i){return L(this,t,e,!1,i)},l.prototype.writeDoubleLE=function(t,e,i){return B(this,t,e,!0,i)},l.prototype.writeDoubleBE=function(t,e,i){return B(this,t,e,!1,i)},l.prototype.copy=function(t,e,i,n){if(i||(i=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e=0;--r)t[r+e]=this[r+i];else if(o<1e3||!l.TYPED_ARRAY_SUPPORT)for(r=0;r>>=0,i=void 0===i?this.length:i>>>0,t||(t=0),"number"==typeof t)for(o=e;o55295&&i<57344){if(!r){if(i>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(e-=3)>-1&&o.push(239,191,189);continue}r=i;continue}if(i<56320){(e-=3)>-1&&o.push(239,191,189),r=i;continue}i=65536+(r-55296<<10|i-56320)}else r&&(e-=3)>-1&&o.push(239,191,189);if(r=null,i<128){if((e-=1)<0)break;o.push(i)}else if(i<2048){if((e-=2)<0)break;o.push(i>>6|192,63&i|128)}else if(i<65536){if((e-=3)<0)break;o.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return o}function z(t){return n.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace($,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function F(t,e,i,n){for(var r=0;r=e.length||r>=t.length);++r)e[r+i]=t[r];return r}}).call(e,i(8))},function(t,e,i){(function(e){var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r=this,o=arguments;function a(t,e){if(t!==e)throw new TypeError("Cannot instantiate an arrow function")}var s=i(238),l=i(589),c=i(253),p=i(159),u=i(252),d=i(247),f={setValueAsReadOnly:function(t,e,i){Object.defineProperty(t,e,{get:function(){return i},set:function(t){}})},isDevtoolOpen:function(){var t=void 0,e=new Audio;return Object.defineProperty(e,"id",{get:function(){return t=!0,null}}),t=!1,console.debug(e),t},getString:function(e){return t.exports.aes.decrypt(u[e])},defineProp:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];try{if(void 0===t||null===t)throw new Error('"obj" is null or undefined for "'+e+'"');return delete t[e],Object.defineProperty(t,e,{value:i,writable:n,enumerable:!0,configurable:!1}),t}catch(t){console.error("DIU CAUGHT ERROR while using tools.defineProp : ",t)}return null},jsVar:function(t,i,n){void 0===i&&(i=e),void 0===n&&(n=!1);var r=t.split(".");if(r.length<=0)return console.error("jsVar: invalid given varPath ( "+String(t)+" ) resulting in invalid splitPath:",r),!n&&void 0;for(var o=i;r.length>0;){var a=r.shift();if(void 0===o[a])return!n&&void 0;o=o[a]}return!!n||o},jsVarEnc:function(i,n,r,o){void 0===n&&(n=e),void 0===r&&(r=!1);var a=t.exports.aes.decrypt(i,o);return t.exports.jsVar(a,n,r)},jsVarEncByIndex:function(i,n,r){return void 0===n&&(n=e),void 0===r&&(r=!1),t.exports.jsVarEnc(p[i],n,r)},rand:function(t,e){return Math.round(Math.random()*(e-t)+t)},stringToHtmlCode:function(t){for(var e=[],i=void 0,n=0;n0?r(n(t),9007199254740991):0}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r=this;function o(t,e){if(t!==e)throw new TypeError("Cannot instantiate an arrow function")}var a=i(10),s=i(251),l=i(248),c=i(250),p=i(1).factory(function(){return o(this,r),"DIUserscript :: busHelper"}.bind(this)),u=function(t,e){return o(this,r),void 0!==t&&null!==t||p.error("getIdentifier 'index' value is null(Object) or undefined : typeof = "+(void 0===t?"undefined":n(t))),a.aes.decrypt(e[t])}.bind(this),d={req:{},cmd:{}},f={event:{}},v={req:{id:function(t){return"string"==typeof t?t:u(t,s)},value:function(t){return a.jsVar(this.id(t),this.handlers)},get handlers(){return a.jsVarEncByIndex(5,t)},get _(){return a.jsVarEncByIndex(4,t)},getOrigCallback:function(t){return d.req[t]},getCallback:function(t){var e=this.value(t);return void 0===e?(p.error("req.getCallback value with index "+t+" is undefined [error compensated]"),e={callback:function(){}}):void 0===e.callback&&(p.error("req.getCallback with index "+t+" has an undefined callback [error compensated]"),e.callback=function(){}),e.callback},setCallback:function(t,e){d.req[t]||(d.req[t]=v.req.getCallback(t));var i=this.value(t);void 0!==i&&null!==i||(p.error("req.setCallback obj value with index "+t+" is undefined [error compensated]"),i={}),a.defineProp(i,"callback",e)},do:function(t,e){return arguments[0]=this.id(t),p.debug("req "+arguments[0],arguments),this._.request.apply(this._,arguments)}},cmd:{id:function(t){return"string"==typeof t?t:u(t,l)},value:function(t){return a.jsVar(this.id(t),this.handlers)},get handlers(){return a.jsVarEncByIndex(7,t)},get _(){return a.jsVarEncByIndex(6,t)},getOrigCallback:function(t){return d.cmd[t]},getCallback:function(t){var e=this.value(t);return void 0===e?(p.error("cmd.getCallback value with index "+t+" is undefined [error compensated]"),e={callback:function(){}}):void 0===e.callback&&(p.error("cmd.getCallback with index "+t+" has an undefined callback [error compensated]"),e.callback=function(){}),e.callback},setCallback:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];d.cmd[t]||(d.cmd[t]=v.cmd.getCallback(t));var n=this.value(t);void 0!==n&&null!==n||(p.error("cmd.setCallback obj value with index "+t+" is undefined [error compensated]"),n={}),a.defineProp(n,"callback",e,i)},do:function(t,e){return arguments[0]=this.id(t),p.debug("cmd "+arguments[0],arguments),this._.execute.apply(this._,arguments)}},event:{id:function(t){return"string"==typeof t?t:u(t,c)},value:function(t){return a.jsVar(this.id(t),this.handlers)},get handlers(){return a.jsVarEncByIndex(3,t)},get _(){return a.jsVarEncByIndex(2,t)},on:function(t,e){return this._.on(this.id(t),e)},off:function(t,e){return this._.off(this.id(t),e)},trigger:function(t,e){return arguments[0]=this.id(t),p.debug("event "+arguments[0],arguments),this._.trigger.apply(this._,arguments)},clear:function(t){var e=this.value(t);f.event[""+t]=[];var i=!0,n=!1,r=void 0;try{for(var o,a=e[Symbol.iterator]();!(i=(o=a.next()).done);i=!0){var s=o.value;f.event[""+t].push(s)}}catch(t){n=!0,r=t}finally{try{!i&&a.return&&a.return()}finally{if(n)throw r}}return e.length=0,e},restore:function(t){var e=this.value(t);if(e.length=0,f.event[""+t]){var i=!0,n=!1,r=void 0;try{for(var o,a=f.event[""+t][Symbol.iterator]();!(i=(o=a.next()).done);i=!0){var s=o.value;e.push(s)}}catch(t){n=!0,r=t}finally{try{!i&&a.return&&a.return()}finally{if(n)throw r}}f.event[""+t].length=0}return e}}};e.default=v}.call(e,i(8))},function(t,e,i){var n=i(48)(i(291),null,null,null);t.exports=n.exports},function(t,e,i){var n=i(38);t.exports=function(t){return Object(n(t))}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(16),r=this,o=function(){function t(t,e){for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:"on";p.log("registered handlers (onVolumeChange)"),l.jsVarEncByIndex(9)[e](l.getString(4),t)}}}return o(t,[{key:"resumePlayback",value:function(){return n.default.cmd.do(63)}},{key:"pausePlayback",value:function(){return n.default.cmd.do(64)}},{key:"getPlaylistEntity",value:function(){a(this,r);var t=s(regeneratorRuntime.mark(function t(e){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return p.log("getPlaylistEntity",{itemId:e}),t.abrupt("return",new Promise(function(t,i){n.default.req.do(73,e).done(function(e,i,n){return t(e)}).fail(function(e,i,n){return n&&p.error('CATCHED ERROR while executing "getPlaylistEntity", error = ',n),t(null)})}));case 2:case"end":return t.stop()}},t,this)}));return function(e){return t.apply(this,arguments)}}.bind(r)()},{key:"getPlaylistEntities",value:function(){var t=n.default.req.do(107);if(t&&t.models&&t.length>0){var e=t.models[0].collection;if(e)return e}return null}},{key:"getChannelEntity",value:function(t){return p.log("getChannelEntity",{channelKeyOrId:t}),n.default.req.do(61,t)}},{key:"getChannelEntities",value:function(){return n.default.req.do(62)}},{key:"getChannelOptionsById",value:function(t){return this.getChannelOptionsByKey(t,"id")}},{key:"getChannelOptionsByKey",value:function(t){return this.getChannelOptionsBy(t,"key")}},{key:"getChannelOptionsBy",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"key",i=!0,n=!1,r=void 0;try{for(var o,a=this.channelsOptions[Symbol.iterator]();!(i=(o=a.next()).done);i=!0){var s=o.value;if(s&&s[e]===t)return s}}catch(t){n=!0,r=t}finally{try{!i&&a.return&&a.return()}finally{if(n)throw r}}return null}},{key:"getListeningHistory",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return t||(t=this.currentContext),t?n.default.req.do(74,t):(p.error("ERROR (getListeningHistory) : a proper context is not defined. Are you playing something ?"),[])}},{key:"getPlaylistListeningHistory",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return t||(t=this.currentContext),n.default.req.do(100,t)}},{key:"getListeningHistoryPastTracks",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=[],i=!1;try{var n=this.getListeningHistory(t),r=!0,o=!1,a=void 0;try{for(var s,l=n.models[Symbol.iterator]();!(r=(s=l.next()).done);r=!0){var c=s.value.attributes.track;!!c.attributes.current&&!i?i=!0:e.push(c)}}catch(t){o=!0,a=t}finally{try{!r&&l.return&&l.return()}finally{if(o)throw a}}}catch(t){p.error('FATAL ERROR while retrieving "getListeningHistory". err = '+String(t.message)+" | ",t),e=[]}return e}},{key:"getPlaylistListeningHistoryPastTracks",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=[],i=!1;try{var n=this.getPlaylistListeningHistory(t),r=!0,o=!1,a=void 0;try{for(var s,l=n.models[Symbol.iterator]();!(r=(s=l.next()).done);r=!0){var c=s.value.attributes.track;!!c.attributes.current&&!i?i=!0:e.push(c)}}catch(t){o=!0,a=t}finally{try{!r&&l.return&&l.return()}finally{if(o)throw a}}}catch(t){p.error('CAUGHT ERROR while retrieving "getPlaylistListeningHistory". err = '+String(t.message)+" | ",t),e=[]}return e}},{key:"trackVotedStatus",value:function(t){var e={up:!1,down:!1},i=void 0;if(t&&"function"==typeof t.get&&(i=t.get("votes"))&&i.cast){return Object.assign({},e,i.cast)}return e}},{key:"getUpvotedTracks",value:function(){a(this,r);var t=s(regeneratorRuntime.mark(function t(){var e,i;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e=l.jsVarEncByIndex(15),i=new e([],{params:{filter:null,page:1,per_page:2e4}}),t.abrupt("return",new Promise(function(t,e){i.fetch().done(function(t,e,n){return function(){0===i.models.length&&i.reset()}}).done(function(e,n,r){return t(i.models.map(function(t){return t.attributes&&t.attributes.track?t.attributes.track:null}).filter(function(t){return null!==t}))}).fail(function(e,i,n){return n&&p.error('CATCHED ERROR while executing "getUpvotedTracks", error = ',n),t([])})}));case 3:case"end":return t.stop()}},t,this)}));return function(){return t.apply(this,arguments)}}.bind(r)()},{key:"downloadCurrentTrack",value:function(){if(p.log("downloadCurrentTrack"),!c.helpers.isTampermonkey)return this.downloadTrackNative();var t=this.getTrackDownloadData();return t&&t.src?"function"!=typeof c.GM.GM_download?(p.error("GM_download seems not available as a function: ",c.GM.GM_download),!1):(c.GM.GM_download({url:t.src,name:t.nameSlug,saveAs:!0}),!0):(p.error("Unable to determine a valid track download url for this track"),!1)}},{key:"getTrackDownloadData",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=this.guessPlayerMetas(t);return e&&e.download?e.download:null}},{key:"guessPlayerMetas",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,e=this.currentContext,i={contextName:e&&e.get("show")?e.get("show").name:e&&e.get("name")?e.get("name"):void 0,contextType:e&&this.currentContextType?this.currentContextType:void 0,track:void 0,isPlaying:this.isPlaying,download:{nameSlug:"",src:null}};t||(t=this.currentTrackModel),t||p.warn("guessPlayerMetas reports an empty track model : ",t);var n=t?{id:t.get("id")?t.get("id"):null,src:t.get("src")?"https:"+t.get("src"):null,display_artist:t.get("display_artist")?t.get("display_artist"):null,display_title:t.get("display_title")?t.get("display_title"):null,images:[],assets:t.get("content")&&t.get("content").assets?t.get("content").assets:null,duration:t.get("length"),playbackPosition:this.model.get("currentTime")?this.model.get("currentTime"):0}:null;return null!==n&&void 0!==n.images&&(t.get("asset_url")&&n.images.push(t.get("asset_url")),t.get("images")&&t.get("images").default&&n.images.push(t.get("images").default)),null!==n&&(null!==n.id&&(i.download.nameSlug+=""+n.id),null!==n.src&&(i.download.src=n.src),null!==n.display_artist&&(i.download.nameSlug+="_"+n.display_artist),null!==n.display_title&&(i.download.nameSlug+="_"+n.display_title),i.download.nameSlug=i.download.nameSlug.replace(/"/gi,""),i.download.nameSlug+=".mp4"),i.track=n,i}},{key:"downloadTrackNative",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;p.log("downloadTrackNative ",t);var e=this.getTrackDownloadData(t);return e&&e.src?(window.open(e.src),!0):(p.error("Unable to determine a valid track download url for this track"),!1)}},{key:"playNextItem",value:function(){p.log("playNextItem"),n.default.cmd.do(58)}},{key:"skipTrack",value:function(){return n.default.cmd.do(75)}},{key:"playTrackModel",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;p.log("playTrackModel : ",t,e);var i=null;void 0===e?(i=n.default.req.do(12),p.log("elected context: ",i)):i=e,n.default.cmd.do(48,t,i)}},{key:"isPlaying",get:function(){return n.default.req.do(15)}},{key:"volume",get:function(){return n.default.req.do(17)},set:function(t){p.log("-set- MainPlayer.volume = ",t),void 0===t&&(t=10),t<0&&(t=0),t>100&&(t=100),n.default.cmd.do(66,t)}},{key:"model",get:function(){return l.jsVarEncByIndex(9)}},{key:"isAppearingAsConnecting",get:function(){return this.model.get("connecting")},set:function(t){return void 0===t&&(t=!0),this.model.set("connecting",t)}},{key:"channelsOptions",get:function(){return l.jsVarEncByIndex(16)}},{key:"currentTrackModel",get:function(){return n.default.req.do(9)}},{key:"currentContext",get:function(){return n.default.req.do(12)}},{key:"currentContextType",get:function(){return n.default.req.do(13)}},{key:"currentContentType",get:function(){return n.default.req.do(14)}}]),t}());e.default=u},function(t,e){var i={}.hasOwnProperty;t.exports=function(t,e){return i.call(t,e)}},function(t,e,i){var n=i(14),r=i(58);t.exports=i(13)?function(t,e,i){return n.f(t,e,r(1,i))}:function(t,e,i){return t[e]=i,t}},function(t,e,i){var n=i(4),r=i(22),o=i(21),a=i(62)("src"),s=Function.toString,l=(""+s).split("toString");i(37).inspectSource=function(t){return s.call(t)},(t.exports=function(t,e,i,s){var c="function"==typeof i;c&&(o(i,"name")||r(i,"name",e)),t[e]!==i&&(c&&(o(i,a)||r(i,a,t[e]?""+t[e]:l.join(String(e)))),t===n?t[e]=i:s?t[e]?t[e]=i:r(t,e,i):(delete t[e],r(t,e,i)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[a]||s.call(this)})},function(t,e,i){var n=i(0),r=i(5),o=i(38),a=/"/g,s=function(t,e,i,n){var r=String(o(t)),s="<"+e;return""!==i&&(s+=" "+i+'="'+String(n).replace(a,""")+'"'),s+">"+r+""};t.exports=function(t,e){var i={};i[t]=e(s),n(n.P+n.F*r(function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}),"String",i)}},function(t,e,i){var n;!function(e,i){"use strict";"object"==typeof t&&"object"==typeof t.exports?t.exports=e.document?i(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return i(t)}:i(e)}("undefined"!=typeof window?window:this,function(i,r){"use strict";var o=[],a=Object.getPrototypeOf,s=o.slice,l=o.flat?function(t){return o.flat.call(t)}:function(t){return o.concat.apply([],t)},c=o.push,p=o.indexOf,u={},d=u.toString,f=u.hasOwnProperty,v=f.toString,h=v.call(Object),m={},g=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType&&"function"!=typeof t.item},y=function(t){return null!=t&&t===t.window},b=i.document,x={type:!0,src:!0,nonce:!0,noModule:!0};function _(t,e,i){var n,r,o=(i=i||b).createElement("script");if(o.text=t,e)for(n in x)(r=e[n]||e.getAttribute&&e.getAttribute(n))&&o.setAttribute(n,r);i.head.appendChild(o).parentNode.removeChild(o)}function w(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?u[d.call(t)]||"object":typeof t}var k=function(t,e){return new k.fn.init(t,e)};function S(t){var e=!!t&&"length"in t&&t.length,i=w(t);return!g(t)&&!y(t)&&("array"===i||0===e||"number"==typeof e&&e>0&&e-1 in t)}k.fn=k.prototype={jquery:"3.6.4",constructor:k,length:0,toArray:function(){return s.call(this)},get:function(t){return null==t?s.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=k.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return k.each(this,t)},map:function(t){return this.pushStack(k.map(this,function(e,i){return t.call(e,i,e)}))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(k.grep(this,function(t,e){return(e+1)%2}))},odd:function(){return this.pushStack(k.grep(this,function(t,e){return e%2}))},eq:function(t){var e=this.length,i=+t+(t<0?e:0);return this.pushStack(i>=0&&i+~]|"+B+")"+B+"*"),q=new RegExp(B+"|>"),W=new RegExp(R),Y=new RegExp("^"+$+"$"),G={ID:new RegExp("^#("+$+")"),CLASS:new RegExp("^\\.("+$+")"),TAG:new RegExp("^("+$+"|[*])"),ATTR:new RegExp("^"+N),PSEUDO:new RegExp("^"+R),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+B+"*(even|odd|(([+-]|)(\\d*)n|)"+B+"*(?:([+-]|)"+B+"*(\\d+)|))"+B+"*\\)|)","i"),bool:new RegExp("^(?:"+L+")$","i"),needsContext:new RegExp("^"+B+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+B+"*((?:-\\d)?\\d*)"+B+"*\\)|)(?=[^-]|$)","i")},K=/HTML$/i,X=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,Q=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,tt=/[+~]/,et=new RegExp("\\\\[\\da-fA-F]{1,6}"+B+"?|\\\\([^\\r\\n\\f])","g"),it=function(t,e){var i="0x"+t.slice(1)-65536;return e||(i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320))},nt=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,rt=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},ot=function(){d()},at=xt(function(t){return!0===t.disabled&&"fieldset"===t.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{I.apply(P=j.call(_.childNodes),_.childNodes),P[_.childNodes.length].nodeType}catch(t){I={apply:P.length?function(t,e){E.apply(t,j.call(e))}:function(t,e){for(var i=t.length,n=0;t[i++]=e[n++];);t.length=i-1}}}function st(t,e,n,r){var o,s,c,p,u,v,g,y=e&&e.ownerDocument,_=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==_&&9!==_&&11!==_)return n;if(!r&&(d(e),e=e||f,h)){if(11!==_&&(u=Q.exec(t)))if(o=u[1]){if(9===_){if(!(c=e.getElementById(o)))return n;if(c.id===o)return n.push(c),n}else if(y&&(c=y.getElementById(o))&&b(e,c)&&c.id===o)return n.push(c),n}else{if(u[2])return I.apply(n,e.getElementsByTagName(t)),n;if((o=u[3])&&i.getElementsByClassName&&e.getElementsByClassName)return I.apply(n,e.getElementsByClassName(o)),n}if(i.qsa&&!A[t+" "]&&(!m||!m.test(t))&&(1!==_||"object"!==e.nodeName.toLowerCase())){if(g=t,y=e,1===_&&(q.test(t)||U.test(t))){for((y=tt.test(t)&>(e.parentNode)||e)===e&&i.scope||((p=e.getAttribute("id"))?p=p.replace(nt,rt):e.setAttribute("id",p=x)),s=(v=a(t)).length;s--;)v[s]=(p?"#"+p:":scope")+" "+bt(v[s]);g=v.join(",")}try{return I.apply(n,y.querySelectorAll(g)),n}catch(e){A(t,!0)}finally{p===x&&e.removeAttribute("id")}}}return l(t.replace(F,"$1"),e,n,r)}function lt(){var t=[];return function e(i,r){return t.push(i+" ")>n.cacheLength&&delete e[t.shift()],e[i+" "]=r}}function ct(t){return t[x]=!0,t}function pt(t){var e=f.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function ut(t,e){for(var i=t.split("|"),r=i.length;r--;)n.attrHandle[i[r]]=e}function dt(t,e){var i=e&&t,n=i&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(n)return n;if(i)for(;i=i.nextSibling;)if(i===e)return-1;return t?1:-1}function ft(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function vt(t){return function(e){var i=e.nodeName.toLowerCase();return("input"===i||"button"===i)&&e.type===t}}function ht(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&at(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function mt(t){return ct(function(e){return e=+e,ct(function(i,n){for(var r,o=t([],i.length,e),a=o.length;a--;)i[r=o[a]]&&(i[r]=!(n[r]=i[r]))})})}function gt(t){return t&&void 0!==t.getElementsByTagName&&t}for(e in i=st.support={},o=st.isXML=function(t){var e=t&&t.namespaceURI,i=t&&(t.ownerDocument||t).documentElement;return!K.test(e||i&&i.nodeName||"HTML")},d=st.setDocument=function(t){var e,r,a=t?t.ownerDocument||t:_;return a!=f&&9===a.nodeType&&a.documentElement?(v=(f=a).documentElement,h=!o(f),_!=f&&(r=f.defaultView)&&r.top!==r&&(r.addEventListener?r.addEventListener("unload",ot,!1):r.attachEvent&&r.attachEvent("onunload",ot)),i.scope=pt(function(t){return v.appendChild(t).appendChild(f.createElement("div")),void 0!==t.querySelectorAll&&!t.querySelectorAll(":scope fieldset div").length}),i.cssHas=pt(function(){try{return f.querySelector(":has(*,:jqfake)"),!1}catch(t){return!0}}),i.attributes=pt(function(t){return t.className="i",!t.getAttribute("className")}),i.getElementsByTagName=pt(function(t){return t.appendChild(f.createComment("")),!t.getElementsByTagName("*").length}),i.getElementsByClassName=J.test(f.getElementsByClassName),i.getById=pt(function(t){return v.appendChild(t).id=x,!f.getElementsByName||!f.getElementsByName(x).length}),i.getById?(n.filter.ID=function(t){var e=t.replace(et,it);return function(t){return t.getAttribute("id")===e}},n.find.ID=function(t,e){if(void 0!==e.getElementById&&h){var i=e.getElementById(t);return i?[i]:[]}}):(n.filter.ID=function(t){var e=t.replace(et,it);return function(t){var i=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return i&&i.value===e}},n.find.ID=function(t,e){if(void 0!==e.getElementById&&h){var i,n,r,o=e.getElementById(t);if(o){if((i=o.getAttributeNode("id"))&&i.value===t)return[o];for(r=e.getElementsByName(t),n=0;o=r[n++];)if((i=o.getAttributeNode("id"))&&i.value===t)return[o]}return[]}}),n.find.TAG=i.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):i.qsa?e.querySelectorAll(t):void 0}:function(t,e){var i,n=[],r=0,o=e.getElementsByTagName(t);if("*"===t){for(;i=o[r++];)1===i.nodeType&&n.push(i);return n}return o},n.find.CLASS=i.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&h)return e.getElementsByClassName(t)},g=[],m=[],(i.qsa=J.test(f.querySelectorAll))&&(pt(function(t){var e;v.appendChild(t).innerHTML="",t.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+B+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||m.push("\\["+B+"*(?:value|"+L+")"),t.querySelectorAll("[id~="+x+"-]").length||m.push("~="),(e=f.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||m.push("\\["+B+"*name"+B+"*="+B+"*(?:''|\"\")"),t.querySelectorAll(":checked").length||m.push(":checked"),t.querySelectorAll("a#"+x+"+*").length||m.push(".#.+[+~]"),t.querySelectorAll("\\\f"),m.push("[\\r\\n\\f]")}),pt(function(t){t.innerHTML="";var e=f.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&m.push("name"+B+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&m.push(":enabled",":disabled"),v.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&m.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),m.push(",.*:")})),(i.matchesSelector=J.test(y=v.matches||v.webkitMatchesSelector||v.mozMatchesSelector||v.oMatchesSelector||v.msMatchesSelector))&&pt(function(t){i.disconnectedMatch=y.call(t,"*"),y.call(t,"[s!='']:x"),g.push("!=",R)}),i.cssHas||m.push(":has"),m=m.length&&new RegExp(m.join("|")),g=g.length&&new RegExp(g.join("|")),e=J.test(v.compareDocumentPosition),b=e||J.test(v.contains)?function(t,e){var i=9===t.nodeType&&t.documentElement||t,n=e&&e.parentNode;return t===n||!(!n||1!==n.nodeType||!(i.contains?i.contains(n):t.compareDocumentPosition&&16&t.compareDocumentPosition(n)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},O=e?function(t,e){if(t===e)return u=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(1&(n=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!i.sortDetached&&e.compareDocumentPosition(t)===n?t==f||t.ownerDocument==_&&b(_,t)?-1:e==f||e.ownerDocument==_&&b(_,e)?1:p?D(p,t)-D(p,e):0:4&n?-1:1)}:function(t,e){if(t===e)return u=!0,0;var i,n=0,r=t.parentNode,o=e.parentNode,a=[t],s=[e];if(!r||!o)return t==f?-1:e==f?1:r?-1:o?1:p?D(p,t)-D(p,e):0;if(r===o)return dt(t,e);for(i=t;i=i.parentNode;)a.unshift(i);for(i=e;i=i.parentNode;)s.unshift(i);for(;a[n]===s[n];)n++;return n?dt(a[n],s[n]):a[n]==_?-1:s[n]==_?1:0},f):f},st.matches=function(t,e){return st(t,null,null,e)},st.matchesSelector=function(t,e){if(d(t),i.matchesSelector&&h&&!A[e+" "]&&(!g||!g.test(e))&&(!m||!m.test(e)))try{var n=y.call(t,e);if(n||i.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){A(e,!0)}return st(e,f,null,[t]).length>0},st.contains=function(t,e){return(t.ownerDocument||t)!=f&&d(t),b(t,e)},st.attr=function(t,e){(t.ownerDocument||t)!=f&&d(t);var r=n.attrHandle[e.toLowerCase()],o=r&&V.call(n.attrHandle,e.toLowerCase())?r(t,e,!h):void 0;return void 0!==o?o:i.attributes||!h?t.getAttribute(e):(o=t.getAttributeNode(e))&&o.specified?o.value:null},st.escape=function(t){return(t+"").replace(nt,rt)},st.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},st.uniqueSort=function(t){var e,n=[],r=0,o=0;if(u=!i.detectDuplicates,p=!i.sortStable&&t.slice(0),t.sort(O),u){for(;e=t[o++];)e===t[o]&&(r=n.push(o));for(;r--;)t.splice(n[r],1)}return p=null,t},r=st.getText=function(t){var e,i="",n=0,o=t.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)i+=r(t)}else if(3===o||4===o)return t.nodeValue}else for(;e=t[n++];)i+=r(e);return i},(n=st.selectors={cacheLength:50,createPseudo:ct,match:G,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(et,it),t[3]=(t[3]||t[4]||t[5]||"").replace(et,it),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||st.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&st.error(t[0]),t},PSEUDO:function(t){var e,i=!t[6]&&t[2];return G.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":i&&W.test(i)&&(e=a(i,!0))&&(e=i.indexOf(")",i.length-e)-i.length)&&(t[0]=t[0].slice(0,e),t[2]=i.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(et,it).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=S[t+" "];return e||(e=new RegExp("(^|"+B+")"+t+"("+B+"|$)"))&&S(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,e,i){return function(n){var r=st.attr(n,t);return null==r?"!="===e:!e||(r+="","="===e?r===i:"!="===e?r!==i:"^="===e?i&&0===r.indexOf(i):"*="===e?i&&r.indexOf(i)>-1:"$="===e?i&&r.slice(-i.length)===i:"~="===e?(" "+r.replace(z," ")+" ").indexOf(i)>-1:"|="===e&&(r===i||r.slice(0,i.length+1)===i+"-"))}},CHILD:function(t,e,i,n,r){var o="nth"!==t.slice(0,3),a="last"!==t.slice(-4),s="of-type"===e;return 1===n&&0===r?function(t){return!!t.parentNode}:function(e,i,l){var c,p,u,d,f,v,h=o!==a?"nextSibling":"previousSibling",m=e.parentNode,g=s&&e.nodeName.toLowerCase(),y=!l&&!s,b=!1;if(m){if(o){for(;h;){for(d=e;d=d[h];)if(s?d.nodeName.toLowerCase()===g:1===d.nodeType)return!1;v=h="only"===t&&!v&&"nextSibling"}return!0}if(v=[a?m.firstChild:m.lastChild],a&&y){for(b=(f=(c=(p=(u=(d=m)[x]||(d[x]={}))[d.uniqueID]||(u[d.uniqueID]={}))[t]||[])[0]===w&&c[1])&&c[2],d=f&&m.childNodes[f];d=++f&&d&&d[h]||(b=f=0)||v.pop();)if(1===d.nodeType&&++b&&d===e){p[t]=[w,f,b];break}}else if(y&&(b=f=(c=(p=(u=(d=e)[x]||(d[x]={}))[d.uniqueID]||(u[d.uniqueID]={}))[t]||[])[0]===w&&c[1]),!1===b)for(;(d=++f&&d&&d[h]||(b=f=0)||v.pop())&&((s?d.nodeName.toLowerCase()!==g:1!==d.nodeType)||!++b||(y&&((p=(u=d[x]||(d[x]={}))[d.uniqueID]||(u[d.uniqueID]={}))[t]=[w,b]),d!==e)););return(b-=r)===n||b%n==0&&b/n>=0}}},PSEUDO:function(t,e){var i,r=n.pseudos[t]||n.setFilters[t.toLowerCase()]||st.error("unsupported pseudo: "+t);return r[x]?r(e):r.length>1?(i=[t,t,"",e],n.setFilters.hasOwnProperty(t.toLowerCase())?ct(function(t,i){for(var n,o=r(t,e),a=o.length;a--;)t[n=D(t,o[a])]=!(i[n]=o[a])}):function(t){return r(t,0,i)}):r}},pseudos:{not:ct(function(t){var e=[],i=[],n=s(t.replace(F,"$1"));return n[x]?ct(function(t,e,i,r){for(var o,a=n(t,null,r,[]),s=t.length;s--;)(o=a[s])&&(t[s]=!(e[s]=o))}):function(t,r,o){return e[0]=t,n(e,null,o,i),e[0]=null,!i.pop()}}),has:ct(function(t){return function(e){return st(t,e).length>0}}),contains:ct(function(t){return t=t.replace(et,it),function(e){return(e.textContent||r(e)).indexOf(t)>-1}}),lang:ct(function(t){return Y.test(t||"")||st.error("unsupported lang: "+t),t=t.replace(et,it).toLowerCase(),function(e){var i;do{if(i=h?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(i=i.toLowerCase())===t||0===i.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var i=t.location&&t.location.hash;return i&&i.slice(1)===e.id},root:function(t){return t===v},focus:function(t){return t===f.activeElement&&(!f.hasFocus||f.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:ht(!1),disabled:ht(!0),checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!n.pseudos.empty(t)},header:function(t){return Z.test(t.nodeName)},input:function(t){return X.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:mt(function(){return[0]}),last:mt(function(t,e){return[e-1]}),eq:mt(function(t,e,i){return[i<0?i+e:i]}),even:mt(function(t,e){for(var i=0;ie?e:i;--n>=0;)t.push(n);return t}),gt:mt(function(t,e,i){for(var n=i<0?i+e:i;++n1?function(e,i,n){for(var r=t.length;r--;)if(!t[r](e,i,n))return!1;return!0}:t[0]}function wt(t,e,i,n,r){for(var o,a=[],s=0,l=t.length,c=null!=e;s-1&&(o[c]=!(a[c]=u))}}else g=wt(g===a?g.splice(v,g.length):g),r?r(null,a,g,l):I.apply(a,g)})}function St(t){for(var e,i,r,o=t.length,a=n.relative[t[0].type],s=a||n.relative[" "],l=a?1:0,p=xt(function(t){return t===e},s,!0),u=xt(function(t){return D(e,t)>-1},s,!0),d=[function(t,i,n){var r=!a&&(n||i!==c)||((e=i).nodeType?p(t,i,n):u(t,i,n));return e=null,r}];l1&&_t(d),l>1&&bt(t.slice(0,l-1).concat({value:" "===t[l-2].type?"*":""})).replace(F,"$1"),i,l0,r=t.length>0,o=function(o,a,s,l,p){var u,v,m,g=0,y="0",b=o&&[],x=[],_=c,k=o||r&&n.find.TAG("*",p),S=w+=null==_?1:Math.random()||.1,C=k.length;for(p&&(c=a==f||a||p);y!==C&&null!=(u=k[y]);y++){if(r&&u){for(v=0,a||u.ownerDocument==f||(d(u),s=!h);m=t[v++];)if(m(u,a||f,s)){l.push(u);break}p&&(w=S)}i&&((u=!m&&u)&&g--,o&&b.push(u))}if(g+=y,i&&y!==g){for(v=0;m=e[v++];)m(b,x,a,s);if(o){if(g>0)for(;y--;)b[y]||x[y]||(x[y]=M.call(l));x=wt(x)}I.apply(l,x),p&&!o&&x.length>0&&g+e.length>1&&st.uniqueSort(l)}return p&&(w=S,c=_),b};return i?ct(o):o}(o,r))).selector=t}return s},l=st.select=function(t,e,i,r){var o,l,c,p,u,d="function"==typeof t&&t,f=!r&&a(t=d.selector||t);if(i=i||[],1===f.length){if((l=f[0]=f[0].slice(0)).length>2&&"ID"===(c=l[0]).type&&9===e.nodeType&&h&&n.relative[l[1].type]){if(!(e=(n.find.ID(c.matches[0].replace(et,it),e)||[])[0]))return i;d&&(e=e.parentNode),t=t.slice(l.shift().value.length)}for(o=G.needsContext.test(t)?0:l.length;o--&&(c=l[o],!n.relative[p=c.type]);)if((u=n.find[p])&&(r=u(c.matches[0].replace(et,it),tt.test(l[0].type)&>(e.parentNode)||e))){if(l.splice(o,1),!(t=r.length&&bt(l)))return I.apply(i,r),i;break}}return(d||s(t,f))(r,e,!h,i,!e||tt.test(t)&>(e.parentNode)||e),i},i.sortStable=x.split("").sort(O).join("")===x,i.detectDuplicates=!!u,d(),i.sortDetached=pt(function(t){return 1&t.compareDocumentPosition(f.createElement("fieldset"))}),pt(function(t){return t.innerHTML="","#"===t.firstChild.getAttribute("href")})||ut("type|href|height|width",function(t,e,i){if(!i)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),i.attributes&&pt(function(t){return t.innerHTML="",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||ut("value",function(t,e,i){if(!i&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),pt(function(t){return null==t.getAttribute("disabled")})||ut(L,function(t,e,i){var n;if(!i)return!0===t[e]?e.toLowerCase():(n=t.getAttributeNode(e))&&n.specified?n.value:null}),st}(i);k.find=C,k.expr=C.selectors,k.expr[":"]=k.expr.pseudos,k.uniqueSort=k.unique=C.uniqueSort,k.text=C.getText,k.isXMLDoc=C.isXML,k.contains=C.contains,k.escapeSelector=C.escape;var T=function(t,e,i){for(var n=[],r=void 0!==i;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(r&&k(t).is(i))break;n.push(t)}return n},A=function(t,e){for(var i=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&i.push(t);return i},O=k.expr.match.needsContext;function V(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}var P=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function M(t,e,i){return g(e)?k.grep(t,function(t,n){return!!e.call(t,n,t)!==i}):e.nodeType?k.grep(t,function(t){return t===e!==i}):"string"!=typeof e?k.grep(t,function(t){return p.call(e,t)>-1!==i}):k.filter(e,t,i)}k.filter=function(t,e,i){var n=e[0];return i&&(t=":not("+t+")"),1===e.length&&1===n.nodeType?k.find.matchesSelector(n,t)?[n]:[]:k.find.matches(t,k.grep(e,function(t){return 1===t.nodeType}))},k.fn.extend({find:function(t){var e,i,n=this.length,r=this;if("string"!=typeof t)return this.pushStack(k(t).filter(function(){for(e=0;e1?k.uniqueSort(i):i},filter:function(t){return this.pushStack(M(this,t||[],!1))},not:function(t){return this.pushStack(M(this,t||[],!0))},is:function(t){return!!M(this,"string"==typeof t&&O.test(t)?k(t):t||[],!1).length}});var E,I=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(k.fn.init=function(t,e,i){var n,r;if(!t)return this;if(i=i||E,"string"==typeof t){if(!(n="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:I.exec(t))||!n[1]&&e)return!e||e.jquery?(e||i).find(t):this.constructor(e).find(t);if(n[1]){if(e=e instanceof k?e[0]:e,k.merge(this,k.parseHTML(n[1],e&&e.nodeType?e.ownerDocument||e:b,!0)),P.test(n[1])&&k.isPlainObject(e))for(n in e)g(this[n])?this[n](e[n]):this.attr(n,e[n]);return this}return(r=b.getElementById(n[2]))&&(this[0]=r,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):g(t)?void 0!==i.ready?i.ready(t):t(k):k.makeArray(t,this)}).prototype=k.fn,E=k(b);var j=/^(?:parents|prev(?:Until|All))/,D={children:!0,contents:!0,next:!0,prev:!0};function L(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}k.fn.extend({has:function(t){var e=k(t,this),i=e.length;return this.filter(function(){for(var t=0;t-1:1===i.nodeType&&k.find.matchesSelector(i,t))){o.push(i);break}return this.pushStack(o.length>1?k.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?p.call(k(t),this[0]):p.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(k.uniqueSort(k.merge(this.get(),k(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),k.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return T(t,"parentNode")},parentsUntil:function(t,e,i){return T(t,"parentNode",i)},next:function(t){return L(t,"nextSibling")},prev:function(t){return L(t,"previousSibling")},nextAll:function(t){return T(t,"nextSibling")},prevAll:function(t){return T(t,"previousSibling")},nextUntil:function(t,e,i){return T(t,"nextSibling",i)},prevUntil:function(t,e,i){return T(t,"previousSibling",i)},siblings:function(t){return A((t.parentNode||{}).firstChild,t)},children:function(t){return A(t.firstChild)},contents:function(t){return null!=t.contentDocument&&a(t.contentDocument)?t.contentDocument:(V(t,"template")&&(t=t.content||t),k.merge([],t.childNodes))}},function(t,e){k.fn[t]=function(i,n){var r=k.map(this,e,i);return"Until"!==t.slice(-5)&&(n=i),n&&"string"==typeof n&&(r=k.filter(n,r)),this.length>1&&(D[t]||k.uniqueSort(r),j.test(t)&&r.reverse()),this.pushStack(r)}});var B=/[^\x20\t\r\n\f]+/g;function $(t){return t}function N(t){throw t}function R(t,e,i,n){var r;try{t&&g(r=t.promise)?r.call(t).done(e).fail(i):t&&g(r=t.then)?r.call(t,e,i):e.apply(void 0,[t].slice(n))}catch(t){i.apply(void 0,[t])}}k.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return k.each(t.match(B)||[],function(t,i){e[i]=!0}),e}(t):k.extend({},t);var e,i,n,r,o=[],a=[],s=-1,l=function(){for(r=r||t.once,n=e=!0;a.length;s=-1)for(i=a.shift();++s-1;)o.splice(i,1),i<=s&&s--}),this},has:function(t){return t?k.inArray(t,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return r=a=[],o=i="",this},disabled:function(){return!o},lock:function(){return r=a=[],i||e||(o=i=""),this},locked:function(){return!!r},fireWith:function(t,i){return r||(i=[t,(i=i||[]).slice?i.slice():i],a.push(i),e||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!n}};return c},k.extend({Deferred:function(t){var e=[["notify","progress",k.Callbacks("memory"),k.Callbacks("memory"),2],["resolve","done",k.Callbacks("once memory"),k.Callbacks("once memory"),0,"resolved"],["reject","fail",k.Callbacks("once memory"),k.Callbacks("once memory"),1,"rejected"]],n="pending",r={state:function(){return n},always:function(){return o.done(arguments).fail(arguments),this},catch:function(t){return r.then(null,t)},pipe:function(){var t=arguments;return k.Deferred(function(i){k.each(e,function(e,n){var r=g(t[n[4]])&&t[n[4]];o[n[1]](function(){var t=r&&r.apply(this,arguments);t&&g(t.promise)?t.promise().progress(i.notify).done(i.resolve).fail(i.reject):i[n[0]+"With"](this,r?[t]:arguments)})}),t=null}).promise()},then:function(t,n,r){var o=0;function a(t,e,n,r){return function(){var s=this,l=arguments,c=function(){var i,c;if(!(t=o&&(n!==N&&(s=void 0,l=[i]),e.rejectWith(s,l))}};t?p():(k.Deferred.getStackHook&&(p.stackTrace=k.Deferred.getStackHook()),i.setTimeout(p))}}return k.Deferred(function(i){e[0][3].add(a(0,i,g(r)?r:$,i.notifyWith)),e[1][3].add(a(0,i,g(t)?t:$)),e[2][3].add(a(0,i,g(n)?n:N))}).promise()},promise:function(t){return null!=t?k.extend(t,r):r}},o={};return k.each(e,function(t,i){var a=i[2],s=i[5];r[i[1]]=a.add,s&&a.add(function(){n=s},e[3-t][2].disable,e[3-t][3].disable,e[0][2].lock,e[0][3].lock),a.add(i[3].fire),o[i[0]]=function(){return o[i[0]+"With"](this===o?void 0:this,arguments),this},o[i[0]+"With"]=a.fireWith}),r.promise(o),t&&t.call(o,o),o},when:function(t){var e=arguments.length,i=e,n=Array(i),r=s.call(arguments),o=k.Deferred(),a=function(t){return function(i){n[t]=this,r[t]=arguments.length>1?s.call(arguments):i,--e||o.resolveWith(n,r)}};if(e<=1&&(R(t,o.done(a(i)).resolve,o.reject,!e),"pending"===o.state()||g(r[i]&&r[i].then)))return o.then();for(;i--;)R(r[i],a(i),o.reject);return o.promise()}});var z=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;k.Deferred.exceptionHook=function(t,e){i.console&&i.console.warn&&t&&z.test(t.name)&&i.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},k.readyException=function(t){i.setTimeout(function(){throw t})};var F=k.Deferred();function H(){b.removeEventListener("DOMContentLoaded",H),i.removeEventListener("load",H),k.ready()}k.fn.ready=function(t){return F.then(t).catch(function(t){k.readyException(t)}),this},k.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--k.readyWait:k.isReady)||(k.isReady=!0,!0!==t&&--k.readyWait>0||F.resolveWith(b,[k]))}}),k.ready.then=F.then,"complete"===b.readyState||"loading"!==b.readyState&&!b.documentElement.doScroll?i.setTimeout(k.ready):(b.addEventListener("DOMContentLoaded",H),i.addEventListener("load",H));var U=function(t,e,i,n,r,o,a){var s=0,l=t.length,c=null==i;if("object"===w(i))for(s in r=!0,i)U(t,e,s,i[s],!0,o,a);else if(void 0!==n&&(r=!0,g(n)||(a=!0),c&&(a?(e.call(t,n),e=null):(c=e,e=function(t,e,i){return c.call(k(t),i)})),e))for(;s1,null,!0)},removeData:function(t){return this.each(function(){J.remove(this,t)})}}),k.extend({queue:function(t,e,i){var n;if(t)return e=(e||"fx")+"queue",n=Z.get(t,e),i&&(!n||Array.isArray(i)?n=Z.access(t,e,k.makeArray(i)):n.push(i)),n||[]},dequeue:function(t,e){e=e||"fx";var i=k.queue(t,e),n=i.length,r=i.shift(),o=k._queueHooks(t,e);"inprogress"===r&&(r=i.shift(),n--),r&&("fx"===e&&i.unshift("inprogress"),delete o.stop,r.call(t,function(){k.dequeue(t,e)},o)),!n&&o&&o.empty.fire()},_queueHooks:function(t,e){var i=e+"queueHooks";return Z.get(t,i)||Z.access(t,i,{empty:k.Callbacks("once memory").add(function(){Z.remove(t,[e+"queue",i])})})}}),k.fn.extend({queue:function(t,e){var i=2;return"string"!=typeof t&&(e=t,t="fx",i--),arguments.length\x20\t\r\n\f]*)/i,gt=/^$|^module$|\/(?:java|ecma)script/i;ft=b.createDocumentFragment().appendChild(b.createElement("div")),(vt=b.createElement("input")).setAttribute("type","radio"),vt.setAttribute("checked","checked"),vt.setAttribute("name","t"),ft.appendChild(vt),m.checkClone=ft.cloneNode(!0).cloneNode(!0).lastChild.checked,ft.innerHTML="",m.noCloneChecked=!!ft.cloneNode(!0).lastChild.defaultValue,ft.innerHTML="",m.option=!!ft.lastChild;var yt={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function bt(t,e){var i;return i=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&V(t,e)?k.merge([t],i):i}function xt(t,e){for(var i=0,n=t.length;i",""]);var _t=/<|&#?\w+;/;function wt(t,e,i,n,r){for(var o,a,s,l,c,p,u=e.createDocumentFragment(),d=[],f=0,v=t.length;f-1)r&&r.push(o);else if(c=at(o),a=bt(u.appendChild(o),"script"),c&&xt(a),i)for(p=0;o=a[p++];)gt.test(o.type||"")&&i.push(o);return u}var kt=/^([^.]*)(?:\.(.+)|)/;function St(){return!0}function Ct(){return!1}function Tt(t,e){return t===function(){try{return b.activeElement}catch(t){}}()==("focus"===e)}function At(t,e,i,n,r,o){var a,s;if("object"==typeof e){for(s in"string"!=typeof i&&(n=n||i,i=void 0),e)At(t,s,i,n,e[s],o);return t}if(null==n&&null==r?(r=i,n=i=void 0):null==r&&("string"==typeof i?(r=n,n=void 0):(r=n,n=i,i=void 0)),!1===r)r=Ct;else if(!r)return t;return 1===o&&(a=r,(r=function(t){return k().off(t),a.apply(this,arguments)}).guid=a.guid||(a.guid=k.guid++)),t.each(function(){k.event.add(this,e,r,n,i)})}function Ot(t,e,i){i?(Z.set(t,e,!1),k.event.add(t,e,{namespace:!1,handler:function(t){var n,r,o=Z.get(this,e);if(1&t.isTrigger&&this[e]){if(o.length)(k.event.special[e]||{}).delegateType&&t.stopPropagation();else if(o=s.call(arguments),Z.set(this,e,o),n=i(this,e),this[e](),o!==(r=Z.get(this,e))||n?Z.set(this,e,!1):r={},o!==r)return t.stopImmediatePropagation(),t.preventDefault(),r&&r.value}else o.length&&(Z.set(this,e,{value:k.event.trigger(k.extend(o[0],k.Event.prototype),o.slice(1),this)}),t.stopImmediatePropagation())}})):void 0===Z.get(t,e)&&k.event.add(t,e,St)}k.event={global:{},add:function(t,e,i,n,r){var o,a,s,l,c,p,u,d,f,v,h,m=Z.get(t);if(K(t))for(i.handler&&(i=(o=i).handler,r=o.selector),r&&k.find.matchesSelector(ot,r),i.guid||(i.guid=k.guid++),(l=m.events)||(l=m.events=Object.create(null)),(a=m.handle)||(a=m.handle=function(e){return void 0!==k&&k.event.triggered!==e.type?k.event.dispatch.apply(t,arguments):void 0}),c=(e=(e||"").match(B)||[""]).length;c--;)f=h=(s=kt.exec(e[c])||[])[1],v=(s[2]||"").split(".").sort(),f&&(u=k.event.special[f]||{},f=(r?u.delegateType:u.bindType)||f,u=k.event.special[f]||{},p=k.extend({type:f,origType:h,data:n,handler:i,guid:i.guid,selector:r,needsContext:r&&k.expr.match.needsContext.test(r),namespace:v.join(".")},o),(d=l[f])||((d=l[f]=[]).delegateCount=0,u.setup&&!1!==u.setup.call(t,n,v,a)||t.addEventListener&&t.addEventListener(f,a)),u.add&&(u.add.call(t,p),p.handler.guid||(p.handler.guid=i.guid)),r?d.splice(d.delegateCount++,0,p):d.push(p),k.event.global[f]=!0)},remove:function(t,e,i,n,r){var o,a,s,l,c,p,u,d,f,v,h,m=Z.hasData(t)&&Z.get(t);if(m&&(l=m.events)){for(c=(e=(e||"").match(B)||[""]).length;c--;)if(f=h=(s=kt.exec(e[c])||[])[1],v=(s[2]||"").split(".").sort(),f){for(u=k.event.special[f]||{},d=l[f=(n?u.delegateType:u.bindType)||f]||[],s=s[2]&&new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=d.length;o--;)p=d[o],!r&&h!==p.origType||i&&i.guid!==p.guid||s&&!s.test(p.namespace)||n&&n!==p.selector&&("**"!==n||!p.selector)||(d.splice(o,1),p.selector&&d.delegateCount--,u.remove&&u.remove.call(t,p));a&&!d.length&&(u.teardown&&!1!==u.teardown.call(t,v,m.handle)||k.removeEvent(t,f,m.handle),delete l[f])}else for(f in l)k.event.remove(t,f+e[c],i,n,!0);k.isEmptyObject(l)&&Z.remove(t,"handle events")}},dispatch:function(t){var e,i,n,r,o,a,s=new Array(arguments.length),l=k.event.fix(t),c=(Z.get(this,"events")||Object.create(null))[l.type]||[],p=k.event.special[l.type]||{};for(s[0]=l,e=1;e=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==t.type||!0!==c.disabled)){for(o=[],a={},i=0;i-1:k.find(r,this,null,[c]).length),a[r]&&o.push(n);o.length&&s.push({elem:c,handlers:o})}return c=this,l\s*$/g;function Et(t,e){return V(t,"table")&&V(11!==e.nodeType?e:e.firstChild,"tr")&&k(t).children("tbody")[0]||t}function It(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function jt(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Dt(t,e){var i,n,r,o,a,s;if(1===e.nodeType){if(Z.hasData(t)&&(s=Z.get(t).events))for(r in Z.remove(e,"handle events"),s)for(i=0,n=s[r].length;i1&&"string"==typeof v&&!m.checkClone&&Pt.test(v))return t.each(function(r){var o=t.eq(r);h&&(e[0]=v.call(this,r,o.html())),Lt(o,e,i,n)});if(d&&(o=(r=wt(e,t[0].ownerDocument,!1,t,n)).firstChild,1===r.childNodes.length&&(r=o),o||n)){for(s=(a=k.map(bt(r,"script"),It)).length;u0&&xt(a,!u&&bt(t,"script")),p},cleanData:function(t){for(var e,i,n,r=k.event.special,o=0;void 0!==(i=t[o]);o++)if(K(i)){if(e=i[Z.expando]){if(e.events)for(n in e.events)r[n]?k.event.remove(i,n):k.removeEvent(i,n,e.handle);i[Z.expando]=void 0}i[J.expando]&&(i[J.expando]=void 0)}}}),k.fn.extend({detach:function(t){return Bt(this,t,!0)},remove:function(t){return Bt(this,t)},text:function(t){return U(this,function(t){return void 0===t?k.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return Lt(this,arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Et(this,t).appendChild(t)})},prepend:function(){return Lt(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Et(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return Lt(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return Lt(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(k.cleanData(bt(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return k.clone(this,t,e)})},html:function(t){return U(this,function(t){var e=this[0]||{},i=0,n=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Vt.test(t)&&!yt[(mt.exec(t)||["",""])[1].toLowerCase()]){t=k.htmlPrefilter(t);try{for(;i=0&&(l+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-o-l-s-.5))||0),l}function ee(t,e,i){var n=Rt(t),r=(!m.boxSizingReliable()||i)&&"border-box"===k.css(t,"boxSizing",!1,n),o=r,a=Ut(t,e,n),s="offset"+e[0].toUpperCase()+e.slice(1);if($t.test(a)){if(!i)return a;a="auto"}return(!m.boxSizingReliable()&&r||!m.reliableTrDimensions()&&V(t,"tr")||"auto"===a||!parseFloat(a)&&"inline"===k.css(t,"display",!1,n))&&t.getClientRects().length&&(r="border-box"===k.css(t,"boxSizing",!1,n),(o=s in t)&&(a=t[s])),(a=parseFloat(a)||0)+te(t,e,i||(r?"border":"content"),o,n,a)+"px"}function ie(t,e,i,n,r){return new ie.prototype.init(t,e,i,n,r)}k.extend({cssHooks:{opacity:{get:function(t,e){if(e){var i=Ut(t,"opacity");return""===i?"1":i}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(t,e,i,n){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var r,o,a,s=G(e),l=Nt.test(e),c=t.style;if(l||(e=Kt(s)),a=k.cssHooks[e]||k.cssHooks[s],void 0===i)return a&&"get"in a&&void 0!==(r=a.get(t,!1,n))?r:c[e];"string"===(o=typeof i)&&(r=nt.exec(i))&&r[1]&&(i=ct(t,e,r),o="number"),null!=i&&i==i&&("number"!==o||l||(i+=r&&r[3]||(k.cssNumber[s]?"":"px")),m.clearCloneStyle||""!==i||0!==e.indexOf("background")||(c[e]="inherit"),a&&"set"in a&&void 0===(i=a.set(t,i,n))||(l?c.setProperty(e,i):c[e]=i))}},css:function(t,e,i,n){var r,o,a,s=G(e);return Nt.test(e)||(e=Kt(s)),(a=k.cssHooks[e]||k.cssHooks[s])&&"get"in a&&(r=a.get(t,!0,i)),void 0===r&&(r=Ut(t,e,n)),"normal"===r&&e in Jt&&(r=Jt[e]),""===i||i?(o=parseFloat(r),!0===i||isFinite(o)?o||0:r):r}}),k.each(["height","width"],function(t,e){k.cssHooks[e]={get:function(t,i,n){if(i)return!Xt.test(k.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?ee(t,e,n):zt(t,Zt,function(){return ee(t,e,n)})},set:function(t,i,n){var r,o=Rt(t),a=!m.scrollboxSize()&&"absolute"===o.position,s=(a||n)&&"border-box"===k.css(t,"boxSizing",!1,o),l=n?te(t,e,n,s,o):0;return s&&a&&(l-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(o[e])-te(t,e,"border",!1,o)-.5)),l&&(r=nt.exec(i))&&"px"!==(r[3]||"px")&&(t.style[e]=i,i=k.css(t,e)),Qt(0,i,l)}}}),k.cssHooks.marginLeft=qt(m.reliableMarginLeft,function(t,e){if(e)return(parseFloat(Ut(t,"marginLeft"))||t.getBoundingClientRect().left-zt(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px"}),k.each({margin:"",padding:"",border:"Width"},function(t,e){k.cssHooks[t+e]={expand:function(i){for(var n=0,r={},o="string"==typeof i?i.split(" "):[i];n<4;n++)r[t+rt[n]+e]=o[n]||o[n-2]||o[0];return r}},"margin"!==t&&(k.cssHooks[t+e].set=Qt)}),k.fn.extend({css:function(t,e){return U(this,function(t,e,i){var n,r,o={},a=0;if(Array.isArray(e)){for(n=Rt(t),r=e.length;a1)}}),k.Tween=ie,ie.prototype={constructor:ie,init:function(t,e,i,n,r,o){this.elem=t,this.prop=i,this.easing=r||k.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=n,this.unit=o||(k.cssNumber[i]?"":"px")},cur:function(){var t=ie.propHooks[this.prop];return t&&t.get?t.get(this):ie.propHooks._default.get(this)},run:function(t){var e,i=ie.propHooks[this.prop];return this.options.duration?this.pos=e=k.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),i&&i.set?i.set(this):ie.propHooks._default.set(this),this}},ie.prototype.init.prototype=ie.prototype,ie.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=k.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){k.fx.step[t.prop]?k.fx.step[t.prop](t):1!==t.elem.nodeType||!k.cssHooks[t.prop]&&null==t.elem.style[Kt(t.prop)]?t.elem[t.prop]=t.now:k.style(t.elem,t.prop,t.now+t.unit)}}},ie.propHooks.scrollTop=ie.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},k.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},k.fx=ie.prototype.init,k.fx.step={};var ne,re,oe=/^(?:toggle|show|hide)$/,ae=/queueHooks$/;function se(){re&&(!1===b.hidden&&i.requestAnimationFrame?i.requestAnimationFrame(se):i.setTimeout(se,k.fx.interval),k.fx.tick())}function le(){return i.setTimeout(function(){ne=void 0}),ne=Date.now()}function ce(t,e){var i,n=0,r={height:t};for(e=e?1:0;n<4;n+=2-e)r["margin"+(i=rt[n])]=r["padding"+i]=t;return e&&(r.opacity=r.width=t),r}function pe(t,e,i){for(var n,r=(ue.tweeners[e]||[]).concat(ue.tweeners["*"]),o=0,a=r.length;o1)},removeAttr:function(t){return this.each(function(){k.removeAttr(this,t)})}}),k.extend({attr:function(t,e,i){var n,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?k.prop(t,e,i):(1===o&&k.isXMLDoc(t)||(r=k.attrHooks[e.toLowerCase()]||(k.expr.match.bool.test(e)?de:void 0)),void 0!==i?null===i?void k.removeAttr(t,e):r&&"set"in r&&void 0!==(n=r.set(t,i,e))?n:(t.setAttribute(e,i+""),i):r&&"get"in r&&null!==(n=r.get(t,e))?n:null==(n=k.find.attr(t,e))?void 0:n)},attrHooks:{type:{set:function(t,e){if(!m.radioValue&&"radio"===e&&V(t,"input")){var i=t.value;return t.setAttribute("type",e),i&&(t.value=i),e}}}},removeAttr:function(t,e){var i,n=0,r=e&&e.match(B);if(r&&1===t.nodeType)for(;i=r[n++];)t.removeAttribute(i)}}),de={set:function(t,e,i){return!1===e?k.removeAttr(t,i):t.setAttribute(i,i),i}},k.each(k.expr.match.bool.source.match(/\w+/g),function(t,e){var i=fe[e]||k.find.attr;fe[e]=function(t,e,n){var r,o,a=e.toLowerCase();return n||(o=fe[a],fe[a]=r,r=null!=i(t,e,n)?a:null,fe[a]=o),r}});var ve=/^(?:input|select|textarea|button)$/i,he=/^(?:a|area)$/i;function me(t){return(t.match(B)||[]).join(" ")}function ge(t){return t.getAttribute&&t.getAttribute("class")||""}function ye(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(B)||[]}k.fn.extend({prop:function(t,e){return U(this,k.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[k.propFix[t]||t]})}}),k.extend({prop:function(t,e,i){var n,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&k.isXMLDoc(t)||(e=k.propFix[e]||e,r=k.propHooks[e]),void 0!==i?r&&"set"in r&&void 0!==(n=r.set(t,i,e))?n:t[e]=i:r&&"get"in r&&null!==(n=r.get(t,e))?n:t[e]},propHooks:{tabIndex:{get:function(t){var e=k.find.attr(t,"tabindex");return e?parseInt(e,10):ve.test(t.nodeName)||he.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),m.optSelected||(k.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),k.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){k.propFix[this.toLowerCase()]=this}),k.fn.extend({addClass:function(t){var e,i,n,r,o,a;return g(t)?this.each(function(e){k(this).addClass(t.call(this,e,ge(this)))}):(e=ye(t)).length?this.each(function(){if(n=ge(this),i=1===this.nodeType&&" "+me(n)+" "){for(o=0;o-1;)i=i.replace(" "+r+" "," ");a=me(i),n!==a&&this.setAttribute("class",a)}}):this:this.attr("class","")},toggleClass:function(t,e){var i,n,r,o,a=typeof t,s="string"===a||Array.isArray(t);return g(t)?this.each(function(i){k(this).toggleClass(t.call(this,i,ge(this),e),e)}):"boolean"==typeof e&&s?e?this.addClass(t):this.removeClass(t):(i=ye(t),this.each(function(){if(s)for(o=k(this),r=0;r-1)return!0;return!1}});var be=/\r/g;k.fn.extend({val:function(t){var e,i,n,r=this[0];return arguments.length?(n=g(t),this.each(function(i){var r;1===this.nodeType&&(null==(r=n?t.call(this,i,k(this).val()):t)?r="":"number"==typeof r?r+="":Array.isArray(r)&&(r=k.map(r,function(t){return null==t?"":t+""})),(e=k.valHooks[this.type]||k.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,r,"value")||(this.value=r))})):r?(e=k.valHooks[r.type]||k.valHooks[r.nodeName.toLowerCase()])&&"get"in e&&void 0!==(i=e.get(r,"value"))?i:"string"==typeof(i=r.value)?i.replace(be,""):null==i?"":i:void 0}}),k.extend({valHooks:{option:{get:function(t){var e=k.find.attr(t,"value");return null!=e?e:me(k.text(t))}},select:{get:function(t){var e,i,n,r=t.options,o=t.selectedIndex,a="select-one"===t.type,s=a?null:[],l=a?o+1:r.length;for(n=o<0?l:a?o:0;n-1)&&(i=!0);return i||(t.selectedIndex=-1),o}}}}),k.each(["radio","checkbox"],function(){k.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=k.inArray(k(t).val(),e)>-1}},m.checkOn||(k.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}),m.focusin="onfocusin"in i;var xe=/^(?:focusinfocus|focusoutblur)$/,_e=function(t){t.stopPropagation()};k.extend(k.event,{trigger:function(t,e,n,r){var o,a,s,l,c,p,u,d,v=[n||b],h=f.call(t,"type")?t.type:t,m=f.call(t,"namespace")?t.namespace.split("."):[];if(a=d=s=n=n||b,3!==n.nodeType&&8!==n.nodeType&&!xe.test(h+k.event.triggered)&&(h.indexOf(".")>-1&&(h=(m=h.split(".")).shift(),m.sort()),c=h.indexOf(":")<0&&"on"+h,(t=t[k.expando]?t:new k.Event(h,"object"==typeof t&&t)).isTrigger=r?2:3,t.namespace=m.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),e=null==e?[t]:k.makeArray(e,[t]),u=k.event.special[h]||{},r||!u.trigger||!1!==u.trigger.apply(n,e))){if(!r&&!u.noBubble&&!y(n)){for(l=u.delegateType||h,xe.test(l+h)||(a=a.parentNode);a;a=a.parentNode)v.push(a),s=a;s===(n.ownerDocument||b)&&v.push(s.defaultView||s.parentWindow||i)}for(o=0;(a=v[o++])&&!t.isPropagationStopped();)d=a,t.type=o>1?l:u.bindType||h,(p=(Z.get(a,"events")||Object.create(null))[t.type]&&Z.get(a,"handle"))&&p.apply(a,e),(p=c&&a[c])&&p.apply&&K(a)&&(t.result=p.apply(a,e),!1===t.result&&t.preventDefault());return t.type=h,r||t.isDefaultPrevented()||u._default&&!1!==u._default.apply(v.pop(),e)||!K(n)||c&&g(n[h])&&!y(n)&&((s=n[c])&&(n[c]=null),k.event.triggered=h,t.isPropagationStopped()&&d.addEventListener(h,_e),n[h](),t.isPropagationStopped()&&d.removeEventListener(h,_e),k.event.triggered=void 0,s&&(n[c]=s)),t.result}},simulate:function(t,e,i){var n=k.extend(new k.Event,i,{type:t,isSimulated:!0});k.event.trigger(n,null,e)}}),k.fn.extend({trigger:function(t,e){return this.each(function(){k.event.trigger(t,e,this)})},triggerHandler:function(t,e){var i=this[0];if(i)return k.event.trigger(t,e,i,!0)}}),m.focusin||k.each({focus:"focusin",blur:"focusout"},function(t,e){var i=function(t){k.event.simulate(e,t.target,k.event.fix(t))};k.event.special[e]={setup:function(){var n=this.ownerDocument||this.document||this,r=Z.access(n,e);r||n.addEventListener(t,i,!0),Z.access(n,e,(r||0)+1)},teardown:function(){var n=this.ownerDocument||this.document||this,r=Z.access(n,e)-1;r?Z.access(n,e,r):(n.removeEventListener(t,i,!0),Z.remove(n,e))}}});var we=i.location,ke={guid:Date.now()},Se=/\?/;k.parseXML=function(t){var e,n;if(!t||"string"!=typeof t)return null;try{e=(new i.DOMParser).parseFromString(t,"text/xml")}catch(t){}return n=e&&e.getElementsByTagName("parsererror")[0],e&&!n||k.error("Invalid XML: "+(n?k.map(n.childNodes,function(t){return t.textContent}).join("\n"):t)),e};var Ce=/\[\]$/,Te=/\r?\n/g,Ae=/^(?:submit|button|image|reset|file)$/i,Oe=/^(?:input|select|textarea|keygen)/i;function Ve(t,e,i,n){var r;if(Array.isArray(e))k.each(e,function(e,r){i||Ce.test(t)?n(t,r):Ve(t+"["+("object"==typeof r&&null!=r?e:"")+"]",r,i,n)});else if(i||"object"!==w(e))n(t,e);else for(r in e)Ve(t+"["+r+"]",e[r],i,n)}k.param=function(t,e){var i,n=[],r=function(t,e){var i=g(e)?e():e;n[n.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==i?"":i)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!k.isPlainObject(t))k.each(t,function(){r(this.name,this.value)});else for(i in t)Ve(i,t[i],e,r);return n.join("&")},k.fn.extend({serialize:function(){return k.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=k.prop(this,"elements");return t?k.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!k(this).is(":disabled")&&Oe.test(this.nodeName)&&!Ae.test(t)&&(this.checked||!ht.test(t))}).map(function(t,e){var i=k(this).val();return null==i?null:Array.isArray(i)?k.map(i,function(t){return{name:e.name,value:t.replace(Te,"\r\n")}}):{name:e.name,value:i.replace(Te,"\r\n")}}).get()}});var Pe=/%20/g,Me=/#.*$/,Ee=/([?&])_=[^&]*/,Ie=/^(.*?):[ \t]*([^\r\n]*)$/gm,je=/^(?:GET|HEAD)$/,De=/^\/\//,Le={},Be={},$e="*/".concat("*"),Ne=b.createElement("a");function Re(t){return function(e,i){"string"!=typeof e&&(i=e,e="*");var n,r=0,o=e.toLowerCase().match(B)||[];if(g(i))for(;n=o[r++];)"+"===n[0]?(n=n.slice(1)||"*",(t[n]=t[n]||[]).unshift(i)):(t[n]=t[n]||[]).push(i)}}function ze(t,e,i,n){var r={},o=t===Be;function a(s){var l;return r[s]=!0,k.each(t[s]||[],function(t,s){var c=s(e,i,n);return"string"!=typeof c||o||r[c]?o?!(l=c):void 0:(e.dataTypes.unshift(c),a(c),!1)}),l}return a(e.dataTypes[0])||!r["*"]&&a("*")}function Fe(t,e){var i,n,r=k.ajaxSettings.flatOptions||{};for(i in e)void 0!==e[i]&&((r[i]?t:n||(n={}))[i]=e[i]);return n&&k.extend(!0,t,n),t}Ne.href=we.href,k.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:we.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(we.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":$e,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":k.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Fe(Fe(t,k.ajaxSettings),e):Fe(k.ajaxSettings,t)},ajaxPrefilter:Re(Le),ajaxTransport:Re(Be),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var n,r,o,a,s,l,c,p,u,d,f=k.ajaxSetup({},e),v=f.context||f,h=f.context&&(v.nodeType||v.jquery)?k(v):k.event,m=k.Deferred(),g=k.Callbacks("once memory"),y=f.statusCode||{},x={},_={},w="canceled",S={readyState:0,getResponseHeader:function(t){var e;if(c){if(!a)for(a={};e=Ie.exec(o);)a[e[1].toLowerCase()+" "]=(a[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=a[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return c?o:null},setRequestHeader:function(t,e){return null==c&&(t=_[t.toLowerCase()]=_[t.toLowerCase()]||t,x[t]=e),this},overrideMimeType:function(t){return null==c&&(f.mimeType=t),this},statusCode:function(t){var e;if(t)if(c)S.always(t[S.status]);else for(e in t)y[e]=[y[e],t[e]];return this},abort:function(t){var e=t||w;return n&&n.abort(e),C(0,e),this}};if(m.promise(S),f.url=((t||f.url||we.href)+"").replace(De,we.protocol+"//"),f.type=e.method||e.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(B)||[""],null==f.crossDomain){l=b.createElement("a");try{l.href=f.url,l.href=l.href,f.crossDomain=Ne.protocol+"//"+Ne.host!=l.protocol+"//"+l.host}catch(t){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=k.param(f.data,f.traditional)),ze(Le,f,e,S),c)return S;for(u in(p=k.event&&f.global)&&0==k.active++&&k.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!je.test(f.type),r=f.url.replace(Me,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(Pe,"+")):(d=f.url.slice(r.length),f.data&&(f.processData||"string"==typeof f.data)&&(r+=(Se.test(r)?"&":"?")+f.data,delete f.data),!1===f.cache&&(r=r.replace(Ee,"$1"),d=(Se.test(r)?"&":"?")+"_="+ke.guid+++d),f.url=r+d),f.ifModified&&(k.lastModified[r]&&S.setRequestHeader("If-Modified-Since",k.lastModified[r]),k.etag[r]&&S.setRequestHeader("If-None-Match",k.etag[r])),(f.data&&f.hasContent&&!1!==f.contentType||e.contentType)&&S.setRequestHeader("Content-Type",f.contentType),S.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+$e+"; q=0.01":""):f.accepts["*"]),f.headers)S.setRequestHeader(u,f.headers[u]);if(f.beforeSend&&(!1===f.beforeSend.call(v,S,f)||c))return S.abort();if(w="abort",g.add(f.complete),S.done(f.success),S.fail(f.error),n=ze(Be,f,e,S)){if(S.readyState=1,p&&h.trigger("ajaxSend",[S,f]),c)return S;f.async&&f.timeout>0&&(s=i.setTimeout(function(){S.abort("timeout")},f.timeout));try{c=!1,n.send(x,C)}catch(t){if(c)throw t;C(-1,t)}}else C(-1,"No Transport");function C(t,e,a,l){var u,d,b,x,_,w=e;c||(c=!0,s&&i.clearTimeout(s),n=void 0,o=l||"",S.readyState=t>0?4:0,u=t>=200&&t<300||304===t,a&&(x=function(t,e,i){for(var n,r,o,a,s=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===n&&(n=t.mimeType||e.getResponseHeader("Content-Type"));if(n)for(r in s)if(s[r]&&s[r].test(n)){l.unshift(r);break}if(l[0]in i)o=l[0];else{for(r in i){if(!l[0]||t.converters[r+" "+l[0]]){o=r;break}a||(a=r)}o=o||a}if(o)return o!==l[0]&&l.unshift(o),i[o]}(f,S,a)),!u&&k.inArray("script",f.dataTypes)>-1&&k.inArray("json",f.dataTypes)<0&&(f.converters["text script"]=function(){}),x=function(t,e,i,n){var r,o,a,s,l,c={},p=t.dataTypes.slice();if(p[1])for(a in t.converters)c[a.toLowerCase()]=t.converters[a];for(o=p.shift();o;)if(t.responseFields[o]&&(i[t.responseFields[o]]=e),!l&&n&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=o,o=p.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(a=c[l+" "+o]||c["* "+o]))for(r in c)if((s=r.split(" "))[1]===o&&(a=c[l+" "+s[0]]||c["* "+s[0]])){!0===a?a=c[r]:!0!==c[r]&&(o=s[0],p.unshift(s[1]));break}if(!0!==a)if(a&&t.throws)e=a(e);else try{e=a(e)}catch(t){return{state:"parsererror",error:a?t:"No conversion from "+l+" to "+o}}}return{state:"success",data:e}}(f,x,S,u),u?(f.ifModified&&((_=S.getResponseHeader("Last-Modified"))&&(k.lastModified[r]=_),(_=S.getResponseHeader("etag"))&&(k.etag[r]=_)),204===t||"HEAD"===f.type?w="nocontent":304===t?w="notmodified":(w=x.state,d=x.data,u=!(b=x.error))):(b=w,!t&&w||(w="error",t<0&&(t=0))),S.status=t,S.statusText=(e||w)+"",u?m.resolveWith(v,[d,w,S]):m.rejectWith(v,[S,w,b]),S.statusCode(y),y=void 0,p&&h.trigger(u?"ajaxSuccess":"ajaxError",[S,f,u?d:b]),g.fireWith(v,[S,w]),p&&(h.trigger("ajaxComplete",[S,f]),--k.active||k.event.trigger("ajaxStop")))}return S},getJSON:function(t,e,i){return k.get(t,e,i,"json")},getScript:function(t,e){return k.get(t,void 0,e,"script")}}),k.each(["get","post"],function(t,e){k[e]=function(t,i,n,r){return g(i)&&(r=r||n,n=i,i=void 0),k.ajax(k.extend({url:t,type:e,dataType:r,data:i,success:n},k.isPlainObject(t)&&t))}}),k.ajaxPrefilter(function(t){var e;for(e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")}),k._evalUrl=function(t,e,i){return k.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){k.globalEval(t,e,i)}})},k.fn.extend({wrapAll:function(t){var e;return this[0]&&(g(t)&&(t=t.call(this[0])),e=k(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this},wrapInner:function(t){return g(t)?this.each(function(e){k(this).wrapInner(t.call(this,e))}):this.each(function(){var e=k(this),i=e.contents();i.length?i.wrapAll(t):e.append(t)})},wrap:function(t){var e=g(t);return this.each(function(i){k(this).wrapAll(e?t.call(this,i):t)})},unwrap:function(t){return this.parent(t).not("body").each(function(){k(this).replaceWith(this.childNodes)}),this}}),k.expr.pseudos.hidden=function(t){return!k.expr.pseudos.visible(t)},k.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},k.ajaxSettings.xhr=function(){try{return new i.XMLHttpRequest}catch(t){}};var He={0:200,1223:204},Ue=k.ajaxSettings.xhr();m.cors=!!Ue&&"withCredentials"in Ue,m.ajax=Ue=!!Ue,k.ajaxTransport(function(t){var e,n;if(m.cors||Ue&&!t.crossDomain)return{send:function(r,o){var a,s=t.xhr();if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)s[a]=t.xhrFields[a];for(a in t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)s.setRequestHeader(a,r[a]);e=function(t){return function(){e&&(e=n=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===t?s.abort():"error"===t?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(He[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=e(),n=s.onerror=s.ontimeout=e("error"),void 0!==s.onabort?s.onabort=n:s.onreadystatechange=function(){4===s.readyState&&i.setTimeout(function(){e&&n()})},e=e("abort");try{s.send(t.hasContent&&t.data||null)}catch(t){if(e)throw t}},abort:function(){e&&e()}}}),k.ajaxPrefilter(function(t){t.crossDomain&&(t.contents.script=!1)}),k.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return k.globalEval(t),t}}}),k.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),k.ajaxTransport("script",function(t){var e,i;if(t.crossDomain||t.scriptAttrs)return{send:function(n,r){e=k("