PageSourceSearch

https://admin.tracker.com/ScriptResource.axd?d=sV_E8qHJTL1rGUX5BB5…aMPXJLebtBN2fyPg9399Ltg2&t=ffffffffbec1863d

js tracker.com collected 2026-09-24 12:11:36 UTC 101,390 bytes, 2,056 lines download raw bytes

1// Name:        MicrosoftAjaxWebForms.debug.js
2// Assembly:    System.Web.Extensions
3// Version:     4.0.0.0
4// FileVersion: 4.8.4805.0
5//-----------------------------------------------------------------------
6// Copyright (C) Microsoft Corporation. All rights reserved.
7//-----------------------------------------------------------------------
8// MicrosoftAjaxWebForms.js
9// Microsoft AJAX ASP.NET WebForms Framework.
10Type._registerScript("MicrosoftAjaxWebForms.js", [
11	"MicrosoftAjaxCore.js",
12	"MicrosoftAjaxSerialization.js",
13	"MicrosoftAjaxNetwork.js",
14	"MicrosoftAjaxComponentModel.js"]);
15Type.registerNamespace('Sys.WebForms');
16Sys.WebForms.BeginRequestEventArgs = function Sys$WebForms$BeginRequestEventArgs(request, postBackElement, updatePanelsToUpdate) {
17    /// <summary locid="M:J#Sys.WebForms.BeginRequestEventArgs.#ctor" />
18    /// <param name="request" type="Sys.Net.WebRequest"></param>
19    /// <param name="postBackElement" domElement="true" mayBeNull="true"></param>
20    /// <param name="updatePanelsToUpdate" type="Array" elementType="String" mayBeNull="true" optional="true"></param>
21    var e = Function._validateParams(arguments, [
22        {name: "request", type: Sys.Net.WebRequest},
23        {name: "postBackElement", mayBeNull: true, domElement: true},
24        {name: "updatePanelsToUpdate", type: Array, mayBeNull: true, optional: true, elementType: String}
25    ]);
26    if (e) throw e;
27    Sys.WebForms.BeginRequestEventArgs.initializeBase(this);
28    this._request = request;
29    this._postBackElement = postBackElement;
30    this._updatePanelsToUpdate = updatePanelsToUpdate;
31}
32    function Sys$WebForms$BeginRequestEventArgs$get_postBackElement() {
33        /// <value domElement="true" mayBeNull="true" locid="P:J#Sys.WebForms.BeginRequestEventArgs.postBackElement"></value>
34        if (arguments.length !== 0) throw Error.parameterCount();
35        return this._postBackElement;
36    }
37    function Sys$WebForms$BeginRequestEventArgs$get_request() {
38        /// <value type="Sys.Net.WebRequest" locid="P:J#Sys.WebForms.BeginRequestEventArgs.request"></value>
39        if (arguments.length !== 0) throw Error.parameterCount();
40        return this._request;
41    }
42    function Sys$WebForms$BeginRequestEventArgs$get_updatePanelsToUpdate() {
43        /// <value type="Array" elementType="String" locid="P:J#Sys.WebForms.BeginRequestEventArgs.updatePanelsToUpdate"></value>
44        if (arguments.length !== 0) throw Error.parameterCount();
45        return this._updatePanelsToUpdate ? Array.clone(this._updatePanelsToUpdate) : [];
46    }
47Sys.WebForms.BeginRequestEventArgs.prototype = {
48    get_postBackElement: Sys$WebForms$BeginRequestEventArgs$get_postBackElement,
49    get_request: Sys$WebForms$BeginRequestEventArgs$get_request,
50    get_updatePanelsToUpdate: Sys$WebForms$BeginRequestEventArgs$get_updatePanelsToUpdate
51}
52Sys.WebForms.BeginRequestEventArgs.registerClass('Sys.WebForms.BeginRequestEventArgs', Sys.EventArgs);
53 
54Sys.WebForms.EndRequestEventArgs = function Sys$WebForms$EndRequestEventArgs(error, dataItems, response) {
55    /// <summary locid="M:J#Sys.WebForms.EndRequestEventArgs.#ctor" />
56    /// <param name="error" type="Error" mayBeNull="true"></param>
57    /// <param name="dataItems" type="Object" mayBeNull="true"></param>
58    /// <param name="response" type="Sys.Net.WebRequestExecutor"></param>
59    var e = Function._validateParams(arguments, [
60        {name: "error", type: Error, mayBeNull: true},
61        {name: "dataItems", type: Object, mayBeNull: true},
62        {name: "response", type: Sys.Net.WebRequestExecutor}
63    ]);
64    if (e) throw e;
65    Sys.WebForms.EndRequestEventArgs.initializeBase(this);
66    this._errorHandled = false;
67    this._error = error;
68    this._dataItems = dataItems || new Object();
69    this._response = response;
70}
71    function Sys$WebForms$EndRequestEventArgs$get_dataItems() {
72        /// <value type="Object" locid="P:J#Sys.WebForms.EndRequestEventArgs.dataItems"></value>
73        if (arguments.length !== 0) throw Error.parameterCount();
74        return this._dataItems;
75    }
76    function Sys$WebForms$EndRequestEventArgs$get_error() {
77        /// <value type="Error" locid="P:J#Sys.WebForms.EndRequestEventArgs.error"></value>
78        if (arguments.length !== 0) throw Error.parameterCount();
79        return this._error;
80    }
81    function Sys$WebForms$EndRequestEventArgs$get_errorHandled() {
82        /// <value type="Boolean" locid="P:J#Sys.WebForms.EndRequestEventArgs.errorHandled"></value>
83        if (arguments.length !== 0) throw Error.parameterCount();
84        return this._errorHandled;
85    }
86    function Sys$WebForms$EndRequestEventArgs$set_errorHandled(value) {
87        var e = Function._validateParams(arguments, [{name: "value", type: Boolean}]);
88        if (e) throw e;
89        this._errorHandled = value;
90    }
91    function Sys$WebForms$EndRequestEventArgs$get_response() {
92        /// <value type="Sys.Net.WebRequestExecutor" locid="P:J#Sys.WebForms.EndRequestEventArgs.response"></value>
93        if (arguments.length !== 0) throw Error.parameterCount();
94        return this._response;
95    }
96Sys.WebForms.EndRequestEventArgs.prototype = {
97    get_dataItems: Sys$WebForms$EndRequestEventArgs$get_dataItems,
98    get_error: Sys$WebForms$EndRequestEventArgs$get_error,
99    get_errorHandled: Sys$WebForms$EndRequestEventArgs$get_errorHandled,
100    set_errorHandled: Sys$WebForms$EndRequestEventArgs$set_errorHandled,
101    get_response: Sys$WebForms$EndRequestEventArgs$get_response
102}
103Sys.WebForms.EndRequestEventArgs.registerClass('Sys.WebForms.EndRequestEventArgs', Sys.EventArgs);
104Sys.WebForms.InitializeRequestEventArgs = function Sys$WebForms$InitializeRequestEventArgs(request, postBackElement, updatePanelsToUp
104date) {
105    /// <summary locid="M:J#Sys.WebForms.InitializeRequestEventArgs.#ctor" />
106    /// <param name="request" type="Sys.Net.WebRequest"></param>
107    /// <param name="postBackElement" domElement="true" mayBeNull="true"></param>
108    /// <param name="updatePanelsToUpdate" type="Array" elementType="String" mayBeNull="true" optional="true"></param>
109    var e = Function._validateParams(arguments, [
110        {name: "request", type: Sys.Net.WebRequest},
111        {name: "postBackElement", mayBeNull: true, domElement: true},
112        {name: "updatePanelsToUpdate", type: Array, mayBeNull: true, optional: true, elementType: String}
113    ]);
114    if (e) throw e;
115    Sys.WebForms.InitializeRequestEventArgs.initializeBase(this);
116    this._request = request;
117    this._postBackElement = postBackElement;
118    this._updatePanelsToUpdate = updatePanelsToUpdate;
119}
120    function Sys$WebForms$InitializeRequestEventArgs$get_postBackElement() {
121        /// <value domElement="true" mayBeNull="true" locid="P:J#Sys.WebForms.InitializeRequestEventArgs.postBackElement"></value>
122        if (arguments.length !== 0) throw Error.parameterCount();
123        return this._postBackElement;
124    }
125    function Sys$WebForms$InitializeRequestEventArgs$get_request() {
126        /// <value type="Sys.Net.WebRequest" locid="P:J#Sys.WebForms.InitializeRequestEventArgs.request"></value>
127        if (arguments.length !== 0) throw Error.parameterCount();
128        return this._request;
129    }
130    function Sys$WebForms$InitializeRequestEventArgs$get_updatePanelsToUpdate() {
131        /// <value type="Array" elementType="String" locid="P:J#Sys.WebForms.InitializeRequestEventArgs.updatePanelsToUpdate"></value>
132        if (arguments.length !== 0) throw Error.parameterCount();
133        return this._updatePanelsToUpdate ? Array.clone(this._updatePanelsToUpdate) : [];
134    }
135    function Sys$WebForms$InitializeRequestEventArgs$set_updatePanelsToUpdate(value) {
136        var e = Function._validateParams(arguments, [{name: "value", type: Array, elementType: String}]);
137        if (e) throw e;
138        this._updated = true;
139        this._updatePanelsToUpdate = value;
140    }
141Sys.WebForms.InitializeRequestEventArgs.prototype = {
142    get_postBackElement: Sys$WebForms$InitializeRequestEventArgs$get_postBackElement,
143    get_request: Sys$WebForms$InitializeRequestEventArgs$get_request,
144    get_updatePanelsToUpdate: Sys$WebForms$InitializeRequestEventArgs$get_updatePanelsToUpdate,
145    set_updatePanelsToUpdate: Sys$WebForms$InitializeRequestEventArgs$set_updatePanelsToUpdate
146}
147Sys.WebForms.InitializeRequestEventArgs.registerClass('Sys.WebForms.InitializeRequestEventArgs', Sys.CancelEventArgs);
148 
149Sys.WebForms.PageLoadedEventArgs = function Sys$WebForms$PageLoadedEventArgs(panelsUpdated, panelsCreated, dataItems) {
150    /// <summary locid="M:J#Sys.WebForms.PageLoadedEventArgs.#ctor" />
151    /// <param name="panelsUpdated" type="Array"></param>
152    /// <param name="panelsCreated" type="Array"></param>
153    /// <param name="dataItems" type="Object" mayBeNull="true"></param>
154    var e = Function._validateParams(arguments, [
155        {name: "panelsUpdated", type: Array},
156        {name: "panelsCreated", type: Array},
157        {name: "dataItems", type: Object, mayBeNull: true}
158    ]);
159    if (e) throw e;
160    Sys.WebForms.PageLoadedEventArgs.initializeBase(this);
161    this._panelsUpdated = panelsUpdated;
162    this._panelsCreated = panelsCreated;
163    this._dataItems = dataItems || new Object();
164}
165    function Sys$WebForms$PageLoadedEventArgs$get_dataItems() {
166        /// <value type="Object" locid="P:J#Sys.WebForms.PageLoadedEventArgs.dataItems"></value>
167        if (arguments.length !== 0) throw Error.parameterCount();
168        return this._dataItems;
169    }
170    function Sys$WebForms$PageLoadedEventArgs$get_panelsCreated() {
171        /// <value type="Array" locid="P:J#Sys.WebForms.PageLoadedEventArgs.panelsCreated"></value>
172        if (arguments.length !== 0) throw Error.parameterCount();
173        return this._panelsCreated;
174    }
175    function Sys$WebForms$PageLoadedEventArgs$get_panelsUpdated() {
176        /// <value type="Array" locid="P:J#Sys.WebForms.PageLoadedEventArgs.panelsUpdated"></value>
177        if (arguments.length !== 0) throw Error.parameterCount();
178        return this._panelsUpdated;
179    }
180Sys.WebForms.PageLoadedEventArgs.prototype = {
181    get_dataItems: Sys$WebForms$PageLoadedEventArgs$get_dataItems,
182    get_panelsCreated: Sys$WebForms$PageLoadedEventArgs$get_panelsCreated,
183    get_panelsUpdated: Sys$WebForms$PageLoadedEventArgs$get_panelsUpdated
184}
185Sys.WebForms.PageLoadedEventArgs.registerClass('Sys.WebForms.PageLoadedEventArgs', Sys.EventArgs);
186Sys.WebForms.PageLoadingEventArgs = function Sys$WebForms$PageLoadingEventArgs(panelsUpdating, panelsDeleting, dataItems) {
187    /// <summary locid="M:J#Sys.WebForms.PageLoadingEventArgs.#ctor" />
188    /// <param name="panelsUpdating" type="Array"></param>
189    /// <param name="panelsDeleting" type="Array"></param>
190    /// <param name="dataItems" type="Object" mayBeNull="true"></param>
191    var e = Function._validateParams(arguments, [
192        {name: "panelsUpdating", type: Array},
193        {name: "panelsDeleting", type: Array},
194        {name: "dataItems", type: Object, mayBeNull: true}
195    ]);
196    if (e) throw e;
197    Sys.WebForms.PageLoadingEventArgs.initializeBase(this);
198    this._panelsUpdating = panelsUpdating;
199    this._panelsDeleting = panelsDeleting;
200    this._dataItems = dataItems || new Object();
201}
202    function Sys$WebForms$PageLoadingEventArgs$get_dataItems() {
203        /// <value type="Object" locid="P:J#Sys.WebForms.PageLoadingEventArgs.dataItems"></value>
204        if (arguments.length !== 0) throw Error.parameterCount();
205        return this._dataItems;
206    }
207    function Sys$WebForms$PageLoadingEventArgs$get_panelsDeleting() {
208        /// <value type="Array" locid="P:J#Sys.WebForms.PageLoadingEventArgs.panelsDeleting"></value>
209        if (arguments.length !== 0) throw Error.parameterCount();
210        return this._panelsDeleting;
211    }
212    function Sys$WebForms$PageLoadingEventArgs$get_panelsUpdating() {
213        /// <value type="Array" locid="P:J#Sys.WebForms.PageLoadingEventArgs.panelsUpdating"></value>
214        if (arguments.length !== 0) throw Error.parameterCount();
215        return this._panelsUpdating;
216    }
217Sys.WebForms.PageLoadingEventArgs.prototype = {
218    get_dataItems: Sys$WebForms$PageLoadingEventArgs$get_dataItems,
219    get_panelsDeleting: Sys$WebForms$PageLoadingEventArgs$get_panelsDeleting,
220    get_panelsUpdating: Sys$WebForms$PageLoadingEventArgs$get_panelsUpdating
221}
222Sys.WebForms.PageLoadingEventArgs.registerClass('Sys.WebForms.PageLoadingEventArgs', Sys.EventArgs);
223 
224Sys._ScriptLoader = function Sys$_ScriptLoader() {
225    this._scriptsToLoad = null;
226    this._sessions = [];
227    this._scriptLoadedDelegate = Function.createDelegate(this, this._scriptLoadedHandler);
228}
229    function Sys$_ScriptLoader$dispose() {
230        this._stopSession();
231        this._loading = false;
232        if(this._events) {
233            delete this._events;
234        }
235        this._sessions = null;
236        this._currentSession = null;
237        this._scriptLoadedDelegate = null;        
238    }
239    function Sys$_ScriptLoader$loadScripts(scriptTimeout, allScriptsLoadedCallback, scriptLoadFailedCallback, scriptLoadTimeoutCallback) {
240        /// <summary locid="M:J#Sys._ScriptLoader.loadScripts" />
241        /// <param name="scriptTimeout" type="Number" integer="true"></param>
242        /// <param name="allScriptsLoadedCallback" type="Function" mayBeNull="true"></param>
243        /// <param name="scriptLoadFailedCallback" type="Function" mayBeNull="true"></param>
244        /// <param name="scriptLoadTimeoutCallback" type="Function" mayBeNull="true"></param>
245        var e = Function._validateParams(arguments, [
246            {name: "scriptTimeout", type: Number, integer: true},
247            {name: "allScriptsLoadedCallback", type: Function, mayBeNull: true},
248            {name: "scriptLoadFailedCallback", type: Function, mayBeNull: true},
249            {name: "scriptLoadTimeoutCallback", type: Function, mayBeNull: true}
250        ]);
251        if (e) throw e;
252        var session = {
253            allScriptsLoadedCallback: allScriptsLoadedCallback,
254            scriptLoadFailedCallback: scriptLoadFailedCallback,
255            scriptLoadTimeoutCallback: scriptLoadTimeoutCallback,
256            scriptsToLoad: this._scriptsToLoad,
257            scriptTimeout: scriptTimeout };
258        this._scriptsToLoad = null;
259        this._sessions[this._sessions.length] = session;
260        
261        if (!this._loading) {
262            this._nextSession();
263        }
264    }
265    function Sys$_ScriptLoader$queueCustomScriptTag(scriptAttributes) {
266        /// <summary locid="M:J#Sys._ScriptLoader.queueCustomScriptTag" />
267        /// <param name="scriptAttributes" mayBeNull="false"></param>
268        var e = Function._validateParams(arguments, [
269            {name: "scriptAttributes"}
270        ]);
271        if (e) throw e;
272        if(!this._scriptsToLoad) {
273            this._scriptsToLoad = [];
274        }
275        Array.add(this._scriptsToLoad, scriptAttributes);
276    }
277    function Sys$_ScriptLoader$queueScriptBlock(scriptContent) {
278        /// <summary locid="M:J#Sys._ScriptLoader.queueScriptBlock" />
279        /// <param name="scriptContent" type="String" mayBeNull="false"></param>
280        var e = Function._validateParams(arguments, [
281            {name: "scriptContent", type: String}
282        ]);
283        if (e) throw e;
284        if(!this._scriptsToLoad) {
285            this._scriptsToLoad = [];
286        }
287        Array.add(this._scriptsToLoad, {text: scriptContent});
288    }
289    function Sys$_ScriptLoader$queueScriptReference(scriptUrl, fallback) {
290        /// <summary locid="M:J#Sys._ScriptLoader.queueScriptReference" />
291        /// <param name="scriptUrl" type="String" mayBeNull="false"></param>
292        /// <param name="fallback" mayBeNull="true" optional="true"></param>
293        var e = Function._validateParams(arguments, [
294            {name: "scriptUrl", type: String},
295            {name: "fallback", mayBeNull: true, optional: true}
296        ]);
297        if (e) throw e;
298        if(!this._scriptsToLoad) {
299            this._scriptsToLoad = [];
300        }
301        Array.add(this._scriptsToLoad, {src: scriptUrl, fallback: fallback});
302    }
303    function Sys$_ScriptLoader$_createScriptElement(queuedScript) {
304        var scriptElement = document.createElement('script');
305        scriptElement.type = 'text/javascript';
306        for (var attr in queuedScript) {
307            scriptElement[attr] = queuedScript[attr];
308        }
309        
310        return scriptElement;
311    }
312    function Sys$_ScriptLoader$_loadScriptsInternal() {
313        var session = this._currentSession;
314        if (session.scriptsToLoad && session.scriptsToLoad.length > 0) {
315            var nextScript = Array.dequeue(session.scriptsToLoad);
316            var onLoad = this._scriptLoadedDelegate;
317            if (nextScript.fallback) {
318                var fallback = nextScript.fallback;
319                delete nextScript.fallback;
320                
321                var self = this;
322                onLoad = function(scriptElement, loaded) {
323                    loaded || (function() {
324                        var fallbackScriptElement = self._createScriptElement({src: fallback});
325                        self._currentTask = new Sys._ScriptLoaderTask(fallbackScriptElement, self._scriptLoadedDelegate);
326                        self._currentTask.execute();
327                    })();
328                };
329            }            
330            var scriptElement = this._createScriptElement(nextScript);
331            
332            if (scriptElement.text && Sys.Browser.agent === Sys.Browser.Safari) {
333                scriptElement.innerHTML = scriptElement.text;
334                delete scriptElement.text;
335            }            
336            if (typeof(nextScript.src) === "string") {
337                this._currentTask = new Sys._ScriptLoaderTask(scriptElement, onLoad);
338                this._currentTask.execute();
339            }
340            else {
341                var headElements = document.getElementsByTagName('head');
342                if (headElements.length === 0) {
343                     throw new Error.invalidOperation(Sys.Res.scriptLoadFailedNoHead);
344                }
345                else {
346                     headElements[0].appendChild(scriptElement);
347                }
348                
349                
350                Sys._ScriptLoaderTask._clearScript(scriptElement);
351                this._loadScriptsInternal();
352            }
353        }
354        else {
355            this._stopSession();
356            var callback = session.allScriptsLoadedCallback;
357            if(callback) {
358                callback(this);
359            }
360            this._nextSession();
361        }
362    }
363    function Sys$_ScriptLoader$_nextSession() {
364        if (this._sessions.length === 0) {
365            this._loading = false;
366            this._currentSession = null;
367            return;
368        }
369        this._loading = true;
370        
371        var session = Array.dequeue(this._sessions);
372        this._currentSession = session;
373        this._loadScriptsInternal();
374    }
375    function Sys$_ScriptLoader$_raiseError() {
376        var callback = this._currentSession.scriptLoadFailedCallback;
377        var scriptElement = this._currentTask.get_scriptElement();
378        this._stopSession();
379        
380        if(callback) {
381            callback(this, scriptElement);
382            this._nextSession();
383        }
384        else {
385            this._loading = false;
386            throw Sys._ScriptLoader._errorScriptLoadFailed(scriptElement.src);
387        }
388    }
389    function Sys$_ScriptLoader$_scriptLoadedHandler(scriptElement, loaded) {
390        if (loaded) {
391            Array.add(Sys._ScriptLoader._getLoadedScripts(), scriptElement.src);
392            this._currentTask.dispose();
393            this._currentTask = null;
394            this._loadScriptsInternal();
395        }
396        else {
397            this._raiseError();
398        }
399    }
400    function Sys$_ScriptLoader$_stopSession() {
401        if(this._currentTask) {
402            this._currentTask.dispose();
403            this._currentTask = null;
404        }
405    }
406Sys._ScriptLoader.prototype = {
407    dispose: Sys$_ScriptLoader$dispose,
408    loadScripts: Sys$_ScriptLoader$loadScripts,
409    queueCustomScriptTag: Sys$_ScriptLoader$queueCustomScriptTag,
410    queueScriptBlock: Sys$_ScriptLoader$queueScriptBlock,
411    queueScriptReference: Sys$_ScriptLoader$queueScriptReference,
412    _createScriptElement: Sys$_ScriptLoader$_createScriptElement,
413    _loadScriptsInternal: Sys$_ScriptLoader$_loadScriptsInternal,
414    _nextSession: Sys$_ScriptLoader$_nextSession,
415    _raiseError: Sys$_ScriptLoader$_raiseError,
416    _scriptLoadedHandler: Sys$_ScriptLoader$_scriptLoadedHandler,
417    _stopSession: Sys$_ScriptLoader$_stopSession    
418}
419Sys._ScriptLoader.registerClass('Sys._ScriptLoader', null, Sys.IDisposable);
420Sys._ScriptLoader.getInstance = function Sys$_ScriptLoader$getInstance() {
421    var sl = Sys._ScriptLoader._activeInstance;
422    if(!sl) {
423        sl = Sys._ScriptLoader._activeInstance = new Sys._ScriptLoader();
424    }
425    return sl;
426}
427Sys._ScriptLoader.isScriptLoaded = function Sys$_ScriptLoader$isScriptLoaded(scriptSrc) {
428    var dummyScript = document.createElement('script');
429    dummyScript.src = scriptSrc;
430    return Array.contains(Sys._ScriptLoader._getLoadedScripts(), dummyScript.src);
431}
432Sys._ScriptLoader.readLoadedScripts = function Sys$_ScriptLoader$readLoadedScripts() {
433    if(!Sys._ScriptLoader._referencedScripts) {
434        var referencedScripts = Sys._ScriptLoader._referencedScripts = [];
435        var existingScripts = document.getElementsByTagName('script');
436        for (var i = existingScripts.length - 1; i >= 0; i--) {
437            var scriptNode = existingScripts[i];
438            var scriptSrc = scriptNode.src;
439            if (scriptSrc.length) {
440                if (!Array.contains(referencedScripts, scriptSrc)) {
441                    Array.add(referencedScripts, scriptSrc);
442                }
443            }
444        }
445    }
446}
447Sys._ScriptLoader._errorScriptLoadFailed = function Sys$_ScriptLoader$_errorScriptLoadFailed(scriptUrl) {
448    var errorMessage;
449    errorMessage = Sys.Res.scriptLoadFailedDebug;
450    var displayMessage = "Sys.ScriptLoadFailedException: " + String.format(errorMessage, scriptUrl);
451    var e = Error.create(displayMessage, {name: 'Sys.ScriptLoadFailedException', 'scriptUrl': scriptUrl });
452    e.popStackFrame();
453    return e;
454}
455Sys._ScriptLoader._getLoadedScripts = function Sys$_ScriptLoader$_getL
455oadedScripts() {
456    if(!Sys._ScriptLoader._referencedScripts) {
457        Sys._ScriptLoader._referencedScripts = [];
458        Sys._ScriptLoader.readLoadedScripts();
459    }
460    return Sys._ScriptLoader._referencedScripts;
461}
462 
463Sys.WebForms.PageRequestManager = function Sys$WebForms$PageRequestManager() {
464    this._form = null;
465    this._activeDefaultButton = null;
466    this._activeDefaultButtonClicked = false;
467    this._updatePanelIDs = null;
468    this._updatePanelClientIDs = null;
469    this._updatePanelHasChildrenAsTriggers = null;
470    this._asyncPostBackControlIDs = null;
471    this._asyncPostBackControlClientIDs = null;
472    this._postBackControlIDs = null;
473    this._postBackControlClientIDs = null;
474    this._scriptManagerID = null;
475    this._pageLoadedHandler = null;
476    this._additionalInput = null;
477    this._onsubmit = null;
478    this._onSubmitStatements = [];
479    this._originalDoPostBack = null;
480    this._originalDoPostBackWithOptions = null;
481    this._originalFireDefaultButton = null;
482    this._originalDoCallback = null;
483    this._isCrossPost = false;
484    this._postBackSettings = null;
485    this._request = null;
486    this._onFormSubmitHandler = null;
487    this._onFormElementClickHandler = null;
488    this._onWindowUnloadHandler = null;
489    this._asyncPostBackTimeout = null;
490    this._controlIDToFocus = null;
491    this._scrollPosition = null;
492    this._processingRequest = false;
493    this._scriptDisposes = {};
494    
495    this._transientFields = ["__VIEWSTATEENCRYPTED", "__VIEWSTATEFIELDCOUNT"];
496    this._textTypes = /^(text|password|hidden|search|tel|url|email|number|range|c
496olor|datetime|date|month|week|time|datetime-local)$/i;
497}
498    function Sys$WebForms$PageRequestManager$_get_eventHandlerList() {
499        if (!this._events) {
500            this._events = new Sys.EventHandlerList();
501        }
502        return this._events;
503    }
504    function Sys$WebForms$PageRequestManager$get_isInAsyncPostBack() {
505        /// <value type="Boolean" locid="P:J#Sys.WebForms.PageRequestManager.isInAsyncPostBack"></value>
506        if (arguments.length !== 0) throw Error.parameterCount();
507        return this._request !== null;
508    }
509    function Sys$WebForms$PageRequestManager$add_beginRequest(handler) {
510        /// <summary locid="E:J#Sys.WebForms.PageRequestManager.beginRequest" />
511        var e = Function._validateParams(arguments, [{name: "handler", type: Function}]);
512        if (e) throw e;
513        this._get_eventHandlerList().addHandler("beginRequest", handler);
514    }
515    function Sys$WebForms$PageRequestManager$remove_beginRequest(handler) {
516        var e = Function._validateParams(arguments, [{name: "handler", type: Function}]);
517        if (e) throw e;
518        this._get_eventHandlerList().removeHandler("beginRequest", handler);
519    }
520    function Sys$WebForms$PageRequestManager$add_endRequest(handler) {
521        /// <summary locid="E:J#Sys.WebForms.PageRequestManager.endRequest" />
522        var e = Function._validateParams(arguments, [{name: "handler", type: Function}]);
523        if (e) throw e;
524        this._get_eventHandlerList().addHandler("endRequest", handler);
525    }
526    function Sys$WebForms$PageRequestManager$remove_endRequest(handler) {
527        var e = Function._validateParams(arguments, [{name: "handler", type: Function}]);
528        if (e) throw e;
529        this._get_eventHandlerList().removeHandler("endRequest", handler);
530    }
531    function Sys$WebForms$PageRequestManager$add_initializeRequest(handler) {
532        /// <summary locid="E:J#Sys.WebForms.PageRequestManager.initializeRequest" />
533        var e = Function._validateParams(arguments, [{name: "handler", type: Function}]);
534        if (e) throw e;
535        this._get_eventHandlerList().addHandler("initializeRequest", handler);
536    }
537    function Sys$WebForms$PageRequestManager$remove_initializeRequest(handler) {
538        var e = Function._validateParams(arguments, [{name: "handler", type: Function}]);
539        if (e) throw e;
540        this._get_eventHandlerList().removeHandler("initializeRequest", handler);
541    }
542    function Sys$WebForms$PageRequestManager$add_pageLoaded(handler) {
543        /// <summary locid="E:J#Sys.WebForms.PageRequestManager.pageLoaded" />
544        var e = Function._validateParams(arguments, [{name: "handler", type: Function}]);
545        if (e) throw e;
546        this._get_eventHandlerList().addHandler("pageLoaded", handler);
547    }
548    function Sys$WebForms$PageRequestManager$remove_pageLoaded(handler) {
549        var e = Function._validateParams(arguments, [{name: "handler", type: Function}]);
550        if (e) throw e;
551        this._get_eventHandlerList().removeHandler("pageLoaded", handler);
552    }
553    function Sys$WebForms$PageRequestManager$add_pageLoading(handler) {
554        /// <summary locid="E:J#Sys.WebForms.PageRequestManager.pageLoading" />
555        var e = Function._validateParams(arguments, [{name: "handler", type: Function}]);
556        if (e) throw e;
557        this._get_eventHandlerList().addHandler("pageLoading", handler);
558    }
559    function Sys$WebForms$PageRequestManager$remove_pageLoading(handler) {
560        var e = Function._validateParams(arguments, [{name: "handler", type: Function}]);
561        if (e) throw e;
562        this._get_eventHandlerList().removeHandler("pageLoading", handler);
563    }
564    function Sys$WebForms$PageRequestManager$abortPostBack() {
565        if (!this._processingRequest && this._request) {
566            this._request.get_executor().abort();
567            this._request = null;
568        }
569    }
570    function Sys$WebForms$PageRequestManager$beginAsyncPostBack(updatePanelsToUpdate, eventTarget, eventArgument, causesValidation, validationGroup) {
571        /// <summary locid="M:J#Sys.WebForms.PageRequestManager.beginAsyncPostBack" />
572        /// <param name="updatePanelsToUpdate" type="Array" elementType="String" mayBeNull="true" optional="true"></param>
573        /// <param name="eventTarget" type="String" mayBeNull="true" optional="true"></param>
574        /// <param name="eventArgument" type="String" mayBeNull="true" optional="true"></param>
575        /// <param name="causesValidation" type="Boolean" mayBeNull="true" optional="true"></param>
576        /// <param name="validationGroup" type="String" mayBeNull="true" optional="true"></param>
577        var e = Function._validateParams(arguments, [
578            {name: "updatePanelsToUpdate", type: Array, mayBeNull: true, optional: true, elementType: String},
579            {name: "eventTarget", type: String, mayBeNull: true, optional: true},
580            {name: "eventArgument", type: String, mayBeNull: true, optional: true},
581            {name: "causesValidation", type: Boolean, mayBeNull: true, optional: true},
582            {name: "validationGroup", type: String, mayBeNull: true, optional: true}
583        ]);
584        if (e) throw e;
585        if (causesValidation && (typeof(Page_ClientValidate) === 'function') && !Page_ClientValidate(validationGroup || null)) {
586            return;
587        }
588        this._postBackSettings = this._createPostBackSettings(true, updatePanelsToUpdate, eventTarget);
589        var form = this._form;
590        form.__EVENTTARGET.value = (eventTarget || "");
591        form.__EVENTARGUMENT.value = (eventArgument || "");
592        this._isCrossPost = false;
593        this._additionalInput = null;
594        this._onFormSubmit();
595    }
596    function Sys$WebForms$PageRequestManager$_cancelPendingCallbacks() {
597        for (var i = 0, l = window.__pendingCallbacks.length; i < l; i++) {
598            var callback = window.__pendingCallbacks[i];
599            if (callback) {
600                if (!callback.async) {
601                    window.__synchronousCallBackIndex = -1;
602                }
603                window.__pendingCallbacks[i] = null;
604                var callbackFrameID = "__CALLBACKFRAME" + i;
605                var xmlRequestFrame = document.getElementById(callbackFrameID);
606                if (xmlRequestFrame) {
607                    xmlRequestFrame.parentNode.removeChild(xmlRequestFrame);
608                }
609            }
610        }
611    }
612    function Sys$WebForms$PageRequestManager$_commitControls(updatePanelData, asyncPostBackTimeout) {
613        if (updatePanelData) {
614            this._updatePanelIDs = updatePanelData.updatePanelIDs;
615            this._updatePanelClientIDs = updatePanelData.updatePanelClientIDs;
616            this._updatePanelHasChildrenAsTriggers = updatePanelData.updatePanelHasChildrenAsTriggers;
617            this._asyncPostBackControlIDs = updatePanelData.asyncPostBackControlIDs;
618            this._asyncPostBackControlClientIDs = updatePanelData.asyncPostBackControlClientIDs;
619            this._postBackControlIDs = updatePanelData.postBackControlIDs;
620            this._postBackControlClientIDs = updatePanelData.postBackControlClientIDs;
621        }
622        if (typeof(asyncPostBackTimeout) !== 'undefined' && asyncPostBackTimeout !== null) {
623            this._asyncPostBackTimeout = asyncPostBackTimeout * 1000;
624        }
625    }
626    function Sys$WebForms$PageRequestManager$_createHiddenField(id, value) {
627        var container, field = document.getElementById(id);
628        if (field) {
629            if (!field._isContained) {
630                field.parentNode.removeChild(field);
631            }
632            else {
633                container = field.parentNode;
634            }
635        }
636        if (!container) {
637            container = document.createElement('span');
638            container.style.cssText = "display:none !important";
639            this._form.appendChild(container);
640        }
641        container.innerHTML = "<input type='hidden' />";
642        field = container.childNodes[0];
643        field._isContained = true;
644        field.id = field.name = id;
645        field.value = value;
646    }
647    function Sys$WebForms$PageRequestManager$_createPageRequestManagerTimeoutError() {
648        var displayMessage = "Sys.WebForms.PageRequestManagerTimeoutException: " + Sys.WebForms.Res.PRM_TimeoutError;
649        var e = Error.create(displayMessage, {name: 'Sys.WebForms.PageRequestManagerTimeoutException'});
650        e.popStackFrame();
651        return e;
652    }
653    function Sys$WebForms$PageRequestManager$_createPageRequestManagerServerError(httpStatusCode, message) {
654        var displayMessage = "Sys.WebForms.PageRequestManagerServerErrorException: " +
655            (message || String.format(Sys.WebForms.Res.PRM_ServerError, httpStatusCode));
656        var e = Error.create(displayMessage, {
657            name: 'Sys.WebForms.PageRequestManagerServerErrorException',
658            httpStatusCode: httpStatusCode
659        });
660        e.popStackFrame();
661        return e;
662    }
663    function Sys$WebForms$PageRequestManager$_createPageRequestManagerParserError(parserErrorMessage) {
664        var displayMessage = "Sys.WebForms.PageRequestManagerParserErrorException: " + String.format(Sys.WebForms.Res.PRM_ParserError, parserErrorMessage);
665        var e = Error.create(displayMessage, {name: 'Sys.WebForms.PageRequestManagerParserErrorException'});
666        e.popStackFrame();
667        return e;
668    }
669    function Sys$WebForms$PageRequestManager$_createPanelID(panelsToUpdate, postBackSettings) {
670        var asyncTarget = postBackSettings.asyncTarget,
671            toUpdate = this._ensureUniqueIds(panelsToUpdate || postBackSettings.panelsToUpdate),
672            panelArg = (toUpdate instanceof Array)
673                ? toUpdate.join(',')
674                : (toUpdate || this._scriptManagerID);
675        if (asyncTarget) {
676            panelArg += "|" + asyncTarget;
677        }
678        return encodeURIComponent(this._scriptManagerID) + '=' + encodeURIComponent(panelArg) + '&';
679    }
680    function Sys$WebForms$PageRequestManager$_createPostBackSettings(async, panelsToUpdate, asyncTarget, sourceElement) {
681        return { async:async, asyncTarget: asyncTarget, panelsToUpdate: panelsToUpdate, sourceElement: sourceElement };
682    }
683    function Sys$WebForms$PageRequestManager$_convertToClientIDs(source, destinationIDs, destinationClientIDs, version4) {
684        if (source) {
685            for (var i = 0, l = source.length; i < l; i += (version4 ? 2 : 1)) {
686                var uniqueID = source[i],
687                    clientID = (version4 ? source[i+1] : "") || this._uniqueIDToClientID(uniqueID);
688                Array.add(destinationIDs, uniqueID);
689                Array.add(destinationClientIDs, clientID);
690            }
691        }
692    }
693    function Sys$WebForms$PageRequestManager$dispose() {
694        if (this._form) {
695            Sys.UI.DomEvent.removeHandler(this._form, 'submit', this._onFormSubmitHandler);
696            Sys.UI.DomEvent.removeHandler(this._form, 'click', this._onFormElementClickHandler);
697            Sys.UI.DomEvent.removeHandler(window, 'unload', this._onWindowUnloadHandler);
698            Sys.UI.DomEvent.removeHandler(window, 'load', this._pageLoadedHandler);
699        }
700        if (this._originalDoPostBack) {
701            window.__doPostBack = this._originalDoPostBack;
702            this._originalDoPostBack = null;
703        }
704        if (this._originalDoPostBackWithOptions) {
705            window.WebForm_DoPostBackWithOptions = this._originalDoPostBackWithOptions;
706            this._originalDoPostBackWithOptions = null;
707        }
708        if (this._originalFireDefaultButton) {
709            window.WebForm_FireDefaultButton = this._originalFireDefaultButton;
710            this._originalFireDefaultButton = null;
711        }
712        if (this._originalDoCallback) {
713            window.WebForm_DoCallback = this._originalDoCallback;
714            this._originalDoCallback = null;
715        }
716        this._form = null;
717        this._updatePanelIDs = null;
718        this._updatePanelClientIDs = null;
719        this._asyncPostBackControlIDs = null;
720        this._asyncPostBackControlClientIDs = null;
721        this._postBackControlIDs = null;
722        this._postBackControlClientIDs = null;
723        this._asyncPostBackTimeout = null;
724        this._scrollPosition = null;
725        this._activeElement = null;
726    }
727    function Sys$WebForms$PageRequestManager$_doCallback(eventTarget, eventArgument, eventCallback, context, errorCallback, useAsync) {
728        if (!this.get_isInAsyncPostBack()) {
729            this._originalDoCallback(eventTarget, eventArgument, eventCallback, context, errorCallback, useAsync);
730        }
731    }
732    function Sys$WebForms$PageRequestManager$_doPostBack(eventTarget, eventArgument) {
733        var event = window.event;
734        if (!event) {
735            var caller = arguments.callee ? arguments.callee.caller : null;
736            if (caller) {
737                var recursionLimit = 30;
738                while (caller.arguments.callee.caller && --recursionLimit) {
739                    caller = caller.arguments.callee.caller;
740                }
741                event = (recursionLimit && caller.arguments.length) ? caller.arguments[0] : null;
742            }
743        }
744        this._additionalInput = null;
745        var form = this._form;
746        if ((eventTarget === null) || (typeof(eventTarget) === "undefined") || (this._isCrossPost)) {
747            this._postBackSettings = this._createPostBackSettings(false);
748            this._isCrossPost = false;
749        }
750        else {
751            var mpUniqueID = this._masterPageUniqueID;
752            var clientID = this._uniqueIDToClientID(eventTarget);
753            var postBackElement = document.getElementById(clientID);
754            if (!postBackElement && mpUniqueID) {
755                if (eventTarget.indexOf(mpUniqueID + "$") === 0) {
756                    postBackElement = document.getElementById(clientID.substr(mpUniqueID.length + 1));
757                }
758            }
759            if (!postBackElement) {
760                if (Array.contains(this._asyncPostBackControlIDs, eventTarget)) {
761                    this._postBackSettings = this._createPostBackSettings(true, null, eventTarget);
762                }
763                else {
764                    if (Array.contains(this._postBackControlIDs, eventTarget)) {
765                        this._postBackSettings = this._createPostBackSettings(false);
766                    }
767                    else {
768                        var nearestUniqueIDMatch = this._findNearestElement(eventTarget);
769                        if (nearestUniqueIDMatch) {
770                            this._postBackSettings = this._getPostBackSettings(nearestUniqueIDMatch, eventTarget);
771                        }
772                        else {
773                            if (mpUniqueID) {
774                                mpUniqueID += "$";
775                                if (eventTarget.indexOf(mpUniqueID) === 0) {
776                                    nearestUniqueIDMatch = this._findNearestElement(eventTarget.substr(mpUniqueID.length));
777                                }
778                            }
779                            if (nearestUniqueIDMatch) {
780                                this._postBackSettings = this._getPostBackSettings(nearestUniqueIDMatch, eventTarget);
781                            }
782                            else {
783                                var activeElement;
784                                try {
785                                    activeElement = event ? (event.target || event.srcElement) : null;
786                                }
787                                catch(ex) {
788                                }
789                                activeElement = activeElement || this._activeElement;
790                                var causesPostback = /__doPostBack\(|WebForm_DoPostBackWithOptions\
790(/;
791                                function testCausesPostBack(attr) {
792                                    attr = attr ? attr.toString() : "";
793                                    return (causesPostback.test(attr) &&
794                                        (attr.indexOf("'" + eventTarget + "'") !== -1) || (attr.indexOf('"' + eventTarget + '"') !== -1));
795                                }
796                                if (activeElement && (
797                                        (activeElement.name === eventTarget) ||
798                                        testCausesPostBack(activeElement.href) ||
799                                        testCausesPostBack(activeElement.onclick) ||
800                                        testCausesPostBack(activeElement.onchange)
801                                        )) {
802                                    this._postBackSettings = this._getPostBackSettings(activeElement, eventTarget);
803                                }
804                                else {
805                                    this._postBackSettings = this._createPostBackSettings(false);
806                                }
807                            }
808                        }
809                    }
810                }
811            }
812            else {
813                this._postBackSettings = this._getPostBackSettings(postBackElement, eventTarget);
814            }
815        }
816        if (!this._postBackSettings.async) {
817            form.onsubmit = this._onsubmit;
818            this._originalDoPostBack(eventTarget, eventArgument);
819            form.onsubmit = null;
820            return;
821        }
822        form.__EVENTTARGET.value = eventTarget;
823        form.__EVENTARGUMENT.value = eventArgument;
824        this._onFormSubmit();
825    }
826    function Sys$WebForms$PageRequestManager$_doPostBackWithOptions(options) {
827        this._isCrossPost = options && options.actionUrl;
828        var validationResult = true;
829        if (options.validation) {
830            if (typeof(Page_ClientValidate) == 'function') {
831                validationResult = Page_ClientValidate(options.validationGroup);
832            }
833        }
834        if (validationResult) {
835            if ((typeof(options.actionUrl) != "undefined") && (options.actionUrl != null) && (options.actionUrl.length > 0)) {
836                theForm.action = options.actionUrl;
837            }
838            if (options.trackFocus) {
839                var lastFocus = theForm.elements["__LASTFOCUS"];
840                if ((typeof(lastFocus) != "undefined") && (lastFocus != null)) {
841                    if (typeof(document.activeElement) == "undefined") {
842                        lastFocus.value = options.eventTarget;
843                    }
844                    else {
845                        var active = document.activeElement;
846                        if ((typeof(active) != "undefined") && (active != null)) {
847                            if ((typeof(active.id) != "undefined") && (active.id != null) && (active.id.length > 0)) {
848                                lastFocus.value = active.id;
849                            }
850                            else if (typeof(active.name) != "undefined") {
851                                lastFocus.value = active.name;
852                            }
853                        }
854                    }
855                }
856            }
857        }
858        if (options.clientSubmit) {
859            this._doPostBack(options.eventTarget, options.eventArgument);
860        }
861    }
862    function Sys$WebForms$PageRequestManager$_elementContains(container, element) {
863        while (element) {
864            if (element === container) {
865                return true;
866            }
867            element = element.parentNode;
868        }
869        return false;
870    }
871    function Sys$WebForms$PageRequestManager$_endPostBack(error, executor, data) {
872        if (this._request === executor.get_webRequest()) {
873            this._processingRequest = false;
874            this._additionalInput = null;
875            this._request = null;
876        }
877        var handler = this._get_eventHandlerList().getHandler("endRequest");
878        var errorHandled = false;
879        if (handler) {
880            var eventArgs = new Sys.WebForms.EndRequestEventArgs(error, data ? data.dataItems : {}, executor);
881            handler(this, eventArgs);
882            errorHandled = eventArgs.get_errorHandled();
883        }
884        if (error && !errorHandled) {
885            throw error;
886        }
887    }
888    function Sys$WebForms$PageRequestManager$_ensureUniqueIds(ids) {
889        if (!ids) return ids;
890        ids = ids instanceof Array ? ids : [ids];
891        var uniqueIds = [];
892        for (var i = 0, l = ids.length; i < l; i++) {
893            var id = ids[i], index = Array.indexOf(this._updatePanelClientIDs, id);
894            uniqueIds.push(index > -1 ? this._updatePanelIDs[index] : id);
895        }
896        return uniqueIds;
897    }
898    function Sys$WebForms$PageRequestManager$_findNearestElement(uniqueID) {
899        while (uniqueID.length > 0) {
900            var clientID = this._uniqueIDToClientID(uniqueID);
901            var element = document.getElementById(clientID);
902            if (element) {
903                return element;
904            }
905            var indexOfLastDollar = uniqueID.lastIndexOf('$');
906            if (indexOfLastDollar === -1) {
907                return null;
908            }
909            uniqueID = uniqueID.substring(0, indexOfLastDollar);
910        }
911        return null;
912    }
913    function Sys$WebForms$PageRequestManager$_findText(text, location) {
914        var startIndex = Math.max(0, location - 20);
915        var endIndex = Math.min(text.length, location + 20);
916        return text.substring(startIndex, endIndex);
917    }
918    function Sys$WebForms$PageRequestManager$_fireDefaultButton(event, target) {
919        if (event.keyCode === 13) {
920            var src = event.srcElement || event.target;
921            if (!src || (src.tagName.toLowerCase() !== "textarea")) {
922                var defaultButton = document.getElementById(target);
923                if (defaultButton && (typeof(defaultButton.click) !== "undefined")) {
924                    
925                    
926                    this._activeDefaultButton = defaultButton;
927                    this._activeDefaultButtonClicked = false;
928                    try {
929                        defaultButton.click();
930                    }
931                    finally {
932                        this._activeDefaultButton = null;
933                    }
934                    
935                    
936                    event.cancelBubble = true;
937                    if (typeof(event.stopPropagation) === "function") {
938                        event.stopPropagation();
939                    }
940                    return false;
941                }
942            }
943        }
944        return true;
945    }
946    function Sys$WebForms$PageRequestManager$_getPageLoadedEventArgs(initialLoad, data) {
947        var updated = [];
948        var created = [];
949        var version4 = data ? data.version4 : false;
950        var upData = data ? data.updatePanelData : null;
951        var newIDs, newClientIDs, childIDs, refreshedIDs;
952        if (!upData) {
953            newIDs = this._updatePanelIDs;
954            newClientIDs = this._updatePanelClientIDs;
955            childIDs = null;
956            refreshedIDs = null;
957        }
958        else {
959            newIDs = upData.updatePanelIDs;
960            newClientIDs = upData.updatePanelClientIDs;
961            childIDs = upData.childUpdatePanelIDs;
962            refreshedIDs = upData.panelsToRefreshIDs;
963        }
964        var i, l, uniqueID, clientID;
965        if (refreshedIDs) {
966            for (i = 0, l = refreshedIDs.length; i < l; i += (version4 ? 2 : 1)) {
967                uniqueID = refreshedIDs[i];
968                clientID = (version4 ? refreshedIDs[i+1] : "") || this._uniqueIDToClientID(uniqueID);
969                Array.add(updated, document.getElementById(clientID));
970            }
971        }
972        for (i = 0, l = newIDs.length; i < l; i++) {
973            if (initialLoad || Array.indexOf(childIDs, newIDs[i]) !== -1) {
974                Array.add(created, document.getElementById(newClientIDs[i]));
975            }
976        }
977        return new Sys.WebForms.PageLoadedEventArgs(updated, created, data ? data.dataItems : {});
978    }
979    function Sys$WebForms$PageRequestManager$_getPageLoadingEventArgs(data) {
980        var updated = [],
981            deleted = [],
982            upData = data.updatePanelData,
983            oldIDs = upData.oldUpdatePanelIDs,
984            oldClientIDs = upData.oldUpdatePanelClientIDs,
985            newIDs = upData.updatePanelIDs,
986            childIDs = upData.childUpdatePanelIDs,
987            refreshedIDs = upData.panelsToRefreshIDs,
988            i, l, uniqueID, clientID,
989            version4 = data.version4;
990        for (i = 0, l = refreshedIDs.length; i < l; i += (version4 ? 2 : 1)) {
991            uniqueID = refreshedIDs[i];
992            clientID = (version4 ? refreshedIDs[i+1] : "") || this._uniqueIDToClientID(uniqueID);
993            Array.add(updated, document.getElementById(clientID));
994        }
995        for (i = 0, l = oldIDs.length; i < l; i++) {
996            uniqueID = oldIDs[i];
997            if (Array.indexOf(refreshedIDs, uniqueID) === -1 &&
998                (Array.indexOf(newIDs, uniqueID) === -1 || Array.indexOf(childIDs, uniqueID) > -1)) {
999                Array.add(deleted, document.getElementById(oldClientIDs[i]));
1000            }
1001        }
1002        return new Sys.WebForms.PageLoadingEventArgs(updated, deleted, data.dataItems);
1003    }
1004    function Sys$WebForms$PageRequestManager$_getPostBackSettings(element, elementUniqueID) {
1005        var originalElement = element;
1006        var proposedSettings = null;
1007        while (element) {
1008            if (element.id) {
1009                if (!proposedSettings && Array.contains(this._asyncPostBackControlClientIDs, element.id)) {
1010                    proposedSettings = this._createPostBackSettings(true, null, elementUniqueID, originalElement);
1011                }
1012                else {
1013                    if (!proposedSettings && Array.contains(this._postBackControlClientIDs, element.id)) {
1014                        return this._createPostBackSettings(false);
1015                    }
1016                    else {
1017                        var indexOfPanel = Array.indexOf(this._updatePanelClientIDs, element.id);
1018                        if (indexOfPanel !== -1) {
1019                            if (this._updatePanelHasChildrenAsTriggers[indexOfPanel]) {
1020                                return this._createPostBackSettings(true, [this._updatePanelIDs[indexOfPanel]], elementUniqueID, originalElement);
1021                            }
1022                            else {
1023                                return this._createPostBackSettings(true, null, elementUniqueID, originalElement);
1024                            }
1025                        }
1026                    }
1027                }
1028                if (!proposedSettings && this._matchesParentIDInList(element.id, this._asyncPostBackControlClientIDs)) {
1029                    proposedSettings = this._createPostBackSettings(true, null, elementUniqueID, originalElement);
1030                }
1031                else {
1032                    if (!proposedSettings && this._matchesParentIDInList(element.id, this._postBackControlClientIDs)) {
1033                        return this._createPostBackSettings(false);
1034                    }
1035                }
1036            }
1037            element = element.parentNode;
1038        }
1039        if (!proposedSettings) {
1040            return this._createPostBackSettings(false);
1041        }
1042        else {
1043            return proposedSettings;
1044        }
1045    }
1046    function Sys$WebForms$PageRequestManager$_getScrollPosition() {
1047        var d = document.documentElement;
1048        if (d && (this._validPosition(d.scrollLeft) || this._validPosition(d.scrollTop))) {
1049            return {
1050                x: d.scrollLeft,
1051                y: d.scrollTop
1052            };
1053        }
1054        else {
1055            d = document.body;
1056            if (d && (this._validPosition(d.scrollLeft) || this._validPosition(d.scrollTop))) {
1057                return {
1058                    x: d.scrollLeft,
1059                    y: d.scrollTop
1060                };
1061            }
1062            else {
1063                if (this._validPosition(window.pageXOffset) || this._validPosition(window.pageYOffset)) {
1064                    return {
1065                        x: window.pageXOffset,
1066                        y: window.pageYOffset
1067                    };
1068                }
1069                else {
1070                    return {
1071                        x: 0,
1072                        y: 0
1073                    };
1074                }
1075            }
1076        }
1077    }
1078    function Sys$WebForms$PageRequestManager$_initializeInternal(scriptManagerID, formElement, updatePanelIDs, asyncPostBackControlIDs, postBackControlIDs, asyncPostBackTimeout, masterPageUniqueID) {
1079        if (this._prmInitialized) {
1080            throw Error.invalidOperation(Sys.WebForms.Res.PRM_CannotRegisterTwice);
1081        }
1082        this._prmInitialized = true;
1083        this._masterPageUniqueID = masterPageUniqueID;
1084        this._scriptManagerID = scriptManagerID;
1085        this._form = Sys.UI.DomElement.resolveElement(formElement);
1086        this._onsubmit = this._form.onsubmit;
1087        this._form.onsubmit = null;
1088        this._onFormSubmitHandler = Function.createDelegate(this, this._onFormSubmit);
1089        this._onFormElementClickHandler = Function.createDelegate(this, this._onFormElementClick);
1090        this._onWindowUnloadHandler = Function.createDelegate(this, this._onWindowUnload);
1091        Sys.UI.DomEvent.addHandler(this._form, 'submit', this._onFormSubmitHandler);
1092        Sys.UI.DomEvent.addHandler(this._form, 'click', this._onFormElementClickHandler);
1093        Sys.UI.DomEvent.addHandler(window, 'unload', this._onWindowUnloadHandler);
1094        this._originalDoPostBack = window.__doPostBack;
1095        if (this._originalDoPostBack) {
1096            window.__doPostBack = Function.createDelegate(this, this._doPostBack);
1097        }
1098        this._originalDoPostBackWithOptions = window.WebForm_DoPostBackWithOptions;
1099        if (this._originalDoPostBackWithOptions) {
1100            window.WebForm_DoPostBackWithOptions = Function.createDelegate(this, this._doPostBackWithOptions);
1101        }
1102        this._originalFireDefaultButton = window.WebForm_FireDefaultButton;
1103        if (this._originalFireDefaultButton) {
1104            window.WebForm_FireDefaultButton = Function.createDelegate(this, this._fireDefaultButton);
1105        }
1106        this._originalDoCallback = window.WebForm_DoCallback;
1107        if (this._originalDoCallback) {
1108            window.WebForm_DoCallback = Function.createDelegate(this, this._doCallback);
1109        }
1110        this._pageLoadedHandler = Function.createDelegate(this, this._pageLoadedInitialLoad);
1111        Sys.UI.DomEvent.addHandler(window, 'load', this._pageLoadedHandler);
1112        if (updatePanelIDs) {
1113            this._updateControls(updatePanelIDs, asyncPostBackControlIDs, postBackControlIDs, asyncPostBackTimeout, true);
1114        }
1115    }
1116    function Sys$WebForms$PageRequestManager$_matchesParentIDInList(clientID, parentIDList) {
1117        for (var i = 0, l = parentIDList.length; i < l; i++) {
1118            if (clientID.startsWith(parentIDList[i] + "_")) {
1119                return true;
1120            }
1121        }
1122        return false;
1123    }
1124    function Sys$WebForms$PageRequestManager$_onFormElementActive(element, offsetX, offsetY) {
1125        if (element.disabled) {
1126            return;
1127        }
1128        this._activeElement = element;
1129        this._postBackSettings = this._getPostBackSettings(element, element.name);
1130        if (element.name) {
1131            var tagName = element.tagName.toUpperCase();
1132            if (tagName === 'INPUT') {
1133                var type = element.type;
1134                if (type === 'submit') {
1135                    this._additionalInput = encodeURIComponent(element.name) + '=' + encodeURIComponent(element.value);
1136                }
1137                else if (type === 'image') {
1138                    this._additionalInput = encodeURIComponent(element.name) + '.x=' + offsetX + '&' + encodeURIComponent(element.name) + '.y=' + offsetY;
1139                }
1140            }
1141            else if ((tagName === 'BUTTON') && (element.name.length !== 0) && (element.type === 'submit')) {
1142                this._additionalInput = encodeURIComponent(element.name) + '=' + encodeURIComponent(element.value);
1143            }
1144        }
1145    }
1146    function Sys$WebForms$PageRequestManager$_onFormElementClick(evt) {
1147        this._activeDefaultButtonClicked = (evt.target === this._activeDefaultButton);
1148        this._onFormElementActive(evt.target, evt.offsetX, evt.offsetY);
1149    }
1150    function Sys$WebForms$PageRequestManager$_onFormSubmit(evt) {
1151        var i, l, continueSubmit = true,
1152            isCrossPost = this._isCrossPost;
1153        this._isCrossPost = false;
1154        if (this._onsubmit) {
1155            continueSubmit = this._onsubmit();
1156        }
1157        if (continueSubmit) {
1158            for (i = 0, l = this._onSubmitStatements.length; i < l; i++) {
1159                if (!this._onSubmitStatements[i]()) {
1160                    continueSubmit = false;
1161                    break;
1162                }
1163            }
1164        }
1165        if (!continueSubmit) {
1166            if (evt) {
1167                evt.preventDefault();
1168            }
1169            return;
1170        }
1171        var form = this._form;
1172        if (isCrossPost) {
1173            return;
1174        }
1175        if (this._activeDefaultButton && !this._activeDefaultButtonClicked) {
1176            this._onFormElementActive(this._activeDefaultButton, 0, 0);
1177        }
1178        if (!this._postBackSettings || !this._postBackSettings.async) {
1179            return;
1180        }
1181        var formBody = new Sys.StringBuilder(),
1182            formElements = form.elements,
1183            count = formElements.length,
1184            panelID = this._createPanelID(null, this._postBackSettings);
1185        formBody.append(panelID);
1186        for (i = 0; i < count; i++) {
1187            var element = formElements[i];
1188            var name = element.name;
1189            if (typeof(name) === "undefined" || (name === null) || (name.length === 0) || (name === this._scriptManagerID)) {
1190                continue;
1191            }
1192            var tagName = element.tagName.toUpperCase();
1193            if (tagName === 'INPUT') {
1194                var type = element.type;
1195                if (this._textTypes.test(type)
1196                    || ((type === 'checkbox' || type === 'radio') && element.checked)) {
1197                    formBody.append(encodeURIComponent(name));
1198                    formBody.append('=');
1199                    formBody.append(encodeURIComponent(element.value));
1200                    formBody.append('&');
1201                }
1202            }
1203            else if (tagName === 'SELECT') {
1204                var optionCount = element.options.length;
1205                for (var j = 0; j < optionCount; j++) {
1206                    var option = element.options[j];
1207                    if (option.selected) {
1208                        formBody.append(encodeURIComponent(name));
1209                        formBody.append('=');
1210                        formBody.append(encodeURIComponent(option.value));
1211                        formBody.append('&');
1212                    }
1213                }
1214            }
1215            else if (tagName === 'TEXTAREA') {
1216                formBody.append(encodeURIComponent(name));
1217                formBody.append('=');
1218                formBody.append(encodeURIComponent(element.value));
1219                formBody.append('&');
1220            }
1221        }
1222        formBody.append("__ASYNCPOST=true&");
1223        if (this._additionalInput) {
1224            formBody.append(this._additionalInput);
1225            this._additionalInput = null;
1226        }
1227        
1228        var request = new Sys.Net.WebRequest();
1229        var action = form.action;
1230        if (Sys.Browser.agent === Sys.Browser.InternetExplorer) {
1231            var fragmentIndex = action.indexOf('#');
1232            if (fragmentIndex !== -1) {
1233                action = action.substr(0, fragmentIndex);
1234            }
1235            var domain = "", query = "", queryIndex = action.indexOf('?');
1236            if (queryIndex !== -1) {
1237                query = action.substr(queryIndex);
1238                action = action.substr(0, queryIndex);
1239            }
1240            if (/^https?\:\/\/.*$/gi.test(action)) {
1241                var domainPartIndex = action.indexOf("//") + 2,
1242                    slashAfterDomain = action.indexOf("/", domainPartIndex);
1243                if (slashAfterDomain === -1) {
1244                    domain = action;
1245                    action = "";
1246                }
1247                else {
1248                    domain = action.substr(0, slashAfterDomain);
1249                    action = action.substr(slashAfterDomain);
1250                }
1251            }
1252            action = domain + encodeURI(decodeURI(action)) + query;
1253        }
1254        request.set_url(action);
1255        request.get_headers()['X-MicrosoftAjax'] = 'Delta=true';
1256        request.get_headers()['Cache-Control'] = 'no-cache';
1257        request.set_timeout(this._asyncPostBackTimeout);
1258        request.add_completed(Function.createDelegate(this, this._onFormSubmitCompleted));
1259        request.set_body(formBody.toString());
1260        var panelsToUpdate, eventArgs, handler = this._get_eventHandlerList().getHandler("initializeRequest");
1261        if (handler) {
1262            panelsToUpdate = this._postBackSettings.panelsToUpdate;
1263            eventArgs = new Sys.WebForms.InitializeRequestEventArgs(request, this._postBackSettings.sourceElement, panelsToUpdate);
1264            handler(this, eventArgs);
1265            continueSubmit = !eventArgs.get_cancel();
1266        }
1267        if (!continueSubmit) {
1268            if (evt) {
1269                evt.preventDefault();
1270            }
1271            return;
1272        }
1273        
1274        if (eventArgs && eventArgs._updated) {
1275            panelsToUpdate = eventArgs.get_updatePanelsToUpdate();
1276            request.set_body(request.get_body().replace(panelID, this._createPanelID(panelsToUpdate, this._postBackSettings)));
1277        }
1278        this._scrollPosition = this._getScrollPosition();
1279        this.abortPostBack();
1280        handler = this._get_eventHandlerList().getHandler("beginRequest");
1281        if (handler) {
1282            eventArgs = new Sys.WebForms.BeginRequestEventArgs(request, this._postBackSettings.sourceElement,
1283                panelsToUpdate || this._postBackSettings.panelsToUpdate);
1284            handler(this, eventArgs);
1285        }
1286        
1287        if (this._originalDoCallback) {
1288            this._cancelPendingCallbacks();
1289        }
1290        this._request = request;
1291        this._processingRequest = false;
1292        request.invoke();
1293        if (evt) {
1294            evt.preventDefault();
1295        }
1296    }
1297    function Sys$WebForms$PageRequestManager$_onFormSubmitCompleted(sender, eventArgs) {
1298        this._processingRequest = true;
1299        if (sender.get_timedOut()) {
1300            this._endPostBack(this._createPageRequestManagerTimeoutError(), sender, null);
1301            return;
1302        }
1303        if (sender.get_aborted()) {
1304            this._endPostBack(null, sender, null);
1305            return;
1306        }
1307        if (!this._request || (sender.get_webRequest() !== this._request)) {
1308            return;
1309        }
1310        if (sender.get_statusCode() !== 200) {
1311            this._endPostBack(this._createPageRequestManagerServerError(sender.get_statusCode()), sender, null);
1312            return;
1313        }
1314        var data = this._parseDelta(sender);
1315        if (!data) return;
1316        
1317        var i, l;
1318        if (data.asyncPostBackControlIDsNode && data.postBackControlIDsNode &&
1319            data.updatePanelIDsNode && data.panelsToRefreshNode && data.childUpdatePanelIDsNode) {
1320            
1321            var oldUpdatePanelIDs = this._updatePanelIDs,
1322                oldUpdatePanelClientIDs = this._updatePanelClientIDs;
1323            var childUpdatePanelIDsString = data.childUpdatePanelIDsNode.content;
1324            var childUpdatePanelIDs = childUpdatePanelIDsString.length ? childUpdatePanelIDsString.split(',') : [];
1325            var asyncPostBackControlIDsArray = this._splitNodeIntoArray(data.asyncPostBackControlIDsNode);
1326            var postBackControlIDsArray = this._splitNodeIntoArray(data.postBackControlIDsNode);
1327            var updatePanelIDsArray = this._splitNodeIntoArray(data.updatePanelIDsNode);
1328            var panelsToRefreshIDs = this._splitNodeIntoArray(data.panelsToRefreshNode);
1329            var v4 = data.version4;
1330            for (i = 0, l = panelsToRefreshIDs.length; i < l; i+= (v4 ? 2 : 1)) {
1331                var panelClientID = (v4 ? panelsToRefreshIDs[i+1] : "") || this._uniqueIDToClientID(panelsToRefreshIDs[i]);
1332                if (!document.getElementById(panelClientID)) {
1333                    this._endPostBack(Error.invalidOperation(String.format(Sys.WebForms.Res.PRM_MissingPanel, panelClientID)), sender, data);
1334                    return;
1335                }
1336            }
1337            
1338            var updatePanelData = this._processUpdatePanelArrays(
1339                updatePanelIDsArray,
1340                asyncPostBackControlIDsArray,
1341                postBackControlIDsArray, v4);
1342            updatePanelData.oldUpdatePanelIDs = oldUpdatePanelIDs;
1343            updatePanelData.oldUpdatePanelClientIDs = oldUpdatePanelClientIDs;
1344            updatePanelData.childUpdatePanelIDs = childUpdatePanelIDs;
1345            updatePanelData.panelsToRefreshIDs = panelsToRefreshIDs;
1346            data.updatePanelData = updatePanelData;
1347        }
1348        data.dataItems = {};
1349        var node;
1350        for (i = 0, l = data.dataItemNodes.length; i < l; i++) {
1351            node = data.dataItemNodes[i];
1352            data.dataItems[node.id] = node.content;
1353        }
1354        for (i = 0, l = data.dataItemJsonNodes.length; i < l; i++) {
1355            node = data.dataItemJsonNodes[i];
1356            data.dataItems[node.id] = Sys.Serialization.JavaScriptSerializer.deserialize(node.content);
1357        }
1358        var handler = this._get_eventHandlerList().getHandler("pageLoading");
1359        if (handler) {
1360            handler(this, this._getPageLoadingEventArgs(data));
1361        }
1362        
1363        Sys._ScriptLoader.readLoadedScripts();
1364        Sys.Application.beginCreateComponents();
1365        var scriptLoader = Sys._ScriptLoader.getInstance();
1366        this._queueScripts(scriptLoader, data.scriptBlockNodes, true, false);
1367        
1368        this._processingRequest = true;
1369        scriptLoader.loadScripts(0,
1370            Function.createDelegate(this, Function.createCallback(this._scriptIncludesLoadComplete, data)),
1371            Function.createDelegate(this, Function.createCallback(this._scriptIncludesLoadFailed, data)),
1372            null);        
1373    }
1374    function Sys$WebForms$PageRequestManager$_onWindowUnload(evt) {
1375        this.dispose();
1376    }
1377    function Sys$WebForms$PageRequestManager$_pageLoaded(initialLoad, data) {
1378        var handler = this._get_eventHandlerList().getHandler("pageLoaded");
1379        if (handler) {
1380            handler(this, this._getPageLoadedEventArgs(initialLoad, data));
1381        }
1382        if (!initialLoad) {
1383            Sys.Application.raiseLoad();
1384        }
1385    }
1386    function Sys$WebForms$PageRequestManager$_pageLoadedInitialLoad(evt) {
1387        this._pageLoaded(true, null);
1388    }
1389    function Sys$WebForms$PageRequestManager$_parseDelta(executor) {
1390        var reply = executor.get_responseData();
1391        var delimiterIndex, len, type, id, content;
1392        var replyIndex = 0;
1393        var parserErrorDetails = null;
1394        var delta = [];
1395        while (replyIndex < reply.length) {
1396            delimiterIndex = reply.indexOf('|', replyIndex);
1397            if (delimiterIndex === -1) {
1398                parserErrorDetails = this._findText(reply, replyIndex);
1399                break;
1400            }
1401            len = parseInt(reply.substring(replyIndex, delimiterIndex), 10);
1402            if ((len % 1) !== 0) {
1403                parserErrorDetails = this._findText(reply, replyIndex);
1404                break;
1405            }
1406            replyIndex = delimiterIndex + 1;
1407            delimiterIndex = reply.indexOf('|', replyIndex);
1408            if (delimiterIndex === -1) {
1409                parserErrorDetails = this._findText(reply, replyIndex);
1410                break;
1411            }
1412            type = reply.substring(replyIndex, delimiterIndex);
1413            replyIndex = delimiterIndex + 1;
1414            delimiterIndex = reply.indexOf('|', replyIndex);
1415            if (delimiterIndex === -1) {
1416                parserErrorDetails = this._findText(reply, replyIndex);
1417                break;
1418            }
1419            id = reply.substring(replyIndex, delimiterIndex);
1420            replyIndex = delimiterIndex + 1;
1421            if ((replyIndex + len) >= reply.length) {
1422                parserErrorDetails = this._findText(reply, reply.length);
1423                break;
1424            }
1425            content = reply.substr(replyIndex, len);
1426            replyIndex += len;
1427            if (reply.charAt(replyIndex) !== '|') {
1428                parserErrorDetails = this._findText(reply, replyIndex);
1429                break;
1430            }
1431            replyIndex++;
1432            Array.add(delta, {type: type, id: id, content: content});
1433        }
1434        if (parserErrorDetails) {
1435            this._endPostBack(this._createPageRequestManagerParserError(String.format(Sys.WebForms.Res.PRM_ParserErrorDetails, parserErrorDetails)), executor, null);
1436            return null;
1437        }
1438        var updatePanelNodes = [];
1439        var hiddenFieldNodes = [];
1440        var arrayDeclarationNodes = [];
1441        var scriptBlockNodes = [];
1442        var scriptStartupNodes = [];
1443        var expandoNodes = [];
1444        var onSubmitNodes = [];
1445        var dataItemNodes = [];
1446        var dataItemJsonNodes = [];
1447        var scriptDisposeNodes = [];
1448        var asyncPostBackControlIDsNode, postBackControlIDsNode,
1449            updatePanelIDsNode, asyncPostBackTimeoutNode,
1450            childUpdatePanelIDsNode, panelsToRefreshNode, formActionNode,
1451            versionNode;
1452        for (var i = 0, l = delta.length; i < l; i++) {
1453            var deltaNode = delta[i];
1454            switch (deltaNode.type) {
1455                case "#":
1456                    versionNode = deltaNode;
1457                    break;
1458                case "updatePanel":
1459                    Array.add(updatePanelNodes, deltaNode);
1460                    break;
1461                case "hiddenField":
1462                    Array.add(hiddenFieldNodes, deltaNode);
1463                    break;
1464                case "arrayDeclaration":
1465                    Array.add(arrayDeclarationNodes, deltaNode);
1466                    break;
1467                case "scriptBlock":
1468                    Array.add(scriptBlockNodes, deltaNode);
1469                    break;
1470                case "fallbackScript":
1471                    scriptBlockNodes[scriptBlockNodes.length - 1].fallback = deltaNode.id;
1472                case "scriptStartupBlock":
1473                    Array.add(scriptStartupNodes, deltaNode);
1474                    break;
1475                case "expando":
1476                    Array.add(expandoNodes, deltaNode);
1477                    break;
1478                case "onSubmit":
1479                    Array.add(onSubmitNodes, deltaNode);
1480                    break;
1481                case "asyncPostBackControlIDs":
1482                    asyncPostBackControlIDsNode = deltaNode;
1483                    break;
1484                case "postBackControlIDs":
1485                    postBackControlIDsNode = deltaNode;
1486                    break;
1487                case "updatePanelIDs":
1488                    updatePanelIDsNode = deltaNode;
1489                    break;
1490                case "asyncPostBackTimeout":
1491                    asyncPostBackTimeoutNode = deltaNode;
1492                    break;
1493                case "childUpdatePanelIDs":
1494                    childUpdatePanelIDsNode = deltaNode;
1495                    break;
1496                case "panelsToRefreshIDs":
1497                    panelsToRefreshNode = deltaNode;
1498                    break;
1499                case "formAction":
1500                    formActionNode = deltaNode;
1501                    break;
1502                case "dataItem":
1503                    Array.add(dataItemNodes, deltaNode);
1504                    break;
1505                case "dataItemJson":
1506                    Array.add(dataItemJsonNodes, deltaNode);
1507                    break;
1508                case "scriptDispose":
1509                    Array.add(scriptDisposeNodes, deltaNode);
1510                    break;
1511                case "pageRedirect":
1512                    if (versionNode && parseFloat(versionNode.content) >= 4) {
1513                        deltaNode.content = unescape(deltaNode.content);
1514                    }
1515                    if (Sys.Browser.agent === Sys.Browser.InternetExplorer) {
1516                        var anchor = document.createElement("a");
1517                        anchor.style.display = 'none';
1518                        anchor.attachEvent("onclick", cancelBubble);
1519                        anchor.href = deltaNode.content;
1520                        this._form.parentNode.insertBefore(anchor, this._form);
1521                        anchor.click();
1522                        anchor.detachEvent("onclick", cancelBubble);
1523                        this._form.parentNode.removeChild(anchor);
1524                        
1525                        function cancelBubble(e) {
1526                            e.cancelBubble = true;
1527                        }
1528                    }
1529                    else {
1530                        window.location.href = deltaNode.content;
1531                    }
1532                    return null;
1533                case "error":
1534                    this._endPostBack(this._createPageRequestManagerServerError(Number.parseInvariant(deltaNode.id), deltaNode.content), executor, null);
1535                    return null;
1536                case "pageTitle":
1537                    document.title = deltaNode.content;
1538                    break;
1539                case "focus":
1540                    this._controlIDToFocus = deltaNode.content;
1541                    break;
1542                default:
1543                    this._endPostBack(this._createPageRequestManagerParserError(String.format(Sys.WebForms.Res.PRM_UnknownToken, deltaNode.type)), executor, null);
1544                    return null;
1545            } 
1546        } 
1547        return {
1548            version4: versionNode ? (parseFloat(versionNode.content) >= 4) : false,
1549            executor: executor,
1550            updatePanelNodes: updatePanelNodes,
1551            hiddenFieldNodes: hiddenFieldNodes,
1552            arrayDeclarationNodes: arrayDeclarationNodes,
1553            scriptBlockNodes: scriptBlockNodes,
1554            scriptStartupNodes: scriptStartupNodes,
1555            expandoNodes: expandoNodes,
1556            onSubmitNodes: onSubmitNodes,
1557            dataItemNodes: dataItemNodes,
1558            dataItemJsonNodes: dataItemJsonNodes,
1559            scriptDisposeNodes: scriptDisposeNodes,
1560            asyncPostBackControlIDsNode: asyncPostBackControlIDsNode,
1561            postBackControlIDsNode: postBackControlIDsNode,
1562            updatePanelIDsNode: updatePanelIDsNode,
1563            asyncPostBackTimeoutNode: asyncPostBackTimeoutNode,
1564            childUpdatePanelIDsNode: childUpdatePanelIDsNode,
1565            panelsToRefreshNode: panelsToRefreshNode,
1566            formActionNode: formActionNode };
1567    }
1568    function Sys$WebForms$PageRequestManager$_processUpdatePanelArrays(updatePanelIDs, asyncPostBackControlIDs, postBackControlIDs, version4) {
1569        var newUpdatePanelIDs, newUpdatePanelClientIDs, newUpdatePanelHasChildrenAsTriggers;
1570        
1571        if (updatePanelIDs) {
1572            var l = updatePanelIDs.length,
1573                m = version4 ? 2 : 1;
1574            newUpdatePanelIDs = new Array(l/m);
1575            newUpdatePanelClientIDs = new Array(l/m);
1576            newUpdatePanelHasChildrenAsTriggers = new Array(l/m);
1577            
1578            for (var i = 0, j = 0; i < l; i += m, j++) {
1579                var ct,
1580                    uniqueID = updatePanelIDs[i],
1581                    clientID = version4 ? updatePanelIDs[i+1] : "";
1582                ct = (uniqueID.charAt(0) === 't');
1583                uniqueID = uniqueID.substr(1);
1584                if (!clientID) {
1585                    clientID = this._uniqueIDToClientID(uniqueID);
1586                }
1587                newUpdatePanelHasChildrenAsTriggers[j] = ct;
1588                newUpdatePanelIDs[j] = uniqueID;
1589                newUpdatePanelClientIDs[j] = clientID;
1590            }
1591        }
1592        else {
1593            newUpdatePanelIDs = [];
1594            newUpdatePanelClientIDs = [];
1595            newUpdatePanelHasChildrenAsTriggers = [];
1596        }
1597        var newAsyncPostBackControlIDs = [];
1598        var newAsyncPostBackControlClientIDs = [];
1599        this._convertToClientIDs(asyncPostBackControlIDs, newAsyncPostBackControlIDs, newAsyncPostBackControlClientIDs, version4);
1600        var newPostBackControlIDs = [];
1601        var newPostBackControlClientIDs = [];
1602        this._convertToClientIDs(postBackControlIDs, newPostBackControlIDs, newPostBackControlClientIDs, version4);
1603        
1604        return {
1605            updatePanelIDs: newUpdatePanelIDs,
1606            updatePanelClientIDs: newUpdatePanelClientIDs,
1607            updatePanelHasChildrenAsTriggers: newUpdatePanelHasChildrenAsTriggers,
1608            asyncPostBackControlIDs: newAsyncPostBackControlIDs,
1609            asyncPostBackControlClientIDs: newAsyncPostBackControlClientIDs,
1610            postBackControlIDs: newPostBackControlIDs,
1611            postBackControlClientIDs: newPostBackControlClientIDs
1612        };
1613    }
1614    function Sys$WebForms$PageRequestManager$_queueScripts(scriptLoader, scriptBlockNodes, queueIncludes, queueBlocks) {
1615        
1616        for (var i = 0, l = scriptBlockNodes.length; i < l; i++) {
1617            var scriptBlockType = scriptBlockNodes[i].id;
1618            switch (scriptBlockType) {
1619                case "ScriptContentNoTags":
1620                    if (!queueBlocks) {
1621                        continue;
1622                    }
1623                    scriptLoader.queueScriptBlock(scriptBlockNodes[i].content);
1624                    break;
1625                case "ScriptContentWithTags":
1626                    var scriptTagAttributes;
1627                    eval("scriptTagAttributes = " + scriptBlockNodes[i].content);
1628                    if (scriptTagAttributes.src) {
1629                        if (!queueIncludes || Sys._ScriptLoader.isScriptLoaded(scriptTagAttributes.src)) {
1630                            continue;
1631                        }
1632                    }
1633                    else if (!queueBlocks) {
1634                        continue;
1635                    }
1636                    scriptLoader.queueCustomScriptTag(scriptTagAttributes);
1637                    break;
1638                case "ScriptPath":
1639                    var script = scriptBlockNodes[i];
1640                    if (!queueIncludes || Sys._ScriptLoader.isScriptLoaded(script.content)) {
1641                        continue;
1642                    }
1643                    scriptLoader.queueScriptReference(script.content, script.fallback);
1644                    break;
1645            }
1646        }        
1647    }
1648    function Sys$WebForms$PageRequestManager$_registerDisposeScript(panelID, disposeScript) {
1649        if (!this._scriptDisposes[panelID]) {
1650            this._scriptDisposes[panelID] = [disposeScript];
1651        }
1652        else {
1653            Array.add(this._scriptDisposes[panelID], disposeScript);
1654        }
1655    }
1656    function Sys$WebForms$PageRequestManager$_scriptIncludesLoadComplete(scriptLoader, data) {
1657        
1658        
1659        if (data.executor.get_webRequest() !== this._request) {
1660            return;
1661        }
1662        
1663        this._commitControls(data.updatePanelData,
1664            data.asyncPostBackTimeoutNode ? data.asyncPostBackTimeoutNode.content : null);
1665        if (data.formActionNode) {
1666            this._form.action = data.formActionNode.content;
1667        }
1668        
1669        var i, l, node;
1670        for (i = 0, l = data.updatePanelNodes.length; i < l; i++) {
1671            node = data.updatePanelNodes[i];
1672            var updatePanelElement = document.getElementById(node.id);
1673            if (!updatePanelElement) {
1674                this._endPostBack(Error.invalidOperation(String.format(Sys.WebForms.Res.PRM_MissingPanel, node.id)), data.executor, data);
1675                return;
1676            }
1677            this._updatePanel(updatePanelElement, node.content);
1678        }
1679        for (i = 0, l = data.scriptDisposeNodes.length; i < l; i++) {
1680            node = data.scriptDisposeNodes[i];
1681            this._registerDisposeScript(node.id, node.content);
1682        }
1683        for (i = 0, l = this._transientFields.length; i < l; i++) {
1684            var field = document.getElementById(this._transientFields[i]);
1685            if (field) {
1686                var toRemove = field._isContained ? field.parentNode : field;
1687                toRemove.parentNode.removeChild(toRemove);
1688            }
1689        }
1690        for (i = 0, l = data.hiddenFieldNodes.length; i < l; i++) {
1691            node = data.hiddenFieldNodes[i];
1692            this._createHiddenField(node.id, node.content);
1693        }
1694        
1695        if (data.scriptsFailed) {
1696            throw Sys._ScriptLoader._errorScriptLoadFailed(data.scriptsFailed.src, data.scriptsFailed.multipleCallbacks);
1697        }
1698        
1699        this._queueScripts(scriptLoader, data.scriptBlockNodes, false, true);
1700        var arrayScript = '';
1701        for (i = 0, l = data.arrayDeclarationNodes.length; i < l; i++) {
1702            node = data.arrayDeclarationNodes[i];
1703            arrayScript += "Sys.WebForms.PageRequestManager._addArrayElement('" + node.id + "', " + node.content + ");\r\n";
1704        }
1705        var expandoScript = '';
1706        for (i = 0, l = data.expandoNodes.length; i < l; i++) {
1707            node = data.expandoNodes[i];
1708            expandoScript += node.id + " = " + node.content + "\r\n";
1709        }
1710        if (arrayScript.length) {
1711            scriptLoader.queueScriptBlock(arrayScript);
1712        }
1713        if (expandoScript.length) {
1714            scriptLoader.queueScriptBlock(expandoScript);
1715        }
1716        
1717        this._queueScripts(scriptLoader, data.scriptStartupNodes, true, true);
1718        var onSubmitStatementScript = '';
1719        for (i = 0, l = data.onSubmitNodes.length; i < l; i++) {
1720            if (i === 0) {
1721                onSubmitStatementScript = 'Array.add(Sys.WebForms.PageRequestManager.getInstance()._onSubmitStatements, function() {\r\n';
1722            }
1723            onSubmitStatementScript += data.onSubmitNodes[i].content + "\r\n";
1724        }
1725        if (onSubmitStatementScript.length) {
1726            onSubmitStatementScript += "\r\nreturn true;\r\n});\r\n";
1727            scriptLoader.queueScriptBlock(onSubmitStatementScript);
1728        }
1729        scriptLoader.loadScripts(0,
1730            Function.createDelegate(this, Function.createCallback(this._scriptsLoadComplete, data)), null, null);
1731    }
1732    function Sys$WebForms$PageRequestManager$_scriptIncludesLoadFailed(scriptLoader, scriptElement, multipleCallbacks, data) {
1733        data.scriptsFailed = { src: scriptElement.src, multipleCallbacks: multipleCallbacks };
1734        this._scriptIncludesLoadComplete(scriptLoader, data);
1735    }
1736    function Sys$WebForms$PageRequestManager$_scriptsLoadComplete(scriptLoader, data) {
1737        
1738        
1739        var response = data.executor;
1740        if (window.__theFormPostData) {
1741            window.__theFormPostData = "";
1742        }
1743        if (window.__theFormPostCollection) {
1744            window.__theFormPostCollection = [];
1745        }
1746        if (window.WebForm_InitCallback) {
1747            window.WebForm_InitCallback();
1748        }
1749        if (this._scrollPosition) {
1750            if (window.scrollTo) {
1751                window.scrollTo(this._scrollPosition.x, this._scrollPosition.y);
1752            }
1753            this._scrollPosition = null;
1754        }
1755        Sys.Application.endCreateComponents();
1756        this._pageLoaded(false, data);
1757        this._endPostBack(null, response, data);
1758        if (this._controlIDToFocus) {
1759            var focusTarget;
1760            var oldContentEditableSetting;
1761            if (Sys.Browser.agent === Sys.Browser.InternetExplorer) {
1762                var targetControl = $get(this._controlIDToFocus);
1763                focusTarget = targetControl;
1764                if (targetControl && (!WebForm_CanFocus(targetControl))) {
1765                    focusTarget = WebForm_FindFirstFocusableChild(targetControl);
1766                }
1767                if (focusTarget && (typeof(focusTarget.contentEditable) !== "undefined")) {
1768                    oldContentEditableSetting = focusTarget.contentEditable;
1769                    focusTarget.contentEditable = false;
1770                }
1771                else {
1772                    focusTarget = null;
1773                }
1774            }
1775            WebForm_AutoFocus(this._controlIDToFocus);
1776            if (focusTarget) {
1777                focusTarget.contentEditable = oldContentEditableSetting;
1778            }
1779            this._controlIDToFocus = null;
1780        }
1781    }
1782    function Sys$WebForms$PageRequestManager$_splitNodeIntoArray(node) {
1783        var str = node.content;
1784        var arr = str.length ? str.split(',') : [];
1785        return arr;
1786    }
1787    function Sys$WebForms$PageRequestManager$_uniqueIDToClientID(uniqueID) {
1788        return uniqueID.replace(/\$/g, '_');
1789    }
1790    function Sys$WebForms$PageRequestManager$_updateControls(updatePanelIDs, asyncPostBackControlIDs, postBackControlIDs, asyncPostBackTimeout, version4) {
1791        this._commitControls(
1792            this._processUpdatePanelArrays(updatePanelIDs, asyncPostBackControlIDs, postBackControlIDs, version4),
1793            asyncPostBackTimeout);
1794    }
1795    function Sys$WebForms$PageRequestManager$_updatePanel(updatePanelElement, rendering) {
1796        for (var updatePanelID in this._scriptDisposes) {
1797            if (this._elementContains(updatePanelElement, document.getElementById(updatePanelID))) {
1798                var disposeScripts = this._scriptDisposes[updatePanelID];
1799                for (var i = 0, l = disposeScripts.length; i < l; i++) {
1800                    eval(disposeScripts[i]);
1801                }
1802                delete this._scriptDisposes[updatePanelID];
1803            }
1804        }
1805        Sys.Application.disposeElement(updatePanelElement, true);
1806        updatePanelElement.innerHTML = rendering;
1807    }
1808    function Sys$WebForms$PageRequestManager$_validPosition(position) {
1809        return (typeof(position) !== "undefined") && (position !== null) && (position !== 0);
1810    }
1811Sys.WebForms.PageRequestManager.prototype = {
1812    _get_eventHandlerList: Sys$WebForms$PageRequestManager$_get_eventHandlerList,
1813    get_isInAsyncPostBack: Sys$WebForms$PageRequestManager$get_isInAsyncPostBack,
1814    add_beginRequest: Sys$WebForms$PageRequestManager$add_beginRequest,
1815    remove_beginRequest: Sys$WebForms$PageRequestManager$remove_beginRequest,
1816    add_endRequest: Sys$WebForms$PageRequestManager$add_endRequest,
1817    remove_endRequest: Sys$WebForms$PageRequestManager$remove_endRequest,
1818    add_initializeRequest: Sys$WebForms$PageRequestManager$add_initializeRequest,
1819    remove_initializeRequest: Sys$WebForms$PageRequestManager$remove_initializeRequest,
1820    add_pageLoaded: Sys$WebForms$PageRequestManager$add_pageLoaded,
1821    remove_pageLoaded: Sys$WebForms$PageRequestManager$remove_pageLoaded,
1822    add_pageLoading: Sys$WebForms$PageRequestManager$add_pageLoading,
1823    remove_pageLoading: Sys$WebForms$PageRequestManager$remove_pageLoading,
1824    abortPostBack: Sys$WebForms$PageRequestManager$abortPostBack,
1825    beginAsyncPostBack: Sys$WebForms$PageRequestManager$beginAsyncPostBack,
1826    _cancelPendingCallbacks: Sys$WebForms$PageRequestManager$_cancelPendingCallbacks,
1827    _commitControls: Sys$WebForms$PageRequestManager$_commitControls,
1828    _createHiddenField: Sys$WebForms$PageRequestManager$_createHiddenField,
1829    _createPageRequestManagerTimeoutError: Sys$WebForms$PageRequestManager$_createPageRequestManagerTimeoutError,
1830    _createPageRequestManagerServerError: Sys$WebForms$PageRequestManager$_createPageRequestManagerServerError,
1831    _createPageRequestManagerParserError: Sys$WebForms$PageRequestManager$_createPageRequestManagerParserError,
1832    _createPanelID: Sys$WebForms$PageRequestManager$_createPanelID,
1833    _createPostBackSettings: Sys$WebForms$PageRequestManager$_createPostBackSettings,
1834    _convertToClientIDs: Sys$WebForms$PageRequestManager$_convertToClientIDs,
1835    dispose: Sys$WebForms$PageRequestManager$dispose,
1836    _doCallback: Sys$WebForms$PageRequestManager$_doCallback,
1837    _doPostBack: Sys$WebForms$PageRequestManager$_doPostBack,
1838    _doPostBackWithOptions: Sys$WebForms$PageRequestManager$_doPostBackWithOptions,
1839    _elementContains: Sys$WebForms$PageRequestManager$_elementContains,
1840    _endPostBack: Sys$WebForms$PageRequestManager$_endPostBack,
1841    _ensureUniqueIds: Sys$WebForms$PageRequestManager$_ensureUniqueIds,
1842    _findNearestElement: Sys$WebForms$PageRequestManager$_findNearestElement,
1843    _findText: Sys$WebForms$PageRequestManager$_findText,
1844    _fireDefaultButton: Sys$WebForms$PageRequestManager$_fireDefaultButton,
1845    _getPageLoadedEventArgs: Sys$WebForms$PageRequestManager$_getPageLoadedEventArgs,
1846    _getPageLoadingEventArgs: Sys$WebForms$PageRequestManager$_getPageLoadingEventArgs,
1847    _getPostBackSettings: Sys$WebForms$PageRequestManager$_getPostBackSettings,
1848    _getScrollPosition: Sys$WebForms$PageRequestManager$_getScrollPosition,
1849    _initializeInternal: Sys$WebForms$PageRequestManager$_initializeInternal,
1850    _matchesParentIDInList: Sys$WebForms$PageRequestManager$_matchesParentIDInList,
1851    _onFormElementActive: Sys$WebForms$PageRequestManager$_onFormElementActive,
1852    _onFormElementClick: Sys$WebForms$PageRequestManager$_onFormElementClick,
1853    _onFormSubmit: Sys$WebForms$PageRequestManager$_onFormSubmit,
1854    _onFormSubmitCompleted: Sys$WebForms$PageRequestManager$_onFormSubmitCompleted,
1855    _onWindowUnload: Sys$WebForms$PageRequestManager$_onWindowUnload,
1856    _pageLoaded: Sys$WebForms$PageRequestManager$_pageLoaded,
1857    _pageLoadedInitialLoad: Sys$WebForms$PageRequestManager$_pageLoadedInitialLoad,
1858    _parseDelta: Sys$WebForms$PageRequestManager$_parseDelta,
1859    _processUpdatePanelArrays: Sys$WebForms$PageRequestManager$_processUpdatePanelArrays,
1860    _queueScripts: Sys$WebForms$PageRequestManager$_queueScripts,
1861    _registerDisposeScript: Sys$WebForms$PageRequestManager$_registerDisposeScript,
1862    _scriptIncludesLoadComplete: Sys$WebForms$PageRequestManager$_scriptIncludesLoadComplete,
1863    _scriptIncludesLoadFailed: Sys$WebForms$PageRequestManager$_scriptIncludesLoadFailed,
1864    _scriptsLoadComplete: Sys$WebForms$PageRequestManager$_scriptsLoadComplete,
1865    _splitNodeIntoArray: Sys$WebForms$PageRequestManager$_splitNodeIntoArray,
1866    _uniqueIDToClientID: Sys$WebForms$PageRequestManager$_uniqueIDToClientID,
1867    _updateControls: Sys$WebForms$PageRequestManager$_updateControls,
1868    _updatePanel: Sys$WebForms$PageRequestManager$_updatePanel,
1869    _validPosition: Sys$WebForms$PageRequestManager$_validPosition
1870}
1871Sys.WebForms.PageRequestManager.getInstance = function Sys$WebForms$PageRequestManager$getInstance() {
1872    /// <summary locid="M:J#Sys.WebForms.PageRequestManager.getInstance" />
1873    /// <returns type="Sys.WebForms.PageRequestManager"></returns>
1874    if (arguments.length !== 0) throw Error.parameterCount();
1875    var prm = Sys.WebForms.PageRequestManager._instance;
1876    if (!prm) {
1877        prm = Sys.WebForms.PageRequestManager._instance = new Sys.WebForms.PageRequestManager();
1878    }
1879    return prm;
1880}
1881Sys.WebForms.PageRequestManager._addArrayElement = function Sys$WebForms$PageRequestManager$_addArrayElement(arrayName) {
1882    if (!window[arrayName]) {
1883        window[arrayName] = new Array();
1884    }
1885    for (var i = 1, l = arguments.length; i < l; i++) {
1886        Array.add(window[arrayName], arguments[i]);
1887    }
1888}
1889Sys.WebForms.PageRequestManager._initialize = function Sys$WebForms$PageRequestManager$_initialize() {
1890    var prm = Sys.WebForms.PageRequestManager.getInstance();
1891    prm._initializeInternal.apply(prm, arguments);
1892}
1893Sys.WebForms.PageRequestManager.registerClass('Sys.WebForms.PageRequestManager');
1894 
1895Sys.UI._UpdateProgress = function Sys$UI$_UpdateProgress(element) {
1896    Sys.UI._UpdateProgress.initializeBase(this,[element]);
1897    this._displayAfter = 500;
1898    this._dynamicLayout = true;
1899    this._associatedUpdatePanelId = null;
1900    this._beginRequestHandlerDelegate = null;
1901    this._startDelegate = null;
1902    this._endRequestHandlerDelegate = null;
1903    this._pageRequestManager = null;
1904    this._timerCookie = null;
1905}
1906    function Sys$UI$_UpdateProgress$get_displayAfter() {
1907        /// <value type="Number" locid="P:J#Sys.UI._UpdateProgress.displayAfter"></value>
1908        if (arguments.length !== 0) throw Error.parameterCount();
1909        return this._displayAfter;
1910    }
1911    function Sys$UI$_UpdateProgress$set_displayAfter(value) {
1912        var e = Function._validateParams(arguments, [{name: "value", type: Number}]);
1913        if (e) throw e;
1914        this._displayAfter = value;
1915    }
1916    function Sys$UI$_UpdateProgress$get_dynamicLayout() {
1917        /// <value type="Boolean" locid="P:J#Sys.UI._UpdateProgress.dynamicLayout"></value>
1918        if (arguments.length !== 0) throw Error.parameterCount();
1919        return this._dynamicLayout;
1920    }
1921    function Sys$UI$_UpdateProgress$set_dynamicLayout(value) {
1922        var e = Function._validateParams(arguments, [{name: "value", type: Boolean}]);
1923        if (e) throw e;
1924        this._dynamicLayout = value;
1925    }
1926    function Sys$UI$_UpdateProgress$get_associatedUpdatePanelId() {
1927        /// <value type="String" mayBeNull="true" locid="P:J#Sys.UI._UpdateProgress.associatedUpdatePanelId"></value>
1928        if (arguments.length !== 0) throw Error.parameterCount();
1929        return this._associatedUpdatePanelId;
1930    }
1931    function Sys$UI$_UpdateProgress$set_associatedUpdatePanelId(value) {
1932        var e = Function._validateParams(arguments, [{name: "value", type: String, mayBeNull: true}]);
1933        if (e) throw e;
1934        this._associatedUpdatePanelId = value;
1935    }
1936    function Sys$UI$_UpdateProgress$get_role() {
1937        /// <value type="String" locid="P:J#Sys.UI._UpdateProgress.role"></value>
1938        if (arguments.length !== 0) throw Error.parameterCount();
1939        return "status";
1940    }
1941    function Sys$UI$_UpdateProgress$_clearTimeout() {
1942        if (this._timerCookie) {
1943            window.clearTimeout(this._timerCookie);
1944            this._timerCookie = null;
1945        }
1946    }
1947    function Sys$UI$_UpdateProgress$_getUniqueID(clientID) {
1948        var i = Array.indexOf(this._pageRequestManager._updatePanelClientIDs, clientID);
1949        return i === -1 ? null : this._pageRequestManager._updatePanelIDs[i];
1950    }
1951    function Sys$UI$_UpdateProgress$_handleBeginRequest(sender, arg) {
1952        var curElem = arg.get_postBackElement(),
1953            showProgress = true,
1954            upID = this._associatedUpdatePanelId;
1955        if (this._associatedUpdatePanelId) {
1956            var updating = arg.get_updatePanelsToUpdate();
1957            if (updating && updating.length) {
1958                showProgress = (Array.contains(updating, upID) || Array.contains(updating, this._getUniqueID(upID)))
1959            }
1960            else {
1961                showProgress = false;
1962            }
1963        }
1964        while (!showProgress && curElem) {
1965            if (curElem.id && this._associatedUpdatePanelId === curElem.id) {
1966                showProgress = true; 
1967            }
1968            curElem = curElem.parentNode; 
1969        } 
1970        if (showProgress) {
1971            this._timerCookie = window.setTimeout(this._startDelegate, this._displayAfter);
1972        }
1973    }
1974    function Sys$UI$_UpdateProgress$_startRequest() {
1975        if (this._pageRequestManager.get_isInAsyncPostBack()) {
1976            var element = this.get_element();
1977            if (this._dynamicLayout) {
1978                element.style.display = 'block';
1979            }
1980            else {
1981                element.style.visibility = 'visible';
1982            }
1983            if (this.get_role() === "status") {
1984                element.setAttribute("aria-hidden", "false");
1985            }
1986        }
1987        this._timerCookie = null;
1988    }
1989    function Sys$UI$_UpdateProgress$_handleEndRequest(sender, arg) {
1990        var element = this.get_element();
1991        if (this._dynamicLayout) {
1992            element.style.display = 'none';
1993        }
1994        else {
1995            element.style.visibility = 'hidden';
1996        }
1997        if (this.get_role() === "status") {
1998            element.setAttribute("aria-hidden", "true");
1999        }
2000        this._clearTimeout();
2001    }
2002    function Sys$UI$_UpdateProgress$dispose() {
2003        if (this._beginRequestHandlerDelegate !== null) {
2004            this._pageRequestManager.remove_beginRequest(this._beginRequestHandlerDelegate);
2005            this._pageRequestManager.remove_endRequest(this._endRequestHandlerDelegate);
2006            this._beginRequestHandlerDelegate = null;
2007            this._endRequestHandlerDelegate = null;
2008        }
2009        this._clearTimeout();
2010        Sys.UI._UpdateProgress.callBaseMethod(this,"dispose");
2011    }
2012    function Sys$UI$_UpdateProgress$initialize() {
2013        Sys.UI._UpdateProgress.callBaseMethod(this, 'initialize');
2014        if (this.get_role() === "status") {
2015            this.get_element().setAttribute("aria-hidden", "true");
2016        }
2017    	this._beginRequestHandlerDelegate = Function.createDelegate(this, this._handleBeginRequest);
2018    	this._endRequestHandlerDelegate = Function.createDelegate(this, this._handleEndRequest);
2019    	this._startDelegate = Function.createDelegate(this, this._startRequest);
2020    	if (Sys.WebForms && Sys.WebForms.PageRequestManager) {
2021           this._pageRequestManager = Sys.WebForms.PageRequestManager.getInstance();
2022    	}
2023    	if (this._pageRequestManager !== null ) {
2024    	    this._pageRequestManager.add_beginRequest(this._beginRequestHandlerDelegate);
2025    	    this._pageRequestManager.add_endRequest(this._endRequestHandlerDelegate);
2026    	}
2027    }
2028Sys.UI._UpdateProgress.prototype = {
2029    get_displayAfter: Sys$UI$_UpdateProgress$get_displayAfter,
2030    set_displayAfter: Sys$UI$_UpdateProgress$set_displayAfter,
2031    get_dynamicLayout: Sys$UI$_UpdateProgress$get_dynamicLayout,
2032    set_dynamicLayout: Sys$UI$_UpdateProgress$set_dynamicLayout,
2033    get_associatedUpdatePanelId: Sys$UI$_UpdateProgress$get_associatedUpdatePanelId,
2034    set_associatedUpdatePanelId: Sys$UI$_UpdateProgress$set_associatedUpdatePanelId,
2035    get_role: Sys$UI$_UpdateProgress$get_role,
2036    _clearTimeout: Sys$UI$_UpdateProgress$_clearTimeout,
2037    _getUniqueID: Sys$UI$_UpdateProgress$_getUniqueID,
2038    _handleBeginRequest: Sys$UI$_UpdateProgress$_handleBeginRequest,
2039    _startRequest: Sys$UI$_UpdateProgress$_startRequest,
2040    _handleEndRequest: Sys$UI$_UpdateProgress$_handleEndRequest,
2041    dispose: Sys$UI$_UpdateProgress$dispose,
2042    initialize: Sys$UI$_UpdateProgress$initialize
2043}
2044Sys.UI._UpdateProgress.registerClass('Sys.UI._UpdateProgress', Sys.UI.Control);
2045
2046
2047Type.registerNamespace('Sys.WebForms');
2048Sys.WebForms.Res={
2049"PRM_UnknownToken":"Unknown token: \u0027{0}\u0027.",
2050"PRM_MissingPanel":"Could not find UpdatePanel with ID \u0027{0}\u0027. If it is being updated dynamically then it must be inside another UpdatePanel.",
2051"PRM_ServerError":"An unknown error occurred while processing the request on the server. The status code returned from the server was: {0}",
2052"PRM_ParserError":"The message received from the server could not be parsed.",
2053"PRM_TimeoutError":"The server request timed out.",
2054"PRM_ParserErrorDetails":"Error parsing near \u0027{0}\u0027.",
2055"PRM_CannotRegisterTwice":"The PageRequestManager cannot be initialized more than once."
2056};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.