skyflow-js 2.5.0-beta.1 → 2.5.0-beta.3

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.
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see index.js.LICENSE.txt */
2
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Skyflow",[],t):"object"==typeof exports?exports.Skyflow=t():e.Skyflow=t()}(this,(()=>(()=>{var e={841:e=>{"use strict";e.exports=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}},4148:(e,t,n)=>{"use strict";var r=n(5606),o=n(6763);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,a=function(e,t){if("object"!==i(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===i(a)?a:String(a)),r)}var o,a}function c(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var l,s,p=n(9597).codes,u=p.ERR_AMBIGUOUS_ARGUMENT,d=p.ERR_INVALID_ARG_TYPE,f=p.ERR_INVALID_ARG_VALUE,E=p.ERR_INVALID_RETURN_VALUE,_=p.ERR_MISSING_ARGS,m=n(3918),v=n(537).inspect,I=n(537).types,y=I.isPromise,O=I.isRegExp,g=n(1514)(),N=n(9394)(),L=n(8075)("RegExp.prototype.test");new Map;function h(){var e=n(2299);l=e.isDeepEqual,s=e.isDeepStrictEqual}var T=!1,b=e.exports=S,A={};function w(e){if(e.message instanceof Error)throw e.message;throw new m(e)}function R(e,t,n,r){if(!n){var o=!1;if(0===t)o=!0,r="No value argument passed to `assert.ok()`";else if(r instanceof Error)throw r;var i=new m({actual:n,expected:!0,message:r,operator:"==",stackStartFn:e});throw i.generatedMessage=o,i}}function S(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];R.apply(void 0,[S,t.length].concat(t))}b.fail=function e(t,n,i,a,c){var l,s=arguments.length;if(0===s)l="Failed";else if(1===s)i=t,t=void 0;else{if(!1===T)T=!0,(r.emitWarning?r.emitWarning:o.warn.bind(o))("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094");2===s&&(a="!=")}if(i instanceof Error)throw i;var p={actual:t,expected:n,operator:void 0===a?"fail":a,stackStartFn:c||e};void 0!==i&&(p.message=i);var u=new m(p);throw l&&(u.message=l,u.generatedMessage=!0),u},b.AssertionError=m,b.ok=S,b.equal=function e(t,n,r){if(arguments.length<2)throw new _("actual","expected");t!=n&&w({actual:t,expected:n,message:r,operator:"==",stackStartFn:e})},b.notEqual=function e(t,n,r){if(arguments.length<2)throw new _("actual","expected");t==n&&w({actual:t,expected:n,message:r,operator:"!=",stackStartFn:e})},b.deepEqual=function e(t,n,r){if(arguments.length<2)throw new _("actual","expected");void 0===l&&h(),l(t,n)||w({actual:t,expected:n,message:r,operator:"deepEqual",stackStartFn:e})},b.notDeepEqual=function e(t,n,r){if(arguments.length<2)throw new _("actual","expected");void 0===l&&h(),l(t,n)&&w({actual:t,expected:n,message:r,operator:"notDeepEqual",stackStartFn:e})},b.deepStrictEqual=function e(t,n,r){if(arguments.length<2)throw new _("actual","expected");void 0===l&&h(),s(t,n)||w({actual:t,expected:n,message:r,operator:"deepStrictEqual",stackStartFn:e})},b.notDeepStrictEqual=function e(t,n,r){if(arguments.length<2)throw new _("actual","expected");void 0===l&&h();s(t,n)&&w({actual:t,expected:n,message:r,operator:"notDeepStrictEqual",stackStartFn:e})},b.strictEqual=function e(t,n,r){if(arguments.length<2)throw new _("actual","expected");N(t,n)||w({actual:t,expected:n,message:r,operator:"strictEqual",stackStartFn:e})},b.notStrictEqual=function e(t,n,r){if(arguments.length<2)throw new _("actual","expected");N(t,n)&&w({actual:t,expected:n,message:r,operator:"notStrictEqual",stackStartFn:e})};var D=c((function e(t,n,r){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),n.forEach((function(e){e in t&&(void 0!==r&&"string"==typeof r[e]&&O(t[e])&&L(t[e],r[e])?o[e]=r[e]:o[e]=t[e])}))}));function x(e,t,n,r){if("function"!=typeof t){if(O(t))return L(t,e);if(2===arguments.length)throw new d("expected",["Function","RegExp"],t);if("object"!==i(e)||null===e){var o=new m({actual:e,expected:t,message:n,operator:"deepStrictEqual",stackStartFn:r});throw o.operator=r.name,o}var a=Object.keys(t);if(t instanceof Error)a.push("name","message");else if(0===a.length)throw new f("error",t,"may not be an empty object");return void 0===l&&h(),a.forEach((function(o){"string"==typeof e[o]&&O(t[o])&&L(t[o],e[o])||function(e,t,n,r,o,i){if(!(n in e)||!s(e[n],t[n])){if(!r){var a=new D(e,o),c=new D(t,o,e),l=new m({actual:a,expected:c,operator:"deepStrictEqual",stackStartFn:i});throw l.actual=e,l.expected=t,l.operator=i.name,l}w({actual:e,expected:t,message:r,operator:i.name,stackStartFn:i})}}(e,t,o,n,a,r)})),!0}return void 0!==t.prototype&&e instanceof t||!Error.isPrototypeOf(t)&&!0===t.call({},e)}function M(e){if("function"!=typeof e)throw new d("fn","Function",e);try{e()}catch(e){return e}return A}function C(e){return y(e)||null!==e&&"object"===i(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function P(e){return Promise.resolve().then((function(){var t;if("function"==typeof e){if(!C(t=e()))throw new E("instance of Promise","promiseFn",t)}else{if(!C(e))throw new d("promiseFn",["Function","Promise"],e);t=e}return Promise.resolve().then((function(){return t})).then((function(){return A})).catch((function(e){return e}))}))}function k(e,t,n,r){if("string"==typeof n){if(4===arguments.length)throw new d("error",["Object","Error","Function","RegExp"],n);if("object"===i(t)&&null!==t){if(t.message===n)throw new u("error/message",'The error message "'.concat(t.message,'" is identical to the message.'))}else if(t===n)throw new u("error/message",'The error "'.concat(t,'" is identical to the message.'));r=n,n=void 0}else if(null!=n&&"object"!==i(n)&&"function"!=typeof n)throw new d("error",["Object","Error","Function","RegExp"],n);if(t===A){var o="";n&&n.name&&(o+=" (".concat(n.name,")")),o+=r?": ".concat(r):".";var a="rejects"===e.name?"rejection":"exception";w({actual:void 0,expected:n,operator:e.name,message:"Missing expected ".concat(a).concat(o),stackStartFn:e})}if(n&&!x(t,n,r,e))throw t}function V(e,t,n,r){if(t!==A){if("string"==typeof n&&(r=n,n=void 0),!n||x(t,n)){var o=r?": ".concat(r):".",i="doesNotReject"===e.name?"rejection":"exception";w({actual:t,expected:n,operator:e.name,message:"Got unwanted ".concat(i).concat(o,"\n")+'Actual message: "'.concat(t&&t.message,'"'),stackStartFn:e})}throw t}}function j(e,t,n,r,o){if(!O(t))throw new d("regexp","RegExp",t);var a="match"===o;if("string"!=typeof e||L(t,e)!==a){if(n instanceof Error)throw n;var c=!n;n=n||("string"!=typeof e?'The "string" argument must be of type string. Received type '+"".concat(i(e)," (").concat(v(e),")"):(a?"The input did not match the regular expression ":"The input was expected to not match the regular expression ")+"".concat(v(t),". Input:\n\n").concat(v(e),"\n"));var l=new m({actual:e,expected:t,message:n,operator:o,stackStartFn:r});throw l.generatedMessage=c,l}}function U(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];R.apply(void 0,[U,t.length].concat(t))}b.throws=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];k.apply(void 0,[e,M(t)].concat(r))},b.rejects=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return P(t).then((function(t){return k.apply(void 0,[e,t].concat(r))}))},b.doesNotThrow=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];V.apply(void 0,[e,M(t)].concat(r))},b.doesNotReject=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return P(t).then((function(t){return V.apply(void 0,[e,t].concat(r))}))},b.ifError=function e(t){if(null!=t){var n="ifError got unwanted exception: ";"object"===i(t)&&"string"==typeof t.message?0===t.message.length&&t.constructor?n+=t.constructor.name:n+=t.message:n+=v(t);var r=new m({actual:t,expected:null,operator:"ifError",message:n,stackStartFn:e}),o=t.stack;if("string"==typeof o){var a=o.split("\n");a.shift();for(var c=r.stack.split("\n"),l=0;l<a.length;l++){var s=c.indexOf(a[l]);if(-1!==s){c=c.slice(0,s);break}}r.stack="".concat(c.join("\n"),"\n").concat(a.join("\n"))}throw r}},b.match=function e(t,n,r){j(t,n,r,e,"match")},b.doesNotMatch=function e(t,n,r){j(t,n,r,e,"doesNotMatch")},b.strict=g(U,b,{equal:b.strictEqual,deepEqual:b.deepStrictEqual,notEqual:b.notStrictEqual,notDeepEqual:b.notDeepStrictEqual}),b.strict.strict=b.strict},3918:(e,t,n)=>{"use strict";var r=n(5606);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e,t,n){return(t=l(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,l(r.key),r)}}function l(e){var t=function(e,t){if("object"!==m(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==m(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===m(t)?t:String(t)}function s(e,t){if(t&&("object"===m(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return p(e)}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e){var t="function"==typeof Map?new Map:void 0;return u=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return d(e,arguments,_(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),E(r,e)},u(e)}function d(e,t,n){return d=f()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&E(o,n.prototype),o},d.apply(null,arguments)}function f(){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(e){return!1}}function E(e,t){return E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},E(e,t)}function _(e){return _=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_(e)}function m(e){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}var v=n(537).inspect,I=n(9597).codes.ERR_INVALID_ARG_TYPE;function y(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}var O="",g="",N="",L="",h={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function T(e){var t=Object.keys(e),n=Object.create(Object.getPrototypeOf(e));return t.forEach((function(t){n[t]=e[t]})),Object.defineProperty(n,"message",{value:e.message}),n}function b(e){return v(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function A(e,t,n){var o="",i="",a=0,c="",l=!1,s=b(e),p=s.split("\n"),u=b(t).split("\n"),d=0,f="";if("strictEqual"===n&&"object"===m(e)&&"object"===m(t)&&null!==e&&null!==t&&(n="strictEqualObject"),1===p.length&&1===u.length&&p[0]!==u[0]){var E=p[0].length+u[0].length;if(E<=10){if(!("object"===m(e)&&null!==e||"object"===m(t)&&null!==t||0===e&&0===t))return"".concat(h[n],"\n\n")+"".concat(p[0]," !== ").concat(u[0],"\n")}else if("strictEqualObject"!==n){if(E<(r.stderr&&r.stderr.isTTY?r.stderr.columns:80)){for(;p[0][d]===u[0][d];)d++;d>2&&(f="\n ".concat(function(e,t){if(t=Math.floor(t),0==e.length||0==t)return"";var n=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+e.substring(0,n-e.length)}(" ",d),"^"),d=0)}}}for(var _=p[p.length-1],v=u[u.length-1];_===v&&(d++<2?c="\n ".concat(_).concat(c):o=_,p.pop(),u.pop(),0!==p.length&&0!==u.length);)_=p[p.length-1],v=u[u.length-1];var I=Math.max(p.length,u.length);if(0===I){var T=s.split("\n");if(T.length>30)for(T[26]="".concat(O,"...").concat(L);T.length>27;)T.pop();return"".concat(h.notIdentical,"\n\n").concat(T.join("\n"),"\n")}d>3&&(c="\n".concat(O,"...").concat(L).concat(c),l=!0),""!==o&&(c="\n ".concat(o).concat(c),o="");var A=0,w=h[n]+"\n".concat(g,"+ actual").concat(L," ").concat(N,"- expected").concat(L),R=" ".concat(O,"...").concat(L," Lines skipped");for(d=0;d<I;d++){var S=d-a;if(p.length<d+1)S>1&&d>2&&(S>4?(i+="\n".concat(O,"...").concat(L),l=!0):S>3&&(i+="\n ".concat(u[d-2]),A++),i+="\n ".concat(u[d-1]),A++),a=d,o+="\n".concat(N,"-").concat(L," ").concat(u[d]),A++;else if(u.length<d+1)S>1&&d>2&&(S>4?(i+="\n".concat(O,"...").concat(L),l=!0):S>3&&(i+="\n ".concat(p[d-2]),A++),i+="\n ".concat(p[d-1]),A++),a=d,i+="\n".concat(g,"+").concat(L," ").concat(p[d]),A++;else{var D=u[d],x=p[d],M=x!==D&&(!y(x,",")||x.slice(0,-1)!==D);M&&y(D,",")&&D.slice(0,-1)===x&&(M=!1,x+=","),M?(S>1&&d>2&&(S>4?(i+="\n".concat(O,"...").concat(L),l=!0):S>3&&(i+="\n ".concat(p[d-2]),A++),i+="\n ".concat(p[d-1]),A++),a=d,i+="\n".concat(g,"+").concat(L," ").concat(x),o+="\n".concat(N,"-").concat(L," ").concat(D),A+=2):(i+=o,o="",1!==S&&0!==d||(i+="\n ".concat(x),A++))}if(A>20&&d<I-2)return"".concat(w).concat(R,"\n").concat(i,"\n").concat(O,"...").concat(L).concat(o,"\n")+"".concat(O,"...").concat(L)}return"".concat(w).concat(l?R:"","\n").concat(i).concat(o).concat(c).concat(f)}var w=function(e,t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&E(e,t)}(y,e);var n,o,a,l,u,d=(n=y,o=f(),function(){var e,t=_(n);if(o){var r=_(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return s(this,e)});function y(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,y),"object"!==m(e)||null===e)throw new I("options","Object",e);var n=e.message,o=e.operator,i=e.stackStartFn,a=e.actual,c=e.expected,l=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=n)t=d.call(this,String(n));else if(r.stderr&&r.stderr.isTTY&&(r.stderr&&r.stderr.getColorDepth&&1!==r.stderr.getColorDepth()?(O="",g="",L="",N=""):(O="",g="",L="",N="")),"object"===m(a)&&null!==a&&"object"===m(c)&&null!==c&&"stack"in a&&a instanceof Error&&"stack"in c&&c instanceof Error&&(a=T(a),c=T(c)),"deepStrictEqual"===o||"strictEqual"===o)t=d.call(this,A(a,c,o));else if("notDeepStrictEqual"===o||"notStrictEqual"===o){var u=h[o],f=b(a).split("\n");if("notStrictEqual"===o&&"object"===m(a)&&null!==a&&(u=h.notStrictEqualObject),f.length>30)for(f[26]="".concat(O,"...").concat(L);f.length>27;)f.pop();t=1===f.length?d.call(this,"".concat(u," ").concat(f[0])):d.call(this,"".concat(u,"\n\n").concat(f.join("\n"),"\n"))}else{var E=b(a),_="",v=h[o];"notDeepEqual"===o||"notEqual"===o?(E="".concat(h[o],"\n\n").concat(E)).length>1024&&(E="".concat(E.slice(0,1021),"...")):(_="".concat(b(c)),E.length>512&&(E="".concat(E.slice(0,509),"...")),_.length>512&&(_="".concat(_.slice(0,509),"...")),"deepEqual"===o||"equal"===o?E="".concat(v,"\n\n").concat(E,"\n\nshould equal\n\n"):_=" ".concat(o," ").concat(_)),t=d.call(this,"".concat(E).concat(_))}return Error.stackTraceLimit=l,t.generatedMessage=!n,Object.defineProperty(p(t),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),t.code="ERR_ASSERTION",t.actual=a,t.expected=c,t.operator=o,Error.captureStackTrace&&Error.captureStackTrace(p(t),i),t.stack,t.name="AssertionError",s(t)}return a=y,(l=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:t,value:function(e,t){return v(this,i(i({},t),{},{customInspect:!1,depth:0}))}}])&&c(a.prototype,l),u&&c(a,u),Object.defineProperty(a,"prototype",{writable:!1}),y}(u(Error),v.custom);e.exports=w},9597:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(i=o.key,a=void 0,a=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(i,"string"),"symbol"===r(a)?a:String(a)),o)}var i,a}function i(e,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i(e,t)}function a(e){var t=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(e){return!1}}();return function(){var n,o=c(e);if(t){var i=c(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return function(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}var l,s,p={};function u(e,t,n){n||(n=Error);var r=function(n){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&i(e,t)}(p,n);var r,c,l,s=a(p);function p(n,r,o){var i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),i=s.call(this,function(e,n,r){return"string"==typeof t?t:t(e,n,r)}(n,r,o)),i.code=e,i}return r=p,c&&o(r.prototype,c),l&&o(r,l),Object.defineProperty(r,"prototype",{writable:!1}),r}(n);p[e]=r}function d(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map((function(e){return String(e)})),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}u("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),u("ERR_INVALID_ARG_TYPE",(function(e,t,o){var i,a,c,s;if(void 0===l&&(l=n(4148)),l("string"==typeof e,"'name' must be a string"),"string"==typeof t&&(a="not ",t.substr(!c||c<0?0:+c,a.length)===a)?(i="must not be",t=t.replace(/^not /,"")):i="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}(e," argument"))s="The ".concat(e," ").concat(i," ").concat(d(t,"type"));else{var p=function(e,t,n){return"number"!=typeof n&&(n=0),!(n+t.length>e.length)&&-1!==e.indexOf(t,n)}(e,".")?"property":"argument";s='The "'.concat(e,'" ').concat(p," ").concat(i," ").concat(d(t,"type"))}return s+=". Received type ".concat(r(o))}),TypeError),u("ERR_INVALID_ARG_VALUE",(function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===s&&(s=n(537));var o=s.inspect(t);return o.length>128&&(o="".concat(o.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(r,". Received ").concat(o)}),TypeError,RangeError),u("ERR_INVALID_RETURN_VALUE",(function(e,t,n){var o;return o=n&&n.constructor&&n.constructor.name?"instance of ".concat(n.constructor.name):"type ".concat(r(n)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(o,".")}),TypeError),u("ERR_MISSING_ARGS",(function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];void 0===l&&(l=n(4148)),l(t.length>0,"At least one arg needs to be specified");var o="The ",i=t.length;switch(t=t.map((function(e){return'"'.concat(e,'"')})),i){case 1:o+="".concat(t[0]," argument");break;case 2:o+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:o+=t.slice(0,i-1).join(", "),o+=", and ".concat(t[i-1]," arguments")}return"".concat(o," must be specified")}),TypeError),e.exports.codes=p},2299:(e,t,n)=>{"use strict";function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,c=[],l=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}var a=void 0!==/a/g.flags,c=function(e){var t=[];return e.forEach((function(e){return t.push(e)})),t},l=function(e){var t=[];return e.forEach((function(e,n){return t.push([n,e])})),t},s=Object.is?Object.is:n(7653),p=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},u=Number.isNaN?Number.isNaN:n(4133);function d(e){return e.call.bind(e)}var f=d(Object.prototype.hasOwnProperty),E=d(Object.prototype.propertyIsEnumerable),_=d(Object.prototype.toString),m=n(537).types,v=m.isAnyArrayBuffer,I=m.isArrayBufferView,y=m.isDate,O=m.isMap,g=m.isRegExp,N=m.isSet,L=m.isNativeError,h=m.isBoxedPrimitive,T=m.isNumberObject,b=m.isStringObject,A=m.isBooleanObject,w=m.isBigIntObject,R=m.isSymbolObject,S=m.isFloat32Array,D=m.isFloat64Array;function x(e){if(0===e.length||e.length>10)return!0;for(var t=0;t<e.length;t++){var n=e.charCodeAt(t);if(n<48||n>57)return!0}return 10===e.length&&e>=Math.pow(2,32)}function M(e){return Object.keys(e).filter(x).concat(p(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function C(e,t){if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0}function P(e,t,n,r){if(e===t)return 0!==e||(!n||s(e,t));if(n){if("object"!==i(e))return"number"==typeof e&&u(e)&&u(t);if("object"!==i(t)||null===e||null===t)return!1;if(Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1}else{if(null===e||"object"!==i(e))return(null===t||"object"!==i(t))&&e==t;if(null===t||"object"!==i(t))return!1}var o,c,l,p,d=_(e);if(d!==_(t))return!1;if(Array.isArray(e)){if(e.length!==t.length)return!1;var f=M(e),E=M(t);return f.length===E.length&&V(e,t,n,r,1,f)}if("[object Object]"===d&&(!O(e)&&O(t)||!N(e)&&N(t)))return!1;if(y(e)){if(!y(t)||Date.prototype.getTime.call(e)!==Date.prototype.getTime.call(t))return!1}else if(g(e)){if(!g(t)||(l=e,p=t,!(a?l.source===p.source&&l.flags===p.flags:RegExp.prototype.toString.call(l)===RegExp.prototype.toString.call(p))))return!1}else if(L(e)||e instanceof Error){if(e.message!==t.message||e.name!==t.name)return!1}else{if(I(e)){if(n||!S(e)&&!D(e)){if(!function(e,t){return e.byteLength===t.byteLength&&0===C(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}(e,t))return!1}else if(!function(e,t){if(e.byteLength!==t.byteLength)return!1;for(var n=0;n<e.byteLength;n++)if(e[n]!==t[n])return!1;return!0}(e,t))return!1;var m=M(e),x=M(t);return m.length===x.length&&V(e,t,n,r,0,m)}if(N(e))return!(!N(t)||e.size!==t.size)&&V(e,t,n,r,2);if(O(e))return!(!O(t)||e.size!==t.size)&&V(e,t,n,r,3);if(v(e)){if(c=t,(o=e).byteLength!==c.byteLength||0!==C(new Uint8Array(o),new Uint8Array(c)))return!1}else if(h(e)&&!function(e,t){return T(e)?T(t)&&s(Number.prototype.valueOf.call(e),Number.prototype.valueOf.call(t)):b(e)?b(t)&&String.prototype.valueOf.call(e)===String.prototype.valueOf.call(t):A(e)?A(t)&&Boolean.prototype.valueOf.call(e)===Boolean.prototype.valueOf.call(t):w(e)?w(t)&&BigInt.prototype.valueOf.call(e)===BigInt.prototype.valueOf.call(t):R(t)&&Symbol.prototype.valueOf.call(e)===Symbol.prototype.valueOf.call(t)}(e,t))return!1}return V(e,t,n,r,0)}function k(e,t){return t.filter((function(t){return E(e,t)}))}function V(e,t,n,o,a,s){if(5===arguments.length){s=Object.keys(e);var u=Object.keys(t);if(s.length!==u.length)return!1}for(var d=0;d<s.length;d++)if(!f(t,s[d]))return!1;if(n&&5===arguments.length){var _=p(e);if(0!==_.length){var m=0;for(d=0;d<_.length;d++){var v=_[d];if(E(e,v)){if(!E(t,v))return!1;s.push(v),m++}else if(E(t,v))return!1}var I=p(t);if(_.length!==I.length&&k(t,I).length!==m)return!1}else{var y=p(t);if(0!==y.length&&0!==k(t,y).length)return!1}}if(0===s.length&&(0===a||1===a&&0===e.length||0===e.size))return!0;if(void 0===o)o={val1:new Map,val2:new Map,position:0};else{var O=o.val1.get(e);if(void 0!==O){var g=o.val2.get(t);if(void 0!==g)return O===g}o.position++}o.val1.set(e,o.position),o.val2.set(t,o.position);var N=function(e,t,n,o,a,s){var p=0;if(2===s){if(!function(e,t,n,r){for(var o=null,a=c(e),l=0;l<a.length;l++){var s=a[l];if("object"===i(s)&&null!==s)null===o&&(o=new Set),o.add(s);else if(!t.has(s)){if(n)return!1;if(!F(e,t,s))return!1;null===o&&(o=new Set),o.add(s)}}if(null!==o){for(var p=c(t),u=0;u<p.length;u++){var d=p[u];if("object"===i(d)&&null!==d){if(!j(o,d,n,r))return!1}else if(!n&&!e.has(d)&&!j(o,d,n,r))return!1}return 0===o.size}return!0}(e,t,n,a))return!1}else if(3===s){if(!function(e,t,n,o){for(var a=null,c=l(e),s=0;s<c.length;s++){var p=r(c[s],2),u=p[0],d=p[1];if("object"===i(u)&&null!==u)null===a&&(a=new Set),a.add(u);else{var f=t.get(u);if(void 0===f&&!t.has(u)||!P(d,f,n,o)){if(n)return!1;if(!G(e,t,u,d,o))return!1;null===a&&(a=new Set),a.add(u)}}}if(null!==a){for(var E=l(t),_=0;_<E.length;_++){var m=r(E[_],2),v=m[0],I=m[1];if("object"===i(v)&&null!==v){if(!Y(a,e,v,I,n,o))return!1}else if(!(n||e.has(v)&&P(e.get(v),I,!1,o)||Y(a,e,v,I,!1,o)))return!1}return 0===a.size}return!0}(e,t,n,a))return!1}else if(1===s)for(;p<e.length;p++){if(!f(e,p)){if(f(t,p))return!1;for(var u=Object.keys(e);p<u.length;p++){var d=u[p];if(!f(t,d)||!P(e[d],t[d],n,a))return!1}return u.length===Object.keys(t).length}if(!f(t,p)||!P(e[p],t[p],n,a))return!1}for(p=0;p<o.length;p++){var E=o[p];if(!P(e[E],t[E],n,a))return!1}return!0}(e,t,n,s,o,a);return o.val1.delete(e),o.val2.delete(t),N}function j(e,t,n,r){for(var o=c(e),i=0;i<o.length;i++){var a=o[i];if(P(t,a,n,r))return e.delete(a),!0}return!1}function U(e){switch(i(e)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":e=+e;case"number":if(u(e))return!1}return!0}function F(e,t,n){var r=U(n);return null!=r?r:t.has(r)&&!e.has(r)}function G(e,t,n,r,o){var i=U(n);if(null!=i)return i;var a=t.get(i);return!(void 0===a&&!t.has(i)||!P(r,a,!1,o))&&(!e.has(i)&&P(r,a,!1,o))}function Y(e,t,n,r,o,i){for(var a=c(e),l=0;l<a.length;l++){var s=a[l];if(P(n,s,o,i)&&P(r,t.get(s),o,i))return e.delete(s),!0}return!1}e.exports={isDeepEqual:function(e,t){return P(e,t,false)},isDeepStrictEqual:function(e,t){return P(e,t,true)}}},8075:(e,t,n)=>{"use strict";var r=n(453),o=n(487),i=o(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&i(e,".prototype.")>-1?o(n):n}},487:(e,t,n)=>{"use strict";var r=n(6743),o=n(453),i=o("%Function.prototype.apply%"),a=o("%Function.prototype.call%"),c=o("%Reflect.apply%",!0)||r.call(a,i),l=o("%Object.getOwnPropertyDescriptor%",!0),s=o("%Object.defineProperty%",!0),p=o("%Math.max%");if(s)try{s({},"a",{value:1})}catch(e){s=null}e.exports=function(e){var t=c(r,a,arguments);l&&s&&(l(t,"length").configurable&&s(t,"length",{value:1+p(0,e.length-(arguments.length-1))}));return t};var u=function(){return c(r,i,arguments)};s?s(e.exports,"apply",{value:u}):e.exports.apply=u},6763:(e,t,n)=>{var r=n(537),o=n(4148);function i(){return(new Date).getTime()}var a,c=Array.prototype.slice,l={};a=void 0!==n.g&&n.g.console?n.g.console:"undefined"!=typeof window&&window.console?window.console:{};for(var s=[[function(){},"log"],[function(){a.log.apply(a,arguments)},"info"],[function(){a.log.apply(a,arguments)},"warn"],[function(){a.warn.apply(a,arguments)},"error"],[function(e){l[e]=i()},"time"],[function(e){var t=l[e];if(!t)throw new Error("No such label: "+e);delete l[e];var n=i()-t;a.log(e+": "+n+"ms")},"timeEnd"],[function(){var e=new Error;e.name="Trace",e.message=r.format.apply(null,arguments),a.error(e.stack)},"trace"],[function(e){a.log(r.inspect(e)+"\n")},"dir"],[function(e){if(!e){var t=c.call(arguments,1);o.ok(!1,r.format.apply(null,t))}},"assert"]],p=0;p<s.length;p++){var u=s[p],d=u[0],f=u[1];a[f]||(a[f]=d)}e.exports=a},41:(e,t,n)=>{"use strict";var r=n(592)(),o=n(453),i=r&&o("%Object.defineProperty%",!0),a=o("%SyntaxError%"),c=o("%TypeError%"),l=n(5795);e.exports=function(e,t,n){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new c("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new c("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new c("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new c("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new c("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new c("`loose`, if provided, must be a boolean");var r=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,s=arguments.length>5?arguments[5]:null,p=arguments.length>6&&arguments[6],u=!!l&&l(e,t);if(i)i(e,t,{configurable:null===s&&u?u.configurable:!s,enumerable:null===r&&u?u.enumerable:!r,value:n,writable:null===o&&u?u.writable:!o});else{if(!p&&(r||o||s))throw new a("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=n}}},8452:(e,t,n)=>{"use strict";var r=n(1189),o="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),i=Object.prototype.toString,a=Array.prototype.concat,c=n(41),l=n(592)(),s=function(e,t,n,r){if(t in e)if(!0===r){if(e[t]===n)return}else if("function"!=typeof(o=r)||"[object Function]"!==i.call(o)||!r())return;var o;l?c(e,t,n,!0):c(e,t,n)},p=function(e,t){var n=arguments.length>2?arguments[2]:{},i=r(t);o&&(i=a.call(i,Object.getOwnPropertySymbols(t)));for(var c=0;c<i.length;c+=1)s(e,i[c],t[i[c]],n[i[c]])};p.supportsDescriptors=!!l,e.exports=p},2682:(e,t,n)=>{"use strict";var r=n(9600),o=Object.prototype.toString,i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){if(!r(t))throw new TypeError("iterator must be a function");var a;arguments.length>=3&&(a=n),"[object Array]"===o.call(e)?function(e,t,n){for(var r=0,o=e.length;r<o;r++)i.call(e,r)&&(null==n?t(e[r],r,e):t.call(n,e[r],r,e))}(e,t,a):"string"==typeof e?function(e,t,n){for(var r=0,o=e.length;r<o;r++)null==n?t(e.charAt(r),r,e):t.call(n,e.charAt(r),r,e)}(e,t,a):function(e,t,n){for(var r in e)i.call(e,r)&&(null==n?t(e[r],r,e):t.call(n,e[r],r,e))}(e,t,a)}},6096:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Framebus=void 0;var r=n(9275),o=n(2926),i=n(9974),a=n(3678),c=n(6968),l=function(){function e(e){void 0===e&&(e="*"),this.origin=e}return e.target=function(t){return void 0===t&&(t="*"),new e(t)},e.prototype.include=function(e){return null!=e&&(null!=e.Window&&(e.constructor===e.Window&&(c.childWindows.push(e),!0)))},e.prototype.target=function(t){return e.target(t)},e.prototype.emit=function(e,t,n){var o=this.origin;if(r.isntString(e))return!1;if(r.isntString(o))return!1;"function"==typeof t&&(n=t,t=void 0);var c=a.packagePayload(e,o,t,n);return!!c&&(i.broadcast(window.top||window.self,c,o),!0)},e.prototype.on=function(e,t){var n=this.origin;return!o.subscriptionArgsInvalid(e,t,n)&&(c.subscribers[n]=c.subscribers[n]||{},c.subscribers[n][e]=c.subscribers[n][e]||[],c.subscribers[n][e].push(t),!0)},e.prototype.off=function(e,t){var n=this.origin;if(o.subscriptionArgsInvalid(e,t,n))return!1;var r=c.subscribers[n]&&c.subscribers[n][e];if(!r)return!1;for(var i=0;i<r.length;i++)if(r[i]===t)return r.splice(i,1),!0;return!1},e}();t.Framebus=l},2281:(e,t,n)=>{"use strict";var r=n(7920),o=new(n(6096).Framebus);r.attach(),e.exports=o},7920:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.detach=t.attach=void 0;var r=n(3610),o=!1;t.attach=function(){o||"undefined"==typeof window||(o=!0,window.addEventListener("message",r.onmessage,!1))},t.detach=function(){o=!1,window.removeEventListener("message",r.onmessage,!1)}},1117:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.broadcastToChildWindows=void 0;var r=n(9974),o=n(6968);t.broadcastToChildWindows=function(e,t,n){for(var i=o.childWindows.length-1;i>=0;i--){var a=o.childWindows[i];a.closed?o.childWindows.splice(i,1):n!==a&&r.broadcast(a.top,e,t)}}},9974:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.broadcast=void 0;var r=n(5213);t.broadcast=function e(t,n,o){var i,a=0;try{for(t.postMessage(n,o),r.hasOpener(t)&&e(t.opener.top,n,o);i=t.frames[a];)e(i,n,o),a++}catch(e){}}},6968:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.subscribers=t.childWindows=t.prefix=void 0,t.prefix="/*framebus*/",t.childWindows=[],t.subscribers={}},9923:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dispatch=void 0;var r=n(6968);t.dispatch=function(e,t,n,o,i){if(r.subscribers[e]&&r.subscribers[e][t]){var a=[];n&&a.push(n),o&&a.push(o);for(var c=0;c<r.subscribers[e][t].length;c++)r.subscribers[e][t][c].apply(i,a)}}},5213:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasOpener=void 0,t.hasOpener=function(e){return e.top===e&&(null!=e.opener&&(e.opener!==e&&!0!==e.opener.closed))}},9275:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isntString=void 0,t.isntString=function(e){return"string"!=typeof e}},3610:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.onmessage=void 0;var r=n(9275),o=n(9752),i=n(9923),a=n(1117);t.onmessage=function(e){if(!r.isntString(e.data)){var t=o.unpackPayload(e);if(t){var n=t.eventData,c=t.reply;i.dispatch("*",t.event,n,c,e),i.dispatch(e.origin,t.event,n,c,e),a.broadcastToChildWindows(e.data,t.origin,e.source)}}}},3678:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packagePayload=void 0;var r=n(5159),o=n(6968);t.packagePayload=function(e,t,n,i){var a,c={event:e,origin:t};"function"==typeof i&&(c.reply=r.subscribeReplier(i,t)),c.eventData=n;try{a=o.prefix+JSON.stringify(c)}catch(e){throw new Error("Could not stringify event: "+e.message)}return a}},5159:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.subscribeReplier=void 0;var o=n(6096),i=r(n(841));t.subscribeReplier=function(e,t){var n=i.default();return o.Framebus.target(t).on(n,(function r(i,a){e(i,a),o.Framebus.target(t).off(n,r)})),n}},2926:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.subscriptionArgsInvalid=void 0;var r=n(9275);t.subscriptionArgsInvalid=function(e,t,n){return!!r.isntString(e)||("function"!=typeof t||r.isntString(n))}},9752:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.unpackPayload=void 0;var r=n(6968),o=n(3678);t.unpackPayload=function(e){var t;if(e.data.slice(0,r.prefix.length)!==r.prefix)return!1;try{t=JSON.parse(e.data.slice(r.prefix.length))}catch(e){return!1}if(t.reply){var n=e.origin,i=e.source,a=t.reply;t.reply=function(e){if(i){var t=o.packagePayload(a,n,e);t&&i.postMessage(t,n)}}}return t}},9353:e=>{"use strict";var t=Array.prototype.slice,n=Object.prototype.toString;e.exports=function(e){var r=this;if("function"!=typeof r||"[object Function]"!==n.call(r))throw new TypeError("Function.prototype.bind called on incompatible "+r);for(var o,i=t.call(arguments,1),a=Math.max(0,r.length-i.length),c=[],l=0;l<a;l++)c.push("$"+l);if(o=Function("binder","return function ("+c.join(",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof o){var n=r.apply(this,i.concat(t.call(arguments)));return Object(n)===n?n:this}return r.apply(e,i.concat(t.call(arguments)))})),r.prototype){var s=function(){};s.prototype=r.prototype,o.prototype=new s,s.prototype=null}return o}},6743:(e,t,n)=>{"use strict";var r=n(9353);e.exports=Function.prototype.bind||r},453:(e,t,n)=>{"use strict";var r,o=SyntaxError,i=Function,a=TypeError,c=function(e){try{return i('"use strict"; return ('+e+").constructor;")()}catch(e){}},l=Object.getOwnPropertyDescriptor;if(l)try{l({},"")}catch(e){l=null}var s=function(){throw new a},p=l?function(){try{return s}catch(e){try{return l(arguments,"callee").get}catch(e){return s}}}():s,u=n(4039)(),d=n(24)(),f=Object.getPrototypeOf||(d?function(e){return e.__proto__}:null),E={},_="undefined"!=typeof Uint8Array&&f?f(Uint8Array):r,m={"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":u&&f?f([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":E,"%AsyncGenerator%":E,"%AsyncGeneratorFunction%":E,"%AsyncIteratorPrototype%":E,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":E,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":u&&f?f(f([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&u&&f?f((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&u&&f?f((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":u&&f?f(""[Symbol.iterator]()):r,"%Symbol%":u?Symbol:r,"%SyntaxError%":o,"%ThrowTypeError%":p,"%TypedArray%":_,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet};if(f)try{null.error}catch(e){var v=f(f(e));m["%Error.prototype%"]=v}var I=function e(t){var n;if("%AsyncFunction%"===t)n=c("async function () {}");else if("%GeneratorFunction%"===t)n=c("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=c("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&f&&(n=f(o.prototype))}return m[t]=n,n},y={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},O=n(6743),g=n(9030),N=O.call(Function.call,Array.prototype.concat),L=O.call(Function.apply,Array.prototype.splice),h=O.call(Function.call,String.prototype.replace),T=O.call(Function.call,String.prototype.slice),b=O.call(Function.call,RegExp.prototype.exec),A=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,w=/\\(\\)?/g,R=function(e,t){var n,r=e;if(g(y,r)&&(r="%"+(n=y[r])[0]+"%"),g(m,r)){var i=m[r];if(i===E&&(i=I(r)),void 0===i&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new o("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new a('"allowMissing" argument must be a boolean');if(null===b(/^%?[^%]*%?$/,e))throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=T(e,0,1),n=T(e,-1);if("%"===t&&"%"!==n)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new o("invalid intrinsic syntax, expected opening `%`");var r=[];return h(e,A,(function(e,t,n,o){r[r.length]=n?h(o,w,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",i=R("%"+r+"%",t),c=i.name,s=i.value,p=!1,u=i.alias;u&&(r=u[0],L(n,N([0,1],u)));for(var d=1,f=!0;d<n.length;d+=1){var E=n[d],_=T(E,0,1),v=T(E,-1);if(('"'===_||"'"===_||"`"===_||'"'===v||"'"===v||"`"===v)&&_!==v)throw new o("property names with quotes must have matching quotes");if("constructor"!==E&&f||(p=!0),g(m,c="%"+(r+="."+E)+"%"))s=m[c];else if(null!=s){if(!(E in s)){if(!t)throw new a("base intrinsic for "+e+" exists, but the property is not available.");return}if(l&&d+1>=n.length){var I=l(s,E);s=(f=!!I)&&"get"in I&&!("originalValue"in I.get)?I.get:s[E]}else f=g(s,E),s=s[E];f&&!p&&(m[c]=s)}}return s}},5795:(e,t,n)=>{"use strict";var r=n(453)("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(e){r=null}e.exports=r},592:(e,t,n)=>{"use strict";var r=n(453)("%Object.defineProperty%",!0),o=function(){if(r)try{return r({},"a",{value:1}),!0}catch(e){return!1}return!1};o.hasArrayLengthDefineBug=function(){if(!o())return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},e.exports=o},24:e=>{"use strict";var t={foo:{}},n=Object;e.exports=function(){return{__proto__:t}.foo===t.foo&&!({__proto__:null}instanceof n)}},4039:(e,t,n)=>{"use strict";var r="undefined"!=typeof Symbol&&Symbol,o=n(1333);e.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&o())))}},1333:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},9092:(e,t,n)=>{"use strict";var r=n(1333);e.exports=function(){return r()&&!!Symbol.toStringTag}},9030:(e,t,n)=>{"use strict";var r=n(6743);e.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},6698:e=>{"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},7244:(e,t,n)=>{"use strict";var r=n(9092)(),o=n(8075)("Object.prototype.toString"),i=function(e){return!(r&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===o(e)},a=function(e){return!!i(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==o(e)&&"[object Function]"===o(e.callee)},c=function(){return i(arguments)}();i.isLegacyArguments=a,e.exports=c?i:a},9600:e=>{"use strict";var t,n,r=Function.prototype.toString,o="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof o&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw n}}),n={},o((function(){throw 42}),null,t)}catch(e){e!==n&&(o=null)}else o=null;var i=/^\s*class\b/,a=function(e){try{var t=r.call(e);return i.test(t)}catch(e){return!1}},c=function(e){try{return!a(e)&&(r.call(e),!0)}catch(e){return!1}},l=Object.prototype.toString,s="function"==typeof Symbol&&!!Symbol.toStringTag,p=!(0 in[,]),u=function(){return!1};if("object"==typeof document){var d=document.all;l.call(d)===l.call(document.all)&&(u=function(e){if((p||!e)&&(void 0===e||"object"==typeof e))try{var t=l.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(e){}return!1})}e.exports=o?function(e){if(u(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;try{o(e,null,t)}catch(e){if(e!==n)return!1}return!a(e)&&c(e)}:function(e){if(u(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(s)return c(e);if(a(e))return!1;var t=l.call(e);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&c(e)}},8184:(e,t,n)=>{"use strict";var r,o=Object.prototype.toString,i=Function.prototype.toString,a=/^\s*(?:function)?\*/,c=n(9092)(),l=Object.getPrototypeOf;e.exports=function(e){if("function"!=typeof e)return!1;if(a.test(i.call(e)))return!0;if(!c)return"[object GeneratorFunction]"===o.call(e);if(!l)return!1;if(void 0===r){var t=function(){if(!c)return!1;try{return Function("return function*() {}")()}catch(e){}}();r=!!t&&l(t)}return l(e)===r}},3003:e=>{"use strict";e.exports=function(e){return e!=e}},4133:(e,t,n)=>{"use strict";var r=n(487),o=n(8452),i=n(3003),a=n(6642),c=n(2464),l=r(a(),Number);o(l,{getPolyfill:a,implementation:i,shim:c}),e.exports=l},6642:(e,t,n)=>{"use strict";var r=n(3003);e.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:r}},2464:(e,t,n)=>{"use strict";var r=n(8452),o=n(6642);e.exports=function(){var e=o();return r(Number,{isNaN:e},{isNaN:function(){return Number.isNaN!==e}}),e}},5680:(e,t,n)=>{"use strict";var r=n(5767);e.exports=function(e){return!!r(e)}},7721:e=>{e.exports=function(e,t){for(var n,r=-1,o=e.length;++r<o;){var i=t(e[r]);void 0!==i&&(n=void 0===n?i:n+i)}return n}},3488:e=>{e.exports=function(e){return e}},6119:(e,t,n)=>{var r=n(7721),o=n(3488);e.exports=function(e){return e&&e.length?r(e,o):0}},8673:e=>{"use strict";function t(){this._types=Object.create(null),this._extensions=Object.create(null);for(let e=0;e<arguments.length;e++)this.define(arguments[e]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}t.prototype.define=function(e,t){for(let n in e){let r=e[n].map((function(e){return e.toLowerCase()}));n=n.toLowerCase();for(let e=0;e<r.length;e++){const o=r[e];if("*"!==o[0]){if(!t&&o in this._types)throw new Error('Attempt to change mapping for "'+o+'" extension from "'+this._types[o]+'" to "'+n+'". Pass `force=true` to allow this, otherwise remove "'+o+'" from the list of extensions for "'+n+'".');this._types[o]=n}}if(t||!this._extensions[n]){const e=r[0];this._extensions[n]="*"!==e[0]?e:e.substr(1)}}},t.prototype.getType=function(e){let t=(e=String(e)).replace(/^.*[/\\]/,"").toLowerCase(),n=t.replace(/^.*\./,"").toLowerCase(),r=t.length<e.length;return(n.length<t.length-1||!r)&&this._types[n]||null},t.prototype.getExtension=function(e){return(e=/^\s*([^;\s]*)/.test(e)&&RegExp.$1)&&this._extensions[e.toLowerCase()]||null},e.exports=t},125:(e,t,n)=>{"use strict";let r=n(8673);e.exports=new r(n(8446),n(1453))},1453:e=>{e.exports={"application/prs.cww":["cww"],"application/vnd.1000minds.decision-model+xml":["1km"],"application/vnd.3gpp.pic-bw-large":["plb"],"application/vnd.3gpp.pic-bw-small":["psb"],"application/vnd.3gpp.pic-bw-var":["pvb"],"application/vnd.3gpp2.tcap":["tcap"],"application/vnd.3m.post-it-notes":["pwn"],"application/vnd.accpac.simply.aso":["aso"],"application/vnd.accpac.simply.imp":["imp"],"application/vnd.acucobol":["acu"],"application/vnd.acucorp":["atc","acutc"],"application/vnd.adobe.air-application-installer-package+zip":["air"],"application/vnd.adobe.formscentral.fcdt":["fcdt"],"application/vnd.adobe.fxp":["fxp","fxpl"],"application/vnd.adobe.xdp+xml":["xdp"],"application/vnd.adobe.xfdf":["xfdf"],"application/vnd.ahead.space":["ahead"],"application/vnd.airzip.filesecure.azf":["azf"],"application/vnd.airzip.filesecure.azs":["azs"],"application/vnd.amazon.ebook":["azw"],"application/vnd.americandynamics.acc":["acc"],"application/vnd.amiga.ami":["ami"],"application/vnd.android.package-archive":["apk"],"application/vnd.anser-web-certificate-issue-initiation":["cii"],"application/vnd.anser-web-funds-transfer-initiation":["fti"],"application/vnd.antix.game-component":["atx"],"application/vnd.apple.installer+xml":["mpkg"],"application/vnd.apple.keynote":["key"],"application/vnd.apple.mpegurl":["m3u8"],"application/vnd.apple.numbers":["numbers"],"application/vnd.apple.pages":["pages"],"application/vnd.apple.pkpass":["pkpass"],"application/vnd.aristanetworks.swi":["swi"],"application/vnd.astraea-software.iota":["iota"],"application/vnd.audiograph":["aep"],"application/vnd.balsamiq.bmml+xml":["bmml"],"application/vnd.blueice.multipass":["mpm"],"application/vnd.bmi":["bmi"],"application/vnd.businessobjects":["rep"],"application/vnd.chemdraw+xml":["cdxml"],"application/vnd.chipnuts.karaoke-mmd":["mmd"],"application/vnd.cinderella":["cdy"],"application/vnd.citationstyles.style+xml":["csl"],"application/vnd.claymore":["cla"],"application/vnd.cloanto.rp9":["rp9"],"application/vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"application/vnd.cluetrust.cartomobile-config":["c11amc"],"application/vnd.cluetrust.cartomobile-config-pkg":["c11amz"],"application/vnd.commonspace":["csp"],"application/vnd.contact.cmsg":["cdbcmsg"],"application/vnd.cosmocaller":["cmc"],"application/vnd.crick.clicker":["clkx"],"application/vnd.crick.clicker.keyboard":["clkk"],"application/vnd.crick.clicker.palette":["clkp"],"application/vnd.crick.clicker.template":["clkt"],"application/vnd.crick.clicker.wordbank":["clkw"],"application/vnd.criticaltools.wbs+xml":["wbs"],"application/vnd.ctc-posml":["pml"],"application/vnd.cups-ppd":["ppd"],"application/vnd.curl.car":["car"],"application/vnd.curl.pcurl":["pcurl"],"application/vnd.dart":["dart"],"application/vnd.data-vision.rdz":["rdz"],"application/vnd.dbf":["dbf"],"application/vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"application/vnd.dece.ttml+xml":["uvt","uvvt"],"application/vnd.dece.unspecified":["uvx","uvvx"],"application/vnd.dece.zip":["uvz","uvvz"],"application/vnd.denovo.fcselayout-link":["fe_launch"],"application/vnd.dna":["dna"],"application/vnd.dolby.mlp":["mlp"],"application/vnd.dpgraph":["dpg"],"application/vnd.dreamfactory":["dfac"],"application/vnd.ds-keypoint":["kpxx"],"application/vnd.dvb.ait":["ait"],"application/vnd.dvb.service":["svc"],"application/vnd.dynageo":["geo"],"application/vnd.ecowin.chart":["mag"],"application/vnd.enliven":["nml"],"application/vnd.epson.esf":["esf"],"application/vnd.epson.msf":["msf"],"application/vnd.epson.quickanime":["qam"],"application/vnd.epson.salt":["slt"],"application/vnd.epson.ssf":["ssf"],"application/vnd.eszigno3+xml":["es3","et3"],"application/vnd.ezpix-album":["ez2"],"application/vnd.ezpix-package":["ez3"],"application/vnd.fdf":["fdf"],"application/vnd.fdsn.mseed":["mseed"],"application/vnd.fdsn.seed":["seed","dataless"],"application/vnd.flographit":["gph"],"application/vnd.fluxtime.clip":["ftc"],"application/vnd.framemaker":["fm","frame","maker","book"],"application/vnd.frogans.fnc":["fnc"],"application/vnd.frogans.ltf":["ltf"],"application/vnd.fsc.weblaunch":["fsc"],"application/vnd.fujitsu.oasys":["oas"],"application/vnd.fujitsu.oasys2":["oa2"],"application/vnd.fujitsu.oasys3":["oa3"],"application/vnd.fujitsu.oasysgp":["fg5"],"application/vnd.fujitsu.oasysprs":["bh2"],"application/vnd.fujixerox.ddd":["ddd"],"application/vnd.fujixerox.docuworks":["xdw"],"application/vnd.fujixerox.docuworks.binder":["xbd"],"application/vnd.fuzzysheet":["fzs"],"application/vnd.genomatix.tuxedo":["txd"],"application/vnd.geogebra.file":["ggb"],"application/vnd.geogebra.tool":["ggt"],"application/vnd.geometry-explorer":["gex","gre"],"application/vnd.geonext":["gxt"],"application/vnd.geoplan":["g2w"],"application/vnd.geospace":["g3w"],"application/vnd.gmx":["gmx"],"application/vnd.google-apps.document":["gdoc"],"application/vnd.google-apps.presentation":["gslides"],"application/vnd.google-apps.spreadsheet":["gsheet"],"application/vnd.google-earth.kml+xml":["kml"],"application/vnd.google-earth.kmz":["kmz"],"application/vnd.grafeq":["gqf","gqs"],"application/vnd.groove-account":["gac"],"application/vnd.groove-help":["ghf"],"application/vnd.groove-identity-message":["gim"],"application/vnd.groove-injector":["grv"],"application/vnd.groove-tool-message":["gtm"],"application/vnd.groove-tool-template":["tpl"],"application/vnd.groove-vcard":["vcg"],"application/vnd.hal+xml":["hal"],"application/vnd.handheld-entertainment+xml":["zmm"],"application/vnd.hbci":["hbci"],"application/vnd.hhe.lesson-player":["les"],"application/vnd.hp-hpgl":["hpgl"],"application/vnd.hp-hpid":["hpid"],"application/vnd.hp-hps":["hps"],"application/vnd.hp-jlyt":["jlt"],"application/vnd.hp-pcl":["pcl"],"application/vnd.hp-pclxl":["pclxl"],"application/vnd.hydrostatix.sof-data":["sfd-hdstx"],"application/vnd.ibm.minipay":["mpy"],"application/vnd.ibm.modcap":["afp","listafp","list3820"],"application/vnd.ibm.rights-management":["irm"],"application/vnd.ibm.secure-container":["sc"],"application/vnd.iccprofile":["icc","icm"],"application/vnd.igloader":["igl"],"application/vnd.immervision-ivp":["ivp"],"application/vnd.immervision-ivu":["ivu"],"application/vnd.insors.igm":["igm"],"application/vnd.intercon.formnet":["xpw","xpx"],"application/vnd.intergeo":["i2g"],"application/vnd.intu.qbo":["qbo"],"application/vnd.intu.qfx":["qfx"],"application/vnd.ipunplugged.rcprofile":["rcprofile"],"application/vnd.irepository.package+xml":["irp"],"application/vnd.is-xpr":["xpr"],"application/vnd.isac.fcs":["fcs"],"application/vnd.jam":["jam"],"application/vnd.jcp.javame.midlet-rms":["rms"],"application/vnd.jisp":["jisp"],"application/vnd.joost.joda-archive":["joda"],"application/vnd.kahootz":["ktz","ktr"],"application/vnd.kde.karbon":["karbon"],"application/vnd.kde.kchart":["chrt"],"application/vnd.kde.kformula":["kfo"],"application/vnd.kde.kivio":["flw"],"application/vnd.kde.kontour":["kon"],"application/vnd.kde.kpresenter":["kpr","kpt"],"application/vnd.kde.kspread":["ksp"],"application/vnd.kde.kword":["kwd","kwt"],"application/vnd.kenameaapp":["htke"],"application/vnd.kidspiration":["kia"],"application/vnd.kinar":["kne","knp"],"application/vnd.koan":["skp","skd","skt","skm"],"application/vnd.kodak-descriptor":["sse"],"application/vnd.las.las+xml":["lasxml"],"application/vnd.llamagraphics.life-balance.desktop":["lbd"],"application/vnd.llamagraphics.life-balance.exchange+xml":["lbe"],"application/vnd.lotus-1-2-3":["123"],"application/vnd.lotus-approach":["apr"],"application/vnd.lotus-freelance":["pre"],"application/vnd.lotus-notes":["nsf"],"application/vnd.lotus-organizer":["org"],"application/vnd.lotus-screencam":["scm"],"application/vnd.lotus-wordpro":["lwp"],"application/vnd.macports.portpkg":["portpkg"],"application/vnd.mapbox-vector-tile":["mvt"],"application/vnd.mcd":["mcd"],"application/vnd.medcalcdata":["mc1"],"application/vnd.mediastation.cdkey":["cdkey"],"application/vnd.mfer":["mwf"],"application/vnd.mfmp":["mfm"],"application/vnd.micrografx.flo":["flo"],"application/vnd.micrografx.igx":["igx"],"application/vnd.mif":["mif"],"application/vnd.mobius.daf":["daf"],"application/vnd.mobius.dis":["dis"],"application/vnd.mobius.mbk":["mbk"],"application/vnd.mobius.mqy":["mqy"],"application/vnd.mobius.msl":["msl"],"application/vnd.mobius.plc":["plc"],"application/vnd.mobius.txf":["txf"],"application/vnd.mophun.application":["mpn"],"application/vnd.mophun.certificate":["mpc"],"application/vnd.mozilla.xul+xml":["xul"],"application/vnd.ms-artgalry":["cil"],"application/vnd.ms-cab-compressed":["cab"],"application/vnd.ms-excel":["xls","xlm","xla","xlc","xlt","xlw"],"application/vnd.ms-excel.addin.macroenabled.12":["xlam"],"application/vnd.ms-excel.sheet.binary.macroenabled.12":["xlsb"],"application/vnd.ms-excel.sheet.macroenabled.12":["xlsm"],"application/vnd.ms-excel.template.macroenabled.12":["xltm"],"application/vnd.ms-fontobject":["eot"],"application/vnd.ms-htmlhelp":["chm"],"application/vnd.ms-ims":["ims"],"application/vnd.ms-lrm":["lrm"],"application/vnd.ms-officetheme":["thmx"],"application/vnd.ms-outlook":["msg"],"application/vnd.ms-pki.seccat":["cat"],"application/vnd.ms-pki.stl":["*stl"],"application/vnd.ms-powerpoint":["ppt","pps","pot"],"application/vnd.ms-powerpoint.addin.macroenabled.12":["ppam"],"application/vnd.ms-powerpoint.presentation.macroenabled.12":["pptm"],"application/vnd.ms-powerpoint.slide.macroenabled.12":["sldm"],"application/vnd.ms-powerpoint.slideshow.macroenabled.12":["ppsm"],"application/vnd.ms-powerpoint.template.macroenabled.12":["potm"],"application/vnd.ms-project":["mpp","mpt"],"application/vnd.ms-word.document.macroenabled.12":["docm"],"application/vnd.ms-word.template.macroenabled.12":["dotm"],"application/vnd.ms-works":["wps","wks","wcm","wdb"],"application/vnd.ms-wpl":["wpl"],"application/vnd.ms-xpsdocument":["xps"],"application/vnd.mseq":["mseq"],"application/vnd.musician":["mus"],"application/vnd.muvee.style":["msty"],"application/vnd.mynfc":["taglet"],"application/vnd.neurolanguage.nlu":["nlu"],"application/vnd.nitf":["ntf","nitf"],"application/vnd.noblenet-directory":["nnd"],"application/vnd.noblenet-sealer":["nns"],"application/vnd.noblenet-web":["nnw"],"application/vnd.nokia.n-gage.ac+xml":["*ac"],"application/vnd.nokia.n-gage.data":["ngdat"],"application/vnd.nokia.n-gage.symbian.install":["n-gage"],"application/vnd.nokia.radio-preset":["rpst"],"application/vnd.nokia.radio-presets":["rpss"],"application/vnd.novadigm.edm":["edm"],"application/vnd.novadigm.edx":["edx"],"application/vnd.novadigm.ext":["ext"],"application/vnd.oasis.opendocument.chart":["odc"],"application/vnd.oasis.opendocument.chart-template":["otc"],"application/vnd.oasis.opendocument.database":["odb"],"application/vnd.oasis.opendocument.formula":["odf"],"application/vnd.oasis.opendocument.formula-template":["odft"],"application/vnd.oasis.opendocument.graphics":["odg"],"application/vnd.oasis.opendocument.graphics-template":["otg"],"application/vnd.oasis.opendocument.image":["odi"],"application/vnd.oasis.opendocument.image-template":["oti"],"application/vnd.oasis.opendocument.presentation":["odp"],"application/vnd.oasis.opendocument.presentation-template":["otp"],"application/vnd.oasis.opendocument.spreadsheet":["ods"],"application/vnd.oasis.opendocument.spreadsheet-template":["ots"],"application/vnd.oasis.opendocument.text":["odt"],"application/vnd.oasis.opendocument.text-master":["odm"],"application/vnd.oasis.opendocument.text-template":["ott"],"application/vnd.oasis.opendocument.text-web":["oth"],"application/vnd.olpc-sugar":["xo"],"application/vnd.oma.dd2+xml":["dd2"],"application/vnd.openblox.game+xml":["obgx"],"application/vnd.openofficeorg.extension":["oxt"],"application/vnd.openstreetmap.data+xml":["osm"],"application/vnd.openxmlformats-officedocument.presentationml.presentation":["pptx"],"application/vnd.openxmlformats-officedocument.presentationml.slide":["sldx"],"application/vnd.openxmlformats-officedocument.presentationml.slideshow":["ppsx"],"application/vnd.openxmlformats-officedocument.presentationml.template":["potx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":["xlsx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.template":["xltx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":["docx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.template":["dotx"],"application/vnd.osgeo.mapguide.package":["mgp"],"application/vnd.osgi.dp":["dp"],"application/vnd.osgi.subsystem":["esa"],"application/vnd.palm":["pdb","pqa","oprc"],"application/vnd.pawaafile":["paw"],"application/vnd.pg.format":["str"],"application/vnd.pg.osasli":["ei6"],"application/vnd.picsel":["efif"],"application/vnd.pmi.widget":["wg"],"application/vnd.pocketlearn":["plf"],"application/vnd.powerbuilder6":["pbd"],"application/vnd.previewsystems.box":["box"],"application/vnd.proteus.magazine":["mgz"],"application/vnd.publishare-delta-tree":["qps"],"application/vnd.pvi.ptid1":["ptid"],"application/vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"application/vnd.rar":["rar"],"application/vnd.realvnc.bed":["bed"],"application/vnd.recordare.musicxml":["mxl"],"application/vnd.recordare.musicxml+xml":["musicxml"],"application/vnd.rig.cryptonote":["cryptonote"],"application/vnd.rim.cod":["cod"],"application/vnd.rn-realmedia":["rm"],"application/vnd.rn-realmedia-vbr":["rmvb"],"application/vnd.route66.link66+xml":["link66"],"application/vnd.sailingtracker.track":["st"],"application/vnd.seemail":["see"],"application/vnd.sema":["sema"],"application/vnd.semd":["semd"],"application/vnd.semf":["semf"],"application/vnd.shana.informed.formdata":["ifm"],"application/vnd.shana.informed.formtemplate":["itp"],"application/vnd.shana.informed.interchange":["iif"],"application/vnd.shana.informed.package":["ipk"],"application/vnd.simtech-mindmapper":["twd","twds"],"application/vnd.smaf":["mmf"],"application/vnd.smart.teacher":["teacher"],"application/vnd.software602.filler.form+xml":["fo"],"application/vnd.solent.sdkm+xml":["sdkm","sdkd"],"application/vnd.spotfire.dxp":["dxp"],"application/vnd.spotfire.sfs":["sfs"],"application/vnd.stardivision.calc":["sdc"],"application/vnd.stardivision.draw":["sda"],"application/vnd.stardivision.impress":["sdd"],"application/vnd.stardivision.math":["smf"],"application/vnd.stardivision.writer":["sdw","vor"],"application/vnd.stardivision.writer-global":["sgl"],"application/vnd.stepmania.package":["smzip"],"application/vnd.stepmania.stepchart":["sm"],"application/vnd.sun.wadl+xml":["wadl"],"application/vnd.sun.xml.calc":["sxc"],"application/vnd.sun.xml.calc.template":["stc"],"application/vnd.sun.xml.draw":["sxd"],"application/vnd.sun.xml.draw.template":["std"],"application/vnd.sun.xml.impress":["sxi"],"application/vnd.sun.xml.impress.template":["sti"],"application/vnd.sun.xml.math":["sxm"],"application/vnd.sun.xml.writer":["sxw"],"application/vnd.sun.xml.writer.global":["sxg"],"application/vnd.sun.xml.writer.template":["stw"],"application/vnd.sus-calendar":["sus","susp"],"application/vnd.svd":["svd"],"application/vnd.symbian.install":["sis","sisx"],"application/vnd.syncml+xml":["xsm"],"application/vnd.syncml.dm+wbxml":["bdm"],"application/vnd.syncml.dm+xml":["xdm"],"application/vnd.syncml.dmddf+xml":["ddf"],"application/vnd.tao.intent-module-archive":["tao"],"application/vnd.tcpdump.pcap":["pcap","cap","dmp"],"application/vnd.tmobile-livetv":["tmo"],"application/vnd.trid.tpt":["tpt"],"application/vnd.triscape.mxs":["mxs"],"application/vnd.trueapp":["tra"],"application/vnd.ufdl":["ufd","ufdl"],"application/vnd.uiq.theme":["utz"],"application/vnd.umajin":["umj"],"application/vnd.unity":["unityweb"],"application/vnd.uoml+xml":["uoml"],"application/vnd.vcx":["vcx"],"application/vnd.visio":["vsd","vst","vss","vsw"],"application/vnd.visionary":["vis"],"application/vnd.vsf":["vsf"],"application/vnd.wap.wbxml":["wbxml"],"application/vnd.wap.wmlc":["wmlc"],"application/vnd.wap.wmlscriptc":["wmlsc"],"application/vnd.webturbo":["wtb"],"application/vnd.wolfram.player":["nbp"],"application/vnd.wordperfect":["wpd"],"application/vnd.wqd":["wqd"],"application/vnd.wt.stf":["stf"],"application/vnd.xara":["xar"],"application/vnd.xfdl":["xfdl"],"application/vnd.yamaha.hv-dic":["hvd"],"application/vnd.yamaha.hv-script":["hvs"],"application/vnd.yamaha.hv-voice":["hvp"],"application/vnd.yamaha.openscoreformat":["osf"],"application/vnd.yamaha.openscoreformat.osfpvg+xml":["osfpvg"],"application/vnd.yamaha.smaf-audio":["saf"],"application/vnd.yamaha.smaf-phrase":["spf"],"application/vnd.yellowriver-custom-menu":["cmp"],"application/vnd.zul":["zir","zirz"],"application/vnd.zzazz.deck+xml":["zaz"],"application/x-7z-compressed":["7z"],"application/x-abiword":["abw"],"application/x-ace-compressed":["ace"],"application/x-apple-diskimage":["*dmg"],"application/x-arj":["arj"],"application/x-authorware-bin":["aab","x32","u32","vox"],"application/x-authorware-map":["aam"],"application/x-authorware-seg":["aas"],"application/x-bcpio":["bcpio"],"application/x-bdoc":["*bdoc"],"application/x-bittorrent":["torrent"],"application/x-blorb":["blb","blorb"],"application/x-bzip":["bz"],"application/x-bzip2":["bz2","boz"],"application/x-cbr":["cbr","cba","cbt","cbz","cb7"],"application/x-cdlink":["vcd"],"application/x-cfs-compressed":["cfs"],"application/x-chat":["chat"],"application/x-chess-pgn":["pgn"],"application/x-chrome-extension":["crx"],"application/x-cocoa":["cco"],"application/x-conference":["nsc"],"application/x-cpio":["cpio"],"application/x-csh":["csh"],"application/x-debian-package":["*deb","udeb"],"application/x-dgc-compressed":["dgc"],"application/x-director":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"],"application/x-doom":["wad"],"application/x-dtbncx+xml":["ncx"],"application/x-dtbook+xml":["dtb"],"application/x-dtbresource+xml":["res"],"application/x-dvi":["dvi"],"application/x-envoy":["evy"],"application/x-eva":["eva"],"application/x-font-bdf":["bdf"],"application/x-font-ghostscript":["gsf"],"application/x-font-linux-psf":["psf"],"application/x-font-pcf":["pcf"],"application/x-font-snf":["snf"],"application/x-font-type1":["pfa","pfb","pfm","afm"],"application/x-freearc":["arc"],"application/x-futuresplash":["spl"],"application/x-gca-compressed":["gca"],"application/x-glulx":["ulx"],"application/x-gnumeric":["gnumeric"],"application/x-gramps-xml":["gramps"],"application/x-gtar":["gtar"],"application/x-hdf":["hdf"],"application/x-httpd-php":["php"],"application/x-install-instructions":["install"],"application/x-iso9660-image":["*iso"],"application/x-iwork-keynote-sffkey":["*key"],"application/x-iwork-numbers-sffnumbers":["*numbers"],"application/x-iwork-pages-sffpages":["*pages"],"application/x-java-archive-diff":["jardiff"],"application/x-java-jnlp-file":["jnlp"],"application/x-keepass2":["kdbx"],"application/x-latex":["latex"],"application/x-lua-bytecode":["luac"],"application/x-lzh-compressed":["lzh","lha"],"application/x-makeself":["run"],"application/x-mie":["mie"],"application/x-mobipocket-ebook":["prc","mobi"],"application/x-ms-application":["application"],"application/x-ms-shortcut":["lnk"],"application/x-ms-wmd":["wmd"],"application/x-ms-wmz":["wmz"],"application/x-ms-xbap":["xbap"],"application/x-msaccess":["mdb"],"application/x-msbinder":["obd"],"application/x-mscardfile":["crd"],"application/x-msclip":["clp"],"application/x-msdos-program":["*exe"],"application/x-msdownload":["*exe","*dll","com","bat","*msi"],"application/x-msmediaview":["mvb","m13","m14"],"application/x-msmetafile":["*wmf","*wmz","*emf","emz"],"application/x-msmoney":["mny"],"application/x-mspublisher":["pub"],"application/x-msschedule":["scd"],"application/x-msterminal":["trm"],"application/x-mswrite":["wri"],"application/x-netcdf":["nc","cdf"],"application/x-ns-proxy-autoconfig":["pac"],"application/x-nzb":["nzb"],"application/x-perl":["pl","pm"],"application/x-pilot":["*prc","*pdb"],"application/x-pkcs12":["p12","pfx"],"application/x-pkcs7-certificates":["p7b","spc"],"application/x-pkcs7-certreqresp":["p7r"],"application/x-rar-compressed":["*rar"],"application/x-redhat-package-manager":["rpm"],"application/x-research-info-systems":["ris"],"application/x-sea":["sea"],"application/x-sh":["sh"],"application/x-shar":["shar"],"application/x-shockwave-flash":["swf"],"application/x-silverlight-app":["xap"],"application/x-sql":["sql"],"application/x-stuffit":["sit"],"application/x-stuffitx":["sitx"],"application/x-subrip":["srt"],"application/x-sv4cpio":["sv4cpio"],"application/x-sv4crc":["sv4crc"],"application/x-t3vm-image":["t3"],"application/x-tads":["gam"],"application/x-tar":["tar"],"application/x-tcl":["tcl","tk"],"application/x-tex":["tex"],"application/x-tex-tfm":["tfm"],"application/x-texinfo":["texinfo","texi"],"application/x-tgif":["*obj"],"application/x-ustar":["ustar"],"application/x-virtualbox-hdd":["hdd"],"application/x-virtualbox-ova":["ova"],"application/x-virtualbox-ovf":["ovf"],"application/x-virtualbox-vbox":["vbox"],"application/x-virtualbox-vbox-extpack":["vbox-extpack"],"application/x-virtualbox-vdi":["vdi"],"application/x-virtualbox-vhd":["vhd"],"application/x-virtualbox-vmdk":["vmdk"],"application/x-wais-source":["src"],"application/x-web-app-manifest+json":["webapp"],"application/x-x509-ca-cert":["der","crt","pem"],"application/x-xfig":["fig"],"application/x-xliff+xml":["*xlf"],"application/x-xpinstall":["xpi"],"application/x-xz":["xz"],"application/x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"audio/vnd.dece.audio":["uva","uvva"],"audio/vnd.digital-winds":["eol"],"audio/vnd.dra":["dra"],"audio/vnd.dts":["dts"],"audio/vnd.dts.hd":["dtshd"],"audio/vnd.lucent.voice":["lvp"],"audio/vnd.ms-playready.media.pya":["pya"],"audio/vnd.nuera.ecelp4800":["ecelp4800"],"audio/vnd.nuera.ecelp7470":["ecelp7470"],"audio/vnd.nuera.ecelp9600":["ecelp9600"],"audio/vnd.rip":["rip"],"audio/x-aac":["aac"],"audio/x-aiff":["aif","aiff","aifc"],"audio/x-caf":["caf"],"audio/x-flac":["flac"],"audio/x-m4a":["*m4a"],"audio/x-matroska":["mka"],"audio/x-mpegurl":["m3u"],"audio/x-ms-wax":["wax"],"audio/x-ms-wma":["wma"],"audio/x-pn-realaudio":["ram","ra"],"audio/x-pn-realaudio-plugin":["rmp"],"audio/x-realaudio":["*ra"],"audio/x-wav":["*wav"],"chemical/x-cdx":["cdx"],"chemical/x-cif":["cif"],"chemical/x-cmdf":["cmdf"],"chemical/x-cml":["cml"],"chemical/x-csml":["csml"],"chemical/x-xyz":["xyz"],"image/prs.btif":["btif"],"image/prs.pti":["pti"],"image/vnd.adobe.photoshop":["psd"],"image/vnd.airzip.accelerator.azv":["azv"],"image/vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"image/vnd.djvu":["djvu","djv"],"image/vnd.dvb.subtitle":["*sub"],"image/vnd.dwg":["dwg"],"image/vnd.dxf":["dxf"],"image/vnd.fastbidsheet":["fbs"],"image/vnd.fpx":["fpx"],"image/vnd.fst":["fst"],"image/vnd.fujixerox.edmics-mmr":["mmr"],"image/vnd.fujixerox.edmics-rlc":["rlc"],"image/vnd.microsoft.icon":["ico"],"image/vnd.ms-dds":["dds"],"image/vnd.ms-modi":["mdi"],"image/vnd.ms-photo":["wdp"],"image/vnd.net-fpx":["npx"],"image/vnd.pco.b16":["b16"],"image/vnd.tencent.tap":["tap"],"image/vnd.valve.source.texture":["vtf"],"image/vnd.wap.wbmp":["wbmp"],"image/vnd.xiff":["xif"],"image/vnd.zbrush.pcx":["pcx"],"image/x-3ds":["3ds"],"image/x-cmu-raster":["ras"],"image/x-cmx":["cmx"],"image/x-freehand":["fh","fhc","fh4","fh5","fh7"],"image/x-icon":["*ico"],"image/x-jng":["jng"],"image/x-mrsid-image":["sid"],"image/x-ms-bmp":["*bmp"],"image/x-pcx":["*pcx"],"image/x-pict":["pic","pct"],"image/x-portable-anymap":["pnm"],"image/x-portable-bitmap":["pbm"],"image/x-portable-graymap":["pgm"],"image/x-portable-pixmap":["ppm"],"image/x-rgb":["rgb"],"image/x-tga":["tga"],"image/x-xbitmap":["xbm"],"image/x-xpixmap":["xpm"],"image/x-xwindowdump":["xwd"],"message/vnd.wfa.wsc":["wsc"],"model/vnd.collada+xml":["dae"],"model/vnd.dwf":["dwf"],"model/vnd.gdl":["gdl"],"model/vnd.gtw":["gtw"],"model/vnd.mts":["mts"],"model/vnd.opengex":["ogex"],"model/vnd.parasolid.transmit.binary":["x_b"],"model/vnd.parasolid.transmit.text":["x_t"],"model/vnd.sap.vds":["vds"],"model/vnd.usdz+zip":["usdz"],"model/vnd.valve.source.compiled-map":["bsp"],"model/vnd.vtu":["vtu"],"text/prs.lines.tag":["dsc"],"text/vnd.curl":["curl"],"text/vnd.curl.dcurl":["dcurl"],"text/vnd.curl.mcurl":["mcurl"],"text/vnd.curl.scurl":["scurl"],"text/vnd.dvb.subtitle":["sub"],"text/vnd.fly":["fly"],"text/vnd.fmi.flexstor":["flx"],"text/vnd.graphviz":["gv"],"text/vnd.in3d.3dml":["3dml"],"text/vnd.in3d.spot":["spot"],"text/vnd.sun.j2me.app-descriptor":["jad"],"text/vnd.wap.wml":["wml"],"text/vnd.wap.wmlscript":["wmls"],"text/x-asm":["s","asm"],"text/x-c":["c","cc","cxx","cpp","h","hh","dic"],"text/x-component":["htc"],"text/x-fortran":["f","for","f77","f90"],"text/x-handlebars-template":["hbs"],"text/x-java-source":["java"],"text/x-lua":["lua"],"text/x-markdown":["mkd"],"text/x-nfo":["nfo"],"text/x-opml":["opml"],"text/x-org":["*org"],"text/x-pascal":["p","pas"],"text/x-processing":["pde"],"text/x-sass":["sass"],"text/x-scss":["scss"],"text/x-setext":["etx"],"text/x-sfv":["sfv"],"text/x-suse-ymp":["ymp"],"text/x-uuencode":["uu"],"text/x-vcalendar":["vcs"],"text/x-vcard":["vcf"],"video/vnd.dece.hd":["uvh","uvvh"],"video/vnd.dece.mobile":["uvm","uvvm"],"video/vnd.dece.pd":["uvp","uvvp"],"video/vnd.dece.sd":["uvs","uvvs"],"video/vnd.dece.video":["uvv","uvvv"],"video/vnd.dvb.file":["dvb"],"video/vnd.fvt":["fvt"],"video/vnd.mpegurl":["mxu","m4u"],"video/vnd.ms-playready.media.pyv":["pyv"],"video/vnd.uvvu.mp4":["uvu","uvvu"],"video/vnd.vivo":["viv"],"video/x-f4v":["f4v"],"video/x-fli":["fli"],"video/x-flv":["flv"],"video/x-m4v":["m4v"],"video/x-matroska":["mkv","mk3d","mks"],"video/x-mng":["mng"],"video/x-ms-asf":["asf","asx"],"video/x-ms-vob":["vob"],"video/x-ms-wm":["wm"],"video/x-ms-wmv":["wmv"],"video/x-ms-wmx":["wmx"],"video/x-ms-wvx":["wvx"],"video/x-msvideo":["avi"],"video/x-sgi-movie":["movie"],"video/x-smv":["smv"],"x-conference/x-cooltalk":["ice"]}},8446:e=>{e.exports={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["es","ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":["*3gpp"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avif":["avif"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/hsj2":["hsj2"],"image/ief":["ief"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm"],"image/jpx":["jpx","jpf"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]}},9211:e=>{"use strict";var t=function(e){return e!=e};e.exports=function(e,n){return 0===e&&0===n?1/e==1/n:e===n||!(!t(e)||!t(n))}},7653:(e,t,n)=>{"use strict";var r=n(8452),o=n(487),i=n(9211),a=n(9394),c=n(6576),l=o(a(),Object);r(l,{getPolyfill:a,implementation:i,shim:c}),e.exports=l},9394:(e,t,n)=>{"use strict";var r=n(9211);e.exports=function(){return"function"==typeof Object.is?Object.is:r}},6576:(e,t,n)=>{"use strict";var r=n(9394),o=n(8452);e.exports=function(){var e=r();return o(Object,{is:e},{is:function(){return Object.is!==e}}),e}},8875:(e,t,n)=>{"use strict";var r;if(!Object.keys){var o=Object.prototype.hasOwnProperty,i=Object.prototype.toString,a=n(1093),c=Object.prototype.propertyIsEnumerable,l=!c.call({toString:null},"toString"),s=c.call((function(){}),"prototype"),p=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],u=function(e){var t=e.constructor;return t&&t.prototype===e},d={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},f=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!d["$"+e]&&o.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{u(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();r=function(e){var t=null!==e&&"object"==typeof e,n="[object Function]"===i.call(e),r=a(e),c=t&&"[object String]"===i.call(e),d=[];if(!t&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var E=s&&n;if(c&&e.length>0&&!o.call(e,0))for(var _=0;_<e.length;++_)d.push(String(_));if(r&&e.length>0)for(var m=0;m<e.length;++m)d.push(String(m));else for(var v in e)E&&"prototype"===v||!o.call(e,v)||d.push(String(v));if(l)for(var I=function(e){if("undefined"==typeof window||!f)return u(e);try{return u(e)}catch(e){return!1}}(e),y=0;y<p.length;++y)I&&"constructor"===p[y]||!o.call(e,p[y])||d.push(p[y]);return d}}e.exports=r},1189:(e,t,n)=>{"use strict";var r=Array.prototype.slice,o=n(1093),i=Object.keys,a=i?function(e){return i(e)}:n(8875),c=Object.keys;a.shim=function(){if(Object.keys){var e=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);e||(Object.keys=function(e){return o(e)?c(r.call(e)):c(e)})}else Object.keys=a;return Object.keys||a},e.exports=a},1093:e=>{"use strict";var t=Object.prototype.toString;e.exports=function(e){var n=t.call(e),r="[object Arguments]"===n;return r||(r="[object Array]"!==n&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),r}},8403:(e,t,n)=>{"use strict";var r=n(1189),o=n(1333)(),i=n(8075),a=Object,c=i("Array.prototype.push"),l=i("Object.prototype.propertyIsEnumerable"),s=o?Object.getOwnPropertySymbols:null;e.exports=function(e,t){if(null==e)throw new TypeError("target must be an object");var n=a(e);if(1===arguments.length)return n;for(var i=1;i<arguments.length;++i){var p=a(arguments[i]),u=r(p),d=o&&(Object.getOwnPropertySymbols||s);if(d)for(var f=d(p),E=0;E<f.length;++E){var _=f[E];l(p,_)&&c(u,_)}for(var m=0;m<u.length;++m){var v=u[m];if(l(p,v)){var I=p[v];n[v]=I}}}return n}},1514:(e,t,n)=>{"use strict";var r=n(8403);e.exports=function(){return Object.assign?function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),n={},r=0;r<t.length;++r)n[t[r]]=t[r];var o=Object.assign({},n),i="";for(var a in o)i+=a;return e!==i}()||function(){if(!Object.assign||!Object.preventExtensions)return!1;var e=Object.preventExtensions({1:2});try{Object.assign(e,"xy")}catch(t){return"y"===e[1]}return!1}()?r:Object.assign:r}},5606:e=>{var t,n,r=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"==typeof clearTimeout?clearTimeout:i}catch(e){n=i}}();var c,l=[],s=!1,p=-1;function u(){s&&c&&(s=!1,c.length?l=c.concat(l):p=-1,l.length&&d())}function d(){if(!s){var e=a(u);s=!0;for(var t=l.length;t;){for(c=l,l=[];++p<t;)c&&c[p].run();p=-1,t=l.length}c=null,s=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===i||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function E(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new f(e,t)),1!==l.length||s||a(d)},f.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=E,r.addListener=E,r.once=E,r.off=E,r.removeListener=E,r.removeAllListeners=E,r.emit=E,r.prependListener=E,r.prependOnceListener=E,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},1135:e=>{e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},9032:(e,t,n)=>{"use strict";var r=n(7244),o=n(8184),i=n(5767),a=n(5680);function c(e){return e.call.bind(e)}var l="undefined"!=typeof BigInt,s="undefined"!=typeof Symbol,p=c(Object.prototype.toString),u=c(Number.prototype.valueOf),d=c(String.prototype.valueOf),f=c(Boolean.prototype.valueOf);if(l)var E=c(BigInt.prototype.valueOf);if(s)var _=c(Symbol.prototype.valueOf);function m(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function v(e){return"[object Map]"===p(e)}function I(e){return"[object Set]"===p(e)}function y(e){return"[object WeakMap]"===p(e)}function O(e){return"[object WeakSet]"===p(e)}function g(e){return"[object ArrayBuffer]"===p(e)}function N(e){return"undefined"!=typeof ArrayBuffer&&(g.working?g(e):e instanceof ArrayBuffer)}function L(e){return"[object DataView]"===p(e)}function h(e){return"undefined"!=typeof DataView&&(L.working?L(e):e instanceof DataView)}t.isArgumentsObject=r,t.isGeneratorFunction=o,t.isTypedArray=a,t.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},t.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):a(e)||h(e)},t.isUint8Array=function(e){return"Uint8Array"===i(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===i(e)},t.isUint16Array=function(e){return"Uint16Array"===i(e)},t.isUint32Array=function(e){return"Uint32Array"===i(e)},t.isInt8Array=function(e){return"Int8Array"===i(e)},t.isInt16Array=function(e){return"Int16Array"===i(e)},t.isInt32Array=function(e){return"Int32Array"===i(e)},t.isFloat32Array=function(e){return"Float32Array"===i(e)},t.isFloat64Array=function(e){return"Float64Array"===i(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===i(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===i(e)},v.working="undefined"!=typeof Map&&v(new Map),t.isMap=function(e){return"undefined"!=typeof Map&&(v.working?v(e):e instanceof Map)},I.working="undefined"!=typeof Set&&I(new Set),t.isSet=function(e){return"undefined"!=typeof Set&&(I.working?I(e):e instanceof Set)},y.working="undefined"!=typeof WeakMap&&y(new WeakMap),t.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(y.working?y(e):e instanceof WeakMap)},O.working="undefined"!=typeof WeakSet&&O(new WeakSet),t.isWeakSet=function(e){return O(e)},g.working="undefined"!=typeof ArrayBuffer&&g(new ArrayBuffer),t.isArrayBuffer=N,L.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&L(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=h;var T="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function b(e){return"[object SharedArrayBuffer]"===p(e)}function A(e){return void 0!==T&&(void 0===b.working&&(b.working=b(new T)),b.working?b(e):e instanceof T)}function w(e){return m(e,u)}function R(e){return m(e,d)}function S(e){return m(e,f)}function D(e){return l&&m(e,E)}function x(e){return s&&m(e,_)}t.isSharedArrayBuffer=A,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===p(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===p(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===p(e)},t.isGeneratorObject=function(e){return"[object Generator]"===p(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===p(e)},t.isNumberObject=w,t.isStringObject=R,t.isBooleanObject=S,t.isBigIntObject=D,t.isSymbolObject=x,t.isBoxedPrimitive=function(e){return w(e)||R(e)||S(e)||D(e)||x(e)},t.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(N(e)||A(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})}))},537:(e,t,n)=>{var r=n(5606),o=n(6763),i=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++)n[t[r]]=Object.getOwnPropertyDescriptor(e,t[r]);return n},a=/%[sdj%]/g;t.format=function(e){if(!O(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(p(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,o=r.length,i=String(e).replace(a,(function(e){if("%%"===e)return"%";if(n>=o)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}})),c=r[n];n<o;c=r[++n])I(c)||!L(c)?i+=" "+c:i+=" "+p(c);return i},t.deprecate=function(e,n){if(void 0!==r&&!0===r.noDeprecation)return e;if(void 0===r)return function(){return t.deprecate(e,n).apply(this,arguments)};var i=!1;return function(){if(!i){if(r.throwDeprecation)throw new Error(n);r.traceDeprecation?o.trace(n):o.error(n),i=!0}return e.apply(this,arguments)}};var c={},l=/^$/;if({IFRAME_SECURE_SITE:"v2.5.0-beta.1/elements/index.html",IFRAME_SECURE_ORIGIN:"https://js.skyflow-preview.com"}.NODE_DEBUG){var s={IFRAME_SECURE_SITE:"v2.5.0-beta.1/elements/index.html",IFRAME_SECURE_ORIGIN:"https://js.skyflow-preview.com"}.NODE_DEBUG;s=s.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),l=new RegExp("^"+s+"$","i")}function p(e,n){var r={seen:[],stylize:d};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),v(n)?r.showHidden=n:n&&t._extend(r,n),g(r.showHidden)&&(r.showHidden=!1),g(r.depth)&&(r.depth=2),g(r.colors)&&(r.colors=!1),g(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=u),f(r,e,r.depth)}function u(e,t){var n=p.styles[t];return n?"["+p.colors[n][0]+"m"+e+"["+p.colors[n][1]+"m":e}function d(e,t){return e}function f(e,n,r){if(e.customInspect&&n&&b(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var o=n.inspect(r,e);return O(o)||(o=f(e,o,r)),o}var i=function(e,t){if(g(t))return e.stylize("undefined","undefined");if(O(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(y(t))return e.stylize(""+t,"number");if(v(t))return e.stylize(""+t,"boolean");if(I(t))return e.stylize("null","null")}(e,n);if(i)return i;var a=Object.keys(n),c=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(n)),T(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return E(n);if(0===a.length){if(b(n)){var l=n.name?": "+n.name:"";return e.stylize("[Function"+l+"]","special")}if(N(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(h(n))return e.stylize(Date.prototype.toString.call(n),"date");if(T(n))return E(n)}var s,p="",u=!1,d=["{","}"];(m(n)&&(u=!0,d=["[","]"]),b(n))&&(p=" [Function"+(n.name?": "+n.name:"")+"]");return N(n)&&(p=" "+RegExp.prototype.toString.call(n)),h(n)&&(p=" "+Date.prototype.toUTCString.call(n)),T(n)&&(p=" "+E(n)),0!==a.length||u&&0!=n.length?r<0?N(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),s=u?function(e,t,n,r,o){for(var i=[],a=0,c=t.length;a<c;++a)S(t,String(a))?i.push(_(e,t,n,r,String(a),!0)):i.push("");return o.forEach((function(o){o.match(/^\d+$/)||i.push(_(e,t,n,r,o,!0))})),i}(e,n,r,c,a):a.map((function(t){return _(e,n,r,c,t,u)})),e.seen.pop(),function(e,t,n){var r=e.reduce((function(e,t){return t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0);if(r>60)return n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1];return n[0]+t+" "+e.join(", ")+" "+n[1]}(s,p,d)):d[0]+p+d[1]}function E(e){return"["+Error.prototype.toString.call(e)+"]"}function _(e,t,n,r,o,i){var a,c,l;if((l=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]}).get?c=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(c=e.stylize("[Setter]","special")),S(r,o)||(a="["+o+"]"),c||(e.seen.indexOf(l.value)<0?(c=I(n)?f(e,l.value,null):f(e,l.value,n-1)).indexOf("\n")>-1&&(c=i?c.split("\n").map((function(e){return" "+e})).join("\n").slice(2):"\n"+c.split("\n").map((function(e){return" "+e})).join("\n")):c=e.stylize("[Circular]","special")),g(a)){if(i&&o.match(/^\d+$/))return c;(a=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.slice(1,-1),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+c}function m(e){return Array.isArray(e)}function v(e){return"boolean"==typeof e}function I(e){return null===e}function y(e){return"number"==typeof e}function O(e){return"string"==typeof e}function g(e){return void 0===e}function N(e){return L(e)&&"[object RegExp]"===A(e)}function L(e){return"object"==typeof e&&null!==e}function h(e){return L(e)&&"[object Date]"===A(e)}function T(e){return L(e)&&("[object Error]"===A(e)||e instanceof Error)}function b(e){return"function"==typeof e}function A(e){return Object.prototype.toString.call(e)}function w(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(e=e.toUpperCase(),!c[e])if(l.test(e)){var n=r.pid;c[e]=function(){var r=t.format.apply(t,arguments);o.error("%s %d: %s",e,n,r)}}else c[e]=function(){};return c[e]},t.inspect=p,p.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},p.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=n(9032),t.isArray=m,t.isBoolean=v,t.isNull=I,t.isNullOrUndefined=function(e){return null==e},t.isNumber=y,t.isString=O,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=g,t.isRegExp=N,t.types.isRegExp=N,t.isObject=L,t.isDate=h,t.types.isDate=h,t.isError=T,t.types.isNativeError=T,t.isFunction=b,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(1135);var R=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function S(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,n;o.log("%s - %s",(e=new Date,n=[w(e.getHours()),w(e.getMinutes()),w(e.getSeconds())].join(":"),[e.getDate(),R[e.getMonth()],n].join(" ")),t.format.apply(t,arguments))},t.inherits=n(6698),t._extend=function(e,t){if(!t||!L(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e};var D="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function x(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(D&&e[D]){var t;if("function"!=typeof(t=e[D]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,D,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,r=new Promise((function(e,r){t=e,n=r})),o=[],i=0;i<arguments.length;i++)o.push(arguments[i]);o.push((function(e,r){e?n(e):t(r)}));try{e.apply(this,o)}catch(e){n(e)}return r}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),D&&Object.defineProperty(t,D,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,i(e))},t.promisify.custom=D,t.callbackify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');function t(){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n]);var o=t.pop();if("function"!=typeof o)throw new TypeError("The last argument must be of type Function");var i=this,a=function(){return o.apply(i,arguments)};e.apply(this,t).then((function(e){r.nextTick(a.bind(null,null,e))}),(function(e){r.nextTick(x.bind(null,e,a))}))}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,i(e)),t}},5767:(e,t,n)=>{"use strict";var r=n(2682),o=n(9209),i=n(487),a=n(8075),c=n(5795),l=a("Object.prototype.toString"),s=n(9092)(),p="undefined"==typeof globalThis?n.g:globalThis,u=o(),d=a("String.prototype.slice"),f=Object.getPrototypeOf,E=a("Array.prototype.indexOf",!0)||function(e,t){for(var n=0;n<e.length;n+=1)if(e[n]===t)return n;return-1},_={__proto__:null};r(u,s&&c&&f?function(e){var t=new p[e];if(Symbol.toStringTag in t){var n=f(t),r=c(n,Symbol.toStringTag);if(!r){var o=f(n);r=c(o,Symbol.toStringTag)}_["$"+e]=i(r.get)}}:function(e){var t=new p[e];_["$"+e]=i(t.slice)});e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!s){var t=d(l(e),8,-1);return E(u,t)>-1?t:"Object"===t&&function(e){var t=!1;return r(_,(function(n,r){if(!t)try{n(e),t=d(r,1)}catch(e){}})),t}(e)}return c?function(e){var t=!1;return r(_,(function(n,r){if(!t)try{"$"+n(e)===r&&(t=d(r,1))}catch(e){}})),t}(e):null}},4633:(e,t,n)=>{var r=n(3738).default;function o(){"use strict";e.exports=o=function(){return n},e.exports.__esModule=!0,e.exports.default=e.exports;var t,n={},i=Object.prototype,a=i.hasOwnProperty,c=Object.defineProperty||function(e,t,n){e[t]=n.value},l="function"==typeof Symbol?Symbol:{},s=l.iterator||"@@iterator",p=l.asyncIterator||"@@asyncIterator",u=l.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(t){d=function(e,t,n){return e[t]=n}}function f(e,t,n,r){var o=t&&t.prototype instanceof O?t:O,i=Object.create(o.prototype),a=new M(r||[]);return c(i,"_invoke",{value:R(e,n,a)}),i}function E(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}n.wrap=f;var _="suspendedStart",m="suspendedYield",v="executing",I="completed",y={};function O(){}function g(){}function N(){}var L={};d(L,s,(function(){return this}));var h=Object.getPrototypeOf,T=h&&h(h(C([])));T&&T!==i&&a.call(T,s)&&(L=T);var b=N.prototype=O.prototype=Object.create(L);function A(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function n(o,i,c,l){var s=E(e[o],e,i);if("throw"!==s.type){var p=s.arg,u=p.value;return u&&"object"==r(u)&&a.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,c,l)}),(function(e){n("throw",e,c,l)})):t.resolve(u).then((function(e){p.value=e,c(p)}),(function(e){return n("throw",e,c,l)}))}l(s.arg)}var o;c(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}})}function R(e,n,r){var o=_;return function(i,a){if(o===v)throw new Error("Generator is already running");if(o===I){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var c=r.delegate;if(c){var l=S(c,r);if(l){if(l===y)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===_)throw o=I,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=v;var s=E(e,n,r);if("normal"===s.type){if(o=r.done?I:m,s.arg===y)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=I,r.method="throw",r.arg=s.arg)}}}function S(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,S(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=E(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function D(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function M(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function C(e){if(e||""===e){var n=e[s];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(a.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(r(e)+" is not iterable")}return g.prototype=N,c(b,"constructor",{value:N,configurable:!0}),c(N,"constructor",{value:g,configurable:!0}),g.displayName=d(N,u,"GeneratorFunction"),n.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,N):(e.__proto__=N,d(e,u,"GeneratorFunction")),e.prototype=Object.create(b),e},n.awrap=function(e){return{__await:e}},A(w.prototype),d(w.prototype,p,(function(){return this})),n.AsyncIterator=w,n.async=function(e,t,r,o,i){void 0===i&&(i=Promise);var a=new w(f(e,t,r,o),i);return n.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},A(b),d(b,u,"Generator"),d(b,s,(function(){return this})),d(b,"toString",(function(){return"[object Generator]"})),n.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},n.values=C,M.prototype={constructor:M,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(x),!e)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(r,o){return c.type="throw",c.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],c=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var l=a.call(i,"catchLoc"),s=a.call(i,"finallyLoc");if(l&&s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),x(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;x(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:C(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),y}},n}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},3738:e=>{function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},4756:(e,t,n)=>{var r=n(4633)();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},9209:(e,t,n)=>{"use strict";var r=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],o="undefined"==typeof globalThis?n.g:globalThis;e.exports=function(){for(var e=[],t=0;t<r.length;t++)"function"==typeof o[r[t]]&&(e[e.length]=r[t]);return e}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.p="";var r={};return(()=>{"use strict";n.r(r),n.d(r,{CardMetadata:()=>e.CardMetadata,CardType:()=>je,CollectContainer:()=>Go,CollectElement:()=>Kr,CollectElementInput:()=>e.CollectElementInput,CollectElementOptions:()=>e.CollectElementOptions,CollectElementUpdateOptions:()=>e.CollectElementUpdateOptions,CollectOptions:()=>e.ICollectOptions,CollectResponse:()=>e.CollectResponse,ComposableContainer:()=>xi,ComposableElement:()=>Qr,ContainerOptions:()=>e.ContainerOptions,ContainerType:()=>Xi,DeleteOptions:()=>e.IDeleteOptions,DeleteRecord:()=>e.IDeleteRecord,DeleteRequest:()=>e.IDeleteRecordInput,DeleteResponse:()=>e.DeleteResponse,DetokenizeRecord:()=>e.DetokenizeRecord,DetokenizeRequest:()=>e.IDetokenizeInput,DetokenizeResponse:()=>e.DetokenizeResponse,ElementState:()=>e.ElementState,ElementType:()=>Ve,Env:()=>ft,ErrorTextStyles:()=>e.ErrorTextStyles,EventName:()=>ut,GetByIdRequest:()=>e.IGetByIdInput,GetByIdResponse:()=>e.GetByIdResponse,GetOptions:()=>e.IGetOptions,GetRecord:()=>e.IGetRecord,GetRequest:()=>e.IGetInput,GetResponse:()=>e.GetResponse,InputStyles:()=>e.InputStyles,InsertOptions:()=>e.IInsertOptions,InsertRecord:()=>e.IInsertRecord,InsertRequest:()=>e.IInsertRecordInput,InsertResponse:()=>e.InsertResponse,LabelStyles:()=>e.LabelStyles,LogLevel:()=>dt,RedactionType:()=>st,RenderFileResponse:()=>e.RenderFileResponse,RevealContainer:()=>fr,RevealElement:()=>Yn,RevealElementInput:()=>t.IRevealElementInput,RevealElementOptions:()=>t.IRevealElementOptions,RevealRecord:()=>e.IRevealRecord,RevealResponse:()=>e.RevealResponse,SkyflowConfig:()=>i.ISkyflow,ThreeDS:()=>Fi,ThreeDSBrowserDetails:()=>o.ThreeDSBrowserDetails,UploadFilesResponse:()=>e.UploadFilesResponse,ValidationRule:()=>e.IValidationRule,ValidationRuleType:()=>_t,default:()=>oa});var e={};n.r(e),n.d(e,{o9:()=>ft,Ur:()=>ut,$b:()=>dt,Go:()=>Et,eb:()=>st,dF:()=>pt,UL:()=>_t});var t={};n.r(t),n.d(t,{A:()=>fr});var o={};n.r(o),n.d(o,{A:()=>Fi});var i={};function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function c(e){var t=function(e,t){if("object"!==a(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===a(t)?t:String(t)}function l(e,t,n){return(t=c(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,c(r.key),r)}}function u(e,t,n){return t&&p(e.prototype,t),n&&p(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function d(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function f(e,t,n){return function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}(e,d(e,t,"set"),n),n}function E(e,t){return function(e,t){return t.get?t.get.call(e):t.value}(e,d(e,t,"get"))}n.r(i),n.d(i,{K:()=>Xi,A:()=>ra});var _=n(2281),m=n.n(_);function v(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=crypto.getRandomValues(new Uint32Array(1))[0]/Math.pow(2,32)*16|0;return("x"===e?t:3&t|8).toString(16)}))}const I=n.p+"2afb5d11fb02e9292eaf.svg",y=n.p+"5408d9cd30b616684aa0.svg",O=n.p+"a9431336dd9f3e17b880.svg",g=n.p+"9b996d698afd3d404564.svg",N=n.p+"404966085770d8ec21ca.svg",L=n.p+"8062a86943450f142966.svg",h=n.p+"407dfd9c3fd800945b74.svg",T=n.p+"08ad88dee7d4519954ec.svg",b=n.p+"d418de915d45f039ac22.svg",A=n.p+"cbee67fb3d652dad9e25.svg",w=(n.p,n.p,n.p,n.p+"bcd5969a8a86792c2995.svg");const R={infoLogs:{INITIALIZE_CLIENT:"%s1 - Initializing skyflow client.",CLIENT_INITIALIZED:"%s1 - Initialized skyflow client successfully.",CREATE_COLLECT_CONTAINER:"%s1 - Creating Collect container.",COLLECT_CONTAINER_CREATED:"%s1 - Created Collect container successfully.",CREATE_REVEAL_CONTAINER:"%s1 - Creating Reveal container.",REVEAL_CONTAINER_CREATED:"%s1 - Created Reveal container successfully.",VALIDATE_RECORDS:"%s1 - Validating insert records.",VALIDATE_DETOKENIZE_INPUT:"%s1 - Validating detokenize input.",VALIDATE_GET_INPUT:"%s1 - Validating get input.",VALIDATE_DELETE_INPUT:"%s1 - Validating delete input.",VALIDATE_COLLECT_RECORDS:"%s1 - Validating collect element input.",VALIDATE_REVEAL_RECORDS:"%s1 - Validating reveal element input.",VALIDATE_RENDER_RECORDS:"%s1 - Validating file render element input.",CREATED_ELEMENT:"%s1 - Created %s2 element.",ELEMENT_MOUNTED:"%s1 - %s2 Element mounted.",ELEMENT_REVEALED:"%s1 - %s2 Element revealed.",FILE_RENDERED:"%s1 - %s2 File rendered.",COLLECT_SUBMIT_SUCCESS:"%s1 - Data has been collected successfully.",REVEAL_SUBMIT_SUCCESS:"%s1 - Data has been revealed successfully.",RENDER_SUBMIT_SUCCESS:"%s1 - File download URL has been fetched successfully.",INSERT_DATA_SUCCESS:"%s1 - Data has been inserted successfully.",DETOKENIZE_SUCCESS:"%s1 - Data has been revealed successfully.",GET_SUCCESS:"%s1 - Data has been revealed successfully.",DELETE_SUCCESS:"%s1 - Data has been deleted successfully.",BEARER_TOKEN_LISTENER:"%s1 - Get bearer token listener added.",CAPTURED_BEARER_TOKEN_EVENT:"%s1 - Captured bearer token event.",BEARER_TOKEN_RESOLVED:"%s1 - GetBearerToken promise resolved successfully.",REUSE_BEARER_TOKEN:"%s1 - Reusing the bearer token.",PUREJS_CONTROLLER_INITIALIZED:"%s1 - SkyflowController initialized.",PUREJS_LISTENER_READY:"%s1 - Purejs listener ready.",EMIT_PURE_JS_CONTROLLER:"%s1 - Emitted Skyflow controller event.",INSERT_TRIGGERED:"%s1 - Insert method triggered.",DETOKENIZE_TRIGGERED:"%s1 - Detokenize method triggered.",GET_TRIGGERED:"%s1 - Get method triggered.",GET_BY_ID_TRIGGERED:"%s1 - Get method triggered.",DELETE_TRIGGERED:"%s1 - Delete method triggered.",EMIT_PURE_JS_REQUEST:"%s1 - Emitted %s2 request.",CAPTURE_PURE_JS_REQUEST:"%s1 - Captured %s2 event.",LISTEN_PURE_JS_REQUEST:"%s1 - Listening to %s2 event.",CAPTURE_PUREJS_FRAME:"%s1 - Captured SkyflowController frame ready event.",FETCH_RECORDS_RESOLVED:"%s1 - Detokenize request is resolved.",INSERT_RECORDS_RESOLVED:"%s1 - Insert request is resolved.",GET_RESOLVED:"%s1 - Get request is resolved.",GET_BY_SKYFLOWID_RESOLVED:"%s1 - GetById request is resolved.",DELETE_RESOLVED:"%s1 - Delete request is resolved",EMIT_EVENT:"%s1 - %s2 event emitted",CAPTURE_EVENT:"%s1 - Captured event %s2",METRIC_CAPTURE_EVENT:"Metric event captured Successfully",UNKNOWN_METRIC_CAPTURE_EVENT:"Metric event capturing Failed with %s1",UNKNOWN_RESPONSE_FROM_METRIC_EVENT:"Metric event Captured with Unknown Response",LISTEN_COLLECT_FRAME_READY:"%s1 - Listening to collect FRAME_READY event",EMIT_COLLECT_ELEMENT_FRAME_READY:"%s1 - Emitting collect element %s2 FRAME_READY event",ENTERED_COLLECT_FRAME_READY_CB:"%s1 - In IFrameForm constructor, Entered FRAME_READY callback",EXECUTE_COLLECT_ELEMENT_FRAME_READY_CB:"%s1 - In IFrameForm, executing collect element, %s2 FRAME_READY callback",CLIENT_METADATA_NOT_SET:"%s1 - Client metadata not set",EXECUTE_COLLECT_ELEMENT_INIT:"%s1 - calling Collect element init",INSIDE__COLLECT_ELEMENT_INIT:"%s1 - Inside Collect element init for %s2",CREATING_COLLECT_ELEMENT_FORM:"%s1 - Start, creating iframe form for %s2",COLLECT_FRAME_READY_CB:"%s1 - In FrameElements, executing collect element FRAME_READY cb for %s2, sending metadata",INSIDE_FRAME_ELEMENTS_CONSTRUCOTR:"%s1 - Inside FrameElements constructor",SETUP_IN_START:"%s1 - Inside FrameElements start(), calling setup",SETUP_IN_CONSTRUCTOR:"%s1 - Inside FrameElements constructor, calling setup",COLLECT_ELEMET_START:"%s1 - %s2, Collect Element start",COLLECT_CONTROLLER_START:"%s1 - %s2, Collect Controller start",REVEAL_ELEMENT_START:"%s1 - %s2, Reveal Element start",EMIT_COLLECT_FRAME_CONTROLLER_EVENT:"%s1 - Emit collect FrameController FRAME_READY event",EXECUTE_COLLECT_CONTROLLER_READY_CB:"%s1 - Executing collect FrameController FRAME_READY callback, set client metadata",IFRAMEFORM_CONSTRUCTOR_FRAME_READY_LISTNER:"%s1 - In IFrameForm constructor, Adding listener for FRAME_READY event",IFRAMEFORM_CONSTRUCTOR_TOKENIZATION_LISTNER:"%s1 - In IFrameForm constructor, Adding listener for TOKENIZATION_REQUEST event",CURRENT_ENV:"%s1 - Client Env is %s2",CURRENT_LOG_LEVEL:"%s1 - Client LogLevel is %s2",VALIDATE_GET_BY_ID_INPUT:"%s1 - Validating getByID input."},errorLogs:{NO_ELEMENTS_IN_COLLECT:"Validation error. No elements found in collect container",NO_ELEMENTS_IN_COMPOSABLE:"Validation error. No elements found in composable container",NO_ELEMENTS_IN_REVEAL:"Validation error. No elements found in reveal container",INVALID_FILE_NAMES:"Invalid File Name. Only alphanumeric characters and !-_.*() are allowed.",INVALID_FILE_NAME:"Invalid File Name. Only alphanumeric characters and !-_.*() are allowed.",CLIENT_CONNECTION:"client connection not established. client info has not reached iframes",INVALID_BEARER_TOKEN:"Token generated from 'getBearerToken' callback function is invalid. Make sure the implementation of 'getBearerToken' is correct.",BEARER_TOKEN_REJECTED:"'getBearerToken' callback function call failed with rejected promise. Make sure the implementation of 'getBearerToken' is correct.",VAULTID_IS_REQUIRED:"Initialization failed. Invalid credentials. Specify a valid 'vaultID'.",EMPTY_VAULTID_IN_INIT:"Initialization failed. Invalid credentials. Specify a valid 'vaultID'.",VAULTURL_IS_REQUIRED:"Initialization failed. Invalid credentials. Specify a valid 'vaultURL'",EMPTY_VAULTURL_IN_INIT:"Initialization failed. Invalid credentials. Specify a valid 'vaultURL'",INVALID_VAULTURL_IN_INIT:"Initialization failed. Invalid client credentials. 'vaultURL' must be begin with 'https://.'",GET_BEARER_TOKEN_IS_REQUIRED:"Initialization failed. Invalid client credentials. Specify a valid bearer token.",EMPTY_CONTAINER_TYPE:"Container creation failed. 'containerType' is invalid. Specify a valid container type.",INVALID_CONTAINER_TYPE:"Container creation failed. '%s1' is invalid. Specify a valid container type.",INVALID_COLLECT_VALUE:"Invalid value",INVALID_COLLECT_VALUE_WITH_LABEL:"Invalid %s1",REQUIRED_COLLECT_VALUE:"%s1 is required",DEFAULT_REQUIRED_COLLECT_VALUE:"Field is required",RECORDS_KEY_NOT_FOUND:"Validation error. Invalid 'records' key found. Specify a value of type array instead.",INVALID_RECORDS_IN_INSERT:"Validation error. Invalid records. Specify a value of type array instead.",EMPTY_RECORDS_IN_INSERT:"Validation error. 'records' key cannot be empty. Provide a non-empty value instead.",MISSING_TABLE_IN_INSERT:"Validation error. Missing 'table' key in records at index %s1. Provide a valid 'table' key.",EMPTY_TABLE_IN_INSERT:"Validation error. 'table' key cannot be empty in records at index %s1. Specify a non-empty value instead.",INVALID_TABLE_IN_INSERT:"Validation error. Invalid 'table' key in records at index %s1. Specify a value of type string instead.",EMPTY_FIELDS_IN_INSERT:"Validation error. Missing 'fields' key in records at index %s1. Provide a valid 'fields' key.",MISSING_FIELDS_IN_INSERT:"Validation error. 'fields' key cannot be empty in records at index %s1. Specify a non-empty value instead.",INVALID_FIELDS_IN_INSERT:"Validation error. Invalid 'fields' key in records at index %s1. Specify a value of type object instead.",INVALID_TOKENS_IN_INSERT:"Validation error.Invalid 'tokens' key in insert options. Specify a boolean value for tokens.",RECORDS_KEY_NOT_FOUND_DELETE:"Validation error. Missing 'records' key. Provide a valid 'records' key.",INVALID_RECORDS_IN_DELETE:"Validation error. Invalid 'records' key found. Specify a value of type array instead.",EMPTY_RECORDS_IN_DELETE:"Validation error. 'records' key cannot be empty. Provide a non-empty value instead.",MISSING_TABLE_IN_DELETE:"Validation error. Missing 'table' key in records at index %s1. Provide a valid 'table' key.",EMPTY_TABLE_IN_DELETE:"Validation error. 'table' key cannot be empty in records at index %s1. Specify a non-empty value instead.",INVALID_TABLE_IN_DELETE:"Validation error. Invalid 'table' key in records at index %s1. Specify a value of type string instead.",MISSING_ID_IN_DELETE:"Validation error. Missing 'id' key in records at index %s1. Provide a valid 'id' key.",EMPTY_ID_IN_DELETE:"Validation error. 'id' key cannot be empty in records at index %s1. Specify a non-empty value instead.",INVALID_ID_IN_DELETE:"Validation error. Invalid 'id' key in records at index %s1. Specify a value of type string instead.",DELETE_RECORDS_REJECTED:"Delete failed. Delete request is rejected.",INVALID_TOKENS_IN_COLLECT:"Validation error. Invalid tokens. Specify a boolean value for tokens.",RECORDS_KEY_NOT_FOUND_IN_ADDITIONAL_FIELDS:"Validation error.records key not found in additionalFields. Specify a records key in addtionalFields.",INVALID_RECORDS_IN_ADDITIONAL_FIELDS:"Validation error.'records' must be an array within additionalFields.",EMPTY_RECORDS_IN_ADDITIONAL_FIELDS:"Validation error. 'records' object cannot be empty within additionalFields. Specify a non-empty value instead.",MISSING_TABLE_IN_ADDITIONAL_FIELDS:"Validation error. 'table' key not found in additionalFields record at index %s1",INVALID_TABLE_IN_ADDITIONAL_FIELDS:"Validation error.Invalid table key value in additionalFields record at index %s1. Specify a value of type string for table key.",INVALID_SKYFLOW_ID_IN_ADDITIONAL_FIELDS:"Validation error.Invalid 'skyflow_id' key value in additionalFields record at index %s1. Specify a valid value for 'skyflow_id' key.",MISSING_FIELDS_IN_ADDITIONAL_FIELDS:"Validation error.'fields' key not found in additionalFields record at index %s1. Specify a 'fields' key in additionalFields record at index %s1.",INVALID_FIELDS_IN_ADDITIONAL_FIELDS:"Validation error.invaid 'fields' key value in additionalFields record at index %s1. Specify a value of type array for 'fields' key.",RECORDS_KEY_NOT_FOUND_DETOKENIZE:"Delete failed. Delete request is rejected.",EMPTY_RECORDS_DETOKENIZE:"Validation error. Invalid 'records' key found. Specify a value of type array instead.",INVALID_RECORDS_IN_DETOKENIZE:"Validation error. 'records' key cannot be empty. Provide a non-empty value instead.",MISSING_TOKEN_IN_DETOKENIZE:"Validation error. Missing 'token' key in records at index %s1. Provide a valid 'token' key.",INVALID_TOKEN_IN_DETOKENIZE:"Validation error. Invalid 'token' key in records at index %s1. Specify a value of type string instead.",RECORDS_KEY_NOT_FOUND_GET:"Validation error. Missing 'records' key. Provide a valid 'records' key.",INVALID_RECORDS_IN_GET:"Validation error. Invalid 'records' key found. Specify a value of type array instead.",EMPTY_RECORDS_GET:"Validation error. 'records' key cannot be empty. Provide a non-empty value instead.",MISSING_IDS_IN_GET:"Validation error. Missing 'ids' key in records at index %s1. Provide a valid 'ids' key.",INVALID_IDS_IN_GET:"Validation error. Invalid 'ids' key found. Specify a value of type array instead.",INVALID_COLUMN_VALUES_IN_GET:"Validation error. Invalid 'columnValues' key found. Specify a value of type array instead.",EMPTY_IDS_IN_GET:"Validation error. 'ids' key cannot be an array of empty strings in records at index %s1. Specify non-empty values instead.",INVALID_SKYFLOWID_TYPE_IN_GET:"Validation error. Invalid 'id' found in 'ids' array in 'records' at index %s1 . Specify a value of type string instead.",MISSING_TABLE_IN_GET:"Validation error. Missing 'table' key in records at index %s1. Provide a valid 'table' key.",INVALID_TABLE_IN_GET:"Validation error. Invalid 'table' key in records at index %s1. Specify a value of type string instead.",MISSING_REDACTION_IN_GET:"Validation error. Missing 'redaction' key in records at index %s1. Provide a valid 'redaction' key.",INVALID_REDACTION_TYPE_IN_GET:"Validation error. Invalid 'redaction' key in records at index %s1. Specify a valid redaction type.",INVALID_TOKENS_IN_GET:"Validation error. Invalid tokens in get options. Specify a boolean value for tokens.",TOKENS_GET_COLUMN_NOT_SUPPORTED:"Validation error. 'columnName' and 'columnValues' cannot be used when 'tokens' are set to true in get options. Either set 'tokens' to false or use 'ids' instead.",REDACTION_WITH_TOKENS_NOT_SUPPORTED:"Get failed. Redaction cannot be applied when 'tokens' are set to true in get options. Either remove redaction or set 'tokens' to false.",INVALID_REDACTION_TYPE_IN_DETOKENIZE:"Validation error. Invalid 'redaction' key in records at index %s1. Specify a valid redaction type.",EMPTY_RECORDS_REVEAL:"Validation error. 'records' key cannot be empty. Provide a non-empty value instead.",MISSING_TOKEN_KEY_REVEAL:"Validation error. Missing 'token' key for reveal element. Specify a valid value for token.",MISSING_SKYFLOWID_KEY_REVEAL:"Validation error. Missing 'skyflowID' key for file render element. Provide a valid 'skyflowID' key.",MISSING_TABLE_KEY_REVEAL:"Validation error.'table' key not found for file render element. Specify a valid value for 'table' key.",MISSING_COLUMN_KEY_REVEAL:"Validation error.'column' key not found for file render element. Specify a valid value for 'column' key.",INVALID_SKYFLOW_ID_REVEAL:"Validation error. Invalid 'skyflowID' key for file render element. Specify a value of type string instead.",INVALID_TABLE_REVEAL:"Validation error. Invalid 'table' key for file render element. Specify a value of type string instead.",INVALID_COLUMN_NAME_REVEAL:"Validation error. Invalid 'column' key for file render element. Specify a value of type string instead.",EMPTY_SKYFLOW_ID_REVEAL:"Validation error. 'skyflowID' key cannot be empty for file render element. Specify a non-empty value instead.",EMPTY_TABLE_REVEAL:"Validation error. 'table' key cannot be empty for file render element. Specify a non-empty value instead.",EMPTY_COLUMN_NAME_REVEAL:"Validation error. 'column' key cannot be empty for file render element. Specify a non-empty value instead.",INVALID_TOKEN_ID_REVEAL:"Validation error. Invalid 'token' key found for reveal element. Specify a value of type string instead.",INVALID_LABEL_REVEAL:"Validation error. Invalid 'label' key found for reveal element. Specify a value of type string instead.",INVALID_ALT_TEXT_REVEAL:"Validation error. Invalid 'altText' key found for reveal element. Specify a value of type string instead.",INVALID_ALT_TEXT_RENDER:"Validation error. Invalid 'altText' key found for reveal element. Specify a value of type string instead.",INVALID_FORMAT_REVEAL:"Validation error. Invalid 'format' key found for reveal element. Specify a value of type string instead.",EMPTY_FORMAT_REVEAL:"Validation error. 'format' key cannot be empty for reveal element. Specify a non-empty value instead.",INVALID_FORMAT_VALUE_REVEAL:"Validation error. Invalid 'format' key found for reveal element. Specify a value of type string instead.",INVALID_REDACTION_TYPE_REVEAL:"Validation error. Invalid 'redaction' key found for reveal element. Specify a valid redaction type.",ELEMENTS_NOT_MOUNTED_REVEAL:"Reveal failed. Make sure to mount all elements before invoking 'reveal' function.",EMPTY_TABLE_IN_ADDITIONAL_FIELDS:"Validation error.'table' field cannot be empty in additionalFields record at index %s1. Specify a non-empty value instead.",EMPTY_FIELDS_IN_ADDITIONAL_FIELDS:"Validation error.'fields' object cannot be empty in additionalFields record at index %s1. Specify a non-empty value instead.",EMPTY_TOKEN_IN_DETOKENIZE:"Validation error. 'token' key cannot be empty in records at index %s1. Specify a non-empty value instead.",EMPTY_SKYFLOWID_IN_GET:"Validation error. 'id' cannot be empty in 'ids' array in 'records' at index %s1. Specify non-empty values instead.",EMPTY_TABLE_IN_GET:"Validation error. 'table' key cannot be empty in records at index %s1. Specify a non-empty value instead.",EMPTY_REDACTION_TYPE_IN_GET:"Validation error. 'redaction' key cannot be empty in records at index %s1. Specify a non-empty value instead.",EMPTY_TOKEN_ID_REVEAL:"Validation error. 'token' key cannot be empty for reveal element. Specify a non-empty value instead.",FETCH_RECORDS_REJECTED:"Detokenize failed. Detokenize request is rejected.",INSERT_RECORDS_REJECTED:"Insert failed. Insert request is rejected.",GET_REJECTED:"Get failed. Get request is rejected.",FAILED_REVEAL:"Reveal failed. Some errors were encountered.",FAILED_RENDER:"Failed to render file. Some errors were encountered.",SKYFLOW_IDS_AND_TOKEN_BOTH_SPECIFIED:"Validation error. skyflowID and token can not be specified together.",MISSING_TABLE_IN_COLLECT:"Validation error.'table' key not found for collect element. Specify a valid value for 'table' key.",EMPTY_TABLE_IN_COLLECT:"Validation error.'table' cannot be empty for collect element. Specify a non-empty value for 'table'.",EMPTY_SKYFLOW_ID_IN_ADDITIONAL_FIELDS:"Validation error.'id' cannot be empty in addtionalFields record at index %s1. Specify a non-empty value for 'id'.",EMPTY_SKYFLOW_ID_COLLECT:"Validation error.'skyflowID' cannot be empty for collect element. Specify a non-empty value for 'skyflowID'.",INVALID_TABLE_IN_COLLECT:"Validation error. Invalid type for 'table' key value for collect element. Specify a value of type string instead.",INVALID_SKYFLOWID_IN_COLLECT:"Validation error. Invalid type for 'skyflowID' key value for collect element. Specify a value of type string instead.",MISSING_COLUMN_IN_COLLECT:"Validation error. 'column' key not found for collect element. Specify a valid column.",MISSING_SKYFLOWID_IN_COLLECT:"Validation error. 'skyflow_id' key not found for collect element. Specify a valid skyflowID.",EMPTY_COLUMN_IN_COLLECT:"Validation error. 'column' key cannot be empty for collect element. Specify a non-empty value instead.",INVALID_COLUMN_IN_COLLECT:"Validation error. Invalid type for 'column' key for collect element. Specify a value of type string instead.",UNIQUE_ELEMENT_NAME:"Validation error.Element name must be unique: %s1. Please enter a unique element name.",ELEMENTS_NOT_MOUNTED:"Collect failed. Make sure all elements are mounted before calling 'collect' on the container.",DUPLICATE_ELEMENT:"Mount failed.'%s1' appeared multiple times in '%s2'. Make sure each column in a record is unique.",DUPLICATE_ELEMENT_ADDITIONAL_FIELDS:"Mount failed. '%s1' appeared in record index '%s2' in the additional fields. Make sure each column in a record is unique.",MISSING_ELEMENT_TYPE:"Mount failed. Invalid element type. Specify a valid 'type'.",EMPTY_ELEMENT_TYPE:"Mount failed. Invalid element type. Specify a valid 'type'",INVALID_ELEMENT_TYPE:"Mount failed. Invalid element type. Specify a valid 'type'",INVALID_ELEMENT_SELECTOR:"Mount failed. 'div' element not found. Specify a valid 'div'.",CANNOT_CHANGE_ELEMENT:"Element can't be changed.",INVALID_IFRAME:"Error occured while creating an iframe",INVALID_FIELD:"Invalid Field.",FRAME_NOT_FOUND:"Frame %s1 not found. Could not initialise element.",COMPLETE_AND_VALID_INPUTS:"Mount failed. Incomplete inputs for '%s1'. Make sure all inputs are complete and valid.",REQUIRED_PARAMS_NOT_PROVIDED:"Initialisation error. Couldn't find iframe name for element.",INVALID_EVENT_TYPE:"Invalid event type. Specify a valid event type.",INVALID_EVENT_LISTENER:" Invalid event listener. Please specify a valid event listener.",MISSING_HANDLER_IN_EVENT_LISTENER:"Event handler callback is missing. Provide a valid event handler callback function.",INVALID_HANDLER_IN_EVENT_LISTENER:"Validation error. Invalid type for 'validations' key. Specify a value of type array instead.",UNKNOWN_ERROR:"Unknown Error.",NETWORK_ERROR:"A network error occurred. This could be a CORS issue or a dropped internet connection. It is not possible for us to know. Please reach out to skyflow if you see this error",CONNECTION_ERROR:"Error while initializing the connection.",ERROR_OCCURED:"Error occurred.",INVALID_VALIDATIONS_TYPE:"Validation error. Invalid validations type.",MISSING_VALIDATION_RULE_TYPE:"Validation error. 'type' for validation rule missing in validations array at index %s1. Specify a valid 'type' for each rule in validations array.",INVALID_VALIDATION_RULE_TYPE:"Validation error. Invalid 'type' for validation rule found in validations array at index %s1 . Specify a valid rule type for validation rule.",MISSING_VALIDATION_RULE_PARAMS:"Validation error. 'params' for validation rule missing in validations array at index %s1. Specify valid 'params' for each rule in validations array.",INVALID_VALIDATION_RULE_PARAMS:"Validation error. Invalid 'params' for validation rule found in validations array at index %s1 . Specify valid params for validation rule.",MISSING_REGEX_IN_REGEX_MATCH_RULE:"Validation error. Missing 'regex' param in validations array at index %s1. Specify a valid value for regex param.",INVALID_REGEX_IN_REGEX_MATCH_RULE:"Validation error. Invalid value for 'regex' param found for regex in validations array at index %s1. Provide a valid value regular expression for regex param.",MISSING_MIN_AND_MAX_IN_LENGTH_MATCH_RULE:"Validation error. Missing both 'min' and 'max' params in validations array at index %s1. Specify either one or both params.",MISSING_ELEMENT_IN_ELEMENT_MATCH_RULE:"Validation error. Missing 'element' param in validations array at index %s1. Specify a valid value for element param. ",INVALID_ELEMENT_IN_ELEMENT_MATCH_RULE:"Validation error. Invalid 'element' provided in validations array at index %s1. Specify a value of type collect element instead.",ELEMENT_NOT_MOUNTED_IN_ELEMENT_MATCH_RULE:"Validation error. Element provided in validations array at index %s1 is not mounted. Make sure the element is mounted.",EMPTY_ELEMENT_IN_MOUNT:"mount element with type %s1 - Mount cannot be empty.",VALIDATION_FAILED:"Validation failed",REVEAL_ELEMENT_ERROR_STATE:"Reveal failed. 'setError' is invoked on one or more elements. Make sure to reset any custom errors on all elements before invoking 'reveal' function.",INVALID_FILE_TYPE:"Invalid File Type.",INVALID_FILE_SIZE:"Invalid File Size",NO_FILE_SELECTED:"No File Selected",INVALID_UPSERT_OPTION_TYPE:"Validation error. Invalid 'upsert' key in insert options. Specify a value of type array instead",EMPTY_UPSERT_OPTIONS_ARRAY:"Validation error. 'upsert' key cannot be an empty array in insert options. Make sure to add atleast one table column object in upsert array.",INVALID_UPSERT_OPTION_OBJECT_TYPE:"Validation error. Invalid value in upsert array at index %s1 in insert options. Specify objects with 'table' and 'column' keys instead.",MISSING_TABLE_IN_UPSERT_OPTION:"Validation error. Missing 'table' key in upsert array at index %s1. Provide a valid 'table' key.",MISSING_COLUMN_IN_UPSERT_OPTION:"Validation error. Missing 'column' key in upsert array at index %s1. Provide a valid 'column' key",INVALID_TABLE_IN_UPSERT_OPTION:"Validation error. Invalid 'table' key in upsert array at index %s1. Specify a value of type string instead.",INVALID_COLUMN_IN_UPSERT_OPTION:"Validation error. Invalid 'column' key in upsert array at index %s1. Specify a value of type string instead.",INVALID_RECORD_COLUMN_VALUE:"Validation error. Invalid 'column' key. Specify a value of type string instead.",MISSING_RECORD_COLUMN_VALUE:"Validation error. Column Values is required when Column Name is specified.",MISSING_RECORD_COLUMN_NAME:"Validation error. Column Name is required when Column Values are specified.",INVALID_RECORD_COLUMN_VALUE_TYPE:"Validation error. Invalid Type of Records Column Values in records at index %s1",INVALID_COLUMN_VALUES_TYPE:"Validation error. Invalid column values type, should be an Array.",EMPTY_RECORD_COLUMN_VALUES:"Validation error. Record column values cannot be empty in records at index %s1",EMPTY_COLUMN_VALUE:"Validation error. Column Value is empty in records at index %s1",MISSING_IDS_OR_COLUMN_VALUES_IN_GET:"Validation error. Both 'ids' or 'columnValues' keys are missing. Either provide 'ids' or 'columnValues' with 'columnName' to fetch records.",SKYFLOW_IDS_AND_COLUMN_NAME_BOTH_SPECIFIED:"Validation error. ids and columnName can not be specified together.",GET_BY_SKYFLOWID_RESOLVED:"%s1 - GetById request is resolved.",RECORDS_KEY_NOT_FOUND_GETBYID:"Validation error. Missing 'records' key. Provide a valid 'records' key.",INVALID_RECORDS_IN_GETBYID:"Validation error. Invalid 'records' key found. Specify a value of type array instead.",EMPTY_RECORDS_GETBYID:"Validation error. 'records' key cannot be empty. Provide a non-empty value instead.",MISSING_IDS_IN_GETBYID:"Validation error. Missing 'ids' key in records at index %s1. Provide a valid 'ids' key.",INVALID_IDS_IN_GETBYID:"Validation error. Invalid 'ids' key in records at index %s1. ids object should be an array.",EMPTY_IDS_IN_GETBYID:"Validation error. 'ids' key cannot be an empty array in records at index %s1. Make sure to provide atleast one id in array.",INVALID_SKYFLOWID_TYPE_IN_GETBYID:"Validation error. Invalid value in ids array in records at index %s1. Specify a value of type string instead.",MISSING_TABLE_IN_GETBYID:"Validation error. Missing 'table' key in records at index %s1. Provide a valid 'table' key.",INVALID_TABLE_IN_GETBYID:"Validation error. Invalid 'table' key in records at index %s1. Specify a value of type string instead.",MISSING_REDACTION_IN_GETBYID:"Validation error. Missing 'redaction' key in records at index %s1. Provide a valid 'redaction' key.",INVALID_REDACTION_TYPE_IN_GETBYID:"Validation error. Invalid 'redaction' key in records at index %s1. Specify a valid redaction type.",EMPTY_SKYFLOWID_IN_GETBYID:"Validation error. 'ids' key cannot be an array of empty strings in records at index %s1. Specify non-empty values instead.",EMPTY_TABLE_IN_GETBYID:"Validation error. 'table' key cannot be empty in records at index %s1. Specify a non-empty value instead.",EMPTY_REDACTION_TYPE_IN_GETBYID:"Validation error. 'redaction' key cannot be empty in records at index %s1. Specify a non-empty value instead.",GET_BY_SKYFLOWID_REJECTED:"GetById failed. GetById request is rejected.",MISSING_COMPOSABLE_LAYOUT_KEY:"Mount failed. Layout is not specified in composable container options. Specify a valid layout.",EMPTY_COMPOSABLE_LAYOUT_ARRAY:"Mount failed. Layout array is empty in composable container options. Specify a valid layout array.",INVALID_COMPOSABLE_LAYOUT_TYPE:"Mount failed. Invalid layout array values. Make sure all values in the layout array are positive numbers.",NEGATIVE_VALUES_COMPOSABLE_LAYOUT:"Mount failed. layout array should only have positive numbers in composable container options.",MISMATCH_ELEMENT_COUNT_LAYOUT_SUM:"Mount failed. Invalid layout array values. Make sure all values in the layout array are positive numbers.",MISSING_COMPOSABLE_CONTAINER_OPTIONS:"Mount failed. An options object is required for composable containers. Specify a valid options object.",INVALID_COMPOSABLE_CONTAINER_OPTIONS:"Mount failed. Invalid options object. Specify a valid options object.",COMPOSABLE_CONTAINER_NOT_MOUNTED:"Mount elements first. Make sure all elements are mounted before calling 'collect' on the container.",INVALID_BOOLEAN_OPTIONS:"Validation error. Invalid %s1 found in collect options. Specify a value of type boolean instead.",INVALID_MASKING_CHARACTER:"Validation error. Invalid masking character. Specify a valid masking character. ",INVALID_INPUT_OPTIONS_FORMAT:"Mount failed. Format must be a non-empty string. Specify a valid format.",INVALID_INPUT_OPTIONS_TRANSLATION:"Mount failed. Translation must be a non-empty object. Specify a valid translation.",EMPTY_COLLECT_CUSTOM_FORMAT:"Mount failed. '%s1' can not be an empty object. Specify a valid object.",INVALID_ALLOWED_OPTIONS:"Validation error. Invalid options, allowedFileType must be of string array type.",EMPTY_ALLOWED_OPTIONS_ARRAY:"Validation error. Invalid options value, allowedFileType array is empty.",INVALID_ALLOWED_FILETYPE_ARRAY:"Validation error. Invalid options value, allowedFileType array must contain only string elements.",INVALID_OPTION_CARD_METADATA:"Validation error. container create - Invalid type, cardMetadata must be of non-empty object type.",INVALID_OPTION_CARD_SCHEME:"Validation error. container create - Invalid options, scheme must be of string array type.",INVALID_FIELD_SHOW_3DS_CHALLEGNGE:"Invalid field '%s1'. Cannot initiate 3DS Challenge. Verify '%s1'"},warnLogs:{INVALID_EXPIRATION_DATE_FORMAT:"EXPIRATION_DATE format must be in one of %s1, the format is set to default MM/YY",INVALID_EXPIRATION_YEAR_FORMAT:"EXPIRATION_YEAR format must be in one of %s1, the format is set to default YY",UNABLE_TO_SET_VALUE_IN_PROD_ENV:"%s1 setValue() cannot invoked while in PROD env. It is Not Recommeded",UNABLE_TO_CLEAR_VALUE_IN_PROD_ENV:"%s1 clearValue() cannot invoked while in PROD env. It is Not Recommeded",COLLECT_ALT_TEXT_DEPERECATED:"altText is DEPERECATED, passing altText will not have any effect",GET_BY_ID_DEPRECATED:"getById is deprecated, use new get method",INPUT_FORMATTING_NOT_SUPPROTED:"format or translation are not supported on %s1 element type.",INVALID_INPUT_TRANSLATION:"invalid or unsupported translation provided for %s1 element type."}};var S,D,x,M,C,P,k,V,j="collect_controller",U="element",F={COLLECT:"COLLECT",REVEAL:"REVEAL",COMPOSE:"COMPOSABLE"},G={MOUNTED:"MOUNTED",READY:"FRAME_READY"},Y="element_type",B="div_id",X="container_name",W=G,K="events",q="mount_start_time",z="mount_end_time",H="error",J={SUCCESS:"SUCCESS",INITIALIZED:"INITIALIZED",PARTIAL_RENDER:"PARTIAL_RENDER",FAILED:"FAILED"},Z="INSERT",$="DETOKENIZE",Q="GET_BY_SKYFLOWID",ee="GET",te="DELETE",ne="COLLECT",re="FILE_UPLOAD",oe="REVEAL",ie="RENDER_FILE",ae={CHANGE:"CHANGE",READY:"READY",FOCUS:"FOCUS",BLUR:"BLUR",ESCAPE:"ESCAPE",CLICK:"CLICK",ERROR:"ERROR",SUCCESS:"SUCCESS",SUBMIT:"SUBMIT",CREATED:"CREATED",MOUNTED:"MOUNTED",HEIGHT:"HEIGHT"},ce="REVEAL_CALL_WINDOW_RESPONSE",le="REVEAL_CALL_WINDOW_REQUEST",se="SKYFLOW_CONTROLLER_READY",pe="COLLECT_CALL_REQUESTS",ue="COLLECT_CALL_REQUEST",de="COLLECT",fe="COLLECT_SUCCESS",Ee="REVEAL_CALL_REQUESTS",_e="TOKENIZATION_REQUEST",me="INPUT_EVENT",ve="DESTROY FRAME",Ie="SET_VALUE",ye="PUREJS_REQUEST",Oe="PUREJS_FRAME_READY",ge="GET_BEARER_TOKEN",Ne="COLLECT_ELEMENT_SET_ERROR",Le="COLLECT_ELEMENT_SET_ERROR_OVERRIDE",he="REVEAL_ELEMENT_SET_ERROR",Te="REVEAL_ELEMENT_UPDATE_OPTIONS",be="FILE_UPLOAD",Ae="COMPOSABLE_UPDATE_OPTIONS",we="RENDER_FILE_REQUEST",Re="PUSH_EVENT",Se="SKYFLOW_FRAME_CONTROLLER_READY",De="COLLECT_ELEMENT_READY",xe="TOKEN",Me="ALT_TEXT",Ce="ELEMENT_PROPS",Pe="ELEMENT_MOUNTED",ke="ALL_ELEMENTS_MOUNTED",Ve=function(e){return e.CVV="CVV",e.EXPIRATION_DATE="EXPIRATION_DATE",e.CARD_NUMBER="CARD_NUMBER",e.CARDHOLDER_NAME="CARDHOLDER_NAME",e.INPUT_FIELD="INPUT_FIELD",e.PIN="PIN",e.EXPIRATION_MONTH="EXPIRATION_MONTH",e.EXPIRATION_YEAR="EXPIRATION_YEAR",e.FILE_INPUT="FILE_INPUT",e}({}),je=function(e){return e.VISA="VISA",e.MASTERCARD="MASTERCARD",e.AMEX="AMEX",e.DINERS_CLUB="DINERS_CLUB",e.DISCOVER="DISCOVER",e.JCB="JCB",e.MAESTRO="MAESTRO",e.UNIONPAY="UNIONPAY",e.HIPERCARD="HIPERCARD",e.DEFAULT="DEFAULT",e.UNKNOWN="UNKNOWN",e.CARTES_BANCAIRES="CARTES BANCAIRES",e}({}),Ue=(l(S={},je.VISA,"Visa"),l(S,je.MASTERCARD,"Mastercard"),l(S,je.AMEX,"Amex"),l(S,je.DINERS_CLUB,"DinersClub"),l(S,je.DISCOVER,"Discover"),l(S,je.JCB,"Jcb"),l(S,je.MAESTRO,"Maestro"),l(S,je.UNIONPAY,"Unionpay"),l(S,je.HIPERCARD,"Hipercard"),l(S,je.DEFAULT,"Default"),l(S,je.UNKNOWN,"Unknown"),l(S,je.CARTES_BANCAIRES,"Cartes Bancaires"),l(D={},je.AMEX,["XXXX XXXXXX XXXXX",{X:"[0-9]"}]),l(D,je.VISA,["XXXX XXXX XXXX XXXX",{X:"[0-9]"}]),l(D,je.MASTERCARD,["XXXX XXXX XXXX XXXX",{X:"[0-9]"}]),l(D,je.DISCOVER,["XXXX XXXX XXXX XXXX XXX",{X:"[0-9]"}]),l(D,je.DINERS_CLUB,["XXXX XXXXXX XXXXXX",{X:"[0-9]"}]),l(D,je.JCB,["XXXX XXXX XXXX XXXX XXX",{X:"[0-9]"}]),l(D,je.MAESTRO,["XXXX XXXX XXXX XXXX XXX",{X:"[0-9]"}]),l(D,je.UNIONPAY,["XXXX XXXX XXXX XXXX XXX",{X:"[0-9]"}]),l(D,je.HIPERCARD,["XXXX XXXX XXXX XXXX XXX",{X:"[0-9]"}]),l(D,je.DEFAULT,["XXXX XXXX XXXX XXXX XXX",{X:"[0-9]"}]),l(D,je.UNKNOWN,["XXXX XXXX XXXX XXXX XXX",{X:"[0-9]"}]),D),Fe=(l(x={textarea:{name:"textarea",attributes:{type:"textarea"},sensitive:!1},checkbox:{name:"checkbox",attributes:{type:"checkbox"},sensitive:!1},radio:{name:"radio",attributes:{type:"radio"},sensitive:!1},dropdown:{name:"dropdown",attributes:{type:"select"},sensitive:!1}},Ve.CARDHOLDER_NAME,{name:"cardHolderName",attributes:{type:"text",autocomplete:"cc-name"},sensitive:!0,regex:/^([a-zA-Z\\ \\,\\.\\-\\']{2,})$/}),l(x,Ve.CARD_NUMBER,{name:"CARD_NUMBER",attributes:{type:"text",autocomplete:"cc-number",inputmode:"numeric"},sensitive:!0,mask:Ue[je.DEFAULT],regex:/$|^[\s]*?([0-9]{2,6}[ -]?){3,5}[\s]*/}),l(x,Ve.EXPIRATION_DATE,{name:"EXPIRATION_DATE",attributes:{type:"text",autocomplete:"cc-exp",inputmode:"numeric"},sensitive:!0}),l(x,Ve.EXPIRATION_MONTH,{name:"EXPIRATION_MONTH",attributes:{maxLength:2,type:"text",inputmode:"numeric",autocomplete:"cc-exp-month"},sensitive:!0,mask:["XX",{X:"[0-9]"}]}),l(x,Ve.EXPIRATION_YEAR,{name:"EXPIRATION_YEAR",attributes:{type:"text",inputmode:"numeric",autocomplete:"cc-exp-year"},sensitive:!0}),l(x,Ve.CVV,{name:"CVV",attributes:{type:"text",inputmode:"numeric",maxLength:4},sensitive:!0,regex:/^$|^[0-9]{3,4}$/}),l(x,Ve.INPUT_FIELD,{name:"INPUT_FIELD",sensitive:!0,attributes:{type:"text"}}),l(x,Ve.PIN,{name:"PIN",attributes:{type:"text",inputmode:"numeric",maxLength:12,minLength:4},sensitive:!0,regex:/^$|^[0-9]{4,12}$/}),l(x,Ve.FILE_INPUT,{name:"FILE_INPUT",sensitive:!0,attributes:{type:"file"}}),x),Ge="XXXX-XXXX-XXXX-XXXX",Ye={height:"100%",width:"100%",margin:0,padding:0,border:0,position:"absolute",top:0,left:0,"user-select":"none"},Be={position:"absolute",top:0,width:0,height:0,visibility:"hidden",left:"-99999999px","user-select":"none"},Xe={width:"100%",height:"100%",border:"0",padding:"0",margin:"0",outline:"none"},We={WEBPACKAUTOFILL:"-webkit-autofill",BASE:"base",FOCUS:"focus",COMPLETE:"complete",EMPTY:"empty",INVALID:"invalid",GLOBAL:"global",REQUIRED_ASTERISK:"requiredAsterisk"},Ke=(l({},We.BASE,{maxHeight:"100%",maxWidth:"100%"}),l({},We.BASE,{"margin-bottom":"4px"}),l({},We.BASE,{"margin-bottom":"4px",display:"flex",flexDirection:"column",justifyContent:"space-between"}),l({},We.BASE,{marginTop:"4px"}),l(M={},We.BASE,{marginBottom:"4px"}),l(M,We.REQUIRED_ASTERISK,{display:"inline",color:"red"}),l(C={},je.VISA,{regex:/^4\d*/,maxCardLength:19,cardLengthRange:[13,16]}),l(C,je.MASTERCARD,{regex:/^(5[1-5]|222[1-9]|22[3-9]|2[3-6]|27[0-1]|2720)\d*/,maxCardLength:16,cardLengthRange:[16]}),l(C,je.AMEX,{regex:/^3[47]\d*/,maxCardLength:15,cardLengthRange:[15]}),l(C,je.DINERS_CLUB,{regex:/^(36|38|30[0-5])\d*/,maxCardLength:16,cardLengthRange:[14,15,16,17,18,19]}),l(C,je.DISCOVER,{regex:/^(6011|65|64[4-9]|622)\d*/,maxCardLength:16,cardLengthRange:[16,17,18,19]}),l(C,je.JCB,{regex:/^35\d*/,maxCardLength:19,cardLengthRange:[16,17,18,19]}),l(C,je.HIPERCARD,{regex:/^606282\d*/,maxCardLength:19,cardLengthRange:[14,15,16,17,18,19]}),l(C,je.UNIONPAY,{regex:/^62\d*/,maxCardLength:19,cardLengthRange:[16,17,18,19]}),l(C,je.MAESTRO,{regex:/^(5018|5020|5038|5043|5[6-9]|6020|6304|6703|6759|676[1-3])\d*/,maxCardLength:19,cardLengthRange:[12,13,14,15,16,17,18,19]}),C),qe=(l(P={},je.DEFAULT,I),l(P,je.AMEX,y),l(P,je.CARTES_BANCAIRES,w),l(P,je.DINERS_CLUB,O),l(P,je.DISCOVER,g),l(P,je.HIPERCARD,N),l(P,je.JCB,L),l(P,je.MAESTRO,h),l(P,je.MASTERCARD,T),l(P,je.UNIONPAY,b),l(P,je.VISA,A),"MM/YY"),ze=[qe,"YYYY/MM","YY/MM","MM/YYYY"],He=["YY","YYYY"],Je=function(e){return e.APPLICATIONORJSON="application/json",e.TEXTORPLAIN="text/plain",e.TEXTORXML="text/xml",e.FORMURLENCODED="application/x-www-form-urlencoded",e.FORMDATA="multipart/form-data",e}({}),Ze=(Ve.CARD_NUMBER,Ve.EXPIRATION_DATE,Ve.EXPIRATION_MONTH,Ve.EXPIRATION_YEAR,l(k={},Ve.CVV,"Invalid cvv"),l(k,Ve.EXPIRATION_DATE,"Invalid expiration date"),l(k,Ve.CARD_NUMBER,"Invalid card number"),l(k,Ve.CARDHOLDER_NAME,"Invalid cardholder name"),l(k,Ve.INPUT_FIELD,R.errorLogs.INVALID_COLLECT_VALUE),l(k,Ve.PIN,"Invalid pin"),l(k,Ve.EXPIRATION_MONTH,"Invalid expiration month"),l(k,Ve.EXPIRATION_YEAR,"Invalid expiration year"),l(k,Ve.FILE_INPUT,R.errorLogs.INVALID_COLLECT_VALUE),l(V={},Ve.CVV,"cvv is required"),l(V,Ve.EXPIRATION_DATE,"expiration date is required"),l(V,Ve.CARD_NUMBER,"card number is required"),l(V,Ve.CARDHOLDER_NAME,"cardholder name is required"),l(V,Ve.INPUT_FIELD,R.errorLogs.DEFAULT_REQUIRED_COLLECT_VALUE),l(V,Ve.PIN,"pin is required"),l(V,Ve.EXPIRATION_MONTH,"expiration month is required"),l(V,Ve.EXPIRATION_YEAR,"expiration year is required"),l(V,Ve.FILE_INPUT,R.errorLogs.DEFAULT_REQUIRED_COLLECT_VALUE),[Ve.CARDHOLDER_NAME,Ve.EXPIRATION_MONTH,Ve.FILE_INPUT,Ve.PIN,Ve.CVV]),$e={X:"[0-9]"};function Qe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function et(e,t){if(e){if("string"==typeof e)return Qe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qe(e,t):void 0}}function tt(e){return function(e){if(Array.isArray(e))return Qe(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||et(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.")}()}function nt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rt(e,t){return rt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},rt(e,t)}function ot(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&rt(e,t)}function it(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return nt(e)}function at(e){return at=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},at(e)}function ct(e,t,n){return ct=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(e){return!1}}()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&rt(o,n.prototype),o},ct.apply(null,arguments)}function lt(e){var t="function"==typeof Map?new Map:void 0;return lt=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return ct(e,arguments,at(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),rt(r,e)},lt(e)}var st=function(e){return e.DEFAULT="DEFAULT",e.PLAIN_TEXT="PLAIN_TEXT",e.MASKED="MASKED",e.REDACTED="REDACTED",e}({}),pt=function(e){return e.GET="GET",e.POST="POST",e.PUT="PUT",e.PATCH="PATCH",e.DELETE="DELETE",e}({}),ut=function(e){return e.CHANGE="CHANGE",e.READY="READY",e.FOCUS="FOCUS",e.BLUR="BLUR",e.SUBMIT="SUBMIT",e}({}),dt=function(e){return e.WARN="WARN",e.INFO="INFO",e.DEBUG="DEBUG",e.ERROR="ERROR",e}({}),ft=function(e){return e.DEV="DEV",e.PROD="PROD",e}({}),Et=function(e){return e.LOG="LOG",e.WARN="WARN",e.ERROR="ERROR",e}({}),_t=function(e){return e.REGEX_MATCH_RULE="REGEX_MATCH_RULE",e.LENGTH_MATCH_RULE="LENGTH_MATCH_RULE",e.ELEMENT_VALUE_MATCH_RULE="ELEMENT_VALUE_MATCH_RULE",e}({});const mt={INVALID_FILE_NAME:{code:400,description:R.errorLogs.INVALID_FILE_NAME},INVALID_FIELD:{code:400,description:R.errorLogs.INVALID_FIELD},VAULTID_IS_REQUIRED:{code:400,description:R.errorLogs.VAULTID_IS_REQUIRED},EMPTY_VAULTID_IN_INIT:{code:400,description:R.errorLogs.EMPTY_VAULTID_IN_INIT},VAULTURL_IS_REQUIRED:{code:400,description:R.errorLogs.VAULTURL_IS_REQUIRED},EMPTY_VAULTURL_IN_INIT:{code:400,description:R.errorLogs.EMPTY_VAULTURL_IN_INIT},INVALID_VAULTURL_IN_INIT:{code:400,description:R.errorLogs.INVALID_VAULTURL_IN_INIT},GET_BEARER_TOKEN_IS_REQUIRED:{code:400,description:R.errorLogs.GET_BEARER_TOKEN_IS_REQUIRED},EMPTY_CONTAINER_TYPE:{code:400,description:R.errorLogs.EMPTY_CONTAINER_TYPE},INVALID_CONTAINER_TYPE:{code:400,description:R.errorLogs.INVALID_CONTAINER_TYPE},UNIQUE_ELEMENT_NAME:{code:400,description:R.errorLogs.UNIQUE_ELEMENT_NAME},ELEMENTS_NOT_MOUNTED:{code:400,description:R.errorLogs.ELEMENTS_NOT_MOUNTED},MISSING_TABLE_IN_COLLECT:{code:400,description:R.errorLogs.MISSING_TABLE_IN_COLLECT},MISSING_SKYFLOWID_KEY_REVEAL:{code:400,description:R.errorLogs.MISSING_SKYFLOWID_KEY_REVEAL},EMPTY_TABLE_IN_COLLECT:{code:400,description:R.errorLogs.EMPTY_TABLE_IN_COLLECT},EMPTY_SKYFLOW_ID_IN_ADDITIONAL_FIELDS:{code:400,description:R.errorLogs.EMPTY_SKYFLOW_ID_IN_ADDITIONAL_FIELDS},EMPTY_SKYFLOW_ID_COLLECT:{code:400,description:R.errorLogs.EMPTY_SKYFLOW_ID_COLLECT},INVALID_TABLE_IN_COLLECT:{code:400,description:R.errorLogs.INVALID_TABLE_IN_COLLECT},INVALID_SKYFLOWID_IN_COLLECT:{code:400,description:R.errorLogs.INVALID_SKYFLOWID_IN_COLLECT},MISSING_COLUMN_IN_COLLECT:{code:400,description:R.errorLogs.MISSING_COLUMN_IN_COLLECT},MISSING_SKYFLOWID_IN_COLLECT:{code:400,description:R.errorLogs.MISSING_SKYFLOWID_IN_COLLECT},EMPTY_COLUMN_IN_COLLECT:{code:400,description:R.errorLogs.EMPTY_TABLE_IN_COLLECT},INVALID_COLUMN_IN_COLLECT:{code:400,description:R.errorLogs.INVALID_COLUMN_IN_COLLECT},CLIENT_CONNECTION:{code:400,description:R.errorLogs.CLIENT_CONNECTION},RECORDS_KEY_NOT_FOUND:{code:404,description:R.errorLogs.RECORDS_KEY_NOT_FOUND},EMPTY_RECORDS_IN_INSERT:{code:400,description:R.errorLogs.EMPTY_RECORDS_IN_INSERT},INVALID_RECORDS_IN_INSERT:{code:404,description:R.errorLogs.INVALID_RECORDS_IN_INSERT},INVALID_TABLE_IN_INSERT:{code:400,description:R.errorLogs.INVALID_TABLE_IN_INSERT},EMPTY_TABLE_IN_INSERT:{code:400,description:R.errorLogs.EMPTY_TABLE_IN_INSERT},MISSING_TABLE_IN_INSERT:{code:400,description:R.errorLogs.MISSING_TABLE_IN_INSERT},EMPTY_FIELDS_IN_INSERT:{code:400,description:R.errorLogs.EMPTY_FIELDS_IN_INSERT},MISSING_FIELDS_IN_INSERT:{code:404,description:R.errorLogs.MISSING_FIELDS_IN_INSERT},INVALID_FIELDS_IN_INSERT:{code:404,description:R.errorLogs.INVALID_FIELDS_IN_INSERT},INVALID_TOKENS_IN_INSERT:{code:404,description:R.errorLogs.INVALID_TOKENS_IN_INSERT},RECORDS_KEY_NOT_FOUND_DETOKENIZE:{code:404,description:R.errorLogs.RECORDS_KEY_NOT_FOUND_DETOKENIZE},EMPTY_RECORDS_DETOKENIZE:{code:400,description:R.errorLogs.EMPTY_RECORDS_DETOKENIZE},INVALID_RECORDS_IN_DETOKENIZE:{code:404,description:R.errorLogs.INVALID_RECORDS_IN_DETOKENIZE},MISSING_TOKEN_IN_DETOKENIZE:{code:400,description:R.errorLogs.MISSING_TOKEN_IN_DETOKENIZE},INVALID_TOKEN_IN_DETOKENIZE:{code:400,description:R.errorLogs.INVALID_TOKEN_IN_DETOKENIZE},RECORDS_KEY_NOT_FOUND_GET:{code:400,description:R.errorLogs.RECORDS_KEY_NOT_FOUND_GET},INVALID_RECORDS_IN_GET:{code:400,description:R.errorLogs.INVALID_RECORDS_IN_GET},EMPTY_RECORDS_GET:{code:400,description:R.errorLogs.EMPTY_RECORDS_GET},MISSING_IDS_IN_GET:{code:400,description:R.errorLogs.MISSING_IDS_IN_GET},INVALID_IDS_IN_GET:{code:400,description:R.errorLogs.INVALID_IDS_IN_GET},INVALID_COLUMN_VALUES_IN_GET:{code:400,description:R.errorLogs.INVALID_COLUMN_VALUES_IN_GET},EMPTY_IDS_IN_GET:{code:400,description:R.errorLogs.EMPTY_IDS_IN_GET},INVALID_SKYFLOWID_TYPE_IN_GET:{code:400,description:R.errorLogs.INVALID_SKYFLOWID_TYPE_IN_GET},MISSING_TABLE_IN_GET:{code:400,description:R.errorLogs.MISSING_TABLE_IN_GET},INVALID_TABLE_IN_GET:{code:400,description:R.errorLogs.INVALID_TABLE_IN_GET},MISSING_REDACTION_IN_GET:{code:400,description:R.errorLogs.MISSING_REDACTION_IN_GET},INVALID_REDACTION_TYPE_IN_GET:{code:400,description:R.errorLogs.INVALID_REDACTION_TYPE_IN_GET},INVALID_TOKENS_IN_GET:{code:400,description:R.errorLogs.INVALID_TOKENS_IN_GET},TOKENS_GET_COLUMN_NOT_SUPPORTED:{code:400,description:R.errorLogs.TOKENS_GET_COLUMN_NOT_SUPPORTED},REDACTION_WITH_TOKENS_NOT_SUPPORTED:{code:400,description:R.errorLogs.REDACTION_WITH_TOKENS_NOT_SUPPORTED},INVALID_REDACTION_TYPE_IN_DETOKENIZE:{code:400,description:R.errorLogs.INVALID_REDACTION_TYPE_IN_DETOKENIZE},INVALID_TOKENS_IN_COLLECT:{code:404,description:R.errorLogs.INVALID_TOKENS_IN_COLLECT},RECORDS_KEY_NOT_FOUND_IN_ADDITIONAL_FIELDS:{code:404,description:R.errorLogs.RECORDS_KEY_NOT_FOUND_IN_ADDITIONAL_FIELDS},INVALID_RECORDS_IN_ADDITIONAL_FIELDS:{code:404,description:R.errorLogs.INVALID_RECORDS_IN_ADDITIONAL_FIELDS},EMPTY_RECORDS_IN_ADDITIONAL_FIELDS:{code:400,description:R.errorLogs.EMPTY_RECORDS_IN_ADDITIONAL_FIELDS},MISSING_TABLE_IN_ADDITIONAL_FIELDS:{code:400,description:R.errorLogs.MISSING_TABLE_IN_ADDITIONAL_FIELDS},INVALID_TABLE_IN_ADDITIONAL_FIELDS:{code:400,description:R.errorLogs.INVALID_TABLE_IN_ADDITIONAL_FIELDS},INVALID_SKYFLOW_ID_IN_ADDITIONAL_FIELDS:{code:400,description:R.errorLogs.INVALID_SKYFLOW_ID_IN_ADDITIONAL_FIELDS},MISSING_FIELDS_IN_ADDITIONAL_FIELDS:{code:400,description:R.errorLogs.MISSING_FIELDS_IN_ADDITIONAL_FIELDS},INVALID_FIELDS_IN_ADDITIONAL_FIELDS:{code:400,description:R.errorLogs.INVALID_FIELDS_IN_ADDITIONAL_FIELDS},RECORDS_KEY_NOT_FOUND_DELETE:{code:400,description:R.errorLogs.RECORDS_KEY_NOT_FOUND_DELETE},EMPTY_RECORDS_IN_DELETE:{code:400,description:R.errorLogs.EMPTY_RECORDS_IN_DELETE},INVALID_RECORDS_IN_DELETE:{code:404,description:R.errorLogs.INVALID_RECORDS_IN_DELETE},INVALID_TABLE_IN_DELETE:{code:400,description:R.errorLogs.INVALID_TABLE_IN_DELETE},EMPTY_TABLE_IN_DELETE:{code:400,description:R.errorLogs.EMPTY_TABLE_IN_DELETE},MISSING_TABLE_IN_DELETE:{code:400,description:R.errorLogs.MISSING_TABLE_IN_DELETE},EMPTY_ID_IN_DELETE:{code:400,description:R.errorLogs.EMPTY_ID_IN_DELETE},MISSING_ID_IN_DELETE:{code:404,description:R.errorLogs.MISSING_ID_IN_DELETE},INVALID_ID_IN_DELETE:{code:404,description:R.errorLogs.INVALID_ID_IN_DELETE},EMPTY_RECORDS_REVEAL:{code:400,description:R.errorLogs.EMPTY_RECORDS_REVEAL},MISSING_TOKEN_KEY_REVEAL:{code:400,description:R.errorLogs.MISSING_TOKEN_KEY_REVEAL},INVALID_TOKEN_ID_REVEAL:{code:400,description:R.errorLogs.INVALID_TOKEN_ID_REVEAL},INVALID_LABEL_REVEAL:{code:400,description:R.errorLogs.INVALID_LABEL_REVEAL},INVALID_ALT_TEXT_REVEAL:{code:400,description:R.errorLogs.INVALID_ALT_TEXT_REVEAL},INVALID_ALT_TEXT_RENDER:{code:400,description:R.errorLogs.INVALID_ALT_TEXT_RENDER},INVALID_FORMAT_REVEAL:{code:400,description:R.errorLogs.INVALID_FORMAT_REVEAL},EMPTY_FORMAT_REVEAL:{code:400,description:R.errorLogs.EMPTY_FORMAT_REVEAL},INVALID_FORMAT_VALUE_REVEAL:{code:400,description:R.errorLogs.INVALID_FORMAT_VALUE_REVEAL},INVALID_REDACTION_TYPE_REVEAL:{code:400,description:R.errorLogs.INVALID_REDACTION_TYPE_REVEAL},EMPTY_TABLE_IN_ADDITIONAL_FIELDS:{code:400,description:R.errorLogs.EMPTY_TABLE_IN_ADDITIONAL_FIELDS},EMPTY_FIELDS_IN_ADDITIONAL_FIELDS:{code:400,description:R.errorLogs.EMPTY_FIELDS_IN_ADDITIONAL_FIELDS},EMPTY_TOKEN_IN_DETOKENIZE:{code:400,description:R.errorLogs.EMPTY_TOKEN_IN_DETOKENIZE},EMPTY_SKYFLOWID_IN_GET:{code:400,description:R.errorLogs.EMPTY_SKYFLOWID_IN_GET},EMPTY_TABLE_IN_GET:{code:400,description:R.errorLogs.EMPTY_TABLE_IN_GET},EMPTY_REDACTION_TYPE_IN_GET:{code:400,description:R.errorLogs.EMPTY_REDACTION_TYPE_IN_GET},EMPTY_TOKEN_ID_REVEAL:{code:400,description:R.errorLogs.EMPTY_TOKEN_ID_REVEAL},DUPLICATE_ELEMENT:{code:400,description:R.errorLogs.DUPLICATE_ELEMENT},DUPLICATE_ELEMENT_ADDITIONAL_FIELDS:{code:400,description:R.errorLogs.DUPLICATE_ELEMENT_ADDITIONAL_FIELDS},MISSING_ELEMENT_TYPE:{code:400,description:R.errorLogs.MISSING_ELEMENT_TYPE},EMPTY_ELEMENT_TYPE:{code:400,description:R.errorLogs.EMPTY_ELEMENT_TYPE},INVALID_ALLOWED_OPTIONS:{code:400,description:R.errorLogs.INVALID_ALLOWED_OPTIONS},EMPTY_ALLOWED_OPTIONS_ARRAY:{code:400,description:R.errorLogs.EMPTY_ALLOWED_OPTIONS_ARRAY},INVALID_ALLOWED_FILETYPE_ARRAY:{code:400,description:R.errorLogs.INVALID_ALLOWED_FILETYPE_ARRAY},INVALID_ELEMENT_TYPE:{code:400,description:R.errorLogs.INVALID_ELEMENT_TYPE},INVALID_ELEMENT_SELECTOR:{code:400,description:R.errorLogs.INVALID_ELEMENT_SELECTOR},FRAME_NOT_FOUND:{code:400,description:R.errorLogs.FRAME_NOT_FOUND},REQUIRED_PARAMS_NOT_PROVIDED:{code:400,description:R.errorLogs.REQUIRED_PARAMS_NOT_PROVIDED},INVALID_RECORD_COLUMN_VALUE:{code:400,description:R.errorLogs.INVALID_RECORD_COLUMN_VALUE},MISSING_RECORD_COLUMN_VALUE:{code:400,description:R.errorLogs.MISSING_RECORD_COLUMN_VALUE},MISSING_RECORD_COLUMN_NAME:{code:400,description:R.errorLogs.MISSING_RECORD_COLUMN_NAME},INVALID_EVENT_TYPE:{code:400,description:R.errorLogs.INVALID_EVENT_TYPE},INVALID_EVENT_LISTENER:{code:400,description:R.errorLogs.INVALID_EVENT_LISTENER},MISSING_HANDLER_IN_EVENT_LISTENER:{code:400,description:R.errorLogs.MISSING_HANDLER_IN_EVENT_LISTENER},INVALID_HANDLER_IN_EVENT_LISTENER:{code:400,description:R.errorLogs.INVALID_HANDLER_IN_EVENT_LISTENER},UNKNOWN_ERROR:{code:400,description:R.errorLogs.UNKNOWN_ERROR},CONNECTION_ERROR:{code:400,description:R.errorLogs.CONNECTION_ERROR},NETWORK_ERROR:{code:500,description:R.errorLogs.NETWORK_ERROR},COMPLETE_AND_VALID_INPUTS:{code:400,description:R.errorLogs.COMPLETE_AND_VALID_INPUTS},INVALID_VALIDATIONS_TYPE:{code:400,description:R.errorLogs.INVALID_VALIDATIONS_TYPE},MISSING_VALIDATION_RULE_TYPE:{code:400,description:R.errorLogs.MISSING_VALIDATION_RULE_TYPE},INVALID_VALIDATION_RULE_TYPE:{code:400,description:R.errorLogs.INVALID_VALIDATION_RULE_TYPE},MISSING_VALIDATION_RULE_PARAMS:{code:400,description:R.errorLogs.MISSING_VALIDATION_RULE_PARAMS},INVALID_VALIDATION_RULE_PARAMS:{code:400,description:R.errorLogs.INVALID_VALIDATION_RULE_PARAMS},MISSING_REGEX_IN_REGEX_MATCH_RULE:{code:400,description:R.errorLogs.MISSING_REGEX_IN_REGEX_MATCH_RULE},INVALID_REGEX_IN_REGEX_MATCH_RULE:{code:400,description:R.errorLogs.INVALID_REGEX_IN_REGEX_MATCH_RULE},MISSING_MIN_AND_MAX_IN_LENGTH_MATCH_RULE:{code:400,description:R.errorLogs.MISSING_MIN_AND_MAX_IN_LENGTH_MATCH_RULE},MISSING_ELEMENT_IN_ELEMENT_MATCH_RULE:{code:400,description:R.errorLogs.MISSING_ELEMENT_IN_ELEMENT_MATCH_RULE},INVALID_ELEMENT_IN_ELEMENT_MATCH_RULE:{code:400,description:R.errorLogs.INVALID_ELEMENT_IN_ELEMENT_MATCH_RULE},ELEMENT_NOT_MOUNTED_IN_ELEMENT_MATCH_RULE:{code:400,description:R.errorLogs.ELEMENT_NOT_MOUNTED_IN_ELEMENT_MATCH_RULE},EMPTY_ELEMENT_IN_MOUNT:{code:400,description:R.errorLogs.EMPTY_ELEMENT_IN_MOUNT},REVEAL_ELEMENT_ERROR_STATE:{code:400,description:R.errorLogs.REVEAL_ELEMENT_ERROR_STATE},INVALID_FILE_TYPE:{code:400,description:R.errorLogs.INVALID_FILE_TYPE},INVALID_FILE_SIZE:{code:400,description:R.errorLogs.INVALID_FILE_SIZE},NO_FILE_SELECTED:{code:400,description:R.errorLogs.NO_FILE_SELECTED},INVALID_TABLE_IN_UPSERT_OPTION:{code:400,description:R.errorLogs.INVALID_TABLE_IN_UPSERT_OPTION},INVALID_COLUMN_IN_UPSERT_OPTION:{code:400,description:R.errorLogs.INVALID_COLUMN_IN_UPSERT_OPTION},INVALID_UPSERT_OPTION_TYPE:{code:400,description:R.errorLogs.INVALID_UPSERT_OPTION_TYPE},EMPTY_UPSERT_OPTIONS_ARRAY:{code:400,description:R.errorLogs.EMPTY_UPSERT_OPTIONS_ARRAY},INVALID_UPSERT_OPTION_OBJECT_TYPE:{code:400,description:R.errorLogs.INVALID_UPSERT_OPTION_OBJECT_TYPE},MISSING_TABLE_IN_UPSERT_OPTION:{code:400,description:R.errorLogs.MISSING_TABLE_IN_UPSERT_OPTION},MISSING_COLUMN_IN_UPSERT_OPTION:{code:400,description:R.errorLogs.MISSING_COLUMN_IN_UPSERT_OPTION},INVALID_RECORD_COLUMN_VALUE_TYPE:{code:400,description:R.errorLogs.INVALID_RECORD_COLUMN_VALUE_TYPE},INVALID_COLUMN_VALUES_TYPE:{code:400,description:R.errorLogs.INVALID_COLUMN_VALUES_TYPE},EMPTY_RECORD_COLUMN_VALUES:{code:400,description:R.errorLogs.EMPTY_RECORD_COLUMN_VALUES},EMPTY_COLUMN_VALUE:{code:400,description:R.errorLogs.EMPTY_COLUMN_VALUE},MISSING_IDS_OR_COLUMN_VALUES_IN_GET:{code:400,description:R.errorLogs.MISSING_IDS_OR_COLUMN_VALUES_IN_GET},SKYFLOW_IDS_AND_COLUMN_NAME_BOTH_SPECIFIED:{code:400,description:R.errorLogs.SKYFLOW_IDS_AND_COLUMN_NAME_BOTH_SPECIFIED},SKYFLOW_IDS_AND_TOKEN_BOTH_SPECIFIED:{code:400,description:R.errorLogs.SKYFLOW_IDS_AND_TOKEN_BOTH_SPECIFIED},MISSING_TABLE_KEY_REVEAL:{code:400,description:R.errorLogs.MISSING_TABLE_KEY_REVEAL},MISSING_COLUMN_KEY_REVEAL:{code:400,description:R.errorLogs.MISSING_COLUMN_KEY_REVEAL},INVALID_SKYFLOW_ID_REVEAL:{code:400,description:R.errorLogs.INVALID_SKYFLOW_ID_REVEAL},INVALID_TABLE_REVEAL:{code:400,description:R.errorLogs.INVALID_TABLE_REVEAL},INVALID_COLUMN_NAME_REVEAL:{code:400,description:R.errorLogs.INVALID_COLUMN_NAME_REVEAL},EMPTY_SKYFLOW_ID_REVEAL:{code:400,description:R.errorLogs.EMPTY_SKYFLOW_ID_REVEAL},EMPTY_TABLE_REVEAL:{code:400,description:R.errorLogs.EMPTY_TABLE_REVEAL},EMPTY_COLUMN_NAME_REVEAL:{code:400,description:R.errorLogs.EMPTY_COLUMN_NAME_REVEAL},RECORDS_KEY_NOT_FOUND_GETBYID:{code:400,description:R.errorLogs.RECORDS_KEY_NOT_FOUND_GETBYID},INVALID_RECORDS_IN_GETBYID:{code:400,description:R.errorLogs.INVALID_RECORDS_IN_GETBYID},EMPTY_RECORDS_GETBYID:{code:400,description:R.errorLogs.EMPTY_RECORDS_GETBYID},MISSING_IDS_IN_GETBYID:{code:400,description:R.errorLogs.MISSING_IDS_IN_GETBYID},INVALID_IDS_IN_GETBYID:{code:400,description:R.errorLogs.INVALID_IDS_IN_GETBYID},EMPTY_IDS_IN_GETBYID:{code:400,description:R.errorLogs.EMPTY_IDS_IN_GETBYID},INVALID_SKYFLOWID_TYPE_IN_GETBYID:{code:400,description:R.errorLogs.INVALID_SKYFLOWID_TYPE_IN_GETBYID},MISSING_TABLE_IN_GETBYID:{code:400,description:R.errorLogs.MISSING_TABLE_IN_GETBYID},INVALID_TABLE_IN_GETBYID:{code:400,description:R.errorLogs.INVALID_TABLE_IN_GETBYID},MISSING_REDACTION_IN_GETBYID:{code:400,description:R.errorLogs.MISSING_REDACTION_IN_GETBYID},INVALID_REDACTION_TYPE_IN_GETBYID:{code:400,description:R.errorLogs.INVALID_REDACTION_TYPE_IN_GETBYID},EMPTY_SKYFLOWID_IN_GETBYID:{code:400,description:R.errorLogs.EMPTY_SKYFLOWID_IN_GETBYID},EMPTY_TABLE_IN_GETBYID:{code:400,description:R.errorLogs.EMPTY_TABLE_IN_GETBYID},EMPTY_REDACTION_TYPE_IN_GETBYID:{code:400,description:R.errorLogs.EMPTY_REDACTION_TYPE_IN_GETBYID},MISSING_COMPOSABLE_LAYOUT_KEY:{code:400,description:R.errorLogs.MISSING_COMPOSABLE_LAYOUT_KEY},EMPTY_COMPOSABLE_LAYOUT_ARRAY:{code:400,description:R.errorLogs.EMPTY_COMPOSABLE_LAYOUT_ARRAY},INVALID_COMPOSABLE_LAYOUT_TYPE:{code:400,description:R.errorLogs.INVALID_COMPOSABLE_LAYOUT_TYPE},NEGATIVE_VALUES_COMPOSABLE_LAYOUT:{code:400,description:R.errorLogs.NEGATIVE_VALUES_COMPOSABLE_LAYOUT},MISMATCH_ELEMENT_COUNT_LAYOUT_SUM:{code:400,description:R.errorLogs.MISMATCH_ELEMENT_COUNT_LAYOUT_SUM},MISSING_COMPOSABLE_CONTAINER_OPTIONS:{code:400,description:R.errorLogs.MISSING_COMPOSABLE_CONTAINER_OPTIONS},INVALID_COMPOSABLE_CONTAINER_OPTIONS:{code:400,description:R.errorLogs.INVALID_COMPOSABLE_CONTAINER_OPTIONS},COMPOSABLE_CONTAINER_NOT_MOUNTED:{code:400,description:R.errorLogs.COMPOSABLE_CONTAINER_NOT_MOUNTED},INVALID_BOOLEAN_OPTIONS:{code:400,description:R.errorLogs.INVALID_BOOLEAN_OPTIONS},INVALID_MASKING_CHARACTER:{code:400,description:R.errorLogs.INVALID_MASKING_CHARACTER},EMPTY_COLLECT_CUSTOM_FORMAT:{code:400,description:R.errorLogs.EMPTY_COLLECT_CUSTOM_FORMAT},INVALID_INPUT_OPTIONS_FORMAT:{code:400,description:R.errorLogs.INVALID_INPUT_OPTIONS_FORMAT},INVALID_INPUT_OPTIONS_TRANSLATION:{code:400,description:R.errorLogs.INVALID_INPUT_OPTIONS_TRANSLATION},INVALID_OPTION_CARD_METADATA:{code:400,description:R.errorLogs.INVALID_OPTION_CARD_METADATA},INVALID_OPTION_CARD_SCHEME:{code:400,description:R.errorLogs.INVALID_OPTION_CARD_SCHEME},INVALID_FIELD_SHOW_3DS_CHALLEGNGE:{code:400,description:R.errorLogs.INVALID_FIELD_SHOW_3DS_CHALLEGNGE},NO_ELEMENTS_IN_COLLECT:{code:400,description:R.errorLogs.NO_ELEMENTS_IN_COLLECT},NO_ELEMENTS_IN_COMPOSABLE:{code:400,description:R.errorLogs.NO_ELEMENTS_IN_COMPOSABLE},NO_ELEMENTS_IN_REVEAL:{code:400,description:R.errorLogs.NO_ELEMENTS_IN_REVEAL}};function vt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,c=[],l=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(e,t)||et(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var It=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").replace(/[\s-]/g,""),t=je.DEFAULT;return Object.entries(Ke).forEach((function(n){var r=vt(n,2),o=r[0];r[1].regex.test(e)&&(t=o)})),t},yt=function(e,t){if(!e||!Object.prototype.hasOwnProperty.call(e,"records"))throw new zt(mt.RECORDS_KEY_NOT_FOUND,[],!0);var n=e.records;if(!n||!Array.isArray(n))throw new zt(mt.INVALID_RECORDS_IN_INSERT,[],!0);if(0===n.length)throw new zt(mt.EMPTY_RECORDS_IN_INSERT,[],!0);if(n.forEach((function(e,t){if(!e||!Object.prototype.hasOwnProperty.call(e,"table"))throw new zt(mt.MISSING_TABLE_IN_INSERT,["".concat(t)],!0);if(!e.table)throw new zt(mt.EMPTY_TABLE_IN_INSERT,["".concat(t)],!0);if(!("string"==typeof e.table||e.table instanceof String))throw new zt(mt.INVALID_TABLE_IN_INSERT,["".concat(t)],!0);if(!Object.prototype.hasOwnProperty.call(e,"fields"))throw new zt(mt.MISSING_FIELDS_IN_INSERT,["".concat(t)],!0);if(!e.fields)throw new zt(mt.EMPTY_FIELDS_IN_INSERT,["".concat(t)],!0);if("object"!==a(e.fields)||Array.isArray(e.fields))throw new zt(mt.INVALID_FIELDS_IN_INSERT,["".concat(t)],!0)})),t&&t.tokens&&"boolean"!=typeof t.tokens)throw new zt(mt.INVALID_TOKENS_IN_INSERT,[],!0)},Ot=function(e){if(!e||!Object.prototype.hasOwnProperty.call(e,"records"))throw new zt(mt.RECORDS_KEY_NOT_FOUND_IN_ADDITIONAL_FIELDS,[],!0);var t=e.records;if(!t||!Array.isArray(t))throw new zt(mt.INVALID_RECORDS_IN_ADDITIONAL_FIELDS,[],!0);if(0===t.length)throw new zt(mt.EMPTY_RECORDS_IN_ADDITIONAL_FIELDS,[],!0);t.forEach((function(e,t){var n;if(!e||!Object.prototype.hasOwnProperty.call(e,"table"))throw new zt(mt.MISSING_TABLE_IN_ADDITIONAL_FIELDS,["".concat(t)],!0);if(!e.table)throw new zt(mt.EMPTY_TABLE_IN_ADDITIONAL_FIELDS,["".concat(t)],!0);if(void 0!==(null===(n=e.fields)||void 0===n?void 0:n.skyflowID)){var r,o,i;if(null===(r=e.fields)||void 0===r||!r.skyflowID)throw new zt(mt.EMPTY_SKYFLOW_ID_IN_ADDITIONAL_FIELDS,["".concat(t)],!0);if(!("string"==typeof(null===(o=e.fields)||void 0===o?void 0:o.skyflowID)||(null===(i=e.fields)||void 0===i?void 0:i.skyflowID)instanceof String))throw new zt(mt.INVALID_SKYFLOW_ID_IN_ADDITIONAL_FIELDS,["".concat(t)],!0)}if(!("string"==typeof e.table||e.table instanceof String))throw new zt(mt.INVALID_TABLE_IN_ADDITIONAL_FIELDS,["".concat(t)],!0);if(!Object.prototype.hasOwnProperty.call(e,"fields"))throw new zt(mt.MISSING_FIELDS_IN_ADDITIONAL_FIELDS,["".concat(t)],!0);if(!e.fields)throw new zt(mt.EMPTY_FIELDS_IN_ADDITIONAL_FIELDS,["".concat(t)],!0);if("object"!==a(e.fields)||Array.isArray(e.fields))throw new zt(mt.INVALID_FIELDS_IN_ADDITIONAL_FIELDS,["".concat(t)],!0)}))},gt=function(e){if(!e||!Object.prototype.hasOwnProperty.call(e,"records"))throw new zt(mt.RECORDS_KEY_NOT_FOUND_DETOKENIZE,[]);var t=e.records;if(!t||!Array.isArray(t))throw new zt(mt.INVALID_RECORDS_IN_DETOKENIZE,[]);if(0===t.length)throw new zt(mt.EMPTY_RECORDS_DETOKENIZE,[]);t.forEach((function(e,t){if(!e||!Object.prototype.hasOwnProperty.call(e,"token"))throw new zt(mt.MISSING_TOKEN_IN_DETOKENIZE,["".concat(t)]);if(!e.token)throw new zt(mt.EMPTY_TOKEN_IN_DETOKENIZE,["".concat(t)]);if(!("string"==typeof e.token||e.token instanceof String))throw new zt(mt.INVALID_TOKEN_IN_DETOKENIZE,["".concat(t)]);var n=e.redaction;if(n&&!Object.values(st).includes(n))throw new zt(mt.INVALID_REDACTION_TYPE_IN_DETOKENIZE,["".concat(t)])}))},Nt=function(e,t){if(!e||!Object.prototype.hasOwnProperty.call(e,"records"))throw new zt(mt.RECORDS_KEY_NOT_FOUND_GET,[]);var n=e.records;if(!n||!Array.isArray(n))throw new zt(mt.INVALID_RECORDS_IN_GET,[]);if(0===n.length)throw new zt(mt.EMPTY_RECORDS_GET,[]);if(t&&Object.prototype.hasOwnProperty.call(t,"tokens")&&"boolean"!=typeof(null==t?void 0:t.tokens))throw new zt(mt.INVALID_TOKENS_IN_GET,[]);n.forEach((function(e,n){var r,o,i;if(0===Object.keys(e).length)throw new zt(mt.EMPTY_RECORDS_GET,[]);if(0===(null===(r=e.ids)||void 0===r?void 0:r.length))throw new zt(mt.EMPTY_IDS_IN_GET,["".concat(n)]);if(!(null==e.ids||e.ids&&Array.isArray(e.ids)))throw new zt(mt.INVALID_IDS_IN_GET,["".concat(n)]);if(null===(o=e.ids)||void 0===o||o.forEach((function(e){if(!e)throw new zt(mt.EMPTY_SKYFLOWID_IN_GET,["".concat(n)]);if(!("string"==typeof e||e instanceof String))throw new zt(mt.INVALID_SKYFLOWID_TYPE_IN_GET,["".concat(n)])})),!Object.prototype.hasOwnProperty.call(e,"table"))throw new zt(mt.MISSING_TABLE_IN_GET,["".concat(n)]);if(!e.table)throw new zt(mt.EMPTY_TABLE_IN_GET,["".concat(n)]);if(!("string"==typeof e.table||e.table instanceof String))throw new zt(mt.INVALID_TABLE_IN_GET,["".concat(n)]);if(!t||!Object.prototype.hasOwnProperty.call(t,"tokens")||!0!==(null==t?void 0:t.tokens)){if(!Object.prototype.hasOwnProperty.call(e,"redaction"))throw new zt(mt.MISSING_REDACTION_IN_GET,["".concat(n)]);if(!e.redaction)throw new zt(mt.EMPTY_REDACTION_TYPE_IN_GET,["".concat(n)]);if(!Object.values(st).includes(e.redaction))throw new zt(mt.INVALID_REDACTION_TYPE_IN_GET,["".concat(n)])}if(!0===Object.prototype.hasOwnProperty.call(e,"ids")&&!0===Object.prototype.hasOwnProperty.call(e,"columnName"))throw new zt(mt.SKYFLOW_IDS_AND_COLUMN_NAME_BOTH_SPECIFIED,["".concat(n)]);if(Object.prototype.hasOwnProperty.call(e,"columnName")){if(!Object.prototype.hasOwnProperty.call(e,"columnName")||!Object.prototype.hasOwnProperty.call(e,"columnValues"))throw new zt(mt.MISSING_RECORD_COLUMN_VALUE,["".concat(n)])}else if(!1===Object.prototype.hasOwnProperty.call(e,"ids")&&!1===Object.prototype.hasOwnProperty.call(e,"columnValues"))throw new zt(mt.MISSING_IDS_OR_COLUMN_VALUES_IN_GET,["".concat(n)]);if(0===(null===(i=e.columnValues)||void 0===i?void 0:i.length))throw new zt(mt.EMPTY_RECORD_COLUMN_VALUES,["".concat(n)]);if(!(null==e.columnValues||e.columnValues&&Array.isArray(e.columnValues)))throw new zt(mt.INVALID_COLUMN_VALUES_IN_GET,["".concat(n)]);if(void 0!==e.columnName&&void 0===e.columnValues)throw new zt(mt.MISSING_RECORD_COLUMN_VALUE,["".concat(n)]);if(void 0===e.columnName&&void 0!==e.columnValues)throw new zt(mt.MISSING_RECORD_COLUMN_NAME,["".concat(n)]);var a=e.columnName;if(null!=a&&"string"!=typeof a)throw new zt(mt.INVALID_RECORD_COLUMN_VALUE,["".concat(n)]);var c=e.columnValues;if(null!=c){if(0===c.length||null===c)throw new zt(mt.EMPTY_RECORD_COLUMN_VALUES,["".concat(n)]);c.forEach((function(e){if(""===e||null===e)throw new zt(mt.EMPTY_COLUMN_VALUE,["".concat(n)]);if("string"!=typeof e)throw new zt(mt.INVALID_RECORD_COLUMN_VALUE_TYPE,["".concat(n)])}))}if(t&&Object.prototype.hasOwnProperty.call(t,"tokens")&&!0===(null==t?void 0:t.tokens)){if(a||c)throw new zt(mt.TOKENS_GET_COLUMN_NOT_SUPPORTED,[]);if(e.redaction)throw new zt(mt.REDACTION_WITH_TOKENS_NOT_SUPPORTED,[])}}))},Lt=function(e){if(!e||!Object.prototype.hasOwnProperty.call(e,"records"))throw new zt(mt.RECORDS_KEY_NOT_FOUND_GETBYID,[]);var t=e.records;if(!t||!Array.isArray(t))throw new zt(mt.INVALID_RECORDS_IN_GETBYID,[]);if(0===t.length)throw new zt(mt.EMPTY_RECORDS_GETBYID,[]);t.forEach((function(e,t){if(!e||!Object.prototype.hasOwnProperty.call(e,"ids"))throw new zt(mt.MISSING_IDS_IN_GETBYID,["".concat(t)]);if(!e.ids||!Array.isArray(e.ids))throw new zt(mt.INVALID_IDS_IN_GETBYID,["".concat(t)]);if(0===e.ids.length)throw new zt(mt.EMPTY_IDS_IN_GETBYID,["".concat(t)]);if(e.ids.forEach((function(e){if(!e)throw new zt(mt.EMPTY_SKYFLOWID_IN_GETBYID,["".concat(t)]);if(!("string"==typeof e||e instanceof String))throw new zt(mt.INVALID_SKYFLOWID_TYPE_IN_GETBYID,["".concat(t)])})),!Object.prototype.hasOwnProperty.call(e,"table"))throw new zt(mt.MISSING_TABLE_IN_GETBYID,["".concat(t)]);if(!e.table)throw new zt(mt.EMPTY_TABLE_IN_GETBYID,["".concat(t)]);if(!("string"==typeof e.table||e.table instanceof String))throw new zt(mt.INVALID_TABLE_IN_GETBYID,["".concat(t)]);if(!Object.prototype.hasOwnProperty.call(e,"redaction"))throw new zt(mt.MISSING_REDACTION_IN_GETBYID,["".concat(t)]);if(!e.redaction)throw new zt(mt.EMPTY_REDACTION_TYPE_IN_GETBYID,["".concat(t)]);if(!Object.values(st).includes(e.redaction))throw new zt(mt.INVALID_REDACTION_TYPE_IN_GETBYID,["".concat(t)])}))},ht=function(e,t){if(!e||!Object.prototype.hasOwnProperty.call(e,"records"))throw new zt(mt.RECORDS_KEY_NOT_FOUND_DELETE,[],!0);var n=e.records;if(!n||!Array.isArray(n))throw new zt(mt.INVALID_RECORDS_IN_DELETE,[],!0);if(0===n.length)throw new zt(mt.EMPTY_RECORDS_IN_DELETE,[],!0);n.forEach((function(e,t){if(!e||!Object.prototype.hasOwnProperty.call(e,"table"))throw new zt(mt.MISSING_TABLE_IN_DELETE,["".concat(t)],!0);if(!e.table)throw new zt(mt.EMPTY_TABLE_IN_DELETE,["".concat(t)],!0);if(!("string"==typeof e.table||e.table instanceof String))throw new zt(mt.INVALID_TABLE_IN_DELETE,["".concat(t)],!0);if(!Object.prototype.hasOwnProperty.call(e,"id"))throw new zt(mt.MISSING_ID_IN_DELETE,["".concat(t)],!0);if(!e.id)throw new zt(mt.EMPTY_ID_IN_DELETE,["".concat(t)],!0);if(!("string"==typeof e.id||e.id instanceof String))throw new zt(mt.INVALID_ID_IN_DELETE,["".concat(t)],!0)}))},Tt=function(e){if(0===e.length)throw new zt(mt.EMPTY_RECORDS_REVEAL,[]);e.forEach((function(e){if(!e||!Object.prototype.hasOwnProperty.call(e,"skyflowID")){if(!e||!Object.prototype.hasOwnProperty.call(e,"token"))throw new zt(mt.MISSING_TOKEN_KEY_REVEAL,[]);if(!e.token)throw new zt(mt.EMPTY_TOKEN_ID_REVEAL,[]);if(!("string"==typeof e.token||e.token instanceof String))throw new zt(mt.INVALID_TOKEN_ID_REVEAL,[])}var t=e.redaction;if(t&&!Object.values(st).includes(t))throw new zt(mt.INVALID_REDACTION_TYPE_REVEAL,[]);if(Object.prototype.hasOwnProperty.call(e,"label")&&"string"!=typeof e.label)throw new zt(mt.INVALID_LABEL_REVEAL,[]);if(Object.prototype.hasOwnProperty.call(e,"altText")&&"string"!=typeof e.altText)throw new zt(mt.INVALID_ALT_TEXT_REVEAL,[]);if(Object.prototype.hasOwnProperty.call(e,"format")&&"string"!=typeof e.format)throw new zt(mt.INVALID_FORMAT_REVEAL,[]);if(Object.prototype.hasOwnProperty.call(e,"format")&&""===e.format)throw new zt(mt.EMPTY_FORMAT_REVEAL,[])}))},bt=function(e){if(!e||!Object.prototype.hasOwnProperty.call(e,"skyflowID"))throw new zt(mt.MISSING_SKYFLOWID_KEY_REVEAL,[]);if(!e.skyflowID)throw new zt(mt.EMPTY_SKYFLOW_ID_REVEAL,[]);if(Object.prototype.hasOwnProperty.call(e,"skyflowID")&&"string"!=typeof e.skyflowID)throw new zt(mt.INVALID_SKYFLOW_ID_REVEAL,[]);if(Object.prototype.hasOwnProperty.call(e,"skyflowID")&&Object.prototype.hasOwnProperty.call(e,"token"))throw new zt(mt.SKYFLOW_IDS_AND_TOKEN_BOTH_SPECIFIED,[]);if(!e||!Object.prototype.hasOwnProperty.call(e,"column"))throw new zt(mt.MISSING_COLUMN_KEY_REVEAL,[]);if(!e.column)throw new zt(mt.EMPTY_COLUMN_NAME_REVEAL,[]);if(Object.prototype.hasOwnProperty.call(e,"column")&&"string"!=typeof e.column)throw new zt(mt.INVALID_COLUMN_NAME_REVEAL,[]);if(!e||!Object.prototype.hasOwnProperty.call(e,"table"))throw new zt(mt.MISSING_TABLE_KEY_REVEAL,[]);if(!e.table)throw new zt(mt.EMPTY_TABLE_REVEAL,[]);if(Object.prototype.hasOwnProperty.call(e,"table")&&"string"!=typeof e.table)throw new zt(mt.INVALID_TABLE_REVEAL,[]);if(Object.prototype.hasOwnProperty.call(e,"altText")&&"string"!=typeof e.altText)throw new zt(mt.INVALID_ALT_TEXT_RENDER,[])},At=function(e){var t=!0;try{new RegExp(e)}catch(e){t=!1}return t},wt=function(e){if(!Object.prototype.hasOwnProperty.call(e,"vaultID"))throw new zt(mt.VAULTID_IS_REQUIRED,[],!0);if(!e.vaultID)throw new zt(mt.EMPTY_VAULTID_IN_INIT,[],!0);if(!Object.prototype.hasOwnProperty.call(e,"vaultURL"))throw new zt(mt.VAULTURL_IS_REQUIRED,[],!0)},Rt=function(e,t){if(!Object.prototype.hasOwnProperty.call(e,"type"))throw new zt(mt.MISSING_ELEMENT_TYPE,[],!0);if(!e.type)throw new zt(mt.EMPTY_ELEMENT_TYPE,[],!0);if(Object.prototype.hasOwnProperty.call(e,"altText")&&Wt(R.warnLogs.COLLECT_ALT_TEXT_DEPERECATED,Et.WARN,t),Object.prototype.hasOwnProperty.call(e,"skyflowID")&&"string"!=typeof e.skyflowID)throw new zt(mt.INVALID_SKYFLOWID_IN_COLLECT,[],!0);if(e.type===Ve.FILE_INPUT&&!Object.keys(e).includes("skyflowID"))throw new zt(mt.MISSING_SKYFLOWID_IN_COLLECT,[],!0)},St=function(e){if(!e||!Array.isArray(e))throw new zt(mt.INVALID_UPSERT_OPTION_TYPE,[],!0);if(!e.length)throw new zt(mt.EMPTY_UPSERT_OPTIONS_ARRAY,[],!0);e.forEach((function(e,t){if(!e||"object"!==a(e))throw new zt(mt.INVALID_UPSERT_OPTION_OBJECT_TYPE,[t],!0);if(!Object.prototype.hasOwnProperty.call(e,"table"))throw new zt(mt.MISSING_TABLE_IN_UPSERT_OPTION,[t],!0);if(!e.table||"string"!=typeof e.table||!e.table.length)throw new zt(mt.INVALID_TABLE_IN_UPSERT_OPTION,[t],!0);if(!Object.prototype.hasOwnProperty.call(e,"column"))throw new zt(mt.MISSING_COLUMN_IN_UPSERT_OPTION,[t],!0);if(!e.column||"string"!=typeof e.column||!e.column.length)throw new zt(mt.INVALID_COLUMN_IN_UPSERT_OPTION,[t],!0)}))},Dt=function(e){return"boolean"==typeof e},xt=function(e){if(e){if(Object.prototype.hasOwnProperty.call(e,"format")&&"string"!=typeof e.format)throw new zt(mt.INVALID_INPUT_OPTIONS_FORMAT,[],!0);if(Object.prototype.hasOwnProperty.call(e,"translation")&&("object"!==a(e.translation)||"[object Object]"!==Object.prototype.toString.call(e.translation)))throw new zt(mt.INVALID_INPUT_OPTIONS_TRANSLATION,[],!0)}};const Mt={IFRAME_SECURE_SITE:"".concat("https://js.skyflow-preview.com","/").concat("v2.5.0-beta.1/elements/index.html"),IFRAME_SECURE_ORIGIN:"https://js.skyflow-preview.com"},Ct=JSON.parse('{"name":"skyflow-js","preferGlobal":true,"analyze":false,"version":"2.5.0-beta.1","author":"Skyflow","description":"Skyflow JavaScript SDK","homepage":"https://github.com/skyflowapi/skyflow-js","main":"./dist/sdkNodeBuild/index.js","types":"./types/index-node.d.ts","files":["dist/sdkNodeBuild","types"],"license":"MIT","keywords":["client","sdk","javascript"],"scripts":{"type-check":"tsc --noEmit","type-check:watch":"npm run type-check -- --watch","build:types":"tsc --emitDeclarationOnly","dev":"webpack serve --config=webpack.dev.js --open --hot ","build-browser-sdk":"webpack --config=webpack.skyflow-browser.js","build-node-sdk":"webpack --config=webpack.skyflow-node.js","build-iframe":"webpack --config=webpack.iframe.js","test":"jest --config=jest.config.json"},"repository":{"type":"git","url":"https://github.com/skyflowapi/skyflow-js.git"},"dependencies":{"core-js":"^3.6.5","framebus":"^4.0.0","inject-stylesheet":"^2.0.0","jquery":"^3.5.1","jquery-mask-plugin":"^1.14.16","jss":"^10.7.1","jss-preset-default":"^10.7.1","jwt-decode":"^3.1.2","lodash":"^4.17.21","mime":"3.0.0","regex-parser":"^2.2.11","set-value":"^4.0.1"},"engines":{"node":">=12.0","npm":">=6.0"},"devDependencies":{"@babel/core":"^7.23.2","@babel/plugin-proposal-class-properties":"^7.10.1","@babel/plugin-proposal-decorators":"^7.10.1","@babel/plugin-proposal-object-rest-spread":"^7.10.1","@babel/plugin-transform-runtime":"^7.10.1","@babel/preset-env":"^7.9.6","@babel/preset-typescript":"^7.10.1","@babel/runtime":"^7.10.2","@types/jest":"^27.0.1","@types/jquery-mask-plugin":"^1.14.3","@types/mime":"^3.0.4","@types/node":"^14.0.5","@typescript-eslint/eslint-plugin":"^4.31.2","@typescript-eslint/parser":"^4.31.2","babel-loader":"^9.1.2","clean-webpack-plugin":"^4.0.0-alpha.0","compression-webpack-plugin":"^8.0.1","eslint":"^7.32.0","eslint-config-airbnb-base":"^14.2.1","eslint-config-airbnb-typescript":"^14.0.0","eslint-plugin-import":"^2.26.0","fork-ts-checker-webpack-plugin":"^6.3.2","html-webpack-plugin":"^5.5.0","jest":"^27.2.1","node-polyfill-webpack-plugin":"^2.0.1","typescript":"^4.6.3","webpack":"^5.97.1","webpack-bundle-analyzer":"^4.4.2","webpack-cli":"^4.8.0","webpack-dev-server":"^4.7.4","webpack-manifest-plugin":"^4.0.2","webpack-merge":"^5.8.0"}}');function Pt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function kt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pt(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}n(125).getType;function Vt(e){var t=null==e?void 0:e.split(":");return t&&t.length>2?"".concat(t[0],":").concat(t[1],":").concat(t[2]):""}function jt(e,t,n){var r,o,i,a,c,l,s={sdkName:e.name,sdkVersion:e.version},p=function(e,t){return e&&""!==e?"".concat(e):"".concat(t.sdkName,"@").concat(t.sdkVersion)}(null==t?void 0:t.sdkVersion,s),u=function(e){var t,n,r=null,o=null;if(/Windows/.test(e))r="Windows",o=null!==(t=null===(n=/Windows NT (\d+\.\d+)/.exec(e))||void 0===n?void 0:n[1])&&void 0!==t?t:null;else if(/Android/.test(e)){var i,a;r="Android",o=null!==(i=null===(a=/Android (\d+\.\d+)/.exec(e))||void 0===a?void 0:a[1])&&void 0!==i?i:null}else if(/iOS/.test(e)||/iPhone/.test(e)){var c,l;r="iOS",o=null!==(c=null===(l=/OS (\d+[._]\d+[._]?\d*)/.exec(e))||void 0===l||null===(l=l[1])||void 0===l?void 0:l.replace(/_/g,"."))&&void 0!==c?c:null}else if(/Mac OS X/.test(e)){var s,p;r="Mac OS X",o=null!==(s=null===(p=/Mac OS X (\d+([._]\d+)*)/.exec(e))||void 0===p||null===(p=p[1])||void 0===p?void 0:p.replace(/_/g,"."))&&void 0!==s?s:null}else if(/Linux/.test(e)){var u,d;r="Linux",o=null!==(u=null===(d=/Linux( \w+)*?\/([\w.]+)/.exec(e))||void 0===d?void 0:d[2])&&void 0!==u?u:null}return{os:r,version:o}}(n.userAgent),d=function(e){var t="",n="";if(-1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")){t="Internet Explorer";var r=e.match(/(MSIE|rv:)\s?([\d.]+)/);r&&(n=r[2])}else if(-1!==e.indexOf("Edge")){t="Microsoft Edge";var o=e.match(/Edge\/([\d.]+)/);o&&(n=o[1])}else if(-1!==e.indexOf("Chrome")){t="Google Chrome";var i=e.match(/Chrome\/([\d.]+)/);i&&(n=i[1])}else if(-1!==e.indexOf("Firefox")){t="Mozilla Firefox";var a=e.match(/Firefox\/([\d.]+)/);a&&(n=a[1])}else if(-1!==e.indexOf("Safari")){t="Apple Safari";var c=e.match(/Version\/([\d.]+)/);c&&(n=c[1])}return{browserName:t,browserVersion:n}}(n.userAgent);return{sdk_name_version:p,sdk_client_device_model:(l=n.userAgent,/(ipad|tablet)/gi.test(l)?"tablet":/Mobile|iP(hone|od)|Android|BlackBerry|IEMobile/.test(l)?"mobile":"desktop"),sdk_os_version:null!==(r=n.platform)&&void 0!==r?r:"".concat(null!==(o=u.os)&&void 0!==o?o:""," ").concat(null!==(i=u.version)&&void 0!==i?i:""),sdk_runtime_details:"".concat(null!==(a=d.browserName)&&void 0!==a?a:""," ").concat(null!==(c=d.browserVersion)&&void 0!==c?c:"")}}function Ut(e){var t,n;if(null!=e&&null!==(t=e.options)&&void 0!==t&&t.customElementsURL&&function(e){if(!e||"https"!==e.substring(0,5).toLowerCase())return!1;try{if(new URL(e))return!0}catch(e){return!1}return!0}(null==e||null===(n=e.options)||void 0===n?void 0:n.customElementsURL)){var r,o,i=null==e||null===(r=e.options)||void 0===r?void 0:r.customElementsURL,a=new URL(i),c=a.protocol,l=a.hostname,s="".concat(c,"//").concat(l);Mt.IFRAME_SECURE_ORIGIN=s,Mt.IFRAME_SECURE_SITE=null==e||null===(o=e.options)||void 0===o?void 0:o.customElementsURL}}var Ft=function(){var e=function(e){var t={sdkName:Ct.name,sdkVersion:Ct.version};return e&&""!==e&&e.split("@").length>1&&(t.sdkName=e.split("@")[0],t.sdkVersion=e.split("@")[1]),t}(localStorage.getItem("sdk_version")||""),t="skyflow-js"===e.sdkName?"JS":"React";return{sdkLanguageAndVersion:"".concat(t," SDK v").concat(e.sdkVersion),sdkOwner:"Skyflow"}},Gt=n(6763),Yt={DEBUG:{showDebugLogs:!0,showInfoLogs:!0,showWarnLogs:!0,showErrorLogs:!0},INFO:{showDebugLogs:!1,showInfoLogs:!0,showWarnLogs:!0,showErrorLogs:!0},WARN:{showDebugLogs:!1,showInfoLogs:!1,showWarnLogs:!0,showErrorLogs:!0},ERROR:{showDebugLogs:!1,showInfoLogs:!1,showWarnLogs:!1,showErrorLogs:!0}},Bt={PROD:{doesReturnValue:!1},DEV:{doesReturnValue:!0}},Xt="[Skyflow]",Wt=function(e,t,n){var r=Ft(),o=r.sdkLanguageAndVersion,i=r.sdkOwner;if(n&&Yt[n]){var a=Yt[n],c=a.showDebugLogs,l=a.showInfoLogs,s=a.showWarnLogs,p=a.showErrorLogs;t===Et.LOG&&c?Gt.log("".concat(dt.DEBUG,": ").concat(Xt," ").concat(e)):t===Et.LOG&&l?Gt.log("".concat(dt.INFO,": ").concat(Xt," ").concat(e)):t===Et.WARN&&s?Gt.warn("".concat(dt.WARN,": ").concat(Xt," ").concat(e)):t===Et.ERROR&&p&&Gt.error("".concat(dt.ERROR,": ").concat(i," ").concat(o," ").concat(e))}},Kt=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t.filter((function(e,t){return 0!==t}));return r?r.replace(/%s[0-9]+/g,(function(e){var t=e.replace("%s","")-1;return o[t]})):""};function qt(e){var t=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(e){return!1}}();return function(){var n,r=at(e);if(t){var o=at(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return it(this,n)}}var zt=function(e){ot(n,e);var t=qt(n);function n(e,r){var o,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];s(this,n);var a={code:e.code,description:r&&(null==r?void 0:r.length)>0?Kt.apply(void 0,[e.description].concat(tt(r))):e.description};return l(nt(o=t.call(this,a.description)),"error",void 0),l(nt(o),"errors",void 0),i?o.error=a:o.errors=[a],o}return u(n)}(lt(Error));function Ht(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Jt(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}var Zt=new WeakMap,$t=function(){function e(t,n){var r=this;s(this,e),l(this,"config",void 0),Jt(this,Zt,{writable:!0,value:void 0}),l(this,"request",(function(e){return new Promise((function(t,n){var o,i,a=new XMLHttpRequest;if(a){if(a.open(e.requestMethod,e.url),e.headers){var c=jt(Ct,E(r,Zt),navigator);e.headers["sky-metadata"]=JSON.stringify(c);var s=e.headers;Object.keys(e.headers).forEach((function(e){"content-type"===e&&s[e]&&s[e].includes(Je.FORMDATA)||a.setRequestHeader(e,s[e])}))}null!==(o=e.headers)&&void 0!==o&&null!==(o=o["content-type"])&&void 0!==o&&o.includes(Je.FORMURLENCODED)||null!==(i=e.headers)&&void 0!==i&&null!==(i=i["content-type"])&&void 0!==i&&i.includes(Je.FORMDATA)?a.send(e.body):a.send(JSON.stringify(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ht(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ht(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e.body))),a.onload=function(){var e=a.getAllResponseHeaders().trim().split(/[\r\n]+/),r={};e.forEach((function(e){var t=e.split(": "),n=t.shift()||"",o=t.join(": ");r[n]=o}));var o=r["content-type"],i=r["x-request-id"];if(a.status<200||a.status>=400)if(o&&o.includes("application/json")){var c,l,s,p=JSON.parse(a.response);if(null!==(c=p)&&void 0!==c&&null!==(c=c.error)&&void 0!==c&&c.message)p=i?"".concat(null===(l=p)||void 0===l||null===(l=l.error)||void 0===l?void 0:l.message," - requestId: ").concat(i):null===(s=p)||void 0===s||null===(s=s.error)||void 0===s?void 0:s.message;n(new zt({code:a.status,description:p},[],!0))}else o&&o.includes("text/plain")?n(new zt({code:a.status,description:i?"".concat(a.response," - requestId: ").concat(i):a.response},[],!0)):n(new zt({code:a.status,description:i?"".concat(R.errorLogs.ERROR_OCCURED," - requestId: ").concat(i):R.errorLogs.ERROR_OCCURED},[],!0));o&&o.includes("application/json")&&t(JSON.parse(a.response)),t(a.response)},a.onerror=function(){n(new zt(mt.NETWORK_ERROR,[],!0))}}else n(new zt(mt.CONNECTION_ERROR,[],!0))}))})),this.config=t,f(this,Zt,n)}return u(e,[{key:"toJSON",value:function(){return{config:this.config,metaData:E(this,Zt)}}}],[{key:"fromJSON",value:function(t){return new e(t.config,t.metaData)}}]),e}();const Qt=$t;const en=function(){function e(){s(this,e),l(this,"events",void 0),this.events={}}return u(e,[{key:"on",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.events[e]?this.events[e].push({priority:n,callback:t}):this.events[e]=[{priority:n,callback:t}]}},{key:"off",value:function(e,t){var n=this.events[e];if(n){var r=n.findIndex((function(e){return e.callback===t}));n.splice(r,1)}}},{key:"_emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=this.events[e];o&&o.forEach((function(e){e.callback.apply(e,n)}))}},{key:"hasListener",value:function(e){var t=this.events[e];return!!t&&t.length>0}},{key:"resetEvents",value:function(){var e=this,t={};Object.keys(this.events).forEach((function(n){var r=e.events[n];if(r&&r.length>0){var o=[];r.forEach((function(e){e.priority&&o.push(e)})),t[n]=o}})),this.events=t}}],[{key:"createChild",value:function(t){t.prototype=Object.create(e.prototype,{constructor:t})}}]),e}();function tn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function nn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tn(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var rn={src:"about:blank",frameBorder:0,allowtransparency:!0,scrolling:"no",style:"width: 100%;",allow:"clipboard-read; clipboard-write"},on=function(e,t){Object.keys(t).forEach((function(n){if(Object.prototype.hasOwnProperty.call(t,n)){var r=t[n];null==r?e.removeAttribute(n):e.setAttribute(n,r)}}))};const an=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=document.createElement("iframe"),n=nn(nn({},rn),e);return Object.assign(t.style,Ye),on(t,n),t.getAttribute("id")||(t.id=t.name),t};var cn=function(){return Mt.IFRAME_SECURE_SITE},ln=function(e,t){Object.keys(t).forEach((function(n){Object.prototype.hasOwnProperty.call(t,n)&&(e.style[n]=t[n])}))};const sn=u((function e(){s(this,e)}));function pn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function un(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pn(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var dn={records:[]};function fn(e,t){var n,r,o,i=jt(Ct,e,navigator),a={element_id:t,element_type:[],div_id:"",container_name:"",container_id:(null==e?void 0:e.uuid)||"",session_id:(null==e?void 0:e.session_id)||"",vault_id:(null==e||null===(n=e.clientJSON)||void 0===n||null===(n=n.config)||void 0===n?void 0:n.vaultID)||"",vault_url:(null==e||null===(r=e.clientJSON)||void 0===r||null===(r=r.config)||void 0===r?void 0:r.vaultURL)||"",events:[],created_at:Date.now(),region:(null===(o=Intl)||void 0===o||null===(o=o.DateTimeFormat())||void 0===o||null===(o=o.resolvedOptions())||void 0===o?void 0:o.timeZone)||"",status:J.INITIALIZED,sdk_name_version:i.sdk_name_version,sdk_client_device_model:i.sdk_client_device_model||"",sdk_client_os_details:i.sdk_os_version||"",sdk_runtime_details:i.sdk_runtime_details||""};dn.records.push(a)}function En(e,t,n){dn.records.forEach((function(r){r.element_id===e&&(t===K||t===Y?r[t].push(n):t===z&&r.mount_start_time?(r[t]=n,r.latency=n-r.mount_start_time):r[t]=n)}))}function _n(e){var t=dn.records.filter((function(t){return t.element_id===e}));if(t&&t[0]){var n=t[0];n.status=function(e){var t=e.status;return e.events&&e.events.filter((function(e){return e.includes(G.MOUNTED)})).length>0?t=J.SUCCESS:e.events.length>0?t=J.PARTIAL_RENDER:(0===e.events.length||e.error)&&(t=J.FAILED),t}(n);var r=un(un({},n),{},{time:Math.floor(Date.now()/1e3)});""!==n.vault_id&&""!==n.vault_url&&m().emit(Re+n.container_id,{event:r})}}function mn(e){setTimeout((function(){_n(e)}),2e4)}var vn=n(6763),In=u((function e(t,n,r,o){var i=this;s(this,e),l(this,"name",void 0),l(this,"metadata",void 0),l(this,"iframe",void 0),l(this,"container",void 0),l(this,"mount",(function(e,t,n){var r;try{if("string"==typeof e){if(i.container=document.querySelector(e)||void 0,!i.container)throw new zt(mt.INVALID_ELEMENT_SELECTOR,[],!0)}else{if(!(e instanceof HTMLElement))throw new zt(mt.INVALID_ELEMENT_SELECTOR,[],!0);i.container=e}}catch(e){vn.error(e),t&&En(t,H,e.message)}on(i.iframe,{src:"".concat(cn()).concat(n?"?".concat(btoa(null==n?void 0:n.record)):"")}),null===(r=i.container)||void 0===r||r.appendChild(i.iframe)})),l(this,"setIframeHeight",(function(e){i.iframe.getAttribute("height")!==e&&i.iframe.setAttribute("height","".concat(e,"px"))})),l(this,"unmount",(function(){i.iframe.remove()}));var a=n.clientDomain||"";this.name="".concat(t,":").concat(r,":").concat(o,":").concat(btoa(a)),this.metadata=n,this.iframe=an({name:this.name,referrer:a})}));const yn=u((function e(){s(this,e)}));n(4756);var On=function(e,t){var n={};if(e.fields){var r={skyflow_id:e.fields.skyflow_id,column:t};n.success=r}else e.errors&&(n.errors={skyflowId:e.errors.skyflowId,column:e.errors.column,error:e.errors.error});return n};const gn=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];s(this,e),l(this,"listeners",void 0),l(this,"isDestroyed",void 0),l(this,"isShadowMode",void 0),this.listeners=[],this.isDestroyed=!1,this.isShadowMode=t}return u(e,[{key:"on",value:function(e,t,n,r,o){this.isShadowMode=n,this.isShadowMode?r.addEventListener("message",o):m().on(e,t)}},{key:"off",value:function(e,t,n){this.isShadowMode=n;var r=this.listeners.findIndex((function(t){return t.eventName===e}));if(-1!==r){var o=this.listeners[r];o.isShadow?window.removeEventListener("message",o.callback):m().off(e,t),this.listeners.splice(r,1)}}},{key:"emit",value:function(e,t,n,r,o,i,a){if(this.isShadowMode=r||!1,this.isShadowMode)if(""!==o){var c=document.querySelector('iframe[id*="'.concat(o,'"]'));c&&c.contentWindow&&c.contentWindow.postMessage({type:e,data:t},"*")}else!0===a?null==i||i.parent.postMessage({type:e,data:t},"*"):null==i||i.postMessage({type:e,data:t},"*")}}]),e}();function Nn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ln(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nn(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function hn(e){var t=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(e){return!1}}();return function(){var n,r=at(e);if(t){var o=at(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return it(this,n)}}function Tn(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}var bn="RevealElement",An=new WeakMap,wn=new WeakMap,Rn=new WeakMap,Sn=new WeakMap,Dn=new WeakMap,xn=new WeakMap,Mn=new WeakMap,Cn=new WeakMap,Pn=new WeakMap,kn=new WeakMap,Vn=new WeakMap,jn=new WeakMap,Un=new WeakMap,Fn=new WeakMap,Gn=function(e){ot(n,e);var t=hn(n);function n(e){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,c=arguments.length>4?arguments[4]:void 0,p=arguments.length>5?arguments[5]:void 0;return s(this,n),Tn(nt(r=t.call(this)),An,{writable:!0,value:void 0}),Tn(nt(r),wn,{writable:!0,value:void 0}),Tn(nt(r),Rn,{writable:!0,value:void 0}),Tn(nt(r),Sn,{writable:!0,value:void 0}),Tn(nt(r),Dn,{writable:!0,value:!1}),Tn(nt(r),xn,{writable:!0,value:!1}),Tn(nt(r),Mn,{writable:!0,value:void 0}),Tn(nt(r),Cn,{writable:!0,value:void 0}),Tn(nt(r),Pn,{writable:!0,value:!1}),Tn(nt(r),kn,{writable:!0,value:void 0}),Tn(nt(r),Vn,{writable:!0,value:void 0}),Tn(nt(r),jn,{writable:!0,value:void 0}),Tn(nt(r),Un,{writable:!0,value:void 0}),Tn(nt(r),Fn,{writable:!0,value:!1}),l(nt(r),"eventWrapper",void 0),r.eventWrapper=new gn,f(nt(r),Cn,c),f(nt(r),wn,i),f(nt(r),Un,E(nt(r),wn).uuid),f(nt(r),Rn,Ln(Ln({},e),function(e){var t={};if(e){if(t=kt({},e),Object.prototype.hasOwnProperty.call(t,"enableCopy")&&!Dt(t.enableCopy))throw new zt(mt.INVALID_BOOLEAN_OPTIONS,["enableCopy"],!0);if(Object.prototype.hasOwnProperty.call(t,"format")||Object.prototype.hasOwnProperty.call(t,"translation")){var n,r,o=[];t.format&&o.push(t.format),o.push(null),t.translation?o.push(t.translation):t.format&&o.push($e),null===(n=t=kt(kt({},t),3===o.length?{mask:o}:{}))||void 0===n||delete n.format,null===(r=t)||void 0===r||delete r.translation}}return t}(o))),f(nt(r),Sn,a.containerId),f(nt(r),Pn,a.isMounted),f(nt(r),kn,a.eventEmitter),f(nt(r),Mn,p),fn(i,c),En(E(nt(r),Cn),Y,F.REVEAL),En(E(nt(r),Cn),X,F.REVEAL),f(nt(r),An,new In("".concat("reveal",":").concat(btoa(v())),i,E(nt(r),Sn),E(nt(r),Mn).logLevel)),f(nt(r),jn,""),f(nt(r),Vn,!1),f(nt(r),Pn,!0),f(nt(r),Fn,i.skyflowContainer.isControllerFrameReady),m().on(ae.HEIGHT+E(nt(r),An).name,(function(e){E(nt(r),An).setIframeHeight(e.height)})),f(nt(r),Rn,Ln(Ln({},E(nt(r),Rn)),{},{iframeName:r.iframeName()})),r}return u(n,[{key:"getID",value:function(){return E(this,Cn)}},{key:"mount",value:function(e){var t,n,r=this;if(!e)throw new zt(mt.EMPTY_ELEMENT_IN_MOUNT,["RevealElement"],!0);if(En(E(this,Cn),B,e),null!==(t=E(this,wn))&&void 0!==t&&null!==(t=t.clientJSON)&&void 0!==t&&null!==(t=t.config)&&void 0!==t&&null!==(t=t.options)&&void 0!==t&&t.trackMetrics&&null!==(n=E(this,wn).clientJSON.config)&&void 0!==n&&null!==(n=n.options)&&void 0!==n&&n.trackingKey&&mn(E(this,Cn)),f(this,Pn,!0),E(this,Pn)){E(this,An).mount(e,void 0,{record:JSON.stringify(Ln(Ln({},E(this,wn)),{},{record:E(this,Rn),context:E(this,Mn),containerId:E(this,Sn)}))});this.eventWrapper.on(ae.MOUNTED+E(this,An).name,(function(){}),!0,window,(function(e){f(r,Dn,!0),e.data&&e.data.type&&e.data.type===ae.MOUNTED+E(r,An).name&&E(r,kn)._emit(Pe+E(r,Sn),{skyflowID:E(r,Rn).skyflowID,containerId:E(r,Sn),iframeName:E(r,An).name})})),m().target(Mt.IFRAME_SECURE_ORIGIN).on(ae.MOUNTED+E(this,An).name,(function(){f(r,Dn,!0),E(r,Rn).skyflowID?(m().emit(Pe+E(r,Sn),{skyflowID:E(r,Rn).skyflowID,containerId:E(r,Sn)}),En(E(r,Cn),z,Date.now()),En(E(r,Cn),K,G.MOUNTED)):(m().emit(Pe+E(r,Sn),{id:E(r,Rn).token,containerId:E(r,Sn)}),En(E(r,Cn),z,Date.now()),En(E(r,Cn),K,G.MOUNTED)),Object.prototype.hasOwnProperty.call(E(r,Rn),"skyflowID")&&m().emit(ae.HEIGHT+E(r,An).name,{},(function(e){E(r,An).setIframeHeight(e.height)}))})),En(E(this,Cn),K,G.READY),En(E(this,Cn),q,Date.now())}}},{key:"renderFile",value:function(){var e=this;f(this,Fn,E(this,wn).skyflowContainer.isControllerFrameReady);var t="";Object.prototype.hasOwnProperty.call(E(this,Rn),"altText")&&(t=E(this,Rn).altText),this.setAltText("loading...");var n=E(this,Mn).logLevel;return E(this,Fn)?new Promise((function(r,o){try{wt(E(e,wn).clientJSON.config),Wt(Kt(R.infoLogs.VALIDATE_RENDER_RECORDS,bn),Et.LOG,n),bt(E(e,Rn)),m().emit(Ee+E(e,wn).uuid,{type:ie,records:E(e,Rn),containerId:E(e,Sn),iframeName:E(e,An).name},(function(n){n.errors?(Wt(Kt(R.errorLogs.FAILED_RENDER),Et.ERROR,E(e,Mn).logLevel),Object.prototype.hasOwnProperty.call(E(e,Rn),"altText")&&e.setAltText(t),o(On(n,E(e,Rn).column))):(Wt(Kt(R.infoLogs.RENDER_SUBMIT_SUCCESS,bn),Et.LOG,E(e,Mn).logLevel),Wt(Kt(R.infoLogs.FILE_RENDERED,bn,E(e,Rn).skyflowID),Et.LOG,E(e,Mn).logLevel),r(On(n,E(e,Rn).column)))})),Wt(Kt(R.infoLogs.EMIT_EVENT,bn,we),Et.LOG,n)}catch(e){Wt("Error: ".concat(e.message),Et.ERROR,n),o(e)}})):new Promise((function(r,o){try{wt(E(e,wn).clientJSON.config),Wt(Kt(R.infoLogs.VALIDATE_RENDER_RECORDS,bn),Et.LOG,n),bt(E(e,Rn)),m().target(Mt.IFRAME_SECURE_ORIGIN).on(Se+E(e,wn).uuid,(function(){m().emit(Ee+E(e,wn).uuid,{type:ie,records:E(e,Rn),containerId:E(e,Sn),iframeName:E(e,An).name},(function(n){n.errors?(Wt(Kt(R.errorLogs.FAILED_RENDER),Et.ERROR,E(e,Mn).logLevel),Object.prototype.hasOwnProperty.call(E(e,Rn),"altText")&&e.setAltText(t),o(On(n,E(e,Rn).column))):(Wt(Kt(R.infoLogs.RENDER_SUBMIT_SUCCESS,bn),Et.LOG,E(e,Mn).logLevel),Wt(Kt(R.infoLogs.FILE_RENDERED,bn,E(e,Rn).skyflowID),Et.LOG,E(e,Mn).logLevel),r(On(n,E(e,Rn).column)))})),Wt(Kt(R.infoLogs.EMIT_EVENT,bn,we),Et.LOG,n)})),Wt(Kt(R.infoLogs.EMIT_EVENT,bn,we),Et.LOG,n)}catch(e){Wt("Error: ".concat(e.message),Et.ERROR,n),o(e)}}))}},{key:"iframeName",value:function(){return E(this,An).name}},{key:"isMounted",value:function(){return E(this,Dn)}},{key:"hasToken",value:function(){return!!E(this,Rn).token}},{key:"isClientSetError",value:function(){return E(this,xn)}},{key:"getRecordData",value:function(){return E(this,Rn)}},{key:"setErrorOverride",value:function(e){var t=this;E(this,Dn)?m().emit(he+E(this,An).name,{name:E(this,An).name,isTriggerError:!0,clientErrorText:e}):m().target(Mt.IFRAME_SECURE_ORIGIN).on(ae.MOUNTED+E(this,An).name,(function(){m().emit(he+E(t,An).name,{name:E(t,An).name,isTriggerError:!0,clientErrorText:e})})),f(this,xn,!0)}},{key:"setError",value:function(e){var t=this;E(this,Dn)?m().emit(he+E(this,An).name,{name:E(this,An).name,isTriggerError:!0,clientErrorText:e}):m().target(Mt.IFRAME_SECURE_ORIGIN).on(ae.MOUNTED+E(this,An).name,(function(){f(t,Dn,!0),m().emit(he+E(t,An).name,{name:E(t,An).name,isTriggerError:!0,clientErrorText:e})})),f(this,xn,!0)}},{key:"resetError",value:function(){var e=this;E(this,Dn)?m().emit(he+E(this,An).name,{name:E(this,An).name,isTriggerError:!1}):m().target(Mt.IFRAME_SECURE_ORIGIN).on(ae.MOUNTED+E(this,An).name,(function(){f(e,Dn,!0),m().emit(he+E(e,An).name,{name:E(e,An).name,isTriggerError:!1})})),f(this,xn,!1)}},{key:"setAltText",value:function(e){var t=this;E(this,Dn)?m().emit(Te+E(this,An).name,{name:E(this,An).name,updateType:Me,updatedValue:e}):m().target(Mt.IFRAME_SECURE_ORIGIN).on(ae.MOUNTED+E(this,An).name,(function(){f(t,Dn,!0),m().emit(Te+E(t,An).name,{name:E(t,An).name,updateType:Me,updatedValue:e})}))}},{key:"clearAltText",value:function(){var e=this;E(this,Dn)?m().emit(Te+E(this,An).name,{name:E(this,An).name,updateType:Me,updatedValue:null}):m().target(Mt.IFRAME_SECURE_ORIGIN).on(ae.MOUNTED+E(this,An).name,(function(){f(e,Dn,!0),m().emit(Te+E(e,An).name,{name:E(e,An).name,updateType:Me,updatedValue:null})}))}},{key:"setToken",value:function(e){var t=this;f(this,Rn,Ln(Ln({},E(this,Rn)),{},{token:e})),E(this,Dn)?m().emit(Te+E(this,An).name,{name:E(this,An).name,updateType:xe,updatedValue:e}):m().target(Mt.IFRAME_SECURE_ORIGIN).on(ae.MOUNTED+E(this,An).name,(function(){f(t,Dn,!0),m().emit(Te+E(t,An).name,{name:E(t,An).name,updateType:xe,updatedValue:e})}))}},{key:"unmount",value:function(){var e;E(this,Rn).skyflowID&&(f(this,Dn,!1),null===(e=E(this,An).container)||void 0===e||e.remove());f(this,Dn,!1),E(this,An).unmount()}},{key:"update",value:function(e){var t=this;f(this,Rn,Ln(Ln({},E(this,Rn)),e)),E(this,Dn)?m().emit(Te+E(this,An).name,{name:E(this,An).name,updateType:Ce,updatedValue:e}):m().target(Mt.IFRAME_SECURE_ORIGIN).on(ae.MOUNTED+E(this,An).name,(function(){f(t,Dn,!0),m().emit(Te+E(t,An).name,{name:E(t,An).name,updateType:Ce,updatedValue:e})}))}}]),n}(yn);const Yn=Gn;function Bn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bn(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Wn(e){var t=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(e){return!1}}();return function(){var n,r=at(e);if(t){var o=at(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return it(this,n)}}function Kn(e,t,n){qn(e,t),t.set(e,n)}function qn(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function zn(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}var Hn="RevealContainer",Jn=new WeakMap,Zn=new WeakMap,$n=new WeakMap,Qn=new WeakMap,er=new WeakMap,tr=new WeakMap,nr=new WeakMap,rr=new WeakMap,or=new WeakMap,ir=new WeakMap,ar=new WeakMap,cr=new WeakMap,lr=new WeakMap,sr=new WeakMap,pr=new WeakMap,ur=new WeakSet;function dr(e,t){var n,r=this;this.isShadowDom?null===(n=E(this,sr).call(this))||void 0===n||n.then((function(n){var o={data:{type:oe,records:E(r,Jn),containerId:E(r,er)},skyflowConfig:{client:{config:{vaultID:E(r,Qn).clientJSON.config.vaultID||"",vaultURL:E(r,Qn).clientJSON.config.vaultURL||"",token:E(r,Qn).clientJSON.config.token||""},bearerToken:n},context:E(r,or)}};r.eventWrapper.emit(le+E(r,Qn).uuid,o,void 0,!0,E(r,lr),void 0,!1);r.eventWrapper.on(ce+E(r,Qn).uuid,(function(){}),!0,window,(function(n){E(r,pr).call(r,n,e,t)}))})).catch((function(e){Wt("".concat(JSON.stringify(e)),Et.ERROR,E(r,or).logLevel),t(e)})):m().emit(Ee+E(this,Qn).uuid,{type:oe,records:E(this,Jn),containerId:E(this,er)},(function(n){f(r,$n,[]),n.error?(Wt(Kt(R.errorLogs.FAILED_REVEAL),Et.ERROR,E(r,or).logLevel),t(n.error)):(Wt(Kt(R.infoLogs.REVEAL_SUBMIT_SUCCESS,Hn),Et.LOG,E(r,or).logLevel),e(n))}))}const fr=function(e){ot(n,e);var t=Wn(n);function n(e,r,o){var i,a,c,p,u,d=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},_=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];s(this,n),c=t.call(this),qn(p=nt(c),u=ur),u.add(p),Kn(nt(c),Jn,{writable:!0,value:[]}),Kn(nt(c),Zn,{writable:!0,value:[]}),Kn(nt(c),$n,{writable:!0,value:[]}),Kn(nt(c),Qn,{writable:!0,value:void 0}),Kn(nt(c),er,{writable:!0,value:void 0}),Kn(nt(c),tr,{writable:!0,value:void 0}),Kn(nt(c),nr,{writable:!0,value:!1}),Kn(nt(c),rr,{writable:!0,value:!1}),Kn(nt(c),or,{writable:!0,value:void 0}),Kn(nt(c),ir,{writable:!0,value:void 0}),Kn(nt(c),ar,{writable:!0,value:void 0}),l(nt(c),"type",Xi.REVEAL),Kn(nt(c),cr,{writable:!0,value:!1}),l(nt(c),"isShadowDom",!0),l(nt(c),"eventWrapper",void 0),Kn(nt(c),lr,{writable:!0,value:void 0}),Kn(nt(c),sr,{writable:!0,value:void 0}),Kn(nt(c),pr,{writable:!0,value:function(e,t,n){if(e.data&&e.data.type===ce+E(nt(c),Qn).uuid){var r=e.data.data;f(nt(c),$n,[]),r.error?(Wt(Kt(R.errorLogs.FAILED_REVEAL),Et.ERROR,E(nt(c),or).logLevel),n(r.error)):(Wt(Kt(R.infoLogs.REVEAL_SUBMIT_SUCCESS,Hn),Et.LOG,E(nt(c),or).logLevel),t(r))}}}),c.eventWrapper=new gn,c.isShadowDom=_,f(nt(c),cr,e.skyflowContainer.isControllerFrameReady),f(nt(c),lr,e.skyflowContainer.skyflowFrameControllerName),f(nt(c),Qn,Xn(Xn({},e),{},{clientJSON:Xn(Xn({},e.clientJSON),{},{config:Xn(Xn({},null===(i=e.clientJSON)||void 0===i?void 0:i.config),{},{options:Xn(Xn({},null===(a=e.clientJSON)||void 0===a||null===(a=a.config)||void 0===a?void 0:a.options),d)})})})),f(nt(c),sr,e.getSkyflowBearerToken),f(nt(c),ir,r),f(nt(c),er,v()),f(nt(c),tr,new en),f(nt(c),or,o);var I=E(nt(c),Qn).clientDomain||"",y=an({name:"".concat("reveal_controller",":").concat(E(nt(c),er),":").concat(btoa(I)),referrer:I});return on(y,{src:cn()}),ln(y,Xn({},Be)),Wt(Kt(R.infoLogs.CREATE_REVEAL_CONTAINER,Hn),Et.LOG,E(nt(c),or).logLevel),c.isShadowDom?E(nt(c),tr).on(Pe+E(nt(c),er),(function(e){e.skyflowID||E(nt(c),$n).push(e);var t=0;E(nt(c),Zn).forEach((function(e){e.getRecordData().skyflowID||(t+=1)})),f(nt(c),rr,E(nt(c),$n).length===t),E(nt(c),nr)&&E(nt(c),rr)&&E(nt(c),tr)._emit(ke+E(nt(c),er),{containerId:E(nt(c),er)})})):m().target(window.location.origin).on(Pe+E(nt(c),er),(function(e){e.skyflowID||E(nt(c),$n).push(e);var t=0;E(nt(c),Zn).forEach((function(e){e.getRecordData().skyflowID||(t+=1)})),f(nt(c),rr,E(nt(c),$n).length===t),E(nt(c),nr)&&E(nt(c),rr)&&E(nt(c),tr)._emit(ke+E(nt(c),er),{containerId:E(nt(c),er)})})),c}return u(n,[{key:"create",value:function(e,t){var n=v();xt(t);var r=new Yn(e,t,E(this,Qn),{containerId:E(this,er),isMounted:E(this,ar),eventEmitter:E(this,tr)},n,E(this,or));return E(this,Zn).push(r),E(this,ir)[n]=r,r}},{key:"reveal",value:function(){var e=this;return f(this,nr,!0),f(this,Jn,[]),E(this,Qn).skyflowContainer.isControllerFrameReady?new Promise((function(t,n){try{if(wt(E(e,Qn).clientJSON.config),Wt(Kt(R.infoLogs.VALIDATE_REVEAL_RECORDS,Hn),Et.LOG,E(e,or).logLevel),E(e,Zn).forEach((function(t){if(t.isClientSetError())throw new zt(mt.REVEAL_ELEMENT_ERROR_STATE);t.getRecordData().skyflowID||E(e,Jn).push(t.getRecordData())})),0===E(e,Jn).length)throw new zt(mt.NO_ELEMENTS_IN_REVEAL,[],!0);if(Tt(E(e,Jn)),E(e,rr))zn(e,ur,dr).call(e,t,n);else{var r=setTimeout((function(){Wt(R.errorLogs.ELEMENTS_NOT_MOUNTED_REVEAL,Et.ERROR,E(e,or).logLevel),n(new Error(R.errorLogs.ELEMENTS_NOT_MOUNTED_REVEAL))}),1e4);E(e,tr).on(ke+E(e,er),(function(){clearTimeout(r),zn(e,ur,dr).call(e,t,n)}))}}catch(t){Wt("Error: ".concat(t.message),Et.ERROR,E(e,or).logLevel),n(t)}})):new Promise((function(t,n){try{if(wt(E(e,Qn).clientJSON.config),Wt(Kt(R.infoLogs.VALIDATE_REVEAL_RECORDS,Hn),Et.LOG,E(e,or).logLevel),E(e,Zn).forEach((function(t){if(t.isClientSetError())throw new zt(mt.REVEAL_ELEMENT_ERROR_STATE);t.getRecordData().skyflowID||E(e,Jn).push(t.getRecordData())})),0===E(e,Jn).length)throw new zt(mt.NO_ELEMENTS_IN_REVEAL,[],!0);if(Tt(E(e,Jn)),E(e,rr))m().target(Mt.IFRAME_SECURE_ORIGIN).on(Se+E(e,Qn).uuid,(function(){zn(e,ur,dr).call(e,t,n)}));else{var r=setTimeout((function(){Wt(R.errorLogs.ELEMENTS_NOT_MOUNTED_REVEAL,Et.ERROR,E(e,or).logLevel),n(new Error(R.errorLogs.ELEMENTS_NOT_MOUNTED_REVEAL))}),1e4);E(e,tr).on(ke+E(e,er),(function(){clearTimeout(r),E(e,Qn).skyflowContainer.isControllerFrameReady?zn(e,ur,dr).call(e,t,n):m().target(Mt.IFRAME_SECURE_ORIGIN).on(Se+E(e,Qn).uuid,(function(){zn(e,ur,dr).call(e,t,n)}))}))}}catch(t){Wt("Error: ".concat(t.message),Et.ERROR,E(e,or).logLevel),n(t)}}))}}]),n}(sn);function Er(e){return JSON.parse(JSON.stringify(e))}function _r(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}const mr=function(){function e(){s(this,e),l(this,"listeners",void 0),l(this,"isDestroyed",void 0),this.listeners=[],this.isDestroyed=!1}return u(e,[{key:"on",value:function(e,t){m().on(e,t),this.listeners.push({eventName:e,callback:t})}},{key:"off",value:function(e,t){m().off(e,t);var n=this.listeners.findIndex((function(t){return t.eventName===e}));-1!==n&&this.listeners.splice(n,1)}},{key:"emit",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;m().emit(e,t,n)}},{key:"hasListener",value:function(e){return-1!==this.listeners.findIndex((function(t){return t.eventName===e}))}},{key:"teardown",value:function(){this.listeners.forEach((function(e){m().off(e.eventName,e.handler)})),this.listeners=[]}}]),e}();var vr=["name"];function Ir(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ir(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ir(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Or(e){var t=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(e){return!1}}();return function(){var n,r=at(e);if(t){var o=at(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return it(this,n)}}function gr(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}var Nr=new WeakMap,Lr=new WeakMap,hr=new WeakMap,Tr=new WeakMap,br=new WeakMap,Ar=new WeakMap,wr=new WeakMap,Rr=new WeakMap,Sr=new WeakMap,Dr=new WeakMap,xr=new WeakMap,Mr=new WeakMap,Cr=new WeakMap,Pr=new WeakMap,kr=new WeakMap,Vr=new WeakMap,jr=new WeakMap,Ur=new WeakMap,Fr=new WeakMap,Gr=new WeakMap,Yr=new WeakMap,Br=new WeakMap,Xr=new WeakMap,Wr=function(e){ot(n,e);var t=Or(n);function n(e,r,o,i){var a,c=arguments.length>4&&void 0!==arguments[4]&&arguments[4],p=arguments.length>5?arguments[5]:void 0,u=arguments.length>6?arguments[6]:void 0,d=arguments.length>7?arguments[7]:void 0,_=arguments.length>8?arguments[8]:void 0;s(this,n),l(nt(a=t.call(this)),"elementType",void 0),l(nt(a),"type",Xi.COLLECT),gr(nt(a),Nr,{writable:!0,value:void 0}),l(nt(a),"containerId",void 0),gr(nt(a),Lr,{writable:!0,value:!1}),gr(nt(a),hr,{writable:!0,value:void 0}),gr(nt(a),Tr,{writable:!0,value:void 0}),l(nt(a),"resizeObserver",void 0),gr(nt(a),br,{writable:!0,value:{isEmpty:!0,isComplete:!1,isValid:!1,isFocused:!1,value:void 0,isRequired:!1,selectedCardScheme:""}}),gr(nt(a),Ar,{writable:!0,value:void 0}),gr(nt(a),wr,{writable:!0,value:void 0}),gr(nt(a),Rr,{writable:!0,value:new en}),gr(nt(a),Sr,{writable:!0,value:void 0}),gr(nt(a),Dr,{writable:!0,value:new mr}),gr(nt(a),xr,{writable:!0,value:void 0}),gr(nt(a),Mr,{writable:!0,value:[]}),gr(nt(a),Cr,{writable:!0,value:!1}),gr(nt(a),Pr,{writable:!0,value:void 0}),gr(nt(a),kr,{writable:!0,value:void 0}),gr(nt(a),Vr,{writable:!0,value:!1}),gr(nt(a),jr,{writable:!0,value:!1}),gr(nt(a),Ur,{writable:!0,value:void 0}),l(nt(a),"getID",(function(){return E(nt(a),Nr)})),l(nt(a),"mount",(function(e){var t;if(!e)throw new zt(mt.EMPTY_ELEMENT_IN_MOUNT,["CollectElement"],!0);if(a.resizeObserver=new ResizeObserver((function(){E(nt(a),Dr).emit(ae.HEIGHT+E(nt(a),xr).name,{},(function(e){E(nt(a),xr).setIframeHeight(e.height)}))})),En(E(nt(a),Nr),B,e),null!==(t=E(nt(a),wr))&&void 0!==t&&null!==(t=t.clientJSON)&&void 0!==t&&null!==(t=t.config)&&void 0!==t&&null!==(t=t.options)&&void 0!==t&&t.trackMetrics&&E(nt(a),wr).clientJSON.config.options.trackingKey&&mn(E(nt(a),Nr)),"string"==typeof e){var n,r=document.querySelector(e);if(r)null===(n=a.resizeObserver)||void 0===n||n.observe(r)}else if(e instanceof HTMLElement){var o;null===(o=a.resizeObserver)||void 0===o||o.observe(e)}E(nt(a),Tr).length>1?(E(nt(a),xr).mount(e,E(nt(a),Nr),{record:JSON.stringify({record:E(nt(a),Ar),containerId:a.containerId,metaData:E(nt(a),wr)})}),E(nt(a),Tr).forEach((function(e,t){E(nt(a),Sr)&&(E(nt(a),Sr)._emit("".concat(ae.READY,":").concat(e.elementName),yr(yr({},E(nt(a),hr)[t]),{},{elementType:e.elementType})),En(E(nt(a),Nr),K,"".concat(e.elementType,"_").concat(W.READY)))})),En(E(nt(a),Nr),q,Date.now())):E(nt(a),Vr)&&(E(nt(a),xr).mount(e,E(nt(a),Nr),{record:JSON.stringify({record:E(nt(a),Ar),containerId:a.containerId,metaData:E(nt(a),wr)})}),En(E(nt(a),Nr),q,Date.now()))})),l(nt(a),"unmount",(function(){var e;(E(nt(a),xr).unmount(),a.resizeObserver)&&(null===(e=a.resizeObserver)||void 0===e||e.disconnect())})),l(nt(a),"updateElementGroup",(function(e){var t=Er(e),n=function(){E(nt(a),Lr)&&(t={rows:[{elements:[yr({},t)]}]}),f(nt(a),Ar,io(E(nt(a),Ar),t)),f(nt(a),Tr,ao(E(nt(a),Ar))),E(nt(a),Lr)?E(nt(a),Dr).emit(Ie+Vt(E(nt(a),xr).name),{name:E(nt(a),xr).name,options:E(nt(a),Tr)[0],isSingleElementAPI:!0}):(E(nt(a),Tr).forEach((function(e){E(nt(a),Dr).emit(Ie+Vt(E(nt(a),xr).name),{name:e.elementName,options:e,isSingleElementAPI:!0})})),E(nt(a),Dr).emit(Ie+Vt(E(nt(a),xr).name),{name:E(nt(a),xr).name,options:E(nt(a),Ar),isSingleElementAPI:!1})),E(nt(a),Xr).call(nt(a))};E(nt(a),Cr)?n():E(nt(a),Mr).push(n)})),gr(nt(a),Fr,{writable:!0,value:function(e){E(nt(a),Lr)||E(nt(a),Rr).on(Ie+Vt(E(nt(a),xr).name),(function(){e(E(nt(a),Tr))}),!0)}}),l(nt(a),"updateElement",(function(e){E(nt(a),Dr).emit(Ie+e.elementName,{name:e.elementName,options:e,isSingleElementAPI:!0})})),l(nt(a),"update",(function(e){f(nt(a),jr,!0),E(nt(a),Cr)?(e.validations=co(e.validations),a.updateElement(yr({elementName:E(nt(a),Ar).elementName},e)),f(nt(a),jr,!1)):E(nt(a),jr)&&E(nt(a),Rr).on("".concat(ut.READY,":").concat(E(nt(a),Nr)),(function(){e.validations=co(e.validations),a.updateElement(yr({elementName:E(nt(a),Ar).elementName},e)),f(nt(a),Cr,!0),f(nt(a),jr,!1)}))})),gr(nt(a),Gr,{writable:!0,value:function(){E(nt(a),hr).forEach((function(e,t){if(0===t){E(nt(a),br).isEmpty=e.isEmpty,E(nt(a),br).isComplete=e.isComplete,E(nt(a),br).isValid=e.isValid,E(nt(a),br).isFocused=e.isFocused,E(nt(a),br).isRequired=e.isRequired,E(nt(a),br).value={},E(nt(a),br).selectedCardScheme="";var n=E(nt(a),Tr)[t].elementName,r=e.value&&function(e,t,n){if("string"!=typeof e)return e;if(t===Ve.CARD_NUMBER){if(e=e&&e.replace(/\s/g,""),!n){var r,o=It(e),i=o!==je.DEFAULT&&o===je.AMEX?6:8;return e.length>i?e.replace(new RegExp(".(?=.{0,".concat((null===(r=e)||void 0===r?void 0:r.length)-i-1,"}$)"),"g"),"X"):e}return e}return n?e:void 0}(e.value,e.elementType,E(nt(a),kr));E(nt(a),Lr)?E(nt(a),br).value=r:E(nt(a),br).value[n]=r}else E(nt(a),br).isEmpty=E(nt(a),br).isEmpty||e.isEmpty,E(nt(a),br).isComplete=E(nt(a),br).isComplete&&e.isComplete,E(nt(a),br).isValid=E(nt(a),br).isValid&&e.isValid,E(nt(a),br).isFocused=E(nt(a),br).isFocused||e.isFocused,E(nt(a),br).isRequired=E(nt(a),br).isRequired||e.isRequired,E(nt(a),br).selectedCardScheme=E(nt(a),br).selectedCardScheme||e.selectedCardScheme,E(nt(a),br).value||(E(nt(a),br).value={}),E(nt(a),Tr)[t].sensitive||(E(nt(a),br).value[E(nt(a),Tr)[t].elementName]=e.value||"")}))}}),l(nt(a),"getState",(function(){return{isEmpty:E(nt(a),br).isEmpty,isComplete:E(nt(a),br).isComplete,isValid:E(nt(a),br).isValid,isFocused:E(nt(a),br).isFocused,value:E(nt(a),br).value,required:E(nt(a),br).isRequired,selectedCardScheme:""}})),l(nt(a),"getOptions",(function(){var e=Er(E(nt(a),Ar));return E(nt(a),Lr)?e=e.rows[0].elements[0]:e.rows.forEach((function(e){e.elements.forEach((function(e){delete e.elementName}))})),delete e.elementName,e})),gr(nt(a),Yr,{writable:!0,value:function(e){E(nt(a),Rr).on(ve,(function(){var t=E(nt(a),Tr).map((function(e){return e.elementName}));E(nt(a),Lr)||t.push(E(nt(a),xr).name),e(t)}),!0)}}),gr(nt(a),Br,{writable:!0,value:function(){E(nt(a),Dr).on(De,(function(e){if(e.ready&&e.name===a.iframeName()){var t=E(nt(a),hr)[0],n=(t.name,_r(t,vr));E(nt(a),Rr)._emit(ae.READY,yr({},n))}})),E(nt(a),Tr).forEach((function(e){E(nt(a),Dr).on(me+e.elementName,(function(e){if(E(nt(a),Lr)&&e.event===ae.READY&&e.name===Vt(E(nt(a),xr).name))E(nt(a),Rr)._emit(ae.READY);else{var t=E(nt(a),Tr).length>1;E(nt(a),Tr).forEach((function(n,r){var o;if(e.name===n.elementName){var i,c="";switch(e.event){case ae.FOCUS:c=ae.FOCUS;break;case ae.BLUR:c=ae.BLUR;break;case ae.CHANGE:c=ae.CHANGE;break;case ae.READY:c=ae.READY;break;case ae.SUBMIT:return void(null===(o=E(nt(a),Sr))||void 0===o||o._emit(ae.SUBMIT));default:throw new zt(mt.INVALID_EVENT_TYPE,[],!0)}E(nt(a),hr)[r].isEmpty=e.value.isEmpty,E(nt(a),hr)[r].isValid=e.value.isValid,E(nt(a),hr)[r].isComplete=e.value.isComplete,E(nt(a),hr)[r].isFocused=e.value.isFocused,E(nt(a),hr)[r].isRequired=e.value.isRequired,E(nt(a),hr)[r].selectedCardScheme=(null==e||null===(i=e.value)||void 0===i?void 0:i.selectedCardScheme)||"",Object.prototype.hasOwnProperty.call(e.value,"value")?E(nt(a),hr)[r].value=e.value.value:E(nt(a),hr)[r].value=void 0,c=t?"".concat(c,":").concat(e.name):c,E(nt(a),Dr).emit(ae.HEIGHT+E(nt(a),xr).name,{},(function(e){E(nt(a),xr).setIframeHeight(e.height)})),E(nt(a),Gr).call(nt(a));var l=yr(yr({},E(nt(a),hr)[r]),{},{elementType:n.elementType});t&&E(nt(a),Sr)?E(nt(a),Sr)._emit(c,l):E(nt(a),Rr)._emit(c,l)}}))}}))}))}}),gr(nt(a),Xr,{writable:!0,value:function(){E(nt(a),Ar).rows.forEach((function(e){e.elements.forEach((function(e){e.elementType!==Fe.radio.name&&e.elementType!==Fe.checkbox.name&&(e.value=void 0)}))})),f(nt(a),Tr,ao(E(nt(a),Ar)))}}),a.containerId=i.containerId,f(nt(a),Nr,e),f(nt(a),Pr,d),f(nt(a),wr,o),f(nt(a),Ar,io(r)),f(nt(a),Tr,ao(r)),f(nt(a),Lr,c),a.resizeObserver=null,_&&f(nt(a),Sr,_),f(nt(a),kr,Bt[E(nt(a),Pr).env].doesReturnValue),a.elementType=E(nt(a),Lr)?E(nt(a),Tr)[0].elementType:"group",f(nt(a),Ur,new gn(i.shadowDom)),fn(o,e),f(nt(a),hr,[]),E(nt(a),Tr).forEach((function(e){En(E(nt(a),Nr),Y,e.elementType),E(nt(a),hr).push({isEmpty:!0,isComplete:!1,isValid:!e.required&&E(nt(a),br).isEmpty,isFocused:!1,value:E(nt(a),kr)?"":void 0,elementType:e.elementType,name:e.elementName,isRequired:e.required,selectedCardScheme:""})})),E(nt(a),Tr)&&E(nt(a),Tr).length&&E(nt(a),Tr).length>1?En(E(nt(a),Nr),X,F.COMPOSE):En(E(nt(a),Nr),X,F.COLLECT),f(nt(a),xr,new In(E(nt(a),Ar).elementName,o,a.containerId,E(nt(a),Pr).logLevel)),E(nt(a),Br).call(nt(a)),E(nt(a),Yr).call(nt(a),p),E(nt(a),Fr).call(nt(a),u),Wt(Kt(R.infoLogs.CREATED_ELEMENT,"Element",function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split(":");if("group"===e[1])return"composable container";var t=atob(e[2]);return-1!==t.indexOf(":")&&(t=t.substring(0,t.indexOf(":"))),t}(E(nt(a),xr).name)),Et.LOG,E(nt(a),Pr).logLevel),f(nt(a),Vr,i.isMounted),i.type===Xi.COMPOSABLE&&E(nt(a),Tr).forEach((function(e){E(nt(a),Dr).on(ae.MOUNTED+Vt(e.elementName),(function(t){t.name===e.elementName&&(En(E(nt(a),Nr),K,"".concat(e.elementType,"_").concat(W.MOUNTED)),e.isMounted=!0,f(nt(a),Cr,!0),E(nt(a),Dr).emit(ae.HEIGHT+E(nt(a),xr).name,{},(function(e){E(nt(a),xr).setIframeHeight(e.height)})))}))}));return i.shadowDom?E(nt(a),Ur).on(ae.MOUNTED+Vt(E(nt(a),xr).name),(function(){}),!0,window,(function(e){var t,n=null==e||null===(t=e.data)||void 0===t?void 0:t.data;n&&n.name===E(nt(a),Tr)[0].elementName&&(En(E(nt(a),Nr),z,Date.now()),En(E(nt(a),Nr),K,G.MOUNTED),E(nt(a),Tr)[0].isMounted=!0,f(nt(a),Cr,!0),E(nt(a),Dr).emit(ae.HEIGHT+E(nt(a),xr).name,{},(function(e){E(nt(a),xr).setIframeHeight(e.height)})))})):E(nt(a),Dr).on(ae.MOUNTED+Vt(E(nt(a),xr).name),(function(e){e.name===E(nt(a),Tr)[0].elementName&&(En(E(nt(a),Nr),z,Date.now()),En(E(nt(a),Nr),K,G.MOUNTED),E(nt(a),Tr)[0].isMounted=!0,f(nt(a),Cr,!0),E(nt(a),Dr).emit(ae.HEIGHT+E(nt(a),xr).name,{},(function(e){E(nt(a),xr).setIframeHeight(e.height)})))})),a}return u(n,[{key:"on",value:function(e,t){if(!Object.values(ae).includes(e))throw new zt(mt.INVALID_EVENT_LISTENER,[],!0);if(!t)throw new zt(mt.MISSING_HANDLER_IN_EVENT_LISTENER,[],!0);if("function"!=typeof t)throw new zt(mt.INVALID_HANDLER_IN_EVENT_LISTENER,[],!0);E(this,Rr).on(e,(function(e){void 0===e.value&&(e.value=""),e.elementType!==Ve.CARD_NUMBER&&delete e.selectedCardScheme,delete e.isComplete,delete e.name,t(e)})),e===ae.READY&&E(this,Dr).emit(De,{ready:E(this,Vr),name:this.iframeName()})}},{key:"iframeName",value:function(){return E(this,xr).name}},{key:"isMounted",value:function(){return E(this,Cr)}},{key:"isUpdateCalled",value:function(){return E(this,jr)}},{key:"isValidElement",value:function(){for(var e=0;e<E(this,Tr).length;e+=1){if(!Object.prototype.hasOwnProperty.call(E(this,Tr)[e],"table"))throw new zt(mt.MISSING_TABLE_IN_COLLECT,[],!0);if(!E(this,Tr)[e].table)throw new zt(mt.EMPTY_TABLE_IN_COLLECT,[],!0);if(!("string"==typeof E(this,Tr)[e].table||E(this,Tr)[e].table instanceof String))throw new zt(mt.INVALID_TABLE_IN_COLLECT,[],!0);if(!Object.prototype.hasOwnProperty.call(E(this,Tr)[e],"column"))throw new zt(mt.MISSING_COLUMN_IN_COLLECT,[],!0);if(!E(this,Tr)[e].column)throw new zt(mt.EMPTY_COLUMN_IN_COLLECT,[],!0);if(!("string"==typeof E(this,Tr)[e].column||E(this,Tr)[e].column instanceof String))throw new zt(mt.INVALID_COLUMN_IN_COLLECT,[],!0);if(void 0!==E(this,Tr)[e].skyflowID&&!E(this,Tr)[e].skyflowID)throw new zt(mt.EMPTY_SKYFLOW_ID_COLLECT,[],!0)}return!0}},{key:"setErrorOverride",value:function(e){E(this,Dr).emit(Le+Vt(E(this,xr).name),{name:Vt(E(this,xr).name),customErrorText:e})}},{key:"setError",value:function(e){E(this,Dr).emit(Ne+Vt(E(this,xr).name),{name:Vt(E(this,xr).name),isTriggerError:!0,clientErrorText:e})}},{key:"resetError",value:function(){E(this,Dr).emit(Ne+Vt(E(this,xr).name),{name:Vt(E(this,xr).name),isTriggerError:!1})}},{key:"setValue",value:function(e){E(this,Pr).env!==ft.PROD?E(this,Lr)&&E(this,Dr).emit(Ie+Vt(E(this,xr).name),{name:E(this,xr).name,options:yr(yr({},E(this,Tr)[0]),{},{value:e},E(this,Ar)),isSingleElementAPI:!0}):Wt(Kt(R.warnLogs.UNABLE_TO_SET_VALUE_IN_PROD_ENV,E(this,Tr)[0].elementType),Et.WARN,E(this,Pr).logLevel)}},{key:"clearValue",value:function(){E(this,Pr).env!==ft.PROD?E(this,Lr)&&E(this,Dr).emit(Ie+Vt(E(this,xr).name),{name:E(this,xr).name,options:yr(yr({},E(this,Tr)[0]),{},{value:""}),isSingleElementAPI:!0}):Wt(Kt(R.warnLogs.UNABLE_TO_CLEAR_VALUE_IN_PROD_ENV,E(this,Tr)[0].elementType),Et.WARN,E(this,Pr).logLevel)}}]),n}(yn);const Kr=Wr;function qr(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}var zr=new WeakMap,Hr=new WeakMap,Jr=new WeakMap,Zr=new WeakMap,$r=new WeakMap;const Qr=function(){function e(t,n,r){var o=this;s(this,e),qr(this,zr,{writable:!0,value:void 0}),qr(this,Hr,{writable:!0,value:void 0}),qr(this,Jr,{writable:!0,value:void 0}),l(this,"type",Xi.COMPOSABLE),qr(this,Zr,{writable:!0,value:!1}),qr(this,$r,{writable:!0,value:!1}),l(this,"update",(function(e){f(o,$r,!0),E(o,Zr)?(e.validations=co(e.validations),E(o,Hr)._emit(Ae,{elementName:E(o,zr),elementOptions:e}),f(o,$r,!1)):E(o,$r)&&E(o,Hr).on("".concat(ut.READY,":").concat(E(o,zr)),(function(){e.validations=co(e.validations),E(o,Hr)._emit(Ae,{elementName:E(o,zr),elementOptions:e}),f(o,Zr,!0),f(o,$r,!1)}))})),f(this,zr,t),f(this,Jr,r),f(this,Hr,n),E(this,Hr).on("".concat(ut.READY,":").concat(E(this,zr)),(function(){f(o,Zr,!0)}))}return u(e,[{key:"on",value:function(e,t){if(!Object.values(ae).includes(e))throw new zt(mt.INVALID_EVENT_LISTENER,[],!0);if(!t)throw new zt(mt.MISSING_HANDLER_IN_EVENT_LISTENER,[],!0);if("function"!=typeof t)throw new zt(mt.INVALID_HANDLER_IN_EVENT_LISTENER,[],!0);E(this,Hr).on("".concat(e,":").concat(E(this,zr)),(function(e){void 0===e.value&&(e.value=""),e.elementType!==Ve.CARD_NUMBER&&delete e.selectedCardScheme,delete e.isComplete,delete e.name,t(e)}))}},{key:"iframeName",value:function(){return E(this,Jr)}},{key:"getID",value:function(){return E(this,zr)}}]),e}();function eo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function to(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eo(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function no(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ro(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?no(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):no(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function oo(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("group"!==e&&!Object.prototype.hasOwnProperty.call(Fe,e))throw new zt(mt.INVALID_ELEMENT_TYPE,[],!0);if(Object.prototype.hasOwnProperty.call(t,"validations")){if(!Array.isArray(t.validations))throw new zt(mt.INVALID_VALIDATIONS_TYPE,[],!0);t.validations.forEach((function(e,t){if(!Object.prototype.hasOwnProperty.call(e,"type"))throw new zt(mt.MISSING_VALIDATION_RULE_TYPE,["".concat(t)],!0);if(!Object.values(_t).includes(e.type))throw new zt(mt.INVALID_VALIDATION_RULE_TYPE,["".concat(t)],!0);if(!Object.prototype.hasOwnProperty.call(e,"params"))throw new zt(mt.MISSING_VALIDATION_RULE_PARAMS,["".concat(t)],!0);if("object"!==a(e.params)||Array.isArray(e.params)||null===e.params)throw new zt(mt.INVALID_VALIDATION_RULE_PARAMS,["".concat(t)],!0);if(e.type===_t.REGEX_MATCH_RULE){if(!Object.prototype.hasOwnProperty.call(e.params,"regex"))throw new zt(mt.MISSING_REGEX_IN_REGEX_MATCH_RULE,["".concat(t)],!0)}else if(e.type===_t.LENGTH_MATCH_RULE&&!Object.prototype.hasOwnProperty.call(e.params,"min")&&!Object.prototype.hasOwnProperty.call(e.params,"max"))throw new zt(mt.MISSING_MIN_AND_MAX_IN_LENGTH_MATCH_RULE,["".concat(t)],!0)}))}if(Object.prototype.hasOwnProperty.call(n,"name")&&n.name!==t.name)throw new Error("Name attribute can't be updated");if((n=ro(ro({},t),n)).mask||n.replacePattern){var r=Fe[e].attributes.type;"text"===r&&"textarea"===r&&"email"===r||(delete n.mask,delete n.replacePattern)}if(void 0===!n.mask&&!Array.isArray(n.mask))throw new Error("mask option has to be array or undefined");if(Array.isArray(n.mask)){var o=n.mask;if("string"!=typeof o[0]||o[1]&&"object"!==a(o[1]))throw new Error("mask array values has to be string")}if(Array.isArray(n.replacePattern)){var i=n.replacePattern;if("string"!=typeof i[0]||i[1]&&"string"!=typeof i[1])throw new Error("replacePatterns array values has to be string")}if((e===Fe.radio.name||e===Fe.checkbox.name)&&!n.value)throw new Error("Elements radio and checkbox requires value attribute");if(!(e!==Fe.dropdown.name||n.options&&Array.isArray(n.options)&&0!==n.options.length))throw new Error("Element dropdown requires options attribute with an array of objects containing value and text attributes")}function io(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return(t=ro(ro({},e),t)).rows.forEach((function(r,o){var i=r,c=e.rows[o];t.rows[o]=ro(ro({},c),i),i.elements.forEach((function(e,t){var r,o,l=c.elements[t],s=e;if(s.elementType&&l.elementType!==s.elementType&&l.elementName&&l.elementName!==s.elementName)throw new Error(Kt(R.errorLogs.CANNOT_CHANGE_ELEMENT));oo(l.elementType,l,s),i.elements[t]=ro(ro(ro({},l),s),{},{elementName:l.elementName});var p=s.classes||{},u=s.styles||{};u.base=ro(ro({},Xe),u.base),s.classes=p,s.styles=u;var d=(null==s||null===(r=s.labelStyles)||void 0===r?void 0:r.classes)||{},f=(null==s||null===(o=s.labelStyles)||void 0===o?void 0:o.styles)||{};n&&function(e,t){Object.values(We).forEach((function(n){if(e[n]||t[n])switch(n){case We.BASE:t[n]=to({},t[n]);break;case We.FOCUS:t[We.BASE]=to(to({},t[We.BASE]),{},{":focus":to({},t[We.BASE]&&t[We.BASE][":focus"])});break;case We.WEBPACKAUTOFILL:t[We.BASE]=to(to({},t[We.BASE]),{},{":-webkit-autofill":to({},t[We.BASE]&&t[We.BASE][":-webkit-autofill"])});break;default:t[n]=to(to({},t[We.BASE]),t[n])}})),Object.keys(t).forEach((function(e){var n=t[e][":-webkit-autofill"];"object"===a(n)&&Object.keys(n).forEach((function(e){n[e]&&!n[e].includes("!important")&&(n[e]="".concat(n[e]," !important"))}))}))}(d,f),s.labelStyles={labelClasses:d},s.labelStyles.styles=f}))})),t}var ao=function(e){var t=e.rows,n=[];return t.forEach((function(e){e.elements.forEach((function(e){n.push(e)}))})),n},co=function(e){return e&&Array.isArray(e)&&0!==e.length?e.map((function(e,t){if(!e)return e;switch(e.type){case _t.ELEMENT_VALUE_MATCH_RULE:var n=e.params;if(!n||!Object.prototype.hasOwnProperty.call(n,"element"))throw new zt(mt.MISSING_ELEMENT_IN_ELEMENT_MATCH_RULE,["".concat(t)],!0);var r=n.element;if(!r||!(r instanceof Kr||Qr))throw new zt(mt.INVALID_ELEMENT_IN_ELEMENT_MATCH_RULE,["".concat(t)],!0);return ro(ro({},e),{},{params:ro(ro({},n),{},{elementID:r.getID(),element:r.iframeName()})});case _t.REGEX_MATCH_RULE:var o=e.params,i=(o||{}).regex;if(i&&!At(i))throw new zt(mt.INVALID_REGEX_IN_REGEX_MATCH_RULE,["".concat(t)],!0);if(i&&At(i))return ro(ro({},e),{},{params:ro(ro({},o),{},{regex:i.toString()})});break;default:return e}return e})):e},lo=function(e,t,n){var r,o,i,c=ro({required:!1},t);if(Object.prototype.hasOwnProperty.call(c,"format")||Object.prototype.hasOwnProperty.call(c,"translation"))if(Ze.includes(e))Wt(Kt(R.warnLogs.INPUT_FORMATTING_NOT_SUPPROTED,e),Et.WARN,n),null===(r=c)||void 0===r||delete r.format,null===(o=c)||void 0===o||delete o.translation;else if(e===Fe.INPUT_FIELD.name){var l,s;xt(t),null===(l=c=ro(ro({},c),{},{mask:[c.format,c.translation?c.translation:$e]}))||void 0===l||delete l.format,null===(s=c)||void 0===s||delete s.translation}switch(e){case Fe.CARD_NUMBER.name:var p,u,d;Object.prototype.hasOwnProperty.call(c,"enableCardIcon")||(c=ro(ro({},c),{},{enableCardIcon:!0}));var f=" ";if((null===(p=c)||void 0===p?void 0:p.format)===Ge&&(f="-"),null===(u=c=ro(ro({},c),{},{cardSeperator:f}))||void 0===u||delete u.format,null===(d=c)||void 0===d||delete d.translation,Object.prototype.hasOwnProperty.call(c,"cardMetadata")){if("object"!==a(c.cardMetadata)||"[object Object]"!==Object.prototype.toString.call(c.cardMetadata))throw new zt(mt.INVALID_OPTION_CARD_METADATA,[],!0);if(Object.prototype.hasOwnProperty.call(c.cardMetadata,"scheme")&&("object"!==a(c.cardMetadata.scheme)||"[object Array]"!==Object.prototype.toString.call(c.cardMetadata.scheme)))throw new zt(mt.INVALID_OPTION_CARD_SCHEME,[],!0)}break;case Fe.EXPIRATION_DATE.name:var E,_=!1;c.format&&((_=!!(i=c.format.toUpperCase())&&ze.includes(i))||Wt(Kt(R.warnLogs.INVALID_EXPIRATION_DATE_FORMAT,ze.toString()),Et.WARN,n)),null===(E=c=ro(ro({},c),{},{format:_?c.format.toUpperCase():qe}))||void 0===E||delete E.translation;break;case Fe.EXPIRATION_YEAR.name:var m,v=!1;c.format&&(v=function(e){return!!e&&He.includes(e)}(c.format.toUpperCase()),v||Wt(Kt(R.warnLogs.INVALID_EXPIRATION_YEAR_FORMAT,He.toString()),Et.WARN,n)),null===(m=c=ro(ro({},c),{},{format:v?c.format.toUpperCase():"YY"}))||void 0===m||delete m.translation;break;case Fe.FILE_INPUT.name:Object.prototype.hasOwnProperty.call(c,"preserveFileName")||(c=ro(ro({},c),{},{preserveFileName:!0}))}if(Object.prototype.hasOwnProperty.call(c,"enableCardIcon")&&!Dt(c.enableCardIcon))throw new zt(mt.INVALID_BOOLEAN_OPTIONS,["enableCardIcon"],!0);if(Object.prototype.hasOwnProperty.call(c,"enableCopy")&&!Dt(c.enableCopy))throw new zt(mt.INVALID_BOOLEAN_OPTIONS,["enableCopy"],!0);if(Object.prototype.hasOwnProperty.call(c,"required")&&!Dt(c.required))throw new zt(mt.INVALID_BOOLEAN_OPTIONS,["required"],!0);if(Object.prototype.hasOwnProperty.call(c,"preserveFileName")&&!Dt(c.preserveFileName))throw new zt(mt.INVALID_BOOLEAN_OPTIONS,["preserveFileName"],!0);if(e===Fe.FILE_INPUT.name){if(t.allowedFileType){if(!Array.isArray(t.allowedFileType))throw new zt(mt.INVALID_ALLOWED_OPTIONS,[],!0);if(t.allowedFileType.length<=0)throw new zt(mt.EMPTY_ALLOWED_OPTIONS_ARRAY,[],!0);if(!t.allowedFileType.every((function(e){return"string"==typeof e})))throw new zt(mt.INVALID_ALLOWED_FILETYPE_ARRAY,[],!0)}if(Object.prototype.hasOwnProperty.call(t,"allowedFileType")&&(c=ro(ro({},c),{},{allowedFileType:t.allowedFileType})),Object.prototype.hasOwnProperty.call(t,"blockEmptyFiles")&&!Dt(t.blockEmptyFiles))throw new zt(mt.INVALID_BOOLEAN_OPTIONS,["blockEmptyFiles"],!0);Object.prototype.hasOwnProperty.call(t,"blockEmptyFiles")&&(c=ro(ro({},c),{},{blockEmptyFiles:c.blockEmptyFiles}))}if(Object.prototype.hasOwnProperty.call(t,"masking")){if(!Dt(t.masking))throw new zt(mt.INVALID_BOOLEAN_OPTIONS,["masking"],!0);if(Object.prototype.hasOwnProperty.call(t,"maskingChar")&&"string"==typeof t.maskingChar&&t.maskingChar.length>1)throw new zt(mt.INVALID_MASKING_CHARACTER,[],!0);c=Object.prototype.hasOwnProperty.call(t,"maskingChar")&&"string"==typeof t.maskingChar?ro(ro({},c),{},{masking:t.masking,maskingChar:t.maskingChar}):ro(ro({},c),{},{masking:t.masking,maskingChar:"*"})}return c};function so(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function po(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?so(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):so(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function uo(e){var t=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(e){return!1}}();return function(){var n,r=at(e);if(t){var o=at(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return it(this,n)}}function fo(e,t,n){Eo(e,t),t.set(e,n)}function Eo(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function _o(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}var mo="CollectContainer",vo=new WeakMap,Io=new WeakMap,yo=new WeakMap,Oo=new WeakMap,go=new WeakMap,No=new WeakMap,Lo=new WeakMap,ho=new WeakMap,To=new WeakMap,bo=new WeakMap,Ao=new WeakMap,wo=new WeakMap,Ro=new WeakMap,So=new WeakMap,Do=new WeakMap,xo=new WeakSet,Mo=new WeakMap,Co=new WeakMap,Po=new WeakMap,ko=new WeakMap,Vo=new WeakMap,jo=new WeakMap,Uo=function(e){ot(n,e);var t=uo(n);function n(e,r,o,i){var a,c,p,u,d=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];s(this,n),c=t.call(this),Eo(p=nt(c),u=xo),u.add(p),fo(nt(c),vo,{writable:!0,value:void 0}),fo(nt(c),Io,{writable:!0,value:{}}),fo(nt(c),yo,{writable:!0,value:void 0}),fo(nt(c),Oo,{writable:!0,value:void 0}),fo(nt(c),go,{writable:!0,value:void 0}),l(nt(c),"type",Xi.COLLECT),fo(nt(c),No,{writable:!0,value:void 0}),fo(nt(c),Lo,{writable:!0,value:!1}),fo(nt(c),ho,{writable:!0,value:!0}),l(nt(c),"isShadowDom",!0),l(nt(c),"eventWrapper",void 0),fo(nt(c),To,{writable:!0,value:void 0}),fo(nt(c),bo,{writable:!0,value:void 0}),l(nt(c),"create",(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{required:!1};Rt(e,E(nt(c),Oo).logLevel);var n=co(e.validations),r=lo(e.type,t,E(nt(c),Oo).logLevel),o={rows:[{elements:[po(po(po({elementType:e.type,name:e.column,accept:t.allowedFileType},e),r),{},{validations:n})]}]};return E(nt(c),Ao).call(nt(c),o,!0)})),fo(nt(c),Ao,{writable:!0,value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=[],r=Er(e);if(r.rows.forEach((function(e){e.elements.forEach((function(e){var t=e,r=t.elementType;oo(r,t),t.sensitive=t.sensitive||Fe[r].sensitive,t.replacePattern=t.replacePattern||Fe[r].replacePattern,t.mask=t.mask||Fe[r].mask,t.isMounted=!1,t.elementType!==Fe.radio.name&&t.elementType!==Fe.checkbox.name||(t.elementName="".concat(t.elementName,":").concat(btoa(t.value))),t.elementName="".concat(U,":").concat(t.elementType,":").concat(btoa(v())),t.label=e.label,t.skyflowID=e.skyflowID,n.push(t)}))})),r.elementName=t?n[0].elementName:"".concat(U,":group:").concat(btoa(r.name)),t&&!E(nt(c),Io)[n[0].elementName]&&E(nt(c),Do).call(nt(c),n[0].name))throw new zt(mt.UNIQUE_ELEMENT_NAME,["".concat(n[0].name)],!0);var o=E(nt(c),Io)[r.elementName];if(o)t?o.updateElementGroup(n[0]):o.updateElementGroup(r);else{var i=v();o=new Kr(i,r,E(nt(c),yo),{containerId:E(nt(c),vo),isMounted:E(nt(c),Lo),type:c.type,shadowDom:c.isShadowDom},t,E(nt(c),Ro),E(nt(c),So),E(nt(c),Oo),E(nt(c),No)),E(nt(c),Io)[r.elementName]=o,E(nt(c),go)[i]=o}return t||n.forEach((function(e){var t=e.elementName;E(nt(c),Io)[t]?E(nt(c),Io)[t].updateElementGroup(e):E(nt(c),Io)[t]=c.create(e.elementType,e)})),o}}),fo(nt(c),wo,{writable:!0,value:function(e){Object.keys(E(nt(c),Io)).forEach((function(t){t===e&&delete E(nt(c),Io)[t]}))}}),fo(nt(c),Ro,{writable:!0,value:function(e){e.forEach((function(e){E(nt(c),wo).call(nt(c),e)}))}}),fo(nt(c),So,{writable:!0,value:function(e){e.forEach((function(e){E(nt(c),Io)[e.elementName]&&E(nt(c),Io)[e.elementName].updateElementGroup(e)}))}}),fo(nt(c),Do,{writable:!0,value:function(e){for(var t=Object.keys(E(nt(c),Io)),n=0;n<t.length;n+=1)if(atob(t[n].split(":")[2])===e)return!0;return!1}}),fo(nt(c),Mo,{writable:!0,value:function(e,t,n){if(e.data.type===fe+E(nt(c),yo).uuid){var r=e.data.data;!r||null!=r&&r.error?(Wt("".concat(JSON.stringify(null==r?void 0:r.error)),Et.ERROR,E(nt(c),Oo).logLevel),n(null==r?void 0:r.error)):r.records?(Wt(Kt(R.infoLogs.COLLECT_SUBMIT_SUCCESS,mo),Et.LOG,E(nt(c),Oo).logLevel),t(r)):(Wt("".concat(JSON.stringify({error:r})),Et.ERROR,E(nt(c),Oo).logLevel),n(r))}}}),l(nt(c),"collect",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{tokens:!0};return f(nt(c),ho,E(nt(c),yo).skyflowContainer.isControllerFrameReady),E(nt(c),ho)?new Promise((function(t,n){try{if(wt(E(nt(c),yo).clientJSON.config),0===Object.keys(E(nt(c),Io)).length)throw new zt(mt.NO_ELEMENTS_IN_COLLECT,[],!0);E(nt(c),Co).call(nt(c));var r,o=Object.values(E(nt(c),Io)),i=Object.keys(E(nt(c),Io)).map((function(e){return{frameId:e,elementId:e}}));if(o.forEach((function(e){if(!e.isMounted())throw new zt(mt.ELEMENTS_NOT_MOUNTED,[],!0);e.isValidElement()})),Object.prototype.hasOwnProperty.call(e,"tokens")&&!Dt(e.tokens))throw new zt(mt.INVALID_TOKENS_IN_COLLECT,[],!0);if(null!=e&&e.additionalFields&&Ot(e.additionalFields),null!=e&&e.upsert&&St(null==e?void 0:e.upsert),c.isShadowDom)null===(r=E(nt(c),bo).call(nt(c)))||void 0===r||r.then((function(r){_o(nt(c),xo,Fo).call(nt(c),e,i,r);c.eventWrapper.on(fe+E(nt(c),yo).uuid,(function(){}),!0,window,(function(e){E(nt(c),Mo).call(nt(c),e,t,n)}))})).catch((function(e){Wt("".concat(JSON.stringify(e)),Et.ERROR,E(nt(c),Oo).logLevel),n(e)}));else m().emit(pe+E(nt(c),yo).uuid,po(po({type:ne},e),{},{tokens:void 0===(null==e?void 0:e.tokens)||e.tokens,elementIds:i,containerId:E(nt(c),vo)}),(function(e){!e||null!=e&&e.error?(Wt("".concat(JSON.stringify(null==e?void 0:e.error)),Et.ERROR,E(nt(c),Oo).logLevel),n(null==e?void 0:e.error)):(Wt(Kt(R.infoLogs.COLLECT_SUBMIT_SUCCESS,mo),Et.LOG,E(nt(c),Oo).logLevel),t(e))}));Wt(Kt(R.infoLogs.EMIT_EVENT,mo,_e),Et.LOG,E(nt(c),Oo).logLevel)}catch(e){Wt("".concat(e.message),Et.ERROR,E(nt(c),Oo).logLevel),n(e)}})):new Promise((function(t,n){try{if(wt(E(nt(c),yo).clientJSON.config),0===Object.keys(E(nt(c),Io)).length)throw new zt(mt.NO_ELEMENTS_IN_COLLECT,[],!0);E(nt(c),Co).call(nt(c));var r,o=Object.values(E(nt(c),Io)),i=Object.keys(E(nt(c),Io)).map((function(e){return{frameId:e,elementId:e}}));if(o.forEach((function(e){if(!e.isMounted())throw new zt(mt.ELEMENTS_NOT_MOUNTED,[],!0);e.isValidElement()})),Object.prototype.hasOwnProperty.call(e,"tokens")&&!Dt(e.tokens))throw new zt(mt.INVALID_TOKENS_IN_COLLECT,[],!0);if(null!=e&&e.additionalFields&&Ot(e.additionalFields),null!=e&&e.upsert&&St(null==e?void 0:e.upsert),c.isShadowDom)null===(r=E(nt(c),bo).call(nt(c)))||void 0===r||r.then((function(r){_o(nt(c),xo,Fo).call(nt(c),e,i,r);c.eventWrapper.on(fe+E(nt(c),yo).uuid,(function(){}),!0,window,(function(e){E(nt(c),Mo).call(nt(c),e,t,n)}))})).catch((function(e){Wt("".concat(JSON.stringify(e)),Et.ERROR,E(nt(c),Oo).logLevel),n(e)}));else m().target(Mt.IFRAME_SECURE_ORIGIN).on(Se+E(nt(c),vo),(function(){m().emit(pe+E(nt(c),yo).uuid,po(po({type:ne},e),{},{tokens:void 0===(null==e?void 0:e.tokens)||e.tokens,elementIds:i,containerId:E(nt(c),vo)}),(function(e){!e||null!=e&&e.error?(Wt("".concat(JSON.stringify(null==e?void 0:e.error)),Et.ERROR,E(nt(c),Oo).logLevel),n(null==e?void 0:e.error)):(Wt(Kt(R.infoLogs.COLLECT_SUBMIT_SUCCESS,mo),Et.LOG,E(nt(c),Oo).logLevel),t(e))}))}))}catch(e){Wt("".concat(e.message),Et.ERROR,E(nt(c),Oo).logLevel),n(e)}}))})),l(nt(c),"uploadFiles",(function(e){return f(nt(c),ho,E(nt(c),yo).skyflowContainer.isControllerFrameReady),E(nt(c),ho)?new Promise((function(t,n){try{if(wt(E(nt(c),yo).clientJSON.config),0===Object.keys(E(nt(c),Io)).length)throw new zt(mt.NO_ELEMENTS_IN_COLLECT,[],!0);E(nt(c),Co).call(nt(c));var r=Object.values(E(nt(c),Io)),o=Object.keys(E(nt(c),Io));r.forEach((function(e){if(!e.isMounted())throw new zt(mt.ELEMENTS_NOT_MOUNTED,[],!0);e.isValidElement()})),m().emit(pe+E(nt(c),yo).uuid,po(po({type:re},e),{},{elementIds:o,containerId:E(nt(c),vo)}),(function(e){!e||null!=e&&e.error?(Wt("".concat(JSON.stringify(null==e?void 0:e.error)),Et.ERROR,E(nt(c),Oo).logLevel),n(null==e?void 0:e.error)):(Wt(Kt(R.infoLogs.COLLECT_SUBMIT_SUCCESS,mo),Et.LOG,E(nt(c),Oo).logLevel),t(e))})),Wt(Kt(R.infoLogs.EMIT_EVENT,mo,be),Et.LOG,E(nt(c),Oo).logLevel)}catch(e){Wt("".concat(e.message),Et.ERROR,E(nt(c),Oo).logLevel),n(e)}})):new Promise((function(t,n){m().target(Mt.IFRAME_SECURE_ORIGIN).on(Se+E(nt(c),vo),(function(){try{if(wt(E(nt(c),yo).clientJSON.config),0===Object.keys(E(nt(c),Io)).length)throw new zt(mt.NO_ELEMENTS_IN_COLLECT,[],!0);E(nt(c),Co).call(nt(c));var r=Object.values(E(nt(c),Io)),o=Object.keys(E(nt(c),Io));r.forEach((function(e){if(!e.isMounted())throw new zt(mt.ELEMENTS_NOT_MOUNTED,[],!0);e.isValidElement()})),m().emit(pe+E(nt(c),yo).uuid,po(po({type:re},e),{},{elementIds:o,containerId:E(nt(c),vo)}),(function(e){!e||null!=e&&e.error?(Wt("".concat(JSON.stringify(null==e?void 0:e.error)),Et.ERROR,E(nt(c),Oo).logLevel),n(null==e?void 0:e.error)):(Wt(Kt(R.infoLogs.COLLECT_SUBMIT_SUCCESS,mo),Et.LOG,E(nt(c),Oo).logLevel),t(e))})),Wt(Kt(R.infoLogs.EMIT_EVENT,mo,be),Et.LOG,E(nt(c),Oo).logLevel)}catch(e){Wt("".concat(e.message),Et.ERROR,E(nt(c),Oo).logLevel),n(e)}}))}))})),fo(nt(c),Co,{writable:!0,value:function(){try{if(E(nt(c),Po).call(nt(c)))return;var e=E(nt(c),ko).call(nt(c));if(!e.length)return;E(nt(c),Vo).call(nt(c),e)}catch(e){Wt("".concat(e),Et.LOG,E(nt(c),Oo).logLevel)}}}),fo(nt(c),Po,{writable:!0,value:function(){return 0===Object.keys(E(nt(c),Io)).length}}),fo(nt(c),ko,{writable:!0,value:function(){var e,t=null===(e=document)||void 0===e?void 0:e.body;if(!t)return[];var n=t.getElementsByTagName("iframe");return null!=n&&n.length?Array.from(n).map((function(e){return e.id})):[]}}),fo(nt(c),Vo,{writable:!0,value:function(e){Object.entries(E(nt(c),Io)).forEach((function(t){var n=vt(t,2),r=n[0],o=n[1];E(nt(c),jo).call(nt(c),o,e)&&delete E(nt(c),Io)[r]}))}}),fo(nt(c),jo,{writable:!0,value:function(e,t){return e.isMounted()&&!t.includes(e.iframeName())}}),c.eventWrapper=new gn(d),f(nt(c),ho,r.skyflowContainer.isControllerFrameReady),f(nt(c),To,r.skyflowContainer.skyflowFrameControllerName),f(nt(c),vo,v()),f(nt(c),yo,po(po({},r),{},{clientJSON:po(po({},r.clientJSON),{},{config:po(po({},r.clientJSON.config),{},{options:po(po({},null===(a=r.clientJSON.config)||void 0===a?void 0:a.options),e)})})})),c.isShadowDom=d,f(nt(c),bo,r.getSkyflowBearerToken),f(nt(c),go,o),f(nt(c),Oo,i),f(nt(c),No,new en);var _=E(nt(c),yo).clientDomain||"",I=an({name:"".concat(j,":").concat(E(nt(c),vo),":").concat(E(nt(c),Oo).logLevel,":").concat(btoa(_)),referrer:_});return on(I,{src:cn()}),ln(I,po({},Be)),Wt(Kt(R.infoLogs.CREATE_COLLECT_CONTAINER,mo),Et.LOG,E(nt(c),Oo).logLevel),f(nt(c),Lo,!0),c}return u(n)}(sn);function Fo(e,t,n){var r={type:ue+E(this,yo).uuid,data:po(po({type:ne},e),{},{tokens:void 0===(null==e?void 0:e.tokens)||e.tokens,elementIds:t,containerId:E(this,vo)}),skyflowConfig:{client:{config:{vaultID:E(this,yo).clientJSON.config.vaultID||"",vaultURL:E(this,yo).clientJSON.config.vaultURL||""},bearerToken:n},context:E(this,Oo)}};this.eventWrapper.emit(de+E(this,yo).uuid,r,void 0,!0,E(this,To),void 0,!1)}const Go=Uo;function Yo(e){this.message=e}Yo.prototype=new Error,Yo.prototype.name="InvalidCharacterError";var Bo="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new Yo("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,r,o=0,i=0,a="";r=t.charAt(i++);~r&&(n=o%4?64*n+r:r,o++%4)?a+=String.fromCharCode(255&n>>(-2*o&6)):0)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);return a};function Xo(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(Bo(e).replace(/(.)/g,(function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(e){return Bo(t)}}function Wo(e){this.message=e}Wo.prototype=new Error,Wo.prototype.name="InvalidTokenError";const Ko=function(e,t){if("string"!=typeof e)throw new Wo("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(Xo(e.split(".")[n]))}catch(e){throw new Wo("Invalid token specified: "+e.message)}};const qo=function(e){try{if(!e)return!1;if(i=e,"[object String]"!==Object.prototype.toString.call(i))return!1;var t=!1,n=Ko(e),r=(new Date).getTime()/1e3,o=n.exp;return o&&r>o&&(t=!0),!t}catch(e){return!1}var i};function zo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ho(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zo(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Jo(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}var Zo="SkyflowContainer",$o=new WeakMap,Qo=new WeakMap,ei=new WeakMap,ti=function(){function e(t,n){var r,o,i=this;s(this,e),Jo(this,$o,{writable:!0,value:void 0}),Jo(this,Qo,{writable:!0,value:void 0}),l(this,"isControllerFrameReady",!1),Jo(this,ei,{writable:!0,value:void 0}),l(this,"eventWrapper",void 0),l(this,"skyflowFrameControllerName",void 0),f(this,Qo,t),f(this,$o,(null===(r=E(this,Qo).toJSON())||void 0===r||null===(r=r.metaData)||void 0===r?void 0:r.uuid)||""),f(this,ei,n);var a=window.location.origin||"";this.eventWrapper=new gn;var c=an({name:"".concat("skyflow_controller",":").concat(E(this,$o),":").concat(btoa(a),":").concat(!(null===(o=E(this,Qo).toJSON())||void 0===o||null===(o=o.config)||void 0===o||null===(o=o.options)||void 0===o||!o.trackingKey)),referrer:a});on(c,{src:cn()}),this.skyflowFrameControllerName=c.id,ln(c,Ho({},Be)),document.body.append(c),m().target(Mt.IFRAME_SECURE_ORIGIN).on(Oe+E(this,$o),(function(e,t){Wt(Kt(R.infoLogs.CAPTURE_PUREJS_FRAME,Zo),Et.LOG,E(i,ei).logLevel),t({client:E(i,Qo),context:n}),i.isControllerFrameReady=!0})),Wt(Kt(R.infoLogs.PUREJS_CONTROLLER_INITIALIZED,Zo),Et.LOG,E(this,ei).logLevel);this.eventWrapper.on(se+E(this,$o),(function(){}),!0,window,(function(){i.isControllerFrameReady=!0}))}return u(e,[{key:"detokenize",value:function(e){var t=this;return this.isControllerFrameReady?new Promise((function(n,r){try{wt(E(t,Qo).config),Wt(Kt(R.infoLogs.VALIDATE_DETOKENIZE_INPUT,Zo),Et.LOG,E(t,ei).logLevel),gt(e),m().emit(ye+E(t,$o),{type:$,records:e.records},(function(e){e.error?r(e.error):n(e)})),Wt(Kt(R.infoLogs.EMIT_PURE_JS_REQUEST,Zo,$),Et.LOG,E(t,ei).logLevel)}catch(e){Wt(e.message,Et.ERROR,E(t,ei).logLevel),r(e)}})):new Promise((function(n,r){try{wt(E(t,Qo).config),Wt(Kt(R.infoLogs.VALIDATE_DETOKENIZE_INPUT,Zo),Et.LOG,E(t,ei).logLevel),gt(e),m().target(Mt.IFRAME_SECURE_ORIGIN).on(Oe+E(t,$o),(function(){m().emit(ye+E(t,$o),{type:$,records:e.records},(function(e){e.error?r(e.error):n(e)}))})),Wt(Kt(R.infoLogs.EMIT_PURE_JS_REQUEST,Zo,$),Et.LOG,E(t,ei).logLevel)}catch(e){Wt(e.message,Et.ERROR,E(t,ei).logLevel),r(e)}}))}},{key:"insert",value:function(e,t){var n=this;return this.isControllerFrameReady?new Promise((function(r,o){wt(E(n,Qo).config);try{var i,a;if(Wt(Kt(R.infoLogs.VALIDATE_RECORDS,Zo),Et.LOG,E(n,ei).logLevel),t)t=Ho(Ho({},t),{},{tokens:void 0===(null===(a=t)||void 0===a?void 0:a.tokens)||t.tokens});else t={tokens:!0};null!==(i=t)&&void 0!==i&&i.upsert&&St(t.upsert),yt(e,t),m().emit(ye+E(n,$o),{type:Z,records:e,options:t},(function(e){e.error?(Wt("".concat(JSON.stringify(e.error)),Et.ERROR,E(n,ei).logLevel),o(e.error)):r(e)})),Wt(Kt(R.infoLogs.EMIT_PURE_JS_REQUEST,Zo,Z),Et.LOG,E(n,ei).logLevel)}catch(e){Wt(e.message,Et.ERROR,E(n,ei).logLevel),o(e)}})):new Promise((function(r,o){try{var i,a;if(wt(E(n,Qo).config),Wt(Kt(R.infoLogs.VALIDATE_RECORDS,Zo),Et.LOG,E(n,ei).logLevel),t)t=Ho(Ho({},t),{},{tokens:void 0===(null===(a=t)||void 0===a?void 0:a.tokens)||t.tokens});else t={tokens:!0};null!==(i=t)&&void 0!==i&&i.upsert&&St(t.upsert),yt(e,t),m().target(Mt.IFRAME_SECURE_ORIGIN).on(Oe+E(n,$o),(function(){m().emit(ye+E(n,$o),{type:Z,records:e,options:t},(function(e){e.error?(Wt("".concat(JSON.stringify(e.error)),Et.ERROR,E(n,ei).logLevel),o(e.error)):r(e)}))})),Wt(Kt(R.infoLogs.EMIT_PURE_JS_REQUEST,Zo,Z),Et.LOG,E(n,ei).logLevel)}catch(e){Wt(e.message,Et.ERROR,E(n,ei).logLevel),o(e)}}))}},{key:"getById",value:function(e){var t=this;return this.isControllerFrameReady?new Promise((function(n,r){wt(E(t,Qo).config);try{Wt(Kt(R.infoLogs.VALIDATE_GET_BY_ID_INPUT,Zo),Et.LOG,E(t,ei).logLevel),Lt(e),m().emit(ye+E(t,$o),{type:Q,records:e.records},(function(e){e.error?r(e.error):n(e)})),Wt(Kt(R.infoLogs.EMIT_PURE_JS_REQUEST,Zo,Q),Et.LOG,E(t,ei).logLevel)}catch(e){Wt(e.message,Et.ERROR,E(t,ei).logLevel),r(e)}})):new Promise((function(n,r){try{wt(E(t,Qo).config),Wt(Kt(R.infoLogs.VALIDATE_GET_BY_ID_INPUT,Zo),Et.LOG,E(t,ei).logLevel),Lt(e),m().target(Mt.IFRAME_SECURE_ORIGIN).on(Oe+E(t,$o),(function(){m().emit(ye+E(t,$o),{type:Q,records:e.records},(function(e){e.error?r(e.error):n(e)}))})),Wt(Kt(R.infoLogs.EMIT_PURE_JS_REQUEST,Zo,Q),Et.LOG,E(t,ei).logLevel)}catch(e){Wt(e.message,Et.ERROR,E(t,ei).logLevel),r(e)}}))}},{key:"get",value:function(e,t){var n=this;return this.isControllerFrameReady?new Promise((function(r,o){wt(E(n,Qo).config);try{Wt(Kt(R.infoLogs.VALIDATE_GET_INPUT,Zo),Et.LOG,E(n,ei).logLevel),Nt(e,t),m().emit(ye+E(n,$o),{type:ee,records:e.records,options:t},(function(e){e.error?o(e.error):r(e)})),Wt(Kt(R.infoLogs.EMIT_PURE_JS_REQUEST,Zo,ee),Et.LOG,E(n,ei).logLevel)}catch(e){Wt(e.message,Et.ERROR,E(n,ei).logLevel),o(e)}})):new Promise((function(r,o){try{wt(E(n,Qo).config),Wt(Kt(R.infoLogs.VALIDATE_GET_INPUT,Zo),Et.LOG,E(n,ei).logLevel),Nt(e,t),m().target(Mt.IFRAME_SECURE_ORIGIN).on(Oe+E(n,$o),(function(){m().emit(ye+E(n,$o),{type:ee,records:e.records,options:t},(function(e){e.error?o(e.error):r(e)}))})),Wt(Kt(R.infoLogs.EMIT_PURE_JS_REQUEST,Zo,ee),Et.LOG,E(n,ei).logLevel)}catch(e){Wt(e.message,Et.ERROR,E(n,ei).logLevel),o(e)}}))}},{key:"delete",value:function(e,t){var n=this;return this.isControllerFrameReady?new Promise((function(r,o){wt(E(n,Qo).config);try{Wt(Kt(R.infoLogs.VALIDATE_DELETE_INPUT,Zo),Et.LOG,E(n,ei).logLevel),ht(e),m().emit(ye+E(n,$o),{type:te,records:e,options:t},(function(e){e.error?(Wt("".concat(JSON.stringify(e.error)),Et.ERROR,E(n,ei).logLevel),o(e.error)):r(e)})),Wt(Kt(R.infoLogs.EMIT_PURE_JS_REQUEST,Zo,te),Et.LOG,E(n,ei).logLevel)}catch(e){Wt(e.message,Et.ERROR,E(n,ei).logLevel),o(e)}})):new Promise((function(r,o){try{wt(E(n,Qo).config),Wt(Kt(R.infoLogs.VALIDATE_RECORDS,Zo),Et.LOG,E(n,ei).logLevel),ht(e),m().target(Mt.IFRAME_SECURE_ORIGIN).on(Oe+E(n,$o),(function(){m().emit(ye+E(n,$o),{type:te,records:e,options:t},(function(e){e.error?(Wt("".concat(JSON.stringify(e.error)),Et.ERROR,E(n,ei).logLevel),o(e.error)):r(e)}))})),Wt(Kt(R.infoLogs.EMIT_PURE_JS_REQUEST,Zo,te),Et.LOG,E(n,ei).logLevel)}catch(e){Wt(e.message,Et.ERROR,E(n,ei).logLevel),o(e)}}))}}]),e}();const ni=ti;var ri=n(6119),oi=n.n(ri);function ii(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ai(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ii(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ii(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ci(e){var t=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(e){return!1}}();return function(){var n,r=at(e);if(t){var o=at(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return it(this,n)}}function li(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}var si="CollectContainer",pi=new WeakMap,ui=new WeakMap,di=new WeakMap,fi=new WeakMap,Ei=new WeakMap,_i=new WeakMap,mi=new WeakMap,vi=new WeakMap,Ii=new WeakMap,yi=new WeakMap,Oi=new WeakMap,gi=new WeakMap,Ni=new WeakMap,Li=new WeakMap,hi=new WeakMap,Ti=new WeakMap,bi=new WeakMap,Ai=new WeakMap,wi=new WeakMap,Ri=new WeakMap,Si=new WeakMap,Di=new WeakMap;const xi=function(e){ot(n,e);var t=ci(n);function n(e,r,o,i){var a,c;s(this,n),li(nt(c=t.call(this)),pi,{writable:!0,value:void 0}),li(nt(c),ui,{writable:!0,value:{}}),li(nt(c),di,{writable:!0,value:void 0}),li(nt(c),fi,{writable:!0,value:{rows:[]}}),li(nt(c),Ei,{writable:!0,value:[]}),li(nt(c),_i,{writable:!0,value:void 0}),li(nt(c),mi,{writable:!0,value:void 0}),li(nt(c),vi,{writable:!0,value:void 0}),li(nt(c),Ii,{writable:!0,value:!1}),li(nt(c),yi,{writable:!0,value:void 0}),li(nt(c),Oi,{writable:!0,value:void 0}),l(nt(c),"type",Xi.COMPOSABLE),li(nt(c),gi,{writable:!0,value:!1}),li(nt(c),Ni,{writable:!0,value:{}}),li(nt(c),Li,{writable:!0,value:""}),li(nt(c),hi,{writable:!0,value:!1}),li(nt(c),Ti,{writable:!0,value:void 0}),l(nt(c),"create",(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{required:!1};Rt(e,E(nt(c),_i).logLevel);var n=co(e.validations),r=lo(e.type,t,E(nt(c),_i).logLevel),o="".concat(U,":").concat(e.type,":").concat(btoa(v()));E(nt(c),Ei).push(ai(ai(ai({elementType:e.type,name:e.column},e),r),{},{validations:n,elementName:o}));var i="".concat(U,":group:").concat(btoa(E(nt(c),Ni)),":").concat(E(nt(c),pi),":").concat(E(nt(c),_i).logLevel,":").concat(btoa(E(nt(c),Li)));return new Qr(o,E(nt(c),vi),i)})),li(nt(c),bi,{writable:!0,value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=[];if(f(nt(c),Ni,Er(e)),E(nt(c),Ni).rows.forEach((function(e){e.elements.forEach((function(e){var t=e,r=t.elementType;oo(r,t),t.sensitive=t.sensitive||Fe[r].sensitive,t.replacePattern=t.replacePattern||Fe[r].replacePattern,t.mask=t.mask||Fe[r].mask,t.isMounted=!1,t.label=e.label,t.skyflowID=e.skyflowID,n.push(t)}))})),E(nt(c),Ni).elementName=t?n[0].elementName:"".concat(U,":group:").concat(btoa(E(nt(c),Ni))),t&&!E(nt(c),ui)[n[0].elementName]&&E(nt(c),Si).call(nt(c),n[0].name))throw new zt(mt.UNIQUE_ELEMENT_NAME,["".concat(n[0].name)],!0);var r=E(nt(c),ui)[E(nt(c),Ni).elementName];if(r)t?r.update(n[0]):r.update(E(nt(c),Ni));else{var o=v();r=new Kr(o,E(nt(c),Ni),E(nt(c),di),{containerId:E(nt(c),pi),isMounted:E(nt(c),gi),type:c.type},!0,E(nt(c),wi),E(nt(c),Ri),E(nt(c),_i),E(nt(c),vi)),E(nt(c),ui)[E(nt(c),Ni).elementName]=r,E(nt(c),mi)[o]=r}return r}}),li(nt(c),Ai,{writable:!0,value:function(e){Object.keys(E(nt(c),ui)).forEach((function(t){t===e&&delete E(nt(c),ui)[t]}))}}),li(nt(c),wi,{writable:!0,value:function(e){e.forEach((function(e){E(nt(c),Ai).call(nt(c),e)}))}}),li(nt(c),Ri,{writable:!0,value:function(e){e.forEach((function(e){E(nt(c),ui)[e.elementName]&&E(nt(c),ui)[e.elementName].update(e)}))}}),li(nt(c),Si,{writable:!0,value:function(e){for(var t=Object.keys(E(nt(c),ui)),n=0;n<t.length;n+=1)if(atob(t[n].split(":")[2])===e)return!0;return!1}}),l(nt(c),"on",(function(e,t){if(!Object.values(ae).includes(e))throw new zt(mt.INVALID_EVENT_LISTENER,[],!0);if(!t)throw new zt(mt.MISSING_HANDLER_IN_EVENT_LISTENER,[],!0);if("function"!=typeof t)throw new zt(mt.INVALID_HANDLER_IN_EVENT_LISTENER,[],!0);E(nt(c),vi).on(ae.SUBMIT,(function(){t()}))})),l(nt(c),"mount",(function(e){if(!e)throw new zt(mt.EMPTY_ELEMENT_IN_MOUNT,["CollectElement"],!0);var t=E(nt(c),yi).layout;if(oi()(t)!==E(nt(c),Ei).length)throw new zt(mt.MISMATCH_ELEMENT_COUNT_LAYOUT_SUM,[],!0);var n=0;t.forEach((function(e,t){E(nt(c),fi).rows=[].concat(tt(E(nt(c),fi).rows),[{elements:[]}]);for(var r=0;r<e;r++)E(nt(c),fi).rows[t].elements.push(E(nt(c),Ei)[n]),n++})),E(nt(c),yi).styles&&(E(nt(c),fi).styles=ai({},E(nt(c),yi).styles)),E(nt(c),yi).errorTextStyles&&(E(nt(c),fi).errorTextStyles=ai({},E(nt(c),yi).errorTextStyles)),E(nt(c),gi)&&(f(nt(c),Oi,E(nt(c),bi).call(nt(c),E(nt(c),fi),!1)),E(nt(c),Oi).mount(e),f(nt(c),Ii,!0))})),l(nt(c),"unmount",(function(){E(nt(c),Oi).unmount()})),l(nt(c),"collect",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{tokens:!0};f(nt(c),hi,E(nt(c),di).skyflowContainer.isControllerFrameReady);var t="";return E(nt(c),hi)?new Promise((function(n,r){var o;null===(o=E(nt(c),Ti).call(nt(c)))||void 0===o||o.then((function(o){t=o;try{if(wt(E(nt(c),di).clientJSON.config),!E(nt(c),Ei)||0===E(nt(c),Ei).length)throw new zt(mt.NO_ELEMENTS_IN_COMPOSABLE,[],!0);if(!E(nt(c),Ii))throw new zt(mt.COMPOSABLE_CONTAINER_NOT_MOUNTED,[],!0);ao(E(nt(c),Ni)).forEach((function(e){if(null==e||!e.isMounted)throw new zt(mt.ELEMENTS_NOT_MOUNTED,[],!0)}));var i=[];if(Object.values(E(nt(c),ui)).forEach((function(e){e.isValidElement()})),e&&e.tokens&&"boolean"!=typeof e.tokens)throw new zt(mt.INVALID_TOKENS_IN_COLLECT,[],!0);null!=e&&e.additionalFields&&Ot(e.additionalFields),null!=e&&e.upsert&&St(null==e?void 0:e.upsert),E(nt(c),Ei).forEach((function(e){i.push({frameId:E(nt(c),Ni).elementName,elementId:e.elementName})})),m().emit(pe+E(nt(c),di).uuid,ai(ai({type:ne},e),{},{tokens:void 0===(null==e?void 0:e.tokens)||e.tokens,elementIds:i,containerId:E(nt(c),pi),token:t}),(function(e){!e||null!=e&&e.error?(Wt("".concat(JSON.stringify(null==e?void 0:e.error)),Et.ERROR,E(nt(c),_i).logLevel),r(null==e?void 0:e.error)):(Wt(Kt(R.infoLogs.COLLECT_SUBMIT_SUCCESS,si),Et.LOG,E(nt(c),_i).logLevel),n(e))})),Wt(Kt(R.infoLogs.EMIT_EVENT,si,_e),Et.LOG,E(nt(c),_i).logLevel)}catch(e){Wt("".concat(e.message),Et.ERROR,E(nt(c),_i).logLevel),r(e)}})).catch((function(e){Wt("".concat(JSON.stringify(e)),Et.ERROR,E(nt(c),_i).logLevel),r(e)}))})):new Promise((function(n,r){var o;null===(o=E(nt(c),Ti).call(nt(c)))||void 0===o||o.then((function(o){t=o,Wt(Kt(R.infoLogs.BEARER_TOKEN_RESOLVED,si),Et.LOG,E(nt(c),_i).logLevel);try{if(wt(E(nt(c),di).clientJSON.config),!E(nt(c),Ei)||0===E(nt(c),Ei).length)throw new zt(mt.NO_ELEMENTS_IN_COMPOSABLE,[],!0);if(!E(nt(c),Ii))throw new zt(mt.COMPOSABLE_CONTAINER_NOT_MOUNTED,[],!0);ao(E(nt(c),Ni)).forEach((function(e){if(null==e||!e.isMounted)throw new zt(mt.ELEMENTS_NOT_MOUNTED,[],!0)}));var i=[];if(Object.values(E(nt(c),ui)).forEach((function(e){e.isValidElement()})),e&&e.tokens&&"boolean"!=typeof e.tokens)throw new zt(mt.INVALID_TOKENS_IN_COLLECT,[],!0);null!=e&&e.additionalFields&&Ot(e.additionalFields),null!=e&&e.upsert&&St(null==e?void 0:e.upsert),E(nt(c),Ei).forEach((function(e){i.push({frameId:E(nt(c),Ni).elementName,elementId:e.elementName})})),m().target(Mt.IFRAME_SECURE_ORIGIN).on(Se+E(nt(c),pi),(function(){m().emit(pe+E(nt(c),di).uuid,ai(ai({type:ne},e),{},{tokens:void 0===(null==e?void 0:e.tokens)||e.tokens,elementIds:i,containerId:E(nt(c),pi),token:t}),(function(e){!e||null!=e&&e.error?(Wt("".concat(JSON.stringify(null==e?void 0:e.error)),Et.ERROR,E(nt(c),_i).logLevel),r(null==e?void 0:e.error)):(Wt(Kt(R.infoLogs.COLLECT_SUBMIT_SUCCESS,si),Et.LOG,E(nt(c),_i).logLevel),n(e))}))})),Wt(Kt(R.infoLogs.EMIT_EVENT,si,_e),Et.LOG,E(nt(c),_i).logLevel)}catch(e){Wt("".concat(e.message),Et.ERROR,E(nt(c),_i).logLevel),r(e)}})).catch((function(e){Wt("".concat(JSON.stringify(e)),Et.ERROR,E(nt(c),_i).logLevel),r(e)}))}))})),li(nt(c),Di,{writable:!0,value:function(){E(nt(c),vi).on(Ae,(function(e){var t,n=E(nt(c),Ei).map((function(n,r){return n.elementName===e.elementName?(t=r,ai({elementName:n.elementName},e.elementOptions)):n}));E(nt(c),Oi)&&E(nt(c),Oi).updateElement(ai({},n[t]))}))}}),f(nt(c),pi,v()),f(nt(c),di,ai(ai({},r),{},{clientJSON:ai(ai({},r.clientJSON),{},{config:ai(ai({},r.clientJSON.config),{},{options:ai(ai({},null===(a=r.clientJSON.config)||void 0===a?void 0:a.options),e)})})})),f(nt(c),hi,r.skyflowContainer.isControllerFrameReady),f(nt(c),Ti,r.getSkyflowBearerToken),f(nt(c),mi,o),f(nt(c),_i,i),f(nt(c),yi,e),f(nt(c),vi,new en),f(nt(c),Li,E(nt(c),di).clientDomain||"");var p=an({name:"".concat(j,":").concat(E(nt(c),pi),":").concat(E(nt(c),_i).logLevel,":").concat(btoa(E(nt(c),Li))),referrer:E(nt(c),Li)});return on(p,{src:cn()}),ln(p,ai({},Be)),Wt(Kt(R.infoLogs.CREATE_COLLECT_CONTAINER,si),Et.LOG,E(nt(c),_i).logLevel),f(nt(c),gi,!0),E(nt(c),Di).call(nt(c)),c}return u(n)}(sn);var Mi;function Ci(e,t,n){return function(e,t){if(e!==t)throw new TypeError("Private static access of wrong provenance")}(e,t),function(e,t){if(void 0===e)throw new TypeError("attempted to "+t+" private static field before its declaration")}(n,"get"),function(e,t){if(t.get)return t.get.call(e);return t.value}(e,n)}var Pi=function(){function e(){s(this,e)}return u(e,null,[{key:"getBrowserDetails",value:function(){return{browser_accept_header:"application/json",browser_color_depth:String(window.screen.colorDepth),browser_screen_height:window.screen.height,browser_screen_width:window.screen.width,browser_user_agent:window.navigator.userAgent,browser_java_enabled:window.navigator.javaEnabled(),browser_language:window.navigator.language,browser_tz:(new Date).getTimezoneOffset(),browser_javascript_enabled:!0,accept_language:tt(navigator.languages)}}}]),e}();Mi=Pi,l(Pi,"showChallenge",(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"05",r=arguments.length>3?arguments[3]:void 0;if(!e)throw new zt(mt.INVALID_FIELD_SHOW_3DS_CHALLEGNGE,["acsUrl"],!0);if(!t)throw new zt(mt.INVALID_FIELD_SHOW_3DS_CHALLEGNGE,["cReq"],!0);if(r&&!(r instanceof HTMLElement))throw new zt(mt.INVALID_FIELD_SHOW_3DS_CHALLEGNGE,["container"],!0);var o=Ci(Mi,Mi,ki).call(Mi,n),i=Ci(Mi,Mi,Vi).call(Mi,r||document.body,"threeDSCReqIFrame","threeDSCReqIframe",o[0],o[1]);return i.sandbox.add("allow-pointer-lock"),Ci(Mi,Mi,ji).call(Mi,e,t,i),i}));var ki={writable:!0,value:function(){switch(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"05"){case"01":return["250px","400px"];case"02":return["390px","400px"];case"03":return["500px","600px"];case"04":return["600px","400px"];case"05":return["100%","100%"];default:throw new zt(mt.INVALID_FIELD_SHOW_3DS_CHALLEGNGE,["challengeWindowSize"],!0)}}},Vi={writable:!0,value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"0",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"0",i=document.createElement("iframe");return i.width=r,i.height=o,i.name=t,i.setAttribute("id",n),i.setAttribute("frameborder","0"),i.setAttribute("border","0"),i.setAttribute("style","overflow:hidden; position:absolute"),i.setAttribute("allowfullscreen","false"),i.setAttribute("allowpaymentrequest","false"),i.setAttribute("allow","payment; publickey-credentials-get"),i.sandbox.add("allow-forms","allow-scripts","allow-same-origin"),e.appendChild(i),i}},ji={writable:!0,value:function(e,t,n){var r=document.createElement("html"),o=document.createElement("body"),i=Ci(Mi,Mi,Ui).call(Mi,"challengeRequestForm",e,n.name,"creq",encodeURIComponent(t));return o.appendChild(i),r.appendChild(o),n.appendChild(r),i.submit(),n}},Ui={writable:!0,value:function(e,t,n,r,o){var i=document.createElement("form");i.name=e,i.action=t,i.method="POST",i.target=n,i.enctype="application/x-www-form-urlencoded";var a=document.createElement("input");return a.name=r,a.value=o,i.appendChild(a),i.style.display="none",i}};const Fi=Pi;function Gi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gi(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Bi(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}var Xi=function(e){return e.COLLECT="COLLECT",e.REVEAL="REVEAL",e.COMPOSABLE="COMPOSABLE",e}({}),Wi="Skyflow",Ki=new WeakMap,qi=new WeakMap,zi=new WeakMap,Hi=new WeakMap,Ji=new WeakMap,Zi=new WeakMap,$i=new WeakMap,Qi=new WeakMap,ea=new WeakMap,ta=new WeakMap,na=function(){function e(t){var n,r,o=this;s(this,e),Bi(this,Ki,{writable:!0,value:void 0}),Bi(this,qi,{writable:!0,value:v()}),Bi(this,zi,{writable:!0,value:{uuid:E(this,qi),clientDomain:window.location.origin}}),Bi(this,Hi,{writable:!0,value:void 0}),Bi(this,Ji,{writable:!0,value:""}),Bi(this,Zi,{writable:!0,value:void 0}),Bi(this,$i,{writable:!0,value:void 0}),Bi(this,Qi,{writable:!0,value:void 0}),Bi(this,ea,{writable:!0,value:void 0}),Bi(this,ta,{writable:!0,value:function(){return new Promise((function(e,t){!E(o,Ki).config.getBearerToken||E(o,Ji)&&qo(E(o,Ji))?(Wt(Kt(R.infoLogs.REUSE_BEARER_TOKEN,Wi),Et.LOG,E(o,$i)),e(E(o,Ji))):E(o,Ki).config.getBearerToken().then((function(n){qo(n)?(Wt(Kt(R.infoLogs.BEARER_TOKEN_RESOLVED,Wi),Et.LOG,E(o,$i)),f(o,Ji,n),e(E(o,Ji))):(Wt(Kt(R.errorLogs.INVALID_BEARER_TOKEN),Et.ERROR,E(o,$i)),t({error:Kt(R.errorLogs.INVALID_BEARER_TOKEN)}))})).catch((function(e){Wt(Kt(R.errorLogs.BEARER_TOKEN_REJECTED),Et.ERROR,E(o,$i)),t({error:e})}))}))}});var i=localStorage.getItem("sdk_version")||"";E(this,zi).sdkVersion=i,E(this,zi).session_id=v(),f(this,Ki,new Qt(Yi({},t),E(this,zi))),f(this,$i,(null==t||null===(n=t.options)||void 0===n?void 0:n.logLevel)||dt.ERROR),f(this,Qi,(null==t||null===(r=t.options)||void 0===r?void 0:r.env)||ft.PROD),f(this,ea,{}),f(this,Hi,new ni(E(this,Ki),{logLevel:E(this,$i),env:E(this,Qi)}));m().target(Mt.IFRAME_SECURE_ORIGIN).on(ge+E(this,qi),(function(e,t){Wt(Kt(R.infoLogs.CAPTURED_BEARER_TOKEN_EVENT,Wi),Et.LOG,E(o,$i)),!E(o,Ki).config.getBearerToken||E(o,Ji)&&qo(E(o,Ji))?(Wt(Kt(R.infoLogs.REUSE_BEARER_TOKEN,Wi),Et.LOG,E(o,$i)),t({authToken:E(o,Ji)})):E(o,Ki).config.getBearerToken().then((function(e){qo(e)?(Wt(Kt(R.infoLogs.BEARER_TOKEN_RESOLVED,Wi),Et.LOG,E(o,$i)),f(o,Ji,e),t({authToken:E(o,Ji)})):(Wt(Kt(R.errorLogs.INVALID_BEARER_TOKEN),Et.ERROR,E(o,$i)),t({error:Kt(R.errorLogs.INVALID_BEARER_TOKEN)}))})).catch((function(e){Wt(Kt(R.errorLogs.BEARER_TOKEN_REJECTED),Et.ERROR,E(o,$i)),t({error:e})}))})),Wt(Kt(R.infoLogs.BEARER_TOKEN_LISTENER,Wi),Et.LOG,E(this,$i)),Wt(Kt(R.infoLogs.CURRENT_ENV,Wi,E(this,Qi)),Et.LOG,E(this,$i)),Wt(Kt(R.infoLogs.CURRENT_LOG_LEVEL,Wi,E(this,$i)),Et.LOG,E(this,$i))}return u(e,[{key:"container",value:function(e,t){switch(e){case Xi.COLLECT:var n=new Go(t,Yi(Yi({},E(this,zi)),{},{clientJSON:E(this,Ki).toJSON(),containerType:e,skyflowContainer:E(this,Hi),getSkyflowBearerToken:E(this,ta)}),E(this,ea),{logLevel:E(this,$i),env:E(this,Qi)},!0);return Wt(Kt(R.infoLogs.COLLECT_CONTAINER_CREATED,Wi),Et.LOG,E(this,$i)),n;case Xi.REVEAL:var r=new fr(Yi(Yi({},E(this,zi)),{},{clientJSON:E(this,Ki).toJSON(),containerType:e,skyflowContainer:E(this,Hi),getSkyflowBearerToken:E(this,ta)}),E(this,ea),{logLevel:E(this,$i)},t,!0);return Wt(Kt(R.infoLogs.REVEAL_CONTAINER_CREATED,Wi),Et.LOG,E(this,$i)),r;case Xi.COMPOSABLE:!function(e){if(!e)throw new zt(mt.MISSING_COMPOSABLE_CONTAINER_OPTIONS,[],!0);if("object"!==a(e))throw new zt(mt.INVALID_COMPOSABLE_CONTAINER_OPTIONS,[],!0);if(!Object.prototype.hasOwnProperty.call(e,"layout"))throw new zt(mt.MISSING_COMPOSABLE_LAYOUT_KEY,[],!0);if(!e.layout)throw new zt(mt.INVALID_COMPOSABLE_LAYOUT_TYPE,[],!0);if(!Array.isArray(e.layout))throw new zt(mt.INVALID_COMPOSABLE_LAYOUT_TYPE,[],!0);if(0===e.layout.length)throw new zt(mt.EMPTY_COMPOSABLE_LAYOUT_ARRAY,[],!0);e.layout.forEach((function(e){if("number"!=typeof e)throw new zt(mt.INVALID_COMPOSABLE_LAYOUT_TYPE,[],!0);if(e<0)throw new zt(mt.NEGATIVE_VALUES_COMPOSABLE_LAYOUT,[],!0)}))}(t);var o=new xi(t,Yi(Yi({},E(this,zi)),{},{clientJSON:E(this,Ki).toJSON(),containerType:e,skyflowContainer:E(this,Hi),getSkyflowBearerToken:E(this,ta)}),E(this,ea),{logLevel:E(this,$i),env:E(this,Qi)});return Wt(Kt(R.infoLogs.COLLECT_CONTAINER_CREATED,Wi),Et.LOG,E(this,$i)),o;default:if(!e)throw new zt(mt.EMPTY_CONTAINER_TYPE,[],!0);throw new zt(mt.INVALID_CONTAINER_TYPE,[e],!0)}}},{key:"insert",value:function(e,t){return Wt(Kt(R.infoLogs.INSERT_TRIGGERED,Wi),Et.LOG,E(this,$i)),E(this,Hi).insert(e,t)}},{key:"detokenize",value:function(e){return Wt(Kt(R.infoLogs.DETOKENIZE_TRIGGERED,Wi),Et.LOG,E(this,$i)),E(this,Hi).detokenize(e)}},{key:"getById",value:function(e){return Wt(R.warnLogs.GET_BY_ID_DEPRECATED,Et.WARN,E(this,$i)),Wt(Kt(R.infoLogs.GET_BY_ID_TRIGGERED,Wi),Et.LOG,E(this,$i)),E(this,Hi).getById(e)}},{key:"get",value:function(e,t){return Wt(Kt(R.infoLogs.GET_TRIGGERED,Wi),Et.LOG,E(this,$i)),E(this,Hi).get(e,t)}},{key:"delete",value:function(e,t){return Wt(Kt(R.infoLogs.DELETE_TRIGGERED,Wi),Et.LOG,E(this,$i)),E(this,Hi).delete(e,t)}}],[{key:"init",value:function(t){var n,r=(null==t||null===(n=t.options)||void 0===n?void 0:n.logLevel)||dt.ERROR;Ut(t),Wt(Kt(R.infoLogs.INITIALIZE_CLIENT,Wi),Et.LOG,r);var o,i=t;i.vaultURL="string"!=typeof(o=t.vaultURL)?o:"/"===(null==o?void 0:o.trim().slice(-1))?o.slice(0,-1):o.trim();var a=new e(i);return Wt(Kt(R.infoLogs.CLIENT_INITIALIZED,Wi),Et.LOG,r),a}},{key:"ContainerType",get:function(){return Xi}},{key:"ElementType",get:function(){return Ve}},{key:"RedactionType",get:function(){return st}},{key:"RequestMethod",get:function(){return pt}},{key:"LogLevel",get:function(){return dt}},{key:"EventName",get:function(){return ut}},{key:"Env",get:function(){return ft}},{key:"ValidationRuleType",get:function(){return _t}},{key:"CardType",get:function(){return je}},{key:"Error",get:function(){return zt}},{key:"ThreeDS",get:function(){return Fi}}]),e}();const ra=na,oa=na})(),r})()));
2
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Skyflow",[],t):"object"==typeof exports?exports.Skyflow=t():e.Skyflow=t()}(this,(()=>(()=>{var e={841:e=>{"use strict";e.exports=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}},4148:(e,t,n)=>{"use strict";var r=n(5606),o=n(6763);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,a=function(e,t){if("object"!==i(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===i(a)?a:String(a)),r)}var o,a}function c(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var l,s,p=n(9597).codes,u=p.ERR_AMBIGUOUS_ARGUMENT,d=p.ERR_INVALID_ARG_TYPE,f=p.ERR_INVALID_ARG_VALUE,E=p.ERR_INVALID_RETURN_VALUE,_=p.ERR_MISSING_ARGS,m=n(3918),v=n(537).inspect,I=n(537).types,y=I.isPromise,O=I.isRegExp,g=n(1514)(),N=n(9394)(),L=n(8075)("RegExp.prototype.test");new Map;function T(){var e=n(2299);l=e.isDeepEqual,s=e.isDeepStrictEqual}var h=!1,b=e.exports=S,A={};function w(e){if(e.message instanceof Error)throw e.message;throw new m(e)}function R(e,t,n,r){if(!n){var o=!1;if(0===t)o=!0,r="No value argument passed to `assert.ok()`";else if(r instanceof Error)throw r;var i=new m({actual:n,expected:!0,message:r,operator:"==",stackStartFn:e});throw i.generatedMessage=o,i}}function S(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];R.apply(void 0,[S,t.length].concat(t))}b.fail=function e(t,n,i,a,c){var l,s=arguments.length;if(0===s)l="Failed";else if(1===s)i=t,t=void 0;else{if(!1===h)h=!0,(r.emitWarning?r.emitWarning:o.warn.bind(o))("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094");2===s&&(a="!=")}if(i instanceof Error)throw i;var p={actual:t,expected:n,operator:void 0===a?"fail":a,stackStartFn:c||e};void 0!==i&&(p.message=i);var u=new m(p);throw l&&(u.message=l,u.generatedMessage=!0),u},b.AssertionError=m,b.ok=S,b.equal=function e(t,n,r){if(arguments.length<2)throw new _("actual","expected");t!=n&&w({actual:t,expected:n,message:r,operator:"==",stackStartFn:e})},b.notEqual=function e(t,n,r){if(arguments.length<2)throw new _("actual","expected");t==n&&w({actual:t,expected:n,message:r,operator:"!=",stackStartFn:e})},b.deepEqual=function e(t,n,r){if(arguments.length<2)throw new _("actual","expected");void 0===l&&T(),l(t,n)||w({actual:t,expected:n,message:r,operator:"deepEqual",stackStartFn:e})},b.notDeepEqual=function e(t,n,r){if(arguments.length<2)throw new _("actual","expected");void 0===l&&T(),l(t,n)&&w({actual:t,expected:n,message:r,operator:"notDeepEqual",stackStartFn:e})},b.deepStrictEqual=function e(t,n,r){if(arguments.length<2)throw new _("actual","expected");void 0===l&&T(),s(t,n)||w({actual:t,expected:n,message:r,operator:"deepStrictEqual",stackStartFn:e})},b.notDeepStrictEqual=function e(t,n,r){if(arguments.length<2)throw new _("actual","expected");void 0===l&&T();s(t,n)&&w({actual:t,expected:n,message:r,operator:"notDeepStrictEqual",stackStartFn:e})},b.strictEqual=function e(t,n,r){if(arguments.length<2)throw new _("actual","expected");N(t,n)||w({actual:t,expected:n,message:r,operator:"strictEqual",stackStartFn:e})},b.notStrictEqual=function e(t,n,r){if(arguments.length<2)throw new _("actual","expected");N(t,n)&&w({actual:t,expected:n,message:r,operator:"notStrictEqual",stackStartFn:e})};var D=c((function e(t,n,r){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),n.forEach((function(e){e in t&&(void 0!==r&&"string"==typeof r[e]&&O(t[e])&&L(t[e],r[e])?o[e]=r[e]:o[e]=t[e])}))}));function x(e,t,n,r){if("function"!=typeof t){if(O(t))return L(t,e);if(2===arguments.length)throw new d("expected",["Function","RegExp"],t);if("object"!==i(e)||null===e){var o=new m({actual:e,expected:t,message:n,operator:"deepStrictEqual",stackStartFn:r});throw o.operator=r.name,o}var a=Object.keys(t);if(t instanceof Error)a.push("name","message");else if(0===a.length)throw new f("error",t,"may not be an empty object");return void 0===l&&T(),a.forEach((function(o){"string"==typeof e[o]&&O(t[o])&&L(t[o],e[o])||function(e,t,n,r,o,i){if(!(n in e)||!s(e[n],t[n])){if(!r){var a=new D(e,o),c=new D(t,o,e),l=new m({actual:a,expected:c,operator:"deepStrictEqual",stackStartFn:i});throw l.actual=e,l.expected=t,l.operator=i.name,l}w({actual:e,expected:t,message:r,operator:i.name,stackStartFn:i})}}(e,t,o,n,a,r)})),!0}return void 0!==t.prototype&&e instanceof t||!Error.isPrototypeOf(t)&&!0===t.call({},e)}function M(e){if("function"!=typeof e)throw new d("fn","Function",e);try{e()}catch(e){return e}return A}function P(e){return y(e)||null!==e&&"object"===i(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function C(e){return Promise.resolve().then((function(){var t;if("function"==typeof e){if(!P(t=e()))throw new E("instance of Promise","promiseFn",t)}else{if(!P(e))throw new d("promiseFn",["Function","Promise"],e);t=e}return Promise.resolve().then((function(){return t})).then((function(){return A})).catch((function(e){return e}))}))}function k(e,t,n,r){if("string"==typeof n){if(4===arguments.length)throw new d("error",["Object","Error","Function","RegExp"],n);if("object"===i(t)&&null!==t){if(t.message===n)throw new u("error/message",'The error message "'.concat(t.message,'" is identical to the message.'))}else if(t===n)throw new u("error/message",'The error "'.concat(t,'" is identical to the message.'));r=n,n=void 0}else if(null!=n&&"object"!==i(n)&&"function"!=typeof n)throw new d("error",["Object","Error","Function","RegExp"],n);if(t===A){var o="";n&&n.name&&(o+=" (".concat(n.name,")")),o+=r?": ".concat(r):".";var a="rejects"===e.name?"rejection":"exception";w({actual:void 0,expected:n,operator:e.name,message:"Missing expected ".concat(a).concat(o),stackStartFn:e})}if(n&&!x(t,n,r,e))throw t}function V(e,t,n,r){if(t!==A){if("string"==typeof n&&(r=n,n=void 0),!n||x(t,n)){var o=r?": ".concat(r):".",i="doesNotReject"===e.name?"rejection":"exception";w({actual:t,expected:n,operator:e.name,message:"Got unwanted ".concat(i).concat(o,"\n")+'Actual message: "'.concat(t&&t.message,'"'),stackStartFn:e})}throw t}}function j(e,t,n,r,o){if(!O(t))throw new d("regexp","RegExp",t);var a="match"===o;if("string"!=typeof e||L(t,e)!==a){if(n instanceof Error)throw n;var c=!n;n=n||("string"!=typeof e?'The "string" argument must be of type string. Received type '+"".concat(i(e)," (").concat(v(e),")"):(a?"The input did not match the regular expression ":"The input was expected to not match the regular expression ")+"".concat(v(t),". Input:\n\n").concat(v(e),"\n"));var l=new m({actual:e,expected:t,message:n,operator:o,stackStartFn:r});throw l.generatedMessage=c,l}}function U(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];R.apply(void 0,[U,t.length].concat(t))}b.throws=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];k.apply(void 0,[e,M(t)].concat(r))},b.rejects=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return C(t).then((function(t){return k.apply(void 0,[e,t].concat(r))}))},b.doesNotThrow=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];V.apply(void 0,[e,M(t)].concat(r))},b.doesNotReject=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return C(t).then((function(t){return V.apply(void 0,[e,t].concat(r))}))},b.ifError=function e(t){if(null!=t){var n="ifError got unwanted exception: ";"object"===i(t)&&"string"==typeof t.message?0===t.message.length&&t.constructor?n+=t.constructor.name:n+=t.message:n+=v(t);var r=new m({actual:t,expected:null,operator:"ifError",message:n,stackStartFn:e}),o=t.stack;if("string"==typeof o){var a=o.split("\n");a.shift();for(var c=r.stack.split("\n"),l=0;l<a.length;l++){var s=c.indexOf(a[l]);if(-1!==s){c=c.slice(0,s);break}}r.stack="".concat(c.join("\n"),"\n").concat(a.join("\n"))}throw r}},b.match=function e(t,n,r){j(t,n,r,e,"match")},b.doesNotMatch=function e(t,n,r){j(t,n,r,e,"doesNotMatch")},b.strict=g(U,b,{equal:b.strictEqual,deepEqual:b.deepStrictEqual,notEqual:b.notStrictEqual,notDeepEqual:b.notDeepStrictEqual}),b.strict.strict=b.strict},3918:(e,t,n)=>{"use strict";var r=n(5606);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e,t,n){return(t=l(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,l(r.key),r)}}function l(e){var t=function(e,t){if("object"!==m(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==m(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===m(t)?t:String(t)}function s(e,t){if(t&&("object"===m(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return p(e)}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e){var t="function"==typeof Map?new Map:void 0;return u=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return d(e,arguments,_(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),E(r,e)},u(e)}function d(e,t,n){return d=f()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&E(o,n.prototype),o},d.apply(null,arguments)}function f(){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(e){return!1}}function E(e,t){return E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},E(e,t)}function _(e){return _=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_(e)}function m(e){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}var v=n(537).inspect,I=n(9597).codes.ERR_INVALID_ARG_TYPE;function y(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}var O="",g="",N="",L="",T={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function h(e){var t=Object.keys(e),n=Object.create(Object.getPrototypeOf(e));return t.forEach((function(t){n[t]=e[t]})),Object.defineProperty(n,"message",{value:e.message}),n}function b(e){return v(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function A(e,t,n){var o="",i="",a=0,c="",l=!1,s=b(e),p=s.split("\n"),u=b(t).split("\n"),d=0,f="";if("strictEqual"===n&&"object"===m(e)&&"object"===m(t)&&null!==e&&null!==t&&(n="strictEqualObject"),1===p.length&&1===u.length&&p[0]!==u[0]){var E=p[0].length+u[0].length;if(E<=10){if(!("object"===m(e)&&null!==e||"object"===m(t)&&null!==t||0===e&&0===t))return"".concat(T[n],"\n\n")+"".concat(p[0]," !== ").concat(u[0],"\n")}else if("strictEqualObject"!==n){if(E<(r.stderr&&r.stderr.isTTY?r.stderr.columns:80)){for(;p[0][d]===u[0][d];)d++;d>2&&(f="\n ".concat(function(e,t){if(t=Math.floor(t),0==e.length||0==t)return"";var n=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+e.substring(0,n-e.length)}(" ",d),"^"),d=0)}}}for(var _=p[p.length-1],v=u[u.length-1];_===v&&(d++<2?c="\n ".concat(_).concat(c):o=_,p.pop(),u.pop(),0!==p.length&&0!==u.length);)_=p[p.length-1],v=u[u.length-1];var I=Math.max(p.length,u.length);if(0===I){var h=s.split("\n");if(h.length>30)for(h[26]="".concat(O,"...").concat(L);h.length>27;)h.pop();return"".concat(T.notIdentical,"\n\n").concat(h.join("\n"),"\n")}d>3&&(c="\n".concat(O,"...").concat(L).concat(c),l=!0),""!==o&&(c="\n ".concat(o).concat(c),o="");var A=0,w=T[n]+"\n".concat(g,"+ actual").concat(L," ").concat(N,"- expected").concat(L),R=" ".concat(O,"...").concat(L," Lines skipped");for(d=0;d<I;d++){var S=d-a;if(p.length<d+1)S>1&&d>2&&(S>4?(i+="\n".concat(O,"...").concat(L),l=!0):S>3&&(i+="\n ".concat(u[d-2]),A++),i+="\n ".concat(u[d-1]),A++),a=d,o+="\n".concat(N,"-").concat(L," ").concat(u[d]),A++;else if(u.length<d+1)S>1&&d>2&&(S>4?(i+="\n".concat(O,"...").concat(L),l=!0):S>3&&(i+="\n ".concat(p[d-2]),A++),i+="\n ".concat(p[d-1]),A++),a=d,i+="\n".concat(g,"+").concat(L," ").concat(p[d]),A++;else{var D=u[d],x=p[d],M=x!==D&&(!y(x,",")||x.slice(0,-1)!==D);M&&y(D,",")&&D.slice(0,-1)===x&&(M=!1,x+=","),M?(S>1&&d>2&&(S>4?(i+="\n".concat(O,"...").concat(L),l=!0):S>3&&(i+="\n ".concat(p[d-2]),A++),i+="\n ".concat(p[d-1]),A++),a=d,i+="\n".concat(g,"+").concat(L," ").concat(x),o+="\n".concat(N,"-").concat(L," ").concat(D),A+=2):(i+=o,o="",1!==S&&0!==d||(i+="\n ".concat(x),A++))}if(A>20&&d<I-2)return"".concat(w).concat(R,"\n").concat(i,"\n").concat(O,"...").concat(L).concat(o,"\n")+"".concat(O,"...").concat(L)}return"".concat(w).concat(l?R:"","\n").concat(i).concat(o).concat(c).concat(f)}var w=function(e,t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&E(e,t)}(y,e);var n,o,a,l,u,d=(n=y,o=f(),function(){var e,t=_(n);if(o){var r=_(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return s(this,e)});function y(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,y),"object"!==m(e)||null===e)throw new I("options","Object",e);var n=e.message,o=e.operator,i=e.stackStartFn,a=e.actual,c=e.expected,l=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=n)t=d.call(this,String(n));else if(r.stderr&&r.stderr.isTTY&&(r.stderr&&r.stderr.getColorDepth&&1!==r.stderr.getColorDepth()?(O="",g="",L="",N=""):(O="",g="",L="",N="")),"object"===m(a)&&null!==a&&"object"===m(c)&&null!==c&&"stack"in a&&a instanceof Error&&"stack"in c&&c instanceof Error&&(a=h(a),c=h(c)),"deepStrictEqual"===o||"strictEqual"===o)t=d.call(this,A(a,c,o));else if("notDeepStrictEqual"===o||"notStrictEqual"===o){var u=T[o],f=b(a).split("\n");if("notStrictEqual"===o&&"object"===m(a)&&null!==a&&(u=T.notStrictEqualObject),f.length>30)for(f[26]="".concat(O,"...").concat(L);f.length>27;)f.pop();t=1===f.length?d.call(this,"".concat(u," ").concat(f[0])):d.call(this,"".concat(u,"\n\n").concat(f.join("\n"),"\n"))}else{var E=b(a),_="",v=T[o];"notDeepEqual"===o||"notEqual"===o?(E="".concat(T[o],"\n\n").concat(E)).length>1024&&(E="".concat(E.slice(0,1021),"...")):(_="".concat(b(c)),E.length>512&&(E="".concat(E.slice(0,509),"...")),_.length>512&&(_="".concat(_.slice(0,509),"...")),"deepEqual"===o||"equal"===o?E="".concat(v,"\n\n").concat(E,"\n\nshould equal\n\n"):_=" ".concat(o," ").concat(_)),t=d.call(this,"".concat(E).concat(_))}return Error.stackTraceLimit=l,t.generatedMessage=!n,Object.defineProperty(p(t),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),t.code="ERR_ASSERTION",t.actual=a,t.expected=c,t.operator=o,Error.captureStackTrace&&Error.captureStackTrace(p(t),i),t.stack,t.name="AssertionError",s(t)}return a=y,(l=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:t,value:function(e,t){return v(this,i(i({},t),{},{customInspect:!1,depth:0}))}}])&&c(a.prototype,l),u&&c(a,u),Object.defineProperty(a,"prototype",{writable:!1}),y}(u(Error),v.custom);e.exports=w},9597:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(i=o.key,a=void 0,a=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(i,"string"),"symbol"===r(a)?a:String(a)),o)}var i,a}function i(e,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i(e,t)}function a(e){var t=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(e){return!1}}();return function(){var n,o=c(e);if(t){var i=c(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return function(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}var l,s,p={};function u(e,t,n){n||(n=Error);var r=function(n){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&i(e,t)}(p,n);var r,c,l,s=a(p);function p(n,r,o){var i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),i=s.call(this,function(e,n,r){return"string"==typeof t?t:t(e,n,r)}(n,r,o)),i.code=e,i}return r=p,c&&o(r.prototype,c),l&&o(r,l),Object.defineProperty(r,"prototype",{writable:!1}),r}(n);p[e]=r}function d(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map((function(e){return String(e)})),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}u("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),u("ERR_INVALID_ARG_TYPE",(function(e,t,o){var i,a,c,s;if(void 0===l&&(l=n(4148)),l("string"==typeof e,"'name' must be a string"),"string"==typeof t&&(a="not ",t.substr(!c||c<0?0:+c,a.length)===a)?(i="must not be",t=t.replace(/^not /,"")):i="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}(e," argument"))s="The ".concat(e," ").concat(i," ").concat(d(t,"type"));else{var p=function(e,t,n){return"number"!=typeof n&&(n=0),!(n+t.length>e.length)&&-1!==e.indexOf(t,n)}(e,".")?"property":"argument";s='The "'.concat(e,'" ').concat(p," ").concat(i," ").concat(d(t,"type"))}return s+=". Received type ".concat(r(o))}),TypeError),u("ERR_INVALID_ARG_VALUE",(function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===s&&(s=n(537));var o=s.inspect(t);return o.length>128&&(o="".concat(o.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(r,". Received ").concat(o)}),TypeError,RangeError),u("ERR_INVALID_RETURN_VALUE",(function(e,t,n){var o;return o=n&&n.constructor&&n.constructor.name?"instance of ".concat(n.constructor.name):"type ".concat(r(n)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(o,".")}),TypeError),u("ERR_MISSING_ARGS",(function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];void 0===l&&(l=n(4148)),l(t.length>0,"At least one arg needs to be specified");var o="The ",i=t.length;switch(t=t.map((function(e){return'"'.concat(e,'"')})),i){case 1:o+="".concat(t[0]," argument");break;case 2:o+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:o+=t.slice(0,i-1).join(", "),o+=", and ".concat(t[i-1]," arguments")}return"".concat(o," must be specified")}),TypeError),e.exports.codes=p},2299:(e,t,n)=>{"use strict";function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,c=[],l=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}var a=void 0!==/a/g.flags,c=function(e){var t=[];return e.forEach((function(e){return t.push(e)})),t},l=function(e){var t=[];return e.forEach((function(e,n){return t.push([n,e])})),t},s=Object.is?Object.is:n(7653),p=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},u=Number.isNaN?Number.isNaN:n(4133);function d(e){return e.call.bind(e)}var f=d(Object.prototype.hasOwnProperty),E=d(Object.prototype.propertyIsEnumerable),_=d(Object.prototype.toString),m=n(537).types,v=m.isAnyArrayBuffer,I=m.isArrayBufferView,y=m.isDate,O=m.isMap,g=m.isRegExp,N=m.isSet,L=m.isNativeError,T=m.isBoxedPrimitive,h=m.isNumberObject,b=m.isStringObject,A=m.isBooleanObject,w=m.isBigIntObject,R=m.isSymbolObject,S=m.isFloat32Array,D=m.isFloat64Array;function x(e){if(0===e.length||e.length>10)return!0;for(var t=0;t<e.length;t++){var n=e.charCodeAt(t);if(n<48||n>57)return!0}return 10===e.length&&e>=Math.pow(2,32)}function M(e){return Object.keys(e).filter(x).concat(p(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function P(e,t){if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0}function C(e,t,n,r){if(e===t)return 0!==e||(!n||s(e,t));if(n){if("object"!==i(e))return"number"==typeof e&&u(e)&&u(t);if("object"!==i(t)||null===e||null===t)return!1;if(Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1}else{if(null===e||"object"!==i(e))return(null===t||"object"!==i(t))&&e==t;if(null===t||"object"!==i(t))return!1}var o,c,l,p,d=_(e);if(d!==_(t))return!1;if(Array.isArray(e)){if(e.length!==t.length)return!1;var f=M(e),E=M(t);return f.length===E.length&&V(e,t,n,r,1,f)}if("[object Object]"===d&&(!O(e)&&O(t)||!N(e)&&N(t)))return!1;if(y(e)){if(!y(t)||Date.prototype.getTime.call(e)!==Date.prototype.getTime.call(t))return!1}else if(g(e)){if(!g(t)||(l=e,p=t,!(a?l.source===p.source&&l.flags===p.flags:RegExp.prototype.toString.call(l)===RegExp.prototype.toString.call(p))))return!1}else if(L(e)||e instanceof Error){if(e.message!==t.message||e.name!==t.name)return!1}else{if(I(e)){if(n||!S(e)&&!D(e)){if(!function(e,t){return e.byteLength===t.byteLength&&0===P(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}(e,t))return!1}else if(!function(e,t){if(e.byteLength!==t.byteLength)return!1;for(var n=0;n<e.byteLength;n++)if(e[n]!==t[n])return!1;return!0}(e,t))return!1;var m=M(e),x=M(t);return m.length===x.length&&V(e,t,n,r,0,m)}if(N(e))return!(!N(t)||e.size!==t.size)&&V(e,t,n,r,2);if(O(e))return!(!O(t)||e.size!==t.size)&&V(e,t,n,r,3);if(v(e)){if(c=t,(o=e).byteLength!==c.byteLength||0!==P(new Uint8Array(o),new Uint8Array(c)))return!1}else if(T(e)&&!function(e,t){return h(e)?h(t)&&s(Number.prototype.valueOf.call(e),Number.prototype.valueOf.call(t)):b(e)?b(t)&&String.prototype.valueOf.call(e)===String.prototype.valueOf.call(t):A(e)?A(t)&&Boolean.prototype.valueOf.call(e)===Boolean.prototype.valueOf.call(t):w(e)?w(t)&&BigInt.prototype.valueOf.call(e)===BigInt.prototype.valueOf.call(t):R(t)&&Symbol.prototype.valueOf.call(e)===Symbol.prototype.valueOf.call(t)}(e,t))return!1}return V(e,t,n,r,0)}function k(e,t){return t.filter((function(t){return E(e,t)}))}function V(e,t,n,o,a,s){if(5===arguments.length){s=Object.keys(e);var u=Object.keys(t);if(s.length!==u.length)return!1}for(var d=0;d<s.length;d++)if(!f(t,s[d]))return!1;if(n&&5===arguments.length){var _=p(e);if(0!==_.length){var m=0;for(d=0;d<_.length;d++){var v=_[d];if(E(e,v)){if(!E(t,v))return!1;s.push(v),m++}else if(E(t,v))return!1}var I=p(t);if(_.length!==I.length&&k(t,I).length!==m)return!1}else{var y=p(t);if(0!==y.length&&0!==k(t,y).length)return!1}}if(0===s.length&&(0===a||1===a&&0===e.length||0===e.size))return!0;if(void 0===o)o={val1:new Map,val2:new Map,position:0};else{var O=o.val1.get(e);if(void 0!==O){var g=o.val2.get(t);if(void 0!==g)return O===g}o.position++}o.val1.set(e,o.position),o.val2.set(t,o.position);var N=function(e,t,n,o,a,s){var p=0;if(2===s){if(!function(e,t,n,r){for(var o=null,a=c(e),l=0;l<a.length;l++){var s=a[l];if("object"===i(s)&&null!==s)null===o&&(o=new Set),o.add(s);else if(!t.has(s)){if(n)return!1;if(!F(e,t,s))return!1;null===o&&(o=new Set),o.add(s)}}if(null!==o){for(var p=c(t),u=0;u<p.length;u++){var d=p[u];if("object"===i(d)&&null!==d){if(!j(o,d,n,r))return!1}else if(!n&&!e.has(d)&&!j(o,d,n,r))return!1}return 0===o.size}return!0}(e,t,n,a))return!1}else if(3===s){if(!function(e,t,n,o){for(var a=null,c=l(e),s=0;s<c.length;s++){var p=r(c[s],2),u=p[0],d=p[1];if("object"===i(u)&&null!==u)null===a&&(a=new Set),a.add(u);else{var f=t.get(u);if(void 0===f&&!t.has(u)||!C(d,f,n,o)){if(n)return!1;if(!Y(e,t,u,d,o))return!1;null===a&&(a=new Set),a.add(u)}}}if(null!==a){for(var E=l(t),_=0;_<E.length;_++){var m=r(E[_],2),v=m[0],I=m[1];if("object"===i(v)&&null!==v){if(!G(a,e,v,I,n,o))return!1}else if(!(n||e.has(v)&&C(e.get(v),I,!1,o)||G(a,e,v,I,!1,o)))return!1}return 0===a.size}return!0}(e,t,n,a))return!1}else if(1===s)for(;p<e.length;p++){if(!f(e,p)){if(f(t,p))return!1;for(var u=Object.keys(e);p<u.length;p++){var d=u[p];if(!f(t,d)||!C(e[d],t[d],n,a))return!1}return u.length===Object.keys(t).length}if(!f(t,p)||!C(e[p],t[p],n,a))return!1}for(p=0;p<o.length;p++){var E=o[p];if(!C(e[E],t[E],n,a))return!1}return!0}(e,t,n,s,o,a);return o.val1.delete(e),o.val2.delete(t),N}function j(e,t,n,r){for(var o=c(e),i=0;i<o.length;i++){var a=o[i];if(C(t,a,n,r))return e.delete(a),!0}return!1}function U(e){switch(i(e)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":e=+e;case"number":if(u(e))return!1}return!0}function F(e,t,n){var r=U(n);return null!=r?r:t.has(r)&&!e.has(r)}function Y(e,t,n,r,o){var i=U(n);if(null!=i)return i;var a=t.get(i);return!(void 0===a&&!t.has(i)||!C(r,a,!1,o))&&(!e.has(i)&&C(r,a,!1,o))}function G(e,t,n,r,o,i){for(var a=c(e),l=0;l<a.length;l++){var s=a[l];if(C(n,s,o,i)&&C(r,t.get(s),o,i))return e.delete(s),!0}return!1}e.exports={isDeepEqual:function(e,t){return C(e,t,false)},isDeepStrictEqual:function(e,t){return C(e,t,true)}}},8075:(e,t,n)=>{"use strict";var r=n(453),o=n(487),i=o(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&i(e,".prototype.")>-1?o(n):n}},487:(e,t,n)=>{"use strict";var r=n(6743),o=n(453),i=o("%Function.prototype.apply%"),a=o("%Function.prototype.call%"),c=o("%Reflect.apply%",!0)||r.call(a,i),l=o("%Object.getOwnPropertyDescriptor%",!0),s=o("%Object.defineProperty%",!0),p=o("%Math.max%");if(s)try{s({},"a",{value:1})}catch(e){s=null}e.exports=function(e){var t=c(r,a,arguments);l&&s&&(l(t,"length").configurable&&s(t,"length",{value:1+p(0,e.length-(arguments.length-1))}));return t};var u=function(){return c(r,i,arguments)};s?s(e.exports,"apply",{value:u}):e.exports.apply=u},6763:(e,t,n)=>{var r=n(537),o=n(4148);function i(){return(new Date).getTime()}var a,c=Array.prototype.slice,l={};a=void 0!==n.g&&n.g.console?n.g.console:"undefined"!=typeof window&&window.console?window.console:{};for(var s=[[function(){},"log"],[function(){a.log.apply(a,arguments)},"info"],[function(){a.log.apply(a,arguments)},"warn"],[function(){a.warn.apply(a,arguments)},"error"],[function(e){l[e]=i()},"time"],[function(e){var t=l[e];if(!t)throw new Error("No such label: "+e);delete l[e];var n=i()-t;a.log(e+": "+n+"ms")},"timeEnd"],[function(){var e=new Error;e.name="Trace",e.message=r.format.apply(null,arguments),a.error(e.stack)},"trace"],[function(e){a.log(r.inspect(e)+"\n")},"dir"],[function(e){if(!e){var t=c.call(arguments,1);o.ok(!1,r.format.apply(null,t))}},"assert"]],p=0;p<s.length;p++){var u=s[p],d=u[0],f=u[1];a[f]||(a[f]=d)}e.exports=a},41:(e,t,n)=>{"use strict";var r=n(592)(),o=n(453),i=r&&o("%Object.defineProperty%",!0),a=o("%SyntaxError%"),c=o("%TypeError%"),l=n(5795);e.exports=function(e,t,n){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new c("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new c("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new c("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new c("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new c("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new c("`loose`, if provided, must be a boolean");var r=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,s=arguments.length>5?arguments[5]:null,p=arguments.length>6&&arguments[6],u=!!l&&l(e,t);if(i)i(e,t,{configurable:null===s&&u?u.configurable:!s,enumerable:null===r&&u?u.enumerable:!r,value:n,writable:null===o&&u?u.writable:!o});else{if(!p&&(r||o||s))throw new a("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=n}}},8452:(e,t,n)=>{"use strict";var r=n(1189),o="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),i=Object.prototype.toString,a=Array.prototype.concat,c=n(41),l=n(592)(),s=function(e,t,n,r){if(t in e)if(!0===r){if(e[t]===n)return}else if("function"!=typeof(o=r)||"[object Function]"!==i.call(o)||!r())return;var o;l?c(e,t,n,!0):c(e,t,n)},p=function(e,t){var n=arguments.length>2?arguments[2]:{},i=r(t);o&&(i=a.call(i,Object.getOwnPropertySymbols(t)));for(var c=0;c<i.length;c+=1)s(e,i[c],t[i[c]],n[i[c]])};p.supportsDescriptors=!!l,e.exports=p},2682:(e,t,n)=>{"use strict";var r=n(9600),o=Object.prototype.toString,i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){if(!r(t))throw new TypeError("iterator must be a function");var a;arguments.length>=3&&(a=n),"[object Array]"===o.call(e)?function(e,t,n){for(var r=0,o=e.length;r<o;r++)i.call(e,r)&&(null==n?t(e[r],r,e):t.call(n,e[r],r,e))}(e,t,a):"string"==typeof e?function(e,t,n){for(var r=0,o=e.length;r<o;r++)null==n?t(e.charAt(r),r,e):t.call(n,e.charAt(r),r,e)}(e,t,a):function(e,t,n){for(var r in e)i.call(e,r)&&(null==n?t(e[r],r,e):t.call(n,e[r],r,e))}(e,t,a)}},6096:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Framebus=void 0;var r=n(9275),o=n(2926),i=n(9974),a=n(3678),c=n(6968),l=function(){function e(e){void 0===e&&(e="*"),this.origin=e}return e.target=function(t){return void 0===t&&(t="*"),new e(t)},e.prototype.include=function(e){return null!=e&&(null!=e.Window&&(e.constructor===e.Window&&(c.childWindows.push(e),!0)))},e.prototype.target=function(t){return e.target(t)},e.prototype.emit=function(e,t,n){var o=this.origin;if(r.isntString(e))return!1;if(r.isntString(o))return!1;"function"==typeof t&&(n=t,t=void 0);var c=a.packagePayload(e,o,t,n);return!!c&&(i.broadcast(window.top||window.self,c,o),!0)},e.prototype.on=function(e,t){var n=this.origin;return!o.subscriptionArgsInvalid(e,t,n)&&(c.subscribers[n]=c.subscribers[n]||{},c.subscribers[n][e]=c.subscribers[n][e]||[],c.subscribers[n][e].push(t),!0)},e.prototype.off=function(e,t){var n=this.origin;if(o.subscriptionArgsInvalid(e,t,n))return!1;var r=c.subscribers[n]&&c.subscribers[n][e];if(!r)return!1;for(var i=0;i<r.length;i++)if(r[i]===t)return r.splice(i,1),!0;return!1},e}();t.Framebus=l},2281:(e,t,n)=>{"use strict";var r=n(7920),o=new(n(6096).Framebus);r.attach(),e.exports=o},7920:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.detach=t.attach=void 0;var r=n(3610),o=!1;t.attach=function(){o||"undefined"==typeof window||(o=!0,window.addEventListener("message",r.onmessage,!1))},t.detach=function(){o=!1,window.removeEventListener("message",r.onmessage,!1)}},1117:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.broadcastToChildWindows=void 0;var r=n(9974),o=n(6968);t.broadcastToChildWindows=function(e,t,n){for(var i=o.childWindows.length-1;i>=0;i--){var a=o.childWindows[i];a.closed?o.childWindows.splice(i,1):n!==a&&r.broadcast(a.top,e,t)}}},9974:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.broadcast=void 0;var r=n(5213);t.broadcast=function e(t,n,o){var i,a=0;try{for(t.postMessage(n,o),r.hasOpener(t)&&e(t.opener.top,n,o);i=t.frames[a];)e(i,n,o),a++}catch(e){}}},6968:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.subscribers=t.childWindows=t.prefix=void 0,t.prefix="/*framebus*/",t.childWindows=[],t.subscribers={}},9923:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dispatch=void 0;var r=n(6968);t.dispatch=function(e,t,n,o,i){if(r.subscribers[e]&&r.subscribers[e][t]){var a=[];n&&a.push(n),o&&a.push(o);for(var c=0;c<r.subscribers[e][t].length;c++)r.subscribers[e][t][c].apply(i,a)}}},5213:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasOpener=void 0,t.hasOpener=function(e){return e.top===e&&(null!=e.opener&&(e.opener!==e&&!0!==e.opener.closed))}},9275:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isntString=void 0,t.isntString=function(e){return"string"!=typeof e}},3610:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.onmessage=void 0;var r=n(9275),o=n(9752),i=n(9923),a=n(1117);t.onmessage=function(e){if(!r.isntString(e.data)){var t=o.unpackPayload(e);if(t){var n=t.eventData,c=t.reply;i.dispatch("*",t.event,n,c,e),i.dispatch(e.origin,t.event,n,c,e),a.broadcastToChildWindows(e.data,t.origin,e.source)}}}},3678:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packagePayload=void 0;var r=n(5159),o=n(6968);t.packagePayload=function(e,t,n,i){var a,c={event:e,origin:t};"function"==typeof i&&(c.reply=r.subscribeReplier(i,t)),c.eventData=n;try{a=o.prefix+JSON.stringify(c)}catch(e){throw new Error("Could not stringify event: "+e.message)}return a}},5159:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.subscribeReplier=void 0;var o=n(6096),i=r(n(841));t.subscribeReplier=function(e,t){var n=i.default();return o.Framebus.target(t).on(n,(function r(i,a){e(i,a),o.Framebus.target(t).off(n,r)})),n}},2926:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.subscriptionArgsInvalid=void 0;var r=n(9275);t.subscriptionArgsInvalid=function(e,t,n){return!!r.isntString(e)||("function"!=typeof t||r.isntString(n))}},9752:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.unpackPayload=void 0;var r=n(6968),o=n(3678);t.unpackPayload=function(e){var t;if(e.data.slice(0,r.prefix.length)!==r.prefix)return!1;try{t=JSON.parse(e.data.slice(r.prefix.length))}catch(e){return!1}if(t.reply){var n=e.origin,i=e.source,a=t.reply;t.reply=function(e){if(i){var t=o.packagePayload(a,n,e);t&&i.postMessage(t,n)}}}return t}},9353:e=>{"use strict";var t=Array.prototype.slice,n=Object.prototype.toString;e.exports=function(e){var r=this;if("function"!=typeof r||"[object Function]"!==n.call(r))throw new TypeError("Function.prototype.bind called on incompatible "+r);for(var o,i=t.call(arguments,1),a=Math.max(0,r.length-i.length),c=[],l=0;l<a;l++)c.push("$"+l);if(o=Function("binder","return function ("+c.join(",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof o){var n=r.apply(this,i.concat(t.call(arguments)));return Object(n)===n?n:this}return r.apply(e,i.concat(t.call(arguments)))})),r.prototype){var s=function(){};s.prototype=r.prototype,o.prototype=new s,s.prototype=null}return o}},6743:(e,t,n)=>{"use strict";var r=n(9353);e.exports=Function.prototype.bind||r},453:(e,t,n)=>{"use strict";var r,o=SyntaxError,i=Function,a=TypeError,c=function(e){try{return i('"use strict"; return ('+e+").constructor;")()}catch(e){}},l=Object.getOwnPropertyDescriptor;if(l)try{l({},"")}catch(e){l=null}var s=function(){throw new a},p=l?function(){try{return s}catch(e){try{return l(arguments,"callee").get}catch(e){return s}}}():s,u=n(4039)(),d=n(24)(),f=Object.getPrototypeOf||(d?function(e){return e.__proto__}:null),E={},_="undefined"!=typeof Uint8Array&&f?f(Uint8Array):r,m={"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":u&&f?f([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":E,"%AsyncGenerator%":E,"%AsyncGeneratorFunction%":E,"%AsyncIteratorPrototype%":E,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":E,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":u&&f?f(f([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&u&&f?f((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&u&&f?f((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":u&&f?f(""[Symbol.iterator]()):r,"%Symbol%":u?Symbol:r,"%SyntaxError%":o,"%ThrowTypeError%":p,"%TypedArray%":_,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet};if(f)try{null.error}catch(e){var v=f(f(e));m["%Error.prototype%"]=v}var I=function e(t){var n;if("%AsyncFunction%"===t)n=c("async function () {}");else if("%GeneratorFunction%"===t)n=c("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=c("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&f&&(n=f(o.prototype))}return m[t]=n,n},y={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},O=n(6743),g=n(9030),N=O.call(Function.call,Array.prototype.concat),L=O.call(Function.apply,Array.prototype.splice),T=O.call(Function.call,String.prototype.replace),h=O.call(Function.call,String.prototype.slice),b=O.call(Function.call,RegExp.prototype.exec),A=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,w=/\\(\\)?/g,R=function(e,t){var n,r=e;if(g(y,r)&&(r="%"+(n=y[r])[0]+"%"),g(m,r)){var i=m[r];if(i===E&&(i=I(r)),void 0===i&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new o("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new a('"allowMissing" argument must be a boolean');if(null===b(/^%?[^%]*%?$/,e))throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=h(e,0,1),n=h(e,-1);if("%"===t&&"%"!==n)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new o("invalid intrinsic syntax, expected opening `%`");var r=[];return T(e,A,(function(e,t,n,o){r[r.length]=n?T(o,w,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",i=R("%"+r+"%",t),c=i.name,s=i.value,p=!1,u=i.alias;u&&(r=u[0],L(n,N([0,1],u)));for(var d=1,f=!0;d<n.length;d+=1){var E=n[d],_=h(E,0,1),v=h(E,-1);if(('"'===_||"'"===_||"`"===_||'"'===v||"'"===v||"`"===v)&&_!==v)throw new o("property names with quotes must have matching quotes");if("constructor"!==E&&f||(p=!0),g(m,c="%"+(r+="."+E)+"%"))s=m[c];else if(null!=s){if(!(E in s)){if(!t)throw new a("base intrinsic for "+e+" exists, but the property is not available.");return}if(l&&d+1>=n.length){var I=l(s,E);s=(f=!!I)&&"get"in I&&!("originalValue"in I.get)?I.get:s[E]}else f=g(s,E),s=s[E];f&&!p&&(m[c]=s)}}return s}},5795:(e,t,n)=>{"use strict";var r=n(453)("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(e){r=null}e.exports=r},592:(e,t,n)=>{"use strict";var r=n(453)("%Object.defineProperty%",!0),o=function(){if(r)try{return r({},"a",{value:1}),!0}catch(e){return!1}return!1};o.hasArrayLengthDefineBug=function(){if(!o())return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},e.exports=o},24:e=>{"use strict";var t={foo:{}},n=Object;e.exports=function(){return{__proto__:t}.foo===t.foo&&!({__proto__:null}instanceof n)}},4039:(e,t,n)=>{"use strict";var r="undefined"!=typeof Symbol&&Symbol,o=n(1333);e.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&o())))}},1333:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},9092:(e,t,n)=>{"use strict";var r=n(1333);e.exports=function(){return r()&&!!Symbol.toStringTag}},9030:(e,t,n)=>{"use strict";var r=n(6743);e.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},6698:e=>{"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},7244:(e,t,n)=>{"use strict";var r=n(9092)(),o=n(8075)("Object.prototype.toString"),i=function(e){return!(r&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===o(e)},a=function(e){return!!i(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==o(e)&&"[object Function]"===o(e.callee)},c=function(){return i(arguments)}();i.isLegacyArguments=a,e.exports=c?i:a},9600:e=>{"use strict";var t,n,r=Function.prototype.toString,o="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof o&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw n}}),n={},o((function(){throw 42}),null,t)}catch(e){e!==n&&(o=null)}else o=null;var i=/^\s*class\b/,a=function(e){try{var t=r.call(e);return i.test(t)}catch(e){return!1}},c=function(e){try{return!a(e)&&(r.call(e),!0)}catch(e){return!1}},l=Object.prototype.toString,s="function"==typeof Symbol&&!!Symbol.toStringTag,p=!(0 in[,]),u=function(){return!1};if("object"==typeof document){var d=document.all;l.call(d)===l.call(document.all)&&(u=function(e){if((p||!e)&&(void 0===e||"object"==typeof e))try{var t=l.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(e){}return!1})}e.exports=o?function(e){if(u(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;try{o(e,null,t)}catch(e){if(e!==n)return!1}return!a(e)&&c(e)}:function(e){if(u(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(s)return c(e);if(a(e))return!1;var t=l.call(e);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&c(e)}},8184:(e,t,n)=>{"use strict";var r,o=Object.prototype.toString,i=Function.prototype.toString,a=/^\s*(?:function)?\*/,c=n(9092)(),l=Object.getPrototypeOf;e.exports=function(e){if("function"!=typeof e)return!1;if(a.test(i.call(e)))return!0;if(!c)return"[object GeneratorFunction]"===o.call(e);if(!l)return!1;if(void 0===r){var t=function(){if(!c)return!1;try{return Function("return function*() {}")()}catch(e){}}();r=!!t&&l(t)}return l(e)===r}},3003:e=>{"use strict";e.exports=function(e){return e!=e}},4133:(e,t,n)=>{"use strict";var r=n(487),o=n(8452),i=n(3003),a=n(6642),c=n(2464),l=r(a(),Number);o(l,{getPolyfill:a,implementation:i,shim:c}),e.exports=l},6642:(e,t,n)=>{"use strict";var r=n(3003);e.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:r}},2464:(e,t,n)=>{"use strict";var r=n(8452),o=n(6642);e.exports=function(){var e=o();return r(Number,{isNaN:e},{isNaN:function(){return Number.isNaN!==e}}),e}},5680:(e,t,n)=>{"use strict";var r=n(5767);e.exports=function(e){return!!r(e)}},7721:e=>{e.exports=function(e,t){for(var n,r=-1,o=e.length;++r<o;){var i=t(e[r]);void 0!==i&&(n=void 0===n?i:n+i)}return n}},3488:e=>{e.exports=function(e){return e}},6119:(e,t,n)=>{var r=n(7721),o=n(3488);e.exports=function(e){return e&&e.length?r(e,o):0}},8673:e=>{"use strict";function t(){this._types=Object.create(null),this._extensions=Object.create(null);for(let e=0;e<arguments.length;e++)this.define(arguments[e]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}t.prototype.define=function(e,t){for(let n in e){let r=e[n].map((function(e){return e.toLowerCase()}));n=n.toLowerCase();for(let e=0;e<r.length;e++){const o=r[e];if("*"!==o[0]){if(!t&&o in this._types)throw new Error('Attempt to change mapping for "'+o+'" extension from "'+this._types[o]+'" to "'+n+'". Pass `force=true` to allow this, otherwise remove "'+o+'" from the list of extensions for "'+n+'".');this._types[o]=n}}if(t||!this._extensions[n]){const e=r[0];this._extensions[n]="*"!==e[0]?e:e.substr(1)}}},t.prototype.getType=function(e){let t=(e=String(e)).replace(/^.*[/\\]/,"").toLowerCase(),n=t.replace(/^.*\./,"").toLowerCase(),r=t.length<e.length;return(n.length<t.length-1||!r)&&this._types[n]||null},t.prototype.getExtension=function(e){return(e=/^\s*([^;\s]*)/.test(e)&&RegExp.$1)&&this._extensions[e.toLowerCase()]||null},e.exports=t},125:(e,t,n)=>{"use strict";let r=n(8673);e.exports=new r(n(8446),n(1453))},1453:e=>{e.exports={"application/prs.cww":["cww"],"application/vnd.1000minds.decision-model+xml":["1km"],"application/vnd.3gpp.pic-bw-large":["plb"],"application/vnd.3gpp.pic-bw-small":["psb"],"application/vnd.3gpp.pic-bw-var":["pvb"],"application/vnd.3gpp2.tcap":["tcap"],"application/vnd.3m.post-it-notes":["pwn"],"application/vnd.accpac.simply.aso":["aso"],"application/vnd.accpac.simply.imp":["imp"],"application/vnd.acucobol":["acu"],"application/vnd.acucorp":["atc","acutc"],"application/vnd.adobe.air-application-installer-package+zip":["air"],"application/vnd.adobe.formscentral.fcdt":["fcdt"],"application/vnd.adobe.fxp":["fxp","fxpl"],"application/vnd.adobe.xdp+xml":["xdp"],"application/vnd.adobe.xfdf":["xfdf"],"application/vnd.ahead.space":["ahead"],"application/vnd.airzip.filesecure.azf":["azf"],"application/vnd.airzip.filesecure.azs":["azs"],"application/vnd.amazon.ebook":["azw"],"application/vnd.americandynamics.acc":["acc"],"application/vnd.amiga.ami":["ami"],"application/vnd.android.package-archive":["apk"],"application/vnd.anser-web-certificate-issue-initiation":["cii"],"application/vnd.anser-web-funds-transfer-initiation":["fti"],"application/vnd.antix.game-component":["atx"],"application/vnd.apple.installer+xml":["mpkg"],"application/vnd.apple.keynote":["key"],"application/vnd.apple.mpegurl":["m3u8"],"application/vnd.apple.numbers":["numbers"],"application/vnd.apple.pages":["pages"],"application/vnd.apple.pkpass":["pkpass"],"application/vnd.aristanetworks.swi":["swi"],"application/vnd.astraea-software.iota":["iota"],"application/vnd.audiograph":["aep"],"application/vnd.balsamiq.bmml+xml":["bmml"],"application/vnd.blueice.multipass":["mpm"],"application/vnd.bmi":["bmi"],"application/vnd.businessobjects":["rep"],"application/vnd.chemdraw+xml":["cdxml"],"application/vnd.chipnuts.karaoke-mmd":["mmd"],"application/vnd.cinderella":["cdy"],"application/vnd.citationstyles.style+xml":["csl"],"application/vnd.claymore":["cla"],"application/vnd.cloanto.rp9":["rp9"],"application/vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"application/vnd.cluetrust.cartomobile-config":["c11amc"],"application/vnd.cluetrust.cartomobile-config-pkg":["c11amz"],"application/vnd.commonspace":["csp"],"application/vnd.contact.cmsg":["cdbcmsg"],"application/vnd.cosmocaller":["cmc"],"application/vnd.crick.clicker":["clkx"],"application/vnd.crick.clicker.keyboard":["clkk"],"application/vnd.crick.clicker.palette":["clkp"],"application/vnd.crick.clicker.template":["clkt"],"application/vnd.crick.clicker.wordbank":["clkw"],"application/vnd.criticaltools.wbs+xml":["wbs"],"application/vnd.ctc-posml":["pml"],"application/vnd.cups-ppd":["ppd"],"application/vnd.curl.car":["car"],"application/vnd.curl.pcurl":["pcurl"],"application/vnd.dart":["dart"],"application/vnd.data-vision.rdz":["rdz"],"application/vnd.dbf":["dbf"],"application/vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"application/vnd.dece.ttml+xml":["uvt","uvvt"],"application/vnd.dece.unspecified":["uvx","uvvx"],"application/vnd.dece.zip":["uvz","uvvz"],"application/vnd.denovo.fcselayout-link":["fe_launch"],"application/vnd.dna":["dna"],"application/vnd.dolby.mlp":["mlp"],"application/vnd.dpgraph":["dpg"],"application/vnd.dreamfactory":["dfac"],"application/vnd.ds-keypoint":["kpxx"],"application/vnd.dvb.ait":["ait"],"application/vnd.dvb.service":["svc"],"application/vnd.dynageo":["geo"],"application/vnd.ecowin.chart":["mag"],"application/vnd.enliven":["nml"],"application/vnd.epson.esf":["esf"],"application/vnd.epson.msf":["msf"],"application/vnd.epson.quickanime":["qam"],"application/vnd.epson.salt":["slt"],"application/vnd.epson.ssf":["ssf"],"application/vnd.eszigno3+xml":["es3","et3"],"application/vnd.ezpix-album":["ez2"],"application/vnd.ezpix-package":["ez3"],"application/vnd.fdf":["fdf"],"application/vnd.fdsn.mseed":["mseed"],"application/vnd.fdsn.seed":["seed","dataless"],"application/vnd.flographit":["gph"],"application/vnd.fluxtime.clip":["ftc"],"application/vnd.framemaker":["fm","frame","maker","book"],"application/vnd.frogans.fnc":["fnc"],"application/vnd.frogans.ltf":["ltf"],"application/vnd.fsc.weblaunch":["fsc"],"application/vnd.fujitsu.oasys":["oas"],"application/vnd.fujitsu.oasys2":["oa2"],"application/vnd.fujitsu.oasys3":["oa3"],"application/vnd.fujitsu.oasysgp":["fg5"],"application/vnd.fujitsu.oasysprs":["bh2"],"application/vnd.fujixerox.ddd":["ddd"],"application/vnd.fujixerox.docuworks":["xdw"],"application/vnd.fujixerox.docuworks.binder":["xbd"],"application/vnd.fuzzysheet":["fzs"],"application/vnd.genomatix.tuxedo":["txd"],"application/vnd.geogebra.file":["ggb"],"application/vnd.geogebra.tool":["ggt"],"application/vnd.geometry-explorer":["gex","gre"],"application/vnd.geonext":["gxt"],"application/vnd.geoplan":["g2w"],"application/vnd.geospace":["g3w"],"application/vnd.gmx":["gmx"],"application/vnd.google-apps.document":["gdoc"],"application/vnd.google-apps.presentation":["gslides"],"application/vnd.google-apps.spreadsheet":["gsheet"],"application/vnd.google-earth.kml+xml":["kml"],"application/vnd.google-earth.kmz":["kmz"],"application/vnd.grafeq":["gqf","gqs"],"application/vnd.groove-account":["gac"],"application/vnd.groove-help":["ghf"],"application/vnd.groove-identity-message":["gim"],"application/vnd.groove-injector":["grv"],"application/vnd.groove-tool-message":["gtm"],"application/vnd.groove-tool-template":["tpl"],"application/vnd.groove-vcard":["vcg"],"application/vnd.hal+xml":["hal"],"application/vnd.handheld-entertainment+xml":["zmm"],"application/vnd.hbci":["hbci"],"application/vnd.hhe.lesson-player":["les"],"application/vnd.hp-hpgl":["hpgl"],"application/vnd.hp-hpid":["hpid"],"application/vnd.hp-hps":["hps"],"application/vnd.hp-jlyt":["jlt"],"application/vnd.hp-pcl":["pcl"],"application/vnd.hp-pclxl":["pclxl"],"application/vnd.hydrostatix.sof-data":["sfd-hdstx"],"application/vnd.ibm.minipay":["mpy"],"application/vnd.ibm.modcap":["afp","listafp","list3820"],"application/vnd.ibm.rights-management":["irm"],"application/vnd.ibm.secure-container":["sc"],"application/vnd.iccprofile":["icc","icm"],"application/vnd.igloader":["igl"],"application/vnd.immervision-ivp":["ivp"],"application/vnd.immervision-ivu":["ivu"],"application/vnd.insors.igm":["igm"],"application/vnd.intercon.formnet":["xpw","xpx"],"application/vnd.intergeo":["i2g"],"application/vnd.intu.qbo":["qbo"],"application/vnd.intu.qfx":["qfx"],"application/vnd.ipunplugged.rcprofile":["rcprofile"],"application/vnd.irepository.package+xml":["irp"],"application/vnd.is-xpr":["xpr"],"application/vnd.isac.fcs":["fcs"],"application/vnd.jam":["jam"],"application/vnd.jcp.javame.midlet-rms":["rms"],"application/vnd.jisp":["jisp"],"application/vnd.joost.joda-archive":["joda"],"application/vnd.kahootz":["ktz","ktr"],"application/vnd.kde.karbon":["karbon"],"application/vnd.kde.kchart":["chrt"],"application/vnd.kde.kformula":["kfo"],"application/vnd.kde.kivio":["flw"],"application/vnd.kde.kontour":["kon"],"application/vnd.kde.kpresenter":["kpr","kpt"],"application/vnd.kde.kspread":["ksp"],"application/vnd.kde.kword":["kwd","kwt"],"application/vnd.kenameaapp":["htke"],"application/vnd.kidspiration":["kia"],"application/vnd.kinar":["kne","knp"],"application/vnd.koan":["skp","skd","skt","skm"],"application/vnd.kodak-descriptor":["sse"],"application/vnd.las.las+xml":["lasxml"],"application/vnd.llamagraphics.life-balance.desktop":["lbd"],"application/vnd.llamagraphics.life-balance.exchange+xml":["lbe"],"application/vnd.lotus-1-2-3":["123"],"application/vnd.lotus-approach":["apr"],"application/vnd.lotus-freelance":["pre"],"application/vnd.lotus-notes":["nsf"],"application/vnd.lotus-organizer":["org"],"application/vnd.lotus-screencam":["scm"],"application/vnd.lotus-wordpro":["lwp"],"application/vnd.macports.portpkg":["portpkg"],"application/vnd.mapbox-vector-tile":["mvt"],"application/vnd.mcd":["mcd"],"application/vnd.medcalcdata":["mc1"],"application/vnd.mediastation.cdkey":["cdkey"],"application/vnd.mfer":["mwf"],"application/vnd.mfmp":["mfm"],"application/vnd.micrografx.flo":["flo"],"application/vnd.micrografx.igx":["igx"],"application/vnd.mif":["mif"],"application/vnd.mobius.daf":["daf"],"application/vnd.mobius.dis":["dis"],"application/vnd.mobius.mbk":["mbk"],"application/vnd.mobius.mqy":["mqy"],"application/vnd.mobius.msl":["msl"],"application/vnd.mobius.plc":["plc"],"application/vnd.mobius.txf":["txf"],"application/vnd.mophun.application":["mpn"],"application/vnd.mophun.certificate":["mpc"],"application/vnd.mozilla.xul+xml":["xul"],"application/vnd.ms-artgalry":["cil"],"application/vnd.ms-cab-compressed":["cab"],"application/vnd.ms-excel":["xls","xlm","xla","xlc","xlt","xlw"],"application/vnd.ms-excel.addin.macroenabled.12":["xlam"],"application/vnd.ms-excel.sheet.binary.macroenabled.12":["xlsb"],"application/vnd.ms-excel.sheet.macroenabled.12":["xlsm"],"application/vnd.ms-excel.template.macroenabled.12":["xltm"],"application/vnd.ms-fontobject":["eot"],"application/vnd.ms-htmlhelp":["chm"],"application/vnd.ms-ims":["ims"],"application/vnd.ms-lrm":["lrm"],"application/vnd.ms-officetheme":["thmx"],"application/vnd.ms-outlook":["msg"],"application/vnd.ms-pki.seccat":["cat"],"application/vnd.ms-pki.stl":["*stl"],"application/vnd.ms-powerpoint":["ppt","pps","pot"],"application/vnd.ms-powerpoint.addin.macroenabled.12":["ppam"],"application/vnd.ms-powerpoint.presentation.macroenabled.12":["pptm"],"application/vnd.ms-powerpoint.slide.macroenabled.12":["sldm"],"application/vnd.ms-powerpoint.slideshow.macroenabled.12":["ppsm"],"application/vnd.ms-powerpoint.template.macroenabled.12":["potm"],"application/vnd.ms-project":["mpp","mpt"],"application/vnd.ms-word.document.macroenabled.12":["docm"],"application/vnd.ms-word.template.macroenabled.12":["dotm"],"application/vnd.ms-works":["wps","wks","wcm","wdb"],"application/vnd.ms-wpl":["wpl"],"application/vnd.ms-xpsdocument":["xps"],"application/vnd.mseq":["mseq"],"application/vnd.musician":["mus"],"application/vnd.muvee.style":["msty"],"application/vnd.mynfc":["taglet"],"application/vnd.neurolanguage.nlu":["nlu"],"application/vnd.nitf":["ntf","nitf"],"application/vnd.noblenet-directory":["nnd"],"application/vnd.noblenet-sealer":["nns"],"application/vnd.noblenet-web":["nnw"],"application/vnd.nokia.n-gage.ac+xml":["*ac"],"application/vnd.nokia.n-gage.data":["ngdat"],"application/vnd.nokia.n-gage.symbian.install":["n-gage"],"application/vnd.nokia.radio-preset":["rpst"],"application/vnd.nokia.radio-presets":["rpss"],"application/vnd.novadigm.edm":["edm"],"application/vnd.novadigm.edx":["edx"],"application/vnd.novadigm.ext":["ext"],"application/vnd.oasis.opendocument.chart":["odc"],"application/vnd.oasis.opendocument.chart-template":["otc"],"application/vnd.oasis.opendocument.database":["odb"],"application/vnd.oasis.opendocument.formula":["odf"],"application/vnd.oasis.opendocument.formula-template":["odft"],"application/vnd.oasis.opendocument.graphics":["odg"],"application/vnd.oasis.opendocument.graphics-template":["otg"],"application/vnd.oasis.opendocument.image":["odi"],"application/vnd.oasis.opendocument.image-template":["oti"],"application/vnd.oasis.opendocument.presentation":["odp"],"application/vnd.oasis.opendocument.presentation-template":["otp"],"application/vnd.oasis.opendocument.spreadsheet":["ods"],"application/vnd.oasis.opendocument.spreadsheet-template":["ots"],"application/vnd.oasis.opendocument.text":["odt"],"application/vnd.oasis.opendocument.text-master":["odm"],"application/vnd.oasis.opendocument.text-template":["ott"],"application/vnd.oasis.opendocument.text-web":["oth"],"application/vnd.olpc-sugar":["xo"],"application/vnd.oma.dd2+xml":["dd2"],"application/vnd.openblox.game+xml":["obgx"],"application/vnd.openofficeorg.extension":["oxt"],"application/vnd.openstreetmap.data+xml":["osm"],"application/vnd.openxmlformats-officedocument.presentationml.presentation":["pptx"],"application/vnd.openxmlformats-officedocument.presentationml.slide":["sldx"],"application/vnd.openxmlformats-officedocument.presentationml.slideshow":["ppsx"],"application/vnd.openxmlformats-officedocument.presentationml.template":["potx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":["xlsx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.template":["xltx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":["docx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.template":["dotx"],"application/vnd.osgeo.mapguide.package":["mgp"],"application/vnd.osgi.dp":["dp"],"application/vnd.osgi.subsystem":["esa"],"application/vnd.palm":["pdb","pqa","oprc"],"application/vnd.pawaafile":["paw"],"application/vnd.pg.format":["str"],"application/vnd.pg.osasli":["ei6"],"application/vnd.picsel":["efif"],"application/vnd.pmi.widget":["wg"],"application/vnd.pocketlearn":["plf"],"application/vnd.powerbuilder6":["pbd"],"application/vnd.previewsystems.box":["box"],"application/vnd.proteus.magazine":["mgz"],"application/vnd.publishare-delta-tree":["qps"],"application/vnd.pvi.ptid1":["ptid"],"application/vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"application/vnd.rar":["rar"],"application/vnd.realvnc.bed":["bed"],"application/vnd.recordare.musicxml":["mxl"],"application/vnd.recordare.musicxml+xml":["musicxml"],"application/vnd.rig.cryptonote":["cryptonote"],"application/vnd.rim.cod":["cod"],"application/vnd.rn-realmedia":["rm"],"application/vnd.rn-realmedia-vbr":["rmvb"],"application/vnd.route66.link66+xml":["link66"],"application/vnd.sailingtracker.track":["st"],"application/vnd.seemail":["see"],"application/vnd.sema":["sema"],"application/vnd.semd":["semd"],"application/vnd.semf":["semf"],"application/vnd.shana.informed.formdata":["ifm"],"application/vnd.shana.informed.formtemplate":["itp"],"application/vnd.shana.informed.interchange":["iif"],"application/vnd.shana.informed.package":["ipk"],"application/vnd.simtech-mindmapper":["twd","twds"],"application/vnd.smaf":["mmf"],"application/vnd.smart.teacher":["teacher"],"application/vnd.software602.filler.form+xml":["fo"],"application/vnd.solent.sdkm+xml":["sdkm","sdkd"],"application/vnd.spotfire.dxp":["dxp"],"application/vnd.spotfire.sfs":["sfs"],"application/vnd.stardivision.calc":["sdc"],"application/vnd.stardivision.draw":["sda"],"application/vnd.stardivision.impress":["sdd"],"application/vnd.stardivision.math":["smf"],"application/vnd.stardivision.writer":["sdw","vor"],"application/vnd.stardivision.writer-global":["sgl"],"application/vnd.stepmania.package":["smzip"],"application/vnd.stepmania.stepchart":["sm"],"application/vnd.sun.wadl+xml":["wadl"],"application/vnd.sun.xml.calc":["sxc"],"application/vnd.sun.xml.calc.template":["stc"],"application/vnd.sun.xml.draw":["sxd"],"application/vnd.sun.xml.draw.template":["std"],"application/vnd.sun.xml.impress":["sxi"],"application/vnd.sun.xml.impress.template":["sti"],"application/vnd.sun.xml.math":["sxm"],"application/vnd.sun.xml.writer":["sxw"],"application/vnd.sun.xml.writer.global":["sxg"],"application/vnd.sun.xml.writer.template":["stw"],"application/vnd.sus-calendar":["sus","susp"],"application/vnd.svd":["svd"],"application/vnd.symbian.install":["sis","sisx"],"application/vnd.syncml+xml":["xsm"],"application/vnd.syncml.dm+wbxml":["bdm"],"application/vnd.syncml.dm+xml":["xdm"],"application/vnd.syncml.dmddf+xml":["ddf"],"application/vnd.tao.intent-module-archive":["tao"],"application/vnd.tcpdump.pcap":["pcap","cap","dmp"],"application/vnd.tmobile-livetv":["tmo"],"application/vnd.trid.tpt":["tpt"],"application/vnd.triscape.mxs":["mxs"],"application/vnd.trueapp":["tra"],"application/vnd.ufdl":["ufd","ufdl"],"application/vnd.uiq.theme":["utz"],"application/vnd.umajin":["umj"],"application/vnd.unity":["unityweb"],"application/vnd.uoml+xml":["uoml"],"application/vnd.vcx":["vcx"],"application/vnd.visio":["vsd","vst","vss","vsw"],"application/vnd.visionary":["vis"],"application/vnd.vsf":["vsf"],"application/vnd.wap.wbxml":["wbxml"],"application/vnd.wap.wmlc":["wmlc"],"application/vnd.wap.wmlscriptc":["wmlsc"],"application/vnd.webturbo":["wtb"],"application/vnd.wolfram.player":["nbp"],"application/vnd.wordperfect":["wpd"],"application/vnd.wqd":["wqd"],"application/vnd.wt.stf":["stf"],"application/vnd.xara":["xar"],"application/vnd.xfdl":["xfdl"],"application/vnd.yamaha.hv-dic":["hvd"],"application/vnd.yamaha.hv-script":["hvs"],"application/vnd.yamaha.hv-voice":["hvp"],"application/vnd.yamaha.openscoreformat":["osf"],"application/vnd.yamaha.openscoreformat.osfpvg+xml":["osfpvg"],"application/vnd.yamaha.smaf-audio":["saf"],"application/vnd.yamaha.smaf-phrase":["spf"],"application/vnd.yellowriver-custom-menu":["cmp"],"application/vnd.zul":["zir","zirz"],"application/vnd.zzazz.deck+xml":["zaz"],"application/x-7z-compressed":["7z"],"application/x-abiword":["abw"],"application/x-ace-compressed":["ace"],"application/x-apple-diskimage":["*dmg"],"application/x-arj":["arj"],"application/x-authorware-bin":["aab","x32","u32","vox"],"application/x-authorware-map":["aam"],"application/x-authorware-seg":["aas"],"application/x-bcpio":["bcpio"],"application/x-bdoc":["*bdoc"],"application/x-bittorrent":["torrent"],"application/x-blorb":["blb","blorb"],"application/x-bzip":["bz"],"application/x-bzip2":["bz2","boz"],"application/x-cbr":["cbr","cba","cbt","cbz","cb7"],"application/x-cdlink":["vcd"],"application/x-cfs-compressed":["cfs"],"application/x-chat":["chat"],"application/x-chess-pgn":["pgn"],"application/x-chrome-extension":["crx"],"application/x-cocoa":["cco"],"application/x-conference":["nsc"],"application/x-cpio":["cpio"],"application/x-csh":["csh"],"application/x-debian-package":["*deb","udeb"],"application/x-dgc-compressed":["dgc"],"application/x-director":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"],"application/x-doom":["wad"],"application/x-dtbncx+xml":["ncx"],"application/x-dtbook+xml":["dtb"],"application/x-dtbresource+xml":["res"],"application/x-dvi":["dvi"],"application/x-envoy":["evy"],"application/x-eva":["eva"],"application/x-font-bdf":["bdf"],"application/x-font-ghostscript":["gsf"],"application/x-font-linux-psf":["psf"],"application/x-font-pcf":["pcf"],"application/x-font-snf":["snf"],"application/x-font-type1":["pfa","pfb","pfm","afm"],"application/x-freearc":["arc"],"application/x-futuresplash":["spl"],"application/x-gca-compressed":["gca"],"application/x-glulx":["ulx"],"application/x-gnumeric":["gnumeric"],"application/x-gramps-xml":["gramps"],"application/x-gtar":["gtar"],"application/x-hdf":["hdf"],"application/x-httpd-php":["php"],"application/x-install-instructions":["install"],"application/x-iso9660-image":["*iso"],"application/x-iwork-keynote-sffkey":["*key"],"application/x-iwork-numbers-sffnumbers":["*numbers"],"application/x-iwork-pages-sffpages":["*pages"],"application/x-java-archive-diff":["jardiff"],"application/x-java-jnlp-file":["jnlp"],"application/x-keepass2":["kdbx"],"application/x-latex":["latex"],"application/x-lua-bytecode":["luac"],"application/x-lzh-compressed":["lzh","lha"],"application/x-makeself":["run"],"application/x-mie":["mie"],"application/x-mobipocket-ebook":["prc","mobi"],"application/x-ms-application":["application"],"application/x-ms-shortcut":["lnk"],"application/x-ms-wmd":["wmd"],"application/x-ms-wmz":["wmz"],"application/x-ms-xbap":["xbap"],"application/x-msaccess":["mdb"],"application/x-msbinder":["obd"],"application/x-mscardfile":["crd"],"application/x-msclip":["clp"],"application/x-msdos-program":["*exe"],"application/x-msdownload":["*exe","*dll","com","bat","*msi"],"application/x-msmediaview":["mvb","m13","m14"],"application/x-msmetafile":["*wmf","*wmz","*emf","emz"],"application/x-msmoney":["mny"],"application/x-mspublisher":["pub"],"application/x-msschedule":["scd"],"application/x-msterminal":["trm"],"application/x-mswrite":["wri"],"application/x-netcdf":["nc","cdf"],"application/x-ns-proxy-autoconfig":["pac"],"application/x-nzb":["nzb"],"application/x-perl":["pl","pm"],"application/x-pilot":["*prc","*pdb"],"application/x-pkcs12":["p12","pfx"],"application/x-pkcs7-certificates":["p7b","spc"],"application/x-pkcs7-certreqresp":["p7r"],"application/x-rar-compressed":["*rar"],"application/x-redhat-package-manager":["rpm"],"application/x-research-info-systems":["ris"],"application/x-sea":["sea"],"application/x-sh":["sh"],"application/x-shar":["shar"],"application/x-shockwave-flash":["swf"],"application/x-silverlight-app":["xap"],"application/x-sql":["sql"],"application/x-stuffit":["sit"],"application/x-stuffitx":["sitx"],"application/x-subrip":["srt"],"application/x-sv4cpio":["sv4cpio"],"application/x-sv4crc":["sv4crc"],"application/x-t3vm-image":["t3"],"application/x-tads":["gam"],"application/x-tar":["tar"],"application/x-tcl":["tcl","tk"],"application/x-tex":["tex"],"application/x-tex-tfm":["tfm"],"application/x-texinfo":["texinfo","texi"],"application/x-tgif":["*obj"],"application/x-ustar":["ustar"],"application/x-virtualbox-hdd":["hdd"],"application/x-virtualbox-ova":["ova"],"application/x-virtualbox-ovf":["ovf"],"application/x-virtualbox-vbox":["vbox"],"application/x-virtualbox-vbox-extpack":["vbox-extpack"],"application/x-virtualbox-vdi":["vdi"],"application/x-virtualbox-vhd":["vhd"],"application/x-virtualbox-vmdk":["vmdk"],"application/x-wais-source":["src"],"application/x-web-app-manifest+json":["webapp"],"application/x-x509-ca-cert":["der","crt","pem"],"application/x-xfig":["fig"],"application/x-xliff+xml":["*xlf"],"application/x-xpinstall":["xpi"],"application/x-xz":["xz"],"application/x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"audio/vnd.dece.audio":["uva","uvva"],"audio/vnd.digital-winds":["eol"],"audio/vnd.dra":["dra"],"audio/vnd.dts":["dts"],"audio/vnd.dts.hd":["dtshd"],"audio/vnd.lucent.voice":["lvp"],"audio/vnd.ms-playready.media.pya":["pya"],"audio/vnd.nuera.ecelp4800":["ecelp4800"],"audio/vnd.nuera.ecelp7470":["ecelp7470"],"audio/vnd.nuera.ecelp9600":["ecelp9600"],"audio/vnd.rip":["rip"],"audio/x-aac":["aac"],"audio/x-aiff":["aif","aiff","aifc"],"audio/x-caf":["caf"],"audio/x-flac":["flac"],"audio/x-m4a":["*m4a"],"audio/x-matroska":["mka"],"audio/x-mpegurl":["m3u"],"audio/x-ms-wax":["wax"],"audio/x-ms-wma":["wma"],"audio/x-pn-realaudio":["ram","ra"],"audio/x-pn-realaudio-plugin":["rmp"],"audio/x-realaudio":["*ra"],"audio/x-wav":["*wav"],"chemical/x-cdx":["cdx"],"chemical/x-cif":["cif"],"chemical/x-cmdf":["cmdf"],"chemical/x-cml":["cml"],"chemical/x-csml":["csml"],"chemical/x-xyz":["xyz"],"image/prs.btif":["btif"],"image/prs.pti":["pti"],"image/vnd.adobe.photoshop":["psd"],"image/vnd.airzip.accelerator.azv":["azv"],"image/vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"image/vnd.djvu":["djvu","djv"],"image/vnd.dvb.subtitle":["*sub"],"image/vnd.dwg":["dwg"],"image/vnd.dxf":["dxf"],"image/vnd.fastbidsheet":["fbs"],"image/vnd.fpx":["fpx"],"image/vnd.fst":["fst"],"image/vnd.fujixerox.edmics-mmr":["mmr"],"image/vnd.fujixerox.edmics-rlc":["rlc"],"image/vnd.microsoft.icon":["ico"],"image/vnd.ms-dds":["dds"],"image/vnd.ms-modi":["mdi"],"image/vnd.ms-photo":["wdp"],"image/vnd.net-fpx":["npx"],"image/vnd.pco.b16":["b16"],"image/vnd.tencent.tap":["tap"],"image/vnd.valve.source.texture":["vtf"],"image/vnd.wap.wbmp":["wbmp"],"image/vnd.xiff":["xif"],"image/vnd.zbrush.pcx":["pcx"],"image/x-3ds":["3ds"],"image/x-cmu-raster":["ras"],"image/x-cmx":["cmx"],"image/x-freehand":["fh","fhc","fh4","fh5","fh7"],"image/x-icon":["*ico"],"image/x-jng":["jng"],"image/x-mrsid-image":["sid"],"image/x-ms-bmp":["*bmp"],"image/x-pcx":["*pcx"],"image/x-pict":["pic","pct"],"image/x-portable-anymap":["pnm"],"image/x-portable-bitmap":["pbm"],"image/x-portable-graymap":["pgm"],"image/x-portable-pixmap":["ppm"],"image/x-rgb":["rgb"],"image/x-tga":["tga"],"image/x-xbitmap":["xbm"],"image/x-xpixmap":["xpm"],"image/x-xwindowdump":["xwd"],"message/vnd.wfa.wsc":["wsc"],"model/vnd.collada+xml":["dae"],"model/vnd.dwf":["dwf"],"model/vnd.gdl":["gdl"],"model/vnd.gtw":["gtw"],"model/vnd.mts":["mts"],"model/vnd.opengex":["ogex"],"model/vnd.parasolid.transmit.binary":["x_b"],"model/vnd.parasolid.transmit.text":["x_t"],"model/vnd.sap.vds":["vds"],"model/vnd.usdz+zip":["usdz"],"model/vnd.valve.source.compiled-map":["bsp"],"model/vnd.vtu":["vtu"],"text/prs.lines.tag":["dsc"],"text/vnd.curl":["curl"],"text/vnd.curl.dcurl":["dcurl"],"text/vnd.curl.mcurl":["mcurl"],"text/vnd.curl.scurl":["scurl"],"text/vnd.dvb.subtitle":["sub"],"text/vnd.fly":["fly"],"text/vnd.fmi.flexstor":["flx"],"text/vnd.graphviz":["gv"],"text/vnd.in3d.3dml":["3dml"],"text/vnd.in3d.spot":["spot"],"text/vnd.sun.j2me.app-descriptor":["jad"],"text/vnd.wap.wml":["wml"],"text/vnd.wap.wmlscript":["wmls"],"text/x-asm":["s","asm"],"text/x-c":["c","cc","cxx","cpp","h","hh","dic"],"text/x-component":["htc"],"text/x-fortran":["f","for","f77","f90"],"text/x-handlebars-template":["hbs"],"text/x-java-source":["java"],"text/x-lua":["lua"],"text/x-markdown":["mkd"],"text/x-nfo":["nfo"],"text/x-opml":["opml"],"text/x-org":["*org"],"text/x-pascal":["p","pas"],"text/x-processing":["pde"],"text/x-sass":["sass"],"text/x-scss":["scss"],"text/x-setext":["etx"],"text/x-sfv":["sfv"],"text/x-suse-ymp":["ymp"],"text/x-uuencode":["uu"],"text/x-vcalendar":["vcs"],"text/x-vcard":["vcf"],"video/vnd.dece.hd":["uvh","uvvh"],"video/vnd.dece.mobile":["uvm","uvvm"],"video/vnd.dece.pd":["uvp","uvvp"],"video/vnd.dece.sd":["uvs","uvvs"],"video/vnd.dece.video":["uvv","uvvv"],"video/vnd.dvb.file":["dvb"],"video/vnd.fvt":["fvt"],"video/vnd.mpegurl":["mxu","m4u"],"video/vnd.ms-playready.media.pyv":["pyv"],"video/vnd.uvvu.mp4":["uvu","uvvu"],"video/vnd.vivo":["viv"],"video/x-f4v":["f4v"],"video/x-fli":["fli"],"video/x-flv":["flv"],"video/x-m4v":["m4v"],"video/x-matroska":["mkv","mk3d","mks"],"video/x-mng":["mng"],"video/x-ms-asf":["asf","asx"],"video/x-ms-vob":["vob"],"video/x-ms-wm":["wm"],"video/x-ms-wmv":["wmv"],"video/x-ms-wmx":["wmx"],"video/x-ms-wvx":["wvx"],"video/x-msvideo":["avi"],"video/x-sgi-movie":["movie"],"video/x-smv":["smv"],"x-conference/x-cooltalk":["ice"]}},8446:e=>{e.exports={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["es","ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":["*3gpp"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avif":["avif"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/hsj2":["hsj2"],"image/ief":["ief"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm"],"image/jpx":["jpx","jpf"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]}},9211:e=>{"use strict";var t=function(e){return e!=e};e.exports=function(e,n){return 0===e&&0===n?1/e==1/n:e===n||!(!t(e)||!t(n))}},7653:(e,t,n)=>{"use strict";var r=n(8452),o=n(487),i=n(9211),a=n(9394),c=n(6576),l=o(a(),Object);r(l,{getPolyfill:a,implementation:i,shim:c}),e.exports=l},9394:(e,t,n)=>{"use strict";var r=n(9211);e.exports=function(){return"function"==typeof Object.is?Object.is:r}},6576:(e,t,n)=>{"use strict";var r=n(9394),o=n(8452);e.exports=function(){var e=r();return o(Object,{is:e},{is:function(){return Object.is!==e}}),e}},8875:(e,t,n)=>{"use strict";var r;if(!Object.keys){var o=Object.prototype.hasOwnProperty,i=Object.prototype.toString,a=n(1093),c=Object.prototype.propertyIsEnumerable,l=!c.call({toString:null},"toString"),s=c.call((function(){}),"prototype"),p=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],u=function(e){var t=e.constructor;return t&&t.prototype===e},d={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},f=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!d["$"+e]&&o.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{u(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();r=function(e){var t=null!==e&&"object"==typeof e,n="[object Function]"===i.call(e),r=a(e),c=t&&"[object String]"===i.call(e),d=[];if(!t&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var E=s&&n;if(c&&e.length>0&&!o.call(e,0))for(var _=0;_<e.length;++_)d.push(String(_));if(r&&e.length>0)for(var m=0;m<e.length;++m)d.push(String(m));else for(var v in e)E&&"prototype"===v||!o.call(e,v)||d.push(String(v));if(l)for(var I=function(e){if("undefined"==typeof window||!f)return u(e);try{return u(e)}catch(e){return!1}}(e),y=0;y<p.length;++y)I&&"constructor"===p[y]||!o.call(e,p[y])||d.push(p[y]);return d}}e.exports=r},1189:(e,t,n)=>{"use strict";var r=Array.prototype.slice,o=n(1093),i=Object.keys,a=i?function(e){return i(e)}:n(8875),c=Object.keys;a.shim=function(){if(Object.keys){var e=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);e||(Object.keys=function(e){return o(e)?c(r.call(e)):c(e)})}else Object.keys=a;return Object.keys||a},e.exports=a},1093:e=>{"use strict";var t=Object.prototype.toString;e.exports=function(e){var n=t.call(e),r="[object Arguments]"===n;return r||(r="[object Array]"!==n&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),r}},8403:(e,t,n)=>{"use strict";var r=n(1189),o=n(1333)(),i=n(8075),a=Object,c=i("Array.prototype.push"),l=i("Object.prototype.propertyIsEnumerable"),s=o?Object.getOwnPropertySymbols:null;e.exports=function(e,t){if(null==e)throw new TypeError("target must be an object");var n=a(e);if(1===arguments.length)return n;for(var i=1;i<arguments.length;++i){var p=a(arguments[i]),u=r(p),d=o&&(Object.getOwnPropertySymbols||s);if(d)for(var f=d(p),E=0;E<f.length;++E){var _=f[E];l(p,_)&&c(u,_)}for(var m=0;m<u.length;++m){var v=u[m];if(l(p,v)){var I=p[v];n[v]=I}}}return n}},1514:(e,t,n)=>{"use strict";var r=n(8403);e.exports=function(){return Object.assign?function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),n={},r=0;r<t.length;++r)n[t[r]]=t[r];var o=Object.assign({},n),i="";for(var a in o)i+=a;return e!==i}()||function(){if(!Object.assign||!Object.preventExtensions)return!1;var e=Object.preventExtensions({1:2});try{Object.assign(e,"xy")}catch(t){return"y"===e[1]}return!1}()?r:Object.assign:r}},5606:e=>{var t,n,r=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"==typeof clearTimeout?clearTimeout:i}catch(e){n=i}}();var c,l=[],s=!1,p=-1;function u(){s&&c&&(s=!1,c.length?l=c.concat(l):p=-1,l.length&&d())}function d(){if(!s){var e=a(u);s=!0;for(var t=l.length;t;){for(c=l,l=[];++p<t;)c&&c[p].run();p=-1,t=l.length}c=null,s=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===i||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function E(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new f(e,t)),1!==l.length||s||a(d)},f.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=E,r.addListener=E,r.once=E,r.off=E,r.removeListener=E,r.removeAllListeners=E,r.emit=E,r.prependListener=E,r.prependOnceListener=E,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},1135:e=>{e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},9032:(e,t,n)=>{"use strict";var r=n(7244),o=n(8184),i=n(5767),a=n(5680);function c(e){return e.call.bind(e)}var l="undefined"!=typeof BigInt,s="undefined"!=typeof Symbol,p=c(Object.prototype.toString),u=c(Number.prototype.valueOf),d=c(String.prototype.valueOf),f=c(Boolean.prototype.valueOf);if(l)var E=c(BigInt.prototype.valueOf);if(s)var _=c(Symbol.prototype.valueOf);function m(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function v(e){return"[object Map]"===p(e)}function I(e){return"[object Set]"===p(e)}function y(e){return"[object WeakMap]"===p(e)}function O(e){return"[object WeakSet]"===p(e)}function g(e){return"[object ArrayBuffer]"===p(e)}function N(e){return"undefined"!=typeof ArrayBuffer&&(g.working?g(e):e instanceof ArrayBuffer)}function L(e){return"[object DataView]"===p(e)}function T(e){return"undefined"!=typeof DataView&&(L.working?L(e):e instanceof DataView)}t.isArgumentsObject=r,t.isGeneratorFunction=o,t.isTypedArray=a,t.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},t.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):a(e)||T(e)},t.isUint8Array=function(e){return"Uint8Array"===i(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===i(e)},t.isUint16Array=function(e){return"Uint16Array"===i(e)},t.isUint32Array=function(e){return"Uint32Array"===i(e)},t.isInt8Array=function(e){return"Int8Array"===i(e)},t.isInt16Array=function(e){return"Int16Array"===i(e)},t.isInt32Array=function(e){return"Int32Array"===i(e)},t.isFloat32Array=function(e){return"Float32Array"===i(e)},t.isFloat64Array=function(e){return"Float64Array"===i(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===i(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===i(e)},v.working="undefined"!=typeof Map&&v(new Map),t.isMap=function(e){return"undefined"!=typeof Map&&(v.working?v(e):e instanceof Map)},I.working="undefined"!=typeof Set&&I(new Set),t.isSet=function(e){return"undefined"!=typeof Set&&(I.working?I(e):e instanceof Set)},y.working="undefined"!=typeof WeakMap&&y(new WeakMap),t.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(y.working?y(e):e instanceof WeakMap)},O.working="undefined"!=typeof WeakSet&&O(new WeakSet),t.isWeakSet=function(e){return O(e)},g.working="undefined"!=typeof ArrayBuffer&&g(new ArrayBuffer),t.isArrayBuffer=N,L.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&L(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=T;var h="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function b(e){return"[object SharedArrayBuffer]"===p(e)}function A(e){return void 0!==h&&(void 0===b.working&&(b.working=b(new h)),b.working?b(e):e instanceof h)}function w(e){return m(e,u)}function R(e){return m(e,d)}function S(e){return m(e,f)}function D(e){return l&&m(e,E)}function x(e){return s&&m(e,_)}t.isSharedArrayBuffer=A,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===p(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===p(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===p(e)},t.isGeneratorObject=function(e){return"[object Generator]"===p(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===p(e)},t.isNumberObject=w,t.isStringObject=R,t.isBooleanObject=S,t.isBigIntObject=D,t.isSymbolObject=x,t.isBoxedPrimitive=function(e){return w(e)||R(e)||S(e)||D(e)||x(e)},t.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(N(e)||A(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})}))},537:(e,t,n)=>{var r=n(5606),o=n(6763),i=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++)n[t[r]]=Object.getOwnPropertyDescriptor(e,t[r]);return n},a=/%[sdj%]/g;t.format=function(e){if(!O(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(p(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,o=r.length,i=String(e).replace(a,(function(e){if("%%"===e)return"%";if(n>=o)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}})),c=r[n];n<o;c=r[++n])I(c)||!L(c)?i+=" "+c:i+=" "+p(c);return i},t.deprecate=function(e,n){if(void 0!==r&&!0===r.noDeprecation)return e;if(void 0===r)return function(){return t.deprecate(e,n).apply(this,arguments)};var i=!1;return function(){if(!i){if(r.throwDeprecation)throw new Error(n);r.traceDeprecation?o.trace(n):o.error(n),i=!0}return e.apply(this,arguments)}};var c={},l=/^$/;if({IFRAME_SECURE_SITE:"v2.5.0-beta.3/elements/index.html",IFRAME_SECURE_ORIGIN:"https://js.skyflow-preview.com"}.NODE_DEBUG){var s={IFRAME_SECURE_SITE:"v2.5.0-beta.3/elements/index.html",IFRAME_SECURE_ORIGIN:"https://js.skyflow-preview.com"}.NODE_DEBUG;s=s.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),l=new RegExp("^"+s+"$","i")}function p(e,n){var r={seen:[],stylize:d};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),v(n)?r.showHidden=n:n&&t._extend(r,n),g(r.showHidden)&&(r.showHidden=!1),g(r.depth)&&(r.depth=2),g(r.colors)&&(r.colors=!1),g(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=u),f(r,e,r.depth)}function u(e,t){var n=p.styles[t];return n?"["+p.colors[n][0]+"m"+e+"["+p.colors[n][1]+"m":e}function d(e,t){return e}function f(e,n,r){if(e.customInspect&&n&&b(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var o=n.inspect(r,e);return O(o)||(o=f(e,o,r)),o}var i=function(e,t){if(g(t))return e.stylize("undefined","undefined");if(O(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(y(t))return e.stylize(""+t,"number");if(v(t))return e.stylize(""+t,"boolean");if(I(t))return e.stylize("null","null")}(e,n);if(i)return i;var a=Object.keys(n),c=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(n)),h(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return E(n);if(0===a.length){if(b(n)){var l=n.name?": "+n.name:"";return e.stylize("[Function"+l+"]","special")}if(N(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(T(n))return e.stylize(Date.prototype.toString.call(n),"date");if(h(n))return E(n)}var s,p="",u=!1,d=["{","}"];(m(n)&&(u=!0,d=["[","]"]),b(n))&&(p=" [Function"+(n.name?": "+n.name:"")+"]");return N(n)&&(p=" "+RegExp.prototype.toString.call(n)),T(n)&&(p=" "+Date.prototype.toUTCString.call(n)),h(n)&&(p=" "+E(n)),0!==a.length||u&&0!=n.length?r<0?N(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),s=u?function(e,t,n,r,o){for(var i=[],a=0,c=t.length;a<c;++a)S(t,String(a))?i.push(_(e,t,n,r,String(a),!0)):i.push("");return o.forEach((function(o){o.match(/^\d+$/)||i.push(_(e,t,n,r,o,!0))})),i}(e,n,r,c,a):a.map((function(t){return _(e,n,r,c,t,u)})),e.seen.pop(),function(e,t,n){var r=e.reduce((function(e,t){return t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0);if(r>60)return n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1];return n[0]+t+" "+e.join(", ")+" "+n[1]}(s,p,d)):d[0]+p+d[1]}function E(e){return"["+Error.prototype.toString.call(e)+"]"}function _(e,t,n,r,o,i){var a,c,l;if((l=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]}).get?c=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(c=e.stylize("[Setter]","special")),S(r,o)||(a="["+o+"]"),c||(e.seen.indexOf(l.value)<0?(c=I(n)?f(e,l.value,null):f(e,l.value,n-1)).indexOf("\n")>-1&&(c=i?c.split("\n").map((function(e){return" "+e})).join("\n").slice(2):"\n"+c.split("\n").map((function(e){return" "+e})).join("\n")):c=e.stylize("[Circular]","special")),g(a)){if(i&&o.match(/^\d+$/))return c;(a=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.slice(1,-1),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+c}function m(e){return Array.isArray(e)}function v(e){return"boolean"==typeof e}function I(e){return null===e}function y(e){return"number"==typeof e}function O(e){return"string"==typeof e}function g(e){return void 0===e}function N(e){return L(e)&&"[object RegExp]"===A(e)}function L(e){return"object"==typeof e&&null!==e}function T(e){return L(e)&&"[object Date]"===A(e)}function h(e){return L(e)&&("[object Error]"===A(e)||e instanceof Error)}function b(e){return"function"==typeof e}function A(e){return Object.prototype.toString.call(e)}function w(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(e=e.toUpperCase(),!c[e])if(l.test(e)){var n=r.pid;c[e]=function(){var r=t.format.apply(t,arguments);o.error("%s %d: %s",e,n,r)}}else c[e]=function(){};return c[e]},t.inspect=p,p.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},p.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=n(9032),t.isArray=m,t.isBoolean=v,t.isNull=I,t.isNullOrUndefined=function(e){return null==e},t.isNumber=y,t.isString=O,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=g,t.isRegExp=N,t.types.isRegExp=N,t.isObject=L,t.isDate=T,t.types.isDate=T,t.isError=h,t.types.isNativeError=h,t.isFunction=b,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(1135);var R=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function S(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,n;o.log("%s - %s",(e=new Date,n=[w(e.getHours()),w(e.getMinutes()),w(e.getSeconds())].join(":"),[e.getDate(),R[e.getMonth()],n].join(" ")),t.format.apply(t,arguments))},t.inherits=n(6698),t._extend=function(e,t){if(!t||!L(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e};var D="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function x(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(D&&e[D]){var t;if("function"!=typeof(t=e[D]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,D,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,r=new Promise((function(e,r){t=e,n=r})),o=[],i=0;i<arguments.length;i++)o.push(arguments[i]);o.push((function(e,r){e?n(e):t(r)}));try{e.apply(this,o)}catch(e){n(e)}return r}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),D&&Object.defineProperty(t,D,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,i(e))},t.promisify.custom=D,t.callbackify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');function t(){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n]);var o=t.pop();if("function"!=typeof o)throw new TypeError("The last argument must be of type Function");var i=this,a=function(){return o.apply(i,arguments)};e.apply(this,t).then((function(e){r.nextTick(a.bind(null,null,e))}),(function(e){r.nextTick(x.bind(null,e,a))}))}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,i(e)),t}},5767:(e,t,n)=>{"use strict";var r=n(2682),o=n(9209),i=n(487),a=n(8075),c=n(5795),l=a("Object.prototype.toString"),s=n(9092)(),p="undefined"==typeof globalThis?n.g:globalThis,u=o(),d=a("String.prototype.slice"),f=Object.getPrototypeOf,E=a("Array.prototype.indexOf",!0)||function(e,t){for(var n=0;n<e.length;n+=1)if(e[n]===t)return n;return-1},_={__proto__:null};r(u,s&&c&&f?function(e){var t=new p[e];if(Symbol.toStringTag in t){var n=f(t),r=c(n,Symbol.toStringTag);if(!r){var o=f(n);r=c(o,Symbol.toStringTag)}_["$"+e]=i(r.get)}}:function(e){var t=new p[e];_["$"+e]=i(t.slice)});e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!s){var t=d(l(e),8,-1);return E(u,t)>-1?t:"Object"===t&&function(e){var t=!1;return r(_,(function(n,r){if(!t)try{n(e),t=d(r,1)}catch(e){}})),t}(e)}return c?function(e){var t=!1;return r(_,(function(n,r){if(!t)try{"$"+n(e)===r&&(t=d(r,1))}catch(e){}})),t}(e):null}},4633:(e,t,n)=>{var r=n(3738).default;function o(){"use strict";e.exports=o=function(){return n},e.exports.__esModule=!0,e.exports.default=e.exports;var t,n={},i=Object.prototype,a=i.hasOwnProperty,c=Object.defineProperty||function(e,t,n){e[t]=n.value},l="function"==typeof Symbol?Symbol:{},s=l.iterator||"@@iterator",p=l.asyncIterator||"@@asyncIterator",u=l.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(t){d=function(e,t,n){return e[t]=n}}function f(e,t,n,r){var o=t&&t.prototype instanceof O?t:O,i=Object.create(o.prototype),a=new M(r||[]);return c(i,"_invoke",{value:R(e,n,a)}),i}function E(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}n.wrap=f;var _="suspendedStart",m="suspendedYield",v="executing",I="completed",y={};function O(){}function g(){}function N(){}var L={};d(L,s,(function(){return this}));var T=Object.getPrototypeOf,h=T&&T(T(P([])));h&&h!==i&&a.call(h,s)&&(L=h);var b=N.prototype=O.prototype=Object.create(L);function A(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function n(o,i,c,l){var s=E(e[o],e,i);if("throw"!==s.type){var p=s.arg,u=p.value;return u&&"object"==r(u)&&a.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,c,l)}),(function(e){n("throw",e,c,l)})):t.resolve(u).then((function(e){p.value=e,c(p)}),(function(e){return n("throw",e,c,l)}))}l(s.arg)}var o;c(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}})}function R(e,n,r){var o=_;return function(i,a){if(o===v)throw new Error("Generator is already running");if(o===I){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var c=r.delegate;if(c){var l=S(c,r);if(l){if(l===y)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===_)throw o=I,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=v;var s=E(e,n,r);if("normal"===s.type){if(o=r.done?I:m,s.arg===y)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=I,r.method="throw",r.arg=s.arg)}}}function S(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,S(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=E(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function D(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function M(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function P(e){if(e||""===e){var n=e[s];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(a.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(r(e)+" is not iterable")}return g.prototype=N,c(b,"constructor",{value:N,configurable:!0}),c(N,"constructor",{value:g,configurable:!0}),g.displayName=d(N,u,"GeneratorFunction"),n.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,N):(e.__proto__=N,d(e,u,"GeneratorFunction")),e.prototype=Object.create(b),e},n.awrap=function(e){return{__await:e}},A(w.prototype),d(w.prototype,p,(function(){return this})),n.AsyncIterator=w,n.async=function(e,t,r,o,i){void 0===i&&(i=Promise);var a=new w(f(e,t,r,o),i);return n.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},A(b),d(b,u,"Generator"),d(b,s,(function(){return this})),d(b,"toString",(function(){return"[object Generator]"})),n.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},n.values=P,M.prototype={constructor:M,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(x),!e)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(r,o){return c.type="throw",c.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],c=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var l=a.call(i,"catchLoc"),s=a.call(i,"finallyLoc");if(l&&s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),x(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;x(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:P(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),y}},n}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},3738:e=>{function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},4756:(e,t,n)=>{var r=n(4633)();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},9209:(e,t,n)=>{"use strict";var r=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],o="undefined"==typeof globalThis?n.g:globalThis;e.exports=function(){for(var e=[],t=0;t<r.length;t++)"function"==typeof o[r[t]]&&(e[e.length]=r[t]);return e}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.p="";var r={};return(()=>{"use strict";n.r(r),n.d(r,{CardMetadata:()=>e.CardMetadata,CardType:()=>Me,CollectContainer:()=>ho,CollectElement:()=>Vr,CollectElementInput:()=>e.CollectElementInput,CollectElementOptions:()=>e.CollectElementOptions,CollectElementUpdateOptions:()=>e.CollectElementUpdateOptions,CollectOptions:()=>e.ICollectOptions,CollectResponse:()=>e.CollectResponse,ComposableContainer:()=>_i,ComposableElement:()=>Xr,ContainerOptions:()=>e.ContainerOptions,ContainerType:()=>Ai,DeleteOptions:()=>e.IDeleteOptions,DeleteRecord:()=>e.IDeleteRecord,DeleteRequest:()=>e.IDeleteRecordInput,DeleteResponse:()=>e.DeleteResponse,DetokenizeRecord:()=>e.DetokenizeRecord,DetokenizeRequest:()=>e.IDetokenizeInput,DetokenizeResponse:()=>e.DetokenizeResponse,ElementState:()=>e.ElementState,ElementType:()=>xe,Env:()=>lt,ErrorTextStyles:()=>e.ErrorTextStyles,EventName:()=>at,GetByIdRequest:()=>e.IGetByIdInput,GetByIdResponse:()=>e.GetByIdResponse,GetOptions:()=>e.IGetOptions,GetRecord:()=>e.IGetRecord,GetRequest:()=>e.IGetInput,GetResponse:()=>e.GetResponse,InputStyles:()=>e.InputStyles,InsertOptions:()=>e.IInsertOptions,InsertRecord:()=>e.IInsertRecord,InsertRequest:()=>e.IInsertRecordInput,InsertResponse:()=>e.InsertResponse,LabelStyles:()=>e.LabelStyles,LogLevel:()=>ct,RedactionType:()=>ot,RenderFileResponse:()=>e.RenderFileResponse,RevealContainer:()=>or,RevealElement:()=>kn,RevealElementInput:()=>t.IRevealElementInput,RevealElementOptions:()=>t.IRevealElementOptions,RevealRecord:()=>e.IRevealRecord,RevealResponse:()=>e.RevealResponse,SkyflowConfig:()=>i.ISkyflow,ThreeDS:()=>Li,ThreeDSBrowserDetails:()=>o.ThreeDSBrowserDetails,UploadFilesResponse:()=>e.UploadFilesResponse,ValidationRule:()=>e.IValidationRule,ValidationRuleType:()=>pt,default:()=>Fi});var e={};n.r(e),n.d(e,{o9:()=>lt,Ur:()=>at,$b:()=>ct,Go:()=>st,eb:()=>ot,dF:()=>it,UL:()=>pt});var t={};n.r(t),n.d(t,{A:()=>or});var o={};n.r(o),n.d(o,{A:()=>Li});var i={};function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function c(e){var t=function(e,t){if("object"!==a(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===a(t)?t:String(t)}function l(e,t,n){return(t=c(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,c(r.key),r)}}function u(e,t,n){return t&&p(e.prototype,t),n&&p(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function d(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function f(e,t,n){return function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}(e,d(e,t,"set"),n),n}function E(e,t){return function(e,t){return t.get?t.get.call(e):t.value}(e,d(e,t,"get"))}n.r(i),n.d(i,{K:()=>Ai,A:()=>Ui});var _=n(2281),m=n.n(_);function v(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=crypto.getRandomValues(new Uint32Array(1))[0]/Math.pow(2,32)*16|0;return("x"===e?t:3&t|8).toString(16)}))}const I=n.p+"2afb5d11fb02e9292eaf.svg",y=n.p+"5408d9cd30b616684aa0.svg",O=n.p+"a9431336dd9f3e17b880.svg",g=n.p+"9b996d698afd3d404564.svg",N=n.p+"404966085770d8ec21ca.svg",L=n.p+"8062a86943450f142966.svg",T=n.p+"407dfd9c3fd800945b74.svg",h=n.p+"08ad88dee7d4519954ec.svg",b=n.p+"d418de915d45f039ac22.svg",A=n.p+"cbee67fb3d652dad9e25.svg",w=(n.p,n.p,n.p,n.p+"bcd5969a8a86792c2995.svg");const R={infoLogs:{INITIALIZE_CLIENT:"%s1 - Initializing skyflow client.",CLIENT_INITIALIZED:"%s1 - Initialized skyflow client successfully.",CREATE_COLLECT_CONTAINER:"%s1 - Creating Collect container.",COLLECT_CONTAINER_CREATED:"%s1 - Created Collect container successfully.",CREATE_REVEAL_CONTAINER:"%s1 - Creating Reveal container.",REVEAL_CONTAINER_CREATED:"%s1 - Created Reveal container successfully.",VALIDATE_RECORDS:"%s1 - Validating insert records.",VALIDATE_DETOKENIZE_INPUT:"%s1 - Validating detokenize input.",VALIDATE_GET_INPUT:"%s1 - Validating get input.",VALIDATE_DELETE_INPUT:"%s1 - Validating delete input.",VALIDATE_COLLECT_RECORDS:"%s1 - Validating collect element input.",VALIDATE_REVEAL_RECORDS:"%s1 - Validating reveal element input.",VALIDATE_RENDER_RECORDS:"%s1 - Validating file render element input.",CREATED_ELEMENT:"%s1 - Created %s2 element.",ELEMENT_MOUNTED:"%s1 - %s2 Element mounted.",ELEMENT_REVEALED:"%s1 - %s2 Element revealed.",FILE_RENDERED:"%s1 - %s2 File rendered.",COLLECT_SUBMIT_SUCCESS:"%s1 - Data has been collected successfully.",REVEAL_SUBMIT_SUCCESS:"%s1 - Data has been revealed successfully.",RENDER_SUBMIT_SUCCESS:"%s1 - File download URL has been fetched successfully.",INSERT_DATA_SUCCESS:"%s1 - Data has been inserted successfully.",DETOKENIZE_SUCCESS:"%s1 - Data has been revealed successfully.",GET_SUCCESS:"%s1 - Data has been revealed successfully.",DELETE_SUCCESS:"%s1 - Data has been deleted successfully.",BEARER_TOKEN_LISTENER:"%s1 - Get bearer token listener added.",CAPTURED_BEARER_TOKEN_EVENT:"%s1 - Captured bearer token event.",BEARER_TOKEN_RESOLVED:"%s1 - GetBearerToken promise resolved successfully.",REUSE_BEARER_TOKEN:"%s1 - Reusing the bearer token.",PUREJS_CONTROLLER_INITIALIZED:"%s1 - SkyflowController initialized.",PUREJS_LISTENER_READY:"%s1 - Purejs listener ready.",EMIT_PURE_JS_CONTROLLER:"%s1 - Emitted Skyflow controller event.",INSERT_TRIGGERED:"%s1 - Insert method triggered.",DETOKENIZE_TRIGGERED:"%s1 - Detokenize method triggered.",GET_TRIGGERED:"%s1 - Get method triggered.",GET_BY_ID_TRIGGERED:"%s1 - Get method triggered.",DELETE_TRIGGERED:"%s1 - Delete method triggered.",EMIT_PURE_JS_REQUEST:"%s1 - Emitted %s2 request.",CAPTURE_PURE_JS_REQUEST:"%s1 - Captured %s2 event.",LISTEN_PURE_JS_REQUEST:"%s1 - Listening to %s2 event.",CAPTURE_PUREJS_FRAME:"%s1 - Captured SkyflowController frame ready event.",FETCH_RECORDS_RESOLVED:"%s1 - Detokenize request is resolved.",INSERT_RECORDS_RESOLVED:"%s1 - Insert request is resolved.",GET_RESOLVED:"%s1 - Get request is resolved.",GET_BY_SKYFLOWID_RESOLVED:"%s1 - GetById request is resolved.",DELETE_RESOLVED:"%s1 - Delete request is resolved",EMIT_EVENT:"%s1 - %s2 event emitted",CAPTURE_EVENT:"%s1 - Captured event %s2",METRIC_CAPTURE_EVENT:"Metric event captured Successfully",UNKNOWN_METRIC_CAPTURE_EVENT:"Metric event capturing Failed with %s1",UNKNOWN_RESPONSE_FROM_METRIC_EVENT:"Metric event Captured with Unknown Response",LISTEN_COLLECT_FRAME_READY:"%s1 - Listening to collect FRAME_READY event",EMIT_COLLECT_ELEMENT_FRAME_READY:"%s1 - Emitting collect element %s2 FRAME_READY event",ENTERED_COLLECT_FRAME_READY_CB:"%s1 - In IFrameForm constructor, Entered FRAME_READY callback",EXECUTE_COLLECT_ELEMENT_FRAME_READY_CB:"%s1 - In IFrameForm, executing collect element, %s2 FRAME_READY callback",CLIENT_METADATA_NOT_SET:"%s1 - Client metadata not set",EXECUTE_COLLECT_ELEMENT_INIT:"%s1 - calling Collect element init",INSIDE__COLLECT_ELEMENT_INIT:"%s1 - Inside Collect element init for %s2",CREATING_COLLECT_ELEMENT_FORM:"%s1 - Start, creating iframe form for %s2",COLLECT_FRAME_READY_CB:"%s1 - In FrameElements, executing collect element FRAME_READY cb for %s2, sending metadata",INSIDE_FRAME_ELEMENTS_CONSTRUCOTR:"%s1 - Inside FrameElements constructor",SETUP_IN_START:"%s1 - Inside FrameElements start(), calling setup",SETUP_IN_CONSTRUCTOR:"%s1 - Inside FrameElements constructor, calling setup",COLLECT_ELEMET_START:"%s1 - %s2, Collect Element start",COLLECT_CONTROLLER_START:"%s1 - %s2, Collect Controller start",REVEAL_ELEMENT_START:"%s1 - %s2, Reveal Element start",EMIT_COLLECT_FRAME_CONTROLLER_EVENT:"%s1 - Emit collect FrameController FRAME_READY event",EXECUTE_COLLECT_CONTROLLER_READY_CB:"%s1 - Executing collect FrameController FRAME_READY callback, set client metadata",IFRAMEFORM_CONSTRUCTOR_FRAME_READY_LISTNER:"%s1 - In IFrameForm constructor, Adding listener for FRAME_READY event",IFRAMEFORM_CONSTRUCTOR_TOKENIZATION_LISTNER:"%s1 - In IFrameForm constructor, Adding listener for TOKENIZATION_REQUEST event",CURRENT_ENV:"%s1 - Client Env is %s2",CURRENT_LOG_LEVEL:"%s1 - Client LogLevel is %s2",VALIDATE_GET_BY_ID_INPUT:"%s1 - Validating getByID input."},errorLogs:{FRAME_COLLECT_EMIT_TIMEOUT:"Collect frame emit timeout. Make sure to Emit all elements events before invoking 'collect' function.",NO_ELEMENTS_IN_COLLECT:"Validation error. No elements found in collect container",NO_ELEMENTS_IN_COMPOSABLE:"Validation error. No elements found in composable container",NO_ELEMENTS_IN_REVEAL:"Validation error. No elements found in reveal container",INVALID_FILE_NAMES:"Invalid File Name. Only alphanumeric characters and !-_.*() are allowed.",INVALID_FILE_NAME:"Invalid File Name. Only alphanumeric characters and !-_.*() are allowed.",CLIENT_CONNECTION:"client connection not established. client info has not reached iframes",INVALID_BEARER_TOKEN:"Token generated from 'getBearerToken' callback function is invalid. Make sure the implementation of 'getBearerToken' is correct.",BEARER_TOKEN_REJECTED:"'getBearerToken' callback function call failed with rejected promise. Make sure the implementation of 'getBearerToken' is correct.",VAULTID_IS_REQUIRED:"Initialization failed. Invalid credentials. Specify a valid 'vaultID'.",EMPTY_VAULTID_IN_INIT:"Initialization failed. Invalid credentials. Specify a valid 'vaultID'.",VAULTURL_IS_REQUIRED:"Initialization failed. Invalid credentials. Specify a valid 'vaultURL'",EMPTY_VAULTURL_IN_INIT:"Initialization failed. Invalid credentials. Specify a valid 'vaultURL'",INVALID_VAULTURL_IN_INIT:"Initialization failed. Invalid client credentials. 'vaultURL' must be begin with 'https://.'",GET_BEARER_TOKEN_IS_REQUIRED:"Initialization failed. Invalid client credentials. Specify a valid bearer token.",EMPTY_CONTAINER_TYPE:"Container creation failed. 'containerType' is invalid. Specify a valid container type.",INVALID_CONTAINER_TYPE:"Container creation failed. '%s1' is invalid. Specify a valid container type.",INVALID_COLLECT_VALUE:"Invalid value",INVALID_COLLECT_VALUE_WITH_LABEL:"Invalid %s1",REQUIRED_COLLECT_VALUE:"%s1 is required",DEFAULT_REQUIRED_COLLECT_VALUE:"Field is required",RECORDS_KEY_NOT_FOUND:"Validation error. Invalid 'records' key found. Specify a value of type array instead.",INVALID_RECORDS_IN_INSERT:"Validation error. Invalid records. Specify a value of type array instead.",EMPTY_RECORDS_IN_INSERT:"Validation error. 'records' key cannot be empty. Provide a non-empty value instead.",MISSING_TABLE_IN_INSERT:"Validation error. Missing 'table' key in records at index %s1. Provide a valid 'table' key.",EMPTY_TABLE_IN_INSERT:"Validation error. 'table' key cannot be empty in records at index %s1. Specify a non-empty value instead.",INVALID_TABLE_IN_INSERT:"Validation error. Invalid 'table' key in records at index %s1. Specify a value of type string instead.",EMPTY_FIELDS_IN_INSERT:"Validation error. Missing 'fields' key in records at index %s1. Provide a valid 'fields' key.",MISSING_FIELDS_IN_INSERT:"Validation error. 'fields' key cannot be empty in records at index %s1. Specify a non-empty value instead.",INVALID_FIELDS_IN_INSERT:"Validation error. Invalid 'fields' key in records at index %s1. Specify a value of type object instead.",INVALID_TOKENS_IN_INSERT:"Validation error.Invalid 'tokens' key in insert options. Specify a boolean value for tokens.",RECORDS_KEY_NOT_FOUND_DELETE:"Validation error. Missing 'records' key. Provide a valid 'records' key.",INVALID_RECORDS_IN_DELETE:"Validation error. Invalid 'records' key found. Specify a value of type array instead.",EMPTY_RECORDS_IN_DELETE:"Validation error. 'records' key cannot be empty. Provide a non-empty value instead.",MISSING_TABLE_IN_DELETE:"Validation error. Missing 'table' key in records at index %s1. Provide a valid 'table' key.",EMPTY_TABLE_IN_DELETE:"Validation error. 'table' key cannot be empty in records at index %s1. Specify a non-empty value instead.",INVALID_TABLE_IN_DELETE:"Validation error. Invalid 'table' key in records at index %s1. Specify a value of type string instead.",MISSING_ID_IN_DELETE:"Validation error. Missing 'id' key in records at index %s1. Provide a valid 'id' key.",EMPTY_ID_IN_DELETE:"Validation error. 'id' key cannot be empty in records at index %s1. Specify a non-empty value instead.",INVALID_ID_IN_DELETE:"Validation error. Invalid 'id' key in records at index %s1. Specify a value of type string instead.",DELETE_RECORDS_REJECTED:"Delete failed. Delete request is rejected.",INVALID_TOKENS_IN_COLLECT:"Validation error. Invalid tokens. Specify a boolean value for tokens.",RECORDS_KEY_NOT_FOUND_IN_ADDITIONAL_FIELDS:"Validation error.records key not found in additionalFields. Specify a records key in addtionalFields.",INVALID_RECORDS_IN_ADDITIONAL_FIELDS:"Validation error.'records' must be an array within additionalFields.",EMPTY_RECORDS_IN_ADDITIONAL_FIELDS:"Validation error. 'records' object cannot be empty within additionalFields. Specify a non-empty value instead.",MISSING_TABLE_IN_ADDITIONAL_FIELDS:"Validation error. 'table' key not found in additionalFields record at index %s1",INVALID_TABLE_IN_ADDITIONAL_FIELDS:"Validation error.Invalid table key value in additionalFields record at index %s1. Specify a value of type string for table key.",INVALID_SKYFLOW_ID_IN_ADDITIONAL_FIELDS:"Validation error.Invalid 'skyflow_id' key value in additionalFields record at index %s1. Specify a valid value for 'skyflow_id' key.",MISSING_FIELDS_IN_ADDITIONAL_FIELDS:"Validation error.'fields' key not found in additionalFields record at index %s1. Specify a 'fields' key in additionalFields record at index %s1.",INVALID_FIELDS_IN_ADDITIONAL_FIELDS:"Validation error.invaid 'fields' key value in additionalFields record at index %s1. Specify a value of type array for 'fields' key.",RECORDS_KEY_NOT_FOUND_DETOKENIZE:"Delete failed. Delete request is rejected.",EMPTY_RECORDS_DETOKENIZE:"Validation error. Invalid 'records' key found. Specify a value of type array instead.",INVALID_RECORDS_IN_DETOKENIZE:"Validation error. 'records' key cannot be empty. Provide a non-empty value instead.",MISSING_TOKEN_IN_DETOKENIZE:"Validation error. Missing 'token' key in records at index %s1. Provide a valid 'token' key.",INVALID_TOKEN_IN_DETOKENIZE:"Validation error. Invalid 'token' key in records at index %s1. Specify a value of type string instead.",RECORDS_KEY_NOT_FOUND_GET:"Validation error. Missing 'records' key. Provide a valid 'records' key.",INVALID_RECORDS_IN_GET:"Validation error. Invalid 'records' key found. Specify a value of type array instead.",EMPTY_RECORDS_GET:"Validation error. 'records' key cannot be empty. Provide a non-empty value instead.",MISSING_IDS_IN_GET:"Validation error. Missing 'ids' key in records at index %s1. Provide a valid 'ids' key.",INVALID_IDS_IN_GET:"Validation error. Invalid 'ids' key found. Specify a value of type array instead.",INVALID_COLUMN_VALUES_IN_GET:"Validation error. Invalid 'columnValues' key found. Specify a value of type array instead.",EMPTY_IDS_IN_GET:"Validation error. 'ids' key cannot be an array of empty strings in records at index %s1. Specify non-empty values instead.",INVALID_SKYFLOWID_TYPE_IN_GET:"Validation error. Invalid 'id' found in 'ids' array in 'records' at index %s1 . Specify a value of type string instead.",MISSING_TABLE_IN_GET:"Validation error. Missing 'table' key in records at index %s1. Provide a valid 'table' key.",INVALID_TABLE_IN_GET:"Validation error. Invalid 'table' key in records at index %s1. Specify a value of type string instead.",MISSING_REDACTION_IN_GET:"Validation error. Missing 'redaction' key in records at index %s1. Provide a valid 'redaction' key.",INVALID_REDACTION_TYPE_IN_GET:"Validation error. Invalid 'redaction' key in records at index %s1. Specify a valid redaction type.",INVALID_TOKENS_IN_GET:"Validation error. Invalid tokens in get options. Specify a boolean value for tokens.",TOKENS_GET_COLUMN_NOT_SUPPORTED:"Validation error. 'columnName' and 'columnValues' cannot be used when 'tokens' are set to true in get options. Either set 'tokens' to false or use 'ids' instead.",REDACTION_WITH_TOKENS_NOT_SUPPORTED:"Get failed. Redaction cannot be applied when 'tokens' are set to true in get options. Either remove redaction or set 'tokens' to false.",INVALID_REDACTION_TYPE_IN_DETOKENIZE:"Validation error. Invalid 'redaction' key in records at index %s1. Specify a valid redaction type.",EMPTY_RECORDS_REVEAL:"Validation error. 'records' key cannot be empty. Provide a non-empty value instead.",MISSING_TOKEN_KEY_REVEAL:"Validation error. Missing 'token' key for reveal element. Specify a valid value for token.",MISSING_SKYFLOWID_KEY_REVEAL:"Validation error. Missing 'skyflowID' key for file render element. Provide a valid 'skyflowID' key.",MISSING_TABLE_KEY_REVEAL:"Validation error.'table' key not found for file render element. Specify a valid value for 'table' key.",MISSING_COLUMN_KEY_REVEAL:"Validation error.'column' key not found for file render element. Specify a valid value for 'column' key.",INVALID_SKYFLOW_ID_REVEAL:"Validation error. Invalid 'skyflowID' key for file render element. Specify a value of type string instead.",INVALID_TABLE_REVEAL:"Validation error. Invalid 'table' key for file render element. Specify a value of type string instead.",INVALID_COLUMN_NAME_REVEAL:"Validation error. Invalid 'column' key for file render element. Specify a value of type string instead.",EMPTY_SKYFLOW_ID_REVEAL:"Validation error. 'skyflowID' key cannot be empty for file render element. Specify a non-empty value instead.",EMPTY_TABLE_REVEAL:"Validation error. 'table' key cannot be empty for file render element. Specify a non-empty value instead.",EMPTY_COLUMN_NAME_REVEAL:"Validation error. 'column' key cannot be empty for file render element. Specify a non-empty value instead.",INVALID_TOKEN_ID_REVEAL:"Validation error. Invalid 'token' key found for reveal element. Specify a value of type string instead.",INVALID_LABEL_REVEAL:"Validation error. Invalid 'label' key found for reveal element. Specify a value of type string instead.",INVALID_ALT_TEXT_REVEAL:"Validation error. Invalid 'altText' key found for reveal element. Specify a value of type string instead.",INVALID_ALT_TEXT_RENDER:"Validation error. Invalid 'altText' key found for reveal element. Specify a value of type string instead.",INVALID_FORMAT_REVEAL:"Validation error. Invalid 'format' key found for reveal element. Specify a value of type string instead.",EMPTY_FORMAT_REVEAL:"Validation error. 'format' key cannot be empty for reveal element. Specify a non-empty value instead.",INVALID_FORMAT_VALUE_REVEAL:"Validation error. Invalid 'format' key found for reveal element. Specify a value of type string instead.",INVALID_REDACTION_TYPE_REVEAL:"Validation error. Invalid 'redaction' key found for reveal element. Specify a valid redaction type.",ELEMENTS_NOT_MOUNTED_REVEAL:"Reveal failed. Make sure to mount all elements before invoking 'reveal' function.",EMPTY_TABLE_IN_ADDITIONAL_FIELDS:"Validation error.'table' field cannot be empty in additionalFields record at index %s1. Specify a non-empty value instead.",EMPTY_FIELDS_IN_ADDITIONAL_FIELDS:"Validation error.'fields' object cannot be empty in additionalFields record at index %s1. Specify a non-empty value instead.",EMPTY_TOKEN_IN_DETOKENIZE:"Validation error. 'token' key cannot be empty in records at index %s1. Specify a non-empty value instead.",EMPTY_SKYFLOWID_IN_GET:"Validation error. 'id' cannot be empty in 'ids' array in 'records' at index %s1. Specify non-empty values instead.",EMPTY_TABLE_IN_GET:"Validation error. 'table' key cannot be empty in records at index %s1. Specify a non-empty value instead.",EMPTY_REDACTION_TYPE_IN_GET:"Validation error. 'redaction' key cannot be empty in records at index %s1. Specify a non-empty value instead.",EMPTY_TOKEN_ID_REVEAL:"Validation error. 'token' key cannot be empty for reveal element. Specify a non-empty value instead.",FETCH_RECORDS_REJECTED:"Detokenize failed. Detokenize request is rejected.",INSERT_RECORDS_REJECTED:"Insert failed. Insert request is rejected.",GET_REJECTED:"Get failed. Get request is rejected.",FAILED_REVEAL:"Reveal failed. Some errors were encountered.",FAILED_RENDER:"Failed to render file. Some errors were encountered.",SKYFLOW_IDS_AND_TOKEN_BOTH_SPECIFIED:"Validation error. skyflowID and token can not be specified together.",MISSING_TABLE_IN_COLLECT:"Validation error.'table' key not found for collect element. Specify a valid value for 'table' key.",EMPTY_TABLE_IN_COLLECT:"Validation error.'table' cannot be empty for collect element. Specify a non-empty value for 'table'.",EMPTY_SKYFLOW_ID_IN_ADDITIONAL_FIELDS:"Validation error.'id' cannot be empty in addtionalFields record at index %s1. Specify a non-empty value for 'id'.",EMPTY_SKYFLOW_ID_COLLECT:"Validation error.'skyflowID' cannot be empty for collect element. Specify a non-empty value for 'skyflowID'.",INVALID_TABLE_IN_COLLECT:"Validation error. Invalid type for 'table' key value for collect element. Specify a value of type string instead.",INVALID_SKYFLOWID_IN_COLLECT:"Validation error. Invalid type for 'skyflowID' key value for collect element. Specify a value of type string instead.",MISSING_COLUMN_IN_COLLECT:"Validation error. 'column' key not found for collect element. Specify a valid column.",MISSING_SKYFLOWID_IN_COLLECT:"Validation error. 'skyflow_id' key not found for collect element. Specify a valid skyflowID.",EMPTY_COLUMN_IN_COLLECT:"Validation error. 'column' key cannot be empty for collect element. Specify a non-empty value instead.",INVALID_COLUMN_IN_COLLECT:"Validation error. Invalid type for 'column' key for collect element. Specify a value of type string instead.",UNIQUE_ELEMENT_NAME:"Validation error.Element name must be unique: %s1. Please enter a unique element name.",ELEMENTS_NOT_MOUNTED:"Collect failed. Make sure all elements are mounted before calling 'collect' on the container.",DUPLICATE_ELEMENT:"Mount failed.'%s1' appeared multiple times in '%s2'. Make sure each column in a record is unique.",DUPLICATE_ELEMENT_ADDITIONAL_FIELDS:"Mount failed. '%s1' appeared in record index '%s2' in the additional fields. Make sure each column in a record is unique.",MISSING_ELEMENT_TYPE:"Mount failed. Invalid element type. Specify a valid 'type'.",EMPTY_ELEMENT_TYPE:"Mount failed. Invalid element type. Specify a valid 'type'",INVALID_ELEMENT_TYPE:"Mount failed. Invalid element type. Specify a valid 'type'",INVALID_ELEMENT_SELECTOR:"Mount failed. 'div' element not found. Specify a valid 'div'.",CANNOT_CHANGE_ELEMENT:"Element can't be changed.",INVALID_IFRAME:"Error occured while creating an iframe",INVALID_FIELD:"Invalid Field.",FRAME_NOT_FOUND:"Frame %s1 not found. Could not initialise element.",COMPLETE_AND_VALID_INPUTS:"Mount failed. Incomplete inputs for '%s1'. Make sure all inputs are complete and valid.",REQUIRED_PARAMS_NOT_PROVIDED:"Initialisation error. Couldn't find iframe name for element.",INVALID_EVENT_TYPE:"Invalid event type. Specify a valid event type.",INVALID_EVENT_LISTENER:" Invalid event listener. Please specify a valid event listener.",MISSING_HANDLER_IN_EVENT_LISTENER:"Event handler callback is missing. Provide a valid event handler callback function.",INVALID_HANDLER_IN_EVENT_LISTENER:"Validation error. Invalid type for 'validations' key. Specify a value of type array instead.",UNKNOWN_ERROR:"Unknown Error.",NETWORK_ERROR:"A network error occurred. This could be a CORS issue or a dropped internet connection. It is not possible for us to know. Please reach out to skyflow if you see this error",CONNECTION_ERROR:"Error while initializing the connection.",ERROR_OCCURED:"Error occurred.",INVALID_VALIDATIONS_TYPE:"Validation error. Invalid validations type.",MISSING_VALIDATION_RULE_TYPE:"Validation error. 'type' for validation rule missing in validations array at index %s1. Specify a valid 'type' for each rule in validations array.",INVALID_VALIDATION_RULE_TYPE:"Validation error. Invalid 'type' for validation rule found in validations array at index %s1 . Specify a valid rule type for validation rule.",MISSING_VALIDATION_RULE_PARAMS:"Validation error. 'params' for validation rule missing in validations array at index %s1. Specify valid 'params' for each rule in validations array.",INVALID_VALIDATION_RULE_PARAMS:"Validation error. Invalid 'params' for validation rule found in validations array at index %s1 . Specify valid params for validation rule.",MISSING_REGEX_IN_REGEX_MATCH_RULE:"Validation error. Missing 'regex' param in validations array at index %s1. Specify a valid value for regex param.",INVALID_REGEX_IN_REGEX_MATCH_RULE:"Validation error. Invalid value for 'regex' param found for regex in validations array at index %s1. Provide a valid value regular expression for regex param.",MISSING_MIN_AND_MAX_IN_LENGTH_MATCH_RULE:"Validation error. Missing both 'min' and 'max' params in validations array at index %s1. Specify either one or both params.",MISSING_ELEMENT_IN_ELEMENT_MATCH_RULE:"Validation error. Missing 'element' param in validations array at index %s1. Specify a valid value for element param. ",INVALID_ELEMENT_IN_ELEMENT_MATCH_RULE:"Validation error. Invalid 'element' provided in validations array at index %s1. Specify a value of type collect element instead.",ELEMENT_NOT_MOUNTED_IN_ELEMENT_MATCH_RULE:"Validation error. Element provided in validations array at index %s1 is not mounted. Make sure the element is mounted.",EMPTY_ELEMENT_IN_MOUNT:"mount element with type %s1 - Mount cannot be empty.",VALIDATION_FAILED:"Validation failed",REVEAL_ELEMENT_ERROR_STATE:"Reveal failed. 'setError' is invoked on one or more elements. Make sure to reset any custom errors on all elements before invoking 'reveal' function.",INVALID_FILE_TYPE:"Invalid File Type.",INVALID_FILE_SIZE:"Invalid File Size",NO_FILE_SELECTED:"No File Selected",INVALID_UPSERT_OPTION_TYPE:"Validation error. Invalid 'upsert' key in insert options. Specify a value of type array instead",EMPTY_UPSERT_OPTIONS_ARRAY:"Validation error. 'upsert' key cannot be an empty array in insert options. Make sure to add atleast one table column object in upsert array.",INVALID_UPSERT_OPTION_OBJECT_TYPE:"Validation error. Invalid value in upsert array at index %s1 in insert options. Specify objects with 'table' and 'column' keys instead.",MISSING_TABLE_IN_UPSERT_OPTION:"Validation error. Missing 'table' key in upsert array at index %s1. Provide a valid 'table' key.",MISSING_COLUMN_IN_UPSERT_OPTION:"Validation error. Missing 'column' key in upsert array at index %s1. Provide a valid 'column' key",INVALID_TABLE_IN_UPSERT_OPTION:"Validation error. Invalid 'table' key in upsert array at index %s1. Specify a value of type string instead.",INVALID_COLUMN_IN_UPSERT_OPTION:"Validation error. Invalid 'column' key in upsert array at index %s1. Specify a value of type string instead.",INVALID_RECORD_COLUMN_VALUE:"Validation error. Invalid 'column' key. Specify a value of type string instead.",MISSING_RECORD_COLUMN_VALUE:"Validation error. Column Values is required when Column Name is specified.",MISSING_RECORD_COLUMN_NAME:"Validation error. Column Name is required when Column Values are specified.",INVALID_RECORD_COLUMN_VALUE_TYPE:"Validation error. Invalid Type of Records Column Values in records at index %s1",INVALID_COLUMN_VALUES_TYPE:"Validation error. Invalid column values type, should be an Array.",EMPTY_RECORD_COLUMN_VALUES:"Validation error. Record column values cannot be empty in records at index %s1",EMPTY_COLUMN_VALUE:"Validation error. Column Value is empty in records at index %s1",MISSING_IDS_OR_COLUMN_VALUES_IN_GET:"Validation error. Both 'ids' or 'columnValues' keys are missing. Either provide 'ids' or 'columnValues' with 'columnName' to fetch records.",SKYFLOW_IDS_AND_COLUMN_NAME_BOTH_SPECIFIED:"Validation error. ids and columnName can not be specified together.",GET_BY_SKYFLOWID_RESOLVED:"%s1 - GetById request is resolved.",RECORDS_KEY_NOT_FOUND_GETBYID:"Validation error. Missing 'records' key. Provide a valid 'records' key.",INVALID_RECORDS_IN_GETBYID:"Validation error. Invalid 'records' key found. Specify a value of type array instead.",EMPTY_RECORDS_GETBYID:"Validation error. 'records' key cannot be empty. Provide a non-empty value instead.",MISSING_IDS_IN_GETBYID:"Validation error. Missing 'ids' key in records at index %s1. Provide a valid 'ids' key.",INVALID_IDS_IN_GETBYID:"Validation error. Invalid 'ids' key in records at index %s1. ids object should be an array.",EMPTY_IDS_IN_GETBYID:"Validation error. 'ids' key cannot be an empty array in records at index %s1. Make sure to provide atleast one id in array.",INVALID_SKYFLOWID_TYPE_IN_GETBYID:"Validation error. Invalid value in ids array in records at index %s1. Specify a value of type string instead.",MISSING_TABLE_IN_GETBYID:"Validation error. Missing 'table' key in records at index %s1. Provide a valid 'table' key.",INVALID_TABLE_IN_GETBYID:"Validation error. Invalid 'table' key in records at index %s1. Specify a value of type string instead.",MISSING_REDACTION_IN_GETBYID:"Validation error. Missing 'redaction' key in records at index %s1. Provide a valid 'redaction' key.",INVALID_REDACTION_TYPE_IN_GETBYID:"Validation error. Invalid 'redaction' key in records at index %s1. Specify a valid redaction type.",EMPTY_SKYFLOWID_IN_GETBYID:"Validation error. 'ids' key cannot be an array of empty strings in records at index %s1. Specify non-empty values instead.",EMPTY_TABLE_IN_GETBYID:"Validation error. 'table' key cannot be empty in records at index %s1. Specify a non-empty value instead.",EMPTY_REDACTION_TYPE_IN_GETBYID:"Validation error. 'redaction' key cannot be empty in records at index %s1. Specify a non-empty value instead.",GET_BY_SKYFLOWID_REJECTED:"GetById failed. GetById request is rejected.",MISSING_COMPOSABLE_LAYOUT_KEY:"Mount failed. Layout is not specified in composable container options. Specify a valid layout.",EMPTY_COMPOSABLE_LAYOUT_ARRAY:"Mount failed. Layout array is empty in composable container options. Specify a valid layout array.",INVALID_COMPOSABLE_LAYOUT_TYPE:"Mount failed. Invalid layout array values. Make sure all values in the layout array are positive numbers.",NEGATIVE_VALUES_COMPOSABLE_LAYOUT:"Mount failed. layout array should only have positive numbers in composable container options.",MISMATCH_ELEMENT_COUNT_LAYOUT_SUM:"Mount failed. Invalid layout array values. Make sure all values in the layout array are positive numbers.",MISSING_COMPOSABLE_CONTAINER_OPTIONS:"Mount failed. An options object is required for composable containers. Specify a valid options object.",INVALID_COMPOSABLE_CONTAINER_OPTIONS:"Mount failed. Invalid options object. Specify a valid options object.",COMPOSABLE_CONTAINER_NOT_MOUNTED:"Mount elements first. Make sure all elements are mounted before calling 'collect' on the container.",INVALID_BOOLEAN_OPTIONS:"Validation error. Invalid %s1 found in collect options. Specify a value of type boolean instead.",INVALID_MASKING_CHARACTER:"Validation error. Invalid masking character. Specify a valid masking character. ",INVALID_INPUT_OPTIONS_FORMAT:"Mount failed. Format must be a non-empty string. Specify a valid format.",INVALID_INPUT_OPTIONS_TRANSLATION:"Mount failed. Translation must be a non-empty object. Specify a valid translation.",EMPTY_COLLECT_CUSTOM_FORMAT:"Mount failed. '%s1' can not be an empty object. Specify a valid object.",INVALID_ALLOWED_OPTIONS:"Validation error. Invalid options, allowedFileType must be of string array type.",EMPTY_ALLOWED_OPTIONS_ARRAY:"Validation error. Invalid options value, allowedFileType array is empty.",INVALID_ALLOWED_FILETYPE_ARRAY:"Validation error. Invalid options value, allowedFileType array must contain only string elements.",INVALID_OPTION_CARD_METADATA:"Validation error. container create - Invalid type, cardMetadata must be of non-empty object type.",INVALID_OPTION_CARD_SCHEME:"Validation error. container create - Invalid options, scheme must be of string array type.",INVALID_FIELD_SHOW_3DS_CHALLEGNGE:"Invalid field '%s1'. Cannot initiate 3DS Challenge. Verify '%s1'"},warnLogs:{INVALID_EXPIRATION_DATE_FORMAT:"EXPIRATION_DATE format must be in one of %s1, the format is set to default MM/YY",INVALID_EXPIRATION_YEAR_FORMAT:"EXPIRATION_YEAR format must be in one of %s1, the format is set to default YY",UNABLE_TO_SET_VALUE_IN_PROD_ENV:"%s1 setValue() cannot invoked while in PROD env. It is Not Recommeded",UNABLE_TO_CLEAR_VALUE_IN_PROD_ENV:"%s1 clearValue() cannot invoked while in PROD env. It is Not Recommeded",COLLECT_ALT_TEXT_DEPERECATED:"altText is DEPERECATED, passing altText will not have any effect",GET_BY_ID_DEPRECATED:"getById is deprecated, use new get method",INPUT_FORMATTING_NOT_SUPPROTED:"format or translation are not supported on %s1 element type.",INVALID_INPUT_TRANSLATION:"invalid or unsupported translation provided for %s1 element type."}};var S,D,x,M,P,C,k,V,j="collect_controller",U="element",F={COLLECT:"COLLECT",REVEAL:"REVEAL",COMPOSE:"COMPOSABLE"},Y={MOUNTED:"MOUNTED",READY:"FRAME_READY"},G="element_type",B="div_id",X="container_name",W=Y,K="events",q="mount_start_time",z="mount_end_time",H="error",J={SUCCESS:"SUCCESS",INITIALIZED:"INITIALIZED",PARTIAL_RENDER:"PARTIAL_RENDER",FAILED:"FAILED"},Z="INSERT",$="DETOKENIZE",Q="GET_BY_SKYFLOWID",ee="GET",te="DELETE",ne="COLLECT",re="FILE_UPLOAD",oe="REVEAL",ie="RENDER_FILE",ae={CHANGE:"CHANGE",READY:"READY",FOCUS:"FOCUS",BLUR:"BLUR",ESCAPE:"ESCAPE",CLICK:"CLICK",ERROR:"ERROR",SUCCESS:"SUCCESS",SUBMIT:"SUBMIT",CREATED:"CREATED",MOUNTED:"MOUNTED",HEIGHT:"HEIGHT"},ce="COLLECT_INVOKE_REQUEST",le="COLLECT_CALL_REQUESTS",se="REVEAL_CALL_REQUESTS",pe="TOKENIZATION_REQUEST",ue="INPUT_EVENT",de="DESTROY FRAME",fe="SET_VALUE",Ee="PUREJS_REQUEST",_e="PUREJS_FRAME_READY",me="GET_BEARER_TOKEN",ve="COLLECT_ELEMENT_SET_ERROR",Ie="COLLECT_ELEMENT_SET_ERROR_OVERRIDE",ye="REVEAL_ELEMENT_SET_ERROR",Oe="REVEAL_ELEMENT_UPDATE_OPTIONS",ge="FILE_UPLOAD",Ne="COMPOSABLE_UPDATE_OPTIONS",Le="RENDER_FILE_REQUEST",Te="PUSH_EVENT",he="SKYFLOW_FRAME_CONTROLLER_READY",be="COLLECT_ELEMENT_READY",Ae="TOKEN",we="ALT_TEXT",Re="ELEMENT_PROPS",Se="ELEMENT_MOUNTED",De="ALL_ELEMENTS_MOUNTED",xe=function(e){return e.CVV="CVV",e.EXPIRATION_DATE="EXPIRATION_DATE",e.CARD_NUMBER="CARD_NUMBER",e.CARDHOLDER_NAME="CARDHOLDER_NAME",e.INPUT_FIELD="INPUT_FIELD",e.PIN="PIN",e.EXPIRATION_MONTH="EXPIRATION_MONTH",e.EXPIRATION_YEAR="EXPIRATION_YEAR",e.FILE_INPUT="FILE_INPUT",e}({}),Me=function(e){return e.VISA="VISA",e.MASTERCARD="MASTERCARD",e.AMEX="AMEX",e.DINERS_CLUB="DINERS_CLUB",e.DISCOVER="DISCOVER",e.JCB="JCB",e.MAESTRO="MAESTRO",e.UNIONPAY="UNIONPAY",e.HIPERCARD="HIPERCARD",e.DEFAULT="DEFAULT",e.UNKNOWN="UNKNOWN",e.CARTES_BANCAIRES="CARTES BANCAIRES",e}({}),Pe=(l(S={},Me.VISA,"Visa"),l(S,Me.MASTERCARD,"Mastercard"),l(S,Me.AMEX,"Amex"),l(S,Me.DINERS_CLUB,"DinersClub"),l(S,Me.DISCOVER,"Discover"),l(S,Me.JCB,"Jcb"),l(S,Me.MAESTRO,"Maestro"),l(S,Me.UNIONPAY,"Unionpay"),l(S,Me.HIPERCARD,"Hipercard"),l(S,Me.DEFAULT,"Default"),l(S,Me.UNKNOWN,"Unknown"),l(S,Me.CARTES_BANCAIRES,"Cartes Bancaires"),l(D={},Me.AMEX,["XXXX XXXXXX XXXXX",{X:"[0-9]"}]),l(D,Me.VISA,["XXXX XXXX XXXX XXXX",{X:"[0-9]"}]),l(D,Me.MASTERCARD,["XXXX XXXX XXXX XXXX",{X:"[0-9]"}]),l(D,Me.DISCOVER,["XXXX XXXX XXXX XXXX XXX",{X:"[0-9]"}]),l(D,Me.DINERS_CLUB,["XXXX XXXXXX XXXXXX",{X:"[0-9]"}]),l(D,Me.JCB,["XXXX XXXX XXXX XXXX XXX",{X:"[0-9]"}]),l(D,Me.MAESTRO,["XXXX XXXX XXXX XXXX XXX",{X:"[0-9]"}]),l(D,Me.UNIONPAY,["XXXX XXXX XXXX XXXX XXX",{X:"[0-9]"}]),l(D,Me.HIPERCARD,["XXXX XXXX XXXX XXXX XXX",{X:"[0-9]"}]),l(D,Me.DEFAULT,["XXXX XXXX XXXX XXXX XXX",{X:"[0-9]"}]),l(D,Me.UNKNOWN,["XXXX XXXX XXXX XXXX XXX",{X:"[0-9]"}]),D),Ce=(l(x={textarea:{name:"textarea",attributes:{type:"textarea"},sensitive:!1},checkbox:{name:"checkbox",attributes:{type:"checkbox"},sensitive:!1},radio:{name:"radio",attributes:{type:"radio"},sensitive:!1},dropdown:{name:"dropdown",attributes:{type:"select"},sensitive:!1}},xe.CARDHOLDER_NAME,{name:"cardHolderName",attributes:{type:"text",autocomplete:"cc-name"},sensitive:!0,regex:/^([a-zA-Z\\ \\,\\.\\-\\']{2,})$/}),l(x,xe.CARD_NUMBER,{name:"CARD_NUMBER",attributes:{type:"text",autocomplete:"cc-number",inputmode:"numeric"},sensitive:!0,mask:Pe[Me.DEFAULT],regex:/$|^[\s]*?([0-9]{2,6}[ -]?){3,5}[\s]*/}),l(x,xe.EXPIRATION_DATE,{name:"EXPIRATION_DATE",attributes:{type:"text",autocomplete:"cc-exp",inputmode:"numeric"},sensitive:!0}),l(x,xe.EXPIRATION_MONTH,{name:"EXPIRATION_MONTH",attributes:{maxLength:2,type:"text",inputmode:"numeric",autocomplete:"cc-exp-month"},sensitive:!0,mask:["XX",{X:"[0-9]"}]}),l(x,xe.EXPIRATION_YEAR,{name:"EXPIRATION_YEAR",attributes:{type:"text",inputmode:"numeric",autocomplete:"cc-exp-year"},sensitive:!0}),l(x,xe.CVV,{name:"CVV",attributes:{type:"text",inputmode:"numeric",maxLength:4},sensitive:!0,regex:/^$|^[0-9]{3,4}$/}),l(x,xe.INPUT_FIELD,{name:"INPUT_FIELD",sensitive:!0,attributes:{type:"text"}}),l(x,xe.PIN,{name:"PIN",attributes:{type:"text",inputmode:"numeric",maxLength:12,minLength:4},sensitive:!0,regex:/^$|^[0-9]{4,12}$/}),l(x,xe.FILE_INPUT,{name:"FILE_INPUT",sensitive:!0,attributes:{type:"file"}}),x),ke="XXXX-XXXX-XXXX-XXXX",Ve={height:"100%",width:"100%",margin:0,padding:0,border:0,position:"absolute",top:0,left:0,"user-select":"none"},je={position:"absolute",top:0,width:0,height:0,visibility:"hidden",left:"-99999999px","user-select":"none"},Ue={width:"100%",height:"100%",border:"0",padding:"0",margin:"0",outline:"none"},Fe={WEBPACKAUTOFILL:"-webkit-autofill",BASE:"base",FOCUS:"focus",COMPLETE:"complete",EMPTY:"empty",INVALID:"invalid",GLOBAL:"global",REQUIRED_ASTERISK:"requiredAsterisk"},Ye=(l({},Fe.BASE,{maxHeight:"100%",maxWidth:"100%"}),l({},Fe.BASE,{"margin-bottom":"4px"}),l({},Fe.BASE,{"margin-bottom":"4px",display:"flex",flexDirection:"column",justifyContent:"space-between"}),l({},Fe.BASE,{marginTop:"4px"}),l(M={},Fe.BASE,{marginBottom:"4px"}),l(M,Fe.REQUIRED_ASTERISK,{display:"inline",color:"red"}),l(P={},Me.VISA,{regex:/^4\d*/,maxCardLength:19,cardLengthRange:[13,16]}),l(P,Me.MASTERCARD,{regex:/^(5[1-5]|222[1-9]|22[3-9]|2[3-6]|27[0-1]|2720)\d*/,maxCardLength:16,cardLengthRange:[16]}),l(P,Me.AMEX,{regex:/^3[47]\d*/,maxCardLength:15,cardLengthRange:[15]}),l(P,Me.DINERS_CLUB,{regex:/^(36|38|30[0-5])\d*/,maxCardLength:16,cardLengthRange:[14,15,16,17,18,19]}),l(P,Me.DISCOVER,{regex:/^(6011|65|64[4-9]|622)\d*/,maxCardLength:16,cardLengthRange:[16,17,18,19]}),l(P,Me.JCB,{regex:/^35\d*/,maxCardLength:19,cardLengthRange:[16,17,18,19]}),l(P,Me.HIPERCARD,{regex:/^606282\d*/,maxCardLength:19,cardLengthRange:[14,15,16,17,18,19]}),l(P,Me.UNIONPAY,{regex:/^62\d*/,maxCardLength:19,cardLengthRange:[16,17,18,19]}),l(P,Me.MAESTRO,{regex:/^(5018|5020|5038|5043|5[6-9]|6020|6304|6703|6759|676[1-3])\d*/,maxCardLength:19,cardLengthRange:[12,13,14,15,16,17,18,19]}),P),Ge=(l(C={},Me.DEFAULT,I),l(C,Me.AMEX,y),l(C,Me.CARTES_BANCAIRES,w),l(C,Me.DINERS_CLUB,O),l(C,Me.DISCOVER,g),l(C,Me.HIPERCARD,N),l(C,Me.JCB,L),l(C,Me.MAESTRO,T),l(C,Me.MASTERCARD,h),l(C,Me.UNIONPAY,b),l(C,Me.VISA,A),"MM/YY"),Be=[Ge,"YYYY/MM","YY/MM","MM/YYYY"],Xe=["YY","YYYY"],We=function(e){return e.APPLICATIONORJSON="application/json",e.TEXTORPLAIN="text/plain",e.TEXTORXML="text/xml",e.FORMURLENCODED="application/x-www-form-urlencoded",e.FORMDATA="multipart/form-data",e}({}),Ke=(xe.CARD_NUMBER,xe.EXPIRATION_DATE,xe.EXPIRATION_MONTH,xe.EXPIRATION_YEAR,l(k={},xe.CVV,"Invalid cvv"),l(k,xe.EXPIRATION_DATE,"Invalid expiration date"),l(k,xe.CARD_NUMBER,"Invalid card number"),l(k,xe.CARDHOLDER_NAME,"Invalid cardholder name"),l(k,xe.INPUT_FIELD,R.errorLogs.INVALID_COLLECT_VALUE),l(k,xe.PIN,"Invalid pin"),l(k,xe.EXPIRATION_MONTH,"Invalid expiration month"),l(k,xe.EXPIRATION_YEAR,"Invalid expiration year"),l(k,xe.FILE_INPUT,R.errorLogs.INVALID_COLLECT_VALUE),l(V={},xe.CVV,"cvv is required"),l(V,xe.EXPIRATION_DATE,"expiration date is required"),l(V,xe.CARD_NUMBER,"card number is required"),l(V,xe.CARDHOLDER_NAME,"cardholder name is required"),l(V,xe.INPUT_FIELD,R.errorLogs.DEFAULT_REQUIRED_COLLECT_VALUE),l(V,xe.PIN,"pin is required"),l(V,xe.EXPIRATION_MONTH,"expiration month is required"),l(V,xe.EXPIRATION_YEAR,"expiration year is required"),l(V,xe.FILE_INPUT,R.errorLogs.DEFAULT_REQUIRED_COLLECT_VALUE),[xe.CARDHOLDER_NAME,xe.EXPIRATION_MONTH,xe.FILE_INPUT,xe.PIN,xe.CVV]),qe={X:"[0-9]"};function ze(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function He(e,t){if(e){if("string"==typeof e)return ze(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ze(e,t):void 0}}function Je(e){return function(e){if(Array.isArray(e))return ze(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||He(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.")}()}function Ze(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $e(e,t){return $e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},$e(e,t)}function Qe(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$e(e,t)}function et(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Ze(e)}function tt(e){return tt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},tt(e)}function nt(e,t,n){return nt=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(e){return!1}}()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&$e(o,n.prototype),o},nt.apply(null,arguments)}function rt(e){var t="function"==typeof Map?new Map:void 0;return rt=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return nt(e,arguments,tt(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),$e(r,e)},rt(e)}var ot=function(e){return e.DEFAULT="DEFAULT",e.PLAIN_TEXT="PLAIN_TEXT",e.MASKED="MASKED",e.REDACTED="REDACTED",e}({}),it=function(e){return e.GET="GET",e.POST="POST",e.PUT="PUT",e.PATCH="PATCH",e.DELETE="DELETE",e}({}),at=function(e){return e.CHANGE="CHANGE",e.READY="READY",e.FOCUS="FOCUS",e.BLUR="BLUR",e.SUBMIT="SUBMIT",e}({}),ct=function(e){return e.WARN="WARN",e.INFO="INFO",e.DEBUG="DEBUG",e.ERROR="ERROR",e}({}),lt=function(e){return e.DEV="DEV",e.PROD="PROD",e}({}),st=function(e){return e.LOG="LOG",e.WARN="WARN",e.ERROR="ERROR",e}({}),pt=function(e){return e.REGEX_MATCH_RULE="REGEX_MATCH_RULE",e.LENGTH_MATCH_RULE="LENGTH_MATCH_RULE",e.ELEMENT_VALUE_MATCH_RULE="ELEMENT_VALUE_MATCH_RULE",e}({});const ut={INVALID_FILE_NAME:{code:400,description:R.errorLogs.INVALID_FILE_NAME},INVALID_FIELD:{code:400,description:R.errorLogs.INVALID_FIELD},VAULTID_IS_REQUIRED:{code:400,description:R.errorLogs.VAULTID_IS_REQUIRED},EMPTY_VAULTID_IN_INIT:{code:400,description:R.errorLogs.EMPTY_VAULTID_IN_INIT},VAULTURL_IS_REQUIRED:{code:400,description:R.errorLogs.VAULTURL_IS_REQUIRED},EMPTY_VAULTURL_IN_INIT:{code:400,description:R.errorLogs.EMPTY_VAULTURL_IN_INIT},INVALID_VAULTURL_IN_INIT:{code:400,description:R.errorLogs.INVALID_VAULTURL_IN_INIT},GET_BEARER_TOKEN_IS_REQUIRED:{code:400,description:R.errorLogs.GET_BEARER_TOKEN_IS_REQUIRED},EMPTY_CONTAINER_TYPE:{code:400,description:R.errorLogs.EMPTY_CONTAINER_TYPE},INVALID_CONTAINER_TYPE:{code:400,description:R.errorLogs.INVALID_CONTAINER_TYPE},UNIQUE_ELEMENT_NAME:{code:400,description:R.errorLogs.UNIQUE_ELEMENT_NAME},ELEMENTS_NOT_MOUNTED:{code:400,description:R.errorLogs.ELEMENTS_NOT_MOUNTED},MISSING_TABLE_IN_COLLECT:{code:400,description:R.errorLogs.MISSING_TABLE_IN_COLLECT},MISSING_SKYFLOWID_KEY_REVEAL:{code:400,description:R.errorLogs.MISSING_SKYFLOWID_KEY_REVEAL},EMPTY_TABLE_IN_COLLECT:{code:400,description:R.errorLogs.EMPTY_TABLE_IN_COLLECT},EMPTY_SKYFLOW_ID_IN_ADDITIONAL_FIELDS:{code:400,description:R.errorLogs.EMPTY_SKYFLOW_ID_IN_ADDITIONAL_FIELDS},EMPTY_SKYFLOW_ID_COLLECT:{code:400,description:R.errorLogs.EMPTY_SKYFLOW_ID_COLLECT},INVALID_TABLE_IN_COLLECT:{code:400,description:R.errorLogs.INVALID_TABLE_IN_COLLECT},INVALID_SKYFLOWID_IN_COLLECT:{code:400,description:R.errorLogs.INVALID_SKYFLOWID_IN_COLLECT},MISSING_COLUMN_IN_COLLECT:{code:400,description:R.errorLogs.MISSING_COLUMN_IN_COLLECT},MISSING_SKYFLOWID_IN_COLLECT:{code:400,description:R.errorLogs.MISSING_SKYFLOWID_IN_COLLECT},EMPTY_COLUMN_IN_COLLECT:{code:400,description:R.errorLogs.EMPTY_TABLE_IN_COLLECT},INVALID_COLUMN_IN_COLLECT:{code:400,description:R.errorLogs.INVALID_COLUMN_IN_COLLECT},CLIENT_CONNECTION:{code:400,description:R.errorLogs.CLIENT_CONNECTION},RECORDS_KEY_NOT_FOUND:{code:404,description:R.errorLogs.RECORDS_KEY_NOT_FOUND},EMPTY_RECORDS_IN_INSERT:{code:400,description:R.errorLogs.EMPTY_RECORDS_IN_INSERT},INVALID_RECORDS_IN_INSERT:{code:404,description:R.errorLogs.INVALID_RECORDS_IN_INSERT},INVALID_TABLE_IN_INSERT:{code:400,description:R.errorLogs.INVALID_TABLE_IN_INSERT},EMPTY_TABLE_IN_INSERT:{code:400,description:R.errorLogs.EMPTY_TABLE_IN_INSERT},MISSING_TABLE_IN_INSERT:{code:400,description:R.errorLogs.MISSING_TABLE_IN_INSERT},EMPTY_FIELDS_IN_INSERT:{code:400,description:R.errorLogs.EMPTY_FIELDS_IN_INSERT},MISSING_FIELDS_IN_INSERT:{code:404,description:R.errorLogs.MISSING_FIELDS_IN_INSERT},INVALID_FIELDS_IN_INSERT:{code:404,description:R.errorLogs.INVALID_FIELDS_IN_INSERT},INVALID_TOKENS_IN_INSERT:{code:404,description:R.errorLogs.INVALID_TOKENS_IN_INSERT},RECORDS_KEY_NOT_FOUND_DETOKENIZE:{code:404,description:R.errorLogs.RECORDS_KEY_NOT_FOUND_DETOKENIZE},EMPTY_RECORDS_DETOKENIZE:{code:400,description:R.errorLogs.EMPTY_RECORDS_DETOKENIZE},INVALID_RECORDS_IN_DETOKENIZE:{code:404,description:R.errorLogs.INVALID_RECORDS_IN_DETOKENIZE},MISSING_TOKEN_IN_DETOKENIZE:{code:400,description:R.errorLogs.MISSING_TOKEN_IN_DETOKENIZE},INVALID_TOKEN_IN_DETOKENIZE:{code:400,description:R.errorLogs.INVALID_TOKEN_IN_DETOKENIZE},RECORDS_KEY_NOT_FOUND_GET:{code:400,description:R.errorLogs.RECORDS_KEY_NOT_FOUND_GET},INVALID_RECORDS_IN_GET:{code:400,description:R.errorLogs.INVALID_RECORDS_IN_GET},EMPTY_RECORDS_GET:{code:400,description:R.errorLogs.EMPTY_RECORDS_GET},MISSING_IDS_IN_GET:{code:400,description:R.errorLogs.MISSING_IDS_IN_GET},INVALID_IDS_IN_GET:{code:400,description:R.errorLogs.INVALID_IDS_IN_GET},INVALID_COLUMN_VALUES_IN_GET:{code:400,description:R.errorLogs.INVALID_COLUMN_VALUES_IN_GET},EMPTY_IDS_IN_GET:{code:400,description:R.errorLogs.EMPTY_IDS_IN_GET},INVALID_SKYFLOWID_TYPE_IN_GET:{code:400,description:R.errorLogs.INVALID_SKYFLOWID_TYPE_IN_GET},MISSING_TABLE_IN_GET:{code:400,description:R.errorLogs.MISSING_TABLE_IN_GET},INVALID_TABLE_IN_GET:{code:400,description:R.errorLogs.INVALID_TABLE_IN_GET},MISSING_REDACTION_IN_GET:{code:400,description:R.errorLogs.MISSING_REDACTION_IN_GET},INVALID_REDACTION_TYPE_IN_GET:{code:400,description:R.errorLogs.INVALID_REDACTION_TYPE_IN_GET},INVALID_TOKENS_IN_GET:{code:400,description:R.errorLogs.INVALID_TOKENS_IN_GET},TOKENS_GET_COLUMN_NOT_SUPPORTED:{code:400,description:R.errorLogs.TOKENS_GET_COLUMN_NOT_SUPPORTED},REDACTION_WITH_TOKENS_NOT_SUPPORTED:{code:400,description:R.errorLogs.REDACTION_WITH_TOKENS_NOT_SUPPORTED},INVALID_REDACTION_TYPE_IN_DETOKENIZE:{code:400,description:R.errorLogs.INVALID_REDACTION_TYPE_IN_DETOKENIZE},INVALID_TOKENS_IN_COLLECT:{code:404,description:R.errorLogs.INVALID_TOKENS_IN_COLLECT},RECORDS_KEY_NOT_FOUND_IN_ADDITIONAL_FIELDS:{code:404,description:R.errorLogs.RECORDS_KEY_NOT_FOUND_IN_ADDITIONAL_FIELDS},INVALID_RECORDS_IN_ADDITIONAL_FIELDS:{code:404,description:R.errorLogs.INVALID_RECORDS_IN_ADDITIONAL_FIELDS},EMPTY_RECORDS_IN_ADDITIONAL_FIELDS:{code:400,description:R.errorLogs.EMPTY_RECORDS_IN_ADDITIONAL_FIELDS},MISSING_TABLE_IN_ADDITIONAL_FIELDS:{code:400,description:R.errorLogs.MISSING_TABLE_IN_ADDITIONAL_FIELDS},INVALID_TABLE_IN_ADDITIONAL_FIELDS:{code:400,description:R.errorLogs.INVALID_TABLE_IN_ADDITIONAL_FIELDS},INVALID_SKYFLOW_ID_IN_ADDITIONAL_FIELDS:{code:400,description:R.errorLogs.INVALID_SKYFLOW_ID_IN_ADDITIONAL_FIELDS},MISSING_FIELDS_IN_ADDITIONAL_FIELDS:{code:400,description:R.errorLogs.MISSING_FIELDS_IN_ADDITIONAL_FIELDS},INVALID_FIELDS_IN_ADDITIONAL_FIELDS:{code:400,description:R.errorLogs.INVALID_FIELDS_IN_ADDITIONAL_FIELDS},RECORDS_KEY_NOT_FOUND_DELETE:{code:400,description:R.errorLogs.RECORDS_KEY_NOT_FOUND_DELETE},EMPTY_RECORDS_IN_DELETE:{code:400,description:R.errorLogs.EMPTY_RECORDS_IN_DELETE},INVALID_RECORDS_IN_DELETE:{code:404,description:R.errorLogs.INVALID_RECORDS_IN_DELETE},INVALID_TABLE_IN_DELETE:{code:400,description:R.errorLogs.INVALID_TABLE_IN_DELETE},EMPTY_TABLE_IN_DELETE:{code:400,description:R.errorLogs.EMPTY_TABLE_IN_DELETE},MISSING_TABLE_IN_DELETE:{code:400,description:R.errorLogs.MISSING_TABLE_IN_DELETE},EMPTY_ID_IN_DELETE:{code:400,description:R.errorLogs.EMPTY_ID_IN_DELETE},MISSING_ID_IN_DELETE:{code:404,description:R.errorLogs.MISSING_ID_IN_DELETE},INVALID_ID_IN_DELETE:{code:404,description:R.errorLogs.INVALID_ID_IN_DELETE},EMPTY_RECORDS_REVEAL:{code:400,description:R.errorLogs.EMPTY_RECORDS_REVEAL},MISSING_TOKEN_KEY_REVEAL:{code:400,description:R.errorLogs.MISSING_TOKEN_KEY_REVEAL},INVALID_TOKEN_ID_REVEAL:{code:400,description:R.errorLogs.INVALID_TOKEN_ID_REVEAL},INVALID_LABEL_REVEAL:{code:400,description:R.errorLogs.INVALID_LABEL_REVEAL},INVALID_ALT_TEXT_REVEAL:{code:400,description:R.errorLogs.INVALID_ALT_TEXT_REVEAL},INVALID_ALT_TEXT_RENDER:{code:400,description:R.errorLogs.INVALID_ALT_TEXT_RENDER},INVALID_FORMAT_REVEAL:{code:400,description:R.errorLogs.INVALID_FORMAT_REVEAL},EMPTY_FORMAT_REVEAL:{code:400,description:R.errorLogs.EMPTY_FORMAT_REVEAL},INVALID_FORMAT_VALUE_REVEAL:{code:400,description:R.errorLogs.INVALID_FORMAT_VALUE_REVEAL},INVALID_REDACTION_TYPE_REVEAL:{code:400,description:R.errorLogs.INVALID_REDACTION_TYPE_REVEAL},EMPTY_TABLE_IN_ADDITIONAL_FIELDS:{code:400,description:R.errorLogs.EMPTY_TABLE_IN_ADDITIONAL_FIELDS},EMPTY_FIELDS_IN_ADDITIONAL_FIELDS:{code:400,description:R.errorLogs.EMPTY_FIELDS_IN_ADDITIONAL_FIELDS},EMPTY_TOKEN_IN_DETOKENIZE:{code:400,description:R.errorLogs.EMPTY_TOKEN_IN_DETOKENIZE},EMPTY_SKYFLOWID_IN_GET:{code:400,description:R.errorLogs.EMPTY_SKYFLOWID_IN_GET},EMPTY_TABLE_IN_GET:{code:400,description:R.errorLogs.EMPTY_TABLE_IN_GET},EMPTY_REDACTION_TYPE_IN_GET:{code:400,description:R.errorLogs.EMPTY_REDACTION_TYPE_IN_GET},EMPTY_TOKEN_ID_REVEAL:{code:400,description:R.errorLogs.EMPTY_TOKEN_ID_REVEAL},DUPLICATE_ELEMENT:{code:400,description:R.errorLogs.DUPLICATE_ELEMENT},DUPLICATE_ELEMENT_ADDITIONAL_FIELDS:{code:400,description:R.errorLogs.DUPLICATE_ELEMENT_ADDITIONAL_FIELDS},MISSING_ELEMENT_TYPE:{code:400,description:R.errorLogs.MISSING_ELEMENT_TYPE},EMPTY_ELEMENT_TYPE:{code:400,description:R.errorLogs.EMPTY_ELEMENT_TYPE},INVALID_ALLOWED_OPTIONS:{code:400,description:R.errorLogs.INVALID_ALLOWED_OPTIONS},EMPTY_ALLOWED_OPTIONS_ARRAY:{code:400,description:R.errorLogs.EMPTY_ALLOWED_OPTIONS_ARRAY},INVALID_ALLOWED_FILETYPE_ARRAY:{code:400,description:R.errorLogs.INVALID_ALLOWED_FILETYPE_ARRAY},INVALID_ELEMENT_TYPE:{code:400,description:R.errorLogs.INVALID_ELEMENT_TYPE},INVALID_ELEMENT_SELECTOR:{code:400,description:R.errorLogs.INVALID_ELEMENT_SELECTOR},FRAME_NOT_FOUND:{code:400,description:R.errorLogs.FRAME_NOT_FOUND},REQUIRED_PARAMS_NOT_PROVIDED:{code:400,description:R.errorLogs.REQUIRED_PARAMS_NOT_PROVIDED},INVALID_RECORD_COLUMN_VALUE:{code:400,description:R.errorLogs.INVALID_RECORD_COLUMN_VALUE},MISSING_RECORD_COLUMN_VALUE:{code:400,description:R.errorLogs.MISSING_RECORD_COLUMN_VALUE},MISSING_RECORD_COLUMN_NAME:{code:400,description:R.errorLogs.MISSING_RECORD_COLUMN_NAME},INVALID_EVENT_TYPE:{code:400,description:R.errorLogs.INVALID_EVENT_TYPE},INVALID_EVENT_LISTENER:{code:400,description:R.errorLogs.INVALID_EVENT_LISTENER},MISSING_HANDLER_IN_EVENT_LISTENER:{code:400,description:R.errorLogs.MISSING_HANDLER_IN_EVENT_LISTENER},INVALID_HANDLER_IN_EVENT_LISTENER:{code:400,description:R.errorLogs.INVALID_HANDLER_IN_EVENT_LISTENER},UNKNOWN_ERROR:{code:400,description:R.errorLogs.UNKNOWN_ERROR},CONNECTION_ERROR:{code:400,description:R.errorLogs.CONNECTION_ERROR},NETWORK_ERROR:{code:500,description:R.errorLogs.NETWORK_ERROR},COMPLETE_AND_VALID_INPUTS:{code:400,description:R.errorLogs.COMPLETE_AND_VALID_INPUTS},INVALID_VALIDATIONS_TYPE:{code:400,description:R.errorLogs.INVALID_VALIDATIONS_TYPE},MISSING_VALIDATION_RULE_TYPE:{code:400,description:R.errorLogs.MISSING_VALIDATION_RULE_TYPE},INVALID_VALIDATION_RULE_TYPE:{code:400,description:R.errorLogs.INVALID_VALIDATION_RULE_TYPE},MISSING_VALIDATION_RULE_PARAMS:{code:400,description:R.errorLogs.MISSING_VALIDATION_RULE_PARAMS},INVALID_VALIDATION_RULE_PARAMS:{code:400,description:R.errorLogs.INVALID_VALIDATION_RULE_PARAMS},MISSING_REGEX_IN_REGEX_MATCH_RULE:{code:400,description:R.errorLogs.MISSING_REGEX_IN_REGEX_MATCH_RULE},INVALID_REGEX_IN_REGEX_MATCH_RULE:{code:400,description:R.errorLogs.INVALID_REGEX_IN_REGEX_MATCH_RULE},MISSING_MIN_AND_MAX_IN_LENGTH_MATCH_RULE:{code:400,description:R.errorLogs.MISSING_MIN_AND_MAX_IN_LENGTH_MATCH_RULE},MISSING_ELEMENT_IN_ELEMENT_MATCH_RULE:{code:400,description:R.errorLogs.MISSING_ELEMENT_IN_ELEMENT_MATCH_RULE},INVALID_ELEMENT_IN_ELEMENT_MATCH_RULE:{code:400,description:R.errorLogs.INVALID_ELEMENT_IN_ELEMENT_MATCH_RULE},ELEMENT_NOT_MOUNTED_IN_ELEMENT_MATCH_RULE:{code:400,description:R.errorLogs.ELEMENT_NOT_MOUNTED_IN_ELEMENT_MATCH_RULE},EMPTY_ELEMENT_IN_MOUNT:{code:400,description:R.errorLogs.EMPTY_ELEMENT_IN_MOUNT},REVEAL_ELEMENT_ERROR_STATE:{code:400,description:R.errorLogs.REVEAL_ELEMENT_ERROR_STATE},INVALID_FILE_TYPE:{code:400,description:R.errorLogs.INVALID_FILE_TYPE},INVALID_FILE_SIZE:{code:400,description:R.errorLogs.INVALID_FILE_SIZE},NO_FILE_SELECTED:{code:400,description:R.errorLogs.NO_FILE_SELECTED},INVALID_TABLE_IN_UPSERT_OPTION:{code:400,description:R.errorLogs.INVALID_TABLE_IN_UPSERT_OPTION},INVALID_COLUMN_IN_UPSERT_OPTION:{code:400,description:R.errorLogs.INVALID_COLUMN_IN_UPSERT_OPTION},INVALID_UPSERT_OPTION_TYPE:{code:400,description:R.errorLogs.INVALID_UPSERT_OPTION_TYPE},EMPTY_UPSERT_OPTIONS_ARRAY:{code:400,description:R.errorLogs.EMPTY_UPSERT_OPTIONS_ARRAY},INVALID_UPSERT_OPTION_OBJECT_TYPE:{code:400,description:R.errorLogs.INVALID_UPSERT_OPTION_OBJECT_TYPE},MISSING_TABLE_IN_UPSERT_OPTION:{code:400,description:R.errorLogs.MISSING_TABLE_IN_UPSERT_OPTION},MISSING_COLUMN_IN_UPSERT_OPTION:{code:400,description:R.errorLogs.MISSING_COLUMN_IN_UPSERT_OPTION},INVALID_RECORD_COLUMN_VALUE_TYPE:{code:400,description:R.errorLogs.INVALID_RECORD_COLUMN_VALUE_TYPE},INVALID_COLUMN_VALUES_TYPE:{code:400,description:R.errorLogs.INVALID_COLUMN_VALUES_TYPE},EMPTY_RECORD_COLUMN_VALUES:{code:400,description:R.errorLogs.EMPTY_RECORD_COLUMN_VALUES},EMPTY_COLUMN_VALUE:{code:400,description:R.errorLogs.EMPTY_COLUMN_VALUE},MISSING_IDS_OR_COLUMN_VALUES_IN_GET:{code:400,description:R.errorLogs.MISSING_IDS_OR_COLUMN_VALUES_IN_GET},SKYFLOW_IDS_AND_COLUMN_NAME_BOTH_SPECIFIED:{code:400,description:R.errorLogs.SKYFLOW_IDS_AND_COLUMN_NAME_BOTH_SPECIFIED},SKYFLOW_IDS_AND_TOKEN_BOTH_SPECIFIED:{code:400,description:R.errorLogs.SKYFLOW_IDS_AND_TOKEN_BOTH_SPECIFIED},MISSING_TABLE_KEY_REVEAL:{code:400,description:R.errorLogs.MISSING_TABLE_KEY_REVEAL},MISSING_COLUMN_KEY_REVEAL:{code:400,description:R.errorLogs.MISSING_COLUMN_KEY_REVEAL},INVALID_SKYFLOW_ID_REVEAL:{code:400,description:R.errorLogs.INVALID_SKYFLOW_ID_REVEAL},INVALID_TABLE_REVEAL:{code:400,description:R.errorLogs.INVALID_TABLE_REVEAL},INVALID_COLUMN_NAME_REVEAL:{code:400,description:R.errorLogs.INVALID_COLUMN_NAME_REVEAL},EMPTY_SKYFLOW_ID_REVEAL:{code:400,description:R.errorLogs.EMPTY_SKYFLOW_ID_REVEAL},EMPTY_TABLE_REVEAL:{code:400,description:R.errorLogs.EMPTY_TABLE_REVEAL},EMPTY_COLUMN_NAME_REVEAL:{code:400,description:R.errorLogs.EMPTY_COLUMN_NAME_REVEAL},RECORDS_KEY_NOT_FOUND_GETBYID:{code:400,description:R.errorLogs.RECORDS_KEY_NOT_FOUND_GETBYID},INVALID_RECORDS_IN_GETBYID:{code:400,description:R.errorLogs.INVALID_RECORDS_IN_GETBYID},EMPTY_RECORDS_GETBYID:{code:400,description:R.errorLogs.EMPTY_RECORDS_GETBYID},MISSING_IDS_IN_GETBYID:{code:400,description:R.errorLogs.MISSING_IDS_IN_GETBYID},INVALID_IDS_IN_GETBYID:{code:400,description:R.errorLogs.INVALID_IDS_IN_GETBYID},EMPTY_IDS_IN_GETBYID:{code:400,description:R.errorLogs.EMPTY_IDS_IN_GETBYID},INVALID_SKYFLOWID_TYPE_IN_GETBYID:{code:400,description:R.errorLogs.INVALID_SKYFLOWID_TYPE_IN_GETBYID},MISSING_TABLE_IN_GETBYID:{code:400,description:R.errorLogs.MISSING_TABLE_IN_GETBYID},INVALID_TABLE_IN_GETBYID:{code:400,description:R.errorLogs.INVALID_TABLE_IN_GETBYID},MISSING_REDACTION_IN_GETBYID:{code:400,description:R.errorLogs.MISSING_REDACTION_IN_GETBYID},INVALID_REDACTION_TYPE_IN_GETBYID:{code:400,description:R.errorLogs.INVALID_REDACTION_TYPE_IN_GETBYID},EMPTY_SKYFLOWID_IN_GETBYID:{code:400,description:R.errorLogs.EMPTY_SKYFLOWID_IN_GETBYID},EMPTY_TABLE_IN_GETBYID:{code:400,description:R.errorLogs.EMPTY_TABLE_IN_GETBYID},EMPTY_REDACTION_TYPE_IN_GETBYID:{code:400,description:R.errorLogs.EMPTY_REDACTION_TYPE_IN_GETBYID},MISSING_COMPOSABLE_LAYOUT_KEY:{code:400,description:R.errorLogs.MISSING_COMPOSABLE_LAYOUT_KEY},EMPTY_COMPOSABLE_LAYOUT_ARRAY:{code:400,description:R.errorLogs.EMPTY_COMPOSABLE_LAYOUT_ARRAY},INVALID_COMPOSABLE_LAYOUT_TYPE:{code:400,description:R.errorLogs.INVALID_COMPOSABLE_LAYOUT_TYPE},NEGATIVE_VALUES_COMPOSABLE_LAYOUT:{code:400,description:R.errorLogs.NEGATIVE_VALUES_COMPOSABLE_LAYOUT},MISMATCH_ELEMENT_COUNT_LAYOUT_SUM:{code:400,description:R.errorLogs.MISMATCH_ELEMENT_COUNT_LAYOUT_SUM},MISSING_COMPOSABLE_CONTAINER_OPTIONS:{code:400,description:R.errorLogs.MISSING_COMPOSABLE_CONTAINER_OPTIONS},INVALID_COMPOSABLE_CONTAINER_OPTIONS:{code:400,description:R.errorLogs.INVALID_COMPOSABLE_CONTAINER_OPTIONS},COMPOSABLE_CONTAINER_NOT_MOUNTED:{code:400,description:R.errorLogs.COMPOSABLE_CONTAINER_NOT_MOUNTED},INVALID_BOOLEAN_OPTIONS:{code:400,description:R.errorLogs.INVALID_BOOLEAN_OPTIONS},INVALID_MASKING_CHARACTER:{code:400,description:R.errorLogs.INVALID_MASKING_CHARACTER},EMPTY_COLLECT_CUSTOM_FORMAT:{code:400,description:R.errorLogs.EMPTY_COLLECT_CUSTOM_FORMAT},INVALID_INPUT_OPTIONS_FORMAT:{code:400,description:R.errorLogs.INVALID_INPUT_OPTIONS_FORMAT},INVALID_INPUT_OPTIONS_TRANSLATION:{code:400,description:R.errorLogs.INVALID_INPUT_OPTIONS_TRANSLATION},INVALID_OPTION_CARD_METADATA:{code:400,description:R.errorLogs.INVALID_OPTION_CARD_METADATA},INVALID_OPTION_CARD_SCHEME:{code:400,description:R.errorLogs.INVALID_OPTION_CARD_SCHEME},INVALID_FIELD_SHOW_3DS_CHALLEGNGE:{code:400,description:R.errorLogs.INVALID_FIELD_SHOW_3DS_CHALLEGNGE},NO_ELEMENTS_IN_COLLECT:{code:400,description:R.errorLogs.NO_ELEMENTS_IN_COLLECT},NO_ELEMENTS_IN_COMPOSABLE:{code:400,description:R.errorLogs.NO_ELEMENTS_IN_COMPOSABLE},NO_ELEMENTS_IN_REVEAL:{code:400,description:R.errorLogs.NO_ELEMENTS_IN_REVEAL}};function dt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,c=[],l=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(e,t)||He(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var ft=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").replace(/[\s-]/g,""),t=Me.DEFAULT;return Object.entries(Ye).forEach((function(n){var r=dt(n,2),o=r[0];r[1].regex.test(e)&&(t=o)})),t},Et=function(e,t){if(!e||!Object.prototype.hasOwnProperty.call(e,"records"))throw new Bt(ut.RECORDS_KEY_NOT_FOUND,[],!0);var n=e.records;if(!n||!Array.isArray(n))throw new Bt(ut.INVALID_RECORDS_IN_INSERT,[],!0);if(0===n.length)throw new Bt(ut.EMPTY_RECORDS_IN_INSERT,[],!0);if(n.forEach((function(e,t){if(!e||!Object.prototype.hasOwnProperty.call(e,"table"))throw new Bt(ut.MISSING_TABLE_IN_INSERT,["".concat(t)],!0);if(!e.table)throw new Bt(ut.EMPTY_TABLE_IN_INSERT,["".concat(t)],!0);if(!("string"==typeof e.table||e.table instanceof String))throw new Bt(ut.INVALID_TABLE_IN_INSERT,["".concat(t)],!0);if(!Object.prototype.hasOwnProperty.call(e,"fields"))throw new Bt(ut.MISSING_FIELDS_IN_INSERT,["".concat(t)],!0);if(!e.fields)throw new Bt(ut.EMPTY_FIELDS_IN_INSERT,["".concat(t)],!0);if("object"!==a(e.fields)||Array.isArray(e.fields))throw new Bt(ut.INVALID_FIELDS_IN_INSERT,["".concat(t)],!0)})),t&&t.tokens&&"boolean"!=typeof t.tokens)throw new Bt(ut.INVALID_TOKENS_IN_INSERT,[],!0)},_t=function(e){if(!e||!Object.prototype.hasOwnProperty.call(e,"records"))throw new Bt(ut.RECORDS_KEY_NOT_FOUND_IN_ADDITIONAL_FIELDS,[],!0);var t=e.records;if(!t||!Array.isArray(t))throw new Bt(ut.INVALID_RECORDS_IN_ADDITIONAL_FIELDS,[],!0);if(0===t.length)throw new Bt(ut.EMPTY_RECORDS_IN_ADDITIONAL_FIELDS,[],!0);t.forEach((function(e,t){var n;if(!e||!Object.prototype.hasOwnProperty.call(e,"table"))throw new Bt(ut.MISSING_TABLE_IN_ADDITIONAL_FIELDS,["".concat(t)],!0);if(!e.table)throw new Bt(ut.EMPTY_TABLE_IN_ADDITIONAL_FIELDS,["".concat(t)],!0);if(void 0!==(null===(n=e.fields)||void 0===n?void 0:n.skyflowID)){var r,o,i;if(null===(r=e.fields)||void 0===r||!r.skyflowID)throw new Bt(ut.EMPTY_SKYFLOW_ID_IN_ADDITIONAL_FIELDS,["".concat(t)],!0);if(!("string"==typeof(null===(o=e.fields)||void 0===o?void 0:o.skyflowID)||(null===(i=e.fields)||void 0===i?void 0:i.skyflowID)instanceof String))throw new Bt(ut.INVALID_SKYFLOW_ID_IN_ADDITIONAL_FIELDS,["".concat(t)],!0)}if(!("string"==typeof e.table||e.table instanceof String))throw new Bt(ut.INVALID_TABLE_IN_ADDITIONAL_FIELDS,["".concat(t)],!0);if(!Object.prototype.hasOwnProperty.call(e,"fields"))throw new Bt(ut.MISSING_FIELDS_IN_ADDITIONAL_FIELDS,["".concat(t)],!0);if(!e.fields)throw new Bt(ut.EMPTY_FIELDS_IN_ADDITIONAL_FIELDS,["".concat(t)],!0);if("object"!==a(e.fields)||Array.isArray(e.fields))throw new Bt(ut.INVALID_FIELDS_IN_ADDITIONAL_FIELDS,["".concat(t)],!0)}))},mt=function(e){if(!e||!Object.prototype.hasOwnProperty.call(e,"records"))throw new Bt(ut.RECORDS_KEY_NOT_FOUND_DETOKENIZE,[]);var t=e.records;if(!t||!Array.isArray(t))throw new Bt(ut.INVALID_RECORDS_IN_DETOKENIZE,[]);if(0===t.length)throw new Bt(ut.EMPTY_RECORDS_DETOKENIZE,[]);t.forEach((function(e,t){if(!e||!Object.prototype.hasOwnProperty.call(e,"token"))throw new Bt(ut.MISSING_TOKEN_IN_DETOKENIZE,["".concat(t)]);if(!e.token)throw new Bt(ut.EMPTY_TOKEN_IN_DETOKENIZE,["".concat(t)]);if(!("string"==typeof e.token||e.token instanceof String))throw new Bt(ut.INVALID_TOKEN_IN_DETOKENIZE,["".concat(t)]);var n=e.redaction;if(n&&!Object.values(ot).includes(n))throw new Bt(ut.INVALID_REDACTION_TYPE_IN_DETOKENIZE,["".concat(t)])}))},vt=function(e,t){if(!e||!Object.prototype.hasOwnProperty.call(e,"records"))throw new Bt(ut.RECORDS_KEY_NOT_FOUND_GET,[]);var n=e.records;if(!n||!Array.isArray(n))throw new Bt(ut.INVALID_RECORDS_IN_GET,[]);if(0===n.length)throw new Bt(ut.EMPTY_RECORDS_GET,[]);if(t&&Object.prototype.hasOwnProperty.call(t,"tokens")&&"boolean"!=typeof(null==t?void 0:t.tokens))throw new Bt(ut.INVALID_TOKENS_IN_GET,[]);n.forEach((function(e,n){var r,o,i;if(0===Object.keys(e).length)throw new Bt(ut.EMPTY_RECORDS_GET,[]);if(0===(null===(r=e.ids)||void 0===r?void 0:r.length))throw new Bt(ut.EMPTY_IDS_IN_GET,["".concat(n)]);if(!(null==e.ids||e.ids&&Array.isArray(e.ids)))throw new Bt(ut.INVALID_IDS_IN_GET,["".concat(n)]);if(null===(o=e.ids)||void 0===o||o.forEach((function(e){if(!e)throw new Bt(ut.EMPTY_SKYFLOWID_IN_GET,["".concat(n)]);if(!("string"==typeof e||e instanceof String))throw new Bt(ut.INVALID_SKYFLOWID_TYPE_IN_GET,["".concat(n)])})),!Object.prototype.hasOwnProperty.call(e,"table"))throw new Bt(ut.MISSING_TABLE_IN_GET,["".concat(n)]);if(!e.table)throw new Bt(ut.EMPTY_TABLE_IN_GET,["".concat(n)]);if(!("string"==typeof e.table||e.table instanceof String))throw new Bt(ut.INVALID_TABLE_IN_GET,["".concat(n)]);if(!t||!Object.prototype.hasOwnProperty.call(t,"tokens")||!0!==(null==t?void 0:t.tokens)){if(!Object.prototype.hasOwnProperty.call(e,"redaction"))throw new Bt(ut.MISSING_REDACTION_IN_GET,["".concat(n)]);if(!e.redaction)throw new Bt(ut.EMPTY_REDACTION_TYPE_IN_GET,["".concat(n)]);if(!Object.values(ot).includes(e.redaction))throw new Bt(ut.INVALID_REDACTION_TYPE_IN_GET,["".concat(n)])}if(!0===Object.prototype.hasOwnProperty.call(e,"ids")&&!0===Object.prototype.hasOwnProperty.call(e,"columnName"))throw new Bt(ut.SKYFLOW_IDS_AND_COLUMN_NAME_BOTH_SPECIFIED,["".concat(n)]);if(Object.prototype.hasOwnProperty.call(e,"columnName")){if(!Object.prototype.hasOwnProperty.call(e,"columnName")||!Object.prototype.hasOwnProperty.call(e,"columnValues"))throw new Bt(ut.MISSING_RECORD_COLUMN_VALUE,["".concat(n)])}else if(!1===Object.prototype.hasOwnProperty.call(e,"ids")&&!1===Object.prototype.hasOwnProperty.call(e,"columnValues"))throw new Bt(ut.MISSING_IDS_OR_COLUMN_VALUES_IN_GET,["".concat(n)]);if(0===(null===(i=e.columnValues)||void 0===i?void 0:i.length))throw new Bt(ut.EMPTY_RECORD_COLUMN_VALUES,["".concat(n)]);if(!(null==e.columnValues||e.columnValues&&Array.isArray(e.columnValues)))throw new Bt(ut.INVALID_COLUMN_VALUES_IN_GET,["".concat(n)]);if(void 0!==e.columnName&&void 0===e.columnValues)throw new Bt(ut.MISSING_RECORD_COLUMN_VALUE,["".concat(n)]);if(void 0===e.columnName&&void 0!==e.columnValues)throw new Bt(ut.MISSING_RECORD_COLUMN_NAME,["".concat(n)]);var a=e.columnName;if(null!=a&&"string"!=typeof a)throw new Bt(ut.INVALID_RECORD_COLUMN_VALUE,["".concat(n)]);var c=e.columnValues;if(null!=c){if(0===c.length||null===c)throw new Bt(ut.EMPTY_RECORD_COLUMN_VALUES,["".concat(n)]);c.forEach((function(e){if(""===e||null===e)throw new Bt(ut.EMPTY_COLUMN_VALUE,["".concat(n)]);if("string"!=typeof e)throw new Bt(ut.INVALID_RECORD_COLUMN_VALUE_TYPE,["".concat(n)])}))}if(t&&Object.prototype.hasOwnProperty.call(t,"tokens")&&!0===(null==t?void 0:t.tokens)){if(a||c)throw new Bt(ut.TOKENS_GET_COLUMN_NOT_SUPPORTED,[]);if(e.redaction)throw new Bt(ut.REDACTION_WITH_TOKENS_NOT_SUPPORTED,[])}}))},It=function(e){if(!e||!Object.prototype.hasOwnProperty.call(e,"records"))throw new Bt(ut.RECORDS_KEY_NOT_FOUND_GETBYID,[]);var t=e.records;if(!t||!Array.isArray(t))throw new Bt(ut.INVALID_RECORDS_IN_GETBYID,[]);if(0===t.length)throw new Bt(ut.EMPTY_RECORDS_GETBYID,[]);t.forEach((function(e,t){if(!e||!Object.prototype.hasOwnProperty.call(e,"ids"))throw new Bt(ut.MISSING_IDS_IN_GETBYID,["".concat(t)]);if(!e.ids||!Array.isArray(e.ids))throw new Bt(ut.INVALID_IDS_IN_GETBYID,["".concat(t)]);if(0===e.ids.length)throw new Bt(ut.EMPTY_IDS_IN_GETBYID,["".concat(t)]);if(e.ids.forEach((function(e){if(!e)throw new Bt(ut.EMPTY_SKYFLOWID_IN_GETBYID,["".concat(t)]);if(!("string"==typeof e||e instanceof String))throw new Bt(ut.INVALID_SKYFLOWID_TYPE_IN_GETBYID,["".concat(t)])})),!Object.prototype.hasOwnProperty.call(e,"table"))throw new Bt(ut.MISSING_TABLE_IN_GETBYID,["".concat(t)]);if(!e.table)throw new Bt(ut.EMPTY_TABLE_IN_GETBYID,["".concat(t)]);if(!("string"==typeof e.table||e.table instanceof String))throw new Bt(ut.INVALID_TABLE_IN_GETBYID,["".concat(t)]);if(!Object.prototype.hasOwnProperty.call(e,"redaction"))throw new Bt(ut.MISSING_REDACTION_IN_GETBYID,["".concat(t)]);if(!e.redaction)throw new Bt(ut.EMPTY_REDACTION_TYPE_IN_GETBYID,["".concat(t)]);if(!Object.values(ot).includes(e.redaction))throw new Bt(ut.INVALID_REDACTION_TYPE_IN_GETBYID,["".concat(t)])}))},yt=function(e,t){if(!e||!Object.prototype.hasOwnProperty.call(e,"records"))throw new Bt(ut.RECORDS_KEY_NOT_FOUND_DELETE,[],!0);var n=e.records;if(!n||!Array.isArray(n))throw new Bt(ut.INVALID_RECORDS_IN_DELETE,[],!0);if(0===n.length)throw new Bt(ut.EMPTY_RECORDS_IN_DELETE,[],!0);n.forEach((function(e,t){if(!e||!Object.prototype.hasOwnProperty.call(e,"table"))throw new Bt(ut.MISSING_TABLE_IN_DELETE,["".concat(t)],!0);if(!e.table)throw new Bt(ut.EMPTY_TABLE_IN_DELETE,["".concat(t)],!0);if(!("string"==typeof e.table||e.table instanceof String))throw new Bt(ut.INVALID_TABLE_IN_DELETE,["".concat(t)],!0);if(!Object.prototype.hasOwnProperty.call(e,"id"))throw new Bt(ut.MISSING_ID_IN_DELETE,["".concat(t)],!0);if(!e.id)throw new Bt(ut.EMPTY_ID_IN_DELETE,["".concat(t)],!0);if(!("string"==typeof e.id||e.id instanceof String))throw new Bt(ut.INVALID_ID_IN_DELETE,["".concat(t)],!0)}))},Ot=function(e){if(0===e.length)throw new Bt(ut.EMPTY_RECORDS_REVEAL,[]);e.forEach((function(e){if(!e||!Object.prototype.hasOwnProperty.call(e,"skyflowID")){if(!e||!Object.prototype.hasOwnProperty.call(e,"token"))throw new Bt(ut.MISSING_TOKEN_KEY_REVEAL,[]);if(!e.token)throw new Bt(ut.EMPTY_TOKEN_ID_REVEAL,[]);if(!("string"==typeof e.token||e.token instanceof String))throw new Bt(ut.INVALID_TOKEN_ID_REVEAL,[])}var t=e.redaction;if(t&&!Object.values(ot).includes(t))throw new Bt(ut.INVALID_REDACTION_TYPE_REVEAL,[]);if(Object.prototype.hasOwnProperty.call(e,"label")&&"string"!=typeof e.label)throw new Bt(ut.INVALID_LABEL_REVEAL,[]);if(Object.prototype.hasOwnProperty.call(e,"altText")&&"string"!=typeof e.altText)throw new Bt(ut.INVALID_ALT_TEXT_REVEAL,[]);if(Object.prototype.hasOwnProperty.call(e,"format")&&"string"!=typeof e.format)throw new Bt(ut.INVALID_FORMAT_REVEAL,[]);if(Object.prototype.hasOwnProperty.call(e,"format")&&""===e.format)throw new Bt(ut.EMPTY_FORMAT_REVEAL,[])}))},gt=function(e){if(!e||!Object.prototype.hasOwnProperty.call(e,"skyflowID"))throw new Bt(ut.MISSING_SKYFLOWID_KEY_REVEAL,[]);if(!e.skyflowID)throw new Bt(ut.EMPTY_SKYFLOW_ID_REVEAL,[]);if(Object.prototype.hasOwnProperty.call(e,"skyflowID")&&"string"!=typeof e.skyflowID)throw new Bt(ut.INVALID_SKYFLOW_ID_REVEAL,[]);if(Object.prototype.hasOwnProperty.call(e,"skyflowID")&&Object.prototype.hasOwnProperty.call(e,"token"))throw new Bt(ut.SKYFLOW_IDS_AND_TOKEN_BOTH_SPECIFIED,[]);if(!e||!Object.prototype.hasOwnProperty.call(e,"column"))throw new Bt(ut.MISSING_COLUMN_KEY_REVEAL,[]);if(!e.column)throw new Bt(ut.EMPTY_COLUMN_NAME_REVEAL,[]);if(Object.prototype.hasOwnProperty.call(e,"column")&&"string"!=typeof e.column)throw new Bt(ut.INVALID_COLUMN_NAME_REVEAL,[]);if(!e||!Object.prototype.hasOwnProperty.call(e,"table"))throw new Bt(ut.MISSING_TABLE_KEY_REVEAL,[]);if(!e.table)throw new Bt(ut.EMPTY_TABLE_REVEAL,[]);if(Object.prototype.hasOwnProperty.call(e,"table")&&"string"!=typeof e.table)throw new Bt(ut.INVALID_TABLE_REVEAL,[]);if(Object.prototype.hasOwnProperty.call(e,"altText")&&"string"!=typeof e.altText)throw new Bt(ut.INVALID_ALT_TEXT_RENDER,[])},Nt=function(e){if(!e||"https"!==e.substring(0,5).toLowerCase())return!1;try{if(new URL(e))return!0}catch(e){return!1}return!0},Lt=function(e){var t=!0;try{new RegExp(e)}catch(e){t=!1}return t},Tt=function(e){if(!Object.prototype.hasOwnProperty.call(e,"vaultID"))throw new Bt(ut.VAULTID_IS_REQUIRED,[],!0);if(!e.vaultID)throw new Bt(ut.EMPTY_VAULTID_IN_INIT,[],!0);if(!Object.prototype.hasOwnProperty.call(e,"vaultURL"))throw new Bt(ut.VAULTURL_IS_REQUIRED,[],!0);if(!e.vaultURL)throw new Bt(ut.EMPTY_VAULTURL_IN_INIT,[],!0);if(e.vaultURL&&!Nt(e.vaultURL))throw new Bt(ut.INVALID_VAULTURL_IN_INIT,[],!0);if(!Object.prototype.hasOwnProperty.call(e,"getBearerToken"))throw new Bt(ut.GET_BEARER_TOKEN_IS_REQUIRED,[],!0)},ht=function(e,t){if(!Object.prototype.hasOwnProperty.call(e,"type"))throw new Bt(ut.MISSING_ELEMENT_TYPE,[],!0);if(!e.type)throw new Bt(ut.EMPTY_ELEMENT_TYPE,[],!0);if(Object.prototype.hasOwnProperty.call(e,"altText")&&Ft(R.warnLogs.COLLECT_ALT_TEXT_DEPERECATED,st.WARN,t),Object.prototype.hasOwnProperty.call(e,"skyflowID")&&"string"!=typeof e.skyflowID)throw new Bt(ut.INVALID_SKYFLOWID_IN_COLLECT,[],!0);if(e.type===xe.FILE_INPUT&&!Object.keys(e).includes("skyflowID"))throw new Bt(ut.MISSING_SKYFLOWID_IN_COLLECT,[],!0)},bt=function(e){if(!e||!Array.isArray(e))throw new Bt(ut.INVALID_UPSERT_OPTION_TYPE,[],!0);if(!e.length)throw new Bt(ut.EMPTY_UPSERT_OPTIONS_ARRAY,[],!0);e.forEach((function(e,t){if(!e||"object"!==a(e))throw new Bt(ut.INVALID_UPSERT_OPTION_OBJECT_TYPE,[t],!0);if(!Object.prototype.hasOwnProperty.call(e,"table"))throw new Bt(ut.MISSING_TABLE_IN_UPSERT_OPTION,[t],!0);if(!e.table||"string"!=typeof e.table||!e.table.length)throw new Bt(ut.INVALID_TABLE_IN_UPSERT_OPTION,[t],!0);if(!Object.prototype.hasOwnProperty.call(e,"column"))throw new Bt(ut.MISSING_COLUMN_IN_UPSERT_OPTION,[t],!0);if(!e.column||"string"!=typeof e.column||!e.column.length)throw new Bt(ut.INVALID_COLUMN_IN_UPSERT_OPTION,[t],!0)}))},At=function(e){return"boolean"==typeof e},wt=function(e){if(e){if(Object.prototype.hasOwnProperty.call(e,"format")&&"string"!=typeof e.format)throw new Bt(ut.INVALID_INPUT_OPTIONS_FORMAT,[],!0);if(Object.prototype.hasOwnProperty.call(e,"translation")&&("object"!==a(e.translation)||"[object Object]"!==Object.prototype.toString.call(e.translation)))throw new Bt(ut.INVALID_INPUT_OPTIONS_TRANSLATION,[],!0)}};const Rt={IFRAME_SECURE_SITE:"".concat("https://js.skyflow-preview.com","/").concat("v2.5.0-beta.3/elements/index.html"),IFRAME_SECURE_ORIGIN:"https://js.skyflow-preview.com"},St=JSON.parse('{"name":"skyflow-js","preferGlobal":true,"analyze":false,"version":"2.5.0-beta.3","author":"Skyflow","description":"Skyflow JavaScript SDK","homepage":"https://github.com/skyflowapi/skyflow-js","main":"./dist/sdkNodeBuild/index.js","types":"./types/index-node.d.ts","files":["dist/sdkNodeBuild","types"],"license":"MIT","keywords":["client","sdk","javascript"],"scripts":{"type-check":"tsc --noEmit","type-check:watch":"npm run type-check -- --watch","build:types":"tsc --emitDeclarationOnly","dev":"webpack serve --config=webpack.dev.js --open --hot ","build-browser-sdk":"webpack --config=webpack.skyflow-browser.js","build-node-sdk":"webpack --config=webpack.skyflow-node.js","build-iframe":"webpack --config=webpack.iframe.js","test":"jest --config=jest.config.json"},"repository":{"type":"git","url":"https://github.com/skyflowapi/skyflow-js.git"},"dependencies":{"core-js":"^3.6.5","framebus":"^4.0.0","inject-stylesheet":"^2.0.0","jquery":"^3.5.1","jquery-mask-plugin":"^1.14.16","jss":"^10.7.1","jss-preset-default":"^10.7.1","jwt-decode":"^3.1.2","lodash":"^4.17.21","mime":"3.0.0","regex-parser":"^2.2.11","set-value":"^4.0.1"},"engines":{"node":">=12.0","npm":">=6.0"},"devDependencies":{"@babel/core":"^7.23.2","@babel/plugin-proposal-class-properties":"^7.10.1","@babel/plugin-proposal-decorators":"^7.10.1","@babel/plugin-proposal-object-rest-spread":"^7.10.1","@babel/plugin-transform-runtime":"^7.10.1","@babel/preset-env":"^7.9.6","@babel/preset-typescript":"^7.10.1","@babel/runtime":"^7.10.2","@types/jest":"^27.0.1","@types/jquery-mask-plugin":"^1.14.3","@types/mime":"^3.0.4","@types/node":"^14.0.5","@typescript-eslint/eslint-plugin":"^4.31.2","@typescript-eslint/parser":"^4.31.2","babel-loader":"^9.1.2","clean-webpack-plugin":"^4.0.0-alpha.0","compression-webpack-plugin":"^8.0.1","eslint":"^7.32.0","eslint-config-airbnb-base":"^14.2.1","eslint-config-airbnb-typescript":"^14.0.0","eslint-plugin-import":"^2.26.0","fork-ts-checker-webpack-plugin":"^6.3.2","html-webpack-plugin":"^5.5.0","jest":"^27.2.1","node-polyfill-webpack-plugin":"^2.0.1","typescript":"^4.6.3","webpack":"^5.97.1","webpack-bundle-analyzer":"^4.4.2","webpack-cli":"^4.8.0","webpack-dev-server":"^4.7.4","webpack-manifest-plugin":"^4.0.2","webpack-merge":"^5.8.0"}}');function Dt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dt(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}n(125).getType;function Mt(e){var t=null==e?void 0:e.split(":");return t&&t.length>2?"".concat(t[0],":").concat(t[1],":").concat(t[2]):""}function Pt(e,t,n){var r,o,i,a,c,l,s={sdkName:e.name,sdkVersion:e.version},p=function(e,t){return e&&""!==e?"".concat(e):"".concat(t.sdkName,"@").concat(t.sdkVersion)}(null==t?void 0:t.sdkVersion,s),u=function(e){var t,n,r=null,o=null;if(/Windows/.test(e))r="Windows",o=null!==(t=null===(n=/Windows NT (\d+\.\d+)/.exec(e))||void 0===n?void 0:n[1])&&void 0!==t?t:null;else if(/Android/.test(e)){var i,a;r="Android",o=null!==(i=null===(a=/Android (\d+\.\d+)/.exec(e))||void 0===a?void 0:a[1])&&void 0!==i?i:null}else if(/iOS/.test(e)||/iPhone/.test(e)){var c,l;r="iOS",o=null!==(c=null===(l=/OS (\d+[._]\d+[._]?\d*)/.exec(e))||void 0===l||null===(l=l[1])||void 0===l?void 0:l.replace(/_/g,"."))&&void 0!==c?c:null}else if(/Mac OS X/.test(e)){var s,p;r="Mac OS X",o=null!==(s=null===(p=/Mac OS X (\d+([._]\d+)*)/.exec(e))||void 0===p||null===(p=p[1])||void 0===p?void 0:p.replace(/_/g,"."))&&void 0!==s?s:null}else if(/Linux/.test(e)){var u,d;r="Linux",o=null!==(u=null===(d=/Linux( \w+)*?\/([\w.]+)/.exec(e))||void 0===d?void 0:d[2])&&void 0!==u?u:null}return{os:r,version:o}}(n.userAgent),d=function(e){var t="",n="";if(-1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")){t="Internet Explorer";var r=e.match(/(MSIE|rv:)\s?([\d.]+)/);r&&(n=r[2])}else if(-1!==e.indexOf("Edge")){t="Microsoft Edge";var o=e.match(/Edge\/([\d.]+)/);o&&(n=o[1])}else if(-1!==e.indexOf("Chrome")){t="Google Chrome";var i=e.match(/Chrome\/([\d.]+)/);i&&(n=i[1])}else if(-1!==e.indexOf("Firefox")){t="Mozilla Firefox";var a=e.match(/Firefox\/([\d.]+)/);a&&(n=a[1])}else if(-1!==e.indexOf("Safari")){t="Apple Safari";var c=e.match(/Version\/([\d.]+)/);c&&(n=c[1])}return{browserName:t,browserVersion:n}}(n.userAgent);return{sdk_name_version:p,sdk_client_device_model:(l=n.userAgent,/(ipad|tablet)/gi.test(l)?"tablet":/Mobile|iP(hone|od)|Android|BlackBerry|IEMobile/.test(l)?"mobile":"desktop"),sdk_os_version:null!==(r=n.platform)&&void 0!==r?r:"".concat(null!==(o=u.os)&&void 0!==o?o:""," ").concat(null!==(i=u.version)&&void 0!==i?i:""),sdk_runtime_details:"".concat(null!==(a=d.browserName)&&void 0!==a?a:""," ").concat(null!==(c=d.browserVersion)&&void 0!==c?c:"")}}var Ct=function(){var e=function(e){var t={sdkName:St.name,sdkVersion:St.version};return e&&""!==e&&e.split("@").length>1&&(t.sdkName=e.split("@")[0],t.sdkVersion=e.split("@")[1]),t}(localStorage.getItem("sdk_version")||""),t="skyflow-js"===e.sdkName?"JS":"React";return{sdkLanguageAndVersion:"".concat(t," SDK v").concat(e.sdkVersion),sdkOwner:"Skyflow"}},kt=n(6763),Vt={DEBUG:{showDebugLogs:!0,showInfoLogs:!0,showWarnLogs:!0,showErrorLogs:!0},INFO:{showDebugLogs:!1,showInfoLogs:!0,showWarnLogs:!0,showErrorLogs:!0},WARN:{showDebugLogs:!1,showInfoLogs:!1,showWarnLogs:!0,showErrorLogs:!0},ERROR:{showDebugLogs:!1,showInfoLogs:!1,showWarnLogs:!1,showErrorLogs:!0}},jt={PROD:{doesReturnValue:!1},DEV:{doesReturnValue:!0}},Ut="[Skyflow]",Ft=function(e,t,n){var r=Ct(),o=r.sdkLanguageAndVersion,i=r.sdkOwner;if(n&&Vt[n]){var a=Vt[n],c=a.showDebugLogs,l=a.showInfoLogs,s=a.showWarnLogs,p=a.showErrorLogs;t===st.LOG&&c?kt.log("".concat(ct.DEBUG,": ").concat(Ut," ").concat(e)):t===st.LOG&&l?kt.log("".concat(ct.INFO,": ").concat(Ut," ").concat(e)):t===st.WARN&&s?kt.warn("".concat(ct.WARN,": ").concat(Ut," ").concat(e)):t===st.ERROR&&p&&kt.error("".concat(ct.ERROR,": ").concat(i," ").concat(o," ").concat(e))}},Yt=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t.filter((function(e,t){return 0!==t}));return r?r.replace(/%s[0-9]+/g,(function(e){var t=e.replace("%s","")-1;return o[t]})):""};function Gt(e){var t=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(e){return!1}}();return function(){var n,r=tt(e);if(t){var o=tt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return et(this,n)}}var Bt=function(e){Qe(n,e);var t=Gt(n);function n(e,r){var o,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];s(this,n);var a={code:e.code,description:r&&(null==r?void 0:r.length)>0?Yt.apply(void 0,[e.description].concat(Je(r))):e.description};return l(Ze(o=t.call(this,a.description)),"error",void 0),l(Ze(o),"errors",void 0),i?o.error=a:o.errors=[a],o}return u(n)}(rt(Error));function Xt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Wt(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}var Kt=new WeakMap,qt=function(){function e(t,n){var r=this;s(this,e),l(this,"config",void 0),Wt(this,Kt,{writable:!0,value:void 0}),l(this,"request",(function(e){return new Promise((function(t,n){var o,i,a=new XMLHttpRequest;if(a){if(a.open(e.requestMethod,e.url),e.headers){var c=Pt(St,E(r,Kt),navigator);e.headers["sky-metadata"]=JSON.stringify(c);var s=e.headers;Object.keys(e.headers).forEach((function(e){"content-type"===e&&s[e]&&s[e].includes(We.FORMDATA)||a.setRequestHeader(e,s[e])}))}null!==(o=e.headers)&&void 0!==o&&null!==(o=o["content-type"])&&void 0!==o&&o.includes(We.FORMURLENCODED)||null!==(i=e.headers)&&void 0!==i&&null!==(i=i["content-type"])&&void 0!==i&&i.includes(We.FORMDATA)?a.send(e.body):a.send(JSON.stringify(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xt(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e.body))),a.onload=function(){var e=a.getAllResponseHeaders().trim().split(/[\r\n]+/),r={};e.forEach((function(e){var t=e.split(": "),n=t.shift()||"",o=t.join(": ");r[n]=o}));var o=r["content-type"],i=r["x-request-id"];if(a.status<200||a.status>=400)if(o&&o.includes("application/json")){var c,l,s,p=JSON.parse(a.response);if(null!==(c=p)&&void 0!==c&&null!==(c=c.error)&&void 0!==c&&c.message)p=i?"".concat(null===(l=p)||void 0===l||null===(l=l.error)||void 0===l?void 0:l.message," - requestId: ").concat(i):null===(s=p)||void 0===s||null===(s=s.error)||void 0===s?void 0:s.message;n(new Bt({code:a.status,description:p},[],!0))}else o&&o.includes("text/plain")?n(new Bt({code:a.status,description:i?"".concat(a.response," - requestId: ").concat(i):a.response},[],!0)):n(new Bt({code:a.status,description:i?"".concat(R.errorLogs.ERROR_OCCURED," - requestId: ").concat(i):R.errorLogs.ERROR_OCCURED},[],!0));o&&o.includes("application/json")&&t(JSON.parse(a.response)),t(a.response)},a.onerror=function(){n(new Bt(ut.NETWORK_ERROR,[],!0))}}else n(new Bt(ut.CONNECTION_ERROR,[],!0))}))})),this.config=t,f(this,Kt,n)}return u(e,[{key:"toJSON",value:function(){return{config:this.config,metaData:E(this,Kt)}}}],[{key:"fromJSON",value:function(t){return new e(t.config,t.metaData)}}]),e}();const zt=qt;const Ht=function(){function e(){s(this,e),l(this,"events",void 0),this.events={}}return u(e,[{key:"on",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.events[e]?this.events[e].push({priority:n,callback:t}):this.events[e]=[{priority:n,callback:t}]}},{key:"off",value:function(e,t){var n=this.events[e];if(n){var r=n.findIndex((function(e){return e.callback===t}));n.splice(r,1)}}},{key:"_emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=this.events[e];o&&o.forEach((function(e){e.callback.apply(e,n)}))}},{key:"hasListener",value:function(e){var t=this.events[e];return!!t&&t.length>0}},{key:"resetEvents",value:function(){var e=this,t={};Object.keys(this.events).forEach((function(n){var r=e.events[n];if(r&&r.length>0){var o=[];r.forEach((function(e){e.priority&&o.push(e)})),t[n]=o}})),this.events=t}}],[{key:"createChild",value:function(t){t.prototype=Object.create(e.prototype,{constructor:t})}}]),e}();function Jt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jt(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var $t={src:"about:blank",frameBorder:0,allowtransparency:!0,scrolling:"no",style:"width: 100%;",allow:"clipboard-read; clipboard-write"},Qt=function(e,t){Object.keys(t).forEach((function(n){if(Object.prototype.hasOwnProperty.call(t,n)){var r=t[n];null==r?e.removeAttribute(n):e.setAttribute(n,r)}}))};const en=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=document.createElement("iframe"),n=Zt(Zt({},$t),e);return Object.assign(t.style,Ve),Qt(t,n),t.getAttribute("id")||(t.id=t.name),t};var tn=function(){return Rt.IFRAME_SECURE_SITE},nn=function(e,t){Object.keys(t).forEach((function(n){Object.prototype.hasOwnProperty.call(t,n)&&(e.style[n]=t[n])}))};const rn=u((function e(){s(this,e)}));function on(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function an(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?on(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):on(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var cn={records:[]};function ln(e,t){var n,r,o,i=Pt(St,e,navigator),a={element_id:t,element_type:[],div_id:"",container_name:"",container_id:(null==e?void 0:e.uuid)||"",session_id:(null==e?void 0:e.session_id)||"",vault_id:(null==e||null===(n=e.clientJSON)||void 0===n||null===(n=n.config)||void 0===n?void 0:n.vaultID)||"",vault_url:(null==e||null===(r=e.clientJSON)||void 0===r||null===(r=r.config)||void 0===r?void 0:r.vaultURL)||"",events:[],created_at:Date.now(),region:(null===(o=Intl)||void 0===o||null===(o=o.DateTimeFormat())||void 0===o||null===(o=o.resolvedOptions())||void 0===o?void 0:o.timeZone)||"",status:J.INITIALIZED,sdk_name_version:i.sdk_name_version,sdk_client_device_model:i.sdk_client_device_model||"",sdk_client_os_details:i.sdk_os_version||"",sdk_runtime_details:i.sdk_runtime_details||""};cn.records.push(a)}function sn(e,t,n){cn.records.forEach((function(r){r.element_id===e&&(t===K||t===G?r[t].push(n):t===z&&r.mount_start_time?(r[t]=n,r.latency=n-r.mount_start_time):r[t]=n)}))}function pn(e){var t=cn.records.filter((function(t){return t.element_id===e}));if(t&&t[0]){var n=t[0];n.status=function(e){var t=e.status;return e.events&&e.events.filter((function(e){return e.includes(Y.MOUNTED)})).length>0?t=J.SUCCESS:e.events.length>0?t=J.PARTIAL_RENDER:(0===e.events.length||e.error)&&(t=J.FAILED),t}(n);var r=an(an({},n),{},{time:Math.floor(Date.now()/1e3)});""!==n.vault_id&&""!==n.vault_url&&m().emit(Te+n.container_id,{event:r})}}function un(e){setTimeout((function(){pn(e)}),2e4)}var dn=n(6763),fn=u((function e(t,n,r,o){var i=this;s(this,e),l(this,"name",void 0),l(this,"metadata",void 0),l(this,"iframe",void 0),l(this,"container",void 0),l(this,"mount",(function(e,t,n){var r;try{if("string"==typeof e){if(i.container=document.querySelector(e)||void 0,!i.container)throw new Bt(ut.INVALID_ELEMENT_SELECTOR,[],!0)}else{if(!(e instanceof HTMLElement))throw new Bt(ut.INVALID_ELEMENT_SELECTOR,[],!0);i.container=e}}catch(e){dn.error(e),t&&sn(t,H,e.message)}Qt(i.iframe,{src:"".concat(tn()).concat(n?"?".concat(btoa(null==n?void 0:n.record)):"")}),null===(r=i.container)||void 0===r||r.appendChild(i.iframe)})),l(this,"setIframeHeight",(function(e){i.iframe.getAttribute("height")!==e&&i.iframe.setAttribute("height","".concat(e,"px"))})),l(this,"unmount",(function(){i.iframe.remove()}));var a=n.clientDomain||"";this.name="".concat(t,":").concat(r,":").concat(o,":").concat(btoa(a)),this.metadata=n,this.iframe=en({name:this.name,referrer:a})}));const En=u((function e(){s(this,e)}));n(4756);var _n=function(e,t){var n={};if(e.fields){var r={skyflow_id:e.fields.skyflow_id,column:t};n.success=r}else e.errors&&(n.errors={skyflowId:e.errors.skyflowId,column:e.errors.column,error:e.errors.error});return n};function mn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mn(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function In(e){var t=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(e){return!1}}();return function(){var n,r=tt(e);if(t){var o=tt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return et(this,n)}}function yn(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}var On="RevealElement",gn=new WeakMap,Nn=new WeakMap,Ln=new WeakMap,Tn=new WeakMap,hn=new WeakMap,bn=new WeakMap,An=new WeakMap,wn=new WeakMap,Rn=new WeakMap,Sn=new WeakMap,Dn=new WeakMap,xn=new WeakMap,Mn=new WeakMap,Pn=new WeakMap,Cn=function(e){Qe(n,e);var t=In(n);function n(e){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,c=arguments.length>4?arguments[4]:void 0,l=arguments.length>5?arguments[5]:void 0;return s(this,n),yn(Ze(r=t.call(this)),gn,{writable:!0,value:void 0}),yn(Ze(r),Nn,{writable:!0,value:void 0}),yn(Ze(r),Ln,{writable:!0,value:void 0}),yn(Ze(r),Tn,{writable:!0,value:void 0}),yn(Ze(r),hn,{writable:!0,value:!1}),yn(Ze(r),bn,{writable:!0,value:!1}),yn(Ze(r),An,{writable:!0,value:void 0}),yn(Ze(r),wn,{writable:!0,value:void 0}),yn(Ze(r),Rn,{writable:!0,value:!1}),yn(Ze(r),Sn,{writable:!0,value:void 0}),yn(Ze(r),Dn,{writable:!0,value:void 0}),yn(Ze(r),xn,{writable:!0,value:void 0}),yn(Ze(r),Mn,{writable:!0,value:void 0}),yn(Ze(r),Pn,{writable:!0,value:!1}),f(Ze(r),wn,c),f(Ze(r),Nn,i),f(Ze(r),Mn,E(Ze(r),Nn).uuid),f(Ze(r),Ln,vn(vn({},e),function(e){var t={};if(e){if(t=xt({},e),Object.prototype.hasOwnProperty.call(t,"enableCopy")&&!At(t.enableCopy))throw new Bt(ut.INVALID_BOOLEAN_OPTIONS,["enableCopy"],!0);if(Object.prototype.hasOwnProperty.call(t,"format")||Object.prototype.hasOwnProperty.call(t,"translation")){var n,r,o=[];t.format&&o.push(t.format),o.push(null),t.translation?o.push(t.translation):t.format&&o.push(qe),null===(n=t=xt(xt({},t),3===o.length?{mask:o}:{}))||void 0===n||delete n.format,null===(r=t)||void 0===r||delete r.translation}}return t}(o))),f(Ze(r),Tn,a.containerId),f(Ze(r),Rn,a.isMounted),f(Ze(r),Sn,a.eventEmitter),f(Ze(r),An,l),ln(i,c),sn(E(Ze(r),wn),G,F.REVEAL),sn(E(Ze(r),wn),X,F.REVEAL),f(Ze(r),gn,new fn("".concat("reveal",":").concat(btoa(v())),i,E(Ze(r),Tn),E(Ze(r),An).logLevel)),f(Ze(r),xn,""),f(Ze(r),Dn,!1),f(Ze(r),Rn,!0),f(Ze(r),Pn,i.skyflowContainer.isControllerFrameReady),m().on(ae.HEIGHT+E(Ze(r),gn).name,(function(e){E(Ze(r),gn).setIframeHeight(e.height)})),r}return u(n,[{key:"getID",value:function(){return E(this,wn)}},{key:"mount",value:function(e){var t,n,r=this;if(!e)throw new Bt(ut.EMPTY_ELEMENT_IN_MOUNT,["RevealElement"],!0);sn(E(this,wn),B,e),null!==(t=E(this,Nn))&&void 0!==t&&null!==(t=t.clientJSON)&&void 0!==t&&null!==(t=t.config)&&void 0!==t&&null!==(t=t.options)&&void 0!==t&&t.trackMetrics&&null!==(n=E(this,Nn).clientJSON.config)&&void 0!==n&&null!==(n=n.options)&&void 0!==n&&n.trackingKey&&un(E(this,wn)),f(this,Rn,!0),E(this,Rn)&&(E(this,gn).mount(e,void 0,{record:JSON.stringify(vn(vn({},E(this,Nn)),{},{record:E(this,Ln),context:E(this,An),containerId:E(this,Tn)}))}),m().target(Rt.IFRAME_SECURE_ORIGIN).on(ae.MOUNTED+E(this,gn).name,(function(){f(r,hn,!0),E(r,Ln).skyflowID?(m().emit(Se+E(r,Tn),{skyflowID:E(r,Ln).skyflowID,containerId:E(r,Tn)}),sn(E(r,wn),z,Date.now()),sn(E(r,wn),K,Y.MOUNTED)):(m().emit(Se+E(r,Tn),{id:E(r,Ln).token,containerId:E(r,Tn)}),sn(E(r,wn),z,Date.now()),sn(E(r,wn),K,Y.MOUNTED)),Object.prototype.hasOwnProperty.call(E(r,Ln),"skyflowID")&&m().emit(ae.HEIGHT+E(r,gn).name,{},(function(e){E(r,gn).setIframeHeight(e.height)}))})),sn(E(this,wn),K,Y.READY),sn(E(this,wn),q,Date.now()))}},{key:"renderFile",value:function(){var e=this;f(this,Pn,E(this,Nn).skyflowContainer.isControllerFrameReady);var t="";Object.prototype.hasOwnProperty.call(E(this,Ln),"altText")&&(t=E(this,Ln).altText),this.setAltText("loading...");var n=E(this,An).logLevel;return E(this,Pn)?new Promise((function(r,o){try{Tt(E(e,Nn).clientJSON.config),Ft(Yt(R.infoLogs.VALIDATE_RENDER_RECORDS,On),st.LOG,n),gt(E(e,Ln)),m().emit(se+E(e,Nn).uuid,{type:ie,records:E(e,Ln),containerId:E(e,Tn),iframeName:E(e,gn).name},(function(n){n.errors?(Ft(Yt(R.errorLogs.FAILED_RENDER),st.ERROR,E(e,An).logLevel),Object.prototype.hasOwnProperty.call(E(e,Ln),"altText")&&e.setAltText(t),o(_n(n,E(e,Ln).column))):(Ft(Yt(R.infoLogs.RENDER_SUBMIT_SUCCESS,On),st.LOG,E(e,An).logLevel),Ft(Yt(R.infoLogs.FILE_RENDERED,On,E(e,Ln).skyflowID),st.LOG,E(e,An).logLevel),r(_n(n,E(e,Ln).column)))})),Ft(Yt(R.infoLogs.EMIT_EVENT,On,Le),st.LOG,n)}catch(e){Ft("Error: ".concat(e.message),st.ERROR,n),o(e)}})):new Promise((function(r,o){try{Tt(E(e,Nn).clientJSON.config),Ft(Yt(R.infoLogs.VALIDATE_RENDER_RECORDS,On),st.LOG,n),gt(E(e,Ln)),m().target(Rt.IFRAME_SECURE_ORIGIN).on(he+E(e,Nn).uuid,(function(){m().emit(se+E(e,Nn).uuid,{type:ie,records:E(e,Ln),containerId:E(e,Tn),iframeName:E(e,gn).name},(function(n){n.errors?(Ft(Yt(R.errorLogs.FAILED_RENDER),st.ERROR,E(e,An).logLevel),Object.prototype.hasOwnProperty.call(E(e,Ln),"altText")&&e.setAltText(t),o(_n(n,E(e,Ln).column))):(Ft(Yt(R.infoLogs.RENDER_SUBMIT_SUCCESS,On),st.LOG,E(e,An).logLevel),Ft(Yt(R.infoLogs.FILE_RENDERED,On,E(e,Ln).skyflowID),st.LOG,E(e,An).logLevel),r(_n(n,E(e,Ln).column)))})),Ft(Yt(R.infoLogs.EMIT_EVENT,On,Le),st.LOG,n)})),Ft(Yt(R.infoLogs.EMIT_EVENT,On,Le),st.LOG,n)}catch(e){Ft("Error: ".concat(e.message),st.ERROR,n),o(e)}}))}},{key:"iframeName",value:function(){return E(this,gn).name}},{key:"isMounted",value:function(){return E(this,hn)}},{key:"hasToken",value:function(){return!!E(this,Ln).token}},{key:"isClientSetError",value:function(){return E(this,bn)}},{key:"getRecordData",value:function(){return E(this,Ln)}},{key:"setErrorOverride",value:function(e){var t=this;E(this,hn)?m().emit(ye+E(this,gn).name,{name:E(this,gn).name,isTriggerError:!0,clientErrorText:e}):m().target(Rt.IFRAME_SECURE_ORIGIN).on(ae.MOUNTED+E(this,gn).name,(function(){m().emit(ye+E(t,gn).name,{name:E(t,gn).name,isTriggerError:!0,clientErrorText:e})})),f(this,bn,!0)}},{key:"setError",value:function(e){var t=this;E(this,hn)?m().emit(ye+E(this,gn).name,{name:E(this,gn).name,isTriggerError:!0,clientErrorText:e}):m().target(Rt.IFRAME_SECURE_ORIGIN).on(ae.MOUNTED+E(this,gn).name,(function(){f(t,hn,!0),m().emit(ye+E(t,gn).name,{name:E(t,gn).name,isTriggerError:!0,clientErrorText:e})})),f(this,bn,!0)}},{key:"resetError",value:function(){var e=this;E(this,hn)?m().emit(ye+E(this,gn).name,{name:E(this,gn).name,isTriggerError:!1}):m().target(Rt.IFRAME_SECURE_ORIGIN).on(ae.MOUNTED+E(this,gn).name,(function(){f(e,hn,!0),m().emit(ye+E(e,gn).name,{name:E(e,gn).name,isTriggerError:!1})})),f(this,bn,!1)}},{key:"setAltText",value:function(e){var t=this;E(this,hn)?m().emit(Oe+E(this,gn).name,{name:E(this,gn).name,updateType:we,updatedValue:e}):m().target(Rt.IFRAME_SECURE_ORIGIN).on(ae.MOUNTED+E(this,gn).name,(function(){f(t,hn,!0),m().emit(Oe+E(t,gn).name,{name:E(t,gn).name,updateType:we,updatedValue:e})}))}},{key:"clearAltText",value:function(){var e=this;E(this,hn)?m().emit(Oe+E(this,gn).name,{name:E(this,gn).name,updateType:we,updatedValue:null}):m().target(Rt.IFRAME_SECURE_ORIGIN).on(ae.MOUNTED+E(this,gn).name,(function(){f(e,hn,!0),m().emit(Oe+E(e,gn).name,{name:E(e,gn).name,updateType:we,updatedValue:null})}))}},{key:"setToken",value:function(e){var t=this;f(this,Ln,vn(vn({},E(this,Ln)),{},{token:e})),E(this,hn)?m().emit(Oe+E(this,gn).name,{name:E(this,gn).name,updateType:Ae,updatedValue:e}):m().target(Rt.IFRAME_SECURE_ORIGIN).on(ae.MOUNTED+E(this,gn).name,(function(){f(t,hn,!0),m().emit(Oe+E(t,gn).name,{name:E(t,gn).name,updateType:Ae,updatedValue:e})}))}},{key:"unmount",value:function(){var e;E(this,Ln).skyflowID&&(f(this,hn,!1),null===(e=E(this,gn).container)||void 0===e||e.remove());f(this,hn,!1),E(this,gn).unmount()}},{key:"update",value:function(e){var t=this;f(this,Ln,vn(vn({},E(this,Ln)),e)),E(this,hn)?m().emit(Oe+E(this,gn).name,{name:E(this,gn).name,updateType:Re,updatedValue:e}):m().target(Rt.IFRAME_SECURE_ORIGIN).on(ae.MOUNTED+E(this,gn).name,(function(){f(t,hn,!0),m().emit(Oe+E(t,gn).name,{name:E(t,gn).name,updateType:Re,updatedValue:e})}))}}]),n}(En);const kn=Cn;function Vn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vn(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Un(e){var t=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(e){return!1}}();return function(){var n,r=tt(e);if(t){var o=tt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return et(this,n)}}function Fn(e,t,n){Yn(e,t),t.set(e,n)}function Yn(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Gn(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}var Bn="RevealContainer",Xn=new WeakMap,Wn=new WeakMap,Kn=new WeakMap,qn=new WeakMap,zn=new WeakMap,Hn=new WeakMap,Jn=new WeakMap,Zn=new WeakMap,$n=new WeakMap,Qn=new WeakMap,er=new WeakMap,tr=new WeakMap,nr=new WeakSet;function rr(e,t){var n=this;m().emit(se+E(this,qn).uuid,{type:oe,records:E(this,Xn),containerId:E(this,zn)},(function(r){f(n,Kn,[]),r.error?(Ft(Yt(R.errorLogs.FAILED_REVEAL),st.ERROR,E(n,$n).logLevel),t(r.error)):(Ft(Yt(R.infoLogs.REVEAL_SUBMIT_SUCCESS,Bn),st.LOG,E(n,$n).logLevel),e(r))}))}const or=function(e){Qe(n,e);var t=Un(n);function n(e,r,o){var i,a,c,p,u,d=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};s(this,n),c=t.call(this),Yn(p=Ze(c),u=nr),u.add(p),Fn(Ze(c),Xn,{writable:!0,value:[]}),Fn(Ze(c),Wn,{writable:!0,value:[]}),Fn(Ze(c),Kn,{writable:!0,value:[]}),Fn(Ze(c),qn,{writable:!0,value:void 0}),Fn(Ze(c),zn,{writable:!0,value:void 0}),Fn(Ze(c),Hn,{writable:!0,value:void 0}),Fn(Ze(c),Jn,{writable:!0,value:!1}),Fn(Ze(c),Zn,{writable:!0,value:!1}),Fn(Ze(c),$n,{writable:!0,value:void 0}),Fn(Ze(c),Qn,{writable:!0,value:void 0}),Fn(Ze(c),er,{writable:!0,value:void 0}),l(Ze(c),"type",Ai.REVEAL),Fn(Ze(c),tr,{writable:!0,value:!1}),f(Ze(c),tr,e.skyflowContainer.isControllerFrameReady),f(Ze(c),qn,jn(jn({},e),{},{clientJSON:jn(jn({},e.clientJSON),{},{config:jn(jn({},null===(i=e.clientJSON)||void 0===i?void 0:i.config),{},{options:jn(jn({},null===(a=e.clientJSON)||void 0===a||null===(a=a.config)||void 0===a?void 0:a.options),d)})})})),f(Ze(c),Qn,r),f(Ze(c),zn,v()),f(Ze(c),Hn,new Ht),f(Ze(c),$n,o);var _=E(Ze(c),qn).clientDomain||"",I=en({name:"".concat("reveal_controller",":").concat(E(Ze(c),zn),":").concat(btoa(_)),referrer:_});return Qt(I,{src:tn()}),nn(I,jn({},je)),Ft(Yt(R.infoLogs.CREATE_REVEAL_CONTAINER,Bn),st.LOG,E(Ze(c),$n).logLevel),m().target(window.location.origin).on(Se+E(Ze(c),zn),(function(e){e.skyflowID||E(Ze(c),Kn).push(e);var t=0;E(Ze(c),Wn).forEach((function(e){e.getRecordData().skyflowID||(t+=1)})),f(Ze(c),Zn,E(Ze(c),Kn).length===t),E(Ze(c),Jn)&&E(Ze(c),Zn)&&E(Ze(c),Hn)._emit(De+E(Ze(c),zn),{containerId:E(Ze(c),zn)})})),c}return u(n,[{key:"create",value:function(e,t){var n=v();wt(t);var r=new kn(e,t,E(this,qn),{containerId:E(this,zn),isMounted:E(this,er),eventEmitter:E(this,Hn)},n,E(this,$n));return E(this,Wn).push(r),E(this,Qn)[n]=r,r}},{key:"reveal",value:function(){var e=this;return f(this,Jn,!0),f(this,Xn,[]),E(this,qn).skyflowContainer.isControllerFrameReady?new Promise((function(t,n){try{if(Tt(E(e,qn).clientJSON.config),Ft(Yt(R.infoLogs.VALIDATE_REVEAL_RECORDS,Bn),st.LOG,E(e,$n).logLevel),E(e,Wn).forEach((function(t){if(t.isClientSetError())throw new Bt(ut.REVEAL_ELEMENT_ERROR_STATE);t.getRecordData().skyflowID||E(e,Xn).push(t.getRecordData())})),0===E(e,Xn).length)throw new Bt(ut.NO_ELEMENTS_IN_REVEAL,[],!0);if(Ot(E(e,Xn)),E(e,Zn))Gn(e,nr,rr).call(e,t,n);else{var r=setTimeout((function(){Ft(R.errorLogs.ELEMENTS_NOT_MOUNTED_REVEAL,st.ERROR,E(e,$n).logLevel),n(new Error(R.errorLogs.ELEMENTS_NOT_MOUNTED_REVEAL))}),1e4);E(e,Hn).on(De+E(e,zn),(function(){clearTimeout(r),Gn(e,nr,rr).call(e,t,n)}))}}catch(t){Ft("Error: ".concat(t.message),st.ERROR,E(e,$n).logLevel),n(t)}})):new Promise((function(t,n){try{if(Tt(E(e,qn).clientJSON.config),Ft(Yt(R.infoLogs.VALIDATE_REVEAL_RECORDS,Bn),st.LOG,E(e,$n).logLevel),E(e,Wn).forEach((function(t){if(t.isClientSetError())throw new Bt(ut.REVEAL_ELEMENT_ERROR_STATE);t.getRecordData().skyflowID||E(e,Xn).push(t.getRecordData())})),0===E(e,Xn).length)throw new Bt(ut.NO_ELEMENTS_IN_REVEAL,[],!0);if(Ot(E(e,Xn)),E(e,Zn))m().target(Rt.IFRAME_SECURE_ORIGIN).on(he+E(e,qn).uuid,(function(){Gn(e,nr,rr).call(e,t,n)}));else{var r=setTimeout((function(){Ft(R.errorLogs.ELEMENTS_NOT_MOUNTED_REVEAL,st.ERROR,E(e,$n).logLevel),n(new Error(R.errorLogs.ELEMENTS_NOT_MOUNTED_REVEAL))}),1e4);E(e,Hn).on(De+E(e,zn),(function(){clearTimeout(r),E(e,qn).skyflowContainer.isControllerFrameReady?Gn(e,nr,rr).call(e,t,n):m().target(Rt.IFRAME_SECURE_ORIGIN).on(he+E(e,qn).uuid,(function(){Gn(e,nr,rr).call(e,t,n)}))}))}}catch(t){Ft("Error: ".concat(t.message),st.ERROR,E(e,$n).logLevel),n(t)}}))}}]),n}(rn);function ir(e){return JSON.parse(JSON.stringify(e))}function ar(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}const cr=function(){function e(){s(this,e),l(this,"listeners",void 0),l(this,"isDestroyed",void 0),this.listeners=[],this.isDestroyed=!1}return u(e,[{key:"on",value:function(e,t){m().on(e,t),this.listeners.push({eventName:e,callback:t})}},{key:"off",value:function(e,t){m().off(e,t);var n=this.listeners.findIndex((function(t){return t.eventName===e}));-1!==n&&this.listeners.splice(n,1)}},{key:"emit",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;m().emit(e,t,n)}},{key:"hasListener",value:function(e){return-1!==this.listeners.findIndex((function(t){return t.eventName===e}))}},{key:"teardown",value:function(){this.listeners.forEach((function(e){m().off(e.eventName,e.handler)})),this.listeners=[]}}]),e}();var lr=["name"];function sr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sr(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ur(e){var t=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(e){return!1}}();return function(){var n,r=tt(e);if(t){var o=tt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return et(this,n)}}function dr(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}var fr=new WeakMap,Er=new WeakMap,_r=new WeakMap,mr=new WeakMap,vr=new WeakMap,Ir=new WeakMap,yr=new WeakMap,Or=new WeakMap,gr=new WeakMap,Nr=new WeakMap,Lr=new WeakMap,Tr=new WeakMap,hr=new WeakMap,br=new WeakMap,Ar=new WeakMap,wr=new WeakMap,Rr=new WeakMap,Sr=new WeakMap,Dr=new WeakMap,xr=new WeakMap,Mr=new WeakMap,Pr=new WeakMap,Cr=new WeakMap,kr=function(e){Qe(n,e);var t=ur(n);function n(e,r,o,i){var a,c=arguments.length>4&&void 0!==arguments[4]&&arguments[4],p=arguments.length>5?arguments[5]:void 0,u=arguments.length>6?arguments[6]:void 0,d=arguments.length>7?arguments[7]:void 0,_=arguments.length>8?arguments[8]:void 0;return s(this,n),l(Ze(a=t.call(this)),"elementType",void 0),l(Ze(a),"type",Ai.COLLECT),dr(Ze(a),fr,{writable:!0,value:void 0}),l(Ze(a),"containerId",void 0),dr(Ze(a),Er,{writable:!0,value:!1}),dr(Ze(a),_r,{writable:!0,value:void 0}),dr(Ze(a),mr,{writable:!0,value:void 0}),l(Ze(a),"resizeObserver",void 0),dr(Ze(a),vr,{writable:!0,value:{isEmpty:!0,isComplete:!1,isValid:!1,isFocused:!1,value:void 0,isRequired:!1,selectedCardScheme:""}}),dr(Ze(a),Ir,{writable:!0,value:void 0}),dr(Ze(a),yr,{writable:!0,value:void 0}),dr(Ze(a),Or,{writable:!0,value:new Ht}),dr(Ze(a),gr,{writable:!0,value:void 0}),dr(Ze(a),Nr,{writable:!0,value:new cr}),dr(Ze(a),Lr,{writable:!0,value:void 0}),dr(Ze(a),Tr,{writable:!0,value:[]}),dr(Ze(a),hr,{writable:!0,value:!1}),dr(Ze(a),br,{writable:!0,value:void 0}),dr(Ze(a),Ar,{writable:!0,value:void 0}),dr(Ze(a),wr,{writable:!0,value:!1}),dr(Ze(a),Rr,{writable:!0,value:!1}),dr(Ze(a),Sr,{writable:!0,value:null}),l(Ze(a),"getID",(function(){return E(Ze(a),fr)})),l(Ze(a),"mount",(function(e){var t;if(f(Ze(a),hr,!0),!e)throw new Bt(ut.EMPTY_ELEMENT_IN_MOUNT,["CollectElement"],!0);if(e instanceof HTMLElement&&e.getRootNode()instanceof ShadowRoot&&f(Ze(a),Sr,e.getRootNode()),a.resizeObserver=new ResizeObserver((function(){E(Ze(a),Nr).emit(ae.HEIGHT+E(Ze(a),Lr).name,{},(function(e){E(Ze(a),Lr).setIframeHeight(e.height)}))})),sn(E(Ze(a),fr),B,e),null!==(t=E(Ze(a),yr))&&void 0!==t&&null!==(t=t.clientJSON)&&void 0!==t&&null!==(t=t.config)&&void 0!==t&&null!==(t=t.options)&&void 0!==t&&t.trackMetrics&&E(Ze(a),yr).clientJSON.config.options.trackingKey&&un(E(Ze(a),fr)),"string"==typeof e){var n,r=document.querySelector(e);if(r)null===(n=a.resizeObserver)||void 0===n||n.observe(r)}else if(e instanceof HTMLElement){var o;null===(o=a.resizeObserver)||void 0===o||o.observe(e)}E(Ze(a),mr).length>1?(E(Ze(a),Lr).mount(e,E(Ze(a),fr),{record:JSON.stringify({record:E(Ze(a),Ir),containerId:a.containerId,metaData:E(Ze(a),yr)})}),E(Ze(a),mr).forEach((function(e,t){E(Ze(a),gr)&&(E(Ze(a),gr)._emit("".concat(ae.READY,":").concat(e.elementName),pr(pr({},E(Ze(a),_r)[t]),{},{elementType:e.elementType})),sn(E(Ze(a),fr),K,"".concat(e.elementType,"_").concat(W.READY)))})),sn(E(Ze(a),fr),q,Date.now())):E(Ze(a),wr)&&(E(Ze(a),Lr).mount(e,E(Ze(a),fr),{record:JSON.stringify({record:E(Ze(a),Ir),containerId:a.containerId,metaData:E(Ze(a),yr)})}),sn(E(Ze(a),fr),q,Date.now()))})),l(Ze(a),"getShadowRoot",(function(){return E(Ze(a),Sr)})),l(Ze(a),"emitEventFromShadowRoot",(function(e,t,n){if(E(Ze(a),Sr)){var r=E(Ze(a),Sr).getElementById(E(Ze(a),Lr).name);null!=r&&r.contentWindow&&r.contentWindow.postMessage(pr({name:e},t),Rt.IFRAME_SECURE_ORIGIN)}})),l(Ze(a),"unmount",(function(){var e;(E(Ze(a),Lr).unmount(),a.resizeObserver)&&(null===(e=a.resizeObserver)||void 0===e||e.disconnect())})),l(Ze(a),"updateElementGroup",(function(e){var t=ir(e),n=function(){E(Ze(a),Er)&&(t={rows:[{elements:[pr({},t)]}]}),f(Ze(a),Ir,Jr(E(Ze(a),Ir),t)),f(Ze(a),mr,Zr(E(Ze(a),Ir))),E(Ze(a),Er)?E(Ze(a),Nr).emit(fe+Mt(E(Ze(a),Lr).name),{name:E(Ze(a),Lr).name,options:E(Ze(a),mr)[0],isSingleElementAPI:!0}):(E(Ze(a),mr).forEach((function(e){E(Ze(a),Nr).emit(fe+Mt(E(Ze(a),Lr).name),{name:e.elementName,options:e,isSingleElementAPI:!0})})),E(Ze(a),Nr).emit(fe+Mt(E(Ze(a),Lr).name),{name:E(Ze(a),Lr).name,options:E(Ze(a),Ir),isSingleElementAPI:!1})),E(Ze(a),Cr).call(Ze(a))};E(Ze(a),hr)?n():E(Ze(a),Tr).push(n)})),dr(Ze(a),Dr,{writable:!0,value:function(e){E(Ze(a),Er)||E(Ze(a),Or).on(fe+Mt(E(Ze(a),Lr).name),(function(){e(E(Ze(a),mr))}),!0)}}),l(Ze(a),"updateElement",(function(e){E(Ze(a),Nr).emit(fe+e.elementName,{name:e.elementName,options:e,isSingleElementAPI:!0})})),l(Ze(a),"update",(function(e){f(Ze(a),Rr,!0),E(Ze(a),hr)?(e.validations=$r(e.validations),a.updateElement(pr({elementName:E(Ze(a),Ir).elementName},e)),f(Ze(a),Rr,!1)):E(Ze(a),Rr)&&E(Ze(a),Or).on("".concat(at.READY,":").concat(E(Ze(a),fr)),(function(){e.validations=$r(e.validations),a.updateElement(pr({elementName:E(Ze(a),Ir).elementName},e)),f(Ze(a),hr,!0),f(Ze(a),Rr,!1)}))})),dr(Ze(a),xr,{writable:!0,value:function(){E(Ze(a),_r).forEach((function(e,t){if(0===t){E(Ze(a),vr).isEmpty=e.isEmpty,E(Ze(a),vr).isComplete=e.isComplete,E(Ze(a),vr).isValid=e.isValid,E(Ze(a),vr).isFocused=e.isFocused,E(Ze(a),vr).isRequired=e.isRequired,E(Ze(a),vr).value={},E(Ze(a),vr).selectedCardScheme="";var n=E(Ze(a),mr)[t].elementName,r=e.value&&function(e,t,n){if("string"!=typeof e)return e;if(t===xe.CARD_NUMBER){if(e=e&&e.replace(/\s/g,""),!n){var r,o=ft(e),i=o!==Me.DEFAULT&&o===Me.AMEX?6:8;return e.length>i?e.replace(new RegExp(".(?=.{0,".concat((null===(r=e)||void 0===r?void 0:r.length)-i-1,"}$)"),"g"),"X"):e}return e}return n?e:void 0}(e.value,e.elementType,E(Ze(a),Ar));E(Ze(a),Er)?E(Ze(a),vr).value=r:E(Ze(a),vr).value[n]=r}else E(Ze(a),vr).isEmpty=E(Ze(a),vr).isEmpty||e.isEmpty,E(Ze(a),vr).isComplete=E(Ze(a),vr).isComplete&&e.isComplete,E(Ze(a),vr).isValid=E(Ze(a),vr).isValid&&e.isValid,E(Ze(a),vr).isFocused=E(Ze(a),vr).isFocused||e.isFocused,E(Ze(a),vr).isRequired=E(Ze(a),vr).isRequired||e.isRequired,E(Ze(a),vr).selectedCardScheme=E(Ze(a),vr).selectedCardScheme||e.selectedCardScheme,E(Ze(a),vr).value||(E(Ze(a),vr).value={}),E(Ze(a),mr)[t].sensitive||(E(Ze(a),vr).value[E(Ze(a),mr)[t].elementName]=e.value||"")}))}}),l(Ze(a),"getState",(function(){return{isEmpty:E(Ze(a),vr).isEmpty,isComplete:E(Ze(a),vr).isComplete,isValid:E(Ze(a),vr).isValid,isFocused:E(Ze(a),vr).isFocused,value:E(Ze(a),vr).value,required:E(Ze(a),vr).isRequired,selectedCardScheme:""}})),l(Ze(a),"getOptions",(function(){var e=ir(E(Ze(a),Ir));return E(Ze(a),Er)?e=e.rows[0].elements[0]:e.rows.forEach((function(e){e.elements.forEach((function(e){delete e.elementName}))})),delete e.elementName,e})),dr(Ze(a),Mr,{writable:!0,value:function(e){E(Ze(a),Or).on(de,(function(){var t=E(Ze(a),mr).map((function(e){return e.elementName}));E(Ze(a),Er)||t.push(E(Ze(a),Lr).name),e(t)}),!0)}}),dr(Ze(a),Pr,{writable:!0,value:function(){E(Ze(a),Nr).on(be,(function(e){if(e.ready&&e.name===a.iframeName()){var t=E(Ze(a),_r)[0],n=(t.name,ar(t,lr));E(Ze(a),Or)._emit(ae.READY,pr({},n))}})),E(Ze(a),mr).forEach((function(e){E(Ze(a),Nr).on(ue+e.elementName,(function(e){if(E(Ze(a),Er)&&e.event===ae.READY&&e.name===Mt(E(Ze(a),Lr).name))E(Ze(a),Or)._emit(ae.READY);else{var t=E(Ze(a),mr).length>1;E(Ze(a),mr).forEach((function(n,r){var o;if(e.name===n.elementName){var i,c="";switch(e.event){case ae.FOCUS:c=ae.FOCUS;break;case ae.BLUR:c=ae.BLUR;break;case ae.CHANGE:c=ae.CHANGE;break;case ae.READY:c=ae.READY;break;case ae.SUBMIT:return void(null===(o=E(Ze(a),gr))||void 0===o||o._emit(ae.SUBMIT));default:throw new Bt(ut.INVALID_EVENT_TYPE,[],!0)}E(Ze(a),_r)[r].isEmpty=e.value.isEmpty,E(Ze(a),_r)[r].isValid=e.value.isValid,E(Ze(a),_r)[r].isComplete=e.value.isComplete,E(Ze(a),_r)[r].isFocused=e.value.isFocused,E(Ze(a),_r)[r].isRequired=e.value.isRequired,E(Ze(a),_r)[r].selectedCardScheme=(null==e||null===(i=e.value)||void 0===i?void 0:i.selectedCardScheme)||"",Object.prototype.hasOwnProperty.call(e.value,"value")?E(Ze(a),_r)[r].value=e.value.value:E(Ze(a),_r)[r].value=void 0,c=t?"".concat(c,":").concat(e.name):c,E(Ze(a),Nr).emit(ae.HEIGHT+E(Ze(a),Lr).name,{},(function(e){E(Ze(a),Lr).setIframeHeight(e.height)})),E(Ze(a),xr).call(Ze(a));var l=pr(pr({},E(Ze(a),_r)[r]),{},{elementType:n.elementType});t&&E(Ze(a),gr)?E(Ze(a),gr)._emit(c,l):E(Ze(a),Or)._emit(c,l)}}))}}))}))}}),dr(Ze(a),Cr,{writable:!0,value:function(){E(Ze(a),Ir).rows.forEach((function(e){e.elements.forEach((function(e){e.elementType!==Ce.radio.name&&e.elementType!==Ce.checkbox.name&&(e.value=void 0)}))})),f(Ze(a),mr,Zr(E(Ze(a),Ir)))}}),a.containerId=i.containerId,f(Ze(a),fr,e),f(Ze(a),br,d),f(Ze(a),yr,o),f(Ze(a),Ir,Jr(r)),f(Ze(a),mr,Zr(r)),f(Ze(a),Er,c),a.resizeObserver=null,_&&f(Ze(a),gr,_),f(Ze(a),Ar,jt[E(Ze(a),br).env].doesReturnValue),a.elementType=E(Ze(a),Er)?E(Ze(a),mr)[0].elementType:"group",ln(o,e),f(Ze(a),_r,[]),E(Ze(a),mr).forEach((function(e){sn(E(Ze(a),fr),G,e.elementType),E(Ze(a),_r).push({isEmpty:!0,isComplete:!1,isValid:!e.required&&E(Ze(a),vr).isEmpty,isFocused:!1,value:E(Ze(a),Ar)?"":void 0,elementType:e.elementType,name:e.elementName,isRequired:e.required,selectedCardScheme:""})})),E(Ze(a),mr)&&E(Ze(a),mr).length&&E(Ze(a),mr).length>1?sn(E(Ze(a),fr),X,F.COMPOSE):sn(E(Ze(a),fr),X,F.COLLECT),f(Ze(a),Lr,new fn(E(Ze(a),Ir).elementName,o,a.containerId,E(Ze(a),br).logLevel)),E(Ze(a),Pr).call(Ze(a)),E(Ze(a),Mr).call(Ze(a),p),E(Ze(a),Dr).call(Ze(a),u),Ft(Yt(R.infoLogs.CREATED_ELEMENT,"Element",function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split(":");if("group"===e[1])return"composable container";var t=atob(e[2]);return-1!==t.indexOf(":")&&(t=t.substring(0,t.indexOf(":"))),t}(E(Ze(a),Lr).name)),st.LOG,E(Ze(a),br).logLevel),f(Ze(a),wr,i.isMounted),i.type===Ai.COMPOSABLE&&E(Ze(a),mr).forEach((function(e){E(Ze(a),Nr).on(ae.MOUNTED+Mt(e.elementName),(function(t){t.name===e.elementName&&(sn(E(Ze(a),fr),K,"".concat(e.elementType,"_").concat(W.MOUNTED)),e.isMounted=!0,f(Ze(a),hr,!0),E(Ze(a),Nr).emit(ae.HEIGHT+E(Ze(a),Lr).name,{},(function(e){E(Ze(a),Lr).setIframeHeight(e.height)})))}))})),E(Ze(a),Nr).on(ae.MOUNTED+Mt(E(Ze(a),Lr).name),(function(e){e.name===E(Ze(a),mr)[0].elementName&&(sn(E(Ze(a),fr),z,Date.now()),sn(E(Ze(a),fr),K,Y.MOUNTED),E(Ze(a),mr)[0].isMounted=!0,f(Ze(a),hr,!0),E(Ze(a),Nr).emit(ae.HEIGHT+E(Ze(a),Lr).name,{},(function(e){E(Ze(a),Lr).setIframeHeight(e.height)})))})),a}return u(n,[{key:"on",value:function(e,t){if(!Object.values(ae).includes(e))throw new Bt(ut.INVALID_EVENT_LISTENER,[],!0);if(!t)throw new Bt(ut.MISSING_HANDLER_IN_EVENT_LISTENER,[],!0);if("function"!=typeof t)throw new Bt(ut.INVALID_HANDLER_IN_EVENT_LISTENER,[],!0);E(this,Or).on(e,(function(e){void 0===e.value&&(e.value=""),e.elementType!==xe.CARD_NUMBER&&delete e.selectedCardScheme,delete e.isComplete,delete e.name,t(e)})),e===ae.READY&&E(this,Nr).emit(be,{ready:E(this,wr),name:this.iframeName()})}},{key:"iframeName",value:function(){return E(this,Lr).name}},{key:"isMounted",value:function(){return E(this,hr)}},{key:"isUpdateCalled",value:function(){return E(this,Rr)}},{key:"isValidElement",value:function(){for(var e=0;e<E(this,mr).length;e+=1){if(!Object.prototype.hasOwnProperty.call(E(this,mr)[e],"table"))throw new Bt(ut.MISSING_TABLE_IN_COLLECT,[],!0);if(!E(this,mr)[e].table)throw new Bt(ut.EMPTY_TABLE_IN_COLLECT,[],!0);if(!("string"==typeof E(this,mr)[e].table||E(this,mr)[e].table instanceof String))throw new Bt(ut.INVALID_TABLE_IN_COLLECT,[],!0);if(!Object.prototype.hasOwnProperty.call(E(this,mr)[e],"column"))throw new Bt(ut.MISSING_COLUMN_IN_COLLECT,[],!0);if(!E(this,mr)[e].column)throw new Bt(ut.EMPTY_COLUMN_IN_COLLECT,[],!0);if(!("string"==typeof E(this,mr)[e].column||E(this,mr)[e].column instanceof String))throw new Bt(ut.INVALID_COLUMN_IN_COLLECT,[],!0);if(void 0!==E(this,mr)[e].skyflowID&&!E(this,mr)[e].skyflowID)throw new Bt(ut.EMPTY_SKYFLOW_ID_COLLECT,[],!0)}return!0}},{key:"setErrorOverride",value:function(e){E(this,Nr).emit(Ie+Mt(E(this,Lr).name),{name:Mt(E(this,Lr).name),customErrorText:e})}},{key:"setError",value:function(e){E(this,Nr).emit(ve+Mt(E(this,Lr).name),{name:Mt(E(this,Lr).name),isTriggerError:!0,clientErrorText:e})}},{key:"resetError",value:function(){E(this,Nr).emit(ve+Mt(E(this,Lr).name),{name:Mt(E(this,Lr).name),isTriggerError:!1})}},{key:"setValue",value:function(e){E(this,br).env!==lt.PROD?E(this,Er)&&E(this,Nr).emit(fe+Mt(E(this,Lr).name),{name:E(this,Lr).name,options:pr(pr({},E(this,mr)[0]),{},{value:e},E(this,Ir)),isSingleElementAPI:!0}):Ft(Yt(R.warnLogs.UNABLE_TO_SET_VALUE_IN_PROD_ENV,E(this,mr)[0].elementType),st.WARN,E(this,br).logLevel)}},{key:"clearValue",value:function(){E(this,br).env!==lt.PROD?E(this,Er)&&E(this,Nr).emit(fe+Mt(E(this,Lr).name),{name:E(this,Lr).name,options:pr(pr({},E(this,mr)[0]),{},{value:""}),isSingleElementAPI:!0}):Ft(Yt(R.warnLogs.UNABLE_TO_CLEAR_VALUE_IN_PROD_ENV,E(this,mr)[0].elementType),st.WARN,E(this,br).logLevel)}}]),n}(En);const Vr=kr;function jr(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}var Ur=new WeakMap,Fr=new WeakMap,Yr=new WeakMap,Gr=new WeakMap,Br=new WeakMap;const Xr=function(){function e(t,n,r){var o=this;s(this,e),jr(this,Ur,{writable:!0,value:void 0}),jr(this,Fr,{writable:!0,value:void 0}),jr(this,Yr,{writable:!0,value:void 0}),l(this,"type",Ai.COMPOSABLE),jr(this,Gr,{writable:!0,value:!1}),jr(this,Br,{writable:!0,value:!1}),l(this,"update",(function(e){f(o,Br,!0),E(o,Gr)?(e.validations=$r(e.validations),E(o,Fr)._emit(Ne,{elementName:E(o,Ur),elementOptions:e}),f(o,Br,!1)):E(o,Br)&&E(o,Fr).on("".concat(at.READY,":").concat(E(o,Ur)),(function(){e.validations=$r(e.validations),E(o,Fr)._emit(Ne,{elementName:E(o,Ur),elementOptions:e}),f(o,Gr,!0),f(o,Br,!1)}))})),f(this,Ur,t),f(this,Yr,r),f(this,Fr,n),E(this,Fr).on("".concat(at.READY,":").concat(E(this,Ur)),(function(){f(o,Gr,!0)}))}return u(e,[{key:"on",value:function(e,t){if(!Object.values(ae).includes(e))throw new Bt(ut.INVALID_EVENT_LISTENER,[],!0);if(!t)throw new Bt(ut.MISSING_HANDLER_IN_EVENT_LISTENER,[],!0);if("function"!=typeof t)throw new Bt(ut.INVALID_HANDLER_IN_EVENT_LISTENER,[],!0);E(this,Fr).on("".concat(e,":").concat(E(this,Ur)),(function(e){void 0===e.value&&(e.value=""),e.elementType!==xe.CARD_NUMBER&&delete e.selectedCardScheme,delete e.isComplete,delete e.name,t(e)}))}},{key:"iframeName",value:function(){return E(this,Yr)}},{key:"getID",value:function(){return E(this,Ur)}}]),e}();function Wr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Kr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wr(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qr(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Hr(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("group"!==e&&!Object.prototype.hasOwnProperty.call(Ce,e))throw new Bt(ut.INVALID_ELEMENT_TYPE,[],!0);if(Object.prototype.hasOwnProperty.call(t,"validations")){if(!Array.isArray(t.validations))throw new Bt(ut.INVALID_VALIDATIONS_TYPE,[],!0);t.validations.forEach((function(e,t){if(!Object.prototype.hasOwnProperty.call(e,"type"))throw new Bt(ut.MISSING_VALIDATION_RULE_TYPE,["".concat(t)],!0);if(!Object.values(pt).includes(e.type))throw new Bt(ut.INVALID_VALIDATION_RULE_TYPE,["".concat(t)],!0);if(!Object.prototype.hasOwnProperty.call(e,"params"))throw new Bt(ut.MISSING_VALIDATION_RULE_PARAMS,["".concat(t)],!0);if("object"!==a(e.params)||Array.isArray(e.params)||null===e.params)throw new Bt(ut.INVALID_VALIDATION_RULE_PARAMS,["".concat(t)],!0);if(e.type===pt.REGEX_MATCH_RULE){if(!Object.prototype.hasOwnProperty.call(e.params,"regex"))throw new Bt(ut.MISSING_REGEX_IN_REGEX_MATCH_RULE,["".concat(t)],!0)}else if(e.type===pt.LENGTH_MATCH_RULE&&!Object.prototype.hasOwnProperty.call(e.params,"min")&&!Object.prototype.hasOwnProperty.call(e.params,"max"))throw new Bt(ut.MISSING_MIN_AND_MAX_IN_LENGTH_MATCH_RULE,["".concat(t)],!0)}))}if(Object.prototype.hasOwnProperty.call(n,"name")&&n.name!==t.name)throw new Error("Name attribute can't be updated");if((n=zr(zr({},t),n)).mask||n.replacePattern){var r=Ce[e].attributes.type;"text"===r&&"textarea"===r&&"email"===r||(delete n.mask,delete n.replacePattern)}if(void 0===!n.mask&&!Array.isArray(n.mask))throw new Error("mask option has to be array or undefined");if(Array.isArray(n.mask)){var o=n.mask;if("string"!=typeof o[0]||o[1]&&"object"!==a(o[1]))throw new Error("mask array values has to be string")}if(Array.isArray(n.replacePattern)){var i=n.replacePattern;if("string"!=typeof i[0]||i[1]&&"string"!=typeof i[1])throw new Error("replacePatterns array values has to be string")}if((e===Ce.radio.name||e===Ce.checkbox.name)&&!n.value)throw new Error("Elements radio and checkbox requires value attribute");if(!(e!==Ce.dropdown.name||n.options&&Array.isArray(n.options)&&0!==n.options.length))throw new Error("Element dropdown requires options attribute with an array of objects containing value and text attributes")}function Jr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return(t=zr(zr({},e),t)).rows.forEach((function(r,o){var i=r,c=e.rows[o];t.rows[o]=zr(zr({},c),i),i.elements.forEach((function(e,t){var r,o,l=c.elements[t],s=e;if(s.elementType&&l.elementType!==s.elementType&&l.elementName&&l.elementName!==s.elementName)throw new Error(Yt(R.errorLogs.CANNOT_CHANGE_ELEMENT));Hr(l.elementType,l,s),i.elements[t]=zr(zr(zr({},l),s),{},{elementName:l.elementName});var p=s.classes||{},u=s.styles||{};u.base=zr(zr({},Ue),u.base),s.classes=p,s.styles=u;var d=(null==s||null===(r=s.labelStyles)||void 0===r?void 0:r.classes)||{},f=(null==s||null===(o=s.labelStyles)||void 0===o?void 0:o.styles)||{};n&&function(e,t){Object.values(Fe).forEach((function(n){if(e[n]||t[n])switch(n){case Fe.BASE:t[n]=Kr({},t[n]);break;case Fe.FOCUS:t[Fe.BASE]=Kr(Kr({},t[Fe.BASE]),{},{":focus":Kr({},t[Fe.BASE]&&t[Fe.BASE][":focus"])});break;case Fe.WEBPACKAUTOFILL:t[Fe.BASE]=Kr(Kr({},t[Fe.BASE]),{},{":-webkit-autofill":Kr({},t[Fe.BASE]&&t[Fe.BASE][":-webkit-autofill"])});break;default:t[n]=Kr(Kr({},t[Fe.BASE]),t[n])}})),Object.keys(t).forEach((function(e){var n=t[e][":-webkit-autofill"];"object"===a(n)&&Object.keys(n).forEach((function(e){n[e]&&!n[e].includes("!important")&&(n[e]="".concat(n[e]," !important"))}))}))}(d,f),s.labelStyles={labelClasses:d},s.labelStyles.styles=f}))})),t}var Zr=function(e){var t=e.rows,n=[];return t.forEach((function(e){e.elements.forEach((function(e){n.push(e)}))})),n},$r=function(e){return e&&Array.isArray(e)&&0!==e.length?e.map((function(e,t){if(!e)return e;switch(e.type){case pt.ELEMENT_VALUE_MATCH_RULE:var n=e.params;if(!n||!Object.prototype.hasOwnProperty.call(n,"element"))throw new Bt(ut.MISSING_ELEMENT_IN_ELEMENT_MATCH_RULE,["".concat(t)],!0);var r=n.element;if(!r||!(r instanceof Vr||Xr))throw new Bt(ut.INVALID_ELEMENT_IN_ELEMENT_MATCH_RULE,["".concat(t)],!0);return zr(zr({},e),{},{params:zr(zr({},n),{},{elementID:r.getID(),element:r.iframeName()})});case pt.REGEX_MATCH_RULE:var o=e.params,i=(o||{}).regex;if(i&&!Lt(i))throw new Bt(ut.INVALID_REGEX_IN_REGEX_MATCH_RULE,["".concat(t)],!0);if(i&&Lt(i))return zr(zr({},e),{},{params:zr(zr({},o),{},{regex:i.toString()})});break;default:return e}return e})):e},Qr=function(e,t,n){var r,o,i,c=zr({required:!1},t);if(Object.prototype.hasOwnProperty.call(c,"format")||Object.prototype.hasOwnProperty.call(c,"translation"))if(Ke.includes(e))Ft(Yt(R.warnLogs.INPUT_FORMATTING_NOT_SUPPROTED,e),st.WARN,n),null===(r=c)||void 0===r||delete r.format,null===(o=c)||void 0===o||delete o.translation;else if(e===Ce.INPUT_FIELD.name){var l,s;wt(t),null===(l=c=zr(zr({},c),{},{mask:[c.format,c.translation?c.translation:qe]}))||void 0===l||delete l.format,null===(s=c)||void 0===s||delete s.translation}switch(e){case Ce.CARD_NUMBER.name:var p,u,d;Object.prototype.hasOwnProperty.call(c,"enableCardIcon")||(c=zr(zr({},c),{},{enableCardIcon:!0}));var f=" ";if((null===(p=c)||void 0===p?void 0:p.format)===ke&&(f="-"),null===(u=c=zr(zr({},c),{},{cardSeperator:f}))||void 0===u||delete u.format,null===(d=c)||void 0===d||delete d.translation,Object.prototype.hasOwnProperty.call(c,"cardMetadata")){if("object"!==a(c.cardMetadata)||"[object Object]"!==Object.prototype.toString.call(c.cardMetadata))throw new Bt(ut.INVALID_OPTION_CARD_METADATA,[],!0);if(Object.prototype.hasOwnProperty.call(c.cardMetadata,"scheme")&&("object"!==a(c.cardMetadata.scheme)||"[object Array]"!==Object.prototype.toString.call(c.cardMetadata.scheme)))throw new Bt(ut.INVALID_OPTION_CARD_SCHEME,[],!0)}break;case Ce.EXPIRATION_DATE.name:var E,_=!1;c.format&&((_=!!(i=c.format.toUpperCase())&&Be.includes(i))||Ft(Yt(R.warnLogs.INVALID_EXPIRATION_DATE_FORMAT,Be.toString()),st.WARN,n)),null===(E=c=zr(zr({},c),{},{format:_?c.format.toUpperCase():Ge}))||void 0===E||delete E.translation;break;case Ce.EXPIRATION_YEAR.name:var m,v=!1;c.format&&(v=function(e){return!!e&&Xe.includes(e)}(c.format.toUpperCase()),v||Ft(Yt(R.warnLogs.INVALID_EXPIRATION_YEAR_FORMAT,Xe.toString()),st.WARN,n)),null===(m=c=zr(zr({},c),{},{format:v?c.format.toUpperCase():"YY"}))||void 0===m||delete m.translation;break;case Ce.FILE_INPUT.name:Object.prototype.hasOwnProperty.call(c,"preserveFileName")||(c=zr(zr({},c),{},{preserveFileName:!0}))}if(Object.prototype.hasOwnProperty.call(c,"enableCardIcon")&&!At(c.enableCardIcon))throw new Bt(ut.INVALID_BOOLEAN_OPTIONS,["enableCardIcon"],!0);if(Object.prototype.hasOwnProperty.call(c,"enableCopy")&&!At(c.enableCopy))throw new Bt(ut.INVALID_BOOLEAN_OPTIONS,["enableCopy"],!0);if(Object.prototype.hasOwnProperty.call(c,"required")&&!At(c.required))throw new Bt(ut.INVALID_BOOLEAN_OPTIONS,["required"],!0);if(Object.prototype.hasOwnProperty.call(c,"preserveFileName")&&!At(c.preserveFileName))throw new Bt(ut.INVALID_BOOLEAN_OPTIONS,["preserveFileName"],!0);if(e===Ce.FILE_INPUT.name){if(t.allowedFileType){if(!Array.isArray(t.allowedFileType))throw new Bt(ut.INVALID_ALLOWED_OPTIONS,[],!0);if(t.allowedFileType.length<=0)throw new Bt(ut.EMPTY_ALLOWED_OPTIONS_ARRAY,[],!0);if(!t.allowedFileType.every((function(e){return"string"==typeof e})))throw new Bt(ut.INVALID_ALLOWED_FILETYPE_ARRAY,[],!0)}if(Object.prototype.hasOwnProperty.call(t,"allowedFileType")&&(c=zr(zr({},c),{},{allowedFileType:t.allowedFileType})),Object.prototype.hasOwnProperty.call(t,"blockEmptyFiles")&&!At(t.blockEmptyFiles))throw new Bt(ut.INVALID_BOOLEAN_OPTIONS,["blockEmptyFiles"],!0);Object.prototype.hasOwnProperty.call(t,"blockEmptyFiles")&&(c=zr(zr({},c),{},{blockEmptyFiles:c.blockEmptyFiles}))}if(Object.prototype.hasOwnProperty.call(t,"masking")){if(!At(t.masking))throw new Bt(ut.INVALID_BOOLEAN_OPTIONS,["masking"],!0);if(Object.prototype.hasOwnProperty.call(t,"maskingChar")&&"string"==typeof t.maskingChar&&t.maskingChar.length>1)throw new Bt(ut.INVALID_MASKING_CHARACTER,[],!0);c=Object.prototype.hasOwnProperty.call(t,"maskingChar")&&"string"==typeof t.maskingChar?zr(zr({},c),{},{masking:t.masking,maskingChar:t.maskingChar}):zr(zr({},c),{},{masking:t.masking,maskingChar:"*"})}return c};function eo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function to(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eo(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function no(e){var t=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(e){return!1}}();return function(){var n,r=tt(e);if(t){var o=tt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return et(this,n)}}function ro(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}var oo="CollectContainer",io=new WeakMap,ao=new WeakMap,co=new WeakMap,lo=new WeakMap,so=new WeakMap,po=new WeakMap,uo=new WeakMap,fo=new WeakMap,Eo=new WeakMap,_o=new WeakMap,mo=new WeakMap,vo=new WeakMap,Io=new WeakMap,yo=new WeakMap,Oo=new WeakMap,go=new WeakMap,No=new WeakMap,Lo=new WeakMap,To=function(e){Qe(n,e);var t=no(n);function n(e,r,o,i){var a,c;s(this,n),ro(Ze(c=t.call(this)),io,{writable:!0,value:void 0}),ro(Ze(c),ao,{writable:!0,value:{}}),ro(Ze(c),co,{writable:!0,value:void 0}),ro(Ze(c),lo,{writable:!0,value:void 0}),ro(Ze(c),so,{writable:!0,value:void 0}),l(Ze(c),"type",Ai.COLLECT),ro(Ze(c),po,{writable:!0,value:void 0}),ro(Ze(c),uo,{writable:!0,value:!1}),ro(Ze(c),fo,{writable:!0,value:!1}),l(Ze(c),"create",(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{required:!1};ht(e,E(Ze(c),lo).logLevel);var n=$r(e.validations),r=Qr(e.type,t,E(Ze(c),lo).logLevel),o={rows:[{elements:[to(to(to({elementType:e.type,name:e.column,accept:t.allowedFileType},e),r),{},{validations:n})]}]};return E(Ze(c),Eo).call(Ze(c),o,!0)})),ro(Ze(c),Eo,{writable:!0,value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=[],r=ir(e);if(r.rows.forEach((function(e){e.elements.forEach((function(e){var t=e,r=t.elementType;Hr(r,t),t.sensitive=t.sensitive||Ce[r].sensitive,t.replacePattern=t.replacePattern||Ce[r].replacePattern,t.mask=t.mask||Ce[r].mask,t.isMounted=!1,t.elementType!==Ce.radio.name&&t.elementType!==Ce.checkbox.name||(t.elementName="".concat(t.elementName,":").concat(btoa(t.value))),t.elementName="".concat(U,":").concat(t.elementType,":").concat(btoa(v())),t.label=e.label,t.skyflowID=e.skyflowID,n.push(t)}))})),r.elementName=t?n[0].elementName:"".concat(U,":group:").concat(btoa(r.name)),t&&!E(Ze(c),ao)[n[0].elementName]&&E(Ze(c),Io).call(Ze(c),n[0].name))throw new Bt(ut.UNIQUE_ELEMENT_NAME,["".concat(n[0].name)],!0);var o=E(Ze(c),ao)[r.elementName];if(o)t?o.updateElementGroup(n[0]):o.updateElementGroup(r);else{var i=v();o=new Vr(i,r,E(Ze(c),co),{containerId:E(Ze(c),io),isMounted:E(Ze(c),uo),type:c.type},t,E(Ze(c),mo),E(Ze(c),vo),E(Ze(c),lo),E(Ze(c),po)),E(Ze(c),ao)[r.elementName]=o,E(Ze(c),so)[i]=o}return t||n.forEach((function(e){var t=e.elementName;E(Ze(c),ao)[t]?E(Ze(c),ao)[t].updateElementGroup(e):E(Ze(c),ao)[t]=c.create(e.elementType,e)})),o}}),ro(Ze(c),_o,{writable:!0,value:function(e){Object.keys(E(Ze(c),ao)).forEach((function(t){t===e&&delete E(Ze(c),ao)[t]}))}}),ro(Ze(c),mo,{writable:!0,value:function(e){e.forEach((function(e){E(Ze(c),_o).call(Ze(c),e)}))}}),ro(Ze(c),vo,{writable:!0,value:function(e){e.forEach((function(e){E(Ze(c),ao)[e.elementName]&&E(Ze(c),ao)[e.elementName].updateElementGroup(e)}))}}),ro(Ze(c),Io,{writable:!0,value:function(e){for(var t=Object.keys(E(Ze(c),ao)),n=0;n<t.length;n+=1)if(atob(t[n].split(":")[2])===e)return!0;return!1}}),l(Ze(c),"collect",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{tokens:!0};f(Ze(c),fo,E(Ze(c),co).skyflowContainer.isControllerFrameReady);var t=v();return E(Ze(c),fo)?new Promise((function(n,r){try{if(Tt(E(Ze(c),co).clientJSON.config),0===Object.keys(E(Ze(c),ao)).length)throw new Bt(ut.NO_ELEMENTS_IN_COLLECT,[],!0);E(Ze(c),yo).call(Ze(c));var o=Object.values(E(Ze(c),ao)),i=Object.keys(E(Ze(c),ao)).map((function(e,n){return{frameId:e,elementId:e,shadowRoot:null!==o[n].getShadowRoot(),transId:t}}));if(o.forEach((function(e){if(!e.isMounted())throw new Bt(ut.ELEMENTS_NOT_MOUNTED,[],!0);e.isValidElement()})),Object.prototype.hasOwnProperty.call(e,"tokens")&&!At(e.tokens))throw new Bt(ut.INVALID_TOKENS_IN_COLLECT,[],!0);null!=e&&e.additionalFields&&_t(e.additionalFields),null!=e&&e.upsert&&bt(null==e?void 0:e.upsert);var a=o.reduce((function(e,t){return null!==t.getShadowRoot()?e+1:e}),0);if(a>0){var l="req_".concat(Math.random());o.forEach((function(n){null!=n.getShadowRoot()&&n.emitEventFromShadowRoot(ce,to(to({shadowRootElementsCount:a,type:ne},e),{},{tokens:void 0===(null==e?void 0:e.tokens)||e.tokens,elementIds:i,containerId:E(Ze(c),io),requestId:l,transId:t}))})),m().emit(ce,{transId:t,clientId:E(Ze(c),co).uuid},(function(e){!e||null!=e&&e.error?(Ft("".concat(JSON.stringify(null==e?void 0:e.error)),st.ERROR,E(Ze(c),lo).logLevel),r(null==e?void 0:e.error)):(Ft(Yt(R.infoLogs.COLLECT_SUBMIT_SUCCESS,oo),st.LOG,E(Ze(c),lo).logLevel),n(e))}))}else m().emit(le+E(Ze(c),co).uuid,to(to({type:ne},e),{},{tokens:void 0===(null==e?void 0:e.tokens)||e.tokens,elementIds:i,containerId:E(Ze(c),io)}),(function(e){!e||null!=e&&e.error?(Ft("".concat(JSON.stringify(null==e?void 0:e.error)),st.ERROR,E(Ze(c),lo).logLevel),r(null==e?void 0:e.error)):(Ft(Yt(R.infoLogs.COLLECT_SUBMIT_SUCCESS,oo),st.LOG,E(Ze(c),lo).logLevel),n(e))}));Ft(Yt(R.infoLogs.EMIT_EVENT,oo,pe),st.LOG,E(Ze(c),lo).logLevel)}catch(e){Ft("".concat(e.message),st.ERROR,E(Ze(c),lo).logLevel),r(e)}})):new Promise((function(t,n){try{if(Tt(E(Ze(c),co).clientJSON.config),0===Object.keys(E(Ze(c),ao)).length)throw new Bt(ut.NO_ELEMENTS_IN_COLLECT,[],!0);E(Ze(c),yo).call(Ze(c));var r=Object.values(E(Ze(c),ao)),o=Object.keys(E(Ze(c),ao)).map((function(e,t){return{frameId:e,elementId:e,shadowRoot:r[t].getShadowRoot()}}));if(r.forEach((function(e){if(!e.isMounted())throw new Bt(ut.ELEMENTS_NOT_MOUNTED,[],!0);e.isValidElement()})),Object.prototype.hasOwnProperty.call(e,"tokens")&&!At(e.tokens))throw new Bt(ut.INVALID_TOKENS_IN_COLLECT,[],!0);null!=e&&e.additionalFields&&_t(e.additionalFields),null!=e&&e.upsert&&bt(null==e?void 0:e.upsert),m().target(Rt.IFRAME_SECURE_ORIGIN).on(he+E(Ze(c),io),(function(){m().emit(le+E(Ze(c),co).uuid,to(to({type:ne},e),{},{tokens:void 0===(null==e?void 0:e.tokens)||e.tokens,elementIds:o,containerId:E(Ze(c),io)}),(function(e){!e||null!=e&&e.error?(Ft("".concat(JSON.stringify(null==e?void 0:e.error)),st.ERROR,E(Ze(c),lo).logLevel),n(null==e?void 0:e.error)):(Ft(Yt(R.infoLogs.COLLECT_SUBMIT_SUCCESS,oo),st.LOG,E(Ze(c),lo).logLevel),t(e))}))}))}catch(e){Ft("".concat(e.message),st.ERROR,E(Ze(c),lo).logLevel),n(e)}}))})),l(Ze(c),"uploadFiles",(function(e){return f(Ze(c),fo,E(Ze(c),co).skyflowContainer.isControllerFrameReady),E(Ze(c),fo)?new Promise((function(t,n){try{if(Tt(E(Ze(c),co).clientJSON.config),0===Object.keys(E(Ze(c),ao)).length)throw new Bt(ut.NO_ELEMENTS_IN_COLLECT,[],!0);E(Ze(c),yo).call(Ze(c));var r=Object.values(E(Ze(c),ao)),o=Object.keys(E(Ze(c),ao));r.forEach((function(e){if(!e.isMounted())throw new Bt(ut.ELEMENTS_NOT_MOUNTED,[],!0);e.isValidElement()})),m().emit(le+E(Ze(c),co).uuid,to(to({type:re},e),{},{elementIds:o,containerId:E(Ze(c),io)}),(function(e){!e||null!=e&&e.error?(Ft("".concat(JSON.stringify(null==e?void 0:e.error)),st.ERROR,E(Ze(c),lo).logLevel),n(null==e?void 0:e.error)):(Ft(Yt(R.infoLogs.COLLECT_SUBMIT_SUCCESS,oo),st.LOG,E(Ze(c),lo).logLevel),t(e))})),Ft(Yt(R.infoLogs.EMIT_EVENT,oo,ge),st.LOG,E(Ze(c),lo).logLevel)}catch(e){Ft("".concat(e.message),st.ERROR,E(Ze(c),lo).logLevel),n(e)}})):new Promise((function(t,n){m().target(Rt.IFRAME_SECURE_ORIGIN).on(he+E(Ze(c),io),(function(){try{if(Tt(E(Ze(c),co).clientJSON.config),0===Object.keys(E(Ze(c),ao)).length)throw new Bt(ut.NO_ELEMENTS_IN_COLLECT,[],!0);E(Ze(c),yo).call(Ze(c));var r=Object.values(E(Ze(c),ao)),o=Object.keys(E(Ze(c),ao));r.forEach((function(e){if(!e.isMounted())throw new Bt(ut.ELEMENTS_NOT_MOUNTED,[],!0);e.isValidElement()})),m().emit(le+E(Ze(c),co).uuid,to(to({type:re},e),{},{elementIds:o,containerId:E(Ze(c),io)}),(function(e){!e||null!=e&&e.error?(Ft("".concat(JSON.stringify(null==e?void 0:e.error)),st.ERROR,E(Ze(c),lo).logLevel),n(null==e?void 0:e.error)):(Ft(Yt(R.infoLogs.COLLECT_SUBMIT_SUCCESS,oo),st.LOG,E(Ze(c),lo).logLevel),t(e))})),Ft(Yt(R.infoLogs.EMIT_EVENT,oo,ge),st.LOG,E(Ze(c),lo).logLevel)}catch(e){Ft("".concat(e.message),st.ERROR,E(Ze(c),lo).logLevel),n(e)}}))}))})),ro(Ze(c),yo,{writable:!0,value:function(){try{if(E(Ze(c),Oo).call(Ze(c)))return;var e=E(Ze(c),go).call(Ze(c));if(!e.length)return;E(Ze(c),No).call(Ze(c),e)}catch(e){Ft("".concat(e),st.LOG,E(Ze(c),lo).logLevel)}}}),ro(Ze(c),Oo,{writable:!0,value:function(){return 0===Object.keys(E(Ze(c),ao)).length}}),ro(Ze(c),go,{writable:!0,value:function(){var e,t=null===(e=document)||void 0===e?void 0:e.body;if(!t)return[];var n=t.getElementsByTagName("iframe");return null!=n&&n.length?Array.from(n).map((function(e){return e.id})):[]}}),ro(Ze(c),No,{writable:!0,value:function(e){Object.entries(E(Ze(c),ao)).forEach((function(t){var n=dt(t,2),r=n[0],o=n[1];E(Ze(c),Lo).call(Ze(c),o,e)&&delete E(Ze(c),ao)[r]}))}}),ro(Ze(c),Lo,{writable:!0,value:function(e,t){return e.isMounted()&&!t.includes(e.iframeName())&&!(null===e.getShadowRoot())&&!c.checkIfFrameExistsInShadowRoot(e.getShadowRoot(),e.iframeName())}}),l(Ze(c),"checkIfFrameExistsInShadowRoot",(function(e,t){if(!e)return!1;var n=e.querySelectorAll("iframe");return Array.from(n).some((function(e){return e.name===t}))})),f(Ze(c),fo,r.skyflowContainer.isControllerFrameReady),f(Ze(c),io,v()),f(Ze(c),co,to(to({},r),{},{clientJSON:to(to({},r.clientJSON),{},{config:to(to({},r.clientJSON.config),{},{options:to(to({},null===(a=r.clientJSON.config)||void 0===a?void 0:a.options),e)})})})),f(Ze(c),so,o),f(Ze(c),lo,i),f(Ze(c),po,new Ht);var p=E(Ze(c),co).clientDomain||"",u=en({name:"".concat(j,":").concat(E(Ze(c),io),":").concat(E(Ze(c),lo).logLevel,":").concat(btoa(p)),referrer:p});return Qt(u,{src:tn()}),nn(u,to({},je)),Ft(Yt(R.infoLogs.CREATE_COLLECT_CONTAINER,oo),st.LOG,E(Ze(c),lo).logLevel),f(Ze(c),uo,!0),c}return u(n)}(rn);const ho=To;function bo(e){this.message=e}bo.prototype=new Error,bo.prototype.name="InvalidCharacterError";var Ao="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new bo("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,r,o=0,i=0,a="";r=t.charAt(i++);~r&&(n=o%4?64*n+r:r,o++%4)?a+=String.fromCharCode(255&n>>(-2*o&6)):0)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);return a};function wo(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(Ao(e).replace(/(.)/g,(function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(e){return Ao(t)}}function Ro(e){this.message=e}Ro.prototype=new Error,Ro.prototype.name="InvalidTokenError";const So=function(e,t){if("string"!=typeof e)throw new Ro("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(wo(e.split(".")[n]))}catch(e){throw new Ro("Invalid token specified: "+e.message)}};const Do=function(e){try{if(!e)return!1;if(i=e,"[object String]"!==Object.prototype.toString.call(i))return!1;var t=!1,n=So(e),r=(new Date).getTime()/1e3,o=n.exp;return o&&r>o&&(t=!0),!t}catch(e){return!1}var i};function xo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Mo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xo(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Po(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}var Co="SkyflowContainer",ko=new WeakMap,Vo=new WeakMap,jo=new WeakMap,Uo=function(){function e(t,n){var r,o,i=this;s(this,e),Po(this,ko,{writable:!0,value:void 0}),Po(this,Vo,{writable:!0,value:void 0}),l(this,"isControllerFrameReady",!1),Po(this,jo,{writable:!0,value:void 0}),f(this,Vo,t),f(this,ko,(null===(r=E(this,Vo).toJSON())||void 0===r||null===(r=r.metaData)||void 0===r?void 0:r.uuid)||""),f(this,jo,n);var a=window.location.origin||"",c=en({name:"".concat("skyflow_controller",":").concat(E(this,ko),":").concat(btoa(a),":").concat(!(null===(o=E(this,Vo).toJSON())||void 0===o||null===(o=o.config)||void 0===o||null===(o=o.options)||void 0===o||!o.trackingKey)),referrer:a});Qt(c,{src:tn()}),nn(c,Mo({},je)),document.body.append(c),m().target(Rt.IFRAME_SECURE_ORIGIN).on(_e+E(this,ko),(function(e,t){Ft(Yt(R.infoLogs.CAPTURE_PUREJS_FRAME,Co),st.LOG,E(i,jo).logLevel),t({client:E(i,Vo),context:n}),i.isControllerFrameReady=!0})),Ft(Yt(R.infoLogs.PUREJS_CONTROLLER_INITIALIZED,Co),st.LOG,E(this,jo).logLevel)}return u(e,[{key:"detokenize",value:function(e){var t=this;return this.isControllerFrameReady?new Promise((function(n,r){try{Tt(E(t,Vo).config),Ft(Yt(R.infoLogs.VALIDATE_DETOKENIZE_INPUT,Co),st.LOG,E(t,jo).logLevel),mt(e),m().emit(Ee+E(t,ko),{type:$,records:e.records},(function(e){e.error?r(e.error):n(e)})),Ft(Yt(R.infoLogs.EMIT_PURE_JS_REQUEST,Co,$),st.LOG,E(t,jo).logLevel)}catch(e){Ft(e.message,st.ERROR,E(t,jo).logLevel),r(e)}})):new Promise((function(n,r){try{Tt(E(t,Vo).config),Ft(Yt(R.infoLogs.VALIDATE_DETOKENIZE_INPUT,Co),st.LOG,E(t,jo).logLevel),mt(e),m().target(Rt.IFRAME_SECURE_ORIGIN).on(_e+E(t,ko),(function(){m().emit(Ee+E(t,ko),{type:$,records:e.records},(function(e){e.error?r(e.error):n(e)}))})),Ft(Yt(R.infoLogs.EMIT_PURE_JS_REQUEST,Co,$),st.LOG,E(t,jo).logLevel)}catch(e){Ft(e.message,st.ERROR,E(t,jo).logLevel),r(e)}}))}},{key:"insert",value:function(e,t){var n=this;return this.isControllerFrameReady?new Promise((function(r,o){Tt(E(n,Vo).config);try{var i,a;if(Ft(Yt(R.infoLogs.VALIDATE_RECORDS,Co),st.LOG,E(n,jo).logLevel),t)t=Mo(Mo({},t),{},{tokens:void 0===(null===(a=t)||void 0===a?void 0:a.tokens)||t.tokens});else t={tokens:!0};null!==(i=t)&&void 0!==i&&i.upsert&&bt(t.upsert),Et(e,t),m().emit(Ee+E(n,ko),{type:Z,records:e,options:t},(function(e){e.error?(Ft("".concat(JSON.stringify(e.error)),st.ERROR,E(n,jo).logLevel),o(e.error)):r(e)})),Ft(Yt(R.infoLogs.EMIT_PURE_JS_REQUEST,Co,Z),st.LOG,E(n,jo).logLevel)}catch(e){Ft(e.message,st.ERROR,E(n,jo).logLevel),o(e)}})):new Promise((function(r,o){try{var i,a;if(Tt(E(n,Vo).config),Ft(Yt(R.infoLogs.VALIDATE_RECORDS,Co),st.LOG,E(n,jo).logLevel),t)t=Mo(Mo({},t),{},{tokens:void 0===(null===(a=t)||void 0===a?void 0:a.tokens)||t.tokens});else t={tokens:!0};null!==(i=t)&&void 0!==i&&i.upsert&&bt(t.upsert),Et(e,t),m().target(Rt.IFRAME_SECURE_ORIGIN).on(_e+E(n,ko),(function(){m().emit(Ee+E(n,ko),{type:Z,records:e,options:t},(function(e){e.error?(Ft("".concat(JSON.stringify(e.error)),st.ERROR,E(n,jo).logLevel),o(e.error)):r(e)}))})),Ft(Yt(R.infoLogs.EMIT_PURE_JS_REQUEST,Co,Z),st.LOG,E(n,jo).logLevel)}catch(e){Ft(e.message,st.ERROR,E(n,jo).logLevel),o(e)}}))}},{key:"getById",value:function(e){var t=this;return this.isControllerFrameReady?new Promise((function(n,r){Tt(E(t,Vo).config);try{Ft(Yt(R.infoLogs.VALIDATE_GET_BY_ID_INPUT,Co),st.LOG,E(t,jo).logLevel),It(e),m().emit(Ee+E(t,ko),{type:Q,records:e.records},(function(e){e.error?r(e.error):n(e)})),Ft(Yt(R.infoLogs.EMIT_PURE_JS_REQUEST,Co,Q),st.LOG,E(t,jo).logLevel)}catch(e){Ft(e.message,st.ERROR,E(t,jo).logLevel),r(e)}})):new Promise((function(n,r){try{Tt(E(t,Vo).config),Ft(Yt(R.infoLogs.VALIDATE_GET_BY_ID_INPUT,Co),st.LOG,E(t,jo).logLevel),It(e),m().target(Rt.IFRAME_SECURE_ORIGIN).on(_e+E(t,ko),(function(){m().emit(Ee+E(t,ko),{type:Q,records:e.records},(function(e){e.error?r(e.error):n(e)}))})),Ft(Yt(R.infoLogs.EMIT_PURE_JS_REQUEST,Co,Q),st.LOG,E(t,jo).logLevel)}catch(e){Ft(e.message,st.ERROR,E(t,jo).logLevel),r(e)}}))}},{key:"get",value:function(e,t){var n=this;return this.isControllerFrameReady?new Promise((function(r,o){Tt(E(n,Vo).config);try{Ft(Yt(R.infoLogs.VALIDATE_GET_INPUT,Co),st.LOG,E(n,jo).logLevel),vt(e,t),m().emit(Ee+E(n,ko),{type:ee,records:e.records,options:t},(function(e){e.error?o(e.error):r(e)})),Ft(Yt(R.infoLogs.EMIT_PURE_JS_REQUEST,Co,ee),st.LOG,E(n,jo).logLevel)}catch(e){Ft(e.message,st.ERROR,E(n,jo).logLevel),o(e)}})):new Promise((function(r,o){try{Tt(E(n,Vo).config),Ft(Yt(R.infoLogs.VALIDATE_GET_INPUT,Co),st.LOG,E(n,jo).logLevel),vt(e,t),m().target(Rt.IFRAME_SECURE_ORIGIN).on(_e+E(n,ko),(function(){m().emit(Ee+E(n,ko),{type:ee,records:e.records,options:t},(function(e){e.error?o(e.error):r(e)}))})),Ft(Yt(R.infoLogs.EMIT_PURE_JS_REQUEST,Co,ee),st.LOG,E(n,jo).logLevel)}catch(e){Ft(e.message,st.ERROR,E(n,jo).logLevel),o(e)}}))}},{key:"delete",value:function(e,t){var n=this;return this.isControllerFrameReady?new Promise((function(r,o){Tt(E(n,Vo).config);try{Ft(Yt(R.infoLogs.VALIDATE_DELETE_INPUT,Co),st.LOG,E(n,jo).logLevel),yt(e),m().emit(Ee+E(n,ko),{type:te,records:e,options:t},(function(e){e.error?(Ft("".concat(JSON.stringify(e.error)),st.ERROR,E(n,jo).logLevel),o(e.error)):r(e)})),Ft(Yt(R.infoLogs.EMIT_PURE_JS_REQUEST,Co,te),st.LOG,E(n,jo).logLevel)}catch(e){Ft(e.message,st.ERROR,E(n,jo).logLevel),o(e)}})):new Promise((function(r,o){try{Tt(E(n,Vo).config),Ft(Yt(R.infoLogs.VALIDATE_RECORDS,Co),st.LOG,E(n,jo).logLevel),yt(e),m().target(Rt.IFRAME_SECURE_ORIGIN).on(_e+E(n,ko),(function(){m().emit(Ee+E(n,ko),{type:te,records:e,options:t},(function(e){e.error?(Ft("".concat(JSON.stringify(e.error)),st.ERROR,E(n,jo).logLevel),o(e.error)):r(e)}))})),Ft(Yt(R.infoLogs.EMIT_PURE_JS_REQUEST,Co,te),st.LOG,E(n,jo).logLevel)}catch(e){Ft(e.message,st.ERROR,E(n,jo).logLevel),o(e)}}))}}]),e}();const Fo=Uo;var Yo=n(6119),Go=n.n(Yo);function Bo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bo(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Wo(e){var t=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(e){return!1}}();return function(){var n,r=tt(e);if(t){var o=tt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return et(this,n)}}function Ko(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}var qo="CollectContainer",zo=new WeakMap,Ho=new WeakMap,Jo=new WeakMap,Zo=new WeakMap,$o=new WeakMap,Qo=new WeakMap,ei=new WeakMap,ti=new WeakMap,ni=new WeakMap,ri=new WeakMap,oi=new WeakMap,ii=new WeakMap,ai=new WeakMap,ci=new WeakMap,li=new WeakMap,si=new WeakMap,pi=new WeakMap,ui=new WeakMap,di=new WeakMap,fi=new WeakMap,Ei=new WeakMap;const _i=function(e){Qe(n,e);var t=Wo(n);function n(e,r,o,i){var a,c;s(this,n),Ko(Ze(c=t.call(this)),zo,{writable:!0,value:void 0}),Ko(Ze(c),Ho,{writable:!0,value:{}}),Ko(Ze(c),Jo,{writable:!0,value:void 0}),Ko(Ze(c),Zo,{writable:!0,value:{rows:[]}}),Ko(Ze(c),$o,{writable:!0,value:[]}),Ko(Ze(c),Qo,{writable:!0,value:void 0}),Ko(Ze(c),ei,{writable:!0,value:void 0}),Ko(Ze(c),ti,{writable:!0,value:void 0}),Ko(Ze(c),ni,{writable:!0,value:!1}),Ko(Ze(c),ri,{writable:!0,value:void 0}),Ko(Ze(c),oi,{writable:!0,value:void 0}),l(Ze(c),"type",Ai.COMPOSABLE),Ko(Ze(c),ii,{writable:!0,value:!1}),Ko(Ze(c),ai,{writable:!0,value:{}}),Ko(Ze(c),ci,{writable:!0,value:""}),Ko(Ze(c),li,{writable:!0,value:!1}),l(Ze(c),"create",(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{required:!1};ht(e,E(Ze(c),Qo).logLevel);var n=$r(e.validations),r=Qr(e.type,t,E(Ze(c),Qo).logLevel),o="".concat(U,":").concat(e.type,":").concat(btoa(v()));E(Ze(c),$o).push(Xo(Xo(Xo({elementType:e.type,name:e.column},e),r),{},{validations:n,elementName:o}));var i="".concat(U,":group:").concat(btoa(E(Ze(c),ai)),":").concat(E(Ze(c),zo),":").concat(E(Ze(c),Qo).logLevel,":").concat(btoa(E(Ze(c),ci)));return new Xr(o,E(Ze(c),ti),i)})),Ko(Ze(c),si,{writable:!0,value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=[];if(f(Ze(c),ai,ir(e)),E(Ze(c),ai).rows.forEach((function(e){e.elements.forEach((function(e){var t=e,r=t.elementType;Hr(r,t),t.sensitive=t.sensitive||Ce[r].sensitive,t.replacePattern=t.replacePattern||Ce[r].replacePattern,t.mask=t.mask||Ce[r].mask,t.isMounted=!1,t.label=e.label,t.skyflowID=e.skyflowID,n.push(t)}))})),E(Ze(c),ai).elementName=t?n[0].elementName:"".concat(U,":group:").concat(btoa(E(Ze(c),ai))),t&&!E(Ze(c),Ho)[n[0].elementName]&&E(Ze(c),fi).call(Ze(c),n[0].name))throw new Bt(ut.UNIQUE_ELEMENT_NAME,["".concat(n[0].name)],!0);var r=E(Ze(c),Ho)[E(Ze(c),ai).elementName];if(r)t?r.update(n[0]):r.update(E(Ze(c),ai));else{var o=v();r=new Vr(o,E(Ze(c),ai),E(Ze(c),Jo),{containerId:E(Ze(c),zo),isMounted:E(Ze(c),ii),type:c.type},!0,E(Ze(c),ui),E(Ze(c),di),E(Ze(c),Qo),E(Ze(c),ti)),E(Ze(c),Ho)[E(Ze(c),ai).elementName]=r,E(Ze(c),ei)[o]=r}return r}}),Ko(Ze(c),pi,{writable:!0,value:function(e){Object.keys(E(Ze(c),Ho)).forEach((function(t){t===e&&delete E(Ze(c),Ho)[t]}))}}),Ko(Ze(c),ui,{writable:!0,value:function(e){e.forEach((function(e){E(Ze(c),pi).call(Ze(c),e)}))}}),Ko(Ze(c),di,{writable:!0,value:function(e){e.forEach((function(e){E(Ze(c),Ho)[e.elementName]&&E(Ze(c),Ho)[e.elementName].update(e)}))}}),Ko(Ze(c),fi,{writable:!0,value:function(e){for(var t=Object.keys(E(Ze(c),Ho)),n=0;n<t.length;n+=1)if(atob(t[n].split(":")[2])===e)return!0;return!1}}),l(Ze(c),"on",(function(e,t){if(!Object.values(ae).includes(e))throw new Bt(ut.INVALID_EVENT_LISTENER,[],!0);if(!t)throw new Bt(ut.MISSING_HANDLER_IN_EVENT_LISTENER,[],!0);if("function"!=typeof t)throw new Bt(ut.INVALID_HANDLER_IN_EVENT_LISTENER,[],!0);E(Ze(c),ti).on(ae.SUBMIT,(function(){t()}))})),l(Ze(c),"mount",(function(e){if(!e)throw new Bt(ut.EMPTY_ELEMENT_IN_MOUNT,["CollectElement"],!0);var t=E(Ze(c),ri).layout;if(Go()(t)!==E(Ze(c),$o).length)throw new Bt(ut.MISMATCH_ELEMENT_COUNT_LAYOUT_SUM,[],!0);var n=0;t.forEach((function(e,t){E(Ze(c),Zo).rows=[].concat(Je(E(Ze(c),Zo).rows),[{elements:[]}]);for(var r=0;r<e;r++)E(Ze(c),Zo).rows[t].elements.push(E(Ze(c),$o)[n]),n++})),E(Ze(c),ri).styles&&(E(Ze(c),Zo).styles=Xo({},E(Ze(c),ri).styles)),E(Ze(c),ri).errorTextStyles&&(E(Ze(c),Zo).errorTextStyles=Xo({},E(Ze(c),ri).errorTextStyles)),E(Ze(c),ii)&&(f(Ze(c),oi,E(Ze(c),si).call(Ze(c),E(Ze(c),Zo),!1)),E(Ze(c),oi).mount(e),f(Ze(c),ni,!0))})),l(Ze(c),"unmount",(function(){E(Ze(c),oi).unmount()})),l(Ze(c),"collect",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{tokens:!0};return f(Ze(c),li,E(Ze(c),Jo).skyflowContainer.isControllerFrameReady),E(Ze(c),li)?new Promise((function(t,n){try{if(Tt(E(Ze(c),Jo).clientJSON.config),!E(Ze(c),$o)||0===E(Ze(c),$o).length)throw new Bt(ut.NO_ELEMENTS_IN_COMPOSABLE,[],!0);if(!E(Ze(c),ni))throw new Bt(ut.COMPOSABLE_CONTAINER_NOT_MOUNTED,[],!0);Zr(E(Ze(c),ai)).forEach((function(e){if(null==e||!e.isMounted)throw new Bt(ut.ELEMENTS_NOT_MOUNTED,[],!0)}));var r=[];if(Object.values(E(Ze(c),Ho)).forEach((function(e){e.isValidElement()})),e&&e.tokens&&"boolean"!=typeof e.tokens)throw new Bt(ut.INVALID_TOKENS_IN_COLLECT,[],!0);null!=e&&e.additionalFields&&_t(e.additionalFields),null!=e&&e.upsert&&bt(null==e?void 0:e.upsert),E(Ze(c),$o).forEach((function(e){r.push({frameId:E(Ze(c),ai).elementName,elementId:e.elementName})})),m().emit(le+E(Ze(c),Jo).uuid,Xo(Xo({type:ne},e),{},{tokens:void 0===(null==e?void 0:e.tokens)||e.tokens,elementIds:r,containerId:E(Ze(c),zo)}),(function(e){!e||null!=e&&e.error?(Ft("".concat(JSON.stringify(null==e?void 0:e.error)),st.ERROR,E(Ze(c),Qo).logLevel),n(null==e?void 0:e.error)):(Ft(Yt(R.infoLogs.COLLECT_SUBMIT_SUCCESS,qo),st.LOG,E(Ze(c),Qo).logLevel),t(e))})),Ft(Yt(R.infoLogs.EMIT_EVENT,qo,pe),st.LOG,E(Ze(c),Qo).logLevel)}catch(e){Ft("".concat(e.message),st.ERROR,E(Ze(c),Qo).logLevel),n(e)}})):new Promise((function(t,n){try{if(Tt(E(Ze(c),Jo).clientJSON.config),!E(Ze(c),$o)||0===E(Ze(c),$o).length)throw new Bt(ut.NO_ELEMENTS_IN_COMPOSABLE,[],!0);if(!E(Ze(c),ni))throw new Bt(ut.COMPOSABLE_CONTAINER_NOT_MOUNTED,[],!0);Zr(E(Ze(c),ai)).forEach((function(e){if(null==e||!e.isMounted)throw new Bt(ut.ELEMENTS_NOT_MOUNTED,[],!0)}));var r=[];if(Object.values(E(Ze(c),Ho)).forEach((function(e){e.isValidElement()})),e&&e.tokens&&"boolean"!=typeof e.tokens)throw new Bt(ut.INVALID_TOKENS_IN_COLLECT,[],!0);null!=e&&e.additionalFields&&_t(e.additionalFields),null!=e&&e.upsert&&bt(null==e?void 0:e.upsert),E(Ze(c),$o).forEach((function(e){r.push({frameId:E(Ze(c),ai).elementName,elementId:e.elementName})})),m().target(Rt.IFRAME_SECURE_ORIGIN).on(he+E(Ze(c),zo),(function(){m().emit(le+E(Ze(c),Jo).uuid,Xo(Xo({type:ne},e),{},{tokens:void 0===(null==e?void 0:e.tokens)||e.tokens,elementIds:r,containerId:E(Ze(c),zo)}),(function(e){!e||null!=e&&e.error?(Ft("".concat(JSON.stringify(null==e?void 0:e.error)),st.ERROR,E(Ze(c),Qo).logLevel),n(null==e?void 0:e.error)):(Ft(Yt(R.infoLogs.COLLECT_SUBMIT_SUCCESS,qo),st.LOG,E(Ze(c),Qo).logLevel),t(e))}))})),Ft(Yt(R.infoLogs.EMIT_EVENT,qo,pe),st.LOG,E(Ze(c),Qo).logLevel)}catch(e){Ft("".concat(e.message),st.ERROR,E(Ze(c),Qo).logLevel),n(e)}}))})),Ko(Ze(c),Ei,{writable:!0,value:function(){E(Ze(c),ti).on(Ne,(function(e){var t,n=E(Ze(c),$o).map((function(n,r){return n.elementName===e.elementName?(t=r,Xo({elementName:n.elementName},e.elementOptions)):n}));E(Ze(c),oi)&&E(Ze(c),oi).updateElement(Xo({},n[t]))}))}}),f(Ze(c),zo,v()),f(Ze(c),Jo,Xo(Xo({},r),{},{clientJSON:Xo(Xo({},r.clientJSON),{},{config:Xo(Xo({},r.clientJSON.config),{},{options:Xo(Xo({},null===(a=r.clientJSON.config)||void 0===a?void 0:a.options),e)})})})),f(Ze(c),li,r.skyflowContainer.isControllerFrameReady),f(Ze(c),ei,o),f(Ze(c),Qo,i),f(Ze(c),ri,e),f(Ze(c),ti,new Ht),f(Ze(c),ci,E(Ze(c),Jo).clientDomain||"");var p=en({name:"".concat(j,":").concat(E(Ze(c),zo),":").concat(E(Ze(c),Qo).logLevel,":").concat(btoa(E(Ze(c),ci))),referrer:E(Ze(c),ci)});return Qt(p,{src:tn()}),nn(p,Xo({},je)),Ft(Yt(R.infoLogs.CREATE_COLLECT_CONTAINER,qo),st.LOG,E(Ze(c),Qo).logLevel),f(Ze(c),ii,!0),E(Ze(c),Ei).call(Ze(c)),c}return u(n)}(rn);var mi;function vi(e,t,n){return function(e,t){if(e!==t)throw new TypeError("Private static access of wrong provenance")}(e,t),function(e,t){if(void 0===e)throw new TypeError("attempted to "+t+" private static field before its declaration")}(n,"get"),function(e,t){if(t.get)return t.get.call(e);return t.value}(e,n)}var Ii=function(){function e(){s(this,e)}return u(e,null,[{key:"getBrowserDetails",value:function(){return{browser_accept_header:"application/json",browser_color_depth:String(window.screen.colorDepth),browser_screen_height:window.screen.height,browser_screen_width:window.screen.width,browser_user_agent:window.navigator.userAgent,browser_java_enabled:window.navigator.javaEnabled(),browser_language:window.navigator.language,browser_tz:(new Date).getTimezoneOffset(),browser_javascript_enabled:!0,accept_language:Je(navigator.languages)}}}]),e}();mi=Ii,l(Ii,"showChallenge",(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"05",r=arguments.length>3?arguments[3]:void 0;if(!e)throw new Bt(ut.INVALID_FIELD_SHOW_3DS_CHALLEGNGE,["acsUrl"],!0);if(!t)throw new Bt(ut.INVALID_FIELD_SHOW_3DS_CHALLEGNGE,["cReq"],!0);if(r&&!(r instanceof HTMLElement))throw new Bt(ut.INVALID_FIELD_SHOW_3DS_CHALLEGNGE,["container"],!0);var o=vi(mi,mi,yi).call(mi,n),i=vi(mi,mi,Oi).call(mi,r||document.body,"threeDSCReqIFrame","threeDSCReqIframe",o[0],o[1]);return i.sandbox.add("allow-pointer-lock"),vi(mi,mi,gi).call(mi,e,t,i),i}));var yi={writable:!0,value:function(){switch(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"05"){case"01":return["250px","400px"];case"02":return["390px","400px"];case"03":return["500px","600px"];case"04":return["600px","400px"];case"05":return["100%","100%"];default:throw new Bt(ut.INVALID_FIELD_SHOW_3DS_CHALLEGNGE,["challengeWindowSize"],!0)}}},Oi={writable:!0,value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"0",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"0",i=document.createElement("iframe");return i.width=r,i.height=o,i.name=t,i.setAttribute("id",n),i.setAttribute("frameborder","0"),i.setAttribute("border","0"),i.setAttribute("style","overflow:hidden; position:absolute"),i.setAttribute("allowfullscreen","false"),i.setAttribute("allowpaymentrequest","false"),i.setAttribute("allow","payment; publickey-credentials-get"),i.sandbox.add("allow-forms","allow-scripts","allow-same-origin"),e.appendChild(i),i}},gi={writable:!0,value:function(e,t,n){var r=document.createElement("html"),o=document.createElement("body"),i=vi(mi,mi,Ni).call(mi,"challengeRequestForm",e,n.name,"creq",encodeURIComponent(t));return o.appendChild(i),r.appendChild(o),n.appendChild(r),i.submit(),n}},Ni={writable:!0,value:function(e,t,n,r,o){var i=document.createElement("form");i.name=e,i.action=t,i.method="POST",i.target=n,i.enctype="application/x-www-form-urlencoded";var a=document.createElement("input");return a.name=r,a.value=o,i.appendChild(a),i.style.display="none",i}};const Li=Ii;function Ti(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ti(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ti(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bi(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}var Ai=function(e){return e.COLLECT="COLLECT",e.REVEAL="REVEAL",e.COMPOSABLE="COMPOSABLE",e}({}),wi="Skyflow",Ri=new WeakMap,Si=new WeakMap,Di=new WeakMap,xi=new WeakMap,Mi=new WeakMap,Pi=new WeakMap,Ci=new WeakMap,ki=new WeakMap,Vi=new WeakMap,ji=function(){function e(t){var n,r,o=this;s(this,e),bi(this,Ri,{writable:!0,value:void 0}),bi(this,Si,{writable:!0,value:v()}),bi(this,Di,{writable:!0,value:{uuid:E(this,Si),clientDomain:window.location.origin}}),bi(this,xi,{writable:!0,value:void 0}),bi(this,Mi,{writable:!0,value:""}),bi(this,Pi,{writable:!0,value:void 0}),bi(this,Ci,{writable:!0,value:void 0}),bi(this,ki,{writable:!0,value:void 0}),bi(this,Vi,{writable:!0,value:void 0});var i=localStorage.getItem("sdk_version")||"";E(this,Di).sdkVersion=i,E(this,Di).session_id=v(),f(this,Ri,new zt(hi({},t),E(this,Di))),f(this,Ci,(null==t||null===(n=t.options)||void 0===n?void 0:n.logLevel)||ct.ERROR),f(this,ki,(null==t||null===(r=t.options)||void 0===r?void 0:r.env)||lt.PROD),f(this,Vi,{}),f(this,xi,new Fo(E(this,Ri),{logLevel:E(this,Ci),env:E(this,ki)}));m().target(Rt.IFRAME_SECURE_ORIGIN).on(me+E(this,Si),(function(e,t){Ft(Yt(R.infoLogs.CAPTURED_BEARER_TOKEN_EVENT,wi),st.LOG,E(o,Ci)),!E(o,Ri).config.getBearerToken||E(o,Mi)&&Do(E(o,Mi))?(Ft(Yt(R.infoLogs.REUSE_BEARER_TOKEN,wi),st.LOG,E(o,Ci)),t({authToken:E(o,Mi)})):E(o,Ri).config.getBearerToken().then((function(e){Do(e)?(Ft(Yt(R.infoLogs.BEARER_TOKEN_RESOLVED,wi),st.LOG,E(o,Ci)),f(o,Mi,e),t({authToken:E(o,Mi)})):(Ft(Yt(R.errorLogs.INVALID_BEARER_TOKEN),st.ERROR,E(o,Ci)),t({error:Yt(R.errorLogs.INVALID_BEARER_TOKEN)}))})).catch((function(e){Ft(Yt(R.errorLogs.BEARER_TOKEN_REJECTED),st.ERROR,E(o,Ci)),t({error:e})}))})),Ft(Yt(R.infoLogs.BEARER_TOKEN_LISTENER,wi),st.LOG,E(this,Ci)),Ft(Yt(R.infoLogs.CURRENT_ENV,wi,E(this,ki)),st.LOG,E(this,Ci)),Ft(Yt(R.infoLogs.CURRENT_LOG_LEVEL,wi,E(this,Ci)),st.LOG,E(this,Ci))}return u(e,[{key:"container",value:function(e,t){switch(e){case Ai.COLLECT:var n=new ho(t,hi(hi({},E(this,Di)),{},{clientJSON:E(this,Ri).toJSON(),containerType:e,skyflowContainer:E(this,xi)}),E(this,Vi),{logLevel:E(this,Ci),env:E(this,ki)});return Ft(Yt(R.infoLogs.COLLECT_CONTAINER_CREATED,wi),st.LOG,E(this,Ci)),n;case Ai.REVEAL:var r=new or(hi(hi({},E(this,Di)),{},{clientJSON:E(this,Ri).toJSON(),containerType:e,skyflowContainer:E(this,xi)}),E(this,Vi),{logLevel:E(this,Ci)},t);return Ft(Yt(R.infoLogs.REVEAL_CONTAINER_CREATED,wi),st.LOG,E(this,Ci)),r;case Ai.COMPOSABLE:!function(e){if(!e)throw new Bt(ut.MISSING_COMPOSABLE_CONTAINER_OPTIONS,[],!0);if("object"!==a(e))throw new Bt(ut.INVALID_COMPOSABLE_CONTAINER_OPTIONS,[],!0);if(!Object.prototype.hasOwnProperty.call(e,"layout"))throw new Bt(ut.MISSING_COMPOSABLE_LAYOUT_KEY,[],!0);if(!e.layout)throw new Bt(ut.INVALID_COMPOSABLE_LAYOUT_TYPE,[],!0);if(!Array.isArray(e.layout))throw new Bt(ut.INVALID_COMPOSABLE_LAYOUT_TYPE,[],!0);if(0===e.layout.length)throw new Bt(ut.EMPTY_COMPOSABLE_LAYOUT_ARRAY,[],!0);e.layout.forEach((function(e){if("number"!=typeof e)throw new Bt(ut.INVALID_COMPOSABLE_LAYOUT_TYPE,[],!0);if(e<0)throw new Bt(ut.NEGATIVE_VALUES_COMPOSABLE_LAYOUT,[],!0)}))}(t);var o=new _i(t,hi(hi({},E(this,Di)),{},{clientJSON:E(this,Ri).toJSON(),containerType:e,skyflowContainer:E(this,xi)}),E(this,Vi),{logLevel:E(this,Ci),env:E(this,ki)});return Ft(Yt(R.infoLogs.COLLECT_CONTAINER_CREATED,wi),st.LOG,E(this,Ci)),o;default:if(!e)throw new Bt(ut.EMPTY_CONTAINER_TYPE,[],!0);throw new Bt(ut.INVALID_CONTAINER_TYPE,[e],!0)}}},{key:"insert",value:function(e,t){return Ft(Yt(R.infoLogs.INSERT_TRIGGERED,wi),st.LOG,E(this,Ci)),E(this,xi).insert(e,t)}},{key:"detokenize",value:function(e){return Ft(Yt(R.infoLogs.DETOKENIZE_TRIGGERED,wi),st.LOG,E(this,Ci)),E(this,xi).detokenize(e)}},{key:"getById",value:function(e){return Ft(R.warnLogs.GET_BY_ID_DEPRECATED,st.WARN,E(this,Ci)),Ft(Yt(R.infoLogs.GET_BY_ID_TRIGGERED,wi),st.LOG,E(this,Ci)),E(this,xi).getById(e)}},{key:"get",value:function(e,t){return Ft(Yt(R.infoLogs.GET_TRIGGERED,wi),st.LOG,E(this,Ci)),E(this,xi).get(e,t)}},{key:"delete",value:function(e,t){return Ft(Yt(R.infoLogs.DELETE_TRIGGERED,wi),st.LOG,E(this,Ci)),E(this,xi).delete(e,t)}}],[{key:"init",value:function(t){var n,r=(null==t||null===(n=t.options)||void 0===n?void 0:n.logLevel)||ct.ERROR;!function(e){var t,n;if(null!=e&&null!==(t=e.options)&&void 0!==t&&t.customElementsURL&&Nt(null==e||null===(n=e.options)||void 0===n?void 0:n.customElementsURL)){var r,o,i=null==e||null===(r=e.options)||void 0===r?void 0:r.customElementsURL,a=new URL(i),c=a.protocol,l=a.hostname,s="".concat(c,"//").concat(l);Rt.IFRAME_SECURE_ORIGIN=s,Rt.IFRAME_SECURE_SITE=null==e||null===(o=e.options)||void 0===o?void 0:o.customElementsURL}}(t),Ft(Yt(R.infoLogs.INITIALIZE_CLIENT,wi),st.LOG,r);var o,i=t;i.vaultURL="string"!=typeof(o=t.vaultURL)?o:"/"===(null==o?void 0:o.trim().slice(-1))?o.slice(0,-1):o.trim();var a=new e(i);return Ft(Yt(R.infoLogs.CLIENT_INITIALIZED,wi),st.LOG,r),a}},{key:"ContainerType",get:function(){return Ai}},{key:"ElementType",get:function(){return xe}},{key:"RedactionType",get:function(){return ot}},{key:"RequestMethod",get:function(){return it}},{key:"LogLevel",get:function(){return ct}},{key:"EventName",get:function(){return at}},{key:"Env",get:function(){return lt}},{key:"ValidationRuleType",get:function(){return pt}},{key:"CardType",get:function(){return Me}},{key:"Error",get:function(){return Bt}},{key:"ThreeDS",get:function(){return Li}}]),e}();const Ui=ji,Fi=ji})(),r})()));