text: !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("remoteView",[],e):"object"==typeof exports?exports.remoteView=e():t.remoteView=e()}("undefined"!=typeof self?self:this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=23)}([function(t,e,n){(function(r){function o(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))}function i(t){var n=this.useColors;if(t[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+t[0]+(n?"%c ":" ")+"+"+e.humanize(this.diff),n){var r="color: "+this.color;t.splice(1,0,r,"color: inherit");var o=0,i=0;t[0].replace(/%[a-zA-Z%]/g,function(t){"%%"!==t&&(o++,"%c"===t&&(i=o))}),t.splice(i,0,r)}}function s(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function a(t){try{null==t?e.storage.removeItem("debug"):e.storage.debug=t}catch(t){}}function u(){var t;try{t=e.storage.debug}catch(t){}return!t&&void 0!==r&&"env"in r&&(t=r.env.DEBUG),t}e=t.exports=n(27),e.log=s,e.formatArgs=i,e.save=a,e.load=u,e.useColors=o,e.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(t){}}(),e.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],e.formatters.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}},e.enable(u())}).call(e,n(26))},function(t,e,n){function r(t){if(t)return o(t)}function o(t){for(var e in r.prototype)t[e]=r.prototype[e];return t}t.exports=r,r.prototype.on=r.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},r.prototype.once=function(t,e){function n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n=this._callbacks["$"+t];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var r,o=0;o<n.length;o++)if((r=n[o])===e||r.fn===e){n.splice(o,1);break}return this},r.prototype.emit=function(t){this._callbacks=this._callbacks||{};var e=[].slice.call(arguments,1),n=this._callbacks["$"+t];if(n){n=n.slice(0);for(var r=0,o=n.length;r<o;++r)n[r].apply(this,e)}return this},r.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},r.prototype.hasListeners=function(t){return!!this.listeners(t).length}},function(t,e,n){function r(t,n){return n("b"+e.packets[t.type]+t.data.data)}function o(t,n,r){if(!n)return e.encodeBase64Packet(t,r);var o=t.data,i=new Uint8Array(o),s=new Uint8Array(1+o.byteLength);s[0]=v[t.type];for(var a=0;a<i.length;a++)s[a+1]=i[a];return r(s.buffer)}function i(t,n,r){if(!n)return e.encodeBase64Packet(t,r);var o=new FileReader;return o.onload=function(){e.encodePacket({type:t.type,data:o.result},n,!0,r)},o.readAsArrayBuffer(t.data)}function s(t,n,r){if(!n)return e.encodeBase64Packet(t,r);if(m)return i(t,n,r);var o=new Uint8Array(1);return o[0]=v[t.type],r(new x([o.buffer,t.data]))}function a(t){try{t=d.decode(t,{strict:!1})}catch(t){return!1}return t}function u(t,e,n){for(var r=new Array(t.length),o=h(t.length,n),i=0;i<t.length;i++)!function(t,n,o){e(n,function(e,n){r[t]=n,o(e,r)})}(i,t[i],o)}var c,l=n(36),f=n(17),p=n(37),h=n(38),d=n(39);"undefined"!=typeof ArrayBuffer&&(c=n(40));var y="undefined"!=typeof navigator&&/Android/i.test(navigator.userAgent),g="undefined"!=typeof navigator&&/PhantomJS/i.test(navigator.userAgent),m=y||g;e.protocol=3;var v=e.packets={open:0,close:1,ping:2,pong:3,message:4,upgrade:5,noop:6},b=l(v),w={type:"error",data:"parser error"},x=n(41);e.encodePacket=function(t,e,n,i){"function"==typeof e&&(i=e,e=!1),"function"==typeof n&&(i=n,n=null);var a=void 0===t.data?void 0:t.data.buffer||t.data;if("undefined"!=typeof ArrayBuffer&&a instanceof ArrayBuffer)return o(t,e,i);if(void 0!==x&&a instanceof x)return s(t,e,i);if(a&&a.base64)return r(t,i);var u=v[t.type];return void 0!==t.data&&(u+=n?d.encode(String(t.data),{strict:!1}):String(t.data)),i(""+u)},e.encodeBase64Packet=function(t,n){var r="b"+e.packets[t.type];if(void 0!==x&&t.data instanceof x){var o=new FileReader;return o.onload=function(){var t=o.result.split(",")[1];n(r+t)},o.readAsDataURL(t.data)}var i;try{i=String.fromCharCode.apply(null,new Uint8Array(t.data))}catch(e){for(var s=new Uint8Array(t.data),a=new Array(s.length),u=0;u<s.length;u++)a[u]=s[u];i=String.fromCharCode.apply(null,a)}return r+=btoa(i),n(r)},e.decodePacket=function(t,n,r){if(void 0===t)return w;if("string"==typeof t){if("b"===t.charAt(0))return e.decodeBase64Packet(t.substr(1),n);if(r&&!1===(t=a(t)))return w;var o=t.charAt(0);return Number(o)==o&&b[o]?t.length>1?{type:b[o],data:t.substring(1)}:{type:b[o]}:w}var i=new Uint8Array(t),o=i[0],s=p(t,1);return x&&"blob"===n&&(s=new x([s])),{type:b[o],data:s}},e.decodeBase64Packet=function(t,e){var n=b[t.charAt(0)];if(!c)return{type:n,data:{base64:!0,data:t.substr(1)}};var r=c.decode(t.substr(1));return"blob"===e&&x&&(r=new x([r])),{type:n,data:r}},e.encodePayload=function(t,n,r){function o(t){return t.length+":"+t}function i(t,r){e.encodePacket(t,!!s&&n,!1,function(t){r(null,o(t))})}"function"==typeof n&&(r=n,n=null);var s=f(t);return n&&s?x&&!m?e.encodePayloadAsBlob(t,r):e.encodePayloadAsArrayBuffer(t,r):t.length?void u(t,i,function(t,e){return r(e.join(""))}):r("0:")},e.decodePayload=function(t,n,r){if("string"!=typeof t)return e.decodePayloadAsBinary(t,n,r);"function"==typeof n&&(r=n,n=null);var o;if(""===t)return r(w,0,1);for(var i,s,a="",u=0,c=t.length;u<c;u++){var l=t.charAt(u);if(":"===l){if(""===a||a!=(i=Number(a)))return r(w,0,1);if(s=t.substr(u+1,i),a!=s.length)return r(w,0,1);if(s.length){if(o=e.decodePacket(s,n,!1),w.type===o.type&&w.data===o.data)return r(w,0,1);if(!1===r(o,u+i,c))return}u+=i,a=""}else a+=l}return""!==a?r(w,0,1):void 0},e.encodePayloadAsArrayBuffer=function(t,n){function r(t,n){e.encodePacket(t,!0,!0,function(t){return n(null,t)})}if(!t.length)return n(new ArrayBuffer(0));u(t,r,function(t,e){var r=e.reduce(function(t,e){var n;return n="string"==typeof e?e.length:e.byteLength,t+n.toString().length+n+2},0),o=new Uint8Array(r),i=0;return e.forEach(function(t){var e="string"==typeof t,n=t;if(e){for(var r=new Uint8Array(t.length),s=0;s<t.length;s++)r[s]=t.charCodeAt(s);n=r.buffer}o[i++]=e?0:1;for(var a=n.byteLength.toString(),s=0;s<a.length;s++)o[i++]=parseInt(a[s]);o[i++]=255;for(var r=new Uint8Array(n),s=0;s<r.length;s++)o[i++]=r[s]}),n(o.buffer)})},e.encodePayloadAsBlob=function(t,n){function r(t,n){e.encodePacket(t,!0,!0,function(t){var e=new Uint8Array(1);if(e[0]=1,"string"==typeof t){for(var r=new Uint8Array(t.length),o=0;o<t.length;o++)r[o]=t.charCodeAt(o);t=r.buffer,e[0]=0}for(var i=t instanceof ArrayBuffer?t.byteLength:t.size,s=i.toString(),a=new Uint8Array(s.length+1),o=0;o<s.length;o++)a[o]=parseInt(s[o]);if(a[s.length]=255,x){var u=new x([e.buffer,a.buffer,t]);n(null,u)}})}u(t,r,function(t,e){return n(new x(e))})},e.decodePayloadAsBinary=function(t,n,r){"function"==typeof n&&(r=n,n=null);for(var o=t,i=[];o.byteLength>0;){for(var s=new Uint8Array(o),a=0===s[0],u="",c=1;255!==s[c];c++){if(u.length>310)return r(w,0,1);u+=s[c]}o=p(o,2+u.length),u=parseInt(u);var l=p(o,0,u);if(a)try{l=String.fromCharCode.apply(null,new Uint8Array(l))}catch(t){var f=new Uint8Array(l);l="";for(var c=0;c<f.length;c++)l+=String.fromCharCode(f[c])}i.push(l),o=p(o,u)}var h=i.length;i.forEach(function(t,o){r(e.decodePacket(t,n,!0),o,h)})}},function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,e){e.encode=function(t){var e="";for(var n in t)t.hasOwnProperty(n)&&(e.length&&(e+="&"),e+=encodeURIComponent(n)+"="+encodeURIComponent(t[n]));return e},e.decode=function(t){for(var e={},n=t.split("&"),r=0,o=n.length;r<o;r++){var i=n[r].split("=");e[decodeURIComponent(i[0])]=decodeURIComponent(i[1])}return e}},function(t,e){t.exports=function(t,e){var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},function(t,e,n){function r(){}function o(t){var n=""+t.type;if(e.BINARY_EVENT!==t.type&&e.BINARY_ACK!==t.type||(n+=t.attachments+"-"),t.nsp&&"/"!==t.nsp&&(n+=t.nsp+","),null!=t.id&&(n+=t.id),null!=t.data){var r=i(t.data);if(!1===r)return m;n+=r}return p("encoded %j as %s",t,n),n}function i(t){try{return JSON.stringify(t)}catch(t){return!1}}function s(t,e){function n(t){var n=d.deconstructPacket(t),r=o(n.packet),i=n.buffers;i.unshift(r),e(i)}d.removeBlobs(t,n)}function a(){this.reconstructor=null}function u(t){var n=0,r={type:Number(t.charAt(0))};if(null==e.types[r.type])return f("unknown packet type "+r.type);if(e.BINARY_EVENT===r.type||e.BINARY_ACK===r.type){for(var o="";"-"!==t.charAt(++n)&&(o+=t.charAt(n),n!=t.length););if(o!=Number(o)||"-"!==t.charAt(n))throw new Error("Illegal attachments");r.attachments=Number(o)}if("/"===t.charAt(n+1))for(r.nsp="";++n;){var i=t.charAt(n);if(","===i)break;if(r.nsp+=i,n===t.length)break}else r.nsp="/";var s=t.charAt(n+1);if(""!==s&&Number(s)==s){for(r.id="";++n;){var i=t.charAt(n);if(null==i||Number(i)!=i){--n;break}if(r.id+=t.charAt(n),n===t.length)break}r.id=Number(r.id)}if(t.charAt(++n)){var a=c(t.substr(n));if(!(!1!==a&&(r.type===e.ERROR||y(a))))return f("invalid payload");r.data=a}return p("decoded %s as %j",t,r),r}function c(t){try{return JSON.parse(t)}catch(t){return!1}}function l(t){this.reconPack=t,this.buffers=[]}function f(t){return{type:e.ERROR,data:"parser error: "+t}}var p=n(0)("socket.io-parser"),h=n(1),d=n(29),y=n(3),g=n(12);e.protocol=4,e.types=["CONNECT","DISCONNECT","EVENT","ACK","ERROR","BINARY_EVENT","BINARY_ACK"],e.CONNECT=0,e.DISCONNECT=1,e.EVENT=2,e.ACK=3,e.ERROR=4,e.BINARY_EVENT=5,e.BINARY_ACK=6,e.Encoder=r,e.Decoder=a;var m=e.ERROR+'"encode error"';r.prototype.encode=function(t,n){if(p("encoding packet %j",t),e.BINARY_EVENT===t.type||e.BINARY_ACK===t.type)s(t,n);else{n([o(t)])}},h(a.prototype),a.prototype.add=function(t){var n;if("string"==typeof t)n=u(t),e.BINARY_EVENT===n.type||e.BINARY_ACK===n.type?(this.reconstructor=new l(n),0===this.reconstructor.reconPack.attachments&&this.emit("decoded",n)):this.emit("decoded",n);else{if(!g(t)&&!t.base64)throw new Error("Unknown type: "+t);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");(n=this.reconstructor.takeBinaryData(t))&&(this.reconstructor=null,this.emit("decoded",n))}},a.prototype.destroy=function(){this.reconstructor&&this.reconstructor.finishedReconstruction()},l.prototype.takeBinaryData=function(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){var e=d.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null},l.prototype.finishedReconstruction=function(){this.reconPack=null,this.buffers=[]}},function(t,e,n){"use strict";(function(t){function r(){return i.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function o(t,e){if(r()<e)throw new RangeError("Invalid typed array length");return i.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e),t.__proto__=i.prototype):(null===t&&(t=new i(e)),t.length=e),t}function i(t,e,n){if(!(i.TYPED_ARRAY_SUPPORT||this instanceof i))return new i(t,e,n);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return c(this,t)}return s(this,t,e,n)}function s(t,e,n,r){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?p(t,e,n,r):"string"==typeof e?l(t,e,n):h(t,e)}function a(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function u(t,e,n,r){return a(e),e<=0?o(t,e):void 0!==n?"string"==typeof r?o(t,e).fill(n,r):o(t,e).fill(n):o(t,e)}function c(t,e){if(a(e),t=o(t,e<0?0:0|d(e)),!i.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function l(t,e,n){if("string"==typeof n&&""!==n||(n="utf8"),!i.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|g(e,n);t=o(t,r);var s=t.write(e,n);return s!==r&&(t=t.slice(0,s)),t}function f(t,e){var n=e.length<0?0:0|d(e.length);t=o(t,n);for(var r=0;r<n;r+=1)t[r]=255&e[r];return t}function p(t,e,n,r){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return e=void 0===n&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,n):new Uint8Array(e,n,r),i.TYPED_ARRAY_SUPPORT?(t=e,t.__proto__=i.prototype):t=f(t,e),t}function h(t,e){if(i.isBuffer(e)){var n=0|d(e.length);return t=o(t,n),0===t.length?t:(e.copy(t,0,0,n),t)}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||K(e.length)?o(t,0):f(t,e);if("Buffer"===e.type&&G(e.data))return f(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function d(t){if(t>=r())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r().toString(16)+" bytes");return 0|t}function y(t){return+t!=t&&(t=0),i.alloc(+t)}function g(t,e){if(i.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 n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return W(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return V(t).length;default:if(r)return W(t).length;e=(""+e).toLowerCase(),r=!0}}function m(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,e>>>=0,n<=e)return"";for(t||(t="utf8");;)switch(t){case"hex":return I(this,e,n);case"utf8":case"utf-8":return B(this,e,n);case"ascii":return R(this,e,n);case"latin1":case"binary":return N(this,e,n);case"base64":return S(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function v(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function b(t,e,n,r,o){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(o)return-1;n=t.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof e&&(e=i.from(e,r)),i.isBuffer(e))return 0===e.length?-1:w(t,e,n,r,o);if("number"==typeof e)return e&=255,i.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):w(t,[e],n,r,o);throw new TypeError("val must be string, number or Buffer")}function w(t,e,n,r,o){function i(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}var s=1,a=t.length,u=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;s=2,a/=2,u/=2,n/=2}var c;if(o){var l=-1;for(c=n;c<a;c++)if(i(t,c)===i(e,-1===l?0:c-l)){if(-1===l&&(l=c),c-l+1===u)return l*s}else-1!==l&&(c-=c-l),l=-1}else for(n+u>a&&(n=a-u),c=n;c>=0;c--){for(var f=!0,p=0;p<u;p++)if(i(t,c+p)!==i(e,p)){f=!1;break}if(f)return c}return-1}function x(t,e,n,r){n=Number(n)||0;var o=t.length-n;r?(r=Number(r))>o&&(r=o):r=o;var i=e.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var s=0;s<r;++s){var a=parseInt(e.substr(2*s,2),16);if(isNaN(a))return s;t[n+s]=a}return s}function E(t,e,n,r){return Q(W(e,t.length-n),t,n,r)}function k(t,e,n,r){return Q(z(e),t,n,r)}function C(t,e,n,r){return k(t,e,n,r)}function T(t,e,n,r){return Q(V(e),t,n,r)}function A(t,e,n,r){return Q(X(e,t.length-n),t,n,r)}function S(t,e,n){return 0===e&&n===t.length?J.fromByteArray(t):J.fromByteArray(t.slice(e,n))}function B(t,e,n){n=Math.min(t.length,n);for(var r=[],o=e;o<n;){var i=t[o],s=null,a=i>239?4:i>223?3:i>191?2:1;if(o+a<=n){var u,c,l,f;switch(a){case 1:i<128&&(s=i);break;case 2:u=t[o+1],128==(192&u)&&(f=(31&i)<<6|63&u)>127&&(s=f);break;case 3:u=t[o+1],c=t[o+2],128==(192&u)&&128==(192&c)&&(f=(15&i)<<12|(63&u)<<6|63&c)>2047&&(f<55296||f>57343)&&(s=f);break;case 4:u=t[o+1],c=t[o+2],l=t[o+3],128==(192&u)&&128==(192&c)&&128==(192&l)&&(f=(15&i)<<18|(63&u)<<12|(63&c)<<6|63&l)>65535&&f<1114112&&(s=f)}}null===s?(s=65533,a=1):s>65535&&(s-=65536,r.push(s>>>10&1023|55296),s=56320|1023&s),r.push(s),o+=a}return D(r)}function D(t){var e=t.length;if(e<=Z)return String.fromCharCode.apply(String,t);for(var n="",r=0;r<e;)n+=String.fromCharCode.apply(String,t.slice(r,r+=Z));return n}function R(t,e,n){var r="";n=Math.min(t.length,n);for(var o=e;o<n;++o)r+=String.fromCharCode(127&t[o]);return r}function N(t,e,n){var r="";n=Math.min(t.length,n);for(var o=e;o<n;++o)r+=String.fromCharCode(t[o]);return r}function I(t,e,n){var r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);for(var o="",i=e;i<n;++i)o+=F(t[i]);return o}function P(t,e,n){for(var r=t.slice(e,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function L(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function O(t,e,n,r,o,s){if(!i.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||e<s)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}function j(t,e,n,r){e<0&&(e=65535+e+1);for(var o=0,i=Math.min(t.length-n,2);o<i;++o)t[n+o]=(e&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function q(t,e,n,r){e<0&&(e=4294967295+e+1);for(var o=0,i=Math.min(t.length-n,4);o<i;++o)t[n+o]=e>>>8*(r?o:3-o)&255}function _(t,e,n,r,o,i){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function U(t,e,n,r,o){return o||_(t,e,n,4,3.4028234663852886e38,-3.4028234663852886e38),$.write(t,e,n,r,23,4),n+4}function M(t,e,n,r,o){return o||_(t,e,n,8,1.7976931348623157e308,-1.7976931348623157e308),$.write(t,e,n,r,52,8),n+8}function H(t){if(t=Y(t).replace(tt,""),t.length<2)return"";for(;t.length%4!=0;)t+="=";return t}function Y(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function F(t){return t<16?"0"+t.toString(16):t.toString(16)}function W(t,e){e=e||1/0;for(var n,r=t.length,o=null,i=[],s=0;s<r;++s){if((n=t.charCodeAt(s))>55295&&n<57344){if(!o){if(n>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(s+1===r){(e-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(e-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((e-=1)<0)break;i.push(n)}else if(n<2048){if((e-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function z(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}function X(t,e){for(var n,r,o,i=[],s=0;s<t.length&&!((e-=2)<0);++s)n=t.charCodeAt(s),r=n>>8,o=n%256,i.push(o),i.push(r);return i}function V(t){return J.toByteArray(H(t))}function Q(t,e,n,r){for(var o=0;o<r&&!(o+n>=e.length||o>=t.length);++o)e[o+n]=t[o];return o}function K(t){return t!==t}/*!
   * The buffer module from node.js, for the browser.
   *
   * @author   Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
   * @license  MIT
   */
  var J=n(30),$=n(31),G=n(3);e.Buffer=i,e.SlowBuffer=y,e.INSPECT_MAX_BYTES=50,i.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=r(),i.poolSize=8192,i._augment=function(t){return t.__proto__=i.prototype,t},i.from=function(t,e,n){return s(null,t,e,n)},i.TYPED_ARRAY_SUPPORT&&(i.prototype.__proto__=Uint8Array.prototype,i.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&i[Symbol.species]===i&&Object.defineProperty(i,Symbol.species,{value:null,configurable:!0})),i.alloc=function(t,e,n){return u(null,t,e,n)},i.allocUnsafe=function(t){return c(null,t)},i.allocUnsafeSlow=function(t){return c(null,t)},i.isBuffer=function(t){return!(null==t||!t._isBuffer)},i.compare=function(t,e){if(!i.isBuffer(t)||!i.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,r=e.length,o=0,s=Math.min(n,r);o<s;++o)if(t[o]!==e[o]){n=t[o],r=e[o];break}return n<r?-1:r<n?1:0},i.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},i.concat=function(t,e){if(!G(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return i.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var r=i.allocUnsafe(e),o=0;for(n=0;n<t.length;++n){var s=t[n];if(!i.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(r,o),o+=s.length}return r},i.byteLength=g,i.prototype._isBuffer=!0,i.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)v(this,e,e+1);return this},i.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)v(this,e,e+3),v(this,e+1,e+2);return this},i.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)v(this,e,e+7),v(this,e+1,e+6),v(this,e+2,e+5),v(this,e+3,e+4);return this},i.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?B(this,0,t):m.apply(this,arguments)},i.prototype.equals=function(t){if(!i.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===i.compare(this,t)},i.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},i.prototype.compare=function(t,e,n,r,o){if(!i.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),e<0||n>t.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&e>=n)return 0;if(r>=o)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,r>>>=0,o>>>=0,this===t)return 0;for(var s=o-r,a=n-e,u=Math.min(s,a),c=this.slice(r,o),l=t.slice(e,n),f=0;f<u;++f)if(c[f]!==l[f]){s=c[f],a=l[f];break}return s<a?-1:a<s?1:0},i.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},i.prototype.indexOf=function(t,e,n){return b(this,t,e,n,!0)},i.prototype.lastIndexOf=function(t,e,n){return b(this,t,e,n,!1)},i.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-e;if((void 0===n||n>o)&&(n=o),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return x(this,t,e,n);case"utf8":case"utf-8":return E(this,t,e,n);case"ascii":return k(this,t,e,n);case"latin1":case"binary":return C(this,t,e,n);case"base64":return T(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,t,e,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Z=4096;i.prototype.slice=function(t,e){var n=this.length;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),e<t&&(e=t);var r;if(i.TYPED_ARRAY_SUPPORT)r=this.subarray(t,e),r.__proto__=i.prototype;else{var o=e-t;r=new i(o,void 0);for(var s=0;s<o;++s)r[s]=this[s+t]}return r},i.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||L(t,e,this.length);for(var r=this[t],o=1,i=0;++i<e&&(o*=256);)r+=this[t+i]*o;return r},i.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||L(t,e,this.length);for(var r=this[t+--e],o=1;e>0&&(o*=256);)r+=this[t+--e]*o;return r},i.prototype.readUInt8=function(t,e){return e||L(t,1,this.length),this[t]},i.prototype.readUInt16LE=function(t,e){return e||L(t,2,this.length),this[t]|this[t+1]<<8},i.prototype.readUInt16BE=function(t,e){return e||L(t,2,this.length),this[t]<<8|this[t+1]},i.prototype.readUInt32LE=function(t,e){return e||L(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},i.prototype.readUInt32BE=function(t,e){return e||L(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},i.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||L(t,e,this.length);for(var r=this[t],o=1,i=0;++i<e&&(o*=256);)r+=this[t+i]*o;return o*=128,r>=o&&(r-=Math.pow(2,8*e)),r},i.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||L(t,e,this.length);for(var r=e,o=1,i=this[t+--r];r>0&&(o*=256);)i+=this[t+--r]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*e)),i},i.prototype.readInt8=function(t,e){return e||L(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},i.prototype.readInt16LE=function(t,e){e||L(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},i.prototype.readInt16BE=function(t,e){e||L(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},i.prototype.readInt32LE=function(t,e){return e||L(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},i.prototype.readInt32BE=function(t,e){return e||L(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},i.prototype.readFloatLE=function(t,e){return e||L(t,4,this.length),$.read(this,t,!0,23,4)},i.prototype.readFloatBE=function(t,e){return e||L(t,4,this.length),$.read(this,t,!1,23,4)},i.prototype.readDoubleLE=function(t,e){return e||L(t,8,this.length),$.read(this,t,!0,52,8)},i.prototype.readDoubleBE=function(t,e){return e||L(t,8,this.length),$.read(this,t,!1,52,8)},i.prototype.writeUIntLE=function(t,e,n,r){if(t=+t,e|=0,n|=0,!r){O(this,t,e,n,Math.pow(2,8*n)-1,0)}var o=1,i=0;for(this[e]=255&t;++i<n&&(o*=256);)this[e+i]=t/o&255;return e+n},i.prototype.writeUIntBE=function(t,e,n,r){if(t=+t,e|=0,n|=0,!r){O(this,t,e,n,Math.pow(2,8*n)-1,0)}var o=n-1,i=1;for(this[e+o]=255&t;--o>=0&&(i*=256);)this[e+o]=t/i&255;return e+n},i.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||O(this,t,e,1,255,0),i.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},i.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||O(this,t,e,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):j(this,t,e,!0),e+2},i.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||O(this,t,e,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):j(this,t,e,!1),e+2},i.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||O(this,t,e,4,4294967295,0),i.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):q(this,t,e,!0),e+4},i.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||O(this,t,e,4,4294967295,0),i.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):q(this,t,e,!1),e+4},i.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var o=Math.pow(2,8*n-1);O(this,t,e,n,o-1,-o)}var i=0,s=1,a=0;for(this[e]=255&t;++i<n&&(s*=256);)t<0&&0===a&&0!==this[e+i-1]&&(a=1),this[e+i]=(t/s>>0)-a&255;return e+n},i.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var o=Math.pow(2,8*n-1);O(this,t,e,n,o-1,-o)}var i=n-1,s=1,a=0;for(this[e+i]=255&t;--i>=0&&(s*=256);)t<0&&0===a&&0!==this[e+i+1]&&(a=1),this[e+i]=(t/s>>0)-a&255;return e+n},i.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||O(this,t,e,1,127,-128),i.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},i.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||O(this,t,e,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):j(this,t,e,!0),e+2},i.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||O(this,t,e,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):j(this,t,e,!1),e+2},i.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||O(this,t,e,4,2147483647,-2147483648),i.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):q(this,t,e,!0),e+4},i.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||O(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),i.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):q(this,t,e,!1),e+4},i.prototype.writeFloatLE=function(t,e,n){return U(this,t,e,!0,n)},i.prototype.writeFloatBE=function(t,e,n){return U(this,t,e,!1,n)},i.prototype.writeDoubleLE=function(t,e,n){return M(this,t,e,!0,n)},i.prototype.writeDoubleBE=function(t,e,n){return M(this,t,e,!1,n)},i.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);var o,s=r-n;if(this===t&&n<e&&e<r)for(o=s-1;o>=0;--o)t[o+e]=this[o+n];else if(s<1e3||!i.TYPED_ARRAY_SUPPORT)for(o=0;o<s;++o)t[o+e]=this[o+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+s),e);return s},i.prototype.fill=function(t,e,n,r){if("string"==typeof t){if("string"==typeof e?(r=e,e=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===t.length){var o=t.charCodeAt(0);o<256&&(t=o)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!i.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0);var s;if("number"==typeof t)for(s=e;s<n;++s)this[s]=t;else{var a=i.isBuffer(t)?t:W(new i(t,r).toString()),u=a.length;for(s=0;s<n-e;++s)this[s+e]=a[s%u]}return this};var tt=/[^+\/0-9A-Za-z-_]/g}).call(e,n(13))},function(t,e,n){var r=n(34);t.exports=function(t){var e=t.xdomain,n=t.xscheme,o=t.enablesXDR;try{if("undefined"!=typeof XMLHttpRequest&&(!e||r))return new XMLHttpRequest}catch(t){}try{if("undefined"!=typeof XDomainRequest&&!n&&o)return new XDomainRequest}catch(t){}if(!e)try{return new(self[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(t){}}},function(t,e,n){function r(t){this.path=t.path,this.hostname=t.hostname,this.port=t.port,this.secure=t.secure,this.query=t.query,this.timestampParam=t.timestampParam,this.timestampRequests=t.timestampRequests,this.readyState="",this.agent=t.agent||!1,this.socket=t.socket,this.enablesXDR=t.enablesXDR,this.pfx=t.pfx,this.key=t.key,this.passphrase=t.passphrase,this.cert=t.cert,this.ca=t.ca,this.ciphers=t.ciphers,this.rejectUnauthorized=t.rejectUnauthorized,this.forceNode=t.forceNode,this.isReactNative=t.isReactNative,this.extraHeaders=t.extraHeaders,this.localAddress=t.localAddress}var o=n(2),i=n(1);t.exports=r,i(r.prototype),r.prototype.onError=function(t,e){var n=new Error(t);return n.type="TransportError",n.description=e,this.emit("error",n),this},r.prototype.open=function(){return"closed"!==this.readyState&&""!==this.readyState||(this.readyState="opening",this.doOpen()),this},r.prototype.close=function(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this},r.prototype.send=function(t){if("open"!==this.readyState)throw new Error("Transport not open");this.write(t)},r.prototype.onOpen=function(){this.readyState="open",this.writable=!0,this.emit("open")},r.prototype.onData=function(t){var e=o.decodePacket(t,this.socket.binaryType);this.onPacket(e)},r.prototype.onPacket=function(t){this.emit("packet",t)},r.prototype.onClose=function(){this.readyState="closed",this.emit("close")}},function(t,e,n){var r,o;/*!
   * jQuery JavaScript Library v3.4.1
   * https://jquery.com/
   *
   * Includes Sizzle.js
   * https://sizzlejs.com/
   *
   * Copyright JS Foundation and other contributors
   * Released under the MIT license
   * https://jquery.org/license
   *
   * Date: 2019-05-01T21:04Z
   */
  !function(e,n){"use strict";"object"==typeof t&&"object"==typeof t.exports?t.exports=e.document?n(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return n(t)}:n(e)}("undefined"!=typeof window?window:this,function(n,i){"use strict";function s(t,e,n){n=n||pt;var r,o,i=n.createElement("script");if(i.text=t,e)for(r in At)(o=e[r]||e.getAttribute&&e.getAttribute(r))&&i.setAttribute(r,o);n.head.appendChild(i).parentNode.removeChild(i)}function a(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?vt[bt.call(t)]||"object":typeof t}function u(t){var e=!!t&&"length"in t&&t.length,n=a(t);return!Ct(t)&&!Tt(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}function c(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}function l(t,e,n){return Ct(e)?St.grep(t,function(t,r){return!!e.call(t,r,t)!==n}):e.nodeType?St.grep(t,function(t){return t===e!==n}):"string"!=typeof e?St.grep(t,function(t){return mt.call(e,t)>-1!==n}):St.filter(e,t,n)}function f(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}function p(t){var e={};return St.each(t.match(_t)||[],function(t,n){e[n]=!0}),e}function h(t){return t}function d(t){throw t}function y(t,e,n,r){var o;try{t&&Ct(o=t.promise)?o.call(t).done(e).fail(n):t&&Ct(o=t.then)?o.call(t,e,n):e.apply(void 0,[t].slice(r))}catch(t){n.apply(void 0,[t])}}function g(){pt.removeEventListener("DOMContentLoaded",g),n.removeEventListener("load",g),St.ready()}function m(t,e){return e.toUpperCase()}function v(t){return t.replace(Yt,"ms-").replace(Ft,m)}function b(){this.expando=St.expando+b.uid++}function w(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:Vt.test(t)?JSON.parse(t):t)}function x(t,e,n){var r;if(void 0===n&&1===t.nodeType)if(r="data-"+e.replace(Qt,"-$&").toLowerCase(),"string"==typeof(n=t.getAttribute(r))){try{n=w(n)}catch(t){}Xt.set(t,e,n)}else n=void 0;return n}function E(t,e,n,r){var o,i,s=20,a=r?function(){return r.cur()}:function(){return St.css(t,e,"")},u=a(),c=n&&n[3]||(St.cssNumber[e]?"":"px"),l=t.nodeType&&(St.cssNumber[e]||"px"!==c&&+u)&&Jt.exec(St.css(t,e));if(l&&l[3]!==c){for(u/=2,c=c||l[3],l=+u||1;s--;)St.style(t,e,l+c),(1-i)*(1-(i=a()/u||.5))<=0&&(s=0),l/=i;l*=2,St.style(t,e,l+c),n=n||[]}return n&&(l=+l||+u||0,o=n[1]?l+(n[1]+1)*n[2]:+n[2],r&&(r.unit=c,r.start=l,r.end=o)),o}function k(t){var e,n=t.ownerDocument,r=t.nodeName,o=re[r];return o||(e=n.body.appendChild(n.createElement(r)),o=St.css(e,"display"),e.parentNode.removeChild(e),"none"===o&&(o="block"),re[r]=o,o)}function C(t,e){for(var n,r,o=[],i=0,s=t.length;i<s;i++)r=t[i],r.style&&(n=r.style.display,e?("none"===n&&(o[i]=zt.get(r,"display")||null,o[i]||(r.style.display="")),""===r.style.display&&ee(r)&&(o[i]=k(r))):"none"!==n&&(o[i]="none",zt.set(r,"display",n)));for(i=0;i<s;i++)null!=o[i]&&(t[i].style.display=o[i]);return t}function T(t,e){var n;return n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&c(t,e)?St.merge([t],n):n}function A(t,e){for(var n=0,r=t.length;n<r;n++)zt.set(t[n],"globalEval",!e||zt.get(e[n],"globalEval"))}function S(t,e,n,r,o){for(var i,s,u,c,l,f,p=e.createDocumentFragment(),h=[],d=0,y=t.length;d<y;d++)if((i=t[d])||0===i)if("object"===a(i))St.merge(h,i.nodeType?[i]:i);else if(ue.test(i)){for(s=s||p.appendChild(e.createElement("div")),u=(ie.exec(i)||["",""])[1].toLowerCase(),c=ae[u]||ae._default,s.innerHTML=c[1]+St.htmlPrefilter(i)+c[2],f=c[0];f--;)s=s.lastChild;St.merge(h,s.childNodes),s=p.firstChild,s.textContent=""}else h.push(e.createTextNode(i));for(p.textContent="",d=0;i=h[d++];)if(r&&St.inArray(i,r)>-1)o&&o.push(i);else if(l=Zt(i),s=T(p.appendChild(i),"script"),l&&A(s),n)for(f=0;i=s[f++];)se.test(i.type||"")&&n.push(i);return p}function B(){return!0}function D(){return!1}function R(t,e){return t===N()==("focus"===e)}function N(){try{return pt.activeElement}catch(t){}}function I(t,e,n,r,o,i){var s,a;if("object"==typeof e){"string"!=typeof n&&(r=r||n,n=void 0);for(a in e)I(t,a,n,r,e[a],i);return t}if(null==r&&null==o?(o=n,r=n=void 0):null==o&&("string"==typeof n?(o=r,r=void 0):(o=r,r=n,n=void 0)),!1===o)o=D;else if(!o)return t;return 1===i&&(s=o,o=function(t){return St().off(t),s.apply(this,arguments)},o.guid=s.guid||(s.guid=St.guid++)),t.each(function(){St.event.add(this,e,o,r,n)})}function P(t,e,n){if(!n)return void(void 0===zt.get(t,e)&&St.event.add(t,e,B));zt.set(t,e,!1),St.event.add(t,e,{namespace:!1,handler:function(t){var r,o,i=zt.get(this,e);if(1&t.isTrigger&&this[e]){if(i.length)(St.event.special[e]||{}).delegateType&&t.stopPropagation();else if(i=dt.call(arguments),zt.set(this,e,i),r=n(this,e),this[e](),o=zt.get(this,e),i!==o||r?zt.set(this,e,!1):o={},i!==o)return t.stopImmediatePropagation(),t.preventDefault(),o.value}else i.length&&(zt.set(this,e,{value:St.event.trigger(St.extend(i[0],St.Event.prototype),i.slice(1),this)}),t.stopImmediatePropagation())}})}function L(t,e){return c(t,"table")&&c(11!==e.nodeType?e:e.firstChild,"tr")?St(t).children("tbody")[0]||t:t}function O(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function j(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function q(t,e){var n,r,o,i,s,a,u,c;if(1===e.nodeType){if(zt.hasData(t)&&(i=zt.access(t),s=zt.set(e,i),c=i.events)){delete s.handle,s.events={};for(o in c)for(n=0,r=c[o].length;n<r;n++)St.event.add(e,o,c[o][n])}Xt.hasData(t)&&(a=Xt.access(t),u=St.extend({},a),Xt.set(e,u))}}function _(t,e){var n=e.nodeName.toLowerCase();"input"===n&&oe.test(t.type)?e.checked=t.checked:"input"!==n&&"textarea"!==n||(e.defaultValue=t.defaultValue)}function U(t,e,n,r){e=yt.apply([],e);var o,i,a,u,c,l,f=0,p=t.length,h=p-1,d=e[0],y=Ct(d);if(y||p>1&&"string"==typeof d&&!kt.checkClone&&de.test(d))return t.each(function(o){var i=t.eq(o);y&&(e[0]=d.call(this,o,i.html())),U(i,e,n,r)});if(p&&(o=S(e,t[0].ownerDocument,!1,t,r),i=o.firstChild,1===o.childNodes.length&&(o=i),i||r)){for(a=St.map(T(o,"script"),O),u=a.length;f<p;f++)c=o,f!==h&&(c=St.clone(c,!0,!0),u&&St.merge(a,T(c,"script"))),n.call(t[f],c,f);if(u)for(l=a[a.length-1].ownerDocument,St.map(a,j),f=0;f<u;f++)c=a[f],se.test(c.type||"")&&!zt.access(c,"globalEval")&&St.contains(l,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?St._evalUrl&&!c.noModule&&St._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")}):s(c.textContent.replace(ye,""),c,l))}return t}function M(t,e,n){for(var r,o=e?St.filter(e,t):t,i=0;null!=(r=o[i]);i++)n||1!==r.nodeType||St.cleanData(T(r)),r.parentNode&&(n&&Zt(r)&&A(T(r,"script")),r.parentNode.removeChild(r));return t}function H(t,e,n){var r,o,i,s,a=t.style;return n=n||me(t),n&&(s=n.getPropertyValue(e)||n[e],""!==s||Zt(t)||(s=St.style(t,e)),!kt.pixelBoxStyles()&&ge.test(s)&&ve.test(e)&&(r=a.width,o=a.minWidth,i=a.maxWidth,a.minWidth=a.maxWidth=a.width=s,s=n.width,a.width=r,a.minWidth=o,a.maxWidth=i)),void 0!==s?s+"":s}function Y(t,e){return{get:function(){return t()?void delete this.get:(this.get=e).apply(this,arguments)}}}function F(t){for(var e=t[0].toUpperCase()+t.slice(1),n=be.length;n--;)if((t=be[n]+e)in we)return t}function W(t){var e=St.cssProps[t]||xe[t];return e||(t in we?t:xe[t]=F(t)||t)}function z(t,e,n){var r=Jt.exec(e);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):e}function X(t,e,n,r,o,i){var s="width"===e?1:0,a=0,u=0;if(n===(r?"border":"content"))return 0;for(;s<4;s+=2)"margin"===n&&(u+=St.css(t,n+$t[s],!0,o)),r?("content"===n&&(u-=St.css(t,"padding"+$t[s],!0,o)),"margin"!==n&&(u-=St.css(t,"border"+$t[s]+"Width",!0,o))):(u+=St.css(t,"padding"+$t[s],!0,o),"padding"!==n?u+=St.css(t,"border"+$t[s]+"Width",!0,o):a+=St.css(t,"border"+$t[s]+"Width",!0,o));return!r&&i>=0&&(u+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-i-u-a-.5))||0),u}function V(t,e,n){var r=me(t),o=!kt.boxSizingReliable()||n,i=o&&"border-box"===St.css(t,"boxSizing",!1,r),s=i,a=H(t,e,r),u="offset"+e[0].toUpperCase()+e.slice(1);if(ge.test(a)){if(!n)return a;a="auto"}return(!kt.boxSizingReliable()&&i||"auto"===a||!parseFloat(a)&&"inline"===St.css(t,"display",!1,r))&&t.getClientRects().length&&(i="border-box"===St.css(t,"boxSizing",!1,r),(s=u in t)&&(a=t[u])),(a=parseFloat(a)||0)+X(t,e,n||(i?"border":"content"),s,r,a)+"px"}function Q(t,e,n,r,o){return new Q.prototype.init(t,e,n,r,o)}function K(){Se&&(!1===pt.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(K):n.setTimeout(K,St.fx.interval),St.fx.tick())}function J(){return n.setTimeout(function(){Ae=void 0}),Ae=Date.now()}function $(t,e){var n,r=0,o={height:t};for(e=e?1:0;r<4;r+=2-e)n=$t[r],o["margin"+n]=o["padding"+n]=t;return e&&(o.opacity=o.width=t),o}function G(t,e,n){for(var r,o=(et.tweeners[e]||[]).concat(et.tweeners["*"]),i=0,s=o.length;i<s;i++)if(r=o[i].call(n,e,t))return r}function Z(t,e,n){var r,o,i,s,a,u,c,l,f="width"in e||"height"in e,p=this,h={},d=t.style,y=t.nodeType&&ee(t),g=zt.get(t,"fxshow");n.queue||(s=St._queueHooks(t,"fx"),null==s.unqueued&&(s.unqueued=0,a=s.empty.fire,s.empty.fire=function(){s.unqueued||a()}),s.unqueued++,p.always(function(){p.always(function(){s.unqueued--,St.queue(t,"fx").length||s.empty.fire()})}));for(r in e)if(o=e[r],Be.test(o)){if(delete e[r],i=i||"toggle"===o,o===(y?"hide":"show")){if("show"!==o||!g||void 0===g[r])continue;y=!0}h[r]=g&&g[r]||St.style(t,r)}if((u=!St.isEmptyObject(e))||!St.isEmptyObject(h)){f&&1===t.nodeType&&(n.overflow=[d.overflow,d.overflowX,d.overflowY],c=g&&g.display,null==c&&(c=zt.get(t,"display")),l=St.css(t,"display"),"none"===l&&(c?l=c:(C([t],!0),c=t.style.display||c,l=St.css(t,"display"),C([t]))),("inline"===l||"inline-block"===l&&null!=c)&&"none"===St.css(t,"float")&&(u||(p.done(function(){d.display=c}),null==c&&(l=d.display,c="none"===l?"":l)),d.display="inline-block")),n.overflow&&(d.overflow="hidden",p.always(function(){d.overflow=n.overflow[0],d.overflowX=n.overflow[1],d.overflowY=n.overflow[2]})),u=!1;for(r in h)u||(g?"hidden"in g&&(y=g.hidden):g=zt.access(t,"fxshow",{display:c}),i&&(g.hidden=!y),y&&C([t],!0),p.done(function(){y||C([t]),zt.remove(t,"fxshow");for(r in h)St.style(t,r,h[r])})),u=G(y?g[r]:0,r,p),r in g||(g[r]=u.start,y&&(u.end=u.start,u.start=0))}}function tt(t,e){var n,r,o,i,s;for(n in t)if(r=v(n),o=e[r],i=t[n],Array.isArray(i)&&(o=i[1],i=t[n]=i[0]),n!==r&&(t[r]=i,delete t[n]),(s=St.cssHooks[r])&&"expand"in s){i=s.expand(i),delete t[r];for(n in i)n in t||(t[n]=i[n],e[n]=o)}else e[r]=o}function et(t,e,n){var r,o,i=0,s=et.prefilters.length,a=St.Deferred().always(function(){delete u.elem}),u=function(){if(o)return!1;for(var e=Ae||J(),n=Math.max(0,c.startTime+c.duration-e),r=n/c.duration||0,i=1-r,s=0,u=c.tweens.length;s<u;s++)c.tweens[s].run(i);return a.notifyWith(t,[c,i,n]),i<1&&u?n:(u||a.notifyWith(t,[c,1,0]),a.resolveWith(t,[c]),!1)},c=a.promise({elem:t,props:St.extend({},e),opts:St.extend(!0,{specialEasing:{},easing:St.easing._default},n),originalProperties:e,originalOptions:n,startTime:Ae||J(),duration:n.duration,tweens:[],createTween:function(e,n){var r=St.Tween(t,c.opts,e,n,c.opts.specialEasing[e]||c.opts.easing);return c.tweens.push(r),r},stop:function(e){var n=0,r=e?c.tweens.length:0;if(o)return this;for(o=!0;n<r;n++)c.tweens[n].run(1);return e?(a.notifyWith(t,[c,1,0]),a.resolveWith(t,[c,e])):a.rejectWith(t,[c,e]),this}}),l=c.props;for(tt(l,c.opts.specialEasing);i<s;i++)if(r=et.prefilters[i].call(c,t,l,c.opts))return Ct(r.stop)&&(St._queueHooks(c.elem,c.opts.queue).stop=r.stop.bind(r)),r;return St.map(l,G,c),Ct(c.opts.start)&&c.opts.start.call(t,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),St.fx.timer(St.extend(u,{elem:t,anim:c,queue:c.opts.queue})),c}function nt(t){return(t.match(_t)||[]).join(" ")}function rt(t){return t.getAttribute&&t.getAttribute("class")||""}function ot(t){return Array.isArray(t)?t:"string"==typeof t?t.match(_t)||[]:[]}function it(t,e,n,r){var o;if(Array.isArray(e))St.each(e,function(e,o){n||Me.test(t)?r(t,o):it(t+"["+("object"==typeof o&&null!=o?e:"")+"]",o,n,r)});else if(n||"object"!==a(e))r(t,e);else for(o in e)it(t+"["+o+"]",e[o],n,r)}function st(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var r,o=0,i=e.toLowerCase().match(_t)||[];if(Ct(n))for(;r=i[o++];)"+"===r[0]?(r=r.slice(1)||"*",(t[r]=t[r]||[]).unshift(n)):(t[r]=t[r]||[]).push(n)}}function at(t,e,n,r){function o(a){var u;return i[a]=!0,St.each(t[a]||[],function(t,a){var c=a(e,n,r);return"string"!=typeof c||s||i[c]?s?!(u=c):void 0:(e.dataTypes.unshift(c),o(c),!1)}),u}var i={},s=t===Ge;return o(e.dataTypes[0])||!i["*"]&&o("*")}function ut(t,e){var n,r,o=St.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((o[n]?t:r||(r={}))[n]=e[n]);return r&&St.extend(!0,t,r),t}function ct(t,e,n){for(var r,o,i,s,a=t.contents,u=t.dataTypes;"*"===u[0];)u.shift(),void 0===r&&(r=t.mimeType||e.getResponseHeader("Content-Type"));if(r)for(o in a)if(a[o]&&a[o].test(r)){u.unshift(o);break}if(u[0]in n)i=u[0];else{for(o in n){if(!u[0]||t.converters[o+" "+u[0]]){i=o;break}s||(s=o)}i=i||s}if(i)return i!==u[0]&&u.unshift(i),n[i]}function lt(t,e,n,r){var o,i,s,a,u,c={},l=t.dataTypes.slice();if(l[1])for(s in t.converters)c[s.toLowerCase()]=t.converters[s];for(i=l.shift();i;)if(t.responseFields[i]&&(n[t.responseFields[i]]=e),!u&&r&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),u=i,i=l.shift())if("*"===i)i=u;else if("*"!==u&&u!==i){if(!(s=c[u+" "+i]||c["* "+i]))for(o in c)if(a=o.split(" "),a[1]===i&&(s=c[u+" "+a[0]]||c["* "+a[0]])){!0===s?s=c[o]:!0!==c[o]&&(i=a[0],l.unshift(a[1]));break}if(!0!==s)if(s&&t.throws)e=s(e);else try{e=s(e)}catch(t){return{state:"parsererror",error:s?t:"No conversion from "+u+" to "+i}}}return{state:"success",data:e}}var ft=[],pt=n.document,ht=Object.getPrototypeOf,dt=ft.slice,yt=ft.concat,gt=ft.push,mt=ft.indexOf,vt={},bt=vt.toString,wt=vt.hasOwnProperty,xt=wt.toString,Et=xt.call(Object),kt={},Ct=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType},Tt=function(t){return null!=t&&t===t.window},At={type:!0,src:!0,nonce:!0,noModule:!0},St=function(t,e){return new St.fn.init(t,e)},Bt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;St.fn=St.prototype={jquery:"3.4.1",constructor:St,length:0,toArray:function(){return dt.call(this)},get:function(t){return null==t?dt.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=St.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return St.each(this,t)},map:function(t){return this.pushStack(St.map(this,function(e,n){return t.call(e,n,e)}))},slice:function(){return this.pushStack(dt.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n<e?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:gt,sort:ft.sort,splice:ft.splice},St.extend=St.fn.extend=function(){var t,e,n,r,o,i,s=arguments[0]||{},a=1,u=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[a]||{},a++),"object"==typeof s||Ct(s)||(s={}),a===u&&(s=this,a--);a<u;a++)if(null!=(t=arguments[a]))for(e in t)r=t[e],"__proto__"!==e&&s!==r&&(c&&r&&(St.isPlainObject(r)||(o=Array.isArray(r)))?(n=s[e],i=o&&!Array.isArray(n)?[]:o||St.isPlainObject(n)?n:{},o=!1,s[e]=St.extend(c,i,r)):void 0!==r&&(s[e]=r));return s},St.extend({expando:"jQuery"+("3.4.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){var e,n;return!(!t||"[object Object]"!==bt.call(t))&&(!(e=ht(t))||"function"==typeof(n=wt.call(e,"constructor")&&e.constructor)&&xt.call(n)===Et)},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},globalEval:function(t,e){s(t,{nonce:e&&e.nonce})},each:function(t,e){var n,r=0;if(u(t))for(n=t.length;r<n&&!1!==e.call(t[r],r,t[r]);r++);else for(r in t)if(!1===e.call(t[r],r,t[r]))break;return t},trim:function(t){return null==t?"":(t+"").replace(Bt,"")},makeArray:function(t,e){var n=e||[];return null!=t&&(u(Object(t))?St.merge(n,"string"==typeof t?[t]:t):gt.call(n,t)),n},inArray:function(t,e,n){return null==e?-1:mt.call(e,t,n)},merge:function(t,e){for(var n=+e.length,r=0,o=t.length;r<n;r++)t[o++]=e[r];return t.length=o,t},grep:function(t,e,n){for(var r=[],o=0,i=t.length,s=!n;o<i;o++)!e(t[o],o)!==s&&r.push(t[o]);return r},map:function(t,e,n){var r,o,i=0,s=[];if(u(t))for(r=t.length;i<r;i++)null!=(o=e(t[i],i,n))&&s.push(o);else for(i in t)null!=(o=e(t[i],i,n))&&s.push(o);return yt.apply([],s)},guid:1,support:kt}),"function"==typeof Symbol&&(St.fn[Symbol.iterator]=ft[Symbol.iterator]),St.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){vt["[object "+e+"]"]=e.toLowerCase()});var Dt=/*!
   * Sizzle CSS Selector Engine v2.3.4
   * https://sizzlejs.com/
   *
   * Copyright JS Foundation and other contributors
   * Released under the MIT license
   * https://js.foundation/
   *
   * Date: 2019-04-08
   */
  function(t){function e(t,e,n,r){var o,i,s,a,u,l,p,h=e&&e.ownerDocument,d=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==d&&9!==d&&11!==d)return n;if(!r&&((e?e.ownerDocument||e:U)!==N&&R(e),e=e||N,P)){if(11!==d&&(u=mt.exec(t)))if(o=u[1]){if(9===d){if(!(s=e.getElementById(o)))return n;if(s.id===o)return n.push(s),n}else if(h&&(s=h.getElementById(o))&&q(e,s)&&s.id===o)return n.push(s),n}else{if(u[2])return $.apply(n,e.getElementsByTagName(t)),n;if((o=u[3])&&w.getElementsByClassName&&e.getElementsByClassName)return $.apply(n,e.getElementsByClassName(o)),n}if(w.qsa&&!z[t+" "]&&(!L||!L.test(t))&&(1!==d||"object"!==e.nodeName.toLowerCase())){if(p=t,h=e,1===d&&ct.test(t)){for((a=e.getAttribute("id"))?a=a.replace(xt,Et):e.setAttribute("id",a=_),l=C(t),i=l.length;i--;)l[i]="#"+a+" "+f(l[i]);p=l.join(","),h=vt.test(t)&&c(e.parentNode)||e}try{return $.apply(n,h.querySelectorAll(p)),n}catch(e){z(t,!0)}finally{a===_&&e.removeAttribute("id")}}}return A(t.replace(st,"$1"),e,n,r)}function n(){function t(n,r){return e.push(n+" ")>x.cacheLength&&delete t[e.shift()],t[n+" "]=r}var e=[];return t}function r(t){return t[_]=!0,t}function o(t){var e=N.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function i(t,e){for(var n=t.split("|"),r=n.length;r--;)x.attrHandle[n[r]]=e}function s(t,e){var n=e&&t,r=n&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function a(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&&Ct(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function u(t){return r(function(e){return e=+e,r(function(n,r){for(var o,i=t([],n.length,e),s=i.length;s--;)n[o=i[s]]&&(n[o]=!(r[o]=n[o]))})})}function c(t){return t&&void 0!==t.getElementsByTagName&&t}function l(){}function f(t){for(var e=0,n=t.length,r="";e<n;e++)r+=t[e].value;return r}function p(t,e,n){var r=e.dir,o=e.next,i=o||r,s=n&&"parentNode"===i,a=H++;return e.first?function(e,n,o){for(;e=e[r];)if(1===e.nodeType||s)return t(e,n,o);return!1}:function(e,n,u){var c,l,f,p=[M,a];if(u){for(;e=e[r];)if((1===e.nodeType||s)&&t(e,n,u))return!0}else for(;e=e[r];)if(1===e.nodeType||s)if(f=e[_]||(e[_]={}),l=f[e.uniqueID]||(f[e.uniqueID]={}),o&&o===e.nodeName.toLowerCase())e=e[r]||e;else{if((c=l[i])&&c[0]===M&&c[1]===a)return p[2]=c[2];if(l[i]=p,p[2]=t(e,n,u))return!0}return!1}}function h(t){return t.length>1?function(e,n,r){for(var o=t.length;o--;)if(!t[o](e,n,r))return!1;return!0}:t[0]}function d(t,n,r){for(var o=0,i=n.length;o<i;o++)e(t,n[o],r);return r}function y(t,e,n,r,o){for(var i,s=[],a=0,u=t.length,c=null!=e;a<u;a++)(i=t[a])&&(n&&!n(i,r,o)||(s.push(i),c&&e.push(a)));return s}function g(t,e,n,o,i,s){return o&&!o[_]&&(o=g(o)),i&&!i[_]&&(i=g(i,s)),r(function(r,s,a,u){var c,l,f,p=[],h=[],g=s.length,m=r||d(e||"*",a.nodeType?[a]:a,[]),v=!t||!r&&e?m:y(m,p,t,a,u),b=n?i||(r?t:g||o)?[]:s:v;if(n&&n(v,b,a,u),o)for(c=y(b,h),o(c,[],a,u),l=c.length;l--;)(f=c[l])&&(b[h[l]]=!(v[h[l]]=f));if(r){if(i||t){if(i){for(c=[],l=b.length;l--;)(f=b[l])&&c.push(v[l]=f);i(null,b=[],c,u)}for(l=b.length;l--;)(f=b[l])&&(c=i?Z(r,f):p[l])>-1&&(r[c]=!(s[c]=f))}}else b=y(b===s?b.splice(g,b.length):b),i?i(null,s,b,u):$.apply(s,b)})}function m(t){for(var e,n,r,o=t.length,i=x.relative[t[0].type],s=i||x.relative[" "],a=i?1:0,u=p(function(t){return t===e},s,!0),c=p(function(t){return Z(e,t)>-1},s,!0),l=[function(t,n,r){var o=!i&&(r||n!==S)||((e=n).nodeType?u(t,n,r):c(t,n,r));return e=null,o}];a<o;a++)if(n=x.relative[t[a].type])l=[p(h(l),n)];else{if(n=x.filter[t[a].type].apply(null,t[a].matches),n[_]){for(r=++a;r<o&&!x.relative[t[r].type];r++);return g(a>1&&h(l),a>1&&f(t.slice(0,a-1).concat({value:" "===t[a-2].type?"*":""})).replace(st,"$1"),n,a<r&&m(t.slice(a,r)),r<o&&m(t=t.slice(r)),r<o&&f(t))}l.push(n)}return h(l)}function v(t,n){var o=n.length>0,i=t.length>0,s=function(r,s,a,u,c){var l,f,p,h=0,d="0",g=r&&[],m=[],v=S,b=r||i&&x.find.TAG("*",c),w=M+=null==v?1:Math.random()||.1,E=b.length;for(c&&(S=s===N||s||c);d!==E&&null!=(l=b[d]);d++){if(i&&l){for(f=0,s||l.ownerDocument===N||(R(l),a=!P);p=t[f++];)if(p(l,s||N,a)){u.push(l);break}c&&(M=w)}o&&((l=!p&&l)&&h--,r&&g.push(l))}if(h+=d,o&&d!==h){for(f=0;p=n[f++];)p(g,m,s,a);if(r){if(h>0)for(;d--;)g[d]||m[d]||(m[d]=K.call(u));m=y(m)}$.apply(u,m),c&&!r&&m.length>0&&h+n.length>1&&e.uniqueSort(u)}return c&&(M=w,S=v),g};return o?r(s):s}var b,w,x,E,k,C,T,A,S,B,D,R,N,I,P,L,O,j,q,_="sizzle"+1*new Date,U=t.document,M=0,H=0,Y=n(),F=n(),W=n(),z=n(),X=function(t,e){return t===e&&(D=!0),0},V={}.hasOwnProperty,Q=[],K=Q.pop,J=Q.push,$=Q.push,G=Q.slice,Z=function(t,e){for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1},tt="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",et="[\\x20\\t\\r\\n\\f]",nt="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",rt="\\["+et+"*("+nt+")(?:"+et+"*([*^$|!~]?=)"+et+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+nt+"))|)"+et+"*\\]",ot=":("+nt+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+rt+")*)|.*)\\)|)",it=new RegExp(et+"+","g"),st=new RegExp("^"+et+"+|((?:^|[^\\\\])(?:\\\\.)*)"+et+"+$","g"),at=new RegExp("^"+et+"*,"+et+"*"),ut=new RegExp("^"+et+"*([>+~]|"+et+")"+et+"*"),ct=new RegExp(et+"|>"),lt=new RegExp(ot),ft=new RegExp("^"+nt+"$"),pt={ID:new RegExp("^#("+nt+")"),CLASS:new RegExp("^\\.("+nt+")"),TAG:new RegExp("^("+nt+"|[*])"),ATTR:new RegExp("^"+rt),PSEUDO:new RegExp("^"+ot),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+et+"*(even|odd|(([+-]|)(\\d*)n|)"+et+"*(?:([+-]|)"+et+"*(\\d+)|))"+et+"*\\)|)","i"),bool:new RegExp("^(?:"+tt+")$","i"),needsContext:new RegExp("^"+et+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+et+"*((?:-\\d)?\\d*)"+et+"*\\)|)(?=[^-]|$)","i")},ht=/HTML$/i,dt=/^(?:input|select|textarea|button)$/i,yt=/^h\d$/i,gt=/^[^{]+\{\s*\[native \w/,mt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,vt=/[+~]/,bt=new RegExp("\\\\([\\da-f]{1,6}"+et+"?|("+et+")|.)","ig"),wt=function(t,e,n){var r="0x"+e-65536;return r!==r||n?e:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},xt=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,Et=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},kt=function(){R()},Ct=p(function(t){return!0===t.disabled&&"fieldset"===t.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{$.apply(Q=G.call(U.childNodes),U.childNodes),Q[U.childNodes.length].nodeType}catch(t){$={apply:Q.length?function(t,e){J.apply(t,G.call(e))}:function(t,e){for(var n=t.length,r=0;t[n++]=e[r++];);t.length=n-1}}}w=e.support={},k=e.isXML=function(t){var e=t.namespaceURI,n=(t.ownerDocument||t).documentElement;return!ht.test(e||n&&n.nodeName||"HTML")},R=e.setDocument=function(t){var e,n,r=t?t.ownerDocument||t:U;return r!==N&&9===r.nodeType&&r.documentElement?(N=r,I=N.documentElement,P=!k(N),U!==N&&(n=N.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",kt,!1):n.attachEvent&&n.attachEvent("onunload",kt)),w.attributes=o(function(t){return t.className="i",!t.getAttribute("className")}),w.getElementsByTagName=o(function(t){return t.appendChild(N.createComment("")),!t.getElementsByTagName("*").length}),w.getElementsByClassName=gt.test(N.getElementsByClassName),w.getById=o(function(t){return I.appendChild(t).id=_,!N.getElementsByName||!N.getElementsByName(_).length}),w.getById?(x.filter.ID=function(t){var e=t.replace(bt,wt);return function(t){return t.getAttribute("id")===e}},x.find.ID=function(t,e){if(void 0!==e.getElementById&&P){var n=e.getElementById(t);return n?[n]:[]}}):(x.filter.ID=function(t){var e=t.replace(bt,wt);return function(t){var n=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}},x.find.ID=function(t,e){if(void 0!==e.getElementById&&P){var n,r,o,i=e.getElementById(t);if(i){if((n=i.getAttributeNode("id"))&&n.value===t)return[i];for(o=e.getElementsByName(t),r=0;i=o[r++];)if((n=i.getAttributeNode("id"))&&n.value===t)return[i]}return[]}}),x.find.TAG=w.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):w.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,r=[],o=0,i=e.getElementsByTagName(t);if("*"===t){for(;n=i[o++];)1===n.nodeType&&r.push(n);return r}return i},x.find.CLASS=w.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&P)return e.getElementsByClassName(t)},O=[],L=[],(w.qsa=gt.test(N.querySelectorAll))&&(o(function(t){I.appendChild(t).innerHTML="<a id='"+_+"'></a><select id='"+_+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&L.push("[*^$]="+et+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||L.push("\\["+et+"*(?:value|"+tt+")"),t.querySelectorAll("[id~="+_+"-]").length||L.push("~="),t.querySelectorAll(":checked").length||L.push(":checked"),t.querySelectorAll("a#"+_+"+*").length||L.push(".#.+[+~]")}),o(function(t){t.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var e=N.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&L.push("name"+et+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&L.push(":enabled",":disabled"),I.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&L.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),L.push(",.*:")})),(w.matchesSelector=gt.test(j=I.matches||I.webkitMatchesSelector||I.mozMatchesSelector||I.oMatchesSelector||I.msMatchesSelector))&&o(function(t){w.disconnectedMatch=j.call(t,"*"),j.call(t,"[s!='']:x"),O.push("!=",ot)}),L=L.length&&new RegExp(L.join("|")),O=O.length&&new RegExp(O.join("|")),e=gt.test(I.compareDocumentPosition),q=e||gt.test(I.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,r=e&&e.parentNode;return t===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):t.compareDocumentPosition&&16&t.compareDocumentPosition(r)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},X=e?function(t,e){if(t===e)return D=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(n=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1,1&n||!w.sortDetached&&e.compareDocumentPosition(t)===n?t===N||t.ownerDocument===U&&q(U,t)?-1:e===N||e.ownerDocument===U&&q(U,e)?1:B?Z(B,t)-Z(B,e):0:4&n?-1:1)}:function(t,e){if(t===e)return D=!0,0;var n,r=0,o=t.parentNode,i=e.parentNode,a=[t],u=[e];if(!o||!i)return t===N?-1:e===N?1:o?-1:i?1:B?Z(B,t)-Z(B,e):0;if(o===i)return s(t,e);for(n=t;n=n.parentNode;)a.unshift(n);for(n=e;n=n.parentNode;)u.unshift(n);for(;a[r]===u[r];)r++;return r?s(a[r],u[r]):a[r]===U?-1:u[r]===U?1:0},N):N},e.matches=function(t,n){return e(t,null,null,n)},e.matchesSelector=function(t,n){if((t.ownerDocument||t)!==N&&R(t),w.matchesSelector&&P&&!z[n+" "]&&(!O||!O.test(n))&&(!L||!L.test(n)))try{var r=j.call(t,n);if(r||w.disconnectedMatch||t.document&&11!==t.document.nodeType)return r}catch(t){z(n,!0)}return e(n,N,null,[t]).length>0},e.contains=function(t,e){return(t.ownerDocument||t)!==N&&R(t),q(t,e)},e.attr=function(t,e){(t.ownerDocument||t)!==N&&R(t);var n=x.attrHandle[e.toLowerCase()],r=n&&V.call(x.attrHandle,e.toLowerCase())?n(t,e,!P):void 0;return void 0!==r?r:w.attributes||!P?t.getAttribute(e):(r=t.getAttributeNode(e))&&r.specified?r.value:null},e.escape=function(t){return(t+"").replace(xt,Et)},e.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},e.uniqueSort=function(t){var e,n=[],r=0,o=0;if(D=!w.detectDuplicates,B=!w.sortStable&&t.slice(0),t.sort(X),D){for(;e=t[o++];)e===t[o]&&(r=n.push(o));for(;r--;)t.splice(n[r],1)}return B=null,t},E=e.getText=function(t){var e,n="",r=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)n+=E(t)}else if(3===o||4===o)return t.nodeValue}else for(;e=t[r++];)n+=E(e);return n},x=e.selectors={cacheLength:50,createPseudo:r,match:pt,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(bt,wt),t[3]=(t[3]||t[4]||t[5]||"").replace(bt,wt),"~="===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]||e.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]&&e.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return pt.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&lt.test(n)&&(e=C(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(bt,wt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=Y[t+" "];return e||(e=new RegExp("(^|"+et+")"+t+"("+et+"|$)"))&&Y(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,n,r){return function(o){var i=e.attr(o,t);return null==i?"!="===n:!n||(i+="","="===n?i===r:"!="===n?i!==r:"^="===n?r&&0===i.indexOf(r):"*="===n?r&&i.indexOf(r)>-1:"$="===n?r&&i.slice(-r.length)===r:"~="===n?(" "+i.replace(it," ")+" ").indexOf(r)>-1:"|="===n&&(i===r||i.slice(0,r.length+1)===r+"-"))}},CHILD:function(t,e,n,r,o){var i="nth"!==t.slice(0,3),s="last"!==t.slice(-4),a="of-type"===e;return 1===r&&0===o?function(t){return!!t.parentNode}:function(e,n,u){var c,l,f,p,h,d,y=i!==s?"nextSibling":"previousSibling",g=e.parentNode,m=a&&e.nodeName.toLowerCase(),v=!u&&!a,b=!1;if(g){if(i){for(;y;){for(p=e;p=p[y];)if(a?p.nodeName.toLowerCase()===m:1===p.nodeType)return!1;d=y="only"===t&&!d&&"nextSibling"}return!0}if(d=[s?g.firstChild:g.lastChild],s&&v){for(p=g,f=p[_]||(p[_]={}),l=f[p.uniqueID]||(f[p.uniqueID]={}),c=l[t]||[],h=c[0]===M&&c[1],b=h&&c[2],p=h&&g.childNodes[h];p=++h&&p&&p[y]||(b=h=0)||d.pop();)if(1===p.nodeType&&++b&&p===e){l[t]=[M,h,b];break}}else if(v&&(p=e,f=p[_]||(p[_]={}),l=f[p.uniqueID]||(f[p.uniqueID]={}),c=l[t]||[],h=c[0]===M&&c[1],b=h),!1===b)for(;(p=++h&&p&&p[y]||(b=h=0)||d.pop())&&((a?p.nodeName.toLowerCase()!==m:1!==p.nodeType)||!++b||(v&&(f=p[_]||(p[_]={}),l=f[p.uniqueID]||(f[p.uniqueID]={}),l[t]=[M,b]),p!==e)););return(b-=o)===r||b%r==0&&b/r>=0}}},PSEUDO:function(t,n){var o,i=x.pseudos[t]||x.setFilters[t.toLowerCase()]||e.error("unsupported pseudo: "+t);return i[_]?i(n):i.length>1?(o=[t,t,"",n],x.setFilters.hasOwnProperty(t.toLowerCase())?r(function(t,e){for(var r,o=i(t,n),s=o.length;s--;)r=Z(t,o[s]),t[r]=!(e[r]=o[s])}):function(t){return i(t,0,o)}):i}},pseudos:{not:r(function(t){var e=[],n=[],o=T(t.replace(st,"$1"));return o[_]?r(function(t,e,n,r){for(var i,s=o(t,null,r,[]),a=t.length;a--;)(i=s[a])&&(t[a]=!(e[a]=i))}):function(t,r,i){return e[0]=t,o(e,null,i,n),e[0]=null,!n.pop()}}),has:r(function(t){return function(n){return e(t,n).length>0}}),contains:r(function(t){return t=t.replace(bt,wt),function(e){return(e.textContent||E(e)).indexOf(t)>-1}}),lang:r(function(t){return ft.test(t||"")||e.error("unsupported lang: "+t),t=t.replace(bt,wt).toLowerCase(),function(e){var n;do{if(n=P?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===I},focus:function(t){return t===N.activeElement&&(!N.hasFocus||N.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:a(!1),disabled:a(!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!x.pseudos.empty(t)},header:function(t){return yt.test(t.nodeName)},input:function(t){return dt.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:u(function(){return[0]}),last:u(function(t,e){return[e-1]}),eq:u(function(t,e,n){return[n<0?n+e:n]}),even:u(function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t}),odd:u(function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t}),lt:u(function(t,e,n){for(var r=n<0?n+e:n>e?e:n;--r>=0;)t.push(r);return t}),gt:u(function(t,e,n){for(var r=n<0?n+e:n;++r<e;)t.push(r);return t})}},x.pseudos.nth=x.pseudos.eq;for(b in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})x.pseudos[b]=function(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}(b);for(b in{submit:!0,reset:!0})x.pseudos[b]=function(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}(b);return l.prototype=x.filters=x.pseudos,x.setFilters=new l,C=e.tokenize=function(t,n){var r,o,i,s,a,u,c,l=F[t+" "];if(l)return n?0:l.slice(0);for(a=t,u=[],c=x.preFilter;a;){r&&!(o=at.exec(a))||(o&&(a=a.slice(o[0].length)||a),u.push(i=[])),r=!1,(o=ut.exec(a))&&(r=o.shift(),i.push({value:r,type:o[0].replace(st," ")}),a=a.slice(r.length));for(s in x.filter)!(o=pt[s].exec(a))||c[s]&&!(o=c[s](o))||(r=o.shift(),i.push({value:r,type:s,matches:o}),a=a.slice(r.length));if(!r)break}return n?a.length:a?e.error(t):F(t,u).slice(0)},T=e.compile=function(t,e){var n,r=[],o=[],i=W[t+" "];if(!i){for(e||(e=C(t)),n=e.length;n--;)i=m(e[n]),i[_]?r.push(i):o.push(i);i=W(t,v(o,r)),i.selector=t}return i},A=e.select=function(t,e,n,r){var o,i,s,a,u,l="function"==typeof t&&t,p=!r&&C(t=l.selector||t);if(n=n||[],1===p.length){if(i=p[0]=p[0].slice(0),i.length>2&&"ID"===(s=i[0]).type&&9===e.nodeType&&P&&x.relative[i[1].type]){if(!(e=(x.find.ID(s.matches[0].replace(bt,wt),e)||[])[0]))return n;l&&(e=e.parentNode),t=t.slice(i.shift().value.length)}for(o=pt.needsContext.test(t)?0:i.length;o--&&(s=i[o],!x.relative[a=s.type]);)if((u=x.find[a])&&(r=u(s.matches[0].replace(bt,wt),vt.test(i[0].type)&&c(e.parentNode)||e))){if(i.splice(o,1),!(t=r.length&&f(i)))return $.apply(n,r),n;break}}return(l||T(t,p))(r,e,!P,n,!e||vt.test(t)&&c(e.parentNode)||e),n},w.sortStable=_.split("").sort(X).join("")===_,w.detectDuplicates=!!D,R(),w.sortDetached=o(function(t){return 1&t.compareDocumentPosition(N.createElement("fieldset"))}),o(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||i("type|href|height|width",function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),w.attributes&&o(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||i("value",function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),o(function(t){return null==t.getAttribute("disabled")})||i(tt,function(t,e,n){var r;if(!n)return!0===t[e]?e.toLowerCase():(r=t.getAttributeNode(e))&&r.specified?r.value:null}),e}(n);St.find=Dt,St.expr=Dt.selectors,St.expr[":"]=St.expr.pseudos,St.uniqueSort=St.unique=Dt.uniqueSort,St.text=Dt.getText,St.isXMLDoc=Dt.isXML,St.contains=Dt.contains,St.escapeSelector=Dt.escape;var Rt=function(t,e,n){for(var r=[],o=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(o&&St(t).is(n))break;r.push(t)}return r},Nt=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},It=St.expr.match.needsContext,Pt=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;St.filter=function(t,e,n){var r=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===r.nodeType?St.find.matchesSelector(r,t)?[r]:[]:St.find.matches(t,St.grep(e,function(t){return 1===t.nodeType}))},St.fn.extend({find:function(t){var e,n,r=this.length,o=this;if("string"!=typeof t)return this.pushStack(St(t).filter(function(){for(e=0;e<r;e++)if(St.contains(o[e],this))return!0}));for(n=this.pushStack([]),e=0;e<r;e++)St.find(t,o[e],n);return r>1?St.uniqueSort(n):n},filter:function(t){return this.pushStack(l(this,t||[],!1))},not:function(t){return this.pushStack(l(this,t||[],!0))},is:function(t){return!!l(this,"string"==typeof t&&It.test(t)?St(t):t||[],!1).length}});var Lt,Ot=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(St.fn.init=function(t,e,n){var r,o;if(!t)return this;if(n=n||Lt,"string"==typeof t){if(!(r="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:Ot.exec(t))||!r[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(r[1]){if(e=e instanceof St?e[0]:e,St.merge(this,St.parseHTML(r[1],e&&e.nodeType?e.ownerDocument||e:pt,!0)),Pt.test(r[1])&&St.isPlainObject(e))for(r in e)Ct(this[r])?this[r](e[r]):this.attr(r,e[r]);return this}return o=pt.getElementById(r[2]),o&&(this[0]=o,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):Ct(t)?void 0!==n.ready?n.ready(t):t(St):St.makeArray(t,this)}).prototype=St.fn,Lt=St(pt);var jt=/^(?:parents|prev(?:Until|All))/,qt={children:!0,contents:!0,next:!0,prev:!0};St.fn.extend({has:function(t){var e=St(t,this),n=e.length;return this.filter(function(){for(var t=0;t<n;t++)if(St.contains(this,e[t]))return!0})},closest:function(t,e){var n,r=0,o=this.length,i=[],s="string"!=typeof t&&St(t);if(!It.test(t))for(;r<o;r++)for(n=this[r];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(s?s.index(n)>-1:1===n.nodeType&&St.find.matchesSelector(n,t))){i.push(n);break}return this.pushStack(i.length>1?St.uniqueSort(i):i)},index:function(t){return t?"string"==typeof t?mt.call(St(t),this[0]):mt.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(St.uniqueSort(St.merge(this.get(),St(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),St.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return Rt(t,"parentNode")},parentsUntil:function(t,e,n){return Rt(t,"parentNode",n)},next:function(t){return f(t,"nextSibling")},prev:function(t){return f(t,"previousSibling")},nextAll:function(t){return Rt(t,"nextSibling")},prevAll:function(t){return Rt(t,"previousSibling")},nextUntil:function(t,e,n){return Rt(t,"nextSibling",n)},prevUntil:function(t,e,n){return Rt(t,"previousSibling",n)},siblings:function(t){return Nt((t.parentNode||{}).firstChild,t)},children:function(t){return Nt(t.firstChild)},contents:function(t){return void 0!==t.contentDocument?t.contentDocument:(c(t,"template")&&(t=t.content||t),St.merge([],t.childNodes))}},function(t,e){St.fn[t]=function(n,r){var o=St.map(this,e,n);return"Until"!==t.slice(-5)&&(r=n),r&&"string"==typeof r&&(o=St.filter(r,o)),this.length>1&&(qt[t]||St.uniqueSort(o),jt.test(t)&&o.reverse()),this.pushStack(o)}});var _t=/[^\x20\t\r\n\f]+/g;St.Callbacks=function(t){t="string"==typeof t?p(t):St.extend({},t);var e,n,r,o,i=[],s=[],u=-1,c=function(){for(o=o||t.once,r=e=!0;s.length;u=-1)for(n=s.shift();++u<i.length;)!1===i[u].apply(n[0],n[1])&&t.stopOnFalse&&(u=i.length,n=!1);t.memory||(n=!1),e=!1,o&&(i=n?[]:"")},l={add:function(){return i&&(n&&!e&&(u=i.length-1,s.push(n)),function e(n){St.each(n,function(n,r){Ct(r)?t.unique&&l.has(r)||i.push(r):r&&r.length&&"string"!==a(r)&&e(r)})}(arguments),n&&!e&&c()),this},remove:function(){return St.each(arguments,function(t,e){for(var n;(n=St.inArray(e,i,n))>-1;)i.splice(n,1),n<=u&&u--}),this},has:function(t){return t?St.inArray(t,i)>-1:i.length>0},empty:function(){return i&&(i=[]),this},disable:function(){return o=s=[],i=n="",this},disabled:function(){return!i},lock:function(){return o=s=[],n||e||(i=n=""),this},locked:function(){return!!o},fireWith:function(t,n){return o||(n=n||[],n=[t,n.slice?n.slice():n],s.push(n),e||c()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!r}};return l},St.extend({Deferred:function(t){var e=[["notify","progress",St.Callbacks("memory"),St.Callbacks("memory"),2],["resolve","done",St.Callbacks("once memory"),St.Callbacks("once memory"),0,"resolved"],["reject","fail",St.Callbacks("once memory"),St.Callbacks("once memory"),1,"rejected"]],r="pending",o={state:function(){return r},always:function(){return i.done(arguments).fail(arguments),this},catch:function(t){return o.then(null,t)},pipe:function(){var t=arguments;return St.Deferred(function(n){St.each(e,function(e,r){var o=Ct(t[r[4]])&&t[r[4]];i[r[1]](function(){var t=o&&o.apply(this,arguments);t&&Ct(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,o?[t]:arguments)})}),t=null}).promise()},then:function(t,r,o){function i(t,e,r,o){return function(){var a=this,u=arguments,c=function(){var n,c;if(!(t<s)){if((n=r.apply(a,u))===e.promise())throw new TypeError("Thenable self-resolution");c=n&&("object"==typeof n||"function"==typeof n)&&n.then,Ct(c)?o?c.call(n,i(s,e,h,o),i(s,e,d,o)):(s++,c.call(n,i(s,e,h,o),i(s,e,d,o),i(s,e,h,e.notifyWith))):(r!==h&&(a=void 0,u=[n]),(o||e.resolveWith)(a,u))}},l=o?c:function(){try{c()}catch(n){St.Deferred.exceptionHook&&St.Deferred.exceptionHook(n,l.stackTrace),t+1>=s&&(r!==d&&(a=void 0,u=[n]),e.rejectWith(a,u))}};t?l():(St.Deferred.getStackHook&&(l.stackTrace=St.Deferred.getStackHook()),n.setTimeout(l))}}var s=0;return St.Deferred(function(n){e[0][3].add(i(0,n,Ct(o)?o:h,n.notifyWith)),e[1][3].add(i(0,n,Ct(t)?t:h)),e[2][3].add(i(0,n,Ct(r)?r:d))}).promise()},promise:function(t){return null!=t?St.extend(t,o):o}},i={};return St.each(e,function(t,n){var s=n[2],a=n[5];o[n[1]]=s.add,a&&s.add(function(){r=a},e[3-t][2].disable,e[3-t][3].disable,e[0][2].lock,e[0][3].lock),s.add(n[3].fire),i[n[0]]=function(){return i[n[0]+"With"](this===i?void 0:this,arguments),this},i[n[0]+"With"]=s.fireWith}),o.promise(i),t&&t.call(i,i),i},when:function(t){var e=arguments.length,n=e,r=Array(n),o=dt.call(arguments),i=St.Deferred(),s=function(t){return function(n){r[t]=this,o[t]=arguments.length>1?dt.call(arguments):n,--e||i.resolveWith(r,o)}};if(e<=1&&(y(t,i.done(s(n)).resolve,i.reject,!e),"pending"===i.state()||Ct(o[n]&&o[n].then)))return i.then();for(;n--;)y(o[n],s(n),i.reject);return i.promise()}});var Ut=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;St.Deferred.exceptionHook=function(t,e){n.console&&n.console.warn&&t&&Ut.test(t.name)&&n.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},St.readyException=function(t){n.setTimeout(function(){throw t})};var Mt=St.Deferred();St.fn.ready=function(t){return Mt.then(t).catch(function(t){St.readyException(t)}),this},St.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--St.readyWait:St.isReady)||(St.isReady=!0,!0!==t&&--St.readyWait>0||Mt.resolveWith(pt,[St]))}}),St.ready.then=Mt.then,"complete"===pt.readyState||"loading"!==pt.readyState&&!pt.documentElement.doScroll?n.setTimeout(St.ready):(pt.addEventListener("DOMContentLoaded",g),n.addEventListener("load",g));var Ht=function(t,e,n,r,o,i,s){var u=0,c=t.length,l=null==n;if("object"===a(n)){o=!0;for(u in n)Ht(t,e,u,n[u],!0,i,s)}else if(void 0!==r&&(o=!0,Ct(r)||(s=!0),l&&(s?(e.call(t,r),e=null):(l=e,e=function(t,e,n){return l.call(St(t),n)})),e))for(;u<c;u++)e(t[u],n,s?r:r.call(t[u],u,e(t[u],n)));return o?t:l?e.call(t):c?e(t[0],n):i},Yt=/^-ms-/,Ft=/-([a-z])/g,Wt=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};b.uid=1,b.prototype={cache:function(t){var e=t[this.expando];return e||(e={},Wt(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,n){var r,o=this.cache(t);if("string"==typeof e)o[v(e)]=n;else for(r in e)o[v(r)]=e[r];return o},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][v(e)]},access:function(t,e,n){return void 0===e||e&&"string"==typeof e&&void 0===n?this.get(t,e):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,r=t[this.expando];if(void 0!==r){if(void 0!==e){Array.isArray(e)?e=e.map(v):(e=v(e),e=e in r?[e]:e.match(_t)||[]),n=e.length;for(;n--;)delete r[e[n]]}(void 0===e||St.isEmptyObject(r))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!St.isEmptyObject(e)}};var zt=new b,Xt=new b,Vt=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Qt=/[A-Z]/g;St.extend({hasData:function(t){return Xt.hasData(t)||zt.hasData(t)},data:function(t,e,n){return Xt.access(t,e,n)},removeData:function(t,e){Xt.remove(t,e)},_data:function(t,e,n){return zt.access(t,e,n)},_removeData:function(t,e){zt.remove(t,e)}}),St.fn.extend({data:function(t,e){var n,r,o,i=this[0],s=i&&i.attributes;if(void 0===t){if(this.length&&(o=Xt.get(i),1===i.nodeType&&!zt.get(i,"hasDataAttrs"))){for(n=s.length;n--;)s[n]&&(r=s[n].name,0===r.indexOf("data-")&&(r=v(r.slice(5)),x(i,r,o[r])));zt.set(i,"hasDataAttrs",!0)}return o}return"object"==typeof t?this.each(function(){Xt.set(this,t)}):Ht(this,function(e){var n;if(i&&void 0===e){if(void 0!==(n=Xt.get(i,t)))return n;if(void 0!==(n=x(i,t)))return n}else this.each(function(){Xt.set(this,t,e)})},null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each(function(){Xt.remove(this,t)})}}),St.extend({queue:function(t,e,n){var r;if(t)return e=(e||"fx")+"queue",r=zt.get(t,e),n&&(!r||Array.isArray(n)?r=zt.access(t,e,St.makeArray(n)):r.push(n)),r||[]},dequeue:function(t,e){e=e||"fx";var n=St.queue(t,e),r=n.length,o=n.shift(),i=St._queueHooks(t,e),s=function(){St.dequeue(t,e)};"inprogress"===o&&(o=n.shift(),r--),o&&("fx"===e&&n.unshift("inprogress"),delete i.stop,o.call(t,s,i)),!r&&i&&i.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return zt.get(t,n)||zt.access(t,n,{empty:St.Callbacks("once memory").add(function(){zt.remove(t,[e+"queue",n])})})}}),St.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?St.queue(this[0],t):void 0===e?this:this.each(function(){var n=St.queue(this,t,e);St._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&St.dequeue(this,t)})},dequeue:function(t){return this.each(function(){St.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,r=1,o=St.Deferred(),i=this,s=this.length,a=function(){--r||o.resolveWith(i,[i])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";s--;)(n=zt.get(i[s],t+"queueHooks"))&&n.empty&&(r++,n.empty.add(a));return a(),o.promise(e)}});var Kt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Jt=new RegExp("^(?:([+-])=|)("+Kt+")([a-z%]*)$","i"),$t=["Top","Right","Bottom","Left"],Gt=pt.documentElement,Zt=function(t){return St.contains(t.ownerDocument,t)},te={composed:!0};Gt.getRootNode&&(Zt=function(t){return St.contains(t.ownerDocument,t)||t.getRootNode(te)===t.ownerDocument});var ee=function(t,e){return t=e||t,"none"===t.style.display||""===t.style.display&&Zt(t)&&"none"===St.css(t,"display")},ne=function(t,e,n,r){var o,i,s={};for(i in e)s[i]=t.style[i],t.style[i]=e[i];o=n.apply(t,r||[]);for(i in e)t.style[i]=s[i];return o},re={};St.fn.extend({show:function(){return C(this,!0)},hide:function(){return C(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){ee(this)?St(this).show():St(this).hide()})}});var oe=/^(?:checkbox|radio)$/i,ie=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,se=/^$|^module$|\/(?:java|ecma)script/i,ae={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};ae.optgroup=ae.option,ae.tbody=ae.tfoot=ae.colgroup=ae.caption=ae.thead,ae.th=ae.td;var ue=/<|&#?\w+;/;!function(){var t=pt.createDocumentFragment(),e=t.appendChild(pt.createElement("div")),n=pt.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),e.appendChild(n),kt.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="<textarea>x</textarea>",kt.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue}();var ce=/^key/,le=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,fe=/^([^.]*)(?:\.(.+)|)/;St.event={global:{},add:function(t,e,n,r,o){var i,s,a,u,c,l,f,p,h,d,y,g=zt.get(t);if(g)for(n.handler&&(i=n,n=i.handler,o=i.selector),o&&St.find.matchesSelector(Gt,o),n.guid||(n.guid=St.guid++),(u=g.events)||(u=g.events={}),(s=g.handle)||(s=g.handle=function(e){return void 0!==St&&St.event.triggered!==e.type?St.event.dispatch.apply(t,arguments):void 0}),e=(e||"").match(_t)||[""],c=e.length;c--;)a=fe.exec(e[c])||[],h=y=a[1],d=(a[2]||"").split(".").sort(),h&&(f=St.event.special[h]||{},h=(o?f.delegateType:f.bindType)||h,f=St.event.special[h]||{},l=St.extend({type:h,origType:y,data:r,handler:n,guid:n.guid,selector:o,needsContext:o&&St.expr.match.needsContext.test(o),namespace:d.join(".")},i),(p=u[h])||(p=u[h]=[],p.delegateCount=0,f.setup&&!1!==f.setup.call(t,r,d,s)||t.addEventListener&&t.addEventListener(h,s)),f.add&&(f.add.call(t,l),l.handler.guid||(l.handler.guid=n.guid)),o?p.splice(p.delegateCount++,0,l):p.push(l),St.event.global[h]=!0)},remove:function(t,e,n,r,o){var i,s,a,u,c,l,f,p,h,d,y,g=zt.hasData(t)&&zt.get(t);if(g&&(u=g.events)){for(e=(e||"").match(_t)||[""],c=e.length;c--;)if(a=fe.exec(e[c])||[],h=y=a[1],d=(a[2]||"").split(".").sort(),h){for(f=St.event.special[h]||{},h=(r?f.delegateType:f.bindType)||h,p=u[h]||[],a=a[2]&&new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=i=p.length;i--;)l=p[i],!o&&y!==l.origType||n&&n.guid!==l.guid||a&&!a.test(l.namespace)||r&&r!==l.selector&&("**"!==r||!l.selector)||(p.splice(i,1),l.selector&&p.delegateCount--,f.remove&&f.remove.call(t,l));s&&!p.length&&(f.teardown&&!1!==f.teardown.call(t,d,g.handle)||St.removeEvent(t,h,g.handle),delete u[h])}else for(h in u)St.event.remove(t,h+e[c],n,r,!0);St.isEmptyObject(u)&&zt.remove(t,"handle events")}},dispatch:function(t){var e,n,r,o,i,s,a=St.event.fix(t),u=new Array(arguments.length),c=(zt.get(this,"events")||{})[a.type]||[],l=St.event.special[a.type]||{};for(u[0]=a,e=1;e<arguments.length;e++)u[e]=arguments[e];if(a.delegateTarget=this,!l.preDispatch||!1!==l.preDispatch.call(this,a)){for(s=St.event.handlers.call(this,a,c),e=0;(o=s[e++])&&!a.isPropagationStopped();)for(a.currentTarget=o.elem,n=0;(i=o.handlers[n++])&&!a.isImmediatePropagationStopped();)a.rnamespace&&!1!==i.namespace&&!a.rnamespace.test(i.namespace)||(a.handleObj=i,a.data=i.data,void 0!==(r=((St.event.special[i.origType]||{}).handle||i.handler).apply(o.elem,u))&&!1===(a.result=r)&&(a.preventDefault(),a.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,a),a.result}},handlers:function(t,e){var n,r,o,i,s,a=[],u=e.delegateCount,c=t.target;if(u&&c.nodeType&&!("click"===t.type&&t.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==t.type||!0!==c.disabled)){for(i=[],s={},n=0;n<u;n++)r=e[n],o=r.selector+" ",void 0===s[o]&&(s[o]=r.needsContext?St(o,this).index(c)>-1:St.find(o,this,null,[c]).length),s[o]&&i.push(r);i.length&&a.push({elem:c,handlers:i})}return c=this,u<e.length&&a.push({elem:c,handlers:e.slice(u)}),a},addProp:function(t,e){Object.defineProperty(St.Event.prototype,t,{enumerable:!0,configurable:!0,get:Ct(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(t){return t[St.expando]?t:new St.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){var e=this||t;return oe.test(e.type)&&e.click&&c(e,"input")&&P(e,"click",B),!1},trigger:function(t){var e=this||t;return oe.test(e.type)&&e.click&&c(e,"input")&&P(e,"click"),!0},_default:function(t){var e=t.target;return oe.test(e.type)&&e.click&&c(e,"input")&&zt.get(e,"click")||c(e,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},St.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},St.Event=function(t,e){if(!(this instanceof St.Event))return new St.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?B:D,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&St.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[St.expando]=!0},St.Event.prototype={constructor:St.Event,isDefaultPrevented:D,isPropagationStopped:D,isImmediatePropagationStopped:D,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=B,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=B,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=B,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},St.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(t){var e=t.button;return null==t.which&&ce.test(t.type)?null!=t.charCode?t.charCode:t.keyCode:!t.which&&void 0!==e&&le.test(t.type)?1&e?1:2&e?3:4&e?2:0:t.which}},St.event.addProp),St.each({focus:"focusin",blur:"focusout"},function(t,e){St.event.special[t]={setup:function(){return P(this,t,R),!1},trigger:function(){return P(this,t),!0},delegateType:e}}),St.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,e){St.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,r=this,o=t.relatedTarget,i=t.handleObj;return o&&(o===r||St.contains(r,o))||(t.type=i.origType,n=i.handler.apply(this,arguments),t.type=e),n}}}),St.fn.extend({on:function(t,e,n,r){return I(this,t,e,n,r)},one:function(t,e,n,r){return I(this,t,e,n,r,1)},off:function(t,e,n){var r,o;if(t&&t.preventDefault&&t.handleObj)return r=t.handleObj,St(t.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof t){for(o in t)this.off(o,e,t[o]);return this}return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=D),this.each(function(){St.event.remove(this,t,n,e)})}});var pe=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,he=/<script|<style|<link/i,de=/checked\s*(?:[^=]|=\s*.checked.)/i,ye=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;St.extend({htmlPrefilter:function(t){return t.replace(pe,"<$1></$2>")},clone:function(t,e,n){var r,o,i,s,a=t.cloneNode(!0),u=Zt(t);if(!(kt.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||St.isXMLDoc(t)))for(s=T(a),i=T(t),r=0,o=i.length;r<o;r++)_(i[r],s[r]);if(e)if(n)for(i=i||T(t),s=s||T(a),r=0,o=i.length;r<o;r++)q(i[r],s[r]);else q(t,a);return s=T(a,"script"),s.length>0&&A(s,!u&&T(t,"script")),a},cleanData:function(t){for(var e,n,r,o=St.event.special,i=0;void 0!==(n=t[i]);i++)if(Wt(n)){if(e=n[zt.expando]){if(e.events)for(r in e.events)o[r]?St.event.remove(n,r):St.removeEvent(n,r,e.handle);n[zt.expando]=void 0}n[Xt.expando]&&(n[Xt.expando]=void 0)}}}),St.fn.extend({detach:function(t){return M(this,t,!0)},remove:function(t){return M(this,t)},text:function(t){return Ht(this,function(t){return void 0===t?St.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 U(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){L(this,t).appendChild(t)}})},prepend:function(){return U(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=L(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return U(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return U(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&&(St.cleanData(T(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return St.clone(this,t,e)})},html:function(t){return Ht(this,function(t){var e=this[0]||{},n=0,r=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!he.test(t)&&!ae[(ie.exec(t)||["",""])[1].toLowerCase()]){t=St.htmlPrefilter(t);try{for(;n<r;n++)e=this[n]||{},1===e.nodeType&&(St.cleanData(T(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=[];return U(this,arguments,function(e){var n=this.parentNode;St.inArray(this,t)<0&&(St.cleanData(T(this)),n&&n.replaceChild(e,this))},t)}}),St.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){St.fn[t]=function(t){for(var n,r=[],o=St(t),i=o.length-1,s=0;s<=i;s++)n=s===i?this:this.clone(!0),St(o[s])[e](n),gt.apply(r,n.get());return this.pushStack(r)}});var ge=new RegExp("^("+Kt+")(?!px)[a-z%]+$","i"),me=function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=n),e.getComputedStyle(t)},ve=new RegExp($t.join("|"),"i");!function(){function t(){if(c){u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",c.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",Gt.appendChild(u).appendChild(c);var t=n.getComputedStyle(c);r="1%"!==t.top,a=12===e(t.marginLeft),c.style.right="60%",s=36===e(t.right),o=36===e(t.width),c.style.position="absolute",i=12===e(c.offsetWidth/3),Gt.removeChild(u),c=null}}function e(t){return Math.round(parseFloat(t))}var r,o,i,s,a,u=pt.createElement("div"),c=pt.createElement("div");c.style&&(c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",kt.clearCloneStyle="content-box"===c.style.backgroundClip,St.extend(kt,{boxSizingReliable:function(){return t(),o},pixelBoxStyles:function(){return t(),s},pixelPosition:function(){return t(),r},reliableMarginLeft:function(){return t(),a},scrollboxSize:function(){return t(),i}}))}();var be=["Webkit","Moz","ms"],we=pt.createElement("div").style,xe={},Ee=/^(none|table(?!-c[ea]).+)/,ke=/^--/,Ce={position:"absolute",visibility:"hidden",display:"block"},Te={letterSpacing:"0",fontWeight:"400"};St.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=H(t,"opacity");return""===n?"1":n}}}},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,n,r){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var o,i,s,a=v(e),u=ke.test(e),c=t.style;if(u||(e=W(a)),s=St.cssHooks[e]||St.cssHooks[a],void 0===n)return s&&"get"in s&&void 0!==(o=s.get(t,!1,r))?o:c[e];i=typeof n,"string"===i&&(o=Jt.exec(n))&&o[1]&&(n=E(t,e,o),i="number"),null!=n&&n===n&&("number"!==i||u||(n+=o&&o[3]||(St.cssNumber[a]?"":"px")),kt.clearCloneStyle||""!==n||0!==e.indexOf("background")||(c[e]="inherit"),s&&"set"in s&&void 0===(n=s.set(t,n,r))||(u?c.setProperty(e,n):c[e]=n))}},css:function(t,e,n,r){var o,i,s,a=v(e);return ke.test(e)||(e=W(a)),s=St.cssHooks[e]||St.cssHooks[a],s&&"get"in s&&(o=s.get(t,!0,n)),void 0===o&&(o=H(t,e,r)),"normal"===o&&e in Te&&(o=Te[e]),""===n||n?(i=parseFloat(o),!0===n||isFinite(i)?i||0:o):o}}),St.each(["height","width"],function(t,e){St.cssHooks[e]={get:function(t,n,r){if(n)return!Ee.test(St.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?V(t,e,r):ne(t,Ce,function(){return V(t,e,r)})},set:function(t,n,r){var o,i=me(t),s=!kt.scrollboxSize()&&"absolute"===i.position,a=s||r,u=a&&"border-box"===St.css(t,"boxSizing",!1,i),c=r?X(t,e,r,u,i):0;return u&&s&&(c-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(i[e])-X(t,e,"border",!1,i)-.5)),c&&(o=Jt.exec(n))&&"px"!==(o[3]||"px")&&(t.style[e]=n,n=St.css(t,e)),z(t,n,c)}}}),St.cssHooks.marginLeft=Y(kt.reliableMarginLeft,function(t,e){if(e)return(parseFloat(H(t,"marginLeft"))||t.getBoundingClientRect().left-ne(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px"}),St.each({margin:"",padding:"",border:"Width"},function(t,e){St.cssHooks[t+e]={expand:function(n){for(var r=0,o={},i="string"==typeof n?n.split(" "):[n];r<4;r++)o[t+$t[r]+e]=i[r]||i[r-2]||i[0];return o}},"margin"!==t&&(St.cssHooks[t+e].set=z)}),St.fn.extend({css:function(t,e){return Ht(this,function(t,e,n){var r,o,i={},s=0;if(Array.isArray(e)){for(r=me(t),o=e.length;s<o;s++)i[e[s]]=St.css(t,e[s],!1,r);return i}return void 0!==n?St.style(t,e,n):St.css(t,e)},t,e,arguments.length>1)}}),St.Tween=Q,Q.prototype={constructor:Q,init:function(t,e,n,r,o,i){this.elem=t,this.prop=n,this.easing=o||St.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=r,this.unit=i||(St.cssNumber[n]?"":"px")},cur:function(){var t=Q.propHooks[this.prop];return t&&t.get?t.get(this):Q.propHooks._default.get(this)},run:function(t){var e,n=Q.propHooks[this.prop];return this.options.duration?this.pos=e=St.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),n&&n.set?n.set(this):Q.propHooks._default.set(this),this}},Q.prototype.init.prototype=Q.prototype,Q.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=St.css(t.elem,t.prop,""),e&&"auto"!==e?e:0)},set:function(t){St.fx.step[t.prop]?St.fx.step[t.prop](t):1!==t.elem.nodeType||!St.cssHooks[t.prop]&&null==t.elem.style[W(t.prop)]?t.elem[t.prop]=t.now:St.style(t.elem,t.prop,t.now+t.unit)}}},Q.propHooks.scrollTop=Q.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},St.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},St.fx=Q.prototype.init,St.fx.step={};var Ae,Se,Be=/^(?:toggle|show|hide)$/,De=/queueHooks$/;St.Animation=St.extend(et,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return E(n.elem,t,Jt.exec(e),n),n}]},tweener:function(t,e){Ct(t)?(e=t,t=["*"]):t=t.match(_t);for(var n,r=0,o=t.length;r<o;r++)n=t[r],et.tweeners[n]=et.tweeners[n]||[],et.tweeners[n].unshift(e)},prefilters:[Z],prefilter:function(t,e){e?et.prefilters.unshift(t):et.prefilters.push(t)}}),St.speed=function(t,e,n){var r=t&&"object"==typeof t?St.extend({},t):{complete:n||!n&&e||Ct(t)&&t,duration:t,easing:n&&e||e&&!Ct(e)&&e};return St.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in St.fx.speeds?r.duration=St.fx.speeds[r.duration]:r.duration=St.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){Ct(r.old)&&r.old.call(this),r.queue&&St.dequeue(this,r.queue)},r},St.fn.extend({fadeTo:function(t,e,n,r){return this.filter(ee).css("opacity",0).show().end().animate({opacity:e},t,n,r)},animate:function(t,e,n,r){var o=St.isEmptyObject(t),i=St.speed(e,n,r),s=function(){var e=et(this,St.extend({},t),i);(o||zt.get(this,"finish"))&&e.stop(!0)};return s.finish=s,o||!1===i.queue?this.each(s):this.queue(i.queue,s)},stop:function(t,e,n){var r=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!=typeof t&&(n=e,e=t,t=void 0),e&&!1!==t&&this.queue(t||"fx",[]),this.each(function(){var e=!0,o=null!=t&&t+"queueHooks",i=St.timers,s=zt.get(this);if(o)s[o]&&s[o].stop&&r(s[o]);else for(o in s)s[o]&&s[o].stop&&De.test(o)&&r(s[o]);for(o=i.length;o--;)i[o].elem!==this||null!=t&&i[o].queue!==t||(i[o].anim.stop(n),e=!1,i.splice(o,1));!e&&n||St.dequeue(this,t)})},finish:function(t){return!1!==t&&(t=t||"fx"),this.each(function(){var e,n=zt.get(this),r=n[t+"queue"],o=n[t+"queueHooks"],i=St.timers,s=r?r.length:0;for(n.finish=!0,St.queue(this,t,[]),o&&o.stop&&o.stop.call(this,!0),e=i.length;e--;)i[e].elem===this&&i[e].queue===t&&(i[e].anim.stop(!0),i.splice(e,1));for(e=0;e<s;e++)r[e]&&r[e].finish&&r[e].finish.call(this);delete n.finish})}}),St.each(["toggle","show","hide"],function(t,e){var n=St.fn[e];St.fn[e]=function(t,r,o){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate($(e,!0),t,r,o)}}),St.each({slideDown:$("show"),slideUp:$("hide"),slideToggle:$("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){St.fn[t]=function(t,n,r){return this.animate(e,t,n,r)}}),St.timers=[],St.fx.tick=function(){var t,e=0,n=St.timers;for(Ae=Date.now();e<n.length;e++)(t=n[e])()||n[e]!==t||n.splice(e--,1);n.length||St.fx.stop(),Ae=void 0},St.fx.timer=function(t){St.timers.push(t),St.fx.start()},St.fx.interval=13,St.fx.start=function(){Se||(Se=!0,K())},St.fx.stop=function(){Se=null},St.fx.speeds={slow:600,fast:200,_default:400},St.fn.delay=function(t,e){return t=St.fx?St.fx.speeds[t]||t:t,e=e||"fx",this.queue(e,function(e,r){var o=n.setTimeout(e,t);r.stop=function(){n.clearTimeout(o)}})},function(){var t=pt.createElement("input"),e=pt.createElement("select"),n=e.appendChild(pt.createElement("option"));t.type="checkbox",kt.checkOn=""!==t.value,kt.optSelected=n.selected,t=pt.createElement("input"),t.value="t",t.type="radio",kt.radioValue="t"===t.value}();var Re,Ne=St.expr.attrHandle;St.fn.extend({attr:function(t,e){return Ht(this,St.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){St.removeAttr(this,t)})}}),St.extend({attr:function(t,e,n){var r,o,i=t.nodeType;if(3!==i&&8!==i&&2!==i)return void 0===t.getAttribute?St.prop(t,e,n):(1===i&&St.isXMLDoc(t)||(o=St.attrHooks[e.toLowerCase()]||(St.expr.match.bool.test(e)?Re:void 0)),void 0!==n?null===n?void St.removeAttr(t,e):o&&"set"in o&&void 0!==(r=o.set(t,n,e))?r:(t.setAttribute(e,n+""),n):o&&"get"in o&&null!==(r=o.get(t,e))?r:(r=St.find.attr(t,e),null==r?void 0:r))},attrHooks:{type:{set:function(t,e){if(!kt.radioValue&&"radio"===e&&c(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,r=0,o=e&&e.match(_t);if(o&&1===t.nodeType)for(;n=o[r++];)t.removeAttribute(n)}}),Re={set:function(t,e,n){return!1===e?St.removeAttr(t,n):t.setAttribute(n,n),n}},St.each(St.expr.match.bool.source.match(/\w+/g),function(t,e){var n=Ne[e]||St.find.attr;Ne[e]=function(t,e,r){var o,i,s=e.toLowerCase();return r||(i=Ne[s],Ne[s]=o,o=null!=n(t,e,r)?s:null,Ne[s]=i),o}});var Ie=/^(?:input|select|textarea|button)$/i,Pe=/^(?:a|area)$/i;St.fn.extend({prop:function(t,e){return Ht(this,St.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[St.propFix[t]||t]})}}),St.extend({prop:function(t,e,n){var r,o,i=t.nodeType;if(3!==i&&8!==i&&2!==i)return 1===i&&St.isXMLDoc(t)||(e=St.propFix[e]||e,o=St.propHooks[e]),void 0!==n?o&&"set"in o&&void 0!==(r=o.set(t,n,e))?r:t[e]=n:o&&"get"in o&&null!==(r=o.get(t,e))?r:t[e]},propHooks:{tabIndex:{get:function(t){var e=St.find.attr(t,"tabindex");return e?parseInt(e,10):Ie.test(t.nodeName)||Pe.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),kt.optSelected||(St.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)}}),St.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){St.propFix[this.toLowerCase()]=this}),St.fn.extend({addClass:function(t){var e,n,r,o,i,s,a,u=0;if(Ct(t))return this.each(function(e){St(this).addClass(t.call(this,e,rt(this)))});if(e=ot(t),e.length)for(;n=this[u++];)if(o=rt(n),r=1===n.nodeType&&" "+nt(o)+" "){for(s=0;i=e[s++];)r.indexOf(" "+i+" ")<0&&(r+=i+" ");a=nt(r),o!==a&&n.setAttribute("class",a)}return this},removeClass:function(t){var e,n,r,o,i,s,a,u=0;if(Ct(t))return this.each(function(e){St(this).removeClass(t.call(this,e,rt(this)))});if(!arguments.length)return this.attr("class","");if(e=ot(t),e.length)for(;n=this[u++];)if(o=rt(n),r=1===n.nodeType&&" "+nt(o)+" "){for(s=0;i=e[s++];)for(;r.indexOf(" "+i+" ")>-1;)r=r.replace(" "+i+" "," ");a=nt(r),o!==a&&n.setAttribute("class",a)}return this},toggleClass:function(t,e){var n=typeof t,r="string"===n||Array.isArray(t);return"boolean"==typeof e&&r?e?this.addClass(t):this.removeClass(t):Ct(t)?this.each(function(n){St(this).toggleClass(t.call(this,n,rt(this),e),e)}):this.each(function(){var e,o,i,s;if(r)for(o=0,i=St(this),s=ot(t);e=s[o++];)i.hasClass(e)?i.removeClass(e):i.addClass(e);else void 0!==t&&"boolean"!==n||(e=rt(this),e&&zt.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===t?"":zt.get(this,"__className__")||""))})},hasClass:function(t){var e,n,r=0;for(e=" "+t+" ";n=this[r++];)if(1===n.nodeType&&(" "+nt(rt(n))+" ").indexOf(e)>-1)return!0;return!1}});var Le=/\r/g;St.fn.extend({val:function(t){var e,n,r,o=this[0];{if(arguments.length)return r=Ct(t),this.each(function(n){var o;1===this.nodeType&&(o=r?t.call(this,n,St(this).val()):t,null==o?o="":"number"==typeof o?o+="":Array.isArray(o)&&(o=St.map(o,function(t){return null==t?"":t+""})),(e=St.valHooks[this.type]||St.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,o,"value")||(this.value=o))});if(o)return(e=St.valHooks[o.type]||St.valHooks[o.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(o,"value"))?n:(n=o.value,"string"==typeof n?n.replace(Le,""):null==n?"":n)}}}),St.extend({valHooks:{option:{get:function(t){var e=St.find.attr(t,"value");return null!=e?e:nt(St.text(t))}},select:{get:function(t){var e,n,r,o=t.options,i=t.selectedIndex,s="select-one"===t.type,a=s?null:[],u=s?i+1:o.length;for(r=i<0?u:s?i:0;r<u;r++)if(n=o[r],(n.selected||r===i)&&!n.disabled&&(!n.parentNode.disabled||!c(n.parentNode,"optgroup"))){if(e=St(n).val(),s)return e;a.push(e)}return a},set:function(t,e){for(var n,r,o=t.options,i=St.makeArray(e),s=o.length;s--;)r=o[s],(r.selected=St.inArray(St.valHooks.option.get(r),i)>-1)&&(n=!0);return n||(t.selectedIndex=-1),i}}}}),St.each(["radio","checkbox"],function(){St.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=St.inArray(St(t).val(),e)>-1}},kt.checkOn||(St.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}),kt.focusin="onfocusin"in n;var Oe=/^(?:focusinfocus|focusoutblur)$/,je=function(t){t.stopPropagation()};St.extend(St.event,{trigger:function(t,e,r,o){var i,s,a,u,c,l,f,p,h=[r||pt],d=wt.call(t,"type")?t.type:t,y=wt.call(t,"namespace")?t.namespace.split("."):[];if(s=p=a=r=r||pt,3!==r.nodeType&&8!==r.nodeType&&!Oe.test(d+St.event.triggered)&&(d.indexOf(".")>-1&&(y=d.split("."),d=y.shift(),y.sort()),c=d.indexOf(":")<0&&"on"+d,t=t[St.expando]?t:new St.Event(d,"object"==typeof t&&t),t.isTrigger=o?2:3,t.namespace=y.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+y.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),e=null==e?[t]:St.makeArray(e,[t]),f=St.event.special[d]||{},o||!f.trigger||!1!==f.trigger.apply(r,e))){if(!o&&!f.noBubble&&!Tt(r)){for(u=f.delegateType||d,Oe.test(u+d)||(s=s.parentNode);s;s=s.parentNode)h.push(s),a=s;a===(r.ownerDocument||pt)&&h.push(a.defaultView||a.parentWindow||n)}for(i=0;(s=h[i++])&&!t.isPropagationStopped();)p=s,t.type=i>1?u:f.bindType||d,l=(zt.get(s,"events")||{})[t.type]&&zt.get(s,"handle"),l&&l.apply(s,e),(l=c&&s[c])&&l.apply&&Wt(s)&&(t.result=l.apply(s,e),!1===t.result&&t.preventDefault());return t.type=d,o||t.isDefaultPrevented()||f._default&&!1!==f._default.apply(h.pop(),e)||!Wt(r)||c&&Ct(r[d])&&!Tt(r)&&(a=r[c],a&&(r[c]=null),St.event.triggered=d,t.isPropagationStopped()&&p.addEventListener(d,je),r[d](),t.isPropagationStopped()&&p.removeEventListener(d,je),St.event.triggered=void 0,a&&(r[c]=a)),t.result}},simulate:function(t,e,n){var r=St.extend(new St.Event,n,{type:t,isSimulated:!0});St.event.trigger(r,null,e)}}),St.fn.extend({trigger:function(t,e){return this.each(function(){St.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];if(n)return St.event.trigger(t,e,n,!0)}}),kt.focusin||St.each({focus:"focusin",blur:"focusout"},function(t,e){var n=function(t){St.event.simulate(e,t.target,St.event.fix(t))};St.event.special[e]={setup:function(){var r=this.ownerDocument||this,o=zt.access(r,e);o||r.addEventListener(t,n,!0),zt.access(r,e,(o||0)+1)},teardown:function(){var r=this.ownerDocument||this,o=zt.access(r,e)-1;o?zt.access(r,e,o):(r.removeEventListener(t,n,!0),zt.remove(r,e))}}});var qe=n.location,_e=Date.now(),Ue=/\?/;St.parseXML=function(t){var e;if(!t||"string"!=typeof t)return null;try{e=(new n.DOMParser).parseFromString(t,"text/xml")}catch(t){e=void 0}return e&&!e.getElementsByTagName("parsererror").length||St.error("Invalid XML: "+t),e};var Me=/\[\]$/,He=/\r?\n/g,Ye=/^(?:submit|button|image|reset|file)$/i,Fe=/^(?:input|select|textarea|keygen)/i;St.param=function(t,e){var n,r=[],o=function(t,e){var n=Ct(e)?e():e;r[r.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==n?"":n)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!St.isPlainObject(t))St.each(t,function(){o(this.name,this.value)});else for(n in t)it(n,t[n],e,o);return r.join("&")},St.fn.extend({serialize:function(){return St.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=St.prop(this,"elements");return t?St.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!St(this).is(":disabled")&&Fe.test(this.nodeName)&&!Ye.test(t)&&(this.checked||!oe.test(t))}).map(function(t,e){var n=St(this).val();return null==n?null:Array.isArray(n)?St.map(n,function(t){return{name:e.name,value:t.replace(He,"\r\n")}}):{name:e.name,value:n.replace(He,"\r\n")}}).get()}});var We=/%20/g,ze=/#.*$/,Xe=/([?&])_=[^&]*/,Ve=/^(.*?):[ \t]*([^\r\n]*)$/gm,Qe=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Ke=/^(?:GET|HEAD)$/,Je=/^\/\//,$e={},Ge={},Ze="*/".concat("*"),tn=pt.createElement("a");tn.href=qe.href,St.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:qe.href,type:"GET",isLocal:Qe.test(qe.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ze,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":St.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?ut(ut(t,St.ajaxSettings),e):ut(St.ajaxSettings,t)},ajaxPrefilter:st($e),ajaxTransport:st(Ge),ajax:function(t,e){function r(t,e,r,a){var c,p,h,w,x,E=e;l||(l=!0,u&&n.clearTimeout(u),o=void 0,s=a||"",k.readyState=t>0?4:0,c=t>=200&&t<300||304===t,r&&(w=ct(d,k,r)),w=lt(d,w,k,c),c?(d.ifModified&&(x=k.getResponseHeader("Last-Modified"),x&&(St.lastModified[i]=x),(x=k.getResponseHeader("etag"))&&(St.etag[i]=x)),204===t||"HEAD"===d.type?E="nocontent":304===t?E="notmodified":(E=w.state,p=w.data,h=w.error,c=!h)):(h=E,!t&&E||(E="error",t<0&&(t=0))),k.status=t,k.statusText=(e||E)+"",c?m.resolveWith(y,[p,E,k]):m.rejectWith(y,[k,E,h]),k.statusCode(b),b=void 0,f&&g.trigger(c?"ajaxSuccess":"ajaxError",[k,d,c?p:h]),v.fireWith(y,[k,E]),f&&(g.trigger("ajaxComplete",[k,d]),--St.active||St.event.trigger("ajaxStop")))}"object"==typeof t&&(e=t,t=void 0),e=e||{};var o,i,s,a,u,c,l,f,p,h,d=St.ajaxSetup({},e),y=d.context||d,g=d.context&&(y.nodeType||y.jquery)?St(y):St.event,m=St.Deferred(),v=St.Callbacks("once memory"),b=d.statusCode||{},w={},x={},E="canceled",k={readyState:0,getResponseHeader:function(t){var e;if(l){if(!a)for(a={};e=Ve.exec(s);)a[e[1].toLowerCase()+" "]=(a[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=a[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return l?s:null},setRequestHeader:function(t,e){return null==l&&(t=x[t.toLowerCase()]=x[t.toLowerCase()]||t,w[t]=e),this},overrideMimeType:function(t){return null==l&&(d.mimeType=t),this},statusCode:function(t){var e;if(t)if(l)k.always(t[k.status]);else for(e in t)b[e]=[b[e],t[e]];return this},abort:function(t){var e=t||E;return o&&o.abort(e),r(0,e),this}};if(m.promise(k),d.url=((t||d.url||qe.href)+"").replace(Je,qe.protocol+"//"),d.type=e.method||e.type||d.method||d.type,d.dataTypes=(d.dataType||"*").toLowerCase().match(_t)||[""],null==d.crossDomain){c=pt.createElement("a");try{c.href=d.url,c.href=c.href,d.crossDomain=tn.protocol+"//"+tn.host!=c.protocol+"//"+c.host}catch(t){d.crossDomain=!0}}if(d.data&&d.processData&&"string"!=typeof d.data&&(d.data=St.param(d.data,d.traditional)),at($e,d,e,k),l)return k;f=St.event&&d.global,f&&0==St.active++&&St.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!Ke.test(d.type),i=d.url.replace(ze,""),d.hasContent?d.data&&d.processData&&0===(d.contentType||"").indexOf("application/x-www-form-urlencoded")&&(d.data=d.data.replace(We,"+")):(h=d.url.slice(i.length),d.data&&(d.processData||"string"==typeof d.data)&&(i+=(Ue.test(i)?"&":"?")+d.data,delete d.data),!1===d.cache&&(i=i.replace(Xe,"$1"),h=(Ue.test(i)?"&":"?")+"_="+_e+++h),d.url=i+h),d.ifModified&&(St.lastModified[i]&&k.setRequestHeader("If-Modified-Since",St.lastModified[i]),St.etag[i]&&k.setRequestHeader("If-None-Match",St.etag[i])),(d.data&&d.hasContent&&!1!==d.contentType||e.contentType)&&k.setRequestHeader("Content-Type",d.contentType),k.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+Ze+"; q=0.01":""):d.accepts["*"]);for(p in d.headers)k.setRequestHeader(p,d.headers[p]);if(d.beforeSend&&(!1===d.beforeSend.call(y,k,d)||l))return k.abort();if(E="abort",v.add(d.complete),k.done(d.success),k.fail(d.error),o=at(Ge,d,e,k)){if(k.readyState=1,f&&g.trigger("ajaxSend",[k,d]),l)return k;d.async&&d.timeout>0&&(u=n.setTimeout(function(){k.abort("timeout")},d.timeout));try{l=!1,o.send(w,r)}catch(t){if(l)throw t;r(-1,t)}}else r(-1,"No Transport");return k},getJSON:function(t,e,n){return St.get(t,e,n,"json")},getScript:function(t,e){return St.get(t,void 0,e,"script")}}),St.each(["get","post"],function(t,e){St[e]=function(t,n,r,o){return Ct(n)&&(o=o||r,r=n,n=void 0),St.ajax(St.extend({url:t,type:e,dataType:o,data:n,success:r},St.isPlainObject(t)&&t))}}),St._evalUrl=function(t,e){return St.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){St.globalEval(t,e)}})},St.fn.extend({wrapAll:function(t){var e;return this[0]&&(Ct(t)&&(t=t.call(this[0])),e=St(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 Ct(t)?this.each(function(e){St(this).wrapInner(t.call(this,e))}):this.each(function(){var e=St(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)})},wrap:function(t){var e=Ct(t);return this.each(function(n){St(this).wrapAll(e?t.call(this,n):t)})},unwrap:function(t){return this.parent(t).not("body").each(function(){St(this).replaceWith(this.childNodes)}),this}}),St.expr.pseudos.hidden=function(t){return!St.expr.pseudos.visible(t)},St.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},St.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(t){}};var en={0:200,1223:204},nn=St.ajaxSettings.xhr();kt.cors=!!nn&&"withCredentials"in nn,kt.ajax=nn=!!nn,St.ajaxTransport(function(t){var e,r;if(kt.cors||nn&&!t.crossDomain)return{send:function(o,i){var s,a=t.xhr();if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(s in t.xhrFields)a[s]=t.xhrFields[s];t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||o["X-Requested-With"]||(o["X-Requested-With"]="XMLHttpRequest");for(s in o)a.setRequestHeader(s,o[s]);e=function(t){return function(){e&&(e=r=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,"abort"===t?a.abort():"error"===t?"number"!=typeof a.status?i(0,"error"):i(a.status,a.statusText):i(en[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=e(),r=a.onerror=a.ontimeout=e("error"),void 0!==a.onabort?a.onabort=r:a.onreadystatechange=function(){4===a.readyState&&n.setTimeout(function(){e&&r()})},e=e("abort");try{a.send(t.hasContent&&t.data||null)}catch(t){if(e)throw t}},abort:function(){e&&e()}}}),St.ajaxPrefilter(function(t){t.crossDomain&&(t.contents.script=!1)}),St.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 St.globalEval(t),t}}}),St.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),St.ajaxTransport("script",function(t){if(t.crossDomain||t.scriptAttrs){var e,n;return{send:function(r,o){e=St("<script>").attr(t.scriptAttrs||{}).prop({charset:t.scriptCharset,src:t.url}).on("load error",n=function(t){e.remove(),n=null,t&&o("error"===t.type?404:200,t.type)}),pt.head.appendChild(e[0])},abort:function(){n&&n()}}}});var rn=[],on=/(=)\?(?=&|$)|\?\?/;St.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=rn.pop()||St.expando+"_"+_e++;return this[t]=!0,t}}),St.ajaxPrefilter("json jsonp",function(t,e,r){var o,i,s,a=!1!==t.jsonp&&(on.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&on.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return o=t.jsonpCallback=Ct(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(on,"$1"+o):!1!==t.jsonp&&(t.url+=(Ue.test(t.url)?"&":"?")+t.jsonp+"="+o),t.converters["script json"]=function(){return s||St.error(o+" was not called"),s[0]},t.dataTypes[0]="json",i=n[o],n[o]=function(){s=arguments},r.always(function(){void 0===i?St(n).removeProp(o):n[o]=i,t[o]&&(t.jsonpCallback=e.jsonpCallback,rn.push(o)),s&&Ct(i)&&i(s[0]),s=i=void 0}),"script"}),kt.createHTMLDocument=function(){var t=pt.implementation.createHTMLDocument("").body;return t.innerHTML="<form></form><form></form>",2===t.childNodes.length}(),St.parseHTML=function(t,e,n){if("string"!=typeof t)return[];"boolean"==typeof e&&(n=e,e=!1);var r,o,i;return e||(kt.createHTMLDocument?(e=pt.implementation.createHTMLDocument(""),r=e.createElement("base"),r.href=pt.location.href,e.head.appendChild(r)):e=pt),o=Pt.exec(t),i=!n&&[],o?[e.createElement(o[1])]:(o=S([t],e,i),i&&i.length&&St(i).remove(),St.merge([],o.childNodes))},St.fn.load=function(t,e,n){var r,o,i,s=this,a=t.indexOf(" ");return a>-1&&(r=nt(t.slice(a)),t=t.slice(0,a)),Ct(e)?(n=e,e=void 0):e&&"object"==typeof e&&(o="POST"),s.length>0&&St.ajax({url:t,type:o||"GET",dataType:"html",data:e}).done(function(t){i=arguments,s.html(r?St("<div>").append(St.parseHTML(t)).find(r):t)}).always(n&&function(t,e){s.each(function(){n.apply(this,i||[t.responseText,e,t])})}),this},St.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){St.fn[e]=function(t){return this.on(e,t)}}),St.expr.pseudos.animated=function(t){return St.grep(St.timers,function(e){return t===e.elem}).length},St.offset={setOffset:function(t,e,n){var r,o,i,s,a,u,c,l=St.css(t,"position"),f=St(t),p={};"static"===l&&(t.style.position="relative"),a=f.offset(),i=St.css(t,"top"),u=St.css(t,"left"),c=("absolute"===l||"fixed"===l)&&(i+u).indexOf("auto")>-1,c?(r=f.position(),s=r.top,o=r.left):(s=parseFloat(i)||0,o=parseFloat(u)||0),Ct(e)&&(e=e.call(t,n,St.extend({},a))),null!=e.top&&(p.top=e.top-a.top+s),null!=e.left&&(p.left=e.left-a.left+o),"using"in e?e.using.call(t,p):f.css(p)}},St.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){St.offset.setOffset(this,t,e)});var e,n,r=this[0];if(r)return r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var t,e,n,r=this[0],o={top:0,left:0};if("fixed"===St.css(r,"position"))e=r.getBoundingClientRect();else{for(e=this.offset(),n=r.ownerDocument,t=r.offsetParent||n.documentElement;t&&(t===n.body||t===n.documentElement)&&"static"===St.css(t,"position");)t=t.parentNode;t&&t!==r&&1===t.nodeType&&(o=St(t).offset(),o.top+=St.css(t,"borderTopWidth",!0),o.left+=St.css(t,"borderLeftWidth",!0))}return{top:e.top-o.top-St.css(r,"marginTop",!0),left:e.left-o.left-St.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===St.css(t,"position");)t=t.offsetParent;return t||Gt})}}),St.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,e){var n="pageYOffset"===e;St.fn[t]=function(r){return Ht(this,function(t,r,o){var i;if(Tt(t)?i=t:9===t.nodeType&&(i=t.defaultView),void 0===o)return i?i[e]:t[r];i?i.scrollTo(n?i.pageXOffset:o,n?o:i.pageYOffset):t[r]=o},t,r,arguments.length)}}),St.each(["top","left"],function(t,e){St.cssHooks[e]=Y(kt.pixelPosition,function(t,n){if(n)return n=H(t,e),ge.test(n)?St(t).position()[e]+"px":n})}),St.each({Height:"height",Width:"width"},function(t,e){St.each({padding:"inner"+t,content:e,"":"outer"+t},function(n,r){St.fn[r]=function(o,i){var s=arguments.length&&(n||"boolean"!=typeof o),a=n||(!0===o||!0===i?"margin":"border");return Ht(this,function(e,n,o){var i;return Tt(e)?0===r.indexOf("outer")?e["inner"+t]:e.document.documentElement["client"+t]:9===e.nodeType?(i=e.documentElement,Math.max(e.body["scroll"+t],i["scroll"+t],e.body["offset"+t],i["offset"+t],i["client"+t])):void 0===o?St.css(e,n,a):St.style(e,n,o,a)},e,s?o:void 0,s)}})}),St.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(t,e){St.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}),St.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),St.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,r){return this.on(e,t,n,r)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)}}),St.proxy=function(t,e){var n,r,o;if("string"==typeof e&&(n=t[e],e=t,t=n),Ct(t))return r=dt.call(arguments,2),o=function(){return t.apply(e||this,r.concat(dt.call(arguments)))},o.guid=t.guid=t.guid||St.guid++,o},St.holdReady=function(t){t?St.readyWait++:St.ready(!0)},St.isArray=Array.isArray,St.parseJSON=JSON.parse,St.nodeName=c,St.isFunction=Ct,St.isWindow=Tt,St.camelCase=v,St.type=a,St.now=Date.now,St.isNumeric=function(t){var e=St.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},r=[],void 0!==(o=function(){return St}.apply(e,r))&&(t.exports=o);var sn=n.jQuery,an=n.$;return St.noConflict=function(t){return n.$===St&&(n.$=an),t&&n.jQuery===St&&(n.jQuery=sn),St},i||(n.jQuery=n.$=St),St})},function(t,e){var n=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,r=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];t.exports=function(t){var e=t,o=t.indexOf("["),i=t.indexOf("]");-1!=o&&-1!=i&&(t=t.substring(0,o)+t.substring(o,i).replace(/:/g,";")+t.substring(i,t.length));for(var s=n.exec(t||""),a={},u=14;u--;)a[r[u]]=s[u]||"";return-1!=o&&-1!=i&&(a.source=e,a.host=a.host.substring(1,a.host.length-1).replace(/;/g,":"),a.authority=a.authority.replace("[","").replace("]","").replace(/;/g,":"),a.ipv6uri=!0),a}},function(t,e,n){(function(e){function n(t){return r&&e.isBuffer(t)||o&&(t instanceof ArrayBuffer||i(t))}t.exports=n;var r="function"==typeof e&&"function"==typeof e.isBuffer,o="function"==typeof ArrayBuffer,i=function(t){return"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer}}).call(e,n(7).Buffer)},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){function r(t,e){if(!(this instanceof r))return new r(t,e);t&&"object"==typeof t&&(e=t,t=void 0),e=e||{},e.path=e.path||"/socket.io",this.nsps={},this.subs=[],this.opts=e,this.reconnection(!1!==e.reconnection),this.reconnectionAttempts(e.reconnectionAttempts||1/0),this.reconnectionDelay(e.reconnectionDelay||1e3),this.reconnectionDelayMax(e.reconnectionDelayMax||5e3),this.randomizationFactor(e.randomizationFactor||.5),this.backoff=new p({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==e.timeout?2e4:e.timeout),this.readyState="closed",this.uri=t,this.connecting=[],this.lastPing=null,this.encoding=!1,this.packetBuffer=[];var n=e.parser||a;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this.autoConnect=!1!==e.autoConnect,this.autoConnect&&this.open()}var o=n(32),i=n(20),s=n(1),a=n(6),u=n(21),c=n(22),l=n(0)("socket.io-client:manager"),f=n(19),p=n(46),h=Object.prototype.hasOwnProperty;t.exports=r,r.prototype.emitAll=function(){this.emit.apply(this,arguments);for(var t in this.nsps)h.call(this.nsps,t)&&this.nsps[t].emit.apply(this.nsps[t],arguments)},r.prototype.updateSocketIds=function(){for(var t in this.nsps)h.call(this.nsps,t)&&(this.nsps[t].id=this.generateId(t))},r.prototype.generateId=function(t){return("/"===t?"":t+"#")+this.engine.id},s(r.prototype),r.prototype.reconnection=function(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection},r.prototype.reconnectionAttempts=function(t){return arguments.length?(this._reconnectionAttempts=t,this):this._reconnectionAttempts},r.prototype.reconnectionDelay=function(t){return arguments.length?(this._reconnectionDelay=t,this.backoff&&this.backoff.setMin(t),this):this._reconnectionDelay},r.prototype.randomizationFactor=function(t){return arguments.length?(this._randomizationFactor=t,this.backoff&&this.backoff.setJitter(t),this):this._randomizationFactor},r.prototype.reconnectionDelayMax=function(t){return arguments.length?(this._reconnectionDelayMax=t,this.backoff&&this.backoff.setMax(t),this):this._reconnectionDelayMax},r.prototype.timeout=function(t){return arguments.length?(this._timeout=t,this):this._timeout},r.prototype.maybeReconnectOnOpen=function(){!this.reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()},r.prototype.open=r.prototype.connect=function(t,e){if(l("readyState %s",this.readyState),~this.readyState.indexOf("open"))return this;l("opening %s",this.uri),this.engine=o(this.uri,this.opts);var n=this.engine,r=this;this.readyState="opening",this.skipReconnect=!1;var i=u(n,"open",function(){r.onopen(),t&&t()}),s=u(n,"error",function(e){if(l("connect_error"),r.cleanup(),r.readyState="closed",r.emitAll("connect_error",e),t){var n=new Error("Connection error");n.data=e,t(n)}else r.maybeReconnectOnOpen()});if(!1!==this._timeout){var a=this._timeout;l("connect attempt will timeout after %d",a);var c=setTimeout(function(){l("connect attempt timed out after %d",a),i.destroy(),n.close(),n.emit("error","timeout"),r.emitAll("connect_timeout",a)},a);this.subs.push({destroy:function(){clearTimeout(c)}})}return this.subs.push(i),this.subs.push(s),this},r.prototype.onopen=function(){l("open"),this.cleanup(),this.readyState="open",this.emit("open");var t=this.engine;this.subs.push(u(t,"data",c(this,"ondata"))),this.subs.push(u(t,"ping",c(this,"onping"))),this.subs.push(u(t,"pong",c(this,"onpong"))),this.subs.push(u(t,"error",c(this,"onerror"))),this.subs.push(u(t,"close",c(this,"onclose"))),this.subs.push(u(this.decoder,"decoded",c(this,"ondecoded")))},r.prototype.onping=function(){this.lastPing=new Date,this.emitAll("ping")},r.prototype.onpong=function(){this.emitAll("pong",new Date-this.lastPing)},r.prototype.ondata=function(t){this.decoder.add(t)},r.prototype.ondecoded=function(t){this.emit("packet",t)},r.prototype.onerror=function(t){l("error",t),this.emitAll("error",t)},r.prototype.socket=function(t,e){function n(){~f(o.connecting,r)||o.connecting.push(r)}var r=this.nsps[t];if(!r){r=new i(this,t,e),this.nsps[t]=r;var o=this;r.on("connecting",n),r.on("connect",function(){r.id=o.generateId(t)}),this.autoConnect&&n()}return r},r.prototype.destroy=function(t){var e=f(this.connecting,t);~e&&this.connecting.splice(e,1),this.connecting.length||this.close()},r.prototype.packet=function(t){l("writing packet %j",t);var e=this;t.query&&0===t.type&&(t.nsp+="?"+t.query),e.encoding?e.packetBuffer.push(t):(e.encoding=!0,this.encoder.encode(t,function(n){for(var r=0;r<n.length;r++)e.engine.write(n[r],t.options);e.encoding=!1,e.processPacketQueue()}))},r.prototype.processPacketQueue=function(){if(this.packetBuffer.length>0&&!this.encoding){var t=this.packetBuffer.shift();this.packet(t)}},r.prototype.cleanup=function(){l("cleanup");for(var t=this.subs.length,e=0;e<t;e++){this.subs.shift().destroy()}this.packetBuffer=[],this.encoding=!1,this.lastPing=null,this.decoder.destroy()},r.prototype.close=r.prototype.disconnect=function(){l("disconnect"),this.skipReconnect=!0,this.reconnecting=!1,"opening"===this.readyState&&this.cleanup(),this.backoff.reset(),this.readyState="closed",this.engine&&this.engine.close()},r.prototype.onclose=function(t){l("onclose"),this.cleanup(),this.backoff.reset(),this.readyState="closed",this.emit("close",t),this._reconnection&&!this.skipReconnect&&this.reconnect()},r.prototype.reconnect=function(){if(this.reconnecting||this.skipReconnect)return this;var t=this;if(this.backoff.attempts>=this._reconnectionAttempts)l("reconnect failed"),this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1;else{var e=this.backoff.duration();l("will wait %dms before reconnect attempt",e),this.reconnecting=!0;var n=setTimeout(function(){t.skipReconnect||(l("attempting reconnect"),t.emitAll("reconnect_attempt",t.backoff.attempts),t.emitAll("reconnecting",t.backoff.attempts),t.skipReconnect||t.open(function(e){e?(l("reconnect attempt error"),t.reconnecting=!1,t.reconnect(),t.emitAll("reconnect_error",e.data)):(l("reconnect success"),t.onreconnect())}))},e);this.subs.push({destroy:function(){clearTimeout(n)}})}},r.prototype.onreconnect=function(){var t=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.updateSocketIds(),this.emitAll("reconnect",t)}},function(t,e,n){function r(t){var e=!1,n=!1,r=!1!==t.jsonp;if("undefined"!=typeof location){var a="https:"===location.protocol,u=location.port;u||(u=a?443:80),e=t.hostname!==location.hostname||u!==t.port,n=t.secure!==a}if(t.xdomain=e,t.xscheme=n,"open"in new o(t)&&!t.forceJSONP)return new i(t);if(!r)throw new Error("JSONP disabled");return new s(t)}var o=n(8),i=n(35),s=n(42),a=n(43);e.polling=r,e.websocket=a},function(t,e,n){function r(t){var e=t&&t.forceBase64;l&&!e||(this.supportsBinary=!1),o.call(this,t)}var o=n(9),i=n(4),s=n(2),a=n(5),u=n(18),c=n(0)("engine.io-client:polling");t.exports=r;var l=function(){return null!=new(n(8))({xdomain:!1}).responseType}();a(r,o),r.prototype.name="polling",r.prototype.doOpen=function(){this.poll()},r.prototype.pause=function(t){function e(){c("paused"),n.readyState="paused",t()}var n=this;if(this.readyState="pausing",this.polling||!this.writable){var r=0;this.polling&&(c("we are currently polling - waiting to pause"),r++,this.once("pollComplete",function(){c("pre-pause polling complete"),--r||e()})),this.writable||(c("we are currently writing - waiting to pause"),r++,this.once("drain",function(){c("pre-pause writing complete"),--r||e()}))}else e()},r.prototype.poll=function(){c("polling"),this.polling=!0,this.doPoll(),this.emit("poll")},r.prototype.onData=function(t){var e=this;c("polling got data %s",t);var n=function(t,n,r){if("opening"===e.readyState&&e.onOpen(),"close"===t.type)return e.onClose(),!1;e.onPacket(t)};s.decodePayload(t,this.socket.binaryType,n),"closed"!==this.readyState&&(this.polling=!1,this.emit("pollComplete"),"open"===this.readyState?this.poll():c('ignoring poll - transport state "%s"',this.readyState))},r.prototype.doClose=function(){function t(){c("writing close packet"),e.write([{type:"close"}])}var e=this;"open"===this.readyState?(c("transport open - closing"),t()):(c("transport not open - deferring close"),this.once("open",t))},r.prototype.write=function(t){var e=this;this.writable=!1;var n=function(){e.writable=!0,e.emit("drain")};s.encodePayload(t,this.supportsBinary,function(t){e.doWrite(t,n)})},r.prototype.uri=function(){var t=this.query||{},e=this.secure?"https":"http",n="";return!1!==this.timestampRequests&&(t[this.timestampParam]=u()),this.supportsBinary||t.sid||(t.b64=1),t=i.encode(t),this.port&&("https"===e&&443!==Number(this.port)||"http"===e&&80!==Number(this.port))&&(n=":"+this.port),t.length&&(t="?"+t),e+"://"+(-1!==this.hostname.indexOf(":")?"["+this.hostname+"]":this.hostname)+n+this.path+t}},function(t,e,n){(function(e){function r(t){if(!t||"object"!=typeof t)return!1;if(o(t)){for(var n=0,i=t.length;n<i;n++)if(r(t[n]))return!0;return!1}if("function"==typeof e&&e.isBuffer&&e.isBuffer(t)||"function"==typeof ArrayBuffer&&t instanceof ArrayBuffer||s&&t instanceof Blob||a&&t instanceof File)return!0;if(t.toJSON&&"function"==typeof t.toJSON&&1===arguments.length)return r(t.toJSON(),!0);for(var u in t)if(Object.prototype.hasOwnProperty.call(t,u)&&r(t[u]))return!0;return!1}var o=n(3),i=Object.prototype.toString,s="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===i.call(Blob),a="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===i.call(File);t.exports=r}).call(e,n(7).Buffer)},function(t,e,n){"use strict";function r(t){var e="";do{e=a[t%u]+e,t=Math.floor(t/u)}while(t>0);return e}function o(t){var e=0;for(f=0;f<t.length;f++)e=e*u+c[t.charAt(f)];return e}function i(){var t=r(+new Date);return t!==s?(l=0,s=t):t+"."+r(l++)}for(var s,a="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),u=64,c={},l=0,f=0;f<u;f++)c[a[f]]=f;i.encode=r,i.decode=o,t.exports=i},function(t,e){var n=[].indexOf;t.exports=function(t,e){if(n)return t.indexOf(e);for(var r=0;r<t.length;++r)if(t[r]===e)return r;return-1}},function(t,e,n){function r(t,e,n){this.io=t,this.nsp=e,this.json=this,this.ids=0,this.acks={},this.receiveBuffer=[],this.sendBuffer=[],this.connected=!1,this.disconnected=!0,this.flags={},n&&n.query&&(this.query=n.query),this.io.autoConnect&&this.open()}var o=n(6),i=n(1),s=n(45),a=n(21),u=n(22),c=n(0)("socket.io-client:socket"),l=n(4),f=n(17);t.exports=r;var p={connect:1,connect_error:1,connect_timeout:1,connecting:1,disconnect:1,error:1,reconnect:1,reconnect_attempt:1,reconnect_failed:1,reconnect_error:1,reconnecting:1,ping:1,pong:1},h=i.prototype.emit;i(r.prototype),r.prototype.subEvents=function(){if(!this.subs){var t=this.io;this.subs=[a(t,"open",u(this,"onopen")),a(t,"packet",u(this,"onpacket")),a(t,"close",u(this,"onclose"))]}},r.prototype.open=r.prototype.connect=function(){return this.connected?this:(this.subEvents(),this.io.open(),"open"===this.io.readyState&&this.onopen(),this.emit("connecting"),this)},r.prototype.send=function(){var t=s(arguments);return t.unshift("message"),this.emit.apply(this,t),this},r.prototype.emit=function(t){if(p.hasOwnProperty(t))return h.apply(this,arguments),this;var e=s(arguments),n={type:(void 0!==this.flags.binary?this.flags.binary:f(e))?o.BINARY_EVENT:o.EVENT,data:e};return n.options={},n.options.compress=!this.flags||!1!==this.flags.compress,"function"==typeof e[e.length-1]&&(c("emitting packet with ack id %d",this.ids),this.acks[this.ids]=e.pop(),n.id=this.ids++),this.connected?this.packet(n):this.sendBuffer.push(n),this.flags={},this},r.prototype.packet=function(t){t.nsp=this.nsp,this.io.packet(t)},r.prototype.onopen=function(){if(c("transport is open - connecting"),"/"!==this.nsp)if(this.query){var t="object"==typeof this.query?l.encode(this.query):this.query;c("sending connect packet with query %s",t),this.packet({type:o.CONNECT,query:t})}else this.packet({type:o.CONNECT})},r.prototype.onclose=function(t){c("close (%s)",t),this.connected=!1,this.disconnected=!0,delete this.id,this.emit("disconnect",t)},r.prototype.onpacket=function(t){var e=t.nsp===this.nsp,n=t.type===o.ERROR&&"/"===t.nsp;if(e||n)switch(t.type){case o.CONNECT:this.onconnect();break;case o.EVENT:case o.BINARY_EVENT:this.onevent(t);break;case o.ACK:case o.BINARY_ACK:this.onack(t);break;case o.DISCONNECT:this.ondisconnect();break;case o.ERROR:this.emit("error",t.data)}},r.prototype.onevent=function(t){var e=t.data||[];c("emitting event %j",e),null!=t.id&&(c("attaching ack callback to event"),e.push(this.ack(t.id))),this.connected?h.apply(this,e):this.receiveBuffer.push(e)},r.prototype.ack=function(t){var e=this,n=!1;return function(){if(!n){n=!0;var r=s(arguments);c("sending ack %j",r),e.packet({type:f(r)?o.BINARY_ACK:o.ACK,id:t,data:r})}}},r.prototype.onack=function(t){var e=this.acks[t.id];"function"==typeof e?(c("calling ack %s with %j",t.id,t.data),e.apply(this,t.data),delete this.acks[t.id]):c("bad ack %s",t.id)},r.prototype.onconnect=function(){this.connected=!0,this.disconnected=!1,this.emit("connect"),this.emitBuffered()},r.prototype.emitBuffered=function(){var t;for(t=0;t<this.receiveBuffer.length;t++)h.apply(this,this.receiveBuffer[t]);for(this.receiveBuffer=[],t=0;t<this.sendBuffer.length;t++)this.packet(this.sendBuffer[t]);this.sendBuffer=[]},r.prototype.ondisconnect=function(){c("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")},r.prototype.destroy=function(){if(this.subs){for(var t=0;t<this.subs.length;t++)this.subs[t].destroy();this.subs=null}this.io.destroy(this)},r.prototype.close=r.prototype.disconnect=function(){return this.connected&&(c("performing disconnect (%s)",this.nsp),this.packet({type:o.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this},r.prototype.compress=function(t){return this.flags.compress=t,this},r.prototype.binary=function(t){return this.flags.binary=t,this}},function(t,e){function n(t,e,n){return t.on(e,n),{destroy:function(){t.removeListener(e,n)}}}t.exports=n},function(t,e){var n=[].slice;t.exports=function(t,e){if("string"==typeof e&&(e=t[e]),"function"!=typeof e)throw new Error("bind() requires a function");var r=n.call(arguments,2);return function(){return e.apply(t,r.concat(n.call(arguments)))}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e,n,r,o){if(o){var i=window.pageXOffset,s=window.pageYOffset;B.compress(!0).emit("mouseMovement",{x0:t,y0:e,x1:n,y1:r,w:i,h:s,mouseDown:q})}}function i(t,e,n,r,o){if(o){var i=window.pageXOffset,s=window.pageYOffset;B.compress(!0).emit("canvasData",{x0:t,y0:e,x1:n,y1:r,w:i,h:s,mouseDown:q})}}function s(t){q=!0,I.x=t.clientX,I.y=t.clientY,I.w=window.pageXOffset,I.h=window.pageYOffset,B.compress(!0).emit("leftClick",I)}function a(t){q=!1}function u(t){o(I.x,I.y,t.clientX,t.clientY,!0),I.x=t.clientX,I.y=t.clientY,P&&q&&"CANVAS"===t.target.nodeName&&i(I.x,I.y,t.clientX,t.clientY,!0)}function c(){P||B.compress(!0).emit("resize",{windowInnerWidth:window.innerWidth,windowInnerHeight:window.innerHeight,windowOuterWidth:window.outerWidth,windowOuterHeight:window.outerHeight,htmlWidth:(0,w.default)("html").width(),htmlHeight:(0,w.default)("html").height()})}function l(t){C.rvDomElem.moveSupportCursor(parseInt(t.x1,10)+parseInt(t.w,10)-parseInt(window.pageXOffset,10),parseInt(t.y1,10)+parseInt(t.h,10)-parseInt(window.pageYOffset,10))}function f(t,e,n,r){var o=new Touch({identifier:Date.now(),target:n,clientX:t,clientY:e,radiusX:2.5,radiusY:2.5,rotationAngle:10,force:.5}),i=new TouchEvent(r,{cancelable:!0,bubbles:!0,touches:[o],targetTouches:[],changedTouches:[o],shiftKey:!1});n.dispatchEvent(i)}function p(t){if(t.mouseDown&&!P){var e=parseInt(t.x1,10)+parseInt(t.w,10)-parseInt(window.pageXOffset,10),n=parseInt(t.y1,10)+parseInt(t.h,10)-parseInt(window.pageYOffset,10);C.rvDomElem.toggleSupportCursor(!1);var r=document.elementFromPoint(parseInt(e,10),parseInt(n,10));if(C.rvDomElem.toggleSupportCursor(!0),null!==r&&"CANVAS"===r.nodeName){clearTimeout(U);var o=document.createEvent("Event");o.clientX=t.x1,o.clientY=t.y1,U=setTimeout(function(){_=[],M?f(o.clientX,o.clientY,r,"touchend"):(o.initEvent("mouseup",!1,!0),r.dispatchEvent(o))},500),0===_.length?M?f(o.clientX,o.clientY,r,"touchstart"):(o.initEvent("mousedown",!1,!0),r.dispatchEvent(o)):M?f(o.clientX,o.clientY,r,"touchmove"):(o.initEvent("mousemove",!1,!0),r.dispatchEvent(o)),_=[t.x1,t.y1]}}}function h(){P?(B.compress(!0).emit("disconnectSupport",{supportUser_Id:D}),(0,w.default)("html").empty()):B.compress(!0).emit("disconnectClient",{clientId:O}),E.default.eraseCookie("remoteViewCookie"),B.disconnect(),C.rvDomElem.toggleSupportButton(!1),C.rvDomElem.toggleSupportCursor(!1),document.removeEventListener("mousedown",s,{passive:!1}),document.removeEventListener("mouseup",a,{passive:!1}),document.removeEventListener("mouseout",a,{passive:!1}),document.removeEventListener("mousemove",E.default.throttle(u,10),{passive:!1}),document.removeEventListener("touchstart",s,{passive:!1}),document.removeEventListener("touchend",a,{passive:!1}),document.removeEventListener("touchend",a,{passive:!1}),document.removeEventListener("touchmove",E.default.throttle(u,10),{passive:!1}),window.removeEventListener("resize",E.default.throttleLastCall(c,1e3),!0),clearTimeout(j)}function d(t){w.default.isEmptyObject(t)||null===B||P||B.compress(!0).emit("domUpdate",{domUpdate:t})}function y(){P||E.default.setCookie("remoteViewCookie",O,1);var t=P?{query:"supportUser_Id="+D+"&endUserId="+R+"&reconnect="+N}:{query:"clientId="+O+"&documentUrl="+encodeURIComponent(document.URL)+"&redirectClientView="+L};B=(0,v.default)(S,t),document.addEventListener("mousedown",s,{passive:!1}),document.addEventListener("mouseup",a,{passive:!1}),document.addEventListener("mouseout",a,{passive:!1}),document.addEventListener("mousemove",E.default.throttle(u,10),{passive:!1}),document.addEventListener("touchstart",s,{passive:!1}),document.addEventListener("touchend",a,{passive:!1}),document.addEventListener("touchend",a,{passive:!1}),document.addEventListener("touchmove",E.default.throttle(u,10),{passive:!1}),window.addEventListener("resize",E.default.throttleLastCall(c,1e3),!0),P?B.compress(!0).emit("supportConnected",{connected:!0}):j=setInterval(function(){k.rvDomDiff.getDomDiff(!1,function(t){d(t)})},1e3),B.on("mouseMovement",l),P||B.on("canvasData",p),B.on("disconnect",function(){null!==B.id&&"undefined"!==B.id&&void 0!==B.id&&(h(),alert("Support Session Ended"),clearTimeout(j))}),B.on("supportConnected",function(t){P||c()}),B.on("leftClick",function(t){C.rvDomElem.toggleSupportCursor(!1);var e=parseInt(t.x,10)+parseInt(t.w,10)-parseInt(window.pageXOffset,10),n=parseInt(t.y,10)+parseInt(t.h,10)-parseInt(window.pageYOffset,10),r=document.elementFromPoint(parseInt(e,10),parseInt(n,10));null!==r&&(P||(M?"CANVAS"!==r.nodeName&&r.click():r.click()),r.focus()),C.rvDomElem.toggleSupportCursor(!0),C.rvDomElem.tiltSupportCursor()}),B.on("resize",function(t){(0,w.default)("html").css("width",t.windowInnerWidth+"px"),(0,w.default)("html").css("height",t.windowInnerHeight+"px")}),B.on("domUpdate",k.rvDomDiff.domUpdate)}function g(t){P?(h(),C.rvDomElem.removeSupportButton(),C.rvDomElem.removeSupportCursor()):C.rvDomElem.supportButtonActive()?(h(),C.rvDomElem.toggleSupportButton(!1)):(y(),C.rvDomElem.toggleSupportButton(!0))}var m=n(24),v=r(m),b=n(10),w=r(b),x=n(47),E=r(x),k=n(48),C=n(49),T="http://nate.sytes.net:3001",A="http://nate.sytes.net:3000",S=A,B=null,D="",R="",N="false",I={},P=!1,L=!1,O=E.default.uniqueId(),j=null,q=!1,_=[],U=null,M=E.default.detectMobile();!function(){document.addEventListener("DOMContentLoaded",function(){if(D=E.default.getUrlParameter("supportUser_Id"),R=E.default.getUrlParameter("endUser_Id"),N=E.default.getUrlParameter("reconnect"),P=-1===w.default.inArray(D,["","null",null])&&""!==R,C.rvDomElem.docBody((0,w.default)("body")),C.rvDomElem.createSupportButton(),C.rvDomElem.createSupportCursor(),P)S=T,y(),C.rvDomElem.toggleSupportButton(!0);else{S=A,C.rvDomElem.toggleSupportButton(!1);var t=E.default.getCookie("remoteViewCookie");null!==t&&(O=t,L=!0)}setTimeout(function(){k.rvDomDiff.getDomDiff(!0,function(t){console.log(t)})},1e3),C.rvDomElem.appendSupportButton(),C.rvDomElem.appendSupportCursor(),(0,w.default)("#"+C.rvDomElem.supportButtonId()).on("mousedown",g),L&&(console.log("redirecting support user to new page"),g({}),setTimeout(function(){c()},1500))})}()},function(t,e,n){function r(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var n,r=o(t),i=r.source,c=r.id,l=r.path,f=u[c]&&l in u[c].nsps,p=e.forceNew||e["force new connection"]||!1===e.multiplex||f;return p?(a("ignoring socket cache for %s",i),n=s(i,e)):(u[c]||(a("new io instance for %s",i),u[c]=s(i,e)),n=u[c]),r.query&&!e.query&&(e.query=r.query),n.socket(r.path,e)}var o=n(25),i=n(6),s=n(14),a=n(0)("socket.io-client");t.exports=e=r;var u=e.managers={};e.protocol=i.protocol,e.connect=r,e.Manager=n(14),e.Socket=n(20)},function(t,e,n){function r(t,e){var n=t;e=e||"undefined"!=typeof location&&location,null==t&&(t=e.protocol+"//"+e.host),"string"==typeof t&&("/"===t.charAt(0)&&(t="/"===t.charAt(1)?e.protocol+t:e.host+t),/^(https?|wss?):\/\//.test(t)||(i("protocol-less url %s",t),t=void 0!==e?e.protocol+"//"+t:"https://"+t),i("parse %s",t),n=o(t)),n.port||(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443")),n.path=n.path||"/";var r=-1!==n.host.indexOf(":"),s=r?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+s+":"+n.port,n.href=n.protocol+"://"+s+(e&&e.port===n.port?"":":"+n.port),n}var o=n(11),i=n(0)("socket.io-client:url");t.exports=r},function(t,e){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(t){if(l===setTimeout)return setTimeout(t,0);if((l===n||!l)&&setTimeout)return l=setTimeout,setTimeout(t,0);try{return l(t,0)}catch(e){try{return l.call(null,t,0)}catch(e){return l.call(this,t,0)}}}function i(t){if(f===clearTimeout)return clearTimeout(t);if((f===r||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(t);try{return f(t)}catch(e){try{return f.call(null,t)}catch(e){return f.call(this,t)}}}function s(){y&&h&&(y=!1,h.length?d=h.concat(d):g=-1,d.length&&a())}function a(){if(!y){var t=o(s);y=!0;for(var e=d.length;e;){for(h=d,d=[];++g<e;)h&&h[g].run();g=-1,e=d.length}h=null,y=!1,i(t)}}function u(t,e){this.fun=t,this.array=e}function c(){}var l,f,p=t.exports={};!function(){try{l="function"==typeof setTimeout?setTimeout:n}catch(t){l=n}try{f="function"==typeof clearTimeout?clearTimeout:r}catch(t){f=r}}();var h,d=[],y=!1,g=-1;p.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];d.push(new u(t,e)),1!==d.length||y||o(a)},u.prototype.run=function(){this.fun.apply(null,this.array)},p.title="browser",p.browser=!0,p.env={},p.argv=[],p.version="",p.versions={},p.on=c,p.addListener=c,p.once=c,p.off=c,p.removeListener=c,p.removeAllListeners=c,p.emit=c,p.prependListener=c,p.prependOnceListener=c,p.listeners=function(t){return[]},p.binding=function(t){throw new Error("process.binding is not supported")},p.cwd=function(){return"/"},p.chdir=function(t){throw new Error("process.chdir is not supported")},p.umask=function(){return 0}},function(t,e,n){function r(t){var n,r=0;for(n in t)r=(r<<5)-r+t.charCodeAt(n),r|=0;return e.colors[Math.abs(r)%e.colors.length]}function o(t){function n(){if(n.enabled){var t=n,r=+new Date,o=r-(c||r);t.diff=o,t.prev=c,t.curr=r,c=r;for(var i=new Array(arguments.length),s=0;s<i.length;s++)i[s]=arguments[s];i[0]=e.coerce(i[0]),"string"!=typeof i[0]&&i.unshift("%O");var a=0;i[0]=i[0].replace(/%([a-zA-Z%])/g,function(n,r){if("%%"===n)return n;a++;var o=e.formatters[r];if("function"==typeof o){var s=i[a];n=o.call(t,s),i.splice(a,1),a--}return n}),e.formatArgs.call(t,i);(n.log||e.log||console.log.bind(console)).apply(t,i)}}return n.namespace=t,n.enabled=e.enabled(t),n.useColors=e.useColors(),n.color=r(t),"function"==typeof e.init&&e.init(n),n}function i(t){e.save(t),e.names=[],e.skips=[];for(var n=("string"==typeof t?t:"").split(/[\s,]+/),r=n.length,o=0;o<r;o++)n[o]&&(t=n[o].replace(/\*/g,".*?"),"-"===t[0]?e.skips.push(new RegExp("^"+t.substr(1)+"$")):e.names.push(new RegExp("^"+t+"$")))}function s(){e.enable("")}function a(t){var n,r;for(n=0,r=e.skips.length;n<r;n++)if(e.skips[n].test(t))return!1;for(n=0,r=e.names.length;n<r;n++)if(e.names[n].test(t))return!0;return!1}function u(t){return t instanceof Error?t.stack||t.message:t}e=t.exports=o.debug=o.default=o,e.coerce=u,e.disable=s,e.enable=i,e.enabled=a,e.humanize=n(28),e.names=[],e.skips=[],e.formatters={};var c},function(t,e){function n(t){if(t=String(t),!(t.length>100)){var e=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(t);if(e){var n=parseFloat(e[1]);switch((e[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return n*l;case"days":case"day":case"d":return n*c;case"hours":case"hour":case"hrs":case"hr":case"h":return n*u;case"minutes":case"minute":case"mins":case"min":case"m":return n*a;case"seconds":case"second":case"secs":case"sec":case"s":return n*s;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function r(t){return t>=c?Math.round(t/c)+"d":t>=u?Math.round(t/u)+"h":t>=a?Math.round(t/a)+"m":t>=s?Math.round(t/s)+"s":t+"ms"}function o(t){return i(t,c,"day")||i(t,u,"hour")||i(t,a,"minute")||i(t,s,"second")||t+" ms"}function i(t,e,n){if(!(t<e))return t<1.5*e?Math.floor(t/e)+" "+n:Math.ceil(t/e)+" "+n+"s"}var s=1e3,a=60*s,u=60*a,c=24*u,l=365.25*c;t.exports=function(t,e){e=e||{};var i=typeof t;if("string"===i&&t.length>0)return n(t);if("number"===i&&!1===isNaN(t))return e.long?o(t):r(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},function(t,e,n){function r(t,e){if(!t)return t;if(s(t)){var n={_placeholder:!0,num:e.length};return e.push(t),n}if(i(t)){for(var o=new Array(t.length),a=0;a<t.length;a++)o[a]=r(t[a],e);return o}if("object"==typeof t&&!(t instanceof Date)){var o={};for(var u in t)o[u]=r(t[u],e);return o}return t}function o(t,e){if(!t)return t;if(t&&t._placeholder)return e[t.num];if(i(t))for(var n=0;n<t.length;n++)t[n]=o(t[n],e);else if("object"==typeof t)for(var r in t)t[r]=o(t[r],e);return t}var i=n(3),s=n(12),a=Object.prototype.toString,u="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===a.call(Blob),c="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===a.call(File);e.deconstructPacket=function(t){var e=[],n=t.data,o=t;return o.data=r(n,e),o.attachments=e.length,{packet:o,buffers:e}},e.reconstructPacket=function(t,e){return t.data=o(t.data,e),t.attachments=void 0,t},e.removeBlobs=function(t,e){function n(t,a,l){if(!t)return t;if(u&&t instanceof Blob||c&&t instanceof File){r++;var f=new FileReader;f.onload=function(){l?l[a]=this.result:o=this.result,--r||e(o)},f.readAsArrayBuffer(t)}else if(i(t))for(var p=0;p<t.length;p++)n(t[p],p,t);else if("object"==typeof t&&!s(t))for(var h in t)n(t[h],h,t)}var r=0,o=t;n(o),r||e(o)}},function(t,e,n){"use strict";function r(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===t[e-2]?2:"="===t[e-1]?1:0}function o(t){return 3*t.length/4-r(t)}function i(t){var e,n,o,i,s,a=t.length;i=r(t),s=new f(3*a/4-i),n=i>0?a-4:a;var u=0;for(e=0;e<n;e+=4)o=l[t.charCodeAt(e)]<<18|l[t.charCodeAt(e+1)]<<12|l[t.charCodeAt(e+2)]<<6|l[t.charCodeAt(e+3)],s[u++]=o>>16&255,s[u++]=o>>8&255,s[u++]=255&o;return 2===i?(o=l[t.charCodeAt(e)]<<2|l[t.charCodeAt(e+1)]>>4,s[u++]=255&o):1===i&&(o=l[t.charCodeAt(e)]<<10|l[t.charCodeAt(e+1)]<<4|l[t.charCodeAt(e+2)]>>2,s[u++]=o>>8&255,s[u++]=255&o),s}function s(t){return c[t>>18&63]+c[t>>12&63]+c[t>>6&63]+c[63&t]}function a(t,e,n){for(var r,o=[],i=e;i<n;i+=3)r=(t[i]<<16&16711680)+(t[i+1]<<8&65280)+(255&t[i+2]),o.push(s(r));return o.join("")}function u(t){for(var e,n=t.length,r=n%3,o="",i=[],s=0,u=n-r;s<u;s+=16383)i.push(a(t,s,s+16383>u?u:s+16383));return 1===r?(e=t[n-1],o+=c[e>>2],o+=c[e<<4&63],o+="=="):2===r&&(e=(t[n-2]<<8)+t[n-1],o+=c[e>>10],o+=c[e>>4&63],o+=c[e<<2&63],o+="="),i.push(o),i.join("")}e.byteLength=o,e.toByteArray=i,e.fromByteArray=u;for(var c=[],l=[],f="undefined"!=typeof Uint8Array?Uint8Array:Array,p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",h=0,d=p.length;h<d;++h)c[h]=p[h],l[p.charCodeAt(h)]=h;l["-".charCodeAt(0)]=62,l["_".charCodeAt(0)]=63},function(t,e){e.read=function(t,e,n,r,o){var i,s,a=8*o-r-1,u=(1<<a)-1,c=u>>1,l=-7,f=n?o-1:0,p=n?-1:1,h=t[e+f];for(f+=p,i=h&(1<<-l)-1,h>>=-l,l+=a;l>0;i=256*i+t[e+f],f+=p,l-=8);for(s=i&(1<<-l)-1,i>>=-l,l+=r;l>0;s=256*s+t[e+f],f+=p,l-=8);if(0===i)i=1-c;else{if(i===u)return s?NaN:1/0*(h?-1:1);s+=Math.pow(2,r),i-=c}return(h?-1:1)*s*Math.pow(2,i-r)},e.write=function(t,e,n,r,o,i){var s,a,u,c=8*i-o-1,l=(1<<c)-1,f=l>>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:i-1,d=r?1:-1,y=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=l):(s=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-s))<1&&(s--,u*=2),e+=s+f>=1?p/u:p*Math.pow(2,1-f),e*u>=2&&(s++,u/=2),s+f>=l?(a=0,s=l):s+f>=1?(a=(e*u-1)*Math.pow(2,o),s+=f):(a=e*Math.pow(2,f-1)*Math.pow(2,o),s=0));o>=8;t[n+h]=255&a,h+=d,a/=256,o-=8);for(s=s<<o|a,c+=o;c>0;t[n+h]=255&s,h+=d,s/=256,c-=8);t[n+h-d]|=128*y}},function(t,e,n){t.exports=n(33),t.exports.parser=n(2)},function(t,e,n){function r(t,e){if(!(this instanceof r))return new r(t,e);e=e||{},t&&"object"==typeof t&&(e=t,t=null),t?(t=l(t),e.hostname=t.host,e.secure="https"===t.protocol||"wss"===t.protocol,e.port=t.port,t.query&&(e.query=t.query)):e.host&&(e.hostname=l(e.host).host),this.secure=null!=e.secure?e.secure:"undefined"!=typeof location&&"https:"===location.protocol,e.hostname&&!e.port&&(e.port=this.secure?"443":"80"),this.agent=e.agent||!1,this.hostname=e.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=e.port||("undefined"!=typeof location&&location.port?location.port:this.secure?443:80),this.query=e.query||{},"string"==typeof this.query&&(this.query=f.decode(this.query)),this.upgrade=!1!==e.upgrade,this.path=(e.path||"/engine.io").replace(/\/$/,"")+"/",this.forceJSONP=!!e.forceJSONP,this.jsonp=!1!==e.jsonp,this.forceBase64=!!e.forceBase64,this.enablesXDR=!!e.enablesXDR,this.timestampParam=e.timestampParam||"t",this.timestampRequests=e.timestampRequests,this.transports=e.transports||["polling","websocket"],this.transportOptions=e.transportOptions||{},this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.policyPort=e.policyPort||843,this.rememberUpgrade=e.rememberUpgrade||!1,this.binaryType=null,this.onlyBinaryUpgrades=e.onlyBinaryUpgrades,this.perMessageDeflate=!1!==e.perMessageDeflate&&(e.perMessageDeflate||{}),!0===this.perMessageDeflate&&(this.perMessageDeflate={}),this.perMessageDeflate&&null==this.perMessageDeflate.threshold&&(this.perMessageDeflate.threshold=1024),this.pfx=e.pfx||null,this.key=e.key||null,this.passphrase=e.passphrase||null,this.cert=e.cert||null,this.ca=e.ca||null,this.ciphers=e.ciphers||null,this.rejectUnauthorized=void 0===e.rejectUnauthorized||e.rejectUnauthorized,this.forceNode=!!e.forceNode,this.isReactNative="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase(),("undefined"==typeof self||this.isReactNative)&&(e.extraHeaders&&Object.keys(e.extraHeaders).length>0&&(this.extraHeaders=e.extraHeaders),e.localAddress&&(this.localAddress=e.localAddress)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingIntervalTimer=null,this.pingTimeoutTimer=null,this.open()}function o(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}var i=n(15),s=n(1),a=n(0)("engine.io-client:socket"),u=n(19),c=n(2),l=n(11),f=n(4);t.exports=r,r.priorWebsocketSuccess=!1,s(r.prototype),r.protocol=c.protocol,r.Socket=r,r.Transport=n(9),r.transports=n(15),r.parser=n(2),r.prototype.createTransport=function(t){a('creating transport "%s"',t);var e=o(this.query);e.EIO=c.protocol,e.transport=t;var n=this.transportOptions[t]||{};return this.id&&(e.sid=this.id),new i[t]({query:e,socket:this,agent:n.agent||this.agent,hostname:n.hostname||this.hostname,port:n.port||this.port,secure:n.secure||this.secure,path:n.path||this.path,forceJSONP:n.forceJSONP||this.forceJSONP,jsonp:n.jsonp||this.jsonp,forceBase64:n.forceBase64||this.forceBase64,enablesXDR:n.enablesXDR||this.enablesXDR,timestampRequests:n.timestampRequests||this.timestampRequests,timestampParam:n.timestampParam||this.timestampParam,policyPort:n.policyPort||this.policyPort,pfx:n.pfx||this.pfx,key:n.key||this.key,passphrase:n.passphrase||this.passphrase,cert:n.cert||this.cert,ca:n.ca||this.ca,ciphers:n.ciphers||this.ciphers,rejectUnauthorized:n.rejectUnauthorized||this.rejectUnauthorized,perMessageDeflate:n.perMessageDeflate||this.perMessageDeflate,extraHeaders:n.extraHeaders||this.extraHeaders,forceNode:n.forceNode||this.forceNode,localAddress:n.localAddress||this.localAddress,requestTimeout:n.requestTimeout||this.requestTimeout,protocols:n.protocols||void 0,isReactNative:this.isReactNative})},r.prototype.open=function(){var t;if(this.rememberUpgrade&&r.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))t="websocket";else{if(0===this.transports.length){var e=this;return void setTimeout(function(){e.emit("error","No transports available")},0)}t=this.transports[0]}this.readyState="opening";try{t=this.createTransport(t)}catch(t){return this.transports.shift(),void this.open()}t.open(),this.setTransport(t)},r.prototype.setTransport=function(t){a("setting transport %s",t.name);var e=this;this.transport&&(a("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=t,t.on("drain",function(){e.onDrain()}).on("packet",function(t){e.onPacket(t)}).on("error",function(t){e.onError(t)}).on("close",function(){e.onClose("transport close")})},r.prototype.probe=function(t){function e(){if(p.onlyBinaryUpgrades){var e=!this.supportsBinary&&p.transport.supportsBinary;f=f||e}f||(a('probe transport "%s" opened',t),l.send([{type:"ping",data:"probe"}]),l.once("packet",function(e){if(!f)if("pong"===e.type&&"probe"===e.data){if(a('probe transport "%s" pong',t),p.upgrading=!0,p.emit("upgrading",l),!l)return;r.priorWebsocketSuccess="websocket"===l.name,a('pausing current transport "%s"',p.transport.name),p.transport.pause(function(){f||"closed"!==p.readyState&&(a("changing transport and sending upgrade packet"),c(),p.setTransport(l),l.send([{type:"upgrade"}]),p.emit("upgrade",l),l=null,p.upgrading=!1,p.flush())})}else{a('probe transport "%s" failed',t);var n=new Error("probe error");n.transport=l.name,p.emit("upgradeError",n)}}))}function n(){f||(f=!0,c(),l.close(),l=null)}function o(e){var r=new Error("probe error: "+e);r.transport=l.name,n(),a('probe transport "%s" failed because of error: %s',t,e),p.emit("upgradeError",r)}function i(){o("transport closed")}function s(){o("socket closed")}function u(t){l&&t.name!==l.name&&(a('"%s" works - aborting "%s"',t.name,l.name),n())}function c(){l.removeListener("open",e),l.removeListener("error",o),l.removeListener("close",i),p.removeListener("close",s),p.removeListener("upgrading",u)}a('probing transport "%s"',t);var l=this.createTransport(t,{probe:1}),f=!1,p=this;r.priorWebsocketSuccess=!1,l.once("open",e),l.once("error",o),l.once("close",i),this.once("close",s),this.once("upgrading",u),l.open()},r.prototype.onOpen=function(){if(a("socket open"),this.readyState="open",r.priorWebsocketSuccess="websocket"===this.transport.name,this.emit("open"),this.flush(),"open"===this.readyState&&this.upgrade&&this.transport.pause){a("starting upgrade probes");for(var t=0,e=this.upgrades.length;t<e;t++)this.probe(this.upgrades[t])}},r.prototype.onPacket=function(t){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(a('socket receive: type "%s", data "%s"',t.type,t.data),this.emit("packet",t),this.emit("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"pong":this.setPing(),this.emit("pong");break;case"error":var e=new Error("server error");e.code=t.data,this.onError(e);break;case"message":this.emit("data",t.data),this.emit("message",t.data)}else a('packet received with socket readyState "%s"',this.readyState)},r.prototype.onHandshake=function(t){this.emit("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this.upgrades=this.filterUpgrades(t.upgrades),this.pingInterval=t.pingInterval,this.pingTimeout=t.pingTimeout,this.onOpen(),"closed"!==this.readyState&&(this.setPing(),this.removeListener("heartbeat",this.onHeartbeat),this.on("heartbeat",this.onHeartbeat))},r.prototype.onHeartbeat=function(t){clearTimeout(this.pingTimeoutTimer);var e=this;e.pingTimeoutTimer=setTimeout(function(){"closed"!==e.readyState&&e.onClose("ping timeout")},t||e.pingInterval+e.pingTimeout)},r.prototype.setPing=function(){var t=this;clearTimeout(t.pingIntervalTimer),t.pingIntervalTimer=setTimeout(function(){a("writing ping packet - expecting pong within %sms",t.pingTimeout),t.ping(),t.onHeartbeat(t.pingTimeout)},t.pingInterval)},r.prototype.ping=function(){var t=this;this.sendPacket("ping",function(){t.emit("ping")})},r.prototype.onDrain=function(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emit("drain"):this.flush()},r.prototype.flush=function(){"closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length&&(a("flushing %d packets in socket",this.writeBuffer.length),this.transport.send(this.writeBuffer),this.prevBufferLen=this.writeBuffer.length,this.emit("flush"))},r.prototype.write=r.prototype.send=function(t,e,n){return this.sendPacket("message",t,e,n),this},r.prototype.sendPacket=function(t,e,n,r){if("function"==typeof e&&(r=e,e=void 0),"function"==typeof n&&(r=n,n=null),"closing"!==this.readyState&&"closed"!==this.readyState){n=n||{},n.compress=!1!==n.compress;var o={type:t,data:e,options:n};this.emit("packetCreate",o),this.writeBuffer.push(o),r&&this.once("flush",r),this.flush()}},r.prototype.close=function(){function t(){r.onClose("forced close"),a("socket closing - telling transport to close"),r.transport.close()}function e(){r.removeListener("upgrade",e),r.removeListener("upgradeError",e),t()}function n(){r.once("upgrade",e),r.once("upgradeError",e)}if("opening"===this.readyState||"open"===this.readyState){this.readyState="closing";var r=this;this.writeBuffer.length?this.once("drain",function(){this.upgrading?n():t()}):this.upgrading?n():t()}return this},r.prototype.onError=function(t){a("socket error %j",t),r.priorWebsocketSuccess=!1,this.emit("error",t),this.onClose("transport error",t)},r.prototype.onClose=function(t,e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState){a('socket close with reason: "%s"',t);var n=this;clearTimeout(this.pingIntervalTimer),clearTimeout(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),this.readyState="closed",this.id=null,this.emit("close",t,e),n.writeBuffer=[],n.prevBufferLen=0}},r.prototype.filterUpgrades=function(t){for(var e=[],n=0,r=t.length;n<r;n++)~u(this.transports,t[n])&&e.push(t[n]);return e}},function(t,e){try{t.exports="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(e){t.exports=!1}},function(t,e,n){function r(){}function o(t){if(u.call(this,t),this.requestTimeout=t.requestTimeout,this.extraHeaders=t.extraHeaders,"undefined"!=typeof location){var e="https:"===location.protocol,n=location.port;n||(n=e?443:80),this.xd="undefined"!=typeof location&&t.hostname!==location.hostname||n!==t.port,this.xs=t.secure!==e}}function i(t){this.method=t.method||"GET",this.uri=t.uri,this.xd=!!t.xd,this.xs=!!t.xs,this.async=!1!==t.async,this.data=void 0!==t.data?t.data:null,this.agent=t.agent,this.isBinary=t.isBinary,this.supportsBinary=t.supportsBinary,this.enablesXDR=t.enablesXDR,this.requestTimeout=t.requestTimeout,this.pfx=t.pfx,this.key=t.key,this.passphrase=t.passphrase,this.cert=t.cert,this.ca=t.ca,this.ciphers=t.ciphers,this.rejectUnauthorized=t.rejectUnauthorized,this.extraHeaders=t.extraHeaders,this.create()}function s(){for(var t in i.requests)i.requests.hasOwnProperty(t)&&i.requests[t].abort()}var a=n(8),u=n(16),c=n(1),l=n(5),f=n(0)("engine.io-client:polling-xhr");if(t.exports=o,t.exports.Request=i,l(o,u),o.prototype.supportsBinary=!0,o.prototype.request=function(t){return t=t||{},t.uri=this.uri(),t.xd=this.xd,t.xs=this.xs,t.agent=this.agent||!1,t.supportsBinary=this.supportsBinary,t.enablesXDR=this.enablesXDR,t.pfx=this.pfx,t.key=this.key,t.passphrase=this.passphrase,t.cert=this.cert,t.ca=this.ca,t.ciphers=this.ciphers,t.rejectUnauthorized=this.rejectUnauthorized,t.requestTimeout=this.requestTimeout,t.extraHeaders=this.extraHeaders,new i(t)},o.prototype.doWrite=function(t,e){var n="string"!=typeof t&&void 0!==t,r=this.request({method:"POST",data:t,isBinary:n}),o=this;r.on("success",e),r.on("error",function(t){o.onError("xhr post error",t)}),this.sendXhr=r},o.prototype.doPoll=function(){f("xhr poll");var t=this.request(),e=this;t.on("data",function(t){e.onData(t)}),t.on("error",function(t){e.onError("xhr poll error",t)}),this.pollXhr=t},c(i.prototype),i.prototype.create=function(){var t={agent:this.agent,xdomain:this.xd,xscheme:this.xs,enablesXDR:this.enablesXDR};t.pfx=this.pfx,t.key=this.key,t.passphrase=this.passphrase,t.cert=this.cert,t.ca=this.ca,t.ciphers=this.ciphers,t.rejectUnauthorized=this.rejectUnauthorized;var e=this.xhr=new a(t),n=this;try{f("xhr open %s: %s",this.method,this.uri),e.open(this.method,this.uri,this.async);try{if(this.extraHeaders){e.setDisableHeaderCheck&&e.setDisableHeaderCheck(!0);for(var r in this.extraHeaders)this.extraHeaders.hasOwnProperty(r)&&e.setRequestHeader(r,this.extraHeaders[r])}}catch(t){}if("POST"===this.method)try{this.isBinary?e.setRequestHeader("Content-type","application/octet-stream"):e.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(t){}try{e.setRequestHeader("Accept","*/*")}catch(t){}"withCredentials"in e&&(e.withCredentials=!0),this.requestTimeout&&(e.timeout=this.requestTimeout),this.hasXDR()?(e.onload=function(){n.onLoad()},e.onerror=function(){n.onError(e.responseText)}):e.onreadystatechange=function(){if(2===e.readyState)try{var t=e.getResponseHeader("Content-Type");n.supportsBinary&&"application/octet-stream"===t&&(e.responseType="arraybuffer")}catch(t){}4===e.readyState&&(200===e.status||1223===e.status?n.onLoad():setTimeout(function(){n.onError(e.status)},0))},f("xhr data %s",this.data),e.send(this.data)}catch(t){return void setTimeout(function(){n.onError(t)},0)}"undefined"!=typeof document&&(this.index=i.requestsCount++,i.requests[this.index]=this)},i.prototype.onSuccess=function(){this.emit("success"),this.cleanup()},i.prototype.onData=function(t){this.emit("data",t),this.onSuccess()},i.prototype.onError=function(t){this.emit("error",t),this.cleanup(!0)},i.prototype.cleanup=function(t){if(void 0!==this.xhr&&null!==this.xhr){if(this.hasXDR()?this.xhr.onload=this.xhr.onerror=r:this.xhr.onreadystatechange=r,t)try{this.xhr.abort()}catch(t){}"undefined"!=typeof document&&delete i.requests[this.index],this.xhr=null}},i.prototype.onLoad=function(){var t;try{var e;try{e=this.xhr.getResponseHeader("Content-Type")}catch(t){}t="application/octet-stream"===e?this.xhr.response||this.xhr.responseText:this.xhr.responseText}catch(t){this.onError(t)}null!=t&&this.onData(t)},i.prototype.hasXDR=function(){return"undefined"!=typeof XDomainRequest&&!this.xs&&this.enablesXDR},i.prototype.abort=function(){this.cleanup()},i.requestsCount=0,i.requests={},"undefined"!=typeof document)if("function"==typeof attachEvent)attachEvent("onunload",s);else if("function"==typeof addEventListener){var p="onpagehide"in self?"pagehide":"unload";addEventListener(p,s,!1)}},function(t,e){t.exports=Object.keys||function(t){var e=[],n=Object.prototype.hasOwnProperty;for(var r in t)n.call(t,r)&&e.push(r);return e}},function(t,e){t.exports=function(t,e,n){var r=t.byteLength;if(e=e||0,n=n||r,t.slice)return t.slice(e,n);if(e<0&&(e+=r),n<0&&(n+=r),n>r&&(n=r),e>=r||e>=n||0===r)return new ArrayBuffer(0);for(var o=new Uint8Array(t),i=new Uint8Array(n-e),s=e,a=0;s<n;s++,a++)i[a]=o[s];return i.buffer}},function(t,e){function n(t,e,n){function o(t,r){if(o.count<=0)throw new Error("after called too many times");--o.count,t?(i=!0,e(t),e=n):0!==o.count||i||e(null,r)}var i=!1;return n=n||r,o.count=t,0===t?e():o}function r(){}t.exports=n},function(t,e){function n(t){for(var e,n,r=[],o=0,i=t.length;o<i;)e=t.charCodeAt(o++),e>=55296&&e<=56319&&o<i?(n=t.charCodeAt(o++),56320==(64512&n)?r.push(((1023&e)<<10)+(1023&n)+65536):(r.push(e),o--)):r.push(e);return r}function r(t){for(var e,n=t.length,r=-1,o="";++r<n;)e=t[r],e>65535&&(e-=65536,o+=d(e>>>10&1023|55296),e=56320|1023&e),o+=d(e);return o}function o(t,e){if(t>=55296&&t<=57343){if(e)throw Error("Lone surrogate U+"+t.toString(16).toUpperCase()+" is not a scalar value");return!1}return!0}function i(t,e){return d(t>>e&63|128)}function s(t,e){if(0==(4294967168&t))return d(t);var n="";return 0==(4294965248&t)?n=d(t>>6&31|192):0==(4294901760&t)?(o(t,e)||(t=65533),n=d(t>>12&15|224),n+=i(t,6)):0==(4292870144&t)&&(n=d(t>>18&7|240),n+=i(t,12),n+=i(t,6)),n+=d(63&t|128)}function a(t,e){e=e||{};for(var r,o=!1!==e.strict,i=n(t),a=i.length,u=-1,c="";++u<a;)r=i[u],c+=s(r,o);return c}function u(){if(h>=p)throw Error("Invalid byte index");var t=255&f[h];if(h++,128==(192&t))return 63&t;throw Error("Invalid continuation byte")}function c(t){var e,n,r,i,s;if(h>p)throw Error("Invalid byte index");if(h==p)return!1;if(e=255&f[h],h++,0==(128&e))return e;if(192==(224&e)){if(n=u(),(s=(31&e)<<6|n)>=128)return s;throw Error("Invalid continuation byte")}if(224==(240&e)){if(n=u(),r=u(),(s=(15&e)<<12|n<<6|r)>=2048)return o(s,t)?s:65533;throw Error("Invalid continuation byte")}if(240==(248&e)&&(n=u(),r=u(),i=u(),(s=(7&e)<<18|n<<12|r<<6|i)>=65536&&s<=1114111))return s;throw Error("Invalid UTF-8 detected")}function l(t,e){e=e||{};var o=!1!==e.strict;f=n(t),p=f.length,h=0;for(var i,s=[];!1!==(i=c(o));)s.push(i);return r(s)}/*! https://mths.be/utf8js v2.1.2 by @mathias */
  var f,p,h,d=String.fromCharCode;t.exports={version:"2.1.2",encode:a,decode:l}},function(t,e){!function(){"use strict";for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=new Uint8Array(256),r=0;r<t.length;r++)n[t.charCodeAt(r)]=r;e.encode=function(e){var n,r=new Uint8Array(e),o=r.length,i="";for(n=0;n<o;n+=3)i+=t[r[n]>>2],i+=t[(3&r[n])<<4|r[n+1]>>4],i+=t[(15&r[n+1])<<2|r[n+2]>>6],i+=t[63&r[n+2]];return o%3==2?i=i.substring(0,i.length-1)+"=":o%3==1&&(i=i.substring(0,i.length-2)+"=="),i},e.decode=function(t){var e,r,o,i,s,a=.75*t.length,u=t.length,c=0;"="===t[t.length-1]&&(a--,"="===t[t.length-2]&&a--);var l=new ArrayBuffer(a),f=new Uint8Array(l);for(e=0;e<u;e+=4)r=n[t.charCodeAt(e)],o=n[t.charCodeAt(e+1)],i=n[t.charCodeAt(e+2)],s=n[t.charCodeAt(e+3)],f[c++]=r<<2|o>>4,f[c++]=(15&o)<<4|i>>2,f[c++]=(3&i)<<6|63&s;return l}}()},function(t,e){function n(t){return t.map(function(t){if(t.buffer instanceof ArrayBuffer){var e=t.buffer;if(t.byteLength!==e.byteLength){var n=new Uint8Array(t.byteLength);n.set(new Uint8Array(e,t.byteOffset,t.byteLength)),e=n.buffer}return e}return t})}function r(t,e){e=e||{};var r=new i;return n(t).forEach(function(t){r.append(t)}),e.type?r.getBlob(e.type):r.getBlob()}function o(t,e){return new Blob(n(t),e||{})}var i=void 0!==i?i:"undefined"!=typeof WebKitBlobBuilder?WebKitBlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof MozBlobBuilder&&MozBlobBuilder,s=function(){try{return 2===new Blob(["hi"]).size}catch(t){return!1}}(),a=s&&function(){try{return 2===new Blob([new Uint8Array([1,2])]).size}catch(t){return!1}}(),u=i&&i.prototype.append&&i.prototype.getBlob;"undefined"!=typeof Blob&&(r.prototype=Blob.prototype,o.prototype=Blob.prototype),t.exports=function(){return s?a?Blob:o:u?r:void 0}()},function(t,e,n){(function(e){function r(){}function o(){return"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:{}}function i(t){if(s.call(this,t),this.query=this.query||{},!u){var e=o();u=e.___eio=e.___eio||[]}this.index=u.length;var n=this;u.push(function(t){n.onData(t)}),this.query.j=this.index,"function"==typeof addEventListener&&addEventListener("beforeunload",function(){n.script&&(n.script.onerror=r)},!1)}var s=n(16),a=n(5);t.exports=i;var u,c=/\n/g,l=/\\n/g;a(i,s),i.prototype.supportsBinary=!1,i.prototype.doClose=function(){this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),this.form&&(this.form.parentNode.removeChild(this.form),this.form=null,this.iframe=null),s.prototype.doClose.call(this)},i.prototype.doPoll=function(){var t=this,e=document.createElement("script");this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),e.async=!0,e.src=this.uri(),e.onerror=function(e){t.onError("jsonp poll error",e)};var n=document.getElementsByTagName("script")[0];n?n.parentNode.insertBefore(e,n):(document.head||document.body).appendChild(e),this.script=e,"undefined"!=typeof navigator&&/gecko/i.test(navigator.userAgent)&&setTimeout(function(){var t=document.createElement("iframe");document.body.appendChild(t),document.body.removeChild(t)},100)},i.prototype.doWrite=function(t,e){function n(){r(),e()}function r(){if(o.iframe)try{o.form.removeChild(o.iframe)}catch(t){o.onError("jsonp polling iframe removal error",t)}try{var t='<iframe src="javascript:0" name="'+o.iframeId+'">';i=document.createElement(t)}catch(t){i=document.createElement("iframe"),i.name=o.iframeId,i.src="javascript:0"}i.id=o.iframeId,o.form.appendChild(i),o.iframe=i}var o=this;if(!this.form){var i,s=document.createElement("form"),a=document.createElement("textarea"),u=this.iframeId="eio_iframe_"+this.index;s.className="socketio",s.style.position="absolute",s.style.top="-1000px",s.style.left="-1000px",s.target=u,s.method="POST",s.setAttribute("accept-charset","utf-8"),a.name="d",s.appendChild(a),document.body.appendChild(s),this.form=s,this.area=a}this.form.action=this.uri(),r(),t=t.replace(l,"\\\n"),this.area.value=t.replace(c,"\\n");try{this.form.submit()}catch(t){}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){"complete"===o.iframe.readyState&&n()}:this.iframe.onload=n}}).call(e,n(13))},function(t,e,n){(function(e){function r(t){t&&t.forceBase64&&(this.supportsBinary=!1),this.perMessageDeflate=t.perMessageDeflate,this.usingBrowserWebSocket=o&&!t.forceNode,this.protocols=t.protocols,this.usingBrowserWebSocket||(p=i),s.call(this,t)}var o,i,s=n(9),a=n(2),u=n(4),c=n(5),l=n(18),f=n(0)("engine.io-client:websocket");if("undefined"!=typeof WebSocket)o=WebSocket;else if("undefined"!=typeof self)o=self.WebSocket||self.MozWebSocket;else try{i=n(44)}catch(t){}var p=o||i;t.exports=r,c(r,s),r.prototype.name="websocket",r.prototype.supportsBinary=!0,r.prototype.doOpen=function(){if(this.check()){var t=this.uri(),e=this.protocols,n={agent:this.agent,perMessageDeflate:this.perMessageDeflate};n.pfx=this.pfx,n.key=this.key,n.passphrase=this.passphrase,n.cert=this.cert,n.ca=this.ca,n.ciphers=this.ciphers,n.rejectUnauthorized=this.rejectUnauthorized,this.extraHeaders&&(n.headers=this.extraHeaders),this.localAddress&&(n.localAddress=this.localAddress);try{this.ws=this.usingBrowserWebSocket&&!this.isReactNative?e?new p(t,e):new p(t):new p(t,e,n)}catch(t){return this.emit("error",t)}void 0===this.ws.binaryType&&(this.supportsBinary=!1),this.ws.supports&&this.ws.supports.binary?(this.supportsBinary=!0,this.ws.binaryType="nodebuffer"):this.ws.binaryType="arraybuffer",this.addEventListeners()}},r.prototype.addEventListeners=function(){var t=this;this.ws.onopen=function(){t.onOpen()},this.ws.onclose=function(){t.onClose()},this.ws.onmessage=function(e){t.onData(e.data)},this.ws.onerror=function(e){t.onError("websocket error",e)}},r.prototype.write=function(t){function n(){r.emit("flush"),setTimeout(function(){r.writable=!0,r.emit("drain")},0)}var r=this;this.writable=!1;for(var o=t.length,i=0,s=o;i<s;i++)!function(t){a.encodePacket(t,r.supportsBinary,function(i){if(!r.usingBrowserWebSocket){var s={};if(t.options&&(s.compress=t.options.compress),r.perMessageDeflate){("string"==typeof i?e.byteLength(i):i.length)<r.perMessageDeflate.threshold&&(s.compress=!1)}}try{r.usingBrowserWebSocket?r.ws.send(i):r.ws.send(i,s)}catch(t){f("websocket closed before onclose event")}--o||n()})}(t[i])},r.prototype.onClose=function(){s.prototype.onClose.call(this)},r.prototype.doClose=function(){void 0!==this.ws&&this.ws.close()},r.prototype.uri=function(){var t=this.query||{},e=this.secure?"wss":"ws",n="";return this.port&&("wss"===e&&443!==Number(this.port)||"ws"===e&&80!==Number(this.port))&&(n=":"+this.port),this.timestampRequests&&(t[this.timestampParam]=l()),this.supportsBinary||(t.b64=1),t=u.encode(t),t.length&&(t="?"+t),e+"://"+(-1!==this.hostname.indexOf(":")?"["+this.hostname+"]":this.hostname)+n+this.path+t},r.prototype.check=function(){return!(!p||"__initialize"in p&&this.name===r.prototype.name)}}).call(e,n(7).Buffer)},function(t,e){},function(t,e){function n(t,e){var n=[];e=e||0;for(var r=e||0;r<t.length;r++)n[r-e]=t[r];return n}t.exports=n},function(t,e){function n(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}t.exports=n,n.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),n=Math.floor(e*this.jitter*t);t=0==(1&Math.floor(10*e))?t-n:t+n}return 0|Math.min(t,this.max)},n.prototype.reset=function(){this.attempts=0},n.prototype.setMin=function(t){this.ms=t},n.prototype.setMax=function(t){this.max=t},n.prototype.setJitter=function(t){this.jitter=t}},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function(){function t(){r(this,t),this._name="Helper",this.resizeClearer}return o(t,[{key:"name",get:function(){return this._name}}],[{key:"uniqueId",value:function(){function t(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return t()+t()+"-"+t()+"-"+t()+"-"+t()+"-"+t()+t()+t()}},{key:"getUrlParameter",value:function(t){var e=decodeURIComponent(window.location.search.substring(1)),n=e.split("&"),r=void 0,o=void 0;for(o=0;o<n.length;o++)if(r=n[o].split("="),r[0]===t)return void 0===r[1]||r[1];return""}},{key:"setCookie",value:function(t,e,n){var r="",o=window.location.hostname;if(n){var i=new Date;i.setTime(i.getTime()+24*n*60*60*1e3),r="; expires="+i.toUTCString()}document.cookie=t+"="+(e||"")+r+"; domain="+o+"; path=/"}},{key:"getAllCookies",value:function(){for(var t=document.cookie.split(";"),e={},n=1;n<=t.length;n++){var r=t[n-1].trim();e[r.split("=")[0].trim()]=r.split("=")[1]}return e}},{key:"getCookie",value:function(t){for(var e=t+"=",n=document.cookie.split(";"),r=0;r<n.length;r++){for(var o=n[r];" "===o.charAt(0);)o=o.substring(1,o.length);if(0===o.indexOf(e))return o.substring(e.length,o.length)}return null}},{key:"eraseCookie",value:function(t){var e=new Date,n="";e.setTime(e.getTime()-864e5),n+=";max-age=0",n+=";expires="+e.toUTCString(),n+=";path=/",document.cookie=t+"="+n}},{key:"throttle",value:function(t,e){var n=(new Date).getTime();return function(){var r=(new Date).getTime();r-n>=e&&(n=r,t.apply(null,arguments))}}},{key:"throttleLastCall",value:function(e,n){return function(){clearTimeout(t.resizeClearer),t.resizeClearer=setTimeout(function(){e.apply(null,arguments)},n)}}},{key:"detectMobile",value:function(){return!!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}}]),t}();e.default=i,t.exports=e.default},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.rvDomDiff=void 0;var o="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},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=n(10),a=function(t){return t&&t.__esModule?t:{default:t}}(s);window.jQuery=a.default,window.$=a.default;var u=function(){function t(){r(this,t),this._name="RvDomDiff",this.vDomStorage={},this.deliveredDoms=[],this.domLocked=!1,this.initialLoad=!1,this.storageInProgress=!1,this.parsingCalled=!1,this.iteratorTimer=null,this.domUpdate=this.domUpdate.bind(this),this.createElement=this.createElement.bind(this)}return i(t,[{key:"domLock",value:function(){this.domLocked=!0}},{key:"domUnlock",value:function(){this.domLocked=!1}},{key:"updateDomOnClick",value:function(){for(var t=this;this.storageInProgress||this.domLocked||this.updateDomFromClick;)return void setTimeout(function(){t.updateDomOnClick()},1);this.updateDomFromClick=!0,setTimeout(function(){try{var e=t.vDom();t.vDomStorage=e,t.updateDomFromClick=!1}catch(e){console.log(e),t.updateDomFromClick=!1}},500)}},{key:"domUpdate",value:function(t){if(this.initialLoad)try{this.deliveredDoms.push(t),this.parsingCalled||this.parseDomUpdates()}catch(t){console.log(t)}}},{key:"parseDomUpdates",value:function(){var t=this;for(this.parsingCalled=!0;this.storageInProgress;)return void setTimeout(function(){t.parseDomUpdates()},100);for(var e in t.deliveredDoms){var n=t.deliveredDoms[e].domUpdate;t.storageInProgress=!0,t.domLock();var r=t.vDomStorage;try{t.deliveredDoms.splice(e,1),t.updateElement((0,a.default)("body"),n,r,0,!0),t.vDomStorage=n}catch(e){console.log(e),t.domUnlock(),t.storageInProgress=!1}t.domUnlock(),t.storageInProgress=!1}this.parsingCalled=!1}},{key:"listIterate",value:function(t,e,n){var r=this;if(e.type=t.prop("nodeName").toLowerCase(),e.attrs={},e.data={},e.data=(0,a.default)(t).data(),-1===a.default.inArray((0,a.default)(t).val(),["undefined"])&&(e.attrs.val=(0,a.default)(t).val()),"canvas"===e.type){var o=t[0],i=t.attr("id"),s=t.attr("class"),u=t[0].width,c=t[0].height;i&&s?o=document.querySelectorAll("#"+i+",."+s.replace(" ",",."))[0]:i?o=document.getElementById(i):s&&(o=document.querySelectorAll("."+s.replace(" ",",."))[0]),e.data.canvasData={height:c,width:u,data:o.toDataURL()}}(0,a.default)(t).each(function(){a.default.each(this.attributes,function(){this.specified&&(e.attrs[this.name]=this.value,"type"===this.name&&"checkbox"===this.value&&(e.attrs.checked=(0,a.default)(t).prop("checked")))})});var l=0;t.contents().each(function(){var t=(0,a.default)(this)[0].nodeType,o=(0,a.default)(this)[0].nodeName;-1!==a.default.inArray(t,[8,4,7,10,12])?e.children[l]={type:"#text",data:null,attrs:null,children:[""]}:3===t&&"#text"===o?e.children[l]={type:"#text",data:null,attrs:null,children:[(0,a.default)(this)[0].data]}:(e.children[l]={type:null,data:null,attrs:null,children:[]},r.listIterate((0,a.default)(this),e.children[l],n)),l++}),clearTimeout(this.iteratorTimer),this.iteratorTimer=setTimeout(function(){n()},100)}},{key:"vDom",value:function(t){var e=this,n=(0,a.default)("body").clone(!0,!0).off(),r=(0,a.default)("body").find("select");(0,a.default)(r).each(function(t){var e=this;n.find("select").eq(t).val((0,a.default)(e).val())}),n.find("#remoteViewSupportRequestButton").remove(),n.find("#remoteViewCursor").remove(),n.find("script").remove();var o={type:null,data:null,attrs:null,children:[]};e.listIterate(n,o,function(){t(o)})}},{key:"createElement",value:function(t){var e=this;if("string"==typeof t)return document.createTextNode(t);if(void 0!==t.type&&"#text"===t.type)return document.createTextNode(t.children[0]);var n=document.createElement(t.type);return t.children.map(e.createElement).forEach(n.appendChild.bind(n)),void 0!==t.attrs&&e.applyAttr((0,a.default)(n),t.attrs),void 0!==t.data&&e.applyData((0,a.default)(n),t.data),n}},{key:"changed",value:function(t,e){return(void 0===t?"undefined":o(t))!==(void 0===e?"undefined":o(e))||"string"==typeof t&&t!==e||t.type!==e.type}},{key:"attrChanged",value:function(t,e){return(void 0!==e.attrs||void 0!==t.attrs)&&JSON.stringify(t.attrs)!==JSON.stringify(e.attrs)}},{key:"dataChanged",value:function(t,e){return(void 0!==e.data||void 0!==t.data)&&(!!(o("undefined"!==t.type)&&"canvas"===t.type||o("undefined"!==e.type)&&"canvas"===e.type)||JSON.stringify(t.data)!==JSON.stringify(e.data))}},{key:"applyAttr",value:function(t,e){t.each(function(){a.default.each(this.attributes,function(){void 0!==this&&t.removeAttr(this.name)})}),null!==e&&void 0!==e&&(void 0!==e.val&&(t.val(e.val),delete e.val),void 0!==e.checked&&(t.prop("checked",e.checked),delete e.checked)),t.attr(e)}},{key:"applyData",value:function(t,e){if(null===e||void 0===e)t.data({});else if(void 0!==e.canvasData){var n=e.canvasData.data,r=new Image;r.onload=function(){t[0].getContext("2d").drawImage(r,0,0),delete e.canvasData,t.data(e)},r.src=n}else t.data(e)}},{key:"updateElement",value:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i=this,s=t[0].nodeType,u=t[0].nodeName;if(o||(-1!==a.default.inArray(s,[8,4,7,10,12])||3===s&&"#text"===u)&&(t=t.parent()),o){i.attrChanged(e,n)&&i.applyAttr((0,a.default)("body"),e.attrs),i.dataChanged(e,n)&&i.applyData((0,a.default)("body"),e.data);for(var c=e.children.length,l=n.children.length,f=0;f<c||f<l;f++)i.updateElement((0,a.default)("body"),e.children[f],n.children[f],f)}else if(n)if(e){if(i.changed(e,n))t.contents().eq(r).replaceWith((0,a.default)(i.createElement(e)));else if(e.type){i.attrChanged(e,n)&&i.applyAttr(t.contents().eq(r),e.attrs),i.dataChanged(e,n)&&i.applyData(t.contents().eq(r),e.data);for(var p=e.children.length,h=n.children.length,d=0;d<p||d<h;d++)i.updateElement(t.contents().eq(r),e.children[d],n.children[d],d)}}else{var y=t.contents().eq(r);y.length>0&&y.remove()}else t.append((0,a.default)(i.createElement(e)))}},{key:"getDomDiff",value:function(t,e){this.initialLoad=!0;var n=this;!this.domLocked||t?n.vDom(function(r){n.vDomStorage=r,e(t?{}:n.vDomStorage)}):e({})}},{key:"name",get:function(){return this._name}}]),t}();e.rvDomDiff=new u},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.rvDomElem=void 0;var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=n(10),a=r(s),u=n(50),c=r(u),l=function(){function t(){o(this,t),this._name="RvDomElem",this._docBody=null,this.rvSupportButton=null,this._supportButtonId="remoteViewSupportRequestButton",this.rvSupportButtonTexts=["Help and support","Disable Remote View"],this.rvSupportCursor=null,this._supportCursorId="remoteViewCursor",this.rvSupportCursorDisplays=["none","block"]}return i(t,[{key:"supportButtonId",value:function(){return this._supportButtonId}},{key:"supportCursorId",value:function(){return this._supportCursorId}},{key:"supportButtonActive",value:function(){return(0,a.default)("#"+this.supportButtonId()).html()===this.rvSupportButtonTexts[1]}},{key:"docBody",value:function(t){this._docBody=t}},{key:"createSupportButton",value:function(){this.rvSupportButton=document.createElement("p"),this.rvSupportButton.id=this.supportButtonId(),this.rvSupportButton.style.cssText="background-color: blue; width: 148px; position: absolute; bottom: 0; right: 0; z-index: 2147483647;",this.rvSupportButton.innerHTML=this.rvSupportButtonTexts[0]}},{key:"createSupportCursor",value:function(){this.rvSupportCursor=document.createElement("img"),this.rvSupportCursor.id=this.supportCursorId(),this.rvSupportCursor.style.cssText="display: none; position: fixed; z-index: 2147483647; width: 30px; height: 30px;",this.rvSupportCursor.src=c.default.defaultCursor()}},{key:"toggleSupportButton",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(""===t){var e=0===this.rvSupportButtonTexts.indexOf(this.rvSupportButton.innerHTML)?1:0;this.rvSupportButton.innerHTML=this.rvSupportButtonTexts[e],(0,a.default)("#"+this.supportButtonId()).html(this.rvSupportButtonTexts[e])}else{var n=t?this.rvSupportButtonTexts[1]:this.rvSupportButtonTexts[0];this.rvSupportButton.innerHTML=n,(0,a.default)("#"+this.supportButtonId()).html(n)}}},{key:"toggleSupportCursor",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(""===t){var e=0===this.rvSupportButtonTexts.indexOf(this.rvSupportButton.innerHTML)?1:0;this.rvSupportCursor.style.cssText=this.rvSupportCursor.style.cssText.replace("display: "+this.rvSupportButtonTexts[Math.abs(e-1)],"display: "+this.rvSupportButtonTexts[e]),(0,a.default)("#"+this.supportCursorId()).css("display",this.rvSupportCursorDisplays[e])}else{var n=t?1:0,r=this.rvSupportCursorDisplays[n];this.rvSupportCursor.style.cssText=this.rvSupportCursor.style.cssText.replace("display: "+this.rvSupportButtonTexts[Math.abs(n-1)],"display: "+this.rvSupportButtonTexts[n]),(0,a.default)("#"+this.supportCursorId()).css("display",r)}}},{key:"tiltSupportCursor",value:function(){var t=this,e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n=e?"rotate(45deg)":"rotate(-45deg)";(0,a.default)("#"+this.supportCursorId()).css("transform",n),setTimeout(function(){(0,a.default)("#"+t.supportCursorId()).css("transform","rotate(0deg)")},500)}},{key:"moveSupportCursor",value:function(t,e){this.rvSupportCursor.style.cssText=this.rvSupportCursor.style.cssText.replace("display: none;","display: block;"),-1!==this.rvSupportCursor.style.cssText.indexOf("left")?(this.rvSupportCursor.style.cssText=this.rvSupportCursor.style.cssText.replace(/left:.*px;/,"left: "+t+"px;"),this.rvSupportCursor.style.cssText=this.rvSupportCursor.style.cssText.replace(/top:.*px;/,"top: "+e+"px;")):this.rvSupportCursor.style.cssText+=" left: "+t+"px; top: "+e+"px;",(0,a.default)("#"+this.supportCursorId()).css({display:"block",left:t+"px",top:e+"px"})}},{key:"appendSupportButton",value:function(){this._docBody.append(this.rvSupportButton)}},{key:"appendSupportCursor",value:function(){this._docBody.append(this.rvSupportCursor)}},{key:"removeSupportButton",value:function(){(0,a.default)("#"+this.supportButtonId()).remove()}},{key:"removeSupportCursor",value:function(){(0,a.default)("#"+this.supportCursorId()).remove()}},{key:"name",get:function(){return this._name}}]),t}();e.rvDomElem=new l},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function(){function t(){r(this,t),this._name="Image"}return o(t,[{key:"name",get:function(){return this._name}}],[{key:"defaultCursor",value:function(){return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAQAAAAHUWYVAAAHL0lEQVR42u2daWwVVRiGX25baEuBKwIBJGVpSgNlrbgUCDHgD1xQIyhCKhoENAZiIpEQFg1VwAQjmIAgSFyiRgzgghq1SotBEBERDfJDJCYQ7aUCLS1rl/EHUM43vbMU7pmZzLzP/Oucuefc7+ncOefMnG8AQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghQWEElmMnqtCIBiRQgSUYxKD4xVj8CCPJVo7bGRyvycKGpDIubU1YiQwGyTtuwG4bHZe2MrRnoLwhE7scdRgw8DXSGSwvWOtKhwEDSxks/Yw2Bf0o5qI/0pCOgViAhNhXj8EMmG6+FyF/z3SliOMzsf9jBkwvg0W4P0CbFiXS8KVSohG9GDSdLFGC/S86JC3TFTVKqWcYNJ2UK6FeYFnqFaXUFgZNJ5VKqK0nScYopf5g0HTSoITaeizeTSlVxaDpI00JdINNuRylXC3Dpo/0axBSx7BRCIVQCIUQCqEQQiEUQiiEQgiFUAiFUAihEAohFEIhhEIohFAIhVAIhVAIhVAIoRAKIRRCIYRCKCS5kBhDFxwhTaiBgSacwG68irGU47cQ8/YXZiKNoQyOEAMG9mEggxkkIQZqcQ/DGSQhBi7ibgY0SEIM1DX/cMWSJCAgWoSUowS5iCENeZiJn01KDmAd9uM0DBg4iT1YhTvZC9MnpAr3ttjzOM44nDd/42mmddIhJIGCpPuKHZUY+A1DGexUCxlnuXe6i+vLWUxkuFMp5FPbz/nFhZIGPMSAp07IBNvPme2qF3YORQAyoneZH4YXUYEEGtGASlSgFEOuU0h7xG1rHNL8Kdube2H9MAN7TEpOXU709B8qsBj9oiBjDH5I+t9ZgeLrEOI0V9XFshdWglrLM6YRm9A7zDIysa6VuXfdCnEiDgOV6J903y2XxyVWUy6Tw6oj7iL37jfI1iSkCXdY7p1i26amcOaoa+cy9+42cUlNnRD7PHO7HJRMCp+Q113n3p2vRch42/1PiHoaW7SpBj3DpWOU6QtWYj4KkYEMFGKBSONn4AJGpFxIJ+TY7s+HAQPVeAEFaIM0DMYKnBOteitcQsrFl9uMTqb/X5l790jz/lQJceqF5cDAIVOPahCOiRTN3cOjo9CkI5ake7vdVCa1Qpz7f9XIbfHXobig1D8nPEIWK18rYTo7rpCLU0LJbI+FLHK88oUo/WyZ8rWetyz1gBByHkWeCsmzGMaGMv2s+ls8zKbca0LJYXT0TEi6xR1ENf3s8fAIUfsr2Tbl2mKvULLJMyF2I/wrW3X0hAB9US2UzPFZSKdwCjmqfK0ih7ITTWOS4AipCedF/SXH0qstbyBRSIpYJO443OQ467WPQvRSIAL7neMzUXnifSB+CukYTiHAVyK0zzmWfzggQjoo9Z8Ok5Ai1ItL9XDHI9YGQkiI37qwUAT3ELIcryT7AyYkZCuzYqa3ra1xPCLfdGuVQlKMefrQeXnAFArRy2QR4AS6OR6xnkL08o5Q8rlj+Uwc8FVI+7AL6YAjQslTLsYwtQERcgahZKR479oZi2elVEp8FJIdfiFAqThH9rpYm7ExEELOhlVIuumJ2lLHI7LwO4XoJB91ovdU7HjEANRRiE6eNN2szXE84jEK0Yt8EmuDiyPepBCddENCKLnPxZWEQrQywTRu7xrANmZFSQiwQSj5JOBCzoVfSA4OCyXTA9fCzGgJAYrFuP00+gSsffHovRZ8qThHdgRsBWxvcZWLBBmmNeRzA9W6m5WWHUREKBRPNp5HYYDaViLWP0aGuabsbxmBadmyVt10Dg0x7GjldKNXqM8BzEKE6CseaKhXVhn6SbZ4tngYIsUMcY4cRLuAzSWcil4GlC+EkhUBaNG7Sns+QuTogRMiz8go30fp6lqVaYggU8U58qcv87tXmSYefo0jkmwWSlb62padAZ/49ISuOC5+tkYHYoxu4H5Elkmmn61sn9rxvtKKY9HOHf+hULLKlzb0EcsnFiLS3CiS0TRipA9tWCfuFHZBxHnQtJbE60FiL5yP5hyWNZuEkmUe175WTOP0oQ6gi+ht1btYApfK68fF8ObJunbkWpL9HmZnf1v8K+RRxRW2CiXzPKp1gLjLv5EartIdJ0Vfx5u0xpvFhElvalCRSfTLPKhxOJqUGldTgZlvhZJHtde3TSzQ6UEBZvqJd38kNM+5yvmr5Qx/MuaJIOn9EdkqMpt0ZvCTkY5fxURKkbaaCkQC5SUMvRW3iUDt1lbPGnF+xBl4a94QP1uPaKkjRzz38jKDbkdnVIm3qmVqqGOqeAVlTwbdnlniHHlWQw1bRDZU4kBMPJL9j4YJefUcvIsBd2acOEdmpPjTc8WAsC3D7YayVqWtaR23Kp/9E0PtjvGuXwlzfVsFQ+2OQRRCIYRCKIRCKIQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQqLI/0+Vt3dKyGP/AAAAAElFTkSuQmCC"}}]),t}();e.default=i,t.exports=e.default}])});