UNPKG

node-red-contrib-uibuilder

Version:

Easily create web UI's for Node-RED using any (or no) front-end library. VueJS and bootstrap-vue included but change as desired.

2 lines 82.2 kB
(()=>{var l=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var ke=l((no,lt)=>{var Jr=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Kr=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];lt.exports=function(t){var r=t,o=t.indexOf("["),s=t.indexOf("]");o!=-1&&s!=-1&&(t=t.substring(0,o)+t.substring(o,s).replace(/:/g,";")+t.substring(s,t.length));for(var n=Jr.exec(t||""),u={},i=14;i--;)u[Kr[i]]=n[i]||"";return o!=-1&&s!=-1&&(u.source=r,u.host=u.host.substring(1,u.host.length-1).replace(/;/g,":"),u.authority=u.authority.replace("[","").replace("]","").replace(/;/g,":"),u.ipv6uri=!0),u.pathNames=Yr(u,u.path),u.queryKey=Gr(u,u.query),u};function Yr(e,t){var r=/\/{2,9}/g,o=t.replace(r,"/").split("/");return(t.substr(0,1)=="/"||t.length===0)&&o.splice(0,1),t.substr(t.length-1,1)=="/"&&o.splice(o.length-1,1),o}function Gr(e,t){var r={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(o,s,n){s&&(r[s]=n)}),r}});var Ae=l((io,ht)=>{var G=1e3,Z=G*60,Q=Z*60,ee=Q*24,Zr=ee*365.25;ht.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return Qr(e);if(r==="number"&&isNaN(e)===!1)return t.long?tn(e):en(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Qr(e){if(e=String(e),!(e.length>100)){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 r=parseFloat(t[1]),o=(t[2]||"ms").toLowerCase();switch(o){case"years":case"year":case"yrs":case"yr":case"y":return r*Zr;case"days":case"day":case"d":return r*ee;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Q;case"minutes":case"minute":case"mins":case"min":case"m":return r*Z;case"seconds":case"second":case"secs":case"sec":case"s":return r*G;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function en(e){return e>=ee?Math.round(e/ee)+"d":e>=Q?Math.round(e/Q)+"h":e>=Z?Math.round(e/Z)+"m":e>=G?Math.round(e/G)+"s":e+"ms"}function tn(e){return ae(e,ee,"day")||ae(e,Q,"hour")||ae(e,Z,"minute")||ae(e,G,"second")||e+" ms"}function ae(e,t,r){if(!(e<t))return e<t*1.5?Math.floor(e/t)+" "+r:Math.ceil(e/t)+" "+r+"s"}});var dt=l((p,pt)=>{p=pt.exports=Se.debug=Se.default=Se;p.coerce=rn;p.disable=nn;p.enable=on;p.enabled=sn;p.humanize=Ae();p.instances=[];p.names=[];p.skips=[];p.formatters={};function an(e){var t=0,r;for(r in e)t=(t<<5)-t+e.charCodeAt(r),t|=0;return p.colors[Math.abs(t)%p.colors.length]}function Se(e){var t;function r(){if(!!r.enabled){var o=r,s=+new Date,n=s-(t||s);o.diff=n,o.prev=t,o.curr=s,t=s;for(var u=new Array(arguments.length),i=0;i<u.length;i++)u[i]=arguments[i];u[0]=p.coerce(u[0]),typeof u[0]!="string"&&u.unshift("%O");var a=0;u[0]=u[0].replace(/%([a-zA-Z%])/g,function(f,h){if(f==="%%")return f;a++;var w=p.formatters[h];if(typeof w=="function"){var B=u[a];f=w.call(o,B),u.splice(a,1),a--}return f}),p.formatArgs.call(o,u);var c=r.log||p.log||console.log.bind(console);c.apply(o,u)}}return r.namespace=e,r.enabled=p.enabled(e),r.useColors=p.useColors(),r.color=an(e),r.destroy=un,typeof p.init=="function"&&p.init(r),p.instances.push(r),r}function un(){var e=p.instances.indexOf(this);return e!==-1?(p.instances.splice(e,1),!0):!1}function on(e){p.save(e),p.names=[],p.skips=[];var t,r=(typeof e=="string"?e:"").split(/[\s,]+/),o=r.length;for(t=0;t<o;t++)!r[t]||(e=r[t].replace(/\*/g,".*?"),e[0]==="-"?p.skips.push(new RegExp("^"+e.substr(1)+"$")):p.names.push(new RegExp("^"+e+"$")));for(t=0;t<p.instances.length;t++){var s=p.instances[t];s.enabled=p.enabled(s.namespace)}}function nn(){p.enable("")}function sn(e){if(e[e.length-1]==="*")return!0;var t,r;for(t=0,r=p.skips.length;t<r;t++)if(p.skips[t].test(e))return!1;for(t=0,r=p.names.length;t<r;t++)if(p.names[t].test(e))return!0;return!1}function rn(e){return e instanceof Error?e.stack||e.message:e}});var z=l((k,gt)=>{k=gt.exports=dt();k.log=cn;k.formatArgs=fn;k.save=ln;k.load=yt;k.useColors=hn;k.storage=typeof chrome!="undefined"&&typeof chrome.storage!="undefined"?chrome.storage.local:pn();k.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function hn(){return typeof window!="undefined"&&window.process&&window.process.type==="renderer"?!0:typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document!="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}k.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}};function fn(e){var t=this.useColors;if(e[0]=(t?"%c":"")+this.namespace+(t?" %c":" ")+e[0]+(t?"%c ":" ")+"+"+k.humanize(this.diff),!!t){var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var o=0,s=0;e[0].replace(/%[a-zA-Z%]/g,function(n){n!=="%%"&&(o++,n==="%c"&&(s=o))}),e.splice(s,0,r)}}function cn(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function ln(e){try{e==null?k.storage.removeItem("debug"):k.storage.debug=e}catch(t){}}function yt(){var e;try{e=k.storage.debug}catch(t){}return!e&&typeof process!="undefined"&&"env"in process&&(e=process.env.DEBUG),e}k.enable(yt());function pn(){try{return window.localStorage}catch(e){}}});var bt=l((oo,mt)=>{var dn=ke(),vt=z()("socket.io-client:url");mt.exports=gn;function gn(e,t){var r=e;t=t||typeof location!="undefined"&&location,e==null&&(e=t.protocol+"//"+t.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=t.protocol+e:e=t.host+e),/^(https?|wss?):\/\//.test(e)||(vt("protocol-less url %s",e),typeof t!="undefined"?e=t.protocol+"//"+e:e="https://"+e),vt("parse %s",e),r=dn(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";var o=r.host.indexOf(":")!==-1,s=o?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+s+":"+r.port,r.href=r.protocol+"://"+s+(t&&t.port===r.port?"":":"+r.port),r}});var H=l((so,Be)=>{typeof Be!="undefined"&&(Be.exports=q);function q(e){if(e)return yn(e)}function yn(e){for(var t in q.prototype)e[t]=q.prototype[t];return e}q.prototype.on=q.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};q.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this};q.prototype.off=q.prototype.removeListener=q.prototype.removeAllListeners=q.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var r=this._callbacks["$"+e];if(!r)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var o,s=0;s<r.length;s++)if(o=r[s],o===t||o.fn===t){r.splice(s,1);break}return r.length===0&&delete this._callbacks["$"+e],this};q.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),r=this._callbacks["$"+e],o=1;o<arguments.length;o++)t[o-1]=arguments[o];if(r){r=r.slice(0);for(var o=0,s=r.length;o<s;++o)r[o].apply(this,t)}return this};q.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};q.prototype.hasListeners=function(e){return!!this.listeners(e).length}});var ue=l((ao,Ct)=>{var mn={}.toString;Ct.exports=Array.isArray||function(e){return mn.call(e)=="[object Array]"}});var qe=l((uo,wt)=>{wt.exports=vn;var bn=typeof Buffer=="function"&&typeof Buffer.isBuffer=="function",Cn=typeof ArrayBuffer=="function",wn=function(e){return typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer};function vn(e){return bn&&Buffer.isBuffer(e)||Cn&&(e instanceof ArrayBuffer||wn(e))}});var kt=l(ce=>{var De=ue(),xt=qe(),Ft=Object.prototype.toString,xn=typeof Blob=="function"||typeof Blob!="undefined"&&Ft.call(Blob)==="[object BlobConstructor]",Fn=typeof File=="function"||typeof File!="undefined"&&Ft.call(File)==="[object FileConstructor]";ce.deconstructPacket=function(e){var t=[],r=e.data,o=e;return o.data=Ee(r,t),o.attachments=t.length,{packet:o,buffers:t}};function Ee(e,t){if(!e)return e;if(xt(e)){var r={_placeholder:!0,num:t.length};return t.push(e),r}else if(De(e)){for(var o=new Array(e.length),s=0;s<e.length;s++)o[s]=Ee(e[s],t);return o}else if(typeof e=="object"&&!(e instanceof Date)){var o={};for(var n in e)o[n]=Ee(e[n],t);return o}return e}ce.reconstructPacket=function(e,t){return e.data=Ne(e.data,t),e.attachments=void 0,e};function Ne(e,t){if(!e)return e;if(e&&e._placeholder)return t[e.num];if(De(e))for(var r=0;r<e.length;r++)e[r]=Ne(e[r],t);else if(typeof e=="object")for(var o in e)e[o]=Ne(e[o],t);return e}ce.removeBlobs=function(e,t){function r(n,u,i){if(!n)return n;if(xn&&n instanceof Blob||Fn&&n instanceof File){o++;var a=new FileReader;a.onload=function(){i?i[u]=this.result:s=this.result,--o||t(s)},a.readAsArrayBuffer(n)}else if(De(n))for(var c=0;c<n.length;c++)r(n[c],c,n);else if(typeof n=="object"&&!xt(n))for(var f in n)r(n[f],f,n)}var o=0,s=e;r(s),o||t(s)}});var le=l(v=>{var Re=z()("socket.io-parser"),kn=H(),Oe=kt(),An=ue(),Sn=qe();v.protocol=4;v.types=["CONNECT","DISCONNECT","EVENT","ACK","ERROR","BINARY_EVENT","BINARY_ACK"];v.CONNECT=0;v.DISCONNECT=1;v.EVENT=2;v.ACK=3;v.ERROR=4;v.BINARY_EVENT=5;v.BINARY_ACK=6;v.Encoder=At;v.Decoder=fe;function At(){}var Bn=v.ERROR+'"encode error"';At.prototype.encode=function(e,t){if(Re("encoding packet %j",e),v.BINARY_EVENT===e.type||v.BINARY_ACK===e.type)qn(e,t);else{var r=St(e);t([r])}};function St(e){var t=""+e.type;if((v.BINARY_EVENT===e.type||v.BINARY_ACK===e.type)&&(t+=e.attachments+"-"),e.nsp&&e.nsp!=="/"&&(t+=e.nsp+","),e.id!=null&&(t+=e.id),e.data!=null){var r=Dn(e.data);if(r!==!1)t+=r;else return Bn}return Re("encoded %j as %s",e,t),t}function Dn(e){try{return JSON.stringify(e)}catch(t){return!1}}function qn(e,t){function r(o){var s=Oe.deconstructPacket(o),n=St(s.packet),u=s.buffers;u.unshift(n),t(u)}Oe.removeBlobs(e,r)}function fe(){this.reconstructor=null}kn(fe.prototype);fe.prototype.add=function(e){var t;if(typeof e=="string")t=En(e),v.BINARY_EVENT===t.type||v.BINARY_ACK===t.type?(this.reconstructor=new Te(t),this.reconstructor.reconPack.attachments===0&&this.emit("decoded",t)):this.emit("decoded",t);else if(Sn(e)||e.base64)if(this.reconstructor)t=this.reconstructor.takeBinaryData(e),t&&(this.reconstructor=null,this.emit("decoded",t));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+e)};function En(e){var t=0,r={type:Number(e.charAt(0))};if(v.types[r.type]==null)return Bt("unknown packet type "+r.type);if(v.BINARY_EVENT===r.type||v.BINARY_ACK===r.type){for(var o=t+1;e.charAt(++t)!=="-"&&t!=e.length;);var s=e.substring(o,t);if(s!=Number(s)||e.charAt(t)!=="-")throw new Error("Illegal attachments");r.attachments=Number(s)}if(e.charAt(t+1)==="/"){for(var o=t+1;++t;){var n=e.charAt(t);if(n===","||t===e.length)break}r.nsp=e.substring(o,t)}else r.nsp="/";var u=e.charAt(t+1);if(u!==""&&Number(u)==u){for(var o=t+1;++t;){var n=e.charAt(t);if(n==null||Number(n)!=n){--t;break}if(t===e.length)break}r.id=Number(e.substring(o,t+1))}if(e.charAt(++t)){var i=Nn(e.substr(t)),a=i!==!1&&(r.type===v.ERROR||An(i));if(a)r.data=i;else return Bt("invalid payload")}return Re("decoded %s as %j",e,r),r}function Nn(e){try{return JSON.parse(e)}catch(t){return!1}}fe.prototype.destroy=function(){this.reconstructor&&this.reconstructor.finishedReconstruction()};function Te(e){this.reconPack=e,this.buffers=[]}Te.prototype.takeBinaryData=function(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){var t=Oe.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),t}return null};Te.prototype.finishedReconstruction=function(){this.reconPack=null,this.buffers=[]};function Bt(e){return{type:v.ERROR,data:"parser error: "+e}}});var qt=l((lo,Pe)=>{try{Pe.exports=typeof XMLHttpRequest!="undefined"&&"withCredentials"in new XMLHttpRequest}catch(e){Pe.exports=!1}});var he=l((ho,Dt)=>{Dt.exports=function(){return typeof self!="undefined"?self:typeof window!="undefined"?window:Function("return this")()}()});var pe=l((po,Et)=>{var Rn=qt(),On=he();Et.exports=function(e){var t=e.xdomain,r=e.xscheme,o=e.enablesXDR;try{if(typeof XMLHttpRequest!="undefined"&&(!t||Rn))return new XMLHttpRequest}catch(s){}try{if(typeof XDomainRequest!="undefined"&&!r&&o)return new XDomainRequest}catch(s){}if(!t)try{return new On[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch(s){}}});var Rt=l((go,Nt)=>{Nt.exports=Object.keys||function(t){var r=[],o=Object.prototype.hasOwnProperty;for(var s in t)o.call(t,s)&&r.push(s);return r}});var _e=l((yo,Ot)=>{var Tn=ue(),Tt=Object.prototype.toString,Pn=typeof Blob=="function"||typeof Blob!="undefined"&&Tt.call(Blob)==="[object BlobConstructor]",_n=typeof File=="function"||typeof File!="undefined"&&Tt.call(File)==="[object FileConstructor]";Ot.exports=de;function de(e){if(!e||typeof e!="object")return!1;if(Tn(e)){for(var t=0,r=e.length;t<r;t++)if(de(e[t]))return!0;return!1}if(typeof Buffer=="function"&&Buffer.isBuffer&&Buffer.isBuffer(e)||typeof ArrayBuffer=="function"&&e instanceof ArrayBuffer||Pn&&e instanceof Blob||_n&&e instanceof File)return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return de(e.toJSON(),!0);for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)&&de(e[o]))return!0;return!1}});var _t=l((mo,Pt)=>{Pt.exports=function(e,t,r){var o=e.byteLength;if(t=t||0,r=r||o,e.slice)return e.slice(t,r);if(t<0&&(t+=o),r<0&&(r+=o),r>o&&(r=o),t>=o||t>=r||o===0)return new ArrayBuffer(0);for(var s=new Uint8Array(e),n=new Uint8Array(r-t),u=t,i=0;u<r;u++,i++)n[i]=s[u];return n.buffer}});var Lt=l((vo,It)=>{It.exports=In;function In(e,t,r){var o=!1;return r=r||Ln,s.count=e,e===0?t():s;function s(n,u){if(s.count<=0)throw new Error("after called too many times");--s.count,n?(o=!0,t(n),t=r):s.count===0&&!o&&t(null,u)}}function Ln(){}});var jt=l((bo,Ut)=>{var _=String.fromCharCode;function Ht(e){for(var t=[],r=0,o=e.length,s,n;r<o;)s=e.charCodeAt(r++),s>=55296&&s<=56319&&r<o?(n=e.charCodeAt(r++),(n&64512)==56320?t.push(((s&1023)<<10)+(n&1023)+65536):(t.push(s),r--)):t.push(s);return t}function Un(e){for(var t=e.length,r=-1,o,s="";++r<t;)o=e[r],o>65535&&(o-=65536,s+=_(o>>>10&1023|55296),o=56320|o&1023),s+=_(o);return s}function Mt(e,t){if(e>=55296&&e<=57343){if(t)throw Error("Lone surrogate U+"+e.toString(16).toUpperCase()+" is not a scalar value");return!1}return!0}function Ie(e,t){return _(e>>t&63|128)}function Hn(e,t){if((e&4294967168)==0)return _(e);var r="";return(e&4294965248)==0?r=_(e>>6&31|192):(e&4294901760)==0?(Mt(e,t)||(e=65533),r=_(e>>12&15|224),r+=Ie(e,6)):(e&4292870144)==0&&(r=_(e>>18&7|240),r+=Ie(e,12),r+=Ie(e,6)),r+=_(e&63|128),r}function Mn(e,t){t=t||{};for(var r=t.strict!==!1,o=Ht(e),s=o.length,n=-1,u,i="";++n<s;)u=o[n],i+=Hn(u,r);return i}function X(){if(I>=ye)throw Error("Invalid byte index");var e=ge[I]&255;if(I++,(e&192)==128)return e&63;throw Error("Invalid continuation byte")}function jn(e){var t,r,o,s,n;if(I>ye)throw Error("Invalid byte index");if(I==ye)return!1;if(t=ge[I]&255,I++,(t&128)==0)return t;if((t&224)==192){if(r=X(),n=(t&31)<<6|r,n>=128)return n;throw Error("Invalid continuation byte")}if((t&240)==224){if(r=X(),o=X(),n=(t&15)<<12|r<<6|o,n>=2048)return Mt(n,e)?n:65533;throw Error("Invalid continuation byte")}if((t&248)==240&&(r=X(),o=X(),s=X(),n=(t&7)<<18|r<<12|o<<6|s,n>=65536&&n<=1114111))return n;throw Error("Invalid UTF-8 detected")}var ge,ye,I;function zn(e,t){t=t||{};var r=t.strict!==!1;ge=Ht(e),ye=ge.length,I=0;for(var o=[],s;(s=jn(r))!==!1;)o.push(s);return Un(o)}Ut.exports={version:"2.1.2",encode:Mn,decode:zn}});var zt=l(Le=>{(function(e){"use strict";Le.encode=function(t){var r=new Uint8Array(t),o,s=r.length,n="";for(o=0;o<s;o+=3)n+=e[r[o]>>2],n+=e[(r[o]&3)<<4|r[o+1]>>4],n+=e[(r[o+1]&15)<<2|r[o+2]>>6],n+=e[r[o+2]&63];return s%3==2?n=n.substring(0,n.length-1)+"=":s%3==1&&(n=n.substring(0,n.length-2)+"=="),n},Le.decode=function(t){var r=t.length*.75,o=t.length,s,n=0,u,i,a,c;t[t.length-1]==="="&&(r--,t[t.length-2]==="="&&r--);var f=new ArrayBuffer(r),h=new Uint8Array(f);for(s=0;s<o;s+=4)u=e.indexOf(t[s]),i=e.indexOf(t[s+1]),a=e.indexOf(t[s+2]),c=e.indexOf(t[s+3]),h[n++]=u<<2|i>>4,h[n++]=(i&15)<<4|a>>2,h[n++]=(a&3)<<6|c&63;return f}})("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/")});var Kt=l((wo,Xt)=>{var $=typeof $!="undefined"?$:typeof WebKitBlobBuilder!="undefined"?WebKitBlobBuilder:typeof MSBlobBuilder!="undefined"?MSBlobBuilder:typeof MozBlobBuilder!="undefined"?MozBlobBuilder:!1,$t=function(){try{var e=new Blob(["hi"]);return e.size===2}catch(t){return!1}}(),Xn=$t&&function(){try{var e=new Blob([new Uint8Array([1,2])]);return e.size===2}catch(t){return!1}}(),$n=$&&$.prototype.append&&$.prototype.getBlob;function Wt(e){return e.map(function(t){if(t.buffer instanceof ArrayBuffer){var r=t.buffer;if(t.byteLength!==r.byteLength){var o=new Uint8Array(t.byteLength);o.set(new Uint8Array(r,t.byteOffset,t.byteLength)),r=o.buffer}return r}return t})}function Vt(e,t){t=t||{};var r=new $;return Wt(e).forEach(function(o){r.append(o)}),t.type?r.getBlob(t.type):r.getBlob()}function Jt(e,t){return new Blob(Wt(e),t||{})}typeof Blob!="undefined"&&(Vt.prototype=Blob.prototype,Jt.prototype=Blob.prototype);Xt.exports=function(){return $t?Xn?Blob:Jt:$n?Vt:void 0}()});var M=l(m=>{var Wn=Rt(),Vn=_e(),me=_t(),Jn=Lt(),Yt=jt(),Ue;typeof ArrayBuffer!="undefined"&&(Ue=zt());var Kn=typeof navigator!="undefined"&&/Android/i.test(navigator.userAgent),Yn=typeof navigator!="undefined"&&/PhantomJS/i.test(navigator.userAgent),Gt=Kn||Yn;m.protocol=3;var ve=m.packets={open:0,close:1,ping:2,pong:3,message:4,upgrade:5,noop:6},te=Wn(ve),N={type:"error",data:"parser error"},D=Kt();m.encodePacket=function(e,t,r,o){typeof t=="function"&&(o=t,t=!1),typeof r=="function"&&(o=r,r=null);var s=e.data===void 0?void 0:e.data.buffer||e.data;if(typeof ArrayBuffer!="undefined"&&s instanceof ArrayBuffer)return Zn(e,t,o);if(typeof D!="undefined"&&s instanceof D)return Qn(e,t,o);if(s&&s.base64)return Gn(e,o);var n=ve[e.type];return e.data!==void 0&&(n+=r?Yt.encode(String(e.data),{strict:!1}):String(e.data)),o(""+n)};function Gn(e,t){var r="b"+m.packets[e.type]+e.data.data;return t(r)}function Zn(e,t,r){if(!t)return m.encodeBase64Packet(e,r);var o=e.data,s=new Uint8Array(o),n=new Uint8Array(1+o.byteLength);n[0]=ve[e.type];for(var u=0;u<s.length;u++)n[u+1]=s[u];return r(n.buffer)}function ei(e,t,r){if(!t)return m.encodeBase64Packet(e,r);var o=new FileReader;return o.onload=function(){m.encodePacket({type:e.type,data:o.result},t,!0,r)},o.readAsArrayBuffer(e.data)}function Qn(e,t,r){if(!t)return m.encodeBase64Packet(e,r);if(Gt)return ei(e,t,r);var o=new Uint8Array(1);o[0]=ve[e.type];var s=new D([o.buffer,e.data]);return r(s)}m.encodeBase64Packet=function(e,t){var r="b"+m.packets[e.type];if(typeof D!="undefined"&&e.data instanceof D){var o=new FileReader;return o.onload=function(){var a=o.result.split(",")[1];t(r+a)},o.readAsDataURL(e.data)}var s;try{s=String.fromCharCode.apply(null,new Uint8Array(e.data))}catch(a){for(var n=new Uint8Array(e.data),u=new Array(n.length),i=0;i<n.length;i++)u[i]=n[i];s=String.fromCharCode.apply(null,u)}return r+=btoa(s),t(r)};m.decodePacket=function(e,t,r){if(e===void 0)return N;if(typeof e=="string"){if(e.charAt(0)==="b")return m.decodeBase64Packet(e.substr(1),t);if(r&&(e=ti(e),e===!1))return N;var s=e.charAt(0);return Number(s)!=s||!te[s]?N:e.length>1?{type:te[s],data:e.substring(1)}:{type:te[s]}}var o=new Uint8Array(e),s=o[0],n=me(e,1);return D&&t==="blob"&&(n=new D([n])),{type:te[s],data:n}};function ti(e){try{e=Yt.decode(e,{strict:!1})}catch(t){return!1}return e}m.decodeBase64Packet=function(e,t){var r=te[e.charAt(0)];if(!Ue)return{type:r,data:{base64:!0,data:e.substr(1)}};var o=Ue.decode(e.substr(1));return t==="blob"&&D&&(o=new D([o])),{type:r,data:o}};m.encodePayload=function(e,t,r){typeof t=="function"&&(r=t,t=null);var o=Vn(e);if(t&&o)return D&&!Gt?m.encodePayloadAsBlob(e,r):m.encodePayloadAsArrayBuffer(e,r);if(!e.length)return r("0:");function s(u){return u.length+":"+u}function n(u,i){m.encodePacket(u,o?t:!1,!1,function(a){i(null,s(a))})}He(e,n,function(u,i){return r(i.join(""))})};function He(e,t,r){for(var o=new Array(e.length),s=Jn(e.length,r),n=function(i,a,c){t(a,function(f,h){o[i]=h,c(f,o)})},u=0;u<e.length;u++)n(u,e[u],s)}m.decodePayload=function(e,t,r){if(typeof e!="string")return m.decodePayloadAsBinary(e,t,r);typeof t=="function"&&(r=t,t=null);var o;if(e==="")return r(N,0,1);for(var s="",n,u,i=0,a=e.length;i<a;i++){var c=e.charAt(i);if(c!==":"){s+=c;continue}if(s===""||s!=(n=Number(s))||(u=e.substr(i+1,n),s!=u.length))return r(N,0,1);if(u.length){if(o=m.decodePacket(u,t,!1),N.type===o.type&&N.data===o.data)return r(N,0,1);var f=r(o,i+n,a);if(f===!1)return}i+=n,s=""}if(s!=="")return r(N,0,1)};m.encodePayloadAsArrayBuffer=function(e,t){if(!e.length)return t(new ArrayBuffer(0));function r(o,s){m.encodePacket(o,!0,!0,function(n){return s(null,n)})}He(e,r,function(o,s){var n=s.reduce(function(a,c){var f;return typeof c=="string"?f=c.length:f=c.byteLength,a+f.toString().length+f+2},0),u=new Uint8Array(n),i=0;return s.forEach(function(a){var c=typeof a=="string",f=a;if(c){for(var B=new Uint8Array(a.length),h=0;h<a.length;h++)B[h]=a.charCodeAt(h);f=B.buffer}c?u[i++]=0:u[i++]=1;for(var w=f.byteLength.toString(),h=0;h<w.length;h++)u[i++]=parseInt(w[h]);u[i++]=255;for(var B=new Uint8Array(f),h=0;h<B.length;h++)u[i++]=B[h]}),t(u.buffer)})};m.encodePayloadAsBlob=function(e,t){function r(o,s){m.encodePacket(o,!0,!0,function(n){var u=new Uint8Array(1);if(u[0]=1,typeof n=="string"){for(var i=new Uint8Array(n.length),a=0;a<n.length;a++)i[a]=n.charCodeAt(a);n=i.buffer,u[0]=0}for(var c=n instanceof ArrayBuffer?n.byteLength:n.size,f=c.toString(),h=new Uint8Array(f.length+1),a=0;a<f.length;a++)h[a]=parseInt(f[a]);if(h[f.length]=255,D){var w=new D([u.buffer,h.buffer,n]);s(null,w)}})}He(e,r,function(o,s){return t(new D(s))})};m.decodePayloadAsBinary=function(e,t,r){typeof t=="function"&&(r=t,t=null);for(var o=e,s=[];o.byteLength>0;){for(var n=new Uint8Array(o),u=n[0]===0,i="",a=1;n[a]!==255;a++){if(i.length>310)return r(N,0,1);i+=n[a]}o=me(o,2+i.length),i=parseInt(i);var c=me(o,0,i);if(u)try{c=String.fromCharCode.apply(null,new Uint8Array(c))}catch(w){var f=new Uint8Array(c);c="";for(var a=0;a<f.length;a++)c+=String.fromCharCode(f[a])}s.push(c),o=me(o,i)}var h=s.length;s.forEach(function(w,B){r(m.decodePacket(w,t,!0),B,h)})}});var be=l((Fo,Zt)=>{var ri=M(),ni=H();Zt.exports=T;function T(e){this.path=e.path,this.hostname=e.hostname,this.port=e.port,this.secure=e.secure,this.query=e.query,this.timestampParam=e.timestampParam,this.timestampRequests=e.timestampRequests,this.readyState="",this.agent=e.agent||!1,this.socket=e.socket,this.enablesXDR=e.enablesXDR,this.withCredentials=e.withCredentials,this.pfx=e.pfx,this.key=e.key,this.passphrase=e.passphrase,this.cert=e.cert,this.ca=e.ca,this.ciphers=e.ciphers,this.rejectUnauthorized=e.rejectUnauthorized,this.forceNode=e.forceNode,this.isReactNative=e.isReactNative,this.extraHeaders=e.extraHeaders,this.localAddress=e.localAddress}ni(T.prototype);T.prototype.onError=function(e,t){var r=new Error(e);return r.type="TransportError",r.description=t,this.emit("error",r),this};T.prototype.open=function(){return(this.readyState==="closed"||this.readyState==="")&&(this.readyState="opening",this.doOpen()),this};T.prototype.close=function(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this};T.prototype.send=function(e){if(this.readyState==="open")this.write(e);else throw new Error("Transport not open")};T.prototype.onOpen=function(){this.readyState="open",this.writable=!0,this.emit("open")};T.prototype.onData=function(e){var t=ri.decodePacket(e,this.socket.binaryType);this.onPacket(t)};T.prototype.onPacket=function(e){this.emit("packet",e)};T.prototype.onClose=function(){this.readyState="closed",this.emit("close")}});var re=l(Me=>{Me.encode=function(e){var t="";for(var r in e)e.hasOwnProperty(r)&&(t.length&&(t+="&"),t+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return t};Me.decode=function(e){for(var t={},r=e.split("&"),o=0,s=r.length;o<s;o++){var n=r[o].split("=");t[decodeURIComponent(n[0])]=decodeURIComponent(n[1])}return t}});var ne=l((Ao,Qt)=>{Qt.exports=function(e,t){var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}});var Xe=l((So,er)=>{"use strict";var tr="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),Ce=64,rr={},nr=0,L=0,ir;function je(e){var t="";do t=tr[e%Ce]+t,e=Math.floor(e/Ce);while(e>0);return t}function ii(e){var t=0;for(L=0;L<e.length;L++)t=t*Ce+rr[e.charAt(L)];return t}function ze(){var e=je(+new Date);return e!==ir?(nr=0,ir=e):e+"."+je(nr++)}for(;L<Ce;L++)rr[tr[L]]=L;ze.encode=je;ze.decode=ii;er.exports=ze});var sr=l((d,or)=>{d=or.exports=$e.debug=$e.default=$e;d.coerce=oi;d.disable=si;d.enable=ai;d.enabled=ui;d.humanize=Ae();d.instances=[];d.names=[];d.skips=[];d.formatters={};function ci(e){var t=0,r;for(r in e)t=(t<<5)-t+e.charCodeAt(r),t|=0;return d.colors[Math.abs(t)%d.colors.length]}function $e(e){var t;function r(){if(!!r.enabled){var o=r,s=+new Date,n=s-(t||s);o.diff=n,o.prev=t,o.curr=s,t=s;for(var u=new Array(arguments.length),i=0;i<u.length;i++)u[i]=arguments[i];u[0]=d.coerce(u[0]),typeof u[0]!="string"&&u.unshift("%O");var a=0;u[0]=u[0].replace(/%([a-zA-Z%])/g,function(f,h){if(f==="%%")return f;a++;var w=d.formatters[h];if(typeof w=="function"){var B=u[a];f=w.call(o,B),u.splice(a,1),a--}return f}),d.formatArgs.call(o,u);var c=r.log||d.log||console.log.bind(console);c.apply(o,u)}}return r.namespace=e,r.enabled=d.enabled(e),r.useColors=d.useColors(),r.color=ci(e),r.destroy=fi,typeof d.init=="function"&&d.init(r),d.instances.push(r),r}function fi(){var e=d.instances.indexOf(this);return e!==-1?(d.instances.splice(e,1),!0):!1}function ai(e){d.save(e),d.names=[],d.skips=[];var t,r=(typeof e=="string"?e:"").split(/[\s,]+/),o=r.length;for(t=0;t<o;t++)!r[t]||(e=r[t].replace(/\*/g,".*?"),e[0]==="-"?d.skips.push(new RegExp("^"+e.substr(1)+"$")):d.names.push(new RegExp("^"+e+"$")));for(t=0;t<d.instances.length;t++){var s=d.instances[t];s.enabled=d.enabled(s.namespace)}}function si(){d.enable("")}function ui(e){if(e[e.length-1]==="*")return!0;var t,r;for(t=0,r=d.skips.length;t<r;t++)if(d.skips[t].test(e))return!1;for(t=0,r=d.names.length;t<r;t++)if(d.names[t].test(e))return!0;return!1}function oi(e){return e instanceof Error?e.stack||e.message:e}});var ie=l((A,ar)=>{A=ar.exports=sr();A.log=li;A.formatArgs=hi;A.save=pi;A.load=ur;A.useColors=di;A.storage=typeof chrome!="undefined"&&typeof chrome.storage!="undefined"?chrome.storage.local:gi();A.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function di(){return typeof window!="undefined"&&window.process&&window.process.type==="renderer"?!0:typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document!="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}A.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}};function hi(e){var t=this.useColors;if(e[0]=(t?"%c":"")+this.namespace+(t?" %c":" ")+e[0]+(t?"%c ":" ")+"+"+A.humanize(this.diff),!!t){var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var o=0,s=0;e[0].replace(/%[a-zA-Z%]/g,function(n){n!=="%%"&&(o++,n==="%c"&&(s=o))}),e.splice(s,0,r)}}function li(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function pi(e){try{e==null?A.storage.removeItem("debug"):A.storage.debug=e}catch(t){}}function ur(){var e;try{e=A.storage.debug}catch(t){}return!e&&typeof process!="undefined"&&"env"in process&&(e=process.env.DEBUG),e}A.enable(ur());function gi(){try{return window.localStorage}catch(e){}}});var We=l((Bo,cr)=>{var fr=be(),yi=re(),lr=M(),mi=ne(),vi=Xe(),R=ie()("engine.io-client:polling");cr.exports=P;var bi=function(){var e=pe(),t=new e({xdomain:!1});return t.responseType!=null}();function P(e){var t=e&&e.forceBase64;(!bi||t)&&(this.supportsBinary=!1),fr.call(this,e)}mi(P,fr);P.prototype.name="polling";P.prototype.doOpen=function(){this.poll()};P.prototype.pause=function(e){var t=this;this.readyState="pausing";function r(){R("paused"),t.readyState="paused",e()}if(this.polling||!this.writable){var o=0;this.polling&&(R("we are currently polling - waiting to pause"),o++,this.once("pollComplete",function(){R("pre-pause polling complete"),--o||r()})),this.writable||(R("we are currently writing - waiting to pause"),o++,this.once("drain",function(){R("pre-pause writing complete"),--o||r()}))}else r()};P.prototype.poll=function(){R("polling"),this.polling=!0,this.doPoll(),this.emit("poll")};P.prototype.onData=function(e){var t=this;R("polling got data %s",e);var r=function(o,s,n){if(t.readyState==="opening"&&o.type==="open"&&t.onOpen(),o.type==="close")return t.onClose(),!1;t.onPacket(o)};lr.decodePayload(e,this.socket.binaryType,r),this.readyState!=="closed"&&(this.polling=!1,this.emit("pollComplete"),this.readyState==="open"?this.poll():R('ignoring poll - transport state "%s"',this.readyState))};P.prototype.doClose=function(){var e=this;function t(){R("writing close packet"),e.write([{type:"close"}])}this.readyState==="open"?(R("transport open - closing"),t()):(R("transport not open - deferring close"),this.once("open",t))};P.prototype.write=function(e){var t=this;this.writable=!1;var r=function(){t.writable=!0,t.emit("drain")};lr.encodePayload(e,this.supportsBinary,function(o){t.doWrite(o,r)})};P.prototype.uri=function(){var e=this.query||{},t=this.secure?"https":"http",r="";this.timestampRequests!==!1&&(e[this.timestampParam]=vi()),!this.supportsBinary&&!e.sid&&(e.b64=1),e=yi.encode(e),this.port&&(t==="https"&&Number(this.port)!==443||t==="http"&&Number(this.port)!==80)&&(r=":"+this.port),e.length&&(e="?"+e);var o=this.hostname.indexOf(":")!==-1;return t+"://"+(o?"["+this.hostname+"]":this.hostname)+r+this.path+e}});var yr=l((qo,Ve)=>{var Ci=pe(),hr=We(),wi=H(),xi=ne(),Je=ie()("engine.io-client:polling-xhr"),Fi=he();Ve.exports=W;Ve.exports.Request=x;function pr(){}function W(e){if(hr.call(this,e),this.requestTimeout=e.requestTimeout,this.extraHeaders=e.extraHeaders,typeof location!="undefined"){var t=location.protocol==="https:",r=location.port;r||(r=t?443:80),this.xd=typeof location!="undefined"&&e.hostname!==location.hostname||r!==e.port,this.xs=e.secure!==t}}xi(W,hr);W.prototype.supportsBinary=!0;W.prototype.request=function(e){return e=e||{},e.uri=this.uri(),e.xd=this.xd,e.xs=this.xs,e.agent=this.agent||!1,e.supportsBinary=this.supportsBinary,e.enablesXDR=this.enablesXDR,e.withCredentials=this.withCredentials,e.pfx=this.pfx,e.key=this.key,e.passphrase=this.passphrase,e.cert=this.cert,e.ca=this.ca,e.ciphers=this.ciphers,e.rejectUnauthorized=this.rejectUnauthorized,e.requestTimeout=this.requestTimeout,e.extraHeaders=this.extraHeaders,new x(e)};W.prototype.doWrite=function(e,t){var r=typeof e!="string"&&e!==void 0,o=this.request({method:"POST",data:e,isBinary:r}),s=this;o.on("success",t),o.on("error",function(n){s.onError("xhr post error",n)}),this.sendXhr=o};W.prototype.doPoll=function(){Je("xhr poll");var e=this.request(),t=this;e.on("data",function(r){t.onData(r)}),e.on("error",function(r){t.onError("xhr poll error",r)}),this.pollXhr=e};function x(e){this.method=e.method||"GET",this.uri=e.uri,this.xd=!!e.xd,this.xs=!!e.xs,this.async=e.async!==!1,this.data=e.data!==void 0?e.data:null,this.agent=e.agent,this.isBinary=e.isBinary,this.supportsBinary=e.supportsBinary,this.enablesXDR=e.enablesXDR,this.withCredentials=e.withCredentials,this.requestTimeout=e.requestTimeout,this.pfx=e.pfx,this.key=e.key,this.passphrase=e.passphrase,this.cert=e.cert,this.ca=e.ca,this.ciphers=e.ciphers,this.rejectUnauthorized=e.rejectUnauthorized,this.extraHeaders=e.extraHeaders,this.create()}wi(x.prototype);x.prototype.create=function(){var e={agent:this.agent,xdomain:this.xd,xscheme:this.xs,enablesXDR:this.enablesXDR};e.pfx=this.pfx,e.key=this.key,e.passphrase=this.passphrase,e.cert=this.cert,e.ca=this.ca,e.ciphers=this.ciphers,e.rejectUnauthorized=this.rejectUnauthorized;var t=this.xhr=new Ci(e),r=this;try{Je("xhr open %s: %s",this.method,this.uri),t.open(this.method,this.uri,this.async);try{if(this.extraHeaders){t.setDisableHeaderCheck&&t.setDisableHeaderCheck(!0);for(var o in this.extraHeaders)this.extraHeaders.hasOwnProperty(o)&&t.setRequestHeader(o,this.extraHeaders[o])}}catch(s){}if(this.method==="POST")try{this.isBinary?t.setRequestHeader("Content-type","application/octet-stream"):t.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(s){}try{t.setRequestHeader("Accept","*/*")}catch(s){}"withCredentials"in t&&(t.withCredentials=this.withCredentials),this.requestTimeout&&(t.timeout=this.requestTimeout),this.hasXDR()?(t.onload=function(){r.onLoad()},t.onerror=function(){r.onError(t.responseText)}):t.onreadystatechange=function(){if(t.readyState===2)try{var s=t.getResponseHeader("Content-Type");(r.supportsBinary&&s==="application/octet-stream"||s==="application/octet-stream; charset=UTF-8")&&(t.responseType="arraybuffer")}catch(n){}t.readyState===4&&(t.status===200||t.status===1223?r.onLoad():setTimeout(function(){r.onError(typeof t.status=="number"?t.status:0)},0))},Je("xhr data %s",this.data),t.send(this.data)}catch(s){setTimeout(function(){r.onError(s)},0);return}typeof document!="undefined"&&(this.index=x.requestsCount++,x.requests[this.index]=this)};x.prototype.onSuccess=function(){this.emit("success"),this.cleanup()};x.prototype.onData=function(e){this.emit("data",e),this.onSuccess()};x.prototype.onError=function(e){this.emit("error",e),this.cleanup(!0)};x.prototype.cleanup=function(e){if(!(typeof this.xhr=="undefined"||this.xhr===null)){if(this.hasXDR()?this.xhr.onload=this.xhr.onerror=pr:this.xhr.onreadystatechange=pr,e)try{this.xhr.abort()}catch(t){}typeof document!="undefined"&&delete x.requests[this.index],this.xhr=null}};x.prototype.onLoad=function(){var e;try{var t;try{t=this.xhr.getResponseHeader("Content-Type")}catch(r){}t==="application/octet-stream"||t==="application/octet-stream; charset=UTF-8"?e=this.xhr.response||this.xhr.responseText:e=this.xhr.responseText}catch(r){this.onError(r)}e!=null&&this.onData(e)};x.prototype.hasXDR=function(){return typeof XDomainRequest!="undefined"&&!this.xs&&this.enablesXDR};x.prototype.abort=function(){this.cleanup()};x.requestsCount=0;x.requests={};typeof document!="undefined"&&(typeof attachEvent=="function"?attachEvent("onunload",gr):typeof addEventListener=="function"&&(dr="onpagehide"in Fi?"pagehide":"unload",addEventListener(dr,gr,!1)));var dr;function gr(){for(var e in x.requests)x.requests.hasOwnProperty(e)&&x.requests[e].abort()}});var br=l((Do,mr)=>{var Ke=We(),ki=ne(),vr=he();mr.exports=V;var Ai=/\n/g,Si=/\\n/g,we;function Bi(){}function V(e){Ke.call(this,e),this.query=this.query||{},we||(we=vr.___eio=vr.___eio||[]),this.index=we.length;var t=this;we.push(function(r){t.onData(r)}),this.query.j=this.index,typeof addEventListener=="function"&&addEventListener("beforeunload",function(){t.script&&(t.script.onerror=Bi)},!1)}ki(V,Ke);V.prototype.supportsBinary=!1;V.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),Ke.prototype.doClose.call(this)};V.prototype.doPoll=function(){var e=this,t=document.createElement("script");this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),t.async=!0,t.src=this.uri(),t.onerror=function(s){e.onError("jsonp poll error",s)};var r=document.getElementsByTagName("script")[0];r?r.parentNode.insertBefore(t,r):(document.head||document.body).appendChild(t),this.script=t;var o=typeof navigator!="undefined"&&/gecko/i.test(navigator.userAgent);o&&setTimeout(function(){var s=document.createElement("iframe");document.body.appendChild(s),document.body.removeChild(s)},100)};V.prototype.doWrite=function(e,t){var r=this;if(!this.form){var o=document.createElement("form"),s=document.createElement("textarea"),n=this.iframeId="eio_iframe_"+this.index,u;o.className="socketio",o.style.position="absolute",o.style.top="-1000px",o.style.left="-1000px",o.target=n,o.method="POST",o.setAttribute("accept-charset","utf-8"),s.name="d",o.appendChild(s),document.body.appendChild(o),this.form=o,this.area=s}this.form.action=this.uri();function i(){a(),t()}function a(){if(r.iframe)try{r.form.removeChild(r.iframe)}catch(f){r.onError("jsonp polling iframe removal error",f)}try{var c='<iframe src="javascript:0" name="'+r.iframeId+'">';u=document.createElement(c)}catch(f){u=document.createElement("iframe"),u.name=r.iframeId,u.src="javascript:0"}u.id=r.iframeId,r.form.appendChild(u),r.iframe=u}a(),e=e.replace(Si,`\\ `),this.area.value=e.replace(Ai,"\\n");try{this.form.submit()}catch(c){}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){r.iframe.readyState==="complete"&&i()}:this.iframe.onload=i}});var Cr=l(()=>{});var xr=l((Ro,wr)=>{var Ye=be(),qi=M(),Di=re(),Ei=ne(),Ni=Xe(),Ri=ie()("engine.io-client:websocket"),xe,Ge;typeof WebSocket!="undefined"?xe=WebSocket:typeof self!="undefined"&&(xe=self.WebSocket||self.MozWebSocket);if(typeof window=="undefined")try{Ge=Cr()}catch(e){}var J=xe||Ge;wr.exports=E;function E(e){var t=e&&e.forceBase64;t&&(this.supportsBinary=!1),this.perMessageDeflate=e.perMessageDeflate,this.usingBrowserWebSocket=xe&&!e.forceNode,this.protocols=e.protocols,this.usingBrowserWebSocket||(J=Ge),Ye.call(this,e)}Ei(E,Ye);E.prototype.name="websocket";E.prototype.supportsBinary=!0;E.prototype.doOpen=function(){if(!!this.check()){var e=this.uri(),t=this.protocols,r={};this.isReactNative||(r.agent=this.agent,r.perMessageDeflate=this.perMessageDeflate,r.pfx=this.pfx,r.key=this.key,r.passphrase=this.passphrase,r.cert=this.cert,r.ca=this.ca,r.ciphers=this.ciphers,r.rejectUnauthorized=this.rejectUnauthorized),this.extraHeaders&&(r.headers=this.extraHeaders),this.localAddress&&(r.localAddress=this.localAddress);try{this.ws=this.usingBrowserWebSocket&&!this.isReactNative?t?new J(e,t):new J(e):new J(e,t,r)}catch(o){return this.emit("error",o)}this.ws.binaryType===void 0&&(this.supportsBinary=!1),this.ws.supports&&this.ws.supports.binary?(this.supportsBinary=!0,this.ws.binaryType="nodebuffer"):this.ws.binaryType="arraybuffer",this.addEventListeners()}};E.prototype.addEventListeners=function(){var e=this;this.ws.onopen=function(){e.onOpen()},this.ws.onclose=function(){e.onClose()},this.ws.onmessage=function(t){e.onData(t.data)},this.ws.onerror=function(t){e.onError("websocket error",t)}};E.prototype.write=function(e){var t=this;this.writable=!1;for(var r=e.length,o=0,s=r;o<s;o++)(function(u){qi.encodePacket(u,t.supportsBinary,function(i){if(!t.usingBrowserWebSocket){var a={};if(u.options&&(a.compress=u.options.compress),t.perMessageDeflate){var c=typeof i=="string"?Buffer.byteLength(i):i.length;c<t.perMessageDeflate.threshold&&(a.compress=!1)}}try{t.usingBrowserWebSocket?t.ws.send(i):t.ws.send(i,a)}catch(f){Ri("websocket closed before onclose event")}--r||n()})})(e[o]);function n(){t.emit("flush"),setTimeout(function(){t.writable=!0,t.emit("drain")},0)}};E.prototype.onClose=function(){Ye.prototype.onClose.call(this)};E.prototype.doClose=function(){typeof this.ws!="undefined"&&this.ws.close()};E.prototype.uri=function(){var e=this.query||{},t=this.secure?"wss":"ws",r="";this.port&&(t==="wss"&&Number(this.port)!==443||t==="ws"&&Number(this.port)!==80)&&(r=":"+this.port),this.timestampRequests&&(e[this.timestampParam]=Ni()),this.supportsBinary||(e.b64=1),e=Di.encode(e),e.length&&(e="?"+e);var o=this.hostname.indexOf(":")!==-1;return t+"://"+(o?"["+this.hostname+"]":this.hostname)+r+this.path+e};E.prototype.check=function(){return!!J&&!("__initialize"in J&&this.name===E.prototype.name)}});var Qe=l(Ze=>{var Oi=pe(),Ti=yr(),Pi=br(),_i=xr();Ze.polling=Ii;Ze.websocket=_i;function Ii(e){var t,r=!1,o=!1,s=e.jsonp!==!1;if(typeof location!="undefined"){var n=location.protocol==="https:",u=location.port;u||(u=n?443:80),r=e.hostname!==location.hostname||u!==e.port,o=e.secure!==n}if(e.xdomain=r,e.xscheme=o,t=new Oi(e),"open"in t&&!e.forceJSONP)return new Ti(e);if(!s)throw new Error("JSONP disabled");return new Pi(e)}});var et=l((To,Fr)=>{var Li=[].indexOf;Fr.exports=function(e,t){if(Li)return e.indexOf(t);for(var r=0;r<e.length;++r)if(e[r]===t)return r;return-1}});var Br=l((Po,kr)=>{var Ui=Qe(),Hi=H(),C=ie()("engine.io-client:socket"),Mi=et(),Ar=M(),Sr=ke(),ji=re();kr.exports=g;function g(e,t){if(!(this instanceof g))return new g(e,t);t=t||{},e&&typeof e=="object"&&(t=e,e=null),e?(e=Sr(e),t.hostname=e.host,t.secure=e.protocol==="https"||e.protocol==="wss",t.port=e.port,e.query&&(t.query=e.query)):t.host&&(t.hostname=Sr(t.host).host),this.secure=t.secure!=null?t.secure:typeof location!="undefined"&&location.protocol==="https:",t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.agent=t.agent||!1,this.hostname=t.hostname||(typeof location!="undefined"?location.hostname:"localhost"),this.port=t.port||(typeof location!="undefined"&&location.port?location.port:this.secure?443:80),this.query=t.query||{},typeof this.query=="string"&&(this.query=ji.decode(this.query)),this.upgrade=t.upgrade!==!1,this.path=(t.path||"/engine.io").replace(/\/$/,"")+"/",this.forceJSONP=!!t.forceJSONP,this.jsonp=t.jsonp!==!1,this.forceBase64=!!t.forceBase64,this.enablesXDR=!!t.enablesXDR,this.withCredentials=t.withCredentials!==!1,this.timestampParam=t.timestampParam||"t",this.timestampRequests=t.timestampRequests,this.transports=t.transports||["polling","websocket"],this.transportOptions=t.transportOptions||{},this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.policyPort=t.policyPort||843,this.rememberUpgrade=t.rememberUpgrade||!1,this.binaryType=null,this.onlyBinaryUpgrades=t.onlyBinaryUpgrades,this.perMessageDeflate=t.perMessageDeflate!==!1?t.perMessageDeflate||{}:!1,this.perMessageDeflate===!0&&(this.perMessageDeflate={}),this.perMessageDeflate&&this.perMessageDeflate.threshold==null&&(this.perMessageDeflate.threshold=1024),this.pfx=t.pfx||null,this.key=t.key||null,this.passphrase=t.passphrase||null,this.cert=t.cert||null,this.ca=t.ca||null,this.ciphers=t.ciphers||null,this.rejectUnauthorized=t.rejectUnauthorized===void 0?!0:t.rejectUnauthorized,this.forceNode=!!t.forceNode,this.isReactNative=typeof navigator!="undefined"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",(typeof self=="undefined"||this.isReactNative)&&(t.extraHeaders&&Object.keys(t.extraHeaders).length>0&&(this.extraHeaders=t.extraHeaders),t.localAddress&&(this.localAddress=t.localAddress)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingIntervalTimer=null,this.pingTimeoutTimer=null,this.open()}g.priorWebsocketSuccess=!1;Hi(g.prototype);g.protocol=Ar.protocol;g.Socket=g;g.Transport=be();g.transports=Qe();g.parser=M();g.prototype.createTransport=function(e){C('creating transport "%s"',e);var t=zi(this.query);t.EIO=Ar.protocol,t.transport=e;var r=this.transportOptions[e]||{};this.id&&(t.sid=this.id);var o=new Ui[e]({query:t,socket:this,agent:r.agent||this.agent,hostname:r.hostname||this.hostname,port:r.port||this.port,secure:r.secure||this.secure,path:r.path||this.path,forceJSONP:r.forceJSONP||this.forceJSONP,jsonp:r.jsonp||this.jsonp,forceBase64:r.forceBase64||this.forceBase64,enablesXDR:r.enablesXDR||this.enablesXDR,withCredentials:r.withCredentials||this.withCredentials,timestampRequests:r.timestampRequests||this.timestampRequests,timestampParam:r.timestampParam||this.timestampParam,policyPort:r.policyPort||this.policyPort,pfx:r.pfx||this.pfx,key:r.key||this.key,passphrase:r.passphrase||this.passphrase,cert:r.cert||this.cert,ca:r.ca||this.ca,ciphers:r.ciphers||this.ciphers,rejectUnauthorized:r.rejectUnauthorized||this.rejectUnauthorized,perMessageDeflate:r.perMessageDeflate||this.perMessageDeflate,extraHeaders:r.extraHeaders||this.extraHeaders,forceNode:r.forceNode||this.forceNode,localAddress:r.localAddress||this.localAddress,requestTimeout:r.requestTimeout||this.requestTimeout,protocols:r.protocols||void 0,isReactNative:this.isReactNative});return o};function zi(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);return t}g.prototype.open=function(){var e;if(this.rememberUpgrade&&g.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)e="websocket";else if(this.transports.length===0){var t=this;setTimeout(function(){t.emit("error","No transports available")},0);return}else e=this.transports[0];this.readyState="opening";try{e=this.createTransport(e)}catch(r){this.transports.shift(),this.open();return}e.open(),this.setTransport(e)};g.prototype.setTransport=function(e){C("setting transport %s",e.name);var t=this;this.transport&&(C("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=e,e.on("drain",function(){t.onDrain()}).on("packet",function(r){t.onPacket(r)}).on("error",function(r){t.onError(r)}).on("close",function(){t.onClose("transport close")})};g.prototype.probe=function(e){C('probing transport "%s"',e);var t=this.createTransport(e,{probe:1}),r=!1,o=this;g.priorWebsocketSuccess=!1;function s(){if(o.onlyBinaryUpgrades){var h=!this.supportsBinary&&o.transport.supportsBinary;r=r||h}r||(C('probe transport "%s" opened',e),t.send([{type:"ping",data:"probe"}]),t.once("packet",function(w){if(!r)if(w.type==="pong"&&w.data==="probe"){if(C('probe transport "%s" pong',e),o.upgrading=!0,o.emit("upgrading",t),!t)return;g.priorWebsocketSuccess=t.name==="websocket",C('pausing current transport "%s"',o.transport.name),o.transport.pause(function(){r||o.readyState!=="closed"&&(C("changing transport and sending upgrade packet"),f(),o.setTransport(t),t.send([{type:"upgrade"}]),o.emit("upgrade",t),t=null,o.upgrading=!1,o.flush())})}else{C('probe transport "%s" failed',e);var B=new Error("probe error");B.transport=t.name,o.emit("upgradeError",B)}}))}function n(){r||(r=!0,f(),t.close(),t=null)}function u(h){var w=new Error("probe error: "+h);w.transport=t.name,n(),C('probe transport "%s" failed because of error: %s',e,h),o.emit("upgradeError",w)}function i(){u("transport closed")}function a(){u("socket closed")}function c(h){t&&h.name!==t.name&&(C('"%s" works - aborting "%s"',h.name,t.name),n())}function f(){t.removeListener("open",s),t.removeListener("error",u),t.removeListener("close",i),o.removeListener("close",a),o.removeListener("upgrading",c)}t.once("open",s),t.once("error",u),t.once("close",i),this.once("close",a),this.once("upgrading",c),t.open()};g.prototype.onOpen=function(){if(C("socket open"),this.readyState="open",g.priorWebsocketSuccess=this.transport.name==="websocket",this.emit("open"),this.flush(),this.readyState==="open"&&this.upgrade&&this.transport.pause){C("starting upgrade probes");for(var e=0,t=this.upgrades.length;e<t;e++)this.probe(this.upgrades[e])}};g.prototype.onPacket=function(e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(C('socket receive: type "%s", data "%s"',e.type,e.data),this.emit("packet",e),this.emit("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.da