@carbon/ibmdotcom-services 2.10.0 → 2.11.0
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/es/internal/vendor/@carbon/ibmdotcom-utilities/utilities/StickyHeader/StickyHeader.js +387 -178
- package/es/internal/vendor/@carbon/ibmdotcom-utilities/utilities/focuswrap/focuswrap.js +14 -15
- package/es/internal/vendor/@carbon/ibmdotcom-utilities/utilities/ipcinfoCookie/ipcinfoCookie.js +10 -18
- package/es/internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings.js +2 -2
- package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/StickyHeader/StickyHeader.js +387 -178
- package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/focuswrap/focuswrap.js +14 -15
- package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/ipcinfoCookie/ipcinfoCookie.js +10 -18
- package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings.js +2 -2
- package/package.json +3 -3
- package/umd/ibmdotcom-services.js +1197 -559
- package/umd/ibmdotcom-services.min.js +3 -3
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).IBMDotcomServices={})}(this,(function(e){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var n={exports:{}};!function(e){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports}(n);var o=r(n.exports),
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).IBMDotcomServices={})}(this,(function(e){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var n={exports:{}};!function(e){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports}(n);var o=r(n.exports),a={exports:{}},i={exports:{}},s={exports:{}};!function(e){function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(s);var c=r(s.exports),u={exports:{}};!function(e){var t=s.exports.default;e.exports=function(e,r){if("object"!=t(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,r||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(u),function(e){var t=s.exports.default,r=u.exports;e.exports=function(e){var n=r(e,"string");return"symbol"==t(n)?n:n+""},e.exports.__esModule=!0,e.exports.default=e.exports}(i),function(e){var t=i.exports;function r(e,r){for(var n=0;n<r.length;n++){var o=r[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,t(o.key),o)}}e.exports=function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports}(a);var l=r(a.exports),f="object"===("undefined"==typeof self?"undefined":c(self))&&self.self===self&&self||"object"===c(t)&&t.global===t&&t||t,p=process&&"true"===process.env.SCROLL_TRACKING||!1,d=process?"production":"development",h=function(){return l((function e(){o(this,e)}),null,[{key:"registerEvent",value:function(e){f.ibmStats&&f.ibmStats.event(e)}},{key:"initAll",value:function(){this.initScrollTracker(),this.initDynamicTabs(),this.initModals()}},{key:"initScrollTracker",value:function(){p&&console.warn("Scroll tracker service has been deprecated. Please refer to documentation for IBM DBDM gestures 2.0.")}},{key:"initDynamicTabs",value:function(){var e=this.triggerTabSelected.bind(this);f.document.addEventListener("tab-selected",(function(t){e(t.target.id,t.detail.item.innerText)}))}},{key:"triggerTabSelected",value:function(e,t){try{this.registerEvent({type:"element",primaryCategory:"WIDGET",eventName:"CLICK",eventCategoryGroup:"TABS DYNAMIC",executionPath:e,targetTitle:t})}catch(e){"production"!==d&&console.error("Error triggering tab event:",e)}}},{key:"initModals",value:function(){var e=this.triggerModalHide.bind(this);f.document.addEventListener("modal-hidden",(function(t){e(t.target.id,t.detail.launchingElement.innerText)}));var t=this.triggerModalShow.bind(this);f.document.addEventListener("modal-shown",(function(e){t(e.target.id,e.detail.launchingElement.innerText)}))}},{key:"triggerModalHide",value:function(e,t){try{this.registerEvent({type:"element",primaryCategory:"WIDGET",eventName:"HIDE",eventCategoryGroup:"SHOWHIDE",executionPath:e,targetTitle:t})}catch(e){"production"!==d&&console.error("Error triggering modal hide event:",e)}}},{key:"triggerModalShow",value:function(e,t){try{this.registerEvent({type:"element",primaryCategory:"WIDGET",eventName:"SHOW",eventCategoryGroup:"SHOWHIDE",executionPath:e,targetTitle:t})}catch(e){"production"!==d&&console.error("Error triggering modal show event:",e)}}},{key:"videoPlayerStats",value:function(e){var t=(null==e?void 0:e.playerState)||"",r=Math.floor(e.currentTime),n=Math.floor(e.duration),o=Math.floor(r/n*100);switch(e.playerState){case 0:t="launched";break;case 1:t="paused";break;case 2:t="played";break;case 3:t="ended";break;case 99:t="error";break;default:"number"==typeof t&&(t="")}if(0===r&&(r="start",o="0"),(r>=n||3===e.playerState)&&(r="end",o="100"),"end"!==r||1!==e.playerState){var a={type:"video",primaryCategory:"VIDEO",eventName:e.title,eventCategoryGroup:e.playerType,executionPath:e.videoId||e.mediaId,execPathReturnCode:t,eventVidStatus:e.playerState,eventVidTimeStamp:r,eventVidLength:n,eventVidPlayed:o+"%"};null!=e&&e.customMetricsData&&Object.keys(e.customMetricsData).forEach((function(t){a[t]=e.customMetricsData[t]}));try{this.registerEvent(a)}catch(e){"production"!==d&&console.error("Error firing video metrics:",e)}}}}])}(),v={exports:{}};!function(e){function t(e,t,r,n,o,a,i){try{var s=e[a](i),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}e.exports=function(e){return function(){var r=this,n=arguments;return new Promise((function(o,a){var i=e.apply(r,n);function s(e){t(i,o,a,s,c,"next",e)}function c(e){t(i,o,a,s,c,"throw",e)}s(void 0)}))}},e.exports.__esModule=!0,e.exports.default=e.exports}(v);var y=r(v.exports),m={exports:{}};!function(e){var t=s.exports.default;function r(){
|
|
2
2
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
3
|
-
e.exports=r=function(){return o},e.exports.__esModule=!0,e.exports.default=e.exports;var n,o={},i=Object.prototype,a=i.hasOwnProperty,s=Object.defineProperty||function(e,t,r){e[t]=r.value},c="function"==typeof Symbol?Symbol:{},u=c.iterator||"@@iterator",l=c.asyncIterator||"@@asyncIterator",f=c.toStringTag||"@@toStringTag";function p(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{p({},"")}catch(n){p=function(e,t,r){return e[t]=r}}function d(e,t,r,n){var o=t&&t.prototype instanceof w?t:w,i=Object.create(o.prototype),a=new L(n||[]);return s(i,"_invoke",{value:P(e,r,a)}),i}function h(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}o.wrap=d;var v="suspendedStart",m="suspendedYield",y="executing",g="completed",b={};function w(){}function x(){}function E(){}var O={};p(O,u,(function(){return this}));var S=Object.getPrototypeOf,k=S&&S(S(N([])));k&&k!==i&&a.call(k,u)&&(O=k);var T=E.prototype=w.prototype=Object.create(O);function A(e){["next","throw","return"].forEach((function(t){p(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,r){function n(o,i,s,c){var u=h(e[o],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==t(f)&&a.call(f,"__await")?r.resolve(f.__await).then((function(e){n("next",e,s,c)}),(function(e){n("throw",e,s,c)})):r.resolve(f).then((function(e){l.value=e,s(l)}),(function(e){return n("throw",e,s,c)}))}c(u.arg)}var o;s(this,"_invoke",{value:function(e,t){function i(){return new r((function(r,o){n(e,t,r,o)}))}return o=o?o.then(i,i):i()}})}function P(e,t,r){var o=v;return function(i,a){if(o===y)throw Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:n,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=R(s,r);if(c){if(c===b)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===v)throw o=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=y;var u=h(e,t,r);if("normal"===u.type){if(o=r.done?g:m,u.arg===b)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=g,r.method="throw",r.arg=u.arg)}}}function R(e,t){var r=t.method,o=e.iterator[r];if(o===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=n,R(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),b;var i=h(o,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,b;var a=i.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=n),t.delegate=null,b):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,b)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function N(e){if(e||""===e){var r=e[u];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function t(){for(;++o<e.length;)if(a.call(e,o))return t.value=e[o],t.done=!1,t;return t.value=n,t.done=!0,t};return i.next=i}}throw new TypeError(t(e)+" is not iterable")}return x.prototype=E,s(T,"constructor",{value:E,configurable:!0}),s(E,"constructor",{value:x,configurable:!0}),x.displayName=p(E,f,"GeneratorFunction"),o.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===x||"GeneratorFunction"===(t.displayName||t.name))},o.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,E):(e.__proto__=E,p(e,f,"GeneratorFunction")),e.prototype=Object.create(T),e},o.awrap=function(e){return{__await:e}},A(_.prototype),p(_.prototype,l,(function(){return this})),o.AsyncIterator=_,o.async=function(e,t,r,n,i){void 0===i&&(i=Promise);var a=new _(d(e,t,r,n),i);return o.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},A(T),p(T,f,"Generator"),p(T,u,(function(){return this})),p(T,"toString",(function(){return"[object Generator]"})),o.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},o.values=N,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&a.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=n)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,o){return s.type="throw",s.arg=e,t.next=r,o&&(t.method="next",t.arg=n),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=a.call(i,"catchLoc"),u=a.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,b):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),b},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:N(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=n),b}},o}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(y);var g=y.exports(),b=g;try{regeneratorRuntime=g}catch(e){"object"===("undefined"==typeof globalThis?"undefined":c(globalThis))?globalThis.regeneratorRuntime=g:Function("r","regeneratorRuntime = r")(g)}function w(e,t){return function(){return e.apply(t,arguments)}}var x,E=Object.prototype.toString,O=Object.getPrototypeOf,S=(x=Object.create(null),function(e){var t=E.call(e);return x[t]||(x[t]=t.slice(8,-1).toLowerCase())}),k=function(e){return e=e.toLowerCase(),function(t){return S(t)===e}},T=function(e){return function(t){return c(t)===e}},A=Array.isArray,_=T("undefined");var P=k("ArrayBuffer");var R=T("string"),j=T("function"),C=T("number"),L=function(e){return null!==e&&"object"===c(e)},N=function(e){if("object"!==S(e))return!1;var t=O(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},I=k("Date"),D=k("File"),M=k("Blob"),F=k("FileList"),U=k("URLSearchParams");function B(e,t){var r,n,o=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).allOwnKeys,i=void 0!==o&&o;if(null!=e)if("object"!==c(e)&&(e=[e]),A(e))for(r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else{var a,s=i?Object.getOwnPropertyNames(e):Object.keys(e),u=s.length;for(r=0;r<u;r++)a=s[r],t.call(null,e[a],a,e)}}function H(e,t){t=t.toLowerCase();for(var r,n=Object.keys(e),o=n.length;o-- >0;)if(t===(r=n[o]).toLowerCase())return r;return null}var q="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,J=function(e){return!_(e)&&e!==q};var z,K=(z="undefined"!=typeof Uint8Array&&O(Uint8Array),function(e){return z&&e instanceof z}),W=k("HTMLFormElement"),G=function(e){var t=Object.prototype.hasOwnProperty;return function(e,r){return t.call(e,r)}}(),V=k("RegExp"),$=function(e,t){var r=Object.getOwnPropertyDescriptors(e),n={};B(r,(function(r,o){var i;!1!==(i=t(r,o,e))&&(n[o]=i||r)})),Object.defineProperties(e,n)},X="abcdefghijklmnopqrstuvwxyz",Y="0123456789",Q={DIGIT:Y,ALPHA:X,ALPHA_DIGIT:X+X.toUpperCase()+Y};var Z=k("AsyncFunction"),ee={isArray:A,isArrayBuffer:P,isBuffer:function(e){return null!==e&&!_(e)&&null!==e.constructor&&!_(e.constructor)&&j(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:function(e){var t;return e&&("function"==typeof FormData&&e instanceof FormData||j(e.append)&&("formdata"===(t=S(e))||"object"===t&&j(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&P(e.buffer)},isString:R,isNumber:C,isBoolean:function(e){return!0===e||!1===e},isObject:L,isPlainObject:N,isUndefined:_,isDate:I,isFile:D,isBlob:M,isRegExp:V,isFunction:j,isStream:function(e){return L(e)&&j(e.pipe)},isURLSearchParams:U,isTypedArray:K,isFileList:F,forEach:B,merge:function e(){for(var t=(J(this)&&this||{}).caseless,r={},n=function(n,o){var i=t&&H(r,o)||o;N(r[i])&&N(n)?r[i]=e(r[i],n):N(n)?r[i]=e({},n):A(n)?r[i]=n.slice():r[i]=n},o=0,i=arguments.length;o<i;o++)arguments[o]&&B(arguments[o],n);return r},extend:function(e,t,r){return B(t,(function(t,n){r&&j(t)?e[n]=w(t,r):e[n]=t}),{allOwnKeys:(arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}).allOwnKeys}),e},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},inherits:function(e,t,r,n){e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:function(e,t,r,n){var o,i,a,s={};if(t=t||{},null==e)return t;do{for(i=(o=Object.getOwnPropertyNames(e)).length;i-- >0;)a=o[i],n&&!n(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==r&&O(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:S,kindOfTest:k,endsWith:function(e,t,r){e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;var n=e.indexOf(t,r);return-1!==n&&n===r},toArray:function(e){if(!e)return null;if(A(e))return e;var t=e.length;if(!C(t))return null;for(var r=new Array(t);t-- >0;)r[t]=e[t];return r},forEachEntry:function(e,t){for(var r,n=(e&&e[Symbol.iterator]).call(e);(r=n.next())&&!r.done;){var o=r.value;t.call(e,o[0],o[1])}},matchAll:function(e,t){for(var r,n=[];null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:W,hasOwnProperty:G,hasOwnProp:G,reduceDescriptors:$,freezeMethods:function(e){$(e,(function(t,r){if(j(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;var n=e[r];j(n)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=function(){throw Error("Can not rewrite read-only method '"+r+"'")}))}))},toObjectSet:function(e,t){var r={},n=function(e){e.forEach((function(e){r[e]=!0}))};return A(e)?n(e):n(String(e).split(t)),r},toCamelCase:function(e){return e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,r){return t.toUpperCase()+r}))},noop:function(){},toFiniteNumber:function(e,t){return e=+e,Number.isFinite(e)?e:t},findKey:H,global:q,isContextDefined:J,ALPHABET:Q,generateString:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:16,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Q.ALPHA_DIGIT,r="",n=t.length;e--;)r+=t[Math.random()*n|0];return r},isSpecCompliantForm:function(e){return!!(e&&j(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:function(e){var t=new Array(10);return function e(r,n){if(L(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[n]=r;var o=A(r)?[]:{};return B(r,(function(t,r){var i=e(t,n+1);!_(i)&&(o[r]=i)})),t[n]=void 0,o}}return r}(e,0)},isAsyncFn:Z,isThenable:function(e){return e&&(L(e)||j(e))&&j(e.then)&&j(e.catch)}};function te(e,t,r,n,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),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}ee.inherits(te,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ee.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var re=te.prototype,ne={};["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){ne[e]={value:e}})),Object.defineProperties(te,ne),Object.defineProperty(re,"isAxiosError",{value:!0}),te.from=function(e,t,r,n,o,i){var a=Object.create(re);return ee.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(function(e){return"isAxiosError"!==e})),te.call(a,e.message,t,r,n,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};function oe(e){return ee.isPlainObject(e)||ee.isArray(e)}function ie(e){return ee.endsWith(e,"[]")?e.slice(0,-2):e}function ae(e,t,r){return e?e.concat(t).map((function(e,t){return e=ie(e),!r&&t?"["+e+"]":e})).join(r?".":""):t}var se=ee.toFlatObject(ee,{},null,(function(e){return/^is[A-Z]/.test(e)}));function ce(e,t,r){if(!ee.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;var n=(r=ee.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!ee.isUndefined(t[e])}))).metaTokens,o=r.visitor||l,i=r.dots,a=r.indexes,s=(r.Blob||"undefined"!=typeof Blob&&Blob)&&ee.isSpecCompliantForm(t);if(!ee.isFunction(o))throw new TypeError("visitor must be a function");function u(e){if(null===e)return"";if(ee.isDate(e))return e.toISOString();if(!s&&ee.isBlob(e))throw new te("Blob is not supported. Use a Buffer instead.");return ee.isArrayBuffer(e)||ee.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function l(e,r,o){var s=e;if(e&&!o&&"object"===c(e))if(ee.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else if(ee.isArray(e)&&function(e){return ee.isArray(e)&&!e.some(oe)}(e)||(ee.isFileList(e)||ee.endsWith(r,"[]"))&&(s=ee.toArray(e)))return r=ie(r),s.forEach((function(e,n){!ee.isUndefined(e)&&null!==e&&t.append(!0===a?ae([r],n,i):null===a?r:r+"[]",u(e))})),!1;return!!oe(e)||(t.append(ae(o,r,i),u(e)),!1)}var f=[],p=Object.assign(se,{defaultVisitor:l,convertValue:u,isVisitable:oe});if(!ee.isObject(e))throw new TypeError("data must be an object");return function e(r,n){if(!ee.isUndefined(r)){if(-1!==f.indexOf(r))throw Error("Circular reference detected in "+n.join("."));f.push(r),ee.forEach(r,(function(r,i){!0===(!(ee.isUndefined(r)||null===r)&&o.call(t,r,ee.isString(i)?i.trim():i,n,p))&&e(r,n?n.concat(i):[i])})),f.pop()}}(e),t}function ue(e){var t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function le(e,t){this._pairs=[],e&&ce(e,this,t)}var fe=le.prototype;function pe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function de(e,t,r){if(!t)return e;var n,o=r&&r.encode||pe,i=r&&r.serialize;if(n=i?i(t,r):ee.isURLSearchParams(t)?t.toString():new le(t,r).toString(o)){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e}fe.append=function(e,t){this._pairs.push([e,t])},fe.toString=function(e){var t=e?function(t){return e.call(this,t,ue)}:ue;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var he=function(){return l((function e(){o(this,e),this.handlers=[]}),[{key:"use",value:function(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}},{key:"eject",value:function(e){this.handlers[e]&&(this.handlers[e]=null)}},{key:"clear",value:function(){this.handlers&&(this.handlers=[])}},{key:"forEach",value:function(e){ee.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}])}(),ve={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},me={exports:{}};!function(e){var t=a.exports;e.exports=function(e,r,n){return(r=t(r))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports}(me);var ye,ge=r(me.exports),be={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:le,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},we="undefined"!=typeof window&&"undefined"!=typeof document,xe=(ye="undefined"!=typeof navigator&&navigator.product,we&&["ReactNative","NativeScript","NS"].indexOf(ye)<0),Ee="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts;function Oe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Se(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Oe(Object(r),!0).forEach((function(t){ge(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Oe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var ke=Se(Se({},Object.freeze({__proto__:null,hasBrowserEnv:we,hasStandardBrowserWebWorkerEnv:Ee,hasStandardBrowserEnv:xe})),be);function Te(e){function t(e,r,n,o){var i=e[o++];if("__proto__"===i)return!0;var a=Number.isFinite(+i),s=o>=e.length;return i=!i&&ee.isArray(n)?n.length:i,s?(ee.hasOwnProp(n,i)?n[i]=[n[i],r]:n[i]=r,!a):(n[i]&&ee.isObject(n[i])||(n[i]=[]),t(e,r,n[i],o)&&ee.isArray(n[i])&&(n[i]=function(e){var t,r,n={},o=Object.keys(e),i=o.length;for(t=0;t<i;t++)n[r=o[t]]=e[r];return n}(n[i])),!a)}if(ee.isFormData(e)&&ee.isFunction(e.entries)){var r={};return ee.forEachEntry(e,(function(e,n){t(function(e){return ee.matchAll(/\w+|\[(\w*)]/g,e).map((function(e){return"[]"===e[0]?"":e[1]||e[0]}))}(e),n,r,0)})),r}return null}var Ae={transitional:ve,adapter:["xhr","http"],transformRequest:[function(e,t){var r,n=t.getContentType()||"",o=n.indexOf("application/json")>-1,i=ee.isObject(e);if(i&&ee.isHTMLForm(e)&&(e=new FormData(e)),ee.isFormData(e))return o?JSON.stringify(Te(e)):e;if(ee.isArrayBuffer(e)||ee.isBuffer(e)||ee.isStream(e)||ee.isFile(e)||ee.isBlob(e))return e;if(ee.isArrayBufferView(e))return e.buffer;if(ee.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return ce(e,new ke.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,n){return ke.isNode&&ee.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((r=ee.isFileList(e))||n.indexOf("multipart/form-data")>-1){var a=this.env&&this.env.FormData;return ce(r?{"files[]":e}:e,a&&new a,this.formSerializer)}}return i||o?(t.setContentType("application/json",!1),function(e,t,r){if(ee.isString(e))try{return(t||JSON.parse)(e),ee.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||Ae.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(e&&ee.isString(e)&&(r&&!this.responseType||n)){var o=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(e){if(o){if("SyntaxError"===e.name)throw te.from(e,te.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ke.classes.FormData,Blob:ke.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ee.forEach(["delete","get","head","post","put","patch"],(function(e){Ae.headers[e]={}}));var _e=Ae,Pe={exports:{}},Re={exports:{}};!function(e){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports}(Re);var je={exports:{}};!function(e){e.exports=function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}},e.exports.__esModule=!0,e.exports.default=e.exports}(je);var Ce={exports:{}},Le={exports:{}};!function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n},e.exports.__esModule=!0,e.exports.default=e.exports}(Le),function(e){var t=Le.exports;e.exports=function(e,r){if(e){if("string"==typeof e)return t(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?t(e,r):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports}(Ce);var Ne={exports:{}};!function(e){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports}(Ne),function(e){var t=Re.exports,r=je.exports,n=Ce.exports,o=Ne.exports;e.exports=function(e,i){return t(e)||r(e,i)||n(e,i)||o()},e.exports.__esModule=!0,e.exports.default=e.exports}(Pe);var Ie=r(Pe.exports),De=ee.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Me=Symbol("internals");function Fe(e){return e&&String(e).trim().toLowerCase()}function Ue(e){return!1===e||null==e?e:ee.isArray(e)?e.map(Ue):String(e)}function Be(e,t,r,n,o){return ee.isFunction(n)?n.call(this,t,r):(o&&(t=r),ee.isString(t)?ee.isString(n)?-1!==t.indexOf(n):ee.isRegExp(n)?n.test(t):void 0:void 0)}var He=function(){return l((function e(t){o(this,e),t&&this.set(t)}),[{key:"set",value:function(e,t,r){var n=this;function o(e,t,r){var o=Fe(t);if(!o)throw new Error("header name must be a non-empty string");var i=ee.findKey(n,o);(!i||void 0===n[i]||!0===r||void 0===r&&!1!==n[i])&&(n[i||t]=Ue(e))}var i,a,s,c,u,l=function(e,t){return ee.forEach(e,(function(e,r){return o(e,r,t)}))};return ee.isPlainObject(e)||e instanceof this.constructor?l(e,t):ee.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?l((u={},(i=e)&&i.split("\n").forEach((function(e){c=e.indexOf(":"),a=e.substring(0,c).trim().toLowerCase(),s=e.substring(c+1).trim(),!a||u[a]&&De[a]||("set-cookie"===a?u[a]?u[a].push(s):u[a]=[s]:u[a]=u[a]?u[a]+", "+s:s)})),u),t):null!=e&&o(t,e,r),this}},{key:"get",value:function(e,t){if(e=Fe(e)){var r=ee.findKey(this,e);if(r){var n=this[r];if(!t)return n;if(!0===t)return function(e){for(var t,r=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;t=n.exec(e);)r[t[1]]=t[2];return r}(n);if(ee.isFunction(t))return t.call(this,n,r);if(ee.isRegExp(t))return t.exec(n);throw new TypeError("parser must be boolean|regexp|function")}}}},{key:"has",value:function(e,t){if(e=Fe(e)){var r=ee.findKey(this,e);return!(!r||void 0===this[r]||t&&!Be(0,this[r],r,t))}return!1}},{key:"delete",value:function(e,t){var r=this,n=!1;function o(e){if(e=Fe(e)){var o=ee.findKey(r,e);!o||t&&!Be(0,r[o],o,t)||(delete r[o],n=!0)}}return ee.isArray(e)?e.forEach(o):o(e),n}},{key:"clear",value:function(e){for(var t=Object.keys(this),r=t.length,n=!1;r--;){var o=t[r];e&&!Be(0,this[o],o,e,!0)||(delete this[o],n=!0)}return n}},{key:"normalize",value:function(e){var t=this,r={};return ee.forEach(this,(function(n,o){var i=ee.findKey(r,o);if(i)return t[i]=Ue(n),void delete t[o];var a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(function(e,t,r){return t.toUpperCase()+r}))}(o):String(o).trim();a!==o&&delete t[o],t[a]=Ue(n),r[a]=!0})),this}},{key:"concat",value:function(){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return(e=this.constructor).concat.apply(e,[this].concat(r))}},{key:"toJSON",value:function(e){var t=Object.create(null);return ee.forEach(this,(function(r,n){null!=r&&!1!==r&&(t[n]=e&&ee.isArray(r)?r.join(", "):r)})),t}},{key:Symbol.iterator,value:function(){return Object.entries(this.toJSON())[Symbol.iterator]()}},{key:"toString",value:function(){return Object.entries(this.toJSON()).map((function(e){var t=Ie(e,2);return t[0]+": "+t[1]})).join("\n")}},{key:Symbol.toStringTag,get:function(){return"AxiosHeaders"}}],[{key:"from",value:function(e){return e instanceof this?e:new this(e)}},{key:"concat",value:function(e){for(var t=new this(e),r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return n.forEach((function(e){return t.set(e)})),t}},{key:"accessor",value:function(e){var t=(this[Me]=this[Me]={accessors:{}}).accessors,r=this.prototype;function n(e){var n=Fe(e);t[n]||(!function(e,t){var r=ee.toCamelCase(" "+t);["get","set","has"].forEach((function(n){Object.defineProperty(e,n+r,{value:function(e,r,o){return this[n].call(this,t,e,r,o)},configurable:!0})}))}(r,e),t[n]=!0)}return ee.isArray(e)?e.forEach(n):n(e),this}}])}();He.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ee.reduceDescriptors(He.prototype,(function(e,t){var r=e.value,n=t[0].toUpperCase()+t.slice(1);return{get:function(){return r},set:function(e){this[n]=e}}})),ee.freezeMethods(He);var qe=He;function Je(e,t){var r=this||_e,n=t||r,o=qe.from(n.headers),i=n.data;return ee.forEach(e,(function(e){i=e.call(r,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function ze(e){return!(!e||!e.__CANCEL__)}function Ke(e,t,r){te.call(this,null==e?"canceled":e,te.ERR_CANCELED,t,r),this.name="CanceledError"}ee.inherits(Ke,te,{__CANCEL__:!0});var We={exports:{}},Ge={exports:{}};!function(e){var t=Le.exports;e.exports=function(e){if(Array.isArray(e))return t(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(Ge);var Ve={exports:{}};!function(e){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(Ve);var $e={exports:{}};!function(e){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports}($e),function(e){var t=Ge.exports,r=Ve.exports,n=Ce.exports,o=$e.exports;e.exports=function(e){return t(e)||r(e)||n(e)||o()},e.exports.__esModule=!0,e.exports.default=e.exports}(We);var Xe=r(We.exports),Ye={exports:{}};!function(e){var t=Re.exports,r=Ve.exports,n=Ce.exports,o=Ne.exports;e.exports=function(e){return t(e)||r(e)||n(e)||o()},e.exports.__esModule=!0,e.exports.default=e.exports}(Ye);var Qe=r(Ye.exports);var Ze=ke.hasStandardBrowserEnv?{write:function(e,t,r,n,o,i){var a=[e+"="+encodeURIComponent(t)];ee.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),ee.isString(n)&&a.push("path="+n),ee.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.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(){}};function et(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}var tt=ke.hasStandardBrowserEnv?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function n(e){var n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=n(window.location.href),function(t){var r=ee.isString(t)?n(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0};function rt(e,t){var r=0,n=function(e,t){e=e||10;var r,n=new Array(e),o=new Array(e),i=0,a=0;return t=void 0!==t?t:1e3,function(s){var c=Date.now(),u=o[a];r||(r=c),n[i]=s,o[i]=c;for(var l=a,f=0;l!==i;)f+=n[l++],l%=e;if((i=(i+1)%e)===a&&(a=(a+1)%e),!(c-r<t)){var p=u&&c-u;return p?Math.round(1e3*f/p):void 0}}}(50,250);return function(o){var i=o.loaded,a=o.lengthComputable?o.total:void 0,s=i-r,c=n(s);r=i;var u={loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:c||void 0,estimated:c&&a&&i<=a?(a-i)/c:void 0,event:o};u[t?"download":"upload"]=!0,e(u)}}var nt={http:null,xhr:"undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,r){var n,o,i=e.data,a=qe.from(e.headers).normalize(),s=e.responseType,c=e.withXSRFToken;function u(){e.cancelToken&&e.cancelToken.unsubscribe(n),e.signal&&e.signal.removeEventListener("abort",n)}if(ee.isFormData(i))if(ke.hasStandardBrowserEnv||ke.hasStandardBrowserWebWorkerEnv)a.setContentType(!1);else if(!1!==(o=a.getContentType())){var l=o?o.split(";").map((function(e){return e.trim()})).filter(Boolean):[],f=Qe(l),p=f[0],d=f.slice(1);a.setContentType([p||"multipart/form-data"].concat(Xe(d)).join("; "))}var h=new XMLHttpRequest;if(e.auth){var v=e.auth.username||"",m=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";a.set("Authorization","Basic "+btoa(v+":"+m))}var y=et(e.baseURL,e.url);function g(){if(h){var n=qe.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders());!function(e,t,r){var n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new te("Request failed with status code "+r.status,[te.ERR_BAD_REQUEST,te.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}((function(e){t(e),u()}),(function(e){r(e),u()}),{data:s&&"text"!==s&&"json"!==s?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:n,config:e,request:h}),h=null}}if(h.open(e.method.toUpperCase(),de(y,e.params,e.paramsSerializer),!0),h.timeout=e.timeout,"onloadend"in h?h.onloadend=g:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))&&setTimeout(g)},h.onabort=function(){h&&(r(new te("Request aborted",te.ECONNABORTED,e,h)),h=null)},h.onerror=function(){r(new te("Network Error",te.ERR_NETWORK,e,h)),h=null},h.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",n=e.transitional||ve;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(new te(t,n.clarifyTimeoutError?te.ETIMEDOUT:te.ECONNABORTED,e,h)),h=null},ke.hasStandardBrowserEnv&&(c&&ee.isFunction(c)&&(c=c(e)),c||!1!==c&&tt(y))){var b=e.xsrfHeaderName&&e.xsrfCookieName&&Ze.read(e.xsrfCookieName);b&&a.set(e.xsrfHeaderName,b)}void 0===i&&a.setContentType(null),"setRequestHeader"in h&&ee.forEach(a.toJSON(),(function(e,t){h.setRequestHeader(t,e)})),ee.isUndefined(e.withCredentials)||(h.withCredentials=!!e.withCredentials),s&&"json"!==s&&(h.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&h.addEventListener("progress",rt(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",rt(e.onUploadProgress)),(e.cancelToken||e.signal)&&(n=function(t){h&&(r(!t||t.type?new Ke(null,e,h):t),h.abort(),h=null)},e.cancelToken&&e.cancelToken.subscribe(n),e.signal&&(e.signal.aborted?n():e.signal.addEventListener("abort",n)));var w,x=(w=/^([-+\w]{1,25})(:?\/\/|:)/.exec(y))&&w[1]||"";x&&-1===ke.protocols.indexOf(x)?r(new te("Unsupported protocol "+x+":",te.ERR_BAD_REQUEST,e)):h.send(i||null)}))}};ee.forEach(nt,(function(e,t){if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));var ot=function(e){return"- ".concat(e)},it=function(e){return ee.isFunction(e)||null===e||!1===e},at=function(e){for(var t,r,n=(e=ee.isArray(e)?e:[e]).length,o={},i=0;i<n;i++){var a=void 0;if(r=t=e[i],!it(t)&&void 0===(r=nt[(a=String(t)).toLowerCase()]))throw new te("Unknown adapter '".concat(a,"'"));if(r)break;o[a||"#"+i]=r}if(!r){var s=Object.entries(o).map((function(e){var t=Ie(e,2),r=t[0],n=t[1];return"adapter ".concat(r," ")+(!1===n?"is not supported by the environment":"is not available in the build")}));throw new te("There is no suitable adapter to dispatch the request "+(n?s.length>1?"since :\n"+s.map(ot).join("\n"):" "+ot(s[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function st(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ke(null,e)}function ct(e){return st(e),e.headers=qe.from(e.headers),e.data=Je.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),at(e.adapter||_e.adapter)(e).then((function(t){return st(e),t.data=Je.call(e,e.transformResponse,t),t.headers=qe.from(t.headers),t}),(function(t){return ze(t)||(st(e),t&&t.response&&(t.response.data=Je.call(e,e.transformResponse,t.response),t.response.headers=qe.from(t.response.headers))),Promise.reject(t)}))}function ut(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var lt=function(e){return e instanceof qe?function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ut(Object(r),!0).forEach((function(t){ge(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ut(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e):e};function ft(e,t){t=t||{};var r={};function n(e,t,r){return ee.isPlainObject(e)&&ee.isPlainObject(t)?ee.merge.call({caseless:r},e,t):ee.isPlainObject(t)?ee.merge({},t):ee.isArray(t)?t.slice():t}function o(e,t,r){return ee.isUndefined(t)?ee.isUndefined(e)?void 0:n(void 0,e,r):n(e,t,r)}function i(e,t){if(!ee.isUndefined(t))return n(void 0,t)}function a(e,t){return ee.isUndefined(t)?ee.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function s(r,o,i){return i in t?n(r,o):i in e?n(void 0,r):void 0}var c={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:function(e,t){return o(lt(e),lt(t),!0)}};return ee.forEach(Object.keys(Object.assign({},e,t)),(function(n){var i=c[n]||o,a=i(e[n],t[n],n);ee.isUndefined(a)&&i!==s||(r[n]=a)})),r}var pt="1.6.8",dt={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){dt[e]=function(r){return c(r)===e||"a"+(t<1?"n ":" ")+e}}));var ht={};dt.transitional=function(e,t,r){function n(e,t){return"[Axios v1.6.8] Transitional option '"+e+"'"+t+(r?". "+r:"")}return function(r,o,i){if(!1===e)throw new te(n(o," has been removed"+(t?" in "+t:"")),te.ERR_DEPRECATED);return t&&!ht[o]&&(ht[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,o,i)}};var vt={assertOptions:function(e,t,r){if("object"!==c(e))throw new te("options must be an object",te.ERR_BAD_OPTION_VALUE);for(var n=Object.keys(e),o=n.length;o-- >0;){var i=n[o],a=t[i];if(a){var s=e[i],u=void 0===s||a(s,i,e);if(!0!==u)throw new te("option "+i+" must be "+u,te.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new te("Unknown option "+i,te.ERR_BAD_OPTION)}},validators:dt},mt=vt.validators,yt=function(){return l((function e(t){o(this,e),this.defaults=t,this.interceptors={request:new he,response:new he}}),[{key:"request",value:(e=m(b.mark((function e(t,r){var n,o;return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this._request(t,r);case 3:return e.abrupt("return",e.sent);case 6:throw e.prev=6,e.t0=e.catch(0),e.t0 instanceof Error&&(Error.captureStackTrace?Error.captureStackTrace(n={}):n=new Error,o=n.stack?n.stack.replace(/^.+\n/,""):"",e.t0.stack?o&&!String(e.t0.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(e.t0.stack+="\n"+o):e.t0.stack=o),e.t0;case 10:case"end":return e.stop()}}),e,this,[[0,6]])}))),function(t,r){return e.apply(this,arguments)})},{key:"_request",value:function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{};var r=t=ft(this.defaults,t),n=r.transitional,o=r.paramsSerializer,i=r.headers;void 0!==n&&vt.assertOptions(n,{silentJSONParsing:mt.transitional(mt.boolean),forcedJSONParsing:mt.transitional(mt.boolean),clarifyTimeoutError:mt.transitional(mt.boolean)},!1),null!=o&&(ee.isFunction(o)?t.paramsSerializer={serialize:o}:vt.assertOptions(o,{encode:mt.function,serialize:mt.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();var a=i&&ee.merge(i.common,i[t.method]);i&&ee.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete i[e]})),t.headers=qe.concat(a,i);var s=[],c=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(c=c&&e.synchronous,s.unshift(e.fulfilled,e.rejected))}));var u,l=[];this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));var f,p=0;if(!c){var d=[ct.bind(this),void 0];for(d.unshift.apply(d,s),d.push.apply(d,l),f=d.length,u=Promise.resolve(t);p<f;)u=u.then(d[p++],d[p++]);return u}f=s.length;var h=t;for(p=0;p<f;){var v=s[p++],m=s[p++];try{h=v(h)}catch(e){m.call(this,e);break}}try{u=ct.call(this,h)}catch(e){return Promise.reject(e)}for(p=0,f=l.length;p<f;)u=u.then(l[p++],l[p++]);return u}},{key:"getUri",value:function(e){return de(et((e=ft(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}]);var e}();ee.forEach(["delete","get","head","options"],(function(e){yt.prototype[e]=function(t,r){return this.request(ft(r||{},{method:e,url:t,data:(r||{}).data}))}})),ee.forEach(["post","put","patch"],(function(e){function t(t){return function(r,n,o){return this.request(ft(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}yt.prototype[e]=t(),yt.prototype[e+"Form"]=t(!0)}));var gt=yt,bt=function(){function e(t){if(o(this,e),"function"!=typeof t)throw new TypeError("executor must be a function.");var r;this.promise=new Promise((function(e){r=e}));var n=this;this.promise.then((function(e){if(n._listeners){for(var t=n._listeners.length;t-- >0;)n._listeners[t](e);n._listeners=null}})),this.promise.then=function(e){var t,r=new Promise((function(e){n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},t((function(e,t,o){n.reason||(n.reason=new Ke(e,t,o),r(n.reason))}))}return l(e,[{key:"throwIfRequested",value:function(){if(this.reason)throw this.reason}},{key:"subscribe",value:function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}},{key:"unsubscribe",value:function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}}}],[{key:"source",value:function(){var t;return{token:new e((function(e){t=e})),cancel:t}}}])}();var wt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(wt).forEach((function(e){var t=Ie(e,2),r=t[0],n=t[1];wt[n]=r}));var xt=wt;var Et=function e(t){var r=new gt(t),n=w(gt.prototype.request,r);return ee.extend(n,gt.prototype,r,{allOwnKeys:!0}),ee.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(ft(t,r))},n}(_e);Et.Axios=gt,Et.CanceledError=Ke,Et.CancelToken=bt,Et.isCancel=ze,Et.VERSION=pt,Et.toFormData=ce,Et.AxiosError=te,Et.Cancel=Et.CanceledError,Et.all=function(e){return Promise.all(e)},Et.spread=function(e){return function(t){return e.apply(null,t)}},Et.isAxiosError=function(e){return ee.isObject(e)&&!0===e.isAxiosError},Et.mergeConfig=ft,Et.AxiosHeaders=qe,Et.formToJSON=function(e){return Te(ee.isHTMLForm(e)?new FormData(e):e)},Et.getAdapter=at,Et.HttpStatusCode=xt,Et.default=Et;var Ot=Et;Ot.Axios,Ot.AxiosError,Ot.CanceledError,Ot.isCancel,Ot.CancelToken,Ot.VERSION,Ot.all,Ot.Cancel,Ot.isAxiosError,Ot.spread,Ot.toFormData,Ot.AxiosHeaders,Ot.HttpStatusCode,Ot.formToJSON,Ot.getAdapter,Ot.mergeConfig;var St={exports:{}};
|
|
3
|
+
e.exports=r=function(){return o},e.exports.__esModule=!0,e.exports.default=e.exports;var n,o={},a=Object.prototype,i=a.hasOwnProperty,s=Object.defineProperty||function(e,t,r){e[t]=r.value},c="function"==typeof Symbol?Symbol:{},u=c.iterator||"@@iterator",l=c.asyncIterator||"@@asyncIterator",f=c.toStringTag||"@@toStringTag";function p(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{p({},"")}catch(n){p=function(e,t,r){return e[t]=r}}function d(e,t,r,n){var o=t&&t.prototype instanceof x?t:x,a=Object.create(o.prototype),i=new L(n||[]);return s(a,"_invoke",{value:P(e,r,i)}),a}function h(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}o.wrap=d;var v="suspendedStart",y="suspendedYield",m="executing",g="completed",b={};function x(){}function w(){}function O(){}var E={};p(E,u,(function(){return this}));var S=Object.getPrototypeOf,k=S&&S(S(I([])));k&&k!==a&&i.call(k,u)&&(E=k);var T=O.prototype=x.prototype=Object.create(E);function R(e){["next","throw","return"].forEach((function(t){p(e,t,(function(e){return this._invoke(t,e)}))}))}function A(e,r){function n(o,a,s,c){var u=h(e[o],e,a);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==t(f)&&i.call(f,"__await")?r.resolve(f.__await).then((function(e){n("next",e,s,c)}),(function(e){n("throw",e,s,c)})):r.resolve(f).then((function(e){l.value=e,s(l)}),(function(e){return n("throw",e,s,c)}))}c(u.arg)}var o;s(this,"_invoke",{value:function(e,t){function a(){return new r((function(r,o){n(e,t,r,o)}))}return o=o?o.then(a,a):a()}})}function P(e,t,r){var o=v;return function(a,i){if(o===m)throw Error("Generator is already running");if(o===g){if("throw"===a)throw i;return{value:n,done:!0}}for(r.method=a,r.arg=i;;){var s=r.delegate;if(s){var c=_(s,r);if(c){if(c===b)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===v)throw o=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var u=h(e,t,r);if("normal"===u.type){if(o=r.done?g:y,u.arg===b)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=g,r.method="throw",r.arg=u.arg)}}}function _(e,t){var r=t.method,o=e.iterator[r];if(o===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=n,_(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),b;var a=h(o,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,b;var i=a.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=n),t.delegate=null,b):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,b)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function I(e){if(e||""===e){var r=e[u];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function t(){for(;++o<e.length;)if(i.call(e,o))return t.value=e[o],t.done=!1,t;return t.value=n,t.done=!0,t};return a.next=a}}throw new TypeError(t(e)+" is not iterable")}return w.prototype=O,s(T,"constructor",{value:O,configurable:!0}),s(O,"constructor",{value:w,configurable:!0}),w.displayName=p(O,f,"GeneratorFunction"),o.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},o.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,O):(e.__proto__=O,p(e,f,"GeneratorFunction")),e.prototype=Object.create(T),e},o.awrap=function(e){return{__await:e}},R(A.prototype),p(A.prototype,l,(function(){return this})),o.AsyncIterator=A,o.async=function(e,t,r,n,a){void 0===a&&(a=Promise);var i=new A(d(e,t,r,n),a);return o.isGeneratorFunction(t)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},R(T),p(T,f,"Generator"),p(T,u,(function(){return this})),p(T,"toString",(function(){return"[object Generator]"})),o.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},o.values=I,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&i.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=n)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,o){return s.type="throw",s.arg=e,t.next=r,o&&(t.method="next",t.arg=n),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=i.call(a,"catchLoc"),u=i.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,b):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),b},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:I(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=n),b}},o}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(m);var g=m.exports(),b=g;try{regeneratorRuntime=g}catch(e){"object"===("undefined"==typeof globalThis?"undefined":c(globalThis))?globalThis.regeneratorRuntime=g:Function("r","regeneratorRuntime = r")(g)}var x={exports:{}},w={exports:{}};!function(e){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports}(w);var O={exports:{}};!function(e){e.exports=function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,s=[],c=!0,u=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return s}},e.exports.__esModule=!0,e.exports.default=e.exports}(O);var E={exports:{}},S={exports:{}};!function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n},e.exports.__esModule=!0,e.exports.default=e.exports}(S),function(e){var t=S.exports;e.exports=function(e,r){if(e){if("string"==typeof e)return t(e,r);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?t(e,r):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports}(E);var k={exports:{}};!function(e){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports}(k),function(e){var t=w.exports,r=O.exports,n=E.exports,o=k.exports;e.exports=function(e,a){return t(e)||r(e,a)||n(e,a)||o()},e.exports.__esModule=!0,e.exports.default=e.exports}(x);var T=r(x.exports);function R(e,t){return function(){return e.apply(t,arguments)}}var A,P=Object.prototype.toString,_=Object.getPrototypeOf,j=(A=Object.create(null),function(e){var t=P.call(e);return A[t]||(A[t]=t.slice(8,-1).toLowerCase())}),C=function(e){return e=e.toLowerCase(),function(t){return j(t)===e}},L=function(e){return function(t){return c(t)===e}},I=Array.isArray,D=L("undefined");var N=C("ArrayBuffer");var M=L("string"),U=L("function"),F=L("number"),B=function(e){return null!==e&&"object"===c(e)},q=function(e){if("object"!==j(e))return!1;var t=_(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},H=C("Date"),J=C("File"),z=C("Blob"),K=C("FileList"),W=C("URLSearchParams"),V=["ReadableStream","Request","Response","Headers"].map(C),G=T(V,4),$=G[0],X=G[1],Y=G[2],Q=G[3];function Z(e,t){var r,n,o=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).allOwnKeys,a=void 0!==o&&o;if(null!=e)if("object"!==c(e)&&(e=[e]),I(e))for(r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else{var i,s=a?Object.getOwnPropertyNames(e):Object.keys(e),u=s.length;for(r=0;r<u;r++)i=s[r],t.call(null,e[i],i,e)}}function ee(e,t){t=t.toLowerCase();for(var r,n=Object.keys(e),o=n.length;o-- >0;)if(t===(r=n[o]).toLowerCase())return r;return null}var te="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,re=function(e){return!D(e)&&e!==te};var ne,oe=(ne="undefined"!=typeof Uint8Array&&_(Uint8Array),function(e){return ne&&e instanceof ne}),ae=C("HTMLFormElement"),ie=function(e){var t=Object.prototype.hasOwnProperty;return function(e,r){return t.call(e,r)}}(),se=C("RegExp"),ce=function(e,t){var r=Object.getOwnPropertyDescriptors(e),n={};Z(r,(function(r,o){var a;!1!==(a=t(r,o,e))&&(n[o]=a||r)})),Object.defineProperties(e,n)},ue="abcdefghijklmnopqrstuvwxyz",le="0123456789",fe={DIGIT:le,ALPHA:ue,ALPHA_DIGIT:ue+ue.toUpperCase()+le};var pe=C("AsyncFunction"),de={isArray:I,isArrayBuffer:N,isBuffer:function(e){return null!==e&&!D(e)&&null!==e.constructor&&!D(e.constructor)&&U(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:function(e){var t;return e&&("function"==typeof FormData&&e instanceof FormData||U(e.append)&&("formdata"===(t=j(e))||"object"===t&&U(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&N(e.buffer)},isString:M,isNumber:F,isBoolean:function(e){return!0===e||!1===e},isObject:B,isPlainObject:q,isReadableStream:$,isRequest:X,isResponse:Y,isHeaders:Q,isUndefined:D,isDate:H,isFile:J,isBlob:z,isRegExp:se,isFunction:U,isStream:function(e){return B(e)&&U(e.pipe)},isURLSearchParams:W,isTypedArray:oe,isFileList:K,forEach:Z,merge:function e(){for(var t=(re(this)&&this||{}).caseless,r={},n=function(n,o){var a=t&&ee(r,o)||o;q(r[a])&&q(n)?r[a]=e(r[a],n):q(n)?r[a]=e({},n):I(n)?r[a]=n.slice():r[a]=n},o=0,a=arguments.length;o<a;o++)arguments[o]&&Z(arguments[o],n);return r},extend:function(e,t,r){return Z(t,(function(t,n){r&&U(t)?e[n]=R(t,r):e[n]=t}),{allOwnKeys:(arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}).allOwnKeys}),e},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},inherits:function(e,t,r,n){e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:function(e,t,r,n){var o,a,i,s={};if(t=t||{},null==e)return t;do{for(a=(o=Object.getOwnPropertyNames(e)).length;a-- >0;)i=o[a],n&&!n(i,e,t)||s[i]||(t[i]=e[i],s[i]=!0);e=!1!==r&&_(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:j,kindOfTest:C,endsWith:function(e,t,r){e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;var n=e.indexOf(t,r);return-1!==n&&n===r},toArray:function(e){if(!e)return null;if(I(e))return e;var t=e.length;if(!F(t))return null;for(var r=new Array(t);t-- >0;)r[t]=e[t];return r},forEachEntry:function(e,t){for(var r,n=(e&&e[Symbol.iterator]).call(e);(r=n.next())&&!r.done;){var o=r.value;t.call(e,o[0],o[1])}},matchAll:function(e,t){for(var r,n=[];null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:ae,hasOwnProperty:ie,hasOwnProp:ie,reduceDescriptors:ce,freezeMethods:function(e){ce(e,(function(t,r){if(U(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;var n=e[r];U(n)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=function(){throw Error("Can not rewrite read-only method '"+r+"'")}))}))},toObjectSet:function(e,t){var r={},n=function(e){e.forEach((function(e){r[e]=!0}))};return I(e)?n(e):n(String(e).split(t)),r},toCamelCase:function(e){return e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,r){return t.toUpperCase()+r}))},noop:function(){},toFiniteNumber:function(e,t){return null!=e&&Number.isFinite(e=+e)?e:t},findKey:ee,global:te,isContextDefined:re,ALPHABET:fe,generateString:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:16,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:fe.ALPHA_DIGIT,r="",n=t.length;e--;)r+=t[Math.random()*n|0];return r},isSpecCompliantForm:function(e){return!!(e&&U(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:function(e){var t=new Array(10);return function e(r,n){if(B(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[n]=r;var o=I(r)?[]:{};return Z(r,(function(t,r){var a=e(t,n+1);!D(a)&&(o[r]=a)})),t[n]=void 0,o}}return r}(e,0)},isAsyncFn:pe,isThenable:function(e){return e&&(B(e)||U(e))&&U(e.then)&&U(e.catch)}};function he(e,t,r,n,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),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}de.inherits(he,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:de.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var ve=he.prototype,ye={};["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){ye[e]={value:e}})),Object.defineProperties(he,ye),Object.defineProperty(ve,"isAxiosError",{value:!0}),he.from=function(e,t,r,n,o,a){var i=Object.create(ve);return de.toFlatObject(e,i,(function(e){return e!==Error.prototype}),(function(e){return"isAxiosError"!==e})),he.call(i,e.message,t,r,n,o),i.cause=e,i.name=e.name,a&&Object.assign(i,a),i};function me(e){return de.isPlainObject(e)||de.isArray(e)}function ge(e){return de.endsWith(e,"[]")?e.slice(0,-2):e}function be(e,t,r){return e?e.concat(t).map((function(e,t){return e=ge(e),!r&&t?"["+e+"]":e})).join(r?".":""):t}var xe=de.toFlatObject(de,{},null,(function(e){return/^is[A-Z]/.test(e)}));function we(e,t,r){if(!de.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;var n=(r=de.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!de.isUndefined(t[e])}))).metaTokens,o=r.visitor||l,a=r.dots,i=r.indexes,s=(r.Blob||"undefined"!=typeof Blob&&Blob)&&de.isSpecCompliantForm(t);if(!de.isFunction(o))throw new TypeError("visitor must be a function");function u(e){if(null===e)return"";if(de.isDate(e))return e.toISOString();if(!s&&de.isBlob(e))throw new he("Blob is not supported. Use a Buffer instead.");return de.isArrayBuffer(e)||de.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function l(e,r,o){var s=e;if(e&&!o&&"object"===c(e))if(de.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else if(de.isArray(e)&&function(e){return de.isArray(e)&&!e.some(me)}(e)||(de.isFileList(e)||de.endsWith(r,"[]"))&&(s=de.toArray(e)))return r=ge(r),s.forEach((function(e,n){!de.isUndefined(e)&&null!==e&&t.append(!0===i?be([r],n,a):null===i?r:r+"[]",u(e))})),!1;return!!me(e)||(t.append(be(o,r,a),u(e)),!1)}var f=[],p=Object.assign(xe,{defaultVisitor:l,convertValue:u,isVisitable:me});if(!de.isObject(e))throw new TypeError("data must be an object");return function e(r,n){if(!de.isUndefined(r)){if(-1!==f.indexOf(r))throw Error("Circular reference detected in "+n.join("."));f.push(r),de.forEach(r,(function(r,a){!0===(!(de.isUndefined(r)||null===r)&&o.call(t,r,de.isString(a)?a.trim():a,n,p))&&e(r,n?n.concat(a):[a])})),f.pop()}}(e),t}function Oe(e){var t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Ee(e,t){this._pairs=[],e&&we(e,this,t)}var Se=Ee.prototype;function ke(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Te(e,t,r){if(!t)return e;var n,o=r&&r.encode||ke,a=r&&r.serialize;if(n=a?a(t,r):de.isURLSearchParams(t)?t.toString():new Ee(t,r).toString(o)){var i=e.indexOf("#");-1!==i&&(e=e.slice(0,i)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e}Se.append=function(e,t){this._pairs.push([e,t])},Se.toString=function(e){var t=e?function(t){return e.call(this,t,Oe)}:Oe;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var Re=function(){return l((function e(){o(this,e),this.handlers=[]}),[{key:"use",value:function(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}},{key:"eject",value:function(e){this.handlers[e]&&(this.handlers[e]=null)}},{key:"clear",value:function(){this.handlers&&(this.handlers=[])}},{key:"forEach",value:function(e){de.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}])}(),Ae={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Pe={exports:{}};!function(e){var t=i.exports;e.exports=function(e,r,n){return(r=t(r))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports}(Pe);var _e,je=r(Pe.exports),Ce={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Ee,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},Le="undefined"!=typeof window&&"undefined"!=typeof document,Ie=(_e="undefined"!=typeof navigator&&navigator.product,Le&&["ReactNative","NativeScript","NS"].indexOf(_e)<0),De="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Ne=Le&&window.location.href||"http://localhost";function Me(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ue(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Me(Object(r),!0).forEach((function(t){je(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Me(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Fe=Ue(Ue({},Object.freeze({__proto__:null,hasBrowserEnv:Le,hasStandardBrowserWebWorkerEnv:De,hasStandardBrowserEnv:Ie,origin:Ne})),Ce);function Be(e){function t(e,r,n,o){var a=e[o++];if("__proto__"===a)return!0;var i=Number.isFinite(+a),s=o>=e.length;return a=!a&&de.isArray(n)?n.length:a,s?(de.hasOwnProp(n,a)?n[a]=[n[a],r]:n[a]=r,!i):(n[a]&&de.isObject(n[a])||(n[a]=[]),t(e,r,n[a],o)&&de.isArray(n[a])&&(n[a]=function(e){var t,r,n={},o=Object.keys(e),a=o.length;for(t=0;t<a;t++)n[r=o[t]]=e[r];return n}(n[a])),!i)}if(de.isFormData(e)&&de.isFunction(e.entries)){var r={};return de.forEachEntry(e,(function(e,n){t(function(e){return de.matchAll(/\w+|\[(\w*)]/g,e).map((function(e){return"[]"===e[0]?"":e[1]||e[0]}))}(e),n,r,0)})),r}return null}var qe={transitional:Ae,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){var r,n=t.getContentType()||"",o=n.indexOf("application/json")>-1,a=de.isObject(e);if(a&&de.isHTMLForm(e)&&(e=new FormData(e)),de.isFormData(e))return o?JSON.stringify(Be(e)):e;if(de.isArrayBuffer(e)||de.isBuffer(e)||de.isStream(e)||de.isFile(e)||de.isBlob(e)||de.isReadableStream(e))return e;if(de.isArrayBufferView(e))return e.buffer;if(de.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(a){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return we(e,new Fe.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,n){return Fe.isNode&&de.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((r=de.isFileList(e))||n.indexOf("multipart/form-data")>-1){var i=this.env&&this.env.FormData;return we(r?{"files[]":e}:e,i&&new i,this.formSerializer)}}return a||o?(t.setContentType("application/json",!1),function(e,t,r){if(de.isString(e))try{return(t||JSON.parse)(e),de.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||qe.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(de.isResponse(e)||de.isReadableStream(e))return e;if(e&&de.isString(e)&&(r&&!this.responseType||n)){var o=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(e){if(o){if("SyntaxError"===e.name)throw he.from(e,he.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Fe.classes.FormData,Blob:Fe.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};de.forEach(["delete","get","head","post","put","patch"],(function(e){qe.headers[e]={}}));var He=qe,Je=de.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);function ze(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return Ke(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ke(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){s=!0,a=e},f:function(){try{i||null==r.return||r.return()}finally{if(s)throw a}}}}function Ke(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var We=Symbol("internals");function Ve(e){return e&&String(e).trim().toLowerCase()}function Ge(e){return!1===e||null==e?e:de.isArray(e)?e.map(Ge):String(e)}function $e(e,t,r,n,o){return de.isFunction(n)?n.call(this,t,r):(o&&(t=r),de.isString(t)?de.isString(n)?-1!==t.indexOf(n):de.isRegExp(n)?n.test(t):void 0:void 0)}var Xe=function(){return l((function e(t){o(this,e),t&&this.set(t)}),[{key:"set",value:function(e,t,r){var n=this;function o(e,t,r){var o=Ve(t);if(!o)throw new Error("header name must be a non-empty string");var a=de.findKey(n,o);(!a||void 0===n[a]||!0===r||void 0===r&&!1!==n[a])&&(n[a||t]=Ge(e))}var a=function(e,t){return de.forEach(e,(function(e,r){return o(e,r,t)}))};if(de.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(de.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))a(function(e){var t,r,n,o={};return e&&e.split("\n").forEach((function(e){n=e.indexOf(":"),t=e.substring(0,n).trim().toLowerCase(),r=e.substring(n+1).trim(),!t||o[t]&&Je[t]||("set-cookie"===t?o[t]?o[t].push(r):o[t]=[r]:o[t]=o[t]?o[t]+", "+r:r)})),o}(e),t);else if(de.isHeaders(e)){var i,s=ze(e.entries());try{for(s.s();!(i=s.n()).done;){var c=T(i.value,2),u=c[0];o(c[1],u,r)}}catch(e){s.e(e)}finally{s.f()}}else null!=e&&o(t,e,r);return this}},{key:"get",value:function(e,t){if(e=Ve(e)){var r=de.findKey(this,e);if(r){var n=this[r];if(!t)return n;if(!0===t)return function(e){for(var t,r=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;t=n.exec(e);)r[t[1]]=t[2];return r}(n);if(de.isFunction(t))return t.call(this,n,r);if(de.isRegExp(t))return t.exec(n);throw new TypeError("parser must be boolean|regexp|function")}}}},{key:"has",value:function(e,t){if(e=Ve(e)){var r=de.findKey(this,e);return!(!r||void 0===this[r]||t&&!$e(0,this[r],r,t))}return!1}},{key:"delete",value:function(e,t){var r=this,n=!1;function o(e){if(e=Ve(e)){var o=de.findKey(r,e);!o||t&&!$e(0,r[o],o,t)||(delete r[o],n=!0)}}return de.isArray(e)?e.forEach(o):o(e),n}},{key:"clear",value:function(e){for(var t=Object.keys(this),r=t.length,n=!1;r--;){var o=t[r];e&&!$e(0,this[o],o,e,!0)||(delete this[o],n=!0)}return n}},{key:"normalize",value:function(e){var t=this,r={};return de.forEach(this,(function(n,o){var a=de.findKey(r,o);if(a)return t[a]=Ge(n),void delete t[o];var i=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(function(e,t,r){return t.toUpperCase()+r}))}(o):String(o).trim();i!==o&&delete t[o],t[i]=Ge(n),r[i]=!0})),this}},{key:"concat",value:function(){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return(e=this.constructor).concat.apply(e,[this].concat(r))}},{key:"toJSON",value:function(e){var t=Object.create(null);return de.forEach(this,(function(r,n){null!=r&&!1!==r&&(t[n]=e&&de.isArray(r)?r.join(", "):r)})),t}},{key:Symbol.iterator,value:function(){return Object.entries(this.toJSON())[Symbol.iterator]()}},{key:"toString",value:function(){return Object.entries(this.toJSON()).map((function(e){var t=T(e,2);return t[0]+": "+t[1]})).join("\n")}},{key:Symbol.toStringTag,get:function(){return"AxiosHeaders"}}],[{key:"from",value:function(e){return e instanceof this?e:new this(e)}},{key:"concat",value:function(e){for(var t=new this(e),r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return n.forEach((function(e){return t.set(e)})),t}},{key:"accessor",value:function(e){var t=(this[We]=this[We]={accessors:{}}).accessors,r=this.prototype;function n(e){var n=Ve(e);t[n]||(!function(e,t){var r=de.toCamelCase(" "+t);["get","set","has"].forEach((function(n){Object.defineProperty(e,n+r,{value:function(e,r,o){return this[n].call(this,t,e,r,o)},configurable:!0})}))}(r,e),t[n]=!0)}return de.isArray(e)?e.forEach(n):n(e),this}}])}();Xe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),de.reduceDescriptors(Xe.prototype,(function(e,t){var r=e.value,n=t[0].toUpperCase()+t.slice(1);return{get:function(){return r},set:function(e){this[n]=e}}})),de.freezeMethods(Xe);var Ye=Xe;function Qe(e,t){var r=this||He,n=t||r,o=Ye.from(n.headers),a=n.data;return de.forEach(e,(function(e){a=e.call(r,a,o.normalize(),t?t.status:void 0)})),o.normalize(),a}function Ze(e){return!(!e||!e.__CANCEL__)}function et(e,t,r){he.call(this,null==e?"canceled":e,he.ERR_CANCELED,t,r),this.name="CanceledError"}function tt(e,t,r){var n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new he("Request failed with status code "+r.status,[he.ERR_BAD_REQUEST,he.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}de.inherits(et,he,{__CANCEL__:!0});var rt=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,n=0,o=function(e,t){e=e||10;var r,n=new Array(e),o=new Array(e),a=0,i=0;return t=void 0!==t?t:1e3,function(s){var c=Date.now(),u=o[i];r||(r=c),n[a]=s,o[a]=c;for(var l=i,f=0;l!==a;)f+=n[l++],l%=e;if((a=(a+1)%e)===i&&(i=(i+1)%e),!(c-r<t)){var p=u&&c-u;return p?Math.round(1e3*f/p):void 0}}}(50,250);return function(e,t){var r=0,n=1e3/t,o=null;return function(){var t=arguments,a=!0===this,i=Date.now();if(a||i-r>n)return o&&(clearTimeout(o),o=null),r=i,e.apply(null,arguments);o||(o=setTimeout((function(){return o=null,r=Date.now(),e.apply(null,t)}),n-(i-r)))}}((function(r){var a=r.loaded,i=r.lengthComputable?r.total:void 0,s=a-n,c=o(s);n=a;var u={loaded:a,total:i,progress:i?a/i:void 0,bytes:s,rate:c||void 0,estimated:c&&i&&a<=i?(i-a)/c:void 0,event:r,lengthComputable:null!=i};u[t?"download":"upload"]=!0,e(u)}),r)},nt={exports:{}},ot={exports:{}};!function(e){var t=S.exports;e.exports=function(e){if(Array.isArray(e))return t(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(ot);var at={exports:{}};!function(e){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(at);var it={exports:{}};!function(e){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports}(it),function(e){var t=ot.exports,r=at.exports,n=E.exports,o=it.exports;e.exports=function(e){return t(e)||r(e)||n(e)||o()},e.exports.__esModule=!0,e.exports.default=e.exports}(nt);var st=r(nt.exports),ct={exports:{}};!function(e){var t=w.exports,r=at.exports,n=E.exports,o=k.exports;e.exports=function(e){return t(e)||r(e)||n(e)||o()},e.exports.__esModule=!0,e.exports.default=e.exports}(ct);var ut=r(ct.exports),lt=Fe.hasStandardBrowserEnv?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function n(e){var n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=n(window.location.href),function(t){var r=de.isString(t)?n(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0},ft=Fe.hasStandardBrowserEnv?{write:function(e,t,r,n,o,a){var i=[e+"="+encodeURIComponent(t)];de.isNumber(r)&&i.push("expires="+new Date(r).toGMTString()),de.isString(n)&&i.push("path="+n),de.isString(o)&&i.push("domain="+o),!0===a&&i.push("secure"),document.cookie=i.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(){}};function pt(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}function dt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var ht=function(e){return e instanceof Ye?function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?dt(Object(r),!0).forEach((function(t){je(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e):e};function vt(e,t){t=t||{};var r={};function n(e,t,r){return de.isPlainObject(e)&&de.isPlainObject(t)?de.merge.call({caseless:r},e,t):de.isPlainObject(t)?de.merge({},t):de.isArray(t)?t.slice():t}function o(e,t,r){return de.isUndefined(t)?de.isUndefined(e)?void 0:n(void 0,e,r):n(e,t,r)}function a(e,t){if(!de.isUndefined(t))return n(void 0,t)}function i(e,t){return de.isUndefined(t)?de.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function s(r,o,a){return a in t?n(r,o):a in e?n(void 0,r):void 0}var c={url:a,method:a,data:a,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:s,headers:function(e,t){return o(ht(e),ht(t),!0)}};return de.forEach(Object.keys(Object.assign({},e,t)),(function(n){var a=c[n]||o,i=a(e[n],t[n],n);de.isUndefined(i)&&a!==s||(r[n]=i)})),r}var yt=function(e){var t,r=vt({},e),n=r.data,o=r.withXSRFToken,a=r.xsrfHeaderName,i=r.xsrfCookieName,s=r.headers,c=r.auth;if(r.headers=s=Ye.from(s),r.url=Te(pt(r.baseURL,r.url),e.params,e.paramsSerializer),c&&s.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),de.isFormData(n))if(Fe.hasStandardBrowserEnv||Fe.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(t=s.getContentType())){var u=t?t.split(";").map((function(e){return e.trim()})).filter(Boolean):[],l=ut(u),f=l[0],p=l.slice(1);s.setContentType([f||"multipart/form-data"].concat(st(p)).join("; "))}if(Fe.hasStandardBrowserEnv&&(o&&de.isFunction(o)&&(o=o(r)),o||!1!==o&<(r.url))){var d=a&&i&&ft.read(i);d&&s.set(a,d)}return r},mt="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,r){var n,o=yt(e),a=o.data,i=Ye.from(o.headers).normalize(),s=o.responseType;function c(){o.cancelToken&&o.cancelToken.unsubscribe(n),o.signal&&o.signal.removeEventListener("abort",n)}var u=new XMLHttpRequest;function l(){if(u){var n=Ye.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders());tt((function(e){t(e),c()}),(function(e){r(e),c()}),{data:s&&"text"!==s&&"json"!==s?u.response:u.responseText,status:u.status,statusText:u.statusText,headers:n,config:e,request:u}),u=null}}u.open(o.method.toUpperCase(),o.url,!0),u.timeout=o.timeout,"onloadend"in u?u.onloadend=l:u.onreadystatechange=function(){u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf("file:"))&&setTimeout(l)},u.onabort=function(){u&&(r(new he("Request aborted",he.ECONNABORTED,o,u)),u=null)},u.onerror=function(){r(new he("Network Error",he.ERR_NETWORK,o,u)),u=null},u.ontimeout=function(){var e=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded",t=o.transitional||Ae;o.timeoutErrorMessage&&(e=o.timeoutErrorMessage),r(new he(e,t.clarifyTimeoutError?he.ETIMEDOUT:he.ECONNABORTED,o,u)),u=null},void 0===a&&i.setContentType(null),"setRequestHeader"in u&&de.forEach(i.toJSON(),(function(e,t){u.setRequestHeader(t,e)})),de.isUndefined(o.withCredentials)||(u.withCredentials=!!o.withCredentials),s&&"json"!==s&&(u.responseType=o.responseType),"function"==typeof o.onDownloadProgress&&u.addEventListener("progress",rt(o.onDownloadProgress,!0)),"function"==typeof o.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",rt(o.onUploadProgress)),(o.cancelToken||o.signal)&&(n=function(t){u&&(r(!t||t.type?new et(null,e,u):t),u.abort(),u=null)},o.cancelToken&&o.cancelToken.subscribe(n),o.signal&&(o.signal.aborted?n():o.signal.addEventListener("abort",n)));var f,p,d=(f=o.url,(p=/^([-+\w]{1,25})(:?\/\/|:)/.exec(f))&&p[1]||"");d&&-1===Fe.protocols.indexOf(d)?r(new he("Unsupported protocol "+d+":",he.ERR_BAD_REQUEST,e)):u.send(a||null)}))},gt=function(e,t){var r,n=new AbortController,o=function(e){if(!r){r=!0,i();var t=e instanceof Error?e:this.reason;n.abort(t instanceof he?t:new et(t instanceof Error?t.message:t))}},a=t&&setTimeout((function(){o(new he("timeout ".concat(t," of ms exceeded"),he.ETIMEDOUT))}),t),i=function(){e&&(a&&clearTimeout(a),a=null,e.forEach((function(e){e&&(e.removeEventListener?e.removeEventListener("abort",o):e.unsubscribe(o))})),e=null)};e.forEach((function(e){return e&&e.addEventListener&&e.addEventListener("abort",o)}));var s=n.signal;return s.unsubscribe=i,[s,function(){a&&clearTimeout(a),a=null}]},bt={exports:{}},xt={exports:{}};!function(e){e.exports=function(e,t){this.v=e,this.k=t},e.exports.__esModule=!0,e.exports.default=e.exports}(xt),function(e){var t=xt.exports;function r(e){var r,n;function o(r,n){try{var i=e[r](n),s=i.value,c=s instanceof t;Promise.resolve(c?s.v:s).then((function(t){if(c){var n="return"===r?"return":"next";if(!s.k||t.done)return o(n,t);t=e[n](t).value}a(i.done?"return":"normal",t)}),(function(e){o("throw",e)}))}catch(e){a("throw",e)}}function a(e,t){switch(e){case"return":r.resolve({value:t,done:!0});break;case"throw":r.reject(t);break;default:r.resolve({value:t,done:!1})}(r=r.next)?o(r.key,r.arg):n=null}this._invoke=function(e,t){return new Promise((function(a,i){var s={key:e,arg:t,resolve:a,reject:i,next:null};n?n=n.next=s:(r=n=s,o(e,t))}))},"function"!=typeof e.return&&(this.return=void 0)}r.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},r.prototype.next=function(e){return this._invoke("next",e)},r.prototype.throw=function(e){return this._invoke("throw",e)},r.prototype.return=function(e){return this._invoke("return",e)},e.exports=function(e){return function(){return new r(e.apply(this,arguments))}},e.exports.__esModule=!0,e.exports.default=e.exports}(bt);var wt=r(bt.exports),Ot={exports:{}};!function(e){var t=xt.exports;e.exports=function(e){return new t(e,0)},e.exports.__esModule=!0,e.exports.default=e.exports}(Ot);var Et=r(Ot.exports),St={exports:{}};!function(e){var t=xt.exports;e.exports=function(e){var r={},n=!1;function o(r,o){return n=!0,o=new Promise((function(t){t(e[r](o))})),{done:!1,value:new t(o,1)}}return r["undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator"]=function(){return this},r.next=function(e){return n?(n=!1,e):o("next",e)},"function"==typeof e.throw&&(r.throw=function(e){if(n)throw n=!1,e;return o("throw",e)}),"function"==typeof e.return&&(r.return=function(e){return n?(n=!1,e):o("return",e)}),r},e.exports.__esModule=!0,e.exports.default=e.exports}(St);var kt=r(St.exports);function Tt(e){var t,r,n,o=2;for("undefined"!=typeof Symbol&&(r=Symbol.asyncIterator,n=Symbol.iterator);o--;){if(r&&null!=(t=e[r]))return t.call(e);if(n&&null!=(t=e[n]))return new Rt(t.call(e));r="@@asyncIterator",n="@@iterator"}throw new TypeError("Object is not async iterable")}function Rt(e){function t(e){if(Object(e)!==e)return Promise.reject(new TypeError(e+" is not an object."));var t=e.done;return Promise.resolve(e.value).then((function(e){return{value:e,done:t}}))}return Rt=function(e){this.s=e,this.n=e.next},Rt.prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var r=this.s.return;return void 0===r?Promise.resolve({value:e,done:!0}):t(r.apply(this.s,arguments))},throw:function(e){var r=this.s.return;return void 0===r?Promise.reject(e):t(r.apply(this.s,arguments))}},new Rt(e)}var At=b.mark((function e(t,r){var n,o,a;return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.byteLength,r&&!(n<r)){e.next=5;break}return e.next=4,t;case 4:return e.abrupt("return");case 5:o=0;case 6:if(!(o<n)){e.next=13;break}return a=o+r,e.next=10,t.slice(o,a);case 10:o=a,e.next=6;break;case 13:case"end":return e.stop()}}),e)})),Pt=function(){var e=wt(b.mark((function e(t,r,n){var o,a,i,s,c,u;return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:o=!1,a=!1,e.prev=2,s=Tt(t);case 4:return e.next=6,Et(s.next());case 6:if(!(o=!(c=e.sent).done)){e.next=27;break}if(u=c.value,e.t0=kt,e.t1=Tt,e.t2=At,!ArrayBuffer.isView(u)){e.next=15;break}e.t3=u,e.next=18;break;case 15:return e.next=17,Et(n(String(u)));case 17:e.t3=e.sent;case 18:return e.t4=e.t3,e.t5=r,e.t6=(0,e.t2)(e.t4,e.t5),e.t7=(0,e.t1)(e.t6),e.t8=Et,e.delegateYield((0,e.t0)(e.t7,e.t8),"t9",24);case 24:o=!1,e.next=4;break;case 27:e.next=33;break;case 29:e.prev=29,e.t10=e.catch(2),a=!0,i=e.t10;case 33:if(e.prev=33,e.prev=34,!o||null==s.return){e.next=38;break}return e.next=38,Et(s.return());case 38:if(e.prev=38,!a){e.next=41;break}throw i;case 41:return e.finish(38);case 42:return e.finish(33);case 43:case"end":return e.stop()}}),e,null,[[2,29,33,43],[34,,38,42]])})));return function(t,r,n){return e.apply(this,arguments)}}(),_t=function(e,t,r,n,o){var a=Pt(e,t,o),i=0;return new ReadableStream({type:"bytes",pull:function(e){return y(b.mark((function t(){var o,s,c,u;return b.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,a.next();case 2:if(o=t.sent,s=o.done,c=o.value,!s){t.next=9;break}return e.close(),n(),t.abrupt("return");case 9:u=c.byteLength,r&&r(i+=u),e.enqueue(new Uint8Array(c));case 12:case"end":return t.stop()}}),t)})))()},cancel:function(e){return n(e),a.return()}},{highWaterMark:2})};function jt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ct(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?jt(Object(r),!0).forEach((function(t){je(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Lt,It,Dt,Nt,Mt=function(e,t){var r=null!=e;return function(n){return setTimeout((function(){return t({lengthComputable:r,total:e,loaded:n})}))}},Ut="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,Ft=Ut&&"function"==typeof ReadableStream,Bt=Ut&&("function"==typeof TextEncoder?(Lt=new TextEncoder,function(e){return Lt.encode(e)}):function(){var e=y(b.mark((function e(t){return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=Uint8Array,e.next=3,new Response(t).arrayBuffer();case 3:return e.t1=e.sent,e.abrupt("return",new e.t0(e.t1));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),qt=Ft&&(It=!1,Dt=new Request(Fe.origin,{body:new ReadableStream,method:"POST",get duplex(){return It=!0,"half"}}).headers.has("Content-Type"),It&&!Dt),Ht=Ft&&!!function(){try{return de.isReadableStream(new Response("").body)}catch(e){}}(),Jt={stream:Ht&&function(e){return e.body}};Ut&&(Nt=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((function(e){!Jt[e]&&(Jt[e]=de.isFunction(Nt[e])?function(t){return t[e]()}:function(t,r){throw new he("Response type '".concat(e,"' is not supported"),he.ERR_NOT_SUPPORT,r)})})));var zt=function(){var e=y(b.mark((function e(t){return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=t){e.next=2;break}return e.abrupt("return",0);case 2:if(!de.isBlob(t)){e.next=4;break}return e.abrupt("return",t.size);case 4:if(!de.isSpecCompliantForm(t)){e.next=8;break}return e.next=7,new Request(t).arrayBuffer();case 7:case 14:return e.abrupt("return",e.sent.byteLength);case 8:if(!de.isArrayBufferView(t)){e.next=10;break}return e.abrupt("return",t.byteLength);case 10:if(de.isURLSearchParams(t)&&(t+=""),!de.isString(t)){e.next=15;break}return e.next=14,Bt(t);case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Kt=function(){var e=y(b.mark((function e(t,r){var n;return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=de.toFiniteNumber(t.getContentLength()),e.abrupt("return",null==n?zt(r):n);case 2:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}(),Wt=Ut&&function(){var e=y(b.mark((function e(t){var r,n,o,a,i,s,c,u,l,f,p,d,h,v,y,m,g,x,w,O,E,S,k,R,A,P,_,j,C;return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=yt(t),n=r.url,o=r.method,a=r.data,i=r.signal,s=r.cancelToken,c=r.timeout,u=r.onDownloadProgress,l=r.onUploadProgress,f=r.responseType,p=r.headers,d=r.withCredentials,h=void 0===d?"same-origin":d,v=r.fetchOptions,f=f?(f+"").toLowerCase():"text",y=i||s||c?gt([i,s],c):[],m=T(y,2),g=m[0],x=m[1],E=function(){!w&&setTimeout((function(){g&&g.unsubscribe()})),w=!0},e.prev=4,e.t0=l&&qt&&"get"!==o&&"head"!==o,!e.t0){e.next=11;break}return e.next=9,Kt(p,a);case 9:e.t1=S=e.sent,e.t0=0!==e.t1;case 11:if(!e.t0){e.next=15;break}k=new Request(n,{method:"POST",body:a,duplex:"half"}),de.isFormData(a)&&(R=k.headers.get("content-type"))&&p.setContentType(R),k.body&&(a=_t(k.body,65536,Mt(S,rt(l)),null,Bt));case 15:return de.isString(h)||(h=h?"cors":"omit"),O=new Request(n,Ct(Ct({},v),{},{signal:g,method:o.toUpperCase(),headers:p.normalize().toJSON(),body:a,duplex:"half",withCredentials:h})),e.next=19,fetch(O);case 19:return A=e.sent,P=Ht&&("stream"===f||"response"===f),Ht&&(u||P)&&(_={},["status","statusText","headers"].forEach((function(e){_[e]=A[e]})),j=de.toFiniteNumber(A.headers.get("content-length")),A=new Response(_t(A.body,65536,u&&Mt(j,rt(u,!0)),P&&E,Bt),_)),f=f||"text",e.next=25,Jt[de.findKey(Jt,f)||"text"](A,t);case 25:return C=e.sent,!P&&E(),x&&x(),e.next=30,new Promise((function(e,r){tt(e,r,{data:C,headers:Ye.from(A.headers),status:A.status,statusText:A.statusText,config:t,request:O})}));case 30:return e.abrupt("return",e.sent);case 33:if(e.prev=33,e.t2=e.catch(4),E(),!e.t2||"TypeError"!==e.t2.name||!/fetch/i.test(e.t2.message)){e.next=38;break}throw Object.assign(new he("Network Error",he.ERR_NETWORK,t,O),{cause:e.t2.cause||e.t2});case 38:throw he.from(e.t2,e.t2&&e.t2.code,t,O);case 39:case"end":return e.stop()}}),e,null,[[4,33]])})));return function(t){return e.apply(this,arguments)}}(),Vt={http:null,xhr:mt,fetch:Wt};de.forEach(Vt,(function(e,t){if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));var Gt=function(e){return"- ".concat(e)},$t=function(e){return de.isFunction(e)||null===e||!1===e},Xt=function(e){for(var t,r,n=(e=de.isArray(e)?e:[e]).length,o={},a=0;a<n;a++){var i=void 0;if(r=t=e[a],!$t(t)&&void 0===(r=Vt[(i=String(t)).toLowerCase()]))throw new he("Unknown adapter '".concat(i,"'"));if(r)break;o[i||"#"+a]=r}if(!r){var s=Object.entries(o).map((function(e){var t=T(e,2),r=t[0],n=t[1];return"adapter ".concat(r," ")+(!1===n?"is not supported by the environment":"is not available in the build")}));throw new he("There is no suitable adapter to dispatch the request "+(n?s.length>1?"since :\n"+s.map(Gt).join("\n"):" "+Gt(s[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function Yt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new et(null,e)}function Qt(e){return Yt(e),e.headers=Ye.from(e.headers),e.data=Qe.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Xt(e.adapter||He.adapter)(e).then((function(t){return Yt(e),t.data=Qe.call(e,e.transformResponse,t),t.headers=Ye.from(t.headers),t}),(function(t){return Ze(t)||(Yt(e),t&&t.response&&(t.response.data=Qe.call(e,e.transformResponse,t.response),t.response.headers=Ye.from(t.response.headers))),Promise.reject(t)}))}var Zt="1.7.2",er={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){er[e]=function(r){return c(r)===e||"a"+(t<1?"n ":" ")+e}}));var tr={};er.transitional=function(e,t,r){function n(e,t){return"[Axios v1.7.2] Transitional option '"+e+"'"+t+(r?". "+r:"")}return function(r,o,a){if(!1===e)throw new he(n(o," has been removed"+(t?" in "+t:"")),he.ERR_DEPRECATED);return t&&!tr[o]&&(tr[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,o,a)}};var rr={assertOptions:function(e,t,r){if("object"!==c(e))throw new he("options must be an object",he.ERR_BAD_OPTION_VALUE);for(var n=Object.keys(e),o=n.length;o-- >0;){var a=n[o],i=t[a];if(i){var s=e[a],u=void 0===s||i(s,a,e);if(!0!==u)throw new he("option "+a+" must be "+u,he.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new he("Unknown option "+a,he.ERR_BAD_OPTION)}},validators:er},nr=rr.validators,or=function(){return l((function e(t){o(this,e),this.defaults=t,this.interceptors={request:new Re,response:new Re}}),[{key:"request",value:(e=y(b.mark((function e(t,r){var n,o;return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this._request(t,r);case 3:return e.abrupt("return",e.sent);case 6:if(e.prev=6,e.t0=e.catch(0),e.t0 instanceof Error){Error.captureStackTrace?Error.captureStackTrace(n={}):n=new Error,o=n.stack?n.stack.replace(/^.+\n/,""):"";try{e.t0.stack?o&&!String(e.t0.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(e.t0.stack+="\n"+o):e.t0.stack=o}catch(e){}}throw e.t0;case 10:case"end":return e.stop()}}),e,this,[[0,6]])}))),function(t,r){return e.apply(this,arguments)})},{key:"_request",value:function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{};var r=t=vt(this.defaults,t),n=r.transitional,o=r.paramsSerializer,a=r.headers;void 0!==n&&rr.assertOptions(n,{silentJSONParsing:nr.transitional(nr.boolean),forcedJSONParsing:nr.transitional(nr.boolean),clarifyTimeoutError:nr.transitional(nr.boolean)},!1),null!=o&&(de.isFunction(o)?t.paramsSerializer={serialize:o}:rr.assertOptions(o,{encode:nr.function,serialize:nr.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();var i=a&&de.merge(a.common,a[t.method]);a&&de.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete a[e]})),t.headers=Ye.concat(i,a);var s=[],c=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(c=c&&e.synchronous,s.unshift(e.fulfilled,e.rejected))}));var u,l=[];this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));var f,p=0;if(!c){var d=[Qt.bind(this),void 0];for(d.unshift.apply(d,s),d.push.apply(d,l),f=d.length,u=Promise.resolve(t);p<f;)u=u.then(d[p++],d[p++]);return u}f=s.length;var h=t;for(p=0;p<f;){var v=s[p++],y=s[p++];try{h=v(h)}catch(e){y.call(this,e);break}}try{u=Qt.call(this,h)}catch(e){return Promise.reject(e)}for(p=0,f=l.length;p<f;)u=u.then(l[p++],l[p++]);return u}},{key:"getUri",value:function(e){return Te(pt((e=vt(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}]);var e}();de.forEach(["delete","get","head","options"],(function(e){or.prototype[e]=function(t,r){return this.request(vt(r||{},{method:e,url:t,data:(r||{}).data}))}})),de.forEach(["post","put","patch"],(function(e){function t(t){return function(r,n,o){return this.request(vt(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}or.prototype[e]=t(),or.prototype[e+"Form"]=t(!0)}));var ar=or,ir=function(){function e(t){if(o(this,e),"function"!=typeof t)throw new TypeError("executor must be a function.");var r;this.promise=new Promise((function(e){r=e}));var n=this;this.promise.then((function(e){if(n._listeners){for(var t=n._listeners.length;t-- >0;)n._listeners[t](e);n._listeners=null}})),this.promise.then=function(e){var t,r=new Promise((function(e){n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},t((function(e,t,o){n.reason||(n.reason=new et(e,t,o),r(n.reason))}))}return l(e,[{key:"throwIfRequested",value:function(){if(this.reason)throw this.reason}},{key:"subscribe",value:function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}},{key:"unsubscribe",value:function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}}}],[{key:"source",value:function(){var t;return{token:new e((function(e){t=e})),cancel:t}}}])}();var sr={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(sr).forEach((function(e){var t=T(e,2),r=t[0],n=t[1];sr[n]=r}));var cr=sr;var ur=function e(t){var r=new ar(t),n=R(ar.prototype.request,r);return de.extend(n,ar.prototype,r,{allOwnKeys:!0}),de.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(vt(t,r))},n}(He);ur.Axios=ar,ur.CanceledError=et,ur.CancelToken=ir,ur.isCancel=Ze,ur.VERSION=Zt,ur.toFormData=we,ur.AxiosError=he,ur.Cancel=ur.CanceledError,ur.all=function(e){return Promise.all(e)},ur.spread=function(e){return function(t){return e.apply(null,t)}},ur.isAxiosError=function(e){return de.isObject(e)&&!0===e.isAxiosError},ur.mergeConfig=vt,ur.AxiosHeaders=Ye,ur.formToJSON=function(e){return Be(de.isHTMLForm(e)?new FormData(e):e)},ur.getAdapter=Xt,ur.HttpStatusCode=cr,ur.default=ur;var lr=ur;lr.Axios,lr.AxiosError,lr.CanceledError,lr.isCancel,lr.CancelToken,lr.VERSION,lr.all,lr.Cancel,lr.isAxiosError,lr.spread,lr.toFormData,lr.AxiosHeaders,lr.HttpStatusCode,lr.formToJSON,lr.getAdapter,lr.mergeConfig;var fr={exports:{}};
|
|
4
4
|
/*!
|
|
5
5
|
* JavaScript Cookie v2.2.1
|
|
6
6
|
* https://github.com/js-cookie/js-cookie
|
|
7
7
|
*
|
|
8
8
|
* Copyright 2006, 2015 Klaus Hartl & Fagner Brack
|
|
9
9
|
* Released under the MIT license
|
|
10
|
-
*/!function(e,t){var r;r=function(){function e(){for(var e=0,t={};e<arguments.length;e++){var r=arguments[e];for(var n in r)t[n]=r[n]}return t}function t(e){return e.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function r(n){function o(){}function i(t,r,i){if("undefined"!=typeof document){"number"==typeof(i=e({path:"/"},o.defaults,i)).expires&&(i.expires=new Date(1*new Date+864e5*i.expires)),i.expires=i.expires?i.expires.toUTCString():"";try{var a=JSON.stringify(r);/^[\{\[]/.test(a)&&(r=a)}catch(e){}r=n.write?n.write(r,t):encodeURIComponent(String(r)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var s="";for(var c in i)i[c]&&(s+="; "+c,!0!==i[c]&&(s+="="+i[c].split(";")[0]));return document.cookie=t+"="+r+s}}function a(e,r){if("undefined"!=typeof document){for(var o={},i=document.cookie?document.cookie.split("; "):[],a=0;a<i.length;a++){var s=i[a].split("="),c=s.slice(1).join("=");r||'"'!==c.charAt(0)||(c=c.slice(1,-1));try{var u=t(s[0]);if(c=(n.read||n)(c,u)||t(c),r)try{c=JSON.parse(c)}catch(e){}if(o[u]=c,e===u)break}catch(e){}}return e?o[e]:o}}return o.set=i,o.get=function(e){return a(e,!1)},o.getJSON=function(e){return a(e,!0)},o.remove=function(t,r){i(t,"",e(r,{expires:-1}))},o.defaults={},o.withConverter=r,o}((function(){}))},e.exports=r()}(St);var kt=St.exports,Tt=function(){return l((function e(){o(this,e)}),null,[{key:"checkCookie",value:function(){return{user:"1"===kt.get("com.ibm.cloud.iam.LoggedIn.prod")?"authenticated":"anonymous"}}},{key:"checkAPI",value:(e=m(b.mark((function e(){var t;return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ot.get("/api/v6/selected-account?profile=true",{headers:{Accept:"application/json"}}).then((function(e){return 200===e.status?"authenticated":"anonymous"})).catch((function(e){return console.error(e),"anonymous"}));case 2:return t=e.sent,e.abrupt("return",{user:t});case 4:case"end":return e.stop()}}),e)}))),function(){return e.apply(this,arguments)})}]);var e}(),At="Carbon for IBM.com v2.10.0";var _t;function Pt(){return _t||(_t=new Promise((function(e,t){var r=0;!function n(){f.digitalData&&f.digitalData.page&&f.digitalData.page.isDataLayerReady?e():++r<50?setTimeout((function(){n()}),100):t(new Error("Timeout polling for digital data object."))}()}))),_t}var Rt=function(){return l((function e(){o(this,e)}),null,[{key:"isReady",value:function(){return Pt()}},{key:"getAll",value:(n=m(b.mark((function e(){return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.isReady().then((function(){return f.digitalData})).catch((function(){return null}));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"setVersion",value:(r=m(b.mark((function e(){return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.isReady().then((function(){f.digitalData.page.pageInfo.version=At}));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"getLanguage",value:(t=m(b.mark((function e(){return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.isReady().then((function(){return f.digitalData.page.pageInfo.language}));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"getLocation",value:(e=m(b.mark((function e(){return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.isReady().then((function(){return f.digitalData.user.location.country.toLowerCase()}));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(){return e.apply(this,arguments)})}]);var e,t,r,n}(),jt="https://1.www.s81c.com/common/carbon/plex",Ct={ar:{entry:"sans-arabic",family:"IBM Plex Sans Arabic"},ja:{entry:"sans-jp",family:"IBM Plex Sans JP"},ko:{entry:"sans-kr",family:"IBM Plex Sans KR"}},Lt={100:"thin",200:"extralight",300:"light",400:"regular",450:"text",500:"medium",600:"semibold",700:"bold"};function Nt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];Ct[e]&&(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(0===t.length){var r=document.createElement("link");r.href="".concat(jt,"/").concat(Ct[e].entry,".css"),r.type="text/css",r.rel="stylesheet",r.media="screen,print",document.getElementsByTagName("head")[0].appendChild(r)}else t.forEach((function(t){var r=document.createElement("link");r.href="".concat(jt,"/").concat(Ct[e].entry,"-").concat(Lt[t],".css"),r.type="text/css",r.rel="stylesheet",r.media="screen,print",document.getElementsByTagName("head")[0].appendChild(r)}))}(e,t),function(e){document.body.style.fontFamily="".concat(Ct[e].family,",IBM Plex Sans,Helvetica Neue,Arial,sans-serif")}(e))}function It(e){return It="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},It(e)}function Dt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Mt(n.key),n)}}function Mt(e){var t=function(e,t){if("object"!=It(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=It(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==It(t)?t:t+""}var Ft="ipcInfo",Ut=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},r=[{key:"get",value:function(){var e,t,r=kt.withConverter({read:function(e){return decodeURIComponent(e)}}).get(Ft);if(r)return r.split(";").map((function(r){var n=r.split("=");"cc"===n[0]&&(e=n[1]),"lc"===n[0]&&(t=n[1])})),{cc:e,lc:t}}},{key:"set",value:function(e){var t=e.cc,r=e.lc,n="cc=".concat(t,";lc=").concat(r);kt.withConverter({write:function(e){return encodeURIComponent(e)}}).set(Ft,n,{expires:365,domain:".ibm.com"})}}],(t=null)&&Dt(e.prototype,t),r&&Dt(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}(),Bt=process&&(process.env.REACT_APP_TRANSLATION_HOST||process.env.TRANSLATION_HOST)||"https://1.www.s81c.com",Ht={lc:"en",cc:"us"},qt="".concat(Bt,"/common/js/dynamicnav/www/countrylist/jsononly"),Jt={headers:{"Content-Type":"application/json; charset=utf-8"}},zt="cds-countrylist",Kt={};function Wt(){var e;if(null!==(e=f.document)&&void 0!==e&&null!==(e=e.documentElement)&&void 0!==e&&e.lang){var t=f.document.documentElement.lang.toLowerCase(),r={};if(-1===t.indexOf("-"))r.lc=t;else{var n=t.split("-");r.cc=n[1],r.lc=n[0]}return r}return!1}var Gt=function(){var e=m(b.mark((function e(){var t;return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!((t=Ut.get())&&t.cc&&t.lc)){e.next=5;break}return e.next=4,Xt.getList(t);case 4:return e.abrupt("return",t);case 5:return e.abrupt("return",!1);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Vt=function(){var e=m(b.mark((function e(){var t,r,n,o,i;return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Rt.getLocation();case 3:if(t=e.sent,r=f.navigator.language,n=r.split("-")[0],!t||!n){e.next=13;break}return e.next=9,Xt.getList({cc:t,lc:n});case 9:return o=e.sent,i=Xt.verifyLocale(t,n,o),Ut.set(i),e.abrupt("return",i);case 13:e.next=17;break;case 15:e.prev=15,e.t0=e.catch(0);case 17:return e.abrupt("return",!1);case 18:case"end":return e.stop()}}),e,null,[[0,15]])})));return function(){return e.apply(this,arguments)}}();function $t(){var e,t=Object.assign({},f.digitalData||{});if(null!==(e=t.page)&&void 0!==e&&null!==(e=e.pageInfo)&&void 0!==e&&e.language){var r,n,o={};return null!==(r=t.page)&&void 0!==r&&null!==(r=r.pageInfo)&&void 0!==r&&r.language.includes("-")&&null!==(n=t.page)&&void 0!==n&&null!==(n=n.pageInfo)&&void 0!==n&&null!==(n=n.ibm)&&void 0!==n&&n.country?(o.lc=t.page.pageInfo.language.substring(0,2).toLowerCase(),o.cc=t.page.pageInfo.ibm.country.toLowerCase().trim(),o.cc.indexOf(",")>-1&&(o.cc=o.cc.substring(0,o.cc.indexOf(",")).trim()),"gb"===o.cc&&(o.cc="uk"),"zz"===o.cc&&(o.cc="us")):o.lc=t.page.pageInfo.language.substring(0,2).toLowerCase(),o}return!1}var Xt=function(){return l((function e(){o(this,e)}),null,[{key:"clearCache",value:function(){if("undefined"!=typeof sessionStorage){Object.keys(Kt).forEach((function(e){return delete Kt[e]}));for(var e=0;e<sessionStorage.length;++e){var t=sessionStorage.key(e);0===t.indexOf(zt)&&sessionStorage.removeItem(t)}}}},{key:"getLocale",value:(n=m(b.mark((function e(){var t,r,n,o;return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=0,r=[$t,Wt,Gt,Vt];case 2:if(!(t<r.length)){e.next=12;break}return n=r[t],e.next=6,n();case 6:if(!(o=e.sent)){e.next=9;break}return e.abrupt("return",o);case 9:t++,e.next=2;break;case 12:return e.abrupt("return",Ht);case 13:case"end":return e.stop()}}),e)}))),function(){return n.apply(this,arguments)})},{key:"getLang",value:(r=m(b.mark((function e(){return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getLocale());case 1:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"getLangDisplay",value:(t=m(b.mark((function e(t){var r,n,o,i;return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t){e.next=4;break}e.t0=t,e.next=7;break;case 4:return e.next=6,this.getLocale();case 6:e.t0=e.sent;case 7:return r=e.t0,e.next=10,this.getList(r);case 10:if(n=e.sent,o=[],n.regionList.forEach((function(e){o=o.concat(e.countryList)})),!(i=o.filter((function(e){if(-1!==e.locale.findIndex((function(e){return e[0]==="".concat(r.lc,"-").concat(r.cc)}))){var t,n=e.locale.filter((function(e){return e.includes("".concat(r.lc,"-").concat(r.cc))}));return(t=e.locale).splice.apply(t,[0,e.locale.length].concat(Xe(n))),e}}))).length){e.next=18;break}return e.abrupt("return","".concat(i[0].name," — ").concat(i[0].locale[0][1]));case 18:return e.abrupt("return","United States — English");case 19:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"getList",value:(e=m(b.mark((function e(t){var r,n,o=this;return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.cc,n=t.lc,e.abrupt("return",new Promise((function(e,t){o.fetchList(r,n,e,t)})));case 2:case"end":return e.stop()}}),e)}))),function(t){return e.apply(this,arguments)})},{key:"fetchList",value:function(e,t,r,n){var o=this,i="undefined"!==e?"".concat(t,"-").concat(e):"".concat(t),a="".concat(zt,"-").concat(i),s=this.getSessionCache(a);if(s)r(s);else{if(!Kt[i]){var c="".concat(qt,"/").concat("undefined"!==e?"".concat(e).concat(t):"".concat(t),"-utf8.json");Kt[i]=Ot.get(c,Jt).then((function(e){var t=e.data;return t.timestamp=Date.now(),sessionStorage.setItem("".concat(zt,"-").concat(i),JSON.stringify(t)),t}))}Kt[i].then(r,(function(i){e===Ht.cc&&t===Ht.lc?n(i):o.fetchList(Ht.cc,Ht.lc,r,n)}))}}},{key:"verifyLocale",value:function(e,t,r){var n,o;return!(r&&r.regionList.forEach((function(r){return r.countryList.forEach((function(r){var i=r.locale[0][0].split("-"),a=i[0],s=i[1];s===e&&a===t?o={cc:e,lc:t}:s!==e||n||(n=a)}))})))&&n&&(o={cc:e,lc:n}),o}},{key:"getSessionCache",value:function(e){var t="undefined"==typeof sessionStorage?void 0:JSON.parse(sessionStorage.getItem(e));if(t&&t.timestamp){if(!(Date.now()-t.timestamp>72e5))return t;sessionStorage.removeItem(e)}}}]);var e,t,r,n}(),Yt=!1;var Qt=process&&process.env.MARKETING_SEARCH_HOST||"https://www.ibm.com",Zt=process&&process.env.MARKETING_SEARCH_VERSION||"v3",er="".concat(Qt,"/marketplace/api/search/").concat(Zt,"/combined_suggestions"),tr=function(){return l((function e(){o(this,e)}),null,[{key:"getResults",value:(e=m(b.mark((function e(t){var r;return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r="".concat(er,"?locale=").concat("en","-").concat("us","&q=").concat(encodeURIComponent(t)),e.next=5,Ot.get(r,{headers:{"Content-Type":"application/json; charset=utf-8"}}).then((function(e){return e.data}));case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)}))),function(t){return e.apply(this,arguments)})}]);var e}(),rr=function(){return l((function e(){o(this,e)}),null,[{key:"setMastheadLogo",value:function(e){if(void 0===e)return!1;var t=(new Date).getTime(),r=e.end?Date.parse(e.end):null,n=!!(r&&t>r);return!(null===e.svg||n||e.denylist&&-1!==e.denylist.indexOf(location.pathname))&&!(!e.allowlist||0!=e.allowlist.length&&-1===e.allowlist.indexOf(location.pathname)||!e.svg)}}])}(),nr=process&&(process.env.REACT_APP_PROFILE_HOST||process.env.PROFILE_HOST)||"https://login.ibm.com",or=process&&process.env.PROFILE_VERSION||"v1",ir="".concat(nr,"/").concat(or,"/mgmt/idaas/user/status/"),ar=function(){return l((function e(){o(this,e)}),null,[{key:"getUserStatus",value:(t=m(b.mark((function e(){return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ot.get(ir,{headers:{"Content-Type":"application/json; charset=utf-8"},withCredentials:!0}).then((function(e){return e.data})).catch((function(e){return console.log("Failed Profile Network Call",e),{user:"Unauthenticated"}}));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),function(){return t.apply(this,arguments)})},{key:"checkCloudCookie",value:function(){return{user:"1"===kt.get("com.ibm.cloud.iam.LoggedIn.prod")?"authenticated":"anonymous"}}},{key:"checkCloudDocsAPI",value:(e=m(b.mark((function e(){var t;return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ot.get("/api/v6/selected-account?profile=true",{headers:{Accept:"application/json"}}).then((function(e){return 200===e.status?"authenticated":"anonymous"})).catch((function(e){return console.error(e),"anonymous"}));case 2:return t=e.sent,e.abrupt("return",{user:t});case 4:case"end":return e.stop()}}),e)}))),function(){return e.apply(this,arguments)})}]);var e,t}(),sr=process&&process.env.SEARCH_TYPEAHEAD_API||"https://www-api.ibm.com",cr=process&&process.env.SEARCH_TYPEAHEAD_VERSION||"v1",ur="".concat(sr,"/search/typeahead/").concat(cr),lr=function(){return l((function e(){o(this,e)}),null,[{key:"getResults",value:(e=m(b.mark((function e(t){var r,n,o,i,a=arguments;return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=a.length>1&&void 0!==a[1]?a[1]:"",e.next=3,Xt.getLang();case 3:return n=e.sent,o=["lang=".concat(n.lc).concat(n.cc?"&cc=".concat(n.cc):""),"query=".concat(encodeURIComponent(t)),"".concat(r?"appid=".concat(r):"")].filter((function(e){return e})).join("&"),i="".concat(ur,"?").concat(o),e.next=8,Ot.get(i,{headers:{"Content-Type":"application/json; charset=utf-8"}}).then((function(e){return e.data.response}));case 8:return e.abrupt("return",e.sent);case 9:case"end":return e.stop()}}),e)}))),function(t){return e.apply(this,arguments)})}]);var e}(),fr=process&&(process.env.REACT_APP_TRANSLATION_HOST||process.env.TRANSLATION_HOST)||"https://1.www.s81c.com",pr="/common/carbon-for-ibm-dotcom/translations/masthead-footer/v2.1",dr=process&&(process.env.REACT_APP_C4D_TRANSLATION_ENDPOINT||process.env.C4D_TRANSLATION_ENDPOINT)||pr,hr={},vr="en",mr="us",yr=function(){return l((function e(){o(this,e)}),null,[{key:"clearCache",value:function(e){var t=this.getSessionKey(e);if("undefined"!=typeof sessionStorage){Object.keys(hr).forEach((function(e){return delete hr[e]}));for(var r=0;r<sessionStorage.length;++r){var n=sessionStorage.key(r);0===n.indexOf(t)&&sessionStorage.removeItem(n)}}}},{key:"getTranslation",value:(e=m(b.mark((function e(t,r){var n,o,i,a=this;return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n="en",o="us",!(t&&t.lc&&t.cc)){e.next=7;break}n=t.lc,o=t.cc,e.next=12;break;case 7:return e.next=9,Xt.getLocale();case 9:i=e.sent,n=i.lc,o=i.cc;case 12:return e.abrupt("return",new Promise((function(e,t){a.fetchTranslation(n,o,r,e,t)})));case 13:case"end":return e.stop()}}),e)}))),function(t,r){return e.apply(this,arguments)})},{key:"fetchTranslation",value:function(e,t,r,n,o){var i=this,a=this.getSessionKey(r),s="".concat(a,"-").concat(t,"-").concat(e),c=this.getSessionCache(s);if(c)n(c);else{var u="undefined"!==t?"".concat(t,"-").concat(e):"".concat(e);if(!hr[u]){var l=r||dr,f="undefined"!==t?"".concat(t).concat(e):"".concat(e),p=/((http(s?)):\/\/)/g.test(r)?"":fr,d="".concat(p).concat(l,"/").concat(f,".json");hr[u]=Ot.get(d,{headers:{"Content-Type":"text/plain",origin:fr}}).then((function(e){return i.transformData(e.data)})).then((function(e){return e.timestamp=Date.now(),"undefined"!=typeof sessionStorage&&sessionStorage.setItem("".concat(a,"-").concat(u),JSON.stringify(e)),e}))}hr[u].then(n,(function(a){t===mr&&e===vr?o(a):i.fetchTranslation(vr,mr,r,n,o)}))}}},{key:"getSessionKey",value:function(e){var t="c4d-translation";(pr!==dr||e)&&(t=(e||dr).replace(/[`~!@#$%^&*()_|+\-=?;:'",.<>{}[\]\\/]/gi,""));return t}},{key:"transformData",value:function(e){var t,r=null===(t=e.profileMenu)||void 0===t?void 0:t.signedout;if(r){var n="state=https%3A%2F%2Fwww.ibm.com",o=r.findIndex((function(e){var t;return-1!==(null===(t=e.url)||void 0===t?void 0:t.indexOf(n))}));if(-1!==o&&f.location){var i=encodeURIComponent(f.location.href);e.profileMenu.signedout[o].url=r[o].url.replace(n,"state=".concat(i))}}return e.footerMenu.push(e.socialFollow),e}},{key:"getSessionCache",value:function(e){var t="undefined"==typeof sessionStorage?void 0:JSON.parse(sessionStorage.getItem(e));if(t&&t.timestamp){if(!(Date.now()-t.timestamp>72e5))return t;sessionStorage.removeItem(e)}}}]);var e}();function gr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function br(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?gr(Object(r),!0).forEach((function(t){ge(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var wr=process&&(process.env.REACT_APP_KALTURA_PARTNER_ID||process.env.KALTURA_PARTNER_ID)||1773841,xr=process&&(process.env.REACT_APP_KALTURA_UICONF_ID||process.env.KALTURA_UICONF_ID)||27941801,Er="https://cdnapisec.kaltura.com/p/".concat(wr,"/sp/").concat(wr,"00/embedIframeJs/uiconf_id/").concat(xr,"/partner_id/").concat(wr),Or="https://cdnsecakmi.kaltura.com/p/".concat(wr,"/thumbnail/entry_id/"),Sr=0,kr=!1;function Tr(e,t){f.kWidget?(kr=!1,e()):kr?++Sr<50?setTimeout((function(){Tr(e,t)}),100):t():(!function(){kr=!0;var e=document.createElement("script");e.src=Er,e.async=!0,document.body.appendChild(e)}(),Tr(e,t))}var Ar={},_r=function(){function e(){o(this,e)}return l(e,null,[{key:"checkScript",value:function(){return new Promise((function(e,t){Tr(e,t)}))}},{key:"getThumbnailUrl",value:function(e){var t=e.mediaId,r=e.height,n=e.width,o=Or+t;return r&&(o+="/height/".concat(r)),n&&(o+="/width/".concat(n)),o}},{key:"embedMedia",value:(r=m(b.mark((function e(t,r){var n,o,i,a,s=arguments;return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=s.length>2&&void 0!==s[2]?s[2]:{},o=!(s.length>3&&void 0!==s[3])||s[3],i=s.length>4&&void 0!==s[4]?s[4]:function(){},a=this.fireEvent,e.next=6,this.checkScript().then((function(){var e=new Promise((function(e){var s;if(!document.getElementById(r)&&document.querySelector("cds-tabs-extended-media")){var c=document.createElement("div");c.classList.add("bx--video-player__video"),c.setAttribute("id",r),document.body.append(c),s=!0}f.kWidget.embed({targetId:r,wid:"_"+wr,uiconf_id:xr,entry_id:t,flashvars:br(br({},{autoPlay:!0,closedCaptions:{plugin:!0},titleLabel:{plugin:!0,align:"left",text:"{mediaProxy.entry.name}"},ibm:{template:"idl"}}),n),params:{wmode:"transparent"},readyCallback:function(r){var n=document.getElementById(r);o&&(n.addJsListener("playerPaused.ibm",(function(){a({playerState:1,kdp:n,mediaId:t})})),n.addJsListener("playerPlayed.ibm",(function(){a({playerState:2,kdp:n,mediaId:t})})),n.addJsListener("playerPlayEnd.ibm",(function(){a({playerState:3,kdp:n,mediaId:t})})),n.addJsListener("IbmCtaEvent.ibm",(function(e){var r=(null==e?void 0:e.customMetricsData)||{};a({playerState:101,kdp:n,mediaId:t,customMetricsData:r})}))),i(n),e(n)}}),s&&document.querySelector("cds-tabs-extended-media").shadowRoot.querySelector(".bx--accordion__item--active cds-video-player").lastChild.parentElement.appendChild(document.getElementById(r))}));return{kWidget:function(){return e}}}));case 6:return e.abrupt("return",e.sent);case 7:case"end":return e.stop()}}),e,this)}))),function(e,t){return r.apply(this,arguments)})},{key:"fireEvent",value:function(e){var t=e.playerState,r=e.kdp,n=e.mediaId,o=e.customMetricsData,i=void 0===o?{}:o,a=Math.round(r.evaluate("{video.player.currentTime}"));2===t&&0===a&&(t=0);var s={playerType:"kaltura",title:r.evaluate("{mediaProxy.entry.name}"),currentTime:a,duration:r.evaluate("{mediaProxy.entry.duration}"),playerState:t,mediaId:n,customMetricsData:i};h.videoPlayerStats(s)}},{key:"api",value:(t=m(b.mark((function e(t){return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.checkScript().then((function(){return Ar&&Ar[t]?Ar[t]:new Promise((function(e){return new f.kWidget.api({wid:"_"+wr}).doRequest({service:"media",action:"get",entryId:t},(function(t){Ar[t.id]=t,e(t)}))}))}));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"getMediaDuration",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(arguments.length>1?arguments[1]:void 0){var r=Math.floor(t/1e3%60),n=Math.floor(t/6e4%60),o=Math.floor(t/36e5%24);return o=o>0?o+":":"",r=r<10?"0"+r:r,t&&"("+o+n+":"+r+")"}var i=(null==f||null===(e=f.kWidget)||void 0===e?void 0:e.seconds2Measurements(t))||{},a=(null==i?void 0:i.hours)||0,s=(null==i?void 0:i.minutes)||0,c=(null==i?void 0:i.seconds)||0;return s=(a>0?"0"+s:s).toString().slice(-2),(a=a>0?a+":":"")+s+":"+(c=("0"+c).slice(-2))}},{key:"getMediaDurationFormatted",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=t;(arguments.length>1?arguments[1]:void 0)||(r=1e3*t);var n=Math.floor(r/1e3%60),o=Math.floor(r/6e4%60),i=Math.floor(r/36e5%24),a=e.formatTime(n,"second"),s=i||o?e.formatTime(o,"minute"):"",c=i?e.formatTime(i,"hour"):"";return"".concat(c," ").concat(s," ").concat(a).trim()}},{key:"formatTime",value:function(e,t){var r=f.document.documentElement.lang||f.navigator.language;return new Intl.NumberFormat(r,{style:"unit",unitDisplay:"long",unit:t}).format(e)}}]);var t,r}();e.AnalyticsAPI=h,e.CloudAccountAuthAPI=Tt,e.DDOAPI=Rt,e.KalturaPlayerAPI=_r,e.LocaleAPI=Xt,e.MarketingSearchAPI=tr,e.MastheadLogo=rr,e.ProfileAPI=ar,e.SearchTypeaheadAPI=lr,e.TranslationAPI=yr,e.globalInit=function(){Yt||(Yt=!0,Rt.setVersion().catch((function(e){console.error("Error setting the version of the library in the DDO:",e)})),Xt.getLang().then((function(e){Nt(e.lc)})),h.initAll())},Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
10
|
+
*/!function(e,t){var r;r=function(){function e(){for(var e=0,t={};e<arguments.length;e++){var r=arguments[e];for(var n in r)t[n]=r[n]}return t}function t(e){return e.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function r(n){function o(){}function a(t,r,a){if("undefined"!=typeof document){"number"==typeof(a=e({path:"/"},o.defaults,a)).expires&&(a.expires=new Date(1*new Date+864e5*a.expires)),a.expires=a.expires?a.expires.toUTCString():"";try{var i=JSON.stringify(r);/^[\{\[]/.test(i)&&(r=i)}catch(e){}r=n.write?n.write(r,t):encodeURIComponent(String(r)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var s="";for(var c in a)a[c]&&(s+="; "+c,!0!==a[c]&&(s+="="+a[c].split(";")[0]));return document.cookie=t+"="+r+s}}function i(e,r){if("undefined"!=typeof document){for(var o={},a=document.cookie?document.cookie.split("; "):[],i=0;i<a.length;i++){var s=a[i].split("="),c=s.slice(1).join("=");r||'"'!==c.charAt(0)||(c=c.slice(1,-1));try{var u=t(s[0]);if(c=(n.read||n)(c,u)||t(c),r)try{c=JSON.parse(c)}catch(e){}if(o[u]=c,e===u)break}catch(e){}}return e?o[e]:o}}return o.set=a,o.get=function(e){return i(e,!1)},o.getJSON=function(e){return i(e,!0)},o.remove=function(t,r){a(t,"",e(r,{expires:-1}))},o.defaults={},o.withConverter=r,o}((function(){}))},e.exports=r()}(fr);var pr=fr.exports,dr=function(){return l((function e(){o(this,e)}),null,[{key:"checkCookie",value:function(){return{user:"1"===pr.get("com.ibm.cloud.iam.LoggedIn.prod")?"authenticated":"anonymous"}}},{key:"checkAPI",value:(e=y(b.mark((function e(){var t;return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,lr.get("/api/v6/selected-account?profile=true",{headers:{Accept:"application/json"}}).then((function(e){return 200===e.status?"authenticated":"anonymous"})).catch((function(e){return console.error(e),"anonymous"}));case 2:return t=e.sent,e.abrupt("return",{user:t});case 4:case"end":return e.stop()}}),e)}))),function(){return e.apply(this,arguments)})}]);var e}(),hr="Carbon for IBM.com v2.11.0";var vr;function yr(){return vr||(vr=new Promise((function(e,t){var r=0;!function n(){f.digitalData&&f.digitalData.page&&f.digitalData.page.isDataLayerReady?e():++r<50?setTimeout((function(){n()}),100):t(new Error("Timeout polling for digital data object."))}()}))),vr}var mr=function(){return l((function e(){o(this,e)}),null,[{key:"isReady",value:function(){return yr()}},{key:"getAll",value:(n=y(b.mark((function e(){return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.isReady().then((function(){return f.digitalData})).catch((function(){return null}));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"setVersion",value:(r=y(b.mark((function e(){return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.isReady().then((function(){f.digitalData.page.pageInfo.version=hr}));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"getLanguage",value:(t=y(b.mark((function e(){return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.isReady().then((function(){return f.digitalData.page.pageInfo.language}));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"getLocation",value:(e=y(b.mark((function e(){return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.isReady().then((function(){return f.digitalData.user.location.country.toLowerCase()}));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(){return e.apply(this,arguments)})}]);var e,t,r,n}(),gr="https://1.www.s81c.com/common/carbon/plex",br={ar:{entry:"sans-arabic",family:"IBM Plex Sans Arabic"},ja:{entry:"sans-jp",family:"IBM Plex Sans JP"},ko:{entry:"sans-kr",family:"IBM Plex Sans KR"}},xr={100:"thin",200:"extralight",300:"light",400:"regular",450:"text",500:"medium",600:"semibold",700:"bold"};function wr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];br[e]&&(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(0===t.length){var r=document.createElement("link");r.href="".concat(gr,"/").concat(br[e].entry,".css"),r.type="text/css",r.rel="stylesheet",r.media="screen,print",document.getElementsByTagName("head")[0].appendChild(r)}else t.forEach((function(t){var r=document.createElement("link");r.href="".concat(gr,"/").concat(br[e].entry,"-").concat(xr[t],".css"),r.type="text/css",r.rel="stylesheet",r.media="screen,print",document.getElementsByTagName("head")[0].appendChild(r)}))}(e,t),function(e){document.body.style.fontFamily="".concat(br[e].family,",IBM Plex Sans,Helvetica Neue,Arial,sans-serif")}(e))}function Or(e){return Or="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Or(e)}function Er(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Sr(n.key),n)}}function Sr(e){var t=function(e,t){if("object"!=Or(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Or(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Or(t)?t:t+""}var kr="ipcInfo",Tr=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},r=[{key:"get",value:function(){var e,t,r=pr.withConverter({read:function(e){return decodeURIComponent(e)}}).get(kr);if(r)return r.split(";").map((function(r){var n=r.split("=");"cc"===n[0]&&(e=n[1]),"lc"===n[0]&&(t=n[1])})),{cc:e,lc:t}}},{key:"set",value:function(e){var t=e.cc,r=e.lc,n="cc=".concat(t,";lc=").concat(r);pr.withConverter({write:function(e){return encodeURIComponent(e)}}).set(kr,n,{expires:365,domain:".ibm.com"})}}],(t=null)&&Er(e.prototype,t),r&&Er(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}(),Rr=process&&(process.env.REACT_APP_TRANSLATION_HOST||process.env.TRANSLATION_HOST)||"https://1.www.s81c.com",Ar={lc:"en",cc:"us"},Pr="".concat(Rr,"/common/js/dynamicnav/www/countrylist/jsononly"),_r={headers:{"Content-Type":"application/json; charset=utf-8"}},jr="cds-countrylist",Cr={};function Lr(){var e;if(null!==(e=f.document)&&void 0!==e&&null!==(e=e.documentElement)&&void 0!==e&&e.lang){var t=f.document.documentElement.lang.toLowerCase(),r={};if(-1===t.indexOf("-"))r.lc=t;else{var n=t.split("-");r.cc=n[1],r.lc=n[0]}return r}return!1}var Ir=function(){var e=y(b.mark((function e(){var t;return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!((t=Tr.get())&&t.cc&&t.lc)){e.next=5;break}return e.next=4,Mr.getList(t);case 4:return e.abrupt("return",t);case 5:return e.abrupt("return",!1);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Dr=function(){var e=y(b.mark((function e(){var t,r,n,o,a;return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,mr.getLocation();case 3:if(t=e.sent,r=f.navigator.language,n=r.split("-")[0],!t||!n){e.next=13;break}return e.next=9,Mr.getList({cc:t,lc:n});case 9:return o=e.sent,a=Mr.verifyLocale(t,n,o),Tr.set(a),e.abrupt("return",a);case 13:e.next=17;break;case 15:e.prev=15,e.t0=e.catch(0);case 17:return e.abrupt("return",!1);case 18:case"end":return e.stop()}}),e,null,[[0,15]])})));return function(){return e.apply(this,arguments)}}();function Nr(){var e,t=Object.assign({},f.digitalData||{});if(null!==(e=t.page)&&void 0!==e&&null!==(e=e.pageInfo)&&void 0!==e&&e.language){var r,n,o={};return null!==(r=t.page)&&void 0!==r&&null!==(r=r.pageInfo)&&void 0!==r&&r.language.includes("-")&&null!==(n=t.page)&&void 0!==n&&null!==(n=n.pageInfo)&&void 0!==n&&null!==(n=n.ibm)&&void 0!==n&&n.country?(o.lc=t.page.pageInfo.language.substring(0,2).toLowerCase(),o.cc=t.page.pageInfo.ibm.country.toLowerCase().trim(),o.cc.indexOf(",")>-1&&(o.cc=o.cc.substring(0,o.cc.indexOf(",")).trim()),"gb"===o.cc&&(o.cc="uk"),"zz"===o.cc&&(o.cc="us")):o.lc=t.page.pageInfo.language.substring(0,2).toLowerCase(),o}return!1}var Mr=function(){return l((function e(){o(this,e)}),null,[{key:"clearCache",value:function(){if("undefined"!=typeof sessionStorage){Object.keys(Cr).forEach((function(e){return delete Cr[e]}));for(var e=0;e<sessionStorage.length;++e){var t=sessionStorage.key(e);0===t.indexOf(jr)&&sessionStorage.removeItem(t)}}}},{key:"getLocale",value:(n=y(b.mark((function e(){var t,r,n,o;return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=0,r=[Nr,Lr,Ir,Dr];case 2:if(!(t<r.length)){e.next=12;break}return n=r[t],e.next=6,n();case 6:if(!(o=e.sent)){e.next=9;break}return e.abrupt("return",o);case 9:t++,e.next=2;break;case 12:return e.abrupt("return",Ar);case 13:case"end":return e.stop()}}),e)}))),function(){return n.apply(this,arguments)})},{key:"getLang",value:(r=y(b.mark((function e(){return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.getLocale());case 1:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"getLangDisplay",value:(t=y(b.mark((function e(t){var r,n,o,a;return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t){e.next=4;break}e.t0=t,e.next=7;break;case 4:return e.next=6,this.getLocale();case 6:e.t0=e.sent;case 7:return r=e.t0,e.next=10,this.getList(r);case 10:if(n=e.sent,o=[],n.regionList.forEach((function(e){o=o.concat(e.countryList)})),!(a=o.filter((function(e){if(-1!==e.locale.findIndex((function(e){return e[0]==="".concat(r.lc,"-").concat(r.cc)}))){var t,n=e.locale.filter((function(e){return e.includes("".concat(r.lc,"-").concat(r.cc))}));return(t=e.locale).splice.apply(t,[0,e.locale.length].concat(st(n))),e}}))).length){e.next=18;break}return e.abrupt("return","".concat(a[0].name," — ").concat(a[0].locale[0][1]));case 18:return e.abrupt("return","United States — English");case 19:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"getList",value:(e=y(b.mark((function e(t){var r,n,o=this;return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.cc,n=t.lc,e.abrupt("return",new Promise((function(e,t){o.fetchList(r,n,e,t)})));case 2:case"end":return e.stop()}}),e)}))),function(t){return e.apply(this,arguments)})},{key:"fetchList",value:function(e,t,r,n){var o=this,a="undefined"!==e?"".concat(t,"-").concat(e):"".concat(t),i="".concat(jr,"-").concat(a),s=this.getSessionCache(i);if(s)r(s);else{if(!Cr[a]){var c="".concat(Pr,"/").concat("undefined"!==e?"".concat(e).concat(t):"".concat(t),"-utf8.json");Cr[a]=lr.get(c,_r).then((function(e){var t=e.data;return t.timestamp=Date.now(),sessionStorage.setItem("".concat(jr,"-").concat(a),JSON.stringify(t)),t}))}Cr[a].then(r,(function(a){e===Ar.cc&&t===Ar.lc?n(a):o.fetchList(Ar.cc,Ar.lc,r,n)}))}}},{key:"verifyLocale",value:function(e,t,r){var n,o;return!(r&&r.regionList.forEach((function(r){return r.countryList.forEach((function(r){var a=r.locale[0][0].split("-"),i=a[0],s=a[1];s===e&&i===t?o={cc:e,lc:t}:s!==e||n||(n=i)}))})))&&n&&(o={cc:e,lc:n}),o}},{key:"getSessionCache",value:function(e){var t="undefined"==typeof sessionStorage?void 0:JSON.parse(sessionStorage.getItem(e));if(t&&t.timestamp){if(!(Date.now()-t.timestamp>72e5))return t;sessionStorage.removeItem(e)}}}]);var e,t,r,n}(),Ur=!1;var Fr=process&&process.env.MARKETING_SEARCH_HOST||"https://www.ibm.com",Br=process&&process.env.MARKETING_SEARCH_VERSION||"v3",qr="".concat(Fr,"/marketplace/api/search/").concat(Br,"/combined_suggestions"),Hr=function(){return l((function e(){o(this,e)}),null,[{key:"getResults",value:(e=y(b.mark((function e(t){var r;return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r="".concat(qr,"?locale=").concat("en","-").concat("us","&q=").concat(encodeURIComponent(t)),e.next=5,lr.get(r,{headers:{"Content-Type":"application/json; charset=utf-8"}}).then((function(e){return e.data}));case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)}))),function(t){return e.apply(this,arguments)})}]);var e}(),Jr=function(){return l((function e(){o(this,e)}),null,[{key:"setMastheadLogo",value:function(e){if(void 0===e)return!1;var t=(new Date).getTime(),r=e.end?Date.parse(e.end):null,n=!!(r&&t>r);return!(null===e.svg||n||e.denylist&&-1!==e.denylist.indexOf(location.pathname))&&!(!e.allowlist||0!=e.allowlist.length&&-1===e.allowlist.indexOf(location.pathname)||!e.svg)}}])}(),zr=process&&(process.env.REACT_APP_PROFILE_HOST||process.env.PROFILE_HOST)||"https://login.ibm.com",Kr=process&&process.env.PROFILE_VERSION||"v1",Wr="".concat(zr,"/").concat(Kr,"/mgmt/idaas/user/status/"),Vr=function(){return l((function e(){o(this,e)}),null,[{key:"getUserStatus",value:(t=y(b.mark((function e(){return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,lr.get(Wr,{headers:{"Content-Type":"application/json; charset=utf-8"},withCredentials:!0}).then((function(e){return e.data})).catch((function(e){return console.log("Failed Profile Network Call",e),{user:"Unauthenticated"}}));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),function(){return t.apply(this,arguments)})},{key:"checkCloudCookie",value:function(){return{user:"1"===pr.get("com.ibm.cloud.iam.LoggedIn.prod")?"authenticated":"anonymous"}}},{key:"checkCloudDocsAPI",value:(e=y(b.mark((function e(){var t;return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,lr.get("/api/v6/selected-account?profile=true",{headers:{Accept:"application/json"}}).then((function(e){return 200===e.status?"authenticated":"anonymous"})).catch((function(e){return console.error(e),"anonymous"}));case 2:return t=e.sent,e.abrupt("return",{user:t});case 4:case"end":return e.stop()}}),e)}))),function(){return e.apply(this,arguments)})}]);var e,t}(),Gr=process&&process.env.SEARCH_TYPEAHEAD_API||"https://www-api.ibm.com",$r=process&&process.env.SEARCH_TYPEAHEAD_VERSION||"v1",Xr="".concat(Gr,"/search/typeahead/").concat($r),Yr=function(){return l((function e(){o(this,e)}),null,[{key:"getResults",value:(e=y(b.mark((function e(t){var r,n,o,a,i=arguments;return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=i.length>1&&void 0!==i[1]?i[1]:"",e.next=3,Mr.getLang();case 3:return n=e.sent,o=["lang=".concat(n.lc).concat(n.cc?"&cc=".concat(n.cc):""),"query=".concat(encodeURIComponent(t)),"".concat(r?"appid=".concat(r):"")].filter((function(e){return e})).join("&"),a="".concat(Xr,"?").concat(o),e.next=8,lr.get(a,{headers:{"Content-Type":"application/json; charset=utf-8"}}).then((function(e){return e.data.response}));case 8:return e.abrupt("return",e.sent);case 9:case"end":return e.stop()}}),e)}))),function(t){return e.apply(this,arguments)})}]);var e}(),Qr=process&&(process.env.REACT_APP_TRANSLATION_HOST||process.env.TRANSLATION_HOST)||"https://1.www.s81c.com",Zr="/common/carbon-for-ibm-dotcom/translations/masthead-footer/v2.1",en=process&&(process.env.REACT_APP_C4D_TRANSLATION_ENDPOINT||process.env.C4D_TRANSLATION_ENDPOINT)||Zr,tn={},rn="en",nn="us",on=function(){return l((function e(){o(this,e)}),null,[{key:"clearCache",value:function(e){var t=this.getSessionKey(e);if("undefined"!=typeof sessionStorage){Object.keys(tn).forEach((function(e){return delete tn[e]}));for(var r=0;r<sessionStorage.length;++r){var n=sessionStorage.key(r);0===n.indexOf(t)&&sessionStorage.removeItem(n)}}}},{key:"getTranslation",value:(e=y(b.mark((function e(t,r){var n,o,a,i=this;return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n="en",o="us",!(t&&t.lc&&t.cc)){e.next=7;break}n=t.lc,o=t.cc,e.next=12;break;case 7:return e.next=9,Mr.getLocale();case 9:a=e.sent,n=a.lc,o=a.cc;case 12:return e.abrupt("return",new Promise((function(e,t){i.fetchTranslation(n,o,r,e,t)})));case 13:case"end":return e.stop()}}),e)}))),function(t,r){return e.apply(this,arguments)})},{key:"fetchTranslation",value:function(e,t,r,n,o){var a=this,i=this.getSessionKey(r),s="".concat(i,"-").concat(t,"-").concat(e),c=this.getSessionCache(s);if(c)n(c);else{var u="undefined"!==t?"".concat(t,"-").concat(e):"".concat(e);if(!tn[u]){var l=r||en,f="undefined"!==t?"".concat(t).concat(e):"".concat(e),p=/((http(s?)):\/\/)/g.test(r)?"":Qr,d="".concat(p).concat(l,"/").concat(f,".json");tn[u]=lr.get(d,{headers:{"Content-Type":"text/plain",origin:Qr}}).then((function(e){return a.transformData(e.data)})).then((function(e){return e.timestamp=Date.now(),"undefined"!=typeof sessionStorage&&sessionStorage.setItem("".concat(i,"-").concat(u),JSON.stringify(e)),e}))}tn[u].then(n,(function(i){t===nn&&e===rn?o(i):a.fetchTranslation(rn,nn,r,n,o)}))}}},{key:"getSessionKey",value:function(e){var t="c4d-translation";(Zr!==en||e)&&(t=(e||en).replace(/[`~!@#$%^&*()_|+\-=?;:'",.<>{}[\]\\/]/gi,""));return t}},{key:"transformData",value:function(e){var t,r=null===(t=e.profileMenu)||void 0===t?void 0:t.signedout;if(r){var n="state=https%3A%2F%2Fwww.ibm.com",o=r.findIndex((function(e){var t;return-1!==(null===(t=e.url)||void 0===t?void 0:t.indexOf(n))}));if(-1!==o&&f.location){var a=encodeURIComponent(f.location.href);e.profileMenu.signedout[o].url=r[o].url.replace(n,"state=".concat(a))}}return e.footerMenu.push(e.socialFollow),e}},{key:"getSessionCache",value:function(e){var t="undefined"==typeof sessionStorage?void 0:JSON.parse(sessionStorage.getItem(e));if(t&&t.timestamp){if(!(Date.now()-t.timestamp>72e5))return t;sessionStorage.removeItem(e)}}}]);var e}();function an(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function sn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?an(Object(r),!0).forEach((function(t){je(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):an(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var cn=process&&(process.env.REACT_APP_KALTURA_PARTNER_ID||process.env.KALTURA_PARTNER_ID)||1773841,un=process&&(process.env.REACT_APP_KALTURA_UICONF_ID||process.env.KALTURA_UICONF_ID)||27941801,ln="https://cdnapisec.kaltura.com/p/".concat(cn,"/sp/").concat(cn,"00/embedIframeJs/uiconf_id/").concat(un,"/partner_id/").concat(cn),fn="https://cdnsecakmi.kaltura.com/p/".concat(cn,"/thumbnail/entry_id/"),pn=0,dn=!1;function hn(e,t){f.kWidget?(dn=!1,e()):dn?++pn<50?setTimeout((function(){hn(e,t)}),100):t():(!function(){dn=!0;var e=document.createElement("script");e.src=ln,e.async=!0,document.body.appendChild(e)}(),hn(e,t))}var vn={},yn=function(){function e(){o(this,e)}return l(e,null,[{key:"checkScript",value:function(){return new Promise((function(e,t){hn(e,t)}))}},{key:"getThumbnailUrl",value:function(e){var t=e.mediaId,r=e.height,n=e.width,o=fn+t;return r&&(o+="/height/".concat(r)),n&&(o+="/width/".concat(n)),o}},{key:"embedMedia",value:(r=y(b.mark((function e(t,r){var n,o,a,i,s=arguments;return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=s.length>2&&void 0!==s[2]?s[2]:{},o=!(s.length>3&&void 0!==s[3])||s[3],a=s.length>4&&void 0!==s[4]?s[4]:function(){},i=this.fireEvent,e.next=6,this.checkScript().then((function(){var e=new Promise((function(e){var s;if(!document.getElementById(r)&&document.querySelector("cds-tabs-extended-media")){var c=document.createElement("div");c.classList.add("bx--video-player__video"),c.setAttribute("id",r),document.body.append(c),s=!0}f.kWidget.embed({targetId:r,wid:"_"+cn,uiconf_id:un,entry_id:t,flashvars:sn(sn({},{autoPlay:!0,closedCaptions:{plugin:!0},titleLabel:{plugin:!0,align:"left",text:"{mediaProxy.entry.name}"},ibm:{template:"idl"}}),n),params:{wmode:"transparent"},readyCallback:function(r){var n=document.getElementById(r);o&&(n.addJsListener("playerPaused.ibm",(function(){i({playerState:1,kdp:n,mediaId:t})})),n.addJsListener("playerPlayed.ibm",(function(){i({playerState:2,kdp:n,mediaId:t})})),n.addJsListener("playerPlayEnd.ibm",(function(){i({playerState:3,kdp:n,mediaId:t})})),n.addJsListener("IbmCtaEvent.ibm",(function(e){var r=(null==e?void 0:e.customMetricsData)||{};i({playerState:101,kdp:n,mediaId:t,customMetricsData:r})}))),a(n),e(n)}}),s&&document.querySelector("cds-tabs-extended-media").shadowRoot.querySelector(".bx--accordion__item--active cds-video-player").lastChild.parentElement.appendChild(document.getElementById(r))}));return{kWidget:function(){return e}}}));case 6:return e.abrupt("return",e.sent);case 7:case"end":return e.stop()}}),e,this)}))),function(e,t){return r.apply(this,arguments)})},{key:"fireEvent",value:function(e){var t=e.playerState,r=e.kdp,n=e.mediaId,o=e.customMetricsData,a=void 0===o?{}:o,i=Math.round(r.evaluate("{video.player.currentTime}"));2===t&&0===i&&(t=0);var s={playerType:"kaltura",title:r.evaluate("{mediaProxy.entry.name}"),currentTime:i,duration:r.evaluate("{mediaProxy.entry.duration}"),playerState:t,mediaId:n,customMetricsData:a};h.videoPlayerStats(s)}},{key:"api",value:(t=y(b.mark((function e(t){return b.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.checkScript().then((function(){return vn&&vn[t]?vn[t]:new Promise((function(e){return new f.kWidget.api({wid:"_"+cn}).doRequest({service:"media",action:"get",entryId:t},(function(t){vn[t.id]=t,e(t)}))}))}));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"getMediaDuration",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(arguments.length>1?arguments[1]:void 0){var r=Math.floor(t/1e3%60),n=Math.floor(t/6e4%60),o=Math.floor(t/36e5%24);return o=o>0?o+":":"",r=r<10?"0"+r:r,t&&"("+o+n+":"+r+")"}var a=(null==f||null===(e=f.kWidget)||void 0===e?void 0:e.seconds2Measurements(t))||{},i=(null==a?void 0:a.hours)||0,s=(null==a?void 0:a.minutes)||0,c=(null==a?void 0:a.seconds)||0;return s=(i>0?"0"+s:s).toString().slice(-2),(i=i>0?i+":":"")+s+":"+(c=("0"+c).slice(-2))}},{key:"getMediaDurationFormatted",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=t;(arguments.length>1?arguments[1]:void 0)||(r=1e3*t);var n=Math.floor(r/1e3%60),o=Math.floor(r/6e4%60),a=Math.floor(r/36e5%24),i=e.formatTime(n,"second"),s=a||o?e.formatTime(o,"minute"):"",c=a?e.formatTime(a,"hour"):"";return"".concat(c," ").concat(s," ").concat(i).trim()}},{key:"formatTime",value:function(e,t){var r=f.document.documentElement.lang||f.navigator.language;return new Intl.NumberFormat(r,{style:"unit",unitDisplay:"long",unit:t}).format(e)}}]);var t,r}();e.AnalyticsAPI=h,e.CloudAccountAuthAPI=dr,e.DDOAPI=mr,e.KalturaPlayerAPI=yn,e.LocaleAPI=Mr,e.MarketingSearchAPI=Hr,e.MastheadLogo=Jr,e.ProfileAPI=Vr,e.SearchTypeaheadAPI=Yr,e.TranslationAPI=on,e.globalInit=function(){Ur||(Ur=!0,mr.setVersion().catch((function(e){console.error("Error setting the version of the library in the DDO:",e)})),Mr.getLang().then((function(e){wr(e.lc)})),h.initAll())},Object.defineProperty(e,"__esModule",{value:!0})}));
|