From 1a64774011ddbba08d4cd0b6a3cd608d3656bd42 Mon Sep 17 00:00:00 2001 From: pkova Date: Sat, 24 Aug 2019 19:40:19 +0300 Subject: [PATCH] chat: update sidebar timestamp every minute --- pkg/arvo/app/chat/js/index.js | 2 +- pkg/arvo/app/chat/js/tile.js | 2 +- .../src/js/components/lib/sidebar-item.js | 31 +++++++++++++++++-- .../chat/src/js/components/sidebar.js | 10 ++---- 4 files changed, 33 insertions(+), 12 deletions(-) diff --git a/pkg/arvo/app/chat/js/index.js b/pkg/arvo/app/chat/js/index.js index 9f310c774..b9bcf4a41 100644 --- a/pkg/arvo/app/chat/js/index.js +++ b/pkg/arvo/app/chat/js/index.js @@ -1 +1 @@ -!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(require("buffer")):"function"==typeof define&&define.amd?define("index",["buffer"],t):t((e=e||self).buffer)}(this,function(e){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e;var t="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};t.setTimeout,t.clearTimeout;var n=t.performance||{},r=(n.now||n.mozNow||n.msNow||n.oNow||n.webkitNow,"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{});function i(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function a(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function l(e,t){return e(t={exports:{}},t.exports),t.exports}var o=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable;var u=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,r,i=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),a=1;a2?n-2:0),i=2;i1?t-1:0),r=1;r2?n-2:0),i=2;i8)throw new Error("warningWithoutStack() currently supports at most 8 arguments.");if(!e){if("undefined"!=typeof console){var a=r.map(function(e){return""+e});a.unshift("Warning: "+t),Function.prototype.apply.call(console.error,console,a)}try{var l=0,o="Warning: "+t.replace(/%s/g,function(){return r[l++]});throw new Error(o)}catch(e){}}},M={};function S(e,t){var n=e.constructor,r=n&&(n.displayName||n.name)||"ReactClass",i=r+"."+t;M[i]||(_(!1,"Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",t,r),M[i]=!0)}var T={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,n){S(e,"forceUpdate")},enqueueReplaceState:function(e,t,n,r){S(e,"replaceState")},enqueueSetState:function(e,t,n,r){S(e,"setState")}},E={};function P(e,t,n){this.props=e,this.context=t,this.refs=E,this.updater=n||T}Object.freeze(E),P.prototype.isReactComponent={},P.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e&&w(!1,"setState(...): takes an object of state variables to update or a function which returns an object of state variables."),this.updater.enqueueSetState(this,e,t,"setState")},P.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var N={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},R=function(e,t){Object.defineProperty(P.prototype,e,{get:function(){x(!1,"%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})};for(var L in N)N.hasOwnProperty(L)&&R(L,N[L]);function O(){}function D(e,t,n){this.props=e,this.context=t,this.refs=E,this.updater=n||T}O.prototype=P.prototype;var A=D.prototype=new O;A.constructor=D,t(A,P.prototype),A.isPureReactComponent=!0;var I={current:null},U={current:null},j=/^(.*)[\\\/]/,H=1;function z(e){if(null==e)return null;if("number"==typeof e.tag&&_(!1,"Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case d:return"ConcurrentMode";case l:return"Fragment";case a:return"Portal";case s:return"Profiler";case o:return"StrictMode";case p:return"Suspense"}if("object"==typeof e)switch(e.$$typeof){case f:return"Context.Consumer";case c:return"Context.Provider";case h:return r=e,i=e.render,u="ForwardRef",g=i.displayName||i.name||"",r.displayName||(""!==g?u+"("+g+")":u);case m:return z(e.type);case v:var t=(n=e)._status===H?n._result:null;if(t)return z(t)}var n,r,i,u,g;return null}var Z={},F=null;function W(e){F=e}Z.getCurrentStack=null,Z.getStackAddendum=function(){var e="";if(F){var t=z(F.type),n=F._owner;e+=function(e,t,n){var r="";if(t){var i=t.fileName,a=i.replace(j,"");if(/^index\./.test(a)){var l=i.match(j);if(l){var o=l[1];o&&(a=o.replace(j,"")+"/"+a)}}r=" (at "+a+":"+t.lineNumber+")"}else n&&(r=" (created by "+n+")");return"\n in "+(e||"Unknown")+r}(t,F._source,n&&z(n.type))}var r=Z.getCurrentStack;return r&&(e+=r()||""),e};var V={ReactCurrentDispatcher:I,ReactCurrentOwner:U,assign:t};t(V,{ReactDebugCurrentFrame:Z,ReactComponentTreeHook:{}});var q=function(e,t){if(!e){for(var n=V.ReactDebugCurrentFrame.getStackAddendum(),r=arguments.length,i=Array(r>2?r-2:0),a=2;a1){for(var u=Array(c),f=0;f.")}return t}(t);if(!ye[n]){ye[n]=!0;var r="";e&&e._owner&&e._owner!==U.current&&(r=" It was passed a child from "+z(e._owner.type)+"."),W(e),q(!1,'Each child in a list should have a unique "key" prop.%s%s See https://fb.me/react-warning-keys for more information.',n,r),W(null)}}}function we(e,t){if("object"==typeof e)if(Array.isArray(e))for(var n=0;n",a=" Did you accidentally export a JSX literal instead of a component?"):s=typeof e,q(!1,"React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",s,a)}var c=J.apply(this,arguments);if(null==c)return c;if(r)for(var u=2;u is not supported and will be removed in a future major release. Did you mean to render instead?")),n.Provider},set:function(e){n.Provider=e}},_currentValue:{get:function(){return n._currentValue},set:function(e){n._currentValue=e}},_currentValue2:{get:function(){return n._currentValue2},set:function(e){n._currentValue2=e}},_threadCount:{get:function(){return n._threadCount},set:function(e){n._threadCount=e}},Consumer:{get:function(){return r||(r=!0,q(!1,"Rendering is not supported and will be removed in a future major release. Did you mean to render instead?")),n.Consumer}}}),n.Consumer=a,n._currentRenderer=null,n._currentRenderer2=null,n},forwardRef:function(e){return null!=e&&e.$$typeof===m?_(!1,"forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof e?_(!1,"forwardRef requires a render function but was given %s.",null===e?"null":typeof e):0!==e.length&&2!==e.length&&_(!1,"forwardRef render functions accept exactly two parameters: props and ref. %s",1===e.length?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),null!=e&&(null!=e.defaultProps||null!=e.propTypes)&&_(!1,"forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"),{$$typeof:h,render:e}},lazy:function(e){var t={$$typeof:v,_ctor:e,_status:-1,_result:null},n=void 0,r=void 0;return Object.defineProperties(t,{defaultProps:{configurable:!0,get:function(){return n},set:function(e){q(!1,"React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),n=e,Object.defineProperty(t,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return r},set:function(e){q(!1,"React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),r=e,Object.defineProperty(t,"propTypes",{enumerable:!0})}}}),t},memo:function(e,t){return me(e)||_(!1,"memo: The first argument must be a component. Instead received: %s",null===e?"null":typeof e),{$$typeof:m,type:e,compare:void 0===t?null:t}},useCallback:function(e,t){return ve().useCallback(e,t)},useContext:function(e,t){var n=ve();if(void 0!==t&&q(!1,"useContext() second argument is reserved for future use in React. Passing it is not supported. You passed: %s.%s",t,"number"==typeof t&&Array.isArray(arguments[2])?"\n\nDid you call array.map(useContext)? Calling Hooks inside a loop is not supported. Learn more at https://fb.me/rules-of-hooks":""),void 0!==e._context){var r=e._context;r.Consumer===e?q(!1,"Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):r.Provider===e&&q(!1,"Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return n.useContext(e,t)},useEffect:function(e,t){return ve().useEffect(e,t)},useImperativeHandle:function(e,t,n){return ve().useImperativeHandle(e,t,n)},useDebugValue:function(e,t){return ve().useDebugValue(e,t)},useLayoutEffect:function(e,t){return ve().useLayoutEffect(e,t)},useMemo:function(e,t){return ve().useMemo(e,t)},useReducer:function(e,t,n){return ve().useReducer(e,t,n)},useRef:function(e){return ve().useRef(e)},useState:function(e){return ve().useState(e)},Fragment:l,StrictMode:o,Suspense:p,createElement:_e,cloneElement:function(e,n,r){for(var i=function(e,n,r){null==e&&w(!1,"React.cloneElement(...): The argument must be a React element, but you passed %s.",e);var i=void 0,a=t({},e.props),l=e.key,o=e.ref,s=e._self,c=e._source,u=e._owner;if(null!=n){Q(n)&&(o=n.ref,u=U.current),K(n)&&(l=""+n.key);var f=void 0;for(i in e.type&&e.type.defaultProps&&(f=e.type.defaultProps),n)Y.call(n,i)&&!B.hasOwnProperty(i)&&(void 0===n[i]&&void 0!==f?a[i]=f[i]:a[i]=n[i])}var d=arguments.length-2;if(1===d)a.children=r;else if(d>1){for(var h=Array(d),p=0;p=t){r=e;break}e=e.next}while(e!==n);null===r?r=n:r===n&&(n=s,u()),(t=r.previous).next=r.previous=s,s.next=r,s.previous=t}}function d(){if(-1===l&&null!==n&&1===n.priorityLevel){s=!0;try{do{f()}while(null!==n&&1===n.priorityLevel)}finally{s=!1,null!==n?u():c=!1}}}function h(e){s=!0;var r=i;i=e;try{if(e)for(;null!==n;){var a=t.unstable_now();if(!(n.expirationTime<=a))break;do{f()}while(null!==n&&n.expirationTime<=a)}else if(null!==n)do{f()}while(null!==n&&!M())}finally{s=!1,i=r,null!==n?u():c=!1,d()}}var p,m,v=Date,g="function"==typeof setTimeout?setTimeout:void 0,b="function"==typeof clearTimeout?clearTimeout:void 0,y="function"==typeof requestAnimationFrame?requestAnimationFrame:void 0,k="function"==typeof cancelAnimationFrame?cancelAnimationFrame:void 0;function w(e){p=y(function(t){b(m),e(t)}),m=g(function(){k(p),e(t.unstable_now())},100)}if("object"==typeof performance&&"function"==typeof performance.now){var x=performance;t.unstable_now=function(){return x.now()}}else t.unstable_now=function(){return v.now()};var _,C,M,S=null;if("undefined"!=typeof window?S=window:void 0!==r&&(S=r),S&&S._schedMock){var T=S._schedMock;_=T[0],C=T[1],M=T[2],t.unstable_now=T[3]}else if("undefined"==typeof window||"function"!=typeof MessageChannel){var E=null,P=function(e){if(null!==E)try{E(e)}finally{E=null}};_=function(e){null!==E?setTimeout(_,0,e):(E=e,setTimeout(P,0,!1))},C=function(){E=null},M=function(){return!1}}else{"undefined"!=typeof console&&("function"!=typeof y&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof k&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"));var N=null,R=!1,L=-1,O=!1,D=!1,A=0,I=33,U=33;M=function(){return A<=t.unstable_now()};var j=new MessageChannel,H=j.port2;j.port1.onmessage=function(){R=!1;var e=N,n=L;N=null,L=-1;var r=t.unstable_now(),i=!1;if(0>=A-r){if(!(-1!==n&&n<=r))return O||(O=!0,w(z)),N=e,void(L=n);i=!0}if(null!==e){D=!0;try{e(i)}finally{D=!1}}};var z=function(e){if(null!==N){w(z);var t=e-A+U;tt&&(t=8),U=tt?H.postMessage(void 0):O||(O=!0,w(z))},C=function(){N=null,R=!1,L=-1}}t.unstable_ImmediatePriority=1,t.unstable_UserBlockingPriority=2,t.unstable_NormalPriority=3,t.unstable_IdlePriority=5,t.unstable_LowPriority=4,t.unstable_runWithPriority=function(e,n){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=a,i=l;a=e,l=t.unstable_now();try{return n()}finally{a=r,l=i,d()}},t.unstable_next=function(e){switch(a){case 1:case 2:case 3:var n=3;break;default:n=a}var r=a,i=l;a=n,l=t.unstable_now();try{return e()}finally{a=r,l=i,d()}},t.unstable_scheduleCallback=function(e,r){var i=-1!==l?l:t.unstable_now();if("object"==typeof r&&null!==r&&"number"==typeof r.timeout)r=i+r.timeout;else switch(a){case 1:r=i+-1;break;case 2:r=i+250;break;case 5:r=i+1073741823;break;case 4:r=i+1e4;break;default:r=i+5e3}if(e={callback:e,priorityLevel:a,expirationTime:r,next:null,previous:null},null===n)n=e.next=e.previous=e,u();else{i=null;var o=n;do{if(o.expirationTime>r){i=o;break}o=o.next}while(o!==n);null===i?i=n:i===n&&(n=e,u()),(r=i.previous).next=i.previous=e,e.next=i,e.previous=r}return e},t.unstable_cancelCallback=function(e){var t=e.next;if(null!==t){if(t===e)n=null;else{e===n&&(n=t);var r=e.previous;r.next=t,t.previous=r}e.next=e.previous=null}},t.unstable_wrapCallback=function(e){var n=a;return function(){var r=a,i=l;a=n,l=t.unstable_now();try{return e.apply(this,arguments)}finally{a=r,l=i,d()}}},t.unstable_getCurrentPriorityLevel=function(){return a},t.unstable_shouldYield=function(){return!i&&(null!==n&&n.expirationTime=a){u=f;break}f=f.next}while(f!==h);null===u?u=h:u===h&&(h=c,x());var d=u.previous;d.next=u.previous=c,c.next=u,c.previous=d}}}function C(){if(-1===g&&null!==h&&h.priorityLevel===n){y=!0;try{do{_()}while(null!==h&&h.priorityLevel===n)}finally{y=!1,null!==h?x():k=!1}}}function M(n){y=!0;var r=p;p=n;try{if(n)for(;!(null===h||e&&m);){var i=t.unstable_now();if(!(h.expirationTime<=i))break;do{_()}while(null!==h&&h.expirationTime<=i&&(!e||!m))}else if(null!==h)do{if(e&&m)break;_()}while(null!==h&&!N())}finally{y=!1,p=r,null!==h?x():k=!1,C()}}var S,T,E,P,N,R=Date,L="function"==typeof setTimeout?setTimeout:void 0,O="function"==typeof clearTimeout?clearTimeout:void 0,D="function"==typeof requestAnimationFrame?requestAnimationFrame:void 0,A="function"==typeof cancelAnimationFrame?cancelAnimationFrame:void 0,I=function(e){S=D(function(t){O(T),e(t)}),T=L(function(){A(S),e(t.unstable_now())},100)};if(w){var U=performance;t.unstable_now=function(){return U.now()}}else t.unstable_now=function(){return R.now()};var j=null;if("undefined"!=typeof window?j=window:void 0!==r&&(j=r),j&&j._schedMock){var H=j._schedMock;E=H[0],P=H[1],N=H[2],t.unstable_now=H[3]}else if("undefined"==typeof window||"function"!=typeof MessageChannel){var z=null,Z=function(e){if(null!==z)try{z(e)}finally{z=null}};E=function(e,t){null!==z?setTimeout(E,0,e):(z=e,setTimeout(Z,0,!1))},P=function(){z=null},N=function(){return!1}}else{"undefined"!=typeof console&&("function"!=typeof D&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof A&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"));var F=null,W=!1,V=-1,q=!1,Y=!1,B=0,$=33,G=33;N=function(){return B<=t.unstable_now()};var Q=new MessageChannel,K=Q.port2;Q.port1.onmessage=function(e){W=!1;var n=F,r=V;F=null,V=-1;var i=t.unstable_now(),a=!1;if(B-i<=0){if(!(-1!==r&&r<=i))return q||(q=!0,I(X)),F=n,void(V=r);a=!0}if(null!==n){Y=!0;try{n(a)}finally{Y=!1}}};var X=function(e){if(null!==F){I(X);var t=e-B+G;tp){y=k;break}k=k.next}while(k!==h);null===y?y=h:y===h&&(h=b,x());var w=y.previous;w.next=y.previous=b,b.next=y,b.previous=w}return b},t.unstable_cancelCallback=function(e){var t=e.next;if(null!==t){if(t===e)h=null;else{e===h&&(h=t);var n=e.previous;n.next=t,t.previous=n}e.next=e.previous=null}},t.unstable_wrapCallback=function(e){var n=v;return function(){var r=v,i=g;v=n,g=t.unstable_now();try{return e.apply(this,arguments)}finally{v=r,g=i,C()}}},t.unstable_getCurrentPriorityLevel=function(){return v},t.unstable_shouldYield=function(){return!p&&(null!==h&&h.expirationTimethis.eventPool.length&&this.eventPool.push(e)}function Ae(e){e.eventPool=[],e.getPooled=Oe,e.release=De}u(Le.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Ne)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Ne)},persist:function(){this.isPersistent=Ne},isPersistent:Re,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=Re,this._dispatchInstances=this._dispatchListeners=null}}),Le.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},Le.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var i=new t;return u(i,n.prototype),n.prototype=i,n.prototype.constructor=n,n.Interface=u({},r.Interface,e),n.extend=r.extend,Ae(n),n},Ae(Le);var Ie=Le.extend({data:null}),Ue=Le.extend({data:null}),je=[9,13,27,32],He=me&&"CompositionEvent"in window,ze=null;me&&"documentMode"in document&&(ze=document.documentMode);var Ze=me&&"TextEvent"in window&&!ze,Fe=me&&(!He||ze&&8=ze),We=String.fromCharCode(32),Ve={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},qe=!1;function Ye(e,t){switch(e){case"keyup":return-1!==je.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function Be(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var $e=!1;var Ge={eventTypes:Ve,extractEvents:function(e,t,n,r){var i=void 0,a=void 0;if(He)e:{switch(e){case"compositionstart":i=Ve.compositionStart;break e;case"compositionend":i=Ve.compositionEnd;break e;case"compositionupdate":i=Ve.compositionUpdate;break e}i=void 0}else $e?Ye(e,n)&&(i=Ve.compositionEnd):"keydown"===e&&229===n.keyCode&&(i=Ve.compositionStart);return i?(Fe&&"ko"!==n.locale&&($e||i!==Ve.compositionStart?i===Ve.compositionEnd&&$e&&(a=Pe()):(Te="value"in(Se=r)?Se.value:Se.textContent,$e=!0)),i=Ie.getPooled(i,t,n,r),a?i.data=a:null!==(a=Be(n))&&(i.data=a),pe(i),a=i):a=null,(e=Ze?function(e,t){switch(e){case"compositionend":return Be(t);case"keypress":return 32!==t.which?null:(qe=!0,We);case"textInput":return(e=t.data)===We&&qe?null:e;default:return null}}(e,n):function(e,t){if($e)return"compositionend"===e||!He&&Ye(e,t)?(e=Pe(),Ee=Te=Se=null,$e=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1