ASP.NET JavaScriptError

yunhyejeong

Well-known member
Joined
Dec 5, 2021
Messages
135
Programming Experience
1-3
An error occurred. ASP.NET

window.open('../QualityMgt/Qua27.aspx' + sParams, "_blank"); ====> When I run this code, the following error occurs.

Please Help Me.

qes.png



eq.png

eq.png

C#:
* ASP.NET SignalR JavaScript Library v2.0.2; Copyright (C) Microsoft Corporation; https://github.com/SignalR/SignalR/blob/master/LICENSE.md
 *
 * NUGET: END LICENSE TEXT */
/*!
 * ASP.NET SignalR JavaScript Library v2.0.2
 * http://signalr.net/
 *
 * Copyright (C) Microsoft Corporation. All rights reserved.
 *
 */
(function(n,t,i){"use strict";function p(t,i){var u,f;if(n.isArray(t)){for(u=t.length-1;u>=0;u--)f=t[u],n.type(f)==="string"&&r.transports[f]||(i.log("Invalid transport: "+f+", removing it from the transports list."),t.splice(u,1));t.length===0&&(i.log("No transports remain within the specified transport array."),t=null)}else if(r.transports[t]||t==="auto"){if(t==="auto"&&r._.ieVersion<=8)return["longPolling"]}else i.log("Invalid transport: "+t.toString()+"."),t=null;return t}function w(n){return n==="http:"?80:n==="https:"?443:void 0}function l(n,t){return t.match(/:\d+$/)?t:t+":"+w(n)}function b(t,i){var u=this,r=[];u.tryBuffer=function(i){return t.state===n.signalR.connectionState.connecting?(r.push(i),!0):!1};u.drain=function(){if(t.state===n.signalR.connectionState.connected)while(r.length>0)i(r.shift())};u.clear=function(){r=[]}}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.",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."};if(typeof n!="function")throw new Error(f.nojQuery);var r,h,s=t.document.readyState==="complete",e=n(t),c="__Negotiate Aborted__",u={onStart:"onStart",onStarting:"onStarting",onReceived:"onReceived",onError:"onError",onConnectionSlow:"onConnectionSlow",onReconnecting:"onReconnecting",onReconnect:"onReconnect",onStateChanged:"onStateChanged",onDisconnect:"onDisconnect"},a=function(n,i){if(i!==!1){var r;typeof t.console!="undefined"&&(r="["+(new Date).toTimeString()+"] SignalR: "+n,t.console.debug?t.console.debug(r):t.console.log&&t.console.log(r))}},o=function(t,i,r){return i===t.state?(t.state=r,n(t).triggerHandler(u.onStateChanged,[{oldState:i,newState:r}]),!0):!1},v=function(n){return n.state===r.connectionState.disconnected},y=function(n){var i,u;n._.configuredStopReconnectingTimeout||(u=function(n){n.log("Couldn't reconnect within the configured timeout ("+n.disconnectTimeout+"ms), disconnecting.");n.stop(!1,!1)},n.reconnecting(function(){var n=this;n.state===r.connectionState.reconnecting&&(i=t.setTimeout(function(){u(n)},n.disconnectTimeout))}),n.stateChanged(function(n){n.oldState===r.connectionState.reconnecting&&t.clearTimeout(i)}),n._.configuredStopReconnectingTimeout=!0)};r=function(n,t,i){return new r.fn.init(n,t,i)};r._={defaultContentType:"application/x-www-form-urlencoded; charset=UTF-8",ieVersion:function(){var i,n;return t.navigator.appName==="Microsoft Internet Explorer"&&(n=/MSIE ([0-9]+\.[0-9]+)/.exec(t.navigator.userAgent),n&&(i=t.parseFloat(n[1]))),i}(),error:function(n,t,i){var r=new Error(n);return r.source=t,typeof i!="undefined"&&(r.context=i),r},transportError:function(n,t,r,u){var f=this.error(n,r,u);return f.transport=t?t.name:i,f},format:function(){for(var t=arguments[0],n=0;n<arguments.length-1;n++)t=t.replace("{"+n+"}",arguments[n+1]);return t},firefoxMajorVersion:function(n){var t=n.match(/Firefox\/(\d+)/);return!t||!t.length||t.length<2?0:parseInt(t[1],10)},configurePingInterval:function(i){var f=i._.config,e=function(t){n(i).triggerHandler(u.onError,[t])};f&&!i._.pingIntervalId&&f.pingInterval&&(i._.pingIntervalId=t.setInterval(function(){r.transports._logic.pingServer(i).fail(e)},f.pingInterval))}};r.events=u;r.resources=f;r.ajaxDefaults={processData:!0,timeout:null,async:!0,global:!1,cache:!1};r.changeState=o;r.isDisconnecting=v;r.connectionState={connecting:0,connected:1,reconnecting:2,disconnected:4};r.hub={start:function(){throw new Error("SignalR: Error loading hubs. Ensure your hubs reference is correct, e.g. <script src='/signalr/js'><\/script>.");}};e.load(function(){s=!0});r.fn=r.prototype={init:function(t,i,r){var f=n(this);this.url=t;this.qs=i;this._={keepAliveData:{},connectingMessageBuffer:new b(this,function(n){f.triggerHandler(u.onReceived,[n])}),onFailedTimeoutHandle:null,lastMessageAt:(new Date).getTime(),lastActiveAt:(new Date).getTime(),beatInterval:5e3,beatHandle:null};typeof r=="boolean"&&(this.logging=r)},_parseResponse:function(n){var t=this;return n?typeof n=="string"?t.json.parse(n):n:n},json:t.JSON,isCrossDomain:function(i,r){var u;return(i=n.trim(i),r=r||t.location,i.indexOf("http")!==0)?!1:(u=t.document.createElement("a"),u.href=i,u.protocol+l(u.protocol,u.host)!==r.protocol+l(r.protocol,r.host))},ajaxDataType:"text",contentType:"application/json; charset=UTF-8",logging:!1,state:r.connectionState.disconnected,clientProtocol:"1.3",reconnectDelay:2e3,transportConnectTimeout:0,disconnectTimeout:3e4,reconnectWindow:3e4,keepAliveWarnAt:2/3,start:function(i,h){var l=this,a={pingInterval:3e5,waitForPageLoad:!0,transport:"auto",jsonp:!1},k,v=l._deferral||n.Deferred(),w=t.document.createElement("a"),b,d;if(l._deferral=v,!l.json)throw new Error("SignalR: No JSON parser found. Please ensure json2.js is referenced before the SignalR.js file if you need to support clients without native JSON parsing support, e.g. IE<8.");if(n.type(i)==="function"?h=i:n.type(i)==="object"&&(n.extend(a,i),n.type(a.callback)==="function"&&(h=a.callback)),a.transport=p(a.transport,l),!a.transport)throw new Error("SignalR: Invalid transport(s) specified, aborting start.");return(l._.config=a,!s&&a.waitForPageLoad===!0)?(l._.deferredStartHandler=function(){l.start(i,h)},e.bind("load",l._.deferredStartHandler),v.promise()):l.state===r.connectionState.connecting?v.promise():o(l,r.connectionState.disconnected,r.connectionState.connecting)===!1?(v.resolve(l),v.promise()):(y(l),w.href=l.url,w.protocol&&w.protocol!==":"?(l.protocol=w.protocol,l.host=w.host,l.baseUrl=w.protocol+"//"+w.host):(l.protocol=t.document.location.protocol,l.host=t.document.location.host,l.baseUrl=l.protocol+"//"+l.host),l.wsProtocol=l.protocol==="https:"?"wss://":"ws://",a.transport==="auto"&&a.jsonp===!0&&(a.transport="longPolling"),l.url.indexOf("//")===0&&(l.url=t.location.protocol+l.url,l.log("Protocol relative URL detected, normalizing it to '"+l.url+"'.")),this.isCrossDomain(l.url)&&(l.log("Auto detected cross domain url."),a.transport==="auto"&&(a.transport=["webSockets","longPolling"]),typeof a.withCredentials=="undefined"&&(a.withCredentials=!0),a.jsonp||(a.jsonp=!n.support.cors,a.jsonp&&l.log("Using jsonp because this browser doesn't support CORS.")),l.contentType=r._.defaultContentType),l.withCredentials=a.withCredentials,l.ajaxDataType=a.jsonp?"jsonp":"text",n(l).bind(u.onStart,function(){n.type(h)==="function"&&h.call(l);v.resolve(l)}),k=function(i,s){var y=r._.error(f.noTransportOnInit);if(s=s||0,s>=i.length){n(l).triggerHandler(u.onError,[y]);v.reject(y);l.stop();return}if(l.state!==r.connectionState.disconnected){var p=i[s],h=r.transports[p],c=!1,a=function(){c||(c=!0,t.clearTimeout(l._.onFailedTimeoutHandle),h.stop(l),k(i,s+1))};l.transport=h;try{l._.onFailedTimeoutHandle=t.setTimeout(function(){l.log(h.name+" timed out when trying to connect.");a()},l.transportConnectTimeout);h.start(l,function(){var i=r._.firefoxMajorVersion(t.navigator.userAgent)>=11,f=!!l.withCredentials&&i;l.state!==r.connectionState.disconnected&&(c||(c=!0,t.clearTimeout(l._.onFailedTimeoutHandle),h.supportsKeepAlive&&l._.keepAliveData.activated&&r.transports._logic.monitorKeepAlive(l),r.transports._logic.startHeartbeat(l),r._.configurePingInterval(l),o(l,r.connectionState.connecting,r.connectionState.connected),l._.connectingMessageBuffer.drain(),n(l).triggerHandler(u.onStart),e.bind("unload",function(){l.log("Window unloading, stopping the connection.");l.stop(f)}),i&&e.bind("beforeunload",function(){t.setTimeout(function(){l.stop(f)},0)})))},a)}catch(w){l.log(h.name+" transport threw '"+w.message+"' when attempting to start.");a()}}},b=l.url+"/negotiate",d=function(t,i){var e=r._.error(f.errorOnNegotiate,t,i._.negotiateRequest);n(i).triggerHandler(u.onError,e);v.reject(e);i.stop()},n(l).triggerHandler(u.onStarting),b=r.transports._logic.prepareQueryString(l,b),b=r.transports._logic.addQs(b,{clientProtocol:l.clientProtocol}),l.log("Negotiating with '"+b+"'."),l._.negotiateRequest=n.ajax(n.extend({},n.signalR.ajaxDefaults,{xhrFields:{withCredentials:l.withCredentials},url:b,type:"GET",contentType:l.contentType,data:{},dataType:l.ajaxDataType,error:function(n,t){t!==c?d(n,l):v.reject(r._.error(f.stoppedWhileNegotiating,null,l._.negotiateRequest))},success:function(t){var i,e,h,o=[],s=[];try{i=l._parseResponse(t)}catch(c){d(r._.error(f.errorParsingNegotiateResponse,c),l);return}if(e=l._.keepAliveData,l.appRelativeUrl=i.Url,l.id=i.ConnectionId,l.token=i.ConnectionToken,l.webSocketServerUrl=i.WebSocketServerUrl,l.disconnectTimeout=i.DisconnectTimeout*1e3,l.transportConnectTimeout=l.transportConnectTimeout+i.TransportConnectTimeout*1e3,i.KeepAliveTimeout?(e.activated=!0,e.timeout=i.KeepAliveTimeout*1e3,e.timeoutWarning=e.timeout*l.keepAliveWarnAt,l._.beatInterval=(e.timeout-e.timeoutWarning)/3):e.activated=!1,l.reconnectWindow=l.disconnectTimeout+(e.timeout||0),!i.ProtocolVersion||i.ProtocolVersion!==l.clientProtocol){h=r._.error(r._.format(f.protocolIncompatible,l.clientProtocol,i.ProtocolVersion));n(l).triggerHandler(u.onError,[h]);v.reject(h);return}n.each(r.transports,function(n){if(n.indexOf("_")===0||n==="webSockets"&&!i.TryWebSockets)return!0;s.push(n)});n.isArray(a.transport)?n.each(a.transport,function(t,i){n.inArray(i,s)>=0&&o.push(i)}):a.transport==="auto"?o=s:n.inArray(a.transport,s)>=0&&o.push(a.transport);k(o)}})),v.promise())},starting:function(t){var i=this;return n(i).bind(u.onStarting,function(){t.call(i)}),i},send:function(n){var t=this;if(t.state===r.connectionState.disconnected)throw new Error("SignalR: Connection must be started before data can be sent. Call .start() before .send()");if(t.state===r.connectionState.connecting)throw new Error("SignalR: Connection has not been fully initialized. Use .start().done() or .start().fail() to run logic after the connection has started.");return t.transport.send(t,n),t},received:function(t){var i=this;return n(i).bind(u.onReceived,function(n,r){t.call(i,r)}),i},stateChanged:function(t){var i=this;return n(i).bind(u.onStateChanged,function(n,r){t.call(i,r)}),i},error:function(t){var i=this;return n(i).bind(u.onError,function(n,r,u){t.call(i,r,u)}),i},disconnected:function(t){var i=this;return n(i).bind(u.onDisconnect,function(){t.call(i)}),i},connectionSlow:function(t){var i=this;return n(i).bind(u.onConnectionSlow,function(){t.call(i)}),i},reconnecting:function(t){var i=this;return n(i).bind(u.onReconnecting,function(){t.call(i)}),i},reconnected:function(t){var i=this;return n(i).bind(u.onReconnect,function(){t.call(i)}),i},stop:function(i,h){var l=this,a=l._deferral;if(l._.deferredStartHandler&&e.unbind("load",l._.deferredStartHandler),delete l._deferral,delete l._.config,delete l._.deferredStartHandler,!s&&(!l._.config||l._.config.waitForPageLoad===!0)){l.log("Stopping connection prior to negotiate.");a&&a.reject(r._.error(f.stoppedWhileLoading));return}if(l.state!==r.connectionState.disconnected)return l.log("Stopping connection."),o(l,l.state,r.connectionState.disconnected),t.clearTimeout(l._.beatHandle),t.clearTimeout(l._.onFailedTimeoutHandle),t.clearInterval(l._.pingIntervalId),l.transport&&(l.transport.stop(l),h!==!1&&l.transport.abort(l,i),l.transport.supportsKeepAlive&&l._.keepAliveData.activated&&r.transports._logic.stopMonitoringKeepAlive(l),l.transport=null),l._.negotiateRequest&&(l._.negotiateRequest.abort(c),delete l._.negotiateRequest),n(l).triggerHandler(u.onDisconnect),delete l.messageId,delete l.groupsToken,delete l.id,delete l._.pingIntervalId,delete l._.lastMessageAt,delete l._.lastActiveAt,l._.connectingMessageBuffer.clear(),l},log:function(n){a(n,this.logging)}};r.fn.init.prototype=r.fn;r.noConflict=function(){return n.connection===r&&(n.connection=h),r};n.connection&&(h=n.connection);n.connection=n.signalR=r})(window.jQuery,window),function(n,t){"use strict";function f(n){n._.keepAliveData.monitoring&&o(n);r.markActive(n)&&(n._.beatHandle=t.setTimeout(function(){f(n)},n._.beatInterval))}function o(t){var r=t._.keepAliveData,f;t.state===i.connectionState.connected&&(f=(new Date).getTime()-t._.lastMessageAt,f>=r.timeout?(t.log("Keep alive timed out.  Notifying transport that connection has been lost."),t.transport.lostConnection(t)):f>=r.timeoutWarning?r.userNotified||(t.log("Keep alive has been missed, connection may be dead/slow."),n(t).triggerHandler(u.onConnectionSlow),r.userNotified=!0):r.userNotified=!1)}function s(n){return n.state===i.connectionState.connected||n.state===i.connectionState.reconnecting}function h(n,i){var r=n.indexOf("?")!==-1?"&":"?";return i&&(n+=r+"connectionData="+t.encodeURIComponent(i)),n}var i=n.signalR,u=n.signalR.events,e=n.signalR.changeState,r;i.transports={};r=i.transports._logic={pingServer:function(t){var e,u=n.Deferred(),f;return t.transport?(e=t.url+"/ping",e=r.addQs(e,t.qs),f=n.ajax(n.extend({},n.signalR.ajaxDefaults,{xhrFields:{withCredentials:t.withCredentials},url:e,type:"GET",contentType:t.contentType,data:{},dataType:t.ajaxDataType,success:function(n){var r;try{r=t._parseResponse(n)}catch(e){u.reject(i._.transportError(i.resources.pingServerFailedParse,t.transport,e,f));t.stop();return}r.Response==="pong"?u.resolve():u.reject(i._.transportError(i._.format(i.resources.pingServerFailedInvalidResponse,n.responseText),t.transport,null,f))},error:function(n){n.status===401||n.status===403?(u.reject(i._.transportError(i._.format(i.resources.pingServerFailedStatusCode,n.status),t.transport,n,f)),t.stop()):u.reject(i._.transportError(i.resources.pingServerFailed,t.transport,n,f))}}))):u.reject(i._.transportError(i.resources.noConnectionTransport,t.transport)),u.promise()},prepareQueryString:function(n,t){return t=r.addQs(t,n.qs),h(t,n.data)},addQs:function(t,i){var r=t.indexOf("?")!==-1?"&":"?",u;if(!i)return t;if(typeof i=="object")return t+r+n.param(i);if(typeof i=="string")return u=i.charAt(0),(u==="?"||u==="&")&&(r=""),t+r+i;throw new Error("Query string property must be either a string or object.");},getUrl:function(n,i,u,f){var s=i==="webSockets"?"":n.baseUrl,e=s+n.appRelativeUrl,o="transport="+i+"&connectionToken="+t.encodeURIComponent(n.token);return n.groupsToken&&(o+="&groupsToken="+t.encodeURIComponent(n.groupsToken)),u?(e+=f?"/poll":"/reconnect",n.messageId&&(o+="&messageId="+t.encodeURIComponent(n.messageId))):e+="/connect",e+="?"+o,e=r.prepareQueryString(n,e),e+("&tid="+Math.floor(Math.random()*11))},maximizePersistentResponse:function(n){return{MessageId:n.C,Messages:n.M,Initialized:typeof n.S!="undefined"?!0:!1,Disconnect:typeof n.D!="undefined"?!0:!1,ShouldReconnect:typeof n.T!="undefined"?!0:!1,LongPollDelay:n.L,GroupsToken:n.G}},updateGroups:function(n,t){t&&(n.groupsToken=t)},stringifySend:function(n,t){return typeof t=="string"||typeof t=="undefined"||t===null?t:n.json.stringify(t)},ajaxSend:function(f,e){var c=r.stringifySend(f,e),o=f.url+"/send?transport="+f.transport.name+"&connectionToken="+t.encodeURIComponent(f.token),s,h=function(t,r){n(r).triggerHandler(u.onError,[i._.transportError(i.resources.sendFailed,r.transport,t,s),e])};return o=r.prepareQueryString(f,o),s=n.ajax(n.extend({},n.signalR.ajaxDefaults,{xhrFields:{withCredentials:f.withCredentials},url:o,type:f.ajaxDataType==="jsonp"?"GET":"POST",contentType:i._.defaultContentType,dataType:f.ajaxDataType,data:{data:c},success:function(n){var t;if(n){try{t=f._parseResponse(n)}catch(i){h(i,f);f.stop();return}r.triggerReceived(f,t)}},error:function(n,t){t!=="abort"&&t!=="parsererror"&&h(n,f)}}))},ajaxAbort:function(i,u){if(typeof i.transport!="undefined"){u=typeof u=="undefined"?!0:u;var f=i.url+"/abort?transport="+i.transport.name+"&connectionToken="+t.encodeURIComponent(i.token);f=r.prepareQueryString(i,f);n.ajax(n.extend({},n.signalR.ajaxDefaults,{xhrFields:{withCredentials:i.withCredentials},url:f,async:u,timeout:1e3,type:"POST",contentType:i.contentType,dataType:i.ajaxDataType,data:{}}));i.log("Fired ajax abort async = "+u+".")}},tryInitialize:function(n,t){n.Initialized&&t()},triggerReceived:function(t,i){t._.connectingMessageBuffer.tryBuffer(i)||n(t).triggerHandler(u.onReceived,[i])},processMessages:function(t,i,u){var f;if(r.markLastMessage(t),i){if(f=r.maximizePersistentResponse(i),f.Disconnect){t.log("Disconnect command received from server.");t.stop(!1,!1);return}r.updateGroups(t,f.GroupsToken);f.MessageId&&(t.messageId=f.MessageId);f.Messages&&(n.each(f.Messages,function(n,i){r.triggerReceived(t,i)}),r.tryInitialize(f,u))}},monitorKeepAlive:function(t){var i=t._.keepAliveData;i.monitoring?t.log("Tried to monitor keep alive but it's already being monitored."):(i.monitoring=!0,r.markLastMessage(t),t._.keepAliveData.reconnectKeepAliveUpdate=function(){r.markLastMessage(t)},n(t).bind(u.onReconnect,t._.keepAliveData.reconnectKeepAliveUpdate),t.log("Now monitoring keep alive with a warning timeout of "+i.timeoutWarning+" and a connection lost timeout of "+i.timeout+"."))},stopMonitoringKeepAlive:function(t){var i=t._.keepAliveData;i.monitoring&&(i.monitoring=!1,n(t).unbind(u.onReconnect,t._.keepAliveData.reconnectKeepAliveUpdate),t._.keepAliveData={},t.log("Stopping the monitoring of the keep alive."))},startHeartbeat:function(n){f(n)},markLastMessage:function(n){n._.lastMessageAt=(new Date).getTime()},markActive:function(n){return r.verifyLastActive(n)?(n._.lastActiveAt=(new Date).getTime(),!0):!1},ensureReconnectingState:function(t){return e(t,i.connectionState.connected,i.connectionState.reconnecting)===!0&&n(t).triggerHandler(u.onReconnecting),t.state===i.connectionState.reconnecting},clearReconnectTimeout:function(n){n&&n._.reconnectTimeout&&(t.clearTimeout(n._.reconnectTimeout),delete n._.reconnectTimeout)},verifyLastActive:function(n){return(new Date).getTime()-n._.lastActiveAt>=n.reconnectWindow?(n.log("There has not been an active server connection for an extended period of time. Stopping connection."),n.stop(),!1):!0},reconnect:function(n,u){var f=i.transports[u];if(s(n)&&!n._.reconnectTimeout){if(!r.verifyLastActive(n))return;n._.reconnectTimeout=t.setTimeout(function(){r.verifyLastActive(n)&&(f.stop(n),r.ensureReconnectingState(n)&&(n.log(u+" reconnecting."),f.start(n)))},n.reconnectDelay)}},handleParseFailure:function(t,r,f,e,o){t.state===i.connectionState.connecting?(t.log("Failed to parse server response while attempting to connect."),e()):(n(t).triggerHandler(u.onError,[i._.transportError(i._.format(i.resources.parseFailed,r),t.transport,f,o)]),t.stop())},foreverFrame:{count:0,connections:{}}}}(window.jQuery,window),function(n,t){"use strict";var r=n.signalR,u=n.signalR.events,f=n.signalR.changeState,i=r.transports._logic;r.transports.webSockets={name:"webSockets",supportsKeepAlive:!0,send:function(t,f){var e=i.stringifySend(t,f);try{t.socket.send(e)}catch(o){n(t).triggerHandler(u.onError,[r._.transportError(r.resources.webSocketsInvalidState,t.transport,o,t.socket),f])}},start:function(e,o,s){var h,c=!1,l=this,a=!o,v=n(e);if(!t.WebSocket){s();return}e.socket||(h=e.webSocketServerUrl?e.webSocketServerUrl:e.wsProtocol+e.host,h+=i.getUrl(e,this.name,a),e.log("Connecting to websocket endpoint '"+h+"'."),e.socket=new t.WebSocket(h),e.socket.onopen=function(){c=!0;e.log("Websocket opened.");i.clearReconnectTimeout(e);f(e,r.connectionState.reconnecting,r.connectionState.connected)===!0&&v.triggerHandler(u.onReconnect)},e.socket.onclose=function(t){if(this===e.socket){if(c)typeof t.wasClean!="undefined"&&t.wasClean===!1?(n(e).triggerHandler(u.onError,[r._.transportError(r.resources.webSocketClosed,e.transport,t)]),e.log("Unclean disconnect from websocket: "+t.reason||"[no reason given].")):e.log("Websocket closed.");else{s?s():a&&l.reconnect(e);return}l.reconnect(e)}},e.socket.onmessage=function(t){var r;try{r=e._parseResponse(t.data)}catch(u){i.handleParseFailure(e,t.data,u,s,t);return}r&&(n.isEmptyObject(r)||r.M?i.processMessages(e,r,o):i.triggerReceived(e,r))})},reconnect:function(n){i.reconnect(n,this.name)},lostConnection:function(n){this.reconnect(n)},stop:function(n){i.clearReconnectTimeout(n);n.socket&&(n.log("Closing the Websocket."),n.socket.close(),n.socket=null)},abort:function(n,t){i.ajaxAbort(n,t)}}}(window.jQuery,window),function(n,t){"use strict";var i=n.signalR,u=n.signalR.events,f=n.signalR.changeState,r=i.transports._logic;i.transports.serverSentEvents={name:"serverSentEvents",supportsKeepAlive:!0,timeOut:3e3,start:function(e,o,s){var h=this,c=!1,l=n(e),a=!o,v,y;if(e.eventSource&&(e.log("The connection already has an event source. Stopping it."),e.stop()),!t.EventSource){s&&(e.log("This browser doesn't support SSE."),s());return}v=r.getUrl(e,this.name,a);try{e.log("Attempting to connect to SSE endpoint '"+v+"'.");e.eventSource=new t.EventSource(v)}catch(p){e.log("EventSource failed trying to connect with error "+p.Message+".");s?s():(l.triggerHandler(u.onError,[i._.transportError(i.resources.eventSourceFailedToConnect,e.transport,p)]),a&&h.reconnect(e));return}a&&(y=t.setTimeout(function(){c===!1&&e.eventSource.readyState!==t.EventSource.OPEN&&h.reconnect(e)},h.timeOut));e.eventSource.addEventListener("open",function(){e.log("EventSource connected.");y&&t.clearTimeout(y);r.clearReconnectTimeout(e);c===!1&&(c=!0,f(e,i.connectionState.reconnecting,i.connectionState.connected)===!0&&l.triggerHandler(u.onReconnect))},!1);e.eventSource.addEventListener("message",function(n){var t;if(n.data!=="initialized"){try{t=e._parseResponse(n.data)}catch(i){r.handleParseFailure(e,n.data,i,s,n);return}r.processMessages(e,t,o)}},!1);e.eventSource.addEventListener("error",function(n){if(this===e.eventSource){if(!c){s&&s();return}e.log("EventSource readyState: "+e.eventSource.readyState+".");n.eventPhase===t.EventSource.CLOSED?(e.log("EventSource reconnecting due to the server connection ending."),h.reconnect(e)):(e.log("EventSource error."),l.triggerHandler(u.onError,[i._.transportError(i.resources.eventSourceError,e.transport,n)]))}},!1)},reconnect:function(n){r.reconnect(n,this.name)},lostConnection:function(n){this.reconnect(n)},send:function(n,t){r.ajaxSend(n,t)},stop:function(n){r.clearReconnectTimeout(n);n&&n.eventSource&&(n.log("EventSource calling close()."),n.eventSource.close(),n.eventSource=null,delete n.eventSource)},abort:function(n,t){r.ajaxAbort(n,t)}}}(window.jQuery,window),function(n,t){"use strict";var r=n.signalR,e=n.signalR.events,o=n.signalR.changeState,i=r.transports._logic,u=function(){var n=t.document.createElement("iframe");return n.setAttribute("style","position:absolute;top:0;left:0;width:0;height:0;visibility:hidden;"),n},f=function(){var i=null,f=1e3,n=0;return{prevent:function(){r._.ieVersion<=8&&(n===0&&(i=t.setInterval(function(){var n=u();t.document.body.appendChild(n);t.document.body.removeChild(n);n=null},f)),n++)},cancel:function(){n===1&&t.clearInterval(i);n>0&&n--}}}();r.transports.foreverFrame={name:"foreverFrame",supportsKeepAlive:!0,iframeClearThreshold:50,start:function(n,r,e){var l=this,s=i.foreverFrame.count+=1,h,o=u(),c=function(){n.log("Forever frame iframe finished loading and is no longer receiving messages, reconnecting.");l.reconnect(n)};if(t.EventSource){e&&(n.log("This browser supports SSE, skipping Forever Frame."),e());return}o.setAttribute("data-signalr-connection-id",n.id);f.prevent();h=i.getUrl(n,this.name);h+="&frameId="+s;t.document.body.appendChild(o);n.log("Binding to iframe's load event.");o.addEventListener?o.addEventListener("load",c,!1):o.attachEvent&&o.attachEvent("onload",c);o.src=h;i.foreverFrame.connections[s]=n;n.frame=o;n.frameId=s;r&&(n.onSuccess=function(){n.log("Iframe transport started.");r()})},reconnect:function(n){var r=this;i.verifyLastActive(n)&&t.setTimeout(function(){if(i.verifyLastActive(n)&&n.frame&&i.ensureReconnectingState(n)){var u=n.frame,t=i.getUrl(n,r.name,!0)+"&frameId="+n.frameId;n.log("Updating iframe src to '"+t+"'.");u.src=t}},n.reconnectDelay)},lostConnection:function(n){this.reconnect(n)},send:function(n,t){i.ajaxSend(n,t)},receive:function(t,u){var f,e;if(i.processMessages(t,u,t.onSuccess),t.state===n.signalR.connectionState.connected&&(t.frameMessageCount=(t.frameMessageCount||0)+1,t.frameMessageCount>r.transports.foreverFrame.iframeClearThreshold&&(t.frameMessageCount=0,f=t.frame.contentWindow||t.frame.contentDocument,f&&f.document&&f.document.body)))for(e=f.document.body;e.firstChild;)e.removeChild(e.firstChild)},stop:function(n){var r=null;if(f.cancel(),n.frame){if(n.frame.stop)n.frame.stop();else try{r=n.frame.contentWindow||n.frame.contentDocument;r.document&&r.document.execCommand&&r.document.execCommand("Stop")}catch(u){n.log("Error occured when stopping foreverFrame transport. Message = "+u.message+".")}n.frame.parentNode===t.document.body&&t.document.body.removeChild(n.frame);delete i.foreverFrame.connections[n.frameId];n.frame=null;n.frameId=null;delete n.frame;delete n.frameId;delete n.onSuccess;delete n.frameMessageCount;n.log("Stopping forever frame.")}},abort:function(n,t){i.ajaxAbort(n,t)},getConnection:function(n){return i.foreverFrame.connections[n]},started:function(t){o(t,r.connectionState.reconnecting,r.connectionState.connected)===!0&&n(t).triggerHandler(e.onReconnect)}}}(window.jQuery,window),function(n,t){"use strict";var i=n.signalR,u=n.signalR.events,e=n.signalR.changeState,f=n.signalR.isDisconnecting,r=i.transports._logic;i.transports.longPolling={name:"longPolling",supportsKeepAlive:!1,reconnectDelay:3e3,start:function(o,s,h){var a=this,v=function(){v=n.noop;o.log("LongPolling connected.");s();h=null},y=function(){return h?(h(),h=null,o.log("LongPolling failed to connect."),!0):!1},c=o._,l=0,p=function(r){t.clearTimeout(c.reconnectTimeoutId);c.reconnectTimeoutId=null;e(r,i.connectionState.reconnecting,i.connectionState.connected)===!0&&(r.log("Raising the reconnect event"),n(r).triggerHandler(u.onReconnect))},w=36e5;o.pollXhr&&(o.log("Polling xhr requests already exists, aborting."),o.stop());o.messageId=null;c.reconnectTimeoutId=null;c.pollTimeoutId=t.setTimeout(function(){(function e(s,h){var d=s.messageId,g=d===null,b=!g,nt=!h,k=r.getUrl(s,a.name,b,nt);f(s)!==!0&&(o.log("Opening long polling request to '"+k+"'."),s.pollXhr=n.ajax(n.extend({},n.signalR.ajaxDefaults,{xhrFields:{withCredentials:o.withCredentials},url:k,type:"GET",dataType:o.ajaxDataType,contentType:o.contentType,success:function(i){var h,w=0,u,a;o.log("Long poll complete.");l=0;try{h=o._parseResponse(i)}catch(b){r.handleParseFailure(s,i,b,y,s.pollXhr);return}(c.reconnectTimeoutId!==null&&p(s),h&&(u=r.maximizePersistentResponse(h)),r.processMessages(s,h,v),u&&n.type(u.LongPollDelay)==="number"&&(w=u.LongPollDelay),u&&u.Disconnect)||f(s)!==!0&&(a=u&&u.ShouldReconnect,!a||r.ensureReconnectingState(s))&&(w>0?c.pollTimeoutId=t.setTimeout(function(){e(s,a)},w):e(s,a))},error:function(f,h){if(t.clearTimeout(c.reconnectTimeoutId),c.reconnectTimeoutId=null,h==="abort"){o.log("Aborted xhr request.");return}if(!y()){if(l++,o.state!==i.connectionState.reconnecting&&(o.log("An error occurred using longPolling. Status = "+h+".  Response = "+f.responseText+"."),n(s).triggerHandler(u.onError,[i._.transportError(i.resources.longPollFailed,o.transport,f,s.pollXhr)])),(o.state===i.connectionState.connected||o.state===i.connectionState.reconnecting)&&!r.verifyLastActive(o))return;if(!r.ensureReconnectingState(s))return;c.pollTimeoutId=t.setTimeout(function(){e(s,!0)},a.reconnectDelay)}}})),b&&h===!0&&(c.reconnectTimeoutId=t.setTimeout(function(){p(s)},Math.min(1e3*(Math.pow(2,l)-1),w))))})(o)},250)},lostConnection:function(){throw new Error("Lost Connection not handled for LongPolling");},send:function(n,t){r.ajaxSend(n,t)},stop:function(n){t.clearTimeout(n._.pollTimeoutId);t.clearTimeout(n._.reconnectTimeoutId);delete n._.pollTimeoutId;delete n._.reconnectTimeoutId;n.pollXhr&&(n.pollXhr.abort(),n.pollXhr=null,delete n.pollXhr)},abort:function(n,t){r.ajaxAbort(n,t)}}}(window.jQuery,window),function(n){"use strict";function r(n){return n+e}function s(n,t,i){for(var f=n.length,u=[],r=0;r<f;r+=1)n.hasOwnProperty(r)&&(u[r]=t.call(i,n[r],r,n));return u}function h(t){return n.isFunction(t)?null:n.type(t)==="undefined"?null:t}function u(n){for(var t in n)if(n.hasOwnProperty(t))return!0;return!1}function f(n,t){var i=n._.invocationCallbacks,r,f;u(i)&&n.log("Clearing hub invocation callbacks with error: "+t+".");n._.invocationCallbackId=0;delete n._.invocationCallbacks;n._.invocationCallbacks={};for(f in i)r=i[f],r.method.call(r.scope,{E:t})}function i(n,t){return new i.fn.init(n,t)}function t(i,r){var u={qs:null,logging:!1,useDefaultPath:!0};return n.extend(u,r),(!i||u.useDefaultPath)&&(i=(i||"")+"/signalr"),new t.fn.init(i,u)}var e=".hubProxy",o=n.signalR;i.fn=i.prototype={init:function(n,t){this.state={};this.connection=n;this.hubName=t;this._={callbackMap:{}}},hasSubscriptions:function(){return u(this._.callbackMap)},on:function(t,i){var u=this,f=u._.callbackMap;return t=t.toLowerCase(),f[t]||(f[t]={}),f[t][i]=function(n,t){i.apply(u,t)},n(u).bind(r(t),f[t][i]),u},off:function(t,i){var e=this,o=e._.callbackMap,f;return t=t.toLowerCase(),f=o[t],f&&(f[i]?(n(e).unbind(r(t),f[i]),delete f[i],u(f)||delete o[t]):i||(n(e).unbind(r(t)),delete o[t])),e},invoke:function(t){var i=this,r=i.connection,e=n.makeArray(arguments).slice(1),c=s(e,h),f={H:i.hubName,M:t,A:c,I:r._.invocationCallbackId},u=n.Deferred(),l=function(f){var e=i._maximizeHubResponse(f),h,s;n.extend(i.state,e.State);e.Error?(e.StackTrace&&r.log(e.Error+"\n"+e.StackTrace+"."),h=e.IsHubException?"HubException":"Exception",s=o._.error(e.Error,h),s.data=e.ErrorData,r.log(i.hubName+"."+t+" failed to execute. Error: "+s.message),u.rejectWith(i,[s])):(r.log("Invoked "+i.hubName+"."+t),u.resolveWith(i,[e.Result]))};return r._.invocationCallbacks[r._.invocationCallbackId.toString()]={scope:i,method:l},r._.invocationCallbackId+=1,n.isEmptyObject(i.state)||(f.S=i.state),r.log("Invoking "+i.hubName+"."+t),r.send(f),u.promise()},_maximizeHubResponse:function(n){return{State:n.S,Result:n.R,Id:n.I,IsHubException:n.H,Error:n.E,StackTrace:n.T,ErrorData:n.D}}};i.fn.init.prototype=i.fn;t.fn=t.prototype=n.connection();t.fn.init=function(t,i){var e={qs:null,logging:!1,useDefaultPath:!0},u=this;n.extend(e,i);n.signalR.fn.init.call(u,t,e.qs,e.logging);u.proxies={};u._.invocationCallbackId=0;u._.invocationCallbacks={};u.received(function(t){var i,o,f,e,s,h;t&&(typeof t.I!="undefined"?(f=t.I.toString(),e=u._.invocationCallbacks[f],e&&(u._.invocationCallbacks[f]=null,delete u._.invocationCallbacks[f],e.method.call(e.scope,t))):(i=this._maximizeClientHubInvocation(t),u.log("Triggering client hub event '"+i.Method+"' on hub '"+i.Hub+"'."),s=i.Hub.toLowerCase(),h=i.Method.toLowerCase(),o=this.proxies[s],n.extend(o.state,i.State),n(o).triggerHandler(r(h),[i.Args])))});u.error(function(n,t){var i,r;t&&(i=t.I,r=u._.invocationCallbacks[i],r&&(u._.invocationCallbacks[i]=null,delete u._.invocationCallbacks[i],r.method.call(r.scope,{E:n})))});u.reconnecting(function(){u.transport&&u.transport.name==="webSockets"&&f(u,"Connection started reconnecting before invocation result was received.")});u.disconnected(function(){f(u,"Connection was disconnected before invocation result was received.")})};t.fn._maximizeClientHubInvocation=function(n){return{Hub:n.H,Method:n.M,Args:n.A,State:n.S}};t.fn._registerSubscribedHubs=function(){var t=this;t._subscribedToHubs||(t._subscribedToHubs=!0,t.starting(function(){var i=[];n.each(t.proxies,function(n){this.hasSubscriptions()&&(i.push({name:n}),t.log("Client subscribed to hub '"+n+"'."))});i.length===0&&t.log("No hubs have been subscribed to.  The client will not receive data from hubs.  To fix, declare at least one client side function prior to connection start for each hub you wish to subscribe to.");t.data=t.json.stringify(i)}))};t.fn.createHubProxy=function(n){n=n.toLowerCase();var t=this.proxies[n];return t||(t=i(this,n),this.proxies[n]=t),this._registerSubscribedHubs(),t};t.fn.init.prototype=t.fn;n.hubConnection=t}(window.jQuery,window),function(n){n.signalR.version="2.0.2"}(window.jQuery)
;
(function(n,t){"use strict";var r=[],u={},f=function(n,t){typeof n!="undefined"&&n>=0&&(t&&t.continueWith?t.continueWith(function(t){f(n,t)}):i.invoke("sys.callback",!1,[n,t]))},i={extensions:[],inits:[],callbackTable:[],nextId:0,connection:null,isReconnecting:!1,isUnloading:!1,extractName:function(n){var t=n.lastIndexOf("."),r=null,i=null;return t>0&&(r=n.substr(0,t).toLowerCase(),i=n.substr(t+1)),{factoryName:r,methodName:i}},log:function(n){var t;typeof window.console!="undefined"&&(t="["+(new Date).toTimeString()+"] Browser Link: "+n,window.console.debug?window.console.debug(t):window.console.log&&window.console.log(t))},invoke:function(n,i,r){var e={},c,s,u,o,f,h;e.name=n,e.args=r,e.callbackId=-1,i&&(s=this.createTask(),e.callbackId=s.id),c=t.stringify(e);try{for(u=this.breakIntoSegments(c),o=u.length>1?this.generateId():0,f=0;f<u.length;f++)h="id-"+o+" index-"+f+" total-"+u.length+" "+u[f],this.connection.send(h)}catch(l){this.log("Failed to send message to browser link server:\n"+l.toString())}return s},breakIntoSegments:function(n){for(var f=3072,u=[],t=n.length,r=0,i;t>0;)i=t>f?f:t,u.push(n.substring(r,r+i)),r+=i,t-=i;return u},dispatchCallback:function(n,t,i){var r=this.extractName(n),s,u,o,e;if(r.factoryName&&r.methodName){if(r.factoryName==="sys"){if(r.methodName==="callback"&&(s=t[0],u=t[1],typeof this.callbackTable[s].callback=="function")){try{this.callbackTable[s].callback(u)}catch(h){this.log("Failed to invoke return value callback:\n"+h.toString())}this.removeTask(s)}return}if(o=this.extensions[r.factoryName],!o||!o[r.methodName]){this.log("Failed to match method call "+n);return}for(e=t.length;e<15;e++)t[e]=null;try{u=o[r.methodName](t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14])}catch(h){this.log("Exception thrown in callback method "+r.methodName+": "+h.toString()),u=null}typeof u!="undefined"&&f(i,u)}},addExtensions:function(){try { this.addExtension("Microsoft.VisualStudio.Web.PageInspector.Package.RefreshExtensionFactory", (function(){"use strict";return{refresh:function(){location.reload(!0)},navigate:function(n){location.href=n}}})); } catch(e) { this.log("Invalid extension script encountered for extension 'Microsoft.VisualStudio.Web.PageInspector.Package.RefreshExtensionFactory'."); return; }
try { this.addExtension("Microsoft.VisualStudio.Web.BrowserLink.AutoSyncExtensionFactory", (function(n,t){"use strict";var o=[],i=[],p=function(n){for(var i,t=0;t<o.length;t++)if(o[t]===n)return o[t];return i={key:n,value:null},o.push(i),i},r=function(n){var t=n.__browserLink_sourceMapping;return t?t:p(n).value},nt=function(n,t){n.__browserLink_sourceMapping=t,p(n).value=t},b=function(n){if(n==="float")return t.support.cssFloat?"cssFloat":"styleFloat";/^-/.test(n)&&(n=n.substring(1));return n.replace(/-\w/g,function(n){return n.substring(1).toUpperCase()})},s=function(n){try{var t=n.cssRules;return t||(t=n.rules),t}catch(i){return null}},w=function(n){var t=function(i){var f=s(i),u,r;if(f)for(u=0;u<f.length;u++)if(r=f[u],r.type==3){if(n(r.styleSheet)||t(r.styleSheet))return!0}else if(r.type==4&&t(r))return!0},i=function(r){for(var u,f=0;f<r.length;f++){if(u=r[f],n(u))return!0;if(u.imports){if(i(u.imports))return!0}else if(t(u))return!0}};i(document.styleSheets)},k=function(n){var t=null;return w(function(i){return i.href==n&&(t=i),t}),t},g=function(n,t){var i=function(n){var f=s(n),u,r,e;if(f)for(u=0;u<f.length;u++)if(r=f[u],(r.type==1||r.type==3||r.type==4)&&((e={domRule:r,collection:f,index:u,source:n},t(e))||r.type==4&&i(r)))return!0};i(n)},f=function(n,t){var i;return g(n,function(n){return t(n.domRule)&&(i=n),i}),i},it=function(n){return f(n.parentStyleSheet,function(t){return t==n})},y=function(n,t){var i=r(n);return i&&typeof i.originalStart!="undefined"&&t>=i.originalStart&&t<=i.originalStart+i.originalLength},e=function(n,t){return f(n,function(n){return n.type!=1?!1:y(n,t)})},ut=function(n,t,i){return f(n,function(n){var u=r(n);return u&&typeof u.originalStart!="undefined"&&u.originalStart==t&&u.originalLength==i})},h=function(n){var t=s(n);return{index:t.length,source:n,collection:t}},v=function(n,t){var r=n.index-1,i;return r>=0&&(i=n.collection[r],i.type==4&&y(i,t))?(n=h(i),v(n,t)):n},rt=function(n,t){var i=f(n,function(n){var i=r(n);return i&&typeof i.originalStart!="undefined"&&t<i.originalStart});return i||(i=h(n)),v(i,t)},u=function(){return!0},et={CssDomChangeDeleteRule:function(n,t){var i=e(n,t.RuleOriginalPosition);return i?(i.source.deleteRule(i.index),!0):!1},CssDomChangeDeleteProperty:function(n,t){var i=e(n,t.PropertyOriginalPosition);return i?(i.domRule.style[b(t.PropertyName)]="",!0):!1},CssDomChangeSetSelector:function(n,t){var i=e(n,t.RuleOriginalPosition),u,o,f;return i?(u=i.domRule.cssText,o=u.indexOf("{"),u=t.NewSelector+u.substring(o),f=r(i.domRule),i.source.deleteRule(i.index),i.source.insertRule(u,i.index),nt(i.collection[i.index],f),!0):!1},CssDomChangeInsertRule:u,CssDomChangeSetProperty:u},ft={CssDomChangeInsertRule:function(t,i){var r=rt(t,i.RuleFinalPosition),u;return r.source.insertRule(i.Selector+"{"+i.StyleText+"}",r.index),u=r.collection[r.index],n.sourceMapping.internal.addMappingRangeForObject(u,{startPosition:i.RuleFinalPosition,length:i.RuleLength,sourceUrl:t.href}),c(u),!0},CssDomChangeSetProperty:function(n,t){var i=e(n,t.PropertyFinalPosition);return i?(i.domRule.style[b(t.PropertyName)]=t.NewValue,!0):!1},CssDomChangeDeleteRule:u,CssDomChangeDeleteProperty:u,CssDomChangeSetSelector:u},l=function(t,i,r){for(var u,e,f=0;f<i.length;f++){if(u=i[f],e=r[u.Type],!e)return n.log("Unknown change type: "+u.Type),!1;if(!e(t,u))return n.log("Failed to apply change: "+u.Type),!1}return!0},tt=function(n,t){for(var i,e,f,u=0;u<t.length;u++){if(i=t[u],e=ut(n,i.OldStart,i.OldLength),!e)return!1;f=r(e.domRule),f.start=i.NewStart,f.length=i.NewLength}return!0},c=function(n){var t=r(n);t&&(t.originalStart=t.start,t.originalLength=t.length)},a=function(n){g(n,function(n){c(n.domRule)})},d=function(){var f=[],r=[],u=[],t;for(w(function(t){i.indexOf(t.href)<0?(r.push(t.href),i.push(t.href),n.sourceMapping.ensureUpToDateAsync(function(){a(t)})):f.push(t.href)}),t=0;t<i.length;t++)f.indexOf(i[t])<0&&r.indexOf(i[t])<0&&(u.push(i[t]),i.splice(t,1),t--);(r.length||u.length)&&n.invoke("trackCssDocuments",r,u),setTimeout(d,1e3)};return{onConnected:function(){Array.prototype.indexOf&&d()},changeStyleSheetUrl:function(n,t){var r=k(n),i;r&&(r.ownerNode?r.ownerNode.href=t:r.ownerRule&&(i=it(r.ownerRule),i&&(i.source.deleteRule(i.index),i.source.insertRule("@import url('"+t+"')",i.index))))},applyCssChanges:function(t,i,r){try{var u=k(t);return u?l(u,i,et)?n.sourceMapping.ensureUpToDateAsync(function(){try{return tt(u,r)?(a(u),!l(u,i,ft))?!1:!0:!1}catch(n){return!1}}):!1:!1}catch(f){return!1}}}})); } catch(e) { this.log("Invalid extension script encountered for extension 'Microsoft.VisualStudio.Web.BrowserLink.AutoSyncExtensionFactory'."); return; }
try { this.addExtension("Microsoft.VisualStudio.Web.BrowserLink.InspectModeExtensionFactory", (function(n){"use strict";var t=function(t){var i;t&&t.detail&&t.detail.node&&t.detail.origin!=="vs"&&(i=t.detail.node,n.sourceMapping.canMapToSource(i)&&n.sourceMapping.ensureUpToDateAsync(function(){n.sourceMapping.selectCompleteRange(i)}))};return{onConnected:function(){typeof window.addEventListener=="function"&&window.addEventListener("BPT-SelectedNode",t)}}})); } catch(e) { this.log("Invalid extension script encountered for extension 'Microsoft.VisualStudio.Web.BrowserLink.InspectModeExtensionFactory'."); return; }
try { this.addExtension("Microsoft.VisualStudio.Web.BrowserLink.SourceMappingExtensionFactory", (function(n,t){"use strict";function pt(){var v=this,b=function(n,i){var e,r,u,o;if(!i)return null;if(e=f(i),e)return e.selectorData==n?e:null;if(t(i).is(n.selector)){if(r=null,n.parent){for(u=i.parentElement,o=n.selector.split(">").length-1;o>0;o--)u=u.parentElement;p(n.parent,u)&&(r=t(i.parentElement).children(n.selector))}else n.descendant?t(i).find(n.descendant.selectorData.selector).each(function(i,u){if(p(n.descendant,u))return r=t(u).parents(n.selector),!1}):r=t(n.selector);r&&w(n,r)&&(r.each(function(t,i){if(!at(i)){var u=t%n.elements.length,r=n.elements[u];r&&s(i,r)}}),n.isInTemplateLike||gt(n))}return f(i)},p=function(n,t){return b(n.selectorData,t)==n},k=function(n){for(var u,r,t=0;t<i.length;t++)if(u=i[t],u&&(r=b(i[t],n),r))return r;return null},h=function(n){var t=f(n);return t?t:k(n)},d=function(n){return f(n)},a=function(n,t,i){if(n<r.length){var u=r[n];if(u)return{sourcePath:u,startPosition:t,length:i}}return null},o=function(t,i){t&&(i==null&&(i=!0),n.invoke("selectRange",t.sourcePath,t.startPosition,t.length,i))};this.getCompleteRange=function(n){var t=h(n);return t?a(t.sourceIndex,t.start,t.length):null},this.getStartTagRange=function(n){var t=h(n);return t&&t.startTag?a(t.sourceIndex,t.start,t.startTag):null},this.getCssRuleRange=function(n){var t=d(n);return t?a(t.sourceIndex,t.start,t.length):null},this.selectCompleteRange=function(n){o(v.getCompleteRange(n))},this.selectStartTagRange=function(n){o(v.getStartTagRange(n))},this.selectCssRule=function(n){o(v.getCssRuleRange(n))},this.canMapToSource=function(n){return h(n)!=null},this.ensureUpToDateAsync=function(n){var t=new st;return(l.push(t.complete),n&&t.Task.continueWith(n),y)?t.Task:(vt(),!rt)?t.Task:c>0?t.Task:l.length==0?t.Task:(bt(function(){var t=l,n;for(l=[],n=0;n<t.length;n++)try{t[n]()}catch(i){}}),t.Task)},this.getElementAtPosition=function(n,i){for(var f=null,s=null,h=e(n),r,o=0;o<u.length;o++)r=u[o],r.sourceIndex==h&&r.start<=i&&r.length>=i-r.start&&(f==null||f.length>r.length)&&(f=r);return f&&t(f.selectorData.selector).each(function(n,t){if(p(f,t))return s=t,!1}),s},this.getCssRuleAtPosition=function(n,t){for(var s=e(n),i,r,u,o=0;o<document.styleSheets.length;o++)if(i=document.styleSheets[o],s==e(i.href)){for(r=0;r<i.cssRules.length;r++)if(u=f(i.cssRules[r]),u&&u.start<=t&&u.length>=t-u.start)return i.cssRules[r];break}return null},this.internal={addMappingRangeForObject:function(n,t){var r=e(t.sourcePath||t.sourceUrl),i={sourceIndex:r,start:t.startPosition,length:t.length};s(n,i),u.push(i)}}}var it=!1,r=[],v={},y=!1,rt=!1,c=0,l=[],u=[],i=[],nt={},st=function(){var n=[];this.complete=function(){for(var t=null;n.length;)t=n.shift()(t)},this.Task={continueWith:function(t){n.push(t)}}},yt=function(n){return n.selectorText||n.media},tt=function(n){var u=yt(n),t,i,r;if(!u)return{value:null};for(t=nt[u],t||(t=[],nt[u]=t),i=0;i<t.length;i++)if(t[i].key===n)return t[i];return r={key:n,value:null},t.push(r),r},f=function(n){return n?n.__browserLink_sourceMapping||tt(n).value:null},at=function(n){return f(n)!=null},s=function(n,t){n&&(n.__browserLink_sourceMapping=t,tt(n).value=t)},a=function(n){return n.toLowerCase()},ut=function(n){return v[a(n)]},ft=function(n){return r.push(n),v[a(n)]=n,r.length-1},e=function(n,t){var i=r.indexOf(ut(n));return i<0&&(i=ft(n,t)),t&&(v[a(t)]=n),i},w=function(n,t){return n.isTemplateLike||n.isParentTemplateLike?t.length%n.elements.length==0:t.length==n.elements.length},d=function(n){var r,o,e,t,f,h,u,s;for(i.push(n),r=i.length-1;r<i.length;r++)for(o=i[r],e=0;e<o.elements.length;e++)if(t=o.elements[e],t){for(f=0;f<t.children.length;f++)h=t.children[f],i.push(h);for(u=0;u<t.ancestors.length;u++)s=t.ancestors[u],i.push(s)}},gt=function(n){for(var t=0;t<i.length;t++)i[t]==n&&(i[t]=null)},kt=function(n,t,i){var r=n.start,f=n.length,o=r+f,e=n.startTag||0,s=r+e,u=t-i;r>=t?u>=o?(r=t,f=0,e=0):u>r?(f=o-u,r=t,e=u>=s?0:s-u):r+=i:s>t?(u>s?e=t-r:e+=i,u>o?f=t-r:f+=i):o>t&&(u>o?f=t-r:f+=i),n.start=r,n.length=f,n.startTag&&(n.startTag=e)},dt=function(n,t){for(var f,e,i,r;t.length>=2;)for(f=t.shift(),e=t.shift(),i=0;i<u.length;i++)r=u[i],r.sourceIndex==n&&kt(r,f,e)},bt=function(t){y=!0,n.invokeAsync("getChangesInFiles",r).continueWith(function(){y=!1,t&&t()})},wt=function(n){return t(n)},ii=function(n,i){for(var u=t(n),f=i.split(">"),r=0;r<f.length;r++)u=u.children(f[r]);return u},ri=function(n,i){return t(n).parents(i)},ti=function(n,t){var i=t(n.selector);w(n,i)?(i.each(function(t,i){var e=t%n.elements.length,r=n.elements[e],u,f;r!=null&&(s(i,r),u=r.children,h(u,0,u.length||1,null,ii.bind(null,i)),f=r.ancestors,h(f,0,f.length||1,null,ri.bind(null,i)))}),n.isTemplateLike&&d(n)):d(n)},h=function(n,t,i,r,u){for(var f=t;f<t+i;f++){if(f>=n.length){r&&r();return}ti(n[f],u)}t+i<=n.length&&setTimeout(function(){h(n,t+i,i,r,u)},5)},ni=function(n,t){h(n,0,10,t,wt)},p=function(n,t){var v=[],l,o,r,a,s,i,f,h,e,c;if(n)for(l=0;l<n.length;l++)for(o=n[l],r={selector:o[0],elements:[],isTemplateLike:!1},v.push(r),a=1;a<o.length;a++){if(s=o[a],i=null,s){for(f=s[0],h=s.length>=2?s[1]:{},i={selectorData:r,sourceIndex:f[0]+t,start:f[1],length:f[2],startTag:f.length>=4?f[3]:null,children:p(h.children,t),ancestors:p(h.ancestors,t)},h.templateLike&&o.length==2&&(r.isTemplateLike=!0,r.isInTemplateLike=!0),e=0;e<i.children.length;e++)i.children[e].parent=i,i.children[e].isParentTemplateLike=r.isTemplateLike,i.children[e].isInTemplateLike=r.isInTemplateLike;for(c=0;c<i.ancestors.length;c++)i.ancestors[c].descendant=i;u.push(i)}r.elements.push(i)}return v},ht=function(n){try{var t=n.cssRules;return t||(t=n.rules),t}catch(i){return null}},g=function(n,t,i){var f=ht(n),u,r;if(f)for(u=0;u<f.length;u++)r=f[u],r.type==1?(t.push(r),i.push(r.selectorText)):r.type==4?(t.push(r),i.push(r.media.mediaText),g(r,t,i)):r.type==3&&b(r.styleSheet)},ot=function(n,t,i){for(var h=e(t.resolvedPath,n),o=t.ranges,f,r=0;r<i.length&&r<o.length;r++)f=o[r],f&&(f.sourceIndex=h,s(i[r],f),u.push(f))},et=function(n){return ut(n.href)!=null},b=function(t){if(t.href&&!et(t)){var r=[],i=[];g(t,i,r),c++,n.invokeAsync("getCssMappingData",t.href,r).continueWith(function(r){try{r||(r={resolvedPath:t.href,ranges:[]}),ot(t.href,r,i)}catch(u){}c--,n.sourceMapping.ensureUpToDateAsync(null)})}},vt=function(){var t,n;if(!(c>0))for(t=document.styleSheets,n=0;n<t.length;n++)b(t[n])},o=function(){rt=!0,n.sourceMapping.ensureUpToDateAsync(null)},k=function(t){it=!0,n.invokeAsync("resolveSourceFilePaths",t.files).continueWith(function(n){var f,i,u;try{for(f=r.length,i=0;i<n.length;i++)ft(n[i],t.files[i]);u=p(t.map,f),ni(u,o)}catch(e){o()}})},ct=function(n){n?t.ajax(n,{dataType:"json",data:{version:2},cache:!0,success:k,error:o}):o()},lt=function(){if(!it&&n.initializationData&&n.initializationData.requestId)if(n.initializationData.requestMappingFromServer==!1)n.invokeAsync("getMappingData",n.initializationData.requestId).continueWith(k);else{var t="~/__browserLink/requestData/"+n.initializationData.requestId;n.invokeAsync("resolveUrl",t).continueWith(ct)}else o()};return n.addSharedService("sourceMapping",new pt),{applyChangesInFile:function(n,t){var i=r.indexOf(n);return i>=0?(dt(i,t),!0):!1},onConnected:function(){Array.prototype.indexOf&&(lt(),n.sourceMapping.ensureUpToDateAsync(null))}}})); } catch(e) { this.log("Invalid extension script encountered for extension 'Microsoft.VisualStudio.Web.BrowserLink.SourceMappingExtensionFactory'."); return; }
try { this.addExtension("Microsoft.VisualStudio.Web.BrowserLink.CoreExtensionFactory", (function(n){"use strict";return{log:function(t){n.log(t)}}})); } catch(e) { this.log("Invalid extension script encountered for extension 'Microsoft.VisualStudio.Web.BrowserLink.CoreExtensionFactory'."); return; }
},generateId:function(){return this.nextId++,this.nextId<0&&(this.nextId=0),this.nextId},createTask:function(){var n={id:i.generateId(),callback:null,continueWith:function(n){if(typeof n=="function")if(this.callback){var t=this.callback;this.callback=function(i){n(t(i))}}else this.callback=n;return this},setResult:function(n){this.callback!==null&&this.callback(n)}};return this.callbackTable[n.id]=n,n},removeTask:function(n){delete this.callbackTable[n]},addExtension:function(f,e){var o={},s,l,c,h;if(typeof e!="function"){this.log("Extension function definition was not defined as a function object.");return}l=function(n,t){if(typeof n=="undefined")throw new Error("Browser Link: Method call failed, missing method name argument.");if(!t)throw new Error('Method call failed, missing class name. Use the format "namespace."methodName"');return t+"."+n},c=function(n){for(var i=[],t=1;t<n.length;t++)i.push(n[t]);return i},o.json=t,o.initializationData=this.initializationData,o.log=this.log,o.invoke=function(n){var r=l(n,this.factoryName),t=c(arguments);i.invoke(r,!1,t)},o.invokeAsync=function(n){var r=l(n,this.factoryName),t=c(arguments);return i.invoke(r,!0,t)},o.addSharedService=function(n,t){u[n]=t;for(var i=0;i<r.length;i++)r[i][n]=t};for(h in u)o[h]=u[h];r.push(o),s=e(o,n),o.factoryName=s.name=f.toLowerCase(),this.extensions[o.factoryName]=s,s.onConnected&&this.inits.push(s)},reset:function(){this.extensions=[],this.inits=[],this.callbackTable=[],this.nextId=0,this.isUnloading=!1,this.connection=null},initialize:function(){var e,f,o,s,u,r;window.browserLink=i,u=n("script#__browserLink_initializationData").html(),r=u?t.parse(u):null,i.initializationData=r,e=function(){return{requestUrl:document.location.href,browserName:r?r.appName:"",userAgent:navigator?navigator.userAgent:null}},s=e(),this.connection=n.connection("http://localhost:50500/cfe083c868434913b1ad7569b1337636/browserLinkSignalR",s),this.connection.json=t,this.connection.received(function(t){try{var r=n.parseJSON(t);r.name&&r.args&&i.dispatchCallback(r.name,r.args,r.callbackId)}catch(u){}}),this.connection.stateChanged(function(t){t.newState===n.signalR.connectionState.disconnected&&(i.isReconnecting||i.isUnloading||(i.isReconnecting=!0,window.setTimeout(function(){i.reset(),i.initialize()},25)))}),f=function(){if(i.isReconnecting){i.isReconnecting=!1;for(var n=0;n<i.inits.length;n++)typeof i.inits[n].onReconnected!="undefined"&&i.inits[n].onReconnecting()}else i.addExtensions();i.invoke("Microsoft.VisualStudio.Web.BrowserLink.CoreExtensionFactory.connected",!0).continueWith(function(){for(var n=0;n<i.inits.length;n++)i.inits[n].onConnected()})},o=function(n){var u,f,t,i,r;if(u=function(){return navigator.userAgent.search(/msie /i)>=0||navigator.userAgent.search(/trident/i)>=0?!0:!1},u()&&(f=window.location,t=window.document.createElement("a"),t.href=n,i=function(n){return n&&n.indexOf(".")<0?!0:!1},i(t.hostname)&&!i(f.hostname)))return!1;try{return r=new XMLHttpRequest,r.open("get",n),!0}catch(e){return!1}},o(i.connection.url)?i.connection.start().done(f):i.connection.start({transport:"longPolling",jsonp:!0}).done(f)}};n(window).on("beforeunload",function(){i.isUnloading=!0});if(i.initialize(),window._vwdonbeforeunload)n(window).on("beforeunload",window._vwdonbeforeunload)})($.noConflict(!0),JSON),window._vwdJSON&&(JSON=window._vwdJSON),window._vwdDefine&&(define=window._vwdDefine)
;
 
Last edited:
Top Bottom