!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={3349:(t,e,r)=>{"use strict";function n(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}r.d(e,{Z:()=>n})},6610:(t,e,r)=>{"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}r.d(e,{Z:()=>n})},5991:(t,e,r)=>{"use strict";function n(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 o(t,e,r){return e&&n(t.prototype,e),r&&n(t,r),t}r.d(e,{Z:()=>o})},6156:(t,e,r)=>{"use strict";function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}r.d(e,{Z:()=>n})},7608:(t,e,r)=>{"use strict";function n(t){return n=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},n(t)}r.d(e,{Z:()=>n})},5255:(t,e,r)=>{"use strict";function n(t,e){return n=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},n(t,e)}function o(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&&n(t,e)}r.d(e,{Z:()=>o})},6070:(t,e,r)=>{"use strict";r.d(e,{Z:()=>i});var n=r(484),o=r(3349);function i(t,e){if(e&&("object"===(0,n.Z)(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return(0,o.Z)(t)}},484:(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},n(t)}r.d(e,{Z:()=>n})},7757:(t,e,r)=>{t.exports=r(5666)},9669:(t,e,r)=>{t.exports=r(1609)},5448:(t,e,r)=>{"use strict";var n=r(4867),o=r(6026),i=r(4372),s=r(5327),a=r(4097),c=r(4109),u=r(7985),f=r(5061);t.exports=function(t){return new Promise((function(e,r){var l=t.data,p=t.headers,h=t.responseType;n.isFormData(l)&&delete p["Content-Type"];var d=new XMLHttpRequest;if(t.auth){var y=t.auth.username||"",v=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";p.Authorization="Basic "+btoa(y+":"+v)}var m=a(t.baseURL,t.url);function g(){if(d){var n="getAllResponseHeaders"in d?c(d.getAllResponseHeaders()):null,i={data:h&&"text"!==h&&"json"!==h?d.response:d.responseText,status:d.status,statusText:d.statusText,headers:n,config:t,request:d};o(e,r,i),d=null}}if(d.open(t.method.toUpperCase(),s(m,t.params,t.paramsSerializer),!0),d.timeout=t.timeout,"onloadend"in d?d.onloadend=g:d.onreadystatechange=function(){d&&4===d.readyState&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))&&setTimeout(g)},d.onabort=function(){d&&(r(f("Request aborted",t,"ECONNABORTED",d)),d=null)},d.onerror=function(){r(f("Network Error",t,null,d)),d=null},d.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),r(f(e,t,t.transitional&&t.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",d)),d=null},n.isStandardBrowserEnv()){var b=(t.withCredentials||u(m))&&t.xsrfCookieName?i.read(t.xsrfCookieName):void 0;b&&(p[t.xsrfHeaderName]=b)}"setRequestHeader"in d&&n.forEach(p,(function(t,e){void 0===l&&"content-type"===e.toLowerCase()?delete p[e]:d.setRequestHeader(e,t)})),n.isUndefined(t.withCredentials)||(d.withCredentials=!!t.withCredentials),h&&"json"!==h&&(d.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&d.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){d&&(d.abort(),r(t),d=null)})),l||(l=null),d.send(l)}))}},1609:(t,e,r)=>{"use strict";var n=r(4867),o=r(1849),i=r(321),s=r(7185);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 c=a(r(5655));c.Axios=i,c.create=function(t){return a(s(c.defaults,t))},c.Cancel=r(5263),c.CancelToken=r(4972),c.isCancel=r(6502),c.all=function(t){return Promise.all(t)},c.spread=r(8713),c.isAxiosError=r(6268),t.exports=c,t.exports.default=c},5263: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},4972:(t,e,r)=>{"use strict";var n=r(5263);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},6502:t=>{"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},321:(t,e,r)=>{"use strict";var n=r(4867),o=r(5327),i=r(782),s=r(3572),a=r(7185),c=r(4875),u=c.validators;function f(t){this.defaults=t,this.interceptors={request:new i,response:new i}}f.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=t.transitional;void 0!==e&&c.assertOptions(e,{silentJSONParsing:u.transitional(u.boolean,"1.0.0"),forcedJSONParsing:u.transitional(u.boolean,"1.0.0"),clarifyTimeoutError:u.transitional(u.boolean,"1.0.0")},!1);var r=[],n=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(n=n&&e.synchronous,r.unshift(e.fulfilled,e.rejected))}));var o,i=[];if(this.interceptors.response.forEach((function(t){i.push(t.fulfilled,t.rejected)})),!n){var f=[s,void 0];for(Array.prototype.unshift.apply(f,r),f=f.concat(i),o=Promise.resolve(t);f.length;)o=o.then(f.shift(),f.shift());return o}for(var l=t;r.length;){var p=r.shift(),h=r.shift();try{l=p(l)}catch(t){h(t);break}}try{o=s(l)}catch(t){return Promise.reject(t)}for(;i.length;)o=o.then(i.shift(),i.shift());return o},f.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){f.prototype[t]=function(e,r){return this.request(a(r||{},{method:t,url:e,data:(r||{}).data}))}})),n.forEach(["post","put","patch"],(function(t){f.prototype[t]=function(e,r,n){return this.request(a(n||{},{method:t,url:e,data:r}))}})),t.exports=f},782:(t,e,r)=>{"use strict";var n=r(4867);function o(){this.handlers=[]}o.prototype.use=function(t,e,r){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),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},4097:(t,e,r)=>{"use strict";var n=r(1793),o=r(7303);t.exports=function(t,e){return t&&!n(e)?o(t,e):e}},5061:(t,e,r)=>{"use strict";var n=r(481);t.exports=function(t,e,r,o,i){var s=new Error(t);return n(s,e,r,o,i)}},3572:(t,e,r)=>{"use strict";var n=r(4867),o=r(8527),i=r(6502),s=r(5655);function a(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return a(t),t.headers=t.headers||{},t.data=o.call(t,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||s.adapter)(t).then((function(e){return a(t),e.data=o.call(t,e.data,e.headers,t.transformResponse),e}),(function(e){return i(e)||(a(t),e&&e.response&&(e.response.data=o.call(t,e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},481: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}},7185:(t,e,r)=>{"use strict";var n=r(4867);t.exports=function(t,e){e=e||{};var r={},o=["url","method","data"],i=["headers","auth","proxy","params"],s=["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 c(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 u(o){n.isUndefined(e[o])?n.isUndefined(t[o])||(r[o]=c(void 0,t[o])):r[o]=c(t[o],e[o])}n.forEach(o,(function(t){n.isUndefined(e[t])||(r[t]=c(void 0,e[t]))})),n.forEach(i,u),n.forEach(s,(function(o){n.isUndefined(e[o])?n.isUndefined(t[o])||(r[o]=c(void 0,t[o])):r[o]=c(void 0,e[o])})),n.forEach(a,(function(n){n in e?r[n]=c(t[n],e[n]):n in t&&(r[n]=c(void 0,t[n]))}));var f=o.concat(i).concat(s).concat(a),l=Object.keys(t).concat(Object.keys(e)).filter((function(t){return-1===f.indexOf(t)}));return n.forEach(l,u),r}},6026:(t,e,r)=>{"use strict";var n=r(5061);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)}},8527:(t,e,r)=>{"use strict";var n=r(4867),o=r(5655);t.exports=function(t,e,r){var i=this||o;return n.forEach(r,(function(r){t=r.call(i,t,e)})),t}},5655:(t,e,r)=>{"use strict";var n=r(4867),o=r(6016),i=r(481),s={"Content-Type":"application/x-www-form-urlencoded"};function a(t,e){!n.isUndefined(t)&&n.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var c,u={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(c=r(5448)),c),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)?(a(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):n.isObject(t)||e&&"application/json"===e["Content-Type"]?(a(e,"application/json"),function(t,e,r){if(n.isString(t))try{return(0,JSON.parse)(t),n.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(0,JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){var e=this.transitional,r=e&&e.silentJSONParsing,o=e&&e.forcedJSONParsing,s=!r&&"json"===this.responseType;if(s||o&&n.isString(t)&&t.length)try{return JSON.parse(t)}catch(t){if(s){if("SyntaxError"===t.name)throw i(t,this,"E_JSON_PARSE");throw 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(s)})),t.exports=u},1849: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)}}},5327:(t,e,r)=>{"use strict";var n=r(4867);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 s=[];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)),s.push(o(e)+"="+o(t))})))})),i=s.join("&")}if(i){var a=t.indexOf("#");-1!==a&&(t=t.slice(0,a)),t+=(-1===t.indexOf("?")?"?":"&")+i}return t}},7303:t=>{"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},4372:(t,e,r)=>{"use strict";var n=r(4867);t.exports=n.isStandardBrowserEnv()?{write:function(t,e,r,o,i,s){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===s&&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(){}}},1793:t=>{"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},6268:t=>{"use strict";t.exports=function(t){return"object"==typeof t&&!0===t.isAxiosError}},7985:(t,e,r)=>{"use strict";var n=r(4867);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}},6016:(t,e,r)=>{"use strict";var n=r(4867);t.exports=function(t,e){n.forEach(t,(function(r,n){n!==e&&n.toUpperCase()===e.toUpperCase()&&(t[e]=r,delete t[n])}))}},4109:(t,e,r)=>{"use strict";var n=r(4867),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,s={};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(s[e]&&o.indexOf(e)>=0)return;s[e]="set-cookie"===e?(s[e]?s[e]:[]).concat([r]):s[e]?s[e]+", "+r:r}})),s):s}},8713:t=>{"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},4875:(t,e,r)=>{"use strict";var n=r(696),o={};["object","boolean","number","function","string","symbol"].forEach((function(t,e){o[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}}));var i={},s=n.version.split(".");function a(t,e){for(var r=e?e.split("."):s,n=t.split("."),o=0;o<3;o++){if(r[o]>n[o])return!0;if(r[o]<n[o])return!1}return!1}o.transitional=function(t,e,r){var o=e&&a(e);function s(t,e){return"[Axios v"+n.version+"] Transitional option '"+t+"'"+e+(r?". "+r:"")}return function(r,n,a){if(!1===t)throw new Error(s(n," has been removed in "+e));return o&&!i[n]&&(i[n]=!0,console.warn(s(n," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(r,n,a)}},t.exports={isOlderVersion:a,assertOptions:function(t,e,r){if("object"!=typeof t)throw new TypeError("options must be an object");for(var n=Object.keys(t),o=n.length;o-- >0;){var i=n[o],s=e[i];if(s){var a=t[i],c=void 0===a||s(a,i,t);if(!0!==c)throw new TypeError("option "+i+" must be "+c)}else if(!0!==r)throw Error("Unknown option "+i)}},validators:o}},4867:(t,e,r)=>{"use strict";var n=r(1849),o=Object.prototype.toString;function i(t){return"[object Array]"===o.call(t)}function s(t){return void 0===t}function a(t){return null!==t&&"object"==typeof t}function c(t){if("[object Object]"!==o.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function u(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&&!s(t)&&null!==t.constructor&&!s(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:c,isUndefined:s,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:u,isStream:function(t){return a(t)&&u(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){c(e[n])&&c(r)?e[n]=t(e[n],r):c(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.trim?t.trim():t.replace(/^\s+|\s+$/g,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t}}},696:t=>{"use strict";t.exports=JSON.parse('{"name":"axios","version":"0.21.4","description":"Promise based HTTP client for the browser and node.js","main":"index.js","scripts":{"test":"grunt test","start":"node ./sandbox/server.js","build":"NODE_ENV=production grunt build","preversion":"npm test","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json","postversion":"git push && git push --tags","examples":"node ./examples/server.js","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","fix":"eslint --fix lib/**/*.js"},"repository":{"type":"git","url":"https://github.com/axios/axios.git"},"keywords":["xhr","http","ajax","promise","node"],"author":"Matt Zabriskie","license":"MIT","bugs":{"url":"https://github.com/axios/axios/issues"},"homepage":"https://axios-http.com","devDependencies":{"coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^8.2.1","sinon":"^4.5.0","terser-webpack-plugin":"^4.2.3","typescript":"^4.0.5","url-search-params":"^0.10.0","webpack":"^4.44.2","webpack-dev-server":"^3.11.0"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"jsdelivr":"dist/axios.min.js","unpkg":"dist/axios.min.js","typings":"./index.d.ts","dependencies":{"follow-redirects":"^1.14.0"},"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}]}')},4892:(t,e,r)=>{"use strict";r.d(e,{l:()=>u});var n=r(5991),o=r(6610),i=r(3349),s=r(5255),a=r(6070),c=r(7608);var u=function(t){(0,s.Z)(f,t);var e,r,u=(e=f,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,n=(0,c.Z)(e);if(r){var o=(0,c.Z)(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return(0,a.Z)(this,t)});function f(t,e,r){var n;return(0,o.Z)(this,f),(n=u.call(this,t)).status=e,n.data=r,n.name="BasisTheoryApiError",Object.setPrototypeOf((0,i.Z)(n),f.prototype),n}return(0,n.Z)(f)}(function(t){function e(){var e=Reflect.construct(t,Array.from(arguments));return Object.setPrototypeOf(e,Object.getPrototypeOf(this)),e}return e.prototype=Object.create(t.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t,e}(Error))},1688:(t,e,r)=>{"use strict";r.d(e,{Yg:()=>n,tm:()=>o,B9:()=>i,Vb:()=>s,Mt:()=>a,kI:()=>c,w7:()=>u,w0:()=>f,eh:()=>l,hI:()=>p,Ir:()=>h});var n="BT-API-KEY",o="bt-trace-id",i="bt-idempotency-key",s="Content-Type",a="User-Agent",c="BT-CLIENT-USER-AGENT",u="BasisTheoryJS",f="https://".concat("api.basistheory.com"),l="https://".concat("elements.basistheory.com"),p={tokens:"tokens",tokenize:"tokenize",applications:"applications",tenants:"tenants/self",logs:"logs",reactorFormulas:"reactor-formulas",reactors:"reactors",permissions:"permissions",proxies:"proxies",proxy:"proxy",sessions:"sessions"},h=[{browserName:"Firefox",browserUA:"Firefox"},{browserName:"SamsungBrowser",browserUA:"SamsungBrowser"},{browserName:"Opera",browserUA:"Opera"},{browserName:"Opera",browserUA:"OPR"},{browserName:"Microsoft Internet Explorer",browserUA:"Trident"},{browserName:"Microsoft Edge (Legacy)",browserUA:"Edge"},{browserName:"Microsoft Edge (Chromium)",browserUA:"Edg"},{browserName:"Google Chrome/Chromium",browserUA:"Chrome"},{browserName:"Safari",browserUA:"Safari"}]},2207:(t,e,r)=>{"use strict";r.d(e,{Yg:()=>n.Yg,hI:()=>n.hI,kI:()=>n.kI,Vb:()=>n.Vb,w0:()=>n.w0,eh:()=>n.eh,Mt:()=>n.Mt,eg:()=>o.eg,yi:()=>o.yi,lS:()=>o.lS,hY:()=>o.hY,G5:()=>o.G5,ud:()=>o.ud,vl:()=>o.vl,JY:()=>o.JY,pV:()=>o.pV,NV:()=>o.NV});var n=r(1688),o=r(5750);r(4892),r(5991),r(6610),r(3349),r(5255),r(6070),r(7608);!function(t){function e(){var e=Reflect.construct(t,Array.from(arguments));return Object.setPrototypeOf(e,Object.getPrototypeOf(this)),e}e.prototype=Object.create(t.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}(Error)},5750:(t,e,r)=>{"use strict";r.d(e,{eg:()=>j,yi:()=>z,lS:()=>D,hY:()=>N,G5:()=>C,ud:()=>I,vl:()=>Y,JY:()=>E,Cm:()=>S,UT:()=>_,Ox:()=>Z,YG:()=>B,pV:()=>k,NV:()=>L,WP:()=>P,G0:()=>A});var n=r(484);function o(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 i(t){return function(t){if(Array.isArray(t))return o(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return o(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)?o(t,e):void 0}}(t)||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 s=r(6156),a=r(9669),c=r.n(a),u=r(2828),f=r.n(u),l=r(2970),p=function(){return p=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},p.apply(this,arguments)};function h(t){return t.toLowerCase()}Object.create,Object.create;var d=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],y=/[^A-Z0-9]+/gi;function v(t,e,r){return e instanceof RegExp?t.replace(e,r):e.reduce((function(t,e){return t.replace(e,r)}),t)}function m(t,e){return void 0===e&&(e={}),function(t,e){return void 0===e&&(e={}),function(t,e){void 0===e&&(e={});for(var r=e.splitRegexp,n=void 0===r?d:r,o=e.stripRegexp,i=void 0===o?y:o,s=e.transform,a=void 0===s?h:s,c=e.delimiter,u=void 0===c?" ":c,f=v(v(t,n,"$1\0$2"),i,"\0"),l=0,p=f.length;"\0"===f.charAt(l);)l++;for(;"\0"===f.charAt(p-1);)p--;return f.slice(l,p).split("\0").map(a).join(u)}(t,p({delimiter:"."},e))}(t,p({delimiter:"_"},e))}var g=r(7118),b=r.n(g),w=r(4892),O=r(1688);function x(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 R(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?x(Object(r),!0).forEach((function(e){(0,s.Z)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):x(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var j=function(t){if(null==t)throw new Error("BasisTheory has not yet been properly initialized.");return t},k=function(t){if(void 0!==t)return b()(t,{deep:!0})},E=function(t){return t},Z=function(t){if(void 0!==t)return R(R({},b()(t,{deep:!0})),void 0!==t.configuration?{configuration:t.configuration}:{})},S=function(t){if(void 0!==t)return R(R({},b()(t,{deep:!0})),void 0!==t.configuration?{configuration:t.configuration}:{})},P=function(t){if(void 0!==t)return R(R(R({},b()(t,{deep:!0})),void 0!==t.data?{data:t.data}:{}),void 0!==t.metadata?{metadata:t.metadata}:{})},A=function(t){if(void 0!==t)return R(R(R({},f()(t,{deep:!0})),void 0!==t.data?{data:t.data}:{}),void 0!==t.metadata?{metadata:t.metadata}:{})},B=function(t){if(void 0!==t)return R(R({},f()(t,{deep:!0})),void 0!==t.configuration?{configuration:t.configuration}:{})},_=function(t){if(void 0!==t)return R(R({},f()(t,{deep:!0})),void 0!==t.configuration?{configuration:t.configuration}:{})},L=function(t){if(void 0!==t)return f()(t,{deep:!0})},C=function(t){return null==t?void 0:t.data},T=function(t){return[].concat(i([]),i([t]),i(c().defaults.transformRequest))},U=function(t){return[].concat(i(c().defaults.transformResponse),i([t]))},N=function(t,e){if(!t){if(!e)return;return R(R({},void 0!==e.transformRequest?{transformRequest:T(e.transformRequest)}:{}),void 0!==e.transformResponse?{transformResponse:U(e.transformResponse)}:{})}var r=t,n=r.apiKey,o=r.correlationId,i=r.idempotencyKey,a=r.query,c=r.headers,u=n?(0,s.Z)({},O.Yg,n):{},f=o?(0,s.Z)({},O.tm,o):{},l=i?(0,s.Z)({},O.B9,i):{};return R(R(R({headers:R(R(R(R({},u),f),l),void 0!==c&&R({},c))},void 0!==a&&{params:a}),void 0!==(null==e?void 0:e.transformRequest)?{transformRequest:T(e.transformRequest)}:{}),void 0!==(null==e?void 0:e.transformResponse)?{transformResponse:U(e.transformResponse)}:{})},I=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 w.l(t.message,n,o)},Y=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=Object.keys(t);if(e.length){var r=new URLSearchParams,o=function(t,e){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=(0,n.Z)(e),s=o?t:m(t);(null===e||["boolean","number","string"].includes(i))&&r.append(s,e)};return e.forEach((function(e){var r=t[e];Array.isArray(r)?r.forEach((function(t){o(String(e),t)})):r&&"object"===(0,n.Z)(r)?Object.keys(r).forEach((function(t){o("".concat(String(e),".").concat(t),r[t],!0)})):o(String(e),r)})),"?".concat(r.toString())}return""},D=function(t){var e="".concat(O.w7,"/").concat("unknown");return t&&Object.keys(t||{}).length&&(e+=" ".concat(function(t){return"(".concat(t.name||"","; ").concat(t.version||"","; ").concat(t.url||"",")")}(t))),e},q=function(){if("undefined"==typeof window)try{return"".concat(l.type(),"/").concat(l.version())}catch(t){return"unknown"}try{var t=window.navigator.appVersion.match(/\(((?:(?!\))[\s\S])+)\)/);return t&&t.length>1?t[1]:"unknown"}catch(t){return"unknown"}},z=function(t){var e={client:O.w7,clientVersion:"unknown",osVersion:q(),runtimeVersion:"undefined"==typeof window?"NodeJS/".concat(process.version):function(){var t=window.navigator.userAgent,e="unknown",r=O.Ir.find((function(e){return t.includes(e.browserUA)}));if(r)try{e=t.split("".concat(r.browserUA,"/"))[1]}catch(t){e="unknown"}return"".concat((null==r?void 0:r.browserName)||"unknown","/").concat(e)}(),application:{}};return t&&(e.application=t),JSON.stringify(b()(e))}},764:(t,e,r)=>{"use strict";function n(t,e,r,n,o,i,s){try{var a=t[i](s),c=a.value}catch(t){return void r(t)}a.done?e(c):Promise.resolve(c).then(n,o)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(o,i){var s=t.apply(e,r);function a(t){n(s,o,i,a,c,"next",t)}function c(t){n(s,o,i,a,c,"throw",t)}a(void 0)}))}}r.d(e,{_instance:()=>V});var i=r(6610),s=r(5991),a=r(6156),c=r(7757),u=r.n(c),f=r(9669),l=r.n(f),p=r(5255),h=r(6070),d=r(7608),y=r(2207),v=r(8555);function m(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=(0,d.Z)(t);if(e){var o=(0,d.Z)(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return(0,h.Z)(this,r)}}var g=function(){function t(e){(0,i.Z)(this,t),this.BaseService=e}return(0,s.Z)(t,[{key:"create",value:function(){return this.BaseService=function(t){(0,p.Z)(r,t);var e=m(r);function r(){return(0,i.Z)(this,r),e.apply(this,arguments)}return(0,s.Z)(r,[{key:"create",value:function(t,e){return this.client.post("/",t,(0,y.hY)(e)).then(y.G5)}}]),r}(this.BaseService),this}},{key:"retrieve",value:function(){return this.BaseService=function(t){(0,p.Z)(r,t);var e=m(r);function r(){return(0,i.Z)(this,r),e.apply(this,arguments)}return(0,s.Z)(r,[{key:"retrieve",value:function(t,e){return this.client.get(t,(0,y.hY)(e)).then(y.G5)}}]),r}(this.BaseService),this}},{key:"update",value:function(){return this.BaseService=function(t){(0,p.Z)(r,t);var e=m(r);function r(){return(0,i.Z)(this,r),e.apply(this,arguments)}return(0,s.Z)(r,[{key:"update",value:function(t,e,r){return this.client.put(t,e,(0,y.hY)(r)).then(y.G5)}}]),r}(this.BaseService),this}},{key:"delete",value:function(){return this.BaseService=function(t){(0,p.Z)(n,t);var e,r=m(n);function n(){return(0,i.Z)(this,n),r.apply(this,arguments)}return(0,s.Z)(n,[{key:"delete",value:(e=o(u().mark((function t(e,r){return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.client.delete(e,(0,y.hY)(r));case 2:case"end":return t.stop()}}),t,this)}))),function(t,r){return e.apply(this,arguments)})}]),n}(this.BaseService),this}},{key:"list",value:function(){return this.BaseService=function(t){(0,p.Z)(r,t);var e=m(r);function r(){return(0,i.Z)(this,r),e.apply(this,arguments)}return(0,s.Z)(r,[{key:"list",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r="/".concat((0,y.vl)(t));return this.client.get(r,(0,y.hY)(e)).then(y.G5)}}]),r}(this.BaseService),this}},{key:"build",value:function(){return this.BaseService}}]),t}();var b=new g(function(t){(0,p.Z)(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,n=(0,d.Z)(e);if(r){var o=(0,d.Z)(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return(0,h.Z)(this,t)});function o(){return(0,i.Z)(this,o),n.apply(this,arguments)}return(0,s.Z)(o,[{key:"getApplicationByKey",value:function(){return this.retrieveByKey()}},{key:"retrieveByKey",value:function(t){return this.client.get("/key",(0,y.hY)(t)).then(y.G5)}},{key:"regenerateKey",value:function(t,e){return this.client.post("".concat(t,"/regenerate"),void 0,(0,y.hY)(e)).then(y.G5)}}]),o}(v.BasisTheoryService)).create().retrieve().update().delete().list().build();function w(t,e,r){return w="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,r){var n=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=(0,d.Z)(t)););return t}(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(r):o.value}},w(t,e,r||t)}var O=function(t){(0,p.Z)(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,n=(0,d.Z)(e);if(r){var o=(0,d.Z)(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return(0,h.Z)(this,t)});function o(){return(0,i.Z)(this,o),n.apply(this,arguments)}return(0,s.Z)(o,[{key:"tokenize",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.client.post("/",t,(0,y.hY)(e,{transformRequest:y.JY,transformResponse:y.JY})).then(y.G5)}}]),o}(v.BasisTheoryService);var x=function(t){return function(e){(0,p.Z)(a,e);var r,n,o=(r=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=(0,d.Z)(r);if(n){var o=(0,d.Z)(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return(0,h.Z)(this,t)});function a(){return(0,i.Z)(this,a),o.apply(this,arguments)}return(0,s.Z)(a,[{key:"tokenize",value:function(e,r){return null!=t&&t.hasElement(e)?t.tokenize(e,r):w((0,d.Z)(a.prototype),"tokenize",this).call(this,e,r)}}]),a}(O)},R=r(5750);function j(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 k(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?j(Object(r),!0).forEach((function(e){(0,a.Z)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):j(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var E=new g(function(t){(0,p.Z)(l,t);var e,r,n,c,f=(n=l,c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=(0,d.Z)(n);if(c){var r=(0,d.Z)(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return(0,h.Z)(this,t)});function l(t){(0,i.Z)(this,l);var e=t;return e.transformRequest=[].concat(R.WP,t.transformRequest||[]),e.transformResponse=[].concat(R.G0,t.transformResponse||[]),f.call(this,e)}return(0,s.Z)(l,[{key:"retrieve",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r="/".concat(t);return this.client.get(r,(0,y.hY)(e)).then(R.G5)}},{key:"update",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n="/".concat(t),o=(0,y.hY)(r);return this.client.patch(n,e,k(k({},o),{},{headers:k(k({},null==o?void 0:o.headers),{},(0,a.Z)({},y.Vb,"application/merge-patch+json"))})).then(R.G5)}},{key:"createAssociation",value:(r=o(u().mark((function t(e,r,n){var o;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o="/".concat(e,"/children/").concat(r),t.next=3,this.client.post(o,{},(0,y.hY)(n));case 3:case"end":return t.stop()}}),t,this)}))),function(t,e,n){return r.apply(this,arguments)})},{key:"deleteAssociation",value:(e=o(u().mark((function t(e,r,n){var o;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o="/".concat(e,"/children/").concat(r),t.next=3,this.client.delete(o,(0,y.hY)(n));case 3:case"end":return t.stop()}}),t,this)}))),function(t,r,n){return e.apply(this,arguments)})},{key:"createChild",value:function(t,e,r){var n="/".concat(t,"/children");return this.client.post(n,e,(0,y.hY)(r)).then(R.G5)}},{key:"listChildren",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n="/".concat(t,"/children").concat((0,y.vl)(e));return this.client.get(n,(0,y.hY)(r)).then(R.G5)}},{key:"search",value:function(t,e){return this.client.post("/search",t,(0,y.hY)(e)).then(R.G5)}}]),l}(v.BasisTheoryService)).create().delete().list().build();var Z=function(t){return function(e){(0,p.Z)(a,e);var r,n,o=(r=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=(0,d.Z)(r);if(n){var o=(0,d.Z)(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return(0,h.Z)(this,t)});function a(){return(0,i.Z)(this,a),o.apply(this,arguments)}return(0,s.Z)(a,[{key:"create",value:function(e,r){return null!=t&&t.hasElement(e)?t.tokens.create(e,r):w((0,d.Z)(a.prototype),"create",this).call(this,e,r)}},{key:"update",value:function(e,r,n){return null!=t&&t.hasElement(r)?t.tokens.update(e,r,n):w((0,d.Z)(a.prototype),"update",this).call(this,e,r,n)}},{key:"retrieve",value:function(e,r){return void 0!==t?t.tokens.retrieve(e,r):w((0,d.Z)(a.prototype),"retrieve",this).call(this,e,r)}}]),a}(E)};var S=function(t){(0,p.Z)(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,n=(0,d.Z)(e);if(r){var o=(0,d.Z)(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return(0,h.Z)(this,t)});function o(){return(0,i.Z)(this,o),n.apply(this,arguments)}return(0,s.Z)(o,[{key:"get",value:function(t){return this.proxyRequest("get",t)}},{key:"post",value:function(t){return this.proxyRequest("post",t)}},{key:"put",value:function(t){return this.proxyRequest("put",t)}},{key:"patch",value:function(t){return this.proxyRequest("patch",t)}},{key:"delete",value:function(t){return this.proxyRequest("delete",t)}},{key:"proxyRequest",value:function(t,e){var r,n,o;return"post"===t||"put"===t||"patch"===t?this.client[t](null!==(n=null==e?void 0:e.path)&&void 0!==n?n:"",null!==(o=null==e?void 0:e.body)&&void 0!==o?o:void 0,(0,y.hY)(e,{transformRequest:y.JY,transformResponse:y.JY})).then(y.G5):this.client[t](null!==(r=null==e?void 0:e.path)&&void 0!==r?r:"/",(0,y.hY)(e,{transformRequest:y.JY,transformResponse:y.JY})).then(y.G5)}}]),o}(v.BasisTheoryService);var P,A=function(t){return function(e){(0,p.Z)(a,e);var r,n,o=(r=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=(0,d.Z)(r);if(n){var o=(0,d.Z)(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return(0,h.Z)(this,t)});function a(){return(0,i.Z)(this,a),o.apply(this,arguments)}return(0,s.Z)(a,[{key:"get",value:function(e){return void 0!==t?t.proxy.get(e):w((0,d.Z)(a.prototype),"get",this).call(this,e)}},{key:"post",value:function(e){return void 0!==t?t.proxy.post(e):w((0,d.Z)(a.prototype),"post",this).call(this,e)}},{key:"put",value:function(e){return void 0!==t?t.proxy.put(e):w((0,d.Z)(a.prototype),"put",this).call(this,e)}},{key:"patch",value:function(e){return void 0!==t?t.proxy.patch(e):w((0,d.Z)(a.prototype),"patch",this).call(this,e)}},{key:"delete",value:function(e){return void 0!==t?t.proxy.delete(e):w((0,d.Z)(a.prototype),"delete",this).call(this,e)}}]),a}(S)},B=r(484),_=function(t){return P||(P=new Promise((function(e,r){if("object"===("undefined"==typeof window?"undefined":(0,B.Z)(window)))if(window.BasisTheoryElements)e(window.BasisTheoryElements);else try{var n="https://".concat("js.basistheory.com","/elements");if(void 0!==t)try{n=new URL(t).toString().replace(/\/$/,"")}catch(t){throw new Error("Invalid format for the given Elements client url.")}var o=function(t){return document.querySelector('script[src^="'.concat(t,'"]'))}(n);o||(o=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.append(e),e}(n)),o.addEventListener("load",(function(){window.BasisTheoryElements?e(window.BasisTheoryElements):r(new Error("Basis Theory Elements did not load properly."))})),o.addEventListener("error",(function(t){r((null==t?void 0:t.error)||new Error("There was an unknown error when loading Basis Theory Elements. Check the console for details."))}))}catch(t){return void r(t)}else r(new Error("Tried to load BasisTheoryElements in a non-DOM environment."))}))),P};var L=new g(function(t){(0,p.Z)(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,n=(0,d.Z)(e);if(r){var o=(0,d.Z)(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return(0,h.Z)(this,t)});function o(){return(0,i.Z)(this,o),n.apply(this,arguments)}return(0,s.Z)(o)}(v.BasisTheoryService)).list().build();var C=function(t){(0,p.Z)(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,n=(0,d.Z)(e);if(r){var o=(0,d.Z)(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return(0,h.Z)(this,t)});function o(){return(0,i.Z)(this,o),n.apply(this,arguments)}return(0,s.Z)(o,[{key:"list",value:function(t){return this.client.get("/",(0,y.hY)(t)).then(y.G5)}}]),o}(v.BasisTheoryService);function T(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}var U=new g(function(t){(0,p.Z)(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,n=(0,d.Z)(e);if(r){var o=(0,d.Z)(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return(0,h.Z)(this,t)});function o(t){(0,i.Z)(this,o);var e=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?T(Object(r),!0).forEach((function(e){(0,a.Z)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):T(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},t);return e.transformRequest=[].concat(R.Cm,t.transformRequest||[]),e.transformResponse=[].concat(R.UT,t.transformResponse||[]),n.call(this,e)}return(0,s.Z)(o)}(v.BasisTheoryService)).create().retrieve().update().delete().list().build();var N=new g(function(t){(0,p.Z)(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,n=(0,d.Z)(e);if(r){var o=(0,d.Z)(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return(0,h.Z)(this,t)});function o(){return(0,i.Z)(this,o),n.apply(this,arguments)}return(0,s.Z)(o)}(v.BasisTheoryService)).create().retrieve().update().delete().list().build();function I(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}var Y=new g(function(t){(0,p.Z)(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,n=(0,d.Z)(e);if(r){var o=(0,d.Z)(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return(0,h.Z)(this,t)});function o(t){(0,i.Z)(this,o);var e=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?I(Object(r),!0).forEach((function(e){(0,a.Z)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):I(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},t);return e.transformRequest=[].concat(R.Ox,t.transformRequest||[]),e.transformResponse=[].concat(R.YG,t.transformResponse||[]),n.call(this,e)}return(0,s.Z)(o,[{key:"react",value:function(t,e,r){return this.client.post("/".concat(t,"/react"),e,(0,y.hY)(r,{transformRequest:y.JY,transformResponse:y.JY})).then(y.G5)}}]),o}(v.BasisTheoryService)).create().retrieve().update().delete().list().build();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}var q=function(t){(0,p.Z)(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,n=(0,d.Z)(e);if(r){var o=(0,d.Z)(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return(0,h.Z)(this,t)});function o(t){(0,i.Z)(this,o);var e=function(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){(0,a.Z)(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}({},t);return e.transformRequest=[].concat(R.Cm,t.transformRequest||[]),e.transformResponse=[].concat(R.UT,t.transformResponse||[]),n.call(this,e)}return(0,s.Z)(o,[{key:"create",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.client.post("/",void 0,(0,y.hY)(t)).then(R.G5)}},{key:"authorize",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r="/authorize";return this.client.post(r,t,(0,y.hY)(e)).then(R.G5)}}]),o}(v.BasisTheoryService);var z=new g(function(t){(0,p.Z)(l,t);var e,r,n,a,c,f=(a=l,c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=(0,d.Z)(a);if(c){var r=(0,d.Z)(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return(0,h.Z)(this,t)});function l(){return(0,i.Z)(this,l),f.apply(this,arguments)}return(0,s.Z)(l,[{key:"retrieve",value:function(t){return this.client.get("/",(0,y.hY)(t)).then(y.G5)}},{key:"update",value:function(t,e){return this.client.put("/",t,(0,y.hY)(e)).then(y.G5)}},{key:"delete",value:(n=o(u().mark((function t(e){return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.client.delete("/",(0,y.hY)(e));case 2:case"end":return t.stop()}}),t,this)}))),function(t){return n.apply(this,arguments)})},{key:"retrieveUsageReport",value:function(t){return this.client.get("/reports/usage",(0,y.hY)(t)).then(y.G5)}},{key:"createInvitation",value:function(t,e){return this.client.post("/invitations",t,(0,y.hY)(e)).then(y.G5)}},{key:"resendInvitation",value:function(t,e){return this.client.post("/invitations/".concat(t,"/resend"),{},(0,y.hY)(e)).then(y.G5)}},{key:"listInvitations",value:function(t,e){var r="/invitations".concat((0,y.vl)(t));return this.client.get(r,(0,y.hY)(e)).then(y.G5)}},{key:"retrieveInvitation",value:function(t,e){return this.client.get("/invitations/".concat(t),(0,y.hY)(e)).then(y.G5)}},{key:"deleteInvitation",value:(r=o(u().mark((function t(e,r){return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.client.delete("/invitations/".concat(e),(0,y.hY)(r));case 2:case"end":return t.stop()}}),t,this)}))),function(t,e){return r.apply(this,arguments)})},{key:"listMembers",value:function(t,e){var r="/members".concat((0,y.vl)(t));return this.client.get(r,(0,y.hY)(e)).then(y.G5)}},{key:"deleteMember",value:(e=o(u().mark((function t(e,r){return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.client.delete("/members/".concat(e),(0,y.hY)(r));case 2:case"end":return t.stop()}}),t,this)}))),function(t,r){return e.apply(this,arguments)})}]),l}(v.BasisTheoryService)).build();function G(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 J(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?G(Object(r),!0).forEach((function(e){(0,a.Z)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):G(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var M={apiBaseUrl:y.w0,elements:!1,appInfo:{},httpsAgent:l().defaults.httpsAgent},F=function(){function t(){(0,i.Z)(this,t),(0,a.Z)(this,"_initStatus","not-started")}var e,r;return(0,s.Z)(t,[{key:"init",value:(r=o(u().mark((function t(e){var r,n,o,i,s,a=arguments;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=a.length>1&&void 0!==a[1]?a[1]:{},"not-started"===this._initStatus||"error"===this._initStatus){t.next=3;break}throw new Error("This BasisTheory instance has been already initialized.");case 3:this._initStatus="in-progress",t.prev=4,this._initOptions=Object.freeze(J(J({},M),r)),n=this._initOptions.apiBaseUrl,t.prev=7,"localhost"===(o=new URL(this.initOptions.apiBaseUrl)).hostname?o.protocol="http":o.protocol="https",n=o.toString().replace(/\/$/,""),t.next=16;break;case 13:throw t.prev=13,t.t0=t.catch(7),new Error("Invalid format for the given API base url.");case 16:if(i=this._initOptions.appInfo,!this._initOptions.elements){t.next=20;break}return t.next=20,this.loadElements(e);case 20:s=this._initOptions.httpsAgent,this._tokens=new(Z(this._elements))({apiKey:e,baseURL:new URL(y.hI.tokens,n).toString(),appInfo:i,httpsAgent:s}),this._tokenize=new(x(this._elements))({apiKey:e,baseURL:new URL(y.hI.tokenize,n).toString(),appInfo:i,httpsAgent:s}),this._applications=new b({apiKey:e,baseURL:new URL(y.hI.applications,n).toString(),appInfo:i,httpsAgent:s}),this._tenants=new z({apiKey:e,baseURL:new URL(y.hI.tenants,n).toString(),appInfo:i,httpsAgent:s}),this._logs=new L({apiKey:e,baseURL:new URL(y.hI.logs,n).toString(),appInfo:i,httpsAgent:s}),this._reactorFormulas=new N({apiKey:e,baseURL:new URL(y.hI.reactorFormulas,n).toString(),appInfo:i,httpsAgent:s}),this._reactors=new Y({apiKey:e,baseURL:new URL(y.hI.reactors,n).toString(),appInfo:i,httpsAgent:s}),this._permissions=new C({apiKey:e,baseURL:new URL(y.hI.permissions,n).toString(),appInfo:i,httpsAgent:s}),this._proxies=new U({apiKey:e,baseURL:new URL(y.hI.proxies,n).toString(),appInfo:i,httpsAgent:s}),this._proxy=new(A(this._elements))({apiKey:e,baseURL:new URL(y.hI.proxy,n).toString(),appInfo:i,httpsAgent:s}),this._sessions=new q({apiKey:e,baseURL:new URL(y.hI.sessions,n).toString(),appInfo:i,httpsAgent:s}),this._initStatus="done",t.next=39;break;case 35:throw t.prev=35,t.t1=t.catch(4),this._initStatus="error",t.t1;case 39:return t.abrupt("return",this);case 40:case"end":return t.stop()}}),t,this,[[4,35],[7,13]])}))),function(t){return r.apply(this,arguments)})},{key:"createElement",value:function(t,e){if(!this._elements)throw new Error("BasisTheory Elements was not properly initialized.");return this._elements.createElement(t,e)}},{key:"tokenize",value:function(t,e){return(0,y.eg)(this._tokenize).tokenize(t,e)}},{key:"loadElements",value:(e=o(u().mark((function t(e){var r,n;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:t.prev=0,r=new URL(this.initOptions.elementsBaseUrl||y.eh),t.next=7;break;case 4:throw t.prev=4,t.t0=t.catch(0),new Error("Invalid format for the given Elements base url.");case 7:return t.next=9,_(this.initOptions.elementsClientUrl);case 9:return n=t.sent,t.next=12,n.init(e,r.toString().replace(/\/$/,""));case 12:this.elements=n;case 13:case"end":return t.stop()}}),t,this,[[0,4]])}))),function(t){return e.apply(this,arguments)})},{key:"initOptions",get:function(){return(0,y.eg)(this._initOptions)}},{key:"tokens",get:function(){return(0,y.eg)(this._tokens)}},{key:"applications",get:function(){return(0,y.eg)(this._applications)}},{key:"tenants",get:function(){return(0,y.eg)(this._tenants)}},{key:"logs",get:function(){return(0,y.eg)(this._logs)}},{key:"reactorFormulas",get:function(){return(0,y.eg)(this._reactorFormulas)}},{key:"reactors",get:function(){return(0,y.eg)(this._reactors)}},{key:"permissions",get:function(){return(0,y.eg)(this._permissions)}},{key:"proxies",get:function(){return(0,y.eg)(this._proxies)}},{key:"proxy",get:function(){return(0,y.eg)(this._proxy)}},{key:"sessions",get:function(){return(0,y.eg)(this._sessions)}},{key:"elements",get:function(){return(0,y.eg)(this._elements)},set:function(t){this._elements=t}}]),t}(),V=new F},9688:(t,e,r)=>{"use strict";r.d(e,{l:()=>l});var n=r(6156),o=r(5991),i=r(6610),s=r(9669),a=r.n(s),c=r(2207);function u(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 f(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?u(Object(r),!0).forEach((function(e){(0,n.Z)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var l=(0,o.Z)((function t(e){var r;(0,i.Z)(this,t);var o=e.apiKey,s=e.baseURL,u=e.transformRequest,l=e.transformResponse,p=e.appInfo,h=e.httpsAgent;this.client=a().create({baseURL:s,headers:f((r={},(0,n.Z)(r,c.Yg,o),(0,n.Z)(r,c.kI,(0,c.yi)(p)),r),"undefined"==typeof window&&(0,n.Z)({},c.Mt,(0,c.lS)(p))),transformRequest:[].concat(u||c.pV,a().defaults.transformRequest),transformResponse:a().defaults.transformResponse.concat(l||c.NV),httpsAgent:h}),this.client.interceptors.response.use(void 0,c.ud)}))},8555:(t,e,r)=>{"use strict";r.d(e,{BasisTheoryService:()=>o.l});var n=r(9771);r.o(n,"BasisTheoryService")&&r.d(e,{BasisTheoryService:function(){return n.BasisTheoryService}});var o=r(9688)},9771:()=>{},2828:(t,e,r)=>{"use strict";const n=r(6900),o=r(834),i=new(r(1269))({maxSize:1e5}),s=t=>!("object"!=typeof t||null===t||t instanceof RegExp||t instanceof Error||t instanceof Date),a=(t,e)=>{if(!s(t))return t;e={deep:!1,pascalCase:!1,...e};const{exclude:r,pascalCase:a,stopPaths:c,deep:u}=e,f=new Set(c),l=t=>(e,c)=>{if(u&&s(c)){const r=void 0===t?e:`${t}.${e}`;f.has(r)||(c=n(c,l(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,c]};return n(t,l(void 0))};t.exports=(t,e)=>Array.isArray(t)?Object.keys(t).map((r=>a(t[r],e))):a(t,e)},834: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),t=Array.isArray(t)?t.map((t=>t.trim())).filter((t=>t.length)).join("-"):t.trim(),0===t.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},6900: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:s}=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[c,u]of Object.entries(t)){let[f,l]=e(c,u,t);o.deep&&r(l)&&(l=Array.isArray(l)?a(l):n(l,e,o,i)),s[f]=l}return s};t.exports=(t,r,o)=>{if(!e(t))throw new TypeError(`Expected an object, got \`${t}\` (${typeof t})`);return n(t,r,o)}},2970:(t,e,r)=>{t.exports=r(2970)},1269: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},5666:t=>{var e=function(t){"use strict";var e,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",a=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var o=e&&e.prototype instanceof v?e:v,i=Object.create(o.prototype),s=new S(n||[]);return i._invoke=function(t,e,r){var n=l;return function(o,i){if(n===h)throw new Error("Generator is already running");if(n===d){if("throw"===o)throw i;return A()}for(r.method=o,r.arg=i;;){var s=r.delegate;if(s){var a=k(s,r);if(a){if(a===y)continue;return a}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===l)throw n=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=h;var c=f(t,e,r);if("normal"===c.type){if(n=r.done?d:p,c.arg===y)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n=d,r.method="throw",r.arg=c.arg)}}}(t,r,s),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var l="suspendedStart",p="suspendedYield",h="executing",d="completed",y={};function v(){}function m(){}function g(){}var b={};b[i]=function(){return this};var w=Object.getPrototypeOf,O=w&&w(w(P([])));O&&O!==r&&n.call(O,i)&&(b=O);var x=g.prototype=v.prototype=Object.create(b);function R(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function r(o,i,s,a){var c=f(t[o],t,i);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,s,a)}),(function(t){r("throw",t,s,a)})):e.resolve(l).then((function(t){u.value=t,s(u)}),(function(t){return r("throw",t,s,a)}))}a(c.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 k(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,k(t,r),"throw"===r.method))return y;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return y}var o=f(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;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,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function E(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 Z(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function P(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,s=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 s.next=s}}return{next:A}}function A(){return{value:e,done:!0}}return m.prototype=x.constructor=g,g.constructor=m,m.displayName=c(g,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,c(t,a,"GeneratorFunction")),t.prototype=Object.create(x),t},t.awrap=function(t){return{__await:t}},R(j.prototype),j.prototype[s]=function(){return this},t.AsyncIterator=j,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var s=new j(u(e,r,n,o),i);return t.isGeneratorFunction(r)?s:s.next().then((function(t){return t.done?t.value:s.next()}))},R(x),c(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=P,S.prototype={constructor:S,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(Z),!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 s=this.tryEntries[i],a=s.completion;if("root"===s.tryLoc)return o("end");if(s.tryLoc<=this.prev){var c=n.call(s,"catchLoc"),u=n.call(s,"finallyLoc");if(c&&u){if(this.prev<s.catchLoc)return o(s.catchLoc,!0);if(this.prev<s.finallyLoc)return o(s.finallyLoc)}else if(c){if(this.prev<s.catchLoc)return o(s.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return o(s.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 s=i?i.completion:{};return s.type=t,s.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(s)},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),y},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),Z(r),y}},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;Z(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:P(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}(t.exports);try{regeneratorRuntime=e}catch(t){Function("r","regeneratorRuntime = r")(e)}},7118:(t,e,r)=>{"use strict";const n=r(1534),o=r(8573);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)}},1534: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:s}=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[c,u]of Object.entries(t)){let[f,l,{shouldRecurse:p=!0}={}]=e(c,u,t);"__proto__"!==f&&(o.deep&&p&&r(l)&&(l=Array.isArray(l)?a(l):n(l,e,o,i)),s[f]=l)}return s};t.exports=(t,r,o)=>{if(!e(t))throw new TypeError(`Expected an object, got \`${t}\` (${typeof t})`);return n(t,r,o)}},1788: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},8573:(t,e,r)=>{var n=r(7966);t.exports=function(t){return n(t).replace(/\s/g,"_")}},7966:(t,e,r)=>{var n=r(1788);t.exports=function(t){return n(t).replace(/[\W_]+(.|$)/g,(function(t,e){return e?" "+e:""})).trim()}}},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(764)})()._instance}));