@open-amt-cloud-toolkit/ui-toolkit-react 3.0.4 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/package.json +1 -1
- package/package.json +1 -1
- package/reactjs/src/sol.bundle.js +1 -1
package/dist/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["React"],t):"object"==typeof exports?exports["ui-toolkit/reactjs/sol"]=t(require("react")):e["ui-toolkit/reactjs/sol"]=t(e.React)}(self,(__WEBPACK_EXTERNAL_MODULE__639__=>(()=>{var __webpack_modules__={371:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var s={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1}},869:module=>{var e;self,e=()=>(()=>{var __webpack_modules__={487:e=>{var t={utf8:{stringToBytes:function(e){return t.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(t.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],i=0;i<e.length;i++)t.push(255&e.charCodeAt(i));return t},bytesToString:function(e){for(var t=[],i=0;i<e.length;i++)t.push(String.fromCharCode(e[i]));return t.join("")}}};e.exports=t},12:e=>{var t,i;t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i={rotl:function(e,t){return e<<t|e>>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&i.rotl(e,8)|4278255360&i.rotl(e,24);for(var t=0;t<e.length;t++)e[t]=i.endian(e[t]);return e},randomBytes:function(e){for(var t=[];e>0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],i=0,s=0;i<e.length;i++,s+=8)t[s>>>5]|=e[i]<<24-s%32;return t},wordsToBytes:function(e){for(var t=[],i=0;i<32*e.length;i+=8)t.push(e[i>>>5]>>>24-i%32&255);return t},bytesToHex:function(e){for(var t=[],i=0;i<e.length;i++)t.push((e[i]>>>4).toString(16)),t.push((15&e[i]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],i=0;i<e.length;i+=2)t.push(parseInt(e.substr(i,2),16));return t},bytesToBase64:function(e){for(var i=[],s=0;s<e.length;s+=3)for(var r=e[s]<<16|e[s+1]<<8|e[s+2],n=0;n<4;n++)8*s+6*n<=8*e.length?i.push(t.charAt(r>>>6*(3-n)&63)):i.push("=");return i.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var i=[],s=0,r=0;s<e.length;r=++s%4)0!=r&&i.push((t.indexOf(e.charAt(s-1))&Math.pow(2,-2*r+8)-1)<<2*r|t.indexOf(e.charAt(s))>>>6-2*r);return i}},e.exports=i},738:e=>{function t(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}e.exports=function(e){return null!=e&&(t(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&t(e.slice(0,0))}(e)||!!e._isBuffer)}},568:(e,t,i)=>{var s,r,n,o,a;s=i(12),r=i(487).utf8,n=i(738),o=i(487).bin,(a=function(e,t){e.constructor==String?e=t&&"binary"===t.encoding?o.stringToBytes(e):r.stringToBytes(e):n(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||e.constructor===Uint8Array||(e=e.toString());for(var i=s.bytesToWords(e),h=8*e.length,l=1732584193,c=-271733879,d=-1732584194,u=271733878,_=0;_<i.length;_++)i[_]=16711935&(i[_]<<8|i[_]>>>24)|4278255360&(i[_]<<24|i[_]>>>8);i[h>>>5]|=128<<h%32,i[14+(h+64>>>9<<4)]=h;var f=a._ff,p=a._gg,v=a._hh,g=a._ii;for(_=0;_<i.length;_+=16){var m=l,S=c,b=d,C=u;l=f(l,c,d,u,i[_+0],7,-680876936),u=f(u,l,c,d,i[_+1],12,-389564586),d=f(d,u,l,c,i[_+2],17,606105819),c=f(c,d,u,l,i[_+3],22,-1044525330),l=f(l,c,d,u,i[_+4],7,-176418897),u=f(u,l,c,d,i[_+5],12,1200080426),d=f(d,u,l,c,i[_+6],17,-1473231341),c=f(c,d,u,l,i[_+7],22,-45705983),l=f(l,c,d,u,i[_+8],7,1770035416),u=f(u,l,c,d,i[_+9],12,-1958414417),d=f(d,u,l,c,i[_+10],17,-42063),c=f(c,d,u,l,i[_+11],22,-1990404162),l=f(l,c,d,u,i[_+12],7,1804603682),u=f(u,l,c,d,i[_+13],12,-40341101),d=f(d,u,l,c,i[_+14],17,-1502002290),l=p(l,c=f(c,d,u,l,i[_+15],22,1236535329),d,u,i[_+1],5,-165796510),u=p(u,l,c,d,i[_+6],9,-1069501632),d=p(d,u,l,c,i[_+11],14,643717713),c=p(c,d,u,l,i[_+0],20,-373897302),l=p(l,c,d,u,i[_+5],5,-701558691),u=p(u,l,c,d,i[_+10],9,38016083),d=p(d,u,l,c,i[_+15],14,-660478335),c=p(c,d,u,l,i[_+4],20,-405537848),l=p(l,c,d,u,i[_+9],5,568446438),u=p(u,l,c,d,i[_+14],9,-1019803690),d=p(d,u,l,c,i[_+3],14,-187363961),c=p(c,d,u,l,i[_+8],20,1163531501),l=p(l,c,d,u,i[_+13],5,-1444681467),u=p(u,l,c,d,i[_+2],9,-51403784),d=p(d,u,l,c,i[_+7],14,1735328473),l=v(l,c=p(c,d,u,l,i[_+12],20,-1926607734),d,u,i[_+5],4,-378558),u=v(u,l,c,d,i[_+8],11,-2022574463),d=v(d,u,l,c,i[_+11],16,1839030562),c=v(c,d,u,l,i[_+14],23,-35309556),l=v(l,c,d,u,i[_+1],4,-1530992060),u=v(u,l,c,d,i[_+4],11,1272893353),d=v(d,u,l,c,i[_+7],16,-155497632),c=v(c,d,u,l,i[_+10],23,-1094730640),l=v(l,c,d,u,i[_+13],4,681279174),u=v(u,l,c,d,i[_+0],11,-358537222),d=v(d,u,l,c,i[_+3],16,-722521979),c=v(c,d,u,l,i[_+6],23,76029189),l=v(l,c,d,u,i[_+9],4,-640364487),u=v(u,l,c,d,i[_+12],11,-421815835),d=v(d,u,l,c,i[_+15],16,530742520),l=g(l,c=v(c,d,u,l,i[_+2],23,-995338651),d,u,i[_+0],6,-198630844),u=g(u,l,c,d,i[_+7],10,1126891415),d=g(d,u,l,c,i[_+14],15,-1416354905),c=g(c,d,u,l,i[_+5],21,-57434055),l=g(l,c,d,u,i[_+12],6,1700485571),u=g(u,l,c,d,i[_+3],10,-1894986606),d=g(d,u,l,c,i[_+10],15,-1051523),c=g(c,d,u,l,i[_+1],21,-2054922799),l=g(l,c,d,u,i[_+8],6,1873313359),u=g(u,l,c,d,i[_+15],10,-30611744),d=g(d,u,l,c,i[_+6],15,-1560198380),c=g(c,d,u,l,i[_+13],21,1309151649),l=g(l,c,d,u,i[_+4],6,-145523070),u=g(u,l,c,d,i[_+11],10,-1120210379),d=g(d,u,l,c,i[_+2],15,718787259),c=g(c,d,u,l,i[_+9],21,-343485551),l=l+m>>>0,c=c+S>>>0,d=d+b>>>0,u=u+C>>>0}return s.endian([l,c,d,u])})._ff=function(e,t,i,s,r,n,o){var a=e+(t&i|~t&s)+(r>>>0)+o;return(a<<n|a>>>32-n)+t},a._gg=function(e,t,i,s,r,n,o){var a=e+(t&s|i&~s)+(r>>>0)+o;return(a<<n|a>>>32-n)+t},a._hh=function(e,t,i,s,r,n,o){var a=e+(t^i^s)+(r>>>0)+o;return(a<<n|a>>>32-n)+t},a._ii=function(e,t,i,s,r,n,o){var a=e+(i^(t|~s))+(r>>>0)+o;return(a<<n|a>>>32-n)+t},a._blocksize=16,a._digestsize=16,e.exports=function(e,t){if(null==e)throw new Error("Illegal argument "+e);var i=s.wordsToBytes(a(e,t));return t&&t.asBytes?i:t&&t.asString?o.bytesToString(i):s.bytesToHex(i)}},166:(e,t,i)=>{"use strict";i.d(t,{r:()=>h});var s=i(46),r=i(565),n=i(611),o=i(305),a=i.n(o);class h extends s.H{constructor(e,t){super(),this.protocol=2,this.inflate=a().inflateInit(15),this.bpp=1,this.state=0,this.focusMode=0,this.useZRLE=!0,this.frameRateDelay=2,this.canvasCtx=t,this.sparecache={},this.buttonmask=0,this.canvasControl=this.canvasCtx.canvas,this.lastMouseMoveTime=(new Date).getTime(),this.logger=e,this.setDeskFocus=(e,t)=>{},this.getDeskFocus=e=>{}}processData(e){this.onProcessData(e)}onStateChange(e){this.logger.verbose(`state change in AMTDesktop: ${e}`),0===e&&(this.canvasCtx.fillStyle="#FFFFFF",this.canvasCtx.fillRect(0,0,this.canvasCtx.canvas.width,this.canvasCtx.canvas.width))}start(){this.logger.verbose("Starting desktop here"),this.state=0,this.inflate.inflateReset(),this.onKvmDataPending=[],this.onKvmDataAck=-1,this.kvmDataSupported=!1;for(const e in this.sparecache)delete this.sparecache[e]}onSendKvmData(e){!0!==this.onKvmDataAck?this.onKvmDataPending.push(e):((0,n.f)(this.urlvars)&&(0,n.f)(this.urlvars.kvmdatatrace)&&console.log(`KVM-Send (${e.length}) data`),e="\0KvmDataChannel\0"+e,this.onSend(String.fromCharCode(6,0,0,0)+r.r.IntToStr(e.length)+e),this.onKvmDataAck=!1)}}},59:(e,t,i)=>{"use strict";i.d(t,{N:()=>r});var s=i(503);class r extends s.K{constructor(e,t,i,s,r,n,o,a,h,l,c){super(e,t,i,s,r,n,o,a,h,l,c)}}},503:(e,t,i)=>{"use strict";i.d(t,{K:()=>h,b:()=>s});var s,r=i(565),n=i(568),o=i.n(n),a=i(611);!function(e){e[e.SOL=1]="SOL",e[e.KVM=2]="KVM",e[e.IDER=3]="IDER"}(s||(s={}));class h{constructor(e,t,i,s,r,n,o,a,h,l,c){this.fileReader=i,this.fileReaderInUse=!1,this.fileReaderAcc=[],this.randomNonceChars="abcdef0123456789",this.host=s,this.port=r,this.user=n,this.pass=o,this.tls=a,this.tlsv1only=h,this.protocol=t,this.RedirectStartSol=String.fromCharCode(16,0,0,0,83,79,76,32),this.RedirectStartKvm=String.fromCharCode(16,1,0,0,75,86,77,82),this.RedirectStartIder=String.fromCharCode(16,0,0,0,73,68,69,82),this.urlvars={},this.server=c,this.amtAccumulator="",this.authUri="",this.logger=e,this.authToken=l}getWsLocation(){return this.isBrowser()&&!(0,a.f)(this.server)?`${window.location.protocol.replace("http","ws")}//\n ${window.location.host}\n ${window.location.pathname.substring(0,window.location.pathname.lastIndexOf("/"))}\n /webrelay.ashx?p=2&host=${this.host}&port=${this.port}&tls=${this.tls}${"*"===this.user?"&serverauth=1":""}${void 0===this.pass?"&serverauth=1&user="+this.user:""}&tls1only=${this.tlsv1only}`:`${String(this.server)}/webrelay.ashx?p=2&host=${this.host}&port=${this.port}&tls=${this.tls}${"*"===this.user?"&serverauth=1":""}${void 0===this.pass?"&serverauth=1&user="+this.user:""}&tls1only=${this.tlsv1only}`}isBrowser(){try{const e="undefined"!=typeof window;return e&&this.logger.debug("!!!!!BROWSER!!!!!"),e}catch(e){return!1}}start(e){this.connectState=0,this.socket=new e(this.getWsLocation(),this.authToken),this.socket.onopen=this.onSocketConnected.bind(this),this.socket.onmessage=this.onMessage.bind(this),this.socket.onclose=this.onSocketClosed.bind(this),(0,a.f)(this.fileReader)&&(0,a.f)(this.fileReader.readAsBinaryString)?this.fileReader.onload=(e=>{this.onSocketData(e.target.result),0===this.fileReaderAcc.length?this.fileReaderInUse=!1:this.fileReader.readAsBinaryString(new Blob([this.fileReaderAcc.shift()]))}).bind(this):(0,a.f)(this.fileReader)&&(0,a.f)(this.fileReader.readAsArrayBuffer)&&(this.fileReader.onloadend=(e=>{this.onSocketData(e.target.result),0===this.fileReaderAcc.length?this.fileReaderInUse=!1:this.fileReader.readAsArrayBuffer(this.fileReaderAcc.shift())}).bind(this)),this.logger.verbose("Connecting to websocket"),this.onStateChange(1)}onSocketConnected(){(0,a.f)(this.urlvars)&&(0,a.f)(this.urlvars.redirtrace)&&console.log("REDIR-CONNECT"),this.onStateChange(2),this.logger.verbose(`Connected to websocket server. With protocol ${this.protocol} (2 = KVM)`),this.logger.info(`Start Redirect Session for protocol. ${this.protocol}`),this.protocol===s.SOL&&this.socketSend(this.RedirectStartSol),this.protocol===s.KVM&&this.socketSend(this.RedirectStartKvm),this.protocol===s.IDER&&this.socketSend(this.RedirectStartIder)}onMessage(e){try{if(this.inDataCount++,"object"==typeof e.data){if(this.fileReaderInUse)return void this.fileReaderAcc.push(e.data);if(null!=this.fileReader.readAsBinaryString)this.fileReaderInUse=!0,this.fileReader.readAsBinaryString(new Blob([e.data]));else if(null!=this.fileReader.readAsArrayBuffer)this.fileReaderInUse=!0,this.fileReader.readAsArrayBuffer(e.data);else{let t="";const i=new Uint8Array(e.data),s=i.byteLength;for(let e=0;e<s;e++)t+=String.fromCharCode(i[e]);this.onSocketData(t)}}else this.onSocketData(e.data)}catch(e){this.logger.error(e),this.stop(),this.onError()}}onSocketData(e){if((0,a.f)(e)&&-1!==this.connectState){if("object"==typeof e){let t="";const i=new Uint8Array(e),s=i.byteLength;for(let e=0;e<s;e++)t+=String.fromCharCode(i[e]);e=t}else if("string"!=typeof e)return;if(this.protocol!==s.KVM&&this.protocol!==s.IDER||1!==this.connectState)for(this.amtAccumulator+=e;this.amtAccumulator.length>=1;){let e=0;switch(this.amtAccumulator.charCodeAt(0)){case 17:if(this.logger.verbose(`Start Redirection Session reply received for ${this.protocol}`),this.amtAccumulator.length<4)return;switch(this.amtAccumulator.charCodeAt(1)){case 0:{if(this.logger.verbose("Session status success. Start handshake"),this.amtAccumulator.length<13)return;const t=this.amtAccumulator.charCodeAt(12);if(this.amtAccumulator.length<13+t)return;this.logger.verbose("Query for available authentication"),this.socketSend(String.fromCharCode(19,0,0,0,0,0,0,0,0)),e=13+t;break}default:this.stop()}break;case 20:{if(this.logger.verbose("Available Authentications reply received."),this.amtAccumulator.length<9)return;const t=r.r.ReadIntX(this.amtAccumulator,5);if(this.amtAccumulator.length<9+t)return;const i=this.amtAccumulator.charCodeAt(1),s=this.amtAccumulator.charCodeAt(4),n=[];for(let e=0;e<t;e++)n.push(this.amtAccumulator.charCodeAt(9+e));const o=this.amtAccumulator.substring(9,9+t);if(e=9+t,0===s)(0,a.f)(n.includes(4))?(this.logger.verbose("Good Digest Auth (With cnonce and all)"),this.socketSend(String.fromCharCode(19,0,0,0,4)+r.r.IntToStrX(this.user.length+this.authUri.length+8)+String.fromCharCode(this.user.length)+this.user+String.fromCharCode(0,0)+String.fromCharCode(this.authUri.length)+this.authUri+String.fromCharCode(0,0,0,0))):(0,a.f)(n.includes(3))?(this.logger.warn("Bad Digest Auth"),this.socketSend(String.fromCharCode(19,0,0,0,3)+r.r.IntToStrX(this.user.length+this.authUri.length+7)+String.fromCharCode(this.user.length)+this.user+String.fromCharCode(0,0)+String.fromCharCode(this.authUri.length)+this.authUri+String.fromCharCode(0,0,0))):(0,a.f)(n.includes(1))?(this.logger.verbose("Basic Auth"),this.socketSend(String.fromCharCode(19,0,0,0,1)+r.r.IntToStrX(this.user.length+this.pass.length+2)+String.fromCharCode(this.user.length)+this.user+String.fromCharCode(this.pass.length)+this.pass)):(this.logger.error("Auth Type not recognized. Stopping."),this.stop());else if(3!==s&&4!==s||1!==i)if(0===i){if(1===this.protocol){const e=1e4,t=100,i=0,s=1e4,n=100,o=0;this.socketSend(String.fromCharCode(32,0,0,0)+r.r.IntToStrX(this.amtSequence++)+r.r.ShortToStrX(e)+r.r.ShortToStrX(t)+r.r.ShortToStrX(i)+r.r.ShortToStrX(s)+r.r.ShortToStrX(n)+r.r.ShortToStrX(o)+r.r.IntToStrX(0))}2===this.protocol&&this.socketSend(String.fromCharCode(64,0,0,0,0,0,0,0)),3===this.protocol&&(this.connectState=1,this.onStateChange(3))}else this.stop();else{let e=0;const t=o.charCodeAt(e),i=o.substring(e+1,e+1+t);e+=t+1;const n=o.charCodeAt(e),a=o.substring(e+1,e+1+n);e+=n+1;let h=0,l=null;const c=this.generateRandomNonce(32),d="00000002";let u="";4===s&&(h=o.charCodeAt(e),l=o.substring(e+1,e+1+h),e+=h+1,u=`${d}:${c}:${String(l)} :`);const _=this.hex_md5(this.hex_md5(this.user+":"+i+":"+this.pass)+":"+a+":"+u+this.hex_md5("POST:"+this.authUri));let f=this.user.length+i.length+a.length+this.authUri.length+c.length+d.length+_.length+7;4===s&&(f+=parseInt(l.length)+1);let p=String.fromCharCode(19,0,0,0,s)+r.r.IntToStrX(f)+String.fromCharCode(this.user.length)+this.user+String.fromCharCode(i.length)+i+String.fromCharCode(a.length)+a+String.fromCharCode(this.authUri.length)+this.authUri+String.fromCharCode(c.length)+c+String.fromCharCode(d.length)+d+String.fromCharCode(_.length)+_;4===s&&(p=String(p)+(String.fromCharCode(l.length)+String(l))),this.socketSend(p)}break}case 33:if(this.amtAccumulator.length<23)break;this.logger.verbose("Response to settings"),e=23,this.socketSend(String.fromCharCode(39,0,0,0)+r.r.IntToStrX(this.amtSequence++)+String.fromCharCode(0,0,27,0,0,0)),1===this.protocol&&(this.amtKeepAliveTimer=setInterval(this.sendAmtKeepAlive.bind(this),2e3)),this.connectState=1,this.onStateChange(3);break;case 41:if(this.amtAccumulator.length<10)break;this.logger.verbose("Serial Settings"),e=10;break;case 42:{if(this.amtAccumulator.length<10)break;this.logger.verbose("Incoming display data");const t=10+((255&this.amtAccumulator.charCodeAt(9))<<8)+(255&this.amtAccumulator.charCodeAt(8));if(this.amtAccumulator.length<t)break;this.onProcessData(this.amtAccumulator.substring(10,t)),e=t;break}case 43:if(this.amtAccumulator.length<8)break;this.logger.verbose("Keep Alve message"),e=8;break;case 65:if(this.amtAccumulator.length<8)break;this.logger.verbose("KVM traffic. Call onStart handler. And forward rest of acc directly."),this.connectState=1,this.onStart(),this.amtAccumulator.length>8&&this.onProcessData(this.amtAccumulator.substring(8)),e=this.amtAccumulator.length;break;default:return this.logger.error(`Unknown Intel AMT command: ${this.amtAccumulator.charCodeAt(0)} acclen=${this.amtAccumulator.length}`),void this.stop()}if(0===e)return;this.amtAccumulator=this.amtAccumulator.substring(e)}else this.onProcessData(e)}}hex_md5(e){return this.logger.verbose("MD5 the string"),o()(e)}socketSend(e){(0,a.f)(this.urlvars)&&(0,a.f)(this.urlvars.redirtrace)&&this.logger.verbose(`REDIR-SEND(${e.length}): ${r.r.rstr2hex(e)}`);try{if(null!=this.socket&&1===this.socket.readyState){const t=new Uint8Array(e.length);this.logger.verbose(`Redir Send( ${e.length}): ${r.r.rstr2hex(e)}`);for(let i=0;i<e.length;++i)t[i]=e.charCodeAt(i);this.socket.send(t.buffer)}}catch(e){this.logger.error(`Socket send error: ${String(e)}`)}}send(e){this.logger.verbose("Send called "+e),null!=this.socket&&1===this.connectState&&(this.protocol===s.SOL?this.socketSend(String.fromCharCode(40,0,0,0)+r.r.IntToStrX(this.amtSequence++)+r.r.ShortToStrX(e.length)+e):this.socketSend(e))}sendAmtKeepAlive(){null!=this.socket&&this.socketSend(String.fromCharCode(43,0,0,0)+r.r.IntToStrX(this.amtSequence++))}generateRandomNonce(e){let t="";for(let i=0;i<e;i++)t+=this.randomNonceChars.charAt(Math.floor(Math.random()*this.randomNonceChars.length));return t}onSocketClosed(e){(0,a.f)(this.urlvars)&&(0,a.f)(this.urlvars.redirtrace)&&console.log("REDIR-CLOSED"),this.logger.warn("Redir Socket Closed"),this.stop()}onStateChange(e){console.info("onstatechange",e),this.state!==e&&(this.state=e,this.onNewState(this.state),null!=this.onStateChanged&&this.onStateChanged(this,this.state))}stop(){this.logger.warn("Stop called on Redirector. Change state to 0 and close Socket."),this.onStateChange(0),this.connectState=-1,this.amtAccumulator="",null!=this.socket&&(this.socket.close(),this.socket=null),null!=this.amtKeepAliveTimer&&(clearInterval(this.amtKeepAliveTimer),this.amtKeepAliveTimer=null)}}},277:(e,t,i)=>{"use strict";i.d(t,{r:()=>s});class s{constructor(){this.terminalEmulation=1,this.fxEmulation=0,this.fxLineBreak=0,this.AsciiToUnicode=[199,252,233,226,228,224,229,231,234,235,232,239,238,236,196,197,201,230,198,244,246,242,251,249,255,214,220,162,163,165,8359,402,225,237,243,250,241,209,170,218,191,8976,172,189,188,161,171,187,9619,9618,9617,9474,9508,9569,9570,9558,9557,9571,9553,9559,9565,9564,9563,9488,9492,9524,9516,9500,9472,9532,9566,9567,9562,9556,9577,9574,9568,9552,9580,9575,9576,9572,9573,9576,9560,9554,9555,9579,9578,9496,9484,9608,9604,9611,9616,9600,945,223,915,960,931,963,181,964,966,952,8486,948,8734,248,949,8719,8801,177,8805,8806,8992,8993,247,8776,176,8226,183,8730,8319,178,8718,160],this.AsciiToUnicodeIntel=[199,252,233,226,228,224,229,231,234,235,232,239,238,236,196,197,201,230,198,244,246,242,251,249,255,214,220,162,163,165,8359,402,225,237,243,250,241,209,170,218,191,8976,172,189,188,161,174,187,9619,9618,9617,9474,9508,9569,9570,9558,9557,9571,9553,9559,9565,9564,9563,9488,9492,9524,9516,9500,9472,9532,9566,9567,9562,9556,9577,9574,9568,9552,9580,9575,9576,9572,9573,9576,9560,9554,9555,9579,9578,9496,9484,9608,9604,9611,9616,9600,945,223,915,960,931,963,181,964,966,952,8486,948,8734,248,949,8719,8801,177,8805,8806,8992,8993,247,8776,176,8226,183,8730,8319,178,8718,160],this.StateChange=e=>{},this.TermSendKeys=e=>{this.onSend(e)}}}},237:(e,t,i)=>{"use strict";i.d(t,{k:()=>r});var s=i(201);class r{constructor(e){this.minLevel=e}log(e,t){switch(e){case s.i.VERBOSE:this.verbose(t);break;case s.i.INFO:this.info(t);break;case s.i.DEBUG:this.debug(t);break;case s.i.WARNING:this.warn(t);break;case s.i.ERROR:this.error(t)}}debug(e){this.minLevel>=s.i.DEBUG&&console.debug(e)}info(e){this.minLevel>=s.i.INFO&&console.info(e)}error(e){this.minLevel>=s.i.ERROR&&console.error(e)}warn(e){this.minLevel>=s.i.WARNING&&console.warn(e)}verbose(e){this.minLevel>=s.i.VERBOSE&&console.log(e)}}},565:(e,t,i)=>{"use strict";i.d(t,{r:()=>r});var s=i(611);const r={ReadShort:(e,t)=>(e.charCodeAt(t)<<8)+e.charCodeAt(t+1),ReadShortX:(e,t)=>(e.charCodeAt(t+1)<<8)+e.charCodeAt(t),ReadInt:(e,t)=>16777216*e.charCodeAt(t)+(e.charCodeAt(t+1)<<16)+(e.charCodeAt(t+2)<<8)+e.charCodeAt(t+3),ReadSInt:(e,t)=>(e.charCodeAt(t)<<24)+(e.charCodeAt(t+1)<<16)+(e.charCodeAt(t+2)<<8)+e.charCodeAt(t+3),ReadIntX:(e,t)=>16777216*e.charCodeAt(t+3)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+1)<<8)+e.charCodeAt(t),ShortToStr:e=>String.fromCharCode(e>>8&255,255&e),ShortToStrX:e=>String.fromCharCode(255&e,e>>8&255),IntToStr:e=>String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e),IntToStrX:e=>String.fromCharCode(255&e,e>>8&255,e>>16&255,e>>24&255),SplitArray:e=>e.split(","),Clone:e=>JSON.parse(JSON.stringify(e)),EscapeHtml:e=>"string"==typeof e?e.replace(/&/g,"&").replace(/>/g,">").replace(/</g,"<").replace(/"/g,""").replace(/'/g,"'"):"boolean"==typeof e||"number"==typeof e?e:void 0,ArrayElementMove(e,t,i){e.splice(i,0,e.splice(t,1)[0])},ObjectToStringEx(e,t){let i="";if(0!==e&&(!(0,s.f)(e)||null==e))return"(Null)";if(e instanceof Array)for(const s in e)i=i+"<br />"+String(this.gap(t))+"Item #"+String(s)+": "+String(this.ObjectToStringEx(e[s],t+1));else if(e instanceof Object)for(const s in e)i=i+"<br />"+String(this.gap(t))+String(s)+" = "+String(this.ObjectToStringEx(e[s],t+1));else i+=String(this.EscapeHtml(e));return i},ObjectToStringEx2(e,t){let i="";if(0!==e&&(!(0,s.f)(e)||null==e))return"(Null)";if(e instanceof Array)for(const s in e)i=i+"\r\n"+String(this.gap2(t))+"Item #"+String(s)+": "+String(this.ObjectToStringEx2(e[s],t+1));else if(e instanceof Object)for(const s in e)i=i+"\r\n"+String(this.gap2(t))+String(s)+" = "+String(this.ObjectToStringEx2(e[s],t+1));else i+=String(this.EscapeHtml(e));return i},gap(e){let t="";for(let i=0;i<4*e;i++)t+=" ";return t},gap2(e){let t="";for(let i=0;i<4*e;i++)t+=" ";return t},ObjectToString(e){return this.ObjectToStringEx(e,0)},ObjectToString2(e){return this.ObjectToStringEx2(e,0)},char2hex:e=>(e+256).toString(16).substr(-2).toUpperCase(),rstr2hex(e){let t,i="";for(t=0;t<e.length;t++)i+=String(this.char2hex(e.charCodeAt(t)));return i},encode_utf8:e=>unescape(encodeURIComponent(e)),decode_utf8:e=>decodeURIComponent(escape(e)),data2blob(e){const t=new Array(e.length);for(let i=0;i<e.length;i++)t[i]=e.charCodeAt(i);return new Blob([new Uint8Array(t)])},random:e=>Math.floor(Math.random()*e),trademarks:e=>e.replace(/\(R\)/g,"®").replace(/\(TM\)/g,"™")}},46:(e,t,i)=>{"use strict";i.d(t,{H:()=>s});class s{processData(e){}onStateChange(e){}start(){}onSendKvmData(e){}}},784:(e,t,i)=>{"use strict";i.d(t,{$:()=>n});var s=i(989),r=i(611);class n{constructor(e,t,i){this.acc="",this.stateProcessorFac=new s.v(t,i,this.updateRFBState.bind(this)),this.parent=i,this.logger=e}processData(e){if(!(0,r.f)(e))return;this.acc+=e;let t=0;for(this.logger.verbose(`Process Data ACC length: ${this.acc.length}`);this.acc.length>0;){const e=this.stateProcessorFac.getProcessor(this.parent.state),i=this.parent.state;if(t=e.processState(this.acc),this.logger.verbose(`State ${i} Processed. cmdSize returned ${t}`),0===t)return;this.acc=this.acc.substring(t),this.logger.verbose(`remaining acc ${this.acc.length} command size: ${t} new parent state: ${this.parent.state}`)}}updateRFBState(e){this.parent.state=e}}},679:(e,t,i)=>{"use strict";i.d(t,{X:()=>r});var s=i(644);class r{constructor(e){this.parent=e}Decode(e,t,i,r,n,o,a,h){const l=e.charCodeAt(t++);let c,d,u;const _={};let f,p=0,v=0;if(0===l){for(this.parent.logger.verbose("Raw encoding"),f=0;f<a;f++)s.j.setPixel(this.parent,e.charCodeAt(t++)+(2===this.parent.bpp?e.charCodeAt(t++)<<8:0),f);s.j.putImage(this.parent,i,r)}else if(1===l){d=e.charCodeAt(t++)+(2===this.parent.bpp?e.charCodeAt(t++)<<8:0),this.parent.canvasCtx.fillStyle="rgb("+(1===this.parent.bpp?`${224&d}, ${(28&d)<<3}, ${s.j.fixColor((3&d)<<6)}`:`${d>>8&248}, ${d>>3&252},${(31&d)<<3}`)+")",this.parent.logger.verbose("fillstyle: "+this.parent.canvasCtx.fillStyle);const a=s.j.rotX(this.parent,i,r);r=s.j.rotY(this.parent,i,r),i=a,this.parent.canvasCtx.fillRect(i,r,n,o)}else if(l>1&&l<17){this.parent.logger.verbose("Read the packed palette");let n=4,o=15;for(f=0;f<l;f++)_[f]=e.charCodeAt(t++)+(2===this.parent.bpp?e.charCodeAt(t++)<<8:0);for(2===l?(n=1,o=1):l<=4&&(n=2,o=3);p<a&&t<e.length;)for(d=e.charCodeAt(t++),f=8-n;f>=0;f-=n)s.j.setPixel(this.parent,_[d>>f&o],p++);s.j.putImage(this.parent,i,r)}else if(128===l){for(this.parent.logger.verbose("RLE encoded tile");p<a&&t<e.length;){d=e.charCodeAt(t++)+(2===this.parent.bpp?e.charCodeAt(t++)<<8:0),v=1;do{v+=u=e.charCodeAt(t++)}while(255===u);for(;--v>=0;)s.j.setPixel(this.parent,d,p++)}s.j.putImage(this.parent,i,r)}else if(l>129){for(this.parent.logger.verbose("Read the RLE palette"),f=0;f<l-128;f++)_[f]=e.charCodeAt(t++)+(2===this.parent.bpp?e.charCodeAt(t++)<<8:0);for(this.parent.logger.verbose("Decode RLE on palette");p<a&&t<e.length;){if(v=1,c=e.charCodeAt(t++),d=_[c%128],c>127)do{v+=u=e.charCodeAt(t++)}while(255===u);for(;--v>=0;)s.j.setPixel(this.parent,d,p++)}s.j.putImage(this.parent,i,r)}}}},646:(e,t,i)=>{"use strict";i.d(t,{$:()=>s.$,X:()=>r.X});var s=i(784),r=i(679)},663:(e,t,i)=>{"use strict";var s;i.d(t,{i:()=>s}),function(e){e[e.VERBOSE=5]="VERBOSE",e[e.INFO=4]="INFO",e[e.DEBUG=3]="DEBUG",e[e.WARNING=2]="WARNING",e[e.ERROR=1]="ERROR"}(s||(s={}))},201:(e,t,i)=>{"use strict";i.d(t,{i:()=>s.i});var s=i(663)},725:(e,t,i)=>{"use strict";i.d(t,{e:()=>n});var s=i(565),r=i(8);class n{constructor(e,t,i,s){this.wsSocket=e,this.parent=t,this.rleDecoder=i,this.updateRFBState=s}processState(e){let t=0;if(e.length>=12){const i=s.r.ReadShort(e,0),n=s.r.ReadShort(e,2),o=s.r.ReadShort(e,4),a=s.r.ReadShort(e,6),h=o*a,l=s.r.ReadInt(e,8);if(l<17){if(o<1||o>64||a<1||a>64)throw this.parent.logger.error(`Invalid tile size (${o},${a}), disconnecting.`),new Error("Invalid tile size");if(this.parent.sparew!==o||this.parent.spareh!==a){this.parent.sparew=this.parent.sparew2=o,this.parent.spareh=this.parent.spareh2=a,1!==this.parent.rotation&&3!==this.parent.rotation||(this.parent.sparew2=a,this.parent.spareh2=o);const e=`${this.parent.sparew2}x${this.parent.spareh2}`;this.parent.spare=this.parent.sparecache[e],(0,r.fQ)(this.parent.spare)||(this.parent.sparecache[e]=this.parent.spare=this.parent.canvasCtx.createImageData(this.parent.sparew2,this.parent.spareh2))}}if(4294967073===l)this.parent.logger.verbose("Desktop size"),this.parent.canvasCtx.canvas.width=this.parent.ScreenWidth=this.parent.rwidth=this.parent.width=o,this.parent.canvasCtx.canvas.height=this.parent.ScreenHeight=this.parent.rheight=this.parent.height=a,this.wsSocket.send(String.fromCharCode(3,0,0,0,0,0)+s.r.ShortToStr(this.parent.width)+s.r.ShortToStr(this.parent.height)),t=12,null!=this.parent.onScreenSizeChange&&this.parent.onScreenSizeChange(this.parent.ScreenWidth,this.parent.ScreenHeight);else if(0===l){let s=12;const o=12+h*this.parent.bpp;if(e.length<o)return 0;t=o;for(let t=0;t<h;t++)r.jw.setPixel(this.parent,e.charCodeAt(s++)+(2===this.parent.bpp?e.charCodeAt(s++)<<8:0),t);r.jw.putImage(this.parent,i,n)}else{if(16!==l)throw this.parent.logger.error(`Unknown Encoding: ${l} , HEX: ${s.r.rstr2hex(e)}`),new Error(`Unknown Encoding: ${l}`);{if(e.length<16)return 0;const r=s.r.ReadInt(e,12);if(e.length<16+r)return 0;const l=16,c=5,d=0;if(r>5&&0===e.charCodeAt(l)&&s.r.ReadShortX(e,l+1)===r-c)this.rleDecoder.Decode(e,l+5,i,n,o,a,h,r);else{const t=e.substring(l,l+r-d),s=this.parent.inflate.inflate(t);if(!(s.length>0))throw this.parent.logger.error("Invalid deflate data."),new Error("invalid deflate data");this.rleDecoder.Decode(s,0,i,n,o,a,h,s.length)}t=16+r}}if(100==--this.parent.state){this.parent.logger.debug("Frame completed. Update state and request new frame"),this.updateRFBState(4);const e=()=>{r.Xn.sendRefresh(this.parent,this.wsSocket)};0===this.parent.frameRateDelay?r.Xn.sendRefresh(this.parent,this.wsSocket):setTimeout(e,this.parent.frameRateDelay)}}return t}}},70:(e,t,i)=>{"use strict";i.d(t,{U:()=>r});var s=i(565);class r{constructor(e,t,i){this.wsSocket=e,this.serverCutTextHandler=t,this.updateRFBState=i}processState(e){let t=0,i=0;switch(e.charCodeAt(0)){case 0:if(e.length<4)return 0;this.updateRFBState(100+s.r.ReadShort(e,2)),t=4;break;case 2:t=1;break;case 3:if(e.length<8)return 0;if(i=s.r.ReadInt(e,4)+8,e.length<i)return 0;t=this.serverCutTextHandler.handleServerCutText(e)}return t}}},212:(e,t,i)=>{"use strict";i.d(t,{w:()=>s});class s{constructor(e,t){this.wsSocket=e,this.updateRFBState=t}processState(e){let t=0;return e.length>=12?(t=12,this.updateRFBState(1),this.wsSocket.send("RFB 003.008\n"),t):0}}},26:(e,t,i)=>{"use strict";i.d(t,{l:()=>s});class s{constructor(e,t){this.wsSocket=e,this.updateRFBState=t}processState(e){let t=0;return e.length>=1?(t=e.charCodeAt(0)+1,this.wsSocket.send(String.fromCharCode(1)),this.updateRFBState(2),t):0}}},724:(e,t,i)=>{"use strict";i.d(t,{m:()=>r});var s=i(565);class r{constructor(e,t){this.wsSocket=e,this.updateRFBState=t}processState(e){let t=0;if(e.length>=4){if(t=4,0!==s.r.ReadInt(e,0))throw new Error("Error. Stopping. Security response not None.");return this.wsSocket.send(String.fromCharCode(1)),this.updateRFBState(3),t}return 0}}},256:(e,t,i)=>{"use strict";i.d(t,{I:()=>n});var s=i(565),r=i(611);class n{constructor(e,t){this.wsSocket=e,this.parent=t}handleServerCutText(e){if(e.length<8)return 0;const t=s.r.ReadInt(e,4)+8;if(e.length<t)return 0;if(null!=this.parent.onKvmData){const i=e.substring(8,t);i.length>=16&&"\0KvmDataChannel"===i.substring(0,15)&&(this.parent.kvmDataSupported||(this.parent.kvmDataSupported=!0,console.log("KVM Data Channel Supported.")),(-1===this.parent.onKvmDataAck&&16===i.length||0!==i.charCodeAt(15))&&(this.parent.onKvmDataAck=!0),(0,r.f)(this.parent.urlvars)&&(0,r.f)(this.parent.urlvars.kvmdatatrace)&&console.log(`KVM-Recv((${i.length-16})): ${i.substring(16)}`),i.length>16&&this.parent.onKvmData(i.substring(16)),!0===this.parent.onKvmDataAck&&this.parent.onKvmDataPending.length>0&&this.wsSocket.onSendKvmData(this.parent.onKvmDataPending.shift()))}return t}}},946:(e,t,i)=>{"use strict";i.d(t,{C:()=>n});var s=i(565),r=i(173);class n{constructor(e,t,i){this.wsSocket=e,this.parent=t,this.updateRFBState=i}processState(e){let t=0;if(e.length>=24){this.parent.rotation=0;const i=s.r.ReadInt(e,20);if(e.length<24+i)return 0;t=24+i,null!=this.parent.updateScreenDimensions&&this.parent.updateScreenDimensions(s.r.ReadShort(e,0),s.r.ReadShort(e,2)),this.parent.canvasCtx.canvas.width=this.parent.ScreenWidth=this.parent.rwidth=this.parent.width=s.r.ReadShort(e,0),this.parent.canvasCtx.canvas.height=this.parent.ScreenHeight=this.parent.rheight=this.parent.height=s.r.ReadShort(e,2);let n="";return this.parent.useZRLE&&(n+=s.r.IntToStr(16)),n+=s.r.IntToStr(0),n+=s.r.IntToStr(1092),this.parent.logger.verbose("Send supported encodings"),this.wsSocket.send(String.fromCharCode(2,0)+s.r.ShortToStr(n.length/4+1)+n+s.r.IntToStr(-223)),1===this.parent.bpp&&this.wsSocket.send(String.fromCharCode(0,0,0,0,8,8,0,1)+s.r.ShortToStr(7)+s.r.ShortToStr(7)+s.r.ShortToStr(3)+String.fromCharCode(5,2,0,0,0,0)),this.updateRFBState(4),this.parent.onStateChange(3),this.parent.logger.info("Start new frame."),r.X.sendRefresh(this.parent,this.wsSocket),this.parent.oldMouseX=-1,t}return 0}}},389:(e,t,i)=>{"use strict";i.d(t,{Cu:()=>h.C,Ut:()=>n.U,ez:()=>s.e,ll:()=>o.l,mC:()=>a.m,wW:()=>r.w});var s=i(725),r=i(212),n=i(70),o=i(26),a=i(724),h=i(946)},989:(e,t,i)=>{"use strict";i.d(t,{v:()=>o});var s=i(389),r=i(256),n=i(679);class o{constructor(e,t,i){this.stateProcessors={},this.stateProcessors[0]=new s.wW(e,i),this.stateProcessors[1]=new s.ll(e,i),this.stateProcessors[2]=new s.mC(e,i),this.stateProcessors[3]=new s.Cu(e,t,i);const o=new r.I(e,t);this.stateProcessors[4]=new s.Ut(e,o,i),this.stateProcessors["100plus"]=new s.ez(e,t,new n.X(t),i)}getProcessor(e){return e<=100?this.stateProcessors[e]:this.stateProcessors["100plus"]}}},155:(e,t,i)=>{"use strict";i.d(t,{Q:()=>s});class s{constructor(e){this.processData=e=>{null!=this.terminal.capture&&(this.terminal.capture=String(this.terminal.capture)+e);let t="";for(let i=0;i<e.length;i++){const s=e.charCodeAt(i);"J"===e[i]?this.clearTerminal():t+=0!=(128&s)?String.fromCharCode(this.terminal.AsciiToUnicode[127&s]):`${e[i]}`}this.processDataToXterm(t)},this.terminal=e}}},38:(e,t,i)=>{"use strict";i.d(t,{q:()=>n});var s=i(923),r=i(611);const n={convertAMTKeyCode:e=>(0,r.f)(e.code.startsWith("Key"))&&4===e.code.length?e.code.charCodeAt(3)+(!1===e.shiftKey?32:0):(0,r.f)(e.code.startsWith("Digit"))&&6===e.code.length?e.code.charCodeAt(5):(0,r.f)(e.code.startsWith("Numpad"))&&7===e.code.length?e.code.charCodeAt(6):s.Z[e.code]}},923:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});const s={Pause:19,CapsLock:20,Space:32,Quote:39,Minus:45,NumpadMultiply:42,NumpadAdd:43,PrintScreen:44,Comma:44,NumpadSubtract:45,NumpadDecimal:46,Period:46,Slash:47,NumpadDivide:47,Semicolon:59,Equal:61,OSLeft:91,BracketLeft:91,OSRight:91,Backslash:92,BracketRight:93,ContextMenu:93,Backquote:96,NumLock:144,ScrollLock:145,Backspace:65288,Tab:65289,Enter:65293,NumpadEnter:65293,Escape:65307,Delete:65535,Home:65360,PageUp:65365,PageDown:65366,ArrowLeft:65361,ArrowUp:65362,ArrowRight:65363,ArrowDown:65364,End:65367,Insert:65379,F1:65470,F2:65471,F3:65472,F4:65473,F5:65474,F6:65475,F7:65476,F8:65477,F9:65478,F10:65479,F11:65480,F12:65481,ShiftLeft:65505,ShiftRight:65506,ControlLeft:65507,ControlRight:65508,AltLeft:65513,AltRight:65514,MetaLeft:65511,MetaRight:65512}},173:(e,t,i)=>{"use strict";i.d(t,{X:()=>n});var s=i(565),r=i(611);const n={sendRefresh(e,t){if(!e.holding)if(e.focusMode>0){const i=2*e.focusMode;t.send(String.fromCharCode(3,1)+s.r.ShortToStr(Math.max(Math.min(e.oldMouseX,e.lastMouseX)-e.focusMode,0))+s.r.ShortToStr(Math.max(Math.min(e.oldMouseY,e.lastMouseY)-e.focusMode,0))+s.r.ShortToStr(i+Math.abs(e.oldMouseX-e.lastMouseX))+s.r.ShortToStr(i+Math.abs(e.oldMouseY-e.lastMouseY))),e.oldMouseX=e.lastMouseX,e.oldMouseY=e.lastMouseY}else t.send(String.fromCharCode(3,1,0,0,0,0)+s.r.ShortToStr(e.rwidth)+s.r.ShortToStr(e.rheight))},sendKey(e,t,i){if("object"==typeof t)for(const i in t)this.sendKey(e,t[i][0],t[i][1]);else e.send(String.fromCharCode(4,i,0,0)+s.r.IntToStr(t))},sendKvmData(e,t,i){!0!==e.onKvmDataAck?e.onKvmDataPending.push(i):((0,r.f)(e.urlvars)&&(0,r.f)(e.urlvars.kvmdatatrace)&&console.log(`KVM-Send(${String(i.length)}): ${String(i)}`),i="\0KvmDataChannel\0"+String(i),t.send(`${String.fromCharCode(6,0,0,0)}${s.r.IntToStr(i.length)}${String(i)}`),e.onKvmDataAck=!1)},sendKeepAlive(e,t){e.lastKeepAlive<Date.now()-5e3&&(e.lastKeepAlive=Date.now(),t.send(String.fromCharCode(6,0,0,0)+s.r.IntToStr(16)+"\0KvmDataChannel\0"))},sendCtrlAltDelMsg(e){this.sendCad(e)},sendCad(e){this.sendKey(e,65507,1),this.sendKey(e,65513,1),this.sendKey(e,65535,1),this.sendKey(e,65535,0),this.sendKey(e,65513,0),this.sendKey(e,65507,0)}}},644:(e,t,i)=>{"use strict";i.d(t,{j:()=>s});const s={putImage(e,t,i){if(e.holding)return;const r=s.arotX(e,t,i);i=s.arotY(e,t,i),t=r,e.canvasCtx.putImageData(e.spare,t,i)},setPixel(e,t,i){let r,n,o=4*i;e.rotation>0&&(1===e.rotation?(r=i%e.sparew,n=Math.floor(i/e.sparew),o=4*(i=r*e.sparew2+(e.sparew2-1-n))):2===e.rotation?o=e.sparew*e.spareh*4-4-o:3===e.rotation&&(r=i%e.sparew,n=Math.floor(i/e.sparew),o=4*(i=(e.sparew2-1-r)*e.sparew2+n))),1===e.bpp?(e.spare.data[o++]=224&t,e.spare.data[o++]=(28&t)<<3,e.spare.data[o++]=s.fixColor((3&t)<<6)):(e.spare.data[o++]=t>>8&248,e.spare.data[o++]=t>>3&252,e.spare.data[o++]=(31&t)<<3),e.spare.data[o]=255},arotX:(e,t,i)=>0===e.rotation?t:1===e.rotation?e.canvasCtx.canvas.width-e.sparew2-i:2===e.rotation?e.canvasCtx.canvas.width-e.sparew2-t:3===e.rotation?i:0,arotY:(e,t,i)=>0===e.rotation?i:1===e.rotation?t:2===e.rotation?e.canvasCtx.canvas.height-e.spareh2-i:3===e.rotation?e.canvasCtx.canvas.height-e.spareh-t:0,crotX:(e,t,i)=>0===e.rotation?t:1===e.rotation?i:2===e.rotation?e.canvasCtx.canvas.width-t:3===e.rotation?e.canvasCtx.canvas.height-i:0,crotY:(e,t,i)=>0===e.rotation?i:1===e.rotation?e.canvasCtx.canvas.width-t:2===e.rotation?e.canvasCtx.canvas.height-i:3===e.rotation?t:0,rotX:(e,t,i)=>0===e.rotation||1===e.rotation?t:2===e.rotation?t-e.canvasCtx.canvas.width:3===e.rotation?t-e.canvasCtx.canvas.height:0,rotY:(e,t,i)=>0===e.rotation?i:1===e.rotation?i-e.canvasCtx.canvas.width:2===e.rotation?i-e.canvasCtx.canvas.height:3===e.rotation?i:0,setRotation(e,t){for(;t<0;)t+=4;const i=t%4;if(e.holding)return e.rotation=i,!1;if(i===e.rotation)return!0;let r=e.canvasCtx.canvas.width,n=e.canvasCtx.canvas.height;1!==e.rotation&&3!==e.rotation||(r=e.canvasCtx.canvas.height,n=e.canvasCtx.canvas.width),null==e.tcanvas&&(e.tcanvas=document.createElement("canvas"));const o=e.tcanvas.getContext("2d");return o.setTransform(1,0,0,1,0,0),o.canvas.width=r,o.canvas.height=n,o.rotate(-90*e.rotation*Math.PI/180),0===e.rotation&&o.drawImage(e.canvasCtx.canvas,0,0),1===e.rotation&&o.drawImage(e.canvasCtx.canvas,-e.canvasCtx.canvas.width,0),2===e.rotation&&o.drawImage(e.canvasCtx.canvas,-e.canvasCtx.canvas.width,-e.canvasCtx.canvas.height),3===e.rotation&&o.drawImage(e.canvasCtx.canvas,0,-e.canvasCtx.canvas.height),0!==e.rotation&&2!==e.rotation||(e.canvasCtx.canvas.height=r,e.canvasCtx.canvas.width=n),1!==e.rotation&&3!==e.rotation||(e.canvasCtx.canvas.height=n,e.canvasCtx.canvas.width=r),e.canvasCtx.setTransform(1,0,0,1,0,0),e.canvasCtx.rotate(90*i*Math.PI/180),e.rotation=i,e.canvasCtx.drawImage(e.tcanvas,s.rotX(e,0,0),s.rotY(e,0,0)),e.width=e.canvasCtx.canvas.width,e.height=e.canvasCtx.canvas.height,null!=e.onScreenResize&&e.onScreenResize(e.width,e.height,e.canvasId),!0},fixColor:e=>e>127?e+32:e}},717:(e,t,i)=>{"use strict";i.d(t,{E:()=>a});var s,r=i(38),n=i(173),o=i(611);!function(e){e[e.Up=0]="Up",e[e.Down=1]="Down"}(s||(s={}));class a{constructor(e,t){this.Comms=t,this.parent=e}GrabKeyInput(){this.KeyInputGrab||(document.onkeyup=this.handleKeyUp.bind(this),document.onkeydown=this.handleKeyDown.bind(this),document.onkeypress=this.handleKeys.bind(this),this.KeyInputGrab=!0)}UnGrabKeyInput(){this.KeyInputGrab&&(document.onkeyup=null,document.onkeydown=null,document.onkeypress=null,this.KeyInputGrab=!1)}handleKeys(e){return this.haltEvent(e)}haltEvent(e){return(0,o.f)(e.preventDefault)&&e.preventDefault(),(0,o.f)(e.stopPropagation)&&e.stopPropagation(),!1}handleKeyUp(e){return this.handleKeyEvent(s.Up,e)}handleKeyDown(e){return this.handleKeyEvent(s.Down,e)}handleKeyEvent(e,t){let i=t;if((0,o.f)(i)||(i=window.event),(0,o.f)(i.code)){const t=r.q.convertAMTKeyCode(i);this.parent.logger.verbose(`Key ${e} : ${String(t)}`),null!=t&&n.X.sendKey(this.Comms,t,e)}else{let t=i.keyCode;173===t&&(t=189),61===t&&(t=187);let s=t;!1===i.shiftKey&&t>=65&&t<=90&&(s=t+32),t>=112&&t<=124&&(s=t+65358),8===t&&(s=65288),9===t&&(s=65289),13===t&&(s=65293),16===t&&(s=65505),17===t&&(s=65507),18===t&&(s=65513),27===t&&(s=65307),33===t&&(s=65365),34===t&&(s=65366),35===t&&(s=65367),36===t&&(s=65360),37===t&&(s=65361),38===t&&(s=65362),39===t&&(s=65363),40===t&&(s=65364),45===t&&(s=65379),46===t&&(s=65535),t>=96&&t<=105&&(s=t-48),106===t&&(s=42),107===t&&(s=43),109===t&&(s=45),110===t&&(s=46),111===t&&(s=47),186===t&&(s=59),187===t&&(s=61),188===t&&(s=44),189===t&&(s=45),190===t&&(s=46),191===t&&(s=47),192===t&&(s=96),219===t&&(s=91),220===t&&(s=92),221===t&&(s=93),222===t&&(s=39),this.parent.logger.verbose(`Key ${e}: ${t} = ${s}`),n.X.sendKey(this.Comms,s,e)}return this.haltEvent(i)}}},33:(e,t,i)=>{"use strict";i.d(t,{x:()=>o});var s=i(565),r=i(644),n=i(611);class o{constructor(e,t,i){this.topposition=0,this.leftposition=0,this.parent=e,this.comm=t,this.debounceTime=i,this.mouseClickCompleted=!0,this.lastEvent=null}GrabMouseInput(){this.MouseInputGrab||(this.MouseInputGrab=!0)}UnGrabMouseInput(){if(!this.MouseInputGrab)return;const e=this.parent.canvasCtx.canvas;e.onmousemove=null,e.onmouseup=null,e.onmousedown=null,this.MouseInputGrab=!1}mousedown(e){return this.parent.buttonmask|=1<<e.button,this.mousemove(e)}mouseup(e){return this.parent.buttonmask&=65535-(1<<e.button),this.mousemove(e)}mousemove(e){if(4!==this.parent.state)return!0;const t=this.getPositionOfControl(this.parent.canvasControl),i=this.parent.canvasControl.getBoundingClientRect();(0===this.topposition||i.top>this.topposition)&&(this.topposition=i.top),(0===this.leftposition||i.left>this.leftposition)&&(this.leftposition=i.left);const o=this.topposition-i.top,a=this.leftposition-i.left;if(this.parent.lastMouseX=(e.pageX-t[0]+a)*(this.parent.canvasControl.height/this.parent.canvasControl.offsetHeight),this.parent.lastMouseY=(e.pageY-t[1]+o)*(this.parent.canvasControl.width/this.parent.canvasControl.offsetWidth),(0,n.f)(this.parent.noMouseRotate)||(this.parent.lastMouseX2=r.j.crotX(this.parent,this.parent.lastMouseX,this.parent.lastMouseY),this.parent.lastMouseY=r.j.crotY(this.parent,this.parent.lastMouseX,this.parent.lastMouseY),this.parent.lastMouseX=this.parent.lastMouseX2),this.comm.send(String.fromCharCode(5,this.parent.buttonmask)+s.r.ShortToStr(this.parent.lastMouseX)+s.r.ShortToStr(this.parent.lastMouseY)),this.parent.setDeskFocus("DeskFocus",this.parent.focusMode),0!==this.parent.focusMode){const e=Math.min(this.parent.lastMouseX,this.parent.canvasControl.width-this.parent.focusMode),i=Math.min(this.parent.lastMouseY,this.parent.canvasControl.height-this.parent.focusMode),s=2*this.parent.focusMode,r=this.parent.canvasControl,n=r.offsetHeight/this.parent.canvasControl.height,o=r.offsetWidth/this.parent.canvasControl.width,a=this.parent.getDeskFocus("DeskFocus"),h=this.getPositionOfControl(this.parent.canvasControl.parentElement);a.left=`${Math.max((e-this.parent.focusMode)*n,0)+(t[0]-h[0])}px`,a.top=`${Math.max((i-this.parent.focusMode)*o,0)+(t[1]-h[1])}px`,a.width=s*n-6+"px",a.height=s*n-6+"px"}return this.haltEvent(e)}haltEvent(e){return(0,n.f)(e.preventDefault)&&e.preventDefault(),(0,n.f)(e.stopPropagation)&&e.stopPropagation(),!1}getPositionOfControl(e){const t=[0,0];let i=e;for(;null!=i;)t[0]=Number(t[0])+Number(i.offsetLeft),t[1]=Number(t[1])+Number(i.offsetTop),i=i.offsetParent;return t}}},611:(e,t,i)=>{"use strict";i.d(t,{f:()=>s});const s=e=>null!=e&&""!==e&&!1!==e&&0!==e},8:(e,t,i)=>{"use strict";i.d(t,{EB:()=>o.E,Xn:()=>r.X,fQ:()=>h.f,jw:()=>n.j,qD:()=>s.q,xx:()=>a.x});var s=i(38),r=i(173),n=i(644),o=i(717),a=i(33),h=i(611)},305:module=>{var ZLIB=ZLIB||{},BASE,NMAX;void 0===ZLIB.common_initialized&&(ZLIB.Z_NO_FLUSH=0,ZLIB.Z_PARTIAL_FLUSH=1,ZLIB.Z_SYNC_FLUSH=2,ZLIB.Z_FULL_FLUSH=3,ZLIB.Z_FINISH=4,ZLIB.Z_BLOCK=5,ZLIB.Z_TREES=6,ZLIB.Z_OK=0,ZLIB.Z_STREAM_END=1,ZLIB.Z_NEED_DICT=2,ZLIB.Z_ERRNO=-1,ZLIB.Z_STREAM_ERROR=-2,ZLIB.Z_DATA_ERROR=-3,ZLIB.Z_MEM_ERROR=-4,ZLIB.Z_BUF_ERROR=-5,ZLIB.Z_VERSION_ERROR=-6,ZLIB.Z_DEFLATED=8,ZLIB.z_stream=function(){this.next_in=0,this.avail_in=0,this.total_in=0,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg=null,this.state=null,this.data_type=0,this.adler=0,this.input_data="",this.output_data="",this.error=0,this.checksum_function=null},ZLIB.gz_header=function(){this.text=0,this.time=0,this.xflags=0,this.os=255,this.extra=null,this.extra_len=0,this.extra_max=0,this.name=null,this.name_max=0,this.comment=null,this.comm_max=0,this.hcrc=0,this.done=0},ZLIB.common_initialized=!0),void 0===ZLIB&&alert("ZLIB is not defined. SRC zlib.js before zlib-inflate.js"),function(){var DEF_WBITS=15,HEAD=0,FLAGS=1,TIME=2,OS=3,EXLEN=4,EXTRA=5,NAME=6,COMMENT=7,HCRC=8,DICTID=9,DICT=10,TYPE=11,TYPEDO=12,STORED=13,COPY_=14,COPY=15,TABLE=16,LENLENS=17,CODELENS=18,LEN_=19,LEN=20,LENEXT=21,DIST=22,DISTEXT=23,MATCH=24,LIT=25,CHECK=26,LENGTH=27,DONE=28,BAD=29,MEM=30,SYNC=31,ENOUGH_LENS=852,ENOUGH_DISTS=592,ENOUGH=ENOUGH_LENS+ENOUGH_DISTS,CODES=0,LENS=1,DISTS=2,inflate_table_lbase=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],inflate_table_lext=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,203,69],inflate_table_dbase=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],inflate_table_dext=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];function inflate_table(e,t){var i,s,r,n,o,a,h,l,c,d,u,_,f,p,v,g,m,S,b,C,y,w,E=e.next,k=t==DISTS?e.distbits:e.lenbits,x=e.work,A=e.lens,R=t==DISTS?e.nlen:0,D=e.codes;i=t==LENS?e.nlen:t==DISTS?e.ndist:19;var L=new Array(16),B=new Array(16);for(s=0;s<=15;s++)L[s]=0;for(r=0;r<i;r++)L[A[R+r]]++;for(a=k,o=15;o>=1&&0==L[o];o--);if(a>o&&(a=o),0==o)return g={op:64,bits:1,val:0},D[E++]=g,D[E++]=g,t==DISTS?e.distbits=1:e.lenbits=1,e.next=E,0;for(n=1;n<o&&0==L[n];n++);for(a<n&&(a=n),c=1,s=1;s<=15;s++)if(c<<=1,(c-=L[s])<0)return-1;if(c>0&&(t==CODES||1!=o))return e.next=E,-1;for(B[1]=0,s=1;s<15;s++)B[s+1]=B[s]+L[s];for(r=0;r<i;r++)0!=A[R+r]&&(x[B[A[R+r]]++]=r);switch(t){case CODES:S=C=x,b=0,y=0,w=19;break;case LENS:S=inflate_table_lbase,b=-257,C=inflate_table_lext,y=-257,w=256;break;default:S=inflate_table_dbase,C=inflate_table_dext,b=0,y=0,w=-1}if(u=0,r=0,s=n,m=E,h=a,l=0,p=-1,v=(d=1<<a)-1,t==LENS&&d>=ENOUGH_LENS||t==DISTS&&d>=ENOUGH_DISTS)return e.next=E,1;for(;;){g={op:0,bits:s-l,val:0},x[r]<w?g.val=x[r]:x[r]>w?(g.op=C[y+x[r]],g.val=S[b+x[r]]):g.op=96,_=1<<s-l,n=f=1<<h;do{D[m+(u>>>l)+(f-=_)]=g}while(0!=f);for(_=1<<s-1;u&_;)_>>>=1;if(0!=_?(u&=_-1,u+=_):u=0,r++,0==--L[s]){if(s==o)break;s=A[R+x[r]]}if(s>a&&(u&v)!=p){for(0==l&&(l=a),m+=n,c=1<<(h=s-l);h+l<o&&!((c-=L[h+l])<=0);)h++,c<<=1;if(d+=1<<h,t==LENS&&d>=ENOUGH_LENS||t==DISTS&&d>=ENOUGH_DISTS)return e.next=E,1;D[E+(p=u&v)]={op:h,bits:a,val:m-E}}}return 0!=u&&(D[m+u]={op:64,bits:s-l,val:0}),e.next=E+d,t==DISTS?e.distbits=a:e.lenbits=a,0}function inflate_fast(e,t){var i,s,r,n,o,a,h,l,c,d,u,_,f,p,v,g,m,S,b,C,y,w,E=-1,k=-1;i=e.state,s=e.input_data,n=(r=e.next_in)+e.avail_in-5,a=(o=e.next_out)-(t-e.avail_out),h=o+(e.avail_out-257),l=i.wsize,c=i.whave,d=i.wnext,u=i.window,_=i.hold,f=i.bits,p=i.codes,v=i.lencode,g=i.distcode,m=(1<<i.lenbits)-1,S=(1<<i.distbits)-1;e:do{f<15&&(_+=(255&s.charCodeAt(r++))<<f,f+=8,_+=(255&s.charCodeAt(r++))<<f,f+=8),b=p[v+(_&m)];t:for(;;){if(_>>>=C=b.bits,f-=C,0==(C=b.op))e.output_data+=String.fromCharCode(b.val),o++;else{if(!(16&C)){if(0==(64&C)){b=p[v+(b.val+(_&(1<<C)-1))];continue t}if(32&C){i.mode=TYPE;break e}e.msg="invalid literal/length code",i.mode=BAD;break e}y=b.val,(C&=15)&&(f<C&&(_+=(255&s.charCodeAt(r++))<<f,f+=8),y+=_&(1<<C)-1,_>>>=C,f-=C),f<15&&(_+=(255&s.charCodeAt(r++))<<f,f+=8,_+=(255&s.charCodeAt(r++))<<f,f+=8),b=p[g+(_&S)];i:for(;;){if(_>>>=C=b.bits,f-=C,!(16&(C=b.op))){if(0==(64&C)){b=p[g+(b.val+(_&(1<<C)-1))];continue i}e.msg="invalid distance code",i.mode=BAD;break e}if(w=b.val,f<(C&=15)&&(_+=(255&s.charCodeAt(r++))<<f,(f+=8)<C&&(_+=(255&s.charCodeAt(r++))<<f,f+=8)),w+=_&(1<<C)-1,_>>>=C,f-=C,w>(C=o-a)){if((C=w-C)>c&&i.sane){e.msg="invalid distance too far back",i.mode=BAD;break e}E=0,k=-1,0==d?(E+=l-C,C<y&&(y-=C,e.output_data+=u.substring(E,E+C),o+=C,C=0,E=-1,k=o-w)):(E+=d-C,C<y&&(y-=C,e.output_data+=u.substring(E,E+C),E=-1,k=(o+=C)-w))}else E=-1,k=o-w;if(E>=0)e.output_data+=u.substring(E,E+y),o+=y,E+=y;else{var x=y;for(x>o-k&&(x=o-k),e.output_data+=e.output_data.substring(k,k+x),o+=x,k+=x,o+=y-=x;y>2;)e.output_data+=e.output_data.charAt(k++),e.output_data+=e.output_data.charAt(k++),e.output_data+=e.output_data.charAt(k++),y-=3;y&&(e.output_data+=e.output_data.charAt(k++),y>1&&(e.output_data+=e.output_data.charAt(k++)))}break i}}break t}}while(r<n&&o<h);r-=y=f>>>3,_&=(1<<(f-=y<<3))-1,e.next_in=r,e.next_out=o,e.avail_in=r<n?n-r+5:5-(r-n),e.avail_out=o<h?h-o+257:257-(o-h),i.hold=_,i.bits=f}function new_array(e){var t,i=new Array(e);for(t=0;t<e;t++)i[t]=0;return i}function getarg(e,t,i){return e&&t in e?e[t]:i}function checksum_none(){return 0}function inflate_state(){var e;this.mode=0,this.last=0,this.wrap=0,this.havedict=0,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=0,this.distcode=0,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=0,this.lens=new_array(320),this.work=new_array(288),this.codes=new Array(ENOUGH);var t={op:0,bits:0,val:0};for(e=0;e<ENOUGH;e++)this.codes[e]=t;this.sane=0,this.back=0,this.was=0}ZLIB.inflate_copyright=" inflate 1.2.6 Copyright 1995-2012 Mark Adler ",ZLIB.inflateResetKeep=function(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg=null,t.wrap&&(e.adler=1&t.wrap),t.mode=HEAD,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=0,t.distcode=0,t.next=0,t.sane=1,t.back=-1,ZLIB.Z_OK):ZLIB.Z_STREAM_ERROR},ZLIB.inflateReset=function(e,t){var i,s;return e&&e.state?(s=e.state,void 0===t&&(t=DEF_WBITS),t<0?(i=0,t=-t):(i=1+(t>>>4),t<48&&(t&=15)),1==i&&"function"==typeof ZLIB.adler32?e.checksum_function=ZLIB.adler32:2==i&&"function"==typeof ZLIB.crc32?e.checksum_function=ZLIB.crc32:e.checksum_function=checksum_none,t&&(t<8||t>15)?ZLIB.Z_STREAM_ERROR:(s.window&&s.wbits!=t&&(s.window=null),s.wrap=i,s.wbits=t,s.wsize=0,s.whave=0,s.wnext=0,ZLIB.inflateResetKeep(e))):ZLIB.Z_STREAM_ERROR},ZLIB.inflateInit=function(e){var t=new ZLIB.z_stream;return t.state=new inflate_state,ZLIB.inflateReset(t,e),t},ZLIB.inflatePrime=function(e,t,i){var s;return e&&e.state?(s=e.state,t<0?(s.hold=0,s.bits=0,ZLIB.Z_OK):t>16||s.bits+t>32?ZLIB.Z_STREAM_ERROR:(i&=(1<<t)-1,s.hold+=i<<s.bits,s.bits+=t,ZLIB.Z_OK)):ZLIB.Z_STREAM_ERROR};var lenfix_ary=null,lenfix_def="([ {op:96,bits:7,val:0},{op:0,bits:8,val:80},{op:0,bits:8,val:16},{op:20,bits:8,val:115},{op:18,bits:7,val:31},{op:0,bits:8,val:112},{op:0,bits:8,val:48}, {op:0,bits:9,val:192},{op:16,bits:7,val:10},{op:0,bits:8,val:96},{op:0,bits:8,val:32},{op:0,bits:9,val:160},{op:0,bits:8,val:0},{op:0,bits:8,val:128}, {op:0,bits:8,val:64},{op:0,bits:9,val:224},{op:16,bits:7,val:6},{op:0,bits:8,val:88},{op:0,bits:8,val:24},{op:0,bits:9,val:144},{op:19,bits:7,val:59}, {op:0,bits:8,val:120},{op:0,bits:8,val:56},{op:0,bits:9,val:208},{op:17,bits:7,val:17},{op:0,bits:8,val:104},{op:0,bits:8,val:40},{op:0,bits:9,val:176}, {op:0,bits:8,val:8},{op:0,bits:8,val:136},{op:0,bits:8,val:72},{op:0,bits:9,val:240},{op:16,bits:7,val:4},{op:0,bits:8,val:84},{op:0,bits:8,val:20}, {op:21,bits:8,val:227},{op:19,bits:7,val:43},{op:0,bits:8,val:116},{op:0,bits:8,val:52},{op:0,bits:9,val:200},{op:17,bits:7,val:13},{op:0,bits:8,val:100}, {op:0,bits:8,val:36},{op:0,bits:9,val:168},{op:0,bits:8,val:4},{op:0,bits:8,val:132},{op:0,bits:8,val:68},{op:0,bits:9,val:232},{op:16,bits:7,val:8}, {op:0,bits:8,val:92},{op:0,bits:8,val:28},{op:0,bits:9,val:152},{op:20,bits:7,val:83},{op:0,bits:8,val:124},{op:0,bits:8,val:60},{op:0,bits:9,val:216}, {op:18,bits:7,val:23},{op:0,bits:8,val:108},{op:0,bits:8,val:44},{op:0,bits:9,val:184},{op:0,bits:8,val:12},{op:0,bits:8,val:140},{op:0,bits:8,val:76}, {op:0,bits:9,val:248},{op:16,bits:7,val:3},{op:0,bits:8,val:82},{op:0,bits:8,val:18},{op:21,bits:8,val:163},{op:19,bits:7,val:35},{op:0,bits:8,val:114}, {op:0,bits:8,val:50},{op:0,bits:9,val:196},{op:17,bits:7,val:11},{op:0,bits:8,val:98},{op:0,bits:8,val:34},{op:0,bits:9,val:164},{op:0,bits:8,val:2}, {op:0,bits:8,val:130},{op:0,bits:8,val:66},{op:0,bits:9,val:228},{op:16,bits:7,val:7},{op:0,bits:8,val:90},{op:0,bits:8,val:26},{op:0,bits:9,val:148}, {op:20,bits:7,val:67},{op:0,bits:8,val:122},{op:0,bits:8,val:58},{op:0,bits:9,val:212},{op:18,bits:7,val:19},{op:0,bits:8,val:106},{op:0,bits:8,val:42}, {op:0,bits:9,val:180},{op:0,bits:8,val:10},{op:0,bits:8,val:138},{op:0,bits:8,val:74},{op:0,bits:9,val:244},{op:16,bits:7,val:5},{op:0,bits:8,val:86}, {op:0,bits:8,val:22},{op:64,bits:8,val:0},{op:19,bits:7,val:51},{op:0,bits:8,val:118},{op:0,bits:8,val:54},{op:0,bits:9,val:204},{op:17,bits:7,val:15}, {op:0,bits:8,val:102},{op:0,bits:8,val:38},{op:0,bits:9,val:172},{op:0,bits:8,val:6},{op:0,bits:8,val:134},{op:0,bits:8,val:70},{op:0,bits:9,val:236}, {op:16,bits:7,val:9},{op:0,bits:8,val:94},{op:0,bits:8,val:30},{op:0,bits:9,val:156},{op:20,bits:7,val:99},{op:0,bits:8,val:126},{op:0,bits:8,val:62}, {op:0,bits:9,val:220},{op:18,bits:7,val:27},{op:0,bits:8,val:110},{op:0,bits:8,val:46},{op:0,bits:9,val:188},{op:0,bits:8,val:14},{op:0,bits:8,val:142}, {op:0,bits:8,val:78},{op:0,bits:9,val:252},{op:96,bits:7,val:0},{op:0,bits:8,val:81},{op:0,bits:8,val:17},{op:21,bits:8,val:131},{op:18,bits:7,val:31}, {op:0,bits:8,val:113},{op:0,bits:8,val:49},{op:0,bits:9,val:194},{op:16,bits:7,val:10},{op:0,bits:8,val:97},{op:0,bits:8,val:33},{op:0,bits:9,val:162}, {op:0,bits:8,val:1},{op:0,bits:8,val:129},{op:0,bits:8,val:65},{op:0,bits:9,val:226},{op:16,bits:7,val:6},{op:0,bits:8,val:89},{op:0,bits:8,val:25}, {op:0,bits:9,val:146},{op:19,bits:7,val:59},{op:0,bits:8,val:121},{op:0,bits:8,val:57},{op:0,bits:9,val:210},{op:17,bits:7,val:17},{op:0,bits:8,val:105}, {op:0,bits:8,val:41},{op:0,bits:9,val:178},{op:0,bits:8,val:9},{op:0,bits:8,val:137},{op:0,bits:8,val:73},{op:0,bits:9,val:242},{op:16,bits:7,val:4}, {op:0,bits:8,val:85},{op:0,bits:8,val:21},{op:16,bits:8,val:258},{op:19,bits:7,val:43},{op:0,bits:8,val:117},{op:0,bits:8,val:53},{op:0,bits:9,val:202}, {op:17,bits:7,val:13},{op:0,bits:8,val:101},{op:0,bits:8,val:37},{op:0,bits:9,val:170},{op:0,bits:8,val:5},{op:0,bits:8,val:133},{op:0,bits:8,val:69}, {op:0,bits:9,val:234},{op:16,bits:7,val:8},{op:0,bits:8,val:93},{op:0,bits:8,val:29},{op:0,bits:9,val:154},{op:20,bits:7,val:83},{op:0,bits:8,val:125}, {op:0,bits:8,val:61},{op:0,bits:9,val:218},{op:18,bits:7,val:23},{op:0,bits:8,val:109},{op:0,bits:8,val:45},{op:0,bits:9,val:186},{op:0,bits:8,val:13}, {op:0,bits:8,val:141},{op:0,bits:8,val:77},{op:0,bits:9,val:250},{op:16,bits:7,val:3},{op:0,bits:8,val:83},{op:0,bits:8,val:19},{op:21,bits:8,val:195}, {op:19,bits:7,val:35},{op:0,bits:8,val:115},{op:0,bits:8,val:51},{op:0,bits:9,val:198},{op:17,bits:7,val:11},{op:0,bits:8,val:99},{op:0,bits:8,val:35}, {op:0,bits:9,val:166},{op:0,bits:8,val:3},{op:0,bits:8,val:131},{op:0,bits:8,val:67},{op:0,bits:9,val:230},{op:16,bits:7,val:7},{op:0,bits:8,val:91}, {op:0,bits:8,val:27},{op:0,bits:9,val:150},{op:20,bits:7,val:67},{op:0,bits:8,val:123},{op:0,bits:8,val:59},{op:0,bits:9,val:214},{op:18,bits:7,val:19}, {op:0,bits:8,val:107},{op:0,bits:8,val:43},{op:0,bits:9,val:182},{op:0,bits:8,val:11},{op:0,bits:8,val:139},{op:0,bits:8,val:75},{op:0,bits:9,val:246}, {op:16,bits:7,val:5},{op:0,bits:8,val:87},{op:0,bits:8,val:23},{op:64,bits:8,val:0},{op:19,bits:7,val:51},{op:0,bits:8,val:119},{op:0,bits:8,val:55}, {op:0,bits:9,val:206},{op:17,bits:7,val:15},{op:0,bits:8,val:103},{op:0,bits:8,val:39},{op:0,bits:9,val:174},{op:0,bits:8,val:7},{op:0,bits:8,val:135}, {op:0,bits:8,val:71},{op:0,bits:9,val:238},{op:16,bits:7,val:9},{op:0,bits:8,val:95},{op:0,bits:8,val:31},{op:0,bits:9,val:158},{op:20,bits:7,val:99}, {op:0,bits:8,val:127},{op:0,bits:8,val:63},{op:0,bits:9,val:222},{op:18,bits:7,val:27},{op:0,bits:8,val:111},{op:0,bits:8,val:47},{op:0,bits:9,val:190}, {op:0,bits:8,val:15},{op:0,bits:8,val:143},{op:0,bits:8,val:79},{op:0,bits:9,val:254},{op:96,bits:7,val:0},{op:0,bits:8,val:80},{op:0,bits:8,val:16}, {op:20,bits:8,val:115},{op:18,bits:7,val:31},{op:0,bits:8,val:112},{op:0,bits:8,val:48},{op:0,bits:9,val:193},{op:16,bits:7,val:10},{op:0,bits:8,val:96}, {op:0,bits:8,val:32},{op:0,bits:9,val:161},{op:0,bits:8,val:0},{op:0,bits:8,val:128},{op:0,bits:8,val:64},{op:0,bits:9,val:225},{op:16,bits:7,val:6}, {op:0,bits:8,val:88},{op:0,bits:8,val:24},{op:0,bits:9,val:145},{op:19,bits:7,val:59},{op:0,bits:8,val:120},{op:0,bits:8,val:56},{op:0,bits:9,val:209}, {op:17,bits:7,val:17},{op:0,bits:8,val:104},{op:0,bits:8,val:40},{op:0,bits:9,val:177},{op:0,bits:8,val:8},{op:0,bits:8,val:136},{op:0,bits:8,val:72}, {op:0,bits:9,val:241},{op:16,bits:7,val:4},{op:0,bits:8,val:84},{op:0,bits:8,val:20},{op:21,bits:8,val:227},{op:19,bits:7,val:43},{op:0,bits:8,val:116}, {op:0,bits:8,val:52},{op:0,bits:9,val:201},{op:17,bits:7,val:13},{op:0,bits:8,val:100},{op:0,bits:8,val:36},{op:0,bits:9,val:169},{op:0,bits:8,val:4}, {op:0,bits:8,val:132},{op:0,bits:8,val:68},{op:0,bits:9,val:233},{op:16,bits:7,val:8},{op:0,bits:8,val:92},{op:0,bits:8,val:28},{op:0,bits:9,val:153}, {op:20,bits:7,val:83},{op:0,bits:8,val:124},{op:0,bits:8,val:60},{op:0,bits:9,val:217},{op:18,bits:7,val:23},{op:0,bits:8,val:108},{op:0,bits:8,val:44}, {op:0,bits:9,val:185},{op:0,bits:8,val:12},{op:0,bits:8,val:140},{op:0,bits:8,val:76},{op:0,bits:9,val:249},{op:16,bits:7,val:3},{op:0,bits:8,val:82}, {op:0,bits:8,val:18},{op:21,bits:8,val:163},{op:19,bits:7,val:35},{op:0,bits:8,val:114},{op:0,bits:8,val:50},{op:0,bits:9,val:197},{op:17,bits:7,val:11}, {op:0,bits:8,val:98},{op:0,bits:8,val:34},{op:0,bits:9,val:165},{op:0,bits:8,val:2},{op:0,bits:8,val:130},{op:0,bits:8,val:66},{op:0,bits:9,val:229}, {op:16,bits:7,val:7},{op:0,bits:8,val:90},{op:0,bits:8,val:26},{op:0,bits:9,val:149},{op:20,bits:7,val:67},{op:0,bits:8,val:122},{op:0,bits:8,val:58}, {op:0,bits:9,val:213},{op:18,bits:7,val:19},{op:0,bits:8,val:106},{op:0,bits:8,val:42},{op:0,bits:9,val:181},{op:0,bits:8,val:10},{op:0,bits:8,val:138}, {op:0,bits:8,val:74},{op:0,bits:9,val:245},{op:16,bits:7,val:5},{op:0,bits:8,val:86},{op:0,bits:8,val:22},{op:64,bits:8,val:0},{op:19,bits:7,val:51}, {op:0,bits:8,val:118},{op:0,bits:8,val:54},{op:0,bits:9,val:205},{op:17,bits:7,val:15},{op:0,bits:8,val:102},{op:0,bits:8,val:38},{op:0,bits:9,val:173}, {op:0,bits:8,val:6},{op:0,bits:8,val:134},{op:0,bits:8,val:70},{op:0,bits:9,val:237},{op:16,bits:7,val:9},{op:0,bits:8,val:94},{op:0,bits:8,val:30}, {op:0,bits:9,val:157},{op:20,bits:7,val:99},{op:0,bits:8,val:126},{op:0,bits:8,val:62},{op:0,bits:9,val:221},{op:18,bits:7,val:27},{op:0,bits:8,val:110}, {op:0,bits:8,val:46},{op:0,bits:9,val:189},{op:0,bits:8,val:14},{op:0,bits:8,val:142},{op:0,bits:8,val:78},{op:0,bits:9,val:253},{op:96,bits:7,val:0}, {op:0,bits:8,val:81},{op:0,bits:8,val:17},{op:21,bits:8,val:131},{op:18,bits:7,val:31},{op:0,bits:8,val:113},{op:0,bits:8,val:49},{op:0,bits:9,val:195}, {op:16,bits:7,val:10},{op:0,bits:8,val:97},{op:0,bits:8,val:33},{op:0,bits:9,val:163},{op:0,bits:8,val:1},{op:0,bits:8,val:129},{op:0,bits:8,val:65}, {op:0,bits:9,val:227},{op:16,bits:7,val:6},{op:0,bits:8,val:89},{op:0,bits:8,val:25},{op:0,bits:9,val:147},{op:19,bits:7,val:59},{op:0,bits:8,val:121}, {op:0,bits:8,val:57},{op:0,bits:9,val:211},{op:17,bits:7,val:17},{op:0,bits:8,val:105},{op:0,bits:8,val:41},{op:0,bits:9,val:179},{op:0,bits:8,val:9}, {op:0,bits:8,val:137},{op:0,bits:8,val:73},{op:0,bits:9,val:243},{op:16,bits:7,val:4},{op:0,bits:8,val:85},{op:0,bits:8,val:21},{op:16,bits:8,val:258}, {op:19,bits:7,val:43},{op:0,bits:8,val:117},{op:0,bits:8,val:53},{op:0,bits:9,val:203},{op:17,bits:7,val:13},{op:0,bits:8,val:101},{op:0,bits:8,val:37}, {op:0,bits:9,val:171},{op:0,bits:8,val:5},{op:0,bits:8,val:133},{op:0,bits:8,val:69},{op:0,bits:9,val:235},{op:16,bits:7,val:8},{op:0,bits:8,val:93}, {op:0,bits:8,val:29},{op:0,bits:9,val:155},{op:20,bits:7,val:83},{op:0,bits:8,val:125},{op:0,bits:8,val:61},{op:0,bits:9,val:219},{op:18,bits:7,val:23}, {op:0,bits:8,val:109},{op:0,bits:8,val:45},{op:0,bits:9,val:187},{op:0,bits:8,val:13},{op:0,bits:8,val:141},{op:0,bits:8,val:77},{op:0,bits:9,val:251}, {op:16,bits:7,val:3},{op:0,bits:8,val:83},{op:0,bits:8,val:19},{op:21,bits:8,val:195},{op:19,bits:7,val:35},{op:0,bits:8,val:115},{op:0,bits:8,val:51}, {op:0,bits:9,val:199},{op:17,bits:7,val:11},{op:0,bits:8,val:99},{op:0,bits:8,val:35},{op:0,bits:9,val:167},{op:0,bits:8,val:3},{op:0,bits:8,val:131}, {op:0,bits:8,val:67},{op:0,bits:9,val:231},{op:16,bits:7,val:7},{op:0,bits:8,val:91},{op:0,bits:8,val:27},{op:0,bits:9,val:151},{op:20,bits:7,val:67}, {op:0,bits:8,val:123},{op:0,bits:8,val:59},{op:0,bits:9,val:215},{op:18,bits:7,val:19},{op:0,bits:8,val:107},{op:0,bits:8,val:43},{op:0,bits:9,val:183}, {op:0,bits:8,val:11},{op:0,bits:8,val:139},{op:0,bits:8,val:75},{op:0,bits:9,val:247},{op:16,bits:7,val:5},{op:0,bits:8,val:87},{op:0,bits:8,val:23}, {op:64,bits:8,val:0},{op:19,bits:7,val:51},{op:0,bits:8,val:119},{op:0,bits:8,val:55},{op:0,bits:9,val:207},{op:17,bits:7,val:15},{op:0,bits:8,val:103}, {op:0,bits:8,val:39},{op:0,bits:9,val:175},{op:0,bits:8,val:7},{op:0,bits:8,val:135},{op:0,bits:8,val:71},{op:0,bits:9,val:239},{op:16,bits:7,val:9}, {op:0,bits:8,val:95},{op:0,bits:8,val:31},{op:0,bits:9,val:159},{op:20,bits:7,val:99},{op:0,bits:8,val:127},{op:0,bits:8,val:63},{op:0,bits:9,val:223}, {op:18,bits:7,val:27},{op:0,bits:8,val:111},{op:0,bits:8,val:47},{op:0,bits:9,val:191},{op:0,bits:8,val:15},{op:0,bits:8,val:143},{op:0,bits:8,val:79}, {op:0,bits:9,val:255}])",distfix_ary=null,distfix_def="([ {op:16,bits:5,val:1},{op:23,bits:5,val:257},{op:19,bits:5,val:17},{op:27,bits:5,val:4097},{op:17,bits:5,val:5},{op:25,bits:5,val:1025}, {op:21,bits:5,val:65},{op:29,bits:5,val:16385},{op:16,bits:5,val:3},{op:24,bits:5,val:513},{op:20,bits:5,val:33},{op:28,bits:5,val:8193}, {op:18,bits:5,val:9},{op:26,bits:5,val:2049},{op:22,bits:5,val:129},{op:64,bits:5,val:0},{op:16,bits:5,val:2},{op:23,bits:5,val:385}, {op:19,bits:5,val:25},{op:27,bits:5,val:6145},{op:17,bits:5,val:7},{op:25,bits:5,val:1537},{op:21,bits:5,val:97},{op:29,bits:5,val:24577}, {op:16,bits:5,val:4},{op:24,bits:5,val:769},{op:20,bits:5,val:49},{op:28,bits:5,val:12289},{op:18,bits:5,val:13},{op:26,bits:5,val:3073}, {op:22,bits:5,val:193},{op:64,bits:5,val:0}])";function fixedtables(state){var i;for(lenfix_ary||(lenfix_ary=eval(lenfix_def)),distfix_ary||(distfix_ary=eval(distfix_def)),state.lencode=0,state.distcode=512,i=0;i<512;i++)state.codes[i]=lenfix_ary[i];for(i=0;i<32;i++)state.codes[i+512]=distfix_ary[i];state.lenbits=9,state.distbits=5}function updatewindow(e){var t=e.state,i=e.output_data.length;return null===t.window&&(t.window=""),0==t.wsize&&(t.wsize=1<<t.wbits),i>=t.wsize?t.window=e.output_data.substring(i-t.wsize):t.whave+i<t.wsize?t.window+=e.output_data:t.window=t.window.substring(t.whave-(t.wsize-i))+e.output_data,t.whave=t.window.length,t.whave<t.wsize?t.wnext=t.whave:t.wnext=0,0}function CRC2(e,t){var i=[255&t,t>>>8&255];e.state.check=e.checksum_function(e.state.check,i,0,2)}function CRC4(e,t){var i=[255&t,t>>>8&255,t>>>16&255,t>>>24&255];e.state.check=e.checksum_function(e.state.check,i,0,4)}function LOAD(e,t){return t.strm=e,t.left=e.avail_out,t.next=e.next_in,t.have=e.avail_in,t.hold=e.state.hold,t.bits=e.state.bits,t}function RESTORE(e){var t=e.strm;t.next_in=e.next,t.avail_out=e.left,t.avail_in=e.have,t.state.hold=e.hold,t.state.bits=e.bits}function INITBITS(e){e.hold=0,e.bits=0}function PULLBYTE(e){return 0!=e.have&&(e.have--,e.hold+=(255&e.strm.input_data.charCodeAt(e.next++))<<e.bits,e.bits+=8,!0)}function NEEDBITS(e,t){for(;e.bits<t;)if(!PULLBYTE(e))return!1;return!0}function BITS(e,t){return e.hold&(1<<t)-1}function DROPBITS(e,t){e.hold>>>=t,e.bits-=t}function BYTEBITS(e){e.hold>>>=7&e.bits,e.bits-=7&e.bits}function REVERSE(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}var inflate_order=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];ZLIB.inflate=function(e,t){var i,s,r,n,o,a,h,l,c,d=-1,u=-1;if(!e||!e.state||!e.input_data&&0!=e.avail_in)return ZLIB.Z_STREAM_ERROR;(i=e.state).mode==TYPE&&(i.mode=TYPEDO),LOAD(e,s={}),r=s.have,n=s.left,c=ZLIB.Z_OK;e:for(;;)switch(i.mode){case HEAD:if(0==i.wrap){i.mode=TYPEDO;break}if(!NEEDBITS(s,16))break e;if(2&i.wrap&&35615==s.hold){i.check=e.checksum_function(0,null,0,0),CRC2(e,s.hold),INITBITS(s),i.mode=FLAGS;break}if(i.flags=0,null!==i.head&&(i.head.done=-1),!(1&i.wrap)||((BITS(s,8)<<8)+(s.hold>>>8))%31){e.msg="incorrect header check",i.mode=BAD;break}if(BITS(s,4)!=ZLIB.Z_DEFLATED){e.msg="unknown compression method",i.mode=BAD;break}if(DROPBITS(s,4),l=BITS(s,4)+8,0==i.wbits)i.wbits=l;else if(l>i.wbits){e.msg="invalid window size",i.mode=BAD;break}i.dmax=1<<l,e.adler=i.check=e.checksum_function(0,null,0,0),i.mode=512&s.hold?DICTID:TYPE,INITBITS(s);break;case FLAGS:if(!NEEDBITS(s,16))break e;if(i.flags=s.hold,(255&i.flags)!=ZLIB.Z_DEFLATED){e.msg="unknown compression method",i.mode=BAD;break}if(57344&i.flags){e.msg="unknown header flags set",i.mode=BAD;break}null!==i.head&&(i.head.text=s.hold>>>8&1),512&i.flags&&CRC2(e,s.hold),INITBITS(s),i.mode=TIME;case TIME:if(!NEEDBITS(s,32))break e;null!==i.head&&(i.head.time=s.hold),512&i.flags&&CRC4(e,s.hold),INITBITS(s),i.mode=OS;case OS:if(!NEEDBITS(s,16))break e;null!==i.head&&(i.head.xflags=255&s.hold,i.head.os=s.hold>>>8),512&i.flags&&CRC2(e,s.hold),INITBITS(s),i.mode=EXLEN;case EXLEN:if(1024&i.flags){if(!NEEDBITS(s,16))break e;i.length=s.hold,null!==i.head&&(i.head.extra_len=s.hold),512&i.flags&&CRC2(e,s.hold),INITBITS(s),i.head.extra=""}else null!==i.head&&(i.head.extra=null);i.mode=EXTRA;case EXTRA:if(1024&i.flags&&((o=i.length)>s.have&&(o=s.have),o&&(null!==i.head&&null!==i.head.extra&&(l=i.head.extra_len-i.length,i.head.extra+=e.input_data.substring(s.next,s.next+(l+o>i.head.extra_max?i.head.extra_max-l:o))),512&i.flags&&(i.check=e.checksum_function(i.check,e.input_data,s.next,o)),s.have-=o,s.next+=o,i.length-=o),i.length))break e;i.length=0,i.mode=NAME;case NAME:if(2048&i.flags){if(0==s.have)break e;null!==i.head&&null===i.head.name&&(i.head.name=""),o=0;do{if(l=e.input_data.charAt(s.next+o),o++,"\0"===l)break;null!==i.head&&i.length<i.head.name_max&&(i.head.name+=l,i.length++)}while(o<s.have);if(512&i.flags&&(i.check=e.checksum_function(i.check,e.input_data,s.next,o)),s.have-=o,s.next+=o,"\0"!==l)break e}else null!==i.head&&(i.head.name=null);i.length=0,i.mode=COMMENT;case COMMENT:if(4096&i.flags){if(0==s.have)break e;o=0,null!==i.head&&null===i.head.comment&&(i.head.comment="");do{if(l=e.input_data.charAt(s.next+o),o++,"\0"===l)break;null!==i.head&&i.length<i.head.comm_max&&(i.head.comment+=l,i.length++)}while(o<s.have);if(512&i.flags&&(i.check=e.checksum_function(i.check,e.input_data,s.next,o)),s.have-=o,s.next+=o,"\0"!==l)break e}else null!==i.head&&(i.head.comment=null);i.mode=HCRC;case HCRC:if(512&i.flags){if(!NEEDBITS(s,16))break e;if(s.hold!=(65535&i.check)){e.msg="header crc mismatch",i.mode=BAD;break}INITBITS(s)}null!==i.head&&(i.head.hcrc=i.flags>>>9&1,i.head.done=1),e.adler=i.check=e.checksum_function(0,null,0,0),i.mode=TYPE;break;case DICTID:if(!NEEDBITS(s,32))break e;e.adler=i.check=REVERSE(s.hold),INITBITS(s),i.mode=DICT;case DICT:if(0==i.havedict)return RESTORE(s),ZLIB.Z_NEED_DICT;e.adler=i.check=e.checksum_function(0,null,0,0),i.mode=TYPE;case TYPE:if(t==ZLIB.Z_BLOCK||t==ZLIB.Z_TREES)break e;case TYPEDO:if(i.last){BYTEBITS(s),i.mode=CHECK;break}if(!NEEDBITS(s,3))break e;switch(i.last=BITS(s,1),DROPBITS(s,1),BITS(s,2)){case 0:i.mode=STORED;break;case 1:if(fixedtables(i),i.mode=LEN_,t==ZLIB.Z_TREES){DROPBITS(s,2);break e}break;case 2:i.mode=TABLE;break;case 3:e.msg="invalid block type",i.mode=BAD}DROPBITS(s,2);break;case STORED:if(BYTEBITS(s),!NEEDBITS(s,32))break e;if((65535&s.hold)!=(s.hold>>>16&65535^65535)){e.msg="invalid stored block lengths",i.mode=BAD;break}if(i.length=65535&s.hold,INITBITS(s),i.mode=COPY_,t==ZLIB.Z_TREES)break e;case COPY_:i.mode=COPY;case COPY:if(o=i.length){if(o>s.have&&(o=s.have),o>s.left&&(o=s.left),0==o)break e;e.output_data+=e.input_data.substring(s.next,s.next+o),e.next_out+=o,s.have-=o,s.next+=o,s.left-=o,i.length-=o;break}i.mode=TYPE;break;case TABLE:if(!NEEDBITS(s,14))break e;if(i.nlen=BITS(s,5)+257,DROPBITS(s,5),i.ndist=BITS(s,5)+1,DROPBITS(s,5),i.ncode=BITS(s,4)+4,DROPBITS(s,4),i.nlen>286||i.ndist>30){e.msg="too many length or distance symbols",i.mode=BAD;break}i.have=0,i.mode=LENLENS;case LENLENS:for(;i.have<i.ncode;){if(!NEEDBITS(s,3))break e;var _=BITS(s,3);i.lens[inflate_order[i.have++]]=_,DROPBITS(s,3)}for(;i.have<19;)i.lens[inflate_order[i.have++]]=0;if(i.next=0,i.lencode=0,i.lenbits=7,c=inflate_table(i,CODES)){e.msg="invalid code lengths set",i.mode=BAD;break}i.have=0,i.mode=CODELENS;case CODELENS:for(;i.have<i.nlen+i.ndist;){for(;!((a=i.codes[i.lencode+BITS(s,i.lenbits)]).bits<=s.bits);)if(!PULLBYTE(s))break e;if(a.val<16)DROPBITS(s,a.bits),i.lens[i.have++]=a.val;else{if(16==a.val){if(!NEEDBITS(s,a.bits+2))break e;if(DROPBITS(s,a.bits),0==i.have){e.msg="invalid bit length repeat",i.mode=BAD;break}l=i.lens[i.have-1],o=3+BITS(s,2),DROPBITS(s,2)}else if(17==a.val){if(!NEEDBITS(s,a.bits+3))break e;DROPBITS(s,a.bits),l=0,o=3+BITS(s,3),DROPBITS(s,3)}else{if(!NEEDBITS(s,a.bits+7))break e;DROPBITS(s,a.bits),l=0,o=11+BITS(s,7),DROPBITS(s,7)}if(i.have+o>i.nlen+i.ndist){e.msg="invalid bit length repeat",i.mode=BAD;break}for(;o--;)i.lens[i.have++]=l}}if(i.mode==BAD)break;if(0==i.lens[256]){e.msg="invalid code -- missing end-of-block",i.mode=BAD;break}if(i.next=0,i.lencode=i.next,i.lenbits=9,c=inflate_table(i,LENS)){e.msg="invalid literal/lengths set",i.mode=BAD;break}if(i.distcode=i.next,i.distbits=6,c=inflate_table(i,DISTS)){e.msg="invalid distances set",i.mode=BAD;break}if(i.mode=LEN_,t==ZLIB.Z_TREES)break e;case LEN_:i.mode=LEN;case LEN:if(s.have>=6&&s.left>=258){RESTORE(s),inflate_fast(e,n),LOAD(e,s),i.mode==TYPE&&(i.back=-1);break}for(i.back=0;!((a=i.codes[i.lencode+BITS(s,i.lenbits)]).bits<=s.bits);)if(!PULLBYTE(s))break e;if(a.op&&0==(240&a.op)){for(h=a;a=i.codes[i.lencode+h.val+(BITS(s,h.bits+h.op)>>>h.bits)],!(h.bits+a.bits<=s.bits);)if(!PULLBYTE(s))break e;DROPBITS(s,h.bits),i.back+=h.bits}if(DROPBITS(s,a.bits),i.back+=a.bits,i.length=a.val,0==a.op){i.mode=LIT;break}if(32&a.op){i.back=-1,i.mode=TYPE;break}if(64&a.op){e.msg="invalid literal/length code",i.mode=BAD;break}i.extra=15&a.op,i.mode=LENEXT;case LENEXT:if(i.extra){if(!NEEDBITS(s,i.extra))break e;i.length+=BITS(s,i.extra),DROPBITS(s,i.extra),i.back+=i.extra}i.was=i.length,i.mode=DIST;case DIST:for(;!((a=i.codes[i.distcode+BITS(s,i.distbits)]).bits<=s.bits);)if(!PULLBYTE(s))break e;if(0==(240&a.op)){for(h=a;a=i.codes[i.distcode+h.val+(BITS(s,h.bits+h.op)>>>h.bits)],!(h.bits+a.bits<=s.bits);)if(!PULLBYTE(s))break e;DROPBITS(s,h.bits),i.back+=h.bits}if(DROPBITS(s,a.bits),i.back+=a.bits,64&a.op){e.msg="invalid distance code",i.mode=BAD;break}i.offset=a.val,i.extra=15&a.op,i.mode=DISTEXT;case DISTEXT:if(i.extra){if(!NEEDBITS(s,i.extra))break e;i.offset+=BITS(s,i.extra),DROPBITS(s,i.extra),i.back+=i.extra}i.mode=MATCH;case MATCH:if(0==s.left)break e;if(o=n-s.left,i.offset>o){if((o=i.offset-o)>i.whave&&i.sane){e.msg="invalid distance too far back",i.mode=BAD;break}o>i.wnext?(o-=i.wnext,d=i.wsize-o,u=-1):(d=i.wnext-o,u=-1),o>i.length&&(o=i.length)}else d=-1,u=e.next_out-i.offset,o=i.length;if(o>s.left&&(o=s.left),s.left-=o,i.length-=o,d>=0)e.output_data+=i.window.substring(d,d+o),e.next_out+=o,o=0;else{e.next_out+=o;do{e.output_data+=e.output_data.charAt(u++)}while(--o)}0==i.length&&(i.mode=LEN);break;case LIT:if(0==s.left)break e;e.output_data+=String.fromCharCode(i.length),e.next_out++,s.left--,i.mode=LEN;break;case CHECK:if(i.wrap){if(!NEEDBITS(s,32))break e;if(n-=s.left,e.total_out+=n,i.total+=n,n&&(e.adler=i.check=e.checksum_function(i.check,e.output_data,e.output_data.length-n,n)),n=s.left,(i.flags?s.hold:REVERSE(s.hold))!=i.check){e.msg="incorrect data check",i.mode=BAD;break}INITBITS(s)}i.mode=LENGTH;case LENGTH:if(i.wrap&&i.flags){if(!NEEDBITS(s,32))break e;if(s.hold!=(4294967295&i.total)){e.msg="incorrect length check",i.mode=BAD;break}INITBITS(s)}i.mode=DONE;case DONE:c=ZLIB.Z_STREAM_END;break e;case BAD:c=ZLIB.Z_DATA_ERROR;break e;case MEM:return ZLIB.Z_MEM_ERROR;default:return ZLIB.Z_STREAM_ERROR}return RESTORE(s),(i.wsize||n!=e.avail_out&&i.mode<BAD&&(i.mode<CHECK||t!=ZLIB.Z_FINISH))&&updatewindow(e)?(i.mode=MEM,ZLIB.Z_MEM_ERROR):(r-=e.avail_in,n-=e.avail_out,e.total_in+=r,e.total_out+=n,i.total+=n,i.wrap&&n&&(e.adler=i.check=e.checksum_function(i.check,e.output_data,0,e.output_data.length)),e.data_type=i.bits+(i.last?64:0)+(i.mode==TYPE?128:0)+(i.mode==LEN_||i.mode==COPY_?256:0),(0==r&&0==n||t==ZLIB.Z_FINISH)&&c==ZLIB.Z_OK&&(c=ZLIB.Z_BUF_ERROR),c)},ZLIB.inflateEnd=function(e){return e&&e.state?(e.state.window=null,e.state=null,ZLIB.Z_OK):ZLIB.Z_STREAM_ERROR},ZLIB.z_stream.prototype.inflate=function(e,t){var i,s;this.input_data=e,this.next_in=getarg(t,"next_in",0),this.avail_in=getarg(t,"avail_in",e.length-this.next_in),i=getarg(t,"flush",ZLIB.Z_SYNC_FLUSH),s=getarg(t,"avail_out",-1);var r="";do{if(this.avail_out=s>=0?s:16384,this.output_data="",this.next_out=0,this.error=ZLIB.inflate(this,i),0!=this.error&&console.log("zlib error",this.error),s>=0)return this.output_data;if(r+=this.output_data,this.avail_out>0)break}while(this.error==ZLIB.Z_OK);return r},ZLIB.z_stream.prototype.inflateReset=function(e){return ZLIB.inflateReset(this,e)}}(),void 0===ZLIB&&alert("ZLIB is not defined. SRC zlib.js before zlib-adler32.js"),BASE=65521,NMAX=5552,ZLIB.adler32=function(e,t,i,s){return"string"==typeof t?function(e,t,i,s){var r,n;if(r=e>>>16&65535,e&=65535,1==s)return(e+=255&t.charCodeAt(i))>=BASE&&(e-=BASE),(r+=e)>=BASE&&(r-=BASE),e|r<<16;if(null===t)return 1;if(s<16){for(;s--;)r+=e+=255&t.charCodeAt(i++);return e>=BASE&&(e-=BASE),e|(r%=BASE)<<16}for(;s>=NMAX;){s-=NMAX,n=347;do{r+=e+=255&t.charCodeAt(i++),r+=e+=255&t.charCodeAt(i++),r+=e+=255&t.charCodeAt(i++),r+=e+=255&t.charCodeAt(i++),r+=e+=255&t.charCodeAt(i++),r+=e+=255&t.charCodeAt(i++),r+=e+=255&t.charCodeAt(i++),r+=e+=255&t.charCodeAt(i++),r+=e+=255&t.charCodeAt(i++),r+=e+=255&t.charCodeAt(i++),r+=e+=255&t.charCodeAt(i++),r+=e+=255&t.charCodeAt(i++),r+=e+=255&t.charCodeAt(i++),r+=e+=255&t.charCodeAt(i++),r+=e+=255&t.charCodeAt(i++),r+=e+=255&t.charCodeAt(i++)}while(--n);e%=BASE,r%=BASE}if(s){for(;s>=16;)s-=16,r+=e+=255&t.charCodeAt(i++),r+=e+=255&t.charCodeAt(i++),r+=e+=255&t.charCodeAt(i++),r+=e+=255&t.charCodeAt(i++),r+=e+=255&t.charCodeAt(i++),r+=e+=255&t.charCodeAt(i++),r+=e+=255&t.charCodeAt(i++),r+=e+=255&t.charCodeAt(i++),r+=e+=255&t.charCodeAt(i++),r+=e+=255&t.charCodeAt(i++),r+=e+=255&t.charCodeAt(i++),r+=e+=255&t.charCodeAt(i++),r+=e+=255&t.charCodeAt(i++),r+=e+=255&t.charCodeAt(i++),r+=e+=255&t.charCodeAt(i++),r+=e+=255&t.charCodeAt(i++);for(;s--;)r+=e+=255&t.charCodeAt(i++);e%=BASE,r%=BASE}return e|r<<16}(e,t,i,s):function(e,t,i,s){var r,n;if(r=e>>>16&65535,e&=65535,1==s)return(e+=t[i])>=BASE&&(e-=BASE),(r+=e)>=BASE&&(r-=BASE),e|r<<16;if(null===t)return 1;if(s<16){for(;s--;)r+=e+=t[i++];return e>=BASE&&(e-=BASE),e|(r%=BASE)<<16}for(;s>=NMAX;){s-=NMAX,n=347;do{r+=e+=t[i++],r+=e+=t[i++],r+=e+=t[i++],r+=e+=t[i++],r+=e+=t[i++],r+=e+=t[i++],r+=e+=t[i++],r+=e+=t[i++],r+=e+=t[i++],r+=e+=t[i++],r+=e+=t[i++],r+=e+=t[i++],r+=e+=t[i++],r+=e+=t[i++],r+=e+=t[i++],r+=e+=t[i++]}while(--n);e%=BASE,r%=BASE}if(s){for(;s>=16;)s-=16,r+=e+=t[i++],r+=e+=t[i++],r+=e+=t[i++],r+=e+=t[i++],r+=e+=t[i++],r+=e+=t[i++],r+=e+=t[i++],r+=e+=t[i++],r+=e+=t[i++],r+=e+=t[i++],r+=e+=t[i++],r+=e+=t[i++],r+=e+=t[i++],r+=e+=t[i++],r+=e+=t[i++],r+=e+=t[i++];for(;s--;)r+=e+=t[i++];e%=BASE,r%=BASE}return e|r<<16}(e,t,i,s)},ZLIB.adler32_combine=function(e,t,i){var s,r,n;return i<0?4294967295:(r=(n=i%=BASE)*(s=65535&e),r%=BASE,(s+=(65535&t)+BASE-1)>=BASE&&(s-=BASE),s>=BASE&&(s-=BASE),(r+=(e>>16&65535)+(t>>16&65535)+BASE-n)>=131042&&(r-=131042),r>=BASE&&(r-=BASE),s|r<<16)},void 0===ZLIB&&alert("ZLIB is not defined. SRC zlib.js before zlib-crc32.js"),function(){var e=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];function t(e,t){var i,s=0;for(i=0;t;)1&t&&(i^=e[s]),t>>=1,s++;return i}function i(e,i){var s;for(s=0;s<32;s++)e[s]=t(i,i[s])}ZLIB.crc32=function(t,i,s,r){return"string"==typeof i?function(t,i,s,r){if(null==i)return 0;for(t^=4294967295;r>=8;)t=e[255&(t^i.charCodeAt(s++))]^t>>>8,t=e[255&(t^i.charCodeAt(s++))]^t>>>8,t=e[255&(t^i.charCodeAt(s++))]^t>>>8,t=e[255&(t^i.charCodeAt(s++))]^t>>>8,t=e[255&(t^i.charCodeAt(s++))]^t>>>8,t=e[255&(t^i.charCodeAt(s++))]^t>>>8,t=e[255&(t^i.charCodeAt(s++))]^t>>>8,t=e[255&(t^i.charCodeAt(s++))]^t>>>8,r-=8;if(r)do{t=e[255&(t^i.charCodeAt(s++))]^t>>>8}while(--r);return 4294967295^t}(t,i,s,r):function(t,i,s,r){if(null==i)return 0;for(t^=4294967295;r>=8;)t=e[255&(t^i[s++])]^t>>>8,t=e[255&(t^i[s++])]^t>>>8,t=e[255&(t^i[s++])]^t>>>8,t=e[255&(t^i[s++])]^t>>>8,t=e[255&(t^i[s++])]^t>>>8,t=e[255&(t^i[s++])]^t>>>8,t=e[255&(t^i[s++])]^t>>>8,t=e[255&(t^i[s++])]^t>>>8,r-=8;if(r)do{t=e[255&(t^i[s++])]^t>>>8}while(--r);return 4294967295^t}(t,i,s,r)},ZLIB.crc32_combine=function(e,s,r){var n,o,a,h;if(r<=0)return e;for(a=new Array(32),(h=new Array(32))[0]=3988292384,o=1,n=1;n<32;n++)h[n]=o,o<<=1;i(a,h),i(h,a);do{if(i(a,h),1&r&&(e=t(a,e)),0==(r>>=1))break;i(h,a),1&r&&(e=t(h,e)),r>>=1}while(0!=r);return e^s}}(),module.exports=ZLIB}},__webpack_module_cache__={};function __nested_webpack_require_78641__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var i=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e](i,i.exports,__nested_webpack_require_78641__),i.exports}__nested_webpack_require_78641__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __nested_webpack_require_78641__.d(t,{a:t}),t},__nested_webpack_require_78641__.d=(e,t)=>{for(var i in t)__nested_webpack_require_78641__.o(t,i)&&!__nested_webpack_require_78641__.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},__nested_webpack_require_78641__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__nested_webpack_require_78641__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __nested_webpack_exports__={};return(()=>{"use strict";__nested_webpack_require_78641__.r(__nested_webpack_exports__),__nested_webpack_require_78641__.d(__nested_webpack_exports__,{AMTDesktop:()=>e.r,AMTKeyCodeConverter:()=>u.qD,AMTKvmDataRedirector:()=>t.N,AMTRedirector:()=>i.K,AmtTerminal:()=>s.r,CommsHelper:()=>u.Xn,ConsoleLogger:()=>r.k,DataProcessor:()=>c.$,Desktop:()=>o.H,Encoding:()=>d.ez,FrameBufferBellServerCutText:()=>d.Ut,HandshakeState:()=>d.wW,ImageHelper:()=>u.jw,KeyBoardHelper:()=>u.EB,LogLevel:()=>l.i,MouseHelper:()=>u.xx,Protocol:()=>i.b,RLEDecoder:()=>c.X,SecurityOptions:()=>d.ll,SecurityResponse:()=>d.mC,ServerInit:()=>d.Cu,StateProcessorFactory:()=>a.v,TerminalDataProcessor:()=>h.Q,TypeConverter:()=>n.r,isTruthy:()=>u.fQ});var e=__nested_webpack_require_78641__(166),t=__nested_webpack_require_78641__(59),i=__nested_webpack_require_78641__(503),s=__nested_webpack_require_78641__(277),r=__nested_webpack_require_78641__(237),n=__nested_webpack_require_78641__(565),o=__nested_webpack_require_78641__(46),a=__nested_webpack_require_78641__(989),h=__nested_webpack_require_78641__(155),l=__nested_webpack_require_78641__(201),c=__nested_webpack_require_78641__(646),d=__nested_webpack_require_78641__(389),u=__nested_webpack_require_78641__(8)})(),__nested_webpack_exports__})(),module.exports=e()},14:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var s=i(213),r=i.n(s),n=i(645),o=i.n(n)()(r());o.push([e.id,".xterm{cursor:text;position:relative;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;right:0;left:0;top:0;bottom:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm .xterm-scroll-area{visibility:hidden}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm.enable-mouse-events{cursor:default}.xterm.xterm-cursor-pointer,.xterm .xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility,.xterm .xterm-message{position:absolute;left:0;top:0;bottom:0;right:0;z-index:10;color:rgba(0,0,0,0);pointer-events:none}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:1 !important}.xterm-underline-1{text-decoration:underline}.xterm-underline-2{text-decoration:double underline}.xterm-underline-3{text-decoration:wavy underline}.xterm-underline-4{text-decoration:dotted underline}.xterm-underline-5{text-decoration:dashed underline}.xterm-overline{text-decoration:overline}.xterm-overline.xterm-underline-1{text-decoration:overline underline}.xterm-overline.xterm-underline-2{text-decoration:overline double underline}.xterm-overline.xterm-underline-3{text-decoration:overline wavy underline}.xterm-overline.xterm-underline-4{text-decoration:overline dotted underline}.xterm-overline.xterm-underline-5{text-decoration:overline dashed underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer{z-index:7}.xterm-decoration-overview-ruler{z-index:8;position:absolute;top:0;right:0;pointer-events:none}.xterm-decoration-top{z-index:2;position:relative}",""]);const a=o},20:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var s=i(213),r=i.n(s),n=i(645),o=i.n(n)()(r());o.push([e.id,".sol-header{display:flex}.power-options{display:block;position:absolute;right:1%}.terminal{text-align:left;display:block}.terminal_xterm{display:inline-block}",""]);const a=o},645:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var i="",s=void 0!==t[5];return t[4]&&(i+="@supports (".concat(t[4],") {")),t[2]&&(i+="@media ".concat(t[2]," {")),s&&(i+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),i+=e(t),s&&(i+="}"),t[2]&&(i+="}"),t[4]&&(i+="}"),i})).join("")},t.i=function(e,i,s,r,n){"string"==typeof e&&(e=[[null,e,void 0]]);var o={};if(s)for(var a=0;a<this.length;a++){var h=this[a][0];null!=h&&(o[h]=!0)}for(var l=0;l<e.length;l++){var c=[].concat(e[l]);s&&o[c[0]]||(void 0!==n&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=n),i&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=i):c[2]=i),r&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=r):c[4]="".concat(r)),t.push(c))}},t}},213:e=>{"use strict";e.exports=function(e){return e[1]}},774:e=>{e.exports=function(e,t,i,s){var r=i?i.call(s,e,t):void 0;if(void 0!==r)return!!r;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(var a=Object.prototype.hasOwnProperty.bind(t),h=0;h<n.length;h++){var l=n[h];if(!a(l))return!1;var c=e[l],d=t[l];if(!1===(r=i?i.call(s,c,d,l):void 0)||void 0===r&&c!==d)return!1}return!0}},54:(e,t,i)=>{"use strict";var s=i(379),r=i.n(s),n=i(795),o=i.n(n),a=i(569),h=i.n(a),l=i(565),c=i.n(l),d=i(216),u=i.n(d),_=i(589),f=i.n(_),p=i(14),v={};v.styleTagTransform=f(),v.setAttributes=c(),v.insert=h().bind(null,"head"),v.domAPI=o(),v.insertStyleElement=u(),r()(p.Z,v),p.Z&&p.Z.locals&&p.Z.locals},670:(e,t,i)=>{"use strict";var s=i(379),r=i.n(s),n=i(795),o=i.n(n),a=i(569),h=i.n(a),l=i(565),c=i.n(l),d=i(216),u=i.n(d),_=i(589),f=i.n(_),p=i(20),v={};v.styleTagTransform=f(),v.setAttributes=c(),v.insert=h().bind(null,"head"),v.domAPI=o(),v.insertStyleElement=u(),r()(p.Z,v),p.Z&&p.Z.locals&&p.Z.locals},379:e=>{"use strict";var t=[];function i(e){for(var i=-1,s=0;s<t.length;s++)if(t[s].identifier===e){i=s;break}return i}function s(e,s){for(var n={},o=[],a=0;a<e.length;a++){var h=e[a],l=s.base?h[0]+s.base:h[0],c=n[l]||0,d="".concat(l," ").concat(c);n[l]=c+1;var u=i(d),_={css:h[1],media:h[2],sourceMap:h[3],supports:h[4],layer:h[5]};if(-1!==u)t[u].references++,t[u].updater(_);else{var f=r(_,s);s.byIndex=a,t.splice(a,0,{identifier:d,updater:f,references:1})}o.push(d)}return o}function r(e,t){var i=t.domAPI(t);return i.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;i.update(e=t)}else i.remove()}}e.exports=function(e,r){var n=s(e=e||[],r=r||{});return function(e){e=e||[];for(var o=0;o<n.length;o++){var a=i(n[o]);t[a].references--}for(var h=s(e,r),l=0;l<n.length;l++){var c=i(n[l]);0===t[c].references&&(t[c].updater(),t.splice(c,1))}n=h}}},569:e=>{"use strict";var t={};e.exports=function(e,i){var s=function(e){if(void 0===t[e]){var i=document.querySelector(e);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(e){i=null}t[e]=i}return t[e]}(e);if(!s)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");s.appendChild(i)}},216:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},565:(e,t,i)=>{"use strict";e.exports=function(e){var t=i.nc;t&&e.setAttribute("nonce",t)}},795:e=>{"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(i){!function(e,t,i){var s="";i.supports&&(s+="@supports (".concat(i.supports,") {")),i.media&&(s+="@media ".concat(i.media," {"));var r=void 0!==i.layer;r&&(s+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),s+=i.css,r&&(s+="}"),i.media&&(s+="}"),i.supports&&(s+="}");var n=i.sourceMap;n&&"undefined"!=typeof btoa&&(s+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(n))))," */")),t.styleTagTransform(s,e,t.options)}(t,e,i)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},589:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},893:(e,t,i)=>{"use strict";i.d(t,{ZP:()=>je});var s=i(582),r=i(639),n=i.n(r),o=i(774),a=i.n(o),h=i(563),l=i(160),c=i(211),d=i(190),u=i(371),_="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",f="undefined"!=typeof window&&"HTMLElement"in window,p=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY),v=(new Set,Object.freeze([])),g=Object.freeze({});var m=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),S=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,b=/(^-|-$)/g;function C(e){return e.replace(S,"-").replace(b,"")}var y=/(a)(d)/gi,w=function(e){return String.fromCharCode(e+(e>25?39:97))};function E(e){var t,i="";for(t=Math.abs(e);t>52;t=t/52|0)i=w(t%52)+i;return(w(t%52)+i).replace(y,"$1-$2")}var k,x=function(e,t){for(var i=t.length;i;)e=33*e^t.charCodeAt(--i);return e},A=function(e){return x(5381,e)};function R(e){return"string"==typeof e&&!0}var D="function"==typeof Symbol&&Symbol.for,L=D?Symbol.for("react.memo"):60115,B=D?Symbol.for("react.forward_ref"):60112,T={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},I={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},M={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},O=((k={})[B]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},k[L]=M,k);function P(e){return("type"in(t=e)&&t.type.$$typeof)===L?M:"$$typeof"in e?O[e.$$typeof]:T;var t}var H=Object.defineProperty,F=Object.getOwnPropertyNames,N=Object.getOwnPropertySymbols,$=Object.getOwnPropertyDescriptor,U=Object.getPrototypeOf,W=Object.prototype;function j(e,t,i){if("string"!=typeof t){if(W){var s=U(t);s&&s!==W&&j(e,s,i)}var r=F(t);N&&(r=r.concat(N(t)));for(var n=P(e),o=P(t),a=0;a<r.length;++a){var h=r[a];if(!(h in I||i&&i[h]||o&&h in o||n&&h in n)){var l=$(t,h);try{H(e,h,l)}catch(e){}}}}return e}function K(e){return"function"==typeof e}function z(e){return"object"==typeof e&&"styledComponentId"in e}function q(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Z(e,t){if(0===e.length)return"";for(var i=e[0],s=1;s<e.length;s++)i+=t?t+e[s]:e[s];return i}function G(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function X(e,t,i){if(void 0===i&&(i=!1),!i&&!G(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var s=0;s<t.length;s++)e[s]=X(e[s],t[s]);else if(G(t))for(var s in t)e[s]=X(e[s],t[s]);return e}function V(e,t){Object.defineProperty(e,"toString",{value:t})}function Y(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var J=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,i=0;i<e;i++)t+=this.groupSizes[i];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var i=this.groupSizes,s=i.length,r=s;e>=r;)if((r<<=1)<0)throw Y(16,"".concat(e));this.groupSizes=new Uint32Array(r),this.groupSizes.set(i),this.length=r;for(var n=s;n<r;n++)this.groupSizes[n]=0}for(var o=this.indexOfGroup(e+1),a=(n=0,t.length);n<a;n++)this.tag.insertRule(o,t[n])&&(this.groupSizes[e]++,o++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],i=this.indexOfGroup(e),s=i+t;this.groupSizes[e]=0;for(var r=i;r<s;r++)this.tag.deleteRule(i)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var i=this.groupSizes[e],s=this.indexOfGroup(e),r=s+i,n=s;n<r;n++)t+="".concat(this.tag.getRule(n)).concat("/*!sc*/\n");return t},e}(),Q=new Map,ee=new Map,te=1,ie=function(e){if(Q.has(e))return Q.get(e);for(;ee.has(te);)te++;var t=te++;return Q.set(e,t),ee.set(t,e),t},se=function(e,t){Q.set(e,t),ee.set(t,e)},re="style[".concat(_,"][").concat("data-styled-version",'="').concat("6.0.8",'"]'),ne=new RegExp("^".concat(_,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),oe=function(e,t,i){for(var s,r=i.split(","),n=0,o=r.length;n<o;n++)(s=r[n])&&e.registerName(t,s)},ae=function(e,t){for(var i,s=(null!==(i=t.textContent)&&void 0!==i?i:"").split("/*!sc*/\n"),r=[],n=0,o=s.length;n<o;n++){var a=s[n].trim();if(a){var h=a.match(ne);if(h){var l=0|parseInt(h[1],10),c=h[2];0!==l&&(se(c,l),oe(e,c,h[3]),e.getTag().insertRules(l,r)),r.length=0}else r.push(a)}}};function he(){return i.nc}var le=function(e){var t=document.head,i=e||t,s=document.createElement("style"),r=function(e){var t=Array.from(e.querySelectorAll("style[".concat(_,"]")));return t[t.length-1]}(i),n=void 0!==r?r.nextSibling:null;s.setAttribute(_,"active"),s.setAttribute("data-styled-version","6.0.8");var o=he();return o&&s.setAttribute("nonce",o),i.insertBefore(s,n),s},ce=function(){function e(e){this.element=le(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,i=0,s=t.length;i<s;i++){var r=t[i];if(r.ownerNode===e)return r}throw Y(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),de=function(){function e(e){this.element=le(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var i=document.createTextNode(t);return this.element.insertBefore(i,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),ue=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),_e=f,fe={isServer:!f,useCSSOMInjection:!p},pe=function(){function e(e,t,i){void 0===e&&(e=g),void 0===t&&(t={});var r=this;this.options=(0,s.pi)((0,s.pi)({},fe),e),this.gs=t,this.names=new Map(i),this.server=!!e.isServer,!this.server&&f&&_e&&(_e=!1,function(e){for(var t=document.querySelectorAll(re),i=0,s=t.length;i<s;i++){var r=t[i];r&&"active"!==r.getAttribute(_)&&(ae(e,r),r.parentNode&&r.parentNode.removeChild(r))}}(this)),V(this,(function(){return function(e){for(var t=e.getTag(),i=t.length,s="",r=function(i){var r=function(e){return ee.get(e)}(i);if(void 0===r)return"continue";var n=e.names.get(r),o=t.getGroup(i);if(void 0===n||0===o.length)return"continue";var a="".concat(_,".g").concat(i,'[id="').concat(r,'"]'),h="";void 0!==n&&n.forEach((function(e){e.length>0&&(h+="".concat(e,","))})),s+="".concat(o).concat(a,'{content:"').concat(h,'"}').concat("/*!sc*/\n")},n=0;n<i;n++)r(n);return s}(r)}))}return e.registerId=function(e){return ie(e)},e.prototype.reconstructWithOptions=function(t,i){return void 0===i&&(i=!0),new e((0,s.pi)((0,s.pi)({},this.options),t),this.gs,i&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,i=e.target;return e.isServer?new ue(i):t?new ce(i):new de(i)}(this.options),new J(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(ie(e),this.names.has(e))this.names.get(e).add(t);else{var i=new Set;i.add(t),this.names.set(e,i)}},e.prototype.insertRules=function(e,t,i){this.registerName(e,t),this.getTag().insertRules(ie(e),i)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(ie(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),ve=/&/g,ge=/^\s*\/\/.*$/gm;function me(e,t){return e.map((function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map((function(e){return"".concat(t," ").concat(e)}))),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=me(e.children,t)),e}))}function Se(e){var t,i,s,r=void 0===e?g:e,n=r.options,o=void 0===n?g:n,a=r.plugins,u=void 0===a?v:a,_=function(e,s,r){return r===i||r.startsWith(i)&&r.endsWith(i)&&r.replaceAll(i,"").length>0?".".concat(t):e},f=u.slice();f.push((function(e){e.type===h.Fr&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(ve,i).replace(s,_))})),o.prefix&&f.push(l.Ji),f.push(c.P);var p=function(e,r,n,a){void 0===r&&(r=""),void 0===n&&(n=""),void 0===a&&(a="&"),t=a,i=r,s=new RegExp("\\".concat(i,"\\b"),"g");var h=e.replace(ge,""),u=d.MY(n||r?"".concat(n," ").concat(r," { ").concat(h," }"):h);o.namespace&&(u=me(u,o.namespace));var _=[];return c.q(u,l.qR(f.concat(l.cD((function(e){return _.push(e)}))))),_};return p.hash=u.length?u.reduce((function(e,t){return t.name||Y(15),x(e,t.name)}),5381).toString():"",p}var be=new pe,Ce=Se(),ye=n().createContext({shouldForwardProp:void 0,styleSheet:be,stylis:Ce}),we=(ye.Consumer,n().createContext(void 0));function Ee(){return(0,r.useContext)(ye)}function ke(e){var t=(0,r.useState)(e.stylisPlugins),i=t[0],s=t[1],o=Ee().styleSheet,h=(0,r.useMemo)((function(){var t=o;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target,o]),l=(0,r.useMemo)((function(){return Se({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:i})}),[e.enableVendorPrefixes,e.namespace,i]);(0,r.useEffect)((function(){a()(i,e.stylisPlugins)||s(e.stylisPlugins)}),[e.stylisPlugins]);var c=(0,r.useMemo)((function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:h,stylis:l}}),[e.shouldForwardProp,h,l]);return n().createElement(ye.Provider,{value:c},n().createElement(we.Provider,{value:l},e.children))}var xe=function(){function e(e,t){var i=this;this.inject=function(e,t){void 0===t&&(t=Ce);var s=i.name+t.hash;e.hasNameForId(i.id,s)||e.insertRules(i.id,s,t(i.rules,s,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,V(this,(function(){throw Y(12,String(i.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=Ce),this.name+e.hash},e}(),Ae=function(e){return e>="A"&&e<="Z"};function Re(e){for(var t="",i=0;i<e.length;i++){var s=e[i];if(1===i&&"-"===s&&"-"===e[0])return e;Ae(s)?t+="-"+s.toLowerCase():t+=s}return t.startsWith("ms-")?"-"+t:t}var De=function(e){return null==e||!1===e||""===e},Le=function(e){var t,i,r=[];for(var n in e){var o=e[n];e.hasOwnProperty(n)&&!De(o)&&(Array.isArray(o)&&o.isCss||K(o)?r.push("".concat(Re(n),":"),o,";"):G(o)?r.push.apply(r,(0,s.ev)((0,s.ev)(["".concat(n," {")],Le(o),!1),["}"],!1)):r.push("".concat(Re(n),": ").concat((t=n,null==(i=o)||"boolean"==typeof i||""===i?"":"number"!=typeof i||0===i||t in u.Z||t.startsWith("--")?String(i).trim():"".concat(i,"px")),";")))}return r};function Be(e,t,i,s){return De(e)?[]:z(e)?[".".concat(e.styledComponentId)]:K(e)?!K(r=e)||r.prototype&&r.prototype.isReactComponent||!t?[e]:Be(e(t),t,i,s):e instanceof xe?i?(e.inject(i,s),[e.getName(s)]):[e]:G(e)?Le(e):Array.isArray(e)?Array.prototype.concat.apply(v,e.map((function(e){return Be(e,t,i,s)}))):[e.toString()];var r}function Te(e){for(var t=0;t<e.length;t+=1){var i=e[t];if(K(i)&&!z(i))return!1}return!0}var Ie=A("6.0.8"),Me=function(){function e(e,t,i){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===i||i.isStatic)&&Te(e),this.componentId=t,this.baseHash=x(Ie,t),this.baseStyle=i,pe.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,i){var s=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,i):"";if(this.isStatic&&!i.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))s=q(s,this.staticRulesId);else{var r=Z(Be(this.rules,e,t,i)),n=E(x(this.baseHash,r)>>>0);if(!t.hasNameForId(this.componentId,n)){var o=i(r,".".concat(n),void 0,this.componentId);t.insertRules(this.componentId,n,o)}s=q(s,n),this.staticRulesId=n}else{for(var a=x(this.baseHash,i.hash),h="",l=0;l<this.rules.length;l++){var c=this.rules[l];if("string"==typeof c)h+=c;else if(c){var d=Z(Be(c,e,t,i));a=x(a,d+l),h+=d}}if(h){var u=E(a>>>0);t.hasNameForId(this.componentId,u)||t.insertRules(this.componentId,u,i(h,".".concat(u),void 0,this.componentId)),s=q(s,u)}}return s},e}(),Oe=n().createContext(void 0);Oe.Consumer;var Pe={};function He(e,t,i){var o=z(e),a=e,h=!R(e),l=t.attrs,c=void 0===l?v:l,d=t.componentId,u=void 0===d?function(e,t){var i="string"!=typeof e?"sc":C(e);Pe[i]=(Pe[i]||0)+1;var s="".concat(i,"-").concat(function(e){return E(A(e)>>>0)}("6.0.8"+i+Pe[i]));return t?"".concat(t,"-").concat(s):s}(t.displayName,t.parentComponentId):d,_=(void 0===t.displayName&&function(e){R(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e),t.displayName&&t.componentId?"".concat(C(t.displayName),"-").concat(t.componentId):t.componentId||u),f=o&&a.attrs?a.attrs.concat(c).filter(Boolean):c,p=t.shouldForwardProp;if(o&&a.shouldForwardProp){var S=a.shouldForwardProp;if(t.shouldForwardProp){var b=t.shouldForwardProp;p=function(e,t){return S(e,t)&&b(e,t)}}else p=S}var y=new Me(i,_,o?a.componentStyle:void 0),w=n().forwardRef((function(e,t){return function(e,t,i){var o=e.attrs,a=e.componentStyle,h=e.defaultProps,l=e.foldedComponentIds,c=e.styledComponentId,d=e.target,u=n().useContext(Oe),_=Ee(),f=e.shouldForwardProp||_.shouldForwardProp,p=function(e,t,i){for(var r,n=(0,s.pi)((0,s.pi)({},t),{className:void 0,theme:i}),o=0;o<e.length;o+=1){var a=K(r=e[o])?r(n):r;for(var h in a)n[h]="className"===h?q(n[h],a[h]):"style"===h?(0,s.pi)((0,s.pi)({},n[h]),a[h]):a[h]}return t.className&&(n.className=q(n.className,t.className)),n}(o,t,function(e,t,i){return void 0===i&&(i=g),e.theme!==i.theme&&e.theme||t||i.theme}(t,u,h)||g),v=p.as||d,S={};for(var b in p)void 0===p[b]||"$"===b[0]||"as"===b||"theme"===b||("forwardedAs"===b?S.as=p.forwardedAs:f&&!f(b,v)||(S[b]=p[b]));var C=function(e,t){var i=Ee();return e.generateAndInjectStyles(t,i.styleSheet,i.stylis)}(a,p),y=q(l,c);return C&&(y+=" "+C),p.className&&(y+=" "+p.className),S[R(v)&&!m.has(v)?"class":"className"]=y,S.ref=i,(0,r.createElement)(v,S)}(w,e,t)}));return w.attrs=f,w.componentStyle=y,w.shouldForwardProp=p,w.foldedComponentIds=o?q(a.foldedComponentIds,a.styledComponentId):"",w.styledComponentId=_,w.target=o?a.target:e,Object.defineProperty(w,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=o?function(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];for(var s=0,r=t;s<r.length;s++)X(e,r[s],!0);return e}({},a.defaultProps,e):e}}),V(w,(function(){return".".concat(w.styledComponentId)})),h&&j(w,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),w}function Fe(e,t){for(var i=[e[0]],s=0,r=t.length;s<r;s+=1)i.push(t[s],e[s+1]);return i}new Set;var Ne=function(e){return Object.assign(e,{isCss:!0})};function $e(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];if(K(e)||G(e)){var r=e;return Ne(Be(Fe(v,(0,s.ev)([r],t,!0))))}var n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?Be(n):Ne(Be(Fe(n,t)))}function Ue(e,t,i){if(void 0===i&&(i=g),!t)throw Y(1,t);var r=function(r){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];return e(t,i,$e.apply(void 0,(0,s.ev)([r],n,!1)))};return r.attrs=function(r){return Ue(e,t,(0,s.pi)((0,s.pi)({},i),{attrs:Array.prototype.concat(i.attrs,r).filter(Boolean)}))},r.withConfig=function(r){return Ue(e,t,(0,s.pi)((0,s.pi)({},i),r))},r}var We=function(e){return Ue(He,e)},je=We;m.forEach((function(e){je[e]=We(e)})),function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Te(e),pe.registerId(this.componentId+1)}e.prototype.createStyles=function(e,t,i,s){var r=s(Z(Be(this.rules,t,i,s)),""),n=this.componentId+e;i.insertRules(n,n,r)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,i,s){e>2&&pe.registerId(this.componentId+e),this.removeStyles(e,i),this.createStyles(e,t,i,s)}}(),function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString(),i=he(),s=Z([i&&'nonce="'.concat(i,'"'),"".concat(_,'="true"'),"".concat("data-styled-version",'="').concat("6.0.8",'"')].filter(Boolean)," ");return"<style ".concat(s,">").concat(t,"</style>")},this.getStyleTags=function(){if(e.sealed)throw Y(2);return e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)throw Y(2);var i=((t={})[_]="",t["data-styled-version"]="6.0.8",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),r=he();return r&&(i.nonce=r),[n().createElement("style",(0,s.pi)({},i,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new pe({isServer:!0}),this.sealed=!1}e.prototype.collectStyles=function(e){if(this.sealed)throw Y(2);return n().createElement(ke,{sheet:this.instance},e)},e.prototype.interleaveWithNodeStream=function(e){throw Y(3)}}(),"__sc-".concat(_,"__")},509:(e,t,i)=>{"use strict";i.d(t,{Z:()=>h});var s=i(639),r=i.n(s),n=i(893),o=i(518);n.ZP.div`
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["React"],t):"object"==typeof exports?exports["ui-toolkit/reactjs/sol"]=t(require("react")):e["ui-toolkit/reactjs/sol"]=t(e.React)}(self,(__WEBPACK_EXTERNAL_MODULE__639__=>(()=>{var __webpack_modules__={371:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});var s={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1}},869:module=>{var e;self,e=()=>(()=>{var __webpack_modules__={487:e=>{var t={utf8:{stringToBytes:function(e){return t.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(t.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],i=0;i<e.length;i++)t.push(255&e.charCodeAt(i));return t},bytesToString:function(e){for(var t=[],i=0;i<e.length;i++)t.push(String.fromCharCode(e[i]));return t.join("")}}};e.exports=t},12:e=>{var t,i;t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i={rotl:function(e,t){return e<<t|e>>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&i.rotl(e,8)|4278255360&i.rotl(e,24);for(var t=0;t<e.length;t++)e[t]=i.endian(e[t]);return e},randomBytes:function(e){for(var t=[];e>0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],i=0,s=0;i<e.length;i++,s+=8)t[s>>>5]|=e[i]<<24-s%32;return t},wordsToBytes:function(e){for(var t=[],i=0;i<32*e.length;i+=8)t.push(e[i>>>5]>>>24-i%32&255);return t},bytesToHex:function(e){for(var t=[],i=0;i<e.length;i++)t.push((e[i]>>>4).toString(16)),t.push((15&e[i]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],i=0;i<e.length;i+=2)t.push(parseInt(e.substr(i,2),16));return t},bytesToBase64:function(e){for(var i=[],s=0;s<e.length;s+=3)for(var r=e[s]<<16|e[s+1]<<8|e[s+2],n=0;n<4;n++)8*s+6*n<=8*e.length?i.push(t.charAt(r>>>6*(3-n)&63)):i.push("=");return i.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var i=[],s=0,r=0;s<e.length;r=++s%4)0!=r&&i.push((t.indexOf(e.charAt(s-1))&Math.pow(2,-2*r+8)-1)<<2*r|t.indexOf(e.charAt(s))>>>6-2*r);return i}},e.exports=i},738:e=>{function t(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}e.exports=function(e){return null!=e&&(t(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&t(e.slice(0,0))}(e)||!!e._isBuffer)}},568:(e,t,i)=>{var s,r,n,o,a;s=i(12),r=i(487).utf8,n=i(738),o=i(487).bin,(a=function(e,t){e.constructor==String?e=t&&"binary"===t.encoding?o.stringToBytes(e):r.stringToBytes(e):n(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||e.constructor===Uint8Array||(e=e.toString());for(var i=s.bytesToWords(e),h=8*e.length,l=1732584193,c=-271733879,d=-1732584194,u=271733878,_=0;_<i.length;_++)i[_]=16711935&(i[_]<<8|i[_]>>>24)|4278255360&(i[_]<<24|i[_]>>>8);i[h>>>5]|=128<<h%32,i[14+(h+64>>>9<<4)]=h;var f=a._ff,p=a._gg,v=a._hh,g=a._ii;for(_=0;_<i.length;_+=16){var m=l,S=c,b=d,C=u;l=f(l,c,d,u,i[_+0],7,-680876936),u=f(u,l,c,d,i[_+1],12,-389564586),d=f(d,u,l,c,i[_+2],17,606105819),c=f(c,d,u,l,i[_+3],22,-1044525330),l=f(l,c,d,u,i[_+4],7,-176418897),u=f(u,l,c,d,i[_+5],12,1200080426),d=f(d,u,l,c,i[_+6],17,-1473231341),c=f(c,d,u,l,i[_+7],22,-45705983),l=f(l,c,d,u,i[_+8],7,1770035416),u=f(u,l,c,d,i[_+9],12,-1958414417),d=f(d,u,l,c,i[_+10],17,-42063),c=f(c,d,u,l,i[_+11],22,-1990404162),l=f(l,c,d,u,i[_+12],7,1804603682),u=f(u,l,c,d,i[_+13],12,-40341101),d=f(d,u,l,c,i[_+14],17,-1502002290),l=p(l,c=f(c,d,u,l,i[_+15],22,1236535329),d,u,i[_+1],5,-165796510),u=p(u,l,c,d,i[_+6],9,-1069501632),d=p(d,u,l,c,i[_+11],14,643717713),c=p(c,d,u,l,i[_+0],20,-373897302),l=p(l,c,d,u,i[_+5],5,-701558691),u=p(u,l,c,d,i[_+10],9,38016083),d=p(d,u,l,c,i[_+15],14,-660478335),c=p(c,d,u,l,i[_+4],20,-405537848),l=p(l,c,d,u,i[_+9],5,568446438),u=p(u,l,c,d,i[_+14],9,-1019803690),d=p(d,u,l,c,i[_+3],14,-187363961),c=p(c,d,u,l,i[_+8],20,1163531501),l=p(l,c,d,u,i[_+13],5,-1444681467),u=p(u,l,c,d,i[_+2],9,-51403784),d=p(d,u,l,c,i[_+7],14,1735328473),l=v(l,c=p(c,d,u,l,i[_+12],20,-1926607734),d,u,i[_+5],4,-378558),u=v(u,l,c,d,i[_+8],11,-2022574463),d=v(d,u,l,c,i[_+11],16,1839030562),c=v(c,d,u,l,i[_+14],23,-35309556),l=v(l,c,d,u,i[_+1],4,-1530992060),u=v(u,l,c,d,i[_+4],11,1272893353),d=v(d,u,l,c,i[_+7],16,-155497632),c=v(c,d,u,l,i[_+10],23,-1094730640),l=v(l,c,d,u,i[_+13],4,681279174),u=v(u,l,c,d,i[_+0],11,-358537222),d=v(d,u,l,c,i[_+3],16,-722521979),c=v(c,d,u,l,i[_+6],23,76029189),l=v(l,c,d,u,i[_+9],4,-640364487),u=v(u,l,c,d,i[_+12],11,-421815835),d=v(d,u,l,c,i[_+15],16,530742520),l=g(l,c=v(c,d,u,l,i[_+2],23,-995338651),d,u,i[_+0],6,-198630844),u=g(u,l,c,d,i[_+7],10,1126891415),d=g(d,u,l,c,i[_+14],15,-1416354905),c=g(c,d,u,l,i[_+5],21,-57434055),l=g(l,c,d,u,i[_+12],6,1700485571),u=g(u,l,c,d,i[_+3],10,-1894986606),d=g(d,u,l,c,i[_+10],15,-1051523),c=g(c,d,u,l,i[_+1],21,-2054922799),l=g(l,c,d,u,i[_+8],6,1873313359),u=g(u,l,c,d,i[_+15],10,-30611744),d=g(d,u,l,c,i[_+6],15,-1560198380),c=g(c,d,u,l,i[_+13],21,1309151649),l=g(l,c,d,u,i[_+4],6,-145523070),u=g(u,l,c,d,i[_+11],10,-1120210379),d=g(d,u,l,c,i[_+2],15,718787259),c=g(c,d,u,l,i[_+9],21,-343485551),l=l+m>>>0,c=c+S>>>0,d=d+b>>>0,u=u+C>>>0}return s.endian([l,c,d,u])})._ff=function(e,t,i,s,r,n,o){var a=e+(t&i|~t&s)+(r>>>0)+o;return(a<<n|a>>>32-n)+t},a._gg=function(e,t,i,s,r,n,o){var a=e+(t&s|i&~s)+(r>>>0)+o;return(a<<n|a>>>32-n)+t},a._hh=function(e,t,i,s,r,n,o){var a=e+(t^i^s)+(r>>>0)+o;return(a<<n|a>>>32-n)+t},a._ii=function(e,t,i,s,r,n,o){var a=e+(i^(t|~s))+(r>>>0)+o;return(a<<n|a>>>32-n)+t},a._blocksize=16,a._digestsize=16,e.exports=function(e,t){if(null==e)throw new Error("Illegal argument "+e);var i=s.wordsToBytes(a(e,t));return t&&t.asBytes?i:t&&t.asString?o.bytesToString(i):s.bytesToHex(i)}},166:(e,t,i)=>{"use strict";i.d(t,{r:()=>h});var s=i(46),r=i(565),n=i(611),o=i(305),a=i.n(o);class h extends s.H{constructor(e,t){super(),this.protocol=2,this.inflate=a().inflateInit(15),this.bpp=1,this.state=0,this.focusMode=0,this.useZRLE=!0,this.frameRateDelay=2,this.canvasCtx=t,this.sparecache={},this.buttonmask=0,this.canvasControl=this.canvasCtx.canvas,this.lastMouseMoveTime=(new Date).getTime(),this.logger=e,this.setDeskFocus=(e,t)=>{},this.getDeskFocus=e=>{}}processData(e){this.onProcessData(e)}onStateChange(e){this.logger.verbose(`state change in AMTDesktop: ${e}`),0===e&&(this.canvasCtx.fillStyle="#FFFFFF",this.canvasCtx.fillRect(0,0,this.canvasCtx.canvas.width,this.canvasCtx.canvas.width))}start(){this.logger.verbose("Starting desktop here"),this.state=0,this.inflate.inflateReset(),this.onKvmDataPending=[],this.onKvmDataAck=-1,this.kvmDataSupported=!1;for(const e in this.sparecache)delete this.sparecache[e]}onSendKvmData(e){!0!==this.onKvmDataAck?this.onKvmDataPending.push(e):((0,n.f)(this.urlvars)&&(0,n.f)(this.urlvars.kvmdatatrace)&&console.log(`KVM-Send (${e.length}) data`),e="\0KvmDataChannel\0"+e,this.onSend(String.fromCharCode(6,0,0,0)+r.r.IntToStr(e.length)+e),this.onKvmDataAck=!1)}}},59:(e,t,i)=>{"use strict";i.d(t,{N:()=>r});var s=i(503);class r extends s.K{constructor(e,t,i,s,r,n,o,a,h,l,c){super(e,t,i,s,r,n,o,a,h,l,c)}}},503:(e,t,i)=>{"use strict";i.d(t,{K:()=>h,b:()=>s});var s,r=i(565),n=i(568),o=i.n(n),a=i(611);!function(e){e[e.SOL=1]="SOL",e[e.KVM=2]="KVM",e[e.IDER=3]="IDER"}(s||(s={}));class h{constructor(e,t,i,s,r,n,o,a,h,l,c){this.fileReader=i,this.fileReaderInUse=!1,this.fileReaderAcc=[],this.randomNonceChars="abcdef0123456789",this.host=s,this.port=r,this.user=n,this.pass=o,this.tls=a,this.tlsv1only=h,this.protocol=t,this.RedirectStartSol=String.fromCharCode(16,0,0,0,83,79,76,32),this.RedirectStartKvm=String.fromCharCode(16,1,0,0,75,86,77,82),this.RedirectStartIder=String.fromCharCode(16,0,0,0,73,68,69,82),this.urlvars={},this.server=c,this.amtAccumulator="",this.authUri="",this.logger=e,this.authToken=l}getWsLocation(){return this.isBrowser()&&!(0,a.f)(this.server)?`${window.location.protocol.replace("http","ws")}//\n ${window.location.host}\n ${window.location.pathname.substring(0,window.location.pathname.lastIndexOf("/"))}\n /webrelay.ashx?p=2&host=${this.host}&port=${this.port}&tls=${this.tls}${"*"===this.user?"&serverauth=1":""}${void 0===this.pass?"&serverauth=1&user="+this.user:""}&tls1only=${this.tlsv1only}`:`${String(this.server)}/webrelay.ashx?p=2&host=${this.host}&port=${this.port}&tls=${this.tls}${"*"===this.user?"&serverauth=1":""}${void 0===this.pass?"&serverauth=1&user="+this.user:""}&tls1only=${this.tlsv1only}`}isBrowser(){try{const e="undefined"!=typeof window;return e&&this.logger.debug("!!!!!BROWSER!!!!!"),e}catch(e){return!1}}start(e){this.connectState=0,this.socket=new e(this.getWsLocation(),this.authToken),this.socket.onopen=this.onSocketConnected.bind(this),this.socket.onmessage=this.onMessage.bind(this),this.socket.onclose=this.onSocketClosed.bind(this),(0,a.f)(this.fileReader)&&(0,a.f)(this.fileReader.readAsBinaryString)?this.fileReader.onload=(e=>{this.onSocketData(e.target.result),0===this.fileReaderAcc.length?this.fileReaderInUse=!1:this.fileReader.readAsBinaryString(new Blob([this.fileReaderAcc.shift()]))}).bind(this):(0,a.f)(this.fileReader)&&(0,a.f)(this.fileReader.readAsArrayBuffer)&&(this.fileReader.onloadend=(e=>{this.onSocketData(e.target.result),0===this.fileReaderAcc.length?this.fileReaderInUse=!1:this.fileReader.readAsArrayBuffer(this.fileReaderAcc.shift())}).bind(this)),this.logger.verbose("Connecting to websocket"),this.onStateChange(1)}onSocketConnected(){(0,a.f)(this.urlvars)&&(0,a.f)(this.urlvars.redirtrace)&&console.log("REDIR-CONNECT"),this.onStateChange(2),this.logger.verbose(`Connected to websocket server. With protocol ${this.protocol} (2 = KVM)`),this.logger.info(`Start Redirect Session for protocol. ${this.protocol}`),this.protocol===s.SOL&&this.socketSend(this.RedirectStartSol),this.protocol===s.KVM&&this.socketSend(this.RedirectStartKvm),this.protocol===s.IDER&&this.socketSend(this.RedirectStartIder)}onMessage(e){try{if(this.inDataCount++,"object"==typeof e.data){if(this.fileReaderInUse)return void this.fileReaderAcc.push(e.data);if(null!=this.fileReader.readAsBinaryString)this.fileReaderInUse=!0,this.fileReader.readAsBinaryString(new Blob([e.data]));else if(null!=this.fileReader.readAsArrayBuffer)this.fileReaderInUse=!0,this.fileReader.readAsArrayBuffer(e.data);else{let t="";const i=new Uint8Array(e.data),s=i.byteLength;for(let e=0;e<s;e++)t+=String.fromCharCode(i[e]);this.onSocketData(t)}}else this.onSocketData(e.data)}catch(e){this.logger.error(e),this.stop(),this.onError()}}onSocketData(e){if((0,a.f)(e)&&-1!==this.connectState){if("object"==typeof e){let t="";const i=new Uint8Array(e),s=i.byteLength;for(let e=0;e<s;e++)t+=String.fromCharCode(i[e]);e=t}else if("string"!=typeof e)return;if(this.protocol!==s.KVM&&this.protocol!==s.IDER||1!==this.connectState)for(this.amtAccumulator+=e;this.amtAccumulator.length>=1;){let e=0;switch(this.amtAccumulator.charCodeAt(0)){case 17:if(this.logger.verbose(`Start Redirection Session reply received for ${this.protocol}`),this.amtAccumulator.length<4)return;switch(this.amtAccumulator.charCodeAt(1)){case 0:{if(this.logger.verbose("Session status success. Start handshake"),this.amtAccumulator.length<13)return;const t=this.amtAccumulator.charCodeAt(12);if(this.amtAccumulator.length<13+t)return;this.logger.verbose("Query for available authentication"),this.socketSend(String.fromCharCode(19,0,0,0,0,0,0,0,0)),e=13+t;break}default:this.stop()}break;case 20:{if(this.logger.verbose("Available Authentications reply received."),this.amtAccumulator.length<9)return;const t=r.r.ReadIntX(this.amtAccumulator,5);if(this.amtAccumulator.length<9+t)return;const i=this.amtAccumulator.charCodeAt(1),s=this.amtAccumulator.charCodeAt(4),n=[];for(let e=0;e<t;e++)n.push(this.amtAccumulator.charCodeAt(9+e));const o=this.amtAccumulator.substring(9,9+t);if(e=9+t,0===s)(0,a.f)(n.includes(4))?(this.logger.verbose("Good Digest Auth (With cnonce and all)"),this.socketSend(String.fromCharCode(19,0,0,0,4)+r.r.IntToStrX(this.user.length+this.authUri.length+8)+String.fromCharCode(this.user.length)+this.user+String.fromCharCode(0,0)+String.fromCharCode(this.authUri.length)+this.authUri+String.fromCharCode(0,0,0,0))):(0,a.f)(n.includes(3))?(this.logger.warn("Bad Digest Auth"),this.socketSend(String.fromCharCode(19,0,0,0,3)+r.r.IntToStrX(this.user.length+this.authUri.length+7)+String.fromCharCode(this.user.length)+this.user+String.fromCharCode(0,0)+String.fromCharCode(this.authUri.length)+this.authUri+String.fromCharCode(0,0,0))):(0,a.f)(n.includes(1))?(this.logger.verbose("Basic Auth"),this.socketSend(String.fromCharCode(19,0,0,0,1)+r.r.IntToStrX(this.user.length+this.pass.length+2)+String.fromCharCode(this.user.length)+this.user+String.fromCharCode(this.pass.length)+this.pass)):(this.logger.error("Auth Type not recognized. Stopping."),this.stop());else if(3!==s&&4!==s||1!==i)if(0===i){if(1===this.protocol){const e=1e4,t=100,i=0,s=1e4,n=100,o=0;this.socketSend(String.fromCharCode(32,0,0,0)+r.r.IntToStrX(this.amtSequence++)+r.r.ShortToStrX(e)+r.r.ShortToStrX(t)+r.r.ShortToStrX(i)+r.r.ShortToStrX(s)+r.r.ShortToStrX(n)+r.r.ShortToStrX(o)+r.r.IntToStrX(0))}2===this.protocol&&this.socketSend(String.fromCharCode(64,0,0,0,0,0,0,0)),3===this.protocol&&(this.connectState=1,this.onStateChange(3))}else this.stop();else{let e=0;const t=o.charCodeAt(e),i=o.substring(e+1,e+1+t);e+=t+1;const n=o.charCodeAt(e),a=o.substring(e+1,e+1+n);e+=n+1;let h=0,l=null;const c=this.generateRandomNonce(32),d="00000002";let u="";4===s&&(h=o.charCodeAt(e),l=o.substring(e+1,e+1+h),e+=h+1,u=`${d}:${c}:${String(l)} :`);const _=this.hex_md5(this.hex_md5(this.user+":"+i+":"+this.pass)+":"+a+":"+u+this.hex_md5("POST:"+this.authUri));let f=this.user.length+i.length+a.length+this.authUri.length+c.length+d.length+_.length+7;4===s&&(f+=parseInt(l.length)+1);let p=String.fromCharCode(19,0,0,0,s)+r.r.IntToStrX(f)+String.fromCharCode(this.user.length)+this.user+String.fromCharCode(i.length)+i+String.fromCharCode(a.length)+a+String.fromCharCode(this.authUri.length)+this.authUri+String.fromCharCode(c.length)+c+String.fromCharCode(d.length)+d+String.fromCharCode(_.length)+_;4===s&&(p=String(p)+(String.fromCharCode(l.length)+String(l))),this.socketSend(p)}break}case 33:if(this.amtAccumulator.length<23)break;this.logger.verbose("Response to settings"),e=23,this.socketSend(String.fromCharCode(39,0,0,0)+r.r.IntToStrX(this.amtSequence++)+String.fromCharCode(0,0,27,0,0,0)),1===this.protocol&&(this.amtKeepAliveTimer=setInterval(this.sendAmtKeepAlive.bind(this),2e3)),this.connectState=1,this.onStateChange(3);break;case 41:if(this.amtAccumulator.length<10)break;this.logger.verbose("Serial Settings"),e=10;break;case 42:{if(this.amtAccumulator.length<10)break;this.logger.verbose("Incoming display data");const t=10+((255&this.amtAccumulator.charCodeAt(9))<<8)+(255&this.amtAccumulator.charCodeAt(8));if(this.amtAccumulator.length<t)break;this.onProcessData(this.amtAccumulator.substring(10,t)),e=t;break}case 43:if(this.amtAccumulator.length<8)break;this.logger.verbose("Keep Alve message"),e=8;break;case 65:if(this.amtAccumulator.length<8)break;this.logger.verbose("KVM traffic. Call onStart handler. And forward rest of acc directly."),this.connectState=1,this.onStart(),this.amtAccumulator.length>8&&this.onProcessData(this.amtAccumulator.substring(8)),e=this.amtAccumulator.length;break;default:return this.logger.error(`Unknown Intel AMT command: ${this.amtAccumulator.charCodeAt(0)} acclen=${this.amtAccumulator.length}`),void this.stop()}if(0===e)return;this.amtAccumulator=this.amtAccumulator.substring(e)}else this.onProcessData(e)}}hex_md5(e){return this.logger.verbose("MD5 the string"),o()(e)}socketSend(e){(0,a.f)(this.urlvars)&&(0,a.f)(this.urlvars.redirtrace)&&this.logger.verbose(`REDIR-SEND(${e.length}): ${r.r.rstr2hex(e)}`);try{if(null!=this.socket&&1===this.socket.readyState){const t=new Uint8Array(e.length);this.logger.verbose(`Redir Send( ${e.length}): ${r.r.rstr2hex(e)}`);for(let i=0;i<e.length;++i)t[i]=e.charCodeAt(i);this.socket.send(t.buffer)}}catch(e){this.logger.error(`Socket send error: ${String(e)}`)}}send(e){this.logger.verbose("Send called "+e),null!=this.socket&&1===this.connectState&&(this.protocol===s.SOL?this.socketSend(String.fromCharCode(40,0,0,0)+r.r.IntToStrX(this.amtSequence++)+r.r.ShortToStrX(e.length)+e):this.socketSend(e))}sendAmtKeepAlive(){null!=this.socket&&this.socketSend(String.fromCharCode(43,0,0,0)+r.r.IntToStrX(this.amtSequence++))}generateRandomNonce(e){let t="";for(let i=0;i<e;i++)t+=this.randomNonceChars.charAt(Math.floor(Math.random()*this.randomNonceChars.length));return t}onSocketClosed(e){(0,a.f)(this.urlvars)&&(0,a.f)(this.urlvars.redirtrace)&&console.log("REDIR-CLOSED"),this.logger.warn("Redir Socket Closed"),this.stop()}onStateChange(e){console.info("onstatechange",e),this.state!==e&&(this.state=e,this.onNewState(this.state),null!=this.onStateChanged&&this.onStateChanged(this,this.state))}stop(){this.logger.warn("Stop called on Redirector. Change state to 0 and close Socket."),this.onStateChange(0),this.connectState=-1,this.amtAccumulator="",null!=this.socket&&(this.socket.close(),this.socket=null),null!=this.amtKeepAliveTimer&&(clearInterval(this.amtKeepAliveTimer),this.amtKeepAliveTimer=null)}}},277:(e,t,i)=>{"use strict";i.d(t,{r:()=>s});class s{constructor(){this.terminalEmulation=1,this.fxEmulation=0,this.fxLineBreak=0,this.AsciiToUnicode=[199,252,233,226,228,224,229,231,234,235,232,239,238,236,196,197,201,230,198,244,246,242,251,249,255,214,220,162,163,165,8359,402,225,237,243,250,241,209,170,218,191,8976,172,189,188,161,171,187,9619,9618,9617,9474,9508,9569,9570,9558,9557,9571,9553,9559,9565,9564,9563,9488,9492,9524,9516,9500,9472,9532,9566,9567,9562,9556,9577,9574,9568,9552,9580,9575,9576,9572,9573,9576,9560,9554,9555,9579,9578,9496,9484,9608,9604,9611,9616,9600,945,223,915,960,931,963,181,964,966,952,8486,948,8734,248,949,8719,8801,177,8805,8806,8992,8993,247,8776,176,8226,183,8730,8319,178,8718,160],this.AsciiToUnicodeIntel=[199,252,233,226,228,224,229,231,234,235,232,239,238,236,196,197,201,230,198,244,246,242,251,249,255,214,220,162,163,165,8359,402,225,237,243,250,241,209,170,218,191,8976,172,189,188,161,174,187,9619,9618,9617,9474,9508,9569,9570,9558,9557,9571,9553,9559,9565,9564,9563,9488,9492,9524,9516,9500,9472,9532,9566,9567,9562,9556,9577,9574,9568,9552,9580,9575,9576,9572,9573,9576,9560,9554,9555,9579,9578,9496,9484,9608,9604,9611,9616,9600,945,223,915,960,931,963,181,964,966,952,8486,948,8734,248,949,8719,8801,177,8805,8806,8992,8993,247,8776,176,8226,183,8730,8319,178,8718,160],this.StateChange=e=>{},this.TermSendKeys=e=>{this.onSend(e)}}}},237:(e,t,i)=>{"use strict";i.d(t,{k:()=>r});var s=i(201);class r{constructor(e){this.minLevel=e}log(e,t){switch(e){case s.i.VERBOSE:this.verbose(t);break;case s.i.INFO:this.info(t);break;case s.i.DEBUG:this.debug(t);break;case s.i.WARNING:this.warn(t);break;case s.i.ERROR:this.error(t)}}debug(e){this.minLevel>=s.i.DEBUG&&console.debug(e)}info(e){this.minLevel>=s.i.INFO&&console.info(e)}error(e){this.minLevel>=s.i.ERROR&&console.error(e)}warn(e){this.minLevel>=s.i.WARNING&&console.warn(e)}verbose(e){this.minLevel>=s.i.VERBOSE&&console.log(e)}}},565:(e,t,i)=>{"use strict";i.d(t,{r:()=>r});var s=i(611);const r={ReadShort:(e,t)=>(e.charCodeAt(t)<<8)+e.charCodeAt(t+1),ReadShortX:(e,t)=>(e.charCodeAt(t+1)<<8)+e.charCodeAt(t),ReadInt:(e,t)=>16777216*e.charCodeAt(t)+(e.charCodeAt(t+1)<<16)+(e.charCodeAt(t+2)<<8)+e.charCodeAt(t+3),ReadSInt:(e,t)=>(e.charCodeAt(t)<<24)+(e.charCodeAt(t+1)<<16)+(e.charCodeAt(t+2)<<8)+e.charCodeAt(t+3),ReadIntX:(e,t)=>16777216*e.charCodeAt(t+3)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+1)<<8)+e.charCodeAt(t),ShortToStr:e=>String.fromCharCode(e>>8&255,255&e),ShortToStrX:e=>String.fromCharCode(255&e,e>>8&255),IntToStr:e=>String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e),IntToStrX:e=>String.fromCharCode(255&e,e>>8&255,e>>16&255,e>>24&255),SplitArray:e=>e.split(","),Clone:e=>JSON.parse(JSON.stringify(e)),EscapeHtml:e=>"string"==typeof e?e.replace(/&/g,"&").replace(/>/g,">").replace(/</g,"<").replace(/"/g,""").replace(/'/g,"'"):"boolean"==typeof e||"number"==typeof e?e:void 0,ArrayElementMove(e,t,i){e.splice(i,0,e.splice(t,1)[0])},ObjectToStringEx(e,t){let i="";if(0!==e&&(!(0,s.f)(e)||null==e))return"(Null)";if(e instanceof Array)for(const s in e)i=i+"<br />"+String(this.gap(t))+"Item #"+String(s)+": "+String(this.ObjectToStringEx(e[s],t+1));else if(e instanceof Object)for(const s in e)i=i+"<br />"+String(this.gap(t))+String(s)+" = "+String(this.ObjectToStringEx(e[s],t+1));else i+=String(this.EscapeHtml(e));return i},ObjectToStringEx2(e,t){let i="";if(0!==e&&(!(0,s.f)(e)||null==e))return"(Null)";if(e instanceof Array)for(const s in e)i=i+"\r\n"+String(this.gap2(t))+"Item #"+String(s)+": "+String(this.ObjectToStringEx2(e[s],t+1));else if(e instanceof Object)for(const s in e)i=i+"\r\n"+String(this.gap2(t))+String(s)+" = "+String(this.ObjectToStringEx2(e[s],t+1));else i+=String(this.EscapeHtml(e));return i},gap(e){let t="";for(let i=0;i<4*e;i++)t+=" ";return t},gap2(e){let t="";for(let i=0;i<4*e;i++)t+=" ";return t},ObjectToString(e){return this.ObjectToStringEx(e,0)},ObjectToString2(e){return this.ObjectToStringEx2(e,0)},char2hex:e=>(e+256).toString(16).substr(-2).toUpperCase(),rstr2hex(e){let t,i="";for(t=0;t<e.length;t++)i+=String(this.char2hex(e.charCodeAt(t)));return i},encode_utf8:e=>unescape(encodeURIComponent(e)),decode_utf8:e=>decodeURIComponent(escape(e)),data2blob(e){const t=new Array(e.length);for(let i=0;i<e.length;i++)t[i]=e.charCodeAt(i);return new Blob([new Uint8Array(t)])},random:e=>Math.floor(Math.random()*e),trademarks:e=>e.replace(/\(R\)/g,"®").replace(/\(TM\)/g,"™")}},46:(e,t,i)=>{"use strict";i.d(t,{H:()=>s});class s{processData(e){}onStateChange(e){}start(){}onSendKvmData(e){}}},784:(e,t,i)=>{"use strict";i.d(t,{$:()=>n});var s=i(989),r=i(611);class n{constructor(e,t,i){this.acc="",this.stateProcessorFac=new s.v(t,i,this.updateRFBState.bind(this)),this.parent=i,this.logger=e}processData(e){if(!(0,r.f)(e))return;this.acc+=e;let t=0;for(this.logger.verbose(`Process Data ACC length: ${this.acc.length}`);this.acc.length>0;){const e=this.stateProcessorFac.getProcessor(this.parent.state),i=this.parent.state;if(t=e.processState(this.acc),this.logger.verbose(`State ${i} Processed. cmdSize returned ${t}`),0===t)return;this.acc=this.acc.substring(t),this.logger.verbose(`remaining acc ${this.acc.length} command size: ${t} new parent state: ${this.parent.state}`)}}updateRFBState(e){this.parent.state=e}}},679:(e,t,i)=>{"use strict";i.d(t,{X:()=>r});var s=i(644);class r{constructor(e){this.parent=e}Decode(e,t,i,r,n,o,a,h){const l=e.charCodeAt(t++);let c,d,u;const _={};let f,p=0,v=0;if(0===l){for(this.parent.logger.verbose("Raw encoding"),f=0;f<a;f++)s.j.setPixel(this.parent,e.charCodeAt(t++)+(2===this.parent.bpp?e.charCodeAt(t++)<<8:0),f);s.j.putImage(this.parent,i,r)}else if(1===l){d=e.charCodeAt(t++)+(2===this.parent.bpp?e.charCodeAt(t++)<<8:0),this.parent.canvasCtx.fillStyle="rgb("+(1===this.parent.bpp?`${224&d}, ${(28&d)<<3}, ${s.j.fixColor((3&d)<<6)}`:`${d>>8&248}, ${d>>3&252},${(31&d)<<3}`)+")",this.parent.logger.verbose("fillstyle: "+this.parent.canvasCtx.fillStyle);const a=s.j.rotX(this.parent,i,r);r=s.j.rotY(this.parent,i,r),i=a,this.parent.canvasCtx.fillRect(i,r,n,o)}else if(l>1&&l<17){this.parent.logger.verbose("Read the packed palette");let n=4,o=15;for(f=0;f<l;f++)_[f]=e.charCodeAt(t++)+(2===this.parent.bpp?e.charCodeAt(t++)<<8:0);for(2===l?(n=1,o=1):l<=4&&(n=2,o=3);p<a&&t<e.length;)for(d=e.charCodeAt(t++),f=8-n;f>=0;f-=n)s.j.setPixel(this.parent,_[d>>f&o],p++);s.j.putImage(this.parent,i,r)}else if(128===l){for(this.parent.logger.verbose("RLE encoded tile");p<a&&t<e.length;){d=e.charCodeAt(t++)+(2===this.parent.bpp?e.charCodeAt(t++)<<8:0),v=1;do{v+=u=e.charCodeAt(t++)}while(255===u);for(;--v>=0;)s.j.setPixel(this.parent,d,p++)}s.j.putImage(this.parent,i,r)}else if(l>129){for(this.parent.logger.verbose("Read the RLE palette"),f=0;f<l-128;f++)_[f]=e.charCodeAt(t++)+(2===this.parent.bpp?e.charCodeAt(t++)<<8:0);for(this.parent.logger.verbose("Decode RLE on palette");p<a&&t<e.length;){if(v=1,c=e.charCodeAt(t++),d=_[c%128],c>127)do{v+=u=e.charCodeAt(t++)}while(255===u);for(;--v>=0;)s.j.setPixel(this.parent,d,p++)}s.j.putImage(this.parent,i,r)}}}},646:(e,t,i)=>{"use strict";i.d(t,{$:()=>s.$,X:()=>r.X});var s=i(784),r=i(679)},663:(e,t,i)=>{"use strict";var s;i.d(t,{i:()=>s}),function(e){e[e.VERBOSE=5]="VERBOSE",e[e.INFO=4]="INFO",e[e.DEBUG=3]="DEBUG",e[e.WARNING=2]="WARNING",e[e.ERROR=1]="ERROR"}(s||(s={}))},201:(e,t,i)=>{"use strict";i.d(t,{i:()=>s.i});var s=i(663)},725:(e,t,i)=>{"use strict";i.d(t,{e:()=>n});var s=i(565),r=i(8);class n{constructor(e,t,i,s){this.wsSocket=e,this.parent=t,this.rleDecoder=i,this.updateRFBState=s}processState(e){let t=0;if(e.length>=12){const i=s.r.ReadShort(e,0),n=s.r.ReadShort(e,2),o=s.r.ReadShort(e,4),a=s.r.ReadShort(e,6),h=o*a,l=s.r.ReadInt(e,8);if(l<17){if(o<1||o>64||a<1||a>64)throw this.parent.logger.error(`Invalid tile size (${o},${a}), disconnecting.`),new Error("Invalid tile size");if(this.parent.sparew!==o||this.parent.spareh!==a){this.parent.sparew=this.parent.sparew2=o,this.parent.spareh=this.parent.spareh2=a,1!==this.parent.rotation&&3!==this.parent.rotation||(this.parent.sparew2=a,this.parent.spareh2=o);const e=`${this.parent.sparew2}x${this.parent.spareh2}`;this.parent.spare=this.parent.sparecache[e],(0,r.fQ)(this.parent.spare)||(this.parent.sparecache[e]=this.parent.spare=this.parent.canvasCtx.createImageData(this.parent.sparew2,this.parent.spareh2))}}if(4294967073===l)this.parent.logger.verbose("Desktop size"),this.parent.canvasCtx.canvas.width=this.parent.ScreenWidth=this.parent.rwidth=this.parent.width=o,this.parent.canvasCtx.canvas.height=this.parent.ScreenHeight=this.parent.rheight=this.parent.height=a,this.wsSocket.send(String.fromCharCode(3,0,0,0,0,0)+s.r.ShortToStr(this.parent.width)+s.r.ShortToStr(this.parent.height)),t=12,null!=this.parent.onScreenSizeChange&&this.parent.onScreenSizeChange(this.parent.ScreenWidth,this.parent.ScreenHeight);else if(0===l){let s=12;const o=12+h*this.parent.bpp;if(e.length<o)return 0;t=o;for(let t=0;t<h;t++)r.jw.setPixel(this.parent,e.charCodeAt(s++)+(2===this.parent.bpp?e.charCodeAt(s++)<<8:0),t);r.jw.putImage(this.parent,i,n)}else{if(16!==l)throw this.parent.logger.error(`Unknown Encoding: ${l} , HEX: ${s.r.rstr2hex(e)}`),new Error(`Unknown Encoding: ${l}`);{if(e.length<16)return 0;const r=s.r.ReadInt(e,12);if(e.length<16+r)return 0;const l=16,c=5,d=0;if(r>5&&0===e.charCodeAt(l)&&s.r.ReadShortX(e,l+1)===r-c)this.rleDecoder.Decode(e,l+5,i,n,o,a,h,r);else{const t=e.substring(l,l+r-d),s=this.parent.inflate.inflate(t);if(!(s.length>0))throw this.parent.logger.error("Invalid deflate data."),new Error("invalid deflate data");this.rleDecoder.Decode(s,0,i,n,o,a,h,s.length)}t=16+r}}if(100==--this.parent.state){this.parent.logger.debug("Frame completed. Update state and request new frame"),this.updateRFBState(4);const e=()=>{r.Xn.sendRefresh(this.parent,this.wsSocket)};0===this.parent.frameRateDelay?r.Xn.sendRefresh(this.parent,this.wsSocket):setTimeout(e,this.parent.frameRateDelay)}}return t}}},70:(e,t,i)=>{"use strict";i.d(t,{U:()=>r});var s=i(565);class r{constructor(e,t,i){this.wsSocket=e,this.serverCutTextHandler=t,this.updateRFBState=i}processState(e){let t=0,i=0;switch(e.charCodeAt(0)){case 0:if(e.length<4)return 0;this.updateRFBState(100+s.r.ReadShort(e,2)),t=4;break;case 2:t=1;break;case 3:if(e.length<8)return 0;if(i=s.r.ReadInt(e,4)+8,e.length<i)return 0;t=this.serverCutTextHandler.handleServerCutText(e)}return t}}},212:(e,t,i)=>{"use strict";i.d(t,{w:()=>s});class s{constructor(e,t){this.wsSocket=e,this.updateRFBState=t}processState(e){let t=0;return e.length>=12?(t=12,this.updateRFBState(1),this.wsSocket.send("RFB 003.008\n"),t):0}}},26:(e,t,i)=>{"use strict";i.d(t,{l:()=>s});class s{constructor(e,t){this.wsSocket=e,this.updateRFBState=t}processState(e){let t=0;return e.length>=1?(t=e.charCodeAt(0)+1,this.wsSocket.send(String.fromCharCode(1)),this.updateRFBState(2),t):0}}},724:(e,t,i)=>{"use strict";i.d(t,{m:()=>r});var s=i(565);class r{constructor(e,t){this.wsSocket=e,this.updateRFBState=t}processState(e){let t=0;if(e.length>=4){if(t=4,0!==s.r.ReadInt(e,0))throw new Error("Error. Stopping. Security response not None.");return this.wsSocket.send(String.fromCharCode(1)),this.updateRFBState(3),t}return 0}}},256:(e,t,i)=>{"use strict";i.d(t,{I:()=>n});var s=i(565),r=i(611);class n{constructor(e,t){this.wsSocket=e,this.parent=t}handleServerCutText(e){if(e.length<8)return 0;const t=s.r.ReadInt(e,4)+8;if(e.length<t)return 0;if(null!=this.parent.onKvmData){const i=e.substring(8,t);i.length>=16&&"\0KvmDataChannel"===i.substring(0,15)&&(this.parent.kvmDataSupported||(this.parent.kvmDataSupported=!0,console.log("KVM Data Channel Supported.")),(-1===this.parent.onKvmDataAck&&16===i.length||0!==i.charCodeAt(15))&&(this.parent.onKvmDataAck=!0),(0,r.f)(this.parent.urlvars)&&(0,r.f)(this.parent.urlvars.kvmdatatrace)&&console.log(`KVM-Recv((${i.length-16})): ${i.substring(16)}`),i.length>16&&this.parent.onKvmData(i.substring(16)),!0===this.parent.onKvmDataAck&&this.parent.onKvmDataPending.length>0&&this.wsSocket.onSendKvmData(this.parent.onKvmDataPending.shift()))}return t}}},946:(e,t,i)=>{"use strict";i.d(t,{C:()=>n});var s=i(565),r=i(173);class n{constructor(e,t,i){this.wsSocket=e,this.parent=t,this.updateRFBState=i}processState(e){let t=0;if(e.length>=24){this.parent.rotation=0;const i=s.r.ReadInt(e,20);if(e.length<24+i)return 0;t=24+i,null!=this.parent.updateScreenDimensions&&this.parent.updateScreenDimensions(s.r.ReadShort(e,0),s.r.ReadShort(e,2)),this.parent.canvasCtx.canvas.width=this.parent.ScreenWidth=this.parent.rwidth=this.parent.width=s.r.ReadShort(e,0),this.parent.canvasCtx.canvas.height=this.parent.ScreenHeight=this.parent.rheight=this.parent.height=s.r.ReadShort(e,2);let n="";return this.parent.useZRLE&&(n+=s.r.IntToStr(16)),n+=s.r.IntToStr(0),n+=s.r.IntToStr(1092),this.parent.logger.verbose("Send supported encodings"),this.wsSocket.send(String.fromCharCode(2,0)+s.r.ShortToStr(n.length/4+1)+n+s.r.IntToStr(-223)),1===this.parent.bpp&&this.wsSocket.send(String.fromCharCode(0,0,0,0,8,8,0,1)+s.r.ShortToStr(7)+s.r.ShortToStr(7)+s.r.ShortToStr(3)+String.fromCharCode(5,2,0,0,0,0)),this.updateRFBState(4),this.parent.onStateChange(3),this.parent.logger.info("Start new frame."),r.X.sendRefresh(this.parent,this.wsSocket),this.parent.oldMouseX=-1,t}return 0}}},389:(e,t,i)=>{"use strict";i.d(t,{Cu:()=>h.C,Ut:()=>n.U,ez:()=>s.e,ll:()=>o.l,mC:()=>a.m,wW:()=>r.w});var s=i(725),r=i(212),n=i(70),o=i(26),a=i(724),h=i(946)},989:(e,t,i)=>{"use strict";i.d(t,{v:()=>o});var s=i(389),r=i(256),n=i(679);class o{constructor(e,t,i){this.stateProcessors={},this.stateProcessors[0]=new s.wW(e,i),this.stateProcessors[1]=new s.ll(e,i),this.stateProcessors[2]=new s.mC(e,i),this.stateProcessors[3]=new s.Cu(e,t,i);const o=new r.I(e,t);this.stateProcessors[4]=new s.Ut(e,o,i),this.stateProcessors["100plus"]=new s.ez(e,t,new n.X(t),i)}getProcessor(e){return e<=100?this.stateProcessors[e]:this.stateProcessors["100plus"]}}},155:(e,t,i)=>{"use strict";i.d(t,{Q:()=>s});class s{constructor(e){this.processData=e=>{null!=this.terminal.capture&&(this.terminal.capture=String(this.terminal.capture)+e);let t="";for(let i=0;i<e.length;i++){const s=e.charCodeAt(i);"J"===e[i]?this.clearTerminal():t+=0!=(128&s)?String.fromCharCode(this.terminal.AsciiToUnicode[127&s]):`${e[i]}`}this.processDataToXterm(t)},this.terminal=e}}},38:(e,t,i)=>{"use strict";i.d(t,{q:()=>n});var s=i(923),r=i(611);const n={convertAMTKeyCode:e=>(0,r.f)(e.code.startsWith("Key"))&&4===e.code.length?e.code.charCodeAt(3)+(!1===e.shiftKey?32:0):(0,r.f)(e.code.startsWith("Digit"))&&6===e.code.length?e.code.charCodeAt(5):(0,r.f)(e.code.startsWith("Numpad"))&&7===e.code.length?e.code.charCodeAt(6):s.Z[e.code]}},923:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s});const s={Pause:19,CapsLock:20,Space:32,Quote:39,Minus:45,NumpadMultiply:42,NumpadAdd:43,PrintScreen:44,Comma:44,NumpadSubtract:45,NumpadDecimal:46,Period:46,Slash:47,NumpadDivide:47,Semicolon:59,Equal:61,OSLeft:91,BracketLeft:91,OSRight:91,Backslash:92,BracketRight:93,ContextMenu:93,Backquote:96,NumLock:144,ScrollLock:145,Backspace:65288,Tab:65289,Enter:65293,NumpadEnter:65293,Escape:65307,Delete:65535,Home:65360,PageUp:65365,PageDown:65366,ArrowLeft:65361,ArrowUp:65362,ArrowRight:65363,ArrowDown:65364,End:65367,Insert:65379,F1:65470,F2:65471,F3:65472,F4:65473,F5:65474,F6:65475,F7:65476,F8:65477,F9:65478,F10:65479,F11:65480,F12:65481,ShiftLeft:65505,ShiftRight:65506,ControlLeft:65507,ControlRight:65508,AltLeft:65513,AltRight:65514,MetaLeft:65511,MetaRight:65512}},173:(e,t,i)=>{"use strict";i.d(t,{X:()=>n});var s=i(565),r=i(611);const n={sendRefresh(e,t){if(!e.holding)if(e.focusMode>0){const i=2*e.focusMode;t.send(String.fromCharCode(3,1)+s.r.ShortToStr(Math.max(Math.min(e.oldMouseX,e.lastMouseX)-e.focusMode,0))+s.r.ShortToStr(Math.max(Math.min(e.oldMouseY,e.lastMouseY)-e.focusMode,0))+s.r.ShortToStr(i+Math.abs(e.oldMouseX-e.lastMouseX))+s.r.ShortToStr(i+Math.abs(e.oldMouseY-e.lastMouseY))),e.oldMouseX=e.lastMouseX,e.oldMouseY=e.lastMouseY}else t.send(String.fromCharCode(3,1,0,0,0,0)+s.r.ShortToStr(e.rwidth)+s.r.ShortToStr(e.rheight))},sendKey(e,t,i){if("object"==typeof t)for(const i in t)this.sendKey(e,t[i][0],t[i][1]);else e.send(String.fromCharCode(4,i,0,0)+s.r.IntToStr(t))},sendKvmData(e,t,i){!0!==e.onKvmDataAck?e.onKvmDataPending.push(i):((0,r.f)(e.urlvars)&&(0,r.f)(e.urlvars.kvmdatatrace)&&console.log(`KVM-Send(${String(i.length)}): ${String(i)}`),i="\0KvmDataChannel\0"+String(i),t.send(`${String.fromCharCode(6,0,0,0)}${s.r.IntToStr(i.length)}${String(i)}`),e.onKvmDataAck=!1)},sendKeepAlive(e,t){e.lastKeepAlive<Date.now()-5e3&&(e.lastKeepAlive=Date.now(),t.send(String.fromCharCode(6,0,0,0)+s.r.IntToStr(16)+"\0KvmDataChannel\0"))},sendCtrlAltDelMsg(e){this.sendCad(e)},sendCad(e){this.sendKey(e,65507,1),this.sendKey(e,65513,1),this.sendKey(e,65535,1),this.sendKey(e,65535,0),this.sendKey(e,65513,0),this.sendKey(e,65507,0)}}},644:(e,t,i)=>{"use strict";i.d(t,{j:()=>s});const s={putImage(e,t,i){if(e.holding)return;const r=s.arotX(e,t,i);i=s.arotY(e,t,i),t=r,e.canvasCtx.putImageData(e.spare,t,i)},setPixel(e,t,i){let r,n,o=4*i;e.rotation>0&&(1===e.rotation?(r=i%e.sparew,n=Math.floor(i/e.sparew),o=4*(i=r*e.sparew2+(e.sparew2-1-n))):2===e.rotation?o=e.sparew*e.spareh*4-4-o:3===e.rotation&&(r=i%e.sparew,n=Math.floor(i/e.sparew),o=4*(i=(e.sparew2-1-r)*e.sparew2+n))),1===e.bpp?(e.spare.data[o++]=224&t,e.spare.data[o++]=(28&t)<<3,e.spare.data[o++]=s.fixColor((3&t)<<6)):(e.spare.data[o++]=t>>8&248,e.spare.data[o++]=t>>3&252,e.spare.data[o++]=(31&t)<<3),e.spare.data[o]=255},arotX:(e,t,i)=>0===e.rotation?t:1===e.rotation?e.canvasCtx.canvas.width-e.sparew2-i:2===e.rotation?e.canvasCtx.canvas.width-e.sparew2-t:3===e.rotation?i:0,arotY:(e,t,i)=>0===e.rotation?i:1===e.rotation?t:2===e.rotation?e.canvasCtx.canvas.height-e.spareh2-i:3===e.rotation?e.canvasCtx.canvas.height-e.spareh-t:0,crotX:(e,t,i)=>0===e.rotation?t:1===e.rotation?i:2===e.rotation?e.canvasCtx.canvas.width-t:3===e.rotation?e.canvasCtx.canvas.height-i:0,crotY:(e,t,i)=>0===e.rotation?i:1===e.rotation?e.canvasCtx.canvas.width-t:2===e.rotation?e.canvasCtx.canvas.height-i:3===e.rotation?t:0,rotX:(e,t,i)=>0===e.rotation||1===e.rotation?t:2===e.rotation?t-e.canvasCtx.canvas.width:3===e.rotation?t-e.canvasCtx.canvas.height:0,rotY:(e,t,i)=>0===e.rotation?i:1===e.rotation?i-e.canvasCtx.canvas.width:2===e.rotation?i-e.canvasCtx.canvas.height:3===e.rotation?i:0,setRotation(e,t){for(;t<0;)t+=4;const i=t%4;if(e.holding)return e.rotation=i,!1;if(i===e.rotation)return!0;let r=e.canvasCtx.canvas.width,n=e.canvasCtx.canvas.height;1!==e.rotation&&3!==e.rotation||(r=e.canvasCtx.canvas.height,n=e.canvasCtx.canvas.width),null==e.tcanvas&&(e.tcanvas=document.createElement("canvas"));const o=e.tcanvas.getContext("2d");return o.setTransform(1,0,0,1,0,0),o.canvas.width=r,o.canvas.height=n,o.rotate(-90*e.rotation*Math.PI/180),0===e.rotation&&o.drawImage(e.canvasCtx.canvas,0,0),1===e.rotation&&o.drawImage(e.canvasCtx.canvas,-e.canvasCtx.canvas.width,0),2===e.rotation&&o.drawImage(e.canvasCtx.canvas,-e.canvasCtx.canvas.width,-e.canvasCtx.canvas.height),3===e.rotation&&o.drawImage(e.canvasCtx.canvas,0,-e.canvasCtx.canvas.height),0!==e.rotation&&2!==e.rotation||(e.canvasCtx.canvas.height=r,e.canvasCtx.canvas.width=n),1!==e.rotation&&3!==e.rotation||(e.canvasCtx.canvas.height=n,e.canvasCtx.canvas.width=r),e.canvasCtx.setTransform(1,0,0,1,0,0),e.canvasCtx.rotate(90*i*Math.PI/180),e.rotation=i,e.canvasCtx.drawImage(e.tcanvas,s.rotX(e,0,0),s.rotY(e,0,0)),e.width=e.canvasCtx.canvas.width,e.height=e.canvasCtx.canvas.height,null!=e.onScreenResize&&e.onScreenResize(e.width,e.height,e.canvasId),!0},fixColor:e=>e>127?e+32:e}},717:(e,t,i)=>{"use strict";i.d(t,{E:()=>a});var s,r=i(38),n=i(173),o=i(611);!function(e){e[e.Up=0]="Up",e[e.Down=1]="Down"}(s||(s={}));class a{constructor(e,t){this.Comms=t,this.parent=e}GrabKeyInput(){this.KeyInputGrab||(document.onkeyup=this.handleKeyUp.bind(this),document.onkeydown=this.handleKeyDown.bind(this),document.onkeypress=this.handleKeys.bind(this),this.KeyInputGrab=!0)}UnGrabKeyInput(){this.KeyInputGrab&&(document.onkeyup=null,document.onkeydown=null,document.onkeypress=null,this.KeyInputGrab=!1)}handleKeys(e){return this.haltEvent(e)}haltEvent(e){return(0,o.f)(e.preventDefault)&&e.preventDefault(),(0,o.f)(e.stopPropagation)&&e.stopPropagation(),!1}handleKeyUp(e){return this.handleKeyEvent(s.Up,e)}handleKeyDown(e){return this.handleKeyEvent(s.Down,e)}handleKeyEvent(e,t){let i=t;if((0,o.f)(i)||(i=window.event),(0,o.f)(i.code)){const t=r.q.convertAMTKeyCode(i);this.parent.logger.verbose(`Key ${e} : ${String(t)}`),null!=t&&n.X.sendKey(this.Comms,t,e)}else{let t=i.keyCode;173===t&&(t=189),61===t&&(t=187);let s=t;!1===i.shiftKey&&t>=65&&t<=90&&(s=t+32),t>=112&&t<=124&&(s=t+65358),8===t&&(s=65288),9===t&&(s=65289),13===t&&(s=65293),16===t&&(s=65505),17===t&&(s=65507),18===t&&(s=65513),27===t&&(s=65307),33===t&&(s=65365),34===t&&(s=65366),35===t&&(s=65367),36===t&&(s=65360),37===t&&(s=65361),38===t&&(s=65362),39===t&&(s=65363),40===t&&(s=65364),45===t&&(s=65379),46===t&&(s=65535),t>=96&&t<=105&&(s=t-48),106===t&&(s=42),107===t&&(s=43),109===t&&(s=45),110===t&&(s=46),111===t&&(s=47),186===t&&(s=59),187===t&&(s=61),188===t&&(s=44),189===t&&(s=45),190===t&&(s=46),191===t&&(s=47),192===t&&(s=96),219===t&&(s=91),220===t&&(s=92),221===t&&(s=93),222===t&&(s=39),this.parent.logger.verbose(`Key ${e}: ${t} = ${s}`),n.X.sendKey(this.Comms,s,e)}return this.haltEvent(i)}}},33:(e,t,i)=>{"use strict";i.d(t,{x:()=>o});var s=i(565),r=i(644),n=i(611);class o{constructor(e,t,i){this.topposition=0,this.leftposition=0,this.parent=e,this.comm=t,this.debounceTime=i,this.mouseClickCompleted=!0,this.lastEvent=null}GrabMouseInput(){this.MouseInputGrab||(this.MouseInputGrab=!0)}UnGrabMouseInput(){if(!this.MouseInputGrab)return;const e=this.parent.canvasCtx.canvas;e.onmousemove=null,e.onmouseup=null,e.onmousedown=null,this.MouseInputGrab=!1}mousedown(e){return this.parent.buttonmask|=1<<e.button,this.mousemove(e)}mouseup(e){return this.parent.buttonmask&=65535-(1<<e.button),this.mousemove(e)}mousemove(e){if(4!==this.parent.state)return!0;const t=this.getPositionOfControl(this.parent.canvasControl),i=this.parent.canvasControl.getBoundingClientRect();(0===this.topposition||i.top>this.topposition)&&(this.topposition=i.top),(0===this.leftposition||i.left>this.leftposition)&&(this.leftposition=i.left);const o=this.topposition-i.top,a=this.leftposition-i.left;if(this.parent.lastMouseX=(e.pageX-t[0]+a)*(this.parent.canvasControl.height/this.parent.canvasControl.offsetHeight),this.parent.lastMouseY=(e.pageY-t[1]+o)*(this.parent.canvasControl.width/this.parent.canvasControl.offsetWidth),(0,n.f)(this.parent.noMouseRotate)||(this.parent.lastMouseX2=r.j.crotX(this.parent,this.parent.lastMouseX,this.parent.lastMouseY),this.parent.lastMouseY=r.j.crotY(this.parent,this.parent.lastMouseX,this.parent.lastMouseY),this.parent.lastMouseX=this.parent.lastMouseX2),this.comm.send(String.fromCharCode(5,this.parent.buttonmask)+s.r.ShortToStr(this.parent.lastMouseX)+s.r.ShortToStr(this.parent.lastMouseY)),this.parent.setDeskFocus("DeskFocus",this.parent.focusMode),0!==this.parent.focusMode){const e=Math.min(this.parent.lastMouseX,this.parent.canvasControl.width-this.parent.focusMode),i=Math.min(this.parent.lastMouseY,this.parent.canvasControl.height-this.parent.focusMode),s=2*this.parent.focusMode,r=this.parent.canvasControl,n=r.offsetHeight/this.parent.canvasControl.height,o=r.offsetWidth/this.parent.canvasControl.width,a=this.parent.getDeskFocus("DeskFocus"),h=this.getPositionOfControl(this.parent.canvasControl.parentElement);a.left=`${Math.max((e-this.parent.focusMode)*n,0)+(t[0]-h[0])}px`,a.top=`${Math.max((i-this.parent.focusMode)*o,0)+(t[1]-h[1])}px`,a.width=s*n-6+"px",a.height=s*n-6+"px"}return this.haltEvent(e)}haltEvent(e){return(0,n.f)(e.preventDefault)&&e.preventDefault(),(0,n.f)(e.stopPropagation)&&e.stopPropagation(),!1}getPositionOfControl(e){const t=[0,0];let i=e;for(;null!=i;)t[0]=Number(t[0])+Number(i.offsetLeft),t[1]=Number(t[1])+Number(i.offsetTop),i=i.offsetParent;return t}}},611:(e,t,i)=>{"use strict";i.d(t,{f:()=>s});const s=e=>null!=e&&""!==e&&!1!==e&&0!==e},8:(e,t,i)=>{"use strict";i.d(t,{EB:()=>o.E,Xn:()=>r.X,fQ:()=>h.f,jw:()=>n.j,qD:()=>s.q,xx:()=>a.x});var s=i(38),r=i(173),n=i(644),o=i(717),a=i(33),h=i(611)},305:module=>{var ZLIB=ZLIB||{},BASE,NMAX;void 0===ZLIB.common_initialized&&(ZLIB.Z_NO_FLUSH=0,ZLIB.Z_PARTIAL_FLUSH=1,ZLIB.Z_SYNC_FLUSH=2,ZLIB.Z_FULL_FLUSH=3,ZLIB.Z_FINISH=4,ZLIB.Z_BLOCK=5,ZLIB.Z_TREES=6,ZLIB.Z_OK=0,ZLIB.Z_STREAM_END=1,ZLIB.Z_NEED_DICT=2,ZLIB.Z_ERRNO=-1,ZLIB.Z_STREAM_ERROR=-2,ZLIB.Z_DATA_ERROR=-3,ZLIB.Z_MEM_ERROR=-4,ZLIB.Z_BUF_ERROR=-5,ZLIB.Z_VERSION_ERROR=-6,ZLIB.Z_DEFLATED=8,ZLIB.z_stream=function(){this.next_in=0,this.avail_in=0,this.total_in=0,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg=null,this.state=null,this.data_type=0,this.adler=0,this.input_data="",this.output_data="",this.error=0,this.checksum_function=null},ZLIB.gz_header=function(){this.text=0,this.time=0,this.xflags=0,this.os=255,this.extra=null,this.extra_len=0,this.extra_max=0,this.name=null,this.name_max=0,this.comment=null,this.comm_max=0,this.hcrc=0,this.done=0},ZLIB.common_initialized=!0),void 0===ZLIB&&alert("ZLIB is not defined. SRC zlib.js before zlib-inflate.js"),function(){var DEF_WBITS=15,HEAD=0,FLAGS=1,TIME=2,OS=3,EXLEN=4,EXTRA=5,NAME=6,COMMENT=7,HCRC=8,DICTID=9,DICT=10,TYPE=11,TYPEDO=12,STORED=13,COPY_=14,COPY=15,TABLE=16,LENLENS=17,CODELENS=18,LEN_=19,LEN=20,LENEXT=21,DIST=22,DISTEXT=23,MATCH=24,LIT=25,CHECK=26,LENGTH=27,DONE=28,BAD=29,MEM=30,SYNC=31,ENOUGH_LENS=852,ENOUGH_DISTS=592,ENOUGH=ENOUGH_LENS+ENOUGH_DISTS,CODES=0,LENS=1,DISTS=2,inflate_table_lbase=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],inflate_table_lext=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,203,69],inflate_table_dbase=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],inflate_table_dext=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];function inflate_table(e,t){var i,s,r,n,o,a,h,l,c,d,u,_,f,p,v,g,m,S,b,C,y,w,E=e.next,k=t==DISTS?e.distbits:e.lenbits,x=e.work,A=e.lens,R=t==DISTS?e.nlen:0,D=e.codes;i=t==LENS?e.nlen:t==DISTS?e.ndist:19;var L=new Array(16),B=new Array(16);for(s=0;s<=15;s++)L[s]=0;for(r=0;r<i;r++)L[A[R+r]]++;for(a=k,o=15;o>=1&&0==L[o];o--);if(a>o&&(a=o),0==o)return g={op:64,bits:1,val:0},D[E++]=g,D[E++]=g,t==DISTS?e.distbits=1:e.lenbits=1,e.next=E,0;for(n=1;n<o&&0==L[n];n++);for(a<n&&(a=n),c=1,s=1;s<=15;s++)if(c<<=1,(c-=L[s])<0)return-1;if(c>0&&(t==CODES||1!=o))return e.next=E,-1;for(B[1]=0,s=1;s<15;s++)B[s+1]=B[s]+L[s];for(r=0;r<i;r++)0!=A[R+r]&&(x[B[A[R+r]]++]=r);switch(t){case CODES:S=C=x,b=0,y=0,w=19;break;case LENS:S=inflate_table_lbase,b=-257,C=inflate_table_lext,y=-257,w=256;break;default:S=inflate_table_dbase,C=inflate_table_dext,b=0,y=0,w=-1}if(u=0,r=0,s=n,m=E,h=a,l=0,p=-1,v=(d=1<<a)-1,t==LENS&&d>=ENOUGH_LENS||t==DISTS&&d>=ENOUGH_DISTS)return e.next=E,1;for(;;){g={op:0,bits:s-l,val:0},x[r]<w?g.val=x[r]:x[r]>w?(g.op=C[y+x[r]],g.val=S[b+x[r]]):g.op=96,_=1<<s-l,n=f=1<<h;do{D[m+(u>>>l)+(f-=_)]=g}while(0!=f);for(_=1<<s-1;u&_;)_>>>=1;if(0!=_?(u&=_-1,u+=_):u=0,r++,0==--L[s]){if(s==o)break;s=A[R+x[r]]}if(s>a&&(u&v)!=p){for(0==l&&(l=a),m+=n,c=1<<(h=s-l);h+l<o&&!((c-=L[h+l])<=0);)h++,c<<=1;if(d+=1<<h,t==LENS&&d>=ENOUGH_LENS||t==DISTS&&d>=ENOUGH_DISTS)return e.next=E,1;D[E+(p=u&v)]={op:h,bits:a,val:m-E}}}return 0!=u&&(D[m+u]={op:64,bits:s-l,val:0}),e.next=E+d,t==DISTS?e.distbits=a:e.lenbits=a,0}function inflate_fast(e,t){var i,s,r,n,o,a,h,l,c,d,u,_,f,p,v,g,m,S,b,C,y,w,E=-1,k=-1;i=e.state,s=e.input_data,n=(r=e.next_in)+e.avail_in-5,a=(o=e.next_out)-(t-e.avail_out),h=o+(e.avail_out-257),l=i.wsize,c=i.whave,d=i.wnext,u=i.window,_=i.hold,f=i.bits,p=i.codes,v=i.lencode,g=i.distcode,m=(1<<i.lenbits)-1,S=(1<<i.distbits)-1;e:do{f<15&&(_+=(255&s.charCodeAt(r++))<<f,f+=8,_+=(255&s.charCodeAt(r++))<<f,f+=8),b=p[v+(_&m)];t:for(;;){if(_>>>=C=b.bits,f-=C,0==(C=b.op))e.output_data+=String.fromCharCode(b.val),o++;else{if(!(16&C)){if(0==(64&C)){b=p[v+(b.val+(_&(1<<C)-1))];continue t}if(32&C){i.mode=TYPE;break e}e.msg="invalid literal/length code",i.mode=BAD;break e}y=b.val,(C&=15)&&(f<C&&(_+=(255&s.charCodeAt(r++))<<f,f+=8),y+=_&(1<<C)-1,_>>>=C,f-=C),f<15&&(_+=(255&s.charCodeAt(r++))<<f,f+=8,_+=(255&s.charCodeAt(r++))<<f,f+=8),b=p[g+(_&S)];i:for(;;){if(_>>>=C=b.bits,f-=C,!(16&(C=b.op))){if(0==(64&C)){b=p[g+(b.val+(_&(1<<C)-1))];continue i}e.msg="invalid distance code",i.mode=BAD;break e}if(w=b.val,f<(C&=15)&&(_+=(255&s.charCodeAt(r++))<<f,(f+=8)<C&&(_+=(255&s.charCodeAt(r++))<<f,f+=8)),w+=_&(1<<C)-1,_>>>=C,f-=C,w>(C=o-a)){if((C=w-C)>c&&i.sane){e.msg="invalid distance too far back",i.mode=BAD;break e}E=0,k=-1,0==d?(E+=l-C,C<y&&(y-=C,e.output_data+=u.substring(E,E+C),o+=C,C=0,E=-1,k=o-w)):(E+=d-C,C<y&&(y-=C,e.output_data+=u.substring(E,E+C),E=-1,k=(o+=C)-w))}else E=-1,k=o-w;if(E>=0)e.output_data+=u.substring(E,E+y),o+=y,E+=y;else{var x=y;for(x>o-k&&(x=o-k),e.output_data+=e.output_data.substring(k,k+x),o+=x,k+=x,o+=y-=x;y>2;)e.output_data+=e.output_data.charAt(k++),e.output_data+=e.output_data.charAt(k++),e.output_data+=e.output_data.charAt(k++),y-=3;y&&(e.output_data+=e.output_data.charAt(k++),y>1&&(e.output_data+=e.output_data.charAt(k++)))}break i}}break t}}while(r<n&&o<h);r-=y=f>>>3,_&=(1<<(f-=y<<3))-1,e.next_in=r,e.next_out=o,e.avail_in=r<n?n-r+5:5-(r-n),e.avail_out=o<h?h-o+257:257-(o-h),i.hold=_,i.bits=f}function new_array(e){var t,i=new Array(e);for(t=0;t<e;t++)i[t]=0;return i}function getarg(e,t,i){return e&&t in e?e[t]:i}function checksum_none(){return 0}function inflate_state(){var e;this.mode=0,this.last=0,this.wrap=0,this.havedict=0,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=0,this.distcode=0,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=0,this.lens=new_array(320),this.work=new_array(288),this.codes=new Array(ENOUGH);var t={op:0,bits:0,val:0};for(e=0;e<ENOUGH;e++)this.codes[e]=t;this.sane=0,this.back=0,this.was=0}ZLIB.inflate_copyright=" inflate 1.2.6 Copyright 1995-2012 Mark Adler ",ZLIB.inflateResetKeep=function(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg=null,t.wrap&&(e.adler=1&t.wrap),t.mode=HEAD,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=0,t.distcode=0,t.next=0,t.sane=1,t.back=-1,ZLIB.Z_OK):ZLIB.Z_STREAM_ERROR},ZLIB.inflateReset=function(e,t){var i,s;return e&&e.state?(s=e.state,void 0===t&&(t=DEF_WBITS),t<0?(i=0,t=-t):(i=1+(t>>>4),t<48&&(t&=15)),1==i&&"function"==typeof ZLIB.adler32?e.checksum_function=ZLIB.adler32:2==i&&"function"==typeof ZLIB.crc32?e.checksum_function=ZLIB.crc32:e.checksum_function=checksum_none,t&&(t<8||t>15)?ZLIB.Z_STREAM_ERROR:(s.window&&s.wbits!=t&&(s.window=null),s.wrap=i,s.wbits=t,s.wsize=0,s.whave=0,s.wnext=0,ZLIB.inflateResetKeep(e))):ZLIB.Z_STREAM_ERROR},ZLIB.inflateInit=function(e){var t=new ZLIB.z_stream;return t.state=new inflate_state,ZLIB.inflateReset(t,e),t},ZLIB.inflatePrime=function(e,t,i){var s;return e&&e.state?(s=e.state,t<0?(s.hold=0,s.bits=0,ZLIB.Z_OK):t>16||s.bits+t>32?ZLIB.Z_STREAM_ERROR:(i&=(1<<t)-1,s.hold+=i<<s.bits,s.bits+=t,ZLIB.Z_OK)):ZLIB.Z_STREAM_ERROR};var lenfix_ary=null,lenfix_def="([ {op:96,bits:7,val:0},{op:0,bits:8,val:80},{op:0,bits:8,val:16},{op:20,bits:8,val:115},{op:18,bits:7,val:31},{op:0,bits:8,val:112},{op:0,bits:8,val:48}, {op:0,bits:9,val:192},{op:16,bits:7,val:10},{op:0,bits:8,val:96},{op:0,bits:8,val:32},{op:0,bits:9,val:160},{op:0,bits:8,val:0},{op:0,bits:8,val:128}, {op:0,bits:8,val:64},{op:0,bits:9,val:224},{op:16,bits:7,val:6},{op:0,bits:8,val:88},{op:0,bits:8,val:24},{op:0,bits:9,val:144},{op:19,bits:7,val:59}, {op:0,bits:8,val:120},{op:0,bits:8,val:56},{op:0,bits:9,val:208},{op:17,bits:7,val:17},{op:0,bits:8,val:104},{op:0,bits:8,val:40},{op:0,bits:9,val:176}, {op:0,bits:8,val:8},{op:0,bits:8,val:136},{op:0,bits:8,val:72},{op:0,bits:9,val:240},{op:16,bits:7,val:4},{op:0,bits:8,val:84},{op:0,bits:8,val:20}, {op:21,bits:8,val:227},{op:19,bits:7,val:43},{op:0,bits:8,val:116},{op:0,bits:8,val:52},{op:0,bits:9,val:200},{op:17,bits:7,val:13},{op:0,bits:8,val:100}, {op:0,bits:8,val:36},{op:0,bits:9,val:168},{op:0,bits:8,val:4},{op:0,bits:8,val:132},{op:0,bits:8,val:68},{op:0,bits:9,val:232},{op:16,bits:7,val:8}, {op:0,bits:8,val:92},{op:0,bits:8,val:28},{op:0,bits:9,val:152},{op:20,bits:7,val:83},{op:0,bits:8,val:124},{op:0,bits:8,val:60},{op:0,bits:9,val:216}, {op:18,bits:7,val:23},{op:0,bits:8,val:108},{op:0,bits:8,val:44},{op:0,bits:9,val:184},{op:0,bits:8,val:12},{op:0,bits:8,val:140},{op:0,bits:8,val:76}, {op:0,bits:9,val:248},{op:16,bits:7,val:3},{op:0,bits:8,val:82},{op:0,bits:8,val:18},{op:21,bits:8,val:163},{op:19,bits:7,val:35},{op:0,bits:8,val:114}, {op:0,bits:8,val:50},{op:0,bits:9,val:196},{op:17,bits:7,val:11},{op:0,bits:8,val:98},{op:0,bits:8,val:34},{op:0,bits:9,val:164},{op:0,bits:8,val:2}, {op:0,bits:8,val:130},{op:0,bits:8,val:66},{op:0,bits:9,val:228},{op:16,bits:7,val:7},{op:0,bits:8,val:90},{op:0,bits:8,val:26},{op:0,bits:9,val:148}, {op:20,bits:7,val:67},{op:0,bits:8,val:122},{op:0,bits:8,val:58},{op:0,bits:9,val:212},{op:18,bits:7,val:19},{op:0,bits:8,val:106},{op:0,bits:8,val:42}, {op:0,bits:9,val:180},{op:0,bits:8,val:10},{op:0,bits:8,val:138},{op:0,bits:8,val:74},{op:0,bits:9,val:244},{op:16,bits:7,val:5},{op:0,bits:8,val:86}, {op:0,bits:8,val:22},{op:64,bits:8,val:0},{op:19,bits:7,val:51},{op:0,bits:8,val:118},{op:0,bits:8,val:54},{op:0,bits:9,val:204},{op:17,bits:7,val:15}, {op:0,bits:8,val:102},{op:0,bits:8,val:38},{op:0,bits:9,val:172},{op:0,bits:8,val:6},{op:0,bits:8,val:134},{op:0,bits:8,val:70},{op:0,bits:9,val:236}, {op:16,bits:7,val:9},{op:0,bits:8,val:94},{op:0,bits:8,val:30},{op:0,bits:9,val:156},{op:20,bits:7,val:99},{op:0,bits:8,val:126},{op:0,bits:8,val:62}, {op:0,bits:9,val:220},{op:18,bits:7,val:27},{op:0,bits:8,val:110},{op:0,bits:8,val:46},{op:0,bits:9,val:188},{op:0,bits:8,val:14},{op:0,bits:8,val:142}, {op:0,bits:8,val:78},{op:0,bits:9,val:252},{op:96,bits:7,val:0},{op:0,bits:8,val:81},{op:0,bits:8,val:17},{op:21,bits:8,val:131},{op:18,bits:7,val:31}, {op:0,bits:8,val:113},{op:0,bits:8,val:49},{op:0,bits:9,val:194},{op:16,bits:7,val:10},{op:0,bits:8,val:97},{op:0,bits:8,val:33},{op:0,bits:9,val:162}, {op:0,bits:8,val:1},{op:0,bits:8,val:129},{op:0,bits:8,val:65},{op:0,bits:9,val:226},{op:16,bits:7,val:6},{op:0,bits:8,val:89},{op:0,bits:8,val:25}, {op:0,bits:9,val:146},{op:19,bits:7,val:59},{op:0,bits:8,val:121},{op:0,bits:8,val:57},{op:0,bits:9,val:210},{op:17,bits:7,val:17},{op:0,bits:8,val:105}, {op:0,bits:8,val:41},{op:0,bits:9,val:178},{op:0,bits:8,val:9},{op:0,bits:8,val:137},{op:0,bits:8,val:73},{op:0,bits:9,val:242},{op:16,bits:7,val:4}, {op:0,bits:8,val:85},{op:0,bits:8,val:21},{op:16,bits:8,val:258},{op:19,bits:7,val:43},{op:0,bits:8,val:117},{op:0,bits:8,val:53},{op:0,bits:9,val:202}, {op:17,bits:7,val:13},{op:0,bits:8,val:101},{op:0,bits:8,val:37},{op:0,bits:9,val:170},{op:0,bits:8,val:5},{op:0,bits:8,val:133},{op:0,bits:8,val:69}, {op:0,bits:9,val:234},{op:16,bits:7,val:8},{op:0,bits:8,val:93},{op:0,bits:8,val:29},{op:0,bits:9,val:154},{op:20,bits:7,val:83},{op:0,bits:8,val:125}, {op:0,bits:8,val:61},{op:0,bits:9,val:218},{op:18,bits:7,val:23},{op:0,bits:8,val:109},{op:0,bits:8,val:45},{op:0,bits:9,val:186},{op:0,bits:8,val:13}, {op:0,bits:8,val:141},{op:0,bits:8,val:77},{op:0,bits:9,val:250},{op:16,bits:7,val:3},{op:0,bits:8,val:83},{op:0,bits:8,val:19},{op:21,bits:8,val:195}, {op:19,bits:7,val:35},{op:0,bits:8,val:115},{op:0,bits:8,val:51},{op:0,bits:9,val:198},{op:17,bits:7,val:11},{op:0,bits:8,val:99},{op:0,bits:8,val:35}, {op:0,bits:9,val:166},{op:0,bits:8,val:3},{op:0,bits:8,val:131},{op:0,bits:8,val:67},{op:0,bits:9,val:230},{op:16,bits:7,val:7},{op:0,bits:8,val:91}, {op:0,bits:8,val:27},{op:0,bits:9,val:150},{op:20,bits:7,val:67},{op:0,bits:8,val:123},{op:0,bits:8,val:59},{op:0,bits:9,val:214},{op:18,bits:7,val:19}, {op:0,bits:8,val:107},{op:0,bits:8,val:43},{op:0,bits:9,val:182},{op:0,bits:8,val:11},{op:0,bits:8,val:139},{op:0,bits:8,val:75},{op:0,bits:9,val:246}, {op:16,bits:7,val:5},{op:0,bits:8,val:87},{op:0,bits:8,val:23},{op:64,bits:8,val:0},{op:19,bits:7,val:51},{op:0,bits:8,val:119},{op:0,bits:8,val:55}, {op:0,bits:9,val:206},{op:17,bits:7,val:15},{op:0,bits:8,val:103},{op:0,bits:8,val:39},{op:0,bits:9,val:174},{op:0,bits:8,val:7},{op:0,bits:8,val:135}, {op:0,bits:8,val:71},{op:0,bits:9,val:238},{op:16,bits:7,val:9},{op:0,bits:8,val:95},{op:0,bits:8,val:31},{op:0,bits:9,val:158},{op:20,bits:7,val:99}, {op:0,bits:8,val:127},{op:0,bits:8,val:63},{op:0,bits:9,val:222},{op:18,bits:7,val:27},{op:0,bits:8,val:111},{op:0,bits:8,val:47},{op:0,bits:9,val:190}, {op:0,bits:8,val:15},{op:0,bits:8,val:143},{op:0,bits:8,val:79},{op:0,bits:9,val:254},{op:96,bits:7,val:0},{op:0,bits:8,val:80},{op:0,bits:8,val:16}, {op:20,bits:8,val:115},{op:18,bits:7,val:31},{op:0,bits:8,val:112},{op:0,bits:8,val:48},{op:0,bits:9,val:193},{op:16,bits:7,val:10},{op:0,bits:8,val:96}, {op:0,bits:8,val:32},{op:0,bits:9,val:161},{op:0,bits:8,val:0},{op:0,bits:8,val:128},{op:0,bits:8,val:64},{op:0,bits:9,val:225},{op:16,bits:7,val:6}, {op:0,bits:8,val:88},{op:0,bits:8,val:24},{op:0,bits:9,val:145},{op:19,bits:7,val:59},{op:0,bits:8,val:120},{op:0,bits:8,val:56},{op:0,bits:9,val:209}, {op:17,bits:7,val:17},{op:0,bits:8,val:104},{op:0,bits:8,val:40},{op:0,bits:9,val:177},{op:0,bits:8,val:8},{op:0,bits:8,val:136},{op:0,bits:8,val:72}, {op:0,bits:9,val:241},{op:16,bits:7,val:4},{op:0,bits:8,val:84},{op:0,bits:8,val:20},{op:21,bits:8,val:227},{op:19,bits:7,val:43},{op:0,bits:8,val:116}, {op:0,bits:8,val:52},{op:0,bits:9,val:201},{op:17,bits:7,val:13},{op:0,bits:8,val:100},{op:0,bits:8,val:36},{op:0,bits:9,val:169},{op:0,bits:8,val:4}, {op:0,bits:8,val:132},{op:0,bits:8,val:68},{op:0,bits:9,val:233},{op:16,bits:7,val:8},{op:0,bits:8,val:92},{op:0,bits:8,val:28},{op:0,bits:9,val:153}, {op:20,bits:7,val:83},{op:0,bits:8,val:124},{op:0,bits:8,val:60},{op:0,bits:9,val:217},{op:18,bits:7,val:23},{op:0,bits:8,val:108},{op:0,bits:8,val:44}, {op:0,bits:9,val:185},{op:0,bits:8,val:12},{op:0,bits:8,val:140},{op:0,bits:8,val:76},{op:0,bits:9,val:249},{op:16,bits:7,val:3},{op:0,bits:8,val:82}, {op:0,bits:8,val:18},{op:21,bits:8,val:163},{op:19,bits:7,val:35},{op:0,bits:8,val:114},{op:0,bits:8,val:50},{op:0,bits:9,val:197},{op:17,bits:7,val:11}, {op:0,bits:8,val:98},{op:0,bits:8,val:34},{op:0,bits:9,val:165},{op:0,bits:8,val:2},{op:0,bits:8,val:130},{op:0,bits:8,val:66},{op:0,bits:9,val:229}, {op:16,bits:7,val:7},{op:0,bits:8,val:90},{op:0,bits:8,val:26},{op:0,bits:9,val:149},{op:20,bits:7,val:67},{op:0,bits:8,val:122},{op:0,bits:8,val:58}, {op:0,bits:9,val:213},{op:18,bits:7,val:19},{op:0,bits:8,val:106},{op:0,bits:8,val:42},{op:0,bits:9,val:181},{op:0,bits:8,val:10},{op:0,bits:8,val:138}, {op:0,bits:8,val:74},{op:0,bits:9,val:245},{op:16,bits:7,val:5},{op:0,bits:8,val:86},{op:0,bits:8,val:22},{op:64,bits:8,val:0},{op:19,bits:7,val:51}, {op:0,bits:8,val:118},{op:0,bits:8,val:54},{op:0,bits:9,val:205},{op:17,bits:7,val:15},{op:0,bits:8,val:102},{op:0,bits:8,val:38},{op:0,bits:9,val:173}, {op:0,bits:8,val:6},{op:0,bits:8,val:134},{op:0,bits:8,val:70},{op:0,bits:9,val:237},{op:16,bits:7,val:9},{op:0,bits:8,val:94},{op:0,bits:8,val:30}, {op:0,bits:9,val:157},{op:20,bits:7,val:99},{op:0,bits:8,val:126},{op:0,bits:8,val:62},{op:0,bits:9,val:221},{op:18,bits:7,val:27},{op:0,bits:8,val:110}, {op:0,bits:8,val:46},{op:0,bits:9,val:189},{op:0,bits:8,val:14},{op:0,bits:8,val:142},{op:0,bits:8,val:78},{op:0,bits:9,val:253},{op:96,bits:7,val:0}, {op:0,bits:8,val:81},{op:0,bits:8,val:17},{op:21,bits:8,val:131},{op:18,bits:7,val:31},{op:0,bits:8,val:113},{op:0,bits:8,val:49},{op:0,bits:9,val:195}, {op:16,bits:7,val:10},{op:0,bits:8,val:97},{op:0,bits:8,val:33},{op:0,bits:9,val:163},{op:0,bits:8,val:1},{op:0,bits:8,val:129},{op:0,bits:8,val:65}, {op:0,bits:9,val:227},{op:16,bits:7,val:6},{op:0,bits:8,val:89},{op:0,bits:8,val:25},{op:0,bits:9,val:147},{op:19,bits:7,val:59},{op:0,bits:8,val:121}, {op:0,bits:8,val:57},{op:0,bits:9,val:211},{op:17,bits:7,val:17},{op:0,bits:8,val:105},{op:0,bits:8,val:41},{op:0,bits:9,val:179},{op:0,bits:8,val:9}, {op:0,bits:8,val:137},{op:0,bits:8,val:73},{op:0,bits:9,val:243},{op:16,bits:7,val:4},{op:0,bits:8,val:85},{op:0,bits:8,val:21},{op:16,bits:8,val:258}, {op:19,bits:7,val:43},{op:0,bits:8,val:117},{op:0,bits:8,val:53},{op:0,bits:9,val:203},{op:17,bits:7,val:13},{op:0,bits:8,val:101},{op:0,bits:8,val:37}, {op:0,bits:9,val:171},{op:0,bits:8,val:5},{op:0,bits:8,val:133},{op:0,bits:8,val:69},{op:0,bits:9,val:235},{op:16,bits:7,val:8},{op:0,bits:8,val:93}, {op:0,bits:8,val:29},{op:0,bits:9,val:155},{op:20,bits:7,val:83},{op:0,bits:8,val:125},{op:0,bits:8,val:61},{op:0,bits:9,val:219},{op:18,bits:7,val:23}, {op:0,bits:8,val:109},{op:0,bits:8,val:45},{op:0,bits:9,val:187},{op:0,bits:8,val:13},{op:0,bits:8,val:141},{op:0,bits:8,val:77},{op:0,bits:9,val:251}, {op:16,bits:7,val:3},{op:0,bits:8,val:83},{op:0,bits:8,val:19},{op:21,bits:8,val:195},{op:19,bits:7,val:35},{op:0,bits:8,val:115},{op:0,bits:8,val:51}, {op:0,bits:9,val:199},{op:17,bits:7,val:11},{op:0,bits:8,val:99},{op:0,bits:8,val:35},{op:0,bits:9,val:167},{op:0,bits:8,val:3},{op:0,bits:8,val:131}, {op:0,bits:8,val:67},{op:0,bits:9,val:231},{op:16,bits:7,val:7},{op:0,bits:8,val:91},{op:0,bits:8,val:27},{op:0,bits:9,val:151},{op:20,bits:7,val:67}, {op:0,bits:8,val:123},{op:0,bits:8,val:59},{op:0,bits:9,val:215},{op:18,bits:7,val:19},{op:0,bits:8,val:107},{op:0,bits:8,val:43},{op:0,bits:9,val:183}, {op:0,bits:8,val:11},{op:0,bits:8,val:139},{op:0,bits:8,val:75},{op:0,bits:9,val:247},{op:16,bits:7,val:5},{op:0,bits:8,val:87},{op:0,bits:8,val:23}, {op:64,bits:8,val:0},{op:19,bits:7,val:51},{op:0,bits:8,val:119},{op:0,bits:8,val:55},{op:0,bits:9,val:207},{op:17,bits:7,val:15},{op:0,bits:8,val:103}, {op:0,bits:8,val:39},{op:0,bits:9,val:175},{op:0,bits:8,val:7},{op:0,bits:8,val:135},{op:0,bits:8,val:71},{op:0,bits:9,val:239},{op:16,bits:7,val:9}, {op:0,bits:8,val:95},{op:0,bits:8,val:31},{op:0,bits:9,val:159},{op:20,bits:7,val:99},{op:0,bits:8,val:127},{op:0,bits:8,val:63},{op:0,bits:9,val:223}, {op:18,bits:7,val:27},{op:0,bits:8,val:111},{op:0,bits:8,val:47},{op:0,bits:9,val:191},{op:0,bits:8,val:15},{op:0,bits:8,val:143},{op:0,bits:8,val:79}, {op:0,bits:9,val:255}])",distfix_ary=null,distfix_def="([ {op:16,bits:5,val:1},{op:23,bits:5,val:257},{op:19,bits:5,val:17},{op:27,bits:5,val:4097},{op:17,bits:5,val:5},{op:25,bits:5,val:1025}, {op:21,bits:5,val:65},{op:29,bits:5,val:16385},{op:16,bits:5,val:3},{op:24,bits:5,val:513},{op:20,bits:5,val:33},{op:28,bits:5,val:8193}, {op:18,bits:5,val:9},{op:26,bits:5,val:2049},{op:22,bits:5,val:129},{op:64,bits:5,val:0},{op:16,bits:5,val:2},{op:23,bits:5,val:385}, {op:19,bits:5,val:25},{op:27,bits:5,val:6145},{op:17,bits:5,val:7},{op:25,bits:5,val:1537},{op:21,bits:5,val:97},{op:29,bits:5,val:24577}, {op:16,bits:5,val:4},{op:24,bits:5,val:769},{op:20,bits:5,val:49},{op:28,bits:5,val:12289},{op:18,bits:5,val:13},{op:26,bits:5,val:3073}, {op:22,bits:5,val:193},{op:64,bits:5,val:0}])";function fixedtables(state){var i;for(lenfix_ary||(lenfix_ary=eval(lenfix_def)),distfix_ary||(distfix_ary=eval(distfix_def)),state.lencode=0,state.distcode=512,i=0;i<512;i++)state.codes[i]=lenfix_ary[i];for(i=0;i<32;i++)state.codes[i+512]=distfix_ary[i];state.lenbits=9,state.distbits=5}function updatewindow(e){var t=e.state,i=e.output_data.length;return null===t.window&&(t.window=""),0==t.wsize&&(t.wsize=1<<t.wbits),i>=t.wsize?t.window=e.output_data.substring(i-t.wsize):t.whave+i<t.wsize?t.window+=e.output_data:t.window=t.window.substring(t.whave-(t.wsize-i))+e.output_data,t.whave=t.window.length,t.whave<t.wsize?t.wnext=t.whave:t.wnext=0,0}function CRC2(e,t){var i=[255&t,t>>>8&255];e.state.check=e.checksum_function(e.state.check,i,0,2)}function CRC4(e,t){var i=[255&t,t>>>8&255,t>>>16&255,t>>>24&255];e.state.check=e.checksum_function(e.state.check,i,0,4)}function LOAD(e,t){return t.strm=e,t.left=e.avail_out,t.next=e.next_in,t.have=e.avail_in,t.hold=e.state.hold,t.bits=e.state.bits,t}function RESTORE(e){var t=e.strm;t.next_in=e.next,t.avail_out=e.left,t.avail_in=e.have,t.state.hold=e.hold,t.state.bits=e.bits}function INITBITS(e){e.hold=0,e.bits=0}function PULLBYTE(e){return 0!=e.have&&(e.have--,e.hold+=(255&e.strm.input_data.charCodeAt(e.next++))<<e.bits,e.bits+=8,!0)}function NEEDBITS(e,t){for(;e.bits<t;)if(!PULLBYTE(e))return!1;return!0}function BITS(e,t){return e.hold&(1<<t)-1}function DROPBITS(e,t){e.hold>>>=t,e.bits-=t}function BYTEBITS(e){e.hold>>>=7&e.bits,e.bits-=7&e.bits}function REVERSE(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}var inflate_order=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];ZLIB.inflate=function(e,t){var i,s,r,n,o,a,h,l,c,d=-1,u=-1;if(!e||!e.state||!e.input_data&&0!=e.avail_in)return ZLIB.Z_STREAM_ERROR;(i=e.state).mode==TYPE&&(i.mode=TYPEDO),LOAD(e,s={}),r=s.have,n=s.left,c=ZLIB.Z_OK;e:for(;;)switch(i.mode){case HEAD:if(0==i.wrap){i.mode=TYPEDO;break}if(!NEEDBITS(s,16))break e;if(2&i.wrap&&35615==s.hold){i.check=e.checksum_function(0,null,0,0),CRC2(e,s.hold),INITBITS(s),i.mode=FLAGS;break}if(i.flags=0,null!==i.head&&(i.head.done=-1),!(1&i.wrap)||((BITS(s,8)<<8)+(s.hold>>>8))%31){e.msg="incorrect header check",i.mode=BAD;break}if(BITS(s,4)!=ZLIB.Z_DEFLATED){e.msg="unknown compression method",i.mode=BAD;break}if(DROPBITS(s,4),l=BITS(s,4)+8,0==i.wbits)i.wbits=l;else if(l>i.wbits){e.msg="invalid window size",i.mode=BAD;break}i.dmax=1<<l,e.adler=i.check=e.checksum_function(0,null,0,0),i.mode=512&s.hold?DICTID:TYPE,INITBITS(s);break;case FLAGS:if(!NEEDBITS(s,16))break e;if(i.flags=s.hold,(255&i.flags)!=ZLIB.Z_DEFLATED){e.msg="unknown compression method",i.mode=BAD;break}if(57344&i.flags){e.msg="unknown header flags set",i.mode=BAD;break}null!==i.head&&(i.head.text=s.hold>>>8&1),512&i.flags&&CRC2(e,s.hold),INITBITS(s),i.mode=TIME;case TIME:if(!NEEDBITS(s,32))break e;null!==i.head&&(i.head.time=s.hold),512&i.flags&&CRC4(e,s.hold),INITBITS(s),i.mode=OS;case OS:if(!NEEDBITS(s,16))break e;null!==i.head&&(i.head.xflags=255&s.hold,i.head.os=s.hold>>>8),512&i.flags&&CRC2(e,s.hold),INITBITS(s),i.mode=EXLEN;case EXLEN:if(1024&i.flags){if(!NEEDBITS(s,16))break e;i.length=s.hold,null!==i.head&&(i.head.extra_len=s.hold),512&i.flags&&CRC2(e,s.hold),INITBITS(s),i.head.extra=""}else null!==i.head&&(i.head.extra=null);i.mode=EXTRA;case EXTRA:if(1024&i.flags&&((o=i.length)>s.have&&(o=s.have),o&&(null!==i.head&&null!==i.head.extra&&(l=i.head.extra_len-i.length,i.head.extra+=e.input_data.substring(s.next,s.next+(l+o>i.head.extra_max?i.head.extra_max-l:o))),512&i.flags&&(i.check=e.checksum_function(i.check,e.input_data,s.next,o)),s.have-=o,s.next+=o,i.length-=o),i.length))break e;i.length=0,i.mode=NAME;case NAME:if(2048&i.flags){if(0==s.have)break e;null!==i.head&&null===i.head.name&&(i.head.name=""),o=0;do{if(l=e.input_data.charAt(s.next+o),o++,"\0"===l)break;null!==i.head&&i.length<i.head.name_max&&(i.head.name+=l,i.length++)}while(o<s.have);if(512&i.flags&&(i.check=e.checksum_function(i.check,e.input_data,s.next,o)),s.have-=o,s.next+=o,"\0"!==l)break e}else null!==i.head&&(i.head.name=null);i.length=0,i.mode=COMMENT;case COMMENT:if(4096&i.flags){if(0==s.have)break e;o=0,null!==i.head&&null===i.head.comment&&(i.head.comment="");do{if(l=e.input_data.charAt(s.next+o),o++,"\0"===l)break;null!==i.head&&i.length<i.head.comm_max&&(i.head.comment+=l,i.length++)}while(o<s.have);if(512&i.flags&&(i.check=e.checksum_function(i.check,e.input_data,s.next,o)),s.have-=o,s.next+=o,"\0"!==l)break e}else null!==i.head&&(i.head.comment=null);i.mode=HCRC;case HCRC:if(512&i.flags){if(!NEEDBITS(s,16))break e;if(s.hold!=(65535&i.check)){e.msg="header crc mismatch",i.mode=BAD;break}INITBITS(s)}null!==i.head&&(i.head.hcrc=i.flags>>>9&1,i.head.done=1),e.adler=i.check=e.checksum_function(0,null,0,0),i.mode=TYPE;break;case DICTID:if(!NEEDBITS(s,32))break e;e.adler=i.check=REVERSE(s.hold),INITBITS(s),i.mode=DICT;case DICT:if(0==i.havedict)return RESTORE(s),ZLIB.Z_NEED_DICT;e.adler=i.check=e.checksum_function(0,null,0,0),i.mode=TYPE;case TYPE:if(t==ZLIB.Z_BLOCK||t==ZLIB.Z_TREES)break e;case TYPEDO:if(i.last){BYTEBITS(s),i.mode=CHECK;break}if(!NEEDBITS(s,3))break e;switch(i.last=BITS(s,1),DROPBITS(s,1),BITS(s,2)){case 0:i.mode=STORED;break;case 1:if(fixedtables(i),i.mode=LEN_,t==ZLIB.Z_TREES){DROPBITS(s,2);break e}break;case 2:i.mode=TABLE;break;case 3:e.msg="invalid block type",i.mode=BAD}DROPBITS(s,2);break;case STORED:if(BYTEBITS(s),!NEEDBITS(s,32))break e;if((65535&s.hold)!=(s.hold>>>16&65535^65535)){e.msg="invalid stored block lengths",i.mode=BAD;break}if(i.length=65535&s.hold,INITBITS(s),i.mode=COPY_,t==ZLIB.Z_TREES)break e;case COPY_:i.mode=COPY;case COPY:if(o=i.length){if(o>s.have&&(o=s.have),o>s.left&&(o=s.left),0==o)break e;e.output_data+=e.input_data.substring(s.next,s.next+o),e.next_out+=o,s.have-=o,s.next+=o,s.left-=o,i.length-=o;break}i.mode=TYPE;break;case TABLE:if(!NEEDBITS(s,14))break e;if(i.nlen=BITS(s,5)+257,DROPBITS(s,5),i.ndist=BITS(s,5)+1,DROPBITS(s,5),i.ncode=BITS(s,4)+4,DROPBITS(s,4),i.nlen>286||i.ndist>30){e.msg="too many length or distance symbols",i.mode=BAD;break}i.have=0,i.mode=LENLENS;case LENLENS:for(;i.have<i.ncode;){if(!NEEDBITS(s,3))break e;var _=BITS(s,3);i.lens[inflate_order[i.have++]]=_,DROPBITS(s,3)}for(;i.have<19;)i.lens[inflate_order[i.have++]]=0;if(i.next=0,i.lencode=0,i.lenbits=7,c=inflate_table(i,CODES)){e.msg="invalid code lengths set",i.mode=BAD;break}i.have=0,i.mode=CODELENS;case CODELENS:for(;i.have<i.nlen+i.ndist;){for(;!((a=i.codes[i.lencode+BITS(s,i.lenbits)]).bits<=s.bits);)if(!PULLBYTE(s))break e;if(a.val<16)DROPBITS(s,a.bits),i.lens[i.have++]=a.val;else{if(16==a.val){if(!NEEDBITS(s,a.bits+2))break e;if(DROPBITS(s,a.bits),0==i.have){e.msg="invalid bit length repeat",i.mode=BAD;break}l=i.lens[i.have-1],o=3+BITS(s,2),DROPBITS(s,2)}else if(17==a.val){if(!NEEDBITS(s,a.bits+3))break e;DROPBITS(s,a.bits),l=0,o=3+BITS(s,3),DROPBITS(s,3)}else{if(!NEEDBITS(s,a.bits+7))break e;DROPBITS(s,a.bits),l=0,o=11+BITS(s,7),DROPBITS(s,7)}if(i.have+o>i.nlen+i.ndist){e.msg="invalid bit length repeat",i.mode=BAD;break}for(;o--;)i.lens[i.have++]=l}}if(i.mode==BAD)break;if(0==i.lens[256]){e.msg="invalid code -- missing end-of-block",i.mode=BAD;break}if(i.next=0,i.lencode=i.next,i.lenbits=9,c=inflate_table(i,LENS)){e.msg="invalid literal/lengths set",i.mode=BAD;break}if(i.distcode=i.next,i.distbits=6,c=inflate_table(i,DISTS)){e.msg="invalid distances set",i.mode=BAD;break}if(i.mode=LEN_,t==ZLIB.Z_TREES)break e;case LEN_:i.mode=LEN;case LEN:if(s.have>=6&&s.left>=258){RESTORE(s),inflate_fast(e,n),LOAD(e,s),i.mode==TYPE&&(i.back=-1);break}for(i.back=0;!((a=i.codes[i.lencode+BITS(s,i.lenbits)]).bits<=s.bits);)if(!PULLBYTE(s))break e;if(a.op&&0==(240&a.op)){for(h=a;a=i.codes[i.lencode+h.val+(BITS(s,h.bits+h.op)>>>h.bits)],!(h.bits+a.bits<=s.bits);)if(!PULLBYTE(s))break e;DROPBITS(s,h.bits),i.back+=h.bits}if(DROPBITS(s,a.bits),i.back+=a.bits,i.length=a.val,0==a.op){i.mode=LIT;break}if(32&a.op){i.back=-1,i.mode=TYPE;break}if(64&a.op){e.msg="invalid literal/length code",i.mode=BAD;break}i.extra=15&a.op,i.mode=LENEXT;case LENEXT:if(i.extra){if(!NEEDBITS(s,i.extra))break e;i.length+=BITS(s,i.extra),DROPBITS(s,i.extra),i.back+=i.extra}i.was=i.length,i.mode=DIST;case DIST:for(;!((a=i.codes[i.distcode+BITS(s,i.distbits)]).bits<=s.bits);)if(!PULLBYTE(s))break e;if(0==(240&a.op)){for(h=a;a=i.codes[i.distcode+h.val+(BITS(s,h.bits+h.op)>>>h.bits)],!(h.bits+a.bits<=s.bits);)if(!PULLBYTE(s))break e;DROPBITS(s,h.bits),i.back+=h.bits}if(DROPBITS(s,a.bits),i.back+=a.bits,64&a.op){e.msg="invalid distance code",i.mode=BAD;break}i.offset=a.val,i.extra=15&a.op,i.mode=DISTEXT;case DISTEXT:if(i.extra){if(!NEEDBITS(s,i.extra))break e;i.offset+=BITS(s,i.extra),DROPBITS(s,i.extra),i.back+=i.extra}i.mode=MATCH;case MATCH:if(0==s.left)break e;if(o=n-s.left,i.offset>o){if((o=i.offset-o)>i.whave&&i.sane){e.msg="invalid distance too far back",i.mode=BAD;break}o>i.wnext?(o-=i.wnext,d=i.wsize-o,u=-1):(d=i.wnext-o,u=-1),o>i.length&&(o=i.length)}else d=-1,u=e.next_out-i.offset,o=i.length;if(o>s.left&&(o=s.left),s.left-=o,i.length-=o,d>=0)e.output_data+=i.window.substring(d,d+o),e.next_out+=o,o=0;else{e.next_out+=o;do{e.output_data+=e.output_data.charAt(u++)}while(--o)}0==i.length&&(i.mode=LEN);break;case LIT:if(0==s.left)break e;e.output_data+=String.fromCharCode(i.length),e.next_out++,s.left--,i.mode=LEN;break;case CHECK:if(i.wrap){if(!NEEDBITS(s,32))break e;if(n-=s.left,e.total_out+=n,i.total+=n,n&&(e.adler=i.check=e.checksum_function(i.check,e.output_data,e.output_data.length-n,n)),n=s.left,(i.flags?s.hold:REVERSE(s.hold))!=i.check){e.msg="incorrect data check",i.mode=BAD;break}INITBITS(s)}i.mode=LENGTH;case LENGTH:if(i.wrap&&i.flags){if(!NEEDBITS(s,32))break e;if(s.hold!=(4294967295&i.total)){e.msg="incorrect length check",i.mode=BAD;break}INITBITS(s)}i.mode=DONE;case DONE:c=ZLIB.Z_STREAM_END;break e;case BAD:c=ZLIB.Z_DATA_ERROR;break e;case MEM:return ZLIB.Z_MEM_ERROR;default:return ZLIB.Z_STREAM_ERROR}return RESTORE(s),(i.wsize||n!=e.avail_out&&i.mode<BAD&&(i.mode<CHECK||t!=ZLIB.Z_FINISH))&&updatewindow(e)?(i.mode=MEM,ZLIB.Z_MEM_ERROR):(r-=e.avail_in,n-=e.avail_out,e.total_in+=r,e.total_out+=n,i.total+=n,i.wrap&&n&&(e.adler=i.check=e.checksum_function(i.check,e.output_data,0,e.output_data.length)),e.data_type=i.bits+(i.last?64:0)+(i.mode==TYPE?128:0)+(i.mode==LEN_||i.mode==COPY_?256:0),(0==r&&0==n||t==ZLIB.Z_FINISH)&&c==ZLIB.Z_OK&&(c=ZLIB.Z_BUF_ERROR),c)},ZLIB.inflateEnd=function(e){return e&&e.state?(e.state.window=null,e.state=null,ZLIB.Z_OK):ZLIB.Z_STREAM_ERROR},ZLIB.z_stream.prototype.inflate=function(e,t){var i,s;this.input_data=e,this.next_in=getarg(t,"next_in",0),this.avail_in=getarg(t,"avail_in",e.length-this.next_in),i=getarg(t,"flush",ZLIB.Z_SYNC_FLUSH),s=getarg(t,"avail_out",-1);var r="";do{if(this.avail_out=s>=0?s:16384,this.output_data="",this.next_out=0,this.error=ZLIB.inflate(this,i),0!=this.error&&console.log("zlib error",this.error),s>=0)return this.output_data;if(r+=this.output_data,this.avail_out>0)break}while(this.error==ZLIB.Z_OK);return r},ZLIB.z_stream.prototype.inflateReset=function(e){return ZLIB.inflateReset(this,e)}}(),void 0===ZLIB&&alert("ZLIB is not defined. SRC zlib.js before zlib-adler32.js"),BASE=65521,NMAX=5552,ZLIB.adler32=function(e,t,i,s){return"string"==typeof t?function(e,t,i,s){var r,n;if(r=e>>>16&65535,e&=65535,1==s)return(e+=255&t.charCodeAt(i))>=BASE&&(e-=BASE),(r+=e)>=BASE&&(r-=BASE),e|r<<16;if(null===t)return 1;if(s<16){for(;s--;)r+=e+=255&t.charCodeAt(i++);return e>=BASE&&(e-=BASE),e|(r%=BASE)<<16}for(;s>=NMAX;){s-=NMAX,n=347;do{r+=e+=255&t.charCodeAt(i++),r+=e+=255&t.charCodeAt(i++),r+=e+=255&t.charCodeAt(i++),r+=e+=255&t.charCodeAt(i++),r+=e+=255&t.charCodeAt(i++),r+=e+=255&t.charCodeAt(i++),r+=e+=255&t.charCodeAt(i++),r+=e+=255&t.charCodeAt(i++),r+=e+=255&t.charCodeAt(i++),r+=e+=255&t.charCodeAt(i++),r+=e+=255&t.charCodeAt(i++),r+=e+=255&t.charCodeAt(i++),r+=e+=255&t.charCodeAt(i++),r+=e+=255&t.charCodeAt(i++),r+=e+=255&t.charCodeAt(i++),r+=e+=255&t.charCodeAt(i++)}while(--n);e%=BASE,r%=BASE}if(s){for(;s>=16;)s-=16,r+=e+=255&t.charCodeAt(i++),r+=e+=255&t.charCodeAt(i++),r+=e+=255&t.charCodeAt(i++),r+=e+=255&t.charCodeAt(i++),r+=e+=255&t.charCodeAt(i++),r+=e+=255&t.charCodeAt(i++),r+=e+=255&t.charCodeAt(i++),r+=e+=255&t.charCodeAt(i++),r+=e+=255&t.charCodeAt(i++),r+=e+=255&t.charCodeAt(i++),r+=e+=255&t.charCodeAt(i++),r+=e+=255&t.charCodeAt(i++),r+=e+=255&t.charCodeAt(i++),r+=e+=255&t.charCodeAt(i++),r+=e+=255&t.charCodeAt(i++),r+=e+=255&t.charCodeAt(i++);for(;s--;)r+=e+=255&t.charCodeAt(i++);e%=BASE,r%=BASE}return e|r<<16}(e,t,i,s):function(e,t,i,s){var r,n;if(r=e>>>16&65535,e&=65535,1==s)return(e+=t[i])>=BASE&&(e-=BASE),(r+=e)>=BASE&&(r-=BASE),e|r<<16;if(null===t)return 1;if(s<16){for(;s--;)r+=e+=t[i++];return e>=BASE&&(e-=BASE),e|(r%=BASE)<<16}for(;s>=NMAX;){s-=NMAX,n=347;do{r+=e+=t[i++],r+=e+=t[i++],r+=e+=t[i++],r+=e+=t[i++],r+=e+=t[i++],r+=e+=t[i++],r+=e+=t[i++],r+=e+=t[i++],r+=e+=t[i++],r+=e+=t[i++],r+=e+=t[i++],r+=e+=t[i++],r+=e+=t[i++],r+=e+=t[i++],r+=e+=t[i++],r+=e+=t[i++]}while(--n);e%=BASE,r%=BASE}if(s){for(;s>=16;)s-=16,r+=e+=t[i++],r+=e+=t[i++],r+=e+=t[i++],r+=e+=t[i++],r+=e+=t[i++],r+=e+=t[i++],r+=e+=t[i++],r+=e+=t[i++],r+=e+=t[i++],r+=e+=t[i++],r+=e+=t[i++],r+=e+=t[i++],r+=e+=t[i++],r+=e+=t[i++],r+=e+=t[i++],r+=e+=t[i++];for(;s--;)r+=e+=t[i++];e%=BASE,r%=BASE}return e|r<<16}(e,t,i,s)},ZLIB.adler32_combine=function(e,t,i){var s,r,n;return i<0?4294967295:(r=(n=i%=BASE)*(s=65535&e),r%=BASE,(s+=(65535&t)+BASE-1)>=BASE&&(s-=BASE),s>=BASE&&(s-=BASE),(r+=(e>>16&65535)+(t>>16&65535)+BASE-n)>=131042&&(r-=131042),r>=BASE&&(r-=BASE),s|r<<16)},void 0===ZLIB&&alert("ZLIB is not defined. SRC zlib.js before zlib-crc32.js"),function(){var e=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];function t(e,t){var i,s=0;for(i=0;t;)1&t&&(i^=e[s]),t>>=1,s++;return i}function i(e,i){var s;for(s=0;s<32;s++)e[s]=t(i,i[s])}ZLIB.crc32=function(t,i,s,r){return"string"==typeof i?function(t,i,s,r){if(null==i)return 0;for(t^=4294967295;r>=8;)t=e[255&(t^i.charCodeAt(s++))]^t>>>8,t=e[255&(t^i.charCodeAt(s++))]^t>>>8,t=e[255&(t^i.charCodeAt(s++))]^t>>>8,t=e[255&(t^i.charCodeAt(s++))]^t>>>8,t=e[255&(t^i.charCodeAt(s++))]^t>>>8,t=e[255&(t^i.charCodeAt(s++))]^t>>>8,t=e[255&(t^i.charCodeAt(s++))]^t>>>8,t=e[255&(t^i.charCodeAt(s++))]^t>>>8,r-=8;if(r)do{t=e[255&(t^i.charCodeAt(s++))]^t>>>8}while(--r);return 4294967295^t}(t,i,s,r):function(t,i,s,r){if(null==i)return 0;for(t^=4294967295;r>=8;)t=e[255&(t^i[s++])]^t>>>8,t=e[255&(t^i[s++])]^t>>>8,t=e[255&(t^i[s++])]^t>>>8,t=e[255&(t^i[s++])]^t>>>8,t=e[255&(t^i[s++])]^t>>>8,t=e[255&(t^i[s++])]^t>>>8,t=e[255&(t^i[s++])]^t>>>8,t=e[255&(t^i[s++])]^t>>>8,r-=8;if(r)do{t=e[255&(t^i[s++])]^t>>>8}while(--r);return 4294967295^t}(t,i,s,r)},ZLIB.crc32_combine=function(e,s,r){var n,o,a,h;if(r<=0)return e;for(a=new Array(32),(h=new Array(32))[0]=3988292384,o=1,n=1;n<32;n++)h[n]=o,o<<=1;i(a,h),i(h,a);do{if(i(a,h),1&r&&(e=t(a,e)),0==(r>>=1))break;i(h,a),1&r&&(e=t(h,e)),r>>=1}while(0!=r);return e^s}}(),module.exports=ZLIB}},__webpack_module_cache__={};function __nested_webpack_require_78641__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var i=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e](i,i.exports,__nested_webpack_require_78641__),i.exports}__nested_webpack_require_78641__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __nested_webpack_require_78641__.d(t,{a:t}),t},__nested_webpack_require_78641__.d=(e,t)=>{for(var i in t)__nested_webpack_require_78641__.o(t,i)&&!__nested_webpack_require_78641__.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},__nested_webpack_require_78641__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__nested_webpack_require_78641__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __nested_webpack_exports__={};return(()=>{"use strict";__nested_webpack_require_78641__.r(__nested_webpack_exports__),__nested_webpack_require_78641__.d(__nested_webpack_exports__,{AMTDesktop:()=>e.r,AMTKeyCodeConverter:()=>u.qD,AMTKvmDataRedirector:()=>t.N,AMTRedirector:()=>i.K,AmtTerminal:()=>s.r,CommsHelper:()=>u.Xn,ConsoleLogger:()=>r.k,DataProcessor:()=>c.$,Desktop:()=>o.H,Encoding:()=>d.ez,FrameBufferBellServerCutText:()=>d.Ut,HandshakeState:()=>d.wW,ImageHelper:()=>u.jw,KeyBoardHelper:()=>u.EB,LogLevel:()=>l.i,MouseHelper:()=>u.xx,Protocol:()=>i.b,RLEDecoder:()=>c.X,SecurityOptions:()=>d.ll,SecurityResponse:()=>d.mC,ServerInit:()=>d.Cu,StateProcessorFactory:()=>a.v,TerminalDataProcessor:()=>h.Q,TypeConverter:()=>n.r,isTruthy:()=>u.fQ});var e=__nested_webpack_require_78641__(166),t=__nested_webpack_require_78641__(59),i=__nested_webpack_require_78641__(503),s=__nested_webpack_require_78641__(277),r=__nested_webpack_require_78641__(237),n=__nested_webpack_require_78641__(565),o=__nested_webpack_require_78641__(46),a=__nested_webpack_require_78641__(989),h=__nested_webpack_require_78641__(155),l=__nested_webpack_require_78641__(201),c=__nested_webpack_require_78641__(646),d=__nested_webpack_require_78641__(389),u=__nested_webpack_require_78641__(8)})(),__nested_webpack_exports__})(),module.exports=e()},14:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var s=i(213),r=i.n(s),n=i(645),o=i.n(n)()(r());o.push([e.id,".xterm{cursor:text;position:relative;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;right:0;left:0;top:0;bottom:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm .xterm-scroll-area{visibility:hidden}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm.enable-mouse-events{cursor:default}.xterm.xterm-cursor-pointer,.xterm .xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility,.xterm .xterm-message{position:absolute;left:0;top:0;bottom:0;right:0;z-index:10;color:rgba(0,0,0,0);pointer-events:none}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:1 !important}.xterm-underline-1{text-decoration:underline}.xterm-underline-2{text-decoration:double underline}.xterm-underline-3{text-decoration:wavy underline}.xterm-underline-4{text-decoration:dotted underline}.xterm-underline-5{text-decoration:dashed underline}.xterm-overline{text-decoration:overline}.xterm-overline.xterm-underline-1{text-decoration:overline underline}.xterm-overline.xterm-underline-2{text-decoration:overline double underline}.xterm-overline.xterm-underline-3{text-decoration:overline wavy underline}.xterm-overline.xterm-underline-4{text-decoration:overline dotted underline}.xterm-overline.xterm-underline-5{text-decoration:overline dashed underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer{z-index:7}.xterm-decoration-overview-ruler{z-index:8;position:absolute;top:0;right:0;pointer-events:none}.xterm-decoration-top{z-index:2;position:relative}",""]);const a=o},20:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var s=i(213),r=i.n(s),n=i(645),o=i.n(n)()(r());o.push([e.id,".sol-header{display:flex}.power-options{display:block;position:absolute;right:1%}.terminal{text-align:left;display:block}.terminal_xterm{display:inline-block}",""]);const a=o},645:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var i="",s=void 0!==t[5];return t[4]&&(i+="@supports (".concat(t[4],") {")),t[2]&&(i+="@media ".concat(t[2]," {")),s&&(i+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),i+=e(t),s&&(i+="}"),t[2]&&(i+="}"),t[4]&&(i+="}"),i})).join("")},t.i=function(e,i,s,r,n){"string"==typeof e&&(e=[[null,e,void 0]]);var o={};if(s)for(var a=0;a<this.length;a++){var h=this[a][0];null!=h&&(o[h]=!0)}for(var l=0;l<e.length;l++){var c=[].concat(e[l]);s&&o[c[0]]||(void 0!==n&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=n),i&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=i):c[2]=i),r&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=r):c[4]="".concat(r)),t.push(c))}},t}},213:e=>{"use strict";e.exports=function(e){return e[1]}},774:e=>{e.exports=function(e,t,i,s){var r=i?i.call(s,e,t):void 0;if(void 0!==r)return!!r;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(var a=Object.prototype.hasOwnProperty.bind(t),h=0;h<n.length;h++){var l=n[h];if(!a(l))return!1;var c=e[l],d=t[l];if(!1===(r=i?i.call(s,c,d,l):void 0)||void 0===r&&c!==d)return!1}return!0}},54:(e,t,i)=>{"use strict";var s=i(379),r=i.n(s),n=i(795),o=i.n(n),a=i(569),h=i.n(a),l=i(565),c=i.n(l),d=i(216),u=i.n(d),_=i(589),f=i.n(_),p=i(14),v={};v.styleTagTransform=f(),v.setAttributes=c(),v.insert=h().bind(null,"head"),v.domAPI=o(),v.insertStyleElement=u(),r()(p.Z,v),p.Z&&p.Z.locals&&p.Z.locals},670:(e,t,i)=>{"use strict";var s=i(379),r=i.n(s),n=i(795),o=i.n(n),a=i(569),h=i.n(a),l=i(565),c=i.n(l),d=i(216),u=i.n(d),_=i(589),f=i.n(_),p=i(20),v={};v.styleTagTransform=f(),v.setAttributes=c(),v.insert=h().bind(null,"head"),v.domAPI=o(),v.insertStyleElement=u(),r()(p.Z,v),p.Z&&p.Z.locals&&p.Z.locals},379:e=>{"use strict";var t=[];function i(e){for(var i=-1,s=0;s<t.length;s++)if(t[s].identifier===e){i=s;break}return i}function s(e,s){for(var n={},o=[],a=0;a<e.length;a++){var h=e[a],l=s.base?h[0]+s.base:h[0],c=n[l]||0,d="".concat(l," ").concat(c);n[l]=c+1;var u=i(d),_={css:h[1],media:h[2],sourceMap:h[3],supports:h[4],layer:h[5]};if(-1!==u)t[u].references++,t[u].updater(_);else{var f=r(_,s);s.byIndex=a,t.splice(a,0,{identifier:d,updater:f,references:1})}o.push(d)}return o}function r(e,t){var i=t.domAPI(t);return i.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;i.update(e=t)}else i.remove()}}e.exports=function(e,r){var n=s(e=e||[],r=r||{});return function(e){e=e||[];for(var o=0;o<n.length;o++){var a=i(n[o]);t[a].references--}for(var h=s(e,r),l=0;l<n.length;l++){var c=i(n[l]);0===t[c].references&&(t[c].updater(),t.splice(c,1))}n=h}}},569:e=>{"use strict";var t={};e.exports=function(e,i){var s=function(e){if(void 0===t[e]){var i=document.querySelector(e);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(e){i=null}t[e]=i}return t[e]}(e);if(!s)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");s.appendChild(i)}},216:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},565:(e,t,i)=>{"use strict";e.exports=function(e){var t=i.nc;t&&e.setAttribute("nonce",t)}},795:e=>{"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(i){!function(e,t,i){var s="";i.supports&&(s+="@supports (".concat(i.supports,") {")),i.media&&(s+="@media ".concat(i.media," {"));var r=void 0!==i.layer;r&&(s+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),s+=i.css,r&&(s+="}"),i.media&&(s+="}"),i.supports&&(s+="}");var n=i.sourceMap;n&&"undefined"!=typeof btoa&&(s+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(n))))," */")),t.styleTagTransform(s,e,t.options)}(t,e,i)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},589:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},893:(e,t,i)=>{"use strict";i.d(t,{ZP:()=>je});var s=i(582),r=i(639),n=i.n(r),o=i(774),a=i.n(o),h=i(563),l=i(160),c=i(211),d=i(190),u=i(371),_="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",f="undefined"!=typeof window&&"HTMLElement"in window,p=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY),v=(new Set,Object.freeze([])),g=Object.freeze({});var m=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),S=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,b=/(^-|-$)/g;function C(e){return e.replace(S,"-").replace(b,"")}var y=/(a)(d)/gi,w=function(e){return String.fromCharCode(e+(e>25?39:97))};function E(e){var t,i="";for(t=Math.abs(e);t>52;t=t/52|0)i=w(t%52)+i;return(w(t%52)+i).replace(y,"$1-$2")}var k,x=function(e,t){for(var i=t.length;i;)e=33*e^t.charCodeAt(--i);return e},A=function(e){return x(5381,e)};function R(e){return"string"==typeof e&&!0}var D="function"==typeof Symbol&&Symbol.for,L=D?Symbol.for("react.memo"):60115,B=D?Symbol.for("react.forward_ref"):60112,T={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},I={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},M={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},O=((k={})[B]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},k[L]=M,k);function P(e){return("type"in(t=e)&&t.type.$$typeof)===L?M:"$$typeof"in e?O[e.$$typeof]:T;var t}var H=Object.defineProperty,F=Object.getOwnPropertyNames,N=Object.getOwnPropertySymbols,$=Object.getOwnPropertyDescriptor,U=Object.getPrototypeOf,W=Object.prototype;function j(e,t,i){if("string"!=typeof t){if(W){var s=U(t);s&&s!==W&&j(e,s,i)}var r=F(t);N&&(r=r.concat(N(t)));for(var n=P(e),o=P(t),a=0;a<r.length;++a){var h=r[a];if(!(h in I||i&&i[h]||o&&h in o||n&&h in n)){var l=$(t,h);try{H(e,h,l)}catch(e){}}}}return e}function K(e){return"function"==typeof e}function z(e){return"object"==typeof e&&"styledComponentId"in e}function q(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Z(e,t){if(0===e.length)return"";for(var i=e[0],s=1;s<e.length;s++)i+=t?t+e[s]:e[s];return i}function G(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function X(e,t,i){if(void 0===i&&(i=!1),!i&&!G(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var s=0;s<t.length;s++)e[s]=X(e[s],t[s]);else if(G(t))for(var s in t)e[s]=X(e[s],t[s]);return e}function V(e,t){Object.defineProperty(e,"toString",{value:t})}function Y(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var J=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,i=0;i<e;i++)t+=this.groupSizes[i];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var i=this.groupSizes,s=i.length,r=s;e>=r;)if((r<<=1)<0)throw Y(16,"".concat(e));this.groupSizes=new Uint32Array(r),this.groupSizes.set(i),this.length=r;for(var n=s;n<r;n++)this.groupSizes[n]=0}for(var o=this.indexOfGroup(e+1),a=(n=0,t.length);n<a;n++)this.tag.insertRule(o,t[n])&&(this.groupSizes[e]++,o++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],i=this.indexOfGroup(e),s=i+t;this.groupSizes[e]=0;for(var r=i;r<s;r++)this.tag.deleteRule(i)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var i=this.groupSizes[e],s=this.indexOfGroup(e),r=s+i,n=s;n<r;n++)t+="".concat(this.tag.getRule(n)).concat("/*!sc*/\n");return t},e}(),Q=new Map,ee=new Map,te=1,ie=function(e){if(Q.has(e))return Q.get(e);for(;ee.has(te);)te++;var t=te++;return Q.set(e,t),ee.set(t,e),t},se=function(e,t){Q.set(e,t),ee.set(t,e)},re="style[".concat(_,"][").concat("data-styled-version",'="').concat("6.1.0",'"]'),ne=new RegExp("^".concat(_,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),oe=function(e,t,i){for(var s,r=i.split(","),n=0,o=r.length;n<o;n++)(s=r[n])&&e.registerName(t,s)},ae=function(e,t){for(var i,s=(null!==(i=t.textContent)&&void 0!==i?i:"").split("/*!sc*/\n"),r=[],n=0,o=s.length;n<o;n++){var a=s[n].trim();if(a){var h=a.match(ne);if(h){var l=0|parseInt(h[1],10),c=h[2];0!==l&&(se(c,l),oe(e,c,h[3]),e.getTag().insertRules(l,r)),r.length=0}else r.push(a)}}};function he(){return i.nc}var le=function(e){var t=document.head,i=e||t,s=document.createElement("style"),r=function(e){var t=Array.from(e.querySelectorAll("style[".concat(_,"]")));return t[t.length-1]}(i),n=void 0!==r?r.nextSibling:null;s.setAttribute(_,"active"),s.setAttribute("data-styled-version","6.1.0");var o=he();return o&&s.setAttribute("nonce",o),i.insertBefore(s,n),s},ce=function(){function e(e){this.element=le(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,i=0,s=t.length;i<s;i++){var r=t[i];if(r.ownerNode===e)return r}throw Y(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),de=function(){function e(e){this.element=le(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var i=document.createTextNode(t);return this.element.insertBefore(i,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),ue=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),_e=f,fe={isServer:!f,useCSSOMInjection:!p},pe=function(){function e(e,t,i){void 0===e&&(e=g),void 0===t&&(t={});var r=this;this.options=(0,s.pi)((0,s.pi)({},fe),e),this.gs=t,this.names=new Map(i),this.server=!!e.isServer,!this.server&&f&&_e&&(_e=!1,function(e){for(var t=document.querySelectorAll(re),i=0,s=t.length;i<s;i++){var r=t[i];r&&"active"!==r.getAttribute(_)&&(ae(e,r),r.parentNode&&r.parentNode.removeChild(r))}}(this)),V(this,(function(){return function(e){for(var t=e.getTag(),i=t.length,s="",r=function(i){var r=function(e){return ee.get(e)}(i);if(void 0===r)return"continue";var n=e.names.get(r),o=t.getGroup(i);if(void 0===n||0===o.length)return"continue";var a="".concat(_,".g").concat(i,'[id="').concat(r,'"]'),h="";void 0!==n&&n.forEach((function(e){e.length>0&&(h+="".concat(e,","))})),s+="".concat(o).concat(a,'{content:"').concat(h,'"}').concat("/*!sc*/\n")},n=0;n<i;n++)r(n);return s}(r)}))}return e.registerId=function(e){return ie(e)},e.prototype.reconstructWithOptions=function(t,i){return void 0===i&&(i=!0),new e((0,s.pi)((0,s.pi)({},this.options),t),this.gs,i&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,i=e.target;return e.isServer?new ue(i):t?new ce(i):new de(i)}(this.options),new J(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(ie(e),this.names.has(e))this.names.get(e).add(t);else{var i=new Set;i.add(t),this.names.set(e,i)}},e.prototype.insertRules=function(e,t,i){this.registerName(e,t),this.getTag().insertRules(ie(e),i)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(ie(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),ve=/&/g,ge=/^\s*\/\/.*$/gm;function me(e,t){return e.map((function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map((function(e){return"".concat(t," ").concat(e)}))),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=me(e.children,t)),e}))}function Se(e){var t,i,s,r=void 0===e?g:e,n=r.options,o=void 0===n?g:n,a=r.plugins,u=void 0===a?v:a,_=function(e,s,r){return r===i||r.startsWith(i)&&r.endsWith(i)&&r.replaceAll(i,"").length>0?".".concat(t):e},f=u.slice();f.push((function(e){e.type===h.Fr&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(ve,i).replace(s,_))})),o.prefix&&f.push(l.Ji),f.push(c.P);var p=function(e,r,n,a){void 0===r&&(r=""),void 0===n&&(n=""),void 0===a&&(a="&"),t=a,i=r,s=new RegExp("\\".concat(i,"\\b"),"g");var h=e.replace(ge,""),u=d.MY(n||r?"".concat(n," ").concat(r," { ").concat(h," }"):h);o.namespace&&(u=me(u,o.namespace));var _=[];return c.q(u,l.qR(f.concat(l.cD((function(e){return _.push(e)}))))),_};return p.hash=u.length?u.reduce((function(e,t){return t.name||Y(15),x(e,t.name)}),5381).toString():"",p}var be=new pe,Ce=Se(),ye=n().createContext({shouldForwardProp:void 0,styleSheet:be,stylis:Ce}),we=(ye.Consumer,n().createContext(void 0));function Ee(){return(0,r.useContext)(ye)}function ke(e){var t=(0,r.useState)(e.stylisPlugins),i=t[0],s=t[1],o=Ee().styleSheet,h=(0,r.useMemo)((function(){var t=o;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target,o]),l=(0,r.useMemo)((function(){return Se({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:i})}),[e.enableVendorPrefixes,e.namespace,i]);(0,r.useEffect)((function(){a()(i,e.stylisPlugins)||s(e.stylisPlugins)}),[e.stylisPlugins]);var c=(0,r.useMemo)((function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:h,stylis:l}}),[e.shouldForwardProp,h,l]);return n().createElement(ye.Provider,{value:c},n().createElement(we.Provider,{value:l},e.children))}var xe=function(){function e(e,t){var i=this;this.inject=function(e,t){void 0===t&&(t=Ce);var s=i.name+t.hash;e.hasNameForId(i.id,s)||e.insertRules(i.id,s,t(i.rules,s,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,V(this,(function(){throw Y(12,String(i.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=Ce),this.name+e.hash},e}(),Ae=function(e){return e>="A"&&e<="Z"};function Re(e){for(var t="",i=0;i<e.length;i++){var s=e[i];if(1===i&&"-"===s&&"-"===e[0])return e;Ae(s)?t+="-"+s.toLowerCase():t+=s}return t.startsWith("ms-")?"-"+t:t}var De=function(e){return null==e||!1===e||""===e},Le=function(e){var t,i,r=[];for(var n in e){var o=e[n];e.hasOwnProperty(n)&&!De(o)&&(Array.isArray(o)&&o.isCss||K(o)?r.push("".concat(Re(n),":"),o,";"):G(o)?r.push.apply(r,(0,s.ev)((0,s.ev)(["".concat(n," {")],Le(o),!1),["}"],!1)):r.push("".concat(Re(n),": ").concat((t=n,null==(i=o)||"boolean"==typeof i||""===i?"":"number"!=typeof i||0===i||t in u.Z||t.startsWith("--")?String(i).trim():"".concat(i,"px")),";")))}return r};function Be(e,t,i,s){return De(e)?[]:z(e)?[".".concat(e.styledComponentId)]:K(e)?!K(r=e)||r.prototype&&r.prototype.isReactComponent||!t?[e]:Be(e(t),t,i,s):e instanceof xe?i?(e.inject(i,s),[e.getName(s)]):[e]:G(e)?Le(e):Array.isArray(e)?Array.prototype.concat.apply(v,e.map((function(e){return Be(e,t,i,s)}))):[e.toString()];var r}function Te(e){for(var t=0;t<e.length;t+=1){var i=e[t];if(K(i)&&!z(i))return!1}return!0}var Ie=A("6.1.0"),Me=function(){function e(e,t,i){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===i||i.isStatic)&&Te(e),this.componentId=t,this.baseHash=x(Ie,t),this.baseStyle=i,pe.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,i){var s=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,i):"";if(this.isStatic&&!i.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))s=q(s,this.staticRulesId);else{var r=Z(Be(this.rules,e,t,i)),n=E(x(this.baseHash,r)>>>0);if(!t.hasNameForId(this.componentId,n)){var o=i(r,".".concat(n),void 0,this.componentId);t.insertRules(this.componentId,n,o)}s=q(s,n),this.staticRulesId=n}else{for(var a=x(this.baseHash,i.hash),h="",l=0;l<this.rules.length;l++){var c=this.rules[l];if("string"==typeof c)h+=c;else if(c){var d=Z(Be(c,e,t,i));a=x(a,d+l),h+=d}}if(h){var u=E(a>>>0);t.hasNameForId(this.componentId,u)||t.insertRules(this.componentId,u,i(h,".".concat(u),void 0,this.componentId)),s=q(s,u)}}return s},e}(),Oe=n().createContext(void 0);Oe.Consumer;var Pe={};function He(e,t,i){var o=z(e),a=e,h=!R(e),l=t.attrs,c=void 0===l?v:l,d=t.componentId,u=void 0===d?function(e,t){var i="string"!=typeof e?"sc":C(e);Pe[i]=(Pe[i]||0)+1;var s="".concat(i,"-").concat(function(e){return E(A(e)>>>0)}("6.1.0"+i+Pe[i]));return t?"".concat(t,"-").concat(s):s}(t.displayName,t.parentComponentId):d,_=(void 0===t.displayName&&function(e){R(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e),t.displayName&&t.componentId?"".concat(C(t.displayName),"-").concat(t.componentId):t.componentId||u),f=o&&a.attrs?a.attrs.concat(c).filter(Boolean):c,p=t.shouldForwardProp;if(o&&a.shouldForwardProp){var S=a.shouldForwardProp;if(t.shouldForwardProp){var b=t.shouldForwardProp;p=function(e,t){return S(e,t)&&b(e,t)}}else p=S}var y=new Me(i,_,o?a.componentStyle:void 0),w=n().forwardRef((function(e,t){return function(e,t,i){var o=e.attrs,a=e.componentStyle,h=e.defaultProps,l=e.foldedComponentIds,c=e.styledComponentId,d=e.target,u=n().useContext(Oe),_=Ee(),f=e.shouldForwardProp||_.shouldForwardProp,p=function(e,t,i){for(var r,n=(0,s.pi)((0,s.pi)({},t),{className:void 0,theme:i}),o=0;o<e.length;o+=1){var a=K(r=e[o])?r(n):r;for(var h in a)n[h]="className"===h?q(n[h],a[h]):"style"===h?(0,s.pi)((0,s.pi)({},n[h]),a[h]):a[h]}return t.className&&(n.className=q(n.className,t.className)),n}(o,t,function(e,t,i){return void 0===i&&(i=g),e.theme!==i.theme&&e.theme||t||i.theme}(t,u,h)||g),v=p.as||d,S={};for(var b in p)void 0===p[b]||"$"===b[0]||"as"===b||"theme"===b||("forwardedAs"===b?S.as=p.forwardedAs:f&&!f(b,v)||(S[b]=p[b]));var C=function(e,t){var i=Ee();return e.generateAndInjectStyles(t,i.styleSheet,i.stylis)}(a,p),y=q(l,c);return C&&(y+=" "+C),p.className&&(y+=" "+p.className),S[R(v)&&!m.has(v)?"class":"className"]=y,S.ref=i,(0,r.createElement)(v,S)}(w,e,t)}));return w.attrs=f,w.componentStyle=y,w.shouldForwardProp=p,w.foldedComponentIds=o?q(a.foldedComponentIds,a.styledComponentId):"",w.styledComponentId=_,w.target=o?a.target:e,Object.defineProperty(w,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=o?function(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];for(var s=0,r=t;s<r.length;s++)X(e,r[s],!0);return e}({},a.defaultProps,e):e}}),V(w,(function(){return".".concat(w.styledComponentId)})),h&&j(w,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),w}function Fe(e,t){for(var i=[e[0]],s=0,r=t.length;s<r;s+=1)i.push(t[s],e[s+1]);return i}new Set;var Ne=function(e){return Object.assign(e,{isCss:!0})};function $e(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];if(K(e)||G(e)){var r=e;return Ne(Be(Fe(v,(0,s.ev)([r],t,!0))))}var n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?Be(n):Ne(Be(Fe(n,t)))}function Ue(e,t,i){if(void 0===i&&(i=g),!t)throw Y(1,t);var r=function(r){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];return e(t,i,$e.apply(void 0,(0,s.ev)([r],n,!1)))};return r.attrs=function(r){return Ue(e,t,(0,s.pi)((0,s.pi)({},i),{attrs:Array.prototype.concat(i.attrs,r).filter(Boolean)}))},r.withConfig=function(r){return Ue(e,t,(0,s.pi)((0,s.pi)({},i),r))},r}var We=function(e){return Ue(He,e)},je=We;m.forEach((function(e){je[e]=We(e)})),function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Te(e),pe.registerId(this.componentId+1)}e.prototype.createStyles=function(e,t,i,s){var r=s(Z(Be(this.rules,t,i,s)),""),n=this.componentId+e;i.insertRules(n,n,r)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,i,s){e>2&&pe.registerId(this.componentId+e),this.removeStyles(e,i),this.createStyles(e,t,i,s)}}(),function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString(),i=he(),s=Z([i&&'nonce="'.concat(i,'"'),"".concat(_,'="true"'),"".concat("data-styled-version",'="').concat("6.1.0",'"')].filter(Boolean)," ");return"<style ".concat(s,">").concat(t,"</style>")},this.getStyleTags=function(){if(e.sealed)throw Y(2);return e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)throw Y(2);var i=((t={})[_]="",t["data-styled-version"]="6.1.0",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),r=he();return r&&(i.nonce=r),[n().createElement("style",(0,s.pi)({},i,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new pe({isServer:!0}),this.sealed=!1}e.prototype.collectStyles=function(e){if(this.sealed)throw Y(2);return n().createElement(ke,{sheet:this.instance},e)},e.prototype.interleaveWithNodeStream=function(e){throw Y(3)}}(),"__sc-".concat(_,"__")},509:(e,t,i)=>{"use strict";i.d(t,{Z:()=>h});var s=i(639),r=i.n(s),n=i(893),o=i(518);n.ZP.div`
|
|
2
2
|
display:block;
|
|
3
3
|
text-align:center;
|
|
4
4
|
`,n.ZP.div`
|