yavsc/Yavsc/wwwroot/js/jquery.signalR-2.2.1.min.js

1 line
36 KiB
JavaScript

7 years ago
!function(p,g,e){var f={nojQuery:"jQuery was not found. Please ensure jQuery is referenced before the SignalR client JavaScript file.",noTransportOnInit:"No transport could be initialized successfully. Try specifying a different transport or none at all for auto initialization.",errorOnNegotiate:"Error during negotiation request.",stoppedWhileLoading:"The connection was stopped during page load.",stoppedWhileNegotiating:"The connection was stopped during the negotiate request.",errorParsingNegotiateResponse:"Error parsing negotiate response.",errorDuringStartRequest:"Error during start request. Stopping the connection.",stoppedDuringStartRequest:"The connection was stopped during the start request.",errorParsingStartResponse:"Error parsing start response: '{0}'. Stopping the connection.",invalidStartResponse:"Invalid start response: '{0}'. Stopping the connection.",protocolIncompatible:"You are using a version of the client that isn't compatible with the server. Client version {0}, server version {1}.",sendFailed:"Send failed.",parseFailed:"Failed at parsing response: {0}",longPollFailed:"Long polling request failed.",eventSourceFailedToConnect:"EventSource failed to connect.",eventSourceError:"Error raised by EventSource",webSocketClosed:"WebSocket closed.",pingServerFailedInvalidResponse:"Invalid ping response when pinging server: '{0}'.",pingServerFailed:"Failed to ping server.",pingServerFailedStatusCode:"Failed to ping server. Server responded with status code {0}, stopping the connection.",pingServerFailedParse:"Failed to parse ping server response, stopping the connection.",noConnectionTransport:"Connection is in an invalid state, there is no transport active.",webSocketsInvalidState:"The Web Socket transport is in an invalid state, transitioning into reconnecting.",reconnectTimeout:"Couldn't reconnect within the configured timeout of {0} ms, disconnecting.",reconnectWindowTimeout:"The client has been inactive since {0} and it has exceeded the inactivity timeout of {1} ms. Stopping the connection."};if("function"!=typeof p)throw new Error(f.nojQuery);var v,t,n,o,m="complete"===g.document.readyState,h=p(g),S="__Negotiate Aborted__",b={onStart:"onStart",onStarting:"onStarting",onReceived:"onReceived",onError:"onError",onConnectionSlow:"onConnectionSlow",onReconnecting:"onReconnecting",onReconnect:"onReconnect",onStateChanged:"onStateChanged",onDisconnect:"onDisconnect"},_=function(e,t,n){return t===e.state&&(e.state=n,p(e).triggerHandler(b.onStateChanged,[{oldState:t,newState:n}]),!0)},T=function(e){return e._.keepAliveData.activated&&e.transport.supportsKeepAlive(e)};function r(e,t){return t.match(/:\d+$/)?t:t+":"+("http:"===(n=e)?80:"https:"===n?443:void 0);var n}(v=function(e,t,n){return new v.fn.init(e,t,n)})._={defaultContentType:"application/x-www-form-urlencoded; charset=UTF-8",ieVersion:("Microsoft Internet Explorer"===g.navigator.appName&&(o=/MSIE ([0-9]+\.[0-9]+)/.exec(g.navigator.userAgent))&&(n=g.parseFloat(o[1])),n),error:function(e,t,n){var o=new Error(e);return o.source=t,void 0!==n&&(o.context=n),o},transportError:function(e,t,n,o){var r=this.error(e,n,o);return r.transport=t?t.name:void 0,r},format:function(){for(var e=arguments[0],t=0;t<arguments.length-1;t++)e=e.replace("{"+t+"}",arguments[t+1]);return e},firefoxMajorVersion:function(e){var t=e.match(/Firefox\/(\d+)/);return!t||!t.length||t.length<2?0:parseInt(t[1],10)},configurePingInterval:function(t){var e=t._.config,n=function(e){p(t).triggerHandler(b.onError,[e])};e&&!t._.pingIntervalId&&e.pingInterval&&(t._.pingIntervalId=g.setInterval(function(){v.transports._logic.pingServer(t).fail(n)},e.pingInterval))}},v.events=b,v.resources=f,v.ajaxDefaults={processData:!0,timeout:null,async:!0,global:!1,cache:!1},v.changeState=_,v.isDisconnecting=function(e){return e.state===v.connectionState.disconnected},v.connectionState={connecting:0,connected:1,reconnecting:2,disconnected:4},v.hub={start:function(){throw new Error("SignalR: Error loading hubs. Ensure your hubs reference is correct, e.g. <script src='/signalr/js'><\/script>.")}},"function"==type