"),i.close()),!i)throw Error("base not supported");var a=i.createElement("base");a.href=r,i.getElementsByTagName("head")[0].appendChild(a);var c=i.createElement("a");return c.href=t,c.href}finally{e&&e.parentNode.removeChild(e)}}());var i=s(t||""),a=this,c=new f(i.search?i.search.substring(1):null);function l(){var e=i.href.replace(/#$|\?$|\?(?=#)/g,"");i.href!==e&&(i.href=e)}function p(){c._setList(i.search?u(i.search.substring(1)):[]),c._update_steps()}return c._url_object=a,Object.defineProperties(a,{href:{get:function e(){return i.href},set:function e(t){i.href=t,l(),p()},enumerable:!0,configurable:!0},origin:{get:function e(){return"data:"===this.protocol.toLowerCase()?null:"origin"in i?i.origin:this.protocol+"//"+this.host},enumerable:!0,configurable:!0},protocol:{get:function e(){return i.protocol},set:function e(t){i.protocol=t},enumerable:!0,configurable:!0},username:{get:function e(){return i.username},set:function e(t){i.username=t},enumerable:!0,configurable:!0},password:{get:function e(){return i.password},set:function e(t){i.password=t},enumerable:!0,configurable:!0},host:{get:function e(){var t={"http:":/:80$/,"https:":/:443$/,"ftp:":/:21$/}[i.protocol];return t?i.host.replace(t,""):i.host},set:function e(t){i.host=t},enumerable:!0,configurable:!0},hostname:{get:function e(){return i.hostname},set:function e(t){i.hostname=t},enumerable:!0,configurable:!0},port:{get:function e(){return i.port},set:function e(t){i.port=t},enumerable:!0,configurable:!0},pathname:{get:function e(){return"/"!==i.pathname.charAt(0)?"/"+i.pathname:i.pathname},set:function e(t){i.pathname=t},enumerable:!0,configurable:!0},search:{get:function e(){return i.search},set:function e(t){i.search!==t&&(i.search=t,l(),p())},enumerable:!0,configurable:!0},searchParams:{get:function e(){return c},enumerable:!0,configurable:!0},hash:{get:function e(){return i.hash},set:function e(t){i.hash=t,l()},enumerable:!0,configurable:!0},toString:{value:function e(){return i.toString()},enumerable:!1,configurable:!0},valueOf:{value:function e(){return i.valueOf()},enumerable:!1,configurable:!0}}),a}if(Object.defineProperties(f.prototype,{append:{value:function e(t,e){this._list.push({name:t,value:e}),this._update_steps()},writable:!0,enumerable:!0,configurable:!0},delete:{value:function e(t){for(var r=0;r1?arguments[1]:t;this._list.forEach(function(e){r.call(n,e.value,e.name)})},writable:!0,enumerable:!0,configurable:!0},toString:{value:function e(){return c(this._list)},writable:!0,enumerable:!1,configurable:!0},sort:{value:function e(){for(var t=this.entries(),r=t.next(),n=[],o={};!r.done;){var i=r.value,a=i[0];n.push(a),Object.prototype.hasOwnProperty.call(o,a)||(o[a]=[]),o[a].push(i[1]),r=t.next()}n.sort();for(var c=0;c0?arguments[0]:t;if(null===n||n===t)return r;var o=w(r,"set");if(!j(o))throw new TypeError("WeakMap.prototype.set is not a function");try{for(var i=Y(n);;){var a=C(i);if(!1===a)return r;var c=F(a);if("object"!==x(c))try{throw new TypeError("Iterator value "+c+" is not an entry object")}catch(e){return B(i,e)}try{var l=w(c,"0"),u=w(c,"1");d(o,r,[l,u])}catch(e){return B(i,e)}}}catch(e){if(Array.isArray(n)||"[object Arguments]"===Object.prototype.toString.call(n)){var s,f=n.length;for(s=0;s-1};function l(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function u(e){return"string"!=typeof e&&(e=String(e)),e}function s(e){var r={next:function r(){var n=e.shift();return{done:n===t,value:n}}};return o.iterable&&(r[Symbol.iterator]=function(){return r}),r}function f(e){this.map={},_instanceof(e,f)?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function p(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function y(e){return new Promise(function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}})}function h(e){var t=new FileReader,r=y(t);return t.readAsArrayBuffer(e),r}function b(e){var t=new FileReader,r=y(t);return t.readAsText(e),r}function d(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n-1?t:e}function _(e,t){if(!_instanceof(this,_))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t=t||{};var r=t.body;if(_instanceof(e,_)){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new f(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,r||null==e._bodyInit||(r=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new f(t.headers)),this.method=w(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(r),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var n=/([?&])_=[^&]*/;if(n.test(this.url))this.url=this.url.replace(n,"$1_="+(new Date).getTime());else{var o=/\?/;this.url+=(o.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function j(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 S(e){var t=new f,r=e.replace(/\r?\n[\t ]+/g," ");return r.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();t.append(n,o)}}),t}function O(e,r){if(!_instanceof(this,O))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');r||(r={}),this.type="default",this.status=r.status===t?200:r.status,this.ok=this.status>=200&&this.status<300,this.statusText=r.statusText===t?"":""+r.statusText,this.headers=new f(r.headers),this.url=r.url||"",this._initBody(e)}_.prototype.clone=function(){return new _(this,{body:this._bodyInit})},m.call(_.prototype),m.call(O.prototype),O.prototype.clone=function(){return new O(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},O.error=function(){var e=new O(null,{status:0,statusText:""});return e.type="error",e};var E=[301,302,303,307,308];O.redirect=function(e,t){if(-1===E.indexOf(t))throw new RangeError("Invalid status code");return new O(null,{status:t,headers:{location:e}})},r.DOMException=n.DOMException;try{new r.DOMException}catch(e){r.DOMException=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack},r.DOMException.prototype=Object.create(Error.prototype),r.DOMException.prototype.constructor=r.DOMException}function T(e,t){return new Promise(function(i,a){var c=new _(e,t);if(c.signal&&c.signal.aborted)return a(new r.DOMException("Aborted","AbortError"));var l=new XMLHttpRequest;function s(){l.abort()}function p(e){try{return""===e&&n.location.href?n.location.href:e}catch(t){return e}}l.onload=function(){var e={status:l.status,statusText:l.statusText,headers:S(l.getAllResponseHeaders()||"")};e.url="responseURL"in l?l.responseURL:e.headers.get("X-Request-URL");var t="response"in l?l.response:l.responseText;setTimeout(function(){i(new O(t,e))},0)},l.onerror=function(){setTimeout(function(){a(new TypeError("Network request failed"))},0)},l.ontimeout=function(){setTimeout(function(){a(new TypeError("Network request failed"))},0)},l.onabort=function(){setTimeout(function(){a(new r.DOMException("Aborted","AbortError"))},0)},l.open(c.method,p(c.url),!0),"include"===c.credentials?l.withCredentials=!0:"omit"===c.credentials&&(l.withCredentials=!1),"responseType"in l&&(o.blob?l.responseType="blob":o.arrayBuffer&&c.headers.get("Content-Type")&&-1!==c.headers.get("Content-Type").indexOf("application/octet-stream")&&(l.responseType="arraybuffer")),t&&"object"===_type_of(t.headers)&&!_instanceof(t.headers,f)?Object.getOwnPropertyNames(t.headers).forEach(function(e){l.setRequestHeader(e,u(t.headers[e]))}):c.headers.forEach(function(e,t){l.setRequestHeader(t,e)}),c.signal&&(c.signal.addEventListener("abort",s),l.onreadystatechange=function(){4===l.readyState&&c.signal.removeEventListener("abort",s)}),l.send(void 0===c._bodyInit?null:c._bodyInit)})}T.polyfill=!0,n.fetch=T,n.Headers=f,n.Request=_,n.Response=O,r.Headers=f,r.Request=_,r.Response=O,r.fetch=T,Object.defineProperty(r,"__esModule",{value:!0})}),"AbortController"in e&&"function"==typeof e.AbortController||(y=this,h=function(e){function t(e){return t="function"==typeof Symbol&&"symbol"==_type_of(Symbol.iterator)?function(e){return void 0===e?"undefined":_type_of(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":_type_of(e)},t(e)}function r(e,t){if(!_instanceof(e,t))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var r,n=0;n