From 8a52c39b373a80e80d6bc7c4aacb03e0842ee3e1 Mon Sep 17 00:00:00 2001 From: Kegan Myers Date: Tue, 15 Apr 2014 11:25:52 -0500 Subject: [PATCH] Update build 0.6.1 --- build/typertext.js | 39 ++++++++++++++++++++++++++++++++------ build/typertext.js.map | 2 +- build/typertext.min.js | 2 +- build/typertext.min.js.map | 2 +- 4 files changed, 36 insertions(+), 9 deletions(-) diff --git a/build/typertext.js b/build/typertext.js index e973335..1063d4d 100644 --- a/build/typertext.js +++ b/build/typertext.js @@ -253,6 +253,22 @@ var Typertext; HttpUrl.prototype.ToString = function () { return Typertext.Http.HttpProtocol[this.protocol] + "://" + this.domain + ((this.port == HttpUrl.DefaultPort(this.protocol)) ? "" : ":" + this.port) + this.path + HttpUrl.EncodeQueryString(this.queryString); }; + + HttpUrl.prototype.GetPort = function () { + return this.port; + }; + + HttpUrl.prototype.GetDomain = function () { + return this.domain; + }; + + HttpUrl.prototype.GetProtocol = function () { + return this.protocol; + }; + + HttpUrl.prototype.CrossOriginCheck = function (url) { + return (this.domain === url.GetDomain() && this.port === url.GetPort() && this.protocol === url.GetProtocol()); + }; return HttpUrl; })(); Http.HttpUrl = HttpUrl; @@ -366,20 +382,31 @@ var Typertext; var Typertext; (function (Typertext) { (function (Transport) { + var HttpUrl = Typertext.Http.HttpUrl; + var TransportChooser = (function () { function TransportChooser() { } TransportChooser.Transport = function (method, request, postData, callback) { - var ieLte9 = false; - var isXdomain = false; - var isXprotocol = false; + var ieTestDiv = document.createElement("div"); + ieTestDiv.innerHTML = ""; - if (!ieLte9) { - return new Typertext.Transport.XDR(method, request, postData, callback); - } else if (isXdomain && !isXprotocol) { + if (ieTestDiv.getElementsByTagName("i").length === 1) { + throw {}; + } + + ieTestDiv.innerHTML = ""; + var ieLte9 = (ieTestDiv.getElementsByTagName("i").length === 1); + var origin = HttpUrl.FromUrl(window.location.href); + + if (!origin.CrossOriginCheck(url) || !ieLte9) { return new Typertext.Transport.XHR(method, request, postData, callback); } + if (origin.GetProtocol() === request.GetProtocol()) { + return new Typertext.Transport.XDR(method, request, postData, callback); + } + throw {}; }; return TransportChooser; diff --git a/build/typertext.js.map b/build/typertext.js.map index 741c78b..aba1215 100644 --- a/build/typertext.js.map +++ b/build/typertext.js.map @@ -1 +1 @@ -{"version":3,"file":"typertext.js","sourceRoot":"","sources":["../lib/Typertext/BaseException.ts","../lib/Typertext/GenericRequest.ts","../lib/Typertext/GenericResponse.ts","../lib/Typertext/GenericResponseHandler.ts","../lib/Typertext/Http/HttpException.ts","../lib/Typertext/Http/HttpMethod.ts","../lib/Typertext/Http/HttpPostData.ts","../lib/Typertext/Http/HttpProtocol.ts","../lib/Typertext/Http/HttpQueryString.ts","../lib/Typertext/Http/HttpRequest.ts","../lib/Typertext/Http/HttpResponse.ts","../lib/Typertext/Http/HttpResponseHandler.ts","../lib/Typertext/Http/HttpResponseStatus.ts","../lib/Typertext/Http/HttpUrl.ts","../lib/Typertext/Json/JsonException.ts","../lib/Typertext/Json/JsonObject.ts","../lib/Typertext/Json/JsonRequest.ts","../lib/Typertext/Json/JsonResponse.ts","../lib/Typertext/Json/JsonResponseHandler.ts","../lib/Typertext/Transport/GenericTransport.ts","../lib/Typertext/Transport/TransportChooser.ts","../lib/Typertext/Transport/XDR.ts","../lib/Typertext/Transport/XHR.ts"],"names":["Typertext","Typertext.BaseException","Typertext.BaseException.constructor","Typertext.BaseException.GetCode","Typertext.BaseException.GetMessage","Typertext.BaseException.GetCustom","Typertext.GenericResponse","Typertext.GenericResponse.constructor","Typertext.GenericResponse.GetContent","Typertext.GenericResponse.GetContentType","Typertext.GenericResponse.GetHeader","Typertext.GenericResponse.GetHttpStatus","Typertext.GenericResponse.GetStatus","Typertext.Http","Typertext.Http.HttpException","Typertext.Http.HttpException.constructor","Typertext.Http.HttpMethod","Typertext.Http.HttpProtocol","Typertext.Http.HttpRequest","Typertext.Http.HttpRequest.constructor","Typertext.Http.HttpRequest.Get","Typertext.Http.HttpRequest.Post","Typertext.Http.HttpRequest.RawRequest","Typertext.Http.HttpResponse","Typertext.Http.HttpResponse.constructor","Typertext.Http.HttpResponseStatus","Typertext.Http.HttpUrl","Typertext.Http.HttpUrl.constructor","Typertext.Http.HttpUrl.DefaultPort","Typertext.Http.HttpUrl.FromUrl","Typertext.Http.HttpUrl.DecodeQueryString","Typertext.Http.HttpUrl.EncodeQueryString","Typertext.Http.HttpUrl.UrlEncodeObject","Typertext.Http.HttpUrl.UrlDecodeString","Typertext.Http.HttpUrl.splitString","Typertext.Http.HttpUrl.ToString","Typertext.Json","Typertext.Json.JsonException","Typertext.Json.JsonException.constructor","Typertext.Json.JsonRequest","Typertext.Json.JsonRequest.constructor","Typertext.Json.JsonRequest.Get","Typertext.Json.JsonRequest.Post","Typertext.Json.JsonRequest.RawRequest","Typertext.Json.JsonResponse","Typertext.Json.JsonResponse.constructor","Typertext.Json.JsonResponse.fromHttpResponse","Typertext.Json.JsonResponse.fromInvalidHttpResponse","Typertext.Json.JsonResponse.GetParseStatus","Typertext.Transport","Typertext.Transport.GenericTransport","Typertext.Transport.GenericTransport.constructor","Typertext.Transport.TransportChooser","Typertext.Transport.TransportChooser.constructor","Typertext.Transport.TransportChooser.Transport","Typertext.Transport.XDR","Typertext.Transport.XDR.constructor","Typertext.Transport.XHR","Typertext.Transport.XHR.constructor"],"mappings":"AAKA,IAAO,SAAS;AA+Cf,CA/CD,UAAO,SAAS;IACZA;QAaIC,uBAAYA,OAAcA,EAAEA,IAAWA,EAAEA,MAAQA;YAC7CC,IAAIA,CAACA,OAAOA,GAAGA,OAAOA;YACtBA,IAAIA,CAACA,IAAIA,GAAGA,IAAIA;YAChBA,IAAIA,CAACA,MAAMA,GAAGA,MAAMA;QACxBA,CAACA;QAODD,kCAAAA;YACIE,OAAOA,IAAIA,CAACA,IAAIA;QACpBA,CAACA;;QAODF,qCAAAA;YACIG,OAAOA,IAAIA,CAACA,OAAOA;QACvBA,CAACA;;QAODH,oCAAAA;YACII,OAAOA,IAAIA,CAACA,M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yBACtGA,KAAMA;4BAEHA,QAAQA,CAACA,IAAIA,YAAYA,CAACA,oBAA+BA,EAAEA,SAASA,EAAEA,GAAGA,CAACA,MAAMA,EAAEA,GAAGA,CAACA,YAAYA,CAACA,CAACA;yBACvGA;qBACJA;gBACLA,CAACA;;gBAGDA,GAAGA,CAACA,SAASA,GAAGA;oBAEZA,QAAQA,CAACA,IAAIA,YAAYA,CAACA,eAA0BA,EAAEA,UAACA,CAAQA;+BAAGA,EAAEA;oBAAFA,CAAEA,EAAEA,CAACA,CAACA,EAAEA,EAAEA,CAACA,CAACA;gBAClFA,CAACA;;gBAGDA,GAAGA,CAACA,IAAIA,CAACA,UAAUA,CAACA,MAAMA,CAACA,EAAEA,OAAOA,CAACA,QAAQA,CAACA,CAACA,EAAEA,IAAIA,CAACA;;gBAGtDA,IAAIA,MAAMA,IAAIA,WAAcA,CAAEA;oBAE1BA,GAAGA,CAACA,IAAIA,CAACA,CAACA;oBACVA,MAAOA;iBACVA;;gBAGDA,GAAGA,CAACA,gBAAgBA,CAACA,cAAcA,EAAEA,mCAAmCA,CAACA;;gBAEzEA,GAAGA,CAACA,IAAIA,CAACA,OAAOA,CAACA,eAAeA,CAACA,QAAQA,CAACA,CAACA;YAC/CA,CAACA;YACLD,WAACA;QAADA,CAACA,EAtDwBR,oCAAgBA,EAsDxCA;QAtDDA,oBAsDCA;IACLA,CAACA,qDAAAjD;wCAAAA;AAADA,CAACA,iCAAA"} \ No newline at end of file +{"version":3,"file":"typertext.js","sourceRoot":"","sources":["../lib/Typertext/BaseException.ts","../lib/Typertext/GenericRequest.ts","../lib/Typertext/GenericResponse.ts","../lib/Typertext/GenericResponseHandler.ts","../lib/Typertext/Http/HttpException.ts","../lib/Typertext/Http/HttpMethod.ts","../lib/Typertext/Http/HttpPostData.ts","../lib/Typertext/Http/HttpProtocol.ts","../lib/Typertext/Http/HttpQueryString.ts","../lib/Typertext/Http/HttpRequest.ts","../lib/Typertext/Http/HttpResponse.ts","../lib/Typertext/Http/HttpResponseHandler.ts","../lib/Typertext/Http/HttpResponseStatus.ts","../lib/Typertext/Http/HttpUrl.ts","../lib/Typertext/Json/JsonException.ts","../lib/Typertext/Json/JsonObject.ts","../lib/Typertext/Json/JsonRequest.ts","../lib/Typertext/Json/JsonResponse.ts","../lib/Typertext/Json/JsonResponseHandler.ts","../lib/Typertext/Transport/GenericTransport.ts","../lib/Typertext/Transport/TransportChooser.ts","../lib/Typertext/Transport/XDR.ts","../lib/Typertext/Transport/XHR.ts"],"names":["Typertext","Typertext.BaseException","Typertext.BaseException.constructor","Typertext.BaseException.GetCode","Typertext.BaseException.GetMessage","Typertext.BaseException.GetCustom","Typertext.GenericResponse","Typertext.GenericResponse.constructor","Typertext.GenericResponse.GetContent","Typertext.GenericResponse.GetContentType","Typertext.GenericResponse.GetHeader","Typertext.GenericResponse.GetHttpStatus","Typertext.GenericResponse.GetStatus","Typertext.Http","Typertext.Http.HttpException","Typertext.Http.HttpException.constructor","Typertext.Http.HttpMethod","Typertext.Http.HttpProtocol","Typertext.Http.HttpRequest","Typertext.Http.HttpRequest.constructor","Typertext.Http.HttpRequest.Get","Typertext.Http.HttpRequest.Post","Typertext.Http.HttpRequest.RawRequest","Typertext.Http.HttpResponse","Typertext.Http.HttpResponse.constructor","Typertext.Http.HttpResponseStatus","Typertext.Http.HttpUrl","Typertext.Http.HttpUrl.constructor","Typertext.Http.HttpUrl.DefaultPort","Typertext.Http.HttpUrl.FromUrl","Typertext.Http.HttpUrl.DecodeQueryString","Typertext.Http.HttpUrl.EncodeQueryString","Typertext.Http.HttpUrl.UrlEncodeObject","Typertext.Http.HttpUrl.UrlDecodeString","Typertext.Http.HttpUrl.splitString","Typertext.Http.HttpUrl.ToString","Typertext.Http.HttpUrl.GetPort","Typertext.Http.HttpUrl.GetDomain","Typertext.Http.HttpUrl.GetProtocol","Typertext.Http.HttpUrl.CrossOriginCheck","Typertext.Json","Typertext.Json.JsonException","Typertext.Json.JsonException.constructor","Typertext.Json.JsonRequest","Typertext.Json.JsonRequest.constructor","Typertext.Json.JsonRequest.Get","Typertext.Json.JsonRequest.Post","Typertext.Json.JsonRequest.RawRequest","Typertext.Json.JsonResponse","Typertext.Json.JsonResponse.constructor","Typertext.Json.JsonResponse.fromHttpResponse","Typertext.Json.JsonResponse.fromInvalidHttpResponse","Typertext.Json.JsonResponse.GetParseStatus","Typertext.Transport","Typertext.Transport.GenericTransport","Typertext.Transport.GenericTransport.constructor","Typertext.Transport.TransportChooser","Typertext.Transport.TransportChooser.constructor","Typertext.Transport.TransportChooser.Transport","Typertext.Transport.XDR","Typertext.Transport.XDR.constructor","Typertext.Transport.XHR","Typertext.Transport.XHR.constructor"],"mappings":"AAKA,IAAO,SAAS;AA+Cf,CA/CD,UAAO,SAAS;IACZA;QAaIC,uBAAYA,OAAcA,EAAEA,IAAWA,EAAEA,MAAQA;YAC7CC,IAAIA,CAACA,OAAOA,GAAGA,OAAOA;YACtBA,IAAIA,CAACA,IAAIA,GAAGA,IAAIA;YAChBA,IAAIA,CAACA,MAAMA,GAAGA,MAAMA;QACxBA,CAACA;QAODD,kCAAAA;YACIE,OAAOA,IAAIA,CAACA,IAAIA;QACpBA,CAACA;;QAODF,qCAAAA;YACIG,OAAOA,IAAIA,CAACA,OAAOA;QACvBA,CAACA;;QAODH,oCAAAA;YACII,OAAOA,IAAIA,CAACA,MAAMA;QACtBA,CAACA;QACLJ,qBAACA;IAADA,CAACA,IAAAD;IA7CDA,wCA6CCA;AACLA,CAACA,iCAAA;AC/CD,IAAO,SAAS;AA6Cf,CA7CD,UAAO,SAAS;;AA6ChBA,CAACA,iCAAA;AC7CD,IAAO,SAAS;AAiFf,CAjFD,UAAO,SAAS;IAGZA;QAsBIM,yBAAYA,MAAyBA,EAAEA,oBAA4CA,EAAEA,gBAAwBA,EAAEA,YAAeA;YAC1HC,IAAIA,CAACA,MAAMA,GAAGA,MAAMA;YACpBA,IAAIA,CAACA,OAAOA,GAAGA,oBAAoBA;YACnCA,IAAIA,CAACA,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GA,CAACA,gBAAgBA,CAACA,cAAcA,EAAEA,mCAAmCA,CAACA;;gBAEzEA,GAAGA,CAACA,IAAIA,CAACA,OAAOA,CAACA,eAAeA,CAACA,QAAQA,CAACA,CAACA;YAC/CA,CAACA;YACLD,WAACA;QAADA,CAACA,EAtDwBR,oCAAgBA,EAsDxCA;QAtDDA,oBAsDCA;IACLA,CAACA,qDAAArD;wCAAAA;AAADA,CAACA,iCAAA"} \ No newline at end of file diff --git a/build/typertext.min.js b/build/typertext.min.js index bae82e7..4ef74ab 100644 --- a/build/typertext.min.js +++ b/build/typertext.min.js @@ -1,2 +1,2 @@ -var Typertext;!function(a){var b=function(){function a(a,b,c){this.message=a,this.code=b,this.custom=c}return a.prototype.GetCode=function(){return this.code},a.prototype.GetMessage=function(){return this.message},a.prototype.GetCustom=function(){return this.custom},a}();a.BaseException=b}(Typertext||(Typertext={}));var Typertext;!function(){}(Typertext||(Typertext={}));var Typertext;!function(a){var b=function(){function a(a,b,c,d){this.status=a,this.headers=b,this.httpStatus=c,this.content=d}return a.prototype.GetContent=function(){return this.content},a.prototype.GetContentType=function(){return this.GetHeader("Content-Type")},a.prototype.GetHeader=function(a){return this.headers(a)},a.prototype.GetHttpStatus=function(){return this.httpStatus},a.prototype.GetStatus=function(){return this.status},a}();a.GenericResponse=b}(Typertext||(Typertext={}));var __extends=this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);c.prototype=b.prototype,a.prototype=new c},Typertext;!function(a){!function(b){var c=function(a){function b(){a.apply(this,arguments)}return __extends(b,a),b}(a.BaseException);b.HttpException=c}(a.Http||(a.Http={}));a.Http}(Typertext||(Typertext={}));var Typertext;!function(a){!function(a){!function(a){a[a.GET=0]="GET",a[a.POST=1]="POST"}(a.HttpMethod||(a.HttpMethod={}));a.HttpMethod}(a.Http||(a.Http={}));a.Http}(Typertext||(Typertext={}));var Typertext;!function(a){!function(a){!function(a){a[a.http=0]="http",a[a.https=1]="https"}(a.HttpProtocol||(a.HttpProtocol={}));a.HttpProtocol}(a.Http||(a.Http={}));a.Http}(Typertext||(Typertext={}));var Typertext;!function(a){!function(b){var c=function(){function b(){}return b.prototype.Get=function(a,b){this.RawRequest(0,a,{},b)},b.prototype.Post=function(a,b,c){this.RawRequest(1,a,b,c)},b.prototype.RawRequest=function(b,c,d,e){"undefined"==typeof d&&(d={}),"undefined"==typeof e&&(e=function(){}),a.Transport.TransportChooser.Transport(b,c,d,e)},b}();b.HttpRequest=c}(a.Http||(a.Http={}));a.Http}(Typertext||(Typertext={}));var Typertext;!function(a){!function(b){var c=function(a){function b(b,c,d,e){a.call(this,b,c,d,e)}return __extends(b,a),b}(a.GenericResponse);b.HttpResponse=c}(a.Http||(a.Http={}));a.Http}(Typertext||(Typertext={}));var Typertext;!function(a){!function(a){!function(a){a[a.success=0]="success",a[a.serverError=1]="serverError",a[a.clientError=2]="clientError",a[a.responseError=3]="responseError",a[a.unknownError=4]="unknownError",a[a.timeout=5]="timeout"}(a.HttpResponseStatus||(a.HttpResponseStatus={}));a.HttpResponseStatus}(a.Http||(a.Http={}));a.Http}(Typertext||(Typertext={}));var Typertext;!function(a){!function(b){var c=function(){function b(a,c,d,e,f){"undefined"==typeof c&&(c=0),"undefined"==typeof d&&(d="/"),"undefined"==typeof e&&(e={}),"undefined"==typeof f&&(f=0),(1>f||f>65535||isNaN(f))&&(f=b.DefaultPort(c)),0!=d.indexOf("/")&&(d="/"+d),this.domain=a,this.protocol=c,this.path=d,this.queryString=e,this.port=f}return b.DefaultPort=function(a){switch(a){case 0:return 80;case 1:return 443;default:return-1}},b.FromUrl=function(c){var d=document.createElement("a");return d.href=c,new b(d.hostname,a.Http.HttpProtocol[d.protocol.slice(0,-1)],d.pathname,b.DecodeQueryString(d.search),parseInt(d.port))},b.DecodeQueryString=function(a){return 0==a.indexOf("?")&&(a=a.substring(1)),b.UrlDecodeString(a)},b.EncodeQueryString=function(a){var c="?"+b.UrlEncodeObject(a);return 1==c.length?"":c},b.UrlEncodeObject=function(a){var b,c="";for(b in a)c+=encodeURIComponent(b)+"="+encodeURIComponent(a[b])+"&";return c.slice(0,-1)},b.UrlDecodeString=function(a){for(var c={},d=b.splitString(a,"&"),e=0;e0&&d.length>c){var e=d.splice(0,c);return e.push(d.join(b)),e}return d},b.prototype.ToString=function(){return a.Http.HttpProtocol[this.protocol]+"://"+this.domain+(this.port==b.DefaultPort(this.protocol)?"":":"+this.port)+this.path+b.EncodeQueryString(this.queryString)},b}();b.HttpUrl=c}(a.Http||(a.Http={}));a.Http}(Typertext||(Typertext={}));var Typertext;!function(a){!function(b){var c=function(a){function b(b,c){a.call(this,b,c,null)}return __extends(b,a),b}(a.BaseException);b.JsonException=c}(a.Json||(a.Json={}));a.Json}(Typertext||(Typertext={}));var Typertext;!function(a){!function(b){var c=a.Http.HttpRequest,d=(a.Http.HttpMethod,function(){function b(a){"undefined"==typeof a&&(a="application/json"),this.request=new c,this.jsonType=a}return b.prototype.Get=function(a,b){this.RawRequest(0,a,{},b)},b.prototype.Post=function(a,b,c){this.RawRequest(1,a,b,c)},b.prototype.RawRequest=function(b,c,d,e){var f=this;return"undefined"==typeof d&&(d={}),"function"!=typeof e?void this.request.RawRequest(b,c,d,function(){}):void this.request.RawRequest(b,c,d,function(b){return b.GetContentType()!=f.jsonType?void e(a.Json.JsonResponse.fromInvalidHttpResponse(b)):void e(a.Json.JsonResponse.fromHttpResponse(b))})},b}());b.JsonRequest=d}(a.Json||(a.Json={}));a.Json}(Typertext||(Typertext={}));var Typertext;!function(a){!function(b){var c=(a.Http.HttpResponseStatus,function(a){function b(b,c,d,e,f){a.call(this,b,c,d,e),f=!!f||!1,this.parseSuccess=f}return __extends(b,a),b.fromHttpResponse=function(a){try{return new b(a.GetStatus(),a.GetHeader,a.GetHttpStatus(),window.JSON.parse(a.GetContent()),!0)}catch(c){return new b(a.GetStatus(),a.GetHeader,a.GetHttpStatus(),null)}},b.fromInvalidHttpResponse=function(a){return new b(3,a.GetHeader,a.GetHttpStatus())},b.prototype.GetParseStatus=function(){return this.parseSuccess},b}(a.GenericResponse));b.JsonResponse=c}(a.Json||(a.Json={}));a.Json}(Typertext||(Typertext={}));var Typertext;!function(a){!function(a){var b=function(){function a(){}return a}();a.GenericTransport=b}(a.Transport||(a.Transport={}));a.Transport}(Typertext||(Typertext={}));var Typertext;!function(a){!function(b){var c=function(){function b(){}return b.Transport=function(b,c,d,e){var f=!1,g=!1,h=!1;if(!f)return new a.Transport.XDR(b,c,d,e);if(g&&!h)return new a.Transport.XHR(b,c,d,e);throw{}},b}();b.TransportChooser=c}(a.Transport||(a.Transport={}));a.Transport}(Typertext||(Typertext={}));var Typertext;!function(a){!function(b){var c=a.Http.HttpMethod,d=a.Http.HttpUrl,e=(a.Http.HttpResponseStatus,a.Http.HttpResponse),f=function(a){function b(b,f,g,h){"undefined"==typeof g&&(g={}),"undefined"==typeof h&&(h=function(){return null}),a.call(this,b,f,g,h);var i=new XDomainRequest,j=function(a){return"content-type"===a.toLowerCase()?i.contentType:void 0};return i.ontimeout=function(){h(new e(5,function(){return""},-1,""))},i.onerror=function(){h(new e(4,j,-1,i.responseText))},i.onload=function(){h(new e(0,j,200,i.responseText))},i.onprogress=function(){return null},i.open(c[b],f.ToString()),0==b?void i.send():void i.send(d.UrlEncodeObject(g))}return __extends(b,a),b}(a.Transport.GenericTransport);b.XDR=f}(a.Transport||(a.Transport={}));a.Transport}(Typertext||(Typertext={}));var Typertext;!function(a){!function(b){var c=a.Http.HttpMethod,d=a.Http.HttpUrl,e=(a.Http.HttpResponseStatus,a.Http.HttpResponse),f=function(a){function b(b,f,g,h){"undefined"==typeof g&&(g={}),"undefined"==typeof h&&(h=function(){return null}),a.call(this,b,f,g,h);var i=new XMLHttpRequest;return i.onreadystatechange=function(){if(4==i.readyState){var a=function(a){return i.getResponseHeader(a)};h(200==i.status?new e(0,a,i.status,i.responseText):i.status>=400&&i.status<500?new e(2,a,i.status,i.responseText):i.status>=500&&i.status<600?new e(1,a,i.status,i.responseText):new e(4,a,i.status,i.responseText))}},i.ontimeout=function(){h(new e(5,function(){return""},-1,""))},i.open(c[b],f.ToString(),!0),0==b?void i.send():(i.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),void i.send(d.UrlEncodeObject(g)))}return __extends(b,a),b}(a.Transport.GenericTransport);b.XHR=f}(a.Transport||(a.Transport={}));a.Transport}(Typertext||(Typertext={})); +var Typertext;!function(a){var b=function(){function a(a,b,c){this.message=a,this.code=b,this.custom=c}return a.prototype.GetCode=function(){return this.code},a.prototype.GetMessage=function(){return this.message},a.prototype.GetCustom=function(){return this.custom},a}();a.BaseException=b}(Typertext||(Typertext={}));var Typertext;!function(){}(Typertext||(Typertext={}));var Typertext;!function(a){var b=function(){function a(a,b,c,d){this.status=a,this.headers=b,this.httpStatus=c,this.content=d}return a.prototype.GetContent=function(){return this.content},a.prototype.GetContentType=function(){return this.GetHeader("Content-Type")},a.prototype.GetHeader=function(a){return this.headers(a)},a.prototype.GetHttpStatus=function(){return this.httpStatus},a.prototype.GetStatus=function(){return this.status},a}();a.GenericResponse=b}(Typertext||(Typertext={}));var __extends=this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);c.prototype=b.prototype,a.prototype=new c},Typertext;!function(a){!function(b){var c=function(a){function b(){a.apply(this,arguments)}return __extends(b,a),b}(a.BaseException);b.HttpException=c}(a.Http||(a.Http={}));a.Http}(Typertext||(Typertext={}));var Typertext;!function(a){!function(a){!function(a){a[a.GET=0]="GET",a[a.POST=1]="POST"}(a.HttpMethod||(a.HttpMethod={}));a.HttpMethod}(a.Http||(a.Http={}));a.Http}(Typertext||(Typertext={}));var Typertext;!function(a){!function(a){!function(a){a[a.http=0]="http",a[a.https=1]="https"}(a.HttpProtocol||(a.HttpProtocol={}));a.HttpProtocol}(a.Http||(a.Http={}));a.Http}(Typertext||(Typertext={}));var Typertext;!function(a){!function(b){var c=function(){function b(){}return b.prototype.Get=function(a,b){this.RawRequest(0,a,{},b)},b.prototype.Post=function(a,b,c){this.RawRequest(1,a,b,c)},b.prototype.RawRequest=function(b,c,d,e){"undefined"==typeof d&&(d={}),"undefined"==typeof e&&(e=function(){}),a.Transport.TransportChooser.Transport(b,c,d,e)},b}();b.HttpRequest=c}(a.Http||(a.Http={}));a.Http}(Typertext||(Typertext={}));var Typertext;!function(a){!function(b){var c=function(a){function b(b,c,d,e){a.call(this,b,c,d,e)}return __extends(b,a),b}(a.GenericResponse);b.HttpResponse=c}(a.Http||(a.Http={}));a.Http}(Typertext||(Typertext={}));var Typertext;!function(a){!function(a){!function(a){a[a.success=0]="success",a[a.serverError=1]="serverError",a[a.clientError=2]="clientError",a[a.responseError=3]="responseError",a[a.unknownError=4]="unknownError",a[a.timeout=5]="timeout"}(a.HttpResponseStatus||(a.HttpResponseStatus={}));a.HttpResponseStatus}(a.Http||(a.Http={}));a.Http}(Typertext||(Typertext={}));var Typertext;!function(a){!function(b){var c=function(){function b(a,c,d,e,f){"undefined"==typeof c&&(c=0),"undefined"==typeof d&&(d="/"),"undefined"==typeof e&&(e={}),"undefined"==typeof f&&(f=0),(1>f||f>65535||isNaN(f))&&(f=b.DefaultPort(c)),0!=d.indexOf("/")&&(d="/"+d),this.domain=a,this.protocol=c,this.path=d,this.queryString=e,this.port=f}return b.DefaultPort=function(a){switch(a){case 0:return 80;case 1:return 443;default:return-1}},b.FromUrl=function(c){var d=document.createElement("a");return d.href=c,new b(d.hostname,a.Http.HttpProtocol[d.protocol.slice(0,-1)],d.pathname,b.DecodeQueryString(d.search),parseInt(d.port))},b.DecodeQueryString=function(a){return 0==a.indexOf("?")&&(a=a.substring(1)),b.UrlDecodeString(a)},b.EncodeQueryString=function(a){var c="?"+b.UrlEncodeObject(a);return 1==c.length?"":c},b.UrlEncodeObject=function(a){var b,c="";for(b in a)c+=encodeURIComponent(b)+"="+encodeURIComponent(a[b])+"&";return c.slice(0,-1)},b.UrlDecodeString=function(a){for(var c={},d=b.splitString(a,"&"),e=0;e0&&d.length>c){var e=d.splice(0,c);return e.push(d.join(b)),e}return d},b.prototype.ToString=function(){return a.Http.HttpProtocol[this.protocol]+"://"+this.domain+(this.port==b.DefaultPort(this.protocol)?"":":"+this.port)+this.path+b.EncodeQueryString(this.queryString)},b.prototype.GetPort=function(){return this.port},b.prototype.GetDomain=function(){return this.domain},b.prototype.GetProtocol=function(){return this.protocol},b.prototype.CrossOriginCheck=function(a){return this.domain===a.GetDomain()&&this.port===a.GetPort()&&this.protocol===a.GetProtocol()},b}();b.HttpUrl=c}(a.Http||(a.Http={}));a.Http}(Typertext||(Typertext={}));var Typertext;!function(a){!function(b){var c=function(a){function b(b,c){a.call(this,b,c,null)}return __extends(b,a),b}(a.BaseException);b.JsonException=c}(a.Json||(a.Json={}));a.Json}(Typertext||(Typertext={}));var Typertext;!function(a){!function(b){var c=a.Http.HttpRequest,d=(a.Http.HttpMethod,function(){function b(a){"undefined"==typeof a&&(a="application/json"),this.request=new c,this.jsonType=a}return b.prototype.Get=function(a,b){this.RawRequest(0,a,{},b)},b.prototype.Post=function(a,b,c){this.RawRequest(1,a,b,c)},b.prototype.RawRequest=function(b,c,d,e){var f=this;return"undefined"==typeof d&&(d={}),"function"!=typeof e?void this.request.RawRequest(b,c,d,function(){}):void this.request.RawRequest(b,c,d,function(b){return b.GetContentType()!=f.jsonType?void e(a.Json.JsonResponse.fromInvalidHttpResponse(b)):void e(a.Json.JsonResponse.fromHttpResponse(b))})},b}());b.JsonRequest=d}(a.Json||(a.Json={}));a.Json}(Typertext||(Typertext={}));var Typertext;!function(a){!function(b){var c=(a.Http.HttpResponseStatus,function(a){function b(b,c,d,e,f){a.call(this,b,c,d,e),f=!!f||!1,this.parseSuccess=f}return __extends(b,a),b.fromHttpResponse=function(a){try{return new b(a.GetStatus(),a.GetHeader,a.GetHttpStatus(),window.JSON.parse(a.GetContent()),!0)}catch(c){return new b(a.GetStatus(),a.GetHeader,a.GetHttpStatus(),null)}},b.fromInvalidHttpResponse=function(a){return new b(3,a.GetHeader,a.GetHttpStatus())},b.prototype.GetParseStatus=function(){return this.parseSuccess},b}(a.GenericResponse));b.JsonResponse=c}(a.Json||(a.Json={}));a.Json}(Typertext||(Typertext={}));var Typertext;!function(a){!function(a){var b=function(){function a(){}return a}();a.GenericTransport=b}(a.Transport||(a.Transport={}));a.Transport}(Typertext||(Typertext={}));var Typertext;!function(a){!function(b){var c=a.Http.HttpUrl,d=function(){function b(){}return b.Transport=function(b,d,e,f){var g=document.createElement("div");if(g.innerHTML="",1===g.getElementsByTagName("i").length)throw{};g.innerHTML="";var h=1===g.getElementsByTagName("i").length,i=c.FromUrl(window.location.href);if(!i.CrossOriginCheck(url)||!h)return new a.Transport.XHR(b,d,e,f);if(i.GetProtocol()===d.GetProtocol())return new a.Transport.XDR(b,d,e,f);throw{}},b}();b.TransportChooser=d}(a.Transport||(a.Transport={}));a.Transport}(Typertext||(Typertext={}));var Typertext;!function(a){!function(b){var c=a.Http.HttpMethod,d=a.Http.HttpUrl,e=(a.Http.HttpResponseStatus,a.Http.HttpResponse),f=function(a){function b(b,f,g,h){"undefined"==typeof g&&(g={}),"undefined"==typeof h&&(h=function(){return null}),a.call(this,b,f,g,h);var i=new XDomainRequest,j=function(a){return"content-type"===a.toLowerCase()?i.contentType:void 0};return i.ontimeout=function(){h(new e(5,function(){return""},-1,""))},i.onerror=function(){h(new e(4,j,-1,i.responseText))},i.onload=function(){h(new e(0,j,200,i.responseText))},i.onprogress=function(){return null},i.open(c[b],f.ToString()),0==b?void i.send():void i.send(d.UrlEncodeObject(g))}return __extends(b,a),b}(a.Transport.GenericTransport);b.XDR=f}(a.Transport||(a.Transport={}));a.Transport}(Typertext||(Typertext={}));var Typertext;!function(a){!function(b){var c=a.Http.HttpMethod,d=a.Http.HttpUrl,e=(a.Http.HttpResponseStatus,a.Http.HttpResponse),f=function(a){function b(b,f,g,h){"undefined"==typeof g&&(g={}),"undefined"==typeof h&&(h=function(){return null}),a.call(this,b,f,g,h);var i=new XMLHttpRequest;return i.onreadystatechange=function(){if(4==i.readyState){var a=function(a){return i.getResponseHeader(a)};h(200==i.status?new e(0,a,i.status,i.responseText):i.status>=400&&i.status<500?new e(2,a,i.status,i.responseText):i.status>=500&&i.status<600?new e(1,a,i.status,i.responseText):new e(4,a,i.status,i.responseText))}},i.ontimeout=function(){h(new e(5,function(){return""},-1,""))},i.open(c[b],f.ToString(),!0),0==b?void i.send():(i.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),void i.send(d.UrlEncodeObject(g)))}return __extends(b,a),b}(a.Transport.GenericTransport);b.XHR=f}(a.Transport||(a.Transport={}));a.Transport}(Typertext||(Typertext={})); //# sourceMappingURL=typertext.min.js.map \ No newline at end of file diff --git a/build/typertext.min.js.map b/build/typertext.min.js.map index 7ebc01c..8a3e286 100644 --- a/build/typertext.min.js.map +++ b/build/typertext.min.js.map @@ -1 +1 @@ -{"version":3,"file":"typertext.min.js","sources":["typertext.js"],"names":["Typertext","BaseException","message","code","custom","this","prototype","GetCode","GetMessage","GetCustom","GenericResponse","status","responseHeaderGetter","httpResponseCode","responseBody","headers","httpStatus","content","GetContent","GetContentType","GetHeader","name","GetHttpStatus","GetStatus","__extends","d","b","__","constructor","p","hasOwnProperty","Http","HttpException","_super","apply","arguments","HttpMethod","HttpProtocol","HttpRequest","Get","request","callback","RawRequest","Post","postData","method","Transport","TransportChooser","HttpResponse","call","HttpResponseStatus","HttpUrl","domain","protocol","path","queryString","port","isNaN","DefaultPort","indexOf","FromUrl","location","l","document","createElement","href","hostname","slice","pathname","DecodeQueryString","search","parseInt","substring","UrlDecodeString","EncodeQueryString","query","rs","UrlEncodeObject","length","data","temp","encodeURIComponent","returnValue","params","splitString","i","param","key","decodeURIComponent","input","separator","limit","chunks","split","ret","splice","push","join","ToString","Json","JsonException","JsonRequest","jsonContentType","jsonType","_this","response","JsonResponse","fromInvalidHttpResponse","fromHttpResponse","parseSuccess","httpResponse","window","parse","e","GetParseStatus","GenericTransport","ieLte9","isXdomain","isXprotocol","XDR","XHR","xdr","XDomainRequest","getHeader","toLowerCase","contentType","undefined","ontimeout","onerror","responseText","onload","onprogress","open","send","xhr","XMLHttpRequest","onreadystatechange","readyState","getResponseHeader","setRequestHeader"],"mappings":"AAAA,GAAIA,YACJ,SAAWA,GACP,GAAIC,GAAgB,WAChB,QAASA,GAAcC,EAASC,EAAMC,GAClCC,KAAKH,QAAUA,EACfG,KAAKF,KAAOA,EACZE,KAAKD,OAASA,EAalB,MAXAH,GAAcK,UAAUC,QAAU,WAC9B,MAAOF,MAAKF,MAGhBF,EAAcK,UAAUE,WAAa,WACjC,MAAOH,MAAKH,SAGhBD,EAAcK,UAAUG,UAAY,WAChC,MAAOJ,MAAKD,QAETH,IAEXD,GAAUC,cAAgBA,GAC3BD,YAAcA,cACjB,IAAIA,YACJ,aAEGA,YAAcA,cACjB,IAAIA,YACJ,SAAWA,GACP,GAAIU,GAAkB,WAClB,QAASA,GAAgBC,EAAQC,EAAsBC,EAAkBC,GACrET,KAAKM,OAASA,EACdN,KAAKU,QAAUH,EACfP,KAAKW,WAAaH,EAClBR,KAAKY,QAAUH,EAqBnB,MAnBAJ,GAAgBJ,UAAUY,WAAa,WACnC,MAAOb,MAAKY,SAGhBP,EAAgBJ,UAAUa,eAAiB,WACvC,MAAOd,MAAKe,UAAU,iBAG1BV,EAAgBJ,UAAUc,UAAY,SAAUC,GAC5C,MAAOhB,MAAKU,QAAQM,IAGxBX,EAAgBJ,UAAUgB,cAAgB,WACtC,MAAOjB,MAAKW,YAGhBN,EAAgBJ,UAAUiB,UAAY,WAClC,MAAOlB,MAAKM,QAETD,IAEXV,GAAUU,gBAAkBA,GAC7BV,YAAcA,cACjB,IAAIwB,WAAYnB,KAAKmB,WAAa,SAAUC,EAAGC,GAE3C,QAASC,KAAOtB,KAAKuB,YAAcH,EADnC,IAAK,GAAII,KAAKH,GAAOA,EAAEI,eAAeD,KAAIJ,EAAEI,GAAKH,EAAEG,GAEnDF,GAAGrB,UAAYoB,EAAE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EAAiB,WACvC,MAAO,IACR,GAAI,MAGXsF,EAAIF,KAAKhG,EAAWS,GAASL,EAAQ0D,YAAY,GAEnC,GAAVrD,MACAyF,GAAID,QAIRC,EAAIK,iBAAiB,eAAgB,yCAErCL,GAAID,KAAKlF,EAAQ0B,gBAAgBjC,KAErC,MA7CApB,WAAUgG,EAAKvF,GA6CRuF,GACRxH,EAAU8C,UAAUqE,iBACvBrE,GAAU0E,IAAMA,GACjBxH,EAAU8C,YAAc9C,EAAU8C,cACrB9C,GAAU8C,WAC3B9C,YAAcA","sourcesContent":["var Typertext;\n(function (Typertext) {\n var BaseException = (function () {\n function BaseException(message, code, custom) {\n this.message = message;\n this.code = code;\n this.custom = custom;\n }\n BaseException.prototype.GetCode = function () {\n return this.code;\n };\n\n BaseException.prototype.GetMessage = function () {\n return this.message;\n };\n\n BaseException.prototype.GetCustom = function () {\n return this.custom;\n };\n return BaseException;\n })();\n Typertext.BaseException = BaseException;\n})(Typertext || (Typertext = {}));\nvar Typertext;\n(function (Typertext) {\n \n})(Typertext || (Typertext = {}));\nvar Typertext;\n(function (Typertext) {\n var GenericResponse = (function () {\n function GenericResponse(status, responseHeaderGetter, httpResponseCode, responseBody) {\n this.status = status;\n this.headers = responseHeaderGetter;\n this.httpStatus = httpResponseCode;\n this.content = responseBody;\n }\n GenericResponse.prototype.GetContent = function () {\n return this.content;\n };\n\n GenericResponse.prototype.GetContentType = function () {\n return this.GetHeader(\"Content-Type\");\n };\n\n GenericResponse.prototype.GetHeader = function (name) {\n return this.headers(name);\n };\n\n GenericResponse.prototype.GetHttpStatus = function () {\n return this.httpStatus;\n };\n\n GenericResponse.prototype.GetStatus = function () {\n return this.status;\n };\n return GenericResponse;\n })();\n Typertext.GenericResponse = GenericResponse;\n})(Typertext || (Typertext = {}));\nvar __extends = this.__extends || function (d, b) {\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n function __() { this.constructor = d; }\n __.prototype = b.prototype;\n d.prototype = new __();\n};\nvar Typertext;\n(function (Typertext) {\n (function (Http) {\n var HttpException = (function (_super) {\n __extends(HttpException, _super);\n function HttpException() {\n _super.apply(this, arguments);\n }\n return HttpException;\n })(Typertext.BaseException);\n Http.HttpException = HttpException;\n })(Typertext.Http || (Typertext.Http = {}));\n var Http = Typertext.Http;\n})(Typertext || (Typertext = {}));\nvar Typertext;\n(function (Typertext) {\n (function (Http) {\n (function (HttpMethod) {\n HttpMethod[HttpMethod[\"GET\"] = 0] = \"GET\";\n HttpMethod[HttpMethod[\"POST\"] = 1] = \"POST\";\n })(Http.HttpMethod || (Http.HttpMethod = {}));\n var HttpMethod = Http.HttpMethod;\n })(Typertext.Http || (Typertext.Http = {}));\n var Http = Typertext.Http;\n})(Typertext || (Typertext = {}));\nvar Typertext;\n(function (Typertext) {\n (function (Http) {\n (function (HttpProtocol) {\n HttpProtocol[HttpProtocol[\"http\"] = 0] = \"http\";\n HttpProtocol[HttpProtocol[\"https\"] = 1] = \"https\";\n })(Http.HttpProtocol || (Http.HttpProtocol = {}));\n var HttpProtocol = Http.HttpProtocol;\n })(Typertext.Http || (Typertext.Http = {}));\n var Http = Typertext.Http;\n})(Typertext || (Typertext = {}));\nvar Typertext;\n(function (Typertext) {\n (function (Http) {\n var HttpRequest = (function () {\n function HttpRequest() {\n }\n HttpRequest.prototype.Get = function (request, callback) {\n this.RawRequest(0 /* GET */, request, {}, callback);\n };\n\n HttpRequest.prototype.Post = function (request, postData, callback) {\n this.RawRequest(1 /* POST */, request, postData, callback);\n };\n\n HttpRequest.prototype.RawRequest = function (method, request, postData, callback) {\n if (typeof postData === \"undefined\") { postData = {}; }\n if (typeof callback === \"undefined\") { callback = function (c) {\n }; }\n Typertext.Transport.TransportChooser.Transport(method, request, postData, callback);\n };\n return HttpRequest;\n })();\n Http.HttpRequest = HttpRequest;\n })(Typertext.Http || (Typertext.Http = {}));\n var Http = Typertext.Http;\n})(Typertext || (Typertext = {}));\nvar Typertext;\n(function (Typertext) {\n (function (Http) {\n var HttpResponse = (function (_super) {\n __extends(HttpResponse, _super);\n function HttpResponse(status, responseHeaderGetter, httpResponseCode, responseBody) {\n _super.call(this, status, responseHeaderGetter, httpResponseCode, responseBody);\n }\n return HttpResponse;\n })(Typertext.GenericResponse);\n Http.HttpResponse = HttpResponse;\n })(Typertext.Http || (Typertext.Http = {}));\n var Http = Typertext.Http;\n})(Typertext || (Typertext = {}));\nvar Typertext;\n(function (Typertext) {\n (function (Http) {\n (function (HttpResponseStatus) {\n HttpResponseStatus[HttpResponseStatus[\"success\"] = 0] = \"success\";\n HttpResponseStatus[HttpResponseStatus[\"serverError\"] = 1] = \"serverError\";\n HttpResponseStatus[HttpResponseStatus[\"clientError\"] = 2] = \"clientError\";\n HttpResponseStatus[HttpResponseStatus[\"responseError\"] = 3] = \"responseError\";\n HttpResponseStatus[HttpResponseStatus[\"unknownError\"] = 4] = \"unknownError\";\n HttpResponseStatus[HttpResponseStatus[\"timeout\"] = 5] = \"timeout\";\n })(Http.HttpResponseStatus || (Http.HttpResponseStatus = {}));\n var HttpResponseStatus = Http.HttpResponseStatus;\n })(Typertext.Http || (Typertext.Http = {}));\n var Http = Typertext.Http;\n})(Typertext || (Typertext = {}));\nvar Typertext;\n(function (Typertext) {\n (function (Http) {\n var HttpUrl = (function () {\n function HttpUrl(domain, protocol, path, queryString, port) {\n if (typeof protocol === \"undefined\") { protocol = 0 /* http */; }\n if (typeof path === \"undefined\") { path = \"/\"; }\n if (typeof queryString === \"undefined\") { queryString = {}; }\n if (typeof port === \"undefined\") { port = 0; }\n if (port < 1 || port > 65535 || isNaN(port)) {\n port = HttpUrl.DefaultPort(protocol);\n }\n\n if (path.indexOf(\"/\") != 0) {\n path = \"/\" + path;\n }\n\n this.domain = domain;\n this.protocol = protocol;\n this.path = path;\n this.queryString = queryString;\n this.port = port;\n }\n HttpUrl.DefaultPort = function (protocol) {\n switch (protocol) {\n case 0 /* http */:\n return 80;\n case 1 /* https */:\n return 443;\n default:\n return -1;\n }\n };\n\n HttpUrl.FromUrl = function (location) {\n var l = document.createElement(\"a\");\n l.href = location;\n return new HttpUrl(l.hostname, Typertext.Http.HttpProtocol[l.protocol.slice(0, -1)], l.pathname, HttpUrl.DecodeQueryString(l.search), parseInt(l.port));\n };\n\n HttpUrl.DecodeQueryString = function (queryString) {\n if (queryString.indexOf(\"?\") == 0) {\n queryString = queryString.substring(1);\n }\n\n return HttpUrl.UrlDecodeString(queryString);\n };\n\n HttpUrl.EncodeQueryString = function (query) {\n var rs = \"?\" + HttpUrl.UrlEncodeObject(query);\n return ((rs.length == 1) ? \"\" : rs);\n };\n\n HttpUrl.UrlEncodeObject = function (data) {\n var rs = \"\";\n var temp;\n\n for (temp in data) {\n rs += encodeURIComponent(temp) + \"=\" + encodeURIComponent(data[temp]) + \"&\";\n }\n\n return rs.slice(0, -1);\n };\n\n HttpUrl.UrlDecodeString = function (queryString) {\n var returnValue = {}, params = HttpUrl.splitString(queryString, \"&\");\n for (var i = 0; i < params.length; i++) {\n if (params[i] == \"\") {\n continue;\n }\n\n var param = HttpUrl.splitString(params[i], \"=\", 2);\n var key = decodeURIComponent(param[0]);\n if (param.length == 1) {\n returnValue[key] = \"\";\n continue;\n }\n\n returnValue[key] = decodeURIComponent(param[1]);\n }\n\n return returnValue;\n };\n\n HttpUrl.splitString = function (input, separator, limit) {\n if (typeof limit === \"undefined\") { limit = -1; }\n limit++;\n var chunks = input.split(separator);\n if (limit > 0 && chunks.length > limit) {\n var ret = chunks.splice(0, limit);\n ret.push(chunks.join(separator));\n return ret;\n }\n return chunks;\n };\n\n HttpUrl.prototype.ToString = function () {\n return Typertext.Http.HttpProtocol[this.protocol] + \"://\" + this.domain + ((this.port == HttpUrl.DefaultPort(this.protocol)) ? \"\" : \":\" + this.port) + this.path + HttpUrl.EncodeQueryString(this.queryString);\n };\n return HttpUrl;\n })();\n Http.HttpUrl = HttpUrl;\n })(Typertext.Http || (Typertext.Http = {}));\n var Http = Typertext.Http;\n})(Typertext || (Typertext = {}));\nvar Typertext;\n(function (Typertext) {\n (function (Json) {\n var JsonException = (function (_super) {\n __extends(JsonException, _super);\n function JsonException(message, code) {\n _super.call(this, message, code, null);\n }\n return JsonException;\n })(Typertext.BaseException);\n Json.JsonException = JsonException;\n })(Typertext.Json || (Typertext.Json = {}));\n var Json = Typertext.Json;\n})(Typertext || (Typertext = {}));\nvar Typertext;\n(function (Typertext) {\n (function (Json) {\n var HttpRequest = Typertext.Http.HttpRequest;\n\n var HttpMethod = Typertext.Http.HttpMethod;\n\n var JsonRequest = (function () {\n function JsonRequest(jsonContentType) {\n if (typeof jsonContentType === \"undefined\") { jsonContentType = \"application/json\"; }\n this.request = new HttpRequest();\n this.jsonType = jsonContentType;\n }\n JsonRequest.prototype.Get = function (request, callback) {\n this.RawRequest(0 /* GET */, request, {}, callback);\n };\n\n JsonRequest.prototype.Post = function (request, postData, callback) {\n this.RawRequest(1 /* POST */, request, postData, callback);\n };\n\n JsonRequest.prototype.RawRequest = function (method, request, postData, callback) {\n var _this = this;\n if (typeof postData === \"undefined\") { postData = {}; }\n if (typeof callback != \"function\") {\n this.request.RawRequest(method, request, postData, function () {\n });\n return;\n }\n\n this.request.RawRequest(method, request, postData, function (response) {\n if (response.GetContentType() != _this.jsonType) {\n callback(Typertext.Json.JsonResponse.fromInvalidHttpResponse(response));\n return;\n }\n\n callback(Typertext.Json.JsonResponse.fromHttpResponse(response));\n });\n };\n return JsonRequest;\n })();\n Json.JsonRequest = JsonRequest;\n })(Typertext.Json || (Typertext.Json = {}));\n var Json = Typertext.Json;\n})(Typertext || (Typertext = {}));\nvar Typertext;\n(function (Typertext) {\n (function (Json) {\n var HttpResponseStatus = Typertext.Http.HttpResponseStatus;\n\n var JsonResponse = (function (_super) {\n __extends(JsonResponse, _super);\n function JsonResponse(status, responseHeaderGetter, httpResponseCode, responseBody, parseSuccess) {\n _super.call(this, status, responseHeaderGetter, httpResponseCode, responseBody);\n parseSuccess = !!parseSuccess || false;\n this.parseSuccess = parseSuccess;\n }\n JsonResponse.fromHttpResponse = function (httpResponse) {\n try {\n return new JsonResponse(httpResponse.GetStatus(), httpResponse.GetHeader, httpResponse.GetHttpStatus(), window[\"JSON\"].parse(httpResponse.GetContent()), true);\n } catch (e) {\n return new JsonResponse(httpResponse.GetStatus(), httpResponse.GetHeader, httpResponse.GetHttpStatus(), null);\n }\n };\n\n JsonResponse.fromInvalidHttpResponse = function (httpResponse) {\n return new JsonResponse(3 /* responseError */, httpResponse.GetHeader, httpResponse.GetHttpStatus());\n };\n\n JsonResponse.prototype.GetParseStatus = function () {\n return this.parseSuccess;\n };\n return JsonResponse;\n })(Typertext.GenericResponse);\n Json.JsonResponse = JsonResponse;\n })(Typertext.Json || (Typertext.Json = {}));\n var Json = Typertext.Json;\n})(Typertext || (Typertext = {}));\nvar Typertext;\n(function (Typertext) {\n (function (Transport) {\n var GenericTransport = (function () {\n function GenericTransport(method, request, postData, callback) {\n }\n return GenericTransport;\n })();\n Transport.GenericTransport = GenericTransport;\n })(Typertext.Transport || (Typertext.Transport = {}));\n var Transport = Typertext.Transport;\n})(Typertext || (Typertext = {}));\nvar Typertext;\n(function (Typertext) {\n (function (Transport) {\n var TransportChooser = (function () {\n function TransportChooser() {\n }\n TransportChooser.Transport = function (method, request, postData, callback) {\n var ieLte9 = false;\n var isXdomain = false;\n var isXprotocol = false;\n\n if (!ieLte9) {\n return new Typertext.Transport.XDR(method, request, postData, callback);\n } else if (isXdomain && !isXprotocol) {\n return new Typertext.Transport.XHR(method, request, postData, callback);\n }\n\n throw {};\n };\n return TransportChooser;\n })();\n Transport.TransportChooser = TransportChooser;\n })(Typertext.Transport || (Typertext.Transport = {}));\n var Transport = Typertext.Transport;\n})(Typertext || (Typertext = {}));\nvar Typertext;\n(function (Typertext) {\n (function (Transport) {\n var HttpMethod = Typertext.Http.HttpMethod;\n var HttpUrl = Typertext.Http.HttpUrl;\n\n var HttpResponseStatus = Typertext.Http.HttpResponseStatus;\n var HttpResponse = Typertext.Http.HttpResponse;\n\n var XDR = (function (_super) {\n __extends(XDR, _super);\n function XDR(method, request, postData, callback) {\n if (typeof postData === \"undefined\") { postData = {}; }\n if (typeof callback === \"undefined\") { callback = function (c) {\n return null;\n }; }\n _super.call(this, method, request, postData, callback);\n\n var xdr = new XDomainRequest();\n\n var getHeader = function (name) {\n if (name.toLowerCase() === \"content-type\") {\n return xdr.contentType;\n }\n return undefined;\n };\n\n xdr.ontimeout = function () {\n callback(new HttpResponse(5 /* timeout */, function (i) {\n return \"\";\n }, -1, \"\"));\n };\n\n xdr.onerror = function () {\n callback(new HttpResponse(4 /* unknownError */, getHeader, -1, xdr.responseText));\n };\n\n xdr.onload = function () {\n callback(new HttpResponse(0 /* success */, getHeader, 200, xdr.responseText));\n };\n\n xdr.onprogress = function () {\n return null;\n };\n\n xdr.open(HttpMethod[method], request.ToString());\n\n if (method == 0 /* GET */) {\n xdr.send();\n return;\n }\n\n xdr.send(HttpUrl.UrlEncodeObject(postData));\n }\n return XDR;\n })(Typertext.Transport.GenericTransport);\n Transport.XDR = XDR;\n })(Typertext.Transport || (Typertext.Transport = {}));\n var Transport = Typertext.Transport;\n})(Typertext || (Typertext = {}));\nvar Typertext;\n(function (Typertext) {\n (function (Transport) {\n var HttpMethod = Typertext.Http.HttpMethod;\n var HttpUrl = Typertext.Http.HttpUrl;\n\n var HttpResponseStatus = Typertext.Http.HttpResponseStatus;\n var HttpResponse = Typertext.Http.HttpResponse;\n\n var XHR = (function (_super) {\n __extends(XHR, _super);\n function XHR(method, request, postData, callback) {\n if (typeof postData === \"undefined\") { postData = {}; }\n if (typeof callback === \"undefined\") { callback = function (c) {\n return null;\n }; }\n _super.call(this, method, request, postData, callback);\n\n var xhr = new XMLHttpRequest();\n\n xhr.onreadystatechange = function () {\n if (xhr.readyState == 4) {\n var getHeader = function (name) {\n return xhr.getResponseHeader(name);\n };\n\n if (xhr.status == 200) {\n callback(new HttpResponse(0 /* success */, getHeader, xhr.status, xhr.responseText));\n } else if (xhr.status >= 400 && xhr.status < 500) {\n callback(new HttpResponse(2 /* clientError */, getHeader, xhr.status, xhr.responseText));\n } else if (xhr.status >= 500 && xhr.status < 600) {\n callback(new HttpResponse(1 /* serverError */, getHeader, xhr.status, xhr.responseText));\n } else {\n callback(new HttpResponse(4 /* unknownError */, getHeader, xhr.status, xhr.responseText));\n }\n }\n };\n\n xhr.ontimeout = function () {\n callback(new HttpResponse(5 /* timeout */, function (i) {\n return \"\";\n }, -1, \"\"));\n };\n\n xhr.open(HttpMethod[method], request.ToString(), true);\n\n if (method == 0 /* GET */) {\n xhr.send();\n return;\n }\n\n xhr.setRequestHeader(\"Content-Type\", \"application/x-www-form-urlencoded\");\n\n xhr.send(HttpUrl.UrlEncodeObject(postData));\n }\n return XHR;\n })(Typertext.Transport.GenericTransport);\n Transport.XHR = XHR;\n })(Typertext.Transport || (Typertext.Transport = {}));\n var Transport = Typertext.Transport;\n})(Typertext || (Typertext = {}));\n//# sourceMappingURL=typertext.js.map\n"]} \ No newline at end of file +{"version":3,"file":"typertext.min.js","sources":["typertext.js"],"names":["Typertext","BaseException","message","code","custom","this","prototype","GetCode","GetMessage","GetCustom","GenericResponse","status","responseHeaderGetter","httpResponseCode","responseBody","headers","httpStatus","content","GetContent","GetContentType","GetHeader","name","GetHttpStatus","GetStatus","__extends","d","b","__","constructor","p","hasOwnProperty","Http","HttpException","_super","apply","arguments","HttpMethod","HttpProtocol","HttpRequest","Get","request","callback","RawRequest","Post","postData","method","Transport","TransportChooser","HttpResponse","call","HttpResponseStatus","HttpUrl","domain","protocol","path","queryString","port","isNaN","DefaultPort","indexOf","FromUrl","location","l","document","createElement","href","hostname","slice","pathname","DecodeQueryString","search","parseInt","substring","UrlDecodeString","EncodeQueryString","query","rs","UrlEncodeObject","length","data","temp","encodeURIComponent","returnValue","params","splitString","i","param","key","decodeURIComponent","input","separator","limit","chunks","split","ret","splice","push","join","ToString","GetPort","GetDomain","GetProtocol","CrossOriginCheck","url","Json","JsonException","JsonRequest","jsonContentType","jsonType","_this","response","JsonResponse","fromInvalidHttpResponse","fromHttpResponse","parseSuccess","httpResponse","window","parse","e","GetParseStatus","GenericTransport","ieTestDiv","innerHTML","getElementsByTagName","ieLte9","origin","XHR","XDR","xdr","XDomainRequest","getHeader","toLowerCase","contentType","undefined","ontimeout","onerror","responseText","onload","onprogress","open","send","xhr","XMLHttpRequest","onreadystatechange","readyState","getResponseHeader","setRequestHeader"],"mappings":"AAAA,GAAIA,YACJ,SAAWA,GACP,GAAIC,GAAgB,WAChB,QAASA,GAAcC,EAASC,EAAMC,GAClCC,KAAKH,QAAUA,EACfG,KAAKF,KAAOA,EACZE,KAAKD,OAASA,EAalB,MAXAH,GAAcK,UAAUC,QAAU,WAC9B,MAAOF,MAAKF,MAGhBF,EAAcK,UAAUE,WAAa,WACjC,MAAOH,MAAKH,SAGhBD,EAAcK,UAAUG,UAAY,WAChC,MAAOJ,MAAKD,QAETH,IAEXD,GAAUC,cAAgBA,GAC3BD,YAAcA,cACjB,IAAIA,YACJ,aAEGA,YAAcA,cACjB,IAAIA,YACJ,SAAWA,GACP,GAAIU,GAAkB,WAClB,QAASA,GAAgBC,EAAQC,EAAsBC,EAAkBC,GACrET,KAAKM,OAASA,EACdN,KAAKU,QAAUH,EACfP,KAAKW,WAAaH,EAClBR,KAAKY,QAAUH,EAqBnB,MAnBAJ,GAAgBJ,UAAUY,WAAa,WACnC,MAAOb,MAAKY,SAGhBP,EAAgBJ,UAAUa,eAAiB,WACvC,MAAOd,MAAKe,UAAU,iBAG1BV,EAAgBJ,UAAUc,UAAY,SAAUC,GAC5C,MAAOhB,MAAKU,QAAQM,IAGxBX,EAAgBJ,UAAUgB,cAAgB,WACtC,MAAOjB,MAAKW,YAGhBN,EAAgBJ,UAAUiB,UAAY,WAClC,MAAOlB,MAAKM,QAETD,IAEXV,GAAUU,gBAAkBA,GAC7BV,YAAcA,cACjB,IAAIwB,WAAYnB,KAAKmB,WAAa,SAAUC,EAAGC,GAE3C,QAASC,KAAOtB,KAAKuB,YAAcH,EADnC,I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QL,EAASI,EAAUH,GACZ,mBAAbG,KAA4BA,MACf,mBAAbH,KAA4BA,EAAW,WAC9C,MAAO,QAEXR,EAAOgB,KAAK5C,KAAMwC,EAAQL,EAASI,EAAUH,EAE7C,IAAIoG,GAAM,GAAIC,eA4Bd,OA1BAD,GAAIE,mBAAqB,WACrB,GAAsB,GAAlBF,EAAIG,WAAiB,CACrB,GAAId,GAAY,SAAU7G,GACtB,MAAOwH,GAAII,kBAAkB5H,GAI7BoB,GADc,KAAdoG,EAAIlI,OACK,GAAIqC,GAAa,EAAiBkF,EAAWW,EAAIlI,OAAQkI,EAAIL,cAC/DK,EAAIlI,QAAU,KAAOkI,EAAIlI,OAAS,IAChC,GAAIqC,GAAa,EAAqBkF,EAAWW,EAAIlI,OAAQkI,EAAIL,cACnEK,EAAIlI,QAAU,KAAOkI,EAAIlI,OAAS,IAChC,GAAIqC,GAAa,EAAqBkF,EAAWW,EAAIlI,OAAQkI,EAAIL,cAEjE,GAAIxF,GAAa,EAAsBkF,EAAWW,EAAIlI,OAAQkI,EAAIL,iBAKvFK,EAAIP,UAAY,WACZ7F,EAAS,GAAIO,GAAa,EAAiB,WACvC,MAAO,IACR,GAAI,MAGX6F,EAAIF,KAAKvG,EAAWS,GAASL,EAAQ0D,YAAY,GAEnC,GAAVrD,MACAgG,GAAID,QAIRC,EAAIK,iBAAiB,eAAgB,yCAErCL,GAAID,KAAKzF,EAAQ0B,gBAAgBjC,KAErC,MA7CApB,WAAUsG,EAAK7F,GA6CR6F,GACR9H,EAAU8C,UAAU0E,iBACvB1E,GAAUgF,IAAMA,GACjB9H,EAAU8C,YAAc9C,EAAU8C,cACrB9C,GAAU8C,WAC3B9C,YAAcA","sourcesContent":["var Typertext;\n(function (Typertext) {\n var BaseException = (function () {\n function BaseException(message, code, custom) {\n this.message = message;\n this.code = code;\n this.custom = custom;\n }\n BaseException.prototype.GetCode = function () {\n return this.code;\n };\n\n BaseException.prototype.GetMessage = function () {\n return this.message;\n };\n\n BaseException.prototype.GetCustom = function () {\n return this.custom;\n };\n return BaseException;\n })();\n Typertext.BaseException = BaseException;\n})(Typertext || (Typertext = {}));\nvar Typertext;\n(function (Typertext) {\n \n})(Typertext || (Typertext = {}));\nvar Typertext;\n(function (Typertext) {\n var GenericResponse = (function () {\n function GenericResponse(status, responseHeaderGetter, httpResponseCode, responseBody) {\n this.status = status;\n this.headers = responseHeaderGetter;\n this.httpStatus = httpResponseCode;\n this.content = responseBody;\n }\n GenericResponse.prototype.GetContent = function () {\n return this.content;\n };\n\n GenericResponse.prototype.GetContentType = function () {\n return this.GetHeader(\"Content-Type\");\n };\n\n GenericResponse.prototype.GetHeader = function (name) {\n return this.headers(name);\n };\n\n GenericResponse.prototype.GetHttpStatus = function () {\n return this.httpStatus;\n };\n\n GenericResponse.prototype.GetStatus = function () {\n return this.status;\n };\n return GenericResponse;\n })();\n Typertext.GenericResponse = GenericResponse;\n})(Typertext || (Typertext = {}));\nvar __extends = this.__extends || function (d, b) {\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n function __() { this.constructor = d; }\n __.prototype = b.prototype;\n d.prototype = new __();\n};\nvar Typertext;\n(function (Typertext) {\n (function (Http) {\n var HttpException = (function (_super) {\n __extends(HttpException, _super);\n function HttpException() {\n _super.apply(this, arguments);\n }\n return HttpException;\n })(Typertext.BaseException);\n Http.HttpException = HttpException;\n })(Typertext.Http || (Typertext.Http = {}));\n var Http = Typertext.Http;\n})(Typertext || (Typertext = {}));\nvar Typertext;\n(function (Typertext) {\n (function (Http) {\n (function (HttpMethod) {\n HttpMethod[HttpMethod[\"GET\"] = 0] = \"GET\";\n HttpMethod[HttpMethod[\"POST\"] = 1] = \"POST\";\n })(Http.HttpMethod || (Http.HttpMethod = {}));\n var HttpMethod = Http.HttpMethod;\n })(Typertext.Http || (Typertext.Http = {}));\n var Http = Typertext.Http;\n})(Typertext || (Typertext = {}));\nvar Typertext;\n(function (Typertext) {\n (function (Http) {\n (function (HttpProtocol) {\n HttpProtocol[HttpProtocol[\"http\"] = 0] = \"http\";\n HttpProtocol[HttpProtocol[\"https\"] = 1] = \"https\";\n })(Http.HttpProtocol || (Http.HttpProtocol = {}));\n var HttpProtocol = Http.HttpProtocol;\n })(Typertext.Http || (Typertext.Http = {}));\n var Http = Typertext.Http;\n})(Typertext || (Typertext = {}));\nvar Typertext;\n(function (Typertext) {\n (function (Http) {\n var HttpRequest = (function () {\n function HttpRequest() {\n }\n HttpRequest.prototype.Get = function (request, callback) {\n this.RawRequest(0 /* GET */, request, {}, callback);\n };\n\n HttpRequest.prototype.Post = function (request, postData, callback) {\n this.RawRequest(1 /* POST */, request, postData, callback);\n };\n\n HttpRequest.prototype.RawRequest = function (method, request, postData, callback) {\n if (typeof postData === \"undefined\") { postData = {}; }\n if (typeof callback === \"undefined\") { callback = function (c) {\n }; }\n Typertext.Transport.TransportChooser.Transport(method, request, postData, callback);\n };\n return HttpRequest;\n })();\n Http.HttpRequest = HttpRequest;\n })(Typertext.Http || (Typertext.Http = {}));\n var Http = Typertext.Http;\n})(Typertext || (Typertext = {}));\nvar Typertext;\n(function (Typertext) {\n (function (Http) {\n var HttpResponse = (function (_super) {\n __extends(HttpResponse, _super);\n function HttpResponse(status, responseHeaderGetter, httpResponseCode, responseBody) {\n _super.call(this, status, responseHeaderGetter, httpResponseCode, responseBody);\n }\n return HttpResponse;\n })(Typertext.GenericResponse);\n Http.HttpResponse = HttpResponse;\n })(Typertext.Http || (Typertext.Http = {}));\n var Http = Typertext.Http;\n})(Typertext || (Typertext = {}));\nvar Typertext;\n(function (Typertext) {\n (function (Http) {\n (function (HttpResponseStatus) {\n HttpResponseStatus[HttpResponseStatus[\"success\"] = 0] = \"success\";\n HttpResponseStatus[HttpResponseStatus[\"serverError\"] = 1] = \"serverError\";\n HttpResponseStatus[HttpResponseStatus[\"clientError\"] = 2] = \"clientError\";\n HttpResponseStatus[HttpResponseStatus[\"responseError\"] = 3] = \"responseError\";\n HttpResponseStatus[HttpResponseStatus[\"unknownError\"] = 4] = \"unknownError\";\n HttpResponseStatus[HttpResponseStatus[\"timeout\"] = 5] = \"timeout\";\n })(Http.HttpResponseStatus || (Http.HttpResponseStatus = {}));\n var HttpResponseStatus = Http.HttpResponseStatus;\n })(Typertext.Http || (Typertext.Http = {}));\n var Http = Typertext.Http;\n})(Typertext || (Typertext = {}));\nvar Typertext;\n(function (Typertext) {\n (function (Http) {\n var HttpUrl = (function () {\n function HttpUrl(domain, protocol, path, queryString, port) {\n if (typeof protocol === \"undefined\") { protocol = 0 /* http */; }\n if (typeof path === \"undefined\") { path = \"/\"; }\n if (typeof queryString === \"undefined\") { queryString = {}; }\n if (typeof port === \"undefined\") { port = 0; }\n if (port < 1 || port > 65535 || isNaN(port)) {\n port = HttpUrl.DefaultPort(protocol);\n }\n\n if (path.indexOf(\"/\") != 0) {\n path = \"/\" + path;\n }\n\n this.domain = domain;\n this.protocol = protocol;\n this.path = path;\n this.queryString = queryString;\n this.port = port;\n }\n HttpUrl.DefaultPort = function (protocol) {\n switch (protocol) {\n case 0 /* http */:\n return 80;\n case 1 /* https */:\n return 443;\n default:\n return -1;\n }\n };\n\n HttpUrl.FromUrl = function (location) {\n var l = document.createElement(\"a\");\n l.href = location;\n return new HttpUrl(l.hostname, Typertext.Http.HttpProtocol[l.protocol.slice(0, -1)], l.pathname, HttpUrl.DecodeQueryString(l.search), parseInt(l.port));\n };\n\n HttpUrl.DecodeQueryString = function (queryString) {\n if (queryString.indexOf(\"?\") == 0) {\n queryString = queryString.substring(1);\n }\n\n return HttpUrl.UrlDecodeString(queryString);\n };\n\n HttpUrl.EncodeQueryString = function (query) {\n var rs = \"?\" + HttpUrl.UrlEncodeObject(query);\n return ((rs.length == 1) ? \"\" : rs);\n };\n\n HttpUrl.UrlEncodeObject = function (data) {\n var rs = \"\";\n var temp;\n\n for (temp in data) {\n rs += encodeURIComponent(temp) + \"=\" + encodeURIComponent(data[temp]) + \"&\";\n }\n\n return rs.slice(0, -1);\n };\n\n HttpUrl.UrlDecodeString = function (queryString) {\n var returnValue = {}, params = HttpUrl.splitString(queryString, \"&\");\n for (var i = 0; i < params.length; i++) {\n if (params[i] == \"\") {\n continue;\n }\n\n var param = HttpUrl.splitString(params[i], \"=\", 2);\n var key = decodeURIComponent(param[0]);\n if (param.length == 1) {\n returnValue[key] = \"\";\n continue;\n }\n\n returnValue[key] = decodeURIComponent(param[1]);\n }\n\n return returnValue;\n };\n\n HttpUrl.splitString = function (input, separator, limit) {\n if (typeof limit === \"undefined\") { limit = -1; }\n limit++;\n var chunks = input.split(separator);\n if (limit > 0 && chunks.length > limit) {\n var ret = chunks.splice(0, limit);\n ret.push(chunks.join(separator));\n return ret;\n }\n return chunks;\n };\n\n HttpUrl.prototype.ToString = function () {\n return Typertext.Http.HttpProtocol[this.protocol] + \"://\" + this.domain + ((this.port == HttpUrl.DefaultPort(this.protocol)) ? \"\" : \":\" + this.port) + this.path + HttpUrl.EncodeQueryString(this.queryString);\n };\n\n HttpUrl.prototype.GetPort = function () {\n return this.port;\n };\n\n HttpUrl.prototype.GetDomain = function () {\n return this.domain;\n };\n\n HttpUrl.prototype.GetProtocol = function () {\n return this.protocol;\n };\n\n HttpUrl.prototype.CrossOriginCheck = function (url) {\n return (this.domain === url.GetDomain() && this.port === url.GetPort() && this.protocol === url.GetProtocol());\n };\n return HttpUrl;\n })();\n Http.HttpUrl = HttpUrl;\n })(Typertext.Http || (Typertext.Http = {}));\n var Http = Typertext.Http;\n})(Typertext || (Typertext = {}));\nvar Typertext;\n(function (Typertext) {\n (function (Json) {\n var JsonException = (function (_super) {\n __extends(JsonException, _super);\n function JsonException(message, code) {\n _super.call(this, message, code, null);\n }\n return JsonException;\n })(Typertext.BaseException);\n Json.JsonException = JsonException;\n })(Typertext.Json || (Typertext.Json = {}));\n var Json = Typertext.Json;\n})(Typertext || (Typertext = {}));\nvar Typertext;\n(function (Typertext) {\n (function (Json) {\n var HttpRequest = Typertext.Http.HttpRequest;\n\n var HttpMethod = Typertext.Http.HttpMethod;\n\n var JsonRequest = (function () {\n function JsonRequest(jsonContentType) {\n if (typeof jsonContentType === \"undefined\") { jsonContentType = \"application/json\"; }\n this.request = new HttpRequest();\n this.jsonType = jsonContentType;\n }\n JsonRequest.prototype.Get = function (request, callback) {\n this.RawRequest(0 /* GET */, request, {}, callback);\n };\n\n JsonRequest.prototype.Post = function (request, postData, callback) {\n this.RawRequest(1 /* POST */, request, postData, callback);\n };\n\n JsonRequest.prototype.RawRequest = function (method, request, postData, callback) {\n var _this = this;\n if (typeof postData === \"undefined\") { postData = {}; }\n if (typeof callback != \"function\") {\n this.request.RawRequest(method, request, postData, function () {\n });\n return;\n }\n\n this.request.RawRequest(method, request, postData, function (response) {\n if (response.GetContentType() != _this.jsonType) {\n callback(Typertext.Json.JsonResponse.fromInvalidHttpResponse(response));\n return;\n }\n\n callback(Typertext.Json.JsonResponse.fromHttpResponse(response));\n });\n };\n return JsonRequest;\n })();\n Json.JsonRequest = JsonRequest;\n })(Typertext.Json || (Typertext.Json = {}));\n var Json = Typertext.Json;\n})(Typertext || (Typertext = {}));\nvar Typertext;\n(function (Typertext) {\n (function (Json) {\n var HttpResponseStatus = Typertext.Http.HttpResponseStatus;\n\n var JsonResponse = (function (_super) {\n __extends(JsonResponse, _super);\n function JsonResponse(status, responseHeaderGetter, httpResponseCode, responseBody, parseSuccess) {\n _super.call(this, status, responseHeaderGetter, httpResponseCode, responseBody);\n parseSuccess = !!parseSuccess || false;\n this.parseSuccess = parseSuccess;\n }\n JsonResponse.fromHttpResponse = function (httpResponse) {\n try {\n return new JsonResponse(httpResponse.GetStatus(), httpResponse.GetHeader, httpResponse.GetHttpStatus(), window[\"JSON\"].parse(httpResponse.GetContent()), true);\n } catch (e) {\n return new JsonResponse(httpResponse.GetStatus(), httpResponse.GetHeader, httpResponse.GetHttpStatus(), null);\n }\n };\n\n JsonResponse.fromInvalidHttpResponse = function (httpResponse) {\n return new JsonResponse(3 /* responseError */, httpResponse.GetHeader, httpResponse.GetHttpStatus());\n };\n\n JsonResponse.prototype.GetParseStatus = function () {\n return this.parseSuccess;\n };\n return JsonResponse;\n })(Typertext.GenericResponse);\n Json.JsonResponse = JsonResponse;\n })(Typertext.Json || (Typertext.Json = {}));\n var Json = Typertext.Json;\n})(Typertext || (Typertext = {}));\nvar Typertext;\n(function (Typertext) {\n (function (Transport) {\n var GenericTransport = (function () {\n function GenericTransport(method, request, postData, callback) {\n }\n return GenericTransport;\n })();\n Transport.GenericTransport = GenericTransport;\n })(Typertext.Transport || (Typertext.Transport = {}));\n var Transport = Typertext.Transport;\n})(Typertext || (Typertext = {}));\nvar Typertext;\n(function (Typertext) {\n (function (Transport) {\n var HttpUrl = Typertext.Http.HttpUrl;\n\n var TransportChooser = (function () {\n function TransportChooser() {\n }\n TransportChooser.Transport = function (method, request, postData, callback) {\n var ieTestDiv = document.createElement(\"div\");\n ieTestDiv.innerHTML = \"\";\n\n if (ieTestDiv.getElementsByTagName(\"i\").length === 1) {\n throw {};\n }\n\n ieTestDiv.innerHTML = \"\";\n var ieLte9 = (ieTestDiv.getElementsByTagName(\"i\").length === 1);\n var origin = HttpUrl.FromUrl(window.location.href);\n\n if (!origin.CrossOriginCheck(url) || !ieLte9) {\n return new Typertext.Transport.XHR(method, request, postData, callback);\n }\n\n if (origin.GetProtocol() === request.GetProtocol()) {\n return new Typertext.Transport.XDR(method, request, postData, callback);\n }\n\n throw {};\n };\n return TransportChooser;\n })();\n Transport.TransportChooser = TransportChooser;\n })(Typertext.Transport || (Typertext.Transport = {}));\n var Transport = Typertext.Transport;\n})(Typertext || (Typertext = {}));\nvar Typertext;\n(function (Typertext) {\n (function (Transport) {\n var HttpMethod = Typertext.Http.HttpMethod;\n var HttpUrl = Typertext.Http.HttpUrl;\n\n var HttpResponseStatus = Typertext.Http.HttpResponseStatus;\n var HttpResponse = Typertext.Http.HttpResponse;\n\n var XDR = (function (_super) {\n __extends(XDR, _super);\n function XDR(method, request, postData, callback) {\n if (typeof postData === \"undefined\") { postData = {}; }\n if (typeof callback === \"undefined\") { callback = function (c) {\n return null;\n }; }\n _super.call(this, method, request, postData, callback);\n\n var xdr = new XDomainRequest();\n\n var getHeader = function (name) {\n if (name.toLowerCase() === \"content-type\") {\n return xdr.contentType;\n }\n return undefined;\n };\n\n xdr.ontimeout = function () {\n callback(new HttpResponse(5 /* timeout */, function (i) {\n return \"\";\n }, -1, \"\"));\n };\n\n xdr.onerror = function () {\n callback(new HttpResponse(4 /* unknownError */, getHeader, -1, xdr.responseText));\n };\n\n xdr.onload = function () {\n callback(new HttpResponse(0 /* success */, getHeader, 200, xdr.responseText));\n };\n\n xdr.onprogress = function () {\n return null;\n };\n\n xdr.open(HttpMethod[method], request.ToString());\n\n if (method == 0 /* GET */) {\n xdr.send();\n return;\n }\n\n xdr.send(HttpUrl.UrlEncodeObject(postData));\n }\n return XDR;\n })(Typertext.Transport.GenericTransport);\n Transport.XDR = XDR;\n })(Typertext.Transport || (Typertext.Transport = {}));\n var Transport = Typertext.Transport;\n})(Typertext || (Typertext = {}));\nvar Typertext;\n(function (Typertext) {\n (function (Transport) {\n var HttpMethod = Typertext.Http.HttpMethod;\n var HttpUrl = Typertext.Http.HttpUrl;\n\n var HttpResponseStatus = Typertext.Http.HttpResponseStatus;\n var HttpResponse = Typertext.Http.HttpResponse;\n\n var XHR = (function (_super) {\n __extends(XHR, _super);\n function XHR(method, request, postData, callback) {\n if (typeof postData === \"undefined\") { postData = {}; }\n if (typeof callback === \"undefined\") { callback = function (c) {\n return null;\n }; }\n _super.call(this, method, request, postData, callback);\n\n var xhr = new XMLHttpRequest();\n\n xhr.onreadystatechange = function () {\n if (xhr.readyState == 4) {\n var getHeader = function (name) {\n return xhr.getResponseHeader(name);\n };\n\n if (xhr.status == 200) {\n callback(new HttpResponse(0 /* success */, getHeader, xhr.status, xhr.responseText));\n } else if (xhr.status >= 400 && xhr.status < 500) {\n callback(new HttpResponse(2 /* clientError */, getHeader, xhr.status, xhr.responseText));\n } else if (xhr.status >= 500 && xhr.status < 600) {\n callback(new HttpResponse(1 /* serverError */, getHeader, xhr.status, xhr.responseText));\n } else {\n callback(new HttpResponse(4 /* unknownError */, getHeader, xhr.status, xhr.responseText));\n }\n }\n };\n\n xhr.ontimeout = function () {\n callback(new HttpResponse(5 /* timeout */, function (i) {\n return \"\";\n }, -1, \"\"));\n };\n\n xhr.open(HttpMethod[method], request.ToString(), true);\n\n if (method == 0 /* GET */) {\n xhr.send();\n return;\n }\n\n xhr.setRequestHeader(\"Content-Type\", \"application/x-www-form-urlencoded\");\n\n xhr.send(HttpUrl.UrlEncodeObject(postData));\n }\n return XHR;\n })(Typertext.Transport.GenericTransport);\n Transport.XHR = XHR;\n })(Typertext.Transport || (Typertext.Transport = {}));\n var Transport = Typertext.Transport;\n})(Typertext || (Typertext = {}));\n//# sourceMappingURL=typertext.js.map\n"]} \ No newline at end of file