config.maxReconnectionDelay)?config.maxReconnectionDelay:newDelay;};var LEVEL_0_EVENTS=['onopen','onclose','onmessage','onerror'];var reassignEventListeners=function(ws,oldWs,listeners){Object.keys(listeners).forEach(function(type){listeners[type].forEach(function(_a){var listener=_a[0],options=_a[1];ws.addEventListener(type,listener,options);});});if(oldWs){LEVEL_0_EVENTS.forEach(function(name){ws[name]=oldWs[name];});}};var ReconnectingWebsocket=function(url,protocols,options){var _this=this;if(options===void 0){options={};}
var ws;var connectingTimeout;var reconnectDelay=0;var retriesCount=0;var shouldRetry=true;var savedOnClose=null;var listeners={};if(!(this instanceof ReconnectingWebsocket)){throw new TypeError("Failed to construct 'ReconnectingWebSocket': Please use the 'new' operator");}
var config=getDefaultOptions();Object.keys(config).filter(function(key){return options.hasOwnProperty(key);}).forEach(function(key){return config[key]=options[key];});if(!isWebSocket(config.constructor)){throw new TypeError('Invalid WebSocket constructor. Set `options.constructor`');}
var log=config.debug?function(){var params=[];for(var _i=0;_iconfig.maxRetries){emitError('EHOSTDOWN','Too many failed connection attempts');return;}
if(!reconnectDelay){reconnectDelay=initReconnectionDelay(config);}
else{reconnectDelay=updateReconnectionDelay(config,reconnectDelay);}
log('reconnectDelay:',reconnectDelay);if(shouldRetry){setTimeout(connect,reconnectDelay);}};var connect=function(){log('connect');var oldWs=ws;ws=new config.constructor(url,protocols);connectingTimeout=setTimeout(function(){log('timeout');ws.close();emitError('ETIMEDOUT','Connection timeout');},config.connectionTimeout);log('bypass properties');for(var key in ws){if(['addEventListener','removeEventListener','close','send'].indexOf(key)<0){bypassProperty(ws,_this,key);}}
ws.addEventListener('open',function(){clearTimeout(connectingTimeout);log('open');reconnectDelay=initReconnectionDelay(config);log('reconnectDelay:',reconnectDelay);retriesCount=0;});ws.addEventListener('close',handleClose);reassignEventListeners(ws,oldWs,listeners);ws.onclose=ws.onclose||savedOnClose;savedOnClose=null;};log('init');connect();this.close=function(code,reason,_a){if(code===void 0){code=1000;}
if(reason===void 0){reason='';}
var _b=_a===void 0?{}:_a,_c=_b.keepClosed,keepClosed=_c===void 0?false:_c,_d=_b.fastClose,fastClose=_d===void 0?true:_d,_e=_b.delay,delay=_e===void 0?0:_e;if(delay){reconnectDelay=delay;}
shouldRetry=!keepClosed;ws.close(code,reason);if(fastClose){var fakeCloseEvent_1={code:code,reason:reason,wasClean:true,};handleClose();ws.removeEventListener('close',handleClose);if(Array.isArray(listeners.close)){listeners.close.forEach(function(_a){var listener=_a[0],options=_a[1];listener(fakeCloseEvent_1);ws.removeEventListener('close',listener,options);});}
if(ws.onclose){savedOnClose=ws.onclose;ws.onclose(fakeCloseEvent_1);ws.onclose=null;}}};this.send=function(data){ws.send(data);};this.addEventListener=function(type,listener,options){if(Array.isArray(listeners[type])){if(!listeners[type].some(function(_a){var l=_a[0];return l===listener;})){listeners[type].push([listener,options]);}}
else{listeners[type]=[[listener,options]];}
ws.addEventListener(type,listener,options);};this.removeEventListener=function(type,listener,options){if(Array.isArray(listeners[type])){listeners[type]=listeners[type].filter(function(_a){var l=_a[0];return l!==listener;});}
ws.removeEventListener(type,listener,options);};};module.exports=ReconnectingWebsocket;},{}],2:[function(require,module,exports){'use strict';Object.defineProperty(exports,"__esModule",{value:true});exports.WebSocketBridge=undefined;var _extends=Object.assign||function(target){for(var i=1;iconfig.showChars+config.minHideChars){var c=content.substr(0,config.showChars);if(c.indexOf('<')>=0)
{var inTag=false;var bag='';var countChars=0;var openTags=[];var tagName=null;for(var i=0,r=0;r<=config.showChars;i++){if(content[i]=='<'&&!inTag){inTag=true;tagName=content.substring(i+1,content.indexOf('>',i));if(tagName[0]=='/'){if(tagName!='/'+openTags[0]){config.errMsg='ERROR en HTML: the top of the stack should be the tag that closes';}else{openTags.shift();}}else{if(tagName.toLowerCase()!='br'){openTags.unshift(tagName);}}}
if(inTag&&content[i]=='>'){inTag=false;}
if(inTag){bag+=content.charAt(i);}
else{r++;if(countChars<=config.showChars){bag+=content.charAt(i);countChars++;}else
{if(openTags.length>0)
{for(j=0;j';}
break;}}}}
c=$('').html(bag+''+config.ellipsesText+'').html();}else{c+=config.ellipsesText;}
var html='
mysqli_select_db($con,"my_2db"); //选择操作库
$query='SELECT password FROM user WHERE account='.$account;//定义sql查询语句
$result=mysqli_query($con,$query); //发送sql查询
if($obj=mysqli_fetch_object($result))//取查询完的结果