PageSourceSearch

https://domdivanov29.ru/scripts/ajaxnet.js

js domdivanov29.ru collected 2026-10-05 00:07:53 UTC 16,084 bytes, 1 lines download raw bytes

1Object.extend=function(t,e,n){for(var i in e)0==n&&null!=t[i]||(t[i]=e[i]);return t},Object.extend(Function.prototype,{apply:function(o,a){var r,x="__fapply";"object"!=typeof o&&(o={}),o[x]=this;for(var s="r = o."+x+"(",i=0;i<a.length;i++)0<i&&(s+=","),s+="a["+i+"]";return s+=");",eval(s),delete o[x],r},bind:function(t){Function.__objs||(Function.__objs=[],Function.__funcs=[]);var e=t.__oid;e||(Function.__objs[e=t.__oid=Function.__objs.length]=t);var n=this,i=n.__fid;return i||(Function.__funcs[i=n.__fid=Function.__funcs.length]=n),t.__closures||(t.__closures=[]),t.__closures[i]||(n=t=null,Function.__objs[e].__closures[i]=function(){return Function.__funcs[i].apply(Function.__objs[e],arguments)})}},!1),Object.extend(Array.prototype,{push:function(t){this[this.length]=t},addRange:function(t){if(0<t.length)for(var e=0;e<t.length;e++)this.push(t[e])},clear:function(){return this.length=0,this},shift:function(){if(0==this.length)return null;for(var t=this[0],e=0;e<this.length-1;e++)this[e]=this[e+1];return this.length--,t}},!1),Object.extend(String.prototype,{trimLeft:function(){return this.replace(/^\s*/,"")},trimRight:function(){return this.replace(/\s*$/,"")},trim:function(){return this.trimRight().trimLeft()},endsWith:function(t){return!(0==this.length||this.length<t.length)&&this.substr(this.length-t.length)==t},startsWith:function(t){return!(0==this.length||this.length<t.length)&&this.substr(0,t.length)==t},split:function(t){var e=[];if(0==this.length)return e;for(var n=0,i=0;i<this.length;i++)this.charAt(i)==t&&(e.push(this.substring(n,i)),n=++i);return e.push(s.substr(n)),e}},!1),Object.extend(String,{format:function(t){for(var e=1;e<arguments.length;e++)t=t.replace("{"+(e-1)+"}",arguments[e]);return t},isNullOrEmpty:function(t){return null==t||0==t.length}},!1),"undefined"==typeof addEvent&&(addEvent=function(t,e,n,i){if(null==t)return!1;if(t.addEventListener)return t.addEventListener(e,n,i),!0;if(t.attachEvent)return t.attachEvent("on"+e,n);try{t["on"+e]=n}catch(t){}}),"undefined"==typeof removeEvent&&(removeEvent=function(t,e,n,i){if(null==t)return!1;if(t.removeEventListener)return t.removeEventListener(e,n,i),!0;if(t.detachEvent)t.detachEvent("on"+e,n);else try{t["on"+e]=function(){}}catch(t){}}),Object.extend(Function.prototype,{getArguments:function(){for(var t=[],e=0;e<this.arguments.length;e++)t.push(this.arguments[e]);return t}},!1);var MS={Browser:{}};Object.extend(MS.Browser,{isIE:-1!=navigator.userAgent.indexOf("MSIE"),isFirefox:-1!=navigator.userAgent.indexOf("Firefox"),isOpera:null!=window.opera},!1);var AjaxPro={IFrameXmlHttp:function(){}};AjaxPro.IFrameXmlHttp.prototype={onreadystatechange:null,headers:[],method:"POST",url:null,async:!0,iframe:null,status:0,readyState:0,responseText:null,abort:function(){},readystatechanged:function(){var t=this.iframe.contentDocument||this.iframe.document;if(null!=t&&"complete"==t.readyState&&null!=t.body&&null!=t.body.res)return this.status=200,this.statusText="OK",this.readyState=4,this.responseText=t.body.res,void this.onreadystatechange();setTimeout(this.readystatechanged.bind(this),10)},open:function(t,e,n){var i,s;0!=n?(null==this.iframe&&(i="hans",document.createElement&&document.documentElement&&(window.opera||-1==navigator.userAgent.indexOf("MSIE 5.0"))?((s=document.createElement("iframe")).setAttribute("id",i),s.style.visibility="hidden",s.style.position="absolute",s.style.width=s.style.height=s.borderWidth="0px",this.iframe=document.getElementsByTagName("body")[0].appendChild(s)):document.body&&document.body.insertAdjacentHTML&&document.body.insertAdjacentHTML("beforeEnd",'<iframe name="hans" id="hans" style="border:1px solid black;display:none"></iframe>'),window.frames&&window.frames[i]&&(this.iframe=window.frames[i]),this.iframe.name=i,this.iframe.document.open(),this.iframe.document.write("<html><body></body></html>"),this.iframe.document.close()),this.method=t,this.url=e,this.async=n):alert("Synchronous call using IFrameXMLHttp is not supported.")},setRequestHeader:function(t,e){for(var n=0;n<this.headers.length;n++)if(this.headers[n].name==t)return void(this.headers[n].value=e);this.headers.push({name:t,value:e})},getResponseHeader:function(t,e){return null},addInput:function(t,e,n,i){var s,r="input";0<=i.indexOf("\n")&&(r="textarea"),t.all?s=t.createElement("<"+r+' name="'+n+'" />'):(s=t.createElement(r)).setAttribute("name",n),s.setAttribute("value",i),e.appendChild(s),s=null},send:function(t){if(null!=this.iframe){var e=this.iframe.contentDocument||this.iframe.document,n=e.createElement("form");e.body.appendChild(n),n.setAttribute("action",this.url),n.setAttribute("method",this.method),n.setAttribute("enctype","application/x-www-form-urlencoded");for(var i=0;i<this.headers.length;i++)switch(this.headers[i].name.toLowerCase()){case"content-length":case"accept-encoding":case"content-type":break;default:this.addInput(e,n,this.headers[i].name,this.headers[i].value)}this.addInput(e,n,"data",t),n.submit(),setTimeout(this.readystatechanged.bind(this),0)}}};var progids=["Msxml2.XMLHTTP.6.0","Msxml2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],progid=null;if("undefined"!=typeof ActiveXObject){var ie7xmlhttp=!1;if("object"==typeof XMLHttpRequest)try{var o=new XMLHttpRequest,ie7xmlhttp=!0}catch(t){}"undefined"!=typeof XMLHttpRequest&&ie7xmlhttp||(XMLHttpRequest=function(){var t=null;
1if(!AjaxPro.noActiveX){if(null!=progid)return new ActiveXObject(progid);for(var e=0;e<progids.length&&null==t;e++)try{t=new ActiveXObject(progids[e]),progid=progids[e]}catch(t){}}return null==t&&MS.Browser.isIE?new AjaxPro.IFrameXmlHttp:t})}Object.extend(AjaxPro,{noOperation:function(){},onLoading:function(){},onError:function(){},onTimeout:function(){return!0},onStateChanged:function(){},cryptProvider:null,queue:null,token:"",version:"9.2.17.1",ID:"AjaxPro",noActiveX:!1,timeoutPeriod:15e3,noUtcTime:!1,regExDate:function(t,e,n,i,s){t=t.substring(1).replace('"',"");return"\\/Date("==t.substring(0,7)?(t=t.match(/Date\((.*?)\)/)[1],"new Date("+parseInt(t)+")"):((t=t.split(/[-,:,T,Z]/))[1]=(parseInt(t[1],0)-1).toString(),"new Date(Date.UTC("+t.join(",")+"))")},parse:function(text){var regEx=/(\"\d{4}-\d{2}-\d{2}T\d{2}:\d{2}.*?\")|(\"\\\/Date\(.*?\)\\\/")/g;return text=text.replace(regEx,this.regExDate),eval("("+text+")")},m:{"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},toJSON:function(t){if(null==t)return"null";var e,n,i=[],s=t.constructor;if(s==Number)return isFinite(t)?t.toString():AjaxPro.toJSON(null);if(s==Boolean)return t.toString();if(s==String)return/["\\\x00-\x1f]/.test(t)&&(t=t.replace(/([\x00-\x1f\\"])/g,function(t,e){var n=AjaxPro.m[e];return n||(n=e.charCodeAt(),"\\u00"+Math.floor(n/16).toString(16)+(n%16).toString(16))})),'"'+t+'"';if(s==Array){for(e=0;e<t.length;e++)i.push(AjaxPro.toJSON(t[e]));return"["+i.join(",")+"]"}if(s==Date)return AjaxPro.toJSON("/Date("+new Date(Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds())).getTime()+")/");if("function"==typeof t.toJSON)return t.toJSON();if("object"!=typeof t)return t.toString();for(n in t)"function"!=typeof t[n]&&i.push('"'+n+'":'+AjaxPro.toJSON(t[n]));return 0<i.length?"{"+i.join(",")+"}":"{}"},dispose:function(){null!=AjaxPro.queue&&AjaxPro.queue.dispose()}},!1),AjaxPro.Request=function(t){this.url=t,this.xmlHttp=null},AjaxPro.Request.prototype={url:null,callback:null,onLoading:null,onError:null,onTimeout:null,onStateChanged:null,args:null,context:null,isRunning:!1,abort:function(){null!=this.timeoutTimer&&clearTimeout(this.timeoutTimer),this.xmlHttp&&(this.xmlHttp.onreadystatechange=AjaxPro.noOperation,this.xmlHttp.abort()),this.isRunning&&(this.isRunning=!1,this.onLoading(!1))},dispose:function(){this.abort()},getEmptyRes:function(){return{error:null,value:null,request:{method:this.method,args:this.args},context:this.context,duration:this.duration}},endRequest:function(t){this.abort(),null!=t.error&&this.onError(t.error,this),"function"==typeof this.callback&&this.callback(t,this)},mozerror:function(){null!=this.timeoutTimer&&clearTimeout(this.timeoutTimer);var t=this.getEmptyRes();t.error={Message:"Unknown",Type:"ConnectFailure",Status:0},this.endRequest(t)},doStateChange:function(){var t;this.onStateChanged(this.xmlHttp.readyState,this),4==this.xmlHttp.readyState&&this.isRunning&&(this.duration=(new Date).getTime()-this.__start,null!=this.timeoutTimer&&clearTimeout(this.timeoutTimer),t=this.getEmptyRes(),200==this.xmlHttp.status?t=this.createResponse(t):(t=this.createResponse(t,!0)).error={Message:this.xmlHttp.statusText,Type:"ConnectFailure",Status:this.xmlHttp.status},this.endRequest(t))},createResponse:function(t,e){if(!e){if("unknown"==typeof this.xmlHttp.responseText)return t.error={Message:"XmlHttpRequest error reading property responseText.",Type:"XmlHttpRequestException"},t;e=""+this.xmlHttp.responseText;null!=AjaxPro.cryptProvider&&"function"==typeof AjaxPro.cryptProvider.decrypt&&(e=AjaxPro.cryptProvider.decrypt(e)),"text/xml"==this.xmlHttp.getResponseHeader("Content-Type")?t.value=this.xmlHttp.responseXML:null!=e&&0<e.trim().length&&(t.json=e,null!=(e=AjaxPro.parse(e))&&(void 0!==e.value?t.value=e.value:void 0!==e.error&&(t.error=e.error)))}return t},timeout:function(){this.duration=(new Date).getTime()-this.__start;var t=this.onTimeout(this.duration,this);void 0===t||0!=t?this.abort():this.timeoutTimer=setTimeout(this.timeout.bind(this),AjaxPro.timeoutPeriod)},invoke:function(t,e,n,i){this.__start=(new Date).getTime(),this.xmlHttp=new XMLHttpRequest,this.isRunning=!0,this.method=t,this.args=e,this.callback=n,this.context=i;n="function"==typeof n&&n!=AjaxPro.noOperation;n&&(MS.Browser.isIE?this.xmlHttp.onreadystatechange=this.doStateChange.bind(this):(this.xmlHttp.onload=this.doStateChange.bind(this),this.xmlHttp.onerror=this.mozerror.bind(this)),this.onLoading(!0));var s=AjaxPro.toJSON(e)+"";null!=AjaxPro.cryptProvider&&"function"==typeof AjaxPro.cryptProvider.encrypt&&(s=AjaxPro.cryptProvider.encrypt(s)),this.xmlHttp.open("POST",this.url,n),this.xmlHttp.setRequestHeader("Content-Type","text/plain; charset=utf-8"),this.xmlHttp.setRequestHeader("X-"+AjaxPro.ID+"-Method",t),null!=AjaxPro.token&&0<AjaxPro.token.length&&this.xmlHttp.setRequestHeader("X-"+AjaxPro.ID+"-Token",AjaxPro.token),this.timeoutTimer=setTimeout(this.timeout.bind(this),AjaxPro.timeoutPeriod);try{this.xmlHttp.send(s)}catch(t){}return!!n||this.createResponse({error:null,value:null})}},AjaxPro.RequestQueue=function(t){this.queue=[],this.requests=[],this.timer=null,isNaN(t)&&(t=2);for(var e=0;e<t;e++)this.requests[e]=new AjaxPro.Request,this.requests[e].callback=function(t){var e=t.context;t.context=e[3][1],e[3][0](t,this)},this.requests[e].callbackHandle=this.requests[e].callback.bind(this.requests[e]);this.processHandle=this.process.bind(this)},AjaxPro.RequestQueue.prototype={process:function(){if(this.timer=null,0!=this.queue.length){for(var t,e=0;e<this.requests.length&&0<this.queue.length;e++)0==this.requests[e].isRunning&&(t=this.queue.shift(),this.requests[e].url=t[0],this.requests[e].onLoading=2<t[3].length&&null!=t[3][2]&&"function"==typeof t[3][2]?t[3][2]:AjaxPro.onLoading,this.requests[e].onError=3<t[3].length&&null!=t[3][3]&&"function"==typeof t[3][3]?t[3][3]:AjaxPro.onError,this.requests[e].onTimeout=4<t[3].length&&null!=t[3][4]&&"function"==typeof t[3][4]?t[3][4]:AjaxPro.onTimeout,this.requests[e].onStateChanged=5<t[3].length&&null!=t[3][5]&&"function"==typeof t[3][5]?t[3][5]:AjaxPro.onStateChanged,this.requests[e].invoke(t[1],t[2],this.requests[e].callbackHandle,t),t=null);0<this.queue.length&&null==this.timer&&(this.timer=setTimeout(this.processHandle,0))}},add:function(t,e,n,i){this.queue.push([t,e,n,i]),null==this.timer&&(this.timer=setTimeout(this.processHandle,0))},abort:function(){this.queue.length=0,null!=this.timer&&clearTimeout(this.timer),this.timer=null;for(var t=0;t<this.requests.length;t++)1==this.requests[t].isRunning&&this.requests[t].abort()},dispose:function(){for(var t=0;t<this.requests.length;t++)this.requests[t].dispose();this.requests.clear()}},AjaxPro.queue=new AjaxPro.RequestQueue(2),AjaxPro.AjaxClass=function(t){this.url=t},AjaxPro.AjaxClass.prototype={invoke:function(t,e,n){if(null!=n){if(6!=n.length)for(;n.length<6;)n.push(null);if(null!=n[0]&&"function"==typeof n[0])return AjaxPro.queue.add(this.url,t,e,n)}var i=new AjaxPro.Request;return i.url=this.url,i.invoke(t,e)}},"undefined"==typeof Ajax&&(Ajax={}),void 0===Ajax.Web&&(Ajax.Web={}),void 0===Ajax.Web.NameValueCollection&&(Ajax.Web.NameValueCollection={}),Ajax.Web.NameValueCollection=function(t){if(this.__type="System.Collections.Specialized.NameValueCollection",this.keys=[],this.values=[],null!=t&&!isNaN(t.length))for(var e=0;e<t.length;e++)this.add(t[e][0],t[e][1])}
1,Object.extend(Ajax.Web.NameValueCollection.prototype,{add:function(t,e){return null==t||t.constructor!=String||null==e||e.constructor!=String?-1:(this.keys.push(t),this.values.push(e),this.values.length-1)},containsKey:function(t){for(var e=0;e<this.keys.length;e++)if(this.keys[e]==t)return!0;return!1},getKeys:function(){return this.keys},getValue:function(t){for(var e=0;e<this.keys.length&&e<this.values.length;e++)if(this.keys[e]==t)return this.values[e];return null},setValue:function(t,e){if(null==t||t.constructor!=String||null==e||e.constructor!=String)return-1;var n=0;return n<this.keys.length&&n<this.values.length?(this.keys[n]==t&&(this.values[n]=e),n):this.add(t,e)},toJSON:function(){return AjaxPro.toJSON({__type:this.__type,keys:this.keys,values:this.values})}},!0),"undefined"==typeof Ajax&&(Ajax={}),void 0===Ajax.Web&&(Ajax.Web={}),void 0===Ajax.Web.DataSet&&(Ajax.Web.DataSet={}),Ajax.Web.DataSet=function(t){if(this.__type="System.Data.DataSet,System.Data",this.Tables=[],this.addTable=function(t){this.Tables.push(t)},null!=t)for(var e=0;e<t.length;e++)this.addTable(t[e])},"undefined"==typeof Ajax&&(Ajax={}),void 0===Ajax.Web&&(Ajax.Web={}),void 0===Ajax.Web.DataTable&&(Ajax.Web.DataTable={}),Ajax.Web.DataTable=function(t,e){if(this.__type="System.Data.DataTable,System.Data",this.Columns=[],this.Rows=[],this.addColumn=function(t,e){this.Columns.push({Name:t,__type:e})},this.toJSON=function(){for(var t={Columns:[]},e=0;e<this.Columns.length;e++)t.Columns.push([this.Columns[e].Name,this.Columns[e].__type]);for(t.Rows=[],e=0;e<this.Rows.length;e++){for(var n=[],i=0;i<this.Columns.length;i++)n.push(this.Rows[e][this.Columns[i].Name]);t.Rows.push(n)}return AjaxPro.toJSON(t)},this.addRow=function(t){this.Rows.push(t)},null!=t)for(var n=0;n<t.length;n++)this.addColumn(t[n][0],t[n][1]);if(null!=e)for(var i=0;i<e.length;i++){for(var s={},r=0;r<this.Columns.length&&r<e[i].length;r++)s[this.Columns[r].Name]=e[i][r];this.addRow(s)}},"undefined"==typeof Ajax&&(Ajax={}),void 0===Ajax.Web&&(Ajax.Web={}),void 0===Ajax.Web.Profile&&(Ajax.Web.Profile={}),Ajax.Web.Profile=function(){this.toJSON=function(){throw"Ajax.Web.Profile cannot be converted to JSON format."},this.setProperty_callback=function(t){},this.setProperty=function(t,e){this[t]=e,AjaxPro.Services.Profile.SetProfile({name:o},this.setProperty_callback.bind(this))}},"undefined"==typeof Ajax&&(Ajax={}),void 0===Ajax.Web&&(Ajax.Web={}),void 0===Ajax.Web.Dictionary&&(Ajax.Web.Dictionary={}),Ajax.Web.Dictionary=function(t,e){if(this.__type=t,this.keys=[],this.values=[],null!=e&&!isNaN(e.length))for(var n=0;n<e.length;n++)this.add(e[n][0],e[n][1])},Object.extend(Ajax.Web.Dictionary.prototype,{add:function(t,e){return this.keys.push(t),this.values.push(e),this.values.length-1},containsKey:function(t){for(var e=0;e<this.keys.length;e++)if(this.keys[e]==t)return!0;return!1},getKeys:function(){return this.keys},getValue:function(t){for(var e=0;e<this.keys.length&&e<this.values.length;e++)if(this.keys[e]==t)return this.values[e];return null},setValue:function(t,e){var n=0;return n<this.keys.length&&n<this.values.length?(this.keys[n]==t&&(this.values[n]=e),n):this.add(t,e)},toJSON:function(){return AjaxPro.toJSON({__type:this.__type,keys:this.keys,values:this.values})}},!0);

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.