@authing/guard-shim-react 4.5.40-alpha.17 → 4.5.40-alpha.18

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.
Files changed (2) hide show
  1. package/dist/guard.min.js +171 -297
  2. package/package.json +1 -1
package/dist/guard.min.js CHANGED
@@ -18,7 +18,7 @@
18
18
  c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=s,e.exports=c}
19
19
  /***/,
20
20
  /***/5051:
21
- /***/(e,t,n)=>{var r=n(7128),o=n(7934),i=n(9520),a=n(6665),s=n(2097);
21
+ /***/(e,t,n)=>{var r=n(7128),o=n(7934),i=n(9520),a=n(5468),s=n(2097);
22
22
  /**
23
23
  * Creates an list cache object.
24
24
  *
@@ -1395,7 +1395,7 @@ function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():o.
1395
1395
  * @returns {*} Returns the entry value.
1396
1396
  */e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}}
1397
1397
  /***/,
1398
- /***/6665:
1398
+ /***/5468:
1399
1399
  /***/(e,t,n)=>{var r=n(9745);
1400
1400
  /**
1401
1401
  * Checks if a list cache value for `key` exists.
@@ -12307,76 +12307,72 @@ return"*"===e?e:e.indexOf("*")>=0||e.indexOf("?")>=0?new RegExp(e.replace(t,".$1
12307
12307
  /***/(e,t,n)=>{e.exports=n(7141);
12308
12308
  /***/},
12309
12309
  /***/7992:
12310
- /***/(e,t,n)=>{"use strict";var r=n(8946),o=n(783),i=n(4525),a=n(3927),s=n(7079),c=n(8783),l=n(5114),u=n(5739),d=n(6452),f=n(1385),p=n(2799),h=n(5468);e.exports=function(e){return new Promise((function(t,n){var m,v=e.data,g=e.headers,y=e.responseType,b=e.withXSRFToken;function w(){e.cancelToken&&e.cancelToken.unsubscribe(m),e.signal&&e.signal.removeEventListener("abort",m)}r.isFormData(v)&&r.isStandardBrowserEnv()&&delete g["Content-Type"];var C=new XMLHttpRequest;
12310
+ /***/(e,t,n)=>{"use strict";var r=n(8946),o=n(783),i=n(4525),a=n(3927),s=n(7079),c=n(8783),l=n(5114),u=n(488),d=n(5739),f=n(8929);e.exports=function(e){return new Promise((function(t,n){var p,h=e.data,m=e.headers,v=e.responseType;function g(){e.cancelToken&&e.cancelToken.unsubscribe(p),e.signal&&e.signal.removeEventListener("abort",p)}r.isFormData(h)&&delete m["Content-Type"];var y=new XMLHttpRequest;
12311
12311
  // HTTP basic authentication
12312
- if(e.auth){var E=e.auth.username||"",k=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";g.Authorization="Basic "+btoa(E+":"+k)}var S=s(e.baseURL,e.url);function x(){if(C){
12312
+ if(e.auth){var b=e.auth.username||"",w=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";m.Authorization="Basic "+btoa(b+":"+w)}var C=s(e.baseURL,e.url);function E(){if(y){
12313
12313
  // Prepare the response
12314
- var r="getAllResponseHeaders"in C?c(C.getAllResponseHeaders()):null,i={data:y&&"text"!==y&&"json"!==y?C.response:C.responseText,status:C.status,statusText:C.statusText,headers:r,config:e,request:C};o((function(e){t(e),w()}),(function(e){n(e),w()}),i),
12314
+ var r="getAllResponseHeaders"in y?c(y.getAllResponseHeaders()):null,i={data:v&&"text"!==v&&"json"!==v?y.response:y.responseText,status:y.status,statusText:y.statusText,headers:r,config:e,request:y};o((function(e){t(e),g()}),(function(e){n(e),g()}),i),
12315
12315
  // Clean up request
12316
- C=null}}
12316
+ y=null}}
12317
12317
  // Add xsrf header
12318
12318
  // This is only done if running in a standard browser environment.
12319
12319
  // Specifically not if we're in a web worker, or react-native.
12320
- if(C.open(e.method.toUpperCase(),a(S,e.params,e.paramsSerializer),!0),
12320
+ if(y.open(e.method.toUpperCase(),a(C,e.params,e.paramsSerializer),!0),
12321
12321
  // Set the request timeout in MS
12322
- C.timeout=e.timeout,"onloadend"in C?
12322
+ y.timeout=e.timeout,"onloadend"in y?
12323
12323
  // Use onloadend if available
12324
- C.onloadend=x:
12324
+ y.onloadend=E:
12325
12325
  // Listen for ready state to emulate onloadend
12326
- C.onreadystatechange=function(){C&&4===C.readyState&&(0!==C.status||C.responseURL&&0===C.responseURL.indexOf("file:"))&&
12326
+ y.onreadystatechange=function(){y&&4===y.readyState&&(0!==y.status||y.responseURL&&0===y.responseURL.indexOf("file:"))&&
12327
12327
  // readystate handler is calling before onerror or ontimeout handlers,
12328
12328
  // so we should call onloadend on the next 'tick'
12329
- setTimeout(x);
12329
+ setTimeout(E);
12330
12330
  // The request errored out and we didn't get a response, this will be
12331
12331
  // handled by onerror instead
12332
12332
  // With one exception: request that using file: protocol, most browsers
12333
12333
  // will return status as 0 even though it's a successful request
12334
12334
  },
12335
12335
  // Handle browser request cancellation (as opposed to a manual cancellation)
12336
- C.onabort=function(){C&&(n(new d("Request aborted",d.ECONNABORTED,e,C)),
12336
+ y.onabort=function(){y&&(n(u("Request aborted",e,"ECONNABORTED",y)),
12337
12337
  // Clean up request
12338
- C=null)},
12338
+ y=null)},
12339
12339
  // Handle low level network errors
12340
- C.onerror=function(){
12340
+ y.onerror=function(){
12341
12341
  // Real errors are hidden from us by the browser
12342
12342
  // onerror should only fire if it's a network error
12343
- n(new d("Network Error",d.ERR_NETWORK,e,C)),
12343
+ n(u("Network Error",e,null,y)),
12344
12344
  // Clean up request
12345
- C=null},
12345
+ y=null},
12346
12346
  // Handle timeout
12347
- C.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||u;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new d(t,r.clarifyTimeoutError?d.ETIMEDOUT:d.ECONNABORTED,e,C)),
12347
+ y.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||d;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(u(t,e,r.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",y)),
12348
12348
  // Clean up request
12349
- C=null},r.isStandardBrowserEnv()&&(
12350
- // Add xsrf header
12351
- b&&r.isFunction(b)&&(b=b(e)),b||!1!==b&&l(S))){
12349
+ y=null},r.isStandardBrowserEnv()){
12352
12350
  // Add xsrf header
12353
- var _=e.xsrfHeaderName&&e.xsrfCookieName&&i.read(e.xsrfCookieName);_&&(g[e.xsrfHeaderName]=_)}
12351
+ var k=(e.withCredentials||l(C))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;k&&(m[e.xsrfHeaderName]=k)}
12354
12352
  // Add headers to the request
12355
- "setRequestHeader"in C&&r.forEach(g,(function(e,t){void 0===v&&"content-type"===t.toLowerCase()?
12353
+ "setRequestHeader"in y&&r.forEach(m,(function(e,t){void 0===h&&"content-type"===t.toLowerCase()?
12356
12354
  // Remove Content-Type if data is undefined
12357
- delete g[t]:
12355
+ delete m[t]:
12358
12356
  // Otherwise add header to the request
12359
- C.setRequestHeader(t,e)})),
12357
+ y.setRequestHeader(t,e)})),
12360
12358
  // Add withCredentials to request if needed
12361
- r.isUndefined(e.withCredentials)||(C.withCredentials=!!e.withCredentials),
12359
+ r.isUndefined(e.withCredentials)||(y.withCredentials=!!e.withCredentials),
12362
12360
  // Add responseType to request if needed
12363
- y&&"json"!==y&&(C.responseType=e.responseType),
12361
+ v&&"json"!==v&&(y.responseType=e.responseType),
12364
12362
  // Handle progress if needed
12365
- "function"==typeof e.onDownloadProgress&&C.addEventListener("progress",e.onDownloadProgress),
12363
+ "function"==typeof e.onDownloadProgress&&y.addEventListener("progress",e.onDownloadProgress),
12366
12364
  // Not all browsers support upload events
12367
- "function"==typeof e.onUploadProgress&&C.upload&&C.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(
12365
+ "function"==typeof e.onUploadProgress&&y.upload&&y.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(
12368
12366
  // Handle cancellation
12369
12367
  // eslint-disable-next-line func-names
12370
- m=function(t){C&&(n(!t||t.type?new f(null,e,req):t),C.abort(),C=null)},e.cancelToken&&e.cancelToken.subscribe(m),e.signal&&(e.signal.aborted?m():e.signal.addEventListener("abort",m))),
12371
- // false, 0 (zero number), and '' (empty string) are valid JSON values
12372
- v||!1===v||0===v||""===v||(v=null);var P=p(S);P&&-1===h.protocols.indexOf(P)?n(new d("Unsupported protocol "+P+":",d.ERR_BAD_REQUEST,e)):
12368
+ p=function(e){y&&(n(!e||e&&e.type?new f("canceled"):e),y.abort(),y=null)},e.cancelToken&&e.cancelToken.subscribe(p),e.signal&&(e.signal.aborted?p():e.signal.addEventListener("abort",p))),h||(h=null),
12373
12369
  // Send the request
12374
- C.send(v)}))}}
12370
+ y.send(h)}))}}
12375
12371
  /***/,
12376
12372
  /***/7141:
12377
- /***/(e,t,n)=>{"use strict";var r=n(8946),o=n(1375),i=n(271),a=n(563),s=n(1590),c=n(4124);
12373
+ /***/(e,t,n)=>{"use strict";var r=n(8946),o=n(1375),i=n(271),a=n(563);
12378
12374
  // Create the default instance to be exported
12379
- var l=
12375
+ var s=
12380
12376
  /**
12381
12377
  * Create an instance of Axios
12382
12378
  *
@@ -12389,24 +12385,29 @@ return r.extend(s,i.prototype,n),
12389
12385
  // Copy context to instance
12390
12386
  r.extend(s,n),
12391
12387
  // Factory for creating new instances
12392
- s.create=function(n){return e(a(t,n))},s}(s);
12388
+ s.create=function(n){return e(a(t,n))},s}(n(1590));
12393
12389
  // Expose Axios class to allow class inheritance
12394
- l.Axios=i,
12390
+ s.Axios=i,
12395
12391
  // Expose Cancel & CancelToken
12396
- l.CanceledError=n(1385),l.CancelToken=n(9121),l.isCancel=n(5881),l.VERSION=n(3198).version,l.toFormData=n(2421),
12397
- // Expose AxiosError class
12398
- l.AxiosError=n(6452),
12399
- // alias for CanceledError for backward compatibility
12400
- l.Cancel=l.CanceledError,
12392
+ s.Cancel=n(8929),s.CancelToken=n(9121),s.isCancel=n(5881),s.VERSION=n(3198).version,
12401
12393
  // Expose all/spread
12402
- l.all=function(e){return Promise.all(e)},l.spread=n(3884),
12394
+ s.all=function(e){return Promise.all(e)},s.spread=n(3884),
12403
12395
  // Expose isAxiosError
12404
- l.isAxiosError=n(931),l.formToJSON=function(e){return c(r.isHTMLForm(e)?new FormData(e):e)},e.exports=l,
12396
+ s.isAxiosError=n(931),e.exports=s,
12405
12397
  // Allow use of default import syntax in TypeScript
12406
- e.exports.default=l}
12398
+ e.exports.default=s}
12399
+ /***/,
12400
+ /***/8929:
12401
+ /***/e=>{"use strict";
12402
+ /**
12403
+ * A `Cancel` is an object that is thrown when an operation is canceled.
12404
+ *
12405
+ * @class
12406
+ * @param {string=} message The message.
12407
+ */function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t}
12407
12408
  /***/,
12408
12409
  /***/9121:
12409
- /***/(e,t,n)=>{"use strict";var r=n(1385);
12410
+ /***/(e,t,n)=>{"use strict";var r=n(8929);
12410
12411
  /**
12411
12412
  * A `CancelToken` is an object that can be used to request cancellation of an operation.
12412
12413
  *
@@ -12414,13 +12415,13 @@ e.exports.default=l}
12414
12415
  * @param {Function} executor The executor function.
12415
12416
  */function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;
12416
12417
  // eslint-disable-next-line func-names
12417
- this.promise.then((function(e){if(n._listeners){for(var t=n._listeners.length;t-- >0;)n._listeners[t](e);n._listeners=null}})),
12418
+ this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t<r;t++)n._listeners[t](e);n._listeners=null}})),
12418
12419
  // eslint-disable-next-line func-names
12419
12420
  this.promise.then=function(e){var t,r=new Promise((function(e){n.subscribe(e),t=e})).then(e);
12420
12421
  // eslint-disable-next-line func-names
12421
- return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,o,i){n.reason||(n.reason=new r(e,o,i),t(n.reason))}))}
12422
+ return r.cancel=function(){n.unsubscribe(t)},r},e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}
12422
12423
  /**
12423
- * Throws a `CanceledError` if cancellation has been requested.
12424
+ * Throws a `Cancel` if cancellation has been requested.
12424
12425
  */o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},
12425
12426
  /**
12426
12427
  * Subscribe to the cancel signal
@@ -12436,73 +12437,35 @@ o.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.in
12436
12437
  */
12437
12438
  o.source=function(){var e;return{token:new o((function(t){e=t})),cancel:e}},e.exports=o}
12438
12439
  /***/,
12439
- /***/1385:
12440
- /***/(e,t,n)=>{"use strict";var r=n(6452);
12441
- /**
12442
- * A `CanceledError` is an object that is thrown when an operation is canceled.
12443
- *
12444
- * @class
12445
- * @param {string=} message The message.
12446
- * @param {Object=} config The config.
12447
- * @param {Object=} request The request.
12448
- */
12449
- function o(e,t,n){
12450
- // eslint-disable-next-line no-eq-null,eqeqeq
12451
- r.call(this,null==e?"canceled":e,r.ERR_CANCELED,t,n),this.name="CanceledError"}n(8946).inherits(o,r,{__CANCEL__:!0}),e.exports=o}
12452
- /***/,
12453
12440
  /***/5881:
12454
12441
  /***/e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}}
12455
12442
  /***/,
12456
12443
  /***/271:
12457
- /***/(e,t,n)=>{"use strict";var r=n(8946),o=n(3927),i=n(5487),a=n(1481),s=n(563),c=n(7079),l=n(2602),u=l.validators;
12444
+ /***/(e,t,n)=>{"use strict";var r=n(8946),o=n(3927),i=n(5487),a=n(1481),s=n(563),c=n(2602),l=c.validators;
12458
12445
  /**
12459
12446
  * Create a new instance of Axios
12460
12447
  *
12461
12448
  * @param {Object} instanceConfig The default config for the instance
12462
12449
  */
12463
- function d(e){this.defaults=e,this.interceptors={request:new i,response:new i}}
12450
+ function u(e){this.defaults=e,this.interceptors={request:new i,response:new i}}
12464
12451
  /**
12465
12452
  * Dispatch a request
12466
12453
  *
12467
- * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
12468
- * @param {?Object} config
12469
- */d.prototype.request=function(e,t){
12454
+ * @param {Object} config The config specific for this request (merged with this.defaults)
12455
+ */u.prototype.request=function(e,t){
12470
12456
  /*eslint no-param-reassign:0*/
12471
12457
  // Allow for axios('example/url'[, config]) a la fetch API
12472
12458
  "string"==typeof e?(t=t||{}).url=e:t=e||{},
12473
12459
  // Set config.method
12474
- (t=s(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;void 0!==n&&l.assertOptions(n,{silentJSONParsing:u.transitional(u.boolean),forcedJSONParsing:u.transitional(u.boolean),clarifyTimeoutError:u.transitional(u.boolean)},!1);var o=t.paramsSerializer;r.isFunction(o)&&(t.paramsSerializer={serialize:o});
12460
+ (t=s(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;void 0!==n&&c.assertOptions(n,{silentJSONParsing:l.transitional(l.boolean),forcedJSONParsing:l.transitional(l.boolean),clarifyTimeoutError:l.transitional(l.boolean)},!1);
12475
12461
  // filter out skipped interceptors
12476
- var i=[],c=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(c=c&&e.synchronous,i.unshift(e.fulfilled,e.rejected))}));var d,f=[];if(this.interceptors.response.forEach((function(e){f.push(e.fulfilled,e.rejected)})),!c){var p=[a,void 0];for(Array.prototype.unshift.apply(p,i),p=p.concat(f),d=Promise.resolve(t);p.length;)d=d.then(p.shift(),p.shift());return d}for(var h=t;i.length;){var m=i.shift(),v=i.shift();try{h=m(h)}catch(e){v(e);break}}try{d=a(h)}catch(e){return Promise.reject(e)}for(;f.length;)d=d.then(f.shift(),f.shift());return d},d.prototype.getUri=function(e){e=s(this.defaults,e);var t=c(e.baseURL,e.url);return o(t,e.params,e.paramsSerializer)},
12462
+ var r=[],o=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(o=o&&e.synchronous,r.unshift(e.fulfilled,e.rejected))}));var i,u=[];if(this.interceptors.response.forEach((function(e){u.push(e.fulfilled,e.rejected)})),!o){var d=[a,void 0];for(Array.prototype.unshift.apply(d,r),d=d.concat(u),i=Promise.resolve(t);d.length;)i=i.then(d.shift(),d.shift());return i}for(var f=t;r.length;){var p=r.shift(),h=r.shift();try{f=p(f)}catch(e){h(e);break}}try{i=a(f)}catch(e){return Promise.reject(e)}for(;u.length;)i=i.then(u.shift(),u.shift());return i},u.prototype.getUri=function(e){return e=s(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},
12477
12463
  // Provide aliases for supported request methods
12478
12464
  r.forEach(["delete","get","head","options"],(function(e){
12479
12465
  /*eslint func-names:0*/
12480
- d.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){
12466
+ u.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){
12481
12467
  /*eslint func-names:0*/
12482
- function t(t){return function(n,r,o){return this.request(s(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}d.prototype[e]=t(),d.prototype[e+"Form"]=t(!0)})),e.exports=d}
12483
- /***/,
12484
- /***/6452:
12485
- /***/(e,t,n)=>{"use strict";var r=n(8946);
12486
- /**
12487
- * Create an Error with the specified message, config, error code, request and response.
12488
- *
12489
- * @param {string} message The error message.
12490
- * @param {string} [code] The error code (for example, 'ECONNABORTED').
12491
- * @param {Object} [config] The config.
12492
- * @param {Object} [request] The request.
12493
- * @param {Object} [response] The response.
12494
- * @returns {Error} The created error.
12495
- */function o(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}r.inherits(o,Error,{toJSON:function(){return{
12496
- // Standard
12497
- message:this.message,name:this.name,
12498
- // Microsoft
12499
- description:this.description,number:this.number,
12500
- // Mozilla
12501
- fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,
12502
- // Axios
12503
- config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var i=o.prototype,a={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((function(e){a[e]={value:e}})),Object.defineProperties(o,a),Object.defineProperty(i,"isAxiosError",{value:!0}),
12504
- // eslint-disable-next-line func-names
12505
- o.from=function(e,t,n,a,s,c){var l=Object.create(i);return r.toFlatObject(e,l,(function(e){return e!==Error.prototype})),o.call(l,e.message,t,n,a,s),l.cause=e,l.name=e.name,c&&Object.assign(l,c),l},e.exports=o}
12468
+ u.prototype[e]=function(t,n,r){return this.request(s(r||{},{method:e,url:t,data:n}))}})),e.exports=u}
12506
12469
  /***/,
12507
12470
  /***/5487:
12508
12471
  /***/(e,t,n)=>{"use strict";var r=n(8946);function o(){this.handlers=[]}
@@ -12520,10 +12483,6 @@ o.from=function(e,t,n,a,s,c){var l=Object.create(i);return r.toFlatObject(e,l,(f
12520
12483
  * @param {Number} id The ID that was returned by `use`
12521
12484
  */
12522
12485
  o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},
12523
- /**
12524
- * Clear all interceptors from the stack
12525
- */
12526
- o.prototype.clear=function(){this.handlers&&(this.handlers=[])},
12527
12486
  /**
12528
12487
  * Iterate over all the registered interceptors
12529
12488
  *
@@ -12547,28 +12506,62 @@ o.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e
12547
12506
  */
12548
12507
  e.exports=function(e,t){return e&&!r(t)?o(e,t):t}}
12549
12508
  /***/,
12509
+ /***/488:
12510
+ /***/(e,t,n)=>{"use strict";var r=n(3464);
12511
+ /**
12512
+ * Create an Error with the specified message, config, error code, request and response.
12513
+ *
12514
+ * @param {string} message The error message.
12515
+ * @param {Object} config The config.
12516
+ * @param {string} [code] The error code (for example, 'ECONNABORTED').
12517
+ * @param {Object} [request] The request.
12518
+ * @param {Object} [response] The response.
12519
+ * @returns {Error} The created error.
12520
+ */e.exports=function(e,t,n,o,i){var a=new Error(e);return r(a,t,n,o,i)}}
12521
+ /***/,
12550
12522
  /***/1481:
12551
- /***/(e,t,n)=>{"use strict";var r=n(8946),o=n(7575),i=n(5881),a=n(1590),s=n(1385),c=n(2397);
12523
+ /***/(e,t,n)=>{"use strict";var r=n(8946),o=n(7575),i=n(5881),a=n(1590),s=n(8929);
12552
12524
  /**
12553
- * Throws a `CanceledError` if cancellation has been requested.
12525
+ * Throws a `Cancel` if cancellation has been requested.
12554
12526
  */
12555
- function l(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new s}
12527
+ function c(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new s("canceled")}
12556
12528
  /**
12557
12529
  * Dispatch a request to the server using the configured adapter.
12558
12530
  *
12559
12531
  * @param {object} config The config that is to be used for the request
12560
12532
  * @returns {Promise} The Promise to be fulfilled
12561
- */e.exports=function(e){return l(e),
12533
+ */e.exports=function(e){return c(e),
12562
12534
  // Ensure headers exist
12563
12535
  e.headers=e.headers||{},
12564
12536
  // Transform request data
12565
- e.data=o.call(e,e.data,e.headers,null,e.transformRequest),c(e.headers,"Accept"),c(e.headers,"Content-Type"),
12537
+ e.data=o.call(e,e.data,e.headers,e.transformRequest),
12566
12538
  // Flatten headers
12567
- e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return l(e),
12539
+ e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return c(e),
12568
12540
  // Transform response data
12569
- t.data=o.call(e,t.data,t.headers,t.status,e.transformResponse),t}),(function(t){return i(t)||(l(e),
12541
+ t.data=o.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(c(e),
12570
12542
  // Transform response data
12571
- t&&t.response&&(t.response.data=o.call(e,t.response.data,t.response.headers,t.response.status,e.transformResponse))),Promise.reject(t)}))}}
12543
+ t&&t.response&&(t.response.data=o.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}}
12544
+ /***/,
12545
+ /***/3464:
12546
+ /***/e=>{"use strict";
12547
+ /**
12548
+ * Update an Error with the specified config, error code, and response.
12549
+ *
12550
+ * @param {Error} error The error to update.
12551
+ * @param {Object} config The config.
12552
+ * @param {string} [code] The error code (for example, 'ECONNABORTED').
12553
+ * @param {Object} [request] The request.
12554
+ * @param {Object} [response] The response.
12555
+ * @returns {Error} The error.
12556
+ */e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{
12557
+ // Standard
12558
+ message:this.message,name:this.name,
12559
+ // Microsoft
12560
+ description:this.description,number:this.number,
12561
+ // Mozilla
12562
+ fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,
12563
+ // Axios
12564
+ config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e}}
12572
12565
  /***/,
12573
12566
  /***/563:
12574
12567
  /***/(e,t,n)=>{"use strict";var r=n(8946);
@@ -12581,7 +12574,7 @@ t&&t.response&&(t.response.data=o.call(e,t.response.data,t.response.headers,t.re
12581
12574
  * @returns {Object} New object resulting from merging config2 to config1
12582
12575
  */e.exports=function(e,t){
12583
12576
  // eslint-disable-next-line no-param-reassign
12584
- t=t||{};var n={};function o(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isEmptyObject(t)?r.merge({},e):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}
12577
+ t=t||{};var n={};function o(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}
12585
12578
  // eslint-disable-next-line consistent-return
12586
12579
  function i(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:o(void 0,e[n]):o(e[n],t[n])}
12587
12580
  // eslint-disable-next-line consistent-return
@@ -12589,17 +12582,17 @@ function a(e){if(!r.isUndefined(t[e]))return o(void 0,t[e])}
12589
12582
  // eslint-disable-next-line consistent-return
12590
12583
  function s(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:o(void 0,e[n]):o(void 0,t[n])}
12591
12584
  // eslint-disable-next-line consistent-return
12592
- function c(n){return n in t?o(e[n],t[n]):n in e?o(void 0,e[n]):void 0}var l={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:c};return r.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=l[e]||i,o=t(e);r.isUndefined(o)&&t!==c||(n[e]=o)})),n}}
12585
+ function c(n){return n in t?o(e[n],t[n]):n in e?o(void 0,e[n]):void 0}var l={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:c};return r.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=l[e]||i,o=t(e);r.isUndefined(o)&&t!==c||(n[e]=o)})),n}}
12593
12586
  /***/,
12594
12587
  /***/783:
12595
- /***/(e,t,n)=>{"use strict";var r=n(6452);
12588
+ /***/(e,t,n)=>{"use strict";var r=n(488);
12596
12589
  /**
12597
12590
  * Resolve or reject a Promise based on response status.
12598
12591
  *
12599
12592
  * @param {Function} resolve A function that resolves the promise.
12600
12593
  * @param {Function} reject A function that rejects the promise.
12601
12594
  * @param {object} response The response.
12602
- */e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(new r("Request failed with status code "+n.status,[r.ERR_BAD_REQUEST,r.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}}
12595
+ */e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}}
12603
12596
  /***/,
12604
12597
  /***/7575:
12605
12598
  /***/(e,t,n)=>{"use strict";var r=n(8946),o=n(1590);
@@ -12608,52 +12601,42 @@ function c(n){return n in t?o(e[n],t[n]):n in e?o(void 0,e[n]):void 0}var l={url
12608
12601
  *
12609
12602
  * @param {Object|String} data The data to be transformed
12610
12603
  * @param {Array} headers The headers for the request or response
12611
- * @param {Number} status HTTP status code
12612
12604
  * @param {Array|Function} fns A single function or Array of functions
12613
12605
  * @returns {*} The resulting transformed data
12614
12606
  */
12615
- e.exports=function(e,t,n,i){var a=this||o;
12616
- /*eslint no-param-reassign:0*/return r.forEach(i,(function(r){e=r.call(a,e,t,n)})),e}}
12607
+ e.exports=function(e,t,n){var i=this||o;
12608
+ /*eslint no-param-reassign:0*/return r.forEach(n,(function(n){e=n.call(i,e,t)})),e}}
12617
12609
  /***/,
12618
12610
  /***/1590:
12619
- /***/(e,t,n)=>{"use strict";var r=n(8946),o=n(2397),i=n(6452),a=n(5739),s=n(2421),c=n(1920),l=n(5468),u=n(4124),d={"Content-Type":"application/x-www-form-urlencoded"};function f(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var p,h={transitional:a,adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(
12611
+ /***/(e,t,n)=>{"use strict";var r=n(8946),o=n(2397),i=n(3464),a=n(5739),s={"Content-Type":"application/x-www-form-urlencoded"};function c(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var l,u={transitional:a,adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(
12620
12612
  // For browsers use XHR adapter
12621
- p=n(7992)),p),transformRequest:[function(e,t){o(t,"Accept"),o(t,"Content-Type");var n,i=t&&t["Content-Type"]||"",a=i.indexOf("application/json")>-1,l=r.isObject(e);if(l&&r.isHTMLForm(e)&&(e=new FormData(e)),r.isFormData(e))return a?JSON.stringify(u(e)):e;if(r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e))return e;if(r.isArrayBufferView(e))return e.buffer;if(r.isURLSearchParams(e))return f(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();if(l){if(-1!==i.indexOf("application/x-www-form-urlencoded"))return c(e,this.formSerializer).toString();if((n=r.isFileList(e))||i.indexOf("multipart/form-data")>-1){var d=this.env&&this.env.FormData;return s(n?{"files[]":e}:e,d&&new d,this.formSerializer)}}return l||a?(f(t,"application/json"),function(e,t,n){if(r.isString(e))try{return(t||JSON.parse)(e),r.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||h.transitional,n=t&&t.forcedJSONParsing,o="json"===this.responseType;if(e&&r.isString(e)&&(n&&!this.responseType||o)){var a=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(e)}catch(e){if(a){if("SyntaxError"===e.name)throw i.from(e,i.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],
12613
+ l=n(7992)),l),transformRequest:[function(e,t){return o(t,"Accept"),o(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(c(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)||t&&"application/json"===t["Content-Type"]?(c(t,"application/json"),function(e,t,n){if(r.isString(e))try{return(t||JSON.parse)(e),r.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||u.transitional,n=t&&t.silentJSONParsing,o=t&&t.forcedJSONParsing,a=!n&&"json"===this.responseType;if(a||o&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(a){if("SyntaxError"===e.name)throw i(e,this,"E_JSON_PARSE");throw e}}return e}],
12622
12614
  /**
12623
12615
  * A timeout in milliseconds to abort a request. If set to 0 (default) a
12624
12616
  * timeout is not created.
12625
12617
  */
12626
- timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:l.classes.FormData,Blob:l.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){h.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){h.headers[e]=r.merge(d)})),e.exports=h}
12618
+ timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){u.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){u.headers[e]=r.merge(s)})),e.exports=u}
12627
12619
  /***/,
12628
12620
  /***/5739:
12629
12621
  /***/e=>{"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}}
12630
12622
  /***/,
12631
- /***/8811:
12632
- /***/(e,t,n)=>{
12633
- // eslint-disable-next-line strict
12634
- e.exports=n(7213);
12635
- /***/},
12636
12623
  /***/3198:
12637
- /***/e=>{e.exports={version:"0.28.0"};
12624
+ /***/e=>{e.exports={version:"0.26.1"};
12638
12625
  /***/},
12639
- /***/9951:
12640
- /***/(e,t,n)=>{"use strict";var r=n(2421);function o(e){var t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'\(\)~]|%20|%00/g,(function(e){return t[e]}))}function i(e,t){this._pairs=[],e&&r(e,this,t)}var a=i.prototype;a.append=function(e,t){this._pairs.push([e,t])},a.toString=function(e){var t=e?function(t){return e.call(this,t,o)}:o;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")},e.exports=i}
12641
- /***/,
12642
12626
  /***/1375:
12643
- /***/e=>{"use strict";e.exports=function(e,t){return function(){return e.apply(t,arguments)}}}
12627
+ /***/e=>{"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}}
12644
12628
  /***/,
12645
12629
  /***/3927:
12646
- /***/(e,t,n)=>{"use strict";var r=n(8946),o=n(9951);function i(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}
12630
+ /***/(e,t,n)=>{"use strict";var r=n(8946);function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}
12647
12631
  /**
12648
12632
  * Build a URL by appending params to the end
12649
12633
  *
12650
12634
  * @param {string} url The base of the url (e.g., http://www.google.com)
12651
12635
  * @param {object} [params] The params to be appended
12652
- * @param {?object} options
12653
12636
  * @returns {string} The formatted url
12654
12637
  */e.exports=function(e,t,n){
12655
12638
  /*eslint no-param-reassign:0*/
12656
- if(!t)return e;var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a));var s=n&&n.encode||i,c=r.isURLSearchParams(t)?t.toString():new o(t,n).toString(s);return c&&(e+=(-1===e.indexOf("?")?"?":"&")+c),e}}
12639
+ if(!t)return e;var i;if(n)i=n(t);else if(r.isURLSearchParams(t))i=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(o(t)+"="+o(e))})))})),i=a.join("&")}if(i){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}}
12657
12640
  /***/,
12658
12641
  /***/5262:
12659
12642
  /***/e=>{"use strict";
@@ -12668,14 +12651,6 @@ if(!t)return e;var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a));var s=n&&n.encode||
12668
12651
  /***/4525:
12669
12652
  /***/(e,t,n)=>{"use strict";var r=n(8946);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,o,i,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(o)&&s.push("path="+o),r.isString(i)&&s.push("domain="+i),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}}
12670
12653
  /***/,
12671
- /***/4124:
12672
- /***/(e,t,n)=>{"use strict";var r=n(8946);e.exports=function(e){function t(e,n,o,i){var a=e[i++],s=Number.isFinite(+a),c=i>=e.length;return a=!a&&r.isArray(o)?o.length:a,c?(r.hasOwnProperty(o,a)?o[a]=[o[a],n]:o[a]=n,!s):(o[a]&&r.isObject(o[a])||(o[a]=[]),t(e,n,o[a],i)&&r.isArray(o[a])&&(o[a]=function(e){var t,n,r={},o=Object.keys(e),i=o.length;for(t=0;t<i;t++)r[n=o[t]]=e[n];return r}(o[a])),!s)}if(r.isFormData(e)&&r.isFunction(e.entries)){var n={};return r.forEachEntry(e,(function(e,o){t(function(e){
12673
- // foo[x][y][z]
12674
- // foo.x.y.z
12675
- // foo-x-y-z
12676
- // foo x y z
12677
- return r.matchAll(/\w+|\[(\w*)]/g,e).map((function(e){return"[]"===e[0]?"":e[1]||e[0]}))}(e),o,n,0)})),n}return null}}
12678
- /***/,
12679
12654
  /***/2268:
12680
12655
  /***/e=>{"use strict";
12681
12656
  /**
@@ -12742,10 +12717,7 @@ return e=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n
12742
12717
  * @param {String} headers Headers needing to be parsed
12743
12718
  * @returns {Object} Headers parsed into an object
12744
12719
  */
12745
- e.exports=function(e){var t,n,i,a={};return e?(r.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=r.trim(e.slice(0,i)).toLowerCase(),n=r.trim(e.slice(i+1)),t){if(a[t]&&o.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}}
12746
- /***/,
12747
- /***/2799:
12748
- /***/e=>{"use strict";e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}}
12720
+ e.exports=function(e){var t,n,i,a={};return e?(r.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=r.trim(e.substr(0,i)).toLowerCase(),n=r.trim(e.substr(i+1)),t){if(a[t]&&o.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}}
12749
12721
  /***/,
12750
12722
  /***/3884:
12751
12723
  /***/e=>{"use strict";
@@ -12770,99 +12742,43 @@ e.exports=function(e){var t,n,i,a={};return e?(r.forEach(e.split("\n"),(function
12770
12742
  * @returns {Function}
12771
12743
  */e.exports=function(e){return function(t){return e.apply(null,t)}}}
12772
12744
  /***/,
12773
- /***/2421:
12774
- /***/(e,t,n)=>{"use strict";var r=n(8946),o=n(6452),i=n(8811);function a(e){return r.isPlainObject(e)||r.isArray(e)}function s(e){return r.endsWith(e,"[]")?e.slice(0,-2):e}function c(e,t,n){return e?e.concat(t).map((function(e,t){
12775
- // eslint-disable-next-line no-param-reassign
12776
- return e=s(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}var l=r.toFlatObject(r,{},null,(function(e){return/^is[A-Z]/.test(e)}));e.exports=
12777
- /**
12778
- * Convert a data object to FormData
12779
- * @param {Object} obj
12780
- * @param {?Object} [formData]
12781
- * @param {?Object} [options]
12782
- * @param {Function} [options.visitor]
12783
- * @param {Boolean} [options.metaTokens = true]
12784
- * @param {Boolean} [options.dots = false]
12785
- * @param {?Boolean} [options.indexes = false]
12786
- * @returns {Object}
12787
- **/
12788
- function(e,t,n){if(!r.isObject(e))throw new TypeError("target must be an object");
12789
- // eslint-disable-next-line no-param-reassign
12790
- t=t||new(i||FormData);var u,d=(
12791
- // eslint-disable-next-line no-param-reassign
12792
- n=r.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){
12793
- // eslint-disable-next-line no-eq-null,eqeqeq
12794
- return!r.isUndefined(t[e])}))).metaTokens,f=n.visitor||g,p=n.dots,h=n.indexes,m=(n.Blob||"undefined"!=typeof Blob&&Blob)&&((u=t)&&r.isFunction(u.append)&&"FormData"===u[Symbol.toStringTag]&&u[Symbol.iterator]);
12795
- // eslint-disable-next-line no-use-before-define
12796
- if(!r.isFunction(f))throw new TypeError("visitor must be a function");function v(e){if(null===e)return"";if(r.isDate(e))return e.toISOString();if(!m&&r.isBlob(e))throw new o("Blob is not supported. Use a Buffer instead.");return r.isArrayBuffer(e)||r.isTypedArray(e)?m&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}
12797
- /**
12798
- *
12799
- * @param {*} value
12800
- * @param {String|Number} key
12801
- * @param {Array<String|Number>} path
12802
- * @this {FormData}
12803
- * @returns {boolean} return true to visit the each prop of the value recursively
12804
- */function g(e,n,o){var i=e;if(e&&!o&&"object"==typeof e)if(r.endsWith(n,"{}"))
12805
- // eslint-disable-next-line no-param-reassign
12806
- n=d?n:n.slice(0,-2),
12807
- // eslint-disable-next-line no-param-reassign
12808
- e=JSON.stringify(e);else if(r.isArray(e)&&function(e){return r.isArray(e)&&!e.some(a)}(e)||r.isFileList(e)||r.endsWith(n,"[]")&&(i=r.toArray(e)))
12809
- // eslint-disable-next-line no-param-reassign
12810
- return n=s(n),i.forEach((function(e,o){!r.isUndefined(e)&&t.append(
12811
- // eslint-disable-next-line no-nested-ternary
12812
- !0===h?c([n],o,p):null===h?n:n+"[]",v(e))})),!1;return!!a(e)||(t.append(c(o,n,p),v(e)),!1)}var y=[],b=Object.assign(l,{defaultVisitor:g,convertValue:v,isVisitable:a});if(!r.isObject(e))throw new TypeError("data must be an object");return function e(n,o){if(!r.isUndefined(n)){if(-1!==y.indexOf(n))throw Error("Circular reference detected in "+o.join("."));y.push(n),r.forEach(n,(function(n,i){!0===(!r.isUndefined(n)&&f.call(t,n,r.isString(i)?i.trim():i,o,b))&&e(n,o?o.concat(i):[i])})),y.pop()}}(e),t}}
12813
- /***/,
12814
- /***/1920:
12815
- /***/(e,t,n)=>{"use strict";var r=n(8946),o=n(2421),i=n(5468);e.exports=function(e,t){return o(e,new i.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,o){return i.isNode&&r.isBuffer(e)?(this.append(t,e.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}}
12816
- /***/,
12817
12745
  /***/2602:
12818
- /***/(e,t,n)=>{"use strict";var r=n(3198).version,o=n(6452),i={};
12746
+ /***/(e,t,n)=>{"use strict";var r=n(3198).version,o={};
12819
12747
  // eslint-disable-next-line func-names
12820
- ["object","boolean","number","function","string","symbol"].forEach((function(e,t){i[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var a={};
12748
+ ["object","boolean","number","function","string","symbol"].forEach((function(e,t){o[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var i={};
12821
12749
  /**
12822
12750
  * Transitional option validator
12823
12751
  * @param {function|boolean?} validator - set to false if the transitional option has been removed
12824
12752
  * @param {string?} version - deprecated version / removed since version
12825
12753
  * @param {string?} message - some message with additional info
12826
12754
  * @returns {function}
12827
- */i.transitional=function(e,t,n){
12755
+ */o.transitional=function(e,t,n){
12828
12756
  // eslint-disable-next-line func-names
12829
- return function(i,s,c){if(!1===e)throw new o(function(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}(s," has been removed"+(t?" in "+t:"")),o.ERR_DEPRECATED);return t&&!a[s]&&(a[s]=!0),!e||e(i,s,c)}},e.exports={assertOptions:
12757
+ return function(o,a,s){if(!1===e)throw new Error(function(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}(a," has been removed"+(t?" in "+t:"")));return t&&!i[a]&&(i[a]=!0),!e||e(o,a,s)}},e.exports={assertOptions:
12830
12758
  /**
12831
12759
  * Assert object's properties type
12832
12760
  * @param {object} options
12833
12761
  * @param {object} schema
12834
12762
  * @param {boolean?} allowUnknown
12835
12763
  */
12836
- function(e,t,n){if("object"!=typeof e)throw new o("options must be an object",o.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),i=r.length;i-- >0;){var a=r[i],s=t[a];if(s){var c=e[a],l=void 0===c||s(c,a,e);if(!0!==l)throw new o("option "+a+" must be "+l,o.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new o("Unknown option "+a,o.ERR_BAD_OPTION)}},validators:i}}
12837
- /***/,
12838
- /***/5936:
12839
- /***/e=>{"use strict";e.exports=FormData}
12840
- /***/,
12841
- /***/7554:
12842
- /***/(e,t,n)=>{"use strict";var r=n(9951);e.exports="undefined"!=typeof URLSearchParams?URLSearchParams:r}
12843
- /***/,
12844
- /***/4985:
12845
- /***/(e,t,n)=>{"use strict";e.exports={isBrowser:!0,classes:{URLSearchParams:n(7554),FormData:n(5936),Blob},protocols:["http","https","file","blob","url","data"]}}
12846
- /***/,
12847
- /***/5468:
12848
- /***/(e,t,n)=>{"use strict";e.exports=n(4985)}
12764
+ function(e,t,n){if("object"!=typeof e)throw new TypeError("options must be an object");for(var r=Object.keys(e),o=r.length;o-- >0;){var i=r[o],a=t[i];if(a){var s=e[i],c=void 0===s||a(s,i,e);if(!0!==c)throw new TypeError("option "+i+" must be "+c)}else if(!0!==n)throw Error("Unknown option "+i)}},validators:o}}
12849
12765
  /***/,
12850
12766
  /***/8946:
12851
- /***/(e,t,n)=>{"use strict";var r,o=n(1375),i=Object.prototype.toString,a=(r=Object.create(null),function(e){var t=i.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())});
12767
+ /***/(e,t,n)=>{"use strict";var r=n(1375),o=Object.prototype.toString;
12852
12768
  // utils is a library of generic helper functions non-specific to axios
12853
- function s(e){return e=e.toLowerCase(),function(t){return a(t)===e}}
12854
12769
  /**
12855
12770
  * Determine if a value is an Array
12856
12771
  *
12857
12772
  * @param {Object} val The value to test
12858
12773
  * @returns {boolean} True if value is an Array, otherwise false
12859
- */function c(e){return Array.isArray(e)}
12774
+ */
12775
+ function i(e){return Array.isArray(e)}
12860
12776
  /**
12861
12777
  * Determine if a value is undefined
12862
12778
  *
12863
12779
  * @param {Object} val The value to test
12864
12780
  * @returns {boolean} True if the value is undefined, otherwise false
12865
- */function l(e){return void 0===e}
12781
+ */function a(e){return void 0===e}
12866
12782
  /**
12867
12783
  * Determine if a value is a Buffer
12868
12784
  *
@@ -12872,83 +12788,48 @@ function s(e){return e=e.toLowerCase(),function(t){return a(t)===e}}
12872
12788
  /**
12873
12789
  * Determine if a value is an ArrayBuffer
12874
12790
  *
12875
- * @function
12876
12791
  * @param {Object} val The value to test
12877
12792
  * @returns {boolean} True if value is an ArrayBuffer, otherwise false
12878
12793
  */
12879
- var u=s("ArrayBuffer");
12880
- /**
12881
- * Determine if a value is a view on an ArrayBuffer
12882
- *
12883
- * @param {Object} val The value to test
12884
- * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false
12885
- */
12794
+ function s(e){return"[object ArrayBuffer]"===o.call(e)}
12886
12795
  /**
12887
- * Determine if a value is a Number
12796
+ * Determine if a value is a FormData
12888
12797
  *
12889
12798
  * @param {Object} val The value to test
12890
- * @returns {boolean} True if value is a Number, otherwise false
12799
+ * @returns {boolean} True if value is an FormData, otherwise false
12891
12800
  */
12892
- function d(e){return"number"==typeof e}
12893
12801
  /**
12894
12802
  * Determine if a value is an Object
12895
12803
  *
12896
12804
  * @param {Object} val The value to test
12897
12805
  * @returns {boolean} True if value is an Object, otherwise false
12898
- */function f(e){return null!==e&&"object"==typeof e}
12806
+ */
12807
+ function c(e){return null!==e&&"object"==typeof e}
12899
12808
  /**
12900
12809
  * Determine if a value is a plain Object
12901
12810
  *
12902
12811
  * @param {Object} val The value to test
12903
12812
  * @return {boolean} True if value is a plain Object, otherwise false
12904
- */function p(e){if("object"!==a(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}
12905
- /**
12906
- * Determine if a value is a empty Object
12907
- *
12908
- * @param {Object} val The value to test
12909
- * @return {boolean} True if value is a empty Object, otherwise false
12910
- */
12813
+ */function l(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}
12911
12814
  /**
12912
12815
  * Determine if a value is a Date
12913
12816
  *
12914
- * @function
12915
12817
  * @param {Object} val The value to test
12916
12818
  * @returns {boolean} True if value is a Date, otherwise false
12917
12819
  */
12918
- var h=s("Date"),m=s("File"),v=s("Blob"),g=s("FileList");
12919
- /**
12920
- * Determine if a value is a File
12921
- *
12922
- * @function
12923
- * @param {Object} val The value to test
12924
- * @returns {boolean} True if value is a File, otherwise false
12925
- */
12926
12820
  /**
12927
12821
  * Determine if a value is a Function
12928
12822
  *
12929
12823
  * @param {Object} val The value to test
12930
12824
  * @returns {boolean} True if value is a Function, otherwise false
12931
12825
  */
12932
- function y(e){return"[object Function]"===i.call(e)}
12826
+ function u(e){return"[object Function]"===o.call(e)}
12933
12827
  /**
12934
12828
  * Determine if a value is a Stream
12935
12829
  *
12936
12830
  * @param {Object} val The value to test
12937
12831
  * @returns {boolean} True if value is a Stream, otherwise false
12938
12832
  */
12939
- /**
12940
- * Determine if a value is a URLSearchParams object
12941
- * @function
12942
- * @param {Object} val The value to test
12943
- * @returns {boolean} True if value is a URLSearchParams object, otherwise false
12944
- */
12945
- var b=s("URLSearchParams");
12946
- /**
12947
- * Trim excess whitespace off the beginning and end of a string
12948
- *
12949
- * @param {String} str The String to trim
12950
- * @returns {String} The String freed of excess whitespace
12951
- */
12952
12833
  /**
12953
12834
  * Iterate over an Array or an Object invoking a function for each item.
12954
12835
  *
@@ -12961,13 +12842,13 @@ var b=s("URLSearchParams");
12961
12842
  * @param {Object|Array} obj The object to iterate
12962
12843
  * @param {Function} fn The callback to invoke for each item
12963
12844
  */
12964
- function w(e,t){
12845
+ function d(e,t){
12965
12846
  // Don't bother if no value provided
12966
12847
  if(null!=e)if(
12967
12848
  // Force an array if not already something iterable
12968
12849
  "object"!=typeof e&&(
12969
12850
  /*eslint no-param-reassign:0*/
12970
- e=[e]),c(e))
12851
+ e=[e]),i(e))
12971
12852
  // Iterate over array values
12972
12853
  for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else
12973
12854
  // Iterate over object keys
@@ -12988,22 +12869,49 @@ for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}
12988
12869
  *
12989
12870
  * @param {Object} obj1 Object to merge
12990
12871
  * @returns {Object} Result of all merge properties
12991
- */
12992
- // eslint-disable-next-line func-names
12993
- var C,E=(C="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(e){return C&&e instanceof C});var k,S=s("HTMLFormElement"),x=(k=Object.prototype.hasOwnProperty,function(e,t){return k.call(e,t)});e.exports={isArray:c,isArrayBuffer:u,isBuffer:function(e){return null!==e&&!l(e)&&null!==e.constructor&&!l(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:
12872
+ */e.exports={isArray:i,isArrayBuffer:s,isBuffer:function(e){return null!==e&&!a(e)&&null!==e.constructor&&!a(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"[object FormData]"===o.call(e)}
12994
12873
  /**
12995
- * Determine if a value is a FormData
12874
+ * Determine if a value is a view on an ArrayBuffer
12996
12875
  *
12997
- * @param {Object} thing The value to test
12998
- * @returns {boolean} True if value is an FormData, otherwise false
12999
- */
13000
- function(e){var t="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||i.call(e)===t||y(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&u(e.buffer)}
12876
+ * @param {Object} val The value to test
12877
+ * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false
12878
+ */,isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&s(e.buffer)}
13001
12879
  /**
13002
12880
  * Determine if a value is a String
13003
12881
  *
13004
12882
  * @param {Object} val The value to test
13005
12883
  * @returns {boolean} True if value is a String, otherwise false
13006
- */,isString:function(e){return"string"==typeof e},isNumber:d,isObject:f,isPlainObject:p,isEmptyObject:function(e){return e&&0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype},isUndefined:l,isDate:h,isFile:m,isBlob:v,isFunction:y,isStream:function(e){return f(e)&&y(e.pipe)},isURLSearchParams:b,isStandardBrowserEnv:
12884
+ */,isString:function(e){return"string"==typeof e}
12885
+ /**
12886
+ * Determine if a value is a Number
12887
+ *
12888
+ * @param {Object} val The value to test
12889
+ * @returns {boolean} True if value is a Number, otherwise false
12890
+ */,isNumber:function(e){return"number"==typeof e},isObject:c,isPlainObject:l,isUndefined:a,isDate:function(e){return"[object Date]"===o.call(e)}
12891
+ /**
12892
+ * Determine if a value is a File
12893
+ *
12894
+ * @param {Object} val The value to test
12895
+ * @returns {boolean} True if value is a File, otherwise false
12896
+ */,isFile:function(e){return"[object File]"===o.call(e)}
12897
+ /**
12898
+ * Determine if a value is a Blob
12899
+ *
12900
+ * @param {Object} val The value to test
12901
+ * @returns {boolean} True if value is a Blob, otherwise false
12902
+ */,isBlob:function(e){return"[object Blob]"===o.call(e)},isFunction:u,isStream:function(e){return c(e)&&u(e.pipe)}
12903
+ /**
12904
+ * Determine if a value is a URLSearchParams object
12905
+ *
12906
+ * @param {Object} val The value to test
12907
+ * @returns {boolean} True if value is a URLSearchParams object, otherwise false
12908
+ */,isURLSearchParams:function(e){return"[object URLSearchParams]"===o.call(e)}
12909
+ /**
12910
+ * Trim excess whitespace off the beginning and end of a string
12911
+ *
12912
+ * @param {String} str The String to trim
12913
+ * @returns {String} The String freed of excess whitespace
12914
+ */,isStandardBrowserEnv:
13007
12915
  /**
13008
12916
  * Determine if we're running in a standard browser environment
13009
12917
  *
@@ -13019,7 +12927,7 @@ function(e){var t="[object FormData]";return e&&("function"==typeof FormData&&e
13019
12927
  * nativescript
13020
12928
  * navigator.product -> 'NativeScript' or 'NS'
13021
12929
  */
13022
- function(){var e;return("undefined"==typeof navigator||"ReactNative"!==(e=navigator.product)&&"NativeScript"!==e&&"NS"!==e)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:w,merge:function e(){var t={};function n(n,r){p(t[r])&&p(n)?t[r]=e(t[r],n):p(n)?t[r]=e({},n):c(n)?t[r]=n.slice():t[r]=n}for(var r=0,o=arguments.length;r<o;r++)w(arguments[r],n);return t}
12930
+ function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:d,merge:function e(){var t={};function n(n,r){l(t[r])&&l(n)?t[r]=e(t[r],n):l(n)?t[r]=e({},n):i(n)?t[r]=n.slice():t[r]=n}for(var r=0,o=arguments.length;r<o;r++)d(arguments[r],n);return t}
13023
12931
  /**
13024
12932
  * Extends object a by mutably adding to it the properties of object b.
13025
12933
  *
@@ -13027,42 +12935,13 @@ function(){var e;return("undefined"==typeof navigator||"ReactNative"!==(e=naviga
13027
12935
  * @param {Object} b The object to copy properties from
13028
12936
  * @param {Object} thisArg The object to bind function to
13029
12937
  * @return {Object} The resulting value of object a
13030
- */,extend:function(e,t,n){return w(t,(function(t,r){e[r]=n&&"function"==typeof t?o(t,n):t})),e}
12938
+ */,extend:function(e,t,n){return d(t,(function(t,o){e[o]=n&&"function"==typeof t?r(t,n):t})),e}
13031
12939
  /**
13032
12940
  * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)
13033
12941
  *
13034
12942
  * @param {string} content with BOM
13035
12943
  * @return {string} content value without BOM
13036
- */,trim:function(e){return e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}
13037
- /**
13038
- * Inherit the prototype methods from one constructor into another
13039
- * @param {function} constructor
13040
- * @param {function} superConstructor
13041
- * @param {object} [props]
13042
- * @param {object} [descriptors]
13043
- */,inherits:function(e,t,n,r){e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,n&&Object.assign(e.prototype,n)}
13044
- /**
13045
- * Resolve object with deep prototype chain to a flat object
13046
- * @param {Object} sourceObj source object
13047
- * @param {Object} [destObj]
13048
- * @param {Function|Boolean} [filter]
13049
- * @param {Function} [propFilter]
13050
- * @returns {Object}
13051
- */,toFlatObject:function(e,t,n,r){var o,i,a,s={};
13052
- // eslint-disable-next-line no-eq-null,eqeqeq
13053
- if(t=t||{},null==e)return t;do{for(i=(o=Object.getOwnPropertyNames(e)).length;i-- >0;)a=o[i],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t}
13054
- /*
13055
- * determines whether a string ends with the characters of a specified string
13056
- * @param {String} str
13057
- * @param {String} searchString
13058
- * @param {Number} [position= 0]
13059
- * @returns {boolean}
13060
- */,kindOf:a,kindOfTest:s,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return-1!==r&&r===n}
13061
- /**
13062
- * Returns new array from array like object or null if failed
13063
- * @param {*} [thing]
13064
- * @returns {?Array}
13065
- */,toArray:function(e){if(!e)return null;if(c(e))return e;var t=e.length;if(!d(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n},isTypedArray:E,isFileList:g,forEachEntry:function(e,t){for(var n,r=(e&&e[Symbol.iterator]).call(e);(n=r.next())&&!n.done;){var o=n.value;t.call(e,o[0],o[1])}},matchAll:function(e,t){for(var n,r=[];null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:S,hasOwnProperty:x}}
12944
+ */,trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}}
13066
12945
  /***/,
13067
12946
  /***/2245:
13068
12947
  /***/(e,t,n)=>{"use strict";var r=n(8642),o=n(5162),i=o(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&i(e,".prototype.")>-1?o(n):n}}
@@ -15671,11 +15550,6 @@ var c=a[s];e=e.replace(new RegExp(c,"g"),t[c])}return e}(e)}}}
15671
15550
  /***/3791:
15672
15551
  /***/e=>{"use strict";e.exports=function(e,t){for(var n={},r=Object.keys(e),o=Array.isArray(t),i=0;i<r.length;i++){var a=r[i],s=e[a];(o?-1!==t.indexOf(a):t(a,s,e))&&(n[a]=s)}return n}}
15673
15552
  /***/,
15674
- /***/7213:
15675
- /***/e=>{
15676
- /* eslint-env browser */
15677
- e.exports="object"==typeof self?self.FormData:window.FormData;
15678
- /***/},
15679
15553
  /***/4997:
15680
15554
  /***/e=>{"use strict";
15681
15555
  /* eslint no-invalid-this: 1 */var t=Array.prototype.slice,n=Object.prototype.toString;e.exports=function(e){var r=this;if("function"!=typeof r||"[object Function]"!==n.call(r))throw new TypeError("Function.prototype.bind called on incompatible "+r);for(var o,i=t.call(arguments,1),a=Math.max(0,r.length-i.length),s=[],c=0;c<a;c++)s.push("$"+c);if(o=Function("binder","return function ("+s.join(",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof o){var n=r.apply(this,i.concat(t.call(arguments)));return Object(n)===n?n:this}return r.apply(e,i.concat(t.call(arguments)))})),r.prototype){var l=function(){};l.prototype=r.prototype,o.prototype=new l,l.prototype=null}return o}}
@@ -27475,7 +27349,7 @@ var $D=i(4232),HD=i(4631),WD=i(1062),GD=i(8787),KD={zhCN:$D/* default */.Z,enUS:
27475
27349
  * 多账号 状态
27476
27350
  */
27477
27351
  multipleInstance:{isMultipleAccount:!1,instance:void 0,referMultipleState:void 0,multipleAccountData:void 0,clearBackFillData:void 0},phoneRegex:null,defaultLanguageConfig:"zh-CN",tenantInstance:void 0},nL=y().createContext(tL),rL=y().createContext({spin:!1,spinChange:function(){}}),oL=function(){return XD(rL)},iL=function(){return XD(nL).publicConfig},aL=function(){return XD(nL).httpClient},sL=function(){return XD(nL).appId},cL=function(){return XD(nL).tenantId};function lL(){return XD(nL).initData}var uL=function(){return XD(nL).currentModule},dL=function(){return XD(nL).events},fL=function(){var e=XD(nL);return{changeModule:e.changeModule,backModule:e.backModule,currentModule:e.currentModule}},pL=function(){return XD(nL).finallyConfig},hL=function(){return XD(nL).isAuthFlow},mL=function(){return XD(nL).multipleInstance},vL=function(){return XD(nL).phoneRegex},gL=function(){return XD(nL).defaultLanguageConfig},yL=function(){var e=iL(),t=e.customSecurityEnabled,n=e.appRobotVerify,r=e.userpoolRobotVerify;return t?n:r},bL=function(e){var t,n,r=iL(),o=r.loginSmsConfig,i=r.registerSmsConfig,a=!1;switch(e){case"login":a="ON"===(null===(t=null==o?void 0:o.robot)||void 0===t?void 0:t.switch);break;case"register":a="ON"===(null===(n=null==i?void 0:i.robot)||void 0===n?void 0:n.switch)}return a},wL=y().useMemo,CL={"zh-CN":{label:"简体中文"},"zh-TW":{label:"繁體中文"},"en-US":{label:"English"},"ja-JP":{label:"日本語"}},EL=function(e){var t=e.langRange,n=void 0===t?["zh-CN","zh-TW","en-US","ja-JP"]:t,r=e.onLangChange,o=Pu().i18n,i=XD(nL).guardPageConfig,a=pL(),s=wL((function(){return"g2-change-language-text ".concat(a.mode)}),[a]),c=wL((function(){var e;return null===(e=i.global)||void 0===e?void 0:e.showChangeLanguage}),[i]),l=wL((function(){return Object.keys(CL).includes(fd)?fd:dd(fd)[0]||"en-US"}),[fd]),u=wL((function(){return y().createElement(y().Fragment,null,y().createElement("span",null,CL[l].label))}),[l]),d=wL((function(){return Object.keys(CL).filter((function(e){return n.includes(e)})).map((function(e){return{key:e,label:CL[e].label}}))}),[n]);if(!c||0===n.length)return null;var f={items:d,onClick:function(e){l!==e.key&&(o.changeLanguage(e.key),null==r||r(e.key))}};return y().createElement("div",{className:"g2-change-language-container"},y().createElement(CP,{menu:f,trigger:["click"],placement:"bottom",overlayClassName:"authing-g2-change-language-menu"},y().createElement("span",{className:s},u,y().createElement(JD,{type:"authing-arrow-down-s-fill",className:"down-fill-svg"}))))};// CONCATENATED MODULE: ./package.json
27478
- const kL=JSON.parse('{"i8":"4.5.40-alpha.17"}');// CONCATENATED MODULE: ./src/_utils/getVersion.ts
27352
+ const kL=JSON.parse('{"i8":"4.5.40-alpha.18"}');// CONCATENATED MODULE: ./src/_utils/getVersion.ts
27479
27353
  function SL(){return kL.i8}// CONCATENATED MODULE: ./src/_utils/flowHandleStorage.ts
27480
27354
  var xL,_L=function(){return xL},PL=function(e){xL=e},TL=function(){return TL=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},TL.apply(this,arguments)},OL=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},NL=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},IL=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},AL=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},RL=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return OL(void 0,void 0,void 0,(function(){return NL(this,(function(t){switch(t.label){case 0:return[4/*yield*/,fetch.apply(void 0,AL([],IL(e),!1))];case 1:return[2/*return*/,t.sent().json()]}}))}))},ML=function(e){return new Promise((function(t){setTimeout((function(){t({data:{code:-1}}),e()}),1e4)}))};RL.get=function(e,t,n){return void 0===t&&(t={}),OL(void 0,void 0,void 0,(function(){var r,o,i,a,s;return NL(this,(function(c){switch(c.label){case 0:r=TL(TL({},null==n?void 0:n.headers),((s={"Content-Type":"application/json"})[RL.langHeader]=_X(),s)),""!==RL.tenantId&&(r[RL.tenantHeader]=RL.tenantId),c.label=1;case 1:return c.trys.push([1,3,,4]),o=ma().CancelToken,i=o.source(),[4/*yield*/,Promise.race([ML(i.cancel),ma()("".concat(RL.baseUrl).concat(e).concat(jc().stringify(t,{addQueryPrefix:!0})),TL(TL({method:"GET"},n),{withCredentials:!0,headers:r,cancelToken:i.token}))])];case 2:return[2/*return*/,null==(a=c.sent())?void 0:a.data];case 3:return c.sent(),[2/*return*/,Promise.resolve({code:-2})];case 4:return[2/*return*/]}}))}))},RL.post=function(e,t,n){return OL(void 0,void 0,void 0,(function(){var r,o,i,a,s,c;return NL(this,(function(l){switch(l.label){case 0:r=TL(TL({},null==n?void 0:n.headers),((s={"Content-Type":"application/json"})[RL.langHeader]=cu.resolvedLanguage,s)),""!==RL.tenantId&&(r[RL.tenantHeader]=RL.tenantId),l.label=1;case 1:return l.trys.push([1,3,,4]),o=ma().CancelToken,i=o.source(),[4/*yield*/,Promise.race([ML(i.cancel),ma()("".concat(RL.baseUrl).concat(e),{data:t,method:"POST",withCredentials:!0,cancelToken:i.token,headers:TL(TL({"Content-Type":"application/json"},null==n?void 0:n.headers),(c={},c[RL.langHeader]=_X(),c))})])];case 2:return[2/*return*/,null==(a=l.sent())?void 0:a.data];case 3:return l.sent(),[2/*return*/,Promise.resolve({code:-2})];case 4:return[2/*return*/]}}))}))},RL.postForm=function(e,t,n){return OL(void 0,void 0,void 0,(function(){var r,o,i,a;return NL(this,(function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),r=ma().CancelToken,o=r.source(),[4/*yield*/,Promise.race([ML(o.cancel),ma()("".concat(RL.baseUrl).concat(e),{method:"POST",data:t,withCredentials:!0,cancelToken:o.token,headers:TL(TL({},null==n?void 0:n.headers),(a={},a[RL.langHeader]=_X(),a))})])];case 1:return[2/*return*/,null==(i=s.sent())?void 0:i.data];case 2:return s.sent(),[2/*return*/,Promise.resolve({code:-2})];case 3:return[2/*return*/]}}))}))},RL.baseUrl="",RL.setBaseUrl=function(e){RL.baseUrl=e.replace(/\/$/,"")};var DL,LL="x-authing-lang";RL.langHeader=LL,RL.tenantHeader="x-authing-app-tenant-idåå",RL.tenantId="",RL.setLangHeader=function(e){RL.langHeader=e||LL},RL.setTenantHeader=function(e){RL.tenantHeader=e||LL},RL.setTenantId=function(e){RL.tenantId=e},function(e){e.ERROR="error",e.LOGIN="login",e.REGISTER="register",e.MFA="mfa",e.FORGET_PWD="forgetPassword",e.FORCED_PASSWORD_RESET="forcedPasswordReset",e.NOTICE_PASSWORD_RESET="noticePasswordReset",e.FIRST_LOGIN_PASSWORD="firstLoginPassword",e.UNSAFE_PASSWORD_RESET="unsafePasswordReset",e.DOWNLOAD_AT="downloadAT",e.BIND_TOTP="bindTotp",e.ANY_QUESTIONS="anyQuestions",e.LOGIN_COMPLETE_INFO="loginCompleteInfo",e.REGISTER_PASSWORD="registerPassword",e.REGISTER_COMPLETE_INFO="registerCompleteInfo",e.RECOVERY_CODE="recoveryCode",e.SUBMIT_SUCCESS="submitSuccess",e.IDENTITY_BINDING_ASK="identityBindingAsk",e.IDENTITY_BINDING="identityBinding",e.IDENTITY_BINDING_NO_ASK="identityBindingNoAsk",e.SELF_UNLOCK="selfUnlock",e.FLOW_SELECT_ACCOUNT="flowSelectAccount",
27481
27355
  /** 多租户门户选择页 */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@authing/guard-shim-react",
3
- "version": "4.5.40-alpha.17",
3
+ "version": "4.5.40-alpha.18",
4
4
  "description": "Guard shim for react 16 / 17, only be used to internal",
5
5
  "types": "dist/typings/src/index.d.ts",
6
6
  "module": "dist/guard.min.js",