@everymatrix/casino-tournaments-customize-page-controller 1.13.7 → 1.13.8

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.
@@ -581,9 +581,13 @@ e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"}
581
581
  Copyright (c) 2014, Yahoo! Inc. All rights reserved.
582
582
  Copyrights licensed under the New BSD License.
583
583
  See the accompanying LICENSE file for terms.
584
- */const jt={},Gt=(e,t,n)=>n?(t in jt||(jt[t]={}),e in jt[t]||(jt[t][e]=n),n):n,Vt=(e,t)=>{if(null==t)return;if(t in jt&&e in jt[t])return jt[t][e];const n=hn(t);for(let r=0;r<n.length;r++){const i=Zt(n[r],e);if(i)return Gt(e,t,i)}};let Wt;const qt=oe({});function Jt(e){return e in Wt}function Zt(e,t){if(!Jt(e))return null;const n=function(e){return Wt[e]||null}(e);return function(e,t){if(null==t)return;if(t in e)return e[t];const n=t.split(".");let r=e;for(let e=0;e<n.length;e++)if("object"==typeof r){if(e>0){const t=n.slice(e,n.length).join(".");if(t in r){r=r[t];break}}r=r[n[e]]}else r=void 0;return r}(n,t)}function Kt(e,...t){delete jt[e],qt.update((n=>(n[e]=pe.all([n[e]||{},...t]),n)))}ae([qt],(([e])=>Object.keys(e))),qt.subscribe((e=>Wt=e));const Xt={};function Qt(e){return Xt[e]}function en(e){return null!=e&&hn(e).some((e=>{var t;return null===(t=Qt(e))||void 0===t?void 0:t.size}))}const tn={};function nn(e){if(!en(e))return e in tn?tn[e]:Promise.resolve();const t=function(e){return hn(e).map((e=>{const t=Qt(e);return[e,t?[...t]:[]]})).filter((([,e])=>e.length>0))}(e);return tn[e]=Promise.all(t.map((([e,t])=>function(e,t){const n=Promise.all(t.map((t=>(function(e,t){Xt[e].delete(t),0===Xt[e].size&&delete Xt[e]}(e,t),t().then((e=>e.default||e))))));return n.then((t=>Kt(e,...t)))}(e,t)))).then((()=>{if(en(e))return nn(e);delete tn[e]})),tn[e]}function rn({locale:e,id:t}){console.warn(`[svelte-i18n] The message "${t}" was not found in "${hn(e).join('", "')}".${en(fn())?"\n\nNote: there are at least one loader still registered to this locale that wasn't executed.":""}`)}const on={fallbackLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};function an(){return on}function sn(e){const{formats:t,...n}=e,r=e.initialLocale||e.fallbackLocale;return n.warnOnMissingMessages&&(delete n.warnOnMissingMessages,null==n.handleMissingMessage?n.handleMissingMessage=rn:console.warn('[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.')),Object.assign(on,n,{initialLocale:r}),t&&("number"in t&&Object.assign(on.formats.number,t.number),"date"in t&&Object.assign(on.formats.date,t.date),"time"in t&&Object.assign(on.formats.time,t.time)),mn.set(r)}const ln=oe(!1);let un;const cn=oe(null);function dn(e){return e.split("-").map(((e,t,n)=>n.slice(0,t+1).join("-"))).reverse()}function hn(e,t=an().fallbackLocale){const n=dn(e);return t?[...new Set([...n,...dn(t)])]:n}function fn(){return null!=un?un:void 0}cn.subscribe((e=>{un=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)}));const mn={...cn,set:e=>{if(e&&function(e){if(null==e)return;const t=hn(e);for(let e=0;e<t.length;e++){const n=t[e];if(Jt(n))return n}}(e)&&en(e)){const{loadingDelay:t}=an();let n;return"undefined"!=typeof window&&null!=fn()&&t?n=window.setTimeout((()=>ln.set(!0)),t):ln.set(!0),nn(e).then((()=>{cn.set(e)})).finally((()=>{clearTimeout(n),ln.set(!1)}))}return cn.set(e)}},pn=e=>{const t=Object.create(null);return n=>{const r=JSON.stringify(n);return r in t?t[r]:t[r]=e(n)}},gn=(e,t)=>{const{formats:n}=an();if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},bn=pn((({locale:e,format:t,...n})=>{if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return t&&(n=gn("number",t)),new Intl.NumberFormat(e,n)})),yn=pn((({locale:e,format:t,...n})=>{if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return t?n=gn("date",t):0===Object.keys(n).length&&(n=gn("date","short")),new Intl.DateTimeFormat(e,n)})),wn=pn((({locale:e,format:t,...n})=>{if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return t?n=gn("time",t):0===Object.keys(n).length&&(n=gn("time","short")),new Intl.DateTimeFormat(e,n)})),Cn=pn(((e,t=fn())=>new Yt(e,t,an().formats,{ignoreTag:an().ignoreTag}))),vn=(e,t={})=>{var n,r,i,o;let a=t;"object"==typeof e&&(a=e,e=a.id);const{values:s,locale:l=fn(),default:u}=a;if(null==l)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=Vt(e,l);if(c){if("string"!=typeof c)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),c}else c=null!==(o=null!==(i=null===(r=(n=an()).handleMissingMessage)||void 0===r?void 0:r.call(n,{locale:l,id:e,defaultValue:u}))&&void 0!==i?i:u)&&void 0!==o?o:e;if(!s)return c;let d=c;try{d=Cn(c,l).format(s)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return d},Tn=(e,t)=>(({locale:e=fn(),...t}={})=>wn({locale:e,...t}))(t).format(e),xn=(e,t)=>(({locale:e=fn(),...t}={})=>yn({locale:e,...t}))(t).format(e),_n=(e,t)=>(({locale:e=fn(),...t}={})=>bn({locale:e,...t}))(t).format(e),kn=(e,t=fn())=>Vt(e,t),Sn=ae([mn,qt],(()=>vn));ae([mn],(()=>Tn)),ae([mn],(()=>xn)),ae([mn],(()=>_n)),ae([mn,qt],(()=>kn));var Pn="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==Pn&&Pn,En="URLSearchParams"in Pn,$n="Symbol"in Pn&&"iterator"in Symbol,Ln="FileReader"in Pn&&"Blob"in Pn&&function(){try{return new Blob,!0}catch(e){return!1}}(),Dn="FormData"in Pn,Mn="ArrayBuffer"in Pn;if(Mn)var Rn=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],An=ArrayBuffer.isView||function(e){return e&&Rn.indexOf(Object.prototype.toString.call(e))>-1};function Bn(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 Fn(e){return"string"!=typeof e&&(e=String(e)),e}
584
+ */const jt={},Gt=(e,t,n)=>n?(t in jt||(jt[t]={}),e in jt[t]||(jt[t][e]=n),n):n,Vt=(e,t)=>{if(null==t)return;if(t in jt&&e in jt[t])return jt[t][e];const n=hn(t);for(let r=0;r<n.length;r++){const i=Zt(n[r],e);if(i)return Gt(e,t,i)}};let Wt;const qt=oe({});function Jt(e){return e in Wt}function Zt(e,t){if(!Jt(e))return null;const n=function(e){return Wt[e]||null}(e);return function(e,t){if(null==t)return;if(t in e)return e[t];const n=t.split(".");let r=e;for(let e=0;e<n.length;e++)if("object"==typeof r){if(e>0){const t=n.slice(e,n.length).join(".");if(t in r){r=r[t];break}}r=r[n[e]]}else r=void 0;return r}(n,t)}function Kt(e,...t){delete jt[e],qt.update((n=>(n[e]=pe.all([n[e]||{},...t]),n)))}ae([qt],(([e])=>Object.keys(e))),qt.subscribe((e=>Wt=e));const Xt={};function Qt(e){return Xt[e]}function en(e){return null!=e&&hn(e).some((e=>{var t;return null===(t=Qt(e))||void 0===t?void 0:t.size}))}const tn={};function nn(e){if(!en(e))return e in tn?tn[e]:Promise.resolve();const t=function(e){return hn(e).map((e=>{const t=Qt(e);return[e,t?[...t]:[]]})).filter((([,e])=>e.length>0))}(e);return tn[e]=Promise.all(t.map((([e,t])=>function(e,t){const n=Promise.all(t.map((t=>(function(e,t){Xt[e].delete(t),0===Xt[e].size&&delete Xt[e]}(e,t),t().then((e=>e.default||e))))));return n.then((t=>Kt(e,...t)))}(e,t)))).then((()=>{if(en(e))return nn(e);delete tn[e]})),tn[e]}function rn({locale:e,id:t}){console.warn(`[svelte-i18n] The message "${t}" was not found in "${hn(e).join('", "')}".${en(fn())?"\n\nNote: there are at least one loader still registered to this locale that wasn't executed.":""}`)}const on={fallbackLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};function an(){return on}function sn(e){const{formats:t,...n}=e,r=e.initialLocale||e.fallbackLocale;return n.warnOnMissingMessages&&(delete n.warnOnMissingMessages,null==n.handleMissingMessage?n.handleMissingMessage=rn:console.warn('[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.')),Object.assign(on,n,{initialLocale:r}),t&&("number"in t&&Object.assign(on.formats.number,t.number),"date"in t&&Object.assign(on.formats.date,t.date),"time"in t&&Object.assign(on.formats.time,t.time)),mn.set(r)}const ln=oe(!1);let un;const cn=oe(null);function dn(e){return e.split("-").map(((e,t,n)=>n.slice(0,t+1).join("-"))).reverse()}function hn(e,t=an().fallbackLocale){const n=dn(e);return t?[...new Set([...n,...dn(t)])]:n}function fn(){return null!=un?un:void 0}cn.subscribe((e=>{un=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)}));const mn={...cn,set:e=>{if(e&&function(e){if(null==e)return;const t=hn(e);for(let e=0;e<t.length;e++){const n=t[e];if(Jt(n))return n}}(e)&&en(e)){const{loadingDelay:t}=an();let n;return"undefined"!=typeof window&&null!=fn()&&t?n=window.setTimeout((()=>ln.set(!0)),t):ln.set(!0),nn(e).then((()=>{cn.set(e)})).finally((()=>{clearTimeout(n),ln.set(!1)}))}return cn.set(e)}},pn=e=>{const t=Object.create(null);return n=>{const r=JSON.stringify(n);return r in t?t[r]:t[r]=e(n)}},gn=(e,t)=>{const{formats:n}=an();if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},bn=pn((({locale:e,format:t,...n})=>{if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return t&&(n=gn("number",t)),new Intl.NumberFormat(e,n)})),yn=pn((({locale:e,format:t,...n})=>{if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return t?n=gn("date",t):0===Object.keys(n).length&&(n=gn("date","short")),new Intl.DateTimeFormat(e,n)})),wn=pn((({locale:e,format:t,...n})=>{if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return t?n=gn("time",t):0===Object.keys(n).length&&(n=gn("time","short")),new Intl.DateTimeFormat(e,n)})),Cn=pn(((e,t=fn())=>new Yt(e,t,an().formats,{ignoreTag:an().ignoreTag}))),vn=(e,t={})=>{var n,r,i,o;let a=t;"object"==typeof e&&(a=e,e=a.id);const{values:s,locale:l=fn(),default:u}=a;if(null==l)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=Vt(e,l);if(c){if("string"!=typeof c)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),c}else c=null!==(o=null!==(i=null===(r=(n=an()).handleMissingMessage)||void 0===r?void 0:r.call(n,{locale:l,id:e,defaultValue:u}))&&void 0!==i?i:u)&&void 0!==o?o:e;if(!s)return c;let d=c;try{d=Cn(c,l).format(s)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return d},Tn=(e,t)=>(({locale:e=fn(),...t}={})=>wn({locale:e,...t}))(t).format(e),xn=(e,t)=>(({locale:e=fn(),...t}={})=>yn({locale:e,...t}))(t).format(e),_n=(e,t)=>(({locale:e=fn(),...t}={})=>bn({locale:e,...t}))(t).format(e),kn=(e,t=fn())=>Vt(e,t),Sn=ae([mn,qt],(()=>vn));ae([mn],(()=>Tn)),ae([mn],(()=>xn)),ae([mn],(()=>_n)),ae([mn,qt],(()=>kn));
585
+ /* eslint-disable no-prototype-builtins */
586
+ var Pn="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||
587
+ // eslint-disable-next-line no-undef
588
+ "undefined"!=typeof global&&global||{},En="URLSearchParams"in Pn,$n="Symbol"in Pn&&"iterator"in Symbol,Ln="FileReader"in Pn&&"Blob"in Pn&&function(){try{return new Blob,!0}catch(e){return!1}}(),Dn="FormData"in Pn,Mn="ArrayBuffer"in Pn;if(Mn)var Rn=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],An=ArrayBuffer.isView||function(e){return e&&Rn.indexOf(Object.prototype.toString.call(e))>-1};function Bn(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 Fn(e){return"string"!=typeof e&&(e=String(e)),e}
585
589
  // Build a destructive iterator for the value list
586
- function On(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return $n&&(t[Symbol.iterator]=function(){return t}),t}function zn(e){this.map={},e instanceof zn?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 Nn(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function Hn(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function Un(e){var t=new FileReader,n=Hn(t);return t.readAsArrayBuffer(e),n}function In(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function Yn(){return this.bodyUsed=!1,this._initBody=function(e){var t;
590
+ function On(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return $n&&(t[Symbol.iterator]=function(){return t}),t}function zn(e){this.map={},e instanceof zn?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){if(2!=e.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function Nn(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function Hn(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function Un(e){var t=new FileReader,n=Hn(t);return t.readAsArrayBuffer(e),n}function In(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function Yn(){return this.bodyUsed=!1,this._initBody=function(e){var t;
587
591
  /*
588
592
  fetch-mock wraps the Response object in an ES6 Proxy to
589
593
  provide useful test harness features such as flush. However, on
@@ -594,19 +598,20 @@ function On(e){var t={next:function(){var t=e.shift();return{done:void 0===t,val
594
598
  semantic of setting Request.bodyUsed in the constructor before
595
599
  _initBody is called.
596
600
  */
601
+ // eslint-disable-next-line no-self-assign
597
602
  this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:Ln&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:Dn&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:En&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():Mn&&Ln&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=In(e.buffer),
598
603
  // IE 10-11 can't handle a DataView body.
599
- this._bodyInit=new Blob([this._bodyArrayBuffer])):Mn&&(ArrayBuffer.prototype.isPrototypeOf(e)||An(e))?this._bodyArrayBuffer=In(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):En&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},Ln&&(this.blob=function(){var e=Nn(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=Nn(this);return e||(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(Un)}),this.text=function(){var e,t,n,r=Nn(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=Hn(t),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},Dn&&(this.formData=function(){return this.text().then(Vn)}),this.json=function(){return this.text().then(JSON.parse)},this}
604
+ this._bodyInit=new Blob([this._bodyArrayBuffer])):Mn&&(ArrayBuffer.prototype.isPrototypeOf(e)||An(e))?this._bodyArrayBuffer=In(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):En&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},Ln&&(this.blob=function(){var e=Nn(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=Nn(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}if(Ln)return this.blob().then(Un);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e,t,n,r,i,o=Nn(this);if(o)return o;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=Hn(t),r=/charset=([A-Za-z0-9_-]+)/.exec(e.type),i=r?r[1]:"utf-8",t.readAsText(e,i),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},Dn&&(this.formData=function(){return this.text().then(Vn)}),this.json=function(){return this.text().then(JSON.parse)},this}
600
605
  // HTTP methods whose capitalization should be normalized
601
- zn.prototype.append=function(e,t){e=Bn(e),t=Fn(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},zn.prototype.delete=function(e){delete this.map[Bn(e)]},zn.prototype.get=function(e){return e=Bn(e),this.has(e)?this.map[e]:null},zn.prototype.has=function(e){return this.map.hasOwnProperty(Bn(e))},zn.prototype.set=function(e,t){this.map[Bn(e)]=Fn(t)},zn.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},zn.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),On(e)},zn.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),On(e)},zn.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),On(e)},$n&&(zn.prototype[Symbol.iterator]=zn.prototype.entries);var jn=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function Gn(e,t){if(!(this instanceof Gn))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,r,i=(t=t||{}).body;if(e instanceof Gn){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new zn(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,i||null==e._bodyInit||(i=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 zn(t.headers)),this.method=(n=t.method||this.method||"GET",r=n.toUpperCase(),jn.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(i),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){
606
+ zn.prototype.append=function(e,t){e=Bn(e),t=Fn(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},zn.prototype.delete=function(e){delete this.map[Bn(e)]},zn.prototype.get=function(e){return e=Bn(e),this.has(e)?this.map[e]:null},zn.prototype.has=function(e){return this.map.hasOwnProperty(Bn(e))},zn.prototype.set=function(e,t){this.map[Bn(e)]=Fn(t)},zn.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},zn.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),On(e)},zn.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),On(e)},zn.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),On(e)},$n&&(zn.prototype[Symbol.iterator]=zn.prototype.entries);var jn=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function Gn(e,t){if(!(this instanceof Gn))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,r,i=(t=t||{}).body;if(e instanceof Gn){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new zn(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,i||null==e._bodyInit||(i=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 zn(t.headers)),this.method=(n=t.method||this.method||"GET",r=n.toUpperCase(),jn.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in Pn)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(i),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){
602
607
  // Search for a '_' parameter in the query string
603
608
  var o=/([?&])_=[^&]*/;if(o.test(this.url))
604
609
  // If it already exists then set the value with the current time
605
- this.url=this.url.replace(o,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function Vn(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}})),t}function Wn(e,t){if(!(this instanceof Wn))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new zn(t.headers),this.url=t.url||"",this._initBody(e)}Gn.prototype.clone=function(){return new Gn(this,{body:this._bodyInit})},Yn.call(Gn.prototype),Yn.call(Wn.prototype),Wn.prototype.clone=function(){return new Wn(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new zn(this.headers),url:this.url})},Wn.error=function(){var e=new Wn(null,{status:0,statusText:""});return e.type="error",e};var qn=[301,302,303,307,308];Wn.redirect=function(e,t){if(-1===qn.indexOf(t))throw new RangeError("Invalid status code");return new Wn(null,{status:t,headers:{location:e}})};var Jn=Pn.DOMException;try{new Jn}catch(e){(Jn=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),Jn.prototype.constructor=Jn}function Zn(e,t){return new Promise((function(n,r){var i=new Gn(e,t);if(i.signal&&i.signal.aborted)return r(new Jn("Aborted","AbortError"));var o=new XMLHttpRequest;function a(){o.abort()}o.onload=function(){var e,t,r={status:o.status,statusText:o.statusText,headers:(e=o.getAllResponseHeaders()||"",t=new zn,
610
+ this.url=this.url.replace(o,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function Vn(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}})),t}function Wn(e,t){if(!(this instanceof Wn))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 zn(t.headers),this.url=t.url||"",this._initBody(e)}Gn.prototype.clone=function(){return new Gn(this,{body:this._bodyInit})},Yn.call(Gn.prototype),Yn.call(Wn.prototype),Wn.prototype.clone=function(){return new Wn(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new zn(this.headers),url:this.url})},Wn.error=function(){var e=new Wn(null,{status:200,statusText:""});return e.status=0,e.type="error",e};var qn=[301,302,303,307,308];Wn.redirect=function(e,t){if(-1===qn.indexOf(t))throw new RangeError("Invalid status code");return new Wn(null,{status:t,headers:{location:e}})};var Jn=Pn.DOMException;try{new Jn}catch(e){(Jn=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),Jn.prototype.constructor=Jn}function Zn(e,t){return new Promise((function(n,r){var i=new Gn(e,t);if(i.signal&&i.signal.aborted)return r(new Jn("Aborted","AbortError"));var o=new XMLHttpRequest;function a(){o.abort()}if(o.onload=function(){var e=o.getAllResponseHeaders(),t=o.getResponseHeader("set-cookie");t&&(e=e.replace(t,t.replace(/\r?\n/g,", ")));var r,i,a={status:o.status,statusText:o.statusText,headers:(r=e||"",i=new zn,
606
611
  // Avoiding split via regex to work around a common IE11 bug with the core-js 3.6.0 regex polyfill
607
612
  // https://github.com/github/fetch/issues/748
608
613
  // https://github.com/zloirock/core-js/issues/751
609
- 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 n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();t.append(r,i)}})),t)};r.url="responseURL"in o?o.responseURL:r.headers.get("X-Request-URL");var i="response"in o?o.response:o.responseText;setTimeout((function(){n(new Wn(i,r))}),0)},o.onerror=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},o.ontimeout=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},o.onabort=function(){setTimeout((function(){r(new Jn("Aborted","AbortError"))}),0)},o.open(i.method,function(e){try{return""===e&&Pn.location.href?Pn.location.href:e}catch(t){return e}}(i.url),!0),"include"===i.credentials?o.withCredentials=!0:"omit"===i.credentials&&(o.withCredentials=!1),"responseType"in o&&(Ln?o.responseType="blob":Mn&&i.headers.get("Content-Type")&&-1!==i.headers.get("Content-Type").indexOf("application/octet-stream")&&(o.responseType="arraybuffer")),!t||"object"!=typeof t.headers||t.headers instanceof zn?i.headers.forEach((function(e,t){o.setRequestHeader(t,e)})):Object.getOwnPropertyNames(t.headers).forEach((function(e){o.setRequestHeader(e,Fn(t.headers[e]))})),i.signal&&(i.signal.addEventListener("abort",a),o.onreadystatechange=function(){
614
+ r.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 t=e.split(":"),n=t.shift().trim();if(n){var r=t.join(":").trim();try{i.append(n,r)}catch(e){console.warn("Response "+e.message)}}})),i)};a.url="responseURL"in o?o.responseURL:a.headers.get("X-Request-URL");var s="response"in o?o.response:o.responseText;setTimeout((function(){n(new Wn(s,a))}),0)},o.onerror=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},o.ontimeout=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},o.onabort=function(){setTimeout((function(){r(new Jn("Aborted","AbortError"))}),0)},o.open(i.method,function(e){try{return""===e&&Pn.location.href?Pn.location.href:e}catch(t){return e}}(i.url),!0),"include"===i.credentials?o.withCredentials=!0:"omit"===i.credentials&&(o.withCredentials=!1),"responseType"in o&&(Ln?o.responseType="blob":Mn&&(o.responseType="arraybuffer")),t&&"object"==typeof t.headers&&!(t.headers instanceof zn||Pn.Headers&&t.headers instanceof Pn.Headers)){var s=[];Object.getOwnPropertyNames(t.headers).forEach((function(e){s.push(Bn(e)),o.setRequestHeader(e,Fn(t.headers[e]))})),i.headers.forEach((function(e,t){-1===s.indexOf(t)&&o.setRequestHeader(t,e)}))}else i.headers.forEach((function(e,t){o.setRequestHeader(t,e)}));i.signal&&(i.signal.addEventListener("abort",a),o.onreadystatechange=function(){
610
615
  // DONE (success or failure)
611
616
  4===o.readyState&&i.signal.removeEventListener("abort",a)}),o.send(void 0===i._bodyInit?null:i._bodyInit)}))}Zn.polyfill=!0,Pn.fetch||(Pn.fetch=Zn,Pn.Headers=zn,Pn.Request=Gn,Pn.Response=Wn);var Kn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Xn(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return Qn(null==t&&n.path)}},n.exports),n.exports}function Qn(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}
612
617
  // the whatwg-fetch polyfill installs the fetch() function