react-core-image-upload
Version:
a component for image to upload and crop
2 lines • 1.09 MB
JavaScript
!function(e){function n(e){var t=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.src=A.p+""+e+"."+s+".hot-update.js",t.appendChild(n)}function r(e){if("undefined"==typeof XMLHttpRequest)return e(new Error("No browser support"));try{var t=new XMLHttpRequest,n=A.p+""+s+".hot-update.json";t.open("GET",n,!0),t.timeout=1e4,t.send(null)}catch(r){return e(r)}t.onreadystatechange=function(){if(4===t.readyState)if(0===t.status)e(new Error("Manifest request to "+n+" timed out."));else if(404===t.status)e();else if(200!==t.status&&304!==t.status)e(new Error("Manifest request to "+n+" failed."));else{try{var r=JSON.parse(t.responseText)}catch(a){return void e(a)}e(null,r)}}}function u(e){function i(e,t){"ready"===f&&m("prepare"),v++,A.e(e,function(){function r(){v--,"prepare"===f&&(h[e]||S(e),0===v&&0===g&&O())}try{t.call(null,n)}finally{r()}})}var t=D[e];if(!t)return A;var n=function(n){return t.hot.active?D[n]?(D[n].parents.indexOf(e)<0&&D[n].parents.push(e),t.children.indexOf(n)<0&&t.children.push(n)):c=[e]:(console.warn("[HMR] unexpected require("+n+") from disposed module "+e),c=[]),A(n)};for(var r in A)Object.prototype.hasOwnProperty.call(A,r)&&(a?Object.defineProperty(n,r,function(e){return{configurable:!0,enumerable:!0,get:function(){return A[e]},set:function(t){A[e]=t}}}(r)):n[r]=A[r]);return a?Object.defineProperty(n,"e",{enumerable:!0,value:i}):n.e=i,n}function d(e){var t={_acceptedDependencies:{},_declinedDependencies:{},_selfAccepted:!1,_selfDeclined:!1,_disposeHandlers:[],active:!0,accept:function(e,n){if("undefined"==typeof e)t._selfAccepted=!0;else if("function"==typeof e)t._selfAccepted=e;else if("object"==typeof e)for(var r=0;r<e.length;r++)t._acceptedDependencies[e[r]]=n;else t._acceptedDependencies[e]=n},decline:function(e){if("undefined"==typeof e)t._selfDeclined=!0;else if("number"==typeof e)t._declinedDependencies[e]=!0;else for(var n=0;n<e.length;n++)t._declinedDependencies[e[n]]=!0},dispose:function(e){t._disposeHandlers.push(e)},addDisposeHandler:function(e){t._disposeHandlers.push(e)},removeDisposeHandler:function(e){var n=t._disposeHandlers.indexOf(e);n>=0&&t._disposeHandlers.splice(n,1)},check:N,apply:T,status:function(e){return e?void p.push(e):f},addStatusHandler:function(e){p.push(e)},removeStatusHandler:function(e){var t=p.indexOf(e);t>=0&&p.splice(t,1)},data:l[e]};return t}function m(e){f=e;for(var t=0;t<p.length;t++)p[t].call(null,e)}function x(e){var t=+e+""===e;return t?+e:e}function N(e,t){if("idle"!==f)throw new Error("check() is only allowed in idle status");"function"==typeof e?(o=!1,t=e):(o=e,t=t||function(e){if(e)throw e}),m("check"),r(function(e,n){if(e)return t(e);if(!n)return m("idle"),void t(null,null);_={},b={},h={};for(var r=0;r<n.c.length;r++)b[n.c[r]]=!0;C=n.h,m("prepare"),E=t,y={};var a=0;S(a),"prepare"===f&&0===v&&0===g&&O()})}function w(e,t){if(b[e]&&_[e]){_[e]=!1;for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(y[n]=t[n]);0===--g&&0===v&&O()}}function S(e){b[e]?(_[e]=!0,g++,n(e)):h[e]=!0}function O(){m("ready");var e=E;if(E=null,e)if(o)T(o,e);else{var t=[];for(var n in y)Object.prototype.hasOwnProperty.call(y,n)&&t.push(x(n));e(null,t)}}function T(t,n){function r(e){for(var t=[e],n={},r=t.slice();r.length>0;){var i=r.pop(),e=D[i];if(e&&!e.hot._selfAccepted){if(e.hot._selfDeclined)return new Error("Aborted because of self decline: "+i);if(0===i)return;for(var o=0;o<e.parents.length;o++){var s=e.parents[o],l=D[s];if(l.hot._declinedDependencies[i])return new Error("Aborted because of declined dependency: "+i+" in "+s);t.indexOf(s)>=0||(l.hot._acceptedDependencies[i]?(n[s]||(n[s]=[]),a(n[s],[i])):(delete n[s],t.push(s),r.push(s)))}}}return[t,n]}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];e.indexOf(r)<0&&e.push(r)}}if("ready"!==f)throw new Error("apply() is only allowed in ready status");"function"==typeof t?(n=t,t={}):t&&"object"==typeof t?n=n||function(e){if(e)throw e}:(t={},n=n||function(e){if(e)throw e});var i={},o=[],u={};for(var d in y)if(Object.prototype.hasOwnProperty.call(y,d)){var p=x(d),g=r(p);if(!g){if(t.ignoreUnaccepted)continue;return m("abort"),n(new Error("Aborted because "+p+" is not accepted"))}if(g instanceof Error)return m("abort"),n(g);u[p]=y[p],a(o,g[0]);for(var p in g[1])Object.prototype.hasOwnProperty.call(g[1],p)&&(i[p]||(i[p]=[]),a(i[p],g[1][p]))}for(var v=[],h=0;h<o.length;h++){var p=o[h];D[p]&&D[p].hot._selfAccepted&&v.push({module:p,errorHandler:D[p].hot._selfAccepted})}m("dispose");for(var _=o.slice();_.length>0;){var p=_.pop(),b=D[p];if(b){for(var E={},N=b.hot._disposeHandlers,w=0;w<N.length;w++){var S=N[w];S(E)}l[p]=E,b.hot.active=!1,delete D[p];for(var w=0;w<b.children.length;w++){var O=D[b.children[w]];if(O){var T=O.parents.indexOf(p);T>=0&&O.parents.splice(T,1)}}}}for(var p in i)if(Object.prototype.hasOwnProperty.call(i,p))for(var b=D[p],M=i[p],w=0;w<M.length;w++){var R=M[w],T=b.children.indexOf(R);T>=0&&b.children.splice(T,1)}m("apply"),s=C;for(var p in u)Object.prototype.hasOwnProperty.call(u,p)&&(e[p]=u[p]);var I=null;for(var p in i)if(Object.prototype.hasOwnProperty.call(i,p)){for(var b=D[p],M=i[p],k=[],h=0;h<M.length;h++){var R=M[h],S=b.hot._acceptedDependencies[R];k.indexOf(S)>=0||k.push(S)}for(var h=0;h<k.length;h++){var S=k[h];try{S(i)}catch(P){I||(I=P)}}}for(var h=0;h<v.length;h++){var L=v[h],p=L.module;c=[p];try{A(p)}catch(P){if("function"==typeof L.errorHandler)try{L.errorHandler(P)}catch(P){I||(I=P)}else I||(I=P)}}return I?(m("fail"),n(I)):(m("idle"),void n(null,o))}function A(t){if(D[t])return D[t].exports;var n=D[t]={exports:{},id:t,loaded:!1,hot:d(t),parents:c,children:[]};return e[t].call(n.exports,n,n.exports,u(t)),n.loaded=!0,n.exports}var t=this.webpackHotUpdate;this.webpackHotUpdate=function(e,n){w(e,n),t&&t(e,n)};var a=!1;try{Object.defineProperty({},"x",{get:function(){}}),a=!0}catch(i){}var E,y,C,o=!0,s="330e80994a630ccfb954",l={},c=[],p=[],f="idle",g=0,v=0,h={},_={},b={},D={};return A.m=e,A.c=D,A.p="/build/",A.h=function(){return s},u(0)(0)}([function(e,t,n){n(12),n(86),e.exports=n(88)},,,,,,,,,,,,function(e,t,n){(function(e){function p(e,t){return"info"===d&&"info"===e?console.log(t):["info","warning"].indexOf(d)>=0&&"warning"===e?console.warn(t):["info","warning","error"].indexOf(d)>=0&&"error"===e?console.error(t):void 0}function h(){l?(p("info","[WDS] App hot update..."),window.postMessage("webpackHotUpdate"+u,"*")):(p("info","[WDS] App updated. Reloading..."),window.location.reload())}var o,t=n(13),r=n(19),a=n(21);o=t.parse(e.substr(1));var l=!1,c=!0,u="",d="info",f={hot:function(){l=!0,p("info","[WDS] Hot Module Replacement enabled.")},invalid:function(){p("info","[WDS] App updated. Recompiling...")},hash:function(e){u=e},"still-ok":function(){p("info","[WDS] Nothing changed.")},"log-level":function(e){d=e},ok:function(){return c?c=!1:void h()},warnings:function(e){p("info","[WDS] Warnings while compiling.");for(var t=0;t<e.length;t++)console.warn(r(e[t]));return c?c=!1:void h()},errors:function(e){p("info","[WDS] Errors while compiling.");for(var t=0;t<e.length;t++)console.error(r(e[t]));return c?c=!1:void h()},"proxy-error":function(e){p("info","[WDS] Proxy error.");for(var t=0;t<e.length;t++)p("error",r(e[t]));return c?c=!1:void 0},close:function(){p("error","[WDS] Disconnected!")}},m=o.hostname,g=o.protocol;"0.0.0.0"===o.hostname&&window.location.hostname&&~window.location.protocol.indexOf("http")&&(m=window.location.hostname),!m||"https:"!==window.location.protocol&&"0.0.0.0"!==o.hostname||(g=window.location.protocol);var v=t.format({protocol:g,auth:o.auth,hostname:m,port:"0"===o.port?window.location.port:o.port,pathname:null==o.path||"/"===o.path?"/sockjs-node":o.path});a(v,f)}).call(t,"?http://localhost:9000")},function(e,t,n){function a(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function b(e,t,n){if(e&&N(e)&&e instanceof a)return e;var r=new a;return r.parse(e,t,n),r}function E(e){return x(e)&&(e=b(e)),e instanceof a?e.format():a.prototype.format.call(e)}function y(e,t){return b(e,!1,!0).resolve(t)}function C(e,t){return e?b(e,!1,!0).resolveObject(t):t}function x(e){return"string"==typeof e}function N(e){return"object"==typeof e&&null!==e}function w(e){return null===e}function S(e){return null==e}var r=n(14);t.parse=b,t.resolve=y,t.resolveObject=C,t.format=E,t.Url=a;var i=/^([a-z0-9.+-]+:)/i,o=/:[0-9]*$/,s=["<",">",'"',"`"," ","\r","\n"," "],l=["{","}","|","\\","^","`"].concat(s),c=["'"].concat(l),u=["%","/","?",";","#"].concat(c),d=["/","?","#"],p=255,f=/^[a-z0-9A-Z_-]{0,63}$/,m=/^([a-z0-9A-Z_-]{0,63})(.*)$/,g={javascript:!0,"javascript:":!0},v={javascript:!0,"javascript:":!0},h={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},_=n(16);a.prototype.parse=function(e,t,n){if(!x(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var a=e;a=a.trim();var o=i.exec(a);if(o){o=o[0];var s=o.toLowerCase();this.protocol=s,a=a.substr(o.length)}if(n||o||a.match(/^\/\/[^@\/]+@[^@\/]+/)){var l="//"===a.substr(0,2);!l||o&&v[o]||(a=a.substr(2),this.slashes=!0)}if(!v[o]&&(l||o&&!h[o])){for(var b=-1,E=0;E<d.length;E++){var y=a.indexOf(d[E]);-1!==y&&(-1===b||b>y)&&(b=y)}var C,N;N=-1===b?a.lastIndexOf("@"):a.lastIndexOf("@",b),-1!==N&&(C=a.slice(0,N),a=a.slice(N+1),this.auth=decodeURIComponent(C)),b=-1;for(var E=0;E<u.length;E++){var y=a.indexOf(u[E]);-1!==y&&(-1===b||b>y)&&(b=y)}-1===b&&(b=a.length),this.host=a.slice(0,b),a=a.slice(b),this.parseHost(),this.hostname=this.hostname||"";var w="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!w)for(var S=this.hostname.split(/\./),E=0,O=S.length;O>E;E++){var T=S[E];if(T&&!T.match(f)){for(var D="",A=0,M=T.length;M>A;A++)D+=T.charCodeAt(A)>127?"x":T[A];if(!D.match(f)){var R=S.slice(0,E),I=S.slice(E+1),k=T.match(m);k&&(R.push(k[1]),I.unshift(k[2])),I.length&&(a="/"+I.join(".")+a),this.hostname=R.join(".");break}}}if(this.hostname.length>p?this.hostname="":this.hostname=this.hostname.toLowerCase(),!w){for(var P=this.hostname.split("."),L=[],E=0;E<P.length;++E){var U=P[E];L.push(U.match(/[^A-Za-z0-9_-]/)?"xn--"+r.encode(U):U)}this.hostname=L.join(".")}var B=this.port?":"+this.port:"",F=this.hostname||"";this.host=F+B,this.href+=this.host,w&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==a[0]&&(a="/"+a))}if(!g[s])for(var E=0,O=c.length;O>E;E++){var j=c[E],G=encodeURIComponent(j);G===j&&(G=escape(j)),a=a.split(j).join(G)}var V=a.indexOf("#");-1!==V&&(this.hash=a.substr(V),a=a.slice(0,V));var q=a.indexOf("?");if(-1!==q?(this.search=a.substr(q),this.query=a.substr(q+1),t&&(this.query=_.parse(this.query)),a=a.slice(0,q)):t&&(this.search="",this.query={}),a&&(this.pathname=a),h[s]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var B=this.pathname||"",U=this.search||"";this.path=B+U}return this.href=this.format(),this},a.prototype.format=function(){var e=this.auth||"";e&&(e=encodeURIComponent(e),e=e.replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",a=!1,i="";this.host?a=e+this.host:this.hostname&&(a=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(a+=":"+this.port)),this.query&&N(this.query)&&Object.keys(this.query).length&&(i=_.stringify(this.query));var o=this.search||i&&"?"+i||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||h[t])&&a!==!1?(a="//"+(a||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):a||(a=""),r&&"#"!==r.charAt(0)&&(r="#"+r),o&&"?"!==o.charAt(0)&&(o="?"+o),n=n.replace(/[?#]/g,function(e){return encodeURIComponent(e)}),o=o.replace("#","%23"),t+a+n+o+r},a.prototype.resolve=function(e){return this.resolveObject(b(e,!1,!0)).format()},a.prototype.resolveObject=function(e){if(x(e)){var t=new a;t.parse(e,!1,!0),e=t}var n=new a;if(Object.keys(this).forEach(function(e){n[e]=this[e]},this),n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol)return Object.keys(e).forEach(function(t){"protocol"!==t&&(n[t]=e[t])}),h[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n;if(e.protocol&&e.protocol!==n.protocol){if(!h[e.protocol])return Object.keys(e).forEach(function(t){n[t]=e[t]}),n.href=n.format(),n;if(n.protocol=e.protocol,e.host||v[e.protocol])n.pathname=e.pathname;else{for(var r=(e.pathname||"").split("/");r.length&&!(e.host=r.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==r[0]&&r.unshift(""),r.length<2&&r.unshift(""),n.pathname=r.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var i=n.pathname||"",o=n.search||"";n.path=i+o}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var s=n.pathname&&"/"===n.pathname.charAt(0),l=e.host||e.pathname&&"/"===e.pathname.charAt(0),c=l||s||n.host&&e.pathname,u=c,d=n.pathname&&n.pathname.split("/")||[],r=e.pathname&&e.pathname.split("/")||[],p=n.protocol&&!h[n.protocol];if(p&&(n.hostname="",n.port=null,n.host&&(""===d[0]?d[0]=n.host:d.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===r[0]?r[0]=e.host:r.unshift(e.host)),e.host=null),c=c&&(""===r[0]||""===d[0])),l)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,d=r;else if(r.length)d||(d=[]),d.pop(),d=d.concat(r),n.search=e.search,n.query=e.query;else if(!S(e.search)){if(p){n.hostname=n.host=d.shift();var f=n.host&&n.host.indexOf("@")>0?n.host.split("@"):!1;f&&(n.auth=f.shift(),n.host=n.hostname=f.shift())}return n.search=e.search,n.query=e.query,w(n.pathname)&&w(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!d.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var m=d.slice(-1)[0],g=(n.host||e.host)&&("."===m||".."===m)||""===m,_=0,b=d.length;b>=0;b--)m=d[b],"."==m?d.splice(b,1):".."===m?(d.splice(b,1),_++):_&&(d.splice(b,1),_--);if(!c&&!u)for(;_--;_)d.unshift("..");!c||""===d[0]||d[0]&&"/"===d[0].charAt(0)||d.unshift(""),g&&"/"!==d.join("/").substr(-1)&&d.push("");var E=""===d[0]||d[0]&&"/"===d[0].charAt(0);if(p){n.hostname=n.host=E?"":d.length?d.shift():"";var f=n.host&&n.host.indexOf("@")>0?n.host.split("@"):!1;f&&(n.auth=f.shift(),n.host=n.hostname=f.shift())}return c=c||n.host&&d.length,c&&!E&&d.unshift(""),d.length?n.pathname=d.join("/"):(n.pathname=null,n.path=null),w(n.pathname)&&w(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},a.prototype.parseHost=function(){var e=this.host,t=o.exec(e);t&&(t=t[0],":"!==t&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t,n){var r;(function(e,a){!function(i){function O(e){throw RangeError(C[e])}function T(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function D(e,t){var n=e.split("@"),r="";n.length>1&&(r=n[0]+"@",e=n[1]),e=e.replace(y,".");var a=e.split("."),i=T(a,t).join(".");return r+i}function A(e){for(var a,i,t=[],n=0,r=e.length;r>n;)a=e.charCodeAt(n++),a>=55296&&56319>=a&&r>n?(i=e.charCodeAt(n++),56320==(64512&i)?t.push(((1023&a)<<10)+(1023&i)+65536):(t.push(a),n--)):t.push(a);return t}function M(e){return T(e,function(e){var t="";return e>65535&&(e-=65536,t+=w(e>>>10&1023|55296),e=56320|1023&e),t+=w(e)}).join("")}function R(e){return 10>e-48?e-22:26>e-65?e-65:26>e-97?e-97:d}function I(e,t){return e+22+75*(26>e)-((0!=t)<<5)}function k(e,t,n){var r=0;for(e=n?N(e/g):e>>1,e+=N(e/t);e>x*f>>1;r+=d)e=N(e/x);return N(r+(x+1)*e/(e+m))}function P(e){var r,s,l,c,m,g,b,E,y,C,t=[],n=e.length,a=0,i=h,o=v;for(s=e.lastIndexOf(_),0>s&&(s=0),l=0;s>l;++l)e.charCodeAt(l)>=128&&O("not-basic"),t.push(e.charCodeAt(l));for(c=s>0?s+1:0;n>c;){for(m=a,g=1,b=d;c>=n&&O("invalid-input"),E=R(e.charCodeAt(c++)),(E>=d||E>N((u-a)/g))&&O("overflow"),a+=E*g,y=o>=b?p:b>=o+f?f:b-o,!(y>E);b+=d)C=d-y,g>N(u/C)&&O("overflow"),g*=C;r=t.length+1,o=k(a-m,r,0==m),N(a/r)>u-i&&O("overflow"),i+=N(a/r),a%=r,t.splice(a++,0,i)}return M(t)}function L(e){var t,n,r,a,i,o,s,l,c,m,g,E,y,C,x,b=[];for(e=A(e),E=e.length,t=h,n=0,i=v,o=0;E>o;++o)g=e[o],128>g&&b.push(w(g));for(r=a=b.length,a&&b.push(_);E>r;){for(s=u,o=0;E>o;++o)g=e[o],g>=t&&s>g&&(s=g);for(y=r+1,s-t>N((u-n)/y)&&O("overflow"),n+=(s-t)*y,t=s,o=0;E>o;++o)if(g=e[o],t>g&&++n>u&&O("overflow"),g==t){for(l=n,c=d;m=i>=c?p:c>=i+f?f:c-i,!(m>l);c+=d)x=l-m,C=d-m,b.push(w(I(m+x%C,0))),l=N(x/C);b.push(w(I(l,0))),i=k(n,y,r==a),n=0,++r}++n,++t}return b.join("")}function U(e){return D(e,function(e){return b.test(e)?P(e.slice(4).toLowerCase()):e})}function B(e){return D(e,function(e){return E.test(e)?"xn--"+L(e):e})}var l=("object"==typeof t&&t&&!t.nodeType&&t,"object"==typeof e&&e&&!e.nodeType&&e,"object"==typeof a&&a);(l.global===l||l.window===l||l.self===l)&&(i=l);var c,u=2147483647,d=36,p=1,f=26,m=38,g=700,v=72,h=128,_="-",b=/^xn--/,E=/[^\x20-\x7E]/,y=/[\x2E\u3002\uFF0E\uFF61]/g,C={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},x=d-p,N=Math.floor,w=String.fromCharCode;c={version:"1.3.2",ucs2:{decode:A,encode:M},decode:P,encode:L,toASCII:B,toUnicode:U},r=function(){return c}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))}(this)}).call(t,n(15)(e),function(){return this}())},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children=[],e.webpackPolyfill=1),e}},function(e,t,n){"use strict";t.decode=t.parse=n(17),t.encode=t.stringify=n(18)},function(e,t){"use strict";function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,r,a){t=t||"&",r=r||"=";var i={};if("string"!=typeof e||0===e.length)return i;var o=/\+/g;e=e.split(t);var s=1e3;a&&"number"==typeof a.maxKeys&&(s=a.maxKeys);var l=e.length;s>0&&l>s&&(l=s);for(var c=0;l>c;++c){var p,f,m,g,u=e[c].replace(o,"%20"),d=u.indexOf(r);d>=0?(p=u.substr(0,d),f=u.substr(d+1)):(p=u,f=""),m=decodeURIComponent(p),g=decodeURIComponent(f),n(i,m)?Array.isArray(i[m])?i[m].push(g):i[m]=[i[m],g]:i[m]=g}return i}},function(e,t){"use strict";var n=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,r,a){return t=t||"&",r=r||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map(function(a){var i=encodeURIComponent(n(a))+r;return Array.isArray(e[a])?e[a].map(function(e){return i+encodeURIComponent(n(e))}).join(t):i+encodeURIComponent(n(e[a]))}).join(t):a?encodeURIComponent(n(a))+r+encodeURIComponent(n(e)):""}},function(e,t,n){"use strict";var r=n(20)();e.exports=function(e){return"string"==typeof e?e.replace(r,""):e}},function(e,t){"use strict";e.exports=function(){return/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g}},function(e,t,n){function o(e,t){i=new r(e),i.onopen=function(){a=0},i.onclose=function(){if(0===a&&t.close(),i=null,10>=a){var n=1e3*Math.pow(2,a)+100*Math.random();a+=1,setTimeout(function(){o(e,t)},n)}},i.onmessage=function(e){var n=JSON.parse(e.data);t[n.type]&&t[n.type](n.data)}}var r=n(22),a=0,i=null;e.exports=o},function(e,t,n){(function(t){"use strict";var r=n(23);e.exports=n(70)(r),"_sockjs_onload"in t&&setTimeout(t._sockjs_onload,1)}).call(t,function(){return this}())},function(e,t,n){"use strict";e.exports=[n(24),n(41),n(51),n(53),n(56)(n(53)),n(63),n(56)(n(63)),n(65),n(66),n(56)(n(65)),n(67)]},function(e,t,n){(function(t){"use strict";function c(e,t,n){if(!c.enabled())throw new Error("Transport created when disabled");o.call(this),l("constructor",e);var i=this,u=a.addPath(e,"/websocket");u="https"===u.slice(0,5)?"wss"+u.slice(5):"ws"+u.slice(4),this.url=u,this.ws=new s(this.url,[],n),this.ws.onmessage=function(e){l("message event",e.data),i.emit("message",e.data)},this.unloadRef=r.unloadAdd(function(){l("unload"),i.ws.close()}),this.ws.onclose=function(e){l("close event",e.code,e.reason),i.emit("close",e.code,e.reason),i._cleanup()},this.ws.onerror=function(e){l("error event",e),i.emit("close",1006,"WebSocket connection broken"),i._cleanup()}}var r=n(26),a=n(29),i=n(37),o=n(38).EventEmitter,s=n(40),l=function(){};"production"!==t.env.NODE_ENV&&(l=n(34)("sockjs-client:websocket")),i(c,o),c.prototype.send=function(e){var t="["+e+"]";l("send",t),this.ws.send(t)},c.prototype.close=function(){l("close"),this.ws&&this.ws.close(),this._cleanup()},c.prototype._cleanup=function(){l("_cleanup");var e=this.ws;e&&(e.onmessage=e.onclose=e.onerror=null),r.unloadDel(this.unloadRef),this.unloadRef=this.ws=null,this.removeAllListeners()},c.enabled=function(){return l("enabled"),!!s},c.transportName="websocket",c.roundTrips=2,e.exports=c}).call(t,n(25))},function(e,t){function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(e){if(r===setTimeout)return setTimeout(e,0);if((r===i||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}function l(e){if(a===clearTimeout)return clearTimeout(e);if((a===o||!a)&&clearTimeout)return a=clearTimeout,clearTimeout(e);try{return a(e)}catch(t){try{return a.call(null,e)}catch(t){return a.call(this,e)}}}function f(){u&&d&&(u=!1,d.length?c=d.concat(c):p=-1,c.length&&m())}function m(){if(!u){var e=s(f);u=!0;for(var t=c.length;t;){for(d=c,c=[];++p<t;)d&&d[p].run();p=-1,t=c.length}d=null,u=!1,l(e)}}function g(e,t){this.fun=e,this.array=t}function v(){}var r,a,n=e.exports={};!function(){try{r="function"==typeof setTimeout?setTimeout:i}catch(e){r=i}try{a="function"==typeof clearTimeout?clearTimeout:o}catch(e){a=o}}();var d,c=[],u=!1,p=-1;n.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new g(e,t)),1!==c.length||u||s(m)},g.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=v,n.addListener=v,n.once=v,n.off=v,n.removeListener=v,n.removeAllListeners=v,n.emit=v,n.binding=function(e){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(e){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},function(e,t,n){(function(t){"use strict";var r=n(27),a={},i=!1,o=t.chrome&&t.chrome.app&&t.chrome.app.runtime;e.exports={attachEvent:function(e,n){"undefined"!=typeof t.addEventListener?t.addEventListener(e,n,!1):t.document&&t.attachEvent&&(t.document.attachEvent("on"+e,n),t.attachEvent("on"+e,n))},detachEvent:function(e,n){"undefined"!=typeof t.addEventListener?t.removeEventListener(e,n,!1):t.document&&t.detachEvent&&(t.document.detachEvent("on"+e,n),t.detachEvent("on"+e,n))},unloadAdd:function(e){if(o)return null;var t=r.string(8);return a[t]=e,i&&setTimeout(this.triggerUnloadCallbacks,0),t},unloadDel:function(e){e in a&&delete a[e]},triggerUnloadCallbacks:function(){for(var e in a)a[e](),delete a[e]}};var s=function(){i||(i=!0,e.exports.triggerUnloadCallbacks())};o||e.exports.attachEvent("unload",s)}).call(t,function(){return this}())},function(e,t,n){"use strict";var r=n(28),a="abcdefghijklmnopqrstuvwxyz012345";e.exports={string:function(e){for(var t=a.length,n=r.randomBytes(e),i=[],o=0;e>o;o++)i.push(a.substr(n[o]%t,1));return i.join("")},number:function(e){return Math.floor(Math.random()*e)},numberString:function(e){var t=(""+(e-1)).length,n=new Array(t+1).join("0");return(n+this.number(e)).slice(-t)}}},function(e,t){(function(t){"use strict";t.crypto&&t.crypto.getRandomValues?e.exports.randomBytes=function(e){var n=new Uint8Array(e);return t.crypto.getRandomValues(n),n}:e.exports.randomBytes=function(e){for(var t=new Array(e),n=0;e>n;n++)t[n]=Math.floor(256*Math.random());return t}}).call(t,function(){return this}())},function(e,t,n){(function(t){"use strict";var r=n(30),a=function(){};"production"!==t.env.NODE_ENV&&(a=n(34)("sockjs-client:utils:url")),e.exports={getOrigin:function(e){if(!e)return null;var t=new r(e);if("file:"===t.protocol)return null;var n=t.port;return n||(n="https:"===t.protocol?"443":"80"),t.protocol+"//"+t.hostname+":"+n},isOriginEqual:function(e,t){var n=this.getOrigin(e)===this.getOrigin(t);return a("same",e,t,n),n},isSchemeEqual:function(e,t){return e.split(":")[0]===t.split(":")[0]},addPath:function(e,t){var n=e.split("?");return n[0]+t+(n[1]?"?"+n[1]:"")},addQuery:function(e,t){return e+(-1===e.indexOf("?")?"?"+t:"&"+t)}}}).call(t,n(25))},function(e,t,n){"use strict";function l(e){var t=o.exec(e);return{protocol:t[1]?t[1].toLowerCase():"",slashes:!!t[2],rest:t[3]}}function c(e,t){for(var n=(t||"/").split("/").slice(0,-1).concat(e.split("/")),r=n.length,a=n[r-1],i=!1,o=0;r--;)"."===n[r]?n.splice(r,1):".."===n[r]?(n.splice(r,1),o++):o&&(0===r&&(i=!0),n.splice(r,1),o--);return i&&n.unshift(""),("."===a||".."===a)&&n.push(""),n.join("/")}function u(e,t,n){if(!(this instanceof u))return new u(e,t,n);var o,d,p,f,m,g,v=s.slice(),h=typeof t,_=this,b=0;for("object"!==h&&"string"!==h&&(n=t,t=null),n&&"function"!=typeof n&&(n=i.parse),t=a(t),d=l(e||""),o=!d.protocol&&!d.slashes,_.slashes=d.slashes||o&&t.slashes,_.protocol=d.protocol||t.protocol||"",e=d.rest,d.slashes||(v[2]=[/(.*)/,"pathname"]);b<v.length;b++)f=v[b],p=f[0],g=f[1],p!==p?_[g]=e:"string"==typeof p?~(m=e.indexOf(p))&&("number"==typeof f[2]?(_[g]=e.slice(0,m),e=e.slice(m+f[2])):(_[g]=e.slice(m),e=e.slice(0,m))):(m=p.exec(e))&&(_[g]=m[1],e=e.slice(0,m.index)),_[g]=_[g]||(o&&f[3]?t[g]||"":""),f[4]&&(_[g]=_[g].toLowerCase());n&&(_.query=n(_.query)),o&&t.slashes&&"/"!==_.pathname.charAt(0)&&(""!==_.pathname||""!==t.pathname)&&(_.pathname=c(_.pathname,t.pathname)),r(_.port,_.protocol)||(_.host=_.hostname,_.port=""),_.username=_.password="",_.auth&&(f=_.auth.split(":"),_.username=f[0]||"",_.password=f[1]||""),_.origin=_.protocol&&_.host&&"file:"!==_.protocol?_.protocol+"//"+_.host:"null",_.href=_.toString()}var r=n(31),a=n(32),i=n(33),o=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\S\s]*)/i,s=[["#","hash"],["?","query"],["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d+)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]];u.prototype.set=function(e,t,n){var a=this;switch(e){case"query":"string"==typeof t&&t.length&&(t=(n||i.parse)(t)),a[e]=t;break;case"port":a[e]=t,r(t,a.protocol)?t&&(a.host=a.hostname+":"+t):(a.host=a.hostname,a[e]="");break;case"hostname":a[e]=t,a.port&&(t+=":"+a.port),a.host=t;break;case"host":a[e]=t,/:\d+$/.test(t)?(t=t.split(":"),a.port=t.pop(),a.hostname=t.join(":")):(a.hostname=t,a.port="");break;case"protocol":a.protocol=t.toLowerCase(),a.slashes=!n;break;case"pathname":a.pathname="/"===t.charAt(0)?t:"/"+t;break;default:a[e]=t}for(var o=0;o<s.length;o++){var l=s[o];l[4]&&(a[l[1]]=a[l[1]].toLowerCase())}return a.origin=a.protocol&&a.host&&"file:"!==a.protocol?a.protocol+"//"+a.host:"null",a.href=a.toString(),a},u.prototype.toString=function(e){e&&"function"==typeof e||(e=i.stringify);var t,n=this,r=n.protocol;r&&":"!==r.charAt(r.length-1)&&(r+=":");var a=r+(n.slashes?"//":"");return n.username&&(a+=n.username,n.password&&(a+=":"+n.password),a+="@"),a+=n.host+n.pathname,t="object"==typeof n.query?e(n.query):n.query,t&&(a+="?"!==t.charAt(0)?"?"+t:t),n.hash&&(a+=n.hash),a},u.extractProtocol=l,u.location=a,u.qs=i,e.exports=u},function(e,t){"use strict";e.exports=function(e,t){if(t=t.split(":")[0],e=+e,!e)return!1;switch(t){case"http":case"ws":return 80!==e;case"https":case"wss":return 443!==e;case"ftp":return 21!==e;case"gopher":return 70!==e;case"file":return!1}return 0!==e}},function(e,t,n){(function(t){"use strict";var i,r=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,a={hash:1,query:1};e.exports=function(e){e=e||t.location||{},i=i||n(30);var l,o={},s=typeof e;if("blob:"===e.protocol)o=new i(unescape(e.pathname),{});else if("string"===s){o=new i(e,{});for(l in a)delete o[l]}else if("object"===s){for(l in e)l in a||(o[l]=e[l]);void 0===o.slashes&&(o.slashes=r.test(e.href))}return o}}).call(t,function(){return this}())},function(e,t){"use strict";function r(e){for(var r,t=/([^=?&]+)=?([^&]*)/g,n={};r=t.exec(e);n[decodeURIComponent(r[1])]=decodeURIComponent(r[2]));return n}function a(e,t){t=t||"";var r=[];"string"!=typeof t&&(t="?");for(var a in e)n.call(e,a)&&r.push(encodeURIComponent(a)+"="+encodeURIComponent(e[a]));return r.length?t+r.join("&"):""}var n=Object.prototype.hasOwnProperty;t.stringify=a,t.parse=r},function(e,t,n){function r(){return"WebkitAppearance"in document.documentElement.style||window.console&&(console.firebug||console.exception&&console.table)||navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31}function a(){var e=arguments,n=this.useColors;if(e[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+e[0]+(n?"%c ":" ")+"+"+t.humanize(this.diff),!n)return e;var r="color: "+this.color;e=[e[0],r,"color: inherit"].concat(Array.prototype.slice.call(e,1));var a=0,i=0;return e[0].replace(/%[a-z%]/g,function(e){"%%"!==e&&(a++,"%c"===e&&(i=a))}),e.splice(i,0,r),e}function i(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function o(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(n){}}function s(){var e;try{e=t.storage.debug}catch(n){}return e}function l(){try{return window.localStorage}catch(e){}}t=e.exports=n(35),t.log=i,t.formatArgs=a,t.save=o,t.load=s,t.useColors=r,t.storage="undefined"!=typeof chrome&&"undefined"!=typeof chrome.storage?chrome.storage.local:l(),t.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],t.formatters.j=function(e){return JSON.stringify(e)},t.enable(s())},function(e,t,n){function i(){return t.colors[r++%t.colors.length]}function o(e){function n(){}function r(){var e=r,n=+new Date,o=n-(a||n);e.diff=o,e.prev=a,e.curr=n,a=n,null==e.useColors&&(e.useColors=t.useColors()),null==e.color&&e.useColors&&(e.color=i());var s=Array.prototype.slice.call(arguments);s[0]=t.coerce(s[0]),"string"!=typeof s[0]&&(s=["%o"].concat(s));var l=0;s[0]=s[0].replace(/%([a-z%])/g,function(n,r){if("%%"===n)return n;l++;var a=t.formatters[r];if("function"==typeof a){var i=s[l];n=a.call(e,i),s.splice(l,1),l--}return n}),"function"==typeof t.formatArgs&&(s=t.formatArgs.apply(e,s));var c=r.log||t.log||console.log.bind(console);c.apply(e,s)}n.enabled=!1,r.enabled=!0;var o=t.enabled(e)?r:n;return o.namespace=e,o}function s(e){t.save(e);for(var n=(e||"").split(/[\s,]+/),r=n.length,a=0;r>a;a++)n[a]&&(e=n[a].replace(/\*/g,".*?"),"-"===e[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")))}function l(){t.enable("")}function c(e){var n,r;for(n=0,r=t.skips.length;r>n;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;r>n;n++)if(t.names[n].test(e))return!0;return!1}function u(e){return e instanceof Error?e.stack||e.message:e}t=e.exports=o,t.coerce=u,t.disable=l,t.enable=s,t.enabled=c,t.humanize=n(36),t.names=[],t.skips=[],t.formatters={};var a,r=0},function(e,t){function s(e){if(e=""+e,!(e.length>1e4)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var s=parseFloat(t[1]),l=(t[2]||"ms").toLowerCase();switch(l){case"years":case"year":case"yrs":case"yr":case"y":return s*o;case"days":case"day":case"d":return s*i;case"hours":case"hour":case"hrs":case"hr":case"h":return s*a;case"minutes":case"minute":case"mins":case"min":case"m":return s*r;case"seconds":case"second":case"secs":case"sec":case"s":return s*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s}}}}function l(e){return e>=i?Math.round(e/i)+"d":e>=a?Math.round(e/a)+"h":e>=r?Math.round(e/r)+"m":e>=n?Math.round(e/n)+"s":e+"ms";
}function c(e){return u(e,i,"day")||u(e,a,"hour")||u(e,r,"minute")||u(e,n,"second")||e+" ms"}function u(e,t,n){return t>e?void 0:1.5*t>e?Math.floor(e/t)+" "+n:Math.ceil(e/t)+" "+n+"s"}var n=1e3,r=60*n,a=60*r,i=24*a,o=365.25*i;e.exports=function(e,t){return t=t||{},"string"==typeof e?s(e):t["long"]?c(e):l(e)}},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},function(e,t,n){"use strict";function i(){a.call(this)}var r=n(37),a=n(39);r(i,a),i.prototype.removeAllListeners=function(e){e?delete this._listeners[e]:this._listeners={}},i.prototype.once=function(e,t){function a(){n.removeListener(e,a),r||(r=!0,t.apply(this,arguments))}var n=this,r=!1;this.on(e,a)},i.prototype.emit=function(){var e=arguments[0],t=this._listeners[e];if(t){for(var n=arguments.length,r=new Array(n-1),a=1;n>a;a++)r[a-1]=arguments[a];for(var i=0;i<t.length;i++)t[i].apply(this,r)}},i.prototype.on=i.prototype.addListener=a.prototype.addEventListener,i.prototype.removeListener=a.prototype.removeEventListener,e.exports.EventEmitter=i},function(e,t){"use strict";function n(){this._listeners={}}n.prototype.addEventListener=function(e,t){e in this._listeners||(this._listeners[e]=[]);var n=this._listeners[e];-1===n.indexOf(t)&&(n=n.concat([t])),this._listeners[e]=n},n.prototype.removeEventListener=function(e,t){var n=this._listeners[e];if(n){var r=n.indexOf(t);return-1!==r?void(n.length>1?this._listeners[e]=n.slice(0,r).concat(n.slice(r+1)):delete this._listeners[e]):void 0}},n.prototype.dispatchEvent=function(){var e=arguments[0],t=e.type,n=1===arguments.length?[e]:Array.apply(null,arguments);if(this["on"+t]&&this["on"+t].apply(this,n),t in this._listeners)for(var r=this._listeners[t],a=0;a<r.length;a++)r[a].apply(this,n)},e.exports=n},function(e,t){(function(t){"use strict";var n=t.WebSocket||t.MozWebSocket;n&&(e.exports=function(e){return new n(e)})}).call(t,function(){return this}())},function(e,t,n){(function(t){"use strict";function c(e){if(!s.enabled&&!o.enabled)throw new Error("Transport created when disabled");a.call(this,e,"/xhr_streaming",i,o)}var r=n(37),a=n(42),i=n(46),o=n(47),s=n(49),l=n(50);r(c,a),c.enabled=function(e){return e.nullOrigin?!1:l.isOpera()?!1:o.enabled},c.transportName="xhr-streaming",c.roundTrips=2,c.needBody=!!t.document,e.exports=c}).call(t,function(){return this}())},function(e,t,n){(function(t){"use strict";function s(e){return function(t,n,r){o("create ajax sender",t,n);var i={};"string"==typeof n&&(i.headers={"Content-type":"text/plain"});var s=a.addPath(t,"/xhr_send"),l=new e("POST",s,n,i);return l.once("finish",function(e){return o("finish",e),l=null,200!==e&&204!==e?r(new Error("http status "+e)):void r()}),function(){o("abort"),l.close(),l=null;var e=new Error("Aborted");e.code=1e3,r(e)}}}function l(e,t,n,r){i.call(this,e,t,s(r),n,r)}var r=n(37),a=n(29),i=n(43),o=function(){};"production"!==t.env.NODE_ENV&&(o=n(34)("sockjs-client:ajax-based")),r(l,i),e.exports=l}).call(t,n(25))},function(e,t,n){(function(t){"use strict";function l(e,t,n,r,l){var c=a.addPath(e,t);s(c);var u=this;i.call(this,e,n),this.poll=new o(r,c,l),this.poll.on("message",function(e){s("poll message",e),u.emit("message",e)}),this.poll.once("close",function(e,t){s("poll close",e,t),u.poll=null,u.emit("close",e,t),u.close()})}var r=n(37),a=n(29),i=n(44),o=n(45),s=function(){};"production"!==t.env.NODE_ENV&&(s=n(34)("sockjs-client:sender-receiver")),r(l,i),l.prototype.close=function(){s("close"),this.removeAllListeners(),this.poll&&(this.poll.abort(),this.poll=null),this.stop()},e.exports=l}).call(t,n(25))},function(e,t,n){(function(t){"use strict";function o(e,t){i(e),a.call(this),this.sendBuffer=[],this.sender=t,this.url=e}var r=n(37),a=n(38).EventEmitter,i=function(){};"production"!==t.env.NODE_ENV&&(i=n(34)("sockjs-client:buffered-sender")),r(o,a),o.prototype.send=function(e){i("send",e),this.sendBuffer.push(e),this.sendStop||this.sendSchedule()},o.prototype.sendScheduleWait=function(){i("sendScheduleWait");var t,e=this;this.sendStop=function(){i("sendStop"),e.sendStop=null,clearTimeout(t)},t=setTimeout(function(){i("timeout"),e.sendStop=null,e.sendSchedule()},25)},o.prototype.sendSchedule=function(){i("sendSchedule",this.sendBuffer.length);var e=this;if(this.sendBuffer.length>0){var t="["+this.sendBuffer.join(",")+"]";this.sendStop=this.sender(this.url,t,function(t){e.sendStop=null,t?(i("error",t),e.emit("close",t.code||1006,"Sending error: "+t),e._cleanup()):e.sendScheduleWait()}),this.sendBuffer=[]}},o.prototype._cleanup=function(){i("_cleanup"),this.removeAllListeners()},o.prototype.stop=function(){i("stop"),this._cleanup(),this.sendStop&&(this.sendStop(),this.sendStop=null)},e.exports=o}).call(t,n(25))},function(e,t,n){(function(t){"use strict";function o(e,t,n){i(t),a.call(this),this.Receiver=e,this.receiveUrl=t,this.AjaxObject=n,this._scheduleReceiver()}var r=n(37),a=n(38).EventEmitter,i=function(){};"production"!==t.env.NODE_ENV&&(i=n(34)("sockjs-client:polling")),r(o,a),o.prototype._scheduleReceiver=function(){i("_scheduleReceiver");var e=this,t=this.poll=new this.Receiver(this.receiveUrl,this.AjaxObject);t.on("message",function(t){i("message",t),e.emit("message",t)}),t.once("close",function(n,r){i("close",n,r,e.pollIsClosing),e.poll=t=null,e.pollIsClosing||("network"===r?e._scheduleReceiver():(e.emit("close",n||1006,r),e.removeAllListeners()))})},o.prototype.abort=function(){i("abort"),this.removeAllListeners(),this.pollIsClosing=!0,this.poll&&this.poll.abort()},e.exports=o}).call(t,n(25))},function(e,t,n){(function(t){"use strict";function o(e,t){i(e),a.call(this);var n=this;this.bufferPosition=0,this.xo=new t("POST",e,null),this.xo.on("chunk",this._chunkHandler.bind(this)),this.xo.once("finish",function(e,t){i("finish",e,t),n._chunkHandler(e,t),n.xo=null;var r=200===e?"network":"permanent";i("close",r),n.emit("close",null,r),n._cleanup()})}var r=n(37),a=n(38).EventEmitter,i=function(){};"production"!==t.env.NODE_ENV&&(i=n(34)("sockjs-client:receiver:xhr")),r(o,a),o.prototype._chunkHandler=function(e,t){if(i("_chunkHandler",e),200===e&&t)for(var n=-1;;this.bufferPosition+=n+1){var r=t.slice(this.bufferPosition);if(n=r.indexOf("\n"),-1===n)break;var a=r.slice(0,n);a&&(i("message",a),this.emit("message",a))}},o.prototype._cleanup=function(){i("_cleanup"),this.removeAllListeners()},o.prototype.abort=function(){i("abort"),this.xo&&(this.xo.close(),i("close"),this.emit("close",null,"user"),this.xo=null),this._cleanup()},e.exports=o}).call(t,n(25))},function(e,t,n){"use strict";function i(e,t,n,r){a.call(this,e,t,n,r)}var r=n(37),a=n(48);r(i,a),i.enabled=a.enabled&&a.supportsCORS,e.exports=i},function(e,t,n){(function(t,r){"use strict";function u(e,t,n,r){c(e,t);var i=this;a.call(this),setTimeout(function(){i._start(e,t,n,r)},0)}var a=n(38).EventEmitter,i=n(37),o=n(26),s=n(29),l=t.XMLHttpRequest,c=function(){};"production"!==r.env.NODE_ENV&&(c=n(34)("sockjs-client:browser:xhr")),i(u,a),u.prototype._start=function(e,t,n,r){var a=this;try{this.xhr=new l}catch(i){}if(!this.xhr)return c("no xhr"),this.emit("finish",0,"no xhr support"),void this._cleanup();t=s.addQuery(t,"t="+ +new Date),this.unloadRef=o.unloadAdd(function(){c("unload cleanup"),a._cleanup(!0)});try{this.xhr.open(e,t,!0),this.timeout&&"timeout"in this.xhr&&(this.xhr.timeout=this.timeout,this.xhr.ontimeout=function(){c("xhr timeout"),a.emit("finish",0,""),a._cleanup(!1)})}catch(d){return c("exception",d),this.emit("finish",0,""),void this._cleanup(!1)}if(r&&r.noCredentials||!u.supportsCORS||(c("withCredentials"),this.xhr.withCredentials="true"),r&&r.headers)for(var p in r.headers)this.xhr.setRequestHeader(p,r.headers[p]);this.xhr.onreadystatechange=function(){if(a.xhr){var t,n,e=a.xhr;switch(c("readyState",e.readyState),e.readyState){case 3:try{n=e.status,t=e.responseText}catch(r){}c("status",n),1223===n&&(n=204),200===n&&t&&t.length>0&&(c("chunk"),a.emit("chunk",n,t));break;case 4:n=e.status,c("status",n),1223===n&&(n=204),(12005===n||12029===n)&&(n=0),c("finish",n,e.responseText),a.emit("finish",n,e.responseText),a._cleanup(!1)}}};try{a.xhr.send(n)}catch(d){a.emit("finish",0,""),a._cleanup(!1)}},u.prototype._cleanup=function(e){if(c("cleanup"),this.xhr){if(this.removeAllListeners(),o.unloadDel(this.unloadRef),this.xhr.onreadystatechange=function(){},this.xhr.ontimeout&&(this.xhr.ontimeout=null),e)try{this.xhr.abort()}catch(t){}this.unloadRef=this.xhr=null}},u.prototype.close=function(){c("close"),this._cleanup(!0)},u.enabled=!!l;var d=["Active"].concat("Object").join("X");!u.enabled&&d in t&&(c("overriding xmlhttprequest"),l=function(){try{return new t[d]("Microsoft.XMLHTTP")}catch(e){return null}},u.enabled=!!new l);var p=!1;try{p="withCredentials"in new l}catch(f){}u.supportsCORS=p,e.exports=u}).call(t,function(){return this}(),n(25))},function(e,t,n){"use strict";function i(e,t,n){a.call(this,e,t,n,{noCredentials:!0})}var r=n(37),a=n(48);r(i,a),i.enabled=a.enabled,e.exports=i},function(e,t){(function(t){"use strict";e.exports={isOpera:function(){return t.navigator&&/opera/i.test(t.navigator.userAgent)},isKonqueror:function(){return t.navigator&&/konqueror/i.test(t.navigator.userAgent)},hasDomain:function(){if(!t.document)return!0;try{return!!t.document.domain}catch(e){return!1}}}}).call(t,function(){return this}())},function(e,t,n){"use strict";function s(e){if(!o.enabled)throw new Error("Transport created when disabled");a.call(this,e,"/xhr_streaming",i,o)}var r=n(37),a=n(42),i=n(46),o=n(52);r(s,a),s.enabled=function(e){return e.cookie_needed||e.nullOrigin?!1:o.enabled&&e.sameScheme},s.transportName="xdr-streaming",s.roundTrips=2,e.exports=s},function(e,t,n){(function(t,r){"use strict";function u(e,t,n){c(e,t);var r=this;a.call(this),setTimeout(function(){r._start(e,t,n)},0)}var a=n(38).EventEmitter,i=n(37),o=n(26),s=n(50),l=n(29),c=function(){};"production"!==t.env.NODE_ENV&&(c=n(34)("sockjs-client:sender:xdr")),i(u,a),u.prototype._start=function(e,t,n){c("_start");var a=this,i=new r.XDomainRequest;t=l.addQuery(t,"t="+ +new Date),i.onerror=function(){c("onerror"),a._error()},i.ontimeout=function(){c("ontimeout"),a._error()},i.onprogress=function(){c("progress",i.responseText),a.emit("chunk",200,i.responseText)},i.onload=function(){c("load"),a.emit("finish",200,i.responseText),a._cleanup(!1)},this.xdr=i,this.unloadRef=o.unloadAdd(function(){a._cleanup(!0)});try{this.xdr.open(e,t),this.timeout&&(this.xdr.timeout=this.timeout),this.xdr.send(n)}catch(s){this._error()}},u.prototype._error=function(){this.emit("finish",0,""),this._cleanup(!1)},u.prototype._cleanup=function(e){if(c("cleanup",e),this.xdr){if(this.removeAllListeners(),o.unloadDel(this.unloadRef),this.xdr.ontimeout=this.xdr.onerror=this.xdr.onprogress=this.xdr.onload=null,e)try{this.xdr.abort()}catch(t){}this.unloadRef=this.xdr=null}},u.prototype.close=function(){c("close"),this._cleanup(!0)},u.enabled=!(!r.XDomainRequest||!s.hasDomain()),e.exports=u}).call(t,n(25),function(){return this}())},function(e,t,n){"use strict";function l(e){if(!l.enabled())throw new Error("Transport created when disabled");a.call(this,e,"/eventsource",i,o)}var r=n(37),a=n(42),i=n(54),o=n(47),s=n(55);r(l,a),l.enabled=function(){return!!s},l.transportName="eventsource",l.roundTrips=2,e.exports=l},function(e,t,n){(function(t){"use strict";function s(e){o(e),a.call(this);var t=this,n=this.es=new i(e);n.onmessage=function(e){o("message",e.data),t.emit("message",decodeURI(e.data))},n.onerror=function(e){o("error",n.readyState,e);var r=2!==n.readyState?"network":"permanent";t._cleanup(),t._close(r)}}var r=n(37),a=n(38).EventEmitter,i=n(55),o=function(){};"production"!==t.env.NODE_ENV&&(o=n(34)("sockjs-client:receiver:eventsource")),r(s,a),s.prototype.abort=function(){o("abort"),this._cleanup(),this._close("user")},s.prototype._cleanup=function(){o("cleanup");var e=this.es;e&&(e.onmessage=e.onerror=null,e.close(),this.es=null)},s.prototype._close=function(e){o("close",e);var t=this;setTimeout(function(){t.emit("close",null,e),t.removeAllListeners()},200)},e.exports=s}).call(t,n(25))},function(e,t){(function(t){e.exports=t.EventSource}).call(t,function(){return this}())},function(e,t,n){(function(t){"use strict";var r=n(37),a=n(57),i=n(62);e.exports=function(e){function n(t,n){a.call(this,e.transportName,t,n)}return r(n,a),n.enabled=function(n,r){if(!t.document)return!1;var o=i.extend({},r);return o.sameOrigin=!0,e.enabled(o)&&a.enabled()},n.transportName="iframe-"+e.transportName,n.needBody=!0,n.roundTrips=a.roundTrips+e.roundTrips-1,n.facadeTransport=e,n}}).call(t,function(){return this}())},function(e,t,n){(function(t){"use strict";function p(e,t,n){if(!p.enabled())throw new Error("Transport created when disabled");i.call(this);var r=this;this.origin=s.getOrigin(n),this.baseUrl=n,this.transUrl=t,this.transport=e,this.windowId=u.string(8);var a=s.addPath(n,"/iframe.html")+"#"+this.windowId;d(e,t,a),this.iframeObj=l.createIframe(a,function(e){d("err callback"),r.emit("close",1006,"Unable to load an iframe ("+e+")"),r.close()}),this.onmessageCallback=this._message.bind(this),c.attachEvent("message",this.onmessageCallback)}var r=n(37),a=n(58),i=n(38).EventEmitter,o=n(60),s=n(29),l=n(61),c=n(26),u=n(27),d=function(){};"production"!==t.env.NODE_ENV&&(d=n(34)("sockjs-client:transport:iframe")),r(p,i),p.prototype.close=function(){if(d("close"),this.removeAllListeners(),this.iframeObj){c.detachEvent("message",this.onmessageCallback);try{this.postMessage("c")}catch(e){}this.iframeObj.cleanup(),this.iframeObj=null,this.onmessageCallback=this.iframeObj=null}},p.prototype._message=function(e){if(d("message",e.data),!s.isOriginEqual(e.origin,this.origin))return void d("not same origin",e.origin,this.origin);var t;try{t=a.parse(e.data)}catch(n){return void d("bad json",e.data)}if(t.windowId!==this.windowId)return void d("mismatched window id",t.windowId,this.windowId);switch(t.type){case"s":this.iframeObj.loaded(),this.postMessage("s",a.stringify([o,this.transport,this.transUrl,this.baseUrl]));break;case"t":this.emit("message",t.data);break;case"c":var r;try{r=a.parse(t.data)}catch(n){return void d("bad json",t.data)}this.emit("close",r[0],r[1]),this.close()}},p.prototype.postMessage=function(e,t){d("postMessage",e,t),this.iframeObj.post(a.stringify({windowId:this.windowId,type:e,data:t||""}),this.origin)},p.prototype.send=function(e){d("send",e),this.postMessage("m",e)},p.enabled=function(){return l.iframeEnabled},p.transportName="iframe",p.roundTrips=2,e.exports=p}).call(t,n(25))},function(e,t,n){var r;(function(e,a){(function(){function u(e,t){function E(e){if(E[e]!==h)return E[e];var a;if("bug-string-char-index"==e)a="a"!="a"[0];else if("json"==e)a=E("json-stringify")&&E("json-parse");else{var o,s='{"a":[1,true,false,null,"\\u0000\\b\\n\\f\\r\\t"]}';if("json-stringify"==e){var l=t.stringify,c="function"==typeof l&&_;if(c){(o=function(){return 1}).toJSON=o;try{c="0"===l(0)&&"0"===l(new n)&&'""'==l(new r)&&l(m)===h&&l(h)===h&&l()===h&&"1"===l(o)&&"[1]"==l([o])&&"[null]"==l([h])&&"null"==l(null)&&"[null,null,null]"==l([h,m,null])&&l({a:[o,!0,!1,null,"\x00\b\n\f\r "]})==s&&"1"===l(null,o)&&"[\n 1,\n 2\n]"==l([1,2],null,1)&&'"-271821-04-20T00:00:00.000Z"'==l(new i(-864e13))&&'"+275760-09-13T00:00:00.000Z"'==l(new i(864e13))&&'"-000001-01-01T00:00:00.000Z"'==l(new i(-621987552e5))&&'"1969-12-31T23:59:59.999Z"'==l(new i(-1))}catch(u){c=!1}}a=c}if("json-parse"==e){var d=t.parse;if("function"==typeof d)try{if(0===d("0")&&!d(!1)){o=d(s);var p=5==o.a.length&&1===o.a[0];if(p){try{p=!d('" "')}catch(u){}if(p)try{p=1!==d("01")}catch(u){}if(p)try{p=1!==d("1.")}catch(u){}}}}catch(u){p=!1}a=p}}return E[e]=!!a}e||(e=l.Object()),t||(t=l.Object());var n=e.Number||l.Number,r=e.String||l.String,a=e.Object||l.Object,i=e.Date||l.Date,s=e.SyntaxError||l.SyntaxError,c=e.TypeError||l.TypeError,d=e.Math||l.Math,p=e.JSON||l.JSON;"object"==typeof p&&p&&(t.stringify=p.stringify,t.parse=p.parse);var g,v,h,f=a.prototype,m=f.toString,_=new i(-0xc782b5b800cec);try{_=-109252==_.getUTCFullYear()&&0===_.getUTCMonth()&&1===_.getUTCDate()&&10==_.getUTCHours()&&37==_.getUTCMinutes()&&6==_.getUTCSeconds()&&708==_.getUTCMilliseconds()}catch(b){}if(!E("json")){var y="[object Function]",C="[object Date]",x="[object Number]",N="[object String]",w="[object Array]",S="[object Boolean]",O=E("bug-string-char-index");if(!_)var T=d.floor,D=[0,31,59,90,120,151,181,212,243,273,304,334],A=function(e,t){return D[t]+365*(e-1970)+T((e-1969+(t=+(t>1)))/4)-T((e-1901+t)/100)+T((e-1601+t)/400)};if((g=f.hasOwnProperty)||(g=function(e){var n,t={};return(t.__proto__=null,t.__proto__={toString:1},t).toString!=m?g=function(e){var t=this.__proto__,n=e in(this.__proto__=null,this);return this.__proto__=t,n}:(n=t.constructor,g=function(e){var t=(this.constructor||n).prototype;return e in this&&!(e in t&&this[e]===t[e])}),t=null,g.call(this,e)}),v=function(e,t){var r,a,i,n=0;(r=function(){this.valueOf=0}).prototype.valueOf=0,a=new r;for(i in a)g.call(a,i)&&n++;return r=a=null,n?v=2==n?function(e,t){var a,n={},r=m.call(e)==y;for(a in e)r&&"prototype"==a||g.call(n,a)||!(n[a]=1)||!g.call(e,a)||t(a)}:function(e,t){var r,a,n=m.call(e)==y;for(r in e)n&&"prototype"==r||!g.call(e,r)||(a="constructor"===r)||t(r);(a||g.call(e,r="constructor"))&&t(r)}:(a=["valueOf","toString","toLocaleString","propertyIsEnumerable","isPrototypeOf","hasOwnProperty","constructor"],v=function(e,t){var r,i,n=m.call(e)==y,s=!n&&"function"!=typeof e.constructor&&o[typeof e.hasOwnProperty]&&e.hasOwnProperty||g;for(r in e)n&&"prototype"==r||!s.call(e,r)||t(r);for(i=a.length;r=a[--i];s.call(e,r)&&t(r));}),v(e,t)},!E("json-stringify")){var M={92:"\\\\",34:'\\"',8:"\\b",12:"\\f",10:"\\n",13:"\\r",9:"\\t"},R="000000",I=function(e,t){return(R+(t||0)).slice(-e)},k="\\u00",P=function(e){for(var t='"',n=0,r=e.length,a=!O||r>10,i=a&&(O?e.split(""