'use strict';var $jscomp={scope:{}};$jscomp.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(c,f,p){if(p.get||p.set)throw new TypeError("ES3 does not support getters and setters.");c!=Array.prototype&&c!=Object.prototype&&(c[f]=p.value)};$jscomp.getGlobal=function(c){return"undefined"!=typeof window&&window===c?c:"undefined"!=typeof global&&null!=global?global:c};$jscomp.global=$jscomp.getGlobal(this);$jscomp.SYMBOL_PREFIX="jscomp_symbol_";
$jscomp.initSymbol=function(){$jscomp.initSymbol=function(){};$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol)};$jscomp.symbolCounter_=0;$jscomp.Symbol=function(c){return $jscomp.SYMBOL_PREFIX+(c||"")+$jscomp.symbolCounter_++};
$jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var c=$jscomp.global.Symbol.iterator;c||(c=$jscomp.global.Symbol.iterator=$jscomp.global.Symbol("iterator"));"function"!=typeof Array.prototype[c]&&$jscomp.defineProperty(Array.prototype,c,{configurable:!0,writable:!0,value:function(){return $jscomp.arrayIterator(this)}});$jscomp.initSymbolIterator=function(){}};$jscomp.arrayIterator=function(c){var f=0;return $jscomp.iteratorPrototype(function(){return f<c.length?{done:!1,value:c[f++]}:{done:!0}})};
$jscomp.iteratorPrototype=function(c){$jscomp.initSymbolIterator();c={next:c};c[$jscomp.global.Symbol.iterator]=function(){return this};return c};
(function(c,f){"object"===typeof exports&&"undefined"!==typeof module?f(exports):"function"===typeof define&&define.amd?define(["exports"],f):f(c.WHATWGFetch={})})(this,function(c){function f(a){"string"!==typeof a&&(a=String(a));if(/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(a)||""===a)throw new TypeError('Invalid character in header field name: "'+a+'"');return a.toLowerCase()}function p(a){"string"!==typeof a&&(a=String(a));return a}function r(a){var b={next:function(){var b=a.shift();return{done:void 0===
b,value:b}}};k.iterable&&($jscomp.initSymbol(),$jscomp.initSymbolIterator(),b[Symbol.iterator]=function(){return b});return b}function e(a){this.map={};a instanceof e?a.forEach(function(a,g){this.append(g,a)},this):Array.isArray(a)?a.forEach(function(a){this.append(a[0],a[1])},this):a&&Object.getOwnPropertyNames(a).forEach(function(b){this.append(b,a[b])},this)}function t(a){if(a.bodyUsed)return Promise.reject(new TypeError("Already read"));a.bodyUsed=!0}function v(a){return new Promise(function(b,
g){a.onload=function(){b(a.result)};a.onerror=function(){g(a.error)}})}function y(a){var b=new FileReader,g=v(b);b.readAsArrayBuffer(a);return g}function z(a){a=new Uint8Array(a);for(var b=Array(a.length),g=0;g<a.length;g++)b[g]=String.fromCharCode(a[g]);return b.join("")}function w(a){if(a.slice)return a.slice(0);var b=new Uint8Array(a.byteLength);b.set(new Uint8Array(a));return b.buffer}function x(){this.bodyUsed=!1;this._initBody=function(a){this.bodyUsed=this.bodyUsed;(this._bodyInit=a)?"string"===
typeof a?this._bodyText=a:k.blob&&Blob.prototype.isPrototypeOf(a)?this._bodyBlob=a:k.formData&&FormData.prototype.isPrototypeOf(a)?this._bodyFormData=a:k.searchParams&&URLSearchParams.prototype.isPrototypeOf(a)?this._bodyText=a.toString():k.arrayBuffer&&k.blob&&a&&DataView.prototype.isPrototypeOf(a)?(this._bodyArrayBuffer=w(a.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):k.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(a)||A(a))?this._bodyArrayBuffer=w(a):this._bodyText=a=Object.prototype.toString.call(a):
this._bodyText="";var b=this.headers.get("content-type");b?b.includes("json")&&"string"!==typeof this._bodyInit&&(this._bodyInit=this._bodyText):"string"===typeof a?this.headers.set("content-type","text/plain;charset\x3dUTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):k.searchParams&&URLSearchParams.prototype.isPrototypeOf(a)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset\x3dUTF-8")};k.blob&&(this.blob=function(){var a=t(this);
if(a)return a;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var a=t(this);return a?a:ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+
this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer)}return this.blob().then(y)});this.text=function(){var a=t(this);if(a)return a;if(this._bodyBlob){var a=this._bodyBlob,b=new FileReader,g=v(b);b.readAsText(a);return g}if(this._bodyArrayBuffer)return Promise.resolve(z(this._bodyArrayBuffer));if(this._bodyFormData)throw Error("could not read FormData body as text");return Promise.resolve(this._bodyText)};k.formData&&(this.formData=function(){return this.text().then(B)});this.json=
function(){return this.text().then(JSON.parse)};return this}function n(a,b){if(!(this instanceof n))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');b=b||{};var g=b.body;if(a instanceof n){if(a.bodyUsed)throw new TypeError("Already read");this.url=a.url;this.credentials=a.credentials;b.headers||(this.headers=new e(a.headers));this.method=a.method;this.mode=a.mode;this.signal=a.signal;g||null==a._bodyInit||(g=a._bodyInit,a.bodyUsed=!0)}else this.url=
String(a);this.credentials=b.credentials||this.credentials||"same-origin";if(b.headers||!this.headers)this.headers=new e(b.headers);a=b.method||this.method||"GET";var c=a.toUpperCase();this.method=-1<C.indexOf(c)?c:a;this.mode=b.mode||this.mode||null;this.signal=b.signal||this.signal;this.referrer=null;if(("GET"===this.method||"HEAD"===this.method)&&g)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(g);if("GET"===this.method||"HEAD"===this.method)if("no-store"===b.cache||
"no-cache"===b.cache)b=/([?&])_=[^&]*/,b.test(this.url)?this.url=this.url.replace(b,"$1_\x3d"+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"\x26":"?")+"_\x3d"+(new Date).getTime()}function B(a){var b=new FormData;a.trim().split("\x26").forEach(function(a){if(a){var c=a.split("\x3d");a=c.shift().replace(/\+/g," ");c=c.join("\x3d").replace(/\+/g," ");b.append(decodeURIComponent(a),decodeURIComponent(c))}});return b}function D(a){var b=new e;a.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(a){return 0===
a.indexOf("\n")?a.substr(1,a.length):a}).forEach(function(a){var c=a.split(":");if(a=c.shift().trim())c=c.join(":").trim(),b.append(a,c)});return b}function m(a,b){if(!(this instanceof m))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');b||(b={});this.type="default";this.status=void 0===b.status?200:b.status;this.ok=200<=this.status&&300>this.status;this.statusText=void 0===b.statusText?"":""+b.statusText;this.headers=new e(b.headers);
this.url=b.url||"";this._initBody(a)}function u(a,b){return new Promise(function(g,f){function q(){d.abort()}var l=new n(a,b);if(l.signal&&l.signal.aborted)return f(new c.DOMException("Aborted","AbortError"));var d=new XMLHttpRequest;d.onload=function(){var a={status:d.status,statusText:d.statusText,headers:D(d.getAllResponseHeaders()||"")};a.url="responseURL"in d?d.responseURL:a.headers.get("X-Request-URL");var b="response"in d?d.response:d.responseText;setTimeout(function(){g(new m(b,a))},0)};d.onerror=
function(){setTimeout(function(){f(new TypeError("Network request failed"))},0)};d.ontimeout=function(){setTimeout(function(){f(new TypeError("Network request failed"))},0)};d.onabort=function(){setTimeout(function(){f(new c.DOMException("Aborted","AbortError"))},0)};d.open(l.method,function(a){try{return""===a&&h.location.href?h.location.href:a}catch(I){return a}}(l.url),!0);"include"===l.credentials?d.withCredentials=!0:"omit"===l.credentials&&(d.withCredentials=!1);"responseType"in d&&(k.blob?
d.responseType="blob":k.arrayBuffer&&l.headers.get("Content-Type")&&-1!==l.headers.get("Content-Type").indexOf("application/octet-stream")&&(d.responseType="arraybuffer"));!b||"object"!==typeof b.headers||b.headers instanceof e?l.headers.forEach(function(a,b){d.setRequestHeader(b,a)}):Object.getOwnPropertyNames(b.headers).forEach(function(a){d.setRequestHeader(a,p(b.headers[a]))});l.signal&&(l.signal.addEventListener("abort",q),d.onreadystatechange=function(){4===d.readyState&&l.signal.removeEventListener("abort",
q)});d.send("undefined"===typeof l._bodyInit?null:l._bodyInit)})}var h="undefined"!==typeof globalThis&&globalThis||"undefined"!==typeof self&&self||"undefined"!==typeof h&&h;$jscomp.initSymbol();var E="URLSearchParams"in h,F="Symbol"in h&&"iterator"in Symbol,q;if(q="FileReader"in h&&"Blob"in h)try{new Blob,q=!0}catch(a){q=!1}var k={searchParams:E,iterable:F,blob:q,formData:"FormData"in h,arrayBuffer:"ArrayBuffer"in h};if(k.arrayBuffer)var G="[object Int8Array];[object Uint8Array];[object Uint8ClampedArray];[object Int16Array];[object Uint16Array];[object Int32Array];[object Uint32Array];[object Float32Array];[object Float64Array]".split(";"),
A=ArrayBuffer.isView||function(a){return a&&-1<G.indexOf(Object.prototype.toString.call(a))};e.prototype.append=function(a,b){a=f(a);b=p(b);var c=this.map[a];this.map[a]=c?c+", "+b:b};e.prototype["delete"]=function(a){delete this.map[f(a)]};e.prototype.get=function(a){a=f(a);return this.has(a)?this.map[a]:null};e.prototype.has=function(a){return this.map.hasOwnProperty(f(a))};e.prototype.set=function(a,b){this.map[f(a)]=p(b)};e.prototype.forEach=function(a,b){for(var c in this.map)this.map.hasOwnProperty(c)&&
a.call(b,this.map[c],c,this)};e.prototype.keys=function(){var a=[];this.forEach(function(b,c){a.push(c)});return r(a)};e.prototype.values=function(){var a=[];this.forEach(function(b){a.push(b)});return r(a)};e.prototype.entries=function(){var a=[];this.forEach(function(b,c){a.push([c,b])});return r(a)};k.iterable&&($jscomp.initSymbol(),$jscomp.initSymbolIterator(),e.prototype[Symbol.iterator]=e.prototype.entries);var C="DELETE GET HEAD OPTIONS POST PUT".split(" ");n.prototype.clone=function(){return new n(this,
{body:this._bodyInit})};x.call(n.prototype);x.call(m.prototype);m.prototype.clone=function(){return new m(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new e(this.headers),url:this.url})};m.error=function(){var a=new m(null,{status:0,statusText:""});a.type="error";return a};var H=[301,302,303,307,308];m.redirect=function(a,b){if(-1===H.indexOf(b))throw new RangeError("Invalid status code");return new m(null,{status:b,headers:{location:a}})};c.DOMException=h.DOMException;try{new c.DOMException}catch(a){c.DOMException=
function(a,c){this.message=a;this.name=c;this.stack=Error(a).stack},c.DOMException.prototype=Object.create(Error.prototype),c.DOMException.prototype.constructor=c.DOMException}u.polyfill=!0;h.fetch||(h.fetch=u,h.Headers=e,h.Request=n,h.Response=m);c.Headers=e;c.Request=n;c.Response=m;c.fetch=u;Object.defineProperty(c,"__esModule",{value:!0})});
//# sourceMappingURL=fetch.min.js.map