@basis-theory/basis-theory-js 1.0.0 → 1.2.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.
Files changed (54) hide show
  1. package/BasisTheory.d.ts +10 -11
  2. package/BasisTheory.js +66 -35
  3. package/LICENSE +1 -1
  4. package/README.md +18 -1
  5. package/applications/BasisTheoryApplications.d.ts +2 -2
  6. package/applications/BasisTheoryApplications.js +1 -1
  7. package/applications/types.d.ts +7 -6
  8. package/atomic/BasisTheoryAtomic.js +4 -4
  9. package/atomic/banks/BasisTheoryAtomicBanks.d.ts +2 -2
  10. package/atomic/banks/BasisTheoryAtomicBanks.js +16 -16
  11. package/atomic/banks/types.d.ts +4 -3
  12. package/atomic/cards/BasisTheoryAtomicCards.d.ts +2 -2
  13. package/atomic/cards/BasisTheoryAtomicCards.js +18 -18
  14. package/atomic/cards/types.d.ts +6 -5
  15. package/atomic/types.d.ts +4 -2
  16. package/common/constants.d.ts +7 -4
  17. package/common/constants.js +19 -55
  18. package/common/elements.js +0 -1
  19. package/common/script.d.ts +3 -2
  20. package/common/script.js +2 -4
  21. package/common/utils.d.ts +17 -14
  22. package/common/utils.js +51 -22
  23. package/elements/index.d.ts +4 -4
  24. package/encryption/BasisTheoryEncryption.d.ts +1 -2
  25. package/encryption/BasisTheoryEncryption.js +5 -4
  26. package/encryption/BasisTheoryEncryptionAdapters.js +6 -4
  27. package/encryption/providers/browser.js +23 -32
  28. package/encryption/providers/node.js +11 -13
  29. package/encryption/providers/utils.d.ts +3 -2
  30. package/encryption/providers/utils.js +8 -7
  31. package/encryption/types.d.ts +3 -2
  32. package/index.d.ts +5 -3
  33. package/index.js +10 -7
  34. package/logs/BasisTheoryLogs.d.ts +1 -1
  35. package/logs/types.d.ts +3 -2
  36. package/package.json +6 -13
  37. package/permissions/BasisTheoryPermissions.js +1 -1
  38. package/permissions/types.d.ts +5 -3
  39. package/reactor-formulas/BasisTheoryReactorFormulas.d.ts +1 -1
  40. package/reactor-formulas/types.d.ts +8 -7
  41. package/reactors/BasisTheoryReactors.js +9 -7
  42. package/reactors/types.d.ts +6 -5
  43. package/service/BasisTheoryService.js +9 -3
  44. package/service/CrudBuilder.d.ts +10 -10
  45. package/service/CrudBuilder.js +15 -4
  46. package/service/types.d.ts +6 -5
  47. package/tenants/BasisTheoryTenants.d.ts +2 -2
  48. package/tenants/BasisTheoryTenants.js +2 -2
  49. package/tenants/types.d.ts +3 -2
  50. package/tokens/BasisTheoryTokens.d.ts +5 -5
  51. package/tokens/BasisTheoryTokens.js +16 -15
  52. package/tokens/types.d.ts +14 -12
  53. package/types.d.ts +14 -15
  54. package/basis-theory-js.bundle.js +0 -1
@@ -1 +0,0 @@
1
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.BasisTheory=e():t.BasisTheory=e()}("undefined"!=typeof self?self:this,(function(){return(()=>{var t={892:(t,e,r)=>{"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){return!e||"object"!==n(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function i(t){var e="function"==typeof Map?new Map:void 0;return(i=function(t){if(null===t||(r=t,-1===Function.toString.call(r).indexOf("[native code]")))return t;var r;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return c(t,arguments,s(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),u(n,t)})(t)}function c(t,e,r){return(c=a()?Reflect.construct:function(t,e,r){var n=[null];n.push.apply(n,e);var o=new(Function.bind.apply(t,n));return r&&u(o,r.prototype),o}).apply(null,arguments)}function a(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}r.d(e,{l:()=>f});var f=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}(i,t);var e,r,n=(e=i,r=a(),function(){var t,n=s(e);if(r){var i=s(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return o(this,t)});function i(t,e,r){var o;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(o=n.call(this,t)).status=e,o.data=r,o.name="BasisTheoryApiError",o.status=e,o.data=r,o}return i}(i(Error))},688:(t,e,r)=>{"use strict";r.d(e,{AU:()=>n,Yg:()=>o,tm:()=>i});var n={tokens:{production:"https://".concat("api.basistheory.com","/tokens"),sandbox:"https://".concat("api-dev.basistheory.com","/tokens"),local:"http://".concat("localhost:3333","/tokens")},atomic:{production:"https://".concat("api.basistheory.com","/atomic"),sandbox:"https://".concat("api-dev.basistheory.com","/atomic"),local:"http://".concat("localhost:3333","/atomic")},applications:{production:"https://".concat("api.basistheory.com","/applications"),sandbox:"https://".concat("api-dev.basistheory.com","/applications"),local:"http://".concat("localhost:3333","/applications")},tenants:{production:"https://".concat("api.basistheory.com","/tenants/self"),sandbox:"https://".concat("api-dev.basistheory.com","/tenants/self"),local:"http://".concat("localhost:3333","/tenants/self")},logs:{production:"https://".concat("api.basistheory.com","/logs"),sandbox:"https://".concat("api-dev.basistheory.com","/logs"),local:"http://".concat("localhost:3333","/logs")},reactorFormulas:{production:"https://".concat("api.basistheory.com","/reactor-formulas"),sandbox:"https://".concat("api-dev.basistheory.com","/reactor-formulas"),local:"http://".concat("localhost:3333","/reactor-formulas")},reactors:{production:"https://".concat("api.basistheory.com","/reactors"),sandbox:"https://".concat("api-dev.basistheory.com","/reactors"),local:"http://".concat("localhost:3333","/reactors")},atomicBanks:{production:"https://".concat("api.basistheory.com","/atomic/banks"),sandbox:"https://".concat("api-dev.basistheory.com","/atomic/banks"),local:"http://".concat("localhost:3333","/atomic/banks")},atomicCards:{production:"https://".concat("api.basistheory.com","/atomic/cards"),sandbox:"https://".concat("api-dev.basistheory.com","/atomic/cards"),local:"http://".concat("localhost:3333","/atomic/cards")},permissions:{production:"https://".concat("api.basistheory.com","/permissions"),sandbox:"https://".concat("api-dev.basistheory.com","/permissions"),local:"http://".concat("localhost:3333","/permissions")}},o="X-API-KEY",i="bt-trace-id"},95:(t,e,r)=>{"use strict";r.d(e,{Yg:()=>o.Yg,AU:()=>o.AU,eg:()=>i.eg,hY:()=>i.hY,G5:()=>i.G5,ud:()=>i.ud,vl:()=>i.vl,dY:()=>a,qj:()=>i.qj,oQ:()=>i.oQ,sZ:()=>i.sZ,pV:()=>i.pV,NV:()=>i.NV,G0:()=>i.G0});var n,o=r(688),i=r(232);function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var a=function(){return n||(n=new Promise((function(t,e){if("object"===("undefined"==typeof window?"undefined":c(window)))if(window.BasisTheoryElements)t(window.BasisTheoryElements);else try{var r="https://".concat("js.basistheory.com","/elements"),n=function(t){return document.querySelector('script[src^="'.concat(t,'"]'))}(r);n||(n=function(t){var e=document.createElement("script");e.src=t;var r=document.head||document.body;if(!r)throw new Error("No <head> or <body> elements found in document.");return r.appendChild(e),e}(r)),n.addEventListener("load",(function(){window.BasisTheoryElements?t(window.BasisTheoryElements):e(new Error("BasisTheoryElements did not load properly."))})),n.addEventListener("error",(function(t){e((null==t?void 0:t.error)||new Error("There was an unknown error when loading BasisTheoryElements"))}))}catch(t){return void e(t)}else e(new Error("Tried to load BasisTheoryElements in a non-DOM environment."))}))),n};r(892)},232:(t,e,r)=>{"use strict";r.d(e,{eg:()=>b,hY:()=>k,G5:()=>E,ud:()=>A,vl:()=>C,qj:()=>j,oQ:()=>O,sZ:()=>P,Ox:()=>w,YG:()=>S,pV:()=>g,NV:()=>_,WP:()=>x,G0:()=>R});var n=r(79),o=r.n(n),i=r(585),c=r.n(i),a=function(){return(a=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function u(t){return t.toLowerCase()}Object.create,Object.create;var s=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],f=/[^A-Z0-9]+/gi;function p(t,e,r){return e instanceof RegExp?t.replace(e,r):e.reduce((function(t,e){return t.replace(e,r)}),t)}var l=r(688),h=r(892);function y(t){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function d(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function m(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?d(Object(r),!0).forEach((function(e){v(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function v(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var b=function(t){if(null==t)throw new Error("BasisTheory has not yet been properly initialized.");return t},g=function(t){if(void 0!==t)return c()(t,{deep:!0})},w=function(t){if(void 0!==t)return m(m({},c()(t,{deep:!0})),void 0!==t.configuration?{configuration:t.configuration}:{})},O=function(t){if(void 0!==t)return m(m({},c()(t,{deep:!0})),void 0!==t.metadata?{metadata:t.metadata}:{})},x=function(t){if(void 0!==t)return m(m(m({},c()(t,{deep:!0})),void 0!==t.data?{data:t.data}:{}),void 0!==t.metadata?{metadata:t.metadata}:{})},j=function(t){if(void 0!==t)return m(m(m({},c()(t,{deep:!0})),void 0!==t.requestParameters?{request_parameters:t.requestParameters}:{}),void 0!==t.metadata?{metadata:t.metadata}:{})},R=function(t){if(void 0!==t)return m(m(m({},o()(t,{deep:!0})),void 0!==t.data?{data:t.data}:{}),void 0!==t.metadata?{metadata:t.metadata}:{})},S=function(t){if(void 0!==t)return m(m({},o()(t,{deep:!0})),void 0!==t.configuration?{configuration:t.configuration}:{})},_=function(t){if(void 0!==t)return o()(t,{deep:!0})},P=function(t){if(void 0!==t)return m(m({},o()(t,{deep:!0})),void 0!==t.metadata?{metadata:t.metadata}:{})},E=function(t){return null==t?void 0:t.data},k=function(t){if(t){var e=t.apiKey,r=t.correlationId,n=e?v({},l.Yg,e):{},o=r?v({},l.tm,r):{};return{headers:m(m({},n),o)}}},A=function(t){var e,r,n=(null===(e=t.response)||void 0===e?void 0:e.status)||-1,o=null===(r=t.response)||void 0===r?void 0:r.data;throw new h.l(t.message,n,o)};function C(t){var e=Object.keys(t);if(e.length>0){var r=new URLSearchParams,n=function(t,e){var n,o=y(e);(null===e||["boolean","number","string"].includes(o))&&r.append((void 0===n&&(n={}),function(t,e){return void 0===e&&(e={}),function(t,e){void 0===e&&(e={});for(var r=e.splitRegexp,n=void 0===r?s:r,o=e.stripRegexp,i=void 0===o?f:o,c=e.transform,a=void 0===c?u:c,l=e.delimiter,h=void 0===l?" ":l,y=p(p(t,n,"$1\0$2"),i,"\0"),d=0,m=y.length;"\0"===y.charAt(d);)d++;for(;"\0"===y.charAt(m-1);)m--;return y.slice(d,m).split("\0").map(a).join(h)}(t,a({delimiter:"."},e))}(t,a({delimiter:"_"},n))),e)};return e.forEach((function(e){var r=t[e];Array.isArray(r)?r.forEach((function(t){n(String(e),t)})):n(String(e),r)})),"?".concat(r.toString())}return""}},644:(t,e,r)=>{"use strict";r.d(e,{default:()=>Ne}),r(248);var n=r(95),o=r(555);function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e,r,n,o,i,c){try{var a=t[i](c),u=a.value}catch(t){return void r(t)}a.done?e(u):Promise.resolve(u).then(n,o)}function a(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){c(i,n,o,a,u,"next",t)}function u(t){c(i,n,o,a,u,"throw",t)}a(void 0)}))}}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function p(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var h=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}(d,t);var e,r,o,i,c,h,y=(c=d,h=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=l(c);if(h){var r=l(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return p(this,t)});function d(){return u(this,d),y.apply(this,arguments)}return e=d,(r=[{key:"storeCreditCard",value:(i=a(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.client.post("/cards",e).then(n.G5));case 1:case"end":return t.stop()}}),t,this)}))),function(t){return i.apply(this,arguments)})},{key:"storeBank",value:(o=a(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.client.post("/banks",e).then(n.G5));case 1:case"end":return t.stop()}}),t,this)}))),function(t){return o.apply(this,arguments)})}])&&s(e.prototype,r),d}(o.BasisTheoryService);function y(t){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function d(t,e,r,n,o,i,c){try{var a=t[i](c),u=a.value}catch(t){return void r(t)}a.done?e(u):Promise.resolve(u).then(n,o)}function m(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function b(t,e,r){return e&&v(t.prototype,e),r&&v(t,r),t}function g(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&w(t,e)}function w(t,e){return(w=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function O(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=j(t);if(e){var o=j(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return x(this,r)}}function x(t,e){return!e||"object"!==y(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function j(t){return(j=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var R=function(){function t(e){m(this,t),this.BaseService=e}return b(t,[{key:"create",value:function(){return this.BaseService=function(t){g(r,t);var e=O(r);function r(){return m(this,r),e.apply(this,arguments)}return b(r,[{key:"create",value:function(t,e){return this.client.post("/",t,(0,n.hY)(e)).then(n.G5)}}]),r}(this.BaseService),this}},{key:"retrieve",value:function(){return this.BaseService=function(t){g(r,t);var e=O(r);function r(){return m(this,r),e.apply(this,arguments)}return b(r,[{key:"retrieve",value:function(t,e){return this.client.get(t,(0,n.hY)(e)).then(n.G5)}}]),r}(this.BaseService),this}},{key:"update",value:function(){return this.BaseService=function(t){g(r,t);var e=O(r);function r(){return m(this,r),e.apply(this,arguments)}return b(r,[{key:"update",value:function(t,e,r){return this.client.put(t,e,(0,n.hY)(r)).then(n.G5)}}]),r}(this.BaseService),this}},{key:"delete",value:function(){return this.BaseService=function(t){g(i,t);var e,r,o=O(i);function i(){return m(this,i),o.apply(this,arguments)}return b(i,[{key:"delete",value:(e=regeneratorRuntime.mark((function t(e,r){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.client.delete(e,(0,n.hY)(r));case 2:case"end":return t.stop()}}),t,this)})),r=function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function c(t){d(i,n,o,c,a,"next",t)}function a(t){d(i,n,o,c,a,"throw",t)}c(void 0)}))},function(t,e){return r.apply(this,arguments)})}]),i}(this.BaseService),this}},{key:"list",value:function(){return this.BaseService=function(t){g(r,t);var e=O(r);function r(){return m(this,r),e.apply(this,arguments)}return b(r,[{key:"list",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,r="/".concat((0,n.vl)(t));return this.client.get(r,(0,n.hY)(e)).then(n.G5)}}]),r}(this.BaseService),this}},{key:"build",value:function(){return this.BaseService}}]),t}();function S(t){return(S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _(t,e,r,n,o,i,c){try{var a=t[i](c),u=a.value}catch(t){return void r(t)}a.done?e(u):Promise.resolve(u).then(n,o)}function P(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function E(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function k(t,e){return(k=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function A(t,e){return!e||"object"!==S(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function C(t){return(C=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var T=new R(function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&k(t,e)}(s,t);var e,r,o,i,c,a,u=(c=s,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=C(c);if(a){var r=C(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return A(this,t)});function s(){return P(this,s),u.apply(this,arguments)}return e=s,(r=[{key:"getApplicationByKey",value:(o=regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.retrieveByKey());case 1:case"end":return t.stop()}}),t,this)})),i=function(){var t=this,e=arguments;return new Promise((function(r,n){var i=o.apply(t,e);function c(t){_(i,r,n,c,a,"next",t)}function a(t){_(i,r,n,c,a,"throw",t)}c(void 0)}))},function(){return i.apply(this,arguments)})},{key:"retrieveByKey",value:function(t){return this.client.get("/key",(0,n.hY)(t)).then(n.G5)}},{key:"regenerateKey",value:function(t,e){return this.client.post("".concat(t,"/regenerate"),void 0,(0,n.hY)(e)).then(n.G5)}}])&&E(e.prototype,r),s}(o.BasisTheoryService)).create().retrieve().update().delete().list().build(),B=r(232);function D(t){return(D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function L(t,e,r,n,o,i,c){try{var a=t[i](c),u=a.value}catch(t){return void r(t)}a.done?e(u):Promise.resolve(u).then(n,o)}function U(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function c(t){L(i,n,o,c,a,"next",t)}function a(t){L(i,n,o,c,a,"throw",t)}c(void 0)}))}}function N(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function G(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function K(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Y(t,e){return(Y=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function q(t,e){return!e||"object"!==D(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function z(t){return(z=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var F,I,$=new R(function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Y(t,e)}(v,t);var e,r,o,i,c,a,u,s,f,p,l,h,y,d,m=(y=v,d=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=z(y);if(d){var r=z(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return q(this,t)});function v(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,v),m.call(this,function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?N(Object(r),!0).forEach((function(e){G(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):N(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({transformResponse:B.G0,transformRequest:B.WP},t))}return e=v,(r=[{key:"createToken",value:(h=U(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.client.post("/",{data:e}).then(B.G5));case 1:case"end":return t.stop()}}),t,this)}))),function(t){return h.apply(this,arguments)})},{key:"getToken",value:(l=U(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.client.get(e).then(B.G5));case 1:case"end":return t.stop()}}),t,this)}))),function(t){return l.apply(this,arguments)})},{key:"deleteToken",value:(p=U(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.client.delete(e);case 2:case"end":return t.stop()}}),t,this)}))),function(t){return p.apply(this,arguments)})},{key:"retrieve",value:(f=U(regeneratorRuntime.mark((function t(e){var r,o,i,c=arguments;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=c.length>1&&void 0!==c[1]?c[1]:{},o=c.length>2?c[2]:void 0,i="/".concat(e).concat((0,n.vl)(r)),t.abrupt("return",this.client.get(i,(0,n.hY)(o)).then(B.G5));case 4:case"end":return t.stop()}}),t,this)}))),function(t){return f.apply(this,arguments)})},{key:"retrieveDecrypted",value:(s=U(regeneratorRuntime.mark((function t(e){var r,o,i,c=arguments;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=c.length>1&&void 0!==c[1]?c[1]:{},o=c.length>2?c[2]:void 0,i="/".concat(e,"/decrypt").concat((0,n.vl)(r)),t.abrupt("return",this.client.get(i,(0,n.hY)(o)).then(B.G5));case 4:case"end":return t.stop()}}),t,this)}))),function(t){return s.apply(this,arguments)})},{key:"listDecrypted",value:(u=U(regeneratorRuntime.mark((function t(){var e,r,o,i=arguments;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=i.length>0&&void 0!==i[0]?i[0]:{},r=i.length>1?i[1]:void 0,o="/decrypt".concat((0,n.vl)(e)),t.abrupt("return",this.client.get(o,(0,n.hY)(r)).then(B.G5));case 4:case"end":return t.stop()}}),t,this)}))),function(){return u.apply(this,arguments)})},{key:"createAssociation",value:(a=U(regeneratorRuntime.mark((function t(e,r,o){var i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i="/".concat(e,"/children/").concat(r),t.next=3,this.client.post(i,{},(0,n.hY)(o));case 3:case"end":return t.stop()}}),t,this)}))),function(t,e,r){return a.apply(this,arguments)})},{key:"deleteAssociation",value:(c=U(regeneratorRuntime.mark((function t(e,r,o){var i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i="/".concat(e,"/children/").concat(r),t.next=3,this.client.delete(i,(0,n.hY)(o));case 3:case"end":return t.stop()}}),t,this)}))),function(t,e,r){return c.apply(this,arguments)})},{key:"createChild",value:(i=U(regeneratorRuntime.mark((function t(e,r,o){var i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i="/".concat(e,"/children"),t.abrupt("return",this.client.post(i,r,(0,n.hY)(o)).then(B.G5));case 2:case"end":return t.stop()}}),t,this)}))),function(t,e,r){return i.apply(this,arguments)})},{key:"listChildren",value:(o=U(regeneratorRuntime.mark((function t(e){var r,o,i,c=arguments;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=c.length>1&&void 0!==c[1]?c[1]:{},o=c.length>2?c[2]:void 0,i="/".concat(e,"/children").concat((0,n.vl)(r)),t.abrupt("return",this.client.get(i,(0,n.hY)(o)).then(B.G5));case 4:case"end":return t.stop()}}),t,this)}))),function(t){return o.apply(this,arguments)})}])&&K(e.prototype,r),v}(o.BasisTheoryService)).create().delete().list().build();function M(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function V(t){return window.btoa(String.fromCharCode.apply(String,function(t){if(Array.isArray(t))return M(t)}(e=new Uint8Array(t))||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(e)||function(t,e){if(t){if("string"==typeof t)return M(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?M(t,e):void 0}}(e)||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.")}()));var e}function Z(t){for(var e=window.atob(t),r=e.length,n=new Uint8Array(r),o=0;o<r;o++)n[o]=e.charCodeAt(o);return n.buffer}function H(t,e,r,n,o,i,c){try{var a=t[i](c),u=a.value}catch(t){return void r(t)}a.done?e(u):Promise.resolve(u).then(n,o)}function W(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function c(t){H(i,n,o,c,a,"next",t)}function a(t){H(i,n,o,c,a,"throw",t)}c(void 0)}))}}function X(t,e){for(var r=V(t),n="-----BEGIN ".concat(e," KEY-----\r\n"),o=0;o<r.length;)o+64<=r.length?n+="".concat(r.substr(o,64),"\r\n"):n+="".concat(r.substr(o),"\r\n"),o+=64;return n+"-----END ".concat(e," KEY-----\r\n")}function Q(t,e){for(var r=t.split("\n"),n="",o=0;o<r.length;o++)r[o].trim().length>0&&r[o].indexOf("-BEGIN ".concat(e," KEY-"))<0&&r[o].indexOf("-END ".concat(e," KEY-"))<0&&(n+=r[o].trim());return Z(n)}function J(){return(J=W(regeneratorRuntime.mark((function t(){var e,r,n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,window.crypto.subtle.generateKey(F,!0,["encrypt","decrypt"]);case 2:return e=t.sent,t.next=5,window.crypto.subtle.exportKey("spki",e.publicKey);case 5:return r=t.sent,t.next=8,window.crypto.subtle.exportKey("pkcs8",e.privateKey);case 8:return n=t.sent,t.abrupt("return",{publicKey:X(r,"PUBLIC"),privateKey:X(n,"PRIVATE")});case 10:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var tt={RSA:function(){return J.apply(this,arguments)},AES:function(){return Promise.reject()}};function et(){return(et=W(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",tt[I]());case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function rt(t){return nt.apply(this,arguments)}function nt(){return(nt=W(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,window.crypto.subtle.importKey("spki",Q(e,"PUBLIC"),F,!0,["encrypt"]);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function ot(t){return it.apply(this,arguments)}function it(){return(it=W(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",window.crypto.subtle.importKey("pkcs8",Q(e,"PRIVATE"),F,!0,["decrypt"]));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function ct(){return(ct=W(regeneratorRuntime.mark((function t(e,r){var n,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,rt(e);case 2:return n=t.sent,t.next=5,window.crypto.subtle.encrypt({name:F.name},n,(new TextEncoder).encode(r).buffer);case 5:return o=t.sent,t.abrupt("return",V(o));case 7:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function at(){return(at=W(regeneratorRuntime.mark((function t(e,r){var n,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,ot(e);case 2:return n=t.sent,t.next=5,window.crypto.subtle.decrypt({name:F.name},n,Z(r));case 5:return o=t.sent,t.abrupt("return",(new TextDecoder).decode(o));case 7:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var ut,st,ft={name:"browser",generateKeys:function(){return et.apply(this,arguments)},init:function(t){var e,r,n;F={name:"RSA-OAEP",modulusLength:null!==(e=null==t||null===(r=t.options)||void 0===r?void 0:r.defaultKeySize)&&void 0!==e?e:4096,publicExponent:new Uint8Array([1,0,1]),hash:"SHA-256"},I=null!==(n=null==t?void 0:t.algorithm)&&void 0!==n?n:"RSA"},encrypt:function(t,e){return ct.apply(this,arguments)},decrypt:function(t,e){return at.apply(this,arguments)}},pt=r(906);function lt(t,e,r,n,o,i,c){try{var a=t[i](c),u=a.value}catch(t){return void r(t)}a.done?e(u):Promise.resolve(u).then(n,o)}function ht(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function c(t){lt(i,n,o,c,a,"next",t)}function a(t){lt(i,n,o,c,a,"throw",t)}c(void 0)}))}}var yt={RSA:function(){var t=(0,pt.generateKeyPairSync)("rsa",{modulusLength:ut,publicKeyEncoding:{type:"spki",format:"pem"},privateKeyEncoding:{type:"pkcs8",format:"pem"}}),e=t.publicKey,r=t.privateKey;return Promise.resolve({publicKey:e,privateKey:r})},AES:function(){return Promise.reject()}};function dt(){return(dt=ht(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",yt[st]());case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function mt(){return(mt=ht(regeneratorRuntime.mark((function t(e,r){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=(0,pt.publicEncrypt)({key:e,padding:pt.constants.RSA_PKCS1_OAEP_PADDING,oaepHash:"sha256"},Buffer.from(r)),t.abrupt("return",n.toString("base64"));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function vt(){return(vt=ht(regeneratorRuntime.mark((function t(e,r){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=(0,pt.privateDecrypt)({key:e,padding:pt.constants.RSA_PKCS1_OAEP_PADDING,oaepHash:"sha256"},Buffer.from(r,"base64")),t.abrupt("return",n.toString());case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var bt={name:"node",generateKeys:function(){return dt.apply(this,arguments)},init:function(t){var e,r,n;ut=null!==(e=null==t||null===(r=t.options)||void 0===r?void 0:r.defaultKeySize)&&void 0!==e?e:4096,st=null!==(n=null==t?void 0:t.algorithm)&&void 0!==n?n:"RSA"},encrypt:function(t,e){return mt.apply(this,arguments)},decrypt:function(t,e){return vt.apply(this,arguments)}};function gt(t,e,r,n,o,i,c){try{var a=t[i](c),u=a.value}catch(t){return void r(t)}a.done?e(u):Promise.resolve(u).then(n,o)}function wt(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function c(t){gt(i,n,o,c,a,"next",t)}function a(t){gt(i,n,o,c,a,"throw",t)}c(void 0)}))}}function Ot(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var xt=function(){function t(e){var r,n;switch(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),n=void 0,(r="adapter")in this?Object.defineProperty(this,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):this[r]=n,e){case"BROWSER":this.adapter=ft;break;case"NODE":this.adapter=bt;break;default:throw new Error('No adapter found for provider name "'.concat(e,'"'))}}var e,r;return e=t,(r=[{key:"init",value:function(t){return this.adapter.init(t)}},{key:"name",get:function(){return this.adapter.name}},{key:"generateKeys",value:function(){var t=wt(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.adapter.generateKeys());case 1:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"encrypt",value:function(){var t=wt(regeneratorRuntime.mark((function t(e,r){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.adapter.encrypt(e,r));case 1:case"end":return t.stop()}}),t,this)})));return function(e,r){return t.apply(this,arguments)}}()},{key:"decrypt",value:function(){var t=wt(regeneratorRuntime.mark((function t(e,r){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.adapter.decrypt(e,r));case 1:case"end":return t.stop()}}),t,this)})));return function(e,r){return t.apply(this,arguments)}}()}])&&Ot(e.prototype,r),t}();function jt(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Rt(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var St=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),Rt(this,"_nodeEncryption",void 0),Rt(this,"_browserEncryption",void 0),"undefined"==typeof window?this._nodeEncryption=new xt("NODE"):this._browserEncryption=new xt("BROWSER")}var e,r;return e=t,(r=[{key:"browserEncryption",get:function(){return(0,n.eg)(this._browserEncryption)}},{key:"nodeEncryption",get:function(){return(0,n.eg)(this._nodeEncryption)}}])&&jt(e.prototype,r),t}();function _t(t){return(_t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Pt(t,e,r,n,o,i,c){try{var a=t[i](c),u=a.value}catch(t){return void r(t)}a.done?e(u):Promise.resolve(u).then(n,o)}function Et(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function c(t){Pt(i,n,o,c,a,"next",t)}function a(t){Pt(i,n,o,c,a,"throw",t)}c(void 0)}))}}function kt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function At(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Ct(t,e){return(Ct=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Tt(t,e){return!e||"object"!==_t(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Bt(t){return(Bt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Dt=new R(function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ct(t,e)}(f,t);var e,r,o,i,c,a,u,s=(a=f,u=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Bt(a);if(u){var r=Bt(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return Tt(this,t)});function f(){return kt(this,f),s.apply(this,arguments)}return e=f,(r=[{key:"retrieve",value:(c=Et(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.client.get("/",(0,n.hY)(e)).then(n.G5));case 1:case"end":return t.stop()}}),t,this)}))),function(t){return c.apply(this,arguments)})},{key:"update",value:(i=Et(regeneratorRuntime.mark((function t(e,r){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.client.put("/",e,(0,n.hY)(r)).then(n.G5));case 1:case"end":return t.stop()}}),t,this)}))),function(t,e){return i.apply(this,arguments)})},{key:"delete",value:(o=Et(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.client.delete("/",(0,n.hY)(e));case 2:case"end":return t.stop()}}),t,this)}))),function(t){return o.apply(this,arguments)})}])&&At(e.prototype,r),f}(o.BasisTheoryService)).build();function Lt(t){return(Lt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ut(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Nt(t,e){return(Nt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Gt(t,e){return!e||"object"!==Lt(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Kt(t){return(Kt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Yt=new R(function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Nt(t,e)}(o,t);var e,r,n=(e=o,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,n=Kt(e);if(r){var o=Kt(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return Gt(this,t)});function o(){return Ut(this,o),n.apply(this,arguments)}return o}(o.BasisTheoryService)).list().build();function qt(t){return(qt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function zt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ft(t,e){return(Ft=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function It(t,e){return!e||"object"!==qt(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function $t(t){return($t=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Mt=new R(function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ft(t,e)}(o,t);var e,r,n=(e=o,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,n=$t(e);if(r){var o=$t(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return It(this,t)});function o(){return zt(this,o),n.apply(this,arguments)}return o}(o.BasisTheoryService)).create().retrieve().update().delete().list().build();function Vt(t){return(Vt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Zt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ht(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Wt(t,e){return(Wt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Xt(t,e){return!e||"object"!==Vt(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Qt(t){return(Qt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Jt=new R(function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Wt(t,e)}(o,t);var e,r,n=(e=o,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,n=Qt(e);if(r){var o=Qt(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return Xt(this,t)});function o(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),n.call(this,function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Zt(Object(r),!0).forEach((function(e){Ht(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Zt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({transformResponse:B.YG,transformRequest:B.Ox},t))}return o}(o.BasisTheoryService)).create().retrieve().update().delete().list().build();function te(t){return(te="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ee(t,e,r,n,o,i,c){try{var a=t[i](c),u=a.value}catch(t){return void r(t)}a.done?e(u):Promise.resolve(u).then(n,o)}function re(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function c(t){ee(i,n,o,c,a,"next",t)}function a(t){ee(i,n,o,c,a,"throw",t)}c(void 0)}))}}function ne(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function oe(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ne(Object(r),!0).forEach((function(e){ie(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ne(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function ie(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ce(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function ae(t,e){return(ae=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ue(t,e){return!e||"object"!==te(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function se(t){return(se=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var fe=new R(function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ae(t,e)}(f,t);var e,r,o,i,c,a,u,s=(a=f,u=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=se(a);if(u){var r=se(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return ue(this,t)});function f(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,f),s.call(this,oe({transformRequest:n.oQ,transformResponse:n.sZ},t))}return e=f,(r=[{key:"retrieveDecrypted",value:(c=re(regeneratorRuntime.mark((function t(e,r){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.client.get("/".concat(e,"/decrypt"),(0,n.hY)(r)).then(n.G5));case 1:case"end":return t.stop()}}),t,this)}))),function(t,e){return c.apply(this,arguments)})},{key:"react",value:(i=re(regeneratorRuntime.mark((function t(e,r,o){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.client.post("/".concat(e,"/react"),r,oe({transformRequest:n.qj,transformResponse:n.G0},(0,n.hY)(o))).then(n.G5));case 1:case"end":return t.stop()}}),t,this)}))),function(t,e,r){return i.apply(this,arguments)})},{key:"retrieveReaction",value:(o=re(regeneratorRuntime.mark((function t(e,r,o){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.client.get("/".concat(e,"/reaction/").concat(r),oe({transformResponse:n.G0},(0,n.hY)(o))).then(n.G5));case 1:case"end":return t.stop()}}),t,this)}))),function(t,e,r){return o.apply(this,arguments)})}])&&ce(e.prototype,r),f}(o.BasisTheoryService)).create().retrieve().delete().list().build();function pe(t){return(pe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function le(t,e,r,n,o,i,c){try{var a=t[i](c),u=a.value}catch(t){return void r(t)}a.done?e(u):Promise.resolve(u).then(n,o)}function he(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function c(t){le(i,n,o,c,a,"next",t)}function a(t){le(i,n,o,c,a,"throw",t)}c(void 0)}))}}function ye(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function de(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ye(Object(r),!0).forEach((function(e){me(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ye(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function me(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ve(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function be(t,e){return(be=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ge(t,e){return!e||"object"!==pe(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function we(t){return(we=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Oe=new R(function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&be(t,e)}(f,t);var e,r,o,i,c,a,u,s=(a=f,u=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=we(a);if(u){var r=we(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return ge(this,t)});function f(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,f),s.call(this,de({transformRequest:B.oQ,transformResponse:B.sZ},t))}return e=f,(r=[{key:"retrieveDecrypted",value:(c=he(regeneratorRuntime.mark((function t(e,r){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.client.get("/".concat(e,"/decrypt"),(0,n.hY)(r)).then(n.G5));case 1:case"end":return t.stop()}}),t,this)}))),function(t,e){return c.apply(this,arguments)})},{key:"react",value:(i=he(regeneratorRuntime.mark((function t(e,r,o){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.client.post("/".concat(e,"/react"),r,de({transformRequest:n.qj,transformResponse:n.G0},(0,n.hY)(o))).then(n.G5));case 1:case"end":return t.stop()}}),t,this)}))),function(t,e,r){return i.apply(this,arguments)})},{key:"retrieveReaction",value:(o=he(regeneratorRuntime.mark((function t(e,r,o){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.client.get("/".concat(e,"/reaction/").concat(r),de({transformResponse:n.G0},(0,n.hY)(o))).then(n.G5));case 1:case"end":return t.stop()}}),t,this)}))),function(t,e,r){return o.apply(this,arguments)})}])&&ve(e.prototype,r),f}(o.BasisTheoryService)).create().retrieve().delete().list().build();function xe(t){return(xe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function je(t,e,r,n,o,i,c){try{var a=t[i](c),u=a.value}catch(t){return void r(t)}a.done?e(u):Promise.resolve(u).then(n,o)}function Re(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Se(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function _e(t,e){return(_e=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Pe(t,e){return!e||"object"!==xe(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Ee(t){return(Ee=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var ke=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_e(t,e)}(s,t);var e,r,o,i,c,a,u=(c=s,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Ee(c);if(a){var r=Ee(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return Pe(this,t)});function s(){return Re(this,s),u.apply(this,arguments)}return e=s,(r=[{key:"list",value:(o=regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.client.get("/",(0,n.hY)(e)).then(n.G5));case 1:case"end":return t.stop()}}),t,this)})),i=function(){var t=this,e=arguments;return new Promise((function(r,n){var i=o.apply(t,e);function c(t){je(i,r,n,c,a,"next",t)}function a(t){je(i,r,n,c,a,"throw",t)}c(void 0)}))},function(t){return i.apply(this,arguments)})}])&&Se(e.prototype,r),s}(o.BasisTheoryService);function Ae(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ce(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ae(Object(r),!0).forEach((function(e){Le(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ae(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Te(t,e,r,n,o,i,c){try{var a=t[i](c),u=a.value}catch(t){return void r(t)}a.done?e(u):Promise.resolve(u).then(n,o)}function Be(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function c(t){Te(i,n,o,c,a,"next",t)}function a(t){Te(i,n,o,c,a,"throw",t)}c(void 0)}))}}function De(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Le(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Ue={environment:"production",elements:!1};const Ne=new(function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),Le(this,"_initStatus","not-started"),Le(this,"_initOptions",void 0),Le(this,"_tokens",void 0),Le(this,"_atomic",void 0),Le(this,"_encryption",void 0),Le(this,"_elements",void 0),Le(this,"_applications",void 0),Le(this,"_tenants",void 0),Le(this,"_logs",void 0),Le(this,"_reactorFormulas",void 0),Le(this,"_reactors",void 0),Le(this,"_atomicBanks",void 0),Le(this,"_atomicCards",void 0),Le(this,"_permissions",void 0)}var e,r,o,i;return e=t,(r=[{key:"init",value:(i=Be(regeneratorRuntime.mark((function t(e){var r,o=arguments;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=o.length>1&&void 0!==o[1]?o[1]:{},"not-started"===this._initStatus||"error"===this._initStatus){t.next=3;break}throw new Error("This BasisTheory instance has been already initialized.");case 3:if(this._initStatus="in-progress",t.prev=4,this._initOptions=Object.freeze(Ce(Ce({},Ue),r)),this._tokens=new $({apiKey:e,baseURL:n.AU.tokens[this._initOptions.environment]}),this._atomic=new h({apiKey:e,baseURL:n.AU.atomic[this._initOptions.environment]}),this._applications=new T({apiKey:e,baseURL:n.AU.applications[this._initOptions.environment]}),this._tenants=new Dt({apiKey:e,baseURL:n.AU.tenants[this._initOptions.environment]}),this._logs=new Yt({apiKey:e,baseURL:n.AU.logs[this._initOptions.environment]}),this._reactorFormulas=new Mt({apiKey:e,baseURL:n.AU.reactorFormulas[this._initOptions.environment]}),this._reactors=new Jt({apiKey:e,baseURL:n.AU.reactors[this._initOptions.environment]}),this._atomicBanks=new fe({apiKey:e,baseURL:n.AU.atomicBanks[this._initOptions.environment]}),this._atomicCards=new Oe({apiKey:e,baseURL:n.AU.atomicCards[this._initOptions.environment]}),this._permissions=new ke({apiKey:e,baseURL:n.AU.permissions[this._initOptions.environment]}),this._encryption=new St,!this._initOptions.elements){t.next=20;break}return t.next=20,this.loadElements(e);case 20:this._initStatus="done",t.next=27;break;case 23:throw t.prev=23,t.t0=t.catch(4),this._initStatus="error",t.t0;case 27:return t.abrupt("return",this);case 28:case"end":return t.stop()}}),t,this,[[4,23]])}))),function(t){return i.apply(this,arguments)})},{key:"loadElements",value:(o=Be(regeneratorRuntime.mark((function t(e){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,n.dY)();case 2:return r=t.sent,t.next=5,r.init(e,this.initOptions.environment);case 5:this.elements=r;case 6:case"end":return t.stop()}}),t,this)}))),function(t){return o.apply(this,arguments)})},{key:"initOptions",get:function(){return(0,n.eg)(this._initOptions)}},{key:"tokens",get:function(){return(0,n.eg)(this._tokens)}},{key:"atomic",get:function(){return(0,n.eg)(this._atomic)}},{key:"encryption",get:function(){return(0,n.eg)(this._encryption)}},{key:"elements",get:function(){return(0,n.eg)(this._elements)},set:function(t){this._elements=t}},{key:"applications",get:function(){return(0,n.eg)(this._applications)}},{key:"tenants",get:function(){return(0,n.eg)(this._tenants)}},{key:"logs",get:function(){return(0,n.eg)(this._logs)}},{key:"reactorFormulas",get:function(){return(0,n.eg)(this._reactorFormulas)}},{key:"reactors",get:function(){return(0,n.eg)(this._reactors)}},{key:"atomicBanks",get:function(){return(0,n.eg)(this._atomicBanks)}},{key:"atomicCards",get:function(){return(0,n.eg)(this._atomicCards)}},{key:"permissions",get:function(){return(0,n.eg)(this._permissions)}}])&&De(e.prototype,r),t}())},120:(t,e,r)=>{"use strict";r.d(e,{l:()=>a});var n=r(206),o=r.n(n),i=r(95);function c(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var a=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),c(this,"client",void 0);var r=e.apiKey,n=e.baseURL;this.client=o().create({baseURL:n,headers:c({},i.Yg,r),transformRequest:[].concat(e.transformRequest||i.pV,o().defaults.transformRequest),transformResponse:o().defaults.transformResponse.concat(e.transformResponse||i.NV)}),this.client.interceptors.response.use(void 0,i.ud)}},555:(t,e,r)=>{"use strict";r.d(e,{BasisTheoryService:()=>o.l});var n=r(771);r.o(n,"BasisTheoryService")&&r.d(e,{BasisTheoryService:function(){return n.BasisTheoryService}});var o=r(120)},771:()=>{},206:(t,e,r)=>{t.exports=r(57)},387:(t,e,r)=>{"use strict";var n=r(485),o=r(570),i=r(940),c=r(581),a=r(574),u=r(845),s=r(338),f=r(524);t.exports=function(t){return new Promise((function(e,r){var p=t.data,l=t.headers;n.isFormData(p)&&delete l["Content-Type"];var h=new XMLHttpRequest;if(t.auth){var y=t.auth.username||"",d=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";l.Authorization="Basic "+btoa(y+":"+d)}var m=a(t.baseURL,t.url);if(h.open(t.method.toUpperCase(),c(m,t.params,t.paramsSerializer),!0),h.timeout=t.timeout,h.onreadystatechange=function(){if(h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in h?u(h.getAllResponseHeaders()):null,i={data:t.responseType&&"text"!==t.responseType?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:n,config:t,request:h};o(e,r,i),h=null}},h.onabort=function(){h&&(r(f("Request aborted",t,"ECONNABORTED",h)),h=null)},h.onerror=function(){r(f("Network Error",t,null,h)),h=null},h.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),r(f(e,t,"ECONNABORTED",h)),h=null},n.isStandardBrowserEnv()){var v=(t.withCredentials||s(m))&&t.xsrfCookieName?i.read(t.xsrfCookieName):void 0;v&&(l[t.xsrfHeaderName]=v)}if("setRequestHeader"in h&&n.forEach(l,(function(t,e){void 0===p&&"content-type"===e.toLowerCase()?delete l[e]:h.setRequestHeader(e,t)})),n.isUndefined(t.withCredentials)||(h.withCredentials=!!t.withCredentials),t.responseType)try{h.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}"function"==typeof t.onDownloadProgress&&h.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){h&&(h.abort(),r(t),h=null)})),p||(p=null),h.send(p)}))}},57:(t,e,r)=>{"use strict";var n=r(485),o=r(875),i=r(29),c=r(941);function a(t){var e=new i(t),r=o(i.prototype.request,e);return n.extend(r,i.prototype,e),n.extend(r,e),r}var u=a(r(141));u.Axios=i,u.create=function(t){return a(c(u.defaults,t))},u.Cancel=r(132),u.CancelToken=r(603),u.isCancel=r(475),u.all=function(t){return Promise.all(t)},u.spread=r(739),u.isAxiosError=r(835),t.exports=u,t.exports.default=u},132:t=>{"use strict";function e(t){this.message=t}e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,t.exports=e},603:(t,e,r)=>{"use strict";var n=r(132);function o(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var r=this;t((function(t){r.reason||(r.reason=new n(t),e(r.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var t;return{token:new o((function(e){t=e})),cancel:t}},t.exports=o},475:t=>{"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},29:(t,e,r)=>{"use strict";var n=r(485),o=r(581),i=r(96),c=r(9),a=r(941);function u(t){this.defaults=t,this.interceptors={request:new i,response:new i}}u.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{}).url=arguments[0]:t=t||{},(t=a(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e=[c,void 0],r=Promise.resolve(t);for(this.interceptors.request.forEach((function(t){e.unshift(t.fulfilled,t.rejected)})),this.interceptors.response.forEach((function(t){e.push(t.fulfilled,t.rejected)}));e.length;)r=r.then(e.shift(),e.shift());return r},u.prototype.getUri=function(t){return t=a(this.defaults,t),o(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},n.forEach(["delete","get","head","options"],(function(t){u.prototype[t]=function(e,r){return this.request(a(r||{},{method:t,url:e,data:(r||{}).data}))}})),n.forEach(["post","put","patch"],(function(t){u.prototype[t]=function(e,r,n){return this.request(a(n||{},{method:t,url:e,data:r}))}})),t.exports=u},96:(t,e,r)=>{"use strict";var n=r(485);function o(){this.handlers=[]}o.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},o.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},o.prototype.forEach=function(t){n.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=o},574:(t,e,r)=>{"use strict";var n=r(642),o=r(288);t.exports=function(t,e){return t&&!n(e)?o(t,e):e}},524:(t,e,r)=>{"use strict";var n=r(953);t.exports=function(t,e,r,o,i){var c=new Error(t);return n(c,e,r,o,i)}},9:(t,e,r)=>{"use strict";var n=r(485),o=r(212),i=r(475),c=r(141);function a(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return a(t),t.headers=t.headers||{},t.data=o(t.data,t.headers,t.transformRequest),t.headers=n.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),n.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||c.adapter)(t).then((function(e){return a(t),e.data=o(e.data,e.headers,t.transformResponse),e}),(function(e){return i(e)||(a(t),e&&e.response&&(e.response.data=o(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},953:t=>{"use strict";t.exports=function(t,e,r,n,o){return t.config=e,r&&(t.code=r),t.request=n,t.response=o,t.isAxiosError=!0,t.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:this.config,code:this.code}},t}},941:(t,e,r)=>{"use strict";var n=r(485);t.exports=function(t,e){e=e||{};var r={},o=["url","method","data"],i=["headers","auth","proxy","params"],c=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],a=["validateStatus"];function u(t,e){return n.isPlainObject(t)&&n.isPlainObject(e)?n.merge(t,e):n.isPlainObject(e)?n.merge({},e):n.isArray(e)?e.slice():e}function s(o){n.isUndefined(e[o])?n.isUndefined(t[o])||(r[o]=u(void 0,t[o])):r[o]=u(t[o],e[o])}n.forEach(o,(function(t){n.isUndefined(e[t])||(r[t]=u(void 0,e[t]))})),n.forEach(i,s),n.forEach(c,(function(o){n.isUndefined(e[o])?n.isUndefined(t[o])||(r[o]=u(void 0,t[o])):r[o]=u(void 0,e[o])})),n.forEach(a,(function(n){n in e?r[n]=u(t[n],e[n]):n in t&&(r[n]=u(void 0,t[n]))}));var f=o.concat(i).concat(c).concat(a),p=Object.keys(t).concat(Object.keys(e)).filter((function(t){return-1===f.indexOf(t)}));return n.forEach(p,s),r}},570:(t,e,r)=>{"use strict";var n=r(524);t.exports=function(t,e,r){var o=r.config.validateStatus;r.status&&o&&!o(r.status)?e(n("Request failed with status code "+r.status,r.config,null,r.request,r)):t(r)}},212:(t,e,r)=>{"use strict";var n=r(485);t.exports=function(t,e,r){return n.forEach(r,(function(r){t=r(t,e)})),t}},141:(t,e,r)=>{"use strict";var n=r(485),o=r(446),i={"Content-Type":"application/x-www-form-urlencoded"};function c(t,e){!n.isUndefined(t)&&n.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var a,u={adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(a=r(387)),a),transformRequest:[function(t,e){return o(e,"Accept"),o(e,"Content-Type"),n.isFormData(t)||n.isArrayBuffer(t)||n.isBuffer(t)||n.isStream(t)||n.isFile(t)||n.isBlob(t)?t:n.isArrayBufferView(t)?t.buffer:n.isURLSearchParams(t)?(c(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):n.isObject(t)?(c(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};n.forEach(["delete","get","head"],(function(t){u.headers[t]={}})),n.forEach(["post","put","patch"],(function(t){u.headers[t]=n.merge(i)})),t.exports=u},875:t=>{"use strict";t.exports=function(t,e){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return t.apply(e,r)}}},581:(t,e,r)=>{"use strict";var n=r(485);function o(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,r){if(!e)return t;var i;if(r)i=r(e);else if(n.isURLSearchParams(e))i=e.toString();else{var c=[];n.forEach(e,(function(t,e){null!=t&&(n.isArray(t)?e+="[]":t=[t],n.forEach(t,(function(t){n.isDate(t)?t=t.toISOString():n.isObject(t)&&(t=JSON.stringify(t)),c.push(o(e)+"="+o(t))})))})),i=c.join("&")}if(i){var a=t.indexOf("#");-1!==a&&(t=t.slice(0,a)),t+=(-1===t.indexOf("?")?"?":"&")+i}return t}},288:t=>{"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},940:(t,e,r)=>{"use strict";var n=r(485);t.exports=n.isStandardBrowserEnv()?{write:function(t,e,r,o,i,c){var a=[];a.push(t+"="+encodeURIComponent(e)),n.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),n.isString(o)&&a.push("path="+o),n.isString(i)&&a.push("domain="+i),!0===c&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},642:t=>{"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},835:t=>{"use strict";t.exports=function(t){return"object"==typeof t&&!0===t.isAxiosError}},338:(t,e,r)=>{"use strict";var n=r(485);t.exports=n.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function o(t){var n=t;return e&&(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 t=o(window.location.href),function(e){var r=n.isString(e)?o(e):e;return r.protocol===t.protocol&&r.host===t.host}}():function(){return!0}},446:(t,e,r)=>{"use strict";var n=r(485);t.exports=function(t,e){n.forEach(t,(function(r,n){n!==e&&n.toUpperCase()===e.toUpperCase()&&(t[e]=r,delete t[n])}))}},845:(t,e,r)=>{"use strict";var n=r(485),o=["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"];t.exports=function(t){var e,r,i,c={};return t?(n.forEach(t.split("\n"),(function(t){if(i=t.indexOf(":"),e=n.trim(t.substr(0,i)).toLowerCase(),r=n.trim(t.substr(i+1)),e){if(c[e]&&o.indexOf(e)>=0)return;c[e]="set-cookie"===e?(c[e]?c[e]:[]).concat([r]):c[e]?c[e]+", "+r:r}})),c):c}},739:t=>{"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},485:(t,e,r)=>{"use strict";var n=r(875),o=Object.prototype.toString;function i(t){return"[object Array]"===o.call(t)}function c(t){return void 0===t}function a(t){return null!==t&&"object"==typeof t}function u(t){if("[object Object]"!==o.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function s(t){return"[object Function]"===o.call(t)}function f(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),i(t))for(var r=0,n=t.length;r<n;r++)e.call(null,t[r],r,t);else for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.call(null,t[o],o,t)}t.exports={isArray:i,isArrayBuffer:function(t){return"[object ArrayBuffer]"===o.call(t)},isBuffer:function(t){return null!==t&&!c(t)&&null!==t.constructor&&!c(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){return"undefined"!=typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:a,isPlainObject:u,isUndefined:c,isDate:function(t){return"[object Date]"===o.call(t)},isFile:function(t){return"[object File]"===o.call(t)},isBlob:function(t){return"[object Blob]"===o.call(t)},isFunction:s,isStream:function(t){return a(t)&&s(t.pipe)},isURLSearchParams:function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:f,merge:function t(){var e={};function r(r,n){u(e[n])&&u(r)?e[n]=t(e[n],r):u(r)?e[n]=t({},r):i(r)?e[n]=r.slice():e[n]=r}for(var n=0,o=arguments.length;n<o;n++)f(arguments[n],r);return e},extend:function(t,e,r){return f(e,(function(e,o){t[o]=r&&"function"==typeof e?n(e,r):e})),t},trim:function(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t}}},79:(t,e,r)=>{"use strict";const n=r(720),o=r(600),i=new(r(926))({maxSize:1e5}),c=t=>!("object"!=typeof t||null===t||t instanceof RegExp||t instanceof Error||t instanceof Date),a=(t,e)=>{if(!c(t))return t;e={deep:!1,pascalCase:!1,...e};const{exclude:r,pascalCase:a,stopPaths:u,deep:s}=e,f=new Set(u),p=t=>(e,u)=>{if(s&&c(u)){const r=void 0===t?e:`${t}.${e}`;f.has(r)||(u=n(u,p(r)))}if(!r||!((t,e)=>t.some((t=>"string"==typeof t?t===e:(t.lastIndex=0,t.test(e)))))(r,e)){const t=a?`${e}_`:e;if(i.has(t))e=i.get(t);else{const r=o(e,{pascalCase:a});e.length<100&&i.set(t,r),e=r}}return[e,u]};return n(t,p(void 0))};t.exports=(t,e)=>Array.isArray(t)?Object.keys(t).map((r=>a(t[r],e))):a(t,e)},600:t=>{"use strict";const e=(t,e)=>{if("string"!=typeof t&&!Array.isArray(t))throw new TypeError("Expected the input to be `string | string[]`");return e=Object.assign({pascalCase:!1},e),0===(t=Array.isArray(t)?t.map((t=>t.trim())).filter((t=>t.length)).join("-"):t.trim()).length?"":1===t.length?e.pascalCase?t.toUpperCase():t.toLowerCase():(t!==t.toLowerCase()&&(t=(t=>{let e=!1,r=!1,n=!1;for(let o=0;o<t.length;o++){const i=t[o];e&&/[a-zA-Z]/.test(i)&&i.toUpperCase()===i?(t=t.slice(0,o)+"-"+t.slice(o),e=!1,n=r,r=!0,o++):r&&n&&/[a-zA-Z]/.test(i)&&i.toLowerCase()===i?(t=t.slice(0,o-1)+"-"+t.slice(o-1),n=r,r=!1,e=!0):(e=i.toLowerCase()===i&&i.toUpperCase()!==i,n=r,r=i.toUpperCase()===i&&i.toLowerCase()!==i)}return t})(t)),r=t=t.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,((t,e)=>e.toUpperCase())).replace(/\d+(\w|$)/g,(t=>t.toUpperCase())),e.pascalCase?r.charAt(0).toUpperCase()+r.slice(1):r);var r};t.exports=e,t.exports.default=e},720:t=>{"use strict";const e=t=>"object"==typeof t&&null!==t,r=t=>e(t)&&!(t instanceof RegExp)&&!(t instanceof Error)&&!(t instanceof Date),n=(t,e,o,i=new WeakMap)=>{if(o={deep:!1,target:{},...o},i.has(t))return i.get(t);i.set(t,o.target);const{target:c}=o;delete o.target;const a=t=>t.map((t=>r(t)?n(t,e,o,i):t));if(Array.isArray(t))return a(t);for(const[u,s]of Object.entries(t)){let[f,p]=e(u,s,t);o.deep&&r(p)&&(p=Array.isArray(p)?a(p):n(p,e,o,i)),c[f]=p}return c};t.exports=(t,r,o)=>{if(!e(t))throw new TypeError(`Expected an object, got \`${t}\` (${typeof t})`);return n(t,r,o)}},926:t=>{"use strict";class e{constructor(t={}){if(!(t.maxSize&&t.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");this.maxSize=t.maxSize,this.cache=new Map,this.oldCache=new Map,this._size=0}_set(t,e){this.cache.set(t,e),this._size++,this._size>=this.maxSize&&(this._size=0,this.oldCache=this.cache,this.cache=new Map)}get(t){if(this.cache.has(t))return this.cache.get(t);if(this.oldCache.has(t)){const e=this.oldCache.get(t);return this.oldCache.delete(t),this._set(t,e),e}}set(t,e){return this.cache.has(t)?this.cache.set(t,e):this._set(t,e),this}has(t){return this.cache.has(t)||this.oldCache.has(t)}peek(t){return this.cache.has(t)?this.cache.get(t):this.oldCache.has(t)?this.oldCache.get(t):void 0}delete(t){const e=this.cache.delete(t);return e&&this._size--,this.oldCache.delete(t)||e}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}*keys(){for(const[t]of this)yield t}*values(){for(const[,t]of this)yield t}*[Symbol.iterator](){for(const t of this.cache)yield t;for(const t of this.oldCache){const[e]=t;this.cache.has(e)||(yield t)}}get size(){let t=0;for(const e of this.oldCache.keys())this.cache.has(e)||t++;return this._size+t}}t.exports=e},248:t=>{var e=function(t){"use strict";var e,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",a=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var o=e&&e.prototype instanceof m?e:m,i=Object.create(o.prototype),c=new E(n||[]);return i._invoke=function(t,e,r){var n=p;return function(o,i){if(n===h)throw new Error("Generator is already running");if(n===y){if("throw"===o)throw i;return A()}for(r.method=o,r.arg=i;;){var c=r.delegate;if(c){var a=S(c,r);if(a){if(a===d)continue;return a}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===p)throw n=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=h;var u=f(t,e,r);if("normal"===u.type){if(n=r.done?y:l,u.arg===d)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n=y,r.method="throw",r.arg=u.arg)}}}(t,r,c),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var p="suspendedStart",l="suspendedYield",h="executing",y="completed",d={};function m(){}function v(){}function b(){}var g={};g[i]=function(){return this};var w=Object.getPrototypeOf,O=w&&w(w(k([])));O&&O!==r&&n.call(O,i)&&(g=O);var x=b.prototype=m.prototype=Object.create(g);function j(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function R(t,e){function r(o,i,c,a){var u=f(t[o],t,i);if("throw"!==u.type){var s=u.arg,p=s.value;return p&&"object"==typeof p&&n.call(p,"__await")?e.resolve(p.__await).then((function(t){r("next",t,c,a)}),(function(t){r("throw",t,c,a)})):e.resolve(p).then((function(t){s.value=t,c(s)}),(function(t){return r("throw",t,c,a)}))}a(u.arg)}var o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}function S(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,S(t,r),"throw"===r.method))return d;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var o=f(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,d;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,d):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,d)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function k(t){if(t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,c=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return c.next=c}}return{next:A}}function A(){return{value:e,done:!0}}return v.prototype=x.constructor=b,b.constructor=v,v.displayName=u(b,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,u(t,a,"GeneratorFunction")),t.prototype=Object.create(x),t},t.awrap=function(t){return{__await:t}},j(R.prototype),R.prototype[c]=function(){return this},t.AsyncIterator=R,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var c=new R(s(e,r,n,o),i);return t.isGeneratorFunction(r)?c:c.next().then((function(t){return t.done?t.value:c.next()}))},j(x),u(x,a,"Generator"),x[i]=function(){return this},x.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=k,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return a.type="throw",a.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var c=this.tryEntries[i],a=c.completion;if("root"===c.tryLoc)return o("end");if(c.tryLoc<=this.prev){var u=n.call(c,"catchLoc"),s=n.call(c,"finallyLoc");if(u&&s){if(this.prev<c.catchLoc)return o(c.catchLoc,!0);if(this.prev<c.finallyLoc)return o(c.finallyLoc)}else if(u){if(this.prev<c.catchLoc)return o(c.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<c.finallyLoc)return o(c.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var c=i?i.completion:{};return c.type=t,c.arg=e,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(c)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:k(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),d}},t}(t.exports);try{regeneratorRuntime=e}catch(t){Function("r","regeneratorRuntime = r")(e)}},585:(t,e,r)=>{"use strict";const n=r(107),o=r(299);t.exports=function(t,e){return e=Object.assign({deep:!0,exclude:[]},e),n(t,(function(t,r){return[(n=e.exclude,i=t,n.some((function(t){return"string"==typeof t?t===i:t.test(i)}))?t:o(t)),r];var n,i}),e)}},107:t=>{"use strict";const e=t=>"object"==typeof t&&null!==t,r=t=>e(t)&&!(t instanceof RegExp)&&!(t instanceof Error)&&!(t instanceof Date),n=(t,e,o,i=new WeakMap)=>{if(o={deep:!1,target:{},...o},i.has(t))return i.get(t);i.set(t,o.target);const{target:c}=o;delete o.target;const a=t=>t.map((t=>r(t)?n(t,e,o,i):t));if(Array.isArray(t))return a(t);for(const[u,s]of Object.entries(t)){let[f,p,{shouldRecurse:l=!0}={}]=e(u,s,t);"__proto__"!==f&&(o.deep&&l&&r(p)&&(p=Array.isArray(p)?a(p):n(p,e,o,i)),c[f]=p)}return c};t.exports=(t,r,o)=>{if(!e(t))throw new TypeError(`Expected an object, got \`${t}\` (${typeof t})`);return n(t,r,o)}},519:t=>{t.exports=function(t){return e.test(t)?t.toLowerCase():r.test(t)?(function(t){return t.replace(o,(function(t,e){return e?" "+e:""}))}(t)||t).toLowerCase():n.test(t)?function(t){return t.replace(i,(function(t,e,r){return e+" "+r.toLowerCase().split("").join(" ")}))}(t).toLowerCase():t.toLowerCase()};var e=/\s/,r=/(_|-|\.|:)/,n=/([a-z][A-Z]|[A-Z][a-z])/,o=/[\W_]+(.|$)/g,i=/(.)([A-Z]+)/g},299:(t,e,r)=>{var n=r(746);t.exports=function(t){return n(t).replace(/\s/g,"_")}},746:(t,e,r)=>{var n=r(519);t.exports=function(t){return n(t).replace(/[\W_]+(.|$)/g,(function(t,e){return e?" "+e:""})).trim()}},906:()=>{}},e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={exports:{}};return t[n](o,o.exports,r),o.exports}return r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r(644)})().default}));