@everymatrix/casino-collections-providers 1.13.9 → 1.13.11
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.
@@ -605,11 +605,11 @@ vr.prototype.append=function(e,t){e=yr(e),t=gr(t);var r=this.map[e];this.map[e]=
|
|
605
605
|
// Search for a '_' parameter in the query string
|
606
606
|
var i=/([?&])_=[^&]*/;if(i.test(this.url))
|
607
607
|
// If it already exists then set the value with the current time
|
608
|
-
this.url=this.url.replace(i,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function Hr(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(o))}})),t}function Cr(e,t){if(!(this instanceof Cr))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new vr(t.headers),this.url=t.url||"",this._initBody(e)}Br.prototype.clone=function(){return new Br(this,{body:this._bodyInit})},Ar.call(Br.prototype),Ar.call(Cr.prototype),Cr.prototype.clone=function(){return new Cr(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new vr(this.headers),url:this.url})},Cr.error=function(){var e=new Cr(null,{status:200,statusText:""});return e.status=0,e.type="error",e};var Pr=[301,302,303,307,308];Cr.redirect=function(e,t){if(-1===Pr.indexOf(t))throw new RangeError("Invalid status code");return new Cr(null,{status:t,headers:{location:e}})};var Lr=lr.DOMException;try{new Lr}catch(e){(Lr=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack}).prototype=Object.create(Error.prototype),Lr.prototype.constructor=Lr}function Or(e,t){return new Promise((function(r,n){var o=new Br(e,t);if(o.signal&&o.signal.aborted)return n(new Lr("Aborted","AbortError"));var i=new XMLHttpRequest;function s(){i.abort()}if(i.onload=function(){var e
|
608
|
+
this.url=this.url.replace(i,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function Hr(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(o))}})),t}function Cr(e,t){if(!(this instanceof Cr))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new vr(t.headers),this.url=t.url||"",this._initBody(e)}Br.prototype.clone=function(){return new Br(this,{body:this._bodyInit})},Ar.call(Br.prototype),Ar.call(Cr.prototype),Cr.prototype.clone=function(){return new Cr(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new vr(this.headers),url:this.url})},Cr.error=function(){var e=new Cr(null,{status:200,statusText:""});return e.status=0,e.type="error",e};var Pr=[301,302,303,307,308];Cr.redirect=function(e,t){if(-1===Pr.indexOf(t))throw new RangeError("Invalid status code");return new Cr(null,{status:t,headers:{location:e}})};var Lr=lr.DOMException;try{new Lr}catch(e){(Lr=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack}).prototype=Object.create(Error.prototype),Lr.prototype.constructor=Lr}function Or(e,t){return new Promise((function(r,n){var o=new Br(e,t);if(o.signal&&o.signal.aborted)return n(new Lr("Aborted","AbortError"));var i=new XMLHttpRequest;function s(){i.abort()}if(i.onload=function(){var e,t,n={status:i.status,statusText:i.statusText,headers:(e=i.getAllResponseHeaders()||"",t=new vr,
|
609
609
|
// Avoiding split via regex to work around a common IE11 bug with the core-js 3.6.0 regex polyfill
|
610
610
|
// https://github.com/github/fetch/issues/748
|
611
611
|
// https://github.com/zloirock/core-js/issues/751
|
612
|
-
|
612
|
+
e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var r=e.split(":"),n=r.shift().trim();if(n){var o=r.join(":").trim();try{t.append(n,o)}catch(e){console.warn("Response "+e.message)}}})),t)};n.url="responseURL"in i?i.responseURL:n.headers.get("X-Request-URL");var o="response"in i?i.response:i.responseText;setTimeout((function(){r(new Cr(o,n))}),0)},i.onerror=function(){setTimeout((function(){n(new TypeError("Network request failed"))}),0)},i.ontimeout=function(){setTimeout((function(){n(new TypeError("Network request failed"))}),0)},i.onabort=function(){setTimeout((function(){n(new Lr("Aborted","AbortError"))}),0)},i.open(o.method,function(e){try{return""===e&&lr.location.href?lr.location.href:e}catch(t){return e}}(o.url),!0),"include"===o.credentials?i.withCredentials=!0:"omit"===o.credentials&&(i.withCredentials=!1),"responseType"in i&&(hr?i.responseType="blob":pr&&(i.responseType="arraybuffer")),t&&"object"==typeof t.headers&&!(t.headers instanceof vr||lr.Headers&&t.headers instanceof lr.Headers)){var a=[];Object.getOwnPropertyNames(t.headers).forEach((function(e){a.push(yr(e)),i.setRequestHeader(e,gr(t.headers[e]))})),o.headers.forEach((function(e,t){-1===a.indexOf(t)&&i.setRequestHeader(t,e)}))}else o.headers.forEach((function(e,t){i.setRequestHeader(t,e)}));o.signal&&(o.signal.addEventListener("abort",s),i.onreadystatechange=function(){
|
613
613
|
// DONE (success or failure)
|
614
614
|
4===i.readyState&&o.signal.removeEventListener("abort",s)}),i.send(void 0===o._bodyInit?null:o._bodyInit)}))}Or.polyfill=!0,lr.fetch||(lr.fetch=Or,lr.Headers=vr,lr.Request=Br,lr.Response=Cr),
|
615
615
|
// the whatwg-fetch polyfill installs the fetch() function
|