@magic-xpa/mscorelib 4.801.0-dev481.240 → 4.801.0-dev481.244
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/magic-xpa-mscorelib.umd.js +19 -10
- package/bundles/magic-xpa-mscorelib.umd.js.map +1 -1
- package/bundles/magic-xpa-mscorelib.umd.min.js +2 -2
- package/bundles/magic-xpa-mscorelib.umd.min.js.map +1 -1
- package/esm2015/index.js +2 -1
- package/esm2015/src/ApplicationException.js +2 -2
- package/esm2015/src/Exception.js +2 -2
- package/esm2015/src/List.js +2 -2
- package/esm2015/src/NString.js +2 -2
- package/esm2015/src/Utils.js +7 -0
- package/fesm2015/magic-xpa-mscorelib.js +8 -2
- package/fesm2015/magic-xpa-mscorelib.js.map +1 -1
- package/index.d.ts +1 -0
- package/package.json +1 -1
- package/src/Utils.d.ts +2 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("moment"),require("text-encoding"),require("stacktrace-js"),require("rxjs")):"function"==typeof define&&define.amd?define("@magic-xpa/mscorelib",["exports","moment","text-encoding","stacktrace-js","rxjs"],e):e(((t=t||self)["magic-xpa"]=t["magic-xpa"]||{},t["magic-xpa"].mscorelib={}),t.momentNs,t.textEncoding,t.StackTrace$1,t.rxjs)}(this,(function(t,e,n,r,o){"use strict";
|
|
2
2
|
/*! *****************************************************************************
|
|
3
3
|
Copyright (c) Microsoft Corporation.
|
|
4
4
|
|
|
@@ -12,5 +12,5 @@
|
|
|
12
12
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
13
13
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
14
14
|
PERFORMANCE OF THIS SOFTWARE.
|
|
15
|
-
***************************************************************************** */var u=function(t,e){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},u(t,e)};function s(t,e){function n(){this.constructor=t}u(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function a(t,e,n,r){return new(n||(n=Promise))((function(o,i){function u(t){try{a(r.next(t))}catch(t){i(t)}}function s(t){try{a(r.throw(t))}catch(t){i(t)}}function a(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(u,s)}a((r=r.apply(t,e||[])).next())}))}function c(t,e){var n,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return u.label++,{value:i[1],done:!1};case 5:u.label++,r=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!(o=u.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){u=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){u.label=i[1];break}if(6===i[0]&&u.label<o[1]){u.label=o[1],o=i;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(i);break}o[2]&&u.ops.pop(),u.trys.pop();continue}i=e.call(t,u)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}var h=function(){function t(t){this.name="Exception",this.message="",this.stack="",this.errorLevel=1,e.isNullOrUndefined(t)||(t instanceof Error?(this.stack=t.stack,this.message=t.message):(this.message=t,this.stack=(new Error).stack))}return Object.defineProperty(t.prototype,"Message",{get:function(){return this.message},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"StackTrace",{get:function(){var t=this.stack||"",e=t.split("\n").map((function(t){return t.trim()}));return"\n"+(t=e.splice("Error"===e[0]?this.errorLevel+1:this.errorLevel).join("\n"))},enumerable:!1,configurable:!0}),t.prototype.GetType=function(){return this.name},t}(),l=function(t){function n(n,r){void 0===n&&(n="");var o=t.call(this,n)||this;return o.InnerException=null,o.name="ApplicationException",o.InnerException=e.isUndefined(r)?null:r,o.errorLevel=2,o}return s(n,t),n}(h),p=function(){function t(t){this.index=-1,this.array=t}return t.prototype.MoveNext=function(){return this.index++,this.index<this.array.length},Object.defineProperty(t.prototype,"Current",{get:function(){return this.array[this.index]},enumerable:!1,configurable:!0}),t.prototype.Dispose=function(){},t}(),f=function(){function t(t){this.array=null,this.array=new Array(t).fill(!1)}return Object.defineProperty(t.prototype,"Length",{get:function(){return this.array.length},enumerable:!1,configurable:!0}),t.prototype.Get=function(t){return this.array[t]},t.prototype.Set=function(t,e){this.array[t]=e},t}(),g=function(){};g.MinValue="\0",g.MaxValue=String.fromCharCode(65535);var d=function(){};d.InvariantCulture=new d;var y,m=n;(y=t.DateTimeKind||(t.DateTimeKind={}))[y.Local=0]="Local",y[y.Utc=1]="Utc";var b=function(){function e(e,n,r,o,i,u){this.dt=null,this.kind=null,this.epochTicks=621355968e9,this.ticksPerMillisecond=1e4,1===arguments.length&&(this.dt=e),3===arguments.length&&(this.dt=new Date(e,n-1,r)),6===arguments.length&&(this.dt=new Date(e,n-1,r,o,i,u)),this.kind=t.DateTimeKind.Local}return Object.defineProperty(e.prototype,"Ticks",{get:function(){return this.dt.getTime()*this.ticksPerMillisecond+this.epochTicks-6e8*this.dt.getTimezoneOffset()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"Year",{get:function(){return this.kind===t.DateTimeKind.Utc?this.dt.getUTCFullYear():this.dt.getFullYear()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"Month",{get:function(){return this.kind===t.DateTimeKind.Utc?this.dt.getUTCMonth()+1:this.dt.getMonth()+1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"Day",{get:function(){return this.kind===t.DateTimeKind.Utc?this.dt.getUTCDate():this.dt.getDate()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"Hour",{get:function(){return this.kind===t.DateTimeKind.Utc?this.dt.getUTCHours():this.dt.getHours()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"Minute",{get:function(){return this.kind===t.DateTimeKind.Utc?this.dt.getUTCMinutes():this.dt.getMinutes()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"Second",{get:function(){return this.kind===t.DateTimeKind.Utc?this.dt.getUTCSeconds():this.dt.getSeconds()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"Millisecond",{get:function(){return this.kind===t.DateTimeKind.Utc?this.dt.getUTCMilliseconds():this.dt.getMilliseconds()},enumerable:!1,configurable:!0}),e.prototype.Format=function(t){return m(this.dt).format(t)},Object.defineProperty(e,"UtcNow",{get:function(){var n=new e(new Date);return n.kind=t.DateTimeKind.Utc,n},enumerable:!1,configurable:!0}),Object.defineProperty(e,"Now",{get:function(){var n=new e(new Date);return n.kind=t.DateTimeKind.Local,n},enumerable:!1,configurable:!0}),e.GetTotalSecondsFromMidnight=function(t,e){return 60*(t?e.getUTCHours():e.getHours())*60+60*(t?e.getUTCMinutes():e.getMinutes())+(t?e.getUTCSeconds():e.getSeconds())},e.GetTotalMilliSecondsFromMidnight=function(t,e){return 1e3*(60*(t?e.getUTCHours():e.getHours())*60+60*(t?e.getUTCMinutes():e.getMinutes())+(t?e.getUTCSeconds():e.getSeconds()))+(t?e.getUTCSeconds():e.getMilliseconds())},e}(),w=function(){function t(){}return t.WriteLine=function(t){console.log(t)},t.Assert=function(t,e){t||alert(e)},t}(),v=function(){function t(){this.values=new Array}return t.prototype.get_Item=function(t){return this.values.hasOwnProperty(t)?this.values[t]:null},t.prototype.set_Item=function(t,e){this.values[t]=e},t.prototype.Add=function(t,e){if(this.values.hasOwnProperty(t))throw new h("An item with the same key has already been added");this.values[t]=e},t.prototype.ContainsKey=function(t){return this.values.hasOwnProperty(t)},t.prototype.TryGetValue=function(t,e){return this.values.hasOwnProperty(t)?(e.value=this.values[t],!0):(e.value=null,!1)},t.prototype.Remove=function(t){delete this.values[t]},Object.defineProperty(t.prototype,"Keys",{get:function(){return Object.keys(this.values)},enumerable:!1,configurable:!0}),t}(),C=function(){function t(t){this.label=t,this.textEncoder=null,this.textDecoder=null,this.textEncoder=new r.TextEncoder(t,{NONSTANDARD_allowLegacyEncoding:!0}),this.textDecoder=new r.TextDecoder(t,{NONSTANDARD_allowLegacyEncoding:!0})}return t.prototype.GetBytes=function(t){if(null===t)throw new Error("Argument is null");var e=null;try{e=this.textEncoder.encode(t)}catch(i){e=new Uint8Array(3*t.length);for(var n=0,r=void 0,o=0;o<t.length;o++)try{r=this.textEncoder.encode(t[o]),e.set(r,n),n+=r.length}catch(t){e[n++]="?".charCodeAt(0)}e=e.subarray(0,0+n)}return e},t.prototype.GetByteCount=function(t){return this.GetBytes(t).length},t.prototype.GetString=function(t,e,n){var r=null;if(null===t)throw new Error("Argument is null");if(e<0||n<0||e+n>t.length)throw new Error("Argument out of range");t=t.subarray(e,e+n);try{r=this.textDecoder.decode(t)}catch(t){}return r},t.GetEncoding=function(e){var n=t.CodePageToEncodingMap[e];if(null==n)throw new Error("Invalid codepage.");return new t(n)},t.PopulateCodePageToEncodingMap=function(){var t=new Object;return t[20106]="DIN_66003",t[20107]="SEN_850200_B",t[50932]="_autodetect",t[20108]="NS_4551-1",t[50949]="_autodetect_kr",t[950]="big5",t[50221]="csISO2022JP",t[51949]="euc-kr",t[936]="gb2312",t[52936]="hz-gb-2312",t[852]="ibm852",t[866]="ibm866",t[20105]="irv",t[50220]="iso-2022-jp",t[50222]="iso-2022-jp",t[50225]="iso-2022-kr",t[28591]="iso-8859-1",t[28592]="iso-8859-2",t[28593]="iso-8859-3",t[28594]="iso-8859-4",t[28595]="iso-8859-5",t[28596]="iso-8859-6",t[28597]="iso-8859-7",t[28598]="iso-8859-8",t[20866]="koi8-r",t[949]="ks_c_5601",t[932]="shift-jis",t[1200]="unicode",t[1201]="unicodeFEFF",t[65e3]="utf-7",t[65001]="utf-8",t[1250]="windows-1250",t[1251]="windows-1251",t[1252]="windows-1252",t[1253]="windows-1253",t[1254]="windows-1254",t[1255]="windows-1255",t[1256]="windows-1256",t[1257]="windows-1257",t[1258]="windows-1258",t[874]="windows-874",t[20127]="US-ASCII",t[51932]="x-euc",t},t.prototype.toString=function(){return this.label},t}();C.ASCII=new C("ascii"),C.UTF8=new C("utf-8"),C.Unicode=new C("utf-16le"),C.CodePageToEncodingMap=C.PopulateCodePageToEncodingMap();var E=function(){function t(){}return t.GetHashCode=function(e){var n;return n=C.UTF8.GetBytes(e),t.getHashCode(n)},t.getHashCode=function(t){for(var e=5381,n=e,r=0;r<t.length&&(e=(e<<5)+e^t[r],r+1!==t.length);r+=2)n=(n<<5)+n^t[r+1],e&=65535,n&=65535;return e+13577*n},t}(),A=function(){function t(t,e){if(void 0===t&&(t=8),void 0===e&&(e=.75),this._buckets=[],this._elementsCount=0,this._bucketCount=0,this._loadFactor=0,this._bucketCount=t,this._loadFactor=e,this._bucketCount%2!=0)throw new h("Bucket count must be a positive number and be multiple of 2.")}return t.prototype.HashFunction=function(t){return"function"==typeof t.GetHashCode?t.GetHashCode():t.constructor===String?E.GetHashCode(t.toString()):t.constructor===Number?+t:0},Object.defineProperty(t.prototype,"Count",{get:function(){return this._elementsCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Values",{get:function(){var t=[];return this._buckets.forEach((function(e){return e.forEach((function(e){t.push(e.value)}))})),new p(t)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Keys",{get:function(){var t=[];return this._buckets.forEach((function(e){return e.forEach((function(e){t.push(e.key)}))})),new p(t)},enumerable:!1,configurable:!0}),t.prototype.Add=function(t,e){this.Insert(t,e,!0)},t.prototype.set_Item=function(t,e){this.Insert(t,e,!1)},t.prototype.Insert=function(t,e,n){var r=this.GetBucketIndex(t);if(void 0===this._buckets[r]&&(this._buckets[r]=[]),this._buckets[r].find((function(e){return e.key===t}))){if(n)throw new h("Item with provided key already exists!");this.Remove(t)}else this._buckets[r].push({key:t,value:e}),this._elementsCount++,this._elementsCount>this._bucketCount*this._loadFactor&&this.Resize(2*this._bucketCount)},t.prototype.get_Item=function(t){var e=this.GetBucketIndex(t),n=this._buckets[e];if(!n)return null;var r=n.find((function(e){return e.key===t}));return r?r.value:null},t.prototype.ContainsKey=function(t){var e=this.GetBucketIndex(t),n=this._buckets[e];return!!n&&n.findIndex((function(e){return e.key===t}))>-1},t.prototype.Remove=function(t){var e=this.GetBucketIndex(t),n=this._buckets[e];if(n){var r=n.findIndex((function(e){return e.key===t}));r>-1&&(n.splice(r,1),this._elementsCount--,this._elementsCount<=this._bucketCount*(1-this._loadFactor)&&this.Resize(this._bucketCount/2))}},t.prototype.Resize=function(t){var e=this,n=this._buckets;this._elementsCount=0,this._buckets=[],this._bucketCount=t,n.forEach((function(t){return t.forEach((function(t){return e.Add(t.key,t.value)}))}))},t.prototype.GetBucketIndex=function(t){var e=this.HashFunction(t);if(e%1!=0)throw new h("Key's hash must be an integer!");var n=Math.abs(e)%this._bucketCount;if(n<0||n>=this._bucketCount)throw new h("Index exceeds bucket boundaries");return n},t.prototype.Clear=function(){this._elementsCount=0,this._buckets=[]},t}(),x=function(){};x.MinValue=-2147483648,x.MaxValue=2147483647;var k=function(){};k.MinValue=-0x8000000000000000;var _=function(t){function e(e){return t.call(this,e)||this}return s(e,t),e.prototype.GetBytes=function(t){if(null===t)throw new Error("Argument is null");var e=null;e=new Uint8Array(3*t.length);for(var n=0,r=0;r<t.length;r++)e[n++]=t[r].charCodeAt(0);return e=e.subarray(0,0+n)},e.prototype.GetString=function(t,e,n){var r=null;if(null===t)throw new Error("Argument is null");if(e<0||n<0||e+n>t.length)throw new Error("Argument out of range");t=t.subarray(e,e+n);try{r="";for(var o=0;o<t.length;o++)r+=String.fromCharCode(t[o])}catch(t){}return r},e}(C);_.ISO_8859_1=new _("iso_8859-1");var S=function(t){function n(e){var r=t.call(this)||this;return Object.setPrototypeOf(r,n.prototype),1===arguments.length&&e.constructor===p&&r.AddRange(e),r}return s(n,t),n.prototype.AddRange=function(t){var e=this;if(t.constructor===Array)t.forEach((function(t){e.push(t)}));else for(var n=t;n.MoveNext();)this.push(n.Current)},n.prototype.get_Item=function(t){return e.isUndefined(this[t])&&(this[t]=null),this[t]},n.prototype.set_Item=function(t,e){if(!(t>=0&&t<this.length))throw new Error("index out of bounds");this[t]=e},n.prototype.GetEnumerator=function(){return new p(this)},n.prototype.Remove=function(t){var e=this.indexOf(t);e>-1&&this.RemoveAt(e)},n.prototype.RemoveAt=function(t){this.RemoveRange(t,1)},n.prototype.RemoveRange=function(t,e){this.splice(t,e)},n.prototype.Insert=function(t,e){if(t>=0&&t<this.length)this.splice(t,0,e);else{if(t!==this.length)throw new Error("index out of bounds");this.push(e)}},n.prototype.InsertRange=function(t){for(var e=0;e<t.length;)this.Insert(e,t[e]),e++},n.prototype.Clear=function(){this.splice(0,this.length)},n.prototype.ToArray=function(){return this.slice(0)},n.prototype.Contains=function(t){return this.indexOf(t)>-1},n.prototype.find=function(n){var r=t.prototype.find.call(this,n);return e.isUndefined(r)&&(r=null),r},n.prototype.SetSize=function(t){this.length>t?this.RemoveRange(t,this.length-t):this.length=t},n}(Array);function T(t){return t>=9&&t<=32||160===t}function I(t){return 48<=t&&t<=57}function $(t){return t>=97&&t<=122||t>=65&&t<=90}function O(t){return t===t.toLowerCase()}function R(t){return t===t.toUpperCase()}var N,P=function(){function t(){}return t.IsWhiteSpace=function(t){return T(t.charCodeAt(0))},t.IsLetterOrDigit=function(t){var e=t.charCodeAt(0);return I(e)||$(e)},t.IsDigit=function(t){return I(t.charCodeAt(0))},t.IsLetter=function(t){return $(t.charCodeAt(0))},t.IsLower=function(t){return O(t)},t.IsUpper=function(t){return R(t)},t}(),U=function(t){function e(e){return void 0===e&&(e="Not implemented"),t.call(this,e)||this}return s(e,t),e}(h);(N=t.NumberStyles||(t.NumberStyles={}))[N.HexNumber=0]="HexNumber";var D=function(){function e(){}return e.Parse=function(e,n){if(2===arguments.length){if(n===t.NumberStyles.HexNumber)return parseInt(e,16);throw new U}return+e},e.TryParse=function(t,e){return e.value=+t,!isNaN(e.value)},e.ToString=function(t,e){if("X2"===e){var n=t.toString(16);return 1===n.length?"0"+n:n}throw new U},e}(),M=function(){function t(){}return t.IndexOf=function(t,e,n,r){var o=t.substr(n,r).indexOf(e);return o>-1?n+o:o},t.IndexOfAny=function(t,e,n,r){for(var o=0;o<r;++o)for(var i=t.charAt(n+o),u=0;u<e.length;++u)if(i===e[u])return n+o;return-1},t.CopyTo=function(t,e,n,r,o){for(var i=0;i<o;i++)n[r+i]=t[e+i]},t.Compare=function(t,e,n,r,o,i){return(arguments.length=6)&&(t=t.substr(r,i),e=e.substr(o,i)),n&&(t=t.toLowerCase(),e=e.toLowerCase()),t.localeCompare(e)},t.Equals=function(e,n,r){return!t.IsNullOrEmpty(e)&&!t.IsNullOrEmpty(n)&&(r&&(e=e.toLowerCase(),n=n.toLowerCase()),e===n)},t.GetHashCode=function(t){var e,n,r=0;if(0===t.length)return r;for(e=0,n=t.length;e<n;e++)r=(r<<5)-r+t.charCodeAt(e),r|=0;return r},t.Remove=function(t,e,n){return t.substr(0,e-1)+t.substr(e+n-1)},t.TrimStart=function(t){return t.replace(/^\s\s*/,"")},t.TrimEnd=function(n,r){if(1===arguments.length)return n.replace(/\s\s*$/,"");for(var o=0;o<r.length;o++)for(var i=r[o],u=n.length-1;!e.isNullOrUndefined(n[u])&&n[u].endsWith(i);)n=t.Remove(n,n.length,1),u--;return n},t.Format=function(n,r,o,i,u,s,a){if(e.isNullOrUndefined(r)||r.constructor!==Array){var c=[r,o,i,u,s,a];return t.Format(n,c)}for(var h=n,l=r.length;l--;)h=h.replace(new RegExp("\\{"+l+"\\}","gm"),r[l]);return h},t.IsNullOrEmpty=function(t){return!t},t.FromChars=function(t,e,n){var r=t.join("");return 3===arguments.length?r.substr(e,n):r},t.FromChar=function(t,e){return new Array(e).fill(t).join("")},t.ToCharArray=function(t){return Array.from(t)},t.CompareOrdinal=function(t,e){for(var n=t.length,r=e.length,o=Math.min(n,r),i=0;i<o;i++)if(t[i].charCodeAt(0)!==e[i].charCodeAt(0))return t[i].charCodeAt(0)-e[i].charCodeAt(0);return n!==r?n-r:0},t.PadRight=function(t,e,n){if(t.length>=e)return t;var r=e-t.length,o=Math.ceil(r/n.length);return t+n.repeat(o).slice(0,r)},t.Insert=function(t,e,n){return t.substr(0,e)+n+t.substr(e,t.length-e)},t.Replace=function(t,e,n){var r="";e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace(new RegExp("\\\\","g"),"\\\\")).replace(new RegExp("\\*","g"),"\\*")).replace(new RegExp("\\$","g"),"\\$")).replace(new RegExp("\\^","g"),"\\^")).replace(new RegExp("\\.","g"),"\\.")).replace(new RegExp("\\?","g"),"\\?")).replace(new RegExp("\\+","g"),"\\+")).replace(new RegExp("\\,","g"),"\\,")).replace(new RegExp("\\[","g"),"\\[")).replace(new RegExp("\\|","g"),"\\|");try{r=t.replace(new RegExp(e,"g"),n)}catch(t){throw new h(t.message)}return r},t}();M.Empty="";var L=function(){function t(){}return t.GetLocaleDecimalSeperator=function(){return 1.1.toLocaleString()[1]},t}();L.NegativeSign="-",L.NumberDecimalSeparator=L.GetLocaleDecimalSeperator();var j=function(t){this.value=t},F=function(){function t(){this._array=new Array}return t.prototype.count=function(){return this._array.length},t.prototype.isEmpty=function(){return 0===this._array.length},t.prototype.push=function(t){this._array.push(t)},t.prototype.pop=function(){return this._array.pop()},t.prototype.peek=function(){return this._array.length>0?this._array[this._array.length-1]:null},t.prototype.Clear=function(){this._array.splice(0,this._array.length)},t.prototype.Clone=function(){var e=new t;return e._array=this._array.slice(),e},t}(),G=function(){function t(t){this.stackFrame=null;var e=o.getSync();if(t<0||t>=e.length)throw new Error("Argument out of range");this.stackFrame=e[t]}return t.prototype.GetFileName=function(){return this.stackFrame.fileName},t}(),H=function(){function t(){}return t.prototype.GetFrames=function(){return o.getSync()},t}(),B=function(){function t(t,e){this.part="",arguments.length>0&&(null!=t&&t.constructor===Number||null!=t&&t.constructor===String&&(this.part=t.toString()))}return t.prototype.Append=function(t,e,n){return null===t||(t.constructor===String?1===arguments.length?this.AppendString(t.toString()):2===arguments.length?(w.Assert(1===t.length,"character is expected not string"),this.AppendString(t.charAt(0).repeat(e))):this.AppendString(t.toString(),e,n):this.AppendNumber(t,e)),this},t.prototype.AppendString=function(t,e,n){void 0===e&&(e=0),void 0===n&&(n=t.length),this.part=this.part+t.substr(e,n)},t.prototype.AppendNumber=function(t,e){if(void 0===e&&(e=1),e<=0)throw new Error("numberOfCharacters cannot be less than or equal to zero");this.part=this.part+t.toString().repeat(e)},t.prototype.AppendLine=function(t){void 0===t&&(t=null),null!==t&&(this.part=this.part+t),this.part=this.part+"\n"},t.prototype.AppendFormat=function(t,e,n,r){return this.part=this.part+M.Format(t,e,n,r),this},t.prototype.ToString=function(t,e){if(2===arguments.length){if(t<0||e<0||t+e>this.part.length)throw new Error("Argument out of range");return this.part.substr(t,e)}return this.part},Object.defineProperty(t.prototype,"Length",{get:function(){return this.part.length},enumerable:!1,configurable:!0}),t.prototype.get_Item=function(t){if(t<0||t>=this.part.length)throw new Error("Index out of range");return this.part.charAt(t)},t.prototype.set_Item=function(t,e){if(t<0||t>=this.part.length)throw new Error("Index out of range");w.Assert(e.length<=1,"Length of string cannot be more than 1. Only character is expected");var n=this.part.substring(0,t),r=this.part.substring(t+1,this.part.length);this.part=n+e.charAt(0)+r},t.prototype.Insert=function(t,e){if(t<0||t>this.part.length)throw new Error("Argument out of range");var n=this.part.substring(0,t),r=this.part.substring(t,this.part.length);return this.part=n+e+r,this},t.prototype.Remove=function(t,e){if(t<0||e<0||t+e>this.part.length)throw new Error("Argument out of range");var n=this.part.substring(0,t),r=this.part.substring(t+e,this.part.length);return this.part=n+r,this},t.prototype.Replace=function(t,e,n,r){if(null===t)throw new Error("oldValue cannot be null");if(0===t.length)throw new Error("Length of oldValue cannot be 0");if(4===arguments.length&&(n<0||r<0||n+r>this.part.length))throw new Error("Argument out of range");if(2===arguments.length)this.part=this.part.replace(new RegExp(t,"g"),e);else if(4===arguments.length){var o=this.part.substring(n,n+r);o=o.replace(new RegExp(t,"g"),e);var i=this.part.substring(0,n),u=this.part.substring(n+r,this.part.length);this.part=i+o+u}return this},t.prototype.toString=function(){return this.ToString()},t}(),K=function(){function t(){this.ManagedThreadId=0,this.ManagedThreadId=t.nextId++}return t.Sleep=function(t){return a(this,void 0,void 0,(function(){return c(this,(function(e){switch(e.label){case 0:return[4,new Promise((function(e){var n=i.interval(t).subscribe((function(){n.unsubscribe(),e()}))})).then()];case 1:return e.sent(),[2]}}))}))},t}();K.nextId=1,K.CurrentThread=new K;var V=function(t){function e(e){var n=t.call(this)||this;return n.name="WebException",n.stack=e.stack,n.message=e.message,n}return s(e,t),e}(h),z=function(){function t(){}return t.EncodeName=function(t){throw new U},t}();t.$$=36,t.$0=48,t.$9=57,t.$A=65,t.$AMPERSAND=38,t.$AT=64,t.$BACKSLASH=92,t.$BANG=33,t.$BAR=124,t.$BT=96,t.$CARET=94,t.$COLON=58,t.$COMMA=44,t.$CR=13,t.$DQ=34,t.$E=69,t.$EOF=0,t.$EQ=61,t.$F=70,t.$FF=12,t.$GT=62,t.$HASH=35,t.$LBRACE=123,t.$LBRACKET=91,t.$LF=10,t.$LPAREN=40,t.$LT=60,t.$MINUS=45,t.$NBSP=160,t.$PERCENT=37,t.$PERIOD=46,t.$PIPE=124,t.$PLUS=43,t.$QUESTION=63,t.$RBRACE=125,t.$RBRACKET=93,t.$RPAREN=41,t.$SEMICOLON=59,t.$SLASH=47,t.$SPACE=32,t.$SQ=39,t.$STAR=42,t.$TAB=9,t.$TILDA=126,t.$VTAB=11,t.$X=88,t.$Z=90,t.$_=95,t.$a=97,t.$e=101,t.$f=102,t.$n=110,t.$r=114,t.$t=116,t.$u=117,t.$v=118,t.$x=120,t.$z=122,t.ApplicationException=l,t.Array_Enumerator=p,t.BitArray=f,t.Char=g,t.CultureInfo=d,t.DateTime=b,t.Debug=w,t.Dictionary=v,t.Encoding=C,t.Exception=h,t.HashUtils=E,t.Hashtable=A,t.ISO_8859_1_Encoding=_,t.Int32=x,t.Int64=k,t.List=S,t.NChar=P,t.NNumber=D,t.NString=M,t.NotImplementedException=U,t.NumberFormatInfo=L,t.RefParam=j,t.Stack=F,t.StackFrame=G,t.StackTrace=H,t.StringBuilder=B,t.Thread=K,t.WebException=V,t.XmlConvert=z,t.isAsciiHexDigit=function(t){return t>=97&&t<=102||t>=65&&t<=70||I(t)},t.isAsciiLetter=$,t.isDigit=I,t.isLowerCase=O,t.isUpperCase=R,t.isWhitespace=T,Object.defineProperty(t,"__esModule",{value:!0})}));
|
|
15
|
+
***************************************************************************** */var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},i(t,e)};function u(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function s(t,e,n,r){return new(n||(n=Promise))((function(o,i){function u(t){try{a(r.next(t))}catch(t){i(t)}}function s(t){try{a(r.throw(t))}catch(t){i(t)}}function a(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(u,s)}a((r=r.apply(t,e||[])).next())}))}function a(t,e){var n,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return u.label++,{value:i[1],done:!1};case 5:u.label++,r=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!(o=u.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){u=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){u.label=i[1];break}if(6===i[0]&&u.label<o[1]){u.label=o[1],o=i;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(i);break}o[2]&&u.ops.pop(),u.trys.pop();continue}i=e.call(t,u)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}function c(t){return null==t||null==t}function h(t){return null==t}var l=function(){function t(t){this.name="Exception",this.message="",this.stack="",this.errorLevel=1,c(t)||(t instanceof Error?(this.stack=t.stack,this.message=t.message):(this.message=t,this.stack=(new Error).stack))}return Object.defineProperty(t.prototype,"Message",{get:function(){return this.message},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"StackTrace",{get:function(){var t=this.stack||"",e=t.split("\n").map((function(t){return t.trim()}));return"\n"+(t=e.splice("Error"===e[0]?this.errorLevel+1:this.errorLevel).join("\n"))},enumerable:!1,configurable:!0}),t.prototype.GetType=function(){return this.name},t}(),p=function(t){function e(e,n){void 0===e&&(e="");var r=t.call(this,e)||this;return r.InnerException=null,r.name="ApplicationException",r.InnerException=h(n)?null:n,r.errorLevel=2,r}return u(e,t),e}(l),f=function(){function t(t){this.index=-1,this.array=t}return t.prototype.MoveNext=function(){return this.index++,this.index<this.array.length},Object.defineProperty(t.prototype,"Current",{get:function(){return this.array[this.index]},enumerable:!1,configurable:!0}),t.prototype.Dispose=function(){},t}(),g=function(){function t(t){this.array=null,this.array=new Array(t).fill(!1)}return Object.defineProperty(t.prototype,"Length",{get:function(){return this.array.length},enumerable:!1,configurable:!0}),t.prototype.Get=function(t){return this.array[t]},t.prototype.Set=function(t,e){this.array[t]=e},t}(),d=function(){};d.MinValue="\0",d.MaxValue=String.fromCharCode(65535);var y=function(){};y.InvariantCulture=new y;var m,b=e;(m=t.DateTimeKind||(t.DateTimeKind={}))[m.Local=0]="Local",m[m.Utc=1]="Utc";var w=function(){function e(e,n,r,o,i,u){this.dt=null,this.kind=null,this.epochTicks=621355968e9,this.ticksPerMillisecond=1e4,1===arguments.length&&(this.dt=e),3===arguments.length&&(this.dt=new Date(e,n-1,r)),6===arguments.length&&(this.dt=new Date(e,n-1,r,o,i,u)),this.kind=t.DateTimeKind.Local}return Object.defineProperty(e.prototype,"Ticks",{get:function(){return this.dt.getTime()*this.ticksPerMillisecond+this.epochTicks-6e8*this.dt.getTimezoneOffset()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"Year",{get:function(){return this.kind===t.DateTimeKind.Utc?this.dt.getUTCFullYear():this.dt.getFullYear()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"Month",{get:function(){return this.kind===t.DateTimeKind.Utc?this.dt.getUTCMonth()+1:this.dt.getMonth()+1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"Day",{get:function(){return this.kind===t.DateTimeKind.Utc?this.dt.getUTCDate():this.dt.getDate()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"Hour",{get:function(){return this.kind===t.DateTimeKind.Utc?this.dt.getUTCHours():this.dt.getHours()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"Minute",{get:function(){return this.kind===t.DateTimeKind.Utc?this.dt.getUTCMinutes():this.dt.getMinutes()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"Second",{get:function(){return this.kind===t.DateTimeKind.Utc?this.dt.getUTCSeconds():this.dt.getSeconds()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"Millisecond",{get:function(){return this.kind===t.DateTimeKind.Utc?this.dt.getUTCMilliseconds():this.dt.getMilliseconds()},enumerable:!1,configurable:!0}),e.prototype.Format=function(t){return b(this.dt).format(t)},Object.defineProperty(e,"UtcNow",{get:function(){var n=new e(new Date);return n.kind=t.DateTimeKind.Utc,n},enumerable:!1,configurable:!0}),Object.defineProperty(e,"Now",{get:function(){var n=new e(new Date);return n.kind=t.DateTimeKind.Local,n},enumerable:!1,configurable:!0}),e.GetTotalSecondsFromMidnight=function(t,e){return 60*(t?e.getUTCHours():e.getHours())*60+60*(t?e.getUTCMinutes():e.getMinutes())+(t?e.getUTCSeconds():e.getSeconds())},e.GetTotalMilliSecondsFromMidnight=function(t,e){return 1e3*(60*(t?e.getUTCHours():e.getHours())*60+60*(t?e.getUTCMinutes():e.getMinutes())+(t?e.getUTCSeconds():e.getSeconds()))+(t?e.getUTCSeconds():e.getMilliseconds())},e}(),v=function(){function t(){}return t.WriteLine=function(t){console.log(t)},t.Assert=function(t,e){t||alert(e)},t}(),C=function(){function t(){this.values=new Array}return t.prototype.get_Item=function(t){return this.values.hasOwnProperty(t)?this.values[t]:null},t.prototype.set_Item=function(t,e){this.values[t]=e},t.prototype.Add=function(t,e){if(this.values.hasOwnProperty(t))throw new l("An item with the same key has already been added");this.values[t]=e},t.prototype.ContainsKey=function(t){return this.values.hasOwnProperty(t)},t.prototype.TryGetValue=function(t,e){return this.values.hasOwnProperty(t)?(e.value=this.values[t],!0):(e.value=null,!1)},t.prototype.Remove=function(t){delete this.values[t]},Object.defineProperty(t.prototype,"Keys",{get:function(){return Object.keys(this.values)},enumerable:!1,configurable:!0}),t}(),E=function(){function t(t){this.label=t,this.textEncoder=null,this.textDecoder=null,this.textEncoder=new n.TextEncoder(t,{NONSTANDARD_allowLegacyEncoding:!0}),this.textDecoder=new n.TextDecoder(t,{NONSTANDARD_allowLegacyEncoding:!0})}return t.prototype.GetBytes=function(t){if(null===t)throw new Error("Argument is null");var e=null;try{e=this.textEncoder.encode(t)}catch(i){e=new Uint8Array(3*t.length);for(var n=0,r=void 0,o=0;o<t.length;o++)try{r=this.textEncoder.encode(t[o]),e.set(r,n),n+=r.length}catch(t){e[n++]="?".charCodeAt(0)}e=e.subarray(0,0+n)}return e},t.prototype.GetByteCount=function(t){return this.GetBytes(t).length},t.prototype.GetString=function(t,e,n){var r=null;if(null===t)throw new Error("Argument is null");if(e<0||n<0||e+n>t.length)throw new Error("Argument out of range");t=t.subarray(e,e+n);try{r=this.textDecoder.decode(t)}catch(t){}return r},t.GetEncoding=function(e){var n=t.CodePageToEncodingMap[e];if(null==n)throw new Error("Invalid codepage.");return new t(n)},t.PopulateCodePageToEncodingMap=function(){var t=new Object;return t[20106]="DIN_66003",t[20107]="SEN_850200_B",t[50932]="_autodetect",t[20108]="NS_4551-1",t[50949]="_autodetect_kr",t[950]="big5",t[50221]="csISO2022JP",t[51949]="euc-kr",t[936]="gb2312",t[52936]="hz-gb-2312",t[852]="ibm852",t[866]="ibm866",t[20105]="irv",t[50220]="iso-2022-jp",t[50222]="iso-2022-jp",t[50225]="iso-2022-kr",t[28591]="iso-8859-1",t[28592]="iso-8859-2",t[28593]="iso-8859-3",t[28594]="iso-8859-4",t[28595]="iso-8859-5",t[28596]="iso-8859-6",t[28597]="iso-8859-7",t[28598]="iso-8859-8",t[20866]="koi8-r",t[949]="ks_c_5601",t[932]="shift-jis",t[1200]="unicode",t[1201]="unicodeFEFF",t[65e3]="utf-7",t[65001]="utf-8",t[1250]="windows-1250",t[1251]="windows-1251",t[1252]="windows-1252",t[1253]="windows-1253",t[1254]="windows-1254",t[1255]="windows-1255",t[1256]="windows-1256",t[1257]="windows-1257",t[1258]="windows-1258",t[874]="windows-874",t[20127]="US-ASCII",t[51932]="x-euc",t},t.prototype.toString=function(){return this.label},t}();E.ASCII=new E("ascii"),E.UTF8=new E("utf-8"),E.Unicode=new E("utf-16le"),E.CodePageToEncodingMap=E.PopulateCodePageToEncodingMap();var A=function(){function t(){}return t.GetHashCode=function(e){var n;return n=E.UTF8.GetBytes(e),t.getHashCode(n)},t.getHashCode=function(t){for(var e=5381,n=e,r=0;r<t.length&&(e=(e<<5)+e^t[r],r+1!==t.length);r+=2)n=(n<<5)+n^t[r+1],e&=65535,n&=65535;return e+13577*n},t}(),x=function(){function t(t,e){if(void 0===t&&(t=8),void 0===e&&(e=.75),this._buckets=[],this._elementsCount=0,this._bucketCount=0,this._loadFactor=0,this._bucketCount=t,this._loadFactor=e,this._bucketCount%2!=0)throw new l("Bucket count must be a positive number and be multiple of 2.")}return t.prototype.HashFunction=function(t){return"function"==typeof t.GetHashCode?t.GetHashCode():t.constructor===String?A.GetHashCode(t.toString()):t.constructor===Number?+t:0},Object.defineProperty(t.prototype,"Count",{get:function(){return this._elementsCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Values",{get:function(){var t=[];return this._buckets.forEach((function(e){return e.forEach((function(e){t.push(e.value)}))})),new f(t)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Keys",{get:function(){var t=[];return this._buckets.forEach((function(e){return e.forEach((function(e){t.push(e.key)}))})),new f(t)},enumerable:!1,configurable:!0}),t.prototype.Add=function(t,e){this.Insert(t,e,!0)},t.prototype.set_Item=function(t,e){this.Insert(t,e,!1)},t.prototype.Insert=function(t,e,n){var r=this.GetBucketIndex(t);if(void 0===this._buckets[r]&&(this._buckets[r]=[]),this._buckets[r].find((function(e){return e.key===t}))){if(n)throw new l("Item with provided key already exists!");this.Remove(t)}else this._buckets[r].push({key:t,value:e}),this._elementsCount++,this._elementsCount>this._bucketCount*this._loadFactor&&this.Resize(2*this._bucketCount)},t.prototype.get_Item=function(t){var e=this.GetBucketIndex(t),n=this._buckets[e];if(!n)return null;var r=n.find((function(e){return e.key===t}));return r?r.value:null},t.prototype.ContainsKey=function(t){var e=this.GetBucketIndex(t),n=this._buckets[e];return!!n&&n.findIndex((function(e){return e.key===t}))>-1},t.prototype.Remove=function(t){var e=this.GetBucketIndex(t),n=this._buckets[e];if(n){var r=n.findIndex((function(e){return e.key===t}));r>-1&&(n.splice(r,1),this._elementsCount--,this._elementsCount<=this._bucketCount*(1-this._loadFactor)&&this.Resize(this._bucketCount/2))}},t.prototype.Resize=function(t){var e=this,n=this._buckets;this._elementsCount=0,this._buckets=[],this._bucketCount=t,n.forEach((function(t){return t.forEach((function(t){return e.Add(t.key,t.value)}))}))},t.prototype.GetBucketIndex=function(t){var e=this.HashFunction(t);if(e%1!=0)throw new l("Key's hash must be an integer!");var n=Math.abs(e)%this._bucketCount;if(n<0||n>=this._bucketCount)throw new l("Index exceeds bucket boundaries");return n},t.prototype.Clear=function(){this._elementsCount=0,this._buckets=[]},t}(),k=function(){};k.MinValue=-2147483648,k.MaxValue=2147483647;var _=function(){};_.MinValue=-0x8000000000000000;var S=function(t){function e(e){return t.call(this,e)||this}return u(e,t),e.prototype.GetBytes=function(t){if(null===t)throw new Error("Argument is null");var e=null;e=new Uint8Array(3*t.length);for(var n=0,r=0;r<t.length;r++)e[n++]=t[r].charCodeAt(0);return e=e.subarray(0,0+n)},e.prototype.GetString=function(t,e,n){var r=null;if(null===t)throw new Error("Argument is null");if(e<0||n<0||e+n>t.length)throw new Error("Argument out of range");t=t.subarray(e,e+n);try{r="";for(var o=0;o<t.length;o++)r+=String.fromCharCode(t[o])}catch(t){}return r},e}(E);S.ISO_8859_1=new S("iso_8859-1");var T=function(t){function e(n){var r=t.call(this)||this;return Object.setPrototypeOf(r,e.prototype),1===arguments.length&&n.constructor===f&&r.AddRange(n),r}return u(e,t),e.prototype.AddRange=function(t){var e=this;if(t.constructor===Array)t.forEach((function(t){e.push(t)}));else for(var n=t;n.MoveNext();)this.push(n.Current)},e.prototype.get_Item=function(t){return h(this[t])&&(this[t]=null),this[t]},e.prototype.set_Item=function(t,e){if(!(t>=0&&t<this.length))throw new Error("index out of bounds");this[t]=e},e.prototype.GetEnumerator=function(){return new f(this)},e.prototype.Remove=function(t){var e=this.indexOf(t);e>-1&&this.RemoveAt(e)},e.prototype.RemoveAt=function(t){this.RemoveRange(t,1)},e.prototype.RemoveRange=function(t,e){this.splice(t,e)},e.prototype.Insert=function(t,e){if(t>=0&&t<this.length)this.splice(t,0,e);else{if(t!==this.length)throw new Error("index out of bounds");this.push(e)}},e.prototype.InsertRange=function(t){for(var e=0;e<t.length;)this.Insert(e,t[e]),e++},e.prototype.Clear=function(){this.splice(0,this.length)},e.prototype.ToArray=function(){return this.slice(0)},e.prototype.Contains=function(t){return this.indexOf(t)>-1},e.prototype.find=function(e){var n=t.prototype.find.call(this,e);return h(n)&&(n=null),n},e.prototype.SetSize=function(t){this.length>t?this.RemoveRange(t,this.length-t):this.length=t},e}(Array);function I(t){return t>=9&&t<=32||160===t}function $(t){return 48<=t&&t<=57}function O(t){return t>=97&&t<=122||t>=65&&t<=90}function R(t){return t===t.toLowerCase()}function N(t){return t===t.toUpperCase()}var P,D=function(){function t(){}return t.IsWhiteSpace=function(t){return I(t.charCodeAt(0))},t.IsLetterOrDigit=function(t){var e=t.charCodeAt(0);return $(e)||O(e)},t.IsDigit=function(t){return $(t.charCodeAt(0))},t.IsLetter=function(t){return O(t.charCodeAt(0))},t.IsLower=function(t){return R(t)},t.IsUpper=function(t){return N(t)},t}(),M=function(t){function e(e){return void 0===e&&(e="Not implemented"),t.call(this,e)||this}return u(e,t),e}(l);(P=t.NumberStyles||(t.NumberStyles={}))[P.HexNumber=0]="HexNumber";var L=function(){function e(){}return e.Parse=function(e,n){if(2===arguments.length){if(n===t.NumberStyles.HexNumber)return parseInt(e,16);throw new M}return+e},e.TryParse=function(t,e){return e.value=+t,!isNaN(e.value)},e.ToString=function(t,e){if("X2"===e){var n=t.toString(16);return 1===n.length?"0"+n:n}throw new M},e}(),U=function(){function t(){}return t.IndexOf=function(t,e,n,r){var o=t.substr(n,r).indexOf(e);return o>-1?n+o:o},t.IndexOfAny=function(t,e,n,r){for(var o=0;o<r;++o)for(var i=t.charAt(n+o),u=0;u<e.length;++u)if(i===e[u])return n+o;return-1},t.CopyTo=function(t,e,n,r,o){for(var i=0;i<o;i++)n[r+i]=t[e+i]},t.Compare=function(t,e,n,r,o,i){return(arguments.length=6)&&(t=t.substr(r,i),e=e.substr(o,i)),n&&(t=t.toLowerCase(),e=e.toLowerCase()),t.localeCompare(e)},t.Equals=function(e,n,r){return!t.IsNullOrEmpty(e)&&!t.IsNullOrEmpty(n)&&(r&&(e=e.toLowerCase(),n=n.toLowerCase()),e===n)},t.GetHashCode=function(t){var e,n,r=0;if(0===t.length)return r;for(e=0,n=t.length;e<n;e++)r=(r<<5)-r+t.charCodeAt(e),r|=0;return r},t.Remove=function(t,e,n){return t.substr(0,e-1)+t.substr(e+n-1)},t.TrimStart=function(t){return t.replace(/^\s\s*/,"")},t.TrimEnd=function(e,n){if(1===arguments.length)return e.replace(/\s\s*$/,"");for(var r=0;r<n.length;r++)for(var o=n[r],i=e.length-1;!c(e[i])&&e[i].endsWith(o);)e=t.Remove(e,e.length,1),i--;return e},t.Format=function(e,n,r,o,i,u,s){if(c(n)||n.constructor!==Array){var a=[n,r,o,i,u,s];return t.Format(e,a)}for(var h=e,l=n.length;l--;)h=h.replace(new RegExp("\\{"+l+"\\}","gm"),n[l]);return h},t.IsNullOrEmpty=function(t){return!t},t.FromChars=function(t,e,n){var r=t.join("");return 3===arguments.length?r.substr(e,n):r},t.FromChar=function(t,e){return new Array(e).fill(t).join("")},t.ToCharArray=function(t){return Array.from(t)},t.CompareOrdinal=function(t,e){for(var n=t.length,r=e.length,o=Math.min(n,r),i=0;i<o;i++)if(t[i].charCodeAt(0)!==e[i].charCodeAt(0))return t[i].charCodeAt(0)-e[i].charCodeAt(0);return n!==r?n-r:0},t.PadRight=function(t,e,n){if(t.length>=e)return t;var r=e-t.length,o=Math.ceil(r/n.length);return t+n.repeat(o).slice(0,r)},t.Insert=function(t,e,n){return t.substr(0,e)+n+t.substr(e,t.length-e)},t.Replace=function(t,e,n){var r="";e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace(new RegExp("\\\\","g"),"\\\\")).replace(new RegExp("\\*","g"),"\\*")).replace(new RegExp("\\$","g"),"\\$")).replace(new RegExp("\\^","g"),"\\^")).replace(new RegExp("\\.","g"),"\\.")).replace(new RegExp("\\?","g"),"\\?")).replace(new RegExp("\\+","g"),"\\+")).replace(new RegExp("\\,","g"),"\\,")).replace(new RegExp("\\[","g"),"\\[")).replace(new RegExp("\\|","g"),"\\|");try{r=t.replace(new RegExp(e,"g"),n)}catch(t){throw new l(t.message)}return r},t}();U.Empty="";var j=function(){function t(){}return t.GetLocaleDecimalSeperator=function(){return 1.1.toLocaleString()[1]},t}();j.NegativeSign="-",j.NumberDecimalSeparator=j.GetLocaleDecimalSeperator();var F=function(t){this.value=t},G=function(){function t(){this._array=new Array}return t.prototype.count=function(){return this._array.length},t.prototype.isEmpty=function(){return 0===this._array.length},t.prototype.push=function(t){this._array.push(t)},t.prototype.pop=function(){return this._array.pop()},t.prototype.peek=function(){return this._array.length>0?this._array[this._array.length-1]:null},t.prototype.Clear=function(){this._array.splice(0,this._array.length)},t.prototype.Clone=function(){var e=new t;return e._array=this._array.slice(),e},t}(),H=function(){function t(t){this.stackFrame=null;var e=r.getSync();if(t<0||t>=e.length)throw new Error("Argument out of range");this.stackFrame=e[t]}return t.prototype.GetFileName=function(){return this.stackFrame.fileName},t}(),B=function(){function t(){}return t.prototype.GetFrames=function(){return r.getSync()},t}(),K=function(){function t(t,e){this.part="",arguments.length>0&&(null!=t&&t.constructor===Number||null!=t&&t.constructor===String&&(this.part=t.toString()))}return t.prototype.Append=function(t,e,n){return null===t||(t.constructor===String?1===arguments.length?this.AppendString(t.toString()):2===arguments.length?(v.Assert(1===t.length,"character is expected not string"),this.AppendString(t.charAt(0).repeat(e))):this.AppendString(t.toString(),e,n):this.AppendNumber(t,e)),this},t.prototype.AppendString=function(t,e,n){void 0===e&&(e=0),void 0===n&&(n=t.length),this.part=this.part+t.substr(e,n)},t.prototype.AppendNumber=function(t,e){if(void 0===e&&(e=1),e<=0)throw new Error("numberOfCharacters cannot be less than or equal to zero");this.part=this.part+t.toString().repeat(e)},t.prototype.AppendLine=function(t){void 0===t&&(t=null),null!==t&&(this.part=this.part+t),this.part=this.part+"\n"},t.prototype.AppendFormat=function(t,e,n,r){return this.part=this.part+U.Format(t,e,n,r),this},t.prototype.ToString=function(t,e){if(2===arguments.length){if(t<0||e<0||t+e>this.part.length)throw new Error("Argument out of range");return this.part.substr(t,e)}return this.part},Object.defineProperty(t.prototype,"Length",{get:function(){return this.part.length},enumerable:!1,configurable:!0}),t.prototype.get_Item=function(t){if(t<0||t>=this.part.length)throw new Error("Index out of range");return this.part.charAt(t)},t.prototype.set_Item=function(t,e){if(t<0||t>=this.part.length)throw new Error("Index out of range");v.Assert(e.length<=1,"Length of string cannot be more than 1. Only character is expected");var n=this.part.substring(0,t),r=this.part.substring(t+1,this.part.length);this.part=n+e.charAt(0)+r},t.prototype.Insert=function(t,e){if(t<0||t>this.part.length)throw new Error("Argument out of range");var n=this.part.substring(0,t),r=this.part.substring(t,this.part.length);return this.part=n+e+r,this},t.prototype.Remove=function(t,e){if(t<0||e<0||t+e>this.part.length)throw new Error("Argument out of range");var n=this.part.substring(0,t),r=this.part.substring(t+e,this.part.length);return this.part=n+r,this},t.prototype.Replace=function(t,e,n,r){if(null===t)throw new Error("oldValue cannot be null");if(0===t.length)throw new Error("Length of oldValue cannot be 0");if(4===arguments.length&&(n<0||r<0||n+r>this.part.length))throw new Error("Argument out of range");if(2===arguments.length)this.part=this.part.replace(new RegExp(t,"g"),e);else if(4===arguments.length){var o=this.part.substring(n,n+r);o=o.replace(new RegExp(t,"g"),e);var i=this.part.substring(0,n),u=this.part.substring(n+r,this.part.length);this.part=i+o+u}return this},t.prototype.toString=function(){return this.ToString()},t}(),V=function(){function t(){this.ManagedThreadId=0,this.ManagedThreadId=t.nextId++}return t.Sleep=function(t){return s(this,void 0,void 0,(function(){return a(this,(function(e){switch(e.label){case 0:return[4,new Promise((function(e){var n=o.interval(t).subscribe((function(){n.unsubscribe(),e()}))})).then()];case 1:return e.sent(),[2]}}))}))},t}();V.nextId=1,V.CurrentThread=new V;var z=function(t){function e(e){var n=t.call(this)||this;return n.name="WebException",n.stack=e.stack,n.message=e.message,n}return u(e,t),e}(l),q=function(){function t(){}return t.EncodeName=function(t){throw new M},t}();t.$$=36,t.$0=48,t.$9=57,t.$A=65,t.$AMPERSAND=38,t.$AT=64,t.$BACKSLASH=92,t.$BANG=33,t.$BAR=124,t.$BT=96,t.$CARET=94,t.$COLON=58,t.$COMMA=44,t.$CR=13,t.$DQ=34,t.$E=69,t.$EOF=0,t.$EQ=61,t.$F=70,t.$FF=12,t.$GT=62,t.$HASH=35,t.$LBRACE=123,t.$LBRACKET=91,t.$LF=10,t.$LPAREN=40,t.$LT=60,t.$MINUS=45,t.$NBSP=160,t.$PERCENT=37,t.$PERIOD=46,t.$PIPE=124,t.$PLUS=43,t.$QUESTION=63,t.$RBRACE=125,t.$RBRACKET=93,t.$RPAREN=41,t.$SEMICOLON=59,t.$SLASH=47,t.$SPACE=32,t.$SQ=39,t.$STAR=42,t.$TAB=9,t.$TILDA=126,t.$VTAB=11,t.$X=88,t.$Z=90,t.$_=95,t.$a=97,t.$e=101,t.$f=102,t.$n=110,t.$r=114,t.$t=116,t.$u=117,t.$v=118,t.$x=120,t.$z=122,t.ApplicationException=p,t.Array_Enumerator=f,t.BitArray=g,t.Char=d,t.CultureInfo=y,t.DateTime=w,t.Debug=v,t.Dictionary=C,t.Encoding=E,t.Exception=l,t.HashUtils=A,t.Hashtable=x,t.ISO_8859_1_Encoding=S,t.Int32=k,t.Int64=_,t.List=T,t.NChar=D,t.NNumber=L,t.NString=U,t.NotImplementedException=M,t.NumberFormatInfo=j,t.RefParam=F,t.Stack=G,t.StackFrame=H,t.StackTrace=B,t.StringBuilder=K,t.Thread=V,t.WebException=z,t.XmlConvert=q,t.isAsciiHexDigit=function(t){return t>=97&&t<=102||t>=65&&t<=70||$(t)},t.isAsciiLetter=O,t.isDigit=$,t.isLowerCase=R,t.isNullOrUndefined=c,t.isUndefined=h,t.isUpperCase=N,t.isWhitespace=I,Object.defineProperty(t,"__esModule",{value:!0})}));
|
|
16
16
|
//# sourceMappingURL=magic-xpa-mscorelib.umd.min.js.map
|