You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
!function(a,b){"object"==typeof exports?module.exports=b():"function"==typeof define&&define.amd?define(b):a.ajax=b()}(this,function(){function a(a,b){if("undefined"==typeof a)throw new TypeError("A URL is required for xhr-ajax");if("undefined"==typeof b&&"object"==typeof a&&a.url)b=a,a=b.url;else if("string"!=typeof a)throw new TypeError("Options must be an object for xhr-ajax");return b=b||{},new Promise(function(c,d){var e=new XMLHttpRequest;e.open(b.method||"GET",a,"undefined"==typeof b.async?!0:b.async,b.user,b.password),Object.keys(b.headers||{}).forEach(function(a){e.setRequestHeader(a,b.headers[a])}),e.onreadystatechange=function(){4===this.readyState&&(200===this.status?c(e):d(e))},e.send(b.data)})}return a});