@myinterview/widget-react 1.1.66-development-c2b240e → 1.1.67-development-9de5afe

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.
package/dist/cjs/index.js CHANGED
@@ -1299,7 +1299,7 @@ function c(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r
1299
1299
  *
1300
1300
  * This source code is licensed under the MIT license found in the
1301
1301
  * LICENSE file in the root directory of this source tree.
1302
- */!function(e){"production"===process.env.NODE_ENV?e.exports=function(){if(R)return I;R=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,d=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,i=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,s=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,$=e?Symbol.for("react.block"):60121,h=e?Symbol.for("react.fundamental"):60117,m=e?Symbol.for("react.responder"):60118,g=e?Symbol.for("react.scope"):60119;function v(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:switch(e=e.type){case l:case c:case r:case o:case d:case s:return e;default:switch(e=e&&e.$$typeof){case i:case u:case y:case p:case a:return e;default:return f}}case n:return f}}}function b(e){return v(e)===c}return I.AsyncMode=l,I.ConcurrentMode=c,I.ContextConsumer=i,I.ContextProvider=a,I.Element=t,I.ForwardRef=u,I.Fragment=r,I.Lazy=y,I.Memo=p,I.Portal=n,I.Profiler=o,I.StrictMode=d,I.Suspense=s,I.isAsyncMode=function(e){return b(e)||v(e)===l},I.isConcurrentMode=b,I.isContextConsumer=function(e){return v(e)===i},I.isContextProvider=function(e){return v(e)===a},I.isElement=function(e){return "object"==typeof e&&null!==e&&e.$$typeof===t},I.isForwardRef=function(e){return v(e)===u},I.isFragment=function(e){return v(e)===r},I.isLazy=function(e){return v(e)===y},I.isMemo=function(e){return v(e)===p},I.isPortal=function(e){return v(e)===n},I.isProfiler=function(e){return v(e)===o},I.isStrictMode=function(e){return v(e)===d},I.isSuspense=function(e){return v(e)===s},I.isValidElementType=function(e){return "string"==typeof e||"function"==typeof e||e===r||e===c||e===o||e===d||e===s||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===p||e.$$typeof===a||e.$$typeof===i||e.$$typeof===u||e.$$typeof===h||e.$$typeof===m||e.$$typeof===g||e.$$typeof===$)},I.typeOf=v,I}():e.exports=(B||(B=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,d=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,i=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,s=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,$=e?Symbol.for("react.block"):60121,h=e?Symbol.for("react.fundamental"):60117,m=e?Symbol.for("react.responder"):60118,g=e?Symbol.for("react.scope"):60119;function v(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:var $=e.type;switch($){case l:case c:case r:case o:case d:case s:return $;default:var h=$&&$.$$typeof;switch(h){case i:case u:case y:case p:case a:return h;default:return f}}case n:return f}}}var b=l,w=c,C=i,P=a,E=t,S=u,O=r,A=y,k=p,M=n,j=o,_=d,x=s,T=!1;function R(e){return v(e)===c}V.AsyncMode=b,V.ConcurrentMode=w,V.ContextConsumer=C,V.ContextProvider=P,V.Element=E,V.ForwardRef=S,V.Fragment=O,V.Lazy=A,V.Memo=k,V.Portal=M,V.Profiler=j,V.StrictMode=_,V.Suspense=x,V.isAsyncMode=function(e){return T||(T=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),R(e)||v(e)===l},V.isConcurrentMode=R,V.isContextConsumer=function(e){return v(e)===i},V.isContextProvider=function(e){return v(e)===a},V.isElement=function(e){return "object"==typeof e&&null!==e&&e.$$typeof===t},V.isForwardRef=function(e){return v(e)===u},V.isFragment=function(e){return v(e)===r},V.isLazy=function(e){return v(e)===y},V.isMemo=function(e){return v(e)===p},V.isPortal=function(e){return v(e)===n},V.isProfiler=function(e){return v(e)===o},V.isStrictMode=function(e){return v(e)===d},V.isSuspense=function(e){return v(e)===s},V.isValidElementType=function(e){return "string"==typeof e||"function"==typeof e||e===r||e===c||e===o||e===d||e===s||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===p||e.$$typeof===a||e.$$typeof===i||e.$$typeof===u||e.$$typeof===h||e.$$typeof===m||e.$$typeof===g||e.$$typeof===$)},V.typeOf=v;}()),V);}(N);var H=N.exports,U={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},z={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},G={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},F={};function Z(e){return H.isMemo(e)?G:F[e.$$typeof]||U}F[H.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},F[H.Memo]=G;var Q=Object.defineProperty,K=Object.getOwnPropertyNames,W=Object.getOwnPropertySymbols,Y=Object.getOwnPropertyDescriptor,J=Object.getPrototypeOf,q=Object.prototype;var X=function e(t,n,r){if("string"!=typeof n){if(q){var d=J(n);d&&d!==q&&e(t,d,r);}var o=K(n);W&&(o=o.concat(W(n)));for(var a=Z(t),i=Z(n),l=0;l<o.length;++l){var c=o[l];if(!(z[c]||r&&r[c]||i&&i[c]||a&&a[c])){var u=Y(n,c);try{Q(t,c,u);}catch(e){}}}}return t};function ee(){return (ee=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e}).apply(this,arguments)}var te=function(e,t){for(var n=[e[0]],r=0,d=t.length;r<d;r+=1)n.push(t[r],e[r+1]);return n},ne=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!A.exports.typeOf(e)},re=Object.freeze([]),de=Object.freeze({});function oe(e){return "function"==typeof e}function ae(e){return "production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function ie(e){return e&&"string"==typeof e.styledComponentId}var le="undefined"!=typeof process&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",ce="undefined"!=typeof window&&"HTMLElement"in window,ue=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV),se="production"!==process.env.NODE_ENV?{1:"Cannot create styled-component for component: %s.\n\n",2:"Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n",3:"Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",4:"The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n",5:"The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n",6:"Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n",7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:'ThemeProvider: Please make your "theme" prop an object.\n\n',9:"Missing document `<head>`\n\n",10:"Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n",11:"_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n",12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:"%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n",14:'ThemeProvider: "theme" prop is required.\n\n',15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:"Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n",17:"CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n"}:{};function fe(){for(var e=arguments.length<=0?void 0:arguments[0],t=[],n=1,r=arguments.length;n<r;n+=1)t.push(n<0||arguments.length<=n?void 0:arguments[n]);return t.forEach((function(t){e=e.replace(/%[a-z]/,t);})),e}function pe(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw "production"===process.env.NODE_ENV?new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):"")):new Error(fe.apply(void 0,[se[e]].concat(n)).trim())}var ye=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e;}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,d=r;e>=d;)(d<<=1)<0&&pe(16,""+e);this.groupSizes=new Uint32Array(d),this.groupSizes.set(n),this.length=d;for(var o=r;o<d;o++)this.groupSizes[o]=0;}for(var a=this.indexOfGroup(e+1),i=0,l=t.length;i<l;i++)this.tag.insertRule(a,t[i])&&(this.groupSizes[e]++,a++);},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var d=n;d<r;d++)this.tag.deleteRule(n);}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),d=r+n,o=r;o<d;o++)t+=this.tag.getRule(o)+"/*!sc*/\n";return t},e}(),$e=new Map,he=new Map,me=1,ge=function(e){if($e.has(e))return $e.get(e);for(;he.has(me);)me++;var t=me++;return "production"!==process.env.NODE_ENV&&((0|t)<0||t>1<<30)&&pe(16,""+t),$e.set(e,t),he.set(t,e),t},ve=function(e){return he.get(e)},be=function(e,t){t>=me&&(me=t+1),$e.set(e,t),he.set(t,e);},we="style["+le+'][data-styled-version="5.3.6"]',Ce=new RegExp("^"+le+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),Pe=function(e,t,n){for(var r,d=n.split(","),o=0,a=d.length;o<a;o++)(r=d[o])&&e.registerName(t,r);},Ee=function(e,t){for(var n=(t.textContent||"").split("/*!sc*/\n"),r=[],d=0,o=n.length;d<o;d++){var a=n[d].trim();if(a){var i=a.match(Ce);if(i){var l=0|parseInt(i[1],10),c=i[2];0!==l&&(be(c,l),Pe(e,c,i[3]),e.getTag().insertRules(l,r)),r.length=0;}else r.push(a);}}},Se=function(e){var t=document.head,n=e||t,r=document.createElement("style"),d=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(le))return r}}(n),o=void 0!==d?d.nextSibling:null;r.setAttribute(le,"active"),r.setAttribute("data-styled-version","5.3.6");var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&r.setAttribute("nonce",a),n.insertBefore(r,o),r},Oe=function(){function e(e){var t=this.element=Se(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var d=t[n];if(d.ownerNode===e)return d}pe(17);}(t),this.length=0;}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return !1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--;},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),Ae=function(){function e(e){var t=this.element=Se(e);this.nodes=t.childNodes,this.length=0;}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return !1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--;},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),ke=function(){function e(e){this.rules=[],this.length=0;}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--;},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),Me=ce,je={isServer:!ce,useCSSOMInjection:!ue},_e$1=function(){function e(e,t,n){void 0===e&&(e=de),void 0===t&&(t={}),this.options=ee({},je,{},e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&ce&&Me&&(Me=!1,function(e){for(var t=document.querySelectorAll(we),n=0,r=t.length;n<r;n++){var d=t[n];d&&"active"!==d.getAttribute(le)&&(Ee(e,d),d.parentNode&&d.parentNode.removeChild(d));}}(this));}e.registerId=function(e){return ge(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(ee({},this.options,{},t),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(n=(t=this.options).isServer,r=t.useCSSOMInjection,d=t.target,e=n?new ke(d):r?new Oe(d):new Ae(d),new ye(e)));var e,t,n,r,d;},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(ge(e),this.names.has(e))this.names.get(e).add(t);else {var n=new Set;n.add(t),this.names.set(e,n);}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(ge(e),n);},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear();},t.clearRules=function(e){this.getTag().clearGroup(ge(e)),this.clearNames(e);},t.clearTag=function(){this.tag=void 0;},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",d=0;d<n;d++){var o=ve(d);if(void 0!==o){var a=e.names.get(o),i=t.getGroup(d);if(a&&i&&a.size){var l=le+".g"+d+'[id="'+o+'"]',c="";void 0!==a&&a.forEach((function(e){e.length>0&&(c+=e+",");})),r+=""+i+l+'{content:"'+c+'"}/*!sc*/\n';}}}return r}(this)},e}(),xe=/(a)(d)/gi,Te=function(e){return String.fromCharCode(e+(e>25?39:97))};function Re(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=Te(t%52)+n;return (Te(t%52)+n).replace(xe,"$1-$2")}var Le=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},De=function(e){return Le(5381,e)};var Ne=De("5.3.6"),Ie=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===n||n.isStatic)&&function(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(oe(n)&&!ie(n))return !1}return !0}(e),this.componentId=t,this.baseHash=Le(Ne,t),this.baseStyle=n,_e$1.registerId(t);}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.componentId,d=[];if(this.baseStyle&&d.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))d.push(this.staticRulesId);else {var o=qe(this.rules,e,t,n).join(""),a=Re(Le(this.baseHash,o)>>>0);if(!t.hasNameForId(r,a)){var i=n(o,"."+a,void 0,r);t.insertRules(r,a,i);}d.push(a),this.staticRulesId=a;}else {for(var l=this.rules.length,c=Le(this.baseHash,n.hash),u="",s=0;s<l;s++){var f=this.rules[s];if("string"==typeof f)u+=f,"production"!==process.env.NODE_ENV&&(c=Le(c,f+s));else if(f){var p=qe(f,e,t,n),y=Array.isArray(p)?p.join(""):p;c=Le(c,y+s),u+=y;}}if(u){var $=Re(c>>>0);if(!t.hasNameForId(r,$)){var h=n(u,"."+$,void 0,r);t.insertRules(r,$,h);}d.push($);}}return d.join(" ")},e}(),Be=/^\s*\/\/.*$/gm,Ve=[":","[",".","#"];var He=React__default["default"].createContext();He.Consumer;var Ue=React__default["default"].createContext(),ze=(Ue.Consumer,new _e$1),Ge=function(e){var t,n,r,d,o=void 0===e?de:e,a=o.options,i=void 0===a?de:a,l=o.plugins,c=void 0===l?re:l,u=new _(i),s=[],f=function(e){function t(t){if(t)try{e(t+"}");}catch(e){}}return function(n,r,d,o,a,i,l,c,u,s){switch(n){case 1:if(0===u&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===c)return r+"/*|*/";break;case 3:switch(c){case 102:case 112:return e(d[0]+r),"";default:return r+(0===s?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t);}}}((function(e){s.push(e);})),p=function(e,r,o){return 0===r&&-1!==Ve.indexOf(o[n.length])||o.match(d)?e:"."+t};function y(e,o,a,i){void 0===i&&(i="&");var l=e.replace(Be,""),c=o&&a?a+" "+o+" { "+l+" }":l;return t=i,n=o,r=new RegExp("\\"+n+"\\b","g"),d=new RegExp("(\\"+n+"\\b){2,}"),u(a||!o?"":o,c)}return u.use([].concat(c,[function(e,t,d){2===e&&d.length&&d[0].lastIndexOf(n)>0&&(d[0]=d[0].replace(r,p));},f,function(e){if(-2===e){var t=s;return s=[],t}}])),y.hash=c.length?c.reduce((function(e,t){return t.name||pe(15),Le(e,t.name)}),5381).toString():"",y}();var Fe=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Ge);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"));},this.toString=function(){return pe(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t;}return e.prototype.getName=function(e){return void 0===e&&(e=Ge),this.name+e.hash},e}(),Ze=/([A-Z])/,Qe=/([A-Z])/g,Ke=/^ms-/,We=function(e){return "-"+e.toLowerCase()};function Ye(e){return Ze.test(e)?e.replace(Qe,We).replace(Ke,"-ms-"):e}var Je=function(e){return null==e||!1===e||""===e};function qe(e,t,n,r){if(Array.isArray(e)){for(var d,o=[],a=0,i=e.length;a<i;a+=1)""!==(d=qe(e[a],t,n,r))&&(Array.isArray(d)?o.push.apply(o,d):o.push(d));return o}if(Je(e))return "";if(ie(e))return "."+e.styledComponentId;if(oe(e)){if("function"!=typeof(c=e)||c.prototype&&c.prototype.isReactComponent||!t)return e;var l=e(t);return "production"!==process.env.NODE_ENV&&A.exports.isElement(l)&&console.warn(ae(e)+" is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details."),qe(l,t,n,r)}var c;return e instanceof Fe?n?(e.inject(n,r),e.getName(r)):e:ne(e)?function e(t,n){var r,d,o=[];for(var a in t)t.hasOwnProperty(a)&&!Je(t[a])&&(Array.isArray(t[a])&&t[a].isCss||oe(t[a])?o.push(Ye(a)+":",t[a],";"):ne(t[a])?o.push.apply(o,e(t[a],a)):o.push(Ye(a)+": "+(r=a,(null==(d=t[a])||"boolean"==typeof d||""===d?"":"number"!=typeof d||0===d||r in x?String(d).trim():d+"px")+";")));return n?[n+" {"].concat(o,["}"]):o}(e):e.toString()}var Xe=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function et(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return oe(e)||ne(e)?Xe(qe(te(re,[e].concat(n)))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:Xe(qe(te(e,n)))}var tt=/invalid hook call/i,nt=new Set,rt=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,dt=/(^-|-$)/g;function ot(e){return e.replace(rt,"-").replace(dt,"")}function at(e){return "string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var it=function(e){return "function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},lt=function(e){return "__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function ct(e,t,n){var r=e[n];it(t)&&it(r)?ut(r,t):e[n]=t;}function ut(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var d=0,o=n;d<o.length;d++){var a=o[d];if(it(a))for(var i in a)lt(i)&&ct(e,a[i],i);}return e}var st=React__default["default"].createContext();st.Consumer;var ft={};function pt(o,a,i){var l=ie(o),c=!at(o),u=a.attrs,s=void 0===u?re:u,f=a.componentId,p=void 0===f?function(e,t){var n="string"!=typeof e?"sc":ot(e);ft[n]=(ft[n]||0)+1;var r=n+"-"+function(e){return Re(De(e)>>>0)}("5.3.6"+n+ft[n]);return t?t+"-"+r:r}(a.displayName,a.parentComponentId):f,y=a.displayName,$=void 0===y?function(e){return at(e)?"styled."+e:"Styled("+ae(e)+")"}(o):y,h=a.displayName&&a.componentId?ot(a.displayName)+"-"+a.componentId:a.componentId||p,m=l&&o.attrs?Array.prototype.concat(o.attrs,s).filter(Boolean):s,g=a.shouldForwardProp;l&&o.shouldForwardProp&&(g=a.shouldForwardProp?function(e,t,n){return o.shouldForwardProp(e,t,n)&&a.shouldForwardProp(e,t,n)}:o.shouldForwardProp);var v,b=new Ie(i,h,l?o.componentStyle:void 0),w=b.isStatic&&0===s.length,C=function(e,t){return function(e,t,o,a){var i=e.attrs,l=e.componentStyle,c=e.defaultProps,u=e.foldedComponentIds,s=e.shouldForwardProp,f=e.styledComponentId,p=e.target;"production"!==process.env.NODE_ENV&&React.useDebugValue(f);var y=function(e,t,n){void 0===e&&(e=de);var r=ee({},t,{theme:e}),d={};return n.forEach((function(e){var t,n,o,a=e;for(t in oe(a)&&(a=a(r)),a)r[t]=d[t]="className"===t?(n=d[t],o=a[t],n&&o?n+" "+o:n||o):a[t];})),[r,d]}(function(e,t,n){return void 0===n&&(n=de),e.theme!==n.theme&&e.theme||t||n.theme}(t,React.useContext(st),c)||de,t,i),$=y[0],h=y[1],m=function(e,t,d,o){var a=React.useContext(He)||ze,i=React.useContext(Ue)||Ge,l=t?e.generateAndInjectStyles(de,a,i):e.generateAndInjectStyles(d,a,i);return "production"!==process.env.NODE_ENV&&React.useDebugValue(l),"production"!==process.env.NODE_ENV&&!t&&o&&o(l),l}(l,a,$,"production"!==process.env.NODE_ENV?e.warnTooManyClasses:void 0),g=o,v=h.$as||t.$as||h.as||t.as||p,b=at(v),w=h!==t?ee({},t,{},h):t,C={};for(var P in w)"$"!==P[0]&&"as"!==P&&("forwardedAs"===P?C.as=w[P]:(s?s(P,D,v):!b||D(P))&&(C[P]=w[P]));return t.style&&h.style!==t.style&&(C.style=ee({},t.style,{},h.style)),C.className=Array.prototype.concat(u,f,m!==f?m:null,t.className,h.className).filter(Boolean).join(" "),C.ref=g,React.createElement(v,C)}(v,e,t,w)};return C.displayName=$,(v=React__default["default"].forwardRef(C)).attrs=m,v.componentStyle=b,v.displayName=$,v.shouldForwardProp=g,v.foldedComponentIds=l?Array.prototype.concat(o.foldedComponentIds,o.styledComponentId):re,v.styledComponentId=h,v.target=l?o.target:o,v.withComponent=function(e){var t=a.componentId,n=function(e,t){if(null==e)return {};var n,r,d={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(d[n]=e[n]);return d}(a,["componentId"]),r=t&&t+"-"+(at(e)?e:ot(ae(e)));return pt(e,ee({},n,{attrs:m,componentId:r}),i)},Object.defineProperty(v,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=l?ut({},o.defaultProps,e):e;}}),"production"!==process.env.NODE_ENV&&(function(e,n){if("production"!==process.env.NODE_ENV){var r="The component "+e+(n?' with the id of "'+n+'"':"")+" has been created dynamically.\nYou may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.",d=console.error;try{var o=!0;console.error=function(e){if(tt.test(e))o=!1,nt.delete(r);else {for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];d.apply(void 0,[e].concat(n));}},React.useRef(),o&&!nt.has(r)&&(console.warn(r),nt.add(r));}catch(e){tt.test(e.message)&&nt.delete(r);}finally{console.error=d;}}}($,h),v.warnTooManyClasses=function(e,t){var n={},r=!1;return function(d){if(!r&&(n[d]=!0,Object.keys(n).length>=200)){var o=t?' with the id of "'+t+'"':"";console.warn("Over 200 classes were generated for component "+e+o+".\nConsider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"),r=!0,n={};}}}($,h)),v.toString=function(){return "."+v.styledComponentId},c&&X(v,o,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),v}var yt=function(e){return function e(t,n,r){if(void 0===r&&(r=de),!A.exports.isValidElementType(n))return pe(1,String(n));var d=function(){return t(n,r,et.apply(void 0,arguments))};return d.withConfig=function(d){return e(t,n,ee({},r,{},d))},d.attrs=function(d){return e(t,n,ee({},r,{attrs:Array.prototype.concat(r.attrs,d).filter(Boolean)}))},d}(pt,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){yt[e]=yt(e);})),"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native"),"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&"undefined"!=typeof window&&(window["__styled-components-init__"]=window["__styled-components-init__"]||0,1===window["__styled-components-init__"]&&console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://s-c.sh/2BAXzed for more info."),window["__styled-components-init__"]+=1);const $t=yt.div`
1302
+ */!function(e){"production"===process.env.NODE_ENV?e.exports=function(){if(R)return I;R=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,d=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,i=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,s=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,$=e?Symbol.for("react.block"):60121,h=e?Symbol.for("react.fundamental"):60117,m=e?Symbol.for("react.responder"):60118,g=e?Symbol.for("react.scope"):60119;function v(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:switch(e=e.type){case l:case c:case r:case o:case d:case s:return e;default:switch(e=e&&e.$$typeof){case i:case u:case y:case p:case a:return e;default:return f}}case n:return f}}}function b(e){return v(e)===c}return I.AsyncMode=l,I.ConcurrentMode=c,I.ContextConsumer=i,I.ContextProvider=a,I.Element=t,I.ForwardRef=u,I.Fragment=r,I.Lazy=y,I.Memo=p,I.Portal=n,I.Profiler=o,I.StrictMode=d,I.Suspense=s,I.isAsyncMode=function(e){return b(e)||v(e)===l},I.isConcurrentMode=b,I.isContextConsumer=function(e){return v(e)===i},I.isContextProvider=function(e){return v(e)===a},I.isElement=function(e){return "object"==typeof e&&null!==e&&e.$$typeof===t},I.isForwardRef=function(e){return v(e)===u},I.isFragment=function(e){return v(e)===r},I.isLazy=function(e){return v(e)===y},I.isMemo=function(e){return v(e)===p},I.isPortal=function(e){return v(e)===n},I.isProfiler=function(e){return v(e)===o},I.isStrictMode=function(e){return v(e)===d},I.isSuspense=function(e){return v(e)===s},I.isValidElementType=function(e){return "string"==typeof e||"function"==typeof e||e===r||e===c||e===o||e===d||e===s||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===p||e.$$typeof===a||e.$$typeof===i||e.$$typeof===u||e.$$typeof===h||e.$$typeof===m||e.$$typeof===g||e.$$typeof===$)},I.typeOf=v,I}():e.exports=(B||(B=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,d=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,i=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,s=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,$=e?Symbol.for("react.block"):60121,h=e?Symbol.for("react.fundamental"):60117,m=e?Symbol.for("react.responder"):60118,g=e?Symbol.for("react.scope"):60119;function v(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:var $=e.type;switch($){case l:case c:case r:case o:case d:case s:return $;default:var h=$&&$.$$typeof;switch(h){case i:case u:case y:case p:case a:return h;default:return f}}case n:return f}}}var b=l,w=c,C=i,P=a,E=t,S=u,O=r,A=y,k=p,M=n,j=o,_=d,x=s,T=!1;function R(e){return v(e)===c}V.AsyncMode=b,V.ConcurrentMode=w,V.ContextConsumer=C,V.ContextProvider=P,V.Element=E,V.ForwardRef=S,V.Fragment=O,V.Lazy=A,V.Memo=k,V.Portal=M,V.Profiler=j,V.StrictMode=_,V.Suspense=x,V.isAsyncMode=function(e){return T||(T=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),R(e)||v(e)===l},V.isConcurrentMode=R,V.isContextConsumer=function(e){return v(e)===i},V.isContextProvider=function(e){return v(e)===a},V.isElement=function(e){return "object"==typeof e&&null!==e&&e.$$typeof===t},V.isForwardRef=function(e){return v(e)===u},V.isFragment=function(e){return v(e)===r},V.isLazy=function(e){return v(e)===y},V.isMemo=function(e){return v(e)===p},V.isPortal=function(e){return v(e)===n},V.isProfiler=function(e){return v(e)===o},V.isStrictMode=function(e){return v(e)===d},V.isSuspense=function(e){return v(e)===s},V.isValidElementType=function(e){return "string"==typeof e||"function"==typeof e||e===r||e===c||e===o||e===d||e===s||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===p||e.$$typeof===a||e.$$typeof===i||e.$$typeof===u||e.$$typeof===h||e.$$typeof===m||e.$$typeof===g||e.$$typeof===$)},V.typeOf=v;}()),V);}(N);var H=N.exports,U={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},z={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},G$1={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},F={};function Z(e){return H.isMemo(e)?G$1:F[e.$$typeof]||U}F[H.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},F[H.Memo]=G$1;var Q=Object.defineProperty,K=Object.getOwnPropertyNames,W=Object.getOwnPropertySymbols,Y=Object.getOwnPropertyDescriptor,J=Object.getPrototypeOf,q=Object.prototype;var X=function e(t,n,r){if("string"!=typeof n){if(q){var d=J(n);d&&d!==q&&e(t,d,r);}var o=K(n);W&&(o=o.concat(W(n)));for(var a=Z(t),i=Z(n),l=0;l<o.length;++l){var c=o[l];if(!(z[c]||r&&r[c]||i&&i[c]||a&&a[c])){var u=Y(n,c);try{Q(t,c,u);}catch(e){}}}}return t};function ee(){return (ee=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e}).apply(this,arguments)}var te=function(e,t){for(var n=[e[0]],r=0,d=t.length;r<d;r+=1)n.push(t[r],e[r+1]);return n},ne=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!A.exports.typeOf(e)},re=Object.freeze([]),de=Object.freeze({});function oe(e){return "function"==typeof e}function ae(e){return "production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function ie(e){return e&&"string"==typeof e.styledComponentId}var le="undefined"!=typeof process&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",ce="undefined"!=typeof window&&"HTMLElement"in window,ue=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV),se="production"!==process.env.NODE_ENV?{1:"Cannot create styled-component for component: %s.\n\n",2:"Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n",3:"Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",4:"The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n",5:"The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n",6:"Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n",7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:'ThemeProvider: Please make your "theme" prop an object.\n\n',9:"Missing document `<head>`\n\n",10:"Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n",11:"_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n",12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:"%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n",14:'ThemeProvider: "theme" prop is required.\n\n',15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:"Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n",17:"CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n"}:{};function fe(){for(var e=arguments.length<=0?void 0:arguments[0],t=[],n=1,r=arguments.length;n<r;n+=1)t.push(n<0||arguments.length<=n?void 0:arguments[n]);return t.forEach((function(t){e=e.replace(/%[a-z]/,t);})),e}function pe(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw "production"===process.env.NODE_ENV?new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):"")):new Error(fe.apply(void 0,[se[e]].concat(n)).trim())}var ye=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e;}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,d=r;e>=d;)(d<<=1)<0&&pe(16,""+e);this.groupSizes=new Uint32Array(d),this.groupSizes.set(n),this.length=d;for(var o=r;o<d;o++)this.groupSizes[o]=0;}for(var a=this.indexOfGroup(e+1),i=0,l=t.length;i<l;i++)this.tag.insertRule(a,t[i])&&(this.groupSizes[e]++,a++);},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var d=n;d<r;d++)this.tag.deleteRule(n);}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),d=r+n,o=r;o<d;o++)t+=this.tag.getRule(o)+"/*!sc*/\n";return t},e}(),$e=new Map,he=new Map,me=1,ge=function(e){if($e.has(e))return $e.get(e);for(;he.has(me);)me++;var t=me++;return "production"!==process.env.NODE_ENV&&((0|t)<0||t>1<<30)&&pe(16,""+t),$e.set(e,t),he.set(t,e),t},ve=function(e){return he.get(e)},be=function(e,t){t>=me&&(me=t+1),$e.set(e,t),he.set(t,e);},we="style["+le+'][data-styled-version="5.3.6"]',Ce=new RegExp("^"+le+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),Pe=function(e,t,n){for(var r,d=n.split(","),o=0,a=d.length;o<a;o++)(r=d[o])&&e.registerName(t,r);},Ee=function(e,t){for(var n=(t.textContent||"").split("/*!sc*/\n"),r=[],d=0,o=n.length;d<o;d++){var a=n[d].trim();if(a){var i=a.match(Ce);if(i){var l=0|parseInt(i[1],10),c=i[2];0!==l&&(be(c,l),Pe(e,c,i[3]),e.getTag().insertRules(l,r)),r.length=0;}else r.push(a);}}},Se=function(e){var t=document.head,n=e||t,r=document.createElement("style"),d=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(le))return r}}(n),o=void 0!==d?d.nextSibling:null;r.setAttribute(le,"active"),r.setAttribute("data-styled-version","5.3.6");var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&r.setAttribute("nonce",a),n.insertBefore(r,o),r},Oe=function(){function e(e){var t=this.element=Se(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var d=t[n];if(d.ownerNode===e)return d}pe(17);}(t),this.length=0;}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return !1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--;},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),Ae=function(){function e(e){var t=this.element=Se(e);this.nodes=t.childNodes,this.length=0;}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return !1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--;},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),ke=function(){function e(e){this.rules=[],this.length=0;}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--;},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),Me=ce,je={isServer:!ce,useCSSOMInjection:!ue},_e$1=function(){function e(e,t,n){void 0===e&&(e=de),void 0===t&&(t={}),this.options=ee({},je,{},e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&ce&&Me&&(Me=!1,function(e){for(var t=document.querySelectorAll(we),n=0,r=t.length;n<r;n++){var d=t[n];d&&"active"!==d.getAttribute(le)&&(Ee(e,d),d.parentNode&&d.parentNode.removeChild(d));}}(this));}e.registerId=function(e){return ge(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(ee({},this.options,{},t),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(n=(t=this.options).isServer,r=t.useCSSOMInjection,d=t.target,e=n?new ke(d):r?new Oe(d):new Ae(d),new ye(e)));var e,t,n,r,d;},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(ge(e),this.names.has(e))this.names.get(e).add(t);else {var n=new Set;n.add(t),this.names.set(e,n);}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(ge(e),n);},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear();},t.clearRules=function(e){this.getTag().clearGroup(ge(e)),this.clearNames(e);},t.clearTag=function(){this.tag=void 0;},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",d=0;d<n;d++){var o=ve(d);if(void 0!==o){var a=e.names.get(o),i=t.getGroup(d);if(a&&i&&a.size){var l=le+".g"+d+'[id="'+o+'"]',c="";void 0!==a&&a.forEach((function(e){e.length>0&&(c+=e+",");})),r+=""+i+l+'{content:"'+c+'"}/*!sc*/\n';}}}return r}(this)},e}(),xe=/(a)(d)/gi,Te=function(e){return String.fromCharCode(e+(e>25?39:97))};function Re(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=Te(t%52)+n;return (Te(t%52)+n).replace(xe,"$1-$2")}var Le=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},De=function(e){return Le(5381,e)};var Ne=De("5.3.6"),Ie=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===n||n.isStatic)&&function(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(oe(n)&&!ie(n))return !1}return !0}(e),this.componentId=t,this.baseHash=Le(Ne,t),this.baseStyle=n,_e$1.registerId(t);}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.componentId,d=[];if(this.baseStyle&&d.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))d.push(this.staticRulesId);else {var o=qe(this.rules,e,t,n).join(""),a=Re(Le(this.baseHash,o)>>>0);if(!t.hasNameForId(r,a)){var i=n(o,"."+a,void 0,r);t.insertRules(r,a,i);}d.push(a),this.staticRulesId=a;}else {for(var l=this.rules.length,c=Le(this.baseHash,n.hash),u="",s=0;s<l;s++){var f=this.rules[s];if("string"==typeof f)u+=f,"production"!==process.env.NODE_ENV&&(c=Le(c,f+s));else if(f){var p=qe(f,e,t,n),y=Array.isArray(p)?p.join(""):p;c=Le(c,y+s),u+=y;}}if(u){var $=Re(c>>>0);if(!t.hasNameForId(r,$)){var h=n(u,"."+$,void 0,r);t.insertRules(r,$,h);}d.push($);}}return d.join(" ")},e}(),Be=/^\s*\/\/.*$/gm,Ve=[":","[",".","#"];var He=React__default["default"].createContext();He.Consumer;var Ue=React__default["default"].createContext(),ze=(Ue.Consumer,new _e$1),Ge=function(e){var t,n,r,d,o=void 0===e?de:e,a=o.options,i=void 0===a?de:a,l=o.plugins,c=void 0===l?re:l,u=new _(i),s=[],f=function(e){function t(t){if(t)try{e(t+"}");}catch(e){}}return function(n,r,d,o,a,i,l,c,u,s){switch(n){case 1:if(0===u&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===c)return r+"/*|*/";break;case 3:switch(c){case 102:case 112:return e(d[0]+r),"";default:return r+(0===s?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t);}}}((function(e){s.push(e);})),p=function(e,r,o){return 0===r&&-1!==Ve.indexOf(o[n.length])||o.match(d)?e:"."+t};function y(e,o,a,i){void 0===i&&(i="&");var l=e.replace(Be,""),c=o&&a?a+" "+o+" { "+l+" }":l;return t=i,n=o,r=new RegExp("\\"+n+"\\b","g"),d=new RegExp("(\\"+n+"\\b){2,}"),u(a||!o?"":o,c)}return u.use([].concat(c,[function(e,t,d){2===e&&d.length&&d[0].lastIndexOf(n)>0&&(d[0]=d[0].replace(r,p));},f,function(e){if(-2===e){var t=s;return s=[],t}}])),y.hash=c.length?c.reduce((function(e,t){return t.name||pe(15),Le(e,t.name)}),5381).toString():"",y}();var Fe=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Ge);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"));},this.toString=function(){return pe(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t;}return e.prototype.getName=function(e){return void 0===e&&(e=Ge),this.name+e.hash},e}(),Ze=/([A-Z])/,Qe=/([A-Z])/g,Ke=/^ms-/,We=function(e){return "-"+e.toLowerCase()};function Ye(e){return Ze.test(e)?e.replace(Qe,We).replace(Ke,"-ms-"):e}var Je=function(e){return null==e||!1===e||""===e};function qe(e,t,n,r){if(Array.isArray(e)){for(var d,o=[],a=0,i=e.length;a<i;a+=1)""!==(d=qe(e[a],t,n,r))&&(Array.isArray(d)?o.push.apply(o,d):o.push(d));return o}if(Je(e))return "";if(ie(e))return "."+e.styledComponentId;if(oe(e)){if("function"!=typeof(c=e)||c.prototype&&c.prototype.isReactComponent||!t)return e;var l=e(t);return "production"!==process.env.NODE_ENV&&A.exports.isElement(l)&&console.warn(ae(e)+" is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details."),qe(l,t,n,r)}var c;return e instanceof Fe?n?(e.inject(n,r),e.getName(r)):e:ne(e)?function e(t,n){var r,d,o=[];for(var a in t)t.hasOwnProperty(a)&&!Je(t[a])&&(Array.isArray(t[a])&&t[a].isCss||oe(t[a])?o.push(Ye(a)+":",t[a],";"):ne(t[a])?o.push.apply(o,e(t[a],a)):o.push(Ye(a)+": "+(r=a,(null==(d=t[a])||"boolean"==typeof d||""===d?"":"number"!=typeof d||0===d||r in x?String(d).trim():d+"px")+";")));return n?[n+" {"].concat(o,["}"]):o}(e):e.toString()}var Xe=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function et(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return oe(e)||ne(e)?Xe(qe(te(re,[e].concat(n)))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:Xe(qe(te(e,n)))}var tt=/invalid hook call/i,nt=new Set,rt=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,dt=/(^-|-$)/g;function ot(e){return e.replace(rt,"-").replace(dt,"")}function at(e){return "string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var it=function(e){return "function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},lt=function(e){return "__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function ct(e,t,n){var r=e[n];it(t)&&it(r)?ut(r,t):e[n]=t;}function ut(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var d=0,o=n;d<o.length;d++){var a=o[d];if(it(a))for(var i in a)lt(i)&&ct(e,a[i],i);}return e}var st=React__default["default"].createContext();st.Consumer;var ft={};function pt(o,a,i){var l=ie(o),c=!at(o),u=a.attrs,s=void 0===u?re:u,f=a.componentId,p=void 0===f?function(e,t){var n="string"!=typeof e?"sc":ot(e);ft[n]=(ft[n]||0)+1;var r=n+"-"+function(e){return Re(De(e)>>>0)}("5.3.6"+n+ft[n]);return t?t+"-"+r:r}(a.displayName,a.parentComponentId):f,y=a.displayName,$=void 0===y?function(e){return at(e)?"styled."+e:"Styled("+ae(e)+")"}(o):y,h=a.displayName&&a.componentId?ot(a.displayName)+"-"+a.componentId:a.componentId||p,m=l&&o.attrs?Array.prototype.concat(o.attrs,s).filter(Boolean):s,g=a.shouldForwardProp;l&&o.shouldForwardProp&&(g=a.shouldForwardProp?function(e,t,n){return o.shouldForwardProp(e,t,n)&&a.shouldForwardProp(e,t,n)}:o.shouldForwardProp);var v,b=new Ie(i,h,l?o.componentStyle:void 0),w=b.isStatic&&0===s.length,C=function(e,t){return function(e,t,o,a){var i=e.attrs,l=e.componentStyle,c=e.defaultProps,u=e.foldedComponentIds,s=e.shouldForwardProp,f=e.styledComponentId,p=e.target;"production"!==process.env.NODE_ENV&&React.useDebugValue(f);var y=function(e,t,n){void 0===e&&(e=de);var r=ee({},t,{theme:e}),d={};return n.forEach((function(e){var t,n,o,a=e;for(t in oe(a)&&(a=a(r)),a)r[t]=d[t]="className"===t?(n=d[t],o=a[t],n&&o?n+" "+o:n||o):a[t];})),[r,d]}(function(e,t,n){return void 0===n&&(n=de),e.theme!==n.theme&&e.theme||t||n.theme}(t,React.useContext(st),c)||de,t,i),$=y[0],h=y[1],m=function(e,t,d,o){var a=React.useContext(He)||ze,i=React.useContext(Ue)||Ge,l=t?e.generateAndInjectStyles(de,a,i):e.generateAndInjectStyles(d,a,i);return "production"!==process.env.NODE_ENV&&React.useDebugValue(l),"production"!==process.env.NODE_ENV&&!t&&o&&o(l),l}(l,a,$,"production"!==process.env.NODE_ENV?e.warnTooManyClasses:void 0),g=o,v=h.$as||t.$as||h.as||t.as||p,b=at(v),w=h!==t?ee({},t,{},h):t,C={};for(var P in w)"$"!==P[0]&&"as"!==P&&("forwardedAs"===P?C.as=w[P]:(s?s(P,D,v):!b||D(P))&&(C[P]=w[P]));return t.style&&h.style!==t.style&&(C.style=ee({},t.style,{},h.style)),C.className=Array.prototype.concat(u,f,m!==f?m:null,t.className,h.className).filter(Boolean).join(" "),C.ref=g,React.createElement(v,C)}(v,e,t,w)};return C.displayName=$,(v=React__default["default"].forwardRef(C)).attrs=m,v.componentStyle=b,v.displayName=$,v.shouldForwardProp=g,v.foldedComponentIds=l?Array.prototype.concat(o.foldedComponentIds,o.styledComponentId):re,v.styledComponentId=h,v.target=l?o.target:o,v.withComponent=function(e){var t=a.componentId,n=function(e,t){if(null==e)return {};var n,r,d={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(d[n]=e[n]);return d}(a,["componentId"]),r=t&&t+"-"+(at(e)?e:ot(ae(e)));return pt(e,ee({},n,{attrs:m,componentId:r}),i)},Object.defineProperty(v,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=l?ut({},o.defaultProps,e):e;}}),"production"!==process.env.NODE_ENV&&(function(e,n){if("production"!==process.env.NODE_ENV){var r="The component "+e+(n?' with the id of "'+n+'"':"")+" has been created dynamically.\nYou may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.",d=console.error;try{var o=!0;console.error=function(e){if(tt.test(e))o=!1,nt.delete(r);else {for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];d.apply(void 0,[e].concat(n));}},React.useRef(),o&&!nt.has(r)&&(console.warn(r),nt.add(r));}catch(e){tt.test(e.message)&&nt.delete(r);}finally{console.error=d;}}}($,h),v.warnTooManyClasses=function(e,t){var n={},r=!1;return function(d){if(!r&&(n[d]=!0,Object.keys(n).length>=200)){var o=t?' with the id of "'+t+'"':"";console.warn("Over 200 classes were generated for component "+e+o+".\nConsider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"),r=!0,n={};}}}($,h)),v.toString=function(){return "."+v.styledComponentId},c&&X(v,o,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),v}var yt=function(e){return function e(t,n,r){if(void 0===r&&(r=de),!A.exports.isValidElementType(n))return pe(1,String(n));var d=function(){return t(n,r,et.apply(void 0,arguments))};return d.withConfig=function(d){return e(t,n,ee({},r,{},d))},d.attrs=function(d){return e(t,n,ee({},r,{attrs:Array.prototype.concat(r.attrs,d).filter(Boolean)}))},d}(pt,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){yt[e]=yt(e);})),"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native"),"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&"undefined"!=typeof window&&(window["__styled-components-init__"]=window["__styled-components-init__"]||0,1===window["__styled-components-init__"]&&console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://s-c.sh/2BAXzed for more info."),window["__styled-components-init__"]+=1);const $t=yt.div`
1303
1303
  height: ${e=>e.size};
1304
1304
  width: ${e=>e.size};
1305
1305
  svg {
@@ -2437,7 +2437,7 @@ function toArray$1(value) {
2437
2437
  function mapContext(mapper, context, _event) {
2438
2438
  var e_5, _a;
2439
2439
 
2440
- if (isFunction$2(mapper)) {
2440
+ if (isFunction$3(mapper)) {
2441
2441
  return mapper(context, _event.data);
2442
2442
  }
2443
2443
 
@@ -2448,7 +2448,7 @@ function mapContext(mapper, context, _event) {
2448
2448
  var key = _c.value;
2449
2449
  var subMapper = mapper[key];
2450
2450
 
2451
- if (isFunction$2(subMapper)) {
2451
+ if (isFunction$3(subMapper)) {
2452
2452
  result[key] = subMapper(context, _event.data);
2453
2453
  } else {
2454
2454
  result[key] = subMapper;
@@ -2477,7 +2477,7 @@ function isPromiseLike(value) {
2477
2477
  } // Check if shape matches the Promise/A+ specification for a "thenable".
2478
2478
 
2479
2479
 
2480
- if (value !== null && (isFunction$2(value) || typeof value === 'object') && isFunction$2(value.then)) {
2480
+ if (value !== null && (isFunction$3(value) || typeof value === 'object') && isFunction$3(value.then)) {
2481
2481
  return true;
2482
2482
  }
2483
2483
 
@@ -2557,14 +2557,14 @@ function updateContext(context, _event, assignActions, state) {
2557
2557
  };
2558
2558
  var partialUpdate = {};
2559
2559
 
2560
- if (isFunction$2(assignment)) {
2560
+ if (isFunction$3(assignment)) {
2561
2561
  partialUpdate = assignment(acc, _event.data, meta);
2562
2562
  } else {
2563
2563
  try {
2564
2564
  for (var _b = __values$1(Object.keys(assignment)), _c = _b.next(); !_c.done; _c = _b.next()) {
2565
2565
  var key = _c.value;
2566
2566
  var propAssignment = assignment[key];
2567
- partialUpdate[key] = isFunction$2(propAssignment) ? propAssignment(acc, _event.data, meta) : propAssignment;
2567
+ partialUpdate[key] = isFunction$3(propAssignment) ? propAssignment(acc, _event.data, meta) : propAssignment;
2568
2568
  }
2569
2569
  } catch (e_7_1) {
2570
2570
  e_7 = {
@@ -2610,7 +2610,7 @@ function isArray$1(value) {
2610
2610
  return Array.isArray(value);
2611
2611
  } // tslint:disable-next-line:ban-types
2612
2612
 
2613
- function isFunction$2(value) {
2613
+ function isFunction$3(value) {
2614
2614
  return typeof value === 'function';
2615
2615
  }
2616
2616
  function isString$2(value) {
@@ -2629,7 +2629,7 @@ function toGuard(condition, guardMap) {
2629
2629
  };
2630
2630
  }
2631
2631
 
2632
- if (isFunction$2(condition)) {
2632
+ if (isFunction$3(condition)) {
2633
2633
  return {
2634
2634
  type: DEFAULT_GUARD_TYPE$1,
2635
2635
  name: condition.name,
@@ -2641,7 +2641,7 @@ function toGuard(condition, guardMap) {
2641
2641
  }
2642
2642
  function isObservable(value) {
2643
2643
  try {
2644
- return 'subscribe' in value && isFunction$2(value.subscribe);
2644
+ return 'subscribe' in value && isFunction$3(value.subscribe);
2645
2645
  } catch (e) {
2646
2646
  return false;
2647
2647
  }
@@ -2786,7 +2786,7 @@ function toActionObject$1(action, actionFunctionMap) {
2786
2786
  if (isString$2(action) || typeof action === 'number') {
2787
2787
  var exec = getActionFunction$1(action, actionFunctionMap);
2788
2788
 
2789
- if (isFunction$2(exec)) {
2789
+ if (isFunction$3(exec)) {
2790
2790
  actionObject = {
2791
2791
  type: action,
2792
2792
  exec: exec
@@ -2799,7 +2799,7 @@ function toActionObject$1(action, actionFunctionMap) {
2799
2799
  exec: undefined
2800
2800
  };
2801
2801
  }
2802
- } else if (isFunction$2(action)) {
2802
+ } else if (isFunction$3(action)) {
2803
2803
  actionObject = {
2804
2804
  // Convert action to string if unnamed
2805
2805
  type: action.name || action.toString(),
@@ -2808,7 +2808,7 @@ function toActionObject$1(action, actionFunctionMap) {
2808
2808
  } else {
2809
2809
  var exec = getActionFunction$1(action.type, actionFunctionMap);
2810
2810
 
2811
- if (isFunction$2(exec)) {
2811
+ if (isFunction$3(exec)) {
2812
2812
  actionObject = __assign$2(__assign$2({}, action), {
2813
2813
  exec: exec
2814
2814
  });
@@ -2861,14 +2861,14 @@ function resolveRaise$1(action, ctx, _event, delaysMap) {
2861
2861
  var meta = {
2862
2862
  _event: _event
2863
2863
  };
2864
- var resolvedEvent = toSCXMLEvent(isFunction$2(action.event) ? action.event(ctx, _event.data, meta) : action.event);
2864
+ var resolvedEvent = toSCXMLEvent(isFunction$3(action.event) ? action.event(ctx, _event.data, meta) : action.event);
2865
2865
  var resolvedDelay;
2866
2866
 
2867
2867
  if (isString$2(action.delay)) {
2868
2868
  var configDelay = delaysMap && delaysMap[action.delay];
2869
- resolvedDelay = isFunction$2(configDelay) ? configDelay(ctx, _event.data, meta) : configDelay;
2869
+ resolvedDelay = isFunction$3(configDelay) ? configDelay(ctx, _event.data, meta) : configDelay;
2870
2870
  } else {
2871
- resolvedDelay = isFunction$2(action.delay) ? action.delay(ctx, _event.data, meta) : action.delay;
2871
+ resolvedDelay = isFunction$3(action.delay) ? action.delay(ctx, _event.data, meta) : action.delay;
2872
2872
  }
2873
2873
 
2874
2874
  return __assign$2(__assign$2({}, action), {
@@ -2894,11 +2894,11 @@ function send$3(event, options) {
2894
2894
  return {
2895
2895
  to: options ? options.to : undefined,
2896
2896
  type: send$4,
2897
- event: isFunction$2(event) ? event : toEventObject(event),
2897
+ event: isFunction$3(event) ? event : toEventObject(event),
2898
2898
  delay: options ? options.delay : undefined,
2899
2899
  // TODO: don't auto-generate IDs here like that
2900
2900
  // there is too big chance of the ID collision
2901
- id: options && options.id !== undefined ? options.id : isFunction$2(event) ? event.name : getEventType(event)
2901
+ id: options && options.id !== undefined ? options.id : isFunction$3(event) ? event.name : getEventType(event)
2902
2902
  };
2903
2903
  }
2904
2904
  function resolveSend$1(action, ctx, _event, delaysMap) {
@@ -2906,17 +2906,17 @@ function resolveSend$1(action, ctx, _event, delaysMap) {
2906
2906
  _event: _event
2907
2907
  }; // TODO: helper function for resolving Expr
2908
2908
 
2909
- var resolvedEvent = toSCXMLEvent(isFunction$2(action.event) ? action.event(ctx, _event.data, meta) : action.event);
2909
+ var resolvedEvent = toSCXMLEvent(isFunction$3(action.event) ? action.event(ctx, _event.data, meta) : action.event);
2910
2910
  var resolvedDelay;
2911
2911
 
2912
2912
  if (isString$2(action.delay)) {
2913
2913
  var configDelay = delaysMap && delaysMap[action.delay];
2914
- resolvedDelay = isFunction$2(configDelay) ? configDelay(ctx, _event.data, meta) : configDelay;
2914
+ resolvedDelay = isFunction$3(configDelay) ? configDelay(ctx, _event.data, meta) : configDelay;
2915
2915
  } else {
2916
- resolvedDelay = isFunction$2(action.delay) ? action.delay(ctx, _event.data, meta) : action.delay;
2916
+ resolvedDelay = isFunction$3(action.delay) ? action.delay(ctx, _event.data, meta) : action.delay;
2917
2917
  }
2918
2918
 
2919
- var resolvedTarget = isFunction$2(action.to) ? action.to(ctx, _event.data, meta) : action.to;
2919
+ var resolvedTarget = isFunction$3(action.to) ? action.to(ctx, _event.data, meta) : action.to;
2920
2920
  return __assign$2(__assign$2({}, action), {
2921
2921
  to: resolvedTarget,
2922
2922
  _event: resolvedEvent,
@@ -2978,7 +2978,7 @@ function start$2(activity) {
2978
2978
  */
2979
2979
 
2980
2980
  function stop$2(actorRef) {
2981
- var activity = isFunction$2(actorRef) ? actorRef : toActivityDefinition$1(actorRef);
2981
+ var activity = isFunction$3(actorRef) ? actorRef : toActivityDefinition$1(actorRef);
2982
2982
  return {
2983
2983
  type: ActionTypes.Stop,
2984
2984
  activity: activity,
@@ -2986,7 +2986,7 @@ function stop$2(actorRef) {
2986
2986
  };
2987
2987
  }
2988
2988
  function resolveStop$1(action, context, _event) {
2989
- var actorRefOrString = isFunction$2(action.activity) ? action.activity(context, _event.data) : action.activity;
2989
+ var actorRefOrString = isFunction$3(action.activity) ? action.activity(context, _event.data) : action.activity;
2990
2990
  var resolvedActorRef = typeof actorRefOrString === 'string' ? {
2991
2991
  id: actorRefOrString
2992
2992
  } : actorRefOrString;
@@ -4010,7 +4010,7 @@ var registry = {
4010
4010
  }
4011
4011
  };
4012
4012
 
4013
- function getGlobal$1() {
4013
+ function getGlobal$2() {
4014
4014
  if (typeof globalThis !== 'undefined') {
4015
4015
  return globalThis;
4016
4016
  }
@@ -4033,7 +4033,7 @@ function getGlobal$1() {
4033
4033
  }
4034
4034
 
4035
4035
  function getDevTools() {
4036
- var global = getGlobal$1();
4036
+ var global = getGlobal$2();
4037
4037
 
4038
4038
  if (global && '__xstate__' in global) {
4039
4039
  return global.__xstate__;
@@ -4043,7 +4043,7 @@ function getDevTools() {
4043
4043
  }
4044
4044
 
4045
4045
  function registerService(service) {
4046
- if (!getGlobal$1()) {
4046
+ if (!getGlobal$2()) {
4047
4047
  return;
4048
4048
  }
4049
4049
 
@@ -4260,7 +4260,7 @@ function () {
4260
4260
  }
4261
4261
 
4262
4262
  var actionOrExec = action.exec || getActionFunction$1(action.type, actionFunctionMap);
4263
- var exec = isFunction$2(actionOrExec) ? actionOrExec : actionOrExec ? actionOrExec.exec : action.exec;
4263
+ var exec = isFunction$3(actionOrExec) ? actionOrExec : actionOrExec ? actionOrExec.exec : action.exec;
4264
4264
 
4265
4265
  if (exec) {
4266
4266
  try {
@@ -4362,7 +4362,7 @@ function () {
4362
4362
  return;
4363
4363
  }
4364
4364
 
4365
- var source = isFunction$2(serviceCreator) ? serviceCreator(context, _event.data, {
4365
+ var source = isFunction$3(serviceCreator) ? serviceCreator(context, _event.data, {
4366
4366
  data: resolvedData,
4367
4367
  src: invokeSource,
4368
4368
  meta: activity.meta
@@ -4776,7 +4776,7 @@ function () {
4776
4776
  Interpreter.prototype._stopChildren = function () {
4777
4777
  // TODO: think about converting those to actions
4778
4778
  this.children.forEach(function (child) {
4779
- if (isFunction$2(child.stop)) {
4779
+ if (isFunction$3(child.stop)) {
4780
4780
  child.stop();
4781
4781
  }
4782
4782
  });
@@ -5141,7 +5141,7 @@ function () {
5141
5141
 
5142
5142
  this.removeChild(childId);
5143
5143
 
5144
- if (isFunction$2(child.stop)) {
5144
+ if (isFunction$3(child.stop)) {
5145
5145
  child.stop();
5146
5146
  }
5147
5147
  };
@@ -5153,7 +5153,7 @@ function () {
5153
5153
 
5154
5154
  if (isPromiseLike(entity)) {
5155
5155
  return this.spawnPromise(Promise.resolve(entity), name);
5156
- } else if (isFunction$2(entity)) {
5156
+ } else if (isFunction$3(entity)) {
5157
5157
  return this.spawnCallback(entity, name);
5158
5158
  } else if (isSpawnedActor(entity)) {
5159
5159
  return this.spawnActor(entity, name);
@@ -5375,7 +5375,7 @@ function () {
5375
5375
  stop: function () {
5376
5376
  canceled = true;
5377
5377
 
5378
- if (isFunction$2(callbackStop)) {
5378
+ if (isFunction$3(callbackStop)) {
5379
5379
  callbackStop();
5380
5380
  }
5381
5381
  },
@@ -5497,7 +5497,7 @@ function () {
5497
5497
  };
5498
5498
 
5499
5499
  Interpreter.prototype.attachDev = function () {
5500
- var global = getGlobal$1();
5500
+ var global = getGlobal$2();
5501
5501
 
5502
5502
  if (this.options.devTools && global) {
5503
5503
  if (global.__REDUX_DEVTOOLS_EXTENSION__) {
@@ -5585,7 +5585,7 @@ function spawn(entity, nameOrOptions) {
5585
5585
  var resolvedOptions = resolveSpawnOptions(nameOrOptions);
5586
5586
  return consume(function (service) {
5587
5587
  if (!IS_PRODUCTION$1) {
5588
- var isLazyEntity = isMachine(entity) || isFunction$2(entity);
5588
+ var isLazyEntity = isMachine(entity) || isFunction$3(entity);
5589
5589
  warn$1(!!service || isLazyEntity, "Attempted to spawn an Actor (ID: \"".concat(isMachine(entity) ? entity.id : 'undefined', "\") outside of a service. This will have no effect."));
5590
5590
  }
5591
5591
 
@@ -5798,7 +5798,7 @@ function () {
5798
5798
  id: invokeId,
5799
5799
  src: invokeConfig.src
5800
5800
  }));
5801
- } else if (isMachine(invokeConfig.src) || isFunction$2(invokeConfig.src)) {
5801
+ } else if (isMachine(invokeConfig.src) || isFunction$3(invokeConfig.src)) {
5802
5802
  var invokeId = invokeConfig.id || createInvokeId(_this.id, i);
5803
5803
  _this.machine.options.services = __assign$2((_b = {}, _b[invokeId] = invokeConfig.src, _b), _this.machine.options.services);
5804
5804
  return toInvokeDefinition(__assign$2(__assign$2({
@@ -5871,7 +5871,7 @@ function () {
5871
5871
 
5872
5872
  Object.defineProperty(StateNode.prototype, "context", {
5873
5873
  get: function () {
5874
- return isFunction$2(this._context) ? this._context() : this._context;
5874
+ return isFunction$3(this._context) ? this._context() : this._context;
5875
5875
  },
5876
5876
  enumerable: false,
5877
5877
  configurable: true
@@ -5979,7 +5979,7 @@ function () {
5979
5979
  }
5980
5980
 
5981
5981
  var mutateEntryExit = function (delay, i) {
5982
- var delayRef = isFunction$2(delay) ? "".concat(_this.id, ":delay[").concat(i, "]") : delay;
5982
+ var delayRef = isFunction$3(delay) ? "".concat(_this.id, ":delay[").concat(i, "]") : delay;
5983
5983
  var eventType = after$2(delayRef, _this.id);
5984
5984
 
5985
5985
  _this.onEntry.push(send$3(eventType, {
@@ -35057,7 +35057,7 @@ const configGenerator = () => {
35057
35057
  let release;
35058
35058
  try {
35059
35059
  environment !== null && environment !== void 0 ? environment : (environment = "staging");
35060
- release !== null && release !== void 0 ? release : (release = "1.1.66");
35060
+ release !== null && release !== void 0 ? release : (release = "1.1.67");
35061
35061
  }
35062
35062
  catch (_a) {
35063
35063
  console.error('sentry configGenerator error');
@@ -36004,7 +36004,7 @@ function queryString(object) {
36004
36004
  }).join('&');
36005
36005
  }
36006
36006
 
36007
- function getGlobal(key) {
36007
+ function getGlobal$1(key) {
36008
36008
  if (window[key]) {
36009
36009
  return window[key];
36010
36010
  }
@@ -36030,7 +36030,7 @@ function getSDK(url, sdkGlobal) {
36030
36030
  return true;
36031
36031
  };
36032
36032
  var fetchScript = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : _loadScript["default"];
36033
- var existingGlobal = getGlobal(sdkGlobal);
36033
+ var existingGlobal = getGlobal$1(sdkGlobal);
36034
36034
 
36035
36035
  if (existingGlobal && isLoaded(existingGlobal)) {
36036
36036
  return Promise.resolve(existingGlobal);
@@ -36064,7 +36064,7 @@ function getSDK(url, sdkGlobal) {
36064
36064
 
36065
36065
  window[sdkReady] = function () {
36066
36066
  if (previousOnReady) previousOnReady();
36067
- onLoaded(getGlobal(sdkGlobal));
36067
+ onLoaded(getGlobal$1(sdkGlobal));
36068
36068
  };
36069
36069
  }
36070
36070
 
@@ -36077,7 +36077,7 @@ function getSDK(url, sdkGlobal) {
36077
36077
  });
36078
36078
  requests[url] = null;
36079
36079
  } else if (!sdkReady) {
36080
- onLoaded(getGlobal(sdkGlobal));
36080
+ onLoaded(getGlobal$1(sdkGlobal));
36081
36081
  }
36082
36082
  });
36083
36083
  });
@@ -41365,6 +41365,13 @@ const VideoTimeBar = ({ duration, currentTime, isThinkingTime, onChangeTime, })
41365
41365
  `, style: { width: `${isTimeChangeable ? indicatorPosition : progress}%` } })));
41366
41366
  };
41367
41367
 
41368
+ /**
41369
+ * Create a bound version of a function with a specified `this` context
41370
+ *
41371
+ * @param {Function} fn - The function to bind
41372
+ * @param {*} thisArg - The value to be passed as the `this` parameter
41373
+ * @returns {Function} A new function that will call the original function with the specified `this` context
41374
+ */
41368
41375
  function bind$1(fn, thisArg) {
41369
41376
  return function wrap() {
41370
41377
  return fn.apply(thisArg, arguments);
@@ -41373,30 +41380,30 @@ function bind$1(fn, thisArg) {
41373
41380
 
41374
41381
  // utils is a library of generic helper functions non-specific to axios
41375
41382
 
41376
- const {toString} = Object.prototype;
41377
- const {getPrototypeOf} = Object;
41378
- const {iterator, toStringTag} = Symbol;
41383
+ const { toString } = Object.prototype;
41384
+ const { getPrototypeOf } = Object;
41385
+ const { iterator, toStringTag } = Symbol;
41379
41386
 
41380
- const kindOf = (cache => thing => {
41381
- const str = toString.call(thing);
41382
- return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
41387
+ const kindOf = ((cache) => (thing) => {
41388
+ const str = toString.call(thing);
41389
+ return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
41383
41390
  })(Object.create(null));
41384
41391
 
41385
41392
  const kindOfTest = (type) => {
41386
41393
  type = type.toLowerCase();
41387
- return (thing) => kindOf(thing) === type
41394
+ return (thing) => kindOf(thing) === type;
41388
41395
  };
41389
41396
 
41390
- const typeOfTest = type => thing => typeof thing === type;
41397
+ const typeOfTest = (type) => (thing) => typeof thing === type;
41391
41398
 
41392
41399
  /**
41393
- * Determine if a value is an Array
41400
+ * Determine if a value is a non-null object
41394
41401
  *
41395
41402
  * @param {Object} val The value to test
41396
41403
  *
41397
41404
  * @returns {boolean} True if value is an Array, otherwise false
41398
41405
  */
41399
- const {isArray} = Array;
41406
+ const { isArray } = Array;
41400
41407
 
41401
41408
  /**
41402
41409
  * Determine if a value is undefined
@@ -41415,8 +41422,14 @@ const isUndefined = typeOfTest('undefined');
41415
41422
  * @returns {boolean} True if value is a Buffer, otherwise false
41416
41423
  */
41417
41424
  function isBuffer(val) {
41418
- return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)
41419
- && isFunction$1(val.constructor.isBuffer) && val.constructor.isBuffer(val);
41425
+ return (
41426
+ val !== null &&
41427
+ !isUndefined(val) &&
41428
+ val.constructor !== null &&
41429
+ !isUndefined(val.constructor) &&
41430
+ isFunction$2(val.constructor.isBuffer) &&
41431
+ val.constructor.isBuffer(val)
41432
+ );
41420
41433
  }
41421
41434
 
41422
41435
  /**
@@ -41428,7 +41441,6 @@ function isBuffer(val) {
41428
41441
  */
41429
41442
  const isArrayBuffer = kindOfTest('ArrayBuffer');
41430
41443
 
41431
-
41432
41444
  /**
41433
41445
  * Determine if a value is a view on an ArrayBuffer
41434
41446
  *
@@ -41438,10 +41450,10 @@ const isArrayBuffer = kindOfTest('ArrayBuffer');
41438
41450
  */
41439
41451
  function isArrayBufferView(val) {
41440
41452
  let result;
41441
- if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {
41453
+ if (typeof ArrayBuffer !== 'undefined' && ArrayBuffer.isView) {
41442
41454
  result = ArrayBuffer.isView(val);
41443
41455
  } else {
41444
- result = (val) && (val.buffer) && (isArrayBuffer(val.buffer));
41456
+ result = val && val.buffer && isArrayBuffer(val.buffer);
41445
41457
  }
41446
41458
  return result;
41447
41459
  }
@@ -41461,7 +41473,7 @@ const isString = typeOfTest('string');
41461
41473
  * @param {*} val The value to test
41462
41474
  * @returns {boolean} True if value is a Function, otherwise false
41463
41475
  */
41464
- const isFunction$1 = typeOfTest('function');
41476
+ const isFunction$2 = typeOfTest('function');
41465
41477
 
41466
41478
  /**
41467
41479
  * Determine if a value is a Number
@@ -41487,7 +41499,7 @@ const isObject = (thing) => thing !== null && typeof thing === 'object';
41487
41499
  * @param {*} thing The value to test
41488
41500
  * @returns {boolean} True if value is a Boolean, otherwise false
41489
41501
  */
41490
- const isBoolean = thing => thing === true || thing === false;
41502
+ const isBoolean = (thing) => thing === true || thing === false;
41491
41503
 
41492
41504
  /**
41493
41505
  * Determine if a value is a plain Object
@@ -41502,7 +41514,34 @@ const isPlainObject = (val) => {
41502
41514
  }
41503
41515
 
41504
41516
  const prototype = getPrototypeOf(val);
41505
- return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(toStringTag in val) && !(iterator in val);
41517
+ return (
41518
+ (prototype === null ||
41519
+ prototype === Object.prototype ||
41520
+ Object.getPrototypeOf(prototype) === null) &&
41521
+ !(toStringTag in val) &&
41522
+ !(iterator in val)
41523
+ );
41524
+ };
41525
+
41526
+ /**
41527
+ * Determine if a value is an empty object (safely handles Buffers)
41528
+ *
41529
+ * @param {*} val The value to test
41530
+ *
41531
+ * @returns {boolean} True if value is an empty object, otherwise false
41532
+ */
41533
+ const isEmptyObject = (val) => {
41534
+ // Early return for non-objects or Buffers to prevent RangeError
41535
+ if (!isObject(val) || isBuffer(val)) {
41536
+ return false;
41537
+ }
41538
+
41539
+ try {
41540
+ return Object.keys(val).length === 0 && Object.getPrototypeOf(val) === Object.prototype;
41541
+ } catch (e) {
41542
+ // Fallback for any other objects that might cause RangeError with Object.keys()
41543
+ return false;
41544
+ }
41506
41545
  };
41507
41546
 
41508
41547
  /**
@@ -41523,6 +41562,31 @@ const isDate = kindOfTest('Date');
41523
41562
  */
41524
41563
  const isFile = kindOfTest('File');
41525
41564
 
41565
+ /**
41566
+ * Determine if a value is a React Native Blob
41567
+ * React Native "blob": an object with a `uri` attribute. Optionally, it can
41568
+ * also have a `name` and `type` attribute to specify filename and content type
41569
+ *
41570
+ * @see https://github.com/facebook/react-native/blob/26684cf3adf4094eb6c405d345a75bf8c7c0bf88/Libraries/Network/FormData.js#L68-L71
41571
+ *
41572
+ * @param {*} value The value to test
41573
+ *
41574
+ * @returns {boolean} True if value is a React Native Blob, otherwise false
41575
+ */
41576
+ const isReactNativeBlob = (value) => {
41577
+ return !!(value && typeof value.uri !== 'undefined');
41578
+ };
41579
+
41580
+ /**
41581
+ * Determine if environment is React Native
41582
+ * ReactNative `FormData` has a non-standard `getParts()` method
41583
+ *
41584
+ * @param {*} formData The formData to test
41585
+ *
41586
+ * @returns {boolean} True if environment is React Native, otherwise false
41587
+ */
41588
+ const isReactNative = (formData) => formData && typeof formData.getParts !== 'undefined';
41589
+
41526
41590
  /**
41527
41591
  * Determine if a value is a Blob
41528
41592
  *
@@ -41548,7 +41612,7 @@ const isFileList = kindOfTest('FileList');
41548
41612
  *
41549
41613
  * @returns {boolean} True if value is a Stream, otherwise false
41550
41614
  */
41551
- const isStream = (val) => isObject(val) && isFunction$1(val.pipe);
41615
+ const isStream = (val) => isObject(val) && isFunction$2(val.pipe);
41552
41616
 
41553
41617
  /**
41554
41618
  * Determine if a value is a FormData
@@ -41557,17 +41621,28 @@ const isStream = (val) => isObject(val) && isFunction$1(val.pipe);
41557
41621
  *
41558
41622
  * @returns {boolean} True if value is an FormData, otherwise false
41559
41623
  */
41624
+ function getGlobal() {
41625
+ if (typeof globalThis !== 'undefined') return globalThis;
41626
+ if (typeof self !== 'undefined') return self;
41627
+ if (typeof window !== 'undefined') return window;
41628
+ if (typeof global !== 'undefined') return global;
41629
+ return {};
41630
+ }
41631
+
41632
+ const G = getGlobal();
41633
+ const FormDataCtor = typeof G.FormData !== 'undefined' ? G.FormData : undefined;
41634
+
41560
41635
  const isFormData = (thing) => {
41561
41636
  let kind;
41562
41637
  return thing && (
41563
- (typeof FormData === 'function' && thing instanceof FormData) || (
41564
- isFunction$1(thing.append) && (
41638
+ (FormDataCtor && thing instanceof FormDataCtor) || (
41639
+ isFunction$2(thing.append) && (
41565
41640
  (kind = kindOf(thing)) === 'formdata' ||
41566
41641
  // detect form-data instance
41567
- (kind === 'object' && isFunction$1(thing.toString) && thing.toString() === '[object FormData]')
41642
+ (kind === 'object' && isFunction$2(thing.toString) && thing.toString() === '[object FormData]')
41568
41643
  )
41569
41644
  )
41570
- )
41645
+ );
41571
41646
  };
41572
41647
 
41573
41648
  /**
@@ -41579,7 +41654,12 @@ const isFormData = (thing) => {
41579
41654
  */
41580
41655
  const isURLSearchParams = kindOfTest('URLSearchParams');
41581
41656
 
41582
- const [isReadableStream, isRequest, isResponse, isHeaders] = ['ReadableStream', 'Request', 'Response', 'Headers'].map(kindOfTest);
41657
+ const [isReadableStream, isRequest, isResponse, isHeaders] = [
41658
+ 'ReadableStream',
41659
+ 'Request',
41660
+ 'Response',
41661
+ 'Headers',
41662
+ ].map(kindOfTest);
41583
41663
 
41584
41664
  /**
41585
41665
  * Trim excess whitespace off the beginning and end of a string
@@ -41588,9 +41668,9 @@ const [isReadableStream, isRequest, isResponse, isHeaders] = ['ReadableStream',
41588
41668
  *
41589
41669
  * @returns {String} The String freed of excess whitespace
41590
41670
  */
41591
- const trim = (str) => str.trim ?
41592
- str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, '');
41593
-
41671
+ const trim = (str) => {
41672
+ return str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, '');
41673
+ };
41594
41674
  /**
41595
41675
  * Iterate over an Array or an Object invoking a function for each item.
41596
41676
  *
@@ -41600,13 +41680,14 @@ const trim = (str) => str.trim ?
41600
41680
  * If 'obj' is an Object callback will be called passing
41601
41681
  * the value, key, and complete object for each property.
41602
41682
  *
41603
- * @param {Object|Array} obj The object to iterate
41683
+ * @param {Object|Array<unknown>} obj The object to iterate
41604
41684
  * @param {Function} fn The callback to invoke for each item
41605
41685
  *
41606
- * @param {Boolean} [allOwnKeys = false]
41686
+ * @param {Object} [options]
41687
+ * @param {Boolean} [options.allOwnKeys = false]
41607
41688
  * @returns {any}
41608
41689
  */
41609
- function forEach(obj, fn, {allOwnKeys = false} = {}) {
41690
+ function forEach(obj, fn, { allOwnKeys = false } = {}) {
41610
41691
  // Don't bother if no value provided
41611
41692
  if (obj === null || typeof obj === 'undefined') {
41612
41693
  return;
@@ -41627,6 +41708,11 @@ function forEach(obj, fn, {allOwnKeys = false} = {}) {
41627
41708
  fn.call(null, obj[i], i, obj);
41628
41709
  }
41629
41710
  } else {
41711
+ // Buffer check
41712
+ if (isBuffer(obj)) {
41713
+ return;
41714
+ }
41715
+
41630
41716
  // Iterate over object keys
41631
41717
  const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj);
41632
41718
  const len = keys.length;
@@ -41639,7 +41725,19 @@ function forEach(obj, fn, {allOwnKeys = false} = {}) {
41639
41725
  }
41640
41726
  }
41641
41727
 
41728
+ /**
41729
+ * Finds a key in an object, case-insensitive, returning the actual key name.
41730
+ * Returns null if the object is a Buffer or if no match is found.
41731
+ *
41732
+ * @param {Object} obj - The object to search.
41733
+ * @param {string} key - The key to find (case-insensitive).
41734
+ * @returns {?string} The actual key name if found, otherwise null.
41735
+ */
41642
41736
  function findKey(obj, key) {
41737
+ if (isBuffer(obj)) {
41738
+ return null;
41739
+ }
41740
+
41643
41741
  key = key.toLowerCase();
41644
41742
  const keys = Object.keys(obj);
41645
41743
  let i = keys.length;
@@ -41655,8 +41753,8 @@ function findKey(obj, key) {
41655
41753
 
41656
41754
  const _global = (() => {
41657
41755
  /*eslint no-undef:0*/
41658
- if (typeof globalThis !== "undefined") return globalThis;
41659
- return typeof self !== "undefined" ? self : (typeof window !== 'undefined' ? window : global)
41756
+ if (typeof globalThis !== 'undefined') return globalThis;
41757
+ return typeof self !== 'undefined' ? self : typeof window !== 'undefined' ? window : global;
41660
41758
  })();
41661
41759
 
41662
41760
  const isContextDefined = (context) => !isUndefined(context) && context !== _global;
@@ -41671,7 +41769,7 @@ const isContextDefined = (context) => !isUndefined(context) && context !== _glob
41671
41769
  * Example:
41672
41770
  *
41673
41771
  * ```js
41674
- * var result = merge({foo: 123}, {foo: 456});
41772
+ * const result = merge({foo: 123}, {foo: 456});
41675
41773
  * console.log(result.foo); // outputs 456
41676
41774
  * ```
41677
41775
  *
@@ -41680,17 +41778,22 @@ const isContextDefined = (context) => !isUndefined(context) && context !== _glob
41680
41778
  * @returns {Object} Result of all merge properties
41681
41779
  */
41682
41780
  function merge(/* obj1, obj2, obj3, ... */) {
41683
- const {caseless} = isContextDefined(this) && this || {};
41781
+ const { caseless, skipUndefined } = (isContextDefined(this) && this) || {};
41684
41782
  const result = {};
41685
41783
  const assignValue = (val, key) => {
41686
- const targetKey = caseless && findKey(result, key) || key;
41784
+ // Skip dangerous property names to prevent prototype pollution
41785
+ if (key === '__proto__' || key === 'constructor' || key === 'prototype') {
41786
+ return;
41787
+ }
41788
+
41789
+ const targetKey = (caseless && findKey(result, key)) || key;
41687
41790
  if (isPlainObject(result[targetKey]) && isPlainObject(val)) {
41688
41791
  result[targetKey] = merge(result[targetKey], val);
41689
41792
  } else if (isPlainObject(val)) {
41690
41793
  result[targetKey] = merge({}, val);
41691
41794
  } else if (isArray(val)) {
41692
41795
  result[targetKey] = val.slice();
41693
- } else {
41796
+ } else if (!skipUndefined || !isUndefined(val)) {
41694
41797
  result[targetKey] = val;
41695
41798
  }
41696
41799
  };
@@ -41708,17 +41811,32 @@ function merge(/* obj1, obj2, obj3, ... */) {
41708
41811
  * @param {Object} b The object to copy properties from
41709
41812
  * @param {Object} thisArg The object to bind function to
41710
41813
  *
41711
- * @param {Boolean} [allOwnKeys]
41814
+ * @param {Object} [options]
41815
+ * @param {Boolean} [options.allOwnKeys]
41712
41816
  * @returns {Object} The resulting value of object a
41713
41817
  */
41714
- const extend = (a, b, thisArg, {allOwnKeys}= {}) => {
41715
- forEach(b, (val, key) => {
41716
- if (thisArg && isFunction$1(val)) {
41717
- a[key] = bind$1(val, thisArg);
41718
- } else {
41719
- a[key] = val;
41720
- }
41721
- }, {allOwnKeys});
41818
+ const extend = (a, b, thisArg, { allOwnKeys } = {}) => {
41819
+ forEach(
41820
+ b,
41821
+ (val, key) => {
41822
+ if (thisArg && isFunction$2(val)) {
41823
+ Object.defineProperty(a, key, {
41824
+ value: bind$1(val, thisArg),
41825
+ writable: true,
41826
+ enumerable: true,
41827
+ configurable: true,
41828
+ });
41829
+ } else {
41830
+ Object.defineProperty(a, key, {
41831
+ value: val,
41832
+ writable: true,
41833
+ enumerable: true,
41834
+ configurable: true,
41835
+ });
41836
+ }
41837
+ },
41838
+ { allOwnKeys }
41839
+ );
41722
41840
  return a;
41723
41841
  };
41724
41842
 
@@ -41730,7 +41848,7 @@ const extend = (a, b, thisArg, {allOwnKeys}= {}) => {
41730
41848
  * @returns {string} content value without BOM
41731
41849
  */
41732
41850
  const stripBOM = (content) => {
41733
- if (content.charCodeAt(0) === 0xFEFF) {
41851
+ if (content.charCodeAt(0) === 0xfeff) {
41734
41852
  content = content.slice(1);
41735
41853
  }
41736
41854
  return content;
@@ -41747,9 +41865,14 @@ const stripBOM = (content) => {
41747
41865
  */
41748
41866
  const inherits = (constructor, superConstructor, props, descriptors) => {
41749
41867
  constructor.prototype = Object.create(superConstructor.prototype, descriptors);
41750
- constructor.prototype.constructor = constructor;
41868
+ Object.defineProperty(constructor.prototype, 'constructor', {
41869
+ value: constructor,
41870
+ writable: true,
41871
+ enumerable: false,
41872
+ configurable: true,
41873
+ });
41751
41874
  Object.defineProperty(constructor, 'super', {
41752
- value: superConstructor.prototype
41875
+ value: superConstructor.prototype,
41753
41876
  });
41754
41877
  props && Object.assign(constructor.prototype, props);
41755
41878
  };
@@ -41808,7 +41931,6 @@ const endsWith = (str, searchString, position) => {
41808
41931
  return lastIndex !== -1 && lastIndex === position;
41809
41932
  };
41810
41933
 
41811
-
41812
41934
  /**
41813
41935
  * Returns new array from array like object or null if failed
41814
41936
  *
@@ -41837,9 +41959,9 @@ const toArray = (thing) => {
41837
41959
  * @returns {Array}
41838
41960
  */
41839
41961
  // eslint-disable-next-line func-names
41840
- const isTypedArray = (TypedArray => {
41962
+ const isTypedArray = ((TypedArray) => {
41841
41963
  // eslint-disable-next-line func-names
41842
- return thing => {
41964
+ return (thing) => {
41843
41965
  return TypedArray && thing instanceof TypedArray;
41844
41966
  };
41845
41967
  })(typeof Uint8Array !== 'undefined' && getPrototypeOf(Uint8Array));
@@ -41887,16 +42009,18 @@ const matchAll = (regExp, str) => {
41887
42009
  /* Checking if the kindOfTest function returns true when passed an HTMLFormElement. */
41888
42010
  const isHTMLForm = kindOfTest('HTMLFormElement');
41889
42011
 
41890
- const toCamelCase = str => {
41891
- return str.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,
41892
- function replacer(m, p1, p2) {
41893
- return p1.toUpperCase() + p2;
41894
- }
41895
- );
42012
+ const toCamelCase = (str) => {
42013
+ return str.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function replacer(m, p1, p2) {
42014
+ return p1.toUpperCase() + p2;
42015
+ });
41896
42016
  };
41897
42017
 
41898
42018
  /* Creating a function that will check if an object has a property. */
41899
- const hasOwnProperty = (({hasOwnProperty}) => (obj, prop) => hasOwnProperty.call(obj, prop))(Object.prototype);
42019
+ const hasOwnProperty = (
42020
+ ({ hasOwnProperty }) =>
42021
+ (obj, prop) =>
42022
+ hasOwnProperty.call(obj, prop)
42023
+ )(Object.prototype);
41900
42024
 
41901
42025
  /**
41902
42026
  * Determine if a value is a RegExp object
@@ -41929,13 +42053,13 @@ const reduceDescriptors = (obj, reducer) => {
41929
42053
  const freezeMethods = (obj) => {
41930
42054
  reduceDescriptors(obj, (descriptor, name) => {
41931
42055
  // skip restricted props in strict mode
41932
- if (isFunction$1(obj) && ['arguments', 'caller', 'callee'].indexOf(name) !== -1) {
42056
+ if (isFunction$2(obj) && ['arguments', 'caller', 'callee'].indexOf(name) !== -1) {
41933
42057
  return false;
41934
42058
  }
41935
42059
 
41936
42060
  const value = obj[name];
41937
42061
 
41938
- if (!isFunction$1(value)) return;
42062
+ if (!isFunction$2(value)) return;
41939
42063
 
41940
42064
  descriptor.enumerable = false;
41941
42065
 
@@ -41946,17 +42070,25 @@ const freezeMethods = (obj) => {
41946
42070
 
41947
42071
  if (!descriptor.set) {
41948
42072
  descriptor.set = () => {
41949
- throw Error('Can not rewrite read-only method \'' + name + '\'');
42073
+ throw Error("Can not rewrite read-only method '" + name + "'");
41950
42074
  };
41951
42075
  }
41952
42076
  });
41953
42077
  };
41954
42078
 
42079
+ /**
42080
+ * Converts an array or a delimited string into an object set with values as keys and true as values.
42081
+ * Useful for fast membership checks.
42082
+ *
42083
+ * @param {Array|string} arrayOrString - The array or string to convert.
42084
+ * @param {string} delimiter - The delimiter to use if input is a string.
42085
+ * @returns {Object} An object with keys from the array or string, values set to true.
42086
+ */
41955
42087
  const toObjectSet = (arrayOrString, delimiter) => {
41956
42088
  const obj = {};
41957
42089
 
41958
42090
  const define = (arr) => {
41959
- arr.forEach(value => {
42091
+ arr.forEach((value) => {
41960
42092
  obj[value] = true;
41961
42093
  });
41962
42094
  };
@@ -41969,7 +42101,7 @@ const toObjectSet = (arrayOrString, delimiter) => {
41969
42101
  const noop$1 = () => {};
41970
42102
 
41971
42103
  const toFiniteNumber = (value, defaultValue) => {
41972
- return value != null && Number.isFinite(value = +value) ? value : defaultValue;
42104
+ return value != null && Number.isFinite((value = +value)) ? value : defaultValue;
41973
42105
  };
41974
42106
 
41975
42107
  /**
@@ -41980,20 +42112,35 @@ const toFiniteNumber = (value, defaultValue) => {
41980
42112
  * @returns {boolean}
41981
42113
  */
41982
42114
  function isSpecCompliantForm(thing) {
41983
- return !!(thing && isFunction$1(thing.append) && thing[toStringTag] === 'FormData' && thing[iterator]);
42115
+ return !!(
42116
+ thing &&
42117
+ isFunction$2(thing.append) &&
42118
+ thing[toStringTag] === 'FormData' &&
42119
+ thing[iterator]
42120
+ );
41984
42121
  }
41985
42122
 
42123
+ /**
42124
+ * Recursively converts an object to a JSON-compatible object, handling circular references and Buffers.
42125
+ *
42126
+ * @param {Object} obj - The object to convert.
42127
+ * @returns {Object} The JSON-compatible object.
42128
+ */
41986
42129
  const toJSONObject = (obj) => {
41987
42130
  const stack = new Array(10);
41988
42131
 
41989
42132
  const visit = (source, i) => {
41990
-
41991
42133
  if (isObject(source)) {
41992
42134
  if (stack.indexOf(source) >= 0) {
41993
42135
  return;
41994
42136
  }
41995
42137
 
41996
- if(!('toJSON' in source)) {
42138
+ //Buffer check
42139
+ if (isBuffer(source)) {
42140
+ return source;
42141
+ }
42142
+
42143
+ if (!('toJSON' in source)) {
41997
42144
  stack[i] = source;
41998
42145
  const target = isArray(source) ? [] : {};
41999
42146
 
@@ -42014,44 +42161,76 @@ const toJSONObject = (obj) => {
42014
42161
  return visit(obj, 0);
42015
42162
  };
42016
42163
 
42164
+ /**
42165
+ * Determines if a value is an async function.
42166
+ *
42167
+ * @param {*} thing - The value to test.
42168
+ * @returns {boolean} True if value is an async function, otherwise false.
42169
+ */
42017
42170
  const isAsyncFn = kindOfTest('AsyncFunction');
42018
42171
 
42172
+ /**
42173
+ * Determines if a value is thenable (has then and catch methods).
42174
+ *
42175
+ * @param {*} thing - The value to test.
42176
+ * @returns {boolean} True if value is thenable, otherwise false.
42177
+ */
42019
42178
  const isThenable = (thing) =>
42020
- thing && (isObject(thing) || isFunction$1(thing)) && isFunction$1(thing.then) && isFunction$1(thing.catch);
42179
+ thing &&
42180
+ (isObject(thing) || isFunction$2(thing)) &&
42181
+ isFunction$2(thing.then) &&
42182
+ isFunction$2(thing.catch);
42021
42183
 
42022
42184
  // original code
42023
42185
  // https://github.com/DigitalBrainJS/AxiosPromise/blob/16deab13710ec09779922131f3fa5954320f83ab/lib/utils.js#L11-L34
42024
42186
 
42187
+ /**
42188
+ * Provides a cross-platform setImmediate implementation.
42189
+ * Uses native setImmediate if available, otherwise falls back to postMessage or setTimeout.
42190
+ *
42191
+ * @param {boolean} setImmediateSupported - Whether setImmediate is supported.
42192
+ * @param {boolean} postMessageSupported - Whether postMessage is supported.
42193
+ * @returns {Function} A function to schedule a callback asynchronously.
42194
+ */
42025
42195
  const _setImmediate = ((setImmediateSupported, postMessageSupported) => {
42026
42196
  if (setImmediateSupported) {
42027
42197
  return setImmediate;
42028
42198
  }
42029
42199
 
42030
- return postMessageSupported ? ((token, callbacks) => {
42031
- _global.addEventListener("message", ({source, data}) => {
42032
- if (source === _global && data === token) {
42033
- callbacks.length && callbacks.shift()();
42034
- }
42035
- }, false);
42200
+ return postMessageSupported
42201
+ ? ((token, callbacks) => {
42202
+ _global.addEventListener(
42203
+ 'message',
42204
+ ({ source, data }) => {
42205
+ if (source === _global && data === token) {
42206
+ callbacks.length && callbacks.shift()();
42207
+ }
42208
+ },
42209
+ false
42210
+ );
42036
42211
 
42037
- return (cb) => {
42038
- callbacks.push(cb);
42039
- _global.postMessage(token, "*");
42040
- }
42041
- })(`axios@${Math.random()}`, []) : (cb) => setTimeout(cb);
42042
- })(
42043
- typeof setImmediate === 'function',
42044
- isFunction$1(_global.postMessage)
42045
- );
42212
+ return (cb) => {
42213
+ callbacks.push(cb);
42214
+ _global.postMessage(token, '*');
42215
+ };
42216
+ })(`axios@${Math.random()}`, [])
42217
+ : (cb) => setTimeout(cb);
42218
+ })(typeof setImmediate === 'function', isFunction$2(_global.postMessage));
42046
42219
 
42047
- const asap = typeof queueMicrotask !== 'undefined' ?
42048
- queueMicrotask.bind(_global) : ( typeof process !== 'undefined' && process.nextTick || _setImmediate);
42220
+ /**
42221
+ * Schedules a microtask or asynchronous callback as soon as possible.
42222
+ * Uses queueMicrotask if available, otherwise falls back to process.nextTick or _setImmediate.
42223
+ *
42224
+ * @type {Function}
42225
+ */
42226
+ const asap =
42227
+ typeof queueMicrotask !== 'undefined'
42228
+ ? queueMicrotask.bind(_global)
42229
+ : (typeof process !== 'undefined' && process.nextTick) || _setImmediate;
42049
42230
 
42050
42231
  // *********************
42051
42232
 
42052
-
42053
- const isIterable = (thing) => thing != null && isFunction$1(thing[iterator]);
42054
-
42233
+ const isIterable = (thing) => thing != null && isFunction$2(thing[iterator]);
42055
42234
 
42056
42235
  var utils$3 = {
42057
42236
  isArray,
@@ -42064,6 +42243,7 @@ var utils$3 = {
42064
42243
  isBoolean,
42065
42244
  isObject,
42066
42245
  isPlainObject,
42246
+ isEmptyObject,
42067
42247
  isReadableStream,
42068
42248
  isRequest,
42069
42249
  isResponse,
@@ -42071,9 +42251,11 @@ var utils$3 = {
42071
42251
  isUndefined,
42072
42252
  isDate,
42073
42253
  isFile,
42254
+ isReactNativeBlob,
42255
+ isReactNative,
42074
42256
  isBlob,
42075
42257
  isRegExp,
42076
- isFunction: isFunction$1,
42258
+ isFunction: isFunction$2,
42077
42259
  isStream,
42078
42260
  isURLSearchParams,
42079
42261
  isTypedArray,
@@ -42109,42 +42291,60 @@ var utils$3 = {
42109
42291
  isThenable,
42110
42292
  setImmediate: _setImmediate,
42111
42293
  asap,
42112
- isIterable
42294
+ isIterable,
42113
42295
  };
42114
42296
 
42115
- /**
42116
- * Create an Error with the specified message, config, error code, request and response.
42117
- *
42118
- * @param {string} message The error message.
42119
- * @param {string} [code] The error code (for example, 'ECONNABORTED').
42120
- * @param {Object} [config] The config.
42121
- * @param {Object} [request] The request.
42122
- * @param {Object} [response] The response.
42123
- *
42124
- * @returns {Error} The created error.
42125
- */
42126
- function AxiosError(message, code, config, request, response) {
42127
- Error.call(this);
42297
+ class AxiosError extends Error {
42298
+ static from(error, code, config, request, response, customProps) {
42299
+ const axiosError = new AxiosError(error.message, code || error.code, config, request, response);
42300
+ axiosError.cause = error;
42301
+ axiosError.name = error.name;
42128
42302
 
42129
- if (Error.captureStackTrace) {
42130
- Error.captureStackTrace(this, this.constructor);
42131
- } else {
42132
- this.stack = (new Error()).stack;
42133
- }
42303
+ // Preserve status from the original error if not already set from response
42304
+ if (error.status != null && axiosError.status == null) {
42305
+ axiosError.status = error.status;
42306
+ }
42134
42307
 
42135
- this.message = message;
42136
- this.name = 'AxiosError';
42137
- code && (this.code = code);
42138
- config && (this.config = config);
42139
- request && (this.request = request);
42140
- if (response) {
42141
- this.response = response;
42142
- this.status = response.status ? response.status : null;
42308
+ customProps && Object.assign(axiosError, customProps);
42309
+ return axiosError;
42143
42310
  }
42144
- }
42145
42311
 
42146
- utils$3.inherits(AxiosError, Error, {
42147
- toJSON: function toJSON() {
42312
+ /**
42313
+ * Create an Error with the specified message, config, error code, request and response.
42314
+ *
42315
+ * @param {string} message The error message.
42316
+ * @param {string} [code] The error code (for example, 'ECONNABORTED').
42317
+ * @param {Object} [config] The config.
42318
+ * @param {Object} [request] The request.
42319
+ * @param {Object} [response] The response.
42320
+ *
42321
+ * @returns {Error} The created error.
42322
+ */
42323
+ constructor(message, code, config, request, response) {
42324
+ super(message);
42325
+
42326
+ // Make message enumerable to maintain backward compatibility
42327
+ // The native Error constructor sets message as non-enumerable,
42328
+ // but axios < v1.13.3 had it as enumerable
42329
+ Object.defineProperty(this, 'message', {
42330
+ value: message,
42331
+ enumerable: true,
42332
+ writable: true,
42333
+ configurable: true
42334
+ });
42335
+
42336
+ this.name = 'AxiosError';
42337
+ this.isAxiosError = true;
42338
+ code && (this.code = code);
42339
+ config && (this.config = config);
42340
+ request && (this.request = request);
42341
+ if (response) {
42342
+ this.response = response;
42343
+ this.status = response.status;
42344
+ }
42345
+ }
42346
+
42347
+ toJSON() {
42148
42348
  return {
42149
42349
  // Standard
42150
42350
  message: this.message,
@@ -42160,55 +42360,24 @@ utils$3.inherits(AxiosError, Error, {
42160
42360
  // Axios
42161
42361
  config: utils$3.toJSONObject(this.config),
42162
42362
  code: this.code,
42163
- status: this.status
42363
+ status: this.status,
42164
42364
  };
42165
42365
  }
42166
- });
42167
-
42168
- const prototype$1 = AxiosError.prototype;
42169
- const descriptors = {};
42170
-
42171
- [
42172
- 'ERR_BAD_OPTION_VALUE',
42173
- 'ERR_BAD_OPTION',
42174
- 'ECONNABORTED',
42175
- 'ETIMEDOUT',
42176
- 'ERR_NETWORK',
42177
- 'ERR_FR_TOO_MANY_REDIRECTS',
42178
- 'ERR_DEPRECATED',
42179
- 'ERR_BAD_RESPONSE',
42180
- 'ERR_BAD_REQUEST',
42181
- 'ERR_CANCELED',
42182
- 'ERR_NOT_SUPPORT',
42183
- 'ERR_INVALID_URL'
42184
- // eslint-disable-next-line func-names
42185
- ].forEach(code => {
42186
- descriptors[code] = {value: code};
42187
- });
42188
-
42189
- Object.defineProperties(AxiosError, descriptors);
42190
- Object.defineProperty(prototype$1, 'isAxiosError', {value: true});
42191
-
42192
- // eslint-disable-next-line func-names
42193
- AxiosError.from = (error, code, config, request, response, customProps) => {
42194
- const axiosError = Object.create(prototype$1);
42195
-
42196
- utils$3.toFlatObject(error, axiosError, function filter(obj) {
42197
- return obj !== Error.prototype;
42198
- }, prop => {
42199
- return prop !== 'isAxiosError';
42200
- });
42201
-
42202
- AxiosError.call(axiosError, error.message, code, config, request, response);
42203
-
42204
- axiosError.cause = error;
42205
-
42206
- axiosError.name = error.name;
42207
-
42208
- customProps && Object.assign(axiosError, customProps);
42366
+ }
42209
42367
 
42210
- return axiosError;
42211
- };
42368
+ // This can be changed to static properties as soon as the parser options in .eslint.cjs are updated.
42369
+ AxiosError.ERR_BAD_OPTION_VALUE = 'ERR_BAD_OPTION_VALUE';
42370
+ AxiosError.ERR_BAD_OPTION = 'ERR_BAD_OPTION';
42371
+ AxiosError.ECONNABORTED = 'ECONNABORTED';
42372
+ AxiosError.ETIMEDOUT = 'ETIMEDOUT';
42373
+ AxiosError.ERR_NETWORK = 'ERR_NETWORK';
42374
+ AxiosError.ERR_FR_TOO_MANY_REDIRECTS = 'ERR_FR_TOO_MANY_REDIRECTS';
42375
+ AxiosError.ERR_DEPRECATED = 'ERR_DEPRECATED';
42376
+ AxiosError.ERR_BAD_RESPONSE = 'ERR_BAD_RESPONSE';
42377
+ AxiosError.ERR_BAD_REQUEST = 'ERR_BAD_REQUEST';
42378
+ AxiosError.ERR_CANCELED = 'ERR_CANCELED';
42379
+ AxiosError.ERR_NOT_SUPPORT = 'ERR_NOT_SUPPORT';
42380
+ AxiosError.ERR_INVALID_URL = 'ERR_INVALID_URL';
42212
42381
 
42213
42382
  // eslint-disable-next-line strict
42214
42383
  var httpAdapter = null;
@@ -42246,11 +42415,14 @@ function removeBrackets(key) {
42246
42415
  */
42247
42416
  function renderKey(path, key, dots) {
42248
42417
  if (!path) return key;
42249
- return path.concat(key).map(function each(token, i) {
42250
- // eslint-disable-next-line no-param-reassign
42251
- token = removeBrackets(token);
42252
- return !dots && i ? '[' + token + ']' : token;
42253
- }).join(dots ? '.' : '');
42418
+ return path
42419
+ .concat(key)
42420
+ .map(function each(token, i) {
42421
+ // eslint-disable-next-line no-param-reassign
42422
+ token = removeBrackets(token);
42423
+ return !dots && i ? '[' + token + ']' : token;
42424
+ })
42425
+ .join(dots ? '.' : '');
42254
42426
  }
42255
42427
 
42256
42428
  /**
@@ -42300,21 +42472,26 @@ function toFormData(obj, formData, options) {
42300
42472
  formData = formData || new (FormData)();
42301
42473
 
42302
42474
  // eslint-disable-next-line no-param-reassign
42303
- options = utils$3.toFlatObject(options, {
42304
- metaTokens: true,
42305
- dots: false,
42306
- indexes: false
42307
- }, false, function defined(option, source) {
42308
- // eslint-disable-next-line no-eq-null,eqeqeq
42309
- return !utils$3.isUndefined(source[option]);
42310
- });
42475
+ options = utils$3.toFlatObject(
42476
+ options,
42477
+ {
42478
+ metaTokens: true,
42479
+ dots: false,
42480
+ indexes: false,
42481
+ },
42482
+ false,
42483
+ function defined(option, source) {
42484
+ // eslint-disable-next-line no-eq-null,eqeqeq
42485
+ return !utils$3.isUndefined(source[option]);
42486
+ }
42487
+ );
42311
42488
 
42312
42489
  const metaTokens = options.metaTokens;
42313
42490
  // eslint-disable-next-line no-use-before-define
42314
42491
  const visitor = options.visitor || defaultVisitor;
42315
42492
  const dots = options.dots;
42316
42493
  const indexes = options.indexes;
42317
- const _Blob = options.Blob || typeof Blob !== 'undefined' && Blob;
42494
+ const _Blob = options.Blob || (typeof Blob !== 'undefined' && Blob);
42318
42495
  const useBlob = _Blob && utils$3.isSpecCompliantForm(formData);
42319
42496
 
42320
42497
  if (!utils$3.isFunction(visitor)) {
@@ -42356,6 +42533,11 @@ function toFormData(obj, formData, options) {
42356
42533
  function defaultVisitor(value, key, path) {
42357
42534
  let arr = value;
42358
42535
 
42536
+ if (utils$3.isReactNative(formData) && utils$3.isReactNativeBlob(value)) {
42537
+ formData.append(renderKey(path, key, dots), convertValue(value));
42538
+ return false;
42539
+ }
42540
+
42359
42541
  if (value && !path && typeof value === 'object') {
42360
42542
  if (utils$3.endsWith(key, '{}')) {
42361
42543
  // eslint-disable-next-line no-param-reassign
@@ -42364,17 +42546,22 @@ function toFormData(obj, formData, options) {
42364
42546
  value = JSON.stringify(value);
42365
42547
  } else if (
42366
42548
  (utils$3.isArray(value) && isFlatArray(value)) ||
42367
- ((utils$3.isFileList(value) || utils$3.endsWith(key, '[]')) && (arr = utils$3.toArray(value))
42368
- )) {
42549
+ ((utils$3.isFileList(value) || utils$3.endsWith(key, '[]')) && (arr = utils$3.toArray(value)))
42550
+ ) {
42369
42551
  // eslint-disable-next-line no-param-reassign
42370
42552
  key = removeBrackets(key);
42371
42553
 
42372
42554
  arr.forEach(function each(el, index) {
42373
- !(utils$3.isUndefined(el) || el === null) && formData.append(
42374
- // eslint-disable-next-line no-nested-ternary
42375
- indexes === true ? renderKey([key], index, dots) : (indexes === null ? key : key + '[]'),
42376
- convertValue(el)
42377
- );
42555
+ !(utils$3.isUndefined(el) || el === null) &&
42556
+ formData.append(
42557
+ // eslint-disable-next-line no-nested-ternary
42558
+ indexes === true
42559
+ ? renderKey([key], index, dots)
42560
+ : indexes === null
42561
+ ? key
42562
+ : key + '[]',
42563
+ convertValue(el)
42564
+ );
42378
42565
  });
42379
42566
  return false;
42380
42567
  }
@@ -42394,7 +42581,7 @@ function toFormData(obj, formData, options) {
42394
42581
  const exposedHelpers = Object.assign(predicates, {
42395
42582
  defaultVisitor,
42396
42583
  convertValue,
42397
- isVisitable
42584
+ isVisitable,
42398
42585
  });
42399
42586
 
42400
42587
  function build(value, path) {
@@ -42407,9 +42594,9 @@ function toFormData(obj, formData, options) {
42407
42594
  stack.push(value);
42408
42595
 
42409
42596
  utils$3.forEach(value, function each(el, key) {
42410
- const result = !(utils$3.isUndefined(el) || el === null) && visitor.call(
42411
- formData, el, utils$3.isString(key) ? key.trim() : key, path, exposedHelpers
42412
- );
42597
+ const result =
42598
+ !(utils$3.isUndefined(el) || el === null) &&
42599
+ visitor.call(formData, el, utils$3.isString(key) ? key.trim() : key, path, exposedHelpers);
42413
42600
 
42414
42601
  if (result === true) {
42415
42602
  build(el, path ? path.concat(key) : [key]);
@@ -42444,7 +42631,7 @@ function encode$1(str) {
42444
42631
  ')': '%29',
42445
42632
  '~': '%7E',
42446
42633
  '%20': '+',
42447
- '%00': '\x00'
42634
+ '%00': '\x00',
42448
42635
  };
42449
42636
  return encodeURIComponent(str).replace(/[!'()~]|%20|%00/g, function replacer(match) {
42450
42637
  return charMap[match];
@@ -42472,31 +42659,33 @@ prototype.append = function append(name, value) {
42472
42659
  };
42473
42660
 
42474
42661
  prototype.toString = function toString(encoder) {
42475
- const _encode = encoder ? function(value) {
42476
- return encoder.call(this, value, encode$1);
42477
- } : encode$1;
42662
+ const _encode = encoder
42663
+ ? function (value) {
42664
+ return encoder.call(this, value, encode$1);
42665
+ }
42666
+ : encode$1;
42478
42667
 
42479
- return this._pairs.map(function each(pair) {
42480
- return _encode(pair[0]) + '=' + _encode(pair[1]);
42481
- }, '').join('&');
42668
+ return this._pairs
42669
+ .map(function each(pair) {
42670
+ return _encode(pair[0]) + '=' + _encode(pair[1]);
42671
+ }, '')
42672
+ .join('&');
42482
42673
  };
42483
42674
 
42484
42675
  /**
42485
- * It replaces all instances of the characters `:`, `$`, `,`, `+`, `[`, and `]` with their
42486
- * URI encoded counterparts
42676
+ * It replaces URL-encoded forms of `:`, `$`, `,`, and spaces with
42677
+ * their plain counterparts (`:`, `$`, `,`, `+`).
42487
42678
  *
42488
42679
  * @param {string} val The value to be encoded.
42489
42680
  *
42490
42681
  * @returns {string} The encoded value.
42491
42682
  */
42492
42683
  function encode(val) {
42493
- return encodeURIComponent(val).
42494
- replace(/%3A/gi, ':').
42495
- replace(/%24/g, '$').
42496
- replace(/%2C/gi, ',').
42497
- replace(/%20/g, '+').
42498
- replace(/%5B/gi, '[').
42499
- replace(/%5D/gi, ']');
42684
+ return encodeURIComponent(val)
42685
+ .replace(/%3A/gi, ':')
42686
+ .replace(/%24/g, '$')
42687
+ .replace(/%2C/gi, ',')
42688
+ .replace(/%20/g, '+');
42500
42689
  }
42501
42690
 
42502
42691
  /**
@@ -42509,33 +42698,32 @@ function encode(val) {
42509
42698
  * @returns {string} The formatted url
42510
42699
  */
42511
42700
  function buildURL(url, params, options) {
42512
- /*eslint no-param-reassign:0*/
42513
42701
  if (!params) {
42514
42702
  return url;
42515
42703
  }
42516
-
42517
- const _encode = options && options.encode || encode;
42518
42704
 
42519
- if (utils$3.isFunction(options)) {
42520
- options = {
42521
- serialize: options
42522
- };
42523
- }
42705
+ const _encode = (options && options.encode) || encode;
42706
+
42707
+ const _options = utils$3.isFunction(options)
42708
+ ? {
42709
+ serialize: options,
42710
+ }
42711
+ : options;
42524
42712
 
42525
- const serializeFn = options && options.serialize;
42713
+ const serializeFn = _options && _options.serialize;
42526
42714
 
42527
42715
  let serializedParams;
42528
42716
 
42529
42717
  if (serializeFn) {
42530
- serializedParams = serializeFn(params, options);
42718
+ serializedParams = serializeFn(params, _options);
42531
42719
  } else {
42532
- serializedParams = utils$3.isURLSearchParams(params) ?
42533
- params.toString() :
42534
- new AxiosURLSearchParams(params, options).toString(_encode);
42720
+ serializedParams = utils$3.isURLSearchParams(params)
42721
+ ? params.toString()
42722
+ : new AxiosURLSearchParams(params, _options).toString(_encode);
42535
42723
  }
42536
42724
 
42537
42725
  if (serializedParams) {
42538
- const hashmarkIndex = url.indexOf("#");
42726
+ const hashmarkIndex = url.indexOf('#');
42539
42727
 
42540
42728
  if (hashmarkIndex !== -1) {
42541
42729
  url = url.slice(0, hashmarkIndex);
@@ -42556,6 +42744,7 @@ class InterceptorManager {
42556
42744
  *
42557
42745
  * @param {Function} fulfilled The function to handle `then` for a `Promise`
42558
42746
  * @param {Function} rejected The function to handle `reject` for a `Promise`
42747
+ * @param {Object} options The options for the interceptor, synchronous and runWhen
42559
42748
  *
42560
42749
  * @return {Number} An ID used to remove interceptor later
42561
42750
  */
@@ -42564,7 +42753,7 @@ class InterceptorManager {
42564
42753
  fulfilled,
42565
42754
  rejected,
42566
42755
  synchronous: options ? options.synchronous : false,
42567
- runWhen: options ? options.runWhen : null
42756
+ runWhen: options ? options.runWhen : null,
42568
42757
  });
42569
42758
  return this.handlers.length - 1;
42570
42759
  }
@@ -42574,7 +42763,7 @@ class InterceptorManager {
42574
42763
  *
42575
42764
  * @param {Number} id The ID that was returned by `use`
42576
42765
  *
42577
- * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise
42766
+ * @returns {void}
42578
42767
  */
42579
42768
  eject(id) {
42580
42769
  if (this.handlers[id]) {
@@ -42615,7 +42804,8 @@ class InterceptorManager {
42615
42804
  var transitionalDefaults = {
42616
42805
  silentJSONParsing: true,
42617
42806
  forcedJSONParsing: true,
42618
- clarifyTimeoutError: false
42807
+ clarifyTimeoutError: false,
42808
+ legacyInterceptorReqResOrdering: true,
42619
42809
  };
42620
42810
 
42621
42811
  var URLSearchParams$1 = typeof URLSearchParams !== 'undefined' ? URLSearchParams : AxiosURLSearchParams;
@@ -42629,14 +42819,14 @@ var platform$1 = {
42629
42819
  classes: {
42630
42820
  URLSearchParams: URLSearchParams$1,
42631
42821
  FormData: FormData$1,
42632
- Blob: Blob$1
42822
+ Blob: Blob$1,
42633
42823
  },
42634
- protocols: ['http', 'https', 'file', 'blob', 'url', 'data']
42824
+ protocols: ['http', 'https', 'file', 'blob', 'url', 'data'],
42635
42825
  };
42636
42826
 
42637
42827
  const hasBrowserEnv = typeof window !== 'undefined' && typeof document !== 'undefined';
42638
42828
 
42639
- const _navigator = typeof navigator === 'object' && navigator || undefined;
42829
+ const _navigator = (typeof navigator === 'object' && navigator) || undefined;
42640
42830
 
42641
42831
  /**
42642
42832
  * Determine if we're running in a standard browser environment
@@ -42655,7 +42845,8 @@ const _navigator = typeof navigator === 'object' && navigator || undefined;
42655
42845
  *
42656
42846
  * @returns {boolean}
42657
42847
  */
42658
- const hasStandardBrowserEnv = hasBrowserEnv &&
42848
+ const hasStandardBrowserEnv =
42849
+ hasBrowserEnv &&
42659
42850
  (!_navigator || ['ReactNative', 'NativeScript', 'NS'].indexOf(_navigator.product) < 0);
42660
42851
 
42661
42852
  /**
@@ -42676,7 +42867,7 @@ const hasStandardBrowserWebWorkerEnv = (() => {
42676
42867
  );
42677
42868
  })();
42678
42869
 
42679
- const origin = hasBrowserEnv && window.location.href || 'http://localhost';
42870
+ const origin = (hasBrowserEnv && window.location.href) || 'http://localhost';
42680
42871
 
42681
42872
  var utils$2 = /*#__PURE__*/Object.freeze({
42682
42873
  __proto__: null,
@@ -42689,20 +42880,21 @@ var utils$2 = /*#__PURE__*/Object.freeze({
42689
42880
 
42690
42881
  var platform = {
42691
42882
  ...utils$2,
42692
- ...platform$1
42883
+ ...platform$1,
42693
42884
  };
42694
42885
 
42695
42886
  function toURLEncodedForm(data, options) {
42696
- return toFormData(data, new platform.classes.URLSearchParams(), Object.assign({
42697
- visitor: function(value, key, path, helpers) {
42887
+ return toFormData(data, new platform.classes.URLSearchParams(), {
42888
+ visitor: function (value, key, path, helpers) {
42698
42889
  if (platform.isNode && utils$3.isBuffer(value)) {
42699
42890
  this.append(key, value.toString('base64'));
42700
42891
  return false;
42701
42892
  }
42702
42893
 
42703
42894
  return helpers.defaultVisitor.apply(this, arguments);
42704
- }
42705
- }, options));
42895
+ },
42896
+ ...options,
42897
+ });
42706
42898
  }
42707
42899
 
42708
42900
  /**
@@ -42717,7 +42909,7 @@ function parsePropPath(name) {
42717
42909
  // foo.x.y.z
42718
42910
  // foo-x-y-z
42719
42911
  // foo x y z
42720
- return utils$3.matchAll(/\w+|\[(\w*)]/g, name).map(match => {
42912
+ return utils$3.matchAll(/\w+|\[(\w*)]/g, name).map((match) => {
42721
42913
  return match[0] === '[]' ? '' : match[1] || match[0];
42722
42914
  });
42723
42915
  }
@@ -42821,96 +43013,107 @@ function stringifySafely(rawValue, parser, encoder) {
42821
43013
  }
42822
43014
 
42823
43015
  const defaults = {
42824
-
42825
43016
  transitional: transitionalDefaults,
42826
43017
 
42827
43018
  adapter: ['xhr', 'http', 'fetch'],
42828
43019
 
42829
- transformRequest: [function transformRequest(data, headers) {
42830
- const contentType = headers.getContentType() || '';
42831
- const hasJSONContentType = contentType.indexOf('application/json') > -1;
42832
- const isObjectPayload = utils$3.isObject(data);
43020
+ transformRequest: [
43021
+ function transformRequest(data, headers) {
43022
+ const contentType = headers.getContentType() || '';
43023
+ const hasJSONContentType = contentType.indexOf('application/json') > -1;
43024
+ const isObjectPayload = utils$3.isObject(data);
42833
43025
 
42834
- if (isObjectPayload && utils$3.isHTMLForm(data)) {
42835
- data = new FormData(data);
42836
- }
43026
+ if (isObjectPayload && utils$3.isHTMLForm(data)) {
43027
+ data = new FormData(data);
43028
+ }
42837
43029
 
42838
- const isFormData = utils$3.isFormData(data);
43030
+ const isFormData = utils$3.isFormData(data);
42839
43031
 
42840
- if (isFormData) {
42841
- return hasJSONContentType ? JSON.stringify(formDataToJSON(data)) : data;
42842
- }
43032
+ if (isFormData) {
43033
+ return hasJSONContentType ? JSON.stringify(formDataToJSON(data)) : data;
43034
+ }
42843
43035
 
42844
- if (utils$3.isArrayBuffer(data) ||
42845
- utils$3.isBuffer(data) ||
42846
- utils$3.isStream(data) ||
42847
- utils$3.isFile(data) ||
42848
- utils$3.isBlob(data) ||
42849
- utils$3.isReadableStream(data)
42850
- ) {
42851
- return data;
42852
- }
42853
- if (utils$3.isArrayBufferView(data)) {
42854
- return data.buffer;
42855
- }
42856
- if (utils$3.isURLSearchParams(data)) {
42857
- headers.setContentType('application/x-www-form-urlencoded;charset=utf-8', false);
42858
- return data.toString();
42859
- }
43036
+ if (
43037
+ utils$3.isArrayBuffer(data) ||
43038
+ utils$3.isBuffer(data) ||
43039
+ utils$3.isStream(data) ||
43040
+ utils$3.isFile(data) ||
43041
+ utils$3.isBlob(data) ||
43042
+ utils$3.isReadableStream(data)
43043
+ ) {
43044
+ return data;
43045
+ }
43046
+ if (utils$3.isArrayBufferView(data)) {
43047
+ return data.buffer;
43048
+ }
43049
+ if (utils$3.isURLSearchParams(data)) {
43050
+ headers.setContentType('application/x-www-form-urlencoded;charset=utf-8', false);
43051
+ return data.toString();
43052
+ }
42860
43053
 
42861
- let isFileList;
43054
+ let isFileList;
42862
43055
 
42863
- if (isObjectPayload) {
42864
- if (contentType.indexOf('application/x-www-form-urlencoded') > -1) {
42865
- return toURLEncodedForm(data, this.formSerializer).toString();
42866
- }
43056
+ if (isObjectPayload) {
43057
+ if (contentType.indexOf('application/x-www-form-urlencoded') > -1) {
43058
+ return toURLEncodedForm(data, this.formSerializer).toString();
43059
+ }
42867
43060
 
42868
- if ((isFileList = utils$3.isFileList(data)) || contentType.indexOf('multipart/form-data') > -1) {
42869
- const _FormData = this.env && this.env.FormData;
43061
+ if (
43062
+ (isFileList = utils$3.isFileList(data)) ||
43063
+ contentType.indexOf('multipart/form-data') > -1
43064
+ ) {
43065
+ const _FormData = this.env && this.env.FormData;
42870
43066
 
42871
- return toFormData(
42872
- isFileList ? {'files[]': data} : data,
42873
- _FormData && new _FormData(),
42874
- this.formSerializer
42875
- );
43067
+ return toFormData(
43068
+ isFileList ? { 'files[]': data } : data,
43069
+ _FormData && new _FormData(),
43070
+ this.formSerializer
43071
+ );
43072
+ }
42876
43073
  }
42877
- }
42878
43074
 
42879
- if (isObjectPayload || hasJSONContentType ) {
42880
- headers.setContentType('application/json', false);
42881
- return stringifySafely(data);
42882
- }
43075
+ if (isObjectPayload || hasJSONContentType) {
43076
+ headers.setContentType('application/json', false);
43077
+ return stringifySafely(data);
43078
+ }
42883
43079
 
42884
- return data;
42885
- }],
43080
+ return data;
43081
+ },
43082
+ ],
42886
43083
 
42887
- transformResponse: [function transformResponse(data) {
42888
- const transitional = this.transitional || defaults.transitional;
42889
- const forcedJSONParsing = transitional && transitional.forcedJSONParsing;
42890
- const JSONRequested = this.responseType === 'json';
43084
+ transformResponse: [
43085
+ function transformResponse(data) {
43086
+ const transitional = this.transitional || defaults.transitional;
43087
+ const forcedJSONParsing = transitional && transitional.forcedJSONParsing;
43088
+ const JSONRequested = this.responseType === 'json';
42891
43089
 
42892
- if (utils$3.isResponse(data) || utils$3.isReadableStream(data)) {
42893
- return data;
42894
- }
43090
+ if (utils$3.isResponse(data) || utils$3.isReadableStream(data)) {
43091
+ return data;
43092
+ }
42895
43093
 
42896
- if (data && utils$3.isString(data) && ((forcedJSONParsing && !this.responseType) || JSONRequested)) {
42897
- const silentJSONParsing = transitional && transitional.silentJSONParsing;
42898
- const strictJSONParsing = !silentJSONParsing && JSONRequested;
43094
+ if (
43095
+ data &&
43096
+ utils$3.isString(data) &&
43097
+ ((forcedJSONParsing && !this.responseType) || JSONRequested)
43098
+ ) {
43099
+ const silentJSONParsing = transitional && transitional.silentJSONParsing;
43100
+ const strictJSONParsing = !silentJSONParsing && JSONRequested;
42899
43101
 
42900
- try {
42901
- return JSON.parse(data);
42902
- } catch (e) {
42903
- if (strictJSONParsing) {
42904
- if (e.name === 'SyntaxError') {
42905
- throw AxiosError.from(e, AxiosError.ERR_BAD_RESPONSE, this, null, this.response);
43102
+ try {
43103
+ return JSON.parse(data, this.parseReviver);
43104
+ } catch (e) {
43105
+ if (strictJSONParsing) {
43106
+ if (e.name === 'SyntaxError') {
43107
+ throw AxiosError.from(e, AxiosError.ERR_BAD_RESPONSE, this, null, this.response);
43108
+ }
43109
+ throw e;
42906
43110
  }
42907
- throw e;
42908
43111
  }
42909
43112
  }
42910
- }
42911
43113
 
42912
- return data;
42913
- }],
43114
+ return data;
43115
+ },
43116
+ ],
42914
43117
 
42915
43118
  /**
42916
43119
  * A timeout in milliseconds to abort a request. If set to 0 (default) a
@@ -42926,7 +43129,7 @@ const defaults = {
42926
43129
 
42927
43130
  env: {
42928
43131
  FormData: platform.classes.FormData,
42929
- Blob: platform.classes.Blob
43132
+ Blob: platform.classes.Blob,
42930
43133
  },
42931
43134
 
42932
43135
  validateStatus: function validateStatus(status) {
@@ -42935,10 +43138,10 @@ const defaults = {
42935
43138
 
42936
43139
  headers: {
42937
43140
  common: {
42938
- 'Accept': 'application/json, text/plain, */*',
42939
- 'Content-Type': undefined
42940
- }
42941
- }
43141
+ Accept: 'application/json, text/plain, */*',
43142
+ 'Content-Type': undefined,
43143
+ },
43144
+ },
42942
43145
  };
42943
43146
 
42944
43147
  utils$3.forEach(['delete', 'get', 'head', 'post', 'put', 'patch'], (method) => {
@@ -42948,10 +43151,23 @@ utils$3.forEach(['delete', 'get', 'head', 'post', 'put', 'patch'], (method) => {
42948
43151
  // RawAxiosHeaders whose duplicates are ignored by node
42949
43152
  // c.f. https://nodejs.org/api/http.html#http_message_headers
42950
43153
  const ignoreDuplicateOf = utils$3.toObjectSet([
42951
- 'age', 'authorization', 'content-length', 'content-type', 'etag',
42952
- 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',
42953
- 'last-modified', 'location', 'max-forwards', 'proxy-authorization',
42954
- 'referer', 'retry-after', 'user-agent'
43154
+ 'age',
43155
+ 'authorization',
43156
+ 'content-length',
43157
+ 'content-type',
43158
+ 'etag',
43159
+ 'expires',
43160
+ 'from',
43161
+ 'host',
43162
+ 'if-modified-since',
43163
+ 'if-unmodified-since',
43164
+ 'last-modified',
43165
+ 'location',
43166
+ 'max-forwards',
43167
+ 'proxy-authorization',
43168
+ 'referer',
43169
+ 'retry-after',
43170
+ 'user-agent',
42955
43171
  ]);
42956
43172
 
42957
43173
  /**
@@ -42968,47 +43184,81 @@ const ignoreDuplicateOf = utils$3.toObjectSet([
42968
43184
  *
42969
43185
  * @returns {Object} Headers parsed into an object
42970
43186
  */
42971
- var parseHeaders = rawHeaders => {
43187
+ var parseHeaders = (rawHeaders) => {
42972
43188
  const parsed = {};
42973
43189
  let key;
42974
43190
  let val;
42975
43191
  let i;
42976
43192
 
42977
- rawHeaders && rawHeaders.split('\n').forEach(function parser(line) {
42978
- i = line.indexOf(':');
42979
- key = line.substring(0, i).trim().toLowerCase();
42980
- val = line.substring(i + 1).trim();
43193
+ rawHeaders &&
43194
+ rawHeaders.split('\n').forEach(function parser(line) {
43195
+ i = line.indexOf(':');
43196
+ key = line.substring(0, i).trim().toLowerCase();
43197
+ val = line.substring(i + 1).trim();
42981
43198
 
42982
- if (!key || (parsed[key] && ignoreDuplicateOf[key])) {
42983
- return;
42984
- }
43199
+ if (!key || (parsed[key] && ignoreDuplicateOf[key])) {
43200
+ return;
43201
+ }
42985
43202
 
42986
- if (key === 'set-cookie') {
42987
- if (parsed[key]) {
42988
- parsed[key].push(val);
43203
+ if (key === 'set-cookie') {
43204
+ if (parsed[key]) {
43205
+ parsed[key].push(val);
43206
+ } else {
43207
+ parsed[key] = [val];
43208
+ }
42989
43209
  } else {
42990
- parsed[key] = [val];
43210
+ parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;
42991
43211
  }
42992
- } else {
42993
- parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;
42994
- }
42995
- });
43212
+ });
42996
43213
 
42997
43214
  return parsed;
42998
43215
  };
42999
43216
 
43000
43217
  const $internals = Symbol('internals');
43001
43218
 
43219
+ const isValidHeaderValue = (value) => !/[\r\n]/.test(value);
43220
+
43221
+ function assertValidHeaderValue(value, header) {
43222
+ if (value === false || value == null) {
43223
+ return;
43224
+ }
43225
+
43226
+ if (utils$3.isArray(value)) {
43227
+ value.forEach((v) => assertValidHeaderValue(v, header));
43228
+ return;
43229
+ }
43230
+
43231
+ if (!isValidHeaderValue(String(value))) {
43232
+ throw new Error(`Invalid character in header content ["${header}"]`);
43233
+ }
43234
+ }
43235
+
43002
43236
  function normalizeHeader(header) {
43003
43237
  return header && String(header).trim().toLowerCase();
43004
43238
  }
43005
43239
 
43240
+ function stripTrailingCRLF(str) {
43241
+ let end = str.length;
43242
+
43243
+ while (end > 0) {
43244
+ const charCode = str.charCodeAt(end - 1);
43245
+
43246
+ if (charCode !== 10 && charCode !== 13) {
43247
+ break;
43248
+ }
43249
+
43250
+ end -= 1;
43251
+ }
43252
+
43253
+ return end === str.length ? str : str.slice(0, end);
43254
+ }
43255
+
43006
43256
  function normalizeValue(value) {
43007
43257
  if (value === false || value == null) {
43008
43258
  return value;
43009
43259
  }
43010
43260
 
43011
- return utils$3.isArray(value) ? value.map(normalizeValue) : String(value);
43261
+ return utils$3.isArray(value) ? value.map(normalizeValue) : stripTrailingCRLF(String(value));
43012
43262
  }
43013
43263
 
43014
43264
  function parseTokens(str) {
@@ -43046,8 +43296,10 @@ function matchHeaderValue(context, value, header, filter, isHeaderNameFilter) {
43046
43296
  }
43047
43297
 
43048
43298
  function formatHeader(header) {
43049
- return header.trim()
43050
- .toLowerCase().replace(/([a-z\d])(\w*)/g, (w, char, str) => {
43299
+ return header
43300
+ .trim()
43301
+ .toLowerCase()
43302
+ .replace(/([a-z\d])(\w*)/g, (w, char, str) => {
43051
43303
  return char.toUpperCase() + str;
43052
43304
  });
43053
43305
  }
@@ -43055,12 +43307,12 @@ function formatHeader(header) {
43055
43307
  function buildAccessors(obj, header) {
43056
43308
  const accessorName = utils$3.toCamelCase(' ' + header);
43057
43309
 
43058
- ['get', 'set', 'has'].forEach(methodName => {
43310
+ ['get', 'set', 'has'].forEach((methodName) => {
43059
43311
  Object.defineProperty(obj, methodName + accessorName, {
43060
- value: function(arg1, arg2, arg3) {
43312
+ value: function (arg1, arg2, arg3) {
43061
43313
  return this[methodName].call(this, header, arg1, arg2, arg3);
43062
43314
  },
43063
- configurable: true
43315
+ configurable: true,
43064
43316
  });
43065
43317
  });
43066
43318
  }
@@ -43082,7 +43334,13 @@ class AxiosHeaders {
43082
43334
 
43083
43335
  const key = utils$3.findKey(self, lHeader);
43084
43336
 
43085
- if(!key || self[key] === undefined || _rewrite === true || (_rewrite === undefined && self[key] !== false)) {
43337
+ if (
43338
+ !key ||
43339
+ self[key] === undefined ||
43340
+ _rewrite === true ||
43341
+ (_rewrite === undefined && self[key] !== false)
43342
+ ) {
43343
+ assertValidHeaderValue(_value, _header);
43086
43344
  self[key || _header] = normalizeValue(_value);
43087
43345
  }
43088
43346
  }
@@ -43092,17 +43350,22 @@ class AxiosHeaders {
43092
43350
 
43093
43351
  if (utils$3.isPlainObject(header) || header instanceof this.constructor) {
43094
43352
  setHeaders(header, valueOrRewrite);
43095
- } else if(utils$3.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
43353
+ } else if (utils$3.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
43096
43354
  setHeaders(parseHeaders(header), valueOrRewrite);
43097
43355
  } else if (utils$3.isObject(header) && utils$3.isIterable(header)) {
43098
- let obj = {}, dest, key;
43356
+ let obj = {},
43357
+ dest,
43358
+ key;
43099
43359
  for (const entry of header) {
43100
43360
  if (!utils$3.isArray(entry)) {
43101
43361
  throw TypeError('Object iterator must return a key-value pair');
43102
43362
  }
43103
43363
 
43104
- obj[key = entry[0]] = (dest = obj[key]) ?
43105
- (utils$3.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]]) : entry[1];
43364
+ obj[(key = entry[0])] = (dest = obj[key])
43365
+ ? utils$3.isArray(dest)
43366
+ ? [...dest, entry[1]]
43367
+ : [dest, entry[1]]
43368
+ : entry[1];
43106
43369
  }
43107
43370
 
43108
43371
  setHeaders(obj, valueOrRewrite);
@@ -43149,7 +43412,11 @@ class AxiosHeaders {
43149
43412
  if (header) {
43150
43413
  const key = utils$3.findKey(this, header);
43151
43414
 
43152
- return !!(key && this[key] !== undefined && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
43415
+ return !!(
43416
+ key &&
43417
+ this[key] !== undefined &&
43418
+ (!matcher || matchHeaderValue(this, this[key], key, matcher))
43419
+ );
43153
43420
  }
43154
43421
 
43155
43422
  return false;
@@ -43189,7 +43456,7 @@ class AxiosHeaders {
43189
43456
 
43190
43457
  while (i--) {
43191
43458
  const key = keys[i];
43192
- if(!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
43459
+ if (!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
43193
43460
  delete this[key];
43194
43461
  deleted = true;
43195
43462
  }
@@ -43233,7 +43500,9 @@ class AxiosHeaders {
43233
43500
  const obj = Object.create(null);
43234
43501
 
43235
43502
  utils$3.forEach(this, (value, header) => {
43236
- value != null && value !== false && (obj[header] = asStrings && utils$3.isArray(value) ? value.join(', ') : value);
43503
+ value != null &&
43504
+ value !== false &&
43505
+ (obj[header] = asStrings && utils$3.isArray(value) ? value.join(', ') : value);
43237
43506
  });
43238
43507
 
43239
43508
  return obj;
@@ -43244,11 +43513,13 @@ class AxiosHeaders {
43244
43513
  }
43245
43514
 
43246
43515
  toString() {
43247
- return Object.entries(this.toJSON()).map(([header, value]) => header + ': ' + value).join('\n');
43516
+ return Object.entries(this.toJSON())
43517
+ .map(([header, value]) => header + ': ' + value)
43518
+ .join('\n');
43248
43519
  }
43249
43520
 
43250
43521
  getSetCookie() {
43251
- return this.get("set-cookie") || [];
43522
+ return this.get('set-cookie') || [];
43252
43523
  }
43253
43524
 
43254
43525
  get [Symbol.toStringTag]() {
@@ -43268,9 +43539,12 @@ class AxiosHeaders {
43268
43539
  }
43269
43540
 
43270
43541
  static accessor(header) {
43271
- const internals = this[$internals] = (this[$internals] = {
43272
- accessors: {}
43273
- });
43542
+ const internals =
43543
+ (this[$internals] =
43544
+ this[$internals] =
43545
+ {
43546
+ accessors: {},
43547
+ });
43274
43548
 
43275
43549
  const accessors = internals.accessors;
43276
43550
  const prototype = this.prototype;
@@ -43290,17 +43564,24 @@ class AxiosHeaders {
43290
43564
  }
43291
43565
  }
43292
43566
 
43293
- AxiosHeaders.accessor(['Content-Type', 'Content-Length', 'Accept', 'Accept-Encoding', 'User-Agent', 'Authorization']);
43567
+ AxiosHeaders.accessor([
43568
+ 'Content-Type',
43569
+ 'Content-Length',
43570
+ 'Accept',
43571
+ 'Accept-Encoding',
43572
+ 'User-Agent',
43573
+ 'Authorization',
43574
+ ]);
43294
43575
 
43295
43576
  // reserved names hotfix
43296
- utils$3.reduceDescriptors(AxiosHeaders.prototype, ({value}, key) => {
43577
+ utils$3.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
43297
43578
  let mapped = key[0].toUpperCase() + key.slice(1); // map `set` => `Set`
43298
43579
  return {
43299
43580
  get: () => value,
43300
43581
  set(headerValue) {
43301
43582
  this[mapped] = headerValue;
43302
- }
43303
- }
43583
+ },
43584
+ };
43304
43585
  });
43305
43586
 
43306
43587
  utils$3.freezeMethods(AxiosHeaders);
@@ -43332,25 +43613,23 @@ function isCancel(value) {
43332
43613
  return !!(value && value.__CANCEL__);
43333
43614
  }
43334
43615
 
43335
- /**
43336
- * A `CanceledError` is an object that is thrown when an operation is canceled.
43337
- *
43338
- * @param {string=} message The message.
43339
- * @param {Object=} config The config.
43340
- * @param {Object=} request The request.
43341
- *
43342
- * @returns {CanceledError} The created error.
43343
- */
43344
- function CanceledError(message, config, request) {
43345
- // eslint-disable-next-line no-eq-null,eqeqeq
43346
- AxiosError.call(this, message == null ? 'canceled' : message, AxiosError.ERR_CANCELED, config, request);
43347
- this.name = 'CanceledError';
43616
+ class CanceledError extends AxiosError {
43617
+ /**
43618
+ * A `CanceledError` is an object that is thrown when an operation is canceled.
43619
+ *
43620
+ * @param {string=} message The message.
43621
+ * @param {Object=} config The config.
43622
+ * @param {Object=} request The request.
43623
+ *
43624
+ * @returns {CanceledError} The created error.
43625
+ */
43626
+ constructor(message, config, request) {
43627
+ super(message == null ? 'canceled' : message, AxiosError.ERR_CANCELED, config, request);
43628
+ this.name = 'CanceledError';
43629
+ this.__CANCEL__ = true;
43630
+ }
43348
43631
  }
43349
43632
 
43350
- utils$3.inherits(CanceledError, AxiosError, {
43351
- __CANCEL__: true
43352
- });
43353
-
43354
43633
  /**
43355
43634
  * Resolve or reject a Promise based on response status.
43356
43635
  *
@@ -43365,19 +43644,23 @@ function settle(resolve, reject, response) {
43365
43644
  if (!response.status || !validateStatus || validateStatus(response.status)) {
43366
43645
  resolve(response);
43367
43646
  } else {
43368
- reject(new AxiosError(
43369
- 'Request failed with status code ' + response.status,
43370
- [AxiosError.ERR_BAD_REQUEST, AxiosError.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],
43371
- response.config,
43372
- response.request,
43373
- response
43374
- ));
43647
+ reject(
43648
+ new AxiosError(
43649
+ 'Request failed with status code ' + response.status,
43650
+ [AxiosError.ERR_BAD_REQUEST, AxiosError.ERR_BAD_RESPONSE][
43651
+ Math.floor(response.status / 100) - 4
43652
+ ],
43653
+ response.config,
43654
+ response.request,
43655
+ response
43656
+ )
43657
+ );
43375
43658
  }
43376
43659
  }
43377
43660
 
43378
43661
  function parseProtocol(url) {
43379
43662
  const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
43380
- return match && match[1] || '';
43663
+ return (match && match[1]) || '';
43381
43664
  }
43382
43665
 
43383
43666
  /**
@@ -43428,7 +43711,7 @@ function speedometer(samplesCount, min) {
43428
43711
 
43429
43712
  const passed = startedAt && now - startedAt;
43430
43713
 
43431
- return passed ? Math.round(bytesCount * 1000 / passed) : undefined;
43714
+ return passed ? Math.round((bytesCount * 1000) / passed) : undefined;
43432
43715
  };
43433
43716
  }
43434
43717
 
@@ -43451,13 +43734,13 @@ function throttle(fn, freq) {
43451
43734
  clearTimeout(timer);
43452
43735
  timer = null;
43453
43736
  }
43454
- fn.apply(null, args);
43737
+ fn(...args);
43455
43738
  };
43456
43739
 
43457
43740
  const throttled = (...args) => {
43458
43741
  const now = Date.now();
43459
43742
  const passed = now - timestamp;
43460
- if ( passed >= threshold) {
43743
+ if (passed >= threshold) {
43461
43744
  invoke(args, now);
43462
43745
  } else {
43463
43746
  lastArgs = args;
@@ -43479,7 +43762,7 @@ const progressEventReducer = (listener, isDownloadStream, freq = 3) => {
43479
43762
  let bytesNotified = 0;
43480
43763
  const _speedometer = speedometer(50, 250);
43481
43764
 
43482
- return throttle(e => {
43765
+ return throttle((e) => {
43483
43766
  const loaded = e.loaded;
43484
43767
  const total = e.lengthComputable ? e.total : undefined;
43485
43768
  const progressBytes = loaded - bytesNotified;
@@ -43491,13 +43774,13 @@ const progressEventReducer = (listener, isDownloadStream, freq = 3) => {
43491
43774
  const data = {
43492
43775
  loaded,
43493
43776
  total,
43494
- progress: total ? (loaded / total) : undefined,
43777
+ progress: total ? loaded / total : undefined,
43495
43778
  bytes: progressBytes,
43496
43779
  rate: rate ? rate : undefined,
43497
43780
  estimated: rate && total && inRange ? (total - loaded) / rate : undefined,
43498
43781
  event: e,
43499
43782
  lengthComputable: total != null,
43500
- [isDownloadStream ? 'download' : 'upload']: true
43783
+ [isDownloadStream ? 'download' : 'upload']: true,
43501
43784
  };
43502
43785
 
43503
43786
  listener(data);
@@ -43507,66 +43790,82 @@ const progressEventReducer = (listener, isDownloadStream, freq = 3) => {
43507
43790
  const progressEventDecorator = (total, throttled) => {
43508
43791
  const lengthComputable = total != null;
43509
43792
 
43510
- return [(loaded) => throttled[0]({
43511
- lengthComputable,
43512
- total,
43513
- loaded
43514
- }), throttled[1]];
43793
+ return [
43794
+ (loaded) =>
43795
+ throttled[0]({
43796
+ lengthComputable,
43797
+ total,
43798
+ loaded,
43799
+ }),
43800
+ throttled[1],
43801
+ ];
43515
43802
  };
43516
43803
 
43517
- const asyncDecorator = (fn) => (...args) => utils$3.asap(() => fn(...args));
43518
-
43519
- var isURLSameOrigin = platform.hasStandardBrowserEnv ? ((origin, isMSIE) => (url) => {
43520
- url = new URL(url, platform.origin);
43804
+ const asyncDecorator =
43805
+ (fn) =>
43806
+ (...args) =>
43807
+ utils$3.asap(() => fn(...args));
43521
43808
 
43522
- return (
43523
- origin.protocol === url.protocol &&
43524
- origin.host === url.host &&
43525
- (isMSIE || origin.port === url.port)
43526
- );
43527
- })(
43528
- new URL(platform.origin),
43529
- platform.navigator && /(msie|trident)/i.test(platform.navigator.userAgent)
43530
- ) : () => true;
43809
+ var isURLSameOrigin = platform.hasStandardBrowserEnv
43810
+ ? ((origin, isMSIE) => (url) => {
43811
+ url = new URL(url, platform.origin);
43531
43812
 
43532
- var cookies = platform.hasStandardBrowserEnv ?
43533
-
43534
- // Standard browser envs support document.cookie
43535
- {
43536
- write(name, value, expires, path, domain, secure) {
43537
- const cookie = [name + '=' + encodeURIComponent(value)];
43538
-
43539
- utils$3.isNumber(expires) && cookie.push('expires=' + new Date(expires).toGMTString());
43813
+ return (
43814
+ origin.protocol === url.protocol &&
43815
+ origin.host === url.host &&
43816
+ (isMSIE || origin.port === url.port)
43817
+ );
43818
+ })(
43819
+ new URL(platform.origin),
43820
+ platform.navigator && /(msie|trident)/i.test(platform.navigator.userAgent)
43821
+ )
43822
+ : () => true;
43540
43823
 
43541
- utils$3.isString(path) && cookie.push('path=' + path);
43824
+ var cookies = platform.hasStandardBrowserEnv
43825
+ ? // Standard browser envs support document.cookie
43826
+ {
43827
+ write(name, value, expires, path, domain, secure, sameSite) {
43828
+ if (typeof document === 'undefined') return;
43542
43829
 
43543
- utils$3.isString(domain) && cookie.push('domain=' + domain);
43830
+ const cookie = [`${name}=${encodeURIComponent(value)}`];
43544
43831
 
43545
- secure === true && cookie.push('secure');
43832
+ if (utils$3.isNumber(expires)) {
43833
+ cookie.push(`expires=${new Date(expires).toUTCString()}`);
43834
+ }
43835
+ if (utils$3.isString(path)) {
43836
+ cookie.push(`path=${path}`);
43837
+ }
43838
+ if (utils$3.isString(domain)) {
43839
+ cookie.push(`domain=${domain}`);
43840
+ }
43841
+ if (secure === true) {
43842
+ cookie.push('secure');
43843
+ }
43844
+ if (utils$3.isString(sameSite)) {
43845
+ cookie.push(`SameSite=${sameSite}`);
43846
+ }
43546
43847
 
43547
- document.cookie = cookie.join('; ');
43548
- },
43848
+ document.cookie = cookie.join('; ');
43849
+ },
43549
43850
 
43550
- read(name) {
43551
- const match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)'));
43552
- return (match ? decodeURIComponent(match[3]) : null);
43553
- },
43851
+ read(name) {
43852
+ if (typeof document === 'undefined') return null;
43853
+ const match = document.cookie.match(new RegExp('(?:^|; )' + name + '=([^;]*)'));
43854
+ return match ? decodeURIComponent(match[1]) : null;
43855
+ },
43554
43856
 
43555
- remove(name) {
43556
- this.write(name, '', Date.now() - 86400000);
43857
+ remove(name) {
43858
+ this.write(name, '', Date.now() - 86400000, '/');
43859
+ },
43557
43860
  }
43558
- }
43559
-
43560
- :
43561
-
43562
- // Non-standard browser env (web workers, react-native) lack needed support.
43563
- {
43564
- write() {},
43565
- read() {
43566
- return null;
43567
- },
43568
- remove() {}
43569
- };
43861
+ : // Non-standard browser env (web workers, react-native) lack needed support.
43862
+ {
43863
+ write() {},
43864
+ read() {
43865
+ return null;
43866
+ },
43867
+ remove() {},
43868
+ };
43570
43869
 
43571
43870
  /**
43572
43871
  * Determines whether the specified URL is absolute
@@ -43579,6 +43878,10 @@ function isAbsoluteURL(url) {
43579
43878
  // A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL).
43580
43879
  // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
43581
43880
  // by any combination of letters, digits, plus, period, or hyphen.
43881
+ if (typeof url !== 'string') {
43882
+ return false;
43883
+ }
43884
+
43582
43885
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
43583
43886
  }
43584
43887
 
@@ -43614,7 +43917,7 @@ function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
43614
43917
  return requestedURL;
43615
43918
  }
43616
43919
 
43617
- const headersToObject = (thing) => thing instanceof AxiosHeaders ? { ...thing } : thing;
43920
+ const headersToObject = (thing) => (thing instanceof AxiosHeaders ? { ...thing } : thing);
43618
43921
 
43619
43922
  /**
43620
43923
  * Config-specific merge-function which creates a new config-object
@@ -43632,7 +43935,7 @@ function mergeConfig(config1, config2) {
43632
43935
 
43633
43936
  function getMergedValue(target, source, prop, caseless) {
43634
43937
  if (utils$3.isPlainObject(target) && utils$3.isPlainObject(source)) {
43635
- return utils$3.merge.call({caseless}, target, source);
43938
+ return utils$3.merge.call({ caseless }, target, source);
43636
43939
  } else if (utils$3.isPlainObject(source)) {
43637
43940
  return utils$3.merge({}, source);
43638
43941
  } else if (utils$3.isArray(source)) {
@@ -43641,12 +43944,11 @@ function mergeConfig(config1, config2) {
43641
43944
  return source;
43642
43945
  }
43643
43946
 
43644
- // eslint-disable-next-line consistent-return
43645
- function mergeDeepProperties(a, b, prop , caseless) {
43947
+ function mergeDeepProperties(a, b, prop, caseless) {
43646
43948
  if (!utils$3.isUndefined(b)) {
43647
- return getMergedValue(a, b, prop , caseless);
43949
+ return getMergedValue(a, b, prop, caseless);
43648
43950
  } else if (!utils$3.isUndefined(a)) {
43649
- return getMergedValue(undefined, a, prop , caseless);
43951
+ return getMergedValue(undefined, a, prop, caseless);
43650
43952
  }
43651
43953
  }
43652
43954
 
@@ -43704,11 +44006,13 @@ function mergeConfig(config1, config2) {
43704
44006
  socketPath: defaultToConfig2,
43705
44007
  responseEncoding: defaultToConfig2,
43706
44008
  validateStatus: mergeDirectKeys,
43707
- headers: (a, b , prop) => mergeDeepProperties(headersToObject(a), headersToObject(b),prop, true)
44009
+ headers: (a, b, prop) =>
44010
+ mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true),
43708
44011
  };
43709
44012
 
43710
- utils$3.forEach(Object.keys(Object.assign({}, config1, config2)), function computeConfigValue(prop) {
43711
- const merge = mergeMap[prop] || mergeDeepProperties;
44013
+ utils$3.forEach(Object.keys({ ...config1, ...config2 }), function computeConfigValue(prop) {
44014
+ if (prop === '__proto__' || prop === 'constructor' || prop === 'prototype') return;
44015
+ const merge = utils$3.hasOwnProp(mergeMap, prop) ? mergeMap[prop] : mergeDeepProperties;
43712
44016
  const configValue = merge(config1[prop], config2[prop], prop);
43713
44017
  (utils$3.isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue);
43714
44018
  });
@@ -43719,28 +44023,42 @@ function mergeConfig(config1, config2) {
43719
44023
  var resolveConfig = (config) => {
43720
44024
  const newConfig = mergeConfig({}, config);
43721
44025
 
43722
- let {data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth} = newConfig;
44026
+ let { data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth } = newConfig;
43723
44027
 
43724
44028
  newConfig.headers = headers = AxiosHeaders.from(headers);
43725
44029
 
43726
- newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls), config.params, config.paramsSerializer);
44030
+ newConfig.url = buildURL(
44031
+ buildFullPath(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls),
44032
+ config.params,
44033
+ config.paramsSerializer
44034
+ );
43727
44035
 
43728
44036
  // HTTP basic authentication
43729
44037
  if (auth) {
43730
- headers.set('Authorization', 'Basic ' +
43731
- btoa((auth.username || '') + ':' + (auth.password ? unescape(encodeURIComponent(auth.password)) : ''))
44038
+ headers.set(
44039
+ 'Authorization',
44040
+ 'Basic ' +
44041
+ btoa(
44042
+ (auth.username || '') +
44043
+ ':' +
44044
+ (auth.password ? unescape(encodeURIComponent(auth.password)) : '')
44045
+ )
43732
44046
  );
43733
44047
  }
43734
44048
 
43735
- let contentType;
43736
-
43737
44049
  if (utils$3.isFormData(data)) {
43738
44050
  if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv) {
43739
- headers.setContentType(undefined); // Let the browser set it
43740
- } else if ((contentType = headers.getContentType()) !== false) {
43741
- // fix semicolon duplication issue for ReactNative FormData implementation
43742
- const [type, ...tokens] = contentType ? contentType.split(';').map(token => token.trim()).filter(Boolean) : [];
43743
- headers.setContentType([type || 'multipart/form-data', ...tokens].join('; '));
44051
+ headers.setContentType(undefined); // browser handles it
44052
+ } else if (utils$3.isFunction(data.getHeaders)) {
44053
+ // Node.js FormData (like form-data package)
44054
+ const formHeaders = data.getHeaders();
44055
+ // Only set safe headers to avoid overwriting security headers
44056
+ const allowedHeaders = ['content-type', 'content-length'];
44057
+ Object.entries(formHeaders).forEach(([key, val]) => {
44058
+ if (allowedHeaders.includes(key.toLowerCase())) {
44059
+ headers.set(key, val);
44060
+ }
44061
+ });
43744
44062
  }
43745
44063
  }
43746
44064
 
@@ -43766,193 +44084,218 @@ var resolveConfig = (config) => {
43766
44084
 
43767
44085
  const isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';
43768
44086
 
43769
- var xhrAdapter = isXHRAdapterSupported && function (config) {
43770
- return new Promise(function dispatchXhrRequest(resolve, reject) {
43771
- const _config = resolveConfig(config);
43772
- let requestData = _config.data;
43773
- const requestHeaders = AxiosHeaders.from(_config.headers).normalize();
43774
- let {responseType, onUploadProgress, onDownloadProgress} = _config;
43775
- let onCanceled;
43776
- let uploadThrottled, downloadThrottled;
43777
- let flushUpload, flushDownload;
44087
+ var xhrAdapter = isXHRAdapterSupported &&
44088
+ function (config) {
44089
+ return new Promise(function dispatchXhrRequest(resolve, reject) {
44090
+ const _config = resolveConfig(config);
44091
+ let requestData = _config.data;
44092
+ const requestHeaders = AxiosHeaders.from(_config.headers).normalize();
44093
+ let { responseType, onUploadProgress, onDownloadProgress } = _config;
44094
+ let onCanceled;
44095
+ let uploadThrottled, downloadThrottled;
44096
+ let flushUpload, flushDownload;
43778
44097
 
43779
- function done() {
43780
- flushUpload && flushUpload(); // flush events
43781
- flushDownload && flushDownload(); // flush events
44098
+ function done() {
44099
+ flushUpload && flushUpload(); // flush events
44100
+ flushDownload && flushDownload(); // flush events
43782
44101
 
43783
- _config.cancelToken && _config.cancelToken.unsubscribe(onCanceled);
44102
+ _config.cancelToken && _config.cancelToken.unsubscribe(onCanceled);
43784
44103
 
43785
- _config.signal && _config.signal.removeEventListener('abort', onCanceled);
43786
- }
44104
+ _config.signal && _config.signal.removeEventListener('abort', onCanceled);
44105
+ }
43787
44106
 
43788
- let request = new XMLHttpRequest();
44107
+ let request = new XMLHttpRequest();
43789
44108
 
43790
- request.open(_config.method.toUpperCase(), _config.url, true);
44109
+ request.open(_config.method.toUpperCase(), _config.url, true);
43791
44110
 
43792
- // Set the request timeout in MS
43793
- request.timeout = _config.timeout;
44111
+ // Set the request timeout in MS
44112
+ request.timeout = _config.timeout;
43794
44113
 
43795
- function onloadend() {
43796
- if (!request) {
43797
- return;
44114
+ function onloadend() {
44115
+ if (!request) {
44116
+ return;
44117
+ }
44118
+ // Prepare the response
44119
+ const responseHeaders = AxiosHeaders.from(
44120
+ 'getAllResponseHeaders' in request && request.getAllResponseHeaders()
44121
+ );
44122
+ const responseData =
44123
+ !responseType || responseType === 'text' || responseType === 'json'
44124
+ ? request.responseText
44125
+ : request.response;
44126
+ const response = {
44127
+ data: responseData,
44128
+ status: request.status,
44129
+ statusText: request.statusText,
44130
+ headers: responseHeaders,
44131
+ config,
44132
+ request,
44133
+ };
44134
+
44135
+ settle(
44136
+ function _resolve(value) {
44137
+ resolve(value);
44138
+ done();
44139
+ },
44140
+ function _reject(err) {
44141
+ reject(err);
44142
+ done();
44143
+ },
44144
+ response
44145
+ );
44146
+
44147
+ // Clean up request
44148
+ request = null;
43798
44149
  }
43799
- // Prepare the response
43800
- const responseHeaders = AxiosHeaders.from(
43801
- 'getAllResponseHeaders' in request && request.getAllResponseHeaders()
43802
- );
43803
- const responseData = !responseType || responseType === 'text' || responseType === 'json' ?
43804
- request.responseText : request.response;
43805
- const response = {
43806
- data: responseData,
43807
- status: request.status,
43808
- statusText: request.statusText,
43809
- headers: responseHeaders,
43810
- config,
43811
- request
43812
- };
43813
44150
 
43814
- settle(function _resolve(value) {
43815
- resolve(value);
43816
- done();
43817
- }, function _reject(err) {
43818
- reject(err);
43819
- done();
43820
- }, response);
44151
+ if ('onloadend' in request) {
44152
+ // Use onloadend if available
44153
+ request.onloadend = onloadend;
44154
+ } else {
44155
+ // Listen for ready state to emulate onloadend
44156
+ request.onreadystatechange = function handleLoad() {
44157
+ if (!request || request.readyState !== 4) {
44158
+ return;
44159
+ }
43821
44160
 
43822
- // Clean up request
43823
- request = null;
43824
- }
44161
+ // The request errored out and we didn't get a response, this will be
44162
+ // handled by onerror instead
44163
+ // With one exception: request that using file: protocol, most browsers
44164
+ // will return status as 0 even though it's a successful request
44165
+ if (
44166
+ request.status === 0 &&
44167
+ !(request.responseURL && request.responseURL.indexOf('file:') === 0)
44168
+ ) {
44169
+ return;
44170
+ }
44171
+ // readystate handler is calling before onerror or ontimeout handlers,
44172
+ // so we should call onloadend on the next 'tick'
44173
+ setTimeout(onloadend);
44174
+ };
44175
+ }
43825
44176
 
43826
- if ('onloadend' in request) {
43827
- // Use onloadend if available
43828
- request.onloadend = onloadend;
43829
- } else {
43830
- // Listen for ready state to emulate onloadend
43831
- request.onreadystatechange = function handleLoad() {
43832
- if (!request || request.readyState !== 4) {
44177
+ // Handle browser request cancellation (as opposed to a manual cancellation)
44178
+ request.onabort = function handleAbort() {
44179
+ if (!request) {
43833
44180
  return;
43834
44181
  }
43835
44182
 
43836
- // The request errored out and we didn't get a response, this will be
43837
- // handled by onerror instead
43838
- // With one exception: request that using file: protocol, most browsers
43839
- // will return status as 0 even though it's a successful request
43840
- if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {
43841
- return;
43842
- }
43843
- // readystate handler is calling before onerror or ontimeout handlers,
43844
- // so we should call onloadend on the next 'tick'
43845
- setTimeout(onloadend);
43846
- };
43847
- }
44183
+ reject(new AxiosError('Request aborted', AxiosError.ECONNABORTED, config, request));
43848
44184
 
43849
- // Handle browser request cancellation (as opposed to a manual cancellation)
43850
- request.onabort = function handleAbort() {
43851
- if (!request) {
43852
- return;
43853
- }
44185
+ // Clean up request
44186
+ request = null;
44187
+ };
43854
44188
 
43855
- reject(new AxiosError('Request aborted', AxiosError.ECONNABORTED, config, request));
44189
+ // Handle low level network errors
44190
+ request.onerror = function handleError(event) {
44191
+ // Browsers deliver a ProgressEvent in XHR onerror
44192
+ // (message may be empty; when present, surface it)
44193
+ // See https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/error_event
44194
+ const msg = event && event.message ? event.message : 'Network Error';
44195
+ const err = new AxiosError(msg, AxiosError.ERR_NETWORK, config, request);
44196
+ // attach the underlying event for consumers who want details
44197
+ err.event = event || null;
44198
+ reject(err);
44199
+ request = null;
44200
+ };
43856
44201
 
43857
- // Clean up request
43858
- request = null;
43859
- };
44202
+ // Handle timeout
44203
+ request.ontimeout = function handleTimeout() {
44204
+ let timeoutErrorMessage = _config.timeout
44205
+ ? 'timeout of ' + _config.timeout + 'ms exceeded'
44206
+ : 'timeout exceeded';
44207
+ const transitional = _config.transitional || transitionalDefaults;
44208
+ if (_config.timeoutErrorMessage) {
44209
+ timeoutErrorMessage = _config.timeoutErrorMessage;
44210
+ }
44211
+ reject(
44212
+ new AxiosError(
44213
+ timeoutErrorMessage,
44214
+ transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED,
44215
+ config,
44216
+ request
44217
+ )
44218
+ );
43860
44219
 
43861
- // Handle low level network errors
43862
- request.onerror = function handleError() {
43863
- // Real errors are hidden from us by the browser
43864
- // onerror should only fire if it's a network error
43865
- reject(new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request));
44220
+ // Clean up request
44221
+ request = null;
44222
+ };
43866
44223
 
43867
- // Clean up request
43868
- request = null;
43869
- };
44224
+ // Remove Content-Type if data is undefined
44225
+ requestData === undefined && requestHeaders.setContentType(null);
43870
44226
 
43871
- // Handle timeout
43872
- request.ontimeout = function handleTimeout() {
43873
- let timeoutErrorMessage = _config.timeout ? 'timeout of ' + _config.timeout + 'ms exceeded' : 'timeout exceeded';
43874
- const transitional = _config.transitional || transitionalDefaults;
43875
- if (_config.timeoutErrorMessage) {
43876
- timeoutErrorMessage = _config.timeoutErrorMessage;
44227
+ // Add headers to the request
44228
+ if ('setRequestHeader' in request) {
44229
+ utils$3.forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) {
44230
+ request.setRequestHeader(key, val);
44231
+ });
43877
44232
  }
43878
- reject(new AxiosError(
43879
- timeoutErrorMessage,
43880
- transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED,
43881
- config,
43882
- request));
43883
44233
 
43884
- // Clean up request
43885
- request = null;
43886
- };
43887
-
43888
- // Remove Content-Type if data is undefined
43889
- requestData === undefined && requestHeaders.setContentType(null);
44234
+ // Add withCredentials to request if needed
44235
+ if (!utils$3.isUndefined(_config.withCredentials)) {
44236
+ request.withCredentials = !!_config.withCredentials;
44237
+ }
43890
44238
 
43891
- // Add headers to the request
43892
- if ('setRequestHeader' in request) {
43893
- utils$3.forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) {
43894
- request.setRequestHeader(key, val);
43895
- });
43896
- }
44239
+ // Add responseType to request if needed
44240
+ if (responseType && responseType !== 'json') {
44241
+ request.responseType = _config.responseType;
44242
+ }
43897
44243
 
43898
- // Add withCredentials to request if needed
43899
- if (!utils$3.isUndefined(_config.withCredentials)) {
43900
- request.withCredentials = !!_config.withCredentials;
43901
- }
44244
+ // Handle progress if needed
44245
+ if (onDownloadProgress) {
44246
+ [downloadThrottled, flushDownload] = progressEventReducer(onDownloadProgress, true);
44247
+ request.addEventListener('progress', downloadThrottled);
44248
+ }
43902
44249
 
43903
- // Add responseType to request if needed
43904
- if (responseType && responseType !== 'json') {
43905
- request.responseType = _config.responseType;
43906
- }
44250
+ // Not all browsers support upload events
44251
+ if (onUploadProgress && request.upload) {
44252
+ [uploadThrottled, flushUpload] = progressEventReducer(onUploadProgress);
43907
44253
 
43908
- // Handle progress if needed
43909
- if (onDownloadProgress) {
43910
- ([downloadThrottled, flushDownload] = progressEventReducer(onDownloadProgress, true));
43911
- request.addEventListener('progress', downloadThrottled);
43912
- }
44254
+ request.upload.addEventListener('progress', uploadThrottled);
43913
44255
 
43914
- // Not all browsers support upload events
43915
- if (onUploadProgress && request.upload) {
43916
- ([uploadThrottled, flushUpload] = progressEventReducer(onUploadProgress));
43917
-
43918
- request.upload.addEventListener('progress', uploadThrottled);
44256
+ request.upload.addEventListener('loadend', flushUpload);
44257
+ }
43919
44258
 
43920
- request.upload.addEventListener('loadend', flushUpload);
43921
- }
44259
+ if (_config.cancelToken || _config.signal) {
44260
+ // Handle cancellation
44261
+ // eslint-disable-next-line func-names
44262
+ onCanceled = (cancel) => {
44263
+ if (!request) {
44264
+ return;
44265
+ }
44266
+ reject(!cancel || cancel.type ? new CanceledError(null, config, request) : cancel);
44267
+ request.abort();
44268
+ request = null;
44269
+ };
43922
44270
 
43923
- if (_config.cancelToken || _config.signal) {
43924
- // Handle cancellation
43925
- // eslint-disable-next-line func-names
43926
- onCanceled = cancel => {
43927
- if (!request) {
43928
- return;
44271
+ _config.cancelToken && _config.cancelToken.subscribe(onCanceled);
44272
+ if (_config.signal) {
44273
+ _config.signal.aborted
44274
+ ? onCanceled()
44275
+ : _config.signal.addEventListener('abort', onCanceled);
43929
44276
  }
43930
- reject(!cancel || cancel.type ? new CanceledError(null, config, request) : cancel);
43931
- request.abort();
43932
- request = null;
43933
- };
43934
-
43935
- _config.cancelToken && _config.cancelToken.subscribe(onCanceled);
43936
- if (_config.signal) {
43937
- _config.signal.aborted ? onCanceled() : _config.signal.addEventListener('abort', onCanceled);
43938
44277
  }
43939
- }
43940
44278
 
43941
- const protocol = parseProtocol(_config.url);
43942
-
43943
- if (protocol && platform.protocols.indexOf(protocol) === -1) {
43944
- reject(new AxiosError('Unsupported protocol ' + protocol + ':', AxiosError.ERR_BAD_REQUEST, config));
43945
- return;
43946
- }
44279
+ const protocol = parseProtocol(_config.url);
43947
44280
 
44281
+ if (protocol && platform.protocols.indexOf(protocol) === -1) {
44282
+ reject(
44283
+ new AxiosError(
44284
+ 'Unsupported protocol ' + protocol + ':',
44285
+ AxiosError.ERR_BAD_REQUEST,
44286
+ config
44287
+ )
44288
+ );
44289
+ return;
44290
+ }
43948
44291
 
43949
- // Send the request
43950
- request.send(requestData || null);
43951
- });
43952
- };
44292
+ // Send the request
44293
+ request.send(requestData || null);
44294
+ });
44295
+ };
43953
44296
 
43954
44297
  const composeSignals = (signals, timeout) => {
43955
- const {length} = (signals = signals ? signals.filter(Boolean) : []);
44298
+ const { length } = (signals = signals ? signals.filter(Boolean) : []);
43956
44299
 
43957
44300
  if (timeout || length) {
43958
44301
  let controller = new AbortController();
@@ -43964,21 +44307,29 @@ const composeSignals = (signals, timeout) => {
43964
44307
  aborted = true;
43965
44308
  unsubscribe();
43966
44309
  const err = reason instanceof Error ? reason : this.reason;
43967
- controller.abort(err instanceof AxiosError ? err : new CanceledError(err instanceof Error ? err.message : err));
44310
+ controller.abort(
44311
+ err instanceof AxiosError
44312
+ ? err
44313
+ : new CanceledError(err instanceof Error ? err.message : err)
44314
+ );
43968
44315
  }
43969
44316
  };
43970
44317
 
43971
- let timer = timeout && setTimeout(() => {
43972
- timer = null;
43973
- onabort(new AxiosError(`timeout ${timeout} of ms exceeded`, AxiosError.ETIMEDOUT));
43974
- }, timeout);
44318
+ let timer =
44319
+ timeout &&
44320
+ setTimeout(() => {
44321
+ timer = null;
44322
+ onabort(new AxiosError(`timeout of ${timeout}ms exceeded`, AxiosError.ETIMEDOUT));
44323
+ }, timeout);
43975
44324
 
43976
44325
  const unsubscribe = () => {
43977
44326
  if (signals) {
43978
44327
  timer && clearTimeout(timer);
43979
44328
  timer = null;
43980
- signals.forEach(signal => {
43981
- signal.unsubscribe ? signal.unsubscribe(onabort) : signal.removeEventListener('abort', onabort);
44329
+ signals.forEach((signal) => {
44330
+ signal.unsubscribe
44331
+ ? signal.unsubscribe(onabort)
44332
+ : signal.removeEventListener('abort', onabort);
43982
44333
  });
43983
44334
  signals = null;
43984
44335
  }
@@ -43986,7 +44337,7 @@ const composeSignals = (signals, timeout) => {
43986
44337
 
43987
44338
  signals.forEach((signal) => signal.addEventListener('abort', onabort));
43988
44339
 
43989
- const {signal} = controller;
44340
+ const { signal } = controller;
43990
44341
 
43991
44342
  signal.unsubscribe = () => utils$3.asap(unsubscribe);
43992
44343
 
@@ -44027,7 +44378,7 @@ const readStream = async function* (stream) {
44027
44378
  const reader = stream.getReader();
44028
44379
  try {
44029
44380
  for (;;) {
44030
- const {done, value} = await reader.read();
44381
+ const { done, value } = await reader.read();
44031
44382
  if (done) {
44032
44383
  break;
44033
44384
  }
@@ -44050,327 +44401,486 @@ const trackStream = (stream, chunkSize, onProgress, onFinish) => {
44050
44401
  }
44051
44402
  };
44052
44403
 
44053
- return new ReadableStream({
44054
- async pull(controller) {
44055
- try {
44056
- const {done, value} = await iterator.next();
44404
+ return new ReadableStream(
44405
+ {
44406
+ async pull(controller) {
44407
+ try {
44408
+ const { done, value } = await iterator.next();
44057
44409
 
44058
- if (done) {
44059
- _onFinish();
44060
- controller.close();
44061
- return;
44062
- }
44410
+ if (done) {
44411
+ _onFinish();
44412
+ controller.close();
44413
+ return;
44414
+ }
44063
44415
 
44064
- let len = value.byteLength;
44065
- if (onProgress) {
44066
- let loadedBytes = bytes += len;
44067
- onProgress(loadedBytes);
44416
+ let len = value.byteLength;
44417
+ if (onProgress) {
44418
+ let loadedBytes = (bytes += len);
44419
+ onProgress(loadedBytes);
44420
+ }
44421
+ controller.enqueue(new Uint8Array(value));
44422
+ } catch (err) {
44423
+ _onFinish(err);
44424
+ throw err;
44068
44425
  }
44069
- controller.enqueue(new Uint8Array(value));
44070
- } catch (err) {
44071
- _onFinish(err);
44072
- throw err;
44073
- }
44426
+ },
44427
+ cancel(reason) {
44428
+ _onFinish(reason);
44429
+ return iterator.return();
44430
+ },
44074
44431
  },
44075
- cancel(reason) {
44076
- _onFinish(reason);
44077
- return iterator.return();
44432
+ {
44433
+ highWaterMark: 2,
44078
44434
  }
44079
- }, {
44080
- highWaterMark: 2
44081
- })
44435
+ );
44082
44436
  };
44083
44437
 
44084
- const isFetchSupported = typeof fetch === 'function' && typeof Request === 'function' && typeof Response === 'function';
44085
- const isReadableStreamSupported = isFetchSupported && typeof ReadableStream === 'function';
44438
+ const DEFAULT_CHUNK_SIZE = 64 * 1024;
44439
+
44440
+ const { isFunction: isFunction$1 } = utils$3;
44086
44441
 
44087
- // used only inside the fetch adapter
44088
- const encodeText = isFetchSupported && (typeof TextEncoder === 'function' ?
44089
- ((encoder) => (str) => encoder.encode(str))(new TextEncoder()) :
44090
- async (str) => new Uint8Array(await new Response(str).arrayBuffer())
44091
- );
44442
+ const globalFetchAPI = (({ Request, Response }) => ({
44443
+ Request,
44444
+ Response,
44445
+ }))(utils$3.global);
44446
+
44447
+ const { ReadableStream: ReadableStream$1, TextEncoder: TextEncoder$1 } = utils$3.global;
44092
44448
 
44093
44449
  const test = (fn, ...args) => {
44094
44450
  try {
44095
44451
  return !!fn(...args);
44096
44452
  } catch (e) {
44097
- return false
44453
+ return false;
44098
44454
  }
44099
44455
  };
44100
44456
 
44101
- const supportsRequestStream = isReadableStreamSupported && test(() => {
44102
- let duplexAccessed = false;
44103
-
44104
- const hasContentType = new Request(platform.origin, {
44105
- body: new ReadableStream(),
44106
- method: 'POST',
44107
- get duplex() {
44108
- duplexAccessed = true;
44109
- return 'half';
44457
+ const factory = (env) => {
44458
+ env = utils$3.merge.call(
44459
+ {
44460
+ skipUndefined: true,
44110
44461
  },
44111
- }).headers.has('Content-Type');
44462
+ globalFetchAPI,
44463
+ env
44464
+ );
44112
44465
 
44113
- return duplexAccessed && !hasContentType;
44114
- });
44466
+ const { fetch: envFetch, Request, Response } = env;
44467
+ const isFetchSupported = envFetch ? isFunction$1(envFetch) : typeof fetch === 'function';
44468
+ const isRequestSupported = isFunction$1(Request);
44469
+ const isResponseSupported = isFunction$1(Response);
44115
44470
 
44116
- const DEFAULT_CHUNK_SIZE = 64 * 1024;
44471
+ if (!isFetchSupported) {
44472
+ return false;
44473
+ }
44117
44474
 
44118
- const supportsResponseStream = isReadableStreamSupported &&
44119
- test(() => utils$3.isReadableStream(new Response('').body));
44475
+ const isReadableStreamSupported = isFetchSupported && isFunction$1(ReadableStream$1);
44120
44476
 
44477
+ const encodeText =
44478
+ isFetchSupported &&
44479
+ (typeof TextEncoder$1 === 'function'
44480
+ ? (
44481
+ (encoder) => (str) =>
44482
+ encoder.encode(str)
44483
+ )(new TextEncoder$1())
44484
+ : async (str) => new Uint8Array(await new Request(str).arrayBuffer()));
44121
44485
 
44122
- const resolvers = {
44123
- stream: supportsResponseStream && ((res) => res.body)
44124
- };
44486
+ const supportsRequestStream =
44487
+ isRequestSupported &&
44488
+ isReadableStreamSupported &&
44489
+ test(() => {
44490
+ let duplexAccessed = false;
44125
44491
 
44126
- isFetchSupported && (((res) => {
44127
- ['text', 'arrayBuffer', 'blob', 'formData', 'stream'].forEach(type => {
44128
- !resolvers[type] && (resolvers[type] = utils$3.isFunction(res[type]) ? (res) => res[type]() :
44129
- (_, config) => {
44130
- throw new AxiosError(`Response type '${type}' is not supported`, AxiosError.ERR_NOT_SUPPORT, config);
44131
- });
44132
- });
44133
- })(new Response));
44492
+ const body = new ReadableStream$1();
44134
44493
 
44135
- const getBodyLength = async (body) => {
44136
- if (body == null) {
44137
- return 0;
44138
- }
44494
+ const hasContentType = new Request(platform.origin, {
44495
+ body,
44496
+ method: 'POST',
44497
+ get duplex() {
44498
+ duplexAccessed = true;
44499
+ return 'half';
44500
+ },
44501
+ }).headers.has('Content-Type');
44139
44502
 
44140
- if(utils$3.isBlob(body)) {
44141
- return body.size;
44142
- }
44503
+ body.cancel();
44143
44504
 
44144
- if(utils$3.isSpecCompliantForm(body)) {
44145
- const _request = new Request(platform.origin, {
44146
- method: 'POST',
44147
- body,
44505
+ return duplexAccessed && !hasContentType;
44148
44506
  });
44149
- return (await _request.arrayBuffer()).byteLength;
44150
- }
44151
44507
 
44152
- if(utils$3.isArrayBufferView(body) || utils$3.isArrayBuffer(body)) {
44153
- return body.byteLength;
44154
- }
44508
+ const supportsResponseStream =
44509
+ isResponseSupported &&
44510
+ isReadableStreamSupported &&
44511
+ test(() => utils$3.isReadableStream(new Response('').body));
44155
44512
 
44156
- if(utils$3.isURLSearchParams(body)) {
44157
- body = body + '';
44158
- }
44513
+ const resolvers = {
44514
+ stream: supportsResponseStream && ((res) => res.body),
44515
+ };
44159
44516
 
44160
- if(utils$3.isString(body)) {
44161
- return (await encodeText(body)).byteLength;
44162
- }
44163
- };
44517
+ isFetchSupported &&
44518
+ (() => {
44519
+ ['text', 'arrayBuffer', 'blob', 'formData', 'stream'].forEach((type) => {
44520
+ !resolvers[type] &&
44521
+ (resolvers[type] = (res, config) => {
44522
+ let method = res && res[type];
44164
44523
 
44165
- const resolveBodyLength = async (headers, body) => {
44166
- const length = utils$3.toFiniteNumber(headers.getContentLength());
44524
+ if (method) {
44525
+ return method.call(res);
44526
+ }
44167
44527
 
44168
- return length == null ? getBodyLength(body) : length;
44169
- };
44528
+ throw new AxiosError(
44529
+ `Response type '${type}' is not supported`,
44530
+ AxiosError.ERR_NOT_SUPPORT,
44531
+ config
44532
+ );
44533
+ });
44534
+ });
44535
+ })();
44170
44536
 
44171
- var fetchAdapter = isFetchSupported && (async (config) => {
44172
- let {
44173
- url,
44174
- method,
44175
- data,
44176
- signal,
44177
- cancelToken,
44178
- timeout,
44179
- onDownloadProgress,
44180
- onUploadProgress,
44181
- responseType,
44182
- headers,
44183
- withCredentials = 'same-origin',
44184
- fetchOptions
44185
- } = resolveConfig(config);
44537
+ const getBodyLength = async (body) => {
44538
+ if (body == null) {
44539
+ return 0;
44540
+ }
44186
44541
 
44187
- responseType = responseType ? (responseType + '').toLowerCase() : 'text';
44542
+ if (utils$3.isBlob(body)) {
44543
+ return body.size;
44544
+ }
44545
+
44546
+ if (utils$3.isSpecCompliantForm(body)) {
44547
+ const _request = new Request(platform.origin, {
44548
+ method: 'POST',
44549
+ body,
44550
+ });
44551
+ return (await _request.arrayBuffer()).byteLength;
44552
+ }
44188
44553
 
44189
- let composedSignal = composeSignals([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
44554
+ if (utils$3.isArrayBufferView(body) || utils$3.isArrayBuffer(body)) {
44555
+ return body.byteLength;
44556
+ }
44190
44557
 
44191
- let request;
44558
+ if (utils$3.isURLSearchParams(body)) {
44559
+ body = body + '';
44560
+ }
44192
44561
 
44193
- const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {
44194
- composedSignal.unsubscribe();
44195
- });
44562
+ if (utils$3.isString(body)) {
44563
+ return (await encodeText(body)).byteLength;
44564
+ }
44565
+ };
44196
44566
 
44197
- let requestContentLength;
44567
+ const resolveBodyLength = async (headers, body) => {
44568
+ const length = utils$3.toFiniteNumber(headers.getContentLength());
44198
44569
 
44199
- try {
44200
- if (
44201
- onUploadProgress && supportsRequestStream && method !== 'get' && method !== 'head' &&
44202
- (requestContentLength = await resolveBodyLength(headers, data)) !== 0
44203
- ) {
44204
- let _request = new Request(url, {
44205
- method: 'POST',
44206
- body: data,
44207
- duplex: "half"
44570
+ return length == null ? getBodyLength(body) : length;
44571
+ };
44572
+
44573
+ return async (config) => {
44574
+ let {
44575
+ url,
44576
+ method,
44577
+ data,
44578
+ signal,
44579
+ cancelToken,
44580
+ timeout,
44581
+ onDownloadProgress,
44582
+ onUploadProgress,
44583
+ responseType,
44584
+ headers,
44585
+ withCredentials = 'same-origin',
44586
+ fetchOptions,
44587
+ } = resolveConfig(config);
44588
+
44589
+ let _fetch = envFetch || fetch;
44590
+
44591
+ responseType = responseType ? (responseType + '').toLowerCase() : 'text';
44592
+
44593
+ let composedSignal = composeSignals(
44594
+ [signal, cancelToken && cancelToken.toAbortSignal()],
44595
+ timeout
44596
+ );
44597
+
44598
+ let request = null;
44599
+
44600
+ const unsubscribe =
44601
+ composedSignal &&
44602
+ composedSignal.unsubscribe &&
44603
+ (() => {
44604
+ composedSignal.unsubscribe();
44208
44605
  });
44209
44606
 
44210
- let contentTypeHeader;
44607
+ let requestContentLength;
44211
44608
 
44212
- if (utils$3.isFormData(data) && (contentTypeHeader = _request.headers.get('content-type'))) {
44213
- headers.setContentType(contentTypeHeader);
44214
- }
44609
+ try {
44610
+ if (
44611
+ onUploadProgress &&
44612
+ supportsRequestStream &&
44613
+ method !== 'get' &&
44614
+ method !== 'head' &&
44615
+ (requestContentLength = await resolveBodyLength(headers, data)) !== 0
44616
+ ) {
44617
+ let _request = new Request(url, {
44618
+ method: 'POST',
44619
+ body: data,
44620
+ duplex: 'half',
44621
+ });
44215
44622
 
44216
- if (_request.body) {
44217
- const [onProgress, flush] = progressEventDecorator(
44218
- requestContentLength,
44219
- progressEventReducer(asyncDecorator(onUploadProgress))
44220
- );
44623
+ let contentTypeHeader;
44624
+
44625
+ if (utils$3.isFormData(data) && (contentTypeHeader = _request.headers.get('content-type'))) {
44626
+ headers.setContentType(contentTypeHeader);
44627
+ }
44628
+
44629
+ if (_request.body) {
44630
+ const [onProgress, flush] = progressEventDecorator(
44631
+ requestContentLength,
44632
+ progressEventReducer(asyncDecorator(onUploadProgress))
44633
+ );
44221
44634
 
44222
- data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush);
44635
+ data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush);
44636
+ }
44223
44637
  }
44224
- }
44225
44638
 
44226
- if (!utils$3.isString(withCredentials)) {
44227
- withCredentials = withCredentials ? 'include' : 'omit';
44228
- }
44639
+ if (!utils$3.isString(withCredentials)) {
44640
+ withCredentials = withCredentials ? 'include' : 'omit';
44641
+ }
44229
44642
 
44230
- // Cloudflare Workers throws when credentials are defined
44231
- // see https://github.com/cloudflare/workerd/issues/902
44232
- const isCredentialsSupported = "credentials" in Request.prototype;
44233
- request = new Request(url, {
44234
- ...fetchOptions,
44235
- signal: composedSignal,
44236
- method: method.toUpperCase(),
44237
- headers: headers.normalize().toJSON(),
44238
- body: data,
44239
- duplex: "half",
44240
- credentials: isCredentialsSupported ? withCredentials : undefined
44241
- });
44643
+ // Cloudflare Workers throws when credentials are defined
44644
+ // see https://github.com/cloudflare/workerd/issues/902
44645
+ const isCredentialsSupported = isRequestSupported && 'credentials' in Request.prototype;
44242
44646
 
44243
- let response = await fetch(request, fetchOptions);
44647
+ const resolvedOptions = {
44648
+ ...fetchOptions,
44649
+ signal: composedSignal,
44650
+ method: method.toUpperCase(),
44651
+ headers: headers.normalize().toJSON(),
44652
+ body: data,
44653
+ duplex: 'half',
44654
+ credentials: isCredentialsSupported ? withCredentials : undefined,
44655
+ };
44244
44656
 
44245
- const isStreamResponse = supportsResponseStream && (responseType === 'stream' || responseType === 'response');
44657
+ request = isRequestSupported && new Request(url, resolvedOptions);
44246
44658
 
44247
- if (supportsResponseStream && (onDownloadProgress || (isStreamResponse && unsubscribe))) {
44248
- const options = {};
44659
+ let response = await (isRequestSupported
44660
+ ? _fetch(request, fetchOptions)
44661
+ : _fetch(url, resolvedOptions));
44249
44662
 
44250
- ['status', 'statusText', 'headers'].forEach(prop => {
44251
- options[prop] = response[prop];
44252
- });
44663
+ const isStreamResponse =
44664
+ supportsResponseStream && (responseType === 'stream' || responseType === 'response');
44665
+
44666
+ if (supportsResponseStream && (onDownloadProgress || (isStreamResponse && unsubscribe))) {
44667
+ const options = {};
44253
44668
 
44254
- const responseContentLength = utils$3.toFiniteNumber(response.headers.get('content-length'));
44669
+ ['status', 'statusText', 'headers'].forEach((prop) => {
44670
+ options[prop] = response[prop];
44671
+ });
44255
44672
 
44256
- const [onProgress, flush] = onDownloadProgress && progressEventDecorator(
44257
- responseContentLength,
44258
- progressEventReducer(asyncDecorator(onDownloadProgress), true)
44259
- ) || [];
44673
+ const responseContentLength = utils$3.toFiniteNumber(response.headers.get('content-length'));
44260
44674
 
44261
- response = new Response(
44262
- trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {
44263
- flush && flush();
44264
- unsubscribe && unsubscribe();
44265
- }),
44266
- options
44267
- );
44268
- }
44675
+ const [onProgress, flush] =
44676
+ (onDownloadProgress &&
44677
+ progressEventDecorator(
44678
+ responseContentLength,
44679
+ progressEventReducer(asyncDecorator(onDownloadProgress), true)
44680
+ )) ||
44681
+ [];
44682
+
44683
+ response = new Response(
44684
+ trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {
44685
+ flush && flush();
44686
+ unsubscribe && unsubscribe();
44687
+ }),
44688
+ options
44689
+ );
44690
+ }
44269
44691
 
44270
- responseType = responseType || 'text';
44692
+ responseType = responseType || 'text';
44271
44693
 
44272
- let responseData = await resolvers[utils$3.findKey(resolvers, responseType) || 'text'](response, config);
44694
+ let responseData = await resolvers[utils$3.findKey(resolvers, responseType) || 'text'](
44695
+ response,
44696
+ config
44697
+ );
44273
44698
 
44274
- !isStreamResponse && unsubscribe && unsubscribe();
44699
+ !isStreamResponse && unsubscribe && unsubscribe();
44275
44700
 
44276
- return await new Promise((resolve, reject) => {
44277
- settle(resolve, reject, {
44278
- data: responseData,
44279
- headers: AxiosHeaders.from(response.headers),
44280
- status: response.status,
44281
- statusText: response.statusText,
44282
- config,
44283
- request
44701
+ return await new Promise((resolve, reject) => {
44702
+ settle(resolve, reject, {
44703
+ data: responseData,
44704
+ headers: AxiosHeaders.from(response.headers),
44705
+ status: response.status,
44706
+ statusText: response.statusText,
44707
+ config,
44708
+ request,
44709
+ });
44284
44710
  });
44285
- })
44286
- } catch (err) {
44287
- unsubscribe && unsubscribe();
44711
+ } catch (err) {
44712
+ unsubscribe && unsubscribe();
44713
+
44714
+ if (err && err.name === 'TypeError' && /Load failed|fetch/i.test(err.message)) {
44715
+ throw Object.assign(
44716
+ new AxiosError(
44717
+ 'Network Error',
44718
+ AxiosError.ERR_NETWORK,
44719
+ config,
44720
+ request,
44721
+ err && err.response
44722
+ ),
44723
+ {
44724
+ cause: err.cause || err,
44725
+ }
44726
+ );
44727
+ }
44288
44728
 
44289
- if (err && err.name === 'TypeError' && /Load failed|fetch/i.test(err.message)) {
44290
- throw Object.assign(
44291
- new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request),
44292
- {
44293
- cause: err.cause || err
44294
- }
44295
- )
44729
+ throw AxiosError.from(err, err && err.code, config, request, err && err.response);
44296
44730
  }
44731
+ };
44732
+ };
44733
+
44734
+ const seedCache = new Map();
44735
+
44736
+ const getFetch = (config) => {
44737
+ let env = (config && config.env) || {};
44738
+ const { fetch, Request, Response } = env;
44739
+ const seeds = [Request, Response, fetch];
44740
+
44741
+ let len = seeds.length,
44742
+ i = len,
44743
+ seed,
44744
+ target,
44745
+ map = seedCache;
44297
44746
 
44298
- throw AxiosError.from(err, err && err.code, config, request);
44747
+ while (i--) {
44748
+ seed = seeds[i];
44749
+ target = map.get(seed);
44750
+
44751
+ target === undefined && map.set(seed, (target = i ? new Map() : factory(env)));
44752
+
44753
+ map = target;
44299
44754
  }
44300
- });
44301
44755
 
44756
+ return target;
44757
+ };
44758
+
44759
+ getFetch();
44760
+
44761
+ /**
44762
+ * Known adapters mapping.
44763
+ * Provides environment-specific adapters for Axios:
44764
+ * - `http` for Node.js
44765
+ * - `xhr` for browsers
44766
+ * - `fetch` for fetch API-based requests
44767
+ *
44768
+ * @type {Object<string, Function|Object>}
44769
+ */
44302
44770
  const knownAdapters = {
44303
44771
  http: httpAdapter,
44304
44772
  xhr: xhrAdapter,
44305
- fetch: fetchAdapter
44773
+ fetch: {
44774
+ get: getFetch,
44775
+ },
44306
44776
  };
44307
44777
 
44778
+ // Assign adapter names for easier debugging and identification
44308
44779
  utils$3.forEach(knownAdapters, (fn, value) => {
44309
44780
  if (fn) {
44310
44781
  try {
44311
- Object.defineProperty(fn, 'name', {value});
44782
+ Object.defineProperty(fn, 'name', { value });
44312
44783
  } catch (e) {
44313
44784
  // eslint-disable-next-line no-empty
44314
44785
  }
44315
- Object.defineProperty(fn, 'adapterName', {value});
44786
+ Object.defineProperty(fn, 'adapterName', { value });
44316
44787
  }
44317
44788
  });
44318
44789
 
44790
+ /**
44791
+ * Render a rejection reason string for unknown or unsupported adapters
44792
+ *
44793
+ * @param {string} reason
44794
+ * @returns {string}
44795
+ */
44319
44796
  const renderReason = (reason) => `- ${reason}`;
44320
44797
 
44321
- const isResolvedHandle = (adapter) => utils$3.isFunction(adapter) || adapter === null || adapter === false;
44322
-
44323
- var adapters = {
44324
- getAdapter: (adapters) => {
44325
- adapters = utils$3.isArray(adapters) ? adapters : [adapters];
44798
+ /**
44799
+ * Check if the adapter is resolved (function, null, or false)
44800
+ *
44801
+ * @param {Function|null|false} adapter
44802
+ * @returns {boolean}
44803
+ */
44804
+ const isResolvedHandle = (adapter) =>
44805
+ utils$3.isFunction(adapter) || adapter === null || adapter === false;
44326
44806
 
44327
- const {length} = adapters;
44328
- let nameOrAdapter;
44329
- let adapter;
44807
+ /**
44808
+ * Get the first suitable adapter from the provided list.
44809
+ * Tries each adapter in order until a supported one is found.
44810
+ * Throws an AxiosError if no adapter is suitable.
44811
+ *
44812
+ * @param {Array<string|Function>|string|Function} adapters - Adapter(s) by name or function.
44813
+ * @param {Object} config - Axios request configuration
44814
+ * @throws {AxiosError} If no suitable adapter is available
44815
+ * @returns {Function} The resolved adapter function
44816
+ */
44817
+ function getAdapter(adapters, config) {
44818
+ adapters = utils$3.isArray(adapters) ? adapters : [adapters];
44330
44819
 
44331
- const rejectedReasons = {};
44820
+ const { length } = adapters;
44821
+ let nameOrAdapter;
44822
+ let adapter;
44332
44823
 
44333
- for (let i = 0; i < length; i++) {
44334
- nameOrAdapter = adapters[i];
44335
- let id;
44824
+ const rejectedReasons = {};
44336
44825
 
44337
- adapter = nameOrAdapter;
44826
+ for (let i = 0; i < length; i++) {
44827
+ nameOrAdapter = adapters[i];
44828
+ let id;
44338
44829
 
44339
- if (!isResolvedHandle(nameOrAdapter)) {
44340
- adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];
44830
+ adapter = nameOrAdapter;
44341
44831
 
44342
- if (adapter === undefined) {
44343
- throw new AxiosError(`Unknown adapter '${id}'`);
44344
- }
44345
- }
44832
+ if (!isResolvedHandle(nameOrAdapter)) {
44833
+ adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];
44346
44834
 
44347
- if (adapter) {
44348
- break;
44835
+ if (adapter === undefined) {
44836
+ throw new AxiosError(`Unknown adapter '${id}'`);
44349
44837
  }
44838
+ }
44350
44839
 
44351
- rejectedReasons[id || '#' + i] = adapter;
44840
+ if (adapter && (utils$3.isFunction(adapter) || (adapter = adapter.get(config)))) {
44841
+ break;
44352
44842
  }
44353
44843
 
44354
- if (!adapter) {
44844
+ rejectedReasons[id || '#' + i] = adapter;
44845
+ }
44846
+
44847
+ if (!adapter) {
44848
+ const reasons = Object.entries(rejectedReasons).map(
44849
+ ([id, state]) =>
44850
+ `adapter ${id} ` +
44851
+ (state === false ? 'is not supported by the environment' : 'is not available in the build')
44852
+ );
44355
44853
 
44356
- const reasons = Object.entries(rejectedReasons)
44357
- .map(([id, state]) => `adapter ${id} ` +
44358
- (state === false ? 'is not supported by the environment' : 'is not available in the build')
44359
- );
44854
+ let s = length
44855
+ ? reasons.length > 1
44856
+ ? 'since :\n' + reasons.map(renderReason).join('\n')
44857
+ : ' ' + renderReason(reasons[0])
44858
+ : 'as no adapter specified';
44360
44859
 
44361
- let s = length ?
44362
- (reasons.length > 1 ? 'since :\n' + reasons.map(renderReason).join('\n') : ' ' + renderReason(reasons[0])) :
44363
- 'as no adapter specified';
44860
+ throw new AxiosError(
44861
+ `There is no suitable adapter to dispatch the request ` + s,
44862
+ 'ERR_NOT_SUPPORT'
44863
+ );
44864
+ }
44364
44865
 
44365
- throw new AxiosError(
44366
- `There is no suitable adapter to dispatch the request ` + s,
44367
- 'ERR_NOT_SUPPORT'
44368
- );
44369
- }
44866
+ return adapter;
44867
+ }
44370
44868
 
44371
- return adapter;
44372
- },
44373
- adapters: knownAdapters
44869
+ /**
44870
+ * Exports Axios adapters and utility to resolve an adapter
44871
+ */
44872
+ var adapters = {
44873
+ /**
44874
+ * Resolve an adapter from a list of adapter names or functions.
44875
+ * @type {Function}
44876
+ */
44877
+ getAdapter,
44878
+
44879
+ /**
44880
+ * Exposes all known adapters
44881
+ * @type {Object<string, Function|Object>}
44882
+ */
44883
+ adapters: knownAdapters,
44374
44884
  };
44375
44885
 
44376
44886
  /**
@@ -44403,50 +44913,46 @@ function dispatchRequest(config) {
44403
44913
  config.headers = AxiosHeaders.from(config.headers);
44404
44914
 
44405
44915
  // Transform request data
44406
- config.data = transformData.call(
44407
- config,
44408
- config.transformRequest
44409
- );
44916
+ config.data = transformData.call(config, config.transformRequest);
44410
44917
 
44411
44918
  if (['post', 'put', 'patch'].indexOf(config.method) !== -1) {
44412
44919
  config.headers.setContentType('application/x-www-form-urlencoded', false);
44413
44920
  }
44414
44921
 
44415
- const adapter = adapters.getAdapter(config.adapter || defaults.adapter);
44922
+ const adapter = adapters.getAdapter(config.adapter || defaults.adapter, config);
44416
44923
 
44417
- return adapter(config).then(function onAdapterResolution(response) {
44418
- throwIfCancellationRequested(config);
44419
-
44420
- // Transform response data
44421
- response.data = transformData.call(
44422
- config,
44423
- config.transformResponse,
44424
- response
44425
- );
44426
-
44427
- response.headers = AxiosHeaders.from(response.headers);
44428
-
44429
- return response;
44430
- }, function onAdapterRejection(reason) {
44431
- if (!isCancel(reason)) {
44924
+ return adapter(config).then(
44925
+ function onAdapterResolution(response) {
44432
44926
  throwIfCancellationRequested(config);
44433
44927
 
44434
44928
  // Transform response data
44435
- if (reason && reason.response) {
44436
- reason.response.data = transformData.call(
44437
- config,
44438
- config.transformResponse,
44439
- reason.response
44440
- );
44441
- reason.response.headers = AxiosHeaders.from(reason.response.headers);
44929
+ response.data = transformData.call(config, config.transformResponse, response);
44930
+
44931
+ response.headers = AxiosHeaders.from(response.headers);
44932
+
44933
+ return response;
44934
+ },
44935
+ function onAdapterRejection(reason) {
44936
+ if (!isCancel(reason)) {
44937
+ throwIfCancellationRequested(config);
44938
+
44939
+ // Transform response data
44940
+ if (reason && reason.response) {
44941
+ reason.response.data = transformData.call(
44942
+ config,
44943
+ config.transformResponse,
44944
+ reason.response
44945
+ );
44946
+ reason.response.headers = AxiosHeaders.from(reason.response.headers);
44947
+ }
44442
44948
  }
44443
- }
44444
44949
 
44445
- return Promise.reject(reason);
44446
- });
44950
+ return Promise.reject(reason);
44951
+ }
44952
+ );
44447
44953
  }
44448
44954
 
44449
- const VERSION = "1.10.0";
44955
+ const VERSION = "1.15.0";
44450
44956
 
44451
44957
  const validators$1 = {};
44452
44958
 
@@ -44470,7 +44976,15 @@ const deprecatedWarnings = {};
44470
44976
  */
44471
44977
  validators$1.transitional = function transitional(validator, version, message) {
44472
44978
  function formatMessage(opt, desc) {
44473
- return '[Axios v' + VERSION + '] Transitional option \'' + opt + '\'' + desc + (message ? '. ' + message : '');
44979
+ return (
44980
+ '[Axios v' +
44981
+ VERSION +
44982
+ "] Transitional option '" +
44983
+ opt +
44984
+ "'" +
44985
+ desc +
44986
+ (message ? '. ' + message : '')
44987
+ );
44474
44988
  }
44475
44989
 
44476
44990
  // eslint-disable-next-line func-names
@@ -44502,7 +45016,7 @@ validators$1.spelling = function spelling(correctSpelling) {
44502
45016
  // eslint-disable-next-line no-console
44503
45017
  console.warn(`${opt} is likely a misspelling of ${correctSpelling}`);
44504
45018
  return true;
44505
- }
45019
+ };
44506
45020
  };
44507
45021
 
44508
45022
  /**
@@ -44528,7 +45042,10 @@ function assertOptions(options, schema, allowUnknown) {
44528
45042
  const value = options[opt];
44529
45043
  const result = value === undefined || validator(value, opt, options);
44530
45044
  if (result !== true) {
44531
- throw new AxiosError('option ' + opt + ' must be ' + result, AxiosError.ERR_BAD_OPTION_VALUE);
45045
+ throw new AxiosError(
45046
+ 'option ' + opt + ' must be ' + result,
45047
+ AxiosError.ERR_BAD_OPTION_VALUE
45048
+ );
44532
45049
  }
44533
45050
  continue;
44534
45051
  }
@@ -44540,7 +45057,7 @@ function assertOptions(options, schema, allowUnknown) {
44540
45057
 
44541
45058
  var validator = {
44542
45059
  assertOptions,
44543
- validators: validators$1
45060
+ validators: validators$1,
44544
45061
  };
44545
45062
 
44546
45063
  const validators = validator.validators;
@@ -44557,7 +45074,7 @@ class Axios {
44557
45074
  this.defaults = instanceConfig || {};
44558
45075
  this.interceptors = {
44559
45076
  request: new InterceptorManager(),
44560
- response: new InterceptorManager()
45077
+ response: new InterceptorManager(),
44561
45078
  };
44562
45079
  }
44563
45080
 
@@ -44579,13 +45096,29 @@ class Axios {
44579
45096
  Error.captureStackTrace ? Error.captureStackTrace(dummy) : (dummy = new Error());
44580
45097
 
44581
45098
  // slice off the Error: ... line
44582
- const stack = dummy.stack ? dummy.stack.replace(/^.+\n/, '') : '';
45099
+ const stack = (() => {
45100
+ if (!dummy.stack) {
45101
+ return '';
45102
+ }
45103
+
45104
+ const firstNewlineIndex = dummy.stack.indexOf('\n');
45105
+
45106
+ return firstNewlineIndex === -1 ? '' : dummy.stack.slice(firstNewlineIndex + 1);
45107
+ })();
44583
45108
  try {
44584
45109
  if (!err.stack) {
44585
45110
  err.stack = stack;
44586
45111
  // match without the 2 top stack lines
44587
- } else if (stack && !String(err.stack).endsWith(stack.replace(/^.+\n.+\n/, ''))) {
44588
- err.stack += '\n' + stack;
45112
+ } else if (stack) {
45113
+ const firstNewlineIndex = stack.indexOf('\n');
45114
+ const secondNewlineIndex =
45115
+ firstNewlineIndex === -1 ? -1 : stack.indexOf('\n', firstNewlineIndex + 1);
45116
+ const stackWithoutTwoTopLines =
45117
+ secondNewlineIndex === -1 ? '' : stack.slice(secondNewlineIndex + 1);
45118
+
45119
+ if (!String(err.stack).endsWith(stackWithoutTwoTopLines)) {
45120
+ err.stack += '\n' + stack;
45121
+ }
44589
45122
  }
44590
45123
  } catch (e) {
44591
45124
  // ignore the case where "stack" is an un-writable property
@@ -44608,26 +45141,35 @@ class Axios {
44608
45141
 
44609
45142
  config = mergeConfig(this.defaults, config);
44610
45143
 
44611
- const {transitional, paramsSerializer, headers} = config;
45144
+ const { transitional, paramsSerializer, headers } = config;
44612
45145
 
44613
45146
  if (transitional !== undefined) {
44614
- validator.assertOptions(transitional, {
44615
- silentJSONParsing: validators.transitional(validators.boolean),
44616
- forcedJSONParsing: validators.transitional(validators.boolean),
44617
- clarifyTimeoutError: validators.transitional(validators.boolean)
44618
- }, false);
45147
+ validator.assertOptions(
45148
+ transitional,
45149
+ {
45150
+ silentJSONParsing: validators.transitional(validators.boolean),
45151
+ forcedJSONParsing: validators.transitional(validators.boolean),
45152
+ clarifyTimeoutError: validators.transitional(validators.boolean),
45153
+ legacyInterceptorReqResOrdering: validators.transitional(validators.boolean),
45154
+ },
45155
+ false
45156
+ );
44619
45157
  }
44620
45158
 
44621
45159
  if (paramsSerializer != null) {
44622
45160
  if (utils$3.isFunction(paramsSerializer)) {
44623
45161
  config.paramsSerializer = {
44624
- serialize: paramsSerializer
45162
+ serialize: paramsSerializer,
44625
45163
  };
44626
45164
  } else {
44627
- validator.assertOptions(paramsSerializer, {
44628
- encode: validators.function,
44629
- serialize: validators.function
44630
- }, true);
45165
+ validator.assertOptions(
45166
+ paramsSerializer,
45167
+ {
45168
+ encode: validators.function,
45169
+ serialize: validators.function,
45170
+ },
45171
+ true
45172
+ );
44631
45173
  }
44632
45174
  }
44633
45175
 
@@ -44638,26 +45180,25 @@ class Axios {
44638
45180
  config.allowAbsoluteUrls = true;
44639
45181
  }
44640
45182
 
44641
- validator.assertOptions(config, {
44642
- baseUrl: validators.spelling('baseURL'),
44643
- withXsrfToken: validators.spelling('withXSRFToken')
44644
- }, true);
45183
+ validator.assertOptions(
45184
+ config,
45185
+ {
45186
+ baseUrl: validators.spelling('baseURL'),
45187
+ withXsrfToken: validators.spelling('withXSRFToken'),
45188
+ },
45189
+ true
45190
+ );
44645
45191
 
44646
45192
  // Set config.method
44647
45193
  config.method = (config.method || this.defaults.method || 'get').toLowerCase();
44648
45194
 
44649
45195
  // Flatten headers
44650
- let contextHeaders = headers && utils$3.merge(
44651
- headers.common,
44652
- headers[config.method]
44653
- );
45196
+ let contextHeaders = headers && utils$3.merge(headers.common, headers[config.method]);
44654
45197
 
44655
- headers && utils$3.forEach(
44656
- ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],
44657
- (method) => {
45198
+ headers &&
45199
+ utils$3.forEach(['delete', 'get', 'head', 'post', 'put', 'patch', 'common'], (method) => {
44658
45200
  delete headers[method];
44659
- }
44660
- );
45201
+ });
44661
45202
 
44662
45203
  config.headers = AxiosHeaders.concat(contextHeaders, headers);
44663
45204
 
@@ -44671,7 +45212,15 @@ class Axios {
44671
45212
 
44672
45213
  synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
44673
45214
 
44674
- requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
45215
+ const transitional = config.transitional || transitionalDefaults;
45216
+ const legacyInterceptorReqResOrdering =
45217
+ transitional && transitional.legacyInterceptorReqResOrdering;
45218
+
45219
+ if (legacyInterceptorReqResOrdering) {
45220
+ requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
45221
+ } else {
45222
+ requestInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
45223
+ }
44675
45224
  });
44676
45225
 
44677
45226
  const responseInterceptorChain = [];
@@ -44685,8 +45234,8 @@ class Axios {
44685
45234
 
44686
45235
  if (!synchronousRequestInterceptors) {
44687
45236
  const chain = [dispatchRequest.bind(this), undefined];
44688
- chain.unshift.apply(chain, requestInterceptorChain);
44689
- chain.push.apply(chain, responseInterceptorChain);
45237
+ chain.unshift(...requestInterceptorChain);
45238
+ chain.push(...responseInterceptorChain);
44690
45239
  len = chain.length;
44691
45240
 
44692
45241
  promise = Promise.resolve(config);
@@ -44702,8 +45251,6 @@ class Axios {
44702
45251
 
44703
45252
  let newConfig = config;
44704
45253
 
44705
- i = 0;
44706
-
44707
45254
  while (i < len) {
44708
45255
  const onFulfilled = requestInterceptorChain[i++];
44709
45256
  const onRejected = requestInterceptorChain[i++];
@@ -44741,28 +45288,32 @@ class Axios {
44741
45288
  // Provide aliases for supported request methods
44742
45289
  utils$3.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {
44743
45290
  /*eslint func-names:0*/
44744
- Axios.prototype[method] = function(url, config) {
44745
- return this.request(mergeConfig(config || {}, {
44746
- method,
44747
- url,
44748
- data: (config || {}).data
44749
- }));
45291
+ Axios.prototype[method] = function (url, config) {
45292
+ return this.request(
45293
+ mergeConfig(config || {}, {
45294
+ method,
45295
+ url,
45296
+ data: (config || {}).data,
45297
+ })
45298
+ );
44750
45299
  };
44751
45300
  });
44752
45301
 
44753
45302
  utils$3.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
44754
- /*eslint func-names:0*/
44755
-
44756
45303
  function generateHTTPMethod(isForm) {
44757
45304
  return function httpMethod(url, data, config) {
44758
- return this.request(mergeConfig(config || {}, {
44759
- method,
44760
- headers: isForm ? {
44761
- 'Content-Type': 'multipart/form-data'
44762
- } : {},
44763
- url,
44764
- data
44765
- }));
45305
+ return this.request(
45306
+ mergeConfig(config || {}, {
45307
+ method,
45308
+ headers: isForm
45309
+ ? {
45310
+ 'Content-Type': 'multipart/form-data',
45311
+ }
45312
+ : {},
45313
+ url,
45314
+ data,
45315
+ })
45316
+ );
44766
45317
  };
44767
45318
  }
44768
45319
 
@@ -44793,7 +45344,7 @@ class CancelToken {
44793
45344
  const token = this;
44794
45345
 
44795
45346
  // eslint-disable-next-line func-names
44796
- this.promise.then(cancel => {
45347
+ this.promise.then((cancel) => {
44797
45348
  if (!token._listeners) return;
44798
45349
 
44799
45350
  let i = token._listeners.length;
@@ -44805,10 +45356,10 @@ class CancelToken {
44805
45356
  });
44806
45357
 
44807
45358
  // eslint-disable-next-line func-names
44808
- this.promise.then = onfulfilled => {
45359
+ this.promise.then = (onfulfilled) => {
44809
45360
  let _resolve;
44810
45361
  // eslint-disable-next-line func-names
44811
- const promise = new Promise(resolve => {
45362
+ const promise = new Promise((resolve) => {
44812
45363
  token.subscribe(resolve);
44813
45364
  _resolve = resolve;
44814
45365
  }).then(onfulfilled);
@@ -44896,7 +45447,7 @@ class CancelToken {
44896
45447
  });
44897
45448
  return {
44898
45449
  token,
44899
- cancel
45450
+ cancel,
44900
45451
  };
44901
45452
  }
44902
45453
  }
@@ -44908,7 +45459,7 @@ class CancelToken {
44908
45459
  *
44909
45460
  * ```js
44910
45461
  * function f(x, y, z) {}
44911
- * var args = [1, 2, 3];
45462
+ * const args = [1, 2, 3];
44912
45463
  * f.apply(null, args);
44913
45464
  * ```
44914
45465
  *
@@ -44936,7 +45487,7 @@ function spread(callback) {
44936
45487
  * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false
44937
45488
  */
44938
45489
  function isAxiosError(payload) {
44939
- return utils$3.isObject(payload) && (payload.isAxiosError === true);
45490
+ return utils$3.isObject(payload) && payload.isAxiosError === true;
44940
45491
  }
44941
45492
 
44942
45493
  const HttpStatusCode = {
@@ -45003,6 +45554,12 @@ const HttpStatusCode = {
45003
45554
  LoopDetected: 508,
45004
45555
  NotExtended: 510,
45005
45556
  NetworkAuthenticationRequired: 511,
45557
+ WebServerIsDown: 521,
45558
+ ConnectionTimedOut: 522,
45559
+ OriginIsUnreachable: 523,
45560
+ TimeoutOccurred: 524,
45561
+ SslHandshakeFailed: 525,
45562
+ InvalidSslCertificate: 526,
45006
45563
  };
45007
45564
 
45008
45565
  Object.entries(HttpStatusCode).forEach(([key, value]) => {
@@ -45021,10 +45578,10 @@ function createInstance(defaultConfig) {
45021
45578
  const instance = bind$1(Axios.prototype.request, context);
45022
45579
 
45023
45580
  // Copy axios.prototype to instance
45024
- utils$3.extend(instance, Axios.prototype, context, {allOwnKeys: true});
45581
+ utils$3.extend(instance, Axios.prototype, context, { allOwnKeys: true });
45025
45582
 
45026
45583
  // Copy context to instance
45027
- utils$3.extend(instance, context, null, {allOwnKeys: true});
45584
+ utils$3.extend(instance, context, null, { allOwnKeys: true });
45028
45585
 
45029
45586
  // Factory for creating new instances
45030
45587
  instance.create = function create(instanceConfig) {
@@ -45068,7 +45625,7 @@ axios.mergeConfig = mergeConfig;
45068
45625
 
45069
45626
  axios.AxiosHeaders = AxiosHeaders;
45070
45627
 
45071
- axios.formToJSON = thing => formDataToJSON(utils$3.isHTMLForm(thing) ? new FormData(thing) : thing);
45628
+ axios.formToJSON = (thing) => formDataToJSON(utils$3.isHTMLForm(thing) ? new FormData(thing) : thing);
45072
45629
 
45073
45630
  axios.getAdapter = adapters.getAdapter;
45074
45631
 
@@ -55517,7 +56074,7 @@ const FOCUSABLE_SELECTORS = Object.freeze([
55517
56074
  'a[href]', 'button:not([disabled]):not([tabindex="-1"])', 'textarea', 'input', 'select', '[tabindex]:not([tabindex="-1"])',
55518
56075
  ]);
55519
56076
  const Widget = React.forwardRef(({ candidate, job, video, config, disabled = false, buttonText = 'START INTERVIEW', buttonStyle = {}, children, styleUrls = [], fontsUrls = [], }, clientRef) => {
55520
- const widget_version = "1.1.66";
56077
+ const widget_version = "1.1.67";
55521
56078
  const [isWidgetOpen, setIsWidgetOpen] = React.useState(false);
55522
56079
  const [isWidgetMinimized, setIsWidgetMinimized] = React.useState(false);
55523
56080
  const [isIncognitoMode, setIsIncognitoMode] = React.useState(false);